From 0446f44968954cf597489355c1e53ae55907886c Mon Sep 17 00:00:00 2001 From: Vito Macchia Date: Fri, 4 Dec 2020 20:03:55 +0100 Subject: [PATCH] Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0-alpha.2 --- apidoc/api_project.js | 2 +- apidoc/api_project.json | 2 +- package.json | 6 ++-- public/769-2d4ddce803566107f221.js | 2 +- public/app-60661515a038c3291c79.js | 21 ++++++++++++++++++++ public/app-865e7f24c58986c08fdf.js | 21 -------------------- public/index.html | 4 +- public/runtime-472ac7a6568b98562237.js | 2 +- public/schemas/openapi/openapi.json | 2 +- public/schemas/openapi/openapi.yml | 4 +- public/service-worker.js | 2 +- server/api/action/action.attributes.js | 2 +- server/api/action/action.controller.js | 2 +- server/api/action/action.model.js | 2 +- server/api/action/action.options.js | 2 +- server/api/action/index.js | 2 +- .../analyticCustomReport.attributes.js | 2 +- .../analyticCustomReport.controller.js | 2 +- .../analyticCustomReport.model.js | 2 +- .../analyticCustomReport.options.js | 2 +- server/api/analyticCustomReport/index.js | 2 +- .../analyticDefaultReport.attributes.js | 2 +- .../analyticDefaultReport.controller.js | 2 +- .../analyticDefaultReport.model.js | 2 +- .../analyticDefaultReport.options.js | 2 +- server/api/analyticDefaultReport/index.js | 2 +- .../analyticExtractedReport.attributes.js | 2 +- .../analyticExtractedReport.controller.js | 2 +- .../analyticExtractedReport.model.js | 2 +- .../analyticExtractedReport.options.js | 2 +- server/api/analyticExtractedReport/index.js | 2 +- .../analyticFieldReport.attributes.js | 2 +- .../analyticFieldReport.controller.js | 2 +- .../analyticFieldReport.model.js | 2 +- .../analyticFieldReport.options.js | 2 +- server/api/analyticFieldReport/index.js | 2 +- .../analyticMetric/analyticMetric.attributes.js | 2 +- .../analyticMetric/analyticMetric.controller.js | 2 +- server/api/analyticMetric/analyticMetric.model.js | 2 +- .../api/analyticMetric/analyticMetric.options.js | 2 +- server/api/analyticMetric/index.js | 2 +- .../analyticTreeReport.attributes.js | 2 +- .../analyticTreeReport.controller.js | 2 +- .../analyticTreeReport/analyticTreeReport.model.js | 2 +- .../analyticTreeReport.options.js | 2 +- server/api/analyticTreeReport/index.js | 2 +- server/api/attachment/attachment.attributes.js | 2 +- server/api/attachment/attachment.controller.js | 2 +- server/api/attachment/attachment.model.js | 2 +- server/api/attachment/attachment.options.js | 2 +- server/api/attachment/attachment.rpc.js | 2 +- server/api/attachment/index.js | 2 +- server/api/authGoogle/authGoogle.controller.js | 2 +- server/api/authGoogle/index.js | 2 +- server/api/authLocal/authLocal.controller.js | 2 +- server/api/authLocal/index.js | 2 +- server/api/automation/automation.attributes.js | 2 +- server/api/automation/automation.controller.js | 2 +- server/api/automation/automation.model.js | 2 +- server/api/automation/automation.options.js | 2 +- server/api/automation/index.js | 2 +- server/api/campaign/campaign.attributes.js | 2 +- server/api/campaign/campaign.controller.js | 2 +- server/api/campaign/campaign.model.js | 2 +- server/api/campaign/campaign.options.js | 2 +- server/api/campaign/campaign.rpc.js | 2 +- server/api/campaign/index.js | 2 +- server/api/cannedAnswer/cannedAnswer.attributes.js | 2 +- server/api/cannedAnswer/cannedAnswer.controller.js | 2 +- server/api/cannedAnswer/cannedAnswer.model.js | 2 +- server/api/cannedAnswer/cannedAnswer.options.js | 2 +- server/api/cannedAnswer/index.js | 2 +- server/api/cdr/cdr.attributes.js | 2 +- server/api/cdr/cdr.controller.js | 2 +- server/api/cdr/cdr.model.js | 2 +- server/api/cdr/cdr.options.js | 2 +- server/api/cdr/index.js | 2 +- .../chatApplication/chatApplication.attributes.js | 2 +- .../chatApplication/chatApplication.controller.js | 2 +- .../api/chatApplication/chatApplication.model.js | 2 +- .../api/chatApplication/chatApplication.options.js | 2 +- server/api/chatApplication/index.js | 2 +- server/api/chatGroup/chatGroup.attributes.js | 2 +- server/api/chatGroup/chatGroup.controller.js | 2 +- server/api/chatGroup/chatGroup.events.js | 2 +- server/api/chatGroup/chatGroup.model.js | 2 +- server/api/chatGroup/chatGroup.options.js | 2 +- server/api/chatGroup/chatGroup.rpc.js | 2 +- server/api/chatGroup/chatGroup.socket.js | 2 +- server/api/chatGroup/index.js | 2 +- .../chatInteraction/chatInteraction.attributes.js | 2 +- .../chatInteraction/chatInteraction.controller.js | 2 +- .../api/chatInteraction/chatInteraction.events.js | 2 +- .../api/chatInteraction/chatInteraction.model.js | 2 +- .../api/chatInteraction/chatInteraction.options.js | 2 +- server/api/chatInteraction/chatInteraction.rpc.js | 2 +- .../api/chatInteraction/chatInteraction.socket.js | 2 +- server/api/chatInteraction/index.js | 2 +- .../chatInternalMessage.attributes.js | 2 +- .../chatInternalMessage.controller.js | 2 +- .../chatInternalMessage.events.js | 2 +- .../chatInternalMessage.model.js | 2 +- .../chatInternalMessage.options.js | 2 +- .../chatInternalMessage/chatInternalMessage.rpc.js | 2 +- .../chatInternalMessage.socket.js | 2 +- server/api/chatInternalMessage/index.js | 2 +- server/api/chatMessage/chatMessage.attributes.js | 2 +- server/api/chatMessage/chatMessage.controller.js | 2 +- server/api/chatMessage/chatMessage.events.js | 2 +- server/api/chatMessage/chatMessage.model.js | 2 +- server/api/chatMessage/chatMessage.options.js | 2 +- server/api/chatMessage/chatMessage.rpc.js | 2 +- server/api/chatMessage/chatMessage.socket.js | 2 +- server/api/chatMessage/index.js | 2 +- .../chatOfflineMessage.attributes.js | 2 +- .../chatOfflineMessage.controller.js | 2 +- .../chatOfflineMessage/chatOfflineMessage.model.js | 2 +- .../chatOfflineMessage.options.js | 2 +- server/api/chatOfflineMessage/index.js | 2 +- .../chatProactiveAction.attributes.js | 2 +- .../chatProactiveAction.controller.js | 2 +- .../chatProactiveAction.model.js | 2 +- .../chatProactiveAction.options.js | 2 +- server/api/chatProactiveAction/index.js | 2 +- server/api/chatQueue/chatQueue.attributes.js | 2 +- server/api/chatQueue/chatQueue.controller.js | 2 +- server/api/chatQueue/chatQueue.events.js | 2 +- server/api/chatQueue/chatQueue.model.js | 2 +- server/api/chatQueue/chatQueue.options.js | 2 +- server/api/chatQueue/chatQueue.rpc.js | 2 +- server/api/chatQueue/chatQueue.socket.js | 2 +- server/api/chatQueue/index.js | 2 +- .../chatQueueReport/chatQueueReport.attributes.js | 2 +- .../chatQueueReport/chatQueueReport.controller.js | 2 +- .../api/chatQueueReport/chatQueueReport.model.js | 2 +- .../api/chatQueueReport/chatQueueReport.options.js | 2 +- server/api/chatQueueReport/chatQueueReport.rpc.js | 2 +- server/api/chatQueueReport/index.js | 2 +- .../chatTransferReport.attributes.js | 2 +- .../chatTransferReport.controller.js | 2 +- .../chatTransferReport/chatTransferReport.model.js | 2 +- .../chatTransferReport.options.js | 2 +- server/api/chatTransferReport/index.js | 2 +- server/api/chatWebsite/chatWebsite.attributes.js | 2 +- server/api/chatWebsite/chatWebsite.controller.js | 2 +- server/api/chatWebsite/chatWebsite.events.js | 2 +- server/api/chatWebsite/chatWebsite.model.js | 2 +- server/api/chatWebsite/chatWebsite.options.js | 2 +- server/api/chatWebsite/chatWebsite.rpc.js | 2 +- server/api/chatWebsite/chatWebsite.socket.js | 2 +- server/api/chatWebsite/index.js | 2 +- .../api/cloudProvider/cloudProvider.attributes.js | 2 +- .../api/cloudProvider/cloudProvider.controller.js | 2 +- server/api/cloudProvider/cloudProvider.model.js | 2 +- server/api/cloudProvider/cloudProvider.options.js | 2 +- server/api/cloudProvider/index.js | 2 +- server/api/cmCompany/cmCompany.attributes.js | 2 +- server/api/cmCompany/cmCompany.controller.js | 2 +- server/api/cmCompany/cmCompany.model.js | 2 +- server/api/cmCompany/cmCompany.options.js | 2 +- server/api/cmCompany/index.js | 2 +- server/api/cmContact/cmContact.attributes.js | 2 +- server/api/cmContact/cmContact.controller.js | 2 +- server/api/cmContact/cmContact.events.js | 2 +- server/api/cmContact/cmContact.model.js | 2 +- server/api/cmContact/cmContact.options.js | 2 +- server/api/cmContact/cmContact.rpc.js | 2 +- server/api/cmContact/cmContact.socket.js | 2 +- server/api/cmContact/index.js | 2 +- .../api/cmCustomField/cmCustomField.attributes.js | 2 +- .../api/cmCustomField/cmCustomField.controller.js | 2 +- server/api/cmCustomField/cmCustomField.model.js | 2 +- server/api/cmCustomField/cmCustomField.options.js | 2 +- server/api/cmCustomField/index.js | 2 +- server/api/cmHopper/cmHopper.attributes.js | 2 +- server/api/cmHopper/cmHopper.controller.js | 2 +- server/api/cmHopper/cmHopper.model.js | 2 +- server/api/cmHopper/cmHopper.options.js | 2 +- server/api/cmHopper/cmHopper.rpc.js | 2 +- server/api/cmHopper/index.js | 2 +- .../api/cmHopperBlack/cmHopperBlack.attributes.js | 2 +- .../api/cmHopperBlack/cmHopperBlack.controller.js | 2 +- server/api/cmHopperBlack/cmHopperBlack.model.js | 2 +- server/api/cmHopperBlack/cmHopperBlack.options.js | 2 +- server/api/cmHopperBlack/cmHopperBlack.rpc.js | 2 +- server/api/cmHopperBlack/index.js | 2 +- .../api/cmHopperFinal/cmHopperFinal.attributes.js | 2 +- .../api/cmHopperFinal/cmHopperFinal.controller.js | 2 +- server/api/cmHopperFinal/cmHopperFinal.model.js | 2 +- server/api/cmHopperFinal/cmHopperFinal.options.js | 2 +- server/api/cmHopperFinal/cmHopperFinal.rpc.js | 2 +- server/api/cmHopperFinal/index.js | 2 +- .../cmHopperHistory/cmHopperHistory.attributes.js | 2 +- .../cmHopperHistory/cmHopperHistory.controller.js | 2 +- .../api/cmHopperHistory/cmHopperHistory.model.js | 2 +- .../api/cmHopperHistory/cmHopperHistory.options.js | 2 +- server/api/cmHopperHistory/cmHopperHistory.rpc.js | 2 +- server/api/cmHopperHistory/index.js | 2 +- server/api/cmList/cmList.attributes.js | 2 +- server/api/cmList/cmList.controller.js | 2 +- server/api/cmList/cmList.events.js | 2 +- server/api/cmList/cmList.model.js | 2 +- server/api/cmList/cmList.options.js | 2 +- server/api/cmList/cmList.rpc.js | 2 +- server/api/cmList/cmList.socket.js | 2 +- server/api/cmList/index.js | 2 +- server/api/condition/condition.attributes.js | 2 +- server/api/condition/condition.controller.js | 2 +- server/api/condition/condition.model.js | 2 +- server/api/condition/condition.options.js | 2 +- server/api/condition/index.js | 2 +- server/api/dashboard/dashboard.attributes.js | 2 +- server/api/dashboard/dashboard.controller.js | 2 +- server/api/dashboard/dashboard.events.js | 2 +- server/api/dashboard/dashboard.model.js | 2 +- server/api/dashboard/dashboard.options.js | 2 +- server/api/dashboard/dashboard.rpc.js | 2 +- server/api/dashboard/dashboard.socket.js | 2 +- server/api/dashboard/index.js | 2 +- .../api/dashboardItem/dashboardItem.attributes.js | 2 +- .../api/dashboardItem/dashboardItem.controller.js | 2 +- server/api/dashboardItem/dashboardItem.events.js | 2 +- server/api/dashboardItem/dashboardItem.model.js | 2 +- server/api/dashboardItem/dashboardItem.options.js | 2 +- server/api/dashboardItem/dashboardItem.rpc.js | 2 +- server/api/dashboardItem/dashboardItem.socket.js | 2 +- server/api/dashboardItem/index.js | 2 +- server/api/disposition/disposition.attributes.js | 2 +- server/api/disposition/disposition.controller.js | 2 +- server/api/disposition/disposition.model.js | 2 +- server/api/disposition/disposition.options.js | 2 +- server/api/disposition/index.js | 2 +- server/api/faxAccount/faxAccount.attributes.js | 2 +- server/api/faxAccount/faxAccount.controller.js | 2 +- server/api/faxAccount/faxAccount.events.js | 2 +- server/api/faxAccount/faxAccount.model.js | 2 +- server/api/faxAccount/faxAccount.options.js | 2 +- server/api/faxAccount/faxAccount.rpc.js | 2 +- server/api/faxAccount/faxAccount.socket.js | 2 +- server/api/faxAccount/index.js | 2 +- .../faxApplication/faxApplication.attributes.js | 2 +- .../faxApplication/faxApplication.controller.js | 2 +- server/api/faxApplication/faxApplication.model.js | 2 +- .../api/faxApplication/faxApplication.options.js | 2 +- server/api/faxApplication/faxApplication.rpc.js | 2 +- server/api/faxApplication/index.js | 2 +- .../faxInteraction/faxInteraction.attributes.js | 2 +- .../faxInteraction/faxInteraction.controller.js | 2 +- server/api/faxInteraction/faxInteraction.events.js | 2 +- server/api/faxInteraction/faxInteraction.model.js | 2 +- .../api/faxInteraction/faxInteraction.options.js | 2 +- server/api/faxInteraction/faxInteraction.rpc.js | 2 +- server/api/faxInteraction/faxInteraction.socket.js | 2 +- server/api/faxInteraction/index.js | 2 +- server/api/faxMessage/faxMessage.attributes.js | 2 +- server/api/faxMessage/faxMessage.controller.js | 2 +- server/api/faxMessage/faxMessage.events.js | 2 +- server/api/faxMessage/faxMessage.model.js | 2 +- server/api/faxMessage/faxMessage.options.js | 2 +- server/api/faxMessage/faxMessage.rpc.js | 2 +- server/api/faxMessage/faxMessage.socket.js | 2 +- server/api/faxMessage/index.js | 2 +- server/api/faxQueue/faxQueue.attributes.js | 2 +- server/api/faxQueue/faxQueue.controller.js | 2 +- server/api/faxQueue/faxQueue.events.js | 2 +- server/api/faxQueue/faxQueue.model.js | 2 +- server/api/faxQueue/faxQueue.options.js | 2 +- server/api/faxQueue/faxQueue.rpc.js | 2 +- server/api/faxQueue/faxQueue.socket.js | 2 +- server/api/faxQueue/index.js | 2 +- .../faxQueueReport/faxQueueReport.attributes.js | 2 +- .../faxQueueReport/faxQueueReport.controller.js | 2 +- server/api/faxQueueReport/faxQueueReport.model.js | 2 +- .../api/faxQueueReport/faxQueueReport.options.js | 2 +- server/api/faxQueueReport/faxQueueReport.rpc.js | 2 +- server/api/faxQueueReport/index.js | 2 +- .../faxTransferReport.attributes.js | 2 +- .../faxTransferReport.controller.js | 2 +- .../faxTransferReport/faxTransferReport.model.js | 2 +- .../faxTransferReport/faxTransferReport.options.js | 2 +- server/api/faxTransferReport/index.js | 2 +- server/api/intDeskAccount/index.js | 2 +- .../intDeskAccount/intDeskAccount.attributes.js | 2 +- .../intDeskAccount/intDeskAccount.controller.js | 2 +- server/api/intDeskAccount/intDeskAccount.model.js | 2 +- .../api/intDeskAccount/intDeskAccount.options.js | 2 +- server/api/intDeskAccount/intDeskAccount.rpc.js | 2 +- server/api/intDeskConfiguration/index.js | 2 +- .../intDeskConfiguration.attributes.js | 2 +- .../intDeskConfiguration.controller.js | 2 +- .../intDeskConfiguration.model.js | 2 +- .../intDeskConfiguration.options.js | 2 +- server/api/intDeskField/index.js | 2 +- server/api/intDeskField/intDeskField.attributes.js | 2 +- server/api/intDeskField/intDeskField.controller.js | 2 +- server/api/intDeskField/intDeskField.model.js | 2 +- server/api/intDeskField/intDeskField.options.js | 2 +- server/api/intDynamics365Account/index.js | 2 +- .../intDynamics365Account.attributes.js | 2 +- .../intDynamics365Account.controller.js | 2 +- .../intDynamics365Account.model.js | 2 +- .../intDynamics365Account.options.js | 2 +- .../intDynamics365Account.rpc.js | 2 +- server/api/intDynamics365Configuration/index.js | 2 +- .../intDynamics365Configuration.attributes.js | 2 +- .../intDynamics365Configuration.controller.js | 2 +- .../intDynamics365Configuration.model.js | 2 +- .../intDynamics365Configuration.options.js | 2 +- server/api/intDynamics365Field/index.js | 2 +- .../intDynamics365Field.attributes.js | 2 +- .../intDynamics365Field.controller.js | 2 +- .../intDynamics365Field.model.js | 2 +- .../intDynamics365Field.options.js | 2 +- server/api/intFreshdeskAccount/index.js | 2 +- .../intFreshdeskAccount.attributes.js | 2 +- .../intFreshdeskAccount.controller.js | 2 +- .../intFreshdeskAccount.model.js | 2 +- .../intFreshdeskAccount.options.js | 2 +- .../intFreshdeskAccount/intFreshdeskAccount.rpc.js | 2 +- server/api/intFreshdeskConfiguration/index.js | 2 +- .../intFreshdeskConfiguration.attributes.js | 2 +- .../intFreshdeskConfiguration.controller.js | 2 +- .../intFreshdeskConfiguration.model.js | 2 +- .../intFreshdeskConfiguration.options.js | 2 +- server/api/intFreshdeskField/index.js | 2 +- .../intFreshdeskField.attributes.js | 2 +- .../intFreshdeskField.controller.js | 2 +- .../intFreshdeskField/intFreshdeskField.model.js | 2 +- .../intFreshdeskField/intFreshdeskField.options.js | 2 +- server/api/intFreshsalesAccount/index.js | 2 +- .../intFreshsalesAccount.attributes.js | 2 +- .../intFreshsalesAccount.controller.js | 2 +- .../intFreshsalesAccount.model.js | 2 +- .../intFreshsalesAccount.options.js | 2 +- .../intFreshsalesAccount.rpc.js | 2 +- server/api/intFreshsalesConfiguration/index.js | 2 +- .../intFreshsalesConfiguration.attributes.js | 2 +- .../intFreshsalesConfiguration.controller.js | 2 +- .../intFreshsalesConfiguration.model.js | 2 +- .../intFreshsalesConfiguration.options.js | 2 +- server/api/intFreshsalesField/index.js | 2 +- .../intFreshsalesField.attributes.js | 2 +- .../intFreshsalesField.controller.js | 2 +- .../intFreshsalesField/intFreshsalesField.model.js | 2 +- .../intFreshsalesField.options.js | 2 +- server/api/intSalesforceAccount/index.js | 2 +- .../intSalesforceAccount.attributes.js | 2 +- .../intSalesforceAccount.controller.js | 2 +- .../intSalesforceAccount.model.js | 2 +- .../intSalesforceAccount.options.js | 2 +- .../intSalesforceAccount.rpc.js | 2 +- server/api/intSalesforceConfiguration/index.js | 2 +- .../intSalesforceConfiguration.attributes.js | 2 +- .../intSalesforceConfiguration.controller.js | 2 +- .../intSalesforceConfiguration.model.js | 2 +- .../intSalesforceConfiguration.options.js | 2 +- server/api/intSalesforceField/index.js | 2 +- .../intSalesforceField.attributes.js | 2 +- .../intSalesforceField.controller.js | 2 +- .../intSalesforceField/intSalesforceField.model.js | 2 +- .../intSalesforceField.options.js | 2 +- server/api/intServicenowAccount/index.js | 2 +- .../intServicenowAccount.attributes.js | 2 +- .../intServicenowAccount.controller.js | 2 +- .../intServicenowAccount.model.js | 2 +- .../intServicenowAccount.options.js | 2 +- .../intServicenowAccount.rpc.js | 2 +- server/api/intServicenowConfiguration/index.js | 2 +- .../intServicenowConfiguration.attributes.js | 2 +- .../intServicenowConfiguration.controller.js | 2 +- .../intServicenowConfiguration.model.js | 2 +- .../intServicenowConfiguration.options.js | 2 +- server/api/intServicenowField/index.js | 2 +- .../intServicenowField.attributes.js | 2 +- .../intServicenowField.controller.js | 2 +- .../intServicenowField/intServicenowField.model.js | 2 +- .../intServicenowField.options.js | 2 +- server/api/intSugarcrmAccount/index.js | 2 +- .../intSugarcrmAccount.attributes.js | 2 +- .../intSugarcrmAccount.controller.js | 2 +- .../intSugarcrmAccount/intSugarcrmAccount.model.js | 2 +- .../intSugarcrmAccount.options.js | 2 +- .../intSugarcrmAccount/intSugarcrmAccount.rpc.js | 2 +- server/api/intSugarcrmConfiguration/index.js | 2 +- .../intSugarcrmConfiguration.attributes.js | 2 +- .../intSugarcrmConfiguration.controller.js | 2 +- .../intSugarcrmConfiguration.model.js | 2 +- .../intSugarcrmConfiguration.options.js | 2 +- server/api/intSugarcrmField/index.js | 2 +- .../intSugarcrmField.attributes.js | 2 +- .../intSugarcrmField.controller.js | 2 +- .../api/intSugarcrmField/intSugarcrmField.model.js | 2 +- .../intSugarcrmField/intSugarcrmField.options.js | 2 +- server/api/intVtigerAccount/index.js | 2 +- .../intVtigerAccount.attributes.js | 2 +- .../intVtigerAccount.controller.js | 2 +- .../api/intVtigerAccount/intVtigerAccount.model.js | 2 +- .../intVtigerAccount/intVtigerAccount.options.js | 2 +- .../api/intVtigerAccount/intVtigerAccount.rpc.js | 2 +- server/api/intVtigerConfiguration/index.js | 2 +- .../intVtigerConfiguration.attributes.js | 2 +- .../intVtigerConfiguration.controller.js | 2 +- .../intVtigerConfiguration.model.js | 2 +- .../intVtigerConfiguration.options.js | 2 +- server/api/intVtigerField/index.js | 2 +- .../intVtigerField/intVtigerField.attributes.js | 2 +- .../intVtigerField/intVtigerField.controller.js | 2 +- server/api/intVtigerField/intVtigerField.model.js | 2 +- .../api/intVtigerField/intVtigerField.options.js | 2 +- server/api/intZendeskAccount/index.js | 2 +- .../intZendeskAccount.attributes.js | 2 +- .../intZendeskAccount.controller.js | 2 +- .../intZendeskAccount/intZendeskAccount.model.js | 2 +- .../intZendeskAccount/intZendeskAccount.options.js | 2 +- .../api/intZendeskAccount/intZendeskAccount.rpc.js | 2 +- server/api/intZendeskConfiguration/index.js | 2 +- .../intZendeskConfiguration.attributes.js | 2 +- .../intZendeskConfiguration.controller.js | 2 +- .../intZendeskConfiguration.model.js | 2 +- .../intZendeskConfiguration.options.js | 2 +- server/api/intZendeskField/index.js | 2 +- .../intZendeskField/intZendeskField.attributes.js | 2 +- .../intZendeskField/intZendeskField.controller.js | 2 +- .../api/intZendeskField/intZendeskField.model.js | 2 +- .../api/intZendeskField/intZendeskField.options.js | 2 +- server/api/intZohoAccount/index.js | 2 +- .../intZohoAccount/intZohoAccount.attributes.js | 2 +- .../intZohoAccount/intZohoAccount.controller.js | 2 +- server/api/intZohoAccount/intZohoAccount.model.js | 2 +- .../api/intZohoAccount/intZohoAccount.options.js | 2 +- server/api/intZohoAccount/intZohoAccount.rpc.js | 2 +- server/api/intZohoConfiguration/index.js | 2 +- .../intZohoConfiguration.attributes.js | 2 +- .../intZohoConfiguration.controller.js | 2 +- .../intZohoConfiguration.model.js | 2 +- .../intZohoConfiguration.options.js | 2 +- server/api/intZohoField/index.js | 2 +- server/api/intZohoField/intZohoField.attributes.js | 2 +- server/api/intZohoField/intZohoField.controller.js | 2 +- server/api/intZohoField/intZohoField.model.js | 2 +- server/api/intZohoField/intZohoField.options.js | 2 +- server/api/integration/index.js | 2 +- server/api/integration/integration.attributes.js | 2 +- server/api/integration/integration.controller.js | 2 +- server/api/integration/integration.model.js | 2 +- server/api/integration/integration.options.js | 2 +- server/api/integrationReport/index.js | 2 +- .../integrationReport.attributes.js | 2 +- .../integrationReport.controller.js | 2 +- .../integrationReport/integrationReport.model.js | 2 +- .../integrationReport/integrationReport.options.js | 2 +- server/api/interval/index.js | 2 +- server/api/interval/interval.attributes.js | 2 +- server/api/interval/interval.controller.js | 2 +- server/api/interval/interval.model.js | 2 +- server/api/interval/interval.options.js | 2 +- server/api/interval/interval.rpc.js | 2 +- server/api/jira/index.js | 2 +- server/api/jira/jira.controller.js | 2 +- server/api/jscriptyAnswerReport/index.js | 2 +- .../jscriptyAnswerReport.attributes.js | 2 +- .../jscriptyAnswerReport.controller.js | 2 +- .../jscriptyAnswerReport.model.js | 2 +- .../jscriptyAnswerReport.options.js | 2 +- server/api/jscriptyProject/index.js | 2 +- .../jscriptyProject/jscriptyProject.attributes.js | 2 +- .../jscriptyProject/jscriptyProject.controller.js | 2 +- .../api/jscriptyProject/jscriptyProject.model.js | 2 +- .../api/jscriptyProject/jscriptyProject.options.js | 2 +- server/api/jscriptyQuestionReport/index.js | 2 +- .../jscriptyQuestionReport.attributes.js | 2 +- .../jscriptyQuestionReport.controller.js | 2 +- .../jscriptyQuestionReport.model.js | 2 +- .../jscriptyQuestionReport.options.js | 2 +- server/api/jscriptySessionReport/index.js | 2 +- .../jscriptySessionReport.attributes.js | 2 +- .../jscriptySessionReport.controller.js | 2 +- .../jscriptySessionReport.model.js | 2 +- .../jscriptySessionReport.options.js | 2 +- server/api/license/index.js | 2 +- server/api/license/license.attributes.js | 2 +- server/api/license/license.controller.js | 2 +- server/api/license/license.model.js | 2 +- server/api/license/license.options.js | 2 +- server/api/mailAccount/index.js | 2 +- server/api/mailAccount/mailAccount.attributes.js | 2 +- server/api/mailAccount/mailAccount.controller.js | 2 +- server/api/mailAccount/mailAccount.events.js | 2 +- server/api/mailAccount/mailAccount.model.js | 2 +- server/api/mailAccount/mailAccount.options.js | 2 +- server/api/mailAccount/mailAccount.rpc.js | 2 +- server/api/mailAccount/mailAccount.socket.js | 2 +- server/api/mailApplication/index.js | 2 +- .../mailApplication/mailApplication.attributes.js | 2 +- .../mailApplication/mailApplication.controller.js | 2 +- .../api/mailApplication/mailApplication.model.js | 2 +- .../api/mailApplication/mailApplication.options.js | 2 +- server/api/mailApplication/mailApplication.rpc.js | 2 +- server/api/mailInteraction/index.js | 2 +- .../mailInteraction/mailInteraction.attributes.js | 2 +- .../mailInteraction/mailInteraction.controller.js | 2 +- .../api/mailInteraction/mailInteraction.events.js | 2 +- .../api/mailInteraction/mailInteraction.model.js | 2 +- .../api/mailInteraction/mailInteraction.options.js | 2 +- server/api/mailInteraction/mailInteraction.rpc.js | 2 +- .../api/mailInteraction/mailInteraction.socket.js | 2 +- server/api/mailMessage/index.js | 2 +- server/api/mailMessage/mailMessage.attributes.js | 2 +- server/api/mailMessage/mailMessage.controller.js | 2 +- server/api/mailMessage/mailMessage.events.js | 2 +- server/api/mailMessage/mailMessage.model.js | 2 +- server/api/mailMessage/mailMessage.options.js | 2 +- server/api/mailMessage/mailMessage.rpc.js | 2 +- server/api/mailMessage/mailMessage.socket.js | 2 +- server/api/mailQueue/index.js | 2 +- server/api/mailQueue/mailQueue.attributes.js | 2 +- server/api/mailQueue/mailQueue.controller.js | 2 +- server/api/mailQueue/mailQueue.events.js | 2 +- server/api/mailQueue/mailQueue.model.js | 2 +- server/api/mailQueue/mailQueue.options.js | 2 +- server/api/mailQueue/mailQueue.rpc.js | 2 +- server/api/mailQueue/mailQueue.socket.js | 2 +- server/api/mailQueueReport/index.js | 2 +- .../mailQueueReport/mailQueueReport.attributes.js | 2 +- .../mailQueueReport/mailQueueReport.controller.js | 2 +- .../api/mailQueueReport/mailQueueReport.model.js | 2 +- .../api/mailQueueReport/mailQueueReport.options.js | 2 +- server/api/mailQueueReport/mailQueueReport.rpc.js | 2 +- server/api/mailServerIn/index.js | 2 +- server/api/mailServerIn/mailServerIn.attributes.js | 2 +- server/api/mailServerIn/mailServerIn.model.js | 2 +- server/api/mailServerIn/mailServerIn.options.js | 2 +- server/api/mailServerIn/mailServerIn.rpc.js | 2 +- server/api/mailServerOut/index.js | 2 +- .../api/mailServerOut/mailServerOut.attributes.js | 2 +- .../api/mailServerOut/mailServerOut.controller.js | 2 +- server/api/mailServerOut/mailServerOut.model.js | 2 +- server/api/mailServerOut/mailServerOut.options.js | 2 +- server/api/mailSubstatus/index.js | 2 +- .../api/mailSubstatus/mailSubstatus.attributes.js | 2 +- .../api/mailSubstatus/mailSubstatus.controller.js | 2 +- server/api/mailSubstatus/mailSubstatus.model.js | 2 +- server/api/mailSubstatus/mailSubstatus.options.js | 2 +- server/api/mailTransferReport/index.js | 2 +- .../mailTransferReport.attributes.js | 2 +- .../mailTransferReport.controller.js | 2 +- .../mailTransferReport/mailTransferReport.model.js | 2 +- .../mailTransferReport.options.js | 2 +- server/api/memberReport/index.js | 2 +- server/api/memberReport/memberReport.attributes.js | 2 +- server/api/memberReport/memberReport.controller.js | 2 +- server/api/memberReport/memberReport.model.js | 2 +- server/api/memberReport/memberReport.options.js | 2 +- server/api/memberReport/memberReport.rpc.js | 2 +- server/api/migration/index.js | 2 +- server/api/migration/migration.attributes.js | 2 +- server/api/migration/migration.controller.js | 2 +- server/api/migration/migration.model.js | 2 +- server/api/migration/migration.options.js | 2 +- server/api/network/index.js | 2 +- server/api/network/network.attributes.js | 2 +- server/api/network/network.controller.js | 2 +- server/api/network/network.model.js | 2 +- server/api/network/network.options.js | 2 +- server/api/notification/index.js | 2 +- server/api/notification/notification.attributes.js | 2 +- server/api/notification/notification.controller.js | 2 +- server/api/notification/notification.events.js | 2 +- server/api/notification/notification.model.js | 2 +- server/api/notification/notification.options.js | 2 +- server/api/notification/notification.rpc.js | 2 +- server/api/notification/notification.socket.js | 2 +- server/api/openchannelAccount/index.js | 2 +- .../openchannelAccount.attributes.js | 2 +- .../openchannelAccount.controller.js | 2 +- .../openchannelAccount.events.js | 2 +- .../openchannelAccount/openchannelAccount.model.js | 2 +- .../openchannelAccount.options.js | 2 +- .../openchannelAccount/openchannelAccount.rpc.js | 2 +- .../openchannelAccount.socket.js | 2 +- server/api/openchannelApplication/index.js | 2 +- .../openchannelApplication.attributes.js | 2 +- .../openchannelApplication.controller.js | 2 +- .../openchannelApplication.model.js | 2 +- .../openchannelApplication.options.js | 2 +- .../openchannelApplication.rpc.js | 2 +- server/api/openchannelInteraction/index.js | 2 +- .../openchannelInteraction.attributes.js | 2 +- .../openchannelInteraction.controller.js | 2 +- .../openchannelInteraction.events.js | 2 +- .../openchannelInteraction.model.js | 2 +- .../openchannelInteraction.options.js | 2 +- .../openchannelInteraction.rpc.js | 2 +- .../openchannelInteraction.socket.js | 2 +- server/api/openchannelMessage/index.js | 2 +- .../openchannelMessage.attributes.js | 2 +- .../openchannelMessage.controller.js | 2 +- .../openchannelMessage.events.js | 2 +- .../openchannelMessage/openchannelMessage.model.js | 2 +- .../openchannelMessage.options.js | 2 +- .../openchannelMessage/openchannelMessage.rpc.js | 2 +- .../openchannelMessage.socket.js | 2 +- server/api/openchannelQueue/index.js | 2 +- .../openchannelQueue.attributes.js | 2 +- .../openchannelQueue.controller.js | 2 +- .../openchannelQueue/openchannelQueue.events.js | 2 +- .../api/openchannelQueue/openchannelQueue.model.js | 2 +- .../openchannelQueue/openchannelQueue.options.js | 2 +- .../api/openchannelQueue/openchannelQueue.rpc.js | 2 +- .../openchannelQueue/openchannelQueue.socket.js | 2 +- server/api/openchannelQueueReport/index.js | 2 +- .../openchannelQueueReport.attributes.js | 2 +- .../openchannelQueueReport.controller.js | 2 +- .../openchannelQueueReport.model.js | 2 +- .../openchannelQueueReport.options.js | 2 +- .../openchannelQueueReport.rpc.js | 2 +- server/api/openchannelTransferReport/index.js | 2 +- .../openchannelTransferReport.attributes.js | 2 +- .../openchannelTransferReport.controller.js | 2 +- .../openchannelTransferReport.model.js | 2 +- .../openchannelTransferReport.options.js | 2 +- server/api/pause/index.js | 2 +- server/api/pause/pause.attributes.js | 2 +- server/api/pause/pause.controller.js | 2 +- server/api/pause/pause.model.js | 2 +- server/api/pause/pause.options.js | 2 +- server/api/pause/pause.rpc.js | 2 +- server/api/plugin/index.js | 2 +- server/api/plugin/plugin.attributes.js | 2 +- server/api/plugin/plugin.controller.js | 2 +- server/api/plugin/plugin.events.js | 2 +- server/api/plugin/plugin.model.js | 2 +- server/api/plugin/plugin.options.js | 2 +- server/api/plugin/plugin.rpc.js | 2 +- server/api/plugin/plugin.socket.js | 2 +- server/api/pm2/index.js | 2 +- server/api/pm2/pm2.controller.js | 2 +- server/api/reportAgentPreview/index.js | 2 +- .../reportAgentPreview.attributes.js | 2 +- .../reportAgentPreview/reportAgentPreview.model.js | 2 +- .../reportAgentPreview.options.js | 2 +- .../reportAgentPreview/reportAgentPreview.rpc.js | 2 +- server/api/rpc/index.js | 2 +- server/api/rpc/rpc.controller.js | 2 +- server/api/schedule/index.js | 2 +- server/api/schedule/schedule.attributes.js | 2 +- server/api/schedule/schedule.controller.js | 2 +- server/api/schedule/schedule.model.js | 2 +- server/api/schedule/schedule.options.js | 2 +- server/api/screenRecording/index.js | 2 +- .../screenRecording/screenRecording.attributes.js | 2 +- .../screenRecording/screenRecording.controller.js | 2 +- .../api/screenRecording/screenRecording.model.js | 2 +- .../api/screenRecording/screenRecording.options.js | 2 +- server/api/setting/index.js | 2 +- server/api/setting/setting.attributes.js | 2 +- server/api/setting/setting.controller.js | 2 +- server/api/setting/setting.model.js | 2 +- server/api/setting/setting.options.js | 2 +- server/api/smsAccount/index.js | 2 +- server/api/smsAccount/smsAccount.attributes.js | 2 +- server/api/smsAccount/smsAccount.controller.js | 2 +- server/api/smsAccount/smsAccount.events.js | 2 +- server/api/smsAccount/smsAccount.model.js | 2 +- server/api/smsAccount/smsAccount.options.js | 2 +- server/api/smsAccount/smsAccount.rpc.js | 2 +- server/api/smsAccount/smsAccount.socket.js | 2 +- server/api/smsApplication/index.js | 2 +- .../smsApplication/smsApplication.attributes.js | 2 +- .../smsApplication/smsApplication.controller.js | 2 +- server/api/smsApplication/smsApplication.model.js | 2 +- .../api/smsApplication/smsApplication.options.js | 2 +- server/api/smsInteraction/index.js | 2 +- .../smsInteraction/smsInteraction.attributes.js | 2 +- .../smsInteraction/smsInteraction.controller.js | 2 +- server/api/smsInteraction/smsInteraction.events.js | 2 +- server/api/smsInteraction/smsInteraction.model.js | 2 +- .../api/smsInteraction/smsInteraction.options.js | 2 +- server/api/smsInteraction/smsInteraction.rpc.js | 2 +- server/api/smsInteraction/smsInteraction.socket.js | 2 +- server/api/smsMessage/index.js | 2 +- server/api/smsMessage/smsMessage.attributes.js | 2 +- server/api/smsMessage/smsMessage.controller.js | 2 +- server/api/smsMessage/smsMessage.events.js | 2 +- server/api/smsMessage/smsMessage.model.js | 2 +- server/api/smsMessage/smsMessage.options.js | 2 +- server/api/smsMessage/smsMessage.rpc.js | 2 +- server/api/smsMessage/smsMessage.socket.js | 2 +- server/api/smsQueue/index.js | 2 +- server/api/smsQueue/smsQueue.attributes.js | 2 +- server/api/smsQueue/smsQueue.controller.js | 2 +- server/api/smsQueue/smsQueue.events.js | 2 +- server/api/smsQueue/smsQueue.model.js | 2 +- server/api/smsQueue/smsQueue.options.js | 2 +- server/api/smsQueue/smsQueue.rpc.js | 2 +- server/api/smsQueue/smsQueue.socket.js | 2 +- server/api/smsQueueReport/index.js | 2 +- .../smsQueueReport/smsQueueReport.attributes.js | 2 +- .../smsQueueReport/smsQueueReport.controller.js | 2 +- server/api/smsQueueReport/smsQueueReport.model.js | 2 +- .../api/smsQueueReport/smsQueueReport.options.js | 2 +- server/api/smsQueueReport/smsQueueReport.rpc.js | 2 +- server/api/smsTransferReport/index.js | 2 +- .../smsTransferReport.attributes.js | 2 +- .../smsTransferReport.controller.js | 2 +- .../smsTransferReport/smsTransferReport.model.js | 2 +- .../smsTransferReport/smsTransferReport.options.js | 2 +- server/api/sound/index.js | 2 +- server/api/sound/sound.attributes.js | 2 +- server/api/sound/sound.controller.js | 2 +- server/api/sound/sound.model.js | 2 +- server/api/sound/sound.options.js | 2 +- server/api/sound/sound.rpc.js | 2 +- server/api/squareMessage/index.js | 2 +- .../api/squareMessage/squareMessage.attributes.js | 2 +- .../api/squareMessage/squareMessage.controller.js | 2 +- server/api/squareMessage/squareMessage.model.js | 2 +- server/api/squareMessage/squareMessage.options.js | 2 +- server/api/squareMessage/squareMessage.rpc.js | 2 +- server/api/squareOdbc/index.js | 2 +- server/api/squareOdbc/squareOdbc.attributes.js | 2 +- server/api/squareOdbc/squareOdbc.controller.js | 2 +- server/api/squareOdbc/squareOdbc.model.js | 2 +- server/api/squareOdbc/squareOdbc.options.js | 2 +- server/api/squareOdbc/squareOdbc.rpc.js | 2 +- server/api/squareProject/index.js | 2 +- .../api/squareProject/squareProject.attributes.js | 2 +- .../api/squareProject/squareProject.controller.js | 2 +- server/api/squareProject/squareProject.events.js | 2 +- server/api/squareProject/squareProject.model.js | 2 +- server/api/squareProject/squareProject.options.js | 2 +- server/api/squareProject/squareProject.rpc.js | 2 +- server/api/squareProject/squareProject.socket.js | 2 +- server/api/squareRecording/index.js | 2 +- .../squareRecording/squareRecording.attributes.js | 2 +- .../squareRecording/squareRecording.controller.js | 2 +- .../api/squareRecording/squareRecording.model.js | 2 +- .../api/squareRecording/squareRecording.options.js | 2 +- server/api/squareRecording/squareRecording.rpc.js | 2 +- server/api/squareReport/index.js | 2 +- server/api/squareReport/squareReport.attributes.js | 2 +- server/api/squareReport/squareReport.controller.js | 2 +- server/api/squareReport/squareReport.model.js | 2 +- server/api/squareReport/squareReport.options.js | 2 +- server/api/squareReport/squareReport.rpc.js | 2 +- server/api/squareReportDetail/index.js | 2 +- .../squareReportDetail.attributes.js | 2 +- .../squareReportDetail.controller.js | 2 +- .../squareReportDetail/squareReportDetail.model.js | 2 +- .../squareReportDetail.options.js | 2 +- .../squareReportDetail/squareReportDetail.rpc.js | 2 +- server/api/system/index.js | 2 +- server/api/system/system.controller.js | 2 +- server/api/tag/index.js | 2 +- server/api/tag/tag.attributes.js | 2 +- server/api/tag/tag.controller.js | 2 +- server/api/tag/tag.model.js | 2 +- server/api/tag/tag.options.js | 2 +- server/api/team/index.js | 2 +- server/api/team/team.attributes.js | 2 +- server/api/team/team.controller.js | 2 +- server/api/team/team.events.js | 2 +- server/api/team/team.model.js | 2 +- server/api/team/team.options.js | 2 +- server/api/team/team.rpc.js | 2 +- server/api/team/team.socket.js | 2 +- server/api/template/index.js | 2 +- server/api/template/template.attributes.js | 2 +- server/api/template/template.controller.js | 2 +- server/api/template/template.model.js | 2 +- server/api/template/template.options.js | 2 +- server/api/template/template.rpc.js | 2 +- server/api/trigger/index.js | 2 +- server/api/trigger/trigger.attributes.js | 2 +- server/api/trigger/trigger.controller.js | 2 +- server/api/trigger/trigger.model.js | 2 +- server/api/trigger/trigger.options.js | 2 +- server/api/trigger/trigger.rpc.js | 2 +- server/api/trunk/index.js | 2 +- server/api/trunk/trunk.attributes.js | 2 +- server/api/trunk/trunk.controller.js | 2 +- server/api/trunk/trunk.model.js | 2 +- server/api/trunk/trunk.options.js | 2 +- server/api/trunk/trunk.rpc.js | 2 +- server/api/user/index.js | 2 +- server/api/user/user.attributes.js | 2 +- server/api/user/user.controller.js | 2 +- server/api/user/user.events.js | 2 +- server/api/user/user.model.js | 2 +- server/api/user/user.options.js | 2 +- server/api/user/user.rpc.js | 2 +- server/api/user/user.socket.js | 2 +- server/api/userChatQueue/index.js | 2 +- .../api/userChatQueue/userChatQueue.attributes.js | 2 +- server/api/userChatQueue/userChatQueue.model.js | 2 +- server/api/userChatQueue/userChatQueue.options.js | 2 +- server/api/userFaxQueue/index.js | 2 +- server/api/userFaxQueue/userFaxQueue.attributes.js | 2 +- server/api/userFaxQueue/userFaxQueue.model.js | 2 +- server/api/userFaxQueue/userFaxQueue.options.js | 2 +- server/api/userMailQueue/index.js | 2 +- .../api/userMailQueue/userMailQueue.attributes.js | 2 +- server/api/userMailQueue/userMailQueue.model.js | 2 +- server/api/userMailQueue/userMailQueue.options.js | 2 +- server/api/userOpenchannelQueue/index.js | 2 +- .../userOpenchannelQueue.attributes.js | 2 +- .../userOpenchannelQueue.model.js | 2 +- .../userOpenchannelQueue.options.js | 2 +- server/api/userProfile/index.js | 2 +- server/api/userProfile/userProfile.attributes.js | 2 +- server/api/userProfile/userProfile.controller.js | 2 +- server/api/userProfile/userProfile.events.js | 2 +- server/api/userProfile/userProfile.model.js | 2 +- server/api/userProfile/userProfile.options.js | 2 +- server/api/userProfile/userProfile.rpc.js | 2 +- server/api/userProfile/userProfile.socket.js | 2 +- server/api/userProfileResource/index.js | 2 +- .../userProfileResource.attributes.js | 2 +- .../userProfileResource.controller.js | 2 +- .../userProfileResource.model.js | 2 +- .../userProfileResource.options.js | 2 +- server/api/userProfileSection/index.js | 2 +- .../userProfileSection.attributes.js | 2 +- .../userProfileSection.controller.js | 2 +- .../userProfileSection/userProfileSection.model.js | 2 +- .../userProfileSection.options.js | 2 +- server/api/userSmsQueue/index.js | 2 +- server/api/userSmsQueue/userSmsQueue.attributes.js | 2 +- server/api/userSmsQueue/userSmsQueue.model.js | 2 +- server/api/userSmsQueue/userSmsQueue.options.js | 2 +- server/api/userVoiceQueue/index.js | 2 +- .../userVoiceQueue/userVoiceQueue.attributes.js | 2 +- server/api/userVoiceQueue/userVoiceQueue.model.js | 2 +- .../api/userVoiceQueue/userVoiceQueue.options.js | 2 +- server/api/userVoiceQueueRt/index.js | 2 +- .../userVoiceQueueRt.attributes.js | 2 +- .../userVoiceQueueRt/userVoiceQueueRt.events.js | 2 +- .../api/userVoiceQueueRt/userVoiceQueueRt.model.js | 2 +- .../userVoiceQueueRt/userVoiceQueueRt.options.js | 2 +- .../api/userVoiceQueueRt/userVoiceQueueRt.rpc.js | 2 +- .../userVoiceQueueRt/userVoiceQueueRt.socket.js | 2 +- server/api/userWhatsappQueue/index.js | 2 +- .../userWhatsappQueue.attributes.js | 2 +- .../userWhatsappQueue/userWhatsappQueue.model.js | 2 +- .../userWhatsappQueue/userWhatsappQueue.options.js | 2 +- server/api/variable/index.js | 2 +- server/api/variable/variable.attributes.js | 2 +- server/api/variable/variable.controller.js | 2 +- server/api/variable/variable.model.js | 2 +- server/api/variable/variable.options.js | 2 +- server/api/variable/variable.rpc.js | 2 +- server/api/version/index.js | 2 +- server/api/version/version.controller.js | 2 +- server/api/voiceAgentReport/index.js | 2 +- .../voiceAgentReport.attributes.js | 2 +- .../voiceAgentReport.controller.js | 2 +- .../api/voiceAgentReport/voiceAgentReport.model.js | 2 +- .../voiceAgentReport/voiceAgentReport.options.js | 2 +- .../api/voiceAgentReport/voiceAgentReport.rpc.js | 2 +- server/api/voiceCallReport/index.js | 2 +- .../voiceCallReport/voiceCallReport.attributes.js | 2 +- .../voiceCallReport/voiceCallReport.controller.js | 2 +- .../api/voiceCallReport/voiceCallReport.model.js | 2 +- .../api/voiceCallReport/voiceCallReport.options.js | 2 +- server/api/voiceCallReport/voiceCallReport.rpc.js | 2 +- server/api/voiceChanSpy/index.js | 2 +- server/api/voiceChanSpy/voiceChanSpy.attributes.js | 2 +- server/api/voiceChanSpy/voiceChanSpy.controller.js | 2 +- server/api/voiceChanSpy/voiceChanSpy.model.js | 2 +- server/api/voiceChanSpy/voiceChanSpy.options.js | 2 +- server/api/voiceContext/index.js | 2 +- server/api/voiceContext/voiceContext.attributes.js | 2 +- server/api/voiceContext/voiceContext.controller.js | 2 +- server/api/voiceContext/voiceContext.model.js | 2 +- server/api/voiceContext/voiceContext.options.js | 2 +- server/api/voiceDialReport/index.js | 2 +- .../voiceDialReport/voiceDialReport.attributes.js | 2 +- .../voiceDialReport/voiceDialReport.controller.js | 2 +- .../api/voiceDialReport/voiceDialReport.model.js | 2 +- .../api/voiceDialReport/voiceDialReport.options.js | 2 +- server/api/voiceDialReport/voiceDialReport.rpc.js | 2 +- server/api/voiceExtension/index.js | 2 +- .../voiceExtension/voiceExtension.attributes.js | 2 +- .../voiceExtension/voiceExtension.controller.js | 2 +- server/api/voiceExtension/voiceExtension.events.js | 2 +- server/api/voiceExtension/voiceExtension.model.js | 2 +- .../api/voiceExtension/voiceExtension.options.js | 2 +- server/api/voiceExtension/voiceExtension.rpc.js | 2 +- server/api/voiceExtension/voiceExtension.socket.js | 2 +- server/api/voiceMail/index.js | 2 +- server/api/voiceMail/voiceMail.attributes.js | 2 +- server/api/voiceMail/voiceMail.controller.js | 2 +- server/api/voiceMail/voiceMail.model.js | 2 +- server/api/voiceMail/voiceMail.options.js | 2 +- server/api/voiceMailMessage/index.js | 2 +- .../voiceMailMessage.attributes.js | 2 +- .../voiceMailMessage.controller.js | 2 +- .../api/voiceMailMessage/voiceMailMessage.model.js | 2 +- .../voiceMailMessage/voiceMailMessage.options.js | 2 +- server/api/voiceMusicOnHold/index.js | 2 +- .../voiceMusicOnHold.attributes.js | 2 +- .../voiceMusicOnHold.controller.js | 2 +- .../api/voiceMusicOnHold/voiceMusicOnHold.model.js | 2 +- .../voiceMusicOnHold/voiceMusicOnHold.options.js | 2 +- server/api/voicePrefix/index.js | 2 +- server/api/voicePrefix/voicePrefix.attributes.js | 2 +- server/api/voicePrefix/voicePrefix.controller.js | 2 +- server/api/voicePrefix/voicePrefix.events.js | 2 +- server/api/voicePrefix/voicePrefix.model.js | 2 +- server/api/voicePrefix/voicePrefix.options.js | 2 +- server/api/voicePrefix/voicePrefix.rpc.js | 2 +- server/api/voicePrefix/voicePrefix.socket.js | 2 +- server/api/voiceQueue/index.js | 2 +- server/api/voiceQueue/voiceQueue.attributes.js | 2 +- server/api/voiceQueue/voiceQueue.controller.js | 2 +- server/api/voiceQueue/voiceQueue.events.js | 2 +- server/api/voiceQueue/voiceQueue.model.js | 2 +- server/api/voiceQueue/voiceQueue.options.js | 2 +- server/api/voiceQueue/voiceQueue.rpc.js | 2 +- server/api/voiceQueue/voiceQueue.socket.js | 2 +- server/api/voiceQueueReport/index.js | 2 +- .../voiceQueueReport.attributes.js | 2 +- .../voiceQueueReport.controller.js | 2 +- .../voiceQueueReport/voiceQueueReport.events.js | 2 +- .../api/voiceQueueReport/voiceQueueReport.model.js | 2 +- .../voiceQueueReport/voiceQueueReport.options.js | 2 +- .../api/voiceQueueReport/voiceQueueReport.rpc.js | 2 +- .../voiceQueueReport/voiceQueueReport.socket.js | 2 +- server/api/voiceQueuesLog/index.js | 2 +- .../voiceQueuesLog/voiceQueuesLog.attributes.js | 2 +- .../voiceQueuesLog/voiceQueuesLog.controller.js | 2 +- server/api/voiceQueuesLog/voiceQueuesLog.model.js | 2 +- .../api/voiceQueuesLog/voiceQueuesLog.options.js | 2 +- server/api/voiceRecording/index.js | 2 +- .../voiceRecording/voiceRecording.attributes.js | 2 +- .../voiceRecording/voiceRecording.controller.js | 2 +- server/api/voiceRecording/voiceRecording.model.js | 2 +- .../api/voiceRecording/voiceRecording.options.js | 2 +- server/api/voiceRecording/voiceRecording.rpc.js | 2 +- server/api/voiceTransferReport/index.js | 2 +- .../voiceTransferReport.attributes.js | 2 +- .../voiceTransferReport.controller.js | 2 +- .../voiceTransferReport.model.js | 2 +- .../voiceTransferReport.options.js | 2 +- .../voiceTransferReport/voiceTransferReport.rpc.js | 2 +- server/api/webbar/index.js | 2 +- server/api/webbar/webbar.controller.js | 2 +- server/api/whatsappAccount/index.js | 2 +- .../whatsappAccount/whatsappAccount.attributes.js | 2 +- .../whatsappAccount/whatsappAccount.controller.js | 2 +- .../api/whatsappAccount/whatsappAccount.events.js | 2 +- .../api/whatsappAccount/whatsappAccount.model.js | 2 +- .../api/whatsappAccount/whatsappAccount.options.js | 2 +- server/api/whatsappAccount/whatsappAccount.rpc.js | 2 +- .../api/whatsappAccount/whatsappAccount.socket.js | 2 +- server/api/whatsappApplication/index.js | 2 +- .../whatsappApplication.attributes.js | 2 +- .../whatsappApplication.controller.js | 2 +- .../whatsappApplication.model.js | 2 +- .../whatsappApplication.options.js | 2 +- server/api/whatsappInteraction/index.js | 2 +- .../whatsappInteraction.attributes.js | 2 +- .../whatsappInteraction.controller.js | 2 +- .../whatsappInteraction.events.js | 2 +- .../whatsappInteraction.model.js | 2 +- .../whatsappInteraction.options.js | 2 +- .../whatsappInteraction/whatsappInteraction.rpc.js | 2 +- .../whatsappInteraction.socket.js | 2 +- server/api/whatsappMessage/index.js | 2 +- .../whatsappMessage/whatsappMessage.attributes.js | 2 +- .../whatsappMessage/whatsappMessage.controller.js | 2 +- .../api/whatsappMessage/whatsappMessage.events.js | 2 +- .../api/whatsappMessage/whatsappMessage.model.js | 2 +- .../api/whatsappMessage/whatsappMessage.options.js | 2 +- server/api/whatsappMessage/whatsappMessage.rpc.js | 2 +- .../api/whatsappMessage/whatsappMessage.socket.js | 2 +- server/api/whatsappQueue/index.js | 2 +- .../api/whatsappQueue/whatsappQueue.attributes.js | 2 +- .../api/whatsappQueue/whatsappQueue.controller.js | 2 +- server/api/whatsappQueue/whatsappQueue.events.js | 2 +- server/api/whatsappQueue/whatsappQueue.model.js | 2 +- server/api/whatsappQueue/whatsappQueue.options.js | 2 +- server/api/whatsappQueue/whatsappQueue.rpc.js | 2 +- server/api/whatsappQueue/whatsappQueue.socket.js | 2 +- server/api/whatsappQueueReport/index.js | 2 +- .../whatsappQueueReport.attributes.js | 2 +- .../whatsappQueueReport.controller.js | 2 +- .../whatsappQueueReport.model.js | 2 +- .../whatsappQueueReport.options.js | 2 +- .../whatsappQueueReport/whatsappQueueReport.rpc.js | 2 +- server/api/whatsappTransferReport/index.js | 2 +- .../whatsappTransferReport.attributes.js | 2 +- .../whatsappTransferReport.controller.js | 2 +- .../whatsappTransferReport.model.js | 2 +- .../whatsappTransferReport.options.js | 2 +- server/app.js | 2 +- server/components/auth/service.js | 2 +- .../components/encryptor/create-cypher-fallback.js | 2 +- server/components/encryptor/index.js | 2 +- server/components/export/csv.js | 2 +- server/components/export/pdf.js | 2 +- server/components/export/xlsx.js | 2 +- server/components/extensions/rewrite.js | 2 +- server/components/import/cm/csv2.js | 2 +- server/components/integrations/configuration.js | 2 +- server/components/interaction/service.js | 2 +- server/components/license/service.js | 2 +- server/components/parsers/advancedSearch.js | 2 +- server/components/parsers/qs.js | 2 +- server/config/api-documentation.js | 2 +- server/config/config.service.js | 2 +- server/config/environment/development.js | 2 +- server/config/environment/index.js | 2 +- server/config/environment/production.js | 1 - server/config/environment/shared.js | 2 +- server/config/environment/test.js | 2 +- server/config/express.js | 2 +- server/config/license/hardware.js | 2 +- server/config/license/index.js | 2 +- server/config/license/util.js | 2 +- server/config/local.env.js | 2 +- server/config/logger.js | 2 +- server/config/pm2/config.js | 2 +- server/config/pm2/index.js | 2 +- server/config/schedule/chat.js | 2 +- server/config/schedule/index.js | 2 +- server/config/schedule/transcribe.js | 2 +- server/config/schedule/whatsapp.js | 2 +- server/config/seedContact.js | 2 +- server/config/seedDB/analyticReports.js | 2 +- server/config/seedDB/analyticTreeReports.js | 2 +- server/config/seedDB/chanspy.js | 2 +- server/config/seedDB/companies.js | 2 +- server/config/seedDB/contacts.js | 2 +- server/config/seedDB/dispositions.js | 2 +- server/config/seedDB/index.js | 2 +- server/config/seedDB/intervals.js | 2 +- server/config/seedDB/jscriptyProjects.js | 2 +- server/config/seedDB/lists.js | 2 +- server/config/seedDB/mailAccounts.js | 2 +- server/config/seedDB/mailSubstatuses.js | 2 +- server/config/seedDB/migrations.js | 2 +- server/config/seedDB/pauses.js | 2 +- server/config/seedDB/report/default.js | 2 +- server/config/seedDB/report/fields.js | 2 +- server/config/seedDB/report/index.js | 2 +- server/config/seedDB/sounds.js | 2 +- server/config/seedDB/squareOdbc.js | 2 +- server/config/seedDB/squareProjects.js | 2 +- server/config/seedDB/tags.js | 2 +- server/config/seedDB/teams.js | 2 +- server/config/seedDB/tree/index.js | 2 +- server/config/seedDB/trunks.js | 2 +- server/config/seedDB/userProfiles.js | 2 +- server/config/seedDB/users.js | 2 +- server/config/seedDB/variables.js | 2 +- server/config/seedDB/voiceContexts.js | 2 +- server/config/seedDB/voiceExtensions.js | 2 +- server/config/seedDB/voiceMusicOnHold.js | 2 +- server/config/seedDB/voiceQueues.js | 2 +- server/config/seedUsers.js | 2 +- server/config/socketio.js | 2 +- server/config/triggers/index.js | 2 +- server/config/utils.js | 2 +- server/errors/index.js | 2 +- server/globals.js | 2 +- server/migrations/2.0.12.js | 2 +- server/migrations/2.0.13.js | 2 +- server/migrations/2.0.14.js | 2 +- server/migrations/2.0.15.js | 2 +- server/migrations/2.0.16.js | 2 +- server/migrations/2.0.17.js | 2 +- server/migrations/2.0.18.js | 2 +- server/migrations/2.0.19.js | 2 +- server/migrations/2.0.20.js | 2 +- server/migrations/2.0.21.js | 2 +- server/migrations/2.0.22.js | 2 +- server/migrations/2.0.23.js | 2 +- server/migrations/2.0.24.js | 2 +- server/migrations/2.0.25.js | 2 +- server/migrations/2.0.26.js | 2 +- server/migrations/2.0.27.js | 2 +- server/migrations/2.0.28.js | 2 +- server/migrations/2.0.29.js | 2 +- server/migrations/2.0.30.js | 2 +- server/migrations/2.0.31.js | 2 +- server/migrations/2.0.32.js | 2 +- server/migrations/2.0.33.js | 2 +- server/migrations/2.0.34.js | 2 +- server/migrations/2.0.35.js | 2 +- server/migrations/2.0.36.js | 2 +- server/migrations/2.0.37.js | 2 +- server/migrations/2.0.38.js | 2 +- server/migrations/2.0.39.js | 2 +- server/migrations/2.0.40.js | 2 +- server/migrations/2.0.41.js | 2 +- server/migrations/2.0.42.js | 2 +- server/migrations/2.0.43.js | 2 +- server/migrations/2.0.44.js | 2 +- server/migrations/2.0.45.js | 2 +- server/migrations/2.0.46.js | 2 +- server/migrations/2.0.47.js | 2 +- server/migrations/2.0.48.js | 2 +- server/migrations/2.0.49.js | 2 +- server/migrations/2.0.50.js | 2 +- server/migrations/2.0.51.js | 2 +- server/migrations/2.0.52.js | 2 +- server/migrations/2.0.53.js | 2 +- server/migrations/2.0.54.js | 2 +- server/migrations/2.0.55.js | 2 +- server/migrations/2.0.56.js | 2 +- server/migrations/2.0.57.js | 2 +- server/migrations/2.0.58.js | 2 +- server/migrations/2.0.59.js | 2 +- server/migrations/2.0.60.js | 2 +- server/migrations/2.0.61.js | 2 +- server/migrations/2.0.62.js | 2 +- server/migrations/2.0.63.js | 2 +- server/migrations/2.0.64.js | 2 +- server/migrations/2.0.65.js | 2 +- server/migrations/2.0.66.js | 2 +- server/migrations/2.0.67.js | 2 +- server/migrations/2.0.68.js | 2 +- server/migrations/2.0.69.js | 2 +- server/migrations/2.0.70.js | 2 +- server/migrations/2.0.71.js | 2 +- server/migrations/2.0.72.js | 2 +- server/migrations/2.0.73.js | 2 +- server/migrations/2.0.74.js | 2 +- server/migrations/2.0.75.js | 2 +- server/migrations/2.0.76.js | 2 +- server/migrations/2.0.77.js | 2 +- server/migrations/2.0.78.js | 2 +- server/migrations/2.0.79.js | 2 +- server/migrations/2.0.80.js | 2 +- server/migrations/2.0.81.js | 2 +- server/migrations/2.0.82.js | 2 +- server/migrations/2.0.83.js | 2 +- server/migrations/2.0.84.js | 2 +- server/migrations/2.1.0.js | 2 +- server/migrations/2.2.0.js | 2 +- server/migrations/2.2.1.js | 2 +- server/migrations/2.2.2.js | 2 +- server/migrations/2.2.3.js | 2 +- server/migrations/2.2.4.js | 2 +- server/migrations/2.2.5.js | 2 +- server/migrations/2.2.6.js | 2 +- server/migrations/2.3.0.js | 2 +- server/migrations/2.3.1.js | 2 +- server/migrations/2.3.10.js | 2 +- server/migrations/2.3.2.js | 2 +- server/migrations/2.3.3.js | 2 +- server/migrations/2.3.4.js | 2 +- server/migrations/2.3.5.js | 2 +- server/migrations/2.3.6.js | 2 +- server/migrations/2.3.7.js | 2 +- server/migrations/2.3.8.js | 2 +- server/migrations/2.3.9.js | 2 +- server/migrations/2.3.91.js | 2 +- server/migrations/2.3.92.js | 2 +- server/migrations/2.3.93.js | 2 +- server/migrations/2.3.94.js | 2 +- server/migrations/2.3.95.js | 2 +- server/migrations/2.3.96.js | 2 +- server/migrations/2.3.97.js | 2 +- server/migrations/2.3.98.js | 2 +- server/migrations/2.4.0.js | 2 +- server/migrations/2.4.1.js | 2 +- server/migrations/2.4.10.js | 2 +- server/migrations/2.4.11.js | 2 +- server/migrations/2.4.12.js | 2 +- server/migrations/2.4.13.js | 2 +- server/migrations/2.4.14.js | 2 +- server/migrations/2.4.15.js | 2 +- server/migrations/2.4.16.js | 2 +- server/migrations/2.4.17.js | 2 +- server/migrations/2.4.18.js | 2 +- server/migrations/2.4.19.js | 2 +- server/migrations/2.4.2.js | 2 +- server/migrations/2.4.20.js | 2 +- server/migrations/2.4.21.js | 2 +- server/migrations/2.4.3.js | 2 +- server/migrations/2.4.4.js | 2 +- server/migrations/2.4.5.js | 2 +- server/migrations/2.4.6.js | 2 +- server/migrations/2.4.7.js | 2 +- server/migrations/2.4.8.js | 2 +- server/migrations/2.4.9.js | 2 +- server/migrations/2.5.0.js | 2 +- server/migrations/2.5.1.js | 2 +- server/migrations/2.5.2.js | 2 +- server/migrations/2.5.3.js | 2 +- server/migrations/2.5.4.js | 2 +- server/migrations/2.5.5.js | 2 +- server/migrations/2.5.6.js | 2 +- server/migrations/2.5.7.js | 2 +- server/migrations/2.5.8.js | 2 +- server/migrations/2.5.9.js | 2 +- server/migrations/3.0.0-alpha.js | 2 +- server/mysqldb/index.js | 2 +- server/mysqldb/infile-stream-factory.js | 2 +- server/mysqldb/sequelize-initialization.js | 2 +- server/rediscache/index.js | 2 +- server/routes.js | 2 +- server/rpc/index.js | 2 +- server/services/agi/channel.js | 2 +- server/services/agi/error.js | 2 +- server/services/agi/graph/index.js | 2 +- server/services/agi/index.js | 2 +- server/services/agi/mailRpc/index.js | 2 +- server/services/agi/reply.js | 2 +- server/services/agi/rpc/index.js | 2 +- server/services/agi/scripts/aws/index.js | 2 +- server/services/agi/scripts/aws/lex/index.js | 2 +- server/services/agi/scripts/aws/lex/lib/api.js | 2 +- server/services/agi/scripts/aws/polly/index.js | 2 +- server/services/agi/scripts/aws/polly/lib/api.js | 2 +- server/services/agi/scripts/google/asr/index.js | 2 +- server/services/agi/scripts/google/asr/lib/api.js | 2 +- server/services/agi/scripts/google/index.js | 2 +- server/services/agi/scripts/index.js | 2 +- server/services/agi/scripts/sestek/index.js | 2 +- server/services/agi/scripts/sestek/nda/index.js | 2 +- server/services/agi/scripts/tilde/asr/index.js | 2 +- server/services/agi/scripts/tilde/asr/lib/api.js | 2 +- server/services/agi/scripts/tilde/index.js | 2 +- server/services/agi/server.js | 2 +- server/services/agi/vertices.js | 2 +- server/services/ami/acw/index.js | 2 +- server/services/ami/ami.js | 2 +- server/services/ami/client.js | 2 +- server/services/ami/dialer/action.js | 2 +- server/services/ami/dialer/agentComplete.js | 2 +- server/services/ami/dialer/final.js | 2 +- server/services/ami/dialer/hangup.js | 2 +- server/services/ami/dialer/history.js | 2 +- server/services/ami/dialer/index.js | 2 +- server/services/ami/dialer/queueCallerAbandon.js | 2 +- server/services/ami/fax/action.js | 2 +- server/services/ami/fax/index.js | 2 +- server/services/ami/fax/rpcDb.js | 2 +- server/services/ami/fax/util/gs.js | 2 +- server/services/ami/fax/util/util.js | 2 +- server/services/ami/index.js | 2 +- server/services/ami/model/agent.js | 2 +- server/services/ami/model/campaign.js | 2 +- server/services/ami/model/channel.js | 2 +- server/services/ami/model/deskAccount.js | 2 +- server/services/ami/model/dynamics365Account.js | 2 +- server/services/ami/model/faxAccount.js | 2 +- server/services/ami/model/freshdeskAccount.js | 2 +- server/services/ami/model/freshsalesAccount.js | 2 +- server/services/ami/model/queueReport.js | 2 +- server/services/ami/model/salesforceAccount.js | 2 +- server/services/ami/model/servicenowAccount.js | 2 +- server/services/ami/model/sugarcrmAccount.js | 2 +- server/services/ami/model/telephone.js | 2 +- server/services/ami/model/template.js | 2 +- server/services/ami/model/trigger.js | 2 +- server/services/ami/model/trunk.js | 2 +- server/services/ami/model/voiceExtension.js | 2 +- server/services/ami/model/voiceQueue.js | 2 +- server/services/ami/model/vtigerAccount.js | 2 +- server/services/ami/model/zendeskAccount.js | 2 +- server/services/ami/model/zohoAccount.js | 2 +- server/services/ami/preview/action.js | 2 +- server/services/ami/preview/index.js | 2 +- server/services/ami/preview/rpcDb.js | 2 +- server/services/ami/preview/util/util.js | 2 +- server/services/ami/properties.js | 2 +- server/services/ami/realtime/index.js | 2 +- server/services/ami/report/index.js | 2 +- server/services/ami/report/userReport.js | 2 +- server/services/ami/report/voiceAgentReport.js | 2 +- server/services/ami/report/voiceCallReport.js | 2 +- server/services/ami/report/voiceDialReport.js | 2 +- server/services/ami/report/voiceQueueReport.js | 2 +- server/services/ami/rpc/agentReportPreview.js | 2 +- server/services/ami/rpc/attachment.js | 2 +- server/services/ami/rpc/campaign.js | 2 +- server/services/ami/rpc/cmContact.js | 2 +- server/services/ami/rpc/cmHopper.js | 2 +- server/services/ami/rpc/cmHopperBlack.js | 2 +- server/services/ami/rpc/cmHopperFinal.js | 2 +- server/services/ami/rpc/cmHopperHistory.js | 2 +- server/services/ami/rpc/faxAccount.js | 2 +- server/services/ami/rpc/faxMessage.js | 2 +- server/services/ami/rpc/integrations/desk.js | 2 +- .../services/ami/rpc/integrations/dynamics365.js | 2 +- server/services/ami/rpc/integrations/freshdesk.js | 2 +- server/services/ami/rpc/integrations/freshsales.js | 2 +- server/services/ami/rpc/integrations/salesforce.js | 2 +- server/services/ami/rpc/integrations/servicenow.js | 2 +- server/services/ami/rpc/integrations/sugarcrm.js | 2 +- server/services/ami/rpc/integrations/vtiger.js | 2 +- server/services/ami/rpc/integrations/zendesk.js | 2 +- server/services/ami/rpc/integrations/zoho.js | 2 +- server/services/ami/rpc/memberReport.js | 2 +- server/services/ami/rpc/template.js | 2 +- server/services/ami/rpc/trigger.js | 2 +- server/services/ami/rpc/trunk.js | 2 +- server/services/ami/rpc/user.js | 2 +- server/services/ami/rpc/voiceAgentReport.js | 2 +- server/services/ami/rpc/voiceCallReport.js | 2 +- server/services/ami/rpc/voiceDialReport.js | 2 +- server/services/ami/rpc/voiceExtension.js | 2 +- server/services/ami/rpc/voiceQueue.js | 2 +- server/services/ami/rpc/voiceQueueReport.js | 2 +- server/services/ami/rpc/voiceQueueRt.js | 2 +- server/services/ami/rpc/voiceRecording.js | 2 +- server/services/ami/rpc/voiceTransferReport.js | 2 +- server/services/ami/server/index.js | 2 +- server/services/ami/trigger/cmContact/index.js | 2 +- server/services/ami/trigger/index.js | 2 +- server/services/ami/trigger/integration/desk.js | 2 +- .../ami/trigger/integration/dynamics365.js | 2 +- .../services/ami/trigger/integration/freshdesk.js | 2 +- .../services/ami/trigger/integration/freshsales.js | 2 +- server/services/ami/trigger/integration/index.js | 2 +- .../services/ami/trigger/integration/salesforce.js | 2 +- .../services/ami/trigger/integration/servicenow.js | 2 +- .../services/ami/trigger/integration/sugarcrm.js | 2 +- server/services/ami/trigger/integration/util.js | 2 +- server/services/ami/trigger/integration/vtiger.js | 2 +- server/services/ami/trigger/integration/zendesk.js | 2 +- server/services/ami/trigger/integration/zoho.js | 2 +- server/services/ami/trigger/script/index.js | 2 +- server/services/ami/trigger/urlforward/index.js | 2 +- server/services/email/client.js | 2 +- server/services/email/index.js | 2 +- server/services/email/lib/email.js | 2 +- server/services/email/lib/imap.js | 2 +- server/services/email/lib/smtp.js | 2 +- server/services/email/lib/utils.js | 2 +- server/services/email/model/mailAccount.js | 2 +- server/services/email/realtime/index.js | 2 +- server/services/email/rpc/mailAccount.js | 2 +- server/services/email/server/index.js | 2 +- server/services/express/index.js | 2 +- server/services/routing/client.js | 2 +- server/services/routing/index.js | 2 +- server/services/routing/lib/rule-engine.js | 2 +- server/services/routing/mailRpc/index.js | 2 +- server/services/routing/model/agent.js | 2 +- server/services/routing/model/chatQueue.js | 2 +- server/services/routing/model/faxQueue.js | 2 +- server/services/routing/model/interval.js | 2 +- server/services/routing/model/mailQueue.js | 2 +- server/services/routing/model/openchannelQueue.js | 2 +- server/services/routing/model/smsQueue.js | 2 +- server/services/routing/model/whatsappQueue.js | 2 +- server/services/routing/realtime/index.js | 2 +- server/services/routing/rpc/chatInteraction.js | 2 +- server/services/routing/rpc/chatMessage.js | 2 +- server/services/routing/rpc/chatQueue.js | 2 +- server/services/routing/rpc/chatQueueReport.js | 2 +- server/services/routing/rpc/faxInteraction.js | 2 +- server/services/routing/rpc/faxMessage.js | 2 +- server/services/routing/rpc/faxQueue.js | 2 +- server/services/routing/rpc/faxQueueReport.js | 2 +- server/services/routing/rpc/interval.js | 2 +- server/services/routing/rpc/mailInteraction.js | 2 +- server/services/routing/rpc/mailMessage.js | 2 +- server/services/routing/rpc/mailQueue.js | 2 +- server/services/routing/rpc/mailQueueReport.js | 2 +- .../services/routing/rpc/openchannelInteraction.js | 2 +- server/services/routing/rpc/openchannelMessage.js | 2 +- server/services/routing/rpc/openchannelQueue.js | 2 +- .../services/routing/rpc/openchannelQueueReport.js | 2 +- server/services/routing/rpc/smsInteraction.js | 2 +- server/services/routing/rpc/smsMessage.js | 2 +- server/services/routing/rpc/smsQueue.js | 2 +- server/services/routing/rpc/smsQueueReport.js | 2 +- server/services/routing/rpc/user.js | 2 +- server/services/routing/rpc/whatsappInteraction.js | 2 +- server/services/routing/rpc/whatsappMessage.js | 2 +- server/services/routing/rpc/whatsappQueue.js | 2 +- server/services/routing/rpc/whatsappQueueReport.js | 2 +- .../services/routing/server/applications/agent.js | 2 +- .../routing/server/applications/amazonlex.js | 2 +- .../routing/server/applications/autoreply.js | 2 +- .../services/routing/server/applications/close.js | 2 +- .../routing/server/applications/dialogflow.js | 2 +- .../routing/server/applications/dialogflowV2.js | 2 +- .../services/routing/server/applications/gotoif.js | 2 +- .../services/routing/server/applications/gotop.js | 2 +- .../routing/server/applications/message.js | 2 +- .../services/routing/server/applications/noop.js | 2 +- .../services/routing/server/applications/queue.js | 2 +- .../routing/server/applications/strategy/agent.js | 2 +- .../server/applications/strategy/beepall.js | 2 +- .../routing/server/applications/strategy/index.js | 2 +- .../server/applications/strategy/rrmemory.js | 2 +- .../routing/server/applications/strategy/util.js | 2 +- .../services/routing/server/applications/system.js | 2 +- server/services/routing/server/applications/tag.js | 2 +- .../services/routing/server/applications/utils.js | 2 +- server/services/routing/server/index.js | 2 +- server/services/routing/server/interval.js | 2 +- server/services/xdr/agents.controller.js | 2 +- server/services/xdr/calls.controller.js | 2 +- server/services/xdr/core.controller.js | 2 +- server/services/xdr/dials.controller.js | 2 +- server/services/xdr/index.js | 2 +- server/services/xdr/members.controller.js | 2 +- server/services/xdr/queues.controller.js | 2 +- server/services/xdr/recordings.controller.js | 2 +- server/services/xdr/transfers.controller.js | 2 +- server/services/xdr/utils.js | 2 +- server/utils/build-info.js | 2 +- server/utils/mask-sensistive-data.js | 2 +- snippets/chat_v3.0.0-alpha.2/index.html | 2 +- 1412 files changed, 1434 insertions(+), 1435 deletions(-) create mode 100644 public/app-60661515a038c3291c79.js delete mode 100644 public/app-865e7f24c58986c08fdf.js delete mode 100644 server/config/environment/production.js diff --git a/apidoc/api_project.js b/apidoc/api_project.js index 0ee9ae2..7c6f0aa 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-12-04T18:47:37.415Z", + "time": "2020-12-04T19:02:27.667Z", "url": "https://apidocjs.com", "version": "0.25.0" } diff --git a/apidoc/api_project.json b/apidoc/api_project.json index 9d80843..9d16932 100644 --- a/apidoc/api_project.json +++ b/apidoc/api_project.json @@ -17,7 +17,7 @@ "apidoc": "0.3.0", "generator": { "name": "apidoc", - "time": "2020-12-04T18:47:37.415Z", + "time": "2020-12-04T19:02:27.667Z", "url": "https://apidocjs.com", "version": "0.25.0" } diff --git a/package.json b/package.json index 5768e6c..b846dfa 100644 --- a/package.json +++ b/package.json @@ -123,10 +123,10 @@ "zip-dir": "^2.0.0" }, "xcally": { - "shortHash": "f738f95", + "shortHash": "362b939", "branch": "develop", "tag": "v3.0.0-alpha.2", - "committedOn": "2020-12-04T18:43:43.000Z", - "buildDate": "2020-12-04T18:47:43.066Z" + "committedOn": "2020-12-04T18:59:43.000Z", + "buildDate": "2020-12-04T19:02:33.271Z" } } diff --git a/public/769-2d4ddce803566107f221.js b/public/769-2d4ddce803566107f221.js index 23546b4..0213cf3 100644 --- a/public/769-2d4ddce803566107f221.js +++ b/public/769-2d4ddce803566107f221.js @@ -1,2 +1,2 @@ /*! For license information please see 769-2d4ddce803566107f221.js.LICENSE.txt */ -var a2_0x3f75=["animate","blob","%d minuta"," skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t","a8m.fuzzy","user_agent","matchingKeys","hourValues","tweetEmbed","_onClose","related","parentNode","parameters parent parse partial partition partitions pascal passing password password_grace_time ","hljs-","right","themeColor","isUTC",'',"URL","physics_apply_local_force physics_apply_local_impulse ","matchState","ExpansionPanelGroup '{0}' is not available! Did you use md-component-id='{0}'?","$md.swipeup","//www.","noDecrementSeconds","heart_decoration","moment.invalid(/* ","ReadOnlyMemoryError Real ReentrantLock Ref Regex RegexMatch RemoteChannel RemoteException RevString RoundingMode ","FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK","%d diogan","dseOnValidUpdate ","badInput",':\n',"%[qQwWx]?\\[","deb887","compress cond cons cons? continue count curry cut cycle dec ",' \n','
','"["',"click touchstart","dynamic dynamicType else enum extension fallthrough false fileprivate final for func ",'md-offset-size="',"[data-uib-accordion-header],","useHttpService","ctFolder ","$cookies","ftComponents ","7fffd4","has been deprecated. Please use a `","dragPointer","itemChange","uibModalBackdrop","space_invader","keys",'emit "unhold"',"#455a64","material.components.fabSpeedDial","invokeHook","отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы ","\\w+","?^svPart","md.data.table","matchPassword","nekoliko sekundi","bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt ","[;{}]","{-#","swap","ngCsv.directives","néhány másodperce","sound","CLICK_OUTSIDE","'handler' must be a string, function, TargetState, or have a state: 'newtarget' property","icegatheringstatechange","supercede","password","Анализ ","assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface ","0 0","Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki","EDMS_ACCESS_TABLE_NAME ","ISearchFactory ","Жк_Дй_Шй_Шр_Бй_Жм_Иш","SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING ","YYYYY","Failed to sanitize html because the element is clobbered: {0}","material.components.radioButton"," ","out","erb","'iensas secunds","app/directives/label-item/label-view.html","%d日","एक महिना","New-WinEvent New-WSManInstance New-WSManSessionOption Out-Default Out-File Out-GridView Out-Host Out-Null Out-Printer Out-String Pop-Location ","for threadfor","ПроверитьПараметрЗнач ","maH","which","controller","IJobFactory ","capnproto","rgb","einem Monat","store","ári","State '",'role="button" ',"[minulú stredu o] LT","offsetX","okta diimmu","syringe","YYYY-MM-DDTHH:mm:ss.SSS","ds_priority_destroy ds_priority_clear ds_priority_copy ","<3","ITabSheet ","#66CC33","(\\n{2}|_)","ngCsv.config","camera_set_end_script camera_set_view_pos camera_set_view_size ","border-top-right-radius","getRegisteredParts","timezone","obj || (obj = {});\n","queryItemsPool queryMagazinePool queryWeaponPool rad radioChannelAdd radioChannelCreate ","clearRipples","jtRight ","$STORAGE_KEY","stubFalse"," rem remainder remarray rembox remcomps remcon remcoord remfun remfunction","%d сехет","receiveUpdate()","$mdInteraction","mdDateRangePicker","SUMMARY","srcList","gpu_set_colourwriteenable gpu_set_alphatestenable ","ЕПусто ","ctDBMultiEllipsis ","onHandshake",'',"%d సంవత్సరాలు","SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE "," jaj","offAny","expandPanel","rid:%s %s %s"," is connecting","INQ",'
',"Min_Sen_Sel_Rab_Kam_Jum_Sab","подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки ","calendar","note","Sul_Lun_Meu_Mer_Yao_Gwe_Sad","ժամ","wink","leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec","_bottom","%d நாட்கள்","\\s*}","_isRTL","getTable","Windows NT 4.0","encodeDashes","LookUpRequisiteNames ","=?max","8fbc8f","un giorno","reconnect_attempt","ФайлЗанят ","scaled_inv_chi_square exponential inv_gamma weibull frechet ","uns segundos","defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir ","first-letter","ایک گھنٹہ","$$watchExpr","_stateRegistry","pc lr sp ip sl sb fp ","NOTICE_BLOCK_AFTER_FINISH_EVENT ","хвіліну_хвіліны_хвілін","(:|=|;|,|//|/\\*|$)","flowCtrl","_confirmed","draw_surface_part_ext draw_surface_general surface_getpixel ","shaders_are_supported vertex_format_begin vertex_format_end ","differenceWith","rgb(0, 245, 0)","moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute ","publicVariable publicVariableClient publicVariableServer pushBack pushBackUnique putWeaponPool ","mdContent","sortingInProgress","HEAD","ngMessage","main","isContentEditable","iso val tag trn box ref","mdExpansionPanel","[\\.#:&\\[>]","timer_M","deleteLocation deleteMarker deleteMarkerLocal deleteRange deleteResources deleteSite deleteStatus ","resetChipBuffer","run say summarize write ","dtan darcsin darccos darctan darctan2 degtorad radtodeg power logn ","දින %d","attaching ack callback to event","\\s*\\.end\\s[a-zA-Z0-9]*","strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr ","rgb(0, 255, 128)","retinaScale","rgb(0, 245, 245)","Get-NsxLogicalRouterInterface Get-NsxLogicalRouterOspf Get-NsxLogicalRouterOspfArea Get-NsxLogicalRouterOspfInterface Get-NsxLogicalRouterPrefix ","SYSRES_CONST_VIEWER_REQUISITE_CODE ","heavy_exclamation_mark","datepickerPopupTemplateUrl","[jana] LT","win8_share_image win8_share_screenshot win8_share_file ","multiTooltipTemplate","order","stretchTabs"," edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth","_updateView","unu minuto","Set-PSMetaConfigDocInsProcessedBeforeMeta Set-PSMetaConfigVersionInfoV2 Set-PSReadLineKeyHandler Set-PSReadLineOption Set-PSRepository Set-PSTopConfigurationName ","gpu_set_tex_repeat_ext gpu_set_tex_mip_filter ","nrstr|put|qcmpres|qleft|qlowcase|qscan|","ìsẹjú %d","truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first ","mdp-event","#afb42b","SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE ",'ng-if="$mdTabsCtrl.enableDisconnect || tab.shouldRender()">
','Invalid "target" value, use a valid Element',"gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents ","Windows 7","TIMER_J","[object NodeList]","directionY","._md-nav-button","armasm","and include_once list abstract global private echo interface as static endswitch ","ensureScalesHaveIDs","Test-NodeResourceSource Test-NodeResources Test-ScriptFileInfo Test-VMHostProfileCompliance Test-VMHostSnmp Test-VsanClusterHealth Test-VsanNetworkPerformance "," disamni","една година","md-border-bottom","[Фардо соати] LT","New-ModuleManifest New-PSDrive New-PSSession New-PSSessionConfigurationFile New-PSSessionOption New-PSTransportOption ","loadBackpack loadFile loadGame loadIdentity loadMagazine loadOverlay loadStatus loadUniform ","SET_IDSPS_VALUE_RULE_ID ","mdpTimePicker","new return throw await else","مارچ","පෙර වරු","dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable ","ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode ","Windows 98","grid","SYSREQ_FUNC_HELP ","wow","['’]","ustreamEmbed","#d500f9","gt-xs","setDimensions","$mdDateRangePicker",".md-color-picker-result","пӗр кун","extends","Set-PSSessionConfiguration Set-ScheduledJob Set-ScheduledJobOption Set-Service Set-StrictMode Set-TraceSource Set-Variable Set-WmiInstance ","activeClass","jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des","createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse ","box","einem Tag","$uiViewScroll","_onConnect","ICrypto ","Windows 95","itPNG ","\\b(clipboard info|the clipboard|info for|list (disks|folder)|","getBoundingBox","ps__scrollbar-x-rail","जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.","rport","transient","lock rep repe repz repne repnz xaquire xrelease bnd nobnd ","ngMessagesInclude","يناير","ngInputElement","(min-width: 1920px)","iPhone","^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?","jsx","?^mdInputContainer",'.js" onload="retargetLinks()"><\/script>','
\n'," सॅकंडांनी","бір күн","ޖޫން","//[a-z]*","#03a9f4","which is an invalid value","uz-latn","StateQueueManager","typeaheadPopupTemplateUrl","rtcpMux","baby","%d মাস","polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix ","formatters","_method","steam_is_user_logged_on steam_get_user_steam_id steam_user_owns_dlc ","\\s*{","jedne minute","ui.bootstrap.paging","SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE ","confid:%s","fa_middle fa_bottom pr_pointlist pr_linelist pr_linestrip ","cancelMultiplier","lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind ","thumbsdown","chars"," \n","ПользовательИД ","abstract","FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH ","zh-mo","IECertificate ","rowHeight","$mdMedia","#33CC66","category"," dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart","гадзіну","achievement_our_info achievement_friends_info ","коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид ","'n maand","none","validateModel","\\b(t{1}|nil)\\b","%s առաջ","начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты ","dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl ","sandal","SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE ","JsSIP:AckClientTransaction","setzcomp shadow sign sin smoothstep specular specularbrdf spline sqrt step tan ","draw_text_ext_colour draw_text_transformed_colour ","СтрТблСпр ",'height="',"ancestors",";reg-id=","narrow","D MMMM YYYY, A h:mm -നു","md-radio-button.md-checked","gamepad_button_check_pressed gamepad_button_check_released ","WebkitAppearance","SSSS","checkTransaction","scrollbarYHeight","callee","D'A","setViewValue","sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 ","new Resolvable(): resolveFn argument must be a function","tedEmbed","mewn %s","toilet","emAccept ","targetState","dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday ","Cannot use higher-order sections without the original template","वेर","canPageForward","attributes","toString toUpper triggerActivated triggerActivation triggerArea triggerAttachedVehicle ","INoticeInfo ","cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi ","jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des","isCalendarOpen","fdtText ","rgb(178, 178, 178)","...","[0-9]","[ម្សិលមិញ ម៉ោង] LT","XML_SYNTAX ","HTML5 date input types do not support custom formats.","'n jaar"," \n","fullscreen","FOCUSED_DATE_CLASS","Transport is already connected","gpu_set_tex_mip_enable_ext gpu_get_blendenable gpu_get_ztestenable ","__uiNodeId",'
',"@[a-zA-Z_][a-zA-Z_\\d]*","mode","_openCountExceedsMaxOpen","BrowserLocationConfig","function","availableConfig","goToPrevPage","icDialogFormEventHandler ","legendItems","dates","Transport is connecting","a8m.search-field","parseZone","#o[0-7]+(/[0-7]+)?","КодСпр ",'
","physics_test_overlap physics_remove_fixture physics_set_friction ","_erasNameRegex","beforeDatasetsDraw","factor","monkeyPatchPathParameterType","http://www.w3.org/1999/xhtml","TimingFunction","отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения ","?ngMessages","$scope","808000","%s મા",'\n',"Redirected","SYSREQ_USERS_DOMAIN ","soatUnknown ","synthetic","_local_uri","aria-invalid","gutterShare","There are no matches available.","{\\w+}",'date-start="model.dateStart" ',"$$hash","%r{","bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 ","watchResponsiveAttributes","sfcRed ","\\d+\\.(?!\\d)(?:i\\b)?","rtl",", requires: [","\\^rem{","each","SYSREF_REFERENCES ","Abort AddBrandingImage AddSize AllowRootDirInstall AllowSkipFiles AutoCloseWindow BGFont BGGradient BrandingText BringToFront Call CallInstDLL Caption ChangeUI CheckBitmap ClearErrors CompletedText ComponentText CopyFiles CRCCheck CreateDirectory CreateFont CreateShortCut Delete DeleteINISec DeleteINIStr DeleteRegKey DeleteRegValue DetailPrint DetailsButtonText DirText DirVar DirVerify EnableWindow EnumRegKey EnumRegValue Exch Exec ExecShell ExecShellWait ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileSeek FileWrite FileWriteByte FileWriteUTF16LE FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI FunctionEnd GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText Int64Cmp Int64CmpU Int64Fmt IntCmp IntCmpU IntFmt IntOp IntPtrCmp IntPtrCmpU IntPtrOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PageExEnd Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionEnd SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionGroupEnd SectionIn SectionSetFlags SectionSetInstTypes SectionSetSize SectionSetText SendMessage SetAutoClose SetBrandingImage SetCompress SetCompressor SetCompressorDictSize SetCtlColors SetCurInstType SetDatablockOptimize SetDateSave SetDetailsPrint SetDetailsView SetErrorLevel SetErrors SetFileAttributes SetFont SetOutPath SetOverwrite SetRebootFlag SetRegView SetShellVarContext SetSilent ShowInstDetails ShowUninstDetails ShowWindow SilentInstall SilentUnInstall Sleep SpaceTexts StrCmp StrCmpS StrCpy StrLen SubCaption Unicode UninstallButtonText UninstallCaption UninstallIcon UninstallSubCaption UninstallText UninstPage UnRegDLL Var VIAddVersionKey VIFileVersion VIProductVersion WindowIcon WriteINIStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegMultiStr WriteRegNone WriteRegStr WriteUninstaller XPStyle","clearOnCancel","buffer_async_group_end buffer_load_async buffer_save_async ","nsis","params","\\.md-","%d isgasn","CHECK_CODE_REQUISITE_RULE_ID ","spans","pointerdown","defaultIconSize","metal","__LINE__ begin_keywords celldefine default_nettype define ","EQ LT GT NE GE LE OR XOR","%d أيام","[το προηγούμενο] dddd [{}] LT","renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor ","menuitemcheckbox","a8m.repeat","updateMinutes","legendCallback","hylang","findPreviousWhere","ein månad"," matches available.","isang buwan","%d μήνες","set set3DENAttribute set3DENAttributes set3DENGrid set3DENIconsVisible set3DENLayer ","'n uur","день","ps--x","$parse","_shortWeekdaysParse","rgb(153, 153, 255)","\n","$mdContentLoaded","opening","hammer","SYSREQ_EDOC_TEXT_MODIFIED ","બપોર","ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി","Якш_Душ_Сеш_Чор_Пай_Жум_Шан","endfilter debug block endblock else autoescape endautoescape csrf_token empty elif ",'

',"closeable","utDeveloper ","md-calendar-date-disabled","http error","md-dialog-backdrop md-opaque","e614","isOnlyOpen","(is|$)"," poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod","stringify","min","tooltipActive","layer_sprite_get_y layer_tilemap_get_id layer_tilemap_exists ","ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை","camera_get_view_border_y camera_get_view_angle ","MatrixView.formItem.config.required","heavy_minus_sign","months","#00e676","applyTransitionDelay","WSP","areq","(?!%})(","receiveBuffer","Get-OrgVdcNetwork Get-OvfConfiguration Get-PSCurrentConfigurationNode Get-PSDefaultConfigurationDocument Get-PSMetaConfigDocumentInstVersionInfo Get-PSMetaConfigurationProcessed ","do_lu_ma_me_gi_ve_sa","получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище ","[Järgmine] dddd LT","getOption"," defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten","massage","postponed procedure process property protected pure range record register reject ","add8e6","[+\\-]","SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY ","MONTH","stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString ","md-table-progress.html","mdShrinkSpeedFactor","[Ọ̀la ni] LT","getSuppression getTerrainGrid getTerrainHeightASL getText getTotalDLCUsageTime getUnitLoadout "," poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm","preventOnFilter","за %s","layer_background_alpha layer_background_index layer_background_speed ","#FF3366","step","sticky-prev-state","dddd [саат] LT","u[\\dA-Fa-f]{4}|","$$prepared","hitRadius","_onunhold","dddd [عند الساعة] LT","mdIndeterminate","dom._lun._mar._mié._jue._vie._sáb.","gpu_set_alphatestref gpu_set_alphatestfunc gpu_set_texfilter ","QNX","getOsName","titleBlock","%r\\|","extractElementByName"," மாலை","offsetGridLines","SYSREQ_REF_TYPE_REQ_DESCRIPTION ","Edge/",".mdp-calendar-monthyear","audio_emitter_get_y audio_emitter_get_z audio_emitter_get_vx ","tailrec where const inner suspend typealias external expect actual ","im8bGrayscale ","audio_falloff_linear_distance_clamped ","autoDetection","sort start subst time title tree type ver verify vol ","CANT_CHANGE_ID_REQUISITE_RULE_ID ","gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray ","getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT ","WriteFile ","toggleAll","heavy_division_sign","su_må_ty_on_to_fr_la","createOffer","Date range picker","md-menu-bar-menu","dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays ","plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea ","lab",")\\.?","arrow_down","formatter","sad","Literal date support has been deprecated, please switch to date object usage","Illegal","rootElementKeyupCallback","books","lastRipple","ctEdit ","отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения ","polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet ","[آج بوقت] LT","ngClick","Allow: ","SYSREQ_FUNC_PARAM_DEF_VALUE ","nextItem","dddd [à] LT","uri","://","flags","","chart","printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp ","uniq","min_interval","removeHoverStyle","pingIntervalTimer","SYSRES_CONST_REQ_MODE_EDIT_CODE ","_calendarEl","E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER ","setMarkerBrushLocal setMarkerColor setMarkerColorLocal setMarkerDir setMarkerDirLocal ","\\[/noprocess\\]","не_по_ут_ср_че_пе_су","_failed","border-style","is_ptr is_vec3 is_vec4 is_matrix is_bool typeof ","%q{",'is-disabled-date="config.isDisabledDate ? config.isDisabledDate($date) : model.isDisabledDate({ $date: $date })" ',"bar_chart","ExtractFileDrive ","mdInkRipple","SYSRES_CONST_FILTER_REQUISITE_CODE ","combine constant convert create new alias folder directory decrypt delete variable word line folder ",'

\n',"abs accTime acos action actionIDs actionKeys actionKeysImages actionKeysNames ","rok","dddd [ag] LT","startsWith stride strideof strideofValue swap toString transcode ","%d heures","اربع","NONOPERATING_RECORD_FLAG_FEMININE ","getInnerHTML","receiveInviteResponse()","mindate","#-}","%d گھنٹے","surface_set_target_ext surface_reset_target surface_depth_disable ","mdChipRemove","mdNumeric","mdDelay","un nebeud segondennoù","_interceptors","[आज] LT","retry_after","[Утган] dddd [куни соат] LT [да]","$$topModalIndex","counter-reset","https://api.twitter.com/1/statuses/oembed.json?omit_script=true&&url=","ugc_query_CreatedByFriendsRankedByPublicationDate ","requestError","di_lu_ma_me_ĵa_ve_sa","alarm_set font_texture_page_size keyboard_set_map keyboard_get_map ","specialize strict unaligned varargs ","\\$|\\?|%|,|;$|~|#|@|{{ day.value }}',"%d meneti","SYSRES_CONST_USER_COMMON_CATEGORY ","max-forwards","selectedDate","%d dinten",' ',"\\[\\|",") +\n'","ФайлСуществует ","layoutDelegate","_isReadyToReOffer() | internal WebRTC status not ready",'',"md-autocomplete: Could not resolve display value to a string. ","CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError ","alignstack atomic catch cleanup filter inteldialect ","\\s*>>","some","СпрТекПредст ","NG_EMBED_BASIC_EMOTICONS"," hónapja","_closeTo","uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version","normalizeUIViewTarget","
\n","actionByKey","dddd [diwethaf am] LT","أقل من يوم","siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca","connection:%s","smirk",'q"\\{',"selectAll","nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ","mdComponentId",'aria-selected="{{tab.isActive()}}" ',"handleClickSelectThisMonth","useBothWheelAxes","rgb(0, 0, 255)","Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο","SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE ","sanga dama dama","Get-vRAPropertyDefinition Get-vRAPropertyGroup Get-vRARequest Get-vRARequestDetail Get-vRAReservation Get-vRAReservationComputeResource Get-vRAReservationComputeResourceMemory ","थोडया सॅकंडांनी","rgb(153, 255, 153)","cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact ","stopImmediatePropagation","%sទៀត",'\n',"typeaheadMinLength"," substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext"," with ViewConfig from context='","$isEmpty",'","vmView ","isState","%s temu"," cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay","*/*","phy_joint_reaction_force_y phy_joint_reaction_torque ","physics_particle_delete_region_box ","[danas u] LT","samesite","toggle","setahun","AUTO_NUMERATION_RULE_ID ","[moarn om] LT","boolean byte cbool cbyte cchar cdate cdec cdbl char cint clng cobj csbyte cshort csng cstr ctype ","_appendGhost","ruleslanguage",'" at ',"dog2","січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень","COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION ","loadVest local localize locationPosition lock lockCameraTo lockCargo lockDriver locked ","gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents ","emChangeWorkAccessType ","abort array attrib by call cards cards4 catname continue ","vsmSingle ","SYSRES_CONST_COMP_CODE_GRD ","ПоискСтр ","hoverRow","نومبر","openPanels","componentProvider","buildDateRow","bride_with_veil","stretch","$$Map","parseUrl","_ok","$translateLoadingError","physics_particle_delete_region_poly physics_particle_set_flags ","IArchiveInfo ","target in out common equivalence data","urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.","md-sticky-clone"," mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult","deleteRipples","A h:mm সময়","column-count","SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION ",".md-label","unbindEvents","saa limoja","PⓅPṔṖƤⱣꝐꝒꝔ","sitofp fptoui fptosi inttoptr ptrtoint bitcast ","[morgen um] LT [Uhr]","minMode","عام واحد","to step next return module inline throw import","[Għada fil-]LT","willInsertAfter","alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint ","получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю ","registerUIView","%d tháng","내일 LT","addAnimation","layer_background_xscale layer_background_blend ","relevance","IPickRequisiteItems ","SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN ","public private property continue exit extern new try catch ","configureInput","trident","ஒரு நிமிடம்","data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDggNDgiPjxwYXRoIGQ9Ik0yNCAxNmwtMTIgMTIgMi44MyAyLjgzIDkuMTctOS4xNyA5LjE3IDkuMTcgMi44My0yLjgzeiIvPjxwYXRoIGQ9Ik0wIDBoNDh2NDhoLTQ4eiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==","all others subtype and for out synchronized array function overriding ","finishedReconstruction","%d秒","%d տարի","material.core.layout","#546e7a","invalid rule","اپریل","ColumnContainer","queryChildren","getMilliseconds","%s бұрын","_backdropRef","achievement_send_challenge achievement_load_progress ","DOCUMENT_FRAGMENT_NODE","until while with var","sa loob ng %s","isFirst","%s પહેલા","icAfterLookUpEventHandler ","minimizing model models ne negative no not option options or ord ","a8m.slugify","CERTIFICATE_TYPE_ENCRYPT ","gc dbg linker_private_weak attributes blockaddress ","утра","[jutri ob] LT","remove3DENLayer removeAction removeAll3DENEventHandlers removeAllActions removeAllAssignedItems ","mwForm.pageEvents.pageAdded","scream",'emit "requestFailed"',"(^)","sumBy","addColumn","onChange","resolved","authorization_jwt","trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew ","Get-HCXReplication Get-HCXReplicationSnapshot Get-HCXService Get-HCXSite Get-HCXSitePairing Get-HCXVM Get-HardDisk Get-IScsiHbaTarget ","envelope","lastPutMode","установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим ","false nil true",'',"RegisteredHook","octopus","[Өнөөдөр] LT","D MMMM YYYY HH:mm",'"handling"',"rgb(214, 0, 214)","mapAnimClear mapAnimCommit mapAnimDone mapCenterOnCamera mapGridPosition markAsFinishedOnSteam ","sprite_get_bbox_top sprite_get_bbox_bottom sprite_save ","startSymbol","class family instance where","radioButtonView","SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533","_fullWeekdaysParse","Register request in progress...","দুপুর","getChipContent","bho chionn %s","#available #colorLiteral #column #else #elseif #endif #file ","ui.bootstrap.datepicker","liveleak","SYSDLG_CURRENT_PERIOD ","destroyMessage",";ob","TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH ",'ng-model-options="{0}"',"car",'
\n',"emChangeVersionNote ","float","attach","ned._pon._uto._sri._čet._pet._sub.","UTCToLocalTime ","SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE ","GML","CONNECTING","DOMParser","usePointStyle","_reconnection","a8m.xor","EDOCUMENT_LINK_KIND ","IReferenceFactory ","aria-readonly","[mañana a la","SYSRES_CONST_FOLDER_KIND_EDOCS ","mõne sekundi","%d يوم","dateFilter","trace this","Speaker ","preset before requesting one.","categoryWidth","1 ຊົ່ວໂມງ","s_v_m_g_d_b_L","#f5f5f5","toDegrees","button,[contenteditable]","ds_priority_change_priority ds_priority_find_priority ","sqf",'"+"',"shl","TEMPLATE","sips","EEE","_enabled","webkitAnimationEnd animationend","withParams","setTime","0'.\\|0[box][0-9a-fA-F]*","questionTypeChanged","xml","[\\x80-\\xBF]","zoneName","uib-position-body-scrollbar-measure","rgb(0,0,0)","^\\=end","transitionInClass","OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION ","phy_particle_data_flag_typeflags phy_particle_data_flag_position "," tundi","skipReconnect","love_hotel","[A-màireach aig] LT","$chip","%d il",'',"SYSREF_REPORTS ","SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION ","stringular","UibAlertController","epxansionPanelGroupCtrl","vertex_usage_psize vertex_usage_tangent vertex_usage_binormal ","Do MMM YYYY","_addStyles",'
',"dseAfterInsert ","newDTMF","wdConfirmClick","memoize","md-nest-level","JsSIP:ERROR:DigestAuthentication","#9900CC","%d horoj","chrw regexp server response request cstr err","steam_ugc_get_item_update_progress steam_ugc_subscribe_item ","postProcess"," quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t","sekundit","ctFunction ","STORAGE_TYPE_SAPERION ","mdMenuCtrl","INTERNAL1V1 SYSEX_START INTERNAL EXTERNAL ","lch","%d yıl","reverseSort","configMerge","imageattr:%s %s %s","createBackdrop","wsrGoFinal ","типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных ","янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек"," expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li","(Procedure|Declare)(C|CDLL|DLL)?","диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания ","CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug ","dddd[n je] LT","en-gb","isLeapYear",":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)","\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*","rgb(102, 102, 255)","#1b5e20","APOS_STRING_MODE","setAperture setApertureNew setArmoryPoints setAttributes setAutonomous setBehaviour ","mizar","wsControlled ","siku moja",'',"@NSCopying|@NSManaged|@objc|@objcMembers|@convention|@required|","dayOfMonthValues","flushed","recovery_options","Scanner","So_Mé_Dë_Më_Do_Fr_Sa","autoWrap","viewMapper","toUpper","md-grid-list: Tile at position ",'"sips"',"separator","Chrome",'"CANCEL"',"D MMMM YYYY р., HH:mm","rokmi","sob","Domh","color.toRgbString()","[object String]","remoteUrlDataField","dragend","mdPanelProvider: The panel preset definition is ","curr","noCache","resource","Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri","dialog ","set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter ","nearEntities nearestBuilding nearestLocation nearestLocations nearestLocationWithDubbing ","find","md-input-container",'"auth"',"ctrlAutoScrollRewind ctrlAutoScrollSpeed ctrlChecked ctrlClassName ctrlCommit ctrlCommitted ","USERS_PSEUDOREFERENCE_CODE ","alert-dismissible","markerAlpha markerBrush markerColor markerDir markerPos markerShape markerSize markerText ","a8m.ltrim","#fff8e1","Get-NsxCliDfwFilter Get-NsxCliDfwRule Get-NsxClusterStatus Get-NsxController Get-NsxDynamicCriteria Get-NsxDynamicMemberSet Get-NsxEdge Get-NsxEdgeBgp ","raised","rtcOfferConstraints","contenteditable","SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE ","thought_balloon","touchstart","clip-path","%d seconds","unregisterFn","[minulý] dddd [v] LT","flowImg","matchInsensitive","disableOptions","md-optgroup","waypointAttachedVehicle waypointAttachObject waypointAttachVehicle waypointBehaviour ","weaponAccessories weaponAccessoriesCargo weaponCargo weaponDirection weaponInertia weaponLowered ","or primitive recover repeat return struct then trait try type until ","editorTemplate effector emit emitter enableDevice encodeString endString endsWith env ","no_pedestrians","SwipeRight","януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември","CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b","%d ore","md-panel-animate-fade","iePointerMap","updateErrorState","SYSRES_CONST_ACTION_TYPE_UNLOCK ","mdColorPickerSpectrum","JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT ","beforeBuildLabels","pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult ","signed typename this switch continue wchar_t inline readonly assign ","$ngControllerController","SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE ","üks aasta","REFTYPES_PSEUDOREFERENCE_CODE ","shortNameOf showHelp showHidden showManipCtx showSelectionInTitle ",'',"instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp ","=?mdBoundaryLinks","Arguments","getBody","frowning","бир ай",") that exceeds the column count ","miezi %d",'"reason"',"cfInternal cfDisplay ","itemsExpr","mdAutoExpand","mort|n|netpv|nmiss|normal|note|npv|open|ordinal|","_via_transport","double","focusFirst","(orientation: portrait)","data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0zLDZIMjFWOEgzVjZNMywxMUgyMVYxM0gzVjExTTMsMTZIMjFWMThIM1YxNloiIC8+PC9zdmc+","ugc_query_NotYetRated ugc_query_RankedByTotalVotesAsc ","[^a-zA-Z0-9_\\}\\$]","badcfg","BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once","Behavior bool color coordinate date double enumeration font geocircle georectangle ","getAlpha","\\s+{","hsl(","vehicleCargoEnabled vehicleChat vehicleRadio vehicleReceiveRemoteTargets vehicleReportOwnPosition ","direction","camera_set_default camera_set_view_mat camera_set_proj_mat ","[tänään] [klo] LT","SCALE","charAt","_error","\\b(Procedure|Declare)(C|CDLL|DLL)?\\b"," with wrong or missing challenge, cannot authenticate","makeTargetState","хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков ","[prejšnji] dddd [ob] LT","setAttrMapping setAttrNiceNameResource setConstraintRestPosition ","ef_smoke ef_smokeup ef_star ef_spark ef_flare ef_cloud ef_rain ","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_","clientTop","ctButton ",".**","DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS ","min max mean median clamp lerp dot_product dot_product_3d ","New-TagAssignment New-TagCategory New-Template New-TemporaryFile New-VAIOFilter New-VApp New-VDPortgroup New-VDSwitch New-VDSwitchPrivateVlan New-VDisk ","ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации ","engine.io-client:polling-xhr","UC Browser","$rootElement","getLength","selectedDt","9acd32","_updatePosition","%d ثانیه","SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE ","Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember","[jučer u] LT","DocumentTouch","კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ","tiger","exclamation","SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE ","ariaTabIndex","stored class safecall var interface or private static exit index inherited to else stdcall ","Unknown OS","Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба","console","месяц","handleClickSelectThisYear",'
\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',"rgb(255, 179, 102)","%d λεπτά","wfe|wfi|yield","previousElementSibling","buildTicks","interface","=?mdRemovable"," ","getUTCFullYear","begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch ","RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711","%d segundos","shadowRoot","Function PageEx Section SectionGroup","CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID ",'',"wen","arrow_right","icWizardEventHandler ","MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b","TypeError","SHORTDAY","\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?","viewConfig","سەھەر","r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b ","toUpperCase","SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE ","ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast ","[Вчера в] LT","title subtitle fade_in fade_out fade_at clear_color color line_color ","setmetatable tonumber tostring type unpack xpcall arg self","minSelections","$mdIconProvider","heart","Timeout Transparent Type Typeclasses Types Undelimit Undo Unfocus Unfocused ","_credentials","data-ng-repeat","([eE][-+]?\\d+)?","[eilen] [klo] LT","icEDocLookUpEventHandler ","userAgent","УдалитьТаблицу ","md-no-float","part_system_clear part_system_draw_order part_system_depth ","dropdownMenuTemplateUrl","selectedAnswers","=?mdMode","io server disconnect","chipBuffer","assembly module package import alias class interface object given value ","ini","ev_gesture_rotate_start ev_gesture_rotating ev_gesture_rotate_end ","\\$/","%d मिनिटे",'
\n',"^time:","noinert","placementClassPrefix","indigo","skeleton_animation_clear skeleton_skin_set skeleton_skin_get ","shouldAddOnBlur","<","ЗначПоляСпр ","getMaximumWidth","|&[lg]t;","[azi la] LT","aemDisabledOnBrowseEmpty ","Expires","strong","getWeaponSway getWingsOrientationRTD getWingsPositionRTD getWPPos glanceAt globalChat globalRadio ","useLoader","dddd, D [de] MMMM [de] YYYY H:mm","flex-lt-md","servicesPlugin","afterTitle","if else elseif end region externalsource","setVectorUp setVehicleAmmo setVehicleAmmoDef setVehicleArmor setVehicleCargo setVehicleId ","MIN_SESSION_EXPIRES","otherAnswer","%d سائەت","draw_get_color draw_get_alpha merge_colour make_colour_rgb ","$coverage_get $coverage_save $set_coverage_db_name $rose $stable $past ","useFactory","getCursorPosition","deleteColumn","NG_DEFAULT_TEMPLATE_URL","dddd [tɛmɛnen lɛrɛ] LT","_reattemptTimer","handle","Job ",".md-expansion-panel-footer-container","onDone","SYSREQ_EDOC_SIGNED ","REQUEST_TIMEOUT",'"\\t"',"bath","associativity break case catch class continue convenience default defer deinit didSet do ","(VZOFX|VZOFY|VZOFZ)","lollipop","emChangeVersionHidden ","%s முன்","EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"," poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal","removeProperty","MatrixView","jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.","proxy-authorization"," sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial","#ab47bc","buildScales","(X) ","%d ਸਾਲ","--\x3e","[Muer um] LT","Resolvable","Trying","anonymous.invalid","PointerEvent","J2ME/|\\bMIDP\\b|\\bCLDC\\b","[i går kl.] LT","tooltips","%d شهر","autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults ","AAAsmall","SSSSSSSSS",";\n__p += '","afterWhere","<=>","rgb(","gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose ","registeredParent","zⓩzźẑżžẓẕƶȥɀⱬꝣ","calendarFormat","isScrollbarYUsingRight","nc=","چۈشتىن بۇرۇن","New-NetworkAdapter New-NfsUser New-NsxAddressSpec New-NsxClusterVxlanConfig New-NsxController New-NsxDynamicCriteriaSpec New-NsxEdge New-NsxEdgeBgpNeighbour New-NsxEdgeCsr ","isNextDisabled","ng-class=\"{ 'md-disabled': !$mdTabsCtrl.canPageForward() }\" ","མཚན་མོ","интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки ","$md.swipeleft $md.swiperight $md.swipeup $md.swipedown","decrementMinutes","chunkBy",".md-thumb","_deferred",";samesite=","СпрТблСтрКол ","SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE ","weeks","#CC33FF","D MMMM YYYY р.","получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути ","запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта ","Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr","REGISTER","копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти ","INDEX_CORRUPTED ","attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp ","Invalid status: ","228b22","confirmedAction","removeFromSortableElements","$window","directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile ","Symbol(src)_1.","julia","[у] dddd [у] LT","минута_минуты_минут","mdTruncate","IList ","_user","saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale ",")(.*)","0x[0-9a-f]+","%d semaines","timestampParam","instanceof interface internal is namespace native new override package private ","M702pro","last_response","\\$[0-9][0-9A-Fa-f]*","firstDayOfWeek","emUnlockExportedWithLock ","animation-play-state","border-radius","^'{3,}[ \\t]*$","enter","[ನಿನ್ನೆ] LT","faf0e6","%d моҳ","which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ","highlightBlock","Lin_Lun_Mar_Miy_Huw_Biy_Sab","SYSREQ_EDOC_TYPE_REQ_SECTION ","Checkboxes","authenticate() | challenge without Digest realm, authentication aborted","registerHeader","matrix_build_identity matrix_build matrix_build_lookat ","steam_ugc_query_set_match_any_tag steam_ugc_query_set_search_text ","mdZIndex","material.components.colors","[-~]{1,2}>\\*?",'selected-template="model.selectedTemplate" ',"EDOC_TYPES_CODE_REQUISITE_FIELD_NAME ","osprei %s","mergeWith","smiley","Full deprecation is scheduled for the AngularJS Material 1.2 release. ","SYSRES_CONST_ACTION_TYPE_CHANGE_KIND ","almostEquals","matching","colors","Lúnasa","mdFabSpeedDial","MMMM D. [b.] YYYY [ti.] HH:mm","Rule RegExp must not be global or sticky","deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank ","clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore ","Меню ","setParam","ngSwitchDefault","limit","selectChip","reOnChange ","определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных ","try try! try? Type typealias unowned var weak where while willSet","true false nil","setMarkerSizeLocal setMarkerText setMarkerTextLocal setMarkerType setMarkerTypeLocal setMass ","\\u200d","IJob ","sortedUniq","beta_binomial hypergeometric categorical categorical_logit ","հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր","0?[1-9]|1[0-2]","oldColumn","#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?","round scheme-report-environment set! set-car! set-cdr! sin sqrt string ","right self Self set static struct subscript super switch throw throws true ","iap_enumerate_products iap_restore_all iap_acquire iap_consume ","inputMask","MMM","SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS ","__core-js_shared__","blush","clientX","blur touchcancel mouseleave","типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления ","python","handleOnSelect","gutter","ВыборSQL ","ISearchDescription ",'emit "peerconnection:createofferfailed" [error:%o]',"MoneyInWords ","statistics","SYSREQ_REF_TYPE_ADD_PARAMS ","-ші","normalizeTarget","ar-ly","af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin","format","background,cite,href,longdesc,src,xlink:href,xml:base","strokeStyle","startCase","בבוקר","_direction","_ha1","_animationClass","mdSvgSrc","oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary ","_reconnectionDelay","ea7e5d","3cb371","malformed. The name and preset object are required.","fit","ldctReferenceType ","whenExp","getFriend getFSMVariable getFuelCargo getGroupIcon getGroupIconParams getGroupIcons getHideFrom ","Faoi","retrieveCallingNumber printFirmwareVersion ","januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december","ένας μήνας","replace","IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT ","$locationProvider","execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external ","อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์","HH:mm:ss","D [de] MMMM [de] YYYY h:mm A","sat","ripples",'\n',"[കഴിഞ്ഞ] dddd, LT","ckFolder ","tcommit throw trollback try tstart use view while write w|0 xecute x|0 ","000000","$$lowercase","ġurnata","eka mhoinean","'[A-Za-z_](?!')[\\w']*","chartArea","ng-mouseenter","$stateRegistry","buffer_f16 buffer_f32 buffer_f64 buffer_bool buffer_text ","[a-zA-Z_][a-zA-Z_0-9]*('+[\\.']*|[\\.']+)","removeAllCuratorEditingAreas removeAllEventHandlers removeAllHandgunItems removeAllItems ","over","import qualified as hiding","1912-07-29","material.components.dialog","_qop","complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs ","এক দিন","rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll ","_opaque","ordered_logistic neg_binomial neg_binomial_2 ","BUTTON","opt-lambda override protect provide public rename require ","svElement",'',"sfcGreen ",'
{{getLocalizationVal("Ok")}}',"useOnAddExpression","audio_get_listener_mask audio_sound_set_listener_mask ","ui.bootstrap.tooltip","prefix private protocol Protocol public repeat required rethrows return ","snakeCase","%d თვე","program_directory browser_width browser_height os_type os_device "," sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1","mipsasm",'" specified for md-menu on X axis.',"matchPriority","forceJSONP",'"?"',"iso","activeClasses","50 100 200 300 A100","content","template","app/directives/label-item/label-item.html","xhr poll","\\+1","packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod ","INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 ","menuEnable menuEnabled menuExpand menuHover menuPicture menuSetAction menuSetCheck menuSetData ","MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER ","readonly","&color=",'',"rgb(153, 153, 153)","irpf90","setActiveDescendant","setNgModelValue","Escape","Sync-SpbmReplicationGroup Test-ConflictingResources Test-HCXMigration Test-HCXReplication Test-Json Test-ModuleReloadRequired Test-MofInstanceText Test-NodeManager ","scrollWidth","draw_roundrect_colour_ext draw_triangle_colour draw_circle_colour ","classlist","parsers","attachInterrupt encryptionType readBytesUntil ","heading","[u] [nedjelju] [u] LT","ViewService","selectedItem","lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow ","[minulou sobotu v] LT","&align=",' \n',"chartClick","rgb(163, 163, 0)","containerEmptyHint","getGlobalConfig","fffafa","steam_ugc_create_query_all steam_ugc_create_query_all_ex ","uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray ","circus_tent","c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg ","blockquote","No instance found for handle","#78909c","cache","IAccountSelectionRestrictions ","Busy Everywhere","keyValsToObjectR","ctDBEllipsis ","\\*(\\.[a-z\\-]+)+","shake","__data__","\r\n\r\n","gpu_get_blendmode_ext_sepalpha gpu_get_blendmode_src ","%d jorns","rdThisMonth ","container","inputHasFocus","SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK ","showReposts","Gone","navigate-before.svg","scala","Matrix","დღე","inform7","house","BINARY_NUMBER_RE","flex-offset","tx1","Tried to set ","_requestSucceeded","libname|libref|log|log10|log2|logpdf|logpmf|logsdf|","md-autocomplete","insert"," OPR/","deferIntercept","Hider Hyperboloid Identity Illuminate Imager Interior LightSource ","clientHeight","setMaxListeners","background-position","SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER ","@\\d+","SYSREQ_REF_TYPE_NAME_IN_SINGULAR ","SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR ","locals","frequency","SYSREF_SERVER_EVENTS ","https","a8m.filter-watcher","%d سيڪنڊ","SYSRES_SBREFDSC ","selectedNodes selectionConnection separator setAttr setAttrEnumResource ","
',"traceResolvePath","angucomplete-alt","tangerine","ISignProvider ","tlh",' \n',"\\n|\\s|=","БлокСнять ","beforeWhere","can_pass_as_mercury_type stable will_not_throw_exception ","%s yn ôl","indexedDB","NonInviteClientTransaction","dragged","ތެރޭގައި %s","%d tuần","_nc","rgb(102, 255, 179)","SYSDLG_SETUP_USERS_LIST ","SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE ","withUnsafePointer withUnsafePointers withVaList zip","SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE ","nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ","socket.io-client:manager","layoutChanged","SwipeUp","backpackSpaceFor behaviour benchmark binocular boundingBox boundingBoxReal boundingCenter ","calculateTransformValues","SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE ","argument15 argument_count x y xprevious yprevious xstart ystart ","do if then else end until while ","una settimana","Ai_Sm_Mo_Bu_Br_Su_Sn","Dih","door","setUTCHours","ev_joystick2_button2 ev_joystick2_button3 ev_joystick2_button4 ","low_brightness","pause",'
',"vsDefault vsDesign vsActive vsObsolete ","allocUnsafe","$$rAFScheduler","une heure","angular.password",'
',"d3d3d3","|dpi|dpcm|dppx","eka vorsan","string-fill! string-length string-ref string-set! string<=? string ","readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference ","gray","window_get_width window_get_height window_mouse_get_x ","tf_point tf_linear tf_anisotropic mip_off mip_on mip_markedonly ","\\W}","%d 天","(link|image:?):","bicyclist","uri_params","[prejšnjo] [sredo] [ob] LT","[Šiandien] LT","?^mdSliderContainer","setTransport","setSelectValueText","RegionDateSettings ","_md-opaque-enter","hexString","loadingIsVisible","ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.","rgba(0, 0, 0, 0.000)","os_wiiu os_3ds os_psvita os_bb10 os_ps4 os_xboxone ","',"[tegnap] LT[-kor]","sparkler","force foreach forever fork forkjoin function generate|5 genvar global highz0 highz1 ","отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы ","velocityX","char_length character_length characters characterset charindex charset charsetform charsetid check ","/\\*\\*","flex-order","showYear","eitt ár","getAsynchronously listenOnLocalhost getCurrentCarrier ","storagePrefix","emoji","transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames ","[下]dddd LT","builders","uib/template/tabs/tab.html","enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre"," ","gesture_get_flick_speed gesture_get_double_tap_time ","playableSlotsNumber playableUnits playAction playActionNow player playerRespawnTime playerSide ","ஒரு சில விநாடிகள்"," induced_subgraph inferencep inference_result infix info_display init_atensor","hodinou","#ba68c8","thumbnail_medium","[ယနေ.] LT [မှာ]","D. M. YYYY",' \n',"mdpDisabled","operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion ","IEDocVersionState ","angularMaterialFormBuilder","da70d6","1 小時","Media Renegotiation Failed","backgroundPalette","abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue ","&callback=JSON_CALLBACK","scss","}}'","SYSREQ_NOTE ",'"<"',"hostRegex","_week","ugc_visibility_friends_only ugc_visibility_private ","listener","YAML","PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",'md-year-offset="$index" class="md-calendar-year" '," solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag"," poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal","waxing_gibbous_moon","isPressed sendSysex pauseMode gatewayIP setCursor ","model.isDisabledDate({ $date: $date }) will be removed from model on next rlease, please use root config e.g. $mdDateRangePicker.show({isDisabledDate:($date)=>{}}) instead","nextNode","JQLite elements that are referenced in MdPanelRef.","(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?","wstForm ","xquery","left top right bottom width height","D MMMM YYYY [kl.] HH:mm","geoshape int list matrix4x4 parent point quaternion real rect ","typeaheadAppendTo","shiftwidth max sinh isdirectory synID system inputrestore winline ",'{{ datepicker.date.format(datepicker.displayFormat) }} ',"fnToString","типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных ","isScrollable","SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT ","изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке ","sekúndum","_sendUpdate","MSPointerMove","Animation","ثوان","__covariant __contravariant __kindof "," applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply","MdContactChipsCtrl",'"realm"',"HTTP/[0-9\\.]+","proc","nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType ","INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE ","ng-model"," quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel","genitive","toggleSelectedAnswer","ldctFunction ","dddd D MMMM [de] YYYY [a les] H:mm","step tone sqrt RSSI SSID ","unset","GMT","pow","endsas error file filename footnote format goto in infile ","pointHoverBorderColor","md-stick","emMarkAsReaded ","Bad Event","align-end"," closed","phy_particle_flag_wall phy_particle_flag_spring ","eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent ","isNavigationKey","ngMessages","parsingFlags","flatMapDeep","ngBlur","xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.","neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota","[object Map]","$mdConstant"," addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix","simulcast:%s %s","DomainCode DomainName Equals Exp Extent Feature FeatureSet FeatureSetByAssociation FeatureSetById FeatureSetByPortalItem ","Path '","Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2","changing transport and sending upgrade packet","MSIE [VER];","cpSubjSimpleName ","Тран ","autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles ","NOTICE_BLOCK_SUBJECT_PROPERTY ","handleClick","Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea",'emit "unmuted"',"iffJPEG ","pa-in","SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE ","$md.drag","schema select self semi set show some start statistics string system then to transaction trigger ","ReferenceCodeByID ","handleBodyClick","SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE ","یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌","SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS ","no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy","வது","[oxhi à] LT","getViewValue","SYSRES_CONST_PRIORITY_REQUISITE_CODE ","reflexivity irreflexivity connectedness uniqueness commutativity "," voram","sekuntia","baidubrowser/[VER]","warnHues","sprite_get_tpe sprite_prefetch sprite_prefetch_multi sprite_flush ","SCRIPT_BLOCK_SCRIPT_PROPERTY ","obj","draw_skeleton_collision skeleton_animation_list skeleton_skin_list ","domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ","year","session failed","یه‌ك كاتژمێر","_monthsNominativeEl","_weekdaysRegex","quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint ","version_greater version_equal version_less_equal version_greater_equal in_list defined","material.components.progressCircular","::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)","cake","trimHashVal","onScroll","%d કલાક","after append apply array auto_execok auto_import auto_load auto_mkindex ","rtcp","awr","wfepSpinEdit ","SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION ","freeze","တစ်လ","dependencies","day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate ","attrName","for format goto gosub graph if keyword let lib library line load loadarray loadexe ",": Resolving ","not an element","isIonicTap","[Eelmine] dddd LT","block match pass load anchor|5 antispoof|10 set table","angular-cron-jobs","inkBar","rdtAccount ","SYSRES_CONST_LINK_OBJECT_KIND_EDOC ","અમુક પળો","sendrecv","A_[a-zA-Z0-9]+","getErr getIn getOut getText grep immutable inject inspect intersect invokeMethods ","режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных ","md-foot","","_definePathType","SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE ","nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile ","hasMethods","Int Float String Bool Dynamic Void Array ","SYSRES_CONST_FOLDER_KIND_COMPONENTS ","isEnded","_offUpEvents","dim._lun._mar._mer._jeu._ven._sam.","updateVirtualRepeat","Function","Get-NfsUser Get-NicTeamingPolicy Get-NsxApplicableMember Get-NsxApplicableSecurityAction Get-NsxBackingDVSwitch Get-NsxBackingPortGroup Get-NsxCliDfwAddrSet ","_onDragStart","cancelable","$translateLoadingSuccess",' id="{{::dt.uid}}"\n',"jtFull ",'aria-label="Clear Input" ',"[明天]LT","[Aban iha] LT","NewID ","busts_in_silhouette","أقل من ثانية","-import -include -include_lib -compile -define -else -endif -file -behaviour ","STATUS_NOT_READY","ignore","pred %s","hash","|#\\\\.)","onpacket","YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE ","external implicit|10 none double precision assign intent optional pointer ","annotate","received","SYSRES_CONST_ACTION_TYPE_DELETE_VERSION ","dseBeforeCancel ","_rootContext","camera_get_view_speed_y camera_get_view_border_x ","timestampRequests","NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE ","getFocusedTab","$mdTabsCtrl","IRichEdit ","_getDTMFRTPSender","getFilename","rgb(255, 51, 255)","Delay","readyState","populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile ","रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार","&?mdOnRemove","ng-href","TODAY_CLASS","closed","md-menu-origin"," read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate","sprite_replace sprite_create_from_surface sprite_add_from_surface ","html5Mode","sampleSize","md-locked-open","ffdab9","GROUPS_PSEUDOREFERENCE_CODE ","define undef ifdef ifndef else endif include","box-decoration-break","array_height_2d array_equals array_create array_copy random ","ی_د_س_چ_پ_ج_ش","layer_get_vspeed layer_script_begin layer_script_end layer_shader ","treeEvents","एक महीने","Subscription does not exist","isVideoSupportsStreamCapturing","user_url","ugc_match_Items_ReadyToUse ugc_match_Collections ugc_match_Artwork ","'iens míut","isTouchingGround isTurnedOut isTutHintsEnabled isUAVConnectable isUAVConnected isUIContext ","rgb(255, 153, 255)","Available handlers: ","hover","changeDate","dddd D MMMM YYYY HH:mm","move","mouseActive","registerExpanded","Package PackingMethod PaddedForm Padding PaddingLayer PaddingSize PadeApproximant PadLeft PadRight PageBreakAbove PageBreakBelow PageBreakWithin PageFooterLines PageFooters PageHeaderLines PageHeaders PageHeight PageRankCentrality PageTheme PageWidth Pagination PairedBarChart PairedHistogram PairedSmoothHistogram PairedTTest PairedZTest PaletteNotebook PalettePath PalindromeQ Pane PaneBox PaneBoxOptions Panel PanelBox PanelBoxOptions Paneled PaneSelector PaneSelectorBox PaneSelectorBoxOptions PaperWidth ParabolicCylinderD ParagraphIndent ParagraphSpacing ParallelArray ParallelCombine ParallelDo Parallelepiped ParallelEvaluate Parallelization Parallelize ParallelMap ParallelNeeds Parallelogram ParallelProduct ParallelSubmit ParallelSum ParallelTable ParallelTry Parameter ParameterEstimator ParameterMixtureDistribution ParameterVariables ParametricFunction ParametricNDSolve ParametricNDSolveValue ParametricPlot ParametricPlot3D ParametricRegion ParentBox ParentCell ParentConnect ParentDirectory ParentForm Parenthesize ParentList ParentNotebook ParetoDistribution ParetoPickandsDistribution ParkData Part PartBehavior PartialCorrelationFunction PartialD ParticleAcceleratorData ParticleData Partition PartitionGranularity PartitionsP PartitionsQ PartLayer PartOfSpeech PartProtection ParzenWindow PascalDistribution PassEventsDown PassEventsUp Paste PasteAutoQuoteCharacters PasteBoxFormInlineCells PasteButton Path PathGraph PathGraphQ Pattern PatternSequence PatternTest PauliMatrix PaulWavelet Pause PausedTime PDF PeakDetect PeanoCurve PearsonChiSquareTest PearsonCorrelationTest PearsonDistribution PercentForm PerfectNumber PerfectNumberQ PerformanceGoal Perimeter PeriodicBoundaryCondition PeriodicInterpolation Periodogram PeriodogramArray Permanent Permissions PermissionsGroup PermissionsGroupMemberQ PermissionsGroups PermissionsKey PermissionsKeys PermutationCycles PermutationCyclesQ PermutationGroup PermutationLength PermutationList PermutationListQ PermutationMax PermutationMin PermutationOrder PermutationPower PermutationProduct PermutationReplace Permutations PermutationSupport Permute PeronaMalikFilter Perpendicular PerpendicularBisector PersistenceLocation PersistenceTime PersistentObject PersistentObjects PersistentValue PersonData PERTDistribution PetersenGraph PhaseMargins PhaseRange PhysicalSystemData Pi Pick PIDData PIDDerivativeFilter PIDFeedforward PIDTune Piecewise PiecewiseExpand PieChart PieChart3D PillaiTrace PillaiTraceTest PingTime Pink PitchRecognize Pivoting PixelConstrained PixelValue PixelValuePositions Placed Placeholder PlaceholderReplace Plain PlanarAngle PlanarGraph PlanarGraphQ PlanckRadiationLaw PlaneCurveData PlanetaryMoonData PlanetData PlantData Play PlayRange Plot Plot3D Plot3Matrix PlotDivision PlotJoined PlotLabel PlotLabels PlotLayout PlotLegends PlotMarkers PlotPoints PlotRange PlotRangeClipping PlotRangeClipPlanesStyle PlotRangePadding PlotRegion PlotStyle PlotTheme Pluralize Plus PlusMinus Pochhammer PodStates PodWidth Point Point3DBox Point3DBoxOptions PointBox PointBoxOptions PointFigureChart PointLegend PointSize PoissonConsulDistribution PoissonDistribution PoissonProcess PoissonWindow PolarAxes PolarAxesOrigin PolarGridLines PolarPlot PolarTicks PoleZeroMarkers PolyaAeppliDistribution PolyGamma Polygon Polygon3DBox Polygon3DBoxOptions PolygonalNumber PolygonAngle PolygonBox PolygonBoxOptions PolygonCoordinates PolygonDecomposition PolygonHoleScale PolygonIntersections PolygonScale Polyhedron PolyhedronAngle PolyhedronCoordinates PolyhedronData PolyhedronDecomposition PolyhedronGenus PolyLog PolynomialExtendedGCD PolynomialForm PolynomialGCD PolynomialLCM PolynomialMod PolynomialQ PolynomialQuotient PolynomialQuotientRemainder PolynomialReduce PolynomialRemainder Polynomials PoolingLayer PopupMenu PopupMenuBox PopupMenuBoxOptions PopupView PopupWindow Position PositionIndex Positive PositiveDefiniteMatrixQ PositiveIntegers PositiveRationals PositiveReals PositiveSemidefiniteMatrixQ PossibleZeroQ Postfix PostScript Power PowerDistribution PowerExpand PowerMod PowerModList PowerRange PowerSpectralDensity PowersRepresentations PowerSymmetricPolynomial Precedence PrecedenceForm Precedes PrecedesEqual PrecedesSlantEqual PrecedesTilde Precision PrecisionGoal PreDecrement Predict PredictionRoot PredictorFunction PredictorInformation PredictorMeasurements PredictorMeasurementsObject PreemptProtect PreferencesPath Prefix PreIncrement Prepend PrependLayer PrependTo PreprocessingRules PreserveColor PreserveImageOptions Previous PreviousCell PreviousDate PriceGraphDistribution PrimaryPlaceholder Prime PrimeNu PrimeOmega PrimePi PrimePowerQ PrimeQ Primes PrimeZetaP PrimitivePolynomialQ PrimitiveRoot PrimitiveRootList PrincipalComponents PrincipalValue Print PrintableASCIIQ PrintAction PrintForm PrintingCopies PrintingOptions PrintingPageRange PrintingStartingPageNumber PrintingStyleEnvironment Printout3D Printout3DPreviewer PrintPrecision PrintTemporary Prism PrismBox PrismBoxOptions PrivateCellOptions PrivateEvaluationOptions PrivateFontOptions PrivateFrontEndOptions PrivateKey PrivateNotebookOptions PrivatePaths Probability ProbabilityDistribution ProbabilityPlot ProbabilityPr ProbabilityScalePlot ProbitModelFit ProcessConnection ProcessDirectory ProcessEnvironment Processes ProcessEstimator ProcessInformation ProcessObject ProcessParameterAssumptions ProcessParameterQ ProcessStateDomain ProcessStatus ProcessTimeDomain Product ProductDistribution ProductLog ProgressIndicator ProgressIndicatorBox ProgressIndicatorBoxOptions Projection Prolog PromptForm ProofObject Properties Property PropertyList PropertyValue Proportion Proportional Protect Protected ProteinData Pruning PseudoInverse PsychrometricPropertyData PublicKey PublisherID PulsarData PunctuationCharacter Purple Put PutAppend Pyramid PyramidBox PyramidBoxOptions","SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE "," \n","grey_question","Version/","selectingYear","%s ལ་","clbUnchecked clbChecked clbGrayed ","_md-animations-ready","updateHoverStyle","mdPositionMode","amdD","pointBorderWidth","poolBlock_","rgb(245, 0, 0)","inheritParams","ctrl.isOpen"," cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel","EditText ","gpu_get_alphatestref gpu_get_alphatestfunc gpu_get_texfilter ","uibDatepickerPopupConfig","bus","_realm","a8m.wrap","setCancelButtonLabel","received CANCEL request for a non existent session","bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft","objc","[demà à] LT","polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex ","g.m.","Get-NsxLoadBalancerApplicationProfile Get-NsxLoadBalancerApplicationRule Get-NsxLoadBalancerMonitor Get-NsxLoadBalancerPool Get-NsxLoadBalancerPoolMember Get-NsxLoadBalancerStats ","rss","Remove-MDTPersistentDrive Restore-MDTPersistentDrive Set-MDTMonitorData Test-MDTDeploymentShare Test-MDTMonitorData Update-MDTDatabaseSchema ","endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand ","final sealed annotation suppressWarnings small","ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ","[\\0-\\xFF]","hcg",'It cannot also have "view properties" at the state level. ',"|cm|mm|in|pt|pc|px","ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ",'emit "failed"',"old","0px","small_blue_diamond"," oid_to_octets op opena opena_binary openr openr_binary openw openw_binary","SYSRES_CONST_HISTORY_ACTION_DELETE_CODE ","[އިއްޔެ] LT","flex-flow","#b388ff","СжПроб ","before","Move the following properties into a view (in the 'views' object): ","padEnd","[މިއަދު] LT","openClass","removed","#[0-9A-Fa-f]+","revertClone","elementTypes","jedna minuta","bookmark_tabs","NokiaBrowser/[VER]","rtpmap:%d %s/%s/%s","hoursFormat","dni",'
',"boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu ","isOtherAnswer","collapsed","setInterval","short reinterpret_cast|10 default double register explicit signed typename try this ","layer_get_depth layer_create layer_destroy layer_destroy_instances ","displayColor displayCull displayLevelOfDetail displayPref displayRGBColor ","mdColorSpectrum","unionWith","codec","SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE ","content-type","simulCloudOcclusion simulInClouds simulWeatherSync sin size sizeOf skill skillFinal skipTime ","authority","congratulations","runAllHooks","%d ure","[v] dddd [ob] LT","_getSelectedOptions","totalPages","_left","[ગઇકાલે] LT","mdTabsTemplate","ownerDocument","SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION ","audio_emitter_get_vy audio_emitter_get_vz ","evaluate","purse","textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath ","removeAttributeNode","[Í morgin kl.] LT","glBorderDashOffset","SYSREQ_DESCRIPTION ","htmlbars","timeFormat","Rename-Computer Rename-Item Rename-ItemProperty Reset-ComputerMachinePassword Resolve-Path Restart-Computer Restart-Service Restore-Computer ","mdSvgIcon",'"invariant"',"InvalidStateException Irrational KeyError LabelNode LinSpace LineNumberNode LoadError LowerTriangular MIME Matrix ","lastRenderableDate","pill",'',"STATUS_COMPLETED","pooledBlocks","cancelLabel","pointermove","tickHeight","display_get_orientation display_get_gui_width display_get_gui_height ","dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt ","mwForm.pageFlow.goToPage","(?:\\W|$)","lock","defaultTheme","colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem ","Int16Array","SYSREQ_USER_GROUPS_GROUP_NAME ","Android.*Pixel C","mdExpansionPanelFooter","fdtString ","joinSilent joinString kbAddDatabase kbAddDatabaseTargets kbAddTopic kbHasTopic kbReact ",'
',"sizeScroller_","isSuperseded","magenta","reconnect_failed","audio_group_set_gain audio_create_buffer_sound ","%d aý","dny","[بۈگۈن سائەت] LT","datasets","flowDropEnabled","utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs ","staticinitialization withincode target within execution getWithinTypeName handler ","$touched","SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION ",'md-date-filter="ctrl.dateFilter" ',"$assertfailon $assertnonvacuouson $assertoff $assertcontrol $assertpassoff ",' ',"Argument '{0}' is {1}","\n","%d လ","addQuestion","[Учора ў] LT","#efebe9","draw_surface_tiled draw_surface_part draw_surface_ext ","YYYY-يىلىM-ئاينىڭD-كۈنى","$view","каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку ","char? close-input-port close-output-port complex? cons cos ","//www.dailymotion.com/embed/video/","[ng-switch]","696969","rgb(0, 0, 0)","wstTaskCard ","जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या","EDOC_VERSION_DESIGN_STAGE_CODE ","zipObjectDeep","expanding","SYSRES_CONST_ACTION_TYPE_COPY ","padString","onFocus","parent bandwidth default min max qlimit","shortMonths","Sat","фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла ","underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,",'
\n',"There are ","48px","traceData.context.state.name","scale","crystal_ball","pink",'
\n',"Dis","расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных ","negativeScrollAdjustment","marquee","RIGHT","BACKSPACE","onAnimationComplete","mdPanel: The removeClass method is in the process of being deprecated. ","delete do handler insert load replace select truncate update set show pragma grant ","ИзвлечьИмяФайла ","СпрТблСтрМин ",'',"check","vtEqual ","dddd [às] LT","footer"," geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean","physics_particle_group_get_vel_y physics_particle_group_get_ang_vel ","fitInputWidthToTextLength","userAgents","///+\\s*","DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR","smLike ","500 600 700 800 900 A400 A700","Content-Length: 0\r\n\r\n","ночі","coffeescript","setDate","SYSRES_CONST_STORAGE_TYPE_SQL_SERVER ","TinyEmitter","mailbox","ভোর","mdp-chevron-left.svg","=?mdpAmpm","large_blue_circle","baiduboxapp/[VER]","ldctAnalyticReport ","mdChip","\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b","wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto ","ampm","FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING ","md-fab-toolbar","фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs "," from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp","resolveTokens","x-axis-","animateDoor animatePylon animateSource animationNames animationPhase animationSourcePhase ","sessionVersion","addSlide","autoit","Unable to place item!","and case default else elsif false if in import enherits node or true undef unless main settings $string ","min-height","SYSRES_CONST_TASK_STATE_WORKING ","چركه‌ %d","OFFSET_START","dropDown","msMatchesSelector","СоздатьМассив ","hltText ","enableRopeAttach enableSatNormalOnDetail enableSaving enableSentences enableSimulation ","hex8","show-lt-md","soatStringCollection ","wdtTask ","minIndex","wtmOnlyCurrent ","stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|","remoteExec remoteExecCall remoteExecutedOwner remove3DENConnection remove3DENEventHandler ","popupClass","vibration_mode","H:mm [Auer]","ParamTypes","_meta","property rsc_defaults op_defaults","onping","buffer_create_from_vertex_buffer ","buildList","accept-charset","stars","silentRejection","mdExpansionPanelIcon","%r\\(","viewBox","high_heel","trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt ","%dవ","tsRefClocks","-webkit-","INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 ","rtp","briefcase","attributeName","tl-ph","\\bMicroMessenger\\b","card_index","Unsupported Certificate","_md-panel-position-adjusted","newDialog","name","endSymbol",'"ttl="',"checkPull","boxes","[object Uint8ClampedArray]","%d dagar","Remove-VMHostProfileVmPortGroupConfiguration Remove-VMHostRoute Remove-VTpm Remove-VasaProvider Remove-VirtualPortGroup Remove-VirtualSwitch ","دسمبر","zip_unzip load_csv base64_encode base64_decode md5_string_unicode ","steam_ugc_get_item_update_info steam_ugc_request_item_details ",'"icon"',"soatIntegerCollection "," poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension","animateOpen","SUBTASK_BLOCK_TEXT_PROPERTY ","last_quarter_moon_with_face",'"branch"',"fix","mínútur","Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1","mínútum","updateBlock_","يېرىم كېچە","जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.","bevel",' ng-click="select(dt.date)"\n',"registerInterceptor",'',"var __t, __p = ''"," pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete","splineCurve","major","remote","/%s","$MD_THEME_CSS","JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG ","eine Stunde","Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba","Map"," poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list","'\\w[\\w\\d_]*(?!')","UrlMatcherFactory","vnamex|vtype|vtypex|weekday|year|yyq|zipfips|zipname|","[այսօր] LT","a8m.math.radians","rdThisWeek ","baseFrequency","yAxisID","\\/\\+","toastClass","yyy","ФайлИскать ","STATUS_INIT","extmapAllowMixed","%r<","Default value (","fafad2","tzm-latn","آڪٽوبر","gradientType","vertex_type_float4 vertex_type_colour vertex_type_color ","path_index path_position path_positionprevious path_speed ","@@?","UibProgressController"," noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np","ގަޑިއިރު %d","_promise","then","REFER failed","gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors ","runSessionTimer() | sending session refresh request","chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim ","reset",'"&"',"lineDash","mdLabel","üks päev","span","mobileGrade","SYSREF_VIEWERS ","SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION ","%d soniya","WAIT_BLOCK_NAME_PROPERTY ","Set-WSManInstance Set-WSManQuickConfig Show-Command Show-ControlPanelItem Show-EventLog Sort-Object Split-Path Start-Job Start-Process ","scale(1)","virtual","#dd2c00","#66bb6a","mans_shoe","data family type newtype deriving","SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS ","Массив ","angucomplete-alt:changeInput","md-edit-dialog-backdrop","tooltipPosition","_dragStartTimer","$$isolateBindings","md-container-ignore","Transition #","$$animateCssDriver","SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT ","ಸಂಜೆ","[v sobotu o] LT","lastSelectedIndex","y-axis-1","Wednesday","' has two type configurations.","cool","Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.","[u] [sredu] [u] LT","iPad|iPad.*Mobile","SetConstant ","module where","_compile","#F7464A","addOption","cmpfunc_greater cmpfunc_notequal cmpfunc_greaterequal cmpfunc_always ","indexOf","fortran","methods","This transition is invalid","SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG ","replaceState","$digest","app/directives/checkboxes-item/checkboxes-view.html","isMobile","pageSelect","styl","autoPlay","md-input-has-value","camera","ldctRouteBlock ","^\\=\\w","[ഇന്നലെ] LT","questionResponse","expiresTimer","bubbleScroll","invalidFormat","_bodyFontFamily","itemsSortableConfig","tarAbortByWorkflowException ","scrollbarX","SYSRES_CONST_STRING_REQUISITE_CODE ","UrlRouterProvider","значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла ","userid:%s","minSizeY","bandwidth","durationIndeterminate","win8_settingscharm_add_html_entry win8_settingscharm_add_xaml_entry ",'new() [url:"%s"]',"D MMMM YYYY г.","Ògmh","preventDefault","configurable","\\.\\w+","call-id","D MMMM YYYY, A h:mm ਵਜੇ","text-rendering","md-chips-wrap","IForm ",'
',"mdExpansionPanelCollapsed","%d દિવસ","AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults ","ctGroupBox ","tile_index_mask kbv_type_default kbv_type_ascii kbv_type_url "," másodperc","invalidHours","wptUserList ","pig_nose","Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag","TOUCHPAD.*[78910]|\\bTOUCHTAB\\b","$$rAF","[bugün saat] LT","aemDisabledAlways ","containerHeight","cloneElement","trait goto instanceof insteadof __DIR__ __NAMESPACE__ ","isInMenuBar","name count channels instance-data instance-state instance of","allSites allTurrets allUnits allUnitsUAV allVariables ammo ammoOnPylon and animate animateBay "," ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof","100","<<\\s*","ФайлВремяУстановить ","selectLeader selectMax selectMin selectNoPlayer selectPlayer selectRandom selectRandomWeighted ","font-weight","autoShrink_",":(?!\\s)",'"*"',"uint16 uint32 uint64 float double bool struct enum string void ","SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE ","UNDERSCORE_IDENT_RE","qsubstr|qsysfunc|qtrim|quote|qupcase|scan|str|","SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION ","fa8072","ngHide","a8m.to-array","Hold Failed","md-left","MimeEncodeBinary ","uibTabset","wfetLabel ",'',"СоздатьИсключение ","task project allprojects subprojects artifacts buildscript configurations ","weapons weaponsItems weaponsItemsCargo weaponState weaponsTurret weightRTD WFSideText wind ","display_mouse_set display_set_ui_visibility ","[0-7]{1,3}|","ctReference ","mdPanel: The addClass method is in the process of being deprecated. ","part_alternation_mark","&show_comments=","čez %s","_nonce","SYSRES_CONST_ACTION_TYPE_ABORT ","[ve čtvrtek v] LT","max-height","buildOrUpdateControllers","-width","хвилина_хвилини_хвилин","#FF33FF","SYSREF_EDOCUMENT_SIGNATURES ","MAX_FORWARDS","Get-Datastore Get-DatastoreCluster Get-DrsClusterGroup Get-DrsRecommendation Get-DrsRule Get-DrsVMHostRule Get-DscResource Get-EdgeGateway ","gridTemplateColumns","[1-2]?[0-9]{1}|3[0-1]{1}","recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh ","noSelectClick","room_get_viewport room_set_view_enabled room_add room_duplicate ","SYSRES_CONST_ATTACH_TYPE_REFERENCE ","fireAfterUpdate","ctrl.mdSelectedNavItem","$anchorScroll","lastPullMode","типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы ","/angucomplete-alt/index.html","SUBTASK_BLOCK_DEADLINE_PROPERTY ","sysmsg|sysprod|sysrc|system|tan|tanh|time|timepart|","_call_id","showDigital",' \n',"_staled","Microphone ","UC.*Browser/[VER]","Too many consecutive Transition redirects (20+)","минут","wdtUserCollection ","SYSREQ_CONTENTS ","Accept"," maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display","_newMessage","no model provided","tickValues","SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE ","sfsStrikeout ","$$domOperationFired","months accessor is deprecated. Use month instead","isNull","ps__scrollbar-y","SYSRES_CONST_TEST_EDMS_DATABASE_NAME ","unnestR","ctrlSetAutoScrollSpeed ctrlSetBackgroundColor ctrlSetChecked ctrlSetEventHandler ctrlSetFade ","new throw","expectWithoutText","flexOrderLtMd","emChangeLifeCycleStage ","titleAlign","বিকাল","_setTheming","complete_check add getwinposx getqflist getwinposy screencol ","tile %d","IGNORED","columnWidths","User Denied Media Access","анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы ","SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE ","getClientStateNumber getCompatiblePylonMagazines getConnectedUAV getContainerMaxLoad ","browserLanguage","April","cancelAutoHide","месяц_месяца_месяцев","#ff9800","distanceX","%d giorni","jedan sat","class interface enum if else for while switch case break default continue ","$mdGridLayout","new_moon_with_face","scopeName score scoreSide screenshot screenToWorld scriptDone scriptName scudState ","AdjustLineBreaks ","%sមុន","SYSREF_COMPONENT_TOKENS ","cop","ar-tn","waypointFormation waypointHousePosition waypointLoiterRadius waypointLoiterType waypointName ","SYSRES_CONST_VIEW_DEFAULT_CODE ","'","part_system_automatic_draw part_system_update part_system_drawit ","getBeforeBody","=?mdMatchCaseInsensitive","mdpOpenOnClick","^\\[.+?\\]$","float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__","while for foreach times in case when match with break continue ","D [de] MMMM [de] YYYY H:mm","Pocketbook","_setLocalMediaStatus","__nwjs","0[bB][01_]+","ring","IEventList ","showLtLg","SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE ","ИДТипСпр ","[gelecek] dddd [saat] LT",'
',"SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY ","IWorkflowBlockResult ","CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail ","clksrcExt","chartHover","SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE "," maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp","md-chip-content","trollface","datatyp|display|do|else|end|eval|global|goto|","$id","SYSDLG_SETUP_TASK_OBSERVERS ","Missing event id parameter","[pasintan] dddd[n je] LT","abstract and as assert base begin class default delegate do done ","mⓜmḿṁṃɱɯ","material.components.menu","webkitAnimationEnd ","ary",'"-"',"md-resize-textarea","\\]|\\?>","floatItemsUp","$locationChangeSuccess","fdtUnknown ",'md-connected-if="tab.isActive()" ',"hintCadet hintSilent hmd hostMission htmlLoad HUDMovementLevels humidity image importAllGroups ","gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset ","UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ","SYSRES_CONST_ADDITION_REQUISITE_CODE ",'
    ',"vertex_type_float1 vertex_type_float2 vertex_type_float3 ",'',"material.components.switch","[прошлог] [понедељка] [у] LT","expected","ValidateXML ","currentTarget","button, a, md-button","%d तास","an hour","%d دقيقة","SYSRES_CONST_ALL_USERS_GROUP ","plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot ","له‌ %s","#37474f","f0fff0"," raddr %s rport %d","SimpleVector Slot SlotNumber SparseMatrixCSC SparseVector StackFrame StackOverflowError StackTrace StepRange ","wolf","cltInternal cltPrimary cltGUI ","rgb(0, 0, 245)","iPad","vectorNormalized vectorUp vectorUpVisual vectorWorldToModel vectorWorldToModelVisual vehicle ","app/directives/textarea-item/textarea-view.html","upgradeError","color: ","innerHTML","$$loadingAsyncDone",'" has already been registered',"autounfold before bottom btauto by case case_eq cbn cbv change ","#1976d2","wsbSubTask ","toAor",""," {{ toast.action }}","$state$","deg)","causes","getNearestParent","getOpenMenuIndex"," natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext","material.components.bottomSheet","SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS ","lemon","border-top-style","induction injection instantiate intro intro_pattern intros intuition ","iPhone.*CPU[a-z ]+[VER]","border-top-left-radius","\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B!?[-~]{1,2}>\\*?","$mdTable.progress","nominative","isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate ","JsSIP:RTCSession:ReferNotifier",'; text="',"positionArrow","sum","сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования ","UibYearpickerController","fullWidth","IDevelopmentComponentLock ","Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre","useTransformChip","broken_heart","hcGroupParams hcLeader hcRemoveAllGroups hcRemoveGroup hcSelected hcSelectGroup hcSetGroup ","ds_grid_value_disk_y ds_grid_shuffle ds_grid_write ds_grid_read ","uncheckable",'ng-click="$mdTabsCtrl.nextPage()"> ','"""',"auto bottom-left","hasTheme",'" src="',"(\\bwith\\s+)?\\b(function|procedure)\\s+","dog","layout-fill","endIndex","sekúnd","version","\\b(0o[0-7]+)[lLjJ]?","$ctrl.helper","record-route","SYSRES_CONST_CODE_REQUISITE_COMPONENT ","$$rowSelect","PAUSE PREG PTH RT_LD RUN SELECT SKIP Skip TA TB TO TOOL_OFFSET ","rejectUnauthorized","treeData","$default:","gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers ","(?:D|LL|M|RE|S|T|VE))?","md-max","اتوار","SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE ","elephant","sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow ","revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered ","WEND WIDTH WINDOW WRITE XOR","לפנות בוקר","$to","openFrom","SYSREQ_EDOC_TYPE_NUMERATION_METHOD ","REGEXP","%d minuten","Disathairne","worried","goto/16","ar-dz","miesiąc","drawTicks","getClientRects","firstBackpack flag flagAnimationPhase flagOwner flagSide flagTexture fleeing floor flyInHeight ","

    {{::dialog.mdTextContent}}

    ","%d horas","term","[minulou neděli v] LT","
    ","IAccountRepository ","hostport_params","steppedLine",'"/"',"Dialogs ","calculateTotalPages","target"," gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args","uiStateOpts","FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER ","scrollXMarginOffset","async signal static abstract interface override virtual delegate ","getSpecialChar","put_litter_in_its_place","bool cdouble cent cfloat char creal dchar delegate double dstring float function ","mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave ","star2","mdMonthBodyCtrl","Symbian/[VER]","IAction ","ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ","vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window ","#ce93d8","ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel ","`[cwd]?","segundu balun","uibTab","onAuthenticated","dddd [tuần trước lúc] LT","cleanup"," मिणटां",'"%"',"_findTabReverse","सायंकाळी","pagi"," secunds","garbageCollect",'ng-blur="$mdTabsCtrl.hasFocus = false" ',"%s síðani","angular.filter","disableNVGEquipment disableRemoteSensors disableSerialization disableTIEquipment ","traceViewServiceUIViewEvent","focusToggleElement","
    ","%d.","animDisplay animView annotate appendStringArray applicationName applyAttrPreset ","pushing","MdTabsController","port","os_lock_orientation display_get_dpi_x display_get_dpi_y ","%d sni","; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan ","[autofocus]","while long throw finally protected final return void enum else ","{PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @","[\\$\\@]",'
    \n',"public return static super switch this throw trace try typedef untyped using var while ","webkitMatches","nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota","kuukauden","exports register file shl array record property for mod while set ally label uses raise not ","respectPreAssignBindingsEnabled","clickable","[كېلەركى] dddd [سائەت] LT","a8m.math.byteFmt","scorpius","codepenEmbed","toPromise","appendChip","_receiveInviteResponse","winphone_tile_title winphone_tile_count winphone_tile_back_title "," modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag","A namespace for the date id has to be specified.","_enableWatchers","$mdToast","ctInnerPanel ","UibDropdownController","handleDirectionalChanges","_registerCoreTransitionHooks","dddd, Do MMMM YYYY H:mm","आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार","TO_ASCII TO_HEX TRANSLATE ","invalidEra","జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్","osù kan","gpu_set_zwriteenable gpu_set_lightingenable gpu_set_fog ","SYSREQ_EDOC_TYPE_COMMENT ","SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE ","repeatName","autoSwitch","shortFmt","SYSRES_CONST_LIST_REFERENCE_MODE_NAME ","SYSRES_CONST_REQUISITE_SECTION_BUTTONS ","rgb(204, 255, 255)","draw_ellipse draw_set_circle_precision draw_arrow draw_button ","^\\*","removeFromGroup","switch synchronized throw throws transient try volatile while strictfp package ","md.table.templates","disableTemplates","#3300FF","createMarkerLocal createMenu createMine createMissionDisplay createMPCampaignDisplay ","totalItems"," Monate","withOffsetY","onElementReady","f0f8ff","DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS ","updateHeight","listEnter"," diagmetric diff dim dimensions dispflag display2d|10 display_format_internal","sput","getLanguage","getLocals","Thu","INFO","UibTypeaheadController","koala","e61a","ConfigurationError","transitionDuration","removeItem","flowPreventDrop","flower_playing_cards","ShowMessage ","_wrapTemplate","maxDate","Seconds","drawRoundedRectangle","Toasts with actions should define an actionKey for accessibility.","%d minuti","SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY ","$interpolate","missingif nullif ifinf ifnan ifnanorinf naninf neginfif posinfif clock_millis clock_str date_add_millis ","ILargeIntegerCriterion ","sushi","SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT ","modelToWorldVisualWorld modelToWorldWorld modParams moonIntensity moonPhase morale move ","steam_ugc_set_item_description steam_ugc_set_item_visibility ","taglist string getmatches bufnr strftime winwidth bufexists ","incoming_envelope","bir neçə saniyə","hasAnimations","lastDayOfMonth","A h:mm:ss [vazta]","%d buwan","800 900","$exceptionHandler","createComment","data-ps-id","ICustomWorkInfo ","SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME ","getFocusedTabId","_injector","Obigo","a8m.omit","$urlRouter","codeServices","checkStickySupport","d8bfd8","New-vRNIDataSource Open-VMConsoleWindow Publish-Module Publish-NsxSpoofguardPolicy Publish-Script Register-PSRepository Register-PackageSource Remove-AdvancedSetting ","miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"," mesen","nav-up","HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId ","unhold()","vertex_submit vertex_freeze vertex_get_number vertex_get_buffer_size ","offeredAnswersSortableConfig","physics_particle_get_radius physics_particle_get_density ","getHoverColor",'emit "refer"',"IWizardStep ","false true null","new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty ","ugc_query_RankedByTrend ","SYSRES_CONST_CONST_POSITIVE_VALUE ","md-fling","#6200ea","isApplyConstraintsSupported","filter","ug-cn","critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user ","SYSREQ_EDOC_VERSION_NOTE ","set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? ","alertdialog","graph","source-hash static-port","SYSREQ_ORIGINAL_RECORD ","INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION ","scaleSizeInUnits","星期日_星期一_星期二_星期三_星期四_星期五_星期六","ev_joystick2_button8 ev_outside ev_boundary ev_game_start ","modalInClass","mp_potential_path mp_linear_path_object mp_potential_path_object ","BYE Received","topIndex","isDST","A.T.M.","wfepUndefined ","ui.bootstrap.debounce","facebook_dialog facebook_logout facebook_launch_offerwall ","[:;]","def defonce cond apply if-not if-let if not not= = < > <= >= == + / * - rem ","Diciadain","set3DENModelsVisible set3DENObjectType set3DENSelected setAccTime setActualCollectiveRTD ","_receiveReplaces","#f9a825","%s كېيىن","allItemsOrdered","md-input-invalid","STATUS_DISCONNECTED","$uibTooltip","Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt","#9ccc65","disableScroll","dddd [në] LT","subs","ühe minuti","capnp","stripTrailingSlashes","draw_sprite_stretched_ext draw_sprite_tiled draw_sprite_tiled_ext "," random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto","isUrlRule",'
    ',"chartLabels","@?mdpCancelLabel","preventMouseEvent","$$jqLite","false null true","isLockedOpen","isoWeeks","$broadcast","useLocalStorage","нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота","ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන","getOuterHTML","md-calendar-parent-action","fil","AppleScript false linefeed return pi quote result space tab true","%d hores","ctHyperLink ","pⓟpṕṗƥᵽꝑꝓꝕ","Symbol Symmetric SystemError TCPSocket Task Text TextDisplay Timer Tridiagonal Tuple Type TypeError TypeMapEntry ","#f57f17","layer_sprite_get_blend layer_sprite_get_alpha layer_sprite_get_x ","KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM","unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta ","getPart","SYSRES_CONST_MESSAGE_ERROR_CAPTION ","New-AlarmActionTrigger New-CDDrive New-CIAccessControlRule New-CIVApp New-CIVAppNetwork New-CIVAppTemplate New-CIVM New-Cluster New-CustomAttribute New-Datacenter New-Datastore ","https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers","hoverOut","jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez","polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge ","размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта "," napja","searchFields","dot_product_normalised dot_product_3d_normalised ","focusLastChipThenInput","isBefore","border-bottom-style","um minuto","vbs","काही सेकंदां","[कल] LT","%d ཟླ་བ","referer referrer repeating resultset rows search_args ","addHeader","minuteValues","animationend","SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT ","pisces","ਸ਼ਾਮ","steam_is_cloud_enabled_for_app steam_is_cloud_enabled_for_account ","smali","D MMMM YYYY г., H:mm","menu_container_","-ти","gridster-resizable-changed","endpackage endprimitive endprogram endproperty endspecify endsequence endtable ","small_red_triangle","ant","setElementSizeX","point_right","січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня","IDataSigner ","\\b(0[oO][0-7]+)n?","Intersection Intersects IsEmpty IsNan IsSelfIntersecting Length LengthGeodetic Log Max Mean Millisecond Min Minute Month ","bodyFontStyle","translateLanguageChanged","\\)$","cancelAnimFrame","symbols","md-datepicker-is-showing","hasNext","animateClose","gdevAuth","New-NsxLogicalRouterInterfaceSpec New-NsxLogicalRouterOspfArea New-NsxLogicalRouterOspfInterface New-NsxLogicalRouterPrefix New-NsxLogicalRouterRedistributionRule ","@mdCurrentView","curatorWaypointCost current3DENOperation currentChannel currentCommand currentMagazine ","dow","vmNavigation ","[прошле] [среде] [у] LT","ArrayLowBound ","max-message-size:%s","onunload","dddd [seo chaidh] [aig] LT","_mangleOffer","AMPMS","ddd D MMM YYYY, H:mm","hxx","toasty-clear","utc","%d دن","getHooks","SUBTASK_BLOCK_NAME_PROPERTY ","D. MMMM YYYY H:mm",'probe transport "%s" failed because of error: %s',"$render","searching","a.m.","a bɛ %s bɔ","classList","browser_chrome browser_safari browser_safari_mobile browser_opera "," fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units","[object Arguments]","setPosATL setPosition setPosWorld setPylonLoadOut setPylonsPriority setRadioMsg setRain ","%d ай","refreshMethod","[کل بوقت] LT","inputContainer","files","a9a9a9","Replaces: ","G_vmlCanvasManager","TRACE","block-policy debug fingerprints hostid limit loginterface optimization","getElementSizeY","dddd [كاتژمێر] LT","probe error","#b9f6ca","moveInProgress","isindex","jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec","ugc_query_FavoritedByFriendsRankedByPublicationDate ","видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ","ice","SYSREQ_EDOC_TYPE_VIEW_NAME ","miter","gpu_set_tex_max_mip gpu_set_tex_max_mip_ext gpu_set_tex_max_aniso ","_titleFontFamily","SYSRES_CONST_CONTENTS_REQUISITE_CODE ","focusToDate","SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE ","sstAnsiSort ","ortho perspective printCamera printProjection cursor frameRate noCursor exit loop noLoop popStyle ","reply","","removePsClasses","00ff7f","md-cell","vertex_format_add_texcoord vertex_format_add_textcoord ","layer_tile_get_region layer_tile_get_visible ","date_date_string date_time_string date_days_in_month ","#f44336","SYSRES_CONST_DATE_OPEN_REQ_CODE ","ydd","\\.)+","COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS ","waxing_crescent_moon","event-param","ctCheckListBox ","_remote_uri","inputAriaDescribedBy","deActivateKey debriefingText debugFSM debugLog deg delete3DENEntities deleteAt deleteCenter ","SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME ","SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE ","#f50057","angular-translate/service: getFirstBrowserLanguage","ssrcGroups","
\n","mdDialog","userCallback","window_handle window_device matrix_get matrix_set ","onRequestTimeout","_bubble","point_up_2","[a-zA-Z][a-zA-Z0-9_-]*","stfips|stname|stnamel|substr|sum|symget|sysget|","angular-sortable-view","tooltipAnimationClass","RAW","cancelScheduledOpen","paddingRight","mdVisible","z9hG4bK",'',"mdChecked","SYSREF_RECORD_HISTORY ","^\\s*\\%\\{\\s*$","interpolate","SYSRES_CONST_ACTION_TYPE_REVISION ","data-clipboard-","background-color","начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы ","[1-9]|1[0-2]","^mdSidenav","IProgress ","VIEWERS_PSEUDOREFERENCE_CODE ","buildHooks","sortedUniqBy","[\\w#]+\\(\\w+\\):\\d+:\\d+>","removePage","%d сағат","nogrow","$$cookieWriter","textAlign","SYSRES_CONST_NO ","msie","CreateObject ","See http://momentjs.com/guides/#/warnings/define-locale/ for more info.","","mdChips","ttSystem ","\\?.*=:","#d7ccc8","defimpl defmodule defprotocol defrecord","\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b","easeFn","emChangeEncodeTypeToPassword ","tickUnit","$ctrl.handle","isHovered","inversion inversion_clear is_evar is_var lapply lazy left lia lra move ","SYSRES_CONST_SEARCHES_EDOC_CONTENT ","atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier ","a8m.after-where","hideLtLg","SIP_FAILURE_CODE","einer Woche","createElementNS","sehari","РеестрСписокИменПарам ","ISignProvider2 ","اڱارو","ping","#69f0ae","ВедС ","[Sini lɛrɛ] LT","oss0","[Бүгін сағат] LT","$md-resize-enable","telescope","letom","loadingAsync","[В прошлое] dddd, [в] LT","SYSRES_CONST_JOB_KIND_CONTROL_JOB ","sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone ","An Dùbhlachd","display (alert|dialog))\\b|^\\s*return\\b","fieldset"," ","message/sipfrag;version=2.0","data-ng-animate",'"early-only"',"\\b(?:PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b","tinan %d","scrollbarXRail",'
',"%d %d","overflow-wrap","font-style","$$nextSibling","D [ב]MMMM YYYY","_transport","order deny allow setenv rewriterule rewriteengine rewritecond documentroot ","physics_particle_set_max_count physics_particle_set_radius ","LLLL","YYYY-MM-DD","transition-delay","MoveFile ","catch","[a-zA-Z_\\-\\+\\*\\/\\<\\=\\>\\&\\#][a-zA-Z0-9_\\-\\+\\*\\/\\<\\=\\>\\&\\#!]*","%s بعد","སྐར་མ་གཅིག","ព្រឹក","_from_tag","a8m.is-null","%s %d %s %s","pointcut after before around throwing returning","escape","Precision ",' \n',"найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы ","part_type_step part_type_death part_type_speed part_type_direction ","%d दिन","determineDataLimits","verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear ","[dünən] LT","pollComplete","stagger-","resume","$md.pressup","Palm|Pre|Pixi","ssrc-group:%s %s","Unable to find component named '","achievement_show_ui achievement_show_profile "," realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar","MW_ELEMENT_TYPES","sessionId","_processInDialogSdpOffer","vertex_format_add_color vertex_format_add_normal ","tagName","startScrolling","local_seqnum","olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto ","NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY ","ptlined radians random reflect refract renderinfo round setcomp setxcomp setycomp ","LoadString ","injector","текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток ","установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации ","polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection ","$uiViewAnim","\\b\\d+[kKmMgGdshdwy]*\\b","dnd_","ਇੱਕ ਮਹੀਨਾ","wa’ rep","temp_gruu","audio_free_play_queue audio_queue_sound audio_get_recorder_count ","assignInWith","YYYY. [gada] D. MMMM","
","list-style","chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach ","%d ຊົ່ວໂມງ","if then else on error option explicit new private property let get public randomize ","#b0bec5","foregroundPalette","dakika moja","[heute um] LT [Uhr]","-كۈنى","#FF00CC","symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext ","irb","^\\s*(!=#|=#|-#|/).*$","%d मिनिटां","invalid parameters to applyPairs","break continue discard do else for if return while switch case default ","á~ñ hó~úr","JsSIP:RTCSession","действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs ","_items",'"_"',"%d segondas","isSelected","$stateful","uploaderPage",'"user="',"гадзіна","[\\w\\d]",".md-virtual-repeat-sizer","bank","aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63","achievement_leaderboard_info achievement_achievement_info ","ng-animate-ref","یک دقیقه","SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE ","a8m.uri-component-encode","primaryWeaponItems primaryWeaponMagazine priority processDiaryLink productVersion profileName ","str char bool ","trying","updateOn","ddd, YYYY[ko] MMM D[a] HH:mm","$parent","_overflowWeekday","removeWith","deRegister","#eceff1","May","%d မိနစ်","'md-right': tab.isRight(), ","FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM ","SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME ","localDescription",'uib-title="',"%d segons","ВедСпр ","%d sekunddat","miniti %d",'"MD5-sess"',"porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ","bfcpConfId","Set-NsxEdgeOspf Set-NsxEdgeRouting Set-NsxFirewallGlobalConfiguration Set-NsxFirewallRule Set-NsxFirewallSavedConfiguration Set-NsxFirewallThreshold Set-NsxLoadBalancer ","running","_mdSelectIsOpen","ОтлИнфУдалить ","type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then ","matchCriteria","neutral","РегУстВрем ","alien","Remove-NsxMacSet Remove-NsxSecondaryManager Remove-NsxSecurityGroup Remove-NsxSecurityGroupMember Remove-NsxSecurityPolicy Remove-NsxSecurityPolicyAssignment ","query","win8_secondarytile_delete win8_livetile_notification_begin ","animation-direction","pre","fdtInteger ","#(b|B)[0-1]+(/[0-1]+)?","REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME ","SYSRES_CONST_FOLDER_TYPE_COMMON ","default delegate do double enum event explicit extern finally fixed float ","preAssignBindingsEnabled","mdCalendarYear","setMonth"," цаг","$md.hold","February"," \n","%d mìosan","СоздатьДиалогВыбораПапки ","lfm","SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT ","a8m.ends-with","\\s=>","regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy ","EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends ","Via: ","","enableScrolling","heavy_plus_sign","a8m.before-where","phy_particle_data_flag_color phy_particle_data_flag_category ","$mdSidenavController","exception fn fun functor handle if in include infix infixr ","[0-9][0-9][0-9]",'" content="',"theme-color","text-shadow","millis begin print write ready flush width ","New-NsxLoadBalancerMonitor New-NsxLoadBalancerPool New-NsxLogicalRouter New-NsxLogicalRouterBgpNeighbour New-NsxLogicalRouterBridge New-NsxLogicalRouterInterface ","sdpOffer","Security Agreement Required","أقل من ساعة"," xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width","SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd ","$uibUnscheduledDestruction","SYSREF_ROLES ","DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ","[ui-view#"," zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table","SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE ","%s بۇرۇن","scroll-shrink","mdPanel: Group does not exist yet. Call newPanelGroup().","$md.swipedown","startX","removeAttr","[a-zA-Z_][a-zA-Z0-9_.]*(\\!|\\?)?","getAfterBody","wdtAccountCollection ","resb resw resd resq rest resdq reso resy resz ",")\\s*=>","wheel touchmove","confirm","SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE ","audioServices","white-space","listen","rokov","ng-value","SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE ","DetectRTC","forOwn","quelques secondes","addPreset","ngResource:\n","SYSRES_CONST_MINUTE_CHAR ","#0000CC","md-calendar-parent-changed","intersectionBy","paramSchema","handler","material.core.gestures","mrCancel ","callback","hasHeader","pages","define __FILE__ ","utSystemDeveloper ","_monthsShortStrictRegex","delay","smHidden smMaximized smMinimized smNormal wmNo wmYes ","tropical_fish","una minuta","SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE ","[أمس على الساعة] LT","left_luggage","വൈകുന്നേരം","SCRIPT_BLOCK_NAME_PROPERTY ","SYSCOMP_NOTICES ","zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 ","ariaValue","Sortable: `el` must be HTMLElement, not ","[včera v] LT","outgoing","clickable_change clickable_change_ext clickable_delete ","path_flip path_rotate path_rescale path_shift script_execute ","sekundi","حوزەیران","$type","setMax","openscad","ruri","Unknown type: ","findIndex","tHead","отображениевремениэлементовпланировщика ","CheckParam ","$templateCache","_$scope","SYSRES_CONST_REQUISITE_FORMAT_LEFT ","closing session ","app/directives/input-item/input-view.html","self other all noone global local undefined pointer_invalid ","izakaya_lantern","text/html","%d năm","bind() requires a function","\\[/no_square_brackets\\]","[ieiri à] LT","directionLinks",'
{{formItem.props.title}}
{{formItem.props.helpText}}
',"တစ်မိနစ်","Palette() instead.","mask","$watch","px,","दुपारी","dolls","DCTS_TEST_PROTOCOLS_FOLDER_PATH ","parseStyle","$$encodeUriSegment","beginTransmission getSignalStrength runAsynchronously ","расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных ","$$animateQueue","b22222","uma semana","[В] dddd, [в] LT","getLabels","les","mdColorHistory","SYSRES_CONST_ROUTE_TYPE_PARALLEL ","rgb(255, 230, 204)","currentMagazineDetail currentMagazineDetailTurret currentMagazineTurret currentMuzzle ","dddd, D MMMM YYYY [i] HH:mm",'"application"',"$mdExpansionPanelGroup","DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT ","te haora","rgba(0, 0, 0, 1.000)","[\\+\\-]","`","%d ġranet","html.hbs","VIEW_MINUTES","settings","як сол","Future GlobalRef GotoNode HTML Hermitian IO IOBuffer IOContext IOStream IPAddr IPv4 IPv6 IndexCartesian IndexLinear ","mw-form-page-element-builder.html","physics_get_density physics_get_restitution ","count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation ","MSPointerCancel","spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet ","uibTooltipHtml","एका दिसान","green_heart","thread_local zeroinitializer undef null to tail ","clearing existing transport %s","splice","tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’","setNumPages","%d saat","getPointAtEvent","jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion ","getter setter retain unsafe_unretained ","datepicker-options","setDisabled","segment","uibPopoverTemplate","","a8m.latinize","Ta_Ma_Tū_We_Tāi_Pa_Hā","SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE ","[Circular]","arrow_lower_right","distinct drop foreign from group having index insert into in ","#536dfe","SUPPRESS_EMPTY_TEMPLATE_CREATION ","uibTabindexToggle","နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ","gggg","timeline_clear timeline_exists timeline_get_name ","six_pointed_star","md-slider-content","decrementSeconds","EXPIRES","leopard","Maemo","mdToolbar","[minulú nedeľu o] LT","list2","squash","value_list while abort case else fail_if fail_ifnot fail if_empty ","EEPROM Stream Mouse Audio Servo File Task ","variable","PRIVILEGE_MANAGE_ACCESS_RIGHTS ","mdCheckboxDirective","flush","_tones","subPath","vk_numpad1 vk_numpad2 vk_numpad3 vk_numpad4 vk_numpad5 vk_numpad6 ","Illegal attachments","[ⴰⵙⴷⵅ ⴴ] LT","[ieri la] LT"," ","$mdPanel","div","userInvalidated","lineTo","mdColorPickerAlpha","МаксСтрТблСпр ","00008b","BEFORE_NG_ARIA","typeaheadShowHint",'
',"получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима ","payloads","200ms","'\\w[\\w :\\/.-]*':(?=[ \t]|$)","TAB","arrow_upper_right","iOS","packet","uib/template/pager/pager.html","fed","jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec","px ","level","toPairs","#ffb300","uibDropdownService","two_women_holding_hands","physics_fixture_set_box_shape physics_fixture_set_edge_shape ","ctrlSetModelDirAndUp ctrlSetModelScale ctrlSetPixelPrecision ctrlSetPosition ctrlSetScale ","md-no-stick","wheelPropagation","%d år","sip_version","SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG ","DⒹDḊĎḌḐḒḎĐƋƊƉꝹ","polarArea","_options","mp_grid_draw mp_grid_to_ds_grid collision_point collision_rectangle ","SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE ","xorwrite goto near function end div overload object unit begin string on inline repeat until ","wptBoolean ","chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate ","RadioButton","onRemoved","JsSIP:ERROR:RTCSession:Info","isFullWidth","=mdSelect","inputElement","[བདུན་ཕྲག་མཐའ་མ] dddd, LT","[0-9]|[1-5][0-9]","buildCalendarForYear","$dist_t $dist_uniform $q_initialize $q_remove $q_exam $async$and$array "," random_logistic random_lognormal random_negative_binomial random_network","cellInputType","Session Interval Too Small","ein paar Sekunden","87cefa",'\n',"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2","SliceConcatExt ToString ","pfx","JOB_BLOCK_CREATED_JOBS_PROPERTY ","dolphin","overrideParser","draw_light_get draw_get_lighting shop_leave_rating url_get_domain ","postbox",'לפנה"צ',"increase limit","pre-pause writing complete","ອີກ %s","segundo batzuk"," quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile","So_Ma_Di_Wo_Do_Vr_Sa","%d месеци","acos atan exp expm1 log log2 log10 log1p pi at text_length text_range ","%d oⵙⵙⴰⵏ","राति","ಒಂದು ನಿಮಿಷ","capture","metai_metų_metus","material.components.gridList","Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj","fade","$scroll","invalid 'what' in when()","application_get_position application_surface_enable "," listeners ","[=>'/<($\"]","mdOptgroup",'md-svg-src="',"repeat_one","ACCEPTED_BODY_TYPES","hospital","NOTICE_BLOCK_DEADLINE_PROPERTY ",'',"custard","documentMode","NG_EMBED_DEFAULT_OPTIONS","Remove-VIPermission Remove-VIProperty Remove-VIRole Remove-VM Remove-VMHost Remove-VMHostAccount Remove-VMHostNetworkAdapter Remove-VMHostNtpServer Remove-VMHostProfile ","SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE ","@?mdDropdownPosition","leftwards_arrow_with_hook","setAM","vertex_format_delete vertex_format_add_position ","Sv_P_O_T_C_Pk_S","ELS_FOLDER_KIND_CONTROL_NAME ","CALCULATED_ROLE_TYPE_CODE ","skeleton_animation_get_frame skeleton_animation_set_frame ","first","textChange","$dismiss($value)","arrow_right_hook","getXChange getYChange answerCall getResult ","md-whiteframe-z1","openFocusedMenu","%d orë","mdWhiteframe","six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five ","bindKeydown","parseInt","selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime ","ev_global_gesture_tap ev_global_gesture_double_tap ",'
',"clearAnimate","wfepText27 ","nixos","%d daqiqa","clearmatches empty extend getcmdpos mzeval garbagecollect setreg ","","D MMM YYYY, H:mm","args","D MMMM [năm] YYYY HH:mm","جويلية","view_angle view_hborder view_vborder view_hspeed view_vspeed ","a8m.math.degrees","dtmf","Suspend-Service Tee-Object Test-ComputerSecureChannel Test-Connection Test-ModuleManifest Test-Path Test-PSSessionConfigurationFile ","handleKeyDown","month","require returnhome skip split_thread sum take thread to trait type ","splineCurveMonotone","(?=[\\.\\s\\n\\[\\:,])","adoc","một giờ","вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы ","[A-Z_][A-Z0-9_.]*","error while creating transport: %s","You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3","TEST_EDMS_MAIN_CODE ","\\s*:","vsmNoSelection ","_rules","session onhold",'content-exp="contentExp()" ',"unicode-bidi","SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE ","pushR","md-calendar-date-selection-indicator","lineWidth","\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_*[-+]?[0-9_]*)?","maxParam","DISCONNECT","ఆ_సో_మం_బు_గు_శు_శ","IE_PROTO","sekúnda","ngSortableConfig","СпрПарам ","soatDatetime ","pageNameChanged","triggerHandler","et minut","\\bDolfin\\b","CArrayElement ","dddd [tuần tới lúc] LT","selected",'error parsing header "',"%d sagat","ui.router.angular1","[明日] LT","prior priority private private_sga privileges procedural procedure procedure_analyze processlist ","$uibPosition","https://vimeo.com/api/v2/video/","uib/template/modal/window.html","$$animationRunner","%d 個月","cry","relativeTo","режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса ",' date-end="ngModel.dateEnd" ',"dseOnPrepareUpdate ","disableBackdrop","marker","Minutes","Busy Here","diamond_shape_with_a_dot_inside","[a-zA-Z](\\.?\\w)*"," get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close","%d d~áýs","addClass","-ھەپتە","hasModifierKey","outline-width","SYSRES_CONST_ACTION_TYPE_VERSION_STATE ","device_is_keypad_open device_mouse_check_button ","setDialogParentGetter","icWizardActionEnableEventHandler ","gpu_set_tex_filter gpu_set_tex_filter_ext gpu_set_tex_repeat ","UibRatingController","invokeMap","-module -record -undef -export -ifdef -ifndef -author -copyright -doc -vsn ","SYSREQ_GROUP_CATEGORY ","jstree","radius","ratio","$$parseAndValidate","@mdItems","documentElement","assignAsCargo assignAsCargoIndex assignAsCommander assignAsDriver assignAsGunner assignAsTurret ","_monthsParse","Мин ","^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b","ff0","$datepickerPopupLiteralWarning","SYSRES_CONST_TASK_STATE_COMPLETE ","'(U|X|0|1|Z|W|L|H|-)'","distance distance2D distanceSqr distributionRegion do3DENAction doArtilleryFire doFire doFollow ","_titleAlign","Record-Route: ","SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL ","STATUS_WAITING_FOR_ACK","isFormat","(\\s*/)?","dddd [dernier à] LT"," is reserved!","repeat exit and or xor not return mod div switch case default var ","sparse","mwForm.pageEvents.addPage","അൽപ നിമിഷങ്ങൾ",' AM',"конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных ","SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME ","(\\))?[^a-zA-Z0-9_\\}\\$]","lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize","_request","$cacheFactory","YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",'
{{video.description}}
{{video.views}} {{video.likes}}
',"(none)","isMultiplayer isMultiplayerSolo isNil isNull isNumber isObjectHidden isObjectRTD isOnRoad ","inputFocus",'
',"prefixer","```","styleTabItemFocus","tilemap_y tilemap_set tilemap_set_at_pixel tilemap_get_tileset ","feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt ","ամիս","ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12",'',"Get-VMHostProfileImageCacheConfiguration Get-VMHostProfileRequiredInput Get-VMHostProfileStorageDeviceConfiguration Get-VMHostProfileUserConfiguration ","orange_book","_weekdaysParse"," tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract","autoSkip","секунду_секунды_секунд","$stateChangeError","titles","animationIterationCount","Unknown unit ",";transport=ws","ariaLabel",'',"transportType","[ \\t]*=","%d urte","xdomain","moveDown","mousemove touchmove","VIEWCONFIG: ","%d sekunder",'',"self semi sequence sequential serializable server servererror session session_user sessions_per_user set ","item","DOWN_ARROW","ReportName ",'" height="',"SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE ","[prošlog] [utorka] [u] LT","SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE ","JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY ","Disconnect-CisServer Disconnect-HCXServer Disconnect-NsxLogicalSwitch Disconnect-NsxServer Disconnect-NsxtServer Disconnect-SrmServer ","REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP ","kind do while private call intrinsic where elsewhere ","Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ","twig",'Illegal lexeme "',"withStream withWriter withWriterAppend write writeLine","host_type","mahjong","matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print ","ngMaterialDateRangePicker","SYSREQ_FUNC_GROUP ","ds_list_size ds_list_empty ds_list_add ds_list_insert ","functionsIn","\\B('[A-Za-z])\\b","stripTags","IWorkflowReferenceParam ","$translateRefreshEnd","hostname","maxRows","reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx ","STORAGE_TYPE_NAS_CIFS ",'',"&lang=","nextWeek","reverseAnimate","setValue","පෙ.ව.","dddd D. MMMM YYYY H:mm","onKeydown","parameter","array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit ","quadraticCurveTo","SYSRES_CONST_IMAGE_MODE_COLOR ","%d ದಿನ","A h:mm","no ACK received, terminating the session","formatDay","calculateBarWidth","setLocalDescription","hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender ","expectWithText","SameAsPending","#eeff41","md-table-select","getPixelForTick","wdtFloat ","negotiateLocale","hex3","SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION ","%\\}",'Datepicker directive: "ng-model" value must be a Date object',"buffer_set_surface buffer_delete buffer_exists buffer_get_type ","#006064","dseAfterDeleteOutOfTransaction ","Couldn't add part, first arg has to be a string","contentWidth","achievement_load_friends achievement_load_leaderboard ","resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget ","Attrs","initSelection","00bfff","unwind unreachable indirectbr landingpad resume ","ownKeys",'
',"preparse","ev_keyrelease ev_trigger ev_left_button ev_right_button ","_defineEvent","service","md-grid-list: md-row-height attribute was not found","setTimeMultiplier setTitleEffect setTrafficDensity setTrafficDistance setTrafficGap ","एक बर्ष","mobileModeEnabled","colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr","pointBorderColor","@\\[","dseBeforeDetailUpdate ","maxSizeY","template-url","dc143c","BYE","tags","click","ФайлЗаписать ","Cwstring DataType Date DateFormat DateTime DenseArray DenseMatrix DenseVecOrMat DenseVector Diagonal Dict ","__stateObjectCache","dateLocale","এক ঘন্টা","([ui](8|16|32|64|128|size)|f(32|64))?","arrow_heading_down","Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀","onclick","_uac_pending_reply","|deg|grad|rad|turn","maxPhoneWidth"," graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery","gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes ","СоздатьДиалог ","IDocRequisite ","FormImageBuilderId","animationObject","Beal","appendToBody","kuuden","padding-left","pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object","SYSRES_CONST_ACCESS_TYPE_EXISTS ","devicePixelRatio","процедура функция","addMagazine addMagazineAmmoCargo addMagazineCargo addMagazineCargoGlobal addMagazineGlobal ","invariant","copyRect","IRP_ALIGN irp_here","\\([^\\(]","rabbit","#d4e157","audio_falloff_inverse_distance_clamped audio_falloff_linear_distance ","' has a 'views' object. ","nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota","hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox ","vanilla.services","INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL ","Iúil","labelY","iconEl","[v piatok o] LT","=autoConfirm","egy","filterBy","%d ஆண்டுகள்","cert","ng1","error","положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском ","[0-9]|1[0-2]","Method '_options' in ","compileScope","php7",")","confirmed","dotsubEmbed","translateFilterFactory","en-in","SYSRES_CONST_VIEW_DEFAULT_NAME ","dddd [um] LT [Uhr]","=mdPage","дня","gridster-item-moving","%d دقائق","useOnAppendExpression","ILargeIntegerRequisite ","md-labeled-by-tooltip","tickWidth","-chip-","selectCustomRange","invalid",'
',"SYSREF_ALL_REPLICATING_COMPONENTS ","_getTabs","dddd [alle] LT","[आउँदो] dddd[,] LT","'n dag","drawBody","TRANSFORM","AltState ","_erasAbbrRegex","int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float ","SYSREF_COMPONENTS ","NOTICE_BLOCK_CREATED_NOTICES_PROPERTY ","socket.io-client:socket","material.components.sticky","1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월","future",'aria-label="',"girl","[Vakar pulksten] LT","textNoResults",".md-button","xGoogleFlag","SYSTEM_USER_CODE ","GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE ","een paar seconden","viewportMargin","_applyModification","getName","a8m.math.radix","ctPanelGroup ","steam_user_installed_dlc steam_set_achievement steam_get_achievement ","hljs","[བདུན་ཕྲག་རྗེས་མ], LT","_ __COLUMN__ __FILE__ __FUNCTION__ __LINE__ Any as as! as? associatedtype ","SYSRES_CONST_USER_STATUS_DISABLED_CODE ","itemName","role","SYSRES_CONST_JOB_STATE_COMPLETE ","mdContactChips","toArray","D. MMMM YYYY.","maybeReconnectOnOpen","caseInsensitive","^?mdChips","ФайлПереименовать ","[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?","md-calendar-year-body ","received binary message:\n\n","text-decoration-color","nodesToArray","#00CC99","string_pos string_copy string_char_at string_ord_at string_byte_at ","HANDLE_RESULT"," quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal","k0 k1 k2 k3 k4 k5 k6 k7 ","hodina","бир кун","_action","#00CCCC","Chips container. Enter the text area, then type text, and press enter to add a chip.","sedinten","mp_grid_create mp_grid_destroy mp_grid_clear_all mp_grid_clear_cell ","translate3d(0,0,0)","md-chip","%d semanas","Gecko/[VER]","mdColorGenericPalette","началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя ","[Aujourd’hui à] LT","hodinami","priorWebsocketSuccess","recvonly","wfatCancel ","[object AsyncFunction]","useExisting","StateParams","selector-class","ctrlSetTooltipColorShade ctrlSetTooltipColorText ctrlShow ctrlShown ctrlText ctrlTextHeight ","md-fab-action-item"," ימים","gesture_double_tap_time gesture_double_tap_distance ","base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum ","ஒரு மாதம்","construction"," can only have *one* child ,
This field is required
',"flex-order-lt-md","toExponential",'aria-label="Previous Page" ',"steam_ugc_query_set_ranked_by_trend_days ","BAD_MEDIA_DESCRIPTION","currentStyle","eventNames","e606","md-open","connect attempt will timeout after %d","SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE ","min-width","maxElementPixels","grhX2 ","ng-show","(link:)?(http|https|ftp|file|irc|image:?):\\S+\\[.*?\\]","icWorkflowBlockActionHandler ","SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE ",'',"loop","Scripts ","githubgistEmbed","D MMMM YYYY, A h:mm વાગ્યે","loadfile loadstring module next pairs pcall print rawequal rawget rawset require ","SYSREF_EDOCUMENT_CARD_REQUISITES ","ไม่กี่วินาที","ure","emChangeEncodeTypeToPassword ","so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew ","isRoot","dragover",'
',"env","line text side width","isLast","aria","api","scalar scalars equation equations","isArray","column-span","almostEquals","This Month","createDisplay createGearDialog createGroup createGuardedPoint createLocation createMarker ","000000","btnCheckboxFalse","Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj","fafad2","Get-Datastore Get-DatastoreCluster Get-DrsClusterGroup Get-DrsRecommendation Get-DrsRule Get-DrsVMHostRule Get-DscResource Get-EdgeGateway ","Set-NodeExclusiveResources Set-NodeManager Set-NodeResourceSource Set-NodeResources Set-NsxEdge Set-NsxEdgeBgp Set-NsxEdgeFirewall Set-NsxEdgeInterface Set-NsxEdgeNat ","trolleybus","p[lu][lu].ps|recip.fmt|r?sqrt.[ds]|sdx?c1|sub.[ds]|suxc1|","surface_get_height surface_get_texture surface_set_target ","set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer ","dddd [សប្តាហ៍មុន] [ម៉ោង] LT","$$childHead","showWeeks","SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE ","h++","modalInClass","8fbc8f","400 500 600 700 A200 A400 A700","THEMES","dir-paginate","#ffd54f","[^\\\\]'","viewService","=?mdRemovable","#f5f5f5","[prejšnjo] [sredo] [ob] LT","Couldn't use storage '","BACKSPACE","isTypedArray","una settimana","Supported: ","Get-NsxFirewallRuleMember Get-NsxFirewallSavedConfiguration Get-NsxFirewallSection Get-NsxFirewallThreshold Get-NsxIpPool Get-NsxIpSet Get-NsxLicense Get-NsxLoadBalancer ","TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX ","ev_alarm ev_keyboard ev_mouse ev_collision ev_other ev_draw ","_checkInDialogRequest","isPlainObject","containerUpdated","mdp-chevron-right.svg","[O'tgan] dddd [kuni soat] LT [da]","ipv6uri","toHsvString","qt5_use_modules qt5_use_package qt5_wrap_cpp ","tail","$md.pressup","onRetain","_toggleMuteVideo","SYSRES_CONST_SELECT_REFERENCE_MODE_NAME ","حوزەیران","es-us","animationService","returnValue","scrollbarXTop","ABS ACCRINT ACCRINTM ACOS ACOSH ACOT ACOTH AGGREGATE ADDRESS AMORDEGRC AMORLINC AND ARABIC AREAS ASC ASIN ASINH ATAN ATAN2 ATANH AVEDEV AVERAGE AVERAGEA AVERAGEIF AVERAGEIFS BAHTTEXT BASE BESSELI BESSELJ BESSELK BESSELY BETADIST BETA.DIST BETAINV BETA.INV BIN2DEC BIN2HEX BIN2OCT BINOMDIST BINOM.DIST BINOM.DIST.RANGE BINOM.INV BITAND BITLSHIFT BITOR BITRSHIFT BITXOR CALL CEILING CEILING.MATH CEILING.PRECISE CELL CHAR CHIDIST CHIINV CHITEST CHISQ.DIST CHISQ.DIST.RT CHISQ.INV CHISQ.INV.RT CHISQ.TEST CHOOSE CLEAN CODE COLUMN COLUMNS COMBIN COMBINA COMPLEX CONCAT CONCATENATE CONFIDENCE CONFIDENCE.NORM CONFIDENCE.T CONVERT CORREL COS COSH COT COTH COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS COUPDAYBS COUPDAYS COUPDAYSNC COUPNCD COUPNUM COUPPCD COVAR COVARIANCE.P COVARIANCE.S CRITBINOM CSC CSCH CUBEKPIMEMBER CUBEMEMBER CUBEMEMBERPROPERTY CUBERANKEDMEMBER CUBESET CUBESETCOUNT CUBEVALUE CUMIPMT CUMPRINC DATE DATEDIF DATEVALUE DAVERAGE DAY DAYS DAYS360 DB DBCS DCOUNT DCOUNTA DDB DEC2BIN DEC2HEX DEC2OCT DECIMAL DEGREES DELTA DEVSQ DGET DISC DMAX DMIN DOLLAR DOLLARDE DOLLARFR DPRODUCT DSTDEV DSTDEVP DSUM DURATION DVAR DVARP EDATE EFFECT ENCODEURL EOMONTH ERF ERF.PRECISE ERFC ERFC.PRECISE ERROR.TYPE EUROCONVERT EVEN EXACT EXP EXPON.DIST EXPONDIST FACT FACTDOUBLE FALSE|0 F.DIST FDIST F.DIST.RT FILTERXML FIND FINDB F.INV F.INV.RT FINV FISHER FISHERINV FIXED FLOOR FLOOR.MATH FLOOR.PRECISE FORECAST FORECAST.ETS FORECAST.ETS.CONFINT FORECAST.ETS.SEASONALITY FORECAST.ETS.STAT FORECAST.LINEAR FORMULATEXT FREQUENCY F.TEST FTEST FV FVSCHEDULE GAMMA GAMMA.DIST GAMMADIST GAMMA.INV GAMMAINV GAMMALN GAMMALN.PRECISE GAUSS GCD GEOMEAN GESTEP GETPIVOTDATA GROWTH HARMEAN HEX2BIN HEX2DEC HEX2OCT HLOOKUP HOUR HYPERLINK HYPGEOM.DIST HYPGEOMDIST IF IFERROR IFNA IFS IMABS IMAGINARY IMARGUMENT IMCONJUGATE IMCOS IMCOSH IMCOT IMCSC IMCSCH IMDIV IMEXP IMLN IMLOG10 IMLOG2 IMPOWER IMPRODUCT IMREAL IMSEC IMSECH IMSIN IMSINH IMSQRT IMSUB IMSUM IMTAN INDEX INDIRECT INFO INT INTERCEPT INTRATE IPMT IRR ISBLANK ISERR ISERROR ISEVEN ISFORMULA ISLOGICAL ISNA ISNONTEXT ISNUMBER ISODD ISREF ISTEXT ISO.CEILING ISOWEEKNUM ISPMT JIS KURT LARGE LCM LEFT LEFTB LEN LENB LINEST LN LOG LOG10 LOGEST LOGINV LOGNORM.DIST LOGNORMDIST LOGNORM.INV LOOKUP LOWER MATCH MAX MAXA MAXIFS MDETERM MDURATION MEDIAN MID MIDBs MIN MINIFS MINA MINUTE MINVERSE MIRR MMULT MOD MODE MODE.MULT MODE.SNGL MONTH MROUND MULTINOMIAL MUNIT N NA NEGBINOM.DIST NEGBINOMDIST NETWORKDAYS NETWORKDAYS.INTL NOMINAL NORM.DIST NORMDIST NORMINV NORM.INV NORM.S.DIST NORMSDIST NORM.S.INV NORMSINV NOT NOW NPER NPV NUMBERVALUE OCT2BIN OCT2DEC OCT2HEX ODD ODDFPRICE ODDFYIELD ODDLPRICE ODDLYIELD OFFSET OR PDURATION PEARSON PERCENTILE.EXC PERCENTILE.INC PERCENTILE PERCENTRANK.EXC PERCENTRANK.INC PERCENTRANK PERMUT PERMUTATIONA PHI PHONETIC PI PMT POISSON.DIST POISSON POWER PPMT PRICE PRICEDISC PRICEMAT PROB PRODUCT PROPER PV QUARTILE QUARTILE.EXC QUARTILE.INC QUOTIENT RADIANS RAND RANDBETWEEN RANK.AVG RANK.EQ RANK RATE RECEIVED REGISTER.ID REPLACE REPLACEB REPT RIGHT RIGHTB ROMAN ROUND ROUNDDOWN ROUNDUP ROW ROWS RRI RSQ RTD SEARCH SEARCHB SEC SECH SECOND SERIESSUM SHEET SHEETS SIGN SIN SINH SKEW SKEW.P SLN SLOPE SMALL SQL.REQUEST SQRT SQRTPI STANDARDIZE STDEV STDEV.P STDEV.S STDEVA STDEVP STDEVPA STEYX SUBSTITUTE SUBTOTAL SUM SUMIF SUMIFS SUMPRODUCT SUMSQ SUMX2MY2 SUMX2PY2 SUMXMY2 SWITCH SYD T TAN TANH TBILLEQ TBILLPRICE TBILLYIELD T.DIST T.DIST.2T T.DIST.RT TDIST TEXT TEXTJOIN TIME TIMEVALUE T.INV T.INV.2T TINV TODAY TRANSPOSE TREND TRIM TRIMMEAN TRUE|0 TRUNC T.TEST TTEST TYPE UNICHAR UNICODE UPPER VALUE VAR VAR.P VAR.S VARA VARP VARPA VDB VLOOKUP WEBSERVICE WEEKDAY WEEKNUM WEIBULL WEIBULL.DIST WORKDAY WORKDAY.INTL XIRR XNPV XOR YEAR YEARFRAC YIELD YIELDDISC YIELDMAT Z.TEST ZTEST","секунди","Deprecation warning: ","iget","SYSRES_CONST_REQUISITE_SECTION_TABLE20 ","SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE ","resize",'aria-label="{{ctrl.navBarAriaLabel}}">',"fffafa","\\s*[\\$\\w_][\\w_-]*","error","0?[1-9]|1[0-2]","месец","Déardaoin","%r\\|","काही सेकंद","shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare ","ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME ","unfold","SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE ","एक मिनट","showAnalog","ASCII (character|number)|localized string|","luni","->|<-","calculateTickRotation","YYYY-DDD","[Ыран] LT [сехетре]","argument9 argument10 argument11 argument12 argument13 argument14 ","blossom","ui.bootstrap.popover","[-+]?\\d+(\\.\\d+)?","SYSRES_CONST_SEARCHES_FOLDER_CONTENT ","small_red_triangle_down","date_get_hour date_get_minute date_get_second date_get_weekday ","cyclone","isPostCompilingEnabled","getDirection()","getAvailableLanguageKeys","ФайлПерекодировать ","[lo scorso] dddd [alle] LT","forOwn",'\n \n \n',"REJECT_ERROR","linearConversion lineIntersects lineIntersectsObjs lineIntersectsSurfaces lineIntersectsWith ","(?!_)","[आयज] LT","rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table ","failed","cssText","pizza","hslaString","terminateSessions","100","if then else elseif for thru do while unless step in and or not","K KagiChart KaiserBesselWindow KaiserWindow KalmanEstimator KalmanFilter KarhunenLoeveDecomposition KaryTree KatzCentrality KCoreComponents KDistribution KEdgeConnectedComponents KEdgeConnectedGraphQ KelvinBei KelvinBer KelvinKei KelvinKer KendallTau KendallTauTest KernelExecute KernelFunction KernelMixtureDistribution Kernels Ket Key KeyCollisionFunction KeyComplement KeyDrop KeyDropFrom KeyExistsQ KeyFreeQ KeyIntersection KeyMap KeyMemberQ KeypointStrength Keys KeySelect KeySort KeySortBy KeyTake KeyUnion KeyValueMap KeyValuePattern Khinchin KillProcess KirchhoffGraph KirchhoffMatrix KleinInvariantJ KnapsackSolve KnightTourGraph KnotData KnownUnitQ KochCurve KolmogorovSmirnovTest KroneckerDelta KroneckerModelDecomposition KroneckerProduct KroneckerSymbol KuiperTest KumaraswamyDistribution Kurtosis KuwaharaFilter KVertexConnectedComponents KVertexConnectedGraphQ","$getOfferedAnswerByIdMap","controller","suppressScrollY","_configureScrollListener","dddd, Do MMMM[ta] YYYY, [klo] HH.mm","md-labeled-by-tooltip","Sun_Mon_Tue_Wed_Thu_Fri_Sat","(\\-|\\+)?\\d+([./]\\d+)?","steppedLine","onwheel",' \n',"mdExpansionPanel","part_system_position part_system_automatic_update ","increasePageOffset","Page:","%d años","webkitTransitionEnd","callbacks","__actions__","STATUS_PROCEEDING","discard packet as the transport is not currently writable","%d mánaðir",' \n',"dddd, LT","reset input blur","gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms ","(m|qr)?/","layout-no-wrap","^\\s*\\%\\{\\s*$","array null if endwhile or const for endforeach self var let while isset public ","close() | error closing the RTCPeerConnection: %o","أقل من يوم","let nameof on orderby partial remove select set value var when where yield","setTrafficSpeed setTriggerActivation setTriggerArea setTriggerStatements setTriggerText ","обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs ","[a-zA-Z_]\\w*","Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo",'
',"encrypt-uri","vertex_float2 vertex_float3 vertex_float4 vertex_ubyte4 ","handleClickSelectThisMonth","running","guitar","SYSREQ_NAME_LOCALIZE_ID ","%d րոպե","ps--x","vm.isOpen","msSaveOrOpenBlob","_translateX","isSearch","Literal date support has been deprecated, please switch to date object usage","রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার",' id="{{inputId || \'input-\' + $mdAutocompleteCtrl.id}}" name="{{inputName || \'input-\' + $mdAutocompleteCtrl.id }}" ng-class="::inputClass" ng-if="!floatingLabel" autocomplete="off" ng-required="$mdAutocompleteCtrl.isRequired" ng-disabled="$mdAutocompleteCtrl.isDisabled" ng-readonly="$mdAutocompleteCtrl.isReadonly" ng-minlength="inputMinlength" ng-maxlength="inputMaxlength" ng-model="$mdAutocompleteCtrl.scope.searchText" ng-mousedown="$mdAutocompleteCtrl.focusInput()" ng-keydown="$mdAutocompleteCtrl.keydown($event)" ng-blur="$mdAutocompleteCtrl.blur($event)" ng-focus="$mdAutocompleteCtrl.focus($event)" placeholder="{{placeholder}}" aria-label="{{placeholder}}" ng-attr-aria-autocomplete="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'list\'}}" ng-attr-role="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'combobox\'}}" aria-haspopup="{{!$mdAutocompleteCtrl.isDisabled}}" aria-expanded="{{!$mdAutocompleteCtrl.hidden}}" ng-attr-aria-owns="{{$mdAutocompleteCtrl.hidden || $mdAutocompleteCtrl.isDisabled ? undefined : \'ul-\' + $mdAutocompleteCtrl.id}}" ng-attr-aria-activedescendant="{{!$mdAutocompleteCtrl.hidden && $mdAutocompleteCtrl.activeOption ? $mdAutocompleteCtrl.activeOption : undefined}}">',"astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar ","setCurrentPage"," md-no-float","bool cdouble cent cfloat char creal dchar delegate double dstring float function ","gem","small_blue_diamond",".md-thumb","մի քանի վայրկյան","%d ⵉⵙⴳⴰⵙⵏ","extends","\\[/no_square_brackets\\]","lb_disp_time_sec lb_disp_time_ms ugc_result_success ","\\ufe20-\\ufe2f","","compose","def","တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ","FormImageBuilderId","setRainbow setRandomLip setRank setRectangular setRepairCargo setRotorBrakeRTD setShadowDistance ","ИмяОрг ","camera_get_view_target view_get_camera view_get_visible ","isDefault","lastDayOfMonth","_weekdaysShortStrictRegex","ds_grid_get_disk_sum ds_grid_get_disk_min ds_grid_get_disk_max ","sort start subst time title tree type ver verify vol ","(?:\\W|$)","жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі","standard","implements import in inferface is library mixin new null on operator part rethrow return set show static ","relaxed","READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ","True False","uibDatepickerPopup","material.components.icon","UIVIEW","SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE ","CreateHintDb Cut Declare Defined Definition Delimit Dependencies Dependent"," 'active' for activeDt\n","SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE ","scrollSpeed","SelectedItems ","enableScrolling","controllers","Not Found","normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect ","fillWeaponsFromPool find findCover findDisplay findEditorObject findEmptyPosition ","@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*","goto:eof","في %s","JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY ","astonished","d% ސިކުންތު","sfcBlue ","valueOnUse","reconnectionDelay","فبراير","-ум","JOB_LINK_KIND ","dataElementType","mdSwipeLeft","startingDay","analogReference detachInterrupt countryNameRead ","afterScaleUpdate","badmember","valuesIn","SYSREQ_CONTENTS "," mintam"," DIS","repeatListExpression_","Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build","$mdDialog","IFormWizardStep ","D [ב]MMMM YYYY","rgb(0, 245, 245)","interpolate",'',"missing or invalid JsSIP.Socket method: ",'probe transport "%s" pong',"isoWeekday","setCamUseTI setCaptive setCenterOfMass setCollisionLight setCombatMode setCompassOscillation ","removeInterceptor","Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples ","subst patsubst strip findstring filter filter-out sort ","%d मिनिटे","//|{|}|endif|gosub|variant|wend|^\\$ ","NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED ","md-closed","getAutoClose","mdBackdrop","SLIDE","јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.","\\.?","sha1_string_utf8 sha1_file os_powersave_enable analytics_event ","[काल] LT","__uiRouterState","ideoneEmbed","address,article,","su_ma_ti_ke_to_pe_la","SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME ","Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag","en mesec","[Χθες {}] LT","hue","SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS ","בבוקר","mipsasm",": (","=?mdOnDeselect","promiseResolved","antaŭ %s","clearmatches empty extend getcmdpos mzeval garbagecollect setreg ","Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara","SYSRES_CONST_MONTH_FORMAT_VALUE ","SYSRES_CONST_LIST_REFERENCE_MODE_NAME ","nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota","asMilliseconds","WPDesktop","_refreshView","sparkler","Friday"," cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp","_md-opaque-enter","multiply","currentPage"," ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot","CONFIGURATION_ERROR","שעה","2019-05-01","capital_abcd",'"render"',"spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet ","g.m.","dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl ","ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr ","no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy","strawberry","clock9"," minuti","leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec","PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ","60px","[ieiri à] LT","#3949ab"," өдөр","border-top-style","statue_of_liberty","NUM_NONNULLS NUM_NULLS ","sekunde","radius","uiStateParams","beforeAfterSubstr","%d segondas","SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE ","getAnimSpeedCoef getArray getArtilleryAmmo getArtilleryComputerSettings getArtilleryETA ","event_perform_object event_inherited show_debug_message ","border-top","Transport is already connected","SYSREQ_EDOC_VERSION_CRC ","phy_particle_flag_colourmixing phy_particle_flag_colormixing "," मिणटां","mod module mutable new object of open! open or private rec sig struct ","received message with CRLF Keep Alive response"," tunni","click","addByteOrderMarker","isSafeInteger",'"realm"',"reconnect","currentActionIndex","win8_settingscharm_set_xaml_property ","$md-resize","DEFAULT_CHARSET EASTEUROPE_CHARSET RUSSIAN_CHARSET SYMBOL_CHARSET ","boolean","STATUS_COMPLETED","$evalAsync","vertical-align","Get-AuthenticodeSignature Get-ChildItem Get-Command Get-ComputerRestorePoint Get-Content Get-ControlPanelItem Get-Counter Get-Credential ","كەچ","mdColorPickerAlpha","onRequestTimeout()","unregisterTask updateDrawIcon updateMenuItem updateObjectTree useAISteeringComponent ","xAxisID","ftQuickLaunch ","notify","\\n_{4,}$","ng-anchor-out","-ти","#64ffda","isConnecting","nameGlob","disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer ","buffer_set_surface buffer_delete buffer_exists buffer_get_type ","display_set_gui_maximize device_mouse_dbclick_enable ","ctRadioButton ","mdCalendar","IProcessFactory ","app/directives/agreement-item/agreement-view.html","shownPad shownRadio shownScoretable shownUAVFeed shownWarrant shownWatch showPad showRadio ","$uiView","TrackGeometryWindow TrackIndex TrackStartTime TrackWindow TypeOf Union UrlEncode Variance ","(min-width: 1280px)","#0091ea","OCTET","selectedTemplateName","OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 ",") +\n'","wrapFn","mdOrientHorizontal","YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]","mdProgress","escape",'"multipart"',"es-mx","md-checkbox-enabled","crystal","marks","секунде","=?mdSearchText","material.components.autocomplete","dart","ugc_match_UsableInGame ugc_match_ControllerBindings ","splice","labelColor","(#\\d+)+","loadFailureHandler","//# sourceURL=","Remove-NsxFirewallRule Remove-NsxFirewallRuleMember Remove-NsxFirewallSavedConfiguration Remove-NsxFirewallSection Remove-NsxIpPool Remove-NsxIpSet Remove-NsxIpSetMember ","#a7ffeb","ޖޫން",'',"cupid","secunde","Node",'ng-if="$mdTabsCtrl.enableDisconnect || tab.shouldRender()"> ',"%d soat","onChangePageSize","hasClass","минута","ئازار","parse","milliseconds","nc=","сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы ","0000cd","ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ","_restoreCache","ring","phy_particle_flag_wall phy_particle_flag_spring ","SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION ","ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET","esvtLast esvtLastActive esvtSpecified ",'ng-click="$mdTabsCtrl.nextPage()"> ',"TypeError URIError Number Math Date String RegExp Array Float32Array ","sortable-drag","_$scope","\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)","a8m.ends-with","template","_longMonthsParse","еден час","Analysis ","ugc_sortorder_TitleAsc ugc_sortorder_LastUpdatedDesc ","Sul_Llun_Maw_Mer_Iau_Gwe_Sad","today",'',"speedboat","SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG ","IEMobile|MSIEMobile","Get-SpbmCapability Get-SpbmCompatibleStorage Get-SpbmEntityConfiguration Get-SpbmFaultDomain Get-SpbmPointInTimeReplica Get-SpbmReplicationGroup Get-SpbmReplicationPair ","[1-2]?[0-9]{1}|3[0-1]{1}","gom-latn","ariaValue","connection:%s","#f1f8e9","ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY ",'{{ day.value }}',"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb","a8m.math.sum","priority","rabbit2","activeClass","SYSRES_CONST_STATUS_VALUE_SUSPEND ","СохрСпр ","-theme.md-","flow",'"uas"',"=?mdNumeric","textSearching","SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE ","[Ieri a","mdList","JsSIP:RTCSession","u5272","yLabelWidth","#212121","nose","Animate out","merge_color screen_save screen_save_part draw_set_font ",'',"(#t|#f|#\\\\","swipeContent","createMediaStreamSource","COMPONENTS_PSEUDOREFERENCE_CODE ","opt-lambda override protect provide public rename require ","_findDialog","_shortMonthsParse","cssFloat","leo","%d mesos","IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount ","unit","","onReject"," texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter","$translateMessageFormatInterpolation","%d ý~éárs",'
',"getOpen","Unknown type: ","SUBTASK_BLOCK_AFTER_FINISH_EVENT ","beforeBuildTicks","STORAGE_TYPE_FILE ","SYSRES_CONST_DATETIME_FORMAT_VALUE ","exp ln log2 log10 sin cos tan arcsin arccos arctan arctan2 dsin dcos ","setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointTimeout ","SYSRES_CONST_ACTION_TYPE_LOCK ","$$debounce","mesiacom","resolved","md-row","bliain","data-clipboard-","_compileTemplate","[W sobotę o] LT","&part=snippet,statistics","invalidateLayout","rgba(0, 0, 0, 1.000)",";to-tag=","pc lr sp ip sl sb fp ","nsps",'ng-focus="ctrl.onFocus()" ',"listitem","uibRatingConfig","ExpansionPanel '{0}' is not available! Did you use md-component-id='{0}'?","[Promise]","ngCsv.directives","tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ ","[-\\+]?\\d*\\.\\d+%?","parseZone","marginRight","onClick","ngAttrUiSref","scriptenginemajorversion time derived eval date formatpercent exp inputbox left ascw ","_uiCanExitIds","SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY ","_videoMuted","allSites allTurrets allUnits allUnitsUAV allVariables ammo ammoOnPylon and animate animateBay ","_weekdaysParseExact",'
',"addValidAttrs","doWrite","lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ","data","alias application boolean class constant date file integer list "," colorbox columns commutative complex cone context contexts contour contour_levels","n1ql","#7986cb","\\b(?:ll(?:AgentInExperience|(?:Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(?:Details|ErrorMessage)|ReturnObjectsBy(?:ID|Owner)|Json(?:2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(?:Mag|Norm|Dist)|Rot(?:Between|2(?:Euler|Fwd|Left|Up))|(?:Euler|Axes)2Rot|Whisper|(?:Region|Owner)?Say|Shout|Listen(?:Control|Remove)?|Sensor(?:Repeat|Remove)?|Detected(?:Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|(?:[GS]et)(?:AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(?:Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(?:Scale|Offset|Rotate)Texture|(?:Rot)?Target(?:Remove)?|(?:Stop)?MoveToTarget|Apply(?:Rotational)?Impulse|Set(?:KeyframedMotion|ContentType|RegionPos|(?:Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(?:Queueing|Radius)|Vehicle(?:Type|(?:Float|Vector|Rotation)Param)|(?:Touch|Sit)?Text|Camera(?:Eye|At)Offset|PrimitiveParams|ClickAction|Link(?:Alpha|Color|PrimitiveParams(?:Fast)?|Texture(?:Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get(?:(?:Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(?:PrimitiveParams|Number(?:OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(?:Details|PermMask|PrimCount)|Parcel(?:MaxPrims|Details|Prim(?:Count|Owners))|Attached(?:List)?|(?:SPMax|Free|Used)Memory|Region(?:Name|TimeDilation|FPS|Corner|AgentCount)|Root(?:Position|Rotation)|UnixTime|(?:Parcel|Region)Flags|(?:Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(?:Prims|NotecardLines|Sides)|Animation(?:List)?|(?:Camera|Local)(?:Pos|Rot)|Vel|Accel|Omega|Time(?:stamp|OfDay)|(?:Object|CenterOf)?Mass|MassMKS|Energy|Owner|(?:Owner)?Key|SunDirection|Texture(?:Offset|Scale|Rot)|Inventory(?:Number|Name|Key|Type|Creator|PermMask)|Permissions(?:Key)?|StartParameter|List(?:Length|EntryType)|Date|Agent(?:Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(?:Name|State))|(?:Get|Reset|GetAndReset)Time|PlaySound(?:Slave)?|LoopSound(?:Master|Slave)?|(?:Trigger|Stop|Preload)Sound|(?:(?:Get|Delete)Sub|Insert)String|To(?:Upper|Lower)|Give(?:InventoryList|Money)|RezObject|(?:Stop)?LookAt|Sleep|CollisionFilter|(?:Take|Release)Controls|DetachFromAvatar|AttachToAvatar(?:Temp)?|InstantMessage|(?:GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(?:Length|Trim)|(?:Start|Stop)Animation|TargetOmega|Request(?:Experience)?Permissions|(?:Create|Break)Link|BreakAllLinks|(?:Give|Remove)Inventory|Water|PassTouches|Request(?:Agent|Inventory)Data|TeleportAgent(?:Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(?:Axis|Angle)|A(?:cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(?:CSV|Integer|Json|Float|String|Key|Vector|Rot|List(?:Strided)?)|DeleteSubList|List(?:Statistics|Sort|Randomize|(?:Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(?:CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(?:Slope|Normal|Contour)|GroundRepel|(?:Set|Remove)VehicleFlags|SitOnLink|(?:AvatarOn)?(?:Link)?SitTarget|Script(?:Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(?:Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(?:Integer|String)ToBase64|XorBase64|Log(?:10)?|Base64To(?:String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(?:Load|Release|(?:E|Une)scape)URL|ParcelMedia(?:CommandList|Query)|ModPow|MapDestination|(?:RemoveFrom|AddTo|Reset)Land(?:Pass|Ban)List|(?:Set|Clear)CameraParams|HTTP(?:Request|Response)|TextBox|DetectedTouch(?:UV|Face|Pos|(?:N|Bin)ormal|ST)|(?:MD5|SHA1|DumpList2)String|Request(?:Secure)?URL|Clear(?:Prim|Link)Media|(?:Link)?ParticleSystem|(?:Get|Request)(?:Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(?:Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b","JOB_BLOCK_ABORT_DEADLINE_PROPERTY ","TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD "," skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp","isindex","SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS ","newDialog","str_to_duration str_to_utc str_to_zone_name decode_json encode_json encoded_size poly_length base64 base64_encode ","საათი","hostname setpos globpath remote_foreground getchar synIDattr ","ngChecked","$manualTimeStamp","SYSRES_CONST_CODE_REQUISITE_CODE ","(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b","191970","НаимВидСпр ","SYSRES_CONST_STATUS_VALUE_AUTOCLEANING ","Android.*\\bG1\\b(?!\\))",'{{option.value}}
This field is required
',"ບໍ່ເທົ່າໃດວິນາທີ","(?=","Aको h:mm बजे","getContentElement","lasso","createLocalDescription()","rest","$ctrl.placeholder","smali","mwForm.pageEvents.addPage","stp","loadViews","getUTCMonth","une minute","angular-cron-jobs","CREATE","$$animateJs","Export-VMHostProfile Export-vRAIcon Export-vRAPackage Find-Command Find-DscResource Find-Module Find-NsxWhereVMUsed Find-Package ","","អា_ច_អ_ព_ព្រ_សុ_ស","JsSIP:RTCSession:DTMF","[#$]","Symbol","letom","__cacheable","isHorizontal","_relativeTime","[गएको] dddd[,] LT","wow","maxTabWidth","layoutLtLg","ngFocus","SYSRES_CONST_NO_VALUE ","SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE ","#(b|B)[0-1]+(/[0-1]+)?","unitScale","fuzzyBy","a h:mm","CreateReference ","do if then else end until while ","(\\.\\./|/|\\s)((","sending ack %j","afterBuildTicks","class module struct","СпрТблСтрМин ","call-id","rgb(0, 214, 0)","attachRoute","Timer L expired for transaction ","move_contact_all move_outside_solid move_outside_all ","ime-mode",'
',"шаб","SIP","\\b((\\d+'(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)","material.components.subheader","AUTO_NUMERATION_RULE_ID ","SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT ","mdMenuCtrl","consume continue delegate digestof do else elseif embed end error ","#\\((?!parameter).+\\)","SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID ","ar-ma","label:%s","handleClickSelectYesterday","%d araw","#ef9a9a","#f9a825","removeItems removeMagazine removeMagazineGlobal removeMagazines removeMagazinesTurret ","hourStep","rate","SYSREQ_EDOC_TYPE_ACT_DESCRIPTION ","steam_get_user_persona_name steam_get_app_id ","terminate()","chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim ","Окно ","um mês","audio_group_load_progress audio_group_name audio_group_stop_all ","_remoteHold","$apply","sleeping","Окр ","secure",'
\n',"બપોર"," \n","let yield const export super debugger as async await static ","isMultiple","SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION ","vm.direction","timeElapsed timeExec timeStart","_onTouchMove","shoe","ALLOWED_METHODS","flex-flow","VIEW_MINUTES","mediaStream",' ',"-го","spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf ","Si_Mo_Ti_Wo_To_Fr_So","%d mionaidean","priorityList","SYSREQ_EDOC_VERSION_SIZE ","Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des","currentIndex_","audio_pause_all audio_is_playing audio_is_paused audio_exists ","enableOpenOnHover","%d дена","січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд","isWebsiteHasMicrophonePermissions","selectPage","Opera","toDate","virtcol floor remove undotree remote_expr winheight gettabwinvar ","_dayOfYear","install uninstall checksum restore check backup revoke comment values with","ugc_list_VotedUp ugc_list_VotedDown ugc_list_WillVoteLater ","ночы","#bbdefb","detachCalendarPane","wdtDateTimeCollection ","rgb(214, 0, 214)",'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ',"Failed to register element with handler ","СоздатьПапку ","ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s","engem Joer","webOS|hpwOS","SYSDLG_SETUP_SIGN_RIGHTS ","startColorstr=",'
'," same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck","[Aiz] LT","kebobString","PATCH","Min_Sen_Sel_Reb_Kem_Jem_Sep","getQuestionWithResponseList","#fffde7","[ \\t]*=","listeners","FOCUSED_DATE_CLASS","ISignProvider ","offerToReceiveAudio",'
',"reference repeat returning script second set seventh since ","pⓟpṕṗƥᵽꝑꝓꝕ","searchpair or screenrow line settabvar histadd deepcopy strpart ","def defonce cond apply if-not if-let if not not= = < > <= >= == + / * - rem ","#b71c1c","md-mode-","compact",'\n',"mp_grid_add_rectangle mp_grid_add_instances mp_grid_path ","escapeOptions","1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月","EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin ","domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado","checked","polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge ","GML","SYSRES_CONST_FOLDER_KIND_COMPONENTS ","\\b(data|(new)?type)\\b","aemEnabledOnBrowse ","runShellCommandAsynchronously analogWriteResolution ","1.4.1","memo","onconnecting","en timme","Manager","СоздатьИндикатор ","BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026","Get-VApp Get-VDBlockedPolicy Get-VDPort Get-VDPortgroup Get-VDPortgroupOverridePolicy Get-VDSecurityPolicy Get-VDSwitch Get-VDSwitchPrivateVlan Get-VDTrafficShapingPolicy ","gridster-item-moving","uib/template/carousel/slide.html","#80d8ff","wine_glass","accesslog","sendPacket","Kindle","weekdays",'
\n","-üncü","%d taun","Method '_options' in ","عامين","getBarIndex","@decimalSeparator","responsiveAnimationDuration","[%-]?%>","horizontal","md5_string_utf8 md5_file os_is_network_connected sha1_string_unicode ","(=(?!>))?|[-+*/%](?!>)",'","ITextCriterion ","wfatCancel ","userCallback","eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab","tan transcript-off transcript-on truncate values vector ","fallbackOffset","___eio","wdtSearchDescription ","zip","#ff9e80",", __e = _.escape","izakaya_lantern","$mdTable.selected","agreementItem","rgbaString","_requestFailed","md-theme-style","locals","dan","loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log ","timer_B",'"!"',"TransitionHookScope","SYSRES_CONST_COMPONENT_TYPE_REPORTS ","[object Symbol]","Calendar","SCALE","#0066CC","mailbox_with_mail","gridster","setPrototypeOf","ds_map_destroy ds_map_clear ds_map_copy ds_map_size ds_map_empty ","all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important","NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY ","maxWidth","toasty-added","[আগামীকাল] LT","isNegativeScroll","setDateTimeToMidnight","daa520","totalPendingRequests","SYSRES_CONST_IDSPS_REQUISITE_CODE ","получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу ","gherkin",'
\n","self","sv-candidate","inputFocusedOnWindowBlur","$mdColors","addPart","resolver","for true while long throw strictfp finally protected import native final return void ","এক বছর","nict","point yield image BSSID click delay ",'',"invalid Content-Type","[Igår] LT","mouseActive","rib","%d ວິນາທີ","Terminated","notFoundVisible","selectedObject","ngDisabled","timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort ","януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември","a8m.contains","xquery","parseHeader","user_url",' \n',"startIndex","Moved Temporarily","afterFooter","ein Tag","_remote_uri","showInOpen","SYSRES_CONST_AUTOTEXT_USAGE_ALL ","en ","data family type newtype deriving","dragPointer","forceAsyncReload","prepareVersionNo","Attrs",'","',"[autofocus]","ffdead","^uibProgress","Symbian/[VER]","layer_background_xscale layer_background_blend ","rows","read readarray source type typeset ulimit unalias ","[Aban iha] LT",";|{","_useHttp",'response="',"Request Timeout","facebook_request_read_permissions ","ReadFile ","HOOK","\\s*\\.end\\s[a-zA-Z0-9]*","%d دقيقة","dropdown","mwForm.questionUpdate","ldctServerEvents ","border-right-style",".md-color-picker-material-palette","time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk ","font-face page","clearAnimate","$cookies","lihora","%d أشهر","mdCalendarYear","bath","transform ","border-right","མཚན་མོ","rgb(255,255,255)",'"/"',"colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr","aria-atomic","rgb(0,0,0)","Do MMMM[ta] YYYY, [klo] HH.mm","global if import importall let local macro module quote return true try using while ",'"> ',"mánuður","mdCalendarMonthBody","Chips container. Use arrow keys to select chips.","float color point normal vector matrix while for if do return else break extern continue","keyboard_set_numlock keyboard_key_press keyboard_key_release ","_nonce","NaN","taskCompleted taskCustomData taskDescription taskDestination taskHint taskMarkerOffset taskParent ","match mod Prop return Set then Type using where with ","vbnet","watchEmbedData","[నేడు] LT","\\[/noprocess|","camera_get_view_speed_y camera_get_view_border_x ","parseSimulcastStreamList","एका मिनिटा","onCKEvent","ltr","getFullYear","sendonly","effectAllowed","footerAlign","otherAnswerRadioChanged","СтрВерхРегистр ","isDefaultPrevented","წუთი","with (obj) {\n","requestAnimationFrame","%d minutes","c0c0c0","crying_cat_face","then unless until loop of by when and or is isnt not","YYYYYYMMDD","H:mm:ss [Auer]","e620","musical_keyboard","ng-model","_handleSessionTimersInIncomingRequest","originInteraction","buffers","touchmove mousemove","\\?.*=:","has been deprecated. Please use a `","addPreset","matchCriteria","%d %d","onComplete","dddd [tɛmɛnen lɛrɛ] LT","dddd[หน้า เวลา] LT","Sync-SpbmReplicationGroup Test-ConflictingResources Test-HCXMigration Test-HCXReplication Test-Json Test-ModuleReloadRequired Test-MofInstanceText Test-NodeManager ","hide-lt-md","gpu_set_tex_max_aniso_ext gpu_set_tex_mip_enable ","file_bin_open file_bin_rewrite file_bin_close file_bin_position ","product","] LT[-kor]","modalRendered","cellInputType","soundCloud","selectImageButtonClicked","SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE ","textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList ","transport closed","audio_sound_get_listener_mask audio_emitter_get_listener_mask ","yearTopIndex","vk_rcontrol vk_ralt mb_any mb_none mb_left mb_right mb_middle ","လာမည့် %s မှာ","#3300FF","SIP_ERROR_CAUSES","දින %d","[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?","phy_angular_damping phy_linear_damping phy_bullet ","$default","SYSRES_CONST_ACCESS_TYPE_VIEW_CODE ","IN IP%d %s","%d segundo","ne_po_ut_sr_če_pe_su","md-button","radar",'
',"
","os_browser os_version display_aa async_load delta_time ",' next\n',"dseOnDeleteError ","md-autocomplete"," random_logistic random_lognormal random_negative_binomial random_network","color_get_blue color_get_hue color_get_saturation color_get_value ","wss","SPACE"," block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description","templateUrl","sort","smiling_imp","toFixed","kissing_closed_eyes","handleClick","draw_ellipse_colour draw_point_color draw_line_color ","ev_game_end ev_room_start ev_room_end ev_no_more_lives ","SUPPRESS_REDUNDANT_UPDATES_TRIGGER ","Get-NsxLoadBalancerApplicationProfile Get-NsxLoadBalancerApplicationRule Get-NsxLoadBalancerMonitor Get-NsxLoadBalancerPool Get-NsxLoadBalancerPoolMember Get-NsxLoadBalancerStats ","mobileGrade","showReposts","_sessions",")[,|\\s]+(","tuntia","MSPointerEvent","$$animation","end if then else elseif endif while wend repeat until forever for ","literal","ttSystem ","sortedUniq","getItems","close_requested","mdHideIcons","dailymotion","remoteUrlResponseFormatter","try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress ","NonInviteServerTransaction","return parent clone use __CLASS__ __LINE__ else break print eval new ","double","merge describe use explain help declare prepare execute deallocate release ","mdClearButton"," std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull","onack","move-row-down","material.core.meta","data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik05IDE2LjE3TDQuODMgMTJsLTEuNDIgMS40MUw5IDE5IDIxIDdsLTEuNDEtMS40MXoiLz48L2c+PC9zdmc+","'ünji","%d timmar","SYSREQ_REF_TYPE_REQ_ON_CHANGE ","ctrlSetFontHeightH4 ctrlSetFontHeightH5 ctrlSetFontHeightH6 ctrlSetFontHeightSecondary ","handleClickSelectLastWeek"," webkitAnimationEnd","maxSize","You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3","LoadString ","\\xac\\xb1\\xd7\\xf7","[prejšnjo] [nedeljo] [ob] LT","fdtText ","tweets","A h:mm:ss વાગ્યે","modalAnimation","minutami","E EarthImpactData EarthquakeData EccentricityCentrality Echo EchoFunction EclipseType EdgeAdd EdgeBetweennessCentrality EdgeCapacity EdgeCapForm EdgeColor EdgeConnectivity EdgeContract EdgeCost EdgeCount EdgeCoverQ EdgeCycleMatrix EdgeDashing EdgeDelete EdgeDetect EdgeForm EdgeIndex EdgeJoinForm EdgeLabeling EdgeLabels EdgeLabelStyle EdgeList EdgeOpacity EdgeQ EdgeRenderingFunction EdgeRules EdgeShapeFunction EdgeStyle EdgeThickness EdgeWeight EdgeWeightedGraphQ Editable EditButtonSettings EditCellTagsSettings EditDistance EffectiveInterest Eigensystem Eigenvalues EigenvectorCentrality Eigenvectors Element ElementData ElementwiseLayer ElidedForms Eliminate EliminationOrder Ellipsoid EllipticE EllipticExp EllipticExpPrime EllipticF EllipticFilterModel EllipticK EllipticLog EllipticNomeQ EllipticPi EllipticReducedHalfPeriods EllipticTheta EllipticThetaPrime EmbedCode EmbeddedHTML EmbeddedService EmbeddingLayer EmbeddingObject EmitSound EmphasizeSyntaxErrors EmpiricalDistribution Empty EmptyGraphQ EmptyRegion EnableConsolePrintPacket Enabled Encode Encrypt EncryptedObject EncryptFile End EndAdd EndDialogPacket EndFrontEndInteractionPacket EndOfBuffer EndOfFile EndOfLine EndOfString EndPackage EngineEnvironment EngineeringForm Enter EnterExpressionPacket EnterTextPacket Entity EntityClass EntityClassList EntityCopies EntityFunction EntityGroup EntityInstance EntityList EntityPrefetch EntityProperties EntityProperty EntityPropertyClass EntityRegister EntityStore EntityStores EntityTypeName EntityUnregister EntityValue Entropy EntropyFilter Environment Epilog EpilogFunction Equal EqualColumns EqualRows EqualTilde EqualTo EquatedTo Equilibrium EquirippleFilterKernel Equivalent Erf Erfc Erfi ErlangB ErlangC ErlangDistribution Erosion ErrorBox ErrorBoxOptions ErrorNorm ErrorPacket ErrorsDialogSettings EscapeRadius EstimatedBackground EstimatedDistribution EstimatedProcess EstimatorGains EstimatorRegulator EuclideanDistance EulerAngles EulerCharacteristic EulerE EulerGamma EulerianGraphQ EulerMatrix EulerPhi Evaluatable Evaluate Evaluated EvaluatePacket EvaluateScheduledTask EvaluationBox EvaluationCell EvaluationCompletionAction EvaluationData EvaluationElements EvaluationEnvironment EvaluationMode EvaluationMonitor EvaluationNotebook EvaluationObject EvaluationOrder Evaluator EvaluatorNames EvenQ EventData EventEvaluator EventHandler EventHandlerTag EventLabels EventSeries ExactBlackmanWindow ExactNumberQ ExactRootIsolation ExampleData Except ExcludedForms ExcludedLines ExcludedPhysicalQuantities ExcludePods Exclusions ExclusionsStyle Exists Exit ExitDialog ExoplanetData Exp Expand ExpandAll ExpandDenominator ExpandFileName ExpandNumerator Expectation ExpectationE ExpectedValue ExpGammaDistribution ExpIntegralE ExpIntegralEi ExpirationDate Exponent ExponentFunction ExponentialDistribution ExponentialFamily ExponentialGeneratingFunction ExponentialMovingAverage ExponentialPowerDistribution ExponentPosition ExponentStep Export ExportAutoReplacements ExportByteArray ExportForm ExportPacket ExportString Expression ExpressionCell ExpressionPacket ExpressionUUID ExpToTrig ExtendedEntityClass ExtendedGCD Extension ExtentElementFunction ExtentMarkers ExtentSize ExternalBundle ExternalCall ExternalDataCharacterEncoding ExternalEvaluate ExternalFunction ExternalFunctionName ExternalObject ExternalOptions ExternalSessionObject ExternalSessions ExternalTypeSignature ExternalValue Extract ExtractArchive ExtractLayer ExtremeValueDistribution","distance distance2D distanceSqr distributionRegion do3DENAction doArtilleryFire doFire doFollow ","gpu_set_alphatestref gpu_set_alphatestfunc gpu_set_texfilter ","chart_with_upwards_trend","бир күн","dddd, MMMM D. [b.] YYYY [ti.] HH:mm","first","use var where while with xor","addHeader","\\-\\->"," ars","INumericRequisite ","leaves"," 0 1 1 ","after","begin end start commit rollback savepoint lock alter create drop rename call ","isMoving","element","inside","mdTheme","","setOKButtonLabel","อีก %s","lbpRight ","setAlpha","SYSRES_CONST_YES ","justified","ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL ","[object BlobConstructor]","dddd, D [de] MMMM [de] YYYY HH:mm","\\b(extends|implements) +","uib/template/alert/alert.html","=?mdpDisabled","plist","$sanitize","MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY ","sandal","^@(?:BASE|USE|CLASS|OPTIONS)$","categoryHeight","SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE ","dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy ","z1000|Z99 2G|z930|z990|z909|Z919|z900","onOpenFocus","SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE ","rotate(","D [de] MMMM [de] YYYY HH:mm",""," ","withOffsetX","String"," var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp","elm","close (%s)","setWaypointHousePosition setWaypointLoiterRadius setWaypointLoiterType setWaypointName ","SYSREF_LINKS ","revolving_hearts","url(#","unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert ","defer","rgb(92, 0, 92)","eras","SYSRES_CONST_ATTACH_TYPE_FOLDER ","md-cell","emUnlockFromServer ","EXPIRES","IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME "," std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace",".drag-handle","catchAll","$viewValue","#fff","isang taon","sub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr ","=?max","keyCode","setting transport %s","drawRoundedRectangle","isDSTShifted","deciduous_tree","layer_background_get_htiled layer_background_get_vtiled ","perMessageDeflate","подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения ",'
',"type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then ","fadeOutComplete","grimacing","ticksAsNumbers","[pasintan] dddd[n je] LT",".md-","parent","isSame","instance_deactivate_all instance_deactivate_object ","innerWidth","multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|","readJoystickSwitch scrollDisplayRight getVoiceCallStatus ",")","displayFormats","pageY","TECNO P9|TECNO DP8D","This transition is invalid","en-au","max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real ","ތެރޭގައި %s","SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE ","$md.swipedown","angular.filter","Input","end of input","parsePlacement","text-decoration-style","user-select","წელი","onSelect","(number, period). ","(\\W|$)","SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE ","бірнеше секунд","autoPlay","filterFilter",'md-on-select="handleOnSelect($dates)" ',"anonymous","TEST_EDMS_SECOND_CODE ","longestText","drawingArea","00fa9a","Android.*Nexus[\\s]+(7|9|10)","animateWith","\\s*\\(","[\\{$]","[την προηγούμενη] dddd [{}] LT",'authenticate() | using qop=auth-int [a2:"%s"]',"STRING_TO_ARRAY UNNEST ","#CC33CC","\\d+\\.","SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION ","openCalendarPane","[у] dddd [у] LT","7b68ee","(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)","trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt ","wsbPause ","framerate","SYSRES_CONST_AUTH_PASSWORD ","getActionFromKeyEvent","cloneDeep","mark","ckTask ","defineLocale","alcuni secondi","ប៉ុន្មានវិនាទី","Trace-Command Unblock-File Undo-Transaction Unregister-Event Unregister-PSSessionConfiguration Unregister-ScheduledJob Update-FormatData ","formatDay","incrementMinutes","\\w+","dir2","Media Renegotiation Failed","breakOut breakTo briefingName buildingExit buildingPos buttonAction buttonSetAction cadetMode ","timer_D","ngclipboard","$md.swipeleft $md.swiperight $md.swipeup $md.swipedown","break new catch byte super case short default double public try this switch ","isInProgress","extractResponse","emphasis","server disconnect (%s)","якчанд сония","wsbStep ","ferris_wheel","$fwriteh $fwriteo $fmonitor $fmonitorb $fmonitorh $fmonitoro $sformat ","md-required","uint ulong unchecked unsafe ushort using virtual void volatile while ","trying","Event: ","RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR ",'

\n',"material.components.truncate","virun ","InteractiveMode ","deletePart","dddd [seo caite] [ag] LT","использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога ","&?mdSearchTextChange","trimEnd","=mdpDateFilter","' from state '","Invoke-vRADataCollection Invoke-vRARestMethod Invoke-vRATenantDirectorySync Invoke-vRNIRestMethod Join-String Mount-Tools Move-Cluster Move-Datacenter Move-Datastore Move-Folder ","checkTransaction","lexemes","justify-content","enabled","wdtFolder ","watchDigests","getScrollOffset","Jan 01, 1970 00:00:00 ","006400","texture_global_scale surface_create surface_create_ext ","do while select delete by update from","Version/[VER]","SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE ","UnknownMobile","[昨日] LT","$transclude","shortDays","kdb","\\b(0[bB][01]+)n?","InputView","ng-animate","quad_to curve_to theme background contents locally time mouse_?x ","rgba(255,255,255,0.12)","md-bottom-sheet-backdrop md-opaque","files","navigator","selectionTemplate","device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use ","setupStaticChips","ТекОрг ","#f44336","_openDuration",'md-month-offset="$index" ',"cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli ","SYSRES_CONST_ACTION_TYPE_PERFORM ","ⴰⵙⴳⴰⵙ","PushStateLocationService","SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME ","%d ನಿಮಿಷ","states","maxMode","marginBottom","fsharp","xdomain",'Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_"',"яш_дш_сш_чш_пш_ҷм_шб","dddd [da] LT","uns segons","railXRatio","hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,",'
',"muutama sekunti","(max-width: 599px)","_setPosition","IEdmsObject ","prefix private protocol Protocol public repeat required rethrows return ","medium","_owner","%[qQwWx]?-","InputValue ","rect","^(x-|data-)?","property parameter class classmethod clientmethod extends as break ","treeChanges","#CC33FF","@private @protected @public @try @property @end @throw @catch @finally ",".sv-visibility-hidden{","'n mes","rmCard "," rate=%s","_defineCorePaths","invert","
",'role="tab" ',"$watch","fontString","texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod ","eka disan","if eq ne lt lte gt gte select default math sep","%sमा","Android.*\\bNabi","#ce93d8","md-next-button","mínútum"," \n","vk_numpad1 vk_numpad2 vk_numpad3 vk_numpad4 vk_numpad5 vk_numpad6 ","Transition","DisableMassTaskSendingRestrictions ","mw-form-page-element-builder.html","ctSetHeaderTemplate ctSetRowTemplate ctSetValue ctValue curatorAddons curatorCamera ",'">',"tra %s","NF-Browser","SYSREQ_EDOC_STORAGES_TYPE ","ip eip rip ","ds_map_find_first ds_map_find_last ds_map_write ds_map_read ","iffMultiPageTIFF ","randomSeed attachGPRS readString sendString ","__initialize","_months","distance","ParentComponent ","strokeJoin strokeWeight mouseClicked mouseDragged mouseMoved mousePressed mouseReleased ","md-prevent-menu-close","SYSRES_CONST_NUM_REQUISITE ","SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE ","ఆ_సో_మం_బు_గు_శు_శ","Do MMMM YYYY","ctComboBox ","createEvent","MONITOR_BLOCK_DEADLINE_PROPERTY ","#3333FF","point_direction lengthdir_x lengthdir_y real string int64 ptr ","setLocalWindParams setMagazineTurretAmmo setMarkerAlpha setMarkerAlphaLocal setMarkerBrush ","deferIntercept","SYSRES_CONST_STATUS_VALUE_COMPLETE ","parser","Locale ","mdInkRipple","roboconf","सांजे","powershell","CriOS","scaleLabel","align-start","%s më parë","timezones","DiigoBrowser","soatEDocumentCollection ","border-bottom-left-radius","touchStartThreshold","excludeEnd","doOpen","thoddea sekondamni","ckAny ","$mdUtil","resend_provisional","storage","$$disconnected","Dé Sathairn","SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY ","useOnRemoveExpression","أغسطس","sortableConfig","_registerRoot","_closed","fallbackTranslationResolver","SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS ","\\b_*rig[A-Z]+[A-Za-z0-9_\\-]*","dseOnCloseRecord ","columnWidths","IFolderFactory ","weak unowned owned ","[कल] LT","defparam design disable dist do edge else end endcase endchecker endclass ","random_range irandom irandom_range random_set_seed random_get_seed ","წლის წინ","uiView"," (\\d+) ","blockKeyframeAnimation","matrix_transform_vertex matrix_stack_push matrix_stack_pop ","e-mail","wsrGoNext ","ctx","
\n',"audio_falloff_none audio_falloff_inverse_distance ","il y a %s","icegatheringstatechange","%s առաջ","isPartLoaded","secondStep","nearEntities nearestBuilding nearestLocation nearestLocations nearestLocationWithDubbing ","deltaY","physics_world_draw_debug physics_pause_enable physics_fixture_create ","#ffc400","sun_mán_þri_mið_fim_fös_lau","onTransportError()","र_सो_मं_बु_गु_शु_श","_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load ","checkboxesView","tablet","defaultViewBoxSize","sessionTimersExpires","relativeTimeThreshold","part_system_automatic_draw part_system_update part_system_drawit ","setDetailMapBlendPars setDir setDirection setDrawIcon setDriveOnPath setDropInterval ","EnableCheckFullShowingRestriction ","timestampParam","http://www.w3.org/2000/svg",""","^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)","previewUnfocus","\\s*{","layoutWrap"," vloaz","_states","
","fffff0","pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '","iPhone","hex4","MSPointerDown","SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME ","malloc alloca free load store getelementptr ","msPointerEnabled","image-resolution","pagination","[object Int32Array]",'Invalid "target" value, use a valid Element',"één week","%d år","Тран ","physics_world_update_speed physics_world_update_iterations ","_findTab","invalidHours","Hook aborted transition","outline-color","сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows ","ig_al_ar_az_og_ol_lr","border-image-width","SYSRES_CONST_USER_LOGIN_REQUISITE_CODE ","sfcGreen ","[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?","SYSRES_CONST_FOLDER_KIND_TASKS ","SYSRES_CONST_FOLDER_TYPE_INBOX ",'"pending"',"flow::","isDefined","paramTypes","228b22","gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes ","$validators","if else elseif end region externalsource","fulan %d","$$ngAnimateChildren","^^?mdInputContainer","Thu, 01 Jan 1970 00:00:00 GMT","#b3e5fc","IReference ","%d Joer","фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла ","SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE ","masaa %d","endsWithParent",'
{{ dialog.title }}',"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр","move-row-up","confid:%s","isBinary","\\*.+?\\*","^1\\.\\.(\\d+)$","#c5e1a5","dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ","getInterpolationIdentifier","onmouseup","stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString ","handleKeyDown","addEventListeners","FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK","ist","July","onLoaderSuccess","inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last ","gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask ","{-#","NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE ","An t-Sultain","SYSDLG_SETUP_TASK_OBSERVERS ","reconnect_attempt","leti","inkBar","[В следующее] dddd, [в] LT","mouse_?y mouse_buttons ",'',"panelContainer",'{{ datepicker.date.format(\'YYYY\') }}',"md-scroll-y","focusToDate",'aria-haspopup="dialog" ',"afterTitle","$$hash","SYSREQ_REF_REQ_TOKENS ","destAddress","_handleSessionTimersInIncomingResponse","setTimeByDeg","(load|run|store) script|scripting components|",'ui-sref="{{ctrl.mdNavSref}}"',"path_flip path_rotate path_rescale path_shift script_execute ","file fileTree abs any append asList asWritable call collect compareTo count ","SYSREF_USER_SUBSTITUTION ","answerChanged","weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency ","vk_add vk_decimal vk_lshift vk_lcontrol vk_lalt vk_rshift ","audio_sound_get_track_position audio_create_stream ","AMPMS","SelectSQL ","qw\\s+q","$mdConstant","ev_animation_end ev_end_of_path ev_no_more_health ev_close_button ","reload","","TURKISH_CHARSET VIETNAMESE_CHARSET THAI_CHARSET MAC_CHARSET ","inLabelRange","video","md-has-not-found","defaultExpires","highscore_clear highscore_add highscore_value highscore_name ","Endeavour 800NG|Endeavour 1010",'    \n',"%d يوم","triggerHandler","vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|","SUBTASK_BLOCK_INITIATOR_PROPERTY ","figcaption","TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503","مارس","steam_ugc_query_set_return_total_only ","callCallback","$viewChangeListeners","easingEffects","toTimezone","cpValidFromDate ",'לפנה"צ',"part_alternation_mark","yum","buildList","deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls ","getMinutes","_focusLastTab","%d sekundir","binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound ","$uiViewContextAnchor","ne_po_to_sr_če_pe_so","बिहान","labelY","أوت","A400","ICustomJobInfo ","cubic-bezier(0.35, 0, 0.25, 1)","buildCSV","duela %s","mdPageSelect","renderGlobalsNode renderInfo renderLayerButton renderLayerParent "," does not exist.","mdSidenav: couldn't find element matching ","|vw|vh|vmin|vmax","garbageCollect"," míuts",'socket close with reason: "%s"',"received","getUTCMinutes","cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro ",'ui-sref-opts="{{ctrl.srefOpts}}" ',"index","няколко секунди","Disconnect-VIServer Disconnect-Vmc Disconnect-vRAServer Disconnect-vRNIServer Dismount-Tools Enable-NsxEdgeSsh Enable-RunspaceDebug ","procedure public raw realm reduce rename return returning revoke right role rollback satisfies ","color","tweetOptions","TRANSITION_DURATION","#039be5","maxDelay","spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString "," powerdisp pred prederror primep_number_of_tests product_use_gamma program","[+\\-]","stApproving ","YYYY [m.] MMMM D [d.]","^#!","wfepUndefined ","overflow-y","LT [sa susunod na] dddd","ipVer","inSelectedDateRange","[^,:\\n\\s\\.]","webkit","disconnected","fromPairs","survey","endIdx","ps__scrollbar-x-rail","\\bMI PAD\\b|\\bHM NOTE 1W\\b","calculateMD5","candidate","%d aý","[Vakar] LT","fdf5e6","isObjectLike","pick","LookUpRequisiteNames ","widgets","_defaultValueCache","SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION ","cpValidToDate ","viru ","ngAnimateChildren","scrollbarY","\\bid\\s*:","foregroundPalette","MMMM D, YYYY"," var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson","achievement_load_friends achievement_load_leaderboard "," defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten","spotifyEmbed","black_square_button","\\\\*\\w","ReferenceRequisiteValue ","changeSelectedDate","ui.bootstrap.pagination","SYSRES_CONST_STRING_REQUISITE_CODE ","$setViewValue","qml","newReader newWriter next plus pop power previous print println push putAt read ","जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर","bash","Call-ID: ","aemDisabledOnBrowseEmpty ","references reset restrict select set table unique update ","activeDateId","[I morgon klokka] LT","setConvoySeparation setCuratorCameraAreaCeiling setCuratorCoef setCuratorEditingAreaType ","f0e68c","\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$","md-datepicker-pos-adjusted","SYSRES_CONST_PICK_NEGATIVE_RESULT ","clientOwner closeDialog closeDisplay closeOverlay collapseObjectTree collect3DENHistory ","_late_sdp","IsPatternMatched ","onFinish","Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload ","%s múlva","aayá %d","maxBy","isang araw","getDatasetMeta","shortMonths","buildBlankCell","md-input-focused","=?mdPageSelect","Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require ","\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b","japan","isIonicTap","sortedIndex","io lines write close flush open output type read stderr stdin input stdout popen tmpfile ","TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN ",";|:","overArgs","pingTimeout","FileSystem Scheduler GSMServer YunClient YunServer ","First","Authorization","sagittarius","getPolicy","Not Acceptable","ExpandEnvironmentVariables ","requestFailed","loaderCache","getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller ","beforeDraw",'/embed/" width="',"font-variant-ligatures","resetIds","calendarScroller","curatorEditingAreaType curatorMouseOver curatorPoints curatorRegisteredObjects curatorSelected ","keypress","meta-string","IDeaObjectInfo ","OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)","ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk ","buildLabels","fontStyle","ds_list_shuffle ds_list_write ds_list_read ds_list_set ds_map_create ","positiveValues","md-menu-align-target","0[xX][a-fA-F0-9]+","DEFAULT_INTER_TONE_GAP","emLock ","cc c signext zeroext inreg sret nounwind ","ЦНаборДанныхРеквизит ","msid","md-clickable","updateHeight","setRequestHeader","clientHeight",'"MD5-sess"',"nav-up","postText","एक बर्ष","SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE "," חודשים","position: fixed !important;","Sleep ","Rows per page:","$mdSidenavController",'
',"weekNumberFormatter","noTransition","set_directory_properties set_property set site_name string unset variable_watch while ","_overflowDayOfYear","gridster-mobile-changed","scrollbarXLeft","func","orderNo","CLOCK_TYPES",' selected-template-name="ngModel.selectedTemplateName">',"Version/","Tooltip","_removeListeners","layer_sprite_get_speed layer_sprite_get_xscale ",'
{{AgreementView.formItem.options[0].value}}
Must select {{AgreementView.formItem.maxSelections || 1}} items
',"selectedDate","週日_週一_週二_週三_週四_週五_週六","hitRadius","SYSREQ_USER_GROUPS_GROUP_SERVER_NAME ","down","[.]{3}","allSelected()","/%s","setHeader","netType","[minulou sobotu v] LT","IRefRequisite ","SYSREQ_EDOC_VERSION_NOTE ","mionaid","$translateUrlLoader","_monthsGenitiveEl","in out inout bycopy byref oneway __strong __weak __block __autoreleasing ","INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION ","තත්පර %d","updatePage","configureNgModel","ކުރިން %s","%d δευτερόλεπτα","unlockScreenReader","dseAfterClose ","процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml ","private","isPanelActive","_targetState","א_ב_ג_ד_ה_ו_ש","_receiveInviteResponse",'',"strictDi","asSeconds","BELOW","setHoverStyle",".md-track-container","filterUpgrades","ngMessage"," cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics","$mdColorPalette","(\\.","moveUpPage","d3d3d3","%d năm","ArrayReDim ","bundleOnly","getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender ","escape key press","throw throws try catch finally implements extends new import package return instanceof"," quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal","tanh matchend rename gettabvar strdisplaywidth type abs py3eval ","&deselect","_ignoredReason","ก่อนเที่ยง","uibDropdownService",")*[ ]*\\|"," abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate","isNavigationKey","route_set","pageNameChanged","===\\s","tooltip","ایک سال","pageIdToPage","عامان","D MMMM YYYY, A h:mm -നു","установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима ","ثوان","#\\d+","pair? peek-char port? positive? procedure? quasiquote quote quotient ","rdtString ","^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:","left",": <- Rejected ","typeaheadEditable","unSelectAll","SYSRES_CONST_DESCRIPTION_REQUISITE_CODE ","flex-basis","animationState append apply armoryPoints arrayIntersect asin ASLToAGL ASLToATL assert ","raddr","\\=|\\{"," Jahre","SYSRES_CONST_DATA_TYPE_VARIANT ","escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize ","keyword","transport=","_start_time","\\b(0[bB][01]+)","nekaj sekund","layer_get_element_layer layer_get_element_type layer_element_move ","animationDirection","$element","SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE ","monkey","%d मिनेट","renderer","mdExtraName","Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When","selectElement","ctrlSetTooltipColorShade ctrlSetTooltipColorText ctrlShow ctrlShown ctrlText ctrlTextHeight ","ITaskCardWizardStep ","endRe","%d anos","Radar","noinert",' md-on-select="autoConfirm && ok($dates)" ',"uibProgressbar","%d tahun","pid","\\.\\.\\.$","#90a4ae",' one-panel="onePanel" ',"onRemoved","drawCaret","ހުކުރު","SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE ","RAW","mdPanel: The group ",'md-autocomplete.md-THEME_NAME-theme{background:"{{background-hue-1}}"}md-autocomplete.md-THEME_NAME-theme[disabled]:not([md-floating-label]){background:"{{background-hue-2}}"}md-autocomplete.md-THEME_NAME-theme button md-icon path{fill:"{{background-600}}"}md-autocomplete.md-THEME_NAME-theme button:after{background:"{{background-600-0.3}}"}md-autocomplete.md-THEME_NAME-theme input{color:"{{foreground-1}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-input-container.md-input-focused .md-input{border-color:"{{accent-color}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-input-container.md-input-focused label,md-autocomplete.md-THEME_NAME-theme.md-accent md-input-container.md-input-focused md-icon{color:"{{accent-color}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-progress-linear .md-container{background-color:"{{accent-100}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-progress-linear .md-bar{background-color:"{{accent-color}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-input-container.md-input-focused .md-input{border-color:"{{warn-A700}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-input-container.md-input-focused label,md-autocomplete.md-THEME_NAME-theme.md-warn md-input-container.md-input-focused md-icon{color:"{{warn-A700}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-progress-linear .md-container{background-color:"{{warn-100}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-progress-linear .md-bar{background-color:"{{warn-color}}"}.md-autocomplete-standard-list-container.md-THEME_NAME-theme,.md-autocomplete-suggestions-container.md-THEME_NAME-theme{background:"{{background-hue-1}}"}.md-autocomplete-standard-list-container.md-THEME_NAME-theme .md-autocomplete-suggestion,.md-autocomplete-suggestions-container.md-THEME_NAME-theme .md-autocomplete-suggestion{color:"{{foreground-1}}"}.md-autocomplete-standard-list-container.md-THEME_NAME-theme .md-autocomplete-suggestion.selected,.md-autocomplete-standard-list-container.md-THEME_NAME-theme .md-autocomplete-suggestion:hover,.md-autocomplete-suggestions-container.md-THEME_NAME-theme .md-autocomplete-suggestion.selected,.md-autocomplete-suggestions-container.md-THEME_NAME-theme .md-autocomplete-suggestion:hover{background:"{{background-500-0.18}}"}md-backdrop{background-color:"{{background-900-0.0}}"}md-backdrop.md-opaque.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-bottom-sheet.md-THEME_NAME-theme{background-color:"{{background-color}}";border-top-color:"{{background-hue-3}}"}md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item{color:"{{foreground-1}}"}md-bottom-sheet.md-THEME_NAME-theme .md-subheader{background-color:"{{background-color}}";color:"{{foreground-1}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme:not([disabled]):hover{background-color:"{{background-500-0.2}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover{background-color:transparent}.md-button.md-THEME_NAME-theme.md-fab md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab,.md-button.md-THEME_NAME-theme.md-primary.md-raised{color:"{{primary-contrast}}";background-color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon{color:"{{primary-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover{background-color:"{{primary-600}}"}.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-fab{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-raised{color:"{{background-900}}";background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) md-icon{color:"{{background-900}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover{background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused{background-color:"{{background-200}}"}.md-button.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab,.md-button.md-THEME_NAME-theme.md-warn.md-raised{color:"{{warn-contrast}}";background-color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon{color:"{{warn-contrast}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover{background-color:"{{warn-600}}"}.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab,.md-button.md-THEME_NAME-theme.md-accent.md-raised{color:"{{accent-contrast}}";background-color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent[disabled],.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled],.md-button.md-THEME_NAME-theme.md-warn[disabled],.md-button.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}";cursor:default}.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon,.md-button.md-THEME_NAME-theme[disabled] md-icon{color:"{{foreground-3}}"}.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled]{background-color:"{{foreground-4}}"}.md-button.md-THEME_NAME-theme[disabled]{background-color:transparent}._md a.md-THEME_NAME-theme:not(.md-button).md-primary{color:"{{primary-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-primary:hover{color:"{{primary-700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent{color:"{{accent-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent:hover{color:"{{accent-A700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn{color:"{{warn-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn:hover{color:"{{warn-700}}"}md-card.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-hue-1}}";border-radius:2px}md-card.md-THEME_NAME-theme .md-card-image{border-radius:2px 2px 0 0}md-card.md-THEME_NAME-theme md-card-header md-card-avatar md-icon{color:"{{background-color}}";background-color:"{{foreground-3}}"}md-card.md-THEME_NAME-theme md-card-header md-card-header-text .md-subhead,md-card.md-THEME_NAME-theme md-card-title md-card-title-text:not(:only-child) .md-subhead{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme .md-ripple{color:"{{accent-A700}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before{background-color:"{{accent-color-0.26}}"}md-checkbox.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon{background-color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after{border-color:"{{accent-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple{color:"{{primary-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon{background-color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after{border-color:"{{primary-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple{color:"{{warn-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon{background-color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before{background-color:"{{warn-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled]:not(.md-checked) .md-icon{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon{background-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-icon:after{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-label{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips{box-shadow:0 1px "{{foreground-4}}"}md-chips.md-THEME_NAME-theme .md-chips.md-focused{box-shadow:0 2px "{{primary-color}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input{color:"{{foreground-1}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-webkit-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-ms-input-placeholder,md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-ms-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-moz-placeholder,md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-moz-placeholder{color:"{{foreground-3}}";opacity:1}md-chips.md-THEME_NAME-theme md-chip{background:"{{background-300}}";color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip md-icon{color:"{{background-700}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused{background:"{{primary-color}}";color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused md-icon{color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip._md-chip-editing{background:transparent;color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path{fill:"{{background-500}}"}.md-contact-suggestion span.md-contact-email{color:"{{background-400}}"}md-content.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-default}}"}.md-THEME_NAME-theme .md-calendar{background:"{{background-hue-1}}";color:"{{foreground-1-0.87}}"}.md-THEME_NAME-theme .md-calendar tr:last-child td{border-bottom-color:"{{background-hue-2}}"}.md-THEME_NAME-theme .md-calendar-day-header{background:"{{background-500-0.32}}";color:"{{foreground-1-0.87}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today .md-calendar-date-selection-indicator{border:1px solid "{{primary-500}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today.md-calendar-date-disabled{color:"{{primary-500-0.6}}"}.md-calendar-date.md-focus .md-THEME_NAME-theme .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date-selection-indicator:hover{background:"{{background-500-0.32}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-selected-date .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date.md-focus.md-calendar-selected-date .md-calendar-date-selection-indicator{background:"{{primary-500}}";color:"{{primary-500-contrast}}";border-color:transparent}.md-THEME_NAME-theme .md-calendar-date-disabled,.md-THEME_NAME-theme .md-calendar-month-label-disabled{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-calendar-month-label md-icon,.md-THEME_NAME-theme .md-datepicker-input{color:"{{foreground-1}}"}.md-THEME_NAME-theme .md-datepicker-input::-webkit-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input:-ms-input-placeholder,.md-THEME_NAME-theme .md-datepicker-input::-ms-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input::placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input:-moz-placeholder,.md-THEME_NAME-theme .md-datepicker-input::-moz-placeholder{color:"{{foreground-3}}";opacity:1}.md-THEME_NAME-theme .md-datepicker-input-container{border-bottom-color:"{{foreground-4}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-invalid,.md-warn .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar-pane{border-color:"{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-triangle-button .md-datepicker-expand-triangle{border-top-color:"{{foreground-2}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon,.md-THEME_NAME-theme .md-datepicker-open.md-accent .md-datepicker-calendar-icon{color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-open.md-warn .md-datepicker-calendar-icon,.md-warn .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar{background:"{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-input-mask-opaque{box-shadow:0 0 0 9999px "{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-input-container{background:"{{background-hue-1}}"}md-dialog.md-THEME_NAME-theme{border-radius:4px;background-color:"{{background-hue-1}}";color:"{{foreground-1}}"}md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions,md-dialog.md-THEME_NAME-theme.md-content-overflow md-dialog-actions,md-divider.md-THEME_NAME-theme{border-top-color:"{{foreground-4}}"}.layout-gt-lg-row>md-divider.md-THEME_NAME-theme,.layout-gt-md-row>md-divider.md-THEME_NAME-theme,.layout-gt-sm-row>md-divider.md-THEME_NAME-theme,.layout-gt-xs-row>md-divider.md-THEME_NAME-theme,.layout-lg-row>md-divider.md-THEME_NAME-theme,.layout-md-row>md-divider.md-THEME_NAME-theme,.layout-row>md-divider.md-THEME_NAME-theme,.layout-sm-row>md-divider.md-THEME_NAME-theme,.layout-xl-row>md-divider.md-THEME_NAME-theme,.layout-xs-row>md-divider.md-THEME_NAME-theme{border-right-color:"{{foreground-4}}"}md-icon.md-THEME_NAME-theme{color:"{{foreground-2}}"}md-icon.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}md-icon.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}md-icon.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-input-container.md-THEME_NAME-theme .md-input{color:"{{foreground-1}}";border-color:"{{foreground-4}}"}md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-ms-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input::placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder{color:"{{foreground-2}}";opacity:1}md-input-container.md-THEME_NAME-theme>md-icon{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme .md-placeholder,md-input-container.md-THEME_NAME-theme label{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme label.md-required:after{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-focused):not(.md-input-invalid) label.md-required:after{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation,md-input-container.md-THEME_NAME-theme .md-input-messages-animation{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation .md-char-counter,md-input-container.md-THEME_NAME-theme .md-input-messages-animation .md-char-counter{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-webkit-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-ms-input-placeholder,md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-ms-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-moz-placeholder{color:"{{foreground-2}}";opacity:1}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-resized .md-input{border-color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon{color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input{border-color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent md-icon{color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn md-icon{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter,md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input-message-animation,md-input-container.md-THEME_NAME-theme.md-input-invalid label{color:"{{warn-A700}}"}[disabled] md-input-container.md-THEME_NAME-theme .md-input,md-input-container.md-THEME_NAME-theme .md-input[disabled]{border-bottom-color:transparent;color:"{{foreground-3}}";background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4{color:"{{foreground-1}}"}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style{background-color:"{{background-100}}"}md-list.md-THEME_NAME-theme md-list-item .md-avatar-icon{background-color:"{{foreground-3}}";color:"{{background-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight{color:"{{primary-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight.md-accent{color:"{{accent-color}}"}md-menu-content.md-THEME_NAME-theme{background-color:"{{background-hue-1}}"}md-menu-content.md-THEME_NAME-theme md-menu-item{color:"{{foreground-1}}"}md-menu-content.md-THEME_NAME-theme md-menu-item md-icon{color:"{{foreground-2}}"}md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled],md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled] md-icon{color:"{{foreground-3}}"}md-menu-content.md-THEME_NAME-theme md-menu-divider{background-color:"{{foreground-4}}"}md-menu-bar.md-THEME_NAME-theme>button.md-button{color:"{{foreground-1}}";border-radius:2px}md-menu-bar.md-THEME_NAME-theme md-menu>button{color:"{{foreground-1}}"}md-menu-bar.md-THEME_NAME-theme md-menu.md-open>button,md-menu-bar.md-THEME_NAME-theme md-menu>button:focus{outline:none;background-color:"{{ background-500-0.18}}"}md-menu-bar.md-THEME_NAME-theme.md-open:not(.md-keyboard-mode) md-menu:hover>button{background-color:"{{ background-500-0.18}}"}md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:focus,md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:hover{background:transparent}md-menu-content.md-THEME_NAME-theme .md-menu>.md-button:after{color:"{{foreground-2}}"}md-menu-content.md-THEME_NAME-theme .md-menu.md-open>.md-button{background-color:"{{ background-500-0.18}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar{background-color:"{{background-hue-1}}";color:"{{foreground-1}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler{background-color:"{{primary-color}}";color:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler md-icon{color:"{{primary-contrast}}"}md-nav-bar.md-THEME_NAME-theme .md-nav-bar{background-color:transparent;border-color:"{{foreground-4}}"}md-nav-bar.md-THEME_NAME-theme .md-button._md-nav-button.md-unselected{color:"{{foreground-2}}"}md-nav-bar.md-THEME_NAME-theme .md-button._md-nav-button[disabled]{color:"{{foreground-3}}"}md-nav-bar.md-THEME_NAME-theme md-nav-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar{background-color:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar{background-color:"{{warn-color}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar{background-color:"{{primary-color}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{primary-color}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}._md-panel-backdrop.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-progress-circular.md-THEME_NAME-theme path{stroke:"{{primary-color}}"}md-progress-circular.md-THEME_NAME-theme.md-warn path{stroke:"{{warn-color}}"}md-progress-circular.md-THEME_NAME-theme.md-accent path{stroke:"{{accent-color}}"}md-progress-linear.md-THEME_NAME-theme .md-container{background-color:"{{primary-100}}"}md-progress-linear.md-THEME_NAME-theme .md-bar{background-color:"{{primary-color}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-container{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar{background-color:"{{warn-color}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-container{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar{background-color:"{{accent-color}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-primary .md-bar1{background-color:"{{primary-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-primary .md-dashed:before{background:radial-gradient("{{primary-100}}" 0,"{{primary-100}}" 16%,transparent 42%)}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before{background:radial-gradient("{{warn-100}}" 0,"{{warn-100}}" 16%,transparent 42%)}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before{background:radial-gradient("{{accent-100}}" 0,"{{accent-100}}" 16%,transparent 42%)}md-radio-button.md-THEME_NAME-theme .md-off{border-color:"{{foreground-2}}"}md-radio-button.md-THEME_NAME-theme .md-on{background-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-off{border-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme .md-container .md-ripple{color:"{{accent-A700}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on{background-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off{border-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple{color:"{{primary-600}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on{background-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off{border-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple{color:"{{warn-600}}"}md-radio-button.md-THEME_NAME-theme[disabled],md-radio-group.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}"}md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on{border-color:"{{foreground-3}}"}md-radio-group.md-THEME_NAME-theme .md-checked .md-ink-ripple{color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme .md-checked:not([disabled]).md-primary .md-ink-ripple,md-radio-group.md-THEME_NAME-theme.md-primary .md-checked:not([disabled]) .md-ink-ripple{color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused.ng-empty>md-radio-button:first-child .md-container:before{background-color:"{{foreground-3-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before{background-color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-primary .md-checked .md-container:before{background-color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-warn .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-warn .md-checked .md-container:before{background-color:"{{warn-color-0.26}}"}md-input-container md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-input-container:not(.md-input-focused):not(.md-input-invalid) md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{foreground-3}}"}md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value,md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{primary-color}}"}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-input-container:not(.md-input-invalid).md-input-focused.md-accent .md-select-value{border-color:"{{accent-color}}"}md-input-container:not(.md-input-invalid).md-input-focused.md-accent .md-select-value span{color:"{{accent-color}}"}md-input-container:not(.md-input-invalid).md-input-focused.md-warn .md-select-value{border-color:"{{warn-A700}}"}md-input-container:not(.md-input-invalid).md-input-focused.md-warn .md-select-value span{color:"{{warn-A700}}"}md-select.md-THEME_NAME-theme[disabled] .md-select-value{border-bottom-color:transparent;background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-select.md-THEME_NAME-theme .md-select-value{border-bottom-color:"{{foreground-4}}"}md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value{border-bottom-color:"{{primary-color}}";color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value.md-select-placeholder{color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-value{border-bottom-color:"{{accent-color}}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-value{border-bottom-color:"{{warn-color}}"}md-select.md-THEME_NAME-theme[disabled] .md-select-icon,md-select.md-THEME_NAME-theme[disabled] .md-select-value,md-select.md-THEME_NAME-theme[disabled] .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-icon{color:"{{foreground-2}}"}md-select-menu.md-THEME_NAME-theme md-content{background-color:"{{background-hue-1}}"}md-select-menu.md-THEME_NAME-theme md-content md-optgroup{color:"{{foreground-2}}"}md-select-menu.md-THEME_NAME-theme md-content md-option{color:"{{foreground-1}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[disabled] .md-text{color:"{{foreground-3}}"}md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]).md-focused,md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):focus,md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):hover{background-color:"{{background-500-0.18}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]{color:"{{primary-500}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-focused,md-select-menu.md-THEME_NAME-theme md-content md-option[selected]:focus{color:"{{primary-600}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent{color:"{{accent-color}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent.md-focused,md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent:focus{color:"{{accent-A700}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ripple{color:"{{primary-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ripple{color:"{{background-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ink-ripple{color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon{background-color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected].md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon:after{border-color:"{{primary-contrast-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}.md-checkbox-enabled.md-THEME_NAME-theme md-option .md-text{color:"{{foreground-1}}"}md-sidenav.md-THEME_NAME-theme,md-sidenav.md-THEME_NAME-theme md-content{background-color:"{{background-hue-1}}"}md-slider.md-THEME_NAME-theme .md-track{background-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme .md-track-ticks{color:"{{background-contrast}}"}md-slider.md-THEME_NAME-theme .md-focus-ring{background-color:"{{accent-A200-0.2}}"}md-slider.md-THEME_NAME-theme .md-disabled-thumb{border-color:"{{background-color}}";background-color:"{{background-color}}"}md-slider.md-THEME_NAME-theme.md-min .md-thumb:after{background-color:"{{background-color}}";border-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme.md-min .md-focus-ring{background-color:"{{foreground-3-0.38}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-thumb:after{background-color:"{{background-contrast}}";border-color:transparent}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme .md-track.md-track-fill{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb:after{border-color:"{{accent-color}}";background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign:after{border-top-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb-text{color:"{{accent-contrast}}"}md-slider.md-THEME_NAME-theme.md-warn .md-focus-ring{background-color:"{{warn-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after{border-color:"{{warn-color}}";background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign:after{border-top-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text{color:"{{warn-contrast}}"}md-slider.md-THEME_NAME-theme.md-primary .md-focus-ring{background-color:"{{primary-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after{border-color:"{{primary-color}}";background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign:after{border-top-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text{color:"{{primary-contrast}}"}md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after{border-color:transparent}md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after,md-slider.md-THEME_NAME-theme[disabled][md-discrete] .md-thumb:after{background-color:"{{foreground-3}}";border-color:transparent}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-disabled-thumb{border-color:transparent;background-color:transparent}md-slider-container[disabled]>:first-child:not(md-slider),md-slider-container[disabled]>:last-child:not(md-slider){color:"{{foreground-3}}"}.md-subheader.md-THEME_NAME-theme{color:"{{ foreground-2-0.23 }}";background-color:"{{background-default}}"}.md-subheader.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-subheader.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-subheader.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme .md-ink-ripple{color:"{{background-500}}"}md-switch.md-THEME_NAME-theme .md-thumb{background-color:"{{background-50}}"}md-switch.md-THEME_NAME-theme .md-bar{background-color:"{{background-500}}"}md-switch.md-THEME_NAME-theme.md-focused:not(.md-checked) .md-thumb:before,md-switch.md-THEME_NAME-theme.md-focused[disabled] .md-thumb:before{background-color:"{{foreground-4}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]) .md-ink-ripple{color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]) .md-thumb{background-color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]) .md-bar{background-color:"{{accent-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-focused .md-thumb:before{background-color:"{{accent-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary .md-ink-ripple{color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary .md-thumb{background-color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary .md-bar{background-color:"{{primary-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary.md-focused .md-thumb:before{background-color:"{{primary-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn .md-ink-ripple{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn .md-thumb{background-color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn .md-bar{background-color:"{{warn-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn.md-focused .md-thumb:before{background-color:"{{warn-color-0.26}}"}md-switch.md-THEME_NAME-theme[disabled] .md-thumb{background-color:"{{background-400}}"}md-switch.md-THEME_NAME-theme[disabled] .md-bar{background-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme md-tabs-wrapper{background-color:transparent;border-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme .md-paginator md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme md-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme .md-tab{color:"{{foreground-2}}"}md-tabs.md-THEME_NAME-theme .md-tab[disabled],md-tabs.md-THEME_NAME-theme .md-tab[disabled] md-icon{color:"{{foreground-3}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-active,md-tabs.md-THEME_NAME-theme .md-tab.md-active md-icon,md-tabs.md-THEME_NAME-theme .md-tab.md-focused,md-tabs.md-THEME_NAME-theme .md-tab.md-focused md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-focused{background:"{{primary-color-0.1}}"}md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper{background-color:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper{background-color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper{background-color:"{{warn-color}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{primary-color}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toast.md-THEME_NAME-theme .md-toast-content{background-color:#323232;color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button{color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight{color:"{{accent-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-primary{color:"{{primary-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-warn{color:"{{warn-color}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar){background-color:"{{primary-color}}";color:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-icon{color:"{{primary-contrast}}";fill:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) .md-button[disabled] md-icon{color:"{{primary-contrast-0.26}}";fill:"{{primary-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-ink-ripple{color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-icon{color:"{{accent-contrast}}";fill:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-button[disabled] md-icon{color:"{{accent-contrast-0.26}}";fill:"{{accent-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn{background-color:"{{warn-color}}";color:"{{warn-contrast}}"}.md-panel.md-tooltip.md-THEME_NAME-theme{color:"{{background-700-contrast}}";background-color:"{{background-700}}"}body.md-THEME_NAME-theme,html.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-color}}"}',"Timer D expired for transaction ","md-input","windowBlurHandler","pastFuture","Tuesday","highlightCode","_isPm","false true FALSE TRUE nil YES NO NULL","install_targets load_command make_directory output_required_files remove ","$resource","transitionStyle","pushTo","md-toast","libraryDisclaimers lifeState lightAttachObject lightDetachObject lightIsOn lightnings limitSpeed ","lastSelectedIndex","middle","useStrategy","asQuarters","CLOSING","%s ago","mkd","މިނިޓު %d","waitUntilQuiet","wondering","Update-Script Update-ScriptFileInfo Update-Tools Update-VsanHclDatabase ValidateUpdate-ConfigurationData Wait-Debugger Wait-NsxControllerJob Wait-NsxGenericJob Wait-NsxJob ","bindings","shellescape undofile foldclosed setqflist buflisted strchars str2nr ","event-param","disableScrollMask","cctInteger ","वेर","noNext","режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности ","25.5px","bfcpUserId","toilet","simulCloudOcclusion simulInClouds simulWeatherSync sin size sizeOf skill skillFinal skipTime ","template-variable","childNodes","[Tomorrow at] LT","defaultTransOpts","Raise ","CreatedNotices ","GGGGG","SYSRES_CONST_ACTION_TYPE_ACCEPT ","%d timer","isReadable","family","=mdMonthFilter","xCenter","SYSRES_CONST_EDOC_KIND_REFERENCE_CODE ","gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap ","[Заўтра ў] LT","@[^@\\s]+","iceconnectionstatechange","from-tag","\\/\\+","scrollToIndex","network_set_config network_resolve network_destroy buffer_create ","జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్","rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|","zoneAbbr","[Ӗнер] LT [сехетре]","awk","u6307","station","минута_минуты_минут","onMove",'document.body.scrollHeight + \'px\'" style="margin:10px 0;">','ms-widget-front','api/triggers/describe','MetricsController','api/users/:id/fax_interactions','currentTab','composeMailInteraction','red-fg','Antarctica/Macquarie','Delete\x20chanSpy','api/chat/websites/:id/proactive_actions','mail','page','predictiveIntervalAnsweredCalls','src/js/modules/main/apps/contactmanager/views/globalCustomFields/globalCustomFields.html/globalCustomFields.html','OpenchannelQueuesController\x20as\x20vm','$gte','remote','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/autoreply/dialog.html/dialog.html','OpenchannelRealtimeController','onDateRangeSelection','goToEdit','What\x20would\x20you\x20name\x20your\x20tag?','selectedOutboundRoutes','/api/chat/websites/:id/system_avatar','deleteSmsAccount','WhatsappAccountInteractionsController','getVoicemailMessages','UserChatQueue','FreshdeskAccount\x20properly\x20tested','saveDynamics365Configuration','openchannel_queue:save','The\x20voicePrefix\x20will\x20be\x20deleted.','smsQueuesTotal','AgentDashboardGeneralController\x20as\x20vm','\x27es-419\x27','chatInteractionTags:save','EU\x20(Frankfurt)','deselectVoicePrefixes','Marathi','Hopper\x20properly\x20created','STAFF.NOTIFICATIONS.PERMISSIONS_SAVED_SUCCESS_MESSAGE','api.faxAccount.save','delete\x20interval','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','getVoicePrefixes','jul','street','src/js/modules/main/apps/voice/views/voicemails/voicemails.html/voicemails.html','src/js/modules/main/apps/sms/views/smsQueues/edit/agentadd/agentadd.html/agentadd.html','globalCustomFieldForm','SYSTEM:DELETEintSalesforceAccount','selectedOpenchannelAccountOpenchannelCannedAnswers','api.trigger.delete','createdAt,updatedAt,id,name,dsn,description','es-ES','id,field,operator,value,createdAt,updatedAt','apps.jscripty.projects','selectedContacts','SYSTEM:GETanalyticReport','Validation\x20error','app.integrations.servicenowAccounts','api/analytics/metrics/describe','Asia/Sakhalin','jaws','Delete\x20Contact','f50000','WhatsappQueueteamaddController','checkboxes','deleteSelectedChatQueues','deleteSelectedWhatsappAccounts','urlParse','\x27es-ES\x27','Asia/Brunei','saveChatQueue','field,alias','exportSelectedDeskAccounts','\x27fax_messages\x27','America/North_Dakota/Beulah','src/js/modules/main/apps/contactmanager/views/contacts/create/dialog.html/dialog.html','triggers','src/js/modules/main/apps/contactmanager/views/contacts/merge/dialog.html/dialog.html','getWhatsappAccountApps','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','CreateOrEditVoiceQueueDialogController','Slovak\x20(Slovakia)','TOOLS.NEW_INTERVAL','api.intDeskAccount.save','selectAllTeams','Century\x20Gothic','api/settings/now','bn-IN','api/analytics/field_reports/describe','clearConditions','userFaxQueue:save','newSchedule','es-PE','trustedHtml','createOrEditSquareRecording','app.chat.chatQueues.edit','exportSelectedInboundRoutes','src/js/modules/main/apps/mail/views/mailAccounts/edit/view.html/view.html','passwordPattern','HANGUPCAUSE_1','streets','user.name','\x20will\x20be\x20uninstalled.','ChatInternalMessageId','Australia/Perth','EditSmsAccountAppsystemDialogController','reLayout','English\x20(Philippines)','api/integrations/zoho/configurations/:id/descriptions','\x27wrandom\x27','ServicenowAccount\x20properly\x20tested','Slovenian','SYSTEM:DELETEjscriptyProject','selectedItem','resetPassword','MsTimelineController','apps.home.contacts','-stamp','api.mailAccount.save','progress','America/Menominee','api/users/:id/teams','API\x20accept\x20message\x20not\x20found:\x20','scheduleForm','VOICE.CHANSPIES','clipboard','api/voice/recordings/describe','excludedOperators','Africa/Monrovia','Invalid\x20license\x20key','filter','blue-300-fg\x20icon-phone-paused','getTrunks','tag.name','src/js/modules/main/apps/integrations/views/deskAccounts/deskAccounts.html/deskAccounts.html','onVoiceQueue','Openchannel\x20Queues','layoutStyle','api/integrations/servicenow/configurations/:id/subjects','authInterceptor','moveSelectedQueueCampaignHopperFinals','European\x20Danish\x20Female','APP.SELECTED_AGENTS','\x20has\x20been\x20verified!','TelephonesController','ChatWebsitesController','faxMessage','interval','Contexts','penalty\x20','api/cdr/:id','STAFF.PERMISSIONS_ALL_RESOURCES','/api/chat/websites/','arrayattach','deleteSelectedLists','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20dynamics365Configuration?','deleteSmsAccountInteraction','selectedPauses','MohSound\x20deleted!','omit','getChatWebsiteInteractions','nl-NL','\x0a','app.mail.mailAccounts','voiceMailMessage','TOOLS.CLONE_CUSTOMDASHBOARD','sound@get','European\x20Italian\x20Female','chat_queue_waiting_interaction:save','euritalianmale','servicenowAccount','api/integrations/salesforce/fields/:id/clone','injector','api/voice/prefixes/:id/clone','outboundOriginateFailureCallsDay','hues','Maja','getChatQueues','jscripty','saveCannedAnswer','addApi','addNewDeskAccount','Arabic\x20(Saudi\x20Arabia)','newChatQueue','selectAllDynamics365Accounts','transferCallback','arraysetqueuevar','VOICE.EDIT_CONTEXT','deselectScheduler','DeskAccountController','SYSTEM:EDITMODALSHOW','WhatsappQueues','delete\x20screenRecordings','\x27w\x27','/openchannelQueues','uploadSounds','InternalRoutesController','msNav::pushToLockedList','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/internaldial/dialog.html/dialog.html','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotoif/dialog.html/dialog.html','SETTINGS.UPDATE','newItem','Indian/Christmas','Indian/Reunion','OutboundCallsVoiceRealtimeController\x20as\x20vm','unhold','deleteSelectedMusicOnHoldMohSounds','TOOLS.CANNEDANSWERS','Interaction:update','Maja\x20(Polish,\x20Female)','VOICE.EDIT_MUSICONHOLD','app/main','SETTINGS.EDIT_NETWORK','SoundsController\x20as\x20vm','src/js/modules/main/apps/voice/views/outboundroutes/create/dialog.html/dialog.html','\x27W\x27','IS\x20NOT\x20NULL','SYSTEM:GETopenchannelAccounts','Ukrainian','api/integrations/zoho/accounts/:id/configurations','icon-apps','email','IndexFactory','getAttachments','SYSTEM:GETpauses','sv-SE','dashboard@get','attachment','ReportConditionsController','canSelect','selectedIvrCampaignHopperBlacks','exportSelectedSounds','hoppers','id,name,fullname','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotop/dialog.html/dialog.html','Laothian','capitalize','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/system/dialog.html/dialog.html','home.whatsapp','primary','newHopper','api/fax/queues/:id/users','SYSTEM:DELETEsmsAccount','SYSTEM:GETsmsQueue','Dashboard','deleteSelectedPauses','Dynamics365Accounts','api/cm/contacts/:id/hopper_histories','whatsappQueue:update','saveVoiceRecording','groups','Salli','trim','FreshsalesAccounts','selectedVtigerConfiguration','Edit_permission','showWebBar','INTEGRATIONS.NEW_DESKACCOUNT','Your\x20survey\x20session\x20has\x20been\x20properly\x20saved!','QueueCallsMotionDialerRealtimeController','Horizontal\x20Navigation','mouseEventIgnoreTimeout','delete\x20Templates','$transitions','zendeskAccount','License\x20properly\x20updated!','createdAt,updatedAt,id,Contact.firstName','saveTrigger','/api/chat/websites/:id/customer_avatar','agents','delete\x20hopperFinals','UservoicePrefix','src/js/modules/main/apps/contactmanager/views/lists/create/dialog.html/dialog.html','bind','EDIT_PERMISSION','onSaveChatQueue','Spanish\x20(Spain)','Voicemail','whatsappMessage','-bg','uploadPlugins','MailQueueController','deleteZendeskAccount','awsPollyRegion','canEdit','\x27SIP\x27','toTrusted','Atlantic/South_Georgia','src/js/modules/main/apps/chat/views/chatQueues/edit/teamadd/teamadd.html/teamadd.html','blue-A700-fg','IS_NOT_EQUAL','Pacific/Honolulu','getAuthenticationType','CreateOrEditExtractedReportDialogController','onSearchBarExpand','GET_QUEUE','answered','ChatWebsiteId','findBy','\x27zoho.eu\x27','api/users/:id/api_key','restartplugin','MotionDialerRealtimeController\x20as\x20vm','id=','api.voicePrefix.save','List\x20properly\x20created','rpcVoiceQueues','FORGOTPASSWORD.LINK_SENT','TOOLS.NOTIFICATIONS.TRIGGER_DELETED_SUCCESS_TITLE','vertical','addNewCustomization','Zulu\x20(South\x20Africa)','PrivateKey','dialogflowV2','\x20is\x20not\x20supported!','UserProfilecloneController','src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/configurations/dialog.html/dialog.html','intZohoField','ShowMessageInfoDialogController','openchannelAccounts','intSugarcrmAccount','
','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/externaldial/dialog.html/dialog.html','phoneBarPrefixRequired','voiceDialReportColumns','followuptime','googleCloudTtslanguageCode','FaxQueueController\x20as\x20vm','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20musiconholds?','api/jscripty/projects/:id/clone','ERROR\x20UPDATE\x20LOCAL\x20TABS','Africa/Bissau','MusicOnHolds','getInternalRouteApps','tab-container','setConditionStatus','mailQueues','placeholders','Serbian','disable','onEnableScreenRecordingByAgentSelection','squareRecordings','UserSmsDashboardGeneralController\x20as\x20vm','addNewMailQueue','deleteOpenchannelAccount','ACCOUNTS','WhatsappAccountController\x20as\x20vm','voiceContext@get','FromId','src/js/modules/main/apps/integrations/views/freshsalesAccounts/create/dialog.html/dialog.html','SettingsController','apps.staff.teams','arraymaxrate','STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_MESSAGE','hasIdAnswers','ms-color-picker-button','chatInteractionDownload','Auth','getSmsAccountApps','delete\x20InboundRoutes','/*\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}','api.voiceQueue.update','recordingURL','deleteSelectedTriggerActions','Cannot\x20find\x20module\x20\x27','apps.motiondialer.queueCampaigns','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeOpenchannel/dialog.html/dialog.html','api/integrations/servicenow/accounts/:id/fields','EU\x20(Ireland)','whatsappAccountWhatsappCannedAnswers','Target','saveChatCannedAnswer','duplicatedRows','api/chat/queues/describe','api/integrations/desk/fields/:id/clone','FreshsalesAccount\x20updated!','getBoundingClientRect','STAFF.TEAMS','api/fax/messages/describe','ResetPasswordController\x20as\x20vm','Are\x20you\x20sure\x20want\x20to\x20run\x20the\x20schedule?','difference','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sessions?','Europe/Minsk','dec','api/mail/interactions/describe','Dialer\x20Hopper\x20Processing','chatWebsiteProactiveActions','app.integrations.servicenowAccounts.edit','delete\x20IvrCampaigns','isStepCurrent','recordings','whatsappCannedAnswer','SYSTEM:GETfaxAccount','\x20Contacts\x20selected','cmContact','getUsers','api.user.save','icon-account-multiple','apps.contactmanager.globalCustomFields','\x27wav\x27','WhatsappAccount\x20properly\x20deleted!','voiceRecordings','api/mail/queues/:id/users','APP.TELEPHONES','Asia/Kuala_Lumpur','match','src/js/modules/core/directives/ms-phonebar/ms-phonebar.html/ms-phonebar.html','DASHBOARDS.CHOOSE','SYSTEM:GET_QUEUES','Konqueror','getQuestionWithResponseList','SYSTEM:GET_APIKEY','getNetworks','Jacek','getSections','autoAnswerDelay','\x20properly\x20created','md-toolbar','SYSTEM:DELETEuserProfile','ListsController\x20as\x20vm','stepInfo','getMonth','CompaniesController','MOTIONDIALER.SELECT_CAMPAIGN','VOICE.DIALER','\x27pt-BR\x27','service','api/chat/interactions/:id/attachment_upload','Europe/Kiev','):Goto(','mandatoryDisposition','rpc@getChatQueues','\x20has\x20been\x20downloaded!','deselectVariables','paramDefaults','queryHistory','://','onSaveChatQueueChannel','apps.home.voice','EditFaxAccountAppagentDialogController','trunks','src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/view.html/view.html','getODBC','getFormats','ANALYTICS.NEW_METRIC','Agent\x20properly\x20created','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/tag/dialog.html/dialog.html','msAdvancedSearch','INTEGRATIONS.NEW_DYNAMICS365CONFIGURATION','SETTINGS.GENERAL','defaultPageTitle','TrunksController\x20as\x20vm','internal','whatsappTransferReport','createdAt,updatedAt,id,name,description,table,parent,conditions,joins','selectedDynamics365Configuration','transferNumber\x20required','b:\x20Only\x20spy\x20on\x20channels\x20involved\x20in\x20a\x20bridged\x20call.','selectAllContexts','api/dashboards/:id/items','exportSelectedOpenchannelAccountInteractions','ProjectsController\x20as\x20vm','restart','delete\x20freshsalesConfiguration','api/integrations/zendesk/accounts/:id/configurations','icon-fire','AgentController','red-300-fg\x20icon-phone-locked','selectAllVtigerAccounts','app.voice.realtime.outbound_calls','en-IN','conversationUpdate','GROUP_CONCAT\x20(','faxAccount:save','VtigerAccount\x20properly\x20deleted!','America/Anchorage','api/analytics/extracted_reports/:id','createOrEditCustomDashboard','enabled','vm_rf.query.filter','Openchannel\x20Report\x20Transfer','api/voice/chanspy/describe','The\x20freshdeskConfiguration\x20will\x20be\x20deleted.','deselectOutboundRoutes','The\x20project\x20cannot\x20be\x20started','getDispositions','api.sound.update','api/voice/queues/reports/:id','salesforceConfiguration','SmsAccountSmsCannedAnswersController','Project\x20deleted!','pickerModel','#275498','MailSubstatus\x20properly\x20created','QueuesChatRealtimeController\x20as\x20vm','api.voiceMusicOnHold.save','refreshAbandonedCalls','createOrEditVtigerAccount','gu-IN','CreateOrEditFreshsalesAccountDialogController','ZohoAccount','metrics','maxdigit','last','\x27website_alias\x27','offlineForm','FaxAccount\x20properly\x20saved!','msModelType','apps.sms','Legend','deleteSelectedWhatsappAccountInteractions','TOOLBAR.POLISH','app.openchannel','Asia/Tokyo','src/js/modules/main/apps/contactmanager/views/companies/create/dialog.html/dialog.html','selectedOpenchannelAccounts','grey','rpc@getVoiceQueues','Inactive','CustomDashboardController\x20as\x20vm','getGlobalCustomFields','_interactions:save','editInboundRouteApp','ms-navigation-horizontal-mobile-menu-active','America/Glace_Bay','api.template.save','api/intervals/:id/sub_intervals','chatInteraction@get','sip','/internalroutes','api/integrations/servicenow/accounts/:id','app.integrations.sugarcrmAccounts.edit','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotop/dialog.html/dialog.html','selectedTrunks','Enrique\x20(Spanish,\x20Castilian,\x20Male)','Russell','APP.USERS','The\x20extension\x20','msDatepickerFix','id,fullname,role','$substring','Weight\x20Random','expand-animation','Dora\x20(Icelandic,\x20Female)','userVoiceQueueRt:save','AgentsFaxRealtimeController','QueueCampaignlistaddController','agreement','delete\x20hopperHistories','api.voicePrefix.delete','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperFinals?','createOrEditTriggerAction','Canada\x20(Central)','addNewvoicePrefix','removeShortcut','msPhonebar','ServicenowAccount\x20properly\x20saved!','SalesforceConfiguration\x20properly\x20saved!','editDraft','isExtra','api/users/:id/queues','\x27weeks\x27','api/version/migrations','pendingChanges','EditWhatsappAccountAppcloseDialogController','api/userProfile/sections/describe','#21467e','api/voice/contexts/describe','/odbcs','URL','Vertical\x20Navigation\x20with\x20Fullwidth\x20Toolbar\x202','$onInit','Astrid\x20(Swedish,\x20Female)','api.jscriptyProject.clone','Sound','contactmanager','cloneIvrCampaign','editWhatsappAccountApp','EditoutboundAppintervalDialogController','destconnectedlinenum','SETTINGS.EDIT_SMTP','ukenglishfemale','ruri','onInteractionSave','manageResources','newMail','src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/item/dialog.html/dialog.html','selectedMailAccountApps','DASHBOARDS.OPENCHANNEL','msNavigation','retrieveUser','baseUrl','api/cm/contacts/create_many','utcOffset','CustomizationsController','\x27report_mail_transfer\x27','','Report\x20properly\x20deleted!','sms_queue_waiting_interaction:save','api.intVtigerConfiguration.delete','shift','saveVariable','/analytics','isBetween','createOrEditVoiceRecording','Swedish\x20Female','eurczechfemale','TOOLS.NOTIFICATIONS.CONDITION_DELETE_TITLE','selectedMailShowSystemMessage','preventDefault','Turn','exportSelectedIvrCampaignHopperFinals','virtual','src/js/modules/main/apps/staff/views/agents/agents.html/agents.html','Asia\x20Pacific\x20(Seoul)','msNavIsFolded','enableDtmfTone','api/integrations/sugarcrm/configurations/:id','voice_queue_channel:save','\x27AU\x27','addNewFaxAccount','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/tag/dialog.html/dialog.html','addNewMohSound','WhatsappInteractionId','saveFaxQueue','api.jscriptyProject.update','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20users?','Whatsapp','deleteSelectedScreenRecordings','motion.authenticationtype','conditions','api/square/messages/describe','Restored\x20Contact','Europe/Tirane','List\x20name','outboundReCallsDay','api.user.removeApiKey','French\x20(Canada)','\x27report_call\x27','condition','DASHBOARDS.HOME','onSaveSmsInteraction','APP.WHATSAPP','intServicenowAccount@get','Asia/Hovd','api.voiceContext.save','selectedODBC','exportSelectedTeams','us-west-2','white-bg','stateService','done','Trunk\x20updated!','api/integrations/desk/accounts/describe','minutes','On\x20{{\x20date\x20}},\x20at\x20{{\x20time\x20}},\x20{{\x20from\x20}}\x20wrote:','variable','The\x20report\x20will\x20be\x20deleted.','addRecording','getDaysOfMonth','arraydtmfmode','searchTerm','app.chat.realtime','fax_queue_waiting_interaction:save','\x27unavailable\x27','QueuesOpenchannelRealtimeController','$selectedColor','api/auth/local/forgot','spymailInteraction','api.mailSubstatus.delete','Never','Delete\x20Dynamics365Configuration','src/js/modules/main/apps/staff/views/agents/edit/teamadd/teamadd.html/teamadd.html','es-GT','msApi','saveQueues','agentInternal','getServicenowAccounts','xCALLY\x20Motion','The\x20zohoAccount\x20will\x20be\x20deleted.','startedAt','composeSmsInteraction','Esperanto','Outbound\x20route\x20not\x20deleted!','userAgent','newInterval','I\x20agree','AgentAlias','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/tag/dialog.html/dialog.html','INTEGRATIONS.NEW_SERVICENOWCONFIGURATION','img','FaxRealtimeController','chanSpy\x20properly\x20saved!','centered','\x22\x20does\x20not\x20exist!\x20Falling\x20back\x20to\x20the\x20\x22default\x22\x20theme.','contrast1','Hebrew\x20(Israel)','apps.staff.userProfiles','src/js/modules/navigation/layouts/vertical-navigation-fullwidth-toolbar-2/navigation.html/navigation.html','fields','dialogflow_language','$destroy','speakerVolume','api/rpc/outbound','mailMessage:update','MyTitle','smsPause','telephones','addUsers','ms-nav-button','exportSelectedIvrCampaigns','Trasfer\x20properly\x20done!','Asia\x20Pacific\x20(Tokyo)','transferNumber','AVG\x20(','\x27report_whatsapp_queue\x27','Hours','round','STAFF.NEW_TEAM','createOrEditVoicemail','Please\x20enable\x20browser\x20notifications!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20servicenowAccounts?','onSaveUserFaxQueue','ServicenowConfiguration\x20deleted!','FreshsalesConfiguration\x20properly\x20deleted!','Chinese\x20(China)','getFreshsalesAccounts','command','api/chat/interactions/:id/messages','queryFinal','api/cm/contacts/upload','cloudProvider@get','api.chatQueue.delete','CreateOrEditDispositionDialogController','getMembers','English\x20(United\x20States)','es-BO','MotionDialerQueueId','whatsapp-interaction','VOICE.NEW_CHANSPY','arrayratingType','SYSTEM:DELETEschedule','Zendesk','chat','cmContact@getHopperHistories','Calibri,\x20Verdana,\x20Geneva,\x20sans-serif','msQuickFilter','api.whatsappQueue.save','api/openchannel/accounts/:id/users','api/notifications/','AgentHomeDashboardMultiChannelWhatsappController','QueueCallsVoiceRealtimeController','License','Japanese','webrtc::logout','apps.dashboards','intDynamics365Account','CreateOrEditPauseDialogController','Delete\x20SugarcrmAccount','$startsWith','dialPredictiveIntervalMinThreshold','SugarcrmAccount\x20properly\x20created','destaccountcode','MOTIONDIALER.ALL_LISTS','deleteDeskConfiguration','offlineMessage','RescheduleCallDialogController','CreateOrEditFreshsalesConfigurationDialogController','deselectVoiceRecordings','delete\x20trunk','gotoDynamics365Accounts','Are\x20you\x20sure\x20want\x20to\x20close\x20the\x20','EditInboundAppringgroupDialogController','api/campaigns/describe','nextStep','api.intFreshsalesConfiguration.update','getPauses','EditMailAccountAppnoopDialogController','rurussianfemale','WhatsappCannedAnswer\x20properly\x20deleted!','deleteGroup','arrayallow','deselectMetrics','api/integrations/sugarcrm/configurations/:id/clone','sectionId','hour','createOrEditWhatsappQueue','apiResolver.resolve\x20requires\x20correct\x20action\x20parameter\x20(ResourceName@methodName)','mapArray','DashboardCustomController\x20as\x20vm','JscriptyProjectController','faxQueue','The\x20sugarcrmAccount\x20will\x20be\x20deleted.','SYSTEM:GETintVtigerAccount','Disagree','queueCampaignHoppers','internalControl','api/users/:id/whatsapp/interactions','DashboardItem\x20properly\x20saved!','DispositionsController\x20as\x20vm','src/js/modules/main/apps/settings/views/license/license.html/license.html','attachments','SYSTEM:UPDATEVOICERECORDING','ringing','api/campaigns/:id/blacklists','years','saveOutboundRoute','schedules','onUserVoiceQueue','Europe/Moscow','selectedContexts','api/integrations/zoho/configurations/:id/clone','voiceTransferReport','deleteMetric','America/Toronto','\x27France\x20(France)','getLockedItems','cafrenchmale','deleteInboundRoute','INTEGRATIONS.NEW_DYNAMICS365ACCOUNT','createMediaStreamSource','#9ea1a9','contrast','Queue:\x20','api.contact.update','addNewCompany','Delete\x20trigger','America/Nipigon','deleteServicenowConfiguration','WhatsappAccounts','MailQueuesController\x20as\x20vm','app/forgot','400','intFreshsalesAccount','forwardTemplate','Please\x20select\x20a\x20variable','stopplugin','deleteSelectedOpenchannelQueues','CompanyId','app.callysquare.squareRecordings','toggleSidenav','api/mail/reports/transfer/:id/clone','EditMailAccountAppagentDialogController','id,fullname,name,internal','/smsAccounts','context.name','unmute','NONE','exportSelectedQueueCampaignHopperFinals','delay','\x27integrationTab\x27','api.downloadMessage.get','Tonga','api/sms/queues/:id/teams','EditAppintervalDialogController','api/fax/applications/:id','src/js/modules/main/apps/voice/views/inboundroutes/edit/view.html/view.html','LoginController','Brian\x20(English,\x20British,\x20Male)','apps.settings.updates','File\x20name','src/js/modules/core/directives/ms-quick-filter/ms-quick-filter.html/ms-quick-filter.html','forgotPassword','api/cm/hopper_final/voice/queue/moveContacts/:id','/ms-widget-engine.','jpg','src/js/modules/main/apps/tools/views/schedules/partialViews/reports/treeReports.html/treeReports.html','\x27id\x27','\x20or\x20','\x27sms_accounts\x27','fax_queue:save','Openchannel\x20Account','api/teams/:id','European\x20German\x20Male','createOrEditFreshdeskConfiguration','apps.analytics.reports','contactName','Pacific/Kosrae','g722','America/Eirunepe','deleteChatProactiveAction','UpdatesController','Always','isActiveTab','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/system/dialog.html/dialog.html','WhatsappAccount','app.mail.mailQueues','Jscripty\x20Answers','exists','api.openchannel.account','SYSTEM:DELETEcampaign','Irish','TOOLBAR.DUTCH','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotop/dialog.html/dialog.html','getQueueCampaignHopperBlacks','id,name,strategy,type','drop','internalrouteApp','404','elements','ZendeskAccountsController','gotoVoiceRecordings','app.tools.dispositions','Template','\x27cm_hopper\x27','Read','users','editstate','SYSTEM:GET_TREEREPORTS','VOICE.VOICEPREFIXES','Session\x20deleted!','PowerDialing','api.intZohoConfiguration.save','downloadWhatsappInteraction','uploading','api.intFreshsalesConfiguration.delete','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20cloudProviders?','TOOLS.NOTIFICATIONS.DISPOSITION_SAVED_SUCCESS_TITLE','playback','voiceDialReport','app.tools.pauses','deleteSugarcrmAccount','uk-UA','Inbound','deleteSelectedZohoAccounts','ProjectId','createOrEditTemplate','mailInteraction@get','getLabelByMessage','US\x20English\x20Male','originateHook\x20->\x20payload','deleteInboundRouteApp','api/settings/:id','getFaxAccounts','deleteSelectedTrunks','toastyConfigProvider','deleteZohoAccount','Position','INTEGRATIONS.EDIT_DESKACCOUNT','apps.callysquare.squareRecordings','America/Belize','apps','searchText','cancel','freshsalesConfiguration','CDR(destination)=','transcribeStatus','faxQueue@get','SYSTEM:GET_TEMPLATES','Delete\x20SmsCannedAnswer','getMailAccountMailCannedAnswers','getVoiceRecordings','api.intSalesforceAccount.delete','optionalStep','onRemove','ngFlowOptions','api/cm/custom_fields/:id/clone','integrations/servicenow/configurations/:id/descriptions','cyan-500-fg','delete\x20VoiceQueues','Arabic\x20(State\x20of\x20Palestine)','Team','scrollEl','Telugu','deleteCompany','HANGUPCAUSE_21','createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','Rule','deskAccount','api/schedules/:id/run','OutboundRoutes','SYSTEM:DELETEwhatsappQueue','AgentsWhatsappRealtimeController\x20as\x20vm','showQuestionsProjectSession','getIntervals','Are\x20you\x20sure?','deleteVoiceRecording','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/teamadd/teamadd.html/teamadd.html','src/js/modules/main/apps/integrations/views/vtigerAccounts/create/dialog.html/dialog.html','src/js/modules/core/dialogs/advanced-search/dialog.html/dialog.html','api/mail/accounts/:id','gotoCompanies','api.network.save','CopyReportDialogController','America/Inuvik','Odbc\x20properly\x20created','The\x20queueCampaign\x20will\x20be\x20deleted.','angularMaterialFormBuilder','pcConfig','Reject','modules','agentadddialog','deleteAllCondition','onSearch','AgentsMailRealtimeController','Asia/Vladivostok','hopper\x20#','api.cmHopper.save','CreateOrEditFreshdeskAccountDialogController','OPENCHANNEL.OPENCHANNEL','icon-heart','getNavigation','screenRecording\x20properly\x20created','app.errors','\x27route\x27','WhatsappQueuesController\x20as\x20vm','api/users/:id/mail/interactions','stopMonitor','id,exten','TrunksController','selectedFreshsalesAccounts','png','German\x20(Germany)','MsSearchBarController\x20as\x20vm','exportSelectedTelephones','freshsalesAccounts','arraybuffer','matchType','Close\x20Contact','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20group?','SYSTEM:UNPAUSEUSER','EditHopperDialogController','utc','Australia/Darwin','openchannelInteraction:update','UserProfile\x20updated!','getOfflineMessages','Chat\x20Report\x20Transfer','src/js/modules/main/apps/tools/views/cannedAnswers/create/dialog.html/dialog.html','createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority,recallme,UserId','motion.user:','delete\x20pause','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/playback/dialog.html/dialog.html','msSplashScreen::remove','Delete\x20General','Penelope','ms-card','DASHBOARDS.SELECT_CAMPAIGN','api/whatsapp/accounts/:id/dispositions','es-AR','api/version/restart','apiResolver','assigned','exportSelectedSmsAccountSmsCannedAnswers','Value','CreateOrEditVtigerAccountDialogController','LoadingIndicatorService','openchannelQueueReport','msMasonryItem:startReLayout','dialogflow','notification:remove','PreviewDialogController','secToTime','app.dashboards.custom','The\x20mohSound\x20will\x20be\x20deleted.','User\x20properly\x20deleted!','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/dialogflow/dialog.html/dialog.html','string','api/analytics/tree_reports/describe','millis','truepriority','data:text/json;charset=utf-8,','Icelandic','fromTemplate','Message:update','sortableTable','priority','value','recordingFormat','User','openchannelCurrentCapacity','voiceAgentReportColumns','AgentsChatRealtimeController\x20as\x20vm','Russell\x20(English,\x20Austrialian,\x20Male)','addNewAction','Fields\x20saved!','eurfinnishfemale','faxInteraction','TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE','hljs','src/js/modules/main/apps/tools/views/schedules/create/dialog.html/dialog.html','German','CreateOrEditscreenRecordingDialogController','WhatsappRealtimeController','OpenchannelCannedAnswer\x20properly\x20saved!','cellName','Raveena','sms','de-DE','selectedTemplates','icon-console','CustomizationlogologinController','xx-hacker','chatQueue','propertiesExtra','goToFaxAccount','status','file','app.plugins','smsInteractionTags:save','America/Rankin_Inlet','app.voice.internalroutes.edit','altDate','','selectedScreenRecordings','America/Grand_Turk','selectAllLists','reschedule','INTEGRATIONS.DESKACCOUNTS','\x27voice\x27','username','color','OwnerId','VOICE.VOICE','dialogflowV2_language','motion2.home.mycontacts:','FaxAccount\x20properly\x20created','api/cm/companies/:id/contacts','disposition@get','saveOdbc','rpcTrunks','app.voice.voiceQueues','Userchange_avatarController','appdata.name','api.interval.delete','api/rpc/fax/accounts','src/js/modules/main/apps/analytics/views/reports/run/dialog.html/dialog.html','id,name,crudPermissions','data3','openchannelAccountApp','Geraint','app.settings.networks','api/jscripty/sessions/reports/:id/questions','pound','QueueCampaignHoppersController','msNavigation::stateMatched','wss','openchannelAccountApps','/sms','Bosnian','app.dashboards.general.voice','\x27right\x27','MotionDialer','deleteSelectedReports','TOOLS.CUSTOMDASHBOARDS','SYSTEM:ADDTAGS','getUserMedia','SYSTEM:SENDMESSAGE','endRangeValue','deselectCompanies','src/js/modules/main/apps/tools/views/intervals/intervals.html/intervals.html','Latvian\x20(Latvia)','sessions','auto\x20answer\x20enabled\x20after:','+11:00','OPENCHANNEL.NEW_OPENCHANNELACCOUNT','Raveena\x20(English,\x20Indian,\x20Female)','abandoned','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20agent?','IntervalIntervalsController','updateQueue','zendeskConfigurations','CHAT.REALTIME','WhatsappAccountDispositionsController','\x27text\x27','\x27penalty\x27','createOrEditTelephone','CONTACTMANAGER.NEW_CUSTOMFIELD','TriggerActionsController','cloneProject','Asia/Yerevan','tools','api/pauses/describe','openchannel.openchannelAccounts','Atlantic/Canary','deleteSelectedContacts','Macedonian','Serbo-Croatian','cm_contacts','\x27pt-PT\x27','aws_access_key_id','red-A700-bg','ngBindHtmlUnsafe','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/agent/dialog.html/dialog.html','delete\x20ServicenowAccounts','createOrEditDynamics365Configuration','DASHBOARDS.SELECT_STATUS','/users','QueueCampaign\x20updated!','unreadGroupMessages','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperHistories?','MAIL.EDIT_MAILACCOUNT','createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl','#5c616f','QueueCampaigncloneController','city','UserOpenchannelAccount','deleteListCustomField','SYSTEM:squareProjects.ADDUSERS','STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE','$ariaProvider','jpjapanesefemale','api/voice/contexts/:id','api.team.save','ring','MARKETPLACE.PLUGINS','Fully\x20Enabled','What\x20would\x20you\x20name\x20your\x20list?','src/js/modules/main/apps/settings/views/updates/update/dialog.html/dialog.html','rpcChatQueues','onHook','api.pm2.save','CDR(prefix)=noprefix','Europe/Rome','app.openchannel.openchannelAccounts','api/voice/recordings/:id/transcribe','SYSTEM:GET_USERS','INTEGRATIONS.NEW_SUGARCRMCONFIGURATION','icon-table-edit','mailInteractionTags:save','LicenseController\x20as\x20vm','\x27connectel\x27','MsShortcuts.query','Plugin\x20properly\x20saved!','showInfo','createOrEditZendeskConfiguration','','src/js/modules/main/apps/sms/views/smsAccounts/smsAccounts.html/smsAccounts.html','very','$mdMenu','questionId','saveVtigerConfiguration','dialPredictiveIntervalMaxThreshold','getVoiceChannels\x20->\x20session','DuplicateContactDialogController','EditSmsAccountApp','Interval\x20deleted!','closed','plugin','/dialer','getElementById','BEEP','European\x20Portuguese\x20Female','api/rpc/whatsapp/queues/waitinginteractions','createOrEditProjectSession','Danish\x20(Denmark)','api/integrations/freshdesk/accounts/:id','STAFF.EDIT_TELEPHONE','api/rpc/chat/queues/:id/notify','note','api/chat/messages/:id/accept','getActiveTheme','openAdvancedSearch','Answer','selectedServicenowAccounts','treeCustomEvents','autoCreate','rpcFaxQueues','$location','api/integrations/desk/configurations/:id','api/fax/interactions/:id/tags','api/mail/accounts/:id/users','','SYSTEM:GET_TREE_REPORT_STRUCTURE','DASHBOARDS.JULY','src/js/modules/main/apps/tools/views/tags/tags.html/tags.html','campaign:save','createOrEditMotionDialerQueue','Japanese\x20(Japan)','ChatRealtimeController','CannedAnswer','Contacts','rpcCampaigns','onSaveUserMailQueue','PreviewReportDialogController','api/analytics/field_reports/:id/clone','Call_Status','api.variable.save','You\x20are\x20not\x20the\x20owner\x20of\x20the\x20last\x20message!','\x27SIP/{{multipleUsers.name}}\x27','app.integrations.zendeskAccounts','EditInternalAppexternaldialDialogController','api.intSugarcrmAccount.save','CSquare\x20Details\x20Report','app.motiondialer.ivrCampaigns','api/whatsapp/interactions/:id','IvrCampaignController\x20as\x20vm','Invalid\x20list\x20name.','ServicenowConfiguration\x20properly\x20saved!','trustAsHtml','motiondialer','api/fax/queues/:id/teams','openchannelMessage','Tags','onSaveChannel','TrunkController\x20as\x20vm','api.voiceQueue.delete','api/dispositions/:id/clone','getVoiceQueuesReport','boxed','MOTIONDIALER.EDIT_HOPPER','realm','uisref','src/js/modules/main/apps/staff/views/users/edit/apikeymanager/apikeymanager.html/apikeymanager.html','onUpdateWhatsappInteraction','selectedTriggerAllConditions','api/sms/applications/:id','Firefox','response','cmContact@get','mailMessage:save','api/sms/messages/:id/reject','deselectUserProfiles','delete\x20MailQueues','SYSTEM:GETcmList','SYSTEM:DELETEfaxQueue','left','Portuguese\x20(European)','unknown','getWhatsappAccountWhatsappCannedAnswers','900','Conchita\x20(Spanish,\x20Castilian,\x20Female)','Low','blue-fg','Schedule','api.voiceRecording.save','\x27loose\x27','api/fax/reports/queue/:id/clone','usenglishmale','SYSTEM:DELETEintFreshdeskAccount','originalMessage','\x27stun\x27','api/integrations/desk/accounts/:id/fields','\x27invalid\x27','$eval','addNewServicenowConfiguration','^msMasonry','voicePause','Delete\x20AllCondition','saveZohoAccount','membername','src/js/modules/main/apps/tools/views/intervals/edit/apps/interval/dialog.html/dialog.html','VoiceRecording\x20properly\x20created','Asia/Hong_Kong','addNewPlugin','onSaveFaxQueue','getOpenchannelInteractions','agent','orange-fg','pickerPosition','api/cm/contacts/:id/tags','America/Santarem','dialActive','Restored\x20Contacts','googleTtsLanguage','READ_PERMISSION','keyCode','deselectODBC','Editor','mailInteraction:update','mapKey','delete\x20fields','rpcVoiceQueuesChannelsTmp','localnet','SYSTEM:DELETEmailQueue','America/Nome','addNewWhatsappQueue','phoneBarRemoteControlPort','demo','EditInternalAppdialDialogController','runTranscribe','gray','\x27SI\x27','app.dashboards.general','STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_TITLE','faxAccountApp','CustomDashboard\x20updated!','getOpenchannelAccountApps','isChecked','\x27progressive\x27','api/mail/interactions/:id/messages','api/chat/queues/:id/clone','analyticFieldReport','MsNavigationHorizontalNodeController\x20as\x20vm','Call\x20Report','FAX.NEW_FAXACCOUNT','ZohoAccountController','Asia/Aqtau','openchannelStatus','Finnish','deleteHopper','autoAssociation','ANALYTICS.RENAME','sumDuration','screenRecording\x20properly\x20saved!','treeDefaultData','Pacific/Pago_Pago','The\x20user\x20will\x20be\x20deleted.','UserDashboardGeneralController','selectAllVoiceRecordings','en-US','HANGUPCAUSE_17','api.telephone.save','kn-IN','translate3d(','api/fax/accounts/:id/users','addNewInternalRoute','api/jscripty/sessions/reports/:id','extractedReport','selectedCannedAnswers','setCurrentStep','\x27port\x27','api.disposition.delete','freshsalesAccount','getTags','createOrEditChatWebsiteChatProactiveAction','Delete\x20Telephone','isAgent','unreadTotalMessages','Browser\x20notifications\x20are\x20not\x20supported\x20by\x20the\x20browser.\x20Normal\x20notifications\x20will\x20be\x20used.','formatter','app.analytics','deleteSelectedUsers','_self','api/openchannel/messages/:id/accept','DASHBOARDS.NO_DISPOSITION_SET','mwFormViewer','Dial\x20Report','CreateOrEditAnyConditionDialogController','vm_dc.query.filter','intDynamics365Field','app.mail','DEFAULT\x20PAUSE','Prefix','Trebuchet\x20MS','getFreshdeskAccounts','src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/view.html/view.html','DASHBOARDS.SELECT_TAG','delete\x20smsCannedAnswers','api/rpc/agents','src/js/modules/main/apps/mail/views/mailQueues/edit/agentadd/agentadd.html/agentadd.html','deleteSelectedCompanies','api.pause.delete','Swahili\x20(Kenya)','api/templates/:id/clone','api/sms/reports/queue/:id','apps.voice.voiceQueues','operators','intDeskAccount@get','msUtils','openChannel','CONTACTMANAGER.NEW_GLOBALCUSTOMFIELD','api/integrations/zendesk/fields/describe','api/voice/extensions/:id/clone','subtract','daysOfWeek','SMS\x20Report\x20Queue','Africa/Maputo','analyticExtractedReport@get','ChatWebsite\x20properly\x20saved!','','WEBSITES','getAiTools','tab','addNewUser','CreateOrEditHopperVoiceQueueIdDialogController','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/dial/dialog.html/dialog.html','SYSTEM:LISTS_ASSOCIATION','src/js/modules/core/directives/ms-stepper/templates/vertical/vertical.html/vertical.html','TOOLBAR.HEBREW','api/integrations/zendesk/configurations/:id/clone','messageStatuses','SYSTEM:GET','answer','MailQueue\x20properly\x20saved!','mouseenter\x20touchstart','Atlantic/Madeira','English','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20','OpenchannelQueueagentaddController','bottom-right','/mailQueues','getValues','app.openchannel.realtime.queues','api.openchannelAccount.update','SYSTEM:GETqueues','$interval','api/square/projects/:id','Brazilian','InternalRouteController','FreshdeskConfiguration\x20deleted!','getTriggers','document','icecandidate','11b7b3c','SEC_TO_TIME','get_node','hasPermission','showIncompleteSubmitButton','Yiddish','getOpenchannelAccounts','Mobile','showOnPageHidden','Password','id,name,fullname,internal','endtime','FreshdeskAccounts','\x2727\x27','deselectChanSpies','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/amazonlex/dialog.html/dialog.html','toNumber','src/js/modules/main/apps/dashboards/views/general/agent/interaction/tag/dialog.html/dialog.html','api/mail/accounts/:id/verify','pt-PT','api/jscripty/questions/reports/:id/clone','newAction','delete_node','TOOLS.EDIT_SOUND','ar-AE','AgentHomeDashboardMultiChannelFaxController','onComplete','UserVoiceDashboardDialerController\x20as\x20vm','completed','EditChatWebsiteAppgotopDialogController','mwForm.pageEvents.changePage','delete\x20application','ngSanitize','deleteconfirm','handleMouseenter','motionGenerator','openchannelInteraction','api/whatsapp/messages/:id/reject','path','resolve','GET_COMPANY','app.voice.musiconholds','Connectel','Openchannel\x20Interaction','deleteItem','getVoiceCalls','\x27strict\x27','api/chat/queues/:id/members','filterByTags','SmsQueues','startsWith','src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/view.html/view.html','gridster','delete\x20VtigerAccounts','sessionsgoto','api.sms.account','selectedExtractedReports','contactFields','motionbar','api/users/:id/sms_accounts','Atlantic/Faroe','delete\x20agent','DATE','setAttribute','Europe/Zaporozhye','InternalRoute','api/openchannel/queues/:id/clone','api/cm/hopper/:id/clone','Courier\x20New,Courier,monospace','selectAllInternalRoutes','DeskAccountsController','getAnyConditions','\x27tcp\x27','FAX.EDIT_','blacklistadddialog','app.settings.smtps','Finnish\x20(Finland)','SYSTEM:DELETEtag','deselectContacts','app.core','api/analytics/metrics/:id/clone','AgentteamaddController','rules','EditWhatsappAccountAppqueueDialogController','SYSTEM:GETchatQueue','unmanaged','dayOfWeekTo','en-GB','variableName','Pacific/Pohnpei','/assets/images/theme-options/content-with-toolbar.jpg','Delete\x20MailQueue','digits','api/rpc/fax/queues/waitinginteractions','ringingMute','api.interval.save','UserSmsAccount','PredictiveQueueCampaignDialogController','version','inbound','api/chat/interactions/:id/attachment_download','read','api/jscripty/projects/:id/summary','#4CAF50','SYSTEM:DELETECONFIGURATIONFIELD','America/Cambridge_Bay','api/integrations/servicenow/fields/:id/clone','createOrEditPause','Agent','The\x20zohoConfiguration\x20will\x20be\x20deleted.','deselectDynamics365Accounts','ssml','ServicenowAccounts','UK\x20English\x20Female','removeClass','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20metrics?','delete\x20salesforceAccount','Dutch\x20(Netherlands)','stun','content','$logProvider','deleteOdbc','chatCannedAnswers','outboundUnknownCallsDay','SYSTEM:GETwhatsappAccount','0.26','addTags','addTab','api/openchannel/reports/queue/:id/clone','deleteWhatsappAccountWhatsappCannedAnswer','api/whatsapp/queues/:id','isStepValid','whatsappCapacity','statusList','isAdmin','scrollTop','AgentHomeOpenchannelController','CALLYSQUARE.EDIT_ODBC','sugarcrmAccounts','isNaN','ServicenowConfiguration\x20properly\x20deleted!','id,level,name,description,ParentId,createdAt,updatedAt','callbackuniqueid','getUserProfiles','preproduction','UserProfile\x20properly\x20saved!','ispeechTtsLanguage','fontColor','Analytics','CustomDashboards','src/js/modules/main/apps/analytics/views/metrics/metrics.html/metrics.html','sms_queue:save','arraySmtp.service','Czech\x20(Czech\x20Republic)','api.agent.changePassword','selectedChatQueues','saveQueueCampaign','queryReport','Asia/Kuching','sender','whatsappQueue:remove','Record','src/js/modules/main/apps/mail/views/mailSubtatuses/create/dialog.html/dialog.html','onEnded\x20->\x20session,\x20data','cloudProvider','The\x20openchannelQueue\x20will\x20be\x20deleted.','api/whatsapp/messages/:id','blur','countbusyretry','endValue','zohoAccounts','selectedQueueCampaigns','Integration_Tab','queryHopper','newMailSubstatus','STAFF.NEW_TELEPHONE','src/js/modules/main/apps/mail/views/mailAccounts/edit/agentadd/agentadd.html/agentadd.html','GET_SMS_ACCOUNT','The\x20smsCannedAnswer\x20will\x20be\x20deleted.','newVtigerAccount','newUser','columnCount','^msTimeline','data5','whatsappInteractionDownload','onMultiselectInit','Europe/Paris','AgentHomeAbandonedController','api.screenRecording.save','Atlantic/Stanley','DeskAccount\x20properly\x20created','EditInternalAppqueueDialogController','EditChatWebsiteAppdialogflowDialogController','interaction\x20#','AgentGeneralIframeController','openchannelMessage:save','whatsappInteractionTags:save','api/integrations/salesforce/accounts/:id/clone','getLogo','saveTag','EditSmsAccountAppagentDialogController','VoiceRecordingsController\x20as\x20vm','Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20selected\x20contacts?','EditInboundAppgotoDialogController','talking','isFunction','user:update','INTEGRATIONS.EDIT_ZENDESKCONFIGURATION','createdAt,updatedAt,id,callerid,duration,audio,stamp,msg_id','mailTransferReport','DASHBOARDS.OPENED','icon-keyboard','Win','trigger:contactmanager','saveInternalRoute','total','delete\x20Trunks','SYSTEM:GETvoiceMail','saveWhatsappCannedAnswer','voicePrefixagentaddController','startPredictive','saveUserProfile','app/main/apps/dashboards','EditChatWebsiteAppintervalDialogController','api/integrations/freshdesk/accounts/:id/configurations','src/js/modules/main/apps/help/views/about/about.html/about.html','_XCALLY_MIXMONITOR_FORMAT=','triggerActions','grey-A700-bg','api/cm/lists/:id/users','TOOLBAR.GERMAN','app.openchannel.openchannelQueues.edit','speed','monitor','api/voice/mohs/describe','Fax','api.intFreshdeskConfiguration.save','Kannada\x20(India)','PREVIOUS\x20CONTACTS\x20NOT\x20AVAILABLE','SmsQueueController','arraytimeoutrestart','deleteMusicOnHold','Marathi\x20(India)','delete\x20mailAccount','SYSTEM:DELETEchatQueue','g726','shiftKey','-01:00','success','Message\x20has\x20been\x20accepted!','awsPollyVoice','onCollapse','api/trunks/:id/clone','Chinese\x20(Simplified)','src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/view.html/view.html','AgentsSmsRealtimeController\x20as\x20vm','onSaveFaxInteraction','EditSmsAccountAppamazonlexDialogController','delete\x20OutboundRoutes','0px','createOrEditIvrCampaignHopper','app/core/directives/ms-phonebar/sounds/incoming-call.ogg','CreateOrEditNetworkDialogController','testtestintegrationaccount','src/js/modules/main/apps/voice/views/internalroutes/edit/view.html/view.html','EXPORT','gotoIvrCampaigns','msWidgetEngine','id,fullname,internal','Delete\x20conditions','api/cm/companies/describe','CustomField\x20deleted!','selectedChatWebsiteChatCannedAnswers','ar-TN','replace','getRemoteStreams','denied','openString','icon-deskphone','\x27pt-br\x27','DASHBOARDS.WED','Audio_Files','message\x20#','thu','src/js/modules/main/apps/voice/views/realtime/queue_params/view.html/view.html','QueueCampaignHopperBlacksController','MailAccountController\x20as\x20vm','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20schedules?','Italian\x20(Italy)\x20/\x20Finnish\x20(Finland)','phoneBarExpires','newExtractedReport','Interaction:save','America/Cancun','OpenchannelAccountController','SugarcrmAccountConfigurationsController','selectedOperator','Files','\x27number\x27','Filipino','\x277200\x27','toggleHorizontalMobileMenu','MOTIONDIALER.SELECTED_LISTS','chatQueues','Voicemails','smtps','Module\x20has\x20been\x20updated!','$document','Windows','getOutboundRouteApps','ms-nav-folded\x20ms-nav-folded-open','webkitHidden','Text','app.staff.agents','getVoiceQueues','InternalRouteActionsController','Years','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','mohSounds','firstName,lastName,mobile','Interval\x20updated!','/var/opt/motion2/server/files/sounds/converted/','adminUrl','Templates','TOOLS.TRUNKS','onChangeEnableAllResources','intervalIntervals','icon-checkbox-marked-outline','EditInternalAppinternaldialDialogController','\x27g729\x27','selectedList','api/analytics/custom_reports/describe','MailQueues','exportSelectedFaxQueues','\x27mail_queues\x27','openchannelAccountInteractions','STAFF.SELECTED_QUEUES_','=viewModel','/outbound_calls','lime-A700-bg','getIvrCampaignHopperFinals','track','Campaign\x20Without\x20Lists','forEach','TOOLBAR.ARABIC','Call\x20properly\x20handled!','onUpdateVoiceQueueReport','FreshdeskAccount\x20properly\x20saved!','smsAccountInteractions','selectedDisposition','Node','Europe/Warsaw','\x27ulaw\x27','EditFaxAccountAppqueueDialogController','deselectIvrCampaigns','addNewReportField','-03:00','faxQueue:update','delete\x20DeskAccounts','TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE','Unable\x20to\x20retrieve\x20voice\x20channels','isHidden','channelstatedesc','America/Montevideo','api/users/:id/clone','delete\x20sound','100','endOf','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20servicenowConfiguration?','selectColor','gotoLists','ShowQuestionsSessionDialogController','SETTINGS.NEW_SMTP','selectedFaxAccountInteractions','Project\x20properly\x20cloned','AgentHomeFaxController','api.user.delete','delete\x20outboundroute','uninstall\x20plugin','hr-HR','wholerow','userWhatsappQueue:remove','DASHBOARDS.UNREAD','exportSelectedMusicOnHolds','new','addNewChatCannedAnswer','\x27report_openchannel_queue\x27','api.project.delete','Albanian','deleteVoicemailMessage','selectedItemChange','EditWhatsappAccountAppagentDialogController','Mathieu\x20(French,\x20Male)','prev','addNewTeam','createOrEditReport','IvrCampaignsMotionDialerRealtimeController','api.contact.save','addNewSmtp','IntervalController\x20as\x20vm','icon-account-circle','allowedItems','cmList@get','CONTACTMANAGER.EDIT_HOPPER','extension','Hangup','SYSTEM:GETuserProfile','treeConfig','nolimit','mute','OpenchannelAccountOpenchannelCannedAnswersController','getAnswers','ensureSelectedResultIsVisible','Pacific/Tongatapu','placeholder','EditChatWebsiteAppqueueDialogController','U(xcally-mixmonitor-context)','addNewHopper','CreateOrEditCustomDashboardDialogController','VoiceRecording','createOrEditWhatsappAccount','CustomDashboardsController\x20as\x20vm','TOOLBAR.FINNISH','Field\x20deleted!','gotoCustomDashboards','exportSelectedZendeskAccounts','selectAllVariables','terminate','exportSelectedCustomDashboards','s:\x20Skip\x20the\x20playback\x20of\x20the\x20channel\x20type\x20(i.e.\x20SIP,\x20IAX,\x20etc)\x20when\x20speaking\x20the\x20selected\x20channel\x20name.','SYSTEM:GETfaxQueue','Latvian','smsMessage:update','saveFaxAccountApp','api/chat/websites/:id/system_avatar','question,answer','mailStatus','buttons','America/Monterrey','contact','2020-12-04T19:00:45.747Z','QuickPanelController','getBlackLists','src/js/modules/main/apps/chat/views/chatQueues/create/dialog.html/dialog.html','api.condition.delete','scroll','CreateOrEditchanSpyDialogController','es-419','CannedAnswersController','voice_outbound_channel:save','mwForm.pageEvents.pageCurrentChanged','selectedDispositions','EditMailAccountAppintervalDialogController','appVersion','deleteOpenchannelCannedAnswer','saveOutboundRouteApp','reportType','selectAllTriggers','localstationid','Delete\x20GlobalCustomField','savevoicePrefix','Asia/Riyadh','SMS.SMS','src/js/modules/main/apps/tools/views/triggers/edit/actions/create/dialog.html/dialog.html','app.tools.intervals','src/js/modules/main/apps/voice/views/realtime/realtime.html/realtime.html','ChatGroupId','api/fax/accounts/:id/send','replyMessage','isLockedOpen','Australia/Adelaide','webtransfer','trunk:save','api/openchannel/interactions/describe','CustomDashboardcloneController','OpenchannelAccounts','api/analytics/default_reports/describe','saveTeam','api/trunks/describe','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20globalCustomFields?','STAFF.PERMISSIONS_PLACEHOLDER_SEARCH','pauseTypeFilter','msApi.resolve\x20requires\x20correct\x20action\x20parameter\x20(resourceName@methodName)','newIvrCampaign','app/main/apps/staff','yue-Hant-HK','plugins','id,name','api/fax/queues/:id/members','DashboardItem\x20properly\x20deleted!','ltr','setActiveTheme','user@get','saveSmsQueue','slice','SYSTEM:DELETEmailAccount','SalesforceAccount','The\x20dynamics365Account\x20will\x20be\x20deleted.','deleteInterval','selectedChatWebsiteProactiveActions','ng-sortable','setSinkId','deleteFieldConfirm','vendor','voiceExtension','odbc_id','apps.tools.cannedAnswers','addVoiceQueuesChannels','Substatus','src/js/modules/main/apps/staff/views/teams/create/dialog.html/dialog.html','startcase','Bengali\x20(Bangladesh)','Europe/Athens','app.whatsapp.realtime','node','AboutController\x20as\x20vm','DASHBOARDS.FEBRUARY','voiceAgentReport','Europe/Sofia','Pashto','Kannada','STAFF.PERMISSIONS_WARNING_CLOSE','/:id','palette','TriggersController','permission','getInstallInfo','api.faxAccount.update','TOOLBAR.WARNING','openchannelPause','api/rpc/mail/queues','exportSelectedTriggerAllConditions','isDisabled','UserchangepasswordController','nonat','#c5c6cb','ChatWebsiteonlineFormController','apps.voice.voicemails','Plivo','api/plugins/:id/clone','variables','exportSelectedIntervalIntervals','SalesforceAccount\x20properly\x20created','hasShortcut','\x27select\x27','bulkCreate','apps.tools.templates','open','formViewer','arraydirectmedia','accesskeyid','SmsQueue\x20updated!','Mathieu','SYSTEM:DELETEcloudProvider','fax_queue_waiting_interaction:remove','Lithuanian\x20(Lithuania)','deleteMailQueue','goalname','jstree','brportuguesefemale','trigger:bot','app.sms','onNewRTCSession\x20->\x20data','jan','MarketplacePluginsController\x20as\x20vm','saveGeneral','\x27no\x27','whatsapp_queue:save','runtranscribeSelectedVoiceRecordings','InboundRoute\x20properly\x20saved!','SYSTEM:DELETEfaxAccount','zh-TW','\x27chat_offline_messages\x27','green-A700','expanded','autocompleteRequireMatch','Europe/Riga','CDR(prefix)=${EXTEN:0:','deskConfiguration','when','newTemplate','arraydialMethod','Invalid\x20extension:\x20','rule','\x27update\x27','foreignTable','api/automations/:id/clone','arraysort','src/js/modules/main/apps/integrations/views/freshdeskAccounts/create/dialog.html/dialog.html','app.contactmanager.lists','api/migrations/:id','HH:mm:ss','api.pause.update','deleteSelectedChatWebsiteInteractions','Token','sessionConf','smsQueue@get','Karl','3.0.0-alpha.2','gotoOpenchannelAccounts','api/voice/mohs/:id/sounds/:id2','CloudProvider\x20properly\x20saved!','viber','countcongestionretry','createOrEditFreshdeskAccount','Message','Util','ROUND\x20(','SYSTEM:DELETEsquareOdbc','ChatRealtimeController\x20as\x20vm','Verdana,Geneva,sans-serif','admin,user','Spanish\x20(Bolivia)','Outbound\x20Call','verticalNavigation','SYSTEM:GETtags','getSalesforceAccounts','userOpenchannelQueue:remove','Chinese\x20(Hong\x20Kong)','smsApplication','theme','md-background-bg\x20md-hue-3','getSize','removeJoin','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20deskAccounts?','next','SYSTEM:UPDATEcontact','rpc@getFaxQueues','ChatQueuesController\x20as\x20vm','$ne','SYSTEM:DELETEtrigger','sidebar','api/integrations/vtiger/configurations/describe','voiceQueuesLog','Asia/Jayapura','api/openchannel/messages/:id/clone','api/attachments','chatInternalMessage:save','service-worker.js','app.staff.userProfiles','CreateOrEditQueueCampaignDialogController','messages','deleteFaxAccount','Phonebar','cannedAnswer','Skebby','delete\x20hopperHistory','faxInteractionDownload','getColumns','isMobile','msScroll','level','treeCustomConfig','Thumb','SchedulesController','groupsToArray','rewriteRouting','faxMessage:save','Miguel\x20(Spanish,\x20US,\x20Male)','green-300-fg\x20icon-phone-hangup','amd','deselectLists','voicePrefix@get','EditSmsAccountAppcloseDialogController','headerWhiteLabel','CloudProvider\x20properly\x20created','expand','api/integrations/zendesk/accounts/:id/fields','addNewChatQueue','/snippet?token=','getVoiceQueuesChannelHangup','api/voice/chanspy/:id','apps.whatsapp.realtime','Openchannel\x20Report\x20Queue','invite','VOICE.EDIT_INTERNALROUTE','vm.customFieldsForm.$pristine','Australian\x20English','form','outgoing','euritalianfemale','\x22\x20called\x20successfully','err','network','CreateOrEditActionDialogController','api/automations/describe','src/js/modules/main/apps/contactmanager/views/companies/companies.html/companies.html','api.cmCustomField.delete','MailQueueId','krkoreanmale','state','Yahoo','selectAllUserProfiles','globalStatusTime','ar-EG','position','toJSON','SETTINGS.NETWORKS','Loading...','api/whatsapp/accounts/:id/applications','You\x20can\x27t\x20remove\x20service\x20account','SmsRealtimeController\x20as\x20vm','merge','subString','rpc@getMailAccounts','CreateOrEditProjectDialogController','play','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','Mail','The\x20whatsappQueue\x20will\x20be\x20deleted.','onUpdateChatInteraction','Rejected','apps.voice.voiceRecordings','https://www.xcally.com/bar/phonebar/autoupdater.xml','api/integrations/servicenow/accounts/:id/configurations','getResponseSheetRow','Trident/7','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?','method','X-Answer-Mode','user_has_chat_interactions:save','addNewSugarcrmAccount','smsAccount','stepNumber','UploadPluginDialogController','Guarani','MxGraphUpdateInfoController','\x27it\x27','America/Rainy_River','currentNode','api.analyticExtractedReport.save','Pauses','integrationTypes','getTeams','integrations','selectedDynamics365Accounts','apps.contactmanager.companies','api/members/reports/:id','motion2.home.contacts:','api/whatsapp/accounts/:id','ANALYTICS.METRICS','ChatWebsitesystemAvatarController','TAB','twchinesefemale','DialogController','icon-checkbox-multiple-marked-outline','EditInternalApphangupDialogController','WhatsappCannedAnswer\x20deleted!','Interlingua','src/js/modules/main/apps/chat/views/chatWebsites/edit/proactive/dialog.html/dialog.html','api/cm/lists/describe','Delete_permission','src/js/modules/main/apps/tools/views/trunks/edit/view.html/view.html','interactionsgoto','/about','saveChatWebsiteApp','app.dashboards.general.user','Greek','FaxAccount\x20updated!','lastMessageAt','Variable','vm.search','g723','HopperFinal\x20deleted!','addNewQueueCampaign','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/internaldial/dialog.html/dialog.html','/generals','hopperFinal','addInteractionTab','it-IT','SYSTEM:GET_TEAMS','VtigerAccountConfigurationsController','delete\x20Odbcs','ticketType','Gujarati\x20(India)','Quarters','api/fax/accounts/:id/applications','/networks','api/square/reports/:id','WhatsappAccountagentaddController','flash','/plugin/:id','selectedContact','deleteFaxQueuesWaitingInteractions','audioinput','Urdu\x20(India)','Project\x20properly\x20','EditOpenchannelAccountAppgotoifDialogController','Europe/Prague','AgentchangepasswordController','app/main/apps/contactmanager','SYSTEM:DELETEsmsQueue','addNewSugarcrmConfiguration','customFields','jscriptyQuestionReport','separatorKeys','CustomField\x20properly\x20created','uploadComplete','motion2.user:','/userProfiles','EditInternalAppplaybackDialogController','openchannelCapacity','da-DK','whatsappApplication','icon-video','report','left_join','ExtractedReports','InteractionDialogController','addNewChatProactiveAction','EditSmsAccountAppnoopDialogController','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/clone/clone.html/clone.html','showConfirm','groupBy','TeamagentaddController','Jan','api/fax/accounts/:id/interactions','AgentGeneralPopupController','originalObject','\x27whatsapp_interactions\x27','excludeFrom','addAgents','DASHBOARDS.TODAY','api.intZendeskAccount.update','src/js/modules/main/apps/dashboards/views/general/agent/agent.general.html/agent.general.html','LoginController\x20as\x20vm','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)=','The\x20variable\x20will\x20be\x20deleted.','api/whatsapp/reports/transfer/:id','ms-navigation-folded\x20ms-navigation-folded-open','3rd','src/js/modules/main/apps/voice/views/voiceQueues/edit/teamadd/teamadd.html/teamadd.html','CreateOrEditDeskConfigurationDialogController','createOrEditQueueCampaign','CustomDashboardController','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27ringing\x27','JSCRIPTY.CLONE_PROJECT','api/chat/interactions/describe','triggerAllConditions','gotoUserProfiles','saveChatGroup','/ivr_campaigns','VIDEO.EDIT_SCREENRECORDING','id,name,level,ParentId','AgentsMotionDialerRealtimeController','integrationTab','JscriptyProjectsController\x20as\x20vm','api/integrations/sugarcrm/accounts/:id/fields','\x27openchannel_interactions\x27','vm.queryHopper.filter','queueCampaignHopperBlacks','usmoney','selectAllTemplates','Cannot\x20upload\x20the\x20plugin','CONTACTMANAGER.GLOBALCUSTOMFIELDS','\x27o\x27','DefaultReports','newFaxQueue','saveDynamics365Account','flip','globalLists','Persian\x20(Iran)','getSessions','$resource','queueaddchannel','Clickatell','seconds','saveMailQueue','uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','api/sms/queues/:id/users','$stateChangeSuccess','inboundroutes','TelephonesController\x20as\x20vm','MOTIONDIALER.NEW_HOPPER','ivrCampaign','getSmsQueues','UserOpenchannelQueue','treeCustomData','found','stun:','project_id','ChatQueueController','FaxAccountsRealtimeController\x20as\x20vm','arrayreportholdtime','DADHI','UserFaxAccount','name.name','IvrCampaigncloneController','createdAt,updatedAt,id,name,description','Delete\x20Project','arrayservice','\x2718\x27','destcalleridnum','voiceRecording','twitter','webrtc::call','arraynat','SYSTEM:GETConfigurations','getContact','api/voice/queues/:id/hopper_black','monthDayTo','AgentsOpenchannelRealtimeController','searchTextChange','playrecording','CreateOrEditFreshsalesAccountItemDialogController','src/js/modules/main/apps/tools/views/triggers/create/dialog.html/dialog.html','TOOLS.','OpenchannelRealtimeController\x20as\x20vm','The\x20system\x20request\x20time\x20for\x20the\x20update\x20should\x20be\x20below\x201\x20minute.

Do\x20you\x20agree\x20the\x20terms\x20of\x20this\x20End\x20User\x20License\x20Agreement
?','updateLayoutStyle','app.errors_error-500','app.contactmanager.contacts.edit','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/interval/dialog.html/dialog.html','GlobalCustomFields','savePause','mr-IN','userIsNotPhonebar','invoke','CreateOrEditMetricDialogController','right','/callysquare','SYSTEM:DELETEintSugarcrmAccount','setItem','api.cloudProvider.save','Kimberly\x20(English,\x20US,\x20Female)','@id','hiddenBCC','ProjectViewerController','ne-NP','createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','api/users/:id/contacts','ListCustomFieldsController','intervals','api.user.update','Start\x20new\x20recording','$promise','\x27report_mail_queue\x27','America/Thunder_Bay','team','QueueNotify','\x27openchannel_accounts\x27','isBoolean','VOICE.VOICEMAILS','us-east-2','forward','src/js/modules/main/apps/fax/views/realtime/accounts/view.html/view.html','disposedAt','addNewFaxQueue','SETTINGS.LICENSE_REQUEST_SENT','EditInboundAppexternaldialDialogController','src/js/modules/main/apps/mail/views/mailAccounts/mailAccounts.html/mailAccounts.html','saveOrPublishProject','\x27sw\x27','googleAsrLanguage','\x2716\x27','createdAt,updatedAt,id,name,type,selector,timeout','XMLHttpRequest','api/license/describe','data2','whatsappAccountApp','src/js/modules/main/apps/tools/views/intervals/edit/view.html/view.html','Afrikaans','analyticExtractedReport','api/rpc/sms/queues/waitinginteractions','krkoreanfemale','getDateFromString','deleteFaxAccountInteraction','Hotmail','Trunk','$watchGroup','Pacific/Guadalcanal','sms_queue_waiting_interaction:remove','Email\x20Account','empty','connection','Message\x20deleted!','ngAnimate','layoutMode','selectAllZohoAccounts','deselectSalesforceAccounts','windowHeight','amber','ComposeOpenchannelInteractionDialogController','userProfileResource','ORDER\x20BY\x20','SoundsController','role','sortByWeight','America/Tegucigalpa','eu-west-1','keyBy','Delete\x20OpenchannelAccount','api/users/:id/scheduled_calls','createdAt,updatedAt,id,name,description,crudPermissions','delete\x20hopperFinal','TOOLBAR.DANISH','Draft','chooseFromList','EditInboundAppsetDialogController','api/screen/recordings/:id/download','rrmemory','toggleFolded','TOOLS.SCHEDULER','FAX.FAXQUEUES','ms-target-wrap','createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country','General\x20properly\x20saved!','api/rpc/voice/queues/channels/:uniqueid/redirect/:exten','/zohoAccounts','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/externaldial/dialog.html/dialog.html','getActiveItem','getDeskConfiguration','deskAccounts','saveProject','delete\x20Contacts','app.jscripty.projects.edit','RecordDialogController','tif','Agent\x20properly\x20saved!','ANSWERED','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/autoreply/dialog.html/dialog.html','apiKey','\x20selected','zh-HK','gotoProcess','sendDTMF','selectedInternalRouteApps','sortBy','\x27ko\x27','General','SYSTEM:DELETEsquareRecording','testtestOdbc','ms-navigation-folded','createdAt,updatedAt,id,name,strategy,timeout,description','apps.video.screenRecordings','The\x20chatProactiveAction\x20will\x20be\x20deleted.','SYSTEM:GETtrunk','apps.plugins.plugin_','downloadtranscribe','\x279600\x27','UserProfilepermissionsmanageController','This\x20Week','api/actions/:id/clone','\x20will\x20be\x20reset.','weeks','SYSTEM:GETsounds','item','mailAccountMailCannedAnswers','getPreview','MOTIONDIALER.CLONE_IVRCAMPAIGN','DASHBOARDS.DASHBOARD','Asia/Singapore','display','TOOLS.NOTIFICATIONS.ACTIONS_DELETED_SUCCESS_TITLE','interval\x20#','priorities','GlobalCustomFieldsController','api/dashboards/items/describe','offlineMessage\x20#','pullAllBy','gotoProjects','arraysidebar','arrayringinuse','apps.integrations.zohoAccounts','deleteSelectedFaxQueues','campaigntype','Description\x20deleted!','/customDashboards','Unknown','exportDate','onlineForm','/tools','rpcChatQueuesWaitingInteractions','Pacific/Norfolk','delete\x20Variables','\x22\x20style=\x22display:none\x22','$scope','api.item.save','clonedialog','selectedTags','/whatsappQueues','api.squareProject.update','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20scheduled\x20call?','ChatQueueteamaddController','Attachments','Polish\x20(Poland)','Atlantic/Bermuda','||User:=$eq[','IS\x20NOT\x20EMPTY','dashboardItem','api/integrations/salesforce/configurations/describe','Error','VOICE.RUNTRANSCRIBE_VOICERECORDING','true','api/voice/mails/:id/messages','MailAccountMailCannedAnswersController','deleteVtigerAccount','Report\x20properly\x20created','whatsappInteraction:save','disposition','api/whatsapp/accounts/:id/clone','ChatWebsiteOfflineMessagesController','offlinemessagesgoto','api/openchannel/accounts/:id/applications','selectedSugarcrmAccounts','sessionId\x20required','encodeURIComponent','selectedMetrics','\x27timeout\x27','ServicenowConfiguration\x20properly\x20created','createOrEditNetwork','app.dashboards','remotePlayerId','api/campaigns/:id/lists','EditInboundAppcustomDialogController','defaultEntry','VOICE.RUNSENTIMENT_VOICERECORDING','gotoInternalRoutes','columnWidth','app.voice','DASHBOARDS.MYCONTACTS','newOdbc','apps.chat.chatQueues','api/integrations/freshsales/fields/:id','SETTINGS.SETTINGS','http://127.0.0.1:','tags','uselessFields','userProfile','WhatsappQueue\x20updated!','api/sms/accounts/:id/interactions','isDefined','api/system/process/:pid/kill','TOOLS.SOUNDS','en-AU','intDeskConfiguration','functions','ANALYTICS.EXTRACTEDREPORTS','userProfileSection','api/userProfiles/:id/resources','msWidgetFront','app.dashboards.general.fax','/api/transfer?number=','AbandonedCallsVoiceRealtimeController','src/js/modules/main/apps/fax/views/faxQueues/edit/teamadd/teamadd.html/teamadd.html','TOOLS.CLONE_TRUNK','delete\x20ZendeskAccounts','provider','api/whatsapp/queues/:id/members','deleteSelectedInboundRoutes','api/mail/queues/:id','Module\x20not\x20included\x20in\x20the\x20license','\x27alternate\x27','squareProject@get','getHistories','selectAllSmsAccounts','uniqueIdentifier','countBy','Resource\x20part\x20\x22','Spanish\x20(Paraguay)','faxStatusTime','TemplatesController\x20as\x20vm','/queues','closeDialog','Website','src/js/modules/main/apps/chat/views/chatQueues/edit/view.html/view.html','','Greek\x20(Greece)','whatsappAccount@get','opus','deleteWidget','\x27limit\x27','apps.home','app.motiondialer.realtime','transfer','dispositions','ivrCampaignHopperFinals','api/triggers/:id/any_conditions','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','api/chat/websites/:id/offline','deleteSelectedMailAccounts','app.tools.tags','localHold','sounds','api/cm/contacts/:id/hopper_finals','app','MailCannedAnswer\x20properly\x20created','delete\x20userProfile','apps.voice.internalroutes','queueNotifyMethod','arrayoutput','+09:00','\x20will\x20be\x20restored.','AgentHomeScheduledCallsController','showTooltip','newTag','createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description','TOOLBAR.CHANGE_LANGUAGE_MESSAGE','500','TOOLS.NEW_SOUND','api/sms/interactions/describe','api/teams/:id/queues','inReplyTo','selectAllIvrCampaigns','FaxAccountsController\x20as\x20vm','phoneBarEnableSettings','selectedMailShowDetails','api/integrations/salesforce/accounts/:id/fields','.ms-nav-button','replyAll','lastAssignedTo','getByInteraction','America/Argentina/San_Luis','HH:mm','Email\x20Interaction','Fax\x20Queues','EditOpenchannelAccountApp','newSmtp','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/dialogflow/dialog.html/dialog.html','api/rpc/openchannel/queues','src/js/modules/main/apps/sms/views/smsQueues/smsQueues.html/smsQueues.html','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/interval/dialog.html/dialog.html','ChatWebsite','api.campaign.save','EditWhatsappAccountAppsystemDialogController','trunk_name','Outbound','newscreenRecording','The\x20sound\x20will\x20be\x20deleted.','INTEGRATIONS.NEW_VTIGERCONFIGURATION','selectAllChatQueues','local','delete\x20Projects','System','SYSTEM:analyticFieldReport','promise','api/teams/:id/users','TemplatesController','callbackQueue','selectedSmsAccounts','getIvrCampaignHopperBlacks','userId','deleteFreshdeskAccount','User\x20API\x20key\x20removed!','msFormWizardForm','Outgoing','addNewAllCondition','uploadState','CreateOrEditTagDialogController','FaxRealtimeController\x20as\x20vm','UserController\x20as\x20vm','newZohoAccount','hasResourcePermission','rundialog','addNewVoicemail','trunk@get','saveIvrCampaign','help','api/voice/chanspy/:id/clone','SalesforceAccounts','contentWithToolbar','UserMailDashboardGeneralController','CloudProvidersController\x20as\x20vm','actionOptions','children','createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','setNavigationScope','sms_text','Smtp\x20updated!','us-west-1','api/auth/local/user/:token','$setValidity','SYSTEM:GETTAGS','countDown','MARKETPLACE.UPLOAD_PLUGIN','onRemoveChatQueueChannel','convertDuration','saveServicenowAccount','responsive','px,0px)','CreateOrEditFaxQueueDialogController','src/js/modules/main/apps/settings/views/license/update/dialog.html/dialog.html','SYSTEM:QUEUES_ASSOCIATION','$eq','deleteReportField','Asia/Colombo','ANALYTICS.ANALYTICS','saveSound','staff','AgentHomeSmsController','InboundRouteActionsController','EditInboundAppintervalDialogController','dialerCall','deleteSelectedChanSpies','newCustomization','EditInternalAppvoicemailDialogController','deleteChatQueuesWaitingInteractions','src/js/modules/core/directives/ms-stepper/templates/horizontal/horizontal.html/horizontal.html','delete\x20whatsappCannedAnswers','customField','delete\x20project','\x271\x27','delete\x20Sounds','SMS.EDIT_SMSACCOUNT','userProfile@getResources','Ivy','refresh','createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','api/voice/transfers/reports/:id/clone','/api/settings/1/logo','Sequence','musiconholdMohSounds','has','src/js/modules/main/apps/motiondialer/views/queueCampaigns/queueCampaigns.html/queueCampaigns.html','api.chatProactiveAction.update','app.chat.chatWebsites.edit','+06:00','api.dashboard.delete','upperFirst','isFirstStep','saveCallback','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voiceRecordings?','comedia','arraycservice','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/agent/dialog.html/dialog.html','exportSelectedCannedAnswers','saveShortcuts','Jabra\x20library\x20correctly\x20initialized\x20and\x20device\x20correctly\x20installed','app.voice.voicemails.edit','api.userProfile.update','Dispositions','escape','America/Fort_Nelson','newOpenchannelQueue','api/integrations/desk/accounts/:id','onUserUpdate','/queue_params','SYSTEM:DELETEcmCustomField','api.voiceExtension.save','\x27AmazonAWS\x27','List','TOOLS.NEW_SCHEDULE','api/chat/internal/messages/users','CreateOrEditIntervalDialogController','src/js/modules/main/apps/dashboards/views/general/user/user.general.html/user.general.html','motion2.home.mail:','telephone','apps.integrations','acceptcall','VIDEO.VIDEO','European\x20Catalan\x20Female','src/js/modules/main/apps/settings/views/generals/generals.html/generals.html','ru-RU','forIn','deviceId','voiceQueue','grey-fg\x20icon-minus-circle','/api/auth/','External','Klingon','ar-IQ','-09:30','unhold\x20->\x20session','deleteSelectedProjects','newOutboundRoute','@from-voicemail','TOOLBAR.STAY_LOGGED','trimEnd','/zendeskAccounts','api.intDynamics365Configuration.delete','closeReportDialog','api/integrations/zendesk/configurations/:id/tags','selectedFreshsalesConfiguration','LIKE','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','America/Bahia','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/hangup/dialog.html/dialog.html','api/mail/reports/transfer/describe','lexregion','createOrEditChatWebsiteOfflineMessage','ChatWebsiteController','mail_queue:save','app.settings.customizations','requestSucceeded','addCall\x20->\x20target,\x20inbound,\x20fullname','selectedIndex','\x27es\x27','api.analyticReportField.delete','deleteTrigger','\x2714400\x27','app.forgot','Messages','\x27yahoo\x27','The\x20theme\x20\x22','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27penalty\x27','onInteractionClose','layoutStyles','SETTINGS.NEW_GENERAL','outboundDial','OutboundRoute\x20properly\x20deleted!','arrayheader_shape','redirectToAgent','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20tags?','ChatWebsite\x20properly\x20created','loggedIn','CHAT.EDIT_','Pause\x20properly\x20saved!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?','Congestion','TOOLBAR.KOREAN','absorbEvent','api/voice/mails/messages/:id/download','Polish','SYSTEM:GET_WHATSAPPACCOUNTS','selectedProjects','class','api/whatsapp/interactions/:id/tags','SYSTEM:DELETEanalyticMetric','tech','\x27gsm\x27','inboundroute','newDeskAccount','api/integrations/desk/configurations/:id/tags','trimStart','TelephoneController','MAIL.NEW_MAILSUBSTATUS','onRemoveWhatsappQueue','api/fax/queues/describe','Bulgarian','interval_id','DeskAccount\x20properly\x20deleted!','AgentHomeDashboardController','Email\x20Messages','America/Managua','FreshdeskAccountsController\x20as\x20vm','responseData','TriggerAnyId','CreateOrEditMailAccountDialogController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20faxQueues?','duplicateContact','Project','saveChatWebsite','HOUR\x20(','Astrid','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/item/dialog.html/dialog.html','api/campaigns/:id/hopper_histories','300','faxInteractions','Thai','user:save','api/whatsapp/applications/:id/clone','browserGroupId','UserWhatsappDashboardGeneralController\x20as\x20vm','api/mail/reports/transfer/:id','extractedReports','getMonthNumber','call','Restore\x20Contacts','Gwineth\x20(Welsh,\x20Female)','Weeks','voiceStatusTime','SYSTEM:GETintSalesforceAccount','deleteDisposition','CHAT.NEW_CHATWEBSITE','squareRecording@get','src/js/modules/main/apps/sms/views/smsAccounts/create/dialog.html/dialog.html','api.template.delete','whatsappStatusTime','icon-tablet','api/actions/describe','deleteSelectedSubjects','setFoldable','mail_queue_waiting_interaction:save','ha1','msNavToggle','saveSmsAccountApp','hue-2','HOUR','deleteSelectedSmsQueues','xAxes','ulaw','QueuesMailRealtimeController','TOOLBAR.NORWEGIAN','VOICE.NEW_VOICEPREFIX','chatInteraction','api/voice/queues/:id/lists','MotionDialerRealtimeController','Icelandic\x20(Iceland)','Project\x20properly\x20saved!','api/jscripty/sessions/reports/describe','outboundQueues','saveMailAccount','getMailSubstatuses','parser','...','api/chat/applications/describe','selectedChatWebsiteInteractions','\x27cm_companies\x27','The\x20cloudProvider\x20will\x20be\x20deleted.','icon-chart-line','Time','api.trunk.save','$[${XCALLY-MOTION-ANSWER}=0]?Answer','createdAt,updatedAt,id,name,description,dialPrefix','api/settings/:id/preferred','\x27peer\x27','onSaveWhatsappQueueChannel','api/integrations/describe','Are\x20you\x20sure\x20want\x20to\x20stop\x20the\x20plugin\x20attached\x20process?','Dashboards','removeBlackLists','TOOLS.NOTIFICATIONS.TRIGGER_DELETE_MESSAGE','canTransfer','icon-email','ZendeskAccounts','api/integrations/salesforce/fields/:id','ChatWebsiteActionsController','English\x20(United\x20Kingdom)','\x27paused\x27','swswedishfemale','Delete\x20ZendeskAccount','Delete\x20CannedAnswer','rpc@getOutbound','CampaignId','AgentsVoiceRealtimeController','Least\x20Recent','AgentGeneralInteractionController','error-500','src/js/modules/main/apps/tools/views/customDashboards/edit/clone/clone.html/clone.html','faxCapacity','deleteDescriptionConfirm','\x27inuse\x27','feb','FaxQueue\x20properly\x20created','changeLanguage','getMetricValue','whatsappAccountApps','APP.YES','Tamil\x20(India)','MailAccountsController','cmContact@getJscriptySessions','RequestLicenseDialogController','\x27chat_websites\x27','07:00-22:00,*,*,*','\x27SIP/{{user.name}}\x27','APP.SELECTED_USERS','gt-md','SYSTEM:GETcontexts','getTime','$lt','describeTable','Asia/Qyzylorda','Transfer\x20','addNewInboundRoute','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20plugins?','api.inteactionMessage.get','refer\x20->\x20session','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20salesforceAccounts?','getFullYear','openchannelStatusTime','addTeams','start','rpcMailQueues','outboundanswerRate','warn','table','\x27fax_interactions\x27','arrayrole','SYSTEM:USERPROFILE.ADDSECTIONS','api/analytics/custom_reports/:id/query','Lowest','msNavigationHorizontalItem','smsQueueReport','apps.marketplace','displayCannedAnswerInput','TOOLS.NOTIFICATIONS.CONDITION_DELETED_SUCCESS_TITLE','deleteMailAccountInteraction','Interaction\x20has\x20been\x20tagged!','TOOLS.NOTIFICATIONS.TRIGGER_SAVED_SUCCESS_TITLE','SMS.REALTIME','English\x20(New\x20Zealand)','intersection','$sce','America/Fortaleza','app.tools.trunks','addContacts','European\x20Turkish\x20Female','en-NZ','deleteMailCannedAnswer','SYSTEM:DELETEtemplate','MailAccountController','template_id','VIDEO.SCREENRECORDINGS','api.cloudProvider.delete','exportSelectedOpenchannelAccountOpenchannelCannedAnswers','Asia/Srednekolymsk','ReportController\x20as\x20vm','Tamil\x20(Malaysia)','THEMES','ms-stepper-step','#7d818c','api.campaign.clone','exportSelectedODBC','SYSTEM:GET_MAILACCOUNTS','ComposeFaxInteractionDialogController','mailApplication','squareOdbc','VoiceRecordingsController','getPlugins','DASHBOARDS.READ','app.dashboards.general.mail','Group\x20properly\x20saved!','onUpdateSmsInteraction','\x27zh-TW\x27','src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/teamadd/teamadd.html/teamadd.html','waiting','createdAt,updatedAt,id,name,CustomReportId,DefaultReportId,output,active,startAt,endAt,cron,subtractNumber,subtractUnit,sendMail,MailAccountId,email,cc,bcc,sendIfEmpty,description','unshift','memberReport','Accepted','getMinutes','Scots\x20Gaelic','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/voicemail/dialog.html/dialog.html','api/square/messages/:id/clone','onaddstream','UserProfilesController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?','zoho.com','joinTables','cmContact@getHopperFinals','apps.contactmanager.lists','myQueues','sectionColor','sipcalluniqueid','targetChanged','GET_VARIABLE','onclick','mailAccountApps','Plugin\x20installed!','America/Dawson','Whatsapp\x20Report\x20Transfer','apps.home.mycontacts','DASHBOARDS.LICENSE_EXPIRE_REMAINING_DAYS','newVoicemail','EditMailAccountAppqueueDialogController','timelineOptions','queueCampaigns','Portuguese\x20(Nrazilian)','vtigerAccounts','api.whatsappQueue.delete','companiesMap','GET_ODBC','api/fax/reports/queue/describe','America/Araguaina','app/core/directives/ms-phonebar/sounds/dialpad/','createdAt,updatedAt,id,appdata,type,exten,context,description','Africa/Abidjan','internalroute','api/openchannel/queues/:id/teams','onRemoveUserOpenchannelQueue','delete\x20deskAccount','selectedAgents','accentPalette','DASHBOARDS.SELECT_AGENT','deleteChatQueue','MailAccountsController\x20as\x20vm','The\x20item\x20will\x20be\x20deleted.','US\x20City/States','deselectSquareRecordings','isValidCondition','Not\x20defined','$digest','ProjectBuilderController','app.whatsapp.whatsappAccounts.edit','message','exportSelectedVoicemails','integrations/freshsales/configurations/:id/descriptions','app.voice.realtime','<%3B','src/js/modules/main/apps/tools/views/variables/create/dialog.html/dialog.html','SYSTEM:GET_VOICEMAILS','deleteSelectedODBC','InternalRoutes','unreadMessages','getFinals','DASHBOARDS.RESCHEDULE','delete\x20intervals','createOrEditZohoConfiguration','CreateOrEditServicenowConfigurationDialogController','addNewChatWebsite','createOrEditOpenchannelAccount','Caller_ID','MailAccountActionsController','api/cm/lists/:id/dispositions','migrations','selectedChatWebsiteApps','$setUntouched','SYSTEM:GETintZendeskAccount','api.chatWebsite.delete','api/voice/queues/:id/hoppers','app.settings.updates','api.analyticMetric.update','Chinese,\x20Mandarin\x20(Simplified,\x20Hong\x20Kong)','exportSelectedOutboundRoutes','voicePrefix\x20properly\x20deleted!','deleteFaxQueue','pieChart','twilio','editMailAccountApp','api.plugin.update','deleteOpenchannelAccountInteraction','data4','splice','deleteSelectedTelephones','saveFreshsalesAccount','faxQueuesTotal','ChatQueueController\x20as\x20vm','src/js/modules/main/apps/chat/views/chatWebsites/create/dialog.html/dialog.html','\x27cm_contacts\x27','Carmen','Date','CustomizationsController\x20as\x20vm','treeStructure','Agent\x20Report','\x27externip\x27','CANCEL','api/chat/websites/:id/logo','isEstablished','XCALLY-MOTION-PROGRESS=1','cmContact@getHoppers','identity','api.intDeskConfiguration.save','app.motiondialer.queueCampaigns.edit','xAnswerMode','api/integrations/vtiger/configurations/:id/clone','currentPath','OutboundRouteController','chatQueue:remove','America/Argentina/Rio_Gallegos','navigation','exportSelectedUserProfiles','exportSelectedTriggerActions','Asia/Krasnoyarsk','onUpdateWhatsappQueue','/cannedAnswers','Africa/Cairo','createVidaooSession','get_parent','deleteMailAccountMailCannedAnswer','FORGOTPASSWORD.LINNK_SENT_MESSAGE','blue-grey-fg','\x27mail_accounts\x27','startTime','intVtigerField','gotoMailQueues','ReportController','SYSTEM:GETANSWERS','api/integrations/zendesk/fields/:id/clone','sip_id','deleteSalesforceConfiguration','ScreenRecordingplayController','newCustomField','Australia/Melbourne','id,uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','src/js/modules/main/apps/voice/views/outboundroutes/outboundroutes.html/outboundroutes.html','src/js/modules/main/apps/analytics/views/reports/preview/dialog.html/dialog.html','ignoreMouseEvents','auth','api/whatsapp/interactions/describe','initDevice','ceil','MsPhonebarController','AgentHomeDashboardMultiChannelChatController','intServicenowField','delete\x20musiconhold','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/configurations/dialog.html/dialog.html','detailForm','Pacific/Chuuk','Teams\x20association\x20has\x20been\x20updated!','MailQueue\x20updated!','deleteQueueCampaign','deleteOpenchannelAccountOpenchannelCannedAnswer','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/noop/dialog.html/dialog.html','selectedUserProfiles','contact_import_error','onWithoutApply','api.intSugarcrmAccount.update','CHAT.EDIT_CHATWEBSITE','No\x20images','api/cm/hopper/:id','^msVerticalStepper','deleteSelectedIvrCampaignHopperBlacks','runReport','MailAccounts','DISPOSITION_DELETE_MESSAGE','SYSTEM:DELETEplugin','Asia/Manila','clickOutsideToClose','lime-A700-fg','license','analyticTreeReport','Agent\x20Only','getText','DASHBOARDS.ENABLED','src/js/modules/core/directives/ms-info-bar/ms-info-bar.html/ms-info-bar.html','getMetricName','ChatQueueId','exportSelectedProjects','exportSelectedSalesforceAccounts','removeAllListeners','\x27agent_fullname\x27','Chantal\x20(French,\x20Canadian,\x20Female)','push','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/goto/dialog.html/dialog.html','id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording','smsQueue','apps.fax.faxAccounts','squareReport','SYSTEM:GETVARIABLES','api.intVtigerAccount.delete','CompanyController\x20as\x20vm','VoiceRealtimeController\x20as\x20vm','saveHopper','api/integrations/desk/configurations/:id/descriptions','Delete\x20QueueCampaign','newServicenowConfiguration','createOrEditDeskAccount','VOICE.NEW_MOHSOUND','accept','api/rpc/voice/channels/:uniqueid/stopmixmonitor','path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)','Start\x20Date','chat_queue_waiting_interaction:remove','SYSTEM:MERGE_CONTACT','timeRangeTo','exportSelectedVoiceRecordings','Delete\x20ServicenowAccount','jv-ID','debug','ACCOUNT:SEND','importXML','firstDayMonth','\x27info\x27','ZohoAccount\x20properly\x20saved!','exportSelectedGlobalCustomFields','friend','localizationMap','The\x20voicemail\x20will\x20be\x20deleted.','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/close/dialog.html/dialog.html','set','user:agentconnect','collapsing','selectedTab','editChatWebsiteApp','contacts','src/js/modules/main/apps/callysquare/views/projects/edit/view.html/view.html','animateHeightClass','Delete\x20MohSound','icon-cloud-download','blue','previousStep','isSupported','newFreshdeskAccount','checkSectionResources','saveAgent','delete\x20screenRecording','hideLoadingIndicator','SYSTEM:DELETEinterval','faxAccounts','allDispositions','CONTACTS\x20NOT\x20AVAILABLE','Spanish\x20(Peru)','delete\x20MailSubstatuss','exportSelectedFreshsalesAccounts','#c2d4ef','delete\x20chatWebsite','\x27report_jscripty_questions\x27','app.fax.faxQueues','isIntegrationDisabled','order','/lists','src/js/modules/main/apps/tools/views/customDashboards/edit/view.html/view.html','getContacts','app.whatsapp.whatsappQueues','ivrCampaignHopperHistories','Celine\x20(French,\x20Female)','CALLYSQUARE.CALLYSQUARE','api/integrations/vtiger/fields/:id','Australia/Hobart','undefined','addNewWhatsappCannedAnswer','prefixes','newMusicOnHold','Your\x20password\x20properly\x20updated','enableUncompleteSave','msDatepickerFixConfig','whatsappCurrentCapacity','msInfoBar','outboundDropCallsDayTimeout','voiceMail@get','addNewTrunk','SYSTEM:DELETEintVtigerAccount','APP.RECALLME','getInfo','selectedIntervalIntervals','hours','Cannot\x20upload\x20the\x20sound','download','top-right','STAFF.PERMISSIONS_UNAUTHORIZED_CREATION_MESSAGE','dial','Tajik','api.analyticMetric.save','Asia/Kathmandu','$resolved','Mongolian','api/openchannel/accounts/:id/dispositions','rpc','QueueCallsMotionDialerRealtimeController\x20as\x20vm','@token','CONTACTMANAGER.CONTACTS','InboundRoutesController\x20as\x20vm','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27unknown\x27','EditWhatsappAccountApp','ui.router','selectedIvrCampaigns','/freshdeskAccounts','icon-checkbox-blank-circle-outline','exten','selectAllChatWebsites','src/js/modules/main/apps/staff/views/userProfiles/userProfiles.html/userProfiles.html','EditChatWebsiteApptagDialogController','selectAllScheduler','End\x20of\x20Conversation','Delete\x20Odbc','app.analytics.extractedReports','desc','days','reject','api.voiceQueue.clone','WhatsappQueue\x20properly\x20deleted!','src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/custom/dialog.html/dialog.html','eurgermanmale','showDialpad','QueueCampaignHopperFinalsController','deleteInternalRoute','createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','The\x20file\x20is\x20too\x20big.\x20The\x20max\x20allowed\x20size\x20is\x20','hangup','The\x20allCondition\x20will\x20be\x20deleted.','apps.mail.mailAccounts','/abandonedcalls','EditInboundApp','delete\x20messages','hasSectionPermissions','hasMicrophone','Asia\x20Pacific\x20(Singapore)','SYSTEM:GETusers','No\x20corresponding\x20process\x20found','src/js/modules/main/apps/callysquare/views/projects/edit/edit/edit.html/edit.html','export','MAIL.MAIL','DATE\x20(','OpenchannelQueueController','deleteAction','faxInteractionTags:save','delete\x20voiceRecording','api/voice/mails/:id/clone','ar-SA','addSquareProjects','id,name,dialPrefix','SYSTEM:DELETEopenchannelAccount','Nicole','reload','pt\x22>

','snakecase','cmList','Delete\x20UserProfile','mail.mailAccounts','Body','deleteSelectedQueueCampaignHopperFinals','api/fax/accounts/:id/messages','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/queue/dialog.html/dialog.html','Whatsapp\x20Interaction','MIN\x20(','isUndefined','api/sms/messages/:id','STAFF.EDIT_TEAM','DropRate','STAFF.NEW_USER','VoiceQueue','src/js/modules/main/apps/jscripty/views/projects/edit/view.html/view.html','getAgentLabel','ContactsController','msApi::resolveError','api/mail/reports/queue/:id/clone','Subject\x20has\x20been\x20deleted!','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/system/dialog.html/dialog.html','api.cmCompany.save','.draggable','Delete\x20Schedule','api/dashboards/items/:id','mailQueue@get','CreateOrEditAllConditionDialogController','SYSTEM:GET_PAUSES','api/voiceQueuesLog/:id/clone','src/js/modules/main/apps/dashboards/views/general/agent/home/voice/details/dialog.html/dialog.html','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','pm_id','deleteSelectedTemplates','whatsappQueueReport','align','The\x20screenRecording\x20will\x20be\x20deleted.','globalCustomFields','Estonian','FreshsalesAccountsController\x20as\x20vm','msNavTitle','saveSmtp','SYSTEM:GETopenchannelAccount','removeItems','UserWhatsappAccount','recording','api/sounds/:id/download','src/js/modules/main/apps/staff/views/teams/teams.html/teams.html','src/js/modules/main/apps/staff/views/telephones/telephones.html/telephones.html','whatsapp','The\x20field\x20will\x20be\x20deleted.','cell','EditChatWebsiteAppsystemDialogController','Pacific/Guam','$broadcast','inline','createdAt,updatedAt,id,save_name,converted_format,audio','The\x20dashboarditem\x20will\x20be\x20deleted.','openchannelInteractionTags:save','api.pause.save','layoutModes','getApi','onEnableAutomaticScreenRecordingSelection','mobileBarActive','faxQueue:save','TOOLS.PAUSES','calls','ap-northeast-1','whatsapp.whatsappAccounts',';font-size:','newFaxAccount','innerHeight','es-PR','English\x20(US)','ServicenowAccountConfigurationsController','run','SMS\x20Report\x20Transfer','SmsAccountagentaddController','api/integrations/vtiger/accounts/:id/fields','ngMaterialDateRangePicker','bodyEl','\x27wss\x27','src/js/modules/main/apps/mail/views/mailQueues/mailQueues.html/mailQueues.html','delete\x20telephone','hasBlackLists','America/Argentina/Jujuy','SYSTEM:UPDATElicense','app.staff.telephones.edit','vm.customField.type','deleteSelectedGlobalCustomFields','getVoiceQueuesPreview','duplicates','api.cloudProvider.update','smsCannedAnswer\x20#','Field','TelephonechangepasswordController','Asia/Beirut','mwFormBuilder','hasClass','api/whatsapp/messages/describe','Stun','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailSubtatuses?','intDeskAccount','microphoneMute','RECALLME','equals','src/js/modules/main/apps/voice/views/realtime/telephones/view.html/view.html','AbandonedCallsMotionDialerRealtimeController\x20as\x20vm','deselectOpenchannelAccounts','\x27report_jscripty_answers\x27','Europe/Malta','api/chat/websites/describe','api.voiceMusicOnHold.update','European\x20Italian\x20Male','api.intSalesforceConfiguration.delete','avgHoldTime','src/js/modules/main/apps/whatsapp/views/realtime/queues/view.html/view.html','\x27cdr\x27','api/voice/dials/reports/:id','api/openchannel/queues/:id/members','createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt','SYSTEM:GETwhatsappQueue','teamadddialog','AllCondition\x20properly\x20created','api/chat/groups/:id/unread','${EXTEN:','ServicenowAccount\x20properly\x20deleted!','FAX.FAXACCOUNTS','apps.voice.outboundroutes','voiceMusicOnHoldDownload','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperFinal?','enableSettings','onConnect','onFinish','getChannelByItem','flipped','+07:00','Schedule\x20properly\x20created','mailAccountInteractions','addNewMusicOnHold','America/Campo_Grande','reLayoutDebounce','api/mail/applications/:id/clone','ngAria','PLUGINS.PLUGINS','deleteOpenchannelQueuesWaitingInteractions','partial','AppZone','mailServerOut','holdHook\x20->\x20payload','DeskAccountsController\x20as\x20vm','getOpenContacts','America/Santo_Domingo','interactionid','Georgia','outboundroutes','api.chatWebsite.update','disabled','SmsCannedAnswer\x20properly\x20created','IS_GREATER_THAN','faxAccountInteractions','OutboundRoute\x20updated!','ChatProactiveAction\x20properly\x20deleted!','callerId','delete\x20node','hotdesk','api/chat/queues/:id/teams','app.fax.faxAccounts','ChineseTraditional','$mdThemingProvider','onSaveOutbound','formsIncomplete','id,name,parent','usersMap','/dashboards/general','api/users/:id/sms/interactions','addNewZohoConfiguration','mail-interaction','api.faxQueue.update','Realtime','chatAccounts','listFields','JSCRIPTY.EDIT_PROJECT','User\x20properly\x20saved!','\x27xlsx\x27','src/js/modules/main/apps/tools/views/intervals/create/dialog.html/dialog.html','getFaxAccountInteractions','newContext','newNetwork','delete\x20hopperBlack','chatMessage:save','deleteWhatsappAccount','saveSugarcrmAccount','composeOpenchannelInteraction','campaign','One\x20Time','app.sms.smsAccounts','SYSTEM:GETtrigger','callerID','Lucida\x20Sans\x20Unicode','deleteSelectedMetrics','api/openchannel/accounts/:id','plugin:remove','removed','toggleCollapsed','newchanSpy','setTags','develop','src/js/modules/main/apps/sms/views/smsAccounts/edit/view.html/view.html','Chinese\x20Male','ms-info-bar-active','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/noop/dialog.html/dialog.html','FreshsalesAccountController','material.components.expansionPanels','api/fax/messages/:id/download','ms-widget','cloneUserProfile','full-height','api/campaigns/:id/hoppers','saveOpenchannelAccountApp','America/Atikokan','Pacific/Enderbury','custom','ENDS_WITH','Accounts','INTEGRATIONS.NEW_','Wav','api/openchannel/queues/:id/users','editOpenchannelAccountApp','webrtc::transfer','#78a0dc','tagInteraction','deleteSelectedFreshsalesAccounts','Ukrainian\x20(Ukraine)','api.schedule.save','EditOpenchannelAccountAppautoreplyDialogController','getDynamics365Accounts','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatCannedAnswers?','SYSTEM:GET_SECTIONS_PERMISSIONS','SETTINGS.EDIT_CUSTOMIZATION','bar-container','AgentsVoiceRealtimeController\x20as\x20vm','api/integrations/freshdesk/accounts/describe','STAFF.','deleteTelephone','DASHBOARDS.ATTENTION','delete\x20scheduled\x20call','chatInteraction:save','api/cm/hopper_final/voice/campaign/moveContacts/:id','treeDefaultEvents','closed\x20===\x200','Message\x20has\x20been\x20rejected!','api.trigger.update','template@get','DASHBOARDS.CONTACTS','histories','\x27report_openchannel_transfer\x27','Linear','msTabScroll','api/chat/groups/:id/clone','CreateOrEditTemplateDialogController','app.staff.teams','exportSelectedWhatsappQueues','SquareRecordingsController\x20as\x20vm','selectedTemplateName','delete\x20FreshsalesAccounts','onRemoveMailQueueChannel','api.sound.delete','apps.callysquare.projects','createdAt,updatedAt,id,name,service,data2,data1','Owner','spywhatsappInteraction','selectAllAgents','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsQueues?','chain','header','getInboundRouteApps','app.tools.intervals.edit','chatOfflineMessage@get','CONTACTMANAGER.CONTACTMANAGER','setMinutes','ticks','src/js/modules/forgot/forgot.html/forgot.html','api/users/:id/logout','api.jscriptyProject.save','Squared','agentcompleteAt','openProject','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/queue/dialog.html/dialog.html','Latin','dialogflowv2','privateKey','vtigerAccount','chatCurrentCapacity','mailAccount','\x22\x20is\x20not\x20defined!','\x20not\x20found','app/main/apps/openchannel','app.tools.triggers','api.jira','Moldavian','onUserCalled','createOrEditscreenRecording','eurportuguesefemale','indexOf','English\x20(Australian)','Courier\x20New','api/networks/:id/clone','vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27','Antarctica/DumontDUrville','api/chat/reports/queue/:id','advancedSearch','setThemesList','saveMailAccountApp','src/js/modules/main/apps/contactmanager/views/globalCustomFields/create/dialog.html/dialog.html','api/cm/contacts/:id/hoppers','chatGroup','-createdAt','whatsappAccountInteractions','exportSelectedMailQueues','agentCapacity','tag@get','msFormWizard','api\x20preview','userForm','api/integrations/freshdesk/fields/:id','addNewCustomField','TOOLBAR.PORTUGUESE','composeWhatsappInteraction','api/sms/accounts/:id/applications','You\x20can\x27t\x20reply\x20or\x20send\x20an\x20email.\x20Please\x20contact\x20the\x20administrator!','EditOpenchannelAccountAppcloseDialogController','draggable','dropRate','Whatsapp\x20Account','newSquareRecording','params','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20ivrCampaigns?','XCALLY-MOTION-ANSWER=0','api/cm/contacts/:id/clone','IvrCampaignHoppersController','/api/chat/interactions/','Verdana','is-mobile','\x27opus\x27','Supported\x20extension:\x20','apps.sms.smsAccounts','Android','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/close/dialog.html/dialog.html','voiceMusicOnHold','Liv\x20(Norwegian,\x20Female)','src/js/modules/main/apps/voice/views/voiceRecordings/create/dialog.html/dialog.html','api/voice/calls/reports/:id','api.network.delete','clearDispositionSelection','api/square/details/reports/describe','icon-google-earth','VtigerAccountsController\x20as\x20vm','patchConference','angular-cron-jobs','SYSTEM:GETvoiceMusicOnHold','green-A700-bg','2400','app.chat.realtime.agents','addNewSmsCannedAnswer','Corsican','NoSuchNumber','toJson','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/listadd/listadd.html/listadd.html','WhatsappAccountsController\x20as\x20vm','api.dashboard.update','Arabic\x20(United\x20Arab\x20Emirates)','ckeditor','api/integrations/freshdesk/accounts/:id/fields','CustomDashboard\x20properly\x20cloned','hi-IN','MAIL.MAILQUEUES','wss://','firstLastDayMonth','sendUnpauseOnSubmit','src/js/modules/main/apps/tools/views/templates/templates.html/templates.html','OpenchannelQueues','createOrEditIvrCampaign','api/integrations/freshsales/configurations/:id/fields','_id','openchannelApplication','ringgroup','America/Sao_Paulo','api/integrations/dynamics365/accounts/:id/fields','moveIvrCampaignHopperFinal','user:agentcomplete','quickFilterManager','preferredLanguage','General\x20properly\x20deleted!','/assets/images/theme-options/content-only.jpg','Scheduled\x20call\x20deleted!','Yoruba','src/js/modules/core/directives/ms-phonebar/prefix/dialog.html/dialog.html','getTemplates','Telephone','MOTIONDIALER.NEW_IVRCAMPAIGN','src/js/modules/main/apps/chat/views/realtime/agents/view.html/view.html','MusicOnHoldsController\x20as\x20vm','NotFoundError','delete\x20extractedReport','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27ringing\x27','mailSubstatus','onRemoveFaxQueue','src/js/modules/main/apps/tools/views/sounds/upload/dialog.html/dialog.html','phoneBarEnableRecording','ringGroup','Miguel','Smtp\x20properly\x20created','XCALLY-MOTION-ANSWER=1','Attached\x20pm2\x20process\x20successfully\x20stopped','userMailQueue:remove','MsWidgetController','MsStepper','api.intDeskAccount.update','app.mail.realtime.accounts','America/Tijuana','deletePlugin','length','TOOLS.NOTIFICATIONS.ACTION_DELETE_TITLE','WebsiteAlias','createOrEditContact','CreateOrEditWhatsappAccountDialogController','api.chatWebsite.save','The\x20faxQueue\x20will\x20be\x20deleted.','api/mail/substatuses/:id','ScreenRecordingsController\x20as\x20vm','api/fax/accounts/updateaccountapplications','TOOLBAR.LATVIAN','screenRecording@get','JscriptyProjectController\x20as\x20vm','api/fax/interactions/:id/messages','SYSTEM:GEToutboundRoutes','app.navigation','\x27S\x27','selectedMusicOnHoldMohSounds','CHAT.EDIT_CHATQUEUE','api.mailQueue.save','DASHBOARDS.AUGUST','replyTemplate','unknown\x20device','\x2722\x27','Description','Azerbaijani','Unable\x20to\x20open\x20the\x20contact','exportSelectedDynamics365Accounts','saveFreshdeskAccount','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/create/dialog.html/dialog.html','browser','openchannelInteractions','saveVoicemail','transferHook\x20->\x20payload','-=400','The\x20list\x20is\x20empty','Europe/Lisbon','arraymonitor_format','api/rpc/voice/queues','MailMessageId','ServicenowAccountsController\x20as\x20vm','Justin','The\x20chatQueue\x20will\x20be\x20deleted.','Europe/Volgograd','UpdatesController\x20as\x20vm','deselectIntervals','*pause','FreshdeskConfiguration\x20properly\x20saved!','Would\x20you\x20like\x20to\x20update\x20your\x20system?','zoho.eu','error','ngclipboard','delete\x20whatsappCannedAnswer','EditMailAccountAppgotopDialogController','selectedQueueCampaignHoppers','getGroupBy','isWebRTCSupported','delete\x20Group','api/chat/interactions/:id/tags','project','setupSteps','DASHBOARDS.SELECT_SUBSTATUS','CONTACTMANAGER.COMPANIES','SYSTEM:GETCONFIGURATION','addPart','isSameOrigin','Pacific/Easter','api.cmCompany.update','getApiObject','api/jscripty/answers/reports/:id','ar-MA','SmsAccountId','deleteChatWebsiteApp','deleteVariable','variable@get','api/fax/messages/:id/clone','delete\x20chanSpy','SYSTEM:GETlists','TOOLS.EDIT_TAG','api.userProfile.clone','getSquareRecordings','api.voiceQueue.save','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd.html','api/rpc/agents/:id/notify','app.mail.mailSubtatuses','api.openchannelQueue.update','api/chat/interactions/:id/custom_update','ivrAnswerCallsDay','Belarusian','Arial','WhatsappAccountController','Malayalam','\x27thumb\x27','api.attachment.delete','getNotifications','INTEGRATIONS.EDIT_','Kurdish','addNewTelephone','congestion','addAction','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20mohSound?','The\x20voiceRecording\x20will\x20be\x20deleted.','toDate','api/chat/websites/:id/applications','queues','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','InboundRoute','verifysmtpverifysmtp','Allowing\x20disposition\x20for\x20call\x20%s','saveCustomDashboard','getVoiceChannels','Cristiano\x20(Portuguese,\x20Male)','X-Answer-After','newDashboardItem','FAX.EDIT_FAXQUEUE','onSaveUserSmsQueue','\x27infobip\x27','Set','chanSpies','resume','src/js/modules/main/apps/sms/views/realtime/agents/view.html/view.html','api.intFreshdeskConfiguration.update','union','SquareRecording\x20properly\x20created','selectSession','motion.language','app.integrations.zohoAccounts.edit','deleteSelectedIntervalIntervals','src/js/modules/main/apps/contactmanager/views/contacts/edit/view.html/view.html','English\x20(Australia)','ToolbarController\x20as\x20vm','src/js/modules/main/apps/staff/views/userProfiles/edit/view.html/view.html','chanSpy','apps.integrations.salesforceAccounts','TOOLS.NOTIFICATIONS.ACTIONS_DELETE_MESSAGE','api/voice/dials/reports/describe','company','agentreject','src/js/modules/core/directives/ms-material-color-picker/ms-material-color-picker.html/ms-material-color-picker.html','CreateOrEditVoicemailDialogController','jscriptySessions','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/tag/dialog.html/dialog.html','format','jpjapanesemale','msNavigationNode','Settings','notification:save','disconnect','api/fax/interactions/:id/clone','delete\x20VoiceRecordings','ka-GE','api/triggers/:id/all_conditions','api.voiceChanSpy.save','SYSTEM:DELETEdisposition','Contact','OmniWeb','api/attachments/:id/clone','zendeskConfiguration','ended','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeFax/dialog.html/dialog.html','api.chatQueue.update','mediaConstraints','api/whatsapp/queues/:id/teams','addNewFreshsalesConfiguration','editdialog','api/openchannel/interactions/:id/tags','DASHBOARDS.CALL_SAVED','iCab','chatGroup:remove','api.analyticreport.delete','sugarcrm','ContactId','src/js/modules/main/apps/dashboards/views/general/user/fax/user.general.fax.html/user.general.fax.html','createOrEditMusicOnHold','router','api/sms/queues/:id','Classic','api/rpc/mail/queues/:id/notify','addIntervals','voiceQueue@get','data','delete\x20FreshdeskAccounts','sr-RS','\x27always\x27','CloudProvider','api/integrations/zoho/accounts/:id/clone','available','h264','variable.name','app/errors/404','deselect_all','addApplications','The\x20general\x20will\x20be\x20deleted.','selectedProjectSessions','selectAllSmsQueues','api/voice/mohs/:id/sounds','Progressive','anySecondLevelDisposition','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20companies?','api/rpc/openchannel/queues/waitinginteractions','src/js/modules/main/apps/fax/views/faxQueues/edit/view.html/view.html','createOrEditZohoAccount','CustomDashboardsController','extend','onSaveSmsQueue','FreshdeskAccountController\x20as\x20vm','getMailQueuesWaitingInteractions','America/Indiana/Vevay','sqlUtil','\x27DESC\x27','api.intServicenowAccount.delete','Canadian\x20English\x20Female','selectAllGlobalCustomFields','height','smsInteraction','smsAccount@get','src/js/modules/main/apps/chat/views/chatQueues/chatQueues.html/chatQueues.html','api/whatsapp/interactions/:id/clone','/openchannelAccounts','userpic','selectedZendeskConfiguration','app.analytics.reports','600','selectedAiTools','monthName','nb-NO','Reset\x20List','api/chat/messages/describe','endDate','popup','selectedGlobalCustomFields','api.smsAccount.update','0.54','api/networks/describe','Unable\x20to\x20create\x20session!','settings','stateRegistry','id,name,role,context','saveTeams','APP.UNKNOWN','apiName','QueuesSmsRealtimeController\x20as\x20vm','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperBlack?','SYSTEM:GETdashboard','api/users/:id/fax_accounts','cardTemplateLoaded','iPod','dateRangeManager','/assets/images/theme-options/horizontal-nav.jpg','size','CONTACTMANAGER.COPY_CONTACT','rpcSmsQueues','IvrCampaign','treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20','createdAt,updatedAt,id,save_name,converted_format,name,audio,description','lastIn','isIndeterminate','api/integrations/zendesk/configurations/:id/descriptions','SYSTEM:DELETEvoiceRecording','America/Indiana/Knox','delete\x20mohSound','Outlook365','\x27ASC\x27','ms-navigation-item','00:00:00','Europe/Monaco','Preview','userFaxQueue:remove','api/plugins/webhook','api/teams/:id/clone','app.tools.variables','eurspanishmale','internalroutes','\x20attached\x20process\x20will\x20be\x20stoppped.','listadddialog','api.cmCustomField.save','analyticTreeReport@get','America/Yellowknife','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?','TOOLBAR.WEBRTC_MICROPHONE_NOT_AVAILABLE','request','api/rpc/agents/:id/capacity','VoiceRecording\x20updated!','vm.query.filter','UserSmsDashboardGeneralController','checkRange','SYSTEM:GET_SMSACCOUNTS','language','EditChatWebsiteAppamazonlexDialogController','AgentHomeAbandonedBullController','nospace','orange-bg','createOrEditMailAccount','Australia/Currie','msNav::expandMatchingToggles','ListController\x20as\x20vm','Compose','saveMusicOnHold','$destroy\x20event\x20fired','TOOLS.DISPOSITIONS','EditOpenchannelAccountAppagentDialogController','statedesc','selectedOutboundRouteApps','X-callback-url:\x20','Fax\x20Report\x20Queue','Failed\x20to\x20delete\x20the\x20attached\x20pm2\x20process','deselectTriggers','apps.voice.realtime','addNewFreshdeskConfiguration','api.intSalesforceAccount.update','sum','api.action.update','api/analytics/default_reports/:id/clone','reply','TOOLS.NEW_TAG','Subject','api.intDeskAccount.delete','mailAccount@get','api/integrations/dynamics365/configurations/:id','vm.globalCustomField.type','icon','FaxQueue\x20updated!','intFreshsalesField','$filter','getVtigerAccounts','ap-southeast-2','Pacific/Tarawa','selectedMailAccounts','teams','newSmsAccount','smsMessage','N/A','app.callysquare.projects.edit','shortTime','a..','edit','api/canned_answers/describe','/musiconholds','The\x20mailCannedAnswer\x20will\x20be\x20deleted.','whatsappQueues','userOpenchannelQueue:save','published','\x20is\x20not\x20valid','MAX\x20(','SYSTEM:GET_VARIABLES','SYSTEM:DELETEcmCompany','^msFormWizard','polling','ChanSpies','secondLevel','exportSelectedTriggers','globalCustomField','mwFormUtils','ngEmbed','0.3','app/main/apps/plugins','Dialer\x20Hopper\x20Logs','1st','api/cm/hopper_history/:id','Korean\x20(Korea)',',height=','CreateOrEditCustomizationDialogController','Delete\x20DeskConfiguration','Mads','0\x200\x20*\x20*\x20*','saveMetric','Vertical\x20Navigation','FreshsalesAccountController\x20as\x20vm','whatsappQueuesTotal','numbersto99','QueueCampaign\x20properly\x20created','api/notifications/:id/clone','both','saveFreshsalesConfiguration','apps.integrations.sugarcrmAccounts','Init\x20error','/pauses','Atlantic/Reykjavik','grey-A400-bg','api/openchannel/interactions/:id/clone','src/js/modules/quick-panel/quick-panel.html/quick-panel.html','sms.smsAccounts','msWidget','saveDialog','deleteSelectedDispositions','vm.queryFinal.filter','WHATSAPP.NEW_WHATSAPPCANNEDANSWER','yes','app.integrations.deskAccounts','America/Barbados','ENTER_BR','WhatsappQueue','saveAction','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/voicemail/dialog.html/dialog.html','app.marketplace.plugins.edit','exportSelectedSmsAccountInteractions','getWhatsappAccountLabel','The\x20faxAccount\x20will\x20be\x20deleted.','findLast','addConfiguration','isValidRange','STARTS_WITH','append','customDashboard','falsepriority','CustomDashboard\x20properly\x20saved!','zohoConfiguration','isInConference','clearLockedItems','fax','outboundroute','downloadfile2','arrayrecordingFormat','analytics','MOTLICENSE','currentUser','COUNT\x20(','auto','Dynamics365AccountConfigurationsController','exportSelectedVtigerAccounts','motion2.home.recordings:','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20intervals?','Triggers','src/js/modules/core/directives/ms-timezone/ms-timezone.html/ms-timezone.html','runsentimentruntranscribesentiment','Type\x20the\x20file\x20name.','MailSubstatus','','FreshdeskConfiguration\x20properly\x20deleted!','api/voice/recordings/:id/downloads','FaxAccountId','APP.ALL_AGENTS','addNewContact','Message\x20properly\x20accepted!','OpenchannelAccount','api/voice/prefixes/describe','intZendeskAccount','$translatePartialLoader','api/whatsapp/reports/queue/:id/clone','converted_format','outboundDropRate','*|\x0a','America/Regina','hopperHistory','Pacific/Noumea','deleteMailSubstatus','delete\x20customFields','downloadfile','Campaigns','ngResource','wasUserInPause','api/integrations/freshsales/configurations/:id/subjects','className','CreateOrEditMohSoundDialogController','Email\x20Report\x20Transfer','saveItem','firstName,lastName,phone,mobile','Smtp','List\x20','SugarcrmAccount\x20properly\x20saved!','api/cm/lists/:id','unlicensed','SYSTEM:GETmusiconholds','selectedLanguage','api/chat/websites/:id','Cancel','intZohoAccount','deleteSelectedFaxAccountApps','questions','Member\x20Report','app.voice.realtime.queues','COUNT\x20(DISTINCT\x20','selectedSalesforceAccounts','deletevoicePrefix','analyticMetric','UsersController\x20as\x20vm','Fields\x20has\x20been\x20copied!','html','src/js/modules/main/apps/fax/views/faxQueues/create/dialog.html/dialog.html','Last\x20Month','DASHBOARDS.WHATSAPP','isMyAccount','/license','$viewContentAnimationEnded','getChatQueuesWaitingInteractions','group','agent.name','SugarcrmAccountsController\x20as\x20vm','intSalesforceAccount','deleteSelectedVoicemailMessages','GeneralsController','api/cdr/:id/clone','delete\x20dynamics365Configuration','motion2.home.fax:','headers','EditSmsAccountAppintervalDialogController','map','fileSuccess','replaceTrack','globalStatusFilter','onSaveMailInteraction','callbackurl:\x22','rpcWhatsappQueues','deleteMailQueuesWaitingInteractions','getColorByItem','src/js/modules/main/apps/analytics/views/reports/run/web/dialog.html/dialog.html','Delete\x20MailCannedAnswer','closedAt','field,alias,function,format,groupBy,orderBy,custom,MetricId','deleteWhatsappQueuesWaitingInteractions','endcall','\x27e\x27','MsNavigationController\x20as\x20vm','Options','webpackChunkmotion_client','hue-3','notification','\x27rrmemory\x27','name,id','Romanian\x20(Romania)','hangupHook\x20->\x20sessionToHangup','ChatInternalController','CHAT.NEW_CHATQUEUE','exportSelectedContexts','SugarcrmAccountController\x20as\x20vm','api/triggers/:id/actions','mailInteraction','app.help','reduce','app.whatsapp','Spanish\x20(Uruguay)','The\x20contact\x20is\x20in\x20the\x20hopper','api/integrations/zoho/configurations/:id/fields','alias','src/js/modules/main/apps/voice/views/musiconholds/musiconholds.html/musiconholds.html','\x27report_fax_queue\x27','floor','Session\x20save\x20error','selectedFreshdeskConfiguration','voice_outbound_channel:remove','Image\x20is\x20loaded','America/Resolute','token','ms-nav-folded','getSounds','getChatWebsiteOfflineMessages','delete\x20sessions','deleteSelectedTeams','api/users/:id/screen_recordings','delete\x20SmsQueues','IntervalsController','ZohoConfiguration\x20deleted!','api.cmCustomField.update','Technology/Resource','chat-interaction','Giorgio\x20(Italian,\x20Male)','New_Tab','api/integrations/reports/:id/clone','ms-navigation-folded-open','SmsQueueId','deleteIvrCampaignHopper','Basic','model','CONTACTMANAGER.EDIT_CUSTOMFIELD','desk','daysOfMonth','xml','src/js/modules/main/apps/callysquare/views/squareRecordings/create/dialog.html/dialog.html','api/analytics/custom_reports/:id/run','QueueCampaignteamaddController','api/attachments/:id','api.voiceChanSpy.update','queueMethod','Agentchange_avatarController','getDescriptions','Mail\x20Account\x20not\x20deleted!','MailCannedAnswer\x20deleted!','\x27wrapup\x27','api/jscripty/projects/:id/answers','CONTACTMANAGER.EDIT_CONTACT','selectAllScreenRecordings','addNote','api/dashboards/items/:id/clone','textarea','$mdMedia','api/openchannel/accounts/:id/notify','Pacific/Gambier','Partially\x20Enabled','api.intVtigerAccount.update','intSalesforceConfiguration','voiceMail','zohoAccount','SquareProjectId','csv','animate','confirmed','ms-theme-options','\x27newTab\x27','selectedSmsQueues','getSmsAccountInteractions','SYSTEM:UPDATECMHOPPERFINAL','queue','openInteraction','Delete\x20ZendeskConfiguration','\x20has\x20been\x20','EditFaxAccountAppintervalDialogController','newChatWebsite','delete\x20interaction','smsQueues','deleteSelectedIntervals','addEventListener','mon','databases','goto','getVoiceQueuesChannels','MailRealtimeController','host','selectedSmsAccountInteractions','QueueCampaignController','Nicole\x20(English,\x20Austrialian,\x20Female)','getSmsAccountLabel','createTag','Report\x20saved!','src/js/modules/main/apps/integrations/views/servicenowAccounts/create/dialog.html/dialog.html','selectAllDeskAccounts','Plugin\x20uninstalled!','agi','predictiveIntervalTotalCalls','apps.home.openchannel','Subject','escapeToClose','src/js/modules/main/apps/motiondialer/views/realtime/queues/predictive/dialog.html/dialog.html','SmsInteractionId','delete\x20mailQueue','Malayalam\x20(India)','clearDate','CreateOrEditOpenchannelCannedAnswerDialogController','googleSsoEnabled','$inject','api/cm/contacts/upload/:id','home.openchannel','/assets/images/theme-options/vertical-nav.jpg','src/js/modules/main/apps/analytics/views/extractedReports/create/dialog.html/dialog.html','FreshsalesConfiguration\x20properly\x20created','IS_BETWEEN','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/amazonlex/dialog.html/dialog.html','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27inuse\x27','addMembers','Disabled','src/js/modules/main/apps/integrations/views/zendeskAccounts/create/dialog.html/dialog.html','su-ID','dateStart','ServicenowAccountController\x20as\x20vm','lastOut','msApi::requestStart','Joanna','UserChatDashboardGeneralController','Interaction\x20properly\x20closed!','SYSTEM:GETwhatsappAccounts','-04:00','deleteSelectedFields','Application_Name','valueReplacer','queueCampaignHopperHistories','icon-script','createOrEditWhatsappAccountWhatsappCannedAnswer','trigger','GoSub','getPieChart','Contact\x20ID\x20','opera','currentReport','Camino','api/chat/reports/queue/:id/clone','\x27GP\x27','ChatCannedAnswer\x20properly\x20deleted!','api/openchannel/applications/describe','TagsController\x20as\x20vm','binding','src/js/modules/main/apps/voice/views/musiconholds/create/dialog.html/dialog.html','credential','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hoppers/dialog.html/dialog.html','Tag','ALWAYS','newSalesforceAccount','src/js/modules/main/apps/mail/views/mailQueues/edit/view.html/view.html','selectedListCustomFields','monthTo','addNewMailCannedAnswer','deletePause','selectedSugarcrmConfiguration','gdpr','Asia/Novokuznetsk','\x27nonat\x27','online','selectedIvrCampaignHoppers','\x27fewestcalls\x27','Delete\x20OpenchannelQueue','selectedQueueCampaignHopperBlacks','','deleteSelectedSugarcrmAccounts','createOrEditSmsAccount','mailQueue','id,type,calleridnum,calleridname,queue,queuecallerabandonAt,queuecallerexitAt,queuecallerexitreason,assigned,lastAssignedTo,updatedAt,disposition,secondDisposition,thirdDisposition','addNewSquareRecording','Delete\x20Plugin','SYSTEM:DELETEreportsByParents','api/automations/:id','-09:00','app.voice.internalroutes','\x27/var/opt/motion2/server/files/sounds/converted/{{sound.save_name}}\x27','api.openchannelMessage.accept','deleteTag','app.mail.realtime','jscriptyProjectSummary_','Serbian\x20(Serbia)','msNav::collapse','newProject','ContactManager','^mdSidenav','toggleChat','keys','Ruben','Korean','ZohoAccountsController\x20as\x20vm','applyTo','deleteFaxAccountApp','audiooutput','openchannelAccountOpenchannelCannedAnswers','TIMEOUT','onSaveQueue','getItem','customizations','prompt','api.cannedAnswer.delete','api/integrations/freshdesk/configurations/:id','maxDateRange','SYSTEM:GET_LISTS','api/users/:id/agents','outerHeight','onRemoveUserSmsQueue','Playback','messagesAlignment','api/fax/accounts/:id','Korean\x20Male','app.sms.smsQueues','newMailAccount','Resource\x20\x22','jscriptyProject@get','eurdutchfemale','Spanish\x20(Argentina)','globalUserLists','FORGOTPASSWORD.PASSWORD_RESET_ERROR','newFreshdeskConfiguration','schedule','createOrEditCloudProvider','globalDispositions','vm_ac.chatWebsite.remote','dualMultiselectOptions','ngFlow','app/main/apps/mail','api.schedule.delete','selectedScheduler','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27invalid\x27','APP.ALL_TEAMS','Pacific/Kiritimati','user_has_whatsapp_interactions:save','SYSTEM:PAUSEUSER','9600','icon-phone','volume','integrations/salesforce/configurations/:id/descriptions','currentStep','mailbox','api/users/:id/chat_websites','deleteSelectedDescriptions','src','nodownload','selectedZohoAccounts','selectedPalette','exportSelectedOpenchannelAccounts','TOOLBAR.WEBRTC_SPEAKER_NOT_AVAILABLE','Interval','exportSelectedUsers','unregistered','system','faxInteraction:save','ZohoAccount\x20properly\x20created','api.intSugarcrmConfiguration.save','MxGraphOpenProjectController','Openchannel','HANGUPCAUSE_41','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/interval/dialog.html/dialog.html','createOrEditSalesforceConfiguration','src/js/modules/main/apps/contactmanager/views/lists/lists.html/lists.html','SYSTEM:DELETEcannedAnswer','Company','getFirstAvailableContact','src/js/modules/main/apps/voice/views/inboundroutes/inboundroutes.html/inboundroutes.html','Delete\x20InternalRoute','rpcMailQueuesWaitingInteractions','$element','main','IvrCampaignHopperStatisticsController','CreateOrEditTelephoneDialogController','ChatInteractionId','Indonesian\x20(Indonesia)','CreateOrEditSmsCannedAnswerDialogController','api/mail/accounts/:id/dispositions','onResultClick','Tag\x20properly\x20created!','api/sms/messages/:id/accept','stateParams','xmd-contactid','icon-text-to-speech','api/integrations/salesforce/configurations/:id/fields','apps.home.mail','api/mail/messages/:id/reject','AgentReject','translate','MailAccountDispositionsController','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/agentadd/agentadd.html/agentadd.html','\x27IN\x27','getQueues','MAX','Delete\x20','The\x20cannedAnswer\x20will\x20be\x20deleted.','SYSTEM:COPYREPORT','addNewDashboardItem','Invalid\x20company\x20name.','permissions','whatsappPause','app.integrations.zohoAccounts','getVoicemails','DASHBOARDS.TUE','\x272400\x27','WhatsappAccountActionsController','transferLastMessage','propertiesList','api/users/:id/mail_accounts','\x2741\x27','category','src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar-2.html/vertical-navigation-fullwidth-toolbar-2.html','newCustomDashboard','NetworksController','HMAC','QueueParamsMotionDialerRealtimeController\x20as\x20vm','queryResult','remotePlayer','selectAllOpenchannelQueues','','selectedVoicePrefixes','SYSTEM:GETplugin','deleteContact','\x27pl\x27','QueuesMotionDialerRealtimeController\x20as\x20vm','Contact\x20properly\x20deleted!','api/sms/messages/describe','selectedItems','squareReportDetail','src/js/modules/main/apps/analytics/views/reports/create/dialog.html/dialog.html','Atlantic/Cape_Verde','\x27fax_queues\x27','$evalAsync','src/js/modules/main/apps/chat/views/chatQueues/edit/agentadd/agentadd.html/agentadd.html','attributes','agentForm','toggleOptionsSidenav','Pacific/Galapagos','This\x20Year','setOrientation','user_has_fax_interactions:remove','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelAccounts?','deselectCannedAnswers','showWhatsappInteraction','Switch','Hacker','toggleFold','api/attachments/describe','createdAt,','Chat\x20Queues','api/jscripty/projects/:id','api/mail/accounts/:id/out_servers','VtigerAccount\x20properly\x20saved!','msHorizontalStepper','src/js/modules/main/apps/motiondialer/views/realtime/realtime.html/realtime.html','gotoTelephones','DASHBOARDS.DRAFT_SAVE_WARNING_MESSAGE','MailSubstatus\x20properly\x20saved!','outboundNoAnswerCallsDay','\x27power\x27','salesforceAccounts','exportSelectedOpenchannelQueues','palettes','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interval?','deleteSelectedScheduler','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/clone/clone.html/clone.html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailCannedAnswers?','onRemoveMailQueue','mailStatusTime','Sound\x20properly\x20deleted!','api/integrations/desk/accounts/:id/clone','ToId','English\x20(South\x20Africa)','chatProactiveAction','List\x20properly\x20created!','removeApiKey','GROUP\x20BY\x20','element','America/Iqaluit','api/cm/hopper/describe','app.plugins.plugin','\x27cm_lists\x27','currentSidebarTab','FreshsalesAccount\x20properly\x20deleted!','Hong\x20Kong\x20Cantonese\x20Female','onOperatorChange','vm.options.isOpen','getSugarcrmAccounts','helperClasses','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/create/dialog.html/dialog.html','msMasonryController','src/js/modules/errors/500/error-500.html/error-500.html','\x20and\x20its\x20subnode\x20will\x20be\x20deleted.','scriptPath','wav49','loose','toggle','paginatedContacts','project.name','enqueue','delete\x20Teams','languages','isNumber','Arabic\x20(Qatar)','CALLYSQUARE.EDIT_SQUARERECORDING','_interactions:remove','saveCustomField','getScheduler','selectedIvrCampaignHopperHistories','disableCustomScrollbars','/api/jira','app/core/directives/ms-widget-engine/ms-widget-engine-','UserVoiceDashboardDialerController','faxApplication','ivrCampaigns','tables','\x20has\x20been\x20deleted!','src/js/modules/main/apps/dashboards/views/general/agent/contact/selection/dialog.html/dialog.html','voiceContext','showNotification','pm2@get','ja-JP','pause@get','CreateOrEditTrunkDialogController','TOOLS.NEW_VARIABLE','\x27custom\x27','onAutocreateSelection','isCustomField','Antarctica/Davis','tr-TR','SYSTEM:GET_FAXACCOUNTS','$setDirty','\x20has\x20been\x20uninstalled!','jscriptyProject','jabraClicked','$stateParams','api/whatsapp/reports/queue/describe','getZendeskConfiguration','exportSelectedQueueCampaigns','id,body','INTEGRATIONS.FRESHDESKACCOUNTS','downloadTranscribe','createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,rating,audio,transcribestatus,UserId','\x27report_chat_queue\x27','auenglishfemale','DASHBOARDS.MARCH','analyticCustomReport@get','exportSelectedTemplates','saveWhatsappQueue','delete\x20SugarcrmAccounts','newMohSound','FooterController','ChatWebsiteController\x20as\x20vm','motionPalettes','selectedInboundRoutes','\x27none\x27','autoClose','vm.agent.showWebBar\x20==\x201','createdAt,updatedAt,id,name,html,description','JSCRIPTY.NEW_PROJECT','wide','useLoader','api.campaign.update','deleteSelectedFaxAccountInteractions','selectedWhatsappAccountInteractions','The\x20ivrCampaign\x20will\x20be\x20deleted.','CreateOrEditGlobalCustomFieldDialogController','salesforceAccount','Explorer','windowWidth','$lte','QueueParamsVoiceRealtimeController','contact:import:','smsMessage:save','src/js/modules/main/apps/openchannel/views/realtime/queues/view.html/view.html','md.data.table','apps.fax.faxQueues','/plugins','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20freshdeskAccounts?','$window','sendReport','QueueId','deleteNetwork','accent','+04:00','OpenchannelQueuesController','app.whatsapp.whatsappAccounts','google_cloud_tts_text_type','deleteMailAccountApp','SYSTEM:GETagents','head','icon-cart','+00:00','YES','openchannelInteractionDownload','Australia/Brisbane','api/whatsapp/messages/:id/accept','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','INTEGRATIONS.NEW_VTIGERACCOUNT','saveAllCondition','\x27adminOnly\x27','MusicOnHoldController\x20as\x20vm','Variables','smsInteractions','usspanishmale','Delete\x20ZohoAccount','app.motiondialer.ivrCampaigns.edit','treeCustomInstance','UNKNOWN','\x27bottom_right\x27','OutboundRoute','voiceQueue:save','phoneBarAutoAnswer','apr','SYSTEM:DELETEscreenRecording','Delete\x20FreshsalesAccount','/settings','app.voice.voiceRecordings','addNewCustomDashboard','api.chatQueue.save','api/integrations/zendesk/fields/:id','exportSelectedQueueCampaignHopperHistories','SSML','deep-orange','faxStatus','dynamics365Account','changeSidebarTab','opts','apps.mail','AgentsFaxRealtimeController\x20as\x20vm','limitCalls','deleteSelectedCustomDashboards','English\x20(Great\x20Britain)','userStatusOptions',':id','cloneTrunk','ckEditorInstance','title','xm-mail-content-','Arabic\x20(Jordan)','msNavigation::collapse','nodeType','motion.selectedTheme','CreateOrEditWhatsappQueueDialogController','faxAccount@get','hiddenCC','Project\x20properly\x20deleted!','Linux','list_id','Hausa','api/integrations/servicenow/accounts/:id/clone','delete\x20zohoConfiguration','General\x20properly\x20created','createOrEditVtigerConfiguration','\x20has\x20been\x20updated!','SYSTEM:DELETEmailSubstatus','IS_NOT_AMONG','user_has_chat_interactions:remove','getMap','ABANDONED','TCL:\x20\x20path','compact','-03:30','America/Panama','.html','Asia/Taipei','addNewTemplate','gotoFaxQueues','Message\x20properly\x20sent!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?','Report\x20updated!','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/queue/dialog.html/dialog.html','mapAgentsId','substatus','gotop','UserProfilePermissionsController','UserProfileController','FaxInteractionId','Custom','DASHBOARDS.NOVEMBER','Salesforce','userMailQueue:save','api/openchannel/messages/describe','delete\x20subject','Chantal','chatMessage:update','isObject','Whatsapp\x20Messages','exportSelectedChanSpies','apps.whatsapp','updatedAt','api/cloudProviders/:id','ms-navigation','flipWidget','CreateOrEditWhatsappCannedAnswerDialogController','api.intDynamics365Account.update','desktopNotification','Montenegrin','Maxim','monthFrom','Turkish','Unable\x20to\x20convert\x20answer','$between','Marlene\x20(German,\x20Female)','white','blurCollapse','You\x20can\x27t\x20remove\x20yourself','Whatsapp\x20Queues','Pacific/Kwajalein','api.trigger.save','respectItemOrder','startingAllowedItems','The\x20freshdeskAccount\x20will\x20be\x20deleted.','FaxQueueteamaddController','Fax\x20Interaction','w:\x20Enable\x20whisper\x20mode,\x20so\x20the\x20spying\x20channel\x20can\x20talk\x20to\x20the\x20spied-on\x20channel.','../../../../../../../assets/images/avatars/customer.png','\x27pai\x27','asterisk','VOICE.EDIT_','EditorUi','exportSelectedSugarcrmAccounts','whatsappInteraction','SYSTEM:DELETE.customDashboard','Arguments','Indonesian','ChatQueuesController','msDialogRecording','app.voice.outboundroutes.edit','jira','Dora','deleteSelectedMailQueues','apps.tools.tags','application','musiconhold','delete\x20user','SYSTEM:GET_LIST_CUSTOM_FIELDS','selectedDeskAccounts','app.staff.users.edit','MODULE_NOT_FOUND','callStatuses','label','selectedCompany','Wide','customTree','selectedQueueCampaignHopperFinals','800','api.intZendeskConfiguration.save','SYSTEM:GET_MODULE_PERMISSIONS','+12:00','GotoIfTime','width','predictiveIntervalDroppedCallsCallersExit','Macro','CreateOrEditZendeskAccountDialogController','ProjectsController','SalesforceAccountsController','Indian/Mauritius','Classic+','Delete\x20FaxQueue','DASHBOARDS.THIS_MONTH','Korean\x20(South\x20Korea)','SYSTEM:GETvoiceExtension','Lithuanian','outboundRoutes','PREVIEW','/smtps','getFaxQueues','TOOLS.EDIT_INTERVAL','\x27en-CA\x27','src/js/modules/core/directives/ms-widget-engine/ms-widget-engine.html/ms-widget-engine.html','paused','EditChatWebsiteAppagentDialogController','api.setting.save','apiAccountRoute','webkitNotification','api.intZohoAccount.update','$stateProvider','multiselect','ResetPasswordController','salesforce','chanSpy\x20properly\x20deleted!','schedule@get','safari','delete\x20variable','SYSTEM:UPDATECONFIGURATIONFIELD','/mailAccounts','Karl\x20(Icelandic,\x20Male)','api/sms/accounts/:id/clone','onSaveCampaign','msClickToCall','deselectTeams','\x27sms_messages\x27','CannedAnswer\x20properly\x20deleted!','smsCannedAnswer','api.screenRecording.delete','AgentsWhatsappRealtimeController','sms_account_id','allowEdit','lastDayMonth','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/dialogflow/dialog.html/dialog.html','CALLYSQUARE.NEW_PROJECT','msNavigationHorizontalNode','levels','Maori','Format\x20Error','selectedMailAccountMailCannedAnswers','app.jscripty','Kendra\x20(English,\x20US,\x20Female)','catch','SalesforceAccount\x20properly\x20tested','app/main/apps/integrations','msApi::resolveSuccess','callNumber','module','phoneBarEnableAutomaticScreenRecording','$timeout','intZohoAccount@get','api/rpc/trunks','am-ET','api/fax/messages/:id','Freshsales','firstLevel','/schedules','src/js/modules/main/apps/voice/views/realtime/queues/view.html/view.html','Network\x20properly\x20created','Pacific/Nauru','api.cmList.delete','UserWhatsappDashboardGeneralController','uploadCsv','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/custom/dialog.html/dialog.html','CSV','api/voice/recordings/:id/clone','api.whatsappAccount.delete','TOOLBAR.CHANGE_LANGUAGE_TITLE','app.marketplace','TOOLBAR.WEBRTC_LICENSE_NOT_ENABELD','SYSTEM:GET_REPORTS','api/square/projects/:id/users','outbounddial','app.marketplace.plugins','api.voiceMusicOnHold.delete','api.whatsappQueue.update','savedAsDraft','api.condition.update','dateOfBirth','getScheduledCalls','CONTACT\x20NOT\x20AVAILABLE','MailAccount\x20properly\x20created','APP.DELETE','
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','createOrEditOutboundRoute','MailSubstatuses','onRemoveChatQueue','api/rpc/voice/queues/preview/:id','firstStep','apps.chat.chatWebsites','\x2717\x27','NOT\x20LIKE','createOrEditProject','Javanese','squareProject','api/cm/custom_fields/describe','src/js/modules/login/login.html/login.html','newChatProactiveAction','id,name,internal,fullname','GET_SOUND','50\x20100\x20200\x20A100','icon-format-text','CreateOrEditServicenowAccountDialogController','/globalCustomFields','columnName','savename','isApp','Process\x20updated!','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/goto/dialog.html/dialog.html','VoiceQueues','Type','Networks','number','Attachment\x20is\x20mandatory','statusText','fromKey','updateView','MAIL.NEW_MAILACCOUNT','trustAsResourceUrl','EditFaxAccountAppgotopDialogController','SYSTEM:DELETEsound','Indian/Cocos','Successful\x20call','us-east-1','ShowOfflineMessageOfflineMessageDialogController','/assets/images/theme-options/vertical-nav-with-full-toolbar.jpg','iPhone','arraytable','QUICKPANEL.NEW_CHATGROUP','saveSection','key','+02:00','delete\x20Voicemails','CreateOrEditZendeskConfigurationDialogController','app.contactmanager.companies','$mdDialog','selectAllVoiceQueues','api.mail.account','INTEGRATIONS.SALESFORCEACCOUNTS','Cross\x20Join','rgba(','Invalid\x20number\x20of\x20arguments\x20supplied\x20in\x20the\x20color\x20array:\x20','SYSTEM:GETuser','Agents','api.intZohoAccount.save','/companies','src/js/modules/main/apps/integrations/views/vtigerAccounts/vtigerAccounts.html/vtigerAccounts.html','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/resetlist/resetlist.html/resetlist.html','arraytrustrpid','EditFaxAccountAppgotoifDialogController','contrast2','|{color:red}','year','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20zohoConfiguration?','arraycallcounter','ariaLabel','Description\x20has\x20been\x20deleted!','api.analyticMetric.delete','Edge','onIcecandidate\x20->\x20session,\x20data','MAIL.EDIT_MAILQUEUE','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27unavailable\x27','*,*,*,*','values','app.integrations.sugarcrmAccounts','lastPauseAt','ZendeskAccount','Indian/Mahe','Turkmen','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20deskConfiguration?','openDialog','Delete\x20Company','DASHBOARDS.SELECT_ACCOUNT','red-300-fg\x20icon-phone-hangup','\x27twilio\x27','Odbc\x20properly\x20saved!','Africa/El_Aaiun','app.header','top','channel','Fields\x20has\x20been\x20saved!','api/integrations/servicenow/fields/describe','$rootScope','microphoneId','arraydialPredictiveOptimization','selectAllMailQueues','get_path','CreateOrEditReportDialogController','gotoOutboundRoutes','api_key','CreateOrEditInboundRouteDialogController','light-blue','customFieldsForm','runtranscriberuntranscribesentiment','clearFilter','App\x20deleted!','exportSelectedListCustomFields','api/fax/reports/transfer/:id/clone','deleteServicenowAccount','api.intFreshsalesAccount.update','-name','ERROR\x20OPEN\x20CONTACT','#tab-container','api.intSugarcrmConfiguration.delete','src/js/modules/main/apps/voice/views/musiconholds/edit/view.html/view.html','createOrEditOdbc','previousContact','intFreshsalesConfiguration','CreateOrEditCompanyDialogController','isActive','extravar','SYSTEM:GETLISTS','.zip','placed','CreateOrEditVtigerConfigurationDialogController','src/js/modules/main/apps/mail/views/mailAccounts/edit/mailCannedAnswers/dialog.html/dialog.html','GET_CONTEXT','whatsappAccount','mindigit','deleteConfirm','Disposition','delete\x20applications','Africa/Nairobi','SmsAccount\x20properly\x20created','in-right-aligned','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20offlineMessages?','type','removeQueues','saveInboundRoute','api/users/describe','INTEGRATIONS.SUGARCRMACCOUNTS','src/js/modules/main/apps/settings/views/smtps/smtps.html/smtps.html','api/mail/reports/queue/describe','\x27TI\x27','api/users/:id/openchannel/interactions','
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Queue:\x20','focusOn','deleteSelectedServicenowAccounts','home.mycontacts','TOOLS.EDIT_TRUNK','api.chatProactiveAction.save','countglobal','deleteSelectedListCustomFields','English\x20(India)','downloadMailInteraction','Pacific/Fakaofo','onUpdateMailQueue','DASHBOARDS.SAT','You\x20must\x20have\x20at\x20least\x20one\x20theme\x20named\x20\x22default\x22','SYSTEM:DELETEchatWebsite','api/openchannel/applications/:id/clone','uriLocation','deleteMusicOnHoldMohSound','\x27sms_interactions\x27','devices','MailAccount\x20properly\x20saved!','getChatWebsites','api.intZendeskAccount.save','deleteSmsQueue','eurpolishfemale','whatsappInteraction@get','zip','autoreply','TOOLS.NEW_CANNEDANSWER','amber-fg','userProfileId','app.contactmanager.lists.edit','.ms-stepper-step-content','src/js/modules/main/apps/callysquare/views/odbcs/odbcs.html/odbcs.html','ur-IN','blue-grey-A200-fg','ListController','app.integrations.zendeskAccounts.edit','api/integrations/dynamics365/accounts/:id','api.intZendeskAccount.delete','DASHBOARDS.DECEMBER','autocomplete','STAFF.NOTIFICATIONS.PERMISSIONS_SAVED_SUCCESS_TITLE','Mac','The\x20customField\x20will\x20be\x20deleted.','querySearch','\x27basic\x27','api.cmCompany.delete','COUNT','api/integrations/vtiger/accounts/describe','third','selectedDescriptions','ZendeskAccount\x20properly\x20tested','absolute','lastName','deleteSelectedAgents','fas\x20fa-robot','remove','onRemoveOpenchannelQueueChannel','voiceExtension:update','QueuesWhatsappRealtimeController','api/whatsapp/interactions/:id/messages','tagName','addNewZendeskConfiguration','dateFilterLocalizationFactory','$mdConstant','outboundrouteid=','src/js/modules/core/directives/ms-search-bar/ms-search-bar.html/ms-search-bar.html','Uighur','SETTINGS.UPDATES','\x27WAV\x27','app.voice.musiconholds.edit','rpcFaxAccounts','selectAllZendeskAccounts','rpc@getTelephones','api/cm/lists/:id/clone','voice_outbound:save','\x20-\x20','Are\x20you\x20sure\x20want\x20to\x20uninstall\x20the\x20plugin?','src/js/modules/main/apps/tools/views/dispositions/create/dialog.html/dialog.html','\x27us-east-1\x27','Plugin\x20updated!','America/Recife','api/chat/groups/:id/members','faxQueues','images','Asia/Gaza','app.dashboards.general.dialer','api/integrations/dynamics365/fields/describe','delete\x20sugarcrmConfiguration','createOrEditTriggerAllCondition','\x27turn\x27','selectedVtigerAccounts','src/js/modules/main/apps/analytics/views/reports/reports.html/reports.html','SETTINGS.JIRA_ERROR_MESSAGE','UserController','SYSTEM:DELETEintZohoAccount','.json','FreshdeskAccountConfigurationsController','deselectMailSubstatuses','NavigationController','saveSalesforceAccount','MailInteractionId','createdAt,updatedAt,id,name,basename,savename,type,startDate,endDate,status,output,reportId,reportType','Russian','addNewOdbc','$translatePartialLoaderProvider','subStatuses','CreateOrEditContextDialogController','whatsappAccounts','Delete\x20condition','FaxAccountController\x20as\x20vm','runtranscribesentimentruntranscribesentiment','sipcalllinkedid','DASHBOARDS.ALL','toUpper','filteredAgents','User\x20not\x20deleted!','api/networks/:id','INTEGRATIONS.NEW_SALESFORCEACCOUNT','Smpt\x20id\x20unknown','motionTheming','saveNetwork','VOICE.EDIT_VOICEQUEUE','CreateOrEditFreshdeskAccountItemDialogController','TelephoneController\x20as\x20vm','rpc@getTrunks','startMonitor','referAttended','waitImagesLoaded','MailSubstatusesController\x20as\x20vm','mar','deselectFaxAccounts','TOOLS.NOTIFICATIONS.','api/sms/reports/transfer/describe','toggleAll','createOrEditList','CompaniesController\x20as\x20vm','addMinutes','hopperIds','Pause\x20properly\x20deleted!','/faxQueues','api.network.update','The\x20status\x20will\x20be\x20changed\x20to:\x20','/cloudProviders','applications','hopperBlack','Mozilla','rpc@getAgents','MyBody','MailAccount','deleteQueueCampaignHopperFinal','\x27{{voiceMail.mailbox}}@from-voicemail\x27','ChatWebsitelogoController','CompanyController','api/templates/:id','src/js/modules/main/apps/staff/views/agents/edit/view.html/view.html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20customDashboards?','deleteGlobalCustomField','FreshsalesAccount\x20properly\x20tested','intZendeskAccount@get','onSaveWhatsappQueue','\x27g722\x27','\x27comedia\x27','CreateOrEditFaxAccountDialogController','plainBody','/tags','api.openchannelAccount.delete','api.jscripty.account','deleteSelectedVariables','sortableOptions','dispositionsValues','max-width:\x20500px;','Infobip','api/cdr/describe','src/js/modules/core/directives/ms-tab-scroll/ms-tab-scroll.html/ms-tab-scroll.html','numbersto999','selectedChanSpies','audio','agentAdd','dnd','deleteSelectedSalesforceAccounts','putOtherCallsOnHold\x20->\x20session','voiceQueuesTotal','id,name,save_name','api.faxAccount.delete','chatPause','removeChild','300\x20400','notification:send','otherwise','contrast4','Label','saveDeskConfiguration','Arabic\x20(Egypt)','FAX.REALTIME','file_id','arrayagentIdentifier','delete\x20deskConfiguration','Dynamics365Account\x20properly\x20created','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/whatsappAccounts.html/whatsappAccounts.html','src/js/modules/main/apps/callysquare/views/projects/projects.html/projects.html','Delete\x20ChatCannedAnswer','allconditions','onIntegrationInit','getActions','chatWebsite@get','calleridnum','cancelInterval','focusOnclick','api/integrations/freshsales/accounts/:id/configurations','api.chatProactiveAction.delete','https://','src/js/modules/quick-panel/tabs/groups/create/dialog.html/dialog.html','trunk_id','UserDashboardGeneralController\x20as\x20vm','EditSmsAccountAppdialogflowDialogController','api.cm.lists','showSmsInteraction','api/integrations/freshdesk/fields/:id/clone','newPlugin','Days','render','saveList','Plugin','TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_MESSAGE','MxGraphDialogController','user:called','Georgia,serif','Nepali\x20(Nepal)','mediaDevices','api/integrations/sugarcrm/accounts/describe','deselectChatQueues','web','onSaveMailQueue','America/Los_Angeles','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27wrapup\x27','api/sms/accounts/:id/canned_answers','voice','Companies','_options','selectedTeams','SYSTEM:GET_USERPROFILES','AgentHomeDashboardMultiChannelOpenchannelController','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','targetEvent','dispose','api/whatsapp/accounts/:id/users','api/users/:id/prefixes','\x27da\x27','Intervals','src/js/modules/main/apps/chat/views/chatWebsites/edit/agentadd/agentadd.html/agentadd.html','api/voice/queues/:id/blacklists','#F44336','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20variables?','openchannelMessage:update','Whatsapp\x20Report\x20Queue','vm_home.sidebar','onTabScroll','transformContact','instant','newMailQueue','Canadian\x20French\x20Male','api/integrations/sugarcrm/accounts/:id/clone','ivrCampaignHopperBlacks','dateEnd','motion-paleblue','activateHueSelection','VOICE.INBOUNDROUTES','app/core/directives/ms-phonebar/sounds/beep.ogg','\x20ORDER\x20BY\x20','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20userProfiles?','Africa/Khartoum','onSaveSmsQueueChannel','CreateOrEditDynamics365ConfigurationDialogController','#1a3865','stopInterval','weight','whatsappStatus','INTEGRATIONS.EDIT_SUGARCRMACCOUNT','eu-west-3','legend','OpenchannelCannedAnswer\x20deleted!','Australia/Eucla','Help','error-404','#BDBDBD','UserapikeymanagerController','app.integrations.dynamics365Accounts.edit','onInternalMessageSave','Delete\x20Metric','createOrEditSubject','ndassistant_url','\x27preview\x27','intZendeskConfiguration','apiRoute','Gsm','onRemoveFaxQueueChannel','selectAllWhatsappQueues','SYSTEM:GETsmsAccounts','Asia/Ho_Chi_Minh','webcall','CreateOrEditOpenchannelQueueDialogController','api/settings/describe','src/js/modules/main/apps/whatsapp/views/realtime/agents/view.html/view.html','ChatWebsitesController\x20as\x20vm','api/sms/accounts/:id/dispositions','iPad','sendRequest','selectedPlugins','Australia/Sydney','onVoiceChannelRemove\x20->\x20evt','getCampaigns','rpcQueues','api/sms/messages/:id/status','EditInboundAppdialDialogController','SmsAccount\x20updated!','createOrEditDisposition','AgentDashboardGeneralController','apps.home.recordings','sound.name','isInProgress','id,name,type,dialMethod,dialActive','getWhatsappQueuesWaitingInteractions','delete\x20item','Norwegian','DASHBOARDS.UNTITLED','mozNotification','deselectServicenowAccounts','delete\x20field','arraysubtractUnit','deleteSelectedVoiceQueues','Asia/Makassar','DASHBOARDS.CALL_DISPOSED','range','POST','createOrEditIntervalInterval','secondDisposition','MsNavController','wechat','.results','forgot','src/js/modules/main/apps/tools/views/schedules/schedules.html/schedules.html','InboundRoute\x20properly\x20created','erlangCallToSecond','api.sound.save','Delete\x20FreshdeskConfiguration','-11:00','gotoPlugins','Tags\x20has\x20been\x20set!','The\x20globalCustomField\x20will\x20be\x20deleted.','APP.CLOSE','HANGUPCAUSE_38','Tahoma','selectedOpenchannelAccountInteractions','selectedVoiceQueues','src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/item/dialog.html/dialog.html','eu-ES','freshdeskConfiguration','CDR(type)=internal','SystemController','selectChangedAdvanced','DASHBOARDS.JANUARY','\x2738\x27','DashboardItem\x20properly\x20created','/login?token&userId','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/interval/dialog.html/dialog.html','ENTER','Trunk\x20properly\x20saved!','currentXML','WHATSAPPACCOUNT:SEND','Delete\x20ExtractedReport','keyup','vm.selectedTab','licenseKey','findSessionBySessionId\x20->\x20sessionId,\x20vm_pb.sessions','api.jscriptyProject.getSummary','VoicemailMessagesController','isLastStep','dashboards','Azerbaijani\x20(Azerbaijan)','ProjectAnswersController','api.mailQueue.delete','DeskAccount\x20properly\x20saved!','Error\x20updating\x20locally\x20stored\x20tabs','fontSize_sizes','app.tools.customDashboards','Status','SYSTEM:UPDATECMHOPPERHISTORY','onClick','api/chat/reports/transfer/describe','arrayinsecure','pdf','stringify','The\x20template\x20will\x20be\x20deleted.','getFreshsalesConfiguration','EditMailAccountAppautoreplyDialogController','src/js/modules/main/apps/contactmanager/views/contacts/contacts.html/contacts.html','delete\x20mohSounds','whatsappMessage:update','URI','getCustomFields','Asia/Baghdad','\x27agentOnly\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20trunks?','api.intZohoConfiguration.update','deleteSelectedCannedAnswers','src/js/modules/main/apps/tools/views/pauses/create/dialog.html/dialog.html','moveContactsQueueCampaignHopperFinal','api/chat/offline_messages/:id','Customization\x20properly\x20deleted!','Pause\x20properly\x20created','apps.openchannel','initializeRealtimeQueue','Vitoria\x20(Portuguese,\x20Brazilian,\x20Female)','exportSelectedCompanies','date','cmHopper','createdAt,updatedAt,id,name,key,headerinfo,TrunkId,localstationid,ListId,waitForTheAssignedAgent,description,ecm,minrate,maxrate,modem,gateway,faxdetect,t38timeout,tech,acceptMethod,acceptUrl,rejectMethod,rejectUrl,closeMethod,closeUrl,notificationSound,notificationShake,notificationTemplate','api.user.createApiKey','api/integrations/servicenow/configurations/:id','Invalid\x20tag\x20name.','api.action.save','isFormValid','isReschedule','api.userProfile.delete','deleteSugarcrmConfiguration','trigger:browser:popup','never','Oromo','/queue_calls','api/chat/websites/:id/users','getObject','createdAt,updatedAt,id,name,VoiceExtensionId,callerIdAll,description','allCondition','currentconferenceSessions','\x27beepall\x27','horizontal','QueueCampaign\x20properly\x20cloned','contactRelationUpdate','uploadError','deselectDeskAccounts','openchannelInteraction:save','src/js/modules/main/apps/openchannel/views/openchannelAccounts/create/dialog.html/dialog.html','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/tag/dialog.html/dialog.html','exportSelectedMusicOnHoldMohSounds','userChatQueue:remove','src/js/modules/main/apps/callysquare/views/projects/edit/saveAs/saveAs.html/saveAs.html','Ines\x20(Portuguese,\x20Female)','smsAccountSmsCannedAnswers','QueueCampaigns','deleteTemplate','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20customField?','addNewZohoAccount','init','deselectSmsAccounts','wrapup','mouseenter','put','SYSTEM:DELETEuser','chip-disabled','\x27report_chat_transfer\x27','VoicemailController\x20as\x20vm','msMasonry:relayoutStarted','_blank','addCustomField','America/Argentina/Ushuaia','voicePrefix\x20properly\x20created','AEC','DASHBOARDS.THIS_YEAR','editFaxAccountApp','app.tools.schedules','close_all','Key','DASHBOARDS.ME','registerStep','INTEGRATIONS.EDIT_SALESFORCEACCOUNT','ERROR\x20OPEN\x20INTERACTION','IvrCampaignsController','outboundBlacklistCallsDay','+06:30','ar-QA','hasSpeakers','dd\x20MMM\x20yyyy','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd.html','onInternalMessageUpdate','apps.tools.dispositions','app.tools.sounds','\x20DESC','Kinyarwanda','createdAt','SYSTEM:GETvoiceRecording','7200','Company\x20properly\x20saved!','src/js/modules/main/apps/tools/views/trunks/create/dialog.html/dialog.html','CHAT.CHATQUEUES','rec','userWhatsappQueue:save','Delete\x20CloudProvider','app/main/apps/fax','display_name','VOICE.RUNTRANSCRIBESENTIMENT_VOICERECORDING','\x27s\x27','dialogFlowLanguage','src/js/modules/main/apps/callysquare/views/projects/edit/info/info.html/info.html','app.integrations.salesforceAccounts','account_id','Message:save','The\x20odbc\x20will\x20be\x20deleted.','deselectWhatsappAccounts','exportSelectedMailAccounts','api/sms/accounts/:id/users','$valid','Telugu\x20(India)','\x272\x27','monthNumber','IntervalsController\x20as\x20vm','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','newCompany','/api/chat/websites/:id/avatar','stateClass','src/js/modules/main/apps/chat/views/chatWebsites/edit/offlineMessages/dialog.html/dialog.html','deleted','triggerallConditions','America/Guayaquil','\x27E\x27','mapValues','app.reset','exportSelectedIvrCampaignHopperHistories','arrayautopause','newDisposition','deleteSelectedChatWebsiteProactiveActions','motion.cookieAlertHide:','eurfrenchmale','/chanSpies','saveFaxAccount','isDateBeforeToday','VoicemailsController','configurations','ANALYTICS.NO_METRIC_FOUND','Interaction\x20has\x20been\x20closed!','actions','$[${XCALLY-MOTION-PROGRESS}=0]?Progress','newGeneral','Numbers\x20to\x20999','NONAME','exportSelectedVoiceQueues','CONTACTMANAGER.ERRORS.PHONEBAR_API','api/userProfile/resources/describe','DASHBOARDS.SCHEDULED_CALLS','noanswer','api/chat/interactions/:id/vidaoo','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/autoreply/dialog.html/dialog.html','Notification','InboundRoutesController','deselectTrunks','plugin:save','api/mail/interactions/:id/clone','newFreshsalesAccount','Module\x20updated!','vi-VN','delete\x20vtigerAccount','addNewInterval','There\x20has\x20been\x20an\x20error\x20while\x20trying\x20to\x20save\x20your\x20survey\x20session!','Internal\x20Call','description','Report\x20Field\x20properly\x20saved!','api/openchannel/accounts/describe','delete\x20chanSpys','ChatProactiveAction\x20properly\x20created','EditInternalAppsetDialogController','gotoNextStep','The\x20company\x20will\x20be\x20deleted.','items','api.cmList.update','Asia\x20Pacific\x20(Mumbai)','/video','int','isJabraEnabled','pauses','AmazonAWS','onSaveVoiceQueueReport','api/cm/lists/:id/contacts','MailAccountsRealtimeController\x20as\x20vm','MsThemeOptionsController\x20as\x20vm','Liv','addAccountApplications','onUpdateOpenchannelQueue','Task','TOOLBAR.CHINESESIMPLIFIED','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20screenRecordings?','progresslogin','initialize','app.fax.realtime.agents','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27yes\x27','selectedChatWebsiteOfflineMessages','delete\x20report','HeaderController\x20as\x20vm','addMessage','differenceBy','CHAT.EDIT_CHATCANNEDANSWER','EditInboundAppvoicemailDialogController','VOICE.NEW_VOICERECORDING','Online','addNewMailSubstatus','api.intDeskConfiguration.update','Decode\x20File\x20Error','api/voice/queues/:id/hopper_histories','voicemailMessages','voicePrefix','highlight','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20networks?','port','\x27fr-FR\x27','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/view.html/view.html','platform','\x27ws\x27','DASHBOARDS.SELECT_READ_UNREAD','/agents','Interactions','CALLYSQUARE.ODBC','setting@get','bottom_right','Europe/Brussels','motion2.home.openchannel:','Gujarati','src/js/modules/main/apps/voice/views/realtime/queue_calls/view.html/view.html','SYSTEM:ivrCampaign.REMOVELIST','icon-checkbox-marked-circle','UserWhatsappQueue','selectedVoicemailMessages','multiBarChart','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20freshsalesAccounts?','Email\x20Report\x20Queue','DASHBOARDS.THU','onSaveOpenchannelInteraction','Canadian\x20French\x20Female','addNewZendeskAccount','{color}|*','OPENCHANNEL.NEW_OPENCHANNELCANNEDANSWER','black','deleteSelectedSmsAccounts','\x274800\x27','TrunksVoiceRealtimeController','exportSelectedLists','jscriptyProjects','mohSound\x20#','Gmail','Delete\x20voicePrefix','saveTrunk','register','id,mailbox','ChatWebsites','src/js/modules/core/directives/ms-shortcuts/ms-shortcuts.html/ms-shortcuts.html','arrayencryption','Asia/Pyongyang','udp','getSubjects','English\x20(Kenya)','CreateOrEditSmtpDialogController','SmsQueue\x20properly\x20deleted!','/projects','gotoVoiceQueues','currentStepNumber','Naja\x20(Danish,\x20Female)','editInterval','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27paused\x27','iceCandidateTimeout','delete\x20Users','cutdigits','SYSTEM:DELETEintFreshsalesAccount','setActiveItem','listSelected','delete\x20voiceQueue','VOICE.NEW_VOICEQUEUE','smsStatus','\x27onlyIfOpen\x27','api/users/:id/openchannel_accounts','delete\x20Schedules','mailAccounts','\x27days\x27','SalesforceAccountConfigurationsController','getInternalRoutes','ComposeMailInteractionDialogController','app.help.about','getWhatsappQueues','\x27cm_hopper_history\x27','write','apps.fax.realtime','Delete\x20Voicemail','ERROR','exportSelectedChatWebsites','saveZohoConfiguration','getMailAccountLabel','api/rpc/voice/channels/:uniqueid/mixmonitor','api.voiceChanSpy.delete','getAbandonedCalls','Europe/Madrid','red-300-fg\x20icon-close-circle','asc','SMSACCOUNT:SEND','MsWidgetEngineController','cmCustomField@get','src/js/modules/main/apps/fax/views/realtime/queues/view.html/view.html','createOrEditFreshsalesConfiguration','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatQueues?','setScrollEl','getIvrCampaignHopperHistories','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','QueueCallsVoiceRealtimeController\x20as\x20vm','secondLevelDisposition','getAssignedCompanies','updateCondition','src/js/modules/main/apps/mail/views/mailQueues/create/dialog.html/dialog.html','api.setting.update','addNewAgent','selectAllFaxQueues','The\x20extractedReport\x20will\x20be\x20deleted.','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27wrapup\x27','AgentHomeAbandonedVoiceController','DELETE','installplugin','selectAllExtractedReports','Delete\x20Variable','onChangeSection','\x27agent_alias\x27','Send\x20Anyway','\x27KHOMP\x27','allowDelete','NEVER','America/Port_of_Spain','app.openchannel.realtime','msSearchBar','exportSelectedPauses','UserId','getHopperHistories','startOf','SYSTEM:DELETEanalyticExtractedReport','queryChannels','id,name,IntervalId','api/automations/:id/conditions','setText','arraydelete','newWhatsappCannedAnswer','Dynamics365Account\x20properly\x20tested','\x20properly\x20redirect!','newOpenchannelCannedAnswer','save','gotoIntervals','Delete\x20action','SYSTEM:GETvoiceQueue','America/New_York','unknown-version','Incoming','=ngModel','English\x20(Ireland)','id,tree','onInit','VoicemailController','CAMPAIGN\x20NOT\x20ACTIVE','addNewVtigerConfiguration','AGI','shake','CALLERID(all)=','motion-blue','French\x20(France)','api.chatAccounts.account','apps.openchannel.openchannelAccounts','api/mail/interactions/:id','src/js/modules/main/apps/tools/views/templates/create/dialog.html/dialog.html','src/js/modules/core/directives/ms-advanced-search/ms-advanced-search.html/ms-advanced-search.html','selectedVariables','uri','/general','name','whatsappMessage:save','OpenchannelAccount\x20properly\x20deleted!','target','SMS.SMSQUEUES','passwordResetAt','\x27fr\x27','\x27more\x27','onSave','readAsText','OpenchannelAccountsController\x20as\x20vm','\x27null\x27','oldPasswordMatch','hasDashboardPermissions','selectedIvrCampaignHopperFinals','smsStatusTime','deleteSelectedSmsAccountSmsCannedAnswers','api/plugins/:id','MOTIONDIALER.NEW_QUEUECAMPAIGN','MsSearchBarController','INTEGRATIONS.NEW_FRESHSALESCONFIGURATION','ERROR\x20OPENING\x20JSCRIPTY\x20PROJECT','src/js/modules/main/apps/tools/views/pauses/pauses.html/pauses.html','Chat\x20Interaction','attr','en-NG','row','TOOLBAR.BRAZILIAN','src/js/modules/main/apps/voice/views/internalroutes/internalroutes.html/internalroutes.html','delete\x20team','clone','newSugarcrmConfiguration','Would\x20you\x20like\x20to\x20save\x20your\x20survey?','selectedFaxAccounts','descriptions','CreateOrEditvoicePrefixDialogController','America/Swift_Current','selectedSalesforceConfiguration','api.smsQueue.save','SYSTEM:DELETE_HOPPER','English\x20(Canada)','getListCustomFields','src/js/modules/reset/reset.html/reset.html','MAIL.MAILACCOUNTS','Edit\x20Report\x20Field','createOrEditSound','accountProperty','+08:30','app.fax.realtime','src/js/modules/main/apps/voice/views/realtime/outbound_calls/view.html/view.html','AbandonedCallsVoiceRealtimeController\x20as\x20vm','The\x20openchannelAccount\x20will\x20be\x20deleted.','Europe/Berlin','api/migrations/:id/clone','SYSTEM:DELETEvoiceMail','api/integrations/zoho/configurations/:id','faxAccount:update','post','CreateOrEditUserDialogController','api.intFreshsalesAccount.delete','Celine','api/voice/prefixes/:id/users','getHoppers','#content','accounts','SUM\x20(','SUCCESS','deleteSmsQueuesWaitingInteractions','addNewVoiceQueue','\x27leastrecent\x27','src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/item/dialog.html/dialog.html','readOnly','Radio\x20Buttons','api/integrations/zendesk/configurations/:id/fields','createdAt,updatedAt,id,filename,projectName,uniqueid,callerid,extension,audio,savePath,format','odbcs','DASHBOARDS.NOTAVAILABLE','startingSelectedItems','beepall','app.staff.userProfiles.edit','ivrCampaignHoppers','api/analytics/field_reports/:id','Times\x20New\x20Roman,Times,serif','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','src/js/modules/main/apps/sms/views/smsAccounts/edit/smsCannedAnswers/dialog.html/dialog.html','createOrEditCompany','Indian/Maldives','ngModel','Europe/Tallinn','motionConfig','differenceWith','pm2','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/openchannelCannedAnswers/dialog.html/dialog.html','intSalesforceAccount@get','id,name,description,notes','\x27fr-CA\x27','deleteUser','Message\x20properly\x20rejected!','delete\x20subjects','screenRecording','0.00','offset','api.schedule.update','queryOptions','Cristiano','Rounded','globalTags','emojioneArea','te-IN','trunk.name','\x20deleted!','app.whatsapp.realtime.queues','\x27ap-southeast-2\x27','Abandon','Delete\x20DeskAccount','none','\x274\x27','Delete\x20WhatsappQueue','api/analytics/default_reports/:id/preview','VERSION\x20','intFreshdeskConfiguration','textContent','Asia/Dili','deselectTelephones','WhatsappCannedAnswer\x20properly\x20saved!','','Amy\x20(English,\x20British,\x20Female)','FaxAccount','Dynamics365AccountsController','Dialer\x20Hopper\x20Final','mdColorPicker','ms-scroll','firstName','from','api/cm/contacts/:id','deleteSelectedChatWebsiteChatCannedAnswers','api.variable.update','removeAgents','usenglishfemale','@includeAll','WhatsappAccount\x20properly\x20created','\x27wav49\x27','Australia/Lindeman','EditMailAccountAppcloseDialogController','prefix','SYSTEM:DELETEtrunk','voiceQueue:remove','newWhatsappQueue','Spanish\x20(Dominican\x20Republic)','zoho','.txt','Away','delete\x20servicenowAccount','editInternalRouteApp','realtime','Join','SYSTEM:GETintFreshdeskAccount','VariablesController','api.intSugarcrmAccount.delete','sugarcrmConfiguration','exportSelectedTrunks','api.team.update','api/integrations/reports/:id','voiceMusicOnHold@get','America/Argentina/Catamarca','SquareRecordings','arrayactionType','es-CL','#2196f3','app.openchannel.openchannelAccounts.edit','facebook','newMetric','alert','+05:00','macro','MsStepperController','createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','aws_lex_region','America/Thule','src/js/modules/main/apps/marketplace/views/plugins/edit/view.html/view.html','api/sms/applications/describe','msSplashScreen','definePalette','ivr','msDualMultiselect','\x20has\x20been\x20run!','queryMessage','populateResults','Kazakh','VoiceExtensionId','orange-A700-bg','CreateOrEditSugarcrmConfigurationDialogController','toLowerCase','delete\x20schedule','\x27files\x27','resetForm','-06:00','api/integrations/zoho/fields/:id/clone','\x2712000\x27','disposeInteraction','Not\x20Found','Telephone\x20properly\x20created','2nd','originator','OPENCHANNELACCOUNT:SEND','api.intServicenowConfiguration.delete','-starttime','TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE','deleteIvrCampaign','getResources','apps.integrations.vtigerAccounts','newSound','STAFF.NEW_AGENT','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20projects?','/voice','apps.dashboards.general','api/integrations/vtiger/fields/describe','openchannelTransferReport','src/js/modules/main/apps/contactmanager/views/lists/edit/customFields/dialog.html/dialog.html','createdAt,updatedAt,id,defaultLogo,defaultLoginLogo,defaultFavicon,defaultHeaderWhiteLabel,headerWhiteLabel,defaultPageTitle,pageTitle,defaultPreferred','\x22\x20err:','\x27en-US\x27','/smsQueues','onRemoveOpenchannelQueue','api/dashboards/:id','onExpand','offsetHeight','deleteTriggerAnyCondition','FaxAccountsRealtimeController','The\x20customDashboard\x20will\x20be\x20deleted.','pl-PL','createOrEditChatQueue','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27loose\x27','\x20succeded!','handleKeydown','goToEditState','container','draft','The\x20chanSpy\x20will\x20be\x20deleted.','OpenchannelCannedAnswer\x20properly\x20deleted!','QueueCampaignHopperStatisticsController','ANALYTICS.REMOVE','canDelete','freshsales','Delete\x20IvrCampaign','dragging','SugarcrmAccountsController','FaxQueuesController','Delete\x20MailSubstatus','\x20has\x20been\x20created!','Admin\x20Only','sessionId','src/js/modules/navigation/layouts/horizontal-navigation/navigation.html/navigation.html','userSmsQueue:save','api/sounds/:id/clone','delete\x20Plugins','selectedWhatsappAccounts','OutboundRoutesController\x20as\x20vm','arraymessagesAlignment','America/Hermosillo','question','vm.queryHistory.filter','api/actions/:id','Connection\x20succeded!','showLoadingIndicator','No\x20\x27%s\x27\x20process\x20found','Maxim\x20(Russian,\x20Male)','getChatWebsiteApps','openchannelQueue:update','exportSelectedIntervals','America/Boise','ms-navigation-horizontal','DASHBOARDS.OCTOBER','SYSTEM:DOWNLOADJSON','WHATSAPP.WHATSAPPQUEUES','outboundBusyCallsDay','el-GR','Tag\x20properly\x20saved!','Chinese\x20(Cantonese)','apps.tools.variables','HANGUPCAUSE_18','Abandoned','previewdialog','api.campaign.delete','Extension','getOpenchannelAccountInteractions','HELP.ABOUT','MailRealtimeController\x20as\x20vm','countContactsIvrCampaignHopperFinal','api.tag.save','OpenchannelAccount\x20properly\x20created','api.contact.delete','','MainController\x20as\x20vm','UserProfilesController\x20as\x20vm','limit','subject','extraHeaders','motion2.home.abandoned.voice.calls:','ispeechAsrLanguage','PhoneBar\x20API\x20Error','selectedWhatsappAccountWhatsappCannedAnswers','newContact','getProcesses','isDraft','api/jscripty/answers/reports/:id/clone','cmHopperBlack','European\x20German\x20Female','isAfter','phoneBarDnd','deleteSelectedIvrCampaignHoppers','searchInProgress','CDR(tag)=','app.contactmanager','permissionId','openContact','href','DisposeInteractionDialogController','-02:00','Users','Select','&?msTimelineLoadMore','addCondition','Catalan\x20(Spain)','The\x20salesforceConfiguration\x20will\x20be\x20deleted.','getFaxAccountLabel','4800','newVoiceQueue','api.voiceMail.update','exportSelectedZohoAccounts','deleteSelectedVoiceRecordings','add','deleteSmsAccountSmsCannedAnswer','TOOLS.NEW_TRUNK','MARKETPLACE.EDIT_PLUGIN','WhatsappQueue\x20properly\x20saved!','steps','src/js/modules/main/apps/voice/views/voicePrefixes/edit/agentadd/agentadd.html/agentadd.html','offHook','id,fullname','migration','FaxQueueController','Unable\x20to\x20play\x20autoAnswer\x20notification','Shona','deleteTrunk','fileAdded','src/js/modules/main/apps/voice/views/voicePrefixes/create/dialog.html/dialog.html','^msNav','DisposeCallDialogController','api/openchannel/messages/:id','ngJsTree','api/square/projects/describe','selectedServicenowConfiguration','filename','European\x20Czech\x20Female','Sundanese\x20(Indonesia)','some','requestFailed','connect','saveDisposition','nameField','app.voice.realtime.telephones','api/chat/websites/:id/avatar','ComposeSmsInteractionDialogController','/integrations','api/attachments/:id/download','TelephonesVoiceRealtimeController','update','spyfaxInteraction','fresh','The\x20pause\x20will\x20be\x20deleted.','alaw','newInboundRoute','treeDefaultInstance','apps.staff','deleteQueueCampaignHopperBlack','-updatedAt','gotoSmsQueues','erlangBusyFactor','delete\x20openchannelAccount','Africa/Tunis','api.variable.delete','MailAccount\x20updated!','delete\x20voicePrefix','deleteSchedule','api.voiceRecording.update','api/canned_answers/:id','onRemoteTransfer\x20->\x20evt,\x20data','faxMessage:update','hideStep','CustomField\x20properly\x20deleted!','src/js/modules/main/apps/voice/views/voiceQueues/edit/agentadd/agentadd.html/agentadd.html','KHOMP','delete\x20chatQueue','SmsAccountsController','AgentsMotionDialerRealtimeController\x20as\x20vm','\x27en-GB\x27','messaging','deleteReport','SmsCannedAnswer\x20properly\x20saved!','createdAt,updatedAt,id,name','cmCompany','intFreshsalesAccount@get','multipleUsers','src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/view.html/view.html','getExtractedReports','userChatQueue:save','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20mailCannedAnswer?','Europe/Belgrade','id,name,channel,status,description,createdAt,updatedAt','DASHBOARDS.MON','Delete\x20ChatWebsite','gotoSmsAccounts','SquareRecordingsController','Error\x20while\x20removing\x20tab','iframe','createdAt,updatedAt,id,role,fullname,name,email,password,description,autointernal,internal,voicemail,transport,nat,allow,callerid,context,callgroup,pickupgroup,videosupport,encryption,phone,mobile','removeSquareProjects','api/whatsapp/accounts/:id/canned_answers','UpdateLicenseDialogController','delete\x20smsAccount','selectedSubjects','Chinese\x20(Traditional)','selectedReportFields','securePassword','caenglishfemale','replaceWith','contentOnly','Unable\x20to\x20answer\x20the\x20call','EditWhatsappAccountAppamazonlexDialogController','chatStatusTime','targetSelected','SIP','getOpenchannelAccountOpenchannelCannedAnswers','ondevicechange','searchReport','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voiceQueues?','addNewOutboundRoute','$formatters','ChatWebsiteChatDispositionsController','deleteSelectedVoicePrefixes','citystate','models','TagInteractionDialogController','WhatsappQueue\x20properly\x20created','onClose','api/tags/describe','ExtractedReport\x20properly\x20deleted!','CreateOrEditSmsQueueDialogController','createOrEditTag','apps.settings','mixmonitorid','bn-BD','msShortcuts','deleteSmsCannedAnswer','deleteSelectedAiTools','MOTIONDIALER.EDIT_IVRCAMPAIGN','To\x20is\x20mandatory','\x27unknown\x27','SmsAccountsController\x20as\x20vm','src/js/modules/main/apps/staff/views/agents/edit/changepassword/changepassword.html/changepassword.html','appendChild','\x27report_member\x27','newFreshsalesConfiguration','Delete','arrayImap.service','api/rpc/openchannel/queues/:id/notify','The\x20dynamics365Configuration\x20will\x20be\x20deleted.','click','copydialog','Europe/Stockholm','Asia/Jerusalem','xlsx','api.whatsappAccount.save','deleteSelectedQueueCampaignHopperHistories','tabs','SalesforceConfiguration\x20properly\x20deleted!','CannedAnswers','gotoWhatsappAccounts','api.analyticReport.update','Import\x20process\x20failed!','addLists','msMaterialColorPickerController','motNotification','selectedReports','onReply','phone','api.voiceContext.delete','api.smsQueue.delete','api.pm2.update','getHeader','getReports','user_has_whatsapp_interactions:remove','userProfileSection@get','deleteSelectedInternalRoutes','$parsers','createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','variablesById','generate','Error404Controller\x20as\x20vm',',xX,,,300,,,,,','\x27pdf\x27','callysquare','deleteSelectedMailSubstatuses','es-CR','timeRangeFrom','hide','saveChatProactiveAction','arraysmsMethod','AgentHomeDashboardMultiChannelMailController','ChineseSimplified','app.video','pluginId','deselectZohoAccounts','angucomplete-alt:clearInput','outboundAbandonRate','createOrEditSchedule','EditOpenchannelAccountAppamazonlexDialogController','saveCompany','expanding','lastIndexOf','\x27h264\x27','login','whatsappInteractions','Accept','selectedMode','ProjectcloneController','Lucky\x20day','api/square/recordings/:id/clone','\x27centered\x27','TagsController','\x27hi\x27','delete\x20mailCannedAnswer','apps.settings.customizations','second','api.openchannelAccount.save','Croatian\x20(Croatia)','Ricardo\x20(Portuguese,\x20Brazilian,\x20Male)','NO\x20AUTH','ar-LB','AbandonedCallsMotionDialerRealtimeController','installing','-04:30','Scheduled\x20call','NetworksController\x20as\x20vm','md-no-ink','api/integrations/sugarcrm/accounts/:id/configurations','ZohoAccount\x20properly\x20tested','id,name,strategy,type,penalty','=msNavigationHorizontalNode','deselectPlugins','openedAt','app.voice.voiceQueues.edit','globalCompanies','api/rpc/voice/channels','QueueCampaign','$mdColorPalette','templates','fail\x20callbackurl:\x22','chatWebsite','src/js/modules/main/apps/sms/views/realtime/realtime.html/realtime.html','saveLists','ReportsController\x20as\x20vm','SMS.EDIT_','icon-radiobox-marked','The\x20telephone\x20will\x20be\x20deleted.','api/chat/internal/messages/describe','voiceQueueReport','Spanish\x20(Panama)','MailQueuesController','src/js/modules/header/layouts/vertical-navigation/header.html/header.html','CreateOrEditMusicOnHoldDialogController','','isObjectLike','api/chat/websites/:id/interactions','getItems','toInteger','api/cm/hopper_final/:id','app.fax.realtime.trunks','America/Argentina/Salta','counter','app.integrations.vtigerAccounts.edit','createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority','America/Vancouver','api/voice/queues/:id/users','arrayshowWebBar','voiceExtension@get','dashboard','Desk','api/cm/hopper_final/checkContactHopper','cafrenchfemale','api/openchannel/reports/queue/:id','motion2.home.','loading','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20zendeskAccounts?','source','apiselect','/vtigerAccounts','gotoContacts','fontSize','selectedTriggerAnyConditions','mobile','api/openchannel/accounts/:id/clone','listsMap','campaigns','VOICE.VOICERECORDINGS','MailQueueteamaddController','onTransferCallback\x20->\x20session,\x20textContent,\x20position,\x20delay','America/Bogota','Africa/Windhoek','The\x20servicenowAccount\x20will\x20be\x20deleted.','America/Indiana/Marengo','green-300-fg\x20icon-checkbox-marked-circle','\x27booked\x27','api/whatsapp/queues/:id/clone','EditInternalAppintervalDialogController','api/license/:id','selectedFreshdeskAccounts','CKEDITOR','intFreshdeskAccount','motionBullFields','delete\x20internalroute','The\x20agent\x20will\x20be\x20deleted.','app.staff.telephones','CreateOrEditSalesforceAccountDialogController','all','QuickPanelController\x20as\x20vm','unit','src/js/modules/main/apps/mail/views/mailQueues/edit/teamadd/teamadd.html/teamadd.html','onChangeReportType','newWhatsappAccount','src/js/modules/main/apps/dashboards/views/general/user/whatsapp/user.general.whatsapp.html/user.general.whatsapp.html','MusicOnHold','NotificationController','Brazilian\x20Portuguese\x20Female','src/js/modules/toolbar/preview/dialog.html/dialog.html','HopperBlack\x20deleted!','getMetrics','blacklist','aws_secret_access_key','RESETPASSWORD.PASSWORD_RESET_MESSAGE','squareOdbc@get','api/chat/websites/:id/canned_answers','delete\x20cloudProvider','VoiceQueue\x20properly\x20created','SYSTEM:GET_VOICEQUEUES','allConditions','icon-tile-four','AdvancedSearchController','CreateOrEditOdbcDialogController','QueueCampaignblacklistaddController','$setPristine','DASHBOARDS.SELECT_DATE','AgentHomeContactsController','\x27localnet\x27','createOrEditExtractedReport','readAsDataURL','SYSTEM:GET_MUSICONHOLDS','/sounds','icon-help','api/cm/hopper_black/describe','call\x20with\x20session\x20Id\x20','The\x20array\x20must\x20have\x203\x20or\x204\x20colors.','AgentHomeDashboardMultiChannelSmsController','api/integrations/zoho/configurations/describe','px,','unix','onSaveMailQueueChannel','\x27cm_hopper_final\x27','src/js/modules/main/apps/voice/views/voicemails/edit/view.html/view.html','SugarcrmConfiguration\x20properly\x20saved!','setPlaceholder','dark','APP.CANT_DOWNLOAD_THIS_FILE','vm_voice.query.filter','api.voiceMail.save','addFields','src/js/modules/main/apps/integrations/views/zohoAccounts/edit/item/dialog.html/dialog.html','US\x20East\x20(Ohio)','src/js/modules/main/apps/callysquare/views/squareRecordings/squareRecordings.html/squareRecordings.html','SETTINGS.NEW_CUSTOMIZATION','\x27q\x27','MAIL.EDIT_','api.squareProject.save','clearAll','refreshDate','fr-FR','onInteractionOpen','isPartialPause','Africa/Ceuta','FAX.FAX','Asia/Tehran','listOrderAsc','isSame','getQueueCampaignHopperFinals','\x273\x27','Australia/Broken_Hill','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/view.html/view.html','src/js/modules/main/apps/voice/views/inboundroutes/create/dialog.html/dialog.html','api/users/:id/whatsapp_accounts','msTimeline','GET_TEMPLATE','delete\x20Networks','msMasonry:relayout','Tatyana','UserVoiceDashboardGeneralController','TCL:\x20vm.path','internalrouteApps','\x27random\x27','closeReason','TriggerAllConditionsController','deleteSelectedUserProfiles','CreateOrEditSessionDialogController','angucomplete-alt','api/square/recordings/:id/download','Highest','getInboundRoutes','url','api.analyticReport.delete','api/analytics/default_reports/:id','list','arrayauthType','CustomDashboardItemsController','deleteSalesforceAccount','notes','app.integrations.salesforceAccounts.edit','CreateOrEditSoundDialogController','ringingVolume','Joey\x20(English,\x20US,\x20Male)','DASHBOARDS.NOT_ASSIGNED','saveWhatsappAccountApp','app/main/apps/whatsapp','Asia/Kabul','app.errors.error-404','exportcsvcontactsexport','uploadSound','Voicemail\x20properly\x20saved!','api/analytics/field_reports/:id/create_many','\x20properly\x20saved!','deleteOutboundRoute','-id','checkContactHopper','getSenders','Warning','Left\x20Join','SYSTEM:DELETEdashboard','onplay','api.contacts.save','SYSTEM:GET_INTERVAL','user_has_mail_interactions:save','exportSelectedAiTools','voiceStatus','day','sourceid','SYSTEM:GETprojects','^msNavigationNode','template','load','deselectVoicemails','SYSTEM:DELETEvoiceExtension','sun','Contact\x20properly\x20created','api/plugins/','arraypriority','useSanitizeValueStrategy','api/chat/offline_messages/describe','src/js/modules/main/apps/analytics/views/reports/copy/dialog.html/dialog.html','delete\x20hopperBlacks','SMS.NEW_SMSCANNEDANSWER','full','MsShortcutsController','botname','VariablesController\x20as\x20vm','api/mail/interactions/:id/tags','squareMessage','FreshdeskAccount\x20properly\x20created','Last\x20Year','queueAdd','MailQueueController\x20as\x20vm','externaldial','Asia/Dhaka','deleteContext','app.settings.license','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20freshdeskConfiguration?','Agent\x20updated!','Email\x20field\x20is\x20not\x20valid','delete\x20chatCannedAnswers','incident','eurfrenchfemale','VoiceRecordingController','api.item.delete','Channel\x20','+01:00','cancelUpdateCondition','api/voice/extensions/:id','addNewDynamics365Configuration','WhatsappAccountWhatsappCannedAnswersController','unreadTotalGroupMessages','\x27tls\x27','contactInfo','app.dashboards.general.chat','interpolate','TOOLS.TOOLS','font,colorbutton,autogrow,autoembed,autocorrect,googlethisterm,pastebase64','api/schedules/describe','selectedCustomDashboards','countnoanswerretry','pick','find','createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version','\x27roundrobin\x27','Europe/Simferopol','deleteOpenchannelAccountApp','Pacific/Majuro','LOCAL_LOGIN','getFolded','Hopper\x20properly\x20deleted!','leave','openchannelInteraction@get','web-report','Oriya','apps.voice','cmCustomField','downloadMessage','originateInProgress','onRemoveUserMailQueue','msNav::forceCollapse','resultsLoading','temporarilyIgnoreMouseEvents','pid','SYSTEM:GETcmCompany','IntervalController','api.user.changePassword','\x27clickatell\x27','\x27admin\x27','api/voice/calls/reports/describe','getJscriptySessions','Spanish\x20(Mexico)','anyThirdLevelDisposition','selectReport','VIDEO.NEW_SCREENRECORDING','exportSelectedChatWebsiteChatCannedAnswers','webbar:hold','SugarcrmConfiguration\x20deleted!','EditWhatsappAccountAppautoreplyDialogController','queryJscriptySession','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotoif/dialog.html/dialog.html','CustomReportId','Input','/assets/images/theme-options/vertical-nav-with-full-toolbar-2.jpg','CreateOrEditIvrCampaignDialogController','Network\x20properly\x20saved!','selectAllSquareRecordings','dashboardSections','Smtp\x20properly\x20verified','
','\x27report_square\x27','src/js/modules/main/apps/motiondialer/views/realtime/agents/view.html/view.html','OutboundRoute\x20properly\x20created','refer','mainForm','parse','Priority','openchannelCannedAnswer\x20#','Unknown\x20status','JSCRIPTY.ALL_SURVEY_DATA_WILL_BE_LOST','selectAllWhatsappAccounts','selectAllPauses','requestLicense','ChatWebsite\x20properly\x20deleted!','delete\x20Telephones','createdAt,updatedAt,id,name,description,createdAt,formData,enableUncompleteSave','session','apps.settings.smtps','motion.layoutStyle','AgentController\x20as\x20vm','src/js/modules/navigation/layouts/vertical-navigation/navigation.html/navigation.html','shortinfo','mail_queue_waiting_interaction:remove','\x27mail_interactions\x27','VoiceQueueController','SmsRealtimeController','motion2.home.sms:','Dynamics365Configuration\x20properly\x20saved!','concat','\x27openchannel_queues\x27','Gecko','whoami','removeByInteraction','api/members/reports/describe','selectedTriggers','progressive','getZohoConfiguration','cmCompany@get','chatOfflineMessage','\x20has\x20been\x20modified.\x20Closing\x20will\x20lose\x20all\x20changes!','European\x20Polish\x20Female','src/js/modules/main/apps/motiondialer/views/realtime/queue_calls/view.html/view.html','api/sms/applications/:id/clone','minDateRange','deleteChatWebsiteChatCannedAnswer','icon-whatsapp','chatMessage','app.sms.realtime.queues','IvrCampaignlistaddController','api/mail/out_servers/describe','assignTo','ms-stepper','UNIX_TIMESTAMP\x20(','showInteraction','intServicenowAccount','deleteSound','onSaveWhatsappInteraction','api.cmHopper.update','pause','api.dashboard.save','skype','osName','saved','sound','split','deselectMailAccounts','speakerId','api.intFreshdeskConfiguration.delete','outboundCongestionCallsDay','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailAccounts?'];(function(_0x542ea7,_0xf814ea){const _0x522af0=function(_0x41271e){while(--_0x41271e){_0x542ea7['push'](_0x542ea7['shift']());}};_0x522af0(++_0xf814ea);}(a0_0x522a,0x167));const a0_0x4127=function(_0x542ea7,_0xf814ea){_0x542ea7=_0x542ea7-0x107;let _0x522af0=a0_0x522a[_0x542ea7];return _0x522af0;};const a0_0xe5efb4=a0_0x4127;(self['webpackChunkmotion_client']=self[a0_0xe5efb4(0x1df7)]||[])[a0_0xe5efb4(0x1954)]([[0x8f],{0x2069:(_0x516029,_0x4e0a6c,_0x2e4a48)=>{const _0x49a1e3=a0_0xe5efb4;'use strict';var _0x3894ca=_0x2e4a48(0x304);;_0x212364[_0x49a1e3(0x1e73)]=['$httpProvider'];function _0x212364(_0xa1c001){const _0x125a05=_0x49a1e3;_0xa1c001[_0x125a05(0x593)][_0x125a05(0x1954)](_0x125a05(0xcf5));}const _0x35909a=_0x212364;;_0x36462a['$inject']=[_0x49a1e3(0xd71)];function _0x36462a(_0x35dc61){const _0x502186=_0x49a1e3,_0x1e92e8={'to':function(_0x5f5783){const _0x56524f=a0_0x4127;return _0x5f5783[_0x56524f(0x814)]===!![];}},_0x15cc5a={'to':function(_0x42ee50){const _0x588a43=a0_0x4127;return _0x42ee50[_0x588a43(0x2494)]!==_0x588a43(0x354);}},_0x728f56={'to':function(_0x4679a5){return _0x4679a5['permissionId'];}},_0x6f96e7={'to':function(_0xa654ce){const _0x17b94c=a0_0x4127;return _0xa654ce['parent']['name']===_0x17b94c(0x11c8);}},_0x4e040d=function(_0xbaef68){const _0x5752c8=a0_0x4127,_0x4695b8=_0xbaef68[_0x5752c8(0xd16)]()['get'](_0x5752c8(0xdcf)),_0x53e370=_0xbaef68[_0x5752c8(0x1c4c)]['stateService'];return!_0x4695b8[_0x5752c8(0xa9f)]()?_0x53e370['target'](_0x5752c8(0x354),undefined,{'reload':!![]}):_0x4695b8[_0x5752c8(0xeb9)]()['catch'](function(){const _0x5401ff=_0x5752c8;return _0x53e370[_0x5401ff(0x2497)](_0x5401ff(0x354),undefined,{'reload':!![]});});},_0x48b774=function(_0x31edc2){const _0x4fa56b=a0_0x4127,_0x242631=_0x31edc2[_0x4fa56b(0xd16)]()[_0x4fa56b(0x896)](_0x4fa56b(0xdcf)),_0x2ee2ae=_0x31edc2[_0x4fa56b(0x1c4c)]['stateService'],_0x31923c=_0x31edc2['$to']();if(_0x242631['hasRole'](_0x4fa56b(0x11ae))&&_0x31923c[_0x4fa56b(0x2494)]!='app.dashboards.general')return _0x2ee2ae[_0x4fa56b(0x2497)](_0x4fa56b(0x11c8),{'redirect':![]},{'reload':!![]});},_0x46d4d3=function(_0x3aed5c){const _0x2f32b7=a0_0x4127,_0x197fb3=_0x3aed5c['injector']()['get'](_0x2f32b7(0xdcf)),_0x30e2ad=_0x3aed5c[_0x2f32b7(0x1c4c)]['stateService'],_0x4bc503=_0x3aed5c[_0x2f32b7(0x50f)]();if(_0x197fb3[_0x2f32b7(0x4de)](_0x2f32b7(0x2e8))){if(!_0x197fb3[_0x2f32b7(0x1244)](_0x4bc503[_0x2f32b7(0x25ce)]))return _0x30e2ad[_0x2f32b7(0x2497)](_0x2f32b7(0x11c8),{'redirect':![]},{'reload':!![]});else{const _0x3ba188=_0x3aed5c[_0x2f32b7(0x1b48)]()['id']?Number(_0x3aed5c['params']()['id']):undefined;if(_0x3ba188)return _0x197fb3[_0x2f32b7(0x1724)](_0x4bc503[_0x2f32b7(0x25ce)],_0x3ba188)[_0x2f32b7(0x20cd)](function(){return _0x30e2ad['target'](_0x4bc503['parent']['name'],{'redirect':![]},{'reload':!![]});});}}},_0x559968=function(_0x59c57a){const _0x258fe5=a0_0x4127,_0x31665b=_0x59c57a[_0x258fe5(0xd16)]()[_0x258fe5(0x896)](_0x258fe5(0xdcf)),_0x34030c=_0x59c57a[_0x258fe5(0x1c4c)][_0x258fe5(0xef5)];if(_0x31665b['hasRole'](_0x258fe5(0x2e8))&&!_0x31665b[_0x258fe5(0x1244)](0x64))return _0x34030c[_0x258fe5(0x2497)]('app.dashboards.general',{'redirect':![]},{'reload':!![]});};_0x35dc61['onBefore'](_0x1e92e8,_0x4e040d),_0x35dc61[_0x502186(0xc4a)](_0x15cc5a,_0x48b774),_0x35dc61[_0x502186(0x1a7d)](_0x728f56,_0x46d4d3),_0x35dc61[_0x502186(0x1a7d)](_0x6f96e7,_0x559968);}const _0x2e7bf1=_0x36462a;var _0x1f1c5e=_0x2e4a48(0x1956),_0x28c606=_0x2e4a48['n'](_0x1f1c5e),_0x3833bf=_0x2e4a48(0x17d),_0x2ac33a=_0x2e4a48['n'](_0x3833bf);;const _0x2af781=_0x2e4a48['p']+_0x49a1e3(0x290f);;_0x57ae36[_0x49a1e3(0x1e73)]=['$mdDialog',_0x49a1e3(0x7a7),'$q','api',_0x49a1e3(0x1fe7),_0x49a1e3(0x1373)];function _0x57ae36(_0x4441a0,_0x552a46,_0x2df96f,_0x5833d0,_0x3ac2d0,_0x550c89){let _0x4cf8ea;const _0x26312f={'getToken':_0x5a6801,'getCurrentUser':_0x401435,'getPermissions':_0x48e463,'hasChildrenPermissions':_0x58be63,'hasModulePermissions':_0x3c0e2a,'hasModulesPermissions':_0xd0f1b8,'hasRole':_0x7ef6f7,'hasPermission':_0x2a0506,'hasResourcePermission':_0x3bdfae,'hasSectionPermissions':_0x50c31a,'hasSectionsPermissions':_0x2b70a1,'isAgent':_0x1a8874,'isAdmin':_0x5502c5,'isLoggedIn':_0x271a44,'isTelephone':_0x3ea009,'isUser':_0xb33d1,'login':_0x53e972,'logout':_0x530f8e,'parseCrudPermissions':_0x2c9ca3,'queueLogin':_0xd87acd,'reloadPermissions':_0x3e809b,'removeCookies':_0x5b9c2c,'retrieveUser':_0x48b2fa,'setCurrentUser':_0xa234de,'getAuthenticationType':_0x13a406,'loginSSO':_0x3ad626};return _0x26312f;function _0x5a6801(){const _0x556fa6=a0_0x4127;return _0x552a46[_0x556fa6(0x896)]('motion.token');}function _0x401435(){return _0x4cf8ea;}function _0xa234de(_0x306e19){const _0x4a3775=a0_0x4127;_0x4cf8ea=_0x28c606()[_0x4a3775(0x14fe)](_0x4cf8ea,_0x306e19);}function _0xd87acd(_0x4b6fcb){return _0x2df96f(function(_0x82a357,_0x3588de){const _0x3fb870=a0_0x4127;_0x5833d0['user'][_0x3fb870(0x269e)]({'id':_0x4cf8ea['id'],'device':_0x3fb870(0x2277),'intrf':_0x4b6fcb})[_0x3fb870(0x15e7)][_0x3fb870(0x64a)](function(_0x327f45){_0x82a357(_0x327f45);})[_0x3fb870(0x20cd)](function(_0x1bb0a3){_0x3588de(_0x1bb0a3);});});}function _0x54f398(){return _0x2df96f(function(_0x3e999d,_0x5c2b47){const _0x2cd35c=a0_0x4127;_0x5833d0['user'][_0x2cd35c(0xad9)]({'id':_0x4cf8ea['id'],'device':'web'})[_0x2cd35c(0x15e7)][_0x2cd35c(0x64a)](function(){_0x3e999d();})['catch'](function(_0x27d2a0){_0x5c2b47(_0x27d2a0);});});}function _0x2f8fde(_0x447b76){return _0x2df96f(function(_0x452646,_0x53ae12){const _0x36245a=a0_0x4127,_0x3c5c50={'online':_0x447b76,'lastLoginAt':_0x447b76?_0x2ac33a()()[_0x36245a(0x1c2c)](_0x36245a(0x5f7)):undefined};_0x5833d0[_0x36245a(0x2e8)][_0x36245a(0x2603)]({'id':_0x4cf8ea['id']},_0x3c5c50)[_0x36245a(0x15e7)][_0x36245a(0x64a)](function(_0x102ec9){_0x452646(_0x102ec9);})[_0x36245a(0x20cd)](function(_0x432857){_0x53ae12(_0x432857);});});}function _0x53e972(_0x258f19){return _0x2df96f(function(_0x5b4285,_0x6ee9e1){const _0x5b1fc3=a0_0x4127;_0x5833d0[_0x5b1fc3(0x1927)][_0x5b1fc3(0x170f)](_0x258f19)[_0x5b1fc3(0x15e7)][_0x5b1fc3(0x64a)](function(_0x29fc1a){const _0x5e56a6=_0x5b1fc3;return _0x552a46[_0x5e56a6(0x2358)](_0x5e56a6(0x283d),_0x29fc1a[_0x5e56a6(0x1e13)]),_0x5833d0[_0x5e56a6(0x2e8)][_0x5e56a6(0x896)]({'id':_0x29fc1a['id']})[_0x5e56a6(0x15e7)];})[_0x5b1fc3(0x64a)](function(_0x329145){const _0x5d4da9=_0x5b1fc3;_0x4cf8ea=_0x329145,_0x4cf8ea[_0x5d4da9(0x7a4)]=_0x2ac33a()()['format'](_0x5d4da9(0x5f7)),_0x3be164('LOCAL_LOGIN');})['then'](function(){const _0x11fc0b=_0x5b1fc3;if(_0x1a8874()&&_0x4cf8ea[_0x11fc0b(0xd6a)]===0x1&&_0x4cf8ea[_0x11fc0b(0x1a9d)])return _0x4441a0[_0x11fc0b(0xa60)]({'controller':'HotDeskDialogController','controllerAs':'vm','templateUrl':_0x2af781,'parent':angular[_0x11fc0b(0x1f81)](_0x550c89['body']),'clickOutsideToClose':![],'resolve':{'telephones':[_0x11fc0b(0x107c),function(_0x1227aa){const _0x244df2=_0x11fc0b;return _0x1227aa[_0x244df2(0x1268)](_0x244df2(0x142c),{'fields':_0x244df2(0xfb6),'role':_0x244df2(0x1782),'nolimit':!![]});}]}});})[_0x5b1fc3(0x64a)](function(_0x4eaacf){const _0x3f0be5=_0x5b1fc3;if(_0x1a8874()&&_0x4cf8ea[_0x3f0be5(0xd6a)]!==0x0)return _0xd87acd(_0x4eaacf);else{if(_0x5502c5()||_0xb33d1())return _0x2f8fde(!![]);else return;}})[_0x5b1fc3(0x64a)](function(_0x59a2fe){_0x4cf8ea=_0x28c606()['assign'](_0x4cf8ea,_0x59a2fe),_0x5b4285();})['catch'](function(_0x51f75d){_0x6ee9e1(_0x51f75d);});});}function _0x5b9c2c(){const _0x2595a6=a0_0x4127;_0x552a46[_0x2595a6(0x21c7)](_0x2595a6(0x283d)),_0x4cf8ea&&(_0x3ac2d0[_0x2595a6(0x294)]['removeItem'](_0x2595a6(0x1071)+_0x4cf8ea['id']),_0x3ac2d0[_0x2595a6(0x294)]['removeItem'](_0x2595a6(0xee0)),_0x4cf8ea=null);}function _0x530f8e(_0x4fda63){return _0x2df96f(function(_0x3b8518,_0x1aabf9){const _0x517c35=a0_0x4127;_0x4fda63?(_0x5b9c2c(),_0x3b8518()):_0x2df96f['resolve']()[_0x517c35(0x64a)](function(){const _0x49724b=_0x517c35;if(_0x1a8874()&&_0x4cf8ea[_0x49724b(0xd6a)]!==0x0)return _0x54f398();else{if(_0x5502c5()||_0xb33d1())return _0x2f8fde(![]);else return;}})[_0x517c35(0x64a)](function(){_0x5b9c2c(),_0x3b8518();})[_0x517c35(0x20cd)](function(_0x372f25){_0x1aabf9(_0x372f25);});});}function _0x271a44(){return _0x5a6801()?!![]:![];}function _0x1a8874(){const _0x5bb20f=a0_0x4127;return _0x4cf8ea['role']===_0x5bb20f(0x11ae);}function _0x5502c5(){const _0x90f3ee=a0_0x4127;return _0x4cf8ea[_0x90f3ee(0x161a)]===_0x90f3ee(0x333);}function _0xb33d1(){const _0x149a64=a0_0x4127;return _0x4cf8ea['role']===_0x149a64(0x2e8);}function _0x3ea009(){const _0x537648=a0_0x4127;return _0x4cf8ea[_0x537648(0x161a)]===_0x537648(0x1782);}function _0x48b2fa(){return _0x2df96f(function(_0x3e5541,_0x9ef2de){const _0xc948b0=a0_0x4127;_0x5833d0['user'][_0xc948b0(0x280b)]()[_0xc948b0(0x15e7)]['then'](function(_0x3bc0f0){const _0x49a601=_0xc948b0;return _0x3bc0f0[_0x49a601(0x161a)]===_0x49a601(0x2e8)?_0x48e463(_0x3bc0f0[_0x49a601(0x21ac)])[_0x49a601(0x64a)](function(_0x5401fa){const _0xb2c3ee=_0x49a601;return _0x3bc0f0[_0xb2c3ee(0x1f33)]=_0x5401fa,_0x3bc0f0;}):_0x3bc0f0;})[_0xc948b0(0x64a)](function(_0x190088){_0x4cf8ea=_0x190088,_0x3e5541(_0x4cf8ea);})[_0xc948b0(0x20cd)](function(_0x1430c2){_0x9ef2de(_0x1430c2);});});}function _0x7ef6f7(_0xd502ca){const _0x6a2e92=a0_0x4127;return _0x4cf8ea?_0x4cf8ea[_0x6a2e92(0x161a)]===_0xd502ca:![];}function _0x2a0506(_0x10ca76){const _0x5d2e18=a0_0x4127;return _0x4cf8ea?_0x28c606()[_0x5d2e18(0x68a)](_0x4cf8ea[_0x5d2e18(0x1f33)],_0x10ca76):![];}function _0x48e463(_0x4e4cd3){let _0x5e8fce=[];return _0x2df96f(function(_0x1409d5,_0x5a4620){const _0xa15b3d=a0_0x4127;return!_0x4e4cd3&&_0x1409d5(_0x5e8fce),_0x5833d0[_0xa15b3d(0x16a8)][_0xa15b3d(0xe09)]({'id':_0x4e4cd3})[_0xa15b3d(0x15e7)][_0xa15b3d(0x64a)](function(_0x1c697d){const _0x2be76d=_0xa15b3d;for(let _0x4cd6fd=0x0;_0x4cd6fd<_0x1c697d['length'];_0x4cd6fd++){const _0x30c4b3=_0x1c697d[_0x4cd6fd];_0x5e8fce[_0x2be76d(0x1954)](_0x30c4b3['sectionId']),_0x30c4b3[_0x2be76d(0xa0e)]&&(_0x5e8fce=_0x28c606()[_0x2be76d(0x2808)](_0x5e8fce,_0x30c4b3[_0x2be76d(0xa0e)]));}return _0x5e8fce;})[_0xa15b3d(0x64a)](function(_0x30cc77){_0x1409d5(_0x30cc77);})[_0xa15b3d(0x20cd)](function(_0x2cbe87){_0x5a4620('Error\x20retrieving\x20user\x20profile\x20permissions',_0x2cbe87);});});}function _0x58be63(_0xd509b0){const _0x537467=a0_0x4127;if(!_0xd509b0)return![];return _0x28c606()[_0x537467(0x25f8)](_0xd509b0,function(_0x133a3c){return _0x2a0506(_0x133a3c);});}function _0x3e809b(){return _0x2df96f(function(_0x2d837e,_0xa39eb3){const _0x4c6599=a0_0x4127;_0x48e463(_0x4cf8ea[_0x4c6599(0x21ac)])[_0x4c6599(0x64a)](function(_0x4f8348){const _0x35425c=_0x4c6599;_0x4cf8ea[_0x35425c(0x1f33)]=_0x4f8348,_0x2d837e();})[_0x4c6599(0x20cd)](function(_0x388def){_0xa39eb3(_0x388def);});});}function _0x2c9ca3(_0x3cb176){const _0x2df486=a0_0x4127;return _0x5502c5()?{'readOnly':![],'canEdit':!![],'canDelete':!![]}:!_0x3cb176?{'readOnly':!![],'canEdit':![],'canDelete':![]}:{'readOnly':_0x28c606()[_0x2df486(0x68a)](_0x3cb176,'r')&&_0x3cb176[_0x2df486(0x1b9e)]===0x1?!![]:![],'canEdit':_0x28c606()[_0x2df486(0x68a)](_0x3cb176,'e')?!![]:![],'canDelete':_0x28c606()['includes'](_0x3cb176,'d')?!![]:![]};}function _0x3bdfae(_0x11e7be,_0x1328d9){return _0x2df96f(function(_0x1dfb81,_0x53fe9f){const _0x561779=a0_0x4127;return _0x5833d0[_0x561779(0x16b2)][_0x561779(0x896)]({'userProfileId':_0x4cf8ea[_0x561779(0x21ac)],'sectionId':_0x11e7be})[_0x561779(0x15e7)][_0x561779(0x64a)](function(_0x53055){const _0x57310a=_0x561779,_0xdaf4d6=_0x53055[_0x57310a(0x28b8)][0x0];if(_0xdaf4d6[_0x57310a(0x11da)])_0x1dfb81();else return _0x5833d0[_0x57310a(0x1617)]['get']({'sectionId':_0xdaf4d6['id'],'nolimit':!![]})[_0x57310a(0x15e7)]['then'](function(_0x51536c){const _0x4cb983=_0x57310a,_0x2bf121=_0x51536c['rows'];_0x28c606()[_0x4cb983(0x25f8)](_0x2bf121,[_0x4cb983(0x145),_0x1328d9])?_0x1dfb81():_0x53fe9f();});})['catch'](function(_0x510f83){const _0x3067a1=_0x561779;_0x53fe9f(_0x3067a1(0x5a3),_0x510f83);});});}function _0x50c31a(_0x2c3178){return _0x2df96f(function(_0x4f91f1,_0x396e1e){const _0x405f31=a0_0x4127,_0x1ee57f={};return _0x3e809b()['then'](function(){const _0x36f317=a0_0x4127;_0x28c606()[_0x36f317(0x68a)](_0x4cf8ea[_0x36f317(0x1f33)],_0x2c3178)&&(_0x1ee57f[_0x2c3178]=!![]),_0x4f91f1(_0x1ee57f);})[_0x405f31(0x20cd)](function(_0x50c935){_0x396e1e(_0x50c935);});});}function _0x2b70a1(_0x868afe){return _0x2df96f(function(_0x1754fe,_0x3d0529){const _0x2fbbcb=a0_0x4127,_0x1afa8d={};if(_0x5502c5())_0x868afe['forEach'](function(_0x54cc17){_0x1afa8d[_0x54cc17]=!![];}),_0x1754fe(_0x1afa8d);else return _0x3e809b()['then'](function(){const _0x3147e7=a0_0x4127;_0x868afe[_0x3147e7(0x1397)](function(_0x1a260a){const _0x40b08c=_0x3147e7;_0x28c606()[_0x40b08c(0x68a)](_0x4cf8ea['permissions'],_0x1a260a)&&(_0x1afa8d[_0x1a260a]=!![]);}),_0x1754fe(_0x1afa8d);})[_0x2fbbcb(0x20cd)](function(_0x1df72e){_0x3d0529(_0x1df72e);});});}function _0x3c0e2a(_0x4c426b){return _0x2df96f(function(_0x20b1e7,_0x37f3e0){const _0x5aa9c8=a0_0x4127;_0x5502c5()?_0x20b1e7(!![]):_0x5833d0[_0x5aa9c8(0x16b2)][_0x5aa9c8(0x896)]({'userProfileId':_0x4cf8ea[_0x5aa9c8(0x21ac)]})[_0x5aa9c8(0x15e7)][_0x5aa9c8(0x64a)](function(_0x356fce){const _0x499140=_0x5aa9c8,_0x1c1183=_0x356fce&&_0x356fce[_0x499140(0x28b8)]?_0x356fce[_0x499140(0x28b8)]:[];if(!_0x28c606()[_0x499140(0x940)](_0x1c1183)){const _0x12a90f=_0x28c606()[_0x499140(0xcec)](_0x1c1183,function(_0x3faa24){return _0x3faa24['enabled'];});_0x20b1e7(_0x28c606()[_0x499140(0x25f8)](_0x12a90f,[_0x499140(0x1f3e),_0x4c426b]));}else _0x20b1e7(![]);})[_0x5aa9c8(0x20cd)](function(_0xcfbac8){_0x37f3e0(_0xcfbac8);});});}function _0xd0f1b8(_0x1b939d){return _0x2df96f(function(_0x242be2,_0x261f36){const _0x2ecbe5=a0_0x4127,_0x2d9c92={};_0x5502c5()?(_0x1b939d[_0x2ecbe5(0x1397)](function(_0xf51008){_0x2d9c92[_0xf51008]=!![];}),_0x242be2(_0x2d9c92)):_0x5833d0[_0x2ecbe5(0x16b2)]['get']({'userProfileId':_0x4cf8ea[_0x2ecbe5(0x21ac)]})[_0x2ecbe5(0x15e7)][_0x2ecbe5(0x64a)](function(_0xc33491){const _0x1c507d=_0x2ecbe5,_0x4e5815=_0xc33491&&_0xc33491['rows']?_0xc33491[_0x1c507d(0x28b8)]:[];if(!_0x28c606()['isEmpty'](_0x4e5815)){const _0xa1f776=_0x28c606()(_0x4e5815)['filter'](function(_0x25a084){const _0x14b89e=_0x1c507d;return _0x25a084[_0x14b89e(0xe49)]&&_0x28c606()[_0x14b89e(0x68a)](_0x1b939d,_0x25a084['category']);})[_0x1c507d(0xafa)](function(_0x284d45){const _0x45b558=_0x1c507d;return _0x284d45[_0x45b558(0x1f3e)];})[_0x1c507d(0x1de5)](function(_0x1aff7c){const _0x3c1116=_0x1c507d;return _0x1aff7c[_0x3c1116(0x1f3e)];})[_0x1c507d(0x1096)]();_0xa1f776[_0x1c507d(0x1397)](function(_0x16586c){_0x2d9c92[_0x16586c]=!![];}),_0x242be2(_0x2d9c92);}else _0x242be2({});})[_0x2ecbe5(0x20cd)](function(_0x14c0ee){_0x261f36(_0x14c0ee);});});}function _0x13a406(){const _0x5edd55=a0_0x4127;return _0x3ac2d0[_0x5edd55(0x294)][_0x5edd55(0xee0)]||_0x5edd55(0xfba);}function _0x3be164(_0x935008){const _0x2db670=a0_0x4127;_0x3ac2d0[_0x2db670(0x294)][_0x2db670(0xee0)]=_0x935008;}function _0x3ad626(_0x21c5b2){const _0x1b4fe0=a0_0x4127;return _0x3be164('SSO_LOGIN'),_0x1b4fe0(0x178d)+_0x21c5b2;}}const _0x20caca=_0x57ae36;;_0x42de93[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0xf2e)];function _0x42de93(_0x5e3e73,_0x196916){const _0x4cee19=_0x49a1e3,_0xa46938=this;function _0x226be6(_0xd3f984){_0x5e3e73['hide'](_0xd3f984);}_0xa46938['telephones']=_0x196916,_0xa46938[_0x4cee19(0x16cb)]=_0x226be6,_0x196916[_0x4cee19(0xb90)]&&(_0xa46938[_0x4cee19(0x2494)]=_0x196916['rows'][0x0][_0x4cee19(0x2494)]);}const _0x1bf80a=_0x42de93;;_0x5583fe[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x2159),'$q',_0x49a1e3(0x7a7),'$injector',_0x49a1e3(0x149e)];function _0x5583fe(_0x13385e,_0x2588eb,_0xe35780,_0x20dda7,_0x4693c5){let _0x4f4378;return{'request':function(_0x43d97d){const _0x2eaab7=a0_0x4127,_0x350fe4=_0xe35780[_0x2eaab7(0x896)](_0x2eaab7(0x283d));return _0x43d97d[_0x2eaab7(0x1de3)]=_0x43d97d['headers']||{},(![]||_0x4693c5[_0x2eaab7(0x1bdf)](_0x43d97d[_0x2eaab7(0x2761)]))&&_0x350fe4&&(_0x43d97d['headers'][_0x2eaab7(0x699)]=_0x2eaab7(0x28cb)+_0x350fe4),_0x43d97d;},'responseError':function(_0x1b636d){const _0x2ed475=a0_0x4127;switch(_0x1b636d[_0x2ed475(0x10b3)]){case 0x191:_0xe35780[_0x2ed475(0x21c7)](_0x2ed475(0x283d)),(_0x4f4378||(_0x4f4378=_0x20dda7[_0x2ed475(0x896)]('$state')))['go']('app.login');break;case 0x194:break;default:break;}return _0x2588eb['reject'](_0x1b636d);}};}const _0x5cca63=_0x5583fe;;_0x461ca3[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1fe7)];function _0x461ca3(_0x328b2b){const _0x4e0f72={'safeCb':function(_0x1a94da){const _0x2ac230=a0_0x4127;return angular['isFunction'](_0x1a94da)?_0x1a94da:angular[_0x2ac230(0xbb6)];},'urlParse':function(_0x49109b){const _0x599d29=a0_0x4127,_0x5ee9fa=document[_0x599d29(0x2978)]('a');return _0x5ee9fa[_0x599d29(0x25d0)]=_0x49109b,_0x5ee9fa['host']===''&&(_0x5ee9fa[_0x599d29(0x25d0)]=_0x5ee9fa[_0x599d29(0x25d0)]),_0x5ee9fa;},'isSameOrigin':function(_0x3826ce,_0x3c7b1c){const _0x51e940=a0_0x4127;return _0x3826ce=_0x4e0f72[_0x51e940(0xcad)](_0x3826ce),_0x3c7b1c=_0x3c7b1c&&[][_0x51e940(0x2808)](_0x3c7b1c)||[],_0x3c7b1c=_0x3c7b1c[_0x51e940(0x1de5)](_0x4e0f72[_0x51e940(0xcad)]),_0x3c7b1c[_0x51e940(0x1954)](_0x328b2b['location']),_0x3c7b1c=_0x3c7b1c[_0x51e940(0xcec)](function(_0x14c130){const _0x413abd=_0x51e940,_0x6d863d=_0x3826ce[_0x413abd(0x10b)]===_0x14c130[_0x413abd(0x10b)],_0x24fe3=_0x3826ce['protocol']===_0x14c130['protocol'],_0xd1d78a=_0x3826ce['port']===_0x14c130[_0x413abd(0x23f2)]||_0x14c130[_0x413abd(0x23f2)]===''&&(_0x3826ce[_0x413abd(0x23f2)]==='80'||_0x3826ce[_0x413abd(0x23f2)]===_0x413abd(0xbf9));return _0x6d863d&&_0x24fe3&&_0xd1d78a;}),_0x3c7b1c[_0x51e940(0x1b9e)]>=0x1;}};return _0x4e0f72;}const _0xa93fc9=_0x461ca3;;angular[_0x49a1e3(0x20d2)]('app.auth',[])[_0x49a1e3(0x3d3)](_0x35909a)[_0x49a1e3(0x1a43)](_0x2e7bf1)[_0x49a1e3(0x646)](_0x49a1e3(0xdcf),_0x20caca)[_0x49a1e3(0x38e)]('HotDeskDialogController',_0x1bf80a)[_0x49a1e3(0x646)]('authInterceptor',_0x5cca63)[_0x49a1e3(0x646)](_0x49a1e3(0x149e),_0xa93fc9);var _0x4f8c13=_0x2e4a48(0xca2),_0x1a4682=_0x2e4a48(0x1e94),_0x273ff6=_0x2e4a48(0x1e80),_0x6f1ee1=_0x2e4a48(0x11ee),_0x2b73d9=_0x2e4a48(0x36e),_0x31b89e=_0x2e4a48(0x1bdb),_0x3c28b8=_0x2e4a48(0x1c17),_0x162b3f=_0x2e4a48(0x813),_0x181466=_0x2e4a48(0xdff),_0x51215f=_0x2e4a48(0x251),_0x5c9cfc=_0x2e4a48(0xdf),_0x2e91cd=_0x2e4a48(0x1299),_0x55e4ca=_0x2e4a48(0x177),_0x177a1f=_0x2e4a48(0x573);;function _0x3e2653(){const _0x46ff93=_0x49a1e3;let _0x2622ef={'disableCustomScrollbars':![],'disableMdInkRippleOnMobile':!![],'disableCustomScrollbarsOnMobile':!![]};function _0x2ecfa1(_0x5df229){const _0x8a4d8d=a0_0x4127;_0x2622ef=angular[_0x8a4d8d(0x1c69)]({},_0x2622ef,_0x5df229);}function _0x29b0df(_0xbd7983){if(angular['isUndefined'](_0x2622ef[_0xbd7983]))return![];return _0x2622ef[_0xbd7983];}function _0x352c05(_0x1b1ca0,_0x2f0727){_0x2622ef[_0x1b1ca0]=_0x2f0727;}this['$get']=function(){const _0x4ae18b={'getConfig':_0x29b0df,'setConfig':_0x352c05};return _0x4ae18b;},this[_0x46ff93(0x3d3)]=_0x2ecfa1;}const _0x1eeca0=_0x3e2653;;_0x502b67[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x111b),_0x49a1e3(0x12b9),_0x49a1e3(0x7de),'motionConfigProvider'];function _0x502b67(_0x117fca,_0x3a1e49,_0x2d54b5,_0x68b2d6){const _0x3f68a9=_0x49a1e3;_0x3a1e49['debugEnabled'](!![]),_0x117fca['config']({'tabindex':![]}),_0x68b2d6[_0x3f68a9(0x3d3)]({'disableCustomScrollbars':![],'disableCustomScrollbarsOnMobile':!![],'disableMdInkRippleOnMobile':!![]}),_0x2d54b5['config']({'wheelPropagation':!![]});}const _0x480071=_0x502b67;;_0x479c25[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1214),_0x49a1e3(0x1264),_0x49a1e3(0x24ed)];function _0x479c25(_0x286ab7,_0x1e618c,_0x1e461e){const _0x259f87=_0x49a1e3;_0x1e618c[_0x259f87(0x2686)]();if(_0x1e461e[_0x259f87(0x28cc)](_0x259f87(0x1d67))&&_0x286ab7[_0x259f87(0x14c9)]()){const _0x16dd81=angular['element']('body');_0x16dd81[_0x259f87(0x24ac)](_0x259f87(0x26b5),!![]);}_0x286ab7[_0x259f87(0x14c9)]()&&angular['element'](_0x259f87(0x1dd2))[_0x259f87(0xb6f)](_0x259f87(0x1b4f));const _0x14bb3e=_0x286ab7['detectBrowser']();if(_0x14bb3e){const _0x1053a1=_0x14bb3e[_0x259f87(0x1bbc)]+'\x20'+_0x14bb3e[_0x259f87(0x12a3)]+'\x20'+_0x14bb3e['os'];angular['element'](_0x259f87(0x1dd2))[_0x259f87(0xb6f)](_0x1053a1);}}const _0x2258e7=_0x479c25;;_0x556b7a[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1fe7),_0x49a1e3(0x212a),'Auth',_0x49a1e3(0x10c2),_0x49a1e3(0xf26),'storagePath'];function _0x556b7a(_0x3432c3,_0xf63ae7,_0x2231af,_0x168efe,_0x2af79d,_0x444499){const _0x50d328=_0x49a1e3,_0x216d75=this;_0x216d75[_0x50d328(0x1d3d)]=_0x2231af['getCurrentUser'](),_0x216d75[_0x50d328(0x631)]={'matchType':_0x50d328(0x39d),'conditions':[],'fields':_0x2af79d},_0x216d75[_0x50d328(0x61e)]=_0x168efe,_0x216d75[_0x50d328(0x2483)]=_0x464a10,_0x216d75[_0x50d328(0x2980)]=_0x22b743,_0x216d75[_0x50d328(0xcc3)]=_0x2e2ba8,_0x216d75[_0x50d328(0x567)]=_0x39a241,_0x216d75[_0x50d328(0x67b)]=_0x338db7;function _0x464a10(){const _0x39dc63=_0x50d328;if(_0x444499){const _0x2853f9=_0x4894aa();typeof _0x2853f9[_0x39dc63(0x1b2f)]!==_0x39dc63(0x19a1)&&(_0x216d75[_0x39dc63(0x631)]=_0x28c606()['merge'](_0x216d75[_0x39dc63(0x631)],_0x2853f9[_0x39dc63(0x1b2f)]));}}function _0x22b743(){const _0x2549e3=_0x50d328,_0x4c62d9=_0x28c606()[_0x2549e3(0xcec)](_0x216d75[_0x2549e3(0x631)][_0x2549e3(0xee1)],['disabled',![]]);let _0xff5edc='['+_0x216d75['searchOptions'][_0x2549e3(0x1064)]+']';const _0x978934=[];let _0x1ef6e2='';_0x28c606()(_0x4c62d9)[_0x2549e3(0x156d)](_0x2549e3(0x2494))[_0x2549e3(0x1397)](function(_0x999537){const _0x490796=_0x2549e3,_0x2f43e6=_0x999537[0x0],_0x15ef9d=_0x999537[_0x490796(0x1b9e)]>0x1?!![]:![],_0x4d13e5=_0x2f43e6[_0x490796(0x289a)][_0x490796(0xacf)];if(_0x15ef9d){const _0x46e0df=_0x28c606()(_0x999537)[_0x490796(0x156d)](function(_0x585ee8){const _0x54fc35=_0x490796;return _0x585ee8['query'][_0x54fc35(0x8d1)];})[_0x490796(0x239c)](function(_0x17635f){const _0x5b805c=_0x490796;return _0x28c606()[_0x5b805c(0x1b0a)](_0x17635f)[_0x5b805c(0x1de5)](function(_0x1bac9a){const _0xe563ec=_0x5b805c;return _0x1bac9a[_0xe563ec(0x289a)][_0xe563ec(0x1096)];})[_0x5b805c(0x2e1)]()[_0x5b805c(0x1096)]();})[_0x490796(0x1096)](),_0x51a2fe=[];_0x28c606()[_0x490796(0x1ec6)](_0x46e0df)[_0x490796(0x1397)](function(_0x35fbce){const _0x3a784e=_0x490796,_0x10c30c=_0x46e0df[_0x35fbce];let _0x54c764=_0x35fbce;_0x28c606()[_0x3a784e(0x68a)]([_0x3a784e(0x2062),_0x3a784e(0x612),'$notIn'],_0x35fbce)?_0x54c764+='['+_0x10c30c+']':_0x10c30c['forEach'](function(_0x28c0f6){_0x54c764+='['+_0x28c0f6+']';}),_0x51a2fe[_0x3a784e(0x1954)](_0x54c764);}),_0x1ef6e2+=_0x4d13e5+':='+_0x51a2fe[_0x490796(0x9a6)](':=');}else _0x1ef6e2=_0x4d13e5+':='+_0x2f43e6[_0x490796(0x289a)][_0x490796(0x8d1)]+'['+_0x2f43e6[_0x490796(0x289a)][_0x490796(0x1096)]+']';_0x978934[_0x490796(0x1954)](_0x1ef6e2);}),_0xff5edc+=_0x978934[_0x2549e3(0x9a6)]('||'),_0x1dc1d9(),_0xf63ae7[_0x2549e3(0x268e)](_0xff5edc);}function _0x2e2ba8(){const _0x457d0c=_0x50d328;_0x216d75[_0x457d0c(0x631)]['conditions']=[],_0x5678af();}function _0x39a241(){const _0x4701c8=_0x50d328;_0x1dc1d9(),_0xf63ae7[_0x4701c8(0x268e)]();}function _0x338db7(){_0xf63ae7['hide'](![]);}function _0x4894aa(){const _0x4312d2=_0x50d328,_0x2adf2f=_0x3432c3[_0x4312d2(0x294)][_0x4312d2(0x1ed0)](_0x4312d2(0x903)+_0x444499+':'+_0x216d75[_0x4312d2(0x1d3d)]['id']);return _0x2adf2f?JSON[_0x4312d2(0x27f1)](_0x2adf2f):{};}function _0x2945e1(_0x25a323){const _0x29f4ac=_0x50d328;_0x3432c3[_0x29f4ac(0x294)][_0x29f4ac(0x15da)](_0x29f4ac(0x903)+_0x444499+':'+_0x216d75[_0x29f4ac(0x1d3d)]['id'],JSON[_0x29f4ac(0x2317)](_0x25a323));}function _0x1dc1d9(){const _0x1e53cc=_0x50d328;if(_0x444499){const _0x4d5e0a=_0x4894aa();_0x4d5e0a[_0x1e53cc(0x1b2f)]=_0x28c606()[_0x1e53cc(0xd09)](_0x216d75[_0x1e53cc(0x631)],_0x1e53cc(0xf26)),_0x2945e1(_0x4d5e0a);}}function _0x5678af(){const _0x44bda1=_0x50d328;if(_0x444499){const _0x2b3542=_0x4894aa();delete _0x2b3542[_0x44bda1(0x1b2f)];if(_0x2b3542[_0x44bda1(0x289a)])delete _0x2b3542[_0x44bda1(0x289a)][_0x44bda1(0xb58)];_0x2945e1(_0x2b3542);}}}const _0x1d754d=_0x556b7a;;_0x575e25[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20d4)];function _0x575e25(_0x523e03){return{'restrict':'A','link':function(_0x374ef3,_0x19961e,_0x433fe2){const _0x537c52=a0_0x4127;_0x374ef3[_0x537c52(0xc62)](_0x433fe2[_0x537c52(0x218f)],function(_0x2a6b0b){_0x523e03(function(){const _0x3f3936=a0_0x4127;_0x2a6b0b?_0x19961e[0x0][_0x3f3936(0x97f)]():_0x19961e[0x0][_0x3f3936(0x12e8)]();});});}};}const _0xb7c004=_0x575e25;var _0x178d90=_0x2e4a48(0x1433),_0x155d6f=_0x2e4a48['n'](_0x178d90);;_0x547219[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20d4),'$q','$interpolate'];function _0x547219(_0x1ec42c,_0x283dbb,_0x314691){return{'restrict':'E','compile':function(_0x4525e1,_0x4f23d0){const _0x2dd283=a0_0x4127;let _0x57b04a;return!_0x4f23d0[_0x2dd283(0x741)]&&(_0x57b04a=_0x4525e1[_0x2dd283(0x1dd2)](),_0x4525e1[_0x2dd283(0x160d)]()),function(_0x8d4e07,_0xa30c00,_0x5e0818){const _0x43623d=_0x2dd283;_0x5e0818['code']&&(_0x57b04a=_0x8d4e07['$eval'](_0x5e0818[_0x43623d(0x741)]));const _0x3c7eb9=_0x8d4e07[_0x43623d(0x11a1)](_0x5e0818[_0x43623d(0x63f)]);_0x283dbb[_0x43623d(0x1483)](_0x57b04a)[_0x43623d(0x64a)](function(_0x2feeaf){const _0x434a10=_0x43623d;if(_0x2feeaf){_0x3c7eb9&&(_0x2feeaf=_0x314691(_0x2feeaf)(_0x8d4e07));const _0x24386c=angular['element'](_0x434a10(0x27eb));_0xa30c00[_0x434a10(0x1d30)](_0x24386c),_0x1ec42c(function(){_0x19ccd6(_0x2feeaf,_0x24386c);},0x22,![]);}});function _0x19ccd6(_0x27e461,_0x582496){const _0x25c39d=_0x43623d,_0x423337=_0x582496[_0x25c39d(0x27bc)]('code');let _0x54e311=_0x27e461[_0x25c39d(0x282c)]('\x0a');_0x54e311=_0x54e311[_0x25c39d(0xcec)](function(_0x4e1020){const _0xecea32=_0x25c39d;return _0x4e1020[_0xecea32(0xd66)]()[_0xecea32(0x1b9e)];});const _0x15f767=_0x54e311[0x0][_0x25c39d(0xe00)](/^\s*/)[0x0],_0x272523=new RegExp('^'+_0x15f767);_0x54e311=_0x54e311[_0x25c39d(0x1de5)](function(_0x25c51d){const _0x35453a=_0x25c39d;return _0x25c51d[_0x35453a(0x1353)](_0x272523,'')['replace'](/\s+$/,'');});const _0x35d739=_0x155d6f()[_0x25c39d(0x23f0)](_0x5e0818[_0x25c39d(0x1cbd)]||_0x5e0818[_0x25c39d(0x134)],_0x54e311[_0x25c39d(0x9a6)]('\x0a'),!![]);_0x35d739[_0x25c39d(0x1096)]=_0x35d739[_0x25c39d(0x1096)][_0x25c39d(0x1353)](/=""<\/span>/gi,'')[_0x25c39d(0x1353)](_0x25c39d(0x453),'')[_0x25c39d(0x1353)](_0x25c39d(0x209),''),_0x423337[_0x25c39d(0x1d30)](_0x35d739[_0x25c39d(0x1096)])[_0x25c39d(0xb6f)]('highlight');}};}};}const _0x44e03e=_0x547219;;const _0x46f3d2=_0x2e4a48['p']+_0x49a1e3(0x2490);;_0x3465f2[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x298c),'$q','api',_0x49a1e3(0x680)];function _0x4d2952(){return{'restrict':'E','scope':{'options':'=','clearFilter':'&'},'controller':_0x3465f2,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x46f3d2};}function _0x3465f2(_0x36de93,_0x115cef,_0x516789,_0x3f3ef1){const _0x42c58c=_0x49a1e3,_0x40380a=this;_0x40380a[_0x42c58c(0x28a4)]=[{'type':'$eq','symbol':'=','translate':_0x42c58c(0x3bf),'excludeFrom':['multiselect']},{'type':_0x42c58c(0x14b5),'symbol':'≠','translate':_0x42c58c(0xd8c),'excludeFrom':[_0x42c58c(0x20ae)]},{'type':_0x42c58c(0x612),'symbol':'∈','translate':_0x42c58c(0x362),'applyTo':[_0x42c58c(0x20ae)]},{'type':_0x42c58c(0x9eb),'symbol':'∉','translate':_0x42c58c(0x2034),'applyTo':[_0x42c58c(0x20ae)]},{'type':'$substring','symbol':'⊃','translate':_0x42c58c(0x9a5),'applyTo':[_0x42c58c(0x39b)]},{'type':'$startsWith','symbol':_0x42c58c(0x1cec),'translate':_0x42c58c(0x1d2f),'applyTo':[_0x42c58c(0x39b)]},{'type':_0x42c58c(0x265),'symbol':_0x42c58c(0x86d),'translate':_0x42c58c(0x1ad7),'applyTo':[_0x42c58c(0x39b)]},{'type':_0x42c58c(0x184d),'symbol':'<','translate':_0x42c58c(0x136),'applyTo':[_0x42c58c(0x232e),'number']},{'type':_0x42c58c(0xb0f),'symbol':'>','translate':_0x42c58c(0x1a97),'applyTo':[_0x42c58c(0x232e),'number']},{'type':_0x42c58c(0x1fde),'symbol':'≤','translate':_0x42c58c(0x859),'applyTo':[_0x42c58c(0x232e),_0x42c58c(0x2113)]},{'type':_0x42c58c(0xc76),'symbol':'≥','translate':'IS_GREATER_THAN_OR_EQUAL_TO','applyTo':[_0x42c58c(0x232e),_0x42c58c(0x2113)]},{'type':'$between','symbol':'≬','translate':_0x42c58c(0x1e79),'applyTo':[_0x42c58c(0x232e),'number']}],_0x40380a[_0x42c58c(0x1212)]=_0x40380a[_0x42c58c(0x28a4)],_0x40380a['addCondition']=_0x27c5e8,_0x40380a['editCondition']=_0x299579,_0x40380a[_0x42c58c(0x2456)]=_0x52616f,_0x40380a[_0x42c58c(0x27ad)]=_0x267c65,_0x40380a[_0x42c58c(0xdb9)]=_0x2b0fea,_0x40380a['removeCondition']=_0x291cd3,_0x40380a[_0x42c58c(0x1235)]=_0x5f5579,_0x40380a[_0x42c58c(0x294f)]=_0xe54e57,_0x40380a[_0x42c58c(0x1f89)]=_0x2d2c9d,_0x40380a['onValueChange']=_0x19df6a,_0x40380a[_0x42c58c(0x1cbb)]=_0x276f8d,_0x40380a['handleKeyboardAction']=_0x287fce;function _0xe54e57(){const _0x50e4cc=_0x42c58c;_0x40380a[_0x50e4cc(0x1096)]=undefined,_0x40380a[_0x50e4cc(0x10e7)]=undefined,_0x40380a['searchText']=undefined,_0x40380a['isValidCondition']=![],_0x4c9fef(),_0x40380a[_0x50e4cc(0x6b0)]=_0x40380a[_0x50e4cc(0x28a4)][_0x50e4cc(0x1b9e)]===0x1?!![]:![];if(!_0x40380a[_0x50e4cc(0x6b0)])_0x40380a[_0x50e4cc(0x1368)]=undefined;}function _0x2d2c9d(_0x43ac61){const _0x1bec1f=_0x42c58c;_0x40380a[_0x1bec1f(0x1d2e)]=!![],_0x40380a[_0x1bec1f(0x1368)]&&(_0x43ac61?_0x43ac61['applyTo']?_0x28c606()[_0x1bec1f(0xde7)](_0x40380a[_0x1bec1f(0x1368)][_0x1bec1f(0x1eca)],_0x43ac61[_0x1bec1f(0x1eca)])[_0x1bec1f(0x1b9e)]>0x0&&(_0x40380a[_0x1bec1f(0x1096)]=null):_0x40380a[_0x1bec1f(0x1368)]['applyTo']&&(_0x40380a[_0x1bec1f(0x1096)]=null):_0x40380a[_0x1bec1f(0x1096)]=null,_0x40380a[_0x1bec1f(0x1368)][_0x1bec1f(0x2185)]!='between'&&(_0x40380a[_0x1bec1f(0x10e7)]=null),_0x40380a[_0x1bec1f(0xb3c)]['options']&&!_0x28c606()[_0x1bec1f(0x940)](_0x40380a[_0x1bec1f(0xb3c)][_0x1bec1f(0x59e)]['extraOperators'])&&(_0x40380a[_0x1bec1f(0x1368)][_0x1bec1f(0xe9a)]=_0x28c606()['some'](_0x40380a[_0x1bec1f(0xb3c)]['options'][_0x1bec1f(0x7db)],function(_0x557e79){const _0x52f4d7=_0x1bec1f;return _0x557e79===_0x40380a[_0x52f4d7(0x1368)][_0x52f4d7(0x2185)];}))),_0x41c72a();}function _0x19df6a(){const _0x2e37e9=_0x42c58c;if(_0x40380a[_0x2e37e9(0x1368)]&&_0x40380a[_0x2e37e9(0x1368)][_0x2e37e9(0x2185)]===_0x2e37e9(0x2062)){if(_0x40380a['selectedField'][_0x2e37e9(0x2185)]==='number')_0x276f8d();else _0x40380a[_0x2e37e9(0xb3c)][_0x2e37e9(0x2185)]===_0x2e37e9(0x232e)&&(_0x40380a[_0x2e37e9(0x2817)]=_0x2ac33a()(_0x40380a[_0x2e37e9(0x1096)])['add'](0x1,'day'),_0x41c72a());}else _0x41c72a();}function _0x4c9fef(){const _0x592c7a=_0x42c58c,_0x320e72=_0x40380a[_0x592c7a(0xb3c)][_0x592c7a(0x59e)]&&!_0x28c606()['isEmpty'](_0x40380a['selectedField'][_0x592c7a(0x59e)][_0x592c7a(0x7db)]),_0x39c1f3=_0x40380a[_0x592c7a(0xb3c)][_0x592c7a(0x59e)]&&!_0x28c606()[_0x592c7a(0x940)](_0x40380a[_0x592c7a(0xb3c)][_0x592c7a(0x59e)][_0x592c7a(0xce9)]);_0x40380a[_0x592c7a(0x28a4)]=_0x28c606()[_0x592c7a(0xcec)](_0x40380a[_0x592c7a(0x1212)],function(_0x180c3e){const _0x32eecf=_0x592c7a,_0x23f40f=!_0x180c3e['applyTo']||_0x28c606()['includes'](_0x180c3e[_0x32eecf(0x1eca)],_0x40380a[_0x32eecf(0xb3c)]['type']);_0x180c3e[_0x32eecf(0xe9a)]=_0x320e72&&_0x28c606()[_0x32eecf(0x25f8)](_0x40380a[_0x32eecf(0xb3c)][_0x32eecf(0x59e)]['extraOperators'],function(_0x429ea4){return _0x429ea4===_0x180c3e['type'];});const _0x3e76fa=_0x28c606()['includes'](_0x180c3e[_0x32eecf(0x1574)],_0x40380a['selectedField'][_0x32eecf(0x2185)])||_0x39c1f3&&_0x28c606()[_0x32eecf(0x68a)](_0x40380a['selectedField']['options'][_0x32eecf(0xce9)],_0x180c3e[_0x32eecf(0x2185)]);if((_0x23f40f||_0x180c3e[_0x32eecf(0xe9a)])&&!_0x3e76fa)return _0x180c3e;});}function _0x5f5579(){const _0x493cf6=_0x42c58c,_0x5eaf57=angular[_0x493cf6(0x289e)](_0x40380a[_0x493cf6(0xb3c)][_0x493cf6(0x59e)][_0x493cf6(0xb5a)]);if(_0x40380a[_0x493cf6(0xb3c)][_0x493cf6(0x2185)]===_0x493cf6(0x21b7))for(let _0x5899ff=0x0;_0x5899ffNumber(_0x40380a[_0x4c9437(0x1096)])?!![]:![]:_0x40380a[_0x4c9437(0x1d2e)]=!![];else _0x40380a['selectedField'][_0x4c9437(0x2185)]===_0x4c9437(0x232e)&&(_0x40380a[_0x4c9437(0x1ed5)]=_0x2ac33a()(_0x40380a[_0x4c9437(0x10e7)])[_0x4c9437(0x1219)](0x1,_0x4c9437(0x2784)),_0x40380a['isValidRange']=!![]);_0x41c72a();}function _0x27c5e8(){const _0x35a2c0=_0x42c58c,_0x47da12=_0x3106b8();_0x40380a[_0x35a2c0(0x59e)][_0x35a2c0(0xee1)][_0x35a2c0(0x1954)](_0x47da12),_0x1f2a51();}function _0x299579(_0x59f609){const _0x2ec035=_0x42c58c;_0x40380a[_0x2ec035(0xadb)]=_0x59f609,_0x40380a[_0x2ec035(0xadb)][_0x2ec035(0xaa2)]='md-amber-200-bg',_0x40380a['selectedField']=_0x28c606()[_0x2ec035(0x27bc)](_0x40380a['options'][_0x2ec035(0xf26)],[_0x2ec035(0x2494),_0x40380a[_0x2ec035(0xadb)][_0x2ec035(0x2494)]]),_0x4c9fef(),_0x40380a[_0x2ec035(0x1368)]=_0x28c606()[_0x2ec035(0x27bc)](_0x40380a['availableOperators'],[_0x2ec035(0x2185),_0x40380a[_0x2ec035(0xadb)][_0x2ec035(0x289a)][_0x2ec035(0x8d1)]]),_0x40380a[_0x2ec035(0xb3c)][_0x2ec035(0x2185)]===_0x2ec035(0x232e)&&typeof _0x40380a[_0x2ec035(0xadb)][_0x2ec035(0x1096)]===_0x2ec035(0x108c)?(_0x40380a[_0x2ec035(0x1096)]=new Date(_0x40380a['pendingCondition'][_0x2ec035(0x1096)]),_0x40380a[_0x2ec035(0x2817)]=_0x2ac33a()(_0x40380a[_0x2ec035(0x1096)])[_0x2ec035(0x25df)](0x1,_0x2ec035(0x2784)),_0x40380a[_0x2ec035(0x10e7)]=_0x40380a[_0x2ec035(0xadb)][_0x2ec035(0x12ea)]?new Date(_0x40380a[_0x2ec035(0xadb)][_0x2ec035(0x12ea)]):undefined):(_0x40380a[_0x2ec035(0x1096)]=_0x40380a[_0x2ec035(0xadb)][_0x2ec035(0x1096)],_0x40380a[_0x2ec035(0x10e7)]=_0x40380a[_0x2ec035(0xadb)][_0x2ec035(0x12ea)]),_0x40380a[_0x2ec035(0x1d2e)]=!![],_0x40380a['isValidCondition']=!![];}function _0x52616f(){const _0x59666d=_0x42c58c,_0x409733=_0x3106b8(),_0x89907c=_0x28c606()[_0x59666d(0xb10)](_0x40380a[_0x59666d(0x59e)][_0x59666d(0xee1)],_0x59666d(0xaa2));_0x40380a[_0x59666d(0x59e)][_0x59666d(0xee1)]['splice'](_0x89907c,0x1,_0x409733),_0x1f2a51(),_0x40380a[_0x59666d(0xadb)]['style']=null,_0x40380a[_0x59666d(0xadb)]=undefined;}function _0x267c65(){const _0x521bcb=_0x42c58c;_0x40380a[_0x521bcb(0xadb)][_0x521bcb(0xaa2)]=null,_0x40380a[_0x521bcb(0xadb)]=undefined;}function _0x2b0fea(_0x176449){const _0x338db5=_0x42c58c;_0x176449[_0x338db5(0xaa2)]=_0x176449[_0x338db5(0x1a95)]?undefined:_0x338db5(0x235a),_0x176449[_0x338db5(0x1a95)]=!_0x176449[_0x338db5(0x1a95)];}function _0x291cd3(){const _0x11b3ce=_0x42c58c;if(_0x28c606()[_0x11b3ce(0x940)](_0x40380a['options'][_0x11b3ce(0xee1)]))_0x40380a[_0x11b3ce(0x2165)]();}function _0x287fce(){const _0x5f3f1a=_0x42c58c;_0x40380a[_0x5f3f1a(0xadb)]?_0x52616f():_0x27c5e8();}function _0x3106b8(){const _0x1ba146=_0x42c58c;return{'name':_0x40380a[_0x1ba146(0xb3c)][_0x1ba146(0x2494)],'operator':_0x36de93[_0x1ba146(0x2292)](_0x1ba146(0x35d)+_0x40380a[_0x1ba146(0x1368)][_0x1ba146(0x1f28)]),'value':_0x40380a[_0x1ba146(0x1096)],'endValue':_0x40380a[_0x1ba146(0x10e7)],'displayValue':_0x1c6931(_0x40380a[_0x1ba146(0x1096)]),'displayEndValue':_0x1c6931(_0x40380a[_0x1ba146(0x10e7)]),'query':{'column':_0x40380a[_0x1ba146(0xb3c)][_0x1ba146(0xacf)],'operator':_0x40380a[_0x1ba146(0x1368)][_0x1ba146(0x2185)],'value':_0x159bcf()},'disabled':![]};}function _0x1c6931(_0x1458b8){const _0x1ef43f=_0x42c58c;let _0xd90a3b;if(!_0x1458b8)return undefined;switch(_0x40380a['selectedField'][_0x1ef43f(0x2185)]){case _0x1ef43f(0x232e):_0xd90a3b=_0x2ac33a()(_0x1458b8)[_0x1ef43f(0x1c2c)](_0x1ef43f(0x286b));break;case _0x1ef43f(0x20ae):{const _0x3f09e6=_0x28c606()[_0x1ef43f(0x1de5)](_0x1458b8,function(_0x1142fd){return _0x1142fd['name'];});_0xd90a3b=_0x40380a[_0x1ef43f(0x1368)][_0x1ef43f(0x2185)]==='$eq'?_0x3f09e6[_0x1ef43f(0x9a6)](_0x1ef43f(0xfcf)):_0x3f09e6[_0x1ef43f(0x9a6)]('\x20and\x20');}break;case _0x1ef43f(0x2926):_0xd90a3b=_0x1458b8[_0x1ef43f(0x2494)];break;case'autocomplete':_0xd90a3b=_0x40380a[_0x1ef43f(0x1368)]['isExtra']?_0x1458b8:_0x1458b8[_0x1ef43f(0xb4d)];break;default:_0xd90a3b=_0x1458b8;break;}return _0xd90a3b;}function _0x159bcf(){const _0x3995e0=_0x42c58c,_0x36c90a=_0x40380a[_0x3995e0(0x1096)],_0x4c616a=_0x40380a[_0x3995e0(0x10e7)];let _0x5dde51;switch(_0x40380a['selectedField'][_0x3995e0(0x2185)]){case _0x3995e0(0x232e):{const _0x4b0b74=_0x2ac33a()(_0x36c90a)[_0x3995e0(0xebc)](0x0,!![])[_0x3995e0(0x1c2c)](_0x3995e0(0x286b));if(_0x40380a['selectedOperator']['type']==='$between'){const _0x2e8df7=_0x2ac33a()(_0x4c616a)[_0x3995e0(0xebc)](0x0,!![])[_0x3995e0(0x1c2c)]('YYYY-MM-DD');_0x5dde51=[_0x4b0b74,_0x2e8df7];}else _0x5dde51=_0x4b0b74;}break;case'number':_0x5dde51=_0x40380a[_0x3995e0(0x1368)][_0x3995e0(0x2185)]==='$between'?[_0x36c90a,_0x4c616a]:_0x36c90a;break;case _0x3995e0(0x20ae):{const _0x5340fa=_0x40380a[_0x3995e0(0xb3c)]['options']['field']||'id';_0x5dde51=_0x28c606()[_0x3995e0(0x1de5)](_0x36c90a,_0x5340fa);}break;case'select':_0x5dde51=_0x36c90a['id'];break;case _0x3995e0(0x21b7):_0x5dde51=_0x40380a[_0x3995e0(0x1368)]['isExtra']?_0x36c90a:_0x36c90a['id'];break;default:_0x5dde51=_0x36c90a;break;}return _0x5dde51;}function _0x1f2a51(){const _0x20b327=_0x42c58c;_0x40380a[_0x20b327(0x1096)]=null,_0x40380a[_0x20b327(0x10e7)]=null,_0x40380a[_0x20b327(0x2817)]=null,_0x40380a[_0x20b327(0x1ed5)]=null,_0x40380a[_0x20b327(0x18c5)]=![];}}const _0x434a68=_0x4d2952;;function _0x3c8734(){const _0x1e79a9=_0x49a1e3;return{'restrict':'E','scope':{'templatePath':'=template','card':'=ngModel','vm':_0x1e79a9(0x1391)},'template':_0x1e79a9(0x1c4),'compile':function(_0x526c7d){const _0x535925=_0x1e79a9;return _0x526c7d['addClass'](_0x535925(0x1077)),function _0x3d3b4e(_0x2bd60a,_0x1f4ea4){const _0x342635=_0x535925;function _0x52bd66(){const _0x4ec7b2=a0_0x4127;_0x2bd60a[_0x4ec7b2(0x5de)](_0x4ec7b2(0x576),_0x1f4ea4);}_0x2bd60a[_0x342635(0x1c93)]=_0x52bd66;};}};}const _0x17b0af=_0x3c8734;;function _0x31ebd0(){return{'restrict':'A','link':function(_0xeae91d,_0x478601,_0x3cdbf7){const _0x4d2573=a0_0x4127;_0x3cdbf7['$observe'](_0x4d2573(0xc40),function(_0x3b28eb){const _0x1f57de=_0x4d2573,_0x90686b=_0x478601[_0x1f57de(0x2854)]()[_0x1f57de(0x2854)]();!_0x90686b[_0x1f57de(0x1a5a)](_0x1f57de(0x14ad))&&_0x90686b[_0x1f57de(0xb6f)](_0x1f57de(0x14ad));if(!_0x28c606()[_0x1f57de(0x940)](_0x3b28eb))_0x90686b['addClass'](_0x3b28eb);else{const _0x5b7377=_0x90686b[0x0][_0x1f57de(0x1db9)][_0x1f57de(0x282c)]('\x20'),_0x282af3=_0x5b7377[_0x1f57de(0x1b28)]('md-hue-3');_0x5b7377[_0x1f57de(0x1b9e)]=_0x282af3+0x1,_0x90686b[0x0][_0x1f57de(0x1db9)]=_0x5b7377[_0x1f57de(0x9a6)]('\x20');}});}};}const _0xb1f18a=_0x31ebd0;;const _0x5d6374=_0x2e4a48['p']+'src/js/modules/core/directives/ms-click-to-call/ms-click-to-call.html/ms-click-to-call.html';;const _0x57754d=_0x2e4a48['p']+_0x49a1e3(0x1b85);;function _0x196142(){const _0x1b5ce6=_0x49a1e3;return{'restrict':'E','scope':{'type':'=','disabled':'=','target':'=','prefix':'=','license':'='},'controller':[_0x1b5ce6(0x1674),'$rootScope',_0x1b5ce6(0xb74),_0x1b5ce6(0x298c),_0x1b5ce6(0x1373),'$mdDialog','Auth',_0x1b5ce6(0x680),_0x1b5ce6(0xa19),function(_0x1a71fe,_0x152bae,_0x49f22c,_0x71ae4a,_0x50896e,_0x82ce69,_0x13324e,_0x2791e7,_0x1f8ea3){const _0x1f967a=_0x1b5ce6;_0x1a71fe[_0x1f967a(0x1d3d)]=_0x13324e[_0x1f967a(0x808)](),_0x1a71fe[_0x1f967a(0x87a)]=function(){const _0x3deb64=_0x1f967a;return _0x1a71fe['target']&&_0x1a71fe[_0x3deb64(0x2497)]['indexOf']('@')<0x0&&_0x1a71fe[_0x3deb64(0x2497)]!=_0x1a71fe['currentUser']['internal']&&_0x1a71fe[_0x3deb64(0x2497)]!=_0x1a71fe[_0x3deb64(0x1d3d)][_0x3deb64(0x2494)]&&(_0x1a71fe[_0x3deb64(0x1d3d)][_0x3deb64(0xd6a)]==0x0&&_0x1a71fe['currentUser'][_0x3deb64(0xc11)]||_0x1a71fe[_0x3deb64(0x1d3d)][_0x3deb64(0xd6a)]==0x2&&_0x1a71fe['license'][_0x3deb64(0x31f)])&&!_0x1a71fe[_0x3deb64(0x1a95)];};function _0xf9e59d(_0x216b9d){const _0x16dca1=_0x1f967a;return _0x1f8ea3[_0x16dca1(0x2e8)][_0x16dca1(0xc93)]({'id':_0x1a71fe[_0x16dca1(0x1d3d)]['id']})[_0x16dca1(0x15e7)]['then'](function(_0x4c5fcc){const _0x38ea6e=_0x16dca1;if(_0x4c5fcc[_0x38ea6e(0xb90)])return _0x82ce69[_0x38ea6e(0xa60)]({'controller':'PrefixDialogController','controllerAs':'vm','templateUrl':_0x57754d,'parent':angular[_0x38ea6e(0x1f81)](_0x50896e[_0x38ea6e(0xb49)]),'clickOutsideToClose':!![],'locals':{'prefixes':_0x4c5fcc,'required':_0x1a71fe['currentUser'][_0x38ea6e(0xdad)]}});})['then'](function(_0x1765f8){const _0x270972=_0x16dca1;if(!_0x1a71fe[_0x270972(0x1d3d)]['phoneBarPrefixRequired']){if(_0x1765f8&&_0x1765f8!==-0x1)_0x198e3c(_0x1765f8+_0x216b9d);else!_0x1765f8&&_0x198e3c(_0x216b9d);}else _0x1765f8&&_0x1765f8!==-0x1&&_0x198e3c(_0x1765f8+_0x216b9d);});}function _0x198e3c(_0x32646a){const _0xd40490=_0x1f967a;switch(_0x1a71fe['currentUser'][_0xd40490(0xd6a)]){case 0x0:return _0x2bbbb4(_0xd40490(0x16a5)+(_0x1a71fe[_0xd40490(0x1d3d)][_0xd40490(0x11c2)]||'9888')+_0xd40490(0x1d53)+_0x13571d(_0x32646a));case 0x2:return _0x152bae[_0xd40490(0x1a2e)](_0xd40490(0x15bf),{'target':_0x13571d(_0x32646a)});default:break;}}_0x1a71fe[_0x1f967a(0x17f0)]=function(_0x2573e6){const _0x21546e=_0x1f967a;return _0x1a71fe[_0x21546e(0x1d3d)]['showWebBar']!==0x2?_0xf9e59d(_0x2573e6):_0x198e3c(_0x2573e6);},_0x1a71fe[_0x1f967a(0x16d6)]=function(_0x44662d){const _0x39563c=_0x1f967a;switch(_0x1a71fe['currentUser'][_0x39563c(0xd6a)]){case 0x0:return _0x2bbbb4(_0x39563c(0x16a5)+(_0x1a71fe[_0x39563c(0x1d3d)][_0x39563c(0x11c2)]||'9888')+'/api/transfer?number='+_0x13571d(_0x44662d));case 0x2:_0x152bae['$broadcast'](_0x39563c(0x1add),{'target':_0x13571d(_0x44662d)});break;default:break;}};function _0x13571d(_0x1cc26a){const _0x4a5da5=_0x1f967a;return!_0x28c606()[_0x4a5da5(0x28d7)](_0x1cc26a)?_0x1cc26a[_0x4a5da5(0x1353)](/[^\w.+#*-]+/g,''):'';}function _0x2bbbb4(_0x13c8fc){const _0x616707=_0x1f967a;return _0x49f22c[_0x616707(0x896)](_0x13c8fc)['success'](function(){const _0x27a962=_0x616707;_0x2791e7[_0x27a962(0x1339)]({'title':_0x27a962(0x211d),'msg':'Call\x20properly\x20handled!'});})[_0x616707(0x1bd0)](function(){const _0x4ba684=_0x616707;_0x2791e7['error']({'title':_0x4ba684(0x25c0),'msg':_0x71ae4a[_0x4ba684(0x2292)](_0x4ba684(0x23b1))});});}}],'templateUrl':_0x5d6374};}const _0x3e8281=_0x196142;;_0x1307df[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x19a7)];function _0x24ccb7(){const _0x150368=_0x49a1e3;_0x1209d8[_0x150368(0x1e73)]=['configuration'];const _0x27db0b=this;let _0x34c688={'formatter':function(_0x49b520){if(!_0x49b520)return'';return _0x49b520===''?_0x49b520:new Date(_0x49b520);},'parser':function(_0x54e456){const _0x449eff=_0x150368;if(!_0x54e456)return'';return _0x2ac33a()(_0x54e456)[_0x449eff(0x25df)](_0x2ac33a()(_0x54e456)['utcOffset'](),'m')[_0x449eff(0x1c04)]();}};function _0x1209d8(_0x142010){const _0x333c10=_0x150368;_0x34c688=angular[_0x333c10(0x1c69)]({},_0x34c688,_0x142010);}_0x27db0b['config']=_0x1209d8,_0x27db0b[_0x150368(0x4ed)]=function(){return _0x34c688;};}function _0x1307df(_0x3a480f){const _0x4809c7=_0x49a1e3;return{'require':_0x4809c7(0x24eb),'priority':0x1,'link':function(_0x45f4d0,_0x3a2852,_0x52d7aa,_0x50e1f8){const _0x386aed=_0x4809c7;_0x50e1f8[_0x386aed(0x264a)][_0x386aed(0x1954)](_0x3a480f[_0x386aed(0x11f7)]),_0x50e1f8['$parsers'][_0x386aed(0x1954)](_0x3a480f[_0x386aed(0x1815)]);}};};_0x47d0aa[_0x49a1e3(0x1e73)]=[_0x49a1e3(0xa19)];function _0x47d0aa(_0x35604e){return{'restrict':'E','scope':{'id':'=','model':'=','element':'=','title':'=','path':'='},'replace':!![],'link':function(_0x3827d6,_0x537bff){const _0x2cbe8a=a0_0x4127;let _0x3597af=![];const _0x57ff1e={};_0x57ff1e['id']=_0x3827d6['id'];!_0x28c606()[_0x2cbe8a(0x28d7)](_0x3827d6[_0x2cbe8a(0x1267)])&&(_0x57ff1e[_0x2cbe8a(0x1267)]=_0x3827d6['path']);const _0x2b416c=document[_0x2cbe8a(0x2978)](_0x3827d6[_0x2cbe8a(0x1f81)]);_0x2b416c['setAttribute']('preload',_0x2cbe8a(0x2507)),_0x2b416c[_0x2cbe8a(0x1280)]('controls',_0x2cbe8a(0x1685)),_0x3827d6[_0x2cbe8a(0x1f81)]===_0x2cbe8a(0x2240)&&_0x2b416c['setAttribute']('style',_0x2cbe8a(0x27e)),_0x3827d6['element']==='video'&&_0x2b416c[_0x2cbe8a(0x1280)](_0x2cbe8a(0xaa2),_0x2cbe8a(0x223a)),_0x2b416c['setAttribute'](_0x2cbe8a(0x2021),_0x3827d6[_0x2cbe8a(0x2021)]),_0x2b416c['setAttribute'](_0x2cbe8a(0x1efd),'\x20'),_0x2b416c['onplay']=function(_0x2b1b76){const _0x4b7950=_0x2cbe8a;!_0x3597af&&(_0x3597af=!![],_0x2b1b76['preventDefault'](),_0x35604e[_0x3827d6[_0x4b7950(0x1e27)]][_0x4b7950(0x19b3)](_0x57ff1e)['$promise'][_0x4b7950(0x64a)](function(_0xbaee46){const _0x47fa20=_0x4b7950,_0x4a0967=[_0xbaee46[_0x47fa20(0x5a9)]],_0x3370c3=new Blob(_0x4a0967,{'type':_0xbaee46['type']});_0x2b416c[_0x47fa20(0x1280)]('type',_0xbaee46[_0x47fa20(0x2185)]),_0x2b416c[_0x47fa20(0x1280)](_0x47fa20(0x1efd),URL[_0x47fa20(0x206)](_0x3370c3)),_0x2b416c['play']();})[_0x4b7950(0x20cd)](function(_0x2a3fe2){console['error'](_0x2a3fe2);}));},_0x537bff['append'](_0x2b416c);}};}const _0xdfe417=_0x47d0aa;;const _0x27aa17=_0x2e4a48['p']+_0x49a1e3(0x970);;function _0x327f85(){const _0x23d4f4=_0x49a1e3;return{'restrict':'E','scope':{'options':'='},'controller':[_0x23d4f4(0x1674),function(_0x40c7e3){const _0x180aac=_0x23d4f4;_0x40c7e3[_0x180aac(0x1828)]=function(_0x1bffaa,_0x50f166,_0x592e8e){const _0x179ce3=_0x180aac;if(_0x50f166[_0x179ce3(0x24db)])return;else{if(typeof _0x1bffaa['isValid']!=='undefined'&&_0x1bffaa[_0x179ce3(0x6f9)])return _0x592e8e?_0x40c7e3[_0x179ce3(0x16d6)](_0x50f166['selectedItems'],_0x50f166[_0x179ce3(0x23cb)],_0x50f166['selectedItems'][_0x179ce3(0x1b28)](_0x1bffaa),_0x592e8e):_0x40c7e3[_0x179ce3(0x16d6)](_0x50f166[_0x179ce3(0x23cb)],_0x50f166[_0x179ce3(0x1f4f)],_0x50f166[_0x179ce3(0x23cb)][_0x179ce3(0x1b28)](_0x1bffaa),_0x592e8e);}},_0x40c7e3['transfer']=function(_0x4f794f,_0x446090,_0x5c6dd9,_0x2784d1){const _0x2a7fc7=_0x180aac;let _0x17210e=[];if(_0x5c6dd9>=0x0)_0x17210e[_0x2a7fc7(0x1954)](_0x4f794f[_0x5c6dd9]),_0x446090[_0x2a7fc7(0x1954)](_0x4f794f[_0x5c6dd9]),_0x4f794f[_0x2a7fc7(0x18f0)](_0x5c6dd9,0x1);else{for(let _0x2005a1=0x0;_0x2005a1<_0x4f794f['length'];_0x2005a1++){typeof _0x4f794f[_0x2005a1][_0x2a7fc7(0x6f9)]!==_0x2a7fc7(0x19a1)&&_0x4f794f[_0x2005a1][_0x2a7fc7(0x6f9)]&&_0x446090[_0x2a7fc7(0x1954)](_0x4f794f[_0x2005a1]);}for(let _0x31442d=_0x4f794f['length']-0x1;_0x31442d>=0x0;_0x31442d--){_0x4f794f[_0x31442d][_0x2a7fc7(0x6f9)]&&_0x4f794f['splice'](_0x31442d,0x1);}_0x17210e=_0x446090;}_0x40c7e3[_0x2a7fc7(0x59e)]['transferCallback']&&_0x40c7e3[_0x2a7fc7(0x59e)][_0x2a7fc7(0xd23)](_0x17210e,_0x2784d1);},_0x40c7e3[_0x180aac(0x8c2)]=function(_0x1282e8,_0x44da48){const _0x4b31e6=_0x180aac;let _0x3f3dbb='';if(_0x28c606()[_0x4b31e6(0x28d7)](_0x44da48))return _0x3f3dbb;if(_0x28c606()[_0x4b31e6(0x616)](_0x44da48)){for(let _0x5d13ae=0x0;_0x5d13ae<_0x44da48[_0x4b31e6(0x1b9e)];_0x5d13ae++){_0x3f3dbb+='\x20'+(_0x1282e8[_0x44da48[_0x5d13ae]]?_0x1282e8[_0x44da48[_0x5d13ae]]:'');}return _0x3f3dbb;}else return _0x1282e8[_0x44da48]?_0x1282e8[_0x44da48]:'';};}],'templateUrl':_0x27aa17};}const _0x5bc872=_0x327f85;;_0x498928['$inject']=[_0x49a1e3(0x298c)];function _0x498928(_0x5bb379){return{'restrict':'E','replace':!![],'scope':{'onReply':'&','ngModel':'=','ctrlMethods':'=','pickerPosition':'=','search':'=','recentEmojis':'=','placeholder':'='},'template':'','link':function(_0x501d88,_0x35a5da){const _0x4913da=a0_0x4127,_0x5e1fd3=_0x35a5da[_0x4913da(0x24ff)]({'pickerPosition':_0x501d88[_0x4913da(0x11b0)],'search':_0x501d88[_0x4913da(0xb58)],'recentEmojis':_0x501d88['recentEmojis'],'placeholder':_0x5bb379[_0x4913da(0x2292)](_0x501d88[_0x4913da(0x13de)]||_0x4913da(0x7d0)),'attributes':{'spellcheck':!![]},'events':{'keypress':function(_0x53fdc0,_0xb26a31){const _0x522821=_0x4913da;_0x501d88['ngModel']=this[_0x522821(0x194a)](),_0x501d88[_0x522821(0x2679)]({'event':_0xb26a31,'body':this[_0x522821(0x194a)]()});},'emojibtn_click':function(){const _0x55bc71=_0x4913da;_0x501d88[_0x55bc71(0x24eb)]=this['getText']();}}});_0x501d88['ngModel']&&_0x5e1fd3[0x0]['emojioneArea']['setText'](_0x501d88[_0x4913da(0x24eb)]),_0x501d88['internalControl']=_0x501d88[_0x4913da(0x74c)]||{},_0x501d88[_0x4913da(0xf87)]['setText']=function(_0x5d8d80){const _0x1a7f65=_0x4913da;_0x5e1fd3[0x0][_0x1a7f65(0x24ff)][_0x1a7f65(0x2473)](_0x5d8d80);},_0x501d88[_0x4913da(0xf87)]['getText']=function(){const _0x9d2daf=_0x4913da;return _0x5e1fd3[0x0][_0x9d2daf(0x24ff)][_0x9d2daf(0x194a)]();},_0x501d88[_0x4913da(0xc62)](_0x4913da(0x24eb),function(_0x523169){const _0x13a44c=_0x4913da;!_0x523169&&_0x5e1fd3[0x0]['emojioneArea'][_0x13a44c(0x2473)]('');});}};}const _0x2dbb56=_0x498928;;const _0x251fee=_0x2e4a48['p']+'src/js/modules/core/directives/ms-font-family/ms-font-family.html/ms-font-family.html';;function _0x2adf63(){const _0x3ec175=_0x49a1e3;return{'restrict':'E','scope':{'ngModel':'='},'controller':[_0x3ec175(0x1674),function(_0x275273){const _0x28e772=_0x3ec175;_0x275273[_0x28e772(0x23d)]=[{'option':_0x28e772(0x1bf7),'value':_0x28e772(0x2b2)},{'option':_0x28e772(0xcbf),'value':_0x28e772(0xa67)},{'option':_0x28e772(0x670),'value':_0x28e772(0xf54)},{'option':'Comic\x20Sans\x20MS','value':'Comic\x20Sans\x20MS,cursive'},{'option':_0x28e772(0x1b2a),'value':_0x28e772(0x1285)},{'option':_0x28e772(0x1a92),'value':_0x28e772(0x2272)},{'option':_0x28e772(0x1abf),'value':'Lucida\x20Sans\x20Unicode,Lucida\x20Grande,sans-serif'},{'option':_0x28e772(0x22ef),'value':_0x28e772(0x7b0)},{'option':'Times\x20New\x20Roman','value':_0x28e772(0x24e6)},{'option':_0x28e772(0x1205),'value':_0x28e772(0x97d)},{'option':_0x28e772(0x1b4e),'value':_0x28e772(0x14a2)}];}],'templateUrl':_0x251fee};}const _0x57b333=_0x2adf63;;function _0x32d313(){const _0x1ab386=_0x49a1e3,_0xc7902d=this;_0xc7902d[_0x1ab386(0xa42)]=[],_0xc7902d['selectedIndex']=0x0,_0xc7902d['registerForm']=_0x2f9e54,_0xc7902d[_0x1ab386(0x1984)]=_0x74d789,_0xc7902d[_0x1ab386(0xf71)]=_0x6845cd,_0xc7902d[_0x1ab386(0x20fb)]=_0x2f08f9,_0xc7902d['lastStep']=_0x43cd15,_0xc7902d[_0x1ab386(0x2944)]=_0x2c4162,_0xc7902d[_0x1ab386(0x1767)]=_0x325799,_0xc7902d[_0x1ab386(0x2308)]=_0x369198,_0xc7902d['currentStepInvalid']=_0x2a5a95,_0xc7902d['previousStepInvalid']=_0xe1c54e,_0xc7902d[_0x1ab386(0x1aa3)]=_0xdf3cc9,_0xc7902d[_0x1ab386(0x2557)]=_0x56b8df;function _0x2f9e54(_0x5a8f85){const _0x44daef=_0x1ab386;_0xc7902d[_0x44daef(0xa42)][_0x44daef(0x1954)](_0x5a8f85);}function _0x74d789(){const _0x2fc06b=_0x1ab386;if(_0x325799())return;_0xc7902d[_0x2fc06b(0x17a9)]--;}function _0x6845cd(){const _0x1c60ba=_0x1ab386;if(_0x369198())return;_0xc7902d[_0x1c60ba(0x17a9)]++;}function _0x2f08f9(){const _0x1e099b=_0x1ab386;_0xc7902d[_0x1e099b(0x17a9)]=0x0;}function _0x43cd15(){const _0x6292be=_0x1ab386;_0xc7902d[_0x6292be(0x17a9)]=_0x2c4162()-0x1;}function _0x2c4162(){const _0x4c289d=_0x1ab386;return _0xc7902d['forms'][_0x4c289d(0x1b9e)];}function _0x325799(){const _0x4ea0d1=_0x1ab386;return _0xc7902d[_0x4ea0d1(0x17a9)]===0x0;}function _0x369198(){const _0xc8b5dc=_0x1ab386;return _0xc7902d[_0xc8b5dc(0x17a9)]===_0x2c4162()-0x1;}function _0x2a5a95(){const _0x3f7d55=_0x1ab386;return angular[_0x3f7d55(0x16ab)](_0xc7902d[_0x3f7d55(0xa42)][_0xc7902d[_0x3f7d55(0x17a9)]])&&_0xc7902d[_0x3f7d55(0xa42)][_0xc7902d['selectedIndex']]['$invalid'];}function _0xe1c54e(){const _0x1a8a70=_0x1ab386;return _0xc7902d[_0x1a8a70(0x17a9)]>0x0&&angular[_0x1a8a70(0x16ab)](_0xc7902d['forms'][_0xc7902d['selectedIndex']-0x1])&&_0xc7902d[_0x1a8a70(0xa42)][_0xc7902d[_0x1a8a70(0x17a9)]-0x1][_0x1a8a70(0x2962)];}function _0xdf3cc9(){const _0x5546d2=_0x1ab386;for(let _0x18c242=0x0;_0x18c242<_0xc7902d[_0x5546d2(0xa42)][_0x5546d2(0x1b9e)];_0x18c242++){if(_0xc7902d[_0x5546d2(0xa42)][_0x18c242][_0x5546d2(0x2962)])return!![];}return![];}function _0x56b8df(){const _0x26932d=_0x1ab386;_0xc7902d[_0x26932d(0x17a9)]=0x0;for(let _0x575f3b=0x0;_0x575f3b<_0xc7902d[_0x26932d(0xa42)]['length'];_0x575f3b++){_0xc7902d[_0x26932d(0xa42)][_0x575f3b][_0x26932d(0x271f)](),_0xc7902d[_0x26932d(0xa42)][_0x575f3b][_0x26932d(0x18e0)]();}}}function _0x568926(){const _0x46829b=_0x49a1e3;return{'restrict':'E','scope':!![],'controller':_0x46829b(0xb1d),'compile':function(_0x4743a8){const _0x5d8733=_0x46829b;return _0x4743a8[_0x5d8733(0xb6f)](_0x5d8733(0x78a)),function _0xa0b15e(){};}};}function _0x1ea1f7(){const _0x29652a=_0x49a1e3;return{'restrict':'A','require':[_0x29652a(0x14e6),_0x29652a(0x1cf8)],'compile':function(_0x588101){const _0x575c34=_0x29652a;return _0x588101[_0x575c34(0xb6f)](_0x575c34(0x1fd)),function _0x5c197(_0x2d02dd,_0x4ca787,_0x1e8b70,_0x582d80){const _0x95a487=_0x582d80[0x0],_0xf8c199=_0x582d80[0x1];_0xf8c199['registerForm'](_0x95a487);};}};};const _0x25eb3c=_0x2e4a48['p']+_0x49a1e3(0x194c);;_0x51ebd8['$inject']=[_0x49a1e3(0x1373)];function _0x51ebd8(_0x488267){return{'restrict':'E','scope':{'onClose':'&'},'transclude':!![],'templateUrl':_0x25eb3c,'link':function(_0x407dd4,_0x192e14){const _0x1f552b=a0_0x4127,_0x12db4f=_0x488267['find'](_0x1f552b(0x1aca)),_0x266be5=_0x1f552b(0x1aca);_0x12db4f['addClass'](_0x266be5);function _0x55a5ef(){const _0x33377c=_0x1f552b;_0x12db4f['removeClass'](_0x266be5),_0x192e14[_0x33377c(0x21c7)](),_0x407dd4[_0x33377c(0x2651)]&&_0x407dd4[_0x33377c(0x2651)](),_0x407dd4[_0x33377c(0xf28)]();}_0x407dd4['removeInfoBar']=_0x55a5ef;}};}const _0x4e87c3=_0x51ebd8;;_0x5e66f4[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20d4)],_0x1ab559[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x1fe7),'$mdMedia',_0x49a1e3(0x20d4)];function _0x1ab559(_0x536021,_0x223ffb,_0x2f94df,_0x15b37d){const _0x47646d=_0x49a1e3,_0xbc5b16=this,_0x1f4756={'columnCount':0x5,'respectItemOrder':![],'reLayoutDebounce':0x190,'responsive':{'md':0x3,'sm':0x2,'xs':0x1}};let _0x58febb=!![];_0xbc5b16[_0x47646d(0x59e)]=null,_0xbc5b16[_0x47646d(0x2580)]=[],_0xbc5b16['containerPos']='',_0xbc5b16[_0x47646d(0x169e)]='',_0xbc5b16[_0x47646d(0x23cb)]=[],_0xbc5b16[_0x47646d(0xcd4)]=_0x2f0c68,_0xbc5b16[_0x47646d(0x23de)]=_0x160b3a,_0xbc5b16['waitImagesLoaded']=_0x21025b;function _0x160b3a(){const _0x2a74a7=_0x47646d;_0xbc5b16[_0x2a74a7(0x59e)]=!_0xbc5b16[_0x2a74a7(0x59e)]?_0x1f4756:angular[_0x2a74a7(0x1c69)](_0x1f4756,_0xbc5b16[_0x2a74a7(0x59e)]),_0x113fc1();}_0x536021['$on'](_0x47646d(0x2753),function(){_0x2f0c68();});function _0x21025b(_0x3c6801,_0x57c99f){const _0x1a28d7=_0x47646d;if(typeof imagesLoaded!==_0x1a28d7(0x19a1)){const _0x3f1ffd=_0x223ffb['imagesLoaded'](_0x3c6801);_0x3f1ffd['on'](_0x1a28d7(0xef6),function(){_0x57c99f();});}else _0x57c99f();}function _0x113fc1(){const _0x393a2c=_0x47646d;_0x536021[_0x393a2c(0xc62)](function(){const _0x55b707=_0x393a2c;return _0xbc5b16[_0x55b707(0x2580)][_0x55b707(0x2093)]();},function(_0x332151,_0x23440f){_0x332151!==_0x23440f&&_0x2f0c68();});}function _0x2f0c68(){const _0x2b5e5a=_0x47646d;_0x58febb&&_0x15b37d[_0x2b5e5a(0x101a)](_0x58febb);_0x58febb=_0x15b37d(function(){const _0x107ed5=_0x2b5e5a;_0x26b2d3(),_0x536021[_0x107ed5(0x1a2e)]('msMasonry:relayoutFinished');},_0xbc5b16[_0x2b5e5a(0x59e)][_0x2b5e5a(0x1a85)]);function _0x26b2d3(){const _0x37bdc4=_0x2b5e5a;_0xbc5b16[_0x37bdc4(0x2923)]=_0xbc5b16[_0x37bdc4(0x2580)][0x0][_0x37bdc4(0xde2)](),_0x5cf34b(),_0x536021[_0x37bdc4(0x1a2e)](_0x37bdc4(0x235d)),_0xbc5b16[_0x37bdc4(0x23cb)]=_0xbc5b16[_0x37bdc4(0x2580)][_0x37bdc4(0x27bc)]('ms-masonry-item');const _0x56dd02=Array[_0x37bdc4(0x759)](null,new Array(_0xbc5b16[_0x37bdc4(0x12f6)]))[_0x37bdc4(0x1de5)](function(){return 0x0;});for(let _0x31e216=0x0;_0x31e216<_0xbc5b16[_0x37bdc4(0x23cb)][_0x37bdc4(0x1b9e)];_0x31e216++){let _0x680979=_0xbc5b16[_0x37bdc4(0x23cb)][_0x31e216],_0x12b3be,_0x48a922;_0x680979=angular[_0x37bdc4(0x1f81)](_0x680979);_0x680979['scope']()&&_0x680979['scope']()[_0x37bdc4(0x1a2e)](_0x37bdc4(0x1083));_0x680979['css']({'width':_0xbc5b16['columnWidth']});_0xbc5b16[_0x37bdc4(0x59e)][_0x37bdc4(0x206a)]?(_0x12b3be=_0x31e216%_0xbc5b16[_0x37bdc4(0x12f6)],_0x48a922=_0x56dd02[_0x12b3be]):(_0x48a922=Math['min'][_0x37bdc4(0x759)](Math,_0x56dd02),_0x12b3be=_0x56dd02[_0x37bdc4(0x1b28)](_0x48a922));_0x56dd02[_0x12b3be]=_0x48a922+_0x680979[0x0][_0x37bdc4(0xde2)]()[_0x37bdc4(0x1c73)];const _0x47cf28=Math[_0x37bdc4(0xf38)](_0x12b3be*_0xbc5b16[_0x37bdc4(0x169e)]),_0x352a6d=_0x48a922;_0x680979['css']({'transform':_0x37bdc4(0x11e7)+_0x47cf28+_0x37bdc4(0x272d)+_0x352a6d+_0x37bdc4(0x173f)}),_0x680979[_0x37bdc4(0xb6f)](_0x37bdc4(0x2178)),_0x680979['scope']()&&_0x680979[_0x37bdc4(0x88a)]()[_0x37bdc4(0x1a2e)]('msMasonryItem:finishReLayout');}}}function _0x5cf34b(){const _0x2ec7a4=_0x47646d;_0xbc5b16[_0x2ec7a4(0x12f6)]=_0xbc5b16[_0x2ec7a4(0x59e)][_0x2ec7a4(0x12f6)];if(_0x2f94df(_0x2ec7a4(0x184a)))_0xbc5b16[_0x2ec7a4(0x12f6)]=_0xbc5b16[_0x2ec7a4(0x59e)]['columnCount'];else{if(_0x2f94df('md'))_0xbc5b16[_0x2ec7a4(0x12f6)]=_0xbc5b16[_0x2ec7a4(0x12f6)]>_0xbc5b16[_0x2ec7a4(0x59e)]['responsive']['md']?_0xbc5b16[_0x2ec7a4(0x59e)][_0x2ec7a4(0x173e)]['md']:_0xbc5b16[_0x2ec7a4(0x12f6)];else _0x2f94df('sm')?_0xbc5b16['columnCount']=_0xbc5b16[_0x2ec7a4(0x12f6)]>_0xbc5b16[_0x2ec7a4(0x59e)]['responsive']['sm']?_0xbc5b16[_0x2ec7a4(0x59e)][_0x2ec7a4(0x173e)]['sm']:_0xbc5b16[_0x2ec7a4(0x12f6)]:_0xbc5b16[_0x2ec7a4(0x12f6)]=_0xbc5b16['options'][_0x2ec7a4(0x173e)]['xs'];}_0xbc5b16['columnWidth']=_0xbc5b16[_0x2ec7a4(0x2923)]['width']/_0xbc5b16[_0x2ec7a4(0x12f6)];}}function _0x5e66f4(_0x45529c){const _0x4ed1c5=_0x49a1e3;return{'restrict':_0x4ed1c5(0x2362),'controller':_0x4ed1c5(0x1f8e),'compile':_0x5c478d};function _0x5c478d(_0x124b13,_0x4286e3){return{'pre':function _0x4d4fe3(_0x34eacf,_0x42bdbd,_0x1affc2,_0x236f75){const _0x49b9b2=a0_0x4127;_0x236f75[_0x49b9b2(0x59e)]=angular[_0x49b9b2(0x836)](_0x4286e3[_0x49b9b2(0x59e)]||'{}'),_0x236f75[_0x49b9b2(0x2580)]=_0x124b13;},'post':function _0x4f5ad7(_0x5a6482,_0xae2e3c,_0x2b1b68,_0x74397b){_0x45529c(function(){const _0x57d483=a0_0x4127;_0x74397b[_0x57d483(0x23de)]();});}};}}function _0x50723c(){const _0x504c38=_0x49a1e3;return{'restrict':_0x504c38(0x2362),'require':_0x504c38(0x11a3),'priority':0x1,'link':_0x499005};function _0x499005(_0x44907b,_0x5c9f3d,_0x34e10e,_0x3e2854){const _0x58ae35=_0x504c38;_0x3e2854[_0x58ae35(0x220f)](_0x5c9f3d,function(){const _0x41e996=_0x58ae35;_0x3e2854[_0x41e996(0xcd4)]();}),_0x44907b[_0x58ae35(0x8c7)]('msMasonryItem:finishReLayout',function(){const _0x2faf69=_0x58ae35;_0x44907b[_0x2faf69(0xc62)](function(){const _0x916da4=_0x2faf69;return _0x5c9f3d[_0x916da4(0x1c73)]();},function(_0x46a7b3,_0x2cc0a8){const _0x78bd2f=_0x2faf69;_0x46a7b3!==_0x2cc0a8&&_0x3e2854[_0x78bd2f(0xcd4)]();});}),_0x5c9f3d['on'](_0x58ae35(0xf28),function(){const _0x17c517=_0x58ae35;_0x3e2854[_0x17c517(0xcd4)]();});}};const _0x4c8700=_0x2e4a48['p']+_0x49a1e3(0x1c28);;_0x24bcff[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x26c0),_0x49a1e3(0x1138),_0x49a1e3(0x1264)];function _0x24bcff(_0x1f3bff,_0x3ec799,_0x5185cb,_0x3daede){const _0x76b324=_0x49a1e3,_0x1527b2=this;_0x1527b2[_0x76b324(0x1f72)]=_0x3ec799,_0x1527b2[_0x76b324(0x1f00)]=![],_0x1527b2['selectedHues']=![],_0x1f3bff[_0x76b324(0xf05)]={},_0x1527b2[_0x76b324(0x2299)]=_0x4f9d6c,_0x1527b2[_0x76b324(0x13b1)]=_0x48048b,_0x1527b2[_0x76b324(0x2c8)]=_0x1bac44,_0x1f3bff[_0x76b324(0xc62)](_0x76b324(0x24eb),_0x4f002d);function _0x4f9d6c(_0x49542d,_0x2c882f){const _0x389f1e=_0x76b324;_0x1527b2[_0x389f1e(0x1f00)]=_0x49542d,_0x1527b2[_0x389f1e(0x30a)]=_0x2c882f;}function _0x48048b(_0x58744a,_0xc6fd50){_0x43c81b(_0x58744a,_0xc6fd50),_0x5e4524(),_0x5185cb['hide']();}function _0x1bac44(){const _0x26f0fc=_0x76b324;_0x1527b2[_0x26f0fc(0x11d)]={'palette':'','hue':'','class':''},_0x4f9d6c(![],![]),_0x5e4524();}function _0x4f002d(){const _0xc1562b=_0x76b324;if(!_0x1527b2[_0xc1562b(0x85f)][_0xc1562b(0x2855)]||_0x1527b2[_0xc1562b(0x85f)][_0xc1562b(0x2855)]===''){_0x1bac44();return;}let _0x50342a,_0x5c0478;if(_0x1527b2[_0xc1562b(0xe66)]==='class'){const _0x54d364=_0x1527b2[_0xc1562b(0x85f)]['$viewValue'][_0xc1562b(0x282c)]('-');_0x54d364[_0xc1562b(0x1b9e)]>=0x5?(_0x50342a=_0x54d364[0x1]+'-'+_0x54d364[0x2],_0x5c0478=_0x54d364[0x3]):(_0x50342a=_0x54d364[0x1],_0x5c0478=_0x54d364[0x2]);}else _0x1527b2['msModelType']===_0xc1562b(0x61c)&&(_0x50342a=_0x1527b2[_0xc1562b(0x85f)][_0xc1562b(0x2855)][_0xc1562b(0x144b)],_0x5c0478=_0x1527b2['modelCtrl'][_0xc1562b(0x2855)]['hue']||0x1f4);_0x43c81b(_0x50342a,_0x5c0478);}function _0x43c81b(_0x1f5b81,_0x461daa){const _0x92f00a=_0x76b324;_0x1527b2[_0x92f00a(0x11d)]={'palette':_0x1f5b81,'hue':_0x461daa,'class':'md-'+_0x1f5b81+'-'+_0x461daa+_0x92f00a(0xd81),'bgColorValue':_0x3daede['rgba'](_0x1527b2[_0x92f00a(0x1f72)][_0x1f5b81][_0x461daa][_0x92f00a(0x1096)]),'fgColorValue':_0x3daede['rgba'](_0x1527b2[_0x92f00a(0x1f72)][_0x1f5b81][_0x461daa][_0x92f00a(0xfa1)])},_0x1527b2[_0x92f00a(0xe66)]==='obj'&&!angular[_0x92f00a(0x1a61)](_0x1527b2['selectedColor'],_0x1527b2[_0x92f00a(0x85f)][_0x92f00a(0x2855)])&&_0x5e4524(),_0x4f9d6c(_0x1f5b81,_0x1527b2[_0x92f00a(0x1f72)][_0x1f5b81]),_0x1f3bff[_0x92f00a(0xf05)]=_0x1527b2['selectedColor'];}function _0x5e4524(){const _0x3014bd=_0x76b324;if(_0x1527b2['msModelType']===_0x3014bd(0x17c7))_0x1527b2[_0x3014bd(0x85f)]['$setViewValue'](_0x1527b2[_0x3014bd(0x11d)][_0x3014bd(0x17c7)]);else _0x1527b2['msModelType']===_0x3014bd(0x61c)&&_0x1527b2[_0x3014bd(0x85f)][_0x3014bd(0x23a)](_0x1527b2[_0x3014bd(0x11d)]);}}function _0x3c5bb5(){const _0x4b4c45=_0x49a1e3;return{'require':[_0x4b4c45(0xa7b),_0x4b4c45(0x24eb)],'restrict':'E','scope':{'ngModel':'=','msModelType':'@?'},'controller':_0x4b4c45(0x8e2),'transclude':!![],'templateUrl':_0x4c8700,'link':function(_0x4b123d,_0x427fcc,_0x2f0823,_0x226b49,_0x1f3b52){const _0x298d22=_0x4b4c45,_0x33f084=_0x226b49[0x0];_0x33f084['modelCtrl']=_0x226b49[0x1],_0x33f084[_0x298d22(0xe66)]=_0x4b123d[_0x298d22(0xe66)]||_0x298d22(0x17c7),_0x1f3b52(_0x4b123d,function(_0x1af71c){const _0x507108=_0x298d22;_0x1af71c=_0x1af71c[_0x507108(0xcec)](function(_0x6f7892,_0xcda91f){const _0x1c6617=_0x507108;return _0xcda91f[_0x1c6617(0x2025)]===0x1?!![]:![];}),_0x1af71c[_0x507108(0x1b9e)]&&_0x427fcc[_0x507108(0x27bc)](_0x507108(0xdcd))[_0x507108(0x263e)](_0x1af71c);});}};};_0x2120c6[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x2159),'$q','$animate',_0x49a1e3(0x77f)],_0x3b2063[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x2159),'$mdComponentRegistry',_0x49a1e3(0x820)],_0x39c268[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1373),'$rootScope',_0x49a1e3(0x820)];function _0x1b75dd(){let _0xdc190f={};const _0x4b108b={'setFoldable':_0x514148,'isNavFoldedOpen':_0x3f4b2c,'toggleFold':_0x5d7ac9,'openFolded':_0x1b2fd2,'closeFolded':_0x56314f};return _0x4b108b;function _0x514148(_0x33393f,_0x49749a){_0xdc190f={'scope':_0x33393f,'element':_0x49749a};}function _0x3f4b2c(){const _0x42c6ef=a0_0x4127;return _0xdc190f[_0x42c6ef(0x88a)][_0x42c6ef(0x30c)]();}function _0x5d7ac9(){const _0x328566=a0_0x4127;_0xdc190f['scope'][_0x328566(0x1f62)]();}function _0x1b2fd2(){const _0x3b7e29=a0_0x4127;_0xdc190f[_0x3b7e29(0x88a)][_0x3b7e29(0x28ab)]();}function _0x56314f(){const _0x169153=a0_0x4127;_0xdc190f[_0x169153(0x88a)]['closeFolded']();}}function _0x39c268(_0x2c7978,_0x16e9ad,_0x1f4e1d){return{'restrict':'A','link':function(_0x5ebc1d,_0x2208ad,_0x36516d){const _0x10bdaa=a0_0x4127;let _0x9272ac=_0x36516d['msNavIsFolded']===_0x10bdaa(0x1685),_0xd7c9b7=![];const _0x301551=angular[_0x10bdaa(0x1f81)](_0x2c7978[0x0][_0x10bdaa(0xb49)]),_0x3d6727=angular[_0x10bdaa(0x1f81)](_0x10bdaa(0x1135)),_0x1295ce=angular[_0x10bdaa(0x1f81)](_0x10bdaa(0x10ba)),_0x7c3bf2=_0x2208ad[_0x10bdaa(0x2854)]();_0x1f4e1d[_0x10bdaa(0x17ff)](_0x5ebc1d,_0x2208ad,_0x9272ac);_0x9272ac?_0xd4102e():_0x1cdf1d();function _0x5de4eb(){return _0xd7c9b7;}function _0xc4a07e(){_0x9272ac=!_0x9272ac,_0x9272ac?_0xd4102e():_0x1cdf1d();}function _0xd4102e(){const _0x11426c=_0x10bdaa;_0x301551[_0x11426c(0xb6f)](_0x11426c(0x1e14)),_0x16e9ad['$broadcast'](_0x11426c(0x27ce)),_0x2208ad[_0x11426c(0x12c8)](0x0),_0x7c3bf2[_0x11426c(0x1d30)](_0x3d6727),_0x3d6727['on'](_0x11426c(0x122e),function(_0xcd41f2){_0x147a6e(_0xcd41f2),_0xd7c9b7=!![];});}function _0x147a6e(_0x3c09ce){const _0x4e6486=_0x10bdaa;angular[_0x4e6486(0x16ab)](_0x3c09ce)&&_0x3c09ce[_0x4e6486(0xecc)](),_0x301551['addClass']('ms-nav-folded-open'),_0x16e9ad['$broadcast'](_0x4e6486(0x1cc4)),_0x7c3bf2[_0x4e6486(0x27bc)](_0x3d6727)[_0x4e6486(0x21c7)](),_0x7c3bf2['parent']()[_0x4e6486(0x1d30)](_0x1295ce),_0x1295ce['on'](_0x4e6486(0x122e),function(_0x2e89d4){_0x2c915e(_0x2e89d4),_0xd7c9b7=![];});}function _0x2c915e(_0x603a5d){const _0x559641=_0x10bdaa;angular[_0x559641(0x16ab)](_0x603a5d)&&_0x603a5d['preventDefault'](),_0x16e9ad['$broadcast'](_0x559641(0x27ce)),_0x2208ad[_0x559641(0x12c8)](0x0),_0x301551[_0x559641(0x12b3)]('ms-nav-folded-open'),_0x7c3bf2[_0x559641(0x2854)]()['find'](_0x1295ce)[_0x559641(0x21c7)](),_0x7c3bf2[_0x559641(0x1d30)](_0x3d6727),_0x3d6727['on'](_0x559641(0x122e),function(_0x45f814){_0x147a6e(_0x45f814),_0xd7c9b7=!![];});}function _0x1cdf1d(){const _0x47c5e6=_0x10bdaa;_0x301551[_0x47c5e6(0x12b3)](_0x47c5e6(0x1376)),_0x16e9ad[_0x47c5e6(0x1a2e)]('msNav::expandMatchingToggles'),_0x2208ad[_0x47c5e6(0x414)](_0x47c5e6(0xaff));}_0x5ebc1d[_0x10bdaa(0x1f62)]=_0xc4a07e,_0x5ebc1d[_0x10bdaa(0x28ab)]=_0x147a6e,_0x5ebc1d['closeFolded']=_0x2c915e,_0x5ebc1d[_0x10bdaa(0x30c)]=_0x5de4eb,_0x5ebc1d[_0x10bdaa(0x8c7)](_0x10bdaa(0xf28),function(){const _0x23dc96=_0x10bdaa;_0x3d6727[_0x23dc96(0x414)](_0x23dc96(0x122e)),_0x1295ce[_0x23dc96(0x414)](_0x23dc96(0x122e)),_0x2208ad['off']('mouseenter\x20mouseleave');});}};}function _0x7980c0(){const _0x5eb56f=_0x49a1e3,_0x4ddb78=this;let _0x2300d9=![];const _0xa79faa=[];let _0x28a43f=[];_0x4ddb78[_0x5eb56f(0x1454)]=_0x8e4c8d,_0x4ddb78[_0x5eb56f(0xc50)]=_0x1f636f,_0x4ddb78[_0x5eb56f(0xdbd)]=_0x38cf09,_0x4ddb78[_0x5eb56f(0x308)]=_0x550dcd,_0x4ddb78[_0x5eb56f(0xf9b)]=_0x31bfd6,_0x4ddb78[_0x5eb56f(0x377)]=_0x3879b4,_0x4ddb78[_0x5eb56f(0x1d36)]=_0x39f077;function _0x8e4c8d(){return _0x2300d9;}function _0x38cf09(){_0x2300d9=!![];}function _0x1f636f(){_0x2300d9=![];}function _0x550dcd(_0x529cf6,_0x4c92ef){_0xa79faa['push']({'element':_0x529cf6,'scope':_0x4c92ef});}function _0x31bfd6(){return _0x28a43f;}function _0x3879b4(_0x5327ff,_0x174be8){const _0x467b12=_0x5eb56f;_0x28a43f[_0x467b12(0x1954)]({'element':_0x5327ff,'scope':_0x174be8});}function _0x39f077(){_0x28a43f=[];}}function _0x3b2063(_0x12d223,_0x1bf1ec,_0x4a2909){return{'restrict':'E','scope':{},'controller':'MsNavController','compile':function(_0xf49538){const _0x24fb9a=a0_0x4127;return _0xf49538['addClass'](_0x24fb9a(0x1d6e)),function _0xd6f0ea(_0x1b8fa8){const _0x14f169=_0x24fb9a;_0x12d223[_0x14f169(0x1a2e)](_0x14f169(0x1cc4));const _0x384624=_0x12d223[_0x14f169(0x8c7)](_0x14f169(0x15a6),function(){const _0x31148b=_0x14f169;_0x12d223[_0x31148b(0x1a2e)](_0x31148b(0x1cc4)),_0x1bf1ec[_0x31148b(0x1483)](_0x31148b(0x190b))[_0x31148b(0x64a)](function(_0x1f634b){const _0x51dc48=_0x31148b;_0x1f634b[_0x51dc48(0x67b)](),_0x4a2909[_0x51dc48(0x30c)]()&&_0x4a2909[_0x51dc48(0x4c6)]();});});_0x1b8fa8[_0x14f169(0x8c7)]('$destroy',function(){_0x384624();});};}};}function _0x1b3be9(){return{'restrict':'A','compile':function(_0x537e16){const _0x14c2f7=a0_0x4127;return _0x537e16[_0x14c2f7(0xb6f)]('ms-nav-title'),function _0x1780aa(){};}};}function _0x579dec(){return{'restrict':'AE','compile':function(_0x1a1fed){const _0x5444c2=a0_0x4127;return _0x1a1fed[_0x5444c2(0xb6f)](_0x5444c2(0xf30)),function _0x133bf4(){};}};}function _0x2120c6(_0x32279c,_0x1ff49b,_0x11c797,_0x1c1ca6){const _0x362322=_0x49a1e3;return{'restrict':'A','require':_0x362322(0x25ef),'scope':!![],'compile':function(_0x287783,_0x34f1be){const _0x5e85d8=_0x362322;return _0x287783[_0x5e85d8(0xb6f)]('ms-nav-toggle'),angular[_0x5e85d8(0x1a01)](_0x34f1be['collapsed'])&&(_0x34f1be[_0x5e85d8(0x2952)]=!![]),_0x287783[_0x5e85d8(0x24ac)](_0x5e85d8(0x2952),_0x34f1be[_0x5e85d8(0x2952)]),function _0x484c57(_0x97383f,_0x3d09e6,_0x44710a,_0x5db0ca){const _0x8bb860=_0x5e85d8,_0x27e494={'expanded':_0x8bb860(0x147e),'expandAnimation':_0x8bb860(0xe89),'collapseAnimation':'collapse-animation'},_0x45e760=_0x3d09e6[_0x8bb860(0x27bc)]('a'),_0xf2011b=[],_0x2ee7cb=/\(.*\)/g;angular[_0x8bb860(0x1397)](_0x45e760,function(_0x2c02bc){const _0x343e63=_0x8bb860;let _0x50f9bb=angular[_0x343e63(0x1f81)](_0x2c02bc)[_0x343e63(0x24ac)]('ui-sref');if(angular['isUndefined'](_0x50f9bb))return;_0x50f9bb=_0x50f9bb['replace'](_0x2ee7cb,''),_0xf2011b[_0x343e63(0x1954)](_0x50f9bb);}),_0x5db0ca[_0x8bb860(0x308)](_0x3d09e6,_0x97383f),_0x3d09e6[_0x8bb860(0x1730)](_0x8bb860(0x16f8))['on'](_0x8bb860(0x2668),_0x4f1074);function _0x4f1074(){const _0x2c45fd=_0x8bb860;if(_0x5db0ca['isDisabled']())return;_0x5db0ca[_0x2c45fd(0xdbd)](),_0x5b13b7()?(_0x5db0ca['clearLockedItems'](),_0x97383f[_0x2c45fd(0x5de)](_0x2c45fd(0xd2f)),_0x32279c[_0x2c45fd(0x1a2e)]('msNav::collapse'),_0x408285()[_0x2c45fd(0x64a)](function(){const _0x4ae59c=_0x2c45fd;_0x5db0ca[_0x4ae59c(0xc50)]();})):_0x97383f['$broadcast'](_0x2c45fd(0x27ce));}_0x97383f[_0x8bb860(0x8c7)](_0x8bb860(0xf28),function(){const _0x72e611=_0x8bb860;_0x3d09e6[_0x72e611(0x1730)](_0x72e611(0x16f8))[_0x72e611(0x414)](_0x72e611(0x2668));}),_0x97383f[_0x8bb860(0x8c7)](_0x8bb860(0x1ec1),function(){const _0x41d83b=_0x8bb860,_0x2828da=_0x5db0ca['getLockedItems']();let _0x278dbc=![];angular[_0x41d83b(0x1397)](_0x2828da,function(_0xa2ad5e){const _0x35d249=_0x41d83b;angular[_0x35d249(0x1a61)](_0xa2ad5e[_0x35d249(0x88a)],_0x97383f)&&(_0x278dbc=!![]);});if(_0x278dbc)return;_0x1e11e9()[_0x41d83b(0x64a)](function(){const _0xa96c67=_0x41d83b;_0x5db0ca[_0xa96c67(0xc50)]();});}),_0x97383f[_0x8bb860(0x8c7)]('msNav::forceCollapse',function(){const _0x3a2237=_0x8bb860;_0x1e11e9()[_0x3a2237(0x64a)](function(){const _0x2e8580=_0x3a2237;_0x5db0ca[_0x2e8580(0xc50)]();});}),_0x97383f[_0x8bb860(0x8c7)]('msNav::expandMatchingToggles',function(){const _0x36194c=_0x8bb860,_0x4745fe=_0x1c1ca6[_0x36194c(0xa6c)][_0x36194c(0x2494)];let _0x55a79a=![];angular[_0x36194c(0x1397)](_0xf2011b,function(_0x2ec859){_0x4745fe===_0x2ec859&&(_0x55a79a=!![]);}),_0x55a79a?_0x408285():_0x1e11e9();}),_0x97383f[_0x8bb860(0x8c7)](_0x8bb860(0xd2f),function(){const _0x43f38b=_0x8bb860;_0x5db0ca[_0x43f38b(0x377)](_0x3d09e6,_0x97383f);});function _0x5b13b7(){const _0x266114=_0x8bb860;return _0x3d09e6[_0x266114(0x24ac)](_0x266114(0x2952))===_0x266114(0x1685);}function _0x22c8c7(){return!_0x5b13b7();}function _0x408285(){const _0x5c7e21=_0x8bb860,_0x84cca2=_0x1ff49b['defer']();if(_0x22c8c7())return _0x84cca2[_0x5c7e21(0x19d2)]({'error':!![]}),_0x84cca2[_0x5c7e21(0x1713)];_0x3d09e6[_0x5c7e21(0x24ac)]('collapsed',![]);const _0x46320f=angular[_0x5c7e21(0x1f81)](_0x3d09e6[_0x5c7e21(0x27bc)](_0x5c7e21(0x585))[0x0]);_0x46320f['css']({'position':'absolute','visibility':_0x5c7e21(0x2d5),'display':_0x5c7e21(0x6f2),'height':'auto'});const _0x179e25=_0x46320f[0x0]['offsetHeight'];return _0x46320f[_0x5c7e21(0x9c6)]({'position':'','visibility':'','display':'','height':''}),_0x97383f[_0x5c7e21(0x1f54)](function(){const _0x58c187=_0x5c7e21;_0x11c797['animate'](_0x46320f,{'display':'block','height':_0x58c187(0x1344)},{'height':_0x179e25+'px'},_0x27e494['expandAnimation'])[_0x58c187(0x64a)](function(){const _0x159807=_0x58c187;_0x46320f['addClass'](_0x27e494[_0x159807(0x147e)]),_0x46320f[_0x159807(0x9c6)]({'height':''}),_0x84cca2[_0x159807(0x1268)]({'success':!![]});});}),_0x84cca2[_0x5c7e21(0x1713)];}function _0x1e11e9(){const _0xf9bbd8=_0x8bb860,_0x14b6ef=_0x1ff49b[_0xf9bbd8(0x122)]();if(_0x5b13b7())return _0x14b6ef[_0xf9bbd8(0x19d2)]({'error':!![]}),_0x14b6ef['promise'];_0x3d09e6[_0xf9bbd8(0x24ac)]('collapsed',!![]);const _0x9a3a3d=angular[_0xf9bbd8(0x1f81)](_0x3d09e6[_0xf9bbd8(0x27bc)](_0xf9bbd8(0x585))[0x0]),_0x45a036=_0x9a3a3d[0x0][_0xf9bbd8(0x2576)];return _0x97383f[_0xf9bbd8(0x1f54)](function(){const _0x15ac84=_0xf9bbd8;_0x11c797[_0x15ac84(0x1e47)](_0x9a3a3d,{'height':_0x45a036+'px'},{'height':_0x15ac84(0x1344)},_0x27e494[_0x15ac84(0x91f)])['then'](function(){const _0x508038=_0x15ac84;_0x9a3a3d[_0x508038(0x12b3)](_0x27e494['expanded']),_0x9a3a3d[_0x508038(0x9c6)]({'display':'','height':''}),_0x14b6ef[_0x508038(0x1268)]({'success':!![]});});}),_0x14b6ef[_0xf9bbd8(0x1713)];}};}};};const _0x420482=_0x2e4a48['p']+'src/js/modules/core/directives/ms-navigation/templates/horizontal.html/horizontal.html';;const _0x54906c=_0x2e4a48['p']+_0x49a1e3(0x369);;_0x5b51bb[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1e3d)],_0x3d951e[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1f16),'$rootScope',_0x49a1e3(0x77f),'msNavigationService'],_0x4b9d12[_0x49a1e3(0x1e73)]=['msNavigationService'],_0x4cd693[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$element',_0x49a1e3(0x2159),'$animate','$state',_0x49a1e3(0xbe5)],_0x166f23['$inject']=[_0x49a1e3(0x2159),_0x49a1e3(0x20d4),_0x49a1e3(0x2899),_0x49a1e3(0xbe5)],_0x1c8494[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0xbe5)];function _0xf37227(){const _0x624ad4=_0x49a1e3,_0x1ddf9e=angular[_0x624ad4(0xd16)](['ng'])[_0x624ad4(0x896)](_0x624ad4(0xb5c));let _0x2d2e58=[];const _0x4ed649=this;_0x4ed649[_0x624ad4(0x1dbc)]=_0xb1e66a,_0x4ed649[_0x624ad4(0x126d)]=_0x12b215,_0x4ed649[_0x624ad4(0x161b)]=_0x52930d;function _0xb1e66a(_0x3a269a,_0x405e28){const _0x127ced=_0x624ad4;if(!angular[_0x127ced(0x2909)](_0x3a269a)){_0x1ddf9e[_0x127ced(0x1bd0)]('path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)');return;}const _0x388a40=_0x3a269a[_0x127ced(0x282c)]('.'),_0xa1ee8f=_0x388a40[_0x388a40[_0x127ced(0x1b9e)]-0x1],_0x467a83=_0x503a3c(_0x388a40);let _0x183773=![];for(let _0x1b7239=0x0;_0x1b7239<_0x467a83['length'];_0x1b7239++){if(_0x467a83[_0x1b7239][_0x127ced(0x1b78)]===_0xa1ee8f){_0x183773=_0x467a83[_0x1b7239];break;}}_0x183773?(angular['extend'](_0x183773,_0x405e28),_0x183773[_0x127ced(0x1181)]=_0x2fc1da(_0x183773)):(_0x405e28[_0x127ced(0x1730)]=[],(angular[_0x127ced(0x1a01)](_0x405e28[_0x127ced(0x22a3)])||!angular[_0x127ced(0x1f9a)](_0x405e28[_0x127ced(0x22a3)]))&&(_0x405e28[_0x127ced(0x22a3)]=0x1),_0x405e28[_0x127ced(0x1b78)]=_0xa1ee8f,_0x405e28[_0x127ced(0x871)]=_0x3a269a,_0x405e28['uisref']=_0x2fc1da(_0x405e28),_0x467a83[_0x127ced(0x1954)](_0x405e28));}function _0x12b215(_0x35f675){const _0x70e72b=_0x624ad4;if(!angular[_0x70e72b(0x2909)](_0x35f675)){_0x1ddf9e[_0x70e72b(0x1bd0)](_0x70e72b(0x1966));return;}let _0xff0f59=_0x2d2e58;const _0x5e9745=_0x35f675[_0x70e72b(0x282c)]('.');for(let _0x46cc71=0x0;_0x46cc71<_0x5e9745[_0x70e72b(0x1b9e)];_0x46cc71++){const _0x3e1d92=_0x5e9745[_0x46cc71];for(let _0x2d3838=0x0;_0x2d3838<_0xff0f59[_0x70e72b(0x1b9e)];_0x2d3838++){if(_0xff0f59[_0x2d3838][_0x70e72b(0x1b78)]===_0x3e1d92){if(_0xff0f59[_0x2d3838][_0x70e72b(0x871)]===_0x35f675)return _0xff0f59['splice'](_0x2d3838,0x1),!![];_0xff0f59=_0xff0f59[_0x2d3838]['children'];break;}}}return![];}function _0x52930d(_0x1ad457){const _0x20ca6b=_0x624ad4;!_0x1ad457&&(_0x1ad457=_0x2d2e58,_0x1ad457['sort'](_0x383f3a));for(let _0x6d0cb=0x0;_0x6d0cb<_0x1ad457[_0x20ca6b(0x1b9e)];_0x6d0cb++){const _0x4642d1=_0x1ad457[_0x6d0cb][_0x20ca6b(0x1730)];_0x4642d1[_0x20ca6b(0x1b9e)]>0x1&&_0x4642d1[_0x20ca6b(0x768)](_0x383f3a),_0x4642d1['length']>0x0&&_0x52930d(_0x4642d1);}}function _0x503a3c(_0x7a17e5){const _0x10658b=_0x624ad4;let _0x17ccaa=_0x2d2e58;if(_0x7a17e5[_0x10658b(0x1b9e)]===0x1)return _0x17ccaa;_0x7a17e5['pop']();for(let _0x1831b6=0x0;_0x1831b6<_0x7a17e5[_0x10658b(0x1b9e)];_0x1831b6++){const _0x59642b=_0x7a17e5[_0x1831b6];let _0x352c21=!![];for(let _0x5075f8=0x0;_0x5075f8<_0x17ccaa[_0x10658b(0x1b9e)];_0x5075f8++){if(_0x17ccaa[_0x5075f8][_0x10658b(0x1b78)]===_0x59642b){_0x17ccaa=_0x17ccaa[_0x5075f8][_0x10658b(0x1730)],_0x352c21=![];break;}}if(_0x352c21){const _0x3e4724={'_id':_0x59642b,'_path':_0x7a17e5[_0x10658b(0x9a6)]('.'),'title':_0x59642b,'weight':0x1,'children':[]};_0x17ccaa[_0x10658b(0x1954)](_0x3e4724),_0x17ccaa=_0x3e4724['children'];}}return _0x17ccaa;}function _0x383f3a(_0x1f932f,_0xe009fd){const _0x4e5c44=_0x624ad4;return parseInt(_0x1f932f['weight'])-parseInt(_0xe009fd[_0x4e5c44(0x22a3)]);}function _0x2fc1da(_0x443dd4){const _0x19b321=_0x624ad4;let _0x5b128d='';return angular[_0x19b321(0x16ab)](_0x443dd4[_0x19b321(0x14f2)])&&(_0x5b128d=_0x443dd4[_0x19b321(0x14f2)],angular[_0x19b321(0x16ab)](_0x443dd4[_0x19b321(0x1f21)])&&angular[_0x19b321(0x2052)](_0x443dd4[_0x19b321(0x1f21)])&&(_0x5b128d=_0x5b128d+'('+angular[_0x19b321(0x1b67)](_0x443dd4['stateParams'])+')')),_0x5b128d;}this[_0x624ad4(0x4ed)]=function(){let _0x406a56=null,_0x421375=null,_0x1567a4=null,_0x2c1a26=null;const _0x7bfd3={'saveItem':_0xb1e66a,'deleteItem':_0x12b215,'sort':_0x52930d,'clearNavigation':_0x38aacd,'setActiveItem':_0x2bf981,'getActiveItem':_0x30ecf1,'getNavigation':_0x1f31b0,'getFlatNavigation':_0x49fedb,'setNavigationScope':_0x4ac7df,'setFolded':_0x343f24,'getFolded':_0x551405,'setFoldedOpen':_0x2c705d,'getFoldedOpen':_0x2f3271,'toggleFolded':_0xb90fcc};return _0x7bfd3;function _0x38aacd(){const _0x1f0dfd=a0_0x4127;_0x2d2e58=[],_0x421375&&(_0x421375['vm'][_0x1f0dfd(0x190b)]=_0x2d2e58);}function _0x2bf981(_0x516a90,_0x1dea17){_0x406a56={'node':_0x516a90,'scope':_0x1dea17};}function _0x30ecf1(){return _0x406a56;}function _0x1f31b0(_0x57a618){const _0x1e8aa5=a0_0x4127;if(_0x57a618){for(let _0x11c774=0x0;_0x11c774<_0x2d2e58[_0x1e8aa5(0x1b9e)];_0x11c774++){if(_0x2d2e58[_0x11c774][_0x1e8aa5(0x1b78)]===_0x57a618)return[_0x2d2e58[_0x11c774]];}return null;}return _0x2d2e58;}function _0x49fedb(_0x1493ba){const _0x5bc6d4=_0x1f31b0(_0x1493ba);return _0xab6221(_0x5bc6d4);}function _0x4ac7df(_0x83c159){_0x421375=_0x83c159;}function _0x343f24(_0x16e49f){_0x1567a4=_0x16e49f;}function _0x551405(){return _0x1567a4;}function _0x2c705d(_0x1d2368){_0x2c1a26=_0x1d2368;}function _0x2f3271(){return _0x2c1a26;}function _0xb90fcc(){const _0x3040c5=a0_0x4127;_0x421375[_0x3040c5(0x1629)]();}function _0xab6221(_0x52e8a9){const _0xe26753=a0_0x4127;let _0x2a9721=[];for(let _0x5b5497=0x0;_0x5b5497<_0x52e8a9[_0xe26753(0x1b9e)];_0x5b5497++){const _0x40f1bf=angular[_0xe26753(0x289e)](_0x52e8a9[_0x5b5497]);_0x40f1bf['children']=[],_0x2a9721[_0xe26753(0x1954)](_0x40f1bf),_0x52e8a9[_0x5b5497][_0xe26753(0x1730)][_0xe26753(0x1b9e)]>0x0&&(_0x2a9721=_0x2a9721['concat'](_0xab6221(_0x52e8a9[_0x5b5497]['children'])));}return _0x2a9721;}};}function _0x1c8494(_0x1862a1,_0x23ca74){const _0x56afc1=_0x49a1e3,_0x47652f=this;_0x1862a1[_0x56afc1(0x835)]?_0x47652f[_0x56afc1(0x190b)]=_0x23ca74[_0x56afc1(0x1054)](_0x1862a1[_0x56afc1(0x835)]):_0x47652f[_0x56afc1(0x190b)]=_0x23ca74[_0x56afc1(0x1054)]();_0x47652f['toggleHorizontalMobileMenu']=_0x46dd0b,_0x284a8d();function _0x284a8d(){_0x23ca74['sort']();}function _0x46dd0b(){const _0x21f962=_0x56afc1;angular[_0x21f962(0x1f81)]('body')['toggleClass'](_0x21f962(0xe76));}}function _0x166f23(_0x4a599e,_0x2b9d49,_0x5ab520,_0x2d151a){const _0x8426e6=_0x49a1e3;return{'restrict':'E','scope':{'folded':'=','root':'@'},'controller':_0x8426e6(0x1df5),'templateUrl':_0x54906c,'transclude':!![],'compile':function(_0x4ef8c6){const _0x387ea9=_0x8426e6;return _0x4ef8c6[_0x387ea9(0xb6f)](_0x387ea9(0x2058)),function _0x95cba2(_0xa8a43,_0x138d11){const _0x4f49a7=_0x387ea9,_0x1caa26=angular[_0x4f49a7(0x1f81)]('body'),_0x138762=angular[_0x4f49a7(0x1f81)](_0x4f49a7(0x4d2)),_0x3eb481=angular[_0x4f49a7(0x1f81)](_0x4f49a7(0x1f47)),_0x493dd4=_0x5ab520(_0x4f49a7(0x190b));_0x2d151a[_0x4f49a7(0x1732)](_0xa8a43),_0x21e4e6();function _0x21e4e6(){const _0x40ae66=_0x4f49a7;_0x2d151a[_0x40ae66(0x27c3)]()===null&&_0x2d151a[_0x40ae66(0x8fa)](_0xa8a43[_0x40ae66(0x79c)]),_0x2d151a[_0x40ae66(0x27c3)]()&&(_0x2b9d49(function(){const _0x48c31b=_0x40ae66;_0x4a599e[_0x48c31b(0x1a2e)](_0x48c31b(0x2024));}),_0x1caa26[_0x40ae66(0xb6f)](_0x40ae66(0x1648)),_0x144e13());}_0xa8a43[_0x4f49a7(0xc62)](function(){const _0x3202dd=_0x4f49a7;return _0x493dd4[_0x3202dd(0x1415)]();},function(_0x141fb2,_0x24eba3){const _0x23c9e7=_0x4f49a7;if(angular[_0x23c9e7(0x1a01)](_0x141fb2)||angular[_0x23c9e7(0x1a61)](_0x141fb2,_0x24eba3))return;const _0x45147c=_0x2d151a[_0x23c9e7(0x27c3)]();if(_0x45147c){if(_0x141fb2)_0x4a599e[_0x23c9e7(0x1a2e)](_0x23c9e7(0x2024));else{const _0x253ddf=_0x2d151a[_0x23c9e7(0x1632)]();_0x253ddf&&_0x253ddf['scope']['$emit'](_0x23c9e7(0x10da));}}}),_0xa8a43['$watch'](_0x4f49a7(0x79c),function(_0x28e9b2,_0x3b6561){const _0x192d6e=_0x4f49a7;if(angular[_0x192d6e(0x1a01)](_0x28e9b2)||angular[_0x192d6e(0x1a61)](_0x28e9b2,_0x3b6561))return;_0x604444(_0x28e9b2);});function _0x604444(_0x432428){const _0x5b509d=_0x4f49a7;_0x2d151a[_0x5b509d(0x8fa)](_0x432428);if(_0x432428)_0x4a599e[_0x5b509d(0x1a2e)](_0x5b509d(0x2024)),_0x1caa26[_0x5b509d(0xb6f)]('ms-navigation-folded'),_0x144e13();else{const _0x1b44b1=_0x2d151a[_0x5b509d(0x1632)]();_0x1b44b1&&_0x1b44b1[_0x5b509d(0x88a)]['$emit'](_0x5b509d(0x10da)),_0x1caa26['removeClass'](_0x5b509d(0x157d)),_0x4e8001();}}function _0x144e13(){_0x138d11['parent']()['append'](_0x138762),_0x2b9d49(function(){const _0x368d89=a0_0x4127;_0x138762['on'](_0x368d89(0x122e),_0x55a5da);});}function _0x4d7ac3(){const _0x5de716=_0x4f49a7;_0x1caa26['find']('#main')[_0x5de716(0x1d30)](_0x3eb481),_0x3eb481['on'](_0x5de716(0x122e),_0x57c944);}function _0x4e8001(){const _0xc9c06a=_0x4f49a7;_0x3eb481[_0xc9c06a(0x21c7)]();}function _0x55a5da(_0x58a494){const _0x48cfd3=_0x4f49a7;_0x58a494&&_0x58a494[_0x48cfd3(0xecc)]();_0x2d151a[_0x48cfd3(0x6a9)](!![]);const _0x5eda25=_0x2d151a[_0x48cfd3(0x1632)]();_0x5eda25&&_0x5eda25['scope'][_0x48cfd3(0x5de)]('msNavigation::stateMatched'),_0x1caa26[_0x48cfd3(0xb6f)](_0x48cfd3(0x1e23)),_0x138762[_0x48cfd3(0x21c7)](),_0x4d7ac3();}function _0x57c944(_0x1185eb){const _0x4e3033=_0x4f49a7;_0x1185eb&&_0x1185eb[_0x4e3033(0xecc)](),_0x2d151a['setFoldedOpen'](![]),_0x4a599e[_0x4e3033(0x1a2e)](_0x4e3033(0x2024)),_0x1caa26[_0x4e3033(0x12b3)]('ms-navigation-folded-open'),_0x3eb481['remove'](),_0x144e13();}_0xa8a43[_0x4f49a7(0x1629)]=function(){const _0x5c03cb=_0x2d151a['getFolded']();_0x604444(!_0x5c03cb);},_0xa8a43[_0x4f49a7(0x8c7)](_0x4f49a7(0x3ea),function(){const _0x2eada6=_0x4f49a7;_0x493dd4[_0x2eada6(0x67b)]();}),_0xa8a43[_0x4f49a7(0x8c7)](_0x4f49a7(0xf28),function(){const _0x1184f6=_0x4f49a7;_0x3eb481['off'](_0x1184f6(0x122e)),_0x138762[_0x1184f6(0x414)](_0x1184f6(0x122e));});};}};}function _0x4cd693(_0x3a4f8a,_0x52b3ca,_0x5622ed,_0x483762,_0x5ad867,_0x2b4bf1){const _0x32c8b5=_0x49a1e3,_0x4ee9f2=this;_0x4ee9f2[_0x32c8b5(0x1f81)]=_0x52b3ca,_0x4ee9f2[_0x32c8b5(0x1442)]=_0x3a4f8a['node'],_0x4ee9f2[_0x32c8b5(0x698)]=undefined,_0x4ee9f2['collapsed']=undefined,_0x4ee9f2['collapsable']=undefined,_0x4ee9f2['group']=undefined,_0x4ee9f2[_0x32c8b5(0x1980)]='animate-height',_0x4ee9f2[_0x32c8b5(0x1ac4)]=_0x55be8a,_0x4ee9f2[_0x32c8b5(0x256)]=_0x15b255,_0x4ee9f2[_0x32c8b5(0x14da)]=_0x1997fe,_0x4ee9f2[_0x32c8b5(0x809)]=_0x412308,_0x4ee9f2[_0x32c8b5(0x13a9)]=_0x1eea42,_0x14910e();function _0x14910e(){const _0x983e78=_0x32c8b5;_0x4ee9f2[_0x983e78(0x698)]=_0x4ee9f2[_0x983e78(0x1442)]['children'][_0x983e78(0x1b9e)]>0x0,_0x4ee9f2['group']=!!(angular[_0x983e78(0x16ab)](_0x4ee9f2[_0x983e78(0x1442)]['group'])&&_0x4ee9f2[_0x983e78(0x1442)]['group']===!![]);!_0x4ee9f2[_0x983e78(0x698)]||_0x4ee9f2[_0x983e78(0x1dda)]?_0x4ee9f2[_0x983e78(0xafb)]=![]:_0x4ee9f2[_0x983e78(0xafb)]=!!(angular[_0x983e78(0x1a01)](_0x4ee9f2[_0x983e78(0x1442)]['collapsable'])||typeof _0x4ee9f2[_0x983e78(0x1442)][_0x983e78(0xafb)]!==_0x983e78(0x9ea)||_0x4ee9f2['node'][_0x983e78(0xafb)]===!![]);!_0x4ee9f2['collapsable']?_0x4ee9f2['collapsed']=![]:_0x4ee9f2[_0x983e78(0x2952)]=!!(angular[_0x983e78(0x1a01)](_0x4ee9f2[_0x983e78(0x1442)][_0x983e78(0x2952)])||typeof _0x4ee9f2[_0x983e78(0x1442)]['collapsed']!=='boolean'||_0x4ee9f2['node'][_0x983e78(0x2952)]===!![]);if(_0x4ee9f2[_0x983e78(0x1442)][_0x983e78(0x14f2)]===_0x5ad867[_0x983e78(0xa6c)][_0x983e78(0x2494)]||_0x5ad867[_0x983e78(0x68a)](_0x4ee9f2[_0x983e78(0x1442)][_0x983e78(0x14f2)])){if(angular['isDefined'](_0x4ee9f2[_0x983e78(0x1442)]['stateParams'])&&angular[_0x983e78(0x16ab)](_0x5ad867[_0x983e78(0x1b48)])&&!angular[_0x983e78(0x1a61)](_0x4ee9f2[_0x983e78(0x1442)][_0x983e78(0x1f21)],_0x5ad867['params']))return;_0x3a4f8a[_0x983e78(0x5de)]('msNavigation::stateMatched'),_0x2b4bf1['setActiveItem'](_0x4ee9f2[_0x983e78(0x1442)],_0x3a4f8a);}_0x3a4f8a[_0x983e78(0x8c7)]('msNavigation::stateMatched',function(){const _0x2fd2b6=_0x983e78;_0x4ee9f2['collapsable']&&_0x4ee9f2[_0x2fd2b6(0x2952)]&&_0x3a4f8a[_0x2fd2b6(0x1f54)](function(){_0x4ee9f2['collapsed']=![];});}),_0x3a4f8a[_0x983e78(0x8c7)]('msNavigation::collapse',function(_0x4bc322,_0x36220d){const _0x1f0947=_0x983e78;if(_0x4ee9f2['collapsed']||!_0x4ee9f2[_0x1f0947(0xafb)])return;if(angular[_0x1f0947(0x1a01)](_0x36220d))_0x4ee9f2['collapse']();else{const _0xb25332=_0x36220d[_0x1f0947(0x282c)]('.');let _0x35e567=[];const _0xe2083b=_0x2b4bf1[_0x1f0947(0x1632)]();_0xe2083b&&(_0x35e567=_0xe2083b['node'][_0x1f0947(0x871)][_0x1f0947(0x282c)]('.'));if(_0xb25332[_0x1f0947(0x1b28)](_0x4ee9f2[_0x1f0947(0x1442)][_0x1f0947(0x1b78)])>-0x1)return;if(_0x35e567[_0x1f0947(0x1b28)](_0x4ee9f2[_0x1f0947(0x1442)]['_id'])>-0x1)return;_0x4ee9f2[_0x1f0947(0x256)]();}}),_0x3a4f8a['$on'](_0x983e78(0x15a6),function(){const _0x1ed7b8=_0x983e78;if(_0x4ee9f2[_0x1ed7b8(0x1442)][_0x1ed7b8(0x14f2)]===_0x5ad867['current']['name']){if(angular[_0x1ed7b8(0x16ab)](_0x4ee9f2[_0x1ed7b8(0x1442)][_0x1ed7b8(0x1f21)])&&angular[_0x1ed7b8(0x16ab)](_0x5ad867[_0x1ed7b8(0x1b48)])&&!angular[_0x1ed7b8(0x1a61)](_0x4ee9f2['node'][_0x1ed7b8(0x1f21)],_0x5ad867[_0x1ed7b8(0x1b48)]))return;_0x2b4bf1['setActiveItem'](_0x4ee9f2[_0x1ed7b8(0x1442)],_0x3a4f8a),_0x5622ed['$broadcast']('msNavigation::collapse',_0x4ee9f2[_0x1ed7b8(0x1442)][_0x1ed7b8(0x871)]);}if(_0x5ad867['includes'](_0x4ee9f2[_0x1ed7b8(0x1442)][_0x1ed7b8(0x14f2)])){if(angular[_0x1ed7b8(0x16ab)](_0x4ee9f2[_0x1ed7b8(0x1442)][_0x1ed7b8(0x1f21)])&&angular[_0x1ed7b8(0x16ab)](_0x5ad867['params'])&&!angular[_0x1ed7b8(0x1a61)](_0x4ee9f2['node'][_0x1ed7b8(0x1f21)],_0x5ad867['params']))return;_0x3a4f8a[_0x1ed7b8(0x5de)]('msNavigation::stateMatched');}});}function _0x55be8a(){const _0x418cc8=_0x32c8b5;_0x4ee9f2[_0x418cc8(0x2952)]?_0x4ee9f2['expand']():_0x4ee9f2['collapse']();}function _0x15b255(){const _0x48ee48=_0x32c8b5,_0x48a76f=_0x4ee9f2[_0x48ee48(0x1f81)][_0x48ee48(0x1730)]('ul'),_0x311e1a=_0x48a76f[0x0][_0x48ee48(0x2576)];_0x3a4f8a['$evalAsync'](function(){const _0x3ffcf0=_0x48ee48;_0x4ee9f2[_0x3ffcf0(0x2952)]=!![],_0x4ee9f2['element'][_0x3ffcf0(0xb6f)](_0x3ffcf0(0x197b)),_0x483762[_0x3ffcf0(0x1e47)](_0x48a76f,{'display':_0x3ffcf0(0x6f2),'height':_0x311e1a+'px'},{'height':_0x3ffcf0(0x1344)},_0x4ee9f2[_0x3ffcf0(0x1980)])[_0x3ffcf0(0x64a)](function(){const _0x31acd3=_0x3ffcf0;_0x48a76f[_0x31acd3(0x9c6)]({'display':'','height':''}),_0x4ee9f2[_0x31acd3(0x1f81)]['removeClass'](_0x31acd3(0x197b));}),_0x3a4f8a[_0x3ffcf0(0x1a2e)](_0x3ffcf0(0x2024));});}function _0x1997fe(){const _0x133b90=_0x32c8b5,_0x428f39=_0x4ee9f2['element'][_0x133b90(0x1730)]('ul');_0x428f39['css']({'position':_0x133b90(0x21c3),'visibility':_0x133b90(0x2d5),'display':_0x133b90(0x6f2),'height':'auto'});const _0x21948e=_0x428f39[0x0]['offsetHeight'];_0x428f39[_0x133b90(0x9c6)]({'position':'','visibility':'','display':'','height':''}),_0x3a4f8a[_0x133b90(0x1f54)](function(){const _0x3f000f=_0x133b90;_0x4ee9f2[_0x3f000f(0x2952)]=![],_0x4ee9f2[_0x3f000f(0x1f81)]['addClass'](_0x3f000f(0x269b)),_0x483762[_0x3f000f(0x1e47)](_0x428f39,{'display':_0x3f000f(0x6f2),'height':'0px'},{'height':_0x21948e+'px'},_0x4ee9f2[_0x3f000f(0x1980)])['then'](function(){const _0x4b2dbd=_0x3f000f;_0x428f39[_0x4b2dbd(0x9c6)]({'height':''}),_0x4ee9f2[_0x4b2dbd(0x1f81)][_0x4b2dbd(0x12b3)]('expanding');}),_0x5622ed[_0x3f000f(0x1a2e)](_0x3f000f(0x2024),_0x4ee9f2[_0x3f000f(0x1442)][_0x3f000f(0x871)]);});}function _0x412308(){const _0x5150f8=_0x32c8b5;return _0x4ee9f2[_0x5150f8(0x1442)][_0x5150f8(0x17c7)];}function _0x1eea42(){const _0x6aefd0=_0x32c8b5;if(angular[_0x6aefd0(0x16ab)](_0x4ee9f2[_0x6aefd0(0x1442)][_0x6aefd0(0x2d5)])&&angular[_0x6aefd0(0x130e)](_0x4ee9f2[_0x6aefd0(0x1442)][_0x6aefd0(0x2d5)]))return _0x4ee9f2['node']['hidden']();return![];}}function _0x2688cf(){return{'restrict':'A','bindToController':{'node':'=msNavigationNode'},'controller':'MsNavigationNodeController\x20as\x20vm','compile':function(_0x53e7c5){const _0x358de2=a0_0x4127;return _0x53e7c5[_0x358de2(0xb6f)]('ms-navigation-node'),function _0xeb25b6(_0xc9511a,_0x5c04fc,_0xa4e17,_0x504459){const _0x25dbfc=_0x358de2;_0x5c04fc[_0x25dbfc(0xb6f)](_0x504459[_0x25dbfc(0x809)]()),_0x504459['group']&&_0x5c04fc[_0x25dbfc(0xb6f)]('group');};}};}function _0x368ec3(){const _0x2e5fed=_0x49a1e3;return{'restrict':'A','require':_0x2e5fed(0x2787),'compile':function(_0x4abe33){const _0x16ca26=_0x2e5fed;return _0x4abe33[_0x16ca26(0xb6f)](_0x16ca26(0x1ca5)),function _0x1b495d(_0x569eaa,_0x5ea097,_0x435a01,_0x21de18){const _0x414ba4=_0x16ca26;_0x21de18[_0x414ba4(0xafb)]&&_0x5ea097['on'](_0x414ba4(0x2668),_0x21de18[_0x414ba4(0x1ac4)]),_0x569eaa[_0x414ba4(0x8c7)]('$destroy',function(){const _0x58eb44=_0x414ba4;_0x5ea097[_0x58eb44(0x414)](_0x58eb44(0x2668));});};}};}function _0x4b9d12(_0x3b6e39){const _0x4221dc=_0x49a1e3;return{'restrict':'E','scope':{'root':'@'},'controller':_0x4221dc(0x1df5),'templateUrl':_0x420482,'transclude':!![],'compile':function(_0x2642a7){const _0x402923=_0x4221dc;return _0x2642a7['addClass'](_0x402923(0x25a3)),function _0x4dadc7(_0x19028b){const _0x5724f2=_0x402923;_0x3b6e39[_0x5724f2(0x1732)](_0x19028b);};}};}function _0x3d951e(_0x883448,_0x55b406,_0x45f00d,_0x3caaa9,_0x54e00b){const _0x1b5d7f=_0x49a1e3,_0x58d438=this;_0x58d438[_0x1b5d7f(0x1f81)]=_0x55b406,_0x58d438[_0x1b5d7f(0x1442)]=_0x883448[_0x1b5d7f(0x1442)],_0x58d438[_0x1b5d7f(0x698)]=undefined,_0x58d438[_0x1b5d7f(0x1dda)]=undefined,_0x58d438[_0x1b5d7f(0x809)]=_0x338445,_0x3ee415();function _0x3ee415(){const _0x17963b=_0x1b5d7f;_0x58d438[_0x17963b(0x2174)]=![],_0x58d438[_0x17963b(0x698)]=_0x58d438[_0x17963b(0x1442)][_0x17963b(0x1730)][_0x17963b(0x1b9e)]>0x0,_0x58d438[_0x17963b(0x1dda)]=!!(angular[_0x17963b(0x16ab)](_0x58d438[_0x17963b(0x1442)]['group'])&&_0x58d438[_0x17963b(0x1442)][_0x17963b(0x1dda)]===!![]);if(_0x58d438[_0x17963b(0x1442)][_0x17963b(0x14f2)]===_0x3caaa9[_0x17963b(0xa6c)][_0x17963b(0x2494)]||_0x3caaa9['includes'](_0x58d438[_0x17963b(0x1442)][_0x17963b(0x14f2)])){if(angular[_0x17963b(0x16ab)](_0x58d438['node'][_0x17963b(0x1f21)])&&angular['isDefined'](_0x3caaa9[_0x17963b(0x1b48)])&&!angular[_0x17963b(0x1a61)](_0x58d438[_0x17963b(0x1442)][_0x17963b(0x1f21)],_0x3caaa9[_0x17963b(0x1b48)]))return;_0x883448['$emit'](_0x17963b(0x10da)),_0x54e00b[_0x17963b(0x242d)](_0x58d438['node'],_0x883448);}_0x883448[_0x17963b(0x8c7)](_0x17963b(0x10da),function(){const _0x3af628=_0x17963b;_0x58d438[_0x3af628(0x698)]&&_0x883448[_0x3af628(0x1f54)](function(){const _0x25bdf0=_0x3af628;_0x58d438[_0x25bdf0(0x2174)]=!![];});}),_0x883448['$on'](_0x17963b(0x9cd),function(){const _0x47d527=_0x17963b;if(!_0x58d438[_0x47d527(0x698)])return;let _0x160d3d=[];const _0x204428=_0x54e00b[_0x47d527(0x1632)]();_0x204428&&(_0x160d3d=_0x204428[_0x47d527(0x1442)]['_path'][_0x47d527(0x282c)]('.')),_0x160d3d[_0x47d527(0x1b28)](_0x58d438[_0x47d527(0x1442)]['_id'])>-0x1?_0x883448[_0x47d527(0x1f54)](function(){const _0x3d88c5=_0x47d527;_0x58d438[_0x3d88c5(0x2174)]=!![];}):_0x883448['$evalAsync'](function(){const _0x11fcac=_0x47d527;_0x58d438[_0x11fcac(0x2174)]=![];});}),_0x883448['$on']('$stateChangeSuccess',function(){const _0x2e4645=_0x17963b;if(_0x58d438[_0x2e4645(0x1442)]['state']===_0x3caaa9['current']['name']||_0x3caaa9[_0x2e4645(0x68a)](_0x58d438[_0x2e4645(0x1442)][_0x2e4645(0x14f2)])){if(angular['isDefined'](_0x58d438[_0x2e4645(0x1442)][_0x2e4645(0x1f21)])&&angular['isDefined'](_0x3caaa9[_0x2e4645(0x1b48)])&&!angular[_0x2e4645(0x1a61)](_0x58d438[_0x2e4645(0x1442)][_0x2e4645(0x1f21)],_0x3caaa9[_0x2e4645(0x1b48)]))return;_0x54e00b[_0x2e4645(0x242d)](_0x58d438[_0x2e4645(0x1442)],_0x883448),_0x45f00d['$broadcast'](_0x2e4645(0x9cd));}});}function _0x338445(){const _0x35cca8=_0x1b5d7f;return _0x58d438['node'][_0x35cca8(0x17c7)];}}function _0xd2b7f3(){const _0x5238bf=_0x49a1e3;return{'restrict':'A','bindToController':{'node':_0x5238bf(0x26b9)},'controller':_0x5238bf(0x11d2),'compile':function(_0x107031){const _0x173c35=_0x5238bf;return _0x107031[_0x173c35(0xb6f)](_0x173c35(0x4c8)),function _0x534096(_0x29eead,_0x195027,_0xbcc593,_0x1ec51a){const _0x2dcc24=_0x173c35;_0x195027['addClass'](_0x1ec51a[_0x2dcc24(0x809)]()),_0x1ec51a[_0x2dcc24(0x1dda)]&&_0x195027['addClass'](_0x2dcc24(0x1dda));};}};}function _0x5b51bb(_0x2a045a){const _0x425bf9=_0x49a1e3;return{'restrict':'A','require':_0x425bf9(0x286f),'compile':function(_0x3d34e8){const _0x28e65f=_0x425bf9;return _0x3d34e8[_0x28e65f(0xb6f)](_0x28e65f(0x217)),function _0x3b4560(_0x27e489,_0x141691,_0x25f11f,_0x4cca39){const _0x45ea53=_0x28e65f;_0x141691['on'](_0x45ea53(0x2668),_0x242518);function _0x242518(){const _0x2959d2=_0x45ea53;if(!_0x4cca39[_0x2959d2(0x698)]||_0x2a045a(_0x2959d2(0x184a)))return;_0x141691['toggleClass'](_0x2959d2(0x147e));}_0x27e489[_0x45ea53(0x8c7)](_0x45ea53(0xf28),function(){const _0x3f1f4c=_0x45ea53;_0x141691['off'](_0x3f1f4c(0x2668));});};}};};const _0x5cf74e=_0x2e4a48['p']+'src/js/modules/core/directives/ms-phonebar/record/dialog.html/dialog.html';;const _0x4e1d6a=_0x2e4a48['p']+'src/js/modules/core/directives/ms-phonebar/referAttended/dialog.html/dialog.html';;const _0x2ec31e=_0x2e4a48['p']+_0x49a1e3(0x628);;const _0x143b9c=_0x2e4a48['p']+_0x49a1e3(0xe01);var _0x261eb3=_0x2e4a48(0x175b),_0x29e3ff=_0x2e4a48['n'](_0x261eb3),_0x4d6023=_0x2e4a48(0x26ba),_0x223034=_0x2e4a48['n'](_0x4d6023);;_0x2a4b2c[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),'$interval',_0x49a1e3(0x212a),_0x49a1e3(0x611),_0x49a1e3(0x1fe7),_0x49a1e3(0x298c),_0x49a1e3(0xb74),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x2677),'Auth','socket'];function _0x2a4b2c(_0x130e87,_0x49c5a8,_0x590148,_0x52ca99,_0x1f99ba,_0x5b084a,_0x3dcba9,_0x2caf9e,_0x17aef2,_0x3c3a72,_0x38d835,_0x386e2c,_0x6bb8d8,_0x33091b){const _0x159c3b=_0x49a1e3,_0x2a921e=this,_0x36b87a=window[_0x159c3b(0x438)];_0x2a921e[_0x159c3b(0xeba)]=_0x38d835[_0x159c3b(0xeba)],_0x2a921e[_0x159c3b(0x912)]=_0x130e87[_0x159c3b(0x4e3)]['vm'][_0x159c3b(0x912)];const _0x146124=[_0x159c3b(0x1ec),_0x159c3b(0x282e),_0x159c3b(0x215a),_0x159c3b(0x276b),_0x159c3b(0xf29),_0x159c3b(0x9ee),_0x159c3b(0x129f),'speakerMute',_0x159c3b(0x1a5f)],_0x586314=_0x2a921e['conf']&&JSON[_0x159c3b(0x27f1)](_0x3dcba9[_0x159c3b(0x294)][_0x159c3b(0x1ed0)](_0x159c3b(0x155e)+_0x2a921e['conf']['id']))||{'webrtc':{'ringingVolume':0.5,'speakerVolume':0.5,'microphoneVolume':0x1,'ringingMute':![],'speakerMute':![],'microphoneMute':![]}};_0x52ca99(function(){},0x3e7),_0x2a921e['direction']=_0x159c3b(0x15d7),_0x2a921e[_0x159c3b(0x26a1)]='md-scale',_0x2a921e['target']='',_0x2a921e[_0x159c3b(0x19d7)]=![],_0x2a921e['soundPlayer']=document[_0x159c3b(0x2978)](_0x159c3b(0x2240)),_0x2a921e[_0x159c3b(0x1f45)]=document['getElementById'](_0x2a921e[_0x159c3b(0x912)][_0x159c3b(0x1698)]),_0x2a921e[_0x159c3b(0x1d9e)][_0x159c3b(0x1ef7)]=0x1,_0x2a921e[_0x159c3b(0x1493)]={'mediaConstraints':{'audio':!![],'video':![]},'pcConfig':{'iceServers':[]}},_0x2a921e[_0x159c3b(0x10eb)]=[],_0x2a921e[_0x159c3b(0x1a3a)]=[],_0x2a921e[_0x159c3b(0x1716)]=[],_0x2a921e[_0x159c3b(0xaa0)]=![],_0x2a921e[_0x159c3b(0x1d35)]=![],_0x2a921e[_0x159c3b(0x28ea)]=[],_0x2a921e['ua']=new(_0x29e3ff())['UA']({'sockets':[new(_0x29e3ff())['WebSocketInterface'](_0x159c3b(0x1b71)+_0x2a921e[_0x159c3b(0x912)][_0x159c3b(0x1e5d)]+':8089/ws')],'uri':new(_0x29e3ff())[(_0x159c3b(0x231e))](_0x159c3b(0xe7b),_0x2a921e['conf']['name'],_0x2a921e[_0x159c3b(0x912)]['host'],0x13c4,null,null)['toString'](),'authorization_user':_0x2a921e['conf'][_0x159c3b(0x2494)],'ha1':_0x2a921e[_0x159c3b(0x912)][_0x159c3b(0x1801)],'realm':_0x2a921e['conf'][_0x159c3b(0x1180)],'user_agent':_0x2a921e[_0x159c3b(0x912)]['ua'],'session_timers_refresh_method':_0x159c3b(0x14e2),'register_expires':_0x2a921e[_0x159c3b(0x912)][_0x159c3b(0x1362)]||0x3c,'register':!![]}),_0x2a921e[_0x159c3b(0x912)]=_0x28c606()[_0x159c3b(0x14fe)](_0x586314[_0x159c3b(0x31f)],_0x2a921e[_0x159c3b(0x912)]),_0x2a921e['initDeviceInProgress']=![],_0x2a921e['isJabraEnabled']=![],_0x2a921e[_0x159c3b(0x1a5)]=![],_0x2a921e['jabraSession']=null,_0x2a921e[_0x159c3b(0x1fba)]=![],_0x2a921e[_0x159c3b(0x189)]=![],_0x2a921e['originateInProgress']=![];function _0x3ae757(){const _0x5d2f31=_0x159c3b;_0x52b597(![]),navigator['mediaDevices'][_0x5d2f31(0x2646)]=function(){const _0x52777e=_0x5d2f31;!_0x2a921e[_0x52777e(0x432)]&&(_0x2a921e[_0x52777e(0x432)]=!![],_0x36b87a&&_0x2a921e['isJabraInitialized']?_0x36b87a['shutdown']()[_0x52777e(0x64a)](function(){const _0x38e394=_0x52777e;_0x2a921e[_0x38e394(0x1a5)]=![],_0x2a921e['isJabraEnabled']=![],_0x52b597(!![]);})[_0x52777e(0x20cd)](function(_0x2c1196){const _0x1c3a4f=_0x52777e;console[_0x1c3a4f(0x1bd0)]('Unable\x20to\x20shutdown\x20Jabra\x20library',_0x2c1196);}):_0x52b597(!![]));};const _0xbc4235=[_0x38d835[_0x5d2f31(0x14eb)]['get']({'type':_0x5d2f31(0x8d7),'nolimit':!![]})[_0x5d2f31(0x15e7)],_0x38d835[_0x5d2f31(0x14eb)][_0x5d2f31(0x896)]({'type':_0x5d2f31(0x12b7),'nolimit':!![]})[_0x5d2f31(0x15e7)]];Promise['all'](_0xbc4235)[_0x5d2f31(0x64a)](function(_0x4a4ba6){const _0x108505=_0x5d2f31,_0x349b85=_0x4a4ba6[0x0]['rows'],_0x25d02c=_0x4a4ba6[0x1][_0x108505(0x28b8)],_0x382eb5=[],_0x38caa4=[];_0x25d02c[_0x108505(0x1397)](function(_0x43db13){const _0x161524=_0x108505;_0x38caa4['push'](_0x161524(0x15af)+_0x43db13[_0x161524(0x1096)]);}),_0x382eb5['push']({'urls':_0x38caa4}),_0x349b85[_0x108505(0x1397)](function(_0x3106c7){const _0xdc2fdf=_0x108505,_0x1f4776={'urls':'turn:'+_0x3106c7[_0xdc2fdf(0x1096)]};_0x3106c7[_0xdc2fdf(0x10c1)]&&(_0x1f4776[_0xdc2fdf(0x10c1)]=_0x3106c7[_0xdc2fdf(0x10c1)]),_0x3106c7[_0xdc2fdf(0x441)]&&(_0x1f4776[_0xdc2fdf(0x1e9d)]=_0x3106c7[_0xdc2fdf(0x441)]),_0x382eb5[_0xdc2fdf(0x1954)](_0x1f4776);}),_0x2a921e[_0x108505(0x1493)][_0x108505(0x1047)]={'iceServers':_0x382eb5};}),this['ua']['on'](_0x5d2f31(0x5ab),_0x71cb1e[_0x5d2f31(0xd7b)](this)),this['ua']['on'](_0x5d2f31(0x1f05),_0x29e521[_0x5d2f31(0xd7b)](this)),this['ua']['on']('newRTCSession',_0x3dabe6[_0x5d2f31(0xd7b)](this)),_0x33091b['on']('webbar:originate',_0x589949[_0x5d2f31(0xd7b)](this)),_0x33091b['on'](_0x5d2f31(0x428),_0x1e71ef[_0x5d2f31(0xd7b)](this)),_0x33091b['on']('webbar:answer',_0x23e9d9[_0x5d2f31(0xd7b)](this)),_0x33091b['on'](_0x5d2f31(0x27de),_0x1c666d['bind'](this)),_0x33091b['on']('webbar:unhold',_0x55baf2['bind'](this)),_0x33091b['on'](_0x5d2f31(0x339),_0x5c5305[_0x5d2f31(0xd7b)](this));}function _0x52b597(_0x13f81f){const _0x2b880d=_0x159c3b;let _0x2421b3,_0x5bb3a9,_0x373f00;return _0x2a921e[_0x2b880d(0x432)]=!![],navigator[_0x2b880d(0x2274)][_0x2b880d(0x10e5)]({'audio':!![]})[_0x2b880d(0x64a)](function(_0x337cd5){const _0x40e4eb=_0x2b880d;return _0x337cd5['getTracks']()[_0x40e4eb(0x1397)](function(_0x359291){_0x359291['stop']();}),navigator['mediaDevices'][_0x40e4eb(0x1d4)]();})[_0x2b880d(0x64a)](function(_0x35300a){const _0xbb1550=_0x2b880d,_0x432f67=_0x28c606()['filter'](_0x35300a,function(_0x47547d){const _0x3a7e13=a0_0x4127;return _0x47547d[_0x3a7e13(0x98b)]===_0x3a7e13(0x1550)&&_0x47547d[_0x3a7e13(0x178a)]!==_0x3a7e13(0x416)&&_0x47547d[_0x3a7e13(0x178a)]!==_0x3a7e13(0x2892);});if(_0x432f67[_0xbb1550(0x1b9e)]>0x0){const _0x4a16dc=_0x28c606()['find'](_0x35300a,function(_0x3df414){const _0x31a83e=_0xbb1550;return _0x3df414[_0x31a83e(0x178a)]===_0x31a83e(0x416)&&_0x3df414['kind']===_0x31a83e(0x1550);});_0x373f00=_0x28c606()[_0xbb1550(0x27bc)](_0x432f67,function(_0x2825c4){const _0x34da17=_0xbb1550;return _0x2825c4[_0x34da17(0x9c7)]===_0x4a16dc[_0x34da17(0x9c7)];});if(_0x2a921e[_0xbb1550(0x912)][_0xbb1550(0x215a)]&&!_0x13f81f){const _0x109ca2=_0x28c606()[_0xbb1550(0x27bc)](_0x432f67,function(_0x39a4f9){const _0x227530=_0xbb1550;return _0x39a4f9[_0x227530(0x178a)]===_0x2a921e['conf'][_0x227530(0x215a)];});_0x109ca2&&(_0x373f00=_0x109ca2);}_0x2a921e[_0xbb1550(0x912)]['microphoneId']=_0x373f00[_0xbb1550(0x178a)];}else _0x3c3a72['warning']({'title':_0x2caf9e[_0xbb1550(0x2292)](_0xbb1550(0x1450)),'msg':_0x2caf9e[_0xbb1550(0x2292)](_0xbb1550(0x1cb5)),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0xbb1550(0x1233)});_0x2a921e[_0xbb1550(0x912)][_0xbb1550(0x215a)]?_0x2a921e[_0xbb1550(0x1493)]['mediaConstraints']['audio']={'deviceId':_0x2a921e[_0xbb1550(0x912)][_0xbb1550(0x215a)]}:_0x2a921e[_0xbb1550(0x1493)][_0xbb1550(0x1c3f)]['audio']=!![];_0x5c77c8(_0xbb1550(0x34c),![]);const _0x178ddb=_0x28c606()[_0xbb1550(0xcec)](_0x35300a,function(_0x461e83){const _0x547503=_0xbb1550;return _0x461e83[_0x547503(0x98b)]===_0x547503(0x1ecc)&&_0x461e83[_0x547503(0x178a)]!==_0x547503(0x416)&&_0x461e83[_0x547503(0x178a)]!==_0x547503(0x2892);});if(_0x178ddb[_0xbb1550(0x1b9e)]>0x0){const _0x57e99a=_0x28c606()['find'](_0x35300a,function(_0x36588a){const _0x2d3550=_0xbb1550;return _0x36588a['deviceId']===_0x2d3550(0x416)&&_0x36588a[_0x2d3550(0x98b)]===_0x2d3550(0x1ecc);});_0x2421b3=_0x28c606()['find'](_0x178ddb,function(_0x5a1c1a){const _0x487845=_0xbb1550;return _0x5a1c1a[_0x487845(0x9c7)]===_0x57e99a[_0x487845(0x9c7)];}),_0x5bb3a9=_0x2421b3;if(_0x2a921e[_0xbb1550(0x912)]['speakerId']&&!_0x13f81f){const _0xea9305=_0x28c606()[_0xbb1550(0x27bc)](_0x178ddb,function(_0x3f3f78){const _0x101cc5=_0xbb1550;return _0x3f3f78[_0x101cc5(0x178a)]===_0x2a921e[_0x101cc5(0x912)][_0x101cc5(0x282e)];});_0xea9305&&(_0x5bb3a9=_0xea9305);}_0x2a921e[_0xbb1550(0x912)][_0xbb1550(0x282e)]=_0x5bb3a9[_0xbb1550(0x178a)];if(_0x2a921e['conf'][_0xbb1550(0x1ec)]&&!_0x13f81f){const _0x2e2c42=_0x28c606()[_0xbb1550(0x27bc)](_0x178ddb,function(_0x14200f){const _0x6ecb9c=_0xbb1550;return _0x14200f[_0x6ecb9c(0x178a)]===_0x2a921e[_0x6ecb9c(0x912)][_0x6ecb9c(0x1ec)];});_0x2e2c42&&(_0x2421b3=_0x2e2c42);}_0x2a921e[_0xbb1550(0x912)][_0xbb1550(0x1ec)]=_0x2421b3[_0xbb1550(0x178a)];}else _0x3c3a72[_0xbb1550(0x51b)]({'title':_0x2caf9e[_0xbb1550(0x2292)](_0xbb1550(0x1450)),'msg':_0x2caf9e['instant'](_0xbb1550(0x1f02)),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0xbb1550(0x1233)});return _0x5c77c8('speaker',![]);})[_0x2b880d(0x64a)](function(){const _0x128308=_0x2b880d;return _0x5c77c8(_0x128308(0xf8e),![]);})[_0x2b880d(0x64a)](function(){const _0x41ebb2=_0x2b880d;if(_0x36b87a)return _0x36b87a[_0x41ebb2(0x2354)]()[_0x41ebb2(0x64a)](function(){const _0x50f6fd=_0x41ebb2;return _0x2a921e[_0x50f6fd(0x1a5)]=!![],_0x36b87a[_0x50f6fd(0x144e)]();})[_0x41ebb2(0x64a)](function(){return _0x36b87a['getUserDeviceMediaExt']();})[_0x41ebb2(0x64a)](function(_0x1c6505){const _0x5a7447=_0x41ebb2;_0x373f00&&_0x5bb3a9&&_0x2421b3&&_0x1c6505&&(_0x28c606()[_0x5a7447(0x68a)]([_0x373f00[_0x5a7447(0x9c7)],_0x5bb3a9[_0x5a7447(0x9c7)],_0x2421b3['groupId']],_0x1c6505['deviceInfo'][_0x5a7447(0x17eb)])&&(console['log'](_0x5a7447(0x176f)),_0x2a921e[_0x5a7447(0x23d0)]=!![],_0x36b87a['onHook'](),_0x36b87a[_0x5a7447(0x1e57)](_0x5a7447(0x1784),_0x4bc664[_0x5a7447(0xd7b)](this)),_0x36b87a[_0x5a7447(0x1e57)](_0x5a7447(0x13d9),_0x221e02[_0x5a7447(0xd7b)](this)),_0x36b87a[_0x5a7447(0x1e57)]('unmute',_0x381906['bind'](this)),_0x36b87a[_0x5a7447(0x1e57)](_0x5a7447(0x154c),_0x11c339['bind'](this)),_0x36b87a['addEventListener'](_0x5a7447(0x1df3),_0x46edb7['bind'](this))));})[_0x41ebb2(0x20cd)](function(_0xe5d2e2){const _0x47eb36=_0x41ebb2;console[_0x47eb36(0x185c)]('Error\x20initializing\x20Jabra\x20integration',_0xe5d2e2);});})[_0x2b880d(0x20cd)](function(_0x5cfabe){const _0x529f47=_0x2b880d;console[_0x529f47(0x1bd0)]('Unable\x20to\x20init\x20media\x20devices',_0x5cfabe),_0x5cfabe[_0x529f47(0x2494)]===_0x529f47(0x1b8b)&&_0x3c3a72[_0x529f47(0x51b)]({'title':_0x2caf9e[_0x529f47(0x2292)](_0x529f47(0x1450)),'msg':_0x2caf9e['instant'](_0x529f47(0xc60)),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':'bottom-right'});})['finally'](function(){const _0x15de72=_0x2b880d;_0x2a921e[_0x15de72(0x432)]=![],_0x5d35cd(),_0x223034()['load'](_0xb3ce06[_0x15de72(0xd7b)](this));});}function _0x4bc664(_0x350db6){const _0x258c25=_0x159c3b,_0x12a1fa=_0x28c606()['last'](_0x2a921e[_0x258c25(0x10eb)]);_0x12a1fa?_0x12a1fa[_0x258c25(0x484)]==='incoming'&&_0x12a1fa[_0x258c25(0x22cf)]()?_0x2a921e['answer'](_0x12a1fa):console[_0x258c25(0x1bd0)](_0x258c25(0x944),_0x350db6):console[_0x258c25(0x1bd0)](_0x258c25(0x2640),_0x350db6);}function _0x221e02(){const _0x3df1df=_0x159c3b;_0x2a921e[_0x3df1df(0x912)][_0x3df1df(0x1a5f)]=!![],_0x5c77c8('microphone',!![]);}function _0x381906(){const _0x344e32=_0x159c3b;_0x2a921e['conf'][_0x344e32(0x1a5f)]=![],_0x5c77c8(_0x344e32(0x34c),!![]);}function _0x11c339(){const _0x37cd2f=_0x159c3b;_0x2a921e[_0x37cd2f(0x815)][_0x37cd2f(0x16de)]?_0x2a921e[_0x37cd2f(0xd37)](_0x2a921e[_0x37cd2f(0x815)]):_0x2a921e[_0x37cd2f(0xc65)](_0x2a921e[_0x37cd2f(0x815)]);}function _0x46edb7(){_0x3a254e()['then'](function(_0x3e79ff){const _0xfde2c0=a0_0x4127;_0x3e79ff!==null&&_0x2a921e[_0xfde2c0(0x13eb)](_0x3e79ff);});}function _0x5d35cd(){const _0x3f9cfe=_0x159c3b;_0x586314[_0x3f9cfe(0x31f)]=_0x28c606()[_0x3f9cfe(0x27bb)](_0x2a921e[_0x3f9cfe(0x912)],_0x146124),_0x3dcba9[_0x3f9cfe(0x294)][_0x3f9cfe(0x15da)]('motion2.user:'+_0x2a921e['conf']['id'],JSON[_0x3f9cfe(0x2317)](_0x586314));}function _0x71cb1e(){const _0x33e083=_0x159c3b;this[_0x33e083(0x5ab)]=!![];}function _0x29e521(){const _0x563712=_0x159c3b;this[_0x563712(0x5ab)]=![];}function _0xb3ce06(){const _0x1b35e4=_0x159c3b;_0x2a921e['conf'][_0x1b35e4(0x19e3)]=_0x223034()[_0x1b35e4(0x19e3)],_0x2a921e['conf']['hasSpeakers']=_0x223034()[_0x1b35e4(0x1bbc)][_0x1b35e4(0x2494)]===_0x1b35e4(0x28bb)||_0x223034()[_0x1b35e4(0x1bbc)][_0x1b35e4(0x2494)]===_0x1b35e4(0x2141)||_0x223034()[_0x1b35e4(0x1bbc)][_0x1b35e4(0x2494)]===_0x1b35e4(0x1c0)?_0x223034()[_0x1b35e4(0x2370)]:!![],_0x2a921e[_0x1b35e4(0x912)]['isWebRTCSupported']=_0x223034()[_0x1b35e4(0x1bd6)],_0x2a921e[_0x1b35e4(0x912)][_0x1b35e4(0x2829)]=_0x223034()[_0x1b35e4(0x2829)],_0x2a921e['conf']['osVersion']=_0x223034()['osVersion'],_0x2a921e[_0x1b35e4(0x912)][_0x1b35e4(0x20c)]=_0x223034()['browser']['name'],_0x2a921e[_0x1b35e4(0x912)][_0x1b35e4(0x245)]=_0x223034()['browser'][_0x1b35e4(0x12a3)];if(_0x1d751b())!_0x2a921e['register']&&_0x2a921e['ua'][_0x1b35e4(0x1859)]();else!_0x2a921e[_0x1b35e4(0x912)][_0x1b35e4(0x1947)]&&_0x3c3a72['warning']({'title':_0x2caf9e[_0x1b35e4(0x2292)]('TOOLBAR.WARNING'),'msg':_0x2caf9e[_0x1b35e4(0x2292)](_0x1b35e4(0x20e8)),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x1b35e4(0x1233)});}function _0x1d751b(){const _0x38e5d1=_0x159c3b;return _0x2a921e[_0x38e5d1(0x912)][_0x38e5d1(0x1947)]&&_0x2a921e[_0x38e5d1(0x912)]['isWebRTCSupported']&&_0x2a921e[_0x38e5d1(0x912)][_0x38e5d1(0x19e3)]&&_0x2a921e[_0x38e5d1(0x912)][_0x38e5d1(0x2370)]&&_0x2a921e[_0x38e5d1(0x912)]['protocol']==='https'&&_0xd8f684();}function _0xd8f684(){const _0x520706=_0x159c3b;return _0x2a921e[_0x520706(0x912)][_0x520706(0x20c)]['toLowerCase']()===_0x520706(0xb21)||_0x2a921e['conf'][_0x520706(0x20c)][_0x520706(0x2554)]()==='opera'||_0x2a921e['conf'][_0x520706(0x20c)][_0x520706(0x2554)]()==='safari';}function _0x3dabe6(_0x1c63d0){const _0x335a22=_0x159c3b;console['debug'](_0x335a22(0x1472),_0x1c63d0);const _0x41e8bf=_0x1c63d0['session'];let _0x35ab4a=!![],_0x507f32='',_0xe8b7c=0x0,_0x2f15f5;switch(_0x1c63d0['originator']){case _0x335a22(0x170f):{_0x41e8bf[_0x335a22(0x14e7)]=!![],_0x41e8bf[_0x335a22(0x2494)]=_0x1c63d0[_0x335a22(0x1cb6)]['ruri'][_0x335a22(0x2e8)],_0x41e8bf[_0x335a22(0x2e8)]=_0x1c63d0['request'][_0x335a22(0xeb1)]['user'],_0x5555b5(_0x41e8bf[_0x335a22(0x2e8)],![]);const _0x3c3ec3=_0x335a22(0x226);_0x2f15f5=_0x40e87e(_0x1c63d0['request'][_0x335a22(0x25bd)],_0x3c3ec3),_0x2a921e['isJabraEnabled']&&(_0x2a921e[_0x335a22(0x815)]&&_0x36b87a[_0x335a22(0x1c15)](),_0x2a921e[_0x335a22(0x815)]=_0x41e8bf,_0x36b87a[_0x335a22(0x25e6)]());}break;case _0x335a22(0xc77):{const _0x107f05=_0x6bb8d8[_0x335a22(0x808)]();if(_0x107f05[_0x335a22(0x11a4)]&&_0x107f05[_0x335a22(0x25c9)]||_0x2a921e[_0x335a22(0x27cc)])_0x35ab4a=![];else{_0x41e8bf[_0x335a22(0xa7a)]=!![],_0x41e8bf['name']=_0x1c63d0[_0x335a22(0x1cb6)]['from'][_0x335a22(0x2382)],_0x41e8bf['user']=_0x1c63d0[_0x335a22(0x1cb6)]['from'][_0x335a22(0x2492)]['user'],_0x507f32=_0x1c63d0['request'][_0x335a22(0x267e)](_0x335a22(0x150f))||'',_0xe8b7c=_0x1c63d0[_0x335a22(0x1cb6)][_0x335a22(0x267e)](_0x335a22(0x1c0e))||0x0,_0x1e8e51(_0x1c63d0['session']),_0x5555b5(_0x1c63d0[_0x335a22(0x27fc)]['user'],!![]);_0x2a921e[_0x335a22(0x23d0)]&&_0x36b87a['ring']();_0x2a921e[_0x335a22(0x912)][_0x335a22(0x765)]&&_0x590148(function(){const _0x70a133=_0x335a22;_0x41e8bf[_0x70a133(0x22cf)]()&&(_0x41e8bf[_0x70a133(0x765)]=!![],_0x3146e3(_0x41e8bf));},_0x2a921e[_0x335a22(0x912)][_0x335a22(0xe0a)]?_0x2a921e['conf'][_0x335a22(0xe0a)]*0x3e8:0x0);console[_0x335a22(0x196e)](_0x335a22(0x1905),_0x507f32),console[_0x335a22(0x196e)]('xAnswerAfterSec',_0xe8b7c);if(_0x507f32['toLowerCase']()==_0x335a22(0x1d3f)){const _0x96a289=_0xe8b7c==0x0?0x1f4:_0xe8b7c*0x3e8;console[_0x335a22(0x196e)](_0x335a22(0x10ec)+_0x96a289+'\x20ms'),_0x590148(function(){const _0x39e139=_0x335a22;_0x41e8bf[_0x39e139(0x22cf)]()&&(_0x41e8bf[_0x39e139(0x765)]=!![],_0x3146e3(_0x41e8bf));},_0x96a289);}}break;}default:}_0x35ab4a?(_0x41e8bf['call_id']=_0x1c63d0[_0x335a22(0x1cb6)][_0x335a22(0x295c)],_0x2f15f5&&(_0x2a921e[_0x335a22(0x1716)][_0x41e8bf[_0x335a22(0x295c)]]=_0x2f15f5,_0x58dafd(_0x2f15f5,{'call_id':_0x41e8bf[_0x335a22(0x295c)]})[_0x335a22(0x64a)](function(){console['log']('callbackurl:\x22'+_0x2f15f5+'\x22\x20called\x20successfully');})[_0x335a22(0x20cd)](function(_0xf77f2e){const _0x26829d=_0x335a22;console[_0x26829d(0x9b4)]('fail\x20callbackurl:\x22'+_0x2f15f5+_0x26829d(0x2570),_0xf77f2e);})),_0x41e8bf['connection']&&(_0x41e8bf['connection'][_0x335a22(0x1898)]=_0x393aab['bind'](this)),_0x41e8bf[_0x335a22(0x2429)]=null,_0x41e8bf['on'](_0x335a22(0xce1),_0x52174d[_0x335a22(0xd7b)](this,_0x41e8bf)),_0x41e8bf['on'](_0x335a22(0x1e48),_0x31828c['bind'](this,_0x41e8bf)),_0x41e8bf['on'](_0x335a22(0xc65),_0x4d38ce[_0x335a22(0xd7b)](this,_0x41e8bf)),_0x41e8bf['on'](_0x335a22(0xd37),_0x2b97df[_0x335a22(0xd7b)](this,_0x41e8bf)),_0x41e8bf['on'](_0x335a22(0x1c3c),_0x482631[_0x335a22(0xd7b)](this,_0x41e8bf)),_0x41e8bf['on'](_0x335a22(0x4a9),_0x40ec04['bind'](this,_0x41e8bf)),_0x41e8bf['on'](_0x335a22(0x1240),_0x268240[_0x335a22(0xd7b)](this,_0x41e8bf)),_0x2a921e[_0x335a22(0x10eb)][_0x335a22(0x1954)](_0x41e8bf),_0x590148(function(){const _0x17a340=_0x335a22;_0x130e87[_0x17a340(0x961)](),console[_0x17a340(0x196e)]('onNewRTCSession\x20->\x20vm_pb.sessions',_0x2a921e[_0x17a340(0x10eb)]);})):_0x39ae38(_0x41e8bf,0x1e6);}function _0x5555b5(_0x267b29,_0x1d7e17,_0x59a5a8){const _0x31a066=_0x159c3b;console['debug'](_0x31a066(0x17a8),_0x267b29,_0x1d7e17,_0x59a5a8),_0x2a921e[_0x31a066(0x1a3a)][_0x31a066(0x1891)]({'target':_0x267b29,'fullname':_0x59a5a8||_0x267b29,'inbound':_0x1d7e17,'time':_0x2ac33a()()[_0x31a066(0x1c2c)](_0x31a066(0x16fd))}),_0x2a921e[_0x31a066(0x1a3a)][_0x31a066(0x1b9e)]>0x32&&_0x2a921e[_0x31a066(0x1a3a)][_0x31a066(0x639)]();}function _0x1e8e51(_0x3daddb){const _0x50bf4f=_0x159c3b;console[_0x50bf4f(0x196e)]('getNotification\x20->\x20session',_0x3daddb);const _0x227025=_0x3daddb['name']?_0x3daddb['name']+'\x20<'+_0x3daddb[_0x50bf4f(0x2e8)]+'>':_0x3daddb['user'];_0x386e2c['create'](_0x50bf4f(0xb27),_0x227025,null,function(){_0x3146e3(_0x3daddb);},function(){_0x39ae38(_0x3daddb);})['then'](function(_0x21131d){_0x3daddb['notification']=_0x21131d;})[_0x50bf4f(0x20cd)](function(_0x5b26e7){const _0x33c0a2=_0x50bf4f;console[_0x33c0a2(0x1bd0)]('Error\x20creating\x20notification\x20for\x20incoming\x20call',_0x5b26e7);});}function _0x3146e3(_0xce09ad){const _0x4139eb=_0x159c3b;console['debug']('answer\x20->\x20session',_0xce09ad),_0x2a921e[_0x4139eb(0x912)][_0x4139eb(0x215a)]?_0x2a921e[_0x4139eb(0x1493)][_0x4139eb(0x1c3f)][_0x4139eb(0x2240)]={'deviceId':_0x2a921e[_0x4139eb(0x912)][_0x4139eb(0x215a)]}:_0x2a921e[_0x4139eb(0x1493)][_0x4139eb(0x1c3f)][_0x4139eb(0x2240)]=!![],_0xce09ad[_0x4139eb(0x122c)](_0x2a921e[_0x4139eb(0x1493)]),_0x2a921e[_0x4139eb(0x23d0)]&&(_0x36b87a[_0x4139eb(0x25e6)](),_0x2a921e[_0x4139eb(0x815)]=_0xce09ad);}function _0x39ae38(_0x126c2b,_0x42cf6e){const _0x1e28c3=_0x159c3b;console['debug']('terminate\x20->\x20session',_0x126c2b);const _0x4ac29b={};if(_0x42cf6e)_0x4ac29b['status_code']=_0x42cf6e;else!_0x126c2b[_0x1e28c3(0x18ff)]()&&(_0x4ac29b['status_code']=0x25b);_0x126c2b[_0x1e28c3(0x13eb)](_0x4ac29b);if(_0x2a921e['isJabraEnabled']){if(_0x2a921e[_0x1e28c3(0x10eb)]['length']===0x0)_0x126c2b['localHold']&&_0x36b87a['resume'](),_0x36b87a[_0x1e28c3(0x1125)](),_0x2a921e[_0x1e28c3(0x815)]=null;else{const _0x1d1e11=_0x28c606()[_0x1e28c3(0xe62)](_0x2a921e[_0x1e28c3(0x10eb)]);_0x1d1e11[_0x1e28c3(0x16de)]?(_0x36b87a[_0x1e28c3(0x1125)](),_0x36b87a[_0x1e28c3(0xc65)](),_0x2a921e[_0x1e28c3(0x815)]=_0x1d1e11):_0x36b87a[_0x1e28c3(0x25e6)]();}}}function _0x52174d(_0x35e2af,_0x2685b3){const _0x616367=_0x159c3b;console[_0x616367(0x196e)](_0x616367(0x695),_0x35e2af,_0x2685b3);let _0x12aca8=![];switch(_0x2685b3['originator']){case _0x616367(0x170f):!this[_0x616367(0x912)][_0x616367(0x129f)]&&(this[_0x616367(0x1d9e)][_0x616367(0x1280)]('src',_0x616367(0x1346)),_0x12aca8=!![]);break;case _0x616367(0xc77):this[_0x616367(0x2a9)](_0x35e2af),this[_0x616367(0x1d9e)][_0x616367(0x1280)](_0x616367(0x1efd),_0x616367(0xb07)),_0x12aca8=!![];break;}_0x2a921e[_0x616367(0x27cc)]&&(_0x2a921e['originateInProgress']=![]),_0x12aca8&&(this[_0x616367(0x1d9e)][_0x616367(0x485)]=_0x616367(0x485),this[_0x616367(0x1d9e)]['play']()[_0x616367(0x20cd)](function(_0x81d234){console['log'](_0x81d234['message']);})),_0x5e57c7(_0x35e2af)[_0x616367(0x64a)](function(){const _0x63a4f9=_0x616367,_0xeb38e5=_0x2a921e[_0x63a4f9(0x1716)][_0x35e2af['call_id']];_0xeb38e5&&_0x58dafd(_0xeb38e5,{'uniqueid':_0x35e2af[_0x63a4f9(0x2947)],'call_id':_0x35e2af[_0x63a4f9(0x295c)],'number_called':_0x35e2af[_0x63a4f9(0x2e8)]})[_0x63a4f9(0x64a)](function(){const _0x44b67d=_0x63a4f9;console[_0x44b67d(0x9b4)](_0x44b67d(0x1dea)+_0xeb38e5+_0x44b67d(0x14e9));})['catch'](function(_0x46b2a7){const _0x108181=_0x63a4f9;console[_0x108181(0x9b4)](_0x108181(0x26c2)+_0xeb38e5+_0x108181(0x2570),_0x46b2a7);})['finally'](function(){const _0x1bf396=_0x63a4f9;delete _0x2a921e[_0x1bf396(0x1716)][_0x35e2af['call_id']];});})[_0x616367(0x20cd)](function(_0x527fcf){const _0x26d0fc=_0x616367;console[_0x26d0fc(0x1bd0)](_0x26d0fc(0x13a8),_0x527fcf);});}function _0x5e57c7(_0x115e55){const _0x259fad=_0x159c3b;return console[_0x259fad(0x196e)](_0x259fad(0x113c),_0x115e55),_0x38d835[_0x259fad(0x19bd)][_0x259fad(0x1c0c)]()['$promise'][_0x259fad(0x64a)](function(_0xc9a87c){const _0x196a16=_0x259fad,_0x32f41e=_0x28c606()[_0x196a16(0x27bc)](_0xc9a87c['rows'],function(_0x44f24a){const _0x1221ab=_0x196a16;if(_0x44f24a[_0x1221ab(0x21ff)]===_0x115e55[_0x1221ab(0x295c)])return _0x44f24a;if(_0x44f24a[_0x1221ab(0x18a1)]===_0x115e55['call_id'])return _0x44f24a;return null;});_0x32f41e&&(_0x115e55[_0x196a16(0x132a)]=_0x32f41e[_0x196a16(0x132a)],_0x115e55[_0x196a16(0x2947)]=_0x32f41e[_0x196a16(0x2947)],_0x115e55[_0x196a16(0xc1a)]=_0x32f41e[_0x196a16(0xc1a)]);return;});}function _0x31828c(_0x29a3fa,_0x3319f3){const _0x48b1b8=_0x159c3b;console[_0x48b1b8(0x196e)](_0x48b1b8(0x525),_0x29a3fa,_0x3319f3);const _0x1ecaff=document[_0x48b1b8(0x1143)]('div_session_'+_0x29a3fa['id'][_0x48b1b8(0x8b5)](0x0,0x20));_0x1ecaff&&$(_0x1ecaff)[_0x48b1b8(0x88a)]()[_0x48b1b8(0x1a2e)]('timer-start'),_0x29a3fa[_0x48b1b8(0x1e48)]=!![],_0x3319f3[_0x48b1b8(0x255f)]===_0x48b1b8(0xc77)&&_0x29a3fa[_0x48b1b8(0x160e)]&&(_0x29a3fa[_0x48b1b8(0x160e)][_0x48b1b8(0x1898)]=_0x393aab['bind'](this),_0x28c606()[_0x48b1b8(0x1ff2)](_0x29a3fa[_0x48b1b8(0x160e)][_0x48b1b8(0x1354)]())&&(this[_0x48b1b8(0x1f45)]['srcObject']=_0x28c606()['head'](_0x29a3fa[_0x48b1b8(0x160e)][_0x48b1b8(0x1354)]()),this['remotePlayer'][_0x48b1b8(0x1502)]())),this[_0x48b1b8(0x1d9e)][_0x48b1b8(0x2826)](),this[_0x48b1b8(0x1d9e)][_0x48b1b8(0x485)]=null,this[_0x48b1b8(0x2a9)](_0x29a3fa),_0x29a3fa['autoAnswer']&&(this[_0x48b1b8(0x1d9e)][_0x48b1b8(0x1280)](_0x48b1b8(0x1efd),_0x48b1b8(0x229b)),this[_0x48b1b8(0x1d9e)][_0x48b1b8(0x1502)]()[_0x48b1b8(0x20cd)](function(_0x3a9c4c){const _0x5060ad=_0x48b1b8;console[_0x5060ad(0x9b4)](_0x5060ad(0x25ea),_0x3a9c4c);})),_0x2a921e[_0x48b1b8(0xaa0)]=_0x2a921e['sessions']['length']==0x2,_0x5e57c7(_0x29a3fa)[_0x48b1b8(0x20cd)](function(_0x280ba2){const _0x588311=_0x48b1b8;console['error'](_0x588311(0x13a8),_0x280ba2);});}function _0x393aab(_0x39c6bb){const _0x3c9d1d=_0x159c3b;console[_0x3c9d1d(0x196e)](_0x3c9d1d(0xb44),_0x39c6bb),this[_0x3c9d1d(0x1f45)][_0x3c9d1d(0x3d9)]=_0x39c6bb[_0x3c9d1d(0x7f8)],this['remotePlayer'][_0x3c9d1d(0x1502)]();}function _0x4d38ce(_0x2b011f,_0xdf073e){const _0x3879ae=_0x159c3b;console[_0x3879ae(0x196e)](_0x3879ae(0x3b3),_0x2b011f,_0xdf073e),_0xdf073e[_0x3879ae(0x255f)]==='local'&&(_0x2b011f[_0x3879ae(0x16de)]=!![]);}function _0x2b97df(_0x2b9bd2,_0x8065d8){const _0x50e638=_0x159c3b;console[_0x50e638(0x196e)]('onUnhold\x20->\x20session,\x20data',_0x2b9bd2,_0x8065d8),_0x8065d8[_0x50e638(0x255f)]==='local'&&(_0x2b9bd2[_0x50e638(0x16de)]=![]);}function _0x482631(_0x4ef6a5,_0x1df7a0){const _0xded98f=_0x159c3b;console[_0xded98f(0x196e)](_0xded98f(0x12e4),_0x4ef6a5,_0x1df7a0);_0x2a921e[_0xded98f(0x1d35)]&&(_0x28c606()[_0xded98f(0x68a)](_0x2a921e['currentConferenceSessions'],_0x4ef6a5['id'])&&(_0x520c79(),_0x2a921e[_0xded98f(0x189)]=!![]));_0x28c606()['remove'](this[_0xded98f(0x10eb)],{'id':_0x4ef6a5['id']});_0x2a921e[_0xded98f(0x10eb)][_0xded98f(0x1b9e)]!==0x2&&(_0x2a921e[_0xded98f(0xaa0)]=![]);if(_0x2a921e[_0xded98f(0x23d0)]){if(_0x2a921e[_0xded98f(0x10eb)]['length']===0x0)_0x4ef6a5['localHold']&&_0x36b87a[_0xded98f(0x1c15)](),_0x36b87a[_0xded98f(0x1125)](),_0x2a921e['jabraSession']=null;else{const _0x1fbb4b=_0x28c606()['last'](_0x2a921e[_0xded98f(0x10eb)]);_0x1fbb4b[_0xded98f(0x16de)]?(_0x36b87a['onHook'](),_0x36b87a[_0xded98f(0xc65)](),_0x2a921e[_0xded98f(0x815)]=_0x1fbb4b):_0x36b87a[_0xded98f(0x25e6)]();}}}function _0x520c79(){const _0x8135f6=_0x159c3b;_0x2a921e[_0x8135f6(0xaa0)]=![],_0x2a921e[_0x8135f6(0x1d35)]=![],_0x2a921e[_0x8135f6(0x2341)]=[];}function _0x40ec04(_0x43b7fb,_0x224567){const _0x210638=_0x159c3b;console[_0x210638(0x196e)]('onFailed\x20->\x20session,\x20data',_0x43b7fb,_0x224567),this['soundPlayer'][_0x210638(0x2826)](),this[_0x210638(0x1d9e)]['loop']=null;_0x43b7fb['notification']&&_0x43b7fb[_0x210638(0x1df9)][_0x210638(0x67b)]();_0x2a921e['isInConference']&&(_0x28c606()[_0x210638(0x68a)](_0x2a921e[_0x210638(0x28ea)],_0x43b7fb['id'])&&_0x520c79());_0x2a921e[_0x210638(0x27cc)]&&(_0x2a921e[_0x210638(0x27cc)]=![]);_0x28c606()[_0x210638(0x21c7)](this[_0x210638(0x10eb)],{'id':_0x43b7fb['id']});_0x2a921e['sessions']['length']!==0x2&&(_0x2a921e[_0x210638(0xaa0)]=![]);if(_0x2a921e[_0x210638(0x23d0)]){if(_0x2a921e['sessions'][_0x210638(0x1b9e)]===0x0)_0x43b7fb[_0x210638(0x16de)]&&_0x36b87a[_0x210638(0x1c15)](),_0x36b87a['onHook'](),_0x2a921e['jabraSession']=null;else{const _0x40cc86=_0x28c606()['last'](_0x2a921e['sessions']);_0x40cc86[_0x210638(0x16de)]?(_0x36b87a['onHook'](),_0x36b87a[_0x210638(0xc65)](),_0x2a921e[_0x210638(0x815)]=_0x40cc86):_0x36b87a[_0x210638(0x25e6)]();}}}function _0x268240(_0x4bbbcc,_0x9d08ca){const _0x4cec37=_0x159c3b;console['debug'](_0x4cec37(0x2142),_0x4bbbcc,_0x9d08ca),_0x4bbbcc['iceCandidateTimeout']!==null&&clearTimeout(_0x4bbbcc[_0x4cec37(0x2429)]),_0x4bbbcc[_0x4cec37(0x2429)]=setTimeout(_0x9d08ca[_0x4cec37(0x28ae)],0x1*0x3e8);}function _0x179d9e(){_0x2a921e['showDialpad']=![];}function _0x4dc006(_0x4ce9f6,_0x71d014){const _0x4a5c23=_0x159c3b;let _0x55ae3a=_0x4ce9f6;!_0x2a921e[_0x4a5c23(0x2497)]&&(_0x2a921e[_0x4a5c23(0x2497)]='');_0x71d014&&(_0x2a921e['target']+=_0x4ce9f6,_0x130e87[_0x4a5c23(0x1a2e)](_0x4a5c23(0x687),_0x4a5c23(0x162c),_0x2a921e[_0x4a5c23(0x2497)]));switch(_0x4ce9f6){case'*':_0x55ae3a=_0x4a5c23(0x2072);break;case'#':_0x55ae3a=_0x4a5c23(0x10d8);break;default:}_0x2a921e['conf'][_0x4a5c23(0xed3)]&&(_0x2a921e[_0x4a5c23(0x1d9e)][_0x4a5c23(0x1280)]('src',_0x4a5c23(0x18b6)+_0x55ae3a+'.ogg'),_0x2a921e[_0x4a5c23(0x1d9e)][_0x4a5c23(0x1502)]()[_0x4a5c23(0x20cd)](function(_0x482364){const _0x25eee3=_0x4a5c23;console['log'](_0x482364[_0x25eee3(0x18ca)]);}));for(let _0x437de2=0x0;_0x437de2<_0x2a921e['sessions'][_0x4a5c23(0x1b9e)];_0x437de2+=0x1){_0x2a921e[_0x4a5c23(0x10eb)][_0x437de2][_0x4a5c23(0x18ff)]()&&!_0x2a921e['sessions'][_0x437de2]['isOnHold']()[_0x4a5c23(0x170f)]&&_0x2a921e[_0x4a5c23(0x10eb)][_0x437de2][_0x4a5c23(0x1641)](_0x4ce9f6);}}function _0x5c77c8(_0x3057dc,_0x1d18ea){const _0x56899b=_0x159c3b;switch(_0x3057dc){case _0x56899b(0xf8e):_0x2a921e[_0x56899b(0x1d9e)][_0x56899b(0x9d7)]=_0x2a921e[_0x56899b(0x912)][_0x56899b(0x129f)];_0x2a921e[_0x56899b(0x912)]['ringingId']&&_0x2a921e[_0x56899b(0x1d9e)][_0x56899b(0x1435)](_0x2a921e['conf'][_0x56899b(0x1ec)])[_0x56899b(0x64a)](function(){const _0x3118ff=_0x56899b;_0x2a921e[_0x3118ff(0x1d9e)]['volume']=_0x2a921e['conf'][_0x3118ff(0x276b)];})['then'](function(){_0x1d18ea&&_0x5d35cd();})[_0x56899b(0x20cd)](function(_0x4a2550){const _0x5a0936=_0x56899b;console['info'](_0x4a2550[_0x5a0936(0x18ca)],_0x2a921e[_0x5a0936(0x912)]['ringingId']);});break;case'speaker':_0x2a921e['remotePlayer'][_0x56899b(0x9d7)]=_0x2a921e[_0x56899b(0x912)]['speakerMute'];_0x2a921e['conf'][_0x56899b(0x282e)]&&_0x2a921e['remotePlayer'][_0x56899b(0x1435)](_0x2a921e[_0x56899b(0x912)][_0x56899b(0x282e)])[_0x56899b(0x64a)](function(){const _0x55ffd3=_0x56899b;_0x2a921e['remotePlayer'][_0x55ffd3(0x1ef7)]=_0x2a921e['conf'][_0x55ffd3(0xf29)];})[_0x56899b(0x64a)](function(){_0x1d18ea&&_0x5d35cd();})[_0x56899b(0x20cd)](function(_0x3518c3){const _0x4fff28=_0x56899b;console[_0x4fff28(0x772)](_0x3518c3[_0x4fff28(0x18ca)],_0x2a921e[_0x4fff28(0x912)]['speakerId']);});break;case _0x56899b(0x34c):for(let _0x3b9906=0x0;_0x3b9906<_0x2a921e[_0x56899b(0x10eb)][_0x56899b(0x1b9e)];_0x3b9906+=0x1){_0x2a921e['conf']['microphoneMute']?_0x2a921e[_0x56899b(0x10eb)][_0x3b9906][_0x56899b(0x13d9)]():_0x2a921e[_0x56899b(0x10eb)][_0x3b9906][_0x56899b(0xfb9)]();}_0x36b87a&&_0x2a921e['isJabraEnabled']&&(_0x2a921e[_0x56899b(0x912)][_0x56899b(0x1a5f)]?_0x36b87a[_0x56899b(0x13d9)]():_0x36b87a[_0x56899b(0xfb9)]());_0x1d18ea&&_0x5d35cd();break;default:console[_0x56899b(0x9b4)](_0x56899b(0x1bb4));}}function _0x2396a9(_0x802f9c){const _0x1df5e0=_0x159c3b;if(!_0x802f9c)_0x2537ec();else/^(\w|\.|\+|#|\*|\(|\)|\s|-)*$/['test'](_0x802f9c)?(_0x2a921e[_0x1df5e0(0x2497)]=_0x802f9c,_0x130e87[_0x1df5e0(0x1a2e)]('angucomplete-alt:changeInput',_0x1df5e0(0x162c),_0x2a921e[_0x1df5e0(0x2497)])):_0x2a921e[_0x1df5e0(0x2497)]?_0x130e87[_0x1df5e0(0x1a2e)]('angucomplete-alt:changeInput',_0x1df5e0(0x162c),_0x2a921e['target']):_0x2537ec();}function _0x2537ec(){const _0x254fd4=_0x159c3b;_0x2a921e['target']='',document[_0x254fd4(0x1143)](_0x254fd4(0x28cd))[_0x254fd4(0x12e8)](),document[_0x254fd4(0x1143)](_0x254fd4(0x28cd))[_0x254fd4(0x1096)]='',_0x130e87[_0x254fd4(0x1a2e)](_0x254fd4(0x2696),_0x254fd4(0x162c));}function _0x39d3ff(_0x1f490f){const _0x43ac1b=_0x159c3b;_0x1f490f&&(_0x2a921e['target']=_0x1f490f[_0x43ac1b(0x1572)][_0x43ac1b(0x2497)],_0x2a921e[_0x43ac1b(0x17f0)](),_0x2537ec());}function _0x314eda(){const _0x2c7d20=_0x159c3b;if(_0x2a921e['target']&&_0x2a921e[_0x2c7d20(0x2497)]!==_0x2a921e['conf'][_0x2c7d20(0x2494)]&&_0x2a921e['target']!==_0x2a921e[_0x2c7d20(0x912)][_0x2c7d20(0xe2f)]){_0x2a921e[_0x2c7d20(0x912)][_0x2c7d20(0x215a)]?_0x2a921e[_0x2c7d20(0x1493)]['mediaConstraints'][_0x2c7d20(0x2240)]={'deviceId':_0x2a921e[_0x2c7d20(0x912)][_0x2c7d20(0x215a)]}:_0x2a921e[_0x2c7d20(0x1493)]['mediaConstraints'][_0x2c7d20(0x2240)]=!![];let _0x1d8636=_0x2a921e['target'][_0x2c7d20(0x1353)](/ /g,'');return _0x1d8636=_0x1d8636[_0x2c7d20(0x1353)](/\(/g,''),_0x1d8636=_0x1d8636[_0x2c7d20(0x1353)](/\)/g,''),_0x37ccfb(_0x1d8636)[_0x2c7d20(0x64a)](function(_0xa002cc){const _0x49f5cc=_0x2c7d20;_0xa002cc&&_0x2a921e['ua'][_0x49f5cc(0x17f0)](_0xa002cc,_0x2a921e[_0x49f5cc(0x1493)]);})[_0x2c7d20(0x64a)](function(){_0x2537ec();});}}function _0x37ccfb(_0xdc55b1){const _0x57c875=_0x159c3b;return _0x38d835['user'][_0x57c875(0xc93)]({'id':_0x2a921e[_0x57c875(0x912)]['id']})['$promise'][_0x57c875(0x64a)](function(_0x149e8f){const _0x40884b=_0x57c875;if(_0x149e8f[_0x40884b(0xb90)])return _0x1f99ba['show']({'controller':'PrefixDialogController','controllerAs':'vm','templateUrl':_0x57754d,'parent':angular['element'](_0x49c5a8[_0x40884b(0xb49)]),'clickOutsideToClose':!![],'locals':{'prefixes':_0x149e8f,'required':_0x2a921e[_0x40884b(0x912)]['phoneBarPrefixRequired']}});})[_0x57c875(0x64a)](function(_0x27db12){const _0x3c23e4=_0x57c875;if(!_0x2a921e[_0x3c23e4(0x912)][_0x3c23e4(0xdad)]){if(_0x27db12&&_0x27db12!==-0x1)return _0x27db12+_0xdc55b1;else{if(!_0x27db12)return _0xdc55b1;}}else{if(_0x27db12&&_0x27db12!==-0x1)return _0x27db12+_0xdc55b1;}});}function _0x5edb11(_0x39ed68){const _0x15e9d1=_0x159c3b;switch(_0x39ed68[_0x15e9d1(0x2125)][_0x15e9d1(0x2554)]()){case'0':case'1':case'2':case'3':case'4':case'5':case'6':case'7':case'8':case'9':case'*':case'#':_0x2a921e[_0x15e9d1(0x2185)](_0x39ed68[_0x15e9d1(0x2125)]);break;case'enter':_0x2a921e[_0x15e9d1(0x17f0)]();break;default:}}function _0x5e47a1(){const _0x534b94=_0x159c3b;_0x2a921e[_0x534b94(0x19d7)]=!_0x2a921e[_0x534b94(0x19d7)];}_0x49c5a8[_0x159c3b(0xd7b)](_0x159c3b(0x2302),function(_0x555c3f){switch(_0x555c3f['keyCode']){case 0x1b:_0x590148(function(){const _0x26b659=a0_0x4127;_0x2a921e[_0x26b659(0x19d7)]=![];});break;default:}});function _0x596d1d(){const _0x4e3cef=_0x159c3b;_0x2a921e['isInConference']=!![],_0x2a921e[_0x4e3cef(0xaa0)]=![],_0x2a921e[_0x4e3cef(0x28ea)][_0x4e3cef(0x1954)](_0x2a921e[_0x4e3cef(0x10eb)][0x0]['id']),_0x2a921e[_0x4e3cef(0x28ea)][_0x4e3cef(0x1954)](_0x2a921e[_0x4e3cef(0x10eb)][0x1]['id']);const _0x35ba5f=_0x2a921e[_0x4e3cef(0x10eb)][0x0][_0x4e3cef(0x160e)][_0x4e3cef(0x277a)]()[0x0],_0x3a11f4=_0x2a921e[_0x4e3cef(0x10eb)][0x0]['connection'][_0x4e3cef(0x2861)]()[0x0];_0x3a11f4[_0x4e3cef(0x1395)][_0x4e3cef(0x1e57)](_0x4e3cef(0xfb9),function(){setTimeout(function(){_0x103765();},0x3e8);},![]);const _0x3ad2e3=_0x2a921e['sessions'][0x1][_0x4e3cef(0x160e)][_0x4e3cef(0x277a)]()[0x0],_0xc34409=_0x2a921e['sessions'][0x1][_0x4e3cef(0x160e)][_0x4e3cef(0x2861)]()[0x0];_0xc34409[_0x4e3cef(0x1395)]['addEventListener'](_0x4e3cef(0xfb9),function(){setTimeout(function(){_0x103765();},0x3e8);},![]),_0x2a921e[_0x4e3cef(0x10eb)][0x0][_0x4e3cef(0xd37)]({'useUpdate':![]}),_0x2a921e[_0x4e3cef(0x10eb)][0x1][_0x4e3cef(0xd37)]({'useUpdate':![]}),_0x3a11f4[_0x4e3cef(0x1395)]['enabled']=!![],_0xc34409[_0x4e3cef(0x1395)]['enabled']=!![];const _0xc9932b=new MediaStream(),_0x448e30=new AudioContext();let _0x470c75=_0x448e30['createMediaStreamDestination'](),_0x355d55=_0x448e30[_0x4e3cef(0xf9f)](new MediaStream([_0xc34409['track']]));_0x355d55[_0x4e3cef(0x25fa)](_0x470c75),_0x355d55=_0x448e30['createMediaStreamSource'](new MediaStream([_0x35ba5f[_0x4e3cef(0x1395)]])),_0x355d55[_0x4e3cef(0x25fa)](_0x470c75),_0x35ba5f[_0x4e3cef(0x1de7)](_0x470c75[_0x4e3cef(0x7f8)]['getTracks']()[0x0])[_0x4e3cef(0x64a)](function(){}),_0x470c75=_0x448e30['createMediaStreamDestination'](),_0x355d55=_0x448e30[_0x4e3cef(0xf9f)](new MediaStream([_0x3a11f4[_0x4e3cef(0x1395)]])),_0x355d55[_0x4e3cef(0x25fa)](_0x470c75),_0x355d55=_0x448e30['createMediaStreamSource'](new MediaStream([_0x3ad2e3[_0x4e3cef(0x1395)]])),_0x355d55[_0x4e3cef(0x25fa)](_0x470c75),_0x3ad2e3['replaceTrack'](_0x470c75[_0x4e3cef(0x7f8)]['getTracks']()[0x0])[_0x4e3cef(0x64a)](function(){const _0x1c17fa=_0x4e3cef;_0xc9932b[_0x1c17fa(0x8c9)](_0x3a11f4[_0x1c17fa(0x1395)]),_0xc9932b[_0x1c17fa(0x8c9)](_0xc34409[_0x1c17fa(0x1395)]);const _0x499be2=document[_0x1c17fa(0x1143)](_0x1c17fa(0x5e8));_0x499be2[_0x1c17fa(0x3d9)]=_0xc9932b;const _0x33c4e6=_0x499be2['play']();_0x33c4e6!==undefined&&_0x33c4e6[_0x1c17fa(0x64a)](function(){})[_0x1c17fa(0x20cd)](function(_0x2310f2){const _0x5034e7=_0x1c17fa;console[_0x5034e7(0x9b4)](_0x2310f2);});});}function _0x103765(){const _0x43dbc4=_0x159c3b;if(_0x2a921e['isInConference']){const _0x5cf148=_0x2a921e[_0x43dbc4(0x10eb)][0x0][_0x43dbc4(0x160e)][_0x43dbc4(0x2861)]()[0x0],_0x11f261=_0x2a921e[_0x43dbc4(0x10eb)][0x1][_0x43dbc4(0x160e)]['getReceivers']()[0x0],_0xebfaa1=new MediaStream();_0xebfaa1[_0x43dbc4(0x8c9)](_0x5cf148['track']),_0xebfaa1[_0x43dbc4(0x8c9)](_0x11f261[_0x43dbc4(0x1395)]);const _0x3dc991=document[_0x43dbc4(0x1143)](_0x43dbc4(0x5e8));_0x3dc991[_0x43dbc4(0x3d9)]=_0xebfaa1;const _0xb5de00=_0x3dc991[_0x43dbc4(0x1502)]();_0xb5de00!==undefined&&_0xb5de00[_0x43dbc4(0x64a)](function(){})[_0x43dbc4(0x20cd)](function(_0x5c8c48){const _0x856af0=_0x43dbc4;console[_0x856af0(0x9b4)](_0x5c8c48);});}}function _0x8f4371(_0x134977){const _0x1e199d=_0x159c3b;console[_0x1e199d(0x196e)](_0x1e199d(0x248),_0x134977),_0x2a921e[_0x1e199d(0xd37)](_0x134977);}function _0x184ec7(_0x16b011){const _0x40034a=_0x159c3b;console[_0x40034a(0x196e)](_0x40034a(0x1792),_0x16b011),_0x16b011[_0x40034a(0xd37)]({'useUpdate':![]}),_0x2a921e[_0x40034a(0x2a9)](_0x16b011),_0x2a921e['isJabraEnabled']&&(_0x36b87a[_0x40034a(0x25e6)](),_0x36b87a['resume']());}function _0x4446fc(_0x107bea){const _0x5c56f5=_0x159c3b;console[_0x5c56f5(0x196e)](_0x5c56f5(0x28b4),_0x107bea),_0x1f99ba[_0x5c56f5(0xa60)]({'controller':_0x5c56f5(0x1638),'controllerAs':'vm','templateUrl':_0x5cf74e,'parent':angular[_0x5c56f5(0x1f81)](_0x49c5a8[_0x5c56f5(0xb49)]),'clickOutsideToClose':!![],'locals':{'session':_0x107bea,'sessions':_0x2a921e[_0x5c56f5(0x10eb)]}});}function _0x1baf04(_0x2566b5){const _0x25eacd=_0x159c3b;console[_0x25eacd(0x196e)](_0x25eacd(0x4e5),_0x2566b5),_0x2566b5[_0x25eacd(0xc65)]({'useUpdate':![]}),_0x2a921e['isJabraEnabled']&&(_0x36b87a[_0x25eacd(0xc65)](),_0x36b87a[_0x25eacd(0x1125)]());}function _0x56591a(_0x46d5c5){const _0x1eb936=_0x159c3b;console[_0x1eb936(0x196e)](_0x1eb936(0x1854),_0x46d5c5);const _0x11499e=_0x1f99ba[_0x1eb936(0x1ed2)]()[_0x1eb936(0x2021)](_0x1eb936(0x541))[_0x1eb936(0x250d)]('Type\x20the\x20target')['placeholder']('Target')['ariaLabel'](_0x1eb936(0xddc))['ok']('Transfer')[_0x1eb936(0x101a)](_0x1eb936(0x1dc6));_0x1f99ba[_0x1eb936(0xa60)](_0x11499e)['then'](function(_0x5f2024){return _0x37ccfb(_0x5f2024);})[_0x1eb936(0x64a)](function(_0x42cb8f){const _0x51dbcd=_0x1eb936;_0x46d5c5[_0x51dbcd(0x27ef)](_0x42cb8f,{'eventHandlers':{'requestSucceeded':_0x354533(_0x46d5c5,'requestSucceeded',_0x51dbcd(0xb86),0xbb8),'requestFailed':_0x354533(_0x46d5c5,'requestFailed',_0x51dbcd(0xb86),0xbb8)}});});}function _0x354533(_0x2ba23e,_0xd9e177,_0x9c8167,_0x18e46c){return console['debug']('onReferCallback\x20->\x20session,\x20textContent,\x20position,\x20delay',_0x2ba23e,_0xd9e177,_0x9c8167,_0x18e46c),function(){const _0x8a36bd=a0_0x4127;_0x5b084a['show'](_0x5b084a[_0x8a36bd(0x6e5)]()['textContent'](_0xd9e177)[_0x8a36bd(0x14f7)](_0x9c8167)['hideDelay'](_0x18e46c)),_0x39ae38(_0x2ba23e);};}function _0x416961(_0x2379e0){const _0x369925=_0x159c3b;console[_0x369925(0x196e)]('referAttended\x20->\x20session',_0x2379e0),_0x1f99ba[_0x369925(0xa60)]({'controller':_0x369925(0x66c),'controllerAs':'vm','templateUrl':_0x4e1d6a,'parent':angular[_0x369925(0x1f81)](_0x49c5a8['body']),'clickOutsideToClose':!![],'locals':{'session':_0x2379e0,'sessions':_0x28c606()[_0x369925(0x19d2)](_0x2a921e['sessions'],{'id':_0x2379e0['id']}),'isJabraEnabled':_0x2a921e['isJabraEnabled']}});}function _0x1cced0(_0x1c8a5a){const _0xb99b42=_0x159c3b;console['debug'](_0xb99b42(0x2244),_0x1c8a5a);if(_0x2a921e[_0xb99b42(0x10eb)][_0xb99b42(0x1b9e)]>0x1)for(let _0x4cbdf7=0x0;_0x4cbdf7<_0x2a921e[_0xb99b42(0x10eb)][_0xb99b42(0x1b9e)];_0x4cbdf7+=0x1){_0x2a921e[_0xb99b42(0x10eb)][_0x4cbdf7]['id']!==_0x1c8a5a['id']&&!_0x2a921e['sessions'][_0x4cbdf7][_0xb99b42(0xa49)]()[_0xb99b42(0xc77)]&&_0x2a921e[_0xb99b42(0x10eb)][_0x4cbdf7][_0xb99b42(0xc65)]({'useUpdate':![]});}}function _0x392df9(_0x52d9b3){const _0x10a074=_0x159c3b;_0x1f99ba['show']({'controller':_0x10a074(0xdc8),'controllerAs':'vm','templateUrl':_0x2ec31e,'parent':angular[_0x10a074(0x1f81)](_0x49c5a8['body']),'targetEvent':_0x52d9b3,'clickOutsideToClose':!![],'resolve':{'devices':function(){const _0x373d3c=_0x10a074;return navigator[_0x373d3c(0x2274)][_0x373d3c(0x1d4)]();}},'locals':{'conf':_0x2a921e[_0x10a074(0x912)]}})['then'](function(_0x7e8512){const _0x2ca753=_0x10a074;_0x7e8512&&(_0x2a921e[_0x2ca753(0x912)]=_0x7e8512,!_0x2a921e[_0x2ca753(0x432)]&&(_0x2a921e[_0x2ca753(0x432)]=!![],_0x36b87a&&_0x2a921e[_0x2ca753(0x1a5)]?_0x36b87a['shutdown']()[_0x2ca753(0x64a)](function(){const _0x3e90f9=_0x2ca753;_0x2a921e['isJabraInitialized']=![],_0x2a921e[_0x3e90f9(0x23d0)]=![],_0x52b597(![]);})[_0x2ca753(0x20cd)](function(_0x502cc1){const _0x196fb3=_0x2ca753;console[_0x196fb3(0x1bd0)](_0x196fb3(0x921),_0x502cc1);}):_0x52b597(![])));});}function _0x1eefc3(){const _0x647d81=_0x159c3b;_0x2a921e['ua'][_0x647d81(0x924)](),_0x36b87a&&_0x2a921e['isJabraInitialized']&&_0x36b87a[_0x647d81(0xaf9)](),navigator[_0x647d81(0x2274)][_0x647d81(0x2646)]=function(){};}function _0xba0835(_0x1a1f4c,_0x3b5d22){const _0x2de255=_0x159c3b;console['debug']('onRemoteCall\x20->\x20evt,\x20data',_0x1a1f4c,_0x3b5d22),_0x3b5d22[_0x2de255(0x2497)]&&(_0x2a921e[_0x2de255(0x2497)]=_0x3b5d22['target'],_0x2a921e[_0x2de255(0x17f0)]());}function _0x468127(_0x38b44f,_0x458eec){const _0x5aa642=_0x159c3b;console[_0x5aa642(0x196e)](_0x5aa642(0x2617),_0x38b44f,_0x458eec);if(_0x458eec['target'])for(let _0x482bae=0x0;_0x482bae<_0x2a921e['sessions']['length'];_0x482bae+=0x1){if(_0x2a921e[_0x5aa642(0x10eb)][_0x482bae][_0x5aa642(0x18ff)]()&&!_0x2a921e['sessions'][_0x482bae][_0x5aa642(0xa49)]()[_0x5aa642(0x170f)])return _0x37ccfb(_0x458eec['target'])[_0x5aa642(0x64a)](function(_0x1a1e96){const _0x58ee0e=_0x5aa642;_0x1a1e96&&_0x2a921e['sessions'][_0x482bae][_0x58ee0e(0x27ef)](_0x1a1e96,{'eventHandlers':{'requestSucceeded':_0x354533(_0x2a921e[_0x58ee0e(0x10eb)][_0x482bae],_0x58ee0e(0x17a7),'top\x20right',0xbb8),'requestFailed':_0x354533(_0x2a921e[_0x58ee0e(0x10eb)][_0x482bae],_0x58ee0e(0x25f9),_0x58ee0e(0xb86),0xbb8)}});});}}function _0x3a254e(){return new Promise(function(_0x2e5fd6){const _0x51ab7b=a0_0x4127;let _0x4a4945=null;for(let _0x41acae=0x0;_0x41acae<_0x2a921e['sessions']['length'];_0x41acae++){!_0x28c606()[_0x51ab7b(0x1760)](_0x2a921e[_0x51ab7b(0x10eb)][_0x41acae],_0x51ab7b(0x16de))?_0x4a4945=_0x2a921e[_0x51ab7b(0x10eb)][_0x41acae]:!_0x2a921e[_0x51ab7b(0x10eb)][_0x41acae]['localHold']&&(_0x4a4945=_0x2a921e[_0x51ab7b(0x10eb)][_0x41acae]);}_0x2e5fd6(_0x4a4945);});}function _0x589949(_0x2a0559){const _0x3a030c=_0x159c3b;console[_0x3a030c(0x196e)](_0x3a030c(0x100d),_0x2a0559);const _0x48959b=_0x2a0559[_0x3a030c(0x20d1)],_0x41a70c=_0x2a0559['callerId'],_0x16db7c=_0x2a0559['callbackUrl'];_0x2a921e[_0x3a030c(0x912)][_0x3a030c(0x215a)]?_0x2a921e[_0x3a030c(0x1493)][_0x3a030c(0x1c3f)][_0x3a030c(0x2240)]={'deviceId':_0x2a921e[_0x3a030c(0x912)][_0x3a030c(0x215a)]}:_0x2a921e[_0x3a030c(0x1493)]['mediaConstraints'][_0x3a030c(0x2240)]=!![];let _0x5164d3=_0x48959b[_0x3a030c(0x1353)](/ /g,'');_0x5164d3=_0x5164d3[_0x3a030c(0x1353)](/\(/g,''),_0x5164d3=_0x5164d3[_0x3a030c(0x1353)](/\)/g,'');if(_0x5164d3){const _0x78cbca=angular[_0x3a030c(0x289e)](_0x2a921e[_0x3a030c(0x1493)]);_0x78cbca[_0x3a030c(0x25bd)]=[],_0x41a70c&&_0x78cbca[_0x3a030c(0x25bd)][_0x3a030c(0x1954)]('X-CID:\x20'+_0x41a70c),_0x16db7c&&_0x78cbca['extraHeaders'][_0x3a030c(0x1954)](_0x3a030c(0x1ccd)+_0x16db7c),_0x2a921e[_0x3a030c(0x27cc)]=!![],_0x2a921e['ua'][_0x3a030c(0x17f0)](_0x5164d3,_0x78cbca);}}function _0x1e71ef(_0x285dce){const _0x4f6e98=_0x159c3b;console['debug'](_0x4f6e98(0x4e2),_0x285dce);let _0x2f14e2=_0x2a921e[_0x4f6e98(0x10eb)];if(_0x285dce['sessionId']){_0x2f14e2=[];const _0x285479=_0x285dce[_0x4f6e98(0x258f)];_0x2f14e2[_0x4f6e98(0x1954)](_0x2ef23e(_0x285dce[_0x4f6e98(0x258f)]));if(_0x2f14e2['length']==0x0){console[_0x4f6e98(0x185c)](_0x4f6e98(0x2729)+_0x285479+_0x4f6e98(0x1b20));return;}}for(let _0x584706=0x0;_0x584706<_0x2f14e2[_0x4f6e98(0x1b9e)];_0x584706++){const _0x51130d=_0x2f14e2[_0x584706];console[_0x4f6e98(0x9b4)](_0x4f6e98(0x1dfd),_0x51130d),_0x2a921e[_0x4f6e98(0x13eb)](_0x51130d);}}function _0x23e9d9(_0x5b3759){const _0x13a38a=_0x159c3b;console['debug'](_0x13a38a(0x486),_0x5b3759);let _0x2c0185;_0x5b3759[_0x13a38a(0x258f)]?_0x2c0185=_0x2ef23e(_0x5b3759[_0x13a38a(0x258f)]):_0x2c0185=_0x43dae3(),_0x5b3759[_0x13a38a(0x258f)]&&!_0x2c0185&&console['warn'](_0x13a38a(0x2729)+_0x5b3759[_0x13a38a(0x258f)]+_0x13a38a(0x1b20)),_0x2c0185&&_0x2a921e['answer'](_0x2c0185);}function _0x43dae3(){const _0x560290=_0x159c3b,_0x3fc2d5=_0x28c606()['find'](_0x2a921e[_0x560290(0x10eb)],function(_0x640255){const _0x4bd626=_0x560290;return _0x640255['incoming']&&!_0x640255[_0x4bd626(0x1e48)];});return _0x3fc2d5;}function _0x1c666d(_0x55ad49){const _0x477ff6=_0x159c3b;console[_0x477ff6(0x196e)](_0x477ff6(0x1a8d),_0x55ad49);let _0xb2c393=_0x2a921e[_0x477ff6(0x10eb)];if(_0x55ad49['sessionId']){_0xb2c393=[],_0xb2c393[_0x477ff6(0x1954)](_0x2ef23e(_0x55ad49[_0x477ff6(0x258f)]));const _0x546312=_0x55ad49['sessionId'];if(_0xb2c393[_0x477ff6(0x1b9e)]==0x0){console[_0x477ff6(0x185c)]('call\x20with\x20session\x20Id\x20'+_0x546312+_0x477ff6(0x1b20));return;}}for(let _0x507994=0x0;_0x507994<_0xb2c393[_0x477ff6(0x1b9e)];_0x507994++){const _0x5dea83=_0xb2c393[_0x507994];_0x2a921e[_0x477ff6(0xc65)](_0x5dea83);}}function _0x55baf2(_0x2c87ca){const _0x572baa=_0x159c3b;console[_0x572baa(0x196e)](_0x572baa(0x1a8d),_0x2c87ca);if(!_0x2c87ca['sessionId']){console['error']('sessionId\x20required');return;}const _0x2981ba=_0x2ef23e(_0x2c87ca[_0x572baa(0x258f)]);if(!_0x2981ba){const _0x8e6262=_0x2c87ca[_0x572baa(0x258f)];console[_0x572baa(0x185c)](_0x572baa(0x2729)+_0x8e6262+_0x572baa(0x1b20));return;}_0x2a921e[_0x572baa(0xd37)](_0x2981ba);}function _0x5c5305(_0x3d1792){const _0x166797=_0x159c3b;console['debug'](_0x166797(0x1bbf),_0x3d1792);if(!_0x3d1792['sessionId']){console[_0x166797(0x1bd0)](_0x166797(0x1691));return;}if(!_0x3d1792['transferNumber']){console['error'](_0x166797(0xe33));return;}const _0x50782c=_0x2ef23e(_0x3d1792[_0x166797(0x258f)]);if(!_0x50782c){const _0x2a5b33=_0x3d1792[_0x166797(0x258f)];console['warn'](_0x166797(0x2729)+_0x2a5b33+'\x20not\x20found');return;}_0x50782c[_0x166797(0x27ef)](_0x3d1792[_0x166797(0xf34)],{'eventHandlers':{'requestSucceeded':_0x354533(_0x50782c,_0x166797(0x17a7),'top\x20right',0xbb8),'requestFailed':_0x354533(_0x50782c,_0x166797(0x25f9),_0x166797(0xb86),0xbb8)}});}function _0x2ef23e(_0x52eedc){const _0x18419e=_0x159c3b;console[_0x18419e(0x196e)](_0x18419e(0x2305),_0x52eedc,_0x2a921e['sessions']);const _0xc96d11=_0x28c606()[_0x18419e(0x27bc)](_0x2a921e[_0x18419e(0x10eb)],function(_0x5eee47){return _0x5eee47['call_id']==_0x52eedc;});return _0xc96d11;}function _0x58dafd(_0x351ea7,_0x12796d){const _0x4d8b05=_0x159c3b;return console[_0x4d8b05(0x196e)]('callCallback\x20->\x20url,\x20params',_0x351ea7,_0x12796d),_0x17aef2({'url':_0x351ea7,'method':'GET','params':_0x12796d});}function _0x40e87e(_0xec5408,_0x10ce1b,_0x155f67){const _0x560d99=_0x159c3b,_0x12cb7c=_0x28c606()[_0x560d99(0x27bc)](_0xec5408,function(_0x506d7f){const _0x2ae162=_0x560d99;return _0x28c606()[_0x2ae162(0x1273)](_0x506d7f,_0x10ce1b);});if(_0x12cb7c)return _0x28c606()[_0x560d99(0xd66)](_0x12cb7c[_0x560d99(0x1353)](_0x10ce1b,'')['replace'](_0x155f67||':',''));return![];}_0x2a921e['$onInit']=_0x3ae757[_0x159c3b(0xd7b)](this),_0x2a921e[_0x159c3b(0x2185)]=_0x4dc006,_0x2a921e[_0x159c3b(0x17f0)]=_0x314eda,_0x2a921e[_0x159c3b(0xc65)]=_0x1baf04,_0x2a921e[_0x159c3b(0x27ef)]=_0x56591a,_0x2a921e['record']=_0x4446fc,_0x2a921e[_0x159c3b(0xd37)]=_0x184ec7,_0x2a921e[_0x159c3b(0x122c)]=_0x3146e3,_0x2a921e[_0x159c3b(0x13eb)]=_0x39ae38,_0x2a921e[_0x159c3b(0x1c1a)]=_0x8f4371,_0x2a921e[_0x159c3b(0x19d)]=_0x5edb11,_0x2a921e[_0x159c3b(0x270)]=_0x5e47a1,_0x2a921e[_0x159c3b(0x220e)]=_0x416961,_0x2a921e['closeDialpad']=_0x179d9e,_0x2a921e[_0x159c3b(0x1929)]=_0x5c77c8,_0x2a921e[_0x159c3b(0x2a9)]=_0x1cced0,_0x2a921e[_0x159c3b(0x18a2)]=_0x2396a9,_0x2a921e[_0x159c3b(0x2643)]=_0x39d3ff,_0x2a921e['start3WayConf']=_0x596d1d,_0x2a921e[_0x159c3b(0x1b5e)]=_0x103765,_0x130e87[_0x159c3b(0x8c7)]('webrtc::settings',_0x392df9),_0x130e87[_0x159c3b(0x8c7)](_0x159c3b(0xf5d),_0x1eefc3),_0x130e87['$on'](_0x159c3b(0x15bf),_0xba0835),_0x130e87['$on'](_0x159c3b(0x1add),_0x468127),_0x130e87[_0x159c3b(0x8c7)](_0x159c3b(0xf28),function(){const _0x5304c3=_0x159c3b;console[_0x5304c3(0x196e)](_0x5304c3(0x1cc8)),_0x33091b[_0x5304c3(0x1951)]('webbar:originate'),_0x33091b[_0x5304c3(0x1951)](_0x5304c3(0x428)),_0x33091b['removeAllListeners'](_0x5304c3(0x2955)),_0x33091b[_0x5304c3(0x1951)]('webbar:hold'),_0x33091b[_0x5304c3(0x1951)]('webbar:unhold'),_0x33091b[_0x5304c3(0x1951)](_0x5304c3(0x339));});}function _0x762540(){const _0x4019ab=_0x49a1e3;return{'restrict':'E','scope':{'conf':'='},'require':'msPhonebar','controller':_0x4019ab(0x192b),'controllerAs':'vm_pb','bindToController':!![],'templateUrl':_0x143b9c};};_0x2ca054[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x19a3),'required'];function _0x2ca054(_0x17cc79,_0x775c89,_0x436bb7){const _0x160af2=_0x49a1e3,_0x32a0f5=this;function _0x477a63(){const _0x16b31c=a0_0x4127;_0x17cc79[_0x16b31c(0x268e)](_0x32a0f5[_0x16b31c(0x2524)]);}function _0x404a3f(_0x6fa6ce){const _0x2f80fd=a0_0x4127;_0x17cc79[_0x2f80fd(0x268e)](_0x6fa6ce);}_0x32a0f5[_0x160af2(0x19a3)]=_0x775c89,_0x32a0f5[_0x160af2(0x4fb)]=_0x436bb7,_0x32a0f5[_0x160af2(0x16cb)]=_0x404a3f,_0x32a0f5[_0x160af2(0x17f0)]=_0x477a63;}const _0x23b8ee=_0x2ca054;;_0x3ef972[_0x49a1e3(0x1e73)]=['$mdDialog','$q',_0x49a1e3(0xa19),'sessions',_0x49a1e3(0x27fc)],_0x37ab61['$inject']=['$timeout'];function _0x37ab61(_0x811ae7){const _0x281216=_0x49a1e3;return{'restrict':'C','controller':[_0x281216(0x1674),'$element',function(_0x27ce86,_0x1f16de){function _0x406b06(){const _0x3c018b=a0_0x4127;_0x1f16de[_0x3c018b(0x9c6)](_0x3c018b(0x165c),_0x3c018b(0x1a2f)),_0x811ae7(_0x23ca0c,0x3e8);}function _0x23ca0c(){const _0x16be99=a0_0x4127;_0x1f16de[_0x16be99(0x9c6)](_0x16be99(0x165c),_0x16be99(0x2507)),_0x811ae7(_0x406b06,0x3e8);}_0x406b06();}],'replace':!![]};}function _0x3ef972(_0x2677d8,_0x2841de,_0x55d315,_0x55403d,_0x548238){const _0x486901=_0x49a1e3,_0x3857aa=this;_0x3857aa[_0x486901(0x2021)]=_0x486901(0x12e2),_0x3857aa['sessions']=_0x55403d,_0x3857aa[_0x486901(0x27fc)]=_0x548238,_0x3857aa[_0x486901(0x16cb)]=_0x29bd01,_0x3857aa[_0x486901(0xefd)]=_0x1d6afd,_0x3857aa[_0x486901(0x924)]=_0x531099,_0x3857aa[_0x486901(0x1859)]=_0x1f3a35;function _0x4e3584(){function _0x35d237(){const _0x21ba4e=a0_0x4127;return Math[_0x21ba4e(0x1e0d)]((0x1+Math[_0x21ba4e(0x849)]())*0x10000)[_0x21ba4e(0x2915)](0x10)[_0x21ba4e(0x28b2)](0x1);}return _0x35d237()+_0x35d237()+'-'+_0x35d237()+'-'+_0x35d237()+'-'+_0x35d237()+'-'+_0x35d237()+_0x35d237()+_0x35d237();}function _0x1f3a35(_0x4e5da0,_0x5ea75f){const _0x37039f=_0x486901;console['log'](_0x37039f(0x220d));const _0x3d49b1=_0x2841de['defer'](),_0x890d14=_0x5ea75f||_0x4e5da0[_0x37039f(0x25f5)][_0x37039f(0x1353)](/^.*[\\/]/,''),_0x569d6c=_0x890d14['split']('.')[0x0];return _0x55d315[_0x37039f(0x19bd)][_0x37039f(0x220d)]({'uniqueid':_0x3857aa[_0x37039f(0x27fc)][_0x37039f(0x2947)],'filename':_0x569d6c,'format':_0x37039f(0x74b)})[_0x37039f(0x15e7)][_0x37039f(0x64a)](function(_0x3e42b8){const _0x5750ea=_0x37039f;_0x4e5da0[_0x5750ea(0x25f5)]=_0x569d6c+_0x5750ea(0xb0e),_0x4e5da0['mixmonitorid']=_0x3e42b8[_0x5750ea(0x2657)],_0x4e5da0['status']=_0x5750ea(0x237e),_0x3857aa['session'][_0x5750ea(0x132a)]=!![],_0x3d49b1[_0x5750ea(0x1268)](_0x4e5da0);})['catch'](function(_0x85b7c5){_0x3d49b1['reject'](_0x85b7c5);}),_0x3d49b1[_0x37039f(0x1713)];}function _0x531099(_0x5d00dd){const _0x50ef9e=_0x486901;return console[_0x50ef9e(0x9b4)](_0x50ef9e(0x105a)),_0x55d315[_0x50ef9e(0x19bd)][_0x50ef9e(0x105a)]({'uniqueid':_0x3857aa[_0x50ef9e(0x27fc)][_0x50ef9e(0x2947)],'mixmonitorid':_0x5d00dd[_0x50ef9e(0x2657)]})['$promise'][_0x50ef9e(0x64a)](function(){const _0x574cef=_0x50ef9e;_0x5d00dd[_0x574cef(0x10b3)]=_0x574cef(0x2826),_0x3857aa['session']['monitor']=_0x28c606()[_0x574cef(0x68a)](_0x3857aa[_0x574cef(0x27fc)]['monitors'],{'status':_0x574cef(0x237e)});})[_0x50ef9e(0x20cd)](function(_0x6228ff){console['error'](_0x6228ff);});}function _0x1d6afd(){const _0x9509ab=_0x486901,_0x44145c=_0x2677d8[_0x9509ab(0x1ed2)]({'skipHide':!![]})[_0x9509ab(0x2021)](_0x9509ab(0x15e6))[_0x9509ab(0x250d)](_0x9509ab(0x1d47))[_0x9509ab(0x13de)]('File\x20name')['ariaLabel'](_0x9509ab(0xfc7))[_0x9509ab(0x475)](_0x4e3584())['ok']('Start')[_0x9509ab(0x101a)](_0x9509ab(0x1dc6));_0x2677d8[_0x9509ab(0xa60)](_0x44145c)['then'](function(_0x48ad8f){return _0x1f3a35({},_0x48ad8f);})[_0x9509ab(0x64a)](function(_0x591d87){const _0x13358a=_0x9509ab;_0x3857aa[_0x13358a(0x27fc)]['monitors'][_0x13358a(0x1954)](_0x591d87);});}function _0x29bd01(){_0x2677d8['hide']();}};_0x4e6d55[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x611),_0x49a1e3(0x10eb),_0x49a1e3(0x27fc),'isJabraEnabled'];function _0x4e6d55(_0x512b33,_0x51fa97,_0x1968c3,_0x2ab775,_0x396aca){const _0x189461=_0x49a1e3,_0x5eff08=this,_0x3d597b=window[_0x189461(0x438)];_0x5eff08[_0x189461(0x2021)]=_0x189461(0x2954),_0x5eff08[_0x189461(0x10eb)]=_0x1968c3,_0x5eff08[_0x189461(0x27fc)]=_0x2ab775,_0x5eff08[_0x189461(0x23d0)]=_0x396aca,_0x5eff08['sessionTarget']=null;_0x1968c3[_0x189461(0x1b9e)]&&(_0x5eff08[_0x189461(0x2497)]=_0x1968c3[0x0]['user']);_0x5eff08[_0x189461(0x16cb)]=_0x5680ed,_0x5eff08[_0x189461(0x16d6)]=_0x4c0beb;function _0x4c0beb(){const _0x420f67=_0x189461;let _0xe5bb5,_0x5ddecc;const _0xefedde=_0x28c606()[_0x420f67(0x27bc)](_0x1968c3,function(_0x27409d){const _0x5a2554=_0x420f67;if(_0x27409d[_0x5a2554(0x2e8)]===_0x5eff08[_0x5a2554(0x2497)])return _0x27409d;});_0xefedde[_0x420f67(0x14e7)]?(_0xe5bb5=_0xefedde,_0x5ddecc=_0x5eff08['session']):(_0xe5bb5=_0x5eff08[_0x420f67(0x27fc)],_0x5ddecc=_0xefedde),_0x5ddecc[_0x420f67(0x27ef)](_0xe5bb5['user'],{'replaces':_0xe5bb5,'eventHandlers':{'requestSucceeded':_0x3f6526(_0x2ab775,_0x420f67(0x17a7),_0x420f67(0xb86),0xbb8,_0x5eff08['isJabraEnabled']),'requestFailed':_0x3f6526(_0x2ab775,_0x420f67(0x25f9),_0x420f67(0xb86),0xbb8,_0x5eff08[_0x420f67(0x23d0)])}});}function _0x3f6526(_0x3b0e1a,_0x229260,_0x2f9aed,_0x6f8100,_0x430e82){const _0x384b40=_0x189461;return console[_0x384b40(0x196e)](_0x384b40(0x26f3),_0x3b0e1a,_0x229260,_0x2f9aed,_0x6f8100),function(){const _0x45612f=_0x384b40;_0x51fa97[_0x45612f(0xa60)](_0x51fa97[_0x45612f(0x6e5)]()[_0x45612f(0x250d)](_0x229260)[_0x45612f(0x14f7)](_0x2f9aed)[_0x45612f(0x4f3)](_0x6f8100)),_0x3b0e1a[_0x45612f(0x13eb)](),_0x3d597b&&_0x430e82&&_0x3d597b['onHook'](),_0x5680ed();};}function _0x5680ed(_0x501596){_0x512b33['hide'](_0x501596);}}const _0x1aca07=_0x4e6d55;;_0x2214ab[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x912),_0x49a1e3(0x21a1)];function _0x2214ab(_0x3eaca6,_0x50c0f7,_0x35475d){const _0x2542ba=_0x49a1e3,_0x5e24d6=this;_0x28c606()[_0x2542ba(0x21c7)](_0x35475d,function(_0x256731){const _0x247e64=_0x2542ba;return _0x256731[_0x247e64(0x98b)]==='audioinput'&&(_0x256731[_0x247e64(0x178a)]===_0x247e64(0x416)||_0x256731[_0x247e64(0x178a)]===_0x247e64(0x2892))||_0x256731[_0x247e64(0x98b)]===_0x247e64(0x1ecc)&&(_0x256731['deviceId']===_0x247e64(0x416)||_0x256731[_0x247e64(0x178a)]===_0x247e64(0x2892));}),_0x50c0f7[_0x2542ba(0x1ec)]=_0x5ea998(_0x35475d,_0x2542ba(0x1ecc),'ringingId'),_0x50c0f7[_0x2542ba(0x282e)]=_0x5ea998(_0x35475d,_0x2542ba(0x1ecc),'speakerId'),_0x50c0f7[_0x2542ba(0x215a)]=_0x5ea998(_0x35475d,_0x2542ba(0x1550),_0x2542ba(0x215a)),_0x50c0f7['ringingVolume']=_0x50c0f7[_0x2542ba(0x276b)]||0.5,_0x50c0f7['speakerVolume']=_0x50c0f7[_0x2542ba(0xf29)]||0.5,_0x50c0f7['microphoneVolume']=_0x50c0f7['microphoneVolume']||0x1,_0x50c0f7[_0x2542ba(0x129f)]=_0x50c0f7[_0x2542ba(0x129f)]||![],_0x50c0f7['speakerMute']=_0x50c0f7['speakerMute']||![],_0x50c0f7[_0x2542ba(0x1a5f)]=_0x50c0f7['microphoneMute']||![],_0x5e24d6[_0x2542ba(0x912)]=angular[_0x2542ba(0x289e)](_0x50c0f7),_0x5e24d6[_0x2542ba(0x21a1)]=_0x35475d,_0x5e24d6[_0x2542ba(0x747)]=_0x4d2815,_0x5e24d6[_0x2542ba(0x16cb)]=_0x5bfc02,_0x5e24d6[_0x2542ba(0x1d4f)]=_0x4f4a26;function _0x4f4a26(){const _0x1ce890=_0x2542ba;return _0x5e24d6[_0x1ce890(0x912)][_0x1ce890(0x20c)][_0x1ce890(0x2554)]()===_0x1ce890(0xb21)||_0x5e24d6['conf'][_0x1ce890(0x20c)][_0x1ce890(0x2554)]()===_0x1ce890(0x1e93)||_0x5e24d6[_0x1ce890(0x912)][_0x1ce890(0x20c)][_0x1ce890(0x2554)]()===_0x1ce890(0x20b3);}function _0x5ea998(_0x5974a6,_0x37ac57,_0x5015cf){const _0x5d4ec3=_0x2542ba;let _0x239040;if(!_0x50c0f7[_0x5015cf])_0x239040=_0x28c606()[_0x5d4ec3(0x27bc)](_0x5974a6,function(_0x4dd8f2){const _0x34c158=_0x5d4ec3;return _0x4dd8f2[_0x34c158(0x98b)]===_0x37ac57;}),_0x239040&&(_0x50c0f7[_0x5015cf]=_0x239040[_0x5d4ec3(0x178a)]);else{_0x239040=_0x28c606()[_0x5d4ec3(0x27bc)](_0x5974a6,function(_0x544897){return _0x544897['deviceId']===_0x50c0f7[_0x5015cf];});if(_0x239040)return _0x239040[_0x5d4ec3(0x178a)];const _0x1a94a5=_0x28c606()[_0x5d4ec3(0xb10)](_0x5974a6,function(_0x231779){const _0x152f28=_0x5d4ec3;return _0x231779[_0x152f28(0x98b)]===_0x37ac57;});if(_0x1a94a5>=0x0)return _0x5974a6[_0x1a94a5][_0x5d4ec3(0x178a)];}return _0x50c0f7[_0x5015cf]||null;}function _0x4d2815(){const _0xab65ec=_0x2542ba;_0x3eaca6[_0xab65ec(0x268e)](_0x5e24d6['conf']);}function _0x5bfc02(){const _0x4c56df=_0x2542ba;_0x3eaca6[_0x4c56df(0x268e)]();}}const _0x29b7d7=_0x2214ab;;const _0x3251ba=_0x2e4a48['p']+_0x49a1e3(0xfc8);;_0x2760a6['$inject']=[_0x49a1e3(0x1ce1),_0x49a1e3(0x21ce)],_0x372c8f[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1c95),'quickFilterManager'];function _0x56976a(){return{'restrict':'E','scope':{'query':'=','filters':'=','search':'&'},'controller':_0x372c8f,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x3251ba};}function _0x372c8f(_0x2dad97,_0x16c0e5){const _0x416438=_0x49a1e3,_0x13c641=this;_0x13c641[_0x416438(0xa5c)]={},_0x13c641[_0x416438(0xdbb)]={},_0x13c641[_0x416438(0x1976)]=_0x2dad97[_0x416438(0x1976)],_0x13c641[_0x416438(0x12fa)]=_0x43741e,_0x13c641[_0x416438(0x73e)]=_0xf3ab6c,_0x13c641[_0x416438(0x874)]=_0x354827,_0x13c641[_0x416438(0xc7a)]=_0x2123af,_0x13c641[_0x416438(0x1e70)]=_0x21cdec,_0x13c641['clearSelection']=_0xde046d,_0x13c641[_0x416438(0x204)]=_0x5822dc;function _0x43741e(_0x3f95e9){_0x501974(_0x3f95e9);}function _0xf3ab6c(_0xc05b6b){const _0x3dc9bc=_0x416438,_0x16ddf3=_0xc05b6b['key'];_0x13c641['query'][_0x16ddf3]?_0x13c641[_0x3dc9bc(0xa5c)][_0x16ddf3]=_0x2dad97['setSelectedDate'](_0x13c641[_0x3dc9bc(0x289a)][_0x16ddf3]):_0x13c641[_0x3dc9bc(0xa5c)][_0x16ddf3]={'dateStart':null};}function _0x354827(_0x44de6d,_0x15a901){const _0x1470c2=_0x416438;_0x15a901&&(_0x501974(_0x44de6d),_0x13c641[_0x1470c2(0xb58)]());}function _0x2123af(_0x1f6a7a){const _0x4519ea=_0x416438,_0x41ec17=_0x1f6a7a[_0x4519ea(0x2125)];_0x13c641[_0x4519ea(0xa5c)][_0x41ec17][_0x4519ea(0x1e80)]?_0x13c641[_0x4519ea(0x289a)][_0x41ec17]={'$gte':_0x2ac33a()(_0x13c641[_0x4519ea(0xa5c)][_0x41ec17]['dateStart'])['utcOffset'](0x0,!![])['format'](),'$lte':_0x2ac33a()(_0x13c641[_0x4519ea(0xa5c)][_0x41ec17][_0x4519ea(0x2297)])[_0x4519ea(0xebc)](0x0,!![])['add'](0x17,_0x4519ea(0x19b1))['add'](0x3b,_0x4519ea(0xef9))[_0x4519ea(0x25df)](0x3b,_0x4519ea(0x15a2))[_0x4519ea(0x1c2c)]()}:_0x13c641[_0x4519ea(0x289a)][_0x41ec17]=undefined,_0x13c641[_0x4519ea(0xb58)]();}function _0x21cdec(_0x69a1cb){const _0x5ee706=_0x416438,_0x148fd1=_0x69a1cb['key'];_0x13c641[_0x5ee706(0xa5c)][_0x148fd1]={'dateStart':null},delete _0x13c641[_0x5ee706(0x289a)][_0x148fd1],_0x13c641['search']();}function _0x5822dc(_0x197a6e){const _0x199357=_0x416438,_0xd75b92=_0x197a6e[_0x199357(0x2125)],_0x5522b7=_0x197a6e[_0x199357(0x62c)]||'id';_0x13c641[_0x199357(0x289a)][_0xd75b92]=_0x28c606()[_0x199357(0x1de5)](_0x197a6e[_0x199357(0x59e)],_0x5522b7),_0x501974(_0x197a6e),_0x13c641['search']();}function _0xde046d(_0x401685){const _0x5f3e91=_0x416438,_0x16dbf3=_0x401685[_0x5f3e91(0x2125)],_0x3cabfc=_0x401685[_0x5f3e91(0x62c)]||'id';_0x13c641['query'][_0x16dbf3]=_0x401685[_0x5f3e91(0x2740)]===![]?[_0x28c606()[_0x5f3e91(0x1ff2)](_0x401685['options'])[_0x3cabfc]]:[],_0x501974(_0x401685),_0x13c641[_0x5f3e91(0xb58)]();}function _0x501974(_0x35e9b5){const _0x348943=_0x416438,_0x547303=_0x35e9b5[_0x348943(0x2125)],_0x2c3bd9={'param':_0x13c641[_0x348943(0x289a)][_0x547303],'resources':_0x35e9b5[_0x348943(0x59e)],'placeholder':_0x35e9b5['placeholder'],'ngValue':_0x35e9b5[_0x348943(0x62c)]};_0x16c0e5[_0x348943(0x2733)](_0x2c3bd9)[_0x348943(0x64a)](function(_0x4f2117){const _0x2f37ef=_0x348943;_0x13c641[_0x2f37ef(0xdbb)][_0x547303]=_0x4f2117;});}}function _0x2760a6(_0x3e6403,_0x352413){const _0x3231ae={'localizationMap':_0x352413,'setSelectedDate':_0x3d36a7};function _0x3d36a7(_0x26216d){const _0x389fd6=a0_0x4127,_0x48074e=new Date(_0x2ac33a()['utc'](_0x26216d[_0x389fd6(0xc76)])[_0x389fd6(0x1c2c)](_0x389fd6(0x286b))),_0x56b1e4=new Date(_0x2ac33a()[_0x389fd6(0x1069)](_0x26216d[_0x389fd6(0x1fde)])[_0x389fd6(0x1c2c)]('YYYY-MM-DD')),_0x215ab4={'dateStart':new Date(_0x48074e[_0x389fd6(0x1856)](),_0x48074e['getMonth'](),_0x48074e[_0x389fd6(0x24e)]()),'dateEnd':new Date(_0x56b1e4[_0x389fd6(0x1856)](),_0x56b1e4[_0x389fd6(0xe10)](),_0x56b1e4['getDate']())};return _0x215ab4[_0x389fd6(0x1b00)]=_0x4382e7(_0x215ab4),_0x215ab4;}function _0x4382e7(_0x264361){const _0x20f395=a0_0x4127;if(_0x2ac33a()(_0x264361[_0x20f395(0x1e80)])[_0x20f395(0x2749)](_0x264361['dateEnd'])){if(_0x3e5917(_0x264361))return _0x3231ae[_0x20f395(0x1976)]['Today'];else return _0x1e62d2(_0x264361)?_0x3231ae['localizationMap'][_0x20f395(0x1d72)]:_0x3e6403(_0x20f395(0x232e))(_0x264361[_0x20f395(0x1e80)],_0x20f395(0x2371));}else{if(_0x75624d(_0x264361))return _0x3231ae[_0x20f395(0x1976)][_0x20f395(0x1651)];else{if(_0x366b5c(_0x264361))return _0x3231ae[_0x20f395(0x1976)][_0x20f395(0x309)];else{if(_0x24c675(_0x264361))return _0x3231ae[_0x20f395(0x1976)][_0x20f395(0x276)];else{if(_0x57a81c(_0x264361))return _0x3231ae[_0x20f395(0x1976)][_0x20f395(0x1dd4)];else{if(_0x3e5cbb(_0x264361))return _0x3231ae[_0x20f395(0x1976)][_0x20f395(0x1f5a)];else return _0x472ec1(_0x264361)?_0x3231ae[_0x20f395(0x1976)][_0x20f395(0x279c)]:_0x3e6403(_0x20f395(0x232e))(_0x264361[_0x20f395(0x1e80)],'dd'+(_0x264361[_0x20f395(0x1e80)][_0x20f395(0xe10)]()!==_0x264361[_0x20f395(0x2297)][_0x20f395(0xe10)]()||_0x264361[_0x20f395(0x1e80)][_0x20f395(0x1856)]()!==_0x264361['dateEnd'][_0x20f395(0x1856)]()?_0x20f395(0x2992):'')+(_0x264361[_0x20f395(0x1e80)]['getFullYear']()!==_0x264361[_0x20f395(0x2297)][_0x20f395(0x1856)]()?_0x20f395(0x19e):''))+_0x20f395(0x21db)+_0x3e6403('date')(_0x264361[_0x20f395(0x2297)],_0x20f395(0x2371));}}}}}}function _0x3e5917(_0x467c2f){const _0x1bb66a=a0_0x4127;return _0x2ac33a()()[_0x1bb66a(0x246e)](_0x1bb66a(0x2784))['isSame'](_0x467c2f[_0x1bb66a(0x1e80)]);}function _0x1e62d2(_0x517e7c){const _0x2495e0=a0_0x4127;return _0x2ac33a()()[_0x2495e0(0x1219)](0x1,_0x2495e0(0x19d1))[_0x2495e0(0x246e)]('day')[_0x2495e0(0x2749)](_0x517e7c[_0x2495e0(0x1e80)]);}function _0x75624d(_0x31f450){const _0xe6a311=a0_0x4127;return _0x2ac33a()()[_0xe6a311(0x246e)](_0xe6a311(0x9f0))[_0xe6a311(0x2749)](_0x31f450['dateStart'],_0xe6a311(0x2784))&&_0x2ac33a()()[_0xe6a311(0x13af)]('isoWeek')[_0xe6a311(0x2749)](_0x31f450[_0xe6a311(0x2297)],_0xe6a311(0x2784));}function _0x366b5c(_0x30beda){const _0x2c1158=a0_0x4127;return _0x2ac33a()()['subtract'](0x1,_0x2c1158(0x1654))[_0x2c1158(0x246e)](_0x2c1158(0x9f0))[_0x2c1158(0x2749)](_0x30beda['dateStart'],_0x2c1158(0x2784))&&_0x2ac33a()()[_0x2c1158(0x1219)](0x1,_0x2c1158(0x1654))[_0x2c1158(0x13af)](_0x2c1158(0x9f0))[_0x2c1158(0x2749)](_0x30beda['dateEnd'],'day');}function _0x24c675(_0x2a6aa5){const _0x3b1a0e=a0_0x4127;return _0x2ac33a()()[_0x3b1a0e(0x246e)](_0x3b1a0e(0x5f5))[_0x3b1a0e(0x2749)](_0x2a6aa5[_0x3b1a0e(0x1e80)],_0x3b1a0e(0x2784))&&_0x2ac33a()()[_0x3b1a0e(0x13af)](_0x3b1a0e(0x5f5))['isSame'](_0x2a6aa5[_0x3b1a0e(0x2297)],_0x3b1a0e(0x2784));}function _0x57a81c(_0x1ee9ec){const _0x9196b0=a0_0x4127;return _0x2ac33a()()[_0x9196b0(0x1219)](0x1,_0x9196b0(0x5e9))[_0x9196b0(0x246e)]('month')[_0x9196b0(0x2749)](_0x1ee9ec[_0x9196b0(0x1e80)],'day')&&_0x2ac33a()()[_0x9196b0(0x1219)](0x1,_0x9196b0(0x5e9))[_0x9196b0(0x13af)](_0x9196b0(0x5f5))['isSame'](_0x1ee9ec[_0x9196b0(0x2297)],'day');}function _0x3e5cbb(_0x4229ff){const _0x10ad59=a0_0x4127;return _0x2ac33a()()[_0x10ad59(0x246e)](_0x10ad59(0x213b))['isSame'](_0x4229ff[_0x10ad59(0x1e80)],_0x10ad59(0x2784))&&_0x2ac33a()()[_0x10ad59(0x13af)](_0x10ad59(0x213b))[_0x10ad59(0x2749)](_0x4229ff[_0x10ad59(0x2297)],_0x10ad59(0x2784));}function _0x472ec1(_0x54cd95){const _0x1c2619=a0_0x4127;return _0x2ac33a()()[_0x1c2619(0x1219)](0x1,'years')[_0x1c2619(0x246e)](_0x1c2619(0x213b))[_0x1c2619(0x2749)](_0x54cd95[_0x1c2619(0x1e80)],_0x1c2619(0x2784))&&_0x2ac33a()()[_0x1c2619(0x1219)](0x1,_0x1c2619(0xf90))[_0x1c2619(0x13af)]('year')[_0x1c2619(0x2749)](_0x54cd95[_0x1c2619(0x2297)],_0x1c2619(0x2784));}return _0x3231ae;};function _0x4b6558(){return{'restrict':'A','scope':{'msRandomClass':'='},'link':function(_0x2664de,_0xb0ecaf){const _0x122950=a0_0x4127,_0x455ce4=_0x2664de[_0x122950(0x4cf)][Math['floor'](Math[_0x122950(0x849)]()*_0x2664de['msRandomClass'][_0x122950(0x1b9e)])];_0xb0ecaf[_0x122950(0xb6f)](_0x455ce4);}};}const _0x2e12f3=_0x4b6558;;_0x54ab97['$inject']=[_0x49a1e3(0xa19)];function _0x54ab97(_0x51f543){return{'restrict':'E','scope':{'id':'=','model':'=','download':'='},'replace':!![],'link':function(_0x27518c,_0x3ece48){const _0x5696e7=a0_0x4127;let _0x30b185=![];const _0x3270fd=document['createElement'](_0x5696e7(0x2240));!_0x27518c[_0x5696e7(0x19b3)]&&_0x3270fd[_0x5696e7(0x1280)]('controlsList',_0x5696e7(0x1efe)),_0x3270fd[_0x5696e7(0x1280)]('preload',_0x5696e7(0x2507)),_0x3270fd['setAttribute'](_0x5696e7(0x2891),''),_0x3270fd[_0x5696e7(0x1280)](_0x5696e7(0xaa2),_0x5696e7(0x27e)),_0x3270fd['setAttribute'](_0x5696e7(0x1efd),'\x20'),_0x3270fd[_0x5696e7(0x277e)]=function(_0x51dc6d){const _0x131232=_0x5696e7;!_0x30b185&&(_0x30b185=!![],_0x51dc6d[_0x131232(0xecc)](),_0x51f543[_0x27518c['model']||'voiceRecording'][_0x131232(0x19b3)]({'id':_0x27518c['id']})[_0x131232(0x15e7)][_0x131232(0x64a)](function(_0x456332){const _0x1c65ed=_0x131232,_0x4d1d08=[_0x456332[_0x1c65ed(0x5a9)]],_0x4a33ca=new Blob(_0x4d1d08,{'type':_0x456332[_0x1c65ed(0x2185)]});_0x3270fd[_0x1c65ed(0x1280)]('type',_0x456332[_0x1c65ed(0x2185)]),_0x3270fd['setAttribute']('src',URL[_0x1c65ed(0x206)](_0x4a33ca)),_0x3270fd[_0x1c65ed(0x1502)]();})[_0x131232(0x20cd)](function(_0x573985){console['error'](_0x573985);}));},_0x3ece48[_0x5696e7(0x1d30)](_0x3270fd);}};}const _0x2e978d=_0x54ab97;;function _0x57024a(){return{'restrict':'A','link':function(_0x5da689,_0x2756d8){const _0x26fdad=a0_0x4127,_0x19ed8b=angular[_0x26fdad(0x1f81)](_0x26fdad(0x1eb0));_0x2756d8[_0x26fdad(0x49a)](_0x19ed8b),_0x19ed8b['append'](_0x2756d8);}};}const _0x2bff48=_0x57024a;var _0x52fc59=_0x2e4a48(0x1703),_0x163743=_0x2e4a48['n'](_0x52fc59);;_0x54aa06[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20d4),'msScrollConfig',_0x49a1e3(0x1214),_0x49a1e3(0x24ed)];function _0x503fe9(){const _0x1cf1ba=_0x49a1e3;let _0x4b2e29={'wheelSpeed':0x1,'wheelPropagation':![],'swipePropagation':!![],'minScrollbarLength':null,'maxScrollbarLength':null,'useBothWheelAxes':![],'useKeyboard':!![],'suppressScrollX':![],'suppressScrollY':![],'scrollXMarginOffset':0x0,'scrollYMarginOffset':0x0,'stopPropagationOnClick':!![]};this[_0x1cf1ba(0x4ed)]=function(){function _0x14af00(){return _0x4b2e29;}const _0xe8d1db={'getConfig':_0x14af00};return _0xe8d1db;};function _0x4d39bc(_0x313c15){const _0x8fc0d3=_0x1cf1ba;_0x4b2e29=angular[_0x8fc0d3(0x1c69)]({},_0x4b2e29,_0x313c15);}this[_0x1cf1ba(0x3d3)]=_0x4d39bc;}function _0x54aa06(_0x22d603,_0x4c6bac,_0x43d8e1,_0x42bb33){return{'restrict':'AE','compile':function(_0x1ac9bc){const _0x1a4520=a0_0x4127;if(_0x42bb33['getConfig'](_0x1a4520(0x1fa1)))return;if(_0x42bb33['getConfig']('disableCustomScrollbarsOnMobile')&&_0x43d8e1[_0x1a4520(0x14c9)]())return;return _0x1ac9bc['addClass'](_0x1a4520(0x2517)),function _0x3991cf(_0x5cdc6e,_0x1c796a,_0x21adfa){const _0x34b1e9=_0x1a4520;let _0x1a81de={};_0x21adfa[_0x34b1e9(0x14ca)]&&(_0x1a81de=_0x5cdc6e[_0x34b1e9(0x11a1)](_0x21adfa[_0x34b1e9(0x14ca)]));_0x1a81de=angular[_0x34b1e9(0x1c69)]({},_0x4c6bac[_0x34b1e9(0x28cc)](),_0x1a81de),_0x163743()[_0x34b1e9(0x23de)](_0x1c796a[0x0],_0x1a81de);function _0x273149(){const _0xbbfcd8=_0x34b1e9;_0x163743()[_0xbbfcd8(0x2603)](_0x1c796a[0x0]);}_0x1c796a['on'](_0x34b1e9(0x2357),_0x273149),_0x5cdc6e[_0x34b1e9(0xc62)](function(){const _0x394ecb=_0x34b1e9;return _0x1c796a[_0x394ecb(0x5a4)](_0x394ecb(0xba2));},function(_0x285fb0,_0x1a612a){const _0x2f8611=_0x34b1e9;if(angular['isUndefined'](_0x285fb0)||angular[_0x2f8611(0x1a61)](_0x285fb0,_0x1a612a))return;_0x273149();}),_0x5cdc6e['$watch'](function(){const _0x41adc8=_0x34b1e9;return _0x1c796a[_0x41adc8(0x5a4)]('scrollWidth');},function(_0x1e4aa3,_0x3da49d){const _0x4ac1a4=_0x34b1e9;if(angular['isUndefined'](_0x1e4aa3)||angular[_0x4ac1a4(0x1a61)](_0x1e4aa3,_0x3da49d))return;_0x273149();}),_0x5cdc6e['$on']('$destroy',function(){const _0x2def54=_0x34b1e9;_0x1c796a[_0x2def54(0x414)](_0x2def54(0x2357)),_0x163743()['destroy'](_0x1c796a[0x0]);});};}};};const _0x8a5460=_0x2e4a48['p']+_0x49a1e3(0x21d1);;_0x2fc717[_0x49a1e3(0x1e73)]=['$document'],_0x321ad5[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1f16),'$timeout'];function _0x321ad5(_0xafb54,_0xd9facd,_0x4be59b){const _0x4317dd=_0x49a1e3,_0x2ca643=this;_0x2ca643[_0x4317dd(0x2952)]=!![],_0x2ca643['query']=undefined,_0x2ca643['queryOptions']={'debounce':_0x2ca643['debounce']||0x0};const _0x5d1c03=_0x2ca643['collapseOnBlur']&&_0x2ca643[_0x4317dd(0x65a)]==_0x4317dd(0x1685)?!![]:![];_0x2ca643[_0x4317dd(0x27cf)]=![],_0x2ca643[_0x4317dd(0x289c)]=null,_0x2ca643['selectedResultIndex']=0x0,_0x2ca643[_0x4317dd(0x1926)]=![],_0x2ca643[_0x4317dd(0x2483)]=_0x16b1a5,_0x2ca643[_0x4317dd(0x254f)]=_0x4257a0,_0x2ca643[_0x4317dd(0x14da)]=_0x32febb,_0x2ca643[_0x4317dd(0x256)]=_0x181252,_0x2ca643[_0x4317dd(0x2065)]=_0x12e74e,_0x2ca643[_0x4317dd(0x17c2)]=_0x122649,_0x2ca643[_0x4317dd(0x257e)]=_0x3ac462,_0x2ca643['handleMouseenter']=_0x53d52d,_0x2ca643[_0x4317dd(0x27d0)]=_0x2a7b40,_0x2ca643[_0x4317dd(0x1d3)]=_0x39a22b,_0x2ca643['ensureSelectedResultIsVisible']=_0x299d25;function _0x16b1a5(){const _0x21c54d=_0x4317dd;_0xafb54[_0x21c54d(0xc62)]('vm.query',function(_0x5b1743,_0x25ed2c){const _0x25aa25=_0x21c54d;if(angular[_0x25aa25(0x1a01)](_0x5b1743))return;if(angular[_0x25aa25(0x1a61)](_0x5b1743,_0x25ed2c))return;if(_0x2ca643['collapsed']){if(_0x5b1743)_0xafb54[_0x25aa25(0x14da)]();else return;}const _0x107fbc=_0xafb54['$parent'][_0x25aa25(0x11a1)](_0x2ca643[_0x25aa25(0x104c)],{'query':_0x5b1743}),_0x10be51=angular[_0x25aa25(0x616)](_0x107fbc),_0x56b5ea=_0x107fbc&&!!_0x107fbc[_0x25aa25(0x64a)];_0x10be51&&_0x2ca643['populateResults'](_0x107fbc),_0x56b5ea&&(_0x2ca643[_0x25aa25(0x27cf)]=!![],_0x107fbc['then'](function(_0x2153c8){const _0x147259=_0x25aa25;_0x2ca643[_0x147259(0x254f)](_0x2153c8);},function(){const _0x576590=_0x25aa25;_0x2ca643[_0x576590(0x254f)]([]);})[_0x25aa25(0x988)](function(){_0x2ca643['resultsLoading']=![];}));});}function _0x4257a0(_0x18d6fd){const _0x31361e=_0x4317dd;if(_0x2ca643[_0x31361e(0x2952)])return;const _0x3ef187=angular[_0x31361e(0x616)](_0x18d6fd),_0x47cdb1=_0x18d6fd===null;if(!_0x3ef187&&!_0x47cdb1)return;_0x2ca643[_0x31361e(0x7f1)]=0x0,_0x2ca643['results']=_0x18d6fd;}function _0x32febb(){const _0x3f93a3=_0x4317dd;_0x2ca643[_0x3f93a3(0x2952)]=![],_0xafb54[_0x3f93a3(0x14da)](),_0x2ca643[_0x3f93a3(0x2575)]&&angular['isFunction'](_0x2ca643[_0x3f93a3(0x2575)])&&_0x2ca643['onExpand']();}function _0x181252(){const _0x505a73=_0x4317dd;_0x2ca643[_0x505a73(0x289a)]='',_0x2ca643['populateResults'](null),_0x2ca643[_0x505a73(0x2952)]=!![],_0xafb54[_0x505a73(0x256)](),_0x2ca643[_0x505a73(0x133c)]&&angular[_0x505a73(0x130e)](_0x2ca643['onCollapse'])&&_0x2ca643['onCollapse']();}function _0x12e74e(){const _0xfc6950=_0x4317dd;if(!_0x5d1c03)return;_0x2ca643[_0xfc6950(0x256)]();}function _0x122649(_0x33153d){const _0x2ae075=_0x4317dd;_0x33153d[_0x2ae075(0xecc)]();}function _0x3ac462(_0x448b98){const _0x325658=_0x4317dd,_0x51f013=_0x448b98[_0x325658(0x11b7)],_0x4854ba=[0x1b,0x26,0x28];_0x4854ba[_0x325658(0x1b28)](_0x51f013)>-0x1&&_0x448b98[_0x325658(0xecc)]();switch(_0x51f013){case 0xd:if(!_0x2ca643[_0x325658(0x289c)])return;_0x2ca643[_0x325658(0x1d3)](_0x2ca643[_0x325658(0x289c)][_0x2ca643[_0x325658(0x7f1)]]);break;case 0x1b:_0x2ca643[_0x325658(0x256)]();break;case 0x26:_0x2ca643[_0x325658(0x7f1)]-0x1>=0x0&&(_0x2ca643[_0x325658(0x7f1)]--,_0x2ca643[_0x325658(0x13dc)]());break;case 0x28:if(!_0x2ca643[_0x325658(0x289c)])return;_0x2ca643[_0x325658(0x7f1)]+0x1<_0x2ca643[_0x325658(0x289c)]['length']&&(_0x2ca643[_0x325658(0x7f1)]++,_0x2ca643[_0x325658(0x13dc)]());break;default:break;}}function _0x53d52d(_0x26fab0){const _0x59b91d=_0x4317dd;if(_0x2ca643['ignoreMouseEvents'])return;_0x2ca643[_0x59b91d(0x7f1)]=_0x26fab0;}function _0x2a7b40(){const _0x1d8a46=_0x4317dd;_0x2ca643[_0x1d8a46(0x1926)]=!![],_0x4be59b['cancel'](_0x2ca643[_0x1d8a46(0xd6f)]),_0x2ca643[_0x1d8a46(0xd6f)]=_0x4be59b(function(){const _0x15ddea=_0x1d8a46;_0x2ca643[_0x15ddea(0x1926)]=![];},0xfa);}function _0x39a22b(_0x6727e){const _0x53fea9=_0x4317dd;_0x2ca643[_0x53fea9(0x1f1e)]&&_0x2ca643['onResultClick']({'item':_0x6727e}),_0x2ca643[_0x53fea9(0x256)]();}function _0x299d25(){const _0x111e43=_0x4317dd,_0x2d45f9=_0xd9facd[_0x111e43(0x27bc)](_0x111e43(0x343)),_0x4a07da=angular[_0x111e43(0x1f81)](_0x2d45f9[_0x111e43(0x27bc)](_0x111e43(0x601))[_0x2ca643[_0x111e43(0x7f1)]]);if(_0x2d45f9&&_0x4a07da){const _0x7b82b5=_0x4a07da[_0x111e43(0x14f7)]()[_0x111e43(0x2155)]-0x8,_0x4470e0=_0x4a07da[_0x111e43(0x14f7)]()[_0x111e43(0x2155)]+_0x4a07da[_0x111e43(0x1ed8)]()+0x8;_0x2ca643['temporarilyIgnoreMouseEvents'](),_0x2d45f9[_0x111e43(0x12c8)]()>_0x7b82b5&&_0x2d45f9[_0x111e43(0x12c8)](_0x7b82b5),_0x4470e0>_0x2d45f9['height']()+_0x2d45f9[_0x111e43(0x12c8)]()&&_0x2d45f9[_0x111e43(0x12c8)](_0x4470e0-_0x2d45f9[_0x111e43(0x1c73)]());}}}function _0x2fc717(_0x216064){const _0x233c69=_0x49a1e3;return{'restrict':'E','scope':{},'require':_0x233c69(0x246a),'controller':_0x233c69(0x1060),'bindToController':{'query':'=?','debounce':'=?','direction':'@','iconColor':'@','onSearch':'@','onResultClick':'&?','onExpand':'&?','onCollapse':'&?','collapseOnBlur':'@'},'templateUrl':_0x8a5460,'compile':function(_0x59b781){return _0x59b781['addClass']('ms-search-bar'),function _0x39df2a(_0x329219,_0x3e3277){const _0x3fd805=a0_0x4127,_0x1f20fe=_0x216064[_0x3fd805(0x27bc)](_0x3fd805(0xb49));function _0x139aae(){const _0x1ea2b8=_0x3fd805;_0x3e3277[_0x1ea2b8(0xb6f)](_0x1ea2b8(0x147e));if(_0x329219['vm'][_0x1ea2b8(0x484)]===_0x1ea2b8(0xb11)){_0x3e3277[_0x1ea2b8(0xb6f)](_0x1ea2b8(0xb11));const _0x5866dd=_0x3e3277[_0x1ea2b8(0x5d2)](_0x1ea2b8(0xe0c));if(_0x5866dd)_0x5866dd[_0x1ea2b8(0xb6f)](_0x1ea2b8(0x2994));}_0x1f20fe[_0x1ea2b8(0xb6f)](_0x1ea2b8(0x714));}function _0x15dff0(){const _0x279ca5=_0x3fd805;_0x3e3277['removeClass'](_0x279ca5(0x147e));if(_0x329219['vm'][_0x279ca5(0x484)]===_0x279ca5(0xb11)){_0x3e3277[_0x279ca5(0x12b3)](_0x279ca5(0xb11));const _0x4149c1=_0x3e3277[_0x279ca5(0x5d2)](_0x279ca5(0xe0c));if(_0x4149c1)_0x4149c1[_0x279ca5(0x12b3)](_0x279ca5(0x2994));}_0x1f20fe['removeClass'](_0x279ca5(0x714));}_0x329219[_0x3fd805(0x256)]=_0x15dff0,_0x329219['expand']=_0x139aae;};}};};const _0x572e3b=_0x2e4a48['p']+_0x49a1e3(0x241b);;_0x1f2bee[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x7a7),_0x49a1e3(0x1373),'$timeout','$q','msNavigationService'];function _0x1f2bee(_0x34ddc8,_0x4a7d81,_0x1ea7d0,_0x106c88,_0x8c5035,_0x1add19){const _0x1f8d62=_0x49a1e3,_0xbeadc5=this;_0xbeadc5[_0x1f8d62(0x289a)]='',_0xbeadc5[_0x1f8d62(0x24fb)]={'debounce':0x12c},_0xbeadc5[_0x1f8d62(0x27cf)]=![],_0xbeadc5[_0x1f8d62(0x7f1)]=0x0,_0xbeadc5[_0x1f8d62(0x1926)]=![],_0xbeadc5[_0x1f8d62(0x1a37)]=![],_0xbeadc5['results']=null,_0xbeadc5[_0x1f8d62(0x823)]=[],_0xbeadc5[_0x1f8d62(0x2238)]={'ghostClass':_0x1f8d62(0x577),'forceFallback':!![],'fallbackClass':_0x1f8d62(0x2589),'onSort':function(){_0xbeadc5['saveShortcuts']();}};function _0x10ac7c(){const _0x34a359=_0x1f8d62;_0xbeadc5[_0x34a359(0xb31)]()[_0x34a359(0x64a)](function(_0x260cc1){const _0x28d1c1=_0x34a359;_0xbeadc5[_0x28d1c1(0x823)]=_0x260cc1,_0xbeadc5[_0x28d1c1(0x823)][_0x28d1c1(0x1b9e)]>0x0&&(_0xbeadc5[_0x28d1c1(0x289c)]=_0x260cc1);}),_0x34ddc8[_0x34a359(0xc62)](_0x34a359(0x1131),function(_0x148939,_0x1ac00f){const _0x3cf9bd=_0x34a359;if(angular[_0x3cf9bd(0x1a01)](_0x148939))return;if(angular['equals'](_0x148939,_0x1ac00f))return;_0xbeadc5[_0x3cf9bd(0x27cf)]=!![],_0xbeadc5[_0x3cf9bd(0x254f)]()[_0x3cf9bd(0x64a)](function(_0x1efc74){const _0x5e0fe3=_0x3cf9bd;_0xbeadc5[_0x5e0fe3(0x289c)]=_0x1efc74;},function(){const _0x231019=_0x3cf9bd;_0xbeadc5[_0x231019(0x289c)]=[];})[_0x3cf9bd(0x988)](function(){const _0x267550=_0x3cf9bd;_0xbeadc5[_0x267550(0x27cf)]=![];});});}function _0x1ca7f2(){const _0xf816ff=_0x1f8d62;let _0x1ec432=[];const _0x2d51d6=_0x1add19['getFlatNavigation'](),_0x4f619c=_0x8c5035['defer']();for(let _0x247c4e=0x0;_0x247c4e<_0x2d51d6[_0xf816ff(0x1b9e)];_0x247c4e++){_0x2d51d6[_0x247c4e][_0xf816ff(0x1181)]&&_0x1ec432[_0xf816ff(0x1954)](_0x2d51d6[_0x247c4e]);}if(_0xbeadc5[_0xf816ff(0x289a)]){_0x1ec432=_0x1ec432[_0xf816ff(0xcec)](function(_0x1b96c7){const _0x48c41b=_0xf816ff;if(_0x1b96c7[_0x48c41b(0x2021)]['toLowerCase']()[_0x48c41b(0x68a)](_0xbeadc5[_0x48c41b(0x289a)][_0x48c41b(0x2554)]()))return!![];});for(let _0x1f5a7d=0x0;_0x1f5a7d<_0x1ec432[_0xf816ff(0x1b9e)];_0x1f5a7d++){_0x1ec432[_0x1f5a7d][_0xf816ff(0x145f)]=![];for(let _0x4d46d6=0x0;_0x4d46d6<_0xbeadc5['shortcuts'][_0xf816ff(0x1b9e)];_0x4d46d6++){if(_0xbeadc5['shortcuts'][_0x4d46d6][_0xf816ff(0x1b78)]===_0x1ec432[_0x1f5a7d][_0xf816ff(0x1b78)]){_0x1ec432[_0x1f5a7d][_0xf816ff(0x145f)]=!![];break;}}}}else _0xbeadc5[_0xf816ff(0x823)][_0xf816ff(0x1b9e)]>0x0&&(_0x1ec432=_0xbeadc5[_0xf816ff(0x823)]);return _0xbeadc5[_0xf816ff(0x7f1)]=0x0,_0x106c88(function(){const _0x5c9cbd=_0xf816ff;_0x4f619c[_0x5c9cbd(0x1268)](_0x1ec432);},0xfa),_0x4f619c['promise'];}function _0x2dfcb1(){const _0x2ca972=_0x1f8d62,_0x35861e=_0x8c5035[_0x2ca972(0x122)]();let _0x52a746=angular['fromJson'](_0x4a7d81[_0x2ca972(0x896)]('motion.shortcuts'));return angular[_0x2ca972(0x1a01)](_0x52a746)&&(_0x52a746=[{'title':_0x2ca972(0x2132),'icon':_0x2ca972(0xdf8),'state':'app.staff.agents','weight':0x5,'children':[],'uisref':_0x2ca972(0x1379),'hasShortcut':!![]},{'title':_0x2ca972(0xf5b),'icon':_0x2ca972(0x73d),'state':_0x2ca972(0x27a2),'weight':0xa,'children':[],'uisref':_0x2ca972(0x27a2),'hasShortcut':!![]}],_0x4a7d81[_0x2ca972(0x2358)](_0x2ca972(0x60b),angular[_0x2ca972(0x1b67)](_0x52a746))),_0x35861e['resolve'](_0x52a746),_0x35861e['promise'];}function _0x3ed625(){const _0x26eaba=_0x1f8d62,_0xccc81e=_0x8c5035['defer']();return _0x4a7d81[_0x26eaba(0x2358)](_0x26eaba(0x60b),angular[_0x26eaba(0x1b67)](_0xbeadc5[_0x26eaba(0x823)])),_0x106c88(function(){const _0x475839=_0x26eaba;_0xccc81e[_0x475839(0x1268)]({'success':!![]});},0xfa),_0xccc81e[_0x26eaba(0x1713)];}function _0x5195d0(_0x15acde){const _0x177816=_0x1f8d62;_0x15acde['hasShortcut']=!![],_0xbeadc5['shortcuts'][_0x177816(0x1954)](_0x15acde),_0xbeadc5['saveShortcuts']();}function _0x30b5bd(_0x1cd19d){const _0x4de400=_0x1f8d62;_0x1cd19d[_0x4de400(0x145f)]=![];for(let _0x5414ad=0x0;_0x5414ad<_0xbeadc5[_0x4de400(0x823)][_0x4de400(0x1b9e)];_0x5414ad++){_0xbeadc5['shortcuts'][_0x5414ad][_0x4de400(0x1b78)]===_0x1cd19d['_id']&&(_0xbeadc5['shortcuts'][_0x4de400(0x18f0)](_0x5414ad,0x1),!_0xbeadc5['query']&&(_0xbeadc5[_0x4de400(0x823)]['length']===0x0?_0xbeadc5[_0x4de400(0x289c)]=null:_0x5414ad>=_0xbeadc5[_0x4de400(0x823)][_0x4de400(0x1b9e)]&&(_0xbeadc5[_0x4de400(0x7f1)]=_0xbeadc5[_0x4de400(0x823)][_0x4de400(0x1b9e)]-0x1)));}_0xbeadc5[_0x4de400(0x176e)]();}function _0x14da26(_0x30b5a1){const _0x4216d0=_0x1f8d62;_0x30b5a1[_0x4216d0(0x145f)]?_0xbeadc5['removeShortcut'](_0x30b5a1):_0xbeadc5[_0x4216d0(0x86a)](_0x30b5a1);}function _0x374deb(_0x421acd){_0x421acd['preventDefault']();}function _0xba2c25(_0x4bff38){const _0x21571a=_0x1f8d62,_0x3c82c2=_0x4bff38[_0x21571a(0x11b7)],_0x2be1dc=[0x26,0x28];_0x2be1dc['indexOf'](_0x3c82c2)>-0x1&&_0x4bff38['preventDefault']();switch(_0x3c82c2){case 0xd:_0xbeadc5[_0x21571a(0x1d3)](_0xbeadc5[_0x21571a(0x289c)][_0xbeadc5['selectedResultIndex']]);break;case 0x26:_0xbeadc5[_0x21571a(0x7f1)]-0x1>=0x0&&(_0xbeadc5[_0x21571a(0x7f1)]--,_0xbeadc5[_0x21571a(0x13dc)]());break;case 0x28:_0xbeadc5['selectedResultIndex']+0x1<_0xbeadc5[_0x21571a(0x289c)][_0x21571a(0x1b9e)]&&(_0xbeadc5['selectedResultIndex']++,_0xbeadc5['ensureSelectedResultIsVisible']());break;default:break;}}function _0x2aba1a(_0x5f0df4){const _0x383848=_0x1f8d62;if(_0xbeadc5[_0x383848(0x1926)])return;_0xbeadc5['selectedResultIndex']=_0x5f0df4;}function _0x22d378(){const _0x381542=_0x1f8d62;_0xbeadc5['ignoreMouseEvents']=!![],_0x106c88[_0x381542(0x101a)](_0xbeadc5[_0x381542(0xd6f)]),_0xbeadc5['mouseEventIgnoreTimeout']=_0x106c88(function(){const _0x5aea85=_0x381542;_0xbeadc5[_0x5aea85(0x1926)]=![];},0xfa);}function _0x329eaf(){const _0x168d5b=_0x1f8d62,_0x402db2=_0x1ea7d0[_0x168d5b(0x27bc)]('#ms-shortcut-add-menu')['find'](_0x168d5b(0x22e2)),_0x1a95ec=angular[_0x168d5b(0x1f81)](_0x402db2[_0x168d5b(0x27bc)](_0x168d5b(0x601))[_0xbeadc5[_0x168d5b(0x7f1)]]);if(_0x402db2&&_0x1a95ec){const _0x3536b4=_0x1a95ec[_0x168d5b(0x14f7)]()[_0x168d5b(0x2155)]-0x8,_0x41eeb1=_0x1a95ec[_0x168d5b(0x14f7)]()[_0x168d5b(0x2155)]+_0x1a95ec[_0x168d5b(0x1ed8)]()+0x8;_0xbeadc5['temporarilyIgnoreMouseEvents'](),_0x402db2[_0x168d5b(0x12c8)]()>_0x3536b4&&_0x402db2[_0x168d5b(0x12c8)](_0x3536b4),_0x41eeb1>_0x402db2[_0x168d5b(0x1c73)]()+_0x402db2[_0x168d5b(0x12c8)]()&&_0x402db2['scrollTop'](_0x41eeb1-_0x402db2['height']());}}function _0x370d1c(){const _0x33ec90=_0x1f8d62;_0xbeadc5[_0x33ec90(0x1a37)]=!_0xbeadc5[_0x33ec90(0x1a37)];}_0xbeadc5[_0x1f8d62(0x254f)]=_0x1ca7f2,_0xbeadc5[_0x1f8d62(0xb31)]=_0x2dfcb1,_0xbeadc5[_0x1f8d62(0x176e)]=_0x3ed625,_0xbeadc5['addShortcut']=_0x5195d0,_0xbeadc5[_0x1f8d62(0xe95)]=_0x30b5bd,_0xbeadc5[_0x1f8d62(0x1d3)]=_0x14da26,_0xbeadc5['absorbEvent']=_0x374deb,_0xbeadc5[_0x1f8d62(0x257e)]=_0xba2c25,_0xbeadc5[_0x1f8d62(0x1263)]=_0x2aba1a,_0xbeadc5[_0x1f8d62(0x27d0)]=_0x22d378,_0xbeadc5['ensureSelectedResultIsVisible']=_0x329eaf,_0xbeadc5[_0x1f8d62(0x10c)]=_0x370d1c,_0x10ac7c();}function _0x542469(){const _0x3ae069=_0x49a1e3;return{'restrict':'E','scope':{},'require':_0x3ae069(0x2659),'controller':_0x3ae069(0x997),'bindToController':{},'templateUrl':_0x572e3b,'compile':function(_0x2f188b){const _0x23c17d=_0x3ae069;return _0x2f188b[_0x23c17d(0xb6f)]('ms-shortcuts'),function _0x55c730(){};}};};function _0x3d4b94(){const _0x35fcd0=_0x49a1e3;return{'restrict':'A','require':_0x35fcd0(0x1ec4),'link':function(_0x4f5671,_0x5e1268,_0x5c7a47,_0x4395d6){const _0x17a960=_0x35fcd0;_0x4f5671[_0x17a960(0xc62)](function(){const _0x3fdb40=_0x17a960;return _0x4395d6[_0x3fdb40(0x41c)]()&&!_0x4395d6[_0x3fdb40(0x1415)]();},function(_0x562c0d){const _0x3d0783=_0x17a960;if(angular[_0x3d0783(0x1a01)](_0x562c0d))return;_0x5e1268['parent']()[_0x3d0783(0x6fa)](_0x3d0783(0x1ad1),_0x562c0d),angular[_0x3d0783(0x1f81)](_0x3d0783(0x1dd2))['toggleClass'](_0x3d0783(0x298a),_0x562c0d);});}};}const _0x1df996=_0x3d4b94;;_0x117f8b[_0x49a1e3(0x1e73)]=['$animate'];function _0x117f8b(_0x2b380d){return{'restrict':'E','link':function(_0x41ab0f,_0x58cf84){const _0x1234ea=a0_0x4127,_0x8b3e57=_0x41ab0f[_0x1234ea(0x8c7)](_0x1234ea(0x1074),function(){const _0x52d5bd=_0x1234ea;_0x2b380d[_0x52d5bd(0x27c5)](_0x58cf84)[_0x52d5bd(0x64a)](function(){_0x8b3e57(),_0x41ab0f=null,_0x58cf84=null;});});}};}const _0x59c577=_0x117f8b;;const _0x5b76f7=_0x2e4a48['p']+_0x49a1e3(0x1751);;const _0x453932=_0x2e4a48['p']+_0x49a1e3(0x1227);;const _0x3b2473=_0x2e4a48['p']+_0x49a1e3(0x9c9);;_0x3eb0e1['$inject']=[_0x49a1e3(0x20d4)],_0x26e69d[_0x49a1e3(0x1e73)]=['$timeout'];function _0x26e69d(_0x85e698){const _0x3f1c03=_0x49a1e3,_0xe0f1ad=this;_0xe0f1ad[_0x3f1c03(0x27f0)]=undefined,_0xe0f1ad[_0x3f1c03(0x5be)]='horizontal',_0xe0f1ad[_0x3f1c03(0x25e4)]=[],_0xe0f1ad[_0x3f1c03(0x1ef9)]=undefined,_0xe0f1ad[_0x3f1c03(0x2425)]=0x1;function _0x3e4631(_0x2d2b22){const _0x3af4f5=_0x3f1c03;return!(angular[_0x3af4f5(0x1a01)](_0x2d2b22)||_0x2d2b22<0x1||_0x2d2b22>_0xe0f1ad[_0x3af4f5(0x25e4)][_0x3af4f5(0x1b9e)]);}function _0x273e51(_0x1ac391){const _0x181284=_0x3f1c03;_0xe0f1ad[_0x181284(0x5be)]=_0x1ac391||_0x181284(0x2343);}function _0x357f2f(_0x5e228a){const _0x14b0f2=_0x3f1c03;_0xe0f1ad[_0x14b0f2(0x27f0)]=_0x5e228a;}function _0x1953a6(){const _0xaa0c7a=_0x3f1c03;_0xe0f1ad[_0xaa0c7a(0x11ed)](0x1);}function _0x5aa7ca(_0x48c476){const _0x19af41=_0x3f1c03;if(!_0x3e4631(_0x48c476))return null;return!!_0xe0f1ad['steps'][_0x48c476-0x1]['scope'][_0x19af41(0x2619)];}function _0x4cb5e6(_0x22319b,_0x487307,_0x56e31e){const _0xfc876a=_0x3f1c03,_0x4b79c5={'element':_0x22319b,'scope':_0x487307,'form':_0x56e31e,'stepNumber':_0x487307[_0xfc876a(0x1d6)]||_0xe0f1ad[_0xfc876a(0x25e4)][_0xfc876a(0x1b9e)]+0x1,'stepTitle':_0x487307[_0xfc876a(0x4c0)],'stepTitleTranslate':_0x487307['stepTitleTranslate']};return _0xe0f1ad[_0xfc876a(0x25e4)][_0xfc876a(0x1954)](_0x4b79c5),_0xe0f1ad[_0xfc876a(0x25e4)]['sort'](function(_0x36dc62,_0x2e05c4){const _0x3884bb=_0xfc876a;return _0x36dc62[_0x3884bb(0x1513)]-_0x2e05c4[_0x3884bb(0x1513)];}),_0x4b79c5;}function _0x6ebc33(){const _0x168099=_0x3f1c03;_0xe0f1ad[_0x168099(0x11ed)](_0xe0f1ad[_0x168099(0x2425)]);}function _0x93c1d2(){_0x85e698(function(){const _0x407a2e=a0_0x4127;for(let _0x22765e=0x0;_0x22765e<_0xe0f1ad['steps'][_0x407a2e(0x1b9e)];_0x22765e++){_0xe0f1ad[_0x407a2e(0x25e4)][_0x22765e][_0x407a2e(0x14e6)]['$setPristine'](),_0xe0f1ad[_0x407a2e(0x25e4)][_0x22765e][_0x407a2e(0x14e6)][_0x407a2e(0x18e0)]();}_0xe0f1ad[_0x407a2e(0x27f0)][_0x407a2e(0x271f)](),_0xe0f1ad[_0x407a2e(0x27f0)]['$setUntouched'](),_0x1953a6();});}function _0x3331e2(_0x3e1e0c){const _0x4b925b=_0x3f1c03;if(!_0x3e4631(_0x3e1e0c))return;_0xe0f1ad[_0x4b925b(0x2425)]=_0x3e1e0c;if(_0xe0f1ad[_0x4b925b(0x5be)]==='horizontal'){for(let _0x586039=0x0;_0x586039<_0xe0f1ad['steps']['length'];_0x586039++){_0xe0f1ad[_0x4b925b(0x25e4)][_0x586039][_0x4b925b(0x1f81)][_0x4b925b(0x268e)]();}_0xe0f1ad[_0x4b925b(0x25e4)][_0xe0f1ad[_0x4b925b(0x2425)]-0x1][_0x4b925b(0x1f81)][_0x4b925b(0xa60)]();}else{if(_0xe0f1ad[_0x4b925b(0x5be)]===_0x4b925b(0xd9f)){for(let _0x3a2003=0x0;_0x3a2003<_0xe0f1ad['steps'][_0x4b925b(0x1b9e)];_0x3a2003++){_0xe0f1ad[_0x4b925b(0x25e4)][_0x3a2003][_0x4b925b(0x1f81)][_0x4b925b(0x27bc)](_0x4b925b(0x21ae))['hide']();}_0xe0f1ad[_0x4b925b(0x25e4)][_0xe0f1ad[_0x4b925b(0x2425)]-0x1][_0x4b925b(0x1f81)][_0x4b925b(0x27bc)](_0x4b925b(0x21ae))[_0x4b925b(0xa60)]();}}}function _0xec0910(_0x53ac4e){const _0x3f4dcd=_0x3f1c03;if(_0x5aa7ca(_0x53ac4e))return;_0xe0f1ad[_0x3f4dcd(0x11ed)](_0x53ac4e);}function _0x47ac00(){const _0x11024e=_0x3f1c03;let _0x22f48a=_0xe0f1ad[_0x11024e(0x2425)]-0x1;for(let _0x20e182=_0x22f48a;_0x20e182>=0x1;_0x20e182--){if(!_0x5aa7ca(_0x20e182)){_0x22f48a=_0x20e182;break;}}_0xe0f1ad[_0x11024e(0x11ed)](_0x22f48a);}function _0x52edac(){const _0xacec6f=_0x3f1c03;let _0x40809a=_0xe0f1ad[_0xacec6f(0x2425)]+0x1;for(let _0x23784a=_0x40809a;_0x23784a<=_0xe0f1ad[_0xacec6f(0x25e4)][_0xacec6f(0x1b9e)];_0x23784a++){if(!_0x5aa7ca(_0x23784a)){_0x40809a=_0x23784a;break;}}_0xe0f1ad['setCurrentStep'](_0x40809a);}function _0x13f3c7(){const _0x512f54=_0x3f1c03;_0xe0f1ad[_0x512f54(0x11ed)](_0xe0f1ad[_0x512f54(0x25e4)][_0x512f54(0x1b9e)]);}function _0x38a3cc(){const _0x2e6e04=_0x3f1c03;return _0xe0f1ad[_0x2e6e04(0x2425)]===0x1;}function _0x2aed37(){const _0x43ed98=_0x3f1c03;return _0xe0f1ad[_0x43ed98(0x2425)]===_0xe0f1ad[_0x43ed98(0x25e4)][_0x43ed98(0x1b9e)];}function _0x3bc678(_0x2181d6){if(!_0x3e4631(_0x2181d6))return null;return _0xe0f1ad['currentStepNumber']===_0x2181d6;}function _0x160a4f(_0x18b986){const _0x5bb349=_0x3f1c03;if(!_0x3e4631(_0x18b986))return null;return _0xe0f1ad[_0x5bb349(0x25e4)][_0x18b986-0x1][_0x5bb349(0x88a)][_0x5bb349(0x1024)];}function _0x3d7784(_0x4dc659){const _0x1d0061=_0x3f1c03;if(!_0x3e4631(_0x4dc659))return null;if(_0x160a4f(_0x4dc659))return!![];return _0xe0f1ad[_0x1d0061(0x25e4)][_0x4dc659-0x1]['form']['$valid'];}function _0x156e81(_0x2bb76e){if(!_0x3e4631(_0x2bb76e))return null;let _0x48061f=![];for(let _0x2d1acf=0x1;_0x2d1acf<_0x2bb76e;_0x2d1acf++){if(!_0x3d7784(_0x2d1acf)){_0x48061f=!![];break;}}return _0x48061f;}function _0x2fc089(_0x450620){const _0x5e5071=_0x3f1c03;return!_0x5aa7ca(_0x450620[_0x5e5071(0x1513)]);}function _0xb6e542(){const _0x12020f=_0x3f1c03;return _0xe0f1ad[_0x12020f(0x27f0)][_0x12020f(0x238e)];}_0xe0f1ad[_0x3f1c03(0x1f5b)]=_0x273e51,_0xe0f1ad['registerMainForm']=_0x357f2f,_0xe0f1ad[_0x3f1c03(0x2369)]=_0x4cb5e6,_0xe0f1ad[_0x3f1c03(0x1bda)]=_0x6ebc33,_0xe0f1ad[_0x3f1c03(0x2557)]=_0x93c1d2,_0xe0f1ad[_0x3f1c03(0x11ed)]=_0x3331e2,_0xe0f1ad['gotoStep']=_0xec0910,_0xe0f1ad[_0x3f1c03(0x71c)]=_0x47ac00,_0xe0f1ad[_0x3f1c03(0x23c9)]=_0x52edac,_0xe0f1ad[_0x3f1c03(0xa16)]=_0x1953a6,_0xe0f1ad['gotoLastStep']=_0x13f3c7,_0xe0f1ad['isFirstStep']=_0x38a3cc,_0xe0f1ad[_0x3f1c03(0x2308)]=_0x2aed37,_0xe0f1ad[_0x3f1c03(0xdf0)]=_0x3bc678,_0xe0f1ad['isStepDisabled']=_0x156e81,_0xe0f1ad['isStepOptional']=_0x160a4f,_0xe0f1ad[_0x3f1c03(0x1ba)]=_0x5aa7ca,_0xe0f1ad[_0x3f1c03(0x1fa)]=_0x2fc089,_0xe0f1ad[_0x3f1c03(0x12c4)]=_0x3d7784,_0xe0f1ad['isStepNumberValid']=_0x3e4631,_0xe0f1ad[_0x3f1c03(0x2335)]=_0xb6e542;}function _0xafa06d(){const _0x126001=_0x49a1e3;return{'restrict':'A','scope':{},'require':[_0x126001(0x14e6),_0x126001(0x1f69)],'priority':0x3e9,'controller':'MsStepperController\x20as\x20MsStepper','bindToController':{'model':'=ngModel'},'transclude':!![],'templateUrl':_0x5b76f7,'compile':function(_0x574728){const _0x3712b3=_0x126001;return _0x574728[_0x3712b3(0xb6f)](_0x3712b3(0x281f)),function _0x61a1a3(_0x1f5576,_0x12eea6,_0x477e3e,_0x21d329){const _0x5735e1=_0x3712b3,_0xae40f1=_0x21d329[0x0],_0x5783b6=_0x21d329[0x1];_0x5783b6['setOrientation'](_0x5735e1(0x2343)),_0x5783b6['registerMainForm'](_0xae40f1),_0x5783b6[_0x5735e1(0x1bda)]();};}};}function _0x2c3448(){const _0x46a30a=_0x49a1e3;return{'restrict':'E','require':[_0x46a30a(0x14e6),_0x46a30a(0x774)],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'compile':function(_0x3d89c1){const _0x52554a=_0x46a30a;return _0x3d89c1['addClass'](_0x52554a(0x187f)),function _0x3c0bff(_0x1db0b5,_0x1007f3,_0x179415,_0x2803fb){const _0x350d36=_0x52554a,_0x7e3553=_0x2803fb[0x0],_0x1ba909=_0x2803fb[0x1];_0x1db0b5[_0x350d36(0x1024)]=angular['isDefined'](_0x179415[_0x350d36(0x1024)]),_0x1ba909[_0x350d36(0x2369)](_0x1007f3,_0x1db0b5,_0x7e3553),_0x1007f3[_0x350d36(0x268e)]();};}};}function _0x3eb0e1(_0x2333ae){const _0x3065c9=_0x49a1e3;return{'restrict':'A','scope':{},'require':[_0x3065c9(0x14e6),_0x3065c9(0x57a)],'priority':0x3e9,'controller':'MsStepperController\x20as\x20MsStepper','bindToController':{'model':_0x3065c9(0x2480)},'transclude':!![],'templateUrl':_0x453932,'compile':function(_0x1abd63){const _0x504d21=_0x3065c9;return _0x1abd63[_0x504d21(0xb6f)](_0x504d21(0x281f)),function _0x5ea360(_0x446e39,_0x26a8f3,_0x1b999e,_0x1fdef6){const _0x4bdf2b=_0x1fdef6[0x0],_0x112b39=_0x1fdef6[0x1];_0x2333ae(function(){const _0x58283a=a0_0x4127;_0x112b39[_0x58283a(0x1f5b)](_0x58283a(0xd9f)),_0x112b39[_0x58283a(0x81d)](_0x4bdf2b),_0x112b39[_0x58283a(0x1bda)]();});};}};}function _0x2a9a22(){const _0x579da3=_0x49a1e3;return{'restrict':'E','require':[_0x579da3(0x14e6),_0x579da3(0x193e)],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'transclude':!![],'templateUrl':-_0x3b2473,'compile':function(_0x2b76af){const _0x39c27f=_0x579da3;return _0x2b76af[_0x39c27f(0xb6f)]('ms-stepper-step'),function _0x22c8b1(_0x581576,_0x479ad6,_0x232607,_0x45080f){const _0x38f770=_0x39c27f,_0x31cfb6=_0x45080f[0x0],_0x189e24=_0x45080f[0x1];_0x581576[_0x38f770(0x1024)]=angular[_0x38f770(0x16ab)](_0x232607[_0x38f770(0x1024)]),_0x581576[_0x38f770(0xe0f)]=_0x189e24[_0x38f770(0x2369)](_0x479ad6,_0x581576,_0x31cfb6),_0x581576[_0x38f770(0x1b99)]=_0x189e24,_0x479ad6[_0x38f770(0x27bc)](_0x38f770(0x21ae))[_0x38f770(0x268e)]();};}};};const _0x5bd478=_0x2e4a48['p']+_0x49a1e3(0x223d);;function _0x3b4e8b(){const _0x46547a=_0x49a1e3,_0x5be6a4=this;_0x5be6a4[_0x46547a(0x2290)]=_0x4f2a0d,_0x5be6a4[_0x46547a(0xc3e)]=_0x2b2435;function _0x4f2a0d(_0xf04fd2){const _0x548887=_0x46547a;_0xf04fd2==_0x548887(0x118f)?$(_0x548887(0x216d))[_0x548887(0x924)]()[_0x548887(0x1e47)]({'scrollLeft':_0x548887(0x1bc0)},0x3e8):$(_0x548887(0x216d))[_0x548887(0x924)]()['animate']({'scrollLeft':_0x548887(0xb34)},0x3e8);}function _0x2b2435(_0x1fc256){const _0x2addca=_0x46547a;switch(_0x4937c7()){case _0x2addca(0x1d12):return!![];case _0x2addca(0x118f):return _0x1fc256=='left'?!![]:![];case _0x2addca(0x15d7):return _0x1fc256==_0x2addca(0x15d7)?!![]:![];case'none':return![];default:return![];}}function _0x4937c7(){const _0x31f591=_0x46547a,_0x3868fc=document[_0x31f591(0x1143)](_0x31f591(0x1ae8)),_0x417e78=document[_0x31f591(0x1143)](_0x31f591(0xdb8));if(_0x417e78[_0x31f591(0x17f)]>_0x3868fc[_0x31f591(0x17f)]&&_0x3868fc['scrollLeft']==0x0&&_0x417e78[_0x31f591(0x4e7)]==0x0)return _0x31f591(0x15d7);else{if(_0x417e78['scrollWidth']>_0x3868fc[_0x31f591(0x17f)]&&_0x417e78[_0x31f591(0x4e7)]>_0x3868fc[_0x31f591(0x4e7)]&&_0x3868fc[_0x31f591(0x17f)]+_0x417e78[_0x31f591(0x4e7)]>=_0x417e78[_0x31f591(0x17f)])return _0x31f591(0x118f);else return _0x417e78['scrollWidth']>_0x3868fc['scrollWidth']&&_0x417e78[_0x31f591(0x4e7)]>_0x3868fc[_0x31f591(0x4e7)]&&_0x3868fc[_0x31f591(0x17f)]+_0x417e78[_0x31f591(0x4e7)]<_0x417e78[_0x31f591(0x17f)]?_0x31f591(0x1d12):_0x31f591(0x2507);}}}function _0x23aa12(){const _0x216203=_0x49a1e3;return{'restrict':'E','scope':{},'transclude':!![],'controller':_0x216203(0x953),'controllerAs':'vm','bindToController':!![],'templateUrl':_0x5bd478,'compile':function(_0x49b7b2){const _0x1ac173=_0x216203;return _0x49b7b2[_0x1ac173(0xb6f)]('ms-tab-scroll'),function _0x538529(){};}};};_0x415f8c[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20d4),'$q'];function _0x221e1c(){const _0x22240a=_0x49a1e3,_0x1836f5=this;_0x1836f5[_0x22240a(0x102d)]=undefined,_0x1836f5[_0x22240a(0x2450)]=_0x5e326c,_0x1836f5[_0x22240a(0xa79)]=_0x5edd86;function _0x5e326c(_0x1644ff){const _0x2b0385=_0x22240a;_0x1836f5[_0x2b0385(0x102d)]=_0x1644ff;}function _0x5edd86(){const _0x26ffea=_0x22240a;return _0x1836f5[_0x26ffea(0x102d)];}}function _0x4eef9f(){const _0x2e75c2=_0x49a1e3;return{'scope':{'msTimeline':'=?','loadMore':_0x2e75c2(0x25d5)},'controller':'MsTimelineController','compile':function(_0x1b4985){const _0x452cb7=_0x2e75c2;return _0x1b4985[_0x452cb7(0xb6f)](_0x452cb7(0xa6d)),function _0x496eb0(_0x3740d8,_0x3680bf,_0x4fb5e,_0x4728a8){const _0x4a6ef7=_0x452cb7,_0x5442fe=angular['element'](_0x4a6ef7(0x16ce));_0x3680bf['append'](_0x5442fe);let _0x68ee88={'scrollEl':_0x4a6ef7(0x24d3)};_0x68ee88=angular[_0x4a6ef7(0x1c69)](_0x68ee88,_0x3740d8[_0x4a6ef7(0x2750)],{});const _0x18a2af=angular['element'](_0x68ee88[_0x4a6ef7(0x102d)]);_0x4728a8[_0x4a6ef7(0x2450)](_0x18a2af);const _0x5e002d=0x90;_0x266c38();function _0x6fb2bb(){const _0x4eb838=_0x4a6ef7;_0x18a2af[_0x4eb838(0x12c8)]()+_0x18a2af[_0x4eb838(0x1c73)]()+_0x5e002d>_0x5442fe['position']()[_0x4eb838(0x2155)]&&(_0x5442fe['addClass'](_0x4eb838(0xa60)),_0x5408e3(),_0x3740d8[_0x4eb838(0x488)]()[_0x4eb838(0x64a)](function(){const _0x55f004=_0x4eb838;_0x5442fe[_0x55f004(0x12b3)](_0x55f004(0xa60)),_0x266c38();},function(){const _0x3c59b3=_0x4eb838;_0x5442fe[_0x3c59b3(0x21c7)]();}));}function _0x266c38(){const _0x4983d3=_0x4a6ef7;_0x18a2af['on'](_0x4983d3(0x13fd),_0x6fb2bb);}function _0x5408e3(){const _0x3b4f8b=_0x4a6ef7;_0x18a2af[_0x3b4f8b(0x414)](_0x3b4f8b(0x13fd),_0x6fb2bb);}_0x3740d8[_0x4a6ef7(0x8c7)](_0x4a6ef7(0xf28),function(){_0x5408e3();});};}};}function _0x415f8c(_0x12f747,_0x33dee5){const _0x2298ab=_0x49a1e3;return{'scope':!![],'require':_0x2298ab(0x12f7),'compile':function(_0x40f815){const _0x15aa9c=_0x2298ab;return _0x40f815[_0x15aa9c(0xb6f)]('ms-timeline-item')['addClass'](_0x15aa9c(0x2d5)),function _0x34e2e5(_0x3cb18a,_0x2d8d9c,_0x155312,_0x2c9839){const _0x597c5c=_0x15aa9c,_0x2ae944=0x48;let _0x3f4c50=![],_0x3bb893=![];const _0x377d96=_0x2c9839[_0x597c5c(0xa79)]();_0xc5afcf();function _0xc5afcf(){const _0x33d58=_0x597c5c;_0x2d8d9c[_0x33d58(0x27bc)](_0x33d58(0x1077))?_0x3cb18a[_0x33d58(0x8c7)](_0x33d58(0x576),function(_0x1385aa,_0x25d661){const _0xf7eac3=_0x33d58,_0xe25513=angular[_0xf7eac3(0x1f81)](_0x25d661[0x0]);_0x461900(_0xe25513)[_0xf7eac3(0x64a)](function(){_0x12f747(function(){_0x3f4c50=!![];});});}):_0x461900(_0x2d8d9c)['then'](function(){_0x12f747(function(){_0x3f4c50=!![];});}),_0x377d96['on'](_0x33d58(0x13fd),_0x22f6c3),_0x22f6c3();}const _0x5b5135=_0x3cb18a[_0x597c5c(0xc62)](function(){return _0x3f4c50&&_0x3bb893;},function(_0x5c6311,_0x1861ee){const _0x51d57b=_0x597c5c;if(angular['equals'](_0x5c6311,_0x1861ee))return;_0x5c6311&&(_0x2d8d9c[_0x51d57b(0x12b3)](_0x51d57b(0x2d5))[_0x51d57b(0xb6f)](_0x51d57b(0x1e47)),_0x5b5135());},!![]);function _0x461900(_0x3d9a57){const _0x234c27=_0x597c5c,_0x22eff5=_0x33dee5[_0x234c27(0x122)](),_0x1d4e16=_0x3d9a57[_0x234c27(0x27bc)](_0x234c27(0xf1d));return _0x1d4e16['length']>0x0?_0x1d4e16['on'](_0x234c27(0x2789),function(){const _0xc37df9=_0x234c27;_0x22eff5[_0xc37df9(0x1268)](_0xc37df9(0x1e11));}):_0x22eff5[_0x234c27(0x1268)](_0x234c27(0x193c)),_0x22eff5['promise'];}function _0x22f6c3(){const _0x5a1a7a=_0x597c5c;_0x377d96[_0x5a1a7a(0x12c8)]()+_0x377d96[_0x5a1a7a(0x1c73)]()>_0x2d8d9c[_0x5a1a7a(0x14f7)]()[_0x5a1a7a(0x2155)]+_0x2ae944&&(_0x12f747(function(){_0x3bb893=!![];}),_0x377d96['off'](_0x5a1a7a(0x13fd),_0x22f6c3));}};}};};_0xc5705d[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$element','$q',_0x49a1e3(0xa19),_0x49a1e3(0x680)];function _0xc5705d(_0x66891,_0x86cacb,_0x9e0958,_0x5e2db9,_0x4f38f1){const _0x3779a9=_0x49a1e3,_0x43b091=this;function _0x1e1857(){const _0x48f85c=a0_0x4127;_0x43b091[_0x48f85c(0x108e)]=_0x12afda()[_0x48f85c(0x2a5)](_0x2ac33a()(_0x43b091[_0x48f85c(0xa83)]));const _0x4332b6=_0x2ac33a()[_0x48f85c(0xb77)](_0x43b091['millis']),_0x543b0d=_0x4332b6[_0x48f85c(0x15a2)](),_0x471633=_0x4332b6[_0x48f85c(0xef9)](),_0x54e380=_0x4332b6[_0x48f85c(0x19b1)](),_0xb09af7=_0x4332b6[_0x48f85c(0x19d1)](),_0x466173=_0x4332b6[_0x48f85c(0x5e9)](),_0xfa5e3e=_0x4332b6['years']();_0x43b091['seconds']=_0x543b0d<0xa?'0'+_0x543b0d:_0x543b0d,_0x43b091[_0x48f85c(0xef9)]=_0x471633<0xa?'0'+_0x471633:_0x471633,_0x43b091[_0x48f85c(0x19b1)]=_0x54e380<0xa?'0'+_0x54e380:_0x54e380,_0x43b091[_0x48f85c(0x19d1)]=_0xb09af7<0xa?'0'+_0xb09af7:_0xb09af7,_0x43b091[_0x48f85c(0x5e9)]=_0x466173<0xa?'0'+_0x466173:_0x466173,_0x43b091[_0x48f85c(0xf90)]=_0xfa5e3e<0xa?'0'+_0xfa5e3e:_0xfa5e3e,_0x43b091[_0x48f85c(0xad6)]=_0x43b091[_0x48f85c(0x19d1)]>0x0?_0x43b091['days']+'d\x20':''+_0x43b091['hours']+':'+_0x43b091['minutes']+':'+_0x43b091['seconds'];}function _0x2f70e4(){const _0x928ab4=a0_0x4127;_0x1e1857(),_0x43b091['timeoutId']=setTimeout(function(){const _0x11a199=a0_0x4127;_0x2f70e4(),_0x66891[_0x11a199(0x18c7)]();},_0x43b091[_0x928ab4(0xcfd)]);}function _0x12afda(_0x42b2d6){const _0x593dff=a0_0x4127,_0x1b7c72=_0x42b2d6||_0x2ac33a()(),_0x115ae8=_0x1b7c72['utcOffset'](_0x66891[_0x593dff(0x94a)])[_0x593dff(0x1c2c)](_0x593dff(0x5f7));return _0x2ac33a()(_0x115ae8);}function _0x4f8978(){return _0x9e0958(function(_0xa6bdf9,_0x3a4878){const _0x53009f=a0_0x4127;try{if(_0x66891['serverDateOffset']){_0xa6bdf9(_0x12afda());return;}_0x5e2db9[_0x53009f(0x28d6)][_0x53009f(0x24e)]()[_0x53009f(0x15e7)][_0x53009f(0x64a)](function(_0x49a8cb){const _0xd4a7f=_0x53009f;_0x66891[_0xd4a7f(0x94a)]=_0x49a8cb[_0xd4a7f(0x24f9)],_0xa6bdf9(_0x2ac33a()(_0x49a8cb['now']));return;});}catch(_0x2e1daf){_0x3a4878(_0x2e1daf);}});}function _0x372a9a(){const _0x3a4833=a0_0x4127;_0x4f8978()['then'](function(_0x224a0f){const _0x3d371c=a0_0x4127,_0x2add22=_0x43b091[_0x3d371c(0x1918)]?_0x2ac33a()(_0x43b091[_0x3d371c(0x1918)]):undefined;if(!_0x43b091[_0x3d371c(0x1918)])_0x43b091['startingTime']=_0x224a0f;else _0x2add22['isAfter'](_0x224a0f,'hour')||_0x2add22[_0x3d371c(0x199)](_0x224a0f,_0x3d371c(0xf7c))?_0x43b091[_0x3d371c(0xa83)]=_0x12afda(_0x2add22):_0x43b091[_0x3d371c(0xa83)]=_0x2add22;_0x2f70e4();})[_0x3a4833(0x20cd)](function(_0x5ccfec){const _0x175c49=_0x3a4833;_0x4f38f1[_0x175c49(0x1bd0)]({'title':_0x5ccfec[_0x175c49(0x10b3)]?_0x175c49(0x575)+_0x5ccfec['status']+_0x175c49(0x21db)+_0x5ccfec[_0x175c49(0x2115)]:_0x175c49(0x3d8),'msg':_0x5ccfec[_0x175c49(0x1c52)]?JSON[_0x175c49(0x2317)](_0x5ccfec[_0x175c49(0x1c52)][_0x175c49(0x18ca)]):_0x5ccfec['toString']()});});}_0x372a9a(),_0x66891[_0x3779a9(0x8c7)](_0x3779a9(0x640),function(){const _0x3c7d11=_0x3779a9;_0x43b091[_0x3c7d11(0x1918)]=undefined,_0x372a9a();}),_0x86cacb['bind'](_0x3779a9(0xf28),function(){const _0x539ddb=_0x3779a9;if(_0x43b091[_0x539ddb(0xa22)])clearTimeout(_0x43b091['timeoutId']);});}function _0x39bb42(){return{'restrict':'EA','replace':![],'scope':{'startTime':'=?','interval':'=?'},'template':'{{\x20vm.timer\x20}}','compile':function(){return{'pre':function(_0x42d1f9,_0x4e8054,_0x43dc74){const _0xd7f37e=a0_0x4127;_0x42d1f9['interval']=_0x43dc74[_0xd7f37e(0xcfd)]||0x3e8;}};},'controller':_0xc5705d,'controllerAs':'vm','bindToController':!![]};};const _0x4d8cb4=_0x2e4a48['p']+_0x49a1e3(0x1d45);;function _0x45d1e3(){const _0x4c4097=_0x49a1e3;return{'restrict':'E','scope':{'ngModel':'='},'controller':[_0x4c4097(0x1674),function(_0xc5de8a){const _0xd610b5=_0x4c4097;_0xc5de8a[_0xd610b5(0x3d5)]=[{'name':'Europe/Andorra','utcOffset':0x3c,'offsetStr':'+01:00','countries':['AD']},{'name':'Asia/Dubai','utcOffset':0xf0,'offsetStr':_0xd610b5(0x1fec),'countries':['AE','OM']},{'name':_0xd610b5(0x2770),'utcOffset':0x10e,'offsetStr':_0xd610b5(0x378),'countries':['AF']},{'name':_0xd610b5(0xee4),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['AL']},{'name':_0xd610b5(0x10fd),'utcOffset':0xf0,'offsetStr':_0xd610b5(0x1fec),'countries':['AM']},{'name':_0xd610b5(0x1d56),'utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['AQ']},{'name':'Antarctica/Palmer','utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['AQ']},{'name':_0xd610b5(0x9f2),'utcOffset':0x12c,'offsetStr':_0xd610b5(0x2541),'countries':['AQ']},{'name':_0xd610b5(0x1fb4),'utcOffset':0x1a4,'offsetStr':_0xd610b5(0x1a80),'countries':['AQ']},{'name':'Antarctica/Casey','utcOffset':0x1e0,'offsetStr':_0xd610b5(0xac2),'countries':['AQ']},{'name':_0xd610b5(0x7e3),'utcOffset':0x168,'offsetStr':_0xd610b5(0x1764),'countries':['AQ']},{'name':_0xd610b5(0x1b2d),'utcOffset':0x258,'offsetStr':_0xd610b5(0x7f4),'countries':['AQ']},{'name':_0xd610b5(0x679),'utcOffset':0xb4,'offsetStr':_0xd610b5(0x28fd),'countries':['AQ']},{'name':_0xd610b5(0x2cd),'utcOffset':0x0,'offsetStr':_0xd610b5(0x1ff4),'countries':['AQ']},{'name':'America/Argentina/Buenos_Aires','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':'America/Argentina/Cordoba','utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['AR']},{'name':_0xd610b5(0x26d7),'utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['AR']},{'name':_0xd610b5(0x1a4d),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':'America/Argentina/Tucuman','utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['AR']},{'name':_0xd610b5(0x2538),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':'America/Argentina/La_Rioja','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':'America/Argentina/San_Juan','utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['AR']},{'name':'America/Argentina/Mendoza','utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['AR']},{'name':_0xd610b5(0x16fc),'utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['AR']},{'name':_0xd610b5(0x190a),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0xd610b5(0x2360),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0xd610b5(0x11df),'utcOffset':-0x294,'offsetStr':_0xd610b5(0x22e9),'countries':['AS','UM']},{'name':_0xd610b5(0x8d3),'utcOffset':0x3c,'offsetStr':_0xd610b5(0x27ac),'countries':['AT']},{'name':'Australia/Lord_Howe','utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},{'name':_0xd610b5(0xc6e),'utcOffset':0x294,'offsetStr':_0xd610b5(0x10ed),'countries':['AU']},{'name':_0xd610b5(0x19a0),'utcOffset':0x294,'offsetStr':_0xd610b5(0x10ed),'countries':['AU']},{'name':_0xd610b5(0x1cc3),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},{'name':_0xd610b5(0x1922),'utcOffset':0x294,'offsetStr':_0xd610b5(0x10ed),'countries':['AU']},{'name':_0xd610b5(0x22c4),'utcOffset':0x294,'offsetStr':_0xd610b5(0x10ed),'countries':['AU']},{'name':_0xd610b5(0x274c),'utcOffset':0x276,'offsetStr':_0xd610b5(0x82e),'countries':['AU']},{'name':_0xd610b5(0x1ff7),'utcOffset':0x258,'offsetStr':_0xd610b5(0x7f4),'countries':['AU']},{'name':_0xd610b5(0x2522),'utcOffset':0x258,'offsetStr':_0xd610b5(0x7f4),'countries':['AU']},{'name':_0xd610b5(0x1416),'utcOffset':0x276,'offsetStr':'+10:30','countries':['AU']},{'name':_0xd610b5(0x106a),'utcOffset':0x23a,'offsetStr':'+09:30','countries':['AU']},{'name':_0xd610b5(0xcd2),'utcOffset':0x1e0,'offsetStr':_0xd610b5(0xac2),'countries':['AU']},{'name':_0xd610b5(0x22a9),'utcOffset':0x20d,'offsetStr':_0xd610b5(0x8c4),'countries':['AU']},{'name':'Asia/Baku','utcOffset':0xf0,'offsetStr':'+04:00','countries':['AZ']},{'name':_0xd610b5(0x1d23),'utcOffset':-0xf0,'offsetStr':_0xd610b5(0x1e88),'countries':['BB']},{'name':_0xd610b5(0x27a0),'utcOffset':0x168,'offsetStr':_0xd610b5(0x1764),'countries':['BD']},{'name':_0xd610b5(0x23fd),'utcOffset':0x3c,'offsetStr':_0xd610b5(0x27ac),'countries':['BE']},{'name':_0xd610b5(0x1446),'utcOffset':0x78,'offsetStr':'+02:00','countries':['BG']},{'name':_0xd610b5(0x167e),'utcOffset':-0xf0,'offsetStr':_0xd610b5(0x1e88),'countries':['BM']},{'name':_0xd610b5(0xcaf),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['BN']},{'name':_0xd610b5(0xa01),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BO']},{'name':_0xd610b5(0xbf5),'utcOffset':-0x78,'offsetStr':_0xd610b5(0x25d2),'countries':['BR']},{'name':'America/Belem','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0xd610b5(0x186f),'utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['BR']},{'name':_0xd610b5(0x21e0),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0xd610b5(0x18b5),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':'America/Maceio','utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['BR']},{'name':_0xd610b5(0x179f),'utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['BR']},{'name':_0xd610b5(0x1b7b),'utcOffset':-0x78,'offsetStr':'-02:00','countries':['BR']},{'name':_0xd610b5(0x1a84),'utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['BR']},{'name':'America/Cuiaba','utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['BR']},{'name':_0xd610b5(0x11b2),'utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['BR']},{'name':'America/Porto_Velho','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BR']},{'name':'America/Boa_Vista','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BR']},{'name':'America/Manaus','utcOffset':-0xf0,'offsetStr':_0xd610b5(0x1e88),'countries':['BR']},{'name':_0xd610b5(0xfda),'utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['BR']},{'name':_0xd610b5(0x173),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BR']},{'name':'America/Nassau','utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['BS']},{'name':_0xd610b5(0x8fb),'utcOffset':0x168,'offsetStr':'+06:00','countries':['BT']},{'name':_0xd610b5(0xde9),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['BY']},{'name':_0xd610b5(0x1017),'utcOffset':-0x168,'offsetStr':_0xd610b5(0x2558),'countries':['BZ']},{'name':'America/St_Johns','utcOffset':-0xd2,'offsetStr':_0xd610b5(0x203a),'countries':['CA']},{'name':_0xd610b5(0x285f),'utcOffset':-0xf0,'offsetStr':_0xd610b5(0x1e88),'countries':['CA']},{'name':_0xd610b5(0xe77),'utcOffset':-0xf0,'offsetStr':_0xd610b5(0x1e88),'countries':['CA']},{'name':_0xd610b5(0x2985),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},{'name':_0xd610b5(0x293),'utcOffset':-0xf0,'offsetStr':_0xd610b5(0x1e88),'countries':['CA']},{'name':_0xd610b5(0x418),'utcOffset':-0xf0,'offsetStr':_0xd610b5(0x1e88),'countries':['CA']},{'name':_0xd610b5(0xf99),'utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['CA']},{'name':_0xd610b5(0xfa6),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},{'name':_0xd610b5(0x15e9),'utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['CA']},{'name':_0xd610b5(0x1f82),'utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['CA']},{'name':_0xd610b5(0xa9c),'utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['CA']},{'name':_0xd610b5(0x1e12),'utcOffset':-0x168,'offsetStr':_0xd610b5(0x2558),'countries':['CA']},{'name':_0xd610b5(0x1ad4),'utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['CA']},{'name':_0xd610b5(0x10b7),'utcOffset':-0x168,'offsetStr':_0xd610b5(0x2558),'countries':['CA']},{'name':_0xd610b5(0x66d),'utcOffset':-0x168,'offsetStr':_0xd610b5(0x2558),'countries':['CA']},{'name':_0xd610b5(0x1518),'utcOffset':-0x168,'offsetStr':_0xd610b5(0x2558),'countries':['CA']},{'name':_0xd610b5(0x1daf),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},{'name':_0xd610b5(0x24b8),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},{'name':_0xd610b5(0x57c),'utcOffset':-0x1a4,'offsetStr':_0xd610b5(0x2986),'countries':['CA']},{'name':_0xd610b5(0x12aa),'utcOffset':-0x1a4,'offsetStr':_0xd610b5(0x2986),'countries':['CA']},{'name':_0xd610b5(0x1cb3),'utcOffset':-0x1a4,'offsetStr':_0xd610b5(0x2986),'countries':['CA']},{'name':_0xd610b5(0x1043),'utcOffset':-0x1a4,'offsetStr':_0xd610b5(0x2986),'countries':['CA']},{'name':_0xd610b5(0x30f),'utcOffset':-0x1a4,'offsetStr':_0xd610b5(0x2986),'countries':['CA']},{'name':'America/Dawson_Creek','utcOffset':-0x1a4,'offsetStr':_0xd610b5(0x2986),'countries':['CA']},{'name':_0xd610b5(0x1774),'utcOffset':-0x1a4,'offsetStr':_0xd610b5(0x2986),'countries':['CA']},{'name':_0xd610b5(0x26db),'utcOffset':-0x1e0,'offsetStr':_0xd610b5(0x37e),'countries':['CA']},{'name':'America/Whitehorse','utcOffset':-0x1e0,'offsetStr':_0xd610b5(0x37e),'countries':['CA']},{'name':_0xd610b5(0x18a7),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['CA']},{'name':_0xd610b5(0x211c),'utcOffset':0x186,'offsetStr':_0xd610b5(0x236e),'countries':['CC']},{'name':'Europe/Zurich','utcOffset':0x3c,'offsetStr':'+01:00','countries':['CH','DE','LI']},{'name':_0xd610b5(0x18b8),'utcOffset':0x0,'offsetStr':'+00:00','countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},{'name':_0xd610b5(0xae2),'utcOffset':-0x258,'offsetStr':_0xd610b5(0x2957),'countries':['CK']},{'name':'America/Santiago','utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['CL']},{'name':_0xd610b5(0x1be0),'utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['CL']},{'name':'Asia/Shanghai','utcOffset':0x1e0,'offsetStr':_0xd610b5(0xac2),'countries':['CN']},{'name':'Asia/Urumqi','utcOffset':0x168,'offsetStr':_0xd610b5(0x1764),'countries':['CN']},{'name':_0xd610b5(0x26f4),'utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['CO']},{'name':'America/Costa_Rica','utcOffset':-0x168,'offsetStr':_0xd610b5(0x2558),'countries':['CR']},{'name':'America/Havana','utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['CU']},{'name':_0xd610b5(0x1f52),'utcOffset':-0x3c,'offsetStr':_0xd610b5(0x1338),'countries':['CV']},{'name':'America/Curacao','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CW','AW','BQ','SX']},{'name':_0xd610b5(0xd34),'utcOffset':0x1a4,'offsetStr':_0xd610b5(0x1a80),'countries':['CX']},{'name':'Asia/Nicosia','utcOffset':0x78,'offsetStr':'+02:00','countries':['CY']},{'name':_0xd610b5(0x1554),'utcOffset':0x3c,'offsetStr':_0xd610b5(0x27ac),'countries':['CZ','SK']},{'name':_0xd610b5(0x24c8),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['DE']},{'name':_0xd610b5(0x28f5),'utcOffset':0x3c,'offsetStr':_0xd610b5(0x27ac),'countries':['DK']},{'name':_0xd610b5(0x1a90),'utcOffset':-0xf0,'offsetStr':_0xd610b5(0x1e88),'countries':['DO']},{'name':'Africa/Algiers','utcOffset':0x3c,'offsetStr':_0xd610b5(0x27ac),'countries':['DZ']},{'name':_0xd610b5(0x239a),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['EC']},{'name':_0xd610b5(0x1f59),'utcOffset':-0x168,'offsetStr':_0xd610b5(0x2558),'countries':['EC']},{'name':_0xd610b5(0x24ec),'utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['EE']},{'name':_0xd610b5(0x1911),'utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['EG']},{'name':_0xd610b5(0x2153),'utcOffset':0x0,'offsetStr':'+00:00','countries':['EH']},{'name':_0xd610b5(0x2447),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['ES']},{'name':_0xd610b5(0x2745),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['ES']},{'name':_0xd610b5(0x1101),'utcOffset':0x0,'offsetStr':_0xd610b5(0x1ff4),'countries':['ES']},{'name':_0xd610b5(0x807),'utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['FI','AX']},{'name':_0xd610b5(0x7a9),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['FJ']},{'name':_0xd610b5(0x12fe),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['FK']},{'name':_0xd610b5(0x1931),'utcOffset':0x258,'offsetStr':_0xd610b5(0x7f4),'countries':['FM']},{'name':_0xd610b5(0x129a),'utcOffset':0x294,'offsetStr':_0xd610b5(0x10ed),'countries':['FM']},{'name':_0xd610b5(0xfd8),'utcOffset':0x294,'offsetStr':_0xd610b5(0x10ed),'countries':['FM']},{'name':_0xd610b5(0x127d),'utcOffset':0x0,'offsetStr':_0xd610b5(0x1ff4),'countries':['FO']},{'name':_0xd610b5(0x12fb),'utcOffset':0x3c,'offsetStr':_0xd610b5(0x27ac),'countries':['FR']},{'name':'Europe/London','utcOffset':0x0,'offsetStr':_0xd610b5(0x1ff4),'countries':['GB','GG','IM','JE']},{'name':'Asia/Tbilisi','utcOffset':0xf0,'offsetStr':_0xd610b5(0x1fec),'countries':['GE']},{'name':'America/Cayenne','utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['GF']},{'name':_0xd610b5(0x285a),'utcOffset':0x0,'offsetStr':_0xd610b5(0x1ff4),'countries':['GH']},{'name':'Europe/Gibraltar','utcOffset':0x3c,'offsetStr':_0xd610b5(0x27ac),'countries':['GI']},{'name':_0xd610b5(0x296b),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['GL']},{'name':'America/Danmarkshavn','utcOffset':0x0,'offsetStr':_0xd610b5(0x1ff4),'countries':['GL']},{'name':_0xd610b5(0x2958),'utcOffset':-0x3c,'offsetStr':'-01:00','countries':['GL']},{'name':_0xd610b5(0x2546),'utcOffset':-0xf0,'offsetStr':_0xd610b5(0x1e88),'countries':['GL']},{'name':_0xd610b5(0x1440),'utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['GR']},{'name':_0xd610b5(0xd89),'utcOffset':-0x78,'offsetStr':'-02:00','countries':['GS']},{'name':'America/Guatemala','utcOffset':-0x168,'offsetStr':_0xd610b5(0x2558),'countries':['GT']},{'name':_0xd610b5(0x1a2d),'utcOffset':0x258,'offsetStr':_0xd610b5(0x7f4),'countries':['GU','MP']},{'name':_0xd610b5(0xdb5),'utcOffset':0x0,'offsetStr':_0xd610b5(0x1ff4),'countries':['GW']},{'name':'America/Guyana','utcOffset':-0xf0,'offsetStr':_0xd610b5(0x1e88),'countries':['GY']},{'name':_0xd610b5(0x11aa),'utcOffset':0x1e0,'offsetStr':_0xd610b5(0xac2),'countries':['HK']},{'name':_0xd610b5(0x161c),'utcOffset':-0x168,'offsetStr':_0xd610b5(0x2558),'countries':['HN']},{'name':'America/Port-au-Prince','utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['HT']},{'name':_0xd610b5(0x1d4d),'utcOffset':0x3c,'offsetStr':_0xd610b5(0x27ac),'countries':['HU']},{'name':'Asia/Jakarta','utcOffset':0x1a4,'offsetStr':_0xd610b5(0x1a80),'countries':['ID']},{'name':_0xd610b5(0x6fe),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['ID']},{'name':_0xd610b5(0x22da),'utcOffset':0x1e0,'offsetStr':_0xd610b5(0xac2),'countries':['ID']},{'name':_0xd610b5(0x14ba),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['ID']},{'name':_0xd610b5(0x288f),'utcOffset':0x0,'offsetStr':_0xd610b5(0x1ff4),'countries':['IE']},{'name':_0xd610b5(0x266b),'utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['IL']},{'name':'Asia/Kolkata','utcOffset':0x14a,'offsetStr':_0xd610b5(0x494),'countries':['IN']},{'name':_0xd610b5(0xae7),'utcOffset':0x168,'offsetStr':_0xd610b5(0x1764),'countries':['IO']},{'name':_0xd610b5(0x2320),'utcOffset':0xb4,'offsetStr':_0xd610b5(0x28fd),'countries':['IQ']},{'name':_0xd610b5(0x2747),'utcOffset':0xd2,'offsetStr':_0xd610b5(0x6ab),'countries':['IR']},{'name':_0xd610b5(0x1d17),'utcOffset':0x0,'offsetStr':_0xd610b5(0x1ff4),'countries':['IS']},{'name':_0xd610b5(0x1128),'utcOffset':0x3c,'offsetStr':_0xd610b5(0x27ac),'countries':['IT','SM','VA']},{'name':'America/Jamaica','utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['JM']},{'name':_0xd610b5(0x14e),'utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['JO']},{'name':_0xd610b5(0xe6c),'utcOffset':0x21c,'offsetStr':_0xd610b5(0x16e7),'countries':['JP']},{'name':_0xd610b5(0x2181),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},{'name':_0xd610b5(0x433),'utcOffset':0x168,'offsetStr':_0xd610b5(0x1764),'countries':['KG']},{'name':_0xd610b5(0x1ce4),'utcOffset':0x2d0,'offsetStr':_0xd610b5(0x2091),'countries':['KI']},{'name':_0xd610b5(0x1ad5),'utcOffset':0x30c,'offsetStr':_0xd610b5(0xb7b),'countries':['KI']},{'name':_0xd610b5(0x1ef2),'utcOffset':0x348,'offsetStr':'+14:00','countries':['KI']},{'name':_0xd610b5(0x241d),'utcOffset':0x1fe,'offsetStr':_0xd610b5(0x24c3),'countries':['KP']},{'name':'Asia/Seoul','utcOffset':0x21c,'offsetStr':_0xd610b5(0x16e7),'countries':['KR']},{'name':_0xd610b5(0x2fb),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['KY']},{'name':'Asia/Almaty','utcOffset':0x168,'offsetStr':_0xd610b5(0x1764),'countries':['KZ']},{'name':_0xd610b5(0x184f),'utcOffset':0x168,'offsetStr':'+06:00','countries':['KZ']},{'name':_0xd610b5(0x2977),'utcOffset':0x12c,'offsetStr':_0xd610b5(0x2541),'countries':['KZ']},{'name':_0xd610b5(0x11d6),'utcOffset':0x12c,'offsetStr':_0xd610b5(0x2541),'countries':['KZ']},{'name':_0xd610b5(0x64f),'utcOffset':0x12c,'offsetStr':_0xd610b5(0x2541),'countries':['KZ']},{'name':_0xd610b5(0x1a58),'utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['LB']},{'name':_0xd610b5(0x1745),'utcOffset':0x14a,'offsetStr':'+05:30','countries':['LK']},{'name':_0xd610b5(0xcea),'utcOffset':0x0,'offsetStr':_0xd610b5(0x1ff4),'countries':['LR']},{'name':_0xd610b5(0x4c2),'utcOffset':0x78,'offsetStr':'+02:00','countries':['LT']},{'name':'Europe/Luxembourg','utcOffset':0x3c,'offsetStr':'+01:00','countries':['LU']},{'name':_0xd610b5(0x1480),'utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['LV']},{'name':'Africa/Tripoli','utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['LY']},{'name':_0xd610b5(0x9d8),'utcOffset':0x0,'offsetStr':_0xd610b5(0x1ff4),'countries':['MA']},{'name':_0xd610b5(0x1ca7),'utcOffset':0x3c,'offsetStr':_0xd610b5(0x27ac),'countries':['MC']},{'name':_0xd610b5(0x68b),'utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['MD']},{'name':_0xd610b5(0x27c1),'utcOffset':0x2d0,'offsetStr':_0xd610b5(0x2091),'countries':['MH']},{'name':_0xd610b5(0x2068),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['MH']},{'name':'Asia/Rangoon','utcOffset':0x186,'offsetStr':'+06:30','countries':['MM']},{'name':_0xd610b5(0x982),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MN']},{'name':_0xd610b5(0xeef),'utcOffset':0x1a4,'offsetStr':_0xd610b5(0x1a80),'countries':['MN']},{'name':_0xd610b5(0x51d),'utcOffset':0x1e0,'offsetStr':_0xd610b5(0xac2),'countries':['MN']},{'name':_0xd610b5(0x652),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MO']},{'name':'America/Martinique','utcOffset':-0xf0,'offsetStr':_0xd610b5(0x1e88),'countries':['MQ']},{'name':_0xd610b5(0x1a66),'utcOffset':0x3c,'offsetStr':_0xd610b5(0x27ac),'countries':['MT']},{'name':_0xd610b5(0x2099),'utcOffset':0xf0,'offsetStr':_0xd610b5(0x1fec),'countries':['MU']},{'name':_0xd610b5(0x24ea),'utcOffset':0x12c,'offsetStr':_0xd610b5(0x2541),'countries':['MV']},{'name':'America/Mexico_City','utcOffset':-0x168,'offsetStr':_0xd610b5(0x2558),'countries':['MX']},{'name':_0xd610b5(0x1365),'utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['MX']},{'name':'America/Merida','utcOffset':-0x168,'offsetStr':_0xd610b5(0x2558),'countries':['MX']},{'name':_0xd610b5(0x13f6),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},{'name':'America/Matamoros','utcOffset':-0x168,'offsetStr':_0xd610b5(0x2558),'countries':['MX']},{'name':'America/Mazatlan','utcOffset':-0x1a4,'offsetStr':_0xd610b5(0x2986),'countries':['MX']},{'name':_0xd610b5(0x2850),'utcOffset':-0x1a4,'offsetStr':_0xd610b5(0x2986),'countries':['MX']},{'name':'America/Ojinaga','utcOffset':-0x1a4,'offsetStr':_0xd610b5(0x2986),'countries':['MX']},{'name':_0xd610b5(0x2597),'utcOffset':-0x1a4,'offsetStr':_0xd610b5(0x2986),'countries':['MX']},{'name':_0xd610b5(0x1b9c),'utcOffset':-0x1e0,'offsetStr':_0xd610b5(0x37e),'countries':['MX']},{'name':_0xd610b5(0x2959),'utcOffset':-0x1e0,'offsetStr':_0xd610b5(0x37e),'countries':['MX']},{'name':_0xd610b5(0x471),'utcOffset':-0x168,'offsetStr':_0xd610b5(0x2558),'countries':['MX']},{'name':_0xd610b5(0xdff),'utcOffset':0x1e0,'offsetStr':_0xd610b5(0xac2),'countries':['MY']},{'name':_0xd610b5(0x12df),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MY']},{'name':_0xd610b5(0x121c),'utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},{'name':_0xd610b5(0x26f5),'utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['NA']},{'name':_0xd610b5(0x1db1),'utcOffset':0x294,'offsetStr':_0xd610b5(0x10ed),'countries':['NC']},{'name':_0xd610b5(0x1671),'utcOffset':0x294,'offsetStr':_0xd610b5(0x10ed),'countries':['NF']},{'name':'Africa/Lagos','utcOffset':0x3c,'offsetStr':_0xd610b5(0x27ac),'countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},{'name':_0xd610b5(0x17d9),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['NI']},{'name':'Europe/Amsterdam','utcOffset':0x3c,'offsetStr':'+01:00','countries':['NL']},{'name':_0xd610b5(0x68d),'utcOffset':0x3c,'offsetStr':_0xd610b5(0x27ac),'countries':['NO','SJ']},{'name':_0xd610b5(0x19b9),'utcOffset':0x159,'offsetStr':_0xd610b5(0x28f7),'countries':['NP']},{'name':_0xd610b5(0x20de),'utcOffset':0x2d0,'offsetStr':_0xd610b5(0x2091),'countries':['NR']},{'name':_0xd610b5(0x938),'utcOffset':-0x294,'offsetStr':'-11:00','countries':['NU']},{'name':_0xd610b5(0x2e2),'utcOffset':0x30c,'offsetStr':_0xd610b5(0xb7b),'countries':['NZ','AQ']},{'name':_0xd610b5(0x2835),'utcOffset':0x339,'offsetStr':_0xd610b5(0xb84),'countries':['NZ']},{'name':_0xd610b5(0x203b),'utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['PA']},{'name':_0xd610b5(0xaea),'utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['PE']},{'name':_0xd610b5(0x28c7),'utcOffset':-0x258,'offsetStr':_0xd610b5(0x2957),'countries':['PF']},{'name':'Pacific/Marquesas','utcOffset':-0x23a,'offsetStr':_0xd610b5(0x1791),'countries':['PF']},{'name':_0xd610b5(0x1e3f),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['PF']},{'name':'Pacific/Port_Moresby','utcOffset':0x258,'offsetStr':_0xd610b5(0x7f4),'countries':['PG']},{'name':_0xd610b5(0x78c),'utcOffset':0x294,'offsetStr':'+11:00','countries':['PG']},{'name':_0xd610b5(0x1944),'utcOffset':0x1e0,'offsetStr':_0xd610b5(0xac2),'countries':['PH']},{'name':'Asia/Karachi','utcOffset':0x12c,'offsetStr':_0xd610b5(0x2541),'countries':['PK']},{'name':_0xd610b5(0x139f),'utcOffset':0x3c,'offsetStr':_0xd610b5(0x27ac),'countries':['PL']},{'name':'America/Miquelon','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['PM']},{'name':_0xd610b5(0xa8a),'utcOffset':-0x1e0,'offsetStr':_0xd610b5(0x37e),'countries':['PN']},{'name':'America/Puerto_Rico','utcOffset':-0xf0,'offsetStr':_0xd610b5(0x1e88),'countries':['PR']},{'name':_0xd610b5(0x21e4),'utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['PS']},{'name':_0xd610b5(0x478),'utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['PS']},{'name':_0xd610b5(0x1bc2),'utcOffset':0x0,'offsetStr':_0xd610b5(0x1ff4),'countries':['PT']},{'name':_0xd610b5(0x122f),'utcOffset':0x0,'offsetStr':_0xd610b5(0x1ff4),'countries':['PT']},{'name':'Atlantic/Azores','utcOffset':-0x3c,'offsetStr':_0xd610b5(0x1338),'countries':['PT']},{'name':_0xd610b5(0x22f),'utcOffset':0x21c,'offsetStr':_0xd610b5(0x16e7),'countries':['PW']},{'name':_0xd610b5(0x5b6),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['PY']},{'name':'Asia/Qatar','utcOffset':0xb4,'offsetStr':_0xd610b5(0x28fd),'countries':['QA','BH']},{'name':_0xd610b5(0xd35),'utcOffset':0xf0,'offsetStr':_0xd610b5(0x1fec),'countries':['RE','TF']},{'name':_0xd610b5(0x35e),'utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['RO']},{'name':_0xd610b5(0x262c),'utcOffset':0x3c,'offsetStr':_0xd610b5(0x27ac),'countries':['RS','BA','HR','ME','MK','SI']},{'name':'Europe/Kaliningrad','utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['RU']},{'name':_0xd610b5(0xf94),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},{'name':_0xd610b5(0x27bf),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},{'name':_0xd610b5(0x1bc9),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},{'name':'Europe/Samara','utcOffset':0xf0,'offsetStr':'+04:00','countries':['RU']},{'name':_0xd610b5(0x1d64),'utcOffset':0x12c,'offsetStr':_0xd610b5(0x2541),'countries':['RU']},{'name':_0xd610b5(0x2946),'utcOffset':0x168,'offsetStr':_0xd610b5(0x1764),'countries':['RU']},{'name':'Asia/Novosibirsk','utcOffset':0x168,'offsetStr':_0xd610b5(0x1764),'countries':['RU']},{'name':_0xd610b5(0x1ea9),'utcOffset':0x1a4,'offsetStr':_0xd610b5(0x1a80),'countries':['RU']},{'name':_0xd610b5(0x190e),'utcOffset':0x1a4,'offsetStr':_0xd610b5(0x1a80),'countries':['RU']},{'name':'Asia/Irkutsk','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['RU']},{'name':_0xd610b5(0x6df),'utcOffset':0x1e0,'offsetStr':_0xd610b5(0xac2),'countries':['RU']},{'name':'Asia/Yakutsk','utcOffset':0x21c,'offsetStr':_0xd610b5(0x16e7),'countries':['RU']},{'name':'Asia/Khandyga','utcOffset':0x21c,'offsetStr':_0xd610b5(0x16e7),'countries':['RU']},{'name':_0xd610b5(0x104e),'utcOffset':0x258,'offsetStr':_0xd610b5(0x7f4),'countries':['RU']},{'name':_0xd610b5(0xca5),'utcOffset':0x258,'offsetStr':_0xd610b5(0x7f4),'countries':['RU']},{'name':'Asia/Ust-Nera','utcOffset':0x258,'offsetStr':_0xd610b5(0x7f4),'countries':['RU']},{'name':'Asia/Magadan','utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},{'name':_0xd610b5(0x187b),'utcOffset':0x294,'offsetStr':_0xd610b5(0x10ed),'countries':['RU']},{'name':_0xd610b5(0x255),'utcOffset':0x2d0,'offsetStr':_0xd610b5(0x2091),'countries':['RU']},{'name':_0xd610b5(0x2b9),'utcOffset':0x2d0,'offsetStr':_0xd610b5(0x2091),'countries':['RU']},{'name':_0xd610b5(0x140d),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['SA','KW','YE']},{'name':_0xd610b5(0x160a),'utcOffset':0x294,'offsetStr':_0xd610b5(0x10ed),'countries':['SB']},{'name':_0xd610b5(0x214a),'utcOffset':0xf0,'offsetStr':_0xd610b5(0x1fec),'countries':['SC']},{'name':_0xd610b5(0x229e),'utcOffset':0xb4,'offsetStr':_0xd610b5(0x28fd),'countries':['SD','SS']},{'name':_0xd610b5(0x266a),'utcOffset':0x3c,'offsetStr':_0xd610b5(0x27ac),'countries':['SE']},{'name':_0xd610b5(0x165b),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['SG']},{'name':_0xd610b5(0xacc),'utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['SR']},{'name':_0xd610b5(0x65c),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['SV']},{'name':_0xd610b5(0xc1c),'utcOffset':0x78,'offsetStr':'+02:00','countries':['SY']},{'name':_0xd610b5(0x10bc),'utcOffset':-0xf0,'offsetStr':_0xd610b5(0x1e88),'countries':['TC']},{'name':_0xd610b5(0x48c),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['TD']},{'name':_0xd610b5(0x28a3),'utcOffset':0x12c,'offsetStr':_0xd610b5(0x2541),'countries':['TF']},{'name':'Asia/Bangkok','utcOffset':0x1a4,'offsetStr':_0xd610b5(0x1a80),'countries':['TH','KH','LA','VN']},{'name':_0xd610b5(0x6a8),'utcOffset':0x12c,'offsetStr':_0xd610b5(0x2541),'countries':['TJ']},{'name':_0xd610b5(0x2198),'utcOffset':0x30c,'offsetStr':_0xd610b5(0xb7b),'countries':['TK']},{'name':_0xd610b5(0x250e),'utcOffset':0x21c,'offsetStr':_0xd610b5(0x16e7),'countries':['TL']},{'name':_0xd610b5(0x590),'utcOffset':0x12c,'offsetStr':_0xd610b5(0x2541),'countries':['TM']},{'name':_0xd610b5(0x2610),'utcOffset':0x3c,'offsetStr':_0xd610b5(0x27ac),'countries':['TN']},{'name':_0xd610b5(0x13dd),'utcOffset':0x30c,'offsetStr':_0xd610b5(0xb7b),'countries':['TO']},{'name':_0xd610b5(0x2897),'utcOffset':0x78,'offsetStr':'+02:00','countries':['TR']},{'name':_0xd610b5(0x2468),'utcOffset':-0xf0,'offsetStr':_0xd610b5(0x1e88),'countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},{'name':_0xd610b5(0x2941),'utcOffset':0x2d0,'offsetStr':_0xd610b5(0x2091),'countries':['TV']},{'name':_0xd610b5(0x203d),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['TW']},{'name':_0xd610b5(0xe17),'utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['UA']},{'name':_0xd610b5(0xae8),'utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},{'name':_0xd610b5(0x1281),'utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['UA']},{'name':'Pacific/Wake','utcOffset':0x2d0,'offsetStr':_0xd610b5(0x2091),'countries':['UM']},{'name':_0xd610b5(0x247d),'utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['US']},{'name':_0xd610b5(0x9b5),'utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['US']},{'name':'America/Kentucky/Louisville','utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['US']},{'name':'America/Kentucky/Monticello','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':'America/Indiana/Indianapolis','utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['US']},{'name':_0xd610b5(0x42b),'utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['US']},{'name':'America/Indiana/Winamac','utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['US']},{'name':_0xd610b5(0x26f7),'utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['US']},{'name':'America/Indiana/Petersburg','utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['US']},{'name':_0xd610b5(0x1c6d),'utcOffset':-0x12c,'offsetStr':_0xd610b5(0x1b9),'countries':['US']},{'name':'America/Chicago','utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0xd610b5(0x5c9),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0xd610b5(0x1ca1),'utcOffset':-0x168,'offsetStr':_0xd610b5(0x2558),'countries':['US']},{'name':_0xd610b5(0xce2),'utcOffset':-0x168,'offsetStr':_0xd610b5(0x2558),'countries':['US']},{'name':_0xd610b5(0x457),'utcOffset':-0x168,'offsetStr':_0xd610b5(0x2558),'countries':['US']},{'name':'America/North_Dakota/New_Salem','utcOffset':-0x168,'offsetStr':_0xd610b5(0x2558),'countries':['US']},{'name':_0xd610b5(0xcb4),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0xd610b5(0x96a),'utcOffset':-0x1a4,'offsetStr':_0xd610b5(0x2986),'countries':['US']},{'name':_0xd610b5(0x25a2),'utcOffset':-0x1a4,'offsetStr':_0xd610b5(0x2986),'countries':['US']},{'name':_0xd610b5(0x933),'utcOffset':-0x1a4,'offsetStr':_0xd610b5(0x2986),'countries':['US']},{'name':_0xd610b5(0x2279),'utcOffset':-0x1e0,'offsetStr':_0xd610b5(0x37e),'countries':['US']},{'name':_0xd610b5(0xc5f),'utcOffset':-0x1e0,'offsetStr':_0xd610b5(0x37e),'countries':['US']},{'name':_0xd610b5(0xe46),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},{'name':_0xd610b5(0x7f5),'utcOffset':-0x21c,'offsetStr':_0xd610b5(0x1eb9),'countries':['US']},{'name':'America/Sitka','utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},{'name':'America/Yakutat','utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},{'name':_0xd610b5(0x11c0),'utcOffset':-0x21c,'offsetStr':_0xd610b5(0x1eb9),'countries':['US']},{'name':_0xd610b5(0xaa1),'utcOffset':-0x258,'offsetStr':_0xd610b5(0x2957),'countries':['US']},{'name':_0xd610b5(0xd8d),'utcOffset':-0x258,'offsetStr':_0xd610b5(0x2957),'countries':['US','UM']},{'name':_0xd610b5(0x13ab),'utcOffset':-0xb4,'offsetStr':_0xd610b5(0x13a4),'countries':['UY']},{'name':'Asia/Samarkand','utcOffset':0x12c,'offsetStr':_0xd610b5(0x2541),'countries':['UZ']},{'name':_0xd610b5(0xb68),'utcOffset':0x12c,'offsetStr':_0xd610b5(0x2541),'countries':['UZ']},{'name':'America/Caracas','utcOffset':-0x10e,'offsetStr':_0xd610b5(0x26b2),'countries':['VE']},{'name':_0xd610b5(0x22ba),'utcOffset':0x1a4,'offsetStr':_0xd610b5(0x1a80),'countries':['VN']},{'name':_0xd610b5(0x129),'utcOffset':0x294,'offsetStr':_0xd610b5(0x10ed),'countries':['VU']},{'name':'Pacific/Wallis','utcOffset':0x2d0,'offsetStr':_0xd610b5(0x2091),'countries':['WF']},{'name':_0xd610b5(0x2b6),'utcOffset':0x348,'offsetStr':'+14:00','countries':['WS']},{'name':'Africa/Johannesburg','utcOffset':0x78,'offsetStr':_0xd610b5(0x2126),'countries':['ZA','LS','SZ']}];}],'templateUrl':_0x4d8cb4};}const _0x192e18=_0x45d1e3;;function _0x15d1fe(){const _0x27dfce=_0x49a1e3,_0x1535ff=this;_0x1535ff[_0x27dfce(0xcec)]=[],_0x1535ff[_0x27dfce(0x426)]=![],_0x1535ff[_0x27dfce(0x26eb)]=0x14;function _0x438594(_0xa50182){const _0x4911ee=_0x27dfce;let _0x4b2190=0x0;if(_0xa50182){_0x1535ff[_0x4911ee(0x26eb)]=_0xa50182[_0x4911ee(0x2d9)][0x2]&&_0xa50182[_0x4911ee(0x2d9)][0x2][_0x4911ee(0x1096)]?parseInt(_0xa50182[_0x4911ee(0x2d9)][0x2]['value'])-parseInt(_0xa50182[_0x4911ee(0x2d9)][0x2][_0x4911ee(0x1096)])%0x2:0x14;_0xa50182['attrs'][0x1][_0x4911ee(0x1096)]&&_0xa50182[_0x4911ee(0x2d9)][0x1][_0x4911ee(0x1096)]['length']?(_0x1535ff[_0x4911ee(0x426)]=!![],_0x1535ff[_0x4911ee(0xcec)]=_0x28c606()['intersection'](_0xa50182[_0x4911ee(0x1b6)],_0xa50182[_0x4911ee(0x2d9)][0x1][_0x4911ee(0x1096)])):(_0x1535ff[_0x4911ee(0x426)]=![],_0x1535ff[_0x4911ee(0xcec)]=_0xa50182[_0x4911ee(0x1b6)]);for(let _0x4e0dfb=0x0;_0x4e0dfb<_0xa50182[_0x4911ee(0x2dc)][_0x4911ee(0x28b8)][_0x4911ee(0x1b9e)];_0x4e0dfb+=0x1){_0x28c606()['includes'](_0x1535ff[_0x4911ee(0xcec)],_0xa50182[_0x4911ee(0x2dc)][_0x4911ee(0x28b8)][_0x4e0dfb]['id'])&&(_0x4b2190+=_0xa50182[_0x4911ee(0x2dc)][_0x4911ee(0x28b8)][_0x4e0dfb][_0xa50182['attrs'][0x0][_0x4911ee(0x1096)]]?parseInt(_0xa50182[_0x4911ee(0x2dc)][_0x4911ee(0x28b8)][_0x4e0dfb][_0xa50182[_0x4911ee(0x2d9)][0x0][_0x4911ee(0x1096)]]):0x0);}}return _0x4b2190;}_0x1535ff['getCount']=_0x438594;}const _0x5b2c40=_0x15d1fe;;_0x16d5d2['$inject']=[_0x49a1e3(0x298c)];function _0x16d5d2(_0x1630aa){const _0x56c281=_0x49a1e3,_0x475b0b=this;_0x475b0b[_0x56c281(0xcec)]=[],_0x475b0b[_0x56c281(0x426)]=![],_0x475b0b['properties']=[],_0x475b0b[_0x56c281(0x2405)]={'labels':[_0x56c281(0x32e)],'series':[_0x56c281(0x6d1)],'data':[[0x32]],'options':{'responsive':!![],'legend':{'display':!![],'fontColor':_0x56c281(0x253c)},'scales':{'xAxes':[{'gridLines':{'display':!![]},'ticks':{'fontColor':_0x56c281(0x253c),'stepSize':0x1,'beginAtZero':!![]}}],'yAxes':[{'gridLines':{'display':![]},'ticks':{'fontColor':_0x56c281(0x253c)}}]}}};function _0x4bd6f3(_0x4efbdc){const _0x231755=_0x56c281;_0x475b0b[_0x231755(0x5df)]=_0x28c606()[_0x231755(0x1de5)](_0x28c606()[_0x231755(0xcec)](_0x4efbdc[_0x231755(0x2d9)],function(_0x368520){const _0x3b95ef=_0x231755;return _0x368520[_0x3b95ef(0x2494)]&&_0x368520['name'][_0x3b95ef(0x1b28)](_0x3b95ef(0xb05))>=0x0&&_0x368520[_0x3b95ef(0x1096)]&&_0x368520[_0x3b95ef(0x1096)]!==_0x3b95ef(0x8f1);}),_0x231755(0x1096));_0x4efbdc[_0x231755(0x2d9)][0x3][_0x231755(0x1096)]&&_0x4efbdc[_0x231755(0x2d9)][0x3][_0x231755(0x1096)][_0x231755(0x1b9e)]?(_0x475b0b['filtered']=!![],_0x475b0b['filter']=_0x28c606()['intersection'](_0x4efbdc[_0x231755(0x1b6)],_0x4efbdc[_0x231755(0x2d9)][0x3][_0x231755(0x1096)])):(_0x475b0b[_0x231755(0x426)]=![],_0x475b0b['filter']=_0x4efbdc['voiceQueuesSelected']);if(_0x475b0b[_0x231755(0x2405)][_0x231755(0x8d9)][_0x231755(0x1b9e)]>_0x475b0b['properties']['length']){const _0x2d04bc=_0x475b0b[_0x231755(0x2405)][_0x231755(0x8d9)][_0x231755(0x1b9e)]-_0x475b0b['properties'][_0x231755(0x1b9e)];_0x475b0b[_0x231755(0x2405)][_0x231755(0x8d9)][_0x231755(0x18f0)](0x0,_0x2d04bc),_0x475b0b['multiBarChart'][_0x231755(0x1c52)][_0x231755(0x18f0)](0x0,_0x2d04bc);}for(let _0x303f3b=0x0;_0x303f3b<_0x475b0b[_0x231755(0x5df)][_0x231755(0x1b9e)];_0x303f3b+=0x1){_0x475b0b['multiBarChart'][_0x231755(0x8d9)][_0x303f3b]=_0x1630aa['instant'](_0x231755(0x15ca)+_0x475b0b[_0x231755(0x5df)][_0x303f3b][_0x231755(0xa3c)]());_0x28c606()[_0x231755(0x28d7)](_0x475b0b[_0x231755(0x2405)][_0x231755(0x1c52)][_0x303f3b])&&(_0x475b0b['multiBarChart']['data'][_0x303f3b]=[]);if(_0x475b0b[_0x231755(0x2405)][_0x231755(0xaf5)][_0x231755(0x1b9e)]>_0x475b0b[_0x231755(0xcec)][_0x231755(0x1b9e)]){const _0x5f0fea=_0x475b0b['multiBarChart']['labels'][_0x231755(0x1b9e)]-_0x475b0b['filter'][_0x231755(0x1b9e)];_0x475b0b[_0x231755(0x2405)][_0x231755(0xaf5)]['splice'](0x0,_0x5f0fea),_0x475b0b[_0x231755(0x2405)][_0x231755(0x1c52)][_0x303f3b]['splice'](0x0,_0x5f0fea);}for(let _0x4aa46f=0x0,_0x517bc5=0x0;_0x4aa46f<_0x4efbdc[_0x231755(0x2dc)][_0x231755(0x28b8)][_0x231755(0x1b9e)];_0x4aa46f+=0x1){_0x28c606()[_0x231755(0x68a)](_0x475b0b[_0x231755(0xcec)],_0x4efbdc[_0x231755(0x2dc)][_0x231755(0x28b8)][_0x4aa46f]['id'])&&(_0x475b0b[_0x231755(0x2405)]['labels'][_0x517bc5]=_0x4efbdc['voiceQueues'][_0x231755(0x28b8)][_0x4aa46f][_0x231755(0x2494)],_0x475b0b[_0x231755(0x2405)][_0x231755(0x1c52)][_0x303f3b][_0x517bc5]=_0x4efbdc[_0x231755(0x2dc)][_0x231755(0x28b8)][_0x4aa46f][_0x475b0b[_0x231755(0x5df)][_0x303f3b]]?parseInt(_0x4efbdc['voiceQueues'][_0x231755(0x28b8)][_0x4aa46f][_0x475b0b[_0x231755(0x5df)][_0x303f3b]]):0x0,_0x517bc5+=0x1);}}}function _0x79c3b2(_0x245d83){const _0x42f54c=_0x56c281;_0x475b0b[_0x42f54c(0x2405)][_0x42f54c(0x59e)][_0x42f54c(0x22a7)][_0x42f54c(0x12d4)]=_0x245d83['foreground'];for(let _0x3fe555=0x0;_0x3fe555<_0x475b0b[_0x42f54c(0x2405)]['options'][_0x42f54c(0x1d66)]['xAxes']['length'];_0x3fe555+=0x1){_0x475b0b[_0x42f54c(0x2405)]['options'][_0x42f54c(0x1d66)][_0x42f54c(0x1807)][_0x3fe555]['ticks'][_0x42f54c(0x12d4)]=_0x245d83[_0x42f54c(0x384)];}for(let _0x2d3f52=0x0;_0x2d3f52<_0x475b0b[_0x42f54c(0x2405)][_0x42f54c(0x59e)][_0x42f54c(0x1d66)]['yAxes']['length'];_0x2d3f52+=0x1){_0x475b0b['multiBarChart'][_0x42f54c(0x59e)][_0x42f54c(0x1d66)]['yAxes'][_0x2d3f52][_0x42f54c(0x1b11)][_0x42f54c(0x12d4)]=_0x245d83['foreground'];}}function _0xa41b99(_0x1c7766){const _0x4ba356=_0x56c281;_0x1c7766&&(_0x1c7766[_0x4ba356(0x2d9)]&&_0x4bd6f3(_0x1c7766),_0x1c7766[_0x4ba356(0x384)]&&_0x79c3b2(_0x1c7766));}_0x475b0b[_0x56c281(0xad5)]=_0xa41b99;}const _0x385e38=_0x16d5d2;;_0x6ba0a8['$inject']=[_0x49a1e3(0x298c)];function _0x6ba0a8(_0x5deabd){const _0x172544=_0x49a1e3,_0x194682=this;_0x194682['filter']=[],_0x194682['filtered']=![],_0x194682[_0x172544(0x5df)]=[],_0x194682['pieChart']={'labels':[_0x172544(0x163b)],'data':[0x1e],'options':{'responsive':!![],'legend':{'display':!![]}}};function _0x37c73e(_0x1fcaaa){const _0x10f2a0=_0x172544;_0x194682[_0x10f2a0(0x5df)]=_0x28c606()['map'](_0x28c606()[_0x10f2a0(0xcec)](_0x1fcaaa[_0x10f2a0(0x2d9)],function(_0xf83fab){const _0x21ae11=_0x10f2a0;return _0xf83fab[_0x21ae11(0x2494)]&&_0xf83fab[_0x21ae11(0x2494)][_0x21ae11(0x1b28)]('attrSerie')>=0x0&&_0xf83fab[_0x21ae11(0x1096)]&&_0xf83fab[_0x21ae11(0x1096)]!=='null';}),_0x10f2a0(0x1096));_0x1fcaaa['attrs'][0x3][_0x10f2a0(0x1096)]&&_0x1fcaaa[_0x10f2a0(0x2d9)][0x3][_0x10f2a0(0x1096)][_0x10f2a0(0x1b9e)]?(_0x194682['filtered']=!![],_0x194682['filter']=_0x28c606()[_0x10f2a0(0x186d)](_0x1fcaaa['voiceQueuesSelected'],_0x1fcaaa['attrs'][0x3][_0x10f2a0(0x1096)])):(_0x194682['filtered']=![],_0x194682[_0x10f2a0(0xcec)]=_0x1fcaaa[_0x10f2a0(0x1b6)]);if(_0x194682[_0x10f2a0(0x18ea)][_0x10f2a0(0xaf5)]['length']>_0x194682[_0x10f2a0(0x5df)][_0x10f2a0(0x1b9e)]){const _0x2ade04=_0x194682['pieChart']['labels']['length']-_0x194682[_0x10f2a0(0x5df)]['length'];_0x194682[_0x10f2a0(0x18ea)][_0x10f2a0(0xaf5)]['splice'](0x0,_0x2ade04),_0x194682['pieChart'][_0x10f2a0(0x1c52)]['splice'](0x0,_0x2ade04);}for(let _0x474cb2=0x0,_0x5acdc2=0x0;_0x474cb2<_0x194682[_0x10f2a0(0x5df)][_0x10f2a0(0x1b9e)];_0x474cb2+=0x1){_0x194682[_0x10f2a0(0x18ea)][_0x10f2a0(0xaf5)][_0x474cb2]=_0x5deabd[_0x10f2a0(0x2292)](_0x10f2a0(0x15ca)+_0x194682[_0x10f2a0(0x5df)][_0x474cb2]['toUpperCase']());for(let _0xf3c836=0x0;_0xf3c836<_0x1fcaaa[_0x10f2a0(0x2dc)][_0x10f2a0(0x28b8)][_0x10f2a0(0x1b9e)];_0xf3c836+=0x1){_0x28c606()[_0x10f2a0(0x68a)](_0x194682[_0x10f2a0(0xcec)],_0x1fcaaa[_0x10f2a0(0x2dc)][_0x10f2a0(0x28b8)][_0xf3c836]['id'])&&(_0x5acdc2+=_0x1fcaaa['voiceQueues'][_0x10f2a0(0x28b8)][_0xf3c836][_0x194682[_0x10f2a0(0x5df)][_0x474cb2]]?parseInt(_0x1fcaaa[_0x10f2a0(0x2dc)]['rows'][_0xf3c836][_0x194682['properties'][_0x474cb2]]):0x0);}_0x194682[_0x10f2a0(0x18ea)][_0x10f2a0(0x1c52)][_0x474cb2]=_0x5acdc2,_0x5acdc2=0x0;}}function _0x9cc2e9(_0x39bb5f){const _0x26306e=_0x172544;_0x194682['pieChart']['options'][_0x26306e(0x22a7)]['fontColor']=_0x39bb5f[_0x26306e(0x384)];}function _0x222a85(_0x35210b){const _0x17fd5a=_0x172544;_0x35210b&&(_0x35210b[_0x17fd5a(0x2d9)]&&_0x37c73e(_0x35210b),_0x35210b[_0x17fd5a(0x384)]&&_0x9cc2e9(_0x35210b));}_0x194682[_0x172544(0x1e91)]=_0x222a85;}const _0x4bc90e=_0x6ba0a8;;_0x7b2405[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0x1239),_0x49a1e3(0xa19)];function _0x7b2405(_0x2ff335,_0x46e804,_0x561fe6,_0x20849b){const _0x17c423=_0x49a1e3,_0x516f5a=this;_0x516f5a[_0x17c423(0x1739)]=0x0,_0x516f5a[_0x17c423(0x175a)]=0x0,_0x516f5a[_0x17c423(0x2021)]='',_0x516f5a[_0x17c423(0xb82)]=[],_0x516f5a['results']={'rows':[],'count':0x0},_0x516f5a[_0x17c423(0x289a)]={'limit':0xa,'page':0x1,'startDate':_0x2ac33a()()[_0x17c423(0x246e)](_0x17c423(0x2784))['format'](_0x17c423(0x5f7)),'endDate':_0x2ac33a()()[_0x17c423(0x13af)](_0x17c423(0x2784))['format']('YYYY-MM-DD\x20HH:mm:ss'),'output':'web'},_0x516f5a[_0x17c423(0x2483)]=_0x370f09,_0x516f5a[_0x17c423(0x40b)]=_0x599c75,_0x516f5a[_0x17c423(0x1e8b)]=_0x25787f;function _0x370f09(_0xfab50c){const _0x3d08fa=_0x17c423;_0xfab50c&&(_0xfab50c[_0x3d08fa(0x2d9)]&&(_0xfab50c[_0x3d08fa(0x2d9)][0x0]&&_0xfab50c['attrs'][0x0]['value']&&(_0x516f5a[_0x3d08fa(0x289a)]['id']=_0xfab50c['attrs'][0x0][_0x3d08fa(0x1096)],_0x20849b['analyticFieldReport'][_0x3d08fa(0x896)]({'fields':'field,alias','nolimit':!![],'DefaultReportId':_0xfab50c['attrs'][0x0]['type']===_0x3d08fa(0x416)?_0xfab50c[_0x3d08fa(0x2d9)][0x0][_0x3d08fa(0x1096)]:undefined,'CustomReportId':_0xfab50c[_0x3d08fa(0x2d9)][0x0][_0x3d08fa(0x2185)]===_0x3d08fa(0x1ad6)?_0xfab50c[_0x3d08fa(0x2d9)][0x0][_0x3d08fa(0x1096)]:undefined})[_0x3d08fa(0x15e7)][_0x3d08fa(0x64a)](function(_0x29928a){const _0x23e7fc=_0x3d08fa;_0x29928a&&_0x29928a['rows']&&(_0x516f5a[_0x23e7fc(0xb82)]=_0x29928a[_0x23e7fc(0x28b8)]);switch(_0xfab50c[_0x23e7fc(0x2d9)][0x0][_0x23e7fc(0x2185)]){case _0x23e7fc(0x416):_0x516f5a[_0x23e7fc(0x16e)]=_0x23e7fc(0x254);break;case'custom':_0x516f5a[_0x23e7fc(0x16e)]=_0x23e7fc(0x1d97);break;}return _0x20849b[_0x516f5a['reportRoute']][_0x23e7fc(0x896)]({'id':_0xfab50c[_0x23e7fc(0x2d9)][0x0]['value'],'fields':_0x23e7fc(0x1427)})[_0x23e7fc(0x15e7)];})[_0x3d08fa(0x64a)](function(_0x12347e){const _0x4e596d=_0x3d08fa;_0x12347e&&_0x12347e[_0x4e596d(0x2494)]&&(_0x516f5a[_0x4e596d(0x2021)]=_0x12347e[_0x4e596d(0x2494)]),_0x599c75();})[_0x3d08fa(0x20cd)](function(_0x7705bf){console['log'](_0x7705bf);})),_0xfab50c[_0x3d08fa(0x2d9)][0x1]&&_0xfab50c[_0x3d08fa(0x2d9)][0x1][_0x3d08fa(0x1096)]&&(_0x516f5a[_0x3d08fa(0x175a)]=parseInt(_0xfab50c[_0x3d08fa(0x2d9)][0x1]['value']),!_0x28c606()[_0x3d08fa(0x12cc)](_0x516f5a[_0x3d08fa(0x175a)])&&_0x516f5a[_0x3d08fa(0x175a)]>0x0?(_0x516f5a['countDown']=parseInt(_0xfab50c['attrs'][0x1]['value']),_0x516f5a[_0x3d08fa(0xcfd)]=_0x561fe6(function(){const _0x3e1aad=_0x3d08fa;_0x516f5a[_0x3e1aad(0x1739)]-=0x1;},0x3e8,0x0),_0x516f5a[_0x3d08fa(0x16d)]=_0x46e804(function(){const _0x16a1cd=_0x3d08fa;_0x516f5a[_0x16a1cd(0xcfd)]&&_0x561fe6[_0x16a1cd(0x101a)](_0x516f5a[_0x16a1cd(0xcfd)]),_0x370f09(_0xfab50c);},_0x516f5a['refresh']*0x3e8)):(_0x516f5a[_0x3d08fa(0xcfd)]&&_0x561fe6['cancel'](_0x516f5a[_0x3d08fa(0xcfd)]),_0x516f5a[_0x3d08fa(0x16d)]&&_0x46e804[_0x3d08fa(0x101a)](_0x516f5a[_0x3d08fa(0x16d)])))));}function _0x1b4307(_0x104913){const _0x31e424=_0x17c423;_0x516f5a[_0x31e424(0x289c)]=_0x104913||{'count':0x0,'rows':[]};}function _0x599c75(){const _0x3e5482=_0x17c423;_0x516f5a[_0x3e5482(0x289a)]['offset']=(_0x516f5a[_0x3e5482(0x289a)][_0x3e5482(0xc72)]-0x1)*_0x516f5a[_0x3e5482(0x289a)][_0x3e5482(0x25bb)],_0x516f5a[_0x3e5482(0x1713)]=_0x20849b[_0x516f5a['reportRoute']][_0x3e5482(0x1a43)](_0x516f5a[_0x3e5482(0x289a)],_0x1b4307)[_0x3e5482(0x15e7)];}function _0x25787f(_0x46540a,_0x5f55b7){const _0x460c4c=_0x17c423;return _0x2ac33a()(_0x5f55b7,'YYYY-MM-DDTHH:mm:ssZ',!![])[_0x460c4c(0x6f9)]()&&(_0x5f55b7=_0x2ac33a()(_0x5f55b7,'')[_0x460c4c(0x1c2c)](_0x460c4c(0x5f7))),_0x5f55b7;}_0x2ff335[_0x17c423(0x8c7)]('$destroy',function(){const _0x3645ec=_0x17c423;_0x516f5a[_0x3645ec(0xcfd)]&&_0x561fe6[_0x3645ec(0x101a)](_0x516f5a['interval']),_0x516f5a['timeout']&&_0x46e804[_0x3645ec(0x101a)](_0x516f5a[_0x3645ec(0x16d)]);});}const _0xb08cf9=_0x7b2405;;const _0x564942=_0x2e4a48['p']+_0x49a1e3(0x20a6);;_0x8df50[_0x49a1e3(0x1e73)]=['$mdDialog',_0x49a1e3(0x186e)];function _0x8df50(_0x428e04,_0x4eccfc){const _0x1ead47=_0x49a1e3,_0xc0a51c=this;function _0x1e6bf0(_0x569d04){const _0xaeb136=a0_0x4127;return _0x4eccfc[_0xaeb136(0x2119)](_0x569d04);}_0xc0a51c[_0x1ead47(0x49e)]=_0x1e6bf0;}function _0x5f305e(){const _0x532550=_0x49a1e3;return{'restrict':'E','scope':{'config':'=?','onEdit':'&?','onDelete':'&?'},'require':_0x532550(0x134c),'controller':'MsWidgetEngineController','controllerAs':'vm','bindToController':!![],'templateUrl':_0x564942};};_0x1b9bec[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$element'];function _0x1b9bec(_0x6c9b,_0x475768){const _0x526544=_0x49a1e3,_0x4d2fed=this;_0x4d2fed[_0x526544(0x1a7f)]=![];function _0x540f73(){const _0x2b17c4=_0x526544;return angular[_0x2b17c4(0x16ab)](_0x6c9b['flippable'])&&_0x6c9b['flippable']===!![];}function _0x1647b5(){const _0x2a5777=_0x526544;if(!_0x540f73())return;_0x4d2fed[_0x2a5777(0x1a7f)]=!_0x4d2fed[_0x2a5777(0x1a7f)],_0x475768[_0x2a5777(0x6fa)](_0x2a5777(0x1a7f),_0x4d2fed['flipped']);}_0x4d2fed[_0x526544(0x159b)]=_0x1647b5;}function _0x2bb681(){const _0x1c297f=_0x49a1e3;return{'restrict':'E','scope':{'flippable':'=?'},'controller':_0x1c297f(0x1b98),'transclude':!![],'compile':function(_0xcd2e34){const _0x380349=_0x1c297f;return _0xcd2e34[_0x380349(0xb6f)](_0x380349(0x1acf)),function _0x3fa272(_0x16fede,_0x847b2f,_0x57dcbd,_0x251059,_0x170010){_0x170010(function(_0x5dd27a){const _0x2b1c42=a0_0x4127;_0x847b2f[_0x2b1c42(0x160d)](),_0x847b2f['append'](_0x5dd27a);});};}};}function _0x29e131(){return{'restrict':'E','require':'^msWidget','transclude':!![],'compile':function(_0x54943f){const _0x2c0c49=a0_0x4127;return _0x54943f[_0x2c0c49(0xb6f)](_0x2c0c49(0xc67)),function _0x1edb60(_0x39a31d,_0x5adf2e,_0x1e27f5,_0x405d7f,_0x49d69e){const _0x30f6e4=_0x2c0c49;_0x49d69e(function(_0xc1f6da){const _0x2acd06=a0_0x4127;_0x5adf2e[_0x2acd06(0x160d)](),_0x5adf2e[_0x2acd06(0x1d30)](_0xc1f6da);}),_0x39a31d[_0x30f6e4(0x2059)]=_0x405d7f['flip'];};}};}function _0x52a0cd(){return{'restrict':'E','require':'^msWidget','transclude':!![],'compile':function(_0x4f8997){const _0x4a4ad6=a0_0x4127;return _0x4f8997[_0x4a4ad6(0xb6f)]('ms-widget-back'),function _0x304983(_0x126086,_0x3a3710,_0x38f199,_0x520329,_0x2b1852){const _0xc496a5=_0x4a4ad6;_0x2b1852(function(_0x1d5b7b){const _0x327490=a0_0x4127;_0x3a3710[_0x327490(0x160d)](),_0x3a3710[_0x327490(0x1d30)](_0x1d5b7b);}),_0x126086['flipWidget']=_0x520329[_0xc496a5(0x159b)];};}};};const _0x5cdfc7=[[_0x49a1e3(0x218f),_0xb7c004,_0x49a1e3(0xb2a)],[_0x49a1e3(0x10a2),_0x44e03e,_0x49a1e3(0xb2a)],[_0x49a1e3(0xe2a),_0x434a68,_0x49a1e3(0xb2a)],[_0x49a1e3(0x489),_0x17b0af,_0x49a1e3(0xb2a)],['msChipColor',_0xb1f18a,'directive'],[_0x49a1e3(0x20ba),_0x3e8281,_0x49a1e3(0xb2a)],[_0x49a1e3(0x19a7),_0x24ccb7,'provider'],[_0x49a1e3(0xe85),_0x1307df,'directive'],[_0x49a1e3(0x207b),_0xdfe417,'directive'],[_0x49a1e3(0x254c),_0x5bc872,'directive'],[_0x49a1e3(0x28a5),_0x2dbb56,_0x49a1e3(0xb2a)],['msFontFamily',_0x57b333,_0x49a1e3(0xb2a)],[_0x49a1e3(0x28bc),_0x32d313,_0x49a1e3(0x38e)],[_0x49a1e3(0x1b3a),_0x568926,_0x49a1e3(0xb2a)],[_0x49a1e3(0x171c),_0x1ea1f7,_0x49a1e3(0xb2a)],[_0x49a1e3(0x19a9),_0x4e87c3,'directive'],[_0x49a1e3(0x1f8e),_0x1ab559,_0x49a1e3(0x38e)],['msMasonry',_0x5e66f4,'directive'],[_0x49a1e3(0x290b),_0x50723c,'directive'],[_0x49a1e3(0x2676),_0x24bcff,_0x49a1e3(0x38e)],[_0x49a1e3(0xa7b),_0x3c5bb5,_0x49a1e3(0xb2a)],[_0x49a1e3(0x820),_0x1b75dd,_0x49a1e3(0x646)],[_0x49a1e3(0xed2),_0x39c268,_0x49a1e3(0xb2a)],[_0x49a1e3(0x22e0),_0x7980c0,_0x49a1e3(0x38e)],['msNav',_0x3b2063,_0x49a1e3(0xb2a)],[_0x49a1e3(0x1a20),_0x1b3be9,'directive'],[_0x49a1e3(0x5d9),_0x579dec,_0x49a1e3(0xb2a)],[_0x49a1e3(0x1802),_0x2120c6,'directive'],[_0x49a1e3(0xbe5),_0xf37227,_0x49a1e3(0x16bb)],['MsNavigationController',_0x1c8494,_0x49a1e3(0x38e)],[_0x49a1e3(0xeb8),_0x166f23,_0x49a1e3(0xb2a)],[_0x49a1e3(0x775),_0x4cd693,_0x49a1e3(0x38e)],[_0x49a1e3(0x1c2e),_0x2688cf,_0x49a1e3(0xb2a)],['msNavigationItem',_0x368ec3,_0x49a1e3(0xb2a)],[_0x49a1e3(0x277),_0x4b9d12,'directive'],[_0x49a1e3(0x1d90),_0x3d951e,_0x49a1e3(0x38e)],[_0x49a1e3(0x20c6),_0xd2b7f3,_0x49a1e3(0xb2a)],[_0x49a1e3(0x1863),_0x5b51bb,_0x49a1e3(0xb2a)],[_0x49a1e3(0x192b),_0x2a4b2c,_0x49a1e3(0x38e)],[_0x49a1e3(0xe96),_0x762540,_0x49a1e3(0xb2a)],[_0x49a1e3(0x728),_0x23b8ee,_0x49a1e3(0x38e)],[_0x49a1e3(0x154),_0x37ab61,_0x49a1e3(0xb2a)],[_0x49a1e3(0x1638),_0x3ef972,_0x49a1e3(0x38e)],[_0x49a1e3(0x66c),_0x1aca07,'controller'],[_0x49a1e3(0xdc8),_0x29b7d7,'controller'],[_0x49a1e3(0xf55),_0x56976a,_0x49a1e3(0xb2a)],[_0x49a1e3(0x1c95),_0x2760a6,'factory'],['msRandomClass',_0x2e12f3,_0x49a1e3(0xb2a)],[_0x49a1e3(0x722),_0x2e978d,'directive'],[_0x49a1e3(0x4d6),_0x2bff48,_0x49a1e3(0xb2a)],[_0x49a1e3(0x42e),_0x503fe9,_0x49a1e3(0x16bb)],[_0x49a1e3(0x14ca),_0x54aa06,_0x49a1e3(0xb2a)],[_0x49a1e3(0x24a7),_0x321ad5,_0x49a1e3(0x38e)],[_0x49a1e3(0x246a),_0x2fc717,_0x49a1e3(0xb2a)],[_0x49a1e3(0x2796),_0x1f2bee,_0x49a1e3(0x38e)],[_0x49a1e3(0x2659),_0x542469,_0x49a1e3(0xb2a)],[_0x49a1e3(0x263),_0x1df996,'directive'],[_0x49a1e3(0x2549),_0x59c577,_0x49a1e3(0xb2a)],[_0x49a1e3(0x2543),_0x26e69d,'controller'],[_0x49a1e3(0x1f69),_0xafa06d,'directive'],[_0x49a1e3(0x283f),_0x2c3448,_0x49a1e3(0xb2a)],[_0x49a1e3(0x57a),_0x3eb0e1,_0x49a1e3(0xb2a)],[_0x49a1e3(0x61a),_0x2a9a22,_0x49a1e3(0xb2a)],[_0x49a1e3(0x953),_0x3b4e8b,_0x49a1e3(0x38e)],[_0x49a1e3(0x1afa),_0x23aa12,_0x49a1e3(0xb2a)],[_0x49a1e3(0xcdd),_0x221e1c,_0x49a1e3(0x38e)],['msTimeline',_0x4eef9f,_0x49a1e3(0xb2a)],[_0x49a1e3(0xc5b),_0x415f8c,_0x49a1e3(0xb2a)],[_0x49a1e3(0xad6),_0x39bb42,_0x49a1e3(0xb2a)],[_0x49a1e3(0x7dd),_0x192e18,_0x49a1e3(0xb2a)],[_0x49a1e3(0x655),_0x5b2c40,_0x49a1e3(0x38e)],['MsWidgetEngineMultibarChartController',_0x385e38,_0x49a1e3(0x38e)],['MsWidgetEnginePieChartController',_0x4bc90e,'controller'],['MsWidgetEngineWebReportController',_0xb08cf9,_0x49a1e3(0x38e)],[_0x49a1e3(0x244b),_0x8df50,_0x49a1e3(0x38e)],[_0x49a1e3(0x134c),_0x5f305e,_0x49a1e3(0xb2a)],[_0x49a1e3(0x1b98),_0x1b9bec,'controller'],[_0x49a1e3(0x1d1c),_0x2bb681,_0x49a1e3(0xb2a)],[_0x49a1e3(0x16b4),_0x29e131,'directive'],['msWidgetBack',_0x52a0cd,_0x49a1e3(0xb2a)]],_0x298908=_0x5cdfc7;;_0x653615[_0x49a1e3(0x1e73)]=['$q','$translate'];function _0x653615(_0x1a5509,_0x444202){function _0x1023ad(_0x551054){let _0x5b8296;return _0x1a5509(function(_0x4c09f7){const _0x48c805=a0_0x4127;try{if(_0x28c606()['isEmpty'](_0x551054['resources']))_0x5b8296=_0x444202[_0x48c805(0x2292)]('DASHBOARDS.NONE');else{if(_0x28c606()[_0x48c805(0x940)](_0x551054[_0x48c805(0x162)]))_0x5b8296=_0x551054['placeholder']?_0x444202[_0x48c805(0x2292)](_0x551054[_0x48c805(0x13de)]):_0x444202[_0x48c805(0x2292)](_0x48c805(0xe02));else{if(_0x551054[_0x48c805(0x162)][_0x48c805(0x1b9e)]===_0x551054[_0x48c805(0x440)][_0x48c805(0x1b9e)])_0x5b8296=_0x444202[_0x48c805(0x2292)](_0x48c805(0x2200));else{const _0x23ebe6=_0x551054[_0x48c805(0x62c)]||'id';_0x5b8296=_0x28c606()(_0x551054[_0x48c805(0x440)])[_0x48c805(0xcec)](function(_0x15e00f){const _0x3d37d5=_0x48c805;return _0x28c606()[_0x3d37d5(0x68a)](_0x551054['param'],_0x15e00f[_0x23ebe6]);})[_0x48c805(0x1de5)](_0x48c805(0x2494))[_0x48c805(0x1096)]()[_0x48c805(0x9a6)](',\x20');}}}_0x4c09f7(_0x5b8296);}catch(_0x1c281f){console[_0x48c805(0x9b4)]('QuickFilterManager::setPlaceholder',_0x1c281f),_0x4c09f7(null);}});}const _0x36401e={'setPlaceholder':_0x1023ad};return _0x36401e;}const _0x228560=_0x653615;;function _0x3a12e6(){return function(_0x5dc098){const _0x3e5c03=a0_0x4127,_0x2a3adb=Date[_0x3e5c03(0x395)]()-new Date(_0x5dc098);if(_0x2a3adb<0x3c*0x3c*0x3e8)return _0x2ac33a()(_0x5dc098)['fromNow']();else{if(_0x2a3adb<0x3c*0x3c*0x18*0x3e8)return _0x2ac33a()(_0x5dc098)['format']('HH:mm');else return _0x2a3adb<0x3c*0x3c*0x18*0x7*0x3e8?_0x2ac33a()(_0x5dc098)[_0x3e5c03(0x1c2c)](_0x3e5c03(0x707)):_0x2ac33a()(_0x5dc098)['calendar']();}};}const _0x1f00b4=_0x3a12e6;;_0x17499f[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x186e)];function _0x17499f(_0x1d5758){return function(_0x2ae1fa){const _0x5d1646=a0_0x4127;return _0x1d5758[_0x5d1646(0x1174)](_0x2ae1fa);};}function _0x57b080(){return function(_0x8f85c2){const _0x418531=a0_0x4127;return String(_0x8f85c2)[_0x418531(0x1353)](/<[^>]+>/gm,'');};}function _0xb9b9ed(){return function(_0x40b686){const _0x194cb4=a0_0x4127;return!_0x40b686?'':_0x40b686[_0x194cb4(0x1353)](/ /g,'');};}function _0x55f151(){return function(_0x2855cc){const _0x4c1712=a0_0x4127;if(!_0x2855cc)return;if(_0x2855cc[_0x4c1712(0x2185)]===_0x4c1712(0xb2a))return _0x2855cc['name'][_0x4c1712(0x1353)](/([A-Z])/g,function(_0x5b4359){const _0x3b282e=_0x4c1712;return'-'+_0x5b4359[_0x3b282e(0x2554)]();});return _0x2855cc[_0x4c1712(0x2089)]||_0x2855cc['name'];};};function _0x32451c(){return function(_0x41bc59){const _0x4bd3d2=a0_0x4127;if(!_0x41bc59)return'';return _0x28c606()[_0x4bd3d2(0xd56)](_0x41bc59);};}const _0x4801d1=_0x32451c;;function _0x4ed897(){return function(_0x4b68df,_0x25bc29){const _0x23201d=a0_0x4127;if(_0x4b68df[_0x23201d(0x1b9e)]===0x0||!_0x25bc29)return _0x4b68df;if(_0x25bc29[_0x23201d(0x1b9e)]===0x0)return[];const _0x9f49c6=[];for(let _0x52c0a8=0x0;_0x52c0a8<_0x4b68df['length'];_0x52c0a8++){const _0x38202b=_0x4b68df[_0x52c0a8];let _0x319cb1=![];for(let _0x2a2742=0x0;_0x2a2742<_0x25bc29['length'];_0x2a2742++){const _0x4525a0=_0x25bc29[_0x2a2742];if(_0x38202b['id']===_0x4525a0){_0x319cb1=!![];break;}}_0x319cb1&&_0x9f49c6[_0x23201d(0x1954)](_0x38202b);}return _0x9f49c6;};}const _0x54b200=_0x4ed897;;function _0x268e60(){return function(_0x4c9f67,_0x3322d7,_0x5bb9cc){const _0x11ef3b=a0_0x4127;if(_0x4c9f67[_0x11ef3b(0x1b9e)]===0x0||!_0x5bb9cc||_0x5bb9cc['length']===0x0)return _0x4c9f67;const _0x3c0349=[];for(let _0xff6b12=0x0;_0xff6b12<_0x4c9f67[_0x11ef3b(0x1b9e)];_0xff6b12++){const _0x472b15=_0x4c9f67[_0xff6b12];let _0x2a43fd=![];for(let _0x1e5354=0x0;_0x1e5354<_0x5bb9cc[_0x11ef3b(0x1b9e)];_0x1e5354++){const _0x2069f6=_0x5bb9cc[_0x1e5354];if(_0x472b15[_0x3322d7][_0x11ef3b(0x1b28)](_0x2069f6)>-0x1){_0x2a43fd=!![];break;}}_0x2a43fd&&_0x3c0349[_0x11ef3b(0x1954)](_0x472b15);}return _0x3c0349;};}const _0x16ae4d=_0x268e60;;function _0x4d3108(){return function(_0x2af359){if(!_0x2af359)return'';return _0x28c606()['snakeCase'](_0x2af359);};}const _0x461bbc=_0x4d3108;;function _0x2a5b13(){return function(_0x2b5464){if(!_0x2b5464)return'';return _0x28c606()['startCase'](_0x2b5464);};}const _0x3a1fd8=_0x2a5b13;;function _0x3e26a5(){return function(_0x566f77,_0x1d0e25){const _0x4e6aed=a0_0x4127;if(_0x566f77[_0x4e6aed(0x1b9e)]===0x0||_0x1d0e25[_0x4e6aed(0x1b9e)]===0x0)return _0x566f77;const _0x3e3f71=[];return _0x566f77['forEach'](function(_0x38ea4e){const _0x4b247f=_0x4e6aed,_0x1c034d=_0x1d0e25[_0x4b247f(0x2972)](function(_0x48464){const _0x46c4c1=_0x4b247f;let _0x1687fa=![];return _0x38ea4e[_0x46c4c1(0x16a6)]['forEach'](function(_0x5d2de9){const _0x4abd5a=_0x46c4c1;if(_0x5d2de9[_0x4abd5a(0x2494)]===_0x48464[_0x4abd5a(0x2494)]){_0x1687fa=!![];return;}}),_0x1687fa;});_0x1c034d&&_0x3e3f71['push'](_0x38ea4e);}),_0x3e3f71;};}function _0x22ff51(){return function(_0x1e93a6,_0x598b74){const _0x398748=a0_0x4127;if(_0x1e93a6[_0x398748(0x1b9e)]===0x0||_0x598b74[_0x398748(0x1b9e)]===0x0)return;if(_0x1e93a6[_0x398748(0x1b9e)]<_0x598b74[_0x398748(0x1b9e)])return[];const _0x156a18=[],_0x59feb5=_0x598b74[_0x398748(0x2972)](function(_0x42f2f4){const _0x3ff604=_0x398748;let _0xa90bf7=![];return _0x1e93a6[_0x3ff604(0x1397)](function(_0xe8c055){const _0x3ac2df=_0x3ff604;if(_0xe8c055[_0x3ac2df(0x2494)]===_0x42f2f4[_0x3ac2df(0x2494)]){_0xa90bf7=!![];return;}}),_0xa90bf7;});return _0x59feb5&&_0x156a18[_0x398748(0x1954)](_0x1e93a6),_0x156a18;};};class _0x17db66{constructor(_0x2b5404,_0x555558,_0x408b82,_0x20985a){const _0x55aa81=_0x49a1e3;this['id']=Math[_0x55aa81(0x849)]()[_0x55aa81(0x2915)](0x24)[_0x55aa81(0x28b2)](0x2,0xf)+Math['random']()[_0x55aa81(0x2915)](0x24)['substring'](0x2,0xf),this['title']=_0x2b5404,this[_0x55aa81(0xb49)]=_0x555558,this['accept']=_0x408b82,this[_0x55aa81(0x19d2)]=_0x20985a,this['close']=_0x2d1ba1;}}function _0x11c54e(){const _0x3ad9da=_0x49a1e3;return!(window['document'][_0x3ad9da(0x2d5)]||window[_0x3ad9da(0x123f)]['mozHidden']||window[_0x3ad9da(0x123f)][_0x3ad9da(0x1377)]);}function _0x4b6a87(){const _0x444106=_0x49a1e3;return/Chrome/[_0x444106(0xa33)](navigator[_0x444106(0xf17)])&&/Google Inc/['test'](navigator[_0x444106(0x1437)]);}function _0x2d1ba1(){const _0x1fd83e=_0x49a1e3,_0x9af97a=this;navigator[_0x1fd83e(0x872)][_0x1fd83e(0x28ae)][_0x1fd83e(0x64a)](function(_0x2937f4){const _0x21d1ff=_0x1fd83e;_0x2937f4[_0x21d1ff(0x1bfc)]()[_0x21d1ff(0x64a)](function(_0x49a5d7){const _0x29d47b=_0x21d1ff,_0x5a78dd=_0x28c606()[_0x29d47b(0x27bc)](_0x49a5d7,function(_0x3511fb){const _0x5ec518=_0x29d47b;return _0x3511fb[_0x5ec518(0x1c52)]['id']===_0x9af97a['id'];});_0x5a78dd&&_0x5a78dd[_0x29d47b(0x67b)]();});});}function _0xe101b6(){return{'$get':[_0x2e03f3]};function _0x2e03f3(){const _0x4d92c4=a0_0x4127,_0x3ae773=[];let _0x10f5a4,_0x1c9197;return _0x4d92c4(0x872)in navigator&&_0x4b6a87()?navigator[_0x4d92c4(0x872)]['register'](_0x4d92c4(0x14be))[_0x4d92c4(0x64a)](function(_0x387a39){const _0x19efb0=_0x4d92c4;_0x10f5a4=_0x387a39,_0x10f5a4[_0x19efb0(0x2603)]();if(_0x10f5a4[_0x19efb0(0x26b1)])_0x1c9197=_0x10f5a4[_0x19efb0(0x26b1)];else{if(_0x10f5a4[_0x19efb0(0x188f)])_0x1c9197=_0x10f5a4[_0x19efb0(0x188f)];else _0x10f5a4[_0x19efb0(0xc51)]&&(_0x1c9197=_0x10f5a4[_0x19efb0(0xc51)]);}})[_0x4d92c4(0x20cd)](function(_0x373d08){const _0x32113d=_0x4d92c4;console[_0x32113d(0x1bd0)](_0x32113d(0x1d88),_0x373d08);}):console[_0x4d92c4(0x1bd0)]('Service\x20Worker\x20is\x20not\x20supported'),navigator[_0x4d92c4(0x872)][_0x4d92c4(0x1e57)](_0x4d92c4(0x18ca),function(_0x17aca3){const _0x47866b=_0x4d92c4;if(_0x17aca3[_0x47866b(0x26e7)]!==_0x1c9197)return;const _0x4c8bcd=_0x28c606()['find'](_0x3ae773,{'id':_0x17aca3[_0x47866b(0x1c52)]['id']});if(_0x4c8bcd)switch(_0x17aca3[_0x47866b(0x1c52)]['action']){case _0x47866b(0x1964):_0x4c8bcd['accept']&&_0x4c8bcd[_0x47866b(0x1964)]();break;case _0x47866b(0x19d2):_0x4c8bcd[_0x47866b(0x19d2)]&&_0x4c8bcd[_0x47866b(0x19d2)]();break;default:}}),{'create':function(_0x49b4d7,_0x1eea3b,_0x3e7768,_0x5e1430,_0x3e4cd7){return new Promise(function(_0x24ad65,_0x71e659){const _0x4ef537=a0_0x4127;let _0xad82c3;_0x4b6a87()&&!_0x11c54e()?(_0xad82c3=new _0x17db66(_0x49b4d7||_0x4ef537(0xf2c),_0x1eea3b||_0x4ef537(0x2223),_0x5e1430,_0x3e4cd7),_0x3ae773[_0x4ef537(0x1954)](_0xad82c3),_0xad82c3?window[_0x4ef537(0x23b7)][_0x4ef537(0x3ec)]()[_0x4ef537(0x64a)](function(_0x47a6bc){const _0x1e45ab=_0x4ef537;if(_0x47a6bc===_0x1e45ab(0xb3a))return _0x10f5a4[_0x1e45ab(0x1fab)](_0xad82c3['title'],{'body':_0xad82c3['body'],'requireInteraction':!![],'icon':_0x3e7768||'assets/images/business/queueCampaigns.jpg','data':{'id':_0xad82c3['id']},'actions':[{'action':_0x1e45ab(0x1964),'title':_0x1e45ab(0x26a0)},{'action':_0x1e45ab(0x19d2),'title':'Reject'}]});})[_0x4ef537(0x64a)](function(){_0x24ad65(_0xad82c3);})[_0x4ef537(0x20cd)](function(_0x51647a){_0x71e659(_0x51647a);}):_0x71e659(new Error('Notification\x20creating\x20error'))):_0x24ad65();});}};}}const _0x213366=_0xe101b6;;_0x3ec071[_0x49a1e3(0x1e73)]=['$q',_0x49a1e3(0xb5c),'api'];function _0x3ec071(_0x4a6968,_0x32139b,_0x5637ce){const _0x184cff={'resolve':_0x2bcead};return _0x184cff;function _0x2bcead(_0x1f44a2,_0x251d33){const _0xd51dce=a0_0x4127,_0x538d64=_0x1f44a2[_0xd51dce(0x282c)]('@'),_0x51c09b=_0x538d64[0x0],_0x43baf1=_0x538d64[0x1],_0x40289f=_0x251d33||{};if(!_0x51c09b||!_0x43baf1)return _0x32139b[_0xd51dce(0x1bd0)](_0xd51dce(0xf7e)),![];const _0x50b896=_0x4a6968[_0xd51dce(0x122)](),_0x10f0ad=_0x489f86(_0x51c09b);return!_0x10f0ad?(_0x32139b[_0xd51dce(0x1bd0)](_0xd51dce(0x1ee0)+_0x51c09b+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!'),_0x50b896[_0xd51dce(0x19d2)]('Resource\x20\x22'+_0x51c09b+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!')):_0x10f0ad[_0x43baf1](_0x40289f,function(_0x25005f){const _0x4099f8=_0xd51dce;_0x50b896[_0x4099f8(0x1268)](_0x25005f);},function(_0x27812f){const _0x196a82=_0xd51dce;_0x50b896[_0x196a82(0x19d2)](_0x27812f);}),_0x50b896[_0xd51dce(0x1713)];}function _0x489f86(_0x19087c){const _0x591293=a0_0x4127,_0x812d8a=_0x19087c[_0x591293(0x282c)]('.');let _0x40b262=_0x5637ce;for(let _0x40f825=0x0;_0x40f825<_0x812d8a[_0x591293(0x1b9e)];_0x40f825++){if(angular[_0x591293(0x1a01)](_0x40b262[_0x812d8a[_0x40f825]])){_0x32139b['error'](_0x591293(0x16c6)+_0x812d8a[_0x40f825]+_0x591293(0x1b1f)),_0x40b262=![];break;}_0x40b262=_0x40b262[_0x812d8a[_0x40f825]];}if(!_0x40b262)return![];return _0x40b262;}}const _0x15d77c=_0x3ec071;;_0x191d50[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x2159)];function _0x191d50(_0x4bd920){function _0xb8fa7b(){const _0x173b69=a0_0x4127;_0x4bd920[_0x173b69(0x2838)]=!![];}function _0x449422(){_0x4bd920['loadingProgress']=![];}const _0x42e6b4={'showLoadingIndicator':_0xb8fa7b,'hideLoadingIndicator':_0x449422};return _0x42e6b4;}const _0xf4c395=_0x191d50;;function _0x222fdc(){const _0x21563f=_0x49a1e3,_0x484f66=this,_0xb1a9f6=angular[_0x21563f(0xd16)](['ng'])[_0x21563f(0x896)](_0x21563f(0xb5c));let _0x3cbee6='';const _0x1e5600=[];_0x484f66['setBaseUrl']=_0x484f26,_0x484f66[_0x21563f(0x330)]=_0xedbf87,_0x484f66[_0x21563f(0x1be2)]=_0x156bac,_0x484f66[_0x21563f(0x2418)]=_0x14cf96;function _0x484f26(_0x35d167){_0x3cbee6=_0x35d167;}function _0xedbf87(){return _0x3cbee6;}function _0x156bac(){return _0x1e5600;}function _0x14cf96(_0x5cb211,_0x1d0a51){const _0x589522=_0x21563f;if(!angular[_0x589522(0x2909)](_0x5cb211)){_0xb1a9f6[_0x589522(0x1bd0)](_0x589522(0x6e6));return;}if(!angular[_0x589522(0x616)](_0x1d0a51)){_0xb1a9f6[_0x589522(0x1bd0)](_0x589522(0x28c1));return;}_0x1e5600[_0x5cb211]={'url':_0x3cbee6+(_0x1d0a51[0x0]||''),'paramDefaults':_0x1d0a51[0x1]||[],'actions':_0x1d0a51[0x2]||[],'options':_0x1d0a51[0x3]||{}};}this['$get']=function(_0x1fa504,_0x48e45a,_0x2ca77e,_0x3643bb){const _0x295692={'setBaseUrl':_0x484f26,'getBaseUrl':_0xedbf87,'register':_0x14cf96,'resolve':_0x1ffe6c,'request':_0x2e771c};return _0x295692;function _0x1ffe6c(_0x58e080,_0x507d96){const _0x12834d=a0_0x4127;_0x3643bb[_0x12834d(0x1a2e)](_0x12834d(0xa55));const _0x8b749c=_0x58e080[_0x12834d(0x282c)]('@'),_0x73abd8=_0x8b749c[0x0],_0x228b04=_0x8b749c[0x1],_0x3db0da=_0x507d96||{};if(!_0x73abd8||!_0x228b04)return _0x1fa504['error'](_0x12834d(0x1422)),![];const _0x25e5f7=_0x48e45a[_0x12834d(0x122)](),_0x55e851=_0x1e5600[_0x73abd8];if(!_0x55e851)_0x1fa504[_0x12834d(0x1bd0)](_0x12834d(0x1ee0)+_0x73abd8+_0x12834d(0x588)),_0x25e5f7['reject'](_0x12834d(0x1ee0)+_0x73abd8+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!');else{const _0x351f24=_0x2ca77e(_0x55e851[_0x12834d(0x2761)],_0x55e851[_0x12834d(0xe1d)],_0x55e851['actions'],_0x55e851[_0x12834d(0x59e)]);_0x351f24[_0x228b04](_0x3db0da,function(_0x4a3e9b){const _0x3788b5=_0x12834d;_0x25e5f7['resolve'](_0x4a3e9b),_0x3643bb[_0x3788b5(0x1a2e)](_0x3788b5(0x20d0));},function(_0x4c9d35){const _0x5a3742=_0x12834d;_0x25e5f7[_0x5a3742(0x19d2)](_0x4c9d35),_0x3643bb[_0x5a3742(0x1a2e)](_0x5a3742(0x1a0a));});}return _0x25e5f7[_0x12834d(0x1713)];}function _0x2e771c(_0x3f1835,_0x31c4be,_0x2b0878,_0x54442a){const _0x467034=a0_0x4127;_0x3643bb[_0x467034(0x1a2e)](_0x467034(0x1e83));const _0x1b6ece=_0x3f1835['split']('@'),_0x2e4fab=_0x1b6ece[0x0],_0x3b8f7d=_0x1b6ece[0x1],_0x437a68=_0x31c4be||{};if(!_0x2e4fab||!_0x3b8f7d)return _0x1fa504['error'](_0x467034(0x1422)),![];const _0x51a0d7=_0x48e45a[_0x467034(0x122)](),_0x4acf68=_0x1e5600[_0x2e4fab];if(!_0x4acf68)_0x1fa504[_0x467034(0x1bd0)](_0x467034(0x1ee0)+_0x2e4fab+_0x467034(0x588)),_0x51a0d7[_0x467034(0x19d2)](_0x467034(0x1ee0)+_0x2e4fab+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!');else{const _0x37be54=_0x2ca77e(_0x4acf68[_0x467034(0x2761)],_0x4acf68['paramDefaults'],_0x4acf68[_0x467034(0x23ab)],_0x4acf68[_0x467034(0x59e)]);_0x37be54[_0x3b8f7d](_0x437a68,function(_0x4800d0){const _0xd08c8f=_0x467034;_0x3643bb[_0xd08c8f(0x1a2e)]('msApi::requestSuccess'),_0x51a0d7[_0xd08c8f(0x1268)](_0x4800d0),angular[_0xd08c8f(0x16ab)](_0x2b0878)&&angular[_0xd08c8f(0x130e)](_0x2b0878)&&_0x2b0878(_0x4800d0);},function(_0x905546){const _0x4dca60=_0x467034;_0x3643bb[_0x4dca60(0x1a2e)]('msApi::requestError'),_0x51a0d7[_0x4dca60(0x19d2)](_0x905546),angular[_0x4dca60(0x16ab)](_0x54442a)&&angular['isFunction'](_0x54442a)&&_0x54442a(_0x905546);});}return _0x51a0d7[_0x467034(0x1713)];}};}const _0x37a581=_0x222fdc;var _0xddc19b=_0x2e4a48(0x985),_0x40da22=_0x2e4a48['n'](_0xddc19b);;_0x124e72[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1fe7)];function _0x124e72(_0x1bf805){const _0x1e0def=_0x49a1e3,_0x17251e=new(_0x40da22())(_0x1bf805[_0x1e0def(0x88c)][_0x1e0def(0xf17)]);let _0x54fb69=null;const _0x1c8ce3={'exists':_0x3c9af5,'detectBrowser':_0x1e6f71,'guidGenerator':_0x49ef94,'isMobile':_0x34a208,'toggleInArray':_0x576c7b,'firstLastDayMonth':_0x36a7c7};return _0x1c8ce3;function _0x3c9af5(_0x38ecaf,_0x23059d){const _0x1c900c=_0x1e0def;return _0x23059d[_0x1c900c(0x1b28)](_0x38ecaf)>-0x1;}function _0x1e6f71(){const _0x120878=_0x1e0def;if(_0x54fb69)return _0x54fb69;const _0x5894ed=[{'string':_0x1bf805['navigator'][_0x120878(0xf17)],'subString':_0x120878(0x2141),'versionSearch':_0x120878(0x2141),'identity':_0x120878(0x2141)},{'string':_0x1bf805[_0x120878(0x88c)][_0x120878(0xf17)],'subString':_0x120878(0x28bb),'identity':'Chrome'},{'string':_0x1bf805[_0x120878(0x88c)][_0x120878(0xf17)],'subString':_0x120878(0x1c39),'versionSearch':'OmniWeb/','identity':_0x120878(0x1c39)},{'string':_0x1bf805[_0x120878(0x88c)]['vendor'],'subString':'Apple','versionSearch':_0x120878(0x919),'identity':_0x120878(0x703)},{'prop':_0x1bf805[_0x120878(0x1e93)],'identity':_0x120878(0x1c0)},{'string':_0x1bf805[_0x120878(0x88c)][_0x120878(0x1437)],'subString':_0x120878(0x1c45),'identity':'iCab'},{'string':_0x1bf805[_0x120878(0x88c)][_0x120878(0x1437)],'subString':'KDE','identity':_0x120878(0xe04)},{'string':_0x1bf805[_0x120878(0x88c)]['userAgent'],'subString':_0x120878(0x1186),'identity':_0x120878(0x1186)},{'string':_0x1bf805['navigator'][_0x120878(0x1437)],'subString':'Camino','identity':_0x120878(0x1e95)},{'string':_0x1bf805['navigator'][_0x120878(0xf17)],'subString':'Netscape','identity':_0x120878(0x6c3)},{'string':_0x1bf805['navigator'][_0x120878(0xf17)],'subString':_0x120878(0x625),'identity':_0x120878(0x1fdc),'versionSearch':'MSIE'},{'string':_0x1bf805[_0x120878(0x88c)][_0x120878(0xf17)],'subString':_0x120878(0x150c),'identity':'Explorer','versionSearch':'rv'},{'string':_0x1bf805[_0x120878(0x88c)][_0x120878(0xf17)],'subString':_0x120878(0x280a),'identity':_0x120878(0x2221),'versionSearch':'rv'},{'string':_0x1bf805[_0x120878(0x88c)][_0x120878(0xf17)],'subString':_0x120878(0x2221),'identity':_0x120878(0x6c3),'versionSearch':_0x120878(0x2221)}],_0x8487d2=[{'string':_0x1bf805['navigator'][_0x120878(0x23f5)],'subString':_0x120878(0x1315),'identity':_0x120878(0x1374)},{'string':_0x1bf805['navigator'][_0x120878(0x23f5)],'subString':_0x120878(0x21b9),'identity':'Mac'},{'string':_0x1bf805[_0x120878(0x88c)][_0x120878(0x23f5)],'subString':_0x120878(0x202b),'identity':'Linux'},{'string':_0x1bf805[_0x120878(0x88c)][_0x120878(0x23f5)],'subString':_0x120878(0x2121),'identity':_0x120878(0x2121)},{'string':_0x1bf805['navigator']['platform'],'subString':_0x120878(0x1c94),'identity':'iPod'},{'string':_0x1bf805['navigator'][_0x120878(0x23f5)],'subString':'iPad','identity':_0x120878(0x22c1)},{'string':_0x1bf805['navigator'][_0x120878(0x23f5)],'subString':_0x120878(0x1b53),'identity':_0x120878(0x1b53)}];let _0x3df5b0='';function _0x3be00f(_0x5c5cb0){const _0x1e11c8=_0x120878;for(let _0x14d4e9=0x0;_0x14d4e9<_0x5c5cb0[_0x1e11c8(0x1b9e)];_0x14d4e9++){const _0xc37151=_0x5c5cb0[_0x14d4e9][_0x1e11c8(0x108c)],_0x3e27fc=_0x5c5cb0[_0x14d4e9][_0x1e11c8(0x5a4)];_0x3df5b0=_0x5c5cb0[_0x14d4e9]['versionSearch']||_0x5c5cb0[_0x14d4e9]['identity'];if(_0xc37151){if(_0xc37151[_0x1e11c8(0x1b28)](_0x5c5cb0[_0x14d4e9][_0x1e11c8(0x14ff)])!==-0x1)return _0x5c5cb0[_0x14d4e9][_0x1e11c8(0x1902)];}else{if(_0x3e27fc)return _0x5c5cb0[_0x14d4e9][_0x1e11c8(0x1902)];}}}function _0x19c3fc(_0x51b4ff){const _0x17a96a=_0x51b4ff['indexOf'](_0x3df5b0);if(_0x17a96a===-0x1)return;return parseInt(_0x51b4ff['substring'](_0x17a96a+_0x3df5b0['length']+0x1));}let _0x472b38=_0x3be00f(_0x5894ed)||'unknown-browser',_0x42c90d=_0x19c3fc(_0x1bf805[_0x120878(0x88c)]['userAgent'])||_0x19c3fc(_0x1bf805[_0x120878(0x88c)][_0x120878(0x1405)])||_0x120878(0x247e),_0x39e1ff=_0x3be00f(_0x8487d2)||_0x120878(0xaf6);return _0x472b38=_0x472b38[_0x120878(0x2554)](),_0x42c90d=_0x472b38+'-'+_0x42c90d,_0x39e1ff=_0x39e1ff[_0x120878(0x2554)](),_0x54fb69={'browser':_0x472b38,'version':_0x42c90d,'os':_0x39e1ff},_0x54fb69;}function _0x49ef94(){const _0x32c5d4=function(){const _0x1313a5=a0_0x4127;return((0x1+Math[_0x1313a5(0x849)]())*0x10000||0x0)[_0x1313a5(0x2915)](0x10)[_0x1313a5(0x28b2)](0x1);};return _0x32c5d4()+_0x32c5d4()+_0x32c5d4()+_0x32c5d4()+_0x32c5d4()+_0x32c5d4();}function _0x34a208(){const _0x46f957=_0x1e0def;return _0x17251e[_0x46f957(0x26ed)]();}function _0x576c7b(_0x38be7,_0x4aab81){const _0x1e4a0e=_0x1e0def;_0x4aab81[_0x1e4a0e(0x1b28)](_0x38be7)===-0x1?_0x4aab81[_0x1e4a0e(0x1954)](_0x38be7):_0x4aab81[_0x1e4a0e(0x18f0)](_0x4aab81['indexOf'](_0x38be7),0x1);}function _0x36a7c7(){const _0xbb7f0f=_0x1e0def;return{'$gte':_0x2ac33a()()[_0xbb7f0f(0x246e)](_0xbb7f0f(0x5f5))[_0xbb7f0f(0xebc)](0x0,!![])[_0xbb7f0f(0x1c2c)](),'$lte':_0x2ac33a()()['endOf'](_0xbb7f0f(0x5f5))[_0xbb7f0f(0xebc)](0x0,!![])['format']()};}}const _0x7bd986=_0x124e72;;const _0x43d9df=_0x2e4a48['p']+_0x49a1e3(0xaec);;_0x27f01d[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x2899)],_0x33e1a1['$inject']=[_0x49a1e3(0x7a7),'motionTheming'];function _0x33e1a1(_0x2083cf,_0x35846e){const _0x4373a8=_0x49a1e3,_0x2d226e=this;_0x2d226e[_0x4373a8(0x41f)]=_0x35846e['themes'],_0x2d226e[_0x4373a8(0x1a34)]=[{'label':'Boxed','value':_0x4373a8(0x117e)},{'label':_0x4373a8(0x208b),'value':'wide'}],_0x2d226e[_0x4373a8(0x17b4)]=[{'label':_0x4373a8(0x1d0c),'value':_0x4373a8(0x14a6),'figure':_0x4373a8(0x1e76)},{'label':'Vertical\x20Navigation\x20with\x20Fullwidth\x20Toolbar','value':'verticalNavigationFullwidthToolbar','figure':_0x4373a8(0x2120)},{'label':_0x4373a8(0xea5),'value':'verticalNavigationFullwidthToolbar2','figure':_0x4373a8(0x27e5)},{'label':_0x4373a8(0xd6e),'value':'horizontalNavigation','figure':_0x4373a8(0x1c96)},{'label':_0x4373a8(0x572),'value':_0x4373a8(0x172c),'figure':_0x4373a8(0x129b)},{'label':_0x4373a8(0x143),'value':_0x4373a8(0x263f),'figure':_0x4373a8(0x1b82)}],_0x2d226e[_0x4373a8(0x1611)]=_0x4373a8(0x1fd4),_0x2d226e[_0x4373a8(0xcf3)]=_0x2083cf['get'](_0x4373a8(0x27fe))||_0x4373a8(0x14a6),_0x2d226e[_0x4373a8(0x142b)]=_0x346fff,_0x2d226e[_0x4373a8(0x114e)]=_0x229359,_0x2d226e['updateLayoutMode']=_0x4dc2c5,_0x2d226e[_0x4373a8(0x15cd)]=_0x304862;function _0x346fff(_0x373c54){_0x35846e['setActiveTheme'](_0x373c54);}function _0x229359(){const _0x9ff398=_0x4373a8;return _0x35846e[_0x9ff398(0x41f)][_0x9ff398(0xc51)];}function _0x4dc2c5(){const _0xd7e91a=_0x4373a8,_0xc33240=angular[_0xd7e91a(0x1f81)]('body');_0xc33240[_0xd7e91a(0x6fa)](_0xd7e91a(0x117e),_0x2d226e[_0xd7e91a(0x1611)]===_0xd7e91a(0x117e));}function _0x304862(){const _0x3983c1=_0x4373a8;_0x2083cf[_0x3983c1(0x2358)]('motion.layoutStyle',_0x2d226e[_0x3983c1(0xcf3)]),location[_0x3983c1(0x19f5)]();}}function _0x27f01d(_0x588fe3){const _0x967b00=_0x49a1e3;return{'restrict':'E','scope':{},'controller':_0x967b00(0x23d6),'templateUrl':_0x43d9df,'compile':function(_0x341492){const _0x1d8efb=_0x967b00;return _0x341492[_0x1d8efb(0xb6f)](_0x1d8efb(0x1e49)),function _0xc06b70(_0x1cc75a){const _0x15d615=_0x1d8efb;function _0x555291(){const _0x16f886=a0_0x4127;_0x588fe3('motion-theme-options')[_0x16f886(0x1f94)]();}_0x1cc75a[_0x15d615(0x1f58)]=_0x555291;};}};};_0x51f8c9[_0x49a1e3(0x1e73)]=['$cookies',_0x49a1e3(0xb5c),_0x49a1e3(0x2207)];function _0x51f8c9(_0x2b7e1b,_0x56e931,_0x11fa5c){const _0x3f26ef={},_0x39d4cb={'generate':_0x1a03a3,'rgba':_0x871f1};return _0x39d4cb;function _0x1a03a3(){const _0x5a6a3c=a0_0x4127,_0x37f58b=angular[_0x5a6a3c(0x289e)](_0x11fa5c[_0x5a6a3c(0x947)]()),_0x17ae0c=angular[_0x5a6a3c(0x289e)](_0x11fa5c['getRegisteredPalettes']());angular[_0x5a6a3c(0x1397)](_0x37f58b,function(_0x51ed51){const _0x219c4e=_0x5a6a3c;_0x3f26ef[_0x51ed51[_0x219c4e(0x2494)]]={},angular[_0x219c4e(0x1397)](_0x51ed51[_0x219c4e(0x94c)],function(_0x5c6772,_0x2d5ac9){const _0x571048=_0x219c4e;_0x3f26ef[_0x51ed51[_0x571048(0x2494)]][_0x2d5ac9]={'name':_0x5c6772[_0x571048(0x2494)],'levels':{'default':{'color':_0x871f1(_0x17ae0c[_0x5c6772[_0x571048(0x2494)]][_0x5c6772[_0x571048(0xd19)]['default']][_0x571048(0x1096)]),'contrast1':_0x871f1(_0x17ae0c[_0x5c6772[_0x571048(0x2494)]][_0x5c6772[_0x571048(0xd19)][_0x571048(0x416)]][_0x571048(0xfa1)],0x1),'contrast2':_0x871f1(_0x17ae0c[_0x5c6772['name']][_0x5c6772[_0x571048(0xd19)][_0x571048(0x416)]][_0x571048(0xfa1)],0x2),'contrast3':_0x871f1(_0x17ae0c[_0x5c6772[_0x571048(0x2494)]][_0x5c6772['hues'][_0x571048(0x416)]][_0x571048(0xfa1)],0x3),'contrast4':_0x871f1(_0x17ae0c[_0x5c6772[_0x571048(0x2494)]][_0x5c6772[_0x571048(0xd19)][_0x571048(0x416)]][_0x571048(0xfa1)],0x4)},'hue1':{'color':_0x871f1(_0x17ae0c[_0x5c6772['name']][_0x5c6772[_0x571048(0xd19)][_0x571048(0x28b0)]]['value']),'contrast1':_0x871f1(_0x17ae0c[_0x5c6772[_0x571048(0x2494)]][_0x5c6772[_0x571048(0xd19)][_0x571048(0x28b0)]][_0x571048(0xfa1)],0x1),'contrast2':_0x871f1(_0x17ae0c[_0x5c6772['name']][_0x5c6772[_0x571048(0xd19)][_0x571048(0x28b0)]][_0x571048(0xfa1)],0x2),'contrast3':_0x871f1(_0x17ae0c[_0x5c6772[_0x571048(0x2494)]][_0x5c6772['hues']['hue-1']][_0x571048(0xfa1)],0x3),'contrast4':_0x871f1(_0x17ae0c[_0x5c6772[_0x571048(0x2494)]][_0x5c6772['hues'][_0x571048(0x28b0)]][_0x571048(0xfa1)],0x4)},'hue2':{'color':_0x871f1(_0x17ae0c[_0x5c6772[_0x571048(0x2494)]][_0x5c6772['hues'][_0x571048(0x1804)]][_0x571048(0x1096)]),'contrast1':_0x871f1(_0x17ae0c[_0x5c6772[_0x571048(0x2494)]][_0x5c6772['hues'][_0x571048(0x1804)]][_0x571048(0xfa1)],0x1),'contrast2':_0x871f1(_0x17ae0c[_0x5c6772[_0x571048(0x2494)]][_0x5c6772[_0x571048(0xd19)]['hue-2']]['contrast'],0x2),'contrast3':_0x871f1(_0x17ae0c[_0x5c6772[_0x571048(0x2494)]][_0x5c6772[_0x571048(0xd19)][_0x571048(0x1804)]][_0x571048(0xfa1)],0x3),'contrast4':_0x871f1(_0x17ae0c[_0x5c6772[_0x571048(0x2494)]][_0x5c6772['hues'][_0x571048(0x1804)]][_0x571048(0xfa1)],0x4)},'hue3':{'color':_0x871f1(_0x17ae0c[_0x5c6772['name']][_0x5c6772[_0x571048(0xd19)][_0x571048(0x1df8)]][_0x571048(0x1096)]),'contrast1':_0x871f1(_0x17ae0c[_0x5c6772[_0x571048(0x2494)]][_0x5c6772[_0x571048(0xd19)][_0x571048(0x1df8)]]['contrast'],0x1),'contrast2':_0x871f1(_0x17ae0c[_0x5c6772[_0x571048(0x2494)]][_0x5c6772['hues'][_0x571048(0x1df8)]][_0x571048(0xfa1)],0x2),'contrast3':_0x871f1(_0x17ae0c[_0x5c6772[_0x571048(0x2494)]][_0x5c6772['hues'][_0x571048(0x1df8)]]['contrast'],0x3),'contrast4':_0x871f1(_0x17ae0c[_0x5c6772[_0x571048(0x2494)]][_0x5c6772['hues']['hue-3']]['contrast'],0x4)}}};});}),_0x2e102a(_0x3f26ef);let _0x187caa={};angular[_0x5a6a3c(0x1397)](_0x3f26ef,function(_0x367101,_0xa67741){const _0x185526=_0x5a6a3c;_0x187caa={},_0x187caa[_0x185526(0x2893)]=_0xa67741,angular[_0x185526(0x1397)](_0x367101,function(_0x3e15bd,_0x87758a){const _0x47dbd3=_0x185526;angular[_0x47dbd3(0x1397)](_0x3e15bd[_0x47dbd3(0x20c7)],function(_0x805410,_0x38facb){angular['forEach'](_0x805410,function(_0x1e3dc8,_0x36742b){_0x187caa['@'+_0x87758a+_0x3f4d83(_0x38facb)+_0x3f4d83(_0x36742b)]=_0x1e3dc8;});});}),_0xf58044(_0x187caa);});}function _0x2e102a(_0x4b8ac2){const _0x4f801e=a0_0x4127,_0x2dbeff=angular[_0x4f801e(0x289e)](_0x4b8ac2);angular[_0x4f801e(0x1397)](_0x2dbeff,function(_0xfa137f){angular['forEach'](_0xfa137f,function(_0x164bab,_0x547ac2){const _0x29aba1=a0_0x4127;_0xfa137f[_0x547ac2]=_0x164bab[_0x29aba1(0x20c7)],_0xfa137f[_0x547ac2]['color']=_0x164bab['levels'][_0x29aba1(0x416)][_0x29aba1(0x10c2)],_0xfa137f[_0x547ac2][_0x29aba1(0xf22)]=_0x164bab[_0x29aba1(0x20c7)][_0x29aba1(0x416)][_0x29aba1(0xf22)],_0xfa137f[_0x547ac2]['contrast2']=_0x164bab['levels']['default'][_0x29aba1(0x2139)],_0xfa137f[_0x547ac2]['contrast3']=_0x164bab['levels'][_0x29aba1(0x416)][_0x29aba1(0x729)],_0xfa137f[_0x547ac2]['contrast4']=_0x164bab['levels']['default'][_0x29aba1(0x224d)],delete _0xfa137f[_0x547ac2][_0x29aba1(0x416)];});}),_0x11fa5c[_0x4f801e(0x1b30)](_0x2dbeff);const _0x5059ae=_0x2b7e1b['get']('motion.selectedTheme');_0x5059ae?_0x11fa5c[_0x4f801e(0x142b)](_0x5059ae):_0x11fa5c[_0x4f801e(0x142b)](_0x4f801e(0x416));}function _0xf58044(_0x2302be){const _0x4fa184=a0_0x4127,_0x990832=_0x4fa184(0xdd2),_0x23df43=new RegExp(Object[_0x4fa184(0x1ec6)](_0x2302be)[_0x4fa184(0x9a6)]('|'),'gi'),_0x6f744b=_0x990832[_0x4fa184(0x1353)](_0x23df43,function(_0x579f45){return _0x2302be[_0x579f45];}),_0x318273=angular[_0x4fa184(0x1f81)]('head'),_0x15cd31=angular['element'](_0x4fa184(0x1159));_0x15cd31[_0x4fa184(0x1dd2)](_0x6f744b),_0x318273['append'](_0x15cd31);}function _0x871f1(_0x5d1d7a,_0x18e25f){const _0x161640=a0_0x4127,_0x47732b=_0x18e25f||![];_0x5d1d7a[_0x161640(0x1b9e)]===0x4&&_0x5d1d7a[0x0]===0xff&&_0x5d1d7a[0x1]===0xff&&_0x5d1d7a[0x2]===0xff&&_0x5d1d7a[_0x161640(0x18f0)](0x3,0x4);_0x47732b&&(_0x5d1d7a=_0xb69522(_0x5d1d7a,_0x47732b));if(_0x5d1d7a[_0x161640(0x1b9e)]===0x3)return'rgb('+_0x5d1d7a['join'](',')+')';else{if(_0x5d1d7a[_0x161640(0x1b9e)]===0x4)return _0x161640(0x212f)+_0x5d1d7a['join'](',')+')';else _0x56e931[_0x161640(0x1bd0)](_0x161640(0x2130)+_0x5d1d7a[_0x161640(0x1b9e)]+'\x0a'+_0x161640(0x272a));}}function _0xb69522(_0x5a3870,_0x434557){const _0x49a96d=a0_0x4127,_0x10c140={'white':{0x1:'1',0x2:_0x49a96d(0xc46),0x3:_0x49a96d(0x1d00),0x4:_0x49a96d(0x297f)},'black':{0x1:'0.87',0x2:_0x49a96d(0x1c86),0x3:_0x49a96d(0x12be),0x4:'0.12'}};if(_0x5a3870[0x0]===0xff&&_0x5a3870[0x1]===0xff&&_0x5a3870[0x2]===0xff)_0x5a3870[0x3]=_0x10c140[_0x49a96d(0x2064)][_0x434557];else _0x5a3870[0x0]===0x0&&_0x5a3870[0x1]===0x0&&_0x5a3870[0x2]===0x0&&(_0x5a3870[0x3]=_0x10c140[_0x49a96d(0x240e)][_0x434557]);return _0x5a3870;}function _0x3f4d83(_0x3df276){const _0x4d3fa5=a0_0x4127;return _0x3df276[_0x4d3fa5(0x9d6)](0x0)[_0x4d3fa5(0xa3c)]()+_0x3df276[_0x4d3fa5(0x142e)](0x1);}}const _0x5ca247=_0x51f8c9;;const _0x5aa02f=[{'name':'motion-blue','options':{0x32:'#ebf1fa',0x64:_0x49a1e3(0x1992),0xc8:_0x49a1e3(0x519),0x12c:_0x49a1e3(0x1ade),0x190:'#5688d3',0x1f4:_0x49a1e3(0x42d),0x258:'#2e62b1',0x2bc:_0x49a1e3(0xe57),0x320:_0x49a1e3(0xea1),0x384:_0x49a1e3(0x22a1),'A100':'#c2d4ef','A200':_0x49a1e3(0x519),'A400':'#5688d3','A700':_0x49a1e3(0xe57),'contrastDefaultColor':_0x49a1e3(0x9aa),'contrastDarkColors':_0x49a1e3(0x2107),'contrastStrongLightColors':_0x49a1e3(0x224a)}},{'name':_0x49a1e3(0x2298),'options':{0x32:'#ececee',0x64:_0x49a1e3(0x1457),0xc8:_0x49a1e3(0xfa0),0x12c:_0x49a1e3(0x1880),0x190:_0x49a1e3(0x1114),0x1f4:_0x49a1e3(0x1d58),0x258:_0x49a1e3(0x888),0x2bc:_0x49a1e3(0x911),0x320:_0x49a1e3(0x2ef),0x384:'#1e2129','A100':'#c5c6cb','A200':_0x49a1e3(0xfa0),'A400':'#5c616f','A700':'#2d323e','contrastDefaultColor':_0x49a1e3(0x9aa),'contrastDarkColors':_0x49a1e3(0x2107),'contrastStrongLightColors':_0x49a1e3(0x224a)}}],_0x345fe7=_0x5aa02f;;const _0xdc8a58={'default':{'primary':{'name':_0x49a1e3(0x2298),'hues':{'default':'700','hue-1':'500','hue-2':_0x49a1e3(0x1c7c),'hue-3':_0x49a1e3(0xfab)}},'accent':{'name':_0x49a1e3(0x2162),'hues':{'default':'600','hue-1':_0x49a1e3(0xfab),'hue-2':_0x49a1e3(0xb4e),'hue-3':_0x49a1e3(0xb13)}},'warn':{'name':_0x49a1e3(0x224)},'background':{'name':'grey','hues':{'default':'A100','hue-1':_0x49a1e3(0xb13),'hue-2':_0x49a1e3(0x13ae),'hue-3':_0x49a1e3(0x17e6)}}},'pinkTheme':{'primary':{'name':_0x49a1e3(0x47b),'hues':{'default':_0x49a1e3(0x208e),'hue-1':'600','hue-2':_0x49a1e3(0xfab),'hue-3':'A100'}},'accent':{'name':_0x49a1e3(0x87c),'hues':{'default':_0x49a1e3(0xfab),'hue-1':_0x49a1e3(0x17e6),'hue-2':_0x49a1e3(0x1c7c),'hue-3':_0x49a1e3(0xb13)}},'warn':{'name':'blue'},'background':{'name':_0x49a1e3(0xe6f),'hues':{'default':_0x49a1e3(0xb13),'hue-1':'A100','hue-2':_0x49a1e3(0x13ae),'hue-3':_0x49a1e3(0x17e6)}}},'tealTheme':{'primary':{'name':_0x49a1e3(0x248a),'hues':{'default':_0x49a1e3(0x1193),'hue-1':_0x49a1e3(0x1c7c),'hue-2':_0x49a1e3(0x16ee),'hue-3':_0x49a1e3(0xb13)}},'accent':{'name':_0x49a1e3(0x1d78),'hues':{'default':_0x49a1e3(0x16ee),'hue-1':_0x49a1e3(0xfab),'hue-2':_0x49a1e3(0x1c7c),'hue-3':_0x49a1e3(0xb13)}},'warn':{'name':_0x49a1e3(0x2013)},'background':{'name':_0x49a1e3(0xe6f),'hues':{'default':_0x49a1e3(0xb13),'hue-1':'A100','hue-2':_0x49a1e3(0x13ae),'hue-3':_0x49a1e3(0x17e6)}}}},_0x2e29a0=_0xdc8a58;;_0x2b72c3[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1aa1),_0x49a1e3(0x1fcd),_0x49a1e3(0x234)];function _0x2b72c3(_0x486021,_0x15d728,_0xb65cf2){const _0x1aa173=_0x49a1e3;let _0x2d7eed;angular[_0x1aa173(0xd16)]([_0x1aa173(0xb3e)])[_0x1aa173(0x15d5)]([_0x1aa173(0x7a7),function(_0x370e4d){_0x2d7eed=_0x370e4d;}]);const _0x109ba8=_0x2d7eed[_0x1aa173(0x233e)](_0x1aa173(0x93a));_0x109ba8&&(_0xb65cf2[_0x1aa173(0x1ad6)]=_0x109ba8),_0x486021[_0x1aa173(0x915)](!![]),angular['forEach'](_0x15d728,function(_0x2f7386){const _0x3af0cc=_0x1aa173;_0x486021[_0x3af0cc(0x254a)](_0x2f7386[_0x3af0cc(0x2494)],_0x2f7386[_0x3af0cc(0x59e)]);}),angular['forEach'](_0xb65cf2,function(_0x24f8c7,_0x28c7f0){const _0x1315be=_0x1aa173;_0x486021[_0x1315be(0x14ac)](_0x28c7f0)[_0x1315be(0x23c)](_0x24f8c7[_0x1315be(0xd59)]['name'],_0x24f8c7[_0x1315be(0xd59)]['hues'])[_0x1315be(0x18be)](_0x24f8c7[_0x1315be(0x1feb)][_0x1315be(0x2494)],_0x24f8c7['accent'][_0x1315be(0xd19)])[_0x1315be(0xa18)](_0x24f8c7[_0x1315be(0x185c)][_0x1315be(0x2494)],_0x24f8c7['warn'][_0x1315be(0xd19)])['backgroundPalette'](_0x24f8c7['background'][_0x1315be(0x2494)],_0x24f8c7[_0x1315be(0x291c)][_0x1315be(0xd19)]);});}const _0x3476ab=_0x2b72c3;;_0xbd22cc[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0xb5c),'$mdTheming'];function _0xbd22cc(_0x533076,_0x2f4833,_0x436fbc){const _0x4c3805={'getRegisteredPalettes':_0x142d05,'getRegisteredThemes':_0x50b933,'setActiveTheme':_0x5c2299,'setThemesList':_0x5aef77,'themes':{'list':{},'active':{'name':'','theme':{}}}};return _0x4c3805;function _0x142d05(){const _0x28edfc=a0_0x4127;return _0x436fbc[_0x28edfc(0x984)];}function _0x50b933(){const _0x53f09e=a0_0x4127;return _0x436fbc[_0x53f09e(0x187e)];}function _0x5c2299(_0x1c8e01){const _0x4746b9=a0_0x4127;if(angular['isUndefined'](_0x4c3805[_0x4746b9(0x41f)]['list'][_0x1c8e01])){if(angular[_0x4746b9(0x1a01)](_0x4c3805[_0x4746b9(0x41f)][_0x4746b9(0x2764)][_0x4746b9(0x416)])){_0x2f4833[_0x4746b9(0x1bd0)](_0x4746b9(0x219b));return;}_0x2f4833[_0x4746b9(0x185c)](_0x4746b9(0x17b1)+_0x1c8e01+_0x4746b9(0xf21)),_0x4c3805[_0x4746b9(0x41f)][_0x4746b9(0xc51)]['name']=_0x4746b9(0x416),_0x4c3805['themes'][_0x4746b9(0xc51)][_0x4746b9(0x14ac)]=_0x4c3805[_0x4746b9(0x41f)]['list'][_0x4746b9(0x416)],_0x533076[_0x4746b9(0x2358)](_0x4746b9(0x2026),_0x4c3805[_0x4746b9(0x41f)][_0x4746b9(0xc51)][_0x4746b9(0x2494)]);return;}_0x4c3805[_0x4746b9(0x41f)][_0x4746b9(0xc51)][_0x4746b9(0x2494)]=_0x1c8e01,_0x4c3805['themes']['active'][_0x4746b9(0x14ac)]=_0x4c3805['themes'][_0x4746b9(0x2764)][_0x1c8e01],_0x533076['put'](_0x4746b9(0x2026),_0x1c8e01);}function _0x5aef77(_0x327f2b){const _0x572497=a0_0x4127;_0x4c3805['themes'][_0x572497(0x2764)]=_0x327f2b;}}const _0x5b1255=_0xbd22cc;;let _0x56fc5e=angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x1290),[_0x49a1e3(0x1610),_0x49a1e3(0x1a87),_0x49a1e3(0xb3e),'ngMessages',_0x49a1e3(0x1db6),_0x49a1e3(0x1261),_0x49a1e3(0x72f),_0x49a1e3(0x437),_0x49a1e3(0x19c4),_0x49a1e3(0x10d),_0x49a1e3(0x1275),_0x49a1e3(0xb52),_0x49a1e3(0x275d)])[_0x49a1e3(0x16bb)](_0x49a1e3(0x24ed),_0x1eeca0)[_0x49a1e3(0x3d3)](_0x480071)[_0x49a1e3(0x1a43)](_0x2258e7)['controller'](_0x49a1e3(0x271c),_0x1d754d);_0x56fc5e=_0x298908[_0x49a1e3(0x1e05)]((_0x17c3ab,[_0x57ece2,_0x201df9,_0x50179f])=>{const _0x9dc3b9=_0x49a1e3;switch(_0x50179f){case _0x9dc3b9(0xb2a):_0x17c3ab[_0x9dc3b9(0xb2a)](_0x57ece2,_0x201df9);break;case _0x9dc3b9(0x16bb):_0x17c3ab[_0x9dc3b9(0x16bb)](_0x57ece2,_0x201df9);break;case'controller':_0x17c3ab[_0x9dc3b9(0x38e)](_0x57ece2,_0x201df9);break;case _0x9dc3b9(0x646):_0x17c3ab[_0x9dc3b9(0x646)](_0x57ece2,_0x201df9);break;default:break;}return _0x17c3ab;},_0x56fc5e),_0x56fc5e['factory'](_0x49a1e3(0x1b7f),_0x228560)[_0x49a1e3(0xcec)](_0x49a1e3(0x10b9),_0x1f00b4)[_0x49a1e3(0xcec)](_0x49a1e3(0xd88),_0x17499f)[_0x49a1e3(0xcec)](_0x49a1e3(0x68f),_0x57b080)[_0x49a1e3(0xcec)](_0x49a1e3(0x1cc0),_0xb9b9ed)[_0x49a1e3(0xcec)](_0x49a1e3(0x97e),_0x55f151)[_0x49a1e3(0xcec)](_0x49a1e3(0xd56),_0x4801d1)['filter'](_0x49a1e3(0x537),_0x54b200)[_0x49a1e3(0xcec)](_0x49a1e3(0x598),_0x16ae4d)[_0x49a1e3(0xcec)](_0x49a1e3(0x19f7),_0x461bbc)[_0x49a1e3(0xcec)](_0x49a1e3(0x143e),_0x3a1fd8)[_0x49a1e3(0xcec)](_0x49a1e3(0x1271),_0x3e26a5)[_0x49a1e3(0xcec)](_0x49a1e3(0x514),_0x22ff51)[_0x49a1e3(0x16bb)]('motNotification',_0x213366)[_0x49a1e3(0x646)]('apiResolver',_0x15d77c)[_0x49a1e3(0x646)]('LoadingIndicatorService',_0xf4c395)[_0x49a1e3(0x16bb)](_0x49a1e3(0xf0d),_0x37a581)[_0x49a1e3(0x646)](_0x49a1e3(0x1214),_0x7bd986)[_0x49a1e3(0x38e)](_0x49a1e3(0x126),_0x33e1a1)[_0x49a1e3(0xb2a)]('msThemeOptions',_0x27f01d)[_0x49a1e3(0x646)](_0x49a1e3(0x1264),_0x5ca247)[_0x49a1e3(0xbc7)]('motionPalettes',_0x345fe7)[_0x49a1e3(0xbc7)](_0x49a1e3(0x234),_0x2e29a0)[_0x49a1e3(0x3d3)](_0x3476ab)[_0x49a1e3(0xe15)](_0x49a1e3(0x2207),_0x5b1255);;_0x479cec[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$cookies',_0x49a1e3(0x28d6),_0x49a1e3(0x633),_0x49a1e3(0xbe5),_0x49a1e3(0xdcf),_0x49a1e3(0xa19)];function _0x479cec(_0x2f13fe,_0x196b96,_0x3109cd,_0x1df2ba,_0x464c3d,_0x16ee92,_0xf7b85b){const _0x18be6d=_0x49a1e3,_0x23ec15=this;_0x23ec15[_0x18be6d(0x1a48)]=angular[_0x18be6d(0x1f81)](_0x18be6d(0xb49)),_0x23ec15[_0x18be6d(0x3ed)]={'suppressScrollX':!![]},_0x23ec15[_0x18be6d(0x28d6)]=_0x3109cd,_0x23ec15[_0x18be6d(0xeba)]=_0xf7b85b[_0x18be6d(0xeba)],_0x23ec15['$onInit']=_0xea9761,_0x23ec15[_0x18be6d(0x1dc)]=_0x50b772,_0x23ec15['getLogo']=_0xbbd46e,_0x1df2ba['on']('dashboard:save',_0x10f99d),_0x1df2ba['on']('dashboard:update',_0x10f99d),_0x1df2ba['on'](_0x18be6d(0x28dc),_0x9b3cea),_0x1df2ba['on'](_0x18be6d(0x23ba),_0xfb4565),_0x1df2ba['on'](_0x18be6d(0x107),_0xfb4565),_0x1df2ba['on'](_0x18be6d(0x1ac2),_0x1dceae);function _0xea9761(){const _0x13629e=_0x18be6d;_0x23ec15['folded']=_0x196b96[_0x13629e(0x896)](_0x13629e(0x7d1))===_0x13629e(0x1685)||![];}function _0x50b772(){const _0x169794=_0x18be6d;_0x23ec15[_0x169794(0x79c)]=!_0x23ec15[_0x169794(0x79c)],_0x196b96[_0x169794(0x2358)](_0x169794(0x7d1),_0x23ec15[_0x169794(0x79c)]);}function _0xbbd46e(){const _0x4eeb52=_0x18be6d;return _0x23ec15[_0x4eeb52(0x28d6)][_0x4eeb52(0x7a8)]?_0x4eeb52(0xf11):_0x23ec15[_0x4eeb52(0x28d6)][_0x4eeb52(0x14d8)];}function _0x10f99d(_0x507493){const _0x37574d=_0x18be6d;if(_0x507493&&_0x507493['id']){const _0x39aebe=0x1869f+_0x507493['id'];_0x464c3d[_0x37574d(0x1dbc)](_0x37574d(0xaf0)+_0x39aebe,{'id':_0x39aebe,'title':_0x507493['name']||_0x37574d(0x23af),'state':'app.dashboards.custom','stateParams':_0x507493,'weight':0x2,'hidden':function(){const _0x47ad6b=_0x37574d;return _0x16ee92[_0x47ad6b(0x4de)](_0x47ad6b(0x11ae))||!_0x16ee92[_0x47ad6b(0x1244)](_0x39aebe)&&!_0x16ee92[_0x47ad6b(0x4de)](_0x47ad6b(0x333));}});}}function _0x9b3cea(_0x2f55c3){if(_0x2f55c3&&_0x2f55c3['id']){const _0x460c22=0x1869f+_0x2f55c3['id'];_0x464c3d['deleteItem']('apps.dashboards.custom_'+_0x460c22);}}function _0xfb4565(_0x1e992a){const _0x245c62=_0x18be6d;if(_0x1e992a&&_0x1e992a['id']&&_0x1e992a[_0x245c62(0x14b7)]!=_0x245c62(0x233a)){if(_0x1e992a[_0x245c62(0xc51)]){if(_0x1e992a[_0x245c62(0x14b7)]==_0x245c62(0xa66)||_0x1e992a['sidebar']==_0x245c62(0x4b6)){_0x464c3d[_0x245c62(0x1dbc)](_0x245c62(0x13c),{'id':0x76c,'title':_0x245c62(0x45a),'translate':_0x245c62(0x1a88),'icon':_0x245c62(0xd46),'weight':0x11,'hidden':function(){const _0x2f70be=_0x245c62;return _0x16ee92[_0x2f70be(0x4de)](_0x2f70be(0x11ae))||!_0x16ee92[_0x2f70be(0x1244)](0x76c)&&!_0x16ee92[_0x2f70be(0x4de)]('admin');}});const _0x28762b=0x15b38+_0x1e992a['id'];_0x464c3d[_0x245c62(0x1dbc)](_0x245c62(0x164d)+_0x28762b,{'id':_0x28762b,'title':_0x1e992a['name']||_0x245c62(0x23af),'state':_0x245c62(0x1f84),'stateParams':_0x1e992a,'weight':0x2,'hidden':function(){const _0x62dc9=_0x245c62;return _0x16ee92[_0x62dc9(0x4de)](_0x62dc9(0x11ae))||!_0x16ee92[_0x62dc9(0x1244)](_0x28762b)&&!_0x16ee92[_0x62dc9(0x4de)](_0x62dc9(0x333));}}),_0x464c3d[_0x245c62(0x768)]();}}else{const _0x5e39b1=0x15b38+_0x1e992a['id'];_0x545c35(0x76c,_0x5e39b1)&&(_0x1e992a['sidebar']=='always'||_0x1e992a[_0x245c62(0x14b7)]==_0x245c62(0x4b6))&&(_0x464c3d['deleteItem'](_0x245c62(0x164d)+_0x5e39b1),!_0x1e8406(0x76c)&&_0x464c3d['saveItem'](_0x245c62(0x13c),{'id':0x76c,'title':_0x245c62(0x45a),'translate':_0x245c62(0x1a88),'icon':'icon-apps','weight':0x11,'hidden':function(){return!![];}}));}}}function _0x1dceae(_0x2028f1){const _0x1a1692=_0x18be6d;if(_0x2028f1&&_0x2028f1['id']&&_0x2028f1[_0x1a1692(0x14b7)]!=_0x1a1692(0x233a)){const _0x4b11a0=0x15b38+_0x2028f1['id'];(_0x2028f1['sidebar']=='always'||_0x2028f1[_0x1a1692(0x14b7)]=='adminOnly')&&(_0x464c3d[_0x1a1692(0x126d)](_0x1a1692(0x164d)+_0x4b11a0),!_0x1e8406(0x76c)&&_0x464c3d['saveItem'](_0x1a1692(0x13c),{'id':0x76c,'title':'Plugins','translate':'PLUGINS.PLUGINS','icon':_0x1a1692(0xd46),'weight':0x11,'hidden':function(){return!![];}}));}}function _0x1e8406(_0x17471e){const _0xd4f3b1=_0x18be6d,_0x3de1fb=_0x464c3d['getNavigation'](),_0xde37af=_0x28c606()[_0xd4f3b1(0x27bc)](_0x3de1fb[0x0][_0xd4f3b1(0x1730)],{'id':_0x17471e});return _0xde37af&&_0xde37af[_0xd4f3b1(0x1730)][_0xd4f3b1(0x1b9e)]>0x0?!![]:![];}function _0x545c35(_0x1be52c,_0x16f0ca){const _0x1d6026=_0x18be6d,_0x2df6af=_0x464c3d[_0x1d6026(0x1054)](),_0x60c1dd=_0x28c606()['find'](_0x2df6af[0x0][_0x1d6026(0x1730)],{'id':_0x1be52c});if(!_0x60c1dd)return![];return _0x28c606()[_0x1d6026(0x25f8)](_0x60c1dd[_0x1d6026(0x1730)],{'id':_0x16f0ca});}_0x2f13fe[_0x18be6d(0x8c7)](_0x18be6d(0x15a6),function(){const _0x5cb300=_0x18be6d;_0x23ec15[_0x5cb300(0x1a48)]['removeClass'](_0x5cb300(0xe76));});}const _0x22ab74=_0x479cec;;function _0x660e10(){}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x1bad),[])['config'](_0x660e10)['controller'](_0x49a1e3(0x21f2),_0x22ab74);;_0x379345[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$mdDialog','$mdToast',_0x49a1e3(0xa19),_0x49a1e3(0x2e8),_0x49a1e3(0x28d6),_0x49a1e3(0x2839)];function _0x379345(_0x514cc8,_0x12803d,_0xa015d2,_0x30984e,_0x58c7e3,_0x2c9683,_0x17e057){const _0x337c05=_0x49a1e3,_0x5df73a=this;_0x5df73a[_0x337c05(0xbae)]=[],_0x5df73a[_0x337c05(0x2e8)]=_0x58c7e3,_0x5df73a[_0x337c05(0x28d6)]=_0x2c9683,_0x5df73a[_0x337c05(0x2839)]=_0x17e057,_0x5df73a[_0x337c05(0xccc)]=_0x5df73a['setting'][_0x337c05(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5df73a[_0x337c05(0xb7e)]=_0x1c7542,_0x5df73a['closeDialog']=_0x458977,_0x514cc8[_0x337c05(0xc62)]('vm.password',function(_0x4746b3){const _0x5976b7=_0x337c05;!_0x28c606()['isNil'](_0x5df73a[_0x5976b7(0x1d9)])&&(_0x4746b3===_0x5df73a[_0x5976b7(0x1d9)]?_0x514cc8[_0x5976b7(0x622)][_0x5976b7(0x441)][_0x5976b7(0x1737)](_0x5976b7(0x24a0),![]):_0x514cc8['changePasswordForm'][_0x5976b7(0x441)]['$setValidity']('oldPasswordMatch',!![]));});function _0x1c7542(){const _0x511ae3=_0x337c05;_0x5df73a[_0x511ae3(0xbae)]=[],_0x30984e[_0x511ae3(0x2e8)][_0x511ae3(0x56d)]({'id':_0x5df73a[_0x511ae3(0x2e8)]['id']},{'oldPassword':_0x5df73a[_0x511ae3(0x1d9)],'newPassword':_0x5df73a['password']})[_0x511ae3(0x15e7)][_0x511ae3(0x64a)](function(){const _0x46e53e=_0x511ae3;_0xa015d2[_0x46e53e(0xa60)](_0xa015d2[_0x46e53e(0x6e5)]()[_0x46e53e(0x250d)](_0x46e53e(0x19a5))[_0x46e53e(0x14f7)](_0x46e53e(0xb86))[_0x46e53e(0x4f3)](0x1388)),_0x458977();})['catch'](function(_0x54a407){const _0x4b33dd=_0x511ae3;console[_0x4b33dd(0x1bd0)](_0x54a407),_0x5df73a[_0x4b33dd(0xbae)]=_0x54a407[_0x4b33dd(0x1c52)][_0x4b33dd(0xbae)]&&_0x54a407['data']['errors']['length']?_0x54a407[_0x4b33dd(0x1c52)][_0x4b33dd(0xbae)]:[{'message':_0x54a407[_0x4b33dd(0x1c52)][_0x4b33dd(0x18ca)]||_0x4b33dd(0x1d8b),'type':'api.user.changePassword'}];});}function _0x458977(){const _0x428987=_0x337c05;_0x12803d[_0x428987(0x268e)]();}}const _0xd25ee9=_0x379345;;_0x6086be[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),_0x49a1e3(0x680),'api','preview','customFields'];function _0x6086be(_0x4b4176,_0x4f50ee,_0x3b5988,_0x2a0a39,_0x132621,_0x3de567,_0x4842eb,_0x252374){const _0x3330ee=_0x49a1e3,_0x98f93=this;_0x98f93['customFieldsMap']=_0x252374&&_0x252374['rows']?_0x28c606()[_0x3330ee(0x239c)](_0x28c606()[_0x3330ee(0x161e)](_0x252374[_0x3330ee(0x28b8)],function(_0x46082d){const _0x39a46e=_0x3330ee;return _0x39a46e(0x48d)+_0x46082d['id'];}),_0x3330ee(0x2494)):{},_0x98f93[_0x3330ee(0xbae)]=[],_0x98f93['hopperIds']=[],_0x98f93[_0x3330ee(0x2842)]=_0x4842eb,_0x98f93[_0x3330ee(0xa1b)]=![],_0x98f93[_0x3330ee(0xdbd)]=![],_0x98f93[_0x3330ee(0x98d)]=![],_0x98f93[_0x3330ee(0x2219)]['push'](_0x98f93[_0x3330ee(0x2842)]['id']),_0x98f93['originatePreview']=_0x3e84c9,_0x98f93[_0x3330ee(0x16cb)]=_0x4b7afa,_0x98f93[_0x3330ee(0x491)]=_0x25a55d,_0x98f93[_0x3330ee(0x2171)]=_0x29f16f,_0x98f93[_0x3330ee(0x1f12)]=_0x3aa8ae,_0x98f93[_0x3330ee(0x1fb3)]=_0x2ba6b7,_0x98f93['isHiddenField']=_0x4587c3,_0x98f93[_0x3330ee(0x28d7)]=_0x5aea29;function _0x5aea29(_0x2987ce){const _0x331cc2=_0x3330ee;return _0x28c606()[_0x331cc2(0x28d7)](_0x2987ce);}function _0x2ba6b7(_0x4261a4){const _0x1cb7db=_0x3330ee;return _0x28c606()[_0x1cb7db(0x1273)](_0x4261a4,_0x1cb7db(0x48d));}function _0x4587c3(_0x3d1f04){const _0x28dbd2=_0x3330ee;return _0x28c606()[_0x28dbd2(0x68a)](['Company','CompanyId',_0x28dbd2(0x869),_0x28dbd2(0x246c),_0x28dbd2(0x2378),_0x28dbd2(0x7c3),'id',_0x28dbd2(0x1095),_0x28dbd2(0x28f0),'tags',_0x28dbd2(0x2056),_0x28dbd2(0x253e),_0x28dbd2(0x15be),_0x28dbd2(0x2828),_0x28dbd2(0x22e1),'teams',_0x28dbd2(0x149a),_0x28dbd2(0x52b),_0x28dbd2(0x53d)],_0x3d1f04);}function _0x3e84c9(){const _0x3f58b9=_0x3330ee;_0x98f93['originated']=!![],_0x98f93[_0x3f58b9(0xdbd)]=!![],_0x28c606()['isEmpty'](_0x98f93[_0x3f58b9(0x2842)])?(_0x132621['error']({'title':_0x3f58b9(0x149d),'msg':_0x3f58b9(0x4b0)}),_0x98f93[_0x3f58b9(0xdbd)]=![],_0x98f93['hopperIds']=[],_0x4b7afa(!![])):_0x3de567[_0x3f58b9(0x19bd)][_0x3f58b9(0x1a52)]({'id':_0x98f93[_0x3f58b9(0x2842)]['id']})[_0x3f58b9(0x15e7)][_0x3f58b9(0x64a)](function(){_0x4b7afa(!![]);})[_0x3f58b9(0x20cd)](function(_0x24e790){_0x132621['error']({'title':'Message','msg':_0x24e790['data']}),_0x4b7afa(!![]);})['finally'](function(){const _0x10c7cd=_0x3f58b9;_0x98f93[_0x10c7cd(0xdbd)]=![],_0x98f93[_0x10c7cd(0x2219)]=[];});}function _0x4b7afa(_0x230858){const _0x4dd095=_0x3330ee;_0x28c606()[_0x4dd095(0x28d7)](_0x230858)&&_0x3de567[_0x4dd095(0x232f)]['update']({'id':_0x98f93[_0x4dd095(0x2842)]['id'],'UserId':null}),_0x2a0a39[_0x4dd095(0x268e)]();}_0x4b4176['$on'](_0x3330ee(0xf28),function(){const _0x1097e0=_0x3330ee;!_0x98f93[_0x1097e0(0xa1b)]&&_0x3de567['cmHopper'][_0x1097e0(0x2603)]({'id':_0x98f93[_0x1097e0(0x2842)]['id'],'UserId':null});});function _0x25a55d(){const _0x4e668e=_0x3330ee;return _0x98f93[_0x4e668e(0x98d)]=!![],_0x3de567[_0x4e668e(0x232f)]['getPreview']({'hopperIds':_0x98f93['hopperIds'],'direction':_0x4e668e(0x14b1)})[_0x4e668e(0x15e7)][_0x4e668e(0x64a)](function(_0x4acba2){const _0x2a7fa5=_0x4e668e;_0x98f93[_0x2a7fa5(0x98d)]=![],!_0x28c606()[_0x2a7fa5(0x28d7)](_0x4acba2)&&!_0x28c606()[_0x2a7fa5(0x28d7)](_0x4acba2[_0x2a7fa5(0x285e)])&&_0x4acba2['Queue'][_0x2a7fa5(0x11b3)]?(!_0x98f93['originated']&&_0x3de567['cmHopper'][_0x2a7fa5(0x2603)]({'id':_0x98f93[_0x2a7fa5(0x2842)]['id'],'UserId':null}),_0x98f93[_0x2a7fa5(0x2842)]=_0x4acba2,_0x98f93[_0x2a7fa5(0x2219)][_0x2a7fa5(0x1954)](_0x98f93[_0x2a7fa5(0x2842)]['id'])):(_0x98f93['hopperIds']=[],_0x2a0a39[_0x2a7fa5(0x268e)](),_0x132621['info']({'title':_0x2a7fa5(0x20a1),'msg':'CAMPAIGN\x20NOT\x20ACTIVE'}));})['catch'](function(_0x295a5e){const _0x1f17c3=_0x4e668e;_0x98f93[_0x1f17c3(0x98d)]=![],_0x98f93[_0x1f17c3(0x2219)]=[];if(_0x295a5e[_0x1f17c3(0x10b3)]===0x194)_0x98f93['getFirstAvailableContact']();else{if(_0x295a5e[_0x1f17c3(0x1c52)]&&_0x295a5e[_0x1f17c3(0x1c52)][_0x1f17c3(0xbae)]&&_0x295a5e[_0x1f17c3(0x1c52)][_0x1f17c3(0xbae)][_0x1f17c3(0x1b9e)]){_0x2a0a39[_0x1f17c3(0x268e)]();for(let _0x53c95f=0x0;_0x53c95f<_0x295a5e[_0x1f17c3(0x1c52)][_0x1f17c3(0xbae)][_0x1f17c3(0x1b9e)];_0x53c95f+=0x1){_0x132621[_0x1f17c3(0x1bd0)]({'title':_0x295a5e['data'][_0x1f17c3(0xbae)][_0x53c95f][_0x1f17c3(0x2185)],'msg':_0x295a5e[_0x1f17c3(0x1c52)][_0x1f17c3(0xbae)][_0x53c95f][_0x1f17c3(0x18ca)]});}}else _0x2a0a39[_0x1f17c3(0x268e)](),_0x132621[_0x1f17c3(0x1bd0)]({'title':_0x295a5e['status']?'API:'+_0x295a5e[_0x1f17c3(0x10b3)]+_0x1f17c3(0x21db)+_0x295a5e[_0x1f17c3(0x2115)]:_0x1f17c3(0x1b3b),'msg':_0x295a5e[_0x1f17c3(0x1c52)]?JSON[_0x1f17c3(0x2317)](_0x295a5e[_0x1f17c3(0x1c52)][_0x1f17c3(0x18ca)]):_0x295a5e[_0x1f17c3(0x2915)]()});}});}function _0x29f16f(){const _0x1c7c55=_0x3330ee;_0x98f93['disableGetContact']=!![];if(_0x98f93[_0x1c7c55(0x2219)][_0x1c7c55(0x1b9e)]>0x1){const _0x1ab7ed=_0x28c606()[_0x1c7c55(0x22c)](_0x98f93[_0x1c7c55(0x2219)],_0x98f93['preview']['id']);return _0x3de567['cmHopper']['getPreview']({'hopperIds':_0x1ab7ed,'direction':_0x1c7c55(0x13c9)})[_0x1c7c55(0x15e7)][_0x1c7c55(0x64a)](function(_0x5e09f3){const _0x28ee49=_0x1c7c55;_0x98f93[_0x28ee49(0x98d)]=![],!_0x28c606()[_0x28ee49(0x28d7)](_0x5e09f3)&&!_0x28c606()[_0x28ee49(0x28d7)](_0x5e09f3[_0x28ee49(0x285e)])&&_0x5e09f3[_0x28ee49(0x285e)]['dialActive']?(_0x28c606()[_0x28ee49(0x21c7)](_0x98f93[_0x28ee49(0x2219)],function(_0x3a5a09){return _0x3a5a09==_0x98f93['preview']['id'];}),!_0x98f93[_0x28ee49(0xa1b)]&&_0x3de567['cmHopper'][_0x28ee49(0x2603)]({'id':_0x98f93[_0x28ee49(0x2842)]['id'],'UserId':null}),_0x98f93[_0x28ee49(0x2842)]=_0x5e09f3):(_0x98f93['hopperIds']=[],_0x2a0a39[_0x28ee49(0x268e)](),_0x132621[_0x28ee49(0x772)]({'title':_0x28ee49(0x20a1),'msg':_0x28ee49(0x2485)}));})[_0x1c7c55(0x20cd)](function(_0x1bd8a0){const _0x442efb=_0x1c7c55;if(_0x1bd8a0[_0x442efb(0x10b3)]===0x194)_0x98f93['hopperIds']=[_0x98f93[_0x442efb(0x2842)]['id']],_0x132621[_0x442efb(0x772)]({'title':'PREVIEW','msg':_0x442efb(0x132f)});else{if(_0x1bd8a0[_0x442efb(0x1c52)]&&_0x1bd8a0[_0x442efb(0x1c52)]['errors']&&_0x1bd8a0[_0x442efb(0x1c52)][_0x442efb(0xbae)]['length']){_0x98f93[_0x442efb(0x2219)]=[],_0x2a0a39['hide']();for(let _0x167f3a=0x0;_0x167f3a<_0x1bd8a0['data'][_0x442efb(0xbae)]['length'];_0x167f3a+=0x1){_0x132621[_0x442efb(0x1bd0)]({'title':_0x1bd8a0[_0x442efb(0x1c52)]['errors'][_0x167f3a][_0x442efb(0x2185)],'msg':_0x1bd8a0[_0x442efb(0x1c52)]['errors'][_0x167f3a][_0x442efb(0x18ca)]});}}else _0x98f93['hopperIds']=[],_0x2a0a39[_0x442efb(0x268e)](),_0x132621[_0x442efb(0x1bd0)]({'title':_0x1bd8a0[_0x442efb(0x10b3)]?'API:'+_0x1bd8a0[_0x442efb(0x10b3)]+_0x442efb(0x21db)+_0x1bd8a0[_0x442efb(0x2115)]:_0x442efb(0x1b3b),'msg':_0x1bd8a0[_0x442efb(0x1c52)]?JSON[_0x442efb(0x2317)](_0x1bd8a0['data']['message']):_0x1bd8a0[_0x442efb(0x2915)]()});}});}}function _0x3aa8ae(){const _0x3d5c59=_0x3330ee;return _0x98f93[_0x3d5c59(0x98d)]=!![],_0x132621[_0x3d5c59(0x772)]({'title':_0x3d5c59(0x20a1),'msg':_0x3d5c59(0xb6b)}),_0x3de567[_0x3d5c59(0x232f)][_0x3d5c59(0x1658)]({'hopperIds':[_0x98f93['preview']['id']],'direction':_0x3d5c59(0x14b1)})[_0x3d5c59(0x15e7)][_0x3d5c59(0x64a)](function(_0x13bddd){const _0x383f95=_0x3d5c59;!_0x28c606()['isNil'](_0x13bddd)&&!_0x28c606()[_0x383f95(0x28d7)](_0x13bddd[_0x383f95(0x285e)])&&_0x13bddd['Queue'][_0x383f95(0x11b3)]?(!_0x98f93[_0x383f95(0xa1b)]&&_0x3de567[_0x383f95(0x232f)]['update']({'id':_0x98f93[_0x383f95(0x2842)]['id'],'UserId':null}),_0x98f93[_0x383f95(0x2842)]=_0x13bddd,_0x98f93[_0x383f95(0x2219)][_0x383f95(0x1954)](_0x98f93[_0x383f95(0x2842)]['id'])):(_0x2a0a39['hide'](),_0x132621[_0x383f95(0x772)]({'title':_0x383f95(0x20a1),'msg':_0x383f95(0x2485)}));})['catch'](function(_0xcda6b5){const _0x239eba=_0x3d5c59;_0x2a0a39['hide']();if(_0xcda6b5[_0x239eba(0x10b3)]===0x194)_0x132621[_0x239eba(0x772)]({'title':_0x239eba(0x20a1),'msg':_0x239eba(0x198e)});else{if(_0xcda6b5[_0x239eba(0x1c52)]&&_0xcda6b5[_0x239eba(0x1c52)]['errors']&&_0xcda6b5[_0x239eba(0x1c52)]['errors']['length'])for(let _0x38de69=0x0;_0x38de69<_0xcda6b5[_0x239eba(0x1c52)][_0x239eba(0xbae)]['length'];_0x38de69+=0x1){_0x132621['error']({'title':_0xcda6b5[_0x239eba(0x1c52)][_0x239eba(0xbae)][_0x38de69][_0x239eba(0x2185)],'msg':_0xcda6b5[_0x239eba(0x1c52)][_0x239eba(0xbae)][_0x38de69][_0x239eba(0x18ca)]});}else _0x132621[_0x239eba(0x1bd0)]({'title':_0xcda6b5[_0x239eba(0x10b3)]?_0x239eba(0x575)+_0xcda6b5[_0x239eba(0x10b3)]+'\x20-\x20'+_0xcda6b5[_0x239eba(0x2115)]:'api\x20preview','msg':_0xcda6b5[_0x239eba(0x1c52)]?JSON[_0x239eba(0x2317)](_0xcda6b5[_0x239eba(0x1c52)]['message']):_0xcda6b5[_0x239eba(0x2915)]()});}})[_0x3d5c59(0x988)](function(){const _0x64691b=_0x3d5c59;_0x98f93[_0x64691b(0x98d)]=![];});}}const _0x36c561=_0x6086be;;const _0x38f82f=_0x2e4a48['p']+_0x49a1e3(0x270f);;const _0x8d46ce=_0x2e4a48['p']+_0x49a1e3(0x66a);;_0x16f2fd[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$rootScope','$q','$state',_0x49a1e3(0x20d4),_0x49a1e3(0x1155),_0x49a1e3(0x2899),_0x49a1e3(0x298c),'$mdToast',_0x49a1e3(0x1fe7),'$mdDialog',_0x49a1e3(0x1373),'$cookies',_0x49a1e3(0x680),'msNavigationService',_0x49a1e3(0xdcf),_0x49a1e3(0x633),_0x49a1e3(0xa19),'license',_0x49a1e3(0x28d6),'$interval'];function _0x16f2fd(_0x2d8870,_0x1cdfbb,_0xc0fe43,_0x83a301,_0x72c794,_0x483e9e,_0xbe13e4,_0x34e994,_0x245298,_0x59e2a6,_0x4d4bcf,_0x23af7a,_0x5217f4,_0x2cf985,_0x1fc249,_0x1c11c1,_0x1eea5d,_0x466cb5,_0x5b4388,_0x16c6f0,_0x251dd8){const _0x104174=_0x49a1e3,_0x333140=this;_0x333140['voiceQueues']={},_0x333140[_0x104174(0x1cf9)]=!![],_0x333140[_0x104174(0xeba)]=_0x466cb5['baseUrl'];let _0x2f90cc;_0x1cdfbb[_0x104174(0x228)]={'search':''},_0x333140[_0x104174(0x23d1)]=[],_0x333140[_0x104174(0x1947)]=_0x5b4388,_0x333140[_0x104174(0x1d3d)]=_0x1c11c1[_0x104174(0x808)](),_0x333140['unreadTotalMessages']=0x0,_0x333140[_0x104174(0x27b1)]=0x0,_0x333140[_0x104174(0x71e)]=0x0;_0x333140[_0x104174(0x1d3d)]['role']===_0x104174(0x11ae)&&(_0x2f90cc=_0x251dd8(_0x2c65d8,0x3a97));_0x333140[_0x104174(0x28d6)]=_0x16c6f0,_0x333140[_0x104174(0x1a48)]=angular[_0x104174(0x1f81)]('body'),_0x333140['conf']={'realm':_0x104174(0x2072),'host':_0x483e9e[_0x104174(0x1e5d)](),'protocol':_0x483e9e[_0x104174(0x48e)](),'remotePlayerId':_0x104174(0x5e8),'ua':_0x104174(0xb61),'license':_0x333140['license'][_0x104174(0x31f)],'phoneBarExpires':_0x333140[_0x104174(0x1d3d)]['phoneBarExpires'],'phoneBarPrefixRequired':_0x333140[_0x104174(0x1d3d)][_0x104174(0xdad)]},_0x333140[_0x104174(0x289a)]={'id':_0x1c11c1[_0x104174(0x808)]()['id'],'fields':_0x104174(0x22d0),'channel':_0x104174(0x227c),'nolimit':!![]},_0x333140[_0x104174(0x201d)]=[{'title':_0x104174(0x23e9),'icon':_0x104174(0x2402),'color':_0x104174(0x12a8)},{'title':_0x104174(0x252b),'icon':'icon-clock','color':_0x104174(0xa73)},{'title':_0x104174(0x9c2),'icon':_0x104174(0xc1d),'color':_0x104174(0x228b)},{'title':_0x104174(0x2901),'icon':_0x104174(0x19c7),'color':_0x104174(0x22ac)},{'title':'Offline','icon':'icon-checkbox-blank-circle-outline','color':'#616161'}],_0x333140['languages']={'ar':{'title':_0x104174(0x2862),'translation':_0x104174(0x1398),'code':'ar','flag':'ar'},'da':{'title':_0x104174(0x5f1),'translation':_0x104174(0x1623),'code':'da','flag':'da'},'de':{'title':_0x104174(0x10a4),'translation':_0x104174(0x1327),'code':'de','flag':'de'},'en':{'title':_0x104174(0x1230),'translation':'TOOLBAR.ENGLISH','code':'en','flag':'us'},'es':{'title':_0x104174(0x656),'translation':'TOOLBAR.SPANISH','code':'es','flag':'es'},'fa':{'title':_0x104174(0x8ff),'translation':_0x104174(0x97b),'code':'fa','flag':'fa'},'fi':{'title':_0x104174(0x11d8),'translation':_0x104174(0x13e6),'code':'fi','flag':'fi'},'fr':{'title':'French','translation':'TOOLBAR.FRENCH','code':'fr','flag':'fr'},'he':{'title':'Hebrew','translation':_0x104174(0x1228),'code':'he','flag':'he'},'hi':{'title':_0x104174(0xb30),'translation':_0x104174(0x352),'code':'hi','flag':'hi'},'id':{'title':_0x104174(0x2079),'translation':'TOOLBAR.INDONESIAN','code':'id','flag':'id'},'it':{'title':'Italian','translation':_0x104174(0x8a9),'code':'it','flag':'it'},'ja':{'title':_0x104174(0xf5c),'translation':_0x104174(0xb45),'code':'ja','flag':'ja'},'ko':{'title':_0x104174(0x1ec8),'translation':_0x104174(0x17c1),'code':'ko','flag':'ko'},'lv':{'title':_0x104174(0x13ef),'translation':_0x104174(0x1ba8),'code':'lv','flag':'lv'},'nl':{'title':_0x104174(0x183),'translation':_0x104174(0xfe7),'code':'nl','flag':'nl'},'no':{'title':_0x104174(0x22d3),'translation':_0x104174(0x180a),'code':'no','flag':'no'},'pl':{'title':_0x104174(0x17c4),'translation':_0x104174(0xe6a),'code':'pl','flag':'pl'},'pt-BR':{'title':_0x104174(0x123b),'translation':_0x104174(0x24af),'code':_0x104174(0x2857),'flag':'pt-BR'},'pt-PT':{'title':_0x104174(0x67e),'translation':_0x104174(0x1b3f),'code':_0x104174(0x1254),'flag':_0x104174(0x1254)},'ru':{'title':'Russian','translation':'TOOLBAR.RUSSIAN','code':'ru','flag':'ru'},'sv':{'title':_0x104174(0xa2d),'translation':'TOOLBAR.SWEDISH','code':'sv','flag':'sv'},'tr':{'title':_0x104174(0x2060),'translation':_0x104174(0x8d6),'code':'tr','flag':'tr'},'zh-CN':{'title':_0x104174(0x2692),'translation':_0x104174(0x23db),'code':'zh-CN','flag':'zh-CN'},'zh-TW':{'title':_0x104174(0x1aa0),'translation':_0x104174(0x3a5),'code':_0x104174(0x147b),'flag':_0x104174(0x147b)}};const _0x53c0f7=['ar','fa','he'];_0x333140[_0x104174(0xfb3)]=_0x50f90a,_0x333140['logout']=_0x268897,_0x333140[_0x104174(0x183e)]=_0x544761,_0x333140['setUserStatus']=_0x38f8cc,_0x333140[_0x104174(0x136d)]=_0x49812f,_0x333140['toggleMsNavigationFolded']=_0x39d3f8,_0x333140[_0x104174(0xb58)]=_0x3873f3,_0x333140['searchResultClick']=_0x3d3e30,_0x333140[_0x104174(0x7a0)]=_0x20a27a,_0x333140[_0x104174(0x56d)]=_0x57d8cc,_0x333140[_0x104174(0x11f4)]=_0x41f3d1,_0x333140[_0x104174(0x1777)]=_0x2182d8,_0x333140[_0x104174(0x1b25)]=_0x4ba558,_0x333140[_0x104174(0x2826)]=_0x1b19a5,_0x333140[_0x104174(0x818)]=_0x2f866a,_0x333140[_0x104174(0x2842)]=_0x49887f,_0x333140[_0x104174(0x1307)]=_0x21e13d,_0x333140[_0x104174(0x15d4)]=_0x4c175b,_0x333140[_0x104174(0x22af)]=_0x1966ee,_0x333140[_0x104174(0x2373)]=_0x238d9b,_0x333140[_0x104174(0xf93)]=_0x1f68e2,_0x333140[_0x104174(0xcf1)]=_0x146535,_0x159a9b(),_0x17bb3a(),_0x3c72ef();function _0x159a9b(){const _0x4b72e8=_0x104174;_0x333140['user']=_0x1c11c1[_0x4b72e8(0x808)](),_0x333140[_0x4b72e8(0x912)]['ha1']=_0x333140['user']['md5secret'],_0x333140[_0x4b72e8(0x912)]['id']=_0x333140[_0x4b72e8(0x2e8)]['id'],_0x333140['conf'][_0x4b72e8(0x2494)]=_0x333140[_0x4b72e8(0x2e8)][_0x4b72e8(0x2494)],_0x333140['conf']['fullname']=_0x333140[_0x4b72e8(0x2e8)][_0x4b72e8(0x15c)],_0x333140[_0x4b72e8(0x912)][_0x4b72e8(0xe2f)]=_0x333140[_0x4b72e8(0x2e8)][_0x4b72e8(0xe2f)],_0x333140[_0x4b72e8(0x912)]['recording']=_0x333140[_0x4b72e8(0x2e8)][_0x4b72e8(0x1b91)],_0x333140[_0x4b72e8(0x912)]['autoAnswer']=_0x333140[_0x4b72e8(0x2e8)][_0x4b72e8(0x2008)],_0x333140[_0x4b72e8(0x912)][_0x4b72e8(0x1a7b)]=_0x333140[_0x4b72e8(0x2e8)][_0x4b72e8(0x16f5)],_0x333140['conf']['enableDtmfTone']=_0x333140[_0x4b72e8(0x2e8)]['phoneBarEnableDtmfTone'],_0x333140[_0x4b72e8(0x912)][_0x4b72e8(0xe0a)]=_0x333140['user'][_0x4b72e8(0x423)],_0x333140[_0x4b72e8(0x367)]=_0x333140[_0x4b72e8(0x201d)][0x0];const _0x2c229=_0x5217f4[_0x4b72e8(0x896)](_0x4b72e8(0x1c1b));_0x2c229&&typeof _0x333140[_0x4b72e8(0x1f99)][_0x2c229]!==_0x4b72e8(0x19a1)?_0x333140['selectedLanguage']=_0x333140[_0x4b72e8(0x1f99)][_0x2c229]:_0x333140[_0x4b72e8(0x1dc4)]=_0x333140[_0x4b72e8(0x1f99)][_0x34e994[_0x4b72e8(0x1b80)]()];_0x466cb5[_0x4b72e8(0x2826)][_0x4b72e8(0x896)]({'fields':_0x4b72e8(0x2494),'nolimit':!![]})[_0x4b72e8(0x15e7)][_0x4b72e8(0x64a)](function(_0x94cce0){const _0x461714=_0x4b72e8;_0x333140[_0x461714(0x23d1)]=_0x94cce0[_0x461714(0x28b8)]?_0x94cce0[_0x461714(0x28b8)]:[];})[_0x4b72e8(0x20cd)](function(_0xe9e084){const _0x3bcbcb=_0x4b72e8;_0x2cf985[_0x3bcbcb(0x1bd0)]({'title':_0xe9e084[_0x3bcbcb(0x10b3)]?_0x3bcbcb(0x575)+_0xe9e084['status']+_0x3bcbcb(0x21db)+_0xe9e084[_0x3bcbcb(0x2115)]:'SYSTEM:GETPAUSES','msg':_0xe9e084[_0x3bcbcb(0x10b3)]?JSON[_0x3bcbcb(0x2317)](_0xe9e084[_0x3bcbcb(0x1c52)]):_0xe9e084[_0x3bcbcb(0x2915)]()});});if(_0x1c11c1[_0x4b72e8(0xd8e)]()==_0x4b72e8(0x27c2)){if(_0x333140['setting'][_0x4b72e8(0x263c)]){if(!_0x333140[_0x4b72e8(0x2e8)][_0x4b72e8(0x2499)])_0x57d8cc(null,!![]);else{const _0x43c7a3=_0x2ac33a()(_0x333140['user'][_0x4b72e8(0x2499)])[_0x4b72e8(0x25df)](_0x333140[_0x4b72e8(0x28d6)][_0x4b72e8(0xab7)]||0x5a,'day');if(_0x2ac33a()()[_0x4b72e8(0x25c8)](_0x43c7a3))_0x57d8cc(null,!![]);else _0x2ac33a()()[_0x4b72e8(0x25df)](0xf,_0x4b72e8(0x2784))[_0x4b72e8(0x25c8)](_0x43c7a3)&&_0x2cf985[_0x4b72e8(0x51b)]({'title':_0x34e994[_0x4b72e8(0x2292)](_0x4b72e8(0x1450))+'!','msg':_0x34e994[_0x4b72e8(0x2292)](_0x4b72e8(0x58d))+':\x20'+Math[_0x4b72e8(0x192a)](_0x43c7a3[_0x4b72e8(0x2a5)](_0x2ac33a()(),_0x4b72e8(0x19d1),!![])),'timeout':0x4e20});}}}}function _0x3c72ef(){const _0x3ee7d0=_0x104174;_0x1eea5d[_0x3ee7d0(0x25fa)](),_0x1eea5d['on'](_0x3ee7d0(0x130f),_0x333140[_0x3ee7d0(0x1777)]),_0x1eea5d['on'](_0x3ee7d0(0x2271),_0x333140['onUserCalled']),_0x1eea5d['on'](_0x3ee7d0(0x14bd),_0x333140[_0x3ee7d0(0x22af)]),_0x1eea5d['on']('chatInternalMessage:update',_0x333140[_0x3ee7d0(0x2373)]),_0x1eea5d['on'](_0x3ee7d0(0x44b),_0x333140['onUserVoiceQueue']),_0x1eea5d['on'](_0x3ee7d0(0x2007),_0x333140[_0x3ee7d0(0xcf1)]),_0x1eea5d['on'](_0x3ee7d0(0x289d),_0x333140[_0x3ee7d0(0xf93)]),_0x1eea5d['on']('voiceQueue:remove',_0x333140['onVoiceQueue']),_0x1eea5d['on'](_0x3ee7d0(0x4ff),_0x333140[_0x3ee7d0(0xcf1)]),_0x1eea5d['on'](_0x3ee7d0(0x4f7),_0x8afe90),_0x1eea5d['on'](_0x3ee7d0(0x224b),_0x3b37ef);}function _0x258113(){const _0x3a8be1=_0x104174;_0x1eea5d[_0x3a8be1(0x1951)](_0x3a8be1(0x2271)),_0x1eea5d['removeAllListeners'](_0x3a8be1(0x130f)),_0x1eea5d[_0x3a8be1(0x1951)](_0x3a8be1(0x14bd)),_0x1eea5d[_0x3a8be1(0x1951)](_0x3a8be1(0x770)),_0x1eea5d[_0x3a8be1(0x1951)](_0x3a8be1(0x44b)),_0x1eea5d['removeAllListeners'](_0x3a8be1(0x2007)),_0x1eea5d[_0x3a8be1(0x1951)](_0x3a8be1(0x289d)),_0x1eea5d[_0x3a8be1(0x1951)](_0x3a8be1(0x2526)),_0x1eea5d['removeAllListeners'](_0x3a8be1(0x4ff)),_0x1eea5d['removeAllListeners'](_0x3a8be1(0x4f7)),_0x1eea5d[_0x3a8be1(0x1951)](_0x3a8be1(0x224b)),_0x1eea5d[_0x3a8be1(0x1c31)]();}function _0x1e0b08(_0x16e219){const _0x38bc93=_0x104174;_0x333140['voiceQueues']=_0x16e219?_0x28c606()[_0x38bc93(0x161e)](_0x16e219['rows']?_0x16e219[_0x38bc93(0x28b8)]:[],'id'):{};}function _0x17bb3a(){const _0x386e7d=_0x104174;_0x333140[_0x386e7d(0x1713)]=_0x466cb5[_0x386e7d(0x2e8)][_0x386e7d(0x1f2c)](_0x333140['query'],_0x1e0b08)[_0x386e7d(0x15e7)];}function _0x146535(){_0x17bb3a();}function _0x1f68e2(_0x3abd29){const _0x2bb04b=_0x104174;_0x28c606()[_0x2bb04b(0x26d4)](_0x3abd29[_0x2bb04b(0x246c)])===_0x1c11c1['getCurrentUser']()['id']&&_0x17bb3a();}function _0x1b19a5(_0x1f1c8d){const _0x3299d2=_0x104174;return _0x466cb5[_0x3299d2(0x2e8)]['pause']({'id':_0x333140[_0x3299d2(0x2e8)]['id'],'type':_0x1f1c8d||'DEFAULT\x20PAUSE'})[_0x3299d2(0x15e7)][_0x3299d2(0x20cd)](function(_0x163c35){const _0x3452be=_0x3299d2;_0x2cf985[_0x3452be(0x1bd0)]({'title':_0x163c35[_0x3452be(0x10b3)]?_0x3452be(0x575)+_0x163c35[_0x3452be(0x10b3)]+_0x3452be(0x21db)+_0x163c35[_0x3452be(0x2115)]:_0x3452be(0x1ef4),'msg':_0x163c35[_0x3452be(0x10b3)]?JSON['stringify'](_0x163c35[_0x3452be(0x1c52)]):_0x163c35[_0x3452be(0x2915)]()});});}function _0x2f866a(){const _0x44d70e=_0x104174;return _0x466cb5['user'][_0x44d70e(0x818)]({'id':_0x333140[_0x44d70e(0x2e8)]['id']})[_0x44d70e(0x15e7)][_0x44d70e(0x20cd)](function(_0x457e59){const _0x478ec6=_0x44d70e;_0x2cf985[_0x478ec6(0x1bd0)]({'title':_0x457e59[_0x478ec6(0x10b3)]?_0x478ec6(0x575)+_0x457e59[_0x478ec6(0x10b3)]+'\x20-\x20'+_0x457e59[_0x478ec6(0x2115)]:_0x478ec6(0x1067),'msg':_0x457e59[_0x478ec6(0x10b3)]?JSON[_0x478ec6(0x2317)](_0x457e59['data']):_0x457e59[_0x478ec6(0x2915)]()});});}function _0x49887f(_0xc5cf7b){const _0x1ef203=_0x104174;return _0x333140[_0x1ef203(0xdbd)]=!![],_0x466cb5[_0x1ef203(0x232f)][_0x1ef203(0x1658)]()[_0x1ef203(0x15e7)][_0x1ef203(0x64a)](function(_0x3ead30){const _0x3333e3=_0x1ef203;!_0x28c606()[_0x3333e3(0x28d7)](_0x3ead30)&&!_0x28c606()[_0x3333e3(0x28d7)](_0x3ead30[_0x3333e3(0x285e)])&&_0x3ead30['Queue'][_0x3333e3(0x11b3)]?_0x4d4bcf['show']({'controller':_0x3333e3(0x1086),'controllerAs':'vm','templateUrl':_0x38f82f,'parent':angular['element'](_0x23af7a[_0x3333e3(0xb49)]),'targetEvent':_0xc5cf7b,'clickOutsideToClose':!![],'locals':{'preview':_0x3ead30},'resolve':{'customFields':[_0x3333e3(0x107c),function(_0x39f8ed){const _0x5b8426=_0x3333e3;return _0x39f8ed[_0x5b8426(0x1268)](_0x5b8426(0x244c),{'nolimit':!![]});}]}}):_0x2cf985['info']({'title':'PREVIEW','msg':_0x3333e3(0x2485)});})['catch'](function(_0x4a0a79){const _0x116f50=_0x1ef203;if(_0x4a0a79[_0x116f50(0x10b3)]===0x194)_0x2cf985[_0x116f50(0x772)]({'title':_0x116f50(0x20a1),'msg':_0x116f50(0x20f3)});else{if(_0x4a0a79[_0x116f50(0x1c52)]&&_0x4a0a79[_0x116f50(0x1c52)][_0x116f50(0xbae)]&&_0x4a0a79[_0x116f50(0x1c52)][_0x116f50(0xbae)][_0x116f50(0x1b9e)]){_0x333140['errors']=_0x4a0a79['data'][_0x116f50(0xbae)]||[{'message':_0x4a0a79[_0x116f50(0x2915)](),'type':_0x116f50(0x1ebc)}];for(let _0x1ff805=0x0;_0x1ff805<_0x4a0a79[_0x116f50(0x1c52)][_0x116f50(0xbae)][_0x116f50(0x1b9e)];_0x1ff805+=0x1){_0x2cf985[_0x116f50(0x1bd0)]({'title':_0x4a0a79[_0x116f50(0x1c52)][_0x116f50(0xbae)][_0x1ff805]['type'],'msg':_0x4a0a79['data']['errors'][_0x1ff805]['message']});}}else _0x2cf985[_0x116f50(0x1bd0)]({'title':_0x4a0a79[_0x116f50(0x10b3)]?_0x116f50(0x575)+_0x4a0a79[_0x116f50(0x10b3)]+_0x116f50(0x21db)+_0x4a0a79[_0x116f50(0x2115)]:_0x116f50(0x1ebc),'msg':_0x4a0a79[_0x116f50(0x1c52)]?JSON['stringify'](_0x4a0a79[_0x116f50(0x1c52)]['message']):_0x4a0a79[_0x116f50(0x2915)]()});}})[_0x1ef203(0x988)](function(){const _0x69c944=_0x1ef203;_0x333140[_0x69c944(0xdbd)]=![];});}function _0x50f90a(_0x2b40d3){_0xbe13e4(_0x2b40d3)['toggle']();}function _0x4c175b(){const _0x2b8455=_0x104174;return _0x333140['currentUser']['role']===_0x2b8455(0x333)||_0x333140[_0x2b8455(0x1d3d)][_0x2b8455(0x161a)]===_0x2b8455(0x2e8)||_0x333140[_0x2b8455(0x1d3d)][_0x2b8455(0x161a)]===_0x2b8455(0x11ae)&&_0x333140[_0x2b8455(0x1d3d)][_0x2b8455(0xd6a)]!==0x0;}_0x466cb5[_0x104174(0x72d)][_0x104174(0x896)]({'fields':_0x104174(0xdc6),'ToId':_0x333140[_0x104174(0x1d3d)]['id'],'read':![],'nolimit':!![]})[_0x104174(0x15e7)][_0x104174(0x64a)](function(_0xbe8588){const _0x9ea7a0=_0x104174;_0x333140[_0x9ea7a0(0x11f5)]=_0xbe8588[_0x9ea7a0(0x28b8)][_0x9ea7a0(0x1b9e)];});function _0x1966ee(_0x52b750){const _0x21dc6=_0x104174;_0x52b750['ToId']===_0x333140[_0x21dc6(0x1d3d)]['id']&&!_0x52b750['ChatGroupId']&&(_0x333140[_0x21dc6(0x11f5)]+=0x1),_0x52b750['ToId']===_0x333140[_0x21dc6(0x1d3d)]['id']&&_0x52b750['FromId']!==_0x333140['currentUser']['id']&&!_0x52b750[_0x21dc6(0x12a6)]&&_0x52b750[_0x21dc6(0x1412)]&&_0x333140[_0x21dc6(0x27b1)]++;}function _0x238d9b(_0x3cf80c){const _0x202b98=_0x104174;_0x3cf80c[_0x202b98(0x1f7b)]===_0x333140[_0x202b98(0x1d3d)]['id']&&_0x3cf80c[_0x202b98(0x12a6)]&&_0x333140[_0x202b98(0x11f5)]>0x0&&!_0x3cf80c[_0x202b98(0x1412)]&&(_0x333140[_0x202b98(0x11f5)]-=0x1),_0x3cf80c[_0x202b98(0x1f7b)]===_0x333140[_0x202b98(0x1d3d)]['id']&&_0x3cf80c['read']&&_0x3cf80c['ChatGroupId']&&_0x333140[_0x202b98(0x27b1)]>0x0&&_0x333140[_0x202b98(0x27b1)]--;}function _0x38f8cc(_0x401afe){const _0x4070a8=_0x104174;_0x333140[_0x4070a8(0x367)]=_0x401afe;}function _0x268897(_0x54ec1b){const _0x989136=_0x104174;return _0x258113(),_0x1c11c1[_0x989136(0xad9)](_0x54ec1b)[_0x989136(0x64a)](function(){const _0x2ba899=_0x989136;return _0x1cdfbb[_0x2ba899(0x1a2e)](_0x2ba899(0xf5d)),_0x83a301['go'](_0x2ba899(0x354));})[_0x989136(0x20cd)](function(_0x22902f){const _0x3da65a=_0x989136;console[_0x3da65a(0x1bd0)](_0x22902f);});}function _0x544761(_0x58e72c){const _0x551419=_0x104174;if(typeof _0x333140[_0x551419(0x1f99)][_0x58e72c[_0x551419(0x741)]]==_0x551419(0x19a1)){const _0x4cfff9='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.';_0x245298[_0x551419(0xa60)]({'template':_0x551419(0x121f)+_0x4cfff9+_0x551419(0xdab),'hideDelay':0x1b58,'position':_0x551419(0xb86),'parent':_0x551419(0x24d3)});return;}_0x333140[_0x551419(0x1dc4)]=_0x58e72c,_0x5217f4['put'](_0x551419(0x1c1b),_0x58e72c[_0x551419(0x741)]),_0x34e994['use'](_0x58e72c[_0x551419(0x741)]),_0x83a301[_0x551419(0xa6c)][_0x551419(0x2494)]===_0x551419(0x1cea)&&_0x59e2a6['location'][_0x551419(0x19f5)](),_0x53c0f7[_0x551419(0x1b28)](_0x58e72c[_0x551419(0x741)])>=0x0?_0x2cf985[_0x551419(0x772)]({'title':_0x34e994[_0x551419(0x2292)](_0x551419(0x20e6)),'msg':_0x34e994[_0x551419(0x2292)](_0x551419(0x16ed))}):_0x2d8870[_0x551419(0x4e3)][_0x551419(0x4e3)]['vm']['direction']=_0x551419(0x142a);}function _0x49812f(){const _0xb76be7=_0x104174;_0x333140[_0xb76be7(0x1a48)]['toggleClass'](_0xb76be7(0xe76));}function _0x39d3f8(){const _0xd891d=_0x104174;_0x1fc249[_0xd891d(0x1629)]();}function _0x3873f3(_0x40ba16){const _0x920bc1=_0x104174;let _0x4b35b7=[];const _0x155e0c=_0x1fc249['getFlatNavigation'](),_0x35d9c9=_0xc0fe43[_0x920bc1(0x122)]();for(let _0x82b963=0x0;_0x82b963<_0x155e0c[_0x920bc1(0x1b9e)];_0x82b963++){_0x155e0c[_0x82b963][_0x920bc1(0x1181)]&&_0x4b35b7[_0x920bc1(0x1954)](_0x155e0c[_0x82b963]);}return _0x40ba16&&(_0x4b35b7=_0x4b35b7['filter'](function(_0x51aaa6){const _0x40606e=_0x920bc1;if(_0x51aaa6['title'][_0x40606e(0x2554)]()['includes'](_0x40ba16[_0x40606e(0x2554)]()))return!![];})),_0x72c794(function(){const _0x4ea245=_0x920bc1;_0x35d9c9[_0x4ea245(0x1268)](_0x4b35b7);},0x3e8),_0x35d9c9[_0x920bc1(0x1713)];}function _0x3d3e30(_0x54c690){const _0x52e866=_0x104174;_0x54c690[_0x52e866(0x1181)]&&(_0x54c690['stateParams']?_0x83a301['go'](_0x54c690[_0x52e866(0x14f2)],_0x54c690[_0x52e866(0x1f21)]):_0x83a301['go'](_0x54c690[_0x52e866(0x14f2)]));}function _0x20a27a(){const _0x2fe0b6=_0x104174;_0x1cdfbb[_0x2fe0b6(0x1a2e)]('webrtc::settings');}function _0x57d8cc(_0x455e1b,_0xd90fe1){const _0x166368=_0x104174;_0x4d4bcf[_0x166368(0xa60)]({'controller':_0x166368(0x135),'controllerAs':'vm','templateUrl':_0x8d46ce,'parent':angular['element'](_0x23af7a['body']),'targetEvent':_0x455e1b,'clickOutsideToClose':_0xd90fe1?![]:!![],'escapeToClose':_0xd90fe1?![]:!![],'locals':{'user':_0x333140['user'],'setting':_0x16c6f0,'reset':_0xd90fe1}});}function _0x41f3d1(){const _0xb0ec44=_0x104174;return _0x1c11c1[_0xb0ec44(0x808)]()&&_0x1c11c1[_0xb0ec44(0x4de)](_0xb0ec44(0x11ae));}function _0x2182d8(_0x2b6c89){const _0x4071ba=_0x104174;if(_0x2b6c89['id']===_0x333140[_0x4071ba(0x2e8)]['id']){if(_0x2b6c89[_0x4071ba(0x161a)]==='agent'&&_0x28c606()[_0x4071ba(0x15ed)](_0x2b6c89['online'])&&!_0x2b6c89[_0x4071ba(0x1eab)]){if(_0x333140[_0x4071ba(0x2e8)][_0x4071ba(0xd6a)]!==0x0){_0x258113();const _0x165ab2=_0x4d4bcf[_0x4071ba(0x856)]()[_0x4071ba(0x2021)](_0x34e994[_0x4071ba(0x2292)](_0x4071ba(0x1450))+'!')[_0x4071ba(0x250d)](_0x34e994[_0x4071ba(0x2292)](_0x4071ba(0x6c5)))[_0x4071ba(0x213e)](_0x34e994[_0x4071ba(0x2292)](_0x4071ba(0x1450))+'!')['ok'](_0x34e994[_0x4071ba(0x2292)](_0x4071ba(0x1796)))[_0x4071ba(0x101a)]('Logout');_0x4d4bcf[_0x4071ba(0xa60)](_0x165ab2)[_0x4071ba(0x64a)](function(){const _0x2b59c8=_0x4071ba;return _0x1c11c1[_0x2b59c8(0x1d86)]()[_0x2b59c8(0x64a)](function(){const _0x5c7d63=_0x2b59c8;_0x3c72ef(),_0x28c606()[_0x5c7d63(0x14fe)](_0x333140['user'],_0x2b6c89),_0x1c11c1[_0x5c7d63(0x146)](_0x333140[_0x5c7d63(0x2e8)]);});})[_0x4071ba(0x20cd)](function(){_0x268897(!![]);});}else _0x268897(!![]);}else _0x28c606()[_0x4071ba(0x14fe)](_0x333140[_0x4071ba(0x2e8)],_0x2b6c89),_0x1c11c1[_0x4071ba(0x146)](_0x333140['user']);}}function _0x4ba558(_0x119779){const _0x44987d=_0x104174;_0x333140[_0x44987d(0x1d3d)][_0x44987d(0xd6a)]===0x2&&_0x333140[_0x44987d(0x1d3d)][_0x44987d(0x161a)]===_0x44987d(0x11ae)&&_0x333140['currentUser']['name']===_0x119779[_0x44987d(0x11a7)]&&_0x2cf985[_0x44987d(0x772)]({'title':_0x44987d(0x2904),'msg':_0x44987d(0x641)+_0x119779[_0x44987d(0x225d)]+_0x44987d(0x218e)+_0x119779[_0x44987d(0x1e4e)]+'
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Extra:\x20'+(_0x119779[_0x44987d(0x145c)]&&_0x119779[_0x44987d(0x145c)][_0x44987d(0x2175)]?_0x119779[_0x44987d(0x145c)][_0x44987d(0x2175)]:_0x44987d(0x18c6))+_0x44987d(0x20f6),'showClose':!![],'timeout':0x2710,'html':!![]});}function _0x21e13d(){const _0xe15fc4=_0x104174;return _0x333140[_0xe15fc4(0x28d6)][_0xe15fc4(0x7a8)]?_0xe15fc4(0xf11):_0x333140[_0xe15fc4(0x28d6)][_0xe15fc4(0x14d8)];}function _0x2c65d8(){const _0x18b0e6=_0x104174;_0x28c606()['some'](_0x333140[_0x18b0e6(0x2dc)],{'dialMethod':_0x18b0e6(0x2842),'dialActive':!![]})&&_0x333140[_0x18b0e6(0x1947)]['dialer']&&_0x333140[_0x18b0e6(0x1cf9)]?(_0x333140[_0x18b0e6(0x1cf9)]=![],_0x466cb5[_0x18b0e6(0x232f)][_0x18b0e6(0x1a8f)]()[_0x18b0e6(0x15e7)][_0x18b0e6(0x64a)](function(_0x2e50e8){const _0x4ead7b=_0x18b0e6;_0x2e50e8&&_0x28c606()['isNumber'](_0x2e50e8['contacts'])&&(_0x333140[_0x4ead7b(0x197e)]=_0x2e50e8['contacts']);})[_0x18b0e6(0x988)](function(){const _0x3d8a51=_0x18b0e6;_0x333140[_0x3d8a51(0x1cf9)]=!![];})):_0x333140[_0x18b0e6(0x197e)]=0x0;}function _0x271070(){const _0x4eac5c=_0x104174;_0x2f90cc&&(_0x251dd8[_0x4eac5c(0x101a)](_0x2f90cc),_0x2f90cc=null);}function _0x8afe90(_0x233b49){const _0x102f31=_0x104174;console[_0x102f31(0x196e)]('onForceLogout\x20->\x20data',_0x233b49);if(_0x333140['user'][_0x102f31(0xd6a)]!==0x0)return _0x258113(),_0x1c11c1['logout'](!![])[_0x102f31(0x64a)](function(){const _0x528e19=_0x102f31;_0x1cdfbb[_0x528e19(0x1a2e)](_0x528e19(0xf5d)),_0x4d4bcf[_0x528e19(0xa60)](_0x4d4bcf[_0x528e19(0x2540)]()[_0x528e19(0x2854)](angular[_0x528e19(0x1f81)](_0x23af7a[_0x528e19(0xb49)]))[_0x528e19(0x1945)](![])[_0x528e19(0x1e6b)](![])[_0x528e19(0x2021)](_0x34e994['instant']('TOOLBAR.WARNING'))['textContent'](_0x34e994[_0x528e19(0x2292)]('TOOLBAR.USER_FORCE_LOGOUT',{'ip':_0x233b49['ip']}))['ok']('OK'))[_0x528e19(0x64a)](function(){const _0x2e1ff8=_0x528e19;return _0x83a301['go'](_0x2e1ff8(0x354));});})['catch'](function(_0x39057e){const _0x173583=_0x102f31;console[_0x173583(0x1bd0)](_0x39057e);});}function _0x3b37ef(_0x5773c0){const _0x1fee55=_0x104174,_0x7d7adb=_0x5773c0;if(_0x333140[_0x1fee55(0x1d3d)]['id']===_0x7d7adb[_0x1fee55(0x705)]){const _0x11e38e=_0x34e994[_0x1fee55(0x2292)]('TOOLBAR.NOTIFICATION_TITLE',{'sender':_0x7d7adb[_0x1fee55(0x12e0)]}),_0x845b44=_0x7d7adb[_0x1fee55(0x23c3)]?_0x34e994[_0x1fee55(0x2292)](_0x1fee55(0x177),{'recipient':_0x7d7adb[_0x1fee55(0x23c3)]}):null;_0x2cf985['wait']({'title':_0x845b44?_0x11e38e+'\x20'+_0x845b44:_0x11e38e,'msg':_0x7d7adb['content'],'clickToClose':![],'timeout':![],'sound':_0x7d7adb[_0x1fee55(0x4a2)],'html':!![]});}}_0x2d8870[_0x104174(0x8c7)](_0x104174(0xf28),function(){const _0x457eef=_0x104174;_0x1eea5d[_0x457eef(0x1951)]('user:called'),_0x1eea5d[_0x457eef(0x1951)]('user:update'),_0x1eea5d[_0x457eef(0x1951)](_0x457eef(0x14bd)),_0x1eea5d[_0x457eef(0x1951)](_0x457eef(0x770)),_0x1eea5d[_0x457eef(0x1951)](_0x457eef(0x44b)),_0x1eea5d[_0x457eef(0x1951)](_0x457eef(0x2007)),_0x1eea5d[_0x457eef(0x1951)](_0x457eef(0x289d)),_0x1eea5d[_0x457eef(0x1951)](_0x457eef(0x2526)),_0x1eea5d[_0x457eef(0x1951)](_0x457eef(0x4ff)),_0x1eea5d[_0x457eef(0x1951)](_0x457eef(0x4f7)),_0x1eea5d[_0x457eef(0x1951)](_0x457eef(0x224b)),_0x271070();});}const _0x14e8db=_0x16f2fd;;_0x3268c6[_0x49a1e3(0x1e73)]=['$translatePartialLoaderProvider'];function _0x3268c6(_0x47d7a6){const _0x2b449a=_0x49a1e3;_0x47d7a6[_0x2b449a(0x1bde)](_0x2b449a(0x412));}angular['module'](_0x49a1e3(0x5e6),[])[_0x49a1e3(0x3d3)](_0x3268c6)[_0x49a1e3(0x38e)](_0x49a1e3(0x135),_0xd25ee9)['controller'](_0x49a1e3(0x1086),_0x36c561)[_0x49a1e3(0x38e)]('ToolbarController',_0x14e8db);;_0x11407d['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x298c),'$q',_0x49a1e3(0xdcf),_0x49a1e3(0x633),'api','desktopNotification',_0x49a1e3(0x1947)];function _0x11407d(_0x1120af,_0x23df79,_0x41a13b,_0x185ac9,_0x431a86,_0x4877ad,_0x50aa40,_0x188f99){const _0x49667c=_0x49a1e3,_0x4d4e33=this;_0x4d4e33[_0x49667c(0x232e)]=_0x2ac33a()()[_0x49667c(0x1c2c)](),_0x4d4e33[_0x49667c(0x1d3d)]=_0x185ac9[_0x49667c(0x808)](),_0x4d4e33['license']=_0x188f99,_0x4d4e33[_0x49667c(0x11f5)]=0x0,_0x4d4e33['unreadTotalGroupMessages']=0x0,_0x4d4e33['userIsNotPhonebar']=_0x2f62fe,_0x4d4e33[_0x49667c(0x28da)]=_0x17ac03,_0x4d4e33['onMessageUpdate']=_0x347037,_0x431a86['on'](_0x49667c(0x14bd),_0x4d4e33[_0x49667c(0x28da)]),_0x431a86['on'](_0x49667c(0x770),_0x4d4e33[_0x49667c(0x2ac)]),_0x4877ad['chatInternalMessage'][_0x49667c(0x896)]({'fields':_0x49667c(0xdc6),'ToId':_0x4d4e33[_0x49667c(0x1d3d)]['id'],'read':![],'nolimit':!![],'ChatGroupId':_0x49667c(0x8f1)})[_0x49667c(0x15e7)][_0x49667c(0x64a)](function(_0x53588d){const _0x257aa7=_0x49667c;return _0x53588d&&_0x53588d[_0x257aa7(0xb90)]&&(_0x4d4e33[_0x257aa7(0x11f5)]=_0x53588d[_0x257aa7(0xb90)]),_0x4877ad[_0x257aa7(0x2e8)][_0x257aa7(0x346)]({'id':_0x4d4e33['currentUser']['id']})[_0x257aa7(0x15e7)];})[_0x49667c(0x64a)](function(_0x4ce5ed){const _0x21dd2d=_0x49667c,_0x3bf909=[],_0x368cca=_0x4ce5ed['rows'];for(let _0x2f50a5=0x0;_0x2f50a5<_0x368cca['length'];_0x2f50a5++){_0x3bf909['push'](_0x4877ad['chatGroup']['getUnread']({'id':_0x368cca[_0x2f50a5]['id']})[_0x21dd2d(0x15e7)]);}return _0x41a13b[_0x21dd2d(0x2705)](_0x3bf909);})['then'](function(_0x3e2440){const _0x533ba8=_0x49667c;for(let _0x56f905=0x0;_0x56f905<_0x3e2440[_0x533ba8(0x1b9e)];_0x56f905++){_0x4d4e33['unreadTotalGroupMessages']+=_0x3e2440[_0x56f905]['count'];}})[_0x49667c(0x20cd)](function(_0x4ec790){const _0x164b9f=_0x49667c;console[_0x164b9f(0x1bd0)](_0x4ec790);});function _0x507d22(_0x30394d){const _0x22f5b0=_0x49667c,_0xa1aeb2={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x22f5b0(0x763)+_0x30394d[_0x22f5b0(0xdc6)]+_0x22f5b0(0x415),'body':_0x30394d[_0x22f5b0(0xb49)]||'','focusOnclick':!![],'closeOnClick':!![]};_0x50aa40['show'](_0x23df79['instant'](_0x22f5b0(0x345)),_0xa1aeb2);}function _0x33a25(_0x112ca0){const _0x8968f4=_0x49667c;_0x50aa40[_0x8968f4(0x1985)]()?_0x50aa40[_0x8968f4(0x3ec)]()[_0x8968f4(0x64a)](function(){_0x507d22(_0x112ca0);},function(_0x166a48){const _0x4d034d=_0x8968f4;console['error'](_0x4d034d(0xf3b),_0x166a48);}):console[_0x8968f4(0x1bd0)]('Browser\x20notifications\x20are\x20not\x20supported\x20by\x20the\x20browser.\x20Normal\x20notifications\x20will\x20be\x20used.');}function _0x2f62fe(){const _0x25ac00=_0x49667c;return _0x4d4e33[_0x25ac00(0x1d3d)]['role']==='admin'||_0x4d4e33['currentUser'][_0x25ac00(0x161a)]===_0x25ac00(0x2e8)||_0x4d4e33[_0x25ac00(0x1d3d)][_0x25ac00(0x161a)]===_0x25ac00(0x11ae)&&_0x4d4e33[_0x25ac00(0x1d3d)]['showWebBar']!==0x0;}function _0x17ac03(_0x2393c0){const _0x2a00a7=_0x49667c;_0x2393c0['ToId']===_0x4d4e33[_0x2a00a7(0x1d3d)]['id']&&_0x2393c0[_0x2a00a7(0xdc6)]!==_0x4d4e33[_0x2a00a7(0x1d3d)]['id']&&!_0x2393c0[_0x2a00a7(0x12a6)]&&_0x2393c0[_0x2a00a7(0x1412)]&&(_0x4d4e33['unreadTotalGroupMessages']++,_0x33a25(_0x2393c0)),_0x2393c0[_0x2a00a7(0x1f7b)]===_0x4d4e33[_0x2a00a7(0x1d3d)]['id']&&!_0x2393c0[_0x2a00a7(0x1412)]&&(_0x4d4e33['unreadTotalMessages']+=0x1,_0x33a25(_0x2393c0));}function _0x347037(_0x2dc121){const _0x2deb93=_0x49667c;_0x2dc121[_0x2deb93(0x1f7b)]===_0x4d4e33['currentUser']['id']&&_0x2dc121['read']&&_0x4d4e33['unreadTotalMessages']>0x0&&!_0x2dc121[_0x2deb93(0x1412)]&&(_0x4d4e33[_0x2deb93(0x11f5)]-=0x1),_0x2dc121[_0x2deb93(0x1f7b)]==_0x4d4e33[_0x2deb93(0x1d3d)]['id']&&_0x2dc121[_0x2deb93(0xdc6)]!==_0x4d4e33[_0x2deb93(0x1d3d)]['id']&&_0x2dc121[_0x2deb93(0x1412)]&&_0x2dc121[_0x2deb93(0x12a6)]&&(_0x4d4e33[_0x2deb93(0x27b1)]>0x0&&_0x4d4e33[_0x2deb93(0x27b1)]--);}_0x1120af[_0x49667c(0x8c7)]('$destroy',function(){const _0x578941=_0x49667c;_0x431a86[_0x578941(0x1951)](_0x578941(0x14bd)),_0x431a86[_0x578941(0x1951)](_0x578941(0x770));});}const _0x4d202d=_0x11407d;;_0x36d5e0[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x20d4),_0x49a1e3(0xdcf),_0x49a1e3(0x633),_0x49a1e3(0x2899),'$q',_0x49a1e3(0x1239),'$translate','$rootScope','$http'];function _0x36d5e0(_0x5647f5,_0xc5ad78,_0x29a4ec,_0x2207ba,_0xcfd39f,_0x2f4bc7,_0x1dde58,_0x5616bf,_0xed6014,_0x4444ba,_0x24a253,_0x5b3c57){const _0x3b725f=_0x49a1e3,_0x287130=this;_0x287130[_0x3b725f(0x1d3d)]=_0xcfd39f[_0x3b725f(0x808)](),_0x287130[_0x3b725f(0x2e8)]=undefined,_0x287130[_0x3b725f(0xff5)]={'count':0x0,'rows':[]},_0x287130[_0x3b725f(0x368)]=_0x2ac33a()(0x0)[_0x3b725f(0x1c2c)](_0x3b725f(0x5f7)),_0x287130[_0x3b725f(0x9f5)]={},_0x287130['replyMessage']='',_0x287130['disabled']=![],_0x287130[_0x3b725f(0x2354)]=_0x216357,_0x287130[_0x3b725f(0x1ec5)]=_0x7a85d9,_0x287130[_0x3b725f(0x1cd7)]=_0x525488,_0x287130['onMessageSave']=_0x44dd7e,_0x287130[_0x3b725f(0x2ac)]=_0x3f8e85,_0x287130[_0x3b725f(0x1777)]=_0x21ee90,_0x287130[_0x3b725f(0x22bb)]=_0x165cbd,_0x287130[_0x3b725f(0x17f0)]=_0x35b8f1,_0x287130['transfer']=_0x20aed7,_0x2f4bc7['on']('chatInternalMessage:save',_0x287130[_0x3b725f(0x28da)]),_0x2f4bc7['on'](_0x3b725f(0x770),_0x287130[_0x3b725f(0x2ac)]),_0x2f4bc7['on'](_0x3b725f(0x130f),_0x287130[_0x3b725f(0x1777)]),_0x1dde58(_0x3b725f(0x296a))[_0x3b725f(0x2651)](function(){_0x287130['user']=undefined;}),_0x29a4ec['chatInternalMessage'][_0x3b725f(0x896)]({'fields':_0x3b725f(0xdc6),'ToId':_0x287130['currentUser']['id'],'read':![],'nolimit':!![],'ChatGroupId':_0x3b725f(0x8f1)})[_0x3b725f(0x15e7)][_0x3b725f(0x64a)](function(_0x5de64d){const _0x2abd0b=_0x3b725f;_0x287130['unreadMessage']=_0x28c606()[_0x2abd0b(0x16c5)](_0x5de64d[_0x2abd0b(0x28b8)],_0x2abd0b(0xdc6));})[_0x3b725f(0x20cd)](function(){}),_0x29a4ec[_0x3b725f(0x72d)][_0x3b725f(0xdf6)]()[_0x3b725f(0x15e7)]['then'](function(_0x53aa57){_0x287130['users']=_0x53aa57;})[_0x3b725f(0x20cd)](function(_0x11c7b5){const _0x24042b=_0x3b725f;console[_0x24042b(0x1bd0)](_0x11c7b5);});function _0x216357(_0x375976){const _0x128acc=_0x3b725f;_0x287130[_0x128acc(0x1947)]=_0x375976;}function _0x44dd7e(_0x3146ba){const _0x1d4fe0=_0x3b725f;if(_0x3146ba[_0x1d4fe0(0x1f7b)]===_0x287130[_0x1d4fe0(0x1d3d)]['id']&&!_0x3146ba[_0x1d4fe0(0x1412)]){_0x287130[_0x1d4fe0(0x2e8)]&&_0x287130[_0x1d4fe0(0x2e8)]['id']===_0x3146ba[_0x1d4fe0(0xdc6)]?(_0x287130[_0x1d4fe0(0x2e8)][_0x1d4fe0(0x14c1)][_0x1d4fe0(0x28b8)][_0x1d4fe0(0x1954)](_0x3146ba),_0xb46657(0x0),_0x29a4ec[_0x1d4fe0(0x72d)]['update']({'id':_0x3146ba['id'],'read':!![]})):_0x287130[_0x1d4fe0(0x9f5)][_0x3146ba[_0x1d4fe0(0xdc6)]]=_0x287130[_0x1d4fe0(0x9f5)][_0x3146ba[_0x1d4fe0(0xdc6)]]?_0x287130[_0x1d4fe0(0x9f5)][_0x3146ba['FromId']]+0x1:0x1;const _0x578f9e=_0x28c606()[_0x1d4fe0(0x27bc)](_0x287130[_0x1d4fe0(0xff5)][_0x1d4fe0(0x28b8)],{'id':_0x3146ba[_0x1d4fe0(0xdc6)]});_0x578f9e&&(_0x578f9e['lastMessageAt']=_0x3146ba[_0x1d4fe0(0x2378)],_0x578f9e[_0x1d4fe0(0xa3f)]=_0x3146ba);}}function _0x3f8e85(_0x1df8c6){const _0x17a806=_0x3b725f;if((_0x1df8c6[_0x17a806(0xdc6)]===_0x287130[_0x17a806(0x1d3d)]['id']||_0x1df8c6[_0x17a806(0x1f7b)]===_0x287130[_0x17a806(0x1d3d)]['id'])&&!_0x1df8c6[_0x17a806(0x1412)]){if(_0x287130[_0x17a806(0x2e8)]){const _0x49faf8=_0x28c606()['find'](_0x287130[_0x17a806(0x2e8)][_0x17a806(0x14c1)][_0x17a806(0x28b8)],{'id':_0x1df8c6['id']});_0x49faf8&&_0x28c606()[_0x17a806(0x14fe)](_0x49faf8,_0x1df8c6);}const _0x2772c1=_0x28c606()['find'](_0x287130[_0x17a806(0xff5)][_0x17a806(0x28b8)],{'id':_0x287130['currentUser']['id']===_0x1df8c6[_0x17a806(0xdc6)]?_0x1df8c6[_0x17a806(0x1f7b)]:_0x1df8c6['FromId']});_0x2772c1&&_0x2772c1[_0x17a806(0xa3f)]&&_0x28c606()['merge'](_0x2772c1[_0x17a806(0xa3f)],_0x1df8c6),_0x1df8c6['ToId']===_0x287130[_0x17a806(0x1d3d)]['id']&&(_0x1df8c6[_0x17a806(0x12a6)]&&_0x287130[_0x17a806(0x9f5)][_0x1df8c6[_0x17a806(0xdc6)]]>0x0&&(_0x287130[_0x17a806(0x9f5)][_0x1df8c6[_0x17a806(0xdc6)]]-=0x1));}}function _0x21ee90(_0x1f2c38){const _0x3d8db9=_0x3b725f,_0x49057e=_0x28c606()[_0x3d8db9(0x27bc)](_0x287130['users']['rows'],{'id':_0x1f2c38['id']});_0x49057e&&(!_0x28c606()[_0x3d8db9(0x28d7)](_0x1f2c38['online'])&&_0x49057e[_0x3d8db9(0x1eab)]!==_0x1f2c38[_0x3d8db9(0x1eab)]&&(_0x49057e['online']=_0x1f2c38['online']),!_0x28c606()['isNil'](_0x1f2c38[_0x3d8db9(0x83a)])&&_0x49057e['allowmessenger']!==_0x1f2c38[_0x3d8db9(0x83a)]&&(_0x49057e[_0x3d8db9(0x83a)]=_0x1f2c38[_0x3d8db9(0x83a)]));}function _0x7a85d9(_0x1b258d){const _0x11f12d=_0x3b725f;if(_0x1b258d){if(!_0x1b258d[_0x11f12d(0x83a)]&&_0x1b258d[_0x11f12d(0x161a)]===_0x11f12d(0x11ae)){_0xc5ad78[_0x11f12d(0x51b)]({'title':_0x4444ba[_0x11f12d(0x2292)]('QUICKPANEL.WARNING'),'msg':_0x4444ba[_0x11f12d(0x2292)]('QUICKPANEL.MESSENGER_DISABLED')}),_0x287130[_0x11f12d(0x2e8)]=undefined;return;}_0x287130[_0x11f12d(0x2e8)]=_0x1b258d,_0x287130[_0x11f12d(0x1414)]='',_0x29a4ec[_0x11f12d(0x72d)][_0x11f12d(0x896)]({'sort':'createdAt','FromId':_0x287130[_0x11f12d(0x1d3d)]['id']+','+_0x1b258d['id'],'ToId':_0x287130[_0x11f12d(0x1d3d)]['id']+','+_0x1b258d['id'],'ChatGroupId':_0x11f12d(0x8f1)})[_0x11f12d(0x15e7)]['then'](function(_0x98f647){const _0x43943c=_0x11f12d;if(_0x98f647&&_0x98f647[_0x43943c(0x28b8)]){_0x287130[_0x43943c(0x2e8)][_0x43943c(0x14c1)]=_0x98f647;for(let _0x235e3c=0x0;_0x235e3c<_0x287130['user']['messages'][_0x43943c(0x28b8)]['length'];_0x235e3c+=0x1){_0x287130[_0x43943c(0x2e8)][_0x43943c(0x14c1)][_0x43943c(0x28b8)][_0x235e3c]['read']===![]&&_0x287130[_0x43943c(0x2e8)][_0x43943c(0x14c1)]['rows'][_0x235e3c][_0x43943c(0x1f7b)]===_0x287130[_0x43943c(0x1d3d)]['id']&&_0x29a4ec['chatInternalMessage'][_0x43943c(0x2603)]({'id':_0x287130['user'][_0x43943c(0x14c1)][_0x43943c(0x28b8)][_0x235e3c]['id'],'read':!![]});}}})['finally'](function(){_0xb46657(0x0);});}else _0x287130[_0x11f12d(0x2e8)]=undefined;}function _0x525488(){const _0x3765fd=_0x3b725f;_0x287130['disabled']=!![];if(_0x287130[_0x3765fd(0x1414)]===''){_0x287130[_0x3765fd(0x1a95)]=![];return;}const _0xc05de8={'FromId':_0x287130[_0x3765fd(0x1d3d)]['id'],'ToId':_0x287130['user']['id'],'body':_0x287130['replyMessage'],'read':![]};_0x287130[_0x3765fd(0x1414)]='',_0x29a4ec['chatInternalMessage']['save'](_0xc05de8)[_0x3765fd(0x15e7)][_0x3765fd(0x64a)](function(_0xfc7ea7){const _0x50bdcf=_0x3765fd;_0x287130[_0x50bdcf(0x2e8)][_0x50bdcf(0x14c1)][_0x50bdcf(0x28b8)][_0x50bdcf(0x1954)](_0xfc7ea7),_0x287130[_0x50bdcf(0x2e8)][_0x50bdcf(0x1537)]=_0xfc7ea7[_0x50bdcf(0x2378)],_0x287130[_0x50bdcf(0x2e8)][_0x50bdcf(0xa3f)]=_0xfc7ea7,_0xb46657(0x190);})['catch'](function(){})[_0x3765fd(0x988)](function(){_0x287130['disabled']=![];});}function _0xb46657(_0x586bec){const _0x633ca9=_0x3b725f,_0x12fc09=angular[_0x633ca9(0x1f81)](_0x633ca9(0x313));_0x2207ba(function(){const _0x364159=_0x633ca9;_0x12fc09[_0x364159(0x1e47)]({'scrollTop':_0x12fc09[0x0]['scrollHeight']},_0x586bec);},0x0);}function _0x244e86(_0x4dd4f9){const _0x3fd253=_0x3b725f;return!_0x28c606()['isNil'](_0x4dd4f9)?_0x4dd4f9[_0x3fd253(0x1353)](/[^\w.+#*-]+/g,''):'';}function _0x165cbd(_0x26836f){const _0x59fe12=_0x3b725f;_0x24a253[_0x59fe12(0x1a2e)](_0x59fe12(0x15bf),{'target':_0x244e86(_0x26836f)});}function _0x35b8f1(_0x13c9ac){const _0x71f662=_0x3b725f;return _0x1f4920('http://127.0.0.1:'+(_0x287130[_0x71f662(0x2e8)]['phoneBarRemoteControlPort']||_0x71f662(0x80f))+'/api/originate/'+_0x244e86(_0x13c9ac));}function _0x20aed7(_0x38b0f5){const _0x5558ac=_0x3b725f;return _0x1f4920(_0x5558ac(0x16a5)+(_0x287130[_0x5558ac(0x2e8)][_0x5558ac(0x11c2)]||_0x5558ac(0x80f))+_0x5558ac(0x16b6)+_0x244e86(_0x38b0f5));}function _0x1f4920(_0x26e98f){const _0x4da786=_0x3b725f;return _0x5b3c57[_0x4da786(0x896)](_0x26e98f)['success'](function(){const _0x318a24=_0x4da786;_0xc5ad78['success']({'title':_0x318a24(0x211d),'msg':_0x318a24(0x1399)});})[_0x4da786(0x1bd0)](function(){const _0x2e0f6f=_0x4da786;_0xc5ad78['error']({'title':_0x2e0f6f(0x25c0),'msg':_0x4444ba[_0x2e0f6f(0x2292)](_0x2e0f6f(0x23b1))});});}_0x5647f5[_0x3b725f(0x8c7)](_0x3b725f(0xf28),function(){const _0x4913a0=_0x3b725f;_0x2f4bc7['removeAllListeners'](_0x4913a0(0x14bd)),_0x2f4bc7['removeAllListeners']('chatInternalMessage:update'),_0x2f4bc7[_0x4913a0(0x1951)](_0x4913a0(0x130f));});}const _0x5d037c=_0x36d5e0;;_0x51bceb[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$state',_0x49a1e3(0x1155),'$mdDialog',_0x49a1e3(0x680),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x1dda),'members'];function _0x51bceb(_0x55e834,_0x777a54,_0x519500,_0x33d82c,_0x459779,_0x22086a,_0x1f68f7,_0x50d8ba,_0x3f222c){const _0x72a094=_0x49a1e3,_0x4b0c10=this;_0x4b0c10[_0x72a094(0xbae)]=[],_0x4b0c10['title']='QUICKPANEL.EDIT_CHATGROUP',_0x4b0c10['group']=angular[_0x72a094(0x289e)](_0x50d8ba),_0x4b0c10['currentUser']=_0x1f68f7[_0x72a094(0x808)](),_0x4b0c10['members']=_0x3f222c,_0x4b0c10[_0x72a094(0x4bb)]=!![];!_0x4b0c10[_0x72a094(0x1dda)]&&(_0x4b0c10[_0x72a094(0x1dda)]={'write':!![],'members':[]},_0x4b0c10[_0x72a094(0x2021)]=_0x72a094(0x2123));_0x4b0c10[_0x72a094(0x1588)]=_0x432557,_0x4b0c10[_0x72a094(0x16cb)]=_0x33d7b9,_0x4b0c10[_0x72a094(0x21bb)]=_0x3a9ec8;function _0x53494c(_0xfa5f1a){const _0x67b225=_0x72a094,_0x348fc2=_0xfa5f1a[_0x67b225(0x2554)]();return function _0x56e4c2(_0x2f7dd9){const _0x2a638d=_0x67b225,_0x29b400=_0x2f7dd9[_0x2a638d(0x2494)][_0x2a638d(0x2554)]();return _0x29b400[_0x2a638d(0x1b28)](_0x348fc2)!=-0x1;};}function _0x3a9ec8(_0x1fc087){const _0x422148=_0x72a094;return _0x1fc087?_0x4b0c10['members'][_0x422148(0x28b8)][_0x422148(0xcec)](_0x53494c(_0x1fc087)):[];}function _0x432557(){const _0x10366b=_0x72a094;let _0x51b12e;return _0x4b0c10[_0x10366b(0xbae)]=[],_0x22086a['chatGroup'][_0x10366b(0x2479)]({'name':_0x4b0c10[_0x10366b(0x1dda)][_0x10366b(0x2494)],'write':_0x4b0c10[_0x10366b(0x1dda)][_0x10366b(0x243d)]})[_0x10366b(0x15e7)][_0x10366b(0x64a)](function(_0x253744){const _0x5f253b=_0x10366b,_0x15144c=_0x28c606()[_0x5f253b(0x1de5)](_0x4b0c10['group'][_0x5f253b(0xb20)],'id');return _0x15144c[_0x5f253b(0x1891)](_0x4b0c10[_0x5f253b(0x1d3d)]['id']),_0x51b12e=_0x253744,_0x22086a[_0x5f253b(0x1b34)][_0x5f253b(0x1e7c)]({'id':_0x51b12e['id'],'ids':_0x15144c})[_0x5f253b(0x15e7)];})['then'](function(){const _0x5e29c1=_0x10366b;_0x459779['success']({'title':_0x5e29c1(0x188b),'msg':_0x51b12e['name']+_0x5e29c1(0x271)}),_0x33d7b9(_0x51b12e);})[_0x10366b(0x20cd)](function(_0x50d986){const _0x333f2a=_0x10366b;_0x459779[_0x333f2a(0x1bd0)]({'title':_0x50d986['status']?_0x333f2a(0x575)+_0x50d986[_0x333f2a(0x10b3)]+'\x20-\x20'+_0x50d986['statusText']:_0x333f2a(0x1c3e),'msg':_0x50d986[_0x333f2a(0x1c52)]?JSON[_0x333f2a(0x2317)](_0x50d986[_0x333f2a(0x1c52)][_0x333f2a(0x18ca)]):_0x50d986[_0x333f2a(0x2915)]()});});}function _0x33d7b9(_0x3d51da){const _0x5b189c=_0x72a094;_0x33d82c[_0x5b189c(0x268e)](_0x3d51da);}}const _0xa6e5fa=_0x51bceb;;const _0x5b4f62=_0x2e4a48['p']+_0x49a1e3(0x2263);;const _0x319ff2=_0x2e4a48['p']+'src/js/modules/quick-panel/tabs/groups/info/dialog.html/dialog.html';;_0x467afb[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),'$mdDialog',_0x49a1e3(0x2899),'$q',_0x49a1e3(0xdcf),_0x49a1e3(0xa19),_0x49a1e3(0x633),_0x49a1e3(0x680)];function _0x467afb(_0x2992ad,_0x35d6c0,_0x64687e,_0xf94f19,_0x55cda1,_0x40aac9,_0x5a38f7,_0x2629c4,_0xcbb06c,_0x598fad){const _0x240cdf=_0x49a1e3,_0x228af2=this;_0x228af2[_0x240cdf(0x1d3d)]=_0x5a38f7[_0x240cdf(0x808)](),_0x228af2['unreadGroupMessages']={},_0x228af2[_0x240cdf(0xd64)]={},_0x228af2[_0x240cdf(0x663)],_0x228af2['group'],_0x228af2['init']=_0x250231,_0x228af2[_0x240cdf(0x895)]=_0x18dacf,_0x228af2[_0x240cdf(0xa44)]=_0x44a9b0,_0x228af2[_0x240cdf(0xf77)]=_0x1f266f,_0x228af2[_0x240cdf(0x14cf)]=_0x90d6a9,_0x228af2[_0x240cdf(0x493)]=_0x5d6237,_0x228af2['toggleChat']=_0x3eec50,_0x228af2[_0x240cdf(0x1cd7)]=_0x2eafc0,_0xcbb06c['on']('chatInternalMessage:save',_0x4eb976),_0xcbb06c['on'](_0x240cdf(0x770),_0x4f7e16),_0xcbb06c['on'](_0x240cdf(0x1c46),_0x4a0ccf),_0x55cda1(_0x240cdf(0x296a))[_0x240cdf(0x2651)](_0x18dacf);function _0x4a0ccf(_0xc86810){const _0x4d4548=_0x240cdf;_0x228af2[_0x4d4548(0xd64)][_0xc86810['id']]&&delete _0x228af2['groups'][_0xc86810['id']];}function _0x4f7e16(_0xa18d5c){const _0x2ccd04=_0x240cdf;_0xa18d5c[_0x2ccd04(0x1f7b)]==_0x228af2['currentUser']['id']&&_0xa18d5c[_0x2ccd04(0xdc6)]!==_0x228af2['currentUser']['id']&&_0xa18d5c[_0x2ccd04(0x1412)]&&_0xa18d5c[_0x2ccd04(0x12a6)]&&(_0x228af2[_0x2ccd04(0xd64)][_0xa18d5c[_0x2ccd04(0x1412)]][_0x2ccd04(0x1110)]>0x0&&_0x228af2[_0x2ccd04(0xd64)][_0xa18d5c[_0x2ccd04(0x1412)]][_0x2ccd04(0x1110)]--,_0x228af2[_0x2ccd04(0x1dda)][_0x2ccd04(0x14c1)][_0xa18d5c['id']]&&(_0x228af2['group'][_0x2ccd04(0x14c1)][_0xa18d5c['id']][_0x2ccd04(0x12a6)]=!![]));}function _0x4eb976(_0x587fd3){const _0x47335d=_0x240cdf;if(!_0x228af2[_0x47335d(0x1dda)]&&_0x587fd3[_0x47335d(0x1f7b)]===_0x228af2[_0x47335d(0x1d3d)]['id']&&_0x587fd3[_0x47335d(0xdc6)]!==_0x228af2['currentUser']['id']&&!_0x587fd3[_0x47335d(0x12a6)]&&_0x587fd3['ChatGroupId']){const _0x7b00b8=_0x228af2[_0x47335d(0xd64)][_0x587fd3['ChatGroupId']];if(_0x7b00b8)!_0x7b00b8[_0x47335d(0x1110)]&&(_0x7b00b8[_0x47335d(0x1110)]=0x0),_0x7b00b8['unreadGroupMessages']++;else return _0x2629c4['chatGroup'][_0x47335d(0x896)]({'id':_0x587fd3['ChatGroupId']})[_0x47335d(0x15e7)][_0x47335d(0x64a)](function(_0x197cd5){const _0x102ec1=_0x47335d;_0x197cd5[_0x102ec1(0x1110)]=0x1,_0x228af2['groups'][_0x197cd5['id']]=_0x197cd5;});}_0x228af2['group']&&_0x587fd3[_0x47335d(0x1412)]===_0x228af2[_0x47335d(0x1dda)]['id']&&_0x587fd3[_0x47335d(0x1f7b)]===_0x228af2[_0x47335d(0x1d3d)]['id']&&_0x2629c4[_0x47335d(0x72d)][_0x47335d(0x2603)]({'id':_0x587fd3['id'],'read':!![]})[_0x47335d(0x15e7)]['then'](function(){_0x272f71(_0x587fd3);});}function _0x250231(_0x28b81f){const _0x1b6f8c=_0x240cdf;return _0x228af2[_0x1b6f8c(0x1947)]=_0x28b81f,_0x2629c4[_0x1b6f8c(0x2e8)]['getGroups']({'id':_0x228af2[_0x1b6f8c(0x1d3d)]['id']})[_0x1b6f8c(0x15e7)][_0x1b6f8c(0x64a)](function(_0x47904a){const _0xa3fe41=_0x1b6f8c,_0x2bd30d=[];for(let _0x515c79=0x0;_0x515c79<_0x47904a[_0xa3fe41(0x28b8)][_0xa3fe41(0x1b9e)];_0x515c79++){_0x47904a['rows'][_0x515c79]['unreadGroupMessages']=0x0,_0x228af2[_0xa3fe41(0xd64)][_0x47904a['rows'][_0x515c79]['id']]=_0x47904a['rows'][_0x515c79],_0x2bd30d['push'](_0x2629c4[_0xa3fe41(0x1b34)][_0xa3fe41(0x497)]({'id':_0x47904a['rows'][_0x515c79]['id']})[_0xa3fe41(0x15e7)]);}return _0x40aac9[_0xa3fe41(0x2705)](_0x2bd30d);})['then'](function(_0x79916f){const _0x19d161=_0x1b6f8c;for(let _0x3351d4=0x0;_0x3351d4<_0x79916f[_0x19d161(0x1b9e)];_0x3351d4++){_0x228af2['groups'][_0x79916f[_0x3351d4]['id']][_0x19d161(0x1110)]+=_0x79916f[_0x3351d4][_0x19d161(0xb90)];}})['catch'](function(_0x10e3e2){const _0x4f988b=_0x1b6f8c;console[_0x4f988b(0x1bd0)](_0x10e3e2);});}function _0x90d6a9(){const _0x4f743d=_0x240cdf;return _0x28c606()['values'](_0x228af2[_0x4f743d(0xd64)]);}function _0x5d6237(_0x1ea555,_0x3fc9a9){const _0x59e503=_0x240cdf;_0xf94f19[_0x59e503(0xa60)]({'controller':'ShowMessageInfoDialogController','controllerAs':'vm','templateUrl':_0x319ff2,'parent':angular[_0x59e503(0x1f81)](_0x35d6c0[_0x59e503(0xb49)]),'targetEvent':_0x1ea555,'clickOutsideToClose':!![],'locals':{'message':_0x3fc9a9},'resolve':{'data':function(){const _0x527306=_0x59e503,_0x150525={'messages':[]};return _0x2629c4[_0x527306(0x72d)]['get']({'ChatInternalMessageId':_0x3fc9a9['id']})['$promise'][_0x527306(0x64a)](function(_0x36787a){const _0x32e785=_0x527306,_0x836984=[];_0x150525[_0x32e785(0x14c1)]=_0x36787a[_0x32e785(0x28b8)],_0x150525['messages'][_0x32e785(0x1891)](_0x3fc9a9);for(let _0x402ed8=0x0;_0x402ed8<_0x150525[_0x32e785(0x14c1)][_0x32e785(0x1b9e)];_0x402ed8++){_0x836984[_0x32e785(0x1954)](_0x2629c4[_0x32e785(0x2e8)][_0x32e785(0x896)]({'id':_0x150525[_0x32e785(0x14c1)][_0x402ed8][_0x32e785(0x1f7b)],'fields':_0x32e785(0xa37)})['$promise']);}return _0x40aac9[_0x32e785(0x2705)](_0x836984);})[_0x527306(0x64a)](function(_0x5e44d7){const _0x21b493=_0x527306;return _0x150525[_0x21b493(0xff5)]=_0x5e44d7,_0x150525;})[_0x527306(0x20cd)](function(_0x57b826){const _0x1416b5=_0x527306;_0x57b826&&console[_0x1416b5(0x1bd0)](_0x57b826);});}}})['then'](function(){})[_0x59e503(0x20cd)](function(_0x423324){const _0x3383ed=_0x59e503;_0x423324&&console[_0x3383ed(0x1bd0)](_0x423324[_0x3383ed(0x18ca)]);});}function _0x2eafc0(){const _0x132852=_0x240cdf;if(!_0x228af2[_0x132852(0x1414)])return;const _0x2aaf00={'id':_0x228af2[_0x132852(0x1dda)]['id'],'FromId':_0x228af2[_0x132852(0x1d3d)]['id'],'ToId':_0x228af2['currentUser']['id'],'body':_0x228af2[_0x132852(0x1414)],'read':!![]},_0x573547=[];_0x228af2['replyMessage']='',_0x2629c4[_0x132852(0x1b34)][_0x132852(0x23e4)](_0x2aaf00)[_0x132852(0x15e7)][_0x132852(0x64a)](function(_0x17e2dd){const _0x3c7272=_0x132852;_0x2aaf00[_0x3c7272(0x12a6)]=![],_0x2aaf00[_0x3c7272(0xcd1)]=_0x17e2dd['id'];for(let _0x39db47=0x0;_0x39db47<_0x228af2[_0x3c7272(0x1dda)][_0x3c7272(0xb20)][_0x3c7272(0x1b9e)];_0x39db47++){_0x228af2['group'][_0x3c7272(0xb20)][_0x39db47]['id']!==_0x228af2[_0x3c7272(0x1d3d)]['id']&&(_0x2aaf00[_0x3c7272(0x1f7b)]=_0x228af2['group']['members'][_0x39db47]['id'],_0x573547[_0x3c7272(0x1954)](_0x2629c4['chatGroup']['addMessage'](angular[_0x3c7272(0x289e)](_0x2aaf00))['$promise']));}return _0x40aac9['all'](_0x573547);})[_0x132852(0x20cd)](function(_0x38e1d4){console['log'](_0x38e1d4);});}function _0x272f71(_0x5abd4d){const _0x5a384f=_0x240cdf;_0x228af2[_0x5a384f(0x1dda)][_0x5a384f(0x14c1)][_0x5abd4d['id']]=_0x5abd4d,_0x50f99f(0x190);}function _0x18dacf(){const _0x5e83da=_0x240cdf;delete _0x228af2[_0x5e83da(0x1dda)];}function _0x50f99f(_0x4a32e6){const _0xafc1c1=angular['element']('#chat-group-dialog');_0x64687e(function(){const _0x3c349b=a0_0x4127;_0xafc1c1[_0x3c349b(0x1e47)]({'scrollTop':_0xafc1c1[0x0][_0x3c349b(0xba2)]},_0x4a32e6);},0x0);}function _0x3eec50(_0x48bddd){const _0xe098a8=_0x240cdf;_0x228af2['group']={'id':_0x48bddd['id'],'write':_0x48bddd[_0xe098a8(0x243d)],'messages':{}},_0x2629c4['chatGroup'][_0xe098a8(0xf49)]({'id':_0x48bddd['id'],'fields':_0xe098a8(0xd53)})['$promise'][_0xe098a8(0x64a)](function(_0x37197b){const _0x3e2557=_0xe098a8;return _0x228af2['group'][_0x3e2557(0xb4f)]=_0x28c606()[_0x3e2557(0x161e)](_0x37197b[_0x3e2557(0x28b8)],'id'),_0x228af2[_0x3e2557(0x1dda)]['members']=_0x28c606()[_0x3e2557(0x23e5)](_0x37197b[_0x3e2557(0x28b8)],[{'id':_0x228af2['currentUser']['id']}],'id'),_0x228af2[_0x3e2557(0x663)]=_0x28c606()[_0x3e2557(0x1de5)](_0x228af2['group'][_0x3e2557(0xb20)],_0x3e2557(0x15c))[_0x3e2557(0x9a6)](',\x20'),_0x2629c4[_0x3e2557(0x1b34)][_0x3e2557(0x1fe)]({'id':_0x48bddd['id'],'nolimit':!![]})['$promise'];})[_0xe098a8(0x64a)](function(_0x150459){const _0x35731c=_0xe098a8,_0x4096e2=[];let _0x22f381;for(let _0x2fdcd3=0x0;_0x2fdcd3<_0x150459[_0x35731c(0xb90)];_0x2fdcd3++){_0x150459['rows'][_0x2fdcd3][_0x35731c(0x1f7b)]===_0x228af2[_0x35731c(0x1d3d)]['id']&&(_0x22f381=_0x150459['rows'][_0x2fdcd3],_0x228af2[_0x35731c(0x1dda)]['messages'][_0x22f381['id']]=_0x22f381,_0x150459['rows'][_0x2fdcd3][_0x35731c(0x1f7b)]==_0x228af2[_0x35731c(0x1d3d)]['id']&&_0x150459[_0x35731c(0x28b8)][_0x2fdcd3][_0x35731c(0xdc6)]!==_0x228af2[_0x35731c(0x1d3d)]['id']&&!_0x22f381[_0x35731c(0x12a6)]&&_0x4096e2['push'](_0x2629c4[_0x35731c(0x72d)][_0x35731c(0x2603)]({'id':_0x22f381['id'],'read':!![]})));}return _0x40aac9[_0x35731c(0x2705)](_0x4096e2);})[_0xe098a8(0x64a)](function(){_0x50f99f(0x190);})[_0xe098a8(0x20cd)](function(_0x480ee4){console['error'](_0x480ee4['message']);});}function _0x1f266f(_0x37c325,_0x4bfd87){const _0x14b4bd=_0x240cdf,_0xc5af56=_0xf94f19['confirm']()[_0x14b4bd(0x2021)](_0x14b4bd(0x1066))[_0x14b4bd(0x33a)]('Group\x20'+_0x37c325[_0x14b4bd(0x2494)]+''+_0x14b4bd(0x4b8))[_0x14b4bd(0x213e)](_0x14b4bd(0x1bd7))[_0x14b4bd(0x2283)](_0x4bfd87)['ok']('OK')[_0x14b4bd(0x101a)](_0x14b4bd(0x18fd));_0xf94f19[_0x14b4bd(0xa60)](_0xc5af56)[_0x14b4bd(0x64a)](function(){const _0x129457=_0x14b4bd;return _0x2629c4[_0x129457(0x1b34)][_0x129457(0xabd)]({'id':_0x37c325['id']})[_0x129457(0x15e7)];})[_0x14b4bd(0x64a)](function(){const _0x240be1=_0x14b4bd;delete _0x228af2['groups'][_0x37c325['id']],_0x598fad[_0x240be1(0x1339)]({'title':_0x240be1(0x158),'msg':_0x37c325[_0x240be1(0x2494)]+'\x20has\x20been\x20deleted!'});})['catch'](function(_0x2f2260){const _0x3896a9=_0x14b4bd;_0x2f2260&&_0x598fad[_0x3896a9(0x1bd0)]({'title':_0x2f2260[_0x3896a9(0x10b3)]?'API:'+_0x2f2260['status']+_0x3896a9(0x21db)+_0x2f2260['statusText']:'api.chatGroup.delete','msg':_0x2f2260[_0x3896a9(0x1c52)]?JSON[_0x3896a9(0x2317)](_0x2f2260[_0x3896a9(0x1c52)][_0x3896a9(0x18ca)]):_0x2f2260[_0x3896a9(0x2915)]()});});}function _0x44a9b0(_0x3d1584,_0x210819){const _0x5c39f1=_0x240cdf;_0xf94f19['show']({'controller':'CreateOrEditChatGroupDialogController','controllerAs':'vm','templateUrl':_0x5b4f62,'parent':angular[_0x5c39f1(0x1f81)](_0x35d6c0[_0x5c39f1(0xb49)]),'targetEvent':_0x210819,'clickOutsideToClose':!![],'locals':{'group':_0x3d1584,'me':_0x228af2[_0x5c39f1(0x1d3d)],'license':null,'setting':null},'resolve':{'members':function(){const _0x10ae59=_0x5c39f1;return _0x5a38f7[_0x10ae59(0x4de)]('admin')?_0x2629c4['user'][_0x10ae59(0x896)]({'role':_0x10ae59(0x11ae)})[_0x10ae59(0x15e7)]:_0x2629c4['userProfile']['getResources']({'id':_0x5a38f7['getCurrentUser']()[_0x10ae59(0x21ac)],'section':'Agents','role':_0x10ae59(0x11ae)})[_0x10ae59(0x15e7)];}}})[_0x5c39f1(0x64a)](function(_0x455100){_0x455100&&(_0x228af2['groups'][_0x455100['id']]=_0x455100);})[_0x5c39f1(0x20cd)](function(_0x5b2864){const _0x2d1579=_0x5c39f1;_0x5b2864&&console[_0x2d1579(0x1bd0)](_0x5b2864['message']);});}_0x2992ad[_0x240cdf(0x8c7)](_0x240cdf(0xf28),function(){const _0x4da8ba=_0x240cdf;_0xcbb06c['removeAllListeners']('chatInternalMessage:save'),_0xcbb06c[_0x4da8ba(0x1951)](_0x4da8ba(0x770)),_0xcbb06c[_0x4da8ba(0x1951)](_0x4da8ba(0x1c46));});}const _0x2a8abe=_0x467afb;;_0x3e7787[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1c52)];function _0x3e7787(_0x587d20,_0x409b85,_0xf68a06,_0x145e6b,_0x18358a,_0x54d94a,_0x5dea65,_0x434f0e){const _0x2570dc=_0x49a1e3,_0x494b44=this;_0x494b44['data']=_0x434f0e,_0x494b44[_0x2570dc(0x2021)]='QUICKPANEL.INFO';function _0x3cac30(){const _0x13184d=_0x2570dc;_0x145e6b[_0x13184d(0x268e)]();}_0x494b44[_0x2570dc(0x16cb)]=_0x3cac30;}const _0x57f9ae=_0x3e7787;;_0x3e94a8[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x21f8)];function _0x3e94a8(_0x2e7840){const _0x12b42d=_0x49a1e3;_0x2e7840[_0x12b42d(0x1bde)]('app/quick-panel');}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0xba8),[])['config'](_0x3e94a8)[_0x49a1e3(0x38e)](_0x49a1e3(0x13f9),_0x4d202d)[_0x49a1e3(0x38e)](_0x49a1e3(0x1dfe),_0x5d037c)['controller'](_0x49a1e3(0x36f),_0xa6e5fa)[_0x49a1e3(0x38e)]('ChatGroupController',_0x2a8abe)[_0x49a1e3(0x38e)](_0x49a1e3(0xda8),_0x57f9ae);;_0x3adf47[_0x49a1e3(0x1e73)]=[_0x49a1e3(0xdcf),_0x49a1e3(0x7a7)];function _0x3adf47(_0x5d72fb,_0x2b1609){const _0x1372ae=_0x49a1e3,_0x14190f=this;function _0x15b722(){const _0x4a29da=a0_0x4127;_0x2b1609[_0x4a29da(0x2358)](_0x4a29da(0x51e)+_0x14190f[_0x4a29da(0x1d3d)]['id'],!![]);}_0x14190f[_0x1372ae(0x1d3d)]=_0x5d72fb[_0x1372ae(0x808)](),_0x14190f['newsAlertHide']=_0x2b1609['get'](_0x1372ae(0x51e)+_0x14190f['currentUser']['id'])||![],_0x14190f['newsAlertOnClose']=_0x15b722;}const _0x567453=_0x3adf47;;_0x2f0788[_0x49a1e3(0x1e73)]=['$translatePartialLoaderProvider'];function _0x2f0788(_0xafa788){const _0x1df967=_0x49a1e3;_0xafa788[_0x1df967(0x1bde)]('app/header');}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x2154),[])['config'](_0x2f0788)['controller'](_0x49a1e3(0x99c),_0x567453);;_0x3248cb[_0x49a1e3(0x1e73)]=[_0x49a1e3(0xdcf),_0x49a1e3(0x7a7)];function _0x3248cb(_0x534ce4,_0x2a6edb){const _0x261944=_0x49a1e3,_0x4af0e8=this;function _0x1f6d21(){const _0x2af40f=a0_0x4127;_0x2a6edb[_0x2af40f(0x2358)]('motion.cookieAlertHide:'+_0x4af0e8[_0x2af40f(0x1d3d)]['id'],!![]);}_0x4af0e8[_0x261944(0x1d3d)]=_0x534ce4[_0x261944(0x808)](),_0x4af0e8[_0x261944(0x893)]=_0x2a6edb[_0x261944(0x896)](_0x261944(0x23a2)+_0x4af0e8[_0x261944(0x1d3d)]['id'])||![],_0x4af0e8['cookieAlertOnClose']=_0x1f6d21;}const _0x49e2bc=_0x3248cb;;_0x2d1abd[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x21f8)];function _0x2d1abd(_0x3425c5){const _0x4d651f=_0x49a1e3;_0x3425c5[_0x4d651f(0x1bde)](_0x4d651f(0x4bd));}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x28af),[])['config'](_0x2d1abd)['controller'](_0x49a1e3(0x1fcb),_0x49e2bc);var _0x337703=_0x2e4a48(0x1cbe),_0x47d1c7=_0x2e4a48(0x2303),_0x511d88=_0x2e4a48(0xde6),_0x1cbb29=_0x2e4a48(0x321),_0x422b71=_0x2e4a48(0x1c92),_0x57eca8=_0x2e4a48(0x2361),_0xee4b29=_0x2e4a48(0xdd5),_0x2e99d2=_0x2e4a48(0x9d6),_0x548189=_0x2e4a48(0x20aa),_0x5509ef=_0x2e4a48(0x1ac1),_0x48dd40=_0x2e4a48(0x15c3),_0x10cdf5=_0x2e4a48(0x154a),_0x374ecb=_0x2e4a48(0x2154),_0xf1867d=_0x2e4a48(0x23a1),_0x1e0995=_0x2e4a48(0xa7c),_0x27d7ae=_0x2e4a48(0x1eaf),_0x3331a6=_0x2e4a48(0x444),_0x522bb1=_0x2e4a48(0x1c4),_0x56d5b5=_0x2e4a48(0x121a),_0x573cbe=_0x2e4a48(0x1be),_0x4a1bb6=_0x2e4a48(0xd3e);;const _0x2c5fec=_0x2e4a48['p']+_0x49a1e3(0xbf6);;const _0x56f5da=_0x2e4a48['p']+'src/js/modules/main/apps/dashboards/views/general/user/dialer/user.general.dialer.html/user.general.dialer.html';;const _0x179022=_0x2e4a48['p']+_0x49a1e3(0x1dd);;const _0x376bcb=_0x2e4a48['p']+'src/js/modules/main/apps/dashboards/views/general/user/mail/user.general.mail.html/user.general.mail.html';;const _0x54aa48=_0x2e4a48['p']+'src/js/modules/main/apps/dashboards/views/general/user/sms/user.general.sms.html/user.general.sms.html';;const _0x11f426=_0x2e4a48['p']+_0x49a1e3(0x9a3);;const _0x76f65f=_0x2e4a48['p']+_0x49a1e3(0x1c4a);;const _0x455c67=_0x2e4a48['p']+_0x49a1e3(0x270b);;_0x2959e6[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x633),_0x49a1e3(0x474),_0x49a1e3(0x111)];function _0x2959e6(_0x1aa70c,_0x17fa1a,_0x483900,_0x42bed8){const _0x182a69=_0x49a1e3,_0x15fe5d=this,_0x72f0b8=[];_0x15fe5d[_0x182a69(0x3d3)]={'format':_0x182a69(0x2ca),'unit':_0x182a69(0x15a2),'trim':![]},_0x15fe5d['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x182a69(0x1ca6),'avgTalkTime':_0x182a69(0x1ca6),'answerRate':0x0,'abandonRate':0x0},_0x15fe5d[_0x182a69(0x111)]=_0x42bed8?_0x28c606()[_0x182a69(0x161e)](_0x42bed8['rows']?_0x42bed8[_0x182a69(0x28b8)]:[],'id'):{},_0x15fe5d['onSaveChatInteraction']=_0x2b4e6a,_0x15fe5d[_0x182a69(0x1506)]=_0x352013,_0x17fa1a['on'](_0x182a69(0x1aef),_0x15fe5d[_0x182a69(0x1d91)]),_0x17fa1a['on']('chatInteraction:update',_0x15fe5d[_0x182a69(0x1506)]),_0x57e045();function _0x20a966(_0x2c183a,_0x47026c){const _0xaa00a=_0x182a69;!_0x2c183a[_0xaa00a(0x1140)]&&!_0x2c183a[_0xaa00a(0x246c)]&&_0x47026c&&(_0x15fe5d[_0xaa00a(0x12a4)][_0xaa00a(0x188f)]+=0x1);!_0x2c183a[_0xaa00a(0x1140)]&&_0x2c183a[_0xaa00a(0x246c)]&&!_0x28c606()[_0xaa00a(0x68a)](_0x72f0b8,_0x2c183a['id'])&&(_0x15fe5d['inbound'][_0xaa00a(0x130d)]+=0x1,_0x72f0b8['push'](_0x2c183a['id']),!_0x47026c&&_0x15fe5d[_0xaa00a(0x12a4)][_0xaa00a(0x188f)]&&(_0x15fe5d['inbound'][_0xaa00a(0x188f)]-=0x1));if(_0x2c183a[_0xaa00a(0x1140)]&&_0x2c183a[_0xaa00a(0x168b)]===_0xaa00a(0x10f0))_0x15fe5d['inbound']['abandoned']+=0x1,!_0x47026c&&_0x15fe5d['inbound'][_0xaa00a(0x188f)]&&(_0x15fe5d['inbound'][_0xaa00a(0x188f)]-=0x1);else{if(_0x2c183a[_0xaa00a(0x1140)]&&!_0x2c183a[_0xaa00a(0x246c)]&&_0x2c183a[_0xaa00a(0x168b)])_0x15fe5d['inbound'][_0xaa00a(0x1296)]+=0x1,!_0x47026c&&_0x15fe5d[_0xaa00a(0x12a4)][_0xaa00a(0x188f)]&&(_0x15fe5d[_0xaa00a(0x12a4)][_0xaa00a(0x188f)]-=0x1);else _0x2c183a[_0xaa00a(0x1140)]&&_0x2c183a[_0xaa00a(0x246c)]&&(_0x15fe5d[_0xaa00a(0x12a4)]['sumBillable']+=_0x2ac33a()(_0x2c183a[_0xaa00a(0x1df0)])[_0xaa00a(0x2a5)](_0x2ac33a()(_0x2c183a[_0xaa00a(0xa0f)]),_0x15fe5d[_0xaa00a(0x3d3)]['unit']),_0x15fe5d[_0xaa00a(0x12a4)][_0xaa00a(0x292d)]+=_0x2ac33a()(_0x2c183a[_0xaa00a(0xa0f)])[_0xaa00a(0x2a5)](_0x2ac33a()(_0x2c183a['createdAt']),_0x15fe5d[_0xaa00a(0x3d3)][_0xaa00a(0x2707)]),_0x15fe5d['inbound'][_0xaa00a(0xd92)]+=0x1,!_0x47026c&&_0x15fe5d[_0xaa00a(0x12a4)][_0xaa00a(0x130d)]&&(_0x15fe5d[_0xaa00a(0x12a4)][_0xaa00a(0x130d)]-=0x1));}_0x47026c&&(_0x15fe5d['inbound'][_0xaa00a(0x1318)]+=0x1);}function _0x2807ce(){const _0x599762=_0x182a69;_0x15fe5d['inbound'][_0x599762(0x28f9)]=Math[_0x599762(0xf38)]((_0x15fe5d[_0x599762(0x12a4)]['abandoned']+_0x15fe5d[_0x599762(0x12a4)]['unmanaged'])/(_0x15fe5d[_0x599762(0x12a4)][_0x599762(0x1318)]-_0x15fe5d[_0x599762(0x12a4)][_0x599762(0x130d)]-_0x15fe5d[_0x599762(0x12a4)]['waiting'])*0x64,-0x2),_0x15fe5d[_0x599762(0x12a4)][_0x599762(0x406)]=Math[_0x599762(0xf38)](_0x15fe5d[_0x599762(0x12a4)][_0x599762(0xd92)]/(_0x15fe5d[_0x599762(0x12a4)][_0x599762(0x1318)]-_0x15fe5d[_0x599762(0x12a4)][_0x599762(0x130d)]-_0x15fe5d[_0x599762(0x12a4)]['waiting'])*0x64,-0x2),_0x15fe5d['inbound'][_0x599762(0x1a6b)]=_0x2ac33a()['duration'](Math['round'](_0x15fe5d[_0x599762(0x12a4)][_0x599762(0x292d)]/_0x15fe5d[_0x599762(0x12a4)][_0x599762(0xd92)]),_0x15fe5d[_0x599762(0x3d3)][_0x599762(0x2707)])[_0x599762(0x1c2c)](_0x15fe5d[_0x599762(0x3d3)]['format'],_0x15fe5d[_0x599762(0x3d3)]),_0x15fe5d[_0x599762(0x12a4)][_0x599762(0x7c6)]=_0x2ac33a()[_0x599762(0xb77)](Math[_0x599762(0xf38)](_0x15fe5d['inbound']['sumBillable']/_0x15fe5d['inbound']['answered']),_0x15fe5d[_0x599762(0x3d3)][_0x599762(0x2707)])[_0x599762(0x1c2c)](_0x15fe5d[_0x599762(0x3d3)][_0x599762(0x1c2c)],_0x15fe5d[_0x599762(0x3d3)]);}function _0x57e045(){const _0x106419=_0x182a69;if(Object[_0x106419(0x1ec6)](_0x15fe5d[_0x106419(0x111)])[_0x106419(0x1b9e)]>0x0)for(let _0x727607=0x0;_0x727607<_0x483900[_0x106419(0x28b8)][_0x106419(0x1b9e)];_0x727607+=0x1){if(_0x4ed501(_0x483900[_0x106419(0x28b8)][_0x727607])){const _0x107906=_0x483900[_0x106419(0x28b8)][_0x727607];_0x20a966(_0x107906,!![]),_0x2807ce();}}}function _0x4ed501(_0x18c847){const _0x395b3a=_0x182a69;if(_0x28c606()['some'](_0x15fe5d[_0x395b3a(0x111)],{'id':_0x28c606()[_0x395b3a(0x1251)](_0x18c847['ChatWebsiteId'])}))return!![];return![];}function _0x3b08ef(_0x2220be){const _0x42e7ed=_0x182a69,_0x12a590=_0x2ac33a()()['utcOffset'](0x0,!![])[_0x42e7ed(0x246e)](_0x42e7ed(0x2784)),_0x44d781=_0x2ac33a()()[_0x42e7ed(0xebc)](0x0,!![])[_0x42e7ed(0x13af)](_0x42e7ed(0x2784));return _0x2ac33a()(_0x2220be)[_0x42e7ed(0xebc)](0x0,!![])[_0x42e7ed(0xec6)](_0x12a590,_0x44d781);}function _0x2b4e6a(_0x3c2e5a){const _0x1984f1=_0x182a69;_0x4ed501(_0x3c2e5a)&&_0x3b08ef(_0x3c2e5a[_0x1984f1(0x2378)])&&(_0x20a966(_0x3c2e5a,!![]),_0x2807ce());}function _0x352013(_0x1a67e3){_0x4ed501(_0x1a67e3)&&_0x3b08ef(_0x1a67e3['createdAt'])&&(_0x20a966(_0x1a67e3,![]),_0x2807ce());}_0x1aa70c[_0x182a69(0x8c7)](_0x182a69(0xf28),function(){const _0x42cfeb=_0x182a69;_0x17fa1a[_0x42cfeb(0x1951)](_0x42cfeb(0x1aef)),_0x17fa1a[_0x42cfeb(0x1951)](_0x42cfeb(0x6fb));});}const _0x2b7db9=_0x2959e6;;_0x46c80f[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1239),'socket',_0x49a1e3(0x1812),_0x49a1e3(0x22c7),_0x49a1e3(0x232b),_0x49a1e3(0x55a),_0x49a1e3(0x1163)];function _0x46c80f(_0x24be1f,_0x37d58b,_0x8f85ff,_0x1bd3a2,_0x258f8c,_0x346aac,_0x27a7fe,_0x38b022){const _0x4bb0c0=_0x49a1e3,_0x2fc55f=this;_0x2fc55f['outboundQueues']=_0x1bd3a2?_0x28c606()[_0x4bb0c0(0x161e)](_0x1bd3a2[_0x4bb0c0(0x28b8)]?_0x1bd3a2[_0x4bb0c0(0x28b8)]:[],'id'):{},_0x2fc55f[_0x4bb0c0(0x22c7)]=_0x258f8c?_0x28c606()[_0x4bb0c0(0x161e)](_0x258f8c[_0x4bb0c0(0x28b8)]?_0x258f8c[_0x4bb0c0(0x28b8)]:[],'id'):{},_0x2fc55f[_0x4bb0c0(0x1163)]=_0x38b022?_0x28c606()[_0x4bb0c0(0x161e)](_0x38b022[_0x4bb0c0(0x28b8)]?_0x38b022['rows']:[],'id'):{},_0x2fc55f[_0x4bb0c0(0x254b)]={'originated':0x0,'limitCalls':0x0},_0x2fc55f[_0x4bb0c0(0x12a4)]={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x4bb0c0(0x1ca6),'avgTalkTime':'00:00:00','answerRate':0x0,'abandonRate':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0},_0x2fc55f[_0x4bb0c0(0x1ecf)]=_0x34d28f,_0x2fc55f[_0x4bb0c0(0x20b9)]=_0x4fe056,_0x8f85ff[_0x4bb0c0(0x1939)]('voice_queue:save',_0x2fc55f['onSaveQueue']),_0x2fc55f[_0x4bb0c0(0xcfd)]=_0x37d58b(function(){_0x1a7259(),_0x37edc1();},0x3e7),_0x8f85ff[_0x4bb0c0(0x1939)](_0x4bb0c0(0x115d),_0x2fc55f['onSaveCampaign']),_0x1a7259(),_0x37edc1();function _0x1a7259(){const _0x25b8c9=_0x4bb0c0;_0x346aac({'queues':_0x2fc55f[_0x25b8c9(0x1812)],'rpcQueues':_0x2fc55f['rpcQueues']})['then'](function(_0x2a6cbe){const _0xe6a2a1=_0x25b8c9;_0x2fc55f[_0xe6a2a1(0x12a4)]=_0x2a6cbe;});}function _0x37edc1(){const _0x59bd3b=_0x4bb0c0;_0x27a7fe({'rpcCampaigns':_0x2fc55f[_0x59bd3b(0x1163)]})[_0x59bd3b(0x64a)](function(_0x1f109b){const _0xd6a41b=_0x59bd3b;_0x2fc55f[_0xd6a41b(0x254b)]=_0x1f109b;});}function _0x34d28f(_0x3857c5){const _0x223ffd=_0x4bb0c0;_0x2fc55f[_0x223ffd(0x1812)][_0x3857c5['id']]&&(_0x2fc55f[_0x223ffd(0x22c7)][_0x3857c5['id']]&&(_0x2fc55f[_0x223ffd(0x22c7)][_0x3857c5['id']]=_0x3857c5));}function _0x4fe056(_0x4b2a9c){const _0x535f4f=_0x4bb0c0;_0x2fc55f['rpcCampaigns'][_0x4b2a9c['id']]&&(_0x2fc55f[_0x535f4f(0x1163)][_0x4b2a9c['id']]=_0x4b2a9c);}_0x24be1f[_0x4bb0c0(0x8c7)](_0x4bb0c0(0xf28),function(){const _0x27c4d6=_0x4bb0c0;_0x8f85ff[_0x27c4d6(0x1951)](_0x27c4d6(0xb9c)),_0x8f85ff[_0x27c4d6(0x1951)](_0x27c4d6(0x115d)),_0x2fc55f[_0x27c4d6(0xcfd)]&&_0x37d58b[_0x27c4d6(0x101a)](_0x2fc55f[_0x27c4d6(0xcfd)]);});}const _0x1bdc20=_0x46c80f;;_0x50d325[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x633),_0x49a1e3(0x17e7),_0x49a1e3(0x198c)];function _0x50d325(_0x3bc9ac,_0xd1fad0,_0x1fa241,_0x5c83ba){const _0x164022=_0x49a1e3,_0x2e1b18=this,_0x5d7092=[];_0x2e1b18['config']={'format':_0x164022(0x2ca),'unit':'seconds','trim':![]},_0x2e1b18[_0x164022(0x12a4)]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x164022(0x1ca6),'avgTalkTime':_0x164022(0x1ca6),'answerRate':0x0,'abandonRate':0x0},_0x2e1b18[_0x164022(0x198c)]=_0x5c83ba?_0x28c606()['keyBy'](_0x5c83ba[_0x164022(0x28b8)]?_0x5c83ba[_0x164022(0x28b8)]:[],'id'):{},_0x2e1b18[_0x164022(0x1341)]=_0x5131be,_0x2e1b18[_0x164022(0xad8)]=_0x23a041,_0xd1fad0['on'](_0x164022(0x1f07),_0x2e1b18[_0x164022(0x1341)]),_0xd1fad0['on'](_0x164022(0x28fb),_0x2e1b18['onUpdateFaxInteraction']),_0x580ece();function _0x3bd4dc(_0x1cfc9d,_0x6f592b){const _0x261a6d=_0x164022;!_0x1cfc9d[_0x261a6d(0x1140)]&&!_0x1cfc9d[_0x261a6d(0x246c)]&&_0x6f592b&&(_0x2e1b18[_0x261a6d(0x12a4)][_0x261a6d(0x188f)]+=0x1),!_0x1cfc9d[_0x261a6d(0x1140)]&&_0x1cfc9d[_0x261a6d(0x246c)]&&!_0x28c606()[_0x261a6d(0x68a)](_0x5d7092,_0x1cfc9d['id'])&&(_0x2e1b18[_0x261a6d(0x12a4)][_0x261a6d(0x130d)]+=0x1,_0x5d7092['push'](_0x1cfc9d['id']),!_0x6f592b&&_0x2e1b18['inbound'][_0x261a6d(0x188f)]&&(_0x2e1b18[_0x261a6d(0x12a4)][_0x261a6d(0x188f)]-=0x1)),_0x1cfc9d[_0x261a6d(0x1140)]&&_0x1cfc9d[_0x261a6d(0x246c)]&&(_0x2e1b18[_0x261a6d(0x12a4)][_0x261a6d(0x286)]+=_0x2ac33a()(_0x1cfc9d[_0x261a6d(0x1df0)])[_0x261a6d(0x2a5)](_0x2ac33a()(_0x1cfc9d[_0x261a6d(0xa0f)]),_0x2e1b18['config'][_0x261a6d(0x2707)]),_0x2e1b18[_0x261a6d(0x12a4)]['sumHoldTime']+=_0x2ac33a()(_0x1cfc9d['read1stAt'])['diff'](_0x2ac33a()(_0x1cfc9d['createdAt']),_0x2e1b18[_0x261a6d(0x3d3)]['unit']),_0x2e1b18['inbound']['answered']+=0x1,!_0x6f592b&&_0x2e1b18[_0x261a6d(0x12a4)][_0x261a6d(0x130d)]&&(_0x2e1b18[_0x261a6d(0x12a4)]['talking']-=0x1)),_0x1cfc9d[_0x261a6d(0x1140)]&&!_0x1cfc9d[_0x261a6d(0x246c)]&&(_0x2e1b18['inbound'][_0x261a6d(0x1296)]+=0x1,!_0x6f592b&&_0x2e1b18[_0x261a6d(0x12a4)][_0x261a6d(0x188f)]&&(_0x2e1b18['inbound']['waiting']-=0x1)),_0x6f592b&&(_0x2e1b18[_0x261a6d(0x12a4)]['total']+=0x1);}function _0x222feb(){const _0x4f5ebf=_0x164022;_0x2e1b18[_0x4f5ebf(0x12a4)][_0x4f5ebf(0x28f9)]=Math['round']((_0x2e1b18['inbound'][_0x4f5ebf(0x10f0)]+_0x2e1b18[_0x4f5ebf(0x12a4)][_0x4f5ebf(0x1296)])/(_0x2e1b18[_0x4f5ebf(0x12a4)]['total']-_0x2e1b18[_0x4f5ebf(0x12a4)][_0x4f5ebf(0x130d)]-_0x2e1b18[_0x4f5ebf(0x12a4)][_0x4f5ebf(0x188f)])*0x64,-0x2),_0x2e1b18['inbound'][_0x4f5ebf(0x406)]=Math[_0x4f5ebf(0xf38)](_0x2e1b18[_0x4f5ebf(0x12a4)]['answered']/(_0x2e1b18[_0x4f5ebf(0x12a4)][_0x4f5ebf(0x1318)]-_0x2e1b18['inbound'][_0x4f5ebf(0x130d)]-_0x2e1b18[_0x4f5ebf(0x12a4)][_0x4f5ebf(0x188f)])*0x64,-0x2),_0x2e1b18['inbound'][_0x4f5ebf(0x1a6b)]=_0x2ac33a()[_0x4f5ebf(0xb77)](Math[_0x4f5ebf(0xf38)](_0x2e1b18[_0x4f5ebf(0x12a4)][_0x4f5ebf(0x292d)]/_0x2e1b18[_0x4f5ebf(0x12a4)][_0x4f5ebf(0xd92)]),_0x2e1b18[_0x4f5ebf(0x3d3)][_0x4f5ebf(0x2707)])[_0x4f5ebf(0x1c2c)](_0x2e1b18[_0x4f5ebf(0x3d3)][_0x4f5ebf(0x1c2c)],_0x2e1b18['config']),_0x2e1b18[_0x4f5ebf(0x12a4)][_0x4f5ebf(0x7c6)]=_0x2ac33a()[_0x4f5ebf(0xb77)](Math[_0x4f5ebf(0xf38)](_0x2e1b18[_0x4f5ebf(0x12a4)][_0x4f5ebf(0x286)]/_0x2e1b18[_0x4f5ebf(0x12a4)][_0x4f5ebf(0xd92)]),_0x2e1b18['config'][_0x4f5ebf(0x2707)])[_0x4f5ebf(0x1c2c)](_0x2e1b18[_0x4f5ebf(0x3d3)][_0x4f5ebf(0x1c2c)],_0x2e1b18[_0x4f5ebf(0x3d3)]);}function _0x580ece(){const _0x41869f=_0x164022;if(Object[_0x41869f(0x1ec6)](_0x2e1b18[_0x41869f(0x198c)])['length']>0x0)for(let _0x3fb482=0x0;_0x3fb482<_0x1fa241[_0x41869f(0x28b8)]['length'];_0x3fb482+=0x1){if(_0x19f973(_0x1fa241[_0x41869f(0x28b8)][_0x3fb482])){const _0x5db78a=_0x1fa241[_0x41869f(0x28b8)][_0x3fb482];_0x3bd4dc(_0x5db78a,!![]),_0x222feb();}}}function _0x19f973(_0xd45021){const _0x5e8314=_0x164022;if(_0x28c606()[_0x5e8314(0x25f8)](_0x2e1b18[_0x5e8314(0x198c)],{'id':_0x28c606()[_0x5e8314(0x1251)](_0xd45021[_0x5e8314(0x1da3)])}))return!![];return![];}function _0xbc933b(_0x588a47){const _0x359b14=_0x164022,_0x554d17=_0x2ac33a()()['utcOffset'](0x0,!![])['startOf'](_0x359b14(0x2784)),_0x5b5aec=_0x2ac33a()()['utcOffset'](0x0,!![])['endOf'](_0x359b14(0x2784));return _0x2ac33a()(_0x588a47)[_0x359b14(0xebc)](0x0,!![])['isBetween'](_0x554d17,_0x5b5aec);}function _0x5131be(_0x29ee56){_0x19f973(_0x29ee56)&&_0xbc933b(_0x29ee56['createdAt'])&&(_0x3bd4dc(_0x29ee56,!![]),_0x222feb());}function _0x23a041(_0x3af1fe){const _0x176a20=_0x164022;_0x19f973(_0x3af1fe)&&_0xbc933b(_0x3af1fe[_0x176a20(0x2378)])&&(_0x3bd4dc(_0x3af1fe,![]),_0x222feb());}_0x3bc9ac[_0x164022(0x8c7)](_0x164022(0xf28),function(){const _0x2ab6ca=_0x164022;_0xd1fad0[_0x2ab6ca(0x1951)]('faxInteraction:save'),_0xd1fad0[_0x2ab6ca(0x1951)](_0x2ab6ca(0x28fb));});}const _0x5dec93=_0x50d325;;_0x743cc0[_0x49a1e3(0x1e73)]=['$scope','socket',_0x49a1e3(0x28f1),'mailAccounts'];function _0x743cc0(_0x3c1b52,_0x47d292,_0x33786b,_0x190f83){const _0x35bf18=_0x49a1e3,_0x483db5=this,_0x2982bb=[];_0x483db5[_0x35bf18(0x3d3)]={'format':'hh:mm:ss','unit':'seconds','trim':![]},_0x483db5[_0x35bf18(0x12a4)]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x35bf18(0x1ca6),'avgTalkTime':_0x35bf18(0x1ca6),'answerRate':0x0,'abandonRate':0x0},_0x483db5[_0x35bf18(0x2435)]=_0x190f83?_0x28c606()[_0x35bf18(0x161e)](_0x190f83[_0x35bf18(0x28b8)]?_0x190f83['rows']:[],'id'):{},_0x483db5[_0x35bf18(0x1de9)]=_0x1a525d,_0x483db5['onUpdateMailInteraction']=_0x4c7e9d,_0x47d292['on'](_0x35bf18(0x1d5c),_0x483db5[_0x35bf18(0x1de9)]),_0x47d292['on']('mailInteraction:update',_0x483db5['onUpdateMailInteraction']),_0x7d4afe();function _0x2d412b(_0x76945b,_0x11caa0){const _0x48c433=_0x35bf18;!_0x76945b['closed']&&!_0x76945b[_0x48c433(0x246c)]&&_0x11caa0&&(_0x483db5[_0x48c433(0x12a4)][_0x48c433(0x188f)]+=0x1),!_0x76945b[_0x48c433(0x1140)]&&_0x76945b['UserId']&&!_0x28c606()[_0x48c433(0x68a)](_0x2982bb,_0x76945b['id'])&&(_0x483db5[_0x48c433(0x12a4)][_0x48c433(0x130d)]+=0x1,_0x2982bb[_0x48c433(0x1954)](_0x76945b['id']),!_0x11caa0&&_0x483db5[_0x48c433(0x12a4)][_0x48c433(0x188f)]&&(_0x483db5[_0x48c433(0x12a4)][_0x48c433(0x188f)]-=0x1)),_0x76945b[_0x48c433(0x1140)]&&_0x76945b['UserId']&&(_0x483db5[_0x48c433(0x12a4)][_0x48c433(0x286)]+=_0x2ac33a()(_0x76945b[_0x48c433(0x1df0)])[_0x48c433(0x2a5)](_0x2ac33a()(_0x76945b[_0x48c433(0xa0f)]),_0x483db5['config'][_0x48c433(0x2707)]),_0x483db5[_0x48c433(0x12a4)]['sumHoldTime']+=_0x2ac33a()(_0x76945b[_0x48c433(0xa0f)])[_0x48c433(0x2a5)](_0x2ac33a()(_0x76945b['createdAt']),_0x483db5[_0x48c433(0x3d3)][_0x48c433(0x2707)]),_0x483db5[_0x48c433(0x12a4)][_0x48c433(0xd92)]+=0x1,!_0x11caa0&&_0x483db5[_0x48c433(0x12a4)][_0x48c433(0x130d)]&&(_0x483db5[_0x48c433(0x12a4)]['talking']-=0x1)),_0x76945b[_0x48c433(0x1140)]&&!_0x76945b[_0x48c433(0x246c)]&&(_0x483db5['inbound'][_0x48c433(0x1296)]+=0x1,!_0x11caa0&&_0x483db5[_0x48c433(0x12a4)][_0x48c433(0x188f)]&&(_0x483db5['inbound'][_0x48c433(0x188f)]-=0x1)),_0x11caa0&&(_0x483db5[_0x48c433(0x12a4)][_0x48c433(0x1318)]+=0x1);}function _0x241d47(){const _0x1058bf=_0x35bf18;_0x483db5['inbound']['abandonRate']=Math[_0x1058bf(0xf38)]((_0x483db5['inbound'][_0x1058bf(0x10f0)]+_0x483db5[_0x1058bf(0x12a4)][_0x1058bf(0x1296)])/(_0x483db5[_0x1058bf(0x12a4)]['total']-_0x483db5[_0x1058bf(0x12a4)][_0x1058bf(0x130d)]-_0x483db5[_0x1058bf(0x12a4)][_0x1058bf(0x188f)])*0x64,-0x2),_0x483db5[_0x1058bf(0x12a4)][_0x1058bf(0x406)]=Math[_0x1058bf(0xf38)](_0x483db5['inbound'][_0x1058bf(0xd92)]/(_0x483db5[_0x1058bf(0x12a4)][_0x1058bf(0x1318)]-_0x483db5['inbound'][_0x1058bf(0x130d)]-_0x483db5[_0x1058bf(0x12a4)][_0x1058bf(0x188f)])*0x64,-0x2),_0x483db5[_0x1058bf(0x12a4)][_0x1058bf(0x1a6b)]=_0x2ac33a()[_0x1058bf(0xb77)](Math[_0x1058bf(0xf38)](_0x483db5[_0x1058bf(0x12a4)]['sumHoldTime']/_0x483db5[_0x1058bf(0x12a4)][_0x1058bf(0xd92)]),_0x483db5[_0x1058bf(0x3d3)][_0x1058bf(0x2707)])[_0x1058bf(0x1c2c)](_0x483db5[_0x1058bf(0x3d3)]['format'],_0x483db5[_0x1058bf(0x3d3)]),_0x483db5[_0x1058bf(0x12a4)][_0x1058bf(0x7c6)]=_0x2ac33a()[_0x1058bf(0xb77)](Math[_0x1058bf(0xf38)](_0x483db5[_0x1058bf(0x12a4)][_0x1058bf(0x286)]/_0x483db5[_0x1058bf(0x12a4)][_0x1058bf(0xd92)]),_0x483db5[_0x1058bf(0x3d3)]['unit'])[_0x1058bf(0x1c2c)](_0x483db5[_0x1058bf(0x3d3)][_0x1058bf(0x1c2c)],_0x483db5[_0x1058bf(0x3d3)]);}function _0x7d4afe(){const _0x3bb923=_0x35bf18;if(Object[_0x3bb923(0x1ec6)](_0x483db5['mailAccounts'])[_0x3bb923(0x1b9e)]>0x0)for(let _0x5aa04e=0x0;_0x5aa04e<_0x33786b[_0x3bb923(0x28b8)][_0x3bb923(0x1b9e)];_0x5aa04e+=0x1){if(_0x4641ef(_0x33786b['rows'][_0x5aa04e])){const _0x18e4d5=_0x33786b[_0x3bb923(0x28b8)][_0x5aa04e];_0x2d412b(_0x18e4d5,!![]),_0x241d47();}}}function _0x4641ef(_0x4e4d21){const _0x48dab3=_0x35bf18;if(_0x28c606()[_0x48dab3(0x25f8)](_0x483db5[_0x48dab3(0x2435)],{'id':_0x28c606()['toNumber'](_0x4e4d21['MailAccountId'])}))return!![];return![];}function _0x597ff3(_0x5dcfd5){const _0x417638=_0x35bf18,_0x419af0=_0x2ac33a()()['utcOffset'](0x0,!![])[_0x417638(0x246e)](_0x417638(0x2784)),_0x216e88=_0x2ac33a()()['utcOffset'](0x0,!![])[_0x417638(0x13af)](_0x417638(0x2784));return _0x2ac33a()(_0x5dcfd5)[_0x417638(0xebc)](0x0,!![])[_0x417638(0xec6)](_0x419af0,_0x216e88);}function _0x1a525d(_0x3b9403){_0x4641ef(_0x3b9403)&&_0x597ff3(_0x3b9403['createdAt'])&&(_0x2d412b(_0x3b9403,!![]),_0x241d47());}function _0x4c7e9d(_0x489422){_0x4641ef(_0x489422)&&_0x597ff3(_0x489422['createdAt'])&&(_0x2d412b(_0x489422,![]),_0x241d47());}_0x3c1b52['$on'](_0x35bf18(0xf28),function(){const _0x1829e2=_0x35bf18;_0x47d292[_0x1829e2(0x1951)](_0x1829e2(0x1d5c)),_0x47d292[_0x1829e2(0x1951)](_0x1829e2(0x11ba));});}const _0x1d85e7=_0x743cc0;;_0x5c8aef['$inject']=['$scope',_0x49a1e3(0x633),_0x49a1e3(0x1bbd),'openchannelAccounts'];function _0x5c8aef(_0x56914f,_0x17017a,_0x209a8,_0xb61801){const _0x1f919d=_0x49a1e3,_0x422868=this,_0x44a241=[];_0x422868[_0x1f919d(0x3d3)]={'format':_0x1f919d(0x2ca),'unit':_0x1f919d(0x15a2),'trim':![]},_0x422868['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x1f919d(0x1ca6),'avgTalkTime':_0x1f919d(0x1ca6),'answerRate':0x0,'abandonRate':0x0},_0x422868[_0x1f919d(0xda9)]=_0xb61801?_0x28c606()[_0x1f919d(0x161e)](_0xb61801['rows']?_0xb61801['rows']:[],'id'):{},_0x422868[_0x1f919d(0x2409)]=_0x2d3655,_0x422868['onUpdateOpenchannelInteraction']=_0x58bca9,_0x17017a['on'](_0x1f919d(0x2348),_0x422868[_0x1f919d(0x2409)]),_0x17017a['on'](_0x1f919d(0x106b),_0x422868['onUpdateOpenchannelInteraction']),_0xef053f();function _0x5cc175(_0x4fd753,_0x4fcfbf){const _0x1de3ed=_0x1f919d;!_0x4fd753[_0x1de3ed(0x1140)]&&!_0x4fd753[_0x1de3ed(0x246c)]&&_0x4fcfbf&&(_0x422868[_0x1de3ed(0x12a4)]['waiting']+=0x1),!_0x4fd753[_0x1de3ed(0x1140)]&&_0x4fd753['UserId']&&!_0x28c606()['includes'](_0x44a241,_0x4fd753['id'])&&(_0x422868['inbound'][_0x1de3ed(0x130d)]+=0x1,_0x44a241['push'](_0x4fd753['id']),!_0x4fcfbf&&_0x422868[_0x1de3ed(0x12a4)]['waiting']&&(_0x422868[_0x1de3ed(0x12a4)]['waiting']-=0x1)),_0x4fd753[_0x1de3ed(0x1140)]&&_0x4fd753[_0x1de3ed(0x246c)]&&(_0x422868[_0x1de3ed(0x12a4)][_0x1de3ed(0x286)]+=_0x2ac33a()(_0x4fd753[_0x1de3ed(0x1df0)])[_0x1de3ed(0x2a5)](_0x2ac33a()(_0x4fd753[_0x1de3ed(0xa0f)]),_0x422868[_0x1de3ed(0x3d3)][_0x1de3ed(0x2707)]),_0x422868['inbound'][_0x1de3ed(0x292d)]+=_0x2ac33a()(_0x4fd753[_0x1de3ed(0xa0f)])[_0x1de3ed(0x2a5)](_0x2ac33a()(_0x4fd753[_0x1de3ed(0x2378)]),_0x422868[_0x1de3ed(0x3d3)][_0x1de3ed(0x2707)]),_0x422868['inbound'][_0x1de3ed(0xd92)]+=0x1,!_0x4fcfbf&&_0x422868[_0x1de3ed(0x12a4)][_0x1de3ed(0x130d)]&&(_0x422868[_0x1de3ed(0x12a4)][_0x1de3ed(0x130d)]-=0x1)),_0x4fd753['closed']&&!_0x4fd753[_0x1de3ed(0x246c)]&&(_0x422868[_0x1de3ed(0x12a4)][_0x1de3ed(0x1296)]+=0x1,!_0x4fcfbf&&_0x422868[_0x1de3ed(0x12a4)][_0x1de3ed(0x188f)]&&(_0x422868[_0x1de3ed(0x12a4)][_0x1de3ed(0x188f)]-=0x1)),_0x4fcfbf&&(_0x422868['inbound'][_0x1de3ed(0x1318)]+=0x1);}function _0x1cc438(){const _0x87d448=_0x1f919d;_0x422868[_0x87d448(0x12a4)]['abandonRate']=Math['round']((_0x422868['inbound']['abandoned']+_0x422868[_0x87d448(0x12a4)]['unmanaged'])/(_0x422868[_0x87d448(0x12a4)][_0x87d448(0x1318)]-_0x422868['inbound'][_0x87d448(0x130d)]-_0x422868[_0x87d448(0x12a4)][_0x87d448(0x188f)])*0x64,-0x2),_0x422868[_0x87d448(0x12a4)][_0x87d448(0x406)]=Math['round'](_0x422868[_0x87d448(0x12a4)][_0x87d448(0xd92)]/(_0x422868[_0x87d448(0x12a4)][_0x87d448(0x1318)]-_0x422868[_0x87d448(0x12a4)]['talking']-_0x422868['inbound'][_0x87d448(0x188f)])*0x64,-0x2),_0x422868['inbound'][_0x87d448(0x1a6b)]=_0x2ac33a()['duration'](Math[_0x87d448(0xf38)](_0x422868[_0x87d448(0x12a4)][_0x87d448(0x292d)]/_0x422868[_0x87d448(0x12a4)][_0x87d448(0xd92)]),_0x422868[_0x87d448(0x3d3)]['unit'])[_0x87d448(0x1c2c)](_0x422868['config'][_0x87d448(0x1c2c)],_0x422868[_0x87d448(0x3d3)]),_0x422868[_0x87d448(0x12a4)][_0x87d448(0x7c6)]=_0x2ac33a()[_0x87d448(0xb77)](Math['round'](_0x422868[_0x87d448(0x12a4)][_0x87d448(0x286)]/_0x422868[_0x87d448(0x12a4)][_0x87d448(0xd92)]),_0x422868['config'][_0x87d448(0x2707)])['format'](_0x422868[_0x87d448(0x3d3)][_0x87d448(0x1c2c)],_0x422868[_0x87d448(0x3d3)]);}function _0xef053f(){const _0x57dd53=_0x1f919d;if(Object[_0x57dd53(0x1ec6)](_0x422868[_0x57dd53(0xda9)])['length']>0x0)for(let _0x44b892=0x0;_0x44b892<_0x209a8[_0x57dd53(0x28b8)][_0x57dd53(0x1b9e)];_0x44b892+=0x1){if(_0x3cbcba(_0x209a8[_0x57dd53(0x28b8)][_0x44b892])){const _0x3df2a0=_0x209a8[_0x57dd53(0x28b8)][_0x44b892];_0x5cc175(_0x3df2a0,!![]),_0x1cc438();}}}function _0x3cbcba(_0x3e461e){const _0xd51ab1=_0x1f919d;if(_0x28c606()['some'](_0x422868[_0xd51ab1(0xda9)],{'id':_0x28c606()[_0xd51ab1(0x1251)](_0x3e461e[_0xd51ab1(0x2859)])}))return!![];return![];}function _0x4d6e17(_0x5267ad){const _0xd67c06=_0x1f919d,_0x3cd3de=_0x2ac33a()()[_0xd67c06(0xebc)](0x0,!![])[_0xd67c06(0x246e)](_0xd67c06(0x2784)),_0x3bc4b8=_0x2ac33a()()['utcOffset'](0x0,!![])[_0xd67c06(0x13af)](_0xd67c06(0x2784));return _0x2ac33a()(_0x5267ad)[_0xd67c06(0xebc)](0x0,!![])[_0xd67c06(0xec6)](_0x3cd3de,_0x3bc4b8);}function _0x2d3655(_0x29e5af){const _0x5e8234=_0x1f919d;_0x3cbcba(_0x29e5af)&&_0x4d6e17(_0x29e5af[_0x5e8234(0x2378)])&&(_0x5cc175(_0x29e5af,!![]),_0x1cc438());}function _0x58bca9(_0x406984){_0x3cbcba(_0x406984)&&_0x4d6e17(_0x406984['createdAt'])&&(_0x5cc175(_0x406984,![]),_0x1cc438());}_0x56914f[_0x1f919d(0x8c7)](_0x1f919d(0xf28),function(){const _0x33aec6=_0x1f919d;_0x17017a[_0x33aec6(0x1951)](_0x33aec6(0x2348)),_0x17017a[_0x33aec6(0x1951)](_0x33aec6(0x106b));});}const _0x37b949=_0x5c8aef;;_0xa20dfc[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x633),_0x49a1e3(0x1fff),_0x49a1e3(0x205)];function _0xa20dfc(_0x410deb,_0x1d53d7,_0x4ee2f1,_0x42193c){const _0x5e3635=_0x49a1e3,_0x5b885b=this,_0x5e57d7=[];_0x5b885b[_0x5e3635(0x3d3)]={'format':'hh:mm:ss','unit':'seconds','trim':![]},_0x5b885b[_0x5e3635(0x12a4)]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x5e3635(0x1ca6),'avgTalkTime':_0x5e3635(0x1ca6),'answerRate':0x0,'abandonRate':0x0},_0x5b885b[_0x5e3635(0x205)]=_0x42193c?_0x28c606()[_0x5e3635(0x161e)](_0x42193c[_0x5e3635(0x28b8)]?_0x42193c['rows']:[],'id'):{},_0x5b885b[_0x5e3635(0xeec)]=_0x288b25,_0x5b885b['onUpdateSmsInteraction']=_0x11a2e2,_0x1d53d7['on']('smsInteraction:save',_0x5b885b[_0x5e3635(0xeec)]),_0x1d53d7['on']('smsInteraction:update',_0x5b885b[_0x5e3635(0x188c)]),_0x112d6c();function _0x37b635(_0x3b2b00,_0x2ed87f){const _0x42f175=_0x5e3635;!_0x3b2b00['closed']&&!_0x3b2b00[_0x42f175(0x246c)]&&_0x2ed87f&&(_0x5b885b[_0x42f175(0x12a4)][_0x42f175(0x188f)]+=0x1),!_0x3b2b00['closed']&&_0x3b2b00[_0x42f175(0x246c)]&&!_0x28c606()[_0x42f175(0x68a)](_0x5e57d7,_0x3b2b00['id'])&&(_0x5b885b[_0x42f175(0x12a4)][_0x42f175(0x130d)]+=0x1,_0x5e57d7[_0x42f175(0x1954)](_0x3b2b00['id']),!_0x2ed87f&&_0x5b885b['inbound'][_0x42f175(0x188f)]&&(_0x5b885b[_0x42f175(0x12a4)][_0x42f175(0x188f)]-=0x1)),_0x3b2b00[_0x42f175(0x1140)]&&_0x3b2b00[_0x42f175(0x246c)]&&(_0x5b885b[_0x42f175(0x12a4)][_0x42f175(0x286)]+=_0x2ac33a()(_0x3b2b00[_0x42f175(0x1df0)])[_0x42f175(0x2a5)](_0x2ac33a()(_0x3b2b00[_0x42f175(0xa0f)]),_0x5b885b[_0x42f175(0x3d3)]['unit']),_0x5b885b[_0x42f175(0x12a4)]['sumHoldTime']+=_0x2ac33a()(_0x3b2b00[_0x42f175(0xa0f)])[_0x42f175(0x2a5)](_0x2ac33a()(_0x3b2b00[_0x42f175(0x2378)]),_0x5b885b[_0x42f175(0x3d3)][_0x42f175(0x2707)]),_0x5b885b[_0x42f175(0x12a4)]['answered']+=0x1,!_0x2ed87f&&_0x5b885b[_0x42f175(0x12a4)][_0x42f175(0x130d)]&&(_0x5b885b[_0x42f175(0x12a4)][_0x42f175(0x130d)]-=0x1)),_0x3b2b00[_0x42f175(0x1140)]&&!_0x3b2b00[_0x42f175(0x246c)]&&(_0x5b885b[_0x42f175(0x12a4)]['unmanaged']+=0x1,!_0x2ed87f&&_0x5b885b[_0x42f175(0x12a4)]['waiting']&&(_0x5b885b['inbound'][_0x42f175(0x188f)]-=0x1)),_0x2ed87f&&(_0x5b885b[_0x42f175(0x12a4)]['total']+=0x1);}function _0x346935(){const _0x1abbe2=_0x5e3635;_0x5b885b['inbound']['abandonRate']=Math[_0x1abbe2(0xf38)]((_0x5b885b['inbound'][_0x1abbe2(0x10f0)]+_0x5b885b[_0x1abbe2(0x12a4)][_0x1abbe2(0x1296)])/(_0x5b885b['inbound'][_0x1abbe2(0x1318)]-_0x5b885b['inbound']['talking']-_0x5b885b[_0x1abbe2(0x12a4)][_0x1abbe2(0x188f)])*0x64,-0x2),_0x5b885b[_0x1abbe2(0x12a4)][_0x1abbe2(0x406)]=Math[_0x1abbe2(0xf38)](_0x5b885b['inbound'][_0x1abbe2(0xd92)]/(_0x5b885b[_0x1abbe2(0x12a4)][_0x1abbe2(0x1318)]-_0x5b885b[_0x1abbe2(0x12a4)][_0x1abbe2(0x130d)]-_0x5b885b[_0x1abbe2(0x12a4)][_0x1abbe2(0x188f)])*0x64,-0x2),_0x5b885b[_0x1abbe2(0x12a4)][_0x1abbe2(0x1a6b)]=_0x2ac33a()[_0x1abbe2(0xb77)](Math['round'](_0x5b885b[_0x1abbe2(0x12a4)][_0x1abbe2(0x292d)]/_0x5b885b[_0x1abbe2(0x12a4)][_0x1abbe2(0xd92)]),_0x5b885b[_0x1abbe2(0x3d3)][_0x1abbe2(0x2707)])[_0x1abbe2(0x1c2c)](_0x5b885b[_0x1abbe2(0x3d3)][_0x1abbe2(0x1c2c)],_0x5b885b['config']),_0x5b885b[_0x1abbe2(0x12a4)][_0x1abbe2(0x7c6)]=_0x2ac33a()[_0x1abbe2(0xb77)](Math[_0x1abbe2(0xf38)](_0x5b885b[_0x1abbe2(0x12a4)]['sumBillable']/_0x5b885b['inbound']['answered']),_0x5b885b[_0x1abbe2(0x3d3)][_0x1abbe2(0x2707)])[_0x1abbe2(0x1c2c)](_0x5b885b[_0x1abbe2(0x3d3)][_0x1abbe2(0x1c2c)],_0x5b885b[_0x1abbe2(0x3d3)]);}function _0x112d6c(){const _0x192052=_0x5e3635;if(Object['keys'](_0x5b885b['smsAccounts'])[_0x192052(0x1b9e)]>0x0)for(let _0x4ed989=0x0;_0x4ed989<_0x4ee2f1[_0x192052(0x28b8)][_0x192052(0x1b9e)];_0x4ed989+=0x1){if(_0x29186b(_0x4ee2f1[_0x192052(0x28b8)][_0x4ed989])){const _0x4bfd42=_0x4ee2f1[_0x192052(0x28b8)][_0x4ed989];_0x37b635(_0x4bfd42,!![]),_0x346935();}}}function _0x29186b(_0x11ca65){const _0x18a7ce=_0x5e3635;if(_0x28c606()[_0x18a7ce(0x25f8)](_0x5b885b[_0x18a7ce(0x205)],{'id':_0x28c606()[_0x18a7ce(0x1251)](_0x11ca65['SmsAccountId'])}))return!![];return![];}function _0x47e6f4(_0x52bd0f){const _0x20bd2=_0x5e3635,_0x162087=_0x2ac33a()()['utcOffset'](0x0,!![])[_0x20bd2(0x246e)](_0x20bd2(0x2784)),_0x35ad0b=_0x2ac33a()()[_0x20bd2(0xebc)](0x0,!![])[_0x20bd2(0x13af)]('day');return _0x2ac33a()(_0x52bd0f)[_0x20bd2(0xebc)](0x0,!![])[_0x20bd2(0xec6)](_0x162087,_0x35ad0b);}function _0x288b25(_0x3f4f30){const _0x264267=_0x5e3635;_0x29186b(_0x3f4f30)&&_0x47e6f4(_0x3f4f30[_0x264267(0x2378)])&&(_0x37b635(_0x3f4f30,!![]),_0x346935());}function _0x11a2e2(_0x56764f){_0x29186b(_0x56764f)&&_0x47e6f4(_0x56764f['createdAt'])&&(_0x37b635(_0x56764f,![]),_0x346935());}_0x410deb[_0x5e3635(0x8c7)]('$destroy',function(){const _0x1f51f2=_0x5e3635;_0x1d53d7[_0x1f51f2(0x1951)](_0x1f51f2(0x2880)),_0x1d53d7['removeAllListeners'](_0x1f51f2(0xaeb));});}const _0x56dd55=_0xa20dfc;;_0x1c4487[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0xdcf),_0x49a1e3(0x1947)],_0x2b41be['$inject']=['$q'],_0x2476e7[_0x49a1e3(0x1e73)]=['$q'];function _0x2476e7(_0xa8c5d1){const _0x42fb28=[],_0x1cf655=function(){const _0x377c50=a0_0x4127,_0xf3de2d=_0x42fb28[0x0],_0xeb6587={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':_0x377c50(0x1ca6),'answerRate':0x0,'abandonRate':0x0,'originated':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0};_0x28c606()[_0x377c50(0x1789)](_0xf3de2d['queues'],function(_0x1ac3fa,_0x4e5398){const _0x371ad9=_0x377c50;_0xf3de2d[_0x371ad9(0x22c7)][_0x4e5398]&&(_0xeb6587[_0x371ad9(0x188f)]+=_0xf3de2d['rpcQueues'][_0x4e5398]['waiting']||0x0,_0xeb6587[_0x371ad9(0x130d)]+=(_0xf3de2d['rpcQueues'][_0x4e5398][_0x371ad9(0x130d)]||0x0)+(_0xf3de2d[_0x371ad9(0x22c7)][_0x4e5398][_0x371ad9(0xc00)]||0x0),_0xeb6587[_0x371ad9(0xd92)]+=_0xf3de2d[_0x371ad9(0x22c7)][_0x4e5398]['answered']||0x0,_0xeb6587[_0x371ad9(0x10f0)]+=_0xf3de2d[_0x371ad9(0x22c7)][_0x4e5398]['abandoned']||0x0,_0xeb6587[_0x371ad9(0x292d)]+=_0xf3de2d[_0x371ad9(0x22c7)][_0x4e5398][_0x371ad9(0x292d)]||0x0,_0xeb6587[_0x371ad9(0x286)]+=_0xf3de2d[_0x371ad9(0x22c7)][_0x4e5398]['sumBillable']||0x0,_0xeb6587[_0x371ad9(0x1318)]+=_0xf3de2d['rpcQueues'][_0x4e5398][_0x371ad9(0x1318)]||0x0,_0xeb6587['originated']+=_0xf3de2d[_0x371ad9(0x22c7)][_0x4e5398]['originated']||0x0,_0xeb6587['outboundDropCallsDayCallersExit']+=_0xf3de2d[_0x371ad9(0x22c7)][_0x4e5398][_0x371ad9(0x8a4)]||0x0,_0xeb6587['outboundDropCallsDayTimeout']+=_0xf3de2d[_0x371ad9(0x22c7)][_0x4e5398]['outboundDropCallsDayTimeout']||0x0);});const _0x555e9a=_0xeb6587[_0x377c50(0x1318)]-_0xeb6587[_0x377c50(0xd92)]-_0xeb6587['abandoned'];_0xeb6587[_0x377c50(0x1296)]=_0x555e9a>0x0?_0x555e9a:0x0,_0xeb6587['avgHoldTime']=Math[_0x377c50(0xf38)](_0xeb6587[_0x377c50(0x1318)]>0x0?_0xeb6587[_0x377c50(0x292d)]/_0xeb6587[_0x377c50(0x1318)]:0x0),_0xeb6587[_0x377c50(0x1a6b)]=new Date(_0xeb6587['avgHoldTime']*0x3e8)[_0x377c50(0x232)]()[_0x377c50(0x8b5)](0xb,0x8),_0xeb6587[_0x377c50(0x7c6)]=Math[_0x377c50(0xf38)](_0xeb6587[_0x377c50(0xd92)]>0x0?_0xeb6587[_0x377c50(0x286)]/_0xeb6587['answered']:0x0),_0xeb6587[_0x377c50(0x7c6)]=new Date(_0xeb6587['avgTalkTime']*0x3e8)[_0x377c50(0x232)]()[_0x377c50(0x8b5)](0xb,0x8),_0xeb6587[_0x377c50(0x406)]=Math[_0x377c50(0xf38)]((_0xeb6587[_0x377c50(0x1318)]>0x0?_0xeb6587[_0x377c50(0xd92)]/_0xeb6587['total']*0x64:0x0)*Math[_0x377c50(0x3ee)](0xa,0x1))/Math[_0x377c50(0x3ee)](0xa,0x1),_0xeb6587[_0x377c50(0x28f9)]=Math['round']((_0xeb6587[_0x377c50(0x1318)]>0x0?_0xeb6587[_0x377c50(0x10f0)]/_0xeb6587[_0x377c50(0x1318)]*0x64:0x0)*Math[_0x377c50(0x3ee)](0xa,0x1))/Math[_0x377c50(0x3ee)](0xa,0x1),_0xeb6587[_0x377c50(0x1dad)]=Math[_0x377c50(0xf38)]((_0xeb6587['total']>0x0?_0xeb6587[_0x377c50(0x19aa)]/_0xeb6587[_0x377c50(0x1318)]*0x64:0x0)*Math[_0x377c50(0x3ee)](0xa,0x1))/Math[_0x377c50(0x3ee)](0xa,0x1),_0xeb6587[_0x377c50(0x2697)]=Math['round']((_0xeb6587[_0x377c50(0x1318)]>0x0?_0xeb6587[_0x377c50(0x8a4)]/_0xeb6587[_0x377c50(0x1318)]*0x64:0x0)*Math[_0x377c50(0x3ee)](0xa,0x1))/Math[_0x377c50(0x3ee)](0xa,0x1),_0xeb6587[_0x377c50(0x185b)]=0x64-_0xeb6587[_0x377c50(0x1dad)]-_0xeb6587[_0x377c50(0x2697)]>0x0&&(_0xeb6587[_0x377c50(0x1318)]||0x0>0x0)?0x64-_0xeb6587['outboundDropRate']-_0xeb6587[_0x377c50(0x2697)]:0x0,_0x42fb28['shift'](),_0xf3de2d[_0x377c50(0x122)][_0x377c50(0x1268)](_0xeb6587),_0x42fb28[_0x377c50(0x1b9e)]>0x0&&_0x1cf655();};return function(_0x3889a3){const _0x59bf4e=a0_0x4127,_0x1ddfb6=_0xa8c5d1[_0x59bf4e(0x122)]();return _0x42fb28[_0x59bf4e(0x1954)]({'queues':_0x3889a3[_0x59bf4e(0x1c06)],'rpcQueues':_0x3889a3[_0x59bf4e(0x22c7)],'defer':_0x1ddfb6}),_0x42fb28[_0x59bf4e(0x1b9e)]===0x1&&_0x1cf655(),_0x1ddfb6['promise'];};}function _0x2b41be(_0x38ed6c){const _0x57cc6e=[],_0x165980=function(){const _0x3f18fd=a0_0x4127,_0x8412e7=_0x57cc6e[0x0],_0x6a6278={'originated':0x0,'limitCalls':0x0};_0x28c606()['forIn'](_0x8412e7[_0x3f18fd(0x1163)],function(_0x12123b,_0x5b5445){const _0x1b4456=_0x3f18fd;_0x8412e7[_0x1b4456(0x1163)][_0x5b5445]&&(_0x6a6278[_0x1b4456(0xa1b)]+=_0x8412e7[_0x1b4456(0x1163)][_0x5b5445][_0x1b4456(0xa1b)]||0x0,_0x6a6278[_0x1b4456(0x201a)]+=_0x8412e7['rpcCampaigns'][_0x5b5445][_0x1b4456(0x201a)]||0x0);}),_0x57cc6e[_0x3f18fd(0xec3)](),_0x8412e7[_0x3f18fd(0x122)][_0x3f18fd(0x1268)](_0x6a6278),_0x57cc6e[_0x3f18fd(0x1b9e)]>0x0&&_0x165980();};return function(_0x28566f){const _0x39aa3a=a0_0x4127,_0x3291ea=_0x38ed6c[_0x39aa3a(0x122)]();return _0x57cc6e[_0x39aa3a(0x1954)]({'rpcCampaigns':_0x28566f['rpcCampaigns'],'defer':_0x3291ea}),_0x57cc6e[_0x39aa3a(0x1b9e)]===0x1&&_0x165980(),_0x3291ea[_0x39aa3a(0x1713)];};}function _0x1856cd(){return function(_0x460ab5){const _0x3ff616=a0_0x4127;return new Date(_0x460ab5*0x3e8)[_0x3ff616(0x232)]()['substr'](0xb,0x8);};}function _0x1c4487(_0xcf09da,_0x5e9693,_0x3440d6){const _0xc35639=_0x49a1e3,_0x1688f1=this;_0x1688f1['license']=_0x3440d6,_0x1688f1[_0xc35639(0x2483)]=_0x42d79b;function _0x42d79b(){const _0x1713a0=_0xc35639;_0x1688f1[_0x1713a0(0x24a1)]=_0x5e9693['hasRole'](_0x1713a0(0x2e8))?_0x5e9693[_0x1713a0(0x1244)](0x65):!![];if(_0x1688f1['hasDashboardPermissions']){const _0x344773=_0xcf09da[_0x1713a0(0xa6c)][_0x1713a0(0x2494)];switch(_0x344773){case _0x1713a0(0x11c8):_0x52f3a8();break;case _0x1713a0(0x10df):_0x1688f1[_0x1713a0(0x197c)]=0x0;break;case _0x1713a0(0x21e5):_0x1688f1[_0x1713a0(0x197c)]=0x1;break;case _0x1713a0(0x27b4):_0x1688f1[_0x1713a0(0x197c)]=0x2;break;case'app.dashboards.general.mail':_0x1688f1[_0x1713a0(0x197c)]=0x3;break;case _0x1713a0(0x9da):_0x1688f1['selectedTab']=0x4;break;case _0x1713a0(0x8f7):_0x1688f1[_0x1713a0(0x197c)]=0x5;break;case _0x1713a0(0x16b5):_0x1688f1[_0x1713a0(0x197c)]=0x6;break;case _0x1713a0(0x28ba):_0x1688f1[_0x1713a0(0x197c)]=0x7;break;}}}function _0x52f3a8(){const _0x1b833b=_0xc35639,_0x4f7455=[];_0x1688f1[_0x1b833b(0x1947)][_0x1b833b(0x227c)]&&_0x4f7455[_0x1b833b(0x1954)](_0x1b833b(0x10df)),_0x1688f1[_0x1b833b(0x1947)][_0x1b833b(0x2967)]&&_0x4f7455[_0x1b833b(0x1954)](_0x1b833b(0x21e5)),_0x1688f1['license']['chat']&&_0x4f7455['push']('app.dashboards.general.chat'),_0x1688f1[_0x1b833b(0x1947)][_0x1b833b(0xc71)]&&_0x4f7455['push']('app.dashboards.general.mail'),_0x1688f1[_0x1b833b(0x1947)][_0x1b833b(0x2621)]&&_0x4f7455[_0x1b833b(0x1954)](_0x1b833b(0x9da)),_0x1688f1[_0x1b833b(0x1947)][_0x1b833b(0x28ad)]&&_0x4f7455[_0x1b833b(0x1954)](_0x1b833b(0x8f7)),_0x1688f1[_0x1b833b(0x1947)][_0x1b833b(0x1d37)]&&_0x4f7455[_0x1b833b(0x1954)](_0x1b833b(0x16b5)),_0x1688f1[_0x1b833b(0x1947)]['whatsapp']&&_0x4f7455[_0x1b833b(0x1954)](_0x1b833b(0x28ba));if(_0x4f7455[_0x1b833b(0x1b9e)]>0x0)_0xcf09da['go'](_0x28c606()[_0x1b833b(0x77b)](_0x4f7455));}};_0x4edf8e[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x633),_0x49a1e3(0x288),_0x49a1e3(0x22c7),_0x49a1e3(0xbce),'initializeRealtimeQueue'];function _0x4edf8e(_0x5df5ea,_0x39a1dc,_0x5981f0,_0x287672,_0x17f748,_0x1a24c5){const _0x90fcbc=_0x49a1e3,_0x20661b=this;_0x20661b[_0x90fcbc(0x288)]=_0x5981f0?_0x28c606()[_0x90fcbc(0x161e)](_0x5981f0['rows']?_0x5981f0[_0x90fcbc(0x28b8)]:[],'id'):{},_0x20661b[_0x90fcbc(0x22c7)]=_0x287672?_0x28c606()[_0x90fcbc(0x161e)](_0x287672[_0x90fcbc(0x28b8)]?_0x287672[_0x90fcbc(0x28b8)]:[],'id'):{},_0x20661b[_0x90fcbc(0x12a4)]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x90fcbc(0x1ca6),'avgTalkTime':'00:00:00','answerRate':0x0,'abandonRate':0x0},_0x20661b[_0x90fcbc(0xbce)]=_0x17f748||{'answered':0x0,'sumBillable':0x0,'sumDuration':0x0,'sumHoldTime':0x0,'total':0x0},_0x20661b[_0x90fcbc(0x1ecf)]=_0x377992,_0x20661b['onSaveOutbound']=_0x183aed,_0x39a1dc['on'](_0x90fcbc(0xb9c),_0x20661b['onSaveQueue']),_0x39a1dc['on']('voice_outbound:save',_0x20661b[_0x90fcbc(0x1aa2)]),_0x2a7453();function _0x2a7453(){const _0x8c36ff=_0x90fcbc;_0x1a24c5({'queues':_0x20661b[_0x8c36ff(0x288)],'rpcQueues':_0x20661b[_0x8c36ff(0x22c7)]})[_0x8c36ff(0x64a)](function(_0x444fb9){const _0x3682c9=_0x8c36ff;_0x20661b[_0x3682c9(0x12a4)]=_0x444fb9;});}function _0x377992(_0x4f8707){const _0x36a05c=_0x90fcbc;_0x20661b[_0x36a05c(0x288)][_0x4f8707['id']]&&(_0x20661b[_0x36a05c(0x22c7)][_0x4f8707['id']]&&(_0x20661b[_0x36a05c(0x22c7)][_0x4f8707['id']]=_0x4f8707,_0x2a7453()));}function _0x183aed(_0x54bacc){const _0x4a7c25=_0x90fcbc;_0x20661b[_0x4a7c25(0xbce)]=_0x54bacc;}_0x5df5ea[_0x90fcbc(0x8c7)](_0x90fcbc(0xf28),function(){const _0x4408cb=_0x90fcbc;_0x39a1dc[_0x4408cb(0x1951)](_0x4408cb(0xb9c)),_0x39a1dc[_0x4408cb(0x1951)](_0x4408cb(0x21da));});}const _0xd66899=_0x4edf8e;;_0x1527e1[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'socket','whatsappInteractions',_0x49a1e3(0x21fb)];function _0x1527e1(_0x479889,_0x15b0f4,_0x3d8262,_0x1411e5){const _0x456e33=_0x49a1e3,_0xa9bb4=this,_0x2e6ef9=[];_0xa9bb4[_0x456e33(0x3d3)]={'format':_0x456e33(0x2ca),'unit':_0x456e33(0x15a2),'trim':![]},_0xa9bb4[_0x456e33(0x12a4)]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x456e33(0x1ca6),'avgTalkTime':_0x456e33(0x1ca6),'answerRate':0x0,'abandonRate':0x0},_0xa9bb4[_0x456e33(0x21fb)]=_0x1411e5?_0x28c606()[_0x456e33(0x161e)](_0x1411e5[_0x456e33(0x28b8)]?_0x1411e5[_0x456e33(0x28b8)]:[],'id'):{},_0xa9bb4[_0x456e33(0x2824)]=_0x51ebb6,_0xa9bb4[_0x456e33(0x1183)]=_0x1cd3d0,_0x15b0f4['on']('whatsappInteraction:save',_0xa9bb4[_0x456e33(0x2824)]),_0x15b0f4['on']('whatsappInteraction:update',_0xa9bb4[_0x456e33(0x1183)]),_0x516400();function _0x3c020a(_0x17eae6,_0x3a8346){const _0xc39be5=_0x456e33;!_0x17eae6[_0xc39be5(0x1140)]&&!_0x17eae6[_0xc39be5(0x246c)]&&_0x3a8346&&(_0xa9bb4[_0xc39be5(0x12a4)]['waiting']+=0x1),!_0x17eae6[_0xc39be5(0x1140)]&&_0x17eae6[_0xc39be5(0x246c)]&&!_0x28c606()['includes'](_0x2e6ef9,_0x17eae6['id'])&&(_0xa9bb4[_0xc39be5(0x12a4)][_0xc39be5(0x130d)]+=0x1,_0x2e6ef9[_0xc39be5(0x1954)](_0x17eae6['id']),!_0x3a8346&&_0xa9bb4[_0xc39be5(0x12a4)]['waiting']&&(_0xa9bb4[_0xc39be5(0x12a4)]['waiting']-=0x1)),_0x17eae6['closed']&&_0x17eae6[_0xc39be5(0x246c)]&&(_0xa9bb4[_0xc39be5(0x12a4)][_0xc39be5(0x286)]+=_0x2ac33a()(_0x17eae6[_0xc39be5(0x1df0)])[_0xc39be5(0x2a5)](_0x2ac33a()(_0x17eae6[_0xc39be5(0xa0f)]),_0xa9bb4[_0xc39be5(0x3d3)]['unit']),_0xa9bb4[_0xc39be5(0x12a4)]['sumHoldTime']+=_0x2ac33a()(_0x17eae6['read1stAt'])[_0xc39be5(0x2a5)](_0x2ac33a()(_0x17eae6[_0xc39be5(0x2378)]),_0xa9bb4[_0xc39be5(0x3d3)][_0xc39be5(0x2707)]),_0xa9bb4[_0xc39be5(0x12a4)]['answered']+=0x1,!_0x3a8346&&_0xa9bb4[_0xc39be5(0x12a4)]['talking']&&(_0xa9bb4[_0xc39be5(0x12a4)][_0xc39be5(0x130d)]-=0x1)),_0x17eae6[_0xc39be5(0x1140)]&&!_0x17eae6[_0xc39be5(0x246c)]&&(_0xa9bb4[_0xc39be5(0x12a4)][_0xc39be5(0x1296)]+=0x1,!_0x3a8346&&_0xa9bb4[_0xc39be5(0x12a4)][_0xc39be5(0x188f)]&&(_0xa9bb4['inbound']['waiting']-=0x1)),_0x3a8346&&(_0xa9bb4[_0xc39be5(0x12a4)][_0xc39be5(0x1318)]+=0x1);}function _0x30ef0c(){const _0x4a420a=_0x456e33;_0xa9bb4[_0x4a420a(0x12a4)][_0x4a420a(0x28f9)]=Math[_0x4a420a(0xf38)]((_0xa9bb4['inbound']['abandoned']+_0xa9bb4[_0x4a420a(0x12a4)][_0x4a420a(0x1296)])/(_0xa9bb4[_0x4a420a(0x12a4)]['total']-_0xa9bb4[_0x4a420a(0x12a4)][_0x4a420a(0x130d)]-_0xa9bb4[_0x4a420a(0x12a4)]['waiting'])*0x64,-0x2),_0xa9bb4[_0x4a420a(0x12a4)][_0x4a420a(0x406)]=Math['round'](_0xa9bb4[_0x4a420a(0x12a4)][_0x4a420a(0xd92)]/(_0xa9bb4['inbound'][_0x4a420a(0x1318)]-_0xa9bb4[_0x4a420a(0x12a4)][_0x4a420a(0x130d)]-_0xa9bb4[_0x4a420a(0x12a4)][_0x4a420a(0x188f)])*0x64,-0x2),_0xa9bb4[_0x4a420a(0x12a4)]['avgHoldTime']=_0x2ac33a()['duration'](Math['round'](_0xa9bb4[_0x4a420a(0x12a4)][_0x4a420a(0x292d)]/_0xa9bb4[_0x4a420a(0x12a4)]['answered']),_0xa9bb4[_0x4a420a(0x3d3)]['unit'])[_0x4a420a(0x1c2c)](_0xa9bb4[_0x4a420a(0x3d3)][_0x4a420a(0x1c2c)],_0xa9bb4[_0x4a420a(0x3d3)]),_0xa9bb4['inbound'][_0x4a420a(0x7c6)]=_0x2ac33a()['duration'](Math[_0x4a420a(0xf38)](_0xa9bb4[_0x4a420a(0x12a4)]['sumBillable']/_0xa9bb4['inbound'][_0x4a420a(0xd92)]),_0xa9bb4['config'][_0x4a420a(0x2707)])[_0x4a420a(0x1c2c)](_0xa9bb4[_0x4a420a(0x3d3)][_0x4a420a(0x1c2c)],_0xa9bb4[_0x4a420a(0x3d3)]);}function _0x516400(){const _0xcd02ac=_0x456e33;if(Object[_0xcd02ac(0x1ec6)](_0xa9bb4[_0xcd02ac(0x21fb)])[_0xcd02ac(0x1b9e)]>0x0)for(let _0x389dc8=0x0;_0x389dc8<_0x3d8262[_0xcd02ac(0x28b8)][_0xcd02ac(0x1b9e)];_0x389dc8+=0x1){if(_0x136ac0(_0x3d8262[_0xcd02ac(0x28b8)][_0x389dc8])){const _0x5506c0=_0x3d8262[_0xcd02ac(0x28b8)][_0x389dc8];_0x3c020a(_0x5506c0,!![]),_0x30ef0c();}}}function _0x136ac0(_0x109d01){const _0x5e9c2b=_0x456e33;if(_0x28c606()[_0x5e9c2b(0x25f8)](_0xa9bb4[_0x5e9c2b(0x21fb)],{'id':_0x28c606()['toNumber'](_0x109d01[_0x5e9c2b(0x222)])}))return!![];return![];}function _0x5033e4(_0x4fc7e0){const _0x360867=_0x456e33,_0x2d2217=_0x2ac33a()()[_0x360867(0xebc)](0x0,!![])[_0x360867(0x246e)](_0x360867(0x2784)),_0x4932a5=_0x2ac33a()()[_0x360867(0xebc)](0x0,!![])[_0x360867(0x13af)]('day');return _0x2ac33a()(_0x4fc7e0)['utcOffset'](0x0,!![])[_0x360867(0xec6)](_0x2d2217,_0x4932a5);}function _0x51ebb6(_0x5aacc0){_0x136ac0(_0x5aacc0)&&_0x5033e4(_0x5aacc0['createdAt'])&&(_0x3c020a(_0x5aacc0,!![]),_0x30ef0c());}function _0x1cd3d0(_0x143045){const _0x5a9391=_0x456e33;_0x136ac0(_0x143045)&&_0x5033e4(_0x143045[_0x5a9391(0x2378)])&&(_0x3c020a(_0x143045,![]),_0x30ef0c());}_0x479889['$on']('$destroy',function(){const _0x7db13c=_0x456e33;_0x15b0f4[_0x7db13c(0x1951)]('whatsappInteraction:save'),_0x15b0f4['removeAllListeners'](_0x7db13c(0x315));});}const _0x31a5a5=_0x1527e1;;_0x465342[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad)];function _0x465342(_0x55c173){const _0xef090d=_0x49a1e3;_0x55c173[_0xef090d(0x14f2)](_0xef090d(0x10df),{'url':_0xef090d(0x256a),'data':{'selectedTab':0x0},'views':{'voice':{'templateUrl':_0x2c5fec,'controller':'UserVoiceDashboardGeneralController\x20as\x20vm'}},'resolve':{'rpcQueues':[_0xef090d(0x107c),function(_0xf651aa){const _0x521a40=_0xef090d;return _0xf651aa['resolve'](_0x521a40(0xe70));}],'inboundQueues':['apiResolver','Auth',function(_0xb51201,_0x20526e){const _0x1e3770=_0xef090d;return _0x20526e[_0x1e3770(0x4de)](_0x1e3770(0x333))?_0xb51201['resolve']('voiceQueue@get',{'fields':'id,name','type':'inbound','nolimit':!![]}):_0xb51201[_0x1e3770(0x1268)](_0x1e3770(0x1758),{'id':_0x20526e[_0x1e3770(0x808)]()[_0x1e3770(0x21ac)],'section':'VoiceQueues','fields':_0x1e3770(0x1427),'type':'inbound','channel':_0x1e3770(0x227c),'nolimit':!![]});}],'outbound':['apiResolver',function(_0xa0661a){const _0x2ed1ee=_0xef090d;return _0xa0661a['resolve'](_0x2ed1ee(0x1832));}]},'authenticate':!![],'bodyClass':_0xef090d(0x2309)})['state'](_0xef090d(0x21e5),{'url':_0xef090d(0x1142),'data':{'selectedTab':0x1},'views':{'dialer':{'templateUrl':_0x56f5da,'controller':_0xef090d(0x125c)}},'resolve':{'rpcQueues':[_0xef090d(0x107c),function(_0x5df7cd){const _0x217195=_0xef090d;return _0x5df7cd[_0x217195(0x1268)](_0x217195(0xe70));}],'outboundQueues':[_0xef090d(0x107c),_0xef090d(0xdcf),function(_0x42c850,_0xbcefb6){const _0x15b489=_0xef090d;return _0xbcefb6[_0x15b489(0x4de)](_0x15b489(0x333))?_0x42c850[_0x15b489(0x1268)](_0x15b489(0x1c51),{'fields':_0x15b489(0x1427),'type':_0x15b489(0xbce),'nolimit':!![]}):_0x42c850[_0x15b489(0x1268)](_0x15b489(0x1758),{'id':_0xbcefb6[_0x15b489(0x808)]()[_0x15b489(0x21ac)],'section':_0x15b489(0x2350),'fields':_0x15b489(0x1427),'type':_0x15b489(0xbce),'channel':_0x15b489(0x227c),'nolimit':!![]});}],'rpcCampaigns':[_0xef090d(0x107c),function(_0x77e5ca){const _0x3add31=_0xef090d;return _0x77e5ca[_0x3add31(0x1268)](_0x3add31(0x879));}]},'authenticate':!![],'bodyClass':'dashboards'})[_0xef090d(0x14f2)](_0xef090d(0x27b4),{'url':_0xef090d(0x28e9),'data':{'selectedTab':0x2},'views':{'chat':{'templateUrl':_0x179022,'controller':'UserChatDashboardGeneralController\x20as\x20vm'}},'resolve':{'chatInteractions':[_0xef090d(0x107c),function(_0x12eaf6){const _0x48e794=_0xef090d;return _0x12eaf6['resolve'](_0x48e794(0xe7a),{'createdAt':{'$gte':_0x2ac33a()()[_0x48e794(0x246e)](_0x48e794(0x2784))[_0x48e794(0xebc)](0x0,!![])[_0x48e794(0x1c2c)](),'$lte':_0x2ac33a()()[_0x48e794(0x13af)](_0x48e794(0x2784))[_0x48e794(0xebc)](0x0,!![])[_0x48e794(0x1c2c)]()},'nolimit':!![]});}],'chatWebsites':[_0xef090d(0x107c),_0xef090d(0xdcf),function(_0x3f2213,_0x41ed36){const _0x230490=_0xef090d;return _0x41ed36[_0x230490(0x4de)](_0x230490(0x333))?_0x3f2213[_0x230490(0x1268)](_0x230490(0x225c),{'fields':'createdAt,updatedAt,id,token,agentIdentifier,customerAlias,messageFontSize,name,key,address,remote,ListId,fidelity,timeout,agentAlias,closingQuestion,formSubmitSuccessMessage,formSubmitFailureMessage,color,color_focus,color_button,textColor,backgroundColor,fontSize,header_shape,showAgentAvatar,showCustomerAvatar,alignment,verticalAlignment,messagesAlignment,defaultTitle,animation,defaultWhiteLabel,whiteLabel,defaultLogo,conditionAgreement,autoclose,enableUnmanagedNote,unmanagedMessage,skipUnmanaged,sendUnmanaged,enableCustomerWriting,waitingTitle,waitingMessage,closingMessage,noteTitle,placeholderMessage,skipMessageButton,enableRating,ratingType,ratingStarsNumber,enableFeedback,forwardTranscript,forwardTranscriptMessage,closingMessageButton,download_transcript,enableCustomerAttachment,systemAlias,enquiry_enable,enquiry_forwarding,enquiry_forwarding_address,name_title,username_placeholder,email_title,email_placeholder,header_online,hideWhenOffline,header_offline,start_chat_button,offline_chat_button,offlineMessageSubject,offlineMessageBody,header_offline,offline_message,message_title,enquiry_message_placeholder,enquiry_button,rating_message,rating_send,rating_skip,acceptMethod,acceptUrl,rejectMethod,rejectUrl,closeMethod,closeUrl,onlineForm,offlineForm,mapKey,mapKeyOffline,forwardTranscript,forwardOffline,forwardOfflineAddress,IntervalId,timezone,waitForTheAssignedAgent,description,notificationSound,notificationShake,notificationTemplate','sort':_0x230490(0x260c),'limit':0xa,'offset':0x0}):_0x3f2213['resolve'](_0x230490(0x1758),{'id':_0x41ed36[_0x230490(0x808)]()[_0x230490(0x21ac)],'section':_0x230490(0x241a),'fields':_0x230490(0x2452),'sort':_0x230490(0x260c),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':'dashboards'})[_0xef090d(0x14f2)](_0xef090d(0x188a),{'url':_0xef090d(0x99d),'data':{'selectedTab':0x3},'views':{'mail':{'templateUrl':_0x376bcb,'controller':'UserMailDashboardGeneralController\x20as\x20vm'}},'resolve':{'mailInteractions':[_0xef090d(0x107c),function(_0x24c421){const _0x31367a=_0xef090d;return _0x24c421['resolve'](_0x31367a(0x100a),{'createdAt':{'$gte':_0x2ac33a()()['startOf'](_0x31367a(0x2784))['utcOffset'](0x0,!![])[_0x31367a(0x1c2c)](),'$lte':_0x2ac33a()()[_0x31367a(0x13af)]('day')[_0x31367a(0xebc)](0x0,!![])[_0x31367a(0x1c2c)]()},'nolimit':!![]});}],'mailAccounts':[_0xef090d(0x107c),_0xef090d(0xdcf),function(_0x4b2677,_0x1fa002){const _0x350e49=_0xef090d;return _0x1fa002['hasRole'](_0x350e49(0x333))?_0x4b2677[_0x350e49(0x1268)](_0x350e49(0x1cdb),{'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':_0x350e49(0x260c),'limit':0xa,'offset':0x0}):_0x4b2677['resolve'](_0x350e49(0x1758),{'id':_0x1fa002[_0x350e49(0x808)]()['userProfileId'],'section':_0x350e49(0x1941),'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':_0x350e49(0x260c),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0xef090d(0x2309)})[_0xef090d(0x14f2)]('app.dashboards.general.sms',{'url':'/sms','data':{'selectedTab':0x4},'views':{'sms':{'templateUrl':_0x54aa48,'controller':_0xef090d(0xdc0)}},'resolve':{'smsInteractions':[_0xef090d(0x107c),function(_0x14c83c){const _0x375d12=_0xef090d;return _0x14c83c['resolve']('smsInteraction@get',{'createdAt':{'$gte':_0x2ac33a()()['startOf'](_0x375d12(0x2784))[_0x375d12(0xebc)](0x0,!![])[_0x375d12(0x1c2c)](),'$lte':_0x2ac33a()()['endOf']('day')['utcOffset'](0x0,!![])[_0x375d12(0x1c2c)]()},'nolimit':!![]});}],'smsAccounts':[_0xef090d(0x107c),'Auth',function(_0x657116,_0x430477){const _0x12d189=_0xef090d;return _0x430477[_0x12d189(0x4de)](_0x12d189(0x333))?_0x657116[_0x12d189(0x1268)](_0x12d189(0x1c75),{'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':_0x12d189(0x260c),'limit':0xa,'offset':0x0}):_0x657116[_0x12d189(0x1268)]('userProfile@getResources',{'id':_0x430477[_0x12d189(0x808)]()[_0x12d189(0x21ac)],'section':_0x12d189(0x29a),'fields':_0x12d189(0x2d0),'sort':_0x12d189(0x260c),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0xef090d(0x2309)})[_0xef090d(0x14f2)](_0xef090d(0x8f7),{'url':'/openchannel','data':{'selectedTab':0x5},'views':{'openchannel':{'templateUrl':_0x11f426,'controller':'UserOpenchannelDashboardGeneralController\x20as\x20vm'}},'resolve':{'openchannelInteractions':[_0xef090d(0x107c),function(_0x3d95d4){const _0x125e77=_0xef090d;return _0x3d95d4[_0x125e77(0x1268)](_0x125e77(0x27c6),{'createdAt':{'$gte':_0x2ac33a()()[_0x125e77(0x246e)](_0x125e77(0x2784))[_0x125e77(0xebc)](0x0,!![])[_0x125e77(0x1c2c)](),'$lte':_0x2ac33a()()[_0x125e77(0x13af)](_0x125e77(0x2784))['utcOffset'](0x0,!![])[_0x125e77(0x1c2c)]()},'nolimit':!![]});}],'openchannelAccounts':[_0xef090d(0x107c),_0xef090d(0xdcf),function(_0x1201c0,_0x363c21){const _0x54fb21=_0xef090d;return _0x363c21[_0x54fb21(0x4de)](_0x54fb21(0x333))?_0x1201c0[_0x54fb21(0x1268)](_0x54fb21(0x8ce),{'fields':_0x54fb21(0x59d),'sort':_0x54fb21(0x260c),'nolimit':!![]}):_0x1201c0[_0x54fb21(0x1268)](_0x54fb21(0x1758),{'id':_0x363c21[_0x54fb21(0x808)]()[_0x54fb21(0x21ac)],'section':_0x54fb21(0x141b),'fields':_0x54fb21(0x59d),'sort':_0x54fb21(0x260c),'nolimit':!![]});}]},'authenticate':!![],'bodyClass':'dashboards'})[_0xef090d(0x14f2)](_0xef090d(0x16b5),{'url':'/fax','data':{'selectedTab':0x6},'views':{'fax':{'templateUrl':_0x76f65f,'controller':'UserFaxDashboardGeneralController\x20as\x20vm'}},'resolve':{'faxInteractions':[_0xef090d(0x107c),function(_0x4b1406){const _0x30d78a=_0xef090d;return _0x4b1406['resolve'](_0x30d78a(0x10f),{'createdAt':{'$gte':_0x2ac33a()()[_0x30d78a(0x246e)](_0x30d78a(0x2784))[_0x30d78a(0xebc)](0x0,!![])[_0x30d78a(0x1c2c)](),'$lte':_0x2ac33a()()['endOf'](_0x30d78a(0x2784))[_0x30d78a(0xebc)](0x0,!![])[_0x30d78a(0x1c2c)]()},'nolimit':!![]});}],'faxAccounts':[_0xef090d(0x107c),'Auth',function(_0x44e93b,_0x559f36){const _0x2b4844=_0xef090d;return _0x559f36['hasRole'](_0x2b4844(0x333))?_0x44e93b[_0x2b4844(0x1268)](_0x2b4844(0x2028),{'fields':_0x2b4844(0x2330),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x44e93b[_0x2b4844(0x1268)]('userProfile@getResources',{'id':_0x559f36[_0x2b4844(0x808)]()[_0x2b4844(0x21ac)],'section':_0x2b4844(0x1d83),'fields':_0x2b4844(0x2330),'sort':_0x2b4844(0x260c),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':'dashboards'})[_0xef090d(0x14f2)](_0xef090d(0x28ba),{'url':'/whatsapp','data':{'selectedTab':0x7},'views':{'whatsapp':{'templateUrl':_0x455c67,'controller':_0xef090d(0x17ec)}},'resolve':{'whatsappInteractions':[_0xef090d(0x107c),function(_0x861520){const _0x59dea6=_0xef090d;return _0x861520[_0x59dea6(0x1268)](_0x59dea6(0x21a7),{'createdAt':{'$gte':_0x2ac33a()()['startOf'](_0x59dea6(0x2784))[_0x59dea6(0xebc)](0x0,!![])['format'](),'$lte':_0x2ac33a()()[_0x59dea6(0x13af)](_0x59dea6(0x2784))[_0x59dea6(0xebc)](0x0,!![])['format']()},'nolimit':!![]});}],'whatsappAccounts':['apiResolver','Auth',function(_0x204b48,_0x159cb9){const _0x2fa803=_0xef090d;return _0x159cb9[_0x2fa803(0x4de)](_0x2fa803(0x333))?_0x204b48[_0x2fa803(0x1268)](_0x2fa803(0x16d0),{'fields':_0x2fa803(0x16da),'sort':_0x2fa803(0x260c),'limit':0xa,'offset':0x0}):_0x204b48[_0x2fa803(0x1268)](_0x2fa803(0x1758),{'id':_0x159cb9[_0x2fa803(0x808)]()[_0x2fa803(0x21ac)],'section':_0x2fa803(0xfa8),'fields':_0x2fa803(0x16da),'sort':_0x2fa803(0x260c),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':'dashboards'});}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x1534),[])[_0x49a1e3(0x3d3)](_0x465342)[_0x49a1e3(0x38e)](_0x49a1e3(0x1e85),_0x2b7db9)[_0x49a1e3(0x38e)](_0x49a1e3(0x1fa4),_0x1bdc20)[_0x49a1e3(0x38e)]('UserFaxDashboardGeneralController',_0x5dec93)[_0x49a1e3(0x38e)](_0x49a1e3(0x172d),_0x1d85e7)[_0x49a1e3(0x38e)]('UserOpenchannelDashboardGeneralController',_0x37b949)[_0x49a1e3(0x38e)](_0x49a1e3(0x1cba),_0x56dd55)[_0x49a1e3(0xcec)](_0x49a1e3(0x1087),_0x1856cd)[_0x49a1e3(0x646)]('initializeRealtimeQueue',_0x2476e7)[_0x49a1e3(0x646)](_0x49a1e3(0x55a),_0x2b41be)[_0x49a1e3(0x38e)](_0x49a1e3(0x11e1),_0x1c4487)['controller'](_0x49a1e3(0x2755),_0xd66899)[_0x49a1e3(0x38e)](_0x49a1e3(0x20e0),_0x31a5a5);;const _0x17dbb5=_0x2e4a48['p']+_0x49a1e3(0x28f);;const _0x2608df=_0x2e4a48['p']+_0x49a1e3(0x1fa9);var _0x8d333c=_0x2e4a48(0x1d2),_0x47f9c8=_0x2e4a48['n'](_0x8d333c);;_0x525137[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x2159),'$translate','$window',_0x49a1e3(0xdcf)],_0x3cb872[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x20d4),_0x49a1e3(0x212a),'$window','$translate','$document',_0x49a1e3(0xdcf),'api',_0x49a1e3(0x633),_0x49a1e3(0x680),_0x49a1e3(0x1ee4),_0x49a1e3(0x159c),_0x49a1e3(0x26bd),_0x49a1e3(0x24fe),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x205c),_0x49a1e3(0x1214)];function _0x3cb872(_0x3140c8,_0x19e57b,_0x441fcf,_0xa26a91,_0x1b0a32,_0x3e6664,_0x3514e3,_0x159bf9,_0x242766,_0x38a9c7,_0x53628e,_0x75441c,_0x2008c5,_0x504180,_0x325f8b,_0xff9304,_0x8c510d,_0x4adfcc){const _0x26e745=_0x49a1e3,_0x3edd72=this;_0x3edd72[_0x26e745(0x1947)]=_0x325f8b,_0x3edd72['setting']=_0xff9304,_0x3edd72['detectBrowser']=_0x4adfcc['detectBrowser'](),_0x3edd72[_0x26e745(0x2e8)]=_0x3514e3[_0x26e745(0x808)](),_0x3edd72[_0x26e745(0xc6b)]=0x0,_0x3edd72[_0x26e745(0xb57)]={},_0x3edd72[_0x26e745(0x266f)]={},_0x3edd72[_0x26e745(0x1b38)]={},_0x3edd72[_0x26e745(0x1ee4)]=_0x53628e||{'count':0x0,'rows':[]},_0x3edd72[_0x26e745(0x159c)]=_0x75441c||{'count':0x0,'rows':[]},_0x3edd72['globalCompanies']=_0x2008c5||{'count':0x0,'rows':[]},_0x3edd72[_0x26e745(0x24fe)]=_0x504180||{'count':0x0,'rows':[]},_0x3edd72[_0x26e745(0x6c1)]=_0x668c7e,_0x3edd72[_0x26e745(0xfde)]=_0x499d08,_0x3edd72['alreadyExistsTab']=_0x57db0d,_0x3edd72['addContactTab']=_0x127bf6,_0x3edd72[_0x26e745(0x1540)]=_0x588aa1,_0x3edd72[_0x26e745(0x12c0)]=_0x25b7b2,_0x3edd72[_0x26e745(0xc4c)]=_0x10e1d4,_0x3edd72[_0x26e745(0x283b)]=_0x33a8cd,_0x3edd72[_0x26e745(0x2930)]=_0x1e8ee0,_0x242766['on'](_0x26e745(0x1316),_0x442bd9),_0x242766['on'](_0x26e745(0x999),_0x549d0d),_0x242766['on'](_0x26e745(0x1470),_0x273faa),_0x242766['on'](_0x26e745(0x2908),_0x4bd9b7),_0x242766['on']('trigger:browser:popup',_0x4e6c4f),_0x242766['on'](_0x26e745(0x1c30),_0x7cb3e),_0x242766['on'](_0x26e745(0x1085),_0x561b2c),_0x242766['on'](_0x26e745(0x6d9),_0x1be309),_0x242766['on']('voice_outbound_channel:remove',_0x1be309),_0x371974();function _0x371974(){const _0x14558f=_0x26e745;let _0x2491af=_0xa26a91[_0x14558f(0x294)]['getItem'](_0x14558f(0x155e)+_0x3edd72[_0x14558f(0x2e8)]['id']);if(_0x2491af)try{_0x2491af=JSON[_0x14558f(0x27f1)](_0x2491af),_0x3edd72['tabs']=_0x2491af['tabs']?_0x2491af[_0x14558f(0x266f)]:{},_0x3edd72[_0x14558f(0xc6b)]=_0x2491af[_0x14558f(0xc6b)]?_0x2491af['currentTab']:0x0,_0x39e421(_0x3edd72['tabs'][_0x3edd72['currentTab']]);}catch(_0x5e4411){console[_0x14558f(0x1bd0)](_0x5e4411);}}function _0x33a8cd(_0x5532b0){const _0x30037e=_0x26e745,_0x14f762={};for(const _0x423732 in _0x3edd72[_0x30037e(0x266f)]){typeof _0x3edd72[_0x30037e(0x266f)][_0x423732]!=='undefined'&&(_0x14f762[_0x423732]=_0x28c606()[_0x30037e(0x27bb)](_0x3edd72[_0x30037e(0x266f)][_0x423732],['type','title',_0x30037e(0x2156),_0x30037e(0x1cde),_0x30037e(0x10c2),_0x30037e(0x1153),'id',_0x30037e(0x282a),_0x30037e(0x298e)]),!_0x28c606()[_0x30037e(0x28d7)](_0x3edd72['tabs'][_0x423732][_0x30037e(0x13f7)])&&(_0x14f762[_0x423732]['contact']=_0x28c606()[_0x30037e(0x27bb)](_0x3edd72[_0x30037e(0x266f)][_0x423732][_0x30037e(0x13f7)],['id',_0x30037e(0x869)])),!_0x28c606()[_0x30037e(0x28d7)](_0x3edd72['tabs'][_0x423732][_0x30037e(0x1a3a)])&&(_0x14f762[_0x423732]['calls']=_0x3edd72['tabs'][_0x423732][_0x30037e(0x1a3a)]),_0x3edd72[_0x30037e(0x266f)][_0x423732]['interaction']&&(_0x14f762[_0x423732][_0x30037e(0x73a)]=_0x28c606()[_0x30037e(0x27bb)](_0x3edd72[_0x30037e(0x266f)][_0x423732][_0x30037e(0x73a)],['id',_0x30037e(0x2859),'MailAccountId',_0x30037e(0xd93),_0x30037e(0x1da3),_0x30037e(0x1be5),_0x30037e(0x222),_0x30037e(0x1140),_0x30037e(0x2581)])));}let _0x4a4d5d=JSON['parse'](_0xa26a91[_0x30037e(0x294)]['getItem'](_0x30037e(0x155e)+_0x3edd72[_0x30037e(0x2e8)]['id']));_0x4a4d5d?(_0x4a4d5d[_0x30037e(0x266f)]=_0x14f762,_0x4a4d5d['currentTab']=_0x3edd72[_0x30037e(0xc6b)]):_0x4a4d5d={'tabs':_0x14f762,'currentTab':_0x3edd72[_0x30037e(0xc6b)]},_0xa26a91[_0x30037e(0x294)][_0x30037e(0x15da)](_0x30037e(0x155e)+_0x3edd72[_0x30037e(0x2e8)]['id'],JSON[_0x30037e(0x2317)](_0x4a4d5d)),_0x5532b0&&_0x39e421(_0x5532b0);}function _0x39e421(_0x536598){const _0x1129a5=_0x26e745;if(_0x28c606()[_0x1129a5(0x28d7)](_0x536598)||_0x536598&&_0x536598[_0x1129a5(0x2185)]===_0x1129a5(0x73a)){const _0x342b23={'id':_0x3edd72[_0x1129a5(0x2e8)]['id'],'online':!![],'capacity':{'mail':0x0,'fax':0x0,'sms':0x0,'whatsapp':0x0,'openchannel':0x0,'chat':0x0},'interaction':{'mail':[],'fax':[],'sms':[],'whatsapp':[],'openchannel':[],'chat':[]}};for(const _0x4cb409 in _0x3edd72[_0x1129a5(0x266f)]){typeof _0x3edd72[_0x1129a5(0x266f)][_0x4cb409]!==_0x1129a5(0x19a1)&&(typeof _0x342b23[_0x1129a5(0x310)][_0x3edd72[_0x1129a5(0x266f)][_0x4cb409]['channel']]!=='undefined'&&_0x3edd72['tabs'][_0x4cb409]['interaction']&&!_0x3edd72[_0x1129a5(0x266f)][_0x4cb409]['interaction']['closed']&&(_0x342b23[_0x1129a5(0x310)][_0x3edd72[_0x1129a5(0x266f)][_0x4cb409][_0x1129a5(0x2156)]]+=0x1,_0x342b23['interaction'][_0x3edd72[_0x1129a5(0x266f)][_0x4cb409]['channel']]['push'](_0x3edd72[_0x1129a5(0x266f)][_0x4cb409][_0x1129a5(0x73a)]['id'])));}if(!_0x28c606()['isEqual'](_0x3edd72[_0x1129a5(0x1b38)],_0x342b23[_0x1129a5(0x310)]))return _0x3edd72['agentCapacity']=_0x342b23['capacity'],_0x159bf9['rpc'][_0x1129a5(0x1d59)](_0x342b23);}}function _0x1e8ee0(_0x510b55){const _0x33369d=_0x26e745;let _0x32e0ee=![];const _0x458159=_0x441fcf[_0x33369d(0x856)]()[_0x33369d(0x2021)](_0x510b55[_0x33369d(0x2185)]===_0x33369d(0x73a)?_0x33369d(0x1c07):_0x33369d(0xf6e)+_0x510b55[_0x33369d(0x2185)]+'?')[_0x33369d(0x250d)](_0x510b55[_0x33369d(0x2185)]===_0x33369d(0x73a)?'':_0x33369d(0x2966)+_0x510b55[_0x33369d(0x2185)]+_0x33369d(0x2813))[_0x33369d(0x213e)](_0x33369d(0x1065))['ok'](_0x510b55['type']===_0x33369d(0x73a)?_0x33369d(0x1ff5):'OK')[_0x33369d(0x101a)](_0x510b55[_0x33369d(0x2185)]===_0x33369d(0x73a)?'NO':_0x33369d(0x18fd));if(_0x510b55[_0x33369d(0x282a)]){let _0xa3688c=![];_0x28c606()[_0x33369d(0x1397)](_0x510b55[_0x33369d(0x1a3a)],function(_0x2d356f){_0x2d356f['mandatoryDisposition']&&(_0xa3688c=!![]);});if(_0x510b55[_0x33369d(0x2185)]===_0x33369d(0x13f7)&&_0x510b55[_0x33369d(0x1a3a)]['length']>0x0){let _0x4f7b95=undefined;if(_0xa3688c)_0x4f7b95=_0x441fcf[_0x33369d(0x2540)]()[_0x33369d(0x2021)]('Warning')[_0x33369d(0x250d)](_0x33369d(0xbd6))['ok']('OK'),_0x441fcf['show'](_0x4f7b95)[_0x33369d(0x988)](function(){_0x4f7b95=undefined;});else return _0x458159[_0x33369d(0x227e)][_0x33369d(0x250d)]=_0x33369d(0xbd6),_0x441fcf['show'](_0x458159)['then'](function(){_0x10e1d4(_0x510b55);});}else _0x10e1d4(_0x510b55);}else{const _0x1dedf9=_0x3edd72[_0x33369d(0x2e8)][_0x33369d(0x11a4)]||_0x3edd72[_0x33369d(0x2e8)][_0x33369d(0x2248)]||_0x3edd72[_0x33369d(0x2e8)][_0x33369d(0x292)]||_0x3edd72[_0x33369d(0x2e8)][_0x33369d(0x1451)]||_0x3edd72[_0x33369d(0x2e8)][_0x33369d(0x211)];return _0x32e0ee=![],_0x510b55['type']===_0x33369d(0x73a)&&(_0x32e0ee=_0x510b55[_0x33369d(0x73a)][_0x33369d(0x141)][_0x33369d(0xe19)]),_0x441fcf['show'](_0x458159)[_0x33369d(0x64a)](function(){const _0xfe8f90=_0x33369d;_0x510b55[_0xfe8f90(0x2185)]===_0xfe8f90(0x73a)&&_0x441fcf[_0xfe8f90(0xa60)]({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x17dbb5,'parent':angular[_0xfe8f90(0x1f81)](_0x3e6664['body']),'onRemoving':function(){const _0x5cb469=_0xfe8f90;_0x3edd72['user']&&_0x32e0ee&&!_0x1dedf9&&_0x159bf9['user'][_0x5cb469(0x818)]({'id':_0x3edd72[_0x5cb469(0x2e8)]['id']})[_0x5cb469(0x15e7)][_0x5cb469(0x20cd)](function(_0xf930e9){const _0x3a685b=_0x5cb469;console[_0x3a685b(0x1bd0)](_0xf930e9);});},'clickOutsideToClose':!_0x32e0ee,'escapeToClose':!_0x32e0ee,'locals':{'user':_0x3edd72['user'],'channel':_0x510b55[_0xfe8f90(0x2156)],'interaction':_0x510b55[_0xfe8f90(0x73a)]}}),_0x10e1d4(_0x510b55);})['catch'](function(){const _0x45ad40=_0x33369d;_0x510b55[_0x45ad40(0x2185)]===_0x45ad40(0x73a)&&_0x10e1d4(_0x510b55);});}}function _0x31a9af(_0x3789a6){const _0xf44fc=_0x26e745;if(_0x3789a6[_0xf44fc(0x2156)]&&_0x3789a6[_0xf44fc(0x73a)])return _0x159bf9['user'][_0xf44fc(0x21c7)+_0x28c606()[_0xf44fc(0x1766)](_0x3789a6[_0xf44fc(0x2156)])+_0xf44fc(0x23f9)]({'id':_0x3edd72[_0xf44fc(0x2e8)]['id'],'ids':[_0x3789a6[_0xf44fc(0x73a)]['id']]})[_0xf44fc(0x15e7)][_0xf44fc(0x20cd)](function(_0x51f1d8){const _0x329436=_0xf44fc;console[_0x329436(0x1bd0)](_0x51f1d8);});}function _0x10e1d4(_0x279aab){const _0x4c2124=_0x26e745;if(_0x3edd72[_0x4c2124(0x266f)][_0x279aab['id']]){_0x31a9af(_0x3edd72[_0x4c2124(0x266f)][_0x279aab['id']]),delete _0x3edd72['tabs'][_0x279aab['id']],_0x3edd72[_0x4c2124(0xc6b)]=0x0,_0x33a8cd(_0x279aab);if(_0x279aab[_0x4c2124(0x2185)]===_0x4c2124(0x73a))return _0x159bf9[_0x279aab[_0x4c2124(0x2156)]+_0x4c2124(0xb28)]['get']({'id':_0x279aab[_0x4c2124(0x73a)]['id']})[_0x4c2124(0x15e7)]['then'](function(_0x49b500){const _0x510b1c=_0x4c2124;return _0x159bf9[_0x510b1c(0x2e8)][_0x510b1c(0x21c7)+_0x28c606()[_0x510b1c(0x1766)](_0x279aab[_0x510b1c(0x2156)])+_0x510b1c(0x23f9)]({'id':_0x3edd72[_0x510b1c(0x2e8)]['id'],'ids':[_0x49b500['id']]})[_0x510b1c(0x15e7)];})[_0x4c2124(0x20cd)](function(_0x20e8a1){const _0x4f3dd0=_0x4c2124;console[_0x4f3dd0(0x1bd0)](_0x20e8a1);});}}function _0x25b7b2(_0x5c227b){const _0x118bbd=_0x26e745;_0x5c227b['id']=_0x28c606()['random'](0x2540be400),_0x5c227b[_0x118bbd(0x26bb)]=new Date(),_0x5c227b['saved']=![],_0x5c227b[_0x118bbd(0x298e)]=0x0,_0x3edd72['tabs'][_0x5c227b['id']]=_0x5c227b,_0x3edd72[_0x118bbd(0xc6b)]=_0x5c227b['id'],_0x33a8cd(_0x5c227b);}function _0x499d08(_0x3811b4){const _0x49b2ad=_0x26e745;return _0x3811b4===_0x3edd72[_0x49b2ad(0xc6b)];}function _0x668c7e(_0x11e586){const _0x1c13ca=_0x26e745;_0x3edd72[_0x1c13ca(0xc6b)]=_0x11e586,_0x33a8cd(_0x3edd72[_0x1c13ca(0x266f)][_0x11e586]);}function _0x57db0d(_0x36098e){const _0x36c172=_0x26e745;return _0x28c606()[_0x36c172(0x27bc)](_0x3edd72[_0x36c172(0x266f)],function(_0x11993d){const _0x3a93c2=_0x36c172;return _0x11993d[_0x3a93c2(0x2185)]===_0x3a93c2(0x73a)&&_0x11993d[_0x3a93c2(0x73a)]&&_0x11993d[_0x3a93c2(0x73a)]['id']==_0x36098e[_0x3a93c2(0x8fe)]&&_0x11993d[_0x3a93c2(0x2156)]==_0x36098e['channel'];});}function _0x1dcd45(_0x1f7131){const _0x268b3b=_0x26e745;let _0x3127e4='';if(_0x1f7131){if(_0x1f7131[_0x268b3b(0x2518)]||_0x1f7131[_0x268b3b(0x21c4)])_0x1f7131['firstName']&&(_0x3127e4+=_0x1f7131['firstName']+'\x20'),_0x1f7131[_0x268b3b(0x21c4)]&&(_0x3127e4+=_0x1f7131[_0x268b3b(0x21c4)]);else _0x1f7131[_0x268b3b(0x267a)]&&(_0x3127e4=_0x1f7131[_0x268b3b(0x267a)]);}return _0x3127e4;}function _0x3257cd(_0x3c0a1c){const _0xa3f5e=_0x26e745;switch(_0x3c0a1c){case _0xa3f5e(0xf52):return _0xa3f5e(0x704);case _0xa3f5e(0xc71):return _0xa3f5e(0x1829);case'sms':return _0xa3f5e(0x7e8);case _0xa3f5e(0x28ad):return'icon-google-earth';case _0xa3f5e(0x1d37):return _0xa3f5e(0x1357);case _0xa3f5e(0x1a29):return'icon-whatsapp';default:return _0xa3f5e(0x704);}}function _0xd3e914(_0x1bcb49){const _0x1e4ff1=_0x26e745;switch(_0x1bcb49){case'chat':return _0x1e4ff1(0x147d);case'mail':return _0x1e4ff1(0x1d78);case _0x1e4ff1(0x10aa):return'orange';case _0x1e4ff1(0x28ad):return'amber-A200';case _0x1e4ff1(0x1d37):return _0x1e4ff1(0x767);case _0x1e4ff1(0x1a29):return _0x1e4ff1(0xa75);default:return _0x1e4ff1(0xe6f);}}function _0x127bf6(_0x10969c,_0x3aaac2){const _0x708336=_0x26e745,_0x1bd3a0={'type':_0x708336(0x13f7),'title':_0x10969c?_0x1dcd45(_0x10969c):_0x1b0a32['instant']('APP.NEW_CONTACT'),'icon':'icon-account-circle','color':'red','contact':_0x10969c,'calls':_0x3aaac2?[_0x3aaac2]:[],'autoCreate':_0x3aaac2?_0x3aaac2[_0x708336(0x1153)]:0x0};_0x3aaac2&&(!_0x3aaac2[_0x708336(0xaf4)]&&(_0x3aaac2[_0x708336(0xaf4)]=_0x3aaac2['agentconnectAt']),(_0x3aaac2[_0x708336(0x1b16)]||_0x3aaac2[_0x708336(0x124c)])&&_0x8e01e9(_0x3aaac2));if(_0x10969c){const _0x4eac7a=_0x28c606()[_0x708336(0x27bc)](_0x3edd72[_0x708336(0x266f)],function(_0x3e577a){const _0x23d049=_0x708336;if(_0x3e577a[_0x23d049(0x13f7)]&&_0x3e577a[_0x23d049(0x13f7)]['id'])return _0x3e577a['type']==='contact'&&_0x3e577a[_0x23d049(0x13f7)]&&_0x3e577a[_0x23d049(0x13f7)]['id']==_0x10969c['id'];return _0x3e577a['type']==='contact'&&_0x3e577a[_0x23d049(0x13f7)]&&_0x3e577a[_0x23d049(0x13f7)][_0x23d049(0x267a)]==_0x10969c[_0x23d049(0x267a)];});if(_0x4eac7a){if(_0x3aaac2)return _0x159bf9[_0x708336(0x642)]['get']({'uniqueid':_0x3aaac2['uniqueid']})[_0x708336(0x15e7)][_0x708336(0x64a)](function(_0x5e9ec7){const _0x52ba8d=_0x708336;_0x5e9ec7&&_0x5e9ec7[_0x52ba8d(0x28b8)][_0x52ba8d(0x1b9e)]>0x0&&(_0x3aaac2[_0x52ba8d(0x15f2)]=_0x28c606()[_0x52ba8d(0x77b)](_0x5e9ec7[_0x52ba8d(0x28b8)])['endtime']);if(_0x4eac7a[_0x52ba8d(0x1a3a)]){const _0x226eee=_0x28c606()[_0x52ba8d(0x27bc)](_0x4eac7a[_0x52ba8d(0x1a3a)],function(_0xd07ffc){const _0x12f8bb=_0x52ba8d;return _0xd07ffc[_0x12f8bb(0x2947)]===_0x3aaac2[_0x12f8bb(0x2947)];});!_0x226eee&&_0x4eac7a[_0x52ba8d(0x1a3a)][_0x52ba8d(0x1954)](_0x3aaac2);}else _0x4eac7a['calls']=[_0x3aaac2];_0x3edd72[_0x52ba8d(0xc6b)]=_0x4eac7a['id'];});}else{if(_0x10969c['ListId'])return _0x159bf9[_0x708336(0x168b)][_0x708336(0x896)]({'ListId':_0x10969c[_0x708336(0x869)]})[_0x708336(0x15e7)][_0x708336(0x64a)](function(_0x3e34b5){const _0x25208a=_0x708336;return _0x1bd3a0[_0x25208a(0x16d7)]=_0x3e34b5,_0x159bf9[_0x25208a(0x19f8)]['getCustomFields']({'id':_0x10969c[_0x25208a(0x869)]})[_0x25208a(0x15e7)];})[_0x708336(0x64a)](function(_0x42422f){const _0x1e1fd8=_0x708336;_0x1bd3a0[_0x1e1fd8(0x1559)]=_0x42422f;})[_0x708336(0x20cd)](_0x503596())[_0x708336(0x988)](function(){_0x25b7b2(_0x1bd3a0);});else _0x25b7b2(_0x1bd3a0);}}else _0x25b7b2(_0x1bd3a0);}function _0x588aa1(_0x353f3f,_0x43bd8b){const _0x2d33c8=_0x26e745;let _0x430931=_0x28c606()['find'](_0x3edd72[_0x2d33c8(0x266f)],function(_0x296ea6){const _0x1352b5=_0x2d33c8;return _0x296ea6['type']===_0x1352b5(0x73a)&&_0x296ea6[_0x1352b5(0x73a)]&&_0x296ea6[_0x1352b5(0x73a)]['id']===_0x43bd8b['id']&&_0x296ea6[_0x1352b5(0x2156)]===_0x353f3f;});_0x430931?(_0x430931[_0x2d33c8(0x25c4)]=_0x43bd8b[_0x2d33c8(0x25c4)]||![],_0x3edd72[_0x2d33c8(0xc6b)]=_0x430931['id']):(_0x430931={'type':_0x2d33c8(0x73a),'title':_0x353f3f?_0x353f3f[_0x2d33c8(0xa3c)]():_0x2d33c8(0x28ad),'icon':_0x3257cd(_0x353f3f),'color':_0xd3e914(_0x353f3f),'channel':_0x353f3f,'interaction':_0x43bd8b,'isDraft':_0x43bd8b['isDraft']||![]},_0x25b7b2(_0x430931));}function _0x59dcff(_0x2ee5e1){const _0x46f391=_0x26e745,_0x4f9ed4={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x46f391(0x2070),'body':_0x2ee5e1[_0x46f391(0x1e4e)]?_0x46f391(0xfa2)+_0x2ee5e1[_0x46f391(0x1e4e)]:'','focusOnclick':!![],'closeOnClick':!![]};_0x8c510d[_0x46f391(0xa60)](_0x2ee5e1[_0x46f391(0x2021)],_0x4f9ed4);}function _0x52395a(_0x18415d){const _0x3ad8f4=_0x26e745;_0x8c510d[_0x3ad8f4(0x1985)]()?_0x8c510d[_0x3ad8f4(0x3ec)]()[_0x3ad8f4(0x64a)](function(){_0x59dcff(_0x18415d);},function(_0x33fdbd){const _0x56a2b4=_0x3ad8f4;console[_0x56a2b4(0x1bd0)]('Please\x20enable\x20browser\x20notifications!',_0x33fdbd);}):console[_0x3ad8f4(0x1bd0)](_0x3ad8f4(0x11f6));}function _0x7cb3e(_0x229047){const _0x5f5cce=_0x26e745;if(_0x229047&&_0x229047[_0x5f5cce(0x2947)]){_0x52395a(_0x229047);const _0x240b90=_0x57db0d(_0x229047);if(_0x240b90){if(_0x159bf9[_0x229047['channel']+_0x5f5cce(0x149d)])return _0x3edd72['currentTab']!==_0x240b90['id']&&(_0x240b90['badges']+=0x1),_0x159bf9[_0x229047['channel']+_0x5f5cce(0x149d)][_0x5f5cce(0x1964)]({'id':_0x229047['id'],'UserId':_0x3edd72[_0x5f5cce(0x2e8)]['id']})[_0x5f5cce(0x15e7)]['catch'](_0x503596());}else _0x38a9c7['wait']({'title':_0x229047['title'],'msg':_0x229047['msg']||'','showClose':![],'clickToClose':![],'timeout':![],'sound':_0x229047[_0x5f5cce(0x282b)],'html':!![],'shake':_0x229047[_0x5f5cce(0x2488)]||![],'onAdd':function(){const _0x462cfa=_0x5f5cce;_0x3edd72[_0x462cfa(0xb57)][_0x229047[_0x462cfa(0x2947)]]=this['id'];},'onAccept':function(){const _0x54d087=_0x5f5cce;_0x561b2c(_0x229047);if(_0x159bf9[_0x229047[_0x54d087(0x2156)]+_0x54d087(0x149d)])return _0x159bf9[_0x229047[_0x54d087(0x2156)]+'Message'][_0x54d087(0x1964)]({'id':_0x229047['id'],'UserId':_0x3edd72[_0x54d087(0x2e8)]['id'],'manual':!![]})[_0x54d087(0x15e7)][_0x54d087(0x64a)](function(_0x472e40){const _0x42c70c=_0x54d087;_0x588aa1(_0x472e40['channel'],_0x472e40[_0x42c70c(0x73a)]),_0x38a9c7[_0x42c70c(0x1339)]({'title':'Message\x20properly\x20accepted!','msg':_0x42c70c(0x133a)});})[_0x54d087(0x20cd)](_0x503596());},'onReject':function(){const _0x41eaaa=_0x5f5cce;_0x561b2c(_0x229047);if(_0x159bf9[_0x229047[_0x41eaaa(0x2156)]+'Message'])return _0x159bf9[_0x229047[_0x41eaaa(0x2156)]+'Message'][_0x41eaaa(0x19d2)]({'id':_0x229047['id'],'UserId':_0x3edd72[_0x41eaaa(0x2e8)]['id']})[_0x41eaaa(0x15e7)][_0x41eaaa(0x64a)](function(){const _0xdcba0e=_0x41eaaa;_0x38a9c7[_0xdcba0e(0x1339)]({'title':'Message\x20properly\x20rejected!','msg':_0xdcba0e(0x1af3)});})[_0x41eaaa(0x20cd)](_0x503596());}});}}function _0x561b2c(_0x440ce0){const _0x222640=_0x26e745;_0x440ce0&&_0x440ce0[_0x222640(0x2947)]&&(_0x3edd72['notifications'][_0x440ce0[_0x222640(0x2947)]]&&(_0x38a9c7['clear'](_0x3edd72['notifications'][_0x440ce0[_0x222640(0x2947)]]),delete _0x3edd72['notifications'][_0x440ce0[_0x222640(0x2947)]]));}function _0x442bd9(_0x1b1313){const _0x46cfa6=_0x26e745;if(!_0x1b1313['contacts']){_0x127bf6(_0x1b1313[_0x46cfa6(0x13f7)],_0x1b1313[_0x46cfa6(0xb67)]);return;}_0x441fcf[_0x46cfa6(0xa60)]({'controller':_0x46cfa6(0xac7),'controllerAs':'vm','templateUrl':_0x2608df,'parent':angular[_0x46cfa6(0x1f81)](_0x3e6664[_0x46cfa6(0xb49)]),'locals':{'contacts':_0x1b1313[_0x46cfa6(0x197e)],'callNumber':_0x1b1313['evt'][_0x46cfa6(0xbf7)]?_0x1b1313['evt'][_0x46cfa6(0x15bc)]:_0x1b1313[_0x46cfa6(0xb67)][_0x46cfa6(0x225d)]}})['then'](function(_0x4f0736){const _0x38ed5e=_0x46cfa6;_0x127bf6(_0x4f0736,_0x1b1313[_0x38ed5e(0xb67)]);});}function _0x549d0d(_0x361de6){const _0x5bccc2=_0x26e745;return _0x159bf9['jscriptyProject']['get']({'id':_0x361de6[_0x5bccc2(0x1008)]})['$promise'][_0x5bccc2(0x64a)](function(_0x16b78d){const _0x18c72a=_0x5bccc2;if(_0x16b78d){if(_0x28c606()['isUndefined'](_0x361de6['xmd-contactid'])){try{_0x16b78d[_0x18c72a(0x6b9)]=_0x47f9c8()['render'](_0x16b78d[_0x18c72a(0x6b9)],_0x28c606()[_0x18c72a(0x14fe)](_0x361de6,{'user':_0x3edd72['user']}));}catch(_0x217137){console[_0x18c72a(0x1bd0)](_0x217137);}_0x25b7b2({'type':_0x18c72a(0xd1c),'title':_0x16b78d[_0x18c72a(0x2494)],'icon':_0x18c72a(0x1e8d),'color':_0x18c72a(0xe6f),'project':_0x16b78d,'call':_0x361de6});}else return _0x159bf9[_0x18c72a(0xdf5)][_0x18c72a(0x896)]({'id':_0x361de6[_0x18c72a(0x1f22)]})[_0x18c72a(0x15e7)]['then'](function(_0x4d1701){const _0xb08fe4=_0x18c72a;try{_0x16b78d[_0xb08fe4(0x6b9)]=_0x47f9c8()[_0xb08fe4(0x226c)](_0x16b78d[_0xb08fe4(0x6b9)],_0x28c606()[_0xb08fe4(0x14fe)](_0x361de6,{'user':_0x3edd72[_0xb08fe4(0x2e8)],'contact':_0x4d1701}));}catch(_0x1cb4ab){console[_0xb08fe4(0x1bd0)](_0x1cb4ab);}_0x25b7b2({'type':_0xb08fe4(0xd1c),'title':_0x16b78d['name'],'icon':_0xb08fe4(0x1e8d),'color':_0xb08fe4(0xe6f),'project':_0x16b78d,'call':_0x361de6,'contact':_0x4d1701});})[_0x18c72a(0x20cd)](_0x503596());}})[_0x5bccc2(0x20cd)](_0x503596());}function _0x4bd9b7(_0x29efe8){const _0x990935=_0x26e745;if(_0x29efe8&&_0x29efe8['uri']){_0x29efe8[_0x990935(0x2492)]=_0x28c606()['replace'](_0x29efe8['uri'],_0x990935(0x18ce),''),_0x29efe8['uri']=_0x28c606()[_0x990935(0x1353)](_0x29efe8[_0x990935(0x2492)],'=>%3B=','');if(_0x29efe8[_0x990935(0x219e)])switch(_0x29efe8[_0x990935(0x219e)]){case'0':_0xa26a91[_0x990935(0x1463)](_0x29efe8[_0x990935(0x2492)]);break;case'1':_0xa26a91[_0x990935(0x1463)](_0x29efe8['uri'],_0x990935(0x235e),'width='+(_0x29efe8[_0x990935(0x1fdd)]||_0x990935(0x208e))+_0x990935(0x1d06)+_0x29efe8[_0x990935(0x1614)]||0x0);break;case'2':{const _0x41fc2e={'type':_0x990935(0x2633),'title':_0x29efe8[_0x990935(0x2492)],'icon':'icon-google-earth','color':_0x990935(0x1983),'src':_0x29efe8[_0x990935(0x2492)]};_0x25b7b2(_0x41fc2e);}break;default:_0xa26a91[_0x990935(0x1463)](_0x29efe8[_0x990935(0x2492)]);}else _0xa26a91[_0x990935(0x1463)](_0x29efe8[_0x990935(0x2492)]);}}function _0x4e6c4f(_0x45d330){const _0x48ec9f=_0x26e745;_0x45d330&&_0x45d330['html']&&_0x25b7b2({'type':_0x48ec9f(0x1c83),'title':_0x45d330['calleridnum']||'popup','icon':_0x48ec9f(0x17fc),'color':_0x48ec9f(0xe6f),'html':_0x45d330['html']});}function _0x273faa(_0x2de4d6){const _0x17bdf1=_0x26e745,_0x8fd36d=_0x2de4d6[_0x17bdf1(0x58f)]&&_0x2de4d6[_0x17bdf1(0x58f)]!==_0x17bdf1(0x1da0)?_0x2de4d6[_0x17bdf1(0x58f)]:_0x2de4d6[_0x17bdf1(0x225d)],_0x2dbe14=_0x2de4d6[_0x17bdf1(0x225d)];return _0x159bf9[_0x17bdf1(0x279a)]['get']({'fields':'id','limit':0x1,'offset':0x0,'uniqueid':_0x2de4d6[_0x17bdf1(0x2947)]})[_0x17bdf1(0x15e7)][_0x17bdf1(0x64a)](function(_0x5c5d1d){const _0x586082=_0x17bdf1;_0x5c5d1d[_0x586082(0xb90)]&&_0x25b7b2({'type':_0x586082(0x422),'title':_0x8fd36d+'\x20<'+_0x2dbe14+'>','icon':_0x586082(0x21c6),'color':_0x586082(0x87c),'data':{'uniqueid':_0x2de4d6[_0x586082(0x2947)]}});});}function _0x1be309(_0x4bdefa){const _0x252ef6=_0x26e745;console[_0x252ef6(0x196e)](_0x252ef6(0x22c5),_0x4bdefa);for(const _0x3b6cef in _0x3edd72[_0x252ef6(0x266f)]){if(typeof _0x3edd72[_0x252ef6(0x266f)][_0x3b6cef]!==_0x252ef6(0x19a1)){const _0x271423=_0x3edd72[_0x252ef6(0x266f)][_0x3b6cef];if(_0x271423[_0x252ef6(0x1a3a)]){console['debug']('onVoiceChannelRemove\x20->\x20\x20key,\x20tab,\x20tab.calls',_0x3b6cef,_0x271423,_0x271423[_0x252ef6(0x1a3a)]);const _0x62c6a4=_0x28c606()[_0x252ef6(0xb10)](_0x271423['calls'],function(_0x43062c){const _0x945260=_0x252ef6;return _0x43062c[_0x945260(0x2947)]===_0x4bdefa[_0x945260(0x2947)];});_0x62c6a4>=0x0&&!_0x271423[_0x252ef6(0x1a3a)][_0x62c6a4][_0x252ef6(0x15f2)]?(console[_0x252ef6(0x196e)](_0x252ef6(0x1c0a),_0x4bdefa[_0x252ef6(0x2947)]),_0x8e01e9(_0x271423[_0x252ef6(0x1a3a)][_0x62c6a4])):console[_0x252ef6(0x196e)](_0x252ef6(0x2900),_0x4bdefa[_0x252ef6(0x2947)]),_0x3edd72[_0x252ef6(0x13f7)]&&_0x3edd72[_0x252ef6(0x13f7)]['id']&&_0x19e57b(_0x26fc7c(_0x4bdefa[_0x252ef6(0x2947)],_0x3edd72[_0x252ef6(0x13f7)]['id'],_0x271423),0x3e8);}}}_0x33a8cd();}function _0x26fc7c(_0x54776f,_0x2b8654,_0x559ddc){return function(){const _0x37f019=a0_0x4127,_0x260aff=_0x28c606()['find'](_0x559ddc[_0x37f019(0x1a3a)],function(_0x284180){const _0x8269b6=_0x37f019;return _0x284180[_0x8269b6(0x2947)]===_0x54776f;});if(_0x260aff)return _0x159bf9['voiceCallReport'][_0x37f019(0x2603)]({'id':_0x54776f,'ContactId':_0x2b8654})[_0x37f019(0x15e7)]['catch'](function(_0x332762){const _0xc9d36a=_0x37f019;console[_0xc9d36a(0x1bd0)](_0x332762);});};}function _0x8e01e9(_0x428fec){const _0x42b9b6=_0x26e745;_0x428fec[_0x42b9b6(0x15f2)]=new Date();}function _0x503596(){return function(_0x41bb3a){const _0x56911a=a0_0x4127;if(_0x41bb3a[_0x56911a(0x10b3)]===0x194)_0x38a9c7[_0x56911a(0x51b)]({'title':_0x1b0a32[_0x56911a(0x2292)]('DASHBOARDS.ATTENTION'),'msg':_0x1b0a32['instant'](_0x56911a(0x28ed))});else{if(_0x41bb3a[_0x56911a(0x1c52)]&&_0x41bb3a['data'][_0x56911a(0xbae)]&&_0x41bb3a[_0x56911a(0x1c52)][_0x56911a(0xbae)][_0x56911a(0x1b9e)]){_0x3edd72[_0x56911a(0xbae)]=_0x41bb3a[_0x56911a(0x1c52)][_0x56911a(0xbae)]||[{'message':_0x41bb3a[_0x56911a(0x2915)](),'type':'api.openchannelMessage.accept'}];for(let _0x544b65=0x0;_0x544b65<_0x41bb3a['data'][_0x56911a(0xbae)][_0x56911a(0x1b9e)];_0x544b65+=0x1){_0x38a9c7[_0x56911a(0x1bd0)]({'title':_0x41bb3a[_0x56911a(0x1c52)][_0x56911a(0xbae)][_0x544b65][_0x56911a(0x2185)],'msg':_0x41bb3a[_0x56911a(0x1c52)]['errors'][_0x544b65][_0x56911a(0x18ca)]});}}else _0x38a9c7[_0x56911a(0x1bd0)]({'title':_0x41bb3a[_0x56911a(0x10b3)]?_0x56911a(0x575)+_0x41bb3a[_0x56911a(0x10b3)]+'\x20-\x20'+_0x41bb3a['statusText']:_0x56911a(0x1ebc),'msg':_0x41bb3a[_0x56911a(0x1c52)]?JSON[_0x56911a(0x2317)](_0x41bb3a['data']['message']):_0x41bb3a[_0x56911a(0x2915)]()});}};}_0x3140c8[_0x26e745(0x8c7)](_0x26e745(0xf28),function(){const _0x5f1215=_0x26e745;for(const _0x847b43 in _0x3edd72[_0x5f1215(0xb57)]){typeof _0x3edd72[_0x5f1215(0xb57)][_0x847b43]!==_0x5f1215(0x19a1)&&_0x561b2c({'uniqueid':_0x847b43});}_0x242766[_0x5f1215(0x1951)](_0x5f1215(0x1316)),_0x242766['removeAllListeners'](_0x5f1215(0x999)),_0x242766['removeAllListeners'](_0x5f1215(0x2908)),_0x242766['removeAllListeners'](_0x5f1215(0x2339)),_0x242766[_0x5f1215(0x1951)]('notification:save'),_0x242766[_0x5f1215(0x1951)](_0x5f1215(0x1085)),_0x242766[_0x5f1215(0x1951)](_0x5f1215(0x6d9)),_0x242766[_0x5f1215(0x1951)](_0x5f1215(0x1e10));});}function _0x525137(_0x44bb6e,_0x40189d,_0x4abe5c,_0x234fc){const _0x3a06f7=_0x49a1e3,_0x50252f={};let _0xc7487c={},_0x41f588={},_0x1d6d3f={};_0x50252f[_0x3a06f7(0x2354)]=function(){_0x50252f['drafts']=_0x16b6b8();},_0x50252f[_0x3a06f7(0x16fb)]=function(_0x20e800){const _0xd29110=_0x3a06f7;return _0x50252f[_0xd29110(0xaed)]=_0x16b6b8(),_0x28c606()[_0xd29110(0x27bc)](_0x28c606()['values'](_0x50252f[_0xd29110(0xaed)]),function(_0x1b32e9){const _0x141357=_0xd29110;return _0x1b32e9['interaction']&&_0x1b32e9[_0x141357(0x73a)]['id']===_0x20e800;});},_0x50252f['removeByInteraction']=function(_0xdd76a3){const _0x3ec597=_0x3a06f7;_0x50252f[_0x3ec597(0xaed)]=_0x16b6b8();const _0xa07fe8=_0x28c606()[_0x3ec597(0x27bc)](_0x28c606()['values'](_0x50252f[_0x3ec597(0xaed)]),function(_0x1ff916){const _0x512091=_0x3ec597;return _0x1ff916[_0x512091(0x73a)]&&_0x1ff916[_0x512091(0x73a)]['id']===_0xdd76a3;});_0xa07fe8&&(delete _0x50252f['drafts'][_0xa07fe8['id']],_0x5e3955());},_0x50252f[_0x3a06f7(0x25df)]=function(_0xc69736){const _0x1c5ea0=_0x3a06f7;_0x50252f[_0x1c5ea0(0xaed)]=_0x16b6b8();let _0x325410=_0x40189d[_0x1c5ea0(0x2292)](_0x1c5ea0(0x22d4));if(_0xc69736[_0x1c5ea0(0x13f7)])_0x325410=_0xc69736[_0x1c5ea0(0x13f7)]['firstName']||_0xc69736[_0x1c5ea0(0x13f7)][_0x1c5ea0(0xd47)];else!_0x28c606()[_0x1c5ea0(0x940)](_0xc69736[_0x1c5ea0(0x18ca)][_0x1c5ea0(0x25bc)])&&(_0x325410=_0xc69736[_0x1c5ea0(0x18ca)][_0x1c5ea0(0x25bc)]);const _0x2ea71a={'type':_0x1c5ea0(0x2581),'title':_0xc69736[_0x1c5ea0(0x3e3)][_0x1c5ea0(0x2125)]+_0x1c5ea0(0x21db)+_0x325410,'channel':_0xc69736['channel'],'content':_0xc69736[_0x1c5ea0(0x18ca)],'account':_0xc69736[_0x1c5ea0(0x3e3)],'interaction':_0xc69736[_0x1c5ea0(0x73a)],'id':_0x28c606()[_0x1c5ea0(0x849)](0x2540be400),'openedAt':new Date(),'saved':![]};_0x50252f[_0x1c5ea0(0xaed)][_0x2ea71a['id']]=_0x2ea71a,_0x5e3955();},_0x50252f['update']=function(_0x5e6134){const _0x56062a=_0x3a06f7;_0x50252f[_0x56062a(0xaed)]=_0x16b6b8();const _0x57a72b=_0x50252f['drafts'][_0x5e6134['id']];_0x57a72b&&(_0x57a72b[_0x56062a(0x12b8)]=_0x5e6134[_0x56062a(0x18ca)],_0x50252f[_0x56062a(0xaed)][_0x5e6134['id']]=_0x57a72b,_0x5e3955());},_0x50252f['open']=function(_0x5c30bb){const _0x31d81e=_0x3a06f7;_0x50252f[_0x31d81e(0xaed)]=_0x16b6b8();const _0x7f1448=_0x50252f[_0x31d81e(0xaed)][_0x5c30bb];_0x7f1448&&_0x44bb6e[_0x31d81e(0x1a2e)](_0x31d81e(0x1463)+_0x28c606()[_0x31d81e(0xc01)](_0x41f588)+_0x31d81e(0x1624),_0x7f1448);},_0x50252f[_0x3a06f7(0x21c7)]=function(_0x22f466){const _0x3520f2=_0x3a06f7;_0x50252f[_0x3520f2(0xaed)]=_0x16b6b8(),_0x50252f[_0x3520f2(0xaed)][_0x22f466]&&(delete _0x50252f['drafts'][_0x22f466],_0x5e3955());};function _0x16b6b8(){const _0x5933a1=_0x3a06f7;_0xc7487c=_0x234fc[_0x5933a1(0x808)]();const _0x21464a=_0x4abe5c[_0x5933a1(0x294)]['getItem']('motion2.home:'+_0xc7487c['id']);_0x21464a?_0x41f588=JSON[_0x5933a1(0x27f1)](_0x21464a)[_0x5933a1(0x1f86)]:_0x41f588=_0x5933a1(0x26df);_0x1d6d3f=_0x4abe5c[_0x5933a1(0x294)][_0x5933a1(0x1ed0)](_0x5933a1(0x26e4)+_0x41f588+':'+_0xc7487c['id']);if(_0x1d6d3f){const _0x12fb67=JSON['parse'](_0x1d6d3f);!_0x12fb67[_0x5933a1(0xaed)]&&(_0x12fb67[_0x5933a1(0xaed)]={}),_0x1d6d3f=_0x12fb67;}else _0x1d6d3f={'drafts':{}};return _0x1d6d3f[_0x5933a1(0xaed)];}function _0x5e3955(){const _0x33b5be=_0x3a06f7;_0x28c606()['isEmpty'](_0x50252f[_0x33b5be(0xaed)])?delete _0x1d6d3f[_0x33b5be(0xaed)]:_0x1d6d3f[_0x33b5be(0xaed)]=_0x50252f['drafts'],_0x4abe5c[_0x33b5be(0x294)][_0x33b5be(0x15da)](_0x33b5be(0x26e4)+_0x41f588+':'+_0xc7487c['id'],JSON['stringify'](_0x1d6d3f));}return _0x50252f;};function _0x189468(){const _0x3c2980=_0x49a1e3,_0x5cbbf3={'autoClose':!![],'duration':0x5,'showOnPageHidden':![]};return{'config':_0x3ef821,'$get':['$q',_0x3c2980(0x20d4),'$window',_0x3c2980(0x928),_0x5c275a]};function _0x3ef821(_0x26655b){const _0x2c0006=_0x3c2980;for(const _0x13ae3f in _0x26655b){typeof _0x5cbbf3[_0x13ae3f]!=='undefined'&&typeof _0x26655b[_0x13ae3f]!==_0x2c0006(0x19a1)&&(_0x5cbbf3[_0x13ae3f]=_0x26655b[_0x13ae3f]);}}function _0x5c275a(_0x268118,_0x5d7bc5,_0x2db796,_0x27f002){const _0x2d1bf2=_0x3c2980,_0x489c35=_0x2db796[_0x2d1bf2(0x23b7)]||_0x2db796[_0x2d1bf2(0x22d5)]||_0x2db796[_0x2d1bf2(0x20ab)],_0x5d6fce={'isSupported':_0x5c8670,'currentPermission':_0x5acd69,'requestPermission':_0x3c1040,'show':_0x266a8c,'permissions':{'default':_0x27f002[_0x2d1bf2(0x6d3)],'granted':_0x27f002[_0x2d1bf2(0x464)],'denied':_0x27f002['DENIED']}};return _0x5d6fce;function _0x5c8670(){const _0x2ae1d0=_0x2d1bf2;return!(typeof _0x489c35===_0x2ae1d0(0x19a1));}function _0x5acd69(){const _0x6f88e0=_0x2d1bf2;return(_0x489c35||{})[_0x6f88e0(0x144d)];}function _0x3c1040(){const _0x1e8ade=_0x2d1bf2;if(!_0x5c8670())return _0x268118[_0x1e8ade(0x19d2)]('Notification\x20API\x20not\x20supported');const _0x4dc7f1=_0x268118[_0x1e8ade(0x122)]();return Promise[_0x1e8ade(0x1268)](_0x489c35[_0x1e8ade(0x3ec)])==_0x489c35['requestPermission']?_0x489c35[_0x1e8ade(0x3ec)]()[_0x1e8ade(0x64a)](function(_0x4aa9d7){const _0x1b009e=_0x1e8ade;_0x27f002[_0x1b009e(0x464)]===_0x4aa9d7?_0x4dc7f1['resolve'](_0x4aa9d7):_0x4dc7f1[_0x1b009e(0x19d2)](_0x4aa9d7);}):_0x489c35[_0x1e8ade(0x3ec)](function(_0x8e1415){const _0x5f5847=_0x1e8ade;_0x27f002[_0x5f5847(0x464)]===_0x8e1415?_0x4dc7f1['resolve'](_0x8e1415):_0x4dc7f1['reject'](_0x8e1415);}),_0x4dc7f1[_0x1e8ade(0x1713)];}function _0x266a8c(_0x34d29d,_0x30c652){const _0x34d5d3=_0x2d1bf2;_0x30c652=_0x30c652||{};if(!_0x5c8670()||!_0x9d8472(_0x34d29d,_0x30c652)||_0x4c9b7d(_0x30c652[_0x34d5d3(0x1249)])||_0x5acd69()!==_0x27f002[_0x34d5d3(0x464)])return;const _0x4b69d3=new _0x489c35(_0x34d29d,_0x30c652),_0x3aa48d=_0x30c652[_0x34d5d3(0xb77)]||_0x5cbbf3[_0x34d5d3(0xb77)],_0xc5c030=_0x30c652['autoClose']===undefined?_0x5cbbf3[_0x34d5d3(0x1fd0)]:_0x30c652['autoClose'];_0x4b69d3[_0x34d5d3(0x18a4)]=function(){const _0x3362f5=_0x34d5d3;_0x30c652[_0x3362f5(0x2313)]&&_0x30c652[_0x3362f5(0x2313)](),_0x30c652[_0x3362f5(0x225f)]&&window['focus'](),_0x30c652['closeOnClick']&&_0x4b69d3['close']();};if(_0xc5c030)_0x78eafb(_0x4b69d3,_0x3aa48d);return _0x4b69d3;}function _0x9d8472(_0x1f7cb3,_0x496a4c){const _0xd866e1=_0x2d1bf2,_0x5e970a=angular[_0xd866e1(0x2909)](_0x1f7cb3),_0xaf0c92=!_0x496a4c['onClick']||angular[_0xd866e1(0x130e)](_0x496a4c['onClick']);return _0x5e970a&&_0xaf0c92;}function _0x4c9b7d(_0x4e101c){const _0xb6346c=_0x2d1bf2;if(!_0x4e101c&&!_0x5cbbf3[_0xb6346c(0x1249)])return;return!(window[_0xb6346c(0x123f)][_0xb6346c(0x2d5)]||window[_0xb6346c(0x123f)][_0xb6346c(0x290a)]||window['document'][_0xb6346c(0x1377)]);}function _0x78eafb(_0x281e0d,_0xf665ca){const _0x47e65c=_0x2d1bf2,_0x40ac7a=_0xf665ca*0x3e8;_0x5d7bc5(_0x281e0d[_0x47e65c(0x67b)][_0x47e65c(0xd7b)](_0x281e0d),_0x40ac7a,![]);}}}function _0x40a3f6(){const _0x3426d9=_0x49a1e3,_0x1b4f4b=angular[_0x3426d9(0xd16)](['ng'])[_0x3426d9(0x896)](_0x3426d9(0xb5c)),_0x3fc136=[],_0x3f4a74=this;_0x3f4a74['saveItem']=_0x310352,_0x3f4a74['deleteItem']=_0x1a4543;function _0x310352(_0x40a6fc,_0x4c3384){const _0x1a7d59=_0x3426d9;if(!angular[_0x1a7d59(0x2909)](_0x40a6fc)){_0x1b4f4b['error'](_0x1a7d59(0x1966));return;}const _0x3fd7be=_0x40a6fc['split']('.'),_0x4c58d5=_0x3fd7be[_0x3fd7be['length']-0x1],_0x188c75=_0x3f3414(_0x3fd7be);let _0x4f1f88=![];for(let _0x13f518=0x0;_0x13f518<_0x188c75[_0x1a7d59(0x1b9e)];_0x13f518++){if(_0x188c75[_0x13f518]['_id']===_0x4c58d5){_0x4f1f88=_0x188c75[_0x13f518];break;}}_0x4f1f88?(angular[_0x1a7d59(0x1c69)](_0x4f1f88,_0x4c3384),_0x4f1f88['uisref']=_0x2f9b0a(_0x4f1f88)):(_0x4c3384[_0x1a7d59(0x1730)]=[],(angular[_0x1a7d59(0x1a01)](_0x4c3384['weight'])||!angular[_0x1a7d59(0x1f9a)](_0x4c3384[_0x1a7d59(0x22a3)]))&&(_0x4c3384[_0x1a7d59(0x22a3)]=0x1),_0x4c3384[_0x1a7d59(0x1b78)]=_0x4c58d5,_0x4c3384[_0x1a7d59(0x871)]=_0x40a6fc,_0x4c3384[_0x1a7d59(0x1181)]=_0x2f9b0a(_0x4c3384),_0x188c75[_0x1a7d59(0x1954)](_0x4c3384));}function _0x1a4543(_0x2287f0){const _0x18488c=_0x3426d9;if(!angular['isString'](_0x2287f0)){_0x1b4f4b[_0x18488c(0x1bd0)]('path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)');return;}let _0x60a6db=_0x3fc136;const _0x19aba4=_0x2287f0['split']('.');for(let _0x37be00=0x0;_0x37be00<_0x19aba4[_0x18488c(0x1b9e)];_0x37be00++){const _0x293617=_0x19aba4[_0x37be00];for(let _0x2376c0=0x0;_0x2376c0<_0x60a6db['length'];_0x2376c0++){if(_0x60a6db[_0x2376c0][_0x18488c(0x1b78)]===_0x293617){if(_0x60a6db[_0x2376c0]['_path']===_0x2287f0)return _0x60a6db[_0x18488c(0x18f0)](_0x2376c0,0x1),!![];_0x60a6db=_0x60a6db[_0x2376c0]['children'];break;}}}return![];}function _0x3f3414(_0x54f5fd){const _0x23eb6d=_0x3426d9;let _0xfb8eb3=_0x3fc136;if(_0x54f5fd[_0x23eb6d(0x1b9e)]===0x1)return _0xfb8eb3;_0x54f5fd[_0x23eb6d(0x639)]();for(let _0x1b2d22=0x0;_0x1b2d22<_0x54f5fd['length'];_0x1b2d22++){const _0x4ce053=_0x54f5fd[_0x1b2d22];let _0xcd3d32=!![];for(let _0x3b5fa9=0x0;_0x3b5fa9<_0xfb8eb3[_0x23eb6d(0x1b9e)];_0x3b5fa9++){if(_0xfb8eb3[_0x3b5fa9][_0x23eb6d(0x1b78)]===_0x4ce053){_0xfb8eb3=_0xfb8eb3[_0x3b5fa9][_0x23eb6d(0x1730)],_0xcd3d32=![];break;}}if(_0xcd3d32){const _0x30bb76={'_id':_0x4ce053,'_path':_0x54f5fd[_0x23eb6d(0x9a6)]('.'),'title':_0x4ce053,'weight':0x1,'children':[]};_0xfb8eb3[_0x23eb6d(0x1954)](_0x30bb76),_0xfb8eb3=_0x30bb76[_0x23eb6d(0x1730)];}}return _0xfb8eb3;}function _0x2f9b0a(_0x1e361a){const _0x19762a=_0x3426d9;let _0x4d4e65='';return angular[_0x19762a(0x16ab)](_0x1e361a[_0x19762a(0x14f2)])&&(_0x4d4e65=_0x1e361a['state'],angular['isDefined'](_0x1e361a[_0x19762a(0x1f21)])&&angular[_0x19762a(0x2052)](_0x1e361a[_0x19762a(0x1f21)])&&(_0x4d4e65=_0x4d4e65+'('+angular['toJson'](_0x1e361a[_0x19762a(0x1f21)])+')')),_0x4d4e65;}this['$get']=function(){const _0x2cf3af={'saveItem':_0x310352,'getNavigation':_0x3ded19};return _0x2cf3af;function _0x3ded19(_0x3f4c99){const _0x4d095f=a0_0x4127;if(_0x3f4c99){for(let _0x2b9df1=0x0;_0x2b9df1<_0x3fc136['length'];_0x2b9df1++){if(_0x3fc136[_0x2b9df1][_0x4d095f(0x1b78)]===_0x3f4c99)return[_0x3fc136[_0x2b9df1]];}return null;}return _0x3fc136;}};}const _0x221f43={'DEFAULT':_0x49a1e3(0x416),'GRANTED':'granted','DENIED':_0x49a1e3(0x1355)};;_0x538574['$inject']=['api'];function _0x538574(_0x4e90bc){const _0x5c216b=_0x49a1e3,_0x4140cc=this;_0x4140cc[_0x5c216b(0x28d6)]={},_0x4140cc[_0x5c216b(0x14c1)]={'count':0x0,'rows':[]},_0x4140cc[_0x5c216b(0x2821)]=![];function _0x1bd16f(_0x4ae295,_0x49dc36){const _0xb23f1e=_0x5c216b;_0x4140cc[_0xb23f1e(0x28d6)]=_0x49dc36,_0x4140cc['tab']=_0x4ae295,_0x4140cc[_0xb23f1e(0x1222)][_0xb23f1e(0x282a)]=!![];if(_0x4140cc[_0xb23f1e(0x1222)]&&_0x4140cc[_0xb23f1e(0x1222)][_0xb23f1e(0x1c52)]&&_0x4140cc['tab'][_0xb23f1e(0x1c52)][_0xb23f1e(0x2947)])return _0x4e90bc[_0xb23f1e(0x279a)]['get']({'uniqueid':_0x4140cc[_0xb23f1e(0x1222)][_0xb23f1e(0x1c52)][_0xb23f1e(0x2947)]})[_0xb23f1e(0x15e7)][_0xb23f1e(0x64a)](function(_0x5337cf){const _0x3b6c0e=_0xb23f1e;_0x4140cc[_0x3b6c0e(0x14c1)]=_0x5337cf;})[_0xb23f1e(0x988)](function(){const _0x7bb896=_0xb23f1e;_0x4140cc[_0x7bb896(0x2821)]=!![];});else _0x4140cc[_0xb23f1e(0x2821)]=!![];}function _0x1005e2(_0x26ab87){const _0x2e94d5=_0x5c216b;switch(_0x4140cc[_0x2e94d5(0x28d6)][_0x2e94d5(0x1edb)]){case'left':if(_0x26ab87['direction']=='in')return _0x26ab87[_0x2e94d5(0x484)];return _0x2e94d5(0x84e);case _0x2e94d5(0x15d7):if(_0x26ab87[_0x2e94d5(0x484)]=='in')return _0x2e94d5(0x2183);return _0x26ab87['direction'];default:return _0x26ab87['direction'];}}_0x4140cc[_0x5c216b(0x2354)]=_0x1bd16f,_0x4140cc[_0x5c216b(0x2937)]=_0x1005e2;}const _0x5340ce=_0x538574;;const _0x4d4648=_0x2e4a48['p']+'src/js/modules/main/apps/contactmanager/views/contacts/duplicate/dialog.html/dialog.html';;const _0x32a305=_0x2e4a48['p']+_0x49a1e3(0xcb7);;const _0x5b70ce=_0x2e4a48['p']+_0x49a1e3(0x2898);;const _0x8cef6b=_0x2e4a48['p']+_0x49a1e3(0x1c3d);;const _0x11c654=_0x2e4a48['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeMail/dialog.html/dialog.html';;const _0x5089f3=_0x2e4a48['p']+_0x49a1e3(0xdd8);;const _0x8f2b61=_0x2e4a48['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeSms/dialog.html/dialog.html';;const _0x104fe3=_0x2e4a48['p']+_0x49a1e3(0x84d);;_0xbfb1ef[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x1674),'$q',_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x298c),'msUtils'];const _0x4b3a24={'fax':_0x8cef6b,'mail':_0x11c654,'openchannel':_0x5089f3,'sms':_0x8f2b61,'whatsapp':_0x104fe3};function _0xbfb1ef(_0x209e69,_0x2a8e45,_0x4dcd42,_0x472318,_0x28a2b8,_0x3f3df6,_0x15c383,_0xc22b6f,_0x1ac2b7,_0x3f5732){const _0x1e936a=_0x49a1e3,_0x586c87=this;_0x586c87[_0x1e936a(0x2e8)]=_0xc22b6f[_0x1e936a(0x808)](),_0x586c87[_0x1e936a(0x8bf)]=_0x3f5732[_0x1e936a(0x8bf)](),_0x586c87[_0x1e936a(0x738)]=[],_0x586c87[_0x1e936a(0x12ee)]={'fields':_0x1e936a(0x2995),'sort':_0x1e936a(0x260c),'limit':0xa,'page':0x1},_0x586c87[_0x1e936a(0xf44)]={'fields':_0x1e936a(0x8e8),'sort':_0x1e936a(0x260c),'limit':0xa,'page':0x1},_0x586c87[_0x1e936a(0xe1e)]={'fields':_0x1e936a(0x15a4),'sort':_0x1e936a(0x260c),'limit':0xa,'page':0x1},_0x586c87[_0x1e936a(0xd52)]={'rows':[],'count':0x0},_0x586c87[_0x1e936a(0x3da)]={'rows':[],'count':0x0},_0x586c87['histories']={'rows':[],'count':0x0},_0x586c87['firstDayMonth']=new Date(_0x2ac33a()()[_0x1e936a(0x246e)](_0x1e936a(0x5f5))[_0x1e936a(0x1219)](0x1,'seconds')[_0x1e936a(0xebc)](0x0,!![])['format']()),_0x586c87[_0x1e936a(0x20c3)]=new Date(_0x2ac33a()()[_0x1e936a(0x13af)](_0x1e936a(0x5f5))[_0x1e936a(0x1219)](0x1,_0x1e936a(0x2784))[_0x1e936a(0xebc)](0x0,!![])['format']()),_0x586c87[_0x1e936a(0x1da5)]=_0x5ca8ed,_0x586c87['saveContact']=_0x48afc5,_0x586c87[_0x1e936a(0x231f)]=_0x156bd7,_0x586c87[_0x1e936a(0x17f0)]=_0x472318[_0x1e936a(0x4e3)]['vm'][_0x1e936a(0x17f0)],_0x586c87['disposeCall']=_0x29e042,_0x586c87[_0x1e936a(0x17df)]=_0x49d65f,_0x586c87[_0x1e936a(0x2866)]=_0x59002d,_0x586c87[_0x1e936a(0x1605)]=_0x2b6d7b,_0x586c87[_0x1e936a(0x2b8)]=_0x502aa,_0x586c87[_0x1e936a(0x24d2)]=_0x4f1253,_0x586c87['getFinals']=_0x4d7c90,_0x586c87[_0x1e936a(0x16c2)]=_0x224c9e,_0x586c87[_0x1e936a(0x360)]=_0x1512d7,_0x586c87['getMailAccounts']=_0x113bfd,_0x586c87[_0x1e936a(0x1010)]=_0x5be323,_0x586c87[_0x1e936a(0x790)]=_0x11e5bd,_0x586c87[_0x1e936a(0x33b)]=_0x4adf82,_0x586c87[_0x1e936a(0x1247)]=_0x52bea1,_0x586c87[_0x1e936a(0x21a3)]=_0x4e4875,_0x586c87[_0x1e936a(0x7aa)]=_0xd9eb86,_0x586c87['composeInteraction']=_0x3a0902,_0x586c87[_0x1e936a(0x2354)]=_0x3047b5,_0x586c87[_0x1e936a(0x1244)]=_0x55735a,_0x586c87[_0x1e936a(0x1e4f)]=_0x288d1f,_0x586c87[_0x1e936a(0x1ded)]=_0x604a66,_0x586c87[_0x1e936a(0x1dd6)]=_0x192ed0,_0x586c87[_0x1e936a(0x360)]();function _0x192ed0(_0x52a144){const _0x32dde7=_0x1e936a;if(_0x52a144[_0x32dde7(0x1da3)])return _0x28c606()[_0x32dde7(0x68a)](_0x28c606()[_0x32dde7(0x1de5)](_0x586c87[_0x32dde7(0x198c)]?_0x586c87[_0x32dde7(0x198c)][_0x32dde7(0x28b8)]:[],'id'),_0x52a144[_0x32dde7(0x1da3)]);else{if(_0x52a144[_0x32dde7(0x2859)])return _0x28c606()[_0x32dde7(0x68a)](_0x28c606()[_0x32dde7(0x1de5)](_0x586c87[_0x32dde7(0xda9)]?_0x586c87[_0x32dde7(0xda9)][_0x32dde7(0x28b8)]:[],'id'),_0x52a144['OpenchannelAccountId']);else{if(_0x52a144[_0x32dde7(0x1be5)])return _0x28c606()['includes'](_0x28c606()[_0x32dde7(0x1de5)](_0x586c87[_0x32dde7(0x205)]?_0x586c87['smsAccounts'][_0x32dde7(0x28b8)]:[],'id'),_0x52a144['SmsAccountId']);else{if(_0x52a144[_0x32dde7(0x222)])return _0x28c606()[_0x32dde7(0x68a)](_0x28c606()[_0x32dde7(0x1de5)](_0x586c87[_0x32dde7(0x21fb)]?_0x586c87[_0x32dde7(0x21fb)][_0x32dde7(0x28b8)]:[],'id'),_0x52a144[_0x32dde7(0x222)]);else{if(_0x52a144[_0x32dde7(0xa4c)])return _0x28c606()[_0x32dde7(0x68a)](_0x28c606()['map'](_0x586c87[_0x32dde7(0x2435)]?_0x586c87[_0x32dde7(0x2435)][_0x32dde7(0x28b8)]:[],'id'),_0x52a144[_0x32dde7(0xa4c)]);else{if(_0x52a144[_0x32dde7(0xd93)])return _0x28c606()['includes'](_0x28c606()[_0x32dde7(0x1de5)](_0x586c87['chatAccounts']?_0x586c87[_0x32dde7(0x1aac)][_0x32dde7(0x28b8)]:[],'id'),_0x52a144[_0x32dde7(0xd93)]);else{if(_0x52a144[_0x32dde7(0x987)])return!![];}}}}}}return![];}function _0x288d1f(_0x4fb66e,_0x1a23e7){const _0x1909fd=_0x1e936a;try{if(_0x1a23e7[_0x1909fd(0xa4c)])return _0x472318['$parent'][_0x1909fd(0x4e3)][_0x1909fd(0x4e3)]['vm'][_0x1909fd(0x1540)](_0x1909fd(0xc71),_0x1a23e7);else{if(_0x1a23e7[_0x1909fd(0xd93)])return _0x472318['$parent']['$parent'][_0x1909fd(0x4e3)]['vm']['addInteractionTab'](_0x1909fd(0xf52),_0x1a23e7);else{if(_0x1a23e7[_0x1909fd(0x1be5)])return _0x472318[_0x1909fd(0x4e3)][_0x1909fd(0x4e3)][_0x1909fd(0x4e3)]['vm']['addInteractionTab']('sms',_0x1a23e7);else{if(_0x1a23e7[_0x1909fd(0x222)])return _0x472318['$parent'][_0x1909fd(0x4e3)][_0x1909fd(0x4e3)]['vm']['addInteractionTab'](_0x1909fd(0x1a29),_0x1a23e7);else{if(_0x1a23e7[_0x1909fd(0x2859)])return _0x472318[_0x1909fd(0x4e3)][_0x1909fd(0x4e3)][_0x1909fd(0x4e3)]['vm'][_0x1909fd(0x1540)](_0x1909fd(0x28ad),_0x1a23e7);else{if(_0x1a23e7[_0x1909fd(0x1da3)])return _0x472318[_0x1909fd(0x4e3)]['$parent'][_0x1909fd(0x4e3)]['vm']['addInteractionTab'](_0x1909fd(0x1d37),_0x1a23e7);}}}}}}catch(_0x668290){_0x15c383[_0x1909fd(0x1bd0)]({'title':_0x1909fd(0x236b),'msg':_0x1909fd(0xc0d)});}}function _0x44baf1(_0x22ded3){const _0x34010d=_0x1e936a;if(!_0x22ded3[_0x34010d(0x168b)])return'('+_0x1ac2b7['instant'](_0x34010d(0x11fc))+')';const _0x2b3289=_0x28c606()[_0x34010d(0x2039)]([_0x22ded3[_0x34010d(0x168b)],_0x22ded3[_0x34010d(0x22df)],_0x22ded3[_0x34010d(0x350)]]);return'('+_0x2b3289[_0x34010d(0x9a6)](_0x34010d(0x21db))+')';}function _0x21c600(_0x1eebcd){const _0x45810c=_0x1e936a;_0x1eebcd&&_0x1eebcd[_0x45810c(0xb90)]&&_0x1eebcd[_0x45810c(0x28b8)][_0x45810c(0x1b9e)]&&(_0x586c87[_0x45810c(0x738)]=_0x28c606()['concat'](_0x586c87['journey'],_0x1eebcd[_0x45810c(0x28b8)]),_0x586c87[_0x45810c(0x738)][_0x45810c(0x1397)](function(_0x3bde8e){const _0x3ac1e4=_0x45810c;_0x3bde8e[_0x3ac1e4(0x2239)]=_0x44baf1(_0x3bde8e);}));}function _0x33388f(_0x3453b0){const _0x1b4c06=_0x1e936a,_0xfe9261=[_0x1b4c06(0xc71),_0x1b4c06(0xf52),_0x1b4c06(0x10aa),_0x1b4c06(0x28ad),_0x1b4c06(0x1d37),'whatsapp'];if(_0x3453b0&&_0x3453b0['id']){for(let _0x504553=0x0;_0x504553<_0xfe9261[_0x1b4c06(0x1b9e)];_0x504553++){_0x3f3df6[_0xfe9261[_0x504553]+_0x1b4c06(0xb28)][_0x1b4c06(0x896)]({'ContactId':_0x3453b0['id'],'journey':!![],'includeAll':!![]})[_0x1b4c06(0x15e7)]['then'](_0x21c600);}_0x3f3df6[_0x1b4c06(0x642)][_0x1b4c06(0x896)]({'ContactId':_0x3453b0['id'],'includeAll':!![]})['$promise']['then'](_0x21c600)[_0x1b4c06(0x20cd)](function(_0x4ad81e){console['error'](_0x4ad81e);});}}function _0x4e5723(_0x4af028){const _0x547566=_0x1e936a;switch(_0x4af028){case _0x547566(0xf52):return _0x547566(0x147d);case'mail':return _0x547566(0x1d78);case'sms':return _0x547566(0xadf);case _0x547566(0x28ad):return'amber-A200';case _0x547566(0x1d37):return'blue-grey-A200';case _0x547566(0x1a29):return _0x547566(0xa75);default:return _0x547566(0x5fb);}}function _0x604a66(_0x33055d){const _0x33d52f=_0x1e936a;let _0x399f69='';if(_0x33055d[_0x33d52f(0x1da3)])_0x399f69=_0x33d52f(0x1d37);else{if(_0x33055d[_0x33d52f(0x2859)])_0x399f69=_0x33d52f(0x28ad);else{if(_0x33055d[_0x33d52f(0x1be5)])_0x399f69=_0x33d52f(0x10aa);else{if(_0x33055d[_0x33d52f(0x222)])_0x399f69=_0x33d52f(0x1a29);else{if(_0x33055d[_0x33d52f(0xa4c)])_0x399f69='mail';else{if(_0x33055d['ChatWebsiteId'])_0x399f69=_0x33d52f(0xf52);else _0x33055d['amaflags']&&(_0x399f69='voice');}}}}}return _0x4e5723(_0x399f69);}function _0x3047b5(_0x14fea8,_0x4ac3ab){const _0x91dc10=_0x1e936a;return _0x586c87[_0x91dc10(0x1222)]=_0x14fea8,_0x472318[_0x91dc10(0x1609)](['vm.detailForm.$pristine',_0x91dc10(0x14e4)],function(_0xa65435){const _0x320078=_0x91dc10;_0x586c87[_0x320078(0x1222)][_0x320078(0x282a)]=_0xa65435[0x0]&&_0xa65435[0x1];}),_0x586c87['license']=_0x4ac3ab,_0x586c87[_0x91dc10(0x13f7)]=_0x586c87[_0x91dc10(0x1222)][_0x91dc10(0x13f7)],_0x586c87[_0x91dc10(0x25c2)]=![],_0x586c87['currentTab']=0x0,_0x3f3df6[_0x91dc10(0x2e8)][_0x91dc10(0x896)]({'fields':_0x91dc10(0x25e7),'nolimit':!![]})[_0x91dc10(0x15e7)]['then'](function(_0x1d9c08){const _0x193e0d=_0x91dc10;_0x586c87['users']=_0x1d9c08||{'count':0x0,'rows':[]},_0x586c87[_0x193e0d(0x1aa5)]=_0x28c606()[_0x193e0d(0x239c)](_0x28c606()[_0x193e0d(0x161e)](_0x586c87[_0x193e0d(0xff5)][_0x193e0d(0x28b8)],'id'),_0x193e0d(0x15c));return;})[_0x91dc10(0x64a)](function(){const _0x502b54=_0x91dc10,_0x1570d1=[];for(let _0x362877=0x0;_0x362877<_0x586c87[_0x502b54(0x1222)][_0x502b54(0x1a3a)]['length'];_0x362877++){const _0x37338f=_0x586c87[_0x502b54(0x1222)]['calls'][_0x362877];_0x1570d1[_0x502b54(0x1954)](_0x3f3df6['voiceCallReport'][_0x502b54(0x896)]({'uniqueid':_0x37338f[_0x502b54(0x2947)]})[_0x502b54(0x15e7)][_0x502b54(0x64a)](function(_0x1eb48d){const _0x52249d=_0x502b54;_0x1eb48d&&_0x1eb48d['rows'][_0x52249d(0x1b9e)]>0x0&&(_0x37338f['disposedAt']=_0x28c606()[_0x52249d(0x77b)](_0x1eb48d['rows'])[_0x52249d(0x124c)]);return;}));}return _0x28a2b8['all'](_0x1570d1);})[_0x91dc10(0x64a)](function(){const _0x3d4ee6=_0x91dc10;if(_0x586c87['contact']&&_0x586c87[_0x3d4ee6(0x13f7)]['id']){const _0x2f8c79={'id':_0x586c87[_0x3d4ee6(0x13f7)]['id'],'ListId':_0x586c87[_0x3d4ee6(0x13f7)][_0x3d4ee6(0x869)],'limit':0x1,'offset':0x0,'sort':_0x3d4ee6(0x260c)};return _0x3f3df6['cmContact'][_0x3d4ee6(0x896)](_0x2f8c79)[_0x3d4ee6(0x15e7)][_0x3d4ee6(0x64a)](function(_0x15270e){const _0x3ceca7=_0x3d4ee6;return _0x586c87['contact']=_0x15270e,_0x586c87['tab'][_0x3ceca7(0x13f7)]=_0x15270e,_0x3f3df6[_0x3ceca7(0x2e8)][_0x3ceca7(0x1871)]({'id':_0x586c87['user']['id'],'ids':[_0x586c87['contact']['id']]});})[_0x3d4ee6(0x64a)](function(){const _0x30f828=_0x3d4ee6;if(_0x586c87[_0x30f828(0x13f7)][_0x30f828(0x869)])return _0x3f3df6[_0x30f828(0x168b)][_0x30f828(0x896)]({'ListId':_0x586c87[_0x30f828(0x13f7)][_0x30f828(0x869)]})[_0x30f828(0x15e7)][_0x30f828(0x64a)](function(_0x494b71){const _0x371c11=_0x30f828;return _0x586c87['tab'][_0x371c11(0x16d7)]=_0x494b71,_0x3f3df6[_0x371c11(0x19f8)][_0x371c11(0x231f)]({'id':_0x586c87[_0x371c11(0x13f7)][_0x371c11(0x869)]})['$promise'];})['then'](function(_0x4ea1fd){const _0x2a14d7=_0x30f828;_0x586c87[_0x2a14d7(0x1222)][_0x2a14d7(0x1559)]=_0x4ea1fd;return;});return;})[_0x3d4ee6(0x64a)](function(){const _0x49b36a=_0x3d4ee6;try{_0x586c87[_0x49b36a(0x1222)][_0x49b36a(0x4cd)]=_0x472318[_0x49b36a(0x4e3)][_0x49b36a(0x4e3)][_0x49b36a(0x4e3)]['vm'][_0x49b36a(0x1ee4)],_0x586c87[_0x49b36a(0x1222)][_0x49b36a(0x974)]=_0x472318['$parent'][_0x49b36a(0x4e3)]['$parent']['vm'][_0x49b36a(0x159c)],_0x586c87[_0x49b36a(0x1222)][_0x49b36a(0x244)]=_0x472318[_0x49b36a(0x4e3)]['$parent']['$parent']['vm'][_0x49b36a(0x26bd)],_0x586c87[_0x49b36a(0x1222)][_0x49b36a(0x16a6)]=_0x472318[_0x49b36a(0x4e3)][_0x49b36a(0x4e3)][_0x49b36a(0x4e3)]['vm'][_0x49b36a(0x24fe)],_0x586c87[_0x49b36a(0x1222)][_0x49b36a(0x1153)]=0x0,_0x586c87[_0x49b36a(0x13f7)][_0x49b36a(0x869)]&&(_0x586c87[_0x49b36a(0x1222)][_0x49b36a(0x4cd)]['rows']=_0x28c606()['unionBy'](_0x586c87[_0x49b36a(0x1222)][_0x49b36a(0x4cd)][_0x49b36a(0x28b8)],_0x28c606()[_0x49b36a(0xcec)](_0x586c87[_0x49b36a(0x1222)][_0x49b36a(0x974)][_0x49b36a(0x28b8)],{'id':_0x586c87['contact'][_0x49b36a(0x869)]}),'id'),_0x586c87['list']=_0x28c606()[_0x49b36a(0x27bc)](_0x586c87[_0x49b36a(0x1222)][_0x49b36a(0x4cd)]['rows'],{'id':_0x586c87[_0x49b36a(0x13f7)][_0x49b36a(0x869)]}));}catch(_0x22ef6f){}_0x586c87[_0x49b36a(0x24d2)](),_0x586c87[_0x49b36a(0x18d4)](),_0x586c87[_0x49b36a(0x16c2)](),_0x586c87[_0x49b36a(0x8df)](),_0x586c87[_0x49b36a(0x1010)](),_0x586c87[_0x49b36a(0x790)](),_0x586c87[_0x49b36a(0x33b)](),_0x586c87['getOpenchannelAccounts'](),_0x586c87[_0x49b36a(0x21a3)](),_0x586c87[_0x49b36a(0x7aa)]();return;})[_0x3d4ee6(0x64a)](function(){const _0x3d2f7f=_0x3d4ee6;return _0x3f3df6['cmContact']['getTags']({'id':_0x586c87[_0x3d2f7f(0x13f7)]['id']})[_0x3d2f7f(0x15e7)][_0x3d2f7f(0x64a)](function(_0x342e8b){const _0x5918fb=_0x3d2f7f;_0x586c87[_0x5918fb(0x1222)][_0x5918fb(0x1178)]=_0x28c606()['map'](_0x342e8b[_0x5918fb(0x28b8)],'id');return;});});}else{_0x586c87[_0x3d4ee6(0x25c2)]=!![];if(_0x14fea8['autoCreate'])return console['log'](_0x3d4ee6(0x1153)),_0x586c87[_0x3d4ee6(0x1da5)]();return;}})[_0x91dc10(0x64a)](_0x33388f(_0x586c87['contact']));}function _0x3a0902(_0x4f2442,_0x4f76e9,_0x49b637,_0xe89f0e){const _0x51b38a=_0x1e936a,_0x86e29=_0x4f76e9['toLowerCase']();_0x209e69['show']({'controller':_0x51b38a(0x1cc6)+_0x4f76e9+_0x51b38a(0x1568),'controllerAs':'vm','templateUrl':_0x4b3a24[_0x86e29],'parent':angular[_0x51b38a(0x1f81)](_0x2a8e45['body']),'clickOutsideToClose':![],'locals':{'account':_0x49b637,'message':{'to':_0x86e29==_0x51b38a(0xc71)?_0xe89f0e:_0xe89f0e[_0x51b38a(0x282c)](',')},'type':_0x51b38a(0x13c0),'interaction':{'Contact':_0x586c87[_0x51b38a(0x13f7)]}},'fullscreen':!![]})['then'](function(_0x3d715e){const _0x4381fa=_0x51b38a;return _0x3f3df6[_0x86e29+_0x4381fa(0x141)][_0x4381fa(0xc10)]({'id':_0x49b637['id']},_0x3d715e)[_0x4381fa(0x15e7)]['then'](function(_0x27a00c){const _0x84423d=_0x4381fa;if(_0x4f76e9==='Mail'){const _0x1b6504=_0x27a00c;if(_0x1b6504&&_0x1b6504[_0x84423d(0x17af)]&&_0x1b6504[_0x84423d(0x17af)][_0x84423d(0x1b9e)]){if(_0x3d715e[_0x84423d(0xf8c)]&&_0x3d715e[_0x84423d(0xf8c)][_0x84423d(0x1b9e)])for(let _0x233e7a=0x0;_0x233e7a<_0x3d715e[_0x84423d(0xf8c)][_0x84423d(0x1b9e)];_0x233e7a+=0x1){_0x3f3df6[_0x84423d(0xd4d)][_0x84423d(0x2603)]({'id':_0x3d715e[_0x84423d(0xf8c)][_0x233e7a]['id']},{'MailMessageId':_0x28c606()[_0x84423d(0x1ff2)](_0x1b6504['Messages'])['id']});}_0x15c383['success']({'title':_0x84423d(0x2040),'msg':_0x84423d(0x285b)});if(_0x1b6504[_0x84423d(0x1140)]){_0x1b6504[_0x84423d(0x168b)]=null;const _0x5d1613=!_0x49b637[_0x84423d(0xe19)],_0xd97271=_0x586c87[_0x84423d(0x2e8)][_0x84423d(0x11a4)]||_0x586c87['user'][_0x84423d(0x2248)]||_0x586c87[_0x84423d(0x2e8)][_0x84423d(0x292)]||_0x586c87['user'][_0x84423d(0x1451)]||_0x586c87['user'][_0x84423d(0x211)];_0x209e69[_0x84423d(0xa60)]({'controller':_0x84423d(0x25d1),'controllerAs':'vm','templateUrl':_0x17dbb5,'parent':angular[_0x84423d(0x1f81)](_0x2a8e45[_0x84423d(0xb49)]),'onRemoving':function(){const _0x4d7ba7=_0x84423d;_0x586c87[_0x4d7ba7(0x2e8)]&&_0x49b637[_0x4d7ba7(0xe19)]&&!_0xd97271&&_0x3f3df6[_0x4d7ba7(0x2e8)][_0x4d7ba7(0x818)]({'id':_0x586c87[_0x4d7ba7(0x2e8)]['id']})[_0x4d7ba7(0x15e7)]['catch'](function(_0x53dcf0){const _0x254ef5=_0x4d7ba7;console[_0x254ef5(0x1bd0)](_0x53dcf0);});},'clickOutsideToClose':_0x5d1613,'escapeToClose':_0x5d1613,'locals':{'user':_0x586c87[_0x84423d(0x2e8)],'channel':'mail','interaction':_0x1b6504}});}else _0x472318[_0x84423d(0x4e3)]['vm']['addInteractionTab'](_0x84423d(0xc71),_0x1b6504);}}else _0x15c383[_0x84423d(0x1339)]({'title':'Message\x20properly\x20sent!','msg':_0x84423d(0x285b)}),_0x472318[_0x84423d(0x4e3)]['vm']['addInteractionTab'](_0x86e29,_0x27a00c);})[_0x4381fa(0x20cd)](function(_0x3deb4e){const _0x41f26=_0x4381fa;if(_0x3deb4e['data']&&_0x3deb4e[_0x41f26(0x1c52)][_0x41f26(0xbae)]&&_0x3deb4e['data'][_0x41f26(0xbae)][_0x41f26(0x1b9e)])for(let _0x3ed4cd=0x0;_0x3ed4cd<_0x3deb4e[_0x41f26(0x1c52)][_0x41f26(0xbae)][_0x41f26(0x1b9e)];_0x3ed4cd+=0x1){_0x15c383['error']({'title':_0x3deb4e[_0x41f26(0x1c52)][_0x41f26(0xbae)][_0x3ed4cd][_0x41f26(0x2185)],'msg':_0x3deb4e[_0x41f26(0x1c52)][_0x41f26(0xbae)][_0x3ed4cd][_0x41f26(0x18ca)]});}else _0x86e29===_0x41f26(0x1d37)?_0x15c383[_0x41f26(0x1bd0)]({'title':_0x41f26(0x7b8),'msg':_0x3deb4e[_0x41f26(0x1c52)]?JSON[_0x41f26(0x2317)](_0x3deb4e['data']):_0x3deb4e[_0x41f26(0x18ca)]||_0x3deb4e['toString']()}):_0x15c383['error']({'title':_0x3deb4e[_0x41f26(0x10b3)]?_0x41f26(0x575)+_0x3deb4e['status']+_0x41f26(0x21db)+_0x3deb4e[_0x41f26(0x2115)]:_0x4f76e9['toUpperCase']()+_0x41f26(0x196f),'msg':_0x3deb4e['data']?JSON['stringify'](_0x3deb4e[_0x41f26(0x1c52)][_0x41f26(0x18ca)]):_0x3deb4e[_0x41f26(0x18ca)]||_0x3deb4e[_0x41f26(0x2915)]()});});});}function _0x5ca8ed(){const _0x4b6a12=_0x1e936a;_0x586c87[_0x4b6a12(0xbae)]=[],_0x3f3df6[_0x4b6a12(0xdf5)]['save'](_0x586c87[_0x4b6a12(0x13f7)])[_0x4b6a12(0x15e7)][_0x4b6a12(0x64a)](function(_0x557152){const _0x5b5708=_0x4b6a12;return _0x586c87[_0x5b5708(0x13f7)]['id']=_0x557152['id'],_0x586c87[_0x5b5708(0x25c2)]=![],_0x586c87[_0x5b5708(0x1222)][_0x5b5708(0x2021)]=_0x557152[_0x5b5708(0x2518)]||_0x557152[_0x5b5708(0x267a)],_0x586c87[_0x5b5708(0x1222)][_0x5b5708(0x13f7)]=_0x586c87['contact'],_0x3f3df6['user'][_0x5b5708(0x1871)]({'id':_0xc22b6f[_0x5b5708(0x808)]()['id'],'ids':[_0x557152['id']]});})[_0x4b6a12(0x64a)](function(){const _0x40e9df=_0x4b6a12;_0x586c87[_0x40e9df(0x1930)][_0x40e9df(0x74f)]=!![],_0x586c87[_0x40e9df(0x2163)][_0x40e9df(0x74f)]=!![],_0x15c383[_0x40e9df(0x1339)]({'title':_0x40e9df(0x278d),'msg':_0x586c87[_0x40e9df(0x13f7)]['firstName']?_0x586c87['contact'][_0x40e9df(0x2518)]+_0x40e9df(0x258d):''});})['then'](function(){const _0x227d3c=_0x4b6a12;return _0x3f3df6[_0x227d3c(0xdf5)][_0x227d3c(0x1ac6)]({'id':_0x586c87[_0x227d3c(0x13f7)]['id'],'ids':_0x586c87[_0x227d3c(0x1222)][_0x227d3c(0x1178)]})[_0x227d3c(0x15e7)];})['catch'](function(_0x460ef8){const _0x55bbcb=_0x4b6a12;if(_0x460ef8[_0x55bbcb(0x1c52)]&&_0x460ef8[_0x55bbcb(0x1c52)][_0x55bbcb(0xbae)]&&_0x460ef8[_0x55bbcb(0x1c52)]['errors'][_0x55bbcb(0x1b9e)]){_0x586c87['errors']=_0x460ef8[_0x55bbcb(0x1c52)][_0x55bbcb(0xbae)]||[{'message':_0x460ef8[_0x55bbcb(0x2915)](),'type':_0x55bbcb(0x13cd)}];for(let _0xae9020=0x0;_0xae9020<_0x460ef8[_0x55bbcb(0x1c52)]['errors'][_0x55bbcb(0x1b9e)];_0xae9020+=0x1){_0x15c383[_0x55bbcb(0x1bd0)]({'title':_0x460ef8['data'][_0x55bbcb(0xbae)][_0xae9020][_0x55bbcb(0x2185)],'msg':_0x460ef8[_0x55bbcb(0x1c52)][_0x55bbcb(0xbae)][_0xae9020][_0x55bbcb(0x18ca)]});}}else _0x15c383[_0x55bbcb(0x1bd0)]({'title':_0x460ef8[_0x55bbcb(0x10b3)]?_0x55bbcb(0x575)+_0x460ef8[_0x55bbcb(0x10b3)]+_0x55bbcb(0x21db)+_0x460ef8['statusText']:'api.contact.save','msg':_0x460ef8[_0x55bbcb(0x1c52)]?JSON[_0x55bbcb(0x2317)](_0x460ef8[_0x55bbcb(0x1c52)][_0x55bbcb(0x18ca)]):_0x460ef8[_0x55bbcb(0x2915)]()});});}function _0x48afc5(){const _0x470d5d=_0x1e936a;_0x586c87['errors']=[],_0x3f3df6['cmContact']['update']({'id':_0x586c87['contact']['id']},_0x586c87[_0x470d5d(0x13f7)])[_0x470d5d(0x15e7)][_0x470d5d(0x64a)](function(_0xafc18c){const _0x13265c=_0x470d5d;return _0x586c87[_0x13265c(0x1222)][_0x13265c(0x2021)]=_0xafc18c['firstName']||_0xafc18c[_0x13265c(0x267a)],_0x586c87[_0x13265c(0x1222)][_0x13265c(0x13f7)]=_0x586c87[_0x13265c(0x13f7)],_0x472318[_0x13265c(0x4e3)]['vm'][_0x13265c(0x283b)](),_0x3f3df6[_0x13265c(0x2e8)][_0x13265c(0x1871)]({'id':_0xc22b6f[_0x13265c(0x808)]()['id'],'ids':[_0xafc18c['id']]});})['then'](function(){const _0x485651=_0x470d5d;return _0x3f3df6[_0x485651(0xdf5)][_0x485651(0x1ac6)]({'id':_0x586c87[_0x485651(0x13f7)]['id'],'ids':_0x586c87[_0x485651(0x1222)]['Tags']})['$promise'];})[_0x470d5d(0x64a)](function(){const _0x4bf89e=_0x470d5d;_0x586c87[_0x4bf89e(0x1930)][_0x4bf89e(0x74f)]=!![],_0x586c87[_0x4bf89e(0x2163)][_0x4bf89e(0x74f)]=!![],_0x15c383[_0x4bf89e(0x1339)]({'title':'Contact\x20properly\x20updated!','msg':_0x586c87[_0x4bf89e(0x13f7)][_0x4bf89e(0x2494)]?_0x586c87['contact'][_0x4bf89e(0x2494)]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x2f4973){const _0x5ee070=_0x470d5d;if(_0x2f4973['data']&&_0x2f4973['data'][_0x5ee070(0xbae)]&&_0x2f4973[_0x5ee070(0x1c52)][_0x5ee070(0xbae)]['length']){_0x586c87[_0x5ee070(0xbae)]=_0x2f4973[_0x5ee070(0x1c52)]['errors']||[{'message':_0x2f4973[_0x5ee070(0x2915)](),'type':_0x5ee070(0x13cd)}];for(let _0x5e1060=0x0;_0x5e1060<_0x2f4973['data'][_0x5ee070(0xbae)][_0x5ee070(0x1b9e)];_0x5e1060+=0x1){_0x15c383[_0x5ee070(0x1bd0)]({'title':_0x2f4973[_0x5ee070(0x1c52)][_0x5ee070(0xbae)][_0x5e1060]['type'],'msg':_0x2f4973[_0x5ee070(0x1c52)][_0x5ee070(0xbae)][_0x5e1060][_0x5ee070(0x18ca)]});}}else _0x15c383['error']({'title':_0x2f4973[_0x5ee070(0x10b3)]?_0x5ee070(0x575)+_0x2f4973['status']+'\x20-\x20'+_0x2f4973[_0x5ee070(0x2115)]:'api.contact.save','msg':_0x2f4973[_0x5ee070(0x1c52)]?JSON[_0x5ee070(0x2317)](_0x2f4973[_0x5ee070(0x1c52)][_0x5ee070(0x18ca)]):_0x2f4973['toString']()});});}_0x472318[_0x1e936a(0xc62)](_0x1e936a(0xc6b),function(){const _0x9c1675=_0x1e936a;_0x586c87['currentTab']===0x1&&(_0x586c87[_0x9c1675(0x24d2)](),_0x586c87[_0x9c1675(0x18d4)](),_0x586c87[_0x9c1675(0x16c2)]());});let _0x2c96b2=!![],_0x4ffc94=0x1;_0x472318[_0x1e936a(0xc62)](_0x1e936a(0x38b),function(_0x52fab2,_0x233070){const _0x5f1d79=_0x1e936a;_0x2c96b2?_0x4dcd42(function(){_0x2c96b2=![];}):(!_0x233070&&(_0x4ffc94=_0x586c87['queryHopper'][_0x5f1d79(0xc72)]),_0x52fab2!==_0x233070&&(_0x586c87[_0x5f1d79(0x12ee)][_0x5f1d79(0xc72)]=0x1),!_0x52fab2&&(_0x586c87[_0x5f1d79(0x12ee)]['page']=_0x4ffc94),_0x586c87['getHoppers']());}),_0x472318[_0x1e936a(0xc62)]('queryFinal.filter',function(_0x1e22bd,_0x2a5525){const _0x257c28=_0x1e936a;_0x2c96b2?_0x4dcd42(function(){_0x2c96b2=![];}):(!_0x2a5525&&(_0x4ffc94=_0x586c87[_0x257c28(0xf44)][_0x257c28(0xc72)]),_0x1e22bd!==_0x2a5525&&(_0x586c87['queryFinal'][_0x257c28(0xc72)]=0x1),!_0x1e22bd&&(_0x586c87[_0x257c28(0xf44)][_0x257c28(0xc72)]=_0x4ffc94),_0x586c87[_0x257c28(0x18d4)]());}),_0x472318[_0x1e936a(0xc62)](_0x1e936a(0x4ac),function(_0x33fc19,_0x4b0656){const _0x2905e9=_0x1e936a;_0x2c96b2?_0x4dcd42(function(){_0x2c96b2=![];}):(!_0x4b0656&&(_0x4ffc94=_0x586c87['queryHistory'][_0x2905e9(0xc72)]),_0x33fc19!==_0x4b0656&&(_0x586c87[_0x2905e9(0xe1e)][_0x2905e9(0xc72)]=0x1),!_0x33fc19&&(_0x586c87['queryHistory'][_0x2905e9(0xc72)]=_0x4ffc94),_0x586c87[_0x2905e9(0x16c2)]());});function _0x33f634(_0x244106){return function(_0x422646){_0x586c87[_0x244106]=_0x422646||{'count':0x0,'rows':[]};};}function _0x4f1253(){const _0x310ee4=_0x1e936a;_0x586c87['contact']&&_0x586c87['contact']['id']&&(_0x586c87[_0x310ee4(0x12ee)][_0x310ee4(0x1c49)]=_0x586c87[_0x310ee4(0x13f7)]['id'],_0x586c87[_0x310ee4(0x12ee)][_0x310ee4(0x24f9)]=(_0x586c87[_0x310ee4(0x12ee)][_0x310ee4(0xc72)]-0x1)*_0x586c87['queryHopper'][_0x310ee4(0x25bb)],_0x586c87[_0x310ee4(0x1713)]=_0x3f3df6['cmHopper'][_0x310ee4(0x896)](_0x586c87[_0x310ee4(0x12ee)],_0x33f634(_0x310ee4(0xd52)))[_0x310ee4(0x15e7)]);}function _0x4d7c90(){const _0x5befaf=_0x1e936a;_0x586c87['contact']&&_0x586c87['contact']['id']&&(_0x586c87[_0x5befaf(0xf44)]['ContactId']=_0x586c87[_0x5befaf(0x13f7)]['id'],_0x586c87[_0x5befaf(0xf44)][_0x5befaf(0x24f9)]=(_0x586c87[_0x5befaf(0xf44)][_0x5befaf(0xc72)]-0x1)*_0x586c87['queryFinal'][_0x5befaf(0x25bb)],_0x586c87['promise']=_0x3f3df6[_0x5befaf(0x711)][_0x5befaf(0x896)](_0x586c87[_0x5befaf(0xf44)],_0x33f634('finals'))[_0x5befaf(0x15e7)]);}function _0x224c9e(){const _0x2b621d=_0x1e936a;_0x586c87['contact']&&_0x586c87[_0x2b621d(0x13f7)]['id']&&(_0x586c87[_0x2b621d(0xe1e)][_0x2b621d(0x1c49)]=_0x586c87[_0x2b621d(0x13f7)]['id'],_0x586c87[_0x2b621d(0xe1e)][_0x2b621d(0x24f9)]=(_0x586c87[_0x2b621d(0xe1e)]['page']-0x1)*_0x586c87['queryHistory'][_0x2b621d(0x25bb)],_0x586c87[_0x2b621d(0x1713)]=_0x3f3df6[_0x2b621d(0x827)][_0x2b621d(0x896)](_0x586c87[_0x2b621d(0xe1e)],_0x33f634(_0x2b621d(0x1af7)))[_0x2b621d(0x15e7)]);}function _0x1512d7(){const _0x2a2173=_0x1e936a;_0x3f3df6[_0x2a2173(0x1fb9)][_0x2a2173(0x896)]({'fields':_0x2a2173(0x27fb),'sort':_0x2a2173(0x260c),'nolimit':!![]})[_0x2a2173(0x15e7)][_0x2a2173(0x64a)](function(_0x5eecfe){const _0x273db9=_0x2a2173;_0x586c87[_0x273db9(0x2413)]=_0x5eecfe||{'count':0x0,'rows':[]};})['catch'](function(_0x1d0228){const _0x388409=_0x2a2173;if(_0x1d0228[_0x388409(0x1c52)]&&_0x1d0228['data'][_0x388409(0xbae)]&&_0x1d0228[_0x388409(0x1c52)][_0x388409(0xbae)][_0x388409(0x1b9e)]){_0x586c87[_0x388409(0xbae)]=_0x1d0228[_0x388409(0x1c52)][_0x388409(0xbae)]||[{'message':_0x1d0228[_0x388409(0x2915)](),'type':'api.jscripty.account'}];for(let _0x57f285=0x0;_0x57f285<_0x1d0228[_0x388409(0x1c52)][_0x388409(0xbae)][_0x388409(0x1b9e)];_0x57f285+=0x1){_0x15c383['error']({'title':_0x1d0228[_0x388409(0x1c52)]['errors'][_0x57f285][_0x388409(0x2185)],'msg':_0x1d0228[_0x388409(0x1c52)][_0x388409(0xbae)][_0x57f285][_0x388409(0x18ca)]});}}else _0x15c383['error']({'title':_0x1d0228['status']?_0x388409(0x575)+_0x1d0228[_0x388409(0x10b3)]+_0x388409(0x21db)+_0x1d0228[_0x388409(0x2115)]:_0x388409(0x2236),'msg':_0x1d0228[_0x388409(0x1c52)]?JSON[_0x388409(0x2317)](_0x1d0228[_0x388409(0x1c52)][_0x388409(0x18ca)]):_0x1d0228['toString']()});});}function _0x113bfd(){const _0x3fa963=_0x1e936a;_0x3f3df6[_0x3fa963(0x2e8)][_0x3fa963(0x8df)]({'id':_0x586c87[_0x3fa963(0x2e8)]['id'],'nolimit':!![]})[_0x3fa963(0x15e7)][_0x3fa963(0x64a)](function(_0x255249){const _0x1dc9f9=_0x3fa963;_0x586c87[_0x1dc9f9(0x2435)]=_0x255249||{'count':0x0,'rows':[]};})[_0x3fa963(0x20cd)](function(_0x5c876c){const _0x37496f=_0x3fa963;if(_0x5c876c[_0x37496f(0x1c52)]&&_0x5c876c[_0x37496f(0x1c52)][_0x37496f(0xbae)]&&_0x5c876c[_0x37496f(0x1c52)][_0x37496f(0xbae)][_0x37496f(0x1b9e)]){_0x586c87['errors']=_0x5c876c['data'][_0x37496f(0xbae)]||[{'message':_0x5c876c[_0x37496f(0x2915)](),'type':_0x37496f(0x212c)}];for(let _0x5d04ed=0x0;_0x5d04ed<_0x5c876c[_0x37496f(0x1c52)][_0x37496f(0xbae)]['length'];_0x5d04ed+=0x1){_0x15c383[_0x37496f(0x1bd0)]({'title':_0x5c876c[_0x37496f(0x1c52)][_0x37496f(0xbae)][_0x5d04ed][_0x37496f(0x2185)],'msg':_0x5c876c[_0x37496f(0x1c52)][_0x37496f(0xbae)][_0x5d04ed][_0x37496f(0x18ca)]});}}else _0x15c383[_0x37496f(0x1bd0)]({'title':_0x5c876c[_0x37496f(0x10b3)]?_0x37496f(0x575)+_0x5c876c['status']+_0x37496f(0x21db)+_0x5c876c['statusText']:'api.mail.account','msg':_0x5c876c['data']?JSON['stringify'](_0x5c876c['data'][_0x37496f(0x18ca)]):_0x5c876c['toString']()});});}function _0x5be323(){const _0x33063b=_0x1e936a;_0x3f3df6[_0x33063b(0x2e8)][_0x33063b(0x1010)]({'id':_0x586c87['user']['id'],'nolimit':!![]})[_0x33063b(0x15e7)][_0x33063b(0x64a)](function(_0x37a746){const _0x30c4a4=_0x33063b;_0x586c87[_0x30c4a4(0x198c)]=_0x37a746||{'count':0x0,'rows':[]};})['catch'](function(_0x107daf){const _0x443e78=_0x33063b;if(_0x107daf[_0x443e78(0x1c52)]&&_0x107daf[_0x443e78(0x1c52)][_0x443e78(0xbae)]&&_0x107daf[_0x443e78(0x1c52)][_0x443e78(0xbae)]['length']){_0x586c87[_0x443e78(0xbae)]=_0x107daf[_0x443e78(0x1c52)][_0x443e78(0xbae)]||[{'message':_0x107daf[_0x443e78(0x2915)](),'type':'api.fax.account'}];for(let _0x1de92d=0x0;_0x1de92d<_0x107daf[_0x443e78(0x1c52)][_0x443e78(0xbae)][_0x443e78(0x1b9e)];_0x1de92d+=0x1){_0x15c383['error']({'title':_0x107daf[_0x443e78(0x1c52)]['errors'][_0x1de92d]['type'],'msg':_0x107daf[_0x443e78(0x1c52)][_0x443e78(0xbae)][_0x1de92d][_0x443e78(0x18ca)]});}}else _0x15c383['error']({'title':_0x107daf[_0x443e78(0x10b3)]?_0x443e78(0x575)+_0x107daf[_0x443e78(0x10b3)]+_0x443e78(0x21db)+_0x107daf['statusText']:_0x443e78(0x166),'msg':_0x107daf[_0x443e78(0x1c52)]?JSON[_0x443e78(0x2317)](_0x107daf[_0x443e78(0x1c52)][_0x443e78(0x18ca)]):_0x107daf['toString']()});});}function _0x11e5bd(){const _0x41a8a4=_0x1e936a;_0x3f3df6['user'][_0x41a8a4(0x790)]({'id':_0x586c87[_0x41a8a4(0x2e8)]['id'],'nolimit':!![]})[_0x41a8a4(0x15e7)][_0x41a8a4(0x64a)](function(_0x413969){const _0x53ae1e=_0x41a8a4;_0x586c87[_0x53ae1e(0x205)]=_0x413969||{'count':0x0,'rows':[]};})[_0x41a8a4(0x20cd)](function(_0x271f30){const _0x5424e0=_0x41a8a4;if(_0x271f30[_0x5424e0(0x1c52)]&&_0x271f30[_0x5424e0(0x1c52)]['errors']&&_0x271f30[_0x5424e0(0x1c52)]['errors']['length']){_0x586c87[_0x5424e0(0xbae)]=_0x271f30['data'][_0x5424e0(0xbae)]||[{'message':_0x271f30[_0x5424e0(0x2915)](),'type':_0x5424e0(0x1278)}];for(let _0xb1d399=0x0;_0xb1d399<_0x271f30[_0x5424e0(0x1c52)]['errors']['length'];_0xb1d399+=0x1){_0x15c383[_0x5424e0(0x1bd0)]({'title':_0x271f30[_0x5424e0(0x1c52)]['errors'][_0xb1d399][_0x5424e0(0x2185)],'msg':_0x271f30[_0x5424e0(0x1c52)][_0x5424e0(0xbae)][_0xb1d399]['message']});}}else _0x15c383[_0x5424e0(0x1bd0)]({'title':_0x271f30[_0x5424e0(0x10b3)]?'API:'+_0x271f30[_0x5424e0(0x10b3)]+_0x5424e0(0x21db)+_0x271f30[_0x5424e0(0x2115)]:_0x5424e0(0x1278),'msg':_0x271f30[_0x5424e0(0x1c52)]?JSON['stringify'](_0x271f30['data'][_0x5424e0(0x18ca)]):_0x271f30[_0x5424e0(0x2915)]()});});}function _0x4adf82(){const _0xb69aca=_0x1e936a;_0x3f3df6[_0xb69aca(0x2e8)][_0xb69aca(0x33b)]({'id':_0x586c87[_0xb69aca(0x2e8)]['id'],'nolimit':!![]})[_0xb69aca(0x15e7)][_0xb69aca(0x64a)](function(_0x5701d3){const _0x443447=_0xb69aca;_0x586c87[_0x443447(0x21fb)]=_0x5701d3||{'count':0x0,'rows':[]};})[_0xb69aca(0x20cd)](function(_0x1f533a){const _0x1d533a=_0xb69aca;if(_0x1f533a[_0x1d533a(0x1c52)]&&_0x1f533a[_0x1d533a(0x1c52)][_0x1d533a(0xbae)]&&_0x1f533a[_0x1d533a(0x1c52)][_0x1d533a(0xbae)][_0x1d533a(0x1b9e)]){_0x586c87[_0x1d533a(0xbae)]=_0x1f533a[_0x1d533a(0x1c52)][_0x1d533a(0xbae)]||[{'message':_0x1f533a[_0x1d533a(0x2915)](),'type':_0x1d533a(0x78e)}];for(let _0x1f35a4=0x0;_0x1f35a4<_0x1f533a[_0x1d533a(0x1c52)][_0x1d533a(0xbae)][_0x1d533a(0x1b9e)];_0x1f35a4+=0x1){_0x15c383[_0x1d533a(0x1bd0)]({'title':_0x1f533a[_0x1d533a(0x1c52)][_0x1d533a(0xbae)][_0x1f35a4]['type'],'msg':_0x1f533a['data'][_0x1d533a(0xbae)][_0x1f35a4]['message']});}}else _0x15c383[_0x1d533a(0x1bd0)]({'title':_0x1f533a[_0x1d533a(0x10b3)]?'API:'+_0x1f533a[_0x1d533a(0x10b3)]+_0x1d533a(0x21db)+_0x1f533a[_0x1d533a(0x2115)]:_0x1d533a(0x78e),'msg':_0x1f533a[_0x1d533a(0x1c52)]?JSON[_0x1d533a(0x2317)](_0x1f533a[_0x1d533a(0x1c52)][_0x1d533a(0x18ca)]):_0x1f533a[_0x1d533a(0x2915)]()});});}function _0x52bea1(){const _0x17884e=_0x1e936a;_0x3f3df6['user']['getOpenchannelAccounts']({'id':_0x586c87['user']['id'],'nolimit':!![]})[_0x17884e(0x15e7)][_0x17884e(0x64a)](function(_0x48ad24){const _0x35fbc7=_0x17884e;_0x586c87[_0x35fbc7(0xda9)]=_0x48ad24||{'count':0x0,'rows':[]};})[_0x17884e(0x20cd)](function(_0x5bae44){const _0x3c4efa=_0x17884e;if(_0x5bae44[_0x3c4efa(0x1c52)]&&_0x5bae44['data'][_0x3c4efa(0xbae)]&&_0x5bae44[_0x3c4efa(0x1c52)][_0x3c4efa(0xbae)][_0x3c4efa(0x1b9e)]){_0x586c87[_0x3c4efa(0xbae)]=_0x5bae44[_0x3c4efa(0x1c52)]['errors']||[{'message':_0x5bae44[_0x3c4efa(0x2915)](),'type':_0x3c4efa(0xfe4)}];for(let _0x26e777=0x0;_0x26e777<_0x5bae44[_0x3c4efa(0x1c52)][_0x3c4efa(0xbae)]['length'];_0x26e777+=0x1){_0x15c383[_0x3c4efa(0x1bd0)]({'title':_0x5bae44[_0x3c4efa(0x1c52)]['errors'][_0x26e777][_0x3c4efa(0x2185)],'msg':_0x5bae44['data'][_0x3c4efa(0xbae)][_0x26e777]['message']});}}else _0x15c383[_0x3c4efa(0x1bd0)]({'title':_0x5bae44[_0x3c4efa(0x10b3)]?'API:'+_0x5bae44[_0x3c4efa(0x10b3)]+_0x3c4efa(0x21db)+_0x5bae44[_0x3c4efa(0x2115)]:_0x3c4efa(0xfe4),'msg':_0x5bae44[_0x3c4efa(0x1c52)]?JSON[_0x3c4efa(0x2317)](_0x5bae44[_0x3c4efa(0x1c52)][_0x3c4efa(0x18ca)]):_0x5bae44[_0x3c4efa(0x2915)]()});});}function _0x4e4875(){const _0x516e60=_0x1e936a;_0x3f3df6['user'][_0x516e60(0x21a3)]({'id':_0x586c87[_0x516e60(0x2e8)]['id'],'nolimit':!![]})[_0x516e60(0x15e7)][_0x516e60(0x64a)](function(_0x2abe1e){const _0x976eec=_0x516e60;_0x586c87[_0x976eec(0x1aac)]=_0x2abe1e||{'count':0x0,'rows':[]};})['catch'](function(_0x379ea7){const _0x59a6a6=_0x516e60;if(_0x379ea7[_0x59a6a6(0x1c52)]&&_0x379ea7['data'][_0x59a6a6(0xbae)]&&_0x379ea7[_0x59a6a6(0x1c52)][_0x59a6a6(0xbae)][_0x59a6a6(0x1b9e)]){_0x586c87[_0x59a6a6(0xbae)]=_0x379ea7[_0x59a6a6(0x1c52)][_0x59a6a6(0xbae)]||[{'message':_0x379ea7['toString'](),'type':_0x59a6a6(0x248c)}];for(let _0x4c45b0=0x0;_0x4c45b0<_0x379ea7[_0x59a6a6(0x1c52)][_0x59a6a6(0xbae)]['length'];_0x4c45b0+=0x1){_0x15c383[_0x59a6a6(0x1bd0)]({'title':_0x379ea7[_0x59a6a6(0x1c52)][_0x59a6a6(0xbae)][_0x4c45b0]['type'],'msg':_0x379ea7['data'][_0x59a6a6(0xbae)][_0x4c45b0][_0x59a6a6(0x18ca)]});}}else _0x15c383[_0x59a6a6(0x1bd0)]({'title':_0x379ea7['status']?_0x59a6a6(0x575)+_0x379ea7[_0x59a6a6(0x10b3)]+_0x59a6a6(0x21db)+_0x379ea7[_0x59a6a6(0x2115)]:'api.chatAccounts.account','msg':_0x379ea7[_0x59a6a6(0x1c52)]?JSON[_0x59a6a6(0x2317)](_0x379ea7[_0x59a6a6(0x1c52)]['message']):_0x379ea7[_0x59a6a6(0x2915)]()});});}function _0xd9eb86(){const _0x121c29=_0x1e936a;_0x3f3df6['user'][_0x121c29(0x7aa)]({'id':_0x586c87['user']['id'],'nolimit':!![]})[_0x121c29(0x15e7)][_0x121c29(0x64a)](function(_0x4b302a){const _0x3849db=_0x121c29;_0x586c87[_0x3849db(0x974)]=_0x4b302a||{'count':0x0,'rows':[]};})[_0x121c29(0x20cd)](function(_0x1845a3){const _0x39954e=_0x121c29;if(_0x1845a3[_0x39954e(0x1c52)]&&_0x1845a3[_0x39954e(0x1c52)][_0x39954e(0xbae)]&&_0x1845a3['data'][_0x39954e(0xbae)][_0x39954e(0x1b9e)]){_0x586c87[_0x39954e(0xbae)]=_0x1845a3[_0x39954e(0x1c52)][_0x39954e(0xbae)]||[{'message':_0x1845a3[_0x39954e(0x2915)](),'type':_0x39954e(0x2267)}];for(let _0x324cbb=0x0;_0x324cbb<_0x1845a3[_0x39954e(0x1c52)]['errors'][_0x39954e(0x1b9e)];_0x324cbb+=0x1){_0x15c383[_0x39954e(0x1bd0)]({'title':_0x1845a3[_0x39954e(0x1c52)][_0x39954e(0xbae)][_0x324cbb][_0x39954e(0x2185)],'msg':_0x1845a3['data'][_0x39954e(0xbae)][_0x324cbb][_0x39954e(0x18ca)]});}}else _0x15c383[_0x39954e(0x1bd0)]({'title':_0x1845a3[_0x39954e(0x10b3)]?'API:'+_0x1845a3[_0x39954e(0x10b3)]+'\x20-\x20'+_0x1845a3[_0x39954e(0x2115)]:'api.cm.lists','msg':_0x1845a3['data']?JSON[_0x39954e(0x2317)](_0x1845a3[_0x39954e(0x1c52)][_0x39954e(0x18ca)]):_0x1845a3[_0x39954e(0x2915)]()});});}function _0x49d65f(_0x1e827e){const _0x5244c1=_0x1e936a;_0x209e69[_0x5244c1(0xa60)]({'controller':_0x5244c1(0x113d),'controllerAs':'vm','templateUrl':_0x4d4648,'parent':angular[_0x5244c1(0x1f81)](_0x2a8e45[_0x5244c1(0xb49)]),'targetEvent':_0x1e827e,'clickOutsideToClose':!![],'resolve':{'contact':[_0x5244c1(0x107c),function(_0x352ed9){const _0x472dd9=_0x5244c1;return _0x352ed9['resolve']('cmContact@get',{'id':_0x586c87[_0x472dd9(0x13f7)]['id']});}],'lists':['apiResolver',function(_0x305476){const _0x31f7d3=_0x5244c1;return _0x305476['resolve'](_0x31f7d3(0x258),{'id':_0xc22b6f[_0x31f7d3(0x808)]()['id'],'fields':_0x31f7d3(0x1427)});}]},'locals':{'contacts':[]}});}function _0x59002d(_0x2bc638){const _0x1cc321=_0x1e936a;_0x209e69['show']({'controller':_0x1cc321(0xc0a),'controllerAs':'vm','templateUrl':_0x32a305,'parent':angular[_0x1cc321(0x1f81)](_0x2a8e45[_0x1cc321(0xb49)]),'targetEvent':_0x2bc638,'clickOutsideToClose':!![],'resolve':{'contact':[_0x1cc321(0x107c),function(_0x208c5a){const _0x131879=_0x1cc321;return _0x208c5a[_0x131879(0x1268)]('cmContact@get',{'id':_0x586c87[_0x131879(0x13f7)]['id']});}],'lists':['apiResolver',function(_0x117198){const _0x13d038=_0x1cc321;return _0x117198['resolve']('user@getLists',{'id':_0xc22b6f['getCurrentUser']()['id'],'fields':_0x13d038(0x1427)});}]},'locals':{'contacts':[]}})['then'](function(_0x174615){const _0xb91064=_0x1cc321;if(_0x174615){for(const _0x330663 in _0x472318[_0xb91064(0x4e3)][_0xb91064(0x4e3)]['$parent']['vm'][_0xb91064(0x266f)]){if(typeof _0x472318[_0xb91064(0x4e3)][_0xb91064(0x4e3)][_0xb91064(0x4e3)]['vm']['tabs'][_0x330663]!==_0xb91064(0x19a1)){const _0x3df774=_0x472318[_0xb91064(0x4e3)][_0xb91064(0x4e3)]['$parent']['vm'][_0xb91064(0x266f)][_0x330663];_0x3df774&&_0x3df774[_0xb91064(0x13f7)]&&(_0x174615[_0xb91064(0x2519)]&&_0x174615[_0xb91064(0x2519)]['id']&&_0x174615[_0xb91064(0x2519)]['id']===_0x3df774[_0xb91064(0x13f7)]['id']&&_0x472318['$parent'][_0xb91064(0x4e3)][_0xb91064(0x4e3)]['vm'][_0xb91064(0xc4c)](_0x3df774),_0x174615['to']&&_0x174615['to']['id']&&_0x174615['to']['id']===_0x3df774['contact']['id']&&_0x472318[_0xb91064(0x4e3)][_0xb91064(0x4e3)][_0xb91064(0x4e3)]['vm'][_0xb91064(0xc4c)](_0x3df774));}}_0x174615['new']&&_0x472318['$parent']['$parent'][_0xb91064(0x4e3)]['vm'][_0xb91064(0x251)](_0x174615[_0xb91064(0x13c0)]);}});}function _0x29e042(_0x11d541,_0x4969c1){const _0x298b5c=_0x1e936a;if(_0x586c87[_0x298b5c(0x25c2)]){_0x15c383[_0x298b5c(0x1bd0)]({'title':_0x298b5c(0xab2),'msg':_0x298b5c(0x344)});return;}_0x209e69[_0x298b5c(0xa60)]({'controller':_0x298b5c(0x25f0),'controllerAs':'vm','templateUrl':_0x5b70ce,'parent':angular['element'](_0x2a8e45[_0x298b5c(0xb49)]),'targetEvent':_0x4969c1,'clickOutsideToClose':!_0x4969c1[_0x298b5c(0xe19)],'escapeToClose':!_0x4969c1[_0x298b5c(0xe19)],'resolve':{'globalDispositions':[_0x298b5c(0x107c),function(_0x4199bd){const _0x458ed1=_0x298b5c;return _0x4199bd[_0x458ed1(0x1268)](_0x458ed1(0x10c9),{'MailAccountId':_0x458ed1(0x8f1),'FaxAccountId':_0x458ed1(0x8f1),'SmsAccountId':'null','WhatsappAccountId':'null','OpenchannelAccountId':_0x458ed1(0x8f1),'ChatWebsiteId':_0x458ed1(0x8f1),'ListId':_0x458ed1(0x8f1)});}]},'onRemoving':function(){const _0xd18563=_0x298b5c;_0x586c87[_0xd18563(0x2e8)]&&_0x4969c1[_0xd18563(0xe19)]&&_0x3f3df6['user'][_0xd18563(0x818)]({'id':_0x586c87[_0xd18563(0x2e8)]['id']})[_0xd18563(0x15e7)]['catch'](function(_0x214663){console['error'](_0x214663);});},'locals':{'dispositions':_0x586c87['tab'][_0x298b5c(0x16d7)],'contact':_0x586c87[_0x298b5c(0x13f7)],'call':_0x4969c1}})[_0x298b5c(0x64a)](function(_0x200cb8){const _0x4c7dbf=_0x298b5c;if(_0x200cb8){if(_0x200cb8===_0x4c7dbf(0x1f4))_0x15c383[_0x4c7dbf(0x1339)]({'title':_0x1ac2b7[_0x4c7dbf(0x2292)]('APP.INFO'),'msg':_0x1ac2b7[_0x4c7dbf(0x2292)]('DASHBOARDS.CALL_DISPOSED')+'\x20'+_0x200cb8});else{if(_0x200cb8===_0x4c7dbf(0x1a60)||_0x200cb8==='RESCHEDULE'){}else _0x15c383[_0x4c7dbf(0x1339)]({'title':_0x1ac2b7[_0x4c7dbf(0x2292)](_0x4c7dbf(0x8f5)),'msg':_0x1ac2b7[_0x4c7dbf(0x2292)](_0x4c7dbf(0x1c44))});}}for(const _0x4d11c1 in _0x472318[_0x4c7dbf(0x4e3)]['$parent'][_0x4c7dbf(0x4e3)]['vm'][_0x4c7dbf(0x266f)]){if(typeof _0x472318[_0x4c7dbf(0x4e3)]['$parent']['$parent']['vm'][_0x4c7dbf(0x266f)][_0x4d11c1]!==_0x4c7dbf(0x19a1)){const _0x39c556=_0x472318[_0x4c7dbf(0x4e3)][_0x4c7dbf(0x4e3)][_0x4c7dbf(0x4e3)]['vm'][_0x4c7dbf(0x266f)][_0x4d11c1];_0x28c606()[_0x4c7dbf(0x21c7)](_0x39c556[_0x4c7dbf(0x1a3a)],function(_0x5c6b4c){const _0x462fde=_0x4c7dbf;return _0x5c6b4c['uniqueid']===_0x4969c1[_0x462fde(0x2947)];});}}_0x472318['$parent']['vm'][_0x4c7dbf(0x283b)]();});}function _0x156bd7(_0x50cdb1){return _0x3f3df6['cmList']['getCustomFields']({'id':_0x50cdb1})['$promise']['then'](function(_0xcaa080){const _0x408d7d=a0_0x4127;_0x586c87[_0x408d7d(0x1222)][_0x408d7d(0x1559)]=_0xcaa080;})['catch'](function(_0x1b769f){const _0x3a18b2=a0_0x4127;_0x15c383[_0x3a18b2(0x1bd0)]({'title':_0x1b769f[_0x3a18b2(0x10b3)]?_0x3a18b2(0x575)+_0x1b769f[_0x3a18b2(0x10b3)]+_0x3a18b2(0x21db)+_0x1b769f[_0x3a18b2(0x2115)]:'LIST:GETCustomFields','msg':_0x1b769f[_0x3a18b2(0x1c52)]?JSON[_0x3a18b2(0x2317)](_0x1b769f[_0x3a18b2(0x1c52)]):_0x1b769f[_0x3a18b2(0x2915)]()});});}function _0x2b6d7b(_0x342f4f){return _0x342f4f===null?undefined:new Date(_0x342f4f);}function _0x502aa(_0x51f793){const _0x1fd004=_0x1e936a;try{_0x51f793['formData']=_0x47f9c8()[_0x1fd004(0x226c)](_0x51f793[_0x1fd004(0x6b9)],{'contact':_0x586c87[_0x1fd004(0x13f7)],'user':_0x586c87[_0x1fd004(0x2e8)]});}catch(_0x4f5c9b){console['error'](_0x4f5c9b);}try{_0x472318[_0x1fd004(0x4e3)]['$parent']['$parent']['vm'][_0x1fd004(0x12c0)]({'type':_0x1fd004(0xd1c),'title':_0x51f793[_0x1fd004(0x2494)],'icon':_0x1fd004(0x1e8d),'color':_0x1fd004(0xe6f),'project':_0x51f793,'contact':_0x586c87[_0x1fd004(0x13f7)]});}catch(_0x2acfbb){_0x15c383['error']({'title':_0x1fd004(0x24a9),'msg':_0x1fd004(0xe4f)+JSON['stringify'](_0x2acfbb)});}}function _0x55735a(_0x2c36e5){const _0x389b9f=_0x1e936a;return _0xc22b6f[_0x389b9f(0x1244)](_0x2c36e5);}_0x472318[_0x1e936a(0x8c7)]('$destroy',function(){});}const _0x37deb7=_0xbfb1ef;;_0x50cc49[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),'api','dispositions',_0x49a1e3(0x1ee9),'call','contact','Auth','$translate'];function _0x50cc49(_0x2cb530,_0x30ab32,_0x593323,_0x39ba26,_0xfaac0c,_0x3f990f,_0x2fa34c,_0x17de6a,_0x4634c3,_0x94093e){const _0xe843dd=_0x49a1e3,_0x3cbf1d=this;_0x3cbf1d[_0xe843dd(0x2336)]=![],_0x3cbf1d[_0xe843dd(0xbf1)]=![],_0x3cbf1d['queueCampaign']=undefined,_0x3cbf1d[_0xe843dd(0x18ae)]={'count':0x0,'rows':[]},_0x3cbf1d[_0xe843dd(0x16d7)]=_0xfaac0c[_0xe843dd(0x28b8)],_0x3cbf1d[_0xe843dd(0x1ee9)]=_0x3f990f[_0xe843dd(0x28b8)],_0x3cbf1d[_0xe843dd(0x13f7)]=_0x17de6a,_0x3cbf1d[_0xe843dd(0x17f0)]=_0x2fa34c,_0x3cbf1d[_0xe843dd(0x114c)]=_0x3cbf1d[_0xe843dd(0x17f0)]['note']||undefined,_0x3cbf1d[_0xe843dd(0x174c)]=![],_0x3cbf1d[_0xe843dd(0x1a4c)]=![],_0x3cbf1d[_0xe843dd(0x7e4)]={'minDate':new Date(),'dateTime':new Date()};_0x3cbf1d[_0xe843dd(0x17f0)]&&_0x3cbf1d[_0xe843dd(0x17f0)]['variables']&&_0x3cbf1d[_0xe843dd(0x17f0)][_0xe843dd(0x145c)][_0xe843dd(0xc55)]?(_0x3cbf1d[_0xe843dd(0x174c)]=!![],_0x39ba26['voiceQueue'][_0xe843dd(0x13fa)]({'id':_0x3cbf1d[_0xe843dd(0x17f0)][_0xe843dd(0x145c)][_0xe843dd(0xc55)]})[_0xe843dd(0x15e7)]['then'](function(_0xc6e396){const _0x469f1f=_0xe843dd;_0xc6e396&&_0xc6e396[_0x469f1f(0x28b8)]&&_0xc6e396[_0x469f1f(0x28b8)][_0x469f1f(0x1b9e)]>0x0&&(_0x3cbf1d['hasBlackLists']=!![]);})['catch'](function(_0x46218f){const _0x1b4074=_0xe843dd;_0x593323[_0x1b4074(0x1bd0)]({'title':_0x46218f[_0x1b4074(0x10b3)]?'API:'+_0x46218f['status']+_0x1b4074(0x21db)+_0x46218f[_0x1b4074(0x2115)]:'api.voiceQueue.getBlackLists','msg':_0x46218f['data']?JSON['stringify'](_0x46218f[_0x1b4074(0x1c52)]):_0x46218f[_0x1b4074(0x2915)]()});})):_0x39ba26[_0xe843dd(0x2e8)][_0xe843dd(0x1f2c)]({'id':_0x4634c3['getCurrentUser']()['id'],'fields':'id,name,dialActive','channel':_0xe843dd(0x227c),'type':_0xe843dd(0xbce),'nolimit':!![]})[_0xe843dd(0x15e7)][_0xe843dd(0x64a)](function(_0x3ce6f9){_0x3cbf1d['queueCampaigns']=_0x3ce6f9||{'count':0x0,'rows':[]};})[_0xe843dd(0x20cd)](function(_0x2d8810){const _0xd0aab5=_0xe843dd;console[_0xd0aab5(0x1bd0)](_0x2d8810);});_0x3cbf1d[_0xe843dd(0x4ea)]=_0x5e26a9,_0x3cbf1d[_0xe843dd(0x1b5a)]=_0xe2592b,_0x3cbf1d[_0xe843dd(0x25fb)]=_0x2e49a1,_0x3cbf1d[_0xe843dd(0x16cb)]=_0x1ca101,_0x3cbf1d['saveReschedule']=_0x15f08e;function _0x5e26a9(_0x3c4046){const _0x4735f9=_0xe843dd,_0x4ba8f7=_0x28c606()[_0x4735f9(0x286a)](_0x3cbf1d[_0x4735f9(0x16d7)],_0x3cbf1d[_0x4735f9(0x1ee9)],'id');switch(_0x3c4046){case _0x4735f9(0x77b):_0x3cbf1d[_0x4735f9(0x139d)]=_0x3cbf1d[_0x4735f9(0x580)],_0x3cbf1d[_0x4735f9(0x1c63)]=_0x28c606()[_0x4735f9(0x25f8)](_0x4ba8f7,[_0x4735f9(0xbb9),_0x3cbf1d['firstLevelDisposition']['id']]),_0x3cbf1d[_0x4735f9(0x2454)]=undefined,_0x3cbf1d[_0x4735f9(0x8db)]=undefined,_0x3cbf1d[_0x4735f9(0x27da)]=![];break;case'second':_0x3cbf1d['selectedDisposition']=_0x3cbf1d[_0x4735f9(0x2454)],_0x3cbf1d[_0x4735f9(0x27da)]=_0x28c606()['some'](_0x4ba8f7,[_0x4735f9(0xbb9),_0x3cbf1d['secondLevelDisposition']['id']]);break;case _0x4735f9(0x21c0):_0x3cbf1d[_0x4735f9(0x139d)]=_0x3cbf1d[_0x4735f9(0x8db)];break;}}function _0xe2592b(_0x5a283b){const _0x116634=_0xe843dd;if(_0x5a283b===_0x116634(0x26aa))_0x3cbf1d[_0x116634(0x2454)]=undefined,_0x3cbf1d[_0x116634(0x8db)]=undefined,_0x3cbf1d[_0x116634(0x139d)]=_0x3cbf1d['firstLevelDisposition'];else _0x5a283b===_0x116634(0x21c0)&&(_0x3cbf1d[_0x116634(0x8db)]=undefined,_0x3cbf1d['selectedDisposition']=_0x3cbf1d[_0x116634(0x2454)]);}function _0x422278(){const _0x31ab52=_0xe843dd,_0x2546d9=_0x3cbf1d[_0x31ab52(0x139d)]?_0x3cbf1d[_0x31ab52(0x139d)][_0x31ab52(0x2494)][_0x31ab52(0x2554)]():undefined;return{'id':_0x3cbf1d[_0x31ab52(0x17f0)][_0x31ab52(0x2947)],'disposition':_0x3cbf1d['firstLevelDisposition']?_0x3cbf1d[_0x31ab52(0x580)]['name']:null,'secondDisposition':_0x3cbf1d[_0x31ab52(0x2454)]?_0x3cbf1d[_0x31ab52(0x2454)]['name']:null,'thirdDisposition':_0x3cbf1d[_0x31ab52(0x8db)]?_0x3cbf1d[_0x31ab52(0x8db)]['name']:null,'dispositionat':_0x2ac33a()(),'amd':_0x2546d9===_0x31ab52(0x14d4),'fax':_0x2546d9===_0x31ab52(0x1d37),'blacklist':_0x2546d9===_0x31ab52(0x2712),'recallme':_0x2546d9==='recallme','UserId':_0x2546d9===_0x31ab52(0xbf1)?_0x4634c3['getCurrentUser']()['id']:null,'OwnerId':_0x4634c3[_0x31ab52(0x808)]()['id']};}function _0x440ac7(){const _0x3cbc55=_0xe843dd;return _0x39ba26[_0x3cbc55(0x642)][_0x3cbc55(0x2603)]({'id':_0x3cbf1d['call'][_0x3cbc55(0x2947)],'userDisposition':_0x3cbf1d['firstLevelDisposition']?_0x3cbf1d['firstLevelDisposition'][_0x3cbc55(0x2494)]:null,'userSecondDisposition':_0x3cbf1d[_0x3cbc55(0x2454)]?_0x3cbf1d[_0x3cbc55(0x2454)][_0x3cbc55(0x2494)]:null,'userThirdDisposition':_0x3cbf1d[_0x3cbc55(0x8db)]?_0x3cbf1d[_0x3cbc55(0x8db)][_0x3cbc55(0x2494)]:null,'note':_0x3cbf1d['note'],'UserId':_0x4634c3[_0x3cbc55(0x808)]()['id'],'ContactId':_0x3cbf1d[_0x3cbc55(0x13f7)]['id']})[_0x3cbc55(0x15e7)][_0x3cbc55(0x20cd)](function(_0xc47141){const _0x1896d2=_0x3cbc55;_0x593323[_0x1896d2(0x1bd0)]({'title':_0xc47141['status']?_0x1896d2(0x575)+_0xc47141['status']+_0x1896d2(0x21db)+_0xc47141[_0x1896d2(0x2115)]:_0x1896d2(0x737),'msg':_0xc47141['data']?JSON[_0x1896d2(0x2317)](_0xc47141[_0x1896d2(0x1c52)]):_0xc47141['toString']()});});}function _0x2f0513(){const _0x2e49a9=_0xe843dd;return _0x39ba26[_0x2e49a9(0x15bd)][_0x2e49a9(0x896)]({'uniqueid':_0x3cbf1d['call'][_0x2e49a9(0x2947)]})['$promise'][_0x2e49a9(0x64a)](function(_0xd9e23f){const _0x4f06ab=_0x2e49a9;if(_0xd9e23f)for(let _0x3cab50=0x0;_0x3cab50<_0xd9e23f[_0x4f06ab(0x28b8)][_0x4f06ab(0x1b9e)];_0x3cab50+=0x1){_0x39ba26[_0x4f06ab(0x15bd)][_0x4f06ab(0x2603)]({'id':_0xd9e23f[_0x4f06ab(0x28b8)][_0x3cab50]['id'],'userDisposition':_0x3cbf1d['firstLevelDisposition']?_0x3cbf1d[_0x4f06ab(0x580)]['name']:null,'userSecondDisposition':_0x3cbf1d['secondLevelDisposition']?_0x3cbf1d[_0x4f06ab(0x2454)][_0x4f06ab(0x2494)]:null,'userThirdDisposition':_0x3cbf1d[_0x4f06ab(0x8db)]?_0x3cbf1d[_0x4f06ab(0x8db)]['name']:null})[_0x4f06ab(0x15e7)][_0x4f06ab(0x20cd)](function(_0x1b1e0a){const _0x369fe0=_0x4f06ab;_0x593323[_0x369fe0(0x1bd0)]({'title':_0x1b1e0a[_0x369fe0(0x10b3)]?_0x369fe0(0x575)+_0x1b1e0a[_0x369fe0(0x10b3)]+_0x369fe0(0x21db)+_0x1b1e0a['statusText']:_0x369fe0(0xf8d),'msg':_0x1b1e0a[_0x369fe0(0x1c52)]?JSON[_0x369fe0(0x2317)](_0x1b1e0a[_0x369fe0(0x1c52)]):_0x1b1e0a[_0x369fe0(0x2915)]()});});}})[_0x2e49a9(0x20cd)](function(_0x1d907e){const _0x21e43f=_0x2e49a9;_0x593323['error']({'title':_0x1d907e[_0x21e43f(0x10b3)]?_0x21e43f(0x575)+_0x1d907e[_0x21e43f(0x10b3)]+_0x21e43f(0x21db)+_0x1d907e[_0x21e43f(0x2115)]:_0x21e43f(0xf8d),'msg':_0x1d907e['data']?JSON['stringify'](_0x1d907e['data']):_0x1d907e[_0x21e43f(0x2915)]()});});}function _0x1b4c68(){const _0x41d40f=_0xe843dd;return _0x39ba26['cmHopperFinal'][_0x41d40f(0x2603)](_0x422278())['$promise'][_0x41d40f(0x20cd)](function(_0x3a3e5f){const _0x15f323=_0x41d40f;_0x593323[_0x15f323(0x1bd0)]({'title':_0x3a3e5f['status']?'API:'+_0x3a3e5f['status']+'\x20-\x20'+_0x3a3e5f[_0x15f323(0x2115)]:_0x15f323(0x1e4d),'msg':_0x3a3e5f['data']?JSON['stringify'](_0x3a3e5f[_0x15f323(0x1c52)]):_0x3a3e5f[_0x15f323(0x2915)]()});});}function _0xca8d88(){const _0x505529=_0xe843dd;return _0x39ba26[_0x505529(0x827)][_0x505529(0x2603)](_0x422278())[_0x505529(0x15e7)]['catch'](function(_0x587e2d){const _0x5ad368=_0x505529;_0x593323['error']({'title':_0x587e2d[_0x5ad368(0x10b3)]?'API:'+_0x587e2d[_0x5ad368(0x10b3)]+_0x5ad368(0x21db)+_0x587e2d['statusText']:_0x5ad368(0x2312),'msg':_0x587e2d[_0x5ad368(0x1c52)]?JSON[_0x5ad368(0x2317)](_0x587e2d[_0x5ad368(0x1c52)]):_0x587e2d[_0x5ad368(0x2915)]()});});}function _0x578b00(_0x33b640){const _0x39cd95=_0xe843dd;if(_0x33b640)return _0x39ba26[_0x39cd95(0x178b)][_0x39cd95(0x13fa)]({'id':_0x33b640,'type':_0x39cd95(0xbce),'fields':'id'})[_0x39cd95(0x15e7)][_0x39cd95(0x64a)](function(_0x31ba51){const _0x31a270=_0x39cd95,_0x3e30e4=[];if(_0x31ba51&&_0x31ba51[_0x31a270(0xb90)]>0x0){for(let _0x3a22ff=0x0;_0x3a22ff<_0x31ba51['rows'][_0x31a270(0x1b9e)];_0x3a22ff+=0x1){const _0x2d3d15=angular[_0x31a270(0x289e)](_0x3cbf1d[_0x31a270(0x13f7)]);delete _0x2d3d15['id'],_0x2d3d15['ListId']=_0x31ba51[_0x31a270(0x28b8)][_0x3a22ff]['id'],_0x3e30e4[_0x31a270(0x1954)](_0x39ba26['cmContact'][_0x31a270(0x2479)](_0x2d3d15)[_0x31a270(0x15e7)]);}return _0x30ab32['all'](_0x3e30e4);}_0x593323[_0x31a270(0x1339)]({'title':_0x94093e[_0x31a270(0x2292)](_0x31a270(0x8f5)),'msg':_0x94093e[_0x31a270(0x2292)](_0x31a270(0x24e0))+'\x20'+_0x3cbf1d[_0x31a270(0x139d)]}),_0x3cbf1d['selectedDisposition']=undefined;return;})[_0x39cd95(0x64a)](function(_0x2fc249){const _0x1ee837=_0x39cd95;_0x2fc249&&_0x2cb530[_0x1ee837(0x268e)](_0x3cbf1d[_0x1ee837(0x139d)]?_0x3cbf1d[_0x1ee837(0x139d)][_0x1ee837(0x2494)][_0x1ee837(0xa3c)]():'');})['catch'](function(_0x13ef74){const _0x2a2b31=_0x39cd95;_0x593323[_0x2a2b31(0x1bd0)]({'title':_0x13ef74[_0x2a2b31(0x10b3)]?_0x2a2b31(0x575)+_0x13ef74['status']+_0x2a2b31(0x21db)+_0x13ef74[_0x2a2b31(0x2115)]:'SYSTEM:UPDATEBLACKLIST','msg':_0x13ef74[_0x2a2b31(0x1c52)]?JSON[_0x2a2b31(0x2317)](_0x13ef74[_0x2a2b31(0x1c52)]):_0x13ef74[_0x2a2b31(0x2915)]()}),_0x2cb530['hide'](_0x3cbf1d[_0x2a2b31(0x139d)]?_0x3cbf1d[_0x2a2b31(0x139d)]['name']['toUpperCase']():'');});}function _0x2e49a1(_0x415aab){const _0xf0e99e=_0xe843dd;_0x3cbf1d[_0xf0e99e(0x139d)]=_0x28c606()[_0xf0e99e(0x28d7)](_0x415aab)?_0x3cbf1d[_0xf0e99e(0x139d)]:{'name':_0x415aab};_0x415aab&&(_0x3cbf1d[_0xf0e99e(0x580)]=_0x3cbf1d[_0xf0e99e(0x139d)]);_0x3cbf1d['call'][_0xf0e99e(0x114c)]=_0x3cbf1d['note'],_0x440ac7(),_0x2f0513();_0x3cbf1d[_0xf0e99e(0x174c)]&&(_0x1b4c68(),_0xca8d88());if(!_0x28c606()['isNil'](_0x3cbf1d[_0xf0e99e(0x139d)]))switch(_0x3cbf1d[_0xf0e99e(0x139d)][_0xf0e99e(0x2494)][_0xf0e99e(0x2554)]()){case _0xf0e99e(0x2712):_0x3cbf1d[_0xf0e99e(0x17f0)]&&_0x3cbf1d[_0xf0e99e(0x17f0)][_0xf0e99e(0x145c)]&&_0x3cbf1d[_0xf0e99e(0x17f0)][_0xf0e99e(0x145c)][_0xf0e99e(0xc55)]&&_0x578b00(_0x3cbf1d[_0xf0e99e(0x17f0)]['variables'][_0xf0e99e(0xc55)]);break;case _0xf0e99e(0x10be):_0x3cbf1d['isReschedule']=!![],_0x3cbf1d[_0xf0e99e(0xbf1)]=![];break;case'recallme':_0x3cbf1d[_0xf0e99e(0x2336)]=!![],_0x3cbf1d[_0xf0e99e(0xbf1)]=!![];break;default:_0x2cb530[_0xf0e99e(0x268e)](_0x3cbf1d[_0xf0e99e(0x139d)]?_0x3cbf1d[_0xf0e99e(0x139d)]['name'][_0xf0e99e(0xa3c)]():'');}else _0x2cb530[_0xf0e99e(0x268e)](_0x3cbf1d[_0xf0e99e(0x139d)]?_0x3cbf1d[_0xf0e99e(0x139d)][_0xf0e99e(0x2494)][_0xf0e99e(0xa3c)]():'');}function _0x1ca101(){const _0x9c0f9e=_0xe843dd;_0x2cb530[_0x9c0f9e(0x101a)]();}function _0x15f08e(){const _0x3d1166=_0xe843dd;return _0x3cbf1d[_0x3d1166(0xdbd)]=!![],_0x39ba26[_0x3d1166(0x232f)][_0x3d1166(0x2479)]({'phone':_0x3cbf1d['contact'][_0x3d1166(0x267a)],'UserId':_0x3cbf1d[_0x3d1166(0xbf1)]?_0x4634c3['getCurrentUser']()['id']:null,'ContactId':_0x3cbf1d['contact']['id'],'ListId':_0x3cbf1d['contact'][_0x3d1166(0x869)],'VoiceQueueId':_0x3cbf1d['dialerCall']?Number(_0x3cbf1d['call'][_0x3d1166(0xc55)]):_0x3cbf1d[_0x3d1166(0x279)]?_0x3cbf1d[_0x3d1166(0x279)]['id']:null,'scheduledat':_0x2ac33a()(_0x3cbf1d['hopper'][_0x3d1166(0x1d8f)])['format'](_0x3d1166(0x5f7)),'priority':0x3,'recallme':_0x3cbf1d[_0x3d1166(0xbf1)],'OwnerId':_0x4634c3[_0x3d1166(0x808)]()['id']})[_0x3d1166(0x15e7)][_0x3d1166(0x64a)](function(){const _0x7022ee=_0x3d1166;_0x3cbf1d[_0x7022ee(0x174c)]&&_0x39ba26['cmHopperFinal'][_0x7022ee(0x2603)]({'id':_0x3cbf1d[_0x7022ee(0x17f0)][_0x7022ee(0x2947)],'rescheduled':!![],'rescheduledat':_0x2ac33a()(_0x3cbf1d['hopper'][_0x7022ee(0x1d8f)])[_0x7022ee(0x1c2c)](_0x7022ee(0x5f7)),'recallme':_0x3cbf1d['recallme']})[_0x7022ee(0x15e7)][_0x7022ee(0x20cd)](function(_0x296780){const _0x365872=_0x7022ee;console[_0x365872(0x9b4)](_0x296780);});})['then'](function(){const _0x27728d=_0x3d1166;_0x593323[_0x27728d(0x1339)]({'title':_0x94093e['instant']('APP.INFO'),'msg':_0x94093e[_0x27728d(0x2292)]('DASHBOARDS.CALL_DISPOSED')+'\x20'+(_0x3cbf1d[_0x27728d(0xbf1)]?_0x94093e['instant'](_0x27728d(0x19ae)):_0x94093e[_0x27728d(0x2292)](_0x27728d(0x18d5)))});})[_0x3d1166(0x20cd)](function(){const _0x5b2e0b=_0x3d1166;_0x2cb530[_0x5b2e0b(0x268e)](_0x3cbf1d['selectedDisposition']?_0x3cbf1d[_0x5b2e0b(0x139d)][_0x5b2e0b(0x2494)][_0x5b2e0b(0xa3c)]():'');})[_0x3d1166(0x988)](function(){const _0x55d9d5=_0x3d1166;_0x3cbf1d[_0x55d9d5(0xdbd)]=![],_0x2cb530['hide'](_0x3cbf1d[_0x55d9d5(0x139d)]?_0x3cbf1d['selectedDisposition'][_0x55d9d5(0x2494)]['toUpperCase']():'');});}}const _0x50ec09=_0x50cc49;;_0x4295e3[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),'$location','$mdDialog',_0x49a1e3(0x20d4),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x13f7),_0x49a1e3(0x17f0),'Auth',_0x49a1e3(0xbf1),_0x49a1e3(0x298c)];function _0x4295e3(_0x5532c7,_0x2262e1,_0x2d741d,_0x46af3c,_0x1f43a0,_0x33fe64,_0x45e6ec,_0x524ac8,_0x9ed678,_0x17cfa0,_0x29d6b0,_0x62e4f9){const _0x37162f=_0x49a1e3,_0x449423=this;_0x449423[_0x37162f(0x17f0)]=_0x9ed678,_0x449423[_0x37162f(0x13f7)]=_0x524ac8,_0x449423[_0x37162f(0x7e4)]={'minDate':new Date(),'dateTime':new Date()};function _0x4ec382(){const _0x2958ea=_0x37162f;return _0x449423[_0x2958ea(0xdbd)]=!![],_0x45e6ec[_0x2958ea(0x232f)][_0x2958ea(0x2479)]({'phone':_0x449423[_0x2958ea(0x13f7)][_0x2958ea(0x267a)],'UserId':_0x29d6b0?_0x17cfa0[_0x2958ea(0x808)]()['id']:null,'ContactId':_0x449423[_0x2958ea(0x13f7)]['id'],'ListId':_0x449423[_0x2958ea(0x13f7)][_0x2958ea(0x869)],'VoiceQueueId':Number(_0x449423[_0x2958ea(0x17f0)][_0x2958ea(0xc55)]),'scheduledat':_0x2ac33a()(_0x449423[_0x2958ea(0x7e4)][_0x2958ea(0x1d8f)])[_0x2958ea(0x1c2c)](_0x2958ea(0x5f7)),'priority':0x3,'recallme':_0x29d6b0,'OwnerId':_0x17cfa0[_0x2958ea(0x808)]()['id']})[_0x2958ea(0x15e7)][_0x2958ea(0x64a)](function(){const _0x315f0f=_0x2958ea;_0x45e6ec[_0x315f0f(0x711)]['update']({'id':_0x449423[_0x315f0f(0x17f0)][_0x315f0f(0x2947)],'rescheduled':!![],'rescheduledat':_0x2ac33a()(_0x449423['hopper']['dateTime'])['format'](_0x315f0f(0x5f7)),'recallme':_0x29d6b0})[_0x315f0f(0x15e7)];})['then'](function(){const _0x1058f4=_0x2958ea;_0x33fe64[_0x1058f4(0x1339)]({'title':_0x62e4f9[_0x1058f4(0x2292)](_0x1058f4(0x8f5)),'msg':_0x62e4f9[_0x1058f4(0x2292)](_0x1058f4(0x22db))+'\x20'+(_0x29d6b0?_0x62e4f9[_0x1058f4(0x2292)](_0x1058f4(0x19ae)):_0x62e4f9[_0x1058f4(0x2292)]('DASHBOARDS.RESCHEDULE'))}),_0x46af3c[_0x1058f4(0x268e)]();})[_0x2958ea(0x20cd)](function(_0x2845ce){const _0x3e78bb=_0x2958ea;_0x46af3c[_0x3e78bb(0x101a)](_0x2845ce);})[_0x2958ea(0x988)](function(){const _0x1a7428=_0x2958ea;_0x449423[_0x1a7428(0xdbd)]=![];});}function _0x3c1dd7(){const _0x3055bc=_0x37162f;_0x46af3c[_0x3055bc(0x101a)]();}_0x449423[_0x37162f(0x16cb)]=_0x3c1dd7,_0x449423[_0x37162f(0x1d1d)]=_0x4ec382;}const _0x18ed8b=_0x4295e3;;_0x212df0[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x298c),'api',_0x49a1e3(0x197e),_0x49a1e3(0x20d1),_0x49a1e3(0x680)];function _0x212df0(_0x3e6529,_0xa440ad,_0x304bb5,_0x4f21fa,_0x4fdc51,_0x1f6a19){const _0x102146=_0x49a1e3,_0x3e7f61=this;_0x3e7f61['callNumber']=_0x4fdc51,_0x3e7f61[_0x102146(0xc72)]=0x1;function _0x2b7e5f(){const _0x22f3ce=_0x102146;_0x304bb5['cmList'][_0x22f3ce(0x896)]({'fields':_0x22f3ce(0x1427),'nolimit':!![]})[_0x22f3ce(0x15e7)]['then'](function(_0x5293f7){const _0x5dc3cd=_0x22f3ce;_0x3e7f61['lists']=_0x28c606()[_0x5dc3cd(0x1b0a)](_0x5293f7['rows'])[_0x5dc3cd(0x161e)]('id')[_0x5dc3cd(0x239c)](_0x5dc3cd(0x2494))[_0x5dc3cd(0x1096)](),_0x304bb5['cmCustomField'][_0x5dc3cd(0x896)]({'fields':'id,alias','nolimit':!![]})[_0x5dc3cd(0x15e7)][_0x5dc3cd(0x64a)](function(_0x51f006){const _0x4360e3=_0x5dc3cd;_0x3e7f61[_0x4360e3(0x1559)]=_0x51f006['rows'],_0x3e7f61[_0x4360e3(0x197e)]=_0x28c606()['map'](_0x4f21fa,function(_0x2049dc){const _0x49dc4f=_0x4360e3;return Object['keys'](_0x2049dc)[_0x49dc4f(0x1397)](function(_0x1061bc){const _0xc980e0=_0x49dc4f;if(Number(_0x2049dc[_0x1061bc])===Number(_0x3e7f61[_0xc980e0(0x20d1)])){if(_0x1061bc[_0xc980e0(0x1273)](_0xc980e0(0x48d))){const _0x357103=_0x28c606()[_0xc980e0(0x27bc)](_0x3e7f61['customFields'],['id',Number(_0x28c606()['trimStart'](_0x1061bc,'cf_'))]);_0x2049dc['matchingField']=_0x357103?_0x357103['alias']:_0xa440ad[_0xc980e0(0x2292)](_0xc980e0(0x1c8d));}else _0x2049dc['matchingField']=_0x1061bc;}}),_0x2049dc;});});})['then'](function(){const _0x3577e8=_0x22f3ce;_0x3e7f61[_0x3577e8(0x1f95)]=_0x28c606()[_0x3577e8(0x9bb)](_0x4f21fa,0x4);})[_0x22f3ce(0x20cd)](function(_0x101da1){const _0x501641=_0x22f3ce;_0x1f6a19[_0x501641(0x1bd0)]({'title':_0x101da1[_0x501641(0x10b3)]?_0x501641(0x575)+_0x101da1[_0x501641(0x10b3)]+_0x501641(0x21db)+_0x101da1[_0x501641(0x2115)]:'api.cmList.get','msg':_0x101da1['data']?JSON[_0x501641(0x2317)](_0x101da1[_0x501641(0x1c52)][_0x501641(0x18ca)]):_0x101da1[_0x501641(0x2915)]()});});}function _0x3b9631(){const _0x39b69f=_0x102146;_0x3e6529['hide'](_0x3e7f61[_0x39b69f(0x154e)]);}_0x3e7f61[_0x102146(0x2483)]=_0x2b7e5f,_0x3e7f61[_0x102146(0x495)]=_0x3b9631;}const _0x582d9f=_0x212df0;;_0x425e54[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1239)];function _0x425e54(_0x2f538d,_0x3eb80b){const _0x14b9ed=_0x49a1e3;let _0x1bbea8=_0x3eb80b(function(){},0x3e7);_0x2f538d[_0x14b9ed(0x8c7)](_0x14b9ed(0xf28),function(){const _0x8add05=_0x14b9ed;_0x1bbea8&&(_0x3eb80b[_0x8add05(0x101a)](_0x1bbea8),_0x1bbea8=null);});}const _0x2c46fd=_0x425e54;;_0x3d4c26[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$timeout',_0x49a1e3(0x212a),'$document',_0x49a1e3(0x1fe7),_0x49a1e3(0x298c),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'socket'];function _0x3d4c26(_0x15d9f8,_0x377ec0,_0x226e68,_0x3df0c5,_0x4151f5,_0x1e8446,_0x54f6ab,_0x489c14,_0x2b4b35){const _0x5a1ced=_0x49a1e3,_0x2a2881=this;_0x2a2881[_0x5a1ced(0x16ea)]=![],_0x2a2881['refresh']=!![],_0x2a2881['disable']=[],_0x2a2881[_0x5a1ced(0x16d7)]={'count':0x0,'rows':[]},_0x2a2881[_0x5a1ced(0x1d3d)]=_0x489c14[_0x5a1ced(0x808)](),_0x2a2881[_0x5a1ced(0x1c06)]={},_0x2a2881[_0x5a1ced(0x7d3)]={'count':0x0,'rows':[]},_0x2a2881[_0x5a1ced(0x289a)]={'fields':_0x5a1ced(0x1eb4),'type':_0x5a1ced(0xbce),'queuecallerexitreason':_0x5a1ced(0x1ece)+','+_0x5a1ced(0x2037),'sort':_0x5a1ced(0x260c),'limit':0xa,'page':0x1},_0x2a2881[_0x5a1ced(0x2446)]=_0x192d46,_0x2a2881[_0x5a1ced(0xe5b)]=_0x3981a0,_0x2a2881[_0x5a1ced(0x2483)]=_0x404ee5,_0x2a2881[_0x5a1ced(0x456)]=_0x5bcd73,_0x2a2881['dispose']=_0x235394,_0x2a2881[_0x5a1ced(0x17f0)]=_0x15d9f8['$parent'][_0x5a1ced(0x4e3)][_0x5a1ced(0x4e3)][_0x5a1ced(0x4e3)]['vm'][_0x5a1ced(0x17f0)],_0x2a2881[_0x5a1ced(0x16d6)]=_0x15d9f8[_0x5a1ced(0x4e3)][_0x5a1ced(0x4e3)][_0x5a1ced(0x4e3)][_0x5a1ced(0x4e3)]['vm']['transfer'],_0x2a2881['webcall']=_0x15d9f8[_0x5a1ced(0x4e3)]['$parent'][_0x5a1ced(0x4e3)][_0x5a1ced(0x4e3)]['vm'][_0x5a1ced(0x22bb)],_0x2a2881[_0x5a1ced(0x1417)]=_0x15d9f8[_0x5a1ced(0x4e3)][_0x5a1ced(0x4e3)][_0x5a1ced(0x4e3)][_0x5a1ced(0x4e3)]['vm'][_0x5a1ced(0x1417)],_0x2a2881[_0x5a1ced(0xb3d)]=_0x22ba6b,_0x2a2881[_0x5a1ced(0xd90)]=_0x5af038,_0x2b4b35[_0x5a1ced(0x1939)]('voiceQueueReport:save',_0x79fe7d),_0x2b4b35[_0x5a1ced(0x1939)]('voiceQueueReport:update',_0x4fc7e4),_0x404ee5();function _0x404ee5(){const _0x1a6197=_0x5a1ced;return _0x54f6ab[_0x1a6197(0x168b)][_0x1a6197(0x896)]({'MailAccountId':_0x1a6197(0x8f1),'FaxAccountId':'null','SmsAccountId':_0x1a6197(0x8f1),'WhatsappAccountId':_0x1a6197(0x8f1),'OpenchannelAccountId':_0x1a6197(0x8f1),'ChatWebsiteId':_0x1a6197(0x8f1)})[_0x1a6197(0x15e7)]['then'](function(_0x51b498){const _0x52aa3b=_0x1a6197;return _0x2a2881['dispositions']=_0x51b498?_0x51b498[_0x52aa3b(0x28b8)]:[],_0x54f6ab[_0x52aa3b(0x2e8)]['getQueues']({'id':_0x489c14[_0x52aa3b(0x808)]()['id'],'fields':_0x52aa3b(0x1427),'channel':'voice','type':_0x52aa3b(0xbce),'nolimit':!![]})['$promise'];})['then'](function(_0x525cf4){const _0x1f938c=_0x1a6197;_0x2a2881['queues']=_0x525cf4||{'count':0x0,'rows':[]},_0x2a2881[_0x1f938c(0xb03)]=_0x28c606()[_0x1f938c(0x239c)](_0x28c606()['keyBy'](_0x2a2881[_0x1f938c(0x1c06)][_0x1f938c(0x28b8)],_0x1f938c(0x2494)),_0x1f938c(0x2494)),_0x2a2881[_0x1f938c(0x6f1)]=_0x2a2881['queues'][_0x1f938c(0x28b8)]?_0x28c606()['map'](_0x2a2881[_0x1f938c(0x1c06)]['rows'],_0x1f938c(0x2494))[_0x1f938c(0x9a6)](','):undefined;})[_0x1a6197(0x64a)](function(){const _0x3ec51b=_0x1a6197;_0x2a2881[_0x3ec51b(0x9fc)]=_0x19c1ab();})['catch'](function(_0x2b3518){const _0x16977b=_0x1a6197;console[_0x16977b(0x9b4)](_0x2b3518);})[_0x1a6197(0x988)](function(){const _0x215229=_0x1a6197;let _0x4fd715=_0x4151f5[_0x215229(0x294)][_0x215229(0x1ed0)]('motion2.home.abandoned.bull.calls:'+_0x2a2881[_0x215229(0x1d3d)]['id']);if(_0x4fd715)_0x4fd715=JSON[_0x215229(0x27f1)](_0x4fd715),_0x4fd715['query']&&(_0x2a2881[_0x215229(0x289a)]=_0x28c606()[_0x215229(0x14fe)](_0x4fd715[_0x215229(0x289a)],_0x28c606()[_0x215229(0xd09)](_0x2a2881['query'],[_0x215229(0x768),_0x215229(0x25bb),'page'])),_0x2a2881[_0x215229(0x289a)]=_0x28c606()[_0x215229(0xd09)](_0x2a2881[_0x215229(0x289a)],_0x215229(0xcec)));else{const _0x2090ec={'$gte':_0x2ac33a()()['startOf'](_0x215229(0x5f5))[_0x215229(0xebc)](0x0,!![])[_0x215229(0x1c2c)](),'$lte':_0x2ac33a()()[_0x215229(0x13af)](_0x215229(0x5f5))['utcOffset'](0x0,!![])[_0x215229(0x1c2c)]()};_0x2a2881['query'][_0x215229(0x2378)]=_0x2090ec;}_0x2a2881[_0x215229(0x2963)]=_0x2a2881[_0x215229(0x289a)]['filter']?!![]:![],_0x2a2881['getAbandonedCalls']();});}function _0x19c1ab(){const _0x19deb6=_0x5a1ced;return[{'name':_0x19deb6(0x1967),'key':_0x19deb6(0x2378),'type':_0x19deb6(0x232e),'label':_0x19deb6(0x2720)},{'name':_0x19deb6(0x12ad),'key':_0x19deb6(0x246c),'type':'select','label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x2a2881['currentUser']['id'],'translate':_0x19deb6(0x2368)},{'value':_0x19deb6(0x249f),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x19deb6(0x2200)}]},{'name':_0x19deb6(0xc49),'key':'queue','type':_0x19deb6(0x20ae),'label':'DASHBOARDS.SELECT_CAMPAIGN','options':_0x2a2881[_0x19deb6(0x1c06)][_0x19deb6(0x28b8)],'ngValue':_0x19deb6(0x2494),'clearAll':![]}];}function _0x192d46(){const _0xbb5135=_0x5a1ced;_0x2a2881[_0xbb5135(0x289a)][_0xbb5135(0x1e4e)]=_0x2a2881[_0xbb5135(0x289a)]['queue']||_0x2a2881[_0xbb5135(0x6f1)][_0xbb5135(0x282c)](','),_0x2a2881[_0xbb5135(0x289a)][_0xbb5135(0x24f9)]=(_0x2a2881['query']['page']-0x1)*_0x2a2881['query'][_0xbb5135(0x25bb)];const _0x348127={'query':_0x2a2881[_0xbb5135(0x289a)]};_0x4151f5[_0xbb5135(0x294)][_0xbb5135(0x15da)]('motion2.home.abandoned.bull.calls:'+_0x2a2881['currentUser']['id'],JSON['stringify'](_0x348127)),_0x2a2881[_0xbb5135(0x1713)]=_0x54f6ab['voiceQueueReport'][_0xbb5135(0x117d)](_0x2a2881[_0xbb5135(0x289a)],_0x83beff)[_0xbb5135(0x15e7)];}function _0x83beff(_0x28eef0){const _0x3552c4=_0x5a1ced;_0x2a2881[_0x3552c4(0x7d3)]=_0x28eef0||{'count':0x0,'rows':[]},_0x2a2881[_0x3552c4(0x175a)]=!![];}function _0x235394(_0xa05df2){const _0x1bb907=_0x5a1ced;_0x226e68[_0x1bb907(0xa60)]({'controller':_0x1bb907(0x1d96),'controllerAs':'vm','templateUrl':_0x1bb907(0x4df),'parent':angular[_0x1bb907(0x1f81)](_0x3df0c5[_0x1bb907(0xb49)]),'targetEvent':_0xa05df2,'resolve':{'globalDispositions':['apiResolver',function(_0x267f11){const _0x37703=_0x1bb907;return _0x267f11[_0x37703(0x1268)](_0x37703(0x10c9),{'MailAccountId':'null','FaxAccountId':_0x37703(0x8f1),'SmsAccountId':'null','WhatsappAccountId':_0x37703(0x8f1),'OpenchannelAccountId':_0x37703(0x8f1),'ChatWebsiteId':'null','ListId':_0x37703(0x8f1)});}]},'locals':{'dispositions':_0x2a2881[_0x1bb907(0x16d7)],'call':_0xa05df2}})[_0x1bb907(0x64a)](function(_0x36531d){const _0x3e4710=_0x1bb907;if(_0x36531d){_0x2a2881[_0x3e4710(0xdbd)][_0xa05df2['id']]=!![];const _0x43f308={'id':_0xa05df2['id'],'lastAssignedTo':_0xa05df2[_0x3e4710(0x107d)]?_0x2a2881[_0x3e4710(0x1d3d)][_0x3e4710(0x2494)]:null,'assigned':_0xa05df2[_0x3e4710(0x107d)],'disposition':_0x36531d[_0x3e4710(0x20da)]||null,'secondDisposition':_0x36531d['secondLevel']||null,'thirdDisposition':_0x36531d[_0x3e4710(0x842)]||null};_0x54f6ab[_0x3e4710(0x26cb)][_0x3e4710(0x2603)](_0x43f308)['$promise']['catch'](function(_0x493a4){const _0x268ec4=_0x3e4710;console[_0x268ec4(0x9b4)](_0x493a4);})[_0x3e4710(0x988)](function(){const _0x491043=_0x3e4710;_0x2a2881[_0x491043(0xdbd)][_0xa05df2['id']]=![];});}});}function _0x22ba6b(){const _0x355161=_0x5a1ced;_0x2a2881[_0x355161(0x289a)][_0x355161(0xcec)]=undefined,_0x2a2881[_0x355161(0x2963)]=![];}function _0x5af038(){const _0x448043=_0x5a1ced;_0x2a2881[_0x448043(0x2963)]=!![];}let _0x312ba3=!![],_0x3c0b43=0x1;_0x15d9f8[_0x5a1ced(0xc62)](_0x5a1ced(0xb64),function(_0x58e5a2,_0x3bd1cb){const _0x13871c=_0x5a1ced;_0x312ba3?_0x377ec0(function(){_0x312ba3=![];}):(!_0x3bd1cb&&(_0x3c0b43=_0x2a2881['query'][_0x13871c(0xc72)]),_0x58e5a2!==_0x3bd1cb&&(_0x2a2881['query']['page']=0x1),!_0x58e5a2&&(_0x2a2881['query']['page']=_0x3c0b43),_0x2a2881[_0x13871c(0x2446)]());});function _0x3981a0(){const _0x172308=_0x5a1ced;_0x2a2881[_0x172308(0x16ea)]=![],_0x2a2881[_0x172308(0x2446)]();}function _0x5bcd73(_0x405709){const _0x1399b3=_0x5a1ced;_0x405709&&(_0x2a2881['disable'][_0x405709['id']]=!![],_0x54f6ab['voiceQueueReport'][_0x1399b3(0x2603)]({'id':_0x405709['id'],'lastAssignedTo':_0x405709[_0x1399b3(0x107d)]?_0x2a2881[_0x1399b3(0x1d3d)][_0x1399b3(0x2494)]:null,'assigned':_0x405709[_0x1399b3(0x107d)]})[_0x1399b3(0x15e7)]['catch'](function(_0x2912b4){const _0x32a3f8=_0x1399b3;console[_0x32a3f8(0x9b4)](_0x2912b4);})[_0x1399b3(0x988)](function(){const _0xea58e6=_0x1399b3;_0x2a2881[_0xea58e6(0xdbd)][_0x405709['id']]=![];}));}function _0x79fe7d(_0x2b8c5f){const _0x2775bb=_0x5a1ced;_0x2a2881['queuesMap']&&_0x2b8c5f['type']===_0x2775bb(0xbce)&&_0x2a2881[_0x2775bb(0xb03)][_0x2b8c5f['queue']]&&(_0x2a2881[_0x2775bb(0x16ea)]=!![]);}function _0x4fc7e4(_0xb7ac8){const _0x2f3b2b=_0x5a1ced;if(_0xb7ac8){const _0x4f0eed=_0x28c606()[_0x2f3b2b(0xb10)](_0x2a2881[_0x2f3b2b(0x7d3)][_0x2f3b2b(0x28b8)],['id',_0xb7ac8['id']]);_0x4f0eed>=0x0&&_0x28c606()[_0x2f3b2b(0x14fe)](_0x2a2881[_0x2f3b2b(0x7d3)][_0x2f3b2b(0x28b8)][_0x4f0eed],_0xb7ac8);}}_0x15d9f8[_0x5a1ced(0x8c7)](_0x5a1ced(0xf28),function(){const _0x231c55=_0x5a1ced;_0x2b4b35[_0x231c55(0x1951)](_0x231c55(0x5ed)),_0x2b4b35[_0x231c55(0x1951)](_0x231c55(0x568));});}const _0x2e1bd2=_0x3d4c26;;_0x564d95[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x16d7),'globalDispositions',_0x49a1e3(0x17f0)];function _0x564d95(_0x157fe1,_0x5935e1,_0x3e5282,_0x54a74c){const _0x318f80=_0x49a1e3,_0xadc5f9=this;_0xadc5f9[_0x318f80(0x16d7)]=_0x5935e1['rows'],_0xadc5f9[_0x318f80(0x1ee9)]=_0x3e5282[_0x318f80(0x28b8)],_0xadc5f9[_0x318f80(0x17f0)]=_0x54a74c,_0xadc5f9['note']=_0xadc5f9['call'][_0x318f80(0x114c)]||undefined,_0xadc5f9[_0x318f80(0x4ea)]=_0x2cf797,_0xadc5f9[_0x318f80(0x1b5a)]=_0x5bd922,_0xadc5f9[_0x318f80(0x25fb)]=_0x149b36,_0xadc5f9[_0x318f80(0x16cb)]=_0x5b0f91;function _0x2cf797(_0x35b3d8){const _0x223522=_0x318f80,_0x2832be=_0x28c606()[_0x223522(0x286a)](_0xadc5f9[_0x223522(0x16d7)],_0xadc5f9['globalDispositions'],'id');switch(_0x35b3d8){case'first':_0xadc5f9[_0x223522(0x139d)]=_0xadc5f9[_0x223522(0x580)],_0xadc5f9[_0x223522(0x1c63)]=_0x28c606()[_0x223522(0x25f8)](_0x2832be,['ParentId',_0xadc5f9[_0x223522(0x580)]['id']]),_0xadc5f9[_0x223522(0x2454)]=undefined,_0xadc5f9[_0x223522(0x8db)]=undefined,_0xadc5f9[_0x223522(0x27da)]=![];break;case _0x223522(0x26aa):_0xadc5f9[_0x223522(0x139d)]=_0xadc5f9[_0x223522(0x2454)],_0xadc5f9[_0x223522(0x27da)]=_0x28c606()[_0x223522(0x25f8)](_0x2832be,[_0x223522(0xbb9),_0xadc5f9['secondLevelDisposition']['id']]);break;case'third':_0xadc5f9[_0x223522(0x139d)]=_0xadc5f9[_0x223522(0x8db)];break;}}function _0x5bd922(_0x1cb8a2){const _0x2b2c5d=_0x318f80;if(_0x1cb8a2==='second')_0xadc5f9[_0x2b2c5d(0x2454)]=undefined,_0xadc5f9['thirdLevelDisposition']=undefined,_0xadc5f9[_0x2b2c5d(0x139d)]=_0xadc5f9[_0x2b2c5d(0x580)];else _0x1cb8a2===_0x2b2c5d(0x21c0)&&(_0xadc5f9[_0x2b2c5d(0x8db)]=undefined,_0xadc5f9['selectedDisposition']=_0xadc5f9[_0x2b2c5d(0x2454)]);}function _0x149b36(){const _0x2b0586=_0x318f80;_0xadc5f9['call'][_0x2b0586(0x114c)]=_0xadc5f9[_0x2b0586(0x114c)];const _0xf12fac={'firstLevel':_0xadc5f9[_0x2b0586(0x580)]?_0xadc5f9[_0x2b0586(0x580)][_0x2b0586(0x2494)]:undefined,'secondLevel':_0xadc5f9[_0x2b0586(0x2454)]?_0xadc5f9['secondLevelDisposition']['name']:undefined,'thirdLevel':_0xadc5f9[_0x2b0586(0x8db)]?_0xadc5f9[_0x2b0586(0x8db)][_0x2b0586(0x2494)]:undefined};_0x157fe1['hide'](_0xf12fac);}function _0x5b0f91(){_0x157fe1['cancel']();}}const _0x519a1c=_0x564d95;;_0xb624b6[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x1fe7),'$translate','api',_0x49a1e3(0xdcf),'socket'];function _0xb624b6(_0x28e17b,_0x10a06d,_0x422dc8,_0x256d5a,_0x279df2,_0x1719b9,_0x4de1cb,_0x1d96a1,_0x28034c){const _0xa806c6=_0x49a1e3,_0x2aade4=this;_0x2aade4[_0xa806c6(0x16ea)]=![],_0x2aade4[_0xa806c6(0x175a)]=!![],_0x2aade4[_0xa806c6(0xdbd)]=[],_0x2aade4['dispositions']={'count':0x0,'rows':[]},_0x2aade4[_0xa806c6(0x1d3d)]=_0x1d96a1[_0xa806c6(0x808)](),_0x2aade4[_0xa806c6(0x1c06)]={},_0x2aade4['abandonedCalls']={'count':0x0,'rows':[]},_0x2aade4[_0xa806c6(0x289a)]={'fields':_0xa806c6(0x1eb4),'type':_0xa806c6(0x12a4),'queuecallerexitreason':_0xa806c6(0x1ece)+','+_0xa806c6(0x2037),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x2aade4[_0xa806c6(0x2446)]=_0x2e5b80,_0x2aade4['refreshAbandonedCalls']=_0x290311,_0x2aade4['onInit']=_0x294ada,_0x2aade4[_0xa806c6(0x456)]=_0xa880a5,_0x2aade4['dispose']=_0x2a7ccb,_0x2aade4['call']=_0x28e17b[_0xa806c6(0x4e3)][_0xa806c6(0x4e3)]['$parent'][_0xa806c6(0x4e3)]['vm'][_0xa806c6(0x17f0)],_0x2aade4[_0xa806c6(0x16d6)]=_0x28e17b['$parent'][_0xa806c6(0x4e3)]['$parent'][_0xa806c6(0x4e3)]['vm'][_0xa806c6(0x16d6)],_0x2aade4[_0xa806c6(0x22bb)]=_0x28e17b[_0xa806c6(0x4e3)]['$parent'][_0xa806c6(0x4e3)][_0xa806c6(0x4e3)]['vm'][_0xa806c6(0x22bb)],_0x2aade4[_0xa806c6(0x1417)]=_0x28e17b[_0xa806c6(0x4e3)]['$parent'][_0xa806c6(0x4e3)][_0xa806c6(0x4e3)]['vm'][_0xa806c6(0x1417)],_0x2aade4[_0xa806c6(0xb3d)]=_0x4bb57f,_0x2aade4[_0xa806c6(0xd90)]=_0x1d9a63,_0x28034c['onWithoutApply'](_0xa806c6(0x5ed),_0x57142a),_0x28034c[_0xa806c6(0x1939)](_0xa806c6(0x568),_0x1f608),_0x294ada();function _0x294ada(){const _0x4d3fd4=_0xa806c6;return _0x4de1cb['disposition'][_0x4d3fd4(0x896)]({'MailAccountId':_0x4d3fd4(0x8f1),'FaxAccountId':_0x4d3fd4(0x8f1),'SmsAccountId':_0x4d3fd4(0x8f1),'WhatsappAccountId':_0x4d3fd4(0x8f1),'OpenchannelAccountId':_0x4d3fd4(0x8f1),'ChatWebsiteId':'null'})[_0x4d3fd4(0x15e7)][_0x4d3fd4(0x64a)](function(_0x22ebcb){const _0x177c29=_0x4d3fd4;return _0x2aade4[_0x177c29(0x16d7)]=_0x22ebcb?_0x22ebcb[_0x177c29(0x28b8)]:[],_0x4de1cb[_0x177c29(0x2e8)]['getQueues']({'id':_0x1d96a1[_0x177c29(0x808)]()['id'],'fields':_0x177c29(0x1427),'channel':_0x177c29(0x227c),'type':_0x177c29(0x12a4),'nolimit':!![]})['$promise'];})[_0x4d3fd4(0x64a)](function(_0x5157a4){const _0x9adf7c=_0x4d3fd4;_0x2aade4[_0x9adf7c(0x1c06)]=_0x5157a4||{'count':0x0,'rows':[]},_0x2aade4['queuesMap']=_0x28c606()[_0x9adf7c(0x239c)](_0x28c606()[_0x9adf7c(0x161e)](_0x2aade4['queues'][_0x9adf7c(0x28b8)],_0x9adf7c(0x2494)),_0x9adf7c(0x2494)),_0x2aade4[_0x9adf7c(0x6f1)]=_0x2aade4[_0x9adf7c(0x1c06)][_0x9adf7c(0x28b8)]?_0x28c606()['map'](_0x2aade4[_0x9adf7c(0x1c06)][_0x9adf7c(0x28b8)],'name')[_0x9adf7c(0x9a6)](','):undefined;})[_0x4d3fd4(0x64a)](function(){const _0x233d32=_0x4d3fd4;_0x2aade4[_0x233d32(0x9fc)]=_0x29cad0();})[_0x4d3fd4(0x20cd)](function(_0x4afc17){const _0x651674=_0x4d3fd4;console[_0x651674(0x9b4)](_0x4afc17);})[_0x4d3fd4(0x988)](function(){const _0x54a715=_0x4d3fd4;let _0x58400e=_0x279df2[_0x54a715(0x294)][_0x54a715(0x1ed0)](_0x54a715(0x25be)+_0x2aade4['currentUser']['id']);if(_0x58400e)_0x58400e=JSON['parse'](_0x58400e),_0x58400e['query']&&(_0x2aade4[_0x54a715(0x289a)]=_0x28c606()[_0x54a715(0x14fe)](_0x58400e[_0x54a715(0x289a)],_0x28c606()['omit'](_0x2aade4[_0x54a715(0x289a)],[_0x54a715(0x768),_0x54a715(0x25bb),_0x54a715(0xc72)])),_0x2aade4[_0x54a715(0x289a)]=_0x28c606()[_0x54a715(0xd09)](_0x2aade4['query'],_0x54a715(0xcec)));else{const _0x240bc9={'$gte':_0x2ac33a()()['startOf'](_0x54a715(0x5f5))[_0x54a715(0xebc)](0x0,!![])[_0x54a715(0x1c2c)](),'$lte':_0x2ac33a()()[_0x54a715(0x13af)]('month')['utcOffset'](0x0,!![])[_0x54a715(0x1c2c)]()};_0x2aade4[_0x54a715(0x289a)][_0x54a715(0x2378)]=_0x240bc9;}_0x2aade4[_0x54a715(0x2963)]=_0x2aade4[_0x54a715(0x289a)][_0x54a715(0xcec)]?!![]:![],_0x2aade4['getAbandonedCalls']();});}function _0x29cad0(){const _0x256778=_0xa806c6;return[{'name':_0x256778(0x1967),'key':_0x256778(0x2378),'type':_0x256778(0x232e),'label':_0x256778(0x2720)},{'name':_0x256778(0x12ad),'key':'UserId','type':_0x256778(0x2926),'label':_0x256778(0x18bf),'customOptions':[{'value':_0x2aade4['currentUser']['id'],'translate':'DASHBOARDS.ME'},{'value':'\x27null\x27','translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x256778(0xc49),'key':_0x256778(0x1e4e),'type':_0x256778(0x20ae),'label':'DASHBOARDS.SELECT_QUEUE','options':_0x2aade4[_0x256778(0x1c06)][_0x256778(0x28b8)],'ngValue':_0x256778(0x2494),'clearAll':![]}];}function _0x2e5b80(){const _0x5e28b3=_0xa806c6;_0x2aade4[_0x5e28b3(0x289a)][_0x5e28b3(0x1e4e)]=_0x2aade4[_0x5e28b3(0x289a)][_0x5e28b3(0x1e4e)]||_0x2aade4[_0x5e28b3(0x6f1)][_0x5e28b3(0x282c)](','),_0x2aade4[_0x5e28b3(0x289a)][_0x5e28b3(0x24f9)]=(_0x2aade4['query'][_0x5e28b3(0xc72)]-0x1)*_0x2aade4[_0x5e28b3(0x289a)][_0x5e28b3(0x25bb)];const _0x575fe7={'query':_0x2aade4['query']};_0x279df2[_0x5e28b3(0x294)][_0x5e28b3(0x15da)](_0x5e28b3(0x25be)+_0x2aade4['currentUser']['id'],JSON[_0x5e28b3(0x2317)](_0x575fe7)),_0x2aade4[_0x5e28b3(0x1713)]=_0x4de1cb[_0x5e28b3(0x26cb)][_0x5e28b3(0x117d)](_0x2aade4['query'],_0x226984)[_0x5e28b3(0x15e7)];}function _0x226984(_0x19c92b){const _0x3e56ec=_0xa806c6;_0x2aade4[_0x3e56ec(0x7d3)]=_0x19c92b||{'count':0x0,'rows':[]},_0x2aade4['refresh']=!![];}function _0x2a7ccb(_0x4c6776){const _0x8d58fe=_0xa806c6;_0x422dc8['show']({'controller':_0x8d58fe(0x1d96),'controllerAs':'vm','templateUrl':_0x8d58fe(0x4df),'parent':angular['element'](_0x256d5a[_0x8d58fe(0xb49)]),'targetEvent':_0x4c6776,'resolve':{'globalDispositions':[_0x8d58fe(0x107c),function(_0x34f58f){const _0x1edab2=_0x8d58fe;return _0x34f58f[_0x1edab2(0x1268)](_0x1edab2(0x10c9),{'MailAccountId':_0x1edab2(0x8f1),'FaxAccountId':'null','SmsAccountId':_0x1edab2(0x8f1),'WhatsappAccountId':_0x1edab2(0x8f1),'OpenchannelAccountId':_0x1edab2(0x8f1),'ChatWebsiteId':_0x1edab2(0x8f1),'ListId':'null'});}]},'locals':{'dispositions':_0x2aade4[_0x8d58fe(0x16d7)],'call':_0x4c6776}})[_0x8d58fe(0x64a)](function(_0x5489db){const _0x5f05d9=_0x8d58fe;if(_0x5489db){_0x2aade4['disable'][_0x4c6776['id']]=!![];const _0x3b69e3={'id':_0x4c6776['id'],'lastAssignedTo':_0x4c6776[_0x5f05d9(0x107d)]?_0x2aade4[_0x5f05d9(0x1d3d)][_0x5f05d9(0x2494)]:null,'assigned':_0x4c6776[_0x5f05d9(0x107d)],'disposition':_0x5489db[_0x5f05d9(0x20da)]||null,'secondDisposition':_0x5489db['secondLevel']||null,'thirdDisposition':_0x5489db['thirdLevel']||null};_0x4de1cb[_0x5f05d9(0x26cb)][_0x5f05d9(0x2603)](_0x3b69e3)[_0x5f05d9(0x15e7)]['catch'](function(_0x1aab91){const _0x19aecd=_0x5f05d9;console[_0x19aecd(0x9b4)](_0x1aab91);})[_0x5f05d9(0x988)](function(){const _0x20bfc0=_0x5f05d9;_0x2aade4[_0x20bfc0(0xdbd)][_0x4c6776['id']]=![];});}});}function _0x4bb57f(){const _0x49cb5e=_0xa806c6;_0x2aade4[_0x49cb5e(0x289a)]['filter']=undefined,_0x2aade4[_0x49cb5e(0x2963)]=![];}function _0x1d9a63(){const _0x2795b0=_0xa806c6;_0x2aade4[_0x2795b0(0x2963)]=!![];}let _0x44a1f1=!![],_0x2750a1=0x1;_0x28e17b[_0xa806c6(0xc62)](_0xa806c6(0x2736),function(_0x4b5b20,_0x215db6){const _0x58aa74=_0xa806c6;_0x44a1f1?_0x10a06d(function(){_0x44a1f1=![];}):(!_0x215db6&&(_0x2750a1=_0x2aade4[_0x58aa74(0x289a)][_0x58aa74(0xc72)]),_0x4b5b20!==_0x215db6&&(_0x2aade4[_0x58aa74(0x289a)][_0x58aa74(0xc72)]=0x1),!_0x4b5b20&&(_0x2aade4[_0x58aa74(0x289a)][_0x58aa74(0xc72)]=_0x2750a1),_0x2aade4[_0x58aa74(0x2446)]());});function _0x290311(){const _0x48075e=_0xa806c6;_0x2aade4[_0x48075e(0x16ea)]=![],_0x2aade4[_0x48075e(0x2446)]();}function _0xa880a5(_0x1db341){const _0x1763e1=_0xa806c6;_0x1db341&&(_0x2aade4[_0x1763e1(0xdbd)][_0x1db341['id']]=!![],_0x4de1cb[_0x1763e1(0x26cb)][_0x1763e1(0x2603)]({'id':_0x1db341['id'],'lastAssignedTo':_0x1db341[_0x1763e1(0x107d)]?_0x2aade4[_0x1763e1(0x1d3d)]['name']:null,'assigned':_0x1db341[_0x1763e1(0x107d)]})[_0x1763e1(0x15e7)]['catch'](function(_0x43178a){const _0x2ff2c9=_0x1763e1;console[_0x2ff2c9(0x9b4)](_0x43178a);})[_0x1763e1(0x988)](function(){const _0x3f0de1=_0x1763e1;_0x2aade4[_0x3f0de1(0xdbd)][_0x1db341['id']]=![];}));}function _0x57142a(_0x56e356){const _0x81f605=_0xa806c6;_0x2aade4[_0x81f605(0xb03)]&&_0x56e356[_0x81f605(0x2185)]===_0x81f605(0x12a4)&&_0x2aade4[_0x81f605(0xb03)][_0x56e356[_0x81f605(0x1e4e)]]&&(_0x2aade4[_0x81f605(0x16ea)]=!![]);}function _0x1f608(_0x45b5d6){const _0x16499c=_0xa806c6;if(_0x45b5d6){const _0x13dc04=_0x28c606()[_0x16499c(0xb10)](_0x2aade4[_0x16499c(0x7d3)][_0x16499c(0x28b8)],['id',_0x45b5d6['id']]);_0x13dc04>=0x0&&_0x28c606()[_0x16499c(0x14fe)](_0x2aade4[_0x16499c(0x7d3)][_0x16499c(0x28b8)][_0x13dc04],_0x45b5d6);}}_0x28e17b['$on'](_0xa806c6(0xf28),function(){const _0x1bddce=_0xa806c6;_0x28034c[_0x1bddce(0x1951)](_0x1bddce(0x5ed)),_0x28034c[_0x1bddce(0x1951)](_0x1bddce(0x568));});}const _0x4ba0bf=_0xb624b6;;_0x579361[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$window',_0x49a1e3(0xdcf),_0x49a1e3(0x753),_0x49a1e3(0x2834)];function _0x579361(_0xe82ce5,_0x3d6a05,_0x5b7281,_0x471de9,_0x553163){const _0x2a2842=_0x49a1e3,_0x48d1cd=this;_0x48d1cd[_0x2a2842(0x2e8)]=_0x5b7281[_0x2a2842(0x808)](),_0x48d1cd['license']={},_0x48d1cd[_0x2a2842(0x1141)]={},_0x48d1cd[_0x2a2842(0x28d6)]={},_0x48d1cd['sidebar']=_0x2a2842(0x26df),_0x48d1cd[_0x2a2842(0x2834)]=_0x553163,_0x48d1cd[_0x2a2842(0x190b)]=_0x471de9[_0x2a2842(0x1054)](),_0x48d1cd['addContactTab']=_0xe82ce5['$parent']['vm'][_0x2a2842(0x251)],_0x48d1cd['addInteractionTab']=_0xe82ce5[_0x2a2842(0x4e3)]['vm'][_0x2a2842(0x1540)],_0x48d1cd[_0x2a2842(0x2354)]=_0x4b240d,_0x48d1cd[_0x2a2842(0x2016)]=_0xe8c3e6,_0x48d1cd[_0x2a2842(0x1244)]=_0x533ee9;function _0x4b240d(_0x2bfb01,_0x383110){const _0x14dc44=_0x2a2842;_0x48d1cd['license']=_0x2bfb01,_0x48d1cd[_0x14dc44(0x28d6)]=_0x383110;let _0x340876=_0x3d6a05[_0x14dc44(0x294)][_0x14dc44(0x1ed0)]('motion2.home:'+_0x48d1cd['user']['id']);if(_0x340876){try{_0x340876=JSON[_0x14dc44(0x27f1)](_0x340876),_0x48d1cd[_0x14dc44(0x14b7)]=_0x340876[_0x14dc44(0x1f86)]?_0x340876[_0x14dc44(0x1f86)]:'dashboard';}catch(_0x238181){console[_0x14dc44(0x1bd0)](_0x238181),_0x48d1cd[_0x14dc44(0x14b7)]=_0x14dc44(0x26df);}_0x48d1cd[_0x14dc44(0x14b7)]==='mail'&&_0x48d1cd[_0x14dc44(0x2834)]['init']();}}function _0x533ee9(_0x292575){const _0xdd117f=_0x2a2842;return _0x5b7281[_0xdd117f(0x1244)](_0x292575);}function _0xe8c3e6(_0x158a8b){const _0x123c63=_0x2a2842;_0x48d1cd[_0x123c63(0x14b7)]=_0x158a8b[_0x123c63(0x63e)],_0x48d1cd[_0x123c63(0x14b7)]===_0x123c63(0x1141)&&(_0x48d1cd['plugin']=_0x158a8b['stateParams'],_0x48d1cd[_0x123c63(0x2694)]=_0x158a8b['id'],_0xe82ce5[_0x123c63(0x1a2e)](_0x123c63(0x596),{'plugin':_0x48d1cd[_0x123c63(0x1141)]})),_0x3d6a05[_0x123c63(0x294)][_0x123c63(0x15da)]('motion2.home:'+_0x48d1cd[_0x123c63(0x2e8)]['id'],JSON['stringify']({'currentSidebarTab':_0x158a8b['view']}));}_0xe82ce5[_0x2a2842(0xc62)](_0x2a2842(0x228f),function(_0x1264fb){const _0x2140bd=_0x2a2842;_0x1264fb===_0x2140bd(0xc71)?_0x48d1cd[_0x2140bd(0x2834)][_0x2140bd(0x2354)]():_0x48d1cd['draftManager']['drafts']={};});}const _0x40fb79=_0x579361;;const _0x46e7cb=_0x2e4a48['p']+_0x49a1e3(0x103e);;_0xf6f9e7[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),'$mdDialog','$document',_0x49a1e3(0x1fe7),_0x49a1e3(0x298c),'api',_0x49a1e3(0xdcf),'socket','toasty'];function _0xf6f9e7(_0x4f1346,_0x2582a7,_0x55241b,_0x1cb134,_0xa2e65e,_0x27c6d6,_0x240c40,_0x5de64a,_0x27e09d,_0x369677){const _0x758bc9=_0x49a1e3,_0x51b67e=this;_0x51b67e[_0x758bc9(0x2e8)]=_0x5de64a[_0x758bc9(0x808)](),_0x51b67e[_0x758bc9(0x1947)]={},_0x51b67e['setting']={},_0x51b67e[_0x758bc9(0x16a6)]={'count':0x0,'rows':[]},_0x51b67e['chatInteractions']={'count':0x0,'rows':[]},_0x51b67e[_0x758bc9(0x289a)]={'includeAll':!![],'sort':_0x758bc9(0x260c),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x51b67e[_0x758bc9(0x1b2f)]={'fields':[{'name':'Id','column':'id','type':_0x758bc9(0x2113)},{'name':_0x758bc9(0x1c38),'column':_0x758bc9(0x1c38),'type':_0x758bc9(0x21b7),'options':{'searchFields':[_0x758bc9(0x2518),'lastName',_0x758bc9(0xd47)],'route':{'model':_0x758bc9(0xdf5),'action':'get','params':{'fields':_0x758bc9(0x3ef),'Contact':_0x758bc9(0xb96),'nolimit':!![]}},'extraOperators':[_0x758bc9(0xe87)],'excludedOperators':[_0x758bc9(0x14b5)]}},{'name':'Body','column':_0x758bc9(0xb49),'type':_0x758bc9(0x39b),'options':{'excludedOperators':[_0x758bc9(0x1743),_0x758bc9(0x14b5)]}},{'name':_0x758bc9(0x2311),'column':_0x758bc9(0x1140),'type':_0x758bc9(0x2926),'values':[{'id':0x0,'translate':_0x758bc9(0x1313)},{'id':0x1,'translate':_0x758bc9(0x5cd)}],'options':{'excludedOperators':[_0x758bc9(0x14b5)]}},{'name':'Customer\x20Ip','column':'customerIp','type':_0x758bc9(0x39b),'options':{'excludedOperators':[_0x758bc9(0x1743),_0x758bc9(0x14b5),_0x758bc9(0xf62),_0x758bc9(0x265)]}},{'name':_0x758bc9(0x12ad),'column':'User','type':_0x758bc9(0x21b7),'options':{'table':'i','route':{'model':_0x758bc9(0x2e8),'action':_0x758bc9(0x896),'params':{'role':'agent','fields':_0x758bc9(0xd53),'nolimit':!![]}},'searchFields':[_0x758bc9(0x15c),_0x758bc9(0x2494)],'extraOperators':['$substring'],'excludedOperators':[_0x758bc9(0x14b5)]}},{'name':_0x758bc9(0x16cc),'column':_0x758bc9(0xd93),'type':_0x758bc9(0x20ae),'options':{'route':{'model':_0x758bc9(0x2e8),'action':_0x758bc9(0x21a3),'params':{'id':_0x51b67e['user']['id'],'nolimit':!![]}}}},{'name':_0x758bc9(0x1178),'column':_0x758bc9(0x1e9f),'type':'multiselect','options':{'route':{'model':'tag','action':_0x758bc9(0x896),'params':{'nolimit':!![]}},'excludedOperators':[_0x758bc9(0x9eb)]}},{'name':_0x758bc9(0x1967),'column':_0x758bc9(0x2378),'type':'date','options':{'excludedOperators':['$ne']}},{'name':'Read','column':_0x758bc9(0x18d3),'type':_0x758bc9(0x2926),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x758bc9(0x13be)}],'options':{'excludedOperators':[_0x758bc9(0x14b5)]}}]},_0x51b67e['sectionColor']=_0x758bc9(0x147d),_0x51b67e[_0x758bc9(0x2483)]=_0x5207b6,_0x51b67e[_0x758bc9(0x1339)]=_0x4be3e3,_0x51b67e[_0x758bc9(0x479)]=_0x4dd402,_0x51b67e[_0x758bc9(0x672)]=_0x5a1c47,_0x51b67e[_0x758bc9(0x13a)]=_0xecf05e,_0x51b67e[_0x758bc9(0x255b)]=_0x4e4f25,_0x51b67e[_0x758bc9(0x5cb)]=_0x50a621,_0x51b67e[_0x758bc9(0x1a08)]=_0x5ad3a5,_0x51b67e[_0x758bc9(0x3ac)]=_0x3526c9,_0x51b67e[_0x758bc9(0xb3d)]=_0x557e56,_0x51b67e[_0x758bc9(0xd90)]=_0x4f764d,_0x51b67e['openAdvancedSearch']=_0x5a6ae8;function _0x5207b6(_0x547f5a,_0x4f4cc7){const _0x26fd69=_0x758bc9;return _0x51b67e[_0x26fd69(0x1947)]=_0x547f5a,_0x51b67e[_0x26fd69(0x28d6)]=_0x4f4cc7,_0x240c40[_0x26fd69(0x2e8)][_0x26fd69(0x896)+_0x28c606()[_0x26fd69(0x1766)](_0x26fd69(0x241a))]({'id':_0x51b67e['user']['id'],'nolimit':!![]})[_0x26fd69(0x15e7)][_0x26fd69(0x64a)](function(_0x298dd7){const _0x3f57d6=_0x26fd69;return _0x51b67e[_0x3f57d6(0x1aac)]=_0x298dd7||{'count':0x0,'rows':[]},_0x240c40['tag'][_0x3f57d6(0x896)]()[_0x3f57d6(0x15e7)];})[_0x26fd69(0x64a)](function(_0x44af54){_0x51b67e['tags']=_0x44af54||{'count':0x0,'rows':[]};})[_0x26fd69(0x64a)](function(){const _0x2caf92=_0x26fd69;_0x51b67e[_0x2caf92(0x9fc)]=_0x2d106c();})[_0x26fd69(0x20cd)](function(_0x556df4){const _0x19c9d8=_0x26fd69;console[_0x19c9d8(0x1bd0)](_0x556df4);})[_0x26fd69(0x988)](function(){const _0x5c3022=_0x26fd69;let _0x45613e=_0xa2e65e[_0x5c3022(0x294)][_0x5c3022(0x1ed0)]('motion2.home.chat:'+_0x51b67e[_0x5c3022(0x2e8)]['id']);if(_0x45613e)try{_0x45613e=JSON[_0x5c3022(0x27f1)](_0x45613e);if(_0x45613e[_0x5c3022(0x289a)]){_0x51b67e[_0x5c3022(0x289a)]=_0x28c606()[_0x5c3022(0x14fe)](_0x51b67e[_0x5c3022(0x289a)],_0x45613e['query']);if(_0x28c606()[_0x5c3022(0x940)](_0x51b67e['chatAccounts'][_0x5c3022(0x28b8)]))_0x51b67e[_0x5c3022(0x289a)][_0x5c3022(0xd93)]=[];else _0x28c606()[_0x5c3022(0x940)](_0x51b67e[_0x5c3022(0x289a)][_0x5c3022(0xd93)])&&(_0x51b67e[_0x5c3022(0x289a)][_0x5c3022(0xd93)]=_0x28c606()(_0x51b67e[_0x5c3022(0x1aac)]['rows'])[_0x5c3022(0x1de5)]('id')[_0x5c3022(0x840)]()['value']());_0x51b67e[_0x5c3022(0x289a)][_0x5c3022(0x768)]&&_0x51b67e['query'][_0x5c3022(0x768)][_0x5c3022(0x1b28)](_0x5c3022(0xa3f))>=0x0&&(_0x51b67e[_0x5c3022(0x289a)]=_0x28c606()[_0x5c3022(0xd09)](_0x51b67e[_0x5c3022(0x289a)],_0x5c3022(0x768))),_0x51b67e[_0x5c3022(0x289a)][_0x5c3022(0x9c5)]=!![],_0x51b67e[_0x5c3022(0x2963)]=_0x51b67e['query']['filter']?!![]:![];}}catch(_0x5842a7){console[_0x5c3022(0x1bd0)](_0x5842a7);}else{const _0x308201={'$gte':_0x2ac33a()()[_0x5c3022(0x246e)](_0x5c3022(0x5f5))['utcOffset'](0x0,!![])[_0x5c3022(0x1c2c)](),'$lte':_0x2ac33a()()['endOf']('month')[_0x5c3022(0xebc)](0x0,!![])[_0x5c3022(0x1c2c)]()},_0x34228c={'ChatWebsiteId':_0x28c606()[_0x5c3022(0x1de5)](_0x51b67e[_0x5c3022(0x1aac)]['rows'],'id'),'createdAt':_0x308201};_0x51b67e['query']=_0x28c606()[_0x5c3022(0x14fe)](_0x51b67e['query'],_0x34228c);}_0x27e09d['on'](_0x5c3022(0x1aef),_0x58d3f0),_0x27e09d['on'](_0x5c3022(0x6fb),_0x58d3f0),_0x27e09d['on'](_0x5c3022(0xc8a),_0x1f5520),_0x27e09d['on'](_0x5c3022(0x1ab6),_0x4e5c72),_0x27e09d['on'](_0x5c3022(0x2051),_0x4e5c72),_0x27e09d['on'](_0x5c3022(0x1510),_0x352e6f),_0x27e09d['on'](_0x5c3022(0x2035),_0x4f9870),_0x4dd402(_0x51b67e['query'][_0x5c3022(0xc72)]);});}function _0x2d106c(){const _0x6872cd=_0x758bc9;return[{'name':_0x6872cd(0x1967),'key':'createdAt','type':'date','label':_0x6872cd(0x2720)},{'name':_0x6872cd(0x17af),'key':_0x6872cd(0x12a6),'type':_0x6872cd(0x2926),'label':_0x6872cd(0x23f7),'customOptions':[{'value':0x0,'translate':_0x6872cd(0x13be)},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0x6872cd(0x2200)}]},{'name':_0x6872cd(0x2311),'key':'closed','type':_0x6872cd(0x2926),'label':_0x6872cd(0x110d),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0x6872cd(0x2200)}]},{'name':_0x6872cd(0x16cc),'key':_0x6872cd(0xd93),'type':_0x6872cd(0x20ae),'label':'DASHBOARDS.SELECT_ACCOUNT','options':_0x51b67e[_0x6872cd(0x1aac)]['rows'],'clearAll':![]},{'name':_0x6872cd(0x12ad),'key':_0x6872cd(0x246c),'type':'select','label':_0x6872cd(0x18bf),'customOptions':[{'value':_0x51b67e[_0x6872cd(0x2e8)]['id'],'translate':_0x6872cd(0x2368)},{'value':_0x6872cd(0x8f1),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x6872cd(0x1e9f),'key':'tag','type':_0x6872cd(0x20ae),'label':_0x6872cd(0x1208),'options':_0x51b67e['tags'][_0x6872cd(0x28b8)],'placeholder':'DASHBOARDS.TAGS'}];}function _0x4be3e3(_0x4e872c){const _0x3c91b3=_0x758bc9;_0x51b67e['searchInProgress']=![],_0x51b67e['chatInteractions']=_0x4e872c||{'count':0x0,'rows':[]};for(let _0x3de752=0x0;_0x3de752<_0x51b67e[_0x3c91b3(0x474)][_0x3c91b3(0x28b8)]['length'];_0x3de752+=0x1){_0x50a621(_0x51b67e[_0x3c91b3(0x474)][_0x3c91b3(0x28b8)][_0x3de752]);}}function _0x4dd402(_0x368b97){const _0x159022=_0x758bc9;_0x51b67e[_0x159022(0x25cb)]=!![];!_0x368b97&&(_0x51b67e[_0x159022(0x289a)][_0x159022(0xc72)]=0x1);_0x51b67e[_0x159022(0x289a)][_0x159022(0x24f9)]=(_0x51b67e[_0x159022(0x289a)]['page']-0x1)*_0x51b67e[_0x159022(0x289a)][_0x159022(0x25bb)];let _0x77173d=_0xa2e65e[_0x159022(0x294)][_0x159022(0x1ed0)](_0x159022(0x16a)+_0x51b67e[_0x159022(0x2e8)]['id']);_0x77173d=_0x77173d?JSON[_0x159022(0x27f1)](_0x77173d):{},_0x77173d[_0x159022(0x289a)]=_0x51b67e[_0x159022(0x289a)],_0xa2e65e[_0x159022(0x294)][_0x159022(0x15da)](_0x159022(0x16a)+_0x51b67e[_0x159022(0x2e8)]['id'],JSON[_0x159022(0x2317)](_0x77173d)),_0x51b67e[_0x159022(0x1713)]=_0x240c40[_0x159022(0x180c)][_0x159022(0x896)](_0x51b67e[_0x159022(0x289a)],_0x4be3e3)[_0x159022(0x15e7)];}function _0x5a1c47(_0x408159,_0x35ff60){const _0x123707=_0x758bc9;_0x4f1346[_0x123707(0x4e3)]['vm']['addInteractionTab'](_0x123707(0xf52),_0x35ff60);}function _0xecf05e(_0x79ccf1,_0x1915bf,_0xbd4233){const _0x1d4245=_0x758bc9;_0x240c40[_0x1d4245(0x180c)][_0x1d4245(0x19b3)]({'id':_0x1915bf['id'],'attachments':_0xbd4233})[_0x1d4245(0x15e7)][_0x1d4245(0x64a)](function(_0xfe884e){const _0x4f9c8b=_0x1d4245,_0x4003bb=[_0xfe884e[_0x4f9c8b(0x5a9)]],_0x97c400=_0x4f9c8b(0x1e1f)+_0x1915bf['id']+_0x4f9c8b(0x2177),_0x340b4f=new Blob(_0x4003bb,{'type':_0xfe884e[_0x4f9c8b(0x2185)]}),_0x2938a6=window[_0x4f9c8b(0x123f)][_0x4f9c8b(0x2978)]('a');_0x2938a6[_0x4f9c8b(0x1280)](_0x4f9c8b(0x25d0),URL[_0x4f9c8b(0x206)](_0x340b4f)),_0x2938a6[_0x4f9c8b(0x1280)](_0x4f9c8b(0x19b3),_0x97c400),document['body'][_0x4f9c8b(0x2661)](_0x2938a6),_0x2938a6[_0x4f9c8b(0x2668)]();})[_0x1d4245(0x20cd)](function(_0x40775c){const _0x416cde=_0x1d4245;if(_0x40775c[_0x416cde(0x1c52)]&&_0x40775c[_0x416cde(0x1c52)]['errors']&&_0x40775c[_0x416cde(0x1c52)][_0x416cde(0xbae)]['length'])for(let _0x1073a3=0x0;_0x1073a3<_0x40775c[_0x416cde(0x1c52)]['errors'][_0x416cde(0x1b9e)];_0x1073a3+=0x1){_0x369677[_0x416cde(0x1bd0)]({'title':_0x40775c[_0x416cde(0x1c52)]['errors'][_0x1073a3][_0x416cde(0x2185)],'msg':_0x40775c['data'][_0x416cde(0xbae)][_0x1073a3]['message']});}else _0x369677[_0x416cde(0x1bd0)]({'title':_0x40775c[_0x416cde(0x10b3)]?'API:'+_0x40775c[_0x416cde(0x10b3)]+_0x416cde(0x21db)+_0x40775c[_0x416cde(0x2115)]:_0x416cde(0x13a),'msg':_0x40775c[_0x416cde(0x1c52)]?JSON[_0x416cde(0x2317)](_0x40775c[_0x416cde(0x1c52)][_0x416cde(0x18ca)]):_0x40775c[_0x416cde(0x2915)]()});});}function _0x4e4f25(_0x2848d8,_0x169552){const _0x44ed15=_0x758bc9,_0x2ef957=_0x51b67e[_0x44ed15(0x2e8)][_0x44ed15(0x11a4)]||_0x51b67e[_0x44ed15(0x2e8)][_0x44ed15(0x2248)]||_0x51b67e[_0x44ed15(0x2e8)][_0x44ed15(0x292)]||_0x51b67e[_0x44ed15(0x2e8)][_0x44ed15(0x1451)]||_0x51b67e[_0x44ed15(0x2e8)][_0x44ed15(0x211)],_0x35c010=!_0x169552[_0x44ed15(0x141)][_0x44ed15(0xe19)];_0x55241b['show']({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x17dbb5,'parent':angular[_0x44ed15(0x1f81)](_0x1cb134[_0x44ed15(0xb49)]),'clickOutsideToClose':_0x35c010,'escapeToClose':_0x35c010,'onRemoving':function(){const _0x2b739e=_0x44ed15;_0x51b67e['user']&&_0x169552[_0x2b739e(0x141)][_0x2b739e(0xe19)]&&!_0x2ef957&&_0x240c40['user'][_0x2b739e(0x818)]({'id':_0x51b67e['user']['id']})[_0x2b739e(0x15e7)][_0x2b739e(0x20cd)](function(_0x6752a5){console['error'](_0x6752a5);});},'locals':{'user':_0x51b67e[_0x44ed15(0x2e8)],'channel':'chat','interaction':_0x169552}});}function _0x50a621(_0x56467f){const _0x1cd400=_0x758bc9;_0x56467f[_0x1cd400(0xfd7)]===_0x1cd400(0x166c)&&(_0x56467f['contactName']=_0x27c6d6[_0x1cd400(0x2292)](_0x1cd400(0x1c8d)));}function _0x5ad3a5(_0x5db0ff){const _0x46262=_0x758bc9;if(_0x5db0ff[_0x46262(0x246c)])return _0x5db0ff[_0x46262(0x246c)]===_0x51b67e[_0x46262(0x2e8)]['id']?_0x27c6d6[_0x46262(0x2292)]('DASHBOARDS.ME'):_0x5db0ff['Owner'][_0x46262(0x15c)]+'\x20<'+_0x5db0ff[_0x46262(0x1b06)][_0x46262(0xe2f)]+'>';return _0x27c6d6[_0x46262(0x2292)]('DASHBOARDS.NOT_ASSIGNED');}function _0x3526c9(_0x5ae3e3){const _0x3c0198=_0x758bc9;if(_0x5ae3e3['Account'])return _0x5ae3e3[_0x3c0198(0x141)]['key'];return _0x27c6d6[_0x3c0198(0x2292)](_0x3c0198(0x1c8d));}function _0x352e6f(_0x394b8b){const _0x4c212a=_0x758bc9;let _0x170c86;const _0x55116b=_0x28c606()[_0x4c212a(0x27bc)](_0x51b67e['chatInteractions'][_0x4c212a(0x28b8)],{'id':_0x394b8b[_0x4c212a(0x1f1a)]});_0x55116b&&_0x55116b[_0x4c212a(0x25d3)]&&(_0x170c86=_0x28c606()[_0x4c212a(0x27bc)](_0x55116b[_0x4c212a(0x25d3)],{'id':_0x394b8b[_0x4c212a(0x246c)]}),!_0x170c86&&_0x55116b[_0x4c212a(0x25d3)]['push']({'id':_0x394b8b[_0x4c212a(0x246c)]}));}function _0x4f9870(_0x2fb67c){const _0x5822d4=_0x758bc9,_0x45d139=_0x28c606()['find'](_0x51b67e['chatInteractions']['rows'],{'id':_0x2fb67c['ChatInteractionId']});_0x45d139&&_0x45d139['Users']&&_0x28c606()[_0x5822d4(0x21c7)](_0x45d139[_0x5822d4(0x25d3)],{'id':_0x2fb67c[_0x5822d4(0x246c)]});}function _0x58d3f0(_0xf9cf67){const _0x5f0d6f=_0x758bc9;if(_0xf9cf67){const _0x578407=_0x28c606()[_0x5f0d6f(0x27bc)](_0x51b67e['chatInteractions']['rows'],{'id':_0xf9cf67['id']});if(_0x578407){_0x578407[_0x5f0d6f(0x25d3)]=[];_0xf9cf67[_0x5f0d6f(0x1140)]&&(_0x578407[_0x5f0d6f(0x18d3)]=0x0);if(_0x51b67e[_0x5f0d6f(0x289a)][_0x5f0d6f(0x768)]){const _0x4f9fbc=_0x28c606()['startsWith'](_0x51b67e['query'][_0x5f0d6f(0x768)],'-')?_0x5f0d6f(0x19d0):_0x5f0d6f(0x2449);_0x51b67e[_0x5f0d6f(0x474)][_0x5f0d6f(0x28b8)]=_0x28c606()['orderBy'](_0x51b67e[_0x5f0d6f(0x474)][_0x5f0d6f(0x28b8)],_0x28c606()[_0x5f0d6f(0x17cf)](_0x51b67e[_0x5f0d6f(0x289a)][_0x5f0d6f(0x768)],'-'),_0x4f9fbc);}_0x28c606()['merge'](_0x578407,_0x28c606()['pick'](_0xf9cf67,_0x28c606()[_0x5f0d6f(0x1ec6)](_0x578407)));}else _0x4dd402(_0x51b67e[_0x5f0d6f(0x289a)][_0x5f0d6f(0xc72)]);}}function _0x1f5520(_0x2d1b8c){const _0x4e406=_0x758bc9;if(_0x2d1b8c){const _0x3be4fe=_0x28c606()[_0x4e406(0x27bc)](_0x51b67e[_0x4e406(0x474)][_0x4e406(0x28b8)],{'id':_0x2d1b8c['id']});_0x3be4fe&&(_0x3be4fe[_0x4e406(0x1178)]=_0x2d1b8c[_0x4e406(0x16a6)]||[],_0x28c606()[_0x4e406(0x14fe)](_0x3be4fe,_0x28c606()[_0x4e406(0x27bb)](_0x2d1b8c,_0x28c606()[_0x4e406(0x1ec6)](_0x3be4fe))));}}function _0x4e5c72(_0x2f3d11){const _0x55245e=_0x758bc9;if(_0x2f3d11&&!_0x2f3d11[_0x55245e(0xbf2)]){const _0x53513b=_0x28c606()[_0x55245e(0x27bc)](_0x51b67e[_0x55245e(0x474)][_0x55245e(0x28b8)],{'id':_0x2f3d11['ChatInteractionId']});if(_0x53513b){const _0x5535d4=_0x28c606()['find'](_0x53513b[_0x55245e(0x17af)],{'id':_0x2f3d11['id']});_0x5535d4?_0x28c606()[_0x55245e(0x14fe)](_0x5535d4,_0x28c606()[_0x55245e(0x27bb)](_0x2f3d11,_0x28c606()[_0x55245e(0x1ec6)](_0x5535d4))):(_0x28c606()[_0x55245e(0x28d7)](_0x53513b[_0x55245e(0x17af)])&&(_0x53513b[_0x55245e(0x17af)]={'count':0x0}),!_0x2f3d11[_0x55245e(0x12a6)]&&(_0x53513b[_0x55245e(0x17af)][_0x55245e(0xb90)]+=0x1));}}}function _0x557e56(){const _0x2fc6e1=_0x758bc9;_0x51b67e[_0x2fc6e1(0x2963)]=![];}function _0x4f764d(){const _0x568146=_0x758bc9;_0x51b67e[_0x568146(0x2963)]=!![];}function _0x5a6ae8(){const _0x4412e6=_0x758bc9;_0x51b67e[_0x4412e6(0x2963)]=![],_0x55241b[_0x4412e6(0xa60)]({'controller':_0x4412e6(0x271c),'controllerAs':'vm','templateUrl':_0x46e7cb,'parent':angular[_0x4412e6(0x1f81)](_0x1cb134[_0x4412e6(0xb49)]),'clickOutsideToClose':![],'locals':{'color':_0x51b67e[_0x4412e6(0x18a0)],'fields':_0x51b67e[_0x4412e6(0x1b2f)][_0x4412e6(0xf26)],'storagePath':_0x4412e6(0x1d4e)},'fullscreen':!![]})[_0x4412e6(0x64a)](function(_0x18f494){const _0x8ec8a=_0x4412e6;_0x51b67e[_0x8ec8a(0x289a)][_0x8ec8a(0xb58)]=_0x18f494===![]?undefined:_0x18f494;if(_0x51b67e[_0x8ec8a(0x289a)][_0x8ec8a(0xb58)]||_0x18f494===![])_0x4dd402();})[_0x4412e6(0x20cd)](function(_0x44b004){const _0x29ccc1=_0x4412e6;_0x369677[_0x29ccc1(0x1bd0)]({'title':_0x29ccc1(0x2440),'msg':_0x44b004['data']?JSON[_0x29ccc1(0x2317)](_0x44b004[_0x29ccc1(0x1c52)][_0x29ccc1(0x18ca)]):_0x44b004[_0x29ccc1(0x2915)]()});});}let _0x181000=!![],_0x2d77c6=0x1;_0x4f1346[_0x758bc9(0xc62)](_0x758bc9(0x1cb9),function(_0x53d49e,_0x263593){const _0x12d877=_0x758bc9;_0x181000?_0x2582a7(function(){_0x181000=![];}):(!_0x263593&&(_0x2d77c6=_0x51b67e['query'][_0x12d877(0xc72)]),_0x53d49e!==_0x263593&&(_0x51b67e[_0x12d877(0x289a)][_0x12d877(0xc72)]=0x1),!_0x53d49e&&(_0x51b67e[_0x12d877(0x289a)][_0x12d877(0xc72)]=_0x2d77c6),_0x4dd402(_0x51b67e[_0x12d877(0x289a)]['page']));}),_0x4f1346['$on'](_0x758bc9(0xf28),function(){const _0x4f602e=_0x758bc9;_0x27e09d[_0x4f602e(0x1951)](_0x4f602e(0x1ab6)),_0x27e09d[_0x4f602e(0x1951)](_0x4f602e(0x2051)),_0x27e09d[_0x4f602e(0x1951)]('chatInteraction:save'),_0x27e09d[_0x4f602e(0x1951)](_0x4f602e(0xc8a)),_0x27e09d[_0x4f602e(0x1951)](_0x4f602e(0x6fb)),_0x27e09d[_0x4f602e(0x1951)](_0x4f602e(0x1510)),_0x27e09d[_0x4f602e(0x1951)](_0x4f602e(0x2035));});}const _0x4c9d76=_0xf6f9e7;;_0x2863e9['$inject']=['$document',_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1fe7),_0x49a1e3(0xdcf),'api',_0x49a1e3(0x680)];function _0x2863e9(_0x48f4c4,_0x3a5bd9,_0x5e2e27,_0x22ad28,_0x3472ca,_0x4e33f7,_0x13190f,_0x5b5245){const _0x2747d9=_0x49a1e3,_0x3d4f74=this;_0x3d4f74[_0x2747d9(0x1d3d)]=_0x4e33f7['getCurrentUser'](),_0x3d4f74[_0x2747d9(0x974)]={},_0x3d4f74[_0x2747d9(0x197e)]={'count':0x0,'rows':[]},_0x3d4f74[_0x2747d9(0x16a6)]={'count':0x0,'rows':[]},_0x3d4f74[_0x2747d9(0x289a)]={'includeAll':!![],'sort':_0x2747d9(0x260c),'limit':0xa,'page':0x1},_0x3d4f74[_0x2747d9(0x1b2f)]={'fields':[]},_0x3d4f74[_0x2747d9(0x18a0)]=_0x2747d9(0x224),_0x3d4f74[_0x2747d9(0x199a)]=_0x1004a0,_0x3d4f74[_0x2747d9(0x43d)]=_0x3a0c40,_0x3d4f74[_0x2747d9(0x2866)]=_0x36bc7f,_0x3d4f74[_0x2747d9(0x17df)]=_0x25afd8,_0x3d4f74[_0x2747d9(0x25cf)]=_0x58b45b,_0x3d4f74[_0x2747d9(0x17f0)]=_0x3a5bd9[_0x2747d9(0x4e3)]['vm'][_0x2747d9(0x17f0)],_0x3d4f74[_0x2747d9(0x2483)]=_0x1d3b72,_0x3d4f74[_0x2747d9(0xb3d)]=_0xc72cc9,_0x3d4f74[_0x2747d9(0xd90)]=_0x238a4a,_0x3d4f74['openAdvancedSearch']=_0x21201c;function _0x1d3b72(){const _0x17d650=_0x2747d9;_0x13190f[_0x17d650(0x2e8)]['getLists']({'id':_0x3d4f74[_0x17d650(0x1d3d)]['id'],'fields':_0x17d650(0x19f2),'sort':_0x17d650(0x2494),'nolimit':!![]})[_0x17d650(0x15e7)][_0x17d650(0x64a)](function(_0x2e0edd){const _0x415a92=_0x17d650;return _0x3d4f74[_0x415a92(0x974)]=_0x2e0edd||{'count':0x0,'rows':[]},_0x3d4f74['listsMap']=_0x28c606()['keyBy'](_0x3d4f74[_0x415a92(0x974)][_0x415a92(0x28b8)],'id'),_0x13190f[_0x415a92(0xac8)][_0x415a92(0x896)]()[_0x415a92(0x15e7)];})['then'](function(_0x5da866){const _0x4ef9e8=_0x17d650;_0x3d4f74[_0x4ef9e8(0x16a6)]=_0x5da866||{'count':0x0,'rows':[]};})[_0x17d650(0x64a)](function(){const _0x2607b2=_0x17d650;_0x3d4f74[_0x2607b2(0x9fc)]=_0x29d542();})['catch'](function(_0xdde1b){const _0x32922f=_0x17d650;console[_0x32922f(0x1bd0)](_0xdde1b);})[_0x17d650(0x988)](function(){const _0x189796=_0x17d650;let _0x445e15=_0x3472ca[_0x189796(0x294)][_0x189796(0x1ed0)](_0x189796(0x1522)+_0x3d4f74['currentUser']['id']);if(_0x445e15)try{_0x445e15=JSON['parse'](_0x445e15);if(_0x445e15[_0x189796(0x289a)]){_0x3d4f74['query']=_0x28c606()['merge'](_0x3d4f74[_0x189796(0x289a)],_0x445e15[_0x189796(0x289a)]);if(_0x28c606()['isEmpty'](_0x3d4f74[_0x189796(0x974)][_0x189796(0x28b8)]))_0x3d4f74[_0x189796(0x289a)][_0x189796(0x869)]=[];else _0x28c606()[_0x189796(0x940)](_0x3d4f74['query'][_0x189796(0x869)])&&(_0x3d4f74[_0x189796(0x289a)][_0x189796(0x869)]=_0x28c606()(_0x3d4f74['lists'][_0x189796(0x28b8)])['map']('id')[_0x189796(0x840)]()[_0x189796(0x1096)]());}}catch(_0x625f7c){console['log'](_0x625f7c);}else _0x3d4f74[_0x189796(0x289a)][_0x189796(0x869)]=_0x28c606()['map'](_0x3d4f74[_0x189796(0x974)][_0x189796(0x28b8)],'id');_0x3d4f74[_0x189796(0x2963)]=_0x3d4f74[_0x189796(0x289a)]['filter']?!![]:![],_0x1004a0();});}function _0x29d542(){const _0x5d5cd4=_0x2747d9;return[{'name':_0x5d5cd4(0x177c),'key':_0x5d5cd4(0x869),'type':_0x5d5cd4(0x20ae),'label':'CONTACTMANAGER.SELECT_LIST','options':_0x3d4f74['lists'][_0x5d5cd4(0x28b8)],'clearAll':![]},{'name':'Tag','key':'tag','type':_0x5d5cd4(0x20ae),'label':'DASHBOARDS.SELECT_TAG','options':_0x3d4f74[_0x5d5cd4(0x16a6)]['rows'],'placeholder':_0x5d5cd4(0x6a6)}];}function _0x43a65d(_0x22be74){const _0x5b92bb=_0x2747d9;_0x3d4f74['searchInProgress']=![],_0x3d4f74[_0x5b92bb(0x197e)]=_0x22be74||{'count':0x0,'rows':[]};}function _0x1004a0(_0xc9a059){const _0x4013d4=_0x2747d9;_0x3d4f74['searchInProgress']=!![],_0x25634f();!_0xc9a059&&(_0x3d4f74[_0x4013d4(0x289a)][_0x4013d4(0xc72)]=0x1);_0x3d4f74[_0x4013d4(0x289a)][_0x4013d4(0x24f9)]=(_0x3d4f74[_0x4013d4(0x289a)]['page']-0x1)*_0x3d4f74[_0x4013d4(0x289a)]['limit'];let _0x5bfa83=_0x3472ca[_0x4013d4(0x294)][_0x4013d4(0x1ed0)](_0x4013d4(0x1522)+_0x3d4f74[_0x4013d4(0x1d3d)]['id']);_0x5bfa83=_0x5bfa83?JSON[_0x4013d4(0x27f1)](_0x5bfa83):{},_0x5bfa83['query']=_0x3d4f74[_0x4013d4(0x289a)],_0x3472ca[_0x4013d4(0x294)][_0x4013d4(0x15da)]('motion2.home.contacts:'+_0x3d4f74['currentUser']['id'],JSON['stringify'](_0x5bfa83)),_0x3d4f74[_0x4013d4(0x1713)]=_0x13190f[_0x4013d4(0xdf5)][_0x4013d4(0x896)](_0x3d4f74['query'],_0x43a65d)[_0x4013d4(0x15e7)];}function _0x58b45b(_0x4b062e){const _0x299c98=_0x2747d9;return _0x13190f['cmContact'][_0x299c98(0x896)]({'id':_0x4b062e})['$promise']['then'](function(_0x168dab){const _0x3ef78c=_0x299c98;_0x3a5bd9[_0x3ef78c(0x4e3)]['vm'][_0x3ef78c(0x251)](_0x168dab);});}function _0x3a0c40(){_0x1004a0();}function _0x25afd8(_0x5ad1ed,_0x5d86c3){const _0x24d7dc=_0x2747d9;_0x22ad28[_0x24d7dc(0xa60)]({'controller':'DuplicateContactDialogController','controllerAs':'vm','templateUrl':_0x4d4648,'parent':angular[_0x24d7dc(0x1f81)](_0x48f4c4[_0x24d7dc(0xb49)]),'targetEvent':_0x5ad1ed,'clickOutsideToClose':!![],'resolve':{'contact':[_0x24d7dc(0x107c),function(_0x1e068a){const _0x4a4e07=_0x24d7dc;return _0x1e068a[_0x4a4e07(0x1268)](_0x4a4e07(0x1188),{'id':_0x5d86c3['id']});}],'lists':[_0x24d7dc(0x107c),function(_0xf62bcf){const _0x3771f8=_0x24d7dc;return _0xf62bcf[_0x3771f8(0x1268)](_0x3771f8(0x258),{'id':_0x3d4f74[_0x3771f8(0x1d3d)]['id'],'fields':_0x3771f8(0x1427)});}]},'locals':{'contacts':_0x3d4f74[_0x24d7dc(0x197e)][_0x24d7dc(0x28b8)]}});}function _0x36bc7f(_0x4cac11,_0x2274e8){const _0x1d1033=_0x2747d9;_0x22ad28[_0x1d1033(0xa60)]({'controller':'MergeContactDialogController','controllerAs':'vm','templateUrl':_0x32a305,'parent':angular[_0x1d1033(0x1f81)](_0x48f4c4[_0x1d1033(0xb49)]),'targetEvent':_0x4cac11,'clickOutsideToClose':!![],'resolve':{'contact':[_0x1d1033(0x107c),function(_0x2b70c0){const _0x343863=_0x1d1033;return _0x2b70c0[_0x343863(0x1268)]('cmContact@get',{'id':_0x2274e8['id']});}],'lists':[_0x1d1033(0x107c),function(_0x287cef){const _0x85b7ea=_0x1d1033;return _0x287cef['resolve'](_0x85b7ea(0x258),{'id':_0x3d4f74[_0x85b7ea(0x1d3d)]['id'],'fields':_0x85b7ea(0x1427)});}]},'locals':{'contacts':_0x3d4f74[_0x1d1033(0x197e)][_0x1d1033(0x28b8)]}});}function _0xc72cc9(){_0x3d4f74['isSearchBarVisible']=![];}function _0x238a4a(){const _0x20ea17=_0x2747d9;_0x3d4f74[_0x20ea17(0x2963)]=!![];}function _0x25634f(){const _0x50439b=_0x2747d9;return _0x13190f[_0x50439b(0xdf5)][_0x50439b(0xa81)]({'id':_0x3d4f74[_0x50439b(0x289a)][_0x50439b(0x869)]})[_0x50439b(0x15e7)][_0x50439b(0x64a)](function(_0x38bd1f){const _0x43985b=_0x50439b;return _0x28c606()(_0x38bd1f[_0x43985b(0x14f8)]())[_0x43985b(0xd09)](_0x43985b(0x246c))[_0x43985b(0x2146)]()[_0x43985b(0x1de5)](function(_0x2d38f2){return _0x3723b2(_0x2d38f2);})[_0x43985b(0x1096)]();})[_0x50439b(0x64a)](function(_0x44e16f){const _0x2462f1=_0x50439b;_0x3d4f74['advancedSearch'][_0x2462f1(0xf26)]=_0x44e16f;const _0x2ed540={'name':_0x2462f1(0x1178),'column':_0x2462f1(0x1e9f),'type':_0x2462f1(0x20ae),'options':{'route':{'model':_0x2462f1(0xac8),'action':_0x2462f1(0x896),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}};let _0x3e2145=_0x28c606()[_0x2462f1(0xb10)](_0x44e16f,function(_0x25d200){const _0x2063f9=_0x2462f1;return _0x28c606()[_0x2063f9(0x1273)](_0x25d200['column'],_0x2063f9(0x48d));})||_0x44e16f[_0x2462f1(0x1b9e)]-0x1;if(_0x3e2145<0x0)_0x3e2145=_0x44e16f[_0x2462f1(0x1b9e)];_0x3d4f74[_0x2462f1(0x1b2f)][_0x2462f1(0xf26)][_0x2462f1(0x18f0)](_0x3e2145,0x0,_0x2ed540);})[_0x50439b(0x20cd)](function(_0xa3d4a3){const _0x10190d=_0x50439b;_0x5b5245['error']({'title':_0xa3d4a3['status']?'API:'+_0xa3d4a3[_0x10190d(0x10b3)]+_0x10190d(0x21db)+_0xa3d4a3[_0x10190d(0x2115)]:_0x10190d(0x2870),'msg':_0xa3d4a3[_0x10190d(0x1c52)]?JSON[_0x10190d(0x2317)](_0xa3d4a3[_0x10190d(0x1c52)][_0x10190d(0x18ca)]):_0xa3d4a3[_0x10190d(0x2915)]()});});}function _0x3723b2(_0x488e4a){const _0x15aa87=_0x2747d9,_0x3c7eab={'name':_0x28c606()['startCase'](_0x488e4a[_0x15aa87(0x620)]),'column':_0x488e4a[_0x15aa87(0x210b)],'options':{}};if(_0x488e4a[_0x15aa87(0x1ad6)])switch(_0x488e4a[_0x15aa87(0x1ad6)][_0x15aa87(0x2185)]){case _0x15aa87(0x39b):_0x3c7eab[_0x15aa87(0x2185)]=_0x15aa87(0x39b);break;case _0x15aa87(0x2926):_0x3c7eab['type']='multiselect',_0x3c7eab[_0x15aa87(0x2146)]=_0x28c606()[_0x15aa87(0x1de5)](JSON['parse'](_0x488e4a[_0x15aa87(0x1ad6)][_0x15aa87(0x2146)]),function(_0x81b12,_0xed629){const _0x30a2cb=_0x15aa87;return{'id':_0xed629,'name':_0x81b12[_0x30a2cb(0x1096)],'value':_0x81b12[_0x30a2cb(0x1096)]};}),_0x3c7eab['options']['field']=_0x15aa87(0x2494);break;case _0x15aa87(0x2f6):_0x3c7eab['type']=_0x15aa87(0x2926),_0x3c7eab[_0x15aa87(0x2146)]=[{'id':0x1,'translate':_0x15aa87(0x194b)},{'id':0x0,'translate':_0x15aa87(0x6f3)}],_0x3c7eab[_0x15aa87(0x59e)][_0x15aa87(0xce9)]=['$ne'];break;case _0x15aa87(0x2113):_0x3c7eab['type']=_0x15aa87(0x2113);break;case'datetime':_0x3c7eab[_0x15aa87(0x2185)]='date';break;}else switch(_0x488e4a[_0x15aa87(0x210b)]){case _0x15aa87(0x20f1):_0x3c7eab['type']=_0x15aa87(0x232e);break;case'CompanyId':_0x3c7eab[_0x15aa87(0x2494)]='Company',_0x3c7eab[_0x15aa87(0x2185)]='autocomplete',_0x3c7eab[_0x15aa87(0x59e)][_0x15aa87(0xb5a)]={'model':_0x15aa87(0x2625),'action':'get','params':{'fields':_0x15aa87(0x1427),'nolimit':!![]}},_0x3c7eab['options'][_0x15aa87(0xbdf)]=['name'],_0x3c7eab[_0x15aa87(0x59e)][_0x15aa87(0xce9)]=[_0x15aa87(0x14b5)];break;case _0x15aa87(0x869):_0x3c7eab[_0x15aa87(0x2494)]=_0x15aa87(0x177c),_0x3c7eab[_0x15aa87(0x2185)]=_0x15aa87(0x21b7),_0x3c7eab[_0x15aa87(0x59e)][_0x15aa87(0xb5a)]={'model':_0x15aa87(0x2e8),'action':_0x15aa87(0x7aa),'params':{'id':_0x3d4f74['currentUser']['id'],'fields':'id,name','nolimit':!![]}},_0x3c7eab[_0x15aa87(0x59e)][_0x15aa87(0xbdf)]=['name'],_0x3c7eab[_0x15aa87(0x59e)]['excludedOperators']=['$ne'];break;default:if(_0x28c606()[_0x15aa87(0x68a)](_0x488e4a[_0x15aa87(0x2185)][_0x15aa87(0x2554)](),_0x15aa87(0x23cf)))_0x3c7eab['type']='number';else _0x28c606()[_0x15aa87(0x68a)](_0x488e4a['type']['toLowerCase'](),_0x15aa87(0x232e))?_0x3c7eab[_0x15aa87(0x2185)]=_0x15aa87(0x232e):_0x3c7eab[_0x15aa87(0x2185)]=_0x15aa87(0x39b);break;}return _0x3c7eab;}function _0x21201c(){const _0x158a4a=_0x2747d9;_0x3d4f74[_0x158a4a(0x2963)]=![],_0x22ad28[_0x158a4a(0xa60)]({'controller':_0x158a4a(0x271c),'controllerAs':'vm','templateUrl':_0x46e7cb,'parent':angular['element'](_0x48f4c4['body']),'clickOutsideToClose':![],'locals':{'color':_0x3d4f74['sectionColor'],'fields':_0x3d4f74['advancedSearch']['fields'],'storagePath':'home.contacts'},'fullscreen':!![]})[_0x158a4a(0x64a)](function(_0xb5819c){const _0x39b1e9=_0x158a4a;_0x3d4f74['query']['search']=_0xb5819c===![]?undefined:_0xb5819c;if(_0x3d4f74['query'][_0x39b1e9(0xb58)]||_0xb5819c===![])_0x1004a0();})[_0x158a4a(0x20cd)](function(_0x57682d){const _0x522b21=_0x158a4a;_0x5b5245[_0x522b21(0x1bd0)]({'title':_0x522b21(0x2440),'msg':_0x57682d[_0x522b21(0x1c52)]?JSON[_0x522b21(0x2317)](_0x57682d['data'][_0x522b21(0x18ca)]):_0x57682d[_0x522b21(0x2915)]()});});}let _0x4db779=!![],_0x314324=0x1;_0x3a5bd9['$watch'](_0x2747d9(0x1cb9),function(_0x17189d,_0x4167af){const _0x200673=_0x2747d9;_0x4db779?_0x5e2e27(function(){_0x4db779=![];}):(!_0x4167af&&(_0x314324=_0x3d4f74['query']['page']),_0x17189d!==_0x4167af&&(_0x3d4f74[_0x200673(0x289a)]['page']=0x1),!_0x17189d&&(_0x3d4f74[_0x200673(0x289a)]['page']=_0x314324),_0x1004a0());});}const _0x401c3c=_0x2863e9;;_0x106cf1['$inject']=[_0x49a1e3(0x1674),'$interval'];function _0x106cf1(_0x2bc2fd,_0x402ae9){const _0x30a6a5=_0x49a1e3;let _0x2d3fcf=_0x402ae9(function(){},0x3e7);_0x2bc2fd[_0x30a6a5(0x8c7)]('$destroy',function(){const _0x40c925=_0x30a6a5;_0x2d3fcf&&(_0x402ae9[_0x40c925(0x101a)](_0x2d3fcf),_0x2d3fcf=null);});}const _0x5ee4bf=_0x106cf1;;_0x2b1691[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),'$mdDialog','$document',_0x49a1e3(0x1fe7),_0x49a1e3(0x298c),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x633)];function _0x2b1691(_0xc6cb7e,_0x70047d,_0x291dbf,_0x41e070,_0x203656,_0x117222,_0x224807,_0x45fc0e,_0xb4a250){const _0x42beee=_0x49a1e3,_0x3b8ec9=this,_0x21a725=['type',_0x42beee(0x188f),_0x42beee(0xa69),_0x42beee(0x11b3)];_0x3b8ec9[_0x42beee(0x2dc)]={},_0x3b8ec9[_0x42beee(0x2245)]=0x0,_0x3b8ec9[_0x42beee(0xd9c)]={},_0x3b8ec9[_0x42beee(0x137a)]={},_0x3b8ec9[_0x42beee(0x832)]={},_0x3b8ec9[_0x42beee(0x143b)]={},_0x3b8ec9[_0x42beee(0x709)]=[],_0x3b8ec9['load']=!![],_0x3b8ec9[_0x42beee(0x289a)]={'id':_0x45fc0e['getCurrentUser']()['id'],'fields':_0x42beee(0x22d0),'channel':_0x42beee(0x227c),'type':_0x42beee(0xbce),'limit':0xa,'page':0x1},_0x3b8ec9[_0x42beee(0x2470)]={'limit':0xa,'page':0x1},_0x3b8ec9[_0x42beee(0x1339)]=_0xd1f791,_0x3b8ec9[_0x42beee(0x137a)]=_0x389b01,_0x3b8ec9[_0x42beee(0x14ae)]=_0x58c4a2,_0x3b8ec9[_0x42beee(0x1ecf)]=_0x40bc4e,_0x3b8ec9[_0x42beee(0x1179)]=_0x1f02fd,_0x3b8ec9[_0x42beee(0xf93)]=_0x315be7,_0x3b8ec9[_0x42beee(0x291f)]=_0x189658,_0x3b8ec9[_0x42beee(0x85c)]=_0x38132d,_0x3b8ec9[_0x42beee(0x85d)]=_0x4d5ab1,_0xb4a250['onWithoutApply'](_0x42beee(0xb9c),_0x3b8ec9[_0x42beee(0x1ecf)]),_0xb4a250[_0x42beee(0x1939)](_0x42beee(0xed5),_0x3b8ec9['onSaveChannel']),_0xb4a250['onWithoutApply'](_0x42beee(0x44b),_0x3b8ec9[_0x42beee(0xf93)]),_0xb4a250[_0x42beee(0x1939)](_0x42beee(0x289d),_0x3b8ec9[_0x42beee(0xf93)]),_0xb4a250[_0x42beee(0x1939)](_0x42beee(0x2007),_0x3b8ec9[_0x42beee(0x291f)]),_0xb4a250[_0x42beee(0x1939)](_0x42beee(0x2526),_0x3b8ec9[_0x42beee(0x85d)]),_0xb4a250[_0x42beee(0x1939)](_0x42beee(0x4ff),_0x3b8ec9['onUpdateVoiceQueue']),_0x224807[_0x42beee(0x19bd)][_0x42beee(0x137a)]()['$promise'][_0x42beee(0x64a)](function(_0x3e084f){const _0x1b8499=_0x42beee;return _0x3b8ec9['rpcVoiceQueues']=_0x3e084f?_0x28c606()[_0x1b8499(0x161e)](_0x3e084f[_0x1b8499(0x28b8)]?_0x3e084f[_0x1b8499(0x28b8)]:[],'id'):{},_0x224807[_0x1b8499(0x19bd)][_0x1b8499(0x1e5b)]()[_0x1b8499(0x15e7)];})['then'](function(_0x14ee7a){const _0x2a57df=_0x42beee;_0x3b8ec9['rpcVoiceQueuesChannels']=_0x14ee7a?_0x28c606()[_0x2a57df(0x161e)](_0x14ee7a['rows']?_0x28c606()[_0x2a57df(0xcec)](_0x14ee7a[_0x2a57df(0x28b8)],{'type':_0x2a57df(0xbce),'queuecallerleaveAt':null}):[],'uniqueid'):{};})[_0x42beee(0x20cd)](function(_0x3ad692){const _0x104fc2=_0x42beee;console[_0x104fc2(0x1bd0)](_0x3ad692);})[_0x42beee(0x988)](function(){const _0x136b33=_0x42beee;_0x28c606()[_0x136b33(0x14fe)](_0x3b8ec9[_0x136b33(0x832)],_0x3b8ec9['addVoiceQueuesChannels']);for(let _0x29228f=0x0;_0x29228f<_0x3b8ec9[_0x136b33(0x709)]['length'];_0x29228f+=0x1){delete _0x3b8ec9[_0x136b33(0x832)][_0x3b8ec9[_0x136b33(0x709)][_0x29228f]];}_0x3b8ec9[_0x136b33(0x2789)]=![],_0x3b8ec9[_0x136b33(0x143b)]={},_0x3b8ec9[_0x136b33(0x709)]=[],_0x3b8ec9[_0x136b33(0x137a)]();});function _0xd1f791(_0x3bc37c){const _0x56f1c2=_0x42beee;_0x3b8ec9['voiceQueuesTotal']=_0x3bc37c[_0x56f1c2(0xb90)]?_0x3bc37c['count']:0x0,_0x3b8ec9[_0x56f1c2(0x2dc)]=_0x3bc37c?_0x28c606()[_0x56f1c2(0x161e)](_0x3bc37c[_0x56f1c2(0x28b8)]?_0x3bc37c[_0x56f1c2(0x28b8)]:[],'id'):{},_0x5955de();}function _0x389b01(){const _0x625151=_0x42beee;_0x3b8ec9['query']['offset']=(_0x3b8ec9[_0x625151(0x289a)]['page']-0x1)*_0x3b8ec9[_0x625151(0x289a)][_0x625151(0x25bb)],_0x3b8ec9[_0x625151(0x1713)]=_0x224807['user'][_0x625151(0x1f2c)](_0x3b8ec9['query'],_0xd1f791)[_0x625151(0x15e7)];}let _0x21425f=!![],_0x3503e8=0x1;_0xc6cb7e[_0x42beee(0xc62)](_0x42beee(0x1200),function(_0x1aa9d4,_0x5287b3){const _0x5d67a4=_0x42beee;_0x21425f?_0x70047d(function(){_0x21425f=![];}):(!_0x5287b3&&(_0x3503e8=_0x3b8ec9[_0x5d67a4(0x289a)][_0x5d67a4(0xc72)]),_0x1aa9d4!==_0x5287b3&&(_0x3b8ec9[_0x5d67a4(0x289a)][_0x5d67a4(0xc72)]=0x1),!_0x1aa9d4&&(_0x3b8ec9['query']['page']=_0x3503e8),_0x3b8ec9[_0x5d67a4(0x137a)]());});function _0x58c4a2(_0x4ac556){const _0x17e388=_0x42beee;return _0x28c606()[_0x17e388(0x1c97)](_0x4ac556);}function _0x5955de(){const _0x4ba7ce=_0x42beee;_0x28c606()[_0x4ba7ce(0x1789)](_0x3b8ec9['voiceQueues'],function(_0x473905,_0x9e1070){const _0x2ce923=_0x4ba7ce;_0x3b8ec9[_0x2ce923(0xd9c)][_0x9e1070]&&(_0x3b8ec9[_0x2ce923(0x2dc)][_0x9e1070]['waiting']=_0x3b8ec9[_0x2ce923(0xd9c)][_0x9e1070]['waiting']||0x0);});}function _0x40bc4e(_0x48cca7){const _0x512411=_0x42beee;_0x3b8ec9[_0x512411(0x2dc)][_0x48cca7['id']]&&(_0x3b8ec9[_0x512411(0xd9c)][_0x48cca7['id']]&&(_0x3b8ec9[_0x512411(0xd9c)][_0x48cca7['id']]=_0x48cca7,_0x28c606()[_0x512411(0x14fe)](_0x3b8ec9[_0x512411(0x2dc)][_0x48cca7['id']],_0x28c606()[_0x512411(0x27bb)](_0x48cca7,_0x21a725))));}function _0x1f02fd(_0x3f0621){const _0x3beb7a=_0x42beee;_0x3f0621[_0x3beb7a(0x2185)]===_0x3beb7a(0xbce)&&(_0x3f0621['queuecallerleaveAt']?(delete _0x3b8ec9[_0x3beb7a(0x832)][_0x3f0621[_0x3beb7a(0x2947)]],_0x3b8ec9['load']&&_0x3b8ec9[_0x3beb7a(0x709)][_0x3beb7a(0x1954)](_0x3f0621['uniqueid'])):(_0x3b8ec9[_0x3beb7a(0x832)][_0x3f0621[_0x3beb7a(0x2947)]]=_0x3f0621,_0x3b8ec9[_0x3beb7a(0x2789)]&&(_0x3b8ec9['addVoiceQueuesChannels'][_0x3f0621['uniqueid']]=_0x3f0621)));}function _0x189658(_0x1e6f1e){const _0x3e45ef=_0x42beee;!_0x28c606()[_0x3e45ef(0x28d7)](_0x1e6f1e)&&(_0x3b8ec9[_0x3e45ef(0xd9c)][_0x1e6f1e['id']]=_0x28c606()[_0x3e45ef(0x27bb)](_0x1e6f1e,_0x21a725));}function _0x38132d(_0x2f743f){const _0x37ca73=_0x42beee;!_0x28c606()[_0x37ca73(0x28d7)](_0x2f743f)&&(_0x3b8ec9['rpcVoiceQueues'][_0x2f743f['id']]&&_0x28c606()[_0x37ca73(0x14fe)](_0x3b8ec9[_0x37ca73(0xd9c)][_0x2f743f['id']],_0x28c606()['pick'](_0x2f743f,_0x21a725)),_0x3b8ec9[_0x37ca73(0x2dc)][_0x2f743f['id']]&&_0x28c606()['merge'](_0x3b8ec9['voiceQueues'][_0x2f743f['id']],_0x28c606()[_0x37ca73(0x27bb)](_0x2f743f,_0x21a725)));}function _0x4d5ab1(_0x147d61){const _0x31a50b=_0x42beee;!_0x28c606()['isNil'](_0x147d61)&&(delete _0x3b8ec9[_0x31a50b(0xd9c)][_0x147d61['id']],delete _0x3b8ec9[_0x31a50b(0x2dc)][_0x147d61['id']]);}function _0x315be7(_0x98c173){const _0x2dcdd5=_0x42beee;_0x28c606()[_0x2dcdd5(0x26d4)](_0x98c173['UserId'])===_0x45fc0e['getCurrentUser']()['id']&&_0x3b8ec9[_0x2dcdd5(0x137a)]();}_0xc6cb7e[_0x42beee(0x8c7)](_0x42beee(0xf28),function(){const _0x4230ab=_0x42beee;_0xb4a250[_0x4230ab(0x1951)](_0x4230ab(0xb9c)),_0xb4a250[_0x4230ab(0x1951)]('voice_queue_channel:save'),_0xb4a250[_0x4230ab(0x1951)](_0x4230ab(0x44b)),_0xb4a250[_0x4230ab(0x1951)](_0x4230ab(0x289d)),_0xb4a250[_0x4230ab(0x1951)](_0x4230ab(0x2007)),_0xb4a250[_0x4230ab(0x1951)]('voiceQueue:update'),_0xb4a250[_0x4230ab(0x1951)](_0x4230ab(0x2526));});}const _0x53f5d0=_0x2b1691;;_0x32cb93[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),'$document',_0x49a1e3(0x1fe7),_0x49a1e3(0x298c),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x633)];function _0x32cb93(_0x3e536a,_0x18e357,_0x184bf5,_0x29c2bc,_0x17791d,_0x2eb922,_0x5cbfd5,_0x582bb4,_0x125ecf){const _0x48af77=_0x49a1e3,_0x64645b=this,_0xb55ccb=['id',_0x48af77(0x2494),_0x48af77(0x2044),_0x48af77(0x188f)];let _0x7dffc4=!![];_0x64645b['chatQueues']={},_0x64645b['chatQueuesTotal']=0x0,_0x64645b[_0x48af77(0x1124)]={},_0x64645b[_0x48af77(0xc47)]=[],_0x64645b[_0x48af77(0x1750)]=[],_0x64645b[_0x48af77(0x1670)]={},_0x64645b[_0x48af77(0x289a)]={'id':_0x582bb4[_0x48af77(0x808)]()['id'],'channel':_0x48af77(0xf52),'fields':_0x48af77(0xc19),'limit':0xa,'page':0x1},_0x64645b[_0x48af77(0x2470)]={'limit':0xa,'page':0x1},_0x64645b[_0x48af77(0x1339)]=_0x4e4902,_0x64645b[_0x48af77(0xd1b)]=_0x55cea2,_0x64645b[_0x48af77(0x14ae)]=_0x56c4f1,_0x64645b[_0x48af77(0x8f6)]=_0x2048a1,_0x64645b[_0x48af77(0x25c)]=_0x5495a5,_0x64645b['onSaveQueue']=_0x3f36f8,_0x64645b[_0x48af77(0xd7d)]=_0x2ec99c,_0x64645b[_0x48af77(0xa4b)]=_0x5aecbb,_0x64645b[_0x48af77(0x20f9)]=_0x2d0d4c,_0x64645b['onSaveUserChatQueue']=_0x52acee,_0x64645b[_0x48af77(0x8d8)]=_0xa1a65e,_0x64645b[_0x48af77(0xe20)]=_0x570d2f,_0x64645b[_0x48af77(0x173b)]=_0x39a698,_0x125ecf['onWithoutApply'](_0x48af77(0x28d3),_0x64645b['onSaveQueue']),_0x125ecf[_0x48af77(0x1939)](_0x48af77(0x61d),_0x64645b[_0x48af77(0xd7d)]),_0x125ecf['onWithoutApply'](_0x48af77(0x7bd),_0x64645b[_0x48af77(0xa4b)]),_0x125ecf[_0x48af77(0x1939)](_0x48af77(0x1909),_0x64645b['onRemoveChatQueue']),_0x125ecf[_0x48af77(0x1939)](_0x48af77(0x262a),_0x64645b['onSaveUserChatQueue']),_0x125ecf[_0x48af77(0x1939)](_0x48af77(0x234c),_0x64645b['onRemoveUserChatQueue']),_0x125ecf[_0x48af77(0x1939)](_0x48af77(0xd12),_0x64645b[_0x48af77(0xe20)]),_0x125ecf[_0x48af77(0x1939)](_0x48af77(0x1968),_0x64645b[_0x48af77(0x173b)]),_0x5cbfd5[_0x48af77(0x19bd)][_0x48af77(0xd1b)]()['$promise'][_0x48af77(0x64a)](function(_0x30c8a6){const _0x5962e2=_0x48af77;_0x64645b[_0x5962e2(0x1124)]=_0x30c8a6?_0x28c606()[_0x5962e2(0x161e)](_0x30c8a6[_0x5962e2(0x28b8)]?_0x30c8a6[_0x5962e2(0x28b8)]:[],'id'):{};})[_0x48af77(0x64a)](function(){const _0x2bb83d=_0x48af77;return _0x5cbfd5[_0x2bb83d(0x2e8)]['getQueues']({'id':_0x582bb4[_0x2bb83d(0x808)]()['id'],'channel':_0x2bb83d(0xf52)})[_0x2bb83d(0x15e7)];})[_0x48af77(0x64a)](function(_0x3de361){const _0x1858e7=_0x48af77;return _0x64645b[_0x1858e7(0x189f)]=_0x3de361[_0x1858e7(0x28b8)],_0x5cbfd5['rpc'][_0x1858e7(0x1dd9)]()[_0x1858e7(0x15e7)];})[_0x48af77(0x64a)](function(_0x5ddb3e){const _0x1b1ba0=_0x48af77,_0x1caeb1=_0x28c606()['filter'](_0x5ddb3e[_0x1b1ba0(0x28b8)],function(_0x260b1d){const _0x51662f=_0x1b1ba0;return _0x28c606()[_0x51662f(0x68a)](_0x64645b[_0x51662f(0x189f)],{'id':_0x260b1d[_0x51662f(0x5dd)]});});_0x5ddb3e[_0x1b1ba0(0x28b8)]=_0x1caeb1,_0x5ddb3e[_0x1b1ba0(0xb90)]=_0x1caeb1[_0x1b1ba0(0x1b9e)],_0x28c606()[_0x1b1ba0(0x14fe)](_0x64645b['rpcChatQueuesWaitingInteractions'],_0x5ddb3e?_0x28c606()[_0x1b1ba0(0x161e)](_0x5ddb3e[_0x1b1ba0(0x28b8)]?_0x5ddb3e[_0x1b1ba0(0x28b8)]:[],'id'):{});})['catch'](function(_0x51d69f){console['error'](_0x51d69f);})[_0x48af77(0x988)](function(){const _0x5b77b8=_0x48af77;for(let _0x4eb854=0x0;_0x4eb854<_0x64645b[_0x5b77b8(0x1750)][_0x5b77b8(0x1b9e)];_0x4eb854+=0x1){delete _0x64645b['rpcChatQueuesWaitingInteractions'][_0x64645b['deleteChatQueuesWaitingInteractions'][_0x4eb854]];}_0x7dffc4=![],_0x64645b['deleteChatQueuesWaitingInteractions']=[],_0x55cea2(),_0x5495a5();});function _0x5495a5(){const _0x1feeb6=_0x48af77,_0x11388f=(_0x64645b[_0x1feeb6(0x2470)][_0x1feeb6(0xc72)]-0x1)*_0x64645b[_0x1feeb6(0x2470)][_0x1feeb6(0x25bb)];_0x64645b[_0x1feeb6(0xc47)]=_0x28c606()[_0x1feeb6(0x288e)](_0x64645b[_0x1feeb6(0x1670)],['joinAt'],[_0x1feeb6(0x19d0)]),_0x64645b[_0x1feeb6(0x28db)]=_0x28c606()[_0x1feeb6(0xfeb)](_0x64645b['paginatedInteractions'],_0x11388f)[_0x1feeb6(0x142e)](0x0,_0x64645b[_0x1feeb6(0x2470)][_0x1feeb6(0x25bb)]);}function _0x4e4902(_0x275ad0){const _0x1866b3=_0x48af77;_0x64645b[_0x1866b3(0x4e6)]=_0x275ad0[_0x1866b3(0xb90)]?_0x275ad0[_0x1866b3(0xb90)]:0x0,_0x64645b['chatQueues']=_0x275ad0?_0x28c606()[_0x1866b3(0x161e)](_0x275ad0[_0x1866b3(0x28b8)]?_0x275ad0['rows']:[],'id'):{},_0x27b0b4();}function _0x55cea2(){const _0x2a162e=_0x48af77;_0x64645b['query']['offset']=(_0x64645b[_0x2a162e(0x289a)][_0x2a162e(0xc72)]-0x1)*_0x64645b['query'][_0x2a162e(0x25bb)],_0x64645b['promise']=_0x5cbfd5[_0x2a162e(0x2e8)][_0x2a162e(0x1f2c)](_0x64645b[_0x2a162e(0x289a)],_0x4e4902)['$promise'];}let _0x220187=!![],_0x3cb576=0x1;_0x3e536a[_0x48af77(0xc62)](_0x48af77(0x1200),function(_0xc1e52b,_0x38d0bd){const _0x3d3e11=_0x48af77;_0x220187?_0x18e357(function(){_0x220187=![];}):(!_0x38d0bd&&(_0x3cb576=_0x64645b[_0x3d3e11(0x289a)][_0x3d3e11(0xc72)]),_0xc1e52b!==_0x38d0bd&&(_0x64645b['query'][_0x3d3e11(0xc72)]=0x1),!_0xc1e52b&&(_0x64645b[_0x3d3e11(0x289a)][_0x3d3e11(0xc72)]=_0x3cb576),_0x64645b[_0x3d3e11(0xd1b)]());});function _0x56c4f1(_0x19c1b6){const _0x1cfa26=_0x48af77;return _0x28c606()[_0x1cfa26(0x1c97)](_0x19c1b6);}function _0x27b0b4(){const _0x3bee08=_0x48af77;_0x28c606()[_0x3bee08(0x1789)](_0x64645b['chatQueues'],function(_0x294bc7,_0xa44da4){const _0x528865=_0x3bee08;_0x64645b[_0x528865(0x1124)][_0xa44da4]&&(_0x64645b[_0x528865(0x136f)][_0xa44da4][_0x528865(0x188f)]=_0x64645b[_0x528865(0x1124)][_0xa44da4][_0x528865(0x188f)]||0x0);});}function _0x3f36f8(_0x4d3aaf){const _0xc7e760=_0x48af77;_0x64645b['chatQueues'][_0x4d3aaf['id']]&&(_0x64645b['rpcChatQueues'][_0x4d3aaf['id']]&&(_0x28c606()[_0xc7e760(0x14fe)](_0x64645b[_0xc7e760(0x1124)][_0x4d3aaf['id']],_0x28c606()[_0xc7e760(0x27bb)](_0x4d3aaf,_0xb55ccb)),_0x28c606()[_0xc7e760(0x14fe)](_0x64645b[_0xc7e760(0x136f)][_0x4d3aaf['id']],_0x28c606()[_0xc7e760(0x27bb)](_0x4d3aaf,_0xb55ccb))));}function _0x2ec99c(_0x3b20b8){const _0x39d3d1=_0x48af77;!_0x28c606()[_0x39d3d1(0x28d7)](_0x3b20b8)&&(_0x64645b[_0x39d3d1(0x1124)][_0x3b20b8['id']]=_0x28c606()[_0x39d3d1(0x27bb)](_0x3b20b8,_0xb55ccb));}function _0x5aecbb(_0x16f5b3){const _0x4d64f7=_0x48af77;!_0x28c606()[_0x4d64f7(0x28d7)](_0x16f5b3)&&(_0x64645b[_0x4d64f7(0x1124)][_0x16f5b3['id']]&&_0x28c606()['merge'](_0x64645b[_0x4d64f7(0x1124)][_0x16f5b3['id']],_0x28c606()[_0x4d64f7(0x27bb)](_0x16f5b3,_0xb55ccb)),_0x64645b[_0x4d64f7(0x136f)][_0x16f5b3['id']]&&_0x28c606()[_0x4d64f7(0x14fe)](_0x64645b[_0x4d64f7(0x136f)][_0x16f5b3['id']],_0x28c606()[_0x4d64f7(0x27bb)](_0x16f5b3,_0xb55ccb)));}function _0x2d0d4c(_0x5fdf77){const _0x51b691=_0x48af77;!_0x28c606()['isNil'](_0x5fdf77)&&(delete _0x64645b['rpcChatQueues'][_0x5fdf77['id']],delete _0x64645b[_0x51b691(0x136f)][_0x5fdf77['id']]);}function _0x52acee(_0x11bdbd){const _0x28aec8=_0x48af77;_0x28c606()[_0x28aec8(0x26d4)](_0x11bdbd[_0x28aec8(0x246c)])===_0x582bb4[_0x28aec8(0x808)]()['id']&&_0x64645b[_0x28aec8(0xd1b)]();}function _0xa1a65e(_0x4e4533){const _0x392bef=_0x48af77;_0x28c606()[_0x392bef(0x26d4)](_0x4e4533[_0x392bef(0x246c)])===_0x582bb4[_0x392bef(0x808)]()['id']&&_0x64645b[_0x392bef(0xd1b)]();}function _0x570d2f(_0x1f2236){const _0x2bdb54=_0x48af77;_0x64645b['chatQueues'][_0x1f2236[_0x2bdb54(0x5dd)]]&&(_0x64645b[_0x2bdb54(0x1670)][_0x1f2236['id']]=_0x1f2236,_0x5495a5());}function _0x39a698(_0x567dc2){const _0x368c43=_0x48af77;delete _0x64645b['rpcChatQueuesWaitingInteractions'][_0x567dc2['id']],_0x7dffc4&&_0x64645b[_0x368c43(0x1750)][_0x368c43(0x1954)](_0x567dc2['id']),_0x5495a5();}function _0x2048a1(_0x17f2b1){const _0x30d186=_0x48af77;switch(_0x17f2b1){case _0x30d186(0xf52):return _0x30d186(0x1b61);case _0x30d186(0xc71):return _0x30d186(0x930);case _0x30d186(0x10aa):return _0x30d186(0x1cc1);case _0x30d186(0x1a29):return _0x30d186(0x1393);case _0x30d186(0x28ad):return _0x30d186(0x712);case _0x30d186(0x1d37):return _0x30d186(0x69d);default:return _0x30d186(0xef4);}}_0x3e536a['$on'](_0x48af77(0xf28),function(){const _0x49e89c=_0x48af77;_0x125ecf['removeAllListeners'](_0x49e89c(0x28d3)),_0x125ecf[_0x49e89c(0x1951)](_0x49e89c(0x61d)),_0x125ecf[_0x49e89c(0x1951)](_0x49e89c(0x7bd)),_0x125ecf[_0x49e89c(0x1951)](_0x49e89c(0x1909)),_0x125ecf[_0x49e89c(0x1951)](_0x49e89c(0x262a)),_0x125ecf[_0x49e89c(0x1951)](_0x49e89c(0x234c)),_0x125ecf['removeAllListeners'](_0x49e89c(0xd12)),_0x125ecf[_0x49e89c(0x1951)](_0x49e89c(0x1968));});}const _0x542939=_0x32cb93;;_0x519d2f[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),'$window','$translate','api',_0x49a1e3(0xdcf),'socket'];function _0x519d2f(_0x4689e1,_0x530224,_0xb932fb,_0x3be07b,_0x3e557d,_0x53ffa0,_0x781d3d,_0x380c90,_0x496613){const _0x56a29b=_0x49a1e3,_0x3c9251=this,_0x1e0cdb=['id','name',_0x56a29b(0x2044),_0x56a29b(0x188f)];let _0x2d4ea0=!![];_0x3c9251[_0x56a29b(0x21e2)]={},_0x3c9251[_0x56a29b(0x18f3)]=0x0,_0x3c9251[_0x56a29b(0x1154)]={},_0x3c9251['paginatedInteractions']=[],_0x3c9251[_0x56a29b(0x154f)]=[],_0x3c9251[_0x56a29b(0x26e)]={},_0x3c9251[_0x56a29b(0x289a)]={'id':_0x380c90[_0x56a29b(0x808)]()['id'],'channel':'fax','fields':_0x56a29b(0xc19),'limit':0xa,'page':0x1},_0x3c9251['queryChannels']={'limit':0xa,'page':0x1},_0x3c9251[_0x56a29b(0x1339)]=_0x1fe603,_0x3c9251['getFaxQueues']=_0x89c2a8,_0x3c9251['getSize']=_0x2af35a,_0x3c9251[_0x56a29b(0x8f6)]=_0x10fb39,_0x3c9251[_0x56a29b(0x25c)]=_0x553b45,_0x3c9251['onSaveQueue']=_0x3dce32,_0x3c9251['onSaveFaxQueue']=_0x55a1d0,_0x3c9251['onUpdateFaxQueue']=_0x10c3ac,_0x3c9251[_0x56a29b(0x1b8f)]=_0x1fc255,_0x3c9251[_0x56a29b(0xf3d)]=_0x5c3105,_0x3c9251[_0x56a29b(0xa1e)]=_0x4a6e45,_0x3c9251['onSaveFaxQueueChannel']=_0x568805,_0x3c9251['onRemoveFaxQueueChannel']=_0x3a74e9,_0x496613[_0x56a29b(0x1939)]('fax_queue:save',_0x3c9251[_0x56a29b(0x1ecf)]),_0x496613['onWithoutApply']('faxQueue:save',_0x3c9251[_0x56a29b(0x11ac)]),_0x496613[_0x56a29b(0x1939)]('faxQueue:update',_0x3c9251[_0x56a29b(0x967)]),_0x496613[_0x56a29b(0x1939)](_0x56a29b(0x2931),_0x3c9251[_0x56a29b(0x1b8f)]),_0x496613[_0x56a29b(0x1939)](_0x56a29b(0xcc4),_0x3c9251[_0x56a29b(0xf3d)]),_0x496613[_0x56a29b(0x1939)](_0x56a29b(0x1ca9),_0x3c9251['onRemoveUserFaxQueue']),_0x496613[_0x56a29b(0x1939)](_0x56a29b(0xf02),_0x3c9251['onSaveFaxQueueChannel']),_0x496613['onWithoutApply'](_0x56a29b(0x146a),_0x3c9251[_0x56a29b(0x22b7)]),_0x781d3d['rpc'][_0x56a29b(0x20a3)]()[_0x56a29b(0x15e7)][_0x56a29b(0x64a)](function(_0x40be68){const _0xc9ef6a=_0x56a29b;_0x3c9251[_0xc9ef6a(0x1154)]=_0x40be68?_0x28c606()[_0xc9ef6a(0x161e)](_0x40be68[_0xc9ef6a(0x28b8)]?_0x40be68[_0xc9ef6a(0x28b8)]:[],'id'):{};})['then'](function(){const _0x434875=_0x56a29b;return _0x781d3d[_0x434875(0x2e8)][_0x434875(0x1f2c)]({'id':_0x380c90['getCurrentUser']()['id'],'channel':'fax'})[_0x434875(0x15e7)];})['then'](function(_0x55e7d3){const _0x2e9b27=_0x56a29b;return _0x3c9251[_0x2e9b27(0x189f)]=_0x55e7d3[_0x2e9b27(0x28b8)],_0x781d3d[_0x2e9b27(0x19bd)][_0x2e9b27(0x465)]()['$promise'];})[_0x56a29b(0x64a)](function(_0x8ecca5){const _0x53b92d=_0x56a29b,_0x3d9276=_0x28c606()[_0x53b92d(0xcec)](_0x8ecca5[_0x53b92d(0x28b8)],function(_0x5088d6){const _0x3fdf00=_0x53b92d;return _0x28c606()[_0x3fdf00(0x68a)](_0x3c9251[_0x3fdf00(0x189f)],{'id':_0x5088d6['queue_id']});});_0x8ecca5[_0x53b92d(0x28b8)]=_0x3d9276,_0x8ecca5[_0x53b92d(0xb90)]=_0x3d9276[_0x53b92d(0x1b9e)],_0x28c606()[_0x53b92d(0x14fe)](_0x3c9251[_0x53b92d(0x26e)],_0x8ecca5?_0x28c606()[_0x53b92d(0x161e)](_0x8ecca5[_0x53b92d(0x28b8)]?_0x8ecca5[_0x53b92d(0x28b8)]:[],'id'):{});})['catch'](function(_0x1d146e){const _0x29387d=_0x56a29b;console[_0x29387d(0x1bd0)](_0x1d146e);})[_0x56a29b(0x988)](function(){const _0x4d22ca=_0x56a29b;for(let _0x518bb1=0x0;_0x518bb1<_0x3c9251[_0x4d22ca(0x154f)][_0x4d22ca(0x1b9e)];_0x518bb1+=0x1){delete _0x3c9251['rpcFaxQueuesWaitingInteractions'][_0x3c9251[_0x4d22ca(0x154f)][_0x518bb1]];}_0x2d4ea0=![],_0x3c9251[_0x4d22ca(0x154f)]=[],_0x89c2a8(),_0x553b45();});function _0x553b45(){const _0x9a7f35=_0x56a29b,_0x3a27ea=(_0x3c9251[_0x9a7f35(0x2470)]['page']-0x1)*_0x3c9251[_0x9a7f35(0x2470)][_0x9a7f35(0x25bb)];_0x3c9251[_0x9a7f35(0xc47)]=_0x28c606()[_0x9a7f35(0x288e)](_0x3c9251[_0x9a7f35(0x26e)],[_0x9a7f35(0x1d89)],['desc']),_0x3c9251[_0x9a7f35(0x28db)]=_0x28c606()[_0x9a7f35(0xfeb)](_0x3c9251[_0x9a7f35(0xc47)],_0x3a27ea)[_0x9a7f35(0x142e)](0x0,_0x3c9251['queryChannels'][_0x9a7f35(0x25bb)]);}function _0x1fe603(_0x37ec9a){const _0x171642=_0x56a29b;_0x3c9251[_0x171642(0x18f3)]=_0x37ec9a[_0x171642(0xb90)]?_0x37ec9a['count']:0x0,_0x3c9251[_0x171642(0x21e2)]=_0x37ec9a?_0x28c606()['keyBy'](_0x37ec9a[_0x171642(0x28b8)]?_0x37ec9a[_0x171642(0x28b8)]:[],'id'):{},_0x31352c();}function _0x89c2a8(){const _0x5580e1=_0x56a29b;_0x3c9251[_0x5580e1(0x289a)]['offset']=(_0x3c9251[_0x5580e1(0x289a)][_0x5580e1(0xc72)]-0x1)*_0x3c9251[_0x5580e1(0x289a)][_0x5580e1(0x25bb)],_0x3c9251[_0x5580e1(0x1713)]=_0x781d3d['user'][_0x5580e1(0x1f2c)](_0x3c9251[_0x5580e1(0x289a)],_0x1fe603)[_0x5580e1(0x15e7)];}let _0xcbfb16=!![],_0x376bfd=0x1;_0x4689e1[_0x56a29b(0xc62)](_0x56a29b(0x1200),function(_0x44ed43,_0x3e9f9d){const _0x3f47bc=_0x56a29b;_0xcbfb16?_0x530224(function(){_0xcbfb16=![];}):(!_0x3e9f9d&&(_0x376bfd=_0x3c9251[_0x3f47bc(0x289a)]['page']),_0x44ed43!==_0x3e9f9d&&(_0x3c9251[_0x3f47bc(0x289a)]['page']=0x1),!_0x44ed43&&(_0x3c9251[_0x3f47bc(0x289a)][_0x3f47bc(0xc72)]=_0x376bfd),_0x3c9251[_0x3f47bc(0x20a3)]());});function _0x2af35a(_0x15e992){return _0x28c606()['size'](_0x15e992);}function _0x31352c(){const _0x28279e=_0x56a29b;_0x28c606()[_0x28279e(0x1789)](_0x3c9251['faxQueues'],function(_0x56e58a,_0x1d85d7){const _0x58edb0=_0x28279e;_0x3c9251['rpcFaxQueues'][_0x1d85d7]&&(_0x3c9251['faxQueues'][_0x1d85d7][_0x58edb0(0x188f)]=_0x3c9251['rpcFaxQueues'][_0x1d85d7][_0x58edb0(0x188f)]||0x0);});}function _0x3dce32(_0x3953f8){const _0x23a186=_0x56a29b;_0x3c9251[_0x23a186(0x21e2)][_0x3953f8['id']]&&(_0x3c9251[_0x23a186(0x1154)][_0x3953f8['id']]&&(_0x28c606()[_0x23a186(0x14fe)](_0x3c9251[_0x23a186(0x1154)][_0x3953f8['id']],_0x28c606()[_0x23a186(0x27bb)](_0x3953f8,_0x1e0cdb)),_0x28c606()[_0x23a186(0x14fe)](_0x3c9251[_0x23a186(0x21e2)][_0x3953f8['id']],_0x28c606()[_0x23a186(0x27bb)](_0x3953f8,_0x1e0cdb))));}function _0x55a1d0(_0x2b47ef){const _0x17af40=_0x56a29b;!_0x28c606()['isNil'](_0x2b47ef)&&(_0x3c9251['rpcFaxQueues'][_0x2b47ef['id']]=_0x28c606()[_0x17af40(0x27bb)](_0x2b47ef,_0x1e0cdb));}function _0x10c3ac(_0x15b281){const _0x4bba8c=_0x56a29b;!_0x28c606()[_0x4bba8c(0x28d7)](_0x15b281)&&(_0x3c9251[_0x4bba8c(0x1154)][_0x15b281['id']]&&_0x28c606()['merge'](_0x3c9251[_0x4bba8c(0x1154)][_0x15b281['id']],_0x28c606()[_0x4bba8c(0x27bb)](_0x15b281,_0x1e0cdb)),_0x3c9251[_0x4bba8c(0x21e2)][_0x15b281['id']]&&_0x28c606()[_0x4bba8c(0x14fe)](_0x3c9251['faxQueues'][_0x15b281['id']],_0x28c606()[_0x4bba8c(0x27bb)](_0x15b281,_0x1e0cdb)));}function _0x1fc255(_0x5bc8e1){const _0x59bc6e=_0x56a29b;!_0x28c606()[_0x59bc6e(0x28d7)](_0x5bc8e1)&&(delete _0x3c9251[_0x59bc6e(0x1154)][_0x5bc8e1['id']],delete _0x3c9251['faxQueues'][_0x5bc8e1['id']]);}function _0x5c3105(_0x147c6f){const _0x36598c=_0x56a29b;_0x28c606()[_0x36598c(0x26d4)](_0x147c6f[_0x36598c(0x246c)])===_0x380c90[_0x36598c(0x808)]()['id']&&_0x3c9251[_0x36598c(0x20a3)]();}function _0x4a6e45(_0x78dced){const _0x3deb5f=_0x56a29b;_0x28c606()[_0x3deb5f(0x26d4)](_0x78dced[_0x3deb5f(0x246c)])===_0x380c90[_0x3deb5f(0x808)]()['id']&&_0x3c9251[_0x3deb5f(0x20a3)]();}function _0x568805(_0x2860a6){const _0x4b6adc=_0x56a29b;_0x3c9251[_0x4b6adc(0x21e2)][_0x2860a6[_0x4b6adc(0x5dd)]]&&(_0x3c9251[_0x4b6adc(0x26e)][_0x2860a6['id']]=_0x2860a6,_0x553b45());}function _0x3a74e9(_0xcaa7fc){const _0x409be1=_0x56a29b;delete _0x3c9251[_0x409be1(0x26e)][_0xcaa7fc['id']],_0x2d4ea0&&_0x3c9251[_0x409be1(0x154f)]['push'](_0xcaa7fc['id']),_0x553b45();}function _0x10fb39(_0x54e645){const _0xb6585f=_0x56a29b;switch(_0x54e645){case _0xb6585f(0xf52):return _0xb6585f(0x1b61);case _0xb6585f(0xc71):return _0xb6585f(0x930);case'sms':return _0xb6585f(0x1cc1);case'whatsapp':return _0xb6585f(0x1393);case _0xb6585f(0x28ad):return _0xb6585f(0x712);case _0xb6585f(0x1d37):return _0xb6585f(0x69d);default:return _0xb6585f(0xef4);}}_0x4689e1[_0x56a29b(0x8c7)](_0x56a29b(0xf28),function(){const _0x22c3f0=_0x56a29b;_0x496613[_0x22c3f0(0x1951)]('fax_queue:save'),_0x496613[_0x22c3f0(0x1951)](_0x22c3f0(0x1a38)),_0x496613[_0x22c3f0(0x1951)](_0x22c3f0(0x13a5)),_0x496613[_0x22c3f0(0x1951)](_0x22c3f0(0x2931)),_0x496613[_0x22c3f0(0x1951)](_0x22c3f0(0xcc4)),_0x496613[_0x22c3f0(0x1951)]('userFaxQueue:remove'),_0x496613[_0x22c3f0(0x1951)](_0x22c3f0(0xf02)),_0x496613[_0x22c3f0(0x1951)](_0x22c3f0(0x146a));});}const _0x9295e2=_0x519d2f;;_0x393986[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x1fe7),_0x49a1e3(0x298c),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x633)];function _0x393986(_0x1113bb,_0x1a0713,_0x50cfc6,_0x5c8488,_0x46a092,_0x49b524,_0x3fcec0,_0x54a110,_0x1d4e3e){const _0x21ca69=_0x49a1e3,_0x1ce4c5=this,_0x568bac=['id',_0x21ca69(0x2494),_0x21ca69(0x2044),_0x21ca69(0x188f)];let _0x33d2ac=!![];_0x1ce4c5[_0x21ca69(0xdba)]={},_0x1ce4c5['mailQueuesTotal']=0x0,_0x1ce4c5[_0x21ca69(0x185a)]={},_0x1ce4c5[_0x21ca69(0xc47)]=[],_0x1ce4c5['deleteMailQueuesWaitingInteractions']=[],_0x1ce4c5[_0x21ca69(0x1f15)]={},_0x1ce4c5[_0x21ca69(0x289a)]={'id':_0x54a110[_0x21ca69(0x808)]()['id'],'channel':_0x21ca69(0xc71),'fields':_0x21ca69(0xc19),'limit':0xa,'page':0x1},_0x1ce4c5[_0x21ca69(0x2470)]={'limit':0xa,'page':0x1},_0x1ce4c5[_0x21ca69(0x1339)]=_0x11b3b9,_0x1ce4c5['getMailQueues']=_0x2d5933,_0x1ce4c5[_0x21ca69(0x14ae)]=_0x434223,_0x1ce4c5[_0x21ca69(0x8f6)]=_0x4246f9,_0x1ce4c5['paginate']=_0x91383e,_0x1ce4c5[_0x21ca69(0x1ecf)]=_0x49de3b,_0x1ce4c5[_0x21ca69(0x2278)]=_0x3f8a1f,_0x1ce4c5[_0x21ca69(0x2199)]=_0x248fc7,_0x1ce4c5[_0x21ca69(0x1f77)]=_0x418210,_0x1ce4c5[_0x21ca69(0x1164)]=_0x1893da,_0x1ce4c5['onRemoveUserMailQueue']=_0x404464,_0x1ce4c5[_0x21ca69(0x272f)]=_0x3b1e78,_0x1ce4c5[_0x21ca69(0x1b02)]=_0x4289c9,_0x1d4e3e[_0x21ca69(0x1939)]('mail_queue:save',_0x1ce4c5[_0x21ca69(0x1ecf)]),_0x1d4e3e[_0x21ca69(0x1939)](_0x21ca69(0x28a1),_0x1ce4c5[_0x21ca69(0x2278)]),_0x1d4e3e['onWithoutApply'](_0x21ca69(0x358),_0x1ce4c5[_0x21ca69(0x2199)]),_0x1d4e3e[_0x21ca69(0x1939)]('mailQueue:remove',_0x1ce4c5['onRemoveMailQueue']),_0x1d4e3e[_0x21ca69(0x1939)](_0x21ca69(0x204d),_0x1ce4c5[_0x21ca69(0x1164)]),_0x1d4e3e[_0x21ca69(0x1939)](_0x21ca69(0x1b97),_0x1ce4c5[_0x21ca69(0x27cd)]),_0x1d4e3e['onWithoutApply'](_0x21ca69(0x1800),_0x1ce4c5[_0x21ca69(0x272f)]),_0x1d4e3e['onWithoutApply'](_0x21ca69(0x2802),_0x1ce4c5[_0x21ca69(0x1b02)]),_0x3fcec0['rpc'][_0x21ca69(0xa2a)]()[_0x21ca69(0x15e7)][_0x21ca69(0x64a)](function(_0x4fd8b5){const _0x1087a0=_0x21ca69;_0x1ce4c5['rpcMailQueues']=_0x4fd8b5?_0x28c606()[_0x1087a0(0x161e)](_0x4fd8b5[_0x1087a0(0x28b8)]?_0x4fd8b5['rows']:[],'id'):{};})['then'](function(){const _0x44b84a=_0x21ca69;return _0x3fcec0[_0x44b84a(0x2e8)][_0x44b84a(0x1f2c)]({'id':_0x54a110['getCurrentUser']()['id'],'channel':_0x44b84a(0xc71)})['$promise'];})[_0x21ca69(0x64a)](function(_0x342331){const _0x5575cd=_0x21ca69;return _0x1ce4c5['myQueues']=_0x342331['rows'],_0x3fcec0[_0x5575cd(0x19bd)][_0x5575cd(0x1c6c)]()[_0x5575cd(0x15e7)];})['then'](function(_0x17c2b){const _0x420ffa=_0x21ca69,_0x1bf283=_0x28c606()['filter'](_0x17c2b['rows'],function(_0x4e0d2a){const _0x1f2699=a0_0x4127;return _0x28c606()[_0x1f2699(0x68a)](_0x1ce4c5[_0x1f2699(0x189f)],{'id':_0x4e0d2a[_0x1f2699(0x5dd)]});});_0x17c2b[_0x420ffa(0x28b8)]=_0x1bf283,_0x17c2b[_0x420ffa(0xb90)]=_0x1bf283[_0x420ffa(0x1b9e)],_0x28c606()[_0x420ffa(0x14fe)](_0x1ce4c5['rpcMailQueuesWaitingInteractions'],_0x17c2b?_0x28c606()[_0x420ffa(0x161e)](_0x17c2b[_0x420ffa(0x28b8)]?_0x17c2b[_0x420ffa(0x28b8)]:[],'id'):{});})['catch'](function(_0x5733f9){const _0x158cdd=_0x21ca69;console[_0x158cdd(0x1bd0)](_0x5733f9);})['finally'](function(){const _0x4846f8=_0x21ca69;for(let _0x302bdc=0x0;_0x302bdc<_0x1ce4c5[_0x4846f8(0x1dec)][_0x4846f8(0x1b9e)];_0x302bdc+=0x1){delete _0x1ce4c5[_0x4846f8(0x1f15)][_0x1ce4c5[_0x4846f8(0x1dec)][_0x302bdc]];}_0x33d2ac=![],_0x1ce4c5[_0x4846f8(0x1dec)]=[],_0x2d5933(),_0x91383e();});function _0x91383e(){const _0x28a3b0=_0x21ca69,_0x24ff64=(_0x1ce4c5[_0x28a3b0(0x2470)][_0x28a3b0(0xc72)]-0x1)*_0x1ce4c5[_0x28a3b0(0x2470)][_0x28a3b0(0x25bb)];_0x1ce4c5[_0x28a3b0(0xc47)]=_0x28c606()['orderBy'](_0x1ce4c5[_0x28a3b0(0x1f15)],[_0x28a3b0(0x1d89)],[_0x28a3b0(0x19d0)]),_0x1ce4c5['interactions']=_0x28c606()[_0x28a3b0(0xfeb)](_0x1ce4c5['paginatedInteractions'],_0x24ff64)['slice'](0x0,_0x1ce4c5[_0x28a3b0(0x2470)][_0x28a3b0(0x25bb)]);}function _0x11b3b9(_0x4e0754){const _0x2c9e93=_0x21ca69;_0x1ce4c5['mailQueuesTotal']=_0x4e0754[_0x2c9e93(0xb90)]?_0x4e0754[_0x2c9e93(0xb90)]:0x0,_0x1ce4c5[_0x2c9e93(0xdba)]=_0x4e0754?_0x28c606()[_0x2c9e93(0x161e)](_0x4e0754[_0x2c9e93(0x28b8)]?_0x4e0754[_0x2c9e93(0x28b8)]:[],'id'):{},_0x1120b1();}function _0x2d5933(){const _0x28ac80=_0x21ca69;_0x1ce4c5[_0x28ac80(0x289a)]['offset']=(_0x1ce4c5[_0x28ac80(0x289a)][_0x28ac80(0xc72)]-0x1)*_0x1ce4c5['query']['limit'],_0x1ce4c5['promise']=_0x3fcec0[_0x28ac80(0x2e8)][_0x28ac80(0x1f2c)](_0x1ce4c5['query'],_0x11b3b9)[_0x28ac80(0x15e7)];}let _0x3fdfdb=!![],_0x1d4dcf=0x1;_0x1113bb['$watch'](_0x21ca69(0x1200),function(_0xaa08f4,_0x62d609){const _0x296f19=_0x21ca69;_0x3fdfdb?_0x1a0713(function(){_0x3fdfdb=![];}):(!_0x62d609&&(_0x1d4dcf=_0x1ce4c5[_0x296f19(0x289a)][_0x296f19(0xc72)]),_0xaa08f4!==_0x62d609&&(_0x1ce4c5['query'][_0x296f19(0xc72)]=0x1),!_0xaa08f4&&(_0x1ce4c5[_0x296f19(0x289a)][_0x296f19(0xc72)]=_0x1d4dcf),_0x1ce4c5[_0x296f19(0xa2a)]());});function _0x434223(_0x269496){return _0x28c606()['size'](_0x269496);}function _0x1120b1(){const _0x45cab6=_0x21ca69;_0x28c606()[_0x45cab6(0x1789)](_0x1ce4c5[_0x45cab6(0xdba)],function(_0x1474ed,_0x5b5989){const _0x966862=_0x45cab6;_0x1ce4c5[_0x966862(0x185a)][_0x5b5989]&&(_0x1ce4c5[_0x966862(0xdba)][_0x5b5989][_0x966862(0x188f)]=_0x1ce4c5[_0x966862(0x185a)][_0x5b5989][_0x966862(0x188f)]||0x0);});}function _0x49de3b(_0x2b4dbf){const _0x6fe4ad=_0x21ca69;_0x1ce4c5[_0x6fe4ad(0xdba)][_0x2b4dbf['id']]&&(_0x1ce4c5[_0x6fe4ad(0x185a)][_0x2b4dbf['id']]&&(_0x28c606()[_0x6fe4ad(0x14fe)](_0x1ce4c5[_0x6fe4ad(0x185a)][_0x2b4dbf['id']],_0x28c606()[_0x6fe4ad(0x27bb)](_0x2b4dbf,_0x568bac)),_0x28c606()[_0x6fe4ad(0x14fe)](_0x1ce4c5[_0x6fe4ad(0xdba)][_0x2b4dbf['id']],_0x28c606()[_0x6fe4ad(0x27bb)](_0x2b4dbf,_0x568bac))));}function _0x3f8a1f(_0x253ad6){const _0x4b59da=_0x21ca69;!_0x28c606()[_0x4b59da(0x28d7)](_0x253ad6)&&(_0x1ce4c5['rpcMailQueues'][_0x253ad6['id']]=_0x28c606()[_0x4b59da(0x27bb)](_0x253ad6,_0x568bac));}function _0x248fc7(_0x1392eb){const _0x4a532a=_0x21ca69;!_0x28c606()[_0x4a532a(0x28d7)](_0x1392eb)&&(_0x1ce4c5[_0x4a532a(0x185a)][_0x1392eb['id']]&&_0x28c606()[_0x4a532a(0x14fe)](_0x1ce4c5[_0x4a532a(0x185a)][_0x1392eb['id']],_0x28c606()[_0x4a532a(0x27bb)](_0x1392eb,_0x568bac)),_0x1ce4c5[_0x4a532a(0xdba)][_0x1392eb['id']]&&_0x28c606()[_0x4a532a(0x14fe)](_0x1ce4c5[_0x4a532a(0xdba)][_0x1392eb['id']],_0x28c606()['pick'](_0x1392eb,_0x568bac)));}function _0x418210(_0x25fba2){const _0x59c0fe=_0x21ca69;!_0x28c606()[_0x59c0fe(0x28d7)](_0x25fba2)&&(delete _0x1ce4c5[_0x59c0fe(0x185a)][_0x25fba2['id']],delete _0x1ce4c5[_0x59c0fe(0xdba)][_0x25fba2['id']]);}function _0x1893da(_0x1a14e3){const _0x382d90=_0x21ca69;_0x28c606()['toInteger'](_0x1a14e3[_0x382d90(0x246c)])===_0x54a110[_0x382d90(0x808)]()['id']&&_0x1ce4c5[_0x382d90(0xa2a)]();}function _0x404464(_0x390dd7){const _0x46191a=_0x21ca69;_0x28c606()[_0x46191a(0x26d4)](_0x390dd7[_0x46191a(0x246c)])===_0x54a110[_0x46191a(0x808)]()['id']&&_0x1ce4c5['getMailQueues']();}function _0x3b1e78(_0x385e09){const _0x7e2910=_0x21ca69;_0x1ce4c5[_0x7e2910(0xdba)][_0x385e09[_0x7e2910(0x5dd)]]&&(_0x1ce4c5[_0x7e2910(0x1f15)][_0x385e09['id']]=_0x385e09,_0x91383e());}function _0x4289c9(_0xccb852){const _0x36e4f0=_0x21ca69;delete _0x1ce4c5[_0x36e4f0(0x1f15)][_0xccb852['id']],_0x33d2ac&&_0x1ce4c5[_0x36e4f0(0x1dec)][_0x36e4f0(0x1954)](_0xccb852['id']),_0x91383e();}function _0x4246f9(_0x11918c){const _0x426319=_0x21ca69;switch(_0x11918c){case _0x426319(0xf52):return _0x426319(0x1b61);case _0x426319(0xc71):return _0x426319(0x930);case _0x426319(0x10aa):return _0x426319(0x1cc1);case _0x426319(0x1a29):return _0x426319(0x1393);case'openchannel':return _0x426319(0x712);case _0x426319(0x1d37):return _0x426319(0x69d);default:return _0x426319(0xef4);}}_0x1113bb[_0x21ca69(0x8c7)](_0x21ca69(0xf28),function(){const _0x14a5ee=_0x21ca69;_0x1d4e3e['removeAllListeners'](_0x14a5ee(0x17a5)),_0x1d4e3e['removeAllListeners'](_0x14a5ee(0x28a1)),_0x1d4e3e[_0x14a5ee(0x1951)](_0x14a5ee(0x358)),_0x1d4e3e[_0x14a5ee(0x1951)]('mailQueue:remove'),_0x1d4e3e[_0x14a5ee(0x1951)](_0x14a5ee(0x204d)),_0x1d4e3e[_0x14a5ee(0x1951)](_0x14a5ee(0x1b97)),_0x1d4e3e[_0x14a5ee(0x1951)](_0x14a5ee(0x1800)),_0x1d4e3e[_0x14a5ee(0x1951)](_0x14a5ee(0x2802));});}const _0x4cc9ae=_0x393986;;_0x2cad5d[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),'$document',_0x49a1e3(0x1fe7),'$translate',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'socket'];function _0x2cad5d(_0x18dd47,_0x220d15,_0x5451f1,_0x473188,_0x54af56,_0x37dfff,_0x2de96f,_0x537082,_0x3270ac){const _0x481115=_0x49a1e3,_0xc7b6cb=this,_0x262ac8=['id',_0x481115(0x2494),'mapAgentsId','waiting'];let _0x3ec35a=!![];_0xc7b6cb[_0x481115(0x600)]={},_0xc7b6cb[_0x481115(0xa8d)]=0x0,_0xc7b6cb[_0x481115(0x677)]={},_0xc7b6cb[_0x481115(0xc47)]=[],_0xc7b6cb['deleteOpenchannelQueuesWaitingInteractions']=[],_0xc7b6cb['rpcOpenchannelQueuesWaitingInteractions']={},_0xc7b6cb['query']={'id':_0x537082[_0x481115(0x808)]()['id'],'channel':_0x481115(0x28ad),'fields':_0x481115(0xc19),'limit':0xa,'page':0x1},_0xc7b6cb['queryChannels']={'limit':0xa,'page':0x1},_0xc7b6cb[_0x481115(0x1339)]=_0x2a3205,_0xc7b6cb[_0x481115(0xc32)]=_0x47c043,_0xc7b6cb[_0x481115(0x14ae)]=_0x57653e,_0xc7b6cb[_0x481115(0x8f6)]=_0x561a7,_0xc7b6cb[_0x481115(0x25c)]=_0x18bb13,_0xc7b6cb[_0x481115(0x1ecf)]=_0x1eac20,_0xc7b6cb[_0x481115(0x4ca)]=_0x253b8d,_0xc7b6cb[_0x481115(0x23d9)]=_0x4bfb6a,_0xc7b6cb['onRemoveOpenchannelQueue']=_0x385874,_0xc7b6cb['onSaveUserOpenchannelQueue']=_0xa31652,_0xc7b6cb[_0x481115(0x18bb)]=_0x36185b,_0xc7b6cb['onSaveOpenchannelQueueChannel']=_0x465770,_0xc7b6cb[_0x481115(0x21c8)]=_0x1bb8ac,_0x3270ac[_0x481115(0x1939)](_0x481115(0xc85),_0xc7b6cb['onSaveQueue']),_0x3270ac[_0x481115(0x1939)](_0x481115(0xc05),_0xc7b6cb[_0x481115(0x4ca)]),_0x3270ac[_0x481115(0x1939)](_0x481115(0x25a0),_0xc7b6cb[_0x481115(0x23d9)]),_0x3270ac[_0x481115(0x1939)]('openchannelQueue:remove',_0xc7b6cb[_0x481115(0x2573)]),_0x3270ac[_0x481115(0x1939)]('userOpenchannelQueue:save',_0xc7b6cb['onSaveUserOpenchannelQueue']),_0x3270ac[_0x481115(0x1939)](_0x481115(0x14a9),_0xc7b6cb[_0x481115(0x18bb)]),_0x3270ac[_0x481115(0x1939)](_0x481115(0x207),_0xc7b6cb['onSaveOpenchannelQueueChannel']),_0x3270ac[_0x481115(0x1939)]('openchannel_queue_waiting_interaction:remove',_0xc7b6cb[_0x481115(0x21c8)]),_0x2de96f[_0x481115(0x19bd)]['getOpenchannelQueues']()[_0x481115(0x15e7)][_0x481115(0x64a)](function(_0x12b608){const _0x566f3c=_0x481115;_0xc7b6cb[_0x566f3c(0x677)]=_0x12b608?_0x28c606()[_0x566f3c(0x161e)](_0x12b608['rows']?_0x12b608[_0x566f3c(0x28b8)]:[],'id'):{};})[_0x481115(0x64a)](function(){const _0x5ba97c=_0x481115;return _0x2de96f[_0x5ba97c(0x2e8)]['getQueues']({'id':_0x537082[_0x5ba97c(0x808)]()['id'],'channel':'openchannel'})[_0x5ba97c(0x15e7)];})['then'](function(_0x31f0f5){const _0x166f9c=_0x481115;return _0xc7b6cb[_0x166f9c(0x189f)]=_0x31f0f5[_0x166f9c(0x28b8)],_0x2de96f[_0x166f9c(0x19bd)]['getOpenchannelQueuesWaitingInteractions']()[_0x166f9c(0x15e7)];})[_0x481115(0x64a)](function(_0x5f5bd4){const _0x26cf90=_0x481115,_0x31e422=_0x28c606()['filter'](_0x5f5bd4[_0x26cf90(0x28b8)],function(_0x4b11a7){const _0xaa97bb=_0x26cf90;return _0x28c606()[_0xaa97bb(0x68a)](_0xc7b6cb[_0xaa97bb(0x189f)],{'id':_0x4b11a7['queue_id']});});_0x5f5bd4[_0x26cf90(0x28b8)]=_0x31e422,_0x5f5bd4[_0x26cf90(0xb90)]=_0x31e422[_0x26cf90(0x1b9e)],_0x28c606()[_0x26cf90(0x14fe)](_0xc7b6cb['rpcOpenchannelQueuesWaitingInteractions'],_0x5f5bd4?_0x28c606()['keyBy'](_0x5f5bd4['rows']?_0x5f5bd4[_0x26cf90(0x28b8)]:[],'id'):{});})[_0x481115(0x20cd)](function(_0x44f5ea){const _0xb82edb=_0x481115;console[_0xb82edb(0x1bd0)](_0x44f5ea);})['finally'](function(){const _0x54f0d3=_0x481115;for(let _0x1d332a=0x0;_0x1d332a<_0xc7b6cb['deleteOpenchannelQueuesWaitingInteractions'][_0x54f0d3(0x1b9e)];_0x1d332a+=0x1){delete _0xc7b6cb['rpcOpenchannelQueuesWaitingInteractions'][_0xc7b6cb[_0x54f0d3(0x1a89)][_0x1d332a]];}_0x3ec35a=![],_0xc7b6cb['deleteOpenchannelQueuesWaitingInteractions']=[],_0x47c043(),_0x18bb13();});function _0x18bb13(){const _0x573991=_0x481115,_0x4c7af1=(_0xc7b6cb[_0x573991(0x2470)][_0x573991(0xc72)]-0x1)*_0xc7b6cb[_0x573991(0x2470)][_0x573991(0x25bb)];_0xc7b6cb['paginatedInteractions']=_0x28c606()['orderBy'](_0xc7b6cb[_0x573991(0xb32)],['joinAt'],[_0x573991(0x19d0)]),_0xc7b6cb[_0x573991(0x28db)]=_0x28c606()['drop'](_0xc7b6cb[_0x573991(0xc47)],_0x4c7af1)[_0x573991(0x142e)](0x0,_0xc7b6cb[_0x573991(0x2470)][_0x573991(0x25bb)]);}function _0x2a3205(_0x5fd31b){const _0x58a798=_0x481115;_0xc7b6cb['openchannelQueuesTotal']=_0x5fd31b[_0x58a798(0xb90)]?_0x5fd31b[_0x58a798(0xb90)]:0x0,_0xc7b6cb[_0x58a798(0x600)]=_0x5fd31b?_0x28c606()[_0x58a798(0x161e)](_0x5fd31b[_0x58a798(0x28b8)]?_0x5fd31b[_0x58a798(0x28b8)]:[],'id'):{},_0x562dc4();}function _0x47c043(){const _0x45bad7=_0x481115;_0xc7b6cb['query']['offset']=(_0xc7b6cb[_0x45bad7(0x289a)][_0x45bad7(0xc72)]-0x1)*_0xc7b6cb[_0x45bad7(0x289a)][_0x45bad7(0x25bb)],_0xc7b6cb[_0x45bad7(0x1713)]=_0x2de96f[_0x45bad7(0x2e8)][_0x45bad7(0x1f2c)](_0xc7b6cb[_0x45bad7(0x289a)],_0x2a3205)['$promise'];}let _0x189a65=!![],_0x2a1197=0x1;_0x18dd47[_0x481115(0xc62)](_0x481115(0x1200),function(_0x4901e1,_0x35f9cc){const _0x4f91cf=_0x481115;_0x189a65?_0x220d15(function(){_0x189a65=![];}):(!_0x35f9cc&&(_0x2a1197=_0xc7b6cb[_0x4f91cf(0x289a)][_0x4f91cf(0xc72)]),_0x4901e1!==_0x35f9cc&&(_0xc7b6cb[_0x4f91cf(0x289a)][_0x4f91cf(0xc72)]=0x1),!_0x4901e1&&(_0xc7b6cb[_0x4f91cf(0x289a)]['page']=_0x2a1197),_0xc7b6cb[_0x4f91cf(0xc32)]());});function _0x57653e(_0x597262){return _0x28c606()['size'](_0x597262);}function _0x562dc4(){const _0x496cf4=_0x481115;_0x28c606()[_0x496cf4(0x1789)](_0xc7b6cb['openchannelQueues'],function(_0x103d53,_0x546fc6){const _0x208366=_0x496cf4;_0xc7b6cb[_0x208366(0x677)][_0x546fc6]&&(_0xc7b6cb['openchannelQueues'][_0x546fc6][_0x208366(0x188f)]=_0xc7b6cb[_0x208366(0x677)][_0x546fc6]['waiting']||0x0);});}function _0x1eac20(_0x38e150){const _0x16b922=_0x481115;_0xc7b6cb[_0x16b922(0x600)][_0x38e150['id']]&&(_0xc7b6cb[_0x16b922(0x677)][_0x38e150['id']]&&(_0x28c606()[_0x16b922(0x14fe)](_0xc7b6cb['rpcOpenchannelQueues'][_0x38e150['id']],_0x28c606()[_0x16b922(0x27bb)](_0x38e150,_0x262ac8)),_0x28c606()[_0x16b922(0x14fe)](_0xc7b6cb['openchannelQueues'][_0x38e150['id']],_0x28c606()['pick'](_0x38e150,_0x262ac8))));}function _0x253b8d(_0x1a3330){const _0x5206bf=_0x481115;!_0x28c606()['isNil'](_0x1a3330)&&(_0xc7b6cb[_0x5206bf(0x677)][_0x1a3330['id']]=_0x28c606()[_0x5206bf(0x27bb)](_0x1a3330,_0x262ac8));}function _0x4bfb6a(_0x30cc62){const _0x4f5e6d=_0x481115;!_0x28c606()[_0x4f5e6d(0x28d7)](_0x30cc62)&&(_0xc7b6cb['rpcOpenchannelQueues'][_0x30cc62['id']]&&_0x28c606()[_0x4f5e6d(0x14fe)](_0xc7b6cb[_0x4f5e6d(0x677)][_0x30cc62['id']],_0x28c606()[_0x4f5e6d(0x27bb)](_0x30cc62,_0x262ac8)),_0xc7b6cb[_0x4f5e6d(0x600)][_0x30cc62['id']]&&_0x28c606()[_0x4f5e6d(0x14fe)](_0xc7b6cb[_0x4f5e6d(0x600)][_0x30cc62['id']],_0x28c606()[_0x4f5e6d(0x27bb)](_0x30cc62,_0x262ac8)));}function _0x385874(_0x3fe916){const _0x26360c=_0x481115;!_0x28c606()['isNil'](_0x3fe916)&&(delete _0xc7b6cb['rpcOpenchannelQueues'][_0x3fe916['id']],delete _0xc7b6cb[_0x26360c(0x600)][_0x3fe916['id']]);}function _0xa31652(_0x57ce1c){const _0x2b2222=_0x481115;_0x28c606()[_0x2b2222(0x26d4)](_0x57ce1c[_0x2b2222(0x246c)])===_0x537082[_0x2b2222(0x808)]()['id']&&_0xc7b6cb[_0x2b2222(0xc32)]();}function _0x36185b(_0x3a7375){const _0x2d2213=_0x481115;_0x28c606()['toInteger'](_0x3a7375[_0x2d2213(0x246c)])===_0x537082[_0x2d2213(0x808)]()['id']&&_0xc7b6cb[_0x2d2213(0xc32)]();}function _0x465770(_0x999bf3){const _0x25c2e8=_0x481115;_0xc7b6cb[_0x25c2e8(0x600)][_0x999bf3['queue_id']]&&(_0xc7b6cb[_0x25c2e8(0xb32)][_0x999bf3['id']]=_0x999bf3,_0x18bb13());}function _0x1bb8ac(_0x5edc84){const _0x1fdcde=_0x481115;delete _0xc7b6cb['rpcOpenchannelQueuesWaitingInteractions'][_0x5edc84['id']],_0x3ec35a&&_0xc7b6cb[_0x1fdcde(0x1a89)][_0x1fdcde(0x1954)](_0x5edc84['id']),_0x18bb13();}function _0x561a7(_0x1b2a43){const _0x26c84b=_0x481115;switch(_0x1b2a43){case'chat':return'green-A700-bg';case _0x26c84b(0xc71):return _0x26c84b(0x930);case'sms':return _0x26c84b(0x1cc1);case _0x26c84b(0x1a29):return _0x26c84b(0x1393);case _0x26c84b(0x28ad):return'amber-A200-bg';case _0x26c84b(0x1d37):return'blue-grey-A200-bg';default:return'white-bg';}}_0x18dd47[_0x481115(0x8c7)]('$destroy',function(){const _0x182dfb=_0x481115;_0x3270ac[_0x182dfb(0x1951)](_0x182dfb(0xc85)),_0x3270ac[_0x182dfb(0x1951)](_0x182dfb(0xc05)),_0x3270ac[_0x182dfb(0x1951)](_0x182dfb(0x25a0)),_0x3270ac[_0x182dfb(0x1951)](_0x182dfb(0x291d)),_0x3270ac['removeAllListeners'](_0x182dfb(0x1cf2)),_0x3270ac[_0x182dfb(0x1951)](_0x182dfb(0x14a9)),_0x3270ac[_0x182dfb(0x1951)](_0x182dfb(0x207)),_0x3270ac['removeAllListeners']('openchannel_queue_waiting_interaction:remove');});}const _0x625430=_0x2cad5d;;_0x4c6be3[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),'$document',_0x49a1e3(0x1fe7),_0x49a1e3(0x298c),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x633)];function _0x4c6be3(_0x4cebf0,_0x94b6cc,_0x325a95,_0x709b0f,_0x45975a,_0x5deb9c,_0x2f2103,_0x3637e3,_0x51ef73){const _0xf108c4=_0x49a1e3,_0xc82827=this,_0x104ac7=['id','name','mapAgentsId','waiting'];let _0x50a3f8=!![];_0xc82827[_0xf108c4(0x1e55)]={},_0xc82827[_0xf108c4(0xc87)]=0x0,_0xc82827[_0xf108c4(0x1c99)]={},_0xc82827[_0xf108c4(0xc47)]=[],_0xc82827[_0xf108c4(0x24d7)]=[],_0xc82827[_0xf108c4(0x837)]={},_0xc82827[_0xf108c4(0x289a)]={'id':_0x3637e3[_0xf108c4(0x808)]()['id'],'channel':_0xf108c4(0x10aa),'fields':_0xf108c4(0xc19),'limit':0xa,'page':0x1},_0xc82827[_0xf108c4(0x2470)]={'limit':0xa,'page':0x1},_0xc82827[_0xf108c4(0x1339)]=_0x42d0af,_0xc82827[_0xf108c4(0x15ab)]=_0x36d33a,_0xc82827[_0xf108c4(0x14ae)]=_0x271a8f,_0xc82827['getColorByChannel']=_0x1bb138,_0xc82827[_0xf108c4(0x25c)]=_0x5f25ef,_0xc82827[_0xf108c4(0x1ecf)]=_0x201c0a,_0xc82827['onSaveSmsQueue']=_0x40c970,_0xc82827[_0xf108c4(0x742)]=_0x5f3de0,_0xc82827['onRemoveSmsQueue']=_0x4241d9,_0xc82827[_0xf108c4(0x1c11)]=_0x4976f5,_0xc82827['onRemoveUserSmsQueue']=_0x357e81,_0xc82827['onSaveSmsQueueChannel']=_0x35ad04,_0xc82827[_0xf108c4(0xa56)]=_0x17f28a,_0x51ef73[_0xf108c4(0x1939)](_0xf108c4(0x12d8),_0xc82827[_0xf108c4(0x1ecf)]),_0x51ef73[_0xf108c4(0x1939)]('smsQueue:save',_0xc82827[_0xf108c4(0x1c6a)]),_0x51ef73[_0xf108c4(0x1939)](_0xf108c4(0x683),_0xc82827[_0xf108c4(0x742)]),_0x51ef73[_0xf108c4(0x1939)](_0xf108c4(0xb24),_0xc82827['onRemoveSmsQueue']),_0x51ef73[_0xf108c4(0x1939)]('userSmsQueue:save',_0xc82827[_0xf108c4(0x1c11)]),_0x51ef73[_0xf108c4(0x1939)](_0xf108c4(0xc64),_0xc82827[_0xf108c4(0x1ed9)]),_0x51ef73['onWithoutApply'](_0xf108c4(0xec1),_0xc82827[_0xf108c4(0x229f)]),_0x51ef73['onWithoutApply'](_0xf108c4(0x160b),_0xc82827[_0xf108c4(0xa56)]),_0x2f2103[_0xf108c4(0x19bd)]['getSmsQueues']()['$promise']['then'](function(_0x3d3763){const _0x235843=_0xf108c4;_0xc82827[_0x235843(0x1c99)]=_0x3d3763?_0x28c606()[_0x235843(0x161e)](_0x3d3763[_0x235843(0x28b8)]?_0x3d3763['rows']:[],'id'):{};})[_0xf108c4(0x64a)](function(){const _0x57808a=_0xf108c4;return _0x2f2103[_0x57808a(0x2e8)][_0x57808a(0x1f2c)]({'id':_0x3637e3['getCurrentUser']()['id'],'channel':_0x57808a(0x10aa)})[_0x57808a(0x15e7)];})[_0xf108c4(0x64a)](function(_0x3a22c3){const _0x5d2bbe=_0xf108c4;return _0xc82827['myQueues']=_0x3a22c3[_0x5d2bbe(0x28b8)],_0x2f2103[_0x5d2bbe(0x19bd)]['getSmsQueuesWaitingInteractions']()[_0x5d2bbe(0x15e7)];})[_0xf108c4(0x64a)](function(_0x3c340d){const _0x2ec344=_0xf108c4,_0x36ec69=_0x28c606()[_0x2ec344(0xcec)](_0x3c340d[_0x2ec344(0x28b8)],function(_0x3c0c91){const _0x56c936=_0x2ec344;return _0x28c606()[_0x56c936(0x68a)](_0xc82827['myQueues'],{'id':_0x3c0c91[_0x56c936(0x5dd)]});});_0x3c340d[_0x2ec344(0x28b8)]=_0x36ec69,_0x3c340d[_0x2ec344(0xb90)]=_0x36ec69[_0x2ec344(0x1b9e)],_0x28c606()[_0x2ec344(0x14fe)](_0xc82827[_0x2ec344(0x837)],_0x3c340d?_0x28c606()[_0x2ec344(0x161e)](_0x3c340d[_0x2ec344(0x28b8)]?_0x3c340d['rows']:[],'id'):{});})['catch'](function(_0x11012d){const _0x1646b2=_0xf108c4;console[_0x1646b2(0x1bd0)](_0x11012d);})[_0xf108c4(0x988)](function(){const _0x54e5ca=_0xf108c4;for(let _0x1cbda3=0x0;_0x1cbda3<_0xc82827[_0x54e5ca(0x24d7)][_0x54e5ca(0x1b9e)];_0x1cbda3+=0x1){delete _0xc82827[_0x54e5ca(0x837)][_0xc82827[_0x54e5ca(0x24d7)][_0x1cbda3]];}_0x50a3f8=![],_0xc82827[_0x54e5ca(0x24d7)]=[],_0x36d33a(),_0x5f25ef();});function _0x5f25ef(){const _0x73f910=_0xf108c4,_0x4cecd4=(_0xc82827[_0x73f910(0x2470)][_0x73f910(0xc72)]-0x1)*_0xc82827['queryChannels'][_0x73f910(0x25bb)];_0xc82827[_0x73f910(0xc47)]=_0x28c606()[_0x73f910(0x288e)](_0xc82827[_0x73f910(0x837)],[_0x73f910(0x1d89)],['desc']),_0xc82827[_0x73f910(0x28db)]=_0x28c606()['drop'](_0xc82827['paginatedInteractions'],_0x4cecd4)['slice'](0x0,_0xc82827[_0x73f910(0x2470)][_0x73f910(0x25bb)]);}function _0x42d0af(_0xf20f01){const _0x5d1e28=_0xf108c4;_0xc82827[_0x5d1e28(0xc87)]=_0xf20f01[_0x5d1e28(0xb90)]?_0xf20f01['count']:0x0,_0xc82827[_0x5d1e28(0x1e55)]=_0xf20f01?_0x28c606()['keyBy'](_0xf20f01['rows']?_0xf20f01['rows']:[],'id'):{},_0x5eb3e7();}function _0x36d33a(){const _0xfad592=_0xf108c4;_0xc82827['query'][_0xfad592(0x24f9)]=(_0xc82827[_0xfad592(0x289a)][_0xfad592(0xc72)]-0x1)*_0xc82827['query'][_0xfad592(0x25bb)],_0xc82827['promise']=_0x2f2103[_0xfad592(0x2e8)]['getQueues'](_0xc82827['query'],_0x42d0af)['$promise'];}let _0x2bd678=!![],_0x1e028c=0x1;_0x4cebf0['$watch'](_0xf108c4(0x1200),function(_0x375b44,_0x48986d){const _0x914439=_0xf108c4;_0x2bd678?_0x94b6cc(function(){_0x2bd678=![];}):(!_0x48986d&&(_0x1e028c=_0xc82827[_0x914439(0x289a)][_0x914439(0xc72)]),_0x375b44!==_0x48986d&&(_0xc82827[_0x914439(0x289a)][_0x914439(0xc72)]=0x1),!_0x375b44&&(_0xc82827[_0x914439(0x289a)][_0x914439(0xc72)]=_0x1e028c),_0xc82827[_0x914439(0x15ab)]());});function _0x271a8f(_0x29b21b){const _0x591eef=_0xf108c4;return _0x28c606()[_0x591eef(0x1c97)](_0x29b21b);}function _0x5eb3e7(){const _0x34faad=_0xf108c4;_0x28c606()['forIn'](_0xc82827[_0x34faad(0x1e55)],function(_0x56bf1e,_0x10aa8f){const _0x539a32=_0x34faad;_0xc82827[_0x539a32(0x1c99)][_0x10aa8f]&&(_0xc82827[_0x539a32(0x1e55)][_0x10aa8f][_0x539a32(0x188f)]=_0xc82827[_0x539a32(0x1c99)][_0x10aa8f][_0x539a32(0x188f)]||0x0);});}function _0x201c0a(_0x44bc20){const _0x59088e=_0xf108c4;_0xc82827['smsQueues'][_0x44bc20['id']]&&(_0xc82827[_0x59088e(0x1c99)][_0x44bc20['id']]&&(_0x28c606()[_0x59088e(0x14fe)](_0xc82827[_0x59088e(0x1c99)][_0x44bc20['id']],_0x28c606()[_0x59088e(0x27bb)](_0x44bc20,_0x104ac7)),_0x28c606()['merge'](_0xc82827[_0x59088e(0x1e55)][_0x44bc20['id']],_0x28c606()[_0x59088e(0x27bb)](_0x44bc20,_0x104ac7))));}function _0x40c970(_0x3a0a31){const _0x4aed45=_0xf108c4;!_0x28c606()[_0x4aed45(0x28d7)](_0x3a0a31)&&(_0xc82827[_0x4aed45(0x1c99)][_0x3a0a31['id']]=_0x28c606()[_0x4aed45(0x27bb)](_0x3a0a31,_0x104ac7));}function _0x5f3de0(_0x3b00fc){const _0x313ab6=_0xf108c4;!_0x28c606()[_0x313ab6(0x28d7)](_0x3b00fc)&&(_0xc82827[_0x313ab6(0x1c99)][_0x3b00fc['id']]&&_0x28c606()['merge'](_0xc82827[_0x313ab6(0x1c99)][_0x3b00fc['id']],_0x28c606()['pick'](_0x3b00fc,_0x104ac7)),_0xc82827[_0x313ab6(0x1e55)][_0x3b00fc['id']]&&_0x28c606()['merge'](_0xc82827[_0x313ab6(0x1e55)][_0x3b00fc['id']],_0x28c606()['pick'](_0x3b00fc,_0x104ac7)));}function _0x4241d9(_0x17373a){const _0x216959=_0xf108c4;!_0x28c606()['isNil'](_0x17373a)&&(delete _0xc82827[_0x216959(0x1c99)][_0x17373a['id']],delete _0xc82827[_0x216959(0x1e55)][_0x17373a['id']]);}function _0x4976f5(_0x5be06c){const _0x2dac57=_0xf108c4;_0x28c606()[_0x2dac57(0x26d4)](_0x5be06c['UserId'])===_0x3637e3[_0x2dac57(0x808)]()['id']&&_0xc82827[_0x2dac57(0x15ab)]();}function _0x357e81(_0x3c37bd){const _0x148073=_0xf108c4;_0x28c606()[_0x148073(0x26d4)](_0x3c37bd['UserId'])===_0x3637e3[_0x148073(0x808)]()['id']&&_0xc82827['getSmsQueues']();}function _0x35ad04(_0x5d4cc6){const _0x5af1b0=_0xf108c4;_0xc82827['smsQueues'][_0x5d4cc6[_0x5af1b0(0x5dd)]]&&(_0xc82827[_0x5af1b0(0x837)][_0x5d4cc6['id']]=_0x5d4cc6,_0x5f25ef());}function _0x17f28a(_0x548c32){const _0x4d717a=_0xf108c4;delete _0xc82827[_0x4d717a(0x837)][_0x548c32['id']],_0x50a3f8&&_0xc82827['deleteSmsQueuesWaitingInteractions'][_0x4d717a(0x1954)](_0x548c32['id']),_0x5f25ef();}function _0x1bb138(_0x127086){const _0x40a107=_0xf108c4;switch(_0x127086){case _0x40a107(0xf52):return _0x40a107(0x1b61);case _0x40a107(0xc71):return _0x40a107(0x930);case'sms':return _0x40a107(0x1cc1);case _0x40a107(0x1a29):return _0x40a107(0x1393);case'openchannel':return _0x40a107(0x712);case _0x40a107(0x1d37):return _0x40a107(0x69d);default:return _0x40a107(0xef4);}}_0x4cebf0[_0xf108c4(0x8c7)](_0xf108c4(0xf28),function(){const _0x2f81b5=_0xf108c4;_0x51ef73[_0x2f81b5(0x1951)](_0x2f81b5(0x12d8)),_0x51ef73['removeAllListeners']('smsQueue:save'),_0x51ef73[_0x2f81b5(0x1951)](_0x2f81b5(0x683)),_0x51ef73[_0x2f81b5(0x1951)](_0x2f81b5(0xb24)),_0x51ef73[_0x2f81b5(0x1951)](_0x2f81b5(0x2591)),_0x51ef73['removeAllListeners'](_0x2f81b5(0xc64)),_0x51ef73[_0x2f81b5(0x1951)](_0x2f81b5(0xec1)),_0x51ef73[_0x2f81b5(0x1951)](_0x2f81b5(0x160b));});}const _0x22b889=_0x4c6be3;;_0x17a49f[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x20d4),_0x49a1e3(0x212a),'$document',_0x49a1e3(0x1fe7),_0x49a1e3(0x298c),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x633)];function _0x17a49f(_0x13ec28,_0x57bcf2,_0xa9f77f,_0x2191ac,_0x282537,_0x24355b,_0x433f0c,_0x3ae296,_0x872e23){const _0x4dad4c=_0x49a1e3,_0xd523b5=this,_0x10aaf8=[_0x4dad4c(0x2185),_0x4dad4c(0x188f),_0x4dad4c(0xa69),_0x4dad4c(0x11b3)];_0xd523b5[_0x4dad4c(0x2dc)]={},_0xd523b5[_0x4dad4c(0x2245)]=0x0,_0xd523b5[_0x4dad4c(0xd9c)]={},_0xd523b5[_0x4dad4c(0x137a)]={},_0xd523b5[_0x4dad4c(0x832)]={},_0xd523b5[_0x4dad4c(0x143b)]={},_0xd523b5[_0x4dad4c(0x709)]=[],_0xd523b5[_0x4dad4c(0x2789)]=!![],_0xd523b5['query']={'id':_0x3ae296['getCurrentUser']()['id'],'fields':'id,name,type,dialMethod,dialActive','channel':_0x4dad4c(0x227c),'type':_0x4dad4c(0x12a4),'limit':0xa,'page':0x1},_0xd523b5['queryChannels']={'limit':0xa,'page':0x1},_0xd523b5['success']=_0x507092,_0xd523b5[_0x4dad4c(0x137a)]=_0x25328b,_0xd523b5['getSize']=_0x407ff5,_0xd523b5[_0x4dad4c(0x1ecf)]=_0x359dbc,_0xd523b5[_0x4dad4c(0x1179)]=_0x483546,_0xd523b5[_0x4dad4c(0xf93)]=_0x245f1b,_0xd523b5[_0x4dad4c(0x291f)]=_0x846d1,_0xd523b5['onUpdateVoiceQueue']=_0x5289ca,_0xd523b5['onRemoveVoiceQueue']=_0x1583f6,_0x872e23[_0x4dad4c(0x1939)](_0x4dad4c(0xb9c),_0xd523b5[_0x4dad4c(0x1ecf)]),_0x872e23[_0x4dad4c(0x1939)](_0x4dad4c(0xed5),_0xd523b5[_0x4dad4c(0x1179)]),_0x872e23['onWithoutApply'](_0x4dad4c(0x44b),_0xd523b5[_0x4dad4c(0xf93)]),_0x872e23[_0x4dad4c(0x1939)](_0x4dad4c(0x289d),_0xd523b5['onUserVoiceQueue']),_0x872e23[_0x4dad4c(0x1939)]('voiceQueue:save',_0xd523b5['onSaveVoiceQueue']),_0x872e23[_0x4dad4c(0x1939)](_0x4dad4c(0x2526),_0xd523b5[_0x4dad4c(0x85d)]),_0x872e23['onWithoutApply'](_0x4dad4c(0x4ff),_0xd523b5[_0x4dad4c(0x85c)]),_0x433f0c[_0x4dad4c(0x2e8)][_0x4dad4c(0x1f2c)](_0xd523b5[_0x4dad4c(0x289a)])[_0x4dad4c(0x15e7)][_0x4dad4c(0x64a)](function(_0x343e3a){const _0x395440=_0x4dad4c;return _0xd523b5[_0x395440(0x189f)]=_0x343e3a,_0x433f0c[_0x395440(0x19bd)][_0x395440(0x137a)]()[_0x395440(0x15e7)];})[_0x4dad4c(0x64a)](function(_0x33e92e){const _0xe2e9eb=_0x4dad4c,_0x3e33ac=_0x33e92e[_0xe2e9eb(0x28b8)],_0x28f4f7=_0x28c606()[_0xe2e9eb(0x161e)](_0x3e33ac,'id');for(let _0x22aea6=0x0;_0x22aea6<_0xd523b5['myQueues'][_0xe2e9eb(0xb90)];_0x22aea6++){const _0x25f9d1=_0xd523b5[_0xe2e9eb(0x189f)]['rows'][_0x22aea6];_0xd523b5['rpcVoiceQueues'][_0x25f9d1['id']]=_0x28f4f7[_0x25f9d1['id']];}return _0x433f0c[_0xe2e9eb(0x19bd)]['getVoiceQueuesChannels']()['$promise'];})[_0x4dad4c(0x64a)](function(_0x2526db){const _0x4465ea=_0x4dad4c;_0xd523b5[_0x4465ea(0x832)]=_0x2526db?_0x28c606()[_0x4465ea(0x161e)](_0x2526db[_0x4465ea(0x28b8)]?_0x28c606()[_0x4465ea(0xcec)](_0x2526db[_0x4465ea(0x28b8)],function(_0x4a7258){const _0xf70b56=_0x4465ea;if(_0x4a7258['type']===_0xf70b56(0x12a4)&&!_0x4a7258['queuecallerleaveAt']&&_0x28c606()[_0xf70b56(0x27bc)](_0xd523b5[_0xf70b56(0x189f)]['rows'],{'name':_0x4a7258[_0xf70b56(0x1e4e)]}))return!![];return![];}):[],'uniqueid'):{};})[_0x4dad4c(0x20cd)](function(_0x1551aa){const _0x907fa5=_0x4dad4c;console[_0x907fa5(0x1bd0)](_0x1551aa);})[_0x4dad4c(0x988)](function(){const _0x292aa5=_0x4dad4c;_0x28c606()[_0x292aa5(0x14fe)](_0xd523b5[_0x292aa5(0x832)],_0xd523b5[_0x292aa5(0x143b)]);for(let _0x25ce54=0x0;_0x25ce54<_0xd523b5[_0x292aa5(0x709)][_0x292aa5(0x1b9e)];_0x25ce54+=0x1){delete _0xd523b5[_0x292aa5(0x832)][_0xd523b5['deleteVoiceQueuesChannels'][_0x25ce54]];}_0xd523b5['load']=![],_0xd523b5['addVoiceQueuesChannels']={},_0xd523b5[_0x292aa5(0x709)]=[],_0xd523b5[_0x292aa5(0x137a)]();});function _0x507092(_0x3dd457){const _0x1ed319=_0x4dad4c;_0xd523b5[_0x1ed319(0x2245)]=_0x3dd457[_0x1ed319(0xb90)]?_0x3dd457[_0x1ed319(0xb90)]:0x0,_0xd523b5[_0x1ed319(0x2dc)]=_0x3dd457?_0x28c606()['keyBy'](_0x3dd457['rows']?_0x3dd457[_0x1ed319(0x28b8)]:[],'id'):{},_0x300d00();}function _0x25328b(){const _0x2d1699=_0x4dad4c;_0xd523b5[_0x2d1699(0x289a)][_0x2d1699(0x24f9)]=(_0xd523b5[_0x2d1699(0x289a)]['page']-0x1)*_0xd523b5[_0x2d1699(0x289a)][_0x2d1699(0x25bb)],_0xd523b5[_0x2d1699(0x1713)]=_0x433f0c['user'][_0x2d1699(0x1f2c)](_0xd523b5[_0x2d1699(0x289a)],_0x507092)[_0x2d1699(0x15e7)];}let _0x2eeb47=!![],_0x55a23e=0x1;_0x13ec28[_0x4dad4c(0xc62)](_0x4dad4c(0x1200),function(_0x419132,_0x166e8d){const _0x3597b9=_0x4dad4c;_0x2eeb47?_0x57bcf2(function(){_0x2eeb47=![];}):(!_0x166e8d&&(_0x55a23e=_0xd523b5['query'][_0x3597b9(0xc72)]),_0x419132!==_0x166e8d&&(_0xd523b5[_0x3597b9(0x289a)][_0x3597b9(0xc72)]=0x1),!_0x419132&&(_0xd523b5[_0x3597b9(0x289a)][_0x3597b9(0xc72)]=_0x55a23e),_0xd523b5['getVoiceQueues']());});function _0x407ff5(_0x18260e){const _0x2161ac=_0x4dad4c;return _0x28c606()[_0x2161ac(0x1c97)](_0x18260e);}function _0x300d00(){const _0x4717c0=_0x4dad4c;_0x28c606()[_0x4717c0(0x1789)](_0xd523b5[_0x4717c0(0x2dc)],function(_0x4a8732,_0x24f358){const _0x16fb40=_0x4717c0;_0xd523b5['rpcVoiceQueues'][_0x24f358]&&(_0xd523b5[_0x16fb40(0x2dc)][_0x24f358][_0x16fb40(0x188f)]=_0xd523b5[_0x16fb40(0xd9c)][_0x24f358][_0x16fb40(0x188f)]||0x0);});}function _0x359dbc(_0x5673bf){const _0x126d96=_0x4dad4c;_0xd523b5[_0x126d96(0x2dc)][_0x5673bf['id']]&&(_0xd523b5[_0x126d96(0xd9c)][_0x5673bf['id']]&&(_0xd523b5['rpcVoiceQueues'][_0x5673bf['id']]=_0x5673bf,_0x28c606()[_0x126d96(0x14fe)](_0xd523b5[_0x126d96(0x2dc)][_0x5673bf['id']],_0x28c606()[_0x126d96(0x27bb)](_0x5673bf,_0x10aaf8))));}function _0x483546(_0x3393de){const _0x54ed04=_0x4dad4c;_0x3393de[_0x54ed04(0x2185)]==='inbound'&&(_0x3393de[_0x54ed04(0x2910)]?(delete _0xd523b5[_0x54ed04(0x832)][_0x3393de[_0x54ed04(0x2947)]],_0xd523b5[_0x54ed04(0x2789)]&&_0xd523b5[_0x54ed04(0x709)][_0x54ed04(0x1954)](_0x3393de[_0x54ed04(0x2947)])):(_0xd523b5['rpcVoiceQueuesChannels'][_0x3393de['uniqueid']]=_0x3393de,_0xd523b5[_0x54ed04(0x2789)]&&(_0xd523b5[_0x54ed04(0x143b)][_0x3393de[_0x54ed04(0x2947)]]=_0x3393de)));}function _0x846d1(_0x3c5038){const _0x535425=_0x4dad4c;!_0x28c606()['isNil'](_0x3c5038)&&(_0xd523b5['rpcVoiceQueues'][_0x3c5038['id']]=_0x28c606()[_0x535425(0x27bb)](_0x3c5038,_0x10aaf8));}function _0x5289ca(_0x211c8a){const _0x29a7fb=_0x4dad4c;!_0x28c606()['isNil'](_0x211c8a)&&(_0xd523b5[_0x29a7fb(0xd9c)][_0x211c8a['id']]&&_0x28c606()['merge'](_0xd523b5[_0x29a7fb(0xd9c)][_0x211c8a['id']],_0x28c606()[_0x29a7fb(0x27bb)](_0x211c8a,_0x10aaf8)),_0xd523b5['voiceQueues'][_0x211c8a['id']]&&_0x28c606()[_0x29a7fb(0x14fe)](_0xd523b5[_0x29a7fb(0x2dc)][_0x211c8a['id']],_0x28c606()[_0x29a7fb(0x27bb)](_0x211c8a,_0x10aaf8)));}function _0x1583f6(_0x4fbcbc){const _0x25e9a6=_0x4dad4c;!_0x28c606()[_0x25e9a6(0x28d7)](_0x4fbcbc)&&(delete _0xd523b5[_0x25e9a6(0xd9c)][_0x4fbcbc['id']],delete _0xd523b5[_0x25e9a6(0x2dc)][_0x4fbcbc['id']]);}function _0x245f1b(_0x93c07d){const _0x3fb4ea=_0x4dad4c;_0x28c606()[_0x3fb4ea(0x26d4)](_0x93c07d[_0x3fb4ea(0x246c)])===_0x3ae296[_0x3fb4ea(0x808)]()['id']&&_0xd523b5[_0x3fb4ea(0x137a)]();}_0x13ec28[_0x4dad4c(0x8c7)](_0x4dad4c(0xf28),function(){const _0x578940=_0x4dad4c;_0x872e23['removeAllListeners'](_0x578940(0xb9c)),_0x872e23[_0x578940(0x1951)](_0x578940(0xed5)),_0x872e23[_0x578940(0x1951)](_0x578940(0x44b)),_0x872e23[_0x578940(0x1951)](_0x578940(0x289d)),_0x872e23[_0x578940(0x1951)](_0x578940(0x2007)),_0x872e23[_0x578940(0x1951)](_0x578940(0x4ff)),_0x872e23[_0x578940(0x1951)]('voiceQueue:remove');});}const _0x12a2eb=_0x17a49f;;_0x751a7b[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$timeout','$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x1fe7),_0x49a1e3(0x298c),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'socket'];function _0x751a7b(_0x30437a,_0xdabab5,_0x3f4232,_0x235b12,_0x223fc4,_0x4c2793,_0x1e4568,_0x401381,_0x8dd4f0){const _0x220229=_0x49a1e3,_0x1d8155=this,_0x1e4702=['id',_0x220229(0x2494),_0x220229(0x2044),_0x220229(0x188f)];let _0x19a272=!![];_0x1d8155[_0x220229(0x1cf1)]={},_0x1d8155['whatsappQueuesTotal']=0x0,_0x1d8155[_0x220229(0x1deb)]={},_0x1d8155[_0x220229(0xc47)]=[],_0x1d8155[_0x220229(0x1df2)]=[],_0x1d8155[_0x220229(0xc0c)]={},_0x1d8155['query']={'id':_0x401381[_0x220229(0x808)]()['id'],'channel':_0x220229(0x1a29),'fields':_0x220229(0xc19),'limit':0xa,'page':0x1},_0x1d8155[_0x220229(0x2470)]={'limit':0xa,'page':0x1},_0x1d8155[_0x220229(0x1339)]=_0x5a99a3,_0x1d8155[_0x220229(0x243b)]=_0x32ac5d,_0x1d8155[_0x220229(0x14ae)]=_0xa9530e,_0x1d8155['getColorByChannel']=_0x2709a7,_0x1d8155[_0x220229(0x25c)]=_0x15469e,_0x1d8155['onSaveQueue']=_0x1529d6,_0x1d8155[_0x220229(0x222f)]=_0x1df778,_0x1d8155[_0x220229(0x190f)]=_0x49f1cd,_0x1d8155[_0x220229(0x17d2)]=_0x35d5ec,_0x1d8155[_0x220229(0x6cd)]=_0x467ae2,_0x1d8155[_0x220229(0x302)]=_0x432bc0,_0x1d8155['onSaveWhatsappQueueChannel']=_0x2b51,_0x1d8155['onRemoveWhatsappQueueChannel']=_0x1471a6,_0x8dd4f0[_0x220229(0x1939)](_0x220229(0x1477),_0x1d8155['onSaveQueue']),_0x8dd4f0['onWithoutApply']('whatsappQueue:save',_0x1d8155[_0x220229(0x222f)]),_0x8dd4f0[_0x220229(0x1939)]('whatsappQueue:update',_0x1d8155[_0x220229(0x190f)]),_0x8dd4f0[_0x220229(0x1939)](_0x220229(0x12e1),_0x1d8155[_0x220229(0x17d2)]),_0x8dd4f0['onWithoutApply'](_0x220229(0x237f),_0x1d8155[_0x220229(0x6cd)]),_0x8dd4f0['onWithoutApply']('userWhatsappQueue:remove',_0x1d8155[_0x220229(0x302)]),_0x8dd4f0[_0x220229(0x1939)]('whatsapp_queue_waiting_interaction:save',_0x1d8155[_0x220229(0x1822)]),_0x8dd4f0[_0x220229(0x1939)]('whatsapp_queue_waiting_interaction:remove',_0x1d8155['onRemoveWhatsappQueueChannel']),_0x1e4568[_0x220229(0x19bd)][_0x220229(0x243b)]()[_0x220229(0x15e7)][_0x220229(0x64a)](function(_0x44e6dd){const _0x21cc23=_0x220229;_0x1d8155['rpcWhatsappQueues']=_0x44e6dd?_0x28c606()[_0x21cc23(0x161e)](_0x44e6dd[_0x21cc23(0x28b8)]?_0x44e6dd[_0x21cc23(0x28b8)]:[],'id'):{};})[_0x220229(0x64a)](function(){const _0x1f4071=_0x220229;return _0x1e4568[_0x1f4071(0x2e8)][_0x1f4071(0x1f2c)]({'id':_0x401381[_0x1f4071(0x808)]()['id'],'channel':'whatsapp'})[_0x1f4071(0x15e7)];})[_0x220229(0x64a)](function(_0x5b124a){const _0x3828bc=_0x220229;return _0x1d8155['myQueues']=_0x5b124a[_0x3828bc(0x28b8)],_0x1e4568[_0x3828bc(0x19bd)][_0x3828bc(0x22d1)]()['$promise'];})[_0x220229(0x64a)](function(_0x4ea3d9){const _0x486fda=_0x220229,_0x542185=_0x28c606()['filter'](_0x4ea3d9[_0x486fda(0x28b8)],function(_0x378b56){const _0x3d74d9=_0x486fda;return _0x28c606()[_0x3d74d9(0x68a)](_0x1d8155[_0x3d74d9(0x189f)],{'id':_0x378b56[_0x3d74d9(0x5dd)]});});_0x4ea3d9[_0x486fda(0x28b8)]=_0x542185,_0x4ea3d9[_0x486fda(0xb90)]=_0x542185[_0x486fda(0x1b9e)],_0x28c606()[_0x486fda(0x14fe)](_0x1d8155[_0x486fda(0xc0c)],_0x4ea3d9?_0x28c606()['keyBy'](_0x4ea3d9[_0x486fda(0x28b8)]?_0x4ea3d9[_0x486fda(0x28b8)]:[],'id'):{});})[_0x220229(0x20cd)](function(_0x5638){console['error'](_0x5638);})['finally'](function(){const _0x26b36d=_0x220229;for(let _0x3fcd57=0x0;_0x3fcd57<_0x1d8155[_0x26b36d(0x1df2)][_0x26b36d(0x1b9e)];_0x3fcd57+=0x1){delete _0x1d8155[_0x26b36d(0xc0c)][_0x1d8155['deleteWhatsappQueuesWaitingInteractions'][_0x3fcd57]];}_0x19a272=![],_0x1d8155[_0x26b36d(0x1df2)]=[],_0x32ac5d(),_0x15469e();});function _0x15469e(){const _0x207636=_0x220229,_0x539dea=(_0x1d8155[_0x207636(0x2470)][_0x207636(0xc72)]-0x1)*_0x1d8155['queryChannels'][_0x207636(0x25bb)];_0x1d8155[_0x207636(0xc47)]=_0x28c606()['orderBy'](_0x1d8155[_0x207636(0xc0c)],[_0x207636(0x1d89)],['desc']),_0x1d8155[_0x207636(0x28db)]=_0x28c606()[_0x207636(0xfeb)](_0x1d8155[_0x207636(0xc47)],_0x539dea)[_0x207636(0x142e)](0x0,_0x1d8155[_0x207636(0x2470)][_0x207636(0x25bb)]);}function _0x5a99a3(_0x1f2363){const _0x33add8=_0x220229;_0x1d8155[_0x33add8(0x1d0e)]=_0x1f2363['count']?_0x1f2363[_0x33add8(0xb90)]:0x0,_0x1d8155['whatsappQueues']=_0x1f2363?_0x28c606()['keyBy'](_0x1f2363[_0x33add8(0x28b8)]?_0x1f2363[_0x33add8(0x28b8)]:[],'id'):{},_0x3e414b();}function _0x32ac5d(){const _0x45e2bb=_0x220229;_0x1d8155[_0x45e2bb(0x289a)][_0x45e2bb(0x24f9)]=(_0x1d8155[_0x45e2bb(0x289a)]['page']-0x1)*_0x1d8155['query'][_0x45e2bb(0x25bb)],_0x1d8155[_0x45e2bb(0x1713)]=_0x1e4568[_0x45e2bb(0x2e8)]['getQueues'](_0x1d8155[_0x45e2bb(0x289a)],_0x5a99a3)[_0x45e2bb(0x15e7)];}let _0x34f672=!![],_0x4fd0c4=0x1;_0x30437a[_0x220229(0xc62)](_0x220229(0x1200),function(_0x39b6a3,_0x3d21b5){const _0x3d4d85=_0x220229;_0x34f672?_0xdabab5(function(){_0x34f672=![];}):(!_0x3d21b5&&(_0x4fd0c4=_0x1d8155[_0x3d4d85(0x289a)]['page']),_0x39b6a3!==_0x3d21b5&&(_0x1d8155[_0x3d4d85(0x289a)]['page']=0x1),!_0x39b6a3&&(_0x1d8155[_0x3d4d85(0x289a)][_0x3d4d85(0xc72)]=_0x4fd0c4),_0x1d8155[_0x3d4d85(0x243b)]());});function _0xa9530e(_0xd4d9a3){const _0x597e51=_0x220229;return _0x28c606()[_0x597e51(0x1c97)](_0xd4d9a3);}function _0x3e414b(){const _0x3baccd=_0x220229;_0x28c606()[_0x3baccd(0x1789)](_0x1d8155[_0x3baccd(0x1cf1)],function(_0x106fc5,_0xed4f87){const _0x25906e=_0x3baccd;_0x1d8155[_0x25906e(0x1deb)][_0xed4f87]&&(_0x1d8155[_0x25906e(0x1cf1)][_0xed4f87][_0x25906e(0x188f)]=_0x1d8155[_0x25906e(0x1deb)][_0xed4f87][_0x25906e(0x188f)]||0x0);});}function _0x1529d6(_0x436923){const _0x4036d7=_0x220229;_0x1d8155[_0x4036d7(0x1cf1)][_0x436923['id']]&&(_0x1d8155[_0x4036d7(0x1deb)][_0x436923['id']]&&(_0x28c606()[_0x4036d7(0x14fe)](_0x1d8155['rpcWhatsappQueues'][_0x436923['id']],_0x28c606()['pick'](_0x436923,_0x1e4702)),_0x28c606()['merge'](_0x1d8155[_0x4036d7(0x1cf1)][_0x436923['id']],_0x28c606()[_0x4036d7(0x27bb)](_0x436923,_0x1e4702))));}function _0x1df778(_0x422493){const _0x1d02c1=_0x220229;!_0x28c606()[_0x1d02c1(0x28d7)](_0x422493)&&(_0x1d8155[_0x1d02c1(0x1deb)][_0x422493['id']]=_0x28c606()[_0x1d02c1(0x27bb)](_0x422493,_0x1e4702));}function _0x49f1cd(_0xba53ba){const _0x107965=_0x220229;!_0x28c606()['isNil'](_0xba53ba)&&(_0x1d8155[_0x107965(0x1deb)][_0xba53ba['id']]&&_0x28c606()[_0x107965(0x14fe)](_0x1d8155[_0x107965(0x1deb)][_0xba53ba['id']],_0x28c606()['pick'](_0xba53ba,_0x1e4702)),_0x1d8155[_0x107965(0x1cf1)][_0xba53ba['id']]&&_0x28c606()[_0x107965(0x14fe)](_0x1d8155[_0x107965(0x1cf1)][_0xba53ba['id']],_0x28c606()[_0x107965(0x27bb)](_0xba53ba,_0x1e4702)));}function _0x35d5ec(_0x5951ff){const _0x56a003=_0x220229;!_0x28c606()[_0x56a003(0x28d7)](_0x5951ff)&&(delete _0x1d8155[_0x56a003(0x1deb)][_0x5951ff['id']],delete _0x1d8155[_0x56a003(0x1cf1)][_0x5951ff['id']]);}function _0x467ae2(_0x1ee527){const _0xdb7a21=_0x220229;_0x28c606()[_0xdb7a21(0x26d4)](_0x1ee527['UserId'])===_0x401381[_0xdb7a21(0x808)]()['id']&&_0x1d8155[_0xdb7a21(0x243b)]();}function _0x432bc0(_0x5012b5){const _0x5eb503=_0x220229;_0x28c606()[_0x5eb503(0x26d4)](_0x5012b5[_0x5eb503(0x246c)])===_0x401381['getCurrentUser']()['id']&&_0x1d8155[_0x5eb503(0x243b)]();}function _0x2b51(_0x3d55e5){const _0x562941=_0x220229;_0x1d8155['whatsappQueues'][_0x3d55e5[_0x562941(0x5dd)]]&&(_0x1d8155[_0x562941(0xc0c)][_0x3d55e5['id']]=_0x3d55e5,_0x15469e());}function _0x1471a6(_0x479314){const _0x339184=_0x220229;delete _0x1d8155[_0x339184(0xc0c)][_0x479314['id']],_0x19a272&&_0x1d8155[_0x339184(0x1df2)][_0x339184(0x1954)](_0x479314['id']),_0x15469e();}function _0x2709a7(_0x361855){const _0xfea1c=_0x220229;switch(_0x361855){case _0xfea1c(0xf52):return'green-A700-bg';case _0xfea1c(0xc71):return'teal-bg';case'sms':return'orange-bg';case _0xfea1c(0x1a29):return _0xfea1c(0x1393);case _0xfea1c(0x28ad):return _0xfea1c(0x712);case _0xfea1c(0x1d37):return _0xfea1c(0x69d);default:return _0xfea1c(0xef4);}}_0x30437a['$on'](_0x220229(0xf28),function(){const _0x6f31a6=_0x220229;_0x8dd4f0[_0x6f31a6(0x1951)]('whatsapp_queue:save'),_0x8dd4f0['removeAllListeners']('whatsappQueue:save'),_0x8dd4f0[_0x6f31a6(0x1951)](_0x6f31a6(0xd62)),_0x8dd4f0[_0x6f31a6(0x1951)](_0x6f31a6(0x12e1)),_0x8dd4f0[_0x6f31a6(0x1951)]('userWhatsappQueue:save'),_0x8dd4f0[_0x6f31a6(0x1951)]('userWhatsappQueue:remove'),_0x8dd4f0[_0x6f31a6(0x1951)](_0x6f31a6(0x2be)),_0x8dd4f0['removeAllListeners'](_0x6f31a6(0x6dd));});}const _0x1ce760=_0x751a7b;;_0x594860[_0x49a1e3(0x1e73)]=['$scope','$timeout',_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x1fe7),'$translate','api',_0x49a1e3(0xdcf),_0x49a1e3(0x633),_0x49a1e3(0x680),_0x49a1e3(0x2834)];function _0x594860(_0x548d6a,_0x360414,_0x10a4b3,_0x50ea96,_0x47fb99,_0x4c04ea,_0x20cdb5,_0x516be5,_0x38ebac,_0x4e48c5,_0x42998b){const _0x5ce7db=_0x49a1e3,_0x34349b=this;_0x34349b[_0x5ce7db(0x2e8)]=_0x516be5[_0x5ce7db(0x808)](),_0x34349b[_0x5ce7db(0x1947)]={},_0x34349b[_0x5ce7db(0x28d6)]={},_0x34349b[_0x5ce7db(0x16a6)]={'count':0x0,'rows':[]},_0x34349b[_0x5ce7db(0x17e7)]={'count':0x0,'rows':[]},_0x34349b['query']={'includeAll':!![],'sort':_0x5ce7db(0x260c),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x34349b[_0x5ce7db(0x1b2f)]={'fields':[{'name':'Id','column':'id','type':'number'},{'name':'Contact','column':_0x5ce7db(0x1c38),'type':_0x5ce7db(0x21b7),'options':{'searchFields':[_0x5ce7db(0x2518),_0x5ce7db(0x21c4),_0x5ce7db(0xd47)],'route':{'model':_0x5ce7db(0xdf5),'action':'get','params':{'fields':_0x5ce7db(0x3ef),'Contact':_0x5ce7db(0xb96),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':['$ne']}},{'name':_0x5ce7db(0x19fb),'column':_0x5ce7db(0xb49),'type':_0x5ce7db(0x39b),'options':{'excludedOperators':[_0x5ce7db(0x1743),_0x5ce7db(0x14b5)]}},{'name':_0x5ce7db(0x2311),'column':_0x5ce7db(0x1140),'type':_0x5ce7db(0x2926),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x5ce7db(0x5cd)}],'options':{'excludedOperators':[_0x5ce7db(0x14b5)]}},{'name':'Agent','column':_0x5ce7db(0x1098),'type':_0x5ce7db(0x21b7),'options':{'table':'i','route':{'model':_0x5ce7db(0x2e8),'action':'get','params':{'role':_0x5ce7db(0x11ae),'fields':_0x5ce7db(0xd53),'nolimit':!![]}},'searchFields':[_0x5ce7db(0x15c),_0x5ce7db(0x2494)],'extraOperators':['$substring'],'excludedOperators':[_0x5ce7db(0x14b5)]}},{'name':'Account','column':_0x5ce7db(0x1da3),'type':_0x5ce7db(0x20ae),'options':{'route':{'model':_0x5ce7db(0x2e8),'action':_0x5ce7db(0x1010),'params':{'id':_0x34349b[_0x5ce7db(0x2e8)]['id'],'nolimit':!![]}}}},{'name':'Tags','column':_0x5ce7db(0x1e9f),'type':_0x5ce7db(0x20ae),'options':{'route':{'model':_0x5ce7db(0xac8),'action':_0x5ce7db(0x896),'params':{'nolimit':!![]}},'excludedOperators':[_0x5ce7db(0x9eb)]}},{'name':_0x5ce7db(0x1967),'column':_0x5ce7db(0x2378),'type':'date','options':{'excludedOperators':[_0x5ce7db(0x14b5)]}},{'name':_0x5ce7db(0xff4),'column':_0x5ce7db(0x18d3),'type':_0x5ce7db(0x2926),'values':[{'id':0x1,'translate':_0x5ce7db(0x1889)},{'id':0x0,'translate':_0x5ce7db(0x13be)}],'options':{'excludedOperators':['$ne']}}]},_0x34349b[_0x5ce7db(0x18a0)]=_0x5ce7db(0x47b),_0x34349b[_0x5ce7db(0x2483)]=_0x554754,_0x34349b[_0x5ce7db(0x1339)]=_0x57fc7c,_0x34349b['getFaxInteractions']=_0xacadff,_0x34349b['showFaxInteraction']=_0x23940b,_0x34349b['downloadFaxInteraction']=_0x2faa27,_0x34349b[_0x5ce7db(0x255b)]=_0xdc40df,_0x34349b[_0x5ce7db(0x5cb)]=_0x3102a8,_0x34349b[_0x5ce7db(0x1a08)]=_0x350ac2,_0x34349b[_0x5ce7db(0x25d9)]=_0x5c0714,_0x34349b[_0x5ce7db(0x28a2)]=_0x5a20da,_0x34349b['onSearchBarCollapse']=_0x2f30ac,_0x34349b['onSearchBarExpand']=_0xe169f1,_0x34349b['openAdvancedSearch']=_0x203c93;function _0x554754(_0x32b086,_0x5b55d3){const _0x443d72=_0x5ce7db;return _0x34349b[_0x443d72(0x1947)]=_0x32b086,_0x34349b[_0x443d72(0x28d6)]=_0x5b55d3,_0x20cdb5['user'][_0x443d72(0x896)+_0x28c606()['upperFirst']('faxAccounts')]({'id':_0x34349b[_0x443d72(0x2e8)]['id'],'nolimit':!![]})[_0x443d72(0x15e7)][_0x443d72(0x64a)](function(_0x253be8){const _0x6b8922=_0x443d72;return _0x34349b[_0x6b8922(0x198c)]=_0x253be8||{'count':0x0,'rows':[]},_0x20cdb5[_0x6b8922(0xac8)][_0x6b8922(0x896)]()['$promise'];})[_0x443d72(0x64a)](function(_0x8891fc){const _0x166e43=_0x443d72;_0x34349b[_0x166e43(0x16a6)]=_0x8891fc||{'count':0x0,'rows':[]};})[_0x443d72(0x64a)](function(){const _0x68ecaf=_0x443d72;_0x34349b[_0x68ecaf(0x9fc)]=_0x18bcb0();})[_0x443d72(0x20cd)](function(_0x1905a3){console['error'](_0x1905a3);})[_0x443d72(0x988)](function(){const _0x359f69=_0x443d72;let _0x2e105a=_0x47fb99[_0x359f69(0x294)][_0x359f69(0x1ed0)]('motion2.home.fax:'+_0x34349b['user']['id']);if(_0x2e105a)try{_0x2e105a=JSON[_0x359f69(0x27f1)](_0x2e105a);if(_0x2e105a[_0x359f69(0x289a)]){_0x34349b['query']=_0x28c606()[_0x359f69(0x14fe)](_0x34349b[_0x359f69(0x289a)],_0x2e105a[_0x359f69(0x289a)]);if(_0x28c606()[_0x359f69(0x940)](_0x34349b[_0x359f69(0x198c)][_0x359f69(0x28b8)]))_0x34349b['query'][_0x359f69(0x1da3)]=[];else _0x28c606()[_0x359f69(0x940)](_0x34349b[_0x359f69(0x289a)][_0x359f69(0x1da3)])&&(_0x34349b[_0x359f69(0x289a)][_0x359f69(0x1da3)]=_0x28c606()(_0x34349b[_0x359f69(0x198c)][_0x359f69(0x28b8)])[_0x359f69(0x1de5)]('id')[_0x359f69(0x840)]()[_0x359f69(0x1096)]());_0x34349b[_0x359f69(0x289a)]['sort']&&_0x34349b['query'][_0x359f69(0x768)][_0x359f69(0x1b28)](_0x359f69(0xa3f))>=0x0&&(_0x34349b[_0x359f69(0x289a)]=_0x28c606()['omit'](_0x34349b[_0x359f69(0x289a)],_0x359f69(0x768))),_0x34349b[_0x359f69(0x289a)][_0x359f69(0x9c5)]=!![],_0x34349b[_0x359f69(0x2963)]=_0x34349b[_0x359f69(0x289a)][_0x359f69(0xcec)]?!![]:![];}}catch(_0x522834){console[_0x359f69(0x1bd0)](_0x522834);}else{const _0x4bb582={'$gte':_0x2ac33a()()[_0x359f69(0x246e)]('month')['utcOffset'](0x0,!![])[_0x359f69(0x1c2c)](),'$lte':_0x2ac33a()()[_0x359f69(0x13af)](_0x359f69(0x5f5))[_0x359f69(0xebc)](0x0,!![])[_0x359f69(0x1c2c)]()},_0x39aea3={'FaxAccountId':_0x28c606()[_0x359f69(0x1de5)](_0x34349b['faxAccounts'][_0x359f69(0x28b8)],'id'),'createdAt':_0x4bb582};_0x34349b[_0x359f69(0x289a)]=_0x28c606()['merge'](_0x34349b['query'],_0x39aea3);}_0x38ebac['on'](_0x359f69(0x1f07),_0x290731),_0x38ebac['on']('faxInteraction:update',_0x290731),_0x38ebac['on'](_0x359f69(0x19ed),_0x50d696),_0x38ebac['on'](_0x359f69(0x14d1),_0x3614bf),_0x38ebac['on'](_0x359f69(0x2618),_0x3614bf),_0x38ebac['on']('user_has_fax_interactions:save',_0x460824),_0x38ebac['on']('user_has_fax_interactions:remove',_0x5e99f8),_0xacadff(_0x34349b[_0x359f69(0x289a)][_0x359f69(0xc72)]);});}function _0x18bcb0(){const _0x52059a=_0x5ce7db;return[{'name':_0x52059a(0x1967),'key':_0x52059a(0x2378),'type':_0x52059a(0x232e),'label':_0x52059a(0x2720)},{'name':'Messages','key':_0x52059a(0x12a6),'type':_0x52059a(0x2926),'label':_0x52059a(0x23f7),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0x52059a(0x2200)}]},{'name':'Status','key':_0x52059a(0x1140),'type':_0x52059a(0x2926),'label':_0x52059a(0x110d),'customOptions':[{'value':0x0,'translate':_0x52059a(0x1313)},{'value':0x1,'translate':_0x52059a(0x5cd)},{'value':null,'translate':_0x52059a(0x2200)}]},{'name':_0x52059a(0x141),'key':_0x52059a(0x1da3),'type':'multiselect','label':_0x52059a(0x214f),'options':_0x34349b[_0x52059a(0x198c)][_0x52059a(0x28b8)],'clearAll':![]},{'name':_0x52059a(0x12ad),'key':_0x52059a(0x246c),'type':_0x52059a(0x2926),'label':_0x52059a(0x18bf),'customOptions':[{'value':_0x34349b[_0x52059a(0x2e8)]['id'],'translate':_0x52059a(0x2368)},{'value':_0x52059a(0x8f1),'translate':_0x52059a(0x276d)},{'value':undefined,'translate':_0x52059a(0x2200)}]},{'name':'Tag','key':_0x52059a(0xac8),'type':'multiselect','label':_0x52059a(0x1208),'options':_0x34349b['tags']['rows'],'placeholder':'DASHBOARDS.TAGS'}];}function _0x57fc7c(_0x389ee1){const _0x45092a=_0x5ce7db;_0x34349b['searchInProgress']=![],_0x34349b[_0x45092a(0x17e7)]=_0x389ee1||{'count':0x0,'rows':[]};for(let _0x1ae031=0x0;_0x1ae031<_0x34349b['faxInteractions']['rows']['length'];_0x1ae031+=0x1){_0x3102a8(_0x34349b[_0x45092a(0x17e7)][_0x45092a(0x28b8)][_0x1ae031]);}}function _0xacadff(_0x29470c){const _0x430682=_0x5ce7db;_0x34349b['searchInProgress']=!![];!_0x29470c&&(_0x34349b['query']['page']=0x1);_0x34349b[_0x430682(0x289a)][_0x430682(0x24f9)]=(_0x34349b['query'][_0x430682(0xc72)]-0x1)*_0x34349b['query'][_0x430682(0x25bb)];let _0xcb5a0e=_0x47fb99[_0x430682(0x294)][_0x430682(0x1ed0)](_0x430682(0x1de2)+_0x34349b[_0x430682(0x2e8)]['id']);_0xcb5a0e=_0xcb5a0e?JSON[_0x430682(0x27f1)](_0xcb5a0e):{},_0xcb5a0e[_0x430682(0x289a)]=_0x34349b[_0x430682(0x289a)],_0x47fb99['localStorage'][_0x430682(0x15da)]('motion2.home.fax:'+_0x34349b[_0x430682(0x2e8)]['id'],JSON[_0x430682(0x2317)](_0xcb5a0e)),_0x34349b[_0x430682(0x1713)]=_0x20cdb5[_0x430682(0x10a0)][_0x430682(0x896)](_0x34349b[_0x430682(0x289a)],_0x57fc7c)[_0x430682(0x15e7)];}function _0x23940b(_0x4ee78d,_0x43bf97){const _0x1e3ecd=_0x5ce7db;_0x548d6a['$parent']['vm'][_0x1e3ecd(0x1540)]('fax',_0x43bf97);}function _0x2faa27(_0x3fa391,_0x2c7de2,_0x569e6c){const _0x4752ac=_0x5ce7db;_0x20cdb5[_0x4752ac(0x10a0)][_0x4752ac(0x19b3)]({'id':_0x2c7de2['id'],'attachments':_0x569e6c})[_0x4752ac(0x15e7)]['then'](function(_0x1c8ef1){const _0x29b0f3=_0x4752ac,_0x2f4cdb=[_0x1c8ef1[_0x29b0f3(0x5a9)]],_0x16f9af='fax-interaction'+_0x2c7de2['id']+_0x29b0f3(0x2177),_0x5beff0=new Blob(_0x2f4cdb,{'type':_0x1c8ef1[_0x29b0f3(0x2185)]}),_0x537eba=window['document']['createElement']('a');_0x537eba[_0x29b0f3(0x1280)](_0x29b0f3(0x25d0),URL[_0x29b0f3(0x206)](_0x5beff0)),_0x537eba[_0x29b0f3(0x1280)](_0x29b0f3(0x19b3),_0x16f9af),document['body'][_0x29b0f3(0x2661)](_0x537eba),_0x537eba['click']();})[_0x4752ac(0x20cd)](function(_0x35fb12){const _0x4e23dd=_0x4752ac;if(_0x35fb12[_0x4e23dd(0x1c52)]&&_0x35fb12['data']['errors']&&_0x35fb12[_0x4e23dd(0x1c52)][_0x4e23dd(0xbae)][_0x4e23dd(0x1b9e)])for(let _0x29b259=0x0;_0x29b259<_0x35fb12[_0x4e23dd(0x1c52)][_0x4e23dd(0xbae)]['length'];_0x29b259+=0x1){_0x4e48c5['error']({'title':_0x35fb12[_0x4e23dd(0x1c52)]['errors'][_0x29b259][_0x4e23dd(0x2185)],'msg':_0x35fb12[_0x4e23dd(0x1c52)][_0x4e23dd(0xbae)][_0x29b259][_0x4e23dd(0x18ca)]});}else _0x4e48c5[_0x4e23dd(0x1bd0)]({'title':_0x35fb12['status']?_0x4e23dd(0x575)+_0x35fb12[_0x4e23dd(0x10b3)]+_0x4e23dd(0x21db)+_0x35fb12[_0x4e23dd(0x2115)]:'downloadFaxInteraction','msg':_0x35fb12['data']?JSON[_0x4e23dd(0x2317)](_0x35fb12[_0x4e23dd(0x1c52)][_0x4e23dd(0x18ca)]):_0x35fb12[_0x4e23dd(0x2915)]()});});}function _0xdc40df(_0x3d7f05,_0x47746f){const _0x4d77c0=_0x5ce7db,_0x4b4435=_0x34349b[_0x4d77c0(0x2e8)][_0x4d77c0(0x11a4)]||_0x34349b[_0x4d77c0(0x2e8)]['chatPause']||_0x34349b[_0x4d77c0(0x2e8)][_0x4d77c0(0x292)]||_0x34349b[_0x4d77c0(0x2e8)][_0x4d77c0(0x1451)]||_0x34349b[_0x4d77c0(0x2e8)][_0x4d77c0(0x211)],_0x2e7e3c=!_0x47746f['Account'][_0x4d77c0(0xe19)];_0x10a4b3[_0x4d77c0(0xa60)]({'controller':_0x4d77c0(0x25d1),'controllerAs':'vm','templateUrl':_0x17dbb5,'parent':angular[_0x4d77c0(0x1f81)](_0x50ea96[_0x4d77c0(0xb49)]),'clickOutsideToClose':_0x2e7e3c,'escapeToClose':_0x2e7e3c,'onRemoving':function(){const _0xd90f37=_0x4d77c0;_0x34349b['user']&&_0x47746f[_0xd90f37(0x141)]['mandatoryDisposition']&&!_0x4b4435&&_0x20cdb5['user'][_0xd90f37(0x818)]({'id':_0x34349b['user']['id']})[_0xd90f37(0x15e7)][_0xd90f37(0x20cd)](function(_0x33964f){console['error'](_0x33964f);});},'locals':{'user':_0x34349b[_0x4d77c0(0x2e8)],'channel':'fax','interaction':_0x47746f}});}function _0x3102a8(_0x2da23e){const _0x27e571=_0x5ce7db;_0x2da23e[_0x27e571(0x27b3)]=_0x2da23e['Contact']?_0x2da23e[_0x27e571(0x1c38)][_0x27e571(0x1d37)]:undefined,_0x2da23e[_0x27e571(0xfd7)]===_0x27e571(0x166c)&&(_0x2da23e[_0x27e571(0xfd7)]=_0x4c04ea[_0x27e571(0x2292)](_0x27e571(0x1c8d)));}function _0x350ac2(_0x15cc29){const _0x575f76=_0x5ce7db;if(_0x15cc29[_0x575f76(0x246c)])return _0x15cc29[_0x575f76(0x246c)]===_0x34349b['user']['id']?_0x4c04ea[_0x575f76(0x2292)](_0x575f76(0x2368)):_0x15cc29[_0x575f76(0x1b06)][_0x575f76(0x15c)]+'\x20<'+_0x15cc29['Owner']['internal']+'>';return _0x4c04ea[_0x575f76(0x2292)](_0x575f76(0x276d));}function _0x5c0714(_0x12a29b){const _0x76c7ab=_0x5ce7db;if(_0x12a29b[_0x76c7ab(0x141)])return _0x12a29b[_0x76c7ab(0x141)][_0x76c7ab(0x2125)];return _0x4c04ea[_0x76c7ab(0x2292)]('APP.UNKNOWN');}function _0x5a20da(_0x5e0c8c,_0x2f3f31){const _0x39fbaf=_0x5ce7db;_0x10a4b3['show']({'controller':'ComposeFaxInteractionDialogController','controllerAs':'vm','templateUrl':_0x8cef6b,'parent':angular[_0x39fbaf(0x1f81)](_0x50ea96[_0x39fbaf(0xb49)]),'clickOutsideToClose':![],'locals':{'account':_0x2f3f31,'message':{},'type':_0x39fbaf(0x13c0),'interaction':{}},'fullscreen':!![]})[_0x39fbaf(0x64a)](function(_0x24d5d2){const _0x1332c2=_0x39fbaf;if(_0x24d5d2){if(_0x24d5d2[_0x1332c2(0x18ca)]&&_0x24d5d2[_0x1332c2(0x18ca)][_0x1332c2(0x20ef)]){const _0xeafff5={'channel':_0x1332c2(0x1d37),'account':_0x2f3f31,'message':_0x24d5d2[_0x1332c2(0x18ca)],'contact':_0x24d5d2[_0x1332c2(0x13f7)]};_0x42998b[_0x1332c2(0x25df)](_0xeafff5);}else{const _0x26a3c1=_0x24d5d2;return _0x20cdb5[_0x1332c2(0x549)][_0x1332c2(0xc10)]({'id':_0x2f3f31['id']},_0x26a3c1)[_0x1332c2(0x15e7)][_0x1332c2(0x64a)](function(_0x2e97f6){const _0x5ec13f=_0x1332c2;_0x4e48c5[_0x5ec13f(0x1339)]({'title':_0x5ec13f(0x2040),'msg':_0x5ec13f(0x285b)}),_0x548d6a[_0x5ec13f(0x4e3)]['vm'][_0x5ec13f(0x1540)](_0x5ec13f(0x1d37),_0x2e97f6);})[_0x1332c2(0x20cd)](function(_0x5cbfc1){const _0x4ca2e2=_0x1332c2;if(_0x5cbfc1[_0x4ca2e2(0x1c52)]&&_0x5cbfc1[_0x4ca2e2(0x1c52)]['errors']&&_0x5cbfc1[_0x4ca2e2(0x1c52)]['errors'][_0x4ca2e2(0x1b9e)])for(let _0x41d3d7=0x0;_0x41d3d7<_0x5cbfc1[_0x4ca2e2(0x1c52)][_0x4ca2e2(0xbae)][_0x4ca2e2(0x1b9e)];_0x41d3d7++){_0x4e48c5[_0x4ca2e2(0x1bd0)]({'title':_0x5cbfc1[_0x4ca2e2(0x1c52)][_0x4ca2e2(0xbae)][_0x41d3d7][_0x4ca2e2(0x2185)],'msg':_0x5cbfc1[_0x4ca2e2(0x1c52)][_0x4ca2e2(0xbae)][_0x41d3d7][_0x4ca2e2(0x18ca)]});}else _0x4e48c5[_0x4ca2e2(0x1bd0)]({'title':_0x4ca2e2(0x7b8),'msg':_0x5cbfc1[_0x4ca2e2(0x1c52)]?JSON[_0x4ca2e2(0x2317)](_0x5cbfc1['data']):_0x5cbfc1['message']||_0x5cbfc1[_0x4ca2e2(0x2915)]()});});}}});}function _0x460824(_0x5ed5f8){const _0x169373=_0x5ce7db;let _0x5a7feb;const _0x574f8a=_0x28c606()[_0x169373(0x27bc)](_0x34349b['faxInteractions'][_0x169373(0x28b8)],{'id':_0x5ed5f8[_0x169373(0x2049)]});_0x574f8a&&_0x574f8a['Users']&&(_0x5a7feb=_0x28c606()[_0x169373(0x27bc)](_0x574f8a['Users'],{'id':_0x5ed5f8['UserId']}),!_0x5a7feb&&_0x574f8a[_0x169373(0x25d3)][_0x169373(0x1954)]({'id':_0x5ed5f8[_0x169373(0x246c)]}));}function _0x5e99f8(_0x187ec6){const _0xf09321=_0x5ce7db,_0x57b1be=_0x28c606()[_0xf09321(0x27bc)](_0x34349b['faxInteractions'][_0xf09321(0x28b8)],{'id':_0x187ec6[_0xf09321(0x2049)]});_0x57b1be&&_0x57b1be['Users']&&_0x28c606()['remove'](_0x57b1be[_0xf09321(0x25d3)],{'id':_0x187ec6['UserId']});}function _0x290731(_0x414d6a){const _0x179c5d=_0x5ce7db;if(_0x414d6a){const _0x1af76c=_0x28c606()[_0x179c5d(0x27bc)](_0x34349b[_0x179c5d(0x17e7)][_0x179c5d(0x28b8)],{'id':_0x414d6a['id']});if(_0x1af76c){_0x1af76c[_0x179c5d(0x25d3)]=[];_0x414d6a[_0x179c5d(0x1140)]&&(_0x1af76c[_0x179c5d(0x18d3)]=0x0);if(_0x34349b[_0x179c5d(0x289a)][_0x179c5d(0x768)]){const _0x320ced=_0x28c606()[_0x179c5d(0x1273)](_0x34349b['query'][_0x179c5d(0x768)],'-')?'desc':_0x179c5d(0x2449);_0x34349b[_0x179c5d(0x17e7)][_0x179c5d(0x28b8)]=_0x28c606()[_0x179c5d(0x288e)](_0x34349b[_0x179c5d(0x17e7)][_0x179c5d(0x28b8)],_0x28c606()[_0x179c5d(0x17cf)](_0x34349b[_0x179c5d(0x289a)][_0x179c5d(0x768)],'-'),_0x320ced);}_0x28c606()[_0x179c5d(0x14fe)](_0x1af76c,_0x28c606()[_0x179c5d(0x27bb)](_0x414d6a,_0x28c606()[_0x179c5d(0x1ec6)](_0x1af76c)));}else _0xacadff(_0x34349b[_0x179c5d(0x289a)][_0x179c5d(0xc72)]);}}function _0x50d696(_0x48973f){const _0x3716b4=_0x5ce7db;if(_0x48973f){const _0x351f2f=_0x28c606()[_0x3716b4(0x27bc)](_0x34349b['faxInteractions'][_0x3716b4(0x28b8)],{'id':_0x48973f['id']});_0x351f2f&&(_0x351f2f[_0x3716b4(0x1178)]=_0x48973f[_0x3716b4(0x16a6)]||[],_0x28c606()[_0x3716b4(0x14fe)](_0x351f2f,_0x28c606()['pick'](_0x48973f,_0x28c606()[_0x3716b4(0x1ec6)](_0x351f2f))));}}function _0x3614bf(_0x4946a4){const _0x43be25=_0x5ce7db;if(_0x4946a4&&!_0x4946a4[_0x43be25(0xbf2)]){const _0x21ac6e=_0x28c606()['find'](_0x34349b[_0x43be25(0x17e7)][_0x43be25(0x28b8)],{'id':_0x4946a4['FaxInteractionId']});if(_0x21ac6e){const _0x569557=_0x28c606()[_0x43be25(0x27bc)](_0x21ac6e[_0x43be25(0x17af)],{'id':_0x4946a4['id']});_0x569557?_0x28c606()['merge'](_0x569557,_0x28c606()[_0x43be25(0x27bb)](_0x4946a4,_0x28c606()[_0x43be25(0x1ec6)](_0x569557))):(_0x28c606()['isNil'](_0x21ac6e[_0x43be25(0x17af)])&&(_0x21ac6e[_0x43be25(0x17af)]={'count':0x0}),!_0x4946a4['read']&&(_0x21ac6e[_0x43be25(0x17af)][_0x43be25(0xb90)]+=0x1));}}}function _0x2f30ac(){const _0xf58184=_0x5ce7db;_0x34349b[_0xf58184(0x2963)]=![];}function _0xe169f1(){const _0x505995=_0x5ce7db;_0x34349b[_0x505995(0x2963)]=!![];}function _0x203c93(){const _0x1229e9=_0x5ce7db;_0x34349b[_0x1229e9(0x2963)]=![],_0x10a4b3[_0x1229e9(0xa60)]({'controller':_0x1229e9(0x271c),'controllerAs':'vm','templateUrl':_0x46e7cb,'parent':angular[_0x1229e9(0x1f81)](_0x50ea96['body']),'clickOutsideToClose':![],'locals':{'color':_0x34349b[_0x1229e9(0x18a0)],'fields':_0x34349b['advancedSearch'][_0x1229e9(0xf26)],'storagePath':'home.fax'},'fullscreen':!![]})[_0x1229e9(0x64a)](function(_0x2d7221){const _0x475977=_0x1229e9;_0x34349b['query'][_0x475977(0xb58)]=_0x2d7221===![]?undefined:_0x2d7221;if(_0x34349b[_0x475977(0x289a)][_0x475977(0xb58)]||_0x2d7221===![])_0xacadff();})[_0x1229e9(0x20cd)](function(_0x305d1a){const _0x367940=_0x1229e9;_0x4e48c5[_0x367940(0x1bd0)]({'title':_0x367940(0x2440),'msg':_0x305d1a[_0x367940(0x1c52)]?JSON[_0x367940(0x2317)](_0x305d1a[_0x367940(0x1c52)]['message']):_0x305d1a[_0x367940(0x2915)]()});});}let _0x31e2c6=!![],_0x46c839=0x1;_0x548d6a[_0x5ce7db(0xc62)]('vm.query.filter',function(_0x399b5a,_0x142012){const _0x3064c4=_0x5ce7db;_0x31e2c6?_0x360414(function(){_0x31e2c6=![];}):(!_0x142012&&(_0x46c839=_0x34349b[_0x3064c4(0x289a)][_0x3064c4(0xc72)]),_0x399b5a!==_0x142012&&(_0x34349b['query'][_0x3064c4(0xc72)]=0x1),!_0x399b5a&&(_0x34349b[_0x3064c4(0x289a)][_0x3064c4(0xc72)]=_0x46c839),_0xacadff(_0x34349b[_0x3064c4(0x289a)][_0x3064c4(0xc72)]));}),_0x548d6a[_0x5ce7db(0x8c7)](_0x5ce7db(0xf28),function(){const _0x880887=_0x5ce7db;_0x38ebac[_0x880887(0x1951)](_0x880887(0x14d1)),_0x38ebac['removeAllListeners']('faxMessage:update'),_0x38ebac['removeAllListeners']('faxInteraction:save'),_0x38ebac['removeAllListeners'](_0x880887(0x19ed)),_0x38ebac['removeAllListeners'](_0x880887(0x28fb)),_0x38ebac[_0x880887(0x1951)](_0x880887(0x719)),_0x38ebac[_0x880887(0x1951)](_0x880887(0x1f5c));});}const _0x499942=_0x594860;;_0x3c1cb2[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x1fe7),_0x49a1e3(0x298c),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x633),_0x49a1e3(0x680),_0x49a1e3(0x2834)];function _0x3c1cb2(_0x5f0ff,_0x12badb,_0x41a1dc,_0x3950ab,_0x45edd7,_0x8d7365,_0xcc3b78,_0x1d2b57,_0x20982f,_0x4632c9,_0x260cda){const _0x735d83=_0x49a1e3,_0x3403ca=this;_0x3403ca[_0x735d83(0x2e8)]=_0x1d2b57[_0x735d83(0x808)](),_0x3403ca[_0x735d83(0x1947)]={},_0x3403ca[_0x735d83(0x28d6)]={},_0x3403ca['tags']={'count':0x0,'rows':[]},_0x3403ca[_0x735d83(0x28f1)]={'count':0x0,'rows':[]},_0x3403ca[_0x735d83(0x289a)]={'includeAll':!![],'sort':_0x735d83(0x260c),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x3403ca[_0x735d83(0x1b2f)]={'fields':[{'name':'Id','column':'id','type':'number'},{'name':_0x735d83(0x1c38),'column':'Contact','type':_0x735d83(0x21b7),'options':{'searchFields':[_0x735d83(0x2518),_0x735d83(0x21c4),_0x735d83(0xd47)],'route':{'model':_0x735d83(0xdf5),'action':_0x735d83(0x896),'params':{'fields':'id,firstName,lastName,email','Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x735d83(0xe87)],'excludedOperators':['$ne']}},{'name':_0x735d83(0x1cd9),'column':_0x735d83(0x25bc),'type':_0x735d83(0x39b),'options':{'excludedOperators':['$eq',_0x735d83(0x14b5)]}},{'name':'Body','column':_0x735d83(0x2233),'type':_0x735d83(0x39b),'options':{'excludedOperators':[_0x735d83(0x1743),_0x735d83(0x14b5)]}},{'name':_0x735d83(0x2311),'column':'closed','type':_0x735d83(0x2926),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x735d83(0x5cd)}],'options':{'excludedOperators':[_0x735d83(0x14b5)]}},{'name':'Substatus','column':_0x735d83(0x2045),'type':_0x735d83(0x20ae),'options':{'field':_0x735d83(0x2494),'route':{'model':_0x735d83(0x1b8e),'action':_0x735d83(0x896),'params':{'nolimit':!![]}},'excludedOperators':[_0x735d83(0x9eb)]}},{'name':_0x735d83(0x12ad),'column':'User','type':_0x735d83(0x21b7),'options':{'table':'i','route':{'model':_0x735d83(0x2e8),'action':'get','params':{'role':_0x735d83(0x11ae),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':[_0x735d83(0x15c),'name'],'extraOperators':[_0x735d83(0xe87)],'excludedOperators':[_0x735d83(0x14b5)]}},{'name':_0x735d83(0x141),'column':_0x735d83(0xa4c),'type':_0x735d83(0x20ae),'options':{'route':{'model':_0x735d83(0x2e8),'action':_0x735d83(0x8df),'params':{'id':_0x3403ca[_0x735d83(0x2e8)]['id'],'nolimit':!![]}}}},{'name':_0x735d83(0x1178),'column':_0x735d83(0x1e9f),'type':_0x735d83(0x20ae),'options':{'route':{'model':_0x735d83(0xac8),'action':_0x735d83(0x896),'params':{'nolimit':!![]}},'excludedOperators':[_0x735d83(0x9eb)]}},{'name':'Start\x20Date','column':'createdAt','type':_0x735d83(0x232e),'options':{'excludedOperators':['$ne']}},{'name':_0x735d83(0xff4),'column':'unreadMessages','type':'select','values':[{'id':0x1,'translate':_0x735d83(0x1889)},{'id':0x0,'translate':_0x735d83(0x13be)}],'options':{'excludedOperators':[_0x735d83(0x14b5)]}}]},_0x3403ca[_0x735d83(0x18a0)]=_0x735d83(0x1d78),_0x3403ca[_0x735d83(0x2483)]=_0x148af7,_0x3403ca[_0x735d83(0x1339)]=_0x4d2bec,_0x3403ca[_0x735d83(0xb06)]=_0x566c59,_0x3403ca[_0x735d83(0x71f)]=_0x3dc4f7,_0x3403ca[_0x735d83(0x2197)]=_0x3601e2,_0x3403ca[_0x735d83(0x255b)]=_0x13c07b,_0x3403ca[_0x735d83(0x5cb)]=_0x4b3d37,_0x3403ca[_0x735d83(0x1a08)]=_0x509c73,_0x3403ca[_0x735d83(0x2443)]=_0x58d30d,_0x3403ca[_0x735d83(0xc6c)]=_0x18d105,_0x3403ca[_0x735d83(0xb3d)]=_0x518cb5,_0x3403ca['onSearchBarExpand']=_0x463a33,_0x3403ca[_0x735d83(0x114f)]=_0x39b92e,_0x5f0ff[_0x735d83(0x8c7)]('openMailDraft',_0x4101ec);function _0x148af7(_0x456519,_0x4167e3){const _0x1ec9c3=_0x735d83;return _0x3403ca[_0x1ec9c3(0x1947)]=_0x456519,_0x3403ca[_0x1ec9c3(0x28d6)]=_0x4167e3,_0xcc3b78[_0x1ec9c3(0x2e8)][_0x1ec9c3(0x896)+_0x28c606()[_0x1ec9c3(0x1766)](_0x1ec9c3(0x2435))]({'id':_0x3403ca[_0x1ec9c3(0x2e8)]['id'],'nolimit':!![]})[_0x1ec9c3(0x15e7)][_0x1ec9c3(0x64a)](function(_0x393c86){const _0xcb5806=_0x1ec9c3;return _0x3403ca['mailAccounts']=_0x393c86||{'count':0x0,'rows':[]},_0xcc3b78['tag'][_0xcb5806(0x896)]()['$promise'];})[_0x1ec9c3(0x64a)](function(_0x52601b){const _0x5c9ddd=_0x1ec9c3;_0x3403ca[_0x5c9ddd(0x16a6)]=_0x52601b||{'count':0x0,'rows':[]};})[_0x1ec9c3(0x64a)](function(){const _0x2fb8e4=_0x1ec9c3;return _0xcc3b78['mailSubstatus']['get']({'nolimit':!![]})[_0x2fb8e4(0x15e7)];})[_0x1ec9c3(0x64a)](function(_0x349744){const _0x31bc2d=_0x1ec9c3;_0x3403ca[_0x31bc2d(0x21f9)]=_0x349744||{'count':0x0,'rows':[]};})['then'](function(){const _0x36218e=_0x1ec9c3;_0x3403ca[_0x36218e(0x9fc)]=_0x3980a5();})[_0x1ec9c3(0x20cd)](function(_0x161b3c){const _0x21514c=_0x1ec9c3;console[_0x21514c(0x1bd0)](_0x161b3c);})[_0x1ec9c3(0x988)](function(){const _0x78f890=_0x1ec9c3;let _0x35f9be=_0x45edd7[_0x78f890(0x294)][_0x78f890(0x1ed0)](_0x78f890(0x1781)+_0x3403ca[_0x78f890(0x2e8)]['id']);if(_0x35f9be)try{_0x35f9be=JSON[_0x78f890(0x27f1)](_0x35f9be);if(_0x35f9be[_0x78f890(0x289a)]){_0x3403ca[_0x78f890(0x289a)]=_0x28c606()[_0x78f890(0x14fe)](_0x3403ca[_0x78f890(0x289a)],_0x35f9be[_0x78f890(0x289a)]);if(_0x28c606()[_0x78f890(0x940)](_0x3403ca['mailAccounts'][_0x78f890(0x28b8)]))_0x3403ca['query'][_0x78f890(0xa4c)]=[];else _0x28c606()[_0x78f890(0x940)](_0x3403ca[_0x78f890(0x289a)][_0x78f890(0xa4c)])&&(_0x3403ca[_0x78f890(0x289a)][_0x78f890(0xa4c)]=_0x28c606()(_0x3403ca['mailAccounts']['rows'])[_0x78f890(0x1de5)]('id')['take']()[_0x78f890(0x1096)]());_0x3403ca[_0x78f890(0x289a)][_0x78f890(0x768)]&&_0x3403ca['query'][_0x78f890(0x768)]['indexOf'](_0x78f890(0xa3f))>=0x0&&(_0x3403ca[_0x78f890(0x289a)]=_0x28c606()['omit'](_0x3403ca[_0x78f890(0x289a)],_0x78f890(0x768))),_0x3403ca[_0x78f890(0x289a)][_0x78f890(0x9c5)]=!![],_0x3403ca[_0x78f890(0x2963)]=_0x3403ca[_0x78f890(0x289a)][_0x78f890(0xcec)]?!![]:![];}}catch(_0x3db76d){console[_0x78f890(0x1bd0)](_0x3db76d);}else{const _0x3d57c8={'$gte':_0x2ac33a()()[_0x78f890(0x246e)](_0x78f890(0x5f5))[_0x78f890(0xebc)](0x0,!![])['format'](),'$lte':_0x2ac33a()()['endOf'](_0x78f890(0x5f5))[_0x78f890(0xebc)](0x0,!![])['format']()},_0x7a1f26={'MailAccountId':_0x28c606()[_0x78f890(0x1de5)](_0x3403ca[_0x78f890(0x2435)][_0x78f890(0x28b8)],'id'),'createdAt':_0x3d57c8};_0x3403ca[_0x78f890(0x289a)]=_0x28c606()[_0x78f890(0x14fe)](_0x3403ca[_0x78f890(0x289a)],_0x7a1f26);}_0x20982f['on'](_0x78f890(0x1d5c),_0x10712b),_0x20982f['on']('mailInteraction:update',_0x10712b),_0x20982f['on'](_0x78f890(0x112e),_0x24874d),_0x20982f['on'](_0x78f890(0x1189),_0x3d8a8a),_0x20982f['on'](_0x78f890(0xf2b),_0x3d8a8a),_0x20982f['on']('user_has_mail_interactions:save',_0x384826),_0x20982f['on'](_0x78f890(0x40a),_0x5593c3),_0x566c59(_0x3403ca[_0x78f890(0x289a)]['page']);});}function _0x3980a5(){const _0x70c3cc=_0x735d83;return[{'name':_0x70c3cc(0x1967),'key':'createdAt','type':_0x70c3cc(0x232e),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x70c3cc(0x17af),'key':'read','type':_0x70c3cc(0x2926),'label':_0x70c3cc(0x23f7),'customOptions':[{'value':0x0,'translate':_0x70c3cc(0x13be)},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':'Status','key':_0x70c3cc(0x1140),'type':_0x70c3cc(0x2926),'label':_0x70c3cc(0x110d),'customOptions':[{'value':0x0,'translate':_0x70c3cc(0x1313)},{'value':0x1,'translate':_0x70c3cc(0x5cd)},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x70c3cc(0x143c),'key':'substatus','type':_0x70c3cc(0x2926),'label':_0x70c3cc(0x1bdb),'options':_0x3403ca[_0x70c3cc(0x21f9)][_0x70c3cc(0x28b8)],'customOptions':[{'value':_0x70c3cc(0x8f1),'translate':_0x70c3cc(0x9b1)},{'value':undefined,'translate':_0x70c3cc(0x2200)}],'ngValue':_0x70c3cc(0x2494),'ngIf':_0x70c3cc(0x1af2)},{'name':_0x70c3cc(0x141),'key':_0x70c3cc(0xa4c),'type':_0x70c3cc(0x20ae),'label':'DASHBOARDS.SELECT_ACCOUNT','options':_0x3403ca['mailAccounts'][_0x70c3cc(0x28b8)],'clearAll':![]},{'name':'Agent','key':_0x70c3cc(0x246c),'type':_0x70c3cc(0x2926),'label':_0x70c3cc(0x18bf),'customOptions':[{'value':_0x3403ca[_0x70c3cc(0x2e8)]['id'],'translate':_0x70c3cc(0x2368)},{'value':'null','translate':_0x70c3cc(0x276d)},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x70c3cc(0x1e9f),'key':_0x70c3cc(0xac8),'type':_0x70c3cc(0x20ae),'label':_0x70c3cc(0x1208),'options':_0x3403ca[_0x70c3cc(0x16a6)]['rows'],'placeholder':'DASHBOARDS.TAGS'}];}function _0x4d2bec(_0x38432){const _0x38a157=_0x735d83;_0x3403ca[_0x38a157(0x25cb)]=![],_0x3403ca[_0x38a157(0x28f1)]=_0x38432||{'count':0x0,'rows':[]};for(let _0x441e59=0x0;_0x441e59<_0x3403ca[_0x38a157(0x28f1)][_0x38a157(0x28b8)]['length'];_0x441e59+=0x1){_0x4b3d37(_0x3403ca[_0x38a157(0x28f1)][_0x38a157(0x28b8)][_0x441e59]);}}function _0x566c59(_0x2beb96){const _0x2d1b56=_0x735d83;_0x3403ca['searchInProgress']=!![];!_0x2beb96&&(_0x3403ca[_0x2d1b56(0x289a)][_0x2d1b56(0xc72)]=0x1);_0x3403ca['query'][_0x2d1b56(0x24f9)]=(_0x3403ca[_0x2d1b56(0x289a)][_0x2d1b56(0xc72)]-0x1)*_0x3403ca[_0x2d1b56(0x289a)]['limit'];let _0xa245da=_0x45edd7[_0x2d1b56(0x294)][_0x2d1b56(0x1ed0)]('motion2.home.mail:'+_0x3403ca[_0x2d1b56(0x2e8)]['id']);_0xa245da=_0xa245da?JSON['parse'](_0xa245da):{},_0xa245da[_0x2d1b56(0x289a)]=_0x3403ca[_0x2d1b56(0x289a)],_0x45edd7[_0x2d1b56(0x294)]['setItem'](_0x2d1b56(0x1781)+_0x3403ca['user']['id'],JSON['stringify'](_0xa245da)),_0x3403ca[_0x2d1b56(0x1713)]=_0xcc3b78[_0x2d1b56(0x1e03)][_0x2d1b56(0x896)](_0x3403ca['query'],_0x4d2bec)[_0x2d1b56(0x15e7)];}function _0x3dc4f7(_0x34bede,_0x57478d){const _0x2c9c9c=_0x735d83;_0x5f0ff['$parent']['vm'][_0x2c9c9c(0x1540)](_0x2c9c9c(0xc71),_0x57478d);}function _0x3601e2(_0x404430,_0x260c1a,_0x411ffd){const _0xa9dc81=_0x735d83;_0xcc3b78[_0xa9dc81(0x1e03)]['download']({'id':_0x260c1a['id'],'attachments':_0x411ffd})['$promise']['then'](function(_0x2cbb55){const _0x52ed01=_0xa9dc81,_0x928721=[_0x2cbb55[_0x52ed01(0x5a9)]],_0x395789=_0x52ed01(0x1aa9)+_0x260c1a['id']+_0x52ed01(0x2177),_0x490dbc=new Blob(_0x928721,{'type':_0x2cbb55[_0x52ed01(0x2185)]}),_0xd571a4=window[_0x52ed01(0x123f)][_0x52ed01(0x2978)]('a');_0xd571a4[_0x52ed01(0x1280)]('href',URL[_0x52ed01(0x206)](_0x490dbc)),_0xd571a4[_0x52ed01(0x1280)]('download',_0x395789),document['body'][_0x52ed01(0x2661)](_0xd571a4),_0xd571a4[_0x52ed01(0x2668)]();})['catch'](function(_0x25781c){const _0x2e286e=_0xa9dc81;if(_0x25781c[_0x2e286e(0x1c52)]&&_0x25781c[_0x2e286e(0x1c52)][_0x2e286e(0xbae)]&&_0x25781c['data'][_0x2e286e(0xbae)]['length'])for(let _0x1265dc=0x0;_0x1265dc<_0x25781c[_0x2e286e(0x1c52)]['errors'][_0x2e286e(0x1b9e)];_0x1265dc+=0x1){_0x4632c9[_0x2e286e(0x1bd0)]({'title':_0x25781c['data'][_0x2e286e(0xbae)][_0x1265dc]['type'],'msg':_0x25781c[_0x2e286e(0x1c52)]['errors'][_0x1265dc][_0x2e286e(0x18ca)]});}else _0x4632c9[_0x2e286e(0x1bd0)]({'title':_0x25781c['status']?_0x2e286e(0x575)+_0x25781c[_0x2e286e(0x10b3)]+_0x2e286e(0x21db)+_0x25781c[_0x2e286e(0x2115)]:_0x2e286e(0x2197),'msg':_0x25781c[_0x2e286e(0x1c52)]?JSON['stringify'](_0x25781c['data']['message']):_0x25781c[_0x2e286e(0x2915)]()});});}function _0x13c07b(_0x2fe9c2,_0xc442c6){const _0x2e521f=_0x735d83,_0x70160b=_0x3403ca[_0x2e521f(0x2e8)][_0x2e521f(0x11a4)]||_0x3403ca[_0x2e521f(0x2e8)][_0x2e521f(0x2248)]||_0x3403ca[_0x2e521f(0x2e8)][_0x2e521f(0x292)]||_0x3403ca['user'][_0x2e521f(0x1451)]||_0x3403ca[_0x2e521f(0x2e8)][_0x2e521f(0x211)],_0x4d98c8=!_0xc442c6['Account'][_0x2e521f(0xe19)];_0x41a1dc[_0x2e521f(0xa60)]({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x17dbb5,'parent':angular[_0x2e521f(0x1f81)](_0x3950ab[_0x2e521f(0xb49)]),'clickOutsideToClose':_0x4d98c8,'escapeToClose':_0x4d98c8,'onRemoving':function(){const _0x4cefc8=_0x2e521f;_0x3403ca['user']&&_0xc442c6[_0x4cefc8(0x141)][_0x4cefc8(0xe19)]&&!_0x70160b&&_0xcc3b78[_0x4cefc8(0x2e8)]['unpause']({'id':_0x3403ca['user']['id']})[_0x4cefc8(0x15e7)]['catch'](function(_0x3729fc){console['error'](_0x3729fc);});},'locals':{'user':_0x3403ca[_0x2e521f(0x2e8)],'channel':'mail','interaction':_0xc442c6}});}function _0x4b3d37(_0x3bd548){const _0x5cc507=_0x735d83;!_0x28c606()[_0x5cc507(0x940)](_0x3bd548['to'])&&_0x3bd548[_0x5cc507(0x141)]&&!_0x28c606()[_0x5cc507(0x68a)](_0x3bd548['to'],_0x3bd548[_0x5cc507(0x141)]['email'])?_0x3bd548[_0x5cc507(0x27b3)]=_0x3bd548['to'][_0x5cc507(0x282c)]('<')[_0x5cc507(0x639)]()[_0x5cc507(0x282c)]('>')[0x0]:_0x3bd548[_0x5cc507(0x27b3)]=_0x3bd548[_0x5cc507(0x1c38)]?_0x3bd548[_0x5cc507(0x1c38)][_0x5cc507(0xd47)]:undefined,_0x3bd548[_0x5cc507(0xfd7)]===_0x5cc507(0x166c)&&(_0x3bd548[_0x5cc507(0xfd7)]=_0x8d7365[_0x5cc507(0x2292)]('APP.UNKNOWN'));}function _0x509c73(_0x46e52e){const _0x48fd2d=_0x735d83;if(_0x46e52e[_0x48fd2d(0x246c)])return _0x46e52e[_0x48fd2d(0x246c)]===_0x3403ca[_0x48fd2d(0x2e8)]['id']?_0x8d7365[_0x48fd2d(0x2292)](_0x48fd2d(0x2368)):_0x46e52e[_0x48fd2d(0x1b06)][_0x48fd2d(0x15c)]+'\x20<'+_0x46e52e[_0x48fd2d(0x1b06)][_0x48fd2d(0xe2f)]+'>';return _0x8d7365[_0x48fd2d(0x2292)]('DASHBOARDS.NOT_ASSIGNED');}function _0x58d30d(_0xc04641){const _0x51c4f1=_0x735d83;if(_0xc04641[_0x51c4f1(0x141)])return _0xc04641['Account'][_0x51c4f1(0x2125)];return _0x8d7365['instant'](_0x51c4f1(0x1c8d));}function _0x4101ec(_0x52b3cf,_0x40e6ab){const _0xbdeac7=_0x735d83;_0x40e6ab[_0xbdeac7(0x73a)]?(_0x40e6ab[_0xbdeac7(0x73a)][_0xbdeac7(0x25c4)]=!![],_0x3dc4f7(null,_0x40e6ab[_0xbdeac7(0x73a)])):_0x41a1dc[_0xbdeac7(0xa60)]({'controller':_0xbdeac7(0x2439),'controllerAs':'vm','templateUrl':_0x11c654,'parent':angular[_0xbdeac7(0x1f81)](_0x3950ab[_0xbdeac7(0xb49)]),'clickOutsideToClose':![],'locals':{'account':_0x40e6ab['account'],'message':_0x40e6ab['content'],'type':_0xbdeac7(0x2581),'interaction':{}},'fullscreen':!![]})[_0xbdeac7(0x64a)](function(_0x5c720c){const _0x11000a=_0xbdeac7;if(_0x5c720c){if(_0x5c720c[_0x11000a(0x18ca)]&&_0x5c720c[_0x11000a(0x18ca)][_0x11000a(0x20ef)]){const _0x47cd2b={'id':_0x40e6ab['id'],'channel':'mail','account':_0x5c720c[_0x11000a(0x3e3)],'message':_0x5c720c[_0x11000a(0x18ca)]};_0x260cda[_0x11000a(0x2603)](_0x47cd2b);}else{const _0x34e7d4=_0x5c720c;return _0xcc3b78[_0x11000a(0x1b1e)]['send']({'id':_0x40e6ab[_0x11000a(0x3e3)]['id']},_0x34e7d4)[_0x11000a(0x15e7)][_0x11000a(0x64a)](function(_0x412cce){const _0x30e868=_0x11000a;_0x260cda[_0x30e868(0x21c7)](_0x40e6ab['id']);if(_0x412cce&&_0x412cce[_0x30e868(0x17af)]&&_0x412cce['Messages']['length']){if(_0x34e7d4[_0x30e868(0xf8c)]&&_0x34e7d4[_0x30e868(0xf8c)]['length'])for(let _0x416ab0=0x0;_0x416ab0<_0x34e7d4[_0x30e868(0xf8c)][_0x30e868(0x1b9e)];_0x416ab0+=0x1){_0xcc3b78[_0x30e868(0xd4d)][_0x30e868(0x2603)]({'id':_0x34e7d4[_0x30e868(0xf8c)][_0x416ab0]['id']},{'MailMessageId':_0x28c606()[_0x30e868(0x1ff2)](_0x412cce['Messages'])['id']});}_0x4632c9['success']({'title':_0x30e868(0x2040),'msg':_0x30e868(0x285b)});if(_0x412cce[_0x30e868(0x1140)]){_0x412cce[_0x30e868(0x168b)]=null;const _0x20b2a3=!_0x40e6ab['account'][_0x30e868(0xe19)],_0x2eb910=_0x3403ca[_0x30e868(0x2e8)]['voicePause']||_0x3403ca[_0x30e868(0x2e8)]['chatPause']||_0x3403ca[_0x30e868(0x2e8)][_0x30e868(0x292)]||_0x3403ca[_0x30e868(0x2e8)][_0x30e868(0x1451)]||_0x3403ca['user'][_0x30e868(0x211)];_0x41a1dc[_0x30e868(0xa60)]({'controller':_0x30e868(0x25d1),'controllerAs':'vm','templateUrl':_0x17dbb5,'parent':angular[_0x30e868(0x1f81)](_0x3950ab[_0x30e868(0xb49)]),'onRemoving':function(){const _0x438fed=_0x30e868;_0x3403ca['user']&&_0x40e6ab[_0x438fed(0x3e3)][_0x438fed(0xe19)]&&!_0x2eb910&&_0xcc3b78[_0x438fed(0x2e8)]['unpause']({'id':_0x3403ca[_0x438fed(0x2e8)]['id']})[_0x438fed(0x15e7)][_0x438fed(0x20cd)](function(_0x186a55){const _0x505398=_0x438fed;console[_0x505398(0x1bd0)](_0x186a55);});},'clickOutsideToClose':_0x20b2a3,'escapeToClose':_0x20b2a3,'locals':{'user':_0x3403ca[_0x30e868(0x2e8)],'channel':_0x30e868(0xc71),'interaction':_0x412cce}});}else _0x5f0ff[_0x30e868(0x4e3)]['vm']['addInteractionTab'](_0x30e868(0xc71),_0x412cce);}})[_0x11000a(0x20cd)](function(_0x13498b){const _0x198fb2=_0x11000a;if(_0x13498b['data']&&_0x13498b['data']['errors']&&_0x13498b[_0x198fb2(0x1c52)]['errors'][_0x198fb2(0x1b9e)])for(let _0x2d0857=0x0;_0x2d0857<_0x13498b[_0x198fb2(0x1c52)]['errors'][_0x198fb2(0x1b9e)];_0x2d0857++){_0x4632c9['error']({'title':_0x13498b[_0x198fb2(0x1c52)][_0x198fb2(0xbae)][_0x2d0857]['type'],'msg':_0x13498b[_0x198fb2(0x1c52)][_0x198fb2(0xbae)][_0x2d0857][_0x198fb2(0x18ca)]});}else _0x4632c9[_0x198fb2(0x1bd0)]({'title':_0x13498b[_0x198fb2(0x10b3)]?'API:'+_0x13498b[_0x198fb2(0x10b3)]+_0x198fb2(0x21db)+_0x13498b[_0x198fb2(0x2115)]:'MAILACCOUNT:SEND','msg':_0x13498b[_0x198fb2(0x1c52)]?JSON[_0x198fb2(0x2317)](_0x13498b[_0x198fb2(0x1c52)]['message']):_0x13498b[_0x198fb2(0x18ca)]||_0x13498b[_0x198fb2(0x2915)]()});});}}});}function _0x18d105(_0x45e0bc,_0x5dad2e){const _0x40da01=_0x735d83;_0x41a1dc['show']({'controller':_0x40da01(0x2439),'controllerAs':'vm','templateUrl':_0x11c654,'parent':angular[_0x40da01(0x1f81)](_0x3950ab['body']),'clickOutsideToClose':![],'locals':{'account':_0x5dad2e,'message':{},'type':_0x40da01(0x13c0),'interaction':{}},'fullscreen':!![]})[_0x40da01(0x64a)](function(_0x195812){const _0x458d3d=_0x40da01;if(_0x195812){if(_0x195812['message']&&_0x195812[_0x458d3d(0x18ca)]['savedAsDraft']){const _0x43f39e={'channel':'mail','account':_0x5dad2e,'message':_0x195812[_0x458d3d(0x18ca)],'contact':_0x195812[_0x458d3d(0x13f7)]};_0x260cda['add'](_0x43f39e);}else{const _0x172519=_0x195812;return _0xcc3b78[_0x458d3d(0x1b1e)][_0x458d3d(0xc10)]({'id':_0x5dad2e['id']},_0x172519)['$promise'][_0x458d3d(0x64a)](function(_0xb3939f){const _0x7b76f=_0x458d3d;if(_0xb3939f&&_0xb3939f[_0x7b76f(0x17af)]&&_0xb3939f[_0x7b76f(0x17af)]['length']){if(_0x172519[_0x7b76f(0xf8c)]&&_0x172519[_0x7b76f(0xf8c)][_0x7b76f(0x1b9e)])for(let _0x3c4f24=0x0;_0x3c4f24<_0x172519[_0x7b76f(0xf8c)][_0x7b76f(0x1b9e)];_0x3c4f24+=0x1){_0xcc3b78['attachment'][_0x7b76f(0x2603)]({'id':_0x172519[_0x7b76f(0xf8c)][_0x3c4f24]['id']},{'MailMessageId':_0x28c606()[_0x7b76f(0x1ff2)](_0xb3939f[_0x7b76f(0x17af)])['id']});}_0x4632c9[_0x7b76f(0x1339)]({'title':_0x7b76f(0x2040),'msg':'Message\x20has\x20been\x20sent!'});if(_0xb3939f['closed']){_0xb3939f[_0x7b76f(0x168b)]=null;const _0x4c564a=!_0x5dad2e[_0x7b76f(0xe19)],_0x3d6942=_0x3403ca[_0x7b76f(0x2e8)][_0x7b76f(0x11a4)]||_0x3403ca[_0x7b76f(0x2e8)]['chatPause']||_0x3403ca[_0x7b76f(0x2e8)][_0x7b76f(0x292)]||_0x3403ca[_0x7b76f(0x2e8)]['openchannelPause']||_0x3403ca['user']['faxPause'];_0x41a1dc[_0x7b76f(0xa60)]({'controller':_0x7b76f(0x25d1),'controllerAs':'vm','templateUrl':_0x17dbb5,'parent':angular['element'](_0x3950ab[_0x7b76f(0xb49)]),'onRemoving':function(){const _0x24c04c=_0x7b76f;_0x3403ca[_0x24c04c(0x2e8)]&&_0x5dad2e[_0x24c04c(0xe19)]&&!_0x3d6942&&_0xcc3b78[_0x24c04c(0x2e8)][_0x24c04c(0x818)]({'id':_0x3403ca['user']['id']})[_0x24c04c(0x15e7)][_0x24c04c(0x20cd)](function(_0x4b2d1b){const _0x37a1da=_0x24c04c;console[_0x37a1da(0x1bd0)](_0x4b2d1b);});},'clickOutsideToClose':_0x4c564a,'escapeToClose':_0x4c564a,'locals':{'user':_0x3403ca['user'],'channel':'mail','interaction':_0xb3939f}});}else _0x5f0ff['$parent']['vm'][_0x7b76f(0x1540)](_0x7b76f(0xc71),_0xb3939f);}})['catch'](function(_0xe2e8cc){const _0x4c65fc=_0x458d3d;if(_0xe2e8cc[_0x4c65fc(0x1c52)]&&_0xe2e8cc[_0x4c65fc(0x1c52)]['errors']&&_0xe2e8cc[_0x4c65fc(0x1c52)][_0x4c65fc(0xbae)]['length'])for(let _0x9e2995=0x0;_0x9e2995<_0xe2e8cc[_0x4c65fc(0x1c52)][_0x4c65fc(0xbae)][_0x4c65fc(0x1b9e)];_0x9e2995++){_0x4632c9[_0x4c65fc(0x1bd0)]({'title':_0xe2e8cc[_0x4c65fc(0x1c52)][_0x4c65fc(0xbae)][_0x9e2995]['type'],'msg':_0xe2e8cc['data']['errors'][_0x9e2995][_0x4c65fc(0x18ca)]});}else _0x4632c9[_0x4c65fc(0x1bd0)]({'title':_0xe2e8cc['status']?_0x4c65fc(0x575)+_0xe2e8cc[_0x4c65fc(0x10b3)]+_0x4c65fc(0x21db)+_0xe2e8cc[_0x4c65fc(0x2115)]:_0x4c65fc(0x430),'msg':_0xe2e8cc[_0x4c65fc(0x1c52)]?JSON['stringify'](_0xe2e8cc[_0x4c65fc(0x1c52)][_0x4c65fc(0x18ca)]):_0xe2e8cc[_0x4c65fc(0x18ca)]||_0xe2e8cc['toString']()});});}}});}function _0x384826(_0x40771f){const _0x372e6d=_0x735d83;let _0x41b8a0;const _0x3abf5d=_0x28c606()[_0x372e6d(0x27bc)](_0x3403ca[_0x372e6d(0x28f1)]['rows'],{'id':_0x40771f[_0x372e6d(0x21f4)]});_0x3abf5d&&_0x3abf5d[_0x372e6d(0x25d3)]&&(_0x41b8a0=_0x28c606()[_0x372e6d(0x27bc)](_0x3abf5d[_0x372e6d(0x25d3)],{'id':_0x40771f[_0x372e6d(0x246c)]}),!_0x41b8a0&&_0x3abf5d['Users'][_0x372e6d(0x1954)]({'id':_0x40771f[_0x372e6d(0x246c)]}));}function _0x5593c3(_0x43da0f){const _0x43a183=_0x735d83,_0x4d5c04=_0x28c606()['find'](_0x3403ca['mailInteractions']['rows'],{'id':_0x43da0f['MailInteractionId']});_0x4d5c04&&_0x4d5c04[_0x43a183(0x25d3)]&&_0x28c606()[_0x43a183(0x21c7)](_0x4d5c04[_0x43a183(0x25d3)],{'id':_0x43da0f[_0x43a183(0x246c)]});}function _0x10712b(_0x3f86f2){const _0x2eba6c=_0x735d83;if(_0x3f86f2){const _0x1f5053=_0x28c606()[_0x2eba6c(0x27bc)](_0x3403ca[_0x2eba6c(0x28f1)][_0x2eba6c(0x28b8)],{'id':_0x3f86f2['id']});if(_0x1f5053){_0x1f5053[_0x2eba6c(0x25d3)]=[];_0x3f86f2[_0x2eba6c(0x1140)]&&(_0x1f5053[_0x2eba6c(0x18d3)]=0x0);if(_0x3403ca[_0x2eba6c(0x289a)][_0x2eba6c(0x768)]){const _0x1b6539=_0x28c606()['startsWith'](_0x3403ca[_0x2eba6c(0x289a)][_0x2eba6c(0x768)],'-')?_0x2eba6c(0x19d0):_0x2eba6c(0x2449);_0x3403ca[_0x2eba6c(0x28f1)][_0x2eba6c(0x28b8)]=_0x28c606()[_0x2eba6c(0x288e)](_0x3403ca['mailInteractions']['rows'],_0x28c606()[_0x2eba6c(0x17cf)](_0x3403ca[_0x2eba6c(0x289a)][_0x2eba6c(0x768)],'-'),_0x1b6539);}_0x28c606()[_0x2eba6c(0x14fe)](_0x1f5053,_0x28c606()['pick'](_0x3f86f2,_0x28c606()[_0x2eba6c(0x1ec6)](_0x1f5053)));}else _0x566c59(_0x3403ca[_0x2eba6c(0x289a)][_0x2eba6c(0xc72)]);}}function _0x24874d(_0x45e668){const _0x4098b7=_0x735d83;if(_0x45e668){const _0x2a3c19=_0x28c606()[_0x4098b7(0x27bc)](_0x3403ca[_0x4098b7(0x28f1)][_0x4098b7(0x28b8)],{'id':_0x45e668['id']});_0x2a3c19&&(_0x2a3c19[_0x4098b7(0x1178)]=_0x45e668[_0x4098b7(0x16a6)]||[],_0x28c606()[_0x4098b7(0x14fe)](_0x2a3c19,_0x28c606()[_0x4098b7(0x27bb)](_0x45e668,_0x28c606()['keys'](_0x2a3c19))));}}function _0x3d8a8a(_0x26c81d){const _0x3384e0=_0x735d83;if(_0x26c81d&&!_0x26c81d['secret']){const _0x289ae4=_0x28c606()[_0x3384e0(0x27bc)](_0x3403ca[_0x3384e0(0x28f1)]['rows'],{'id':_0x26c81d['MailInteractionId']});if(_0x289ae4){const _0x2c4fec=_0x28c606()[_0x3384e0(0x27bc)](_0x289ae4[_0x3384e0(0x17af)],{'id':_0x26c81d['id']});_0x2c4fec?_0x28c606()[_0x3384e0(0x14fe)](_0x2c4fec,_0x28c606()['pick'](_0x26c81d,_0x28c606()['keys'](_0x2c4fec))):(_0x28c606()[_0x3384e0(0x28d7)](_0x289ae4[_0x3384e0(0x17af)])&&(_0x289ae4[_0x3384e0(0x17af)]={'count':0x0}),!_0x26c81d[_0x3384e0(0x12a6)]&&(_0x289ae4[_0x3384e0(0x17af)][_0x3384e0(0xb90)]+=0x1));}}}function _0x518cb5(){const _0x255186=_0x735d83;_0x3403ca[_0x255186(0x2963)]=![];}function _0x463a33(){const _0x446002=_0x735d83;_0x3403ca[_0x446002(0x2963)]=!![];}function _0x39b92e(){const _0x1cb191=_0x735d83;_0x3403ca[_0x1cb191(0x2963)]=![],_0x41a1dc[_0x1cb191(0xa60)]({'controller':_0x1cb191(0x271c),'controllerAs':'vm','templateUrl':_0x46e7cb,'parent':angular[_0x1cb191(0x1f81)](_0x3950ab['body']),'clickOutsideToClose':![],'locals':{'color':_0x3403ca[_0x1cb191(0x18a0)],'fields':_0x3403ca[_0x1cb191(0x1b2f)]['fields'],'storagePath':'home.mail'},'fullscreen':!![]})[_0x1cb191(0x64a)](function(_0x3c6ac5){const _0x51c738=_0x1cb191;_0x3403ca['query']['search']=_0x3c6ac5===![]?undefined:_0x3c6ac5;if(_0x3403ca[_0x51c738(0x289a)][_0x51c738(0xb58)]||_0x3c6ac5===![])_0x566c59();})['catch'](function(_0x1f2c59){const _0x12cf7a=_0x1cb191;_0x4632c9[_0x12cf7a(0x1bd0)]({'title':_0x12cf7a(0x2440),'msg':_0x1f2c59[_0x12cf7a(0x1c52)]?JSON['stringify'](_0x1f2c59[_0x12cf7a(0x1c52)]['message']):_0x1f2c59[_0x12cf7a(0x2915)]()});});}let _0x3eee51=!![],_0x1d7df8=0x1;_0x5f0ff[_0x735d83(0xc62)](_0x735d83(0x1cb9),function(_0x81f61b,_0x35cf59){const _0x2c3bbd=_0x735d83;_0x3eee51?_0x12badb(function(){_0x3eee51=![];}):(!_0x35cf59&&(_0x1d7df8=_0x3403ca[_0x2c3bbd(0x289a)]['page']),_0x81f61b!==_0x35cf59&&(_0x3403ca[_0x2c3bbd(0x289a)][_0x2c3bbd(0xc72)]=0x1),!_0x81f61b&&(_0x3403ca[_0x2c3bbd(0x289a)]['page']=_0x1d7df8),_0x566c59(_0x3403ca['query'][_0x2c3bbd(0xc72)]));}),_0x5f0ff[_0x735d83(0x8c7)]('$destroy',function(){const _0x21e9d2=_0x735d83;_0x20982f[_0x21e9d2(0x1951)](_0x21e9d2(0x1189)),_0x20982f[_0x21e9d2(0x1951)](_0x21e9d2(0xf2b)),_0x20982f[_0x21e9d2(0x1951)](_0x21e9d2(0x1d5c)),_0x20982f['removeAllListeners'](_0x21e9d2(0x112e)),_0x20982f[_0x21e9d2(0x1951)](_0x21e9d2(0x11ba)),_0x20982f[_0x21e9d2(0x1951)](_0x21e9d2(0x2781)),_0x20982f[_0x21e9d2(0x1951)](_0x21e9d2(0x40a));});}const _0x2f93d5=_0x3c1cb2;;_0x5ed9d6[_0x49a1e3(0x1e73)]=['$document',_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0xdcf),_0x49a1e3(0xa19),'$window','toasty'];function _0x5ed9d6(_0x5d8b29,_0x9f3ac8,_0x5cb9c3,_0x4900d8,_0x1e2926,_0x2860be,_0x229cf1,_0x48fb7f){const _0x228b6c=_0x49a1e3,_0x93a5f1=this;_0x93a5f1['currentUser']=_0x1e2926[_0x228b6c(0x808)](),_0x93a5f1[_0x228b6c(0x974)]={},_0x93a5f1[_0x228b6c(0x197e)]={'count':0x0,'rows':[]},_0x93a5f1[_0x228b6c(0x16a6)]={'count':0x0,'rows':[]},_0x93a5f1[_0x228b6c(0x289a)]={'includeAll':!![],'id':_0x93a5f1[_0x228b6c(0x1d3d)]['id'],'sort':_0x228b6c(0x260c),'limit':0xa,'page':0x1},_0x93a5f1['advancedSearch']={'fields':[]},_0x93a5f1['sectionColor']=_0x228b6c(0x224),_0x93a5f1[_0x228b6c(0x199a)]=_0x362b51,_0x93a5f1[_0x228b6c(0x43d)]=_0x10d256,_0x93a5f1[_0x228b6c(0x2866)]=_0x5a9784,_0x93a5f1[_0x228b6c(0x17df)]=_0x51d1ce,_0x93a5f1[_0x228b6c(0x25cf)]=_0x20e030,_0x93a5f1[_0x228b6c(0x17f0)]=_0x9f3ac8[_0x228b6c(0x4e3)]['vm'][_0x228b6c(0x17f0)],_0x93a5f1[_0x228b6c(0x2483)]=_0x5a737a,_0x93a5f1['onSearchBarCollapse']=_0x36a8cd,_0x93a5f1[_0x228b6c(0xd90)]=_0x5132a6,_0x93a5f1[_0x228b6c(0x114f)]=_0x5b1edf;function _0x5a737a(){const _0x246276=_0x228b6c;_0x2860be['cmList'][_0x246276(0x896)]({'fields':_0x246276(0x19f2),'sort':_0x246276(0x2494),'nolimit':!![]})[_0x246276(0x15e7)][_0x246276(0x64a)](function(_0x1e16f9){const _0x4a8ab1=_0x246276;return _0x93a5f1[_0x4a8ab1(0x974)]=_0x1e16f9||{'count':0x0,'rows':[]},_0x93a5f1[_0x4a8ab1(0x26ef)]=_0x28c606()['keyBy'](_0x93a5f1['lists']['rows'],'id'),_0x2860be[_0x4a8ab1(0xac8)]['get']()['$promise'];})[_0x246276(0x64a)](function(_0x487b9f){const _0xd133c8=_0x246276;_0x93a5f1[_0xd133c8(0x16a6)]=_0x487b9f||{'count':0x0,'rows':[]};})[_0x246276(0x64a)](function(){_0x93a5f1['quickFilters']=_0xa36fc1();})['catch'](function(_0x2444c3){const _0x5a49b7=_0x246276;console[_0x5a49b7(0x1bd0)](_0x2444c3);})[_0x246276(0x988)](function(){const _0x1ec56d=_0x246276;let _0x4c6db8=_0x229cf1[_0x1ec56d(0x294)]['getItem'](_0x1ec56d(0x10c6)+_0x93a5f1[_0x1ec56d(0x1d3d)]['id']);if(_0x4c6db8)try{_0x4c6db8=JSON[_0x1ec56d(0x27f1)](_0x4c6db8);if(_0x4c6db8[_0x1ec56d(0x289a)]){_0x93a5f1[_0x1ec56d(0x289a)]=_0x28c606()['merge'](_0x93a5f1[_0x1ec56d(0x289a)],_0x4c6db8[_0x1ec56d(0x289a)]);if(_0x28c606()[_0x1ec56d(0x940)](_0x93a5f1[_0x1ec56d(0x974)][_0x1ec56d(0x28b8)]))_0x93a5f1[_0x1ec56d(0x289a)][_0x1ec56d(0x869)]=[];else _0x28c606()[_0x1ec56d(0x940)](_0x93a5f1[_0x1ec56d(0x289a)][_0x1ec56d(0x869)])&&(_0x93a5f1[_0x1ec56d(0x289a)][_0x1ec56d(0x869)]=_0x28c606()(_0x93a5f1[_0x1ec56d(0x974)][_0x1ec56d(0x28b8)])[_0x1ec56d(0x1de5)]('id')[_0x1ec56d(0x840)]()[_0x1ec56d(0x1096)]());}}catch(_0x116dc7){console[_0x1ec56d(0x1bd0)](_0x116dc7);}else _0x93a5f1['query']['ListId']=_0x28c606()['map'](_0x93a5f1[_0x1ec56d(0x974)][_0x1ec56d(0x28b8)],'id');_0x93a5f1[_0x1ec56d(0x2963)]=_0x93a5f1['query'][_0x1ec56d(0xcec)]?!![]:![],_0x362b51();});}function _0xa36fc1(){const _0xf949c3=_0x228b6c;return[{'name':_0xf949c3(0x177c),'key':_0xf949c3(0x869),'type':_0xf949c3(0x20ae),'label':_0xf949c3(0x2ec),'options':_0x93a5f1[_0xf949c3(0x974)]['rows'],'clearAll':![]},{'name':_0xf949c3(0x1e9f),'key':_0xf949c3(0xac8),'type':_0xf949c3(0x20ae),'label':_0xf949c3(0x1208),'options':_0x93a5f1['tags'][_0xf949c3(0x28b8)],'placeholder':'DASHBOARDS.TAGS'}];}function _0x97b468(_0x333847){const _0x4c39bf=_0x228b6c;_0x93a5f1[_0x4c39bf(0x25cb)]=![],_0x93a5f1['contacts']=_0x333847||{'count':0x0,'rows':[]};}function _0x362b51(_0xdf9ccf){const _0x51b279=_0x228b6c;_0x93a5f1['searchInProgress']=!![],_0x3c30f3();!_0xdf9ccf&&(_0x93a5f1['query']['page']=0x1);_0x93a5f1['query'][_0x51b279(0x24f9)]=(_0x93a5f1[_0x51b279(0x289a)][_0x51b279(0xc72)]-0x1)*_0x93a5f1[_0x51b279(0x289a)][_0x51b279(0x25bb)];let _0x17620b=_0x229cf1[_0x51b279(0x294)]['getItem'](_0x51b279(0x10c6)+_0x93a5f1[_0x51b279(0x1d3d)]['id']);_0x17620b=_0x17620b?JSON[_0x51b279(0x27f1)](_0x17620b):{},_0x17620b[_0x51b279(0x289a)]=_0x93a5f1[_0x51b279(0x289a)],_0x229cf1[_0x51b279(0x294)][_0x51b279(0x15da)](_0x51b279(0x10c6)+_0x93a5f1[_0x51b279(0x1d3d)]['id'],JSON[_0x51b279(0x2317)](_0x17620b));if(_0x93a5f1['query'][_0x51b279(0xb58)])_0x93a5f1[_0x51b279(0xb08)]=_0x28c606()['omit'](_0x93a5f1[_0x51b279(0x289a)],'id');_0x93a5f1[_0x51b279(0x1713)]=_0x93a5f1[_0x51b279(0x289a)][_0x51b279(0xb58)]?_0x2860be[_0x51b279(0xdf5)][_0x51b279(0x896)](_0x93a5f1['advancedQuery'],_0x97b468)[_0x51b279(0x15e7)]:_0x2860be['user']['getContacts'](_0x93a5f1['query'],_0x97b468)[_0x51b279(0x15e7)];}function _0x20e030(_0x38432c,_0x48ab14){const _0x118b5a=_0x228b6c;_0x9f3ac8[_0x118b5a(0x4e3)]['vm'][_0x118b5a(0x251)](_0x48ab14);}function _0x10d256(){_0x362b51();}function _0x51d1ce(_0x41d0a8,_0x1c72e2){const _0x2e0f0f=_0x228b6c;_0x4900d8[_0x2e0f0f(0xa60)]({'controller':_0x2e0f0f(0x113d),'controllerAs':'vm','templateUrl':_0x4d4648,'parent':angular[_0x2e0f0f(0x1f81)](_0x5d8b29[_0x2e0f0f(0xb49)]),'targetEvent':_0x41d0a8,'clickOutsideToClose':!![],'resolve':{'contact':[_0x2e0f0f(0x107c),function(_0x5f4434){const _0x4384a8=_0x2e0f0f;return _0x5f4434[_0x4384a8(0x1268)](_0x4384a8(0x1188),{'id':_0x1c72e2['id']});}],'lists':[_0x2e0f0f(0x107c),function(_0x512125){const _0x20b438=_0x2e0f0f;return _0x512125[_0x20b438(0x1268)](_0x20b438(0x258),{'id':_0x93a5f1[_0x20b438(0x1d3d)]['id'],'fields':_0x20b438(0x1427)});}]},'locals':{'contacts':_0x93a5f1[_0x2e0f0f(0x197e)][_0x2e0f0f(0x28b8)]}});}function _0x5a9784(_0x2ea9af,_0x2f7fa3){const _0x140c0f=_0x228b6c;_0x4900d8[_0x140c0f(0xa60)]({'controller':_0x140c0f(0xc0a),'controllerAs':'vm','templateUrl':_0x32a305,'parent':angular['element'](_0x5d8b29['body']),'targetEvent':_0x2ea9af,'clickOutsideToClose':!![],'resolve':{'contact':[_0x140c0f(0x107c),function(_0x557f14){const _0xff24c5=_0x140c0f;return _0x557f14[_0xff24c5(0x1268)](_0xff24c5(0x1188),{'id':_0x2f7fa3['id']});}],'lists':[_0x140c0f(0x107c),function(_0x1bc317){const _0x2bf4c1=_0x140c0f;return _0x1bc317[_0x2bf4c1(0x1268)](_0x2bf4c1(0x258),{'id':_0x93a5f1[_0x2bf4c1(0x1d3d)]['id'],'fields':_0x2bf4c1(0x1427)});}]},'locals':{'contacts':_0x93a5f1[_0x140c0f(0x197e)][_0x140c0f(0x28b8)]}});}function _0x36a8cd(){const _0x5f4208=_0x228b6c;_0x93a5f1[_0x5f4208(0x2963)]=![];}function _0x5132a6(){const _0x110601=_0x228b6c;_0x93a5f1[_0x110601(0x2963)]=!![];}function _0x3c30f3(){const _0x5e0ddc=_0x228b6c;return _0x2860be[_0x5e0ddc(0xdf5)][_0x5e0ddc(0xa81)]({'id':_0x93a5f1[_0x5e0ddc(0x289a)]['ListId']})[_0x5e0ddc(0x15e7)][_0x5e0ddc(0x64a)](function(_0x353916){const _0x276ea1=_0x5e0ddc;return _0x28c606()(_0x353916[_0x276ea1(0x14f8)]())[_0x276ea1(0xd09)](_0x276ea1(0x246c))['values']()['map'](function(_0x2cc6dc){return _0x16edf2(_0x2cc6dc);})[_0x276ea1(0x1096)]();})['then'](function(_0x4418d6){const _0x8ac324=_0x5e0ddc;_0x93a5f1['advancedSearch']['fields']=_0x4418d6;const _0x40114a={'name':_0x8ac324(0x1178),'column':_0x8ac324(0x1e9f),'type':'multiselect','options':{'route':{'model':_0x8ac324(0xac8),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x8ac324(0x9eb)]}};let _0x3992da=_0x28c606()[_0x8ac324(0xb10)](_0x4418d6,function(_0x297924){const _0x4b9ae9=_0x8ac324;return _0x28c606()[_0x4b9ae9(0x1273)](_0x297924[_0x4b9ae9(0xacf)],_0x4b9ae9(0x48d));})||_0x4418d6[_0x8ac324(0x1b9e)]-0x1;if(_0x3992da<0x0)_0x3992da=_0x4418d6['length'];_0x93a5f1[_0x8ac324(0x1b2f)][_0x8ac324(0xf26)][_0x8ac324(0x18f0)](_0x3992da,0x0,_0x40114a);})[_0x5e0ddc(0x20cd)](function(_0x329360){const _0x30cafe=_0x5e0ddc;_0x48fb7f[_0x30cafe(0x1bd0)]({'title':_0x329360[_0x30cafe(0x10b3)]?_0x30cafe(0x575)+_0x329360['status']+_0x30cafe(0x21db)+_0x329360[_0x30cafe(0x2115)]:_0x30cafe(0x2870),'msg':_0x329360[_0x30cafe(0x1c52)]?JSON['stringify'](_0x329360['data'][_0x30cafe(0x18ca)]):_0x329360['toString']()});});}function _0x16edf2(_0x3e4898){const _0x3e6cb7=_0x228b6c,_0x19fb71={'name':_0x28c606()['startCase'](_0x3e4898[_0x3e6cb7(0x620)]),'column':_0x3e4898[_0x3e6cb7(0x210b)],'options':{}};if(_0x3e4898[_0x3e6cb7(0x1ad6)])switch(_0x3e4898[_0x3e6cb7(0x1ad6)][_0x3e6cb7(0x2185)]){case _0x3e6cb7(0x39b):_0x19fb71[_0x3e6cb7(0x2185)]=_0x3e6cb7(0x39b);break;case _0x3e6cb7(0x2926):_0x19fb71[_0x3e6cb7(0x2185)]='multiselect',_0x19fb71['values']=_0x28c606()[_0x3e6cb7(0x1de5)](JSON['parse'](_0x3e4898[_0x3e6cb7(0x1ad6)][_0x3e6cb7(0x2146)]),function(_0x32a3f7,_0x3bc35a){const _0x7e93c9=_0x3e6cb7;return{'id':_0x3bc35a,'name':_0x32a3f7[_0x7e93c9(0x1096)],'value':_0x32a3f7['value']};}),_0x19fb71[_0x3e6cb7(0x59e)][_0x3e6cb7(0xc26)]=_0x3e6cb7(0x2494);break;case'switch':_0x19fb71[_0x3e6cb7(0x2185)]=_0x3e6cb7(0x2926),_0x19fb71[_0x3e6cb7(0x2146)]=[{'id':0x1,'translate':'DASHBOARDS.ENABLED'},{'id':0x0,'translate':_0x3e6cb7(0x6f3)}],_0x19fb71[_0x3e6cb7(0x59e)][_0x3e6cb7(0xce9)]=['$ne'];break;case _0x3e6cb7(0x2113):_0x19fb71[_0x3e6cb7(0x2185)]='number';break;case'datetime':_0x19fb71['type']=_0x3e6cb7(0x232e);break;}else switch(_0x3e4898[_0x3e6cb7(0x210b)]){case _0x3e6cb7(0x20f1):_0x19fb71[_0x3e6cb7(0x2185)]=_0x3e6cb7(0x232e);break;case'CompanyId':_0x19fb71[_0x3e6cb7(0x2494)]='Company',_0x19fb71[_0x3e6cb7(0x2185)]=_0x3e6cb7(0x21b7),_0x19fb71[_0x3e6cb7(0x59e)]['route']={'model':'cmCompany','action':_0x3e6cb7(0x896),'params':{'fields':_0x3e6cb7(0x1427),'nolimit':!![]}},_0x19fb71[_0x3e6cb7(0x59e)]['searchFields']=['name'],_0x19fb71['options'][_0x3e6cb7(0xce9)]=['$ne'];break;case'ListId':_0x19fb71[_0x3e6cb7(0x2494)]='List',_0x19fb71['type']='autocomplete',_0x19fb71[_0x3e6cb7(0x59e)][_0x3e6cb7(0xb5a)]={'model':_0x3e6cb7(0x2e8),'action':_0x3e6cb7(0x7aa),'params':{'id':_0x93a5f1['currentUser']['id'],'fields':'id,name','nolimit':!![]}},_0x19fb71['options'][_0x3e6cb7(0xbdf)]=[_0x3e6cb7(0x2494)],_0x19fb71[_0x3e6cb7(0x59e)][_0x3e6cb7(0xce9)]=[_0x3e6cb7(0x14b5)];break;default:if(_0x28c606()[_0x3e6cb7(0x68a)](_0x3e4898[_0x3e6cb7(0x2185)]['toLowerCase'](),'int'))_0x19fb71[_0x3e6cb7(0x2185)]=_0x3e6cb7(0x2113);else _0x28c606()['includes'](_0x3e4898[_0x3e6cb7(0x2185)][_0x3e6cb7(0x2554)](),_0x3e6cb7(0x232e))?_0x19fb71[_0x3e6cb7(0x2185)]=_0x3e6cb7(0x232e):_0x19fb71[_0x3e6cb7(0x2185)]=_0x3e6cb7(0x39b);break;}return _0x19fb71;}function _0x5b1edf(){const _0x39b7cb=_0x228b6c;_0x93a5f1[_0x39b7cb(0x2963)]=![],_0x4900d8['show']({'controller':_0x39b7cb(0x271c),'controllerAs':'vm','templateUrl':_0x46e7cb,'parent':angular[_0x39b7cb(0x1f81)](_0x5d8b29[_0x39b7cb(0xb49)]),'clickOutsideToClose':![],'locals':{'color':_0x93a5f1[_0x39b7cb(0x18a0)],'fields':_0x93a5f1['advancedSearch'][_0x39b7cb(0xf26)],'storagePath':_0x39b7cb(0x2191)},'fullscreen':!![]})['then'](function(_0x26f4cf){const _0x1c181d=_0x39b7cb;_0x93a5f1[_0x1c181d(0x289a)][_0x1c181d(0xb58)]=_0x26f4cf===![]?undefined:_0x26f4cf;if(_0x26f4cf===![])_0x362b51();else _0x93a5f1[_0x1c181d(0x289a)][_0x1c181d(0xb58)]&&(_0x93a5f1[_0x1c181d(0x289a)][_0x1c181d(0xb58)]+=_0x1c181d(0x167f)+_0x93a5f1[_0x1c181d(0x1d3d)]['id']+']',_0x362b51());})[_0x39b7cb(0x20cd)](function(_0x1113e4){const _0x5a4fe5=_0x39b7cb;_0x48fb7f['error']({'title':_0x5a4fe5(0x2440),'msg':_0x1113e4[_0x5a4fe5(0x1c52)]?JSON[_0x5a4fe5(0x2317)](_0x1113e4[_0x5a4fe5(0x1c52)][_0x5a4fe5(0x18ca)]):_0x1113e4[_0x5a4fe5(0x2915)]()});});}let _0x3165be=!![],_0x5d21a4=0x1;_0x9f3ac8[_0x228b6c(0xc62)](_0x228b6c(0x1cb9),function(_0xb24603,_0x4ff500){const _0x198116=_0x228b6c;_0x3165be?_0x5cb9c3(function(){_0x3165be=![];}):(!_0x4ff500&&(_0x5d21a4=_0x93a5f1[_0x198116(0x289a)][_0x198116(0xc72)]),_0xb24603!==_0x4ff500&&(_0x93a5f1[_0x198116(0x289a)][_0x198116(0xc72)]=0x1),!_0xb24603&&(_0x93a5f1[_0x198116(0x289a)][_0x198116(0xc72)]=_0x5d21a4),_0x362b51());});}const _0x2fe98a=_0x5ed9d6;;_0x2c6d22[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),'$document','$window',_0x49a1e3(0x298c),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'socket','toasty','draftManager'];function _0x2c6d22(_0x3543c4,_0x5f2966,_0x439da1,_0x4d2821,_0x54d4df,_0x4cd6a0,_0x1187c9,_0x42c17a,_0xbeea5f,_0x478225,_0x4ea536){const _0x170d57=_0x49a1e3,_0x324883=this;_0x324883[_0x170d57(0x2e8)]=_0x42c17a['getCurrentUser'](),_0x324883['license']={},_0x324883[_0x170d57(0x28d6)]={},_0x324883[_0x170d57(0x16a6)]={'count':0x0,'rows':[]},_0x324883['openchannelInteractions']={'count':0x0,'rows':[]},_0x324883['query']={'includeAll':!![],'sort':_0x170d57(0x260c),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x324883[_0x170d57(0x1b2f)]={'fields':[{'name':'Id','column':'id','type':_0x170d57(0x2113)},{'name':_0x170d57(0x1c38),'column':_0x170d57(0x1c38),'type':_0x170d57(0x21b7),'options':{'searchFields':[_0x170d57(0x2518),_0x170d57(0x21c4),_0x170d57(0xd47)],'route':{'model':'cmContact','action':_0x170d57(0x896),'params':{'fields':_0x170d57(0x3ef),'Contact':_0x170d57(0xb96),'nolimit':!![]}},'extraOperators':[_0x170d57(0xe87)],'excludedOperators':['$ne']}},{'name':'Body','column':_0x170d57(0xb49),'type':_0x170d57(0x39b),'options':{'excludedOperators':['$eq',_0x170d57(0x14b5)]}},{'name':_0x170d57(0x2311),'column':_0x170d57(0x1140),'type':_0x170d57(0x2926),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x170d57(0x5cd)}],'options':{'excludedOperators':[_0x170d57(0x14b5)]}},{'name':_0x170d57(0x12ad),'column':'User','type':_0x170d57(0x21b7),'options':{'table':'i','route':{'model':_0x170d57(0x2e8),'action':_0x170d57(0x896),'params':{'role':_0x170d57(0x11ae),'fields':_0x170d57(0xd53),'nolimit':!![]}},'searchFields':[_0x170d57(0x15c),_0x170d57(0x2494)],'extraOperators':[_0x170d57(0xe87)],'excludedOperators':[_0x170d57(0x14b5)]}},{'name':_0x170d57(0x141),'column':_0x170d57(0x2859),'type':_0x170d57(0x20ae),'options':{'route':{'model':_0x170d57(0x2e8),'action':_0x170d57(0x1247),'params':{'id':_0x324883[_0x170d57(0x2e8)]['id'],'nolimit':!![]}}}},{'name':_0x170d57(0x1178),'column':'Tag','type':_0x170d57(0x20ae),'options':{'route':{'model':_0x170d57(0xac8),'action':_0x170d57(0x896),'params':{'nolimit':!![]}},'excludedOperators':[_0x170d57(0x9eb)]}},{'name':'Start\x20Date','column':_0x170d57(0x2378),'type':'date','options':{'excludedOperators':[_0x170d57(0x14b5)]}},{'name':_0x170d57(0xff4),'column':_0x170d57(0x18d3),'type':'select','values':[{'id':0x1,'translate':_0x170d57(0x1889)},{'id':0x0,'translate':_0x170d57(0x13be)}],'options':{'excludedOperators':[_0x170d57(0x14b5)]}}]},_0x324883[_0x170d57(0x18a0)]=_0x170d57(0x1615),_0x324883[_0x170d57(0x2483)]=_0x4f4b0b,_0x324883[_0x170d57(0x1339)]=_0x46a784,_0x324883[_0x170d57(0x11ad)]=_0x3c50df,_0x324883[_0x170d57(0x30b)]=_0x524a3d,_0x324883['downloadOpenchannelInteraction']=_0x25ec02,_0x324883[_0x170d57(0x255b)]=_0x26754c,_0x324883['getContactLabel']=_0xa623c0,_0x324883[_0x170d57(0x1a08)]=_0x172c9f,_0x324883['getOpenchannelAccountLabel']=_0x255c71,_0x324883[_0x170d57(0x1ab9)]=_0x4405b0,_0x324883[_0x170d57(0xb3d)]=_0x463b6d,_0x324883['onSearchBarExpand']=_0x1e77ee,_0x324883[_0x170d57(0x114f)]=_0x526716;function _0x4f4b0b(_0x301700,_0x56659a){const _0x2bc07e=_0x170d57;return _0x324883[_0x2bc07e(0x1947)]=_0x301700,_0x324883[_0x2bc07e(0x28d6)]=_0x56659a,_0x1187c9[_0x2bc07e(0x2e8)]['get'+_0x28c606()[_0x2bc07e(0x1766)]('openchannelAccounts')]({'id':_0x324883[_0x2bc07e(0x2e8)]['id'],'nolimit':!![]})[_0x2bc07e(0x15e7)][_0x2bc07e(0x64a)](function(_0x1cfc33){const _0x26757c=_0x2bc07e;return _0x324883['openchannelAccounts']=_0x1cfc33||{'count':0x0,'rows':[]},_0x1187c9[_0x26757c(0xac8)][_0x26757c(0x896)]()[_0x26757c(0x15e7)];})[_0x2bc07e(0x64a)](function(_0x30ba6c){const _0xaf808c=_0x2bc07e;_0x324883[_0xaf808c(0x16a6)]=_0x30ba6c||{'count':0x0,'rows':[]};})['then'](function(){_0x324883['quickFilters']=_0x30d1b7();})[_0x2bc07e(0x20cd)](function(_0x3da9ad){const _0x4f6cc1=_0x2bc07e;console[_0x4f6cc1(0x1bd0)](_0x3da9ad);})['finally'](function(){const _0x5d14d2=_0x2bc07e;let _0x5d251a=_0x54d4df[_0x5d14d2(0x294)][_0x5d14d2(0x1ed0)](_0x5d14d2(0x23fe)+_0x324883['user']['id']);if(_0x5d251a)try{_0x5d251a=JSON[_0x5d14d2(0x27f1)](_0x5d251a);if(_0x5d251a['query']){_0x324883[_0x5d14d2(0x289a)]=_0x28c606()[_0x5d14d2(0x14fe)](_0x324883[_0x5d14d2(0x289a)],_0x5d251a[_0x5d14d2(0x289a)]);if(_0x28c606()[_0x5d14d2(0x940)](_0x324883['openchannelAccounts'][_0x5d14d2(0x28b8)]))_0x324883[_0x5d14d2(0x289a)][_0x5d14d2(0x2859)]=[];else _0x28c606()[_0x5d14d2(0x940)](_0x324883[_0x5d14d2(0x289a)][_0x5d14d2(0x2859)])&&(_0x324883['query'][_0x5d14d2(0x2859)]=_0x28c606()(_0x324883['openchannelAccounts'][_0x5d14d2(0x28b8)])['map']('id')[_0x5d14d2(0x840)]()[_0x5d14d2(0x1096)]());_0x324883[_0x5d14d2(0x289a)][_0x5d14d2(0x768)]&&_0x324883[_0x5d14d2(0x289a)][_0x5d14d2(0x768)]['indexOf'](_0x5d14d2(0xa3f))>=0x0&&(_0x324883[_0x5d14d2(0x289a)]=_0x28c606()[_0x5d14d2(0xd09)](_0x324883[_0x5d14d2(0x289a)],_0x5d14d2(0x768))),_0x324883['query']['includeAll']=!![],_0x324883['isSearchBarVisible']=_0x324883[_0x5d14d2(0x289a)][_0x5d14d2(0xcec)]?!![]:![];}}catch(_0x144e71){console[_0x5d14d2(0x1bd0)](_0x144e71);}else{const _0x584bd2={'$gte':_0x2ac33a()()[_0x5d14d2(0x246e)](_0x5d14d2(0x5f5))['utcOffset'](0x0,!![])['format'](),'$lte':_0x2ac33a()()[_0x5d14d2(0x13af)]('month')[_0x5d14d2(0xebc)](0x0,!![])[_0x5d14d2(0x1c2c)]()},_0x274ca4={'OpenchannelAccountId':_0x28c606()[_0x5d14d2(0x1de5)](_0x324883['openchannelAccounts'][_0x5d14d2(0x28b8)],'id'),'createdAt':_0x584bd2};_0x324883[_0x5d14d2(0x289a)]=_0x28c606()['merge'](_0x324883[_0x5d14d2(0x289a)],_0x274ca4);}_0xbeea5f['on']('openchannelInteraction:save',_0x3981b7),_0xbeea5f['on'](_0x5d14d2(0x106b),_0x3981b7),_0xbeea5f['on'](_0x5d14d2(0x1a32),_0x38bf3b),_0xbeea5f['on'](_0x5d14d2(0x1304),_0xb34a03),_0xbeea5f['on']('openchannelMessage:update',_0xb34a03),_0xbeea5f['on']('user_has_openchannel_interactions:save',_0x3c49f1),_0xbeea5f['on']('user_has_openchannel_interactions:remove',_0x2946d8),_0x3c50df(_0x324883[_0x5d14d2(0x289a)][_0x5d14d2(0xc72)]);});}function _0x30d1b7(){const _0x2e4209=_0x170d57;return[{'name':_0x2e4209(0x1967),'key':'createdAt','type':'date','label':_0x2e4209(0x2720)},{'name':'Messages','key':_0x2e4209(0x12a6),'type':'select','label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x2e4209(0x13be)},{'value':0x1,'translate':_0x2e4209(0x1889)},{'value':null,'translate':_0x2e4209(0x2200)}]},{'name':_0x2e4209(0x2311),'key':'closed','type':_0x2e4209(0x2926),'label':_0x2e4209(0x110d),'customOptions':[{'value':0x0,'translate':_0x2e4209(0x1313)},{'value':0x1,'translate':_0x2e4209(0x5cd)},{'value':null,'translate':_0x2e4209(0x2200)}]},{'name':_0x2e4209(0x141),'key':_0x2e4209(0x2859),'type':'multiselect','label':_0x2e4209(0x214f),'options':_0x324883[_0x2e4209(0xda9)][_0x2e4209(0x28b8)],'clearAll':![]},{'name':_0x2e4209(0x12ad),'key':_0x2e4209(0x246c),'type':_0x2e4209(0x2926),'label':_0x2e4209(0x18bf),'customOptions':[{'value':_0x324883['user']['id'],'translate':'DASHBOARDS.ME'},{'value':_0x2e4209(0x8f1),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x2e4209(0x2200)}]},{'name':_0x2e4209(0x1e9f),'key':_0x2e4209(0xac8),'type':'multiselect','label':_0x2e4209(0x1208),'options':_0x324883[_0x2e4209(0x16a6)][_0x2e4209(0x28b8)],'placeholder':_0x2e4209(0x6a6)}];}function _0x46a784(_0x4ac9f9){const _0x3711ca=_0x170d57;_0x324883[_0x3711ca(0x25cb)]=![],_0x324883['openchannelInteractions']=_0x4ac9f9||{'count':0x0,'rows':[]};for(let _0x15470e=0x0;_0x15470e<_0x324883[_0x3711ca(0x1bbd)]['rows']['length'];_0x15470e+=0x1){_0xa623c0(_0x324883[_0x3711ca(0x1bbd)]['rows'][_0x15470e]);}}function _0x3c50df(_0x33ecda){const _0x1d1e7e=_0x170d57;_0x324883[_0x1d1e7e(0x25cb)]=!![];!_0x33ecda&&(_0x324883[_0x1d1e7e(0x289a)][_0x1d1e7e(0xc72)]=0x1);_0x324883[_0x1d1e7e(0x289a)][_0x1d1e7e(0x24f9)]=(_0x324883[_0x1d1e7e(0x289a)]['page']-0x1)*_0x324883[_0x1d1e7e(0x289a)][_0x1d1e7e(0x25bb)];let _0x533ae8=_0x54d4df[_0x1d1e7e(0x294)][_0x1d1e7e(0x1ed0)](_0x1d1e7e(0x23fe)+_0x324883['user']['id']);_0x533ae8=_0x533ae8?JSON[_0x1d1e7e(0x27f1)](_0x533ae8):{},_0x533ae8['query']=_0x324883[_0x1d1e7e(0x289a)],_0x54d4df[_0x1d1e7e(0x294)][_0x1d1e7e(0x15da)](_0x1d1e7e(0x23fe)+_0x324883['user']['id'],JSON['stringify'](_0x533ae8)),_0x324883['promise']=_0x1187c9['openchannelInteraction'][_0x1d1e7e(0x896)](_0x324883['query'],_0x46a784)[_0x1d1e7e(0x15e7)];}function _0x524a3d(_0x3f50cd,_0x11b92e){const _0x30b156=_0x170d57;_0x3543c4[_0x30b156(0x4e3)]['vm'][_0x30b156(0x1540)](_0x30b156(0x28ad),_0x11b92e);}function _0x25ec02(_0x22baca,_0x5e2f90,_0x30a09e){const _0x552571=_0x170d57;_0x1187c9[_0x552571(0x1265)][_0x552571(0x19b3)]({'id':_0x5e2f90['id'],'attachments':_0x30a09e})[_0x552571(0x15e7)][_0x552571(0x64a)](function(_0x3b8109){const _0x3beee1=_0x552571,_0x21ca21=[_0x3b8109[_0x3beee1(0x5a9)]],_0x108916='openchannel-interaction'+_0x5e2f90['id']+_0x3beee1(0x2177),_0x5891b6=new Blob(_0x21ca21,{'type':_0x3b8109[_0x3beee1(0x2185)]}),_0x2dd667=window['document'][_0x3beee1(0x2978)]('a');_0x2dd667[_0x3beee1(0x1280)]('href',URL[_0x3beee1(0x206)](_0x5891b6)),_0x2dd667[_0x3beee1(0x1280)](_0x3beee1(0x19b3),_0x108916),document[_0x3beee1(0xb49)][_0x3beee1(0x2661)](_0x2dd667),_0x2dd667[_0x3beee1(0x2668)]();})[_0x552571(0x20cd)](function(_0x14234b){const _0x191508=_0x552571;if(_0x14234b[_0x191508(0x1c52)]&&_0x14234b[_0x191508(0x1c52)][_0x191508(0xbae)]&&_0x14234b[_0x191508(0x1c52)][_0x191508(0xbae)][_0x191508(0x1b9e)])for(let _0x3e3755=0x0;_0x3e3755<_0x14234b[_0x191508(0x1c52)]['errors'][_0x191508(0x1b9e)];_0x3e3755+=0x1){_0x478225['error']({'title':_0x14234b[_0x191508(0x1c52)][_0x191508(0xbae)][_0x3e3755][_0x191508(0x2185)],'msg':_0x14234b[_0x191508(0x1c52)][_0x191508(0xbae)][_0x3e3755][_0x191508(0x18ca)]});}else _0x478225[_0x191508(0x1bd0)]({'title':_0x14234b['status']?_0x191508(0x575)+_0x14234b[_0x191508(0x10b3)]+_0x191508(0x21db)+_0x14234b[_0x191508(0x2115)]:'downloadOpenchannelInteraction','msg':_0x14234b[_0x191508(0x1c52)]?JSON[_0x191508(0x2317)](_0x14234b['data'][_0x191508(0x18ca)]):_0x14234b[_0x191508(0x2915)]()});});}function _0x26754c(_0x160411,_0x35156e){const _0x21d354=_0x170d57,_0x9c54f1=_0x324883[_0x21d354(0x2e8)][_0x21d354(0x11a4)]||_0x324883['user'][_0x21d354(0x2248)]||_0x324883[_0x21d354(0x2e8)][_0x21d354(0x292)]||_0x324883['user'][_0x21d354(0x1451)]||_0x324883['user'][_0x21d354(0x211)],_0x2a61b6=!_0x35156e['Account'][_0x21d354(0xe19)];_0x439da1[_0x21d354(0xa60)]({'controller':_0x21d354(0x25d1),'controllerAs':'vm','templateUrl':_0x17dbb5,'parent':angular['element'](_0x4d2821[_0x21d354(0xb49)]),'clickOutsideToClose':_0x2a61b6,'escapeToClose':_0x2a61b6,'onRemoving':function(){const _0x53923b=_0x21d354;_0x324883[_0x53923b(0x2e8)]&&_0x35156e['Account'][_0x53923b(0xe19)]&&!_0x9c54f1&&_0x1187c9[_0x53923b(0x2e8)][_0x53923b(0x818)]({'id':_0x324883[_0x53923b(0x2e8)]['id']})[_0x53923b(0x15e7)][_0x53923b(0x20cd)](function(_0x299356){const _0x425941=_0x53923b;console[_0x425941(0x1bd0)](_0x299356);});},'locals':{'user':_0x324883[_0x21d354(0x2e8)],'channel':'openchannel','interaction':_0x35156e}});}function _0xa623c0(_0x1eb0d6){const _0x386322=_0x170d57;_0x1eb0d6['contactName']==='Unknown'&&(_0x1eb0d6[_0x386322(0xfd7)]=_0x4cd6a0[_0x386322(0x2292)](_0x386322(0x1c8d)));}function _0x172c9f(_0x321fe0){const _0x10b7cc=_0x170d57;if(_0x321fe0[_0x10b7cc(0x246c)])return _0x321fe0[_0x10b7cc(0x246c)]===_0x324883[_0x10b7cc(0x2e8)]['id']?_0x4cd6a0[_0x10b7cc(0x2292)](_0x10b7cc(0x2368)):_0x321fe0[_0x10b7cc(0x1b06)][_0x10b7cc(0x15c)]+'\x20<'+_0x321fe0[_0x10b7cc(0x1b06)][_0x10b7cc(0xe2f)]+'>';return _0x4cd6a0['instant'](_0x10b7cc(0x276d));}function _0x255c71(_0xac9e0c){const _0xf2b6f9=_0x170d57;if(_0xac9e0c[_0xf2b6f9(0x141)])return _0xac9e0c['Account'][_0xf2b6f9(0x2125)];return _0x4cd6a0['instant']('APP.UNKNOWN');}function _0x4405b0(_0x57d769,_0x44516e){const _0x71147c=_0x170d57;_0x439da1['show']({'controller':_0x71147c(0x1616),'controllerAs':'vm','templateUrl':_0x5089f3,'parent':angular[_0x71147c(0x1f81)](_0x4d2821['body']),'clickOutsideToClose':![],'locals':{'account':_0x44516e,'message':{},'type':_0x71147c(0x13c0),'interaction':{}},'fullscreen':!![]})[_0x71147c(0x64a)](function(_0xc4e31e){const _0x1c5f85=_0x71147c;if(_0xc4e31e){if(_0xc4e31e['message']&&_0xc4e31e[_0x1c5f85(0x18ca)]['savedAsDraft']){const _0x266666={'channel':_0x1c5f85(0x28ad),'account':_0x44516e,'message':_0xc4e31e[_0x1c5f85(0x18ca)],'contact':_0xc4e31e['contact']};_0x4ea536[_0x1c5f85(0x25df)](_0x266666);}else{const _0x52f0f2=_0xc4e31e;return _0x1187c9['openchannelAccount'][_0x1c5f85(0xc10)]({'id':_0x44516e['id']},_0x52f0f2)['$promise']['then'](function(_0x4676ce){const _0x54cd53=_0x1c5f85;_0x478225['success']({'title':_0x54cd53(0x2040),'msg':_0x54cd53(0x285b)}),_0x3543c4[_0x54cd53(0x4e3)]['vm'][_0x54cd53(0x1540)](_0x54cd53(0x28ad),_0x4676ce);})[_0x1c5f85(0x20cd)](function(_0x42f614){const _0x5e6a7a=_0x1c5f85;if(_0x42f614[_0x5e6a7a(0x1c52)]&&_0x42f614[_0x5e6a7a(0x1c52)][_0x5e6a7a(0xbae)]&&_0x42f614[_0x5e6a7a(0x1c52)][_0x5e6a7a(0xbae)][_0x5e6a7a(0x1b9e)])for(let _0x2d329e=0x0;_0x2d329e<_0x42f614[_0x5e6a7a(0x1c52)][_0x5e6a7a(0xbae)][_0x5e6a7a(0x1b9e)];_0x2d329e++){_0x478225['error']({'title':_0x42f614[_0x5e6a7a(0x1c52)]['errors'][_0x2d329e]['type'],'msg':_0x42f614[_0x5e6a7a(0x1c52)][_0x5e6a7a(0xbae)][_0x2d329e][_0x5e6a7a(0x18ca)]});}else _0x478225[_0x5e6a7a(0x1bd0)]({'title':_0x42f614[_0x5e6a7a(0x10b3)]?'API:'+_0x42f614['status']+_0x5e6a7a(0x21db)+_0x42f614[_0x5e6a7a(0x2115)]:_0x5e6a7a(0x2560),'msg':_0x42f614['data']?JSON[_0x5e6a7a(0x2317)](_0x42f614[_0x5e6a7a(0x1c52)][_0x5e6a7a(0x18ca)]):_0x42f614['message']||_0x42f614[_0x5e6a7a(0x2915)]()});});}}});}function _0x3c49f1(_0x2a5f41){const _0x539c3d=_0x170d57;let _0x148ed0;const _0xe5f691=_0x28c606()[_0x539c3d(0x27bc)](_0x324883[_0x539c3d(0x1bbd)]['rows'],{'id':_0x2a5f41[_0x539c3d(0x1e5)]});_0xe5f691&&_0xe5f691[_0x539c3d(0x25d3)]&&(_0x148ed0=_0x28c606()['find'](_0xe5f691['Users'],{'id':_0x2a5f41['UserId']}),!_0x148ed0&&_0xe5f691['Users'][_0x539c3d(0x1954)]({'id':_0x2a5f41[_0x539c3d(0x246c)]}));}function _0x2946d8(_0x4707f8){const _0x23683e=_0x170d57,_0x5ce949=_0x28c606()['find'](_0x324883[_0x23683e(0x1bbd)][_0x23683e(0x28b8)],{'id':_0x4707f8[_0x23683e(0x1e5)]});_0x5ce949&&_0x5ce949[_0x23683e(0x25d3)]&&_0x28c606()['remove'](_0x5ce949[_0x23683e(0x25d3)],{'id':_0x4707f8[_0x23683e(0x246c)]});}function _0x3981b7(_0xeefd46){const _0xa85531=_0x170d57;if(_0xeefd46){const _0x4bff64=_0x28c606()[_0xa85531(0x27bc)](_0x324883[_0xa85531(0x1bbd)][_0xa85531(0x28b8)],{'id':_0xeefd46['id']});if(_0x4bff64){_0x4bff64[_0xa85531(0x25d3)]=[];_0xeefd46['closed']&&(_0x4bff64[_0xa85531(0x18d3)]=0x0);if(_0x324883[_0xa85531(0x289a)][_0xa85531(0x768)]){const _0x43a98e=_0x28c606()[_0xa85531(0x1273)](_0x324883[_0xa85531(0x289a)][_0xa85531(0x768)],'-')?_0xa85531(0x19d0):_0xa85531(0x2449);_0x324883[_0xa85531(0x1bbd)][_0xa85531(0x28b8)]=_0x28c606()['orderBy'](_0x324883[_0xa85531(0x1bbd)]['rows'],_0x28c606()[_0xa85531(0x17cf)](_0x324883[_0xa85531(0x289a)][_0xa85531(0x768)],'-'),_0x43a98e);}_0x28c606()['merge'](_0x4bff64,_0x28c606()['pick'](_0xeefd46,_0x28c606()[_0xa85531(0x1ec6)](_0x4bff64)));}else _0x3c50df(_0x324883[_0xa85531(0x289a)]['page']);}}function _0x38bf3b(_0x140e66){const _0x456f36=_0x170d57;if(_0x140e66){const _0x160b26=_0x28c606()[_0x456f36(0x27bc)](_0x324883[_0x456f36(0x1bbd)][_0x456f36(0x28b8)],{'id':_0x140e66['id']});_0x160b26&&(_0x160b26['Tags']=_0x140e66[_0x456f36(0x16a6)]||[],_0x28c606()['merge'](_0x160b26,_0x28c606()[_0x456f36(0x27bb)](_0x140e66,_0x28c606()[_0x456f36(0x1ec6)](_0x160b26))));}}function _0xb34a03(_0x145900){const _0x37b4cc=_0x170d57;if(_0x145900&&!_0x145900[_0x37b4cc(0xbf2)]){const _0x47e9da=_0x28c606()['find'](_0x324883[_0x37b4cc(0x1bbd)][_0x37b4cc(0x28b8)],{'id':_0x145900[_0x37b4cc(0x1e5)]});if(_0x47e9da){const _0x291f01=_0x28c606()[_0x37b4cc(0x27bc)](_0x47e9da['Messages'],{'id':_0x145900['id']});_0x291f01?_0x28c606()[_0x37b4cc(0x14fe)](_0x291f01,_0x28c606()['pick'](_0x145900,_0x28c606()[_0x37b4cc(0x1ec6)](_0x291f01))):(_0x28c606()[_0x37b4cc(0x28d7)](_0x47e9da[_0x37b4cc(0x17af)])&&(_0x47e9da[_0x37b4cc(0x17af)]={'count':0x0}),!_0x145900[_0x37b4cc(0x12a6)]&&(_0x47e9da[_0x37b4cc(0x17af)][_0x37b4cc(0xb90)]+=0x1));}}}function _0x463b6d(){const _0x10db94=_0x170d57;_0x324883[_0x10db94(0x2963)]=![];}function _0x1e77ee(){const _0x3e9b96=_0x170d57;_0x324883[_0x3e9b96(0x2963)]=!![];}function _0x526716(){const _0x531bcb=_0x170d57;_0x324883[_0x531bcb(0x2963)]=![],_0x439da1[_0x531bcb(0xa60)]({'controller':_0x531bcb(0x271c),'controllerAs':'vm','templateUrl':_0x46e7cb,'parent':angular[_0x531bcb(0x1f81)](_0x4d2821[_0x531bcb(0xb49)]),'clickOutsideToClose':![],'locals':{'color':_0x324883[_0x531bcb(0x18a0)],'fields':_0x324883['advancedSearch']['fields'],'storagePath':_0x531bcb(0x1e75)},'fullscreen':!![]})[_0x531bcb(0x64a)](function(_0x4f6c3a){const _0x2fb92b=_0x531bcb;_0x324883[_0x2fb92b(0x289a)][_0x2fb92b(0xb58)]=_0x4f6c3a===![]?undefined:_0x4f6c3a;if(_0x324883['query'][_0x2fb92b(0xb58)]||_0x4f6c3a===![])_0x3c50df();})['catch'](function(_0x3d583d){const _0x2e750a=_0x531bcb;_0x478225[_0x2e750a(0x1bd0)]({'title':_0x2e750a(0x2440),'msg':_0x3d583d[_0x2e750a(0x1c52)]?JSON[_0x2e750a(0x2317)](_0x3d583d['data']['message']):_0x3d583d[_0x2e750a(0x2915)]()});});}let _0x922874=!![],_0x56bfd3=0x1;_0x3543c4[_0x170d57(0xc62)](_0x170d57(0x1cb9),function(_0x396f55,_0x3ac3bb){const _0x2d1770=_0x170d57;_0x922874?_0x5f2966(function(){_0x922874=![];}):(!_0x3ac3bb&&(_0x56bfd3=_0x324883[_0x2d1770(0x289a)][_0x2d1770(0xc72)]),_0x396f55!==_0x3ac3bb&&(_0x324883['query']['page']=0x1),!_0x396f55&&(_0x324883['query'][_0x2d1770(0xc72)]=_0x56bfd3),_0x3c50df(_0x324883[_0x2d1770(0x289a)][_0x2d1770(0xc72)]));}),_0x3543c4[_0x170d57(0x8c7)](_0x170d57(0xf28),function(){const _0x86fd67=_0x170d57;_0xbeea5f['removeAllListeners']('openchannelMessage:save'),_0xbeea5f[_0x86fd67(0x1951)](_0x86fd67(0x228d)),_0xbeea5f['removeAllListeners'](_0x86fd67(0x2348)),_0xbeea5f[_0x86fd67(0x1951)](_0x86fd67(0x1a32)),_0xbeea5f[_0x86fd67(0x1951)](_0x86fd67(0x106b)),_0xbeea5f[_0x86fd67(0x1951)](_0x86fd67(0x718)),_0xbeea5f['removeAllListeners'](_0x86fd67(0xa76));});}const _0x4893c9=_0x2c6d22;;_0xf8253e[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1373),_0x49a1e3(0x1674),'$timeout',_0x49a1e3(0x212a),'$stateParams',_0x49a1e3(0x186e),_0x49a1e3(0xdcf)];function _0xf8253e(_0xfd5414,_0x18da48,_0x121993,_0x110516,_0x5ed8d8,_0x2141f5,_0x5f2e1b){const _0x1a11f3=_0x49a1e3,_0x5ce3aa=this;_0x5ce3aa[_0x1a11f3(0x1d3d)]=_0x5f2e1b[_0x1a11f3(0x808)](),_0x5ce3aa[_0x1a11f3(0x1141)]={};function _0x391316(_0x17f027,_0x336366,_0x10b442){const _0x1f0e95=_0x1a11f3;_0x5ce3aa[_0x1f0e95(0x1947)]=_0x17f027,_0x5ce3aa[_0x1f0e95(0x28d6)]=_0x336366,_0x5ce3aa[_0x1f0e95(0x1141)]=_0x10b442;}function _0x24affc(){const _0x379eaf=_0x1a11f3;return _0x2141f5[_0x379eaf(0x2119)](_0x5ce3aa[_0x379eaf(0x1141)][_0x379eaf(0x69a)]);}_0x18da48[_0x1a11f3(0x8c7)](_0x1a11f3(0x596),function(_0x1ad6e2,_0x5ceb2c){const _0x2f840d=_0x1a11f3;_0x5ce3aa[_0x2f840d(0x1141)]=_0x5ceb2c[_0x2f840d(0x1141)];}),_0x5ce3aa[_0x1a11f3(0x2483)]=_0x391316,_0x5ce3aa[_0x1a11f3(0x49e)]=_0x24affc,_0x391316();}const _0x207981=_0xf8253e;;_0x57af30[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$window',_0x49a1e3(0x20d4),'api','toasty',_0x49a1e3(0xdcf)];function _0x57af30(_0x45db66,_0x38ee35,_0x38bab0,_0x46a5fa,_0x217e3e,_0x47b268){const _0x374c89=_0x49a1e3,_0x3df0c8=this;_0x3df0c8['currentUser']=_0x47b268['getCurrentUser'](),_0x3df0c8[_0x374c89(0xdfc)]={},_0x3df0c8['table']='voiceRecordings',_0x3df0c8[_0x374c89(0x289a)]={'UserId':_0x3df0c8['currentUser']['id'],'fields':_0x374c89(0x1d8d),'sort':_0x374c89(0x260c),'limit':0xa,'page':0x1,'type':null},_0x3df0c8[_0x374c89(0x1db4)]=_0x2c23fe,_0x3df0c8[_0x374c89(0x164e)]=_0x4f7ed8,_0x3df0c8[_0x374c89(0x1339)]=_0x539a91,_0x3df0c8[_0x374c89(0x1022)]=_0x4dd67b,_0x3df0c8['onInit']=_0xeeece,_0x3df0c8[_0x374c89(0xb3d)]=_0x1e570f,_0x3df0c8['onSearchBarExpand']=_0x51f03e;function _0xeeece(){const _0x51e3a8=_0x374c89;_0x3df0c8['quickFilters']=_0x52b7e9();let _0x3f4583=_0x38ee35[_0x51e3a8(0x294)][_0x51e3a8(0x1ed0)](_0x51e3a8(0x1d42)+_0x3df0c8[_0x51e3a8(0x1d3d)]['id']);if(_0x3f4583)try{_0x3f4583=JSON[_0x51e3a8(0x27f1)](_0x3f4583),_0x3f4583[_0x51e3a8(0x289a)]&&(_0x3df0c8['query']=_0x28c606()['omit'](_0x3f4583[_0x51e3a8(0x289a)],[_0x51e3a8(0xcec),'id']),_0x3df0c8[_0x51e3a8(0x289a)]['fields']=_0x51e3a8(0x1fc2),_0x3df0c8[_0x51e3a8(0x289a)][_0x51e3a8(0x246c)]=_0x3df0c8[_0x51e3a8(0x1d3d)]['id']);}catch(_0x42e152){console[_0x51e3a8(0x1bd0)](_0x42e152);}else{const _0x291482={'$gte':_0x2ac33a()()['startOf'](_0x51e3a8(0x5f5))['utcOffset'](0x0,!![])[_0x51e3a8(0x1c2c)](),'$lte':_0x2ac33a()()[_0x51e3a8(0x13af)](_0x51e3a8(0x5f5))[_0x51e3a8(0xebc)](0x0,!![])['format']()};_0x3df0c8[_0x51e3a8(0x289a)][_0x51e3a8(0x2378)]=_0x291482;}_0x3df0c8['isSearchBarVisible']=_0x3df0c8['query'][_0x51e3a8(0xcec)]?!![]:![],_0x3df0c8[_0x51e3a8(0x1022)]();}function _0x2c23fe(_0x4a96b1){const _0x5b8e2e=_0x374c89;return _0x46a5fa[_0x5b8e2e(0x15bd)][_0x5b8e2e(0x19b3)]({'id':_0x4a96b1['id'],'exists':!![]})[_0x5b8e2e(0x15e7)][_0x5b8e2e(0x64a)](function(_0x527dc4){const _0x209235=_0x5b8e2e,_0x2dcc4f=[_0x527dc4['buffer']],_0x28a0f6=new Blob(_0x2dcc4f,{'type':_0x527dc4[_0x209235(0x2185)]}),_0x325546=window['document']['createElement']('a');_0x325546[_0x209235(0x1280)](_0x209235(0x25d0),URL[_0x209235(0x206)](_0x28a0f6)),_0x325546['setAttribute'](_0x209235(0x19b3),_0x4a96b1[_0x209235(0x2947)]+_0x4a96b1[_0x209235(0x1c2c)]),_0x325546['click']();})[_0x5b8e2e(0x20cd)](function(_0x4a2cec){const _0xeb540a=_0x5b8e2e;_0x217e3e[_0xeb540a(0x1bd0)]({'title':_0x4a2cec[_0xeb540a(0x10b3)]?_0xeb540a(0x575)+_0x4a2cec['status']+'\x20-\x20'+_0x4a2cec['statusText']:'SYSTEM:GETvoiceRecording','msg':_0x4a2cec[_0xeb540a(0x1c52)]?JSON[_0xeb540a(0x2317)](_0x4a2cec[_0xeb540a(0x1c52)]):_0x4a2cec[_0xeb540a(0x2915)]()});});}function _0x4f7ed8(_0x1b9a4c){const _0x5ee373=_0x374c89;return _0x46a5fa[_0x5ee373(0x15bd)][_0x5ee373(0x1fc1)]({'id':_0x1b9a4c['id']})[_0x5ee373(0x15e7)][_0x5ee373(0x64a)](function(_0x3e56d2){const _0x162072=_0x5ee373,_0x4f21b6=[_0x3e56d2[_0x162072(0x5a9)]];let _0x42be46=_0x162072(0x19b3);const _0x1fee31=new Blob(_0x4f21b6,{'type':_0x3e56d2[_0x162072(0x2185)]});_0x42be46=_0x1b9a4c[_0x162072(0x2947)];const _0x41840b=window[_0x162072(0x123f)][_0x162072(0x2978)]('a');_0x41840b[_0x162072(0x1280)](_0x162072(0x25d0),URL[_0x162072(0x206)](_0x1fee31)),_0x41840b[_0x162072(0x1280)](_0x162072(0x19b3),_0x42be46),document[_0x162072(0xb49)]['appendChild'](_0x41840b),_0x41840b[_0x162072(0x2668)]();})[_0x5ee373(0x20cd)](function(_0x43df63){const _0x77fb60=_0x5ee373;_0x217e3e[_0x77fb60(0x1bd0)]({'title':_0x43df63[_0x77fb60(0x10b3)]?_0x77fb60(0x575)+_0x43df63[_0x77fb60(0x10b3)]+'\x20-\x20'+_0x43df63['statusText']:_0x77fb60(0x2379),'msg':_0x43df63[_0x77fb60(0x1c52)]?JSON[_0x77fb60(0x2317)](_0x43df63[_0x77fb60(0x1c52)]):_0x43df63[_0x77fb60(0x2915)]()});});}function _0x52b7e9(){const _0x238073=_0x374c89;return[{'name':_0x238073(0x1967),'key':'createdAt','type':_0x238073(0x232e),'label':_0x238073(0x2720)},{'name':_0x238073(0x2111),'key':_0x238073(0x2185),'type':_0x238073(0x2926),'label':_0x238073(0x49f),'customOptions':[{'value':_0x238073(0xe2f),'translate':_0x238073(0xabc)},{'value':_0x238073(0x12a4),'translate':'VOICE.INBOUND'},{'value':_0x238073(0xbce),'translate':'VOICE.OUTBOUND'},{'value':_0x238073(0x2967),'translate':_0x238073(0xe13)},{'value':null,'translate':_0x238073(0x9e1)}]}];}function _0x539a91(_0x56df75){const _0xf4cf46=_0x374c89;_0x3df0c8[_0xf4cf46(0x25cb)]=![],_0x3df0c8['voiceRecordings']=_0x56df75||{'count':0x0,'rows':[]};}function _0x4dd67b(){const _0x1cdf22=_0x374c89;_0x3df0c8['searchInProgress']=!![],_0x3df0c8[_0x1cdf22(0x289a)]['offset']=(_0x3df0c8['query']['page']-0x1)*_0x3df0c8[_0x1cdf22(0x289a)][_0x1cdf22(0x25bb)];const _0x27e6e2={'query':_0x3df0c8[_0x1cdf22(0x289a)]};_0x38ee35['localStorage'][_0x1cdf22(0x15da)](_0x1cdf22(0x1d42)+_0x3df0c8[_0x1cdf22(0x1d3d)]['id'],JSON[_0x1cdf22(0x2317)](_0x27e6e2)),_0x3df0c8['promise']=_0x46a5fa[_0x1cdf22(0x15bd)]['get'](_0x3df0c8[_0x1cdf22(0x289a)],_0x539a91)[_0x1cdf22(0x15e7)];}function _0x1e570f(){const _0x32ff9a=_0x374c89;_0x3df0c8['query'][_0x32ff9a(0xcec)]=undefined,_0x3df0c8[_0x32ff9a(0x2963)]=![];}function _0x51f03e(){const _0x45b1f7=_0x374c89;_0x3df0c8[_0x45b1f7(0x2963)]=!![];}let _0x371a5e=!![],_0x59aad9=0x1;_0x45db66[_0x374c89(0xc62)](_0x374c89(0x1cb9),function(_0x751fbf,_0xed351b){const _0x42a355=_0x374c89;_0x371a5e?_0x38bab0(function(){_0x371a5e=![];}):(!_0xed351b&&(_0x59aad9=_0x3df0c8[_0x42a355(0x289a)][_0x42a355(0xc72)]),_0x751fbf!==_0xed351b&&(_0x3df0c8['query'][_0x42a355(0xc72)]=0x1),!_0x751fbf&&(_0x3df0c8[_0x42a355(0x289a)][_0x42a355(0xc72)]=_0x59aad9),_0x3df0c8['getVoiceRecordings']());});}const _0x56ebab=_0x57af30;;const _0x9cd309=_0x2e4a48['p']+_0x49a1e3(0x1e9e);;_0x19531c[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),'$document',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x19531c(_0x47efc4,_0x4c98b3,_0x245e07,_0x56cd7a,_0x4e74db,_0x2a2d02,_0xcd82,_0x5a6f6a){const _0x2362c4=_0x49a1e3,_0x238115=this;_0x238115['currentUser']=_0x5a6f6a[_0x2362c4(0x808)](),_0x238115[_0x2362c4(0x165f)]=[_0x2362c4(0x1862),_0x2362c4(0x1195),_0x2362c4(0x4d3),_0x2362c4(0x297d),'Highest'],_0x238115[_0x2362c4(0x402)]={'readOnly':![],'canEdit':!![],'canDelete':!![]},_0x238115[_0x2362c4(0x579)]={},_0x238115[_0x2362c4(0x289a)]={'id':_0x238115[_0x2362c4(0x1d3d)]['id'],'fields':_0x2362c4(0x929),'sort':_0x2362c4(0x28f0),'limit':0xa,'page':0x1},_0x238115[_0x2362c4(0x18ae)]={'rows':[],'count':0x0},_0x238115[_0x2362c4(0x1339)]=_0x432508,_0x238115[_0x2362c4(0x20f2)]=_0x4e3822,_0x238115['onInit']=_0x177821,_0x238115[_0x2362c4(0x23a6)]=_0x493666,_0x238115['createOrEditQueueCampaignHopper']=_0x4c08d9,_0x238115[_0x2362c4(0x217e)]=_0x281a3b;function _0x177821(){const _0x461252=_0x2362c4;_0xcd82[_0x461252(0x2e8)][_0x461252(0x1f2c)]({'id':_0x5a6f6a[_0x461252(0x808)]()['id'],'fields':_0x461252(0x1427),'channel':_0x461252(0x227c),'type':'outbound','nolimit':!![]})['$promise']['then'](function(_0x30af55){const _0xaad480=_0x461252;_0x238115[_0xaad480(0x18ae)]=_0x30af55||{'count':0x0,'rows':[]};})[_0x461252(0x64a)](function(){const _0x39ccc9=_0x461252;_0x238115[_0x39ccc9(0x9fc)]=_0x533d6a();})[_0x461252(0x20cd)](function(_0x968b39){const _0x174d6b=_0x461252;console[_0x174d6b(0x1bd0)](_0x968b39);})['finally'](function(){const _0x2b93ef=_0x461252;let _0x217217=_0x4c98b3['localStorage'][_0x2b93ef(0x1ed0)]('motion2.home.scheduled:'+_0x238115[_0x2b93ef(0x1d3d)]['id']);if(_0x217217)try{_0x217217=JSON['parse'](_0x217217),_0x217217[_0x2b93ef(0x289a)]&&(_0x238115[_0x2b93ef(0x289a)]=_0x28c606()[_0x2b93ef(0xd09)](_0x217217[_0x2b93ef(0x289a)],['filter']));}catch(_0x4490cc){console['error'](_0x4490cc);}else{const _0x144300={'$gte':_0x2ac33a()()[_0x2b93ef(0x246e)](_0x2b93ef(0x5f5))[_0x2b93ef(0xebc)](0x0,!![])[_0x2b93ef(0x1c2c)](),'$lte':_0x2ac33a()()[_0x2b93ef(0x13af)](_0x2b93ef(0x5f5))[_0x2b93ef(0xebc)](0x0,!![])[_0x2b93ef(0x1c2c)]()};_0x238115[_0x2b93ef(0x289a)]['createdAt']=_0x144300;}_0x238115[_0x2b93ef(0x20f2)]();});}function _0x432508(_0x3e9bad){const _0x7901a9=_0x2362c4;_0x238115[_0x7901a9(0x25cb)]=![],_0x238115[_0x7901a9(0x579)]=_0x3e9bad||{'count':0x0,'rows':[]};}function _0x533d6a(){const _0x2c1109=_0x2362c4;return[{'name':_0x2c1109(0x1967),'key':_0x2c1109(0x2378),'type':_0x2c1109(0x232e),'label':_0x2c1109(0x2720)},{'name':_0x2c1109(0x1db5),'key':_0x2c1109(0x7c0),'type':_0x2c1109(0x20ae),'label':_0x2c1109(0xe12),'options':_0x238115[_0x2c1109(0x18ae)][_0x2c1109(0x28b8)]}];}function _0x4e3822(){const _0x5cf9a7=_0x2362c4;_0x238115['searchInProgress']=!![],_0x238115[_0x5cf9a7(0x289a)]['id']=_0x238115[_0x5cf9a7(0x1d3d)]['id'],_0x238115['query'][_0x5cf9a7(0x9c5)]=!![],_0x238115[_0x5cf9a7(0x289a)][_0x5cf9a7(0x24f9)]=(_0x238115[_0x5cf9a7(0x289a)][_0x5cf9a7(0xc72)]-0x1)*_0x238115['query'][_0x5cf9a7(0x25bb)];const _0x3001e4={'query':_0x238115['query']};_0x4c98b3[_0x5cf9a7(0x294)][_0x5cf9a7(0x15da)]('motion2.home.scheduled:'+_0x238115['currentUser']['id'],JSON[_0x5cf9a7(0x2317)](_0x3001e4)),_0x238115[_0x5cf9a7(0x1713)]=_0xcd82['user'][_0x5cf9a7(0x20f2)](_0x238115[_0x5cf9a7(0x289a)],_0x432508)[_0x5cf9a7(0x15e7)];}function _0x4c08d9(_0x5560be,_0x56038f){const _0x4aa0d1=_0x2362c4;_0x56cd7a[_0x4aa0d1(0xa60)]({'controller':_0x4aa0d1(0x1224),'controllerAs':'vm','templateUrl':_0x9cd309,'parent':angular[_0x4aa0d1(0x1f81)](_0x4e74db[_0x4aa0d1(0xb49)]),'targetEvent':_0x5560be,'clickOutsideToClose':!![],'locals':{'queueCampaign':null,'hopper':_0x56038f,'hoppers':_0x238115[_0x4aa0d1(0x579)][_0x4aa0d1(0x28b8)],'license':null,'setting':null,'crudPermissions':_0x238115['crudPermissions']}});}function _0xa98f1f(_0x1c2390){const _0x488749=_0x2362c4;_0xcd82[_0x488749(0x232f)][_0x488749(0xabd)]({'id':_0x1c2390['id']})[_0x488749(0x15e7)]['then'](function(){const _0x4874ed=_0x488749;_0x28c606()[_0x4874ed(0x21c7)](_0x238115[_0x4874ed(0x579)][_0x4874ed(0x28b8)],{'id':_0x1c2390['id']}),_0x238115[_0x4874ed(0x579)][_0x4874ed(0xb90)]-=0x1,!_0x238115['scheduledCalls'][_0x4874ed(0x28b8)][_0x4874ed(0x1b9e)]&&_0x238115[_0x4874ed(0x20f2)](),_0x2a2d02['success']({'title':_0x4874ed(0x1b83),'msg':_0x1c2390[_0x4874ed(0x2494)]?_0x4874ed(0x452):''});})[_0x488749(0x20cd)](function(_0x42aa82){const _0x24f250=_0x488749;if(_0x42aa82[_0x24f250(0x1c52)]&&_0x42aa82[_0x24f250(0x1c52)]['errors']&&_0x42aa82['data']['errors']['length']){_0x238115[_0x24f250(0xbae)]=_0x42aa82['data'][_0x24f250(0xbae)]||[{'message':_0x42aa82[_0x24f250(0x2915)](),'type':_0x24f250(0x24bb)}];for(let _0x2bc4c7=0x0;_0x2bc4c7<_0x42aa82[_0x24f250(0x1c52)][_0x24f250(0xbae)]['length'];_0x2bc4c7++){_0x2a2d02['error']({'title':_0x42aa82[_0x24f250(0x1c52)][_0x24f250(0xbae)][_0x2bc4c7][_0x24f250(0x2185)],'msg':_0x42aa82[_0x24f250(0x1c52)][_0x24f250(0xbae)][_0x2bc4c7]['message']});}}else _0x2a2d02[_0x24f250(0x1bd0)]({'title':_0x42aa82[_0x24f250(0x10b3)]?_0x24f250(0x575)+_0x42aa82['status']+_0x24f250(0x21db)+_0x42aa82[_0x24f250(0x2115)]:_0x24f250(0x24bb),'msg':_0x42aa82['data']?JSON[_0x24f250(0x2317)](_0x42aa82[_0x24f250(0x1c52)][_0x24f250(0x18ca)]):_0x42aa82[_0x24f250(0x18ca)]||_0x42aa82[_0x24f250(0x2915)]()});});}function _0x281a3b(_0x42adc2,_0x180819){const _0x291f63=_0x2362c4,_0x34d40e=_0x56cd7a[_0x291f63(0x856)]()[_0x291f63(0x2021)](_0x291f63(0x167a))[_0x291f63(0x33a)](_0x291f63(0x26b3)+_0x291f63(0x4b8))['ariaLabel'](_0x291f63(0x1aee))['targetEvent'](_0x180819)['ok']('OK')[_0x291f63(0x101a)]('CANCEL');_0x56cd7a[_0x291f63(0xa60)](_0x34d40e)[_0x291f63(0x64a)](function(){_0xa98f1f(_0x42adc2);},function(){console['log']('CANCEL');});}function _0x493666(_0x33f42d){const _0x37f8bf=_0x2362c4;return _0x2ac33a()(_0x33f42d)[_0x37f8bf(0x199)](_0x2ac33a()());}let _0xd96d5d=!![],_0x252856=0x1;_0x47efc4['$watch'](_0x2362c4(0x1cb9),function(_0x123bfa,_0x4de433){const _0x404789=_0x2362c4;_0xd96d5d?_0x245e07(function(){_0xd96d5d=![];}):(!_0x4de433&&(_0x252856=_0x238115[_0x404789(0x289a)][_0x404789(0xc72)]),_0x123bfa!==_0x4de433&&(_0x238115[_0x404789(0x289a)]['page']=0x1),!_0x123bfa&&(_0x238115[_0x404789(0x289a)][_0x404789(0xc72)]=_0x252856),_0x238115[_0x404789(0x20f2)]());});}const _0xb7998a=_0x19531c;;_0x58b169[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$timeout',_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x1fe7),'$translate',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'socket',_0x49a1e3(0x680),_0x49a1e3(0x2834)];function _0x58b169(_0x1727c0,_0x422fab,_0xda903c,_0x5c691a,_0x5cea1b,_0x6c4c10,_0x1c3802,_0x57a5c5,_0x5ad255,_0x5004b8,_0x313a41){const _0x9c83b5=_0x49a1e3,_0x2027b1=this;_0x2027b1[_0x9c83b5(0x2e8)]=_0x57a5c5[_0x9c83b5(0x808)](),_0x2027b1['license']={},_0x2027b1['setting']={},_0x2027b1[_0x9c83b5(0x16a6)]={'count':0x0,'rows':[]},_0x2027b1['smsInteractions']={'count':0x0,'rows':[]},_0x2027b1['query']={'includeAll':!![],'sort':_0x9c83b5(0x260c),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x2027b1[_0x9c83b5(0x1b2f)]={'fields':[{'name':'Id','column':'id','type':_0x9c83b5(0x2113)},{'name':_0x9c83b5(0x1c38),'column':_0x9c83b5(0x1c38),'type':'autocomplete','options':{'searchFields':[_0x9c83b5(0x2518),_0x9c83b5(0x21c4),_0x9c83b5(0xd47)],'route':{'model':'cmContact','action':_0x9c83b5(0x896),'params':{'fields':_0x9c83b5(0x3ef),'Contact':_0x9c83b5(0xb96),'nolimit':!![]}},'extraOperators':[_0x9c83b5(0xe87)],'excludedOperators':[_0x9c83b5(0x14b5)]}},{'name':_0x9c83b5(0x19fb),'column':_0x9c83b5(0xb49),'type':'text','options':{'excludedOperators':['$eq',_0x9c83b5(0x14b5)]}},{'name':_0x9c83b5(0x2311),'column':_0x9c83b5(0x1140),'type':'select','values':[{'id':0x0,'translate':_0x9c83b5(0x1313)},{'id':0x1,'translate':_0x9c83b5(0x5cd)}],'options':{'excludedOperators':[_0x9c83b5(0x14b5)]}},{'name':_0x9c83b5(0x12ad),'column':_0x9c83b5(0x1098),'type':_0x9c83b5(0x21b7),'options':{'table':'i','route':{'model':'user','action':_0x9c83b5(0x896),'params':{'role':_0x9c83b5(0x11ae),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':['fullname','name'],'extraOperators':['$substring'],'excludedOperators':[_0x9c83b5(0x14b5)]}},{'name':_0x9c83b5(0x141),'column':'SmsAccountId','type':_0x9c83b5(0x20ae),'options':{'route':{'model':'user','action':_0x9c83b5(0x790),'params':{'id':_0x2027b1[_0x9c83b5(0x2e8)]['id'],'nolimit':!![]}}}},{'name':_0x9c83b5(0x1178),'column':_0x9c83b5(0x1e9f),'type':'multiselect','options':{'route':{'model':'tag','action':_0x9c83b5(0x896),'params':{'nolimit':!![]}},'excludedOperators':[_0x9c83b5(0x9eb)]}},{'name':_0x9c83b5(0x1967),'column':_0x9c83b5(0x2378),'type':_0x9c83b5(0x232e),'options':{'excludedOperators':[_0x9c83b5(0x14b5)]}},{'name':_0x9c83b5(0xff4),'column':_0x9c83b5(0x18d3),'type':'select','values':[{'id':0x1,'translate':_0x9c83b5(0x1889)},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':['$ne']}}]},_0x2027b1[_0x9c83b5(0x18a0)]=_0x9c83b5(0xadf),_0x2027b1[_0x9c83b5(0x2483)]=_0x1d480b,_0x2027b1[_0x9c83b5(0x1339)]=_0x1e55bc,_0x2027b1['getSmsInteractions']=_0x47b2f3,_0x2027b1[_0x9c83b5(0x2268)]=_0x4745c6,_0x2027b1['downloadSmsInteraction']=_0x5325ee,_0x2027b1[_0x9c83b5(0x255b)]=_0x2a034b,_0x2027b1[_0x9c83b5(0x5cb)]=_0xb8f553,_0x2027b1[_0x9c83b5(0x1a08)]=_0x228e9a,_0x2027b1[_0x9c83b5(0x1e61)]=_0x8db7b9,_0x2027b1[_0x9c83b5(0xf14)]=_0x3f2204,_0x2027b1[_0x9c83b5(0xb3d)]=_0x1d6169,_0x2027b1[_0x9c83b5(0xd90)]=_0x589a2d,_0x2027b1['openAdvancedSearch']=_0x3698d0;function _0x1d480b(_0x3d2e8c,_0x3e70a9){const _0x1854df=_0x9c83b5;return _0x2027b1[_0x1854df(0x1947)]=_0x3d2e8c,_0x2027b1[_0x1854df(0x28d6)]=_0x3e70a9,_0x1c3802[_0x1854df(0x2e8)][_0x1854df(0x896)+_0x28c606()[_0x1854df(0x1766)]('smsAccounts')]({'id':_0x2027b1[_0x1854df(0x2e8)]['id'],'nolimit':!![]})[_0x1854df(0x15e7)]['then'](function(_0x230c84){const _0x25d4e7=_0x1854df;return _0x2027b1[_0x25d4e7(0x205)]=_0x230c84||{'count':0x0,'rows':[]},_0x1c3802[_0x25d4e7(0xac8)][_0x25d4e7(0x896)]()[_0x25d4e7(0x15e7)];})['then'](function(_0x273c5e){const _0x9e7c44=_0x1854df;_0x2027b1[_0x9e7c44(0x16a6)]=_0x273c5e||{'count':0x0,'rows':[]};})[_0x1854df(0x64a)](function(){const _0x2c1b5a=_0x1854df;_0x2027b1[_0x2c1b5a(0x9fc)]=_0x4f62b6();})[_0x1854df(0x20cd)](function(_0x1a2485){const _0x4b7d74=_0x1854df;console[_0x4b7d74(0x1bd0)](_0x1a2485);})[_0x1854df(0x988)](function(){const _0x451927=_0x1854df;let _0x5bc2cd=_0x5cea1b['localStorage'][_0x451927(0x1ed0)](_0x451927(0x2806)+_0x2027b1['user']['id']);if(_0x5bc2cd)try{_0x5bc2cd=JSON[_0x451927(0x27f1)](_0x5bc2cd);if(_0x5bc2cd[_0x451927(0x289a)]){_0x2027b1[_0x451927(0x289a)]=_0x28c606()[_0x451927(0x14fe)](_0x2027b1[_0x451927(0x289a)],_0x5bc2cd['query']);if(_0x28c606()['isEmpty'](_0x2027b1[_0x451927(0x205)][_0x451927(0x28b8)]))_0x2027b1['query'][_0x451927(0x1be5)]=[];else _0x28c606()[_0x451927(0x940)](_0x2027b1[_0x451927(0x289a)][_0x451927(0x1be5)])&&(_0x2027b1['query'][_0x451927(0x1be5)]=_0x28c606()(_0x2027b1[_0x451927(0x205)][_0x451927(0x28b8)])['map']('id')[_0x451927(0x840)]()['value']());_0x2027b1[_0x451927(0x289a)]['sort']&&_0x2027b1['query'][_0x451927(0x768)]['indexOf']('lastMessage')>=0x0&&(_0x2027b1[_0x451927(0x289a)]=_0x28c606()[_0x451927(0xd09)](_0x2027b1[_0x451927(0x289a)],'sort')),_0x2027b1[_0x451927(0x289a)][_0x451927(0x9c5)]=!![],_0x2027b1[_0x451927(0x2963)]=_0x2027b1[_0x451927(0x289a)][_0x451927(0xcec)]?!![]:![];}}catch(_0x60bdc){console[_0x451927(0x1bd0)](_0x60bdc);}else{const _0x20d193={'$gte':_0x2ac33a()()[_0x451927(0x246e)]('month')[_0x451927(0xebc)](0x0,!![])[_0x451927(0x1c2c)](),'$lte':_0x2ac33a()()['endOf'](_0x451927(0x5f5))[_0x451927(0xebc)](0x0,!![])['format']()},_0x4204a8={'SmsAccountId':_0x28c606()[_0x451927(0x1de5)](_0x2027b1[_0x451927(0x205)]['rows'],'id'),'createdAt':_0x20d193};_0x2027b1[_0x451927(0x289a)]=_0x28c606()[_0x451927(0x14fe)](_0x2027b1['query'],_0x4204a8);}_0x5ad255['on'](_0x451927(0x2880),_0x4dfbd9),_0x5ad255['on']('smsInteraction:update',_0x4dfbd9),_0x5ad255['on'](_0x451927(0x10b6),_0x33d5fa),_0x5ad255['on']('smsMessage:save',_0x466418),_0x5ad255['on'](_0x451927(0x13f0),_0x466418),_0x5ad255['on']('user_has_sms_interactions:save',_0x4d41f9),_0x5ad255['on'](_0x451927(0x1d4c),_0xf9f6db),_0x47b2f3(_0x2027b1[_0x451927(0x289a)][_0x451927(0xc72)]);});}function _0x4f62b6(){const _0x351882=_0x9c83b5;return[{'name':'Start\x20Date','key':_0x351882(0x2378),'type':_0x351882(0x232e),'label':_0x351882(0x2720)},{'name':_0x351882(0x17af),'key':'read','type':_0x351882(0x2926),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x351882(0x1889)},{'value':null,'translate':_0x351882(0x2200)}]},{'name':_0x351882(0x2311),'key':'closed','type':_0x351882(0x2926),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x351882(0x1313)},{'value':0x1,'translate':_0x351882(0x5cd)},{'value':null,'translate':_0x351882(0x2200)}]},{'name':_0x351882(0x141),'key':_0x351882(0x1be5),'type':'multiselect','label':_0x351882(0x214f),'options':_0x2027b1[_0x351882(0x205)]['rows'],'clearAll':![]},{'name':_0x351882(0x12ad),'key':_0x351882(0x246c),'type':_0x351882(0x2926),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x2027b1[_0x351882(0x2e8)]['id'],'translate':_0x351882(0x2368)},{'value':_0x351882(0x8f1),'translate':_0x351882(0x276d)},{'value':undefined,'translate':_0x351882(0x2200)}]},{'name':_0x351882(0x1e9f),'key':'tag','type':_0x351882(0x20ae),'label':_0x351882(0x1208),'options':_0x2027b1['tags'][_0x351882(0x28b8)],'placeholder':_0x351882(0x6a6)}];}function _0x1e55bc(_0x25caf1){const _0x35e912=_0x9c83b5;_0x2027b1[_0x35e912(0x25cb)]=![],_0x2027b1['smsInteractions']=_0x25caf1||{'count':0x0,'rows':[]};for(let _0x4f30de=0x0;_0x4f30de<_0x2027b1['smsInteractions'][_0x35e912(0x28b8)][_0x35e912(0x1b9e)];_0x4f30de+=0x1){_0xb8f553(_0x2027b1['smsInteractions'][_0x35e912(0x28b8)][_0x4f30de]);}}function _0x47b2f3(_0x40eb04){const _0x2d3cba=_0x9c83b5;_0x2027b1['searchInProgress']=!![];!_0x40eb04&&(_0x2027b1[_0x2d3cba(0x289a)]['page']=0x1);_0x2027b1[_0x2d3cba(0x289a)][_0x2d3cba(0x24f9)]=(_0x2027b1['query']['page']-0x1)*_0x2027b1[_0x2d3cba(0x289a)][_0x2d3cba(0x25bb)];let _0xacddbb=_0x5cea1b['localStorage'][_0x2d3cba(0x1ed0)]('motion2.home.sms:'+_0x2027b1[_0x2d3cba(0x2e8)]['id']);_0xacddbb=_0xacddbb?JSON['parse'](_0xacddbb):{},_0xacddbb[_0x2d3cba(0x289a)]=_0x2027b1[_0x2d3cba(0x289a)],_0x5cea1b[_0x2d3cba(0x294)][_0x2d3cba(0x15da)]('motion2.home.sms:'+_0x2027b1[_0x2d3cba(0x2e8)]['id'],JSON[_0x2d3cba(0x2317)](_0xacddbb)),_0x2027b1[_0x2d3cba(0x1713)]=_0x1c3802[_0x2d3cba(0x1c74)][_0x2d3cba(0x896)](_0x2027b1[_0x2d3cba(0x289a)],_0x1e55bc)['$promise'];}function _0x4745c6(_0x14e3a0,_0xa6327a){const _0x571d59=_0x9c83b5;_0x1727c0[_0x571d59(0x4e3)]['vm']['addInteractionTab']('sms',_0xa6327a);}function _0x5325ee(_0x29b316,_0x6202ab,_0x3cf6a9){const _0x39a9aa=_0x9c83b5;_0x1c3802[_0x39a9aa(0x1c74)][_0x39a9aa(0x19b3)]({'id':_0x6202ab['id'],'attachments':_0x3cf6a9})[_0x39a9aa(0x15e7)][_0x39a9aa(0x64a)](function(_0x47111f){const _0x4f4edf=_0x39a9aa,_0x2984a3=[_0x47111f['buffer']],_0x471fc3='sms-interaction'+_0x6202ab['id']+_0x4f4edf(0x2177),_0x400df4=new Blob(_0x2984a3,{'type':_0x47111f[_0x4f4edf(0x2185)]}),_0x5e007e=window[_0x4f4edf(0x123f)][_0x4f4edf(0x2978)]('a');_0x5e007e[_0x4f4edf(0x1280)](_0x4f4edf(0x25d0),URL[_0x4f4edf(0x206)](_0x400df4)),_0x5e007e[_0x4f4edf(0x1280)](_0x4f4edf(0x19b3),_0x471fc3),document[_0x4f4edf(0xb49)]['appendChild'](_0x5e007e),_0x5e007e['click']();})[_0x39a9aa(0x20cd)](function(_0x43dd65){const _0x2f893c=_0x39a9aa;if(_0x43dd65['data']&&_0x43dd65['data'][_0x2f893c(0xbae)]&&_0x43dd65[_0x2f893c(0x1c52)]['errors']['length'])for(let _0x4427d1=0x0;_0x4427d1<_0x43dd65[_0x2f893c(0x1c52)][_0x2f893c(0xbae)][_0x2f893c(0x1b9e)];_0x4427d1+=0x1){_0x5004b8[_0x2f893c(0x1bd0)]({'title':_0x43dd65[_0x2f893c(0x1c52)]['errors'][_0x4427d1][_0x2f893c(0x2185)],'msg':_0x43dd65[_0x2f893c(0x1c52)][_0x2f893c(0xbae)][_0x4427d1][_0x2f893c(0x18ca)]});}else _0x5004b8['error']({'title':_0x43dd65[_0x2f893c(0x10b3)]?_0x2f893c(0x575)+_0x43dd65[_0x2f893c(0x10b3)]+_0x2f893c(0x21db)+_0x43dd65[_0x2f893c(0x2115)]:_0x2f893c(0x2fd),'msg':_0x43dd65[_0x2f893c(0x1c52)]?JSON['stringify'](_0x43dd65[_0x2f893c(0x1c52)]['message']):_0x43dd65['toString']()});});}function _0x2a034b(_0x36e5ff,_0x5abfb3){const _0x2caf05=_0x9c83b5,_0x5dc90c=_0x2027b1[_0x2caf05(0x2e8)][_0x2caf05(0x11a4)]||_0x2027b1[_0x2caf05(0x2e8)][_0x2caf05(0x2248)]||_0x2027b1['user']['mailPause']||_0x2027b1['user'][_0x2caf05(0x1451)]||_0x2027b1[_0x2caf05(0x2e8)][_0x2caf05(0x211)],_0x372f44=!_0x5abfb3[_0x2caf05(0x141)][_0x2caf05(0xe19)];_0xda903c[_0x2caf05(0xa60)]({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x17dbb5,'parent':angular['element'](_0x5c691a[_0x2caf05(0xb49)]),'clickOutsideToClose':_0x372f44,'escapeToClose':_0x372f44,'onRemoving':function(){const _0x57e780=_0x2caf05;_0x2027b1[_0x57e780(0x2e8)]&&_0x5abfb3[_0x57e780(0x141)]['mandatoryDisposition']&&!_0x5dc90c&&_0x1c3802[_0x57e780(0x2e8)][_0x57e780(0x818)]({'id':_0x2027b1[_0x57e780(0x2e8)]['id']})[_0x57e780(0x15e7)][_0x57e780(0x20cd)](function(_0x3dbb1c){const _0x46b3a9=_0x57e780;console[_0x46b3a9(0x1bd0)](_0x3dbb1c);});},'locals':{'user':_0x2027b1['user'],'channel':_0x2caf05(0x10aa),'interaction':_0x5abfb3}});}function _0xb8f553(_0x393f61){const _0x407790=_0x9c83b5;_0x393f61[_0x407790(0x27b3)]=_0x393f61['Contact']?_0x393f61[_0x407790(0x1c38)][_0x407790(0x26ed)]:undefined,_0x393f61[_0x407790(0xfd7)]==='Unknown'&&(_0x393f61[_0x407790(0xfd7)]=_0x6c4c10[_0x407790(0x2292)](_0x407790(0x1c8d)));}function _0x228e9a(_0x219001){const _0x32a60b=_0x9c83b5;if(_0x219001[_0x32a60b(0x246c)])return _0x219001[_0x32a60b(0x246c)]===_0x2027b1[_0x32a60b(0x2e8)]['id']?_0x6c4c10[_0x32a60b(0x2292)](_0x32a60b(0x2368)):_0x219001[_0x32a60b(0x1b06)][_0x32a60b(0x15c)]+'\x20<'+_0x219001[_0x32a60b(0x1b06)][_0x32a60b(0xe2f)]+'>';return _0x6c4c10[_0x32a60b(0x2292)]('DASHBOARDS.NOT_ASSIGNED');}function _0x8db7b9(_0x43323b){const _0x4312db=_0x9c83b5;if(_0x43323b['Account'])return _0x43323b[_0x4312db(0x141)][_0x4312db(0x2125)];return _0x6c4c10[_0x4312db(0x2292)](_0x4312db(0x1c8d));}function _0x3f2204(_0x378341,_0xa35df1){const _0xff7ae8=_0x9c83b5;_0xda903c[_0xff7ae8(0xa60)]({'controller':_0xff7ae8(0x25ff),'controllerAs':'vm','templateUrl':_0x8f2b61,'parent':angular[_0xff7ae8(0x1f81)](_0x5c691a[_0xff7ae8(0xb49)]),'clickOutsideToClose':![],'locals':{'account':_0xa35df1,'message':{},'type':'new','interaction':{}},'fullscreen':!![]})[_0xff7ae8(0x64a)](function(_0x11331c){const _0x3539c8=_0xff7ae8;if(_0x11331c){if(_0x11331c[_0x3539c8(0x18ca)]&&_0x11331c[_0x3539c8(0x18ca)][_0x3539c8(0x20ef)]){const _0x2de421={'channel':_0x3539c8(0x10aa),'account':_0xa35df1,'message':_0x11331c[_0x3539c8(0x18ca)],'contact':_0x11331c['contact']};_0x313a41[_0x3539c8(0x25df)](_0x2de421);}else{const _0x210d9a=_0x11331c;return _0x1c3802['smsAccount'][_0x3539c8(0xc10)]({'id':_0xa35df1['id']},_0x210d9a)['$promise']['then'](function(_0x320775){const _0x36bd4c=_0x3539c8;_0x5004b8['success']({'title':_0x36bd4c(0x2040),'msg':_0x36bd4c(0x285b)}),_0x1727c0[_0x36bd4c(0x4e3)]['vm'][_0x36bd4c(0x1540)](_0x36bd4c(0x10aa),_0x320775);})[_0x3539c8(0x20cd)](function(_0x1974b2){const _0x442ad0=_0x3539c8;if(_0x1974b2[_0x442ad0(0x1c52)]&&_0x1974b2[_0x442ad0(0x1c52)][_0x442ad0(0xbae)]&&_0x1974b2[_0x442ad0(0x1c52)][_0x442ad0(0xbae)][_0x442ad0(0x1b9e)])for(let _0x99b005=0x0;_0x99b005<_0x1974b2['data'][_0x442ad0(0xbae)]['length'];_0x99b005++){_0x5004b8[_0x442ad0(0x1bd0)]({'title':_0x1974b2[_0x442ad0(0x1c52)]['errors'][_0x99b005][_0x442ad0(0x2185)],'msg':_0x1974b2['data'][_0x442ad0(0xbae)][_0x99b005][_0x442ad0(0x18ca)]});}else _0x5004b8[_0x442ad0(0x1bd0)]({'title':_0x1974b2['status']?_0x442ad0(0x575)+_0x1974b2[_0x442ad0(0x10b3)]+'\x20-\x20'+_0x1974b2[_0x442ad0(0x2115)]:_0x442ad0(0x244a),'msg':_0x1974b2['data']?JSON[_0x442ad0(0x2317)](_0x1974b2[_0x442ad0(0x1c52)]['message']):_0x1974b2[_0x442ad0(0x18ca)]||_0x1974b2['toString']()});});}}});}function _0x4d41f9(_0x40120b){const _0x3e1bce=_0x9c83b5;let _0xb4b3bf;const _0x270d98=_0x28c606()[_0x3e1bce(0x27bc)](_0x2027b1[_0x3e1bce(0x1fff)][_0x3e1bce(0x28b8)],{'id':_0x40120b[_0x3e1bce(0x1e6d)]});_0x270d98&&_0x270d98[_0x3e1bce(0x25d3)]&&(_0xb4b3bf=_0x28c606()[_0x3e1bce(0x27bc)](_0x270d98[_0x3e1bce(0x25d3)],{'id':_0x40120b[_0x3e1bce(0x246c)]}),!_0xb4b3bf&&_0x270d98[_0x3e1bce(0x25d3)][_0x3e1bce(0x1954)]({'id':_0x40120b['UserId']}));}function _0xf9f6db(_0x5cbea0){const _0x32ce6a=_0x9c83b5,_0x327088=_0x28c606()[_0x32ce6a(0x27bc)](_0x2027b1[_0x32ce6a(0x1fff)][_0x32ce6a(0x28b8)],{'id':_0x5cbea0[_0x32ce6a(0x1e6d)]});_0x327088&&_0x327088[_0x32ce6a(0x25d3)]&&_0x28c606()[_0x32ce6a(0x21c7)](_0x327088[_0x32ce6a(0x25d3)],{'id':_0x5cbea0[_0x32ce6a(0x246c)]});}function _0x4dfbd9(_0x471761){const _0x4cf399=_0x9c83b5;if(_0x471761){const _0x2dd234=_0x28c606()['find'](_0x2027b1[_0x4cf399(0x1fff)][_0x4cf399(0x28b8)],{'id':_0x471761['id']});if(_0x2dd234){_0x2dd234[_0x4cf399(0x25d3)]=[];_0x471761[_0x4cf399(0x1140)]&&(_0x2dd234[_0x4cf399(0x18d3)]=0x0);if(_0x2027b1[_0x4cf399(0x289a)][_0x4cf399(0x768)]){const _0x52a01c=_0x28c606()[_0x4cf399(0x1273)](_0x2027b1[_0x4cf399(0x289a)][_0x4cf399(0x768)],'-')?'desc':_0x4cf399(0x2449);_0x2027b1[_0x4cf399(0x1fff)][_0x4cf399(0x28b8)]=_0x28c606()[_0x4cf399(0x288e)](_0x2027b1[_0x4cf399(0x1fff)]['rows'],_0x28c606()[_0x4cf399(0x17cf)](_0x2027b1[_0x4cf399(0x289a)][_0x4cf399(0x768)],'-'),_0x52a01c);}_0x28c606()[_0x4cf399(0x14fe)](_0x2dd234,_0x28c606()[_0x4cf399(0x27bb)](_0x471761,_0x28c606()['keys'](_0x2dd234)));}else _0x47b2f3(_0x2027b1[_0x4cf399(0x289a)][_0x4cf399(0xc72)]);}}function _0x33d5fa(_0x3bbdec){const _0x37062f=_0x9c83b5;if(_0x3bbdec){const _0xf86683=_0x28c606()[_0x37062f(0x27bc)](_0x2027b1[_0x37062f(0x1fff)][_0x37062f(0x28b8)],{'id':_0x3bbdec['id']});_0xf86683&&(_0xf86683[_0x37062f(0x1178)]=_0x3bbdec[_0x37062f(0x16a6)]||[],_0x28c606()['merge'](_0xf86683,_0x28c606()[_0x37062f(0x27bb)](_0x3bbdec,_0x28c606()[_0x37062f(0x1ec6)](_0xf86683))));}}function _0x466418(_0x3e8245){const _0x3ba0dc=_0x9c83b5;if(_0x3e8245&&!_0x3e8245['secret']){const _0x7e1aa1=_0x28c606()[_0x3ba0dc(0x27bc)](_0x2027b1[_0x3ba0dc(0x1fff)][_0x3ba0dc(0x28b8)],{'id':_0x3e8245[_0x3ba0dc(0x1e6d)]});if(_0x7e1aa1){const _0x4e1e68=_0x28c606()[_0x3ba0dc(0x27bc)](_0x7e1aa1['Messages'],{'id':_0x3e8245['id']});_0x4e1e68?_0x28c606()['merge'](_0x4e1e68,_0x28c606()[_0x3ba0dc(0x27bb)](_0x3e8245,_0x28c606()[_0x3ba0dc(0x1ec6)](_0x4e1e68))):(_0x28c606()['isNil'](_0x7e1aa1[_0x3ba0dc(0x17af)])&&(_0x7e1aa1[_0x3ba0dc(0x17af)]={'count':0x0}),!_0x3e8245[_0x3ba0dc(0x12a6)]&&(_0x7e1aa1[_0x3ba0dc(0x17af)][_0x3ba0dc(0xb90)]+=0x1));}}}function _0x1d6169(){const _0x1e1139=_0x9c83b5;_0x2027b1[_0x1e1139(0x2963)]=![];}function _0x589a2d(){_0x2027b1['isSearchBarVisible']=!![];}function _0x3698d0(){const _0x5805aa=_0x9c83b5;_0x2027b1['isSearchBarVisible']=![],_0xda903c[_0x5805aa(0xa60)]({'controller':_0x5805aa(0x271c),'controllerAs':'vm','templateUrl':_0x46e7cb,'parent':angular[_0x5805aa(0x1f81)](_0x5c691a['body']),'clickOutsideToClose':![],'locals':{'color':_0x2027b1[_0x5805aa(0x18a0)],'fields':_0x2027b1[_0x5805aa(0x1b2f)][_0x5805aa(0xf26)],'storagePath':'home.sms'},'fullscreen':!![]})[_0x5805aa(0x64a)](function(_0x353168){const _0x2bb0f6=_0x5805aa;_0x2027b1[_0x2bb0f6(0x289a)][_0x2bb0f6(0xb58)]=_0x353168===![]?undefined:_0x353168;if(_0x2027b1[_0x2bb0f6(0x289a)][_0x2bb0f6(0xb58)]||_0x353168===![])_0x47b2f3();})[_0x5805aa(0x20cd)](function(_0x2e2159){const _0x4dd2ed=_0x5805aa;_0x5004b8[_0x4dd2ed(0x1bd0)]({'title':_0x4dd2ed(0x2440),'msg':_0x2e2159[_0x4dd2ed(0x1c52)]?JSON[_0x4dd2ed(0x2317)](_0x2e2159[_0x4dd2ed(0x1c52)][_0x4dd2ed(0x18ca)]):_0x2e2159[_0x4dd2ed(0x2915)]()});});}let _0x5a276a=!![],_0x148c69=0x1;_0x1727c0[_0x9c83b5(0xc62)](_0x9c83b5(0x1cb9),function(_0x179d2b,_0xe51b8b){const _0x1c6e4d=_0x9c83b5;_0x5a276a?_0x422fab(function(){_0x5a276a=![];}):(!_0xe51b8b&&(_0x148c69=_0x2027b1[_0x1c6e4d(0x289a)][_0x1c6e4d(0xc72)]),_0x179d2b!==_0xe51b8b&&(_0x2027b1[_0x1c6e4d(0x289a)]['page']=0x1),!_0x179d2b&&(_0x2027b1[_0x1c6e4d(0x289a)][_0x1c6e4d(0xc72)]=_0x148c69),_0x47b2f3(_0x2027b1[_0x1c6e4d(0x289a)]['page']));}),_0x1727c0[_0x9c83b5(0x8c7)](_0x9c83b5(0xf28),function(){const _0x2d1d10=_0x9c83b5;_0x5ad255[_0x2d1d10(0x1951)](_0x2d1d10(0x1fe1)),_0x5ad255[_0x2d1d10(0x1951)](_0x2d1d10(0x13f0)),_0x5ad255[_0x2d1d10(0x1951)](_0x2d1d10(0x2880)),_0x5ad255[_0x2d1d10(0x1951)](_0x2d1d10(0x10b6)),_0x5ad255['removeAllListeners'](_0x2d1d10(0xaeb)),_0x5ad255['removeAllListeners'](_0x2d1d10(0xb1a)),_0x5ad255['removeAllListeners'](_0x2d1d10(0x1d4c));});}const _0x534d41=_0x58b169;;const _0xc1fb75=_0x2e4a48['p']+_0x49a1e3(0x1a16);;_0x2cd5fb[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$document',_0x49a1e3(0xa19),_0x49a1e3(0x680),'Auth','$window',_0x49a1e3(0x1674),_0x49a1e3(0x20d4)];function _0x2cd5fb(_0x3349b8,_0x44090b,_0x24cfa9,_0x426144,_0x2f9d4c,_0x54293f,_0x3ab0bf,_0x1e6242){const _0xe1e8d1=_0x49a1e3,_0x227773=this;_0x227773[_0xe1e8d1(0x1d3d)]=_0x2f9d4c[_0xe1e8d1(0x808)](),_0x227773[_0xe1e8d1(0x65f)]={},_0x227773[_0xe1e8d1(0x185d)]=_0xe1e8d1(0x65f),_0x227773[_0xe1e8d1(0x289a)]={'UserId':_0x227773[_0xe1e8d1(0x1d3d)]['id'],'fields':_0xe1e8d1(0x28ef),'sort':_0xe1e8d1(0x260c),'limit':0xa,'page':0x1,'type':null},_0x227773[_0xe1e8d1(0x1339)]=_0x43c002,_0x227773[_0xe1e8d1(0x126e)]=_0x4673cd,_0x227773[_0xe1e8d1(0x2483)]=_0x569779,_0x227773[_0xe1e8d1(0x396)]=_0x3de6d3,_0x227773[_0xe1e8d1(0xb3d)]=_0x2694d6,_0x227773[_0xe1e8d1(0xd90)]=_0x4f3677;function _0x569779(){const _0x4ee2e2=_0xe1e8d1;return _0x24cfa9[_0x4ee2e2(0xac8)][_0x4ee2e2(0x896)]()[_0x4ee2e2(0x15e7)][_0x4ee2e2(0x64a)](function(_0xc6d65b){const _0x4c0e97=_0x4ee2e2;_0x227773[_0x4c0e97(0x16a6)]=_0xc6d65b||{'count':0x0,'rows':[]};})[_0x4ee2e2(0x64a)](function(){const _0x389415=_0x4ee2e2;_0x227773[_0x389415(0x9fc)]=_0x3b1685();})[_0x4ee2e2(0x20cd)](function(_0x1a23f9){const _0x3e121a=_0x4ee2e2;_0x426144[_0x3e121a(0x1bd0)]({'title':_0x3e121a(0x1d15),'msg':_0x1a23f9[_0x3e121a(0x1c52)]?JSON[_0x3e121a(0x2317)](_0x1a23f9[_0x3e121a(0x1c52)][_0x3e121a(0x18ca)]):_0x1a23f9[_0x3e121a(0x18ca)]||_0x1a23f9['toString']()}),_0x227773['tags']={'count':0x0,'rows':[]};})[_0x4ee2e2(0x988)](function(){const _0x4d13bb=_0x4ee2e2;let _0x28a537=_0x54293f['localStorage'][_0x4d13bb(0x1ed0)](_0x4d13bb(0x2945)+_0x227773[_0x4d13bb(0x1d3d)]['id']);if(_0x28a537)try{_0x28a537=JSON[_0x4d13bb(0x27f1)](_0x28a537),_0x28a537['query']&&(_0x227773['query']=_0x28c606()[_0x4d13bb(0xd09)](_0x28a537[_0x4d13bb(0x289a)],'filter'));}catch(_0x25ebba){console[_0x4d13bb(0x1bd0)](_0x25ebba);}else{const _0x11b2fd={'$gte':_0x2ac33a()()[_0x4d13bb(0x246e)](_0x4d13bb(0x5f5))['utcOffset'](0x0,!![])[_0x4d13bb(0x1c2c)](),'$lte':_0x2ac33a()()[_0x4d13bb(0x13af)](_0x4d13bb(0x5f5))[_0x4d13bb(0xebc)](0x0,!![])[_0x4d13bb(0x1c2c)]()};_0x227773['query'][_0x4d13bb(0x2378)]=_0x11b2fd;}_0x4673cd();});}function _0x3b1685(){const _0x43aae8=_0xe1e8d1;return[{'name':'Start\x20Date','key':_0x43aae8(0x2378),'type':_0x43aae8(0x232e),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x43aae8(0x2111),'key':_0x43aae8(0x2185),'type':_0x43aae8(0x2926),'label':_0x43aae8(0x49f),'customOptions':[{'value':_0x43aae8(0xe2f),'translate':'VOICE.INTERNAL'},{'value':'inbound','translate':_0x43aae8(0x736)},{'value':_0x43aae8(0xbce),'translate':_0x43aae8(0xb9a)},{'value':_0x43aae8(0x2967),'translate':_0x43aae8(0xe13)},{'value':null,'translate':_0x43aae8(0x9e1)}]}];}function _0x43c002(_0x1f51ce){const _0x439328=_0xe1e8d1;_0x227773[_0x439328(0x25cb)]=![],_0x227773[_0x439328(0x65f)]=_0x1f51ce||{'count':0x0,'rows':[]};}function _0x4673cd(){const _0x225812=_0xe1e8d1;_0x227773[_0x225812(0x25cb)]=!![],_0x227773['query']['offset']=(_0x227773[_0x225812(0x289a)][_0x225812(0xc72)]-0x1)*_0x227773[_0x225812(0x289a)][_0x225812(0x25bb)];const _0x3297e6={'query':_0x227773['query']};_0x54293f['localStorage'][_0x225812(0x15da)](_0x225812(0x2945)+_0x227773[_0x225812(0x1d3d)]['id'],JSON[_0x225812(0x2317)](_0x3297e6)),_0x227773[_0x225812(0x1713)]=_0x24cfa9[_0x225812(0x642)][_0x225812(0x896)](_0x227773['query'],_0x43c002)[_0x225812(0x15e7)];}function _0x3de6d3(_0x43a544){const _0x5c65f0=_0xe1e8d1;_0x3349b8[_0x5c65f0(0xa60)]({'controller':_0x5c65f0(0x6ac),'controllerAs':'vm','templateUrl':_0xc1fb75,'parent':angular[_0x5c65f0(0x1f81)](_0x44090b[_0x5c65f0(0xb49)]),'clickOutsideToClose':!![],'locals':{'call':_0x43a544}});}function _0x2694d6(){const _0x532a74=_0xe1e8d1;_0x227773[_0x532a74(0x289a)][_0x532a74(0xcec)]=undefined,_0x227773[_0x532a74(0x2963)]=![];}function _0x4f3677(){const _0x3fa0a8=_0xe1e8d1;_0x227773[_0x3fa0a8(0x2963)]=!![];}let _0x2035a2=!![],_0x17ef54=0x1;_0x3ab0bf['$watch'](_0xe1e8d1(0x1cb9),function(_0x274ea6,_0x5344c6){const _0x5566f8=_0xe1e8d1;_0x2035a2?_0x1e6242(function(){_0x2035a2=![];}):(!_0x5344c6&&(_0x17ef54=_0x227773[_0x5566f8(0x289a)]['page']),_0x274ea6!==_0x5344c6&&(_0x227773[_0x5566f8(0x289a)][_0x5566f8(0xc72)]=0x1),!_0x274ea6&&(_0x227773[_0x5566f8(0x289a)][_0x5566f8(0xc72)]=_0x17ef54),_0x227773['getVoiceCalls']());});}const _0x28a274=_0x2cd5fb;;_0x3acb1e[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x17f0)];function _0x3acb1e(_0x546a52,_0x2cddee){const _0x28cd89=_0x49a1e3,_0x4c1bc3=this;_0x4c1bc3[_0x28cd89(0x17f0)]=_0x2cddee;function _0x19a7c1(){_0x546a52['hide']();}_0x4c1bc3[_0x28cd89(0x16cb)]=_0x19a7c1;}const _0x35713c=_0x3acb1e;;_0x2d9038[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x1fe7),'$translate','api',_0x49a1e3(0xdcf),_0x49a1e3(0x633),_0x49a1e3(0x680),_0x49a1e3(0x2834)];function _0x2d9038(_0x6cda80,_0x352490,_0x361252,_0x8bc6d6,_0x6b83c6,_0x4c193f,_0x3d7ce7,_0x359c35,_0x434083,_0x382303,_0x2f2b9a){const _0x9dc12e=_0x49a1e3,_0x1e541b=this;_0x1e541b['user']=_0x359c35[_0x9dc12e(0x808)](),_0x1e541b[_0x9dc12e(0x1947)]={},_0x1e541b['setting']={},_0x1e541b[_0x9dc12e(0x16a6)]={'count':0x0,'rows':[]},_0x1e541b[_0x9dc12e(0x269f)]={'count':0x0,'rows':[]},_0x1e541b['query']={'includeAll':!![],'sort':_0x9dc12e(0x260c),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x1e541b[_0x9dc12e(0x1b2f)]={'fields':[{'name':'Id','column':'id','type':_0x9dc12e(0x2113)},{'name':_0x9dc12e(0x1c38),'column':_0x9dc12e(0x1c38),'type':_0x9dc12e(0x21b7),'options':{'searchFields':[_0x9dc12e(0x2518),_0x9dc12e(0x21c4),'email'],'route':{'model':_0x9dc12e(0xdf5),'action':_0x9dc12e(0x896),'params':{'fields':_0x9dc12e(0x3ef),'Contact':_0x9dc12e(0xb96),'nolimit':!![]}},'extraOperators':[_0x9dc12e(0xe87)],'excludedOperators':[_0x9dc12e(0x14b5)]}},{'name':'Body','column':_0x9dc12e(0xb49),'type':_0x9dc12e(0x39b),'options':{'excludedOperators':[_0x9dc12e(0x1743),_0x9dc12e(0x14b5)]}},{'name':_0x9dc12e(0x2311),'column':_0x9dc12e(0x1140),'type':_0x9dc12e(0x2926),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x9dc12e(0x5cd)}],'options':{'excludedOperators':[_0x9dc12e(0x14b5)]}},{'name':_0x9dc12e(0x12ad),'column':_0x9dc12e(0x1098),'type':_0x9dc12e(0x21b7),'options':{'table':'i','route':{'model':_0x9dc12e(0x2e8),'action':_0x9dc12e(0x896),'params':{'role':_0x9dc12e(0x11ae),'fields':_0x9dc12e(0xd53),'nolimit':!![]}},'searchFields':[_0x9dc12e(0x15c),_0x9dc12e(0x2494)],'extraOperators':['$substring'],'excludedOperators':['$ne']}},{'name':_0x9dc12e(0x141),'column':_0x9dc12e(0x222),'type':_0x9dc12e(0x20ae),'options':{'route':{'model':_0x9dc12e(0x2e8),'action':_0x9dc12e(0x33b),'params':{'id':_0x1e541b[_0x9dc12e(0x2e8)]['id'],'nolimit':!![]}}}},{'name':_0x9dc12e(0x1178),'column':_0x9dc12e(0x1e9f),'type':'multiselect','options':{'route':{'model':_0x9dc12e(0xac8),'action':_0x9dc12e(0x896),'params':{'nolimit':!![]}},'excludedOperators':[_0x9dc12e(0x9eb)]}},{'name':_0x9dc12e(0x1967),'column':_0x9dc12e(0x2378),'type':_0x9dc12e(0x232e),'options':{'excludedOperators':[_0x9dc12e(0x14b5)]}},{'name':_0x9dc12e(0xff4),'column':_0x9dc12e(0x18d3),'type':_0x9dc12e(0x2926),'values':[{'id':0x1,'translate':_0x9dc12e(0x1889)},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x9dc12e(0x14b5)]}}]},_0x1e541b['sectionColor']=_0x9dc12e(0xa75),_0x1e541b['onInit']=_0x2b16d7,_0x1e541b['success']=_0x837fe7,_0x1e541b[_0x9dc12e(0x638)]=_0x10e5cf,_0x1e541b[_0x9dc12e(0x1f5f)]=_0x24e3af,_0x1e541b[_0x9dc12e(0xffc)]=_0x19bf08,_0x1e541b[_0x9dc12e(0x255b)]=_0x413f8e,_0x1e541b[_0x9dc12e(0x5cb)]=_0x325833,_0x1e541b[_0x9dc12e(0x1a08)]=_0x4186bc,_0x1e541b[_0x9dc12e(0x1d2a)]=_0x3d3f01,_0x1e541b[_0x9dc12e(0x1b40)]=_0x52724c,_0x1e541b[_0x9dc12e(0xb3d)]=_0xaf2038,_0x1e541b[_0x9dc12e(0xd90)]=_0x4527b8,_0x1e541b['openAdvancedSearch']=_0x4bfa0f;function _0x2b16d7(_0x2a4f4e,_0x37afa0){const _0x573e6e=_0x9dc12e;return _0x1e541b[_0x573e6e(0x1947)]=_0x2a4f4e,_0x1e541b[_0x573e6e(0x28d6)]=_0x37afa0,_0x3d7ce7[_0x573e6e(0x2e8)][_0x573e6e(0x896)+_0x28c606()['upperFirst'](_0x573e6e(0x21fb))]({'id':_0x1e541b[_0x573e6e(0x2e8)]['id'],'nolimit':!![]})[_0x573e6e(0x15e7)][_0x573e6e(0x64a)](function(_0x26a55c){const _0x5aafef=_0x573e6e;return _0x1e541b[_0x5aafef(0x21fb)]=_0x26a55c||{'count':0x0,'rows':[]},_0x3d7ce7['tag'][_0x5aafef(0x896)]()[_0x5aafef(0x15e7)];})[_0x573e6e(0x64a)](function(_0x35cce7){_0x1e541b['tags']=_0x35cce7||{'count':0x0,'rows':[]};})[_0x573e6e(0x64a)](function(){const _0x471cd9=_0x573e6e;_0x1e541b[_0x471cd9(0x9fc)]=_0x3458c5();})[_0x573e6e(0x20cd)](function(_0x553b79){console['error'](_0x553b79);})['finally'](function(){const _0x5a68c3=_0x573e6e;let _0x3ada2a=_0x6b83c6[_0x5a68c3(0x294)]['getItem'](_0x5a68c3(0x6f6)+_0x1e541b['user']['id']);if(_0x3ada2a)try{_0x3ada2a=JSON[_0x5a68c3(0x27f1)](_0x3ada2a);if(_0x3ada2a[_0x5a68c3(0x289a)]){_0x1e541b[_0x5a68c3(0x289a)]=_0x28c606()[_0x5a68c3(0x14fe)](_0x1e541b[_0x5a68c3(0x289a)],_0x3ada2a['query']);if(_0x28c606()[_0x5a68c3(0x940)](_0x1e541b[_0x5a68c3(0x21fb)][_0x5a68c3(0x28b8)]))_0x1e541b[_0x5a68c3(0x289a)][_0x5a68c3(0x222)]=[];else _0x28c606()[_0x5a68c3(0x940)](_0x1e541b[_0x5a68c3(0x289a)]['WhatsappAccountId'])&&(_0x1e541b[_0x5a68c3(0x289a)][_0x5a68c3(0x222)]=_0x28c606()(_0x1e541b['whatsappAccounts'][_0x5a68c3(0x28b8)])[_0x5a68c3(0x1de5)]('id')[_0x5a68c3(0x840)]()[_0x5a68c3(0x1096)]());_0x1e541b[_0x5a68c3(0x289a)][_0x5a68c3(0x768)]&&_0x1e541b[_0x5a68c3(0x289a)][_0x5a68c3(0x768)]['indexOf']('lastMessage')>=0x0&&(_0x1e541b['query']=_0x28c606()[_0x5a68c3(0xd09)](_0x1e541b[_0x5a68c3(0x289a)],'sort')),_0x1e541b[_0x5a68c3(0x289a)]['includeAll']=!![],_0x1e541b[_0x5a68c3(0x2963)]=_0x1e541b[_0x5a68c3(0x289a)]['filter']?!![]:![];}}catch(_0x361200){console[_0x5a68c3(0x1bd0)](_0x361200);}else{const _0x3cab5b={'$gte':_0x2ac33a()()[_0x5a68c3(0x246e)](_0x5a68c3(0x5f5))[_0x5a68c3(0xebc)](0x0,!![])[_0x5a68c3(0x1c2c)](),'$lte':_0x2ac33a()()[_0x5a68c3(0x13af)](_0x5a68c3(0x5f5))[_0x5a68c3(0xebc)](0x0,!![])['format']()},_0x444cea={'WhatsappAccountId':_0x28c606()[_0x5a68c3(0x1de5)](_0x1e541b['whatsappAccounts'][_0x5a68c3(0x28b8)],'id'),'createdAt':_0x3cab5b};_0x1e541b[_0x5a68c3(0x289a)]=_0x28c606()[_0x5a68c3(0x14fe)](_0x1e541b[_0x5a68c3(0x289a)],_0x444cea);}_0x434083['on']('whatsappInteraction:save',_0x134330),_0x434083['on'](_0x5a68c3(0x315),_0x134330),_0x434083['on'](_0x5a68c3(0x1305),_0x50e785),_0x434083['on'](_0x5a68c3(0x2495),_0x195673),_0x434083['on'](_0x5a68c3(0x231d),_0x195673),_0x434083['on'](_0x5a68c3(0x1ef3),_0x5369eb),_0x434083['on'](_0x5a68c3(0x2680),_0x42a6b5),_0x10e5cf(_0x1e541b[_0x5a68c3(0x289a)][_0x5a68c3(0xc72)]);});}function _0x3458c5(){const _0x356dff=_0x9dc12e;return[{'name':_0x356dff(0x1967),'key':_0x356dff(0x2378),'type':_0x356dff(0x232e),'label':_0x356dff(0x2720)},{'name':_0x356dff(0x17af),'key':_0x356dff(0x12a6),'type':_0x356dff(0x2926),'label':_0x356dff(0x23f7),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x356dff(0x1889)},{'value':null,'translate':_0x356dff(0x2200)}]},{'name':_0x356dff(0x2311),'key':'closed','type':_0x356dff(0x2926),'label':_0x356dff(0x110d),'customOptions':[{'value':0x0,'translate':_0x356dff(0x1313)},{'value':0x1,'translate':_0x356dff(0x5cd)},{'value':null,'translate':_0x356dff(0x2200)}]},{'name':_0x356dff(0x141),'key':_0x356dff(0x222),'type':_0x356dff(0x20ae),'label':_0x356dff(0x214f),'options':_0x1e541b[_0x356dff(0x21fb)][_0x356dff(0x28b8)],'clearAll':![]},{'name':_0x356dff(0x12ad),'key':_0x356dff(0x246c),'type':_0x356dff(0x2926),'label':_0x356dff(0x18bf),'customOptions':[{'value':_0x1e541b['user']['id'],'translate':_0x356dff(0x2368)},{'value':_0x356dff(0x8f1),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x356dff(0x2200)}]},{'name':_0x356dff(0x1e9f),'key':_0x356dff(0xac8),'type':_0x356dff(0x20ae),'label':_0x356dff(0x1208),'options':_0x1e541b[_0x356dff(0x16a6)][_0x356dff(0x28b8)],'placeholder':'DASHBOARDS.TAGS'}];}function _0x837fe7(_0x53c0a0){const _0x4d7c83=_0x9dc12e;_0x1e541b[_0x4d7c83(0x25cb)]=![],_0x1e541b['whatsappInteractions']=_0x53c0a0||{'count':0x0,'rows':[]};for(let _0x1890f0=0x0;_0x1890f0<_0x1e541b[_0x4d7c83(0x269f)]['rows']['length'];_0x1890f0+=0x1){_0x325833(_0x1e541b['whatsappInteractions']['rows'][_0x1890f0]);}}function _0x10e5cf(_0x45fe75){const _0x5d82da=_0x9dc12e;_0x1e541b[_0x5d82da(0x25cb)]=!![];!_0x45fe75&&(_0x1e541b[_0x5d82da(0x289a)][_0x5d82da(0xc72)]=0x1);_0x1e541b[_0x5d82da(0x289a)][_0x5d82da(0x24f9)]=(_0x1e541b['query']['page']-0x1)*_0x1e541b['query'][_0x5d82da(0x25bb)];let _0xfe06f4=_0x6b83c6[_0x5d82da(0x294)]['getItem'](_0x5d82da(0x6f6)+_0x1e541b[_0x5d82da(0x2e8)]['id']);_0xfe06f4=_0xfe06f4?JSON[_0x5d82da(0x27f1)](_0xfe06f4):{},_0xfe06f4[_0x5d82da(0x289a)]=_0x1e541b['query'],_0x6b83c6[_0x5d82da(0x294)]['setItem'](_0x5d82da(0x6f6)+_0x1e541b[_0x5d82da(0x2e8)]['id'],JSON[_0x5d82da(0x2317)](_0xfe06f4)),_0x1e541b[_0x5d82da(0x1713)]=_0x3d7ce7['whatsappInteraction'][_0x5d82da(0x896)](_0x1e541b[_0x5d82da(0x289a)],_0x837fe7)[_0x5d82da(0x15e7)];}function _0x24e3af(_0x421e40,_0x36999a){const _0x4bac40=_0x9dc12e;_0x6cda80[_0x4bac40(0x4e3)]['vm']['addInteractionTab']('whatsapp',_0x36999a);}function _0x19bf08(_0x3dff0d,_0x3eb248,_0x4857b4){const _0x1be520=_0x9dc12e;_0x3d7ce7[_0x1be520(0x2076)]['download']({'id':_0x3eb248['id'],'attachments':_0x4857b4})[_0x1be520(0x15e7)][_0x1be520(0x64a)](function(_0x38fa7a){const _0x3e63ea=_0x1be520,_0x2f6774=[_0x38fa7a['buffer']],_0x1bc39a=_0x3e63ea(0xf4d)+_0x3eb248['id']+_0x3e63ea(0x2177),_0x5d7b4b=new Blob(_0x2f6774,{'type':_0x38fa7a[_0x3e63ea(0x2185)]}),_0x5dca2f=window[_0x3e63ea(0x123f)][_0x3e63ea(0x2978)]('a');_0x5dca2f['setAttribute'](_0x3e63ea(0x25d0),URL['createObjectURL'](_0x5d7b4b)),_0x5dca2f['setAttribute']('download',_0x1bc39a),document['body']['appendChild'](_0x5dca2f),_0x5dca2f[_0x3e63ea(0x2668)]();})[_0x1be520(0x20cd)](function(_0x26467d){const _0x50037b=_0x1be520;if(_0x26467d['data']&&_0x26467d[_0x50037b(0x1c52)]['errors']&&_0x26467d[_0x50037b(0x1c52)][_0x50037b(0xbae)][_0x50037b(0x1b9e)])for(let _0x595a34=0x0;_0x595a34<_0x26467d[_0x50037b(0x1c52)][_0x50037b(0xbae)][_0x50037b(0x1b9e)];_0x595a34+=0x1){_0x382303[_0x50037b(0x1bd0)]({'title':_0x26467d[_0x50037b(0x1c52)][_0x50037b(0xbae)][_0x595a34]['type'],'msg':_0x26467d[_0x50037b(0x1c52)][_0x50037b(0xbae)][_0x595a34]['message']});}else _0x382303[_0x50037b(0x1bd0)]({'title':_0x26467d[_0x50037b(0x10b3)]?'API:'+_0x26467d[_0x50037b(0x10b3)]+'\x20-\x20'+_0x26467d[_0x50037b(0x2115)]:_0x50037b(0xffc),'msg':_0x26467d['data']?JSON[_0x50037b(0x2317)](_0x26467d[_0x50037b(0x1c52)][_0x50037b(0x18ca)]):_0x26467d[_0x50037b(0x2915)]()});});}function _0x413f8e(_0x270aae,_0x39fc0b){const _0xdc2826=_0x9dc12e,_0xe293a2=_0x1e541b[_0xdc2826(0x2e8)][_0xdc2826(0x11a4)]||_0x1e541b[_0xdc2826(0x2e8)][_0xdc2826(0x2248)]||_0x1e541b[_0xdc2826(0x2e8)][_0xdc2826(0x292)]||_0x1e541b['user'][_0xdc2826(0x1451)]||_0x1e541b[_0xdc2826(0x2e8)][_0xdc2826(0x211)],_0x15e387=!_0x39fc0b['Account'][_0xdc2826(0xe19)];_0x361252['show']({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x17dbb5,'parent':angular[_0xdc2826(0x1f81)](_0x8bc6d6[_0xdc2826(0xb49)]),'clickOutsideToClose':_0x15e387,'escapeToClose':_0x15e387,'onRemoving':function(){const _0x542227=_0xdc2826;_0x1e541b['user']&&_0x39fc0b['Account'][_0x542227(0xe19)]&&!_0xe293a2&&_0x3d7ce7[_0x542227(0x2e8)][_0x542227(0x818)]({'id':_0x1e541b[_0x542227(0x2e8)]['id']})[_0x542227(0x15e7)][_0x542227(0x20cd)](function(_0x4f7226){const _0x196256=_0x542227;console[_0x196256(0x1bd0)](_0x4f7226);});},'locals':{'user':_0x1e541b[_0xdc2826(0x2e8)],'channel':'whatsapp','interaction':_0x39fc0b}});}function _0x325833(_0x1d3ec7){const _0x2d0ffe=_0x9dc12e;_0x1d3ec7[_0x2d0ffe(0x27b3)]=_0x1d3ec7[_0x2d0ffe(0x1c38)]?_0x1d3ec7[_0x2d0ffe(0x1c38)][_0x2d0ffe(0x26ed)]:undefined,_0x1d3ec7[_0x2d0ffe(0xfd7)]==='Unknown'&&(_0x1d3ec7[_0x2d0ffe(0xfd7)]=_0x4c193f[_0x2d0ffe(0x2292)](_0x2d0ffe(0x1c8d)));}function _0x4186bc(_0x1ca192){const _0x46e9b0=_0x9dc12e;if(_0x1ca192['UserId'])return _0x1ca192[_0x46e9b0(0x246c)]===_0x1e541b[_0x46e9b0(0x2e8)]['id']?_0x4c193f[_0x46e9b0(0x2292)](_0x46e9b0(0x2368)):_0x1ca192[_0x46e9b0(0x1b06)][_0x46e9b0(0x15c)]+'\x20<'+_0x1ca192['Owner'][_0x46e9b0(0xe2f)]+'>';return _0x4c193f[_0x46e9b0(0x2292)](_0x46e9b0(0x276d));}function _0x3d3f01(_0x2d6947){const _0x36ac17=_0x9dc12e;if(_0x2d6947[_0x36ac17(0x141)])return _0x2d6947[_0x36ac17(0x141)][_0x36ac17(0x2125)];return _0x4c193f['instant']('APP.UNKNOWN');}function _0x52724c(_0x4822da,_0x2482bc){const _0x4b31b1=_0x9dc12e;_0x361252[_0x4b31b1(0xa60)]({'controller':'ComposeWhatsappInteractionDialogController','controllerAs':'vm','templateUrl':_0x104fe3,'parent':angular[_0x4b31b1(0x1f81)](_0x8bc6d6['body']),'clickOutsideToClose':![],'locals':{'account':_0x2482bc,'message':{},'type':_0x4b31b1(0x13c0),'interaction':{}},'fullscreen':!![]})[_0x4b31b1(0x64a)](function(_0x25134d){const _0x8e1806=_0x4b31b1;if(_0x25134d){if(_0x25134d[_0x8e1806(0x18ca)]&&_0x25134d['message']['savedAsDraft']){const _0x101efb={'channel':_0x8e1806(0x1a29),'account':_0x2482bc,'message':_0x25134d[_0x8e1806(0x18ca)],'contact':_0x25134d[_0x8e1806(0x13f7)]};_0x2f2b9a[_0x8e1806(0x25df)](_0x101efb);}else{const _0x3f9d15=_0x25134d;return _0x3d7ce7[_0x8e1806(0x217c)][_0x8e1806(0xc10)]({'id':_0x2482bc['id']},_0x3f9d15)['$promise'][_0x8e1806(0x64a)](function(_0x26f695){const _0x168ce0=_0x8e1806;_0x382303[_0x168ce0(0x1339)]({'title':_0x168ce0(0x2040),'msg':_0x168ce0(0x285b)}),_0x6cda80['$parent']['vm'][_0x168ce0(0x1540)](_0x168ce0(0x1a29),_0x26f695);})[_0x8e1806(0x20cd)](function(_0x136cca){const _0x330907=_0x8e1806;if(_0x136cca[_0x330907(0x1c52)]&&_0x136cca[_0x330907(0x1c52)][_0x330907(0xbae)]&&_0x136cca['data'][_0x330907(0xbae)][_0x330907(0x1b9e)])for(let _0x46021b=0x0;_0x46021b<_0x136cca[_0x330907(0x1c52)][_0x330907(0xbae)]['length'];_0x46021b++){_0x382303['error']({'title':_0x136cca[_0x330907(0x1c52)][_0x330907(0xbae)][_0x46021b][_0x330907(0x2185)],'msg':_0x136cca[_0x330907(0x1c52)][_0x330907(0xbae)][_0x46021b][_0x330907(0x18ca)]});}else _0x382303[_0x330907(0x1bd0)]({'title':_0x136cca[_0x330907(0x10b3)]?'API:'+_0x136cca[_0x330907(0x10b3)]+_0x330907(0x21db)+_0x136cca[_0x330907(0x2115)]:_0x330907(0x2300),'msg':_0x136cca[_0x330907(0x1c52)]?JSON['stringify'](_0x136cca[_0x330907(0x1c52)][_0x330907(0x18ca)]):_0x136cca[_0x330907(0x18ca)]||_0x136cca['toString']()});});}}});}function _0x5369eb(_0x5526cc){const _0x379f05=_0x9dc12e;let _0x44f5ff;const _0x3a2df7=_0x28c606()['find'](_0x1e541b['whatsappInteractions']['rows'],{'id':_0x5526cc['WhatsappInteractionId']});_0x3a2df7&&_0x3a2df7[_0x379f05(0x25d3)]&&(_0x44f5ff=_0x28c606()[_0x379f05(0x27bc)](_0x3a2df7[_0x379f05(0x25d3)],{'id':_0x5526cc['UserId']}),!_0x44f5ff&&_0x3a2df7[_0x379f05(0x25d3)][_0x379f05(0x1954)]({'id':_0x5526cc['UserId']}));}function _0x42a6b5(_0x339173){const _0xd3b77b=_0x9dc12e,_0x4a2161=_0x28c606()['find'](_0x1e541b['whatsappInteractions']['rows'],{'id':_0x339173[_0xd3b77b(0xeda)]});_0x4a2161&&_0x4a2161[_0xd3b77b(0x25d3)]&&_0x28c606()[_0xd3b77b(0x21c7)](_0x4a2161[_0xd3b77b(0x25d3)],{'id':_0x339173[_0xd3b77b(0x246c)]});}function _0x134330(_0xdabe3d){const _0x5a02b2=_0x9dc12e;if(_0xdabe3d){const _0x1d2a74=_0x28c606()['find'](_0x1e541b['whatsappInteractions']['rows'],{'id':_0xdabe3d['id']});if(_0x1d2a74){_0x1d2a74[_0x5a02b2(0x25d3)]=[];_0xdabe3d[_0x5a02b2(0x1140)]&&(_0x1d2a74[_0x5a02b2(0x18d3)]=0x0);if(_0x1e541b[_0x5a02b2(0x289a)][_0x5a02b2(0x768)]){const _0x516601=_0x28c606()[_0x5a02b2(0x1273)](_0x1e541b[_0x5a02b2(0x289a)]['sort'],'-')?'desc':_0x5a02b2(0x2449);_0x1e541b[_0x5a02b2(0x269f)]['rows']=_0x28c606()[_0x5a02b2(0x288e)](_0x1e541b[_0x5a02b2(0x269f)][_0x5a02b2(0x28b8)],_0x28c606()[_0x5a02b2(0x17cf)](_0x1e541b[_0x5a02b2(0x289a)][_0x5a02b2(0x768)],'-'),_0x516601);}_0x28c606()[_0x5a02b2(0x14fe)](_0x1d2a74,_0x28c606()[_0x5a02b2(0x27bb)](_0xdabe3d,_0x28c606()[_0x5a02b2(0x1ec6)](_0x1d2a74)));}else _0x10e5cf(_0x1e541b[_0x5a02b2(0x289a)]['page']);}}function _0x50e785(_0x38eec0){const _0x4ff0dd=_0x9dc12e;if(_0x38eec0){const _0x50f337=_0x28c606()[_0x4ff0dd(0x27bc)](_0x1e541b['whatsappInteractions']['rows'],{'id':_0x38eec0['id']});_0x50f337&&(_0x50f337[_0x4ff0dd(0x1178)]=_0x38eec0[_0x4ff0dd(0x16a6)]||[],_0x28c606()[_0x4ff0dd(0x14fe)](_0x50f337,_0x28c606()[_0x4ff0dd(0x27bb)](_0x38eec0,_0x28c606()[_0x4ff0dd(0x1ec6)](_0x50f337))));}}function _0x195673(_0xf8c7d2){const _0x13bd9d=_0x9dc12e;if(_0xf8c7d2&&!_0xf8c7d2['secret']){const _0x8f87=_0x28c606()[_0x13bd9d(0x27bc)](_0x1e541b['whatsappInteractions'][_0x13bd9d(0x28b8)],{'id':_0xf8c7d2[_0x13bd9d(0xeda)]});if(_0x8f87){const _0x25b20b=_0x28c606()[_0x13bd9d(0x27bc)](_0x8f87[_0x13bd9d(0x17af)],{'id':_0xf8c7d2['id']});_0x25b20b?_0x28c606()[_0x13bd9d(0x14fe)](_0x25b20b,_0x28c606()[_0x13bd9d(0x27bb)](_0xf8c7d2,_0x28c606()['keys'](_0x25b20b))):(_0x28c606()[_0x13bd9d(0x28d7)](_0x8f87[_0x13bd9d(0x17af)])&&(_0x8f87[_0x13bd9d(0x17af)]={'count':0x0}),!_0xf8c7d2[_0x13bd9d(0x12a6)]&&(_0x8f87[_0x13bd9d(0x17af)]['count']+=0x1));}}}function _0xaf2038(){const _0x3621f7=_0x9dc12e;_0x1e541b[_0x3621f7(0x2963)]=![];}function _0x4527b8(){const _0x3e9225=_0x9dc12e;_0x1e541b[_0x3e9225(0x2963)]=!![];}function _0x4bfa0f(){const _0x4e53a8=_0x9dc12e;_0x1e541b['isSearchBarVisible']=![],_0x361252['show']({'controller':_0x4e53a8(0x271c),'controllerAs':'vm','templateUrl':_0x46e7cb,'parent':angular['element'](_0x8bc6d6[_0x4e53a8(0xb49)]),'clickOutsideToClose':![],'locals':{'color':_0x1e541b[_0x4e53a8(0x18a0)],'fields':_0x1e541b[_0x4e53a8(0x1b2f)][_0x4e53a8(0xf26)],'storagePath':_0x4e53a8(0xd58)},'fullscreen':!![]})['then'](function(_0x3fa07a){const _0x49f11e=_0x4e53a8;_0x1e541b[_0x49f11e(0x289a)][_0x49f11e(0xb58)]=_0x3fa07a===![]?undefined:_0x3fa07a;if(_0x1e541b['query']['search']||_0x3fa07a===![])_0x10e5cf();})[_0x4e53a8(0x20cd)](function(_0x2d090e){const _0x1d6b45=_0x4e53a8;_0x382303['error']({'title':'ERROR','msg':_0x2d090e[_0x1d6b45(0x1c52)]?JSON[_0x1d6b45(0x2317)](_0x2d090e[_0x1d6b45(0x1c52)][_0x1d6b45(0x18ca)]):_0x2d090e[_0x1d6b45(0x2915)]()});});}let _0x35154a=!![],_0x271325=0x1;_0x6cda80[_0x9dc12e(0xc62)](_0x9dc12e(0x1cb9),function(_0x4390de,_0x14f6d0){const _0x59b7f9=_0x9dc12e;_0x35154a?_0x352490(function(){_0x35154a=![];}):(!_0x14f6d0&&(_0x271325=_0x1e541b[_0x59b7f9(0x289a)]['page']),_0x4390de!==_0x14f6d0&&(_0x1e541b[_0x59b7f9(0x289a)]['page']=0x1),!_0x4390de&&(_0x1e541b[_0x59b7f9(0x289a)][_0x59b7f9(0xc72)]=_0x271325),_0x10e5cf(_0x1e541b[_0x59b7f9(0x289a)][_0x59b7f9(0xc72)]));}),_0x6cda80['$on'](_0x9dc12e(0xf28),function(){const _0x2ed8d2=_0x9dc12e;_0x434083['removeAllListeners'](_0x2ed8d2(0x2495)),_0x434083['removeAllListeners'](_0x2ed8d2(0x231d)),_0x434083['removeAllListeners'](_0x2ed8d2(0x168a)),_0x434083[_0x2ed8d2(0x1951)](_0x2ed8d2(0x1305)),_0x434083[_0x2ed8d2(0x1951)](_0x2ed8d2(0x315)),_0x434083[_0x2ed8d2(0x1951)](_0x2ed8d2(0x1ef3)),_0x434083[_0x2ed8d2(0x1951)](_0x2ed8d2(0x2680));});}const _0x2bee12=_0x2d9038;;_0x2973f5[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x186e)];function _0x2973f5(_0x585322,_0x148ae7){const _0x4a396a=_0x49a1e3,_0x304bd5=this;_0x304bd5[_0x4a396a(0x28d6)]={},_0x304bd5[_0x4a396a(0x14c1)]={'count':0x0,'rows':[]},_0x304bd5['showInteraction']=![];function _0x244928(_0xb0cf83,_0x3ee05e){const _0x538600=_0x4a396a;_0x304bd5[_0x538600(0x28d6)]=_0x3ee05e,_0x304bd5[_0x538600(0x1222)]=_0xb0cf83,_0x304bd5['tab']['saved']=!![];}function _0x434d80(){const _0x3ca3de=_0x4a396a;return _0x148ae7[_0x3ca3de(0x2119)](_0x304bd5[_0x3ca3de(0x1222)][_0x3ca3de(0x1efd)]);}_0x304bd5[_0x4a396a(0x2354)]=_0x244928,_0x304bd5['getTrustedURL']=_0x434d80;}const _0x1d3655=_0x2973f5;;const _0x56f561=_0x2e4a48['p']+_0x49a1e3(0x1252);;const _0x2139bb=_0x2e4a48['p']+_0x49a1e3(0xabb);;_0x256023['$inject']=[_0x49a1e3(0x186e)],_0x35ea39[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x20d4),'$document','$scope',_0x49a1e3(0x212a),'$q','$location',_0x49a1e3(0x298c),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x633),_0x49a1e3(0x1214),_0x49a1e3(0x2834)];function _0x35ea39(_0x3b226b,_0x52702f,_0x53c5e7,_0x3b5f8d,_0x469e29,_0x585ca6,_0x339c17,_0x3af5dd,_0x4d18b6,_0xb69fe1,_0x577162,_0x1a8d7a,_0x16fd2c,_0xb297d){const _0x308393=_0x49a1e3,_0xff5135=this,_0x12d6d6=0x19,_0x44cfdf=_0x12d6d6*0x400*0x400;_0xff5135[_0x308393(0x1df)]=![],_0xff5135[_0x308393(0x2821)]=![],_0xff5135[_0x308393(0x2e8)]=_0x577162[_0x308393(0x808)](),_0xff5135[_0x308393(0x8bf)]=_0x16fd2c[_0x308393(0x8bf)](),_0xff5135[_0x308393(0x738)]=[],_0xff5135[_0x308393(0x544)]=[],_0xff5135[_0x308393(0x482)]=[_0x308393(0xc71),'chat',_0x308393(0x10aa),_0x308393(0x28ad),_0x308393(0x1d37),_0x308393(0x1a29)],_0xff5135[_0x308393(0x1026)]={'target':_0x308393(0x14bc),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x44cfdf,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0xff5135[_0x308393(0x1eec)]={'flow':{}},_0xff5135[_0x308393(0x16f6)]={},_0xff5135[_0x308393(0xecb)]={},_0xff5135[_0x308393(0x28d6)]={},_0xff5135[_0x308393(0x74c)]={},_0xff5135['embedOptions']={'fontSmiley':!![],'sanitizeHtml':!![],'emoji':!![],'link':!![],'linkTarget':_0x308393(0x235e)},_0xff5135[_0x308393(0x1971)]=new Date(_0x2ac33a()()[_0x308393(0x246e)](_0x308393(0x5f5))['subtract'](0x1,_0x308393(0x15a2))['utcOffset'](0x0,!![])['format']()),_0xff5135[_0x308393(0x20c3)]=new Date(_0x2ac33a()()[_0x308393(0x13af)](_0x308393(0x5f5))[_0x308393(0x1219)](0x1,_0x308393(0x2784))[_0x308393(0xebc)](0x0,!![])['format']()),_0xff5135['init']=_0x3ee4ff,_0xff5135[_0x308393(0x100b)]=_0x3ae34a,_0xff5135['openContact']=_0x1ecb52,_0xff5135[_0x308393(0x1e4f)]=_0x70ec7d,_0xff5135[_0x308393(0x255b)]=_0x2023c5,_0xff5135[_0x308393(0x1adf)]=_0x39a52b,_0xff5135[_0x308393(0xc6c)]=_0x2d55d7,_0xff5135[_0x308393(0x28a2)]=_0x4e8f92,_0xff5135[_0x308393(0xf14)]=_0x558a73,_0xff5135['composeWhatsappInteraction']=_0x4fb3dd,_0xff5135[_0x308393(0x1f3a)]=_0x176b62,_0xff5135[_0x308393(0x27cb)]=_0x1f9093,_0xff5135['downloadInteraction']=_0x979991,_0xff5135['openDraft']=_0x44af65,_0xff5135[_0x308393(0x1912)]=_0x1f6697,_0xff5135[_0x308393(0x8df)]=_0x29d116,_0xff5135[_0x308393(0x1010)]=_0xb1ceb9,_0xff5135[_0x308393(0x790)]=_0x526f2a,_0xff5135[_0x308393(0x33b)]=_0x88ece7,_0xff5135[_0x308393(0x1247)]=_0x2fc37c,_0xff5135['getChatWebsites']=_0x4c7d72,_0xff5135['getLists']=_0x3af4f1,_0xff5135['reply']=_0x1caf6b,_0xff5135['upload']=_0xd3a546,_0xff5135[_0x308393(0x25ed)]=_0x366398,_0xff5135[_0x308393(0x1de6)]=_0x543d21,_0xff5135['onMessageSave']=_0x4159ec,_0xff5135[_0x308393(0xeb2)]=_0x4bc947,_0xff5135['searchTextChange']=_0x4673ce,_0xff5135[_0x308393(0x13c6)]=_0x1b07cd,_0xff5135[_0x308393(0x599)]=_0x3bed69,_0xff5135['getColorByChannel']=_0x525ec7,_0xff5135['getColorByItem']=_0x1315f2,_0xff5135[_0x308393(0x2937)]=_0x450589,_0xff5135[_0x308393(0x1866)]=![],_0xff5135['changeDisplayCannedAnswerInputValue']=_0x43d257,_0xff5135['setAs']=_0x9c5636,_0xff5135[_0x308393(0xa93)]=_0x39abb8,_0xff5135['isMyAccount']=_0x5728ae,_0xff5135[_0x308393(0xd49)]=_0x48ff6e,_0xff5135['getAttachment']=_0x453a0d,_0xff5135[_0x308393(0x68f)]=_0x238849,_0xff5135[_0x308393(0x2743)]=_0x25b2a7,_0xff5135[_0x308393(0x17b3)]=_0x274794,_0xff5135[_0x308393(0x55f)]=_0x5e1b2b,_0xff5135[_0x308393(0x18ad)]={'scrollEl':_0x308393(0x918)};function _0x4c7d72(){const _0x399f33=_0x308393;_0x4d18b6[_0x399f33(0x2e8)][_0x399f33(0x21a3)]({'id':_0xff5135[_0x399f33(0x2e8)]['id'],'nolimit':!![]})['$promise']['then'](function(_0x3ce488){_0xff5135['chatAccounts']=_0x3ce488||{'count':0x0,'rows':[]};});}function _0x3af4f1(){const _0xcf289a=_0x308393;_0x4d18b6[_0xcf289a(0x2e8)]['getLists']({'id':_0xff5135[_0xcf289a(0x2e8)]['id'],'nolimit':!![]})['$promise']['then'](function(_0x55baa2){const _0x357777=_0xcf289a;_0xff5135[_0x357777(0x6c9)]=_0x55baa2||{'count':0x0,'rows':[]};});}function _0x2fc37c(){const _0x23d9ca=_0x308393;_0x4d18b6[_0x23d9ca(0x2e8)]['getOpenchannelAccounts']({'id':_0xff5135[_0x23d9ca(0x2e8)]['id'],'nolimit':!![]})[_0x23d9ca(0x15e7)][_0x23d9ca(0x64a)](function(_0x4badfa){const _0x59d19d=_0x23d9ca;_0xff5135[_0x59d19d(0xda9)]=_0x4badfa||{'count':0x0,'rows':[]};})['catch'](function(_0x3535a5){const _0xfc78ce=_0x23d9ca;if(_0x3535a5[_0xfc78ce(0x1c52)]&&_0x3535a5[_0xfc78ce(0x1c52)]['errors']&&_0x3535a5['data'][_0xfc78ce(0xbae)][_0xfc78ce(0x1b9e)]){_0xff5135['errors']=_0x3535a5['data'][_0xfc78ce(0xbae)]||[{'message':_0x3535a5[_0xfc78ce(0x2915)](),'type':_0xfc78ce(0x212c)}];for(let _0x5a2e12=0x0;_0x5a2e12<_0x3535a5['data']['errors']['length'];_0x5a2e12+=0x1){_0xb69fe1[_0xfc78ce(0x1bd0)]({'title':_0x3535a5[_0xfc78ce(0x1c52)]['errors'][_0x5a2e12][_0xfc78ce(0x2185)],'msg':_0x3535a5[_0xfc78ce(0x1c52)][_0xfc78ce(0xbae)][_0x5a2e12][_0xfc78ce(0x18ca)]});}}else _0xb69fe1[_0xfc78ce(0x1bd0)]({'title':_0x3535a5['status']?'API:'+_0x3535a5['status']+_0xfc78ce(0x21db)+_0x3535a5['statusText']:_0xfc78ce(0x212c),'msg':_0x3535a5[_0xfc78ce(0x1c52)]?JSON[_0xfc78ce(0x2317)](_0x3535a5[_0xfc78ce(0x1c52)][_0xfc78ce(0x18ca)]):_0x3535a5[_0xfc78ce(0x2915)]()});});}function _0x29d116(){const _0x5b6bb9=_0x308393;_0x4d18b6[_0x5b6bb9(0x2e8)][_0x5b6bb9(0x8df)]({'id':_0xff5135[_0x5b6bb9(0x2e8)]['id'],'nolimit':!![]})[_0x5b6bb9(0x15e7)][_0x5b6bb9(0x64a)](function(_0x561aeb){const _0x5566d6=_0x5b6bb9;_0xff5135[_0x5566d6(0x2435)]=_0x561aeb||{'count':0x0,'rows':[]};});}function _0xb1ceb9(){const _0x40cac=_0x308393;_0x4d18b6[_0x40cac(0x2e8)]['getFaxAccounts']({'id':_0xff5135[_0x40cac(0x2e8)]['id'],'nolimit':!![]})['$promise'][_0x40cac(0x64a)](function(_0x58e7ff){const _0x442d16=_0x40cac;_0xff5135[_0x442d16(0x198c)]=_0x58e7ff||{'count':0x0,'rows':[]};});}function _0x526f2a(){const _0x2cffdd=_0x308393;_0x4d18b6[_0x2cffdd(0x2e8)]['getSmsAccounts']({'id':_0xff5135['user']['id'],'nolimit':!![]})['$promise'][_0x2cffdd(0x64a)](function(_0x280150){_0xff5135['smsAccounts']=_0x280150||{'count':0x0,'rows':[]};});}function _0x88ece7(){const _0x52e1e6=_0x308393;_0x4d18b6[_0x52e1e6(0x2e8)][_0x52e1e6(0x33b)]({'id':_0xff5135[_0x52e1e6(0x2e8)]['id'],'nolimit':!![]})['$promise']['then'](function(_0x3df59b){const _0x42b5ad=_0x52e1e6;_0xff5135[_0x42b5ad(0x21fb)]=_0x3df59b||{'count':0x0,'rows':[]};});}function _0x5e1b2b(){const _0x27bca1=_0x308393,_0x309edc=_0x585ca6[_0x27bca1(0x122)]();if(_0xff5135['queryMessage'])return _0xff5135[_0x27bca1(0x254e)][_0x27bca1(0x24f9)]=_0xff5135[_0x27bca1(0x14c1)]['rows'][_0x27bca1(0x1b9e)],_0x4d18b6[_0xff5135[_0x27bca1(0x1222)]['channel']+'Interaction']['getMessages'](_0xff5135[_0x27bca1(0x254e)])[_0x27bca1(0x15e7)][_0x27bca1(0x64a)](function(_0x4a4366){const _0x20dabb=_0x27bca1;for(let _0x12eed2=0x0;_0x12eed2<_0x4a4366[_0x20dabb(0x28b8)][_0x20dabb(0x1b9e)];_0x12eed2+=0x1){_0xff5135[_0x20dabb(0x14c1)][_0x20dabb(0x28b8)][_0x20dabb(0x1954)](_0x4a4366[_0x20dabb(0x28b8)][_0x12eed2]),!_0xff5135[_0x20dabb(0x73a)][_0x20dabb(0x1140)]&&_0x4a4366[_0x20dabb(0x28b8)][_0x12eed2]['direction']==='in'&&!_0x4a4366[_0x20dabb(0x28b8)][_0x12eed2][_0x20dabb(0x12a6)]&&(_0x4d18b6[_0xff5135['tab'][_0x20dabb(0x2156)]+_0x20dabb(0x149d)][_0x20dabb(0x1964)]({'id':_0x4a4366['rows'][_0x12eed2]['id'],'UserId':_0xff5135[_0x20dabb(0x2e8)]['id']}),_0xff5135[_0x20dabb(0x544)][_0x20dabb(0x1954)](_0x4a4366['rows'][_0x12eed2]['id']));}return _0x309edc['resolve'](_0x4a4366);})[_0x27bca1(0x20cd)](function(_0x309dec){const _0x1826d3=_0x27bca1;return _0x309edc[_0x1826d3(0x19d2)](_0x309dec);});return _0x309edc[_0x27bca1(0x19d2)]();}function _0x3ee4ff(_0x3146c6,_0x5f54dc){const _0x55ac90=_0x308393;_0xff5135[_0x55ac90(0x1222)]=_0x3146c6,_0xff5135[_0x55ac90(0x1222)][_0x55ac90(0x282a)]=!![],_0xff5135['tab'][_0x55ac90(0x298e)]=0x0,_0xff5135[_0x55ac90(0x28d6)]=_0x5f54dc||{},_0xff5135[_0x55ac90(0x1222)]&&_0xff5135[_0x55ac90(0x1222)][_0x55ac90(0x2156)]&&_0xff5135[_0x55ac90(0x1222)][_0x55ac90(0x73a)]&&(_0xff5135[_0x55ac90(0x73a)]=_0xff5135[_0x55ac90(0x1222)][_0x55ac90(0x73a)],_0x4d18b6[_0xff5135[_0x55ac90(0x1222)]['channel']+_0x55ac90(0xb28)][_0x55ac90(0x896)]({'id':_0xff5135[_0x55ac90(0x1222)][_0x55ac90(0x73a)]['id'],'includeAll':!![]})[_0x55ac90(0x15e7)][_0x55ac90(0x64a)](function(_0x12c573){const _0xbf402a=_0x55ac90;return _0x12c573&&(_0xff5135[_0xbf402a(0x73a)]=_0x12c573,_0xff5135[_0xbf402a(0x1222)][_0xbf402a(0x73a)]=_0x12c573),_0xff5135['tab'][_0xbf402a(0x282a)]=_0xff5135['interaction'][_0xbf402a(0x1140)],_0xff5135['queryMessage']={'id':_0xff5135['interaction']['id'],'includeAll':!![]},_0xff5135[_0xbf402a(0x1222)][_0xbf402a(0x2156)]===_0xbf402a(0xc71)?(_0xff5135[_0xbf402a(0x254e)][_0xbf402a(0x768)]=_0xbf402a(0x2778),_0xff5135['queryMessage'][_0xbf402a(0x24f9)]=0x0,_0xff5135[_0xbf402a(0x254e)][_0xbf402a(0x25bb)]=0x3):(_0xff5135[_0xbf402a(0x254e)][_0xbf402a(0x768)]='id',_0xff5135[_0xbf402a(0x254e)][_0xbf402a(0x13d8)]=!![]),_0x4d18b6[_0xff5135[_0xbf402a(0x1222)]['channel']+_0xbf402a(0xb28)]['getMessages'](_0xff5135[_0xbf402a(0x254e)])['$promise'];})[_0x55ac90(0x64a)](function(_0x10afcd){const _0x6f3220=_0x55ac90;return _0xff5135[_0x6f3220(0x14c1)]=_0x10afcd||{'count':0x0,'rows':[]},_0x4d18b6[_0xff5135[_0x6f3220(0x1222)][_0x6f3220(0x2156)]===_0x6f3220(0xf52)?_0x6f3220(0x26c3):_0xff5135['tab'][_0x6f3220(0x2156)]+_0x6f3220(0x141)]['get']({'id':_0xff5135[_0x6f3220(0x73a)][_0xff5135['tab'][_0x6f3220(0x2156)]===_0x6f3220(0xf52)?_0x6f3220(0xd93):_0x28c606()[_0x6f3220(0xd56)](_0xff5135[_0x6f3220(0x1222)][_0x6f3220(0x2156)])+_0x6f3220(0x89b)]})[_0x6f3220(0x15e7)];})[_0x55ac90(0x64a)](function(_0x2a4ce1){const _0x2e2c9a=_0x55ac90;_0xff5135['account']=_0x2a4ce1,_0xff5135[_0x2e2c9a(0x1222)]['title']=_0xff5135['account'][_0x2e2c9a(0x2125)]||_0xff5135[_0x2e2c9a(0x3e3)]['name'];if(_0xff5135['interaction'][_0x2e2c9a(0x1c49)])return _0x4d18b6[_0x2e2c9a(0xdf5)][_0x2e2c9a(0x896)]({'id':_0xff5135[_0x2e2c9a(0x73a)][_0x2e2c9a(0x1c49)]})['$promise'];})[_0x55ac90(0x64a)](function(_0x82d78d){const _0x5818a8=_0x55ac90;return _0x82d78d&&(_0xff5135[_0x5818a8(0x13f7)]=_0x82d78d),_0xff5135[_0x5818a8(0x2821)]=!![],_0xff5135[_0x5818a8(0x13f7)]?(_0x3d7f6e(_0xff5135[_0x5818a8(0x13f7)]),_0xff5135['tab'][_0x5818a8(0x2021)]+='\x20-\x20'+_0xff5135[_0x5818a8(0x13f7)][_0x5818a8(0x2518)]):_0xff5135[_0x5818a8(0x1222)][_0x5818a8(0x2021)]+=_0x5818a8(0x21db)+_0x3af5dd['instant'](_0xff5135[_0x5818a8(0x1222)][_0x5818a8(0x2156)][_0x5818a8(0xa3c)]()+_0x5818a8(0x1d98)),_0x4d18b6[_0x5818a8(0x2e8)][_0x5818a8(0x896)]({'fields':_0x5818a8(0x25e7),'nolimit':!![]})[_0x5818a8(0x15e7)];})[_0x55ac90(0x64a)](function(_0x119d05){const _0x5d18df=_0x55ac90;_0xff5135['users']=_0x119d05||{'count':0x0,'rows':[]},_0xff5135[_0x5d18df(0x1aa5)]=_0x28c606()['mapValues'](_0x28c606()[_0x5d18df(0x161e)](_0xff5135[_0x5d18df(0xff5)]['rows'],'id'),_0x5d18df(0x15c));})[_0x55ac90(0x64a)](function(){const _0x408b95=_0x55ac90;if(_0xff5135[_0x408b95(0x1222)][_0x408b95(0x2156)]&&_0xff5135[_0x408b95(0x73a)])return _0x4d18b6['user'][_0x408b95(0x25df)+_0x28c606()[_0x408b95(0x1766)](_0xff5135[_0x408b95(0x1222)]['channel'])+_0x408b95(0x23f9)]({'id':_0xff5135[_0x408b95(0x2e8)]['id'],'ids':[_0xff5135[_0x408b95(0x73a)]['id']]});})[_0x55ac90(0x64a)](function(){const _0x46b29c=_0x55ac90;return _0x4d18b6[_0x46b29c(0x1b8e)][_0x46b29c(0x896)]({'sort':_0x46b29c(0x2494),'nolimit':!![]})['$promise'];})['then'](function(_0x11ba2b){_0xff5135['subStatuses']=_0x11ba2b||{'count':0x0,'rows':[]};})[_0x55ac90(0x64a)](function(){const _0x1ea99b=_0x55ac90;return _0xff5135[_0x1ea99b(0x8df)]();})[_0x55ac90(0x64a)](function(){const _0x3a097d=_0x55ac90;return _0xff5135[_0x3a097d(0x1010)]();})[_0x55ac90(0x64a)](function(){const _0x527a9e=_0x55ac90;return _0xff5135[_0x527a9e(0x790)]();})[_0x55ac90(0x64a)](function(){const _0x12ae22=_0x55ac90;return _0xff5135[_0x12ae22(0x33b)]();})[_0x55ac90(0x64a)](function(){const _0x1c4860=_0x55ac90;return _0xff5135[_0x1c4860(0x1247)]();})[_0x55ac90(0x64a)](function(){const _0x4cf008=_0x55ac90;return _0xff5135[_0x4cf008(0x21a3)]();})[_0x55ac90(0x64a)](function(){const _0x1cef7c=_0x55ac90;return _0xff5135[_0x1cef7c(0x7aa)]();})[_0x55ac90(0x20cd)](function(){const _0x40d5d8=_0x55ac90;_0xff5135[_0x40d5d8(0x2821)]=!![];})['finally'](function(){const _0x4c20dd=_0x55ac90;_0xb1694f(),_0x5e02c9(),_0x1a8d7a['on'](_0xff5135['tab'][_0x4c20dd(0x2156)]+_0x4c20dd(0x2389),_0xff5135[_0x4c20dd(0x28da)]),_0x1a8d7a['on'](_0xff5135['tab']['channel']+_0x4c20dd(0x1093),_0xff5135[_0x4c20dd(0x28da)]),_0x1a8d7a['on'](_0xff5135[_0x4c20dd(0x1222)][_0x4c20dd(0x2156)]+_0x4c20dd(0x1364),_0xff5135[_0x4c20dd(0xeb2)]),_0x1a8d7a['on'](_0xff5135[_0x4c20dd(0x1222)][_0x4c20dd(0x2156)]+_0x4c20dd(0xd3a),_0xff5135['onInteractionSave']),_0x1a8d7a['on'](_0x4c20dd(0x80c)+_0xff5135[_0x4c20dd(0x1222)][_0x4c20dd(0x2156)]+_0x4c20dd(0xe74),_0xff5135[_0x4c20dd(0x2743)]),_0x1a8d7a['on'](_0x4c20dd(0x80c)+_0xff5135[_0x4c20dd(0x1222)][_0x4c20dd(0x2156)]+_0x4c20dd(0x1f9d),_0xff5135[_0x4c20dd(0x17b3)]),_0xff5135[_0x4c20dd(0x1222)][_0x4c20dd(0x690)]=_0xff5135[_0x4c20dd(0x1222)][_0x4c20dd(0x690)]?_0xff5135[_0x4c20dd(0x1222)][_0x4c20dd(0x690)]:'',_0xff5135[_0x4c20dd(0x1df)]=!![],_0xff5135[_0x4c20dd(0x1222)][_0x4c20dd(0x2156)]===_0x4c20dd(0xc71)&&(_0xff5135[_0x4c20dd(0x2581)]=_0xb297d[_0x4c20dd(0x16fb)](_0xff5135[_0x4c20dd(0x1222)][_0x4c20dd(0x73a)]['id']),_0xff5135[_0x4c20dd(0x1222)][_0x4c20dd(0x25c4)]&&(_0xff5135[_0x4c20dd(0x1222)]['interaction'][_0x4c20dd(0x1140)]?(_0xb297d['removeByInteraction'](_0xff5135['tab'][_0x4c20dd(0x73a)]['id']),_0xff5135[_0x4c20dd(0x2581)]=null):_0x44af65()));}));}function _0x5728ae(_0x2afc76){const _0x3bbfe3=_0x308393;if(_0x2afc76['FaxAccountId'])return _0x28c606()[_0x3bbfe3(0x68a)](_0x28c606()[_0x3bbfe3(0x1de5)](_0xff5135['faxAccounts']?_0xff5135[_0x3bbfe3(0x198c)][_0x3bbfe3(0x28b8)]:[],'id'),_0x2afc76[_0x3bbfe3(0x1da3)]);else{if(_0x2afc76['OpenchannelAccountId'])return _0x28c606()['includes'](_0x28c606()['map'](_0xff5135['openchannelAccounts']?_0xff5135[_0x3bbfe3(0xda9)]['rows']:[],'id'),_0x2afc76['OpenchannelAccountId']);else{if(_0x2afc76['SmsAccountId'])return _0x28c606()[_0x3bbfe3(0x68a)](_0x28c606()[_0x3bbfe3(0x1de5)](_0xff5135[_0x3bbfe3(0x205)]?_0xff5135[_0x3bbfe3(0x205)][_0x3bbfe3(0x28b8)]:[],'id'),_0x2afc76['SmsAccountId']);else{if(_0x2afc76[_0x3bbfe3(0x222)])return _0x28c606()[_0x3bbfe3(0x68a)](_0x28c606()['map'](_0xff5135['whatsappAccounts']?_0xff5135[_0x3bbfe3(0x21fb)][_0x3bbfe3(0x28b8)]:[],'id'),_0x2afc76['WhatsappAccountId']);else{if(_0x2afc76[_0x3bbfe3(0xa4c)])return _0x28c606()[_0x3bbfe3(0x68a)](_0x28c606()['map'](_0xff5135[_0x3bbfe3(0x2435)]?_0xff5135[_0x3bbfe3(0x2435)][_0x3bbfe3(0x28b8)]:[],'id'),_0x2afc76['MailAccountId']);else{if(_0x2afc76[_0x3bbfe3(0xd93)])return _0x28c606()[_0x3bbfe3(0x68a)](_0x28c606()[_0x3bbfe3(0x1de5)](_0xff5135[_0x3bbfe3(0x1aac)]?_0xff5135[_0x3bbfe3(0x1aac)][_0x3bbfe3(0x28b8)]:[],'id'),_0x2afc76[_0x3bbfe3(0xd93)]);else{if(_0x2afc76['amaflags'])return!![];}}}}}}return![];}function _0x25b2a7(_0x2a4f3b){const _0x544ed5=_0x308393;let _0x49c093;_0xff5135['interaction']['id']==_0x2a4f3b[_0x28c606()[_0x544ed5(0x1766)](_0xff5135[_0x544ed5(0x1222)][_0x544ed5(0x2156)])+_0x544ed5(0x294b)]&&(_0xff5135[_0x544ed5(0x73a)][_0x544ed5(0x25d3)]&&(_0x49c093=_0x28c606()[_0x544ed5(0x27bc)](_0xff5135[_0x544ed5(0x73a)][_0x544ed5(0x25d3)],{'id':_0x2a4f3b['UserId']})),!_0x49c093&&_0xff5135[_0x544ed5(0x73a)][_0x544ed5(0x25d3)][_0x544ed5(0x1954)]({'id':_0x2a4f3b[_0x544ed5(0x246c)]}));}function _0x274794(_0x324443){const _0xe574e3=_0x308393;_0xff5135['interaction']['id']==_0x324443[_0x28c606()[_0xe574e3(0x1766)](_0xff5135[_0xe574e3(0x1222)]['channel'])+_0xe574e3(0x294b)]&&(_0xff5135[_0xe574e3(0x73a)][_0xe574e3(0x25d3)]&&_0x28c606()['remove'](_0xff5135[_0xe574e3(0x73a)][_0xe574e3(0x25d3)],{'id':_0x324443[_0xe574e3(0x246c)]}));}function _0x1b07cd(_0x1d6d51){const _0x2fb9fd=_0x308393;if(_0x1d6d51){try{_0x28c606()[_0x2fb9fd(0x408)]['interpolate']=/{{([\s\S]+?)}}/g;const _0x4a5279=_0x28c606()[_0x2fb9fd(0x2788)](_0x1d6d51[_0x2fb9fd(0x1096)]),_0x4b9a3a={'user':_0xff5135[_0x2fb9fd(0x2e8)],'account':_0xff5135[_0x2fb9fd(0x3e3)],'interaction':_0xff5135['interaction'],'contact':_0xff5135[_0x2fb9fd(0x73a)]&&_0xff5135[_0x2fb9fd(0x73a)]['Contact']?_0xff5135[_0x2fb9fd(0x73a)][_0x2fb9fd(0x1c38)]:{}};_0xff5135[_0x2fb9fd(0x1222)]['areaText']+='\x20'+_0x4a5279(_0x4b9a3a),_0xff5135[_0x2fb9fd(0x74c)][_0x2fb9fd(0x2473)](_0xff5135[_0x2fb9fd(0x1222)][_0x2fb9fd(0x690)]);}catch(_0x535645){_0xff5135['tab'][_0x2fb9fd(0x690)]+='\x20'+_0x1d6d51[_0x2fb9fd(0x1096)],_0xff5135['ctrlMethods']['setText'](_0xff5135[_0x2fb9fd(0x1222)][_0x2fb9fd(0x690)]);}_0xff5135['selectedItem']=null,_0xff5135['changeDisplayCannedAnswerInputValue']();}}function _0x4673ce(_0x43d44e){const _0x32d742=_0x308393,_0x3e5535=_0x585ca6['defer']();let _0x206dec=[];const _0x27f082={},_0x2362c0=_0xff5135[_0x32d742(0x1222)][_0x32d742(0x2156)]==='chat'?_0x32d742(0xd93):_0x28c606()[_0x32d742(0xd56)](_0xff5135[_0x32d742(0x1222)][_0x32d742(0x2156)])+_0x32d742(0x89b);return _0x27f082[_0x32d742(0xcec)]=_0x43d44e,_0x27f082[_0x2362c0]=_0xff5135[_0x32d742(0x3e3)]['id'],_0x4d18b6['cannedAnswer'][_0x32d742(0x896)](_0x27f082)[_0x32d742(0x15e7)][_0x32d742(0x64a)](function(_0x37be46){const _0x1cf5c1=_0x32d742;return _0x206dec=_0x28c606()[_0x1cf5c1(0x2808)](_0x206dec,_0x37be46[_0x1cf5c1(0x28b8)]),_0x4d18b6[_0x1cf5c1(0x14c4)]['get']({'filter':_0x43d44e})[_0x1cf5c1(0x15e7)];})[_0x32d742(0x64a)](function(_0x42c661){const _0xcea1ec=_0x32d742;_0x206dec=_0x28c606()[_0xcea1ec(0x2808)](_0x206dec,_0x28c606()[_0xcea1ec(0xcec)](_0x42c661[_0xcea1ec(0x28b8)],function(_0x28a9a6){const _0x2d1618=_0xcea1ec;return!_0x28a9a6[_0x2d1618(0xa4c)]&&!_0x28a9a6['FaxAccountId']&&!_0x28a9a6['SmsAccountId']&&!_0x28a9a6['WhatsappAccountId']&&!_0x28a9a6[_0x2d1618(0x2859)]&&!_0x28a9a6[_0x2d1618(0xd93)];})),_0x3e5535[_0xcea1ec(0x1268)](_0x206dec);})[_0x32d742(0x20cd)](function(_0x27fa00){const _0x4f8ded=_0x32d742;_0x3e5535[_0x4f8ded(0x19d2)](_0x27fa00);}),_0x3e5535['promise'];}function _0x1ecb52(_0x38b6ca,_0x38eb45){const _0x5fe6a1=_0x308393;try{_0xff5135[_0x5fe6a1(0x1222)]&&!_0xff5135[_0x5fe6a1(0x1222)][_0x5fe6a1(0x2873)]&&_0x3b5f8d[_0x5fe6a1(0x4e3)][_0x5fe6a1(0x4e3)]['$parent']['vm']['addContactTab'](_0x38eb45||_0xff5135[_0x5fe6a1(0x13f7)]);}catch(_0x4eb163){_0xb69fe1[_0x5fe6a1(0x1bd0)]({'title':_0x5fe6a1(0x216c),'msg':_0x5fe6a1(0x1bb8)});}}function _0x70ec7d(_0x14ae13,_0x5e106f){const _0x81f6fe=_0x308393;try{if(_0x5e106f['MailAccountId'])return _0x3b5f8d[_0x81f6fe(0x4e3)][_0x81f6fe(0x4e3)][_0x81f6fe(0x4e3)]['vm'][_0x81f6fe(0x1540)]('mail',_0x5e106f);else{if(_0x5e106f[_0x81f6fe(0xd93)])return _0x3b5f8d['$parent'][_0x81f6fe(0x4e3)]['$parent']['vm']['addInteractionTab'](_0x81f6fe(0xf52),_0x5e106f);else{if(_0x5e106f[_0x81f6fe(0x1be5)])return _0x3b5f8d[_0x81f6fe(0x4e3)][_0x81f6fe(0x4e3)]['$parent']['vm'][_0x81f6fe(0x1540)]('sms',_0x5e106f);else{if(_0x5e106f['WhatsappAccountId'])return _0x3b5f8d['$parent'][_0x81f6fe(0x4e3)]['$parent']['vm'][_0x81f6fe(0x1540)](_0x81f6fe(0x1a29),_0x5e106f);else{if(_0x5e106f[_0x81f6fe(0x2859)])return _0x3b5f8d[_0x81f6fe(0x4e3)][_0x81f6fe(0x4e3)][_0x81f6fe(0x4e3)]['vm']['addInteractionTab'](_0x81f6fe(0x28ad),_0x5e106f);else{if(_0x5e106f['FaxAccountId'])return _0x3b5f8d[_0x81f6fe(0x4e3)][_0x81f6fe(0x4e3)][_0x81f6fe(0x4e3)]['vm']['addInteractionTab'](_0x81f6fe(0x1d37),_0x5e106f);}}}}}}catch(_0x89ec3e){_0xb69fe1[_0x81f6fe(0x1bd0)]({'title':_0x81f6fe(0x236b),'msg':'Customer\x20Journey\x20can\x27t\x20open\x20the\x20interaction'});}}function _0x39a52b(){const _0x8ea36f=_0x308393;_0x469e29['show']({'controller':_0x8ea36f(0x264f),'controllerAs':'vm','templateUrl':_0x56f561,'parent':angular[_0x8ea36f(0x1f81)](_0x53c5e7[_0x8ea36f(0xb49)]),'clickOutsideToClose':!![],'skipHide':Boolean(_0xff5135[_0x8ea36f(0x1222)][_0x8ea36f(0x2873)]),'resolve':{'tags':[_0x8ea36f(0x107c),function(_0x3746a6){const _0xf4f570=_0x8ea36f;return _0x3746a6[_0xf4f570(0x1268)](_0xf4f570(0x1b39),{'sort':_0xf4f570(0x2494),'nolimit':!![],'fields':_0xf4f570(0xc18)});}]},'locals':{'channel':_0xff5135[_0x8ea36f(0x1222)][_0x8ea36f(0x2156)],'interaction':_0xff5135[_0x8ea36f(0x1222)][_0x8ea36f(0x73a)]}});}function _0x2023c5(){const _0xfc73bf=_0x308393,_0xaecb4f=_0xff5135[_0xfc73bf(0x2e8)][_0xfc73bf(0x11a4)]||_0xff5135[_0xfc73bf(0x2e8)][_0xfc73bf(0x2248)]||_0xff5135['user'][_0xfc73bf(0x292)]||_0xff5135['user']['openchannelPause']||_0xff5135[_0xfc73bf(0x2e8)]['faxPause'],_0x184647=!_0xff5135['tab'][_0xfc73bf(0x73a)][_0xfc73bf(0x141)][_0xfc73bf(0xe19)];_0x469e29[_0xfc73bf(0xa60)]({'controller':_0xfc73bf(0x25d1),'controllerAs':'vm','templateUrl':_0x17dbb5,'parent':angular[_0xfc73bf(0x1f81)](_0x53c5e7['body']),'clickOutsideToClose':_0x184647,'escapeToClose':_0x184647,'onRemoving':function(){const _0x2f99ce=_0xfc73bf;_0xff5135['user']&&_0xff5135[_0x2f99ce(0x73a)][_0x2f99ce(0x141)][_0x2f99ce(0xe19)]&&!_0xaecb4f&&_0x4d18b6[_0x2f99ce(0x2e8)][_0x2f99ce(0x818)]({'id':_0xff5135[_0x2f99ce(0x2e8)]['id']})[_0x2f99ce(0x15e7)][_0x2f99ce(0x20cd)](function(_0x4286ad){console['error'](_0x4286ad);});},'locals':{'user':_0xff5135[_0xfc73bf(0x2e8)],'channel':_0xff5135[_0xfc73bf(0x1222)][_0xfc73bf(0x2156)],'interaction':_0xff5135[_0xfc73bf(0x1222)][_0xfc73bf(0x73a)]}})[_0xfc73bf(0x64a)](function(_0xf808d7){const _0x39caa6=_0xfc73bf;_0xff5135['tab']['saved']=Boolean(_0xf808d7),_0xf808d7&&_0x3b5f8d[_0x39caa6(0x4e3)]['$parent'][_0x39caa6(0x4e3)]['vm'][_0x39caa6(0x2930)](_0xff5135[_0x39caa6(0x1222)]);});}function _0x2036d9(_0xb258bb,_0x25f62c){const _0x6e3e3a=_0x308393;_0xff5135['tab'][_0x6e3e3a(0x18ca)]=_0x25f62c,_0x469e29[_0x6e3e3a(0xa60)]({'controller':_0x6e3e3a(0x2439),'controllerAs':'vm','templateUrl':_0x11c654,'parent':angular[_0x6e3e3a(0x1f81)](_0x53c5e7[_0x6e3e3a(0xb49)]),'clickOutsideToClose':![],'locals':{'account':_0xff5135[_0x6e3e3a(0x3e3)],'message':_0xff5135[_0x6e3e3a(0x1222)][_0x6e3e3a(0x18ca)],'type':_0xb258bb,'interaction':_0xff5135['interaction']},'fullscreen':!![],'skipHide':Boolean(_0xff5135[_0x6e3e3a(0x1222)][_0x6e3e3a(0x2873)])})['then'](function(_0x5661b5){const _0x208b7f=_0x6e3e3a;if(_0x5661b5){if(_0x5661b5[_0x208b7f(0x18ca)]&&_0x5661b5[_0x208b7f(0x18ca)]['savedAsDraft'])_0xff5135[_0x208b7f(0x2581)]?_0xb297d[_0x208b7f(0x2603)]({'id':_0xff5135[_0x208b7f(0x2581)]['id'],'channel':'mail','account':_0xff5135[_0x208b7f(0x3e3)],'message':_0x5661b5['message'],'contact':_0xff5135[_0x208b7f(0x13f7)],'interaction':_0xff5135[_0x208b7f(0x73a)]}):_0xb297d['add']({'channel':_0x208b7f(0xc71),'account':_0xff5135[_0x208b7f(0x3e3)],'message':_0x5661b5['message'],'contact':_0xff5135[_0x208b7f(0x13f7)],'interaction':_0xff5135['interaction']}),_0xff5135['draft']=_0xb297d[_0x208b7f(0x16fb)](_0xff5135[_0x208b7f(0x1222)][_0x208b7f(0x73a)]['id']);else{const _0xa347c5=_0x5661b5;_0xa347c5&&_0x3f5c0d(_0xa347c5),_0xa347c5[_0x208b7f(0xb28)]&&_0xff5135[_0x208b7f(0x73a)]&&_0xff5135[_0x208b7f(0x73a)]['id']&&(_0xa347c5['Interaction']['id']=_0xff5135[_0x208b7f(0x73a)]['id'],_0x4d18b6['mailInteraction'][_0x208b7f(0x2603)](_0xa347c5['Interaction'])[_0x208b7f(0x15e7)][_0x208b7f(0x64a)](function(_0x4c7c80){const _0x2fd6ba=_0x208b7f;if(_0x4c7c80&&_0x4c7c80[_0x2fd6ba(0x1140)])_0xff5135[_0x2fd6ba(0x1222)][_0x2fd6ba(0x282a)]=!![],_0xff5135[_0x2fd6ba(0x73a)]['closed']=!![],_0x2023c5();else _0xa347c5['Interaction'][_0x2fd6ba(0x2045)]!==null&&(_0xff5135[_0x2fd6ba(0x1222)][_0x2fd6ba(0x282a)]=!![],_0xff5135[_0x2fd6ba(0x1222)][_0x2fd6ba(0x73a)][_0x2fd6ba(0x2045)]=_0xa347c5[_0x2fd6ba(0xb28)]['substatus'],_0x3b5f8d[_0x2fd6ba(0x4e3)][_0x2fd6ba(0x4e3)][_0x2fd6ba(0x4e3)]['vm']['closeTab'](_0xff5135['tab']));})[_0x208b7f(0x20cd)](function(_0x50ba07){const _0x4a3488=_0x208b7f;console[_0x4a3488(0x1bd0)](_0x50ba07);}));}}})[_0x6e3e3a(0x988)](function(){const _0x6610f4=_0x6e3e3a;_0xff5135[_0x6610f4(0x1222)][_0x6610f4(0x25c4)]=![];});}function _0x2d55d7(_0x5195a4,_0x22bdc3){const _0x38a07c=_0x308393;if(_0x22bdc3[_0x38a07c(0x16f2)]){const _0x42aff6=_0x28c606()[_0x38a07c(0x27bc)](_0xff5135[_0x38a07c(0x14c1)][_0x38a07c(0x28b8)],{'messageId':_0x22bdc3[_0x38a07c(0x16f2)]});if(_0x42aff6)_0x2036d9(_0x5195a4,_0x42aff6);else return _0x4d18b6['mailMessage'][_0x38a07c(0x896)]({'messageId':_0x22bdc3[_0x38a07c(0x16f2)]})['$promise'][_0x38a07c(0x64a)](function(_0x2650b2){const _0x381384=_0x38a07c;_0x2036d9(_0x5195a4,_0x2650b2&&_0x2650b2[_0x381384(0xb90)]?_0x2650b2[_0x381384(0x28b8)][0x0]:undefined);})['catch'](function(_0x15a9a4){const _0x3088c7=_0x38a07c;console[_0x3088c7(0x1bd0)](_0x15a9a4),_0x2036d9(_0x5195a4,undefined);});}else _0x2036d9(_0x5195a4,_0x22bdc3);}function _0x4e8f92(_0x46a365){const _0x32fe7c=_0x308393,_0x204bd1={'to':[]};_0x204bd1['to']['push'](_0xff5135['contact'][_0x32fe7c(0x1d37)]),_0x469e29[_0x32fe7c(0xa60)]({'controller':_0x32fe7c(0x1884),'controllerAs':'vm','templateUrl':_0x8cef6b,'parent':angular[_0x32fe7c(0x1f81)](_0x53c5e7[_0x32fe7c(0xb49)]),'clickOutsideToClose':![],'locals':{'account':_0xff5135[_0x32fe7c(0x3e3)],'message':_0x204bd1,'type':_0x46a365},'fullscreen':!![]})[_0x32fe7c(0x64a)](function(_0x421361){const _0x471ea6=_0x32fe7c;return _0x4d18b6[_0x471ea6(0x549)][_0x471ea6(0xc10)]({'id':_0xff5135[_0x471ea6(0x3e3)]['id']},_0x421361)['$promise'][_0x471ea6(0x64a)](function(_0x47ecaf){const _0x13f098=_0x471ea6;_0xb69fe1[_0x13f098(0x1339)]({'title':_0x13f098(0x2040),'msg':_0x13f098(0x285b)}),_0x3b5f8d['$parent']['vm']['addInteractionTab'](_0x13f098(0x1d37),_0x47ecaf);})['catch'](function(_0x5cd085){const _0xddbd70=_0x471ea6;if(_0x5cd085[_0xddbd70(0x1c52)]&&_0x5cd085['data'][_0xddbd70(0xbae)]&&_0x5cd085[_0xddbd70(0x1c52)][_0xddbd70(0xbae)][_0xddbd70(0x1b9e)])for(let _0x49670c=0x0;_0x49670c<_0x5cd085['data'][_0xddbd70(0xbae)][_0xddbd70(0x1b9e)];_0x49670c++){_0xb69fe1['error']({'title':_0x5cd085[_0xddbd70(0x1c52)][_0xddbd70(0xbae)][_0x49670c]['type'],'msg':_0x5cd085['data'][_0xddbd70(0xbae)][_0x49670c][_0xddbd70(0x18ca)]});}else _0xb69fe1['error']({'title':_0xddbd70(0x7b8),'msg':_0x5cd085[_0xddbd70(0x1c52)]?JSON[_0xddbd70(0x2317)](_0x5cd085[_0xddbd70(0x1c52)]):_0x5cd085[_0xddbd70(0x18ca)]||_0x5cd085[_0xddbd70(0x2915)]()});});});}function _0x558a73(_0x5a006e,_0x1f7111){const _0x4384a1=_0x308393;_0x469e29[_0x4384a1(0xa60)]({'controller':'ComposeSmsInteractionDialogController','controllerAs':'vm','templateUrl':_0x8f2b61,'parent':angular[_0x4384a1(0x1f81)](_0x53c5e7['body']),'clickOutsideToClose':![],'locals':{'account':_0xff5135[_0x4384a1(0x3e3)],'message':_0x1f7111,'type':_0x5a006e},'fullscreen':!![],'skipHide':Boolean(_0xff5135[_0x4384a1(0x1222)][_0x4384a1(0x2873)])})[_0x4384a1(0x64a)](function(_0x316afe){_0x316afe&&_0x3f5c0d(_0x316afe);});}function _0x4fb3dd(_0x12af73,_0xbd44b5){const _0x5a622=_0x308393;_0x469e29[_0x5a622(0xa60)]({'controller':_0x5a622(0x5f2),'controllerAs':'vm','templateUrl':_0x104fe3,'parent':angular['element'](_0x53c5e7[_0x5a622(0xb49)]),'clickOutsideToClose':![],'locals':{'account':_0xff5135['account'],'message':_0xbd44b5,'type':_0x12af73},'fullscreen':!![],'skipHide':Boolean(_0xff5135[_0x5a622(0x1222)][_0x5a622(0x2873)])})[_0x5a622(0x64a)](function(_0x3c89ba){_0x3c89ba&&_0x3f5c0d(_0x3c89ba);});}function _0x176b62(){const _0x220bc0=_0x308393;if(_0xff5135[_0x220bc0(0x73a)]){const _0x252be0=_0x28c606()[_0x220bc0(0x1d2c)](_0xff5135['messages'][_0x220bc0(0x28b8)],function(_0x541fe5){const _0xa02d99=_0x220bc0;return _0x541fe5[_0xa02d99(0x484)]==='in';});_0x252be0?_0x469e29[_0x220bc0(0xa60)]({'controller':_0x220bc0(0x59f),'controllerAs':'vm','templateUrl':_0x2139bb,'parent':angular[_0x220bc0(0x1f81)](_0x53c5e7[_0x220bc0(0xb49)]),'clickOutsideToClose':![],'locals':{'account':_0xff5135[_0x220bc0(0x3e3)],'interaction':_0xff5135[_0x220bc0(0x73a)],'message':_0x252be0,'channel':_0xff5135[_0x220bc0(0x1222)][_0x220bc0(0x2156)]}})['then'](function(_0x16e8d5){const _0x4d57ff=_0x220bc0;_0xff5135[_0x4d57ff(0x1222)][_0x4d57ff(0x282a)]=Boolean(_0x16e8d5),_0x16e8d5&&_0x3b5f8d[_0x4d57ff(0x4e3)][_0x4d57ff(0x4e3)][_0x4d57ff(0x4e3)]['vm'][_0x4d57ff(0x2930)](_0xff5135[_0x4d57ff(0x1222)]);}):_0xb69fe1[_0x220bc0(0x1bd0)]({'title':'Invalid\x20transfer','msg':'Message\x20not\x20found!'});}}function _0x1596a7(_0x14c605){const _0x3e0efc=_0x308393,_0x4529b7={},_0x1931a2=_0xff5135[_0x3e0efc(0x1222)][_0x3e0efc(0x2156)]===_0x3e0efc(0xf52)?_0x3e0efc(0xd93):_0x28c606()['capitalize'](_0xff5135[_0x3e0efc(0x1222)]['channel'])+_0x3e0efc(0x89b);return _0x4529b7[_0x1931a2]=_0xff5135[_0x3e0efc(0x73a)][_0x1931a2]['toString'](),_0x4529b7[_0x28c606()['capitalize'](_0xff5135[_0x3e0efc(0x1222)][_0x3e0efc(0x2156)])+_0x3e0efc(0x294b)]=_0xff5135[_0x3e0efc(0x73a)]['id'],(_0xff5135[_0x3e0efc(0x1222)][_0x3e0efc(0x2156)]===_0x3e0efc(0x10aa)||_0xff5135[_0x3e0efc(0x1222)][_0x3e0efc(0x2156)]===_0x3e0efc(0x1a29))&&(_0x4529b7[_0x3e0efc(0x267a)]=_0xff5135[_0x3e0efc(0x73a)]['phone']),_0x14c605&&(_0x4529b7[_0x3e0efc(0x246c)]=_0xff5135[_0x3e0efc(0x2e8)]['id'],_0x4529b7[_0x3e0efc(0x1c49)]=_0xff5135[_0x3e0efc(0x73a)][_0x3e0efc(0x1c49)],_0x4529b7[_0x3e0efc(0xb49)]=_0x14c605),_0x4529b7;}function _0x366398(_0x2c87f3){const _0x24115e=_0x308393;if(_0x2c87f3['size']>_0x44cfdf)return _0xb69fe1['error']({'title':'File\x20too\x20big','msg':_0x24115e(0xbfa)+_0x12d6d6+'MB'}),![];return!![];}function _0x543d21(_0x1931de,_0x3fd21b){const _0xe4f895=_0x308393,_0x19dcae=JSON[_0xe4f895(0x27f1)](_0x3fd21b);let _0x31c17a=_0x19dcae[_0xe4f895(0x2494)];_0xff5135[_0xe4f895(0x1222)][_0xe4f895(0x2156)]===_0xe4f895(0xf52)&&(_0x31c17a=_0xe4f895(0x7da)+(_0xff5135[_0xe4f895(0x3e3)]['remote']?_0xff5135['account'][_0xe4f895(0xc77)]:_0x339c17[_0xe4f895(0x48e)]()+'://'+_0x339c17[_0xe4f895(0x1e5d)]())+_0xe4f895(0x1b4d)+_0xff5135[_0xe4f895(0x73a)]['id']+'/attachment_download?attachId='+_0x19dcae['id']+'&token='+_0xff5135[_0xe4f895(0x3e3)][_0xe4f895(0x1e13)]+_0xe4f895(0x115)+_0x19dcae[_0xe4f895(0x2494)]+_0xe4f895(0x538)),_0x3f5c0d({'body':_0x31c17a,'AttachmentId':_0x19dcae['id']});}function _0xd3a546(){const _0x1f0b78=_0x308393;_0xff5135['ngFlow'][_0x1f0b78(0x891)]['opts'][_0x1f0b78(0x1de3)]={'X-Requested-With':_0x1f0b78(0x15fc),'Authorization':_0x1f0b78(0x28cb)+_0x3b226b[_0x1f0b78(0x896)]('motion.token')},_0xff5135[_0x1f0b78(0x1eec)][_0x1f0b78(0x891)][_0x1f0b78(0x1c5)]();}function _0x1caf6b(_0x75ba6a,_0x377c8b){const _0x2b0d2e=_0x308393;if(_0x75ba6a&&_0x75ba6a['keyCode']===0xd&&_0x75ba6a[_0x2b0d2e(0x1337)])return;if(_0x75ba6a&&_0x75ba6a[_0x2b0d2e(0x11b7)]!==0xd)return;if(_0x377c8b[_0x2b0d2e(0xd66)]()==='')return;_0x3f5c0d(_0x1596a7(_0x377c8b[_0x2b0d2e(0x1353)](/\n$/,'')));}function _0x5e02c9(){const _0x396cd1=_0x308393;_0xff5135[_0x396cd1(0x1222)][_0x396cd1(0x2156)]!==_0x396cd1(0xc71)&&_0x52702f(function(){const _0xa5b73e=_0x396cd1,_0x357458=angular[_0xa5b73e(0x1f81)](_0x53c5e7[_0xa5b73e(0x27bc)]('md-content[name*=\x27interaction-content-'+_0xff5135[_0xa5b73e(0x1222)]['id']+'\x27]'));_0x357458&&_0x357458[0x0]&&(_0x357458[0x0][_0xa5b73e(0x12c8)]=_0x357458[0x0][_0xa5b73e(0xba2)]);},0x0);}function _0x3ae34a(_0x2514e8){const _0xb3fc91=_0x308393,_0x2d324b=_0xb3fc91(0xb15);if(_0x2514e8){if(_0x2514e8['direction']==='in')return _0x2514e8['Contact']?_0x2514e8['Contact'][_0xb3fc91(0x2518)]||_0xb3fc91(0x284b):_0x2d324b;else{if(_0x2514e8[_0xb3fc91(0x246c)])return _0xff5135[_0xb3fc91(0x1aa5)]?_0xff5135[_0xb3fc91(0x1aa5)][_0x2514e8[_0xb3fc91(0x246c)]]:_0x2d324b;}return _0xb3fc91(0x1711)||0x0;}}function _0x1f9093(_0x5dc10b,_0xa81d45){const _0x1e48f2=_0x308393;_0xff5135[_0x1e48f2(0x1222)][_0x1e48f2(0x2156)]&&_0x5dc10b['id']&&_0x4d18b6[_0xff5135[_0x1e48f2(0x1222)][_0x1e48f2(0x2156)]+_0x1e48f2(0x149d)][_0x1e48f2(0x19b3)]({'id':_0x5dc10b['id'],'attachments':_0xa81d45})['$promise'][_0x1e48f2(0x64a)](function(_0x36091e){const _0x1f874b=_0x1e48f2,_0x33ff3f=[_0x36091e[_0x1f874b(0x5a9)]];let _0x97ce5a=_0x1f874b(0x19b3);const _0x37df41=new Blob(_0x33ff3f,{'type':_0x36091e[_0x1f874b(0x2185)]});_0x97ce5a=_0xff5135[_0x1f874b(0x1222)]['channel']+'-message'+_0x5dc10b['id']+_0x1f874b(0x4e9);const _0x453d7f=window[_0x1f874b(0x123f)][_0x1f874b(0x2978)]('a');_0x453d7f[_0x1f874b(0x1280)]('href',URL[_0x1f874b(0x206)](_0x37df41)),_0x453d7f['setAttribute'](_0x1f874b(0x19b3),_0x97ce5a),document[_0x1f874b(0xb49)][_0x1f874b(0x2661)](_0x453d7f),_0x453d7f[_0x1f874b(0x2668)]();})[_0x1e48f2(0x20cd)](function(_0x4d73ac){const _0xa01dbc=_0x1e48f2;if(_0x4d73ac[_0xa01dbc(0x1c52)]&&_0x4d73ac[_0xa01dbc(0x1c52)]['errors']&&_0x4d73ac[_0xa01dbc(0x1c52)]['errors'][_0xa01dbc(0x1b9e)])for(let _0x509e1c=0x0;_0x509e1c<_0x4d73ac['data'][_0xa01dbc(0xbae)][_0xa01dbc(0x1b9e)];_0x509e1c+=0x1){_0xb69fe1[_0xa01dbc(0x1bd0)]({'title':_0x4d73ac[_0xa01dbc(0x1c52)]['errors'][_0x509e1c][_0xa01dbc(0x2185)],'msg':_0x4d73ac[_0xa01dbc(0x1c52)][_0xa01dbc(0xbae)][_0x509e1c]['message']});}else _0xb69fe1[_0xa01dbc(0x1bd0)]({'title':_0x4d73ac['status']?_0xa01dbc(0x575)+_0x4d73ac['status']+_0xa01dbc(0x21db)+_0x4d73ac[_0xa01dbc(0x2115)]:_0xa01dbc(0xfbe),'msg':_0x4d73ac[_0xa01dbc(0x1c52)]?JSON[_0xa01dbc(0x2317)](_0x4d73ac['data'][_0xa01dbc(0x18ca)]):_0x4d73ac[_0xa01dbc(0x2915)]()});});}function _0x979991(_0x79f800,_0x3d8597){const _0x56f01b=_0x308393;_0xff5135[_0x56f01b(0x1222)]['channel']&&_0x79f800['id']&&_0x4d18b6[_0xff5135[_0x56f01b(0x1222)][_0x56f01b(0x2156)]+_0x56f01b(0xb28)][_0x56f01b(0x19b3)]({'id':_0x79f800['id'],'attachments':_0x3d8597})['$promise'][_0x56f01b(0x64a)](function(_0x194171){const _0x7de174=_0x56f01b,_0x1267fc=[_0x194171[_0x7de174(0x5a9)]],_0x4b4afb=_0xff5135[_0x7de174(0x1222)][_0x7de174(0x2156)]+'-interaction'+_0x79f800['id']+'.zip',_0xfd737d=new Blob(_0x1267fc,{'type':_0x194171['type']}),_0x2eb34a=window[_0x7de174(0x123f)]['createElement']('a');_0x2eb34a[_0x7de174(0x1280)](_0x7de174(0x25d0),URL[_0x7de174(0x206)](_0xfd737d)),_0x2eb34a[_0x7de174(0x1280)](_0x7de174(0x19b3),_0x4b4afb),document[_0x7de174(0xb49)][_0x7de174(0x2661)](_0x2eb34a),_0x2eb34a['click']();})['catch'](function(_0x19071d){const _0xc1fe0c=_0x56f01b;if(_0x19071d['data']&&_0x19071d[_0xc1fe0c(0x1c52)][_0xc1fe0c(0xbae)]&&_0x19071d[_0xc1fe0c(0x1c52)]['errors'][_0xc1fe0c(0x1b9e)])for(let _0x37cc7b=0x0;_0x37cc7b<_0x19071d['data'][_0xc1fe0c(0xbae)][_0xc1fe0c(0x1b9e)];_0x37cc7b+=0x1){_0xb69fe1[_0xc1fe0c(0x1bd0)]({'title':_0x19071d[_0xc1fe0c(0x1c52)][_0xc1fe0c(0xbae)][_0x37cc7b][_0xc1fe0c(0x2185)],'msg':_0x19071d[_0xc1fe0c(0x1c52)][_0xc1fe0c(0xbae)][_0x37cc7b][_0xc1fe0c(0x18ca)]});}else _0xb69fe1['error']({'title':_0x19071d['status']?_0xc1fe0c(0x575)+_0x19071d[_0xc1fe0c(0x10b3)]+_0xc1fe0c(0x21db)+_0x19071d[_0xc1fe0c(0x2115)]:_0xc1fe0c(0x1853),'msg':_0x19071d['data']?JSON[_0xc1fe0c(0x2317)](_0x19071d[_0xc1fe0c(0x1c52)]['message']):_0x19071d[_0xc1fe0c(0x2915)]()});});}function _0x3f5c0d(_0x4796d9){const _0x5076ea=_0x308393;if(_0x4796d9)return _0x4796d9[_0xff5135[_0x5076ea(0x1222)][_0x5076ea(0x2156)]===_0x5076ea(0xf52)?_0x5076ea(0xd93):_0x28c606()[_0x5076ea(0xd56)](_0xff5135[_0x5076ea(0x1222)][_0x5076ea(0x2156)])+_0x5076ea(0x89b)]=_0xff5135['interaction'][_0xff5135[_0x5076ea(0x1222)][_0x5076ea(0x2156)]==='chat'?_0x5076ea(0xd93):_0x28c606()['capitalize'](_0xff5135['tab'][_0x5076ea(0x2156)])+_0x5076ea(0x89b)],_0x4796d9[_0x28c606()[_0x5076ea(0xd56)](_0xff5135[_0x5076ea(0x1222)][_0x5076ea(0x2156)])+_0x5076ea(0x294b)]=_0xff5135[_0x5076ea(0x73a)]['id'],_0x4796d9[_0x5076ea(0x246c)]=_0xff5135[_0x5076ea(0x2e8)]['id'],_0x4796d9['ContactId']=_0xff5135[_0x5076ea(0x73a)][_0x5076ea(0x1c49)],_0x4796d9[_0x5076ea(0x484)]=_0x5076ea(0x1d6d),_0x4796d9['secret']=Boolean(_0xff5135['tab'][_0x5076ea(0x2873)]||_0x4796d9[_0x5076ea(0xbf2)]),_0x4d18b6[_0xff5135[_0x5076ea(0x1222)][_0x5076ea(0x2156)]+_0x5076ea(0x149d)][_0x5076ea(0x2479)](_0x4796d9)[_0x5076ea(0x15e7)][_0x5076ea(0x64a)](function(_0x3d1aff){const _0x2b08cd=_0x5076ea;if(_0x3d1aff&&_0x3d1aff['id']){if(!_0x28c606()[_0x2b08cd(0x940)](_0x4796d9['attachments'])){const _0x438e54=[];for(let _0x44c81b=0x0;_0x44c81b<_0x4796d9[_0x2b08cd(0xf8c)]['length'];_0x44c81b++){const _0x1f2c32=_0x4796d9[_0x2b08cd(0xf8c)][_0x44c81b];_0x1f2c32[_0x2b08cd(0x1bc5)]?_0x438e54['push'](_0x4d18b6[_0x2b08cd(0xd4d)][_0x2b08cd(0x24b2)]({'id':_0x1f2c32['id']},{'name':_0x1f2c32['name'],'basename':_0x1f2c32['basename'],'type':_0x1f2c32[_0x2b08cd(0x2185)],'MailMessageId':_0x3d1aff['id']})[_0x2b08cd(0x15e7)]):_0x438e54[_0x2b08cd(0x1954)](_0x4d18b6['attachment'][_0x2b08cd(0x2603)]({'id':_0x1f2c32['id']},{'MailMessageId':_0x3d1aff['id']})['$promise']);}return _0x585ca6[_0x2b08cd(0x2705)](_0x438e54);}}})[_0x5076ea(0x20cd)](function(_0x284881){const _0x940ef9=_0x5076ea;_0xb69fe1[_0x940ef9(0x1bd0)]({'title':_0x284881[_0x940ef9(0x10b3)]?_0x940ef9(0x575)+_0x284881[_0x940ef9(0x10b3)]+_0x940ef9(0x21db)+_0x284881[_0x940ef9(0x2115)]:_0x940ef9(0x10e6),'msg':_0x284881['data']?JSON['stringify'](_0x284881[_0x940ef9(0x1c52)]):_0x284881['toString']()});})[_0x5076ea(0x988)](function(){const _0xabd811=_0x5076ea;_0xff5135['tab'][_0xabd811(0x2156)]===_0xabd811(0xc71)&&(_0x4796d9[_0xabd811(0x25c4)]&&(_0xb297d[_0xabd811(0x280c)](_0xff5135[_0xabd811(0x73a)]['id']),_0xff5135[_0xabd811(0x2581)]=null)),_0xff5135[_0xabd811(0x1222)][_0xabd811(0x690)]='',_0x5e02c9();});}function _0x9c5636(_0x1f6515){const _0x3a3ffb=_0x308393;_0xff5135[_0x3a3ffb(0x1222)][_0x3a3ffb(0x2156)]&&_0xff5135[_0x3a3ffb(0x73a)]&&_0xff5135[_0x3a3ffb(0x73a)]['id']&&_0x4d18b6[_0xff5135[_0x3a3ffb(0x1222)][_0x3a3ffb(0x2156)]+_0x3a3ffb(0xb28)]['update']({'id':_0xff5135['interaction']['id'],'substatus':_0x1f6515})[_0x3a3ffb(0x15e7)][_0x3a3ffb(0x20cd)](function(_0x2fc97e){const _0x56c12b=_0x3a3ffb;console[_0x56c12b(0x1bd0)](_0x2fc97e);});}function _0x39abb8(){const _0x3a8813=_0x308393;if(_0xff5135[_0x3a8813(0x1222)][_0x3a8813(0x2156)]&&_0xff5135[_0x3a8813(0x73a)]&&_0xff5135[_0x3a8813(0x73a)]['id']){if(_0xff5135[_0x3a8813(0x544)][_0x3a8813(0x1b9e)])for(let _0x3ede38=0x0;_0x3ede38<_0xff5135[_0x3a8813(0x544)][_0x3a8813(0x1b9e)];_0x3ede38+=0x1){_0x4d18b6[_0xff5135[_0x3a8813(0x1222)][_0x3a8813(0x2156)]+_0x3a8813(0x149d)]['update']({'id':_0xff5135[_0x3a8813(0x544)][_0x3ede38],'read':![],'UserId':null});}else for(let _0x314f14=0x0;_0x314f14<_0xff5135[_0x3a8813(0x14c1)][_0x3a8813(0x28b8)]['length'];_0x314f14+=0x1){if(_0xff5135['messages'][_0x3a8813(0x28b8)][_0x314f14][_0x3a8813(0x484)]==='in'){_0xff5135['messages'][_0x3a8813(0x28b8)][_0x314f14][_0x3a8813(0x246c)]===_0xff5135[_0x3a8813(0x2e8)]['id']?_0x4d18b6[_0xff5135[_0x3a8813(0x1222)][_0x3a8813(0x2156)]+_0x3a8813(0x149d)][_0x3a8813(0x2603)]({'id':_0xff5135[_0x3a8813(0x14c1)][_0x3a8813(0x28b8)][_0x314f14]['id'],'read':![],'UserId':null}):_0xb69fe1[_0x3a8813(0x1bd0)]({'title':'You\x20can\x27t\x20mark\x20as\x20unread','msg':_0x3a8813(0x1169)});break;}}}_0xff5135[_0x3a8813(0x1222)][_0x3a8813(0x282a)]=!![],_0x3b5f8d[_0x3a8813(0x4e3)]['$parent'][_0x3a8813(0x4e3)]['vm'][_0x3a8813(0x2930)](_0xff5135['tab']);}function _0x4bc947(_0x2ec03b){const _0x3c77b4=_0x308393;if(_0x2ec03b&&_0xff5135[_0x3c77b4(0x73a)]['id']!==_0x2ec03b['id'])return;_0x2ec03b[_0x3c77b4(0x1140)]&&(_0xff5135[_0x3c77b4(0x1222)][_0x3c77b4(0x282a)]=!![]),_0x28c606()['merge'](_0xff5135[_0x3c77b4(0x73a)],_0x2ec03b);}function _0x4159ec(_0x5b4047){const _0x3e00fe=_0x308393;if(_0x5b4047&&_0xff5135[_0x3e00fe(0x73a)]['id']!=_0x5b4047[_0x28c606()[_0x3e00fe(0xd56)](_0xff5135[_0x3e00fe(0x1222)]['channel'])+'InteractionId'])return;let _0x1aa154=![];_0xff5135[_0x3e00fe(0x14c1)]?_0x1aa154=_0x28c606()[_0x3e00fe(0x27bc)](_0xff5135[_0x3e00fe(0x14c1)][_0x3e00fe(0x28b8)],{'id':_0x5b4047['id']}):_0xff5135[_0x3e00fe(0x14c1)]={'rows':[],'count':0x0},_0x1aa154?_0x28c606()['merge'](_0x1aa154,_0x5b4047):(_0xff5135[_0x3e00fe(0x1222)][_0x3e00fe(0x2156)]==='mail'?_0xff5135[_0x3e00fe(0x14c1)][_0x3e00fe(0x28b8)][_0x3e00fe(0x1891)](_0x5b4047):_0xff5135[_0x3e00fe(0x14c1)]['rows'][_0x3e00fe(0x1954)](_0x5b4047),_0x5e02c9());}function _0x3bed69(_0x3cd4d7){const _0x43664e=_0x308393;switch(_0x3cd4d7){case _0x43664e(0xf52):return _0x43664e(0x704);case'mail':return _0x43664e(0x1829);case _0x43664e(0x10aa):return _0x43664e(0x7e8);case _0x43664e(0x1a29):return _0x43664e(0x2819);case _0x43664e(0x28ad):return'icon-google-earth';case _0x43664e(0x1d37):return'icon-deskphone';default:return _0x43664e(0x704);}}function _0x525ec7(_0x41fd12){const _0x14a9a2=_0x308393;switch(_0x41fd12){case'chat':return _0x14a9a2(0x147d);case _0x14a9a2(0xc71):return _0x14a9a2(0x1d78);case _0x14a9a2(0x10aa):return _0x14a9a2(0xadf);case _0x14a9a2(0x28ad):return'amber-A200';case _0x14a9a2(0x1d37):return'blue-grey-A200';case _0x14a9a2(0x1a29):return _0x14a9a2(0xa75);default:return'blue-A700';}}function _0x1315f2(_0x56c621){const _0x289413=_0x308393;let _0x130e3c='';if(_0x56c621[_0x289413(0x1da3)])_0x130e3c=_0x289413(0x1d37);else{if(_0x56c621['OpenchannelAccountId'])_0x130e3c=_0x289413(0x28ad);else{if(_0x56c621[_0x289413(0x1be5)])_0x130e3c=_0x289413(0x10aa);else{if(_0x56c621[_0x289413(0x222)])_0x130e3c=_0x289413(0x1a29);else{if(_0x56c621[_0x289413(0xa4c)])_0x130e3c='mail';else{if(_0x56c621[_0x289413(0xd93)])_0x130e3c=_0x289413(0xf52);else _0x56c621[_0x289413(0x987)]&&(_0x130e3c='voice');}}}}}return _0x525ec7(_0x130e3c);}function _0x450589(_0x1aa29e){const _0x493555=_0x308393;if(_0x1aa29e[_0x493555(0xbf2)]&&_0xff5135[_0x493555(0x2e8)]['id']!=_0x1aa29e[_0x493555(0x246c)])return'in';switch(_0xff5135[_0x493555(0x28d6)][_0x493555(0x1edb)]){case _0x493555(0x118f):if(_0x1aa29e[_0x493555(0x484)]=='in')return _0x1aa29e['direction'];return _0x493555(0x84e);case _0x493555(0x15d7):if(_0x1aa29e[_0x493555(0x484)]=='in')return'in-right-aligned';return _0x1aa29e[_0x493555(0x484)];default:return _0x1aa29e[_0x493555(0x484)];}}function _0x43d257(){const _0x4d346e=_0x308393;_0xff5135[_0x4d346e(0x1866)]=!_0xff5135[_0x4d346e(0x1866)];}function _0x48ff6e(_0x2cd002){const _0x4126a7=_0x308393;return _0x4d18b6[_0x4126a7(0xd4d)][_0x4126a7(0x896)]({'MailMessageId':_0x2cd002['id']})['$promise'][_0x4126a7(0x64a)](function(_0x86aff6){const _0x37dc4f=_0x4126a7;_0x86aff6&&_0x86aff6[_0x37dc4f(0x28b8)]&&(_0x2cd002[_0x37dc4f(0xf8c)]=_0x86aff6[_0x37dc4f(0x28b8)]);})[_0x4126a7(0x20cd)](function(_0x3df654){const _0x21f382=_0x4126a7;_0xb69fe1[_0x21f382(0x1bd0)]({'title':_0x3df654['status']?_0x21f382(0x575)+_0x3df654[_0x21f382(0x10b3)]+_0x21f382(0x21db)+_0x3df654[_0x21f382(0x2115)]:_0x21f382(0x882),'msg':_0x3df654[_0x21f382(0x1c52)]?JSON[_0x21f382(0x2317)](_0x3df654['data']):_0x3df654[_0x21f382(0x2915)]()});});}function _0x453a0d(_0x5baca2){const _0x201ede=_0x308393;return _0x4d18b6[_0x201ede(0xd4d)][_0x201ede(0x19b3)]({'id':_0x5baca2['id']})[_0x201ede(0x15e7)][_0x201ede(0x64a)](function(_0x1888b7){const _0x331ae1=_0x201ede;if(_0x1888b7){const _0x556c89=new Blob([_0x1888b7[_0x331ae1(0x5a9)]],{'type':_0x1888b7[_0x331ae1(0x2185)]}),_0x2c439e=document[_0x331ae1(0x2978)]('a'),_0x37714b=window[_0x331ae1(0xea4)][_0x331ae1(0x206)](_0x556c89);_0x2c439e[_0x331ae1(0x25d0)]=_0x37714b,_0x2c439e['target']=_0x331ae1(0x11fa),_0x2c439e[_0x331ae1(0x19b3)]=_0x5baca2[_0x331ae1(0x2494)],document[_0x331ae1(0xb49)][_0x331ae1(0x2661)](_0x2c439e),_0x2c439e['click'](),setTimeout(function(){const _0x3a036e=_0x331ae1;document[_0x3a036e(0xb49)][_0x3a036e(0x2249)](_0x2c439e),window[_0x3a036e(0xea4)][_0x3a036e(0x490)](_0x37714b);},0x64);}})[_0x201ede(0x20cd)](function(_0x542850){const _0xb2cb31=_0x201ede;_0xb69fe1['error']({'title':_0x542850[_0xb2cb31(0x10b3)]?_0xb2cb31(0x575)+_0x542850[_0xb2cb31(0x10b3)]+'\x20-\x20'+_0x542850[_0xb2cb31(0x2115)]:'ATTACHMENTS:GET','msg':_0x542850[_0xb2cb31(0x1c52)]?JSON['stringify'](_0x542850[_0xb2cb31(0x1c52)]):_0x542850[_0xb2cb31(0x2915)]()});});}function _0xb1694f(){const _0x53015c=_0x308393;if(!_0xff5135[_0x53015c(0x1222)][_0x53015c(0x2873)]&&!_0xff5135['interaction'][_0x53015c(0x1140)])for(let _0x5c9ce6=0x0;_0x5c9ce6<_0xff5135[_0x53015c(0x14c1)][_0x53015c(0x28b8)][_0x53015c(0x1b9e)];_0x5c9ce6+=0x1){_0xff5135['messages']['rows'][_0x5c9ce6][_0x53015c(0x484)]==='in'&&!_0xff5135[_0x53015c(0x14c1)][_0x53015c(0x28b8)][_0x5c9ce6]['read']&&(_0x4d18b6[_0xff5135[_0x53015c(0x1222)][_0x53015c(0x2156)]+_0x53015c(0x149d)][_0x53015c(0x1964)]({'id':_0xff5135[_0x53015c(0x14c1)][_0x53015c(0x28b8)][_0x5c9ce6]['id'],'UserId':_0xff5135[_0x53015c(0x2e8)]['id']}),_0xff5135[_0x53015c(0x544)][_0x53015c(0x1954)](_0xff5135[_0x53015c(0x14c1)][_0x53015c(0x28b8)][_0x5c9ce6]['id']));}}function _0x3ee512(_0x1f8915){const _0xe0bbc0=_0x308393;if(!_0x1f8915['disposition'])return'('+_0x3af5dd['instant']('DASHBOARDS.NO_DISPOSITION_SET')+')';const _0x329464=_0x28c606()['compact']([_0x1f8915[_0xe0bbc0(0x168b)],_0x1f8915[_0xe0bbc0(0x22df)],_0x1f8915[_0xe0bbc0(0x350)]]);return'('+_0x329464[_0xe0bbc0(0x9a6)](_0xe0bbc0(0x21db))+')';}function _0x3ecf2a(_0x38adfc){const _0x15f6e8=_0x308393;_0x38adfc&&_0x38adfc[_0x15f6e8(0xb90)]&&_0x38adfc[_0x15f6e8(0x28b8)][_0x15f6e8(0x1b9e)]&&(_0xff5135['journey']=_0x28c606()[_0x15f6e8(0x2808)](_0xff5135['journey'],_0x38adfc['rows']),_0xff5135['journey'][_0x15f6e8(0x1397)](function(_0x5c09a1){const _0x2059ff=_0x15f6e8;_0x5c09a1[_0x2059ff(0x2239)]=_0x3ee512(_0x5c09a1);}));}function _0x3d7f6e(_0x2e8f7b){const _0x1fc90a=_0x308393;if(_0x2e8f7b&&_0x2e8f7b['id']){for(let _0x5b3f08=0x0;_0x5b3f08<_0xff5135[_0x1fc90a(0x482)][_0x1fc90a(0x1b9e)];_0x5b3f08++){_0x4d18b6[_0xff5135[_0x1fc90a(0x482)][_0x5b3f08]+_0x1fc90a(0xb28)]['get']({'ContactId':_0x2e8f7b['id'],'journey':!![],'includeAll':!![]})[_0x1fc90a(0x15e7)][_0x1fc90a(0x64a)](_0x3ecf2a);}_0x4d18b6['voiceCallReport']['get']({'ContactId':_0x2e8f7b['id'],'includeAll':!![]})['$promise'][_0x1fc90a(0x64a)](_0x3ecf2a);}}function _0x238849(_0xbe2874){const _0x42f6f7=_0x308393;return _0xbe2874?String(_0xbe2874)[_0x42f6f7(0x1353)](/<[^>]+>/gm,''):'';}function _0x44af65(_0x52ccfd){const _0x27aef5=_0x308393;switch(_0xff5135[_0x27aef5(0x1222)][_0x27aef5(0x2156)]){case _0x27aef5(0xc71):_0xff5135[_0x27aef5(0x2581)]['content']['originalMessage']=_0x52ccfd?_0x28c606()[_0x27aef5(0x27bc)](_0xff5135[_0x27aef5(0x73a)][_0x27aef5(0x17af)],['id',_0x52ccfd]):_0xff5135['interaction'][_0x27aef5(0x17af)][_0xff5135[_0x27aef5(0x73a)][_0x27aef5(0x17af)][_0x27aef5(0x1b9e)]-0x1],_0x2036d9(_0xff5135[_0x27aef5(0x2581)]['type'],_0xff5135[_0x27aef5(0x2581)][_0x27aef5(0x12b8)]);break;case'fax':break;case _0x27aef5(0x28ad):break;case _0x27aef5(0x10aa):break;case'whatsapp':break;}}_0x3b5f8d[_0x308393(0x8c7)](_0x308393(0xf28),function(){const _0x51f760=_0x308393;_0x1a8d7a[_0x51f760(0x1951)](_0xff5135[_0x51f760(0x1222)][_0x51f760(0x2156)]+_0x51f760(0x2389)),_0x1a8d7a[_0x51f760(0x1951)](_0xff5135['tab'][_0x51f760(0x2156)]+_0x51f760(0x1093)),_0x1a8d7a[_0x51f760(0x1951)](_0xff5135[_0x51f760(0x1222)]['channel']+_0x51f760(0x1364)),_0x1a8d7a[_0x51f760(0x1951)](_0xff5135[_0x51f760(0x1222)][_0x51f760(0x2156)]+'Interaction:update'),_0x1a8d7a[_0x51f760(0x1951)]('user_has_'+_0xff5135[_0x51f760(0x1222)][_0x51f760(0x2156)]+_0x51f760(0xe74)),_0x1a8d7a[_0x51f760(0x1951)](_0x51f760(0x80c)+_0xff5135[_0x51f760(0x1222)]['channel']+_0x51f760(0x1f9d));});function _0x1f6697(_0x5a5e16){const _0x2f7cb6=_0x308393,_0x3e8bc9={'id':_0x5a5e16['id']};return _0x4d18b6['chatInteraction'][_0x2f7cb6(0x1912)](_0x3e8bc9)[_0x2f7cb6(0x15e7)]['then'](function(){const _0x3e6c1b=_0x2f7cb6;_0xb69fe1[_0x3e6c1b(0x1339)]({'title':_0x3e6c1b(0xba3),'msg':'Session\x20properly\x20created.'});})[_0x2f7cb6(0x20cd)](function(){const _0x963a32=_0x2f7cb6;_0xb69fe1['error']({'title':_0x963a32(0xba3),'msg':_0x963a32(0x1c88)});});}}function _0x256023(_0x599a95){const _0x278da6=_0x49a1e3;return{'scope':{'ngBindHtmlUnsafe':'='},'template':_0x278da6(0x75c),'link':function(_0x249b01){const _0x99cbb8=_0x278da6;function _0x3265c7(){const _0x24a105=a0_0x4127,_0x2f0063=_0x24a105(0x2022)+Math['floor'](Math[_0x24a105(0x849)]()*0x270f+0x1);return'_0x3f0a07)return _0x173d71[_0x4a6d7f(0x1bd0)]({'title':_0x4a6d7f(0x535),'msg':_0x4a6d7f(0xbfa)+_0x5b280e+'MB'}),![];return!![];}function _0x4f1877(_0x2c0423,_0x32cb5a){const _0x29fe7e=_0x3d0d16;try{_0x32cb5a=JSON[_0x29fe7e(0x27f1)](_0x32cb5a),_0x32cb5a['size']=_0x2c0423[_0x29fe7e(0x1c97)],_0x59ef83[_0x29fe7e(0x18ca)]['attachments'][_0x29fe7e(0x1954)](_0x32cb5a);}catch(_0x2d485f){console[_0x29fe7e(0x1bd0)](_0x2d485f);}}function _0x29004f(_0x1fe5d5){const _0x26ea89=_0x3d0d16;let _0x1e5c7c='';return _0x1fe5d5[_0x26ea89(0x2518)]&&_0x1fe5d5[_0x26ea89(0x2518)]!==_0x1fe5d5[_0x26ea89(0x1d37)]&&(_0x1e5c7c+=_0x1fe5d5[_0x26ea89(0x2518)]+'\x20'),_0x1fe5d5[_0x26ea89(0x21c4)]&&_0x1fe5d5[_0x26ea89(0x21c4)]!==_0x1fe5d5[_0x26ea89(0x1d37)]&&(_0x1e5c7c+=_0x1fe5d5[_0x26ea89(0x21c4)]+'\x20'),_0x1e5c7c+='<'+_0x1fe5d5[_0x26ea89(0x1d37)]+'>';}function _0x3147a0(_0x2fcc71){const _0x44fa04=_0x3d0d16,_0x998ed6=_0x2fcc71;if(_0x28c606()['isObject'](_0x2fcc71))return _0x2fcc71[_0x44fa04(0x1d37)];if(_0x3e2729(_0x998ed6))return _0x998ed6;return _0x173d71[_0x44fa04(0x1bd0)]('Fax\x20'+_0x998ed6+_0x44fa04(0x1cf4)),null;}function _0x3e2729(_0x1dc18f){const _0x348df3=_0x3d0d16,_0x4dc1fc=/[&/\\#,()$~%.'":;*?<>{}\s\\|a-zA-Z\pS!òàùè…_§°çéì-]/;return!_0x4dc1fc[_0x348df3(0xa33)](_0x1dc18f);}function _0x48606c(_0x1a4b4b){const _0x4be4df=_0x3d0d16;return _0x27e2b0&&_0x27e2b0[_0x4be4df(0x869)]?_0x504294[_0x4be4df(0xdf5)][_0x4be4df(0x896)]({'ListId':_0x27e2b0[_0x4be4df(0x869)],'nolimit':!![],'filter':_0x1a4b4b,'fields':'firstName,lastName,fax'})['$promise'][_0x4be4df(0x64a)](function(_0x55a116){return _0x55a116['rows'];}):[];}function _0x2b6858(){const _0xd5ac49=_0x3d0d16;_0x5eb0ee['draft']=_0x59ef83['message'],_0x30a683[_0xd5ac49(0x101a)]();}}const _0x9084b1=_0x354c62;;_0x49bbd9['$inject']=['$cookies',_0x49a1e3(0x1fe7),_0x49a1e3(0x212a),_0x49a1e3(0x21cf),'$translate',_0x49a1e3(0x3e3),'message',_0x49a1e3(0x2185),'api',_0x49a1e3(0x680),'$q',_0x49a1e3(0xdcf),'interaction',_0x49a1e3(0x2834)];function _0x49bbd9(_0x394709,_0x22d667,_0x32b32f,_0x5321ce,_0x20f22e,_0x5b94a7,_0x53e044,_0x4f8c41,_0x193e04,_0x5f0a4c,_0x329468,_0x5404d3,_0x32cdb2,_0x262289){const _0x4a8d93=_0x49a1e3,_0x2c8fea=this,_0x27be7f=0x19,_0x63a38b=_0x27be7f*0x400*0x400;_0x2c8fea[_0x4a8d93(0x1d3d)]=_0x5404d3[_0x4a8d93(0x808)](),_0x2c8fea[_0x4a8d93(0xbf2)]=_0x4f8c41===_0x4a8d93(0x114c)?!![]:![],_0x2c8fea[_0x4a8d93(0x2029)]=!![],_0x2c8fea['hiddenBCC']=!![],_0x2c8fea['verifySmtp']=!![],_0x2c8fea['errors']=[],_0x2c8fea[_0x4a8d93(0x155b)]=[_0x5321ce[_0x4a8d93(0x21e)]['ENTER'],_0x5321ce[_0x4a8d93(0x21e)]['COMMA'],_0x5321ce['KEY_CODE'][_0x4a8d93(0x1526)]],_0x2c8fea['searchTextChange']=_0x397637,_0x2c8fea[_0x4a8d93(0x13c6)]=_0x35825b,_0x2c8fea[_0x4a8d93(0x7b3)]=_0x4b2234,_0x28c606()['templateSettings'][_0x4a8d93(0x27b5)]=/{{([\s\S]+?)}}/g,_0x2c8fea[_0x4a8d93(0x1092)]=_0x28c606()[_0x4a8d93(0x2788)](_0x4a8d93(0xac1)),_0x2c8fea['replyTemplate']=_0x28c606()[_0x4a8d93(0x2788)](_0x4a8d93(0xefa)),_0x2c8fea[_0x4a8d93(0xfad)]=_0x28c606()[_0x4a8d93(0x2788)](_0x4a8d93(0x2af)),_0x2c8fea[_0x4a8d93(0x18ca)]={'from':_0x2c8fea[_0x4a8d93(0x1092)]({'name':_0x5b94a7[_0x4a8d93(0x2494)],'email':_0x5b94a7[_0x4a8d93(0xd47)]||_0x5b94a7[_0x4a8d93(0x1dbe)][_0x4a8d93(0x2e8)]}),'to':[],'cc':[],'bcc':[],'body':_0x402059(),'type':_0x4f8c41,'attachments':[],'showLastMessage':!![]},_0x2c8fea[_0x4a8d93(0x2581)]=null,_0x2c8fea[_0x4a8d93(0x1b6c)]={'skin':_0x4a8d93(0x2998),'startupFocus':!![],'language':'en','allowedContent':!![],'extraPlugins':_0x4a8d93(0x27b7),'toolbarGroups':[{'name':_0x4a8d93(0xb7f),'groups':[_0x4a8d93(0xb7f)]},{'name':_0x4a8d93(0xce7),'groups':['undo']},{'name':_0x4a8d93(0x94c),'groups':['colors']},{'name':'basicstyles','groups':['basicstyles']},{'name':_0x4a8d93(0x884),'groups':[_0x4a8d93(0x2764),'indent',_0x4a8d93(0x1a1b)]}],'autoGrow_onStartup':!![],'autoGrow_minHeight':_0x2c8fea[_0x4a8d93(0xbf2)]?0xa0:0x12c,'autoGrow_maxHeight':_0x22d667[_0x4a8d93(0x1a3f)]-0x190,'autocorrect_enabled':!![],'disableNativeSpellChecker':![],'enterMode':window[_0x4a8d93(0x26fe)][_0x4a8d93(0x1d24)],'font_defaultLabel':_0x5b94a7[_0x4a8d93(0x499)]?_0x5b94a7[_0x4a8d93(0x499)][_0x4a8d93(0x282c)](',')[0x0]:_0x4a8d93(0x1bf7),'fontSize_defaultLabel':_0x5b94a7[_0x4a8d93(0x26eb)]||'12','removePlugins':_0x4a8d93(0x5f4)};const _0x3509f7=[];for(let _0x429271=0x8;_0x429271<=0x48;_0x429271++){_0x3509f7[_0x4a8d93(0x1954)](_0x429271+'/'+_0x429271+'pt');}_0x2c8fea[_0x4a8d93(0x1b6c)][_0x4a8d93(0x230f)]=_0x3509f7[_0x4a8d93(0x9a6)](';'),_0x2c8fea['ngFlowOptions']={'target':_0x4a8d93(0x14bc),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x63a38b,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x2c8fea['ngFlow']={'flow':{}},_0x2c8fea['reply']=_0x38e38a,_0x2c8fea[_0x4a8d93(0xeb4)]=_0x237aa4,_0x2c8fea[_0x4a8d93(0x15f0)]=_0x1c0588,_0x2c8fea[_0x4a8d93(0xe99)]=_0x3fc8e7,_0x2c8fea['send']=_0x314242,_0x2c8fea[_0x4a8d93(0x114c)]=_0x1d32bf,_0x2c8fea[_0x4a8d93(0x1e3a)]=_0xb995f8,_0x2c8fea[_0x4a8d93(0x1c5)]=_0x5be785,_0x2c8fea[_0x4a8d93(0x1de6)]=_0x31a269,_0x2c8fea[_0x4a8d93(0x8ec)]=_0x283492,_0x2c8fea[_0x4a8d93(0x25ed)]=_0x4c297e,_0x2c8fea['getContact']=_0x3f972a,_0x2c8fea[_0x4a8d93(0xc4e)]=_0x4ccea8,_0x2c8fea[_0x4a8d93(0x2291)]=_0x199c86,_0x2c8fea[_0x4a8d93(0xbab)]=_0xfb3463,_0x2c8fea['closeDialog']=_0x5035d3,_0x2c8fea[_0x4a8d93(0x1d8a)]=_0x2ebc34;switch(_0x4f8c41){case _0x4a8d93(0x1cd7):_0x2c8fea[_0x4a8d93(0x1cd7)](![]);break;case _0x4a8d93(0x16f9):_0x2c8fea[_0x4a8d93(0x1cd7)](!![]);break;case'forward':_0x2c8fea['forward']();break;case _0x4a8d93(0x2581):_0x2c8fea[_0x4a8d93(0xe99)]();break;case _0x4a8d93(0x13c0):_0x2c8fea['newMail']();break;case'note':_0x2c8fea[_0x4a8d93(0x114c)]();break;}_0x193e04[_0x4a8d93(0x1b8e)][_0x4a8d93(0x896)]({'nolimit':!![]})[_0x4a8d93(0x15e7)][_0x4a8d93(0x64a)](function(_0x50cddc){const _0x538572=_0x4a8d93;_0x2c8fea[_0x538572(0x21f9)]=_0x50cddc||{'count':0x0,'rows':[]};})[_0x4a8d93(0x20cd)](function(_0x575492){const _0x5790bf=_0x4a8d93;console[_0x5790bf(0x1bd0)](_0x575492);});!_0x2c8fea[_0x4a8d93(0xbf2)]&&_0x43f2f0();function _0x38e38a(_0x488a88){const _0x2dbcdc=_0x4a8d93;angular[_0x2dbcdc(0x16ab)](_0x53e044)&&(_0x2c8fea[_0x2dbcdc(0x18ca)][_0x2dbcdc(0x2185)]='reply',_0x2c8fea[_0x2dbcdc(0x18ca)]['to']=_0x53e044[_0x2dbcdc(0x484)]==='in'?_0x53e044[_0x2dbcdc(0x2519)][_0x2dbcdc(0x282c)](','):_0x53e044['to'][_0x2dbcdc(0x282c)](','),_0x2c8fea[_0x2dbcdc(0x18ca)][_0x2dbcdc(0x25bc)]=_0x28c606()[_0x2dbcdc(0x1273)](_0x53e044[_0x2dbcdc(0x25bc)],_0x2dbcdc(0x927))?_0x53e044[_0x2dbcdc(0x25bc)]:'Re:\x20'+_0x53e044[_0x2dbcdc(0x25bc)],_0x2c8fea[_0x2dbcdc(0x18ca)][_0x2dbcdc(0x16f2)]=_0x53e044['messageId'],_0x2c8fea[_0x2dbcdc(0x18ca)][_0x2dbcdc(0xb49)]=_0x402059(),_0x2c8fea[_0x2dbcdc(0x18ca)]['attachments']=[],_0x488a88&&_0x53e044['cc']&&(_0x2c8fea[_0x2dbcdc(0x2029)]=![],_0x2c8fea[_0x2dbcdc(0x18ca)]['cc']=_0x53e044['cc'][_0x2dbcdc(0x282c)](',')),_0x2c8fea[_0x2dbcdc(0x18ca)]['showLastMessage']=![]);}function _0x237aa4(){const _0x248331=_0x4a8d93;angular[_0x248331(0x16ab)](_0x53e044)&&(_0x2c8fea[_0x248331(0x18ca)]['type']=_0x248331(0x13c0),_0x2c8fea[_0x248331(0x18ca)]['to']=_0x53e044['to']?_0x53e044['to'][_0x248331(0x282c)](','):[]);}function _0x3fc8e7(){const _0x18b664=_0x4a8d93;_0x2c8fea[_0x18b664(0x25c4)]=!![],angular[_0x18b664(0x16ab)](_0x53e044)&&(_0x53e044[_0x18b664(0x20ef)]=![],_0x2c8fea[_0x18b664(0x18ca)]=angular['copy'](_0x53e044),!_0x28c606()[_0x18b664(0x940)](_0x2c8fea['message']['cc'])&&(_0x2c8fea[_0x18b664(0x2029)]=![]),!_0x28c606()[_0x18b664(0x940)](_0x2c8fea['message']['bcc'])&&(_0x2c8fea[_0x18b664(0x15de)]=![]));}function _0x1c0588(){const _0x3fbc20=_0x4a8d93;if(angular[_0x3fbc20(0x16ab)](_0x53e044)){_0x2c8fea[_0x3fbc20(0x18ca)][_0x3fbc20(0x2185)]=_0x3fbc20(0x15f0),_0x2c8fea[_0x3fbc20(0x18ca)]['subject']=_0x28c606()[_0x3fbc20(0x1273)](_0x53e044[_0x3fbc20(0x25bc)],'Fwd:')?_0x53e044[_0x3fbc20(0x25bc)]:_0x3fbc20(0x43e)+_0x53e044[_0x3fbc20(0x25bc)],_0x2c8fea[_0x3fbc20(0x18ca)][_0x3fbc20(0xb49)]=_0x402059();if(_0x53e044[_0x3fbc20(0x167c)]&&_0x53e044[_0x3fbc20(0x167c)][_0x3fbc20(0x1b9e)])for(let _0x54412e=0x0;_0x54412e<_0x53e044[_0x3fbc20(0x167c)][_0x3fbc20(0x1b9e)];_0x54412e++){_0x2c8fea[_0x3fbc20(0x18ca)]['attachments'][_0x3fbc20(0x1954)](_0x53e044['Attachments'][_0x54412e]);}_0x2c8fea[_0x3fbc20(0x18ca)][_0x3fbc20(0x3b0)]=![];}}function _0x1d32bf(){const _0x44d6b8=_0x4a8d93;_0x2c8fea[_0x44d6b8(0x2185)]='note',_0x2c8fea[_0x44d6b8(0xbf2)]=!![],_0x2c8fea[_0x44d6b8(0x18ca)][_0x44d6b8(0xb49)]=_0x44d6b8(0xa50)+_0x5b94a7[_0x44d6b8(0x499)]+_0x44d6b8(0x1a3d)+_0x5b94a7['fontSize']+_0x44d6b8(0x19f6);}function _0x191355(_0x2fa578,_0x2b76fc){const _0x5cccfc=_0x4a8d93,_0xa39cd6={'from':_0x2c8fea[_0x5cccfc(0x18ca)]['from'],'to':_0x2c8fea['message']['to']['join'](','),'cc':_0x2c8fea['message']['cc'][_0x5cccfc(0x9a6)](','),'bcc':_0x2c8fea[_0x5cccfc(0x18ca)][_0x5cccfc(0xa99)][_0x5cccfc(0x9a6)](','),'subject':_0x2c8fea[_0x5cccfc(0x18ca)]['subject'],'body':_0x2c8fea[_0x5cccfc(0x18ca)][_0x5cccfc(0x3b0)]?_0x2c8fea[_0x5cccfc(0x18ca)][_0x5cccfc(0xb49)]:_0x2c8fea['message']['body']+_0x21347a(_0x2c8fea[_0x5cccfc(0x18ca)][_0x5cccfc(0x2185)]),'inReplyTo':_0x2c8fea[_0x5cccfc(0x18ca)]['inReplyTo'],'attach':_0x2c8fea[_0x5cccfc(0x18ca)][_0x5cccfc(0xf8c)][_0x5cccfc(0x1b9e)],'attachments':_0x2c8fea[_0x5cccfc(0x18ca)][_0x5cccfc(0xf8c)],'Interaction':{'lastMsgDirection':'out','lastMsgBody':_0x2c8fea[_0x5cccfc(0x18ca)][_0x5cccfc(0xb49)],'substatus':_0x2b76fc},'isDraft':_0x2c8fea[_0x5cccfc(0x25c4)]};_0xa39cd6[_0x5cccfc(0x1dd2)]=_0x5cccfc(0xebf)+_0x28c606()[_0x5cccfc(0x1353)](_0xa39cd6[_0x5cccfc(0xb49)],_0x5cccfc(0x1d49),_0x5cccfc(0xba0))+_0x5cccfc(0x25b8),_0x2fa578&&(_0xa39cd6[_0x5cccfc(0xb28)][_0x5cccfc(0x1140)]=!![]),_0x32b32f[_0x5cccfc(0x268e)](_0xa39cd6);}function _0x314242(_0x2c37b5,_0x44a49b,_0x526d85){const _0x9cd861=_0x4a8d93;if(_0x2c8fea[_0x9cd861(0x18ca)]['to']&&_0x2c8fea[_0x9cd861(0x18ca)]['body']){if(_0x2c8fea[_0x9cd861(0x18ca)]['to']['length']){if(_0x28c606()[_0x9cd861(0x940)](_0x2c8fea[_0x9cd861(0x18ca)][_0x9cd861(0x25bc)])){const _0x16ebba=_0x32b32f['confirm']({'skipHide':!![]})[_0x9cd861(0x2021)]('Warning')[_0x9cd861(0x250d)](_0x9cd861(0x7e7))[_0x9cd861(0x213e)](_0x9cd861(0x277b))[_0x9cd861(0x2283)](_0x2c37b5)['ok'](_0x9cd861(0x2464))['cancel']('Cancel');_0x32b32f[_0x9cd861(0xa60)](_0x16ebba)['then'](function(){_0x191355(_0x44a49b,_0x526d85);});}else _0x191355(_0x44a49b,_0x526d85);}else _0x5f0a4c['error'](_0x9cd861(0x265d));}}function _0xb995f8(){const _0x4338f3=_0x4a8d93;_0x2c8fea[_0x4338f3(0x18ca)][_0x4338f3(0xb49)]&&_0x32b32f[_0x4338f3(0x268e)]({'secret':!![],'body':_0x2c8fea[_0x4338f3(0x18ca)]['body'],'attach':_0x2c8fea[_0x4338f3(0x18ca)][_0x4338f3(0xf8c)][_0x4338f3(0x1b9e)],'attachments':_0x2c8fea[_0x4338f3(0x18ca)][_0x4338f3(0xf8c)]});}function _0x35825b(_0x2e24ec){const _0x351440=_0x4a8d93;if(_0x2e24ec&&_0x2e24ec[_0x351440(0x1096)]&&_0x2c8fea['ckEditorInstance'])try{const _0x179308=_0x28c606()[_0x351440(0x2788)](_0x2e24ec[_0x351440(0x1096)]),_0x330d6f={'user':_0x2c8fea[_0x351440(0x1d3d)],'account':_0x5b94a7,'interaction':_0x32cdb2,'contact':_0x32cdb2&&_0x32cdb2[_0x351440(0x1c38)]?_0x32cdb2[_0x351440(0x1c38)]:{}};_0x2c8fea[_0x351440(0x2020)]['insertHtml'](_0x179308(_0x330d6f));}catch(_0xca2107){console['error'](_0xca2107),_0x2c8fea[_0x351440(0x2020)]['insertHtml'](_0x2e24ec[_0x351440(0x1096)]);}document['getElementById'](_0x351440(0x7af))[_0x351440(0x97f)](),_0x2c8fea[_0x351440(0xcdb)]=null;}function _0x397637(_0x584644){const _0x52f203=_0x4a8d93,_0xe03f5a=_0x329468[_0x52f203(0x122)]();let _0x37f049=[];return _0x193e04[_0x52f203(0x14c4)][_0x52f203(0x896)]({'filter':_0x584644,'MailAccountId':_0x5b94a7['id']})['$promise'][_0x52f203(0x64a)](function(_0x472588){const _0x126f2d=_0x52f203;return _0x37f049=_0x28c606()['concat'](_0x37f049,_0x472588[_0x126f2d(0x28b8)]),_0x193e04[_0x126f2d(0x14c4)][_0x126f2d(0x896)]({'filter':_0x584644})[_0x126f2d(0x15e7)];})[_0x52f203(0x64a)](function(_0x1b284b){const _0x1574cc=_0x52f203;_0x37f049=_0x28c606()['concat'](_0x37f049,_0x28c606()[_0x1574cc(0xcec)](_0x1b284b[_0x1574cc(0x28b8)],function(_0x4d55d9){const _0x255e5b=_0x1574cc;return!_0x4d55d9[_0x255e5b(0xa4c)]&&!_0x4d55d9[_0x255e5b(0x1da3)]&&!_0x4d55d9[_0x255e5b(0x1be5)]&&!_0x4d55d9[_0x255e5b(0x222)]&&!_0x4d55d9['OpenchannelAccountId']&&!_0x4d55d9[_0x255e5b(0xd93)];})),_0xe03f5a[_0x1574cc(0x1268)](_0x37f049);})['catch'](function(_0x37f43b){const _0xeb55=_0x52f203;_0xe03f5a[_0xeb55(0x19d2)](_0x37f43b);}),_0xe03f5a[_0x52f203(0x1713)];}function _0x4b2234(){const _0x38a775=_0x4a8d93;try{_0x2c8fea[_0x38a775(0x2020)]=window[_0x38a775(0x26fe)]['instances'][_0x38a775(0x7af)];}catch(_0x48d480){console[_0x38a775(0x1bd0)](_0x38a775(0x27a),_0x48d480);}}function _0x43f2f0(){const _0xa5f502=_0x4a8d93;return _0x193e04[_0xa5f502(0x1b1e)]['verifySmtp']({'id':_0x5b94a7['id']})[_0xa5f502(0x15e7)][_0xa5f502(0x20cd)](function(_0x4a6f15){const _0x45d643=_0xa5f502;_0x2c8fea[_0x45d643(0x4b7)]=![],_0x2c8fea['errors'][_0x45d643(0x1954)]({'message':_0x4a6f15[_0x45d643(0x1c52)],'type':_0x4a6f15[_0x45d643(0x10b3)]}),_0x2c8fea[_0x45d643(0xbae)]['push']({'message':_0x45d643(0x1b42),'type':_0x45d643(0x16ee)});});}function _0x4c297e(_0x48fb94){const _0xcb9359=_0x4a8d93;if(_0x48fb94[_0xcb9359(0x1c97)]>_0x63a38b)return _0x5f0a4c[_0xcb9359(0x1bd0)]({'title':_0xcb9359(0x535),'msg':_0xcb9359(0xbfa)+_0x27be7f+'MB'}),![];return!![];}function _0x5be785(){const _0x2f9b3b=_0x4a8d93;_0x2c8fea[_0x2f9b3b(0x1eec)][_0x2f9b3b(0x891)]['opts'][_0x2f9b3b(0x1de3)]={'X-Requested-With':_0x2f9b3b(0x15fc),'Authorization':_0x2f9b3b(0x28cb)+_0x394709[_0x2f9b3b(0x896)](_0x2f9b3b(0x283d))},_0x2c8fea[_0x2f9b3b(0x1eec)][_0x2f9b3b(0x891)][_0x2f9b3b(0x1c5)]();}function _0x31a269(_0x28499c,_0x3c8d51){const _0x1da423=_0x4a8d93;try{_0x3c8d51=JSON[_0x1da423(0x27f1)](_0x3c8d51),_0x3c8d51[_0x1da423(0x1c97)]=_0x28499c[_0x1da423(0x1c97)],_0x2c8fea[_0x1da423(0x18ca)][_0x1da423(0xf8c)][_0x1da423(0x1954)](_0x3c8d51);}catch(_0x363b4d){console['error'](_0x363b4d);}}function _0x283492(_0x2aea5b){const _0x468e99=_0x4a8d93;_0x2c8fea[_0x468e99(0x18ca)][_0x468e99(0xf8c)]=_0x28c606()[_0x468e99(0x19d2)](_0x2c8fea[_0x468e99(0x18ca)][_0x468e99(0xf8c)],{'id':_0x2aea5b['id']}),!_0x2aea5b[_0x468e99(0x1bc5)]&&_0x193e04[_0x468e99(0xd4d)]['delete']({'id':_0x2aea5b['id']})[_0x468e99(0x15e7)][_0x468e99(0x20cd)](function(_0x3ac476){const _0x4521e0=_0x468e99;_0x5f0a4c[_0x4521e0(0x1bd0)]({'title':_0x3ac476[_0x4521e0(0x10b3)]?'API:'+_0x3ac476[_0x4521e0(0x10b3)]+_0x4521e0(0x21db)+_0x3ac476[_0x4521e0(0x2115)]:_0x4521e0(0x1bfb),'msg':_0x3ac476[_0x4521e0(0x1c52)]?JSON[_0x4521e0(0x2317)](_0x3ac476[_0x4521e0(0x1c52)][_0x4521e0(0x18ca)]):_0x3ac476[_0x4521e0(0x2915)]()});});}function _0x3f972a(_0x4e2280){const _0x192c58=_0x4a8d93;let _0x50df2a='';return _0x4e2280[_0x192c58(0x2518)]&&_0x4e2280[_0x192c58(0x2518)]!==_0x4e2280[_0x192c58(0xd47)]&&(_0x50df2a+=_0x4e2280[_0x192c58(0x2518)]+'\x20'),_0x4e2280[_0x192c58(0x21c4)]&&_0x4e2280[_0x192c58(0x21c4)]!==_0x4e2280[_0x192c58(0xd47)]&&(_0x50df2a+=_0x4e2280[_0x192c58(0x21c4)]+'\x20'),_0x50df2a+='<'+_0x4e2280[_0x192c58(0xd47)]+'>';}function _0x199c86(_0x574ab6,_0x2c2bb4){const _0x56698d=_0x4a8d93;if(_0x28c606()['isObject'](_0x574ab6))return _0x2c8fea['contact']=_0x574ab6,_0x574ab6['email'];if(_0x28c606()[_0x56698d(0x2909)](_0x574ab6)){if(_0x2fdf9b(_0x574ab6))return _0x2c8fea[_0x56698d(0x13f7)]={'email':_0x574ab6},_0x574ab6;else{const _0x210285=_0x574ab6['split'](',');for(let _0xb581e5=0x0;_0xb581e5<_0x210285['length'];_0xb581e5+=0x1){_0x2fdf9b(_0x210285[_0xb581e5])?_0x28c606()[_0x56698d(0x616)](_0x2c2bb4)&&_0x28c606()[_0x56698d(0x1b28)](_0x2c2bb4,_0x210285[_0xb581e5])<0x0&&_0x2c2bb4['push'](_0x210285[_0xb581e5]):_0x5f0a4c['error'](_0x56698d(0x63d)+_0x210285[_0xb581e5]+'\x20is\x20not\x20valid');}return _0x2c8fea[_0x56698d(0x13f7)]={'email':_0x574ab6['split'](',')[0x0]},null;}}return _0x5f0a4c[_0x56698d(0x1bd0)](_0x56698d(0x27a5)),null;}function _0x4ccea8(_0x3a3ae6){const _0x36c26b=_0x4a8d93;return _0x5b94a7&&_0x5b94a7[_0x36c26b(0x869)]?_0x193e04[_0x36c26b(0xdf5)]['get']({'ListId':_0x5b94a7[_0x36c26b(0x869)],'nolimit':!![],'filter':_0x3a3ae6,'fields':_0x36c26b(0x35f)})[_0x36c26b(0x15e7)]['then'](function(_0x48ec96){const _0x298c8e=_0x36c26b;return _0x48ec96[_0x298c8e(0x28b8)];}):[];}function _0xfb3463(){const _0x357139=_0x4a8d93;_0x2c8fea['message']['savedAsDraft']=!![],_0x2c8fea[_0x357139(0x2581)]=_0x262289['getByInteraction'](_0x32cdb2['id']);const _0x53c6ab={'account':_0x5b94a7,'message':_0x2c8fea[_0x357139(0x18ca)],'contact':_0x2c8fea[_0x357139(0x13f7)],'interaction':_0x32cdb2};if(_0x2c8fea[_0x357139(0x2581)]&&!_0x2c8fea[_0x357139(0x25c4)]){const _0x108509=_0x32b32f[_0x357139(0x856)]({'skipHide':!![]})[_0x357139(0x2021)](_0x20f22e[_0x357139(0x2292)](_0x357139(0x28c8)))[_0x357139(0x12b8)](_0x20f22e[_0x357139(0x2292)](_0x357139(0x1f6c)))[_0x357139(0x213e)]('Save\x20draft')['ok'](_0x20f22e['instant']('DASHBOARDS.OVERWRITE'))[_0x357139(0x101a)](_0x20f22e[_0x357139(0x2292)]('APP.CANCEL'));_0x32b32f[_0x357139(0xa60)](_0x108509)[_0x357139(0x64a)](function(){const _0x35e272=_0x357139;_0x32b32f[_0x35e272(0x268e)](_0x53c6ab);});}else _0x32b32f[_0x357139(0x268e)](_0x53c6ab);}function _0x5035d3(){const _0x5ddb92=_0x4a8d93;_0x32b32f[_0x5ddb92(0x101a)]();}function _0x2fdf9b(_0xa077db){const _0x5164fd=_0x4a8d93,_0xe6b430=/^(([^<>()[\]\\.,;:\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 _0xe6b430[_0x5164fd(0xa33)](_0xa077db);}function _0x103f3c(_0x4c7963){const _0x4bae5d=_0x4a8d93,_0x3f619f=/]*>([^]*)<\/body/m,_0x25cbe4=_0x4c7963[_0x4bae5d(0xe00)](_0x3f619f);if(_0x25cbe4)return _0x25cbe4[0x1];return _0x4c7963;}function _0x31c7f4(){const _0x24eeb0=_0x4a8d93;if(_0x28c606()[_0x24eeb0(0x28d7)](_0x5b94a7[_0x24eeb0(0x2788)]))return'';try{const _0x1dd858=_0x28c606()[_0x24eeb0(0x2788)](_0x5b94a7[_0x24eeb0(0x2788)]),_0x460d5f={'user':_0x2c8fea[_0x24eeb0(0x1d3d)],'account':_0x5b94a7,'interaction':_0x32cdb2,'contact':_0x32cdb2&&_0x32cdb2[_0x24eeb0(0x1c38)]?_0x32cdb2[_0x24eeb0(0x1c38)]:{}};return _0x1dd858(_0x460d5f);}catch(_0x1478a1){return console[_0x24eeb0(0x1bd0)](_0x1478a1),'';}}function _0x402059(){const _0x524350=_0x4a8d93;return'';}function _0x18e9b7(_0x40828c){const _0xd203f6=_0x1c157a,_0x1d335f=_0x40828c;if(_0x28c606()[_0xd203f6(0x2052)](_0x1d335f))return _0x40828c[_0x2d27e1[_0xd203f6(0x11bb)]];return _0x1d335f;}function _0x16ad17(_0x1d9363){const _0x1c7e54=_0x1c157a;if(_0x2d27e1&&_0x2d27e1[_0x1c7e54(0x869)]){let _0x5d4929=_0x1c7e54(0x1dbd);return _0x2d27e1[_0x1c7e54(0x11bb)]&&(_0x5d4929+=','+_0x2d27e1[_0x1c7e54(0x11bb)]),_0x31fa44[_0x1c7e54(0xdf5)][_0x1c7e54(0x896)]({'ListId':_0x2d27e1[_0x1c7e54(0x869)],'nolimit':!![],'filter':_0x1d9363,'fields':_0x5d4929})[_0x1c7e54(0x15e7)][_0x1c7e54(0x64a)](function(_0x231f86){const _0x56c682=_0x1c7e54;return _0x231f86[_0x56c682(0x28b8)];});}return[];}function _0x38b6af(){const _0x5634df=_0x1c157a;_0x2fd6d2[_0x5634df(0x101a)]();}function _0x187b54(){_0x49a3d4['secret']=!![];}function _0x2738b5(){const _0x4d195f=_0x1c157a;_0x49a3d4['message'][_0x4d195f(0xb49)]&&_0x2fd6d2[_0x4d195f(0x268e)]({'secret':!![],'body':_0x49a3d4[_0x4d195f(0x18ca)][_0x4d195f(0xb49)]});}}const _0x47fc20=_0x181d19;;_0x14c48[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),'$timeout',_0x49a1e3(0x1fe7),_0x49a1e3(0x212a),_0x49a1e3(0x21cf),'account',_0x49a1e3(0x18ca),_0x49a1e3(0x2185),_0x49a1e3(0xa19),_0x49a1e3(0x680),'$q',_0x49a1e3(0x298c),_0x49a1e3(0xdcf)];function _0x14c48(_0x31ace1,_0x3cce79,_0x157535,_0x292bbb,_0x4e10a2,_0x57b07c,_0x178ef7,_0x1dd71d,_0x41d454,_0x47e5de,_0x2a3053,_0x12069d,_0x88483a){const _0x561957=_0x49a1e3,_0x396142=this;_0x396142[_0x561957(0x1d3d)]=_0x88483a[_0x561957(0x808)](),_0x396142[_0x561957(0xbae)]=[],_0x396142[_0x561957(0x155b)]=[_0x4e10a2[_0x561957(0x21e)][_0x561957(0x22fd)],_0x4e10a2['KEY_CODE']['COMMA'],_0x4e10a2[_0x561957(0x21e)][_0x561957(0x1526)]],_0x396142[_0x561957(0x15c6)]=_0xe27f1e,_0x396142[_0x561957(0x13c6)]=_0xce1581,_0x396142[_0x561957(0x114c)]=_0x3423ab,_0x396142[_0x561957(0x1e3a)]=_0x20f0d4,_0x396142[_0x561957(0x74c)]={},_0x396142[_0x561957(0x18ca)]={'from':_0x57b07c[_0x561957(0x267a)],'to':_0x28c606()['isNil'](_0x178ef7['to'])||_0x28c606()[_0x561957(0x940)](_0x178ef7['to'])?[]:_0x178ef7['to'],'body':''},_0x396142[_0x561957(0xc10)]=_0x420df7,_0x396142[_0x561957(0x15c2)]=_0x2357b2,_0x396142['closeDialog']=_0x4f3764,_0x396142[_0x561957(0xc4e)]=_0xab6ae7,_0x396142[_0x561957(0x2291)]=_0x437092;switch(_0x1dd71d){case _0x561957(0x114c):_0x396142['note']();break;}function _0x414ae9(_0x42b96a){const _0x3d9f77=_0x561957;_0x292bbb[_0x3d9f77(0x268e)]({'to':_0x396142[_0x3d9f77(0x18ca)]['to'][_0x3d9f77(0x9a6)](','),'body':_0x42b96a});}function _0x420df7(){const _0x1607cd=_0x561957;_0x396142[_0x1607cd(0x18ca)]['to']&&_0x396142[_0x1607cd(0x18ca)]['body']&&(_0x396142[_0x1607cd(0x18ca)]['to']['length']?_0x414ae9(_0x396142[_0x1607cd(0x18ca)][_0x1607cd(0xb49)]):_0x47e5de[_0x1607cd(0x1bd0)](_0x1607cd(0x265d)));}function _0xce1581(_0xd883c){const _0x4cc1b5=_0x561957;if(_0xd883c){try{_0x28c606()[_0x4cc1b5(0x408)][_0x4cc1b5(0x27b5)]=/{{([\s\S]+?)}}/g;const _0x1566ad=_0x28c606()[_0x4cc1b5(0x2788)](_0xd883c['value']),_0x22a243={'user':_0x396142['currentUser'],'account':_0x57b07c};_0x396142[_0x4cc1b5(0x18ca)][_0x4cc1b5(0xb49)]+='\x20'+_0x1566ad(_0x22a243),_0x396142[_0x4cc1b5(0x74c)][_0x4cc1b5(0x2473)](_0x396142[_0x4cc1b5(0x18ca)][_0x4cc1b5(0xb49)]);}catch(_0x5baea6){_0x396142[_0x4cc1b5(0x18ca)]['body']+='\x20'+_0xd883c['value'],_0x396142[_0x4cc1b5(0x74c)][_0x4cc1b5(0x2473)](_0x396142[_0x4cc1b5(0x18ca)][_0x4cc1b5(0xb49)]);}_0x396142[_0x4cc1b5(0xcdb)]=null;}}function _0xe27f1e(_0x5493d5){const _0xbc3607=_0x561957,_0xf7cf67=_0x2a3053[_0xbc3607(0x122)]();let _0x5b9cef=[];return _0x41d454['cannedAnswer'][_0xbc3607(0x896)]({'filter':_0x5493d5,'SmsAccountId':_0x57b07c['id']})[_0xbc3607(0x15e7)]['then'](function(_0x2b8ce5){const _0x5a7fb1=_0xbc3607;return _0x5b9cef=_0x28c606()[_0x5a7fb1(0x2808)](_0x5b9cef,_0x2b8ce5[_0x5a7fb1(0x28b8)]),_0x41d454[_0x5a7fb1(0x14c4)]['get']({'filter':_0x5493d5})[_0x5a7fb1(0x15e7)];})[_0xbc3607(0x64a)](function(_0x2470f4){const _0x4edb3e=_0xbc3607;_0x5b9cef=_0x28c606()[_0x4edb3e(0x2808)](_0x5b9cef,_0x28c606()['filter'](_0x2470f4['rows'],function(_0x335f85){const _0x4f820a=_0x4edb3e;return!_0x335f85['MailAccountId']&&!_0x335f85['FaxAccountId']&&!_0x335f85['SmsAccountId']&&!_0x335f85[_0x4f820a(0x2859)]&&!_0x335f85[_0x4f820a(0xd93)];})),_0xf7cf67[_0x4edb3e(0x1268)](_0x5b9cef);})['catch'](function(_0x13f68d){_0xf7cf67['reject'](_0x13f68d);}),_0xf7cf67[_0xbc3607(0x1713)];}function _0x2357b2(_0x39e0e1){const _0x3589c8=_0x561957;let _0x388f8b='';return _0x39e0e1[_0x3589c8(0x2518)]&&_0x39e0e1[_0x3589c8(0x2518)]!==_0x39e0e1[_0x3589c8(0x26ed)]&&(_0x388f8b+=_0x39e0e1[_0x3589c8(0x2518)]+'\x20'),_0x39e0e1['lastName']&&_0x39e0e1['lastName']!==_0x39e0e1[_0x3589c8(0x26ed)]&&(_0x388f8b+=_0x39e0e1[_0x3589c8(0x21c4)]+'\x20'),_0x388f8b+='<'+_0x39e0e1['mobile']+'>';}function _0x437092(_0x285bd4){const _0x54aede=_0x561957,_0x98e89a=_0x285bd4;if(_0x28c606()[_0x54aede(0x2052)](_0x98e89a))return _0x285bd4[_0x54aede(0x26ed)];if(_0x468201(_0x98e89a))return _0x98e89a;return _0x47e5de[_0x54aede(0x1bd0)](_0x54aede(0x501)+_0x98e89a+_0x54aede(0x1cf4)),null;}function _0xab6ae7(_0xddaefe){const _0x3b485d=_0x561957;if(_0x57b07c&&_0x57b07c[_0x3b485d(0x869)])return _0x41d454[_0x3b485d(0xdf5)][_0x3b485d(0x896)]({'ListId':_0x57b07c[_0x3b485d(0x869)],'nolimit':!![],'filter':_0xddaefe,'fields':_0x3b485d(0x137f)})[_0x3b485d(0x15e7)]['then'](function(_0x127eb3){const _0x599118=_0x3b485d;return _0x127eb3[_0x599118(0x28b8)];});return[];}function _0x4f3764(){_0x292bbb['cancel']();}function _0x468201(_0x148e55){const _0x514634=_0x561957,_0x65b834=/^(\+|\d)[0-9]{7,16}$/;return _0x65b834[_0x514634(0xa33)](_0x148e55);}function _0x3423ab(){const _0x47ebae=_0x561957;_0x396142[_0x47ebae(0xbf2)]=!![];}function _0x20f0d4(){const _0x225353=_0x561957;_0x396142[_0x225353(0x18ca)][_0x225353(0xb49)]&&_0x292bbb[_0x225353(0x268e)]({'secret':!![],'body':_0x396142[_0x225353(0x18ca)]['body']});}}const _0x168921=_0x14c48;;_0x423dc0[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x20d4),'$window',_0x49a1e3(0x212a),_0x49a1e3(0x21cf),'account',_0x49a1e3(0x18ca),'type',_0x49a1e3(0xa19),'toasty','$q',_0x49a1e3(0x298c),_0x49a1e3(0xdcf)];function _0x423dc0(_0x3a2bc8,_0x82aeda,_0x48237e,_0xa516a4,_0x2fac1d,_0x1d6b19,_0x592e61,_0x27e152,_0x1bf2e9,_0x235067,_0x45226d,_0x36f09b,_0x1a43ae){const _0x444747=_0x49a1e3,_0x5988a7=this;_0x5988a7[_0x444747(0x1d3d)]=_0x1a43ae[_0x444747(0x808)](),_0x5988a7['errors']=[],_0x5988a7[_0x444747(0x155b)]=[_0x2fac1d[_0x444747(0x21e)][_0x444747(0x22fd)],_0x2fac1d[_0x444747(0x21e)][_0x444747(0xb47)],_0x2fac1d[_0x444747(0x21e)][_0x444747(0x1526)]],_0x5988a7[_0x444747(0x15c6)]=_0x4eac90,_0x5988a7['selectedItemChange']=_0xd78827,_0x5988a7[_0x444747(0x114c)]=_0x2c47f8,_0x5988a7[_0x444747(0x1e3a)]=_0x31efec,_0x5988a7[_0x444747(0x74c)]={},_0x5988a7[_0x444747(0x18ca)]={'from':_0x1d6b19[_0x444747(0x267a)],'to':_0x28c606()[_0x444747(0x28d7)](_0x592e61['to'])||_0x28c606()[_0x444747(0x940)](_0x592e61['to'])?[]:_0x592e61['to'],'body':''},_0x5988a7[_0x444747(0xc10)]=_0x53a5f8,_0x5988a7[_0x444747(0x15c2)]=_0x5606b4,_0x5988a7[_0x444747(0x16cb)]=_0x5633af,_0x5988a7['contactSearch']=_0x40b6f9,_0x5988a7[_0x444747(0x2291)]=_0x128456;switch(_0x27e152){case _0x444747(0x114c):_0x5988a7[_0x444747(0x114c)]();break;}function _0x4a1c76(_0x542086){const _0x50b09b=_0x444747;_0xa516a4[_0x50b09b(0x268e)]({'to':_0x5988a7[_0x50b09b(0x18ca)]['to'][_0x50b09b(0x9a6)](','),'body':_0x542086});}function _0x53a5f8(){const _0xef76a2=_0x444747;_0x5988a7[_0xef76a2(0x18ca)]['to']&&_0x5988a7['message'][_0xef76a2(0xb49)]&&(_0x5988a7[_0xef76a2(0x18ca)]['to']['length']?_0x4a1c76(_0x5988a7[_0xef76a2(0x18ca)]['body']):_0x235067['error']('To\x20is\x20mandatory'));}function _0xd78827(_0x1b1759){const _0x5b6efd=_0x444747;if(_0x1b1759){try{_0x28c606()[_0x5b6efd(0x408)]['interpolate']=/{{([\s\S]+?)}}/g;const _0x364bf4=_0x28c606()[_0x5b6efd(0x2788)](_0x1b1759['value']),_0x4d2ed4={'user':_0x5988a7[_0x5b6efd(0x1d3d)],'account':_0x1d6b19};_0x5988a7[_0x5b6efd(0x18ca)][_0x5b6efd(0xb49)]+='\x20'+_0x364bf4(_0x4d2ed4),_0x5988a7[_0x5b6efd(0x74c)][_0x5b6efd(0x2473)](_0x5988a7['message'][_0x5b6efd(0xb49)]);}catch(_0x3c5e1e){_0x5988a7[_0x5b6efd(0x18ca)]['body']+='\x20'+_0x1b1759[_0x5b6efd(0x1096)],_0x5988a7[_0x5b6efd(0x74c)]['setText'](_0x5988a7[_0x5b6efd(0x18ca)][_0x5b6efd(0xb49)]);}_0x5988a7[_0x5b6efd(0xcdb)]=null;}}function _0x4eac90(_0x5948de){const _0x15ea72=_0x444747,_0x4bb934=_0x45226d[_0x15ea72(0x122)]();let _0x51b00f=[];return _0x1bf2e9['cannedAnswer'][_0x15ea72(0x896)]({'filter':_0x5948de,'WhatsappAccountId':_0x1d6b19['id']})[_0x15ea72(0x15e7)][_0x15ea72(0x64a)](function(_0x2ba566){const _0x1c96cb=_0x15ea72;return _0x51b00f=_0x28c606()[_0x1c96cb(0x2808)](_0x51b00f,_0x2ba566[_0x1c96cb(0x28b8)]),_0x1bf2e9[_0x1c96cb(0x14c4)][_0x1c96cb(0x896)]({'filter':_0x5948de})[_0x1c96cb(0x15e7)];})[_0x15ea72(0x64a)](function(_0x3c8397){const _0x56b5ec=_0x15ea72;_0x51b00f=_0x28c606()['concat'](_0x51b00f,_0x28c606()[_0x56b5ec(0xcec)](_0x3c8397[_0x56b5ec(0x28b8)],function(_0x5c5168){const _0x2c0bc4=_0x56b5ec;return!_0x5c5168['MailAccountId']&&!_0x5c5168['FaxAccountId']&&!_0x5c5168[_0x2c0bc4(0x222)]&&!_0x5c5168[_0x2c0bc4(0x2859)]&&!_0x5c5168[_0x2c0bc4(0xd93)];})),_0x4bb934[_0x56b5ec(0x1268)](_0x51b00f);})['catch'](function(_0x22cf95){const _0x2f3f29=_0x15ea72;_0x4bb934[_0x2f3f29(0x19d2)](_0x22cf95);}),_0x4bb934[_0x15ea72(0x1713)];}function _0x5606b4(_0x5c0ac0){const _0x21e64f=_0x444747;let _0xdbd7d1='';return _0x5c0ac0[_0x21e64f(0x2518)]&&_0x5c0ac0[_0x21e64f(0x2518)]!==_0x5c0ac0[_0x21e64f(0x26ed)]&&(_0xdbd7d1+=_0x5c0ac0['firstName']+'\x20'),_0x5c0ac0[_0x21e64f(0x21c4)]&&_0x5c0ac0[_0x21e64f(0x21c4)]!==_0x5c0ac0[_0x21e64f(0x26ed)]&&(_0xdbd7d1+=_0x5c0ac0[_0x21e64f(0x21c4)]+'\x20'),_0xdbd7d1+='<'+_0x5c0ac0['mobile']+'>';}function _0x128456(_0x3aa201){const _0x23f544=_0x444747,_0x363e02=_0x3aa201;if(_0x28c606()[_0x23f544(0x2052)](_0x363e02))return _0x3aa201[_0x23f544(0x26ed)];if(_0x403706(_0x363e02))return _0x363e02;return _0x235067[_0x23f544(0x1bd0)](_0x23f544(0x501)+_0x363e02+_0x23f544(0x1cf4)),null;}function _0x40b6f9(_0x3c35b3){const _0x79d7fc=_0x444747;if(_0x1d6b19&&_0x1d6b19[_0x79d7fc(0x869)])return _0x1bf2e9['cmContact'][_0x79d7fc(0x896)]({'ListId':_0x1d6b19['ListId'],'nolimit':!![],'filter':_0x3c35b3,'fields':_0x79d7fc(0x137f)})[_0x79d7fc(0x15e7)]['then'](function(_0x46c9ea){const _0x3fed2b=_0x79d7fc;return _0x46c9ea[_0x3fed2b(0x28b8)];});return[];}function _0x5633af(){const _0x51a857=_0x444747;_0xa516a4[_0x51a857(0x101a)]();}function _0x403706(_0x2cfc9d){const _0x2eebda=_0x444747,_0x426065=/^(\+|\d)[0-9]{7,16}$/;return _0x426065[_0x2eebda(0xa33)](_0x2cfc9d);}function _0x2c47f8(){const _0x4e3d39=_0x444747;_0x5988a7[_0x4e3d39(0xbf2)]=!![];}function _0x31efec(){const _0x212435=_0x444747;_0x5988a7[_0x212435(0x18ca)][_0x212435(0xb49)]&&_0xa516a4[_0x212435(0x268e)]({'secret':!![],'body':_0x5988a7['message'][_0x212435(0xb49)]});}}const _0x4b67a7=_0x423dc0;;_0x4f003a[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'toasty',_0x49a1e3(0xa19),_0x49a1e3(0x73a),'channel',_0x49a1e3(0x2e8),_0x49a1e3(0x2834)];function _0x4f003a(_0x435d00,_0x787c1,_0x530a95,_0x31e7db,_0x1a17bd,_0x2bbb26,_0x2189ce){const _0x5065cd=_0x49a1e3,_0x294650=this;_0x294650['errors']=[],_0x294650[_0x5065cd(0x16d7)]=[],_0x294650[_0x5065cd(0x73a)]=angular[_0x5065cd(0x289e)](_0x31e7db);!_0x294650['interaction'][_0x5065cd(0x168b)]&&(_0x294650[_0x5065cd(0x73a)][_0x5065cd(0x168b)]=null);_0x294650[_0x5065cd(0x2156)]=_0x1a17bd,_0x294650[_0x5065cd(0x22b5)]=_0x294650[_0x5065cd(0x2156)]+_0x5065cd(0xb28),_0x294650[_0x5065cd(0x20aa)]=_0x294650[_0x5065cd(0x2156)]+(_0x294650[_0x5065cd(0x2156)]===_0x5065cd(0xf52)?_0x5065cd(0x16cc):_0x5065cd(0x141)),_0x294650['accountProperty']=_0x28c606()['capitalize'](_0x294650[_0x5065cd(0x2156)])+(_0x294650[_0x5065cd(0x2156)]==='chat'?'Website':'Account')+'Id',_0x294650['firstLevelDisposition']=null,_0x294650['mandatoryDisposition']=![],_0x294650[_0x5065cd(0xc2b)]='',_0x294650[_0x5065cd(0x1db7)]=_0x2bbb26['voicePause']||_0x2bbb26[_0x5065cd(0x2248)]||_0x2bbb26[_0x5065cd(0x292)]||_0x2bbb26['openchannelPause']||_0x2bbb26[_0x5065cd(0x211)],_0x294650[_0x5065cd(0x4ea)]=_0x45d9ff,_0x294650[_0x5065cd(0x1b5a)]=_0x299449,_0x294650['saveDisposition']=_0x21567d,_0x294650[_0x5065cd(0x16cb)]=_0x3167ab;function _0x440666(){const _0x2d5762=_0x5065cd;let _0x930f7e=[];const _0x33ab17={'fields':_0x2d5762(0x158b),'sort':_0x2d5762(0x2494),'nolimit':!![]};_0x33ab17[_0x294650[_0x2d5762(0x24c2)]]=_0x31e7db[_0x294650[_0x2d5762(0x24c2)]],_0x530a95[_0x294650['apiAccountRoute']][_0x2d5762(0x896)]({'id':_0x31e7db[_0x294650[_0x2d5762(0x24c2)]]})['$promise']['then'](function(_0x1586fb){const _0x8a0f9c=_0x2d5762;return _0x294650['mandatoryDisposition']=_0x1586fb[_0x8a0f9c(0xe19)],_0x294650[_0x8a0f9c(0xe19)]&&(_0x294650['mandatoryDispositionPause']=_0x1586fb[_0x8a0f9c(0xc2b)][_0x8a0f9c(0x2494)]),_0x530a95[_0x8a0f9c(0x168b)]['get'](_0x33ab17)[_0x8a0f9c(0x15e7)];})[_0x2d5762(0x64a)](function(_0x39e780){const _0x3469ec=_0x2d5762;return _0x39e780[_0x3469ec(0x28b8)][_0x3469ec(0x1b9e)]&&(_0x930f7e=_0x28c606()[_0x3469ec(0x2808)](_0x930f7e,_0x39e780[_0x3469ec(0x28b8)])),_0x530a95['disposition'][_0x3469ec(0x896)]({'MailAccountId':_0x3469ec(0x8f1),'FaxAccountId':_0x3469ec(0x8f1),'SmsAccountId':_0x3469ec(0x8f1),'WhatsappAccountId':'null','OpenchannelAccountId':_0x3469ec(0x8f1),'ChatWebsiteId':_0x3469ec(0x8f1),'ListId':_0x3469ec(0x8f1)})['$promise'];})[_0x2d5762(0x64a)](function(_0x44b511){const _0x442b2f=_0x2d5762;_0x44b511[_0x442b2f(0x28b8)][_0x442b2f(0x1b9e)]&&(_0x930f7e=_0x28c606()[_0x442b2f(0x2808)](_0x930f7e,_0x44b511['rows']));})['catch'](function(_0x1989a0){const _0x31dc51=_0x2d5762;console[_0x31dc51(0x1bd0)](_0x1989a0);})['finally'](function(){const _0x4e3f7b=_0x2d5762;_0x294650[_0x4e3f7b(0x16d7)]=_0x28c606()[_0x4e3f7b(0x288e)](_0x930f7e,['name'],[_0x4e3f7b(0x2449)]),_0x177136();});}function _0x177136(){const _0x5c2347=_0x5065cd;_0x294650[_0x5c2347(0xe19)]&&!_0x294650['wasUserInPause']&&_0x530a95['user'][_0x5c2347(0x2826)]({'id':_0x2bbb26['id'],'type':_0x294650[_0x5c2347(0xc2b)]||_0x5c2347(0x1203)})[_0x5c2347(0x15e7)][_0x5c2347(0x64a)](function(){})[_0x5c2347(0x20cd)](function(_0x418656){const _0x9fa183=_0x5c2347;console[_0x9fa183(0x1bd0)](_0x418656);});}function _0x45d9ff(_0x32a6af){const _0x152faa=_0x5065cd;if(_0x32a6af==='first'){_0x294650[_0x152faa(0x1c63)]=_0x294650[_0x152faa(0x580)]?_0x28c606()[_0x152faa(0x25f8)](_0x294650[_0x152faa(0x16d7)],[_0x152faa(0xbb9),_0x294650['firstLevelDisposition']['id']]):![];if(!_0x294650[_0x152faa(0x580)])_0x294650[_0x152faa(0x2454)]=undefined;}else _0x32a6af===_0x152faa(0x26aa)&&(_0x294650[_0x152faa(0x27da)]=_0x28c606()[_0x152faa(0x25f8)](_0x294650[_0x152faa(0x16d7)],[_0x152faa(0xbb9),_0x294650[_0x152faa(0x2454)]['id']]));}function _0x299449(_0x147f79){const _0x45fb07=_0x5065cd;if(_0x147f79===_0x45fb07(0x26aa))_0x294650[_0x45fb07(0x2454)]=undefined,_0x294650[_0x45fb07(0x8db)]=undefined;else _0x147f79===_0x45fb07(0x21c0)&&(_0x294650[_0x45fb07(0x8db)]=undefined);}function _0x21567d(){const _0x2d233f=_0x5065cd;_0x294650[_0x2d233f(0xbae)]=[],_0x294650[_0x2d233f(0x73a)][_0x2d233f(0x246c)]=_0x2bbb26['id'],_0x294650[_0x2d233f(0x73a)][_0x2d233f(0x1140)]=!![],_0x294650['interaction'][_0x2d233f(0x2759)]='agent',_0x294650[_0x2d233f(0x73a)]['disposition']=_0x294650['firstLevelDisposition']?_0x294650['firstLevelDisposition']['name']:null,_0x294650['interaction'][_0x2d233f(0x22df)]=_0x294650['secondLevelDisposition']?_0x294650[_0x2d233f(0x2454)][_0x2d233f(0x2494)]:undefined,_0x294650[_0x2d233f(0x73a)][_0x2d233f(0x350)]=_0x294650[_0x2d233f(0x8db)]?_0x294650[_0x2d233f(0x8db)]['name']:undefined,_0x530a95[_0x294650[_0x2d233f(0x22b5)]]?_0x530a95[_0x294650[_0x2d233f(0x22b5)]]['update'](_0x28c606()['pick'](_0x294650[_0x2d233f(0x73a)],[_0x2d233f(0xa4c),_0x2d233f(0x1da3),'SmsAccountId',_0x2d233f(0x222),_0x2d233f(0xd93),_0x2d233f(0x2859),_0x2d233f(0x1140),_0x2d233f(0x2759),_0x2d233f(0x168b),_0x2d233f(0x22df),_0x2d233f(0x350),'id','note',_0x2d233f(0x246c)]))['$promise'][_0x2d233f(0x64a)](function(_0x2a7fbf){const _0x413135=_0x2d233f;_0x294650[_0x413135(0x73a)]=_0x2a7fbf,_0x294650[_0x413135(0x2156)]===_0x413135(0xc71)&&_0x2189ce[_0x413135(0x280c)](_0x294650[_0x413135(0x73a)]['id']),_0x787c1[_0x413135(0x1339)]({'title':_0x413135(0x1e86),'msg':_0x413135(0x23aa)});})[_0x2d233f(0x64a)](function(){_0x3167ab(!![]);})[_0x2d233f(0x20cd)](function(_0x1a8ad0){const _0x1f5ed0=_0x2d233f;if(_0x1a8ad0[_0x1f5ed0(0x1c52)]&&_0x1a8ad0[_0x1f5ed0(0x1c52)][_0x1f5ed0(0xbae)]&&_0x1a8ad0[_0x1f5ed0(0x1c52)][_0x1f5ed0(0xbae)]['length']){_0x294650['errors']=_0x1a8ad0[_0x1f5ed0(0x1c52)]['errors']||[{'message':_0x1a8ad0[_0x1f5ed0(0x2915)](),'type':_0x1f5ed0(0x251c)}];for(let _0x2fdf5a=0x0;_0x2fdf5a<_0x1a8ad0[_0x1f5ed0(0x1c52)][_0x1f5ed0(0xbae)][_0x1f5ed0(0x1b9e)];_0x2fdf5a++){_0x787c1['error']({'title':_0x1a8ad0[_0x1f5ed0(0x1c52)]['errors'][_0x2fdf5a][_0x1f5ed0(0x2185)],'msg':_0x1a8ad0[_0x1f5ed0(0x1c52)][_0x1f5ed0(0xbae)][_0x2fdf5a][_0x1f5ed0(0x18ca)]});}}else _0x787c1[_0x1f5ed0(0x1bd0)]({'title':_0x1a8ad0[_0x1f5ed0(0x10b3)]?_0x1f5ed0(0x575)+_0x1a8ad0['status']+_0x1f5ed0(0x21db)+_0x1a8ad0[_0x1f5ed0(0x2115)]:_0x1f5ed0(0x251c),'msg':_0x1a8ad0[_0x1f5ed0(0x1c52)]?JSON[_0x1f5ed0(0x2317)](_0x1a8ad0[_0x1f5ed0(0x1c52)][_0x1f5ed0(0x18ca)]):_0x1a8ad0[_0x1f5ed0(0x2915)]()});}):_0x3167ab(![]);}function _0x3167ab(_0x1d917b){_0x435d00['hide'](_0x1d917b);}_0x440666();}const _0x5a3fb1=_0x4f003a;;_0x2bf164[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x73a),_0x49a1e3(0x2156),_0x49a1e3(0x16a6)];function _0x2bf164(_0x17adbe,_0x49c5c4,_0xc4efa3,_0x31db7f,_0x2bdb09,_0x2cc5a8){const _0x1a501d=_0x49a1e3,_0x1a54d9=this;_0x1a54d9[_0x1a501d(0xbae)]=[],_0x1a54d9['tags']=_0x2cc5a8,_0x1a54d9[_0x1a501d(0x73a)]=angular[_0x1a501d(0x289e)](_0x31db7f),_0x1a54d9[_0x1a501d(0x73a)]['Tags']=_0x28c606()[_0x1a501d(0x1de5)](_0x1a54d9[_0x1a501d(0x73a)][_0x1a501d(0x1178)],function(_0x5dfbe7){const _0xcb41e4=_0x1a501d;return{'id':_0x5dfbe7['id'],'name':_0x5dfbe7[_0xcb41e4(0x2494)],'color':_0x5dfbe7[_0xcb41e4(0x10c2)]};}),_0x1a54d9['channel']=_0x2bdb09,_0x1a54d9[_0x1a501d(0x147f)]=!![],_0x1a54d9[_0x1a501d(0x1308)]=_0x260460,_0x1a54d9['closeDialog']=_0x291e85,_0x1a54d9[_0x1a501d(0x22b5)]=_0x1a54d9[_0x1a501d(0x2156)]+_0x1a501d(0xb28);function _0x260460(){const _0x10f5f5=_0x1a501d;_0x1a54d9[_0x10f5f5(0xbae)]=[];if(_0xc4efa3[_0x1a54d9[_0x10f5f5(0x22b5)]])return _0xc4efa3[_0x1a54d9[_0x10f5f5(0x22b5)]][_0x10f5f5(0x12bf)]({'id':_0x1a54d9[_0x10f5f5(0x73a)]['id'],'ids':_0x28c606()[_0x10f5f5(0x1de5)](_0x1a54d9[_0x10f5f5(0x73a)]['Tags'],'id')})['$promise']['then'](function(){const _0x4974e3=_0x10f5f5;_0x49c5c4['success']({'title':_0x4974e3(0x797),'msg':_0x4974e3(0x1869)}),_0x31db7f[_0x4974e3(0x1178)]=_0x1a54d9[_0x4974e3(0x73a)]['Tags'],_0x291e85(!![]);})[_0x10f5f5(0x20cd)](function(_0x147b2b){const _0xfe7260=_0x10f5f5;if(_0x147b2b[_0xfe7260(0x1c52)]&&_0x147b2b['data'][_0xfe7260(0xbae)]&&_0x147b2b[_0xfe7260(0x1c52)][_0xfe7260(0xbae)]['length'])for(let _0x21cac2=0x0;_0x21cac2<_0x147b2b[_0xfe7260(0x1c52)][_0xfe7260(0xbae)][_0xfe7260(0x1b9e)];_0x21cac2+=0x1){_0x49c5c4['error']({'title':_0x147b2b[_0xfe7260(0x1c52)][_0xfe7260(0xbae)][_0x21cac2]['type'],'msg':_0x147b2b['data'][_0xfe7260(0xbae)][_0x21cac2]['message']});}else _0x49c5c4['error']({'title':_0x147b2b[_0xfe7260(0x10b3)]?_0xfe7260(0x575)+_0x147b2b[_0xfe7260(0x10b3)]+_0xfe7260(0x21db)+_0x147b2b[_0xfe7260(0x2115)]:_0xfe7260(0x251c),'msg':_0x147b2b[_0xfe7260(0x1c52)]?JSON['stringify'](_0x147b2b[_0xfe7260(0x1c52)][_0xfe7260(0x18ca)]):_0x147b2b[_0xfe7260(0x2915)]()});});else _0x291e85(![]);}function _0x291e85(_0x5b9c67){const _0x26026e=_0x1a501d;_0x17adbe[_0x26026e(0x268e)](_0x5b9c67);}}const _0x377711=_0x2bf164;;_0x51a05a['$inject']=[_0x49a1e3(0x212a),'$timeout',_0x49a1e3(0xdcf),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0x2156),_0x49a1e3(0x18ca),_0x49a1e3(0x3e3)];function _0x51a05a(_0x1f84ef,_0x36bc68,_0x4d5151,_0xb07ed9,_0x1d950d,_0x324e7b,_0x11695e,_0x4eb05f){const _0x19d326=_0x49a1e3,_0x3c0f4b=this;_0x3c0f4b[_0x19d326(0x1d3d)]=_0x4d5151[_0x19d326(0x808)](),_0x3c0f4b[_0x19d326(0x2156)]=_0x324e7b[_0x19d326(0x2554)](),_0x3c0f4b[_0x19d326(0x18ca)]=_0x11695e,_0x3c0f4b[_0x19d326(0x3e3)]=_0x4eb05f,_0x3c0f4b[_0x19d326(0x16d6)]={'id':0x0,'type':'queue'},_0x3c0f4b[_0x19d326(0x1c06)]={'count':0x0,'rows':[]},_0x3c0f4b[_0x19d326(0xd77)]=_0x3c0f4b[_0x19d326(0x1c06)],_0x3c0f4b['queueMethod']=_0x3c0f4b[_0x19d326(0x2156)]+_0x19d326(0x285e),_0x3c0f4b[_0x19d326(0x16e5)]=_0x3c0f4b[_0x19d326(0x2156)]+_0x19d326(0x15eb),_0x3c0f4b['onTransfer']=_0x420c71,_0x3c0f4b[_0x19d326(0x16cb)]=_0x4885d6,_0x3c0f4b['init']=_0x411972,_0x3c0f4b['init']();function _0x411972(){const _0x2a5871=_0x19d326;return _0xb07ed9[_0x2a5871(0x2e8)][_0x2a5871(0x896)]({'fields':_0x2a5871(0x1427),'role':_0x2a5871(0x11ae),'sort':_0x2a5871(0x2494),'nolimit':!![]})['$promise'][_0x2a5871(0x64a)](function(_0x82c890){const _0x2d5671=_0x2a5871;return _0x3c0f4b[_0x2d5671(0xd77)]=_0x82c890||{'count':0x0,'rows':[]},_0xb07ed9[_0x3c0f4b[_0x2d5671(0x1e31)]]['get']({'fields':'id,name','sort':'name','nolimit':!![]})[_0x2d5671(0x15e7)];})['then'](function(_0x513f48){const _0x52e95a=_0x2a5871;_0x3c0f4b[_0x52e95a(0x1c06)]=_0x513f48||{'count':0x0,'rows':[]};})[_0x2a5871(0x20cd)](function(_0x66f23){const _0x4f37bd=_0x2a5871;console[_0x4f37bd(0x1bd0)](_0x66f23);});}function _0x4885d6(_0x290b5f){const _0x4af42c=_0x19d326;_0x1f84ef[_0x4af42c(0x268e)](_0x290b5f);}function _0x420c71(){_0x4885d6(!![]),_0x36bc68(function(){const _0x4df097=a0_0x4127;return _0xb07ed9[_0x4df097(0x19bd)][_0x3c0f4b[_0x4df097(0x16d6)]['type']==='agent'?'agentNotify':_0x3c0f4b[_0x4df097(0x16e5)]]({'id':_0x3c0f4b[_0x4df097(0x16d6)]['id'],'messageId':_0x3c0f4b[_0x4df097(0x18ca)]['id'],'channel':_0x3c0f4b['channel']})[_0x4df097(0x15e7)][_0x4df097(0x64a)](function(){const _0x235438=_0x4df097;_0x1d950d[_0x235438(0x1339)]({'title':_0x235438(0xf32),'msg':_0x235438(0x1850)+_0x3c0f4b[_0x235438(0x16d6)][_0x235438(0x2185)]+'\x20has\x20been\x20done!'});})['catch'](function(_0x47c5a9){const _0x415291=_0x4df097;if(_0x47c5a9['data']&&_0x47c5a9[_0x415291(0x1c52)][_0x415291(0xbae)]&&_0x47c5a9[_0x415291(0x1c52)]['errors'][_0x415291(0x1b9e)]){_0x3c0f4b[_0x415291(0xbae)]=_0x47c5a9[_0x415291(0x1c52)][_0x415291(0xbae)]||[{'message':_0x47c5a9['toString'](),'type':_0x415291(0xbf0)}];for(let _0x170b62=0x0;_0x170b62<_0x47c5a9[_0x415291(0x1c52)]['errors'][_0x415291(0x1b9e)];_0x170b62++){_0x1d950d[_0x415291(0x1bd0)]({'title':_0x47c5a9[_0x415291(0x1c52)][_0x415291(0xbae)][_0x170b62][_0x415291(0x2185)],'msg':_0x47c5a9['data'][_0x415291(0xbae)][_0x170b62][_0x415291(0x18ca)]});}}else _0x1d950d['error']({'title':_0x47c5a9['status']?_0x415291(0x575)+_0x47c5a9[_0x415291(0x10b3)]+_0x415291(0x21db)+_0x47c5a9['statusText']:_0x415291(0xbf0),'msg':_0x47c5a9[_0x415291(0x1c52)]?JSON[_0x415291(0x2317)](_0x47c5a9[_0x415291(0x1c52)][_0x415291(0x18ca)]):_0x47c5a9['toString']()});});},0x1388);}}const _0x33d17d=_0x51a05a;;_0xa440b9['$inject']=[_0x49a1e3(0x1674),'$q','$mdDialog','mwFormResponseUtils',_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x298c),_0x49a1e3(0x2159),'$timeout',_0x49a1e3(0x1214)];function _0xa440b9(_0x5e5290,_0x3813d8,_0x9aeea0,_0xd1e715,_0xf4e5a8,_0x5db3ac,_0x2727f1,_0x2dd166,_0x57ed68,_0x3eb47e,_0x1f428a){const _0x2b3a78=_0x49a1e3,_0x8ab276=this;_0x8ab276[_0x2b3a78(0x1464)]={},_0x8ab276['showResetButton']=!![],_0x8ab276[_0x2b3a78(0x1245)]=![],_0x8ab276[_0x2b3a78(0x8bf)]=_0x1f428a[_0x2b3a78(0x8bf)](),_0x8ab276['onSubmit']=_0x5a8744,_0x8ab276[_0x2b3a78(0x25cf)]=_0x1986b2,_0x8ab276[_0x2b3a78(0x58e)]=_0x11af62,_0x8ab276[_0x2b3a78(0x7cf)]=_0x1c03ab,_0x8ab276['getResponseSheetRow']=_0x5e6d66,_0x8ab276[_0x2b3a78(0xc17)]=_0x1d2252,_0x8ab276[_0x2b3a78(0xe05)]=_0x497afd,_0x8ab276['init']=_0x3c6ba0,_0x8ab276[_0x2b3a78(0x6ff)]=function(_0x43c9d0){const _0x23dc4b=_0x2b3a78;if(_0x8ab276['formViewer'][_0x23dc4b(0x2839)]){const _0x787db7=_0x9aeea0['confirm']()['title'](_0x2dd166[_0x23dc4b(0x2292)]('JSCRIPTY.DO_YOU_WANT_TO_RESET_SESSION'))[_0x23dc4b(0x12b8)](_0x2dd166[_0x23dc4b(0x2292)](_0x23dc4b(0x27f5)))[_0x23dc4b(0x250d)]('')[_0x23dc4b(0x213e)](_0x23dc4b(0x8e6))['targetEvent'](_0x43c9d0)['ok'](_0x2dd166[_0x23dc4b(0x2292)](_0x23dc4b(0x1841)))['cancel'](_0x2dd166[_0x23dc4b(0x2292)]('APP.NO'));_0x9aeea0[_0x23dc4b(0xa60)](_0x787db7)[_0x23dc4b(0x64a)](function(){const _0x23fda5=_0x23dc4b;_0x8ab276[_0x23fda5(0x1245)]=![],_0x8ab276['project'][_0x23fda5(0xa34)]=undefined,_0x553e2f(),_0x8ab276[_0x23fda5(0x1464)][_0x23fda5(0x2839)]();});}};function _0x553e2f(){const _0x46f14b=_0x2b3a78;try{_0x5e5290[_0x46f14b(0x4e3)]['$parent']['$parent']['vm'][_0x46f14b(0x283b)]();}catch(_0x5b4c11){_0x5db3ac['error']({'title':_0x46f14b(0xdb4),'msg':_0x46f14b(0x230e)});}}function _0x3c6ba0(_0x315d8f){const _0x25c876=_0x2b3a78;_0x8ab276['tab']=_0x315d8f;if(_0x8ab276[_0x25c876(0x1222)]){_0x8ab276['call']=_0x8ab276[_0x25c876(0x1222)][_0x25c876(0x17f0)],_0x8ab276[_0x25c876(0xac3)]=_0x8ab276[_0x25c876(0x1222)][_0x25c876(0x26bb)],_0x8ab276[_0x25c876(0x13f7)]=_0x8ab276[_0x25c876(0x1222)][_0x25c876(0x13f7)],_0x8ab276[_0x25c876(0x1bd9)]=_0x8ab276[_0x25c876(0x1222)][_0x25c876(0x1bd9)];if(_0x8ab276[_0x25c876(0x1bd9)]){if(_0x28c606()[_0x25c876(0x26d1)](_0x8ab276[_0x25c876(0x1bd9)][_0x25c876(0x6b9)])){}else _0x8ab276[_0x25c876(0x58e)](_0x8ab276[_0x25c876(0x1bd9)][_0x25c876(0x6b9)])?_0x8ab276['project']['formData']=JSON[_0x25c876(0x27f1)](_0x8ab276[_0x25c876(0x1bd9)][_0x25c876(0x6b9)]):_0x8ab276['project'][_0x25c876(0x6b9)]=undefined;_0x8ab276[_0x25c876(0x1bd9)][_0x25c876(0x17db)]=_0x8ab276['project'][_0x25c876(0x17db)]||{},_0x8ab276[_0x25c876(0x1bd9)][_0x25c876(0xa34)]!==undefined&&_0x3eb47e(function(){const _0x810de0=_0x25c876;_0x57ed68[_0x810de0(0x1a2e)](_0x810de0(0x125f),{'page':_0x8ab276[_0x810de0(0x1bd9)]['currentPage']});}),_0x5e5290[_0x25c876(0x8c7)](_0x25c876(0x1402),function(_0x1504b3,_0xbfbb01){const _0x2a6ccf=_0x25c876;if(_0xbfbb01[_0x2a6ccf(0xa34)]){_0x8ab276[_0x2a6ccf(0x1bd9)][_0x2a6ccf(0xa34)]=_0xbfbb01[_0x2a6ccf(0xa34)]['number']-0x1,_0x553e2f();_0x8ab276['project'][_0x2a6ccf(0x19a6)]&&(_0xbfbb01[_0x2a6ccf(0xa34)]['number']>=0x1&&_0xbfbb01['currentPage'][_0x2a6ccf(0x2113)]<_0x8ab276[_0x2a6ccf(0x1bd9)][_0x2a6ccf(0x6b9)][_0x2a6ccf(0x85b)][_0x2a6ccf(0x1b9e)]?_0x8ab276[_0x2a6ccf(0x1245)]=!![]:_0x8ab276[_0x2a6ccf(0x1245)]=![]);if(_0x8ab276['project']['formData']&&_0x8ab276[_0x2a6ccf(0x1bd9)][_0x2a6ccf(0x6b9)][_0x2a6ccf(0x85b)])for(let _0x914e85=0x0,_0x13081e=_0x8ab276[_0x2a6ccf(0x1bd9)][_0x2a6ccf(0x6b9)]['pages'][_0x2a6ccf(0x1b9e)];_0x914e85<_0x13081e;_0x914e85++){if(_0xbfbb01[_0x2a6ccf(0xa34)][_0x2a6ccf(0x2113)]<_0x914e85+0x1&&_0x8ab276[_0x2a6ccf(0x1bd9)][_0x2a6ccf(0x6b9)][_0x2a6ccf(0x85b)][_0x914e85][_0x2a6ccf(0xfee)])for(let _0xa22323=0x0,_0x1c7b31=_0x8ab276['project'][_0x2a6ccf(0x6b9)][_0x2a6ccf(0x85b)][_0x914e85][_0x2a6ccf(0xfee)][_0x2a6ccf(0x1b9e)];_0xa22323<_0x1c7b31;_0xa22323++){_0x8ab276[_0x2a6ccf(0x1bd9)][_0x2a6ccf(0x6b9)][_0x2a6ccf(0x85b)][_0x914e85][_0x2a6ccf(0xfee)][_0xa22323][_0x2a6ccf(0x2185)]===_0x2a6ccf(0x2598)&&_0x8ab276['project'][_0x2a6ccf(0x6b9)][_0x2a6ccf(0x85b)][_0x914e85][_0x2a6ccf(0xfee)][_0xa22323][_0x2a6ccf(0x2598)]&&delete _0x8ab276[_0x2a6ccf(0x1bd9)]['responseData'][_0x8ab276[_0x2a6ccf(0x1bd9)][_0x2a6ccf(0x6b9)][_0x2a6ccf(0x85b)][_0x914e85]['elements'][_0xa22323][_0x2a6ccf(0x2598)]['id']];}}}});}}}function _0x11af62(_0x1ebcb3){const _0x2be819=_0x2b3a78;if(_0x28c606()['isNil'](_0x1ebcb3))return![];try{JSON[_0x2be819(0x27f1)](_0x1ebcb3);}catch(_0x4d8cd6){return![];}return!![];}function _0x1986b2(_0x1335fa,_0x2400ef){const _0x421d42=_0x2b3a78;try{_0x5e5290['$parent']['$parent'][_0x421d42(0x4e3)]['vm']['addContactTab'](_0x2400ef);}catch(_0x524d1b){_0x5db3ac[_0x421d42(0x1bd0)]({'title':_0x421d42(0x216c),'msg':'Jscripty\x20can\x27t\x20open\x20the\x20contact'});}}function _0x314416(_0x34ff5c){const _0x318ab2=_0x2b3a78,_0x271580=_0x3813d8[_0x318ab2(0x122)]();return _0x8ab276[_0x318ab2(0x1bd9)][_0x318ab2(0x1b73)]?_0xf4e5a8[_0x318ab2(0x2e8)][_0x318ab2(0x818)]({'id':_0x34ff5c['id']})[_0x318ab2(0x15e7)][_0x318ab2(0x64a)](function(){const _0x24a19b=_0x318ab2;_0x271580[_0x24a19b(0x1268)]();})[_0x318ab2(0x20cd)](function(){const _0x1b8f91=_0x318ab2;console['log']('err'),_0x271580[_0x1b8f91(0x1268)]();}):_0x271580[_0x318ab2(0x1268)](),_0x271580['promise'];}function _0x3066fb(_0x26f7d1,_0x429b8e){const _0xeafbfb=_0x2b3a78,_0x44ceb1=[],_0x16a9f5=[],_0x330b1d=_0x2727f1[_0xeafbfb(0x808)]();_0x314416(_0x330b1d)[_0xeafbfb(0x64a)](function(){const _0x27d51a=_0xeafbfb;return _0xf4e5a8['jscriptySessionReport'][_0x27d51a(0x2479)]({'starttime':_0x8ab276[_0x27d51a(0xac3)],'membername':_0x8ab276[_0x27d51a(0x17f0)]&&_0x8ab276[_0x27d51a(0x17f0)]['membername']?_0x8ab276[_0x27d51a(0x17f0)]['membername']:_0x330b1d[_0x27d51a(0x2494)],'calleridname':_0x8ab276[_0x27d51a(0x17f0)]&&_0x8ab276[_0x27d51a(0x17f0)]['calleridname']?_0x8ab276['call']['calleridname']:undefined,'calleridnum':_0x8ab276[_0x27d51a(0x17f0)]&&_0x8ab276[_0x27d51a(0x17f0)]['calleridnum']?_0x8ab276[_0x27d51a(0x17f0)][_0x27d51a(0x225d)]:undefined,'queue':_0x8ab276['call']&&_0x8ab276['call'][_0x27d51a(0x1e4e)]?_0x8ab276[_0x27d51a(0x17f0)][_0x27d51a(0x1e4e)]:undefined,'uniqueid':_0x8ab276[_0x27d51a(0x17f0)]&&_0x8ab276[_0x27d51a(0x17f0)][_0x27d51a(0x2947)]?_0x8ab276['call'][_0x27d51a(0x2947)]:undefined,'VoiceQueueId':_0x8ab276[_0x27d51a(0x17f0)]&&_0x8ab276[_0x27d51a(0x17f0)][_0x27d51a(0xc55)]?_0x8ab276['call']['xmd-voicequeueid']:undefined,'ProjectId':_0x8ab276[_0x27d51a(0x1bd9)]&&_0x8ab276[_0x27d51a(0x1bd9)]['id']?_0x8ab276[_0x27d51a(0x1bd9)]['id']:undefined,'projectname':_0x8ab276[_0x27d51a(0x1bd9)]&&_0x8ab276[_0x27d51a(0x1bd9)][_0x27d51a(0x2494)]?_0x8ab276['project'][_0x27d51a(0x2494)]:undefined,'ContactId':_0x8ab276[_0x27d51a(0x13f7)]&&_0x8ab276[_0x27d51a(0x13f7)]['id']?_0x8ab276[_0x27d51a(0x13f7)]['id']:undefined,'completed':_0x429b8e})['$promise'];})[_0xeafbfb(0x64a)](function(_0x2dc5f4){const _0x1a0827=_0xeafbfb;if(_0x2dc5f4){const _0x43975b=_0x8ab276['getResponseSheetHeaders'](),_0x140dd3=_0x8ab276['getResponseSheetRow'](),_0x1ab627=_0x8ab276[_0x1a0827(0xe05)]();for(let _0x10eadb=0x0;_0x10eadb<_0x43975b[_0x1a0827(0x1b9e)];_0x10eadb+=0x1){if(!_0x28c606()[_0x1a0827(0x940)](String(_0x140dd3[_0x10eadb]))){try{_0x44ceb1[_0x1a0827(0x1954)](_0xf4e5a8[_0x1a0827(0x155a)][_0x1a0827(0x2479)]({'question':_0x43975b[_0x10eadb],'answer':_0x1ab627[_0x10eadb]['type']===_0x1a0827(0x232e)?_0x2ac33a()(String(_0x140dd3[_0x10eadb]))[_0x1a0827(0x1c2c)](_0x1a0827(0x286b)):_0x1ab627[_0x10eadb][_0x1a0827(0x2185)]===_0x1a0827(0x939)?_0x2ac33a()(String(_0x140dd3[_0x10eadb]))[_0x1a0827(0x1c2c)](_0x1a0827(0x16fd)):String(_0x140dd3[_0x10eadb]),'questionId':_0x1ab627[_0x10eadb]['id'],'membername':_0x8ab276[_0x1a0827(0x17f0)]&&_0x8ab276[_0x1a0827(0x17f0)]['membername']?_0x8ab276[_0x1a0827(0x17f0)][_0x1a0827(0x11a7)]:_0x330b1d[_0x1a0827(0x2494)],'calleridname':_0x8ab276[_0x1a0827(0x17f0)]&&_0x8ab276[_0x1a0827(0x17f0)][_0x1a0827(0x58f)]?_0x8ab276[_0x1a0827(0x17f0)][_0x1a0827(0x58f)]:undefined,'calleridnum':_0x8ab276[_0x1a0827(0x17f0)]&&_0x8ab276[_0x1a0827(0x17f0)][_0x1a0827(0x225d)]?_0x8ab276['call'][_0x1a0827(0x225d)]:undefined,'queue':_0x8ab276['call']&&_0x8ab276['call'][_0x1a0827(0x1e4e)]?_0x8ab276['call'][_0x1a0827(0x1e4e)]:undefined,'uniqueid':_0x8ab276[_0x1a0827(0x17f0)]&&_0x8ab276[_0x1a0827(0x17f0)][_0x1a0827(0x2947)]?_0x8ab276[_0x1a0827(0x17f0)][_0x1a0827(0x2947)]:undefined,'SessionId':_0x2dc5f4['id'],'ProjectId':_0x8ab276[_0x1a0827(0x1bd9)]['id'],'projectname':_0x8ab276[_0x1a0827(0x1bd9)]['name']}));}catch(_0xb81c13){console[_0x1a0827(0x1bd0)](_0x1a0827(0x319),_0xb81c13);}const _0x183a93=String(_0x140dd3[_0x10eadb])[_0x1a0827(0x282c)](';');for(let _0x5ac1c5=0x0;_0x5ac1c5<_0x183a93[_0x1a0827(0x1b9e)];_0x5ac1c5+=0x1){const _0x18ef9a=_0x183a93[_0x5ac1c5]['trim']();try{_0x16a9f5[_0x1a0827(0x1954)](_0xf4e5a8[_0x1a0827(0x73f)][_0x1a0827(0x2479)]({'question':_0x43975b[_0x10eadb],'questionId':_0x1ab627[_0x10eadb]['id'],'answer':_0x1ab627[_0x10eadb][_0x1a0827(0x2185)]==='date'?_0x2ac33a()(_0x18ef9a)[_0x1a0827(0x1c2c)](_0x1a0827(0x286b)):_0x1ab627[_0x10eadb]['type']===_0x1a0827(0x939)?_0x2ac33a()(_0x18ef9a)[_0x1a0827(0x1c2c)](_0x1a0827(0x16fd)):_0x18ef9a,'membername':_0x8ab276[_0x1a0827(0x17f0)]&&_0x8ab276[_0x1a0827(0x17f0)]['membername']?_0x8ab276[_0x1a0827(0x17f0)]['membername']:_0x330b1d['name'],'calleridname':_0x8ab276[_0x1a0827(0x17f0)]&&_0x8ab276['call']['calleridname']?_0x8ab276[_0x1a0827(0x17f0)]['calleridname']:undefined,'calleridnum':_0x8ab276[_0x1a0827(0x17f0)]&&_0x8ab276[_0x1a0827(0x17f0)][_0x1a0827(0x225d)]?_0x8ab276[_0x1a0827(0x17f0)]['calleridnum']:undefined,'queue':_0x8ab276[_0x1a0827(0x17f0)]&&_0x8ab276['call'][_0x1a0827(0x1e4e)]?_0x8ab276[_0x1a0827(0x17f0)]['queue']:undefined,'uniqueid':_0x8ab276['call']&&_0x8ab276[_0x1a0827(0x17f0)]['uniqueid']?_0x8ab276[_0x1a0827(0x17f0)]['uniqueid']:undefined,'SessionId':_0x2dc5f4['id'],'ProjectId':_0x8ab276['project']['id'],'projectname':_0x8ab276['project']['name']}));}catch(_0x2dca20){console[_0x1a0827(0x1bd0)](_0x1a0827(0x2061),_0x2dca20);}}}}}return _0x3813d8['all'](_0x44ceb1)[_0x1a0827(0x64a)](function(){const _0x498257=_0x1a0827;return _0x3813d8[_0x498257(0x2705)](_0x16a9f5)[_0x498257(0x64a)](function(){return _0x2dc5f4;});});})[_0xeafbfb(0x64a)](function(_0x4e93fc){const _0x72d440=_0xeafbfb;_0x4e93fc?_0x26f7d1[_0x72d440(0x1268)](!![]):_0x26f7d1[_0x72d440(0x19d2)]();})[_0xeafbfb(0x20cd)](function(_0x3c85f4){const _0x238264=_0xeafbfb;if(_0x3c85f4[_0x238264(0x1c52)]&&_0x3c85f4[_0x238264(0x1c52)][_0x238264(0xbae)]&&_0x3c85f4[_0x238264(0x1c52)][_0x238264(0xbae)][_0x238264(0x1b9e)]){_0x8ab276[_0x238264(0xbae)]=_0x3c85f4[_0x238264(0x1c52)][_0x238264(0xbae)]||[{'message':_0x3c85f4[_0x238264(0x2915)](),'type':_0x238264(0x13cd)}];for(let _0x69220f=0x0;_0x69220f<_0x3c85f4[_0x238264(0x1c52)]['errors']['length'];_0x69220f+=0x1){_0x5db3ac[_0x238264(0x1bd0)]({'title':_0x3c85f4[_0x238264(0x1c52)][_0x238264(0xbae)][_0x69220f]['type'],'msg':_0x3c85f4[_0x238264(0x1c52)][_0x238264(0xbae)][_0x69220f][_0x238264(0x18ca)]});}}else _0x5db3ac[_0x238264(0x1bd0)]({'title':_0x3c85f4[_0x238264(0x10b3)]?_0x238264(0x575)+_0x3c85f4[_0x238264(0x10b3)]+'\x20-\x20'+_0x3c85f4[_0x238264(0x2115)]:_0x238264(0x13cd),'msg':_0x3c85f4[_0x238264(0x1c52)]?JSON[_0x238264(0x2317)](_0x3c85f4[_0x238264(0x1c52)][_0x238264(0x18ca)]):_0x3c85f4['toString']()});_0x26f7d1[_0x238264(0x19d2)]();});}function _0x1ff9b3(_0x4fb7dc){const _0x1af40f=_0x2b3a78;try{_0x5e5290[_0x1af40f(0x4e3)][_0x1af40f(0x4e3)][_0x1af40f(0x4e3)]['vm'][_0x1af40f(0xc4c)](_0x4fb7dc);}catch(_0x2d8aee){_0x5db3ac[_0x1af40f(0x1bd0)]({'title':'ERROR\x20REMOVE\x20TAB','msg':_0x1af40f(0x2632)});}}function _0x5a8744(_0x23c00c,_0x292626){const _0x26abf6=_0x2b3a78,_0x4d0b92=_0x3813d8[_0x26abf6(0x122)]();if(_0x292626){const _0x2451ae=_0x9aeea0[_0x26abf6(0x856)]()[_0x26abf6(0x2021)](_0x26abf6(0x24b4))['textContent']('')[_0x26abf6(0x213e)]('survey')[_0x26abf6(0x2283)](_0x23c00c)['ok'](_0x26abf6(0x1ff5))[_0x26abf6(0x101a)]('NO');_0x9aeea0[_0x26abf6(0xa60)](_0x2451ae)['then'](function(){_0x3066fb(_0x4d0b92,![]);},function(){const _0x26ffdd=_0x26abf6;_0x4d0b92[_0x26ffdd(0x1268)]();});}else _0x3066fb(_0x4d0b92,!![]);return _0x4d0b92[_0x26abf6(0x1713)][_0x26abf6(0x64a)](function(_0x42dcfd){const _0x48748b=_0x26abf6;_0x42dcfd&&(_0x5db3ac[_0x48748b(0x1339)]({'title':_0x48748b(0x55d),'msg':_0x48748b(0xd6c)}),_0x1ff9b3(_0x8ab276[_0x48748b(0x1222)]));})['catch'](function(){const _0x17cd25=_0x26abf6;_0x5db3ac['error']({'title':_0x17cd25(0x1e0e),'msg':_0x17cd25(0x23c1)});});}function _0x1c03ab(){const _0x4699be=_0x2b3a78;return _0xd1e715[_0x4699be(0x7cf)](_0x8ab276[_0x4699be(0x1bd9)][_0x4699be(0x6b9)],_0x8ab276['project'][_0x4699be(0x17db)],![]);}function _0x5e6d66(){const _0x123a4d=_0x2b3a78;return _0xd1e715[_0x123a4d(0x150b)](_0x8ab276[_0x123a4d(0x1bd9)][_0x123a4d(0x6b9)],_0x8ab276[_0x123a4d(0x1bd9)][_0x123a4d(0x17db)]);}function _0x1d2252(){const _0x104456=_0x2b3a78;return _0xd1e715[_0x104456(0xc17)](_0x8ab276[_0x104456(0x1bd9)]['formData'],![]);}function _0x497afd(){const _0x5291d8=_0x2b3a78;return _0xd1e715[_0x5291d8(0xe05)](_0x8ab276['project'][_0x5291d8(0x6b9)],_0x8ab276['project'][_0x5291d8(0x17db)]);}}const _0x201d2f=_0xa440b9;;_0x1ea040[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x298c),_0x49a1e3(0x680),'notification',_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x1ea040(_0x4a07c3,_0x1ac71c,_0x31854b,_0x2222ec,_0x2da858){const _0x2214dd=_0x49a1e3,_0x7aa295=this;_0x7aa295[_0x2214dd(0x1df9)]=_0x31854b,_0x7aa295[_0x2214dd(0x2e8)]=_0x2da858[_0x2214dd(0x808)]();function _0x217f5a(){return function(_0xe29f01){const _0x368eb5=a0_0x4127;if(_0xe29f01[_0x368eb5(0x10b3)]===0x194)_0x1ac71c[_0x368eb5(0x772)]({'title':_0x4a07c3[_0x368eb5(0x2292)](_0x368eb5(0x1aed)),'msg':_0x4a07c3[_0x368eb5(0x2292)]('DASHBOARDS.ACCEPT_ELSEWHERE')});else{if(_0xe29f01[_0x368eb5(0x1c52)]&&_0xe29f01[_0x368eb5(0x1c52)][_0x368eb5(0xbae)]&&_0xe29f01['data'][_0x368eb5(0xbae)][_0x368eb5(0x1b9e)]){_0x7aa295[_0x368eb5(0xbae)]=_0xe29f01['data']['errors']||[{'message':_0xe29f01[_0x368eb5(0x2915)](),'type':'api.openchannelMessage.accept'}];for(let _0x3888ff=0x0;_0x3888ff<_0xe29f01[_0x368eb5(0x1c52)][_0x368eb5(0xbae)][_0x368eb5(0x1b9e)];_0x3888ff+=0x1){_0x1ac71c['error']({'title':_0xe29f01[_0x368eb5(0x1c52)][_0x368eb5(0xbae)][_0x3888ff][_0x368eb5(0x2185)],'msg':_0xe29f01[_0x368eb5(0x1c52)][_0x368eb5(0xbae)][_0x3888ff][_0x368eb5(0x18ca)]});}}else _0x1ac71c[_0x368eb5(0x1bd0)]({'title':_0xe29f01['status']?'API:'+_0xe29f01[_0x368eb5(0x10b3)]+_0x368eb5(0x21db)+_0xe29f01[_0x368eb5(0x2115)]:_0x368eb5(0x1ebc),'msg':_0xe29f01['data']?JSON[_0x368eb5(0x2317)](_0xe29f01[_0x368eb5(0x1c52)][_0x368eb5(0x18ca)]):_0xe29f01[_0x368eb5(0x2915)]()});}};}function _0x363336(){const _0x3ec9d2=_0x2214dd;if(_0x2222ec[_0x7aa295[_0x3ec9d2(0x1df9)]['channel']+'Message'])return _0x2222ec[_0x7aa295[_0x3ec9d2(0x1df9)][_0x3ec9d2(0x2156)]+_0x3ec9d2(0x149d)][_0x3ec9d2(0x1964)]({'id':_0x7aa295[_0x3ec9d2(0x1df9)]['id'],'UserId':_0x7aa295[_0x3ec9d2(0x2e8)]['id'],'manual':!![]})['$promise']['then'](function(){const _0x15f40f=_0x3ec9d2;_0x1ac71c[_0x15f40f(0x1339)]({'title':_0x15f40f(0x1da6),'msg':_0x15f40f(0x133a)});})['catch'](_0x217f5a());else _0x1ac71c[_0x3ec9d2(0x1bd0)]({'title':'API:ERROR','msg':_0x3ec9d2(0xce4)+_0x7aa295[_0x3ec9d2(0x1df9)][_0x3ec9d2(0x2156)]+'Message'});}function _0x2ff9de(){const _0x272082=_0x2214dd;if(_0x2222ec[_0x7aa295[_0x272082(0x1df9)][_0x272082(0x2156)]+_0x272082(0x149d)])return _0x2222ec[_0x7aa295[_0x272082(0x1df9)][_0x272082(0x2156)]+_0x272082(0x149d)]['reject']({'id':_0x7aa295[_0x272082(0x1df9)]['id'],'UserId':_0x7aa295[_0x272082(0x2e8)]['id']})[_0x272082(0x15e7)][_0x272082(0x64a)](function(){const _0x3740de=_0x272082;_0x1ac71c['success']({'title':_0x3740de(0x24f5),'msg':_0x3740de(0x1af3)});})['catch'](_0x217f5a());else _0x1ac71c['error']({'title':_0x272082(0xa14),'msg':'API\x20reject\x20message\x20not\x20found:\x20'+_0x7aa295[_0x272082(0x1df9)][_0x272082(0x2156)]+_0x272082(0x149d)});}_0x7aa295[_0x2214dd(0x1964)]=_0x363336,_0x7aa295[_0x2214dd(0x19d2)]=_0x2ff9de;}const _0x1246eb=_0x1ea040;;function _0x5462e6(){const _0x32b32c=_0x49a1e3,_0x1777a3=this;function _0x28c9b5(_0x23a7a2){const _0x56a00d=a0_0x4127;_0x1777a3['tab']=_0x23a7a2,_0x1777a3['tab']&&(_0x1777a3[_0x56a00d(0x1222)][_0x56a00d(0x282a)]=!![],_0x1777a3[_0x56a00d(0x1dd2)]=_0x1777a3[_0x56a00d(0x1222)][_0x56a00d(0x1dd2)]);}_0x1777a3[_0x32b32c(0x2354)]=_0x28c9b5;}const _0x21e3b0=_0x5462e6;;const _0xb92c78=_0x2e4a48['p']+_0x49a1e3(0x1780);;const _0x59c5a5=_0x2e4a48['p']+_0x49a1e3(0x1578);;_0x3137ca['$inject']=[_0x49a1e3(0x20ad)];function _0x3137ca(_0x532591){const _0x29e02e=_0x49a1e3;_0x532591['state'](_0x29e02e(0x11c8),{'url':_0x29e02e(0x2493),'views':{'content@app':{'templateProvider':['$stateParams',_0x29e02e(0xbe1),_0x29e02e(0xdcf),function(_0x1c39db,_0x5040b4,_0x4fcea2){const _0x4853c6=_0x29e02e;return _0x4fcea2[_0x4853c6(0x11f4)]()?_0x5040b4['fromUrl'](_0x59c5a5,_0x1c39db):_0x5040b4['fromUrl'](_0xb92c78,_0x1c39db);}],'controllerProvider':[_0x29e02e(0xdcf),function(_0x369397){const _0x58d095=_0x29e02e;return _0x369397[_0x58d095(0x11f4)]()?_0x58d095(0xc88):_0x58d095(0x2265);}]}},'resolve':{'globalUserLists':[_0x29e02e(0x107c),_0x29e02e(0xdcf),function(_0x299d20,_0x136417){const _0x5c2a0f=_0x29e02e;return _0x299d20[_0x5c2a0f(0x1268)](_0x5c2a0f(0x258),{'id':_0x136417['getCurrentUser']()['id'],'sort':_0x5c2a0f(0x2494),'nolimit':!![]});}],'globalLists':['apiResolver',function(_0x23d0ae){const _0x30850f=_0x29e02e;return _0x23d0ae['resolve'](_0x30850f(0x13d2),{'sort':_0x30850f(0x2494),'nolimit':!![]});}],'globalTags':[_0x29e02e(0x107c),function(_0x275c84){const _0xcce347=_0x29e02e;return _0x275c84[_0xcce347(0x1268)](_0xcce347(0x1b39),{'sort':_0xcce347(0x2494),'nolimit':!![]});}],'globalCompanies':['apiResolver',function(_0x3f2998){const _0x26d58e=_0x29e02e;return _0x3f2998['resolve']('cmCompany@get',{'sort':_0x26d58e(0x2494),'nolimit':!![]});}]},'authenticate':!![],'bodyClass':_0x29e02e(0x2309)});}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x11c8),[_0x49a1e3(0x1a47),_0x49a1e3(0x1534)])[_0x49a1e3(0x3d3)](_0x3137ca)[_0x49a1e3(0x38e)](_0x49a1e3(0x22cc),_0x3cb872)[_0x49a1e3(0x646)](_0x49a1e3(0x2834),_0x525137)[_0x49a1e3(0x16bb)](_0x49a1e3(0x205c),_0x189468)[_0x49a1e3(0x16bb)]('msNavigationAgentService',_0x40a3f6)[_0x49a1e3(0xbc7)](_0x49a1e3(0x928),_0x221f43)[_0x49a1e3(0x38e)]('AgentGeneralBotController',_0x5340ce)[_0x49a1e3(0x38e)]('AgentGeneralContactController',_0x37deb7)[_0x49a1e3(0x38e)]('DisposeCallDialogController',_0x50ec09)[_0x49a1e3(0x38e)](_0x49a1e3(0xf69),_0x18ed8b)[_0x49a1e3(0x38e)](_0x49a1e3(0xac7),_0x582d9f)[_0x49a1e3(0x38e)](_0x49a1e3(0x12fc),_0x2c46fd)['controller'](_0x49a1e3(0x1cbf),_0x2e1bd2)['controller']('DisposeAbandonedCallDialogController',_0x519a1c)[_0x49a1e3(0x38e)](_0x49a1e3(0x245d),_0x4ba0bf)[_0x49a1e3(0x38e)](_0x49a1e3(0x917),_0x40fb79)[_0x49a1e3(0x38e)]('AgentHomeChatController',_0x4c9d76)['controller'](_0x49a1e3(0x2721),_0x401c3c)[_0x49a1e3(0x38e)](_0x49a1e3(0x17d7),_0x5ee4bf)[_0x49a1e3(0x38e)]('AgentHomeDashboardBullController',_0x53f5d0)[_0x49a1e3(0x38e)](_0x49a1e3(0x192c),_0x542939)[_0x49a1e3(0x38e)](_0x49a1e3(0x125a),_0x9295e2)[_0x49a1e3(0x38e)](_0x49a1e3(0x2691),_0x4cc9ae)[_0x49a1e3(0x38e)](_0x49a1e3(0x2281),_0x625430)[_0x49a1e3(0x38e)](_0x49a1e3(0x272b),_0x22b889)['controller'](_0x49a1e3(0xab0),_0x12a2eb)[_0x49a1e3(0x38e)](_0x49a1e3(0xf59),_0x1ce760)[_0x49a1e3(0x38e)](_0x49a1e3(0x13b7),_0x499942)['controller']('AgentHomeMailController',_0x2f93d5)[_0x49a1e3(0x38e)]('AgentHomeMyContactsController',_0x2fe98a)[_0x49a1e3(0x38e)](_0x49a1e3(0x12c9),_0x4893c9)['controller']('AgentHomePluginsController',_0x207981)[_0x49a1e3(0x38e)]('AgentHomeRecordingsController',_0x56ebab)[_0x49a1e3(0x38e)](_0x49a1e3(0x16e9),_0xb7998a)[_0x49a1e3(0x38e)](_0x49a1e3(0x1749),_0x534d41)[_0x49a1e3(0x38e)](_0x49a1e3(0x305),_0x28a274)[_0x49a1e3(0x38e)](_0x49a1e3(0x6ac),_0x35713c)[_0x49a1e3(0x38e)]('AgentHomeWhatsappController',_0x2bee12)[_0x49a1e3(0x38e)](_0x49a1e3(0x1303),_0x1d3655)['directive'](_0x49a1e3(0x1109),_0x256023)[_0x49a1e3(0xcec)](_0x49a1e3(0x1a7e),_0x2d1775)[_0x49a1e3(0x38e)](_0x49a1e3(0x1836),_0x35ea39)[_0x49a1e3(0x646)]('Emojis',_0x2d106d)[_0x49a1e3(0x38e)](_0x49a1e3(0x1884),_0x9084b1)[_0x49a1e3(0x38e)](_0x49a1e3(0x2439),_0x5dff79)['controller'](_0x49a1e3(0x1616),_0x47fc20)[_0x49a1e3(0x38e)]('ComposeSmsInteractionDialogController',_0x168921)[_0x49a1e3(0x38e)](_0x49a1e3(0x5f2),_0x4b67a7)['controller']('DisposeInteractionDialogController',_0x5a3fb1)[_0x49a1e3(0x38e)](_0x49a1e3(0x264f),_0x377711)[_0x49a1e3(0x38e)](_0x49a1e3(0x59f),_0x33d17d)[_0x49a1e3(0x38e)](_0x49a1e3(0x7f7),_0x201d2f)['controller'](_0x49a1e3(0x270d),_0x1246eb)[_0x49a1e3(0x38e)](_0x49a1e3(0x1571),_0x21e3b0);;const _0x180eeb=_0x2e4a48['p']+'src/js/modules/main/apps/dashboards/views/custom/custom.html/custom.html';;_0x5418d5[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x1239),'$scope',_0x49a1e3(0xa19),_0x49a1e3(0x633),_0x49a1e3(0xdcf),_0x49a1e3(0x2dc),_0x49a1e3(0x16a8),'userProfileSection'];function _0x5418d5(_0x202e42,_0x1199da,_0x34ab87,_0x4b3d15,_0x519b76,_0x1d2775,_0x57f73e,_0xce3318,_0x28de78){const _0xcf8930=_0x49a1e3,_0x29d218=this;_0x29d218[_0xcf8930(0x1d3d)]=_0x1d2775[_0xcf8930(0x808)](),_0x29d218[_0xcf8930(0x16a8)]=_0xce3318,_0x29d218[_0xcf8930(0x16b2)]=_0x28de78&&_0x28de78[_0xcf8930(0xb90)]==0x1?_0x28de78[_0xcf8930(0x28b8)][0x0]:null,_0x29d218['crudPermissions']=_0x1d2775[_0xcf8930(0xa7e)](_0x29d218['userProfileSection']?_0x29d218[_0xcf8930(0x16b2)][_0xcf8930(0x402)]:null),_0x29d218[_0xcf8930(0x1d31)]={},_0x29d218[_0xcf8930(0x2dc)]=_0x57f73e&&_0x57f73e[_0xcf8930(0xb90)]?_0x57f73e:{'count':0x0,'rows':[]},_0x29d218[_0xcf8930(0x1b6)]=_0x57f73e&&_0x57f73e['count']?_0x28c606()[_0xcf8930(0x1de5)](_0x57f73e[_0xcf8930(0x28b8)],'id'):[],_0x29d218[_0xcf8930(0xcfd)]=_0x1199da(function(){},0x3e8),_0x29d218[_0xcf8930(0x995)]=_0x125be1,_0x29d218[_0xcf8930(0xc7b)]=_0x15b30c,_0x519b76[_0xcf8930(0x1939)](_0xcf8930(0xb9c),_0x2f4c41),_0x4b3d15[_0xcf8930(0x26df)][_0xcf8930(0x896)]({'id':_0x202e42[_0xcf8930(0x1b48)]['id']})[_0xcf8930(0x15e7)][_0xcf8930(0x64a)](function(_0x56c2cb){const _0x5c69c0=_0xcf8930;if(_0x56c2cb)return _0x29d218['customDashboard']=_0x56c2cb,_0x29d218[_0x5c69c0(0x1d31)][_0x5c69c0(0xa63)]=[],_0x29d218['customDashboard'][_0x5c69c0(0x2842)]=!![],_0x29d218[_0x5c69c0(0x1d31)][_0x5c69c0(0x1b44)]={'enabled':![]},_0x29d218[_0x5c69c0(0x1d31)][_0x5c69c0(0x2987)]={'enabled':![]},_0x4b3d15[_0x5c69c0(0x26df)]['getItems']({'id':_0x29d218['customDashboard']['id']})[_0x5c69c0(0x15e7)];})[_0xcf8930(0x64a)](function(_0x536bc5){const _0x315ce1=_0xcf8930;if(_0x536bc5&&_0x536bc5[_0x315ce1(0xb90)]&&_0x536bc5[_0x315ce1(0x28b8)])for(let _0x560c3a=0x0;_0x560c3a<_0x536bc5[_0x315ce1(0x28b8)]['length'];_0x560c3a+=0x1){_0x536bc5['rows'][_0x560c3a][_0x315ce1(0x2928)]=_0x315ce1(0x1fa3)+_0x536bc5['rows'][_0x560c3a][_0x315ce1(0x2185)]+_0x315ce1(0xfcb)+_0x536bc5[_0x315ce1(0x28b8)][_0x560c3a][_0x315ce1(0x2185)]+_0x315ce1(0x203c),_0x536bc5[_0x315ce1(0x28b8)][_0x560c3a][_0x315ce1(0x2dc)]=_0x29d218[_0x315ce1(0x2dc)],_0x536bc5['rows'][_0x560c3a][_0x315ce1(0x1b6)]=_0x29d218[_0x315ce1(0x1b6)],_0x29d218[_0x315ce1(0x1d31)][_0x315ce1(0xa63)][_0x315ce1(0x1954)](_0x536bc5[_0x315ce1(0x28b8)][_0x560c3a]);}})[_0xcf8930(0x20cd)](function(){_0x29d218['customDashboard']=undefined;});function _0x2f4c41(_0x189ee4){const _0x2559c2=_0xcf8930,_0x49a6f5=_0x28c606()[_0x2559c2(0x27bc)](_0x29d218[_0x2559c2(0x2dc)]['rows'],{'id':_0x189ee4['id']});_0x49a6f5&&_0x28c606()[_0x2559c2(0x14fe)](_0x49a6f5,_0x28c606()[_0x2559c2(0x27bb)](_0x189ee4,_0x28c606()[_0x2559c2(0x1ec6)](_0x49a6f5)));}function _0x125be1(){const _0x265402=_0xcf8930;for(let _0x44f0d9=0x0;_0x44f0d9<_0x29d218[_0x265402(0x1d31)][_0x265402(0xa63)][_0x265402(0x1b9e)];_0x44f0d9+=0x1){_0x29d218[_0x265402(0x1d31)]['widgets'][_0x44f0d9][_0x265402(0x1b6)]=_0x29d218[_0x265402(0x1b6)];}}function _0x15b30c(){const _0x563a07=_0xcf8930;_0x202e42['go'](_0x563a07(0x65e),{'id':_0x29d218['customDashboard']['id'],'tab':0x1});}_0x34ab87[_0xcf8930(0x8c7)](_0xcf8930(0xf28),function(){const _0x1dc68a=_0xcf8930;_0x519b76[_0x1dc68a(0x1951)](_0x1dc68a(0xb9c)),_0x29d218[_0x1dc68a(0xcfd)]&&_0x1199da['cancel'](_0x29d218[_0x1dc68a(0xcfd)]);});}const _0x5471a3=_0x5418d5;;_0x565085['$inject']=[_0x49a1e3(0x20ad)];function _0x565085(_0x39495a){const _0x4527bd=_0x49a1e3;_0x39495a[_0x4527bd(0x14f2)](_0x4527bd(0x1088),{'url':'/custom/:id','views':{'content@app':{'templateUrl':_0x180eeb,'controller':_0x4527bd(0xf80)}},'resolve':{'voiceQueues':[_0x4527bd(0x107c),_0x4527bd(0xdcf),function(_0x512632,_0x27e223){const _0x25a796=_0x4527bd;let _0x548ada;const _0x4baf31=_0x27e223[_0x25a796(0x4de)]('admin')?_0x512632['resolve'](_0x25a796(0x1c51),{'fields':_0x25a796(0x1427),'nolimit':!![]}):_0x512632[_0x25a796(0x1268)](_0x25a796(0x1758),{'id':_0x27e223['getCurrentUser']()[_0x25a796(0x21ac)],'section':_0x25a796(0x2110),'mergeResources':!![],'fields':_0x25a796(0x1427),'channel':_0x25a796(0x227c),'nolimit':!![]});return _0x4baf31['then'](function(_0xaaf77a){const _0x11dc28=_0x25a796;return _0x548ada=_0xaaf77a,_0x512632[_0x11dc28(0x1268)]('rpc@getVoiceQueues');})[_0x25a796(0x64a)](function(_0x3094b7){const _0x465f52=_0x25a796;if(_0x3094b7)for(let _0x2546de=0x0,_0x1f2d13;_0x2546de<_0x3094b7[_0x465f52(0x28b8)][_0x465f52(0x1b9e)];_0x2546de+=0x1){_0x1f2d13=_0x28c606()[_0x465f52(0x27bc)](_0x548ada[_0x465f52(0x28b8)],{'id':_0x3094b7[_0x465f52(0x28b8)][_0x2546de]['id']}),_0x1f2d13&&_0x28c606()[_0x465f52(0x14fe)](_0x1f2d13,_0x28c606()[_0x465f52(0x27bb)](_0x3094b7['rows'][_0x2546de],['waiting',_0x465f52(0x1318),_0x465f52(0x130d),_0x465f52(0xd92),'unmanaged',_0x465f52(0x10f0)]));}return _0x548ada;});}],'userProfile':['apiResolver',_0x4527bd(0xdcf),function(_0x4b6f74,_0x1c2a4f){const _0x1a9e95=_0x4527bd;return _0x4b6f74['resolve']('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x1c2a4f['getCurrentUser']()[_0x1a9e95(0x21ac)]});}],'userProfileSection':[_0x4527bd(0x107c),'Auth',function(_0x9c7105,_0x2924a9){const _0x3f4c55=_0x4527bd;return _0x9c7105[_0x3f4c55(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2924a9['getCurrentUser']()['userProfileId'],'sectionId':0x64});}]},'authenticate':!![],'bodyClass':_0x4527bd(0x2309)});}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x1088),[])[_0x49a1e3(0x3d3)](_0x565085)['controller'](_0x49a1e3(0xbaf),_0x5471a3);;_0x253c3d['$inject']=[_0x49a1e3(0x20ad),_0x49a1e3(0x21f8)];function _0x253c3d(_0x359aa4,_0x1cc371){const _0x1d2737=_0x49a1e3;_0x359aa4[_0x1d2737(0x14f2)]('app.dashboards',{'abstract':!![],'url':'/dashboards'}),_0x1cc371['addPart'](_0x1d2737(0x131f));}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x1697),[_0x49a1e3(0x8d2),_0x49a1e3(0x3c7),_0x49a1e3(0x1fe3),_0x49a1e3(0x891),_0x49a1e3(0x2516),'ckeditor',_0x49a1e3(0x1434),_0x49a1e3(0x1a87),_0x49a1e3(0x1610),'mdPickers',_0x49a1e3(0x1a59),_0x49a1e3(0x11fd),_0x49a1e3(0x1cfe),_0x49a1e3(0x1bd1),'angular-cron-jobs',_0x49a1e3(0x1cff),'angularMaterialFormBuilder',_0x49a1e3(0x1acd),_0x49a1e3(0xc48),'angular.filter',_0x49a1e3(0x11c8),_0x49a1e3(0x1088)])[_0x49a1e3(0x3d3)](_0x253c3d);;const _0x8b3829=_0x2e4a48['p']+_0x49a1e3(0xf0b);;const _0xd288af=_0x2e4a48['p']+'src/js/modules/main/apps/staff/views/agents/create/dialog.html/dialog.html';;_0x7e085b[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0xd77),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x7e085b(_0x44c076,_0x3e78b8,_0xb71ba5,_0x47e240,_0x43206a,_0x5756d1,_0x531a05,_0x2f2672,_0x473ff8,_0xe79a56,_0x2b6205,_0xe83ec9,_0x2e464b,_0x1d5d05,_0x376e59,_0x45bfb5,_0x2121ba){const _0x48443a=_0x49a1e3,_0x3025ce=this;_0x3025ce['license']=_0x45bfb5,_0x3025ce[_0x48443a(0x28d6)]=_0x2121ba,_0x3025ce[_0x48443a(0x1d3d)]=_0x376e59[_0x48443a(0x808)](),_0x3025ce[_0x48443a(0xd77)]=_0x473ff8||{'count':0x0,'rows':[]},_0x3025ce['userProfile']=_0xe79a56,_0x3025ce[_0x48443a(0x16b2)]=_0x2b6205&&_0x2b6205[_0x48443a(0xb90)]==0x1?_0x2b6205[_0x48443a(0x28b8)][0x0]:null,_0x3025ce['crudPermissions']=_0x376e59[_0x48443a(0xa7e)](_0x3025ce[_0x48443a(0x16b2)]?_0x3025ce[_0x48443a(0x16b2)]['crudPermissions']:null),_0x3025ce['table']='agents',_0x3025ce[_0x48443a(0x300)]='',_0x3025ce['listOrderAsc']=null,_0x3025ce[_0x48443a(0x18bd)]=[],_0x3025ce['query']={'fields':_0x48443a(0x246),'role':_0x48443a(0x11ae),'sort':_0x48443a(0x260c),'limit':0xa,'page':0x1},_0x3025ce[_0x48443a(0x26dd)]=_0x28c606()[_0x48443a(0x161e)]([{'option':_0x48443a(0x14c3),'value':'0'},{'option':_0x48443a(0x178e),'value':'1'},{'option':'WebRTC','value':'2'}],function(_0x466b42){const _0x25e9bb=_0x48443a;return _0x28c606()[_0x25e9bb(0x1353)](_0x466b42['value'],new RegExp('\x27','g'),'');}),_0x3025ce[_0x48443a(0x7c1)]=_0x28c606()[_0x48443a(0x161e)]([{'option':_0x48443a(0x241e),'value':_0x48443a(0xae6)},{'option':_0x48443a(0x28b1),'value':'\x27tcp\x27'},{'option':'ws','value':_0x48443a(0x23f6),'ngIf':_0x48443a(0x1fd1)},{'option':'wss','value':_0x48443a(0x1a49),'ngIf':'vm.agent.showWebBar\x20==\x201'},{'option':_0x48443a(0x959),'value':_0x48443a(0x27b2),'ngIf':'vm.agent.showWebBar\x20==\x201'}],function(_0x2c9951){const _0x51d403=_0x48443a;return _0x28c606()[_0x51d403(0x1353)](_0x2c9951['value'],new RegExp('\x27','g'),'');}),_0x3025ce['arraynat']=_0x28c606()[_0x48443a(0x161e)]([{'option':'force_rport','value':'\x27force_rport\x27'},{'option':_0x48443a(0x176a),'value':_0x48443a(0x2231)},{'option':_0x48443a(0x1d21),'value':_0x48443a(0x726)},{'option':'no','value':_0x48443a(0x1476)},{'option':_0x48443a(0x233a),'value':_0x48443a(0x466)},{'option':_0x48443a(0xb5a),'value':_0x48443a(0x1057)}],function(_0x48e771){const _0x65a0a5=_0x48443a;return _0x28c606()[_0x65a0a5(0x1353)](_0x48e771[_0x65a0a5(0x1096)],new RegExp('\x27','g'),'');}),_0x3025ce[_0x48443a(0x9d4)]=_0x28c606()[_0x48443a(0x161e)]([{'option':_0x48443a(0x969),'value':_0x48443a(0x973)},{'option':'User','value':'\x27user\x27'},{'option':_0x48443a(0x2943),'value':_0x48443a(0x1821)}],function(_0x332c2d){const _0x1b0530=_0x48443a;return _0x28c606()[_0x1b0530(0x1353)](_0x332c2d[_0x1b0530(0x1096)],new RegExp('\x27','g'),'');}),_0x3025ce[_0x48443a(0xf78)]=_0x28c606()[_0x48443a(0x161e)]([{'option':_0x48443a(0x1808),'value':'\x27ulaw\x27'},{'option':_0x48443a(0x2607),'value':_0x48443a(0xc33)},{'option':_0x48443a(0x8e1),'value':'\x27gsm\x27'},{'option':_0x48443a(0xfd9),'value':_0x48443a(0x2230)},{'option':'g729','value':'\x27g729\x27'},{'option':_0x48443a(0x16d1),'value':_0x48443a(0x1b50)},{'option':_0x48443a(0x1c59),'value':_0x48443a(0x269d)}],function(_0x26fdd3){const _0xf8e785=_0x48443a;return _0x28c606()['replace'](_0x26fdd3[_0xf8e785(0x1096)],new RegExp('\x27','g'),'');}),_0x3025ce[_0x48443a(0xb65)]=_0x28c606()['keyBy']([{'option':_0x48443a(0x307),'value':_0x48443a(0x726)},{'option':'No','value':_0x48443a(0x1476)},{'option':'Always','value':_0x48443a(0x1c55)}],function(_0x17f7fa){const _0x153f0a=_0x48443a;return _0x28c606()[_0x153f0a(0x1353)](_0x17f7fa[_0x153f0a(0x1096)],new RegExp('\x27','g'),'');}),_0x3025ce[_0x48443a(0xa03)]=_0x28c606()[_0x48443a(0x161e)]([{'option':_0x48443a(0xe71),'value':'\x27\x27'},{'option':_0x48443a(0x74b),'value':_0x48443a(0xdfa)},{'option':_0x48443a(0x1f92),'value':_0x48443a(0x21d4)},{'option':_0x48443a(0x8e1),'value':_0x48443a(0x17cb)}],function(_0x570773){const _0x458c7b=_0x48443a;return _0x28c606()[_0x458c7b(0x1353)](_0x570773[_0x458c7b(0x1096)],new RegExp('\x27','g'),'');}),_0x3025ce[_0x48443a(0xff6)]=_0x4291b1,_0x3025ce[_0x48443a(0x1a72)]=_0x31cbcd,_0x3025ce['deleteconfirm']=_0x47a80b,_0x3025ce[_0x48443a(0x1339)]=_0xb3ee8d,_0x3025ce[_0x48443a(0xa10)]=_0x584ac5,_0x3025ce[_0x48443a(0xa98)]=_0x290170,_0x3025ce['deleteAgent']=_0x4130e2,_0x3025ce['exportSelectedAgents']=_0x248fd0,_0x3025ce[_0x48443a(0x21c5)]=_0x4394c1,_0x3025ce[_0x48443a(0xafd)]=_0x2111b0,_0x3025ce[_0x48443a(0x1b08)]=_0x3aa7a2;function _0x4291b1(_0x57c108){const _0x57722c=_0x48443a;_0xb71ba5['go'](_0x57722c(0x2f4),{'id':_0x57c108['id'],'agent':_0x57c108,'crudPermissions':_0x3025ce[_0x57722c(0x402)]});}function _0x31cbcd(_0x3f43bd,_0x257812){const _0x50417c=_0x48443a;_0x43206a[_0x50417c(0xa60)]({'controller':_0x50417c(0x1292),'controllerAs':'vm','templateUrl':_0x8b3829,'parent':angular[_0x50417c(0x1f81)](_0x5756d1['body']),'targetEvent':_0x257812,'clickOutsideToClose':!![],'locals':{'agent':_0x3f43bd,'agents':_0x3025ce[_0x50417c(0xd77)]?_0x3025ce[_0x50417c(0xd77)][_0x50417c(0x28b8)]:[],'crudPermissions':_0x3025ce['crudPermissions']}});}function _0x47a80b(_0x10be5a,_0x11bd92){const _0xdbbfbb=_0x48443a,_0x1ca704=_0x43206a['confirm']()[_0xdbbfbb(0x2021)](_0xdbbfbb(0x1231)+_0x28c606()[_0xdbbfbb(0xc01)](_0xdbbfbb(0x11ae))+'?')[_0xdbbfbb(0x33a)](_0xdbbfbb(0x50b)+(_0x10be5a[_0xdbbfbb(0x2494)]||_0xdbbfbb(0x11ae))+_0xdbbfbb(0x26d0)+_0xdbbfbb(0x4b8))[_0xdbbfbb(0x213e)](_0xdbbfbb(0x127e))[_0xdbbfbb(0x2283)](_0x11bd92)['ok']('OK')['cancel'](_0xdbbfbb(0x18fd));_0x43206a[_0xdbbfbb(0xa60)](_0x1ca704)[_0xdbbfbb(0x64a)](function(){_0x4130e2(_0x10be5a);},function(){const _0x5a18ed=_0xdbbfbb;console[_0x5a18ed(0x9b4)]('CANCEL');});}let _0x1c0360=!![],_0x203368=0x1;_0x44c076[_0x48443a(0xc62)]('vm.query.filter',function(_0x137e89,_0x295a10){const _0x5ce3bf=_0x48443a;_0x1c0360?_0x531a05(function(){_0x1c0360=![];}):(!_0x295a10&&(_0x203368=_0x3025ce[_0x5ce3bf(0x289a)][_0x5ce3bf(0xc72)]),_0x137e89!==_0x295a10&&(_0x3025ce[_0x5ce3bf(0x289a)]['page']=0x1),!_0x137e89&&(_0x3025ce[_0x5ce3bf(0x289a)][_0x5ce3bf(0xc72)]=_0x203368),_0x3025ce[_0x5ce3bf(0xa10)]());});function _0xb3ee8d(_0x182f6d){const _0x2a897f=_0x48443a;_0x3025ce[_0x2a897f(0xd77)]=_0x182f6d||{'count':0x0,'rows':[]};}function _0x584ac5(){const _0x2365f3=_0x48443a;_0x3025ce['query'][_0x2365f3(0x24f9)]=(_0x3025ce['query']['page']-0x1)*_0x3025ce[_0x2365f3(0x289a)][_0x2365f3(0x25bb)],_0x376e59[_0x2365f3(0x4de)](_0x2365f3(0x333))?_0x3025ce[_0x2365f3(0x1713)]=_0xe83ec9['user'][_0x2365f3(0x896)](_0x3025ce[_0x2365f3(0x289a)],_0xb3ee8d)[_0x2365f3(0x15e7)]:(_0x3025ce[_0x2365f3(0x289a)]['id']=_0x3025ce[_0x2365f3(0x16a8)]['id'],_0x3025ce['query'][_0x2365f3(0xa21)]=_0x2365f3(0x2132),_0x3025ce[_0x2365f3(0x1713)]=_0xe83ec9[_0x2365f3(0x16a8)][_0x2365f3(0x2565)](_0x3025ce[_0x2365f3(0x289a)],_0xb3ee8d)['$promise']);}function _0x290170(_0x465bba,_0x3085b0){const _0x5b6ce1=_0x48443a;_0x43206a[_0x5b6ce1(0xa60)]({'controller':_0x5b6ce1(0x26b),'controllerAs':'vm','templateUrl':_0xd288af,'parent':angular[_0x5b6ce1(0x1f81)](_0x5756d1['body']),'targetEvent':_0x465bba,'clickOutsideToClose':!![],'locals':{'agent':_0x3085b0,'agents':_0x3025ce[_0x5b6ce1(0xd77)][_0x5b6ce1(0x28b8)],'license':_0x3025ce[_0x5b6ce1(0x1947)],'setting':_0x3025ce[_0x5b6ce1(0x28d6)],'crudPermissions':_0x3025ce[_0x5b6ce1(0x402)]}});}function _0x4130e2(_0xc1fe14){const _0x2cbab7=_0x48443a;_0xe83ec9['user'][_0x2cbab7(0xabd)]({'id':_0xc1fe14['id']})[_0x2cbab7(0x15e7)][_0x2cbab7(0x64a)](function(){const _0x19960a=_0x2cbab7;_0x28c606()[_0x19960a(0x21c7)](_0x3025ce[_0x19960a(0xd77)][_0x19960a(0x28b8)],{'id':_0xc1fe14['id']}),_0x3025ce[_0x19960a(0xd77)][_0x19960a(0xb90)]-=0x1,!_0x3025ce['agents'][_0x19960a(0x28b8)][_0x19960a(0x1b9e)]&&_0x3025ce['getAgents'](),_0x1d5d05[_0x19960a(0x1339)]({'title':_0x28c606()[_0x19960a(0xc01)](_0x19960a(0x12ad))+_0x19960a(0x2502),'msg':_0xc1fe14['name']?_0xc1fe14[_0x19960a(0x2494)]+_0x19960a(0x1fa8):''});})['catch'](function(_0xb72336){const _0x4b635e=_0x2cbab7;if(_0xb72336[_0x4b635e(0x1c52)]&&_0xb72336[_0x4b635e(0x1c52)][_0x4b635e(0xbae)]&&_0xb72336['data'][_0x4b635e(0xbae)]['length']){_0x3025ce[_0x4b635e(0xbae)]=_0xb72336[_0x4b635e(0x1c52)]['errors']||[{'message':_0xb72336[_0x4b635e(0x2915)](),'type':_0x4b635e(0x2359)}];for(let _0x2fc15f=0x0;_0x2fc15f<_0xb72336['data'][_0x4b635e(0xbae)][_0x4b635e(0x1b9e)];_0x2fc15f++){_0x1d5d05['error']({'title':_0xb72336[_0x4b635e(0x1c52)][_0x4b635e(0xbae)][_0x2fc15f][_0x4b635e(0x2185)],'msg':_0xb72336['data'][_0x4b635e(0xbae)][_0x2fc15f][_0x4b635e(0x18ca)]});}}else _0x1d5d05[_0x4b635e(0x1bd0)]({'title':_0xb72336['status']?'API:'+_0xb72336['status']+'\x20-\x20'+_0xb72336[_0x4b635e(0x2115)]:'SYSTEM:DELETEuser','msg':_0xb72336[_0x4b635e(0x1c52)]?JSON[_0x4b635e(0x2317)](_0xb72336['data'][_0x4b635e(0x18ca)]):_0xb72336[_0x4b635e(0x18ca)]||_0xb72336[_0x4b635e(0x2915)]()});});}function _0x248fd0(){const _0x45fc59=_0x48443a,_0x4ba525=angular[_0x45fc59(0x289e)](_0x3025ce[_0x45fc59(0x18bd)]);return _0x3025ce[_0x45fc59(0x18bd)]=[],_0x4ba525;}function _0x4394c1(_0x1bd312){const _0x475387=_0x48443a,_0x29608a=_0x43206a['confirm']()[_0x475387(0x2021)](_0x475387(0x5ec))['htmlContent'](_0x475387(0x50b)+_0x3025ce[_0x475387(0x18bd)][_0x475387(0x1b9e)]+_0x475387(0x163e)+_0x475387(0x4b8))['ariaLabel']('delete\x20Agents')['targetEvent'](_0x1bd312)['ok']('OK')[_0x475387(0x101a)](_0x475387(0x18fd));_0x43206a[_0x475387(0xa60)](_0x29608a)['then'](function(){const _0x2f005f=_0x475387;_0x3025ce['selectedAgents'][_0x2f005f(0x1397)](function(_0x1e76ee){_0x4130e2(_0x1e76ee);}),_0x3025ce[_0x2f005f(0x18bd)]=[];});}function _0x2111b0(){const _0x3fbe03=_0x48443a;_0x3025ce[_0x3fbe03(0x18bd)]=[];}function _0x3aa7a2(){const _0x39013d=_0x48443a;_0x3025ce['selectedAgents']=_0x3025ce[_0x39013d(0xd77)][_0x39013d(0x28b8)];}}const _0x13a6fb=_0x7e085b;;_0x45b779[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0xd77),_0x49a1e3(0x11ae),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting',_0x49a1e3(0x402)];function _0x45b779(_0x43aab8,_0xcb2fa2,_0xdc3871,_0x29f823,_0x5945c3,_0x1e73c8,_0x336adc,_0xc11a7e,_0x473202,_0x1e39ae,_0x2e79d8,_0x431919,_0x463ef9,_0x41a0a5){const _0x1bd681=_0x49a1e3,_0x28f1d6=this;_0x28f1d6[_0x1bd681(0x1d3d)]=_0x2e79d8[_0x1bd681(0x808)](),_0x28f1d6[_0x1bd681(0xbae)]=[],_0x28f1d6[_0x1bd681(0x28d6)]=_0x463ef9,_0x28f1d6['license']=_0x431919,_0x28f1d6['crudPermissions']=_0x41a0a5,_0x28f1d6[_0x1bd681(0x6c2)]={},_0x28f1d6[_0x1bd681(0xccc)]=_0x28f1d6[_0x1bd681(0x28d6)]&&_0x28f1d6[_0x1bd681(0x28d6)][_0x1bd681(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x28f1d6[_0x1bd681(0x2021)]=_0x1bd681(0xc22),_0x28f1d6[_0x1bd681(0x11ae)]=angular['copy'](_0x473202),_0x28f1d6[_0x1bd681(0xd77)]=_0xc11a7e,_0x28f1d6[_0x1bd681(0x45c)]=![];!_0x28f1d6[_0x1bd681(0x11ae)]&&(_0x28f1d6[_0x1bd681(0x11ae)]={'role':_0x1bd681(0x11ae),'showWebBar':'0','autointernal':!![],'type':'friend','context':_0x1bd681(0x275),'phoneBarRemoteControl':!![],'phoneBarRemoteControlPort':0x26a0,'allowmessenger':!![]},_0x28f1d6[_0x1bd681(0x2021)]=_0x1bd681(0x2568),_0x28f1d6[_0x1bd681(0x45c)]=!![]);_0x28f1d6[_0x1bd681(0x2459)]=_0x5f41e5,_0x28f1d6[_0x1bd681(0x1988)]=_0xe66015,_0x28f1d6[_0x1bd681(0xb69)]=_0x5b3cba,_0x28f1d6['getDateFromString']=_0xaf7609,_0x28f1d6[_0x1bd681(0x16cb)]=_0x521309;function _0x5f41e5(){const _0x36b321=_0x1bd681;_0x28f1d6[_0x36b321(0xbae)]=[],_0x1e39ae['user'][_0x36b321(0x2479)](_0x28f1d6[_0x36b321(0x11ae)])[_0x36b321(0x15e7)]['then'](function(_0x17b16d){const _0x76e8b8=_0x36b321;_0x28f1d6[_0x76e8b8(0xd77)][_0x76e8b8(0x1891)](_0x17b16d[_0x76e8b8(0x14f8)]()),_0x336adc[_0x76e8b8(0x1339)]({'title':_0x76e8b8(0xe28),'msg':_0x28f1d6['agent'][_0x76e8b8(0x2494)]?_0x28f1d6['agent'][_0x76e8b8(0x2494)]+_0x76e8b8(0x258d):''}),_0x521309(_0x17b16d);})['catch'](function(_0xd256ac){const _0x5358de=_0x36b321;if(_0xd256ac[_0x5358de(0x1c52)]&&_0xd256ac[_0x5358de(0x1c52)][_0x5358de(0xbae)]&&_0xd256ac[_0x5358de(0x1c52)][_0x5358de(0xbae)][_0x5358de(0x1b9e)]){_0x28f1d6[_0x5358de(0xbae)]=_0xd256ac[_0x5358de(0x1c52)][_0x5358de(0xbae)]||[{'message':_0xd256ac[_0x5358de(0x2915)](),'type':_0x5358de(0xdf7)}];for(let _0x3e699e=0x0;_0x3e699e<_0xd256ac['data'][_0x5358de(0xbae)][_0x5358de(0x1b9e)];_0x3e699e+=0x1){_0x336adc[_0x5358de(0x1bd0)]({'title':_0xd256ac[_0x5358de(0x1c52)][_0x5358de(0xbae)][_0x3e699e]['type'],'msg':_0xd256ac[_0x5358de(0x1c52)][_0x5358de(0xbae)][_0x3e699e][_0x5358de(0x18ca)]});}}else _0x336adc[_0x5358de(0x1bd0)]({'title':_0xd256ac[_0x5358de(0x10b3)]?'API:'+_0xd256ac[_0x5358de(0x10b3)]+'\x20-\x20'+_0xd256ac[_0x5358de(0x2115)]:_0x5358de(0xdf7),'msg':_0xd256ac[_0x5358de(0x1c52)]?JSON['stringify'](_0xd256ac['data'][_0x5358de(0x18ca)]):_0xd256ac[_0x5358de(0x2915)]()});});}function _0xe66015(){const _0x27f2bb=_0x1bd681;_0x28f1d6[_0x27f2bb(0xbae)]=[],_0x1e39ae[_0x27f2bb(0x2e8)][_0x27f2bb(0x2603)]({'id':_0x28f1d6[_0x27f2bb(0x11ae)]['id']},_0x28f1d6[_0x27f2bb(0x11ae)])[_0x27f2bb(0x15e7)][_0x27f2bb(0x64a)](function(_0x10e9ac){const _0x45bb76=_0x27f2bb,_0x2d52b2=_0x28c606()['find'](_0x28f1d6['agents'],{'id':_0x10e9ac['id']});_0x2d52b2&&_0x28c606()[_0x45bb76(0x14fe)](_0x2d52b2,_0x28c606()['pick'](_0x10e9ac[_0x45bb76(0x14f8)](),_0x28c606()[_0x45bb76(0x1ec6)](_0x2d52b2))),_0x336adc[_0x45bb76(0x1339)]({'title':_0x45bb76(0x163a),'msg':_0x28f1d6[_0x45bb76(0x11ae)][_0x45bb76(0x2494)]?_0x28f1d6[_0x45bb76(0x11ae)][_0x45bb76(0x2494)]+_0x45bb76(0x271):''}),_0x521309(_0x10e9ac);})['catch'](function(_0x26d0e6){const _0x1759a3=_0x27f2bb;if(_0x26d0e6[_0x1759a3(0x1c52)]&&_0x26d0e6[_0x1759a3(0x1c52)][_0x1759a3(0xbae)]&&_0x26d0e6[_0x1759a3(0x1c52)]['errors']['length']){_0x28f1d6['errors']=_0x26d0e6[_0x1759a3(0x1c52)]['errors']||[{'message':_0x26d0e6[_0x1759a3(0x2915)](),'type':_0x1759a3(0x15e5)}];for(let _0x570ff9=0x0;_0x570ff9<_0x26d0e6[_0x1759a3(0x1c52)][_0x1759a3(0xbae)][_0x1759a3(0x1b9e)];_0x570ff9++){_0x336adc[_0x1759a3(0x1bd0)]({'title':_0x26d0e6[_0x1759a3(0x1c52)][_0x1759a3(0xbae)][_0x570ff9][_0x1759a3(0x2185)],'msg':_0x26d0e6['data'][_0x1759a3(0xbae)][_0x570ff9][_0x1759a3(0x18ca)]});}}else _0x336adc[_0x1759a3(0x1bd0)]({'title':_0x26d0e6[_0x1759a3(0x10b3)]?_0x1759a3(0x575)+_0x26d0e6[_0x1759a3(0x10b3)]+_0x1759a3(0x21db)+_0x26d0e6[_0x1759a3(0x2115)]:_0x1759a3(0x15e5),'msg':_0x26d0e6[_0x1759a3(0x1c52)]?JSON[_0x1759a3(0x2317)](_0x26d0e6['data']['message']):_0x26d0e6[_0x1759a3(0x2915)]()});});}function _0x5b3cba(_0x17018e){const _0x1c0054=_0x1bd681;_0x28f1d6['errors']=[];const _0x130acc=_0x29f823[_0x1c0054(0x856)]()[_0x1c0054(0x2021)]('Are\x20you\x20sure?')[_0x1c0054(0x12b8)](_0x1c0054(0x2702))['ariaLabel'](_0x1c0054(0xc36))['ok'](_0x1c0054(0x2664))[_0x1c0054(0x101a)](_0x1c0054(0x1dc6))[_0x1c0054(0x2283)](_0x17018e);_0x29f823['show'](_0x130acc)['then'](function(){const _0x3c7ca2=_0x1c0054;_0x1e39ae[_0x3c7ca2(0x2e8)][_0x3c7ca2(0xabd)]({'id':_0x28f1d6[_0x3c7ca2(0x11ae)]['id']})[_0x3c7ca2(0x15e7)][_0x3c7ca2(0x64a)](function(){const _0x26a6c1=_0x3c7ca2;_0x28c606()['remove'](_0x28f1d6[_0x26a6c1(0xd77)],{'id':_0x28f1d6[_0x26a6c1(0x11ae)]['id']}),_0x336adc['success']({'title':'Agent\x20properly\x20deleted!','msg':(_0x28f1d6[_0x26a6c1(0x11ae)][_0x26a6c1(0x2494)]||_0x26a6c1(0x11ae))+_0x26a6c1(0x1fa8)}),_0x521309(_0x28f1d6[_0x26a6c1(0x11ae)]);})[_0x3c7ca2(0x20cd)](function(_0x1551b7){const _0x1d7a3d=_0x3c7ca2;if(_0x1551b7['data']&&_0x1551b7[_0x1d7a3d(0x1c52)][_0x1d7a3d(0xbae)]&&_0x1551b7[_0x1d7a3d(0x1c52)][_0x1d7a3d(0xbae)][_0x1d7a3d(0x1b9e)]){_0x28f1d6[_0x1d7a3d(0xbae)]=_0x1551b7['data'][_0x1d7a3d(0xbae)]||[{'message':_0x1551b7[_0x1d7a3d(0x2915)](),'type':'api.user.delete'}];for(let _0x4ee6bf=0x0;_0x4ee6bf<_0x1551b7[_0x1d7a3d(0x1c52)][_0x1d7a3d(0xbae)]['length'];_0x4ee6bf++){_0x336adc[_0x1d7a3d(0x1bd0)]({'title':_0x1551b7[_0x1d7a3d(0x1c52)][_0x1d7a3d(0xbae)][_0x4ee6bf][_0x1d7a3d(0x2185)],'msg':_0x1551b7[_0x1d7a3d(0x1c52)]['errors'][_0x4ee6bf][_0x1d7a3d(0x18ca)]});}}else _0x336adc[_0x1d7a3d(0x1bd0)]({'title':_0x1551b7['status']?_0x1d7a3d(0x575)+_0x1551b7[_0x1d7a3d(0x10b3)]+'\x20-\x20'+_0x1551b7[_0x1d7a3d(0x2115)]:'api.user.delete','msg':_0x1551b7[_0x1d7a3d(0x1c52)]?JSON['stringify'](_0x1551b7[_0x1d7a3d(0x1c52)][_0x1d7a3d(0x18ca)]):_0x1551b7[_0x1d7a3d(0x18ca)]||_0x1551b7['toString']()});});},function(){});}function _0xaf7609(_0x205d0e){return _0x205d0e===null?undefined:new Date(_0x205d0e);}function _0x521309(_0xb79611){const _0x502872=_0x1bd681;_0x29f823[_0x502872(0x268e)](_0xb79611);}}const _0x2e1326=_0x45b779;;_0x1ac2ea[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x680)];function _0x1ac2ea(_0x594293,_0x3a8843){const _0x2a78a5=_0x49a1e3,_0x3b2cf7=this,_0x2f9389=0x8,_0x13c609=_0x2f9389*0x400*0x400;_0x3b2cf7[_0x2a78a5(0x11ae)]={},_0x3b2cf7[_0x2a78a5(0x402)],_0x3b2cf7[_0x2a78a5(0x1026)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x13c609,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x3b2cf7[_0x2a78a5(0x1eec)]={'flow':{}},_0x3b2cf7[_0x2a78a5(0x397)]=![],_0x3b2cf7[_0x2a78a5(0x25ed)]=_0x5ba319,_0x3b2cf7['upload']=_0x406fa8,_0x3b2cf7[_0x2a78a5(0x1de6)]=_0x2221d0,_0x3b2cf7[_0x2a78a5(0x2354)]=_0x5890ee;function _0x5890ee(_0x1f4853,_0x3991d6){const _0x3fbb3e=_0x2a78a5;_0x3b2cf7[_0x3fbb3e(0x11ae)]=angular[_0x3fbb3e(0x289e)](_0x1f4853),_0x3b2cf7['crudPermissions']=typeof _0x3991d6!=='undefined'?_0x3991d6:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3b2cf7[_0x3fbb3e(0x1026)][_0x3fbb3e(0x2497)]=_0x3fbb3e(0x763)+_0x3b2cf7[_0x3fbb3e(0x11ae)]['id']+_0x3fbb3e(0x415),_0x3b2cf7[_0x3fbb3e(0x11ae)][_0x3fbb3e(0x21e3)]=[];}function _0x5ba319(_0x450b49){const _0x125f60=_0x2a78a5,_0x418527=[_0x125f60(0x105e),_0x125f60(0xfcc)];if(!_0x28c606()[_0x125f60(0x68a)](_0x418527,_0x450b49[_0x125f60(0xa2f)]()))return _0x3a8843[_0x125f60(0x1bd0)]({'title':_0x125f60(0x1486)+_0x450b49[_0x125f60(0xa2f)](),'msg':_0x125f60(0x1b51)+_0x418527[_0x125f60(0x9a6)]()}),![];if(_0x450b49[_0x125f60(0x1c97)]>_0x13c609)return _0x3a8843['error']({'title':_0x125f60(0x535),'msg':_0x125f60(0xbfa)+_0x2f9389+'MB'}),![];const _0x51c375={'id':_0x450b49[_0x125f60(0x16c4)],'file':_0x450b49,'type':_0x125f60(0xffd)};return _0x3b2cf7['agent']['images']['unshift'](_0x51c375),!![];}function _0x406fa8(){const _0x13e4b8=_0x2a78a5;_0x3b2cf7[_0x13e4b8(0x1eec)][_0x13e4b8(0x891)][_0x13e4b8(0x2017)][_0x13e4b8(0x1de3)]={'X-Requested-With':_0x13e4b8(0x15fc),'Authorization':_0x13e4b8(0x28cb)+_0x594293['get'](_0x13e4b8(0x283d))},_0x3b2cf7[_0x13e4b8(0x1eec)]['flow'][_0x13e4b8(0x1c5)]();}function _0x2221d0(_0x4e5167){const _0xdd2c96=_0x2a78a5;angular[_0xdd2c96(0x1397)](_0x3b2cf7[_0xdd2c96(0x11ae)]['images'],function(_0x42d162){const _0x4b13e1=_0xdd2c96;if(_0x42d162['id']===_0x4e5167[_0x4b13e1(0x16c4)]){const _0xf0cae7=new FileReader();_0xf0cae7[_0x4b13e1(0x2724)](_0x42d162[_0x4b13e1(0x10b4)][_0x4b13e1(0x10b4)]),_0xf0cae7[_0x4b13e1(0x11c)]=function(_0x41004e){const _0x42bcec=_0x4b13e1;_0x42d162[_0x42bcec(0x2761)]=_0x41004e[_0x42bcec(0x2497)][_0x42bcec(0x5e3)];},_0x42d162[_0x4b13e1(0x2185)]=_0x4b13e1(0x1a0);}});}}const _0x413dd2=_0x1ac2ea;;_0x21ffca[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x212a),_0x49a1e3(0x680),_0x49a1e3(0xa19),'agent',_0x49a1e3(0x28d6),'Auth'];function _0x21ffca(_0x39aab5,_0x595ab9,_0x5439d1,_0x1bd8b9,_0x3505a3,_0x5e9a0d,_0x3c2e7b){const _0x30a25e=_0x49a1e3,_0x5a3734=this;_0x5a3734['currentUser']=_0x3c2e7b['getCurrentUser'](),_0x5a3734[_0x30a25e(0xbae)]=[],_0x5a3734['setting']=_0x5e9a0d,_0x5a3734[_0x30a25e(0xccc)]=_0x5a3734[_0x30a25e(0x28d6)][_0x30a25e(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5a3734[_0x30a25e(0x11ae)]=_0x3505a3,_0x5a3734[_0x30a25e(0x441)]='',_0x5a3734[_0x30a25e(0x1d9)]='',_0x5a3734[_0x30a25e(0xb7e)]=_0x54266b,_0x5a3734['closeDialog']=_0x558cc8,_0x39aab5[_0x30a25e(0xc62)]('vm.password',function(_0x2019bf){const _0x54f261=_0x30a25e;!_0x28c606()[_0x54f261(0x28d7)](_0x5a3734['oldPassword'])&&(_0x2019bf===_0x5a3734[_0x54f261(0x1d9)]?_0x39aab5[_0x54f261(0x1f57)]['password'][_0x54f261(0x1737)](_0x54f261(0x24a0),![]):_0x39aab5[_0x54f261(0x1f57)]['password'][_0x54f261(0x1737)](_0x54f261(0x24a0),!![]));});function _0x54266b(){const _0x19f1bb=_0x30a25e;_0x5a3734[_0x19f1bb(0xbae)]=[];const _0x13a20a={'id':_0x5a3734[_0x19f1bb(0x11ae)]['id'],'newPassword':_0x5a3734[_0x19f1bb(0x441)]};_0x5a3734[_0x19f1bb(0x1d3d)]['id']==_0x5a3734[_0x19f1bb(0x11ae)]['id']&&(_0x13a20a[_0x19f1bb(0x1d9)]=_0x5a3734['oldPassword']),_0x1bd8b9['user'][_0x19f1bb(0x56d)](_0x13a20a)['$promise'][_0x19f1bb(0x64a)](function(){const _0x35907f=_0x19f1bb;_0x5439d1[_0x35907f(0x1339)]({'title':_0x35907f(0x22d)}),_0x558cc8();})[_0x19f1bb(0x20cd)](function(_0x1fb893){const _0x210e0a=_0x19f1bb;_0x5439d1[_0x210e0a(0x1bd0)]({'title':_0x1fb893[_0x210e0a(0x10b3)]?'API:'+_0x1fb893[_0x210e0a(0x10b3)]+'\x20-\x20'+_0x1fb893[_0x210e0a(0x2115)]:'api.agent.save','msg':_0x1fb893[_0x210e0a(0x1c52)]?JSON['stringify'](_0x1fb893[_0x210e0a(0x1c52)][_0x210e0a(0x18ca)]):_0x1fb893[_0x210e0a(0x2915)]()}),_0x5a3734[_0x210e0a(0xbae)]=_0x1fb893[_0x210e0a(0x1c52)][_0x210e0a(0xbae)]||[{'message':_0x1fb893[_0x210e0a(0x2915)](),'type':_0x210e0a(0x12db)}];});}function _0x558cc8(){const _0x267697=_0x30a25e;_0x595ab9[_0x267697(0x268e)]();}}const _0x593d5c=_0x21ffca;;_0xb12af4[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1373),'$mdDialog',_0x49a1e3(0xa19),_0x49a1e3(0x753),_0x49a1e3(0x680)];function _0xb12af4(_0x4002b4,_0x4fc210,_0x41ef5d,_0x18e662,_0x39e71d){const _0x4a7150=_0x49a1e3,_0x4ee400=this;_0x4ee400['agent']={},_0x4ee400[_0x4a7150(0x190b)]=_0x18e662['getNavigation'](),_0x4ee400['crudPermissions'],_0x4ee400[_0x4a7150(0x2354)]=_0x41e23f,_0x4ee400[_0x4a7150(0xb0a)]=_0xe2a1;function _0x41e23f(_0x12fe7e,_0x2545c){const _0x4770ea=_0x4a7150;_0x4ee400['agent']=_0x12fe7e,_0x4ee400[_0x4770ea(0x402)]=typeof _0x2545c!==_0x4770ea(0x19a1)?_0x2545c:{'readOnly':!![],'canEdit':![],'canDelete':![]};}function _0xe2a1(_0x13d6d6,_0x48c2b2){const _0x22d0dc=_0x4a7150,_0x56e41d=_0x48c2b2||_0x13d6d6;if(_0x56e41d[_0x22d0dc(0xe49)]){if(_0x48c2b2)_0x48c2b2['enabled']=!![],_0x4ee400[_0x22d0dc(0x11ae)]['permissions'][_0x22d0dc(0x1954)](_0x48c2b2['id']);else for(let _0x5431ec=0x0;_0x5431ec<_0x13d6d6[_0x22d0dc(0x1730)][_0x22d0dc(0x1b9e)];_0x5431ec++){_0x13d6d6[_0x22d0dc(0x1730)][_0x5431ec][_0x22d0dc(0xe49)]=!![],_0x4ee400[_0x22d0dc(0x11ae)][_0x22d0dc(0x1f33)][_0x22d0dc(0x1954)](_0x13d6d6[_0x22d0dc(0x1730)][_0x5431ec]['id']);}_0x13d6d6[_0x22d0dc(0xe49)]=!![],_0x4ee400[_0x22d0dc(0x11ae)][_0x22d0dc(0x1f33)][_0x22d0dc(0x1954)](_0x13d6d6['id']);}else{if(_0x48c2b2)_0x48c2b2[_0x22d0dc(0xe49)]=![],_0x28c606()[_0x22d0dc(0x21c7)](_0x4ee400[_0x22d0dc(0x11ae)][_0x22d0dc(0x1f33)],function(_0x2f8836){return _0x48c2b2['id']===_0x2f8836;}),_0x28c606()['filter'](_0x13d6d6[_0x22d0dc(0x1730)],{'enabled':![]})[_0x22d0dc(0x1b9e)]===_0x13d6d6[_0x22d0dc(0x1730)]['length']&&(_0x13d6d6[_0x22d0dc(0xe49)]=![],_0x28c606()[_0x22d0dc(0x21c7)](_0x4ee400[_0x22d0dc(0x11ae)][_0x22d0dc(0x1f33)],function(_0x18e6d9){return _0x13d6d6['id']===_0x18e6d9;}));else{_0x13d6d6[_0x22d0dc(0xe49)]=![],_0x28c606()[_0x22d0dc(0x21c7)](_0x4ee400[_0x22d0dc(0x11ae)][_0x22d0dc(0x1f33)],function(_0x253471){return _0x13d6d6['id']===_0x253471;});for(let _0x1c2d53=0x0;_0x1c2d53<_0x13d6d6[_0x22d0dc(0x1730)]['length'];_0x1c2d53++){_0x13d6d6[_0x22d0dc(0x1730)][_0x1c2d53][_0x22d0dc(0xe49)]=![],_0x28c606()[_0x22d0dc(0x21c7)](_0x4ee400['agent'][_0x22d0dc(0x1f33)],function(_0x4cd325){const _0x427a1e=_0x22d0dc;return _0x13d6d6[_0x427a1e(0x1730)][_0x1c2d53]['id']===_0x4cd325;});}}}return _0x41ef5d['user'][_0x22d0dc(0x2603)]({'id':_0x4ee400[_0x22d0dc(0x11ae)]['id'],'permissions':_0x28c606()[_0x22d0dc(0x810)](_0x4ee400[_0x22d0dc(0x11ae)][_0x22d0dc(0x1f33)])})[_0x22d0dc(0x15e7)][_0x22d0dc(0x64a)](function(){const _0x300ad0=_0x22d0dc;_0x39e71d[_0x300ad0(0x1339)]({'title':'agent\x20updated!','msg':_0x4ee400[_0x300ad0(0x11ae)]['name']?_0x4ee400[_0x300ad0(0x11ae)][_0x300ad0(0x2494)]+_0x300ad0(0x2032):''});})['catch'](function(_0x24dfbc){const _0xba6807=_0x22d0dc;console[_0xba6807(0x1bd0)](_0x24dfbc);});}}const _0x4d5f08=_0xb12af4;;_0x3e917c['$inject']=[_0x49a1e3(0x212a),'$q','toasty','api','agent',_0x49a1e3(0x2156),'direction',_0x49a1e3(0x298c),_0x49a1e3(0xdcf),'crudPermissions'];function _0x3e917c(_0x427d0e,_0xce8ad4,_0x35c836,_0x37bac2,_0x29c2bb,_0x1bf226,_0x49800b,_0x1f2313,_0x135cf9,_0x29f523){const _0x845c0=_0x49a1e3,_0x44e932=this;_0x44e932[_0x845c0(0x1d3d)]=_0x135cf9[_0x845c0(0x808)](),_0x44e932[_0x845c0(0x11ae)]=_0x29c2bb,_0x44e932[_0x845c0(0x402)]=_0x29f523,_0x44e932[_0x845c0(0x70f)]=0x0,_0x44e932[_0x845c0(0x2156)]=_0x1bf226,_0x44e932[_0x845c0(0x484)]=_0x49800b,_0x44e932[_0x845c0(0x1c8e)]=_0x44e932[_0x845c0(0x2156)]+'Queue',_0x44e932[_0x845c0(0x2021)]=_0x1f2313[_0x845c0(0x2292)]('STAFF.QUEUEADD_AGENT_'+_0x44e932[_0x845c0(0x2156)][_0x845c0(0xa3c)]()+'_'+_0x44e932[_0x845c0(0x484)]['toUpperCase']()),_0x44e932[_0x845c0(0x23cb)]=[],_0x44e932['allowedItems']=[],_0x44e932['selectedItems']=[],_0x44e932[_0x845c0(0x206b)]=[],_0x44e932['startingSelectedItems']=[],_0x44e932[_0x845c0(0xe9e)]=![],_0x44e932[_0x845c0(0x1eeb)]={'readOnly':!_0x44e932[_0x845c0(0x402)][_0x845c0(0xd86)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x845c0(0x2494),'line1':_0x845c0(0x2494),'line2':_0x845c0(0x2185),'line3':_0x44e932[_0x845c0(0x2156)]===_0x845c0(0x227c)?_0x845c0(0x70f):'','labelAll':_0x1f2313[_0x845c0(0x2292)]('STAFF.ALL_QUEUES_'+_0x44e932[_0x845c0(0x2156)][_0x845c0(0xa3c)]()+'_'+_0x44e932[_0x845c0(0x484)][_0x845c0(0xa3c)]()),'labelSelected':_0x1f2313[_0x845c0(0x2292)](_0x845c0(0x1390)+_0x44e932['channel'][_0x845c0(0xa3c)]()+'_'+_0x44e932[_0x845c0(0x484)]['toUpperCase']()),'transferCallback':function(_0x1fc553,_0x334148){const _0x8410ec=_0x845c0;_0x334148?_0x1fc553[_0x8410ec(0x1397)](function(_0x580542){_0x580542['penalty']=undefined;}):_0x1fc553['forEach'](function(_0x50e2ca){const _0x24e492=_0x8410ec;_0x50e2ca['penalty']=_0x24e492(0xcff)+_0x44e932[_0x24e492(0x70f)];});const _0x144182=_0x28c606()[_0x8410ec(0x9a2)](_0x44e932[_0x8410ec(0x24e1)],_0x44e932[_0x8410ec(0x1f4f)],function(_0x204bac,_0x44359f){return _0x204bac['id']===_0x44359f['id']&&_0x204bac['penalty']===_0x44359f['penalty'];});_0x44e932[_0x8410ec(0xe9e)]=_0x28c606()[_0x8410ec(0x940)](_0x144182)?![]:!![];}},_0x44e932[_0x845c0(0x2483)]=_0x2a2f8e,_0x44e932[_0x845c0(0xf0e)]=_0x3e6e6c,_0x44e932[_0x845c0(0x16cb)]=_0x41bf1c;function _0x2a2f8e(){const _0x2725a6=_0x845c0;return _0x135cf9['hasRole'](_0x2725a6(0x333))?_0x2b6751()['catch'](function(_0xf7af59){const _0x311843=_0x2725a6;_0x35c836[_0x311843(0x1bd0)]({'title':_0xf7af59['status']?_0x311843(0x575)+_0xf7af59[_0x311843(0x10b3)]+_0x311843(0x21db)+_0xf7af59[_0x311843(0x2115)]:'SYSTEM:GET_QUEUES','msg':_0xf7af59[_0x311843(0x10b3)]?JSON['stringify'](_0xf7af59[_0x311843(0x1c52)]):_0xf7af59['toString']()});}):_0x44f2a0()[_0x2725a6(0x64a)](function(_0x5eb004){const _0x1439b6=_0x2725a6;return _0x44e932[_0x1439b6(0xa21)]=_0x5eb004,_0x2b6751();})['catch'](function(_0x4fc3ca){const _0x5a4f53=_0x2725a6;_0x35c836[_0x5a4f53(0x1bd0)]({'title':_0x4fc3ca[_0x5a4f53(0x10b3)]?_0x5a4f53(0x575)+_0x4fc3ca[_0x5a4f53(0x10b3)]+_0x5a4f53(0x21db)+_0x4fc3ca[_0x5a4f53(0x2115)]:'SYSTEM:GET_QUEUES','msg':_0x4fc3ca[_0x5a4f53(0x10b3)]?JSON['stringify'](_0x4fc3ca[_0x5a4f53(0x1c52)]):_0x4fc3ca['toString']()});});}function _0x44f2a0(){return _0xce8ad4(function(_0x472dce,_0x4129ba){const _0x1c7e1a=a0_0x4127;let _0x40bb28;switch(_0x44e932[_0x1c7e1a(0x2156)]){case'voice':switch(_0x44e932[_0x1c7e1a(0x484)]){case _0x1c7e1a(0x12a4):_0x40bb28=_0x1c7e1a(0x2110);break;case'outbound':_0x40bb28='QueueCampaigns';break;}break;case _0x1c7e1a(0xf52):_0x40bb28=_0x1c7e1a(0xaa7);break;case _0x1c7e1a(0xc71):_0x40bb28=_0x1c7e1a(0x138c);break;case _0x1c7e1a(0x10aa):_0x40bb28=_0x1c7e1a(0x1272);break;case _0x1c7e1a(0x28ad):_0x40bb28='OpenchannelQueues';break;case _0x1c7e1a(0x1d37):_0x40bb28=_0x1c7e1a(0x952);break;}_0x37bac2['userProfileSection'][_0x1c7e1a(0x896)]({'userProfileId':_0x44e932[_0x1c7e1a(0x1d3d)][_0x1c7e1a(0x21ac)],'name':_0x40bb28})['$promise'][_0x1c7e1a(0x64a)](function(_0x30e09f){const _0x447eb2=_0x1c7e1a,_0x44660c=_0x30e09f&&_0x30e09f[_0x447eb2(0x28b8)]?_0x30e09f[_0x447eb2(0x28b8)][0x0]:null;_0x472dce(_0x44660c);})[_0x1c7e1a(0x20cd)](function(_0x290e7b){_0x4129ba(_0x290e7b);});});}function _0x2b6751(){return _0xce8ad4(function(_0x5cf788,_0x39b4cc){const _0x3b9904=a0_0x4127;return _0x27b12e()[_0x3b9904(0x64a)](function(_0x3fcdc3){const _0x5319af=_0x3b9904;return _0x44e932['items']=_0x3fcdc3['rows']?_0x3fcdc3[_0x5319af(0x28b8)]:[],_0x135cf9[_0x5319af(0x4de)](_0x5319af(0x333))?_0x3fcdc3:_0x44e932[_0x5319af(0xa21)]?_0x44e932[_0x5319af(0xa21)][_0x5319af(0x11da)]?_0x3fcdc3:_0x3b01e5():null;})[_0x3b9904(0x64a)](function(_0x9c302){const _0x2165a0=_0x3b9904,_0x54d512=_0x9c302&&_0x9c302['rows']?_0x9c302[_0x2165a0(0x28b8)]:[];return _0x44e932[_0x2165a0(0x13d1)]=_0x28c606()[_0x2165a0(0x1de5)](_0x54d512,function(_0x4211f0){const _0x4c9f82=_0x2165a0;return _0x28c606()[_0x4c9f82(0x27bc)](_0x44e932[_0x4c9f82(0x23cb)],{'id':_0x135cf9['hasRole'](_0x4c9f82(0x333))||_0x44e932[_0x4c9f82(0xa21)][_0x4c9f82(0x11da)]?_0x4211f0['id']:_0x4211f0[_0x4c9f82(0x145)]});}),_0x44e932[_0x2165a0(0x206b)]=angular[_0x2165a0(0x289e)](_0x44e932['allowedItems']),_0x44e932['items'][_0x2165a0(0x1397)](function(_0x1405a3){const _0x127181=_0x2165a0,_0x3669f3=_0x28c606()[_0x127181(0x27bc)](_0x44e932[_0x127181(0x13d1)],{'id':_0x1405a3['id']});_0x135cf9[_0x127181(0x4de)]('admin')?_0x1405a3[_0x127181(0x6f9)]=!![]:_0x1405a3[_0x127181(0x6f9)]=typeof _0x3669f3!==_0x127181(0x19a1)?!![]:![];}),_0x5dd26d();})['then'](function(_0x47f6b1){const _0x598782=_0x3b9904,_0x51ce15=_0x47f6b1&&_0x47f6b1[_0x598782(0x28b8)]?_0x47f6b1[_0x598782(0x28b8)]:[];_0x44e932[_0x598782(0x1f4f)]=_0x28c606()['map'](_0x51ce15,function(_0x17d177){const _0x3069c5=_0x598782,_0x763ce8=_0x28c606()[_0x3069c5(0x27bc)](_0x44e932['items'],{'id':_0x17d177['id']});return _0x44e932[_0x3069c5(0x2156)]===_0x3069c5(0x227c)&&(_0x763ce8[_0x3069c5(0x70f)]=typeof _0x763ce8!==_0x3069c5(0x19a1)&&typeof _0x17d177[_0x3069c5(0x5f0)]!==_0x3069c5(0x19a1)?_0x3069c5(0xcff)+_0x17d177[_0x3069c5(0x5f0)][_0x3069c5(0x70f)]:_0x3069c5(0xcff)+0x0),_0x763ce8;}),_0x44e932['startingSelectedItems']=angular[_0x598782(0x289e)](_0x44e932[_0x598782(0x1f4f)]),_0x44e932[_0x598782(0x1eeb)][_0x598782(0x1f4f)]=_0x44e932['selectedItems'],_0x44e932[_0x598782(0x1eeb)][_0x598782(0x23cb)]=_0x28c606()[_0x598782(0x23e5)](_0x44e932[_0x598782(0x13d1)],_0x44e932['dualMultiselectOptions']['selectedItems'],'id'),_0x5cf788();})['catch'](function(_0x180b9e){_0x39b4cc(_0x180b9e);});});}function _0x3b01e5(){return _0xce8ad4(function(_0x4d568e,_0x529712){const _0x1bbf1c=a0_0x4127;return _0x37bac2['userProfileResource'][_0x1bbf1c(0x896)]({'sectionId':_0x44e932['section']['id'],'nolimit':!![]})[_0x1bbf1c(0x15e7)][_0x1bbf1c(0x64a)](function(_0x643565){_0x4d568e(_0x643565);})['catch'](function(_0x1efce9){_0x529712(_0x1efce9);});});}function _0x5dd26d(){return _0xce8ad4(function(_0x1427d1,_0x241f5f){const _0x4f2955=a0_0x4127;return _0x37bac2[_0x4f2955(0x2e8)][_0x4f2955(0x1f2c)]({'id':_0x44e932['agent']['id'],'fields':_0x4f2955(0x26b8),'nolimit':!![],'type':_0x44e932[_0x4f2955(0x484)],'channel':_0x44e932[_0x4f2955(0x2156)]})[_0x4f2955(0x15e7)][_0x4f2955(0x64a)](function(_0x55b3ef){_0x1427d1(_0x55b3ef);})[_0x4f2955(0x20cd)](function(_0x49610c){_0x241f5f(_0x49610c);});});}function _0x27b12e(){return _0xce8ad4(function(_0xc5875f,_0x583083){const _0x14fbd8=a0_0x4127;return _0x37bac2[_0x44e932[_0x14fbd8(0x1c8e)]]['get']({'fields':_0x14fbd8(0xfea),'channel':_0x44e932[_0x14fbd8(0x2156)]===_0x14fbd8(0x7e0)?'voice':_0x44e932['channel'],'type':_0x44e932['direction'],'nolimit':!![]})[_0x14fbd8(0x15e7)]['then'](function(_0x211b5b){_0xc5875f(_0x211b5b);})[_0x14fbd8(0x20cd)](function(_0x4daac8){_0x583083(_0x4daac8);});});}function _0x51bdca(_0xd4873b){return _0xce8ad4(function(_0x1964e3,_0x4c5a5e){const _0x552d24=a0_0x4127;if(_0x28c606()[_0x552d24(0x940)](_0xd4873b))_0x1964e3();else{if(_0x44e932['channel']===_0x552d24(0x227c)){const _0x86c512=[],_0x25a24f=_0x28c606()[_0x552d24(0x156d)](_0xd4873b,'penalty');for(let _0x24120a=0x0;_0x24120a':'',_0x298c8a;}),_0x3fc44d[_0x25f756(0x24e1)]=angular[_0x25f756(0x289e)](_0x3fc44d['selectedItems']),_0x3fc44d[_0x25f756(0x1eeb)][_0x25f756(0x1f4f)]=_0x3fc44d[_0x25f756(0x1f4f)],_0x3fc44d[_0x25f756(0x1eeb)][_0x25f756(0x23cb)]=_0x28c606()[_0x25f756(0x23e5)](_0x3fc44d[_0x25f756(0x13d1)],_0x3fc44d[_0x25f756(0x1eeb)][_0x25f756(0x1f4f)],'id'),_0x232cf3();})[_0x40ea53(0x20cd)](function(_0x3fd306){_0xf385ef(_0x3fd306);});});}function _0x1385ee(){return _0x2c4760(function(_0x43430a,_0x2af937){const _0x5f5b0=a0_0x4127;return _0x1132b7['userProfileResource'][_0x5f5b0(0x896)]({'sectionId':_0x3fc44d['section']['id'],'nolimit':!![]})[_0x5f5b0(0x15e7)][_0x5f5b0(0x64a)](function(_0x53930b){_0x43430a(_0x53930b);})[_0x5f5b0(0x20cd)](function(_0x1dabdd){_0x2af937(_0x1dabdd);});});}function _0x33f4ea(){return _0x2c4760(function(_0x388bdf,_0x52140f){const _0x1aea93=a0_0x4127;return _0x1132b7[_0x1aea93(0x15ea)][_0x1aea93(0xa10)]({'id':_0x3fc44d[_0x1aea93(0x15ea)]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x1aea93(0x11ae)})[_0x1aea93(0x15e7)][_0x1aea93(0x64a)](function(_0x3c5821){_0x388bdf(_0x3c5821);})['catch'](function(_0x44f960){_0x52140f(_0x44f960);});});}function _0x582f5e(){return _0x2c4760(function(_0x161b5b,_0x4ce2f2){const _0xc55bfd=a0_0x4127;return _0x1132b7[_0xc55bfd(0x2e8)][_0xc55bfd(0x896)]({'fields':_0xc55bfd(0x2105),'nolimit':!![],'role':_0xc55bfd(0x11ae)})[_0xc55bfd(0x15e7)][_0xc55bfd(0x64a)](function(_0x2a1518){_0x161b5b(_0x2a1518);})[_0xc55bfd(0x20cd)](function(_0x4c377c){_0x4ce2f2(_0x4c377c);});});}function _0x23decd(_0x3c31cc){return _0x2c4760(function(_0x35ce84,_0x1f5565){const _0x3b21c8=a0_0x4127;_0x28c606()[_0x3b21c8(0x940)](_0x3c31cc)?_0x35ce84():_0x1132b7['team'][_0x3b21c8(0x1575)]({'id':_0x3fc44d['team']['id'],'ids':_0x28c606()[_0x3b21c8(0x1de5)](_0x3c31cc,'id')})[_0x3b21c8(0x15e7)][_0x3b21c8(0x64a)](function(){_0x35ce84();})[_0x3b21c8(0x20cd)](function(_0x3706b0){_0x1f5565(_0x3706b0);});});}function _0x44d0f0(_0x3a9d7e){return _0x2c4760(function(_0x445278,_0x104e5c){const _0x21818b=a0_0x4127;_0x28c606()[_0x21818b(0x940)](_0x3a9d7e)?_0x445278():_0x1132b7[_0x21818b(0x15ea)][_0x21818b(0x251d)]({'id':_0x3fc44d[_0x21818b(0x15ea)]['id'],'ids':_0x28c606()[_0x21818b(0x1de5)](_0x3a9d7e,'id')})[_0x21818b(0x15e7)][_0x21818b(0x64a)](function(){_0x445278();})[_0x21818b(0x20cd)](function(_0x4a0b22){_0x104e5c(_0x4a0b22);});});}function _0x25a61a(){const _0x544585=_0x34bc1f,_0x5d4db6=_0x28c606()[_0x544585(0x23e5)](_0x3fc44d['startingSelectedItems'],_0x3fc44d[_0x544585(0x1f4f)],'id'),_0x3356fe=_0x28c606()['differenceBy'](_0x3fc44d[_0x544585(0x1f4f)],_0x3fc44d[_0x544585(0x24e1)],'id');return _0x44d0f0(_0x5d4db6)[_0x544585(0x64a)](function(){return _0x23decd(_0x3356fe);})[_0x544585(0x64a)](function(){const _0x18d7bd=_0x544585;_0x3fc44d[_0x18d7bd(0xe9e)]=![],_0x3fc44d[_0x18d7bd(0x206b)]=angular['copy'](_0x3fc44d[_0x18d7bd(0x13d1)]),_0x3fc44d['startingSelectedItems']=angular[_0x18d7bd(0x289e)](_0x3fc44d[_0x18d7bd(0x1f4f)]),_0x26888f[_0x18d7bd(0x1339)]({'title':_0x18d7bd(0x24d6),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})['catch'](function(_0x13cba2){const _0x386ac9=_0x544585;_0x26888f[_0x386ac9(0x1bd0)]({'title':_0x13cba2['status']?_0x386ac9(0x575)+_0x13cba2[_0x386ac9(0x10b3)]+'\x20-\x20'+_0x13cba2[_0x386ac9(0x2115)]:_0x386ac9(0x1226),'msg':_0x13cba2['status']?JSON[_0x386ac9(0x2317)](_0x13cba2[_0x386ac9(0x1c52)]):_0x13cba2['toString']()});});}function _0x4a674a(){const _0x5e4a3a=_0x34bc1f;_0x5ee021[_0x5e4a3a(0x268e)]();}}const _0x1fb339=_0x21ad38;;const _0x30741d=_0x2e4a48['p']+_0x49a1e3(0x143d);;const _0x8a4509=_0x2e4a48['p']+_0x49a1e3(0x54b);;_0x2d046e['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),'teams','userProfile',_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting'];function _0x2d046e(_0x37ccca,_0x43922f,_0x1969da,_0x8489e8,_0x1e7ea5,_0x42bd1d,_0x1ece53,_0x704109,_0x2e27c6,_0x292dc5,_0x47e2ab,_0x57eba6,_0x1e2464,_0x577391,_0x1488b7,_0x11d2c8,_0x299957){const _0x62507=_0x49a1e3,_0x15b93a=this;_0x15b93a[_0x62507(0x1947)]=_0x11d2c8,_0x15b93a['setting']=_0x299957,_0x15b93a['currentUser']=_0x1488b7[_0x62507(0x808)](),_0x15b93a[_0x62507(0x1ce6)]=_0x2e27c6||{'count':0x0,'rows':[]},_0x15b93a[_0x62507(0x16a8)]=_0x292dc5,_0x15b93a['userProfileSection']=_0x47e2ab&&_0x47e2ab[_0x62507(0xb90)]==0x1?_0x47e2ab['rows'][0x0]:null,_0x15b93a[_0x62507(0x402)]=_0x1488b7[_0x62507(0xa7e)](_0x15b93a[_0x62507(0x16b2)]?_0x15b93a['userProfileSection'][_0x62507(0x402)]:null),_0x15b93a[_0x62507(0x185d)]='teams',_0x15b93a[_0x62507(0x300)]='',_0x15b93a['listOrderAsc']=null,_0x15b93a['selectedTeams']=[],_0x15b93a[_0x62507(0x289a)]={'fields':_0x62507(0x15b8),'sort':_0x62507(0x260c),'limit':0xa,'page':0x1},_0x15b93a[_0x62507(0x1c42)]=_0x4c27e9,_0x15b93a[_0x62507(0x104a)]=_0x2503f9,_0x15b93a[_0x62507(0x1262)]=_0x309b61,_0x15b93a['success']=_0x49af40,_0x15b93a[_0x62507(0x151d)]=_0x203168,_0x15b93a[_0x62507(0x190)]=_0x1ca429,_0x15b93a['deleteTeam']=_0x597945,_0x15b93a[_0x62507(0xef2)]=_0x517b94,_0x15b93a[_0x62507(0x1e18)]=_0x34aa2e,_0x15b93a[_0x62507(0x20bb)]=_0x12808f,_0x15b93a[_0x62507(0xcbe)]=_0x1fc83f;function _0x4c27e9(_0x959f9b,_0xe9afe){const _0x48c3ba=_0x62507;_0x1e7ea5[_0x48c3ba(0xa60)]({'controller':_0x48c3ba(0x296e),'controllerAs':'vm','templateUrl':_0x30741d,'parent':angular[_0x48c3ba(0x1f81)](_0x42bd1d[_0x48c3ba(0xb49)]),'targetEvent':_0xe9afe,'clickOutsideToClose':!![],'locals':{'team':_0x959f9b,'teams':_0x15b93a['teams'][_0x48c3ba(0x28b8)],'license':_0x15b93a[_0x48c3ba(0x1947)],'setting':null,'crudPermissions':_0x15b93a[_0x48c3ba(0x402)]}});}function _0x2503f9(_0xe3d960,_0x265716){const _0x2ccb1d=_0x62507;_0x1e7ea5['show']({'controller':_0x2ccb1d(0x156e),'controllerAs':'vm','templateUrl':_0x8a4509,'parent':angular['element'](_0x42bd1d[_0x2ccb1d(0xb49)]),'targetEvent':_0x265716,'clickOutsideToClose':!![],'locals':{'team':_0xe3d960,'teams':_0x15b93a[_0x2ccb1d(0x1ce6)]?_0x15b93a[_0x2ccb1d(0x1ce6)][_0x2ccb1d(0x28b8)]:[],'crudPermissions':_0x15b93a[_0x2ccb1d(0x402)],'realtime':![]}});}function _0x309b61(_0x51c1b4,_0x239d70){const _0x22c704=_0x62507,_0x16ed05=_0x1e7ea5[_0x22c704(0x856)]()[_0x22c704(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()[_0x22c704(0xc01)](_0x22c704(0x15ea))+'?')['htmlContent'](_0x22c704(0x50b)+(_0x51c1b4[_0x22c704(0x2494)]||_0x22c704(0x15ea))+_0x22c704(0x26d0)+_0x22c704(0x4b8))[_0x22c704(0x213e)](_0x22c704(0x24b1))['targetEvent'](_0x239d70)['ok']('OK')['cancel'](_0x22c704(0x18fd));_0x1e7ea5[_0x22c704(0xa60)](_0x16ed05)['then'](function(){_0x597945(_0x51c1b4);},function(){const _0x3aae98=_0x22c704;console[_0x3aae98(0x9b4)]('CANCEL');});}let _0x285c6e=!![],_0x336a7d=0x1;_0x37ccca[_0x62507(0xc62)](_0x62507(0x1cb9),function(_0x330f80,_0x2225a7){const _0x57f967=_0x62507;_0x285c6e?_0x1ece53(function(){_0x285c6e=![];}):(!_0x2225a7&&(_0x336a7d=_0x15b93a[_0x57f967(0x289a)][_0x57f967(0xc72)]),_0x330f80!==_0x2225a7&&(_0x15b93a[_0x57f967(0x289a)][_0x57f967(0xc72)]=0x1),!_0x330f80&&(_0x15b93a['query'][_0x57f967(0xc72)]=_0x336a7d),_0x15b93a['getTeams']());});function _0x49af40(_0x5cf67b){const _0x3708d1=_0x62507;_0x15b93a[_0x3708d1(0x1ce6)]=_0x5cf67b||{'count':0x0,'rows':[]};}function _0x203168(){const _0x38baf8=_0x62507;_0x15b93a[_0x38baf8(0x289a)][_0x38baf8(0x24f9)]=(_0x15b93a[_0x38baf8(0x289a)]['page']-0x1)*_0x15b93a[_0x38baf8(0x289a)]['limit'],_0x1488b7[_0x38baf8(0x4de)]('admin')?_0x15b93a[_0x38baf8(0x1713)]=_0x57eba6[_0x38baf8(0x15ea)][_0x38baf8(0x896)](_0x15b93a[_0x38baf8(0x289a)],_0x49af40)[_0x38baf8(0x15e7)]:(_0x15b93a['query']['id']=_0x15b93a['userProfile']['id'],_0x15b93a[_0x38baf8(0x289a)][_0x38baf8(0xa21)]='Teams',_0x15b93a[_0x38baf8(0x1713)]=_0x57eba6[_0x38baf8(0x16a8)][_0x38baf8(0x2565)](_0x15b93a[_0x38baf8(0x289a)],_0x49af40)['$promise']);}function _0x1ca429(_0x5d6b5e,_0x2e5e01){const _0x1c3c91=_0x62507;_0x1e7ea5[_0x1c3c91(0xa60)]({'controller':_0x1c3c91(0x296e),'controllerAs':'vm','templateUrl':_0x30741d,'parent':angular[_0x1c3c91(0x1f81)](_0x42bd1d['body']),'targetEvent':_0x5d6b5e,'clickOutsideToClose':!![],'locals':{'team':_0x2e5e01,'teams':_0x15b93a[_0x1c3c91(0x1ce6)]['rows'],'license':_0x15b93a[_0x1c3c91(0x1947)],'setting':_0x15b93a[_0x1c3c91(0x28d6)],'crudPermissions':_0x15b93a[_0x1c3c91(0x402)]}});}function _0x597945(_0x39a883){const _0x36051c=_0x62507;_0x57eba6[_0x36051c(0x15ea)]['delete']({'id':_0x39a883['id']})['$promise'][_0x36051c(0x64a)](function(){const _0x560a68=_0x36051c;_0x28c606()['remove'](_0x15b93a[_0x560a68(0x1ce6)][_0x560a68(0x28b8)],{'id':_0x39a883['id']}),_0x15b93a['teams'][_0x560a68(0xb90)]-=0x1,!_0x15b93a[_0x560a68(0x1ce6)][_0x560a68(0x28b8)][_0x560a68(0x1b9e)]&&_0x15b93a[_0x560a68(0x151d)](),_0x577391['success']({'title':_0x28c606()[_0x560a68(0xc01)](_0x560a68(0x102c))+_0x560a68(0x2502),'msg':_0x39a883['name']?_0x39a883[_0x560a68(0x2494)]+_0x560a68(0x1fa8):''});})['catch'](function(_0x2ea8cf){const _0x3814c3=_0x36051c;if(_0x2ea8cf[_0x3814c3(0x1c52)]&&_0x2ea8cf[_0x3814c3(0x1c52)][_0x3814c3(0xbae)]&&_0x2ea8cf[_0x3814c3(0x1c52)]['errors'][_0x3814c3(0x1b9e)]){_0x15b93a[_0x3814c3(0xbae)]=_0x2ea8cf[_0x3814c3(0x1c52)]['errors']||[{'message':_0x2ea8cf['toString'](),'type':_0x3814c3(0x2960)}];for(let _0x5e63f7=0x0;_0x5e63f7<_0x2ea8cf[_0x3814c3(0x1c52)][_0x3814c3(0xbae)][_0x3814c3(0x1b9e)];_0x5e63f7++){_0x577391[_0x3814c3(0x1bd0)]({'title':_0x2ea8cf[_0x3814c3(0x1c52)][_0x3814c3(0xbae)][_0x5e63f7][_0x3814c3(0x2185)],'msg':_0x2ea8cf['data'][_0x3814c3(0xbae)][_0x5e63f7][_0x3814c3(0x18ca)]});}}else _0x577391[_0x3814c3(0x1bd0)]({'title':_0x2ea8cf[_0x3814c3(0x10b3)]?_0x3814c3(0x575)+_0x2ea8cf['status']+_0x3814c3(0x21db)+_0x2ea8cf['statusText']:_0x3814c3(0x2960),'msg':_0x2ea8cf['data']?JSON[_0x3814c3(0x2317)](_0x2ea8cf[_0x3814c3(0x1c52)][_0x3814c3(0x18ca)]):_0x2ea8cf[_0x3814c3(0x18ca)]||_0x2ea8cf['toString']()});});}function _0x517b94(){const _0x5e8cb8=_0x62507,_0x2ae437=angular[_0x5e8cb8(0x289e)](_0x15b93a[_0x5e8cb8(0x227f)]);return _0x15b93a['selectedTeams']=[],_0x2ae437;}function _0x34aa2e(_0x1b5df3){const _0x59e98c=_0x62507,_0xbd6e6f=_0x1e7ea5[_0x59e98c(0x856)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20teams?')[_0x59e98c(0x33a)](_0x59e98c(0x50b)+_0x15b93a['selectedTeams'][_0x59e98c(0x1b9e)]+_0x59e98c(0x163e)+_0x59e98c(0x4b8))[_0x59e98c(0x213e)](_0x59e98c(0x1f98))['targetEvent'](_0x1b5df3)['ok']('OK')[_0x59e98c(0x101a)](_0x59e98c(0x18fd));_0x1e7ea5[_0x59e98c(0xa60)](_0xbd6e6f)['then'](function(){const _0x2a3ab0=_0x59e98c;_0x15b93a['selectedTeams']['forEach'](function(_0x2bc66d){_0x597945(_0x2bc66d);}),_0x15b93a[_0x2a3ab0(0x227f)]=[];});}function _0x12808f(){const _0x1679d4=_0x62507;_0x15b93a[_0x1679d4(0x227f)]=[];}function _0x1fc83f(){const _0x17adbb=_0x62507;_0x15b93a[_0x17adbb(0x227f)]=_0x15b93a['teams'][_0x17adbb(0x28b8)];}}const _0x3b7f7c=_0x2d046e;;_0x44b4a1[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$state','$location','$mdDialog','$q','$translate',_0x49a1e3(0x680),_0x49a1e3(0xf2e),_0x49a1e3(0x1782),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x44b4a1(_0x4bc40b,_0x4a2f46,_0x460cb5,_0x4dc5e7,_0x5d1d60,_0x4e1022,_0x3250a9,_0x5783dc,_0x115e09,_0x3bc074,_0x55a046,_0x4bb7eb,_0x112621,_0x1f31e6){const _0x11706e=_0x49a1e3,_0x503b6b=this;_0x503b6b[_0x11706e(0x1d3d)]=_0x55a046[_0x11706e(0x808)](),_0x503b6b['errors']=[],_0x503b6b[_0x11706e(0x28d6)]=_0x112621,_0x503b6b[_0x11706e(0x1947)]=_0x4bb7eb,_0x503b6b['crudPermissions']=_0x1f31e6,_0x503b6b[_0x11706e(0x6c2)]={},_0x503b6b[_0x11706e(0xccc)]=_0x503b6b[_0x11706e(0x28d6)]&&_0x503b6b['setting'][_0x11706e(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x503b6b['title']=_0x11706e(0x114a),_0x503b6b[_0x11706e(0x1782)]=angular[_0x11706e(0x289e)](_0x115e09),_0x503b6b[_0x11706e(0xf2e)]=_0x5783dc,_0x503b6b[_0x11706e(0x1d9b)]=![];!_0x503b6b[_0x11706e(0x1782)]&&(_0x503b6b[_0x11706e(0x1782)]={'role':_0x11706e(0x1782),'autointernal':!![],'context':_0x11706e(0x275)},_0x503b6b[_0x11706e(0x2021)]=_0x11706e(0x12f0),_0x503b6b['newTelephone']=!![]);_0x503b6b[_0x11706e(0x1bff)]=_0x4f4b10,_0x503b6b[_0x11706e(0xac0)]=_0x3478d8,_0x503b6b[_0x11706e(0x1aec)]=_0x5a6ca2,_0x503b6b['getDateFromString']=_0x573aca,_0x503b6b[_0x11706e(0x16cb)]=_0x98d715;function _0x4f4b10(){const _0x1f3a96=_0x11706e;_0x503b6b[_0x1f3a96(0xbae)]=[],_0x3bc074[_0x1f3a96(0x2e8)][_0x1f3a96(0x2479)](_0x503b6b[_0x1f3a96(0x1782)])[_0x1f3a96(0x15e7)]['then'](function(_0x25f67c){const _0x2d13c1=_0x1f3a96;_0x503b6b[_0x2d13c1(0xf2e)][_0x2d13c1(0x1891)](_0x25f67c[_0x2d13c1(0x14f8)]()),_0x3250a9[_0x2d13c1(0x1339)]({'title':_0x2d13c1(0x255d),'msg':_0x503b6b[_0x2d13c1(0x1782)]['name']?_0x503b6b[_0x2d13c1(0x1782)][_0x2d13c1(0x2494)]+_0x2d13c1(0x258d):''}),_0x98d715(_0x25f67c);})['catch'](function(_0x4ceee7){const _0x5b81eb=_0x1f3a96;if(_0x4ceee7[_0x5b81eb(0x1c52)]&&_0x4ceee7[_0x5b81eb(0x1c52)]['errors']&&_0x4ceee7[_0x5b81eb(0x1c52)][_0x5b81eb(0xbae)][_0x5b81eb(0x1b9e)]){_0x503b6b['errors']=_0x4ceee7[_0x5b81eb(0x1c52)]['errors']||[{'message':_0x4ceee7['toString'](),'type':'api.user.save'}];for(let _0x18bacc=0x0;_0x18bacc<_0x4ceee7[_0x5b81eb(0x1c52)][_0x5b81eb(0xbae)][_0x5b81eb(0x1b9e)];_0x18bacc+=0x1){_0x3250a9[_0x5b81eb(0x1bd0)]({'title':_0x4ceee7['data']['errors'][_0x18bacc][_0x5b81eb(0x2185)],'msg':_0x4ceee7[_0x5b81eb(0x1c52)][_0x5b81eb(0xbae)][_0x18bacc][_0x5b81eb(0x18ca)]});}}else _0x3250a9[_0x5b81eb(0x1bd0)]({'title':_0x4ceee7[_0x5b81eb(0x10b3)]?_0x5b81eb(0x575)+_0x4ceee7[_0x5b81eb(0x10b3)]+'\x20-\x20'+_0x4ceee7[_0x5b81eb(0x2115)]:_0x5b81eb(0xdf7),'msg':_0x4ceee7[_0x5b81eb(0x1c52)]?JSON[_0x5b81eb(0x2317)](_0x4ceee7[_0x5b81eb(0x1c52)]['message']):_0x4ceee7[_0x5b81eb(0x2915)]()});});}function _0x3478d8(){const _0x43f588=_0x11706e;_0x503b6b[_0x43f588(0xbae)]=[],_0x3bc074[_0x43f588(0x2e8)]['update']({'id':_0x503b6b[_0x43f588(0x1782)]['id']},_0x503b6b[_0x43f588(0x1782)])[_0x43f588(0x15e7)]['then'](function(_0x39d2d5){const _0x409354=_0x43f588,_0x1c5fae=_0x28c606()[_0x409354(0x27bc)](_0x503b6b['telephones'],{'id':_0x39d2d5['id']});_0x1c5fae&&_0x28c606()[_0x409354(0x14fe)](_0x1c5fae,_0x28c606()[_0x409354(0x27bb)](_0x39d2d5['toJSON'](),_0x28c606()[_0x409354(0x1ec6)](_0x1c5fae))),_0x3250a9[_0x409354(0x1339)]({'title':_0x409354(0x33e),'msg':_0x503b6b['telephone'][_0x409354(0x2494)]?_0x503b6b[_0x409354(0x1782)][_0x409354(0x2494)]+_0x409354(0x271):''}),_0x98d715(_0x39d2d5);})['catch'](function(_0x3bc59e){const _0x2e242c=_0x43f588;if(_0x3bc59e['data']&&_0x3bc59e[_0x2e242c(0x1c52)][_0x2e242c(0xbae)]&&_0x3bc59e[_0x2e242c(0x1c52)][_0x2e242c(0xbae)]['length']){_0x503b6b[_0x2e242c(0xbae)]=_0x3bc59e[_0x2e242c(0x1c52)][_0x2e242c(0xbae)]||[{'message':_0x3bc59e[_0x2e242c(0x2915)](),'type':_0x2e242c(0x15e5)}];for(let _0x3b7f7a=0x0;_0x3b7f7a<_0x3bc59e[_0x2e242c(0x1c52)]['errors'][_0x2e242c(0x1b9e)];_0x3b7f7a++){_0x3250a9['error']({'title':_0x3bc59e[_0x2e242c(0x1c52)][_0x2e242c(0xbae)][_0x3b7f7a][_0x2e242c(0x2185)],'msg':_0x3bc59e['data'][_0x2e242c(0xbae)][_0x3b7f7a][_0x2e242c(0x18ca)]});}}else _0x3250a9[_0x2e242c(0x1bd0)]({'title':_0x3bc59e[_0x2e242c(0x10b3)]?_0x2e242c(0x575)+_0x3bc59e['status']+_0x2e242c(0x21db)+_0x3bc59e[_0x2e242c(0x2115)]:_0x2e242c(0x15e5),'msg':_0x3bc59e[_0x2e242c(0x1c52)]?JSON[_0x2e242c(0x2317)](_0x3bc59e['data'][_0x2e242c(0x18ca)]):_0x3bc59e[_0x2e242c(0x2915)]()});});}function _0x5a6ca2(_0x148fa8){const _0x26a764=_0x11706e;_0x503b6b[_0x26a764(0xbae)]=[];const _0x12696c=_0x4dc5e7[_0x26a764(0x856)]()[_0x26a764(0x2021)](_0x26a764(0x103a))[_0x26a764(0x12b8)](_0x26a764(0x26c9))[_0x26a764(0x213e)](_0x26a764(0x11f3))['ok'](_0x26a764(0x2664))[_0x26a764(0x101a)](_0x26a764(0x1dc6))[_0x26a764(0x2283)](_0x148fa8);_0x4dc5e7[_0x26a764(0xa60)](_0x12696c)[_0x26a764(0x64a)](function(){const _0x482aff=_0x26a764;_0x3bc074[_0x482aff(0x2e8)]['delete']({'id':_0x503b6b[_0x482aff(0x1782)]['id']})[_0x482aff(0x15e7)][_0x482aff(0x64a)](function(){const _0x3f0ab6=_0x482aff;_0x28c606()['remove'](_0x503b6b[_0x3f0ab6(0xf2e)],{'id':_0x503b6b['telephone']['id']}),_0x3250a9[_0x3f0ab6(0x1339)]({'title':_0x3f0ab6(0x4f6),'msg':(_0x503b6b[_0x3f0ab6(0x1782)][_0x3f0ab6(0x2494)]||'telephone')+_0x3f0ab6(0x1fa8)}),_0x98d715(_0x503b6b['telephone']);})['catch'](function(_0x5e1287){const _0x4f6a38=_0x482aff;if(_0x5e1287[_0x4f6a38(0x1c52)]&&_0x5e1287[_0x4f6a38(0x1c52)][_0x4f6a38(0xbae)]&&_0x5e1287[_0x4f6a38(0x1c52)][_0x4f6a38(0xbae)]['length']){_0x503b6b[_0x4f6a38(0xbae)]=_0x5e1287[_0x4f6a38(0x1c52)]['errors']||[{'message':_0x5e1287[_0x4f6a38(0x2915)](),'type':_0x4f6a38(0x13b8)}];for(let _0x5c1077=0x0;_0x5c1077<_0x5e1287['data']['errors']['length'];_0x5c1077++){_0x3250a9[_0x4f6a38(0x1bd0)]({'title':_0x5e1287[_0x4f6a38(0x1c52)][_0x4f6a38(0xbae)][_0x5c1077][_0x4f6a38(0x2185)],'msg':_0x5e1287[_0x4f6a38(0x1c52)][_0x4f6a38(0xbae)][_0x5c1077][_0x4f6a38(0x18ca)]});}}else _0x3250a9[_0x4f6a38(0x1bd0)]({'title':_0x5e1287[_0x4f6a38(0x10b3)]?_0x4f6a38(0x575)+_0x5e1287[_0x4f6a38(0x10b3)]+'\x20-\x20'+_0x5e1287['statusText']:_0x4f6a38(0x13b8),'msg':_0x5e1287['data']?JSON['stringify'](_0x5e1287['data'][_0x4f6a38(0x18ca)]):_0x5e1287[_0x4f6a38(0x18ca)]||_0x5e1287[_0x4f6a38(0x2915)]()});});},function(){});}function _0x573aca(_0x441f89){return _0x441f89===null?undefined:new Date(_0x441f89);}function _0x98d715(_0x5e02be){const _0x25392f=_0x11706e;_0x4dc5e7[_0x25392f(0x268e)](_0x5e02be);}}const _0x184614=_0x44b4a1;;_0x1b5e0c[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$mdDialog',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x1782),_0x49a1e3(0x28d6),_0x49a1e3(0xdcf)];function _0x1b5e0c(_0x205435,_0x3d6179,_0x3e8f07,_0x150b0a,_0xb6cfa8,_0xa4a85c,_0x5d6844){const _0x1f6e92=_0x49a1e3,_0xd305be=this;_0xd305be[_0x1f6e92(0x1d3d)]=_0x5d6844['getCurrentUser'](),_0xd305be[_0x1f6e92(0xbae)]=[],_0xd305be['setting']=_0xa4a85c,_0xd305be[_0x1f6e92(0xccc)]=_0xd305be[_0x1f6e92(0x28d6)][_0x1f6e92(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xd305be[_0x1f6e92(0x1782)]=_0xb6cfa8,_0xd305be[_0x1f6e92(0x441)]='',_0xd305be[_0x1f6e92(0x1d9)]='',_0xd305be[_0x1f6e92(0xb7e)]=_0x1b8215,_0xd305be['closeDialog']=_0x50843a,_0x205435['$watch'](_0x1f6e92(0x8c3),function(_0x34e900){const _0x361db4=_0x1f6e92;!_0x28c606()['isNil'](_0xd305be[_0x361db4(0x1d9)])&&(_0x34e900===_0xd305be[_0x361db4(0x1d9)]?_0x205435[_0x361db4(0x17b)][_0x361db4(0x441)][_0x361db4(0x1737)](_0x361db4(0x24a0),![]):_0x205435[_0x361db4(0x17b)]['password'][_0x361db4(0x1737)](_0x361db4(0x24a0),!![]));});function _0x1b8215(){const _0x2d71cc=_0x1f6e92;_0xd305be[_0x2d71cc(0xbae)]=[];const _0x1d0acb={'id':_0xd305be['telephone']['id'],'newPassword':_0xd305be['password']};_0xd305be[_0x2d71cc(0x1d3d)]['id']==_0xd305be['telephone']['id']&&(_0x1d0acb[_0x2d71cc(0x1d9)]=_0xd305be[_0x2d71cc(0x1d9)]),_0x150b0a['user'][_0x2d71cc(0x56d)](_0x1d0acb)[_0x2d71cc(0x15e7)][_0x2d71cc(0x64a)](function(){const _0x4a4108=_0x2d71cc;_0x3e8f07[_0x4a4108(0x1339)]({'title':'Telephone\x20password\x20properly\x20updated!'}),_0x50843a();})[_0x2d71cc(0x20cd)](function(_0x18052a){const _0x2682f6=_0x2d71cc;_0x3e8f07[_0x2682f6(0x1bd0)]({'title':_0x18052a[_0x2682f6(0x10b3)]?'API:'+_0x18052a[_0x2682f6(0x10b3)]+_0x2682f6(0x21db)+_0x18052a[_0x2682f6(0x2115)]:_0x2682f6(0x11e5),'msg':_0x18052a[_0x2682f6(0x1c52)]?JSON[_0x2682f6(0x2317)](_0x18052a['data'][_0x2682f6(0x18ca)]):_0x18052a['toString']()}),_0xd305be[_0x2682f6(0xbae)]=_0x18052a[_0x2682f6(0x1c52)][_0x2682f6(0xbae)]||[{'message':_0x18052a['toString'](),'type':'api.telephone.changePassword'}];});}function _0x50843a(){const _0x2e1ffe=_0x1f6e92;_0x3d6179[_0x2e1ffe(0x268e)]();}}const _0x417c8d=_0x1b5e0c;;const _0x896485=_0x2e4a48['p']+'src/js/modules/main/apps/staff/views/telephones/edit/changepassword/changepassword.html/changepassword.html';;_0x1ef2c1['$inject']=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),'setting',_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),'telephone',_0x49a1e3(0x16b2)];function _0x1ef2c1(_0x4a68e0,_0xcf774e,_0x51083d,_0x4e3284,_0x1d61ac,_0xb6eade,_0x1b8ac9,_0x532cd2,_0x484259,_0x2dd413,_0x282fc7,_0x5dacfa){const _0x3f7c9a=_0x49a1e3,_0x332c8c=this;_0x332c8c['currentUser']=_0x2dd413[_0x3f7c9a(0x808)](),_0x332c8c['license']=_0xb6eade,_0x332c8c[_0x3f7c9a(0x28d6)]=_0x1b8ac9,_0x332c8c[_0x3f7c9a(0xccc)]=_0x332c8c[_0x3f7c9a(0x28d6)][_0x3f7c9a(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x332c8c[_0x3f7c9a(0xb36)]=_0xcf774e[_0x3f7c9a(0x48e)]()+_0x3f7c9a(0xe1f)+_0xcf774e[_0x3f7c9a(0x1e5d)](),_0x332c8c[_0x3f7c9a(0x1782)]=_0x282fc7||_0x4a68e0[_0x3f7c9a(0x1b48)][_0x3f7c9a(0x1782)]||{},_0x332c8c['userProfileSection']=_0x5dacfa&&_0x5dacfa[_0x3f7c9a(0xb90)]==0x1?_0x5dacfa[_0x3f7c9a(0x28b8)][0x0]:null,_0x332c8c[_0x3f7c9a(0x402)]=_0x2dd413[_0x3f7c9a(0xa7e)](_0x332c8c[_0x3f7c9a(0x16b2)]?_0x332c8c[_0x3f7c9a(0x16b2)][_0x3f7c9a(0x402)]:null),_0x332c8c[_0x3f7c9a(0x6c2)]={},_0x332c8c[_0x3f7c9a(0x197c)]=_0x4a68e0[_0x3f7c9a(0x1b48)]['tab']||0x0,_0x332c8c['changepassworddialog']=_0x26df5b,_0x332c8c[_0x3f7c9a(0x2540)]=_0x484259['info'],_0x332c8c[_0x3f7c9a(0x1f6b)]=_0x4f6fed,_0x332c8c['saveTelephone']=_0x18dd4e,_0x2dd413[_0x3f7c9a(0x4de)](_0x3f7c9a(0x333))?_0x532cd2['voiceContext'][_0x3f7c9a(0x896)]({'fields':_0x3f7c9a(0x1427),'sort':'name'})[_0x3f7c9a(0x15e7)][_0x3f7c9a(0x64a)](function(_0x837d47){const _0x55bd60=_0x3f7c9a;_0x332c8c[_0x55bd60(0xad1)]=_0x837d47[_0x55bd60(0x28b8)]||[];})[_0x3f7c9a(0x20cd)](function(_0x165abe){const _0x4ef7a7=_0x3f7c9a;_0x484259[_0x4ef7a7(0x1bd0)]({'title':_0x165abe['status']?_0x4ef7a7(0x575)+_0x165abe[_0x4ef7a7(0x10b3)]+_0x4ef7a7(0x21db)+_0x165abe[_0x4ef7a7(0x2115)]:_0x4ef7a7(0xbea),'msg':_0x165abe[_0x4ef7a7(0x1c52)]?JSON[_0x4ef7a7(0x2317)](_0x165abe[_0x4ef7a7(0x1c52)]):_0x165abe[_0x4ef7a7(0x2915)]()});}):_0x532cd2['voiceContext'][_0x3f7c9a(0x896)]({'fields':_0x3f7c9a(0x1427),'sort':'name'})[_0x3f7c9a(0x15e7)][_0x3f7c9a(0x64a)](function(_0x13d1cd){const _0x4c7a9c=_0x3f7c9a;_0x332c8c[_0x4c7a9c(0xad1)]=_0x13d1cd[_0x4c7a9c(0x28b8)]||[];})['then'](function(){const _0x529561=_0x3f7c9a;return _0x532cd2[_0x529561(0x16b2)]['get']({'userProfileId':_0x332c8c['currentUser'][_0x529561(0x21ac)],'sectionId':0x195})[_0x529561(0x15e7)];})[_0x3f7c9a(0x64a)](function(_0x3b4a5c){const _0x4357a0=_0x3f7c9a,_0xa90b99=_0x3b4a5c&&_0x3b4a5c[_0x4357a0(0x28b8)]?_0x3b4a5c[_0x4357a0(0x28b8)][0x0]:null;if(!_0xa90b99)return _0x532cd2[_0x4357a0(0x1faa)]['get']({'fields':'id,name','sort':_0x4357a0(0x2494),'defaultEntry':0x1})['$promise'][_0x4357a0(0x64a)](function(_0x373e60){const _0x5d4a27=_0x4357a0;_0x332c8c[_0x5d4a27(0xad1)]=_0x373e60[_0x5d4a27(0x28b8)]||[];});else{if(!_0xa90b99['autoAssociation'])return _0x532cd2['userProfileResource'][_0x4357a0(0x896)]({'sectionId':_0xa90b99['id']})[_0x4357a0(0x15e7)]['then'](function(_0x306b67){const _0x526484=_0x4357a0,_0x2afb02=_0x28c606()[_0x526484(0x1de5)](_0x306b67['rows'],function(_0x13e8d7){const _0x647a72=_0x526484;return _0x28c606()['find'](_0x332c8c[_0x647a72(0xad1)],{'id':_0x13e8d7['resourceId']});});let _0x1ec835=null;_0x332c8c['telephone']&&(_0x1ec835=_0x28c606()[_0x526484(0x27bc)](_0x332c8c[_0x526484(0xad1)],{'name':_0x332c8c[_0x526484(0x1782)]['context']}));if(_0x1ec835&&!_0x28c606()[_0x526484(0x25f8)](_0x2afb02,['id',_0x1ec835['id']])){const _0x24895e=_0x28c606()[_0x526484(0x27bc)](_0x332c8c[_0x526484(0xad1)],{'id':_0x1ec835['id']});_0x24895e[_0x526484(0xd4f)]=![],_0x2afb02[_0x526484(0x1954)](_0x24895e);}_0x332c8c['contexts']=_0x2afb02;});}})[_0x3f7c9a(0x20cd)](function(_0x5621d3){const _0x24b4e3=_0x3f7c9a;_0x484259[_0x24b4e3(0x1bd0)]({'title':_0x5621d3[_0x24b4e3(0x10b3)]?_0x24b4e3(0x575)+_0x5621d3[_0x24b4e3(0x10b3)]+'\x20-\x20'+_0x5621d3[_0x24b4e3(0x2115)]:'SYSTEM:GETcontexts','msg':_0x5621d3[_0x24b4e3(0x1c52)]?JSON[_0x24b4e3(0x2317)](_0x5621d3[_0x24b4e3(0x1c52)]):_0x5621d3[_0x24b4e3(0x2915)]()});});function _0x26df5b(_0x19a838,_0x31b52c){const _0xd469d8=_0x3f7c9a;_0x51083d[_0xd469d8(0xa60)]({'controller':_0xd469d8(0x1a57),'controllerAs':'vm','templateUrl':_0x896485,'parent':angular[_0xd469d8(0x1f81)](_0x4e3284[_0xd469d8(0xb49)]),'targetEvent':_0x31b52c,'clickOutsideToClose':!![],'locals':{'telephone':_0x19a838,'setting':_0x1b8ac9,'telephones':_0x332c8c['telephones']?_0x332c8c[_0xd469d8(0xf2e)]['rows']:[],'crudPermissions':_0x332c8c['crudPermissions']}});}function _0x4f6fed(){const _0x2a7ae6=_0x3f7c9a;_0x4a68e0['go']('app.staff.telephones',{},{'reload':_0x2a7ae6(0x2703)});}function _0x18dd4e(){const _0x538786=_0x3f7c9a;_0x532cd2['user'][_0x538786(0x2603)]({'id':_0x332c8c[_0x538786(0x1782)]['id']},_0x332c8c['telephone'])['$promise']['then'](function(){const _0x3e6cc2=_0x538786;_0x484259[_0x3e6cc2(0x1339)]({'title':'Telephone\x20updated!','msg':_0x332c8c[_0x3e6cc2(0x1782)][_0x3e6cc2(0x2494)]?_0x332c8c[_0x3e6cc2(0x1782)][_0x3e6cc2(0x2494)]+'\x20has\x20been\x20updated!':''});})[_0x538786(0x20cd)](function(_0x28ecaa){const _0x23f5aa=_0x538786;_0x484259['error']({'title':_0x28ecaa[_0x23f5aa(0x10b3)]?_0x23f5aa(0x575)+_0x28ecaa['status']+_0x23f5aa(0x21db)+_0x28ecaa['statusText']:_0x23f5aa(0x2131),'msg':_0x28ecaa[_0x23f5aa(0x1c52)]?JSON[_0x23f5aa(0x2317)](_0x28ecaa[_0x23f5aa(0x1c52)]):_0x28ecaa[_0x23f5aa(0x2915)]()});});}}const _0x21f406=_0x1ef2c1;;const _0x5ab6fe=_0x2e4a48['p']+'src/js/modules/main/apps/staff/views/telephones/create/dialog.html/dialog.html';;_0xcbb5c8[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),'$state',_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0xf2e),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),'msUtils',_0x49a1e3(0x680),'Auth','license','setting'];function _0xcbb5c8(_0x4ac958,_0xa8470c,_0x22c463,_0x274dd4,_0x548934,_0x2502c1,_0x28d758,_0x6eff6c,_0x2ce1b5,_0x11cc92,_0x1d13f0,_0x2dcc04,_0x286a7d,_0xa448d6,_0x326097,_0x2db680,_0x477fe1){const _0x4b74c8=_0x49a1e3,_0x16e850=this;_0x16e850[_0x4b74c8(0x1947)]=_0x2db680,_0x16e850[_0x4b74c8(0x28d6)]=_0x477fe1,_0x16e850[_0x4b74c8(0x1d3d)]=_0x326097[_0x4b74c8(0x808)](),_0x16e850[_0x4b74c8(0xf2e)]=_0x2ce1b5||{'count':0x0,'rows':[]},_0x16e850[_0x4b74c8(0x16a8)]=_0x11cc92,_0x16e850[_0x4b74c8(0x16b2)]=_0x1d13f0&&_0x1d13f0[_0x4b74c8(0xb90)]==0x1?_0x1d13f0['rows'][0x0]:null,_0x16e850[_0x4b74c8(0x402)]=_0x326097[_0x4b74c8(0xa7e)](_0x16e850[_0x4b74c8(0x16b2)]?_0x16e850['userProfileSection']['crudPermissions']:null),_0x16e850[_0x4b74c8(0x185d)]=_0x4b74c8(0xf2e),_0x16e850[_0x4b74c8(0x300)]='',_0x16e850[_0x4b74c8(0x2748)]=null,_0x16e850[_0x4b74c8(0x3dd)]=[],_0x16e850[_0x4b74c8(0x289a)]={'fields':_0x4b74c8(0x2634),'role':_0x4b74c8(0x1782),'sort':_0x4b74c8(0x260c),'limit':0xa,'page':0x1},_0x16e850[_0x4b74c8(0x7c1)]=_0x28c606()[_0x4b74c8(0x161e)]([{'option':_0x4b74c8(0x241e),'value':'\x27udp\x27'},{'option':'tcp','value':_0x4b74c8(0x1289)},{'option':'ws','value':_0x4b74c8(0x23f6)},{'option':_0x4b74c8(0x10db),'value':_0x4b74c8(0x1a49)},{'option':'tls','value':_0x4b74c8(0x27b2)}],function(_0x2f92ac){const _0x471323=_0x4b74c8;return _0x28c606()['replace'](_0x2f92ac[_0x471323(0x1096)],new RegExp('\x27','g'),'');}),_0x16e850[_0x4b74c8(0x15c0)]=_0x28c606()['keyBy']([{'option':_0x4b74c8(0x28ee),'value':_0x4b74c8(0x9f8)},{'option':_0x4b74c8(0x176a),'value':_0x4b74c8(0x2231)},{'option':_0x4b74c8(0x1d21),'value':_0x4b74c8(0x726)},{'option':'no','value':_0x4b74c8(0x1476)},{'option':_0x4b74c8(0x233a),'value':'\x27never\x27'},{'option':'route','value':_0x4b74c8(0x1057)}],function(_0xc7c3d7){const _0x3b5b44=_0x4b74c8;return _0x28c606()[_0x3b5b44(0x1353)](_0xc7c3d7['value'],new RegExp('\x27','g'),'');}),_0x16e850['arrayallow']=_0x28c606()[_0x4b74c8(0x161e)]([{'option':_0x4b74c8(0x1808),'value':'\x27ulaw\x27'},{'option':'alaw','value':_0x4b74c8(0xc33)},{'option':'gsm','value':'\x27gsm\x27'},{'option':_0x4b74c8(0xfd9),'value':_0x4b74c8(0x2230)},{'option':'g729','value':_0x4b74c8(0x1389)},{'option':_0x4b74c8(0x16d1),'value':_0x4b74c8(0x1b50)},{'option':'h264','value':'\x27h264\x27'}],function(_0x375b14){const _0x1528eb=_0x4b74c8;return _0x28c606()[_0x1528eb(0x1353)](_0x375b14[_0x1528eb(0x1096)],new RegExp('\x27','g'),'');}),_0x16e850[_0x4b74c8(0xb65)]=_0x28c606()['keyBy']([{'option':_0x4b74c8(0x307),'value':_0x4b74c8(0x726)},{'option':'No','value':'\x27no\x27'},{'option':_0x4b74c8(0xfdd),'value':_0x4b74c8(0x1c55)}],function(_0x5c2e61){const _0x4f2ae1=_0x4b74c8;return _0x28c606()[_0x4f2ae1(0x1353)](_0x5c2e61[_0x4f2ae1(0x1096)],new RegExp('\x27','g'),'');}),_0x16e850['arrayencryption']=_0x28c606()['keyBy']([{'option':_0x4b74c8(0x1d21),'value':_0x4b74c8(0x726)},{'option':'no','value':'\x27no\x27'}],function(_0x11ebd5){const _0x1a0df9=_0x4b74c8;return _0x28c606()[_0x1a0df9(0x1353)](_0x11ebd5[_0x1a0df9(0x1096)],new RegExp('\x27','g'),'');}),_0x16e850['editstate']=_0x45ecf4,_0x16e850[_0x4b74c8(0x1262)]=_0x29b1b2,_0x16e850['success']=_0x4495de,_0x16e850[_0x4b74c8(0x21a)]=_0x36053e,_0x16e850[_0x4b74c8(0x10f9)]=_0x4ec48e,_0x16e850['deleteTelephone']=_0x3e28bf,_0x16e850[_0x4b74c8(0x1061)]=_0x414ecf,_0x16e850[_0x4b74c8(0x18f1)]=_0xa9bde6,_0x16e850[_0x4b74c8(0x250f)]=_0x230b0d,_0x16e850['selectAllTelephones']=_0x504c57;function _0x45ecf4(_0x454bab){const _0x366182=_0x4b74c8;_0x22c463['go'](_0x366182(0x1a4f),{'id':_0x454bab['id'],'telephone':_0x454bab,'crudPermissions':_0x16e850[_0x366182(0x402)]});}function _0x29b1b2(_0x37e33f,_0xf6e66f){const _0x5bf31d=_0x4b74c8,_0x2fdb91=_0x548934['confirm']()[_0x5bf31d(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()[_0x5bf31d(0xc01)](_0x5bf31d(0x1782))+'?')['htmlContent'](_0x5bf31d(0x50b)+(_0x37e33f[_0x5bf31d(0x2494)]||_0x5bf31d(0x1782))+_0x5bf31d(0x26d0)+'\x20will\x20be\x20deleted.')[_0x5bf31d(0x213e)](_0x5bf31d(0x1a4b))[_0x5bf31d(0x2283)](_0xf6e66f)['ok']('OK')[_0x5bf31d(0x101a)](_0x5bf31d(0x18fd));_0x548934[_0x5bf31d(0xa60)](_0x2fdb91)['then'](function(){_0x3e28bf(_0x37e33f);},function(){const _0x1b5008=_0x5bf31d;console['log'](_0x1b5008(0x18fd));});}let _0x4952c4=!![],_0x5c4bbe=0x1;_0x4ac958['$watch'](_0x4b74c8(0x1cb9),function(_0x5368c4,_0x1f1275){const _0x28a448=_0x4b74c8;_0x4952c4?_0x28d758(function(){_0x4952c4=![];}):(!_0x1f1275&&(_0x5c4bbe=_0x16e850[_0x28a448(0x289a)][_0x28a448(0xc72)]),_0x5368c4!==_0x1f1275&&(_0x16e850['query']['page']=0x1),!_0x5368c4&&(_0x16e850[_0x28a448(0x289a)][_0x28a448(0xc72)]=_0x5c4bbe),_0x16e850[_0x28a448(0x21a)]());});function _0x4495de(_0x296e78){const _0x1ab0a6=_0x4b74c8;_0x16e850[_0x1ab0a6(0xf2e)]=_0x296e78||{'count':0x0,'rows':[]};}function _0x36053e(){const _0x216d18=_0x4b74c8;_0x16e850[_0x216d18(0x289a)]['offset']=(_0x16e850['query']['page']-0x1)*_0x16e850['query']['limit'],_0x326097[_0x216d18(0x4de)]('admin')?_0x16e850[_0x216d18(0x1713)]=_0x2dcc04[_0x216d18(0x2e8)][_0x216d18(0x896)](_0x16e850[_0x216d18(0x289a)],_0x4495de)[_0x216d18(0x15e7)]:(_0x16e850[_0x216d18(0x289a)]['id']=_0x16e850[_0x216d18(0x16a8)]['id'],_0x16e850['query']['section']=_0x216d18(0xc44),_0x16e850[_0x216d18(0x1713)]=_0x2dcc04[_0x216d18(0x16a8)][_0x216d18(0x2565)](_0x16e850[_0x216d18(0x289a)],_0x4495de)['$promise']);}function _0x4ec48e(_0x4cb558,_0x197dad){const _0x5460d2=_0x4b74c8;_0x548934[_0x5460d2(0xa60)]({'controller':_0x5460d2(0x1f19),'controllerAs':'vm','templateUrl':_0x5ab6fe,'parent':angular[_0x5460d2(0x1f81)](_0x2502c1['body']),'targetEvent':_0x4cb558,'clickOutsideToClose':!![],'locals':{'telephone':_0x197dad,'telephones':_0x16e850[_0x5460d2(0xf2e)][_0x5460d2(0x28b8)],'license':_0x16e850[_0x5460d2(0x1947)],'setting':_0x16e850['setting'],'crudPermissions':_0x16e850[_0x5460d2(0x402)]}});}function _0x3e28bf(_0x27bbbf){const _0x40d509=_0x4b74c8;_0x2dcc04[_0x40d509(0x2e8)][_0x40d509(0xabd)]({'id':_0x27bbbf['id']})[_0x40d509(0x15e7)]['then'](function(){const _0x2397b7=_0x40d509;_0x28c606()['remove'](_0x16e850[_0x2397b7(0xf2e)][_0x2397b7(0x28b8)],{'id':_0x27bbbf['id']}),_0x16e850[_0x2397b7(0xf2e)][_0x2397b7(0xb90)]-=0x1,!_0x16e850[_0x2397b7(0xf2e)][_0x2397b7(0x28b8)][_0x2397b7(0x1b9e)]&&_0x16e850[_0x2397b7(0x21a)](),_0xa448d6['success']({'title':_0x28c606()[_0x2397b7(0xc01)](_0x2397b7(0x1b87))+_0x2397b7(0x2502),'msg':_0x27bbbf['name']?_0x27bbbf[_0x2397b7(0x2494)]+_0x2397b7(0x1fa8):''});})[_0x40d509(0x20cd)](function(_0x507cdf){const _0x2535be=_0x40d509;if(_0x507cdf['data']&&_0x507cdf['data'][_0x2535be(0xbae)]&&_0x507cdf['data'][_0x2535be(0xbae)]['length']){_0x16e850[_0x2535be(0xbae)]=_0x507cdf[_0x2535be(0x1c52)]['errors']||[{'message':_0x507cdf[_0x2535be(0x2915)](),'type':_0x2535be(0x2359)}];for(let _0x3c4930=0x0;_0x3c4930<_0x507cdf['data'][_0x2535be(0xbae)][_0x2535be(0x1b9e)];_0x3c4930++){_0xa448d6['error']({'title':_0x507cdf[_0x2535be(0x1c52)][_0x2535be(0xbae)][_0x3c4930]['type'],'msg':_0x507cdf['data'][_0x2535be(0xbae)][_0x3c4930][_0x2535be(0x18ca)]});}}else _0xa448d6['error']({'title':_0x507cdf[_0x2535be(0x10b3)]?_0x2535be(0x575)+_0x507cdf['status']+'\x20-\x20'+_0x507cdf[_0x2535be(0x2115)]:'SYSTEM:DELETEuser','msg':_0x507cdf[_0x2535be(0x1c52)]?JSON[_0x2535be(0x2317)](_0x507cdf[_0x2535be(0x1c52)][_0x2535be(0x18ca)]):_0x507cdf[_0x2535be(0x18ca)]||_0x507cdf[_0x2535be(0x2915)]()});});}function _0x414ecf(){const _0x1313b2=_0x4b74c8,_0x2d94d7=angular['copy'](_0x16e850[_0x1313b2(0x3dd)]);return _0x16e850[_0x1313b2(0x3dd)]=[],_0x2d94d7;}function _0xa9bde6(_0x259e44){const _0x111f7e=_0x4b74c8,_0x424637=_0x548934[_0x111f7e(0x856)]()[_0x111f7e(0x2021)](_0x111f7e(0x28a))[_0x111f7e(0x33a)](_0x111f7e(0x50b)+_0x16e850['selectedTelephones']['length']+_0x111f7e(0x163e)+'\x20will\x20be\x20deleted.')[_0x111f7e(0x213e)](_0x111f7e(0x27fa))[_0x111f7e(0x2283)](_0x259e44)['ok']('OK')[_0x111f7e(0x101a)]('CANCEL');_0x548934[_0x111f7e(0xa60)](_0x424637)[_0x111f7e(0x64a)](function(){const _0x4874fe=_0x111f7e;_0x16e850[_0x4874fe(0x3dd)]['forEach'](function(_0x34a29e){_0x3e28bf(_0x34a29e);}),_0x16e850[_0x4874fe(0x3dd)]=[];});}function _0x230b0d(){const _0x322940=_0x4b74c8;_0x16e850[_0x322940(0x3dd)]=[];}function _0x504c57(){const _0xe48a3c=_0x4b74c8;_0x16e850[_0xe48a3c(0x3dd)]=_0x16e850['telephones']['rows'];}}const _0x932448=_0xcbb5c8;;_0x15f756['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),'userProfiles',_0x49a1e3(0x16a8),_0x49a1e3(0xa19),'Auth','license',_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x15f756(_0x19ba39,_0x202a39,_0x1dc869,_0x28cac8,_0xfa37ae,_0x5030ef,_0x356fe4,_0x13e083,_0x544f46,_0x9fc50f,_0x5b299c,_0x575322,_0x29394c,_0x43bb34){const _0x902c32=_0x49a1e3,_0x4b34a5=this;_0x4b34a5[_0x902c32(0x1d3d)]=_0x5b299c[_0x902c32(0x808)](),_0x4b34a5[_0x902c32(0xbae)]=[],_0x4b34a5['setting']=_0x29394c,_0x4b34a5[_0x902c32(0x1947)]=_0x575322,_0x4b34a5[_0x902c32(0x402)]=_0x43bb34,_0x4b34a5[_0x902c32(0x6c2)]={},_0x4b34a5[_0x902c32(0xccc)]=_0x4b34a5[_0x902c32(0x28d6)]&&_0x4b34a5[_0x902c32(0x28d6)][_0x902c32(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4b34a5['title']='STAFF.EDIT_USERPROFILE',_0x4b34a5[_0x902c32(0x16a8)]=angular[_0x902c32(0x289e)](_0x544f46),_0x4b34a5[_0x902c32(0x7bb)]=_0x13e083,_0x4b34a5[_0x902c32(0x2cb)]=![];!_0x4b34a5[_0x902c32(0x16a8)]&&(_0x4b34a5[_0x902c32(0x16a8)]={'crudPermissions':['r']},_0x4b34a5[_0x902c32(0x2021)]='STAFF.NEW_USERPROFILE',_0x4b34a5[_0x902c32(0x2cb)]=!![]);_0x4b34a5[_0x902c32(0x151)]=_0x56ad01,_0x4b34a5[_0x902c32(0x131e)]=_0x12d69c,_0x4b34a5['deleteUserProfile']=_0x56b6d9,_0x4b34a5[_0x902c32(0x1605)]=_0x2ae65c,_0x4b34a5[_0x902c32(0x16cb)]=_0x4fe2bf;function _0x56ad01(){const _0x4dd803=_0x902c32;_0x4b34a5[_0x4dd803(0xbae)]=[],_0x9fc50f[_0x4dd803(0x16a8)][_0x4dd803(0x2479)](_0x4b34a5[_0x4dd803(0x16a8)])[_0x4dd803(0x15e7)][_0x4dd803(0x64a)](function(_0x508e08){const _0x37514f=_0x4dd803;_0x533a9b(_0x508e08),_0x4b34a5[_0x37514f(0x7bb)][_0x37514f(0x1891)](_0x508e08[_0x37514f(0x14f8)]()),_0x356fe4[_0x37514f(0x1339)]({'title':_0x37514f(0x28a0),'msg':_0x4b34a5[_0x37514f(0x16a8)][_0x37514f(0x2494)]?_0x4b34a5[_0x37514f(0x16a8)][_0x37514f(0x2494)]+_0x37514f(0x258d):''}),_0x4fe2bf(_0x508e08);})[_0x4dd803(0x20cd)](function(_0x52a9ce){const _0x56053a=_0x4dd803;if(_0x52a9ce['data']&&_0x52a9ce[_0x56053a(0x1c52)][_0x56053a(0xbae)]&&_0x52a9ce[_0x56053a(0x1c52)][_0x56053a(0xbae)][_0x56053a(0x1b9e)]){_0x4b34a5[_0x56053a(0xbae)]=_0x52a9ce[_0x56053a(0x1c52)][_0x56053a(0xbae)]||[{'message':_0x52a9ce[_0x56053a(0x2915)](),'type':_0x56053a(0x2b5)}];for(let _0x28ac26=0x0;_0x28ac26<_0x52a9ce['data'][_0x56053a(0xbae)][_0x56053a(0x1b9e)];_0x28ac26+=0x1){_0x356fe4[_0x56053a(0x1bd0)]({'title':_0x52a9ce['data'][_0x56053a(0xbae)][_0x28ac26][_0x56053a(0x2185)],'msg':_0x52a9ce[_0x56053a(0x1c52)]['errors'][_0x28ac26][_0x56053a(0x18ca)]});}}else _0x356fe4[_0x56053a(0x1bd0)]({'title':_0x52a9ce[_0x56053a(0x10b3)]?_0x56053a(0x575)+_0x52a9ce[_0x56053a(0x10b3)]+_0x56053a(0x21db)+_0x52a9ce[_0x56053a(0x2115)]:_0x56053a(0x2b5),'msg':_0x52a9ce[_0x56053a(0x1c52)]?JSON[_0x56053a(0x2317)](_0x52a9ce[_0x56053a(0x1c52)]['message']):_0x52a9ce[_0x56053a(0x2915)]()});});}function _0x12d69c(){const _0x276fce=_0x902c32;_0x4b34a5[_0x276fce(0xbae)]=[],_0x9fc50f['userProfile'][_0x276fce(0x2603)]({'id':_0x4b34a5['userProfile']['id']},_0x4b34a5['userProfile'])[_0x276fce(0x15e7)][_0x276fce(0x64a)](function(_0x3bb084){const _0xab167f=_0x276fce,_0x467b74=_0x28c606()[_0xab167f(0x27bc)](_0x4b34a5['userProfiles'],{'id':_0x3bb084['id']});_0x467b74&&_0x28c606()['merge'](_0x467b74,_0x28c606()[_0xab167f(0x27bb)](_0x3bb084[_0xab167f(0x14f8)](),_0x28c606()[_0xab167f(0x1ec6)](_0x467b74))),_0x356fe4[_0xab167f(0x1339)]({'title':_0xab167f(0x12d2),'msg':_0x4b34a5[_0xab167f(0x16a8)][_0xab167f(0x2494)]?_0x4b34a5[_0xab167f(0x16a8)]['name']+_0xab167f(0x271):''}),_0x4fe2bf(_0x3bb084);})[_0x276fce(0x20cd)](function(_0x1e2bff){const _0x1af09e=_0x276fce;if(_0x1e2bff['data']&&_0x1e2bff['data'][_0x1af09e(0xbae)]&&_0x1e2bff[_0x1af09e(0x1c52)][_0x1af09e(0xbae)][_0x1af09e(0x1b9e)]){_0x4b34a5[_0x1af09e(0xbae)]=_0x1e2bff[_0x1af09e(0x1c52)]['errors']||[{'message':_0x1e2bff[_0x1af09e(0x2915)](),'type':_0x1af09e(0x1771)}];for(let _0x2a7d5a=0x0;_0x2a7d5a<_0x1e2bff['data'][_0x1af09e(0xbae)][_0x1af09e(0x1b9e)];_0x2a7d5a++){_0x356fe4[_0x1af09e(0x1bd0)]({'title':_0x1e2bff[_0x1af09e(0x1c52)]['errors'][_0x2a7d5a][_0x1af09e(0x2185)],'msg':_0x1e2bff[_0x1af09e(0x1c52)][_0x1af09e(0xbae)][_0x2a7d5a][_0x1af09e(0x18ca)]});}}else _0x356fe4[_0x1af09e(0x1bd0)]({'title':_0x1e2bff[_0x1af09e(0x10b3)]?_0x1af09e(0x575)+_0x1e2bff[_0x1af09e(0x10b3)]+'\x20-\x20'+_0x1e2bff[_0x1af09e(0x2115)]:_0x1af09e(0x1771),'msg':_0x1e2bff[_0x1af09e(0x1c52)]?JSON[_0x1af09e(0x2317)](_0x1e2bff[_0x1af09e(0x1c52)]['message']):_0x1e2bff[_0x1af09e(0x2915)]()});});}function _0x56b6d9(_0x6d9500){const _0x2fb255=_0x902c32;_0x4b34a5[_0x2fb255(0xbae)]=[];const _0x386749=_0x28cac8['confirm']()[_0x2fb255(0x2021)](_0x2fb255(0x103a))[_0x2fb255(0x12b8)]('The\x20userProfile\x20will\x20be\x20deleted.')[_0x2fb255(0x213e)](_0x2fb255(0x19f9))['ok'](_0x2fb255(0x2664))[_0x2fb255(0x101a)](_0x2fb255(0x1dc6))['targetEvent'](_0x6d9500);_0x28cac8[_0x2fb255(0xa60)](_0x386749)[_0x2fb255(0x64a)](function(){const _0x471b27=_0x2fb255;_0x9fc50f['userProfile'][_0x471b27(0xabd)]({'id':_0x4b34a5['userProfile']['id']})[_0x471b27(0x15e7)][_0x471b27(0x64a)](function(){const _0x38e06f=_0x471b27;_0x28c606()[_0x38e06f(0x21c7)](_0x4b34a5[_0x38e06f(0x7bb)],{'id':_0x4b34a5[_0x38e06f(0x16a8)]['id']}),_0x356fe4['success']({'title':'UserProfile\x20properly\x20deleted!','msg':(_0x4b34a5[_0x38e06f(0x16a8)][_0x38e06f(0x2494)]||_0x38e06f(0x16a8))+_0x38e06f(0x1fa8)}),_0x4fe2bf(_0x4b34a5['userProfile']);})['catch'](function(_0x12d519){const _0x456e7c=_0x471b27;if(_0x12d519[_0x456e7c(0x1c52)]&&_0x12d519[_0x456e7c(0x1c52)][_0x456e7c(0xbae)]&&_0x12d519['data'][_0x456e7c(0xbae)][_0x456e7c(0x1b9e)]){_0x4b34a5['errors']=_0x12d519[_0x456e7c(0x1c52)][_0x456e7c(0xbae)]||[{'message':_0x12d519[_0x456e7c(0x2915)](),'type':_0x456e7c(0x2337)}];for(let _0x3d4eed=0x0;_0x3d4eed<_0x12d519[_0x456e7c(0x1c52)][_0x456e7c(0xbae)]['length'];_0x3d4eed++){_0x356fe4[_0x456e7c(0x1bd0)]({'title':_0x12d519[_0x456e7c(0x1c52)][_0x456e7c(0xbae)][_0x3d4eed][_0x456e7c(0x2185)],'msg':_0x12d519[_0x456e7c(0x1c52)]['errors'][_0x3d4eed]['message']});}}else _0x356fe4[_0x456e7c(0x1bd0)]({'title':_0x12d519['status']?_0x456e7c(0x575)+_0x12d519[_0x456e7c(0x10b3)]+'\x20-\x20'+_0x12d519['statusText']:_0x456e7c(0x2337),'msg':_0x12d519[_0x456e7c(0x1c52)]?JSON[_0x456e7c(0x2317)](_0x12d519[_0x456e7c(0x1c52)][_0x456e7c(0x18ca)]):_0x12d519[_0x456e7c(0x18ca)]||_0x12d519[_0x456e7c(0x2915)]()});});},function(){});}function _0x533a9b(_0x1747d2){const _0x33082e=_0x902c32,_0x22c629=[];_0x1747d2[_0x33082e(0x402)]['forEach'](function(_0x1e23ae){const _0x319237=_0x33082e;let _0x3a41ab;switch(_0x1e23ae){case'r':_0x3a41ab=_0x319237(0x11b6);break;case'e':_0x3a41ab=_0x319237(0xd7c);break;case'd':_0x3a41ab=_0x319237(0x157);break;}_0x22c629[_0x319237(0x1954)](_0x5030ef[_0x319237(0x2292)](_0x319237(0x1aeb)+_0x3a41ab));}),_0x1747d2[_0x33082e(0x2869)]=_0x22c629[_0x33082e(0x9a6)](',\x20');}function _0x2ae65c(_0xe67a07){return _0xe67a07===null?undefined:new Date(_0xe67a07);}function _0x4fe2bf(_0x5c78a2){const _0x4a573e=_0x902c32;_0x28cac8[_0x4a573e(0x268e)](_0x5c78a2);}}const _0x3c1e38=_0x15f756;;_0x53e84e[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x77f),_0x49a1e3(0x680),'api','userProfile',_0x49a1e3(0x7bb),_0x49a1e3(0x298c)];function _0x53e84e(_0x2b2258,_0x585aa7,_0x407595,_0x208a46,_0x14a3e5,_0x185db7,_0x258ede){const _0x17c61f=_0x49a1e3,_0x4809fe=this;_0x4809fe['newUserProfile']=!![],_0x4809fe[_0x17c61f(0x16a8)]=angular[_0x17c61f(0x289e)](_0x14a3e5),_0x4809fe[_0x17c61f(0x7bb)]=_0x185db7,_0x4809fe[_0x17c61f(0x2021)]=_0x258ede[_0x17c61f(0x2292)]('STAFF.CLONE_USERPROFILE');_0x14a3e5&&_0x14a3e5['name']&&(_0x4809fe[_0x17c61f(0x2021)]+=':\x20'+_0x14a3e5[_0x17c61f(0x2494)]);_0x4809fe[_0x17c61f(0x1ad0)]=_0x262773,_0x4809fe[_0x17c61f(0x16cb)]=_0xa64485;function _0x262773(){const _0x318466=_0x17c61f;return _0x208a46[_0x318466(0x16a8)][_0x318466(0x24b2)]({'id':_0x14a3e5['id']},_0x4809fe[_0x318466(0x16a8)])[_0x318466(0x15e7)][_0x318466(0x64a)](function(_0x139e71){const _0x4f6ed8=_0x318466;_0x2ae890(_0x139e71),_0x4809fe[_0x4f6ed8(0x7bb)][_0x4f6ed8(0x1891)](_0x139e71[_0x4f6ed8(0x14f8)]()),_0x407595['success']({'title':'UserProfile\x20properly\x20cloned','msg':_0x4809fe[_0x4f6ed8(0x16a8)][_0x4f6ed8(0x2494)]?_0x4809fe['userProfile']['name']+'\x20has\x20been\x20cloned!':''}),_0x585aa7['go'](_0x4f6ed8(0x24e3),{'id':_0x139e71['id']}),_0xa64485(_0x139e71);})[_0x318466(0x20cd)](function(_0x1e1427){const _0x497d55=_0x318466;if(_0x1e1427[_0x497d55(0x1c52)]&&_0x1e1427[_0x497d55(0x1c52)][_0x497d55(0xbae)]&&_0x1e1427[_0x497d55(0x1c52)][_0x497d55(0xbae)]['length']){_0x4809fe[_0x497d55(0xbae)]=_0x1e1427[_0x497d55(0x1c52)][_0x497d55(0xbae)]||[{'message':_0x1e1427[_0x497d55(0x2915)](),'type':'api.userProfile.clone'}];for(let _0x337a7b=0x0;_0x337a7b<_0x1e1427[_0x497d55(0x1c52)][_0x497d55(0xbae)][_0x497d55(0x1b9e)];_0x337a7b+=0x1){_0x407595[_0x497d55(0x1bd0)]({'title':_0x1e1427[_0x497d55(0x1c52)][_0x497d55(0xbae)][_0x337a7b][_0x497d55(0x2185)],'msg':_0x1e1427[_0x497d55(0x1c52)][_0x497d55(0xbae)][_0x337a7b][_0x497d55(0x18ca)]});}}else _0x407595[_0x497d55(0x1bd0)]({'title':_0x1e1427[_0x497d55(0x10b3)]?_0x497d55(0x575)+_0x1e1427[_0x497d55(0x10b3)]+'\x20-\x20'+_0x1e1427[_0x497d55(0x2115)]:_0x497d55(0x1bed),'msg':_0x1e1427[_0x497d55(0x1c52)]?JSON['stringify'](_0x1e1427[_0x497d55(0x1c52)]['message']):_0x1e1427[_0x497d55(0x2915)]()});});}function _0x2ae890(_0x436881){const _0x1f9356=_0x17c61f,_0x19ec38=[];_0x436881[_0x1f9356(0x402)][_0x1f9356(0x1397)](function(_0x5b1c62){const _0xdb4f59=_0x1f9356;let _0x3481c5;switch(_0x5b1c62){case'r':_0x3481c5=_0xdb4f59(0x11b6);break;case'e':_0x3481c5=_0xdb4f59(0xd7c);break;case'd':_0x3481c5=_0xdb4f59(0x157);break;}_0x19ec38['push'](_0x258ede[_0xdb4f59(0x2292)](_0xdb4f59(0x1aeb)+_0x3481c5));}),_0x436881['selectedcrudPermissions']=_0x19ec38[_0x1f9356(0x9a6)](',\x20');}function _0xa64485(_0x5197b3){const _0x14afd7=_0x17c61f;_0x2b2258[_0x14afd7(0x268e)](_0x5197b3);}}const _0xf3fb26=_0x53e84e;;const _0x291e17=_0x2e4a48['p']+_0x49a1e3(0x90d);;_0x43cd1c['$inject']=['$document','$mdDialog',_0x49a1e3(0x298c),'$q','api',_0x49a1e3(0xbe5),_0x49a1e3(0xdcf),_0x49a1e3(0x680)];function _0x43cd1c(_0x4f17b4,_0x4c2a26,_0xb6a8ec,_0x5cd597,_0x2a655e,_0x3b3764,_0x319648,_0x5a543e){const _0x31923f=_0x49a1e3,_0x32cdef=this;_0x32cdef[_0x31923f(0x16a8)]={},_0x32cdef[_0x31923f(0x1947)]={},_0x32cdef[_0x31923f(0x190b)]=_0x3b3764['getNavigation'](),_0x32cdef[_0x31923f(0x1049)]=_0x32cdef[_0x31923f(0x190b)][0x0][_0x31923f(0x1730)],_0x32cdef[_0x31923f(0x12c6)]=[{'id':0x0,'name':_0x31923f(0x1121),'color':_0x31923f(0x1b61),'info':'All\x20resources\x20enabled','tag':_0x31923f(0x2795)},{'id':0x1,'name':_0x31923f(0x1e40),'color':_0x31923f(0x2552),'info':_0x31923f(0x6e4),'tag':'partial'},{'id':0x2,'name':_0x31923f(0x1e7d),'color':_0x31923f(0x1d18),'info':'No\x20resources\x20enabled','tag':_0x31923f(0x1a95)},{'id':0x3,'name':_0x31923f(0x6b2),'color':_0x31923f(0x1108),'info':_0x31923f(0x16bf),'tag':_0x31923f(0x1dc2)},{'id':0x4,'name':'Unknown','color':_0x31923f(0x1325),'info':_0x31923f(0x27f4),'tag':_0x31923f(0x1191)}],_0x32cdef[_0x31923f(0x27e9)]=[{'title':_0x31923f(0x1825),'translate':_0x31923f(0x28fe),'id':0x64}],_0x32cdef['init']=_0x2a237f,_0x32cdef[_0x31923f(0x1385)]=_0x27645c,_0x32cdef[_0x31923f(0xeb3)]=_0x5eb4f8,_0x32cdef[_0x31923f(0x1987)]=_0x18af46;function _0x2a237f(_0x1d3e1f,_0x465ac9){const _0x11d620=_0x31923f;_0x32cdef[_0x11d620(0x16a8)]=_0x1d3e1f,_0x32cdef[_0x11d620(0x1947)]=_0x465ac9;}function _0x27645c(_0x484373){const _0x431c02=_0x31923f,_0x255f50=typeof _0x484373['permissions']!==_0x431c02(0x19a1)&&!_0x484373[_0x431c02(0x1f33)]['association']?!![]:![],_0x2e5b94=_0x484373[_0x431c02(0x2021)]===_0x431c02(0xad3)?'AppZone':_0x484373[_0x431c02(0x2021)];if(_0x484373[_0x431c02(0x10b3)][_0x431c02(0x2494)]!==_0x431c02(0x1121)){const _0x54f3c6=[];if(!_0x255f50){const _0x1368f7=_0x4c2a26[_0x431c02(0x856)]({'skipHide':!![]})['title'](_0x431c02(0x277b))[_0x431c02(0x250d)](_0xb6a8ec[_0x431c02(0x2292)](_0x431c02(0x6bd),{'sectionName':_0xb6a8ec[_0x431c02(0x2292)](_0x484373[_0x431c02(0x1f28)])}))[_0x431c02(0x213e)](_0x431c02(0x277b))['ok'](_0xb6a8ec[_0x431c02(0x2292)]('STAFF.CONFIRM'))['cancel'](_0xb6a8ec[_0x431c02(0x2292)](_0x431c02(0x4f5)));_0x4c2a26['show'](_0x1368f7)[_0x431c02(0x64a)](function(){const _0x54ac31=_0x431c02;switch(_0x2e5b94){case'Dashboards':_0x28c606()['map'](_0x32cdef[_0x54ac31(0x27e9)],function(_0x28124c){const _0xa550db=_0x54ac31;_0x54f3c6['push']({'category':_0x2e5b94,'sectionId':_0x28124c['id'],'name':_0x28124c[_0xa550db(0x2021)],'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x28c606()[_0xa550db(0x1de5)](_0x32cdef[_0xa550db(0x16a8)]['crudPermissions'])[_0xa550db(0x9a6)]('')});});break;default:_0x28c606()['map'](_0x484373[_0x54ac31(0x1730)],function(_0x2fcedc){const _0x1051b2=_0x54ac31,_0x2e10e1=typeof _0x2fcedc['permissions']!='undefined'&&_0x2fcedc[_0x1051b2(0x1f33)]['hidden']?!![]:![];if(!_0x2e10e1){let _0x2d00f7=_0x2fcedc[_0x1051b2(0x2021)];switch(_0x2e5b94){case _0x1051b2(0xab1):_0x2d00f7=_0x2d00f7==='Projects'?_0x1051b2(0x9f4):_0x2d00f7;break;}_0x54f3c6[_0x1051b2(0x1954)]({'category':_0x2e5b94,'sectionId':_0x2fcedc['id'],'name':_0x2d00f7,'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x28c606()['map'](_0x32cdef[_0x1051b2(0x16a8)]['crudPermissions'])['join']('')});}});break;}return _0x2a655e[_0x54ac31(0x16a8)]['addSections']({'id':_0x32cdef[_0x54ac31(0x16a8)]['id']},_0x54f3c6)[_0x54ac31(0x15e7)][_0x54ac31(0x64a)](function(){const _0xc21335=_0x54ac31;_0x484373[_0xc21335(0x10b3)]=_0x4dfc48(_0x484373,_0xc21335(0x2795)),_0x5a543e['success']({'title':_0xb6a8ec[_0xc21335(0x2292)](_0xc21335(0x11c9),{'sectionName':_0xb6a8ec[_0xc21335(0x2292)](_0x484373[_0xc21335(0x1f28)]),'userProfileName':_0x32cdef['userProfile'][_0xc21335(0x2494)]}),'msg':_0xb6a8ec[_0xc21335(0x2292)](_0xc21335(0x744),{'sectionName':_0xb6a8ec[_0xc21335(0x2292)](_0x484373[_0xc21335(0x1f28)]),'userProfileName':_0x32cdef[_0xc21335(0x16a8)][_0xc21335(0x2494)]})});});})[_0x431c02(0x20cd)](function(_0x3195fb){const _0x3ac767=_0x431c02;_0x3195fb?_0x5a543e[_0x3ac767(0x1bd0)]({'title':_0x3195fb[_0x3ac767(0x10b3)]?'API:'+_0x3195fb[_0x3ac767(0x10b3)]+'\x20-\x20'+_0x3195fb[_0x3ac767(0x2115)]:'SYSTEM:USERPROFILE.ADDSECTIONS','msg':_0x3195fb[_0x3ac767(0x10b3)]?JSON[_0x3ac767(0x2317)](_0x3195fb[_0x3ac767(0x1c52)]):_0x3195fb[_0x3ac767(0x2915)]()}):_0x484373[_0x3ac767(0x10b3)]=_0x4dfc48(_0x484373,_0x484373[_0x3ac767(0x10b3)][_0x3ac767(0xac8)]);});}else return _0x54f3c6[_0x431c02(0x1954)]({'category':_0x2e5b94,'sectionId':_0x484373['id'],'name':_0x2e5b94,'enabled':!![],'crudPermissions':_0x431c02(0x224)}),_0x2a655e[_0x431c02(0x16a8)][_0x431c02(0x294e)]({'id':_0x32cdef[_0x431c02(0x16a8)]['id']},_0x54f3c6)['$promise'][_0x431c02(0x64a)](function(){const _0x53c7ad=_0x431c02;_0x484373['status']=_0x4dfc48(_0x484373,_0x53c7ad(0x2795)),_0x5a543e[_0x53c7ad(0x1339)]({'title':_0xb6a8ec[_0x53c7ad(0x2292)](_0x53c7ad(0x11c9),{'sectionName':_0xb6a8ec[_0x53c7ad(0x2292)](_0x484373[_0x53c7ad(0x1f28)]),'userProfileName':_0x32cdef[_0x53c7ad(0x16a8)][_0x53c7ad(0x2494)]}),'msg':_0xb6a8ec[_0x53c7ad(0x2292)]('STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_MESSAGE_NO_RESOURCES',{'sectionName':_0xb6a8ec['instant'](_0x484373[_0x53c7ad(0x1f28)]),'userProfileName':_0x32cdef['userProfile'][_0x53c7ad(0x2494)]})});})[_0x431c02(0x20cd)](function(_0x3a758f){const _0x38a4cc=_0x431c02;_0x5a543e[_0x38a4cc(0x1bd0)]({'title':_0x3a758f[_0x38a4cc(0x10b3)]?_0x38a4cc(0x575)+_0x3a758f[_0x38a4cc(0x10b3)]+_0x38a4cc(0x21db)+_0x3a758f['statusText']:_0x38a4cc(0x1860),'msg':_0x3a758f['status']?JSON[_0x38a4cc(0x2317)](_0x3a758f[_0x38a4cc(0x1c52)]):_0x3a758f[_0x38a4cc(0x2915)]()});});}else{if(_0x484373[_0x431c02(0x10b3)][_0x431c02(0x2494)]==='Fully\x20Enabled'){_0x484373[_0x431c02(0x10b3)]=_0x4dfc48(_0x484373,'disabled');let _0x285686=[];switch(_0x2e5b94){case _0x431c02(0x1c2f):case _0x431c02(0x22aa):_0x285686=[_0x484373['id']];break;case _0x431c02(0x1825):_0x285686=_0x28c606()[_0x431c02(0x1de5)](_0x32cdef['dashboardSections'],function(_0x4a2b7e){return _0x4a2b7e['id'];});break;default:_0x285686=_0x28c606()[_0x431c02(0x1de5)](_0x484373[_0x431c02(0x1730)],function(_0x5a5b7c){return _0x5a5b7c['id'];});break;}return _0x2a655e['userProfile']['removeSections']({'id':_0x32cdef[_0x431c02(0x16a8)]['id'],'ids':_0x285686})[_0x431c02(0x15e7)][_0x431c02(0x64a)](function(){const _0xae925b=_0x431c02;_0x5a543e[_0xae925b(0x1339)]({'title':_0xb6a8ec[_0xae925b(0x2292)]('STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_TITLE',{'sectionName':_0xb6a8ec['instant'](_0x484373[_0xae925b(0x1f28)]),'userProfileName':_0x32cdef[_0xae925b(0x16a8)][_0xae925b(0x2494)]}),'msg':_0xb6a8ec[_0xae925b(0x2292)](_0xae925b(0xdcb),{'sectionName':_0xb6a8ec[_0xae925b(0x2292)](_0x484373[_0xae925b(0x1f28)]),'userProfileName':_0x32cdef[_0xae925b(0x16a8)][_0xae925b(0x2494)]})});})[_0x431c02(0x20cd)](function(_0x4d24ba){const _0x4df0c4=_0x431c02;_0x5a543e[_0x4df0c4(0x1bd0)]({'title':_0x4d24ba[_0x4df0c4(0x10b3)]?_0x4df0c4(0x575)+_0x4d24ba[_0x4df0c4(0x10b3)]+'\x20-\x20'+_0x4d24ba[_0x4df0c4(0x2115)]:'SYSTEM:USERPROFILE.REMOVESECTIONS','msg':_0x4d24ba['status']?JSON['stringify'](_0x4d24ba[_0x4df0c4(0x1c52)]):_0x4d24ba[_0x4df0c4(0x2915)]()});});}}}function _0x5eb4f8(_0x45a683,_0x4ab13e){const _0x8883d7=_0x31923f,_0x2359ba=_0x4c2a26['show']({'controller':_0x8883d7(0x1650),'controllerAs':'vm','templateUrl':_0x291e17,'parent':angular[_0x8883d7(0x1f81)](_0x4f17b4[_0x8883d7(0xb49)]),'targetEvent':_0x4ab13e,'clickOutsideToClose':![],'locals':{'userProfile':_0x32cdef[_0x8883d7(0x16a8)],'userProfiles':[],'section':_0x45a683}});_0x2359ba['then'](function(){_0x18af46(_0x45a683);});}function _0x4dfc48(_0x3df2a1,_0x556597){const _0x1f9cda=_0x31923f;_0x3df2a1[_0x1f9cda(0x4e1)]=_0x23d8c8(_0x556597);switch(_0x556597){case _0x1f9cda(0x2795):return _0x28c606()[_0x1f9cda(0x27bc)](_0x32cdef['statusList'],[_0x1f9cda(0xac8),_0x1f9cda(0x2795)]);case'partial':return _0x28c606()[_0x1f9cda(0x27bc)](_0x32cdef[_0x1f9cda(0x12c6)],[_0x1f9cda(0xac8),'partial']);case _0x1f9cda(0x1a95):return _0x28c606()['find'](_0x32cdef[_0x1f9cda(0x12c6)],[_0x1f9cda(0xac8),'disabled']);case _0x1f9cda(0x1dc2):return _0x28c606()[_0x1f9cda(0x27bc)](_0x32cdef[_0x1f9cda(0x12c6)],['tag',_0x1f9cda(0x1dc2)]);case _0x1f9cda(0x1191):return _0x28c606()[_0x1f9cda(0x27bc)](_0x32cdef[_0x1f9cda(0x12c6)],[_0x1f9cda(0xac8),'unknown']);default:return _0x28c606()['find'](_0x32cdef[_0x1f9cda(0x12c6)],[_0x1f9cda(0xac8),'unknown']);}}function _0x4a23d5(_0x1a93e3){return _0x5cd597(function(_0x4979e,_0x13f5be){const _0x464f46=a0_0x4127,_0x2f469c=typeof _0x1a93e3['channel']!=='undefined'&&_0x28c606()[_0x464f46(0x68a)](_0x1a93e3[_0x464f46(0xb5a)],_0x464f46(0x285e));_0x2f469c?_0x4bef47(_0x1a93e3)[_0x464f46(0x64a)](function(_0x5533e1){_0x4979e(_0x5533e1);})[_0x464f46(0x20cd)](function(_0x21fde8){_0x13f5be(_0x21fde8);}):_0x5f12c6(_0x1a93e3)['then'](function(_0x290f4f){_0x4979e(_0x290f4f);})[_0x464f46(0x20cd)](function(_0x46a1da){_0x13f5be(_0x46a1da);});});}function _0x4bef47(_0x113258){return _0x5cd597(function(_0x483490,_0x1b76c6){const _0x2c0348=a0_0x4127,_0x2ff74f=typeof _0x113258['channel']!=='undefined'&&_0x113258[_0x2c0348(0x2156)]===_0x2c0348(0x7e0)?_0x2c0348(0xbce):_0x2c0348(0x12a4);return _0x2a655e[_0x113258[_0x2c0348(0xb5a)]][_0x2c0348(0x896)]({'fields':_0x2c0348(0xfea),'channel':_0x113258[_0x2c0348(0x2156)]===_0x2c0348(0x7e0)?'voice':_0x113258[_0x2c0348(0x2156)],'type':_0x2ff74f,'nolimit':!![]})[_0x2c0348(0x15e7)][_0x2c0348(0x64a)](function(_0x3475db){_0x483490(_0x3475db);})[_0x2c0348(0x20cd)](function(_0x4d7b34){_0x1b76c6(_0x4d7b34);});});}function _0x5f12c6(_0x5034ee){return _0x5cd597(function(_0x46742a,_0x2c2df1){const _0x1a9048=a0_0x4127;let _0x246005,_0x51eb30,_0x35e19d=![],_0x1ed3aa=![];switch(_0x5034ee[_0x1a9048(0xb5a)]){case _0x1a9048(0x1438):switch(_0x5034ee[_0x1a9048(0x2021)]){case'InboundRoutes':_0x246005=_0x1a9048(0x12a4);break;case'OutboundRoutes':_0x246005=_0x1a9048(0xbce);break;case'InternalRoutes':_0x246005='internal';break;}break;case _0x1a9048(0xcfd):_0x35e19d=!![];break;case _0x1a9048(0x168b):_0x1ed3aa=!![];break;case _0x1a9048(0x2e8):switch(_0x5034ee[_0x1a9048(0x2021)]){case'Agents':_0x51eb30='agent';break;case _0x1a9048(0xc44):_0x51eb30=_0x1a9048(0x1782);break;case _0x1a9048(0x25d3):_0x51eb30=_0x1a9048(0x2e8);break;}break;}if(_0x5034ee['title']===_0x1a9048(0x2973)){if(_0x5034ee[_0x1a9048(0x1408)])switch(_0x5034ee['reportType']){case _0x1a9048(0x416):_0x5034ee[_0x1a9048(0xb5a)]=_0x1a9048(0x254);break;case _0x1a9048(0x1ad6):_0x5034ee[_0x1a9048(0xb5a)]=_0x1a9048(0x1d97);break;}else return _0x2a655e[_0x1a9048(0x254)]['get']({'nolimit':!![]})['$promise'][_0x1a9048(0x64a)](function(_0x39b6d6){const _0x4e3712=_0x1a9048;_0x2a655e[_0x4e3712(0x1d97)][_0x4e3712(0x896)]({'nolimit':!![]})[_0x4e3712(0x15e7)][_0x4e3712(0x64a)](function(_0x5c1ee6){const _0x451948=_0x4e3712,_0x42da5a=_0x28c606()[_0x451948(0x1c18)](_0x39b6d6['rows'],_0x5c1ee6['rows']);_0x46742a({'count':_0x42da5a[_0x451948(0x1b9e)],'rows':_0x42da5a[_0x451948(0x28b8)]});});})[_0x1a9048(0x20cd)](function(_0x4802d6){_0x2c2df1(_0x4802d6);});}return _0x2a655e[_0x5034ee['route']][_0x1a9048(0x896)]({'role':_0x51eb30?_0x51eb30:undefined,'type':_0x246005?_0x246005:undefined,'VoiceExtensionId':_0x246005?_0x1a9048(0x8f1):undefined,'IntervalId':_0x35e19d?_0x1a9048(0x8f1):undefined,'MailAccountId':_0x1ed3aa?_0x1a9048(0x8f1):undefined,'FaxAccountId':_0x1ed3aa?_0x1a9048(0x8f1):undefined,'SmsAccountId':_0x1ed3aa?_0x1a9048(0x8f1):undefined,'OpenchannelAccountId':_0x1ed3aa?_0x1a9048(0x8f1):undefined,'ChatWebsiteId':_0x1ed3aa?_0x1a9048(0x8f1):undefined,'WhatsappAccountId':_0x1ed3aa?_0x1a9048(0x8f1):undefined,'ListId':_0x1ed3aa?'null':undefined,'nolimit':!![]})[_0x1a9048(0x15e7)][_0x1a9048(0x64a)](function(_0x17211f){_0x46742a(_0x17211f);})['catch'](function(_0x1735da){_0x2c2df1(_0x1735da);});});}function _0x1c2de2(_0x3ad0c4,_0x976340){return _0x5cd597(function(_0x27a6df,_0x40de33){const _0x97e011=a0_0x4127;_0x2a655e[_0x97e011(0x1617)][_0x97e011(0x896)]({'sectionId':_0x976340})['$promise']['then'](function(_0x117452){const _0x42b2fd=_0x97e011;return _0x4a23d5(_0x3ad0c4)[_0x42b2fd(0x64a)](function(_0x3dec25){const _0x29b1b8=_0x42b2fd;return _0x28c606()[_0x29b1b8(0x23e5)](_0x117452[_0x29b1b8(0x28b8)],_0x3dec25[_0x29b1b8(0x28b8)],'id');});})[_0x97e011(0x64a)](function(_0x468cde){const _0x2a842b=_0x97e011;_0x28c606()[_0x2a842b(0x940)](_0x468cde)?_0x27a6df():_0x40de33();})['catch'](function(_0xd7aaeb){_0x40de33(_0xd7aaeb);});});}function _0x1b781d(_0x2cbe68,_0x39bc9a,_0x3c9238){const _0x1fbdc2=_0x31923f,_0x3aff8e=_0x2cbe68&&_0x2cbe68[_0x1fbdc2(0x1b9e)]>0x0?_0x2cbe68[0x0]:null;if(!_0x3aff8e)return _0x3c9238;const _0x33c21b=_0x28c606()['find'](_0x39bc9a,[_0x1fbdc2(0xf7b),_0x3aff8e['id']]);if(_0x33c21b)return _0x39bc9a=_0x28c606()[_0x1fbdc2(0x21c7)](_0x39bc9a,['sectionId',_0x3aff8e['id']]),_0x1c2de2(_0x3aff8e,_0x33c21b['id'])[_0x1fbdc2(0x64a)](function(){const _0x239f43=_0x1fbdc2;return _0x3c9238=_0x239f43(0x2795),_0x1b781d(_0x2cbe68['shift'](),_0x39bc9a,_0x3c9238);})[_0x1fbdc2(0x20cd)](function(_0x32416d){const _0x1ee8c4=_0x1fbdc2;return _0x5cd597[_0x1ee8c4(0x19d2)](_0x32416d);});}function _0x18af46(_0xb11776){const _0x4d6c9f=_0x31923f,_0x2783a2=_0xb11776[_0x4d6c9f(0x2021)]===_0x4d6c9f(0xad3)?_0x4d6c9f(0x1a8b):_0xb11776[_0x4d6c9f(0x2021)];if(!_0x32cdef[_0x4d6c9f(0x1947)]){_0xb11776[_0x4d6c9f(0x10b3)]=_0x4dfc48(_0xb11776,'unknown');return;}typeof _0xb11776[_0x4d6c9f(0x1f33)]!==_0x4d6c9f(0x19a1)&&!_0xb11776[_0x4d6c9f(0x1f33)]['association']?_0x2a655e[_0x4d6c9f(0x16b2)][_0x4d6c9f(0x896)]({'userProfileId':_0x32cdef[_0x4d6c9f(0x16a8)]['id'],'sectionId':_0xb11776['id']})[_0x4d6c9f(0x15e7)][_0x4d6c9f(0x64a)](function(_0x416205){const _0x1c8fde=_0x4d6c9f,_0x14d53b=_0x416205&&_0x416205[_0x1c8fde(0x28b8)][_0x1c8fde(0x1b9e)]===0x1?_0x416205[_0x1c8fde(0x28b8)][0x0]:null,_0x5d2d72=_0x14d53b?_0x1c8fde(0x2795):'disabled';_0xb11776['status']=_0x4dfc48(_0xb11776,_0x5d2d72);}):typeof _0xb11776[_0x4d6c9f(0x1947)]!==_0x4d6c9f(0x19a1)&&!_0x32cdef[_0x4d6c9f(0x1947)][_0xb11776[_0x4d6c9f(0x1947)]]?_0xb11776[_0x4d6c9f(0x10b3)]=_0x4dfc48(_0xb11776,_0x4d6c9f(0x1dc2)):_0x2a655e[_0x4d6c9f(0x16b2)][_0x4d6c9f(0x896)]({'userProfileId':_0x32cdef[_0x4d6c9f(0x16a8)]['id'],'category':_0x2783a2})[_0x4d6c9f(0x15e7)]['then'](function(_0xfc24a){const _0x22229b=_0x4d6c9f,_0x4345ac=_0xfc24a&&_0xfc24a[_0x22229b(0x28b8)]&&_0xfc24a[_0x22229b(0x28b8)]['length']>0x0?_0xfc24a[_0x22229b(0x28b8)]:[];if(_0xb11776['title']==='Dashboards')return _0x28c606()[_0x22229b(0x940)](_0x4345ac)?_0x22229b(0x1a95):_0x4345ac[0x0][_0x22229b(0x11da)]?'full':_0x2a655e[_0x22229b(0x1617)][_0x22229b(0x896)]({'sectionId':_0x4345ac[0x0]['id'],'resourceId':0x65})['$promise'][_0x22229b(0x64a)](function(_0x2aa8ec){const _0x71993d=_0x22229b,_0x200217=_0x2aa8ec&&_0x2aa8ec[_0x71993d(0x28b8)]?_0x2aa8ec[_0x71993d(0x28b8)][0x0]:null;return _0x200217?_0x71993d(0x2795):_0x71993d(0x1a8a);});else{const _0x46712c=_0x28c606()['filter'](_0xb11776['children'],function(_0x5a4374){const _0x4715a9=_0x22229b;return typeof _0x5a4374[_0x4715a9(0x1f33)]!=='undefined'&&_0x5a4374['permissions'][_0x4715a9(0x2d5)]?undefined:_0x5a4374;});if(_0x4345ac[_0x22229b(0x1b9e)]===_0x46712c[_0x22229b(0x1b9e)]){if(_0x28c606()[_0x22229b(0x2972)](_0x4345ac,['autoAssociation',!![]]))return _0x22229b(0x2795);else{const _0x33a189=_0x28c606()[_0x22229b(0xcec)](_0x46712c,function(_0x1b4662){const _0x3e0428=_0x22229b;return typeof _0x1b4662[_0x3e0428(0x1f33)]!=='undefined'&&!_0x1b4662[_0x3e0428(0x1f33)][_0x3e0428(0x8b6)]?undefined:_0x1b4662;});return _0x1b781d(_0x33a189,_0x4345ac,_0x22229b(0x1a8a));}}else return _0x4345ac[_0x22229b(0x1b9e)]===0x0?_0x22229b(0x1a95):_0x22229b(0x1a8a);}})['then'](function(_0x58b469){const _0x28cac2=_0x4d6c9f;_0xb11776[_0x28cac2(0x10b3)]=_0x4dfc48(_0xb11776,_0x58b469);})[_0x4d6c9f(0x20cd)](function(_0xc8a57a){const _0x295842=_0x4d6c9f,_0x31ceb0=_0xc8a57a?_0x295842(0x1191):_0x295842(0x1a8a);_0xb11776[_0x295842(0x10b3)]=_0x4dfc48(_0xb11776,_0x31ceb0),_0xc8a57a&&_0x5a543e['error']({'title':_0xc8a57a[_0x295842(0x10b3)]?_0x295842(0x575)+_0xc8a57a[_0x295842(0x10b3)]+_0x295842(0x21db)+_0xc8a57a[_0x295842(0x2115)]:'USERPROFILE:GETRESOURCES('+_0x2783a2[_0x295842(0xa3c)]()+')','msg':_0xc8a57a['status']?JSON[_0x295842(0x2317)](_0xc8a57a[_0x295842(0x1c52)]):_0xc8a57a[_0x295842(0x2915)]()});});}function _0x23d8c8(_0x56c58f){return _0x56c58f==='full'?!![]:![];}}const _0x5abcc1=_0x43cd1c;;_0x1657d5['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x16a8),_0x49a1e3(0x7bb),'$translate',_0x49a1e3(0xdcf),_0x49a1e3(0xa21)];function _0x1657d5(_0x20b494,_0x17dd5b,_0x4bb427,_0x350e82,_0x3ca32c,_0xe0218e,_0x33f771,_0x45f724,_0x13226d,_0x5ef948){const _0x3a2ea6=_0x49a1e3,_0x2618d7=this;_0x2618d7['userProfile']=_0xe0218e,_0x2618d7[_0x3a2ea6(0x70f)]=0x0,_0x2618d7[_0x3a2ea6(0xa21)]=angular[_0x3a2ea6(0x289e)](_0x5ef948),_0x2618d7[_0x3a2ea6(0x2021)]=_0x45f724['instant'](_0x3a2ea6(0x142),{'sectionName':_0x45f724[_0x3a2ea6(0x2292)](_0x2618d7[_0x3a2ea6(0xa21)]['translate'])}),_0x2618d7[_0x3a2ea6(0x23cb)]=[],_0x2618d7['selectedItems']=[],_0x2618d7[_0x3a2ea6(0xa0e)]=_0x28c606()[_0x3a2ea6(0xcec)](_0x2618d7[_0x3a2ea6(0xa21)][_0x3a2ea6(0x1730)],function(_0x1694ce){const _0x227b91=_0x3a2ea6;return typeof _0x1694ce[_0x227b91(0x1f33)]!=_0x227b91(0x19a1)&&_0x1694ce['permissions']['hidden']?undefined:_0x1694ce;}),_0x2618d7['dashboardSections']=[{'title':_0x3a2ea6(0x1825),'translate':_0x3a2ea6(0x28fe),'id':0x64}],_0x2618d7[_0x3a2ea6(0x5d8)]=[];_0x2618d7[_0x3a2ea6(0xa21)]['title']===_0x3a2ea6(0x1825)&&(_0x2618d7[_0x3a2ea6(0x5d8)]=_0x2618d7[_0x3a2ea6(0xa0e)],_0x2618d7[_0x3a2ea6(0xa0e)]=_0x2618d7[_0x3a2ea6(0x27e9)]);_0x2618d7[_0x3a2ea6(0x74e)]=null,_0x2618d7['loadedSection']=null,_0x2618d7[_0x3a2ea6(0x3ff)]=[],_0x2618d7[_0x3a2ea6(0x16cb)]=_0x54521e,_0x2618d7[_0x3a2ea6(0x2462)]=_0x873a24,_0x2618d7[_0x3a2ea6(0x291a)]=_0xfdca16,_0x2618d7['onChangeAutoAssociation']=_0x319f6a,_0x2618d7[_0x3a2ea6(0x2709)]=_0x4a6407,_0x2618d7['setPermission']=_0x242616,_0x2618d7[_0x3a2ea6(0x2124)]=_0x59f797,_0x2618d7[_0x3a2ea6(0x1eeb)]={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x3a2ea6(0x2494),'line1':_0x3a2ea6(0x2494),'line2':'','line3':'','line4':_0x3a2ea6(0x267),'labelAll':_0x45f724[_0x3a2ea6(0x2292)](_0x3a2ea6(0xd01)),'labelSelected':_0x45f724['instant']('STAFF.PERMISSIONS_SELECTED_RESOURCES'),'labelSearch':_0x45f724[_0x3a2ea6(0x2292)](_0x3a2ea6(0x1420)),'transferCallback':function(_0x2ff6fe,_0x5e7c5e){const _0x2cf127=_0x3a2ea6;_0x4b3c26(!![]),_0x5e7c5e?(_0x2618d7[_0x2cf127(0x74e)][_0x2cf127(0x1f4f)]=_0x28c606()[_0x2cf127(0x1663)](_0x2618d7['selectedSection']['selectedItems'],_0x2ff6fe,'id'),_0x2618d7['selectedSection'][_0x2cf127(0x11da)]=![]):_0x2618d7[_0x2cf127(0x74e)][_0x2cf127(0x1f4f)]=_0x28c606()['unionBy'](_0x2618d7[_0x2cf127(0x74e)]['selectedItems'],_0x2ff6fe,'id'),_0x2618d7['selectedSection']['title']===_0x2cf127(0x2973)&&_0x2ebf16();}};function _0x191269(){return _0x4bb427(function(_0xe8b6ed,_0x417e46){const _0x2ab49c=a0_0x4127,_0x4338d2=typeof _0x2618d7[_0x2ab49c(0x74e)][_0x2ab49c(0x2156)]!==_0x2ab49c(0x19a1)&&_0x2618d7[_0x2ab49c(0x74e)][_0x2ab49c(0x2156)]===_0x2ab49c(0x7e0)?_0x2ab49c(0xbce):_0x2ab49c(0x12a4);return _0x3ca32c[_0x2618d7[_0x2ab49c(0x74e)]['route']]['get']({'fields':_0x2ab49c(0xfea),'channel':_0x2618d7[_0x2ab49c(0x74e)][_0x2ab49c(0x2156)]===_0x2ab49c(0x7e0)?_0x2ab49c(0x227c):_0x2618d7[_0x2ab49c(0x74e)][_0x2ab49c(0x2156)],'type':_0x4338d2,'nolimit':!![]})[_0x2ab49c(0x15e7)]['then'](function(_0x21ad15){_0xe8b6ed(_0x21ad15);})['catch'](function(_0x2f228e){_0x417e46(_0x2f228e);});});}function _0x114577(){return _0x4bb427(function(_0x22ea6e,_0x73ba57){const _0x5c9f95=a0_0x4127;let _0x4dae8b,_0xb86b05,_0xba32f=![],_0x299be6=![];if(_0x2618d7[_0x5c9f95(0x74e)][_0x5c9f95(0xb5a)]===_0x5c9f95(0x1438))switch(_0x2618d7['selectedSection'][_0x5c9f95(0x2021)]){case'InboundRoutes':_0x4dae8b=_0x5c9f95(0x12a4);break;case _0x5c9f95(0x1035):_0x4dae8b=_0x5c9f95(0xbce);break;case _0x5c9f95(0x18d2):_0x4dae8b=_0x5c9f95(0xe2f);break;}if(_0x2618d7[_0x5c9f95(0x74e)][_0x5c9f95(0xb5a)]===_0x5c9f95(0x2e8))switch(_0x2618d7[_0x5c9f95(0x74e)][_0x5c9f95(0x2021)]){case'Agents':_0xb86b05=_0x5c9f95(0x11ae);break;case _0x5c9f95(0xc44):_0xb86b05=_0x5c9f95(0x1782);break;case _0x5c9f95(0x25d3):_0xb86b05=_0x5c9f95(0x2e8);break;}_0x2618d7['selectedSection'][_0x5c9f95(0xb5a)]==='interval'&&(_0xba32f=!![]);_0x2618d7[_0x5c9f95(0x74e)][_0x5c9f95(0xb5a)]===_0x5c9f95(0x168b)&&(_0x299be6=!![]);_0x2618d7[_0x5c9f95(0x74e)][_0x5c9f95(0x2021)]==='Reports'&&(_0x2618d7[_0x5c9f95(0x74e)][_0x5c9f95(0xb5a)]=_0x2618d7[_0x5c9f95(0x74e)][_0x5c9f95(0x1408)]==='default'?_0x5c9f95(0x254):_0x5c9f95(0x1d97));if(_0x2618d7[_0x5c9f95(0x74e)][_0x5c9f95(0x2021)]===_0x5c9f95(0x1825))_0x22ea6e({'count':0x1,'rows':[{'id':0x65,'name':_0x45f724[_0x5c9f95(0x2292)]('APP.GENERAL')}]});else return _0x3ca32c[_0x2618d7[_0x5c9f95(0x74e)][_0x5c9f95(0xb5a)]]['get']({'role':_0xb86b05?_0xb86b05:undefined,'type':_0x4dae8b?_0x4dae8b:undefined,'VoiceExtensionId':_0x4dae8b?_0x5c9f95(0x8f1):undefined,'IntervalId':_0xba32f?_0x5c9f95(0x8f1):undefined,'MailAccountId':_0x299be6?_0x5c9f95(0x8f1):undefined,'FaxAccountId':_0x299be6?'null':undefined,'SmsAccountId':_0x299be6?_0x5c9f95(0x8f1):undefined,'OpenchannelAccountId':_0x299be6?_0x5c9f95(0x8f1):undefined,'ChatWebsiteId':_0x299be6?_0x5c9f95(0x8f1):undefined,'WhatsappAccountId':_0x299be6?_0x5c9f95(0x8f1):undefined,'ListId':_0x299be6?_0x5c9f95(0x8f1):undefined,'nolimit':!![]})[_0x5c9f95(0x15e7)][_0x5c9f95(0x64a)](function(_0x3b3511){_0x22ea6e(_0x3b3511);})[_0x5c9f95(0x20cd)](function(_0x3869ee){_0x73ba57(_0x3869ee);});});}function _0x8ab07e(){const _0x40decc=_0x3a2ea6,_0x4ec5ce=typeof _0x2618d7['selectedSection'][_0x40decc(0x7d7)]!='undefined'?_0x2618d7[_0x40decc(0x74e)][_0x40decc(0x7d7)]:![];return _0x4bb427(function(_0x49b04b,_0x5dea5f){const _0x119236=_0x40decc;_0x3ca32c[_0x119236(0x16b2)]['get']({'userProfileId':_0x2618d7[_0x119236(0x16a8)]['id'],'sectionId':_0x2618d7[_0x119236(0x74e)]['id']})[_0x119236(0x15e7)][_0x119236(0x64a)](function(_0x3db7c4){const _0x297cdb=_0x119236,_0x544294=_0x3db7c4&&_0x3db7c4['rows']?_0x3db7c4[_0x297cdb(0x28b8)][0x0]:null;!_0x4ec5ce&&(_0x2618d7[_0x297cdb(0x74e)][_0x297cdb(0xe49)]=_0x544294?!!_0x544294[_0x297cdb(0xe49)]:![],_0x2618d7[_0x297cdb(0x74e)][_0x297cdb(0x11da)]=_0x544294?!!_0x544294[_0x297cdb(0x11da)]:![],_0x2618d7['selectedSection'][_0x297cdb(0x402)]=_0x544294?_0x3fea3(_0x544294[_0x297cdb(0x402)]):_0x3fea3(_0x2618d7['userProfile'][_0x297cdb(0x402)])),_0x49b04b(_0x544294);})[_0x119236(0x20cd)](function(_0x4e4fb8){_0x5dea5f(_0x4e4fb8);});});}function _0x1bba06(){return _0x4bb427(function(_0x5db419,_0x5f005b){const _0x1ea1ed=a0_0x4127;!_0x2618d7[_0x1ea1ed(0x1a6)]?_0x5db419(null):_0x3ca32c['userProfileResource'][_0x1ea1ed(0x896)]({'sectionId':_0x2618d7[_0x1ea1ed(0x1a6)]['id'],'nolimit':!![]})[_0x1ea1ed(0x15e7)][_0x1ea1ed(0x64a)](function(_0x42ceb5){_0x5db419(_0x42ceb5);})[_0x1ea1ed(0x20cd)](function(_0x44ce17){_0x5f005b(_0x44ce17);});});}function _0x209eea(){return _0x4bb427(function(_0x2d256c,_0x5ba5f4){const _0x1ba90f=a0_0x4127,_0x1b0134=typeof _0x2618d7[_0x1ba90f(0x74e)][_0x1ba90f(0x2156)]!==_0x1ba90f(0x19a1)&&_0x28c606()[_0x1ba90f(0x68a)](_0x2618d7[_0x1ba90f(0x74e)][_0x1ba90f(0xb5a)],_0x1ba90f(0x285e));_0x1b0134?_0x191269()[_0x1ba90f(0x64a)](function(_0x2f4b74){_0x2d256c(_0x2f4b74);})[_0x1ba90f(0x20cd)](function(_0x2873a2){_0x5ba5f4(_0x2873a2);}):_0x114577()['then'](function(_0x1f8a2b){_0x2d256c(_0x1f8a2b);})['catch'](function(_0x16e156){_0x5ba5f4(_0x16e156);});});}function _0x1ef74f(){const _0x1fd222=_0x3a2ea6,_0x28d605=typeof _0x2618d7[_0x1fd222(0x74e)][_0x1fd222(0x7d7)]!='undefined'?_0x2618d7[_0x1fd222(0x74e)][_0x1fd222(0x7d7)]:![];let _0x26c88c=[];return _0x1bba06()[_0x1fd222(0x64a)](function(_0x1b2329){const _0x2c2196=_0x1fd222;return _0x26c88c=_0x1b2329&&_0x1b2329[_0x2c2196(0x28b8)]?_0x1b2329[_0x2c2196(0x28b8)]:[],_0x2618d7[_0x2c2196(0x74e)][_0x2c2196(0x2021)]===_0x2c2196(0x2973)&&(_0x2618d7[_0x2c2196(0x8a8)]=!_0x2618d7['associatedReports']?_0x26c88c:_0x2618d7[_0x2c2196(0x8a8)],_0x26c88c=_0x23bd37(_0x2618d7['associatedReports'])),typeof _0x2618d7[_0x2c2196(0x74e)][_0x2c2196(0x1f33)]!==_0x2c2196(0x19a1)&&!_0x2618d7[_0x2c2196(0x74e)][_0x2c2196(0x1f33)][_0x2c2196(0x8b6)]?{'rows':[]}:_0x209eea();})[_0x1fd222(0x64a)](function(_0x573ae1){const _0x57dbec=_0x1fd222;_0x2618d7[_0x57dbec(0x23cb)]=_0x573ae1[_0x57dbec(0x28b8)]?_0x28c606()[_0x57dbec(0x1de5)](_0x573ae1[_0x57dbec(0x28b8)],function(_0x528e37){const _0x126c9b=_0x57dbec;return _0x2618d7[_0x126c9b(0x74e)][_0x126c9b(0x2021)]==='Reports'&&(_0x528e37[_0x126c9b(0x267)]=_0x2b3645(_0x528e37[_0x126c9b(0x2854)])['replace']('\x20','_')),_0x528e37[_0x126c9b(0x6f9)]=!![],_0x528e37;}):[];!_0x28d605&&(_0x2618d7[_0x57dbec(0x74e)][_0x57dbec(0x1f4f)]=_0x28c606()[_0x57dbec(0x1de5)](_0x26c88c,function(_0x4a7c13){const _0x57e61d=_0x57dbec;return _0x28c606()[_0x57e61d(0x27bc)](_0x2618d7[_0x57e61d(0x23cb)],{'id':_0x4a7c13[_0x57e61d(0x145)]});}));const _0x223f3b=_0x28c606()[_0x57dbec(0x23e5)](_0x2618d7[_0x57dbec(0x74e)][_0x57dbec(0x1f4f)],_0x2618d7['items'],'id');!_0x28c606()[_0x57dbec(0x940)](_0x223f3b)&&(_0x2618d7[_0x57dbec(0x74e)][_0x57dbec(0x1f4f)]=_0x28c606()[_0x57dbec(0x1663)](_0x2618d7[_0x57dbec(0x74e)][_0x57dbec(0x1f4f)],_0x223f3b,'id'));let _0x50f46;switch(_0x2618d7[_0x57dbec(0x74e)]['title']){case'Contexts':_0x2618d7['selectedSection'][_0x57dbec(0x1f4f)]=_0x28c606()[_0x57dbec(0xcec)](_0x2618d7['items'],function(_0x639a8d){const _0x3bb381=_0x57dbec;if(_0x639a8d[_0x3bb381(0x169b)])return _0x639a8d[_0x3bb381(0x6f9)]=![],_0x639a8d;else{const _0x22418e=_0x28c606()['find'](_0x26c88c,{'resourceId':_0x639a8d['id']});if(typeof _0x22418e!==_0x3bb381(0x19a1))return _0x639a8d[_0x3bb381(0x6f9)]=!![],_0x639a8d;}});break;case _0x57dbec(0xdb6):_0x2618d7[_0x57dbec(0x74e)]['selectedItems']=_0x28c606()[_0x57dbec(0xcec)](_0x2618d7[_0x57dbec(0x23cb)],function(_0x19e958){const _0x279ad9=_0x57dbec;if(_0x19e958[_0x279ad9(0x169b)])return _0x19e958[_0x279ad9(0x6f9)]=![],_0x19e958;else{const _0x20123c=_0x28c606()[_0x279ad9(0x27bc)](_0x26c88c,{'resourceId':_0x19e958['id']});if(typeof _0x20123c!==_0x279ad9(0x19a1))return _0x19e958['isValid']=!![],_0x19e958;}});break;case _0x57dbec(0x2973):_0x50f46=_0x22583b(_0x2618d7[_0x57dbec(0x3ff)]),_0x2618d7['selectedSection'][_0x57dbec(0x1f4f)]=_0x580ff0(_0x2618d7[_0x57dbec(0x74e)][_0x57dbec(0x1f4f)]),_0x2618d7[_0x57dbec(0x74e)][_0x57dbec(0x1f4f)]=_0x28c606()['unionBy'](_0x2618d7[_0x57dbec(0x74e)][_0x57dbec(0x1f4f)],_0x50f46,'id');break;}_0x2618d7['dualMultiselectOptions'][_0x57dbec(0x1f4f)]=_0x2618d7['selectedSection']['selectedItems'],_0x2618d7['dualMultiselectOptions'][_0x57dbec(0x23cb)]=_0x28c606()[_0x57dbec(0x23e5)](_0x2618d7[_0x57dbec(0x23cb)],_0x2618d7['dualMultiselectOptions'][_0x57dbec(0x1f4f)],'id');})[_0x1fd222(0x20cd)](function(_0x57422e){const _0x3e4c16=_0x1fd222;_0x350e82[_0x3e4c16(0x1bd0)]({'title':_0x57422e[_0x3e4c16(0x10b3)]?_0x3e4c16(0x575)+_0x57422e[_0x3e4c16(0x10b3)]+_0x3e4c16(0x21db)+_0x57422e[_0x3e4c16(0x2115)]:_0x3e4c16(0x122b)+_0x2618d7[_0x3e4c16(0x74e)][_0x3e4c16(0x2021)][_0x3e4c16(0xa3c)](),'msg':_0x57422e[_0x3e4c16(0x10b3)]?JSON[_0x3e4c16(0x2317)](_0x57422e[_0x3e4c16(0x1c52)]):_0x57422e[_0x3e4c16(0x2915)]()});});}function _0x873a24(){const _0x97ebf=_0x3a2ea6;return _0x8ab07e()[_0x97ebf(0x64a)](function(_0x242f82){const _0x5bc6a3=_0x97ebf;_0x2618d7['loadedSection']=_0x242f82;if(_0x2618d7[_0x5bc6a3(0x74e)]['title']===_0x5bc6a3(0x2973))return _0x49cd25()[_0x5bc6a3(0x64a)](function(){const _0xf8d66f=_0x5bc6a3;if(!_0x2618d7[_0xf8d66f(0x74e)][_0xf8d66f(0x1408)])return _0x1bba06()['then'](function(_0x29dc4a){const _0x2777eb=_0xf8d66f;_0x2618d7['allReportsSelected']=_0x29dc4a?_0x28c606()[_0x2777eb(0x1de5)](_0x29dc4a[_0x2777eb(0x28b8)],function(_0xe0996b){const _0x148f0c=_0x2777eb;return{'id':_0xe0996b[_0x148f0c(0x145)],'name':_0xe0996b[_0x148f0c(0x2494)],'type':_0xe0996b['type']};}):[];});})[_0x5bc6a3(0x20cd)](function(_0x24e737){const _0x26693c=_0x5bc6a3;_0x350e82[_0x26693c(0x1bd0)]({'title':_0x24e737[_0x26693c(0x10b3)]?_0x26693c(0x575)+_0x24e737['status']+_0x26693c(0x21db)+_0x24e737['statusText']:_0x26693c(0x115a),'msg':_0x24e737['data']?JSON[_0x26693c(0x2317)](_0x24e737[_0x26693c(0x1c52)]):_0x24e737['toString']()});});else _0x1ef74f();})[_0x97ebf(0x20cd)](function(_0x1cd845){const _0x55f267=_0x97ebf;_0x350e82[_0x55f267(0x1bd0)]({'title':_0x1cd845[_0x55f267(0x10b3)]?_0x55f267(0x575)+_0x1cd845[_0x55f267(0x10b3)]+_0x55f267(0x21db)+_0x1cd845[_0x55f267(0x2115)]:_0x55f267(0x122b)+_0x2618d7['selectedSection'][_0x55f267(0x2021)]['toUpperCase'](),'msg':_0x1cd845['status']?JSON[_0x55f267(0x2317)](_0x1cd845['data']):_0x1cd845[_0x55f267(0x2915)]()});});}function _0x3fea3(_0x573aeb){const _0x4916ab=_0x3a2ea6;return _0x573aeb&&(_0x2618d7[_0x4916ab(0x74e)][_0x4916ab(0x20c2)]=_0x28c606()['includes'](_0x573aeb,'e')?!![]:![],_0x2618d7[_0x4916ab(0x74e)][_0x4916ab(0x2466)]=_0x28c606()[_0x4916ab(0x68a)](_0x573aeb,'d')?!![]:![]),_0x3cdc1e();}function _0x3cdc1e(){const _0x108a14=_0x3a2ea6,_0x25a6c1=['r'];if(_0x2618d7[_0x108a14(0x74e)]['allowEdit'])_0x25a6c1['push']('e');else{const _0x3b7187=_0x28c606()[_0x108a14(0x1b28)](_0x25a6c1,['e']);_0x3b7187>0x0&&_0x2618d7[_0x108a14(0x74e)][_0x108a14(0x402)][_0x108a14(0x1353)]('e','');}if(_0x2618d7[_0x108a14(0x74e)]['allowDelete'])_0x25a6c1[_0x108a14(0x1954)]('d');else{const _0x3d0474=_0x28c606()[_0x108a14(0x1b28)](_0x25a6c1,['d']);_0x3d0474>0x0&&_0x2618d7[_0x108a14(0x74e)][_0x108a14(0x402)][_0x108a14(0x1353)]('d','');}return _0x25a6c1;}function _0xfdca16(){const _0x35e684=_0x3a2ea6;_0x2618d7[_0x35e684(0x74e)]['enabled']=!_0x2618d7[_0x35e684(0x74e)][_0x35e684(0xe49)],_0x4b3c26(!![]);}function _0x319f6a(){const _0x3102a1=_0x3a2ea6;if(!_0x2618d7[_0x3102a1(0x74e)][_0x3102a1(0x11da)]){const _0x4d8e2d=[];for(let _0x2a8019=0x0;_0x2a8019<_0x2618d7['dualMultiselectOptions'][_0x3102a1(0x23cb)]['length'];_0x2a8019++){_0x4d8e2d[_0x3102a1(0x1954)](_0x2618d7['dualMultiselectOptions']['items'][_0x2a8019]),_0x2618d7[_0x3102a1(0x1eeb)][_0x3102a1(0x1f4f)][_0x3102a1(0x1954)](_0x2618d7[_0x3102a1(0x1eeb)][_0x3102a1(0x23cb)][_0x2a8019]);}_0x2618d7[_0x3102a1(0x1eeb)][_0x3102a1(0x23cb)]=[],_0x2618d7[_0x3102a1(0x1eeb)][_0x3102a1(0xd23)](_0x4d8e2d,![]);}_0x4b3c26(!![]);}function _0x4a6407(){const _0x217f2a=_0x3a2ea6;_0x2618d7[_0x217f2a(0x18fa)]=_0x2ee2ed(),_0x2618d7[_0x217f2a(0x74e)][_0x217f2a(0x1f4f)]&&(_0x2618d7[_0x217f2a(0x3ff)]=_0x580ff0(_0x2618d7[_0x217f2a(0x3ff)]),_0x2ebf16()),_0x1ef74f();}function _0x242616(_0x509019){const _0x62d9ac=_0x3a2ea6;if(_0x509019===_0x62d9ac(0x1ced))_0x2618d7[_0x62d9ac(0x74e)][_0x62d9ac(0x20c2)]=!_0x2618d7['selectedSection'][_0x62d9ac(0x20c2)];else _0x509019==='delete'&&(_0x2618d7[_0x62d9ac(0x74e)]['allowDelete']=!_0x2618d7[_0x62d9ac(0x74e)][_0x62d9ac(0x2466)]);_0x2618d7[_0x62d9ac(0x74e)][_0x62d9ac(0x402)]=_0x3fea3(),_0x4b3c26(!![]);}function _0x59f797(){const _0x261a2a=_0x3a2ea6,_0x4dbac2=_0x2618d7[_0x261a2a(0xa21)][_0x261a2a(0x2021)]===_0x261a2a(0xad3)?_0x261a2a(0x1a8b):_0x2618d7['section'][_0x261a2a(0x2021)],_0x349bc0=_0x28c606()(_0x2618d7[_0x261a2a(0xa0e)])[_0x261a2a(0xcec)]({'pending':!![]})[_0x261a2a(0x1de5)](function(_0x1b1be4){const _0x2bfb0c=_0x261a2a,_0x558791=_0x4dbac2===_0x2bfb0c(0xab1)&&_0x1b1be4[_0x2bfb0c(0x2021)]===_0x2bfb0c(0x977)?_0x2bfb0c(0x9f4):_0x1b1be4[_0x2bfb0c(0x2021)],_0x5ea925=_0x558791===_0x2bfb0c(0x2973)?_0x2618d7['allReportsSelected']:_0x1b1be4[_0x2bfb0c(0x1f4f)];return _0x4dbac2===_0x2bfb0c(0x660)&&(_0x1b1be4[_0x2bfb0c(0x11da)]=!![]),{'category':_0x4dbac2,'sectionId':_0x1b1be4['id'],'name':_0x558791,'enabled':_0x1b1be4[_0x2bfb0c(0xe49)],'autoAssociation':_0x1b1be4[_0x2bfb0c(0x11da)],'crudPermissions':_0x28c606()[_0x2bfb0c(0x1de5)](_0x1b1be4[_0x2bfb0c(0x402)])[_0x2bfb0c(0x9a6)](''),'Resources':_0x28c606()[_0x2bfb0c(0x1de5)](_0x5ea925,function(_0x2b53fa){const _0x3d9a69=_0x2bfb0c;return{'name':_0x2b53fa[_0x3d9a69(0x2494)],'resourceId':_0x2b53fa['id'],'type':_0x4f0a91(_0x558791,_0x2b53fa)};})};})['value']();return _0x3ca32c[_0x261a2a(0x16a8)][_0x261a2a(0x294e)]({'id':_0x2618d7[_0x261a2a(0x16a8)]['id']},_0x349bc0)[_0x261a2a(0x15e7)][_0x261a2a(0x64a)](function(){const _0x178e15=_0x261a2a;_0x2618d7['subsections']['forEach'](function(_0x29dc97){const _0x504cde=a0_0x4127;_0x29dc97[_0x504cde(0x7d7)]=undefined;}),_0x2618d7[_0x178e15(0x8a8)]=null,_0x554659(),_0x2618d7[_0x178e15(0x74e)]['title']==='Reports'&&!_0x2618d7[_0x178e15(0x74e)][_0x178e15(0x1408)]&&_0x20b494['userProfileForm'][_0x178e15(0x271f)](),_0x350e82['success']({'title':_0x45f724[_0x178e15(0x2292)](_0x178e15(0x21b8),{'sectionName':_0x45f724[_0x178e15(0x2292)](_0x4dbac2[_0x178e15(0x1f28)])}),'msg':_0x45f724[_0x178e15(0x2292)](_0x178e15(0xc8f))});})[_0x261a2a(0x64a)](function(){const _0x725ee8=_0x261a2a;return _0x8ab07e()[_0x725ee8(0x64a)](function(_0x420f46){_0x2618d7['loadedSection']=_0x420f46;});})[_0x261a2a(0x20cd)](function(_0x5b6c3f){const _0x4d8edc=_0x261a2a;_0x350e82[_0x4d8edc(0x1bd0)]({'title':_0x5b6c3f[_0x4d8edc(0x10b3)]?_0x4d8edc(0x575)+_0x5b6c3f['status']+_0x4d8edc(0x21db)+_0x5b6c3f[_0x4d8edc(0x2115)]:_0x4d8edc(0x1860),'msg':_0x5b6c3f[_0x4d8edc(0x10b3)]?JSON[_0x4d8edc(0x2317)](_0x5b6c3f['data']):_0x5b6c3f[_0x4d8edc(0x2915)]()});});}function _0x4b3c26(_0x4622dc){const _0x2a1346=_0x3a2ea6,_0x2ff4f1=_0x28c606()[_0x2a1346(0xb10)](_0x2618d7[_0x2a1346(0xa0e)],function(_0x479031){const _0x7cb82b=_0x2a1346;return _0x479031['id']==_0x2618d7[_0x7cb82b(0x74e)]['id'];});_0x2618d7[_0x2a1346(0xa0e)][_0x2ff4f1][_0x2a1346(0x7d7)]=_0x4622dc,_0x554659();}function _0x554659(){const _0x9eb3b5=_0x3a2ea6;return _0x2618d7[_0x9eb3b5(0xe9e)]=_0x28c606()[_0x9eb3b5(0x25f8)](_0x2618d7[_0x9eb3b5(0xa0e)],[_0x9eb3b5(0x7d7),!![]]);}function _0x2ee2ed(){const _0x5b4c0a=_0x3a2ea6;let _0x40d5a1={};return _0x2618d7['selectedSection'][_0x5b4c0a(0x1408)]===_0x5b4c0a(0x416)?_0x40d5a1=_0x2618d7[_0x5b4c0a(0x9e9)][0x0]?angular[_0x5b4c0a(0x836)](_0x2618d7[_0x5b4c0a(0x9e9)][0x0]['tree']):[]:_0x40d5a1=_0x2618d7[_0x5b4c0a(0x9e9)][0x1]?angular['fromJson'](_0x2618d7[_0x5b4c0a(0x9e9)][0x1][_0x5b4c0a(0x547)]):[],_0x40d5a1;}function _0x49cd25(){return _0x4bb427(function(_0x404854,_0x43c07d){const _0x4cb19b=a0_0x4127;_0x3ca32c['analyticTreeReport'][_0x4cb19b(0x896)]({})[_0x4cb19b(0x15e7)][_0x4cb19b(0x64a)](function(_0x58246b){const _0x50c17d=_0x4cb19b;_0x2618d7['treeReports']=_0x58246b[_0x50c17d(0x28b8)]||[],_0x404854(_0x2618d7['treeReports']);})[_0x4cb19b(0x20cd)](function(_0x5bfdf4){_0x43c07d(_0x5bfdf4);});});}function _0x2b3645(_0x33a5ed){const _0x594194=_0x3a2ea6;let _0x88acf9=_0x2618d7[_0x594194(0x18fa)][0x0]['text'];return _0x88acf9=_0x32bed3(_0x88acf9,_0x33a5ed,_0x2618d7[_0x594194(0x18fa)][0x0]),_0x88acf9;}function _0x32bed3(_0x4370bd,_0x359e36,_0x5b621b){const _0x3bd48f=_0x3a2ea6;if(_0x5b621b&&!_0x28c606()[_0x3bd48f(0x940)](_0x5b621b['children']))_0x5b621b=_0x28c606()['find'](_0x5b621b['children'],function(_0x181a8a){const _0x35b001=_0x3bd48f;return _0x28c606()[_0x35b001(0x68a)](_0x359e36,_0x181a8a['id'])?_0x181a8a:undefined;}),_0x4370bd+=_0x5b621b?'/'+_0x5b621b[_0x3bd48f(0x39b)]:'';else return _0x4370bd;return _0x32bed3(_0x4370bd,_0x359e36,_0x5b621b);}function _0x23bd37(_0x477e88){const _0x4b843d=_0x3a2ea6;return _0x28c606()[_0x4b843d(0xcec)](_0x477e88,{'type':_0x2618d7[_0x4b843d(0x74e)][_0x4b843d(0x1408)]==='default'?'DefaultReports':_0x4b843d(0x121)});}function _0x22583b(_0x597daf){const _0x41013b=_0x3a2ea6;return _0x28c606()[_0x41013b(0xcec)](_0x597daf,function(_0x14daea){const _0x35e355=_0x41013b;return _0x28c606()['startsWith'](_0x14daea[_0x35e355(0x2854)],_0x2618d7[_0x35e355(0x74e)][_0x35e355(0x1408)]==='default'?_0x35e355(0x583):_0x35e355(0x1ad6));});}function _0x580ff0(_0x526a3c){return _0x28c606()['remove'](_0x526a3c,function(_0x789d2b){const _0x58248d=a0_0x4127;return _0x28c606()[_0x58248d(0x1273)](_0x789d2b['parent'],_0x2618d7['selectedSection']['reportType']===_0x58248d(0x416)?'motion':_0x58248d(0x1ad6));});}function _0x2ebf16(){const _0xb4544f=_0x3a2ea6;_0x28c606()[_0xb4544f(0x940)](_0x2618d7[_0xb4544f(0x74e)][_0xb4544f(0x1f4f)])?_0x2618d7[_0xb4544f(0x3ff)]=_0x28c606()[_0xb4544f(0x21c7)](_0x2618d7['allReportsSelected'],function(_0x671026){const _0x54543b=_0xb4544f;return _0x671026[_0x54543b(0x2185)]===(_0x2618d7[_0x54543b(0x74e)][_0x54543b(0x1408)]===_0x54543b(0x416)?'CustomReports':_0x54543b(0x1598));}):_0x2618d7['selectedSection'][_0xb4544f(0x1f4f)][_0xb4544f(0x1397)](function(_0x3f3aca){const _0x24e924=_0xb4544f,_0x56effd=_0x28c606()[_0x24e924(0x25f8)](_0x2618d7['allReportsSelected'],{'id':_0x3f3aca['id'],'parent':_0x3f3aca['parent']});!_0x56effd&&_0x2618d7[_0x24e924(0x3ff)][_0x24e924(0x1954)](_0x3f3aca);});}function _0x4f0a91(_0x488b74,_0x357ffc){const _0x179638=_0x3a2ea6;if(_0x488b74===_0x179638(0x2973)){if(_0x357ffc[_0x179638(0x2854)]){const _0x18c8ed=_0x28c606()['startsWith'](_0x357ffc[_0x179638(0x2854)],_0x179638(0x583))?_0x179638(0x5bb):_0x179638(0x204a);return _0x18c8ed+_0x488b74;}else return _0x357ffc['type'];}return _0x488b74;}function _0x54521e(_0x4b42e1){const _0x3054b6=_0x3a2ea6;if(_0x2618d7[_0x3054b6(0xe9e)]){const _0x42e0be=_0x17dd5b[_0x3054b6(0x856)]({'skipHide':!![]})[_0x3054b6(0x2021)]('Warning')[_0x3054b6(0x250d)](_0x45f724['instant'](_0x3054b6(0x1449)))['ariaLabel'](_0x3054b6(0x277b))[_0x3054b6(0x2283)](_0x4b42e1)['ok'](_0x45f724[_0x3054b6(0x2292)](_0x3054b6(0x22ed)))[_0x3054b6(0x101a)](_0x45f724[_0x3054b6(0x2292)](_0x3054b6(0x4f5)));_0x17dd5b[_0x3054b6(0xa60)](_0x42e0be)[_0x3054b6(0x64a)](function(){const _0x41d701=_0x3054b6;_0x17dd5b[_0x41d701(0x268e)]();});}else _0x17dd5b[_0x3054b6(0x268e)]();}}const _0x3b3263=_0x1657d5;;const _0x1fcd8d=_0x2e4a48['p']+'src/js/modules/main/apps/staff/views/userProfiles/edit/clone/clone.html/clone.html';;_0x57450a['$inject']=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),'Auth',_0x49a1e3(0x16a8),_0x49a1e3(0x16b2)];function _0x57450a(_0x5dc1ca,_0x4c3bec,_0x44a713,_0x3debf8,_0x259c21,_0x569287,_0x15f509,_0x5ec5fe,_0x324ae8,_0x3b53bc,_0x5c8487,_0x10007e){const _0x18a8b4=_0x49a1e3,_0x48d919=this;_0x48d919[_0x18a8b4(0x1d3d)]=_0x3b53bc[_0x18a8b4(0x808)](),_0x48d919['license']=_0x569287,_0x48d919[_0x18a8b4(0x28d6)]=_0x15f509,_0x48d919[_0x18a8b4(0xccc)]=_0x48d919[_0x18a8b4(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x48d919[_0x18a8b4(0xb36)]=_0x4c3bec[_0x18a8b4(0x48e)]()+_0x18a8b4(0xe1f)+_0x4c3bec[_0x18a8b4(0x1e5d)](),_0x48d919[_0x18a8b4(0x16a8)]=_0x5c8487||_0x5dc1ca[_0x18a8b4(0x1b48)][_0x18a8b4(0x16a8)]||{},_0x48d919[_0x18a8b4(0x16b2)]=_0x10007e&&_0x10007e[_0x18a8b4(0xb90)]==0x1?_0x10007e[_0x18a8b4(0x28b8)][0x0]:null,_0x48d919[_0x18a8b4(0x402)]=_0x3b53bc[_0x18a8b4(0xa7e)](_0x48d919['userProfileSection']?_0x48d919['userProfileSection'][_0x18a8b4(0x402)]:null),_0x48d919[_0x18a8b4(0x6c2)]={},_0x48d919[_0x18a8b4(0x197c)]=_0x5dc1ca[_0x18a8b4(0x1b48)]['tab']||0x0,_0x48d919[_0x18a8b4(0x9af)]=_0x374d24,_0x48d919[_0x18a8b4(0x1676)]=_0x1a6d97,_0x48d919['alert']=_0x324ae8[_0x18a8b4(0x772)],_0x48d919[_0x18a8b4(0x1587)]=_0x510365,_0x48d919['saveUserProfile']=_0x9555a;function _0x374d24(_0x36a9ee,_0x36bcf3){const _0x5638e7=_0x18a8b4;_0x44a713['show']({'controller':_0x5638e7(0x1650),'controllerAs':'vm','templateUrl':_0x291e17,'parent':angular[_0x5638e7(0x1f81)](_0x3debf8[_0x5638e7(0xb49)]),'targetEvent':_0x36bcf3,'clickOutsideToClose':!![],'locals':{'userProfile':_0x36a9ee,'userProfiles':_0x48d919[_0x5638e7(0x7bb)]?_0x48d919['userProfiles']['rows']:[],'crudPermissions':_0x48d919['crudPermissions']}});}function _0x1a6d97(_0x425f55,_0x1cdf27){const _0x462e60=_0x18a8b4;_0x44a713[_0x462e60(0xa60)]({'controller':_0x462e60(0xda5),'controllerAs':'vm','templateUrl':_0x1fcd8d,'parent':angular['element'](_0x3debf8[_0x462e60(0xb49)]),'targetEvent':_0x1cdf27,'clickOutsideToClose':!![],'locals':{'userProfile':_0x425f55,'userProfiles':_0x48d919[_0x462e60(0x7bb)]?_0x48d919[_0x462e60(0x7bb)][_0x462e60(0x28b8)]:[],'crudPermissions':_0x48d919['crudPermissions']}});}function _0x510365(){const _0xa6de17=_0x18a8b4;_0x5dc1ca['go']('app.staff.userProfiles',{},{'reload':_0xa6de17(0x14bf)});}function _0x9555a(){const _0x43f0de=_0x18a8b4;_0x5ec5fe[_0x43f0de(0x16a8)][_0x43f0de(0x2603)]({'id':_0x48d919[_0x43f0de(0x16a8)]['id']},_0x48d919['userProfile'])['$promise']['then'](function(){const _0x4e2a45=_0x43f0de;_0x324ae8[_0x4e2a45(0x1339)]({'title':_0x4e2a45(0x106c),'msg':_0x48d919[_0x4e2a45(0x16a8)][_0x4e2a45(0x2494)]?_0x48d919[_0x4e2a45(0x16a8)][_0x4e2a45(0x2494)]+_0x4e2a45(0x2032):''});})[_0x43f0de(0x20cd)](function(_0x190a3f){const _0x15f75e=_0x43f0de;_0x324ae8[_0x15f75e(0x1bd0)]({'title':_0x190a3f[_0x15f75e(0x10b3)]?'API:'+_0x190a3f[_0x15f75e(0x10b3)]+_0x15f75e(0x21db)+_0x190a3f[_0x15f75e(0x2115)]:_0x15f75e(0x13d6),'msg':_0x190a3f['data']?JSON[_0x15f75e(0x2317)](_0x190a3f[_0x15f75e(0x1c52)]):_0x190a3f['toString']()});});}}const _0x57ab45=_0x57450a;;const _0x3720d9=_0x2e4a48['p']+'src/js/modules/main/apps/staff/views/userProfiles/create/dialog.html/dialog.html';;_0x51263f['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),'$state','$mdSidenav',_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x7bb),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),'Auth',_0x49a1e3(0x1947),'setting'];function _0x51263f(_0x56e334,_0x290999,_0x3ea36f,_0x52dceb,_0x435b95,_0x24f72c,_0xd9deef,_0x42c9fc,_0x11bc44,_0x533e9c,_0x238a97,_0x1b73d8,_0x16519e,_0x3f7732,_0x163f2d,_0x72c850,_0x12a779){const _0x30c191=_0x49a1e3,_0x407e58=this;_0x407e58[_0x30c191(0x1947)]=_0x72c850,_0x407e58[_0x30c191(0x28d6)]=_0x12a779,_0x407e58[_0x30c191(0x1d3d)]=_0x163f2d[_0x30c191(0x808)](),_0x407e58[_0x30c191(0x7bb)]=_0x11bc44||{'count':0x0,'rows':[]},_0x407e58[_0x30c191(0x16a8)]=_0x533e9c,_0x407e58[_0x30c191(0x16b2)]=_0x238a97&&_0x238a97[_0x30c191(0xb90)]==0x1?_0x238a97[_0x30c191(0x28b8)][0x0]:null,_0x407e58[_0x30c191(0x402)]=_0x163f2d['parseCrudPermissions'](_0x407e58[_0x30c191(0x16b2)]?_0x407e58[_0x30c191(0x16b2)][_0x30c191(0x402)]:null),_0x407e58[_0x30c191(0x185d)]=_0x30c191(0x7bb),_0x407e58[_0x30c191(0x300)]='',_0x407e58['listOrderAsc']=null,_0x407e58[_0x30c191(0x1937)]=[],_0x407e58[_0x30c191(0x289a)]={'fields':_0x30c191(0x1621),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x407e58['arraycrudPermissions']=_0x28c606()[_0x30c191(0x161e)]([{'option':_0x30c191(0x935),'value':'\x27r\x27','disabled':!![]},{'option':_0x30c191(0xd69),'value':_0x30c191(0x1df4)},{'option':_0x30c191(0x152f),'value':_0x30c191(0x175)}],function(_0x65c83b){const _0x19b7d0=_0x30c191;return _0x28c606()[_0x19b7d0(0x1353)](_0x65c83b[_0x19b7d0(0x1096)],new RegExp('\x27','g'),'');});_0x407e58[_0x30c191(0x7bb)]&&_0x407e58[_0x30c191(0x7bb)][_0x30c191(0xb90)]>0x0&&_0x407e58[_0x30c191(0x7bb)][_0x30c191(0x28b8)][_0x30c191(0x1397)](function(_0x1b3078){const _0x5c54be=_0x30c191,_0x211424=[];_0x1b3078[_0x5c54be(0x402)][_0x5c54be(0x1397)](function(_0x364e2c){const _0x51d97b=_0x5c54be;_0x211424[_0x51d97b(0x1954)](_0x407e58[_0x51d97b(0xb25)][_0x364e2c][_0x51d97b(0x335)]);});const _0x40ea37=[];_0x211424[_0x5c54be(0x1397)](function(_0xdddc3c){const _0x1c9c22=_0x5c54be;_0x40ea37['push'](_0x42c9fc['instant'](_0x1c9c22(0x1aeb)+_0xdddc3c[_0x1c9c22(0xa3c)]()));}),_0x1b3078['selectedcrudPermissions']=_0x40ea37['join'](',\x20');});_0x407e58['editstate']=_0x1540a0,_0x407e58[_0x30c191(0x1676)]=_0x3e3396,_0x407e58[_0x30c191(0x1262)]=_0x142cc7,_0x407e58[_0x30c191(0x1339)]=_0x41acac,_0x407e58[_0x30c191(0x12d0)]=_0x57cbf7,_0x407e58['createOrEditUserProfile']=_0x463b72,_0x407e58['deleteUserProfile']=_0x499bf2,_0x407e58[_0x30c191(0x190c)]=_0x13f4e9,_0x407e58[_0x30c191(0x275b)]=_0x35694d,_0x407e58[_0x30c191(0x118b)]=_0x4818ec,_0x407e58[_0x30c191(0x14f4)]=_0x236cf6;function _0x1540a0(_0x1342bc){const _0x3e2381=_0x30c191;_0x3ea36f['go'](_0x3e2381(0x24e3),{'id':_0x1342bc['id'],'userProfile':_0x1342bc,'crudPermissions':_0x407e58[_0x3e2381(0x402)]});}function _0x3e3396(_0x588206,_0x50e5f3){const _0x1cf400=_0x30c191;_0x435b95[_0x1cf400(0xa60)]({'controller':_0x1cf400(0xda5),'controllerAs':'vm','templateUrl':_0x1fcd8d,'parent':angular[_0x1cf400(0x1f81)](_0x24f72c[_0x1cf400(0xb49)]),'targetEvent':_0x50e5f3,'clickOutsideToClose':!![],'locals':{'userProfile':_0x588206,'userProfiles':_0x407e58[_0x1cf400(0x7bb)]?_0x407e58['userProfiles'][_0x1cf400(0x28b8)]:[],'crudPermissions':_0x407e58[_0x1cf400(0x402)]}});}function _0x142cc7(_0x3dda15,_0x32b024){const _0x5b9821=_0x30c191,_0x1d0817=_0x435b95[_0x5b9821(0x856)]()['title'](_0x5b9821(0x1231)+_0x28c606()[_0x5b9821(0xc01)]('userProfile')+'?')[_0x5b9821(0x33a)](_0x5b9821(0x50b)+(_0x3dda15['name']||_0x5b9821(0x16a8))+_0x5b9821(0x26d0)+_0x5b9821(0x4b8))[_0x5b9821(0x213e)](_0x5b9821(0x16e3))['targetEvent'](_0x32b024)['ok']('OK')[_0x5b9821(0x101a)]('CANCEL');_0x435b95[_0x5b9821(0xa60)](_0x1d0817)['then'](function(){_0x499bf2(_0x3dda15);},function(){const _0x15274c=_0x5b9821;console[_0x15274c(0x9b4)](_0x15274c(0x18fd));});}let _0x45c507=!![],_0x3ef13c=0x1;_0x56e334[_0x30c191(0xc62)]('vm.query.filter',function(_0x4c040e,_0xde598d){const _0x476661=_0x30c191;_0x45c507?_0xd9deef(function(){_0x45c507=![];}):(!_0xde598d&&(_0x3ef13c=_0x407e58[_0x476661(0x289a)][_0x476661(0xc72)]),_0x4c040e!==_0xde598d&&(_0x407e58['query']['page']=0x1),!_0x4c040e&&(_0x407e58[_0x476661(0x289a)]['page']=_0x3ef13c),_0x407e58['getUserProfiles']());});function _0x41acac(_0x31f83d){const _0x28088c=_0x30c191;_0x407e58[_0x28088c(0x7bb)]=_0x31f83d||{'count':0x0,'rows':[]};}function _0x57cbf7(){const _0x2f1d7b=_0x30c191;_0x407e58[_0x2f1d7b(0x289a)][_0x2f1d7b(0x24f9)]=(_0x407e58[_0x2f1d7b(0x289a)]['page']-0x1)*_0x407e58[_0x2f1d7b(0x289a)][_0x2f1d7b(0x25bb)],_0x163f2d['hasRole'](_0x2f1d7b(0x333))?_0x407e58[_0x2f1d7b(0x1713)]=_0x1b73d8[_0x2f1d7b(0x16a8)][_0x2f1d7b(0x896)](_0x407e58[_0x2f1d7b(0x289a)],_0x41acac)[_0x2f1d7b(0x15e7)]:(_0x407e58['query']['id']=_0x407e58[_0x2f1d7b(0x16a8)]['id'],_0x407e58[_0x2f1d7b(0x289a)][_0x2f1d7b(0xa21)]='UserProfiles',_0x407e58['promise']=_0x1b73d8[_0x2f1d7b(0x16a8)][_0x2f1d7b(0x2565)](_0x407e58['query'],_0x41acac)['$promise']);}function _0x463b72(_0x2951eb,_0xca429){const _0x1945d1=_0x30c191;_0x435b95[_0x1945d1(0xa60)]({'controller':'CreateOrEditUserProfileDialogController','controllerAs':'vm','templateUrl':_0x3720d9,'parent':angular[_0x1945d1(0x1f81)](_0x24f72c[_0x1945d1(0xb49)]),'targetEvent':_0x2951eb,'clickOutsideToClose':!![],'locals':{'userProfile':_0xca429,'userProfiles':_0x407e58[_0x1945d1(0x7bb)][_0x1945d1(0x28b8)],'license':_0x407e58['license'],'setting':_0x407e58[_0x1945d1(0x28d6)],'crudPermissions':_0x407e58[_0x1945d1(0x402)]}});}function _0x499bf2(_0x4e2ac2){const _0x4f085d=_0x30c191;_0x1b73d8[_0x4f085d(0x16a8)]['delete']({'id':_0x4e2ac2['id']})[_0x4f085d(0x15e7)][_0x4f085d(0x64a)](function(){const _0xfe17a=_0x4f085d;_0x28c606()['remove'](_0x407e58['userProfiles'][_0xfe17a(0x28b8)],{'id':_0x4e2ac2['id']}),_0x407e58[_0xfe17a(0x7bb)][_0xfe17a(0xb90)]-=0x1,!_0x407e58['userProfiles'][_0xfe17a(0x28b8)][_0xfe17a(0x1b9e)]&&_0x407e58[_0xfe17a(0x12d0)](),_0x3f7732['success']({'title':_0x28c606()[_0xfe17a(0xc01)]('UserProfile')+_0xfe17a(0x2502),'msg':_0x4e2ac2[_0xfe17a(0x2494)]?_0x4e2ac2[_0xfe17a(0x2494)]+_0xfe17a(0x1fa8):''});})['catch'](function(_0x34af47){const _0x3986f1=_0x4f085d;if(_0x34af47['data']&&_0x34af47['data'][_0x3986f1(0xbae)]&&_0x34af47[_0x3986f1(0x1c52)][_0x3986f1(0xbae)]['length']){_0x407e58[_0x3986f1(0xbae)]=_0x34af47[_0x3986f1(0x1c52)][_0x3986f1(0xbae)]||[{'message':_0x34af47[_0x3986f1(0x2915)](),'type':'SYSTEM:DELETEuserProfile'}];for(let _0x1e15a3=0x0;_0x1e15a3<_0x34af47[_0x3986f1(0x1c52)][_0x3986f1(0xbae)][_0x3986f1(0x1b9e)];_0x1e15a3++){_0x3f7732[_0x3986f1(0x1bd0)]({'title':_0x34af47[_0x3986f1(0x1c52)][_0x3986f1(0xbae)][_0x1e15a3]['type'],'msg':_0x34af47[_0x3986f1(0x1c52)][_0x3986f1(0xbae)][_0x1e15a3][_0x3986f1(0x18ca)]});}}else _0x3f7732[_0x3986f1(0x1bd0)]({'title':_0x34af47[_0x3986f1(0x10b3)]?_0x3986f1(0x575)+_0x34af47[_0x3986f1(0x10b3)]+'\x20-\x20'+_0x34af47['statusText']:_0x3986f1(0xe0d),'msg':_0x34af47[_0x3986f1(0x1c52)]?JSON[_0x3986f1(0x2317)](_0x34af47[_0x3986f1(0x1c52)]['message']):_0x34af47[_0x3986f1(0x18ca)]||_0x34af47['toString']()});});}function _0x13f4e9(){const _0x38512d=_0x30c191,_0x454ff4=angular[_0x38512d(0x289e)](_0x407e58[_0x38512d(0x1937)]);return _0x407e58[_0x38512d(0x1937)]=[],_0x454ff4;}function _0x35694d(_0x277fbd){const _0xb35a46=_0x30c191,_0x2a8f19=_0x435b95['confirm']()[_0xb35a46(0x2021)](_0xb35a46(0x229d))[_0xb35a46(0x33a)](''+_0x407e58['selectedUserProfiles'][_0xb35a46(0x1b9e)]+'\x20selected'+_0xb35a46(0x4b8))[_0xb35a46(0x213e)]('delete\x20UserProfiles')[_0xb35a46(0x2283)](_0x277fbd)['ok']('OK')[_0xb35a46(0x101a)](_0xb35a46(0x18fd));_0x435b95[_0xb35a46(0xa60)](_0x2a8f19)[_0xb35a46(0x64a)](function(){const _0x2ebecd=_0xb35a46;_0x407e58[_0x2ebecd(0x1937)]['forEach'](function(_0x32b5c7){_0x499bf2(_0x32b5c7);}),_0x407e58[_0x2ebecd(0x1937)]=[];});}function _0x4818ec(){const _0x2d06ab=_0x30c191;_0x407e58[_0x2d06ab(0x1937)]=[];}function _0x236cf6(){const _0xfe057f=_0x30c191;_0x407e58[_0xfe057f(0x1937)]=_0x407e58[_0xfe057f(0x7bb)][_0xfe057f(0x28b8)];}}const _0x1cd40b=_0x51263f;;_0x5c1fed[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),'users',_0x49a1e3(0x2e8),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x5c1fed(_0x38f571,_0x340dab,_0x55a31a,_0x45d58f,_0x56eb7d,_0x4f488a,_0x490c51,_0x4798a7,_0x2e155c,_0x399326,_0x2fc3f9,_0x59e05f,_0x2bc873,_0x82dede){const _0x1c0551=_0x49a1e3,_0x542c70=this;_0x542c70[_0x1c0551(0x1d3d)]=_0x2fc3f9['getCurrentUser'](),_0x542c70['errors']=[],_0x542c70[_0x1c0551(0x28d6)]=_0x2bc873,_0x542c70[_0x1c0551(0x1947)]=_0x59e05f,_0x542c70[_0x1c0551(0x402)]=_0x82dede,_0x542c70[_0x1c0551(0x6c2)]={},_0x542c70['passwordPattern']=_0x542c70[_0x1c0551(0x28d6)]&&_0x542c70[_0x1c0551(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x542c70[_0x1c0551(0x2021)]=_0x1c0551(0x5b8),_0x542c70[_0x1c0551(0x2e8)]=angular[_0x1c0551(0x289e)](_0x2e155c),_0x542c70[_0x1c0551(0xff5)]=_0x4798a7,_0x542c70['newUser']=![];!_0x542c70['user']&&(_0x542c70[_0x1c0551(0x2e8)]={'role':_0x1c0551(0x2e8),'autointernal':!![],'context':_0x1c0551(0x275)},_0x542c70['title']=_0x1c0551(0x1a05),_0x542c70[_0x1c0551(0x12f5)]=!![]);_0x542c70[_0x1c0551(0x1223)]=_0x3b93c4,_0x542c70[_0x1c0551(0x2879)]=_0x46f257,_0x542c70['deleteUser']=_0x5071fe,_0x542c70[_0x1c0551(0x1605)]=_0x163a35,_0x542c70[_0x1c0551(0x16cb)]=_0x196ab8,_0x399326[_0x1c0551(0x16a8)]['get']({'fields':_0x1c0551(0x1427),'sort':_0x1c0551(0x2494)})[_0x1c0551(0x15e7)]['then'](function(_0x2ad9ba){const _0x1474eb=_0x1c0551;_0x542c70[_0x1474eb(0x7bb)]=_0x2ad9ba[_0x1474eb(0x28b8)]||[];})[_0x1c0551(0x20cd)](function(_0x43202e){const _0x3ea618=_0x1c0551;_0x490c51['error']({'title':_0x43202e[_0x3ea618(0x10b3)]?_0x3ea618(0x575)+_0x43202e[_0x3ea618(0x10b3)]+_0x3ea618(0x21db)+_0x43202e['statusText']:_0x3ea618(0x2280),'msg':_0x43202e[_0x3ea618(0x1c52)]?JSON['stringify'](_0x43202e[_0x3ea618(0x1c52)]):_0x43202e[_0x3ea618(0x2915)]()});});function _0x3b93c4(){const _0x3138e9=_0x1c0551;_0x542c70[_0x3138e9(0xbae)]=[],_0x399326[_0x3138e9(0x2e8)][_0x3138e9(0x2479)](_0x542c70[_0x3138e9(0x2e8)])[_0x3138e9(0x15e7)][_0x3138e9(0x64a)](function(_0x298d8b){const _0xbb2947=_0x3138e9;_0x542c70['users']['unshift'](_0x298d8b[_0xbb2947(0x14f8)]()),_0x490c51[_0xbb2947(0x1339)]({'title':_0xbb2947(0xa64),'msg':_0x542c70[_0xbb2947(0x2e8)][_0xbb2947(0x2494)]?_0x542c70[_0xbb2947(0x2e8)]['name']+_0xbb2947(0x258d):''}),_0x196ab8(_0x298d8b);})[_0x3138e9(0x20cd)](function(_0x23e062){const _0xb90a06=_0x3138e9;if(_0x23e062['data']&&_0x23e062[_0xb90a06(0x1c52)][_0xb90a06(0xbae)]&&_0x23e062[_0xb90a06(0x1c52)][_0xb90a06(0xbae)][_0xb90a06(0x1b9e)]){_0x542c70[_0xb90a06(0xbae)]=_0x23e062['data'][_0xb90a06(0xbae)]||[{'message':_0x23e062['toString'](),'type':_0xb90a06(0xdf7)}];for(let _0x376d3e=0x0;_0x376d3e<_0x23e062[_0xb90a06(0x1c52)][_0xb90a06(0xbae)][_0xb90a06(0x1b9e)];_0x376d3e+=0x1){_0x490c51['error']({'title':_0x23e062[_0xb90a06(0x1c52)]['errors'][_0x376d3e][_0xb90a06(0x2185)],'msg':_0x23e062[_0xb90a06(0x1c52)]['errors'][_0x376d3e][_0xb90a06(0x18ca)]});}}else _0x490c51[_0xb90a06(0x1bd0)]({'title':_0x23e062[_0xb90a06(0x10b3)]?_0xb90a06(0x575)+_0x23e062[_0xb90a06(0x10b3)]+'\x20-\x20'+_0x23e062['statusText']:'api.user.save','msg':_0x23e062[_0xb90a06(0x1c52)]?JSON[_0xb90a06(0x2317)](_0x23e062[_0xb90a06(0x1c52)]['message']):_0x23e062['toString']()});});}function _0x46f257(){const _0x44cfcb=_0x1c0551;_0x542c70[_0x44cfcb(0xbae)]=[],_0x399326[_0x44cfcb(0x2e8)][_0x44cfcb(0x2603)]({'id':_0x542c70['user']['id']},_0x542c70[_0x44cfcb(0x2e8)])[_0x44cfcb(0x15e7)][_0x44cfcb(0x64a)](function(_0x87fa91){const _0x31d739=_0x44cfcb,_0xb9c1d9=_0x28c606()['find'](_0x542c70[_0x31d739(0xff5)],{'id':_0x87fa91['id']});_0xb9c1d9&&_0x28c606()[_0x31d739(0x14fe)](_0xb9c1d9,_0x28c606()[_0x31d739(0x27bb)](_0x87fa91['toJSON'](),_0x28c606()[_0x31d739(0x1ec6)](_0xb9c1d9))),_0x490c51[_0x31d739(0x1339)]({'title':_0x31d739(0x1aaf),'msg':_0x542c70[_0x31d739(0x2e8)]['name']?_0x542c70[_0x31d739(0x2e8)][_0x31d739(0x2494)]+_0x31d739(0x271):''}),_0x196ab8(_0x87fa91);})[_0x44cfcb(0x20cd)](function(_0x240806){const _0x5e85f1=_0x44cfcb;if(_0x240806[_0x5e85f1(0x1c52)]&&_0x240806[_0x5e85f1(0x1c52)][_0x5e85f1(0xbae)]&&_0x240806[_0x5e85f1(0x1c52)]['errors'][_0x5e85f1(0x1b9e)]){_0x542c70[_0x5e85f1(0xbae)]=_0x240806[_0x5e85f1(0x1c52)][_0x5e85f1(0xbae)]||[{'message':_0x240806[_0x5e85f1(0x2915)](),'type':_0x5e85f1(0x15e5)}];for(let _0x10a9af=0x0;_0x10a9af<_0x240806[_0x5e85f1(0x1c52)][_0x5e85f1(0xbae)][_0x5e85f1(0x1b9e)];_0x10a9af++){_0x490c51[_0x5e85f1(0x1bd0)]({'title':_0x240806[_0x5e85f1(0x1c52)]['errors'][_0x10a9af][_0x5e85f1(0x2185)],'msg':_0x240806[_0x5e85f1(0x1c52)][_0x5e85f1(0xbae)][_0x10a9af][_0x5e85f1(0x18ca)]});}}else _0x490c51[_0x5e85f1(0x1bd0)]({'title':_0x240806[_0x5e85f1(0x10b3)]?_0x5e85f1(0x575)+_0x240806[_0x5e85f1(0x10b3)]+_0x5e85f1(0x21db)+_0x240806[_0x5e85f1(0x2115)]:_0x5e85f1(0x15e5),'msg':_0x240806[_0x5e85f1(0x1c52)]?JSON['stringify'](_0x240806[_0x5e85f1(0x1c52)][_0x5e85f1(0x18ca)]):_0x240806[_0x5e85f1(0x2915)]()});});}function _0x5071fe(_0x2407ba){const _0x229a78=_0x1c0551,_0x1b3417=_0x2fc3f9[_0x229a78(0x808)]();if(_0x1b3417['id']===_0x542c70[_0x229a78(0x2e8)]['id'])return _0x490c51[_0x229a78(0x1bd0)]({'title':_0x229a78(0x2203),'msg':_0x229a78(0x2066)});_0x542c70[_0x229a78(0xbae)]=[];const _0x4cad7b=_0x45d58f['confirm']()[_0x229a78(0x2021)]('Are\x20you\x20sure?')['content'](_0x229a78(0x11e0))[_0x229a78(0x213e)](_0x229a78(0x405))['ok'](_0x229a78(0x2664))[_0x229a78(0x101a)](_0x229a78(0x1dc6))[_0x229a78(0x2283)](_0x2407ba);_0x45d58f[_0x229a78(0xa60)](_0x4cad7b)[_0x229a78(0x64a)](function(){const _0x598f2c=_0x229a78;_0x399326['user'][_0x598f2c(0xabd)]({'id':_0x542c70[_0x598f2c(0x2e8)]['id']})['$promise']['then'](function(){const _0x1a9d05=_0x598f2c;_0x28c606()['remove'](_0x542c70[_0x1a9d05(0xff5)],{'id':_0x542c70['user']['id']}),_0x490c51[_0x1a9d05(0x1339)]({'title':_0x1a9d05(0x108a),'msg':(_0x542c70[_0x1a9d05(0x2e8)][_0x1a9d05(0x2494)]||'user')+_0x1a9d05(0x1fa8)}),_0x196ab8(_0x542c70[_0x1a9d05(0x2e8)]);})[_0x598f2c(0x20cd)](function(_0x4a42f6){const _0x214c61=_0x598f2c;if(_0x4a42f6[_0x214c61(0x1c52)]&&_0x4a42f6[_0x214c61(0x1c52)][_0x214c61(0xbae)]&&_0x4a42f6['data']['errors'][_0x214c61(0x1b9e)]){_0x542c70[_0x214c61(0xbae)]=_0x4a42f6[_0x214c61(0x1c52)][_0x214c61(0xbae)]||[{'message':_0x4a42f6[_0x214c61(0x2915)](),'type':_0x214c61(0x13b8)}];for(let _0x48a026=0x0;_0x48a026<_0x4a42f6['data']['errors']['length'];_0x48a026++){_0x490c51[_0x214c61(0x1bd0)]({'title':_0x4a42f6[_0x214c61(0x1c52)][_0x214c61(0xbae)][_0x48a026][_0x214c61(0x2185)],'msg':_0x4a42f6[_0x214c61(0x1c52)][_0x214c61(0xbae)][_0x48a026][_0x214c61(0x18ca)]});}}else _0x490c51[_0x214c61(0x1bd0)]({'title':_0x4a42f6[_0x214c61(0x10b3)]?_0x214c61(0x575)+_0x4a42f6[_0x214c61(0x10b3)]+_0x214c61(0x21db)+_0x4a42f6[_0x214c61(0x2115)]:_0x214c61(0x13b8),'msg':_0x4a42f6[_0x214c61(0x1c52)]?JSON['stringify'](_0x4a42f6['data'][_0x214c61(0x18ca)]):_0x4a42f6['message']||_0x4a42f6[_0x214c61(0x2915)]()});});},function(){});}function _0x163a35(_0x237837){return _0x237837===null?undefined:new Date(_0x237837);}function _0x196ab8(_0x1b2f6d){const _0x24bb25=_0x1c0551;_0x45d58f[_0x24bb25(0x268e)](_0x1b2f6d);}}const _0x5badc5=_0x5c1fed;;_0x110d9f[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x2e8),_0x49a1e3(0xdcf)];function _0x110d9f(_0x60ed37,_0x376319,_0x2ee7c7,_0x3427d1,_0x3dc8e9){const _0x3d37a7=_0x49a1e3,_0x56bad8=this;_0x56bad8[_0x3d37a7(0x1d3d)]=_0x3dc8e9['getCurrentUser'](),_0x56bad8[_0x3d37a7(0xbae)]=[],_0x56bad8['user']=_0x3427d1,_0x56bad8[_0x3d37a7(0x9ab)]=_0x262151,_0x56bad8[_0x3d37a7(0x1f7f)]=_0x3fbd1e,_0x56bad8['closeDialog']=_0x14eb77;function _0x262151(){const _0x252e7c=_0x3d37a7;_0x56bad8['errors']=[],_0x2ee7c7[_0x252e7c(0x2e8)]['createApiKey']({'id':_0x56bad8[_0x252e7c(0x2e8)]['id']})['$promise'][_0x252e7c(0x64a)](function(_0x35411c){const _0xdbea97=_0x252e7c;_0x56bad8[_0xdbea97(0x2e8)]['apiKey']=_0x35411c['api_key']||_0xdbea97(0x1ce9),_0x376319[_0xdbea97(0x1339)]({'title':_0xdbea97(0x5c1)}),_0x14eb77();})[_0x252e7c(0x20cd)](function(_0x1c80b5){const _0x3e48db=_0x252e7c;_0x376319[_0x3e48db(0x1bd0)]({'title':_0x1c80b5[_0x3e48db(0x10b3)]?'API:'+_0x1c80b5[_0x3e48db(0x10b3)]+'\x20-\x20'+_0x1c80b5[_0x3e48db(0x2115)]:_0x3e48db(0x2331),'msg':_0x1c80b5[_0x3e48db(0x1c52)]?JSON[_0x3e48db(0x2317)](_0x1c80b5[_0x3e48db(0x1c52)][_0x3e48db(0x18ca)]):_0x1c80b5['toString']()}),_0x56bad8[_0x3e48db(0xbae)]=_0x1c80b5[_0x3e48db(0x1c52)][_0x3e48db(0xbae)]||[{'message':_0x1c80b5[_0x3e48db(0x2915)](),'type':_0x3e48db(0x2331)}];});}function _0x3fbd1e(){const _0x2dcd5f=_0x3d37a7;_0x56bad8[_0x2dcd5f(0xbae)]=[],_0x2ee7c7['user'][_0x2dcd5f(0x1f7f)]({'id':_0x56bad8[_0x2dcd5f(0x2e8)]['id']})[_0x2dcd5f(0x15e7)][_0x2dcd5f(0x64a)](function(){const _0x21df34=_0x2dcd5f;_0x56bad8[_0x21df34(0x2e8)][_0x21df34(0x163d)]='N/A',_0x376319[_0x21df34(0x1339)]({'title':_0x21df34(0x171b)}),_0x14eb77();})[_0x2dcd5f(0x20cd)](function(_0x4949d1){const _0x5d0488=_0x2dcd5f;_0x376319['error']({'title':_0x4949d1['status']?_0x5d0488(0x575)+_0x4949d1[_0x5d0488(0x10b3)]+_0x5d0488(0x21db)+_0x4949d1['statusText']:_0x5d0488(0xee7),'msg':_0x4949d1[_0x5d0488(0x1c52)]?JSON[_0x5d0488(0x2317)](_0x4949d1[_0x5d0488(0x1c52)][_0x5d0488(0x18ca)]):_0x4949d1[_0x5d0488(0x2915)]()}),_0x56bad8['errors']=_0x4949d1[_0x5d0488(0x1c52)][_0x5d0488(0xbae)]||[{'message':_0x4949d1['toString'](),'type':_0x5d0488(0xee7)}];});}function _0x14eb77(){_0x60ed37['hide']();}}const _0x59c538=_0x110d9f;;_0x13e7c5['$inject']=['$cookies',_0x49a1e3(0x680)];function _0x13e7c5(_0x5eaebf,_0x1dd8a0){const _0x21cede=_0x49a1e3,_0x3ada34=this,_0x297d7e=0x8,_0x2e86a1=_0x297d7e*0x400*0x400;_0x3ada34['user']={},_0x3ada34[_0x21cede(0x402)],_0x3ada34[_0x21cede(0x1026)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x2e86a1,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x3ada34[_0x21cede(0x1eec)]={'flow':{}},_0x3ada34[_0x21cede(0x397)]=![],_0x3ada34[_0x21cede(0x25ed)]=_0x151983,_0x3ada34[_0x21cede(0x1c5)]=_0xfbc863,_0x3ada34[_0x21cede(0x1de6)]=_0x3416f0,_0x3ada34['init']=_0x24fc75;function _0x24fc75(_0x2cc083,_0x30272f){const _0x4a40c7=_0x21cede;_0x3ada34[_0x4a40c7(0x2e8)]=angular[_0x4a40c7(0x289e)](_0x2cc083),_0x3ada34['crudPermissions']=typeof _0x30272f!==_0x4a40c7(0x19a1)?_0x30272f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3ada34[_0x4a40c7(0x1026)]['target']='api/users/'+_0x3ada34[_0x4a40c7(0x2e8)]['id']+_0x4a40c7(0x415),_0x3ada34['user'][_0x4a40c7(0x21e3)]=[];}function _0x151983(_0x183e62){const _0x4af6f6=_0x21cede,_0x4f6544=[_0x4af6f6(0x105e),_0x4af6f6(0xfcc)];if(!_0x28c606()[_0x4af6f6(0x68a)](_0x4f6544,_0x183e62['getExtension']()))return _0x1dd8a0['error']({'title':_0x4af6f6(0x1486)+_0x183e62[_0x4af6f6(0xa2f)](),'msg':'Supported\x20extension:\x20'+_0x4f6544['join']()}),![];if(_0x183e62[_0x4af6f6(0x1c97)]>_0x2e86a1)return _0x1dd8a0[_0x4af6f6(0x1bd0)]({'title':'File\x20too\x20big','msg':_0x4af6f6(0xbfa)+_0x297d7e+'MB'}),![];const _0x46e47b={'id':_0x183e62['uniqueIdentifier'],'file':_0x183e62,'type':_0x4af6f6(0xffd)};return _0x3ada34[_0x4af6f6(0x2e8)][_0x4af6f6(0x21e3)][_0x4af6f6(0x1891)](_0x46e47b),!![];}function _0xfbc863(){const _0x342b1b=_0x21cede;_0x3ada34['ngFlow']['flow'][_0x342b1b(0x2017)][_0x342b1b(0x1de3)]={'X-Requested-With':_0x342b1b(0x15fc),'Authorization':'Bearer\x20'+_0x5eaebf[_0x342b1b(0x896)](_0x342b1b(0x283d))},_0x3ada34[_0x342b1b(0x1eec)][_0x342b1b(0x891)][_0x342b1b(0x1c5)]();}function _0x3416f0(_0x3aa482){const _0x3320d7=_0x21cede;angular[_0x3320d7(0x1397)](_0x3ada34['user']['images'],function(_0x481d48){const _0x4ffd8d=_0x3320d7;if(_0x481d48['id']===_0x3aa482[_0x4ffd8d(0x16c4)]){const _0x3c2774=new FileReader();_0x3c2774[_0x4ffd8d(0x2724)](_0x481d48[_0x4ffd8d(0x10b4)][_0x4ffd8d(0x10b4)]),_0x3c2774[_0x4ffd8d(0x11c)]=function(_0x475b2c){const _0x5edab3=_0x4ffd8d;_0x481d48[_0x5edab3(0x2761)]=_0x475b2c[_0x5edab3(0x2497)][_0x5edab3(0x5e3)];},_0x481d48['type']=_0x4ffd8d(0x1a0);}});}}const _0x35e635=_0x13e7c5;;_0x5a3dfd['$inject']=[_0x49a1e3(0x1674),'$mdDialog',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x2e8),'setting',_0x49a1e3(0xdcf)];function _0x5a3dfd(_0x2ebfe7,_0xc04623,_0xb792a6,_0x5c055c,_0x299687,_0x90db05,_0x44dcf8){const _0x2ecfac=_0x49a1e3,_0x2db24f=this;_0x2db24f[_0x2ecfac(0x1d3d)]=_0x44dcf8[_0x2ecfac(0x808)](),_0x2db24f[_0x2ecfac(0xbae)]=[],_0x2db24f[_0x2ecfac(0x28d6)]=_0x90db05,_0x2db24f['passwordPattern']=_0x2db24f[_0x2ecfac(0x28d6)][_0x2ecfac(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2db24f[_0x2ecfac(0x2e8)]=_0x299687,_0x2db24f['password']='',_0x2db24f['oldPassword']='',_0x2db24f[_0x2ecfac(0xb7e)]=_0x51ffe1,_0x2db24f['closeDialog']=_0x5d6cf5,_0x2ebfe7[_0x2ecfac(0xc62)]('vm.password',function(_0x3d049c){const _0x366aff=_0x2ecfac;!_0x28c606()['isNil'](_0x2db24f[_0x366aff(0x1d9)])&&(_0x3d049c===_0x2db24f['oldPassword']?_0x2ebfe7[_0x366aff(0x1b3c)][_0x366aff(0x441)][_0x366aff(0x1737)](_0x366aff(0x24a0),![]):_0x2ebfe7['userForm'][_0x366aff(0x441)]['$setValidity'](_0x366aff(0x24a0),!![]));});function _0x51ffe1(){const _0x86dc1f=_0x2ecfac;_0x2db24f[_0x86dc1f(0xbae)]=[];const _0x128f6f={'id':_0x2db24f[_0x86dc1f(0x2e8)]['id'],'newPassword':_0x2db24f[_0x86dc1f(0x441)]};_0x2db24f[_0x86dc1f(0x1d3d)]['id']==_0x2db24f[_0x86dc1f(0x2e8)]['id']&&(_0x128f6f[_0x86dc1f(0x1d9)]=_0x2db24f[_0x86dc1f(0x1d9)]),_0x5c055c[_0x86dc1f(0x2e8)][_0x86dc1f(0x56d)](_0x128f6f)[_0x86dc1f(0x15e7)][_0x86dc1f(0x64a)](function(){const _0xc7d298=_0x86dc1f;_0xb792a6[_0xc7d298(0x1339)]({'title':_0xc7d298(0x603)}),_0x5d6cf5();})['catch'](function(_0xf085fd){const _0x211e34=_0x86dc1f;_0xb792a6['error']({'title':_0xf085fd[_0x211e34(0x10b3)]?_0x211e34(0x575)+_0xf085fd[_0x211e34(0x10b3)]+_0x211e34(0x21db)+_0xf085fd['statusText']:'api.user.save','msg':_0xf085fd[_0x211e34(0x1c52)]?JSON[_0x211e34(0x2317)](_0xf085fd['data']['message']):_0xf085fd['toString']()}),_0x2db24f['errors']=_0xf085fd[_0x211e34(0x1c52)][_0x211e34(0xbae)]||[{'message':_0xf085fd[_0x211e34(0x2915)](),'type':_0x211e34(0x27d4)}];});}function _0x5d6cf5(){const _0x52f607=_0x2ecfac;_0xc04623[_0x52f607(0x268e)]();}}const _0x266ea3=_0x5a3dfd;;const _0x4fc979=_0x2e4a48['p']+_0x49a1e3(0x1182);;const _0x46b470=_0x2e4a48['p']+_0x49a1e3(0x7ab);;_0x584aa3[_0x49a1e3(0x1e73)]=['$state','$location',_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x2e8),_0x49a1e3(0x16b2)];function _0x584aa3(_0x1b300d,_0x401116,_0x4d19da,_0x2f4e4c,_0x323f17,_0x1eb37a,_0x5944d6,_0x2aefc0,_0x579553,_0x562799,_0x29454a,_0x305c2e){const _0x5dae50=_0x49a1e3,_0x493507=this;_0x493507[_0x5dae50(0x1d3d)]=_0x562799[_0x5dae50(0x808)](),_0x493507[_0x5dae50(0x1947)]=_0x1eb37a,_0x493507['setting']=_0x5944d6,_0x493507[_0x5dae50(0xccc)]=_0x493507['setting'][_0x5dae50(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x493507[_0x5dae50(0xb36)]=_0x401116[_0x5dae50(0x48e)]()+'://'+_0x401116[_0x5dae50(0x1e5d)](),_0x493507[_0x5dae50(0x2e8)]=_0x29454a||_0x1b300d[_0x5dae50(0x1b48)]['user']||{},_0x493507[_0x5dae50(0x16b2)]=_0x305c2e&&_0x305c2e[_0x5dae50(0xb90)]==0x1?_0x305c2e[_0x5dae50(0x28b8)][0x0]:null,_0x493507['crudPermissions']=_0x562799[_0x5dae50(0xa7e)](_0x493507[_0x5dae50(0x16b2)]?_0x493507['userProfileSection'][_0x5dae50(0x402)]:null),_0x493507[_0x5dae50(0x6c2)]={},_0x493507[_0x5dae50(0x197c)]=_0x1b300d[_0x5dae50(0x1b48)][_0x5dae50(0x1222)]||0x0,_0x493507[_0x5dae50(0x786)]=_0x44373e,_0x493507[_0x5dae50(0x7e1)]=_0x44612d,_0x493507['alert']=_0x579553[_0x5dae50(0x772)],_0x493507[_0x5dae50(0x2b3)]=_0x3f2a5e,_0x493507[_0x5dae50(0x2879)]=_0x539cdb,_0x2aefc0[_0x5dae50(0x1faa)]['get']({'fields':_0x5dae50(0x1427),'sort':'name'})[_0x5dae50(0x15e7)][_0x5dae50(0x64a)](function(_0x2af6be){const _0x2d5c1f=_0x5dae50;_0x493507[_0x2d5c1f(0xad1)]=_0x2af6be[_0x2d5c1f(0x28b8)]||[];})['catch'](function(_0x40b8e6){const _0x45ab49=_0x5dae50;_0x579553['error']({'title':_0x40b8e6['status']?_0x45ab49(0x575)+_0x40b8e6[_0x45ab49(0x10b3)]+'\x20-\x20'+_0x40b8e6[_0x45ab49(0x2115)]:_0x45ab49(0xbea),'msg':_0x40b8e6[_0x45ab49(0x1c52)]?JSON[_0x45ab49(0x2317)](_0x40b8e6[_0x45ab49(0x1c52)]):_0x40b8e6[_0x45ab49(0x2915)]()});}),_0x2aefc0[_0x5dae50(0x16a8)][_0x5dae50(0x896)]({'fields':'id,name','sort':'name'})[_0x5dae50(0x15e7)][_0x5dae50(0x64a)](function(_0x5f2e64){_0x493507['userProfiles']=_0x5f2e64['rows']||[];})[_0x5dae50(0x20cd)](function(_0x49385c){const _0x2f3e3e=_0x5dae50;_0x579553[_0x2f3e3e(0x1bd0)]({'title':_0x49385c[_0x2f3e3e(0x10b3)]?_0x2f3e3e(0x575)+_0x49385c[_0x2f3e3e(0x10b3)]+'\x20-\x20'+_0x49385c['statusText']:_0x2f3e3e(0x2280),'msg':_0x49385c[_0x2f3e3e(0x1c52)]?JSON['stringify'](_0x49385c[_0x2f3e3e(0x1c52)]):_0x49385c['toString']()});}),_0x2aefc0[_0x5dae50(0x2e8)][_0x5dae50(0x6da)]({'id':_0x493507['user']['id']})[_0x5dae50(0x15e7)][_0x5dae50(0x64a)](function(_0x8e0851){const _0x5197c7=_0x5dae50;_0x493507[_0x5197c7(0x2e8)][_0x5197c7(0x163d)]=_0x8e0851[_0x5197c7(0x2160)]?_0x8e0851[_0x5197c7(0x2160)]:_0x5197c7(0x1ce9);})[_0x5dae50(0x20cd)](function(_0x4f6a26){const _0x1abbee=_0x5dae50;_0x579553[_0x1abbee(0x1bd0)]({'title':_0x4f6a26['status']?_0x1abbee(0x575)+_0x4f6a26['status']+_0x1abbee(0x21db)+_0x4f6a26['statusText']:_0x1abbee(0xe06),'msg':_0x4f6a26['data']?JSON['stringify'](_0x4f6a26[_0x1abbee(0x1c52)]):_0x4f6a26[_0x1abbee(0x2915)]()});});function _0x44373e(_0x99d10c,_0x1e379c){const _0x1e6528=_0x5dae50;_0x4d19da[_0x1e6528(0xa60)]({'controller':_0x1e6528(0x22ad),'controllerAs':'vm','templateUrl':_0x4fc979,'parent':angular[_0x1e6528(0x1f81)](_0x2f4e4c[_0x1e6528(0xb49)]),'targetEvent':_0x1e379c,'clickOutsideToClose':!![],'locals':{'user':_0x99d10c,'users':_0x493507[_0x1e6528(0xff5)]?_0x493507[_0x1e6528(0xff5)]['rows']:[],'crudPermissions':_0x493507[_0x1e6528(0x402)]}});}function _0x44612d(_0x29b1bf,_0x4ef331){const _0x2585d8=_0x5dae50;_0x4d19da[_0x2585d8(0xa60)]({'controller':_0x2585d8(0x1455),'controllerAs':'vm','templateUrl':_0x46b470,'parent':angular[_0x2585d8(0x1f81)](_0x2f4e4c['body']),'targetEvent':_0x4ef331,'clickOutsideToClose':!![],'locals':{'user':_0x29b1bf,'setting':_0x5944d6,'users':_0x493507['users']?_0x493507[_0x2585d8(0xff5)][_0x2585d8(0x28b8)]:[],'crudPermissions':_0x493507[_0x2585d8(0x402)]}});}function _0x3f2a5e(){const _0x5bda8f=_0x5dae50;_0x1b300d['go'](_0x5bda8f(0x57f),{},{'reload':'app.staff.users'});}function _0x539cdb(){const _0x1d2aa6=_0x5dae50;_0x493507[_0x1d2aa6(0x2e8)]=_0x28c606()[_0x1d2aa6(0xd09)](_0x493507[_0x1d2aa6(0x2e8)],_0x1d2aa6(0x1c79)),_0x2aefc0[_0x1d2aa6(0x2e8)][_0x1d2aa6(0x2603)]({'id':_0x493507[_0x1d2aa6(0x2e8)]['id']},_0x493507['user'])[_0x1d2aa6(0x15e7)][_0x1d2aa6(0x64a)](function(){const _0x50b5db=_0x1d2aa6;_0x579553['success']({'title':'User\x20updated!','msg':_0x493507[_0x50b5db(0x2e8)][_0x50b5db(0x2494)]?_0x493507[_0x50b5db(0x2e8)][_0x50b5db(0x2494)]+_0x50b5db(0x2032):''});})[_0x1d2aa6(0x20cd)](function(_0x292518){const _0x4125d9=_0x1d2aa6;_0x579553[_0x4125d9(0x1bd0)]({'title':_0x292518[_0x4125d9(0x10b3)]?_0x4125d9(0x575)+_0x292518['status']+'\x20-\x20'+_0x292518[_0x4125d9(0x2115)]:_0x4125d9(0x2131),'msg':_0x292518[_0x4125d9(0x1c52)]?JSON['stringify'](_0x292518[_0x4125d9(0x1c52)]):_0x292518[_0x4125d9(0x2915)]()});});}}const _0x23496f=_0x584aa3;;const _0x310c8b=_0x2e4a48['p']+'src/js/modules/main/apps/staff/views/users/create/dialog.html/dialog.html';;_0xa24d0d['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),'$mdSidenav',_0x49a1e3(0x212a),'$document',_0x49a1e3(0x20d4),'$translate',_0x49a1e3(0xff5),_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),'license','setting'];function _0xa24d0d(_0x238e2b,_0x2a002c,_0x5218ab,_0xe49033,_0x172baa,_0x1d01d3,_0x58bac1,_0x220ccd,_0x280130,_0x348f93,_0x2bc479,_0x394615,_0xd5c0d9,_0x3da6e8,_0x48064b,_0x3db68f,_0x561839){const _0x340b4d=_0x49a1e3,_0x4c0476=this;_0x4c0476['license']=_0x3db68f,_0x4c0476[_0x340b4d(0x28d6)]=_0x561839,_0x4c0476[_0x340b4d(0x1d3d)]=_0x48064b[_0x340b4d(0x808)](),_0x4c0476[_0x340b4d(0xff5)]=_0x280130||{'count':0x0,'rows':[]},_0x4c0476[_0x340b4d(0x16a8)]=_0x348f93,_0x4c0476[_0x340b4d(0x16b2)]=_0x2bc479&&_0x2bc479['count']==0x1?_0x2bc479[_0x340b4d(0x28b8)][0x0]:null,_0x4c0476[_0x340b4d(0x402)]=_0x48064b['parseCrudPermissions'](_0x4c0476[_0x340b4d(0x16b2)]?_0x4c0476[_0x340b4d(0x16b2)][_0x340b4d(0x402)]:null),_0x4c0476[_0x340b4d(0x185d)]=_0x340b4d(0xff5),_0x4c0476[_0x340b4d(0x300)]='',_0x4c0476['listOrderAsc']=null,_0x4c0476[_0x340b4d(0x41e)]=[],_0x4c0476[_0x340b4d(0x289a)]={'fields':_0x340b4d(0x2393),'role':_0x340b4d(0x14a3),'sort':_0x340b4d(0x260c),'limit':0xa,'page':0x1},_0x4c0476[_0x340b4d(0x185f)]=_0x28c606()[_0x340b4d(0x161e)]([{'option':_0x340b4d(0x1d70),'value':_0x340b4d(0x27d6)},{'option':_0x340b4d(0x1098),'value':'\x27user\x27'}],function(_0x1d6b28){const _0x10b019=_0x340b4d;return _0x28c606()['replace'](_0x1d6b28[_0x10b019(0x1096)],new RegExp('\x27','g'),'');}),_0x4c0476['arraytransport']=_0x28c606()[_0x340b4d(0x161e)]([{'option':_0x340b4d(0x241e),'value':_0x340b4d(0xae6)},{'option':_0x340b4d(0x28b1),'value':'\x27tcp\x27'},{'option':'ws','value':_0x340b4d(0x23f6)},{'option':'wss','value':'\x27wss\x27'},{'option':_0x340b4d(0x959),'value':_0x340b4d(0x27b2)}],function(_0x268112){const _0x404064=_0x340b4d;return _0x28c606()['replace'](_0x268112[_0x404064(0x1096)],new RegExp('\x27','g'),'');}),_0x4c0476[_0x340b4d(0x15c0)]=_0x28c606()[_0x340b4d(0x161e)]([{'option':_0x340b4d(0x28ee),'value':_0x340b4d(0x9f8)},{'option':_0x340b4d(0x176a),'value':_0x340b4d(0x2231)},{'option':'yes','value':_0x340b4d(0x726)},{'option':'no','value':_0x340b4d(0x1476)},{'option':_0x340b4d(0x233a),'value':'\x27never\x27'},{'option':'route','value':'\x27route\x27'}],function(_0x488b19){const _0x20a4e7=_0x340b4d;return _0x28c606()[_0x20a4e7(0x1353)](_0x488b19[_0x20a4e7(0x1096)],new RegExp('\x27','g'),'');}),_0x4c0476['arrayallow']=_0x28c606()[_0x340b4d(0x161e)]([{'option':_0x340b4d(0x1808),'value':_0x340b4d(0x13a0)},{'option':_0x340b4d(0x2607),'value':_0x340b4d(0xc33)},{'option':_0x340b4d(0x8e1),'value':_0x340b4d(0x17cb)},{'option':_0x340b4d(0xfd9),'value':_0x340b4d(0x2230)},{'option':'g729','value':_0x340b4d(0x1389)},{'option':_0x340b4d(0x16d1),'value':_0x340b4d(0x1b50)},{'option':_0x340b4d(0x1c59),'value':_0x340b4d(0x269d)}],function(_0x3ea1eb){const _0x5b4ae5=_0x340b4d;return _0x28c606()['replace'](_0x3ea1eb[_0x5b4ae5(0x1096)],new RegExp('\x27','g'),'');}),_0x4c0476[_0x340b4d(0xb65)]=_0x28c606()['keyBy']([{'option':_0x340b4d(0x307),'value':_0x340b4d(0x726)},{'option':'No','value':_0x340b4d(0x1476)},{'option':_0x340b4d(0xfdd),'value':_0x340b4d(0x1c55)}],function(_0x26ddb7){const _0x369856=_0x340b4d;return _0x28c606()[_0x369856(0x1353)](_0x26ddb7[_0x369856(0x1096)],new RegExp('\x27','g'),'');}),_0x4c0476[_0x340b4d(0xff6)]=_0x12bac0,_0x4c0476[_0x340b4d(0x1262)]=_0x1284cb,_0x4c0476['success']=_0x31bd46,_0x4c0476[_0x340b4d(0xdf6)]=_0x4473f6,_0x4c0476[_0x340b4d(0x225)]=_0x5a2df9,_0x4c0476[_0x340b4d(0x24f4)]=_0x4b9c6b,_0x4c0476[_0x340b4d(0x1f04)]=_0x335b4e,_0x4c0476[_0x340b4d(0x11f9)]=_0x5d771f,_0x4c0476['deselectUsers']=_0x23def5,_0x4c0476[_0x340b4d(0x9b0)]=_0x16a090,_0x394615[_0x340b4d(0x16a8)][_0x340b4d(0x896)]({'fields':_0x340b4d(0x1427),'sort':'name'})[_0x340b4d(0x15e7)]['then'](function(_0xd52908){const _0x3a8418=_0x340b4d;_0x4c0476[_0x3a8418(0x7bb)]=_0xd52908['rows']||[];})[_0x340b4d(0x20cd)](function(_0x5ad344){const _0x2264f6=_0x340b4d;_0x3da6e8['error']({'title':_0x5ad344[_0x2264f6(0x10b3)]?_0x2264f6(0x575)+_0x5ad344[_0x2264f6(0x10b3)]+_0x2264f6(0x21db)+_0x5ad344[_0x2264f6(0x2115)]:_0x2264f6(0x2280),'msg':_0x5ad344[_0x2264f6(0x1c52)]?JSON[_0x2264f6(0x2317)](_0x5ad344['data']):_0x5ad344[_0x2264f6(0x2915)]()});});function _0x12bac0(_0x1f86f1){_0x5218ab['go']('app.staff.users.edit',{'id':_0x1f86f1['id'],'user':_0x1f86f1,'crudPermissions':_0x4c0476['crudPermissions']});}function _0x1284cb(_0x399178,_0x43678a){const _0x2a674e=_0x340b4d,_0x3ffcd5=_0x172baa[_0x2a674e(0x856)]()[_0x2a674e(0x2021)](_0x2a674e(0x1231)+_0x28c606()['startCase']('user')+'?')[_0x2a674e(0x33a)](''+(_0x399178['name']||_0x2a674e(0x2e8))+_0x2a674e(0x26d0)+_0x2a674e(0x4b8))['ariaLabel'](_0x2a674e(0x2083))[_0x2a674e(0x2283)](_0x43678a)['ok']('OK')['cancel'](_0x2a674e(0x18fd));_0x172baa[_0x2a674e(0xa60)](_0x3ffcd5)[_0x2a674e(0x64a)](function(){_0x4b9c6b(_0x399178);},function(){const _0xaa4c11=_0x2a674e;console[_0xaa4c11(0x9b4)](_0xaa4c11(0x18fd));});}let _0x26c11c=!![],_0x4089a7=0x1;_0x238e2b['$watch'](_0x340b4d(0x1cb9),function(_0x6e6f42,_0xb3d4d){const _0x4f3d58=_0x340b4d;_0x26c11c?_0x58bac1(function(){_0x26c11c=![];}):(!_0xb3d4d&&(_0x4089a7=_0x4c0476[_0x4f3d58(0x289a)][_0x4f3d58(0xc72)]),_0x6e6f42!==_0xb3d4d&&(_0x4c0476['query']['page']=0x1),!_0x6e6f42&&(_0x4c0476[_0x4f3d58(0x289a)][_0x4f3d58(0xc72)]=_0x4089a7),_0x4c0476[_0x4f3d58(0xdf6)]());});function _0x31bd46(_0x57bf06){const _0x56164b=_0x340b4d;_0x4c0476[_0x56164b(0xff5)]=_0x57bf06||{'count':0x0,'rows':[]};}function _0x4473f6(){const _0x314a4f=_0x340b4d;_0x4c0476[_0x314a4f(0x289a)][_0x314a4f(0x24f9)]=(_0x4c0476[_0x314a4f(0x289a)]['page']-0x1)*_0x4c0476[_0x314a4f(0x289a)]['limit'],_0x48064b[_0x314a4f(0x4de)](_0x314a4f(0x333))?_0x4c0476[_0x314a4f(0x1713)]=_0x394615[_0x314a4f(0x2e8)][_0x314a4f(0x896)](_0x4c0476['query'],_0x31bd46)['$promise']:(_0x4c0476[_0x314a4f(0x289a)]['id']=_0x4c0476['userProfile']['id'],_0x4c0476[_0x314a4f(0x289a)][_0x314a4f(0xa21)]='Users',_0x4c0476[_0x314a4f(0x1713)]=_0x394615[_0x314a4f(0x16a8)]['getResources'](_0x4c0476[_0x314a4f(0x289a)],_0x31bd46)[_0x314a4f(0x15e7)]);}function _0x5a2df9(_0x3ec58e,_0x14de30){const _0x26f400=_0x340b4d;_0x172baa[_0x26f400(0xa60)]({'controller':'CreateOrEditUserDialogController','controllerAs':'vm','templateUrl':_0x310c8b,'parent':angular[_0x26f400(0x1f81)](_0x1d01d3[_0x26f400(0xb49)]),'targetEvent':_0x3ec58e,'clickOutsideToClose':!![],'locals':{'user':_0x14de30,'users':_0x4c0476[_0x26f400(0xff5)][_0x26f400(0x28b8)],'license':_0x4c0476['license'],'setting':_0x4c0476[_0x26f400(0x28d6)],'crudPermissions':_0x4c0476[_0x26f400(0x402)]}});}function _0x4b9c6b(_0x378767){const _0x2ece8f=_0x340b4d;_0x394615[_0x2ece8f(0x2e8)]['delete']({'id':_0x378767['id']})[_0x2ece8f(0x15e7)]['then'](function(){const _0x2dcaa4=_0x2ece8f;_0x28c606()['remove'](_0x4c0476[_0x2dcaa4(0xff5)][_0x2dcaa4(0x28b8)],{'id':_0x378767['id']}),_0x4c0476[_0x2dcaa4(0xff5)]['count']-=0x1,!_0x4c0476[_0x2dcaa4(0xff5)][_0x2dcaa4(0x28b8)][_0x2dcaa4(0x1b9e)]&&_0x4c0476[_0x2dcaa4(0xdf6)](),_0x3da6e8[_0x2dcaa4(0x1339)]({'title':_0x28c606()[_0x2dcaa4(0xc01)]('User')+'\x20deleted!','msg':_0x378767['name']?_0x378767['name']+_0x2dcaa4(0x1fa8):''});})[_0x2ece8f(0x20cd)](function(_0x272cf6){const _0x437701=_0x2ece8f;if(_0x272cf6[_0x437701(0x1c52)]&&_0x272cf6[_0x437701(0x1c52)][_0x437701(0xbae)]&&_0x272cf6[_0x437701(0x1c52)][_0x437701(0xbae)][_0x437701(0x1b9e)]){_0x4c0476[_0x437701(0xbae)]=_0x272cf6['data'][_0x437701(0xbae)]||[{'message':_0x272cf6['toString'](),'type':_0x437701(0x2359)}];for(let _0x430b89=0x0;_0x430b89<_0x272cf6['data'][_0x437701(0xbae)]['length'];_0x430b89++){_0x3da6e8[_0x437701(0x1bd0)]({'title':_0x272cf6[_0x437701(0x1c52)][_0x437701(0xbae)][_0x430b89][_0x437701(0x2185)],'msg':_0x272cf6[_0x437701(0x1c52)][_0x437701(0xbae)][_0x430b89][_0x437701(0x18ca)]});}}else _0x3da6e8['error']({'title':_0x272cf6['status']?_0x437701(0x575)+_0x272cf6['status']+'\x20-\x20'+_0x272cf6['statusText']:_0x437701(0x2359),'msg':_0x272cf6[_0x437701(0x1c52)]?JSON[_0x437701(0x2317)](_0x272cf6['data'][_0x437701(0x18ca)]):_0x272cf6['message']||_0x272cf6[_0x437701(0x2915)]()});});}function _0x335b4e(){const _0x281302=_0x340b4d,_0x4be036=angular[_0x281302(0x289e)](_0x4c0476['selectedUsers']);return _0x4c0476[_0x281302(0x41e)]=[],_0x4be036;}function _0x5d771f(_0x304815){const _0x3dc877=_0x340b4d,_0x1f899d=_0x172baa[_0x3dc877(0x856)]()['title'](_0x3dc877(0xedd))[_0x3dc877(0x33a)](''+_0x4c0476['selectedUsers'][_0x3dc877(0x1b9e)]+_0x3dc877(0x163e)+_0x3dc877(0x4b8))[_0x3dc877(0x213e)](_0x3dc877(0x242a))[_0x3dc877(0x2283)](_0x304815)['ok']('OK')[_0x3dc877(0x101a)]('CANCEL');_0x172baa[_0x3dc877(0xa60)](_0x1f899d)[_0x3dc877(0x64a)](function(){_0x4c0476['selectedUsers']['forEach'](function(_0x710f48){_0x4b9c6b(_0x710f48);}),_0x4c0476['selectedUsers']=[];});}function _0x23def5(){const _0x5ba91f=_0x340b4d;_0x4c0476[_0x5ba91f(0x41e)]=[];}function _0x16a090(){const _0x528546=_0x340b4d;_0x4c0476[_0x528546(0x41e)]=_0x4c0476[_0x528546(0xff5)]['rows'];}}const _0x16a86c=_0xa24d0d;;const _0x1f0fa3=_0x2e4a48['p']+'src/js/modules/main/apps/staff/views/users/users.html/users.html';;const _0x2e9cac=_0x2e4a48['p']+_0x49a1e3(0x958);;const _0x26aff0=_0x2e4a48['p']+_0x49a1e3(0xed0);;const _0x1525f9=_0x2e4a48['p']+_0x49a1e3(0x222a);;const _0x13cf5f=_0x2e4a48['p']+_0x49a1e3(0x1a28);;const _0x200115=_0x2e4a48['p']+'src/js/modules/main/apps/staff/views/telephones/edit/view.html/view.html';;const _0x447d16=_0x2e4a48['p']+_0x49a1e3(0x1a27);;const _0x55474c=_0x2e4a48['p']+_0x49a1e3(0x19ca);;const _0x2f7b65=_0x2e4a48['p']+_0x49a1e3(0x1c21);;_0x2f265a[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad),_0x49a1e3(0x21f8)];function _0x2f265a(_0x5fd0f3,_0x3dfec4){const _0x31fbc0=_0x49a1e3;_0x5fd0f3['state'](_0x31fbc0(0x1e0),{'abstract':!![],'url':_0x31fbc0(0x607)})[_0x31fbc0(0x14f2)](_0x31fbc0(0x57f),{'url':_0x31fbc0(0x110e),'views':{'content@app':{'templateUrl':_0x1f0fa3,'controller':_0x31fbc0(0x1dd0)}},'resolve':{'users':[_0x31fbc0(0x107c),function(_0x480384){const _0x4b65af=_0x31fbc0;return _0x480384[_0x4b65af(0x1268)]('user@get',{'fields':_0x4b65af(0x2393),'role':_0x4b65af(0x14a3),'sort':_0x4b65af(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x31fbc0(0x107c),'Auth',function(_0x4a4d31,_0x324336){const _0x3271dd=_0x31fbc0;return _0x324336[_0x3271dd(0x4de)](_0x3271dd(0x333))?null:_0x4a4d31[_0x3271dd(0x1268)](_0x3271dd(0x6e3),{'fields':_0x3271dd(0x10d2),'id':_0x324336['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x31fbc0(0x107c),_0x31fbc0(0xdcf),function(_0x2b7c0f,_0x1acc0a){const _0x123e81=_0x31fbc0;return _0x1acc0a[_0x123e81(0x4de)](_0x123e81(0x333))?null:_0x2b7c0f[_0x123e81(0x1268)](_0x123e81(0x2681),{'fields':_0x123e81(0x527),'userProfileId':_0x1acc0a[_0x123e81(0x808)]()[_0x123e81(0x21ac)],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x31fbc0(0x1748)})['state'](_0x31fbc0(0x2086),{'url':_0x31fbc0(0x45b),'params':{'user':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2e9cac,'controller':_0x31fbc0(0x1722)}},'resolve':{'user':[_0x31fbc0(0x107c),_0x31fbc0(0x1fbb),function(_0xfcdc66,_0x456625){const _0x2ffd1f=_0x31fbc0;return _0xfcdc66[_0x2ffd1f(0x1268)](_0x2ffd1f(0x142c),{'fields':_0x2ffd1f(0x2393),'id':_0x456625['id']});}],'userProfileSection':[_0x31fbc0(0x107c),_0x31fbc0(0xdcf),function(_0x5a64a0,_0x106740){const _0x277ea7=_0x31fbc0;return _0x5a64a0[_0x277ea7(0x1268)](_0x277ea7(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x106740['getCurrentUser']()[_0x277ea7(0x21ac)],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x31fbc0(0x1748)})[_0x31fbc0(0x14f2)](_0x31fbc0(0x1379),{'url':_0x31fbc0(0x23f8),'views':{'content@app':{'templateUrl':_0x26aff0,'controller':'AgentsController\x20as\x20vm'}},'resolve':{'agents':[_0x31fbc0(0x107c),_0x31fbc0(0xdcf),function(_0x530b83,_0x59239b){const _0x5d0f5b=_0x31fbc0;return _0x59239b[_0x5d0f5b(0x4de)]('admin')?_0x530b83[_0x5d0f5b(0x1268)]('user@get',{'fields':_0x5d0f5b(0x246),'role':_0x5d0f5b(0x11ae),'sort':_0x5d0f5b(0x260c),'limit':0xa,'offset':0x0}):_0x530b83[_0x5d0f5b(0x1268)](_0x5d0f5b(0x1758),{'id':_0x59239b[_0x5d0f5b(0x808)]()[_0x5d0f5b(0x21ac)],'section':_0x5d0f5b(0x2132),'fields':_0x5d0f5b(0x246),'role':_0x5d0f5b(0x11ae),'sort':_0x5d0f5b(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x31fbc0(0x107c),'Auth',function(_0x19d404,_0x308886){const _0x564cc8=_0x31fbc0;return _0x308886[_0x564cc8(0x4de)]('admin')?null:_0x19d404[_0x564cc8(0x1268)](_0x564cc8(0x6e3),{'fields':_0x564cc8(0x10d2),'id':_0x308886[_0x564cc8(0x808)]()[_0x564cc8(0x21ac)]});}],'userProfileSection':[_0x31fbc0(0x107c),_0x31fbc0(0xdcf),function(_0x1c62a8,_0x1d199c){const _0x31d30e=_0x31fbc0;return _0x1d199c[_0x31d30e(0x4de)](_0x31d30e(0x333))?null:_0x1c62a8[_0x31d30e(0x1268)](_0x31d30e(0x2681),{'fields':_0x31d30e(0x527),'userProfileId':_0x1d199c['getCurrentUser']()[_0x31d30e(0x21ac)],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x31fbc0(0x1748)})[_0x31fbc0(0x14f2)](_0x31fbc0(0x2f4),{'url':_0x31fbc0(0x45b),'params':{'agent':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1525f9,'controller':_0x31fbc0(0x27ff)}},'resolve':{'agent':[_0x31fbc0(0x107c),'$stateParams',function(_0x3d74a1,_0x37c049){const _0x2844cd=_0x31fbc0;return _0x3d74a1[_0x2844cd(0x1268)](_0x2844cd(0x142c),{'fields':_0x2844cd(0x246),'id':_0x37c049['id']});}],'userProfileSection':['apiResolver',_0x31fbc0(0xdcf),function(_0x2220ba,_0x5d3e9b){const _0x154e67=_0x31fbc0;return _0x2220ba[_0x154e67(0x1268)]('userProfileSection@get',{'fields':_0x154e67(0x527),'userProfileId':_0x5d3e9b[_0x154e67(0x808)]()['userProfileId'],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x31fbc0(0x1748)})[_0x31fbc0(0x14f2)](_0x31fbc0(0x2703),{'url':_0x31fbc0(0x289b),'views':{'content@app':{'templateUrl':_0x13cf5f,'controller':_0x31fbc0(0x15a8)}},'resolve':{'telephones':['apiResolver','Auth',function(_0x2eb98c,_0x3794a4){const _0x51cb61=_0x31fbc0;return _0x3794a4[_0x51cb61(0x4de)](_0x51cb61(0x333))?_0x2eb98c[_0x51cb61(0x1268)](_0x51cb61(0x142c),{'fields':_0x51cb61(0x2634),'role':_0x51cb61(0x1782),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x2eb98c['resolve'](_0x51cb61(0x1758),{'id':_0x3794a4['getCurrentUser']()['userProfileId'],'section':_0x51cb61(0xc44),'fields':_0x51cb61(0x2634),'role':_0x51cb61(0x1782),'sort':_0x51cb61(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x31fbc0(0x107c),_0x31fbc0(0xdcf),function(_0x392dda,_0x5729be){const _0x2538e8=_0x31fbc0;return _0x5729be[_0x2538e8(0x4de)](_0x2538e8(0x333))?null:_0x392dda[_0x2538e8(0x1268)]('userProfile@get',{'fields':_0x2538e8(0x10d2),'id':_0x5729be['getCurrentUser']()[_0x2538e8(0x21ac)]});}],'userProfileSection':[_0x31fbc0(0x107c),_0x31fbc0(0xdcf),function(_0xb34f30,_0x2b9913){const _0xc0b0d8=_0x31fbc0;return _0x2b9913[_0xc0b0d8(0x4de)](_0xc0b0d8(0x333))?null:_0xb34f30[_0xc0b0d8(0x1268)](_0xc0b0d8(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2b9913[_0xc0b0d8(0x808)]()[_0xc0b0d8(0x21ac)],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':_0x31fbc0(0x1748)})['state']('app.staff.telephones.edit',{'url':_0x31fbc0(0x45b),'params':{'telephone':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x200115,'controller':_0x31fbc0(0x220b)}},'resolve':{'telephone':[_0x31fbc0(0x107c),_0x31fbc0(0x1fbb),function(_0x357ede,_0x3dbedb){const _0x47bcd7=_0x31fbc0;return _0x357ede[_0x47bcd7(0x1268)](_0x47bcd7(0x142c),{'fields':'createdAt,updatedAt,id,role,fullname,name,email,password,description,autointernal,internal,voicemail,transport,nat,allow,callerid,context,callgroup,pickupgroup,videosupport,encryption,phone,mobile','id':_0x3dbedb['id']});}],'userProfileSection':[_0x31fbc0(0x107c),_0x31fbc0(0xdcf),function(_0x31bb8f,_0xb1a022){const _0x40f363=_0x31fbc0;return _0x31bb8f[_0x40f363(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xb1a022[_0x40f363(0x808)]()[_0x40f363(0x21ac)],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':_0x31fbc0(0x1748)})[_0x31fbc0(0x14f2)]('app.staff.teams',{'url':_0x31fbc0(0x904),'views':{'content@app':{'templateUrl':_0x447d16,'controller':_0x31fbc0(0x77d)}},'resolve':{'teams':[_0x31fbc0(0x107c),_0x31fbc0(0xdcf),function(_0x4174bf,_0xd7ac65){const _0x5cb0e2=_0x31fbc0;return _0xd7ac65[_0x5cb0e2(0x4de)](_0x5cb0e2(0x333))?_0x4174bf[_0x5cb0e2(0x1268)](_0x5cb0e2(0x87e),{'fields':'createdAt,updatedAt,id,name,description','sort':_0x5cb0e2(0x260c),'limit':0xa,'offset':0x0}):_0x4174bf[_0x5cb0e2(0x1268)]('userProfile@getResources',{'id':_0xd7ac65['getCurrentUser']()[_0x5cb0e2(0x21ac)],'section':_0x5cb0e2(0x286d),'fields':_0x5cb0e2(0x15b8),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x31fbc0(0x107c),'Auth',function(_0x387af2,_0x2c35f5){const _0x44c0f2=_0x31fbc0;return _0x2c35f5[_0x44c0f2(0x4de)]('admin')?null:_0x387af2[_0x44c0f2(0x1268)]('userProfile@get',{'fields':_0x44c0f2(0x10d2),'id':_0x2c35f5[_0x44c0f2(0x808)]()[_0x44c0f2(0x21ac)]});}],'userProfileSection':['apiResolver',_0x31fbc0(0xdcf),function(_0x5b906a,_0x43b9f7){const _0xc1f8d4=_0x31fbc0;return _0x43b9f7[_0xc1f8d4(0x4de)](_0xc1f8d4(0x333))?null:_0x5b906a[_0xc1f8d4(0x1268)](_0xc1f8d4(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x43b9f7[_0xc1f8d4(0x808)]()['userProfileId'],'sectionId':0xcc});}]},'authenticate':!![],'permissionId':0xcc,'bodyClass':_0x31fbc0(0x1748)})[_0x31fbc0(0x14f2)](_0x31fbc0(0x14bf),{'url':_0x31fbc0(0x155f),'views':{'content@app':{'templateUrl':_0x55474c,'controller':_0x31fbc0(0x25ba)}},'resolve':{'userProfiles':[_0x31fbc0(0x107c),function(_0x145924){const _0x2fd861=_0x31fbc0;return _0x145924['resolve']('userProfile@get',{'fields':_0x2fd861(0x1621),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x31fbc0(0xdcf),function(_0xcff5e1,_0x30ac48){const _0xb8633c=_0x31fbc0;return _0x30ac48['hasRole'](_0xb8633c(0x333))?null:_0xcff5e1[_0xb8633c(0x1268)](_0xb8633c(0x6e3),{'fields':_0xb8633c(0x10d2),'id':_0x30ac48[_0xb8633c(0x808)]()[_0xb8633c(0x21ac)]});}],'userProfileSection':['apiResolver','Auth',function(_0x439402,_0x5f51ae){const _0x4db855=_0x31fbc0;return _0x5f51ae[_0x4db855(0x4de)](_0x4db855(0x333))?null:_0x439402[_0x4db855(0x1268)]('userProfileSection@get',{'fields':_0x4db855(0x527),'userProfileId':_0x5f51ae['getCurrentUser']()[_0x4db855(0x21ac)],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':_0x31fbc0(0x1748)})['state'](_0x31fbc0(0x24e3),{'url':_0x31fbc0(0x45b),'params':{'userProfile':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2f7b65,'controller':'UserProfileController\x20as\x20vm'}},'resolve':{'userProfile':[_0x31fbc0(0x107c),_0x31fbc0(0x1fbb),function(_0x44915b,_0x7f46a1){const _0x76f85a=_0x31fbc0;return _0x44915b[_0x76f85a(0x1268)]('userProfile@get',{'fields':_0x76f85a(0x1621),'id':_0x7f46a1['id']});}],'userProfileSection':[_0x31fbc0(0x107c),_0x31fbc0(0xdcf),function(_0x3ae438,_0x9b78f2){const _0x507cf8=_0x31fbc0;return _0x3ae438[_0x507cf8(0x1268)]('userProfileSection@get',{'fields':_0x507cf8(0x527),'userProfileId':_0x9b78f2[_0x507cf8(0x808)]()['userProfileId'],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':_0x31fbc0(0x1748)}),_0x3dfec4[_0x31fbc0(0x1bde)](_0x31fbc0(0x1424));}angular[_0x49a1e3(0x20d2)]('app.staff',['ngCsv',_0x49a1e3(0x3c7),_0x49a1e3(0x1fe3),_0x49a1e3(0x891),_0x49a1e3(0x2516),_0x49a1e3(0x1b6c),_0x49a1e3(0x1434),_0x49a1e3(0x1a87),_0x49a1e3(0x1610),_0x49a1e3(0xb19),_0x49a1e3(0x1a59),_0x49a1e3(0x11fd),_0x49a1e3(0x1cfe),'ngclipboard',_0x49a1e3(0x1b5f),'ngEmbed',_0x49a1e3(0x1046),_0x49a1e3(0x1acd),_0x49a1e3(0xc48),_0x49a1e3(0x28dd)])[_0x49a1e3(0x3d3)](_0x2f265a)[_0x49a1e3(0x38e)](_0x49a1e3(0x178),_0x13a6fb)[_0x49a1e3(0x38e)](_0x49a1e3(0x26b),_0x2e1326)['controller'](_0x49a1e3(0x1e32),_0x413dd2)['controller'](_0x49a1e3(0x1555),_0x593d5c)[_0x49a1e3(0x38e)]('AgentPermissionsController',_0x4d5f08)[_0x49a1e3(0x38e)](_0x49a1e3(0x5a7),_0xbf8f2b)['controller'](_0x49a1e3(0x1292),_0x260f2c)[_0x49a1e3(0x38e)](_0x49a1e3(0xe3d),_0x225b42)[_0x49a1e3(0x38e)]('CreateOrEditTeamDialogController',_0x21b422)[_0x49a1e3(0x38e)](_0x49a1e3(0x156e),_0x1fb339)[_0x49a1e3(0x38e)]('TeamsController',_0x3b7f7c)[_0x49a1e3(0x38e)](_0x49a1e3(0x1f19),_0x184614)[_0x49a1e3(0x38e)](_0x49a1e3(0x1a57),_0x417c8d)[_0x49a1e3(0x38e)](_0x49a1e3(0x17d0),_0x21f406)[_0x49a1e3(0x38e)](_0x49a1e3(0xcfa),_0x932448)[_0x49a1e3(0x38e)]('CreateOrEditUserProfileDialogController',_0x3c1e38)[_0x49a1e3(0x38e)]('UserProfilecloneController',_0xf3fb26)[_0x49a1e3(0x38e)](_0x49a1e3(0x2047),_0x5abcc1)[_0x49a1e3(0x38e)](_0x49a1e3(0x1650),_0x3b3263)['controller'](_0x49a1e3(0x2048),_0x57ab45)[_0x49a1e3(0x38e)](_0x49a1e3(0x1899),_0x1cd40b)['controller'](_0x49a1e3(0x24ce),_0x5badc5)[_0x49a1e3(0x38e)]('UserapikeymanagerController',_0x59c538)['controller'](_0x49a1e3(0x10cd),_0x35e635)[_0x49a1e3(0x38e)](_0x49a1e3(0x1455),_0x266ea3)[_0x49a1e3(0x38e)](_0x49a1e3(0x21ed),_0x23496f)['controller'](_0x49a1e3(0x52f),_0x16a86c);;const _0x4b9f3f=_0x2e4a48['p']+'src/js/modules/main/apps/contactmanager/views/contacts/import/import.html/import.html';;const _0x13f6e7=_0x2e4a48['p']+_0x49a1e3(0xcb5);;_0xe3e86e[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$document',_0x49a1e3(0x20d4),_0x49a1e3(0x77f),_0x49a1e3(0x1fbb),_0x49a1e3(0x212a),'$q','userProfile',_0x49a1e3(0x16b2),_0x49a1e3(0xa19),'contacts',_0x49a1e3(0x974),_0x49a1e3(0x26ef),_0x49a1e3(0x244),_0x49a1e3(0x18b2),'tags',_0x49a1e3(0x680),'Auth',_0x49a1e3(0x1947)];function _0xe3e86e(_0x3c3ebb,_0x2d4545,_0x2c09e6,_0x5e0cfd,_0x56b75a,_0x2c181c,_0x1eaae2,_0x1af249,_0x59dbb1,_0x5615a8,_0x177e80,_0xb17072,_0x20849d,_0x495a3e,_0x3d0d09,_0x31995f,_0x376c7c,_0x586b99,_0xe726bd){const _0x5b4062=_0x49a1e3,_0x46c59e=this;_0x46c59e[_0x5b4062(0xeba)]=_0x5615a8[_0x5b4062(0xeba)],_0x46c59e['currentUser']=_0x586b99[_0x5b4062(0x808)](),_0x46c59e[_0x5b4062(0x1947)]=_0xe726bd,_0x46c59e[_0x5b4062(0x16a8)]=_0x1af249,_0x46c59e['userProfileSection']=_0x59dbb1&&_0x59dbb1['count']==0x1?_0x59dbb1['rows'][0x0]:null,_0x46c59e[_0x5b4062(0x402)]=_0x586b99[_0x5b4062(0xa7e)](_0x46c59e[_0x5b4062(0x16b2)]?_0x46c59e[_0x5b4062(0x16b2)][_0x5b4062(0x402)]:null);const _0x20c204=0x3c,_0x42341f=_0x20c204*0x400*0x400;_0x46c59e['ngFlowOptions']={'target':_0x46c59e[_0x5b4062(0xeba)]+'api/cm/contacts/upload','singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x42341f,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x46c59e[_0x5b4062(0x197e)]=_0x177e80||{'count':0x0,'rows':[]},_0x46c59e[_0x5b4062(0x59e)]={'hidden':![],'hover':![],'isOpen':![]},_0x46c59e['table']=_0x5b4062(0x1105),_0x46c59e[_0x5b4062(0xca0)]=[],_0x46c59e[_0x5b4062(0x974)]=_0xb17072||{'rows':[],'count':0x0},_0x46c59e[_0x5b4062(0x244)]=_0x495a3e||{'rows':[],'count':0x0},_0x46c59e[_0x5b4062(0x16a6)]=_0x31995f||{'rows':[],'count':0x0},_0x46c59e[_0x5b4062(0x26ef)]=_0x20849d,_0x46c59e[_0x5b4062(0x18b2)]=_0x3d0d09,_0x46c59e['selectedTags']=[],_0x46c59e[_0x5b4062(0x138a)]=null,_0x46c59e['selectedCompany']=null,_0x46c59e[_0x5b4062(0x289a)]=_0x28c606()[_0x5b4062(0x14fe)]({'includeAll':!![],'sort':_0x5b4062(0x260c),'limit':0xa,'offset':0x0,'page':0x1},_0x56b75a),_0x46c59e[_0x5b4062(0x1c42)]=_0x1a4cac,_0x46c59e[_0x5b4062(0x1262)]=_0xc5ef20,_0x46c59e[_0x5b4062(0x1339)]=_0x544b66,_0x46c59e[_0x5b4062(0x199a)]=_0x80ec31,_0x46c59e[_0x5b4062(0x2455)]=_0x51c445,_0x46c59e[_0x5b4062(0x2866)]=_0xa7e59d,_0x46c59e[_0x5b4062(0x17df)]=_0x4b26f9,_0x46c59e[_0x5b4062(0x1ba1)]=_0x265761,_0x46c59e['deleteContact']=_0x3b6c4f,_0x46c59e['exportSelectedContacts']=_0x376a90,_0x46c59e[_0x5b4062(0x1102)]=_0x143258,_0x46c59e[_0x5b4062(0x128f)]=_0x2abbb1,_0x46c59e[_0x5b4062(0x28a9)]=_0x3756a5,_0x46c59e[_0x5b4062(0x1e62)]=_0x3effea,_0x46c59e['createList']=_0x23badc,_0x46c59e['createCompany']=_0x1775c6,_0x46c59e[_0x5b4062(0x28f3)]=_0x4b40f4,_0x46c59e[_0x5b4062(0x1244)]=_0x5c9f59,_0x46c59e['fileAdded']=_0xaba2ab;_0x5e0cfd[_0x5b4062(0x1b48)]['ListId']&&(_0x46c59e[_0x5b4062(0x138a)]=_0x5e0cfd['params'][_0x5b4062(0x869)]);_0x5e0cfd[_0x5b4062(0x1b48)]['CompanyId']&&(_0x46c59e[_0x5b4062(0x208a)]=_0x5e0cfd[_0x5b4062(0x1b48)][_0x5b4062(0xfb1)]);_0x3c3ebb[_0x5b4062(0xc62)](_0x5b4062(0x1f8a),function(_0x5352d5){const _0x126606=_0x5b4062;_0x5352d5?_0x2c09e6(function(){const _0x3cab2e=a0_0x4127;_0x3c3ebb['tooltipVisible']=_0x46c59e[_0x3cab2e(0x59e)][_0x3cab2e(0x41c)];},0x258):_0x3c3ebb['tooltipVisible']=_0x46c59e[_0x126606(0x59e)][_0x126606(0x41c)];});function _0x51c445(){const _0x30d1f3=_0x5b4062;if(!_0x586b99[_0x30d1f3(0x4de)](_0x30d1f3(0x333))){const _0x15c0c5=_0x28c606()(_0x46c59e[_0x30d1f3(0x197e)]['rows'])['map'](function(_0x300e6c){return{'id':_0x300e6c['CompanyId']};})[_0x30d1f3(0xafa)]('id')[_0x30d1f3(0xcec)](function(_0x337df8){return _0x337df8['id']&&_0x337df8['id']>0x0;})[_0x30d1f3(0x1663)](_0x46c59e[_0x30d1f3(0x244)][_0x30d1f3(0x28b8)],'id')[_0x30d1f3(0x1096)]();if(!_0x28c606()[_0x30d1f3(0x940)](_0x15c0c5)){const _0x46f8fa=[];_0x15c0c5[_0x30d1f3(0x1397)](function(_0x3ce70b){const _0x3253a3=_0x30d1f3;_0x46f8fa[_0x3253a3(0x1954)](_0x5615a8['cmCompany']['get']({'id':_0x3ce70b['id'],'fields':_0x3253a3(0x1427)})[_0x3253a3(0x15e7)]);}),_0x1eaae2['all'](_0x46f8fa)[_0x30d1f3(0x64a)](function(_0x33b7a0){const _0xbcdf29=_0x30d1f3;_0x33b7a0[_0xbcdf29(0x1397)](function(_0x47b7a9){const _0x178c79=_0xbcdf29,_0x24d58f=_0x47b7a9[_0x178c79(0x14f8)]();_0x24d58f[_0x178c79(0xd4f)]=![],_0x46c59e[_0x178c79(0x244)][_0x178c79(0x28b8)]['push'](_0x24d58f);const _0x190ac0={};_0x190ac0[_0x24d58f['id']]=_0x24d58f[_0x178c79(0x2494)],_0x46c59e['companiesMap']=_0x28c606()[_0x178c79(0x5ae)](_0x46c59e[_0x178c79(0x18b2)],_0x190ac0);});})[_0x30d1f3(0x20cd)](function(_0x488106){const _0x161433=_0x30d1f3;_0x376c7c['error']({'title':_0x488106[_0x161433(0x10b3)]?_0x161433(0x575)+_0x488106[_0x161433(0x10b3)]+_0x161433(0x21db)+_0x488106['statusText']:_0x161433(0x1269),'msg':_0x488106[_0x161433(0x1c52)]?JSON[_0x161433(0x2317)](_0x488106[_0x161433(0x1c52)][_0x161433(0x18ca)]):_0x488106['toString']()});});}}}function _0x23badc(_0x57053a){const _0x347e8f=_0x5b4062,_0x1e8dc4=_0x2c181c[_0x347e8f(0x1ed2)]()['title'](_0x347e8f(0x1122))[_0x347e8f(0x13de)](_0x347e8f(0xee5))[_0x347e8f(0x213e)]('List\x20name')[_0x347e8f(0x2283)](_0x57053a)['ok']('Ok')[_0x347e8f(0x101a)](_0x347e8f(0x1dc6));return _0x2c181c[_0x347e8f(0xa60)](_0x1e8dc4)[_0x347e8f(0x64a)](function(_0x1b69ae){const _0x11dee9=_0x347e8f;if(_0x1b69ae)return _0x5615a8['cmList'][_0x11dee9(0x2479)]({'name':_0x1b69ae});else _0x376c7c[_0x11dee9(0x1bd0)]({'title':_0x11dee9(0x8da),'msg':_0x11dee9(0x1172)});})[_0x347e8f(0x64a)](function(_0x379da8){const _0x54ae42=_0x347e8f;_0x379da8&&(_0x46c59e['lists'][_0x54ae42(0x28b8)][_0x54ae42(0x1954)](_0x379da8),_0x376c7c[_0x54ae42(0x1339)]({'title':_0x54ae42(0x1f7e),'msg':_0x379da8[_0x54ae42(0x2494)]?_0x379da8[_0x54ae42(0x2494)]+'\x20has\x20been\x20created!':''}));});}function _0x5c9f59(){const _0x4b0ab8=_0x5b4062;return _0x586b99['hasPermission'](0x12f)||_0x586b99[_0x4b0ab8(0x4de)]('admin');}function _0x1775c6(_0x4456d2){const _0x44981b=_0x5b4062,_0x189b04=_0x2c181c[_0x44981b(0x1ed2)]()[_0x44981b(0x2021)](_0x44981b(0x28ce))[_0x44981b(0x13de)]('Company\x20name')[_0x44981b(0x213e)]('Company\x20name')[_0x44981b(0x2283)](_0x4456d2)['ok']('Ok')[_0x44981b(0x101a)](_0x44981b(0x1dc6));return _0x2c181c[_0x44981b(0xa60)](_0x189b04)[_0x44981b(0x64a)](function(_0x2ef1a7){const _0x330f6c=_0x44981b;if(_0x2ef1a7)return _0x5615a8[_0x330f6c(0x2625)]['save']({'name':_0x2ef1a7});else _0x376c7c[_0x330f6c(0x1bd0)]({'title':'Error\x20creating\x20company!','msg':_0x330f6c(0x1f32)});})['then'](function(_0x5419a9){const _0x58213f=_0x44981b;_0x5419a9&&(_0x46c59e[_0x58213f(0x244)]['rows'][_0x58213f(0x1954)](_0x5419a9),_0x376c7c[_0x58213f(0x1339)]({'title':'Company\x20properly\x20created!','msg':_0x5419a9[_0x58213f(0x2494)]?_0x5419a9[_0x58213f(0x2494)]+_0x58213f(0x258d):''}));});}function _0x3effea(_0x21a045){const _0x4bc361=_0x5b4062,_0xff52ff=_0x2c181c['prompt']()['title'](_0x4bc361(0xc7c))[_0x4bc361(0x13de)]('Tag\x20name')[_0x4bc361(0x213e)](_0x4bc361(0x2b4))[_0x4bc361(0x2283)](_0x21a045)['ok']('Ok')[_0x4bc361(0x101a)]('Cancel');return _0x2c181c[_0x4bc361(0xa60)](_0xff52ff)[_0x4bc361(0x64a)](function(_0xdf4eb){const _0x33e974=_0x4bc361;if(_0xdf4eb)return _0x5615a8['tag']['save']({'name':_0xdf4eb});else _0x376c7c[_0x33e974(0x1bd0)]({'title':'Error\x20creating\x20tag!','msg':_0x33e974(0x2333)});})[_0x4bc361(0x64a)](function(_0x302419){const _0x53b92a=_0x4bc361;_0x302419&&(_0x46c59e['tags'][_0x53b92a(0x28b8)][_0x53b92a(0x1954)](_0x302419),_0x376c7c[_0x53b92a(0x1339)]({'title':_0x53b92a(0x1f1f),'msg':_0x302419[_0x53b92a(0xac8)]?_0x302419[_0x53b92a(0x2494)]+'\x20has\x20been\x20created!':''}));});}function _0x4b40f4(_0x625f,_0x250adc){const _0x104d5b=_0x5b4062,_0x147561=JSON[_0x104d5b(0x27f1)](_0x250adc);_0x2c181c[_0x104d5b(0xa60)]({'controller':_0x104d5b(0x1d81),'controllerAs':'vm','templateUrl':_0x4b9f3f,'parent':angular[_0x104d5b(0x1f81)](_0x2d4545[_0x104d5b(0xb49)]),'clickOutsideToClose':![],'locals':{'lists':_0xb17072,'companies':_0x495a3e,'file':_0x147561[_0x104d5b(0x10b4)],'fields':_0x147561[_0x104d5b(0xf26)],'license':_0x46c59e[_0x104d5b(0x1947)]}})[_0x104d5b(0x64a)](function(){_0x46c59e['getContacts']();})[_0x104d5b(0x20cd)](function(){const _0x22f988=_0x104d5b;console[_0x22f988(0x1bd0)]();});}function _0x1a4cac(_0x173c85){const _0x56fb5b=_0x5b4062;_0x5e0cfd['go']('app.contactmanager.contacts.edit',{'id':_0x173c85['id'],'crudPermissions':_0x46c59e[_0x56fb5b(0x402)]});}function _0xc5ef20(_0x35dfc2,_0x470bbc){const _0x3cd95e=_0x5b4062,_0x550b6a=_0x2c181c['confirm']()[_0x3cd95e(0x2021)](_0x3cd95e(0x7fa))[_0x3cd95e(0x33a)](_0x3cd95e(0x50b)+(_0x35dfc2['firstName']||_0x35dfc2['email']||_0x35dfc2[_0x3cd95e(0x267a)]||_0x3cd95e(0x1c38))+_0x3cd95e(0x26d0)+_0x3cd95e(0x4b8))[_0x3cd95e(0x213e)]('delete\x20contact')[_0x3cd95e(0x2283)](_0x470bbc)['ok']('OK')[_0x3cd95e(0x101a)](_0x3cd95e(0x18fd));_0x2c181c[_0x3cd95e(0xa60)](_0x550b6a)[_0x3cd95e(0x64a)](function(){_0x3b6c4f(_0x35dfc2);});}function _0xaba2ab(_0x245763){const _0x1ec5a6=_0x5b4062,_0x55fc4f=[_0x1ec5a6(0x1e46)];if(!_0x28c606()[_0x1ec5a6(0x68a)](_0x55fc4f,_0x245763['getExtension']()))return _0x376c7c[_0x1ec5a6(0x1bd0)]({'title':_0x1ec5a6(0x1486)+_0x245763['getExtension'](),'msg':_0x1ec5a6(0x1b51)+_0x55fc4f['join']()}),![];if(_0x245763[_0x1ec5a6(0x1c97)]>_0x42341f)return _0x376c7c[_0x1ec5a6(0x1bd0)]({'title':_0x1ec5a6(0x535),'msg':_0x1ec5a6(0xbfa)+_0x20c204+'MB'}),![];return!![];}let _0x801048=!![],_0x160876=0x1;_0x3c3ebb[_0x5b4062(0xc62)](_0x5b4062(0x1cb9),function(_0x5ce0b9,_0x1cb4c3){const _0x1efc09=_0x5b4062;_0x801048?_0x2c09e6(function(){_0x801048=![];}):(!_0x1cb4c3&&(_0x160876=_0x46c59e[_0x1efc09(0x289a)][_0x1efc09(0xc72)]),_0x5ce0b9!==_0x1cb4c3&&(_0x46c59e['query']['page']=0x1),!_0x5ce0b9&&(_0x46c59e[_0x1efc09(0x289a)][_0x1efc09(0xc72)]=_0x160876),_0x46c59e['getContacts']());},!![]),_0x3c3ebb[_0x5b4062(0xc62)](_0x5b4062(0x764),function(_0x16ae18,_0x39460c){const _0x1f27fe=_0x5b4062;_0x16ae18!==_0x39460c&&(_0x46c59e[_0x1f27fe(0x289a)]['ListId']=_0x46c59e[_0x1f27fe(0x138a)]||undefined,_0x46c59e[_0x1f27fe(0x199a)]());}),_0x3c3ebb[_0x5b4062(0xc62)]('vm.selectedCompany',function(_0x101c87,_0x59c44f){const _0x329011=_0x5b4062;_0x101c87!==_0x59c44f&&(_0x46c59e[_0x329011(0x289a)][_0x329011(0xfb1)]=_0x46c59e['selectedCompany']||undefined,_0x46c59e[_0x329011(0x199a)]());}),_0x3c3ebb[_0x5b4062(0xc62)](_0x5b4062(0x119),function(_0x4379ea,_0x4577c9){const _0xd8e782=_0x5b4062;(_0x4379ea['length']||_0x4577c9[_0xd8e782(0x1b9e)])&&_0x46c59e[_0xd8e782(0x199a)]();});function _0x544b66(_0x420471){const _0x32f334=_0x5b4062;_0x46c59e[_0x32f334(0x197e)]=_0x420471||{'count':0x0,'rows':[]};}function _0x80ec31(){const _0x5944b9=_0x5b4062;_0x46c59e[_0x5944b9(0x289a)][_0x5944b9(0x24f9)]=(_0x46c59e[_0x5944b9(0x289a)]['page']-0x1)*_0x46c59e[_0x5944b9(0x289a)][_0x5944b9(0x25bb)],_0x586b99['hasRole'](_0x5944b9(0x333))?_0x46c59e[_0x5944b9(0x1713)]=_0x5615a8[_0x5944b9(0xdf5)][_0x5944b9(0x896)](_0x46c59e[_0x5944b9(0x289a)],_0x544b66)[_0x5944b9(0x15e7)]:(_0x46c59e['query']['id']=_0x46c59e[_0x5944b9(0x16a8)]['id'],_0x46c59e[_0x5944b9(0x289a)][_0x5944b9(0x869)]=!_0x46c59e[_0x5944b9(0x289a)][_0x5944b9(0x869)]?_0x28c606()[_0x5944b9(0x1de5)](_0x46c59e[_0x5944b9(0x974)][_0x5944b9(0x28b8)],'id'):_0x46c59e[_0x5944b9(0x289a)][_0x5944b9(0x869)],_0x46c59e[_0x5944b9(0x289a)][_0x5944b9(0xfb1)]=!_0x46c59e[_0x5944b9(0x289a)][_0x5944b9(0xfb1)]?_0x28c606()(_0x46c59e['companies'][_0x5944b9(0x28b8)])['filter']({'canSelect':undefined})['map']('id')[_0x5944b9(0x1096)]():_0x46c59e['query'][_0x5944b9(0xfb1)],_0x46c59e[_0x5944b9(0x289a)][_0x5944b9(0xa21)]=_0x5944b9(0x1162),_0x46c59e['promise']=_0x5615a8[_0x5944b9(0x16a8)][_0x5944b9(0x2565)](_0x46c59e[_0x5944b9(0x289a)],_0x544b66)[_0x5944b9(0x15e7)]);}function _0x265761(_0x3c9393,_0x4cf366){const _0x1abdd6=_0x5b4062;_0x4cf366&&_0x4cf366[_0x1abdd6(0x20f1)]&&(_0x4cf366['dateOfBirth']=new Date(_0x4cf366[_0x1abdd6(0x20f1)])),_0x2c181c[_0x1abdd6(0xa60)]({'controller':'CreateOrEditContactDialogController','controllerAs':'vm','templateUrl':_0x13f6e7,'parent':angular[_0x1abdd6(0x1f81)](_0x2d4545[_0x1abdd6(0xb49)]),'targetEvent':_0x3c9393,'clickOutsideToClose':!![],'locals':{'ListId':_0x46c59e[_0x1abdd6(0x289a)][_0x1abdd6(0x869)]||_0x5e0cfd[_0x1abdd6(0x1b48)][_0x1abdd6(0x869)],'CompanyId':_0x46c59e[_0x1abdd6(0x289a)]['CompanyId']||_0x5e0cfd[_0x1abdd6(0x1b48)][_0x1abdd6(0xfb1)],'contact':_0x4cf366,'contacts':_0x46c59e['contacts'][_0x1abdd6(0x28b8)],'companies':_0x46c59e[_0x1abdd6(0x244)],'lists':_0x46c59e[_0x1abdd6(0x974)],'setting':null,'crudPermissions':_0x46c59e[_0x1abdd6(0x402)]}});}function _0x4b26f9(_0x9f0649,_0x2e4c7d){const _0x13ef81=_0x5b4062;_0x2c181c[_0x13ef81(0xa60)]({'controller':_0x13ef81(0x113d),'controllerAs':'vm','templateUrl':_0x4d4648,'parent':angular[_0x13ef81(0x1f81)](_0x2d4545['body']),'targetEvent':_0x9f0649,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function(_0x9a290d){const _0x325ff0=_0x13ef81;return _0x9a290d[_0x325ff0(0x1268)](_0x325ff0(0x1188),{'id':_0x2e4c7d['id']});}],'lists':[_0x13ef81(0x107c),_0x13ef81(0xdcf),function(_0x211e7c,_0x3e2894){const _0x5c91b8=_0x13ef81;return _0x3e2894[_0x5c91b8(0x4de)](_0x5c91b8(0x333))?_0x211e7c['resolve']('cmList@get',{'fields':'id,name','nolimit':!![]}):_0x211e7c[_0x5c91b8(0x1268)](_0x5c91b8(0x1758),{'id':_0x3e2894[_0x5c91b8(0x808)]()[_0x5c91b8(0x21ac)],'section':_0x5c91b8(0x386),'fields':'id,name','nolimit':!![]});}]},'locals':{'contacts':_0x46c59e[_0x13ef81(0x197e)][_0x13ef81(0x28b8)]}});}function _0xa7e59d(_0xf8cef,_0x2b76e2){const _0x3f9b7a=_0x5b4062;_0x2c181c[_0x3f9b7a(0xa60)]({'controller':_0x3f9b7a(0xc0a),'controllerAs':'vm','templateUrl':_0x32a305,'parent':angular['element'](_0x2d4545[_0x3f9b7a(0xb49)]),'targetEvent':_0xf8cef,'clickOutsideToClose':!![],'resolve':{'contact':[_0x3f9b7a(0x107c),function(_0x448cb0){const _0x501afc=_0x3f9b7a;return _0x448cb0[_0x501afc(0x1268)]('cmContact@get',{'id':_0x2b76e2['id']});}],'lists':[_0x3f9b7a(0x107c),_0x3f9b7a(0xdcf),function(_0x3dd404,_0x8cab03){const _0x381eb6=_0x3f9b7a;return _0x8cab03[_0x381eb6(0x4de)]('admin')?_0x3dd404[_0x381eb6(0x1268)](_0x381eb6(0x13d2),{'fields':_0x381eb6(0x1427),'nolimit':!![]}):_0x3dd404[_0x381eb6(0x1268)](_0x381eb6(0x1758),{'id':_0x8cab03[_0x381eb6(0x808)]()['userProfileId'],'section':_0x381eb6(0x386),'fields':_0x381eb6(0x1427),'nolimit':!![]});}]},'locals':{'contacts':_0x46c59e[_0x3f9b7a(0x197e)]['rows']}});}function _0x3b6c4f(_0x1acc85){const _0x149f49=_0x5b4062;_0x5615a8[_0x149f49(0xdf5)][_0x149f49(0xabd)]({'id':_0x1acc85['id']})['$promise']['then'](function(){const _0x69dd61=_0x149f49;_0x28c606()[_0x69dd61(0x21c7)](_0x46c59e[_0x69dd61(0x197e)][_0x69dd61(0x28b8)],{'id':_0x1acc85['id']}),_0x46c59e[_0x69dd61(0x197e)][_0x69dd61(0xb90)]-=0x1,!_0x46c59e[_0x69dd61(0x197e)][_0x69dd61(0x28b8)][_0x69dd61(0x1b9e)]&&_0x46c59e[_0x69dd61(0x199a)](),_0x376c7c[_0x69dd61(0x1339)]({'title':_0x69dd61(0x2848),'msg':_0x1acc85[_0x69dd61(0x2494)]?_0x1acc85[_0x69dd61(0x2494)]+_0x69dd61(0x1fa8):''});})['catch'](function(_0x53fe32){const _0x3a2d51=_0x149f49;if(_0x53fe32['data']&&_0x53fe32['data'][_0x3a2d51(0xbae)]&&_0x53fe32[_0x3a2d51(0x1c52)][_0x3a2d51(0xbae)][_0x3a2d51(0x1b9e)]){_0x46c59e[_0x3a2d51(0xbae)]=_0x53fe32[_0x3a2d51(0x1c52)]['errors']||[{'message':_0x53fe32[_0x3a2d51(0x2915)](),'type':_0x3a2d51(0x25b7)}];for(let _0x15b041=0x0;_0x15b041<_0x53fe32['data'][_0x3a2d51(0xbae)]['length'];_0x15b041++){_0x376c7c[_0x3a2d51(0x1bd0)]({'title':_0x53fe32['data']['errors'][_0x15b041][_0x3a2d51(0x2185)],'msg':_0x53fe32[_0x3a2d51(0x1c52)][_0x3a2d51(0xbae)][_0x15b041][_0x3a2d51(0x18ca)]});}}else _0x376c7c[_0x3a2d51(0x1bd0)]({'title':_0x53fe32[_0x3a2d51(0x10b3)]?_0x3a2d51(0x575)+_0x53fe32[_0x3a2d51(0x10b3)]+_0x3a2d51(0x21db)+_0x53fe32[_0x3a2d51(0x2115)]:_0x3a2d51(0x25b7),'msg':_0x53fe32[_0x3a2d51(0x1c52)]?JSON[_0x3a2d51(0x2317)](_0x53fe32[_0x3a2d51(0x1c52)][_0x3a2d51(0x18ca)]):_0x53fe32[_0x3a2d51(0x18ca)]||_0x53fe32[_0x3a2d51(0x2915)]()});});}function _0x376a90(){const _0x120d94=_0x5b4062,_0x5a67fd=angular[_0x120d94(0x289e)](_0x46c59e[_0x120d94(0xca0)]);return _0x46c59e[_0x120d94(0xca0)]=[],_0x5a67fd;}function _0x143258(_0x4bd32f){const _0x1d7bcb=_0x5b4062,_0x3a86b6=_0x2c181c['confirm']()[_0x1d7bcb(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20contacts?')[_0x1d7bcb(0x33a)](_0x1d7bcb(0x50b)+_0x46c59e[_0x1d7bcb(0xca0)][_0x1d7bcb(0x1b9e)]+_0x1d7bcb(0x163e)+_0x1d7bcb(0x4b8))[_0x1d7bcb(0x213e)](_0x1d7bcb(0x1636))[_0x1d7bcb(0x2283)](_0x4bd32f)['ok']('OK')[_0x1d7bcb(0x101a)](_0x1d7bcb(0x18fd));_0x2c181c['show'](_0x3a86b6)[_0x1d7bcb(0x64a)](function(){const _0x1bacdc=_0x1d7bcb;_0x46c59e[_0x1bacdc(0xca0)][_0x1bacdc(0x1397)](function(_0x4335e3){_0x3b6c4f(_0x4335e3);}),_0x46c59e[_0x1bacdc(0xca0)]=[];});}function _0x2abbb1(){const _0x51ab18=_0x5b4062;_0x46c59e[_0x51ab18(0xca0)]=[];}function _0x3756a5(){const _0x4305f9=_0x5b4062;_0x46c59e['selectedContacts']=_0x46c59e[_0x4305f9(0x197e)][_0x4305f9(0x28b8)];}}const _0x1c0c93=_0xe3e86e;;_0x4fb99c[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'toasty',_0x49a1e3(0x197e),_0x49a1e3(0x974),_0x49a1e3(0x244),_0x49a1e3(0x13f7),_0x49a1e3(0x869),'CompanyId',_0x49a1e3(0xa19),_0x49a1e3(0x402)];function _0x4fb99c(_0x5d8c9a,_0x3ae259,_0x218dc9,_0x78603a,_0x1dd9dc,_0x42a8f1,_0x4ce36c,_0x5c43e4,_0x264384,_0x5934d3){const _0x32a15a=_0x49a1e3,_0x3f9138=this;_0x3f9138[_0x32a15a(0xbae)]=[],_0x3f9138[_0x32a15a(0x2021)]=_0x32a15a(0x1e38),_0x3f9138['crudPermissions']=_0x5934d3,_0x3f9138[_0x32a15a(0x13f7)]=angular[_0x32a15a(0x289e)](_0x42a8f1),_0x3f9138[_0x32a15a(0x197e)]=_0x218dc9||{'rows':[],'count':0x0},_0x3f9138[_0x32a15a(0x974)]=_0x78603a||{'rows':[],'count':0x0},_0x3f9138[_0x32a15a(0x244)]=_0x1dd9dc||{'rows':[],'count':0x0},_0x3f9138['customFields']={'rows':[],'count':0x0},_0x3f9138['newContact']=![];!_0x3f9138[_0x32a15a(0x13f7)]?(_0x3f9138[_0x32a15a(0x13f7)]={'ListId':_0x4ce36c?parseInt(_0x4ce36c,0xa):undefined,'CompanyId':_0x5c43e4?parseInt(_0x5c43e4,0xa):undefined},_0x3f9138['title']=_0x32a15a(0xb66),_0x3f9138[_0x32a15a(0x25c2)]=!![]):(delete _0x3f9138[_0x32a15a(0x13f7)][_0x32a15a(0x177c)],_0x3f9138[_0x32a15a(0x869)]=_0x3f9138[_0x32a15a(0x13f7)][_0x32a15a(0x869)]||undefined);_0x3f9138[_0x32a15a(0x1da5)]=_0x5b58b1,_0x3f9138[_0x32a15a(0xb09)]=_0x1aa482,_0x3f9138[_0x32a15a(0x1f4a)]=_0x20fbca,_0x3f9138['closeDialog']=_0x337d13,_0x3f9138['getCustomFields']=_0x539752,_0x3f9138[_0x32a15a(0x1605)]=_0xed1c1b;function _0x5b58b1(){const _0xce3125=_0x32a15a;_0x3f9138[_0xce3125(0xbae)]=[],_0x264384[_0xce3125(0xdf5)]['save'](_0x3f9138[_0xce3125(0x13f7)])[_0xce3125(0x15e7)][_0xce3125(0x64a)](function(_0x42286d){const _0x2b3937=_0xce3125;_0x3f9138['contacts'][_0x2b3937(0x1891)](_0x42286d),_0x3ae259[_0x2b3937(0x1339)]({'title':_0x2b3937(0x278d),'msg':_0x3f9138[_0x2b3937(0x13f7)][_0x2b3937(0x2494)]?_0x3f9138[_0x2b3937(0x13f7)]['name']+'\x20has\x20been\x20created!':''}),_0x337d13();})[_0xce3125(0x20cd)](function(_0x441a50){const _0x5dcd13=_0xce3125;if(_0x441a50[_0x5dcd13(0x1c52)]&&_0x441a50[_0x5dcd13(0x1c52)]['errors']&&_0x441a50[_0x5dcd13(0x1c52)][_0x5dcd13(0xbae)][_0x5dcd13(0x1b9e)]){_0x3f9138[_0x5dcd13(0xbae)]=_0x441a50[_0x5dcd13(0x1c52)][_0x5dcd13(0xbae)]||[{'message':_0x441a50[_0x5dcd13(0x2915)](),'type':_0x5dcd13(0xdf7)}];for(let _0x5bcf68=0x0;_0x5bcf68<_0x441a50[_0x5dcd13(0x1c52)][_0x5dcd13(0xbae)][_0x5dcd13(0x1b9e)];_0x5bcf68++){_0x3ae259[_0x5dcd13(0x1bd0)]({'title':_0x441a50[_0x5dcd13(0x1c52)][_0x5dcd13(0xbae)][_0x5bcf68][_0x5dcd13(0x2185)],'msg':_0x441a50['data'][_0x5dcd13(0xbae)][_0x5bcf68]['message']});}}else _0x3ae259['error']({'title':_0x441a50[_0x5dcd13(0x10b3)]?_0x5dcd13(0x575)+_0x441a50['status']+_0x5dcd13(0x21db)+_0x441a50[_0x5dcd13(0x2115)]:_0x5dcd13(0x277f),'msg':_0x441a50[_0x5dcd13(0x1c52)]?JSON['stringify'](_0x441a50['data']['message']):_0x441a50[_0x5dcd13(0x2915)]()});});}function _0x1aa482(){const _0x3f27f0=_0x32a15a;_0x3f9138['errors']=[],_0x264384[_0x3f27f0(0xdf5)][_0x3f27f0(0x2603)]({'id':_0x3f9138[_0x3f27f0(0x13f7)]['id']},_0x3f9138['contact'])[_0x3f27f0(0x15e7)]['then'](function(_0x1d98e3){const _0x70ff63=_0x3f27f0,_0x13246b=_0x28c606()[_0x70ff63(0x27bc)](_0x3f9138['contacts'],{'id':_0x1d98e3['id']});_0x13246b&&_0x28c606()[_0x70ff63(0x14fe)](_0x13246b,_0x1d98e3),_0x3ae259[_0x70ff63(0x1339)]({'title':_0x70ff63(0x5fc),'msg':_0x3f9138['contact'][_0x70ff63(0x2494)]?_0x3f9138[_0x70ff63(0x13f7)][_0x70ff63(0x2494)]+'\x20has\x20been\x20saved!':''}),_0x337d13();})[_0x3f27f0(0x20cd)](function(_0x495f1d){const _0x2627b3=_0x3f27f0;if(_0x495f1d[_0x2627b3(0x1c52)]&&_0x495f1d[_0x2627b3(0x1c52)][_0x2627b3(0xbae)]&&_0x495f1d[_0x2627b3(0x1c52)]['errors'][_0x2627b3(0x1b9e)]){_0x3f9138['errors']=_0x495f1d[_0x2627b3(0x1c52)][_0x2627b3(0xbae)]||[{'message':_0x495f1d[_0x2627b3(0x2915)](),'type':_0x2627b3(0xfa3)}];for(let _0x549ee3=0x0;_0x549ee3<_0x495f1d[_0x2627b3(0x1c52)][_0x2627b3(0xbae)][_0x2627b3(0x1b9e)];_0x549ee3++){_0x3ae259[_0x2627b3(0x1bd0)]({'title':_0x495f1d[_0x2627b3(0x1c52)][_0x2627b3(0xbae)][_0x549ee3][_0x2627b3(0x2185)],'msg':_0x495f1d['data'][_0x2627b3(0xbae)][_0x549ee3]['message']});}}else _0x3ae259[_0x2627b3(0x1bd0)]({'title':_0x495f1d[_0x2627b3(0x10b3)]?'API:'+_0x495f1d[_0x2627b3(0x10b3)]+_0x2627b3(0x21db)+_0x495f1d[_0x2627b3(0x2115)]:_0x2627b3(0xfa3),'msg':_0x495f1d[_0x2627b3(0x1c52)]?JSON[_0x2627b3(0x2317)](_0x495f1d[_0x2627b3(0x1c52)][_0x2627b3(0x18ca)]):_0x495f1d['toString']()});});}function _0x539752(_0x2ae93c){const _0x3ec4f1=_0x32a15a;if(_0x2ae93c)return _0x264384[_0x3ec4f1(0x19f8)][_0x3ec4f1(0x231f)]({'id':_0x2ae93c})['$promise'][_0x3ec4f1(0x64a)](function(_0x36f15c){const _0x1151ff=_0x3ec4f1;if(_0x36f15c){_0x3f9138[_0x1151ff(0x1559)]=_0x36f15c;const _0x7a125a=_0x28c606()[_0x1151ff(0x1de5)](_0x3f9138[_0x1151ff(0x1559)][_0x1151ff(0x28b8)],function(_0xfb153b){const _0x334142=_0x1151ff;return _0x334142(0x48d)+_0xfb153b['id'];});_0x264384[_0x1151ff(0xdf5)][_0x1151ff(0x896)]({'id':_0x3f9138[_0x1151ff(0x13f7)]['id'],'attributes':_0x7a125a,'raw':!![]})[_0x1151ff(0x15e7)][_0x1151ff(0x64a)](function(_0x566ebb){const _0x2dc4dc=_0x1151ff;_0x3f9138['contact']=_0x28c606()[_0x2dc4dc(0x14fe)](_0x3f9138[_0x2dc4dc(0x13f7)],_0x566ebb);});}})['catch'](function(_0x3f058f){const _0x23223a=_0x3ec4f1;console[_0x23223a(0x1bd0)](_0x3f058f);});else _0x3f9138['customFields']={'rows':[],'count':0x0};}function _0x20fbca(_0x77e187){const _0x495907=_0x32a15a;_0x3f9138[_0x495907(0xbae)]=[];const _0x5c72ee=_0x5d8c9a[_0x495907(0x856)]()[_0x495907(0x2021)]('Are\x20you\x20sure?')['content']('The\x20contact\x20will\x20be\x20deleted.')[_0x495907(0x213e)](_0x495907(0xca7))['ok'](_0x495907(0x2664))[_0x495907(0x101a)](_0x495907(0x1dc6))[_0x495907(0x2283)](_0x77e187);_0x5d8c9a['show'](_0x5c72ee)[_0x495907(0x64a)](function(){const _0x444484=_0x495907;_0x264384['cmContact'][_0x444484(0xabd)]({'id':_0x3f9138['contact']['id']})[_0x444484(0x15e7)][_0x444484(0x64a)](function(){const _0x155cb1=_0x444484;_0x28c606()['remove'](_0x3f9138[_0x155cb1(0x197e)],{'id':_0x3f9138['contact']['id']}),_0x3ae259[_0x155cb1(0x1339)]({'title':_0x155cb1(0x1f4d),'msg':_0x3f9138['contact'][_0x155cb1(0x2494)]?_0x3f9138[_0x155cb1(0x13f7)][_0x155cb1(0x2494)]+_0x155cb1(0x1fa8):''}),_0x337d13();})[_0x444484(0x20cd)](function(_0x5592c0){const _0x208618=_0x444484;console[_0x208618(0x1bd0)](_0x5592c0),_0x3f9138['errors']=_0x5592c0['data']['errors']||[{'message':_0x5592c0[_0x208618(0x2915)](),'type':'api.contact.delete'}];});},function(){});}function _0xed1c1b(_0x4d47ac){return _0x4d47ac===null?undefined:new Date(_0x4d47ac);}function _0x337d13(){const _0x3c6187=_0x32a15a;_0x5d8c9a[_0x3c6187(0x268e)]();}}const _0x476cb9=_0x4fb99c;;_0x196c58[_0x49a1e3(0x1e73)]=['$mdDialog',_0x49a1e3(0x680),_0x49a1e3(0x13f7),_0x49a1e3(0x197e),_0x49a1e3(0x974),_0x49a1e3(0xa19)];function _0x196c58(_0x18b44a,_0x1d425b,_0xc0e4b2,_0x5a88ba,_0xd4d80b,_0x2b3dd2){const _0x2696b9=_0x49a1e3,_0x1427f9=this;_0x1427f9[_0x2696b9(0xbae)]=[],_0x1427f9[_0x2696b9(0x2021)]=_0x2696b9(0x1c98),_0x1427f9['contact']=angular[_0x2696b9(0x289e)](_0xc0e4b2),_0x1427f9[_0x2696b9(0x974)]=_0xd4d80b||{'rows':[],'count':0x0},_0x1427f9['addNewContact']=_0x2853cb,_0x1427f9[_0x2696b9(0x16cb)]=_0x28d4b1;function _0x2853cb(){const _0x39e7e0=_0x2696b9;_0x1427f9[_0x39e7e0(0xbae)]=[],delete _0x1427f9[_0x39e7e0(0x13f7)]['id'],_0x1427f9[_0x39e7e0(0x13f7)][_0x39e7e0(0x16a6)]&&!_0x1427f9[_0x39e7e0(0x13f7)]['tags'][_0x39e7e0(0x1b9e)]&&delete _0x1427f9[_0x39e7e0(0x13f7)][_0x39e7e0(0x16a6)],_0x2b3dd2[_0x39e7e0(0xdf5)][_0x39e7e0(0x2479)](_0x1427f9[_0x39e7e0(0x13f7)])['$promise'][_0x39e7e0(0x64a)](function(_0x57ce44){const _0x53b0fd=_0x39e7e0;_0x5a88ba[_0x53b0fd(0x1891)](_0x57ce44),_0x1d425b[_0x53b0fd(0x1339)]({'title':_0x53b0fd(0x278d),'msg':_0x1427f9[_0x53b0fd(0x13f7)]['name']?_0x1427f9[_0x53b0fd(0x13f7)]['name']+_0x53b0fd(0x258d):''}),_0x28d4b1();})[_0x39e7e0(0x20cd)](function(_0x5d87ea){const _0x45ea29=_0x39e7e0;console[_0x45ea29(0x1bd0)](_0x5d87ea),_0x1427f9['errors']=_0x5d87ea['data']['errors']||[{'message':_0x5d87ea[_0x45ea29(0x2915)](),'type':_0x45ea29(0x13cd)}];});}function _0x28d4b1(){_0x18b44a['hide']();}}const _0x5324e7=_0x196c58;;_0x33f9c5[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location','$mdDialog',_0x49a1e3(0x680),_0x49a1e3(0xd52),_0x49a1e3(0x7e4),_0x49a1e3(0xa19),'crudPermissions'];function _0x33f9c5(_0xfce7c1,_0x403c46,_0x3577e0,_0x2a1c9d,_0xf08cb,_0x4213b9,_0x18864d,_0x5712c0,_0x45cb65){const _0x2636cf=_0x49a1e3,_0x1356aa=this;_0x1356aa[_0x2636cf(0xbae)]=[],_0x1356aa['title']=_0x2636cf(0x13d3),_0x1356aa[_0x2636cf(0x7e4)]=angular[_0x2636cf(0x289e)](_0x18864d),_0x1356aa[_0x2636cf(0xd52)]=_0x4213b9,_0x1356aa[_0x2636cf(0xd5a)]=![],_0x1356aa[_0x2636cf(0x402)]=_0x45cb65;!_0x1356aa['hopper']&&(_0x1356aa['hopper']={},_0x1356aa[_0x2636cf(0x2021)]=_0x2636cf(0x64b),_0x1356aa[_0x2636cf(0xd5a)]=!![]);_0x1356aa[_0x2636cf(0x195e)]=_0x79768,_0x1356aa[_0x2636cf(0x1605)]=_0x18db6b,_0x1356aa['closeDialog']=_0x221a07;function _0x79768(){const _0x43d3a9=_0x2636cf;_0x1356aa[_0x43d3a9(0xbae)]=[],_0x5712c0[_0x43d3a9(0x232f)]['update']({'id':_0x1356aa['hopper']['id']},_0x1356aa[_0x43d3a9(0x7e4)])[_0x43d3a9(0x15e7)][_0x43d3a9(0x64a)](function(_0x1b0ac8){const _0x55eecc=_0x43d3a9,_0x195e44=_0x28c606()[_0x55eecc(0x27bc)](_0x1356aa[_0x55eecc(0xd52)],{'id':_0x1b0ac8['id']});_0x195e44&&_0x28c606()[_0x55eecc(0x14fe)](_0x195e44,_0x1b0ac8),_0xf08cb[_0x55eecc(0x1339)]({'title':_0x55eecc(0x516),'msg':_0x1356aa['hopper'][_0x55eecc(0x2494)]?_0x1356aa[_0x55eecc(0x7e4)]['name']+_0x55eecc(0x271):''}),_0x221a07(_0x1b0ac8);})['catch'](function(_0x3abb16){const _0x2c7758=_0x43d3a9;console[_0x2c7758(0x1bd0)](_0x3abb16),_0x1356aa[_0x2c7758(0xbae)]=_0x3abb16['data']['errors']||[{'message':_0x3abb16[_0x2c7758(0x2915)](),'type':_0x2c7758(0x2825)}];});}function _0x18db6b(_0x232ddc){return _0x232ddc===null?undefined:new Date(_0x232ddc);}function _0x221a07(_0x57ee10){_0x2a1c9d['hide'](_0x57ee10);}}const _0x48297b=_0x33f9c5;;const _0x3e02dc=_0x2e4a48['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hoppers/dialog.html/dialog.html';;_0x2f9186['$inject']=['$scope',_0x49a1e3(0x20d4),'$state',_0x49a1e3(0x1373),_0x49a1e3(0x212a),'$translate',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x13f7),_0x49a1e3(0xd52),_0x49a1e3(0x3da),_0x49a1e3(0x1af7),_0x49a1e3(0x197e),_0x49a1e3(0x244),_0x49a1e3(0x974),'customFields',_0x49a1e3(0x16a6),_0x49a1e3(0x1c2a),_0x49a1e3(0x1947),_0x49a1e3(0xdcf),'userProfileSection'];function _0x2f9186(_0x319c31,_0x350a0b,_0x29273e,_0x3e2638,_0x9b27be,_0x3fe524,_0x45781b,_0x2663ed,_0x431ebf,_0x296bca,_0x43c61c,_0x5b2605,_0x4b7488,_0x240e65,_0x45a2f4,_0x370c5a,_0xce211a,_0x4a0b44,_0x424f56,_0x1370bb,_0x3e98dd){const _0x1a60e6=_0x49a1e3,_0x1fd73e=this;_0x1fd73e['currentUser']=_0x1370bb[_0x1a60e6(0x808)](),_0x1fd73e[_0x1a60e6(0x1947)]=_0x424f56,_0x1fd73e[_0x1a60e6(0x738)]=[],_0x1fd73e['contact']=_0x431ebf||{},_0x1fd73e[_0x1a60e6(0xd52)]=_0x296bca||{'rows':[],'count':0x0},_0x1fd73e[_0x1a60e6(0x3da)]=_0x43c61c||{'rows':[],'count':0x0},_0x1fd73e[_0x1a60e6(0x1af7)]=_0x5b2605||{'rows':[],'count':0x0},_0x1fd73e[_0x1a60e6(0x244)]=_0x240e65||{'rows':[],'count':0x0},_0x1fd73e[_0x1a60e6(0x974)]=_0x45a2f4||{'rows':[],'count':0x0},_0x1fd73e[_0x1a60e6(0x1559)]=_0x370c5a||{'rows':[],'count':0x0},_0x1fd73e['tags']=_0xce211a||{'rows':[],'count':0x0},_0x1fd73e['jscriptySessions']=_0x4a0b44||{'rows':[],'count':0x0},_0x1fd73e[_0x1a60e6(0x18ad)]={'scrollEl':_0x1a60e6(0x918)},_0x1fd73e[_0x1a60e6(0x1971)]=new Date(_0x2ac33a()()[_0x1a60e6(0x246e)](_0x1a60e6(0x5f5))[_0x1a60e6(0x1219)](0x1,_0x1a60e6(0x15a2))[_0x1a60e6(0xebc)](0x0,!![])['format']()),_0x1fd73e[_0x1a60e6(0x20c3)]=new Date(_0x2ac33a()()[_0x1a60e6(0x13af)](_0x1a60e6(0x5f5))[_0x1a60e6(0x1219)](0x1,'day')[_0x1a60e6(0xebc)](0x0,!![])[_0x1a60e6(0x1c2c)]()),_0x1fd73e[_0x1a60e6(0x16b2)]=_0x3e98dd&&_0x3e98dd[_0x1a60e6(0xb90)]==0x1?_0x3e98dd[_0x1a60e6(0x28b8)][0x0]:null,_0x1fd73e['crudPermissions']=_0x1370bb[_0x1a60e6(0xa7e)](_0x1fd73e[_0x1a60e6(0x16b2)]?_0x1fd73e[_0x1a60e6(0x16b2)]['crudPermissions']:null),_0x1fd73e[_0x1a60e6(0x278f)]=_0x28c606()['keyBy']([{'option':_0x1a60e6(0x275f),'value':'\x274\x27'},{'option':'High','value':_0x1a60e6(0x274b)},{'option':_0x1a60e6(0x4d3),'value':'\x272\x27'},{'option':_0x1a60e6(0x1195),'value':_0x1a60e6(0x1755)},{'option':_0x1a60e6(0x1862),'value':'\x270\x27'}],function(_0x45175b){const _0x35cc5a=_0x1a60e6;return _0x28c606()[_0x35cc5a(0x1353)](_0x45175b[_0x35cc5a(0x1096)],new RegExp('\x27','g'),'');}),_0x1fd73e[_0x1a60e6(0x12ee)]={'fields':_0x1a60e6(0xa88),'sort':_0x1a60e6(0x260c),'limit':0xa,'page':0x1},_0x1fd73e[_0x1a60e6(0xf44)]={'fields':_0x1a60e6(0xa9e),'sort':'-id','limit':0xa,'page':0x1},_0x1fd73e[_0x1a60e6(0xe1e)]={'fields':_0x1a60e6(0x1923),'sort':_0x1a60e6(0x2778),'limit':0xa,'page':0x1},_0x1fd73e[_0x1a60e6(0x27e1)]={'fields':'id,starttime,endtime,membername,projectname','sort':_0x1a60e6(0x2562),'limit':0xa,'page':0x1},_0x1fd73e[_0x1a60e6(0x197c)]=_0x29273e[_0x1a60e6(0x1b48)][_0x1a60e6(0x1222)]||0x0,_0x1fd73e['onInit']=_0x421114,_0x1fd73e[_0x1a60e6(0x26ea)]=_0x3c8d53,_0x1fd73e[_0x1a60e6(0x17df)]=_0x187345,_0x1fd73e['saveContact']=_0x426701,_0x1fd73e[_0x1a60e6(0x609)]=_0x14c0cd,_0x1fd73e[_0x1a60e6(0x325)]=_0x271a3f,_0x1fd73e[_0x1a60e6(0x34e)]=_0x29db17,_0x1fd73e['getDateFromString']=_0x1e2dcc,_0x1fd73e['getHoppers']=_0xb30323,_0x1fd73e[_0x1a60e6(0x18d4)]=_0x29b975,_0x1fd73e[_0x1a60e6(0x16c2)]=_0x3d646d,_0x1fd73e[_0x1a60e6(0x27d8)]=_0x24c072,_0x1fd73e[_0x1a60e6(0x1262)]=_0x28f196,_0x1fd73e[_0x1a60e6(0x55b)]=_0x3461bb,_0x1fd73e['createOrEditIvrCampaignHopper']=_0x319720,_0x1fd73e[_0x1a60e6(0x1ded)]=_0x51b1fd;let _0x4a7b90=!![],_0x2fc094=0x1;_0x319c31[_0x1a60e6(0xc62)](_0x1a60e6(0x1591),function(_0x59cbf4,_0x26063d){const _0xd1f614=_0x1a60e6;_0x4a7b90?_0x350a0b(function(){_0x4a7b90=![];}):(!_0x26063d&&(_0x2fc094=_0x1fd73e[_0xd1f614(0x12ee)][_0xd1f614(0xc72)]),_0x59cbf4!==_0x26063d&&(_0x1fd73e[_0xd1f614(0x12ee)]['page']=0x1),!_0x59cbf4&&(_0x1fd73e[_0xd1f614(0x12ee)][_0xd1f614(0xc72)]=_0x2fc094),_0x1fd73e['getHoppers']());}),_0x319c31[_0x1a60e6(0xc62)](_0x1a60e6(0x1d1f),function(_0x579ed2,_0x37a4ab){const _0x39526f=_0x1a60e6;_0x4a7b90?_0x350a0b(function(){_0x4a7b90=![];}):(!_0x37a4ab&&(_0x2fc094=_0x1fd73e[_0x39526f(0xf44)][_0x39526f(0xc72)]),_0x579ed2!==_0x37a4ab&&(_0x1fd73e[_0x39526f(0xf44)][_0x39526f(0xc72)]=0x1),!_0x579ed2&&(_0x1fd73e[_0x39526f(0xf44)][_0x39526f(0xc72)]=_0x2fc094),_0x1fd73e[_0x39526f(0x18d4)]());}),_0x319c31[_0x1a60e6(0xc62)](_0x1a60e6(0x2599),function(_0x2e2bb0,_0x1e7236){const _0x5515cb=_0x1a60e6;_0x4a7b90?_0x350a0b(function(){_0x4a7b90=![];}):(!_0x1e7236&&(_0x2fc094=_0x1fd73e[_0x5515cb(0xe1e)][_0x5515cb(0xc72)]),_0x2e2bb0!==_0x1e7236&&(_0x1fd73e[_0x5515cb(0xe1e)][_0x5515cb(0xc72)]=0x1),!_0x2e2bb0&&(_0x1fd73e['queryHistory']['page']=_0x2fc094),_0x1fd73e[_0x5515cb(0x16c2)]());});function _0x75a775(_0x5a1043){const _0x54cd54=_0x1a60e6;switch(_0x5a1043){case _0x54cd54(0xf52):return _0x54cd54(0x147d);case _0x54cd54(0xc71):return'teal';case'sms':return _0x54cd54(0xadf);case _0x54cd54(0x28ad):return _0x54cd54(0x2981);case _0x54cd54(0x1d37):return _0x54cd54(0x767);case _0x54cd54(0x1a29):return _0x54cd54(0xa75);default:return _0x54cd54(0x5fb);}}function _0x51b1fd(_0x101efe){const _0x101be1=_0x1a60e6;let _0x4e2ba6='';if(_0x101efe['FaxAccountId'])_0x4e2ba6=_0x101be1(0x1d37);else{if(_0x101efe[_0x101be1(0x2859)])_0x4e2ba6=_0x101be1(0x28ad);else{if(_0x101efe[_0x101be1(0x1be5)])_0x4e2ba6='sms';else{if(_0x101efe[_0x101be1(0xa4c)])_0x4e2ba6=_0x101be1(0xc71);else{if(_0x101efe['ChatWebsiteId'])_0x4e2ba6=_0x101be1(0xf52);else _0x101efe[_0x101be1(0x987)]&&(_0x4e2ba6=_0x101be1(0x227c));}}}}return _0x75a775(_0x4e2ba6);}function _0x379337(_0x27ea53){return function(_0x581de6){_0x1fd73e[_0x27ea53]=_0x581de6||{'count':0x0,'rows':[]};};}function _0x421114(){const _0x658acd=_0x1a60e6;return!_0x1370bb[_0x658acd(0x4de)](_0x658acd(0x333))&&(_0x17e669(),_0x296c70()),_0x2663ed['user']['get']({'fields':'id,fullname','nolimit':!![]})[_0x658acd(0x15e7)]['then'](function(_0x1472e3){const _0x15b466=_0x658acd;_0x1fd73e[_0x15b466(0xff5)]=_0x1472e3||{'count':0x0,'rows':[]},_0x1fd73e[_0x15b466(0x1aa5)]=_0x28c606()[_0x15b466(0x239c)](_0x28c606()['keyBy'](_0x1fd73e['users'][_0x15b466(0x28b8)],'id'),'fullname'),_0x1fd73e[_0x15b466(0x1178)]=_0x28c606()[_0x15b466(0x1de5)](_0x1fd73e[_0x15b466(0x13f7)][_0x15b466(0x1178)],'id');})[_0x658acd(0x64a)](_0x11fa31(_0x431ebf));}function _0x17e669(){const _0x4a35d7=_0x1a60e6,_0x577d44=_0x28c606()[_0x4a35d7(0x25f8)](_0x1fd73e[_0x4a35d7(0x244)]['rows'],{'id':_0x1fd73e[_0x4a35d7(0x13f7)][_0x4a35d7(0xfb1)]});if(!_0x577d44)return _0x2663ed['cmCompany']['get']({'id':_0x1fd73e[_0x4a35d7(0x13f7)][_0x4a35d7(0xfb1)],'fields':_0x4a35d7(0x1427)})[_0x4a35d7(0x15e7)][_0x4a35d7(0x64a)](function(_0x41537c){const _0x27b3db=_0x4a35d7,_0x20aaaa=_0x41537c[_0x27b3db(0x14f8)]();_0x20aaaa[_0x27b3db(0xd4f)]=![],_0x1fd73e[_0x27b3db(0x244)][_0x27b3db(0x28b8)][_0x27b3db(0x1954)](_0x20aaaa);})[_0x4a35d7(0x20cd)](function(_0xe7258a){const _0x221c91=_0x4a35d7;_0x45781b[_0x221c91(0x1bd0)]({'title':_0xe7258a[_0x221c91(0x10b3)]?_0x221c91(0x575)+_0xe7258a[_0x221c91(0x10b3)]+_0x221c91(0x21db)+_0xe7258a[_0x221c91(0x2115)]:'GET_COMPANY','msg':_0xe7258a['data']?JSON[_0x221c91(0x2317)](_0xe7258a[_0x221c91(0x1c52)][_0x221c91(0x18ca)]):_0xe7258a[_0x221c91(0x2915)]()});});}function _0x296c70(){const _0x52d8e4=_0x1a60e6,_0x5783a4=_0x28c606()[_0x52d8e4(0x1de5)](_0x1fd73e[_0x52d8e4(0x13f7)][_0x52d8e4(0x1178)],function(_0x1de602){const _0x4dda1f=_0x52d8e4;return{'id':_0x1de602['id'],'name':_0x1de602[_0x4dda1f(0x2494)]};});if(!_0x28c606()[_0x52d8e4(0x940)](_0x5783a4))for(let _0x2c5db2=0x0;_0x2c5db2<_0x5783a4['length'];_0x2c5db2++){!_0x28c606()[_0x52d8e4(0x25f8)](_0x1fd73e[_0x52d8e4(0x16a6)]['rows'],{'id':_0x5783a4['id']})&&(_0x5783a4[_0x2c5db2][_0x52d8e4(0xd4f)]=![],_0x1fd73e['tags'][_0x52d8e4(0x28b8)][_0x52d8e4(0x1954)](_0x5783a4[_0x2c5db2]));}}function _0x4e8de4(_0x9de3af){const _0x12b79e=_0x1a60e6;if(!_0x9de3af[_0x12b79e(0x168b)])return'('+_0x3fe524[_0x12b79e(0x2292)](_0x12b79e(0x11fc))+')';const _0x1d4082=_0x28c606()['compact']([_0x9de3af[_0x12b79e(0x168b)],_0x9de3af[_0x12b79e(0x22df)],_0x9de3af['thirdDisposition']]);return'('+_0x1d4082[_0x12b79e(0x9a6)](_0x12b79e(0x21db))+')';}function _0x2e7f08(_0xa781cf){const _0x3329df=_0x1a60e6;_0xa781cf&&_0xa781cf[_0x3329df(0xb90)]&&_0xa781cf[_0x3329df(0x28b8)][_0x3329df(0x1b9e)]&&(_0x1fd73e['journey']=_0x28c606()[_0x3329df(0x2808)](_0x1fd73e[_0x3329df(0x738)],_0xa781cf['rows']),_0x1fd73e[_0x3329df(0x738)][_0x3329df(0x1397)](function(_0x575331){const _0x18503c=_0x3329df;_0x575331[_0x18503c(0x2239)]=_0x4e8de4(_0x575331);}));}function _0x11fa31(_0x31e360){const _0x5792e9=_0x1a60e6,_0x29bf47=[_0x5792e9(0xc71),'chat',_0x5792e9(0x10aa),_0x5792e9(0x28ad),'fax'];if(_0x31e360&&_0x31e360['id']){for(let _0x361202=0x0;_0x361202<_0x29bf47[_0x5792e9(0x1b9e)];_0x361202++){_0x2663ed[_0x29bf47[_0x361202]+'Interaction'][_0x5792e9(0x896)]({'ContactId':_0x31e360['id'],'includeAll':!![]})[_0x5792e9(0x15e7)][_0x5792e9(0x64a)](_0x2e7f08);}_0x2663ed['voiceCallReport'][_0x5792e9(0x896)]({'ContactId':_0x31e360['id'],'includeAll':!![]})['$promise']['then'](_0x2e7f08)[_0x5792e9(0x20cd)](function(_0x12f40e){console['error'](_0x12f40e);});}}function _0x3461bb(_0x5de24d,_0xc5c9b4){const _0x2c80b1=_0x1a60e6;_0x9b27be[_0x2c80b1(0xa60)]({'controller':_0x2c80b1(0x1224),'controllerAs':'vm','templateUrl':_0x9cd309,'parent':angular[_0x2c80b1(0x1f81)](_0x3e2638[_0x2c80b1(0xb49)]),'targetEvent':_0x5de24d,'clickOutsideToClose':!![],'locals':{'hopper':_0xc5c9b4,'hoppers':_0x1fd73e['hoppers'][_0x2c80b1(0x28b8)],'license':null,'setting':null,'crudPermissions':_0x1fd73e[_0x2c80b1(0x402)]}});}function _0x319720(_0x3c1f6b,_0x23364a){const _0x120957=_0x1a60e6;_0x9b27be[_0x120957(0xa60)]({'controller':_0x120957(0x25a),'controllerAs':'vm','templateUrl':_0x3e02dc,'parent':angular[_0x120957(0x1f81)](_0x3e2638[_0x120957(0xb49)]),'targetEvent':_0x3c1f6b,'clickOutsideToClose':!![],'locals':{'hopper':_0x23364a,'hoppers':_0x1fd73e[_0x120957(0xd52)][_0x120957(0x28b8)],'license':null,'setting':null,'crudPermissions':_0x1fd73e['crudPermissions']}});}function _0x28f196(_0x118421,_0x330702){const _0x4d4c1b=_0x1a60e6,_0x202a49=_0x9b27be[_0x4d4c1b(0x856)]()[_0x4d4c1b(0x2021)](_0x4d4c1b(0x10f1))['htmlContent'](_0x4d4c1b(0x50b)+(_0x118421['phone']||'hopper')+''+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20hopper')[_0x4d4c1b(0x2283)](_0x330702)['ok']('OK')[_0x4d4c1b(0x101a)](_0x4d4c1b(0x18fd));_0x9b27be[_0x4d4c1b(0xa60)](_0x202a49)['then'](function(){_0x395d30(_0x118421);},function(){const _0x500b0e=_0x4d4c1b;console[_0x500b0e(0x9b4)](_0x500b0e(0x18fd));});}function _0x395d30(_0x159b74){const _0x195124=_0x1a60e6;return _0x2663ed['cmHopper'][_0x195124(0xabd)]({'id':_0x159b74['id']})['$promise'][_0x195124(0x64a)](function(){const _0x275dc4=_0x195124;_0x28c606()[_0x275dc4(0x21c7)](_0x1fd73e[_0x275dc4(0xd52)][_0x275dc4(0x28b8)],{'id':_0x159b74['id']}),_0x1fd73e[_0x275dc4(0xd52)][_0x275dc4(0xb90)]--,!_0x1fd73e[_0x275dc4(0xd52)]['rows']['length']&&_0x1fd73e[_0x275dc4(0x24d2)](),_0x45781b[_0x275dc4(0x1339)]({'title':_0x275dc4(0x2932),'msg':_0x159b74[_0x275dc4(0x267a)]?_0x159b74[_0x275dc4(0x267a)]+_0x275dc4(0x1fa8):''});})['catch'](function(_0x395fa6){const _0x5604b5=_0x195124;_0x45781b[_0x5604b5(0x1bd0)]({'title':_0x395fa6[_0x5604b5(0x10b3)]?_0x5604b5(0x575)+_0x395fa6['status']+_0x5604b5(0x21db)+_0x395fa6[_0x5604b5(0x2115)]:'SYSTEM:DELETEhopper','msg':_0x395fa6[_0x5604b5(0x1c52)]?JSON['stringify'](_0x395fa6[_0x5604b5(0x1c52)]):_0x395fa6[_0x5604b5(0x2915)]()});});}function _0xb30323(){const _0x1a2b8f=_0x1a60e6;_0x1fd73e[_0x1a2b8f(0x12ee)]['offset']=(_0x1fd73e[_0x1a2b8f(0x12ee)]['page']-0x1)*_0x1fd73e['queryHopper']['limit'],_0x1fd73e[_0x1a2b8f(0x12ee)]['id']=_0x1fd73e[_0x1a2b8f(0x13f7)]['id'],_0x1fd73e['promise']=_0x2663ed[_0x1a2b8f(0xdf5)][_0x1a2b8f(0x24d2)](_0x1fd73e[_0x1a2b8f(0x12ee)],_0x379337(_0x1a2b8f(0xd52)))[_0x1a2b8f(0x15e7)];}function _0x29b975(){const _0x57e6e6=_0x1a60e6;_0x1fd73e[_0x57e6e6(0xf44)][_0x57e6e6(0x24f9)]=(_0x1fd73e[_0x57e6e6(0xf44)][_0x57e6e6(0xc72)]-0x1)*_0x1fd73e[_0x57e6e6(0xf44)][_0x57e6e6(0x25bb)],_0x1fd73e[_0x57e6e6(0xf44)]['id']=_0x1fd73e[_0x57e6e6(0x13f7)]['id'],_0x1fd73e[_0x57e6e6(0x1713)]=_0x2663ed[_0x57e6e6(0xdf5)]['getHopperFinals'](_0x1fd73e[_0x57e6e6(0xf44)],_0x379337(_0x57e6e6(0x3da)))[_0x57e6e6(0x15e7)];}function _0x3d646d(){const _0x1bc253=_0x1a60e6;_0x1fd73e[_0x1bc253(0xe1e)][_0x1bc253(0x24f9)]=(_0x1fd73e[_0x1bc253(0xe1e)][_0x1bc253(0xc72)]-0x1)*_0x1fd73e[_0x1bc253(0xe1e)][_0x1bc253(0x25bb)],_0x1fd73e[_0x1bc253(0xe1e)]['id']=_0x1fd73e['contact']['id'],_0x1fd73e[_0x1bc253(0x1713)]=_0x2663ed[_0x1bc253(0xdf5)][_0x1bc253(0x246d)](_0x1fd73e['queryHistory'],_0x379337(_0x1bc253(0x1af7)))['$promise'];}function _0x24c072(){const _0x5dc7b8=_0x1a60e6;_0x1fd73e[_0x5dc7b8(0x27e1)][_0x5dc7b8(0x24f9)]=(_0x1fd73e['queryJscriptySession'][_0x5dc7b8(0xc72)]-0x1)*_0x1fd73e[_0x5dc7b8(0x27e1)][_0x5dc7b8(0x25bb)],_0x1fd73e['queryJscriptySession']['id']=_0x1fd73e[_0x5dc7b8(0x13f7)]['id'],_0x1fd73e[_0x5dc7b8(0x1713)]=_0x2663ed['cmContact'][_0x5dc7b8(0x27d8)](_0x1fd73e['queryJscriptySession'],_0x379337(_0x5dc7b8(0x1c2a)))[_0x5dc7b8(0x15e7)];}function _0x271a3f(_0x3df907){const _0x11acf4=_0x1a60e6;if(_0x1fd73e[_0x11acf4(0x13f7)][_0x11acf4(0x869)]){const _0x2fa5ed=_0x9b27be[_0x11acf4(0x856)]()[_0x11acf4(0x2021)](_0x11acf4(0x398)+_0x1fd73e[_0x11acf4(0x13f7)]['ListId'])['textContent'](_0x11acf4(0x472)+_0x1fd73e['contact'][_0x11acf4(0x2518)]||0x0||0x0)[_0x11acf4(0x2283)](_0x3df907)['ok']('Ok')[_0x11acf4(0x101a)](_0x11acf4(0x1dc6));return _0x9b27be[_0x11acf4(0xa60)](_0x2fa5ed)[_0x11acf4(0x64a)](_0x1fd73e['onSelectListSuccess'])[_0x11acf4(0x20cd)](function(){const _0x5cbb31=_0x11acf4;_0x1fd73e[_0x5cbb31(0x13f7)][_0x5cbb31(0x869)]=null;});}}function _0x29db17(){const _0x4427f1=_0x1a60e6;return _0x2663ed[_0x4427f1(0x19f8)][_0x4427f1(0x231f)]({'id':_0x1fd73e['contact']['ListId']})[_0x4427f1(0x15e7)][_0x4427f1(0x64a)](function(_0x435836){const _0x157c50=_0x4427f1;_0x1fd73e[_0x157c50(0x1559)]=_0x435836||{'rows':[],'count':0x0};})['catch'](function(_0x3ae8c9){const _0x4eeb42=_0x4427f1;console[_0x4eeb42(0x1bd0)](_0x3ae8c9);});}function _0x5ec745(){const _0x13ee17=_0x1a60e6;return _0x2663ed[_0x13ee17(0x16b2)][_0x13ee17(0x896)]({'userProfileId':_0x1fd73e['currentUser']['userProfileId'],'sectionId':0x12e})[_0x13ee17(0x15e7)]['then'](function(_0x578465){const _0x692801=_0x13ee17,_0x506aa4=_0x578465[_0x692801(0x28b8)]?_0x578465[_0x692801(0x28b8)][0x0]:null;return _0x1370bb['parseCrudPermissions'](_0x506aa4?_0x506aa4[_0x692801(0x402)]:null);})[_0x13ee17(0x20cd)](function(_0x5429c3){const _0x356fa6=_0x13ee17;_0x45781b[_0x356fa6(0x1bd0)]({'title':_0x5429c3[_0x356fa6(0x10b3)]?_0x356fa6(0x575)+_0x5429c3[_0x356fa6(0x10b3)]+_0x356fa6(0x21db)+_0x5429c3['statusText']:'API:GET_COMPANY_SECTION','msg':_0x5429c3['data']?JSON['stringify'](_0x5429c3[_0x356fa6(0x1c52)]):_0x5429c3[_0x356fa6(0x2915)]()});});}function _0x14c0cd(_0x35d9d5,_0x3f1922){const _0x59cde7=_0x1a60e6,_0x490490=_0x28c606()[_0x59cde7(0x27bc)](_0x1fd73e[_0x59cde7(0x244)][_0x59cde7(0x28b8)],{'id':_0x3f1922});_0x9b27be[_0x59cde7(0xa60)]({'controller':_0x59cde7(0x2173),'controllerAs':'vm','templateUrl':_0x13f6e7,'parent':angular[_0x59cde7(0x1f81)](_0x3e2638[_0x59cde7(0xb49)]),'targetEvent':_0x35d9d5,'clickOutsideToClose':!![],'locals':{'companies':[],'license':null,'setting':null,'crudPermissions':_0x490490['canSelect']===![]?{'readOnly':!![],'canEdit':![],'canDelete':![]}:_0x5ec745()},'resolve':{'company':[_0x59cde7(0x107c),function(_0x446bb9){const _0x3841b9=_0x59cde7;return _0x446bb9[_0x3841b9(0x1268)](_0x3841b9(0x2811),{'id':_0x3f1922});}]}});}function _0x187345(_0x517234){const _0x511e82=_0x1a60e6;_0x9b27be[_0x511e82(0xa60)]({'controller':_0x511e82(0x113d),'controllerAs':'vm','templateUrl':_0x4d4648,'parent':angular[_0x511e82(0x1f81)](_0x3e2638[_0x511e82(0xb49)]),'targetEvent':_0x517234,'clickOutsideToClose':!![],'resolve':{'lists':[_0x511e82(0x107c),_0x511e82(0xdcf),function(_0x1e9d6f,_0xd43f5b){const _0x1ef351=_0x511e82;return _0xd43f5b[_0x1ef351(0x4de)](_0x1ef351(0x333))?_0x1e9d6f[_0x1ef351(0x1268)](_0x1ef351(0x13d2),{'fields':_0x1ef351(0x1427)}):_0x1e9d6f[_0x1ef351(0x1268)]('userProfile@getResources',{'id':_0x1fd73e[_0x1ef351(0x1d3d)]['userProfileId'],'section':_0x1ef351(0x386),'fields':_0x1ef351(0x1427)});}]},'locals':{'contacts':_0x4b7488[_0x511e82(0x28b8)],'contact':_0x431ebf}});}function _0x426701(){const _0x4c6a02=_0x1a60e6;_0x2663ed[_0x4c6a02(0xdf5)]['update']({'id':_0x1fd73e[_0x4c6a02(0x13f7)]['id']},_0x1fd73e[_0x4c6a02(0x13f7)])[_0x4c6a02(0x15e7)][_0x4c6a02(0x64a)](function(){const _0xafa407=_0x4c6a02;_0x45781b[_0xafa407(0x1339)]({'title':_0xafa407(0xa54),'msg':_0x1fd73e[_0xafa407(0x13f7)]['name']?_0x1fd73e[_0xafa407(0x13f7)][_0xafa407(0x2494)]+_0xafa407(0x2032):''});})[_0x4c6a02(0x64a)](function(){const _0x51ad11=_0x4c6a02;return _0x2663ed[_0x51ad11(0xdf5)][_0x51ad11(0x1ac6)]({'id':_0x1fd73e['contact']['id'],'ids':_0x1fd73e[_0x51ad11(0x1178)]})[_0x51ad11(0x15e7)];})['catch'](function(_0x4824ad){const _0x5c6c23=_0x4c6a02;_0x45781b[_0x5c6c23(0x1bd0)]({'title':_0x4824ad[_0x5c6c23(0x10b3)]?_0x5c6c23(0x575)+_0x4824ad['status']+_0x5c6c23(0x21db)+_0x4824ad[_0x5c6c23(0x2115)]:_0x5c6c23(0x14b2),'msg':_0x4824ad['data']?JSON[_0x5c6c23(0x2317)](_0x4824ad['data']):_0x4824ad[_0x5c6c23(0x2915)]()});});}function _0x1e2dcc(_0x5b2846){return _0x5b2846===null?undefined:new Date(_0x5b2846);}function _0x3c8d53(){const _0x517320=_0x1a60e6;_0x29273e['go'](_0x517320(0x88d),{},{'reload':!![],'notify':!![]});}}const _0x1dea01=_0x2f9186;;_0x3c3e82[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x212a),'$interval','$q',_0x49a1e3(0x20d4),'lists','companies','toasty',_0x49a1e3(0xa19),_0x49a1e3(0x633),_0x49a1e3(0x1674),_0x49a1e3(0x10b4),_0x49a1e3(0xf26),'license'];function _0x3c3e82(_0x241c98,_0x251b1f,_0x5de2ed,_0x173320,_0x3ef513,_0x59c2cb,_0x30c320,_0xa7f10f,_0x35d0c2,_0x3fbfbc,_0x3575c0,_0x540392,_0xa3eb1c,_0xb9be49){const _0x55b148=_0x49a1e3,_0x1664ff=this;_0x1664ff[_0x55b148(0x492)]=![],_0x1664ff[_0x55b148(0x1d8e)]=!![],_0x1664ff[_0x55b148(0x1947)]=_0xb9be49,_0x1664ff[_0x55b148(0x27d1)]=0x0,_0x1664ff['result']={'finish':![],'rows':0x0,'affectedRows':0x0,'failedRows':0x0,'duplicatedRows':0x0,'errors':[]},_0x1664ff[_0x55b148(0x127a)]=[{'key':_0x55b148(0x2518),'required':!![]},{'key':_0x55b148(0x21c4),'required':![]},{'key':_0x55b148(0x267a),'required':!![]},{'key':_0x55b148(0x26ed),'required':![]},{'key':_0x55b148(0xd47),'required':![]},{'key':'dateOfBirth','required':![]},{'key':'country','required':![]},{'key':_0x55b148(0x1116),'required':![]},{'key':_0x55b148(0xc95),'required':![]},{'key':_0x55b148(0x838),'required':![]},{'key':'fax','required':![]}],_0x1664ff[_0x55b148(0x2700)]=[{'key':'UserId','required':![]},{'key':_0x55b148(0x28f0),'required':![]},{'key':'priority','required':![]}],_0x1664ff['binding']={},_0x1664ff['duplicate']=[],_0x1664ff[_0x55b148(0x974)]=_0x59c2cb||{'rows':[],'count':0x0},_0x1664ff[_0x55b148(0x244)]=_0x30c320||{'rows':[],'count':0x0},_0x1664ff[_0x55b148(0x1559)]={'rows':[],'count':0x0},_0x1664ff['fields']=_0xa3eb1c||[],_0x1664ff[_0x55b148(0x16cb)]=_0x1826a6,_0x1664ff[_0x55b148(0x6a3)]=_0x591aa0,_0x1664ff[_0x55b148(0x20e1)]=_0x45af66,_0x1664ff[_0x55b148(0x3a3)]=_0x3ccc99,_0x1664ff['getArrayErrors']=_0x1b7d1a,_0x1664ff['stopUpload']=_0x110dd2;const _0x2298cd=_0x2ac33a()()[_0x55b148(0x272e)]();_0x3fbfbc['on'](_0x55b148(0x1fe0)+_0x2298cd,_0x39faf5);function _0x591aa0(){const _0x27af7e=_0x55b148;return _0x35d0c2['cmList'][_0x27af7e(0x231f)]({'id':_0x1664ff[_0x27af7e(0x869)]})['$promise']['then'](function(_0x320899){const _0x8452c0=_0x27af7e;_0x1664ff[_0x8452c0(0x1559)]=_0x320899;})[_0x27af7e(0x20cd)](function(_0xc573f3){const _0x17fb39=_0x27af7e;console[_0x17fb39(0x1bd0)](_0xc573f3);});}function _0x45af66(){const _0x9a7f79=_0x55b148;_0x1664ff['processing']=_0x2ac33a()(),_0x35d0c2[_0x9a7f79(0xdf5)]['import']({'id':_0x540392[_0x9a7f79(0x25f5)],'binding':_0x1664ff[_0x9a7f79(0x1e9b)],'ListId':_0x1664ff['ListId'],'CompanyId':_0x1664ff[_0x9a7f79(0xfb1)],'duplicates':_0x1664ff[_0x9a7f79(0x1a53)],'socket_timestamp':_0x2298cd})[_0x9a7f79(0x15e7)][_0x9a7f79(0x64a)](function(_0x10c584){const _0x219411=_0x9a7f79;_0x1664ff[_0x219411(0x1d8e)]=![],_0x10c584&&_0x10c584[_0x219411(0x27d1)]&&(_0x1664ff[_0x219411(0x27d1)]=_0x10c584[_0x219411(0x27d1)]);})[_0x9a7f79(0x20cd)](function(){const _0x1fe585=_0x9a7f79;_0x1664ff[_0x1fe585(0x492)]=![],_0xa7f10f['error']({'title':_0x1fe585(0x2674),'msg':_0x1fe585(0x8ed)});});}function _0x39faf5(_0x16fb85){_0x3ef513(function(){const _0xf5dea1=a0_0x4127;_0x1664ff['result'][_0xf5dea1(0x28b8)]=_0x16fb85[_0xf5dea1(0x28b8)];if(_0x16fb85[_0xf5dea1(0xbae)])for(let _0x3641a8=0x0;_0x3641a8<_0x16fb85['errors'][_0xf5dea1(0x1b9e)];_0x3641a8++){_0x1664ff[_0xf5dea1(0x5e3)][_0xf5dea1(0xbae)]['push'](_0x16fb85[_0xf5dea1(0xbae)][_0x3641a8]);}if(_0x16fb85[_0xf5dea1(0x98a)]){_0x1664ff[_0xf5dea1(0x5e3)][_0xf5dea1(0x98a)]=!![],_0x1664ff['result'][_0xf5dea1(0x44c)]=_0x16fb85[_0xf5dea1(0x44c)],_0x1664ff[_0xf5dea1(0x5e3)][_0xf5dea1(0x3a1)]=_0x1664ff[_0xf5dea1(0x5e3)][_0xf5dea1(0xbae)][_0xf5dea1(0x1b9e)];const _0x33a871=_0x1664ff[_0xf5dea1(0x5e3)][_0xf5dea1(0x28b8)]-_0x1664ff[_0xf5dea1(0x5e3)]['affectedRows']-_0x1664ff[_0xf5dea1(0x5e3)]['errors'][_0xf5dea1(0x1b9e)];_0x33a871&&_0x33a871>0x0&&(_0x1664ff[_0xf5dea1(0x1a53)]['length']?_0x1664ff['result'][_0xf5dea1(0xdde)]=_0x33a871:_0x1664ff[_0xf5dea1(0x5e3)][_0xf5dea1(0x3a1)]+=_0x33a871),_0x1664ff[_0xf5dea1(0x5e3)]['elapsed']=_0x2ac33a()()[_0xf5dea1(0x2a5)](_0x1664ff['processing'],'seconds');}});}function _0x3ccc99(){const _0x2c5375=_0x55b148,_0x4c02b2=_0xa3eb1c;return _0x4c02b2[_0x2c5375(0x1954)]('contact_import_error'),_0x4c02b2;}function _0x1b7d1a(){const _0x252893=_0x55b148,_0x3bccc9=[];for(let _0x57f959=0x0;_0x57f959<_0x1664ff[_0x252893(0x5e3)][_0x252893(0xbae)][_0x252893(0x1b9e)];_0x57f959+=0x1){const _0x1c1e0f=_0x1664ff['result'][_0x252893(0xbae)][_0x57f959][_0x252893(0x24ae)];_0x1c1e0f[_0x252893(0x1938)]=_0x1664ff[_0x252893(0x5e3)][_0x252893(0xbae)][_0x57f959]['message'],_0x3bccc9[_0x252893(0x1954)](_0x1c1e0f);}return _0x3bccc9;}function _0x110dd2(){const _0x5289fc=_0x55b148;_0x1664ff[_0x5289fc(0x1d8e)]=!![];if(_0x1664ff['pid'])return _0x35d0c2[_0x5289fc(0x1f06)]['killProcess']({'pid':_0x1664ff['pid']})[_0x5289fc(0x15e7)][_0x5289fc(0x64a)](function(){const _0x4c691a=_0x5289fc;_0xa7f10f[_0x4c691a(0x1339)]({'title':_0x4c691a(0x6e8),'msg':_0x4c691a(0x922)});})[_0x5289fc(0x20cd)](function(){const _0x44b161=_0x5289fc;_0xa7f10f[_0x44b161(0x1bd0)]({'title':_0x44b161(0x51c),'msg':_0x44b161(0x292a)});});}_0x3575c0['$on'](_0x55b148(0xf28),function(){const _0x40ce65=_0x55b148;_0x3fbfbc[_0x40ce65(0x1951)]('contact:import:'+_0x2298cd);});function _0x1826a6(){const _0xdd9f57=_0x55b148;_0x3fbfbc['removeAllListeners'](_0xdd9f57(0x1fe0)+_0x2298cd),_0x251b1f[_0xdd9f57(0x268e)]();}}const _0x11f4cc=_0x3c3e82;;_0x530832[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x1674),_0x49a1e3(0x680),_0x49a1e3(0x13f7),_0x49a1e3(0x197e),_0x49a1e3(0x974),'api'];function _0x530832(_0x5b1802,_0x52cac2,_0x3918c6,_0x22b739,_0x1c11b3,_0x1f8aa5,_0x5543f1){const _0x57391d=_0x49a1e3,_0x1a813c=this;_0x1a813c['errors']=[],_0x1a813c[_0x57391d(0x2021)]='CONTACTMANAGER.MERGE_CONTACT',_0x1a813c[_0x57391d(0x13f7)]=angular[_0x57391d(0x289e)](_0x22b739),_0x1a813c[_0x57391d(0x974)]=_0x1f8aa5||[],_0x1a813c['change']=function(){const _0x1156ce=_0x57391d;_0x1a813c[_0x1156ce(0xf00)]?_0x5543f1[_0x1156ce(0xdf5)][_0x1156ce(0x896)]({'fields':'id,firstName,lastName,phone,email','filter':_0x1a813c[_0x1156ce(0xf00)],'ListId':_0x22b739[_0x1156ce(0x869)]})[_0x1156ce(0x15e7)][_0x1156ce(0x64a)](function(_0x24703c){const _0xe782b7=_0x1156ce;_0x1a813c[_0xe782b7(0x197e)]=_0x24703c[_0xe782b7(0x28b8)];})[_0x1156ce(0x20cd)](function(_0x2cfd2d){const _0x1a1380=_0x1156ce;console[_0x1a1380(0x1bd0)](_0x2cfd2d);}):_0x1a813c['contacts']=[];},_0x1a813c[_0x57391d(0x156c)]=_0x197f07,_0x1a813c[_0x57391d(0x16cb)]=_0x8dc709;function _0x197f07(_0x34a22d,_0x4e1797,_0x116af7){const _0x1a23c5=_0x57391d,_0x4732fc=_0x5b1802['confirm']({'skipHide':!![]})[_0x1a23c5(0x2021)]('Would\x20you\x20like\x20to\x20merge\x20your\x20contacs?')[_0x1a23c5(0x250d)]('All\x20unfilled\x20values\x20of\x20the\x20contact\x20#'+_0x116af7['id']+'\x20will\x20be\x20overwritten\x20by\x20the\x20fields\x20of\x20the\x20contact\x20#'+_0x4e1797['id']+'.')[_0x1a23c5(0x2283)](_0x34a22d)['ok']('Ok')[_0x1a23c5(0x101a)](_0x1a23c5(0x1dc6));_0x5b1802[_0x1a23c5(0xa60)](_0x4732fc)[_0x1a23c5(0x64a)](function(){const _0x43c790=_0x1a23c5;return _0x5543f1[_0x43c790(0xdf5)]['merge']({'to':_0x116af7['id'],'from':_0x4e1797['id']})[_0x43c790(0x15e7)];})[_0x1a23c5(0x64a)](function(_0x471672){const _0x527835=_0x1a23c5;_0x5b1802[_0x527835(0x268e)]({'new':_0x471672,'to':_0x116af7,'from':_0x4e1797}),_0x28c606()['remove'](_0x1c11b3,{'id':_0x116af7['id']}),_0x28c606()[_0x527835(0x21c7)](_0x1c11b3,{'id':_0x4e1797['id']}),_0x1c11b3[_0x527835(0x1891)](_0x471672);})[_0x1a23c5(0x64a)](function(){const _0x521d89=_0x1a23c5;_0x3918c6[_0x521d89(0x1339)]({'title':'Contact\x20properly\x20merged!'});})[_0x1a23c5(0x20cd)](function(_0x542971){const _0x588ea0=_0x1a23c5;_0x542971&&_0x542971[_0x588ea0(0x10b3)]&&_0x3918c6[_0x588ea0(0x1bd0)]({'title':_0x542971[_0x588ea0(0x10b3)]?_0x588ea0(0x575)+_0x542971[_0x588ea0(0x10b3)]+_0x588ea0(0x21db)+_0x542971['statusText']:_0x588ea0(0x1969),'msg':_0x542971['data']?JSON[_0x588ea0(0x2317)](_0x542971[_0x588ea0(0x1c52)]):_0x542971[_0x588ea0(0x2915)]()});});}function _0x8dc709(){_0x5b1802['hide']();}}const _0x1a892b=_0x530832;;const _0x82914a=_0x2e4a48['p']+_0x49a1e3(0x231b);;const _0xd44d58=_0x2e4a48['p']+_0x49a1e3(0x1c1e);;_0x15e5e0[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad)];function _0x15e5e0(_0xa86f00){const _0x537919=_0x49a1e3;_0xa86f00[_0x537919(0x14f2)](_0x537919(0x88d),{'url':'/contacts?ListId&CompanyId','views':{'content@app':{'templateUrl':_0x82914a,'controller':'ContactsController\x20as\x20vm'}},'resolve':{'contacts':[_0x537919(0x107c),_0x537919(0xdcf),_0x537919(0x1fbb),function(_0xc5eb3,_0x270355,_0x18aa71){const _0x5034c1=_0x537919;return _0x270355[_0x5034c1(0x4de)](_0x5034c1(0x333))?_0xc5eb3[_0x5034c1(0x1268)](_0x5034c1(0x1188),_0x28c606()['merge']({'includeAll':!![],'sort':_0x5034c1(0x260c),'limit':0xa,'offset':0x0},_0x18aa71)):_0xc5eb3[_0x5034c1(0x1268)](_0x5034c1(0x1758),_0x28c606()[_0x5034c1(0x14fe)]({'id':_0x270355[_0x5034c1(0x808)]()[_0x5034c1(0x21ac)],'section':_0x5034c1(0x1162),'includeAll':!![],'sort':_0x5034c1(0x260c),'limit':0xa,'offset':0x0},_0x18aa71));}],'lists':[_0x537919(0x107c),'Auth',function(_0x1008b8,_0x569b25){const _0x232448=_0x537919;return _0x569b25['hasRole']('admin')?_0x1008b8[_0x232448(0x1268)](_0x232448(0x13d2),{'fields':_0x232448(0x1427),'sort':_0x232448(0x2494),'nolimit':!![]}):_0x1008b8['resolve'](_0x232448(0x1758),{'id':_0x569b25[_0x232448(0x808)]()[_0x232448(0x21ac)],'section':'Lists','fields':_0x232448(0x1427),'sort':_0x232448(0x260c),'nolimit':!![]});}],'listsMap':[_0x537919(0x974),function(_0x52f015){const _0xea5c87=_0x537919,_0x5141c2={};for(let _0x281635=0x0;_0x281635<_0x52f015[_0xea5c87(0x28b8)][_0xea5c87(0x1b9e)];_0x281635++){_0x5141c2[_0x52f015[_0xea5c87(0x28b8)][_0x281635]['id']]=_0x52f015[_0xea5c87(0x28b8)][_0x281635]['name'];}return _0x5141c2;}],'companies':[_0x537919(0x107c),_0x537919(0xdcf),function(_0x5edb26,_0x13b84d){const _0x52d90c=_0x537919;return _0x13b84d[_0x52d90c(0x4de)](_0x52d90c(0x333))?_0x5edb26['resolve']('cmCompany@get',{'fields':'id,name','sort':_0x52d90c(0x2494),'nolimit':!![]}):_0x5edb26[_0x52d90c(0x1268)](_0x52d90c(0x1758),{'id':_0x13b84d[_0x52d90c(0x808)]()['userProfileId'],'section':_0x52d90c(0x227d),'fields':'id,name','sort':_0x52d90c(0x2494),'nolimit':!![]});}],'companiesMap':[_0x537919(0x244),function(_0xe73eaa){const _0x3f22f1=_0x537919,_0x4fb450={};for(let _0x2ee3c9=0x0;_0x2ee3c9<_0xe73eaa[_0x3f22f1(0x28b8)][_0x3f22f1(0x1b9e)];_0x2ee3c9++){_0x4fb450[_0xe73eaa[_0x3f22f1(0x28b8)][_0x2ee3c9]['id']]=_0xe73eaa[_0x3f22f1(0x28b8)][_0x2ee3c9][_0x3f22f1(0x2494)];}return _0x4fb450;}],'tags':['apiResolver',_0x537919(0xdcf),function(_0x5d354f,_0x2744fd){const _0x45b388=_0x537919;return _0x2744fd[_0x45b388(0x4de)]('admin')?_0x5d354f['resolve'](_0x45b388(0x1b39),{'fields':_0x45b388(0x1427),'sort':_0x45b388(0x2494),'nolimit':!![]}):_0x5d354f[_0x45b388(0x1268)](_0x45b388(0x1758),{'id':_0x2744fd[_0x45b388(0x808)]()[_0x45b388(0x21ac)],'section':_0x45b388(0x1178),'fields':'id,name','sort':_0x45b388(0x2494),'nolimit':!![]});}],'userProfile':['apiResolver',_0x537919(0xdcf),function(_0x537f39,_0xa1de78){const _0x3d3080=_0x537919;return _0x537f39[_0x3d3080(0x1268)](_0x3d3080(0x6e3),{'fields':'id,name,crudPermissions','id':_0xa1de78[_0x3d3080(0x808)]()[_0x3d3080(0x21ac)]});}],'userProfileSection':[_0x537919(0x107c),_0x537919(0xdcf),function(_0x4531cd,_0x24c634){const _0x1ab615=_0x537919;return _0x4531cd[_0x1ab615(0x1268)]('userProfileSection@get',{'fields':_0x1ab615(0x527),'userProfileId':_0x24c634[_0x1ab615(0x808)]()[_0x1ab615(0x21ac)],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':'contactmanager'})[_0x537919(0x14f2)](_0x537919(0x15cf),{'url':'/:id?tab','params':{'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xd44d58,'controller':_0x537919(0x9fa)}},'resolve':{'contact':['apiResolver',_0x537919(0x1fbb),function(_0x3687f4,_0x5e3381){const _0x131893=_0x537919;return _0x3687f4[_0x131893(0x1268)](_0x131893(0x1188),{'id':_0x5e3381['id']})['then'](function(_0x2c0412){const _0x389cf9=_0x131893;return _0x2c0412[_0x389cf9(0x20f1)]&&(_0x2c0412[_0x389cf9(0x20f1)]=new Date(_0x2c0412['dateOfBirth'])),_0x2c0412;})[_0x131893(0x20cd)](function(_0x4e20c2){const _0xffc876=_0x131893;console[_0xffc876(0x1bd0)](_0x4e20c2);});}],'hoppers':[_0x537919(0x107c),_0x537919(0x1fbb),function(_0x38cb45,_0x38047b){const _0x2b5520=_0x537919;return _0x38cb45['resolve'](_0x2b5520(0x1901),{'id':_0x38047b['id'],'fields':_0x2b5520(0xa88),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'finals':['apiResolver','$stateParams',function(_0x3625bc,_0x2208fa){const _0x55b3fb=_0x537919;return _0x3625bc['resolve'](_0x55b3fb(0x189d),{'id':_0x2208fa['id'],'fields':_0x55b3fb(0xa9e),'sort':_0x55b3fb(0x260c),'limit':0xa,'offset':0x0});}],'histories':['apiResolver',_0x537919(0x1fbb),function(_0x4b4d94,_0x395348){const _0x574bea=_0x537919;return _0x4b4d94[_0x574bea(0x1268)](_0x574bea(0xf53),{'id':_0x395348['id'],'fields':'id,uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','sort':_0x574bea(0x260c),'limit':0xa,'offset':0x0});}],'jscriptySessions':[_0x537919(0x107c),_0x537919(0x1fbb),function(_0x53b73e,_0x13e1fd){const _0x40e838=_0x537919;return _0x53b73e['resolve'](_0x40e838(0x1844),{'id':_0x13e1fd['id'],'fields':'id,starttime,endtime,membername,projectname','sort':_0x40e838(0x2562),'limit':0xa,'offset':0x0});}],'companies':['apiResolver','Auth',function(_0x2b2283,_0x55507e){const _0x38fc65=_0x537919;return _0x55507e[_0x38fc65(0x4de)]('admin')?_0x2b2283['resolve'](_0x38fc65(0x2811)):_0x2b2283['resolve'](_0x38fc65(0x1758),{'id':_0x55507e[_0x38fc65(0x808)]()['userProfileId'],'section':_0x38fc65(0x227d)});}],'lists':['apiResolver','Auth',function(_0x43659e,_0x33068e){const _0x3ff388=_0x537919;return _0x33068e[_0x3ff388(0x4de)]('admin')?_0x43659e[_0x3ff388(0x1268)](_0x3ff388(0x13d2),{'fields':'id,name','sort':'-updatedAt','nolimit':!![]}):_0x43659e[_0x3ff388(0x1268)]('userProfile@getResources',{'id':_0x33068e[_0x3ff388(0x808)]()[_0x3ff388(0x21ac)],'section':_0x3ff388(0x386),'fields':_0x3ff388(0x1427),'sort':_0x3ff388(0x260c),'nolimit':!![]});}],'customFields':[_0x537919(0x107c),'contact',function(_0x2e777f,_0x7a8d89){const _0x4d7e60=_0x537919;return _0x7a8d89[_0x4d7e60(0x869)]?_0x2e777f[_0x4d7e60(0x1268)]('cmList@getCustomFields',{'id':_0x7a8d89['ListId']}):null;}],'tags':[_0x537919(0x107c),_0x537919(0xdcf),function(_0x3f0035,_0x3f6152){const _0x516fa5=_0x537919;return _0x3f6152[_0x516fa5(0x4de)](_0x516fa5(0x333))?_0x3f0035[_0x516fa5(0x1268)](_0x516fa5(0x1b39)):_0x3f0035['resolve'](_0x516fa5(0x1758),{'id':_0x3f6152[_0x516fa5(0x808)]()[_0x516fa5(0x21ac)],'section':_0x516fa5(0x1178)});}],'userProfileSection':[_0x537919(0x107c),_0x537919(0xdcf),function(_0x3db3a3,_0x3d81a2){const _0x4df667=_0x537919;return _0x3db3a3[_0x4df667(0x1268)](_0x4df667(0x2681),{'fields':_0x4df667(0x527),'userProfileId':_0x3d81a2[_0x4df667(0x808)]()['userProfileId'],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':_0x537919(0xeaa)});}angular[_0x49a1e3(0x20d2)]('app.contactmanager.contacts',[])[_0x49a1e3(0x3d3)](_0x15e5e0)[_0x49a1e3(0x38e)](_0x49a1e3(0x1a09),_0x1c0c93)[_0x49a1e3(0x38e)]('CreateOrEditContactDialogController',_0x476cb9)[_0x49a1e3(0x38e)](_0x49a1e3(0x113d),_0x5324e7)[_0x49a1e3(0x38e)](_0x49a1e3(0x1068),_0x48297b)[_0x49a1e3(0x38e)]('ContactController',_0x1dea01)[_0x49a1e3(0x38e)](_0x49a1e3(0x1d81),_0x11f4cc)[_0x49a1e3(0x38e)](_0x49a1e3(0xc0a),_0x1a892b);;const _0x3d1380=_0x2e4a48['p']+_0x49a1e3(0xe6d);;_0x5b5a25[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$window',_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x244),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),'license','setting'];function _0x5b5a25(_0x4b3597,_0x5ddf30,_0x247c1a,_0x59a738,_0x3655c3,_0x34f0e9,_0x421159,_0x5980e3,_0x32d70e,_0x369f2c,_0x455b2a,_0xcd5313,_0x5d8620,_0x11e696,_0xb034a6,_0x12862d,_0x325a78){const _0x4768a8=_0x49a1e3,_0xf457cb=this;_0xf457cb[_0x4768a8(0x1947)]=_0x12862d,_0xf457cb['setting']=_0x325a78,_0xf457cb[_0x4768a8(0x1d3d)]=_0xb034a6[_0x4768a8(0x808)](),_0xf457cb['companies']=_0x32d70e||{'count':0x0,'rows':[]},_0xf457cb[_0x4768a8(0x16a8)]=_0x369f2c,_0xf457cb['userProfileSection']=_0x455b2a&&_0x455b2a[_0x4768a8(0xb90)]==0x1?_0x455b2a['rows'][0x0]:null,_0xf457cb['crudPermissions']=_0xb034a6['parseCrudPermissions'](_0xf457cb[_0x4768a8(0x16b2)]?_0xf457cb[_0x4768a8(0x16b2)][_0x4768a8(0x402)]:null),_0xf457cb[_0x4768a8(0x185d)]='companies',_0xf457cb['listOrder']='',_0xf457cb[_0x4768a8(0x2748)]=null,_0xf457cb['selectedCompanies']=[],_0xf457cb[_0x4768a8(0x289a)]={'fields':_0x4768a8(0x162d),'sort':_0x4768a8(0x260c),'limit':0xa,'page':0x1},_0xf457cb[_0x4768a8(0xff6)]=_0x305b3e,_0xf457cb['gotocontactsgoto']=_0x39ecc4,_0xf457cb[_0x4768a8(0x1262)]=_0xb51e19,_0xf457cb['success']=_0x14a649,_0xf457cb[_0x4768a8(0x46c)]=_0x332ea3,_0xf457cb[_0x4768a8(0x24e9)]=_0x118568,_0xf457cb[_0x4768a8(0x102f)]=_0x25ce39,_0xf457cb[_0x4768a8(0x232d)]=_0x3c6d51,_0xf457cb[_0x4768a8(0x120c)]=_0x357f7f,_0xf457cb[_0x4768a8(0x10e8)]=_0x1294b5,_0xf457cb[_0x4768a8(0xa87)]=_0x1658e4;function _0x305b3e(_0xecf62f){_0x247c1a['go']('app.contactmanager.companies.edit',{'id':_0xecf62f['id'],'company':_0xecf62f,'crudPermissions':_0xf457cb['crudPermissions']});}function _0x39ecc4(_0x2a0a8b){const _0x8d5d0d=_0x4768a8;if(_0xb034a6['hasRole'](_0x8d5d0d(0x333)))_0x247c1a['go'](_0x8d5d0d(0x88d),{'CompanyId':_0x2a0a8b['id']});else return _0xcd5313[_0x8d5d0d(0x16b2)][_0x8d5d0d(0x896)]({'userProfileId':_0xb034a6['getCurrentUser']()[_0x8d5d0d(0x21ac)],'sectionId':0x12f})[_0x8d5d0d(0x15e7)][_0x8d5d0d(0x64a)](function(_0x3adeee){const _0xabb6e3=_0x8d5d0d,_0x4659e2=_0x3adeee&&_0x3adeee[_0xabb6e3(0x28b8)]?_0x3adeee['rows'][0x0]:null;_0x4659e2&&_0x4659e2['enabled']?_0x247c1a['go'](_0xabb6e3(0x88d),{'CompanyId':_0x2a0a8b['id']}):_0x11e696[_0xabb6e3(0x772)]({'title':_0x5980e3[_0xabb6e3(0x2292)](_0xabb6e3(0x111a)),'msg':_0x5980e3[_0xabb6e3(0x2292)](_0xabb6e3(0x229))});})['catch'](function(_0x2c2f7a){const _0x15defa=_0x8d5d0d;_0x11e696[_0x15defa(0x1bd0)]({'title':_0x2c2f7a[_0x15defa(0x10b3)]?'API:'+_0x2c2f7a[_0x15defa(0x10b3)]+_0x15defa(0x21db)+_0x2c2f7a[_0x15defa(0x2115)]:'USERPROFILE:GET_SECTION','msg':_0x2c2f7a[_0x15defa(0x10b3)]?JSON['stringify'](_0x2c2f7a[_0x15defa(0x1c52)]):_0x2c2f7a[_0x15defa(0x2915)]()});});}function _0xb51e19(_0xf47f80,_0x5f5d1f){const _0x38e4c7=_0x4768a8,_0x26f169=_0x3655c3[_0x38e4c7(0x856)]()[_0x38e4c7(0x2021)](_0x38e4c7(0x1231)+_0x28c606()[_0x38e4c7(0xc01)](_0x38e4c7(0x1c26))+'?')[_0x38e4c7(0x33a)](_0x38e4c7(0x50b)+(_0xf47f80[_0x38e4c7(0x2494)]||'company')+''+_0x38e4c7(0x4b8))[_0x38e4c7(0x213e)](_0x38e4c7(0x381))[_0x38e4c7(0x2283)](_0x5f5d1f)['ok']('OK')[_0x38e4c7(0x101a)](_0x38e4c7(0x18fd));_0x3655c3[_0x38e4c7(0xa60)](_0x26f169)['then'](function(){_0x25ce39(_0xf47f80);},function(){const _0x5acf58=_0x38e4c7;console[_0x5acf58(0x9b4)](_0x5acf58(0x18fd));});}let _0x3aac08=!![],_0x18d5a3=0x1;_0x4b3597['$watch'](_0x4768a8(0x1cb9),function(_0x5a0c9d,_0x99842e){const _0x3fd209=_0x4768a8;_0x3aac08?_0x421159(function(){_0x3aac08=![];}):(!_0x99842e&&(_0x18d5a3=_0xf457cb[_0x3fd209(0x289a)]['page']),_0x5a0c9d!==_0x99842e&&(_0xf457cb[_0x3fd209(0x289a)]['page']=0x1),!_0x5a0c9d&&(_0xf457cb[_0x3fd209(0x289a)]['page']=_0x18d5a3),_0xf457cb[_0x3fd209(0x46c)]());});function _0x14a649(_0x663f87){const _0x4964a4=_0x4768a8;_0xf457cb[_0x4964a4(0x244)]=_0x663f87||{'count':0x0,'rows':[]};}function _0x332ea3(){const _0x148cfc=_0x4768a8;_0xf457cb[_0x148cfc(0x289a)][_0x148cfc(0x24f9)]=(_0xf457cb[_0x148cfc(0x289a)]['page']-0x1)*_0xf457cb['query'][_0x148cfc(0x25bb)],_0xb034a6['hasRole'](_0x148cfc(0x333))?_0xf457cb[_0x148cfc(0x1713)]=_0xcd5313[_0x148cfc(0x2625)][_0x148cfc(0x896)](_0xf457cb['query'],_0x14a649)['$promise']:(_0xf457cb[_0x148cfc(0x289a)]['id']=_0xf457cb[_0x148cfc(0x16a8)]['id'],_0xf457cb[_0x148cfc(0x289a)]['section']=_0x148cfc(0x227d),_0xf457cb['promise']=_0xcd5313[_0x148cfc(0x16a8)][_0x148cfc(0x2565)](_0xf457cb[_0x148cfc(0x289a)],_0x14a649)[_0x148cfc(0x15e7)]);}function _0x118568(_0x46970e,_0x164715){const _0x36eb38=_0x4768a8;_0x3655c3['show']({'controller':_0x36eb38(0x2173),'controllerAs':'vm','templateUrl':_0x3d1380,'parent':angular['element'](_0x34f0e9[_0x36eb38(0xb49)]),'targetEvent':_0x46970e,'clickOutsideToClose':!![],'locals':{'company':_0x164715,'companies':_0xf457cb[_0x36eb38(0x244)][_0x36eb38(0x28b8)],'license':_0xf457cb['license'],'setting':_0xf457cb[_0x36eb38(0x28d6)],'crudPermissions':_0xf457cb[_0x36eb38(0x402)]}});}function _0x25ce39(_0x1033db){const _0x3b450e=_0x4768a8;_0xcd5313[_0x3b450e(0x2625)][_0x3b450e(0xabd)]({'id':_0x1033db['id']})[_0x3b450e(0x15e7)]['then'](function(){const _0x2fd12d=_0x3b450e;_0x28c606()[_0x2fd12d(0x21c7)](_0xf457cb['companies'][_0x2fd12d(0x28b8)],{'id':_0x1033db['id']}),_0xf457cb[_0x2fd12d(0x244)][_0x2fd12d(0xb90)]-=0x1,!_0xf457cb[_0x2fd12d(0x244)][_0x2fd12d(0x28b8)]['length']&&_0xf457cb['getCompanies'](),_0x11e696['success']({'title':_0x28c606()['startCase'](_0x2fd12d(0x1f11))+'\x20deleted!','msg':_0x1033db[_0x2fd12d(0x2494)]?_0x1033db[_0x2fd12d(0x2494)]+_0x2fd12d(0x1fa8):''});})[_0x3b450e(0x20cd)](function(_0x4e614e){const _0x41c706=_0x3b450e;if(_0x4e614e[_0x41c706(0x1c52)]&&_0x4e614e['data'][_0x41c706(0xbae)]&&_0x4e614e[_0x41c706(0x1c52)][_0x41c706(0xbae)][_0x41c706(0x1b9e)]){_0xf457cb[_0x41c706(0xbae)]=_0x4e614e[_0x41c706(0x1c52)][_0x41c706(0xbae)]||[{'message':_0x4e614e['toString'](),'type':_0x41c706(0x1cf7)}];for(let _0x12bb97=0x0;_0x12bb97<_0x4e614e[_0x41c706(0x1c52)][_0x41c706(0xbae)]['length'];_0x12bb97++){_0x11e696[_0x41c706(0x1bd0)]({'title':_0x4e614e[_0x41c706(0x1c52)][_0x41c706(0xbae)][_0x12bb97][_0x41c706(0x2185)],'msg':_0x4e614e[_0x41c706(0x1c52)][_0x41c706(0xbae)][_0x12bb97][_0x41c706(0x18ca)]});}}else _0x11e696['error']({'title':_0x4e614e[_0x41c706(0x10b3)]?_0x41c706(0x575)+_0x4e614e[_0x41c706(0x10b3)]+_0x41c706(0x21db)+_0x4e614e[_0x41c706(0x2115)]:_0x41c706(0x1cf7),'msg':_0x4e614e[_0x41c706(0x1c52)]?JSON[_0x41c706(0x2317)](_0x4e614e[_0x41c706(0x1c52)][_0x41c706(0x18ca)]):_0x4e614e[_0x41c706(0x18ca)]||_0x4e614e[_0x41c706(0x2915)]()});});}function _0x3c6d51(){const _0x5dcd4d=_0x4768a8,_0xd360a3=angular[_0x5dcd4d(0x289e)](_0xf457cb[_0x5dcd4d(0xbd9)]);return _0xf457cb['selectedCompanies']=[],_0xd360a3;}function _0x357f7f(_0x44acc3){const _0x2cde21=_0x4768a8,_0x1ac213=_0x3655c3['confirm']()['title'](_0x2cde21(0x1c64))[_0x2cde21(0x33a)](_0x2cde21(0x50b)+_0xf457cb[_0x2cde21(0xbd9)]['length']+_0x2cde21(0x163e)+_0x2cde21(0x4b8))[_0x2cde21(0x213e)]('delete\x20Companys')[_0x2cde21(0x2283)](_0x44acc3)['ok']('OK')[_0x2cde21(0x101a)](_0x2cde21(0x18fd));_0x3655c3[_0x2cde21(0xa60)](_0x1ac213)[_0x2cde21(0x64a)](function(){const _0x5f3aea=_0x2cde21;_0xf457cb[_0x5f3aea(0xbd9)][_0x5f3aea(0x1397)](function(_0x2f1ed8){_0x25ce39(_0x2f1ed8);}),_0xf457cb[_0x5f3aea(0xbd9)]=[];});}function _0x1294b5(){const _0x347ccb=_0x4768a8;_0xf457cb[_0x347ccb(0xbd9)]=[];}function _0x1658e4(){const _0xb0f4d6=_0x4768a8;_0xf457cb[_0xb0f4d6(0xbd9)]=_0xf457cb[_0xb0f4d6(0x244)]['rows'];}}const _0x1a2867=_0x5b5a25;;_0x139d1c[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x244),_0x49a1e3(0x1c26),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x139d1c(_0x2998b0,_0x5ae626,_0x4ed6a8,_0x21daac,_0x4bbf59,_0x2d906c,_0x5e390d,_0x381f62,_0x2eeeb3,_0x2eec23,_0x46442e,_0x4b8a9f,_0x579f48,_0x4e8b37){const _0x5bbab4=_0x49a1e3,_0x9bc531=this;_0x9bc531[_0x5bbab4(0x1d3d)]=_0x46442e['getCurrentUser'](),_0x9bc531[_0x5bbab4(0xbae)]=[],_0x9bc531[_0x5bbab4(0x28d6)]=_0x579f48,_0x9bc531['license']=_0x4b8a9f,_0x9bc531['crudPermissions']=_0x4e8b37,_0x9bc531[_0x5bbab4(0x6c2)]={},_0x9bc531['passwordPattern']=_0x9bc531[_0x5bbab4(0x28d6)]&&_0x9bc531[_0x5bbab4(0x28d6)][_0x5bbab4(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x9bc531['title']=_0x5bbab4(0x668),_0x9bc531[_0x5bbab4(0x1c26)]=angular['copy'](_0x2eeeb3),_0x9bc531[_0x5bbab4(0x244)]=_0x381f62,_0x9bc531[_0x5bbab4(0x2394)]=![];!_0x9bc531[_0x5bbab4(0x1c26)]&&(_0x9bc531[_0x5bbab4(0x1c26)]={},_0x9bc531['title']=_0x5bbab4(0x4d9),_0x9bc531[_0x5bbab4(0x2394)]=!![]);_0x9bc531[_0x5bbab4(0xfa4)]=_0x379d5e,_0x9bc531[_0x5bbab4(0x269a)]=_0x13aabd,_0x9bc531['deleteCompany']=_0x415ca0,_0x9bc531[_0x5bbab4(0x1605)]=_0x179e0f,_0x9bc531['closeDialog']=_0x2673a1;function _0x379d5e(){const _0x3f560b=_0x5bbab4;_0x9bc531[_0x3f560b(0xbae)]=[],_0x2eec23[_0x3f560b(0x2625)][_0x3f560b(0x2479)](_0x9bc531[_0x3f560b(0x1c26)])[_0x3f560b(0x15e7)][_0x3f560b(0x64a)](function(_0x4b0ce8){const _0x4a030a=_0x3f560b;_0x9bc531['companies'][_0x4a030a(0x1891)](_0x4b0ce8[_0x4a030a(0x14f8)]()),_0x5e390d[_0x4a030a(0x1339)]({'title':_0x4a030a(0x2906),'msg':_0x9bc531[_0x4a030a(0x1c26)][_0x4a030a(0x2494)]?_0x9bc531[_0x4a030a(0x1c26)][_0x4a030a(0x2494)]+_0x4a030a(0x258d):''}),_0x2673a1(_0x4b0ce8);})[_0x3f560b(0x20cd)](function(_0x4962c){const _0x5d1b93=_0x3f560b;if(_0x4962c[_0x5d1b93(0x1c52)]&&_0x4962c[_0x5d1b93(0x1c52)][_0x5d1b93(0xbae)]&&_0x4962c[_0x5d1b93(0x1c52)][_0x5d1b93(0xbae)][_0x5d1b93(0x1b9e)]){_0x9bc531['errors']=_0x4962c[_0x5d1b93(0x1c52)][_0x5d1b93(0xbae)]||[{'message':_0x4962c[_0x5d1b93(0x2915)](),'type':_0x5d1b93(0x1a0e)}];for(let _0x4413b4=0x0;_0x4413b4<_0x4962c['data'][_0x5d1b93(0xbae)][_0x5d1b93(0x1b9e)];_0x4413b4+=0x1){_0x5e390d[_0x5d1b93(0x1bd0)]({'title':_0x4962c['data'][_0x5d1b93(0xbae)][_0x4413b4][_0x5d1b93(0x2185)],'msg':_0x4962c[_0x5d1b93(0x1c52)][_0x5d1b93(0xbae)][_0x4413b4][_0x5d1b93(0x18ca)]});}}else _0x5e390d[_0x5d1b93(0x1bd0)]({'title':_0x4962c['status']?_0x5d1b93(0x575)+_0x4962c[_0x5d1b93(0x10b3)]+'\x20-\x20'+_0x4962c[_0x5d1b93(0x2115)]:_0x5d1b93(0x1a0e),'msg':_0x4962c['data']?JSON[_0x5d1b93(0x2317)](_0x4962c[_0x5d1b93(0x1c52)][_0x5d1b93(0x18ca)]):_0x4962c[_0x5d1b93(0x2915)]()});});}function _0x13aabd(){const _0x5afdc6=_0x5bbab4;_0x9bc531['errors']=[],_0x2eec23[_0x5afdc6(0x2625)]['update']({'id':_0x9bc531[_0x5afdc6(0x1c26)]['id']},_0x9bc531['company'])[_0x5afdc6(0x15e7)]['then'](function(_0x2e0e1f){const _0x370b4f=_0x5afdc6,_0xd52b5=_0x28c606()['find'](_0x9bc531[_0x370b4f(0x244)],{'id':_0x2e0e1f['id']});_0xd52b5&&_0x28c606()[_0x370b4f(0x14fe)](_0xd52b5,_0x28c606()[_0x370b4f(0x27bb)](_0x2e0e1f[_0x370b4f(0x14f8)](),_0x28c606()[_0x370b4f(0x1ec6)](_0xd52b5))),_0x5e390d[_0x370b4f(0x1339)]({'title':_0x370b4f(0x237b),'msg':_0x9bc531['company'][_0x370b4f(0x2494)]?_0x9bc531['company'][_0x370b4f(0x2494)]+_0x370b4f(0x271):''}),_0x2673a1(_0x2e0e1f);})[_0x5afdc6(0x20cd)](function(_0xee492a){const _0x58da61=_0x5afdc6;if(_0xee492a['data']&&_0xee492a[_0x58da61(0x1c52)]['errors']&&_0xee492a['data'][_0x58da61(0xbae)][_0x58da61(0x1b9e)]){_0x9bc531['errors']=_0xee492a[_0x58da61(0x1c52)][_0x58da61(0xbae)]||[{'message':_0xee492a[_0x58da61(0x2915)](),'type':_0x58da61(0x1be1)}];for(let _0x4f3c19=0x0;_0x4f3c19<_0xee492a[_0x58da61(0x1c52)][_0x58da61(0xbae)]['length'];_0x4f3c19++){_0x5e390d['error']({'title':_0xee492a[_0x58da61(0x1c52)][_0x58da61(0xbae)][_0x4f3c19][_0x58da61(0x2185)],'msg':_0xee492a[_0x58da61(0x1c52)][_0x58da61(0xbae)][_0x4f3c19][_0x58da61(0x18ca)]});}}else _0x5e390d['error']({'title':_0xee492a[_0x58da61(0x10b3)]?_0x58da61(0x575)+_0xee492a[_0x58da61(0x10b3)]+_0x58da61(0x21db)+_0xee492a[_0x58da61(0x2115)]:_0x58da61(0x1be1),'msg':_0xee492a[_0x58da61(0x1c52)]?JSON[_0x58da61(0x2317)](_0xee492a['data'][_0x58da61(0x18ca)]):_0xee492a[_0x58da61(0x2915)]()});});}function _0x415ca0(_0x136e5d){const _0x4b3e1f=_0x5bbab4;_0x9bc531[_0x4b3e1f(0xbae)]=[];const _0x1b6bf2=_0x21daac[_0x4b3e1f(0x856)]()[_0x4b3e1f(0x2021)]('Are\x20you\x20sure?')['content'](_0x4b3e1f(0x23ca))['ariaLabel'](_0x4b3e1f(0x214e))['ok'](_0x4b3e1f(0x2664))[_0x4b3e1f(0x101a)](_0x4b3e1f(0x1dc6))[_0x4b3e1f(0x2283)](_0x136e5d);_0x21daac[_0x4b3e1f(0xa60)](_0x1b6bf2)[_0x4b3e1f(0x64a)](function(){const _0x4b806a=_0x4b3e1f;_0x2eec23[_0x4b806a(0x2625)]['delete']({'id':_0x9bc531['company']['id']})[_0x4b806a(0x15e7)][_0x4b806a(0x64a)](function(){const _0x3330e3=_0x4b806a;_0x28c606()['remove'](_0x9bc531[_0x3330e3(0x244)],{'id':_0x9bc531[_0x3330e3(0x1c26)]['id']}),_0x5e390d[_0x3330e3(0x1339)]({'title':'Company\x20properly\x20deleted!','msg':(_0x9bc531[_0x3330e3(0x1c26)]['name']||_0x3330e3(0x1c26))+_0x3330e3(0x1fa8)}),_0x2673a1(_0x9bc531[_0x3330e3(0x1c26)]);})[_0x4b806a(0x20cd)](function(_0xad019f){const _0x334b0e=_0x4b806a;if(_0xad019f[_0x334b0e(0x1c52)]&&_0xad019f[_0x334b0e(0x1c52)][_0x334b0e(0xbae)]&&_0xad019f[_0x334b0e(0x1c52)][_0x334b0e(0xbae)]['length']){_0x9bc531[_0x334b0e(0xbae)]=_0xad019f['data'][_0x334b0e(0xbae)]||[{'message':_0xad019f[_0x334b0e(0x2915)](),'type':_0x334b0e(0x21bd)}];for(let _0x19b150=0x0;_0x19b150<_0xad019f[_0x334b0e(0x1c52)][_0x334b0e(0xbae)][_0x334b0e(0x1b9e)];_0x19b150++){_0x5e390d[_0x334b0e(0x1bd0)]({'title':_0xad019f[_0x334b0e(0x1c52)][_0x334b0e(0xbae)][_0x19b150]['type'],'msg':_0xad019f[_0x334b0e(0x1c52)][_0x334b0e(0xbae)][_0x19b150][_0x334b0e(0x18ca)]});}}else _0x5e390d[_0x334b0e(0x1bd0)]({'title':_0xad019f['status']?_0x334b0e(0x575)+_0xad019f[_0x334b0e(0x10b3)]+_0x334b0e(0x21db)+_0xad019f[_0x334b0e(0x2115)]:'api.cmCompany.delete','msg':_0xad019f[_0x334b0e(0x1c52)]?JSON['stringify'](_0xad019f['data'][_0x334b0e(0x18ca)]):_0xad019f[_0x334b0e(0x18ca)]||_0xad019f['toString']()});});},function(){});}function _0x179e0f(_0x503230){return _0x503230===null?undefined:new Date(_0x503230);}function _0x2673a1(_0x59239d){const _0x50e357=_0x5bbab4;_0x21daac[_0x50e357(0x268e)](_0x59239d);}}const _0x49d6bf=_0x139d1c;;_0x3ec479[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog',_0x49a1e3(0x1373),'$translate',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),'toasty',_0x49a1e3(0xdcf),'company',_0x49a1e3(0x16b2)];function _0x3ec479(_0x9c2b92,_0x20a918,_0x502268,_0x3b271a,_0x2fcfcd,_0x23231f,_0x455a9a,_0x4448bb,_0x35527e,_0x4a5f2b,_0x3a817e,_0x532c99){const _0x56ff40=_0x49a1e3,_0x722bf2=this;_0x722bf2[_0x56ff40(0x1d3d)]=_0x4a5f2b[_0x56ff40(0x808)](),_0x722bf2[_0x56ff40(0x1947)]=_0x23231f,_0x722bf2[_0x56ff40(0x28d6)]=_0x455a9a,_0x722bf2['passwordPattern']=_0x722bf2[_0x56ff40(0x28d6)][_0x56ff40(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x722bf2[_0x56ff40(0xb36)]=_0x20a918[_0x56ff40(0x48e)]()+_0x56ff40(0xe1f)+_0x20a918[_0x56ff40(0x1e5d)](),_0x722bf2[_0x56ff40(0x1c26)]=_0x3a817e||_0x9c2b92[_0x56ff40(0x1b48)]['company']||{},_0x722bf2[_0x56ff40(0x16b2)]=_0x532c99&&_0x532c99['count']==0x1?_0x532c99[_0x56ff40(0x28b8)][0x0]:null,_0x722bf2[_0x56ff40(0x402)]=_0x4a5f2b[_0x56ff40(0xa7e)](_0x722bf2[_0x56ff40(0x16b2)]?_0x722bf2[_0x56ff40(0x16b2)][_0x56ff40(0x402)]:null),_0x722bf2['hasModulePermissions']={},_0x722bf2[_0x56ff40(0x197c)]=_0x9c2b92['params']['tab']||0x0,_0x722bf2[_0x56ff40(0x505)]=_0x47be70,_0x722bf2[_0x56ff40(0x2540)]=_0x35527e[_0x56ff40(0x772)],_0x722bf2[_0x56ff40(0x1040)]=_0x488490,_0x722bf2[_0x56ff40(0x269a)]=_0x273f19;function _0x47be70(_0x431535){const _0x147b0e=_0x56ff40;if(_0x4a5f2b[_0x147b0e(0x4de)](_0x147b0e(0x333)))_0x9c2b92['go'](_0x147b0e(0x88d),{'CompanyId':_0x431535['id']});else return _0x4448bb[_0x147b0e(0x16b2)][_0x147b0e(0x896)]({'userProfileId':_0x4a5f2b[_0x147b0e(0x808)]()[_0x147b0e(0x21ac)],'sectionId':0x12f})[_0x147b0e(0x15e7)]['then'](function(_0x1b3040){const _0x1a8a2f=_0x147b0e,_0x4990c5=_0x1b3040&&_0x1b3040[_0x1a8a2f(0x28b8)]?_0x1b3040[_0x1a8a2f(0x28b8)][0x0]:null;_0x4990c5&&_0x4990c5[_0x1a8a2f(0xe49)]?_0x9c2b92['go'](_0x1a8a2f(0x88d),{'CompanyId':_0x431535['id']}):_0x35527e[_0x1a8a2f(0x772)]({'title':_0x2fcfcd[_0x1a8a2f(0x2292)](_0x1a8a2f(0x111a)),'msg':_0x2fcfcd[_0x1a8a2f(0x2292)](_0x1a8a2f(0x229))});})[_0x147b0e(0x20cd)](function(_0x57dd60){const _0x2a9a8c=_0x147b0e;_0x35527e[_0x2a9a8c(0x1bd0)]({'title':_0x57dd60[_0x2a9a8c(0x10b3)]?_0x2a9a8c(0x575)+_0x57dd60[_0x2a9a8c(0x10b3)]+_0x2a9a8c(0x21db)+_0x57dd60[_0x2a9a8c(0x2115)]:_0x2a9a8c(0x942),'msg':_0x57dd60[_0x2a9a8c(0x10b3)]?JSON[_0x2a9a8c(0x2317)](_0x57dd60[_0x2a9a8c(0x1c52)]):_0x57dd60[_0x2a9a8c(0x2915)]()});});}function _0x488490(){const _0x3b5403=_0x56ff40;_0x9c2b92['go'](_0x3b5403(0x2129),{},{'reload':_0x3b5403(0x2129)});}function _0x273f19(){const _0x2ca1f1=_0x56ff40;_0x4448bb[_0x2ca1f1(0x2625)][_0x2ca1f1(0x2603)]({'id':_0x722bf2[_0x2ca1f1(0x1c26)]['id']},_0x722bf2[_0x2ca1f1(0x1c26)])['$promise'][_0x2ca1f1(0x64a)](function(){const _0x43a82f=_0x2ca1f1;_0x35527e[_0x43a82f(0x1339)]({'title':'Company\x20updated!','msg':_0x722bf2[_0x43a82f(0x1c26)]['name']?_0x722bf2[_0x43a82f(0x1c26)][_0x43a82f(0x2494)]+_0x43a82f(0x2032):''});})[_0x2ca1f1(0x20cd)](function(_0x5375ac){const _0x6184a7=_0x2ca1f1;_0x35527e[_0x6184a7(0x1bd0)]({'title':_0x5375ac[_0x6184a7(0x10b3)]?_0x6184a7(0x575)+_0x5375ac[_0x6184a7(0x10b3)]+_0x6184a7(0x21db)+_0x5375ac[_0x6184a7(0x2115)]:_0x6184a7(0x27d2),'msg':_0x5375ac[_0x6184a7(0x1c52)]?JSON[_0x6184a7(0x2317)](_0x5375ac['data']):_0x5375ac[_0x6184a7(0x2915)]()});});}}const _0x2f5722=_0x3ec479;;_0x51e4d4[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x1a1d),_0x49a1e3(0x1cfd),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x51e4d4(_0x47a05b,_0x3fe4f0,_0x2008d2,_0xefd0a3,_0x5ac48e,_0xf1d3e0,_0xf1c820,_0x4e380e,_0x2f0cf5,_0x3dab27,_0x3dffaa,_0x9d73c6,_0x3ea74d,_0xf7d35b){const _0x3a88fb=_0x49a1e3,_0x2eb66c=this;_0x2eb66c[_0x3a88fb(0x1d3d)]=_0x3dffaa[_0x3a88fb(0x808)](),_0x2eb66c[_0x3a88fb(0xbae)]=[],_0x2eb66c[_0x3a88fb(0x28d6)]=_0x3ea74d,_0x2eb66c[_0x3a88fb(0x1947)]=_0x9d73c6,_0x2eb66c[_0x3a88fb(0x402)]=_0xf7d35b,_0x2eb66c[_0x3a88fb(0x6c2)]={},_0x2eb66c['passwordPattern']=_0x2eb66c[_0x3a88fb(0x28d6)]&&_0x2eb66c[_0x3a88fb(0x28d6)][_0x3a88fb(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2eb66c['title']=_0x3a88fb(0x1d95),_0x2eb66c['sortable']={'animation':0x320,'sort':!![],'onSort':function(){const _0x2b44a1=_0x3a88fb;_0x47a05b['globalCustomFieldForm'][_0x2b44a1(0x74f)]=![];}},_0x2eb66c['globalCustomField']=_0x2f0cf5,_0x2eb66c['globalCustomFields']=_0x4e380e,_0x2eb66c['newGlobalCustomField']=![];!_0x2eb66c[_0x3a88fb(0x1cfd)]&&(_0x2eb66c[_0x3a88fb(0x1cfd)]={'type':_0x3a88fb(0x39b),'actionType':_0x3a88fb(0x227c)},_0x2eb66c[_0x3a88fb(0x2021)]=_0x3a88fb(0x1216),_0x2eb66c['newGlobalCustomField']=!![]);_0x47a05b[_0x3a88fb(0xc62)](_0x3a88fb(0x1cdd),function(_0x75379d,_0x3245ef){const _0x4bcbfd=_0x3a88fb;if(_0x75379d!==_0x3245ef)switch(_0x75379d){case _0x4bcbfd(0x39b):_0x2eb66c['globalCustomField'][_0x4bcbfd(0x2146)]='';break;case _0x4bcbfd(0x2926):_0x2eb66c['globalCustomField'][_0x4bcbfd(0x2146)]=[];break;default:}}),_0x2eb66c['addNewGlobalCustomField']=_0x3fb5b9,_0x2eb66c['saveGlobalCustomField']=_0x102a8e,_0x2eb66c[_0x3a88fb(0x222c)]=_0x174816,_0x2eb66c[_0x3a88fb(0x1605)]=_0x388de5,_0x2eb66c[_0x3a88fb(0x290c)]=_0x1cf3fd,_0x2eb66c['removeItem']=_0x4228cf,_0x2eb66c[_0x3a88fb(0x1a23)]=_0x11fad9,_0x2eb66c[_0x3a88fb(0x16cb)]=_0x14b80b;function _0x1cf3fd(_0x5d732e){const _0x3de9c1=_0x3a88fb;_0x5d732e[_0x3de9c1(0x1954)]({'value':_0x3de9c1(0xc3b)}),_0x47a05b[_0x3de9c1(0xc98)]['$pristine']=![];}function _0x4228cf(_0x4d51a8,_0x34f8e4){const _0x569a82=_0x3a88fb;_0x4d51a8[_0x569a82(0x18f0)](_0x34f8e4,0x1),_0x47a05b[_0x569a82(0xc98)][_0x569a82(0x74f)]=![];}function _0x11fad9(_0x1741e4){const _0x1c2cba=_0x3a88fb,_0x59b0a1=_0x1741e4[_0x1c2cba(0x1b9e)];for(let _0x2e15a0=0x0;_0x2e15a0<_0x59b0a1;_0x2e15a0++){_0x1741e4['splice'](0x0,0x1);}_0x47a05b['globalCustomFieldForm'][_0x1c2cba(0x74f)]=![];}function _0x3fb5b9(){const _0x298c21=_0x3a88fb;_0x2eb66c[_0x298c21(0xbae)]=[],_0x3dab27[_0x298c21(0x27ca)][_0x298c21(0x2479)](_0x2eb66c['globalCustomField'])[_0x298c21(0x15e7)][_0x298c21(0x64a)](function(_0x4fa434){const _0x588a61=_0x298c21;_0x2eb66c[_0x588a61(0x1a1d)][_0x588a61(0x1891)](_0x4fa434[_0x588a61(0x14f8)]()),_0xf1c820[_0x588a61(0x1339)]({'title':'GlobalCustomField\x20properly\x20created','msg':_0x2eb66c[_0x588a61(0x1cfd)][_0x588a61(0x2494)]?_0x2eb66c['globalCustomField'][_0x588a61(0x2494)]+'\x20has\x20been\x20created!':''}),_0x14b80b(_0x4fa434);})[_0x298c21(0x20cd)](function(_0x2605de){const _0x548e30=_0x298c21;if(_0x2605de['data']&&_0x2605de[_0x548e30(0x1c52)][_0x548e30(0xbae)]&&_0x2605de['data'][_0x548e30(0xbae)]['length']){_0x2eb66c[_0x548e30(0xbae)]=_0x2605de['data'][_0x548e30(0xbae)]||[{'message':_0x2605de[_0x548e30(0x2915)](),'type':_0x548e30(0x1cb1)}];for(let _0x40ec08=0x0;_0x40ec08<_0x2605de['data']['errors'][_0x548e30(0x1b9e)];_0x40ec08+=0x1){_0xf1c820[_0x548e30(0x1bd0)]({'title':_0x2605de[_0x548e30(0x1c52)][_0x548e30(0xbae)][_0x40ec08]['type'],'msg':_0x2605de[_0x548e30(0x1c52)][_0x548e30(0xbae)][_0x40ec08][_0x548e30(0x18ca)]});}}else _0xf1c820[_0x548e30(0x1bd0)]({'title':_0x2605de[_0x548e30(0x10b3)]?_0x548e30(0x575)+_0x2605de[_0x548e30(0x10b3)]+'\x20-\x20'+_0x2605de[_0x548e30(0x2115)]:_0x548e30(0x1cb1),'msg':_0x2605de[_0x548e30(0x1c52)]?JSON[_0x548e30(0x2317)](_0x2605de['data'][_0x548e30(0x18ca)]):_0x2605de[_0x548e30(0x2915)]()});});}function _0x102a8e(){const _0x3f53ad=_0x3a88fb;_0x2eb66c[_0x3f53ad(0xbae)]=[],_0x3dab27[_0x3f53ad(0x27ca)][_0x3f53ad(0x2603)]({'id':_0x2eb66c[_0x3f53ad(0x1cfd)]['id']},_0x2eb66c['globalCustomField'])[_0x3f53ad(0x15e7)][_0x3f53ad(0x64a)](function(_0x3cec1b){const _0x27b532=_0x3f53ad,_0x3bcfec=_0x28c606()['find'](_0x2eb66c[_0x27b532(0x1a1d)],{'id':_0x3cec1b['id']});_0x3bcfec&&_0x28c606()[_0x27b532(0x14fe)](_0x3bcfec,_0x28c606()[_0x27b532(0x27bb)](_0x3cec1b['toJSON'](),_0x28c606()['keys'](_0x3bcfec))),_0xf1c820[_0x27b532(0x1339)]({'title':_0x27b532(0x49d),'msg':_0x2eb66c[_0x27b532(0x1cfd)][_0x27b532(0x2494)]?_0x2eb66c[_0x27b532(0x1cfd)][_0x27b532(0x2494)]+_0x27b532(0x271):''}),_0x14b80b(_0x3cec1b);})[_0x3f53ad(0x20cd)](function(_0x13e322){const _0xe43a3f=_0x3f53ad;if(_0x13e322['data']&&_0x13e322['data'][_0xe43a3f(0xbae)]&&_0x13e322[_0xe43a3f(0x1c52)]['errors'][_0xe43a3f(0x1b9e)]){_0x2eb66c['errors']=_0x13e322[_0xe43a3f(0x1c52)][_0xe43a3f(0xbae)]||[{'message':_0x13e322['toString'](),'type':'api.cmCustomField.update'}];for(let _0x508eaf=0x0;_0x508eaf<_0x13e322['data']['errors']['length'];_0x508eaf++){_0xf1c820[_0xe43a3f(0x1bd0)]({'title':_0x13e322['data'][_0xe43a3f(0xbae)][_0x508eaf][_0xe43a3f(0x2185)],'msg':_0x13e322[_0xe43a3f(0x1c52)][_0xe43a3f(0xbae)][_0x508eaf][_0xe43a3f(0x18ca)]});}}else _0xf1c820[_0xe43a3f(0x1bd0)]({'title':_0x13e322[_0xe43a3f(0x10b3)]?_0xe43a3f(0x575)+_0x13e322[_0xe43a3f(0x10b3)]+'\x20-\x20'+_0x13e322[_0xe43a3f(0x2115)]:_0xe43a3f(0x1e1d),'msg':_0x13e322[_0xe43a3f(0x1c52)]?JSON[_0xe43a3f(0x2317)](_0x13e322[_0xe43a3f(0x1c52)][_0xe43a3f(0x18ca)]):_0x13e322[_0xe43a3f(0x2915)]()});});}function _0x174816(_0x202dfa){const _0x2aa0b0=_0x3a88fb;_0x2eb66c['errors']=[];const _0x5a2c52=_0xefd0a3['confirm']()['title']('Are\x20you\x20sure?')[_0x2aa0b0(0x12b8)](_0x2aa0b0(0x22ec))[_0x2aa0b0(0x213e)](_0x2aa0b0(0x140b))['ok'](_0x2aa0b0(0x2664))[_0x2aa0b0(0x101a)]('Cancel')[_0x2aa0b0(0x2283)](_0x202dfa);_0xefd0a3['show'](_0x5a2c52)[_0x2aa0b0(0x64a)](function(){const _0x4844fe=_0x2aa0b0;_0x3dab27[_0x4844fe(0x27ca)][_0x4844fe(0xabd)]({'id':_0x2eb66c[_0x4844fe(0x1cfd)]['id']})['$promise'][_0x4844fe(0x64a)](function(){const _0x44930e=_0x4844fe;_0x28c606()['remove'](_0x2eb66c['globalCustomFields'],{'id':_0x2eb66c[_0x44930e(0x1cfd)]['id']}),_0xf1c820[_0x44930e(0x1339)]({'title':_0x44930e(0x8f9),'msg':(_0x2eb66c[_0x44930e(0x1cfd)][_0x44930e(0x2494)]||'globalCustomField')+_0x44930e(0x1fa8)}),_0x14b80b(_0x2eb66c[_0x44930e(0x1cfd)]);})[_0x4844fe(0x20cd)](function(_0x1f3036){const _0x476da9=_0x4844fe;if(_0x1f3036[_0x476da9(0x1c52)]&&_0x1f3036[_0x476da9(0x1c52)][_0x476da9(0xbae)]&&_0x1f3036[_0x476da9(0x1c52)]['errors']['length']){_0x2eb66c[_0x476da9(0xbae)]=_0x1f3036[_0x476da9(0x1c52)][_0x476da9(0xbae)]||[{'message':_0x1f3036[_0x476da9(0x2915)](),'type':_0x476da9(0x14ef)}];for(let _0x2c2bad=0x0;_0x2c2bad<_0x1f3036[_0x476da9(0x1c52)][_0x476da9(0xbae)]['length'];_0x2c2bad++){_0xf1c820['error']({'title':_0x1f3036['data']['errors'][_0x2c2bad]['type'],'msg':_0x1f3036[_0x476da9(0x1c52)][_0x476da9(0xbae)][_0x2c2bad][_0x476da9(0x18ca)]});}}else _0xf1c820['error']({'title':_0x1f3036[_0x476da9(0x10b3)]?_0x476da9(0x575)+_0x1f3036[_0x476da9(0x10b3)]+_0x476da9(0x21db)+_0x1f3036[_0x476da9(0x2115)]:_0x476da9(0x14ef),'msg':_0x1f3036['data']?JSON[_0x476da9(0x2317)](_0x1f3036[_0x476da9(0x1c52)][_0x476da9(0x18ca)]):_0x1f3036['message']||_0x1f3036[_0x476da9(0x2915)]()});});},function(){});}function _0x388de5(_0x604dfa){return _0x604dfa===null?undefined:new Date(_0x604dfa);}function _0x14b80b(_0x5cef38){const _0x15b96d=_0x3a88fb;_0xefd0a3[_0x15b96d(0x268e)](_0x5cef38);}}const _0x2ef39b=_0x51e4d4;;const _0x1d3661=_0x2e4a48['p']+_0x49a1e3(0x1b32);;_0x2c5b51['$inject']=[_0x49a1e3(0x1674),'$window',_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),'$timeout',_0x49a1e3(0x298c),_0x49a1e3(0x1a1d),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),'api','msUtils',_0x49a1e3(0x680),'Auth','license',_0x49a1e3(0x28d6)];function _0x2c5b51(_0x2bc683,_0x55fdc0,_0xcde643,_0x270af9,_0x165e4d,_0x226d83,_0xb09bd5,_0x106732,_0x2501ed,_0x25c40a,_0x408757,_0x449f64,_0x56b797,_0x51269f,_0x22d99f,_0x18afa0,_0x31556b){const _0x2eef0f=_0x49a1e3,_0x3d8837=this;_0x3d8837['license']=_0x18afa0,_0x3d8837[_0x2eef0f(0x28d6)]=_0x31556b,_0x3d8837['currentUser']=_0x22d99f[_0x2eef0f(0x808)](),_0x3d8837[_0x2eef0f(0x1a1d)]=_0x2501ed||{'count':0x0,'rows':[]},_0x3d8837[_0x2eef0f(0x16a8)]=_0x25c40a,_0x3d8837[_0x2eef0f(0x16b2)]=_0x408757&&_0x408757[_0x2eef0f(0xb90)]==0x1?_0x408757[_0x2eef0f(0x28b8)][0x0]:null,_0x3d8837[_0x2eef0f(0x402)]=_0x22d99f[_0x2eef0f(0xa7e)](_0x3d8837[_0x2eef0f(0x16b2)]?_0x3d8837[_0x2eef0f(0x16b2)][_0x2eef0f(0x402)]:null),_0x3d8837['table']=_0x2eef0f(0x1a1d),_0x3d8837['listOrder']='',_0x3d8837[_0x2eef0f(0x2748)]=null,_0x3d8837[_0x2eef0f(0x1c84)]=[],_0x3d8837['query']={'fields':'createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType','sort':_0x2eef0f(0x260c),'ListId':_0x2eef0f(0x8f1),'limit':0xa,'page':0x1},_0x3d8837[_0x2eef0f(0x9d4)]=_0x28c606()['keyBy']([{'option':_0x2eef0f(0x1378),'value':_0x2eef0f(0x10f7)},{'option':'Select','value':_0x2eef0f(0x1460)},{'option':'Number','value':_0x2eef0f(0x136a)},{'option':'Switch','value':'\x27switch\x27'},{'option':'Datetime','value':_0x2eef0f(0x71b)}],function(_0x2e9b85){const _0x3a6735=_0x2eef0f;return _0x28c606()['replace'](_0x2e9b85[_0x3a6735(0x1096)],new RegExp('\x27','g'),'');}),_0x3d8837[_0x2eef0f(0x253a)]=_0x28c606()[_0x2eef0f(0x161e)]([{'option':'Voice','value':_0x2eef0f(0x10c0)}],function(_0x1e7b5b){const _0x38ae3c=_0x2eef0f;return _0x28c606()[_0x38ae3c(0x1353)](_0x1e7b5b[_0x38ae3c(0x1096)],new RegExp('\x27','g'),'');}),_0x3d8837[_0x2eef0f(0x1c42)]=_0x25cd24,_0x3d8837[_0x2eef0f(0x1262)]=_0x43812d,_0x3d8837[_0x2eef0f(0x1339)]=_0x5cec96,_0x3d8837[_0x2eef0f(0xe73)]=_0x237282,_0x3d8837[_0x2eef0f(0x470)]=_0x3fda6a,_0x3d8837['deleteGlobalCustomField']=_0x449a99,_0x3d8837[_0x2eef0f(0x1974)]=_0x4c1b03,_0x3d8837[_0x2eef0f(0x1a51)]=_0x53b08a,_0x3d8837[_0x2eef0f(0x481)]=_0x5a41d2,_0x3d8837[_0x2eef0f(0x1c72)]=_0x1f560f;function _0x25cd24(_0x2a3bec,_0x25cd8b){const _0x3cd99a=_0x2eef0f;_0x165e4d[_0x3cd99a(0xa60)]({'controller':_0x3cd99a(0x1fda),'controllerAs':'vm','templateUrl':_0x1d3661,'parent':angular[_0x3cd99a(0x1f81)](_0x226d83['body']),'targetEvent':_0x25cd8b,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x2a3bec,'globalCustomFields':_0x3d8837[_0x3cd99a(0x1a1d)][_0x3cd99a(0x28b8)],'license':_0x3d8837[_0x3cd99a(0x1947)],'setting':null,'crudPermissions':_0x3d8837['crudPermissions']}});}function _0x43812d(_0x5bafb7,_0x31efc3){const _0xeb2a93=_0x2eef0f,_0x31a5b2=_0x165e4d[_0xeb2a93(0x856)]()[_0xeb2a93(0x2021)](_0xeb2a93(0x1231)+_0x28c606()[_0xeb2a93(0xc01)](_0xeb2a93(0x1cfd))+'?')[_0xeb2a93(0x33a)](''+(_0x5bafb7[_0xeb2a93(0x2494)]||_0xeb2a93(0x1cfd))+''+_0xeb2a93(0x4b8))['ariaLabel'](_0xeb2a93(0x8bc))[_0xeb2a93(0x2283)](_0x31efc3)['ok']('OK')[_0xeb2a93(0x101a)](_0xeb2a93(0x18fd));_0x165e4d['show'](_0x31a5b2)['then'](function(){_0x449a99(_0x5bafb7);},function(){const _0x3974b7=_0xeb2a93;console[_0x3974b7(0x9b4)](_0x3974b7(0x18fd));});}let _0x42f6ac=!![],_0x48d9f8=0x1;_0x2bc683[_0x2eef0f(0xc62)](_0x2eef0f(0x1cb9),function(_0x267291,_0x564810){const _0x5643e0=_0x2eef0f;_0x42f6ac?_0xb09bd5(function(){_0x42f6ac=![];}):(!_0x564810&&(_0x48d9f8=_0x3d8837['query']['page']),_0x267291!==_0x564810&&(_0x3d8837[_0x5643e0(0x289a)][_0x5643e0(0xc72)]=0x1),!_0x267291&&(_0x3d8837[_0x5643e0(0x289a)][_0x5643e0(0xc72)]=_0x48d9f8),_0x3d8837['getGlobalCustomFields']());});function _0x5cec96(_0x1aa158){const _0x1adb36=_0x2eef0f;_0x3d8837[_0x1adb36(0x1a1d)]=_0x1aa158||{'count':0x0,'rows':[]};}function _0x237282(){const _0x17d6c3=_0x2eef0f;_0x3d8837[_0x17d6c3(0x289a)]['offset']=(_0x3d8837[_0x17d6c3(0x289a)][_0x17d6c3(0xc72)]-0x1)*_0x3d8837[_0x17d6c3(0x289a)][_0x17d6c3(0x25bb)],_0x22d99f[_0x17d6c3(0x4de)](_0x17d6c3(0x333))?_0x3d8837[_0x17d6c3(0x1713)]=_0x449f64[_0x17d6c3(0x27ca)]['get'](_0x3d8837[_0x17d6c3(0x289a)],_0x5cec96)['$promise']:(_0x3d8837[_0x17d6c3(0x289a)]['id']=_0x3d8837['userProfile']['id'],_0x3d8837[_0x17d6c3(0x289a)][_0x17d6c3(0xa21)]=_0x17d6c3(0x15d1),_0x3d8837[_0x17d6c3(0x1713)]=_0x449f64[_0x17d6c3(0x16a8)][_0x17d6c3(0x2565)](_0x3d8837[_0x17d6c3(0x289a)],_0x5cec96)[_0x17d6c3(0x15e7)]);}function _0x3fda6a(_0x108edb,_0x58f17f){const _0x320e3d=_0x2eef0f;_0x165e4d[_0x320e3d(0xa60)]({'controller':_0x320e3d(0x1fda),'controllerAs':'vm','templateUrl':_0x1d3661,'parent':angular[_0x320e3d(0x1f81)](_0x226d83[_0x320e3d(0xb49)]),'targetEvent':_0x108edb,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x58f17f,'globalCustomFields':_0x3d8837[_0x320e3d(0x1a1d)][_0x320e3d(0x28b8)],'license':_0x3d8837[_0x320e3d(0x1947)],'setting':_0x3d8837[_0x320e3d(0x28d6)],'crudPermissions':_0x3d8837[_0x320e3d(0x402)]}});}function _0x449a99(_0x1ed724){const _0x23d063=_0x2eef0f;_0x449f64[_0x23d063(0x27ca)]['delete']({'id':_0x1ed724['id']})['$promise'][_0x23d063(0x64a)](function(){const _0x48bc60=_0x23d063;_0x28c606()['remove'](_0x3d8837[_0x48bc60(0x1a1d)]['rows'],{'id':_0x1ed724['id']}),_0x3d8837[_0x48bc60(0x1a1d)][_0x48bc60(0xb90)]-=0x1,!_0x3d8837['globalCustomFields'][_0x48bc60(0x28b8)][_0x48bc60(0x1b9e)]&&_0x3d8837[_0x48bc60(0xe73)](),_0x51269f['success']({'title':_0x28c606()['startCase'](_0x48bc60(0x287b))+_0x48bc60(0x2502),'msg':_0x1ed724[_0x48bc60(0x2494)]?_0x1ed724['name']+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x572494){const _0x4dd65a=_0x23d063;if(_0x572494[_0x4dd65a(0x1c52)]&&_0x572494[_0x4dd65a(0x1c52)][_0x4dd65a(0xbae)]&&_0x572494[_0x4dd65a(0x1c52)]['errors'][_0x4dd65a(0x1b9e)]){_0x3d8837[_0x4dd65a(0xbae)]=_0x572494[_0x4dd65a(0x1c52)][_0x4dd65a(0xbae)]||[{'message':_0x572494[_0x4dd65a(0x2915)](),'type':'SYSTEM:DELETEcmCustomField'}];for(let _0x458116=0x0;_0x458116<_0x572494[_0x4dd65a(0x1c52)][_0x4dd65a(0xbae)][_0x4dd65a(0x1b9e)];_0x458116++){_0x51269f[_0x4dd65a(0x1bd0)]({'title':_0x572494['data'][_0x4dd65a(0xbae)][_0x458116][_0x4dd65a(0x2185)],'msg':_0x572494[_0x4dd65a(0x1c52)][_0x4dd65a(0xbae)][_0x458116]['message']});}}else _0x51269f['error']({'title':_0x572494[_0x4dd65a(0x10b3)]?_0x4dd65a(0x575)+_0x572494[_0x4dd65a(0x10b3)]+'\x20-\x20'+_0x572494['statusText']:_0x4dd65a(0x1779),'msg':_0x572494[_0x4dd65a(0x1c52)]?JSON[_0x4dd65a(0x2317)](_0x572494[_0x4dd65a(0x1c52)][_0x4dd65a(0x18ca)]):_0x572494[_0x4dd65a(0x18ca)]||_0x572494['toString']()});});}function _0x4c1b03(){const _0x2aea9e=_0x2eef0f,_0x36c0cf=angular['copy'](_0x3d8837['selectedGlobalCustomFields']);return _0x3d8837[_0x2aea9e(0x1c84)]=[],_0x36c0cf;}function _0x53b08a(_0x193b8c){const _0x3c05e2=_0x2eef0f,_0x17d7a3=_0x165e4d[_0x3c05e2(0x856)]()['title'](_0x3c05e2(0x141f))[_0x3c05e2(0x33a)](_0x3c05e2(0x50b)+_0x3d8837[_0x3c05e2(0x1c84)][_0x3c05e2(0x1b9e)]+'\x20selected'+_0x3c05e2(0x4b8))['ariaLabel']('delete\x20GlobalCustomFields')[_0x3c05e2(0x2283)](_0x193b8c)['ok']('OK')[_0x3c05e2(0x101a)]('CANCEL');_0x165e4d[_0x3c05e2(0xa60)](_0x17d7a3)[_0x3c05e2(0x64a)](function(){const _0x349fdd=_0x3c05e2;_0x3d8837[_0x349fdd(0x1c84)][_0x349fdd(0x1397)](function(_0x4c80f0){_0x449a99(_0x4c80f0);}),_0x3d8837[_0x349fdd(0x1c84)]=[];});}function _0x5a41d2(){const _0x1f236f=_0x2eef0f;_0x3d8837[_0x1f236f(0x1c84)]=[];}function _0x1f560f(){const _0x3b32a4=_0x2eef0f;_0x3d8837[_0x3b32a4(0x1c84)]=_0x3d8837['globalCustomFields']['rows'];}}const _0x2714fc=_0x2c5b51;;_0x327095[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),'lists',_0x49a1e3(0x2764),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x327095(_0x4c49e4,_0x5a4d81,_0x2ed03e,_0x1b2551,_0x2ca019,_0x151f94,_0x20bae3,_0x316a2e,_0x572d7d,_0x54c709,_0x4bac55,_0x552688,_0x254eab,_0x234f02){const _0x3e42f7=_0x49a1e3,_0x5d087f=this;_0x5d087f[_0x3e42f7(0x1d3d)]=_0x4bac55[_0x3e42f7(0x808)](),_0x5d087f[_0x3e42f7(0xbae)]=[],_0x5d087f[_0x3e42f7(0x28d6)]=_0x254eab,_0x5d087f[_0x3e42f7(0x1947)]=_0x552688,_0x5d087f['crudPermissions']=_0x234f02,_0x5d087f[_0x3e42f7(0x6c2)]={},_0x5d087f[_0x3e42f7(0xccc)]=_0x5d087f[_0x3e42f7(0x28d6)]&&_0x5d087f['setting'][_0x3e42f7(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5d087f[_0x3e42f7(0x2021)]='CONTACTMANAGER.EDIT_LIST',_0x5d087f[_0x3e42f7(0x2764)]=angular['copy'](_0x572d7d),_0x5d087f[_0x3e42f7(0x974)]=_0x316a2e,_0x5d087f[_0x3e42f7(0x26f)]=![];!_0x5d087f[_0x3e42f7(0x2764)]&&(_0x5d087f['list']={},_0x5d087f[_0x3e42f7(0x2021)]=_0x3e42f7(0x81f),_0x5d087f[_0x3e42f7(0x26f)]=!![]);_0x5d087f[_0x3e42f7(0x678)]=_0x53b76c,_0x5d087f[_0x3e42f7(0x226d)]=_0x210091,_0x5d087f[_0x3e42f7(0x8c0)]=_0x3be4f2,_0x5d087f[_0x3e42f7(0x1605)]=_0x38c121,_0x5d087f[_0x3e42f7(0x16cb)]=_0xd2bd4c;function _0x53b76c(){const _0xfe0be4=_0x3e42f7;_0x5d087f['errors']=[],_0x54c709[_0xfe0be4(0x19f8)][_0xfe0be4(0x2479)](_0x5d087f[_0xfe0be4(0x2764)])[_0xfe0be4(0x15e7)]['then'](function(_0x297696){const _0x200f5f=_0xfe0be4;_0x5d087f[_0x200f5f(0x974)][_0x200f5f(0x1891)](_0x297696[_0x200f5f(0x14f8)]()),_0x20bae3[_0x200f5f(0x1339)]({'title':_0x200f5f(0xd9b),'msg':_0x5d087f[_0x200f5f(0x2764)][_0x200f5f(0x2494)]?_0x5d087f[_0x200f5f(0x2764)][_0x200f5f(0x2494)]+_0x200f5f(0x258d):''}),_0xd2bd4c(_0x297696);})[_0xfe0be4(0x20cd)](function(_0x1ccd6d){const _0x2c7b12=_0xfe0be4;if(_0x1ccd6d[_0x2c7b12(0x1c52)]&&_0x1ccd6d[_0x2c7b12(0x1c52)]['errors']&&_0x1ccd6d[_0x2c7b12(0x1c52)][_0x2c7b12(0xbae)][_0x2c7b12(0x1b9e)]){_0x5d087f[_0x2c7b12(0xbae)]=_0x1ccd6d['data'][_0x2c7b12(0xbae)]||[{'message':_0x1ccd6d['toString'](),'type':_0x2c7b12(0x2c1)}];for(let _0x51b7a4=0x0;_0x51b7a4<_0x1ccd6d['data'][_0x2c7b12(0xbae)][_0x2c7b12(0x1b9e)];_0x51b7a4+=0x1){_0x20bae3[_0x2c7b12(0x1bd0)]({'title':_0x1ccd6d['data'][_0x2c7b12(0xbae)][_0x51b7a4][_0x2c7b12(0x2185)],'msg':_0x1ccd6d[_0x2c7b12(0x1c52)][_0x2c7b12(0xbae)][_0x51b7a4]['message']});}}else _0x20bae3[_0x2c7b12(0x1bd0)]({'title':_0x1ccd6d[_0x2c7b12(0x10b3)]?_0x2c7b12(0x575)+_0x1ccd6d[_0x2c7b12(0x10b3)]+_0x2c7b12(0x21db)+_0x1ccd6d[_0x2c7b12(0x2115)]:_0x2c7b12(0x2c1),'msg':_0x1ccd6d[_0x2c7b12(0x1c52)]?JSON[_0x2c7b12(0x2317)](_0x1ccd6d['data']['message']):_0x1ccd6d['toString']()});});}function _0x210091(){const _0x2e5c27=_0x3e42f7;_0x5d087f[_0x2e5c27(0xbae)]=[],_0x54c709[_0x2e5c27(0x19f8)][_0x2e5c27(0x2603)]({'id':_0x5d087f[_0x2e5c27(0x2764)]['id']},_0x5d087f['list'])[_0x2e5c27(0x15e7)][_0x2e5c27(0x64a)](function(_0x9e247a){const _0x5a183b=_0x2e5c27,_0x391f50=_0x28c606()['find'](_0x5d087f[_0x5a183b(0x974)],{'id':_0x9e247a['id']});_0x391f50&&_0x28c606()[_0x5a183b(0x14fe)](_0x391f50,_0x28c606()[_0x5a183b(0x27bb)](_0x9e247a[_0x5a183b(0x14f8)](),_0x28c606()[_0x5a183b(0x1ec6)](_0x391f50))),_0x20bae3[_0x5a183b(0x1339)]({'title':_0x5a183b(0x164),'msg':_0x5d087f['list'][_0x5a183b(0x2494)]?_0x5d087f[_0x5a183b(0x2764)][_0x5a183b(0x2494)]+_0x5a183b(0x271):''}),_0xd2bd4c(_0x9e247a);})[_0x2e5c27(0x20cd)](function(_0x44ae7f){const _0x179fd3=_0x2e5c27;if(_0x44ae7f[_0x179fd3(0x1c52)]&&_0x44ae7f[_0x179fd3(0x1c52)][_0x179fd3(0xbae)]&&_0x44ae7f[_0x179fd3(0x1c52)][_0x179fd3(0xbae)][_0x179fd3(0x1b9e)]){_0x5d087f[_0x179fd3(0xbae)]=_0x44ae7f[_0x179fd3(0x1c52)][_0x179fd3(0xbae)]||[{'message':_0x44ae7f[_0x179fd3(0x2915)](),'type':_0x179fd3(0x23cc)}];for(let _0x364402=0x0;_0x364402<_0x44ae7f[_0x179fd3(0x1c52)][_0x179fd3(0xbae)]['length'];_0x364402++){_0x20bae3[_0x179fd3(0x1bd0)]({'title':_0x44ae7f['data'][_0x179fd3(0xbae)][_0x364402][_0x179fd3(0x2185)],'msg':_0x44ae7f[_0x179fd3(0x1c52)]['errors'][_0x364402]['message']});}}else _0x20bae3[_0x179fd3(0x1bd0)]({'title':_0x44ae7f[_0x179fd3(0x10b3)]?_0x179fd3(0x575)+_0x44ae7f[_0x179fd3(0x10b3)]+_0x179fd3(0x21db)+_0x44ae7f[_0x179fd3(0x2115)]:_0x179fd3(0x23cc),'msg':_0x44ae7f[_0x179fd3(0x1c52)]?JSON[_0x179fd3(0x2317)](_0x44ae7f[_0x179fd3(0x1c52)][_0x179fd3(0x18ca)]):_0x44ae7f[_0x179fd3(0x2915)]()});});}function _0x3be4f2(_0x32e004){const _0x49e16d=_0x3e42f7;_0x5d087f[_0x49e16d(0xbae)]=[];const _0xe3327e=_0x1b2551[_0x49e16d(0x856)]()['title']('Are\x20you\x20sure?')[_0x49e16d(0x12b8)](_0x49e16d(0x654))[_0x49e16d(0x213e)](_0x49e16d(0x28fa))['ok'](_0x49e16d(0x2664))['cancel'](_0x49e16d(0x1dc6))['targetEvent'](_0x32e004);_0x1b2551['show'](_0xe3327e)[_0x49e16d(0x64a)](function(){const _0x41c4b9=_0x49e16d;_0x54c709[_0x41c4b9(0x19f8)]['delete']({'id':_0x5d087f[_0x41c4b9(0x2764)]['id']})[_0x41c4b9(0x15e7)]['then'](function(){const _0xb517c8=_0x41c4b9;_0x28c606()[_0xb517c8(0x21c7)](_0x5d087f[_0xb517c8(0x974)],{'id':_0x5d087f[_0xb517c8(0x2764)]['id']}),_0x20bae3[_0xb517c8(0x1339)]({'title':'List\x20properly\x20deleted!','msg':(_0x5d087f[_0xb517c8(0x2764)]['name']||_0xb517c8(0x2764))+_0xb517c8(0x1fa8)}),_0xd2bd4c(_0x5d087f[_0xb517c8(0x2764)]);})['catch'](function(_0x46b68b){const _0x16ff8b=_0x41c4b9;if(_0x46b68b[_0x16ff8b(0x1c52)]&&_0x46b68b[_0x16ff8b(0x1c52)]['errors']&&_0x46b68b[_0x16ff8b(0x1c52)][_0x16ff8b(0xbae)][_0x16ff8b(0x1b9e)]){_0x5d087f[_0x16ff8b(0xbae)]=_0x46b68b[_0x16ff8b(0x1c52)][_0x16ff8b(0xbae)]||[{'message':_0x46b68b[_0x16ff8b(0x2915)](),'type':'api.cmList.delete'}];for(let _0x20aaaf=0x0;_0x20aaaf<_0x46b68b['data'][_0x16ff8b(0xbae)]['length'];_0x20aaaf++){_0x20bae3[_0x16ff8b(0x1bd0)]({'title':_0x46b68b[_0x16ff8b(0x1c52)][_0x16ff8b(0xbae)][_0x20aaaf][_0x16ff8b(0x2185)],'msg':_0x46b68b[_0x16ff8b(0x1c52)][_0x16ff8b(0xbae)][_0x20aaaf]['message']});}}else _0x20bae3[_0x16ff8b(0x1bd0)]({'title':_0x46b68b['status']?_0x16ff8b(0x575)+_0x46b68b[_0x16ff8b(0x10b3)]+_0x16ff8b(0x21db)+_0x46b68b[_0x16ff8b(0x2115)]:_0x16ff8b(0x20df),'msg':_0x46b68b['data']?JSON['stringify'](_0x46b68b[_0x16ff8b(0x1c52)][_0x16ff8b(0x18ca)]):_0x46b68b[_0x16ff8b(0x18ca)]||_0x46b68b[_0x16ff8b(0x2915)]()});});},function(){});}function _0x38c121(_0xe2f988){return _0xe2f988===null?undefined:new Date(_0xe2f988);}function _0xd2bd4c(_0x40b345){const _0x238319=_0x3e42f7;_0x1b2551[_0x238319(0x268e)](_0x40b345);}}const _0x552cb2=_0x327095;;_0x565d33[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x2764),_0x49a1e3(0x974),'realtime',_0x49a1e3(0x298c),_0x49a1e3(0xdcf),'crudPermissions'];function _0x565d33(_0x4f6605,_0x302b92,_0x4b54ff,_0x471874,_0x19d7df,_0x46f793,_0x2afcf5,_0x514d9d,_0x5691f0,_0x3d26a5){const _0x5dff6d=_0x49a1e3,_0x4eddc7=this;_0x4eddc7[_0x5dff6d(0x1d3d)]=_0x5691f0[_0x5dff6d(0x808)](),_0x4eddc7[_0x5dff6d(0x2764)]=_0x19d7df,_0x4eddc7[_0x5dff6d(0x402)]=_0x3d26a5,_0x4eddc7[_0x5dff6d(0x252e)]=_0x2afcf5,_0x4eddc7[_0x5dff6d(0x23cb)]=[],_0x4eddc7[_0x5dff6d(0x13d1)]=[],_0x4eddc7['selectedItems']=[],_0x4eddc7[_0x5dff6d(0x206b)]=[],_0x4eddc7[_0x5dff6d(0x24e1)]=[],_0x4eddc7[_0x5dff6d(0xe9e)]=![],_0x4eddc7[_0x5dff6d(0x2483)]=_0x11d476,_0x4eddc7[_0x5dff6d(0x4c4)]=_0x2265e6,_0x4eddc7[_0x5dff6d(0x16cb)]=_0x4031ae,_0x4eddc7['dualMultiselectOptions']={'readOnly':!_0x4eddc7[_0x5dff6d(0x402)]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5dff6d(0x2494),'line1':_0x5dff6d(0x15c),'line2':['name',_0x5dff6d(0xe2f)],'line3':'','labelAll':_0x514d9d['instant'](_0x5dff6d(0x1da4)),'labelSelected':_0x514d9d[_0x5dff6d(0x2292)](_0x5dff6d(0xcf8)),'transferCallback':function(){const _0x1993e6=_0x5dff6d,_0x323f5d=_0x28c606()[_0x1993e6(0x1ad)](_0x4eddc7[_0x1993e6(0x24e1)],_0x4eddc7[_0x1993e6(0x1f4f)],'id');_0x4eddc7[_0x1993e6(0xe9e)]=_0x28c606()[_0x1993e6(0x940)](_0x323f5d)?![]:!![];}};function _0x11d476(){const _0xc4b05e=_0x5dff6d;return _0x5691f0[_0xc4b05e(0x4de)](_0xc4b05e(0x333))?_0x3a1e53()[_0xc4b05e(0x20cd)](function(_0x34ae0a){const _0x5c55b6=_0xc4b05e;_0x4b54ff[_0x5c55b6(0x1bd0)]({'title':_0x34ae0a[_0x5c55b6(0x10b3)]?_0x5c55b6(0x575)+_0x34ae0a[_0x5c55b6(0x10b3)]+_0x5c55b6(0x21db)+_0x34ae0a[_0x5c55b6(0x2115)]:_0x5c55b6(0x554),'msg':_0x34ae0a[_0x5c55b6(0x10b3)]?JSON[_0x5c55b6(0x2317)](_0x34ae0a['data']):_0x34ae0a['toString']()});}):_0x1652ff()[_0xc4b05e(0x64a)](function(_0x20bbc3){const _0x4f23a8=_0xc4b05e;return _0x4eddc7[_0x4f23a8(0xa21)]=_0x20bbc3,_0x3a1e53();})[_0xc4b05e(0x20cd)](function(_0x34188d){const _0x5ddf48=_0xc4b05e;_0x4b54ff[_0x5ddf48(0x1bd0)]({'title':_0x34188d['status']?_0x5ddf48(0x575)+_0x34188d['status']+_0x5ddf48(0x21db)+_0x34188d[_0x5ddf48(0x2115)]:_0x5ddf48(0x554),'msg':_0x34188d['status']?JSON[_0x5ddf48(0x2317)](_0x34188d['data']):_0x34188d[_0x5ddf48(0x2915)]()});});}function _0x1652ff(){return _0x302b92(function(_0x31a7dd,_0x3c149c){const _0x211642=a0_0x4127;_0x471874[_0x211642(0x16b2)]['get']({'userProfileId':_0x4eddc7[_0x211642(0x1d3d)][_0x211642(0x21ac)],'name':_0x211642(0x2132)})[_0x211642(0x15e7)][_0x211642(0x64a)](function(_0x594047){const _0x2cbed0=_0x211642,_0xe96fa9=_0x594047&&_0x594047[_0x2cbed0(0x28b8)]?_0x594047[_0x2cbed0(0x28b8)][0x0]:null;_0x31a7dd(_0xe96fa9);})[_0x211642(0x20cd)](function(_0x2bddd8){_0x3c149c(_0x2bddd8);});});}function _0x3a1e53(){return _0x302b92(function(_0x3afa79,_0x247e35){const _0x6f8e96=a0_0x4127;return _0xa05a17()['then'](function(_0x21bdfa){const _0x337cac=a0_0x4127;return _0x4eddc7[_0x337cac(0x23cb)]=_0x21bdfa[_0x337cac(0x28b8)]?_0x21bdfa[_0x337cac(0x28b8)]:[],_0x5691f0[_0x337cac(0x4de)](_0x337cac(0x333))?_0x21bdfa:_0x4eddc7['section']?_0x4eddc7[_0x337cac(0xa21)]['autoAssociation']?_0x21bdfa:_0x20cc97():null;})[_0x6f8e96(0x64a)](function(_0x48bba1){const _0x17638c=_0x6f8e96,_0x1c1e16=_0x48bba1&&_0x48bba1['rows']?_0x48bba1[_0x17638c(0x28b8)]:[];return _0x4eddc7[_0x17638c(0x13d1)]=_0x28c606()[_0x17638c(0x1de5)](_0x1c1e16,function(_0x40c8c5){const _0x5cfa5e=_0x17638c;return _0x28c606()[_0x5cfa5e(0x27bc)](_0x4eddc7[_0x5cfa5e(0x23cb)],{'id':_0x5691f0[_0x5cfa5e(0x4de)]('admin')||_0x4eddc7[_0x5cfa5e(0xa21)][_0x5cfa5e(0x11da)]?_0x40c8c5['id']:_0x40c8c5['resourceId']});}),_0x4eddc7['startingAllowedItems']=angular[_0x17638c(0x289e)](_0x4eddc7['allowedItems']),_0x4eddc7['items'][_0x17638c(0x1397)](function(_0x1f2a4c){const _0x3258c1=_0x17638c,_0x231bba=_0x28c606()[_0x3258c1(0x27bc)](_0x4eddc7[_0x3258c1(0x13d1)],{'id':_0x1f2a4c['id']});_0x5691f0[_0x3258c1(0x4de)]('admin')?_0x1f2a4c['isValid']=!![]:_0x1f2a4c[_0x3258c1(0x6f9)]=typeof _0x231bba!==_0x3258c1(0x19a1)?!![]:![];}),_0x75c3b();})[_0x6f8e96(0x64a)](function(_0x56946f){const _0x51a271=_0x6f8e96,_0x4ded3d=_0x56946f&&_0x56946f['rows']?_0x56946f[_0x51a271(0x28b8)]:[];_0x4eddc7[_0x51a271(0x1f4f)]=_0x28c606()[_0x51a271(0x1de5)](_0x4ded3d,function(_0x4f07ee){const _0xf089cb=_0x51a271,_0x7ed9f6=_0x28c606()[_0xf089cb(0x27bc)](_0x4eddc7[_0xf089cb(0x23cb)],{'id':_0x4f07ee['id']});return _0x7ed9f6['penalty']=_0x4f07ee[_0xf089cb(0x54f)]?_0xf089cb(0xcff)+_0x4f07ee['UserList'][_0xf089cb(0x70f)]:'',_0x7ed9f6[_0xf089cb(0xe2f)]=typeof _0x4f07ee[_0xf089cb(0xe2f)]!=='undefined'?'<'+_0x4f07ee[_0xf089cb(0xe2f)]+'>':'',_0x7ed9f6;}),_0x4eddc7['startingSelectedItems']=angular[_0x51a271(0x289e)](_0x4eddc7[_0x51a271(0x1f4f)]),_0x4eddc7[_0x51a271(0x1eeb)][_0x51a271(0x1f4f)]=_0x4eddc7[_0x51a271(0x1f4f)],_0x4eddc7[_0x51a271(0x1eeb)][_0x51a271(0x23cb)]=_0x28c606()['differenceBy'](_0x4eddc7['allowedItems'],_0x4eddc7[_0x51a271(0x1eeb)][_0x51a271(0x1f4f)],'id'),_0x3afa79();})[_0x6f8e96(0x20cd)](function(_0x18a318){_0x247e35(_0x18a318);});});}function _0x20cc97(){return _0x302b92(function(_0xd0619,_0x1f516f){const _0x11c300=a0_0x4127;return _0x471874[_0x11c300(0x1617)][_0x11c300(0x896)]({'sectionId':_0x4eddc7[_0x11c300(0xa21)]['id'],'nolimit':!![]})[_0x11c300(0x15e7)]['then'](function(_0x286be6){_0xd0619(_0x286be6);})[_0x11c300(0x20cd)](function(_0x219600){_0x1f516f(_0x219600);});});}function _0x75c3b(){return _0x302b92(function(_0x2057d1,_0x2c8883){const _0x4754d2=a0_0x4127;return _0x471874[_0x4754d2(0x19f8)][_0x4754d2(0xa10)]({'id':_0x4eddc7[_0x4754d2(0x2764)]['id'],'fields':_0x4754d2(0x2105),'nolimit':!![],'role':_0x4754d2(0x11ae)})['$promise'][_0x4754d2(0x64a)](function(_0x2b31ee){_0x2057d1(_0x2b31ee);})[_0x4754d2(0x20cd)](function(_0x1e486a){_0x2c8883(_0x1e486a);});});}function _0xa05a17(){return _0x302b92(function(_0x35ea9b,_0x12d449){const _0x4643a5=a0_0x4127;return _0x471874[_0x4643a5(0x2e8)][_0x4643a5(0x896)]({'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0x4643a5(0x15e7)][_0x4643a5(0x64a)](function(_0x4bd8b9){_0x35ea9b(_0x4bd8b9);})[_0x4643a5(0x20cd)](function(_0x1f6e8e){_0x12d449(_0x1f6e8e);});});}function _0x4489b1(_0x26f47f){return _0x302b92(function(_0x5efb3e,_0x2e7e82){const _0x29ada0=a0_0x4127;_0x28c606()[_0x29ada0(0x940)](_0x26f47f)?_0x5efb3e():_0x471874[_0x29ada0(0x19f8)][_0x29ada0(0x1575)]({'id':_0x4eddc7[_0x29ada0(0x2764)]['id'],'ids':_0x28c606()[_0x29ada0(0x1de5)](_0x26f47f,'id')})[_0x29ada0(0x15e7)][_0x29ada0(0x64a)](function(){_0x5efb3e();})[_0x29ada0(0x20cd)](function(_0x2a9af6){_0x2e7e82(_0x2a9af6);});});}function _0x2efcfa(_0x1318fc){return _0x302b92(function(_0x5d84f8,_0x73cc9e){const _0x2379ac=a0_0x4127;_0x28c606()['isEmpty'](_0x1318fc)?_0x5d84f8():_0x471874[_0x2379ac(0x19f8)][_0x2379ac(0x251d)]({'id':_0x4eddc7[_0x2379ac(0x2764)]['id'],'ids':_0x28c606()['map'](_0x1318fc,'id')})[_0x2379ac(0x15e7)][_0x2379ac(0x64a)](function(){_0x5d84f8();})['catch'](function(_0x2321fe){_0x73cc9e(_0x2321fe);});});}function _0x2265e6(){const _0x85676=_0x5dff6d,_0x1b9634=_0x28c606()[_0x85676(0x23e5)](_0x4eddc7[_0x85676(0x24e1)],_0x4eddc7[_0x85676(0x1f4f)],'id'),_0x463924=_0x28c606()[_0x85676(0x23e5)](_0x4eddc7[_0x85676(0x1f4f)],_0x4eddc7[_0x85676(0x24e1)],'id');return _0x2efcfa(_0x1b9634)[_0x85676(0x64a)](function(){return _0x4489b1(_0x463924);})['then'](function(){const _0x46f271=_0x85676;_0x4eddc7['pendingChanges']=![],_0x4eddc7['startingAllowedItems']=angular[_0x46f271(0x289e)](_0x4eddc7[_0x46f271(0x13d1)]),_0x4eddc7[_0x46f271(0x24e1)]=angular['copy'](_0x4eddc7['selectedItems']),_0x4b54ff[_0x46f271(0x1339)]({'title':_0x46f271(0x24d6),'msg':_0x46f271(0x1db)});})[_0x85676(0x20cd)](function(_0x209553){const _0x5c396e=_0x85676;_0x4b54ff[_0x5c396e(0x1bd0)]({'title':_0x209553[_0x5c396e(0x10b3)]?'API:'+_0x209553[_0x5c396e(0x10b3)]+'\x20-\x20'+_0x209553['statusText']:_0x5c396e(0x1226),'msg':_0x209553['status']?JSON[_0x5c396e(0x2317)](_0x209553[_0x5c396e(0x1c52)]):_0x209553[_0x5c396e(0x2915)]()});});}function _0x4031ae(){const _0x3de2f5=_0x5dff6d;_0x4f6605[_0x3de2f5(0x268e)]();}}const _0x486578=_0x565d33;;const _0x15621f=_0x2e4a48['p']+_0x49a1e3(0x256e);;_0x94486e[_0x49a1e3(0x1e73)]=['$cookies',_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$q','$translate',_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x680),'api',_0x49a1e3(0xdcf)];function _0x94486e(_0x3c5d95,_0x53545a,_0x1f1fc4,_0x5dc17d,_0x92364b,_0x5ad9dc,_0x4ba364,_0x3d306e,_0x38dc34,_0x4cf731,_0x33d589){const _0x74e241=_0x49a1e3,_0x543841=this;_0x543841['currentUser']=_0x33d589[_0x74e241(0x808)](),_0x543841['list']={},_0x543841[_0x74e241(0x297b)]={'count':0x0,'rows':[]},_0x543841[_0x74e241(0x1ea3)]=[],_0x543841[_0x74e241(0x402)],_0x543841[_0x74e241(0x289a)]={'fields':'createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType','limit':0xa,'page':0x1},_0x543841[_0x74e241(0x9d4)]=_0x28c606()[_0x74e241(0x161e)]([{'option':_0x74e241(0x1378),'value':_0x74e241(0x10f7)},{'option':_0x74e241(0x25d4),'value':_0x74e241(0x1460)},{'option':_0x74e241(0x7f6),'value':_0x74e241(0x136a)},{'option':_0x74e241(0x1f60),'value':'\x27switch\x27'},{'option':_0x74e241(0x4b3),'value':'\x27datetime\x27'}],function(_0x202518){const _0x564b7d=_0x74e241;return _0x28c606()[_0x564b7d(0x1353)](_0x202518[_0x564b7d(0x1096)],new RegExp('\x27','g'),'');}),_0x543841[_0x74e241(0x253a)]=_0x28c606()[_0x74e241(0x161e)]([{'option':'Voice','value':'\x27voice\x27'}],function(_0x520140){const _0x50e9ae=_0x74e241;return _0x28c606()[_0x50e9ae(0x1353)](_0x520140[_0x50e9ae(0x1096)],new RegExp('\x27','g'),'');}),_0x543841[_0x74e241(0x2354)]=_0x2fe944,_0x543841[_0x74e241(0x217e)]=_0x555b28,_0x543841[_0x74e241(0x1339)]=_0x49604f,_0x543841[_0x74e241(0x24bd)]=_0x49f7c8,_0x543841['createOrEditListCustomField']=_0x105cf5,_0x543841[_0x74e241(0x2167)]=_0x553a80,_0x543841[_0x74e241(0x1118)]=_0x5ebf7d,_0x543841[_0x74e241(0x2195)]=_0x158ef3;function _0x2fe944(_0x2c9231,_0x3ce6ef){const _0xa00d1a=_0x74e241;_0x543841[_0xa00d1a(0x2764)]=_0x2c9231,_0x543841[_0xa00d1a(0x402)]=typeof _0x3ce6ef!==_0xa00d1a(0x19a1)?_0x3ce6ef:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x543841['query'][_0xa00d1a(0x869)]=_0x543841[_0xa00d1a(0x2764)]['id'],_0x543841[_0xa00d1a(0x289a)]['id']=_0x543841['list']['id'],_0x49f7c8();}function _0x555b28(_0x2ee85e,_0x240d0f){const _0x5d0462=_0x74e241,_0xf445d3=_0x4ba364[_0x5d0462(0x856)]()[_0x5d0462(0x2021)](_0x5d0462(0x2352))['htmlContent'](_0x5d0462(0x50b)+(_0x2ee85e[_0x5d0462(0x2494)]||_0x2ee85e['id']&&_0x28c606()['upperFirst'](_0x5d0462(0x7a2))+_0x2ee85e['id']||_0x5d0462(0x1753))+''+'\x20will\x20be\x20deleted.')[_0x5d0462(0x213e)](_0x5d0462(0x84a))[_0x5d0462(0x2283)](_0x240d0f)['ok']('OK')[_0x5d0462(0x101a)](_0x5d0462(0x18fd));_0x4ba364[_0x5d0462(0xa60)](_0xf445d3)[_0x5d0462(0x64a)](function(){_0x5ebf7d(_0x2ee85e);},function(){const _0x5f35c9=_0x5d0462;console[_0x5f35c9(0x9b4)]('CANCEL');});}function _0x49604f(_0x1c1722){const _0x5ecdf1=_0x74e241;_0x543841[_0x5ecdf1(0x297b)]=_0x1c1722||{'count':0x0,'rows':[]};}function _0x49f7c8(){const _0x2d9257=_0x74e241;_0x543841['query'][_0x2d9257(0x24f9)]=(_0x543841[_0x2d9257(0x289a)][_0x2d9257(0xc72)]-0x1)*_0x543841[_0x2d9257(0x289a)][_0x2d9257(0x25bb)],_0x543841[_0x2d9257(0x1713)]=_0x4cf731[_0x2d9257(0x19f8)][_0x2d9257(0x231f)](_0x543841[_0x2d9257(0x289a)],_0x49604f)[_0x2d9257(0x15e7)];}function _0x105cf5(_0x231283,_0x4aa656){const _0x8b971e=_0x74e241;_0x4ba364['show']({'controller':_0x8b971e(0x694),'controllerAs':'vm','templateUrl':_0x15621f,'parent':angular[_0x8b971e(0x1f81)](_0x3d306e['body']),'targetEvent':_0x231283,'clickOutsideToClose':!![],'locals':{'list':_0x543841[_0x8b971e(0x2764)],'customField':_0x4aa656,'customFields':_0x543841[_0x8b971e(0x297b)]['rows'],'license':null,'setting':null,'crudPermissions':_0x543841[_0x8b971e(0x402)]}});}function _0x5ebf7d(_0x43a7b8){const _0x4b79db=_0x74e241;_0x4cf731[_0x4b79db(0x27ca)]['delete']({'id':_0x43a7b8['id']})[_0x4b79db(0x15e7)][_0x4b79db(0x64a)](function(){const _0x27559c=_0x4b79db;_0x28c606()[_0x27559c(0x21c7)](_0x543841[_0x27559c(0x297b)]['rows'],{'id':_0x43a7b8['id']}),_0x543841[_0x27559c(0x297b)]['count']-=0x1,!_0x543841['listCustomFields'][_0x27559c(0x28b8)]['length']&&_0x49f7c8(),_0x38dc34['success']({'title':_0x27559c(0x1350),'msg':_0x43a7b8[_0x27559c(0x2494)]?_0x43a7b8['name']+_0x27559c(0x1fa8):''});})['catch'](function(_0x555a13){const _0x5b156d=_0x4b79db;if(_0x555a13[_0x5b156d(0x1c52)]&&_0x555a13[_0x5b156d(0x1c52)]['errors']&&_0x555a13[_0x5b156d(0x1c52)][_0x5b156d(0xbae)]['length']){_0x543841['errors']=_0x555a13['data']['errors']||[{'message':_0x555a13[_0x5b156d(0x2915)](),'type':_0x5b156d(0x118d)}];for(let _0xb2949e=0x0;_0xb2949e<_0x555a13[_0x5b156d(0x1c52)][_0x5b156d(0xbae)]['length'];_0xb2949e++){_0x38dc34[_0x5b156d(0x1bd0)]({'title':_0x555a13[_0x5b156d(0x1c52)]['errors'][_0xb2949e]['type'],'msg':_0x555a13[_0x5b156d(0x1c52)][_0x5b156d(0xbae)][_0xb2949e][_0x5b156d(0x18ca)]});}}else _0x38dc34['error']({'title':_0x555a13[_0x5b156d(0x10b3)]?'API:'+_0x555a13['status']+'\x20-\x20'+_0x555a13[_0x5b156d(0x2115)]:_0x5b156d(0x118d),'msg':_0x555a13[_0x5b156d(0x1c52)]?JSON[_0x5b156d(0x2317)](_0x555a13[_0x5b156d(0x1c52)][_0x5b156d(0x18ca)]):_0x555a13[_0x5b156d(0x18ca)]||_0x555a13[_0x5b156d(0x2915)]()});});}function _0x553a80(){const _0x4305d1=_0x74e241,_0x5ea8c2=angular[_0x4305d1(0x289e)](_0x543841[_0x4305d1(0x1ea3)]);return _0x543841[_0x4305d1(0x1ea3)]=[],_0x5ea8c2;}function _0x158ef3(_0x3b39e5){const _0x1f8f30=_0x74e241,_0xcca80a=_0x4ba364[_0x1f8f30(0x856)]()['title'](_0x1f8f30(0x2867))['htmlContent'](_0x1f8f30(0x50b)+_0x543841['selectedListCustomFields'][_0x1f8f30(0x1b9e)]+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x1f8f30(0x1db3))['targetEvent'](_0x3b39e5)['ok']('OK')['cancel'](_0x1f8f30(0x18fd));_0x4ba364[_0x1f8f30(0xa60)](_0xcca80a)['then'](function(){const _0x2bbf19=_0x1f8f30;_0x543841['selectedListCustomFields'][_0x2bbf19(0x1397)](function(_0x5ee76e){_0x5ebf7d(_0x5ee76e);}),_0x543841[_0x2bbf19(0x1ea3)]=[];});}let _0xde1667=!![],_0x27c8be=0x1;_0x53545a['$watch'](_0x74e241(0x1200),function(_0x3578fc,_0x12aa9b){const _0x424f3f=_0x74e241;_0xde1667?_0x5ad9dc(function(){_0xde1667=![];}):(!_0x12aa9b&&(_0x27c8be=_0x543841[_0x424f3f(0x289a)][_0x424f3f(0xc72)]),_0x3578fc!==_0x12aa9b&&(_0x543841[_0x424f3f(0x289a)][_0x424f3f(0xc72)]=0x1),!_0x3578fc&&(_0x543841['query'][_0x424f3f(0xc72)]=_0x27c8be),_0x49f7c8());});}const _0x5f1f06=_0x94486e;;_0x499ec5[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog','$q','$translate','toasty',_0x49a1e3(0x1559),'customField',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'crudPermissions'];function _0x499ec5(_0x49f5f7,_0x4a1f29,_0x401af7,_0x1fcd70,_0x2234f2,_0x2963a7,_0x40a91d,_0x35f20b,_0x39c94d,_0x1b9b55,_0x17be86,_0xe2cbf6,_0x255bc7,_0x2998f3){const _0x14c2bd=_0x49a1e3,_0x2fc40f=this;_0x2fc40f[_0x14c2bd(0x1d3d)]=_0x17be86[_0x14c2bd(0x808)](),_0x2fc40f[_0x14c2bd(0xbae)]=[],_0x2fc40f[_0x14c2bd(0x28d6)]=_0x255bc7,_0x2fc40f[_0x14c2bd(0x1947)]=_0xe2cbf6,_0x2fc40f[_0x14c2bd(0x402)]=_0x2998f3,_0x2fc40f[_0x14c2bd(0x6c2)]={},_0x2fc40f[_0x14c2bd(0xccc)]=_0x2fc40f[_0x14c2bd(0x28d6)]&&_0x2fc40f[_0x14c2bd(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2fc40f[_0x14c2bd(0x2021)]=_0x14c2bd(0x1e28),_0x2fc40f['sortable']={'animation':0x320,'sort':!![],'onSort':function(){const _0x289cb4=_0x14c2bd;_0x49f5f7['customFieldForm'][_0x289cb4(0x74f)]=![];}},_0x2fc40f[_0x14c2bd(0x1753)]=_0x39c94d,_0x2fc40f[_0x14c2bd(0x1559)]=_0x35f20b,_0x2fc40f[_0x14c2bd(0x1921)]=![];!_0x2fc40f[_0x14c2bd(0x1753)]&&(_0x2fc40f['customField']={'type':_0x14c2bd(0x39b),'actionType':_0x14c2bd(0x227c)},_0x2fc40f['title']=_0x14c2bd(0x10fa),_0x2fc40f['newCustomField']=!![]);_0x4a1f29[_0x14c2bd(0x1b48)]['id']&&(_0x2fc40f[_0x14c2bd(0x1753)][_0x14c2bd(0x869)]=_0x4a1f29[_0x14c2bd(0x1b48)]['id']);_0x49f5f7[_0x14c2bd(0xc62)](_0x14c2bd(0x1a50),function(_0x17f4f8,_0x202014){const _0x447ba4=_0x14c2bd;if(_0x17f4f8!==_0x202014)switch(_0x17f4f8){case _0x447ba4(0x39b):_0x2fc40f[_0x447ba4(0x1753)][_0x447ba4(0x2146)]='';break;case'select':_0x2fc40f[_0x447ba4(0x1753)]['values']=[];break;default:}}),_0x2fc40f[_0x14c2bd(0x1b3e)]=_0xd37fe,_0x2fc40f[_0x14c2bd(0x1f9e)]=_0x520219,_0x2fc40f[_0x14c2bd(0x22a)]=_0x3118a,_0x2fc40f[_0x14c2bd(0x1605)]=_0x3799eb,_0x2fc40f[_0x14c2bd(0x290c)]=_0xcc3d67,_0x2fc40f[_0x14c2bd(0x36e)]=_0x25e8ee,_0x2fc40f[_0x14c2bd(0x1a23)]=_0x32dbf9,_0x2fc40f[_0x14c2bd(0x16cb)]=_0x531bda;function _0xcc3d67(_0x593a77){const _0x5b5266=_0x14c2bd;_0x593a77[_0x5b5266(0x1954)]({'value':_0x5b5266(0xc3b)}),_0x49f5f7['customFieldForm'][_0x5b5266(0x74f)]=![];}function _0x25e8ee(_0x1fc28b,_0x31e003){const _0x1231b0=_0x14c2bd;_0x1fc28b[_0x1231b0(0x18f0)](_0x31e003,0x1),_0x49f5f7[_0x1231b0(0xa1c)][_0x1231b0(0x74f)]=![];}function _0x32dbf9(_0x460ef4){const _0x4f6cfe=_0x14c2bd,_0x1c8496=_0x460ef4[_0x4f6cfe(0x1b9e)];for(let _0xffbb69=0x0;_0xffbb69<_0x1c8496;_0xffbb69++){_0x460ef4['splice'](0x0,0x1);}_0x49f5f7[_0x4f6cfe(0xa1c)][_0x4f6cfe(0x74f)]=![];}function _0xd37fe(){const _0x210fd7=_0x14c2bd;_0x2fc40f[_0x210fd7(0xbae)]=[],_0x1b9b55[_0x210fd7(0x19f8)][_0x210fd7(0x235f)]({'id':_0x4a1f29['params']['id']},_0x2fc40f['customField'])[_0x210fd7(0x15e7)][_0x210fd7(0x64a)](function(_0x51a8c6){const _0x27f32e=_0x210fd7;_0x2fc40f[_0x27f32e(0x1559)][_0x27f32e(0x1891)](_0x51a8c6['toJSON']()),_0x40a91d[_0x27f32e(0x1339)]({'title':_0x27f32e(0x155c),'msg':_0x2fc40f[_0x27f32e(0x1753)][_0x27f32e(0x2494)]?_0x2fc40f[_0x27f32e(0x1753)]['name']+_0x27f32e(0x258d):''}),_0x531bda(_0x51a8c6);})[_0x210fd7(0x20cd)](function(_0x635182){const _0x4ea217=_0x210fd7;if(_0x635182[_0x4ea217(0x1c52)]&&_0x635182[_0x4ea217(0x1c52)][_0x4ea217(0xbae)]&&_0x635182[_0x4ea217(0x1c52)]['errors'][_0x4ea217(0x1b9e)]){_0x2fc40f[_0x4ea217(0xbae)]=_0x635182[_0x4ea217(0x1c52)][_0x4ea217(0xbae)]||[{'message':_0x635182['toString'](),'type':_0x4ea217(0x1cb1)}];for(let _0xe682c5=0x0;_0xe682c5<_0x635182[_0x4ea217(0x1c52)]['errors'][_0x4ea217(0x1b9e)];_0xe682c5+=0x1){_0x40a91d[_0x4ea217(0x1bd0)]({'title':_0x635182[_0x4ea217(0x1c52)][_0x4ea217(0xbae)][_0xe682c5][_0x4ea217(0x2185)],'msg':_0x635182[_0x4ea217(0x1c52)][_0x4ea217(0xbae)][_0xe682c5][_0x4ea217(0x18ca)]});}}else _0x40a91d[_0x4ea217(0x1bd0)]({'title':_0x635182['status']?_0x4ea217(0x575)+_0x635182[_0x4ea217(0x10b3)]+_0x4ea217(0x21db)+_0x635182[_0x4ea217(0x2115)]:_0x4ea217(0x1cb1),'msg':_0x635182[_0x4ea217(0x1c52)]?JSON[_0x4ea217(0x2317)](_0x635182[_0x4ea217(0x1c52)][_0x4ea217(0x18ca)]):_0x635182[_0x4ea217(0x2915)]()});});}function _0x520219(){const _0x564ebd=_0x14c2bd;_0x2fc40f[_0x564ebd(0xbae)]=[],_0x1b9b55[_0x564ebd(0x27ca)][_0x564ebd(0x2603)]({'id':_0x2fc40f[_0x564ebd(0x1753)]['id']},_0x2fc40f[_0x564ebd(0x1753)])[_0x564ebd(0x15e7)][_0x564ebd(0x64a)](function(_0x691889){const _0x84a7af=_0x564ebd,_0x2748eb=_0x28c606()[_0x84a7af(0x27bc)](_0x2fc40f[_0x84a7af(0x1559)],{'id':_0x691889['id']});_0x2748eb&&_0x28c606()[_0x84a7af(0x14fe)](_0x2748eb,_0x28c606()[_0x84a7af(0x27bb)](_0x691889['toJSON'](),_0x28c606()[_0x84a7af(0x1ec6)](_0x2748eb))),_0x40a91d[_0x84a7af(0x1339)]({'title':_0x84a7af(0x20d),'msg':_0x2fc40f[_0x84a7af(0x1753)][_0x84a7af(0x2494)]?_0x2fc40f[_0x84a7af(0x1753)]['name']+_0x84a7af(0x271):''}),_0x531bda(_0x691889);})[_0x564ebd(0x20cd)](function(_0x32358e){const _0x4be34e=_0x564ebd;if(_0x32358e[_0x4be34e(0x1c52)]&&_0x32358e[_0x4be34e(0x1c52)][_0x4be34e(0xbae)]&&_0x32358e[_0x4be34e(0x1c52)]['errors']['length']){_0x2fc40f[_0x4be34e(0xbae)]=_0x32358e[_0x4be34e(0x1c52)][_0x4be34e(0xbae)]||[{'message':_0x32358e[_0x4be34e(0x2915)](),'type':_0x4be34e(0x1e1d)}];for(let _0x3b80da=0x0;_0x3b80da<_0x32358e[_0x4be34e(0x1c52)][_0x4be34e(0xbae)][_0x4be34e(0x1b9e)];_0x3b80da++){_0x40a91d['error']({'title':_0x32358e[_0x4be34e(0x1c52)][_0x4be34e(0xbae)][_0x3b80da][_0x4be34e(0x2185)],'msg':_0x32358e[_0x4be34e(0x1c52)]['errors'][_0x3b80da][_0x4be34e(0x18ca)]});}}else _0x40a91d[_0x4be34e(0x1bd0)]({'title':_0x32358e[_0x4be34e(0x10b3)]?'API:'+_0x32358e['status']+_0x4be34e(0x21db)+_0x32358e['statusText']:_0x4be34e(0x1e1d),'msg':_0x32358e[_0x4be34e(0x1c52)]?JSON[_0x4be34e(0x2317)](_0x32358e[_0x4be34e(0x1c52)][_0x4be34e(0x18ca)]):_0x32358e[_0x4be34e(0x2915)]()});});}function _0x3118a(_0x5b4596){const _0x29cc73=_0x14c2bd;_0x2fc40f[_0x29cc73(0xbae)]=[];const _0xfda642=_0x1fcd70[_0x29cc73(0x856)]()[_0x29cc73(0x2021)](_0x29cc73(0x103a))[_0x29cc73(0x12b8)](_0x29cc73(0x21ba))[_0x29cc73(0x213e)](_0x29cc73(0x42c))['ok']('Delete')['cancel'](_0x29cc73(0x1dc6))[_0x29cc73(0x2283)](_0x5b4596);_0x1fcd70[_0x29cc73(0xa60)](_0xfda642)[_0x29cc73(0x64a)](function(){const _0x4e3fd4=_0x29cc73;_0x1b9b55[_0x4e3fd4(0x27ca)][_0x4e3fd4(0xabd)]({'id':_0x2fc40f[_0x4e3fd4(0x1753)]['id']})[_0x4e3fd4(0x15e7)]['then'](function(){const _0x3f508e=_0x4e3fd4;_0x28c606()[_0x3f508e(0x21c7)](_0x2fc40f[_0x3f508e(0x1559)],{'id':_0x2fc40f[_0x3f508e(0x1753)]['id']}),_0x40a91d[_0x3f508e(0x1339)]({'title':_0x3f508e(0x261a),'msg':(_0x2fc40f['customField'][_0x3f508e(0x2494)]||_0x3f508e(0x1753))+_0x3f508e(0x1fa8)}),_0x531bda(_0x2fc40f[_0x3f508e(0x1753)]);})[_0x4e3fd4(0x20cd)](function(_0xa17f6c){const _0x1df3ae=_0x4e3fd4;if(_0xa17f6c['data']&&_0xa17f6c[_0x1df3ae(0x1c52)][_0x1df3ae(0xbae)]&&_0xa17f6c[_0x1df3ae(0x1c52)][_0x1df3ae(0xbae)]['length']){_0x2fc40f[_0x1df3ae(0xbae)]=_0xa17f6c[_0x1df3ae(0x1c52)][_0x1df3ae(0xbae)]||[{'message':_0xa17f6c[_0x1df3ae(0x2915)](),'type':_0x1df3ae(0x14ef)}];for(let _0x5d7dde=0x0;_0x5d7dde<_0xa17f6c[_0x1df3ae(0x1c52)][_0x1df3ae(0xbae)]['length'];_0x5d7dde++){_0x40a91d['error']({'title':_0xa17f6c['data'][_0x1df3ae(0xbae)][_0x5d7dde][_0x1df3ae(0x2185)],'msg':_0xa17f6c['data'][_0x1df3ae(0xbae)][_0x5d7dde][_0x1df3ae(0x18ca)]});}}else _0x40a91d[_0x1df3ae(0x1bd0)]({'title':_0xa17f6c[_0x1df3ae(0x10b3)]?_0x1df3ae(0x575)+_0xa17f6c[_0x1df3ae(0x10b3)]+_0x1df3ae(0x21db)+_0xa17f6c['statusText']:_0x1df3ae(0x14ef),'msg':_0xa17f6c[_0x1df3ae(0x1c52)]?JSON[_0x1df3ae(0x2317)](_0xa17f6c[_0x1df3ae(0x1c52)][_0x1df3ae(0x18ca)]):_0xa17f6c[_0x1df3ae(0x18ca)]||_0xa17f6c[_0x1df3ae(0x2915)]()});});},function(){});}function _0x3799eb(_0x207aab){return _0x207aab===null?undefined:new Date(_0x207aab);}function _0x531bda(_0x5f184a){const _0x445615=_0x14c2bd;_0x1fcd70[_0x445615(0x268e)](_0x5f184a);}}const _0x6dc894=_0x499ec5;;const _0x2a5698=_0x2e4a48['p']+'src/js/modules/main/apps/contactmanager/views/lists/edit/agentadd/agentadd.html/agentadd.html';;_0x5c2413[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),'$location','$mdDialog',_0x49a1e3(0x1373),'$translate','license',_0x49a1e3(0x28d6),'api','toasty',_0x49a1e3(0xdcf),_0x49a1e3(0x2764),_0x49a1e3(0x16b2)];function _0x5c2413(_0x38526a,_0x4addf9,_0x2af27a,_0x76f0a5,_0xd1e4af,_0x55b094,_0x5bc07e,_0x5d6c45,_0x2ef867,_0x11888b,_0x3b293a,_0x4e9705){const _0x386794=_0x49a1e3,_0x56a71d=this;_0x56a71d[_0x386794(0x1d3d)]=_0x11888b['getCurrentUser'](),_0x56a71d['license']=_0x55b094,_0x56a71d[_0x386794(0x28d6)]=_0x5bc07e,_0x56a71d['passwordPattern']=_0x56a71d[_0x386794(0x28d6)][_0x386794(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x56a71d[_0x386794(0xb36)]=_0x4addf9[_0x386794(0x48e)]()+_0x386794(0xe1f)+_0x4addf9[_0x386794(0x1e5d)](),_0x56a71d['list']=_0x3b293a||_0x38526a[_0x386794(0x1b48)]['list']||{},_0x56a71d[_0x386794(0x16b2)]=_0x4e9705&&_0x4e9705[_0x386794(0xb90)]==0x1?_0x4e9705[_0x386794(0x28b8)][0x0]:null,_0x56a71d[_0x386794(0x402)]=_0x11888b[_0x386794(0xa7e)](_0x56a71d[_0x386794(0x16b2)]?_0x56a71d['userProfileSection'][_0x386794(0x402)]:null),_0x56a71d['hasModulePermissions']={},_0x56a71d['selectedTab']=_0x38526a[_0x386794(0x1b48)][_0x386794(0x1222)]||0x0,_0x56a71d[_0x386794(0x505)]=_0x18e448,_0x56a71d[_0x386794(0x104a)]=_0x29bda1,_0x56a71d['alert']=_0x2ef867[_0x386794(0x772)],_0x56a71d[_0x386794(0x13b2)]=_0x4cf3fc,_0x56a71d[_0x386794(0x226d)]=_0x140253;function _0x18e448(_0xdb1716){const _0x56d627=_0x386794;if(_0x11888b['hasRole'](_0x56d627(0x333)))_0x38526a['go'](_0x56d627(0x88d),{'ListId':_0xdb1716['id']});else return _0x5d6c45[_0x56d627(0x16b2)][_0x56d627(0x896)]({'userProfileId':_0x11888b[_0x56d627(0x808)]()[_0x56d627(0x21ac)],'sectionId':0x12f})[_0x56d627(0x15e7)][_0x56d627(0x64a)](function(_0x31e3a3){const _0x5e2be4=_0x56d627,_0x11fc7c=_0x31e3a3&&_0x31e3a3['rows']?_0x31e3a3[_0x5e2be4(0x28b8)][0x0]:null;_0x11fc7c&&_0x11fc7c[_0x5e2be4(0xe49)]?_0x38526a['go'](_0x5e2be4(0x88d),{'ListId':_0xdb1716['id']}):_0x2ef867['info']({'title':_0xd1e4af[_0x5e2be4(0x2292)](_0x5e2be4(0x111a)),'msg':_0xd1e4af['instant'](_0x5e2be4(0x229))});})[_0x56d627(0x20cd)](function(_0x5861a0){const _0x2f1328=_0x56d627;_0x2ef867[_0x2f1328(0x1bd0)]({'title':_0x5861a0[_0x2f1328(0x10b3)]?_0x2f1328(0x575)+_0x5861a0[_0x2f1328(0x10b3)]+_0x2f1328(0x21db)+_0x5861a0['statusText']:_0x2f1328(0x942),'msg':_0x5861a0['status']?JSON[_0x2f1328(0x2317)](_0x5861a0[_0x2f1328(0x1c52)]):_0x5861a0['toString']()});});}function _0x29bda1(_0x49de00,_0x51ffac){const _0x3eb8d9=_0x386794;_0x2af27a[_0x3eb8d9(0xa60)]({'controller':'ListagentaddController','controllerAs':'vm','templateUrl':_0x2a5698,'parent':angular['element'](_0x76f0a5['body']),'targetEvent':_0x51ffac,'clickOutsideToClose':!![],'locals':{'list':_0x49de00,'lists':_0x56a71d['lists']?_0x56a71d['lists'][_0x3eb8d9(0x28b8)]:[],'crudPermissions':_0x56a71d[_0x3eb8d9(0x402)],'realtime':![]}});}function _0x4cf3fc(){_0x38526a['go']('app.contactmanager.lists',{},{'reload':'app.contactmanager.lists'});}function _0x140253(){const _0x3e3e91=_0x386794;_0x5d6c45['cmList'][_0x3e3e91(0x2603)]({'id':_0x56a71d['list']['id']},_0x56a71d[_0x3e3e91(0x2764)])[_0x3e3e91(0x15e7)][_0x3e3e91(0x64a)](function(){const _0x2d0824=_0x3e3e91;_0x2ef867['success']({'title':'List\x20updated!','msg':_0x56a71d[_0x2d0824(0x2764)][_0x2d0824(0x2494)]?_0x56a71d['list']['name']+'\x20has\x20been\x20updated!':''});})[_0x3e3e91(0x20cd)](function(_0x353d39){const _0x4d0a93=_0x3e3e91;_0x2ef867[_0x4d0a93(0x1bd0)]({'title':_0x353d39['status']?'API:'+_0x353d39[_0x4d0a93(0x10b3)]+_0x4d0a93(0x21db)+_0x353d39[_0x4d0a93(0x2115)]:_0x4d0a93(0x118d),'msg':_0x353d39['data']?JSON[_0x4d0a93(0x2317)](_0x353d39['data']):_0x353d39[_0x4d0a93(0x2915)]()});});}}const _0x3b0be6=_0x5c2413;;const _0x482291=_0x2e4a48['p']+_0x49a1e3(0x21dd);;_0xbd4fc5['$inject']=['$scope',_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf)];function _0xbd4fc5(_0x2d9323,_0xea715a,_0x3f6d01,_0x302422,_0x317f81,_0x1be1eb,_0x5e3adf,_0x396f0a,_0xad806e,_0x325a30,_0x84f5c2){const _0x35e1cf=_0x49a1e3,_0x3fbaca=this;_0x3fbaca['currentUser']=_0x84f5c2[_0x35e1cf(0x808)](),_0x3fbaca['dispositions']={'count':0x0,'rows':[]},_0x3fbaca[_0x35e1cf(0x1403)]=[],_0x3fbaca[_0x35e1cf(0x402)],_0x3fbaca[_0x35e1cf(0x20c7)]={'first':_0x35e1cf(0x1d03),'second':'2nd','third':'3rd'},_0x3fbaca[_0x35e1cf(0x289a)]={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':'-updatedAt','limit':0xa,'page':0x1},_0x3fbaca['init']=_0xb00cd5,_0x3fbaca[_0x35e1cf(0x217e)]=_0x99656,_0x3fbaca[_0x35e1cf(0x1339)]=_0x3f5a99,_0x3fbaca[_0x35e1cf(0xe50)]=_0x450ec8,_0x3fbaca[_0x35e1cf(0x22cb)]=_0x3a5c59,_0x3fbaca[_0x35e1cf(0x17f6)]=_0x2ec23b,_0x3fbaca[_0x35e1cf(0x28e3)]=_0x4e16cf,_0x3fbaca['deleteSelectedDispositions']=_0x6706d6,_0x3fbaca[_0x35e1cf(0x159)]=_0x328e77,_0x3fbaca[_0x35e1cf(0x2984)]=_0x3163d2;function _0xb00cd5(_0x467ad5,_0x584b22){const _0x5bc388=_0x35e1cf;_0x3fbaca[_0x5bc388(0x2764)]=_0x467ad5||{},_0x3fbaca[_0x5bc388(0x402)]=typeof _0x584b22!==_0x5bc388(0x19a1)?_0x584b22:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3fbaca[_0x5bc388(0x289a)][_0x5bc388(0x869)]=_0x3fbaca[_0x5bc388(0x2764)]['id'],_0x3fbaca[_0x5bc388(0x289a)]['id']=_0x3fbaca[_0x5bc388(0x2764)]['id'],_0x450ec8();}function _0x3a5c59(_0x38fb9b,_0xb18210){const _0x4004ea=_0x35e1cf;_0x317f81[_0x4004ea(0xa60)]({'controller':_0x4004ea(0xf48),'controllerAs':'vm','templateUrl':_0x482291,'parent':angular[_0x4004ea(0x1f81)](_0x1be1eb['body']),'targetEvent':_0x38fb9b,'clickOutsideToClose':!![],'locals':{'disposition':_0xb18210,'model':{'id':_0x3fbaca[_0x4004ea(0x2764)]['id'],'field':_0x4004ea(0x869),'route':'cmList'},'license':null,'setting':null,'crudPermissions':_0x3fbaca['crudPermissions']}})[_0x4004ea(0x64a)](function(_0x4f0aae){if(_0x4f0aae)_0x450ec8();});}function _0x99656(_0x1c7167,_0x2b67be){const _0x195880=_0x35e1cf,_0x4191ac=_0x28c606()[_0x195880(0x25f8)](_0x3fbaca[_0x195880(0x16d7)][_0x195880(0x28b8)],[_0x195880(0xbb9),_0x1c7167['id']]),_0x14a89b=_0x317f81['confirm']()['title'](_0x396f0a[_0x195880(0x2292)]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))['content'](_0x396f0a[_0x195880(0x2292)](_0x195880(0x2213)+(_0x4191ac?'DISPOSITION_DELETE_MESSAGE_CHILDREN':_0x195880(0x1942)),{'name':_0x1c7167[_0x195880(0x2494)]}))['ariaLabel']('Delete\x20disposition')['targetEvent'](_0x2b67be)['ok']('OK')[_0x195880(0x101a)](_0x396f0a[_0x195880(0x2292)](_0x195880(0x4f5)));_0x317f81[_0x195880(0xa60)](_0x14a89b)[_0x195880(0x64a)](function(){_0x2ec23b(_0x1c7167);});}function _0x3f5a99(_0xeb648d){const _0xdbfd04=_0x35e1cf;_0x3fbaca[_0xdbfd04(0x16d7)]=_0xeb648d||{'count':0x0,'rows':[]};}function _0x450ec8(){const _0xc0d0c3=_0x35e1cf;_0x3fbaca['query'][_0xc0d0c3(0x24f9)]=(_0x3fbaca[_0xc0d0c3(0x289a)][_0xc0d0c3(0xc72)]-0x1)*_0x3fbaca[_0xc0d0c3(0x289a)][_0xc0d0c3(0x25bb)],_0x3fbaca[_0xc0d0c3(0x1713)]=_0xad806e[_0xc0d0c3(0x19f8)][_0xc0d0c3(0xe50)](_0x3fbaca['query'],_0x3f5a99)[_0xc0d0c3(0x15e7)];}function _0x2ec23b(_0x2b2a96){const _0x4010e8=_0x35e1cf;_0xad806e[_0x4010e8(0x168b)]['delete']({'id':_0x2b2a96['id']})[_0x4010e8(0x15e7)][_0x4010e8(0x64a)](function(){const _0x467678=_0x4010e8;_0x450ec8(),_0x325a30[_0x467678(0x1339)]({'title':_0x396f0a[_0x467678(0x2292)](_0x467678(0x870))});})['catch'](function(_0x4066aa){const _0x3a80b0=_0x4010e8;if(_0x4066aa['data']&&_0x4066aa[_0x3a80b0(0x1c52)]['errors']&&_0x4066aa[_0x3a80b0(0x1c52)][_0x3a80b0(0xbae)][_0x3a80b0(0x1b9e)]){_0x3fbaca['errors']=_0x4066aa['data'][_0x3a80b0(0xbae)]||[{'message':_0x4066aa[_0x3a80b0(0x2915)](),'type':_0x3a80b0(0x1c37)}];for(let _0x2b3a8=0x0;_0x2b3a8<_0x4066aa[_0x3a80b0(0x1c52)][_0x3a80b0(0xbae)]['length'];_0x2b3a8++){_0x325a30[_0x3a80b0(0x1bd0)]({'title':_0x4066aa[_0x3a80b0(0x1c52)][_0x3a80b0(0xbae)][_0x2b3a8]['type'],'msg':_0x4066aa[_0x3a80b0(0x1c52)][_0x3a80b0(0xbae)][_0x2b3a8][_0x3a80b0(0x18ca)]});}}else _0x325a30[_0x3a80b0(0x1bd0)]({'title':_0x4066aa[_0x3a80b0(0x10b3)]?_0x3a80b0(0x575)+_0x4066aa['status']+_0x3a80b0(0x21db)+_0x4066aa[_0x3a80b0(0x2115)]:_0x3a80b0(0x1c37),'msg':_0x4066aa[_0x3a80b0(0x1c52)]?JSON[_0x3a80b0(0x2317)](_0x4066aa[_0x3a80b0(0x1c52)][_0x3a80b0(0x18ca)]):_0x4066aa[_0x3a80b0(0x18ca)]||_0x4066aa['toString']()});});}function _0x4e16cf(){const _0x231f24=_0x35e1cf,_0x347cd4=angular[_0x231f24(0x289e)](_0x3fbaca[_0x231f24(0x1403)]);return _0x3fbaca['selectedDispositions']=[],_0x347cd4;}function _0x6706d6(_0x2cea94){const _0x50ce18=_0x35e1cf,_0x1467d0=_0x317f81[_0x50ce18(0x856)]()[_0x50ce18(0x2021)](_0x396f0a['instant'](_0x50ce18(0x10a1)))['content'](_0x396f0a[_0x50ce18(0x2292)]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x3fbaca['selectedDispositions'][_0x50ce18(0x1b9e)]}))[_0x50ce18(0x213e)](_0x50ce18(0x10e))['targetEvent'](_0x2cea94)['ok']('OK')[_0x50ce18(0x101a)](_0x396f0a[_0x50ce18(0x2292)](_0x50ce18(0x4f5)));_0x317f81[_0x50ce18(0xa60)](_0x1467d0)[_0x50ce18(0x64a)](function(){const _0x361f68=_0x50ce18;_0x3fbaca[_0x361f68(0x1403)][_0x361f68(0x1397)](function(_0x41e072){_0x2ec23b(_0x41e072);}),_0x3fbaca['selectedDispositions']=[];});}function _0x328e77(){const _0x247c09=_0x35e1cf;_0x3fbaca[_0x247c09(0x1403)]=[];}function _0x3163d2(){const _0x40f8ae=_0x35e1cf;_0x3fbaca[_0x40f8ae(0x1403)]=_0x3fbaca[_0x40f8ae(0x16d7)][_0x40f8ae(0x28b8)];}let _0x1194a6=!![],_0x2c3477=0x1;_0x2d9323['$watch'](_0x35e1cf(0x1200),function(_0x4497ea,_0x55f33a){const _0x85261b=_0x35e1cf;_0x1194a6?_0x5e3adf(function(){_0x1194a6=![];}):(!_0x55f33a&&(_0x2c3477=_0x3fbaca[_0x85261b(0x289a)][_0x85261b(0xc72)]),_0x4497ea!==_0x55f33a&&(_0x3fbaca['query'][_0x85261b(0xc72)]=0x1),!_0x4497ea&&(_0x3fbaca[_0x85261b(0x289a)]['page']=_0x2c3477),_0x450ec8());});}const _0x19b571=_0xbd4fc5;;const _0x1d0b7a=_0x2e4a48['p']+_0x49a1e3(0xd7a);;_0x19fa1d[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog','$document',_0x49a1e3(0x20d4),_0x49a1e3(0x298c),'lists',_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),'toasty',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x19fa1d(_0x2c967b,_0x5ed746,_0x16d746,_0xa6828,_0x20ec12,_0x329278,_0x4f871c,_0x2dfa68,_0x4a819d,_0x14d1bc,_0x33519b,_0x45d70e,_0x48882e,_0x203356,_0x48e978,_0x32b59b,_0x151396){const _0x1af761=_0x49a1e3,_0x3a7f89=this;_0x3a7f89[_0x1af761(0x1947)]=_0x32b59b,_0x3a7f89[_0x1af761(0x28d6)]=_0x151396,_0x3a7f89['currentUser']=_0x48e978[_0x1af761(0x808)](),_0x3a7f89['lists']=_0x4a819d||{'count':0x0,'rows':[]},_0x3a7f89[_0x1af761(0x16a8)]=_0x14d1bc,_0x3a7f89[_0x1af761(0x16b2)]=_0x33519b&&_0x33519b[_0x1af761(0xb90)]==0x1?_0x33519b[_0x1af761(0x28b8)][0x0]:null,_0x3a7f89[_0x1af761(0x402)]=_0x48e978[_0x1af761(0xa7e)](_0x3a7f89[_0x1af761(0x16b2)]?_0x3a7f89[_0x1af761(0x16b2)]['crudPermissions']:null),_0x3a7f89[_0x1af761(0x185d)]=_0x1af761(0x974),_0x3a7f89[_0x1af761(0x300)]='',_0x3a7f89[_0x1af761(0x2748)]=null,_0x3a7f89['selectedLists']=[],_0x3a7f89[_0x1af761(0x289a)]={'fields':'createdAt,updatedAt,id,name,description,dialPrefix','sort':_0x1af761(0x260c),'limit':0xa,'page':0x1},_0x3a7f89['editstate']=_0x390da6,_0x3a7f89['gotocontactsgoto']=_0x2cf3cb,_0x3a7f89[_0x1af761(0x2772)]=_0xf2d00c,_0x3a7f89['agentadddialog']=_0x376151,_0x3a7f89[_0x1af761(0x1262)]=_0x590860,_0x3a7f89[_0x1af761(0x1339)]=_0x4562e9,_0x3a7f89['getLists']=_0xaf1eed,_0x3a7f89[_0x1af761(0x2216)]=_0x3e3f39,_0x3a7f89[_0x1af761(0x8c0)]=_0x1ff723,_0x3a7f89[_0x1af761(0x2412)]=_0x510145,_0x3a7f89[_0x1af761(0xd04)]=_0x2b6ab8,_0x3a7f89[_0x1af761(0x14d5)]=_0x12e6e2,_0x3a7f89[_0x1af761(0x10bd)]=_0x5e14dd;function _0x390da6(_0x66eced){const _0x36c62b=_0x1af761;_0x16d746['go'](_0x36c62b(0x21ad),{'id':_0x66eced['id'],'list':_0x66eced,'crudPermissions':_0x3a7f89[_0x36c62b(0x402)]});}function _0x2cf3cb(_0x3b5ccf){const _0x517f91=_0x1af761;if(_0x48e978[_0x517f91(0x4de)](_0x517f91(0x333)))_0x16d746['go'](_0x517f91(0x88d),{'ListId':_0x3b5ccf['id']});else return _0x45d70e[_0x517f91(0x16b2)][_0x517f91(0x896)]({'userProfileId':_0x48e978[_0x517f91(0x808)]()['userProfileId'],'sectionId':0x12f})['$promise'][_0x517f91(0x64a)](function(_0x50e3d9){const _0x37525a=_0x517f91,_0x5cdc81=_0x50e3d9&&_0x50e3d9['rows']?_0x50e3d9[_0x37525a(0x28b8)][0x0]:null;_0x5cdc81&&_0x5cdc81[_0x37525a(0xe49)]?_0x16d746['go'](_0x37525a(0x88d),{'ListId':_0x3b5ccf['id']}):_0x203356[_0x37525a(0x772)]({'title':_0x2dfa68[_0x37525a(0x2292)](_0x37525a(0x111a)),'msg':_0x2dfa68[_0x37525a(0x2292)](_0x37525a(0x229))});})[_0x517f91(0x20cd)](function(_0x573ad7){const _0x12d48b=_0x517f91;_0x203356[_0x12d48b(0x1bd0)]({'title':_0x573ad7[_0x12d48b(0x10b3)]?_0x12d48b(0x575)+_0x573ad7[_0x12d48b(0x10b3)]+_0x12d48b(0x21db)+_0x573ad7['statusText']:'USERPROFILE:GET_SECTION','msg':_0x573ad7['status']?JSON[_0x12d48b(0x2317)](_0x573ad7['data']):_0x573ad7['toString']()});});}function _0xf2d00c(_0x3d5ef1){const _0xf4c430=_0x1af761;return _0x45d70e[_0xf4c430(0x19f8)][_0xf4c430(0x473)]({'id':_0x3d5ef1['id'],'nolimit':!![]})[_0xf4c430(0x15e7)][_0xf4c430(0x64a)](function(_0xc97ab5){const _0x567cc9=_0xf4c430;if(typeof _0xc97ab5[_0x567cc9(0x1b9e)]!=='undefined'){const _0xa40d56=[_0xc97ab5[_0x567cc9(0x5a9)]],_0x31619a=new Blob(_0xa40d56,{'type':_0xc97ab5[_0x567cc9(0x2185)]}),_0x3077df=window['document']['createElement']('a');_0x3077df['setAttribute'](_0x567cc9(0x25d0),URL[_0x567cc9(0x206)](_0x31619a)),_0x3077df[_0x567cc9(0x1280)](_0x567cc9(0x19b3),_0x567cc9(0x133)+_0x3d5ef1['id']+'.csv'),_0x3077df[_0x567cc9(0x2668)]();}else _0x203356['info']({'title':'EXPORT','msg':_0x567cc9(0x1bc1)});})[_0xf4c430(0x20cd)](function(_0xf35724){const _0x1fff14=_0xf4c430;_0x203356[_0x1fff14(0x1bd0)]({'title':_0xf35724[_0x1fff14(0x10b3)]?_0x1fff14(0x575)+_0xf35724['status']+_0x1fff14(0x21db)+_0xf35724[_0x1fff14(0x2115)]:'SYSTEM:GETcmList','msg':_0xf35724[_0x1fff14(0x1c52)]?JSON['stringify'](_0xf35724['data']):_0xf35724[_0x1fff14(0x2915)]()});});}function _0x376151(_0x1c2fa6,_0x413cac){const _0x18b083=_0x1af761;_0x20ec12['show']({'controller':_0x18b083(0x2990),'controllerAs':'vm','templateUrl':_0x2a5698,'parent':angular[_0x18b083(0x1f81)](_0x329278[_0x18b083(0xb49)]),'targetEvent':_0x413cac,'clickOutsideToClose':!![],'locals':{'list':_0x1c2fa6,'lists':_0x3a7f89[_0x18b083(0x974)]?_0x3a7f89[_0x18b083(0x974)][_0x18b083(0x28b8)]:[],'crudPermissions':_0x3a7f89[_0x18b083(0x402)],'realtime':![]}});}function _0x590860(_0x4d9975,_0x47f6d8){const _0x3cc965=_0x1af761,_0xa2f107=_0x20ec12[_0x3cc965(0x856)]()[_0x3cc965(0x2021)](_0x3cc965(0x1231)+_0x28c606()[_0x3cc965(0xc01)](_0x3cc965(0x2764))+'?')[_0x3cc965(0x33a)](_0x3cc965(0x50b)+(_0x4d9975['name']||_0x3cc965(0x2764))+_0x3cc965(0x26d0)+_0x3cc965(0x4b8))['ariaLabel']('delete\x20list')['targetEvent'](_0x47f6d8)['ok']('OK')[_0x3cc965(0x101a)](_0x3cc965(0x18fd));_0x20ec12['show'](_0xa2f107)['then'](function(){_0x1ff723(_0x4d9975);},function(){const _0x3d01a3=_0x3cc965;console[_0x3d01a3(0x9b4)]('CANCEL');});}let _0xc2f0be=!![],_0x42d180=0x1;_0x2c967b[_0x1af761(0xc62)](_0x1af761(0x1cb9),function(_0x2b316f,_0x57a0e6){const _0x2bacf8=_0x1af761;_0xc2f0be?_0x4f871c(function(){_0xc2f0be=![];}):(!_0x57a0e6&&(_0x42d180=_0x3a7f89[_0x2bacf8(0x289a)][_0x2bacf8(0xc72)]),_0x2b316f!==_0x57a0e6&&(_0x3a7f89[_0x2bacf8(0x289a)][_0x2bacf8(0xc72)]=0x1),!_0x2b316f&&(_0x3a7f89[_0x2bacf8(0x289a)][_0x2bacf8(0xc72)]=_0x42d180),_0x3a7f89['getLists']());});function _0x4562e9(_0x3fb5d5){const _0x562fa2=_0x1af761;_0x3a7f89[_0x562fa2(0x974)]=_0x3fb5d5||{'count':0x0,'rows':[]};}function _0xaf1eed(){const _0x5ab8bc=_0x1af761;_0x3a7f89[_0x5ab8bc(0x289a)]['offset']=(_0x3a7f89[_0x5ab8bc(0x289a)][_0x5ab8bc(0xc72)]-0x1)*_0x3a7f89['query'][_0x5ab8bc(0x25bb)],_0x48e978[_0x5ab8bc(0x4de)](_0x5ab8bc(0x333))?_0x3a7f89[_0x5ab8bc(0x1713)]=_0x45d70e[_0x5ab8bc(0x19f8)][_0x5ab8bc(0x896)](_0x3a7f89[_0x5ab8bc(0x289a)],_0x4562e9)[_0x5ab8bc(0x15e7)]:(_0x3a7f89[_0x5ab8bc(0x289a)]['id']=_0x3a7f89['userProfile']['id'],_0x3a7f89['query'][_0x5ab8bc(0xa21)]='Lists',_0x3a7f89[_0x5ab8bc(0x1713)]=_0x45d70e['userProfile']['getResources'](_0x3a7f89[_0x5ab8bc(0x289a)],_0x4562e9)[_0x5ab8bc(0x15e7)]);}function _0x3e3f39(_0x3670f3,_0x2a5fd4){const _0x2a15b2=_0x1af761;_0x20ec12['show']({'controller':'CreateOrEditListDialogController','controllerAs':'vm','templateUrl':_0x1d0b7a,'parent':angular[_0x2a15b2(0x1f81)](_0x329278[_0x2a15b2(0xb49)]),'targetEvent':_0x3670f3,'clickOutsideToClose':!![],'locals':{'list':_0x2a5fd4,'lists':_0x3a7f89[_0x2a15b2(0x974)][_0x2a15b2(0x28b8)],'license':_0x3a7f89[_0x2a15b2(0x1947)],'setting':_0x3a7f89['setting'],'crudPermissions':_0x3a7f89[_0x2a15b2(0x402)]}});}function _0x1ff723(_0x4050c4){const _0x42e7b5=_0x1af761;_0x45d70e[_0x42e7b5(0x19f8)]['delete']({'id':_0x4050c4['id']})[_0x42e7b5(0x15e7)][_0x42e7b5(0x64a)](function(){const _0x426df9=_0x42e7b5;_0x28c606()['remove'](_0x3a7f89['lists'][_0x426df9(0x28b8)],{'id':_0x4050c4['id']}),_0x3a7f89[_0x426df9(0x974)][_0x426df9(0xb90)]-=0x1,!_0x3a7f89[_0x426df9(0x974)]['rows'][_0x426df9(0x1b9e)]&&_0x3a7f89[_0x426df9(0x7aa)](),_0x203356[_0x426df9(0x1339)]({'title':_0x28c606()[_0x426df9(0xc01)](_0x426df9(0x177c))+_0x426df9(0x2502),'msg':_0x4050c4['name']?_0x4050c4[_0x426df9(0x2494)]+_0x426df9(0x1fa8):''});})['catch'](function(_0x13785d){const _0x271ee4=_0x42e7b5;if(_0x13785d[_0x271ee4(0x1c52)]&&_0x13785d[_0x271ee4(0x1c52)]['errors']&&_0x13785d[_0x271ee4(0x1c52)][_0x271ee4(0xbae)]['length']){_0x3a7f89[_0x271ee4(0xbae)]=_0x13785d[_0x271ee4(0x1c52)]['errors']||[{'message':_0x13785d[_0x271ee4(0x2915)](),'type':_0x271ee4(0x130)}];for(let _0x3857db=0x0;_0x3857db<_0x13785d['data'][_0x271ee4(0xbae)]['length'];_0x3857db++){_0x203356[_0x271ee4(0x1bd0)]({'title':_0x13785d['data'][_0x271ee4(0xbae)][_0x3857db][_0x271ee4(0x2185)],'msg':_0x13785d[_0x271ee4(0x1c52)][_0x271ee4(0xbae)][_0x3857db][_0x271ee4(0x18ca)]});}}else _0x203356[_0x271ee4(0x1bd0)]({'title':_0x13785d[_0x271ee4(0x10b3)]?_0x271ee4(0x575)+_0x13785d[_0x271ee4(0x10b3)]+'\x20-\x20'+_0x13785d[_0x271ee4(0x2115)]:_0x271ee4(0x130),'msg':_0x13785d['data']?JSON[_0x271ee4(0x2317)](_0x13785d['data'][_0x271ee4(0x18ca)]):_0x13785d[_0x271ee4(0x18ca)]||_0x13785d[_0x271ee4(0x2915)]()});});}function _0x510145(){const _0x15588c=_0x1af761,_0x341271=angular[_0x15588c(0x289e)](_0x3a7f89[_0x15588c(0xa57)]);return _0x3a7f89[_0x15588c(0xa57)]=[],_0x341271;}function _0x2b6ab8(_0x112c04){const _0x5ef7b7=_0x1af761,_0x306c0f=_0x20ec12[_0x5ef7b7(0x856)]()[_0x5ef7b7(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20lists?')[_0x5ef7b7(0x33a)](''+_0x3a7f89['selectedLists'][_0x5ef7b7(0x1b9e)]+_0x5ef7b7(0x163e)+_0x5ef7b7(0x4b8))[_0x5ef7b7(0x213e)]('delete\x20Lists')['targetEvent'](_0x112c04)['ok']('OK')[_0x5ef7b7(0x101a)](_0x5ef7b7(0x18fd));_0x20ec12[_0x5ef7b7(0xa60)](_0x306c0f)[_0x5ef7b7(0x64a)](function(){const _0x5b60e7=_0x5ef7b7;_0x3a7f89[_0x5b60e7(0xa57)]['forEach'](function(_0x33436e){_0x1ff723(_0x33436e);}),_0x3a7f89[_0x5b60e7(0xa57)]=[];});}function _0x12e6e2(){const _0xab824f=_0x1af761;_0x3a7f89[_0xab824f(0xa57)]=[];}function _0x5e14dd(){const _0x39448a=_0x1af761;_0x3a7f89[_0x39448a(0xa57)]=_0x3a7f89[_0x39448a(0x974)][_0x39448a(0x28b8)];}}const _0x1d3450=_0x19fa1d;;const _0x186bbd=_0x2e4a48['p']+_0x49a1e3(0x1f0f);;const _0x381ca3=_0x2e4a48['p']+'src/js/modules/main/apps/contactmanager/views/lists/edit/view.html/view.html';;const _0x54ce12=_0x2e4a48['p']+_0x49a1e3(0x14ee);;const _0x4f28cc=_0x2e4a48['p']+'src/js/modules/main/apps/contactmanager/views/companies/edit/view.html/view.html';;const _0x626950=_0x2e4a48['p']+_0x49a1e3(0xc74);;_0x2bcf08[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad),_0x49a1e3(0x21f8)];function _0x2bcf08(_0x565814,_0x2b3f91){const _0x56a295=_0x49a1e3;_0x565814[_0x56a295(0x14f2)](_0x56a295(0x25cd),{'abstract':!![],'url':'/contactmanager'})[_0x56a295(0x14f2)]('app.contactmanager.lists',{'url':_0x56a295(0x1998),'views':{'content@app':{'templateUrl':_0x186bbd,'controller':_0x56a295(0xe0e)}},'resolve':{'lists':[_0x56a295(0x107c),'Auth',function(_0x4f5bb3,_0x330e07){const _0x5f2034=_0x56a295;return _0x330e07[_0x5f2034(0x4de)]('admin')?_0x4f5bb3['resolve'](_0x5f2034(0x13d2),{'fields':_0x5f2034(0x181f),'sort':_0x5f2034(0x260c),'limit':0xa,'offset':0x0}):_0x4f5bb3[_0x5f2034(0x1268)](_0x5f2034(0x1758),{'id':_0x330e07[_0x5f2034(0x808)]()[_0x5f2034(0x21ac)],'section':_0x5f2034(0x386),'fields':_0x5f2034(0x181f),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x56a295(0x107c),'Auth',function(_0x3c7592,_0x51d645){const _0x1d0f9a=_0x56a295;return _0x51d645[_0x1d0f9a(0x4de)](_0x1d0f9a(0x333))?null:_0x3c7592['resolve']('userProfile@get',{'fields':_0x1d0f9a(0x10d2),'id':_0x51d645[_0x1d0f9a(0x808)]()[_0x1d0f9a(0x21ac)]});}],'userProfileSection':['apiResolver','Auth',function(_0x485389,_0x4c8edd){const _0x4151c8=_0x56a295;return _0x4c8edd[_0x4151c8(0x4de)](_0x4151c8(0x333))?null:_0x485389[_0x4151c8(0x1268)](_0x4151c8(0x2681),{'fields':_0x4151c8(0x527),'userProfileId':_0x4c8edd['getCurrentUser']()[_0x4151c8(0x21ac)],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':_0x56a295(0xeaa)})['state']('app.contactmanager.lists.edit',{'url':'/:id?tab','params':{'list':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x381ca3,'controller':_0x56a295(0x1cc5)}},'resolve':{'list':[_0x56a295(0x107c),_0x56a295(0x1fbb),function(_0x3d7a79,_0x308e92){const _0xd5ef0a=_0x56a295;return _0x3d7a79[_0xd5ef0a(0x1268)](_0xd5ef0a(0x13d2),{'fields':_0xd5ef0a(0x181f),'id':_0x308e92['id']});}],'userProfileSection':[_0x56a295(0x107c),'Auth',function(_0x13d211,_0x1f1f82){const _0x5ef0ac=_0x56a295;return _0x13d211[_0x5ef0ac(0x1268)](_0x5ef0ac(0x2681),{'fields':_0x5ef0ac(0x527),'userProfileId':_0x1f1f82[_0x5ef0ac(0x808)]()[_0x5ef0ac(0x21ac)],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':'contactmanager'})[_0x56a295(0x14f2)](_0x56a295(0x2129),{'url':_0x56a295(0x2134),'views':{'content@app':{'templateUrl':_0x54ce12,'controller':_0x56a295(0x2217)}},'resolve':{'companies':[_0x56a295(0x107c),'Auth',function(_0x4d919b,_0x8c453){const _0x4aeed4=_0x56a295;return _0x8c453[_0x4aeed4(0x4de)](_0x4aeed4(0x333))?_0x4d919b[_0x4aeed4(0x1268)]('cmCompany@get',{'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}):_0x4d919b[_0x4aeed4(0x1268)](_0x4aeed4(0x1758),{'id':_0x8c453['getCurrentUser']()['userProfileId'],'section':_0x4aeed4(0x227d),'fields':_0x4aeed4(0x162d),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x56a295(0x107c),_0x56a295(0xdcf),function(_0x2cba4c,_0x594f30){const _0x1177ea=_0x56a295;return _0x594f30['hasRole'](_0x1177ea(0x333))?null:_0x2cba4c[_0x1177ea(0x1268)](_0x1177ea(0x6e3),{'fields':_0x1177ea(0x10d2),'id':_0x594f30['getCurrentUser']()[_0x1177ea(0x21ac)]});}],'userProfileSection':[_0x56a295(0x107c),_0x56a295(0xdcf),function(_0x3bdd1c,_0x135961){const _0x30bf34=_0x56a295;return _0x135961[_0x30bf34(0x4de)]('admin')?null:_0x3bdd1c[_0x30bf34(0x1268)](_0x30bf34(0x2681),{'fields':_0x30bf34(0x527),'userProfileId':_0x135961[_0x30bf34(0x808)]()['userProfileId'],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':_0x56a295(0xeaa)})[_0x56a295(0x14f2)](_0x56a295(0x238),{'url':_0x56a295(0x45b),'params':{'company':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4f28cc,'controller':_0x56a295(0x195c)}},'resolve':{'company':[_0x56a295(0x107c),'$stateParams',function(_0x997d51,_0x50c6e3){const _0xffdd04=_0x56a295;return _0x997d51['resolve'](_0xffdd04(0x2811),{'fields':_0xffdd04(0x162d),'id':_0x50c6e3['id']});}],'userProfileSection':[_0x56a295(0x107c),_0x56a295(0xdcf),function(_0x587784,_0x267603){const _0x43c5af=_0x56a295;return _0x587784[_0x43c5af(0x1268)](_0x43c5af(0x2681),{'fields':_0x43c5af(0x527),'userProfileId':_0x267603[_0x43c5af(0x808)]()[_0x43c5af(0x21ac)],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':_0x56a295(0xeaa)})[_0x56a295(0x14f2)]('app.contactmanager.globalCustomFields',{'url':_0x56a295(0x210a),'views':{'content@app':{'templateUrl':_0x626950,'controller':_0x56a295(0x86e)}},'resolve':{'globalCustomFields':[_0x56a295(0x107c),function(_0x43feee){const _0x92a705=_0x56a295;return _0x43feee[_0x92a705(0x1268)](_0x92a705(0x244c),{'fields':_0x92a705(0x2993),'sort':_0x92a705(0x260c),'ListId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0x56a295(0x107c),_0x56a295(0xdcf),function(_0x2ad045,_0x1a4098){const _0x4244e0=_0x56a295;return _0x1a4098[_0x4244e0(0x4de)]('admin')?null:_0x2ad045[_0x4244e0(0x1268)](_0x4244e0(0x6e3),{'fields':_0x4244e0(0x10d2),'id':_0x1a4098[_0x4244e0(0x808)]()[_0x4244e0(0x21ac)]});}],'userProfileSection':[_0x56a295(0x107c),'Auth',function(_0x4e73b3,_0x5aab92){const _0x1d72d4=_0x56a295;return _0x5aab92[_0x1d72d4(0x4de)](_0x1d72d4(0x333))?null:_0x4e73b3['resolve'](_0x1d72d4(0x2681),{'fields':_0x1d72d4(0x527),'userProfileId':_0x5aab92[_0x1d72d4(0x808)]()['userProfileId'],'sectionId':0x130});}]},'authenticate':!![],'permissionId':0x130,'bodyClass':_0x56a295(0xeaa)}),_0x2b3f91[_0x56a295(0x1bde)](_0x56a295(0x1556));}angular[_0x49a1e3(0x20d2)]('app.contactmanager',[_0x49a1e3(0x8d2),'ngPassword','md.data.table',_0x49a1e3(0x891),'mdColorPicker',_0x49a1e3(0x1b6c),'ng-sortable',_0x49a1e3(0x1a87),'ngAnimate',_0x49a1e3(0xb19),_0x49a1e3(0x1a59),'mwFormViewer','mwFormUtils',_0x49a1e3(0x1bd1),_0x49a1e3(0x1b5f),'ngEmbed','angularMaterialFormBuilder','material.components.expansionPanels',_0x49a1e3(0xc48),_0x49a1e3(0x28dd),_0x49a1e3(0x88d)])['config'](_0x2bcf08)[_0x49a1e3(0x38e)](_0x49a1e3(0xe11),_0x1a2867)[_0x49a1e3(0x38e)](_0x49a1e3(0x2173),_0x49d6bf)[_0x49a1e3(0x38e)](_0x49a1e3(0x2228),_0x2f5722)['controller'](_0x49a1e3(0x1fda),_0x2ef39b)[_0x49a1e3(0x38e)](_0x49a1e3(0x1660),_0x2714fc)[_0x49a1e3(0x38e)]('CreateOrEditListDialogController',_0x552cb2)[_0x49a1e3(0x38e)](_0x49a1e3(0x2990),_0x486578)['controller'](_0x49a1e3(0x15e3),_0x5f1f06)['controller']('CreateOrEditCustomFieldDialogController',_0x6dc894)[_0x49a1e3(0x38e)](_0x49a1e3(0x21b2),_0x3b0be6)[_0x49a1e3(0x38e)]('ListDispositionsController',_0x19b571)[_0x49a1e3(0x38e)]('ListsController',_0x1d3450);;_0x599878[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$timeout','$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x1fe7),_0x49a1e3(0x298c),_0x49a1e3(0xa19),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xdcf),_0x49a1e3(0x633),_0x49a1e3(0x680),_0x49a1e3(0xd77),_0x49a1e3(0x16d7)];function _0x599878(_0x13cc1f,_0x51080b,_0x49ba19,_0x4ec367,_0x5241d1,_0x1cdd48,_0x17df61,_0x2c924f,_0x458dcf,_0x3108cb,_0x333f90,_0xd0d52,_0x5453e6,_0x53bfb1){const _0x514e05=_0x49a1e3,_0x168485=this;_0x168485['currentUser']=_0x3108cb[_0x514e05(0x808)](),_0x168485[_0x514e05(0xd77)]=_0x5453e6?_0x5453e6:[],_0x168485[_0x514e05(0x16d7)]=_0x53bfb1,_0x168485['abandonedCalls']={'count':0x0,'rows':[]},_0x168485[_0x514e05(0x16ea)]=![],_0x168485[_0x514e05(0x175a)]=!![],_0x168485[_0x514e05(0x16a8)]=_0x2c924f,_0x168485[_0x514e05(0x16b2)]=_0x458dcf&&_0x458dcf['count']==0x1?_0x458dcf[_0x514e05(0x28b8)][0x0]:null,_0x168485['crudPermissions']=_0x3108cb[_0x514e05(0xa7e)](_0x168485[_0x514e05(0x16b2)]?_0x168485[_0x514e05(0x16b2)][_0x514e05(0x402)]:null),_0x168485[_0x514e05(0x289a)]={'fields':'id,type,calleridnum,calleridname,queue,queuecallerabandonAt,queuecallerexitAt,queuecallerexitreason,assigned,lastAssignedTo,updatedAt,disposition,secondDisposition,thirdDisposition','type':'inbound','queuecallerexitreason':_0x514e05(0x1ece)+','+'ABANDONED','sort':_0x514e05(0x260c),'limit':0xa,'page':0x1},_0x168485['getAbandonedCalls']=_0xca638e,_0x168485[_0x514e05(0xe5b)]=_0x5afba8,_0x168485[_0x514e05(0x281e)]=_0x13dd21,_0x168485[_0x514e05(0x2284)]=_0x4115b2,_0x168485[_0x514e05(0x23d3)]=_0x12331c,_0x168485[_0x514e05(0x139a)]=_0x877545,_0x333f90[_0x514e05(0x1939)](_0x514e05(0x5ed),_0x168485[_0x514e05(0x23d3)]),_0x333f90['on'](_0x514e05(0x568),_0x168485[_0x514e05(0x139a)]),_0x640ce3();function _0x640ce3(){const _0x297951=_0x514e05;let _0x26da44=_0x5241d1[_0x297951(0x294)][_0x297951(0x1ed0)](_0x297951(0xa43)+_0x168485[_0x297951(0x1d3d)]['id']);if(_0x26da44)_0x26da44=JSON[_0x297951(0x27f1)](_0x26da44),_0x26da44&&_0x26da44[_0x297951(0x289a)]&&(_0x168485['query']=_0x28c606()['merge'](_0x26da44[_0x297951(0x289a)],_0x28c606()[_0x297951(0xd09)](_0x168485[_0x297951(0x289a)],[_0x297951(0x768),'limit','page'])),_0x168485[_0x297951(0x289a)]=_0x28c606()[_0x297951(0xd09)](_0x168485[_0x297951(0x289a)],_0x297951(0xcec)));else{const _0x2c3ab1={'$gte':_0x2ac33a()()[_0x297951(0x246e)](_0x297951(0x5f5))[_0x297951(0xebc)](0x0,!![])[_0x297951(0x1c2c)](),'$lte':_0x2ac33a()()['endOf'](_0x297951(0x5f5))[_0x297951(0xebc)](0x0,!![])['format']()};_0x168485[_0x297951(0x289a)][_0x297951(0x2378)]=_0x2c3ab1;}_0x3108cb[_0x297951(0x4de)]('admin')?_0x17df61['user']['getQueues']({'id':_0x3108cb[_0x297951(0x808)]()['id'],'fields':_0x297951(0x1427),'channel':_0x297951(0x227c),'type':'inbound','nolimit':!![]})[_0x297951(0x15e7)][_0x297951(0x64a)](function(_0x422bb5){const _0x57aa19=_0x297951;_0x168485[_0x57aa19(0x1c06)]=_0x422bb5||{'count':0x0,'rows':[]},_0x168485['queuesMap']=_0x28c606()[_0x57aa19(0x239c)](_0x28c606()[_0x57aa19(0x161e)](_0x168485[_0x57aa19(0x1c06)]['rows'],_0x57aa19(0x2494)),_0x57aa19(0x2494));})[_0x297951(0x20cd)](function(_0x5f2403){console['error'](_0x5f2403);})[_0x297951(0x988)](function(){const _0x44e5e2=_0x297951;_0x168485['quickFilters']=_0x36191b(),_0x168485[_0x44e5e2(0x2446)]();}):_0x17df61[_0x297951(0x16a8)][_0x297951(0x2565)]({'id':_0x168485[_0x297951(0x1d3d)][_0x297951(0x21ac)],'section':_0x297951(0x2110),'channel':_0x297951(0x227c),'type':_0x297951(0x12a4),'sort':'-updatedAt','nolimit':!![]})[_0x297951(0x15e7)][_0x297951(0x64a)](function(_0x6c2d1){const _0x2d1b86=_0x297951;_0x168485[_0x2d1b86(0x1c06)]=_0x6c2d1||{'count':0x0,'rows':[]},_0x168485[_0x2d1b86(0xb03)]=_0x28c606()['mapValues'](_0x28c606()[_0x2d1b86(0x161e)](_0x168485[_0x2d1b86(0x1c06)][_0x2d1b86(0x28b8)],'name'),_0x2d1b86(0x2494));})[_0x297951(0x20cd)](function(_0x302b46){const _0x1f45cb=_0x297951;console[_0x1f45cb(0x1bd0)](_0x302b46);})['finally'](function(){const _0x1b6e27=_0x297951;_0x168485[_0x1b6e27(0x9fc)]=_0x36191b(),_0x168485[_0x1b6e27(0x2446)]();});}function _0x36191b(){const _0x131ba1=_0x514e05;return[{'name':_0x131ba1(0x1967),'key':_0x131ba1(0x2378),'type':_0x131ba1(0x232e),'label':_0x131ba1(0x2720)},{'name':_0x131ba1(0x12ad),'key':_0x131ba1(0x16fa),'type':_0x131ba1(0x2926),'label':_0x131ba1(0x18bf),'options':_0x168485[_0x131ba1(0xd77)][_0x131ba1(0x28b8)],'customOptions':[{'value':_0x131ba1(0x249f),'translate':_0x131ba1(0x276d)},{'value':undefined,'translate':_0x131ba1(0x2200)}]},{'name':'Campaign','key':'queue','type':_0x131ba1(0x20ae),'label':'DASHBOARDS.SELECT_CAMPAIGN','options':_0x168485[_0x131ba1(0x1c06)][_0x131ba1(0x28b8)]}];}function _0xca638e(){const _0x5e4e11=_0x514e05;_0x168485[_0x5e4e11(0x175a)]=![],_0x168485[_0x5e4e11(0x1c06)][_0x5e4e11(0xb90)]>0x0?(_0x168485['query'][_0x5e4e11(0x1e4e)]=_0x168485[_0x5e4e11(0x1c06)][_0x5e4e11(0xb90)]===0x1?_0x168485[_0x5e4e11(0x1c06)][_0x5e4e11(0x28b8)][0x0][_0x5e4e11(0x2494)]:_0x168485[_0x5e4e11(0x289a)][_0x5e4e11(0x1e4e)],_0x168485['query'][_0x5e4e11(0x24f9)]=(_0x168485['query']['page']-0x1)*_0x168485[_0x5e4e11(0x289a)][_0x5e4e11(0x25bb)],_0x5241d1['localStorage'][_0x5e4e11(0x15da)](_0x5e4e11(0xa43)+_0x168485['currentUser']['id'],JSON[_0x5e4e11(0x2317)]({'query':_0x28c606()[_0x5e4e11(0xd09)](_0x168485['query'],_0x5e4e11(0x1e4e))})),_0x168485[_0x5e4e11(0x1713)]=_0x17df61['voiceQueueReport']['getVoiceQueuesReport'](_0x168485[_0x5e4e11(0x289a)],_0x3eacd0)[_0x5e4e11(0x15e7)]):_0x3eacd0(null);}function _0x3eacd0(_0x1a186a){const _0xe758fa=_0x514e05;_0x168485[_0xe758fa(0x7d3)]=_0x1a186a||{'count':0x0,'rows':[]},_0x168485['refresh']=!![];}function _0x5afba8(){const _0x1c3440=_0x514e05;_0x168485[_0x1c3440(0x16ea)]=![],_0x168485[_0x1c3440(0x2446)]();}function _0x12331c(_0x3dd7f9){const _0x39311c=_0x514e05,_0x5d50e9=_0x39311c(0x12a4);_0x3dd7f9&&_0x168485[_0x39311c(0xb03)]&&_0x168485['query'][_0x39311c(0x2185)]===_0x5d50e9&&_0x168485['queuesMap'][_0x3dd7f9[_0x39311c(0x1e4e)]]&&(_0x168485['showTooltip']=!![]);}function _0x877545(_0x216859){const _0x5d685f=_0x514e05;if(_0x216859){const _0x3c0fd3=_0x28c606()[_0x5d685f(0xb10)](_0x168485[_0x5d685f(0x7d3)][_0x5d685f(0x28b8)],['id',_0x216859['id']]);_0x3c0fd3>=0x0&&_0x28c606()[_0x5d685f(0x14fe)](_0x168485['abandonedCalls'][_0x5d685f(0x28b8)][_0x3c0fd3],_0x216859);}}function _0x13dd21(_0x1d04ed,_0x11ffb5){const _0xc7a42b=_0x514e05;_0x1d04ed&&_0x17df61[_0xc7a42b(0x26cb)]['update']({'id':_0x1d04ed['id'],'lastAssignedTo':_0x11ffb5?_0x11ffb5[_0xc7a42b(0x2494)]:null,'assigned':_0x11ffb5?!![]:![]})[_0xc7a42b(0x15e7)][_0xc7a42b(0x20cd)](function(_0xe0889){const _0x484a84=_0xc7a42b;console[_0x484a84(0x9b4)](_0xe0889);});}function _0x4115b2(_0x259497){const _0x55805b=_0x514e05;_0x49ba19[_0x55805b(0xa60)]({'controller':'DisposeAbandonedCallDialogController','controllerAs':'vm','templateUrl':'app/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html','parent':angular[_0x55805b(0x1f81)](_0x4ec367['body']),'targetEvent':_0x259497,'resolve':{'globalDispositions':[_0x55805b(0x107c),function(_0x1a5aa1){const _0x5bcea2=_0x55805b;return _0x1a5aa1[_0x5bcea2(0x1268)](_0x5bcea2(0x10c9),{'MailAccountId':_0x5bcea2(0x8f1),'FaxAccountId':'null','SmsAccountId':_0x5bcea2(0x8f1),'WhatsappAccountId':'null','OpenchannelAccountId':_0x5bcea2(0x8f1),'ChatWebsiteId':_0x5bcea2(0x8f1),'ListId':'null'});}]},'locals':{'dispositions':_0x168485[_0x55805b(0x16d7)],'call':_0x259497}})[_0x55805b(0x64a)](function(_0x28e203){const _0x4008c4=_0x55805b;if(_0x28e203){const _0x1d2e3d={'id':_0x259497['id'],'disposition':_0x28e203[_0x4008c4(0x20da)]||null,'secondDisposition':_0x28e203[_0x4008c4(0x1cfb)]||null,'thirdDisposition':_0x28e203[_0x4008c4(0x842)]||null};_0x17df61[_0x4008c4(0x26cb)][_0x4008c4(0x2603)](_0x1d2e3d)[_0x4008c4(0x15e7)][_0x4008c4(0x20cd)](function(_0x144179){console['log'](_0x144179);});}});}let _0x4a8258=!![],_0x1d04ce=0x1;_0x13cc1f[_0x514e05(0xc62)](_0x514e05(0x1cb9),function(_0x348c48,_0x35d4d0){const _0x49db41=_0x514e05;_0x4a8258?_0x51080b(function(){_0x4a8258=![];}):(!_0x35d4d0&&(_0x1d04ce=_0x168485[_0x49db41(0x289a)]['page']),_0x348c48!==_0x35d4d0&&(_0x168485[_0x49db41(0x289a)][_0x49db41(0xc72)]=0x1),!_0x348c48&&(_0x168485[_0x49db41(0x289a)]['page']=_0x1d04ce),_0x168485['getAbandonedCalls']());}),_0x13cc1f['$on'](_0x514e05(0xf28),function(){const _0x2c4cc0=_0x514e05;_0x333f90[_0x2c4cc0(0x1951)](_0x2c4cc0(0x5ed)),_0x333f90['removeAllListeners'](_0x2c4cc0(0x568));});}const _0x3a6b85=_0x599878;;_0x1c600[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$q',_0x49a1e3(0x20d4),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x1ce1),'pauses',_0x49a1e3(0xd77),'rpcAgents',_0x49a1e3(0xa19),_0x49a1e3(0x633),_0x49a1e3(0x680),_0x49a1e3(0x1f8c),_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x1239)];function _0x1c600(_0x42e589,_0x51ee23,_0x4b73ea,_0xbc3719,_0x923b68,_0x70f9a2,_0x4ca6ae,_0x139382,_0x533976,_0x2aadba,_0x38d8e0,_0x3722a4,_0x1cf441,_0x147dcf,_0x1c0b09,_0x3cce82,_0x54930e,_0x5ba60f){const _0x344ad8=_0x49a1e3,_0x5aa0af=this,_0x4e3a7e=['userpic',_0x344ad8(0x1eab),'lastLoginAt',_0x344ad8(0x2148),_0x344ad8(0x84f),_0x344ad8(0x2148),'internal','address','chatPause','openchannelPause','mailPause',_0x344ad8(0xf2d),'whatsappPause',_0x344ad8(0x211),_0x344ad8(0x11a4),_0x344ad8(0x80a),_0x344ad8(0x1561),'mailCapacity','smsCapacity','whatsappCapacity',_0x344ad8(0x1839),_0x344ad8(0x1b1d),_0x344ad8(0x1099),_0x344ad8(0x9ec),_0x344ad8(0x41d),_0x344ad8(0x19a8),'faxCurrentCapacity',_0x344ad8(0x363),_0x344ad8(0x11d7),_0x344ad8(0x13f4),_0x344ad8(0x2431),_0x344ad8(0x22a4),_0x344ad8(0x2014),'voiceStatus',_0x344ad8(0x2642),'openchannelStatusTime',_0x344ad8(0x1f78),'smsStatusTime','whatsappStatusTime',_0x344ad8(0x16c8),_0x344ad8(0x17f4),_0x344ad8(0x1e4e),'destconnectedlinenum',_0x344ad8(0x2921),_0x344ad8(0x52c),_0x344ad8(0x20d3)],_0x2e3b74=[_0x344ad8(0x2248),_0x344ad8(0x1451),_0x344ad8(0x292),_0x344ad8(0xf2d),_0x344ad8(0x1f34),'faxPause',_0x344ad8(0x11a4),'online'];_0x5aa0af[_0x344ad8(0x1d3d)]=_0x3cce82[_0x344ad8(0x808)](),_0x5aa0af[_0x344ad8(0x1b8)]=[_0x344ad8(0xf8e),_0x344ad8(0x7be),_0x344ad8(0x94d),_0x344ad8(0x8cc),'not_inuse'],_0x5aa0af['pauses']=_0x4ca6ae||{'count':0x0,'rows':[]},_0x5aa0af[_0x344ad8(0x1947)]=_0x54930e,_0x5aa0af[_0x344ad8(0x16a8)]=_0x147dcf,_0x5aa0af[_0x344ad8(0x16b2)]=_0x1c0b09&&_0x1c0b09[_0x344ad8(0xb90)]==0x1?_0x1c0b09['rows'][0x0]:null,_0x5aa0af[_0x344ad8(0x402)]=_0x3cce82[_0x344ad8(0xa7e)](_0x5aa0af['userProfileSection']?_0x5aa0af[_0x344ad8(0x16b2)][_0x344ad8(0x402)]:null),_0x5aa0af[_0x344ad8(0xd77)]=_0x139382?_0x28c606()['keyBy'](_0x139382[_0x344ad8(0x28b8)]?_0x139382['rows']:[],'id'):{},_0x5aa0af[_0x344ad8(0x287f)]=_0x533976?_0x28c606()[_0x344ad8(0x161e)](_0x533976[_0x344ad8(0x28b8)]?_0x533976[_0x344ad8(0x28b8)]:[],'id'):{},_0x5aa0af[_0x344ad8(0x2d8)]={},_0x5aa0af[_0x344ad8(0x2789)]=![],_0x5aa0af[_0x344ad8(0x1997)]=[],_0x5aa0af['agentInternal']={};for(const _0x1251aa in _0x5aa0af['agents']){typeof _0x5aa0af['agents'][_0x1251aa]!==_0x344ad8(0x19a1)&&(_0x5aa0af['agents'][_0x1251aa][_0x344ad8(0x2354)]=!![]);}_0x5aa0af['query']={'limit':0xa,'page':0x1,'order':_0x344ad8(0x15c),'globalStatusFilter':'','pauseTypeFilter':''},_0x5aa0af[_0x344ad8(0xad9)]=_0x5a2b1a,_0x5aa0af['queueAdd']=_0x14579b,_0x5aa0af['pause']=_0x56eb67,_0x5aa0af[_0x344ad8(0xab9)]=_0x221cdc,_0x5aa0af[_0x344ad8(0x1133)]=_0xde6de0,_0x5aa0af['getAgentStatus']=_0x1d9ba5,_0x5aa0af[_0x344ad8(0xba5)]=_0x1afda9,_0x5aa0af['isPause']=_0x4f2869,_0x5aa0af[_0x344ad8(0x15d)]=_0x59efc5,_0x5aa0af[_0x344ad8(0x2744)]=_0x1dd82a,_0x5aa0af[_0x344ad8(0x249c)]=_0x39bcea,_0x5aa0af[_0x344ad8(0x2853)]=_0x2eff85,_0x5aa0af[_0x344ad8(0x2483)]=_0x5713c8,_0x5aa0af[_0x344ad8(0x1a7c)]=_0x23c77f,_0x5aa0af['onComplete']=_0x1e7afa,_0x5aa0af[_0x344ad8(0x24f7)]=_0x2f781e,_0x38d8e0['on']('user:save',_0x5aa0af[_0x344ad8(0x249c)]),_0x38d8e0['on'](_0x344ad8(0x130f),_0x5aa0af[_0x344ad8(0x2853)]),_0x38d8e0['on'](_0x344ad8(0x197a),_0x5aa0af[_0x344ad8(0x1a7c)]),_0x38d8e0['on'](_0x344ad8(0x1b7e),_0x5aa0af[_0x344ad8(0x125b)]),_0x5713c8();let _0x5b255e=_0x5ba60f(function(){const _0x71e99=_0x344ad8;_0x5aa0af[_0x71e99(0x2789)]&&(_0x5aa0af[_0x71e99(0x2789)]=![],_0x5713c8());},0x3e7);function _0x5713c8(){const _0x2b8a0f=_0x344ad8;_0x5aa0af[_0x2b8a0f(0x2789)]=![];const _0x4502e5=_0x51ee23[_0x2b8a0f(0x122)]();_0x5aa0af[_0x2b8a0f(0x1713)]=_0x4502e5[_0x2b8a0f(0x1713)],_0x5aa0af[_0x2b8a0f(0x2202)]=[],_0x5aa0af[_0x2b8a0f(0x1997)]=[],_0x28c606()['forIn'](_0x5aa0af['agents'],function(_0x27f988,_0x4ae715){const _0x5bd354=_0x2b8a0f;_0x5aa0af[_0x5bd354(0x287f)][_0x4ae715]&&_0x28c606()[_0x5bd354(0x14fe)](_0x27f988,_0x28c606()[_0x5bd354(0x27bb)](_0x28c606()['omit'](_0x5aa0af[_0x5bd354(0x287f)][_0x4ae715],_0x2e3b74),_0x4e3a7e)),_0x1afda9(_0x27f988),_0x27f988[_0x5bd354(0x1eab)]?(_0x5aa0af[_0x5bd354(0x2202)][_0x5bd354(0x1954)](_0x27f988),_0x5aa0af[_0x5bd354(0xf0f)][_0x27f988[_0x5bd354(0xe2f)]]=_0x4ae715):_0x27f988[_0x5bd354(0x14f5)]=_0x28c606()[_0x5bd354(0x1251)](_0x2ac33a()()[_0x5bd354(0x1c2c)]('x'));});_0x5aa0af[_0x2b8a0f(0x289a)][_0x2b8a0f(0x1de8)]&&_0x28c606()[_0x2b8a0f(0x21c7)](_0x5aa0af[_0x2b8a0f(0x2202)],function(_0x1a1e6b){const _0x380863=_0x2b8a0f;return _0x1a1e6b[_0x380863(0x876)]!==_0x5aa0af[_0x380863(0x289a)][_0x380863(0x1de8)];});_0x5aa0af[_0x2b8a0f(0x289a)][_0x2b8a0f(0x1421)]&&_0x28c606()[_0x2b8a0f(0x21c7)](_0x5aa0af[_0x2b8a0f(0x2202)],function(_0x192bec){const _0x4576e6=_0x2b8a0f;return _0x192bec[_0x4576e6(0x84f)]!==_0x5aa0af[_0x4576e6(0x289a)][_0x4576e6(0x1421)];});_0x5aa0af[_0x2b8a0f(0x289a)][_0x2b8a0f(0xcec)]&&_0x28c606()[_0x2b8a0f(0x21c7)](_0x5aa0af['filteredAgents'],function(_0x106cf5){const _0x4717b3=_0x2b8a0f;return _0x106cf5[_0x4717b3(0x15c)][_0x4717b3(0x2554)]()['indexOf'](_0x5aa0af['query']['filter'][_0x4717b3(0x2554)]())<0x0;});_0x5aa0af[_0x2b8a0f(0x2202)]=_0x3e4d68(_0x5aa0af[_0x2b8a0f(0x2202)]);const _0x192b70=(_0x5aa0af['query'][_0x2b8a0f(0xc72)]-0x1)*_0x5aa0af[_0x2b8a0f(0x289a)][_0x2b8a0f(0x25bb)];_0x5aa0af['paginatedAgents']=_0x28c606()[_0x2b8a0f(0xfeb)](_0x5aa0af['filteredAgents'],_0x192b70)[_0x2b8a0f(0x142e)](0x0,_0x5aa0af['query']['limit']);for(let _0x38b351=0x0;_0x38b351<_0x5aa0af['paginatedAgents'][_0x2b8a0f(0x1b9e)];_0x38b351+=0x1){_0x5aa0af['order']['push'](_0x5aa0af[_0x2b8a0f(0x2d8)][_0x38b351]['id']);}_0x4502e5['resolve'](),_0x5aa0af[_0x2b8a0f(0x2789)]=!![];}function _0x39bcea(_0x2d3488){const _0x421444=_0x344ad8;_0x5aa0af[_0x421444(0xd77)][_0x2d3488['id']]&&(_0x28c606()['merge'](_0x5aa0af[_0x421444(0xd77)][_0x2d3488['id']],_0x28c606()[_0x421444(0x27bb)](_0x28c606()['omit'](_0x2d3488,_0x2e3b74),_0x4e3a7e)),_0x28c606()[_0x421444(0x14fe)](_0x5aa0af[_0x421444(0x287f)][_0x2d3488['id']],_0x28c606()[_0x421444(0x27bb)](_0x28c606()[_0x421444(0xd09)](_0x2d3488,_0x2e3b74),_0x4e3a7e)),_0x1afda9(_0x5aa0af[_0x421444(0xd77)][_0x2d3488['id']]));}function _0x2eff85(_0x241066){const _0x426196=_0x344ad8;_0x5aa0af[_0x426196(0xd77)][_0x241066['id']]&&(_0x28c606()['merge'](_0x5aa0af[_0x426196(0xd77)][_0x241066['id']],_0x28c606()[_0x426196(0x27bb)](_0x241066,_0x4e3a7e)),_0x28c606()[_0x426196(0x14fe)](_0x5aa0af[_0x426196(0x287f)][_0x241066['id']],_0x28c606()[_0x426196(0x27bb)](_0x241066,_0x4e3a7e)),_0x241066[_0x426196(0x2148)]&&(_0x5aa0af[_0x426196(0xd77)][_0x241066['id']]['globalStatusTime']=_0x241066[_0x426196(0x2148)],_0x5aa0af[_0x426196(0x287f)][_0x241066['id']]['globalStatusTime']=_0x241066[_0x426196(0x2148)]),_0x1afda9(_0x5aa0af[_0x426196(0xd77)][_0x241066['id']]));}function _0x23c77f(_0x42d7b9){const _0x5bc7a0=_0x344ad8;_0x5aa0af['agents'][_0x5aa0af[_0x5bc7a0(0xf0f)][_0x42d7b9[_0x5bc7a0(0xf65)]]]&&(_0x28c606()['merge'](_0x5aa0af['agents'][_0x5aa0af[_0x5bc7a0(0xf0f)][_0x42d7b9[_0x5bc7a0(0xf65)]]],_0x28c606()[_0x5bc7a0(0x27bb)](_0x42d7b9,[_0x5bc7a0(0x1e4e),_0x5bc7a0(0xeae)])),_0x28c606()[_0x5bc7a0(0x14fe)](_0x5aa0af['rpcAgents'][_0x5aa0af['agentInternal'][_0x42d7b9[_0x5bc7a0(0xf65)]]],_0x28c606()[_0x5bc7a0(0x27bb)](_0x42d7b9,[_0x5bc7a0(0x1e4e),_0x5bc7a0(0xeae)])));}function _0x1e7afa(_0x2de4c3){const _0x4b00f8=_0x344ad8;_0x5aa0af['agents'][_0x5aa0af[_0x4b00f8(0xf0f)][_0x2de4c3[_0x4b00f8(0xf65)]]]&&(_0x5aa0af[_0x4b00f8(0xd77)][_0x5aa0af[_0x4b00f8(0xf0f)][_0x2de4c3[_0x4b00f8(0xf65)]]]=_0x28c606()['omit'](_0x5aa0af[_0x4b00f8(0xd77)][_0x5aa0af['agentInternal'][_0x2de4c3[_0x4b00f8(0xf65)]]],[_0x4b00f8(0x1e4e),_0x4b00f8(0xeae)]),_0x5aa0af[_0x4b00f8(0x287f)][_0x5aa0af['agentInternal'][_0x2de4c3['destaccountcode']]]=_0x28c606()[_0x4b00f8(0xd09)](_0x5aa0af[_0x4b00f8(0x287f)][_0x5aa0af[_0x4b00f8(0xf0f)][_0x2de4c3[_0x4b00f8(0xf65)]]],[_0x4b00f8(0x1e4e),_0x4b00f8(0xeae)]));}function _0x5a2b1a(_0xaab123){const _0x4178ca=_0x344ad8;return _0x2aadba['user']['logout']({'id':_0xaab123['id'],'device':'realtime','agent_id':_0xaab123['id'],'agent_name':_0xaab123[_0x4178ca(0x2494)]})['$promise'][_0x4178ca(0x64a)](function(){const _0x2837fd=_0x4178ca;_0x3722a4['success']({'title':_0x2837fd(0x2927),'msg':_0xaab123['fullname']+_0x2837fd(0x236)}),_0x5aa0af[_0x2837fd(0xd77)][_0xaab123['id']]&&(_0x5aa0af[_0x2837fd(0xd77)][_0xaab123['id']][_0x2837fd(0x1eab)]=![]),_0x5aa0af[_0x2837fd(0x287f)][_0xaab123['id']]&&(_0x5aa0af[_0x2837fd(0x287f)][_0xaab123['id']][_0x2837fd(0x1eab)]=![]),_0x5713c8();})[_0x4178ca(0x20cd)](function(_0x16ed23){const _0x177445=_0x4178ca;_0x3722a4[_0x177445(0x1bd0)]({'title':_0x16ed23['status']?'API:'+_0x16ed23['status']+'\x20-\x20'+_0x16ed23[_0x177445(0x2115)]:_0x177445(0x180),'msg':_0x16ed23[_0x177445(0x1c52)]?JSON[_0x177445(0x2317)](_0x16ed23[_0x177445(0x1c52)][_0x177445(0x18ca)]):_0x16ed23[_0x177445(0x2915)]()});});}function _0x56eb67(_0x37d754,_0x55be90){const _0x3e0a61=_0x344ad8;return _0x2aadba[_0x3e0a61(0x2e8)]['pause']({'id':_0x37d754['id'],'type':_0x55be90})['$promise'][_0x3e0a61(0x64a)](function(_0x1941ea){const _0x2b0ed6=_0x3e0a61;_0x5aa0af[_0x2b0ed6(0xd77)][_0x37d754['id']]&&_0x28c606()['merge'](_0x5aa0af['agents'][_0x37d754['id']],_0x28c606()[_0x2b0ed6(0x27bb)](_0x1941ea,_0x4e3a7e)),_0x5aa0af[_0x2b0ed6(0x287f)][_0x37d754['id']]&&_0x28c606()[_0x2b0ed6(0x14fe)](_0x5aa0af['rpcAgents'][_0x37d754['id']],_0x28c606()[_0x2b0ed6(0x27bb)](_0x1941ea,_0x4e3a7e)),_0x1afda9(_0x5aa0af[_0x2b0ed6(0xd77)][_0x37d754['id']]);})[_0x3e0a61(0x20cd)](function(_0x5eb74e){const _0x380861=_0x3e0a61;_0x3722a4[_0x380861(0x1bd0)]({'title':_0x5eb74e[_0x380861(0x10b3)]?_0x380861(0x575)+_0x5eb74e[_0x380861(0x10b3)]+'\x20-\x20'+_0x5eb74e[_0x380861(0x2115)]:_0x380861(0x180),'msg':_0x5eb74e[_0x380861(0x1c52)]?JSON['stringify'](_0x5eb74e['data'][_0x380861(0x18ca)]):_0x5eb74e[_0x380861(0x2915)]()});});}function _0x221cdc(_0x1bfd71){const _0x23fba4=_0x344ad8;return _0x2aadba['user'][_0x23fba4(0x818)]({'id':_0x1bfd71['id']})['$promise']['then'](function(_0x42a02a){const _0x289c50=_0x23fba4;_0x5aa0af[_0x289c50(0xd77)][_0x1bfd71['id']]&&_0x28c606()[_0x289c50(0x14fe)](_0x5aa0af[_0x289c50(0xd77)][_0x1bfd71['id']],_0x28c606()[_0x289c50(0x27bb)](_0x42a02a,_0x4e3a7e)),_0x5aa0af[_0x289c50(0x287f)][_0x1bfd71['id']]&&_0x28c606()[_0x289c50(0x14fe)](_0x5aa0af[_0x289c50(0x287f)][_0x1bfd71['id']],_0x28c606()[_0x289c50(0x27bb)](_0x42a02a,_0x4e3a7e)),_0x1afda9(_0x5aa0af[_0x289c50(0xd77)][_0x1bfd71['id']]);})[_0x23fba4(0x20cd)](function(_0x3f4ecb){const _0x4d7f8d=_0x23fba4;_0x3722a4[_0x4d7f8d(0x1bd0)]({'title':_0x3f4ecb['status']?_0x4d7f8d(0x575)+_0x3f4ecb[_0x4d7f8d(0x10b3)]+_0x4d7f8d(0x21db)+_0x3f4ecb[_0x4d7f8d(0x2115)]:'api.staff.save','msg':_0x3f4ecb['data']?JSON[_0x4d7f8d(0x2317)](_0x3f4ecb[_0x4d7f8d(0x1c52)]['message']):_0x3f4ecb[_0x4d7f8d(0x2915)]()});});}function _0xde6de0(_0x31f587){const _0x59400a=_0x344ad8;_0xbc3719[_0x59400a(0xa60)](_0xbc3719[_0x59400a(0x2540)]()[_0x59400a(0x1945)](!![])[_0x59400a(0x2021)](_0x59400a(0xe68))[_0x59400a(0x33a)](_0x59400a(0x424))['ok']('Ok')[_0x59400a(0x2283)](_0x31f587));}function _0x14579b(_0xadc08d,_0x8433c0){const _0x24cfbb=_0x344ad8;_0xbc3719[_0x24cfbb(0xa60)]({'controller':'AgentqueueaddController','controllerAs':'vm','templateUrl':_0x5eb675,'parent':angular[_0x24cfbb(0x1f81)](_0x923b68[_0x24cfbb(0xb49)]),'targetEvent':_0x8433c0,'clickOutsideToClose':!![],'locals':{'agent':_0xadc08d,'agents':[],'channel':_0x24cfbb(0x227c),'direction':_0x24cfbb(0x12a4),'crudPermissions':_0x5aa0af['crudPermissions']}});}function _0x4f2869(_0xc6dd51){const _0x3f199d=_0x344ad8;return _0xc6dd51==='pause'||_0xc6dd51===_0x3f199d(0x1bcc);}function _0x59efc5(_0x3cb00d){return _0x3cb00d==='pause';}function _0x1dd82a(_0x1b957b){const _0x4f03e4=_0x344ad8;return _0x1b957b===_0x4f03e4(0x1bcc);}function _0x9d72f2(_0x2a71b1){const _0x43d363=_0x344ad8;return _0x2a71b1===_0x43d363(0xac6)||_0x2a71b1===_0x43d363(0x1191)||_0x2a71b1===_0x43d363(0x407)||_0x2a71b1===_0x43d363(0xf8e)||_0x28c606()[_0x43d363(0x28d7)](_0x2a71b1);}function _0x1d9ba5(_0x365d21,_0x3ef497){const _0x4badb9=_0x344ad8;if(_0x3ef497===_0x4badb9(0x227c)){if(_0x365d21[_0x3ef497+_0x4badb9(0x2311)]!==_0x4badb9(0xac6))return _0x365d21[_0x3ef497+_0x4badb9(0x2311)];if(_0x365d21[_0x3ef497+_0x4badb9(0x9d3)])return _0x365d21[_0x3ef497+_0x4badb9(0x2311)]=_0x4badb9(0x2826),'pause';return _0x4badb9(0xac6);}else{if(_0x365d21[_0x3ef497+_0x4badb9(0x9d3)])return _0x365d21[_0x3ef497+_0x4badb9(0x2311)]=_0x4badb9(0x2826),_0x4badb9(0x2826);return _0x365d21[_0x3ef497+_0x4badb9(0x2311)];}}function _0x1afda9(_0x1f00e3){const _0x3de294=_0x344ad8;let _0x524bf7='unknown';if(_0x28c606()[_0x3de294(0x2972)]([_0x1d9ba5(_0x1f00e3,_0x3de294(0x227c)),_0x1d9ba5(_0x1f00e3,_0x3de294(0xf52)),_0x1d9ba5(_0x1f00e3,_0x3de294(0xc71)),_0x1d9ba5(_0x1f00e3,_0x3de294(0x28ad)),_0x1d9ba5(_0x1f00e3,'sms'),_0x1d9ba5(_0x1f00e3,'whatsapp'),_0x1d9ba5(_0x1f00e3,_0x3de294(0x1d37))],_0x4f2869))_0x524bf7=_0x3de294(0x2826);else{if(_0x28c606()[_0x3de294(0x25f8)]([_0x1d9ba5(_0x1f00e3,_0x3de294(0x227c)),_0x1d9ba5(_0x1f00e3,_0x3de294(0xf52)),_0x1d9ba5(_0x1f00e3,_0x3de294(0xc71)),_0x1d9ba5(_0x1f00e3,'openchannel'),_0x1d9ba5(_0x1f00e3,'sms'),_0x1d9ba5(_0x1f00e3,_0x3de294(0x1a29)),_0x1d9ba5(_0x1f00e3,_0x3de294(0x1d37))],_0x4f2869))_0x524bf7=_0x3de294(0x1bcc);else _0x28c606()['every']([_0x1d9ba5(_0x1f00e3,_0x3de294(0x227c)),_0x1d9ba5(_0x1f00e3,_0x3de294(0xf52)),_0x1d9ba5(_0x1f00e3,_0x3de294(0xc71)),_0x1d9ba5(_0x1f00e3,'openchannel'),_0x1d9ba5(_0x1f00e3,_0x3de294(0x10aa)),_0x1d9ba5(_0x1f00e3,'whatsapp'),_0x1d9ba5(_0x1f00e3,_0x3de294(0x1d37))],_0x9d72f2)?_0x524bf7='idle':_0x524bf7=_0x3de294(0x94d);}_0x1f00e3[_0x3de294(0x876)]!==_0x524bf7&&(_0x1f00e3['globalStatus']=_0x524bf7,_0x1f00e3[_0x3de294(0x2354)]?(_0x1f00e3[_0x3de294(0x2354)]=![],_0x1f00e3[_0x3de294(0x14f5)]=_0x4f2869(_0x524bf7)?_0x28c606()[_0x3de294(0x1251)](_0x2ac33a()(_0x1f00e3[_0x3de294(0x2148)])[_0x3de294(0x1c2c)]('x')):_0x28c606()[_0x3de294(0x2a2)]([_0x1f00e3[_0x3de294(0x17f4)],_0x1f00e3[_0x3de294(0x2642)],_0x1f00e3[_0x3de294(0x1f78)],_0x1f00e3[_0x3de294(0x24a3)],_0x1f00e3[_0x3de294(0x17fb)],_0x1f00e3[_0x3de294(0x1857)],_0x1f00e3[_0x3de294(0x16c8)]])):_0x1f00e3[_0x3de294(0x14f5)]=_0x28c606()['toNumber'](_0x2ac33a()()[_0x3de294(0x1c2c)]('x')));}function _0x3e4d68(_0x18d63f){const _0x34140b=_0x344ad8,_0x37a8c4=_0x28c606()[_0x34140b(0x1273)](_0x5aa0af['query'][_0x34140b(0x1997)],'-')?_0x34140b(0x19d0):'asc';return _0x28c606()[_0x34140b(0x288e)](_0x18d63f,[_0x5aa0af['query']['order'][_0x34140b(0x1353)]('-','')],[_0x37a8c4]);}function _0x181287(){const _0x4819ad=_0x344ad8;_0x5b255e&&(_0x5ba60f[_0x4819ad(0x101a)](_0x5b255e),_0x5b255e=null);}function _0x2f781e(_0xb7c62a,_0x7ed654){const _0x5c0d3d=_0x344ad8;return _0x2aadba[_0x5c0d3d(0x2e8)][_0x5c0d3d(0x2603)]({'id':_0xb7c62a['id']},{'screenrecording':_0x7ed654})['$promise']['catch'](function(_0x348675){const _0x5d853d=_0x5c0d3d;_0x3722a4[_0x5d853d(0x1bd0)]({'title':_0x348675['status']?_0x5d853d(0x575)+_0x348675[_0x5d853d(0x10b3)]+_0x5d853d(0x21db)+_0x348675['statusText']:_0x5d853d(0x15e5),'msg':_0x348675[_0x5d853d(0x1c52)]?JSON[_0x5d853d(0x2317)](_0x348675['data']['message']):_0x348675['toString']()});});}_0x42e589['$on']('$destroy',function(){const _0x402b8c=_0x344ad8;_0x38d8e0['removeAllListeners'](_0x402b8c(0x17e9)),_0x38d8e0[_0x402b8c(0x1951)](_0x402b8c(0x130f)),_0x38d8e0[_0x402b8c(0x1951)]('user:agentconnect'),_0x38d8e0[_0x402b8c(0x1951)](_0x402b8c(0x1b7e)),_0x181287();});}const _0x1cd75a=_0x1c600;;_0x11330e[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0xa19),'socket','rpcCalls',_0x49a1e3(0x1f8c)];function _0x11330e(_0x2d57b1,_0x11d832,_0x5424f8,_0x9043c3,_0x4ddbcd,_0x4e325a){const _0x18bc35=_0x49a1e3,_0x44c72d=this;_0x44c72d[_0x18bc35(0x1a3a)]=_0x4ddbcd||{'rows':[],'count':0x0},_0x44c72d[_0x18bc35(0x289a)]={'limit':0xa,'page':0x1},_0x44c72d[_0x18bc35(0x5f8)]=_0x4e325a[_0x18bc35(0x749)],_0x9043c3['on']('voice_outbound_channel:save',_0x44c72d[_0x18bc35(0x249c)]),_0x9043c3['on']('voice_outbound_channel:remove',_0x44c72d[_0x18bc35(0x1025)]);function _0x1c6083(_0x5a93d0){const _0x431ccb=_0x18bc35,_0x20fa66=_0x28c606()[_0x431ccb(0x27bc)](_0x44c72d[_0x431ccb(0x1a3a)]['rows'],{'channel':_0x5a93d0[_0x431ccb(0x2156)]});_0x5a93d0[_0x431ccb(0x13aa)]=_0x5a93d0[_0x431ccb(0x7ca)]?'up':_0x431ccb(0x111f);if(_0x20fa66)_0x28c606()[_0x431ccb(0x14fe)](_0x20fa66,_0x5a93d0);else _0x5a93d0[_0x431ccb(0x2156)]&&_0x44c72d['calls'][_0x431ccb(0x28b8)][_0x431ccb(0x1954)](_0x5a93d0);}function _0x2098c7(_0x28809a){const _0x4a8222=_0x18bc35,_0x391e46=_0x28c606()['findIndex'](_0x44c72d[_0x4a8222(0x1a3a)][_0x4a8222(0x28b8)],{'channel':_0x28809a[_0x4a8222(0x2156)]});_0x391e46>=0x0&&(_0x44c72d['calls'][_0x4a8222(0x28b8)][_0x391e46]['status']='hangup'),_0x11d832(function(){const _0x383049=_0x4a8222;_0x44c72d[_0x383049(0x1a3a)]['rows'][_0x383049(0x18f0)](_0x391e46,0x1);},0x1388);}_0x2d57b1['$on'](_0x18bc35(0xf28),function(){const _0xaae5f9=_0x18bc35;_0x9043c3[_0xaae5f9(0x1951)](_0xaae5f9(0x1401)),_0x9043c3['removeAllListeners']('voice_outbound_channel:remove');}),_0x44c72d['onSave']=_0x1c6083,_0x44c72d[_0x18bc35(0x1025)]=_0x2098c7;}const _0x51e027=_0x11330e;;_0x4c624b['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),'$mdDialog',_0x49a1e3(0xd77),_0x49a1e3(0x1c06),_0x49a1e3(0x832),_0x49a1e3(0xa19),_0x49a1e3(0x633),_0x49a1e3(0x1f8c),_0x49a1e3(0x680),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xdcf)];function _0x4c624b(_0x5bf10e,_0x36389c,_0x34ccb8,_0x150b77,_0x57fddb,_0x1ea657,_0x3b7e56,_0x46fba2,_0x26de8a,_0x404f47,_0x892e1,_0x3319c7,_0x57dc97){const _0x796830=_0x49a1e3,_0x109037=this;_0x109037[_0x796830(0x1d3d)]=_0x57dc97['getCurrentUser'](),_0x109037[_0x796830(0xd77)]=_0x150b77||{'count':0x0,'rows':[]},_0x109037[_0x796830(0x1c06)]=_0x57fddb?_0x28c606()[_0x796830(0x161e)](_0x57fddb[_0x796830(0x28b8)]?_0x57fddb[_0x796830(0x28b8)]:[],_0x796830(0x2494)):{},_0x109037['rpcVoiceQueuesChannelsTmp']=_0x1ea657?_0x28c606()[_0x796830(0x161e)](_0x1ea657[_0x796830(0x28b8)]?_0x28c606()['filter'](_0x1ea657['rows'],{'type':_0x796830(0x12a4)}):[],_0x796830(0x2947)):{},_0x109037[_0x796830(0x832)]={},_0x109037[_0x796830(0x16a8)]=_0x892e1,_0x109037['userProfileSection']=_0x3319c7&&_0x3319c7[_0x796830(0xb90)]==0x1?_0x3319c7[_0x796830(0x28b8)][0x0]:null,_0x109037[_0x796830(0x402)]=_0x57dc97[_0x796830(0xa7e)](_0x109037[_0x796830(0x16b2)]?_0x109037[_0x796830(0x16b2)][_0x796830(0x402)]:null),_0x109037[_0x796830(0x2470)]={'limit':0xa,'page':0x1},_0x109037[_0x796830(0x14ae)]=_0x4ed1d6,_0x109037[_0x796830(0xea6)]=_0x161bbe,_0x109037[_0x796830(0x249c)]=_0x2c402f,_0x109037['onRemove']=_0x5b1838,_0x109037[_0x796830(0x19dc)]=_0x23d83a,_0x109037[_0x796830(0x17b9)]=_0x240f11,_0x109037['redirectToNumber']=_0x4847e3,_0x46fba2['on']('voice_queue_channel:save',_0x109037[_0x796830(0x249c)]),_0x46fba2['on']('voice_queue_channel:remove',_0x109037['onRemove']);function _0x4ed1d6(_0x5f3790){const _0x59221f=_0x796830;return _0x28c606()[_0x59221f(0x1c97)](_0x5f3790);}function _0x161bbe(){const _0x48092b=_0x796830;_0x28c606()[_0x48092b(0x1789)](_0x109037['rpcVoiceQueuesChannelsTmp'],function(_0x3fe982,_0x3cbd37){const _0x2e6fab=_0x48092b;_0x28c606()[_0x2e6fab(0x27bc)](_0x109037[_0x2e6fab(0x1c06)],{'name':_0x3fe982[_0x2e6fab(0x2494)]})&&(_0x109037[_0x2e6fab(0x832)][_0x3cbd37]=_0x3fe982);});}function _0x2c402f(_0x5902c4){const _0x25b13e=_0x796830;_0x5902c4[_0x25b13e(0x2185)]==='inbound'&&(_0x28c606()[_0x25b13e(0x27bc)](_0x109037['queues'],{'name':_0x5902c4[_0x25b13e(0x2494)]})&&(_0x109037[_0x25b13e(0x832)][_0x5902c4['uniqueid']]=_0x5902c4));}function _0x5b1838(_0x1d0886){const _0x198270=_0x796830;_0x109037[_0x198270(0x832)][_0x1d0886['uniqueid']]&&delete _0x109037[_0x198270(0x832)][_0x1d0886[_0x198270(0x2947)]];}function _0x23d83a(_0x70cfc2){const _0x51b976=_0x796830;return _0x3b7e56[_0x51b976(0x19bd)][_0x51b976(0x14de)]({'uniqueid':_0x70cfc2})[_0x51b976(0x15e7)][_0x51b976(0x64a)](function(_0x4f2cb2){const _0x138128=_0x51b976;_0x404f47[_0x138128(0x1339)]({'title':_0x138128(0x27ab)+_0x70cfc2+_0x138128(0x25e),'msg':_0x4f2cb2[_0x138128(0x18ca)]||''});})[_0x51b976(0x20cd)](function(_0x31f71a){const _0x2c19c2=_0x51b976;_0x404f47[_0x2c19c2(0x1bd0)]({'title':_0x31f71a['status']+_0x2c19c2(0x21db)+_0x31f71a[_0x2c19c2(0x2115)],'msg':JSON[_0x2c19c2(0x2317)](_0x31f71a[_0x2c19c2(0x1c52)])||_0x31f71a[_0x2c19c2(0x18ca)][_0x2c19c2(0x9a6)]('\x20')});});}function _0x240f11(_0x5f1e60,_0x55c52a,_0x422b46){const _0x10b40a=_0x796830;return _0x3b7e56[_0x10b40a(0x19bd)][_0x10b40a(0x81c)]({'uniqueid':_0x5f1e60,'exten':_0x55c52a,'context':_0x422b46})['$promise'][_0x10b40a(0x64a)](function(_0xaceff3){const _0x4ac149=_0x10b40a;_0x404f47['success']({'title':_0x4ac149(0x27ab)+_0x5f1e60+_0x4ac149(0x2477),'msg':_0xaceff3[_0x4ac149(0x18ca)]||''});})[_0x10b40a(0x20cd)](function(_0x2ef7dd){const _0x30f4f3=_0x10b40a;_0x404f47[_0x30f4f3(0x1bd0)]({'title':_0x2ef7dd[_0x30f4f3(0x10b3)]+_0x30f4f3(0x21db)+_0x2ef7dd['statusText'],'msg':JSON[_0x30f4f3(0x2317)](_0x2ef7dd['data'])||_0x2ef7dd[_0x30f4f3(0x18ca)]['join']('\x20')});});}function _0x4847e3(_0x1e7b3d,_0x4fa6a6){const _0x303404=_0x796830,_0x1bbde0=_0x34ccb8['prompt']()[_0x303404(0x2021)]('Which\x20number\x20do\x20you\x20want\x20transfer\x20the\x20call\x20to?')['placeholder'](_0x303404(0x7f6))['targetEvent'](_0x1e7b3d)['ok']('Ok')[_0x303404(0x101a)](_0x303404(0x1dc6));return _0x34ccb8[_0x303404(0xa60)](_0x1bbde0)[_0x303404(0x64a)](function(_0x3eebb8){const _0x154540=_0x303404;return _0x3b7e56[_0x154540(0x19bd)]['getVoiceQueuesChannelRedirect']({'uniqueid':_0x4fa6a6,'exten':_0x3eebb8})['$promise'];})[_0x303404(0x64a)](function(_0x40f148){const _0xe878bb=_0x303404;_0x404f47[_0xe878bb(0x1339)]({'title':_0xe878bb(0x27ab)+_0x4fa6a6+_0xe878bb(0x2477),'msg':_0x40f148['message']||''});})[_0x303404(0x20cd)](function(_0x40f735){const _0x3e2fe6=_0x303404;_0x404f47[_0x3e2fe6(0x1bd0)]({'title':_0x40f735[_0x3e2fe6(0x10b3)]+_0x3e2fe6(0x21db)+_0x40f735[_0x3e2fe6(0x2115)],'msg':JSON[_0x3e2fe6(0x2317)](_0x40f735[_0x3e2fe6(0x1c52)])||_0x40f735[_0x3e2fe6(0x18ca)][_0x3e2fe6(0x9a6)]('\x20')});});}_0x5bf10e[_0x796830(0x8c7)](_0x796830(0xf28),function(){const _0x5f3864=_0x796830;_0x46fba2['removeAllListeners'](_0x5f3864(0xed5)),_0x46fba2[_0x5f3864(0x1951)](_0x5f3864(0x6d9));});}const _0x406e38=_0x4c624b;;_0x35e2f6['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0x1239),_0x49a1e3(0x1c06),_0x49a1e3(0x22c7),'api','socket',_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xdcf)];function _0x35e2f6(_0x3672f0,_0xc69ece,_0x43f3a8,_0x2e3d01,_0x1b7cdd,_0x4337a2,_0x383237,_0x2e5eb3,_0x5d9afc,_0x465d08){const _0x40c910=_0x49a1e3,_0x49012d=this,_0x1da3de=[_0x40c910(0x1318),_0x40c910(0xd92),'unmanaged','abandoned',_0x40c910(0x292d),_0x40c910(0x11dc),_0x40c910(0x286)];_0x49012d[_0x40c910(0xb90)]=_0x2e3d01[_0x40c910(0xb90)],_0x49012d[_0x40c910(0x1c06)]=_0x2e3d01?_0x28c606()['keyBy'](_0x2e3d01['rows']?_0x2e3d01[_0x40c910(0x28b8)]:[],'id'):{},_0x49012d[_0x40c910(0x22c7)]=_0x1b7cdd?_0x28c606()[_0x40c910(0x161e)](_0x1b7cdd[_0x40c910(0x28b8)]?_0x1b7cdd['rows']:[],'id'):{},_0x49012d[_0x40c910(0x16a8)]=_0x2e5eb3,_0x49012d['userProfileSection']=_0x5d9afc&&_0x5d9afc['count']==0x1?_0x5d9afc[_0x40c910(0x28b8)][0x0]:null,_0x49012d[_0x40c910(0x402)]=_0x465d08[_0x40c910(0xa7e)](_0x49012d[_0x40c910(0x16b2)]?_0x49012d[_0x40c910(0x16b2)][_0x40c910(0x402)]:null);_0x465d08[_0x40c910(0x4de)](_0x40c910(0x333))?_0x49012d[_0x40c910(0x289a)]={'type':_0x40c910(0x12a4),'fields':'id,name','sort':_0x40c910(0x260c),'limit':0xa,'page':0x1}:_0x49012d[_0x40c910(0x289a)]={'id':_0x465d08['getCurrentUser']()['id'],'channel':_0x40c910(0x227c),'type':'inbound','fields':_0x40c910(0x1427),'sort':_0x40c910(0x260c),'limit':0xa,'page':0x1};_0x49012d[_0x40c910(0x1339)]=_0x4ef499,_0x49012d['getQueues']=_0x2b401a,_0x49012d['onSave']=_0x1fca85,_0x49012d[_0x40c910(0xea6)]=_0x2d2d0e,_0x383237[_0x40c910(0x1939)](_0x40c910(0xb9c),_0x49012d['onSave']),_0x49012d['interval']=_0x43f3a8(function(){},0x3e7);function _0x2d2d0e(){const _0x332db5=_0x40c910;_0x28c606()[_0x332db5(0x1789)](_0x49012d['queues'],function(_0x3616e5,_0x288681){const _0x5dfa5a=_0x332db5;_0x49012d['rpcQueues'][_0x288681]&&_0x28c606()['merge'](_0x3616e5,_0x28c606()[_0x5dfa5a(0x27bb)](_0x49012d[_0x5dfa5a(0x22c7)][_0x288681],_0x1da3de));});}function _0x1fca85(_0x3e6999){const _0x206505=_0x40c910;_0x49012d[_0x206505(0x1c06)][_0x3e6999['id']]&&_0x28c606()[_0x206505(0x14fe)](_0x49012d[_0x206505(0x1c06)][_0x3e6999['id']],_0x28c606()[_0x206505(0x27bb)](_0x3e6999,_0x1da3de));}let _0x485462=!![],_0x316947=0x1;_0x3672f0[_0x40c910(0xc62)](_0x40c910(0x1cb9),function(_0x35f6bb,_0x53216e){const _0x18412f=_0x40c910;_0x485462?_0xc69ece(function(){_0x485462=![];}):(!_0x53216e&&(_0x316947=_0x49012d[_0x18412f(0x289a)][_0x18412f(0xc72)]),_0x35f6bb!==_0x53216e&&(_0x49012d['query'][_0x18412f(0xc72)]=0x1),!_0x35f6bb&&(_0x49012d['query'][_0x18412f(0xc72)]=_0x316947),_0x49012d['getQueues']());});function _0x4ef499(_0x289090){const _0x74316a=_0x40c910;_0x49012d[_0x74316a(0xb90)]=_0x289090[_0x74316a(0xb90)],_0x49012d['queues']=_0x289090?_0x28c606()[_0x74316a(0x161e)](_0x289090[_0x74316a(0x28b8)]?_0x289090['rows']:[],'id'):{},_0x2d2d0e();}function _0x2b401a(){const _0x542619=_0x40c910;_0x49012d[_0x542619(0x289a)][_0x542619(0x24f9)]=(_0x49012d[_0x542619(0x289a)][_0x542619(0xc72)]-0x1)*_0x49012d['query'][_0x542619(0x25bb)],_0x465d08['hasRole'](_0x542619(0x333))?_0x49012d[_0x542619(0x1713)]=_0x4337a2[_0x542619(0x178b)][_0x542619(0x896)](_0x49012d[_0x542619(0x289a)],_0x4ef499)['$promise']:(_0x49012d[_0x542619(0x289a)]['id']=_0x49012d[_0x542619(0x16a8)]['id'],_0x49012d[_0x542619(0x289a)][_0x542619(0xa21)]=_0x542619(0x2110),_0x49012d[_0x542619(0x1713)]=_0x4337a2[_0x542619(0x16a8)][_0x542619(0x2565)](_0x49012d['query'],_0x4ef499)[_0x542619(0x15e7)]);}_0x3672f0[_0x40c910(0x8c7)](_0x40c910(0xf28),function(){const _0x42d36c=_0x40c910;_0x383237[_0x42d36c(0x1951)](_0x42d36c(0xb9c)),_0x49012d['interval']&&_0x43f3a8[_0x42d36c(0x101a)](_0x49012d[_0x42d36c(0xcfd)]);});}const _0x1f820b=_0x35e2f6;;const _0x2df9d9=_0x2e4a48['p']+_0x49a1e3(0x975);;const _0x4e3c89=_0x2e4a48['p']+_0x49a1e3(0x261b);;_0x51c658[_0x49a1e3(0x1e73)]=['$scope','$timeout','$mdDialog','$q',_0x49a1e3(0x1373),_0x49a1e3(0x1239),_0x49a1e3(0x1c06),'rpcQueues','api','socket',_0x49a1e3(0x680),_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xdcf)];function _0x51c658(_0xe1d0a3,_0x5c57a4,_0x547caa,_0x2a1b67,_0x31c53b,_0x130894,_0x4dc98d,_0x53c0ee,_0x4559fb,_0x40e649,_0x1bc2cc,_0x843bdd,_0x5c3f1e,_0x197d74){const _0x2bdced=_0x49a1e3,_0x44addd=this,_0x44fe73=[_0x2bdced(0x17bc),_0x2bdced(0x1c58),'waiting',_0x2bdced(0x130d),_0x2bdced(0xc00),_0x2bdced(0xa1b),_0x2bdced(0x18ca),_0x2bdced(0x11b3),_0x2bdced(0xa69),_0x2bdced(0x1608),_0x2bdced(0x20a7)];_0x44addd[_0x2bdced(0x1d3d)]=_0x197d74['getCurrentUser'](),_0x44addd[_0x2bdced(0xb90)]=_0x4dc98d[_0x2bdced(0xb90)]?_0x4dc98d['count']:0x0,_0x44addd[_0x2bdced(0x1c06)]=_0x4dc98d?_0x28c606()['keyBy'](_0x4dc98d[_0x2bdced(0x28b8)]?_0x4dc98d[_0x2bdced(0x28b8)]:[],'id'):{},_0x44addd['rpcQueues']=_0x53c0ee?_0x28c606()[_0x2bdced(0x161e)](_0x53c0ee[_0x2bdced(0x28b8)]?_0x53c0ee['rows']:[],'id'):{},_0x44addd['userProfile']=_0x843bdd,_0x44addd[_0x2bdced(0x16b2)]=_0x5c3f1e&&_0x5c3f1e[_0x2bdced(0xb90)]==0x1?_0x5c3f1e[_0x2bdced(0x28b8)][0x0]:null,_0x44addd[_0x2bdced(0x402)]=_0x197d74['parseCrudPermissions'](_0x44addd[_0x2bdced(0x16b2)]?_0x44addd[_0x2bdced(0x16b2)][_0x2bdced(0x402)]:null);_0x197d74[_0x2bdced(0x4de)](_0x2bdced(0x333))?_0x44addd[_0x2bdced(0x289a)]={'type':_0x2bdced(0x12a4),'sort':_0x2bdced(0x260c),'limit':0xa,'page':0x1}:_0x44addd['query']={'id':_0x44addd[_0x2bdced(0x1d3d)]['id'],'channel':_0x2bdced(0x227c),'type':_0x2bdced(0x12a4),'sort':_0x2bdced(0x260c),'limit':0xa,'page':0x1};_0x44addd[_0x2bdced(0x1339)]=_0x207b9b,_0x44addd[_0x2bdced(0x1f2c)]=_0x1cc4c4,_0x44addd['createOrEditVoiceQueue']=_0x4bfcae,_0x44addd[_0x2bdced(0x2241)]=_0x4d0788,_0x44addd['updateQueue']=_0x4748f8,_0x44addd['onSave']=_0x3b10e3,_0x44addd['onPause']=_0x22276b,_0x44addd[_0x2bdced(0x4c3)]=_0x154211,_0x44addd[_0x2bdced(0x259)]=_0xe86549,_0x44addd[_0x2bdced(0xea6)]=_0x1e565b,_0x44addd['order']=[],_0x28c606()[_0x2bdced(0x1789)](_0x44addd[_0x2bdced(0x1c06)],function(_0x5bd3ca){const _0x2e9c55=_0x2bdced;_0x44addd['order'][_0x2e9c55(0x1954)](_0x5bd3ca['id']);}),_0x40e649['onWithoutApply'](_0x2bdced(0xb9c),_0x44addd[_0x2bdced(0x249c)]),_0x44addd[_0x2bdced(0xcfd)]=_0x130894(function(){},0x3e7),_0x40e649['on'](_0x2bdced(0x130f),_0x44addd['onPause']),_0x40e649['on']('userVoiceQueue:remove',_0x44addd[_0x2bdced(0x259)]),_0x40e649['on'](_0x2bdced(0x44b),_0x44addd[_0x2bdced(0x4c3)]);function _0x1e565b(){const _0x58d81f=_0x2bdced,_0x3219bd=[];return _0x28c606()[_0x58d81f(0x1789)](_0x44addd[_0x58d81f(0x1c06)],function(_0x4f3c1f,_0x92e6de){const _0xb50c82=_0x58d81f;_0x4f3c1f['paused']=0x0,_0x4f3c1f[_0xb50c82(0x371)]=0x0,_0x44addd[_0xb50c82(0x1c06)][_0x92e6de][_0xb50c82(0xd77)]={},_0x3219bd[_0xb50c82(0x1954)](_0x4559fb[_0xb50c82(0x178b)][_0xb50c82(0xf49)]({'id':_0x92e6de})[_0xb50c82(0x15e7)]),_0x44addd[_0xb50c82(0x22c7)][_0x92e6de]&&_0x28c606()[_0xb50c82(0x14fe)](_0x4f3c1f,_0x28c606()[_0xb50c82(0x27bb)](_0x44addd['rpcQueues'][_0x92e6de],_0x44fe73));}),_0x2a1b67[_0x58d81f(0x2705)](_0x3219bd)['then'](function(_0x5eaf43){const _0x1f54a9=_0x58d81f;for(let _0x3d28b7=0x0;_0x3d28b7<_0x5eaf43[_0x1f54a9(0x1b9e)];_0x3d28b7+=0x1){for(let _0x1fd5cd=0x0;_0x1fd5cd<_0x5eaf43[_0x3d28b7]['rows'][_0x1f54a9(0x1b9e)];_0x1fd5cd++){_0x5eaf43[_0x3d28b7][_0x1f54a9(0x28b8)][_0x1fd5cd][_0x1f54a9(0x20a7)]&&_0x44addd[_0x1f54a9(0x1c06)][_0x5eaf43[_0x3d28b7][_0x1f54a9(0x28b8)][_0x1fd5cd][_0x1f54a9(0x7c0)]][_0x1f54a9(0x20a7)]++,_0x44addd['queues'][_0x5eaf43[_0x3d28b7][_0x1f54a9(0x28b8)][_0x1fd5cd]['VoiceQueueId']][_0x1f54a9(0x371)]++,_0x44addd[_0x1f54a9(0x1c06)][_0x5eaf43[_0x3d28b7][_0x1f54a9(0x28b8)][_0x1fd5cd][_0x1f54a9(0x7c0)]][_0x1f54a9(0xd77)][_0x5eaf43[_0x3d28b7][_0x1f54a9(0x28b8)][_0x1fd5cd][_0x1f54a9(0x246c)]]=_0x5eaf43[_0x3d28b7]['rows'][_0x1fd5cd]['VoiceQueueId'];}}})[_0x58d81f(0x20cd)](function(_0xe9dc2b){const _0x2d8e27=_0x58d81f;console[_0x2d8e27(0x1bd0)](_0xe9dc2b);});}function _0x3b10e3(_0x268b4a){const _0x5c3b53=_0x2bdced;_0x44addd[_0x5c3b53(0x1c06)][_0x268b4a['id']]&&_0x28c606()[_0x5c3b53(0x14fe)](_0x44addd[_0x5c3b53(0x1c06)][_0x268b4a['id']],_0x28c606()['pick'](_0x268b4a,_0x44fe73));}function _0x22276b(_0x27fec3){const _0x1e86d1=_0x2bdced;console['log'](_0x1e86d1(0x2fe),_0x27fec3);if(_0x27fec3[_0x1e86d1(0x11a4)])_0x28c606()[_0x1e86d1(0x1789)](_0x44addd['queues'],function(_0x558bdb){const _0x26cc97=_0x1e86d1;_0x558bdb[_0x26cc97(0xd77)][_0x27fec3['id']]&&(_0x558bdb[_0x26cc97(0x20a7)]+=0x1,console['log'](_0x26cc97(0x2826)));});else!_0x27fec3['voicePause']&&_0x28c606()[_0x1e86d1(0x1789)](_0x44addd[_0x1e86d1(0x1c06)],function(_0x21ec95){const _0x4166f7=_0x1e86d1;_0x21ec95[_0x4166f7(0xd77)][_0x27fec3['id']]&&(_0x21ec95['paused']>0x0&&(_0x21ec95[_0x4166f7(0x20a7)]-=0x1,console[_0x4166f7(0x9b4)](_0x4166f7(0x818))));});}function _0x154211(_0x5191b3){const _0x1664d4=_0x2bdced;console[_0x1664d4(0x9b4)]('onLogged',_0x5191b3),_0x44addd['queues'][_0x5191b3[_0x1664d4(0x7c0)]]&&(_0x44addd[_0x1664d4(0x1c06)][_0x5191b3['VoiceQueueId']][_0x1664d4(0x371)]+=0x1,_0x44addd[_0x1664d4(0x1c06)][_0x5191b3[_0x1664d4(0x7c0)]][_0x1664d4(0xd77)][_0x5191b3['UserId']]=_0x5191b3['VoiceQueueId']);}function _0xe86549(_0x3d47dc){const _0x575801=_0x2bdced;console[_0x575801(0x9b4)](_0x575801(0x259),_0x3d47dc),_0x44addd[_0x575801(0x1c06)][_0x3d47dc[_0x575801(0x7c0)]]&&_0x44addd['queues'][_0x3d47dc['VoiceQueueId']][_0x575801(0x371)]>0x0&&(_0x44addd[_0x575801(0x1c06)][_0x3d47dc['VoiceQueueId']][_0x575801(0x371)]-=0x1,delete _0x44addd[_0x575801(0x1c06)][_0x3d47dc[_0x575801(0x7c0)]]['agents'][_0x3d47dc[_0x575801(0x246c)]]);}let _0x312f23=!![],_0x332db4=0x1;_0xe1d0a3[_0x2bdced(0xc62)](_0x2bdced(0x1cb9),function(_0x236263,_0x57a86a){const _0x2dfe92=_0x2bdced;_0x312f23?_0x5c57a4(function(){_0x312f23=![];}):(!_0x57a86a&&(_0x332db4=_0x44addd[_0x2dfe92(0x289a)][_0x2dfe92(0xc72)]),_0x236263!==_0x57a86a&&(_0x44addd[_0x2dfe92(0x289a)][_0x2dfe92(0xc72)]=0x1),!_0x236263&&(_0x44addd[_0x2dfe92(0x289a)][_0x2dfe92(0xc72)]=_0x332db4),_0x44addd[_0x2dfe92(0x1f2c)]());});function _0x207b9b(_0x318995){const _0x4bfa3b=_0x2bdced;_0x44addd[_0x4bfa3b(0xb90)]=_0x318995[_0x4bfa3b(0xb90)],_0x44addd[_0x4bfa3b(0x1c06)]=_0x318995?_0x28c606()[_0x4bfa3b(0x161e)](_0x318995[_0x4bfa3b(0x28b8)]?_0x318995['rows']:[],'id'):{};if(_0x318995['rows']){_0x44addd[_0x4bfa3b(0x1997)]=[];for(let _0x15837e=0x0;_0x15837e<_0x318995[_0x4bfa3b(0x28b8)][_0x4bfa3b(0x1b9e)];_0x15837e++){_0x44addd[_0x4bfa3b(0x1997)][_0x4bfa3b(0x1954)](_0x318995[_0x4bfa3b(0x28b8)][_0x15837e]['id']);}}_0x1e565b();}function _0x1cc4c4(){const _0x1c45e7=_0x2bdced;_0x44addd['query'][_0x1c45e7(0x24f9)]=(_0x44addd[_0x1c45e7(0x289a)][_0x1c45e7(0xc72)]-0x1)*_0x44addd[_0x1c45e7(0x289a)]['limit'],_0x197d74[_0x1c45e7(0x4de)](_0x1c45e7(0x333))?_0x44addd[_0x1c45e7(0x1713)]=_0x4559fb['voiceQueue'][_0x1c45e7(0x896)](_0x44addd['query'],_0x207b9b)[_0x1c45e7(0x15e7)]:(_0x44addd[_0x1c45e7(0x289a)]['id']=_0x44addd[_0x1c45e7(0x16a8)]['id'],_0x44addd['query'][_0x1c45e7(0xa21)]='VoiceQueues',_0x44addd[_0x1c45e7(0x1713)]=_0x4559fb['userProfile'][_0x1c45e7(0x2565)](_0x44addd[_0x1c45e7(0x289a)],_0x207b9b)[_0x1c45e7(0x15e7)]);}function _0x4bfcae(_0x36050b,_0x519c88){const _0x4da607=_0x2bdced;_0x547caa[_0x4da607(0xa60)]({'controller':_0x4da607(0xcba),'controllerAs':'vm','templateUrl':_0x2df9d9,'parent':angular[_0x4da607(0x1f81)](_0x31c53b[_0x4da607(0xb49)]),'targetEvent':_0x36050b,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x519c88,'voiceQueues':_0x28c606()[_0x4da607(0x2146)](_0x44addd['queues']),'license':null,'setting':null,'crudPermissions':_0x44addd[_0x4da607(0x402)]}});}function _0x4d0788(_0x3d1f8f,_0x46eb42){const _0x17a1fe=_0x2bdced;_0x547caa[_0x17a1fe(0xa60)]({'controller':_0x17a1fe(0x1d84),'controllerAs':'vm','templateUrl':_0x4e3c89,'parent':angular[_0x17a1fe(0x1f81)](_0x31c53b['body']),'targetEvent':_0x3d1f8f,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x46eb42,'voiceQueues':_0x44addd[_0x17a1fe(0x1c06)]?_0x44addd[_0x17a1fe(0x1c06)]['rows']:[],'realtime':!![],'crudPermissions':_0x44addd['crudPermissions']}});}function _0x4748f8(_0x53fc23){const _0x28cb35=_0x2bdced;return _0x4559fb[_0x28cb35(0x178b)][_0x28cb35(0x2603)](_0x53fc23)[_0x28cb35(0x15e7)][_0x28cb35(0x64a)](function(){const _0x36ab95=_0x28cb35;_0x1bc2cc['success']({'title':_0x36ab95(0x2bf),'msg':_0x53fc23[_0x36ab95(0x2494)]?_0x53fc23[_0x36ab95(0x2494)]+_0x36ab95(0x2032):''});})[_0x28cb35(0x20cd)](function(_0x577847){const _0x20aca1=_0x28cb35;_0x1bc2cc['error']({'title':'Error\x20creating\x20queue!','msg':_0x577847[_0x20aca1(0x18ca)]});});}_0xe1d0a3[_0x2bdced(0x8c7)](_0x2bdced(0xf28),function(){const _0x1181f1=_0x2bdced;_0x40e649[_0x1181f1(0x1951)](_0x1181f1(0xb9c)),_0x44addd[_0x1181f1(0xcfd)]&&_0x130894[_0x1181f1(0x101a)](_0x44addd[_0x1181f1(0xcfd)]),_0x40e649[_0x1181f1(0x1951)]('user:update'),_0x40e649['removeAllListeners'](_0x1181f1(0x289d)),_0x40e649[_0x1181f1(0x1951)]('userVoiceQueue:save');});}const _0x3c7d7e=_0x51c658;;function _0x229176(){const _0x5a3048=_0x49a1e3;return{'status':{'registered':_0x5a3048(0x26f8),'unregistered':'red-300-fg\x20icon-close-circle','lagged':_0x5a3048(0x2448),'reachable':_0x5a3048(0x26f8),'unreachable':_0x5a3048(0x2448),'unknown':_0x5a3048(0x178c)},'state':{'unknown':_0x5a3048(0x2971),'not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':_0x5a3048(0xa51),'busy':_0x5a3048(0xe3e),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':_0x5a3048(0x2971),'ringing':_0x5a3048(0x15e),'ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':_0x5a3048(0xced)},'channelStatus':{'ring':_0x5a3048(0x15e),'up':_0x5a3048(0x5c4),'hangup':_0x5a3048(0x2150)},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':_0x5a3048(0x5c4),'hangup':_0x5a3048(0x2150)}};}const _0xe3321f=_0x229176;;_0xc21ae2['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'socket'];function _0xc21ae2(_0x1ec653,_0x25a7d5,_0xf7c489){const _0x21926e=_0x49a1e3,_0x43e840=this;_0xf7c489[_0x21926e(0x1c31)](),_0xf7c489[_0x21926e(0x25fa)](),_0x43e840['selectedTab']=0x0;switch(_0x25a7d5[_0x21926e(0xa6c)]['name']){case _0x21926e(0x200):_0x43e840[_0x21926e(0x197c)]=0x0;break;case _0x21926e(0x25fd):_0x43e840[_0x21926e(0x197c)]=0x1;break;case _0x21926e(0x14f):_0x43e840[_0x21926e(0x197c)]=0x2;break;case _0x21926e(0x1dcb):_0x43e840[_0x21926e(0x197c)]=0x3;break;case _0x21926e(0x230):_0x43e840[_0x21926e(0x197c)]=0x4;break;case'app.voice.realtime.abandonedcalls':_0x43e840[_0x21926e(0x197c)]=0x5;break;case _0x21926e(0x6c0):_0x43e840[_0x21926e(0x197c)]=0x6;break;case _0x21926e(0xe40):_0x43e840['selectedTab']=0x7;break;default:_0x43e840[_0x21926e(0x197c)]=0x0,_0x25a7d5['go'](_0x21926e(0x200));}_0x1ec653[_0x21926e(0xc62)](_0x21926e(0x2303),function(_0x3ba504,_0x211083){const _0x53f453=_0x21926e;if(_0x3ba504!==_0x211083)switch(_0x3ba504){case 0x0:_0x25a7d5['go']('app.voice.realtime.agents');break;case 0x1:_0x25a7d5['go'](_0x53f453(0x25fd));break;case 0x2:_0x25a7d5['go'](_0x53f453(0x14f));break;case 0x3:_0x25a7d5['go'](_0x53f453(0x1dcb));break;case 0x4:_0x25a7d5['go'](_0x53f453(0x230));break;case 0x5:_0x25a7d5['go'](_0x53f453(0x7fb));break;case 0x6:_0x25a7d5['go'](_0x53f453(0x6c0));break;case 0x7:_0x25a7d5['go'](_0x53f453(0xe40));break;default:_0x25a7d5['go'](_0x53f453(0x200));}});}const _0x1ef5fe=_0xc21ae2;;_0xaa4555['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0xf2e),'rpcTelephones',_0x49a1e3(0xa19),_0x49a1e3(0x633),_0x49a1e3(0x1f8c),'userProfile','userProfileSection',_0x49a1e3(0xdcf)];function _0xaa4555(_0xa833a4,_0x43820a,_0x3ce378,_0x7f369a,_0x42f6b1,_0x204c51,_0x628925,_0x4dd4be,_0x5ad0db,_0x241bd3,_0x370719){const _0xd3a2d7=_0x49a1e3,_0xe9d507=this,_0x1c64bb=[_0xd3a2d7(0x15c),_0xd3a2d7(0xe2f),_0xd3a2d7(0x14f2),_0xd3a2d7(0x10b3)];_0xe9d507[_0xd3a2d7(0xb90)]=_0x7f369a[_0xd3a2d7(0xb90)],_0xe9d507[_0xd3a2d7(0x1f56)]=[_0xd3a2d7(0x15c),_0xd3a2d7(0xe2f),_0xd3a2d7(0x14f2),'status',_0xd3a2d7(0x81e)],_0xe9d507[_0xd3a2d7(0xf2e)]=_0x7f369a?_0x28c606()[_0xd3a2d7(0x161e)](_0x7f369a['rows']?_0x7f369a[_0xd3a2d7(0x28b8)]:[],'id'):{},_0xe9d507[_0xd3a2d7(0xbd2)]=_0x42f6b1?_0x28c606()[_0xd3a2d7(0x161e)](_0x42f6b1[_0xd3a2d7(0x28b8)]?_0x42f6b1[_0xd3a2d7(0x28b8)]:[],'id'):{},_0xe9d507['userProfile']=_0x5ad0db,_0xe9d507['userProfileSection']=_0x241bd3&&_0x241bd3[_0xd3a2d7(0xb90)]==0x1?_0x241bd3[_0xd3a2d7(0x28b8)][0x0]:null,_0xe9d507[_0xd3a2d7(0x402)]=_0x370719[_0xd3a2d7(0xa7e)](_0xe9d507[_0xd3a2d7(0x16b2)]?_0xe9d507['userProfileSection']['crudPermissions']:null),_0xe9d507[_0xd3a2d7(0x289a)]={'fields':_0xd3a2d7(0x134d),'role':'telephone','sort':_0xd3a2d7(0x260c),'limit':0xa,'page':0x1},_0xe9d507[_0xd3a2d7(0x68c)]=_0x4dd4be[_0xd3a2d7(0x10b3)],_0xe9d507[_0xd3a2d7(0x2396)]=_0x4dd4be[_0xd3a2d7(0x14f2)],_0xe9d507[_0xd3a2d7(0x1339)]=_0x266ed0,_0xe9d507['$onInit']=_0x3d664a,_0xe9d507[_0xd3a2d7(0x1133)]=_0x3235d9,_0xe9d507[_0xd3a2d7(0x21a)]=_0x288af3,_0xe9d507[_0xd3a2d7(0x249c)]=_0x4bf085,_0x628925['on']('telephone:save',_0xe9d507['onSave']);function _0x3d664a(){const _0x5e68d=_0xd3a2d7;_0x28c606()[_0x5e68d(0x1789)](_0xe9d507['telephones'],function(_0x115bf4,_0xe155a1){const _0xbd6ad2=_0x5e68d;_0xe9d507['rpcTelephones'][_0xe155a1]&&_0x28c606()[_0xbd6ad2(0x14fe)](_0x115bf4,_0x28c606()[_0xbd6ad2(0x27bb)](_0xe9d507[_0xbd6ad2(0xbd2)][_0xe155a1],_0x1c64bb));});}function _0x3235d9(_0x2d01fc){const _0x4fcb54=_0xd3a2d7;_0x3ce378[_0x4fcb54(0xa60)](_0x3ce378['alert']()[_0x4fcb54(0x1945)](!![])['title'](_0x4fcb54(0xe68))[_0x4fcb54(0x33a)](_0x4fcb54(0x424))['ok']('Ok')[_0x4fcb54(0x2283)](_0x2d01fc));}function _0x4bf085(_0xfe37cc){const _0x4665bb=_0xd3a2d7;_0xe9d507[_0x4665bb(0xf2e)][_0xfe37cc['id']]&&_0x28c606()[_0x4665bb(0x14fe)](_0xe9d507[_0x4665bb(0xf2e)][_0xfe37cc['id']],_0x28c606()[_0x4665bb(0x27bb)](_0xfe37cc,_0x1c64bb));}let _0xf1e583=!![],_0xf3e643=0x1;_0xa833a4[_0xd3a2d7(0xc62)](_0xd3a2d7(0x1cb9),function(_0x2466dd,_0x4dfa6f){const _0xfad774=_0xd3a2d7;_0xf1e583?_0x43820a(function(){_0xf1e583=![];}):(!_0x4dfa6f&&(_0xf3e643=_0xe9d507[_0xfad774(0x289a)][_0xfad774(0xc72)]),_0x2466dd!==_0x4dfa6f&&(_0xe9d507[_0xfad774(0x289a)]['page']=0x1),!_0x2466dd&&(_0xe9d507[_0xfad774(0x289a)][_0xfad774(0xc72)]=_0xf3e643),_0xe9d507[_0xfad774(0x21a)]());});function _0x266ed0(_0x428e3a){const _0x247016=_0xd3a2d7;_0xe9d507[_0x247016(0xf2e)]=_0x428e3a?_0x28c606()[_0x247016(0x161e)](_0x428e3a['rows']?_0x428e3a[_0x247016(0x28b8)]:[],'id'):{},_0x3d664a();}function _0x288af3(){const _0x136da6=_0xd3a2d7;_0xe9d507['query'][_0x136da6(0x24f9)]=(_0xe9d507[_0x136da6(0x289a)][_0x136da6(0xc72)]-0x1)*_0xe9d507[_0x136da6(0x289a)]['limit'],_0x370719['hasRole'](_0x136da6(0x333))?_0xe9d507[_0x136da6(0x1713)]=_0x204c51[_0x136da6(0x2e8)][_0x136da6(0x896)](_0xe9d507['query'],_0x266ed0)[_0x136da6(0x15e7)]:(_0xe9d507[_0x136da6(0x289a)]['id']=_0xe9d507['userProfile']['id'],_0xe9d507[_0x136da6(0x289a)]['section']=_0x136da6(0xc44),_0xe9d507['promise']=_0x204c51[_0x136da6(0x16a8)][_0x136da6(0x2565)](_0xe9d507[_0x136da6(0x289a)],_0x266ed0)[_0x136da6(0x15e7)]);}_0xa833a4[_0xd3a2d7(0x8c7)]('$destroy',function(){_0x628925['removeAllListeners']('telephone:save');});}const _0x314808=_0xaa4555;;_0x31bfec['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0xe23),'rpcTrunks',_0x49a1e3(0xa19),_0x49a1e3(0x633),_0x49a1e3(0x1f8c),_0x49a1e3(0x77f),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xdcf)];function _0x31bfec(_0x444f6e,_0x27ebf2,_0x2b3fcd,_0x54be93,_0x337526,_0x30abfd,_0x2add6f,_0x1cdb43,_0x3320b6,_0x1d4bf6,_0x21db7c,_0x418d78){const _0x15dfce=_0x49a1e3,_0x574944=this,_0x315ff1=[_0x15dfce(0x10b3),_0x15dfce(0x1c8a),_0x15dfce(0x3d2),_0x15dfce(0x1e5d),_0x15dfce(0x23f2),'internal',_0x15dfce(0x14f2),'status'];_0x574944[_0x15dfce(0x1d3d)]=_0x418d78[_0x15dfce(0x808)](),_0x574944[_0x15dfce(0xb90)]=_0x54be93['count'],_0x574944[_0x15dfce(0xe23)]=_0x54be93?_0x54be93['rows']:[],_0x574944[_0x15dfce(0x10cb)]=_0x337526?_0x337526[_0x15dfce(0x28b8)]?_0x337526[_0x15dfce(0x28b8)]:[]:[],_0x574944['query']={'fields':'id,name','active':!![],'sort':_0x15dfce(0x260c),'limit':0xa,'page':0x1},_0x574944['statusClass']=_0x1cdb43[_0x15dfce(0x10b3)],_0x574944[_0x15dfce(0x2396)]=_0x1cdb43['state'],_0x574944[_0x15dfce(0x16a8)]=_0x1d4bf6,_0x574944[_0x15dfce(0x16b2)]=_0x21db7c&&_0x21db7c[_0x15dfce(0xb90)]==0x1?_0x21db7c[_0x15dfce(0x28b8)][0x0]:null,_0x574944[_0x15dfce(0x402)]=_0x418d78[_0x15dfce(0xa7e)](_0x574944['userProfileSection']?_0x574944[_0x15dfce(0x16b2)]['crudPermissions']:null),_0x574944[_0x15dfce(0x1339)]=_0x2888aa,_0x574944[_0x15dfce(0xea6)]=_0x3b41f4,_0x574944[_0x15dfce(0x1133)]=_0x3c83f1,_0x574944[_0x15dfce(0xcee)]=_0x1eda69,_0x574944[_0x15dfce(0x7b1)]=_0x103fbf,_0x574944[_0x15dfce(0x249c)]=_0x3a2d8f,_0x2add6f['on']('trunk:save',_0x574944[_0x15dfce(0x249c)]);function _0x3b41f4(){const _0xfb92d8=_0x15dfce;let _0x1b2378;for(let _0x59d8ff=0x0;_0x59d8ff<_0x574944[_0xfb92d8(0xe23)]['length'];_0x59d8ff+=0x1){_0x1b2378=_0x28c606()[_0xfb92d8(0xb10)](_0x574944[_0xfb92d8(0x10cb)],['id',_0x574944[_0xfb92d8(0xe23)][_0x59d8ff]['id']]),_0x1b2378>=0x0&&_0x28c606()[_0xfb92d8(0x14fe)](_0x574944[_0xfb92d8(0xe23)][_0x59d8ff],_0x28c606()['pick'](_0x574944['rpcTrunks'][_0x1b2378],_0x315ff1));}}function _0x3c83f1(_0x5c79c1){const _0x51db19=_0x15dfce;_0x2b3fcd[_0x51db19(0xa60)](_0x2b3fcd[_0x51db19(0x2540)]()[_0x51db19(0x1945)](!![])[_0x51db19(0x2021)](_0x51db19(0xe68))['htmlContent'](_0x51db19(0x424))['ok']('Ok')[_0x51db19(0x2283)](_0x5c79c1));}function _0x39301a(_0x367a43,_0xb9c421,_0x114a99){const _0xe508b4=_0x15dfce;_0xb9c421>=0x0&&_0x28c606()[_0xe508b4(0x14fe)](_0x367a43[_0xb9c421],_0x28c606()[_0xe508b4(0x27bb)](_0x114a99,_0x315ff1));}function _0x3a2d8f(_0x5d6761){const _0x20fd34=_0x15dfce,_0x2714e1=_0x28c606()[_0x20fd34(0xb10)](_0x574944[_0x20fd34(0xe23)],['id',_0x5d6761['id']]),_0x4737cb=_0x28c606()[_0x20fd34(0xb10)](_0x574944[_0x20fd34(0x10cb)],['id',_0x5d6761['id']]);_0x39301a(_0x574944[_0x20fd34(0xe23)],_0x2714e1,_0x5d6761),_0x39301a(_0x574944[_0x20fd34(0x10cb)],_0x4737cb,_0x5d6761);}let _0x320b79=!![],_0x1ae6de=0x1;_0x444f6e[_0x15dfce(0xc62)](_0x15dfce(0x1cb9),function(_0x345b57,_0x2268a9){const _0x13e130=_0x15dfce;_0x320b79?_0x27ebf2(function(){_0x320b79=![];}):(!_0x2268a9&&(_0x1ae6de=_0x574944[_0x13e130(0x289a)][_0x13e130(0xc72)]),_0x345b57!==_0x2268a9&&(_0x574944[_0x13e130(0x289a)][_0x13e130(0xc72)]=0x1),!_0x345b57&&(_0x574944[_0x13e130(0x289a)][_0x13e130(0xc72)]=_0x1ae6de),_0x574944[_0x13e130(0xcee)]());});function _0x2888aa(_0x4fd80b){const _0x8c8b23=_0x15dfce;_0x574944[_0x8c8b23(0xb90)]=_0x4fd80b[_0x8c8b23(0xb90)],_0x574944['trunks']=_0x4fd80b?_0x4fd80b['rows']?_0x4fd80b['rows']:[]:[],_0x3b41f4();}function _0x1eda69(){const _0x391122=_0x15dfce;_0x574944[_0x391122(0x289a)]['offset']=(_0x574944[_0x391122(0x289a)][_0x391122(0xc72)]-0x1)*_0x574944[_0x391122(0x289a)][_0x391122(0x25bb)],_0x418d78[_0x391122(0x4de)](_0x391122(0x333))?_0x574944[_0x391122(0x1713)]=_0x30abfd[_0x391122(0x4ef)][_0x391122(0x896)](_0x574944[_0x391122(0x289a)],_0x2888aa)[_0x391122(0x15e7)]:(_0x574944[_0x391122(0x289a)]['id']=_0x574944[_0x391122(0x16a8)]['id'],_0x574944[_0x391122(0x289a)][_0x391122(0xa21)]='Trunks',_0x574944[_0x391122(0x1713)]=_0x30abfd[_0x391122(0x16a8)][_0x391122(0x2565)](_0x574944[_0x391122(0x289a)],_0x2888aa)['$promise']);}_0x444f6e[_0x15dfce(0x8c7)]('$destroy',function(){const _0x4a9e6e=_0x15dfce;_0x2add6f[_0x4a9e6e(0x1951)](_0x4a9e6e(0x1418));});function _0x103fbf(_0x1049fd,_0x58771d){const _0x59044c=_0x15dfce;_0x3320b6['go'](_0x59044c(0x1f7),{'id':_0x58771d['id']});}}const _0x37404b=_0x31bfec;;const _0x3864df=_0x2e4a48['p']+_0x49a1e3(0x1411);;const _0x40ccec=_0x2e4a48['p']+_0x49a1e3(0x2951);;const _0x34d6f1=_0x2e4a48['p']+_0x49a1e3(0x1a62);;const _0x55c2fa=_0x2e4a48['p']+_0x49a1e3(0x9ad);;const _0x39dabb=_0x2e4a48['p']+_0x49a1e3(0x20dc);;const _0x1668a7=_0x2e4a48['p']+_0x49a1e3(0x2400);;const _0x2ca470=_0x2e4a48['p']+'src/js/modules/main/apps/voice/views/realtime/abandonedcalls/view.html/view.html';;const _0x25326b=_0x2e4a48['p']+_0x49a1e3(0x135d);;const _0x11f1b3=_0x2e4a48['p']+_0x49a1e3(0x24c5);;_0x20cbe2[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad)];function _0x20cbe2(_0x5a2614){const _0x2e48c5=_0x49a1e3;_0x5a2614[_0x2e48c5(0x14f2)](_0x2e48c5(0x18cd),{'url':_0x2e48c5(0x71d),'views':{'content@app':{'templateUrl':_0x3864df,'controller':_0x2e48c5(0x195d)}},'resolve':{'userProfile':[_0x2e48c5(0x107c),_0x2e48c5(0xdcf),function(_0x4b42d1,_0x4fc8d2){const _0x2fa6e1=_0x2e48c5;return _0x4fc8d2['hasRole']('admin')?null:_0x4b42d1[_0x2fa6e1(0x1268)](_0x2fa6e1(0x6e3),{'fields':_0x2fa6e1(0x10d2),'id':_0x4fc8d2[_0x2fa6e1(0x808)]()[_0x2fa6e1(0x21ac)]});}],'userProfileSection':['apiResolver','Auth',function(_0xadce85,_0x900580){const _0x11f69c=_0x2e48c5;return _0x900580[_0x11f69c(0x4de)](_0x11f69c(0x333))?null:_0xadce85[_0x11f69c(0x1268)](_0x11f69c(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x900580[_0x11f69c(0x808)]()[_0x11f69c(0x21ac)],'sectionId':0x19b});}]},'authenticate':!![],'permissionId':0x19b})[_0x2e48c5(0x14f2)](_0x2e48c5(0x200),{'url':_0x2e48c5(0x23f8),'controller':_0x2e48c5(0x1ae9),'templateUrl':_0x40ccec,'resolve':{'pauses':[_0x2e48c5(0x107c),function(_0x5e4307){const _0x458a1d=_0x2e48c5;return _0x5e4307[_0x458a1d(0x1268)](_0x458a1d(0x1fae),{'nolimit':!![]});}],'agents':[_0x2e48c5(0x107c),_0x2e48c5(0xdcf),function(_0x4f962d,_0x3ee699){const _0x3b78ed=_0x2e48c5;return _0x3ee699['hasRole'](_0x3b78ed(0x333))?_0x4f962d[_0x3b78ed(0x1268)](_0x3b78ed(0x142c),{'fields':_0x3b78ed(0x1956),'role':_0x3b78ed(0x11ae),'sort':_0x3b78ed(0x15c),'nolimit':!![]}):_0x4f962d['resolve'](_0x3b78ed(0x1758),{'id':_0x3ee699[_0x3b78ed(0x808)]()[_0x3b78ed(0x21ac)],'section':_0x3b78ed(0x2132),'fields':_0x3b78ed(0x1956),'role':'agent','sort':_0x3b78ed(0x15c),'nolimit':!![]});}],'userProfile':[_0x2e48c5(0x107c),'Auth',function(_0x5b3e52,_0x2ba3a0){const _0x349126=_0x2e48c5;return _0x2ba3a0[_0x349126(0x4de)]('admin')?null:_0x5b3e52[_0x349126(0x1268)](_0x349126(0x6e3),{'fields':'id,name,crudPermissions','id':_0x2ba3a0[_0x349126(0x808)]()['userProfileId']});}],'userProfileSection':[_0x2e48c5(0x107c),'Auth',function(_0x2e53b2,_0x36b5d3){const _0x57e1c7=_0x2e48c5;return _0x36b5d3['hasRole'](_0x57e1c7(0x333))?null:_0x2e53b2[_0x57e1c7(0x1268)](_0x57e1c7(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x36b5d3['getCurrentUser']()[_0x57e1c7(0x21ac)],'sectionId':0xca});}],'rpcAgents':[_0x2e48c5(0x107c),function(_0x329e31){const _0x54e78d=_0x2e48c5;return _0x329e31[_0x54e78d(0x1268)](_0x54e78d(0x2222));}]},'authenticate':!![],'permissionId':0x19b})[_0x2e48c5(0x14f2)](_0x2e48c5(0x25fd),{'url':_0x2e48c5(0x289b),'controller':_0x2e48c5(0x4a1),'templateUrl':_0x34d6f1,'resolve':{'telephones':[_0x2e48c5(0x107c),_0x2e48c5(0xdcf),function(_0x33ee12,_0x5e5df7){const _0x570f0d=_0x2e48c5;return _0x5e5df7[_0x570f0d(0x4de)]('admin')?_0x33ee12['resolve'](_0x570f0d(0x142c),{'fields':'id,fullname,userpic,internal','role':_0x570f0d(0x1782),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x33ee12[_0x570f0d(0x1268)](_0x570f0d(0x1758),{'id':_0x5e5df7['getCurrentUser']()[_0x570f0d(0x21ac)],'section':_0x570f0d(0xc44),'fields':_0x570f0d(0x7cb),'role':_0x570f0d(0x1782),'sort':_0x570f0d(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2e48c5(0x107c),_0x2e48c5(0xdcf),function(_0x545eb5,_0x20cd60){const _0x15413f=_0x2e48c5;return _0x20cd60[_0x15413f(0x4de)]('admin')?null:_0x545eb5[_0x15413f(0x1268)]('userProfile@get',{'fields':_0x15413f(0x10d2),'id':_0x20cd60[_0x15413f(0x808)]()[_0x15413f(0x21ac)]});}],'userProfileSection':[_0x2e48c5(0x107c),_0x2e48c5(0xdcf),function(_0xfe652d,_0x299919){const _0x3a93ed=_0x2e48c5;return _0x299919[_0x3a93ed(0x4de)](_0x3a93ed(0x333))?null:_0xfe652d[_0x3a93ed(0x1268)](_0x3a93ed(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x299919[_0x3a93ed(0x808)]()[_0x3a93ed(0x21ac)],'sectionId':0xcb});}],'rpcTelephones':[_0x2e48c5(0x107c),function(_0x222e22){const _0x5d0628=_0x2e48c5;return _0x222e22[_0x5d0628(0x1268)](_0x5d0628(0x21d8));}]},'authenticate':!![],'permissionId':0x19b})[_0x2e48c5(0x14f2)](_0x2e48c5(0x14f),{'url':_0x2e48c5(0xa5b),'controller':_0x2e48c5(0x925),'templateUrl':_0x55c2fa,'resolve':{'trunks':[_0x2e48c5(0x107c),_0x2e48c5(0xdcf),function(_0x5aea6d,_0x1ea864){const _0x168201=_0x2e48c5;return _0x1ea864['hasRole'](_0x168201(0x333))?_0x5aea6d[_0x168201(0x1268)]('trunk@get',{'fields':_0x168201(0x1427),'active':!![],'sort':_0x168201(0x260c),'limit':0xa,'offset':0x0}):_0x5aea6d[_0x168201(0x1268)](_0x168201(0x1758),{'id':_0x1ea864[_0x168201(0x808)]()[_0x168201(0x21ac)],'section':'Trunks','fields':'id,name','active':!![],'sort':_0x168201(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2e48c5(0x107c),_0x2e48c5(0xdcf),function(_0x2f0281,_0x3eab53){const _0x31a776=_0x2e48c5;return _0x3eab53[_0x31a776(0x4de)](_0x31a776(0x333))?null:_0x2f0281[_0x31a776(0x1268)](_0x31a776(0x6e3),{'fields':_0x31a776(0x10d2),'id':_0x3eab53[_0x31a776(0x808)]()[_0x31a776(0x21ac)]});}],'userProfileSection':['apiResolver',_0x2e48c5(0xdcf),function(_0x2a8f0a,_0x59f50e){const _0x78b807=_0x2e48c5;return _0x59f50e[_0x78b807(0x4de)](_0x78b807(0x333))?null:_0x2a8f0a[_0x78b807(0x1268)](_0x78b807(0x2681),{'fields':_0x78b807(0x527),'userProfileId':_0x59f50e['getCurrentUser']()[_0x78b807(0x21ac)],'sectionId':0x3f3});}],'rpcTrunks':[_0x2e48c5(0x107c),function(_0x29270e){const _0x522691=_0x2e48c5;return _0x29270e[_0x522691(0x1268)](_0x522691(0x220c));}]},'authenticate':!![],'permissionId':0x19b})['state'](_0x2e48c5(0x1dcb),{'url':_0x2e48c5(0x16ca),'controller':'QueuesVoiceRealtimeController\x20as\x20vm','templateUrl':_0x39dabb,'resolve':{'queues':['apiResolver',_0x2e48c5(0xdcf),function(_0x50c65a,_0x334618){const _0x5b8dba=_0x2e48c5;return _0x334618[_0x5b8dba(0x4de)]('admin')?_0x50c65a[_0x5b8dba(0x1268)](_0x5b8dba(0x1c51),{'type':_0x5b8dba(0x12a4),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x50c65a['resolve']('userProfile@getResources',{'id':_0x334618[_0x5b8dba(0x808)]()[_0x5b8dba(0x21ac)],'section':_0x5b8dba(0x2110),'channel':_0x5b8dba(0x227c),'type':_0x5b8dba(0x12a4),'sort':_0x5b8dba(0x260c),'limit':0xa,'page':0x1});}],'userProfile':['apiResolver','Auth',function(_0x45898f,_0x444786){const _0x18c904=_0x2e48c5;return _0x444786['hasRole'](_0x18c904(0x333))?null:_0x45898f[_0x18c904(0x1268)](_0x18c904(0x6e3),{'fields':'id,name,crudPermissions','id':_0x444786[_0x18c904(0x808)]()['userProfileId']});}],'userProfileSection':[_0x2e48c5(0x107c),_0x2e48c5(0xdcf),function(_0x20630d,_0x35087b){const _0x3a4a95=_0x2e48c5;return _0x35087b[_0x3a4a95(0x4de)]('admin')?null:_0x20630d['resolve'](_0x3a4a95(0x2681),{'fields':_0x3a4a95(0x527),'userProfileId':_0x35087b[_0x3a4a95(0x808)]()[_0x3a4a95(0x21ac)],'sectionId':0x191});}],'rpcQueues':[_0x2e48c5(0x107c),function(_0x38adc4){const _0xe12182=_0x2e48c5;return _0x38adc4['resolve'](_0xe12182(0xe70));}]},'authenticate':!![],'permissionId':0x19b})[_0x2e48c5(0x14f2)]('app.voice.realtime.queue_calls',{'url':_0x2e48c5(0x233c),'controller':_0x2e48c5(0x2453),'templateUrl':_0x1668a7,'resolve':{'agents':['apiResolver',_0x2e48c5(0xdcf),function(_0x1dc0cd,_0x44a112){const _0x359588=_0x2e48c5;return _0x44a112[_0x359588(0x4de)](_0x359588(0x333))?_0x1dc0cd[_0x359588(0x1268)]('user@get',{'fields':_0x359588(0x1c8b),'role':'agent','nolimit':!![]}):_0x1dc0cd[_0x359588(0x1268)](_0x359588(0x1758),{'id':_0x44a112[_0x359588(0x808)]()[_0x359588(0x21ac)],'section':'Agents','fields':_0x359588(0x1c8b),'role':_0x359588(0x11ae),'nolimit':!![]});}],'queues':[_0x2e48c5(0x107c),_0x2e48c5(0xdcf),function(_0x17361f,_0x25ce09){const _0x369156=_0x2e48c5;return _0x25ce09[_0x369156(0x4de)](_0x369156(0x333))?_0x17361f[_0x369156(0x1268)](_0x369156(0x1c51),{'type':_0x369156(0x12a4),'sort':_0x369156(0x260c),'nolimit':!![]}):_0x17361f[_0x369156(0x1268)](_0x369156(0x1758),{'id':_0x25ce09['getCurrentUser']()['userProfileId'],'section':_0x369156(0x2110),'channel':_0x369156(0x227c),'type':_0x369156(0x12a4),'sort':'-updatedAt','nolimit':!![]});}],'userProfile':[_0x2e48c5(0x107c),_0x2e48c5(0xdcf),function(_0x56c7d2,_0x4a688d){const _0x5c7671=_0x2e48c5;return _0x4a688d[_0x5c7671(0x4de)]('admin')?null:_0x56c7d2[_0x5c7671(0x1268)](_0x5c7671(0x6e3),{'fields':_0x5c7671(0x10d2),'id':_0x4a688d['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x2e48c5(0x107c),_0x2e48c5(0xdcf),function(_0x72f5f2,_0x3dd864){const _0x244ee3=_0x2e48c5;return _0x3dd864[_0x244ee3(0x4de)](_0x244ee3(0x333))?null:_0x72f5f2[_0x244ee3(0x1268)](_0x244ee3(0x2681),{'fields':_0x244ee3(0x527),'userProfileId':_0x3dd864[_0x244ee3(0x808)]()[_0x244ee3(0x21ac)],'sectionId':0x191});}],'rpcVoiceQueuesChannels':['apiResolver',function(_0x13140f){const _0x293f19=_0x2e48c5;return _0x13140f[_0x293f19(0x1268)]('rpc@getVoiceQueuesChannels');}]},'authenticate':!![],'permissionId':0x19b})['state']('app.voice.realtime.abandonedcalls',{'url':_0x2e48c5(0x19df),'controller':_0x2e48c5(0x24c6),'templateUrl':_0x2ca470,'resolve':{'agents':[_0x2e48c5(0x107c),_0x2e48c5(0xdcf),function(_0x3ea993,_0x43c686){const _0x3d5173=_0x2e48c5;return _0x43c686[_0x3d5173(0x4de)](_0x3d5173(0x333))?_0x3ea993[_0x3d5173(0x1268)](_0x3d5173(0x142c),{'fields':_0x3d5173(0x1c8b),'role':_0x3d5173(0x11ae),'nolimit':!![]}):_0x3ea993[_0x3d5173(0x1268)](_0x3d5173(0x1758),{'id':_0x43c686[_0x3d5173(0x808)]()['userProfileId'],'section':_0x3d5173(0x2132),'fields':_0x3d5173(0x1c8b),'role':_0x3d5173(0x11ae),'nolimit':!![]});}],'queues':[_0x2e48c5(0x107c),_0x2e48c5(0xdcf),function(_0x1a914d,_0x55efe2){const _0xe5b94e=_0x2e48c5;return _0x55efe2['hasRole']('admin')?_0x1a914d[_0xe5b94e(0x1268)]('voiceQueue@get',{'type':_0xe5b94e(0x12a4),'sort':_0xe5b94e(0x260c),'nolimit':!![]}):_0x1a914d[_0xe5b94e(0x1268)](_0xe5b94e(0x1758),{'id':_0x55efe2[_0xe5b94e(0x808)]()[_0xe5b94e(0x21ac)],'section':'VoiceQueues','channel':'voice','type':_0xe5b94e(0x12a4),'sort':_0xe5b94e(0x260c),'nolimit':!![]});}],'dispositions':[_0x2e48c5(0x107c),_0x2e48c5(0xdcf),function(_0xf27ca6,_0x3357d2){const _0x419ffa=_0x2e48c5;return _0x3357d2['hasRole'](_0x419ffa(0x333))?_0xf27ca6['resolve'](_0x419ffa(0x10c9),{'fields':'createdAt,updatedAt,id,name,level,ParentId','sort':'-updatedAt','MailAccountId':'null','FaxAccountId':'null','SmsAccountId':_0x419ffa(0x8f1),'WhatsappAccountId':_0x419ffa(0x8f1),'OpenchannelAccountId':_0x419ffa(0x8f1),'ChatWebsiteId':_0x419ffa(0x8f1),'ListId':_0x419ffa(0x8f1),'nolimit':!![]}):_0xf27ca6[_0x419ffa(0x1268)](_0x419ffa(0x1758),{'id':_0x3357d2[_0x419ffa(0x808)]()['userProfileId'],'section':_0x419ffa(0x1772),'fields':_0x419ffa(0x2624),'sort':_0x419ffa(0x260c),'MailAccountId':_0x419ffa(0x8f1),'FaxAccountId':'null','SmsAccountId':_0x419ffa(0x8f1),'WhatsappAccountId':'null','OpenchannelAccountId':_0x419ffa(0x8f1),'ChatWebsiteId':'null','ListId':'null','nolimit':!![]});}],'userProfile':[_0x2e48c5(0x107c),_0x2e48c5(0xdcf),function(_0x59aac7,_0x531f01){const _0x3c9758=_0x2e48c5;return _0x531f01[_0x3c9758(0x4de)](_0x3c9758(0x333))?null:_0x59aac7['resolve'](_0x3c9758(0x6e3),{'fields':_0x3c9758(0x10d2),'id':_0x531f01['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x2e48c5(0x107c),_0x2e48c5(0xdcf),function(_0x58a18e,_0x50a10c){const _0x5bb97c=_0x2e48c5;return _0x50a10c[_0x5bb97c(0x4de)](_0x5bb97c(0x333))?null:_0x58a18e[_0x5bb97c(0x1268)]('userProfileSection@get',{'fields':_0x5bb97c(0x527),'userProfileId':_0x50a10c['getCurrentUser']()[_0x5bb97c(0x21ac)],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x19b})[_0x2e48c5(0x14f2)](_0x2e48c5(0x6c0),{'url':_0x2e48c5(0x1778),'controller':'QueueParamsVoiceRealtimeController\x20as\x20vm','templateUrl':_0x25326b,'resolve':{'queues':[_0x2e48c5(0x107c),_0x2e48c5(0xdcf),function(_0x5b510a,_0x481715){const _0xd9075c=_0x2e48c5;return _0x481715['hasRole'](_0xd9075c(0x333))?_0x5b510a[_0xd9075c(0x1268)](_0xd9075c(0x1c51),{'type':'inbound','fields':_0xd9075c(0x1427),'sort':_0xd9075c(0x260c),'limit':0xa,'offset':0x0}):_0x5b510a[_0xd9075c(0x1268)](_0xd9075c(0x1758),{'id':_0x481715['getCurrentUser']()[_0xd9075c(0x21ac)],'section':'VoiceQueues','channel':_0xd9075c(0x227c),'type':'inbound','sort':'-updatedAt','nolimit':!![]});}],'userProfile':[_0x2e48c5(0x107c),'Auth',function(_0x2a0fd5,_0x2aebe7){const _0x4a1867=_0x2e48c5;return _0x2aebe7[_0x4a1867(0x4de)]('admin')?null:_0x2a0fd5['resolve'](_0x4a1867(0x6e3),{'fields':_0x4a1867(0x10d2),'id':_0x2aebe7[_0x4a1867(0x808)]()[_0x4a1867(0x21ac)]});}],'userProfileSection':[_0x2e48c5(0x107c),'Auth',function(_0xb63c4d,_0x45e77e){const _0x4b3ed6=_0x2e48c5;return _0x45e77e[_0x4b3ed6(0x4de)](_0x4b3ed6(0x333))?null:_0xb63c4d[_0x4b3ed6(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x45e77e['getCurrentUser']()[_0x4b3ed6(0x21ac)],'sectionId':0x191});}],'rpcQueues':[_0x2e48c5(0x107c),function(_0x50a42f){const _0x4915ae=_0x2e48c5;return _0x50a42f[_0x4915ae(0x1268)](_0x4915ae(0xe70));}]},'authenticate':!![],'permissionId':0x19b})[_0x2e48c5(0x14f2)](_0x2e48c5(0xe40),{'url':_0x2e48c5(0x1392),'controller':_0x2e48c5(0xd36),'templateUrl':_0x11f1b3,'resolve':{'rpcCalls':['apiResolver',function(_0x3d2140){const _0x543b59=_0x2e48c5;return _0x3d2140[_0x543b59(0x1268)]('rpc@getOutboundChannels');}]},'authenticate':!![],'permissionId':0x19b});}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x18cd),[])[_0x49a1e3(0x3d3)](_0x20cbe2)[_0x49a1e3(0x38e)](_0x49a1e3(0x16b7),_0x3a6b85)[_0x49a1e3(0x38e)](_0x49a1e3(0x1834),_0x1cd75a)[_0x49a1e3(0x38e)](_0x49a1e3(0x7c4),_0x51e027)[_0x49a1e3(0x38e)](_0x49a1e3(0xf5a),_0x406e38)[_0x49a1e3(0x38e)](_0x49a1e3(0x1fdf),_0x1f820b)[_0x49a1e3(0x38e)]('QueuesVoiceRealtimeController',_0x3c7d7e)[_0x49a1e3(0x646)](_0x49a1e3(0x1f8c),_0xe3321f)[_0x49a1e3(0x38e)]('VoiceRealtimeController',_0x1ef5fe)[_0x49a1e3(0x38e)](_0x49a1e3(0x2602),_0x314808)[_0x49a1e3(0x38e)](_0x49a1e3(0x2411),_0x37404b);;const _0x2593cd=_0x2e4a48['p']+'src/js/modules/main/apps/voice/views/chanSpies/create/dialog.html/dialog.html';;_0x2290fb[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x1fe7),'$state',_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),'$translate',_0x49a1e3(0x1c14),'userProfile','userProfileSection',_0x49a1e3(0xa19),'msUtils',_0x49a1e3(0x680),_0x49a1e3(0xdcf),'license','setting'];function _0x2290fb(_0x306e4f,_0x4f0738,_0x4a14f2,_0x3d0dbe,_0x5c7920,_0x26693b,_0x11b77e,_0x45b8ff,_0x180ceb,_0x347f65,_0x4f8b78,_0x20a11f,_0x56b1d5,_0x3b6715,_0x1de29c,_0xeda02b,_0xff054d){const _0x240d1e=_0x49a1e3,_0x45090d=this;_0x45090d[_0x240d1e(0x1947)]=_0xeda02b,_0x45090d[_0x240d1e(0x28d6)]=_0xff054d,_0x45090d['currentUser']=_0x1de29c['getCurrentUser'](),_0x45090d[_0x240d1e(0x1c14)]=_0x180ceb||{'count':0x0,'rows':[]},_0x45090d[_0x240d1e(0x16a8)]=_0x347f65,_0x45090d[_0x240d1e(0x16b2)]=_0x4f8b78&&_0x4f8b78['count']==0x1?_0x4f8b78[_0x240d1e(0x28b8)][0x0]:null,_0x45090d[_0x240d1e(0x402)]=_0x1de29c[_0x240d1e(0xa7e)](_0x45090d[_0x240d1e(0x16b2)]?_0x45090d['userProfileSection'][_0x240d1e(0x402)]:null),_0x45090d[_0x240d1e(0x185d)]=_0x240d1e(0x1c14),_0x45090d[_0x240d1e(0x300)]='',_0x45090d['listOrderAsc']=null,_0x45090d['selectedChanSpies']=[],_0x45090d[_0x240d1e(0x289a)]={'fields':'createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description','sort':_0x240d1e(0x260c),'limit':0xa,'page':0x1},_0x45090d[_0x240d1e(0x12c)]=_0x28c606()[_0x240d1e(0x161e)]([{'option':_0x240d1e(0xe34),'value':'\x27b\x27'},{'option':'B:\x20Instead\x20of\x20whispering\x20on\x20a\x20single\x20channel\x20barge\x20in\x20on\x20both\x20channels\x20involved\x20in\x20the\x20call.','value':_0x240d1e(0x67d)},{'option':'E:\x20Exit\x20when\x20the\x20spied-on\x20channel\x20hangs\x20up.','value':_0x240d1e(0x239b)},{'option':'o:\x20Only\x20listen\x20to\x20audio\x20coming\x20from\x20this\x20channel.','value':_0x240d1e(0x1597)},{'option':'q:\x20Don\x27t\x20play\x20a\x20beep\x20when\x20beginning\x20to\x20spy\x20on\x20a\x20channel,\x20or\x20speak\x20the\x20selected\x20channel\x20name.','value':_0x240d1e(0x273d)},{'option':_0x240d1e(0x13ed),'value':_0x240d1e(0x2384)},{'option':_0x240d1e(0xb02),'value':_0x240d1e(0x1bae)},{'option':_0x240d1e(0x206f),'value':_0x240d1e(0xd2b)},{'option':'W:\x20Enable\x20private\x20whisper\x20mode,\x20so\x20the\x20spying\x20channel\x20can\x20talk\x20to\x20the\x20spied-on\x20channel\x20but\x20cannot\x20listen\x20to\x20that\x20channel.','value':_0x240d1e(0xd41)}],function(_0x50dbb3){const _0x3ef405=_0x240d1e;return _0x28c606()[_0x3ef405(0x1353)](_0x50dbb3['value'],new RegExp('\x27','g'),'');}),_0x45090d[_0x240d1e(0x1d3a)]=_0x28c606()[_0x240d1e(0x161e)]([{'option':_0x240d1e(0x74b),'value':_0x240d1e(0xdfa)},{'option':_0x240d1e(0x8e1),'value':'\x27gsm\x27'},{'option':_0x240d1e(0x1f92),'value':'\x27WAV\x27'}],function(_0x252071){const _0x2335cf=_0x240d1e;return _0x28c606()[_0x2335cf(0x1353)](_0x252071['value'],new RegExp('\x27','g'),'');}),_0x45090d['editdialog']=_0x47ef0b,_0x45090d[_0x240d1e(0x1262)]=_0x2ccf8e,_0x45090d['success']=_0x46395d,_0x45090d[_0x240d1e(0x8ab)]=_0x10e411,_0x45090d[_0x240d1e(0xb8b)]=_0x7c1d05,_0x45090d['deletechanSpy']=_0x71a757,_0x45090d[_0x240d1e(0x2054)]=_0x1aed41,_0x45090d[_0x240d1e(0x174d)]=_0x16b64f,_0x45090d[_0x240d1e(0x124f)]=_0x3a0b85,_0x45090d[_0x240d1e(0x701)]=_0x13844a;function _0x47ef0b(_0x373cdd,_0xcd1e24){const _0x160b11=_0x240d1e;_0x5c7920[_0x160b11(0xa60)]({'controller':_0x160b11(0x13fe),'controllerAs':'vm','templateUrl':_0x2593cd,'parent':angular['element'](_0x26693b['body']),'targetEvent':_0xcd1e24,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x373cdd,'chanSpies':_0x45090d['chanSpies'][_0x160b11(0x28b8)],'license':_0x45090d[_0x160b11(0x1947)],'setting':null,'crudPermissions':_0x45090d[_0x160b11(0x402)]}});}function _0x2ccf8e(_0x46ae0d,_0x2e7373){const _0x2bd821=_0x240d1e,_0x267772=_0x5c7920[_0x2bd821(0x856)]()['title'](_0x2bd821(0x1231)+_0x28c606()[_0x2bd821(0xc01)](_0x2bd821(0x1c22))+'?')[_0x2bd821(0x33a)](_0x2bd821(0x50b)+(_0x46ae0d['name']||_0x2bd821(0x1c22))+_0x2bd821(0x26d0)+_0x2bd821(0x4b8))[_0x2bd821(0x213e)](_0x2bd821(0x1bea))[_0x2bd821(0x2283)](_0x2e7373)['ok']('OK')[_0x2bd821(0x101a)](_0x2bd821(0x18fd));_0x5c7920[_0x2bd821(0xa60)](_0x267772)[_0x2bd821(0x64a)](function(){_0x71a757(_0x46ae0d);},function(){const _0x3affe3=_0x2bd821;console[_0x3affe3(0x9b4)](_0x3affe3(0x18fd));});}let _0x5ac19=!![],_0x2de54d=0x1;_0x306e4f[_0x240d1e(0xc62)](_0x240d1e(0x1cb9),function(_0x185722,_0x59b97e){const _0x3e2db3=_0x240d1e;_0x5ac19?_0x11b77e(function(){_0x5ac19=![];}):(!_0x59b97e&&(_0x2de54d=_0x45090d[_0x3e2db3(0x289a)][_0x3e2db3(0xc72)]),_0x185722!==_0x59b97e&&(_0x45090d[_0x3e2db3(0x289a)][_0x3e2db3(0xc72)]=0x1),!_0x185722&&(_0x45090d[_0x3e2db3(0x289a)][_0x3e2db3(0xc72)]=_0x2de54d),_0x45090d[_0x3e2db3(0x8ab)]());});function _0x46395d(_0x5ae0fd){const _0x2197e2=_0x240d1e;_0x45090d[_0x2197e2(0x1c14)]=_0x5ae0fd||{'count':0x0,'rows':[]};}function _0x10e411(){const _0x5f2b1f=_0x240d1e;_0x45090d[_0x5f2b1f(0x289a)][_0x5f2b1f(0x24f9)]=(_0x45090d[_0x5f2b1f(0x289a)][_0x5f2b1f(0xc72)]-0x1)*_0x45090d['query'][_0x5f2b1f(0x25bb)],_0x1de29c[_0x5f2b1f(0x4de)](_0x5f2b1f(0x333))?_0x45090d[_0x5f2b1f(0x1713)]=_0x20a11f[_0x5f2b1f(0xa80)][_0x5f2b1f(0x896)](_0x45090d[_0x5f2b1f(0x289a)],_0x46395d)[_0x5f2b1f(0x15e7)]:(_0x45090d['query']['id']=_0x45090d[_0x5f2b1f(0x16a8)]['id'],_0x45090d['query'][_0x5f2b1f(0xa21)]='ChanSpies',_0x45090d[_0x5f2b1f(0x1713)]=_0x20a11f[_0x5f2b1f(0x16a8)][_0x5f2b1f(0x2565)](_0x45090d[_0x5f2b1f(0x289a)],_0x46395d)[_0x5f2b1f(0x15e7)]);}function _0x7c1d05(_0x5cc029,_0x4b7225){const _0x54f453=_0x240d1e;_0x5c7920['show']({'controller':_0x54f453(0x13fe),'controllerAs':'vm','templateUrl':_0x2593cd,'parent':angular[_0x54f453(0x1f81)](_0x26693b['body']),'targetEvent':_0x5cc029,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x4b7225,'chanSpies':_0x45090d[_0x54f453(0x1c14)][_0x54f453(0x28b8)],'license':_0x45090d[_0x54f453(0x1947)],'setting':_0x45090d[_0x54f453(0x28d6)],'crudPermissions':_0x45090d[_0x54f453(0x402)]}});}function _0x71a757(_0x4f14ea){const _0x2c6cc9=_0x240d1e;_0x20a11f[_0x2c6cc9(0xa80)][_0x2c6cc9(0xabd)]({'id':_0x4f14ea['id']})[_0x2c6cc9(0x15e7)]['then'](function(){const _0xe0ccf3=_0x2c6cc9;_0x28c606()[_0xe0ccf3(0x21c7)](_0x45090d[_0xe0ccf3(0x1c14)][_0xe0ccf3(0x28b8)],{'id':_0x4f14ea['id']}),_0x45090d[_0xe0ccf3(0x1c14)][_0xe0ccf3(0xb90)]-=0x1,!_0x45090d['chanSpies'][_0xe0ccf3(0x28b8)]['length']&&_0x45090d['getChanSpies'](),_0x3b6715[_0xe0ccf3(0x1339)]({'title':_0x28c606()[_0xe0ccf3(0xc01)](_0xe0ccf3(0x1c22))+_0xe0ccf3(0x2502),'msg':_0x4f14ea['name']?_0x4f14ea[_0xe0ccf3(0x2494)]+_0xe0ccf3(0x1fa8):''});})[_0x2c6cc9(0x20cd)](function(_0x219707){const _0x450911=_0x2c6cc9;if(_0x219707[_0x450911(0x1c52)]&&_0x219707['data'][_0x450911(0xbae)]&&_0x219707[_0x450911(0x1c52)]['errors'][_0x450911(0x1b9e)]){_0x45090d[_0x450911(0xbae)]=_0x219707[_0x450911(0x1c52)][_0x450911(0xbae)]||[{'message':_0x219707[_0x450911(0x2915)](),'type':_0x450911(0x28e6)}];for(let _0x2b43a4=0x0;_0x2b43a4<_0x219707[_0x450911(0x1c52)][_0x450911(0xbae)][_0x450911(0x1b9e)];_0x2b43a4++){_0x3b6715['error']({'title':_0x219707[_0x450911(0x1c52)][_0x450911(0xbae)][_0x2b43a4][_0x450911(0x2185)],'msg':_0x219707[_0x450911(0x1c52)]['errors'][_0x2b43a4]['message']});}}else _0x3b6715[_0x450911(0x1bd0)]({'title':_0x219707[_0x450911(0x10b3)]?_0x450911(0x575)+_0x219707[_0x450911(0x10b3)]+_0x450911(0x21db)+_0x219707['statusText']:_0x450911(0x28e6),'msg':_0x219707[_0x450911(0x1c52)]?JSON[_0x450911(0x2317)](_0x219707['data'][_0x450911(0x18ca)]):_0x219707[_0x450911(0x18ca)]||_0x219707['toString']()});});}function _0x1aed41(){const _0x3a2042=_0x240d1e,_0x5a07bc=angular['copy'](_0x45090d[_0x3a2042(0x223f)]);return _0x45090d[_0x3a2042(0x223f)]=[],_0x5a07bc;}function _0x16b64f(_0x436794){const _0x3c9ced=_0x240d1e,_0x4cc858=_0x5c7920['confirm']()[_0x3c9ced(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chanSpies?')[_0x3c9ced(0x33a)](_0x3c9ced(0x50b)+_0x45090d[_0x3c9ced(0x223f)][_0x3c9ced(0x1b9e)]+'\x20selected'+_0x3c9ced(0x4b8))[_0x3c9ced(0x213e)](_0x3c9ced(0x23c6))['targetEvent'](_0x436794)['ok']('OK')[_0x3c9ced(0x101a)](_0x3c9ced(0x18fd));_0x5c7920['show'](_0x4cc858)[_0x3c9ced(0x64a)](function(){const _0xfba162=_0x3c9ced;_0x45090d[_0xfba162(0x223f)][_0xfba162(0x1397)](function(_0x46d8c9){_0x71a757(_0x46d8c9);}),_0x45090d['selectedChanSpies']=[];});}function _0x3a0b85(){const _0x2a8994=_0x240d1e;_0x45090d[_0x2a8994(0x223f)]=[];}function _0x13844a(){const _0x431e5a=_0x240d1e;_0x45090d['selectedChanSpies']=_0x45090d[_0x431e5a(0x1c14)]['rows'];}}const _0x12afa3=_0x2290fb;;_0x8a8535[_0x49a1e3(0x1e73)]=['$scope','$state',_0x49a1e3(0x1155),'$mdDialog','$q','$translate',_0x49a1e3(0x680),'chanSpies',_0x49a1e3(0x1c22),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x8a8535(_0x1bcedd,_0x15486f,_0x1f2b25,_0x17c04e,_0x2e9ac0,_0x14515e,_0x2aae0a,_0x191a31,_0x436bd4,_0x3f81a4,_0x26837a,_0x13eee8,_0x379470,_0x168186){const _0x27753a=_0x49a1e3,_0xbf6847=this;_0xbf6847['currentUser']=_0x26837a['getCurrentUser'](),_0xbf6847[_0x27753a(0xbae)]=[],_0xbf6847[_0x27753a(0x28d6)]=_0x379470,_0xbf6847[_0x27753a(0x1947)]=_0x13eee8,_0xbf6847[_0x27753a(0x402)]=_0x168186,_0xbf6847[_0x27753a(0x6c2)]={},_0xbf6847[_0x27753a(0xccc)]=_0xbf6847[_0x27753a(0x28d6)]&&_0xbf6847[_0x27753a(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xbf6847[_0x27753a(0x2021)]=_0x27753a(0x2979),_0xbf6847[_0x27753a(0x1c22)]=angular[_0x27753a(0x289e)](_0x436bd4),_0xbf6847['chanSpies']=_0x191a31,_0xbf6847[_0x27753a(0x1ac5)]=![];!_0xbf6847[_0x27753a(0x1c22)]&&(_0xbf6847[_0x27753a(0x1c22)]={'recordingFormat':'wav'},_0xbf6847[_0x27753a(0x2021)]=_0x27753a(0xf4e),_0xbf6847[_0x27753a(0x1ac5)]=!![]);_0xbf6847['addNewchanSpy']=_0x269ae4,_0xbf6847[_0x27753a(0x7c8)]=_0x5a58bb,_0xbf6847[_0x27753a(0x297)]=_0x4da9a8,_0xbf6847['getDateFromString']=_0x46c68e,_0xbf6847[_0x27753a(0x16cb)]=_0x6651eb;function _0x269ae4(){const _0x4911bf=_0x27753a;_0xbf6847[_0x4911bf(0xbae)]=[],_0x3f81a4['voiceChanSpy'][_0x4911bf(0x2479)](_0xbf6847[_0x4911bf(0x1c22)])['$promise'][_0x4911bf(0x64a)](function(_0x22e730){const _0x7cd292=_0x4911bf;_0xbf6847[_0x7cd292(0x1c14)][_0x7cd292(0x1891)](_0x22e730[_0x7cd292(0x14f8)]()),_0x2aae0a['success']({'title':'chanSpy\x20properly\x20created','msg':_0xbf6847['chanSpy']['name']?_0xbf6847[_0x7cd292(0x1c22)]['name']+_0x7cd292(0x258d):''}),_0x6651eb(_0x22e730);})['catch'](function(_0x36f3bd){const _0x49d516=_0x4911bf;if(_0x36f3bd[_0x49d516(0x1c52)]&&_0x36f3bd[_0x49d516(0x1c52)][_0x49d516(0xbae)]&&_0x36f3bd[_0x49d516(0x1c52)]['errors'][_0x49d516(0x1b9e)]){_0xbf6847[_0x49d516(0xbae)]=_0x36f3bd[_0x49d516(0x1c52)][_0x49d516(0xbae)]||[{'message':_0x36f3bd[_0x49d516(0x2915)](),'type':_0x49d516(0x1c36)}];for(let _0x2e367b=0x0;_0x2e367b<_0x36f3bd[_0x49d516(0x1c52)][_0x49d516(0xbae)]['length'];_0x2e367b+=0x1){_0x2aae0a[_0x49d516(0x1bd0)]({'title':_0x36f3bd[_0x49d516(0x1c52)][_0x49d516(0xbae)][_0x2e367b]['type'],'msg':_0x36f3bd[_0x49d516(0x1c52)][_0x49d516(0xbae)][_0x2e367b]['message']});}}else _0x2aae0a[_0x49d516(0x1bd0)]({'title':_0x36f3bd['status']?_0x49d516(0x575)+_0x36f3bd[_0x49d516(0x10b3)]+_0x49d516(0x21db)+_0x36f3bd['statusText']:_0x49d516(0x1c36),'msg':_0x36f3bd[_0x49d516(0x1c52)]?JSON[_0x49d516(0x2317)](_0x36f3bd[_0x49d516(0x1c52)][_0x49d516(0x18ca)]):_0x36f3bd[_0x49d516(0x2915)]()});});}function _0x5a58bb(){const _0x23e29c=_0x27753a;_0xbf6847[_0x23e29c(0xbae)]=[],_0x3f81a4[_0x23e29c(0xa80)][_0x23e29c(0x2603)]({'id':_0xbf6847[_0x23e29c(0x1c22)]['id']},_0xbf6847[_0x23e29c(0x1c22)])['$promise']['then'](function(_0x1eb9f2){const _0x41d45e=_0x23e29c,_0x573d88=_0x28c606()[_0x41d45e(0x27bc)](_0xbf6847[_0x41d45e(0x1c14)],{'id':_0x1eb9f2['id']});_0x573d88&&_0x28c606()[_0x41d45e(0x14fe)](_0x573d88,_0x28c606()[_0x41d45e(0x27bb)](_0x1eb9f2[_0x41d45e(0x14f8)](),_0x28c606()['keys'](_0x573d88))),_0x2aae0a[_0x41d45e(0x1339)]({'title':_0x41d45e(0xf1f),'msg':_0xbf6847['chanSpy'][_0x41d45e(0x2494)]?_0xbf6847[_0x41d45e(0x1c22)][_0x41d45e(0x2494)]+_0x41d45e(0x271):''}),_0x6651eb(_0x1eb9f2);})[_0x23e29c(0x20cd)](function(_0x4604f8){const _0x2b062d=_0x23e29c;if(_0x4604f8[_0x2b062d(0x1c52)]&&_0x4604f8[_0x2b062d(0x1c52)][_0x2b062d(0xbae)]&&_0x4604f8[_0x2b062d(0x1c52)][_0x2b062d(0xbae)][_0x2b062d(0x1b9e)]){_0xbf6847['errors']=_0x4604f8[_0x2b062d(0x1c52)][_0x2b062d(0xbae)]||[{'message':_0x4604f8[_0x2b062d(0x2915)](),'type':_0x2b062d(0x1e30)}];for(let _0x35a2af=0x0;_0x35a2af<_0x4604f8[_0x2b062d(0x1c52)][_0x2b062d(0xbae)][_0x2b062d(0x1b9e)];_0x35a2af++){_0x2aae0a[_0x2b062d(0x1bd0)]({'title':_0x4604f8['data']['errors'][_0x35a2af]['type'],'msg':_0x4604f8[_0x2b062d(0x1c52)]['errors'][_0x35a2af]['message']});}}else _0x2aae0a[_0x2b062d(0x1bd0)]({'title':_0x4604f8['status']?'API:'+_0x4604f8['status']+_0x2b062d(0x21db)+_0x4604f8[_0x2b062d(0x2115)]:_0x2b062d(0x1e30),'msg':_0x4604f8[_0x2b062d(0x1c52)]?JSON[_0x2b062d(0x2317)](_0x4604f8[_0x2b062d(0x1c52)][_0x2b062d(0x18ca)]):_0x4604f8[_0x2b062d(0x2915)]()});});}function _0x4da9a8(_0x10cb20){const _0x350db8=_0x27753a;_0xbf6847['errors']=[];const _0x12c6a5=_0x17c04e['confirm']()[_0x350db8(0x2021)](_0x350db8(0x103a))[_0x350db8(0x12b8)](_0x350db8(0x2582))[_0x350db8(0x213e)](_0x350db8(0xc6f))['ok'](_0x350db8(0x2664))['cancel'](_0x350db8(0x1dc6))[_0x350db8(0x2283)](_0x10cb20);_0x17c04e['show'](_0x12c6a5)[_0x350db8(0x64a)](function(){const _0x592942=_0x350db8;_0x3f81a4['voiceChanSpy']['delete']({'id':_0xbf6847[_0x592942(0x1c22)]['id']})[_0x592942(0x15e7)]['then'](function(){const _0x51e989=_0x592942;_0x28c606()[_0x51e989(0x21c7)](_0xbf6847[_0x51e989(0x1c14)],{'id':_0xbf6847['chanSpy']['id']}),_0x2aae0a[_0x51e989(0x1339)]({'title':_0x51e989(0x20b1),'msg':(_0xbf6847[_0x51e989(0x1c22)][_0x51e989(0x2494)]||'chanSpy')+_0x51e989(0x1fa8)}),_0x6651eb(_0xbf6847['chanSpy']);})[_0x592942(0x20cd)](function(_0x59e35b){const _0x5b4bdb=_0x592942;if(_0x59e35b[_0x5b4bdb(0x1c52)]&&_0x59e35b[_0x5b4bdb(0x1c52)]['errors']&&_0x59e35b[_0x5b4bdb(0x1c52)][_0x5b4bdb(0xbae)][_0x5b4bdb(0x1b9e)]){_0xbf6847[_0x5b4bdb(0xbae)]=_0x59e35b['data'][_0x5b4bdb(0xbae)]||[{'message':_0x59e35b[_0x5b4bdb(0x2915)](),'type':_0x5b4bdb(0x2445)}];for(let _0x4cba73=0x0;_0x4cba73<_0x59e35b['data']['errors'][_0x5b4bdb(0x1b9e)];_0x4cba73++){_0x2aae0a[_0x5b4bdb(0x1bd0)]({'title':_0x59e35b[_0x5b4bdb(0x1c52)]['errors'][_0x4cba73][_0x5b4bdb(0x2185)],'msg':_0x59e35b['data']['errors'][_0x4cba73][_0x5b4bdb(0x18ca)]});}}else _0x2aae0a[_0x5b4bdb(0x1bd0)]({'title':_0x59e35b['status']?_0x5b4bdb(0x575)+_0x59e35b[_0x5b4bdb(0x10b3)]+_0x5b4bdb(0x21db)+_0x59e35b[_0x5b4bdb(0x2115)]:_0x5b4bdb(0x2445),'msg':_0x59e35b['data']?JSON[_0x5b4bdb(0x2317)](_0x59e35b['data'][_0x5b4bdb(0x18ca)]):_0x59e35b[_0x5b4bdb(0x18ca)]||_0x59e35b[_0x5b4bdb(0x2915)]()});});},function(){});}function _0x46c68e(_0x127e3c){return _0x127e3c===null?undefined:new Date(_0x127e3c);}function _0x6651eb(_0x596db1){const _0x240b00=_0x27753a;_0x17c04e[_0x240b00(0x268e)](_0x596db1);}}const _0x3de1a6=_0x8a8535;;const _0x16c91c=_0x2e4a48['p']+'src/js/modules/main/apps/voice/views/contexts/create/dialog.html/dialog.html';;_0x46842a[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$window',_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog','$document',_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0xad1),_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xa19),'msUtils',_0x49a1e3(0x680),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x46842a(_0x374c09,_0x431ca7,_0x20e99b,_0x19b615,_0x61f1e3,_0x294757,_0x4cd71a,_0x40e225,_0x2a82ed,_0x45526b,_0x3188a1,_0x5de741,_0x3e827d,_0x42aec1,_0x26bfba,_0x2c49c2,_0x2d0c05){const _0x169462=_0x49a1e3,_0x399007=this;_0x399007[_0x169462(0x1947)]=_0x2c49c2,_0x399007[_0x169462(0x28d6)]=_0x2d0c05,_0x399007[_0x169462(0x1d3d)]=_0x26bfba['getCurrentUser'](),_0x399007[_0x169462(0xad1)]=_0x2a82ed||{'count':0x0,'rows':[]},_0x399007[_0x169462(0x16a8)]=_0x45526b,_0x399007[_0x169462(0x16b2)]=_0x3188a1&&_0x3188a1[_0x169462(0xb90)]==0x1?_0x3188a1[_0x169462(0x28b8)][0x0]:null,_0x399007[_0x169462(0x402)]=_0x26bfba['parseCrudPermissions'](_0x399007[_0x169462(0x16b2)]?_0x399007['userProfileSection'][_0x169462(0x402)]:null),_0x399007[_0x169462(0x185d)]='contexts',_0x399007[_0x169462(0x300)]='',_0x399007['listOrderAsc']=null,_0x399007[_0x169462(0xf95)]=[],_0x399007['query']={'fields':_0x169462(0x15b8),'sort':'-updatedAt','defaultEntry':_0x169462(0x2872),'limit':0xa,'page':0x1},_0x399007[_0x169462(0x1c42)]=_0x31a376,_0x399007[_0x169462(0x1262)]=_0x7c8a4e,_0x399007[_0x169462(0x1339)]=_0x3710cf,_0x399007[_0x169462(0x8b2)]=_0x14c6a1,_0x399007['createOrEditContext']=_0x27aaa6,_0x399007[_0x169462(0x27a1)]=_0x1b72a3,_0x399007[_0x169462(0x1e00)]=_0x30ad52,_0x399007[_0x169462(0x28e5)]=_0x15192c,_0x399007[_0x169462(0x5bc)]=_0x5832e8,_0x399007[_0x169462(0xe35)]=_0x39e7bc;function _0x31a376(_0xce914,_0xe4a7e9){const _0x35ba2b=_0x169462;_0x61f1e3[_0x35ba2b(0xa60)]({'controller':_0x35ba2b(0x21fa),'controllerAs':'vm','templateUrl':_0x16c91c,'parent':angular[_0x35ba2b(0x1f81)](_0x294757['body']),'targetEvent':_0xe4a7e9,'clickOutsideToClose':!![],'locals':{'context':_0xce914,'contexts':_0x399007[_0x35ba2b(0xad1)][_0x35ba2b(0x28b8)],'license':_0x399007['license'],'setting':null,'crudPermissions':_0x399007['crudPermissions']}});}function _0x7c8a4e(_0x20543f,_0x528a89){const _0x3ab1a0=_0x169462,_0x39b08c=_0x61f1e3[_0x3ab1a0(0x856)]()[_0x3ab1a0(0x2021)](_0x3ab1a0(0x1231)+_0x28c606()[_0x3ab1a0(0xc01)](_0x3ab1a0(0x139))+'?')[_0x3ab1a0(0x33a)](_0x3ab1a0(0x50b)+(_0x20543f[_0x3ab1a0(0x2494)]||_0x3ab1a0(0x139))+_0x3ab1a0(0x26d0)+_0x3ab1a0(0x4b8))[_0x3ab1a0(0x213e)]('delete\x20context')[_0x3ab1a0(0x2283)](_0x528a89)['ok']('OK')[_0x3ab1a0(0x101a)](_0x3ab1a0(0x18fd));_0x61f1e3[_0x3ab1a0(0xa60)](_0x39b08c)[_0x3ab1a0(0x64a)](function(){_0x1b72a3(_0x20543f);},function(){const _0x4cec61=_0x3ab1a0;console['log'](_0x4cec61(0x18fd));});}let _0x48fa0c=!![],_0x38cd49=0x1;_0x374c09[_0x169462(0xc62)](_0x169462(0x1cb9),function(_0x1aaebe,_0x1960d6){const _0x4f80b7=_0x169462;_0x48fa0c?_0x4cd71a(function(){_0x48fa0c=![];}):(!_0x1960d6&&(_0x38cd49=_0x399007[_0x4f80b7(0x289a)][_0x4f80b7(0xc72)]),_0x1aaebe!==_0x1960d6&&(_0x399007[_0x4f80b7(0x289a)][_0x4f80b7(0xc72)]=0x1),!_0x1aaebe&&(_0x399007[_0x4f80b7(0x289a)][_0x4f80b7(0xc72)]=_0x38cd49),_0x399007[_0x4f80b7(0x8b2)]());});function _0x3710cf(_0x10db3b){_0x399007['contexts']=_0x10db3b||{'count':0x0,'rows':[]};}function _0x14c6a1(){const _0xaa4604=_0x169462;_0x399007[_0xaa4604(0x289a)][_0xaa4604(0x24f9)]=(_0x399007[_0xaa4604(0x289a)][_0xaa4604(0xc72)]-0x1)*_0x399007[_0xaa4604(0x289a)][_0xaa4604(0x25bb)],_0x26bfba[_0xaa4604(0x4de)]('admin')?_0x399007[_0xaa4604(0x1713)]=_0x5de741[_0xaa4604(0x1faa)][_0xaa4604(0x896)](_0x399007[_0xaa4604(0x289a)],_0x3710cf)['$promise']:(_0x399007[_0xaa4604(0x289a)]['id']=_0x399007['userProfile']['id'],_0x399007[_0xaa4604(0x289a)][_0xaa4604(0xa21)]=_0xaa4604(0xcfe),_0x399007[_0xaa4604(0x1713)]=_0x5de741[_0xaa4604(0x16a8)][_0xaa4604(0x2565)](_0x399007[_0xaa4604(0x289a)],_0x3710cf)[_0xaa4604(0x15e7)]);}function _0x27aaa6(_0x2a7fd4,_0x1480af){const _0x5cee09=_0x169462;_0x61f1e3[_0x5cee09(0xa60)]({'controller':_0x5cee09(0x21fa),'controllerAs':'vm','templateUrl':_0x16c91c,'parent':angular['element'](_0x294757[_0x5cee09(0xb49)]),'targetEvent':_0x2a7fd4,'clickOutsideToClose':!![],'locals':{'context':_0x1480af,'contexts':_0x399007[_0x5cee09(0xad1)]['rows'],'license':_0x399007[_0x5cee09(0x1947)],'setting':_0x399007['setting'],'crudPermissions':_0x399007['crudPermissions']}});}function _0x1b72a3(_0xd717a6){const _0xd87c92=_0x169462;_0x5de741[_0xd87c92(0x1faa)]['delete']({'id':_0xd717a6['id']})[_0xd87c92(0x15e7)][_0xd87c92(0x64a)](function(){const _0x10bb7a=_0xd87c92;_0x28c606()['remove'](_0x399007[_0x10bb7a(0xad1)]['rows'],{'id':_0xd717a6['id']}),_0x399007['contexts'][_0x10bb7a(0xb90)]-=0x1,!_0x399007[_0x10bb7a(0xad1)]['rows'][_0x10bb7a(0x1b9e)]&&_0x399007['getContexts'](),_0x42aec1[_0x10bb7a(0x1339)]({'title':_0x28c606()[_0x10bb7a(0xc01)](_0x10bb7a(0xa08))+'\x20deleted!','msg':_0xd717a6['name']?_0xd717a6[_0x10bb7a(0x2494)]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x17cb79){const _0x4d4e78=_0xd87c92;if(_0x17cb79[_0x4d4e78(0x1c52)]&&_0x17cb79[_0x4d4e78(0x1c52)][_0x4d4e78(0xbae)]&&_0x17cb79[_0x4d4e78(0x1c52)][_0x4d4e78(0xbae)][_0x4d4e78(0x1b9e)]){_0x399007[_0x4d4e78(0xbae)]=_0x17cb79[_0x4d4e78(0x1c52)][_0x4d4e78(0xbae)]||[{'message':_0x17cb79['toString'](),'type':_0x4d4e78(0x881)}];for(let _0x14706e=0x0;_0x14706e<_0x17cb79[_0x4d4e78(0x1c52)]['errors'][_0x4d4e78(0x1b9e)];_0x14706e++){_0x42aec1['error']({'title':_0x17cb79['data'][_0x4d4e78(0xbae)][_0x14706e][_0x4d4e78(0x2185)],'msg':_0x17cb79[_0x4d4e78(0x1c52)][_0x4d4e78(0xbae)][_0x14706e]['message']});}}else _0x42aec1[_0x4d4e78(0x1bd0)]({'title':_0x17cb79[_0x4d4e78(0x10b3)]?_0x4d4e78(0x575)+_0x17cb79['status']+_0x4d4e78(0x21db)+_0x17cb79['statusText']:_0x4d4e78(0x881),'msg':_0x17cb79[_0x4d4e78(0x1c52)]?JSON[_0x4d4e78(0x2317)](_0x17cb79[_0x4d4e78(0x1c52)][_0x4d4e78(0x18ca)]):_0x17cb79['message']||_0x17cb79[_0x4d4e78(0x2915)]()});});}function _0x30ad52(){const _0x267c35=_0x169462,_0x2f91f5=angular[_0x267c35(0x289e)](_0x399007[_0x267c35(0xf95)]);return _0x399007[_0x267c35(0xf95)]=[],_0x2f91f5;}function _0x15192c(_0x350a3c){const _0x5772d9=_0x169462,_0x528f90=_0x61f1e3[_0x5772d9(0x856)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20contexts?')[_0x5772d9(0x33a)](_0x5772d9(0x50b)+_0x399007['selectedContexts'][_0x5772d9(0x1b9e)]+_0x5772d9(0x163e)+'\x20will\x20be\x20deleted.')[_0x5772d9(0x213e)]('delete\x20Contexts')['targetEvent'](_0x350a3c)['ok']('OK')[_0x5772d9(0x101a)]('CANCEL');_0x61f1e3[_0x5772d9(0xa60)](_0x528f90)[_0x5772d9(0x64a)](function(){const _0x613094=_0x5772d9;_0x399007[_0x613094(0xf95)][_0x613094(0x1397)](function(_0x117557){_0x1b72a3(_0x117557);}),_0x399007[_0x613094(0xf95)]=[];});}function _0x5832e8(){_0x399007['selectedContexts']=[];}function _0x39e7bc(){const _0x5d32f1=_0x169462;_0x399007[_0x5d32f1(0xf95)]=_0x399007['contexts'][_0x5d32f1(0x28b8)];}}const _0x1d95c7=_0x46842a;;_0x4acf1d[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog','$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0xad1),'context',_0x49a1e3(0xa19),'Auth','license',_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x4acf1d(_0x1017c4,_0x2829a4,_0x13de3d,_0x571616,_0x1dd4dc,_0x3c7108,_0x1da003,_0x448f6c,_0x1c2d17,_0x2c884a,_0x2b5aa4,_0x20866d,_0x23fa83,_0x3eab60){const _0x28a706=_0x49a1e3,_0x545692=this;_0x545692[_0x28a706(0x1d3d)]=_0x2b5aa4[_0x28a706(0x808)](),_0x545692['errors']=[],_0x545692['setting']=_0x23fa83,_0x545692[_0x28a706(0x1947)]=_0x20866d,_0x545692[_0x28a706(0x402)]=_0x3eab60,_0x545692['hasModulePermissions']={},_0x545692[_0x28a706(0xccc)]=_0x545692[_0x28a706(0x28d6)]&&_0x545692['setting'][_0x28a706(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x545692['title']=_0x28a706(0xd25),_0x545692[_0x28a706(0x139)]=angular['copy'](_0x1c2d17),_0x545692[_0x28a706(0xad1)]=_0x448f6c,_0x545692[_0x28a706(0x1ab3)]=![];!_0x545692[_0x28a706(0x139)]&&(_0x545692[_0x28a706(0x139)]={},_0x545692[_0x28a706(0x2021)]='VOICE.NEW_CONTEXT',_0x545692['newContext']=!![]);_0x545692['addNewContext']=_0x15931b,_0x545692['saveContext']=_0x2ebeaa,_0x545692[_0x28a706(0x27a1)]=_0x5d48aa,_0x545692[_0x28a706(0x1605)]=_0x21ab63,_0x545692[_0x28a706(0x16cb)]=_0x147e0b;function _0x15931b(){const _0x28858f=_0x28a706;_0x545692[_0x28858f(0xbae)]=[],_0x2c884a[_0x28858f(0x1faa)]['save'](_0x545692[_0x28858f(0x139)])[_0x28858f(0x15e7)][_0x28858f(0x64a)](function(_0x47d928){const _0x4816d7=_0x28858f;_0x545692[_0x4816d7(0xad1)][_0x4816d7(0x1891)](_0x47d928['toJSON']()),_0x1da003[_0x4816d7(0x1339)]({'title':_0x4816d7(0xbba),'msg':_0x545692[_0x4816d7(0x139)][_0x4816d7(0x2494)]?_0x545692['context'][_0x4816d7(0x2494)]+_0x4816d7(0x258d):''}),_0x147e0b(_0x47d928);})[_0x28858f(0x20cd)](function(_0x48dd2b){const _0x1aa825=_0x28858f;if(_0x48dd2b[_0x1aa825(0x1c52)]&&_0x48dd2b['data'][_0x1aa825(0xbae)]&&_0x48dd2b[_0x1aa825(0x1c52)][_0x1aa825(0xbae)][_0x1aa825(0x1b9e)]){_0x545692[_0x1aa825(0xbae)]=_0x48dd2b[_0x1aa825(0x1c52)][_0x1aa825(0xbae)]||[{'message':_0x48dd2b[_0x1aa825(0x2915)](),'type':_0x1aa825(0xef0)}];for(let _0x4c4ca7=0x0;_0x4c4ca7<_0x48dd2b[_0x1aa825(0x1c52)][_0x1aa825(0xbae)]['length'];_0x4c4ca7+=0x1){_0x1da003[_0x1aa825(0x1bd0)]({'title':_0x48dd2b[_0x1aa825(0x1c52)][_0x1aa825(0xbae)][_0x4c4ca7][_0x1aa825(0x2185)],'msg':_0x48dd2b[_0x1aa825(0x1c52)][_0x1aa825(0xbae)][_0x4c4ca7][_0x1aa825(0x18ca)]});}}else _0x1da003[_0x1aa825(0x1bd0)]({'title':_0x48dd2b[_0x1aa825(0x10b3)]?_0x1aa825(0x575)+_0x48dd2b['status']+_0x1aa825(0x21db)+_0x48dd2b[_0x1aa825(0x2115)]:_0x1aa825(0xef0),'msg':_0x48dd2b[_0x1aa825(0x1c52)]?JSON[_0x1aa825(0x2317)](_0x48dd2b['data'][_0x1aa825(0x18ca)]):_0x48dd2b[_0x1aa825(0x2915)]()});});}function _0x2ebeaa(){const _0x165ef4=_0x28a706;_0x545692[_0x165ef4(0xbae)]=[],_0x2c884a['voiceContext']['update']({'id':_0x545692[_0x165ef4(0x139)]['id']},_0x545692[_0x165ef4(0x139)])['$promise'][_0x165ef4(0x64a)](function(_0x36dcc7){const _0x122024=_0x165ef4,_0xc9be47=_0x28c606()[_0x122024(0x27bc)](_0x545692[_0x122024(0xad1)],{'id':_0x36dcc7['id']});_0xc9be47&&_0x28c606()[_0x122024(0x14fe)](_0xc9be47,_0x28c606()[_0x122024(0x27bb)](_0x36dcc7[_0x122024(0x14f8)](),_0x28c606()[_0x122024(0x1ec6)](_0xc9be47))),_0x1da003[_0x122024(0x1339)]({'title':_0x122024(0x7ce),'msg':_0x545692['context']['name']?_0x545692[_0x122024(0x139)][_0x122024(0x2494)]+_0x122024(0x271):''}),_0x147e0b(_0x36dcc7);})['catch'](function(_0x2e39f1){const _0x1186c2=_0x165ef4;if(_0x2e39f1[_0x1186c2(0x1c52)]&&_0x2e39f1[_0x1186c2(0x1c52)][_0x1186c2(0xbae)]&&_0x2e39f1[_0x1186c2(0x1c52)]['errors']['length']){_0x545692[_0x1186c2(0xbae)]=_0x2e39f1[_0x1186c2(0x1c52)][_0x1186c2(0xbae)]||[{'message':_0x2e39f1['toString'](),'type':_0x1186c2(0xb0b)}];for(let _0x6a1c07=0x0;_0x6a1c07<_0x2e39f1[_0x1186c2(0x1c52)][_0x1186c2(0xbae)][_0x1186c2(0x1b9e)];_0x6a1c07++){_0x1da003[_0x1186c2(0x1bd0)]({'title':_0x2e39f1[_0x1186c2(0x1c52)][_0x1186c2(0xbae)][_0x6a1c07][_0x1186c2(0x2185)],'msg':_0x2e39f1[_0x1186c2(0x1c52)][_0x1186c2(0xbae)][_0x6a1c07][_0x1186c2(0x18ca)]});}}else _0x1da003[_0x1186c2(0x1bd0)]({'title':_0x2e39f1[_0x1186c2(0x10b3)]?_0x1186c2(0x575)+_0x2e39f1[_0x1186c2(0x10b3)]+_0x1186c2(0x21db)+_0x2e39f1[_0x1186c2(0x2115)]:'api.voiceContext.update','msg':_0x2e39f1[_0x1186c2(0x1c52)]?JSON[_0x1186c2(0x2317)](_0x2e39f1[_0x1186c2(0x1c52)][_0x1186c2(0x18ca)]):_0x2e39f1[_0x1186c2(0x2915)]()});});}function _0x5d48aa(_0x37edb4){const _0x39b5bc=_0x28a706;_0x545692[_0x39b5bc(0xbae)]=[];const _0x571825=_0x571616['confirm']()[_0x39b5bc(0x2021)](_0x39b5bc(0x103a))['content'](_0x39b5bc(0x4fd))[_0x39b5bc(0x213e)](_0x39b5bc(0x5b3))['ok'](_0x39b5bc(0x2664))[_0x39b5bc(0x101a)](_0x39b5bc(0x1dc6))['targetEvent'](_0x37edb4);_0x571616['show'](_0x571825)[_0x39b5bc(0x64a)](function(){const _0x3cbf5d=_0x39b5bc;_0x2c884a['voiceContext'][_0x3cbf5d(0xabd)]({'id':_0x545692[_0x3cbf5d(0x139)]['id']})[_0x3cbf5d(0x15e7)][_0x3cbf5d(0x64a)](function(){const _0x1b18f0=_0x3cbf5d;_0x28c606()[_0x1b18f0(0x21c7)](_0x545692[_0x1b18f0(0xad1)],{'id':_0x545692[_0x1b18f0(0x139)]['id']}),_0x1da003[_0x1b18f0(0x1339)]({'title':_0x1b18f0(0x286c),'msg':(_0x545692[_0x1b18f0(0x139)][_0x1b18f0(0x2494)]||_0x1b18f0(0x139))+_0x1b18f0(0x1fa8)}),_0x147e0b(_0x545692[_0x1b18f0(0x139)]);})[_0x3cbf5d(0x20cd)](function(_0x408046){const _0xf9239e=_0x3cbf5d;if(_0x408046[_0xf9239e(0x1c52)]&&_0x408046[_0xf9239e(0x1c52)][_0xf9239e(0xbae)]&&_0x408046[_0xf9239e(0x1c52)][_0xf9239e(0xbae)]['length']){_0x545692[_0xf9239e(0xbae)]=_0x408046[_0xf9239e(0x1c52)][_0xf9239e(0xbae)]||[{'message':_0x408046[_0xf9239e(0x2915)](),'type':_0xf9239e(0x267b)}];for(let _0x5bc5a8=0x0;_0x5bc5a8<_0x408046[_0xf9239e(0x1c52)][_0xf9239e(0xbae)][_0xf9239e(0x1b9e)];_0x5bc5a8++){_0x1da003[_0xf9239e(0x1bd0)]({'title':_0x408046[_0xf9239e(0x1c52)][_0xf9239e(0xbae)][_0x5bc5a8]['type'],'msg':_0x408046[_0xf9239e(0x1c52)][_0xf9239e(0xbae)][_0x5bc5a8][_0xf9239e(0x18ca)]});}}else _0x1da003['error']({'title':_0x408046[_0xf9239e(0x10b3)]?_0xf9239e(0x575)+_0x408046[_0xf9239e(0x10b3)]+'\x20-\x20'+_0x408046[_0xf9239e(0x2115)]:_0xf9239e(0x267b),'msg':_0x408046['data']?JSON[_0xf9239e(0x2317)](_0x408046[_0xf9239e(0x1c52)][_0xf9239e(0x18ca)]):_0x408046[_0xf9239e(0x18ca)]||_0x408046[_0xf9239e(0x2915)]()});});},function(){});}function _0x21ab63(_0x9493bb){return _0x9493bb===null?undefined:new Date(_0x9493bb);}function _0x147e0b(_0xb41887){const _0x1abbf4=_0x28a706;_0x571616[_0x1abbf4(0x268e)](_0xb41887);}}const _0x370d99=_0x4acf1d;;_0xe9ca84[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x15a7),_0x49a1e3(0x17cc),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0xe9ca84(_0x3bbf88,_0x5c88bf,_0x56b7c0,_0x1a1fd1,_0x51bd8d,_0x148f7e,_0x2c9a98,_0x3c4545,_0x42bdab,_0x5b27c2,_0x4c091d,_0x506248,_0x5c1ab2,_0x106fac){const _0x5b176d=_0x49a1e3,_0x348598=this;_0x348598[_0x5b176d(0x1d3d)]=_0x4c091d[_0x5b176d(0x808)](),_0x348598[_0x5b176d(0xbae)]=[],_0x348598[_0x5b176d(0x28d6)]=_0x5c1ab2,_0x348598[_0x5b176d(0x1947)]=_0x506248,_0x348598[_0x5b176d(0x402)]=_0x106fac,_0x348598[_0x5b176d(0x6c2)]={},_0x348598[_0x5b176d(0xccc)]=_0x348598['setting']&&_0x348598[_0x5b176d(0x28d6)][_0x5b176d(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x348598['title']='VOICE.EDIT_INBOUNDROUTE',_0x348598['inboundroute']=angular[_0x5b176d(0x289e)](_0x42bdab),_0x348598[_0x5b176d(0x15a7)]=_0x3c4545,_0x348598[_0x5b176d(0x2608)]=![];!_0x348598[_0x5b176d(0x17cc)]&&(_0x348598['inboundroute']={'appdata':_0x5b176d(0x1a2),'type':_0x5b176d(0x12a4),'context':'from-voip-provider'},_0x348598[_0x5b176d(0x2021)]=_0x5b176d(0x2833),_0x348598[_0x5b176d(0x2608)]=!![]);_0x348598[_0x5b176d(0x1851)]=_0x97f1b6,_0x348598[_0x5b176d(0x2187)]=_0x2420d4,_0x348598[_0x5b176d(0xf9d)]=_0x4b454f,_0x348598[_0x5b176d(0x1605)]=_0x214de6,_0x348598['closeDialog']=_0x46be4f,_0x4c091d[_0x5b176d(0x4de)]('admin')?_0x5b27c2[_0x5b176d(0x1faa)]['get']({'fields':_0x5b176d(0x1427),'sort':_0x5b176d(0x2494),'nolimit':'true'})[_0x5b176d(0x15e7)][_0x5b176d(0x64a)](function(_0x5c3133){const _0x5ece95=_0x5b176d;_0x348598[_0x5ece95(0xad1)]=_0x5c3133[_0x5ece95(0x28b8)]||[];})['catch'](function(_0x39a167){const _0x234f37=_0x5b176d;_0x2c9a98[_0x234f37(0x1bd0)]({'title':_0x39a167[_0x234f37(0x10b3)]?_0x234f37(0x575)+_0x39a167['status']+_0x234f37(0x21db)+_0x39a167['statusText']:_0x234f37(0xbea),'msg':_0x39a167[_0x234f37(0x1c52)]?JSON[_0x234f37(0x2317)](_0x39a167[_0x234f37(0x1c52)]):_0x39a167[_0x234f37(0x2915)]()});}):_0x5b27c2[_0x5b176d(0x1faa)][_0x5b176d(0x896)]({'fields':_0x5b176d(0x1427),'sort':'name','nolimit':_0x5b176d(0x1685)})['$promise']['then'](function(_0x34ac56){const _0x3464d2=_0x5b176d;_0x348598[_0x3464d2(0xad1)]=_0x34ac56[_0x3464d2(0x28b8)]||[];})[_0x5b176d(0x64a)](function(){const _0x3fc3dc=_0x5b176d;return _0x5b27c2[_0x3fc3dc(0x16b2)][_0x3fc3dc(0x896)]({'userProfileId':_0x348598[_0x3fc3dc(0x1d3d)]['userProfileId'],'sectionId':0x195})[_0x3fc3dc(0x15e7)];})[_0x5b176d(0x64a)](function(_0x126e70){const _0x30c2fe=_0x5b176d,_0xe8c30d=_0x126e70&&_0x126e70[_0x30c2fe(0x28b8)]?_0x126e70[_0x30c2fe(0x28b8)][0x0]:null;if(!_0xe8c30d)return _0x5b27c2[_0x30c2fe(0x1faa)][_0x30c2fe(0x896)]({'fields':'id,name','sort':'name','nolimit':_0x30c2fe(0x1685),'defaultEntry':0x1})[_0x30c2fe(0x15e7)][_0x30c2fe(0x64a)](function(_0x21f16a){const _0x30f3a5=_0x30c2fe;_0x348598[_0x30f3a5(0xad1)]=_0x21f16a[_0x30f3a5(0x28b8)]||[];});else{if(!_0xe8c30d[_0x30c2fe(0x11da)])return _0x5b27c2['userProfileResource'][_0x30c2fe(0x896)]({'sectionId':_0xe8c30d['id']})[_0x30c2fe(0x15e7)]['then'](function(_0x3a95e8){const _0x52f064=_0x30c2fe,_0xafa2ff=_0x28c606()['map'](_0x3a95e8[_0x52f064(0x28b8)],function(_0x5a3d22){const _0x3f77ab=_0x52f064;return _0x28c606()[_0x3f77ab(0x27bc)](_0x348598[_0x3f77ab(0xad1)],{'id':_0x5a3d22[_0x3f77ab(0x145)]});});let _0xe12857=null;_0x348598[_0x52f064(0x17cc)]&&(_0xe12857=_0x28c606()['find'](_0x348598[_0x52f064(0xad1)],{'name':_0x348598[_0x52f064(0x17cc)][_0x52f064(0x139)]}));if(_0xe12857&&!_0x28c606()[_0x52f064(0x25f8)](_0xafa2ff,['id',_0xe12857['id']])){const _0x53643f=_0x28c606()[_0x52f064(0x27bc)](_0x348598[_0x52f064(0xad1)],{'id':_0xe12857['id']});_0x53643f[_0x52f064(0xd4f)]=![],_0xafa2ff[_0x52f064(0x1954)](_0x53643f);}_0x348598['contexts']=_0xafa2ff;});}})[_0x5b176d(0x20cd)](function(_0x1cfb88){const _0x4cdd45=_0x5b176d;_0x2c9a98['error']({'title':_0x1cfb88['status']?_0x4cdd45(0x575)+_0x1cfb88['status']+_0x4cdd45(0x21db)+_0x1cfb88[_0x4cdd45(0x2115)]:'SYSTEM:GETcontexts','msg':_0x1cfb88[_0x4cdd45(0x1c52)]?JSON[_0x4cdd45(0x2317)](_0x1cfb88[_0x4cdd45(0x1c52)]):_0x1cfb88[_0x4cdd45(0x2915)]()});});function _0x97f1b6(){const _0x20f2b9=_0x5b176d;_0x348598[_0x20f2b9(0xbae)]=[],_0x5b27c2[_0x20f2b9(0x1438)][_0x20f2b9(0x2479)](_0x348598[_0x20f2b9(0x17cc)])[_0x20f2b9(0x15e7)]['then'](function(_0x457357){const _0x704b=_0x20f2b9;_0x348598[_0x704b(0x15a7)][_0x704b(0x1891)](_0x457357[_0x704b(0x14f8)]()),_0x2c9a98[_0x704b(0x1339)]({'title':_0x704b(0x22e5),'msg':_0x348598[_0x704b(0x17cc)][_0x704b(0x2494)]?_0x348598[_0x704b(0x17cc)][_0x704b(0x2494)]+_0x704b(0x258d):''}),_0x46be4f(_0x457357);})[_0x20f2b9(0x20cd)](function(_0x3c0eb8){const _0x2d4abd=_0x20f2b9;if(_0x3c0eb8[_0x2d4abd(0x1c52)]&&_0x3c0eb8['data'][_0x2d4abd(0xbae)]&&_0x3c0eb8[_0x2d4abd(0x1c52)][_0x2d4abd(0xbae)][_0x2d4abd(0x1b9e)]){_0x348598[_0x2d4abd(0xbae)]=_0x3c0eb8[_0x2d4abd(0x1c52)][_0x2d4abd(0xbae)]||[{'message':_0x3c0eb8[_0x2d4abd(0x2915)](),'type':_0x2d4abd(0x177a)}];for(let _0x5d310d=0x0;_0x5d310d<_0x3c0eb8[_0x2d4abd(0x1c52)][_0x2d4abd(0xbae)][_0x2d4abd(0x1b9e)];_0x5d310d+=0x1){_0x2c9a98['error']({'title':_0x3c0eb8[_0x2d4abd(0x1c52)][_0x2d4abd(0xbae)][_0x5d310d][_0x2d4abd(0x2185)],'msg':_0x3c0eb8[_0x2d4abd(0x1c52)][_0x2d4abd(0xbae)][_0x5d310d][_0x2d4abd(0x18ca)]});}}else _0x2c9a98[_0x2d4abd(0x1bd0)]({'title':_0x3c0eb8['status']?_0x2d4abd(0x575)+_0x3c0eb8[_0x2d4abd(0x10b3)]+_0x2d4abd(0x21db)+_0x3c0eb8[_0x2d4abd(0x2115)]:_0x2d4abd(0x177a),'msg':_0x3c0eb8['data']?JSON[_0x2d4abd(0x2317)](_0x3c0eb8[_0x2d4abd(0x1c52)]['message']):_0x3c0eb8[_0x2d4abd(0x2915)]()});});}function _0x2420d4(){const _0x3e1966=_0x5b176d;_0x348598['errors']=[],_0x5b27c2[_0x3e1966(0x1438)][_0x3e1966(0x2603)]({'id':_0x348598['inboundroute']['id']},_0x348598[_0x3e1966(0x17cc)])[_0x3e1966(0x15e7)]['then'](function(_0x39d2b4){const _0x1a4043=_0x3e1966,_0x71c160=_0x28c606()[_0x1a4043(0x27bc)](_0x348598[_0x1a4043(0x15a7)],{'id':_0x39d2b4['id']});_0x71c160&&_0x28c606()[_0x1a4043(0x14fe)](_0x71c160,_0x28c606()[_0x1a4043(0x27bb)](_0x39d2b4['toJSON'](),_0x28c606()[_0x1a4043(0x1ec6)](_0x71c160))),_0x2c9a98[_0x1a4043(0x1339)]({'title':_0x1a4043(0x1479),'msg':_0x348598[_0x1a4043(0x17cc)][_0x1a4043(0x2494)]?_0x348598[_0x1a4043(0x17cc)][_0x1a4043(0x2494)]+_0x1a4043(0x271):''}),_0x46be4f(_0x39d2b4);})['catch'](function(_0x2aee06){const _0x300b3=_0x3e1966;if(_0x2aee06[_0x300b3(0x1c52)]&&_0x2aee06[_0x300b3(0x1c52)][_0x300b3(0xbae)]&&_0x2aee06['data'][_0x300b3(0xbae)]['length']){_0x348598[_0x300b3(0xbae)]=_0x2aee06[_0x300b3(0x1c52)]['errors']||[{'message':_0x2aee06[_0x300b3(0x2915)](),'type':_0x300b3(0x196)}];for(let _0x498612=0x0;_0x498612<_0x2aee06[_0x300b3(0x1c52)]['errors']['length'];_0x498612++){_0x2c9a98[_0x300b3(0x1bd0)]({'title':_0x2aee06[_0x300b3(0x1c52)]['errors'][_0x498612][_0x300b3(0x2185)],'msg':_0x2aee06['data'][_0x300b3(0xbae)][_0x498612]['message']});}}else _0x2c9a98[_0x300b3(0x1bd0)]({'title':_0x2aee06['status']?'API:'+_0x2aee06[_0x300b3(0x10b3)]+_0x300b3(0x21db)+_0x2aee06[_0x300b3(0x2115)]:_0x300b3(0x196),'msg':_0x2aee06['data']?JSON['stringify'](_0x2aee06[_0x300b3(0x1c52)][_0x300b3(0x18ca)]):_0x2aee06[_0x300b3(0x2915)]()});});}function _0x4b454f(_0x3b7f02){const _0x7652a1=_0x5b176d;_0x348598[_0x7652a1(0xbae)]=[];const _0x37f1ed=_0x1a1fd1[_0x7652a1(0x856)]()['title']('Are\x20you\x20sure?')[_0x7652a1(0x12b8)](_0x7652a1(0xb6d))[_0x7652a1(0x213e)]('Delete\x20InboundRoute')['ok'](_0x7652a1(0x2664))[_0x7652a1(0x101a)](_0x7652a1(0x1dc6))[_0x7652a1(0x2283)](_0x3b7f02);_0x1a1fd1[_0x7652a1(0xa60)](_0x37f1ed)[_0x7652a1(0x64a)](function(){const _0x3095e2=_0x7652a1;_0x5b27c2[_0x3095e2(0x1438)]['delete']({'id':_0x348598[_0x3095e2(0x17cc)]['id']})[_0x3095e2(0x15e7)][_0x3095e2(0x64a)](function(){const _0x464ec3=_0x3095e2;_0x28c606()[_0x464ec3(0x21c7)](_0x348598['inboundroutes'],{'id':_0x348598[_0x464ec3(0x17cc)]['id']}),_0x2c9a98[_0x464ec3(0x1339)]({'title':_0x464ec3(0x819),'msg':(_0x348598[_0x464ec3(0x17cc)][_0x464ec3(0x2494)]||_0x464ec3(0x17cc))+_0x464ec3(0x1fa8)}),_0x46be4f(_0x348598[_0x464ec3(0x17cc)]);})['catch'](function(_0x54cf6c){const _0x2ad916=_0x3095e2;if(_0x54cf6c[_0x2ad916(0x1c52)]&&_0x54cf6c[_0x2ad916(0x1c52)][_0x2ad916(0xbae)]&&_0x54cf6c[_0x2ad916(0x1c52)]['errors']['length']){_0x348598['errors']=_0x54cf6c[_0x2ad916(0x1c52)]['errors']||[{'message':_0x54cf6c[_0x2ad916(0x2915)](),'type':_0x2ad916(0x6ea)}];for(let _0x38b000=0x0;_0x38b000<_0x54cf6c[_0x2ad916(0x1c52)][_0x2ad916(0xbae)][_0x2ad916(0x1b9e)];_0x38b000++){_0x2c9a98['error']({'title':_0x54cf6c[_0x2ad916(0x1c52)][_0x2ad916(0xbae)][_0x38b000][_0x2ad916(0x2185)],'msg':_0x54cf6c[_0x2ad916(0x1c52)]['errors'][_0x38b000][_0x2ad916(0x18ca)]});}}else _0x2c9a98[_0x2ad916(0x1bd0)]({'title':_0x54cf6c[_0x2ad916(0x10b3)]?_0x2ad916(0x575)+_0x54cf6c[_0x2ad916(0x10b3)]+_0x2ad916(0x21db)+_0x54cf6c[_0x2ad916(0x2115)]:_0x2ad916(0x6ea),'msg':_0x54cf6c[_0x2ad916(0x1c52)]?JSON[_0x2ad916(0x2317)](_0x54cf6c['data'][_0x2ad916(0x18ca)]):_0x54cf6c['message']||_0x54cf6c[_0x2ad916(0x2915)]()});});},function(){});}function _0x214de6(_0x29f832){return _0x29f832===null?undefined:new Date(_0x29f832);}function _0x46be4f(_0x45dad9){const _0x4fadd2=_0x5b176d;_0x1a1fd1[_0x4fadd2(0x268e)](_0x45dad9);}}const _0x4115da=_0xe9ca84;;const _0x726590=_0x2e4a48['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/agi/dialog.html/dialog.html';;const _0x1b6c1e=_0x2e4a48['p']+_0x49a1e3(0x20e2);;const _0x3ccd88=_0x2e4a48['p']+_0x49a1e3(0x1225);;const _0x24a8bf=_0x2e4a48['p']+_0x49a1e3(0x1631);;const _0x542f47=_0x2e4a48['p']+_0x49a1e3(0x1955);;const _0x51ed38=_0x2e4a48['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/hangup/dialog.html/dialog.html';;const _0x327785=_0x2e4a48['p']+_0x49a1e3(0xd30);;const _0x54f252=_0x2e4a48['p']+_0x49a1e3(0x15d0);;const _0x4a918a=_0x2e4a48['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/playback/dialog.html/dialog.html';;const _0x2550b5=_0x2e4a48['p']+_0x49a1e3(0x945);;const _0x4ce026=_0x2e4a48['p']+_0x49a1e3(0xadd);;const _0x372aae=_0x2e4a48['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/set/dialog.html/dialog.html';;const _0x3130f8=_0x2e4a48['p']+_0x49a1e3(0x1896);;_0x5b0960[_0x49a1e3(0x1e73)]=[_0x49a1e3(0xa19),_0x49a1e3(0x212a),'$document',_0x49a1e3(0x680),_0x49a1e3(0xdcf)];const _0x412731={'agi':_0x726590,'custom':_0x1b6c1e,'dial':_0x3ccd88,'externaldial':_0x24a8bf,'goto':_0x542f47,'hangup':_0x51ed38,'internaldial':_0x327785,'interval':_0x54f252,'playback':_0x4a918a,'queue':_0x2550b5,'ringgroup':_0x4ce026,'set':_0x372aae,'voicemail':_0x3130f8};function _0x5b0960(_0x3c0910,_0x4e0159,_0x513861,_0x414986,_0x30ec89){const _0x441ea8=_0x49a1e3,_0x135d24=this;_0x135d24[_0x441ea8(0x1d3d)]=_0x30ec89['getCurrentUser'](),_0x135d24[_0x441ea8(0x17cc)]={},_0x135d24['inboundrouteApps']={'count':0x0,'rows':[]},_0x135d24[_0x441ea8(0x59b)]=[],_0x135d24[_0x441ea8(0x402)],_0x135d24[_0x441ea8(0x289a)]={'sort':_0x441ea8(0x1095)},_0x135d24['apps']=_0x28c606()[_0x441ea8(0x19d2)](_0x28c606()[_0x441ea8(0x1643)]([{'app':_0x441ea8(0x1f03),'appType':_0x441ea8(0xcfd),'types':[_0x441ea8(0xa66),_0x441ea8(0x1ad6),_0x441ea8(0x2764)],'fields':[],'isApp':![]},{'app':_0x441ea8(0x285e),'appType':_0x441ea8(0x1e4e),'context':_0x441ea8(0x9a8),'type':_0x441ea8(0x1006),'appdata':_0x441ea8(0x2688),'icon':'icon-apps','options':'xX','interval':_0x441ea8(0x2145),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x441ea8(0x16df),'field':{'name':_0x441ea8(0x282b),'key':_0x441ea8(0x962),'prefix':'/var/opt/motion2/server/files/sounds/converted/'},'route':_0x441ea8(0x282b),'filters':{'fields':'id,name,save_name','sort':_0x441ea8(0x2494),'nolimit':!![]},'permissions':{'section':0x3ef}},{'name':_0x441ea8(0x1c06),'field':{'name':_0x441ea8(0x1e4e),'key':_0x441ea8(0x2494)},'route':_0x441ea8(0x178b),'filters':{'type':_0x441ea8(0x12a4),'fields':_0x441ea8(0x2ba),'sort':_0x441ea8(0x2494),'nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':'Queue','name':_0x441ea8(0x1e4e),'type':_0x441ea8(0x26e8),'values':_0x441ea8(0x1c06),'value':_0x441ea8(0x5ca),'option':'queue.name','required':!![],'param':0x0},{'title':_0x441ea8(0x1df6),'name':_0x441ea8(0x59e),'type':'text','param':0x1},{'title':_0x441ea8(0x9f7),'name':_0x441ea8(0xea4),'type':_0x441ea8(0x39b),'param':0x2},{'title':'Announce_Overrides','name':_0x441ea8(0x282b),'type':_0x441ea8(0x26e8),'values':'sounds','value':_0x441ea8(0x1ebb),'option':_0x441ea8(0x22ce),'defaultValues':[{'value':'\x27\x27','option':_0x441ea8(0x8c8)}],'param':0x3},{'title':_0x441ea8(0x66e),'name':_0x441ea8(0x16d),'type':_0x441ea8(0x2113),'min':0x0,'param':0x4},{'title':_0x441ea8(0x8f2),'name':_0x441ea8(0x1e67),'type':_0x441ea8(0x39b),'param':0x5},{'title':_0x441ea8(0x2095),'name':_0x441ea8(0x2542),'type':_0x441ea8(0x39b),'param':0x6},{'title':_0x441ea8(0x1e90),'name':_0x441ea8(0x17e),'type':_0x441ea8(0x39b),'param':0x7},{'title':_0x441ea8(0x1032),'name':_0x441ea8(0x1487),'type':'text','param':0x8},{'title':_0x441ea8(0x1014),'name':'position','type':_0x441ea8(0x2113),'min':0x0,'param':0x9},{'title':_0x441ea8(0x1150),'name':_0x441ea8(0x122c),'type':'switch','general':!![]}]},{'app':_0x441ea8(0x1eda),'appType':_0x441ea8(0x1001),'context':_0x441ea8(0x9a8),'type':_0x441ea8(0x1006),'icon':_0x441ea8(0xd46),'interval':_0x441ea8(0x2145),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x441ea8(0x16df),'field':{'name':'sound','key':_0x441ea8(0x962),'prefix':'/var/opt/motion2/server/files/sounds/converted/'},'route':_0x441ea8(0x282b),'filters':{'fields':_0x441ea8(0x2246),'sort':_0x441ea8(0x2494),'nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':'Audio_Files','name':_0x441ea8(0xacb),'type':_0x441ea8(0x26e8),'values':'sounds','value':_0x441ea8(0x324),'option':_0x441ea8(0x10ce),'required':!![],'param':0x0},{'title':'Options','name':_0x441ea8(0x59e),'type':'text','param':0x1},{'title':_0x441ea8(0x1150),'name':_0x441ea8(0x122c),'type':_0x441ea8(0x2f6),'general':!![]}]},{'app':_0x441ea8(0x38a),'appType':'dial','context':_0x441ea8(0x9a8),'type':_0x441ea8(0x1006),'icon':_0x441ea8(0xd46),'interval':'*,*,*,*','options':'xX','isApp':!![],'fields':[{'title':_0x441ea8(0x1e1e),'name':_0x441ea8(0x17ca),'type':_0x441ea8(0x39b),'required':!![],'param':0x0},{'title':_0x441ea8(0x66e),'name':_0x441ea8(0x16d),'type':_0x441ea8(0x2113),'min':0x0,'param':0x1},{'title':_0x441ea8(0x1df6),'name':_0x441ea8(0x59e),'type':_0x441ea8(0x39b),'param':0x2},{'title':_0x441ea8(0x9f7),'name':_0x441ea8(0x2761),'type':'text','param':0x3}]},{'app':_0x441ea8(0x38a),'appType':_0x441ea8(0x460),'context':_0x441ea8(0x9a8),'type':'Inbound','icon':_0x441ea8(0xd46),'interval':_0x441ea8(0x2145),'options':'xX','isApp':!![],'extraApi':[{'name':_0x441ea8(0xff5),'field':{'name':_0x441ea8(0x2e8),'key':'name','prefix':_0x441ea8(0xaf8)},'route':_0x441ea8(0x2e8),'filters':{'fields':_0x441ea8(0x298b),'sort':_0x441ea8(0x2494),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x441ea8(0x11ae)},{'id':0xcb,'role':_0x441ea8(0x1782)}]}}],'fields':[{'title':_0x441ea8(0x1098),'name':'user','type':_0x441ea8(0x26e8),'values':_0x441ea8(0xff5),'value':_0x441ea8(0x1848),'option':'user.name','required':!![],'param':0x0},{'title':_0x441ea8(0x66e),'name':_0x441ea8(0x16d),'type':_0x441ea8(0x2113),'min':0x0,'param':0x1},{'title':_0x441ea8(0x1df6),'name':_0x441ea8(0x59e),'type':_0x441ea8(0x39b),'param':0x2},{'title':_0x441ea8(0x9f7),'name':_0x441ea8(0x2761),'type':_0x441ea8(0x39b),'param':0x3}]},{'app':_0x441ea8(0x38a),'appType':_0x441ea8(0x4db),'context':_0x441ea8(0x9a8),'type':'inbound','icon':_0x441ea8(0xd46),'interval':_0x441ea8(0x2145),'options':'xX','isApp':!![],'extraApi':[{'name':'trunks','field':{'name':_0x441ea8(0x4ef),'key':_0x441ea8(0x2494)},'route':_0x441ea8(0x4ef),'filters':{'fields':_0x441ea8(0x1427),'sort':_0x441ea8(0x2494),'nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':'Trunk','name':_0x441ea8(0x4ef),'type':_0x441ea8(0x26e8),'values':_0x441ea8(0xe23),'value':_0x441ea8(0x2501),'option':_0x441ea8(0x2501),'required':!![],'param':0x0},{'title':_0x441ea8(0x97a),'name':'phone','required':!![],'type':_0x441ea8(0x39b)},{'title':_0x441ea8(0x66e),'name':_0x441ea8(0x16d),'type':'number','min':0x0,'param':0x1},{'title':_0x441ea8(0x1df6),'name':_0x441ea8(0x59e),'type':_0x441ea8(0x39b),'param':0x2},{'title':_0x441ea8(0x9f7),'name':_0x441ea8(0x2761),'type':_0x441ea8(0x39b),'param':0x3}]},{'app':_0x441ea8(0x38a),'appType':_0x441ea8(0x1b92),'context':'from-voip-provider','type':'inbound','icon':_0x441ea8(0xd46),'interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':_0x441ea8(0xff5),'field':{'name':_0x441ea8(0x2627),'key':_0x441ea8(0x2494),'prefix':'SIP/'},'route':'user','filters':{'fields':_0x441ea8(0x298b),'sort':_0x441ea8(0x2494),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x441ea8(0x11ae)},{'id':0xcb,'role':'telephone'}]}}],'fields':[{'title':'User','name':_0x441ea8(0x2627),'type':_0x441ea8(0x26e8),'multiple':!![],'values':'users','value':_0x441ea8(0x116a),'option':_0x441ea8(0x848),'required':!![],'param':0x0},{'title':'Timeout','name':_0x441ea8(0x16d),'type':_0x441ea8(0x2113),'min':0x0,'param':0x1},{'title':_0x441ea8(0x1df6),'name':_0x441ea8(0x59e),'type':_0x441ea8(0x39b),'param':0x2},{'title':'Url','name':_0x441ea8(0x2761),'type':_0x441ea8(0x39b),'param':0x3}]},{'app':_0x441ea8(0x2487),'alias':_0x441ea8(0xab1),'appType':'agi','context':_0x441ea8(0x9a8),'type':_0x441ea8(0x12a4),'icon':'icon-apps','interval':_0x441ea8(0x2145),'isApp':!![],'extraApi':[{'name':_0x441ea8(0x1d73),'field':{'name':_0x441ea8(0x1bd9),'key':_0x441ea8(0x2494),'prefix':_0x441ea8(0x169)},'route':'squareProject','filters':{'fields':_0x441ea8(0x1427),'sort':_0x441ea8(0x2494),'nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':_0x441ea8(0x17e0),'name':'project','type':_0x441ea8(0x26e8),'values':_0x441ea8(0x1d73),'value':_0x441ea8(0x9c8),'option':_0x441ea8(0x1f96),'required':!![],'param':0x0}]},{'app':_0x441ea8(0x1e5a),'appType':'goTo','context':_0x441ea8(0x9a8),'type':_0x441ea8(0x1006),'icon':'icon-apps','interval':_0x441ea8(0x2145),'isApp':!![],'extraApi':[{'name':_0x441ea8(0xad1),'field':{'name':_0x441ea8(0x139),'key':_0x441ea8(0x2494)},'route':_0x441ea8(0x1faa),'filters':{'fields':_0x441ea8(0x1427),'sort':_0x441ea8(0x2494),'nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':'Context','name':_0x441ea8(0x139),'type':'apiselect','values':'contexts','value':'context.name','option':_0x441ea8(0xfb8),'required':!![],'param':0x0},{'title':_0x441ea8(0x25b0),'name':'extension','type':'text','required':!![],'param':0x1},{'title':'Priority','name':_0x441ea8(0x1095),'type':_0x441ea8(0x39b),'required':!![],'param':0x2}]},{'app':_0x441ea8(0x19dc),'appType':_0x441ea8(0x19dc),'context':_0x441ea8(0x9a8),'type':'Inbound','icon':_0x441ea8(0xd46),'interval':_0x441ea8(0x2145),'isApp':!![],'fields':[{'title':'Hangup_Cause','name':_0x441ea8(0xacb),'type':_0x441ea8(0x2926),'param':0x0,'values':[{'option':_0x441ea8(0xccd),'value':_0x441ea8(0x1755)},{'option':_0x441ea8(0x90f),'value':'\x2716\x27'},{'option':_0x441ea8(0x11e4),'value':'\x2717\x27'},{'option':_0x441ea8(0x25ac),'value':_0x441ea8(0x15bb)},{'option':'HANGUPCAUSE_21','value':_0x441ea8(0x626)},{'option':_0x441ea8(0x2976),'value':_0x441ea8(0x1bb5)},{'option':_0x441ea8(0x5cc),'value':_0x441ea8(0x124e)},{'option':_0x441ea8(0x22ee),'value':_0x441ea8(0x22f9)},{'option':_0x441ea8(0x1f0c),'value':_0x441ea8(0x1f3d)}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0x441ea8(0x1c13),'appType':_0x441ea8(0x1979),'context':'from-voip-provider','type':_0x441ea8(0x1006),'separator':'=','icon':_0x441ea8(0xd46),'interval':_0x441ea8(0x2145),'extraApi':[{'name':_0x441ea8(0x145c),'field':{'name':_0x441ea8(0x2494),'key':'name'},'route':_0x441ea8(0xefb),'filters':{'fields':'id,name','sort':_0x441ea8(0x2494),'nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':_0x441ea8(0x1538),'name':_0x441ea8(0x2494),'type':_0x441ea8(0x26e8),'values':_0x441ea8(0x145c),'value':_0x441ea8(0x15b6),'option':_0x441ea8(0x15b6),'required':!![],'param':0x0},{'title':'Value','name':_0x441ea8(0x1096),'type':_0x441ea8(0x39b),'required':!![],'param':0x1}]},{'app':null,'appType':_0x441ea8(0x1ad6),'icon':'icon-apps','type':_0x441ea8(0x1006),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x441ea8(0x1e8a),'name':_0x441ea8(0x16e1),'type':'text','required':!![],'param':0x0},{'title':_0x441ea8(0x2078),'name':_0x441ea8(0xacb),'type':_0x441ea8(0x39b),'param':0x1}]},{'app':_0x441ea8(0xd7f),'appType':_0x441ea8(0x25b),'context':_0x441ea8(0x9a8),'icon':'icon-apps','type':_0x441ea8(0x1006),'interval':_0x441ea8(0x2145),'isApp':!![],'extraApi':[{'name':_0x441ea8(0x5e4),'field':{'name':_0x441ea8(0x1e43),'key':_0x441ea8(0x1efa),'suffix':_0x441ea8(0x1795)},'route':_0x441ea8(0x1e43),'filters':{'fields':_0x441ea8(0x2419),'sort':_0x441ea8(0x1efa),'nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':_0x441ea8(0x2a7),'name':'voiceMail','type':_0x441ea8(0x26e8),'values':'voiceMails','value':_0x441ea8(0x2226),'option':'voiceMail.mailbox','required':!![],'param':0x0},{'title':_0x441ea8(0x1df6),'name':_0x441ea8(0x59e),'type':_0x441ea8(0x39b),'param':0x1}]}],[_0x441ea8(0x16e1)]),{'isApp':![]}),_0x135d24[_0x441ea8(0x2764)]={'group':{'name':_0x441ea8(0x7f2),'pull':_0x441ea8(0x24b2)},'animation':0x64,'sort':![]},_0x135d24[_0x441ea8(0x221f)]={'group':{'name':_0x441ea8(0x3a8),'put':_0x441ea8(0x7f2)},'animation':0x64,'onAdd':function(_0x1e32a1){const _0x25905b=_0x441ea8;_0x11a7e9(_0x1e32a1,_0x1e32a1[_0x25905b(0xa3e)]);},'onSort':function(){_0x5171dc();}},_0x135d24[_0x441ea8(0x2354)]=_0x5deb01,_0x135d24[_0x441ea8(0x217e)]=_0x5e8f52,_0x135d24['getInboundRouteApps']=_0x4e5b9f,_0x135d24[_0x441ea8(0xe75)]=_0x11a7e9,_0x135d24['editInterval']=_0x5eb1ef,_0x135d24[_0x441ea8(0x100e)]=_0x33db05,_0x135d24['deleteSelectedInboundRouteApps']=_0x160464,_0x135d24[_0x441ea8(0x14d0)]=_0x5171dc,_0x135d24[_0x441ea8(0x1039)]=_0x1eed1e;function _0x5deb01(_0xe81583,_0x2ca089){const _0x24b4eb=_0x441ea8;_0x135d24['inboundroute']=_0xe81583,_0x135d24[_0x24b4eb(0x402)]=typeof _0x2ca089!==_0x24b4eb(0x19a1)?_0x2ca089:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x135d24[_0x24b4eb(0x221f)][_0x24b4eb(0x1a95)]=!_0x135d24[_0x24b4eb(0x402)]['canEdit']?!![]:![],_0x135d24[_0x24b4eb(0x289a)][_0x24b4eb(0x2551)]=_0xe81583['id'],_0x135d24['query'][_0x24b4eb(0x210d)]=!![],_0x135d24[_0x24b4eb(0x289a)][_0x24b4eb(0x13d8)]=!![],_0x135d24[_0x24b4eb(0x1b0c)](),_0x135d24[_0x24b4eb(0x1039)]();}function _0x5e8f52(_0x4507de,_0x4436d0,_0x512102){const _0x3377e3=_0x441ea8,_0x46a815=_0x4e0159[_0x3377e3(0x856)]()[_0x3377e3(0x2021)](_0x3377e3(0x2041))['htmlContent'](_0x3377e3(0x50b)+_0x4507de[_0x3377e3(0x16e1)]+''+_0x3377e3(0x4b8))[_0x3377e3(0x213e)](_0x3377e3(0x1260))[_0x3377e3(0x2283)](_0x512102)['ok']('OK')[_0x3377e3(0x101a)](_0x3377e3(0x18fd));_0x4e0159[_0x3377e3(0xa60)](_0x46a815)[_0x3377e3(0x64a)](function(){const _0x4d58b8=_0x3377e3;_0x135d24[_0x4d58b8(0x55e)][_0x4d58b8(0x28b8)]['splice'](_0x4436d0,0x1),_0x5171dc();},function(){const _0x586e83=_0x3377e3;console[_0x586e83(0x9b4)](_0x586e83(0x18fd));});}function _0x11a7e9(_0x490717,_0x645197){const _0x284571=_0x441ea8;if(_0x135d24['inboundrouteApps'][_0x284571(0x28b8)][_0x284571(0x1b9e)]){const _0x616e0=_0x135d24[_0x284571(0x55e)]['rows'][_0x645197]?_0x135d24[_0x284571(0x55e)][_0x284571(0x28b8)][_0x645197]:_0x135d24[_0x284571(0x55e)]['rows'][0x0],_0x452e66=(_0x616e0['appType']||_0x616e0['app'])['toLowerCase']();_0x4e0159[_0x284571(0xa60)]({'controller':_0x284571(0x19e0)+_0x452e66+'DialogController','controllerAs':'vm','templateUrl':_0x412731[_0x452e66],'parent':angular['element'](_0x513861[_0x284571(0xb49)]),'targetEvent':_0x490717,'clickOutsideToClose':!![],'locals':{'inboundrouteApp':_0x616e0,'inboundroute':_0x135d24[_0x284571(0x17cc)],'crudPermissions':_0x135d24[_0x284571(0x402)]}})[_0x284571(0x64a)](function(_0x5cc7bd){const _0x5372ef=_0x284571;_0x5cc7bd&&(_0x5cc7bd['id']?_0x135d24['inboundrouteApps'][_0x5372ef(0x28b8)][_0x645197]=_0x5cc7bd:_0x135d24['inboundrouteApps'][_0x5372ef(0x28b8)][_0x5372ef(0x18f0)](_0x645197,0x0,_0x5cc7bd),_0x5171dc());})[_0x284571(0x20cd)](function(_0x5b5ffe){const _0x262e2b=_0x284571;_0x5b5ffe&&_0x414986[_0x262e2b(0x1bd0)]({'title':_0x5b5ffe[_0x262e2b(0x10b3)]?_0x262e2b(0x575)+_0x5b5ffe[_0x262e2b(0x10b3)]+_0x262e2b(0x21db)+_0x5b5ffe[_0x262e2b(0x2115)]:_0x262e2b(0xd28),'msg':_0x5b5ffe[_0x262e2b(0x1c52)]?JSON[_0x262e2b(0x2317)](_0x5b5ffe[_0x262e2b(0x1c52)]):_0x5b5ffe[_0x262e2b(0x2915)]()});});}}function _0x5eb1ef(_0x29320f,_0x8f891f){const _0x35704d=_0x441ea8;if(_0x135d24['inboundrouteApps'][_0x35704d(0x28b8)][_0x35704d(0x1b9e)]){const _0x120f35=_0x135d24[_0x35704d(0x55e)][_0x35704d(0x28b8)][_0x8f891f]?_0x135d24[_0x35704d(0x55e)]['rows'][_0x8f891f]:_0x135d24['inboundrouteApps']['rows'][0x0];_0x4e0159[_0x35704d(0xa60)]({'controller':_0x35704d(0x174b),'controllerAs':'vm','templateUrl':_0x54f252,'parent':angular[_0x35704d(0x1f81)](_0x513861['body']),'targetEvent':_0x29320f,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x120f35[_0x35704d(0xcfd)],'IntervalId':_0x120f35[_0x35704d(0xb71)],'application':!![]},'intervals':[],'crudPermissions':_0x135d24[_0x35704d(0x402)]}})[_0x35704d(0x64a)](function(_0xbd3f80){const _0x31432d=_0x35704d;_0xbd3f80&&(_0x120f35[_0x31432d(0xcfd)]=_0xbd3f80[_0x31432d(0xcfd)]||_0x31432d(0x2145),_0x120f35[_0x31432d(0xb71)]=_0xbd3f80[_0x31432d(0xb71)]||null,_0x5171dc());});}}function _0x5171dc(){const _0x2d13e9=_0x441ea8,_0x18b4f9=['queue',_0x2d13e9(0x1001)];let _0x2e0d20=0x2,_0x4a345c=[];_0x4a345c['push']({'type':_0x2d13e9(0x12a4),'app':_0x2d13e9(0x1c13),'appdata':_0x2d13e9(0x38f),'context':_0x135d24[_0x2d13e9(0x17cc)][_0x2d13e9(0x139)],'exten':_0x135d24[_0x2d13e9(0x17cc)][_0x2d13e9(0x19c8)],'priority':_0x2e0d20++,'VoiceExtensionId':_0x135d24['inboundroute']['id']}),_0x4a345c[_0x2d13e9(0x1954)]({'type':'inbound','app':'Set','appdata':'XCALLY-MOTION-ANSWER=0','context':_0x135d24[_0x2d13e9(0x17cc)][_0x2d13e9(0x139)],'exten':_0x135d24[_0x2d13e9(0x17cc)][_0x2d13e9(0x19c8)],'priority':_0x2e0d20++,'VoiceExtensionId':_0x135d24[_0x2d13e9(0x17cc)]['id']}),_0x4a345c[_0x2d13e9(0x1954)]({'type':_0x2d13e9(0x12a4),'app':_0x2d13e9(0x1c13),'appdata':_0x2d13e9(0x379),'context':_0x135d24['inboundroute'][_0x2d13e9(0x139)],'exten':_0x135d24['inboundroute'][_0x2d13e9(0x19c8)],'priority':_0x2e0d20++,'VoiceExtensionId':_0x135d24[_0x2d13e9(0x17cc)]['id']}),_0x4a345c[_0x2d13e9(0x1954)]({'type':_0x2d13e9(0x12a4),'app':_0x2d13e9(0x1c13),'appdata':_0x2d13e9(0x7fe),'context':_0x135d24['inboundroute'][_0x2d13e9(0x139)],'exten':_0x135d24[_0x2d13e9(0x17cc)][_0x2d13e9(0x19c8)],'priority':_0x2e0d20++,'VoiceExtensionId':_0x135d24[_0x2d13e9(0x17cc)]['id']});for(let _0x340f21=0x0,_0x553f41=0x0;_0x340f21<_0x135d24[_0x2d13e9(0x55e)][_0x2d13e9(0x28b8)][_0x2d13e9(0x1b9e)];_0x340f21++,_0x553f41=0x0){const _0x364b45=_0x135d24[_0x2d13e9(0x55e)][_0x2d13e9(0x28b8)][_0x340f21],_0xd1735c=[],_0x3aff6d=[];_0x364b45['intervals']=_0x364b45['interval']!==_0x2d13e9(0x2145)?[_0x364b45['interval']]:_0x364b45[_0x2d13e9(0xb71)]?_0x28c606()[_0x2d13e9(0x1de5)](_0x28c606()[_0x2d13e9(0xcec)](_0x135d24['intervals'][_0x2d13e9(0x28b8)],{'IntervalId':_0x364b45[_0x2d13e9(0xb71)]}),_0x2d13e9(0xcfd)):[],_0x364b45[_0x2d13e9(0x139)]=_0x135d24[_0x2d13e9(0x17cc)][_0x2d13e9(0x139)],_0x364b45['exten']=_0x135d24['inboundroute'][_0x2d13e9(0x19c8)];_0x364b45[_0x2d13e9(0x2185)]&&(_0x364b45['type']=_0x364b45[_0x2d13e9(0x2185)]['toLowerCase']());typeof _0x364b45[_0x2d13e9(0x122c)]!=='undefined'&&(_0x18b4f9[_0x2d13e9(0x68a)](_0x364b45[_0x2d13e9(0x16e1)]['toLowerCase']())&&_0x364b45[_0x2d13e9(0x4f4)]!==_0x2d13e9(0x1ad6)&&(_0x364b45[_0x2d13e9(0x122c)]?(_0xd1735c[_0x2d13e9(0x1954)]({'type':_0x364b45[_0x2d13e9(0x2185)][_0x2d13e9(0x2554)](),'app':_0x2d13e9(0xb37),'appdata':_0x2d13e9(0x181e),'context':_0x135d24[_0x2d13e9(0x17cc)]['context'],'exten':_0x135d24[_0x2d13e9(0x17cc)][_0x2d13e9(0x19c8)],'priority':_0x364b45[_0x2d13e9(0x15e4)][_0x2d13e9(0x1b9e)]+_0x2e0d20+_0x553f41++,'VoiceExtensionId':_0x135d24['inboundroute']['id']}),_0xd1735c[_0x2d13e9(0x1954)]({'type':_0x364b45['type'][_0x2d13e9(0x2554)](),'app':'Set','appdata':_0x2d13e9(0x1b95),'context':_0x135d24[_0x2d13e9(0x17cc)]['context'],'exten':_0x135d24[_0x2d13e9(0x17cc)][_0x2d13e9(0x19c8)],'priority':_0x364b45[_0x2d13e9(0x15e4)][_0x2d13e9(0x1b9e)]+_0x2e0d20+_0x553f41++,'VoiceExtensionId':_0x135d24[_0x2d13e9(0x17cc)]['id']})):(_0xd1735c[_0x2d13e9(0x1954)]({'type':_0x364b45[_0x2d13e9(0x2185)][_0x2d13e9(0x2554)](),'app':_0x2d13e9(0xb37),'appdata':_0x2d13e9(0x23ac),'context':_0x135d24[_0x2d13e9(0x17cc)][_0x2d13e9(0x139)],'exten':_0x135d24[_0x2d13e9(0x17cc)]['exten'],'priority':_0x364b45[_0x2d13e9(0x15e4)][_0x2d13e9(0x1b9e)]+_0x2e0d20+_0x553f41++,'VoiceExtensionId':_0x135d24['inboundroute']['id']}),_0xd1735c[_0x2d13e9(0x1954)]({'type':_0x364b45[_0x2d13e9(0x2185)]['toLowerCase'](),'app':_0x2d13e9(0x1c13),'appdata':_0x2d13e9(0x1900),'context':_0x135d24[_0x2d13e9(0x17cc)]['context'],'exten':_0x135d24[_0x2d13e9(0x17cc)][_0x2d13e9(0x19c8)],'priority':_0x364b45[_0x2d13e9(0x15e4)][_0x2d13e9(0x1b9e)]+_0x2e0d20+_0x553f41++,'VoiceExtensionId':_0x135d24['inboundroute']['id']}))));for(let _0x679409=0x0;_0x679409<_0x364b45[_0x2d13e9(0x15e4)][_0x2d13e9(0x1b9e)];_0x679409++){const _0x241acc=_0x2e0d20+_0x364b45[_0x2d13e9(0x15e4)][_0x2d13e9(0x1b9e)],_0x4bc85a=_0x679409===_0x364b45['intervals'][_0x2d13e9(0x1b9e)]-0x1?_0x2e0d20+_0xd1735c[_0x2d13e9(0x1b9e)]+_0x3aff6d[_0x2d13e9(0x1b9e)]+0x2:_0x2e0d20+_0x679409+0x1;_0xd1735c[_0x2d13e9(0x18f0)](_0x679409,0x0,{'type':_0x2d13e9(0x12a4),'app':_0x2d13e9(0x2092),'appdata':_0x364b45[_0x2d13e9(0x15e4)][_0x679409]+'?'+_0x135d24[_0x2d13e9(0x17cc)]['context']+_0x2d13e9(0x812)+_0x241acc+':'+_0x135d24[_0x2d13e9(0x17cc)]['context']+',${EXTEN},'+_0x4bc85a,'exten':_0x135d24[_0x2d13e9(0x17cc)][_0x2d13e9(0x19c8)],'context':_0x135d24['inboundroute'][_0x2d13e9(0x139)],'priority':_0x2e0d20+_0x679409,'VoiceExtensionId':_0x135d24[_0x2d13e9(0x17cc)]['id']});}_0x364b45[_0x2d13e9(0x1095)]=_0xd1735c[_0x2d13e9(0x1b9e)]?_0x28c606()[_0x2d13e9(0xe62)](_0xd1735c)[_0x2d13e9(0x1095)]+0x1:_0x2e0d20,_0x2e0d20=(_0x3aff6d[_0x2d13e9(0x1b9e)]?_0x28c606()[_0x2d13e9(0xe62)](_0x3aff6d)['priority']:_0x364b45['priority'])+0x1,_0x4a345c=_0x28c606()[_0x2d13e9(0x2808)](_0x4a345c,_0xd1735c,[_0x364b45],_0x3aff6d);}_0x4a345c['push']({'type':_0x2d13e9(0x12a4),'app':_0x2d13e9(0x13d5),'exten':_0x135d24[_0x2d13e9(0x17cc)][_0x2d13e9(0x19c8)],'context':_0x135d24[_0x2d13e9(0x17cc)][_0x2d13e9(0x139)],'priority':_0x2e0d20,'VoiceExtensionId':_0x135d24['inboundroute']['id']}),_0x3c0910[_0x2d13e9(0x1438)][_0x2d13e9(0x1c5d)]({'id':_0x135d24[_0x2d13e9(0x17cc)]['id']},_0x28c606()[_0x2d13e9(0x1643)](_0x4a345c,'priority'))[_0x2d13e9(0x15e7)][_0x2d13e9(0x64a)](function(_0x3c27de){const _0x9c40e9=_0x2d13e9;_0x135d24['inboundrouteApps'][_0x9c40e9(0x28b8)]=_0x3c27de[_0x9c40e9(0x28b8)];})['catch'](function(_0x394f86){const _0x4e5a96=_0x2d13e9;console[_0x4e5a96(0x1bd0)](_0x394f86);});}function _0x674a23(_0x202b09){const _0x3a50e6=_0x441ea8;_0x135d24[_0x3a50e6(0x55e)]=_0x202b09||{'count':0x0,'rows':[]};}function _0x1eed1e(){const _0x553f05=_0x441ea8;return _0x3c0910[_0x553f05(0xcfd)]['get']({'fields':_0x553f05(0x1aa)})['$promise'][_0x553f05(0x64a)](function(_0x17c4c4){const _0x566bf7=_0x553f05;_0x135d24[_0x566bf7(0x15e4)]=_0x17c4c4;})[_0x553f05(0x20cd)](function(_0x348f3d){const _0x3dd5ce=_0x553f05;console[_0x3dd5ce(0x1bd0)](_0x348f3d);});}function _0x4e5b9f(){const _0x2adf0e=_0x441ea8;_0x135d24[_0x2adf0e(0x1713)]=_0x3c0910['voiceExtension'][_0x2adf0e(0x896)](_0x135d24[_0x2adf0e(0x289a)],_0x674a23)[_0x2adf0e(0x15e7)];}function _0x33db05(_0xc01a8a){const _0x373e47=_0x441ea8;_0x28c606()['remove'](_0x135d24[_0x373e47(0x55e)]['rows'],{'id':_0xc01a8a['id']}),_0x5171dc(),_0x414986[_0x373e47(0x1339)]({'title':'App\x20deleted!','msg':_0xc01a8a[_0x373e47(0x16e1)]?_0xc01a8a[_0x373e47(0x16e1)]+'\x20has\x20been\x20deleted!':''});}function _0x160464(_0x110d0c){const _0x58ee37=_0x441ea8,_0x3f19a2=_0x4e0159[_0x58ee37(0x856)]()[_0x58ee37(0x2021)](_0x58ee37(0x150d))['htmlContent'](_0x58ee37(0x50b)+_0x135d24[_0x58ee37(0x59b)]['length']+_0x58ee37(0x163e)+_0x58ee37(0x4b8))[_0x58ee37(0x213e)]('delete\x20applications')['targetEvent'](_0x110d0c)['ok']('OK')['cancel']('CANCEL');_0x4e0159[_0x58ee37(0xa60)](_0x3f19a2)[_0x58ee37(0x64a)](function(){const _0x3c2e27=_0x58ee37;_0x135d24[_0x3c2e27(0x59b)][_0x3c2e27(0x1397)](function(_0x31e057){const _0x38e4a7=_0x3c2e27;_0x28c606()[_0x38e4a7(0x21c7)](_0x135d24[_0x38e4a7(0x55e)][_0x38e4a7(0x28b8)],{'id':_0x31e057['id']});}),_0x135d24[_0x3c2e27(0x59b)]=[],_0x5171dc();});}}const _0x520ed7=_0x5b0960;;_0x171173[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x7ac),_0x49a1e3(0x17cc),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x171173(_0x2768ac,_0x14cd30,_0x48a969,_0x1ca835,_0x5e9b0c,_0x35df1d,_0x256e57,_0x1219e4){const _0x3fccba=_0x49a1e3,_0x59f543=this;_0x59f543[_0x3fccba(0x1d3d)]=_0x256e57[_0x3fccba(0x808)](),_0x59f543[_0x3fccba(0xbae)]=[],_0x59f543[_0x3fccba(0x2021)]='VOICE.EDIT_'+(_0x1ca835[_0x3fccba(0x4f4)]||_0x1ca835[_0x3fccba(0x16e1)])[_0x3fccba(0xa3c)](),_0x59f543['agi']=angular[_0x3fccba(0x289e)](_0x1ca835),_0x59f543[_0x3fccba(0x402)]=_0x1219e4,_0x59f543[_0x3fccba(0x6c2)]={};if(_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0xacb)])switch(_0x59f543['agi']['appType']?_0x59f543['agi']['appType'][_0x3fccba(0x2554)]():_0x59f543[_0x3fccba(0x1e67)]['app'][_0x3fccba(0x2554)]()){case _0x3fccba(0x1ad6):break;case _0x3fccba(0x1084):{const _0x333409=_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0xacb)][_0x3fccba(0x282c)](',');_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0x2125)]=_0x333409[0x0],_0x59f543['agi'][_0x3fccba(0x1cbd)]=_0x333409[0x1],_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0x31b)]=_0x333409['slice'](0x2,_0x333409['length'])[_0x3fccba(0x9a6)](',');}break;case'dialogflowv2':{const _0x3b9760=_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0xacb)][_0x3fccba(0x282c)](',');_0x59f543[_0x3fccba(0x1e67)]['projectId']=_0x3b9760[0x0],_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0x4b2)]=_0x3b9760[0x1],_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0x1b1b)]=_0x3b9760[0x2],_0x59f543['agi'][_0x3fccba(0x1cbd)]=_0x3b9760[0x3],_0x59f543['agi'][_0x3fccba(0x31b)]=_0x3b9760['slice'](0x4,_0x3b9760[_0x3fccba(0x1b9e)])[_0x3fccba(0x9a6)](',');}break;case _0x3fccba(0x290d):{const _0x220b98=_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0xacb)][_0x3fccba(0x282c)](',');_0x59f543['agi'][_0x3fccba(0x1466)]=_0x220b98[0x0],_0x59f543['agi'][_0x3fccba(0x1b1)]=_0x220b98[0x1],_0x59f543[_0x3fccba(0x1e67)]['lexregion']=_0x220b98[0x2],_0x59f543['agi'][_0x3fccba(0x2797)]=_0x220b98[0x3],_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0x31b)]=_0x220b98['slice'](0x4,_0x220b98['length'])[_0x3fccba(0x9a6)](',');}break;case _0x3fccba(0x21a9):{const _0xab67ae=_0x59f543[_0x3fccba(0x1e67)]['appdata']['split'](',');_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0x95f)]=isNaN(_0xab67ae[0x0])?_0xab67ae[0x0]:parseInt(_0xab67ae[0x0],0xa),_0x59f543[_0x3fccba(0x1e67)]['text']=_0xab67ae['slice'](0x1,_0xab67ae['length'])['join'](',');}break;case _0x3fccba(0x18ca):_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0x39b)]=_0x59f543['agi']['appdata'];break;case _0x3fccba(0x1979):_0x59f543['agi'][_0x3fccba(0x2494)]=_0x59f543['agi']['appdata'][_0x3fccba(0x282c)]('=')[0x0],_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0x1096)]=_0x59f543['agi'][_0x3fccba(0xacb)][_0x3fccba(0x282c)]('=')[0x1];break;case'agi':_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0x1bd9)]=_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0xacb)];break;default:{const _0x1349c2=_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0xacb)][_0x3fccba(0x282c)](',');_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0x1bd9)]=_0x28c606()[_0x3fccba(0x940)](_0x1349c2[0x0])?_0x1349c2[0x0]:isNaN(_0x1349c2[0x0])?_0x1349c2[0x0]:parseInt(_0x1349c2[0x0],0xa);}break;}else{}_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0x2185)]&&_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0x2185)][_0x3fccba(0x2554)]()===_0x3fccba(0xbce)&&_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0x4f4)][_0x3fccba(0x2554)]()===_0x3fccba(0x20eb)&&(_0x59f543['agi'][_0x3fccba(0x2524)]=_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0x267a)]?_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0x267a)]['split']('$')[0x0]:undefined,_0x59f543[_0x3fccba(0x1e67)][_0x3fccba(0x1a9b)]=_0x59f543['agi'][_0x3fccba(0x1abe)]?_0x3fccba(0x2489)+_0x59f543['agi']['callerID']:undefined);_0x59f543[_0x3fccba(0x94b)]=_0x56dab2,_0x59f543[_0x3fccba(0x16cb)]=_0x1f5b28,_0x256e57[_0x3fccba(0x4de)](_0x3fccba(0x333))?_0x35df1d[_0x3fccba(0x2101)][_0x3fccba(0x896)]({'fields':_0x3fccba(0x1427),'sort':_0x3fccba(0x2494),'nolimit':_0x3fccba(0x1685)})[_0x3fccba(0x15e7)][_0x3fccba(0x64a)](function(_0x45d317){const _0x29b219=_0x3fccba;_0x59f543[_0x29b219(0x1d73)]=_0x45d317[_0x29b219(0x28b8)]||[];})[_0x3fccba(0x20cd)](function(_0x58b0af){const _0x266099=_0x3fccba;_0x48a969['error']({'title':_0x58b0af[_0x266099(0x10b3)]?'API:'+_0x58b0af[_0x266099(0x10b3)]+_0x266099(0x21db)+_0x58b0af[_0x266099(0x2115)]:_0x266099(0x295e),'msg':_0x58b0af['data']?JSON[_0x266099(0x2317)](_0x58b0af[_0x266099(0x1c52)]):_0x58b0af['toString']()});}):_0x35df1d[_0x3fccba(0x2101)][_0x3fccba(0x896)]({'fields':'id,name','sort':'name','nolimit':_0x3fccba(0x1685)})[_0x3fccba(0x15e7)][_0x3fccba(0x64a)](function(_0x4385ef){const _0x292dd0=_0x3fccba;_0x59f543[_0x292dd0(0x1d73)]=_0x4385ef[_0x292dd0(0x28b8)]||[];})[_0x3fccba(0x64a)](function(){const _0x4ed19c=_0x3fccba;return _0x35df1d['userProfileSection'][_0x4ed19c(0x896)]({'userProfileId':_0x59f543[_0x4ed19c(0x1d3d)][_0x4ed19c(0x21ac)],'sectionId':0x44f})['$promise'];})['then'](function(_0x470afb){const _0x2f8fa3=_0x3fccba,_0xdc700e=_0x470afb&&_0x470afb['rows']?_0x470afb[_0x2f8fa3(0x28b8)][0x0]:null;if(!_0xdc700e){const _0x20dff9=[];let _0x402a53=null;_0x59f543[_0x2f8fa3(0x1e67)]&&(_0x402a53=_0x28c606()[_0x2f8fa3(0x27bc)](_0x59f543[_0x2f8fa3(0x1d73)],{'name':_0x59f543[_0x2f8fa3(0x1e67)][_0x2f8fa3(0x1bd9)]}));for(let _0x4e6809=0x0;_0x4e6809<_0x59f543[_0x2f8fa3(0x1d73)][_0x2f8fa3(0x1b9e)];_0x4e6809++){_0x402a53&&_0x59f543[_0x2f8fa3(0x1d73)][_0x4e6809]['id']===_0x402a53['id']&&(_0x59f543['projects'][_0x4e6809]['canSelect']=![],_0x20dff9[_0x2f8fa3(0x1954)](_0x59f543[_0x2f8fa3(0x1d73)][_0x4e6809]));}_0x59f543[_0x2f8fa3(0x1d73)]=_0x20dff9;}else{if(!_0xdc700e[_0x2f8fa3(0x11da)])return _0x35df1d[_0x2f8fa3(0x1617)][_0x2f8fa3(0x896)]({'sectionId':_0xdc700e['id']})[_0x2f8fa3(0x15e7)][_0x2f8fa3(0x64a)](function(_0x251f88){const _0x3576a2=_0x2f8fa3,_0x525e4c=_0x28c606()[_0x3576a2(0x1de5)](_0x251f88[_0x3576a2(0x28b8)],function(_0x3b76cf){const _0x129045=_0x3576a2;return _0x28c606()[_0x129045(0x27bc)](_0x59f543[_0x129045(0x1d73)],{'id':_0x3b76cf[_0x129045(0x145)]});});let _0x53ab49=null;_0x59f543[_0x3576a2(0x1e67)]&&(_0x53ab49=_0x28c606()[_0x3576a2(0x27bc)](_0x59f543[_0x3576a2(0x1d73)],{'name':_0x59f543[_0x3576a2(0x1e67)][_0x3576a2(0x1bd9)]}));if(_0x53ab49&&!_0x28c606()['some'](_0x525e4c,['id',_0x53ab49['id']])){const _0x5acec4=_0x28c606()[_0x3576a2(0x27bc)](_0x59f543[_0x3576a2(0x1d73)],{'id':_0x53ab49['id']});_0x5acec4[_0x3576a2(0xd4f)]=![],_0x525e4c[_0x3576a2(0x1954)](_0x5acec4);}_0x59f543[_0x3576a2(0x1d73)]=_0x525e4c;});}})[_0x3fccba(0x20cd)](function(_0xf5666e){const _0x55bedc=_0x3fccba;_0x48a969[_0x55bedc(0x1bd0)]({'title':_0xf5666e[_0x55bedc(0x10b3)]?'API:'+_0xf5666e[_0x55bedc(0x10b3)]+_0x55bedc(0x21db)+_0xf5666e[_0x55bedc(0x2115)]:'SYSTEM:GETprojects','msg':_0xf5666e[_0x55bedc(0x1c52)]?JSON[_0x55bedc(0x2317)](_0xf5666e[_0x55bedc(0x1c52)]):_0xf5666e[_0x55bedc(0x2915)]()});});function _0x56dab2(){const _0x868f1=_0x3fccba;_0x59f543[_0x868f1(0xbae)]=[];const _0x557da6=[];_0x59f543['agi'][_0x868f1(0x2185)]&&_0x59f543[_0x868f1(0x1e67)][_0x868f1(0x2185)][_0x868f1(0x2554)]()===_0x868f1(0xbce)&&_0x59f543[_0x868f1(0x1e67)]['appType']==='outboundDial'&&(_0x59f543['agi'][_0x868f1(0x267a)]=_0x5e9b0c[_0x868f1(0x242b)]?(_0x59f543[_0x868f1(0x1e67)][_0x868f1(0x2524)]||'')+_0x868f1(0x1a75)+_0x5e9b0c[_0x868f1(0x242b)]+'}':(_0x59f543[_0x868f1(0x1e67)][_0x868f1(0x2524)]||'')+'${EXTEN}',_0x5e9b0c[_0x868f1(0x1097)]!==_0x868f1(0x2507)?_0x59f543[_0x868f1(0x1e67)]['options'][_0x868f1(0x1b28)](_0x868f1(0x13e0))<0x0&&(_0x59f543[_0x868f1(0x1e67)][_0x868f1(0x59e)]+='U(xcally-mixmonitor-context)'):_0x59f543[_0x868f1(0x1e67)][_0x868f1(0x59e)]=_0x59f543[_0x868f1(0x1e67)]['options'][_0x868f1(0x1353)]('U(xcally-mixmonitor-context)',''));if(_0x59f543[_0x868f1(0x1e67)]['appType']&&_0x59f543[_0x868f1(0x1e67)][_0x868f1(0x4f4)]===_0x868f1(0x1ad6)){}else switch((_0x59f543[_0x868f1(0x1e67)][_0x868f1(0x16e1)]||_0x59f543['agi'][_0x868f1(0x4f4)])['toLowerCase']()){case'set':_0x59f543[_0x868f1(0x1e67)][_0x868f1(0xacb)]=_0x59f543[_0x868f1(0x1e67)][_0x868f1(0x2494)]+'='+_0x59f543['agi'][_0x868f1(0x1096)];break;case _0x868f1(0x1ad6):break;default:_0x557da6[0x0]=_0x59f543['agi'][_0x868f1(0x1bd9)],_0x59f543[_0x868f1(0x1e67)][_0x868f1(0xacb)]=_0x557da6[_0x868f1(0x9a6)](',');}_0x1f5b28(_0x59f543[_0x868f1(0x1e67)]);}function _0x1f5b28(_0xa63e39){const _0x3e092c=_0x3fccba;_0x2768ac[_0x3e092c(0x268e)](_0xa63e39);}}const _0x31f79a=_0x171173;;_0x10cb3b[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x7ac),_0x49a1e3(0x17cc),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'crudPermissions'];function _0x10cb3b(_0x41b165,_0x146f3e,_0x368fa6,_0x14495f,_0x39458e,_0x2f8fe9,_0x261691,_0x58c9e9){const _0x2abcb1=_0x49a1e3,_0x54ac2a=this;_0x54ac2a[_0x2abcb1(0x1d3d)]=_0x261691['getCurrentUser'](),_0x54ac2a[_0x2abcb1(0xbae)]=[],_0x54ac2a[_0x2abcb1(0x2021)]=_0x2abcb1(0x2073)+(_0x14495f[_0x2abcb1(0x4f4)]||_0x14495f[_0x2abcb1(0x16e1)])[_0x2abcb1(0xa3c)](),_0x54ac2a['custom']=angular[_0x2abcb1(0x289e)](_0x14495f),_0x54ac2a['crudPermissions']=_0x58c9e9,_0x54ac2a[_0x2abcb1(0x6c2)]={};if(_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0xacb)])switch(_0x54ac2a['custom'][_0x2abcb1(0x4f4)]?_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x4f4)]['toLowerCase']():_0x54ac2a['custom'][_0x2abcb1(0x16e1)]['toLowerCase']()){case _0x2abcb1(0x1ad6):break;case _0x2abcb1(0x1084):{const _0x5ad147=_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0xacb)][_0x2abcb1(0x282c)](',');_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x2125)]=_0x5ad147[0x0],_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x1cbd)]=_0x5ad147[0x1],_0x54ac2a['custom'][_0x2abcb1(0x31b)]=_0x5ad147[_0x2abcb1(0x142e)](0x2,_0x5ad147[_0x2abcb1(0x1b9e)])[_0x2abcb1(0x9a6)](',');}break;case _0x2abcb1(0x1b1a):{const _0x7b9144=_0x54ac2a['custom'][_0x2abcb1(0xacb)][_0x2abcb1(0x282c)](',');_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0xbfd)]=_0x7b9144[0x0],_0x54ac2a['custom'][_0x2abcb1(0x4b2)]=_0x7b9144[0x1],_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x1b1b)]=_0x7b9144[0x2],_0x54ac2a[_0x2abcb1(0x1ad6)]['language']=_0x7b9144[0x3],_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x31b)]=_0x7b9144['slice'](0x4,_0x7b9144[_0x2abcb1(0x1b9e)])[_0x2abcb1(0x9a6)](',');}break;case'amazonlex':{const _0x27ea12=_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0xacb)][_0x2abcb1(0x282c)](',');_0x54ac2a[_0x2abcb1(0x1ad6)]['accesskeyid']=_0x27ea12[0x0],_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x1b1)]=_0x27ea12[0x1],_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x17a2)]=_0x27ea12[0x2],_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x2797)]=_0x27ea12[0x3],_0x54ac2a[_0x2abcb1(0x1ad6)]['welcomemessage']=_0x27ea12[_0x2abcb1(0x142e)](0x4,_0x27ea12[_0x2abcb1(0x1b9e)])[_0x2abcb1(0x9a6)](',');}break;case _0x2abcb1(0x21a9):{const _0x3cb880=_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0xacb)]['split'](',');_0x54ac2a['custom'][_0x2abcb1(0x95f)]=isNaN(_0x3cb880[0x0])?_0x3cb880[0x0]:parseInt(_0x3cb880[0x0],0xa),_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x39b)]=_0x3cb880['slice'](0x1,_0x3cb880[_0x2abcb1(0x1b9e)])[_0x2abcb1(0x9a6)](',');}break;case _0x2abcb1(0x18ca):_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x39b)]=_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0xacb)];break;case'set':_0x54ac2a['custom'][_0x2abcb1(0x2494)]=_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0xacb)][_0x2abcb1(0x282c)]('=')[0x0],_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x1096)]=_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0xacb)][_0x2abcb1(0x282c)]('=')[0x1];break;case _0x2abcb1(0x1e67):_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x1bd9)]=_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0xacb)];break;default:{const _0x785665=_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0xacb)][_0x2abcb1(0x282c)](',');_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x16e1)]=_0x28c606()[_0x2abcb1(0x940)](_0x785665[0x0])?_0x785665[0x0]:isNaN(_0x785665[0x0])?_0x785665[0x0]:parseInt(_0x785665[0x0],0xa),_0x54ac2a[_0x2abcb1(0x1ad6)]['appdata']=_0x28c606()['isEmpty'](_0x785665[0x1])?_0x785665[0x1]:isNaN(_0x785665[0x1])?_0x785665[0x1]:parseInt(_0x785665[0x1],0xa);}break;}else{}_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x2185)]&&_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x2185)]['toLowerCase']()===_0x2abcb1(0xbce)&&_0x54ac2a[_0x2abcb1(0x1ad6)]['appType']['toLowerCase']()===_0x2abcb1(0x20eb)&&(_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x2524)]=_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x267a)]?_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x267a)][_0x2abcb1(0x282c)]('$')[0x0]:undefined,_0x54ac2a[_0x2abcb1(0x1ad6)]['callerId']=_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x1abe)]?'CALLERID(all)='+_0x54ac2a[_0x2abcb1(0x1ad6)][_0x2abcb1(0x1abe)]:undefined);_0x54ac2a[_0x2abcb1(0x94b)]=_0x207894,_0x54ac2a['closeDialog']=_0x165073;function _0x207894(){const _0x3f24b5=_0x2abcb1;_0x54ac2a[_0x3f24b5(0xbae)]=[];const _0x5805c5=[];_0x54ac2a[_0x3f24b5(0x1ad6)][_0x3f24b5(0x2185)]&&_0x54ac2a[_0x3f24b5(0x1ad6)][_0x3f24b5(0x2185)][_0x3f24b5(0x2554)]()===_0x3f24b5(0xbce)&&_0x54ac2a['custom'][_0x3f24b5(0x4f4)]===_0x3f24b5(0x17b6)&&(_0x54ac2a['custom'][_0x3f24b5(0x267a)]=_0x39458e[_0x3f24b5(0x242b)]?(_0x54ac2a[_0x3f24b5(0x1ad6)][_0x3f24b5(0x2524)]||'')+_0x3f24b5(0x1a75)+_0x39458e[_0x3f24b5(0x242b)]+'}':(_0x54ac2a[_0x3f24b5(0x1ad6)][_0x3f24b5(0x2524)]||'')+'${EXTEN}',_0x39458e['recordingFormat']!=='none'?_0x54ac2a[_0x3f24b5(0x1ad6)]['options'][_0x3f24b5(0x1b28)](_0x3f24b5(0x13e0))<0x0&&(_0x54ac2a['custom'][_0x3f24b5(0x59e)]+=_0x3f24b5(0x13e0)):_0x54ac2a[_0x3f24b5(0x1ad6)][_0x3f24b5(0x59e)]=_0x54ac2a[_0x3f24b5(0x1ad6)][_0x3f24b5(0x59e)]['replace']('U(xcally-mixmonitor-context)',''));if(_0x54ac2a[_0x3f24b5(0x1ad6)]['appType']&&_0x54ac2a['custom'][_0x3f24b5(0x4f4)]==='custom'){}else switch((_0x54ac2a['custom'][_0x3f24b5(0x16e1)]||_0x54ac2a[_0x3f24b5(0x1ad6)]['appType'])[_0x3f24b5(0x2554)]()){case _0x3f24b5(0x1979):_0x54ac2a[_0x3f24b5(0x1ad6)]['appdata']=_0x54ac2a[_0x3f24b5(0x1ad6)][_0x3f24b5(0x2494)]+'='+_0x54ac2a[_0x3f24b5(0x1ad6)][_0x3f24b5(0x1096)];break;case'custom':break;default:_0x5805c5[0x0]=_0x54ac2a[_0x3f24b5(0x1ad6)][_0x3f24b5(0x16e1)],_0x5805c5[0x1]=_0x54ac2a['custom'][_0x3f24b5(0xacb)],_0x54ac2a['custom']['appdata']=_0x5805c5[_0x3f24b5(0x9a6)](',');}_0x165073(_0x54ac2a[_0x3f24b5(0x1ad6)]);}function _0x165073(_0x4bfbf8){const _0x2e98fd=_0x2abcb1;_0x41b165[_0x2e98fd(0x268e)](_0x4bfbf8);}}const _0x171fdb=_0x10cb3b;;_0x21d7e6[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0x7ac),_0x49a1e3(0x17cc),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x21d7e6(_0x413729,_0x394fd8,_0x46cf53,_0x31ab57,_0x24db10,_0x1d024d,_0x40adf7,_0x394c42){const _0x2417d2=_0x49a1e3,_0x10a82e=this;_0x10a82e['currentUser']=_0x40adf7[_0x2417d2(0x808)](),_0x10a82e[_0x2417d2(0xbae)]=[],_0x10a82e[_0x2417d2(0x2021)]='VOICE.EDIT_'+(_0x31ab57[_0x2417d2(0x4f4)]||_0x31ab57['app'])['toUpperCase'](),_0x10a82e[_0x2417d2(0x19b6)]=angular[_0x2417d2(0x289e)](_0x31ab57),_0x10a82e[_0x2417d2(0x402)]=_0x394c42,_0x10a82e[_0x2417d2(0x6c2)]={};if(_0x10a82e['dial']['appdata'])switch(_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x4f4)]?_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x4f4)][_0x2417d2(0x2554)]():_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x16e1)][_0x2417d2(0x2554)]()){case _0x2417d2(0x1ad6):break;case _0x2417d2(0x1084):{const _0x4bf35f=_0x10a82e['dial']['appdata'][_0x2417d2(0x282c)](',');_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x2125)]=_0x4bf35f[0x0],_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x1cbd)]=_0x4bf35f[0x1],_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x31b)]=_0x4bf35f[_0x2417d2(0x142e)](0x2,_0x4bf35f[_0x2417d2(0x1b9e)])[_0x2417d2(0x9a6)](',');}break;case _0x2417d2(0x1b1a):{const _0x534a73=_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0xacb)][_0x2417d2(0x282c)](',');_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0xbfd)]=_0x534a73[0x0],_0x10a82e['dial'][_0x2417d2(0x4b2)]=_0x534a73[0x1],_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x1b1b)]=_0x534a73[0x2],_0x10a82e['dial'][_0x2417d2(0x1cbd)]=_0x534a73[0x3],_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x31b)]=_0x534a73[_0x2417d2(0x142e)](0x4,_0x534a73[_0x2417d2(0x1b9e)])[_0x2417d2(0x9a6)](',');}break;case'amazonlex':{const _0x4121f8=_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0xacb)][_0x2417d2(0x282c)](',');_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x1466)]=_0x4121f8[0x0],_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x1b1)]=_0x4121f8[0x1],_0x10a82e[_0x2417d2(0x19b6)]['lexregion']=_0x4121f8[0x2],_0x10a82e['dial']['botname']=_0x4121f8[0x3],_0x10a82e[_0x2417d2(0x19b6)]['welcomemessage']=_0x4121f8[_0x2417d2(0x142e)](0x4,_0x4121f8[_0x2417d2(0x1b9e)])[_0x2417d2(0x9a6)](',');}break;case _0x2417d2(0x21a9):{const _0x36f9fc=_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0xacb)][_0x2417d2(0x282c)](',');_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x95f)]=isNaN(_0x36f9fc[0x0])?_0x36f9fc[0x0]:parseInt(_0x36f9fc[0x0],0xa),_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x39b)]=_0x36f9fc['slice'](0x1,_0x36f9fc[_0x2417d2(0x1b9e)])[_0x2417d2(0x9a6)](',');}break;case _0x2417d2(0x18ca):_0x10a82e[_0x2417d2(0x19b6)]['text']=_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0xacb)];break;case _0x2417d2(0x1979):_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x2494)]=_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0xacb)][_0x2417d2(0x282c)]('=')[0x0],_0x10a82e[_0x2417d2(0x19b6)]['value']=_0x10a82e['dial']['appdata'][_0x2417d2(0x282c)]('=')[0x1];break;case'agi':_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x1bd9)]=_0x10a82e['dial'][_0x2417d2(0xacb)];break;default:{const _0x57de1a=_0x10a82e[_0x2417d2(0x19b6)]['appdata'][_0x2417d2(0x282c)](',');_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x17ca)]=_0x28c606()[_0x2417d2(0x940)](_0x57de1a[0x0])?_0x57de1a[0x0]:isNaN(_0x57de1a[0x0])?_0x57de1a[0x0]:parseInt(_0x57de1a[0x0],0xa),_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x16d)]=_0x28c606()['isEmpty'](_0x57de1a[0x1])?_0x57de1a[0x1]:isNaN(_0x57de1a[0x1])?_0x57de1a[0x1]:parseInt(_0x57de1a[0x1],0xa),_0x10a82e['dial']['options']=_0x28c606()[_0x2417d2(0x940)](_0x57de1a[0x2])?_0x57de1a[0x2]:isNaN(_0x57de1a[0x2])?_0x57de1a[0x2]:parseInt(_0x57de1a[0x2],0xa),_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x2761)]=_0x28c606()[_0x2417d2(0x940)](_0x57de1a[0x3])?_0x57de1a[0x3]:isNaN(_0x57de1a[0x3])?_0x57de1a[0x3]:parseInt(_0x57de1a[0x3],0xa);}break;}else{}_0x10a82e[_0x2417d2(0x19b6)]['type']&&_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x2185)][_0x2417d2(0x2554)]()===_0x2417d2(0xbce)&&_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x4f4)]['toLowerCase']()===_0x2417d2(0x20eb)&&(_0x10a82e[_0x2417d2(0x19b6)]['prefix']=_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x267a)]?_0x10a82e['dial'][_0x2417d2(0x267a)][_0x2417d2(0x282c)]('$')[0x0]:undefined,_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x1a9b)]=_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x1abe)]?_0x2417d2(0x2489)+_0x10a82e[_0x2417d2(0x19b6)][_0x2417d2(0x1abe)]:undefined);_0x10a82e[_0x2417d2(0x94b)]=_0x2d9865,_0x10a82e[_0x2417d2(0x16cb)]=_0x57e18d;function _0x2d9865(){const _0xd63828=_0x2417d2;_0x10a82e[_0xd63828(0xbae)]=[];const _0x5ae75d=[];_0x10a82e[_0xd63828(0x19b6)][_0xd63828(0x2185)]&&_0x10a82e['dial'][_0xd63828(0x2185)][_0xd63828(0x2554)]()==='outbound'&&_0x10a82e['dial'][_0xd63828(0x4f4)]===_0xd63828(0x17b6)&&(_0x10a82e[_0xd63828(0x19b6)]['phone']=_0x24db10[_0xd63828(0x242b)]?(_0x10a82e['dial'][_0xd63828(0x2524)]||'')+'${EXTEN:'+_0x24db10[_0xd63828(0x242b)]+'}':(_0x10a82e[_0xd63828(0x19b6)][_0xd63828(0x2524)]||'')+'${EXTEN}',_0x24db10[_0xd63828(0x1097)]!==_0xd63828(0x2507)?_0x10a82e[_0xd63828(0x19b6)][_0xd63828(0x59e)][_0xd63828(0x1b28)](_0xd63828(0x13e0))<0x0&&(_0x10a82e[_0xd63828(0x19b6)][_0xd63828(0x59e)]+=_0xd63828(0x13e0)):_0x10a82e['dial'][_0xd63828(0x59e)]=_0x10a82e[_0xd63828(0x19b6)]['options'][_0xd63828(0x1353)](_0xd63828(0x13e0),''));if(_0x10a82e[_0xd63828(0x19b6)][_0xd63828(0x4f4)]&&_0x10a82e[_0xd63828(0x19b6)][_0xd63828(0x4f4)]===_0xd63828(0x1ad6)){}else switch((_0x10a82e[_0xd63828(0x19b6)][_0xd63828(0x16e1)]||_0x10a82e[_0xd63828(0x19b6)][_0xd63828(0x4f4)])['toLowerCase']()){case'set':_0x10a82e[_0xd63828(0x19b6)][_0xd63828(0xacb)]=_0x10a82e[_0xd63828(0x19b6)]['name']+'='+_0x10a82e['dial'][_0xd63828(0x1096)];break;case'custom':break;default:_0x5ae75d[0x0]=_0x10a82e['dial'][_0xd63828(0x17ca)],_0x5ae75d[0x1]=_0x10a82e['dial']['timeout'],_0x5ae75d[0x2]=_0x10a82e[_0xd63828(0x19b6)]['options'],_0x5ae75d[0x3]=_0x10a82e[_0xd63828(0x19b6)][_0xd63828(0x2761)],_0x10a82e[_0xd63828(0x19b6)]['appdata']=_0x5ae75d[_0xd63828(0x9a6)](',');}_0x57e18d(_0x10a82e['dial']);}function _0x57e18d(_0x8b23ea){const _0x84081e=_0x2417d2;_0x413729[_0x84081e(0x268e)](_0x8b23ea);}}const _0x461953=_0x21d7e6;;_0x546245[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty','inboundrouteApp','inboundroute',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x546245(_0x53a44d,_0x7ddf2e,_0x1d5858,_0xd6c3cf,_0x4d3fb4,_0x1c8fa3,_0x4ba8c9,_0x57defa){const _0x34e869=_0x49a1e3,_0x1858c4=this;_0x1858c4[_0x34e869(0x1d3d)]=_0x4ba8c9['getCurrentUser'](),_0x1858c4[_0x34e869(0xbae)]=[],_0x1858c4[_0x34e869(0x2021)]=_0x34e869(0x2073)+(_0xd6c3cf[_0x34e869(0x4f4)]||_0xd6c3cf[_0x34e869(0x16e1)])[_0x34e869(0xa3c)](),_0x1858c4[_0x34e869(0x279f)]=angular[_0x34e869(0x289e)](_0xd6c3cf),_0x1858c4['crudPermissions']=_0x57defa,_0x1858c4[_0x34e869(0x6c2)]={};if(_0x1858c4[_0x34e869(0x279f)][_0x34e869(0xacb)])switch(_0x1858c4['externaldial'][_0x34e869(0x4f4)]?_0x1858c4['externaldial'][_0x34e869(0x4f4)]['toLowerCase']():_0x1858c4['externaldial']['app']['toLowerCase']()){case'custom':break;case'dialogflow':{const _0x39c0fc=_0x1858c4[_0x34e869(0x279f)][_0x34e869(0xacb)][_0x34e869(0x282c)](',');_0x1858c4['externaldial'][_0x34e869(0x2125)]=_0x39c0fc[0x0],_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x1cbd)]=_0x39c0fc[0x1],_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x31b)]=_0x39c0fc[_0x34e869(0x142e)](0x2,_0x39c0fc['length'])['join'](',');}break;case _0x34e869(0x1b1a):{const _0x1a84bc=_0x1858c4[_0x34e869(0x279f)][_0x34e869(0xacb)][_0x34e869(0x282c)](',');_0x1858c4[_0x34e869(0x279f)][_0x34e869(0xbfd)]=_0x1a84bc[0x0],_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x4b2)]=_0x1a84bc[0x1],_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x1b1b)]=_0x1a84bc[0x2],_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x1cbd)]=_0x1a84bc[0x3],_0x1858c4['externaldial'][_0x34e869(0x31b)]=_0x1a84bc['slice'](0x4,_0x1a84bc[_0x34e869(0x1b9e)])[_0x34e869(0x9a6)](',');}break;case _0x34e869(0x290d):{const _0x22f5f4=_0x1858c4[_0x34e869(0x279f)][_0x34e869(0xacb)][_0x34e869(0x282c)](',');_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x1466)]=_0x22f5f4[0x0],_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x1b1)]=_0x22f5f4[0x1],_0x1858c4['externaldial'][_0x34e869(0x17a2)]=_0x22f5f4[0x2],_0x1858c4['externaldial'][_0x34e869(0x2797)]=_0x22f5f4[0x3],_0x1858c4['externaldial'][_0x34e869(0x31b)]=_0x22f5f4[_0x34e869(0x142e)](0x4,_0x22f5f4[_0x34e869(0x1b9e)])['join'](',');}break;case'autoreply':{const _0x85b6ea=_0x1858c4[_0x34e869(0x279f)][_0x34e869(0xacb)][_0x34e869(0x282c)](',');_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x95f)]=isNaN(_0x85b6ea[0x0])?_0x85b6ea[0x0]:parseInt(_0x85b6ea[0x0],0xa),_0x1858c4['externaldial'][_0x34e869(0x39b)]=_0x85b6ea['slice'](0x1,_0x85b6ea['length'])['join'](',');}break;case _0x34e869(0x18ca):_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x39b)]=_0x1858c4[_0x34e869(0x279f)][_0x34e869(0xacb)];break;case _0x34e869(0x1979):_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x2494)]=_0x1858c4[_0x34e869(0x279f)][_0x34e869(0xacb)][_0x34e869(0x282c)]('=')[0x0],_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x1096)]=_0x1858c4[_0x34e869(0x279f)][_0x34e869(0xacb)][_0x34e869(0x282c)]('=')[0x1];break;case _0x34e869(0x1e67):_0x1858c4[_0x34e869(0x279f)]['project']=_0x1858c4['externaldial']['appdata'];break;default:{const _0x3a5d5d=_0x1858c4[_0x34e869(0x279f)][_0x34e869(0xacb)]['split'](',');_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x4ef)]=_0x3a5d5d[0x0][_0x34e869(0x282c)]('/')[0x1],_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x267a)]=_0x3a5d5d[0x0]['split']('/')[0x2],_0x1858c4['externaldial'][_0x34e869(0x16d)]=_0x28c606()[_0x34e869(0x940)](_0x3a5d5d[0x1])?_0x3a5d5d[0x1]:isNaN(_0x3a5d5d[0x1])?_0x3a5d5d[0x1]:parseInt(_0x3a5d5d[0x1],0xa),_0x1858c4['externaldial']['options']=_0x28c606()['isEmpty'](_0x3a5d5d[0x2])?_0x3a5d5d[0x2]:isNaN(_0x3a5d5d[0x2])?_0x3a5d5d[0x2]:parseInt(_0x3a5d5d[0x2],0xa),_0x1858c4[_0x34e869(0x279f)]['url']=_0x28c606()[_0x34e869(0x940)](_0x3a5d5d[0x3])?_0x3a5d5d[0x3]:isNaN(_0x3a5d5d[0x3])?_0x3a5d5d[0x3]:parseInt(_0x3a5d5d[0x3],0xa);}break;}else{}_0x1858c4['externaldial']['type']&&_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x2185)]['toLowerCase']()===_0x34e869(0xbce)&&_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x4f4)][_0x34e869(0x2554)]()==='outbounddial'&&(_0x1858c4['externaldial'][_0x34e869(0x2524)]=_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x267a)]?_0x1858c4[_0x34e869(0x279f)]['phone']['split']('$')[0x0]:undefined,_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x1a9b)]=_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x1abe)]?_0x34e869(0x2489)+_0x1858c4[_0x34e869(0x279f)][_0x34e869(0x1abe)]:undefined);_0x1858c4['saveInboundRouteApp']=_0xe6fa45,_0x1858c4[_0x34e869(0x16cb)]=_0x1e7cc3,_0x4ba8c9['hasRole']('admin')?_0x1c8fa3[_0x34e869(0x4ef)][_0x34e869(0x896)]({'fields':_0x34e869(0x1427),'sort':_0x34e869(0x2494),'nolimit':_0x34e869(0x1685)})[_0x34e869(0x15e7)][_0x34e869(0x64a)](function(_0x2cce74){const _0x16ff6e=_0x34e869;_0x1858c4[_0x16ff6e(0xe23)]=_0x2cce74['rows']||[];})[_0x34e869(0x20cd)](function(_0x542a71){const _0x10b00d=_0x34e869;_0x1d5858[_0x10b00d(0x1bd0)]({'title':_0x542a71[_0x10b00d(0x10b3)]?'API:'+_0x542a71[_0x10b00d(0x10b3)]+_0x10b00d(0x21db)+_0x542a71[_0x10b00d(0x2115)]:'SYSTEM:GET_TRUNKS','msg':_0x542a71['data']?JSON['stringify'](_0x542a71[_0x10b00d(0x1c52)]):_0x542a71['toString']()});}):_0x1c8fa3[_0x34e869(0x4ef)][_0x34e869(0x896)]({'fields':_0x34e869(0x1427),'sort':_0x34e869(0x2494),'nolimit':'true'})[_0x34e869(0x15e7)]['then'](function(_0x19b3bd){const _0x209a57=_0x34e869;_0x1858c4[_0x209a57(0xe23)]=_0x19b3bd[_0x209a57(0x28b8)]||[];})[_0x34e869(0x64a)](function(){const _0x3e996f=_0x34e869;return _0x1c8fa3[_0x3e996f(0x16b2)][_0x3e996f(0x896)]({'userProfileId':_0x1858c4[_0x3e996f(0x1d3d)][_0x3e996f(0x21ac)],'sectionId':0x3f3})[_0x3e996f(0x15e7)];})[_0x34e869(0x64a)](function(_0x1d056d){const _0x4bb707=_0x34e869,_0x493905=_0x1d056d&&_0x1d056d['rows']?_0x1d056d[_0x4bb707(0x28b8)][0x0]:null;if(!_0x493905){const _0xb401de=[];let _0x33f699=null;_0x1858c4['externaldial']&&(_0x33f699=_0x28c606()[_0x4bb707(0x27bc)](_0x1858c4[_0x4bb707(0xe23)],{'name':_0x1858c4[_0x4bb707(0x279f)][_0x4bb707(0x4ef)]}));for(let _0x52f82c=0x0;_0x52f82c<_0x1858c4[_0x4bb707(0xe23)]['length'];_0x52f82c++){_0x33f699&&_0x1858c4[_0x4bb707(0xe23)][_0x52f82c]['id']===_0x33f699['id']&&(_0x1858c4['trunks'][_0x52f82c]['canSelect']=![],_0xb401de[_0x4bb707(0x1954)](_0x1858c4[_0x4bb707(0xe23)][_0x52f82c]));}_0x1858c4['trunks']=_0xb401de;}else{if(!_0x493905[_0x4bb707(0x11da)])return _0x1c8fa3['userProfileResource'][_0x4bb707(0x896)]({'sectionId':_0x493905['id']})[_0x4bb707(0x15e7)][_0x4bb707(0x64a)](function(_0x124341){const _0x13ab7a=_0x4bb707,_0x12c522=_0x28c606()[_0x13ab7a(0x1de5)](_0x124341[_0x13ab7a(0x28b8)],function(_0x541291){const _0x53f7e8=_0x13ab7a;return _0x28c606()[_0x53f7e8(0x27bc)](_0x1858c4[_0x53f7e8(0xe23)],{'id':_0x541291[_0x53f7e8(0x145)]});});let _0x1c0703=null;_0x1858c4[_0x13ab7a(0x279f)]&&(_0x1c0703=_0x28c606()[_0x13ab7a(0x27bc)](_0x1858c4[_0x13ab7a(0xe23)],{'name':_0x1858c4[_0x13ab7a(0x279f)][_0x13ab7a(0x4ef)]}));if(_0x1c0703&&!_0x28c606()[_0x13ab7a(0x25f8)](_0x12c522,['id',_0x1c0703['id']])){const _0x1e9366=_0x28c606()[_0x13ab7a(0x27bc)](_0x1858c4[_0x13ab7a(0xe23)],{'id':_0x1c0703['id']});_0x1e9366[_0x13ab7a(0xd4f)]=![],_0x12c522[_0x13ab7a(0x1954)](_0x1e9366);}_0x1858c4[_0x13ab7a(0xe23)]=_0x12c522;});}})[_0x34e869(0x20cd)](function(_0x26a13e){const _0x45d7a3=_0x34e869;_0x1d5858[_0x45d7a3(0x1bd0)]({'title':_0x26a13e[_0x45d7a3(0x10b3)]?_0x45d7a3(0x575)+_0x26a13e[_0x45d7a3(0x10b3)]+_0x45d7a3(0x21db)+_0x26a13e['statusText']:_0x45d7a3(0x89a),'msg':_0x26a13e[_0x45d7a3(0x1c52)]?JSON['stringify'](_0x26a13e[_0x45d7a3(0x1c52)]):_0x26a13e[_0x45d7a3(0x2915)]()});});function _0xe6fa45(){const _0x5cbef8=_0x34e869;_0x1858c4[_0x5cbef8(0xbae)]=[];const _0x46284f=[];_0x1858c4[_0x5cbef8(0x279f)][_0x5cbef8(0x2185)]&&_0x1858c4[_0x5cbef8(0x279f)][_0x5cbef8(0x2185)][_0x5cbef8(0x2554)]()===_0x5cbef8(0xbce)&&_0x1858c4[_0x5cbef8(0x279f)]['appType']==='outboundDial'&&(_0x1858c4['externaldial'][_0x5cbef8(0x267a)]=_0x4d3fb4[_0x5cbef8(0x242b)]?(_0x1858c4['externaldial']['prefix']||'')+_0x5cbef8(0x1a75)+_0x4d3fb4['cutdigits']+'}':(_0x1858c4[_0x5cbef8(0x279f)][_0x5cbef8(0x2524)]||'')+_0x5cbef8(0x5ad),_0x4d3fb4[_0x5cbef8(0x1097)]!==_0x5cbef8(0x2507)?_0x1858c4['externaldial'][_0x5cbef8(0x59e)][_0x5cbef8(0x1b28)](_0x5cbef8(0x13e0))<0x0&&(_0x1858c4[_0x5cbef8(0x279f)]['options']+=_0x5cbef8(0x13e0)):_0x1858c4[_0x5cbef8(0x279f)]['options']=_0x1858c4['externaldial'][_0x5cbef8(0x59e)][_0x5cbef8(0x1353)](_0x5cbef8(0x13e0),''));if(_0x1858c4[_0x5cbef8(0x279f)]['appType']&&_0x1858c4[_0x5cbef8(0x279f)][_0x5cbef8(0x4f4)]===_0x5cbef8(0x1ad6)){}else switch((_0x1858c4[_0x5cbef8(0x279f)][_0x5cbef8(0x16e1)]||_0x1858c4[_0x5cbef8(0x279f)][_0x5cbef8(0x4f4)])[_0x5cbef8(0x2554)]()){case _0x5cbef8(0x1979):_0x1858c4['externaldial'][_0x5cbef8(0xacb)]=_0x1858c4[_0x5cbef8(0x279f)]['name']+'='+_0x1858c4[_0x5cbef8(0x279f)]['value'];break;case _0x5cbef8(0x1ad6):break;default:_0x46284f[0x0]=[_0x5cbef8(0x2644),_0x1858c4[_0x5cbef8(0x279f)][_0x5cbef8(0x4ef)],_0x1858c4[_0x5cbef8(0x279f)][_0x5cbef8(0x267a)]][_0x5cbef8(0x9a6)]('/'),_0x46284f[0x1]=_0x1858c4['externaldial'][_0x5cbef8(0x16d)],_0x46284f[0x2]=_0x1858c4[_0x5cbef8(0x279f)][_0x5cbef8(0x59e)],_0x46284f[0x3]=_0x1858c4[_0x5cbef8(0x279f)][_0x5cbef8(0x2761)],_0x1858c4[_0x5cbef8(0x279f)][_0x5cbef8(0xacb)]=_0x46284f[_0x5cbef8(0x9a6)](',');}_0x1e7cc3(_0x1858c4[_0x5cbef8(0x279f)]);}function _0x1e7cc3(_0x545640){const _0x4b4863=_0x34e869;_0x53a44d[_0x4b4863(0x268e)](_0x545640);}}const _0x327436=_0x546245;;_0xad0597[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x7ac),_0x49a1e3(0x17cc),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0xad0597(_0x4dd555,_0xdb3acc,_0xd599d1,_0x10dddf,_0x5a4eef,_0x5bf86a,_0x275e5e,_0x14e9c9){const _0x48bd60=_0x49a1e3,_0x2f50ef=this;_0x2f50ef['currentUser']=_0x275e5e[_0x48bd60(0x808)](),_0x2f50ef[_0x48bd60(0xbae)]=[],_0x2f50ef[_0x48bd60(0x2021)]=_0x48bd60(0x2073)+(_0x10dddf[_0x48bd60(0x4f4)]||_0x10dddf[_0x48bd60(0x16e1)])[_0x48bd60(0xa3c)](),_0x2f50ef[_0x48bd60(0x1e5a)]=angular[_0x48bd60(0x289e)](_0x10dddf),_0x2f50ef['crudPermissions']=_0x14e9c9,_0x2f50ef[_0x48bd60(0x6c2)]={};if(_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0xacb)])switch(_0x2f50ef[_0x48bd60(0x1e5a)]['appType']?_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x4f4)][_0x48bd60(0x2554)]():_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x16e1)][_0x48bd60(0x2554)]()){case _0x48bd60(0x1ad6):break;case'dialogflow':{const _0x2ba635=_0x2f50ef['goto'][_0x48bd60(0xacb)][_0x48bd60(0x282c)](',');_0x2f50ef[_0x48bd60(0x1e5a)]['key']=_0x2ba635[0x0],_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x1cbd)]=_0x2ba635[0x1],_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x31b)]=_0x2ba635['slice'](0x2,_0x2ba635[_0x48bd60(0x1b9e)])[_0x48bd60(0x9a6)](',');}break;case'dialogflowv2':{const _0x2b53c3=_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0xacb)][_0x48bd60(0x282c)](',');_0x2f50ef[_0x48bd60(0x1e5a)]['projectId']=_0x2b53c3[0x0],_0x2f50ef['goto']['clientEmail']=_0x2b53c3[0x1],_0x2f50ef[_0x48bd60(0x1e5a)]['privateKey']=_0x2b53c3[0x2],_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x1cbd)]=_0x2b53c3[0x3],_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x31b)]=_0x2b53c3[_0x48bd60(0x142e)](0x4,_0x2b53c3[_0x48bd60(0x1b9e)])['join'](',');}break;case _0x48bd60(0x290d):{const _0x24b9a7=_0x2f50ef[_0x48bd60(0x1e5a)]['appdata'][_0x48bd60(0x282c)](',');_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x1466)]=_0x24b9a7[0x0],_0x2f50ef['goto']['secretaccesskey']=_0x24b9a7[0x1],_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x17a2)]=_0x24b9a7[0x2],_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x2797)]=_0x24b9a7[0x3],_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x31b)]=_0x24b9a7['slice'](0x4,_0x24b9a7[_0x48bd60(0x1b9e)])[_0x48bd60(0x9a6)](',');}break;case _0x48bd60(0x21a9):{const _0x40d9d3=_0x2f50ef['goto'][_0x48bd60(0xacb)]['split'](',');_0x2f50ef[_0x48bd60(0x1e5a)]['times']=isNaN(_0x40d9d3[0x0])?_0x40d9d3[0x0]:parseInt(_0x40d9d3[0x0],0xa),_0x2f50ef[_0x48bd60(0x1e5a)]['text']=_0x40d9d3['slice'](0x1,_0x40d9d3[_0x48bd60(0x1b9e)])['join'](',');}break;case _0x48bd60(0x18ca):_0x2f50ef[_0x48bd60(0x1e5a)]['text']=_0x2f50ef[_0x48bd60(0x1e5a)]['appdata'];break;case _0x48bd60(0x1979):_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x2494)]=_0x2f50ef[_0x48bd60(0x1e5a)]['appdata'][_0x48bd60(0x282c)]('=')[0x0],_0x2f50ef['goto'][_0x48bd60(0x1096)]=_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0xacb)][_0x48bd60(0x282c)]('=')[0x1];break;case _0x48bd60(0x1e67):_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x1bd9)]=_0x2f50ef[_0x48bd60(0x1e5a)]['appdata'];break;default:{const _0x15c0a8=_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0xacb)][_0x48bd60(0x282c)](',');_0x2f50ef['goto'][_0x48bd60(0x139)]=_0x28c606()[_0x48bd60(0x940)](_0x15c0a8[0x0])?_0x15c0a8[0x0]:isNaN(_0x15c0a8[0x0])?_0x15c0a8[0x0]:parseInt(_0x15c0a8[0x0],0xa),_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x13d4)]=_0x28c606()[_0x48bd60(0x940)](_0x15c0a8[0x1])?_0x15c0a8[0x1]:isNaN(_0x15c0a8[0x1])?_0x15c0a8[0x1]:parseInt(_0x15c0a8[0x1],0xa),_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x1095)]=_0x28c606()[_0x48bd60(0x940)](_0x15c0a8[0x2])?_0x15c0a8[0x2]:isNaN(_0x15c0a8[0x2])?_0x15c0a8[0x2]:parseInt(_0x15c0a8[0x2],0xa);}break;}else{}_0x2f50ef[_0x48bd60(0x1e5a)]['type']&&_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x2185)][_0x48bd60(0x2554)]()==='outbound'&&_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x4f4)]['toLowerCase']()===_0x48bd60(0x20eb)&&(_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x2524)]=_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x267a)]?_0x2f50ef['goto'][_0x48bd60(0x267a)]['split']('$')[0x0]:undefined,_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x1a9b)]=_0x2f50ef[_0x48bd60(0x1e5a)]['callerID']?_0x48bd60(0x2489)+_0x2f50ef[_0x48bd60(0x1e5a)][_0x48bd60(0x1abe)]:undefined);_0x2f50ef[_0x48bd60(0x94b)]=_0x5284f6,_0x2f50ef[_0x48bd60(0x16cb)]=_0x3b70c7,_0x275e5e[_0x48bd60(0x4de)](_0x48bd60(0x333))?_0x5bf86a[_0x48bd60(0x1faa)][_0x48bd60(0x896)]({'fields':_0x48bd60(0x1427),'sort':_0x48bd60(0x2494),'nolimit':_0x48bd60(0x1685)})[_0x48bd60(0x15e7)]['then'](function(_0x3d0c78){const _0x397113=_0x48bd60;_0x2f50ef[_0x397113(0xad1)]=_0x3d0c78['rows']||[];})[_0x48bd60(0x20cd)](function(_0x1e7401){const _0x1bd042=_0x48bd60;_0xd599d1['error']({'title':_0x1e7401[_0x1bd042(0x10b3)]?_0x1bd042(0x575)+_0x1e7401['status']+_0x1bd042(0x21db)+_0x1e7401[_0x1bd042(0x2115)]:_0x1bd042(0xbea),'msg':_0x1e7401[_0x1bd042(0x1c52)]?JSON[_0x1bd042(0x2317)](_0x1e7401[_0x1bd042(0x1c52)]):_0x1e7401['toString']()});}):_0x5bf86a['voiceContext'][_0x48bd60(0x896)]({'fields':_0x48bd60(0x1427),'sort':_0x48bd60(0x2494),'nolimit':_0x48bd60(0x1685)})[_0x48bd60(0x15e7)][_0x48bd60(0x64a)](function(_0x3d7e3a){const _0x3ec177=_0x48bd60;_0x2f50ef[_0x3ec177(0xad1)]=_0x3d7e3a['rows']||[];})[_0x48bd60(0x64a)](function(){const _0x2a5363=_0x48bd60;return _0x5bf86a[_0x2a5363(0x16b2)][_0x2a5363(0x896)]({'userProfileId':_0x2f50ef['currentUser'][_0x2a5363(0x21ac)],'sectionId':0x195})[_0x2a5363(0x15e7)];})[_0x48bd60(0x64a)](function(_0x49fa9a){const _0x20913b=_0x48bd60,_0x16158c=_0x49fa9a&&_0x49fa9a[_0x20913b(0x28b8)]?_0x49fa9a[_0x20913b(0x28b8)][0x0]:null;if(!_0x16158c)return _0x5bf86a['voiceContext'][_0x20913b(0x896)]({'fields':_0x20913b(0x1427),'sort':_0x20913b(0x2494),'nolimit':_0x20913b(0x1685),'defaultEntry':0x1})[_0x20913b(0x15e7)][_0x20913b(0x64a)](function(_0x1cad3a){const _0x62d5d0=_0x20913b;_0x2f50ef['contexts']=_0x1cad3a[_0x62d5d0(0x28b8)]||[];});else{if(!_0x16158c[_0x20913b(0x11da)])return _0x5bf86a[_0x20913b(0x1617)][_0x20913b(0x896)]({'sectionId':_0x16158c['id']})[_0x20913b(0x15e7)][_0x20913b(0x64a)](function(_0x3d3a5e){const _0x53710e=_0x20913b,_0x49ad05=_0x28c606()[_0x53710e(0x1de5)](_0x3d3a5e[_0x53710e(0x28b8)],function(_0x3e26ff){const _0x4fb752=_0x53710e;return _0x28c606()[_0x4fb752(0x27bc)](_0x2f50ef['contexts'],{'id':_0x3e26ff['resourceId']});});let _0x1093e1=null;_0x2f50ef[_0x53710e(0x1e5a)]&&(_0x1093e1=_0x28c606()['find'](_0x2f50ef['contexts'],{'name':_0x2f50ef[_0x53710e(0x1e5a)][_0x53710e(0x139)]}));if(_0x1093e1&&!_0x28c606()['some'](_0x49ad05,['id',_0x1093e1['id']])){const _0x573178=_0x28c606()['find'](_0x2f50ef[_0x53710e(0xad1)],{'id':_0x1093e1['id']});_0x573178[_0x53710e(0xd4f)]=![],_0x49ad05[_0x53710e(0x1954)](_0x573178);}_0x2f50ef[_0x53710e(0xad1)]=_0x49ad05;});}})[_0x48bd60(0x20cd)](function(_0x19f293){const _0x26e359=_0x48bd60;_0xd599d1['error']({'title':_0x19f293[_0x26e359(0x10b3)]?_0x26e359(0x575)+_0x19f293[_0x26e359(0x10b3)]+_0x26e359(0x21db)+_0x19f293[_0x26e359(0x2115)]:_0x26e359(0x184b),'msg':_0x19f293[_0x26e359(0x1c52)]?JSON['stringify'](_0x19f293[_0x26e359(0x1c52)]):_0x19f293[_0x26e359(0x2915)]()});});function _0x5284f6(){const _0x3d5074=_0x48bd60;_0x2f50ef[_0x3d5074(0xbae)]=[];const _0x460477=[];_0x2f50ef['goto']['type']&&_0x2f50ef[_0x3d5074(0x1e5a)]['type']['toLowerCase']()===_0x3d5074(0xbce)&&_0x2f50ef['goto'][_0x3d5074(0x4f4)]==='outboundDial'&&(_0x2f50ef[_0x3d5074(0x1e5a)][_0x3d5074(0x267a)]=_0x5a4eef[_0x3d5074(0x242b)]?(_0x2f50ef['goto']['prefix']||'')+_0x3d5074(0x1a75)+_0x5a4eef['cutdigits']+'}':(_0x2f50ef[_0x3d5074(0x1e5a)]['prefix']||'')+_0x3d5074(0x5ad),_0x5a4eef['recordingFormat']!==_0x3d5074(0x2507)?_0x2f50ef[_0x3d5074(0x1e5a)][_0x3d5074(0x59e)]['indexOf'](_0x3d5074(0x13e0))<0x0&&(_0x2f50ef['goto'][_0x3d5074(0x59e)]+=_0x3d5074(0x13e0)):_0x2f50ef[_0x3d5074(0x1e5a)][_0x3d5074(0x59e)]=_0x2f50ef[_0x3d5074(0x1e5a)][_0x3d5074(0x59e)][_0x3d5074(0x1353)]('U(xcally-mixmonitor-context)',''));if(_0x2f50ef['goto'][_0x3d5074(0x4f4)]&&_0x2f50ef[_0x3d5074(0x1e5a)][_0x3d5074(0x4f4)]===_0x3d5074(0x1ad6)){}else switch((_0x2f50ef[_0x3d5074(0x1e5a)][_0x3d5074(0x16e1)]||_0x2f50ef[_0x3d5074(0x1e5a)][_0x3d5074(0x4f4)])['toLowerCase']()){case _0x3d5074(0x1979):_0x2f50ef[_0x3d5074(0x1e5a)][_0x3d5074(0xacb)]=_0x2f50ef[_0x3d5074(0x1e5a)]['name']+'='+_0x2f50ef['goto'][_0x3d5074(0x1096)];break;case'custom':break;default:_0x460477[0x0]=_0x2f50ef[_0x3d5074(0x1e5a)]['context'],_0x460477[0x1]=_0x2f50ef[_0x3d5074(0x1e5a)]['extension'],_0x460477[0x2]=_0x2f50ef[_0x3d5074(0x1e5a)][_0x3d5074(0x1095)],_0x2f50ef[_0x3d5074(0x1e5a)][_0x3d5074(0xacb)]=_0x460477['join'](',');}_0x3b70c7(_0x2f50ef[_0x3d5074(0x1e5a)]);}function _0x3b70c7(_0x1234f4){const _0x56fe80=_0x48bd60;_0x4dd555[_0x56fe80(0x268e)](_0x1234f4);}}const _0x3c6b91=_0xad0597;;_0x457382[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0x7ac),_0x49a1e3(0x17cc),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x457382(_0x1d31a2,_0x54b590,_0x2e7521,_0x25d2c9,_0x11b314,_0xfcb0b2,_0x170b93,_0x18942e){const _0x44d6b5=_0x49a1e3,_0x2e7596=this;_0x2e7596['currentUser']=_0x170b93[_0x44d6b5(0x808)](),_0x2e7596[_0x44d6b5(0xbae)]=[],_0x2e7596[_0x44d6b5(0x2021)]=_0x44d6b5(0x2073)+(_0x25d2c9[_0x44d6b5(0x4f4)]||_0x25d2c9['app'])[_0x44d6b5(0xa3c)](),_0x2e7596[_0x44d6b5(0x19dc)]=angular['copy'](_0x25d2c9),_0x2e7596[_0x44d6b5(0x402)]=_0x18942e,_0x2e7596[_0x44d6b5(0x6c2)]={};if(_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0xacb)])switch(_0x2e7596[_0x44d6b5(0x19dc)]['appType']?_0x2e7596[_0x44d6b5(0x19dc)]['appType']['toLowerCase']():_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0x16e1)][_0x44d6b5(0x2554)]()){case _0x44d6b5(0x1ad6):break;case _0x44d6b5(0x1084):{const _0x5f5ab5=_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0xacb)][_0x44d6b5(0x282c)](',');_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0x2125)]=_0x5f5ab5[0x0],_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0x1cbd)]=_0x5f5ab5[0x1],_0x2e7596['hangup'][_0x44d6b5(0x31b)]=_0x5f5ab5[_0x44d6b5(0x142e)](0x2,_0x5f5ab5[_0x44d6b5(0x1b9e)])[_0x44d6b5(0x9a6)](',');}break;case _0x44d6b5(0x1b1a):{const _0xe07426=_0x2e7596[_0x44d6b5(0x19dc)]['appdata'][_0x44d6b5(0x282c)](',');_0x2e7596['hangup'][_0x44d6b5(0xbfd)]=_0xe07426[0x0],_0x2e7596[_0x44d6b5(0x19dc)]['clientEmail']=_0xe07426[0x1],_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0x1b1b)]=_0xe07426[0x2],_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0x1cbd)]=_0xe07426[0x3],_0x2e7596['hangup'][_0x44d6b5(0x31b)]=_0xe07426[_0x44d6b5(0x142e)](0x4,_0xe07426[_0x44d6b5(0x1b9e)])[_0x44d6b5(0x9a6)](',');}break;case _0x44d6b5(0x290d):{const _0x14f798=_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0xacb)]['split'](',');_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0x1466)]=_0x14f798[0x0],_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0x1b1)]=_0x14f798[0x1],_0x2e7596[_0x44d6b5(0x19dc)]['lexregion']=_0x14f798[0x2],_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0x2797)]=_0x14f798[0x3],_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0x31b)]=_0x14f798['slice'](0x4,_0x14f798[_0x44d6b5(0x1b9e)])[_0x44d6b5(0x9a6)](',');}break;case _0x44d6b5(0x21a9):{const _0x104dc7=_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0xacb)][_0x44d6b5(0x282c)](',');_0x2e7596[_0x44d6b5(0x19dc)]['times']=isNaN(_0x104dc7[0x0])?_0x104dc7[0x0]:parseInt(_0x104dc7[0x0],0xa),_0x2e7596[_0x44d6b5(0x19dc)]['text']=_0x104dc7[_0x44d6b5(0x142e)](0x1,_0x104dc7[_0x44d6b5(0x1b9e)])[_0x44d6b5(0x9a6)](',');}break;case'message':_0x2e7596['hangup'][_0x44d6b5(0x39b)]=_0x2e7596['hangup'][_0x44d6b5(0xacb)];break;case _0x44d6b5(0x1979):_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0x2494)]=_0x2e7596[_0x44d6b5(0x19dc)]['appdata']['split']('=')[0x0],_0x2e7596['hangup'][_0x44d6b5(0x1096)]=_0x2e7596[_0x44d6b5(0x19dc)]['appdata'][_0x44d6b5(0x282c)]('=')[0x1];break;case _0x44d6b5(0x1e67):_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0x1bd9)]=_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0xacb)];break;default:{const _0x3c1041=_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0xacb)][_0x44d6b5(0x282c)](',');_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0xacb)]=_0x28c606()[_0x44d6b5(0x940)](_0x3c1041[0x0])?_0x3c1041[0x0]:isNaN(_0x3c1041[0x0])?_0x3c1041[0x0]:parseInt(_0x3c1041[0x0],0xa);}break;}else{}_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0x2185)]&&_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0x2185)][_0x44d6b5(0x2554)]()===_0x44d6b5(0xbce)&&_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0x4f4)]['toLowerCase']()==='outbounddial'&&(_0x2e7596[_0x44d6b5(0x19dc)][_0x44d6b5(0x2524)]=_0x2e7596['hangup']['phone']?_0x2e7596[_0x44d6b5(0x19dc)]['phone'][_0x44d6b5(0x282c)]('$')[0x0]:undefined,_0x2e7596[_0x44d6b5(0x19dc)]['callerId']=_0x2e7596[_0x44d6b5(0x19dc)]['callerID']?_0x44d6b5(0x2489)+_0x2e7596['hangup'][_0x44d6b5(0x1abe)]:undefined);_0x2e7596[_0x44d6b5(0x94b)]=_0x20d42f,_0x2e7596[_0x44d6b5(0x16cb)]=_0x25bf38;function _0x20d42f(){const _0x462636=_0x44d6b5;_0x2e7596[_0x462636(0xbae)]=[];const _0x6a8aa8=[];_0x2e7596[_0x462636(0x19dc)][_0x462636(0x2185)]&&_0x2e7596[_0x462636(0x19dc)]['type'][_0x462636(0x2554)]()==='outbound'&&_0x2e7596['hangup'][_0x462636(0x4f4)]===_0x462636(0x17b6)&&(_0x2e7596[_0x462636(0x19dc)][_0x462636(0x267a)]=_0x11b314[_0x462636(0x242b)]?(_0x2e7596[_0x462636(0x19dc)][_0x462636(0x2524)]||'')+_0x462636(0x1a75)+_0x11b314[_0x462636(0x242b)]+'}':(_0x2e7596[_0x462636(0x19dc)]['prefix']||'')+'${EXTEN}',_0x11b314[_0x462636(0x1097)]!==_0x462636(0x2507)?_0x2e7596[_0x462636(0x19dc)][_0x462636(0x59e)][_0x462636(0x1b28)](_0x462636(0x13e0))<0x0&&(_0x2e7596[_0x462636(0x19dc)]['options']+='U(xcally-mixmonitor-context)'):_0x2e7596[_0x462636(0x19dc)]['options']=_0x2e7596[_0x462636(0x19dc)][_0x462636(0x59e)][_0x462636(0x1353)](_0x462636(0x13e0),''));if(_0x2e7596[_0x462636(0x19dc)][_0x462636(0x4f4)]&&_0x2e7596['hangup'][_0x462636(0x4f4)]===_0x462636(0x1ad6)){}else switch((_0x2e7596[_0x462636(0x19dc)]['app']||_0x2e7596[_0x462636(0x19dc)][_0x462636(0x4f4)])[_0x462636(0x2554)]()){case _0x462636(0x1979):_0x2e7596[_0x462636(0x19dc)][_0x462636(0xacb)]=_0x2e7596[_0x462636(0x19dc)][_0x462636(0x2494)]+'='+_0x2e7596['hangup']['value'];break;case'custom':break;default:_0x6a8aa8[0x0]=_0x2e7596[_0x462636(0x19dc)][_0x462636(0xacb)],_0x2e7596[_0x462636(0x19dc)]['appdata']=_0x6a8aa8[_0x462636(0x9a6)](',');}_0x25bf38(_0x2e7596[_0x462636(0x19dc)]);}function _0x25bf38(_0x425d22){_0x1d31a2['hide'](_0x425d22);}}const _0x3448c1=_0x457382;;_0xbdf06a[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x7ac),_0x49a1e3(0x17cc),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0xbdf06a(_0x3d9785,_0x21eda3,_0x253c1f,_0x48d90f,_0x228187,_0x3754fb,_0x3c81ff,_0x3b0901){const _0x4f327c=_0x49a1e3,_0x403877=this;_0x403877['currentUser']=_0x3c81ff[_0x4f327c(0x808)](),_0x403877[_0x4f327c(0xbae)]=[],_0x403877[_0x4f327c(0x2021)]=_0x4f327c(0x2073)+(_0x48d90f[_0x4f327c(0x4f4)]||_0x48d90f['app'])[_0x4f327c(0xa3c)](),_0x403877[_0x4f327c(0x161)]=angular['copy'](_0x48d90f),_0x403877[_0x4f327c(0x402)]=_0x3b0901,_0x403877[_0x4f327c(0x6c2)]={};if(_0x403877[_0x4f327c(0x161)][_0x4f327c(0xacb)])switch(_0x403877[_0x4f327c(0x161)][_0x4f327c(0x4f4)]?_0x403877[_0x4f327c(0x161)][_0x4f327c(0x4f4)][_0x4f327c(0x2554)]():_0x403877['internaldial']['app'][_0x4f327c(0x2554)]()){case _0x4f327c(0x1ad6):break;case _0x4f327c(0x1084):{const _0x419d1d=_0x403877[_0x4f327c(0x161)][_0x4f327c(0xacb)]['split'](',');_0x403877[_0x4f327c(0x161)][_0x4f327c(0x2125)]=_0x419d1d[0x0],_0x403877[_0x4f327c(0x161)][_0x4f327c(0x1cbd)]=_0x419d1d[0x1],_0x403877[_0x4f327c(0x161)]['welcomemessage']=_0x419d1d[_0x4f327c(0x142e)](0x2,_0x419d1d[_0x4f327c(0x1b9e)])[_0x4f327c(0x9a6)](',');}break;case _0x4f327c(0x1b1a):{const _0x2e65f4=_0x403877[_0x4f327c(0x161)][_0x4f327c(0xacb)][_0x4f327c(0x282c)](',');_0x403877[_0x4f327c(0x161)][_0x4f327c(0xbfd)]=_0x2e65f4[0x0],_0x403877[_0x4f327c(0x161)][_0x4f327c(0x4b2)]=_0x2e65f4[0x1],_0x403877['internaldial'][_0x4f327c(0x1b1b)]=_0x2e65f4[0x2],_0x403877['internaldial'][_0x4f327c(0x1cbd)]=_0x2e65f4[0x3],_0x403877[_0x4f327c(0x161)][_0x4f327c(0x31b)]=_0x2e65f4[_0x4f327c(0x142e)](0x4,_0x2e65f4[_0x4f327c(0x1b9e)])[_0x4f327c(0x9a6)](',');}break;case _0x4f327c(0x290d):{const _0x1d8892=_0x403877['internaldial']['appdata']['split'](',');_0x403877[_0x4f327c(0x161)][_0x4f327c(0x1466)]=_0x1d8892[0x0],_0x403877[_0x4f327c(0x161)][_0x4f327c(0x1b1)]=_0x1d8892[0x1],_0x403877[_0x4f327c(0x161)][_0x4f327c(0x17a2)]=_0x1d8892[0x2],_0x403877['internaldial'][_0x4f327c(0x2797)]=_0x1d8892[0x3],_0x403877['internaldial'][_0x4f327c(0x31b)]=_0x1d8892[_0x4f327c(0x142e)](0x4,_0x1d8892[_0x4f327c(0x1b9e)])['join'](',');}break;case _0x4f327c(0x21a9):{const _0x55ffdb=_0x403877['internaldial'][_0x4f327c(0xacb)][_0x4f327c(0x282c)](',');_0x403877[_0x4f327c(0x161)]['times']=isNaN(_0x55ffdb[0x0])?_0x55ffdb[0x0]:parseInt(_0x55ffdb[0x0],0xa),_0x403877['internaldial'][_0x4f327c(0x39b)]=_0x55ffdb[_0x4f327c(0x142e)](0x1,_0x55ffdb[_0x4f327c(0x1b9e)])[_0x4f327c(0x9a6)](',');}break;case _0x4f327c(0x18ca):_0x403877['internaldial']['text']=_0x403877[_0x4f327c(0x161)][_0x4f327c(0xacb)];break;case _0x4f327c(0x1979):_0x403877[_0x4f327c(0x161)][_0x4f327c(0x2494)]=_0x403877[_0x4f327c(0x161)][_0x4f327c(0xacb)][_0x4f327c(0x282c)]('=')[0x0],_0x403877[_0x4f327c(0x161)][_0x4f327c(0x1096)]=_0x403877[_0x4f327c(0x161)][_0x4f327c(0xacb)][_0x4f327c(0x282c)]('=')[0x1];break;case _0x4f327c(0x1e67):_0x403877[_0x4f327c(0x161)][_0x4f327c(0x1bd9)]=_0x403877[_0x4f327c(0x161)]['appdata'];break;default:{const _0x42de02=_0x403877[_0x4f327c(0x161)]['appdata']['split'](',');_0x403877[_0x4f327c(0x161)]['user']=_0x28c606()[_0x4f327c(0x940)](_0x42de02[0x0])?_0x42de02[0x0]:isNaN(_0x42de02[0x0])?_0x42de02[0x0]:parseInt(_0x42de02[0x0],0xa),_0x403877[_0x4f327c(0x161)][_0x4f327c(0x16d)]=_0x28c606()[_0x4f327c(0x940)](_0x42de02[0x1])?_0x42de02[0x1]:isNaN(_0x42de02[0x1])?_0x42de02[0x1]:parseInt(_0x42de02[0x1],0xa),_0x403877[_0x4f327c(0x161)]['options']=_0x28c606()[_0x4f327c(0x940)](_0x42de02[0x2])?_0x42de02[0x2]:isNaN(_0x42de02[0x2])?_0x42de02[0x2]:parseInt(_0x42de02[0x2],0xa),_0x403877[_0x4f327c(0x161)][_0x4f327c(0x2761)]=_0x28c606()[_0x4f327c(0x940)](_0x42de02[0x3])?_0x42de02[0x3]:isNaN(_0x42de02[0x3])?_0x42de02[0x3]:parseInt(_0x42de02[0x3],0xa);}break;}else{}_0x403877['internaldial'][_0x4f327c(0x2185)]&&_0x403877[_0x4f327c(0x161)]['type']['toLowerCase']()==='outbound'&&_0x403877[_0x4f327c(0x161)][_0x4f327c(0x4f4)]['toLowerCase']()===_0x4f327c(0x20eb)&&(_0x403877['internaldial'][_0x4f327c(0x2524)]=_0x403877[_0x4f327c(0x161)][_0x4f327c(0x267a)]?_0x403877[_0x4f327c(0x161)]['phone']['split']('$')[0x0]:undefined,_0x403877[_0x4f327c(0x161)][_0x4f327c(0x1a9b)]=_0x403877[_0x4f327c(0x161)][_0x4f327c(0x1abe)]?_0x4f327c(0x2489)+_0x403877['internaldial']['callerID']:undefined);_0x403877['saveInboundRouteApp']=_0xcc41a5,_0x403877[_0x4f327c(0x16cb)]=_0x593dcc;const _0x524a87=[{'id':0xca,'role':'agent'},{'id':0xcb,'role':'telephone'}];let _0x236a71=null;_0x3c81ff['hasRole'](_0x4f327c(0x333))?_0x3754fb['user']['get']({'fields':'id,name,role','sort':_0x4f327c(0x2494),'nolimit':'true'})['$promise']['then'](function(_0x4c8a6a){const _0x290fb6=_0x4f327c;_0x403877['users']=_0x4c8a6a[_0x290fb6(0x28b8)]||[];})['catch'](function(_0x387d41){const _0x134472=_0x4f327c;_0x253c1f[_0x134472(0x1bd0)]({'title':_0x387d41[_0x134472(0x10b3)]?_0x134472(0x575)+_0x387d41[_0x134472(0x10b3)]+_0x134472(0x21db)+_0x387d41[_0x134472(0x2115)]:_0x134472(0x112b),'msg':_0x387d41[_0x134472(0x1c52)]?JSON[_0x134472(0x2317)](_0x387d41[_0x134472(0x1c52)]):_0x387d41[_0x134472(0x2915)]()});}):_0x3754fb[_0x4f327c(0x2e8)][_0x4f327c(0x896)]({'fields':_0x4f327c(0x298b),'sort':_0x4f327c(0x2494),'nolimit':_0x4f327c(0x1685)})[_0x4f327c(0x15e7)]['then'](function(_0x4c4acd){_0x236a71=_0x4c4acd['rows']||[];})[_0x4f327c(0x64a)](function(){const _0x483afe=_0x4f327c,_0x29f80f=[];for(let _0x257431=0x0;_0x257431<_0x524a87[_0x483afe(0x1b9e)];_0x257431++){_0x29f80f[_0x483afe(0x1954)](_0x3754fb[_0x483afe(0x16b2)][_0x483afe(0x896)]({'userProfileId':_0x403877['currentUser'][_0x483afe(0x21ac)],'sectionId':_0x524a87[_0x257431]['id']})['$promise']);}return _0x21eda3[_0x483afe(0x2705)](_0x29f80f);})[_0x4f327c(0x64a)](function(_0x5dfc9f){const _0x325b59=_0x4f327c,_0x56e744=_0x28c606()[_0x325b59(0x1de5)](_0x5dfc9f,function(_0x17af8b){const _0x1f1343=_0x325b59;return _0x17af8b&&_0x17af8b['rows']?_0x17af8b[_0x1f1343(0x28b8)][0x0]:null;}),_0x1f82d7=[];for(let _0x14a5d4=0x0;_0x14a5d4<_0x524a87[_0x325b59(0x1b9e)];_0x14a5d4++){const _0x3341f0=_0x28c606()[_0x325b59(0x27bc)](_0x56e744,[_0x325b59(0xf7b),_0x524a87[_0x14a5d4]['id']]);if(_0x3341f0){if(!_0x3341f0[_0x325b59(0x11da)])_0x1f82d7['push'](_0x3754fb[_0x325b59(0x1617)][_0x325b59(0x896)]({'sectionId':_0x3341f0['id']})[_0x325b59(0x15e7)]);else{const _0x2b7dfe=[];_0x236a71[_0x325b59(0x1397)](function(_0x405ebb){const _0x5799c=_0x325b59;_0x405ebb[_0x5799c(0x161a)]===_0x524a87[_0x14a5d4][_0x5799c(0x161a)]&&_0x2b7dfe['push'](_0x405ebb);}),_0x1f82d7['push']({'rows':_0x2b7dfe,'count':_0x2b7dfe[_0x325b59(0x1b9e)]});}}}return _0x21eda3[_0x325b59(0x2705)](_0x1f82d7);})[_0x4f327c(0x64a)](function(_0x1c634d){const _0x3b7c7a=_0x4f327c,_0x54567e=[];let _0x47ba57=null;_0x403877[_0x3b7c7a(0x161)]&&(_0x47ba57=_0x28c606()[_0x3b7c7a(0x27bc)](_0x236a71,{'name':_0x403877[_0x3b7c7a(0x161)][_0x3b7c7a(0x2e8)]}));for(let _0xe1f4c7=0x0;_0xe1f4c7<_0x1c634d[_0x3b7c7a(0x1b9e)];_0xe1f4c7++){const _0x1f024f=_0x1c634d[_0xe1f4c7][_0x3b7c7a(0x28b8)]||[];_0x1f024f[_0x3b7c7a(0x1397)](function(_0x1ef9c1){const _0x38b68b=_0x3b7c7a;_0x54567e[_0x38b68b(0x1954)](_0x1ef9c1);});}_0x47ba57&&!_0x28c606()[_0x3b7c7a(0x25f8)](_0x54567e,[_0x3b7c7a(0x145),_0x47ba57['id']])&&_0x236a71[_0x3b7c7a(0x1397)](function(_0x231712){const _0x59d9ec=_0x3b7c7a;_0x231712['id']===_0x47ba57['id']&&(_0x231712[_0x59d9ec(0xd4f)]=![],_0x54567e['push'](_0x231712));}),_0x403877[_0x3b7c7a(0xff5)]=_0x54567e;})[_0x4f327c(0x20cd)](function(_0x248d70){const _0x514373=_0x4f327c;_0x253c1f['error']({'title':_0x248d70[_0x514373(0x10b3)]?_0x514373(0x575)+_0x248d70[_0x514373(0x10b3)]+_0x514373(0x21db)+_0x248d70['statusText']:_0x514373(0x19e5),'msg':_0x248d70[_0x514373(0x1c52)]?JSON[_0x514373(0x2317)](_0x248d70[_0x514373(0x1c52)]):_0x248d70[_0x514373(0x2915)]()});});function _0xcc41a5(){const _0x4de8de=_0x4f327c;_0x403877['errors']=[];const _0x1cffe6=[];_0x403877['internaldial']['type']&&_0x403877['internaldial'][_0x4de8de(0x2185)]['toLowerCase']()===_0x4de8de(0xbce)&&_0x403877[_0x4de8de(0x161)]['appType']===_0x4de8de(0x17b6)&&(_0x403877[_0x4de8de(0x161)][_0x4de8de(0x267a)]=_0x228187['cutdigits']?(_0x403877[_0x4de8de(0x161)][_0x4de8de(0x2524)]||'')+_0x4de8de(0x1a75)+_0x228187[_0x4de8de(0x242b)]+'}':(_0x403877['internaldial']['prefix']||'')+'${EXTEN}',_0x228187[_0x4de8de(0x1097)]!=='none'?_0x403877[_0x4de8de(0x161)][_0x4de8de(0x59e)][_0x4de8de(0x1b28)](_0x4de8de(0x13e0))<0x0&&(_0x403877['internaldial'][_0x4de8de(0x59e)]+=_0x4de8de(0x13e0)):_0x403877[_0x4de8de(0x161)][_0x4de8de(0x59e)]=_0x403877[_0x4de8de(0x161)][_0x4de8de(0x59e)][_0x4de8de(0x1353)]('U(xcally-mixmonitor-context)',''));if(_0x403877[_0x4de8de(0x161)]['appType']&&_0x403877['internaldial'][_0x4de8de(0x4f4)]===_0x4de8de(0x1ad6)){}else switch((_0x403877[_0x4de8de(0x161)][_0x4de8de(0x16e1)]||_0x403877[_0x4de8de(0x161)][_0x4de8de(0x4f4)])[_0x4de8de(0x2554)]()){case _0x4de8de(0x1979):_0x403877[_0x4de8de(0x161)]['appdata']=_0x403877[_0x4de8de(0x161)]['name']+'='+_0x403877['internaldial'][_0x4de8de(0x1096)];break;case'custom':break;default:_0x1cffe6[0x0]=_0x403877[_0x4de8de(0x161)][_0x4de8de(0x2e8)],_0x1cffe6[0x1]=_0x403877[_0x4de8de(0x161)][_0x4de8de(0x16d)],_0x1cffe6[0x2]=_0x403877[_0x4de8de(0x161)]['options'],_0x1cffe6[0x3]=_0x403877[_0x4de8de(0x161)][_0x4de8de(0x2761)],_0x403877[_0x4de8de(0x161)][_0x4de8de(0xacb)]=_0x1cffe6[_0x4de8de(0x9a6)](',');}_0x593dcc(_0x403877[_0x4de8de(0x161)]);}function _0x593dcc(_0x370ae9){_0x3d9785['hide'](_0x370ae9);}}const _0x567b80=_0xbdf06a;;_0x2ce382[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x212a),_0x49a1e3(0x611),'IndexFactory',_0x49a1e3(0xcfd),_0x49a1e3(0x15e4),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'crudPermissions'];function _0x2ce382(_0x4adc45,_0x26af19,_0x40fd6c,_0x4611ad,_0x258ae2,_0x4dda3c,_0x7d0382,_0x241f43,_0x39563e,_0x46f7f8){const _0x27719c=_0x49a1e3,_0x2821b8=this;_0x2821b8['currentUser']=_0x39563e[_0x27719c(0x808)](),_0x2821b8[_0x27719c(0xbae)]=[],_0x2821b8[_0x27719c(0x2021)]=_0x27719c(0x20a4),_0x2821b8['interval']=angular[_0x27719c(0x289e)](_0x258ae2),_0x2821b8['intervals']=_0x4dda3c,_0x2821b8[_0x27719c(0xf18)]=![],_0x2821b8[_0x27719c(0x269)]=[_0x27719c(0xa66),_0x27719c(0x1ad6),_0x27719c(0x2764)],_0x2821b8[_0x27719c(0x402)]=_0x46f7f8,_0x2821b8[_0x27719c(0x121a)]=_0x4611ad['getDaysOfWeek'](),_0x2821b8[_0x27719c(0x2391)]=_0x4611ad[_0x27719c(0x17ef)](),_0x2821b8[_0x27719c(0x1c7e)]=_0x4611ad[_0x27719c(0x273)](),_0x2821b8['daysOfMonth']=_0x4611ad[_0x27719c(0xefe)]();if(!_0x2821b8[_0x27719c(0xcfd)])_0x2821b8['interval']={'interval':_0x27719c(0x2145)},_0x2821b8[_0x27719c(0x2185)]='always',_0x2821b8[_0x27719c(0x2021)]=_0x27719c(0xcbc),_0x2821b8['newInterval']=!![];else{if(_0x2821b8[_0x27719c(0xcfd)][_0x27719c(0xcfd)]!=='*,*,*,*'){_0x2821b8[_0x27719c(0x2185)]=_0x27719c(0x1ad6);const _0x1f3cdb=_0x2821b8[_0x27719c(0xcfd)][_0x27719c(0xcfd)][_0x27719c(0x282c)](','),_0x4f17bd=_0x1f3cdb[0x0],_0x3b739e=_0x1f3cdb[0x1],_0x381fbc=_0x1f3cdb[0x2],_0x25ba1a=_0x1f3cdb[0x3];if(_0x4f17bd!=='*'){const _0x4e6166=_0x4f17bd[_0x27719c(0x282c)]('-')[0x0],_0x5ad32e=_0x4f17bd[_0x27719c(0x282c)]('-')[0x1];let _0x48fc2d;_0x48fc2d=new Date(),_0x48fc2d[_0x27719c(0x260)](Number(_0x4e6166[_0x27719c(0x282c)](':')[0x0])),_0x48fc2d['setMinutes'](Number(_0x4e6166[_0x27719c(0x282c)](':')[0x1])),_0x2821b8[_0x27719c(0x268d)]=_0x48fc2d,_0x48fc2d=new Date(),_0x48fc2d[_0x27719c(0x260)](Number(_0x5ad32e['split'](':')[0x0])),_0x48fc2d[_0x27719c(0x1b10)](Number(_0x5ad32e[_0x27719c(0x282c)](':')[0x1])),_0x2821b8[_0x27719c(0x196a)]=_0x48fc2d;}_0x3b739e!=='*'&&(_0x2821b8[_0x27719c(0xa8e)]=_0x3b739e['split']('-')[0x0],_0x2821b8[_0x27719c(0x1297)]=_0x3b739e['split']('-')[0x1]),_0x381fbc!=='*'&&(_0x2821b8[_0x27719c(0x1e3)]=_0x381fbc[_0x27719c(0x282c)]('-')[0x0],_0x2821b8[_0x27719c(0x15c4)]=_0x381fbc['split']('-')[0x1]),_0x25ba1a!=='*'&&(_0x2821b8[_0x27719c(0x205f)]=_0x25ba1a['split']('-')[0x0],_0x2821b8['monthTo']=_0x25ba1a['split']('-')[0x1]);}else _0x2821b8[_0x27719c(0x2185)]=_0x27719c(0xa66);}_0x4adc45[_0x27719c(0x1b48)]['id']&&!_0x2821b8[_0x27719c(0xcfd)][_0x27719c(0x2081)]&&(_0x2821b8[_0x27719c(0xcfd)][_0x27719c(0xb71)]=_0x4adc45[_0x27719c(0x1b48)]['id']);_0x2821b8['interval'][_0x27719c(0xb71)]&&_0x2821b8['interval'][_0x27719c(0x2081)]&&(_0x2821b8['type']=_0x27719c(0x2764));_0x2821b8[_0x27719c(0x23c0)]=_0x51dbd2,_0x2821b8[_0x27719c(0x1f5)]=_0x4cb57a,_0x2821b8['closeDialog']=_0x772ea0;_0x2821b8[_0x27719c(0xcfd)][_0x27719c(0x2081)]&&(_0x39563e[_0x27719c(0x4de)](_0x27719c(0x333))?_0x241f43[_0x27719c(0xcfd)][_0x27719c(0x896)]({'fields':'id,name,interval,IntervalId','IntervalId':_0x27719c(0x8f1),'nolimit':!![]})['$promise'][_0x27719c(0x64a)](function(_0xd85feb){const _0x5935ef=_0x27719c;_0x2821b8[_0x5935ef(0x15e4)]=_0xd85feb['rows']||[];})[_0x27719c(0x20cd)](function(_0x3c80de){const _0x2d535e=_0x27719c;_0x7d0382[_0x2d535e(0x1bd0)]({'title':_0x3c80de[_0x2d535e(0x10b3)]?_0x2d535e(0x575)+_0x3c80de[_0x2d535e(0x10b3)]+_0x2d535e(0x21db)+_0x3c80de['statusText']:_0x2d535e(0xbfb),'msg':_0x3c80de[_0x2d535e(0x1c52)]?JSON[_0x2d535e(0x2317)](_0x3c80de[_0x2d535e(0x1c52)]):_0x3c80de['toString']()});}):_0x241f43[_0x27719c(0xcfd)][_0x27719c(0x896)]({'fields':_0x27719c(0x530),'IntervalId':'null','nolimit':!![]})[_0x27719c(0x15e7)]['then'](function(_0x1a2908){const _0x5815e3=_0x27719c;_0x2821b8[_0x5815e3(0x15e4)]=_0x1a2908['rows']||[];})[_0x27719c(0x64a)](function(){const _0x4e6f71=_0x27719c;return _0x241f43[_0x4e6f71(0x16b2)][_0x4e6f71(0x896)]({'userProfileId':_0x2821b8[_0x4e6f71(0x1d3d)][_0x4e6f71(0x21ac)],'sectionId':0x3ec})[_0x4e6f71(0x15e7)];})['then'](function(_0x1fa94f){const _0xee04a8=_0x27719c,_0x32f587=_0x1fa94f&&_0x1fa94f['rows']?_0x1fa94f[_0xee04a8(0x28b8)][0x0]:null;if(!_0x32f587)_0x2821b8[_0xee04a8(0x15e4)]=[];else{if(!_0x32f587[_0xee04a8(0x11da)])return _0x241f43['userProfileResource'][_0xee04a8(0x896)]({'sectionId':_0x32f587['id']})[_0xee04a8(0x15e7)][_0xee04a8(0x64a)](function(_0x53fcad){const _0x4c64b4=_0xee04a8,_0xa7e64b=_0x53fcad&&_0x53fcad[_0x4c64b4(0x28b8)]?_0x53fcad[_0x4c64b4(0x28b8)]:[],_0x12717=[];let _0x47ac70=null;_0x2821b8[_0x4c64b4(0xcfd)]&&(_0x47ac70=_0x28c606()['find'](_0x2821b8[_0x4c64b4(0x15e4)],{'name':_0x2821b8[_0x4c64b4(0xcfd)][_0x4c64b4(0xb71)]})),_0x47ac70&&!_0x28c606()[_0x4c64b4(0x25f8)](_0xa7e64b,['resourceId',_0x47ac70['id']])&&_0x2821b8[_0x4c64b4(0x15e4)][_0x4c64b4(0x1397)](function(_0x2c55ca){const _0x48715b=_0x4c64b4;_0x2c55ca['id']===_0x47ac70['id']&&(_0x2c55ca[_0x48715b(0xd4f)]=![],_0x12717[_0x48715b(0x1954)](_0x2c55ca));}),_0x2821b8[_0x4c64b4(0x15e4)]=_0x12717;});}})[_0x27719c(0x20cd)](function(_0x4c2426){const _0x57dae2=_0x27719c;_0x7d0382[_0x57dae2(0x1bd0)]({'title':_0x4c2426[_0x57dae2(0x10b3)]?'API:'+_0x4c2426[_0x57dae2(0x10b3)]+_0x57dae2(0x21db)+_0x4c2426['statusText']:'SYSTEM:GET_INTERVALS','msg':_0x4c2426[_0x57dae2(0x1c52)]?JSON[_0x57dae2(0x2317)](_0x4c2426[_0x57dae2(0x1c52)]):_0x4c2426['toString']()});}));function _0x461f8b(){const _0x238a4b=_0x27719c;switch(_0x2821b8[_0x238a4b(0x2185)]){case _0x238a4b(0xa66):case'list':return _0x238a4b(0x2145);case _0x238a4b(0x1ad6):{const _0x2fde92=[];if(_0x2821b8['timeRangeFrom']!=='*'&&_0x2821b8[_0x238a4b(0x268d)]&&_0x2821b8[_0x238a4b(0x196a)]){const _0x3e67c4=(_0x2821b8[_0x238a4b(0x268d)][_0x238a4b(0x48a)]()<0xa?'0':'')+_0x2821b8[_0x238a4b(0x268d)][_0x238a4b(0x48a)]()+':'+((_0x2821b8[_0x238a4b(0x268d)]['getMinutes']()<0xa?'0':'')+_0x2821b8[_0x238a4b(0x268d)]['getMinutes']()),_0x5b4498=(_0x2821b8[_0x238a4b(0x196a)][_0x238a4b(0x48a)]()<0xa?'0':'')+_0x2821b8[_0x238a4b(0x196a)]['getHours']()+':'+((_0x2821b8['timeRangeTo'][_0x238a4b(0x1894)]()<0xa?'0':'')+_0x2821b8[_0x238a4b(0x196a)][_0x238a4b(0x1894)]());_0x2fde92[_0x238a4b(0x1954)](_0x3e67c4+'-'+_0x5b4498);}else _0x2fde92[_0x238a4b(0x1954)]('*');return _0x2821b8['dayOfWeekFrom']?_0x2821b8[_0x238a4b(0x1297)]?_0x2fde92['push'](_0x2821b8[_0x238a4b(0xa8e)]+'-'+_0x2821b8[_0x238a4b(0x1297)]):_0x2fde92[_0x238a4b(0x1954)](_0x2821b8[_0x238a4b(0xa8e)]):_0x2fde92[_0x238a4b(0x1954)]('*'),_0x2821b8[_0x238a4b(0x1e3)]?_0x2821b8[_0x238a4b(0x15c4)]?_0x2fde92[_0x238a4b(0x1954)](_0x2821b8[_0x238a4b(0x1e3)]+'-'+_0x2821b8[_0x238a4b(0x15c4)]):_0x2fde92['push'](_0x2821b8[_0x238a4b(0x1e3)]):_0x2fde92[_0x238a4b(0x1954)]('*'),_0x2821b8[_0x238a4b(0x205f)]?_0x2821b8[_0x238a4b(0x1ea4)]?_0x2fde92[_0x238a4b(0x1954)](_0x2821b8[_0x238a4b(0x205f)]+'-'+_0x2821b8[_0x238a4b(0x1ea4)]):_0x2fde92[_0x238a4b(0x1954)](_0x2821b8[_0x238a4b(0x205f)]):_0x2fde92[_0x238a4b(0x1954)]('*'),_0x2fde92[_0x238a4b(0x9a6)]();}}}function _0x51dbd2(){const _0x2b9768=_0x27719c;_0x2821b8[_0x2b9768(0xbae)]=[],_0x2821b8[_0x2b9768(0xcfd)][_0x2b9768(0xcfd)]=_0x461f8b(),_0x241f43['interval'][_0x2b9768(0x2479)](_0x2821b8[_0x2b9768(0xcfd)])['$promise'][_0x2b9768(0x64a)](function(_0x29aeae){const _0x7c0a99=_0x2b9768;_0x2821b8['intervals'][_0x7c0a99(0x1954)](_0x29aeae),_0x7d0382[_0x7c0a99(0x1339)]({'title':_0x7c0a99(0x2864),'msg':_0x2821b8[_0x7c0a99(0xcfd)][_0x7c0a99(0x2494)]?_0x2821b8['interval'][_0x7c0a99(0x2494)]+_0x7c0a99(0x258d):''}),_0x772ea0();})['catch'](function(_0x2a7963){const _0x34995d=_0x2b9768;console[_0x34995d(0x1bd0)](_0x2a7963),_0x2821b8['errors']=_0x2a7963['data'][_0x34995d(0xbae)]||[{'message':_0x2a7963['toString'](),'type':'api.interval.save'}];});}function _0x4cb57a(){const _0x4173ed=_0x27719c;_0x2821b8['errors']=[],_0x2821b8['interval']['interval']=_0x461f8b(),_0x2821b8[_0x4173ed(0xcfd)][_0x4173ed(0x2081)]?(_0x2821b8[_0x4173ed(0x2185)]!=='list'&&(_0x2821b8[_0x4173ed(0xcfd)][_0x4173ed(0xb71)]=null),_0x772ea0(_0x2821b8[_0x4173ed(0xcfd)])):_0x241f43['interval'][_0x4173ed(0x2603)]({'id':_0x2821b8[_0x4173ed(0xcfd)]['id']},_0x2821b8[_0x4173ed(0xcfd)])[_0x4173ed(0x15e7)][_0x4173ed(0x64a)](function(_0x1a9867){const _0x393a5d=_0x4173ed,_0x3e1ce8=_0x28c606()[_0x393a5d(0x27bc)](_0x2821b8[_0x393a5d(0x15e4)],{'id':_0x1a9867['id']});_0x3e1ce8&&_0x28c606()[_0x393a5d(0x14fe)](_0x3e1ce8,_0x1a9867),_0x7d0382[_0x393a5d(0x1339)]({'title':_0x393a5d(0x2896),'msg':'Interval\x20has\x20been\x20saved!'}),_0x772ea0();})[_0x4173ed(0x20cd)](function(_0x33e8bd){const _0x54e357=_0x4173ed;console[_0x54e357(0x1bd0)](_0x33e8bd),_0x2821b8['errors']=_0x33e8bd[_0x54e357(0x1c52)][_0x54e357(0xbae)]||[{'message':_0x33e8bd['toString'](),'type':_0x54e357(0x710)}];});}function _0x772ea0(_0x490ed3){const _0x24e1b1=_0x27719c;_0x26af19[_0x24e1b1(0x268e)](_0x490ed3);}}const _0x3b7fdf=_0x2ce382;;_0x3792ca[_0x49a1e3(0x1e73)]=['$mdDialog','$q',_0x49a1e3(0x680),_0x49a1e3(0x7ac),_0x49a1e3(0x17cc),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x402)];function _0x3792ca(_0x3ec5d6,_0x274f0a,_0x2e1351,_0x66e70f,_0x43a089,_0x2cb5c0,_0x336064,_0xa24d1f){const _0x31dd4c=_0x49a1e3,_0x38ea51=this;_0x38ea51[_0x31dd4c(0x1d3d)]=_0x336064[_0x31dd4c(0x808)](),_0x38ea51[_0x31dd4c(0xbae)]=[],_0x38ea51['title']=_0x31dd4c(0x2073)+(_0x66e70f[_0x31dd4c(0x4f4)]||_0x66e70f[_0x31dd4c(0x16e1)])[_0x31dd4c(0xa3c)](),_0x38ea51[_0x31dd4c(0x1001)]=angular[_0x31dd4c(0x289e)](_0x66e70f),_0x38ea51[_0x31dd4c(0x402)]=_0xa24d1f,_0x38ea51[_0x31dd4c(0x6c2)]={};if(_0x38ea51[_0x31dd4c(0x1001)]['appdata'])switch(_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0x4f4)]?_0x38ea51[_0x31dd4c(0x1001)]['appType'][_0x31dd4c(0x2554)]():_0x38ea51['playback'][_0x31dd4c(0x16e1)][_0x31dd4c(0x2554)]()){case _0x31dd4c(0x1ad6):break;case'dialogflow':{const _0x25fa1d=_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0xacb)][_0x31dd4c(0x282c)](',');_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0x2125)]=_0x25fa1d[0x0],_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0x1cbd)]=_0x25fa1d[0x1],_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0x31b)]=_0x25fa1d[_0x31dd4c(0x142e)](0x2,_0x25fa1d[_0x31dd4c(0x1b9e)])[_0x31dd4c(0x9a6)](',');}break;case _0x31dd4c(0x1b1a):{const _0x23ab15=_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0xacb)][_0x31dd4c(0x282c)](',');_0x38ea51['playback'][_0x31dd4c(0xbfd)]=_0x23ab15[0x0],_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0x4b2)]=_0x23ab15[0x1],_0x38ea51['playback'][_0x31dd4c(0x1b1b)]=_0x23ab15[0x2],_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0x1cbd)]=_0x23ab15[0x3],_0x38ea51['playback'][_0x31dd4c(0x31b)]=_0x23ab15[_0x31dd4c(0x142e)](0x4,_0x23ab15['length'])['join'](',');}break;case'amazonlex':{const _0x1c8351=_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0xacb)][_0x31dd4c(0x282c)](',');_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0x1466)]=_0x1c8351[0x0],_0x38ea51['playback'][_0x31dd4c(0x1b1)]=_0x1c8351[0x1],_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0x17a2)]=_0x1c8351[0x2],_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0x2797)]=_0x1c8351[0x3],_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0x31b)]=_0x1c8351[_0x31dd4c(0x142e)](0x4,_0x1c8351[_0x31dd4c(0x1b9e)])[_0x31dd4c(0x9a6)](',');}break;case'autoreply':{const _0x544e80=_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0xacb)]['split'](',');_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0x95f)]=isNaN(_0x544e80[0x0])?_0x544e80[0x0]:parseInt(_0x544e80[0x0],0xa),_0x38ea51['playback'][_0x31dd4c(0x39b)]=_0x544e80[_0x31dd4c(0x142e)](0x1,_0x544e80[_0x31dd4c(0x1b9e)])[_0x31dd4c(0x9a6)](',');}break;case _0x31dd4c(0x18ca):_0x38ea51[_0x31dd4c(0x1001)]['text']=_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0xacb)];break;case _0x31dd4c(0x1979):_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0x2494)]=_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0xacb)][_0x31dd4c(0x282c)]('=')[0x0],_0x38ea51['playback'][_0x31dd4c(0x1096)]=_0x38ea51[_0x31dd4c(0x1001)]['appdata']['split']('=')[0x1];break;case _0x31dd4c(0x1e67):_0x38ea51[_0x31dd4c(0x1001)]['project']=_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0xacb)];break;default:{const _0x2c4e91=_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0xacb)]['split'](',');_0x38ea51['playback'][_0x31dd4c(0xacb)]=_0x28c606()[_0x31dd4c(0x940)](_0x2c4e91[0x0])?_0x2c4e91[0x0]:isNaN(_0x2c4e91[0x0])?_0x2c4e91[0x0]:parseInt(_0x2c4e91[0x0],0xa),_0x38ea51[_0x31dd4c(0x1001)]['options']=_0x28c606()['isEmpty'](_0x2c4e91[0x1])?_0x2c4e91[0x1]:isNaN(_0x2c4e91[0x1])?_0x2c4e91[0x1]:parseInt(_0x2c4e91[0x1],0xa);}break;}else{}_0x38ea51['playback'][_0x31dd4c(0x2185)]&&_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0x2185)]['toLowerCase']()===_0x31dd4c(0xbce)&&_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0x4f4)][_0x31dd4c(0x2554)]()==='outbounddial'&&(_0x38ea51['playback'][_0x31dd4c(0x2524)]=_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0x267a)]?_0x38ea51['playback']['phone']['split']('$')[0x0]:undefined,_0x38ea51['playback'][_0x31dd4c(0x1a9b)]=_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0x1abe)]?'CALLERID(all)='+_0x38ea51[_0x31dd4c(0x1001)][_0x31dd4c(0x1abe)]:undefined);_0x38ea51[_0x31dd4c(0x94b)]=_0x8af9ca,_0x38ea51[_0x31dd4c(0x16cb)]=_0x534e3e,_0x336064[_0x31dd4c(0x4de)](_0x31dd4c(0x333))?_0x2cb5c0[_0x31dd4c(0x282b)][_0x31dd4c(0x896)]({'fields':'id,name,save_name','sort':_0x31dd4c(0x2494),'nolimit':'true'})['$promise'][_0x31dd4c(0x64a)](function(_0x311183){const _0x13e174=_0x31dd4c;_0x38ea51[_0x13e174(0x16df)]=_0x311183[_0x13e174(0x28b8)]||[];})[_0x31dd4c(0x20cd)](function(_0x17cb6d){const _0x5472a3=_0x31dd4c;_0x2e1351['error']({'title':_0x17cb6d[_0x5472a3(0x10b3)]?_0x5472a3(0x575)+_0x17cb6d[_0x5472a3(0x10b3)]+_0x5472a3(0x21db)+_0x17cb6d[_0x5472a3(0x2115)]:_0x5472a3(0x63b),'msg':_0x17cb6d[_0x5472a3(0x1c52)]?JSON[_0x5472a3(0x2317)](_0x17cb6d[_0x5472a3(0x1c52)]):_0x17cb6d[_0x5472a3(0x2915)]()});}):_0x2cb5c0[_0x31dd4c(0x282b)][_0x31dd4c(0x896)]({'fields':_0x31dd4c(0x2246),'sort':_0x31dd4c(0x2494),'nolimit':'true'})['$promise'][_0x31dd4c(0x64a)](function(_0x1ab859){const _0xd369da=_0x31dd4c;_0x38ea51['sounds']=_0x1ab859[_0xd369da(0x28b8)]||[];})[_0x31dd4c(0x64a)](function(){const _0x4bb40d=_0x31dd4c;return _0x2cb5c0[_0x4bb40d(0x16b2)]['get']({'userProfileId':_0x38ea51[_0x4bb40d(0x1d3d)][_0x4bb40d(0x21ac)],'sectionId':0x3ef})[_0x4bb40d(0x15e7)];})['then'](function(_0x4e5938){const _0x4b6e56=_0x31dd4c,_0x4b73d7=_0x4e5938&&_0x4e5938[_0x4b6e56(0x28b8)]?_0x4e5938[_0x4b6e56(0x28b8)][0x0]:null;if(!_0x4b73d7){const _0x35aeca=[];let _0x302b16=null;_0x38ea51[_0x4b6e56(0x1001)]&&(_0x302b16=_0x28c606()[_0x4b6e56(0x27bc)](_0x38ea51[_0x4b6e56(0x16df)],{'save_name':_0x38ea51[_0x4b6e56(0x1001)][_0x4b6e56(0x282b)]}));for(let _0x41d9b7=0x0;_0x41d9b7<_0x38ea51['sounds'][_0x4b6e56(0x1b9e)];_0x41d9b7++){_0x302b16&&_0x38ea51[_0x4b6e56(0x16df)][_0x41d9b7]['id']===_0x302b16['id']&&(_0x38ea51[_0x4b6e56(0x16df)][_0x41d9b7][_0x4b6e56(0xd4f)]=![],_0x35aeca[_0x4b6e56(0x1954)](_0x38ea51['sounds'][_0x41d9b7]));}_0x38ea51['sounds']=_0x35aeca;}else{if(!_0x4b73d7[_0x4b6e56(0x11da)])return _0x2cb5c0[_0x4b6e56(0x1617)][_0x4b6e56(0x896)]({'sectionId':_0x4b73d7['id']})[_0x4b6e56(0x15e7)][_0x4b6e56(0x64a)](function(_0x45063e){const _0x2c64c9=_0x4b6e56,_0x357a40=_0x28c606()[_0x2c64c9(0x1de5)](_0x45063e[_0x2c64c9(0x28b8)],function(_0x137d2b){const _0x27372c=_0x2c64c9;return _0x28c606()['find'](_0x38ea51[_0x27372c(0x16df)],{'id':_0x137d2b[_0x27372c(0x145)]});});let _0x4d9f31=null;_0x38ea51['playback']&&(_0x4d9f31=_0x28c606()[_0x2c64c9(0x27bc)](_0x38ea51[_0x2c64c9(0x16df)],{'save_name':_0x38ea51[_0x2c64c9(0x1001)]['sound']}));if(_0x4d9f31&&!_0x28c606()['some'](_0x357a40,['id',_0x4d9f31['id']])){const _0x2fae93=_0x28c606()['find'](_0x38ea51[_0x2c64c9(0x16df)],{'id':_0x4d9f31['id']});_0x2fae93[_0x2c64c9(0xd4f)]=![],_0x357a40[_0x2c64c9(0x1954)](_0x2fae93);}_0x38ea51[_0x2c64c9(0x16df)]=_0x357a40;});}})[_0x31dd4c(0x20cd)](function(_0x4c6d33){const _0x59c48d=_0x31dd4c;_0x2e1351[_0x59c48d(0x1bd0)]({'title':_0x4c6d33['status']?_0x59c48d(0x575)+_0x4c6d33[_0x59c48d(0x10b3)]+_0x59c48d(0x21db)+_0x4c6d33[_0x59c48d(0x2115)]:_0x59c48d(0x1655),'msg':_0x4c6d33[_0x59c48d(0x1c52)]?JSON[_0x59c48d(0x2317)](_0x4c6d33[_0x59c48d(0x1c52)]):_0x4c6d33[_0x59c48d(0x2915)]()});});function _0x8af9ca(){const _0x468a96=_0x31dd4c;_0x38ea51[_0x468a96(0xbae)]=[];const _0x29f009=[];_0x38ea51['playback']['type']&&_0x38ea51[_0x468a96(0x1001)][_0x468a96(0x2185)]['toLowerCase']()===_0x468a96(0xbce)&&_0x38ea51[_0x468a96(0x1001)][_0x468a96(0x4f4)]===_0x468a96(0x17b6)&&(_0x38ea51[_0x468a96(0x1001)][_0x468a96(0x267a)]=_0x43a089[_0x468a96(0x242b)]?(_0x38ea51[_0x468a96(0x1001)][_0x468a96(0x2524)]||'')+_0x468a96(0x1a75)+_0x43a089[_0x468a96(0x242b)]+'}':(_0x38ea51[_0x468a96(0x1001)][_0x468a96(0x2524)]||'')+_0x468a96(0x5ad),_0x43a089[_0x468a96(0x1097)]!==_0x468a96(0x2507)?_0x38ea51[_0x468a96(0x1001)]['options'][_0x468a96(0x1b28)](_0x468a96(0x13e0))<0x0&&(_0x38ea51[_0x468a96(0x1001)]['options']+=_0x468a96(0x13e0)):_0x38ea51[_0x468a96(0x1001)][_0x468a96(0x59e)]=_0x38ea51[_0x468a96(0x1001)][_0x468a96(0x59e)][_0x468a96(0x1353)](_0x468a96(0x13e0),''));if(_0x38ea51['playback']['appType']&&_0x38ea51[_0x468a96(0x1001)][_0x468a96(0x4f4)]===_0x468a96(0x1ad6)){}else switch((_0x38ea51[_0x468a96(0x1001)][_0x468a96(0x16e1)]||_0x38ea51['playback']['appType'])[_0x468a96(0x2554)]()){case _0x468a96(0x1979):_0x38ea51[_0x468a96(0x1001)]['appdata']=_0x38ea51[_0x468a96(0x1001)][_0x468a96(0x2494)]+'='+_0x38ea51[_0x468a96(0x1001)][_0x468a96(0x1096)];break;case _0x468a96(0x1ad6):break;default:_0x29f009[0x0]=_0x38ea51[_0x468a96(0x1001)][_0x468a96(0xacb)],_0x29f009[0x1]=_0x38ea51[_0x468a96(0x1001)][_0x468a96(0x59e)],_0x38ea51[_0x468a96(0x1001)][_0x468a96(0xacb)]=_0x29f009[_0x468a96(0x9a6)](',');}_0x534e3e(_0x38ea51['playback']);}function _0x534e3e(_0x45fa01){const _0x3bcf14=_0x31dd4c;_0x3ec5d6[_0x3bcf14(0x268e)](_0x45fa01);}}const _0x5436a8=_0x3792ca;;_0x4baa35[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0x7ac),_0x49a1e3(0x17cc),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x4baa35(_0x48ff3d,_0x1c66e1,_0x452cde,_0x418fdf,_0xa398fe,_0x21d974,_0x1298aa,_0x3551ac){const _0x462ebc=_0x49a1e3,_0x4c04c0=this;_0x4c04c0[_0x462ebc(0x1d3d)]=_0x1298aa[_0x462ebc(0x808)](),_0x4c04c0[_0x462ebc(0xbae)]=[],_0x4c04c0[_0x462ebc(0x2021)]=_0x462ebc(0x2073)+(_0x418fdf[_0x462ebc(0x4f4)]||_0x418fdf[_0x462ebc(0x16e1)])[_0x462ebc(0xa3c)](),_0x4c04c0[_0x462ebc(0x1e4e)]=angular[_0x462ebc(0x289e)](_0x418fdf),_0x4c04c0[_0x462ebc(0x402)]=_0x3551ac,_0x4c04c0['hasModulePermissions']={};if(_0x4c04c0['queue'][_0x462ebc(0xacb)])switch(_0x4c04c0['queue'][_0x462ebc(0x4f4)]?_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x4f4)][_0x462ebc(0x2554)]():_0x4c04c0[_0x462ebc(0x1e4e)]['app'][_0x462ebc(0x2554)]()){case _0x462ebc(0x1ad6):break;case _0x462ebc(0x1084):{const _0x5afc01=_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0xacb)][_0x462ebc(0x282c)](',');_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x2125)]=_0x5afc01[0x0],_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x1cbd)]=_0x5afc01[0x1],_0x4c04c0['queue'][_0x462ebc(0x31b)]=_0x5afc01[_0x462ebc(0x142e)](0x2,_0x5afc01[_0x462ebc(0x1b9e)])[_0x462ebc(0x9a6)](',');}break;case _0x462ebc(0x1b1a):{const _0x3102c0=_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0xacb)][_0x462ebc(0x282c)](',');_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0xbfd)]=_0x3102c0[0x0],_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x4b2)]=_0x3102c0[0x1],_0x4c04c0['queue'][_0x462ebc(0x1b1b)]=_0x3102c0[0x2],_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x1cbd)]=_0x3102c0[0x3],_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x31b)]=_0x3102c0[_0x462ebc(0x142e)](0x4,_0x3102c0['length'])[_0x462ebc(0x9a6)](',');}break;case'amazonlex':{const _0x102006=_0x4c04c0['queue'][_0x462ebc(0xacb)]['split'](',');_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x1466)]=_0x102006[0x0],_0x4c04c0['queue'][_0x462ebc(0x1b1)]=_0x102006[0x1],_0x4c04c0['queue'][_0x462ebc(0x17a2)]=_0x102006[0x2],_0x4c04c0[_0x462ebc(0x1e4e)]['botname']=_0x102006[0x3],_0x4c04c0[_0x462ebc(0x1e4e)]['welcomemessage']=_0x102006[_0x462ebc(0x142e)](0x4,_0x102006[_0x462ebc(0x1b9e)])[_0x462ebc(0x9a6)](',');}break;case _0x462ebc(0x21a9):{const _0x48bfb8=_0x4c04c0[_0x462ebc(0x1e4e)]['appdata'][_0x462ebc(0x282c)](',');_0x4c04c0[_0x462ebc(0x1e4e)]['times']=isNaN(_0x48bfb8[0x0])?_0x48bfb8[0x0]:parseInt(_0x48bfb8[0x0],0xa),_0x4c04c0['queue'][_0x462ebc(0x39b)]=_0x48bfb8[_0x462ebc(0x142e)](0x1,_0x48bfb8[_0x462ebc(0x1b9e)])[_0x462ebc(0x9a6)](',');}break;case _0x462ebc(0x18ca):_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x39b)]=_0x4c04c0['queue'][_0x462ebc(0xacb)];break;case _0x462ebc(0x1979):_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x2494)]=_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0xacb)][_0x462ebc(0x282c)]('=')[0x0],_0x4c04c0[_0x462ebc(0x1e4e)]['value']=_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0xacb)][_0x462ebc(0x282c)]('=')[0x1];break;case _0x462ebc(0x1e67):_0x4c04c0[_0x462ebc(0x1e4e)]['project']=_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0xacb)];break;default:{const _0x489d1d=_0x4c04c0[_0x462ebc(0x1e4e)]['appdata']['split'](',');_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x1e4e)]=_0x28c606()[_0x462ebc(0x940)](_0x489d1d[0x0])?_0x489d1d[0x0]:isNaN(_0x489d1d[0x0])?_0x489d1d[0x0]:parseInt(_0x489d1d[0x0],0xa),_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x59e)]=_0x28c606()[_0x462ebc(0x940)](_0x489d1d[0x1])?_0x489d1d[0x1]:isNaN(_0x489d1d[0x1])?_0x489d1d[0x1]:parseInt(_0x489d1d[0x1],0xa),_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0xea4)]=_0x28c606()[_0x462ebc(0x940)](_0x489d1d[0x2])?_0x489d1d[0x2]:isNaN(_0x489d1d[0x2])?_0x489d1d[0x2]:parseInt(_0x489d1d[0x2],0xa),_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x282b)]=_0x28c606()['isEmpty'](_0x489d1d[0x3])?_0x489d1d[0x3]:isNaN(_0x489d1d[0x3])?_0x489d1d[0x3]:parseInt(_0x489d1d[0x3],0xa),_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x16d)]=_0x28c606()['isEmpty'](_0x489d1d[0x4])?_0x489d1d[0x4]:isNaN(_0x489d1d[0x4])?_0x489d1d[0x4]:parseInt(_0x489d1d[0x4],0xa),_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x1e67)]=_0x28c606()[_0x462ebc(0x940)](_0x489d1d[0x5])?_0x489d1d[0x5]:isNaN(_0x489d1d[0x5])?_0x489d1d[0x5]:parseInt(_0x489d1d[0x5],0xa),_0x4c04c0['queue']['macro']=_0x28c606()[_0x462ebc(0x940)](_0x489d1d[0x6])?_0x489d1d[0x6]:isNaN(_0x489d1d[0x6])?_0x489d1d[0x6]:parseInt(_0x489d1d[0x6],0xa),_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x17e)]=_0x28c606()[_0x462ebc(0x940)](_0x489d1d[0x7])?_0x489d1d[0x7]:isNaN(_0x489d1d[0x7])?_0x489d1d[0x7]:parseInt(_0x489d1d[0x7],0xa),_0x4c04c0['queue']['rule']=_0x28c606()[_0x462ebc(0x940)](_0x489d1d[0x8])?_0x489d1d[0x8]:isNaN(_0x489d1d[0x8])?_0x489d1d[0x8]:parseInt(_0x489d1d[0x8],0xa),_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x14f7)]=_0x28c606()[_0x462ebc(0x940)](_0x489d1d[0x9])?_0x489d1d[0x9]:isNaN(_0x489d1d[0x9])?_0x489d1d[0x9]:parseInt(_0x489d1d[0x9],0xa);}break;}else{}_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x2185)]&&_0x4c04c0[_0x462ebc(0x1e4e)]['type'][_0x462ebc(0x2554)]()===_0x462ebc(0xbce)&&_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x4f4)][_0x462ebc(0x2554)]()==='outbounddial'&&(_0x4c04c0['queue'][_0x462ebc(0x2524)]=_0x4c04c0['queue'][_0x462ebc(0x267a)]?_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x267a)][_0x462ebc(0x282c)]('$')[0x0]:undefined,_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x1a9b)]=_0x4c04c0['queue'][_0x462ebc(0x1abe)]?_0x462ebc(0x2489)+_0x4c04c0[_0x462ebc(0x1e4e)][_0x462ebc(0x1abe)]:undefined);_0x4c04c0['saveInboundRouteApp']=_0x3d6e92,_0x4c04c0[_0x462ebc(0x16cb)]=_0x5762cd,_0x1298aa['hasRole'](_0x462ebc(0x333))?_0x21d974[_0x462ebc(0x282b)][_0x462ebc(0x896)]({'fields':_0x462ebc(0x2246),'sort':'name','nolimit':_0x462ebc(0x1685)})[_0x462ebc(0x15e7)][_0x462ebc(0x64a)](function(_0x2f246f){const _0x34c92c=_0x462ebc;_0x4c04c0[_0x34c92c(0x16df)]=_0x2f246f[_0x34c92c(0x28b8)]||[];})['catch'](function(_0x2dcd21){const _0x3ef63d=_0x462ebc;_0x452cde[_0x3ef63d(0x1bd0)]({'title':_0x2dcd21['status']?'API:'+_0x2dcd21[_0x3ef63d(0x10b3)]+_0x3ef63d(0x21db)+_0x2dcd21['statusText']:_0x3ef63d(0x63b),'msg':_0x2dcd21[_0x3ef63d(0x1c52)]?JSON[_0x3ef63d(0x2317)](_0x2dcd21[_0x3ef63d(0x1c52)]):_0x2dcd21['toString']()});}):_0x21d974[_0x462ebc(0x282b)]['get']({'fields':_0x462ebc(0x2246),'sort':_0x462ebc(0x2494),'nolimit':_0x462ebc(0x1685)})[_0x462ebc(0x15e7)]['then'](function(_0xcefe6b){const _0xd1c5a1=_0x462ebc;_0x4c04c0[_0xd1c5a1(0x16df)]=_0xcefe6b[_0xd1c5a1(0x28b8)]||[];})[_0x462ebc(0x64a)](function(){const _0x1ec652=_0x462ebc;return _0x21d974[_0x1ec652(0x16b2)]['get']({'userProfileId':_0x4c04c0[_0x1ec652(0x1d3d)][_0x1ec652(0x21ac)],'sectionId':0x3ef})['$promise'];})[_0x462ebc(0x64a)](function(_0x4af8cd){const _0x369782=_0x462ebc,_0x4e7a29=_0x4af8cd&&_0x4af8cd[_0x369782(0x28b8)]?_0x4af8cd[_0x369782(0x28b8)][0x0]:null;if(!_0x4e7a29){const _0xe0ca03=[];let _0x195233=null;_0x4c04c0[_0x369782(0x1e4e)]&&(_0x195233=_0x28c606()[_0x369782(0x27bc)](_0x4c04c0['sounds'],{'save_name':_0x4c04c0[_0x369782(0x1e4e)][_0x369782(0x282b)]}));for(let _0x2d8dd3=0x0;_0x2d8dd3<_0x4c04c0['sounds']['length'];_0x2d8dd3++){_0x195233&&_0x4c04c0[_0x369782(0x16df)][_0x2d8dd3]['id']===_0x195233['id']&&(_0x4c04c0[_0x369782(0x16df)][_0x2d8dd3][_0x369782(0xd4f)]=![],_0xe0ca03[_0x369782(0x1954)](_0x4c04c0[_0x369782(0x16df)][_0x2d8dd3]));}_0x4c04c0[_0x369782(0x16df)]=_0xe0ca03;}else{if(!_0x4e7a29[_0x369782(0x11da)])return _0x21d974['userProfileResource'][_0x369782(0x896)]({'sectionId':_0x4e7a29['id']})['$promise'][_0x369782(0x64a)](function(_0x535d0f){const _0x23f646=_0x369782,_0x307b36=_0x28c606()['map'](_0x535d0f[_0x23f646(0x28b8)],function(_0x34db82){const _0x46e289=_0x23f646;return _0x28c606()['find'](_0x4c04c0[_0x46e289(0x16df)],{'id':_0x34db82['resourceId']});});let _0xa0faf0=null;_0x4c04c0['queue']&&(_0xa0faf0=_0x28c606()[_0x23f646(0x27bc)](_0x4c04c0[_0x23f646(0x16df)],{'save_name':_0x4c04c0[_0x23f646(0x1e4e)][_0x23f646(0x282b)]}));if(_0xa0faf0&&!_0x28c606()['some'](_0x307b36,['id',_0xa0faf0['id']])){const _0x2ec4d7=_0x28c606()[_0x23f646(0x27bc)](_0x4c04c0[_0x23f646(0x16df)],{'id':_0xa0faf0['id']});_0x2ec4d7[_0x23f646(0xd4f)]=![],_0x307b36[_0x23f646(0x1954)](_0x2ec4d7);}_0x4c04c0[_0x23f646(0x16df)]=_0x307b36;});}})[_0x462ebc(0x20cd)](function(_0x2aaf8c){const _0x525a77=_0x462ebc;_0x452cde[_0x525a77(0x1bd0)]({'title':_0x2aaf8c[_0x525a77(0x10b3)]?_0x525a77(0x575)+_0x2aaf8c['status']+_0x525a77(0x21db)+_0x2aaf8c[_0x525a77(0x2115)]:_0x525a77(0x1655),'msg':_0x2aaf8c[_0x525a77(0x1c52)]?JSON['stringify'](_0x2aaf8c[_0x525a77(0x1c52)]):_0x2aaf8c[_0x525a77(0x2915)]()});}),_0x1298aa[_0x462ebc(0x4de)](_0x462ebc(0x333))?_0x21d974[_0x462ebc(0x178b)][_0x462ebc(0x896)]({'type':_0x462ebc(0x12a4),'fields':_0x462ebc(0x2ba),'sort':'name','nolimit':_0x462ebc(0x1685)})['$promise'][_0x462ebc(0x64a)](function(_0x2280d3){const _0x24b532=_0x462ebc;_0x4c04c0['queues']=_0x2280d3[_0x24b532(0x28b8)]||[];})[_0x462ebc(0x20cd)](function(_0x4c20ff){const _0x44780e=_0x462ebc;_0x452cde[_0x44780e(0x1bd0)]({'title':_0x4c20ff[_0x44780e(0x10b3)]?_0x44780e(0x575)+_0x4c20ff['status']+_0x44780e(0x21db)+_0x4c20ff[_0x44780e(0x2115)]:_0x44780e(0xe03),'msg':_0x4c20ff['data']?JSON[_0x44780e(0x2317)](_0x4c20ff[_0x44780e(0x1c52)]):_0x4c20ff[_0x44780e(0x2915)]()});}):_0x21d974['voiceQueue'][_0x462ebc(0x896)]({'type':'inbound','fields':_0x462ebc(0x2ba),'sort':_0x462ebc(0x2494),'nolimit':_0x462ebc(0x1685)})[_0x462ebc(0x15e7)]['then'](function(_0x4e4f85){const _0x15dd56=_0x462ebc;_0x4c04c0['queues']=_0x4e4f85[_0x15dd56(0x28b8)]||[];})[_0x462ebc(0x64a)](function(){const _0x2a8491=_0x462ebc;return _0x21d974[_0x2a8491(0x16b2)]['get']({'userProfileId':_0x4c04c0[_0x2a8491(0x1d3d)][_0x2a8491(0x21ac)],'sectionId':0x191})[_0x2a8491(0x15e7)];})['then'](function(_0x15932c){const _0x5c7e84=_0x462ebc,_0x121d2b=_0x15932c&&_0x15932c[_0x5c7e84(0x28b8)]?_0x15932c[_0x5c7e84(0x28b8)][0x0]:null;if(!_0x121d2b){const _0x15d9ce=[];let _0x261025=null;_0x4c04c0[_0x5c7e84(0x1e4e)]&&(_0x261025=_0x28c606()['find'](_0x4c04c0[_0x5c7e84(0x1c06)],{'name':_0x4c04c0['queue'][_0x5c7e84(0x1e4e)]}));for(let _0x152c2f=0x0;_0x152c2f<_0x4c04c0[_0x5c7e84(0x1c06)]['length'];_0x152c2f++){_0x261025&&_0x4c04c0[_0x5c7e84(0x1c06)][_0x152c2f]['id']===_0x261025['id']&&(_0x4c04c0[_0x5c7e84(0x1c06)][_0x152c2f][_0x5c7e84(0xd4f)]=![],_0x15d9ce['push'](_0x4c04c0[_0x5c7e84(0x1c06)][_0x152c2f]));}_0x4c04c0['queues']=_0x15d9ce;}else{if(!_0x121d2b[_0x5c7e84(0x11da)])return _0x21d974['userProfileResource']['get']({'sectionId':_0x121d2b['id']})[_0x5c7e84(0x15e7)][_0x5c7e84(0x64a)](function(_0x2d560c){const _0x2191c0=_0x5c7e84,_0x9e1095=_0x28c606()[_0x2191c0(0x1de5)](_0x2d560c[_0x2191c0(0x28b8)],function(_0x2b8c2b){const _0x33f1e3=_0x2191c0;return _0x28c606()['find'](_0x4c04c0[_0x33f1e3(0x1c06)],{'id':_0x2b8c2b['resourceId']});});let _0x1c0da2=null;_0x4c04c0[_0x2191c0(0x1e4e)]&&(_0x1c0da2=_0x28c606()['find'](_0x4c04c0[_0x2191c0(0x1c06)],{'name':_0x4c04c0['queue'][_0x2191c0(0x1e4e)]}));if(_0x1c0da2&&!_0x28c606()[_0x2191c0(0x25f8)](_0x9e1095,['id',_0x1c0da2['id']])){const _0x3b19a6=_0x28c606()[_0x2191c0(0x27bc)](_0x4c04c0[_0x2191c0(0x1c06)],{'id':_0x1c0da2['id']});_0x3b19a6['canSelect']=![],_0x9e1095[_0x2191c0(0x1954)](_0x3b19a6);}_0x4c04c0[_0x2191c0(0x1c06)]=_0x9e1095;});}})[_0x462ebc(0x20cd)](function(_0x895438){const _0x24ca59=_0x462ebc;_0x452cde[_0x24ca59(0x1bd0)]({'title':_0x895438[_0x24ca59(0x10b3)]?_0x24ca59(0x575)+_0x895438[_0x24ca59(0x10b3)]+'\x20-\x20'+_0x895438[_0x24ca59(0x2115)]:_0x24ca59(0x1238),'msg':_0x895438[_0x24ca59(0x1c52)]?JSON[_0x24ca59(0x2317)](_0x895438[_0x24ca59(0x1c52)]):_0x895438[_0x24ca59(0x2915)]()});});function _0x3d6e92(){const _0x366d70=_0x462ebc;_0x4c04c0[_0x366d70(0xbae)]=[];const _0x44d79b=[];_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0x2185)]&&_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0x2185)][_0x366d70(0x2554)]()===_0x366d70(0xbce)&&_0x4c04c0['queue']['appType']===_0x366d70(0x17b6)&&(_0x4c04c0[_0x366d70(0x1e4e)]['phone']=_0xa398fe[_0x366d70(0x242b)]?(_0x4c04c0['queue']['prefix']||'')+_0x366d70(0x1a75)+_0xa398fe[_0x366d70(0x242b)]+'}':(_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0x2524)]||'')+_0x366d70(0x5ad),_0xa398fe[_0x366d70(0x1097)]!=='none'?_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0x59e)][_0x366d70(0x1b28)](_0x366d70(0x13e0))<0x0&&(_0x4c04c0['queue'][_0x366d70(0x59e)]+='U(xcally-mixmonitor-context)'):_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0x59e)]=_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0x59e)][_0x366d70(0x1353)](_0x366d70(0x13e0),''));if(_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0x4f4)]&&_0x4c04c0['queue'][_0x366d70(0x4f4)]==='custom'){}else switch((_0x4c04c0[_0x366d70(0x1e4e)]['app']||_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0x4f4)])[_0x366d70(0x2554)]()){case _0x366d70(0x1979):_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0xacb)]=_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0x2494)]+'='+_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0x1096)];break;case _0x366d70(0x1ad6):break;default:_0x44d79b[0x0]=_0x4c04c0['queue'][_0x366d70(0x1e4e)],_0x44d79b[0x1]=_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0x59e)],_0x44d79b[0x2]=_0x4c04c0['queue'][_0x366d70(0xea4)],_0x44d79b[0x3]=_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0x282b)],_0x44d79b[0x4]=_0x4c04c0['queue']['timeout'],_0x44d79b[0x5]=_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0x1e67)],_0x44d79b[0x6]=_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0x2542)],_0x44d79b[0x7]=_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0x17e)],_0x44d79b[0x8]=_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0x1487)],_0x44d79b[0x9]=_0x4c04c0[_0x366d70(0x1e4e)]['position'],_0x4c04c0[_0x366d70(0x1e4e)][_0x366d70(0xacb)]=_0x44d79b[_0x366d70(0x9a6)](',');}_0x5762cd(_0x4c04c0['queue']);}function _0x5762cd(_0x4c4c79){_0x48ff3d['hide'](_0x4c4c79);}}const _0x50dfd1=_0x4baa35;;_0xb9cf3c[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x7ac),_0x49a1e3(0x17cc),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0xb9cf3c(_0x63b288,_0x39d0d2,_0x4a3e31,_0x3e99ab,_0x50571c,_0x519a31,_0x2f28e2,_0x2af4b0){const _0x14a880=_0x49a1e3,_0x3bc8ba=this;_0x3bc8ba[_0x14a880(0x1d3d)]=_0x2f28e2[_0x14a880(0x808)](),_0x3bc8ba[_0x14a880(0xbae)]=[],_0x3bc8ba['title']=_0x14a880(0x2073)+(_0x3e99ab[_0x14a880(0x4f4)]||_0x3e99ab['app'])['toUpperCase'](),_0x3bc8ba[_0x14a880(0x1b7a)]=angular[_0x14a880(0x289e)](_0x3e99ab),_0x3bc8ba[_0x14a880(0x402)]=_0x2af4b0,_0x3bc8ba[_0x14a880(0x6c2)]={};if(_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0xacb)])switch(_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x4f4)]?_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x4f4)][_0x14a880(0x2554)]():_0x3bc8ba['ringgroup'][_0x14a880(0x16e1)][_0x14a880(0x2554)]()){case _0x14a880(0x1ad6):break;case _0x14a880(0x1084):{const _0x47e4a3=_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0xacb)][_0x14a880(0x282c)](',');_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x2125)]=_0x47e4a3[0x0],_0x3bc8ba[_0x14a880(0x1b7a)]['language']=_0x47e4a3[0x1],_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x31b)]=_0x47e4a3[_0x14a880(0x142e)](0x2,_0x47e4a3[_0x14a880(0x1b9e)])[_0x14a880(0x9a6)](',');}break;case _0x14a880(0x1b1a):{const _0x5803a4=_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0xacb)][_0x14a880(0x282c)](',');_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0xbfd)]=_0x5803a4[0x0],_0x3bc8ba[_0x14a880(0x1b7a)]['clientEmail']=_0x5803a4[0x1],_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x1b1b)]=_0x5803a4[0x2],_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x1cbd)]=_0x5803a4[0x3],_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x31b)]=_0x5803a4['slice'](0x4,_0x5803a4['length'])[_0x14a880(0x9a6)](',');}break;case _0x14a880(0x290d):{const _0x2890f7=_0x3bc8ba['ringgroup'][_0x14a880(0xacb)][_0x14a880(0x282c)](',');_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x1466)]=_0x2890f7[0x0],_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x1b1)]=_0x2890f7[0x1],_0x3bc8ba['ringgroup']['lexregion']=_0x2890f7[0x2],_0x3bc8ba[_0x14a880(0x1b7a)]['botname']=_0x2890f7[0x3],_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x31b)]=_0x2890f7[_0x14a880(0x142e)](0x4,_0x2890f7['length'])[_0x14a880(0x9a6)](',');}break;case _0x14a880(0x21a9):{const _0x4a4e38=_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0xacb)]['split'](',');_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x95f)]=isNaN(_0x4a4e38[0x0])?_0x4a4e38[0x0]:parseInt(_0x4a4e38[0x0],0xa),_0x3bc8ba[_0x14a880(0x1b7a)]['text']=_0x4a4e38['slice'](0x1,_0x4a4e38[_0x14a880(0x1b9e)])[_0x14a880(0x9a6)](',');}break;case _0x14a880(0x18ca):_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x39b)]=_0x3bc8ba['ringgroup'][_0x14a880(0xacb)];break;case'set':_0x3bc8ba['ringgroup'][_0x14a880(0x2494)]=_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0xacb)]['split']('=')[0x0],_0x3bc8ba['ringgroup'][_0x14a880(0x1096)]=_0x3bc8ba['ringgroup'][_0x14a880(0xacb)][_0x14a880(0x282c)]('=')[0x1];break;case _0x14a880(0x1e67):_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x1bd9)]=_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0xacb)];break;default:{const _0x44d86f=_0x3bc8ba['ringgroup'][_0x14a880(0xacb)]['split'](',');_0x3bc8ba[_0x14a880(0x1b7a)]['multipleUsers']=_0x44d86f[0x0][_0x14a880(0x282c)]('&'),_0x3bc8ba['ringgroup']['timeout']=_0x28c606()[_0x14a880(0x940)](_0x44d86f[0x1])?_0x44d86f[0x1]:isNaN(_0x44d86f[0x1])?_0x44d86f[0x1]:parseInt(_0x44d86f[0x1],0xa),_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x59e)]=_0x28c606()[_0x14a880(0x940)](_0x44d86f[0x2])?_0x44d86f[0x2]:isNaN(_0x44d86f[0x2])?_0x44d86f[0x2]:parseInt(_0x44d86f[0x2],0xa),_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x2761)]=_0x28c606()['isEmpty'](_0x44d86f[0x3])?_0x44d86f[0x3]:isNaN(_0x44d86f[0x3])?_0x44d86f[0x3]:parseInt(_0x44d86f[0x3],0xa);}break;}else{}_0x3bc8ba['ringgroup'][_0x14a880(0x2185)]&&_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x2185)][_0x14a880(0x2554)]()===_0x14a880(0xbce)&&_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x4f4)][_0x14a880(0x2554)]()===_0x14a880(0x20eb)&&(_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x2524)]=_0x3bc8ba['ringgroup'][_0x14a880(0x267a)]?_0x3bc8ba['ringgroup']['phone']['split']('$')[0x0]:undefined,_0x3bc8ba['ringgroup'][_0x14a880(0x1a9b)]=_0x3bc8ba['ringgroup'][_0x14a880(0x1abe)]?_0x14a880(0x2489)+_0x3bc8ba[_0x14a880(0x1b7a)][_0x14a880(0x1abe)]:undefined);_0x3bc8ba[_0x14a880(0x94b)]=_0x15efb2,_0x3bc8ba[_0x14a880(0x16cb)]=_0x2d7d10;const _0x1b2181=[{'id':0xca,'role':_0x14a880(0x11ae)},{'id':0xcb,'role':'telephone'}];let _0x2d5fe6=null;_0x2f28e2[_0x14a880(0x4de)]('admin')?_0x519a31[_0x14a880(0x2e8)][_0x14a880(0x896)]({'fields':'id,name,role','sort':'name','nolimit':_0x14a880(0x1685)})[_0x14a880(0x15e7)][_0x14a880(0x64a)](function(_0x48b0b5){const _0x5e9477=_0x14a880;_0x3bc8ba['users']=_0x48b0b5[_0x5e9477(0x28b8)]||[];})[_0x14a880(0x20cd)](function(_0x45cdaf){const _0x52447a=_0x14a880;_0x4a3e31[_0x52447a(0x1bd0)]({'title':_0x45cdaf[_0x52447a(0x10b3)]?_0x52447a(0x575)+_0x45cdaf['status']+_0x52447a(0x21db)+_0x45cdaf[_0x52447a(0x2115)]:'SYSTEM:GET_USERS','msg':_0x45cdaf['data']?JSON[_0x52447a(0x2317)](_0x45cdaf['data']):_0x45cdaf['toString']()});}):_0x519a31[_0x14a880(0x2e8)][_0x14a880(0x896)]({'fields':_0x14a880(0x298b),'sort':_0x14a880(0x2494),'nolimit':_0x14a880(0x1685)})['$promise'][_0x14a880(0x64a)](function(_0x4dae4d){const _0x1ac6ae=_0x14a880;_0x2d5fe6=_0x4dae4d[_0x1ac6ae(0x28b8)]||[];})[_0x14a880(0x64a)](function(){const _0x5717b0=_0x14a880,_0x10b3f3=[];for(let _0x57777b=0x0;_0x57777b<_0x1b2181['length'];_0x57777b++){_0x10b3f3[_0x5717b0(0x1954)](_0x519a31[_0x5717b0(0x16b2)]['get']({'userProfileId':_0x3bc8ba[_0x5717b0(0x1d3d)][_0x5717b0(0x21ac)],'sectionId':_0x1b2181[_0x57777b]['id']})['$promise']);}return _0x39d0d2['all'](_0x10b3f3);})['then'](function(_0x105833){const _0x4c147c=_0x14a880,_0x376681=_0x28c606()[_0x4c147c(0x1de5)](_0x105833,function(_0x463b92){const _0x1ee4ea=_0x4c147c;return _0x463b92&&_0x463b92[_0x1ee4ea(0x28b8)]?_0x463b92[_0x1ee4ea(0x28b8)][0x0]:null;}),_0x45ffd5=[];for(let _0x477ed3=0x0;_0x477ed3<_0x1b2181[_0x4c147c(0x1b9e)];_0x477ed3++){const _0xe3bad5=_0x28c606()[_0x4c147c(0x27bc)](_0x376681,['sectionId',_0x1b2181[_0x477ed3]['id']]);if(_0xe3bad5){if(!_0xe3bad5[_0x4c147c(0x11da)])_0x45ffd5[_0x4c147c(0x1954)](_0x519a31[_0x4c147c(0x1617)][_0x4c147c(0x896)]({'sectionId':_0xe3bad5['id']})[_0x4c147c(0x15e7)]);else{const _0x5d7259=[];_0x2d5fe6['forEach'](function(_0x214d24){const _0x105ba4=_0x4c147c;_0x214d24[_0x105ba4(0x161a)]===_0x1b2181[_0x477ed3][_0x105ba4(0x161a)]&&_0x5d7259[_0x105ba4(0x1954)](_0x214d24);}),_0x45ffd5[_0x4c147c(0x1954)]({'rows':_0x5d7259,'count':_0x5d7259[_0x4c147c(0x1b9e)]});}}}return _0x39d0d2[_0x4c147c(0x2705)](_0x45ffd5);})[_0x14a880(0x64a)](function(_0x30187d){const _0x3ea536=_0x14a880,_0x2c749a=[];let _0x48e727=null;_0x3bc8ba['ringgroup']&&(_0x48e727=_0x28c606()[_0x3ea536(0x27bc)](_0x2d5fe6,{'name':_0x3bc8ba[_0x3ea536(0x1b7a)]['multipleUsers']}));for(let _0x409093=0x0;_0x409093<_0x30187d['length'];_0x409093++){const _0x372722=_0x30187d[_0x409093][_0x3ea536(0x28b8)]||[];_0x372722[_0x3ea536(0x1397)](function(_0x190458){const _0x267707=_0x3ea536;_0x2c749a[_0x267707(0x1954)](_0x190458);});}_0x48e727&&!_0x28c606()[_0x3ea536(0x25f8)](_0x2c749a,[_0x3ea536(0x145),_0x48e727['id']])&&_0x2d5fe6['forEach'](function(_0x44b4be){const _0x1a092b=_0x3ea536;_0x44b4be['id']===_0x48e727['id']&&(_0x44b4be[_0x1a092b(0xd4f)]=![],_0x2c749a['push'](_0x44b4be));}),_0x3bc8ba['users']=_0x2c749a;})[_0x14a880(0x20cd)](function(_0x3f1d4a){const _0x48c9a8=_0x14a880;_0x4a3e31[_0x48c9a8(0x1bd0)]({'title':_0x3f1d4a[_0x48c9a8(0x10b3)]?_0x48c9a8(0x575)+_0x3f1d4a[_0x48c9a8(0x10b3)]+_0x48c9a8(0x21db)+_0x3f1d4a[_0x48c9a8(0x2115)]:_0x48c9a8(0x19e5),'msg':_0x3f1d4a[_0x48c9a8(0x1c52)]?JSON[_0x48c9a8(0x2317)](_0x3f1d4a[_0x48c9a8(0x1c52)]):_0x3f1d4a[_0x48c9a8(0x2915)]()});});function _0x15efb2(){const _0x3241ee=_0x14a880;_0x3bc8ba[_0x3241ee(0xbae)]=[];const _0x1bb255=[];_0x3bc8ba[_0x3241ee(0x1b7a)][_0x3241ee(0x2185)]&&_0x3bc8ba[_0x3241ee(0x1b7a)][_0x3241ee(0x2185)][_0x3241ee(0x2554)]()===_0x3241ee(0xbce)&&_0x3bc8ba[_0x3241ee(0x1b7a)][_0x3241ee(0x4f4)]===_0x3241ee(0x17b6)&&(_0x3bc8ba[_0x3241ee(0x1b7a)][_0x3241ee(0x267a)]=_0x50571c[_0x3241ee(0x242b)]?(_0x3bc8ba[_0x3241ee(0x1b7a)][_0x3241ee(0x2524)]||'')+_0x3241ee(0x1a75)+_0x50571c['cutdigits']+'}':(_0x3bc8ba['ringgroup'][_0x3241ee(0x2524)]||'')+_0x3241ee(0x5ad),_0x50571c[_0x3241ee(0x1097)]!==_0x3241ee(0x2507)?_0x3bc8ba[_0x3241ee(0x1b7a)][_0x3241ee(0x59e)][_0x3241ee(0x1b28)](_0x3241ee(0x13e0))<0x0&&(_0x3bc8ba['ringgroup'][_0x3241ee(0x59e)]+=_0x3241ee(0x13e0)):_0x3bc8ba['ringgroup']['options']=_0x3bc8ba[_0x3241ee(0x1b7a)][_0x3241ee(0x59e)][_0x3241ee(0x1353)]('U(xcally-mixmonitor-context)',''));if(_0x3bc8ba[_0x3241ee(0x1b7a)][_0x3241ee(0x4f4)]&&_0x3bc8ba['ringgroup'][_0x3241ee(0x4f4)]===_0x3241ee(0x1ad6)){}else switch((_0x3bc8ba[_0x3241ee(0x1b7a)]['app']||_0x3bc8ba[_0x3241ee(0x1b7a)][_0x3241ee(0x4f4)])[_0x3241ee(0x2554)]()){case _0x3241ee(0x1979):_0x3bc8ba[_0x3241ee(0x1b7a)][_0x3241ee(0xacb)]=_0x3bc8ba['ringgroup'][_0x3241ee(0x2494)]+'='+_0x3bc8ba[_0x3241ee(0x1b7a)][_0x3241ee(0x1096)];break;case _0x3241ee(0x1ad6):break;default:_0x1bb255[0x0]=_0x3bc8ba[_0x3241ee(0x1b7a)]['multipleUsers'][_0x3241ee(0x9a6)]('&'),_0x1bb255[0x1]=_0x3bc8ba['ringgroup']['timeout'],_0x1bb255[0x2]=_0x3bc8ba[_0x3241ee(0x1b7a)][_0x3241ee(0x59e)],_0x1bb255[0x3]=_0x3bc8ba[_0x3241ee(0x1b7a)][_0x3241ee(0x2761)],_0x3bc8ba[_0x3241ee(0x1b7a)][_0x3241ee(0xacb)]=_0x1bb255['join'](',');}_0x2d7d10(_0x3bc8ba[_0x3241ee(0x1b7a)]);}function _0x2d7d10(_0x1b52ed){const _0x22f92c=_0x14a880;_0x63b288[_0x22f92c(0x268e)](_0x1b52ed);}}const _0x262ce6=_0xb9cf3c;;_0x3401d5['$inject']=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x7ac),_0x49a1e3(0x17cc),'api','Auth',_0x49a1e3(0x402)];function _0x3401d5(_0xd61397,_0x1ee063,_0x53e6eb,_0x6ff33d,_0x2cb8f7,_0x9b3d4e,_0xac348a,_0x5d6175){const _0xb1ce85=_0x49a1e3,_0x54c9dd=this;_0x54c9dd[_0xb1ce85(0x1d3d)]=_0xac348a[_0xb1ce85(0x808)](),_0x54c9dd[_0xb1ce85(0xbae)]=[],_0x54c9dd[_0xb1ce85(0x2021)]=_0xb1ce85(0x2073)+(_0x6ff33d[_0xb1ce85(0x4f4)]||_0x6ff33d['app'])[_0xb1ce85(0xa3c)](),_0x54c9dd[_0xb1ce85(0x1979)]=angular['copy'](_0x6ff33d),_0x54c9dd['crudPermissions']=_0x5d6175,_0x54c9dd[_0xb1ce85(0x6c2)]={};if(_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0xacb)])switch(_0x54c9dd[_0xb1ce85(0x1979)]['appType']?_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0x4f4)]['toLowerCase']():_0x54c9dd['set']['app'][_0xb1ce85(0x2554)]()){case _0xb1ce85(0x1ad6):break;case _0xb1ce85(0x1084):{const _0x293cd2=_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0xacb)][_0xb1ce85(0x282c)](',');_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0x2125)]=_0x293cd2[0x0],_0x54c9dd[_0xb1ce85(0x1979)]['language']=_0x293cd2[0x1],_0x54c9dd[_0xb1ce85(0x1979)]['welcomemessage']=_0x293cd2['slice'](0x2,_0x293cd2[_0xb1ce85(0x1b9e)])[_0xb1ce85(0x9a6)](',');}break;case _0xb1ce85(0x1b1a):{const _0x42000e=_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0xacb)]['split'](',');_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0xbfd)]=_0x42000e[0x0],_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0x4b2)]=_0x42000e[0x1],_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0x1b1b)]=_0x42000e[0x2],_0x54c9dd[_0xb1ce85(0x1979)]['language']=_0x42000e[0x3],_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0x31b)]=_0x42000e[_0xb1ce85(0x142e)](0x4,_0x42000e[_0xb1ce85(0x1b9e)])[_0xb1ce85(0x9a6)](',');}break;case _0xb1ce85(0x290d):{const _0x4844b8=_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0xacb)][_0xb1ce85(0x282c)](',');_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0x1466)]=_0x4844b8[0x0],_0x54c9dd['set']['secretaccesskey']=_0x4844b8[0x1],_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0x17a2)]=_0x4844b8[0x2],_0x54c9dd['set']['botname']=_0x4844b8[0x3],_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0x31b)]=_0x4844b8['slice'](0x4,_0x4844b8[_0xb1ce85(0x1b9e)])['join'](',');}break;case _0xb1ce85(0x21a9):{const _0x1e9cf7=_0x54c9dd[_0xb1ce85(0x1979)]['appdata'][_0xb1ce85(0x282c)](',');_0x54c9dd['set'][_0xb1ce85(0x95f)]=isNaN(_0x1e9cf7[0x0])?_0x1e9cf7[0x0]:parseInt(_0x1e9cf7[0x0],0xa),_0x54c9dd['set'][_0xb1ce85(0x39b)]=_0x1e9cf7[_0xb1ce85(0x142e)](0x1,_0x1e9cf7[_0xb1ce85(0x1b9e)])[_0xb1ce85(0x9a6)](',');}break;case _0xb1ce85(0x18ca):_0x54c9dd['set'][_0xb1ce85(0x39b)]=_0x54c9dd[_0xb1ce85(0x1979)]['appdata'];break;case _0xb1ce85(0x1979):_0x54c9dd[_0xb1ce85(0x1979)]['name']=_0x54c9dd['set'][_0xb1ce85(0xacb)][_0xb1ce85(0x282c)]('=')[0x0],_0x54c9dd['set'][_0xb1ce85(0x1096)]=_0x54c9dd['set'][_0xb1ce85(0xacb)][_0xb1ce85(0x282c)]('=')[0x1];break;case _0xb1ce85(0x1e67):_0x54c9dd['set'][_0xb1ce85(0x1bd9)]=_0x54c9dd[_0xb1ce85(0x1979)]['appdata'];break;default:{const _0xea49c6=_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0xacb)][_0xb1ce85(0x282c)]('=');_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0x2494)]=_0x28c606()[_0xb1ce85(0x940)](_0xea49c6[0x0])?_0xea49c6[0x0]:isNaN(_0xea49c6[0x0])?_0xea49c6[0x0]:parseInt(_0xea49c6[0x0],0xa),_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0x1096)]=_0x28c606()['isEmpty'](_0xea49c6[0x1])?_0xea49c6[0x1]:isNaN(_0xea49c6[0x1])?_0xea49c6[0x1]:parseInt(_0xea49c6[0x1],0xa);}break;}else{}_0x54c9dd[_0xb1ce85(0x1979)]['type']&&_0x54c9dd['set'][_0xb1ce85(0x2185)][_0xb1ce85(0x2554)]()==='outbound'&&_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0x4f4)][_0xb1ce85(0x2554)]()===_0xb1ce85(0x20eb)&&(_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0x2524)]=_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0x267a)]?_0x54c9dd['set'][_0xb1ce85(0x267a)][_0xb1ce85(0x282c)]('$')[0x0]:undefined,_0x54c9dd[_0xb1ce85(0x1979)]['callerId']=_0x54c9dd['set'][_0xb1ce85(0x1abe)]?'CALLERID(all)='+_0x54c9dd[_0xb1ce85(0x1979)][_0xb1ce85(0x1abe)]:undefined);_0x54c9dd[_0xb1ce85(0x94b)]=_0x5b0917,_0x54c9dd[_0xb1ce85(0x16cb)]=_0x57003d,_0xac348a['hasRole']('admin')?_0x9b3d4e[_0xb1ce85(0xefb)][_0xb1ce85(0x896)]({'fields':_0xb1ce85(0x1427),'sort':'name','nolimit':'true'})['$promise'][_0xb1ce85(0x64a)](function(_0x3f4e50){const _0x596e03=_0xb1ce85;_0x54c9dd['variables']=_0x3f4e50[_0x596e03(0x28b8)]||[];})[_0xb1ce85(0x20cd)](function(_0x39c430){const _0xc42848=_0xb1ce85;_0x53e6eb[_0xc42848(0x1bd0)]({'title':_0x39c430['status']?_0xc42848(0x575)+_0x39c430[_0xc42848(0x10b3)]+'\x20-\x20'+_0x39c430[_0xc42848(0x2115)]:'SYSTEM:GET_VARIABLES','msg':_0x39c430[_0xc42848(0x1c52)]?JSON[_0xc42848(0x2317)](_0x39c430[_0xc42848(0x1c52)]):_0x39c430[_0xc42848(0x2915)]()});}):_0x9b3d4e[_0xb1ce85(0xefb)][_0xb1ce85(0x896)]({'fields':_0xb1ce85(0x1427),'sort':'name','nolimit':_0xb1ce85(0x1685)})[_0xb1ce85(0x15e7)]['then'](function(_0x5cc9ef){const _0x277488=_0xb1ce85;_0x54c9dd[_0x277488(0x145c)]=_0x5cc9ef['rows']||[];})[_0xb1ce85(0x64a)](function(){const _0x2e68d8=_0xb1ce85;return _0x9b3d4e['userProfileSection'][_0x2e68d8(0x896)]({'userProfileId':_0x54c9dd[_0x2e68d8(0x1d3d)][_0x2e68d8(0x21ac)],'sectionId':0x3f4})['$promise'];})[_0xb1ce85(0x64a)](function(_0x1d2b6d){const _0xfe6de5=_0xb1ce85,_0x49fa54=_0x1d2b6d&&_0x1d2b6d[_0xfe6de5(0x28b8)]?_0x1d2b6d[_0xfe6de5(0x28b8)][0x0]:null;if(!_0x49fa54){const _0x5b59b3=[];let _0x4364f6=null;_0x54c9dd['set']&&(_0x4364f6=_0x28c606()[_0xfe6de5(0x27bc)](_0x54c9dd[_0xfe6de5(0x145c)],{'name':_0x54c9dd['set'][_0xfe6de5(0x2494)]}));for(let _0x2e9a24=0x0;_0x2e9a24<_0x54c9dd[_0xfe6de5(0x145c)]['length'];_0x2e9a24++){_0x4364f6&&_0x54c9dd[_0xfe6de5(0x145c)][_0x2e9a24]['id']===_0x4364f6['id']&&(_0x54c9dd[_0xfe6de5(0x145c)][_0x2e9a24][_0xfe6de5(0xd4f)]=![],_0x5b59b3[_0xfe6de5(0x1954)](_0x54c9dd[_0xfe6de5(0x145c)][_0x2e9a24]));}_0x54c9dd[_0xfe6de5(0x145c)]=_0x5b59b3;}else{if(!_0x49fa54[_0xfe6de5(0x11da)])return _0x9b3d4e[_0xfe6de5(0x1617)]['get']({'sectionId':_0x49fa54['id']})['$promise']['then'](function(_0x3e56ee){const _0x3b5e5d=_0xfe6de5,_0x4b05f5=_0x28c606()[_0x3b5e5d(0x1de5)](_0x3e56ee[_0x3b5e5d(0x28b8)],function(_0x5fa523){const _0x3a89a3=_0x3b5e5d;return _0x28c606()['find'](_0x54c9dd[_0x3a89a3(0x145c)],{'id':_0x5fa523[_0x3a89a3(0x145)]});});let _0x48c255=null;_0x54c9dd['set']&&(_0x48c255=_0x28c606()[_0x3b5e5d(0x27bc)](_0x54c9dd['variables'],{'name':_0x54c9dd['set'][_0x3b5e5d(0x2494)]}));if(_0x48c255&&!_0x28c606()[_0x3b5e5d(0x25f8)](_0x4b05f5,['id',_0x48c255['id']])){const _0x54c5fb=_0x28c606()[_0x3b5e5d(0x27bc)](_0x54c9dd[_0x3b5e5d(0x145c)],{'id':_0x48c255['id']});_0x54c5fb[_0x3b5e5d(0xd4f)]=![],_0x4b05f5[_0x3b5e5d(0x1954)](_0x54c5fb);}_0x54c9dd['variables']=_0x4b05f5;});}})[_0xb1ce85(0x20cd)](function(_0x2e2df0){const _0x5f3443=_0xb1ce85;_0x53e6eb[_0x5f3443(0x1bd0)]({'title':_0x2e2df0[_0x5f3443(0x10b3)]?_0x5f3443(0x575)+_0x2e2df0[_0x5f3443(0x10b3)]+_0x5f3443(0x21db)+_0x2e2df0[_0x5f3443(0x2115)]:_0x5f3443(0x284a),'msg':_0x2e2df0['data']?JSON[_0x5f3443(0x2317)](_0x2e2df0[_0x5f3443(0x1c52)]):_0x2e2df0[_0x5f3443(0x2915)]()});});function _0x5b0917(){const _0x517cc9=_0xb1ce85;_0x54c9dd[_0x517cc9(0xbae)]=[];const _0x1d4a13=[];_0x54c9dd[_0x517cc9(0x1979)][_0x517cc9(0x2185)]&&_0x54c9dd[_0x517cc9(0x1979)][_0x517cc9(0x2185)][_0x517cc9(0x2554)]()===_0x517cc9(0xbce)&&_0x54c9dd[_0x517cc9(0x1979)][_0x517cc9(0x4f4)]===_0x517cc9(0x17b6)&&(_0x54c9dd[_0x517cc9(0x1979)][_0x517cc9(0x267a)]=_0x2cb8f7['cutdigits']?(_0x54c9dd['set'][_0x517cc9(0x2524)]||'')+_0x517cc9(0x1a75)+_0x2cb8f7[_0x517cc9(0x242b)]+'}':(_0x54c9dd['set'][_0x517cc9(0x2524)]||'')+_0x517cc9(0x5ad),_0x2cb8f7[_0x517cc9(0x1097)]!=='none'?_0x54c9dd[_0x517cc9(0x1979)][_0x517cc9(0x59e)]['indexOf'](_0x517cc9(0x13e0))<0x0&&(_0x54c9dd[_0x517cc9(0x1979)][_0x517cc9(0x59e)]+=_0x517cc9(0x13e0)):_0x54c9dd[_0x517cc9(0x1979)][_0x517cc9(0x59e)]=_0x54c9dd[_0x517cc9(0x1979)][_0x517cc9(0x59e)]['replace'](_0x517cc9(0x13e0),''));if(_0x54c9dd[_0x517cc9(0x1979)]['appType']&&_0x54c9dd['set']['appType']==='custom'){}else switch((_0x54c9dd[_0x517cc9(0x1979)][_0x517cc9(0x16e1)]||_0x54c9dd[_0x517cc9(0x1979)][_0x517cc9(0x4f4)])[_0x517cc9(0x2554)]()){case _0x517cc9(0x1979):_0x54c9dd[_0x517cc9(0x1979)]['appdata']=_0x54c9dd[_0x517cc9(0x1979)]['name']+'='+_0x54c9dd[_0x517cc9(0x1979)][_0x517cc9(0x1096)];break;case _0x517cc9(0x1ad6):break;default:_0x1d4a13[0x0]=_0x54c9dd['set'][_0x517cc9(0x2494)],_0x1d4a13[0x1]=_0x54c9dd[_0x517cc9(0x1979)][_0x517cc9(0x1096)],_0x54c9dd[_0x517cc9(0x1979)]['appdata']=_0x1d4a13[_0x517cc9(0x9a6)]('=');}_0x57003d(_0x54c9dd['set']);}function _0x57003d(_0x1f7755){_0xd61397['hide'](_0x1f7755);}}const _0x3c4aa9=_0x3401d5;;_0xcf1dc4[_0x49a1e3(0x1e73)]=['$mdDialog','$q','toasty',_0x49a1e3(0x7ac),'inboundroute',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0xcf1dc4(_0x300ce6,_0x3c2e16,_0x399cd6,_0x5f4ae7,_0x5cd16d,_0x27ec14,_0x3cec4d,_0x476dc1){const _0x4d5bd0=_0x49a1e3,_0x3bb6e7=this;_0x3bb6e7[_0x4d5bd0(0x1d3d)]=_0x3cec4d[_0x4d5bd0(0x808)](),_0x3bb6e7['errors']=[],_0x3bb6e7[_0x4d5bd0(0x2021)]=_0x4d5bd0(0x2073)+(_0x5f4ae7[_0x4d5bd0(0x4f4)]||_0x5f4ae7[_0x4d5bd0(0x16e1)])[_0x4d5bd0(0xa3c)](),_0x3bb6e7['voicemail']=angular[_0x4d5bd0(0x289e)](_0x5f4ae7),_0x3bb6e7[_0x4d5bd0(0x402)]=_0x476dc1,_0x3bb6e7[_0x4d5bd0(0x6c2)]={};if(_0x3bb6e7[_0x4d5bd0(0x25b)]['appdata'])switch(_0x3bb6e7['voicemail'][_0x4d5bd0(0x4f4)]?_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0x4f4)][_0x4d5bd0(0x2554)]():_0x3bb6e7['voicemail']['app'][_0x4d5bd0(0x2554)]()){case _0x4d5bd0(0x1ad6):break;case _0x4d5bd0(0x1084):{const _0x38ca28=_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0xacb)][_0x4d5bd0(0x282c)](',');_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0x2125)]=_0x38ca28[0x0],_0x3bb6e7['voicemail'][_0x4d5bd0(0x1cbd)]=_0x38ca28[0x1],_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0x31b)]=_0x38ca28[_0x4d5bd0(0x142e)](0x2,_0x38ca28[_0x4d5bd0(0x1b9e)])[_0x4d5bd0(0x9a6)](',');}break;case _0x4d5bd0(0x1b1a):{const _0x31d20e=_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0xacb)][_0x4d5bd0(0x282c)](',');_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0xbfd)]=_0x31d20e[0x0],_0x3bb6e7[_0x4d5bd0(0x25b)]['clientEmail']=_0x31d20e[0x1],_0x3bb6e7[_0x4d5bd0(0x25b)]['privateKey']=_0x31d20e[0x2],_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0x1cbd)]=_0x31d20e[0x3],_0x3bb6e7[_0x4d5bd0(0x25b)]['welcomemessage']=_0x31d20e[_0x4d5bd0(0x142e)](0x4,_0x31d20e[_0x4d5bd0(0x1b9e)])[_0x4d5bd0(0x9a6)](',');}break;case'amazonlex':{const _0x44485f=_0x3bb6e7['voicemail'][_0x4d5bd0(0xacb)][_0x4d5bd0(0x282c)](',');_0x3bb6e7['voicemail'][_0x4d5bd0(0x1466)]=_0x44485f[0x0],_0x3bb6e7['voicemail'][_0x4d5bd0(0x1b1)]=_0x44485f[0x1],_0x3bb6e7['voicemail'][_0x4d5bd0(0x17a2)]=_0x44485f[0x2],_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0x2797)]=_0x44485f[0x3],_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0x31b)]=_0x44485f[_0x4d5bd0(0x142e)](0x4,_0x44485f['length'])[_0x4d5bd0(0x9a6)](',');}break;case _0x4d5bd0(0x21a9):{const _0x54db3a=_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0xacb)]['split'](',');_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0x95f)]=isNaN(_0x54db3a[0x0])?_0x54db3a[0x0]:parseInt(_0x54db3a[0x0],0xa),_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0x39b)]=_0x54db3a['slice'](0x1,_0x54db3a[_0x4d5bd0(0x1b9e)])[_0x4d5bd0(0x9a6)](',');}break;case _0x4d5bd0(0x18ca):_0x3bb6e7['voicemail'][_0x4d5bd0(0x39b)]=_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0xacb)];break;case'set':_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0x2494)]=_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0xacb)]['split']('=')[0x0],_0x3bb6e7[_0x4d5bd0(0x25b)]['value']=_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0xacb)]['split']('=')[0x1];break;case _0x4d5bd0(0x1e67):_0x3bb6e7['voicemail'][_0x4d5bd0(0x1bd9)]=_0x3bb6e7['voicemail']['appdata'];break;default:{const _0x486b0d=_0x3bb6e7['voicemail'][_0x4d5bd0(0xacb)][_0x4d5bd0(0x282c)](',');_0x3bb6e7[_0x4d5bd0(0x25b)]['voiceMail']=_0x28c606()[_0x4d5bd0(0x940)](_0x486b0d[0x0])?_0x486b0d[0x0]:isNaN(_0x486b0d[0x0])?_0x486b0d[0x0]:parseInt(_0x486b0d[0x0],0xa),_0x3bb6e7['voicemail'][_0x4d5bd0(0x59e)]=_0x28c606()[_0x4d5bd0(0x940)](_0x486b0d[0x1])?_0x486b0d[0x1]:isNaN(_0x486b0d[0x1])?_0x486b0d[0x1]:parseInt(_0x486b0d[0x1],0xa);}break;}else{}_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0x2185)]&&_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0x2185)]['toLowerCase']()===_0x4d5bd0(0xbce)&&_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0x4f4)]['toLowerCase']()==='outbounddial'&&(_0x3bb6e7['voicemail'][_0x4d5bd0(0x2524)]=_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0x267a)]?_0x3bb6e7[_0x4d5bd0(0x25b)][_0x4d5bd0(0x267a)][_0x4d5bd0(0x282c)]('$')[0x0]:undefined,_0x3bb6e7[_0x4d5bd0(0x25b)]['callerId']=_0x3bb6e7['voicemail']['callerID']?_0x4d5bd0(0x2489)+_0x3bb6e7[_0x4d5bd0(0x25b)]['callerID']:undefined);_0x3bb6e7[_0x4d5bd0(0x94b)]=_0x13ffbe,_0x3bb6e7['closeDialog']=_0x34462b,_0x3cec4d[_0x4d5bd0(0x4de)](_0x4d5bd0(0x333))?_0x27ec14[_0x4d5bd0(0x1e43)]['get']({'fields':'id,mailbox','sort':_0x4d5bd0(0x1efa),'nolimit':_0x4d5bd0(0x1685)})['$promise']['then'](function(_0x348c7f){const _0x426076=_0x4d5bd0;_0x3bb6e7['voiceMails']=_0x348c7f[_0x426076(0x28b8)]||[];})[_0x4d5bd0(0x20cd)](function(_0x25b900){const _0x31f4c9=_0x4d5bd0;_0x399cd6[_0x31f4c9(0x1bd0)]({'title':_0x25b900[_0x31f4c9(0x10b3)]?'API:'+_0x25b900[_0x31f4c9(0x10b3)]+'\x20-\x20'+_0x25b900[_0x31f4c9(0x2115)]:'SYSTEM:GET_VOICEMAILS','msg':_0x25b900[_0x31f4c9(0x1c52)]?JSON['stringify'](_0x25b900[_0x31f4c9(0x1c52)]):_0x25b900[_0x31f4c9(0x2915)]()});}):_0x27ec14[_0x4d5bd0(0x1e43)][_0x4d5bd0(0x896)]({'fields':_0x4d5bd0(0x2419),'sort':_0x4d5bd0(0x1efa),'nolimit':_0x4d5bd0(0x1685)})[_0x4d5bd0(0x15e7)][_0x4d5bd0(0x64a)](function(_0x18c125){const _0xd4d8db=_0x4d5bd0;_0x3bb6e7['voiceMails']=_0x18c125[_0xd4d8db(0x28b8)]||[];})[_0x4d5bd0(0x64a)](function(){const _0x39b9dc=_0x4d5bd0;return _0x27ec14['userProfileSection'][_0x39b9dc(0x896)]({'userProfileId':_0x3bb6e7['currentUser']['userProfileId'],'sectionId':0x196})[_0x39b9dc(0x15e7)];})['then'](function(_0x4e65f6){const _0x33f352=_0x4d5bd0,_0x320f58=_0x4e65f6&&_0x4e65f6[_0x33f352(0x28b8)]?_0x4e65f6[_0x33f352(0x28b8)][0x0]:null;if(!_0x320f58){const _0x2eb31d=[];let _0x474154=null;_0x3bb6e7['voicemail']&&(_0x474154=_0x28c606()[_0x33f352(0x27bc)](_0x3bb6e7[_0x33f352(0x5e4)],{'mailbox':_0x3bb6e7['voicemail'][_0x33f352(0x1e43)]}));for(let _0x19e88e=0x0;_0x19e88e<_0x3bb6e7[_0x33f352(0x5e4)][_0x33f352(0x1b9e)];_0x19e88e++){_0x474154&&_0x3bb6e7[_0x33f352(0x5e4)][_0x19e88e]['id']===_0x474154['id']&&(_0x3bb6e7['voiceMails'][_0x19e88e][_0x33f352(0xd4f)]=![],_0x2eb31d['push'](_0x3bb6e7[_0x33f352(0x5e4)][_0x19e88e]));}_0x3bb6e7[_0x33f352(0x5e4)]=_0x2eb31d;}else{if(!_0x320f58[_0x33f352(0x11da)])return _0x27ec14[_0x33f352(0x1617)][_0x33f352(0x896)]({'sectionId':_0x320f58['id']})[_0x33f352(0x15e7)][_0x33f352(0x64a)](function(_0x2de5ad){const _0x98bea5=_0x33f352,_0xadf33b=_0x28c606()[_0x98bea5(0x1de5)](_0x2de5ad['rows'],function(_0x2dc2d4){const _0x34bbc3=_0x98bea5;return _0x28c606()[_0x34bbc3(0x27bc)](_0x3bb6e7['voiceMails'],{'id':_0x2dc2d4[_0x34bbc3(0x145)]});});let _0x3445e1=null;_0x3bb6e7['voicemail']&&(_0x3445e1=_0x28c606()[_0x98bea5(0x27bc)](_0x3bb6e7[_0x98bea5(0x5e4)],{'mailbox':_0x3bb6e7[_0x98bea5(0x25b)][_0x98bea5(0x1e43)]}));if(_0x3445e1&&!_0x28c606()['some'](_0xadf33b,['id',_0x3445e1['id']])){const _0x5a2496=_0x28c606()[_0x98bea5(0x27bc)](_0x3bb6e7[_0x98bea5(0x5e4)],{'id':_0x3445e1['id']});_0x5a2496['canSelect']=![],_0xadf33b[_0x98bea5(0x1954)](_0x5a2496);}_0x3bb6e7[_0x98bea5(0x5e4)]=_0xadf33b;});}})[_0x4d5bd0(0x20cd)](function(_0xe1e165){const _0x4d6f6c=_0x4d5bd0;_0x399cd6[_0x4d6f6c(0x1bd0)]({'title':_0xe1e165[_0x4d6f6c(0x10b3)]?_0x4d6f6c(0x575)+_0xe1e165[_0x4d6f6c(0x10b3)]+_0x4d6f6c(0x21db)+_0xe1e165[_0x4d6f6c(0x2115)]:_0x4d6f6c(0x33c),'msg':_0xe1e165[_0x4d6f6c(0x1c52)]?JSON[_0x4d6f6c(0x2317)](_0xe1e165[_0x4d6f6c(0x1c52)]):_0xe1e165[_0x4d6f6c(0x2915)]()});});function _0x13ffbe(){const _0x2b7f72=_0x4d5bd0;_0x3bb6e7[_0x2b7f72(0xbae)]=[];const _0x403e75=[];_0x3bb6e7[_0x2b7f72(0x25b)][_0x2b7f72(0x2185)]&&_0x3bb6e7[_0x2b7f72(0x25b)][_0x2b7f72(0x2185)][_0x2b7f72(0x2554)]()===_0x2b7f72(0xbce)&&_0x3bb6e7[_0x2b7f72(0x25b)][_0x2b7f72(0x4f4)]==='outboundDial'&&(_0x3bb6e7[_0x2b7f72(0x25b)][_0x2b7f72(0x267a)]=_0x5cd16d[_0x2b7f72(0x242b)]?(_0x3bb6e7[_0x2b7f72(0x25b)][_0x2b7f72(0x2524)]||'')+_0x2b7f72(0x1a75)+_0x5cd16d['cutdigits']+'}':(_0x3bb6e7[_0x2b7f72(0x25b)][_0x2b7f72(0x2524)]||'')+'${EXTEN}',_0x5cd16d[_0x2b7f72(0x1097)]!==_0x2b7f72(0x2507)?_0x3bb6e7['voicemail'][_0x2b7f72(0x59e)][_0x2b7f72(0x1b28)](_0x2b7f72(0x13e0))<0x0&&(_0x3bb6e7['voicemail'][_0x2b7f72(0x59e)]+=_0x2b7f72(0x13e0)):_0x3bb6e7['voicemail'][_0x2b7f72(0x59e)]=_0x3bb6e7[_0x2b7f72(0x25b)][_0x2b7f72(0x59e)][_0x2b7f72(0x1353)](_0x2b7f72(0x13e0),''));if(_0x3bb6e7[_0x2b7f72(0x25b)][_0x2b7f72(0x4f4)]&&_0x3bb6e7[_0x2b7f72(0x25b)][_0x2b7f72(0x4f4)]===_0x2b7f72(0x1ad6)){}else switch((_0x3bb6e7[_0x2b7f72(0x25b)][_0x2b7f72(0x16e1)]||_0x3bb6e7['voicemail'][_0x2b7f72(0x4f4)])[_0x2b7f72(0x2554)]()){case _0x2b7f72(0x1979):_0x3bb6e7[_0x2b7f72(0x25b)][_0x2b7f72(0xacb)]=_0x3bb6e7[_0x2b7f72(0x25b)][_0x2b7f72(0x2494)]+'='+_0x3bb6e7['voicemail']['value'];break;case'custom':break;default:_0x403e75[0x0]=_0x3bb6e7[_0x2b7f72(0x25b)][_0x2b7f72(0x1e43)],_0x403e75[0x1]=_0x3bb6e7[_0x2b7f72(0x25b)][_0x2b7f72(0x59e)],_0x3bb6e7['voicemail'][_0x2b7f72(0xacb)]=_0x403e75[_0x2b7f72(0x9a6)](',');}_0x34462b(_0x3bb6e7['voicemail']);}function _0x34462b(_0x2a5726){_0x300ce6['hide'](_0x2a5726);}}const _0x54377e=_0xcf1dc4;;_0x40d54a[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),'setting',_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x17cc),_0x49a1e3(0x16b2)];function _0x40d54a(_0x419d6a,_0x2efa23,_0x28ee6a,_0x1a3dee,_0x391971,_0x6ca10e,_0x3cfb36,_0x383ec5,_0x1aaf67,_0x7474cf,_0x1ad7e5,_0x353442){const _0x2af91b=_0x49a1e3,_0x28f3f9=this;_0x28f3f9['currentUser']=_0x7474cf['getCurrentUser'](),_0x28f3f9['license']=_0x6ca10e,_0x28f3f9[_0x2af91b(0x28d6)]=_0x3cfb36,_0x28f3f9[_0x2af91b(0xccc)]=_0x28f3f9[_0x2af91b(0x28d6)][_0x2af91b(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x28f3f9[_0x2af91b(0xb36)]=_0x2efa23[_0x2af91b(0x48e)]()+_0x2af91b(0xe1f)+_0x2efa23['host'](),_0x28f3f9['inboundroute']=_0x1ad7e5||_0x419d6a[_0x2af91b(0x1b48)][_0x2af91b(0x17cc)]||{},_0x28f3f9[_0x2af91b(0x16b2)]=_0x353442&&_0x353442[_0x2af91b(0xb90)]==0x1?_0x353442['rows'][0x0]:null,_0x28f3f9[_0x2af91b(0x402)]=_0x7474cf[_0x2af91b(0xa7e)](_0x28f3f9[_0x2af91b(0x16b2)]?_0x28f3f9[_0x2af91b(0x16b2)]['crudPermissions']:null),_0x28f3f9['hasModulePermissions']={},_0x28f3f9[_0x2af91b(0x197c)]=_0x419d6a[_0x2af91b(0x1b48)][_0x2af91b(0x1222)]||0x0,_0x28f3f9[_0x2af91b(0x2540)]=_0x1aaf67[_0x2af91b(0x772)],_0x28f3f9['gotoInboundRoutes']=_0x18d45,_0x28f3f9['saveInboundRoute']=_0x501a65,_0x7474cf['hasRole']('admin')?_0x383ec5[_0x2af91b(0x1faa)]['get']({'fields':_0x2af91b(0x1427),'sort':_0x2af91b(0x2494),'nolimit':_0x2af91b(0x1685)})[_0x2af91b(0x15e7)][_0x2af91b(0x64a)](function(_0x4165d9){const _0x5272ed=_0x2af91b;_0x28f3f9['contexts']=_0x4165d9[_0x5272ed(0x28b8)]||[];})['catch'](function(_0x384718){const _0x291e39=_0x2af91b;_0x1aaf67[_0x291e39(0x1bd0)]({'title':_0x384718[_0x291e39(0x10b3)]?'API:'+_0x384718[_0x291e39(0x10b3)]+_0x291e39(0x21db)+_0x384718[_0x291e39(0x2115)]:_0x291e39(0xbea),'msg':_0x384718[_0x291e39(0x1c52)]?JSON[_0x291e39(0x2317)](_0x384718[_0x291e39(0x1c52)]):_0x384718[_0x291e39(0x2915)]()});}):_0x383ec5[_0x2af91b(0x1faa)]['get']({'fields':'id,name','sort':_0x2af91b(0x2494),'nolimit':'true'})[_0x2af91b(0x15e7)][_0x2af91b(0x64a)](function(_0x41c27f){const _0x382887=_0x2af91b;_0x28f3f9[_0x382887(0xad1)]=_0x41c27f[_0x382887(0x28b8)]||[];})[_0x2af91b(0x64a)](function(){const _0x3e81de=_0x2af91b;return _0x383ec5[_0x3e81de(0x16b2)][_0x3e81de(0x896)]({'userProfileId':_0x28f3f9[_0x3e81de(0x1d3d)][_0x3e81de(0x21ac)],'sectionId':0x195})[_0x3e81de(0x15e7)];})[_0x2af91b(0x64a)](function(_0x42f682){const _0x348129=_0x2af91b,_0x738a14=_0x42f682&&_0x42f682[_0x348129(0x28b8)]?_0x42f682[_0x348129(0x28b8)][0x0]:null;if(!_0x738a14)return _0x383ec5[_0x348129(0x1faa)][_0x348129(0x896)]({'fields':'id,name','sort':_0x348129(0x2494),'nolimit':'true','defaultEntry':0x1})[_0x348129(0x15e7)][_0x348129(0x64a)](function(_0x282e1a){_0x28f3f9['contexts']=_0x282e1a['rows']||[];});else{if(!_0x738a14[_0x348129(0x11da)])return _0x383ec5[_0x348129(0x1617)]['get']({'sectionId':_0x738a14['id']})[_0x348129(0x15e7)][_0x348129(0x64a)](function(_0x51ec28){const _0x409084=_0x348129,_0x92e3d5=_0x28c606()[_0x409084(0x1de5)](_0x51ec28[_0x409084(0x28b8)],function(_0x3aa9c1){const _0x300639=_0x409084;return _0x28c606()['find'](_0x28f3f9[_0x300639(0xad1)],{'id':_0x3aa9c1['resourceId']});});let _0x2495b1=null;_0x28f3f9[_0x409084(0x17cc)]&&(_0x2495b1=_0x28c606()['find'](_0x28f3f9['contexts'],{'name':_0x28f3f9[_0x409084(0x17cc)][_0x409084(0x139)]}));if(_0x2495b1&&!_0x28c606()[_0x409084(0x25f8)](_0x92e3d5,['id',_0x2495b1['id']])){const _0x455471=_0x28c606()[_0x409084(0x27bc)](_0x28f3f9[_0x409084(0xad1)],{'id':_0x2495b1['id']});_0x455471[_0x409084(0xd4f)]=![],_0x92e3d5['push'](_0x455471);}_0x28f3f9[_0x409084(0xad1)]=_0x92e3d5;});}})['catch'](function(_0x3f46b0){const _0x2aa868=_0x2af91b;_0x1aaf67['error']({'title':_0x3f46b0[_0x2aa868(0x10b3)]?_0x2aa868(0x575)+_0x3f46b0[_0x2aa868(0x10b3)]+_0x2aa868(0x21db)+_0x3f46b0[_0x2aa868(0x2115)]:_0x2aa868(0x184b),'msg':_0x3f46b0[_0x2aa868(0x1c52)]?JSON['stringify'](_0x3f46b0[_0x2aa868(0x1c52)]):_0x3f46b0[_0x2aa868(0x2915)]()});});function _0x18d45(){const _0x5d5ed0=_0x2af91b;_0x419d6a['go'](_0x5d5ed0(0x2da),{},{'reload':_0x5d5ed0(0x2da)});}function _0x501a65(){const _0x56501b=_0x2af91b;_0x383ec5[_0x56501b(0x1438)][_0x56501b(0x2603)]({'id':_0x28f3f9[_0x56501b(0x17cc)]['id']},_0x28f3f9['inboundroute'])[_0x56501b(0x15e7)][_0x56501b(0x64a)](function(){const _0x55bc05=_0x56501b;_0x1aaf67[_0x55bc05(0x1339)]({'title':'InboundRoute\x20updated!','msg':_0x28f3f9[_0x55bc05(0x17cc)][_0x55bc05(0x2494)]?_0x28f3f9[_0x55bc05(0x17cc)][_0x55bc05(0x2494)]+_0x55bc05(0x2032):''});})['catch'](function(_0xde841a){const _0x96ba62=_0x56501b;_0x1aaf67['error']({'title':_0xde841a[_0x96ba62(0x10b3)]?_0x96ba62(0x575)+_0xde841a[_0x96ba62(0x10b3)]+'\x20-\x20'+_0xde841a[_0x96ba62(0x2115)]:_0x96ba62(0x209e),'msg':_0xde841a['data']?JSON[_0x96ba62(0x2317)](_0xde841a[_0x96ba62(0x1c52)]):_0xde841a['toString']()});});}}const _0xd0f4d1=_0x40d54a;;const _0x5dd36d=_0x2e4a48['p']+_0x49a1e3(0x274e);;_0x2ec9cc[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),'$mdSidenav','$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x15a7),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6)];function _0x2ec9cc(_0x295136,_0x5c5aeb,_0x1ea7cb,_0x27b518,_0x79ba84,_0x43f7ed,_0x29714e,_0x28051f,_0x5c6650,_0x59daf5,_0xc6ff8d,_0x4f0b06,_0x100496,_0x1c94ee,_0x4f14ec,_0x52af9d,_0x33c5c){const _0x3b9f54=_0x49a1e3,_0x447288=this;_0x447288[_0x3b9f54(0x1947)]=_0x52af9d,_0x447288['setting']=_0x33c5c,_0x447288[_0x3b9f54(0x1d3d)]=_0x4f14ec[_0x3b9f54(0x808)](),_0x447288[_0x3b9f54(0x15a7)]=_0x5c6650||{'count':0x0,'rows':[]},_0x447288[_0x3b9f54(0x16a8)]=_0x59daf5,_0x447288[_0x3b9f54(0x16b2)]=_0xc6ff8d&&_0xc6ff8d[_0x3b9f54(0xb90)]==0x1?_0xc6ff8d[_0x3b9f54(0x28b8)][0x0]:null,_0x447288[_0x3b9f54(0x402)]=_0x4f14ec[_0x3b9f54(0xa7e)](_0x447288[_0x3b9f54(0x16b2)]?_0x447288['userProfileSection']['crudPermissions']:null),_0x447288[_0x3b9f54(0x185d)]=_0x3b9f54(0x15a7),_0x447288[_0x3b9f54(0x300)]='',_0x447288[_0x3b9f54(0x2748)]=null,_0x447288[_0x3b9f54(0x1fce)]=[],_0x447288['query']={'fields':_0x3b9f54(0x18b7),'type':'inbound','sort':_0x3b9f54(0x260c),'VoiceExtensionId':_0x3b9f54(0x8f1),'limit':0xa,'page':0x1},_0x447288[_0x3b9f54(0xff6)]=_0x43a13d,_0x447288[_0x3b9f54(0x1262)]=_0x1cd6b0,_0x447288['success']=_0x100377,_0x447288['getInboundRoutes']=_0x342b83,_0x447288['createOrEditInboundRoute']=_0x202ea2,_0x447288['deleteInboundRoute']=_0x45a4f5,_0x447288[_0x3b9f54(0xcca)]=_0x5a01e8,_0x447288[_0x3b9f54(0x16bd)]=_0x4ee444,_0x447288['deselectInboundRoutes']=_0x51d532,_0x447288['selectAllInboundRoutes']=_0x3b7d09,_0x4f14ec[_0x3b9f54(0x4de)]('admin')?_0x4f0b06[_0x3b9f54(0x1faa)][_0x3b9f54(0x896)]({'fields':_0x3b9f54(0x1427),'sort':_0x3b9f54(0x2494),'nolimit':_0x3b9f54(0x1685)})[_0x3b9f54(0x15e7)][_0x3b9f54(0x64a)](function(_0x1babac){const _0x5a240d=_0x3b9f54;_0x447288[_0x5a240d(0xad1)]=_0x1babac[_0x5a240d(0x28b8)]||[];})['catch'](function(_0x27567b){const _0x3db868=_0x3b9f54;_0x1c94ee[_0x3db868(0x1bd0)]({'title':_0x27567b[_0x3db868(0x10b3)]?_0x3db868(0x575)+_0x27567b[_0x3db868(0x10b3)]+_0x3db868(0x21db)+_0x27567b[_0x3db868(0x2115)]:_0x3db868(0xbea),'msg':_0x27567b[_0x3db868(0x1c52)]?JSON['stringify'](_0x27567b['data']):_0x27567b['toString']()});}):_0x4f0b06[_0x3b9f54(0x1faa)]['get']({'fields':_0x3b9f54(0x1427),'sort':_0x3b9f54(0x2494),'nolimit':_0x3b9f54(0x1685)})['$promise'][_0x3b9f54(0x64a)](function(_0x2ac2ae){_0x447288['contexts']=_0x2ac2ae['rows']||[];})[_0x3b9f54(0x64a)](function(){const _0x3d87e5=_0x3b9f54;return _0x4f0b06['userProfileSection'][_0x3d87e5(0x896)]({'userProfileId':_0x447288[_0x3d87e5(0x1d3d)][_0x3d87e5(0x21ac)],'sectionId':0x195})[_0x3d87e5(0x15e7)];})[_0x3b9f54(0x64a)](function(_0x17dfb6){const _0x2326b4=_0x3b9f54,_0x50b5cb=_0x17dfb6&&_0x17dfb6[_0x2326b4(0x28b8)]?_0x17dfb6['rows'][0x0]:null;if(!_0x50b5cb)return _0x4f0b06[_0x2326b4(0x1faa)][_0x2326b4(0x896)]({'fields':'id,name','sort':_0x2326b4(0x2494),'nolimit':'true','defaultEntry':0x1})[_0x2326b4(0x15e7)][_0x2326b4(0x64a)](function(_0x439989){const _0x404bcd=_0x2326b4;_0x447288[_0x404bcd(0xad1)]=_0x439989[_0x404bcd(0x28b8)]||[];});else{if(!_0x50b5cb[_0x2326b4(0x11da)])return _0x4f0b06[_0x2326b4(0x1617)][_0x2326b4(0x896)]({'sectionId':_0x50b5cb['id']})[_0x2326b4(0x15e7)][_0x2326b4(0x64a)](function(_0x58ab27){const _0x361a64=_0x2326b4,_0x3541f3=_0x28c606()[_0x361a64(0x1de5)](_0x58ab27[_0x361a64(0x28b8)],function(_0x4f2193){const _0x3d8d6c=_0x361a64;return _0x28c606()['find'](_0x447288[_0x3d8d6c(0xad1)],{'id':_0x4f2193['resourceId']});});let _0x71926a=null;_0x447288[_0x361a64(0x17cc)]&&(_0x71926a=_0x28c606()[_0x361a64(0x27bc)](_0x447288[_0x361a64(0xad1)],{'name':_0x447288['inboundroute'][_0x361a64(0x139)]}));if(_0x71926a&&!_0x28c606()[_0x361a64(0x25f8)](_0x3541f3,['id',_0x71926a['id']])){const _0x3c4439=_0x28c606()[_0x361a64(0x27bc)](_0x447288[_0x361a64(0xad1)],{'id':_0x71926a['id']});_0x3c4439[_0x361a64(0xd4f)]=![],_0x3541f3['push'](_0x3c4439);}_0x447288[_0x361a64(0xad1)]=_0x3541f3;});}})[_0x3b9f54(0x20cd)](function(_0x343ea7){const _0x11c357=_0x3b9f54;_0x1c94ee[_0x11c357(0x1bd0)]({'title':_0x343ea7[_0x11c357(0x10b3)]?_0x11c357(0x575)+_0x343ea7[_0x11c357(0x10b3)]+_0x11c357(0x21db)+_0x343ea7[_0x11c357(0x2115)]:_0x11c357(0x184b),'msg':_0x343ea7['data']?JSON['stringify'](_0x343ea7[_0x11c357(0x1c52)]):_0x343ea7[_0x11c357(0x2915)]()});});function _0x43a13d(_0x5862eb){const _0x337bb5=_0x3b9f54;_0x1ea7cb['go'](_0x337bb5(0x758),{'id':_0x5862eb['id'],'inboundroute':_0x5862eb,'crudPermissions':_0x447288['crudPermissions']});}function _0x1cd6b0(_0x19a3c,_0x15d8f7){const _0x153dd3=_0x3b9f54,_0x236707=_0x79ba84[_0x153dd3(0x856)]()[_0x153dd3(0x2021)](_0x153dd3(0x1231)+_0x28c606()[_0x153dd3(0xc01)](_0x153dd3(0x17cc))+'?')[_0x153dd3(0x33a)](''+(_0x19a3c[_0x153dd3(0x2494)]||_0x153dd3(0x17cc))+_0x153dd3(0x26d0)+_0x153dd3(0x4b8))[_0x153dd3(0x213e)](_0x153dd3(0x29e))[_0x153dd3(0x2283)](_0x15d8f7)['ok']('OK')[_0x153dd3(0x101a)]('CANCEL');_0x79ba84['show'](_0x236707)[_0x153dd3(0x64a)](function(){_0x45a4f5(_0x19a3c);},function(){const _0x449008=_0x153dd3;console['log'](_0x449008(0x18fd));});}let _0x3bac35=!![],_0x4d3a38=0x1;_0x295136['$watch'](_0x3b9f54(0x1cb9),function(_0x2fc2e4,_0x4a2450){const _0xf91e6a=_0x3b9f54;_0x3bac35?_0x29714e(function(){_0x3bac35=![];}):(!_0x4a2450&&(_0x4d3a38=_0x447288[_0xf91e6a(0x289a)][_0xf91e6a(0xc72)]),_0x2fc2e4!==_0x4a2450&&(_0x447288[_0xf91e6a(0x289a)][_0xf91e6a(0xc72)]=0x1),!_0x2fc2e4&&(_0x447288[_0xf91e6a(0x289a)][_0xf91e6a(0xc72)]=_0x4d3a38),_0x447288[_0xf91e6a(0x2760)]());});function _0x100377(_0x4c94b8){const _0x2f2bdf=_0x3b9f54;_0x447288[_0x2f2bdf(0x15a7)]=_0x4c94b8||{'count':0x0,'rows':[]};}function _0x342b83(){const _0x7733ee=_0x3b9f54;_0x447288[_0x7733ee(0x289a)][_0x7733ee(0x24f9)]=(_0x447288[_0x7733ee(0x289a)][_0x7733ee(0xc72)]-0x1)*_0x447288[_0x7733ee(0x289a)]['limit'],_0x4f14ec[_0x7733ee(0x4de)](_0x7733ee(0x333))?_0x447288['promise']=_0x4f0b06['voiceExtension'][_0x7733ee(0x896)](_0x447288[_0x7733ee(0x289a)],_0x100377)[_0x7733ee(0x15e7)]:(_0x447288['query']['id']=_0x447288['userProfile']['id'],_0x447288[_0x7733ee(0x289a)][_0x7733ee(0xa21)]=_0x7733ee(0xbbd),_0x447288[_0x7733ee(0x1713)]=_0x4f0b06[_0x7733ee(0x16a8)][_0x7733ee(0x2565)](_0x447288['query'],_0x100377)[_0x7733ee(0x15e7)]);}function _0x202ea2(_0xb22986,_0x3a7b24){const _0x48d84a=_0x3b9f54;_0x79ba84[_0x48d84a(0xa60)]({'controller':_0x48d84a(0x2161),'controllerAs':'vm','templateUrl':_0x5dd36d,'parent':angular[_0x48d84a(0x1f81)](_0x43f7ed[_0x48d84a(0xb49)]),'targetEvent':_0xb22986,'clickOutsideToClose':!![],'locals':{'inboundroute':_0x3a7b24,'inboundroutes':_0x447288[_0x48d84a(0x15a7)][_0x48d84a(0x28b8)],'license':_0x447288[_0x48d84a(0x1947)],'setting':_0x447288[_0x48d84a(0x28d6)],'crudPermissions':_0x447288[_0x48d84a(0x402)]}});}function _0x45a4f5(_0x31c0d2){const _0x377ff4=_0x3b9f54;_0x4f0b06['voiceExtension']['delete']({'id':_0x31c0d2['id']})[_0x377ff4(0x15e7)][_0x377ff4(0x64a)](function(){const _0x284ffc=_0x377ff4;_0x28c606()[_0x284ffc(0x21c7)](_0x447288[_0x284ffc(0x15a7)]['rows'],{'id':_0x31c0d2['id']}),_0x447288['inboundroutes'][_0x284ffc(0xb90)]-=0x1,!_0x447288[_0x284ffc(0x15a7)]['rows'][_0x284ffc(0x1b9e)]&&_0x447288[_0x284ffc(0x2760)](),_0x1c94ee['success']({'title':_0x28c606()[_0x284ffc(0xc01)](_0x284ffc(0x1c08))+_0x284ffc(0x2502),'msg':_0x31c0d2['name']?_0x31c0d2[_0x284ffc(0x2494)]+_0x284ffc(0x1fa8):''});})[_0x377ff4(0x20cd)](function(_0x3d14c8){const _0x43fd25=_0x377ff4;if(_0x3d14c8[_0x43fd25(0x1c52)]&&_0x3d14c8[_0x43fd25(0x1c52)]['errors']&&_0x3d14c8[_0x43fd25(0x1c52)][_0x43fd25(0xbae)]['length']){_0x447288[_0x43fd25(0xbae)]=_0x3d14c8[_0x43fd25(0x1c52)][_0x43fd25(0xbae)]||[{'message':_0x3d14c8[_0x43fd25(0x2915)](),'type':_0x43fd25(0x278b)}];for(let _0xccb4b9=0x0;_0xccb4b9<_0x3d14c8[_0x43fd25(0x1c52)][_0x43fd25(0xbae)][_0x43fd25(0x1b9e)];_0xccb4b9++){_0x1c94ee[_0x43fd25(0x1bd0)]({'title':_0x3d14c8[_0x43fd25(0x1c52)]['errors'][_0xccb4b9][_0x43fd25(0x2185)],'msg':_0x3d14c8[_0x43fd25(0x1c52)][_0x43fd25(0xbae)][_0xccb4b9][_0x43fd25(0x18ca)]});}}else _0x1c94ee[_0x43fd25(0x1bd0)]({'title':_0x3d14c8['status']?_0x43fd25(0x575)+_0x3d14c8['status']+_0x43fd25(0x21db)+_0x3d14c8[_0x43fd25(0x2115)]:_0x43fd25(0x278b),'msg':_0x3d14c8[_0x43fd25(0x1c52)]?JSON[_0x43fd25(0x2317)](_0x3d14c8['data'][_0x43fd25(0x18ca)]):_0x3d14c8[_0x43fd25(0x18ca)]||_0x3d14c8[_0x43fd25(0x2915)]()});});}function _0x5a01e8(){const _0x2b9001=_0x3b9f54,_0x44cead=angular[_0x2b9001(0x289e)](_0x447288['selectedInboundRoutes']);return _0x447288[_0x2b9001(0x1fce)]=[],_0x44cead;}function _0x4ee444(_0x5d949d){const _0x3755f7=_0x3b9f54,_0x4b0c4a=_0x79ba84[_0x3755f7(0x856)]()['title'](_0x3755f7(0xaab))[_0x3755f7(0x33a)](''+_0x447288['selectedInboundRoutes']['length']+_0x3755f7(0x163e)+_0x3755f7(0x4b8))[_0x3755f7(0x213e)](_0x3755f7(0xdd1))[_0x3755f7(0x2283)](_0x5d949d)['ok']('OK')[_0x3755f7(0x101a)](_0x3755f7(0x18fd));_0x79ba84['show'](_0x4b0c4a)[_0x3755f7(0x64a)](function(){const _0x491432=_0x3755f7;_0x447288[_0x491432(0x1fce)]['forEach'](function(_0x362354){_0x45a4f5(_0x362354);}),_0x447288['selectedInboundRoutes']=[];});}function _0x51d532(){const _0x457a7f=_0x3b9f54;_0x447288[_0x457a7f(0x1fce)]=[];}function _0x3b7d09(){const _0x48d0f5=_0x3b9f54;_0x447288[_0x48d0f5(0x1fce)]=_0x447288[_0x48d0f5(0x15a7)][_0x48d0f5(0x28b8)];}}const _0x2fde79=_0x2ec9cc;;_0x2e1033['$inject']=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x1cae),_0x49a1e3(0x18b9),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6),'crudPermissions'];function _0x2e1033(_0x35ef0c,_0x45d6f1,_0x2666a8,_0x10be32,_0x543c4c,_0x2e814d,_0x62518c,_0x9285a4,_0x1ed4a0,_0x266023,_0xfa656,_0x582b16,_0x2d0d58,_0x4fc991){const _0x33b236=_0x49a1e3,_0x4c3667=this;_0x4c3667['currentUser']=_0xfa656['getCurrentUser'](),_0x4c3667[_0x33b236(0xbae)]=[],_0x4c3667[_0x33b236(0x28d6)]=_0x2d0d58,_0x4c3667['license']=_0x582b16,_0x4c3667['crudPermissions']=_0x4fc991,_0x4c3667[_0x33b236(0x6c2)]={},_0x4c3667[_0x33b236(0xccc)]=_0x4c3667[_0x33b236(0x28d6)]&&_0x4c3667[_0x33b236(0x28d6)][_0x33b236(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4c3667[_0x33b236(0x2021)]=_0x33b236(0x14e3),_0x4c3667[_0x33b236(0x18b9)]=angular['copy'](_0x1ed4a0),_0x4c3667[_0x33b236(0x1cae)]=_0x9285a4,_0x4c3667[_0x33b236(0x29d)]=![];!_0x4c3667[_0x33b236(0x18b9)]&&(_0x4c3667[_0x33b236(0x18b9)]={'appdata':_0x33b236(0x23c2),'type':'internal','context':_0x33b236(0x275)},_0x4c3667[_0x33b236(0x2021)]=_0x33b236(0x587),_0x4c3667['newInternalRoute']=!![]);_0x4c3667[_0x33b236(0x11e9)]=_0x1da445,_0x4c3667[_0x33b236(0x1317)]=_0x1e6aed,_0x4c3667[_0x33b236(0x19d9)]=_0x2f8c93,_0x4c3667[_0x33b236(0x1605)]=_0x4246fd,_0x4c3667['closeDialog']=_0x3674d9,_0xfa656['hasRole']('admin')?_0x266023['voiceContext'][_0x33b236(0x896)]({'fields':_0x33b236(0x1427),'sort':_0x33b236(0x2494),'nolimit':_0x33b236(0x1685)})[_0x33b236(0x15e7)]['then'](function(_0x27cc2e){const _0x287184=_0x33b236;_0x4c3667[_0x287184(0xad1)]=_0x27cc2e[_0x287184(0x28b8)]||[];})['catch'](function(_0x1236a1){const _0x4e9153=_0x33b236;_0x62518c['error']({'title':_0x1236a1[_0x4e9153(0x10b3)]?_0x4e9153(0x575)+_0x1236a1['status']+'\x20-\x20'+_0x1236a1[_0x4e9153(0x2115)]:'SYSTEM:GET_CONTEXTS','msg':_0x1236a1[_0x4e9153(0x1c52)]?JSON[_0x4e9153(0x2317)](_0x1236a1[_0x4e9153(0x1c52)]):_0x1236a1['toString']()});}):_0x266023[_0x33b236(0x1faa)][_0x33b236(0x896)]({'fields':_0x33b236(0x1427),'sort':'name','nolimit':_0x33b236(0x1685)})['$promise'][_0x33b236(0x64a)](function(_0x69a51b){const _0x5cf792=_0x33b236;_0x4c3667['contexts']=_0x69a51b[_0x5cf792(0x28b8)]||[];})['then'](function(){const _0x20888e=_0x33b236;return _0x266023['userProfileSection'][_0x20888e(0x896)]({'userProfileId':_0x4c3667[_0x20888e(0x1d3d)]['userProfileId'],'sectionId':0x195})[_0x20888e(0x15e7)];})['then'](function(_0x3d0d99){const _0x44e40d=_0x33b236,_0x531799=_0x3d0d99&&_0x3d0d99['rows']?_0x3d0d99['rows'][0x0]:null;if(!_0x531799)return _0x266023[_0x44e40d(0x1faa)][_0x44e40d(0x896)]({'fields':_0x44e40d(0x1427),'sort':'name','nolimit':'true','defaultEntry':0x1})['$promise'][_0x44e40d(0x64a)](function(_0x348cca){const _0x41b586=_0x44e40d;_0x4c3667[_0x41b586(0xad1)]=_0x348cca[_0x41b586(0x28b8)]||[];});else{if(!_0x531799[_0x44e40d(0x11da)])return _0x266023[_0x44e40d(0x1617)][_0x44e40d(0x896)]({'sectionId':_0x531799['id']})[_0x44e40d(0x15e7)][_0x44e40d(0x64a)](function(_0x3a020e){const _0x1893ea=_0x44e40d,_0x507b37=_0x28c606()[_0x1893ea(0x1de5)](_0x3a020e['rows'],function(_0x56535e){const _0x1a1d0f=_0x1893ea;return _0x28c606()[_0x1a1d0f(0x27bc)](_0x4c3667[_0x1a1d0f(0xad1)],{'id':_0x56535e[_0x1a1d0f(0x145)]});});let _0x66aae9=null;_0x4c3667[_0x1893ea(0x18b9)]&&(_0x66aae9=_0x28c606()['find'](_0x4c3667['contexts'],{'name':_0x4c3667[_0x1893ea(0x18b9)][_0x1893ea(0x139)]}));if(_0x66aae9&&!_0x28c606()[_0x1893ea(0x25f8)](_0x507b37,['id',_0x66aae9['id']])){const _0x351512=_0x28c606()[_0x1893ea(0x27bc)](_0x4c3667[_0x1893ea(0xad1)],{'id':_0x66aae9['id']});_0x351512[_0x1893ea(0xd4f)]=![],_0x507b37[_0x1893ea(0x1954)](_0x351512);}_0x4c3667[_0x1893ea(0xad1)]=_0x507b37;});}})[_0x33b236(0x20cd)](function(_0x3c1625){const _0x3f253e=_0x33b236;_0x62518c[_0x3f253e(0x1bd0)]({'title':_0x3c1625[_0x3f253e(0x10b3)]?'API:'+_0x3c1625['status']+_0x3f253e(0x21db)+_0x3c1625[_0x3f253e(0x2115)]:'SYSTEM:GETcontexts','msg':_0x3c1625[_0x3f253e(0x1c52)]?JSON[_0x3f253e(0x2317)](_0x3c1625[_0x3f253e(0x1c52)]):_0x3c1625[_0x3f253e(0x2915)]()});});function _0x1da445(){const _0x281e37=_0x33b236;_0x4c3667[_0x281e37(0xbae)]=[],_0x266023[_0x281e37(0x1438)][_0x281e37(0x2479)](_0x4c3667[_0x281e37(0x18b9)])[_0x281e37(0x15e7)][_0x281e37(0x64a)](function(_0x4db524){const _0x3704de=_0x281e37;_0x4c3667[_0x3704de(0x1cae)][_0x3704de(0x1891)](_0x4db524[_0x3704de(0x14f8)]()),_0x62518c[_0x3704de(0x1339)]({'title':'InternalRoute\x20properly\x20created','msg':_0x4c3667[_0x3704de(0x18b9)][_0x3704de(0x2494)]?_0x4c3667[_0x3704de(0x18b9)][_0x3704de(0x2494)]+_0x3704de(0x258d):''}),_0x3674d9(_0x4db524);})[_0x281e37(0x20cd)](function(_0x2073ae){const _0x494f00=_0x281e37;if(_0x2073ae[_0x494f00(0x1c52)]&&_0x2073ae[_0x494f00(0x1c52)][_0x494f00(0xbae)]&&_0x2073ae[_0x494f00(0x1c52)][_0x494f00(0xbae)]['length']){_0x4c3667[_0x494f00(0xbae)]=_0x2073ae[_0x494f00(0x1c52)][_0x494f00(0xbae)]||[{'message':_0x2073ae[_0x494f00(0x2915)](),'type':_0x494f00(0x177a)}];for(let _0x196709=0x0;_0x196709<_0x2073ae[_0x494f00(0x1c52)][_0x494f00(0xbae)][_0x494f00(0x1b9e)];_0x196709+=0x1){_0x62518c['error']({'title':_0x2073ae[_0x494f00(0x1c52)]['errors'][_0x196709]['type'],'msg':_0x2073ae[_0x494f00(0x1c52)][_0x494f00(0xbae)][_0x196709]['message']});}}else _0x62518c[_0x494f00(0x1bd0)]({'title':_0x2073ae['status']?_0x494f00(0x575)+_0x2073ae['status']+'\x20-\x20'+_0x2073ae[_0x494f00(0x2115)]:_0x494f00(0x177a),'msg':_0x2073ae[_0x494f00(0x1c52)]?JSON['stringify'](_0x2073ae[_0x494f00(0x1c52)][_0x494f00(0x18ca)]):_0x2073ae['toString']()});});}function _0x1e6aed(){const _0x256048=_0x33b236;_0x4c3667[_0x256048(0xbae)]=[],_0x266023[_0x256048(0x1438)]['update']({'id':_0x4c3667[_0x256048(0x18b9)]['id']},_0x4c3667[_0x256048(0x18b9)])[_0x256048(0x15e7)]['then'](function(_0x2be461){const _0x2da049=_0x256048,_0x198c84=_0x28c606()['find'](_0x4c3667[_0x2da049(0x1cae)],{'id':_0x2be461['id']});_0x198c84&&_0x28c606()[_0x2da049(0x14fe)](_0x198c84,_0x28c606()[_0x2da049(0x27bb)](_0x2be461[_0x2da049(0x14f8)](),_0x28c606()['keys'](_0x198c84))),_0x62518c['success']({'title':'InternalRoute\x20properly\x20saved!','msg':_0x4c3667['internalroute'][_0x2da049(0x2494)]?_0x4c3667['internalroute'][_0x2da049(0x2494)]+_0x2da049(0x271):''}),_0x3674d9(_0x2be461);})['catch'](function(_0x3acd1a){const _0x590c62=_0x256048;if(_0x3acd1a[_0x590c62(0x1c52)]&&_0x3acd1a[_0x590c62(0x1c52)][_0x590c62(0xbae)]&&_0x3acd1a[_0x590c62(0x1c52)][_0x590c62(0xbae)][_0x590c62(0x1b9e)]){_0x4c3667['errors']=_0x3acd1a[_0x590c62(0x1c52)][_0x590c62(0xbae)]||[{'message':_0x3acd1a[_0x590c62(0x2915)](),'type':'api.voiceExtension.update'}];for(let _0x2f3703=0x0;_0x2f3703<_0x3acd1a[_0x590c62(0x1c52)][_0x590c62(0xbae)]['length'];_0x2f3703++){_0x62518c[_0x590c62(0x1bd0)]({'title':_0x3acd1a[_0x590c62(0x1c52)][_0x590c62(0xbae)][_0x2f3703][_0x590c62(0x2185)],'msg':_0x3acd1a[_0x590c62(0x1c52)]['errors'][_0x2f3703][_0x590c62(0x18ca)]});}}else _0x62518c[_0x590c62(0x1bd0)]({'title':_0x3acd1a[_0x590c62(0x10b3)]?_0x590c62(0x575)+_0x3acd1a[_0x590c62(0x10b3)]+_0x590c62(0x21db)+_0x3acd1a[_0x590c62(0x2115)]:'api.voiceExtension.update','msg':_0x3acd1a['data']?JSON[_0x590c62(0x2317)](_0x3acd1a['data'][_0x590c62(0x18ca)]):_0x3acd1a[_0x590c62(0x2915)]()});});}function _0x2f8c93(_0x3540f8){const _0xee3a80=_0x33b236;_0x4c3667[_0xee3a80(0xbae)]=[];const _0x767e5d=_0x10be32[_0xee3a80(0x856)]()['title'](_0xee3a80(0x103a))['content']('The\x20internalroute\x20will\x20be\x20deleted.')[_0xee3a80(0x213e)](_0xee3a80(0x1f14))['ok'](_0xee3a80(0x2664))[_0xee3a80(0x101a)]('Cancel')[_0xee3a80(0x2283)](_0x3540f8);_0x10be32[_0xee3a80(0xa60)](_0x767e5d)[_0xee3a80(0x64a)](function(){const _0x55ebb4=_0xee3a80;_0x266023[_0x55ebb4(0x1438)]['delete']({'id':_0x4c3667[_0x55ebb4(0x18b9)]['id']})[_0x55ebb4(0x15e7)][_0x55ebb4(0x64a)](function(){const _0x2c3446=_0x55ebb4;_0x28c606()[_0x2c3446(0x21c7)](_0x4c3667[_0x2c3446(0x1cae)],{'id':_0x4c3667['internalroute']['id']}),_0x62518c[_0x2c3446(0x1339)]({'title':'InternalRoute\x20properly\x20deleted!','msg':(_0x4c3667['internalroute'][_0x2c3446(0x2494)]||_0x2c3446(0x18b9))+'\x20has\x20been\x20deleted!'}),_0x3674d9(_0x4c3667[_0x2c3446(0x18b9)]);})[_0x55ebb4(0x20cd)](function(_0x1a93b5){const _0x2c171c=_0x55ebb4;if(_0x1a93b5[_0x2c171c(0x1c52)]&&_0x1a93b5['data'][_0x2c171c(0xbae)]&&_0x1a93b5[_0x2c171c(0x1c52)][_0x2c171c(0xbae)][_0x2c171c(0x1b9e)]){_0x4c3667[_0x2c171c(0xbae)]=_0x1a93b5[_0x2c171c(0x1c52)][_0x2c171c(0xbae)]||[{'message':_0x1a93b5[_0x2c171c(0x2915)](),'type':_0x2c171c(0x6ea)}];for(let _0x302d47=0x0;_0x302d47<_0x1a93b5['data'][_0x2c171c(0xbae)][_0x2c171c(0x1b9e)];_0x302d47++){_0x62518c['error']({'title':_0x1a93b5[_0x2c171c(0x1c52)][_0x2c171c(0xbae)][_0x302d47][_0x2c171c(0x2185)],'msg':_0x1a93b5[_0x2c171c(0x1c52)][_0x2c171c(0xbae)][_0x302d47][_0x2c171c(0x18ca)]});}}else _0x62518c[_0x2c171c(0x1bd0)]({'title':_0x1a93b5['status']?_0x2c171c(0x575)+_0x1a93b5[_0x2c171c(0x10b3)]+_0x2c171c(0x21db)+_0x1a93b5[_0x2c171c(0x2115)]:'api.voiceExtension.delete','msg':_0x1a93b5[_0x2c171c(0x1c52)]?JSON['stringify'](_0x1a93b5[_0x2c171c(0x1c52)][_0x2c171c(0x18ca)]):_0x1a93b5[_0x2c171c(0x18ca)]||_0x1a93b5[_0x2c171c(0x2915)]()});});},function(){});}function _0x4246fd(_0x27cd54){return _0x27cd54===null?undefined:new Date(_0x27cd54);}function _0x3674d9(_0x327632){_0x10be32['hide'](_0x327632);}}const _0x1ea418=_0x2e1033;;const _0x1da9c4=_0x2e4a48['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/agi/dialog.html/dialog.html';;const _0xce950a=_0x2e4a48['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/custom/dialog.html/dialog.html';;const _0x3b2e9d=_0x2e4a48['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/dial/dialog.html/dialog.html';;const _0x2313bd=_0x2e4a48['p']+_0x49a1e3(0xdac);;const _0x1f27c1=_0x2e4a48['p']+_0x49a1e3(0x210f);;const _0x18da6b=_0x2e4a48['p']+_0x49a1e3(0x17a0);;const _0x327d03=_0x2e4a48['p']+_0x49a1e3(0x153d);;const _0x3cfb5a=_0x2e4a48['p']+_0x49a1e3(0x1705);;const _0x3ee2cd=_0x2e4a48['p']+_0x49a1e3(0x1073);;const _0x5d7843=_0x2e4a48['p']+_0x49a1e3(0x19fe);;const _0x3761f1=_0x2e4a48['p']+_0x49a1e3(0x75b);;const _0x13dd2f=_0x2e4a48['p']+_0x49a1e3(0xb72);;const _0x3bc9c4=_0x2e4a48['p']+_0x49a1e3(0x1d27);;_0x21b9dc['$inject']=[_0x49a1e3(0xa19),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x680),'Auth'];const _0x268a3c={'agi':_0x1da9c4,'custom':_0xce950a,'dial':_0x3b2e9d,'externaldial':_0x2313bd,'goto':_0x1f27c1,'hangup':_0x18da6b,'internaldial':_0x327d03,'interval':_0x3cfb5a,'playback':_0x3ee2cd,'queue':_0x5d7843,'ringgroup':_0x3761f1,'set':_0x13dd2f,'voicemail':_0x3bc9c4};function _0x21b9dc(_0x26635b,_0x5699ac,_0x2f6053,_0x386ac8,_0x26ecc2){const _0x373f4f=_0x49a1e3,_0x5d104a=this;_0x5d104a[_0x373f4f(0x1d3d)]=_0x26ecc2['getCurrentUser'](),_0x5d104a[_0x373f4f(0x18b9)]={},_0x5d104a[_0x373f4f(0x2757)]={'count':0x0,'rows':[]},_0x5d104a[_0x373f4f(0x1642)]=[],_0x5d104a[_0x373f4f(0x402)],_0x5d104a[_0x373f4f(0x289a)]={'sort':_0x373f4f(0x1095)},_0x5d104a[_0x373f4f(0x1018)]=_0x28c606()[_0x373f4f(0x19d2)](_0x28c606()[_0x373f4f(0x1643)]([{'app':_0x373f4f(0x1f03),'appType':_0x373f4f(0xcfd),'type':_0x373f4f(0x7a5),'types':['always','custom','list'],'fields':[],'isApp':![]},{'app':'Queue','appType':_0x373f4f(0x1e4e),'context':_0x373f4f(0x275),'type':_0x373f4f(0x7a5),'options':'xX','appdata':_0x373f4f(0x2688),'icon':_0x373f4f(0xd46),'interval':_0x373f4f(0x2145),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x373f4f(0x16df),'field':{'name':_0x373f4f(0x282b),'key':_0x373f4f(0x962),'prefix':_0x373f4f(0x1381)},'route':_0x373f4f(0x282b),'filters':{'fields':'id,name,save_name','sort':_0x373f4f(0x2494),'nolimit':!![]},'permissions':{'section':0x3ef}},{'name':_0x373f4f(0x1c06),'field':{'name':_0x373f4f(0x1e4e),'key':_0x373f4f(0x2494)},'route':_0x373f4f(0x178b),'filters':{'type':_0x373f4f(0x12a4),'fields':'id,name,type','sort':_0x373f4f(0x2494),'nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':'Queue','name':_0x373f4f(0x1e4e),'type':'apiselect','values':_0x373f4f(0x1c06),'value':_0x373f4f(0x5ca),'option':_0x373f4f(0x5ca),'required':!![],'param':0x0},{'title':'Options','name':_0x373f4f(0x59e),'type':_0x373f4f(0x39b),'param':0x1},{'title':_0x373f4f(0x9f7),'name':_0x373f4f(0xea4),'type':'text','param':0x2},{'title':_0x373f4f(0x2ae),'name':'sound','type':_0x373f4f(0x26e8),'values':_0x373f4f(0x16df),'value':_0x373f4f(0x1ebb),'option':_0x373f4f(0x22ce),'defaultValues':[{'value':'\x27\x27','option':_0x373f4f(0x8c8)}],'param':0x3},{'title':_0x373f4f(0x66e),'name':_0x373f4f(0x16d),'type':_0x373f4f(0x2113),'min':0x0,'param':0x4},{'title':'Agi','name':_0x373f4f(0x1e67),'type':_0x373f4f(0x39b),'param':0x5},{'title':_0x373f4f(0x2095),'name':_0x373f4f(0x2542),'type':_0x373f4f(0x39b),'param':0x6},{'title':_0x373f4f(0x1e90),'name':_0x373f4f(0x17e),'type':_0x373f4f(0x39b),'param':0x7},{'title':'Rule','name':_0x373f4f(0x1487),'type':_0x373f4f(0x39b),'param':0x8},{'title':_0x373f4f(0x1014),'name':_0x373f4f(0x14f7),'type':_0x373f4f(0x2113),'min':0x0,'param':0x9},{'title':_0x373f4f(0x1150),'name':'answer','type':'switch','general':!![]}]},{'app':_0x373f4f(0x1eda),'appType':_0x373f4f(0x1001),'context':_0x373f4f(0x275),'type':'Internal','icon':'icon-apps','interval':_0x373f4f(0x2145),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x373f4f(0x16df),'field':{'name':_0x373f4f(0xacb),'key':'save_name','prefix':_0x373f4f(0x1381)},'route':_0x373f4f(0x282b),'filters':{'fields':_0x373f4f(0x2246),'sort':_0x373f4f(0x2494),'nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':_0x373f4f(0x135a),'name':'appdata','type':'apiselect','values':'sounds','value':'\x27/var/opt/motion2/server/files/sounds/converted/{{appdata.save_name}}\x27','option':'appdata.name','required':!![],'param':0x0},{'title':_0x373f4f(0x1df6),'name':_0x373f4f(0x59e),'type':_0x373f4f(0x39b),'param':0x1},{'title':_0x373f4f(0x1150),'name':_0x373f4f(0x122c),'type':'switch','general':!![]}]},{'app':_0x373f4f(0x38a),'appType':_0x373f4f(0x19b6),'context':'from-sip','type':_0x373f4f(0x7a5),'icon':_0x373f4f(0xd46),'options':'xX','interval':_0x373f4f(0x2145),'isApp':!![],'fields':[{'title':'Technology/Resource','name':_0x373f4f(0x17ca),'type':_0x373f4f(0x39b),'required':!![],'param':0x0},{'title':'Timeout','name':_0x373f4f(0x16d),'type':_0x373f4f(0x2113),'min':0x0,'param':0x1},{'title':_0x373f4f(0x1df6),'name':'options','type':_0x373f4f(0x39b),'param':0x2},{'title':_0x373f4f(0x9f7),'name':_0x373f4f(0x2761),'type':_0x373f4f(0x39b),'param':0x3}]},{'app':_0x373f4f(0x38a),'appType':_0x373f4f(0x460),'context':_0x373f4f(0x275),'type':_0x373f4f(0x7a5),'icon':_0x373f4f(0xd46),'options':'xX','interval':_0x373f4f(0x2145),'isApp':!![],'extraApi':[{'name':_0x373f4f(0xff5),'field':{'name':_0x373f4f(0x2e8),'key':_0x373f4f(0x2494),'prefix':_0x373f4f(0xaf8)},'route':_0x373f4f(0x2e8),'filters':{'fields':_0x373f4f(0x298b),'sort':_0x373f4f(0x2494),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':'agent'},{'id':0xcb,'role':'telephone'}]}}],'fields':[{'title':_0x373f4f(0x1098),'name':_0x373f4f(0x2e8),'type':_0x373f4f(0x26e8),'values':'users','value':_0x373f4f(0x1848),'option':_0x373f4f(0xccf),'required':!![],'param':0x0},{'title':_0x373f4f(0x66e),'name':_0x373f4f(0x16d),'type':_0x373f4f(0x2113),'min':0x0,'param':0x1},{'title':'Options','name':_0x373f4f(0x59e),'type':_0x373f4f(0x39b),'param':0x2},{'title':_0x373f4f(0x9f7),'name':_0x373f4f(0x2761),'type':_0x373f4f(0x39b),'param':0x3}]},{'app':_0x373f4f(0x38a),'appType':_0x373f4f(0x4db),'context':'from-sip','type':_0x373f4f(0x7a5),'icon':'icon-apps','interval':_0x373f4f(0x2145),'options':'xX','isApp':!![],'extraApi':[{'name':'trunks','field':{'name':_0x373f4f(0x4ef),'key':_0x373f4f(0x2494)},'route':_0x373f4f(0x4ef),'filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':_0x373f4f(0x1608),'name':'trunk','type':'apiselect','values':_0x373f4f(0xe23),'value':_0x373f4f(0x2501),'option':_0x373f4f(0x2501),'required':!![],'param':0x0},{'title':_0x373f4f(0x97a),'name':_0x373f4f(0x267a),'type':_0x373f4f(0x39b)},{'title':_0x373f4f(0x66e),'name':_0x373f4f(0x16d),'type':_0x373f4f(0x2113),'min':0x0,'param':0x1},{'title':_0x373f4f(0x1df6),'name':_0x373f4f(0x59e),'type':'text','param':0x2},{'title':'Url','name':_0x373f4f(0x2761),'type':_0x373f4f(0x39b),'param':0x3}]},{'app':_0x373f4f(0x38a),'appType':_0x373f4f(0x1b92),'context':_0x373f4f(0x275),'type':_0x373f4f(0x7a5),'icon':_0x373f4f(0xd46),'interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':_0x373f4f(0xff5),'field':{'name':_0x373f4f(0x2627),'key':'name','prefix':'SIP/'},'route':_0x373f4f(0x2e8),'filters':{'fields':_0x373f4f(0x298b),'sort':_0x373f4f(0x2494),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x373f4f(0x11ae)},{'id':0xcb,'role':_0x373f4f(0x1782)}]}}],'fields':[{'title':_0x373f4f(0x1098),'name':_0x373f4f(0x2627),'type':_0x373f4f(0x26e8),'multiple':!![],'values':'users','value':'\x27SIP/{{multipleUsers.name}}\x27','option':_0x373f4f(0x848),'required':!![],'param':0x0},{'title':_0x373f4f(0x66e),'name':_0x373f4f(0x16d),'type':_0x373f4f(0x2113),'min':0x0,'param':0x1},{'title':'Options','name':'options','type':_0x373f4f(0x39b),'param':0x2},{'title':'Url','name':_0x373f4f(0x2761),'type':'text','param':0x3}]},{'app':'AGI','alias':_0x373f4f(0xab1),'appType':_0x373f4f(0x1e67),'context':_0x373f4f(0x275),'type':_0x373f4f(0x7a5),'icon':_0x373f4f(0xd46),'interval':_0x373f4f(0x2145),'isApp':!![],'extraApi':[{'name':_0x373f4f(0x1d73),'field':{'name':_0x373f4f(0x1bd9),'key':_0x373f4f(0x2494),'prefix':_0x373f4f(0x169)},'route':_0x373f4f(0x2101),'filters':{'fields':'id,name','sort':_0x373f4f(0x2494),'nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':_0x373f4f(0x17e0),'name':_0x373f4f(0x1bd9),'type':'apiselect','values':_0x373f4f(0x1d73),'value':'\x27agi://127.0.0.1/square,{{project.name}}\x27','option':'project.name','required':!![],'param':0x0}]},{'app':_0x373f4f(0x1e5a),'appType':_0x373f4f(0x6e2),'context':_0x373f4f(0x275),'type':'Internal','icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x373f4f(0xad1),'field':{'name':_0x373f4f(0x139),'key':_0x373f4f(0x2494)},'route':'voiceContext','filters':{'fields':_0x373f4f(0x1427),'sort':'name','nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':_0x373f4f(0xa08),'name':_0x373f4f(0x139),'type':_0x373f4f(0x26e8),'values':_0x373f4f(0xad1),'value':_0x373f4f(0xfb8),'option':'context.name','required':!![],'param':0x0},{'title':_0x373f4f(0x25b0),'name':_0x373f4f(0x13d4),'type':_0x373f4f(0x39b),'required':!![],'param':0x1},{'title':_0x373f4f(0x27f2),'name':_0x373f4f(0x1095),'type':_0x373f4f(0x39b),'required':!![],'param':0x2}]},{'app':_0x373f4f(0x19dc),'appType':_0x373f4f(0x19dc),'context':_0x373f4f(0x275),'type':'Internal','icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':'Hangup_Cause','name':'appdata','type':_0x373f4f(0x2926),'param':0x0,'values':[{'option':_0x373f4f(0xccd),'value':'\x271\x27'},{'option':_0x373f4f(0x90f),'value':_0x373f4f(0x15fa)},{'option':_0x373f4f(0x11e4),'value':_0x373f4f(0x20fd)},{'option':'HANGUPCAUSE_18','value':_0x373f4f(0x15bb)},{'option':_0x373f4f(0x1030),'value':'\x2721\x27'},{'option':'HANGUPCAUSE_22','value':_0x373f4f(0x1bb5)},{'option':_0x373f4f(0x5cc),'value':_0x373f4f(0x124e)},{'option':'HANGUPCAUSE_38','value':_0x373f4f(0x22f9)},{'option':_0x373f4f(0x1f0c),'value':_0x373f4f(0x1f3d)}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0x373f4f(0x1c13),'appType':_0x373f4f(0x1979),'context':_0x373f4f(0x275),'type':_0x373f4f(0x7a5),'separator':'=','icon':_0x373f4f(0xd46),'interval':_0x373f4f(0x2145),'extraApi':[{'name':_0x373f4f(0x145c),'field':{'name':_0x373f4f(0x2494),'key':_0x373f4f(0x2494)},'route':_0x373f4f(0xefb),'filters':{'fields':_0x373f4f(0x1427),'sort':_0x373f4f(0x2494),'nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':_0x373f4f(0x1538),'name':_0x373f4f(0x2494),'type':'apiselect','values':_0x373f4f(0x145c),'value':_0x373f4f(0x15b6),'option':_0x373f4f(0x15b6),'required':!![],'param':0x0},{'title':_0x373f4f(0x107f),'name':_0x373f4f(0x1096),'type':_0x373f4f(0x39b),'required':!![],'param':0x1}]},{'app':null,'appType':_0x373f4f(0x1ad6),'icon':'icon-apps','type':_0x373f4f(0x7a5),'interval':_0x373f4f(0x2145),'isApp':!![],'fields':[{'title':_0x373f4f(0x1e8a),'name':_0x373f4f(0x16e1),'type':'text','required':!![],'param':0x0},{'title':'Arguments','name':'appdata','type':_0x373f4f(0x39b),'param':0x1}]},{'app':_0x373f4f(0xd7f),'appType':'voicemail','context':_0x373f4f(0x275),'icon':_0x373f4f(0xd46),'type':_0x373f4f(0x7a5),'interval':_0x373f4f(0x2145),'isApp':!![],'extraApi':[{'name':_0x373f4f(0x5e4),'field':{'name':_0x373f4f(0x1e43),'key':'mailbox','suffix':_0x373f4f(0x1795)},'route':_0x373f4f(0x1e43),'filters':{'fields':_0x373f4f(0x2419),'sort':'mailbox','nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':_0x373f4f(0x2a7),'name':'voiceMail','type':_0x373f4f(0x26e8),'values':'voiceMails','value':_0x373f4f(0x2226),'option':'voiceMail.mailbox','required':!![],'param':0x0},{'title':_0x373f4f(0x1df6),'name':_0x373f4f(0x59e),'type':_0x373f4f(0x39b),'param':0x1}]}],[_0x373f4f(0x16e1)]),{'isApp':![]}),_0x5d104a[_0x373f4f(0x2764)]={'group':{'name':_0x373f4f(0x7f2),'pull':_0x373f4f(0x24b2)},'animation':0x64,'sort':![]},_0x5d104a['applications']={'group':{'name':_0x373f4f(0x3a8),'put':_0x373f4f(0x7f2)},'animation':0x64,'onAdd':function(_0x27ab8b){const _0x30d9e0=_0x373f4f;_0x1dc8e2(_0x27ab8b,_0x27ab8b[_0x30d9e0(0xa3e)]);},'onSort':function(){_0x11ef3d();}},_0x5d104a['init']=_0x156520,_0x5d104a[_0x373f4f(0x217e)]=_0x5af6d9,_0x5d104a[_0x373f4f(0xdb7)]=_0x2f7fae,_0x5d104a[_0x373f4f(0x252d)]=_0x1dc8e2,_0x5d104a[_0x373f4f(0x2427)]=_0x2fc2f0,_0x5d104a[_0x373f4f(0x6d8)]=_0x7454d4,_0x5d104a['deleteSelectedInternalRouteApps']=_0x132f81,_0x5d104a[_0x373f4f(0x14d0)]=_0x11ef3d,_0x5d104a[_0x373f4f(0x1039)]=_0x57b8c5;function _0x156520(_0x113b6d,_0x1fce13){const _0x4374a2=_0x373f4f;_0x5d104a[_0x4374a2(0x18b9)]=_0x113b6d,_0x5d104a[_0x4374a2(0x402)]=typeof _0x1fce13!==_0x4374a2(0x19a1)?_0x1fce13:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5d104a[_0x4374a2(0x221f)][_0x4374a2(0x1a95)]=!_0x5d104a[_0x4374a2(0x402)][_0x4374a2(0xd86)]?!![]:![],_0x5d104a[_0x4374a2(0x289a)][_0x4374a2(0x2551)]=_0x113b6d['id'],_0x5d104a[_0x4374a2(0x289a)][_0x4374a2(0x210d)]=!![],_0x5d104a[_0x4374a2(0x289a)][_0x4374a2(0x13d8)]=!![],_0x5d104a[_0x4374a2(0xdb7)](),_0x5d104a[_0x4374a2(0x1039)]();}function _0x5af6d9(_0x1f3a65,_0x509134,_0x573b70){const _0x375227=_0x373f4f,_0x50f652=_0x5699ac[_0x375227(0x856)]()[_0x375227(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0x375227(0x33a)](_0x375227(0x50b)+_0x1f3a65[_0x375227(0x16e1)]+''+_0x375227(0x4b8))[_0x375227(0x213e)](_0x375227(0x1260))[_0x375227(0x2283)](_0x573b70)['ok']('OK')['cancel'](_0x375227(0x18fd));_0x5699ac['show'](_0x50f652)[_0x375227(0x64a)](function(){const _0x1d0ee6=_0x375227;_0x5d104a['internalrouteApps'][_0x1d0ee6(0x28b8)][_0x1d0ee6(0x18f0)](_0x509134,0x1),_0x11ef3d();},function(){const _0x2c3c37=_0x375227;console[_0x2c3c37(0x9b4)](_0x2c3c37(0x18fd));});}function _0x1dc8e2(_0x36da75,_0x4ab8e2){const _0x510de1=_0x373f4f;if(_0x5d104a[_0x510de1(0x2757)][_0x510de1(0x28b8)]['length']){const _0x1b36db=_0x5d104a[_0x510de1(0x2757)][_0x510de1(0x28b8)][_0x4ab8e2]?_0x5d104a['internalrouteApps'][_0x510de1(0x28b8)][_0x4ab8e2]:_0x5d104a[_0x510de1(0x2757)][_0x510de1(0x28b8)][0x0],_0x1282ea=(_0x1b36db[_0x510de1(0x4f4)]||_0x1b36db[_0x510de1(0x16e1)])['toLowerCase']();_0x5699ac[_0x510de1(0xa60)]({'controller':'EditInternalApp'+_0x1282ea+_0x510de1(0x1528),'controllerAs':'vm','templateUrl':_0x268a3c[_0x1282ea],'parent':angular[_0x510de1(0x1f81)](_0x2f6053['body']),'targetEvent':_0x36da75,'clickOutsideToClose':!![],'locals':{'internalrouteApp':_0x1b36db,'internalroute':_0x5d104a[_0x510de1(0x18b9)],'crudPermissions':_0x5d104a[_0x510de1(0x402)]}})[_0x510de1(0x64a)](function(_0x341e88){const _0x218ff5=_0x510de1;_0x341e88&&(_0x341e88['id']?_0x5d104a[_0x218ff5(0x2757)][_0x218ff5(0x28b8)][_0x4ab8e2]=_0x341e88:_0x5d104a[_0x218ff5(0x2757)][_0x218ff5(0x28b8)]['splice'](_0x4ab8e2,0x0,_0x341e88),_0x11ef3d());})[_0x510de1(0x20cd)](function(_0x3e4eac){const _0x1f6cd5=_0x510de1;_0x3e4eac&&_0x386ac8['error']({'title':_0x3e4eac[_0x1f6cd5(0x10b3)]?_0x1f6cd5(0x575)+_0x3e4eac[_0x1f6cd5(0x10b3)]+_0x1f6cd5(0x21db)+_0x3e4eac[_0x1f6cd5(0x2115)]:'SYSTEM:EDITMODALSHOW','msg':_0x3e4eac['data']?JSON[_0x1f6cd5(0x2317)](_0x3e4eac[_0x1f6cd5(0x1c52)]):_0x3e4eac['toString']()});});}}function _0x2fc2f0(_0x24375e,_0x4e3c5e){const _0x1af7eb=_0x373f4f;if(_0x5d104a[_0x1af7eb(0x2757)]['rows'][_0x1af7eb(0x1b9e)]){const _0x49be09=_0x5d104a['internalrouteApps'][_0x1af7eb(0x28b8)][_0x4e3c5e]?_0x5d104a[_0x1af7eb(0x2757)][_0x1af7eb(0x28b8)][_0x4e3c5e]:_0x5d104a['internalrouteApps'][_0x1af7eb(0x28b8)][0x0];_0x5699ac[_0x1af7eb(0xa60)]({'controller':_0x1af7eb(0x26fb),'controllerAs':'vm','templateUrl':_0x3cfb5a,'parent':angular['element'](_0x2f6053[_0x1af7eb(0xb49)]),'targetEvent':_0x24375e,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x49be09[_0x1af7eb(0xcfd)],'IntervalId':_0x49be09[_0x1af7eb(0xb71)],'application':!![]},'intervals':[],'crudPermissions':_0x5d104a[_0x1af7eb(0x402)]}})[_0x1af7eb(0x64a)](function(_0x224deb){const _0x20ffe8=_0x1af7eb;_0x224deb&&(_0x49be09[_0x20ffe8(0xcfd)]=_0x224deb[_0x20ffe8(0xcfd)]||_0x20ffe8(0x2145),_0x49be09[_0x20ffe8(0xb71)]=_0x224deb['IntervalId']||null,_0x11ef3d());});}}function _0x11ef3d(){const _0x5eef89=_0x373f4f,_0x1b875e=[_0x5eef89(0x1e4e),_0x5eef89(0x1001)];let _0x2568a7=0x2,_0x4a340d=[];_0x4a340d[_0x5eef89(0x1954)]({'type':_0x5eef89(0xe2f),'app':_0x5eef89(0x1c13),'appdata':_0x5eef89(0x22f5),'context':_0x5d104a[_0x5eef89(0x18b9)][_0x5eef89(0x139)],'exten':_0x5d104a[_0x5eef89(0x18b9)][_0x5eef89(0x19c8)],'priority':_0x2568a7++,'VoiceExtensionId':_0x5d104a[_0x5eef89(0x18b9)]['id']}),_0x4a340d['push']({'type':'internal','app':_0x5eef89(0x1c13),'appdata':_0x5eef89(0x1b4a),'context':_0x5d104a[_0x5eef89(0x18b9)]['context'],'exten':_0x5d104a['internalroute'][_0x5eef89(0x19c8)],'priority':_0x2568a7++,'VoiceExtensionId':_0x5d104a[_0x5eef89(0x18b9)]['id']}),_0x4a340d['push']({'type':'internal','app':_0x5eef89(0x1c13),'appdata':'XCALLY-MOTION-PROGRESS=0','context':_0x5d104a['internalroute']['context'],'exten':_0x5d104a[_0x5eef89(0x18b9)][_0x5eef89(0x19c8)],'priority':_0x2568a7++,'VoiceExtensionId':_0x5d104a['internalroute']['id']}),_0x4a340d[_0x5eef89(0x1954)]({'type':_0x5eef89(0xe2f),'app':_0x5eef89(0x1c13),'appdata':_0x5eef89(0x7fe),'context':_0x5d104a[_0x5eef89(0x18b9)][_0x5eef89(0x139)],'exten':_0x5d104a[_0x5eef89(0x18b9)][_0x5eef89(0x19c8)],'priority':_0x2568a7++,'VoiceExtensionId':_0x5d104a[_0x5eef89(0x18b9)]['id']});for(let _0x33fe04=0x0,_0x12df9f=0x0;_0x33fe04<_0x5d104a[_0x5eef89(0x2757)]['rows'][_0x5eef89(0x1b9e)];_0x33fe04++,_0x12df9f=0x0){const _0x31eaa7=_0x5d104a[_0x5eef89(0x2757)][_0x5eef89(0x28b8)][_0x33fe04],_0x49c2a4=[],_0x5a0052=[];_0x31eaa7[_0x5eef89(0x15e4)]=_0x31eaa7[_0x5eef89(0xcfd)]!==_0x5eef89(0x2145)?[_0x31eaa7[_0x5eef89(0xcfd)]]:_0x31eaa7['IntervalId']?_0x28c606()[_0x5eef89(0x1de5)](_0x28c606()['filter'](_0x5d104a['intervals'][_0x5eef89(0x28b8)],{'IntervalId':_0x31eaa7[_0x5eef89(0xb71)]}),'interval'):[],_0x31eaa7[_0x5eef89(0x139)]=_0x5d104a[_0x5eef89(0x18b9)][_0x5eef89(0x139)],_0x31eaa7[_0x5eef89(0x19c8)]=_0x5d104a[_0x5eef89(0x18b9)][_0x5eef89(0x19c8)];_0x31eaa7[_0x5eef89(0x2185)]&&(_0x31eaa7['type']=_0x31eaa7[_0x5eef89(0x2185)][_0x5eef89(0x2554)]());typeof _0x31eaa7[_0x5eef89(0x122c)]!==_0x5eef89(0x19a1)&&(_0x1b875e[_0x5eef89(0x68a)](_0x31eaa7[_0x5eef89(0x16e1)][_0x5eef89(0x2554)]())&&_0x31eaa7[_0x5eef89(0x4f4)]!==_0x5eef89(0x1ad6)&&(_0x31eaa7[_0x5eef89(0x122c)]?(_0x49c2a4[_0x5eef89(0x1954)]({'type':_0x31eaa7[_0x5eef89(0x2185)][_0x5eef89(0x2554)](),'app':_0x5eef89(0xb37),'appdata':_0x5eef89(0x181e),'context':_0x5d104a[_0x5eef89(0x18b9)]['context'],'exten':_0x5d104a[_0x5eef89(0x18b9)][_0x5eef89(0x19c8)],'priority':_0x31eaa7[_0x5eef89(0x15e4)]['length']+_0x2568a7+_0x12df9f++,'VoiceExtensionId':_0x5d104a[_0x5eef89(0x18b9)]['id']}),_0x49c2a4['push']({'type':_0x31eaa7[_0x5eef89(0x2185)][_0x5eef89(0x2554)](),'app':'Set','appdata':'XCALLY-MOTION-ANSWER=1','context':_0x5d104a[_0x5eef89(0x18b9)]['context'],'exten':_0x5d104a[_0x5eef89(0x18b9)]['exten'],'priority':_0x31eaa7[_0x5eef89(0x15e4)][_0x5eef89(0x1b9e)]+_0x2568a7+_0x12df9f++,'VoiceExtensionId':_0x5d104a[_0x5eef89(0x18b9)]['id']})):(_0x49c2a4['push']({'type':_0x31eaa7[_0x5eef89(0x2185)][_0x5eef89(0x2554)](),'app':'ExecIf','appdata':'$[${XCALLY-MOTION-PROGRESS}=0]?Progress','context':_0x5d104a[_0x5eef89(0x18b9)][_0x5eef89(0x139)],'exten':_0x5d104a['internalroute'][_0x5eef89(0x19c8)],'priority':_0x31eaa7[_0x5eef89(0x15e4)][_0x5eef89(0x1b9e)]+_0x2568a7+_0x12df9f++,'VoiceExtensionId':_0x5d104a[_0x5eef89(0x18b9)]['id']}),_0x49c2a4['push']({'type':_0x31eaa7[_0x5eef89(0x2185)][_0x5eef89(0x2554)](),'app':_0x5eef89(0x1c13),'appdata':'XCALLY-MOTION-PROGRESS=1','context':_0x5d104a['internalroute'][_0x5eef89(0x139)],'exten':_0x5d104a[_0x5eef89(0x18b9)]['exten'],'priority':_0x31eaa7[_0x5eef89(0x15e4)][_0x5eef89(0x1b9e)]+_0x2568a7+_0x12df9f++,'VoiceExtensionId':_0x5d104a['internalroute']['id']}))));for(let _0x49b68c=0x0;_0x49b68c<_0x31eaa7['intervals'][_0x5eef89(0x1b9e)];_0x49b68c++){const _0x231d42=_0x2568a7+_0x31eaa7[_0x5eef89(0x15e4)][_0x5eef89(0x1b9e)],_0x2330f1=_0x49b68c===_0x31eaa7[_0x5eef89(0x15e4)][_0x5eef89(0x1b9e)]-0x1?_0x2568a7+_0x49c2a4[_0x5eef89(0x1b9e)]+_0x5a0052[_0x5eef89(0x1b9e)]+0x2:_0x2568a7+_0x49b68c+0x1;_0x49c2a4[_0x5eef89(0x18f0)](_0x49b68c,0x0,{'type':_0x5eef89(0xe2f),'app':_0x5eef89(0x2092),'appdata':_0x31eaa7['intervals'][_0x49b68c]+'?'+_0x5d104a[_0x5eef89(0x18b9)][_0x5eef89(0x139)]+_0x5eef89(0x812)+_0x231d42+':'+_0x5d104a[_0x5eef89(0x18b9)]['context']+',${EXTEN},'+_0x2330f1,'exten':_0x5d104a[_0x5eef89(0x18b9)][_0x5eef89(0x19c8)],'context':_0x5d104a[_0x5eef89(0x18b9)][_0x5eef89(0x139)],'priority':_0x2568a7+_0x49b68c,'VoiceExtensionId':_0x5d104a[_0x5eef89(0x18b9)]['id']});}_0x31eaa7[_0x5eef89(0x1095)]=_0x49c2a4[_0x5eef89(0x1b9e)]?_0x28c606()[_0x5eef89(0xe62)](_0x49c2a4)['priority']+0x1:_0x2568a7,_0x2568a7=(_0x5a0052[_0x5eef89(0x1b9e)]?_0x28c606()[_0x5eef89(0xe62)](_0x5a0052)['priority']:_0x31eaa7[_0x5eef89(0x1095)])+0x1,_0x4a340d=_0x28c606()['concat'](_0x4a340d,_0x49c2a4,[_0x31eaa7],_0x5a0052);}_0x4a340d[_0x5eef89(0x1954)]({'type':_0x5eef89(0xe2f),'app':_0x5eef89(0x13d5),'exten':_0x5d104a['internalroute'][_0x5eef89(0x19c8)],'context':_0x5d104a[_0x5eef89(0x18b9)][_0x5eef89(0x139)],'priority':_0x2568a7,'VoiceExtensionId':_0x5d104a['internalroute']['id']}),_0x26635b['voiceExtension'][_0x5eef89(0x1c5d)]({'id':_0x5d104a[_0x5eef89(0x18b9)]['id']},_0x28c606()['sortBy'](_0x4a340d,'priority'))[_0x5eef89(0x15e7)][_0x5eef89(0x64a)](function(_0x21ca9e){const _0x62843e=_0x5eef89;_0x5d104a['internalrouteApps'][_0x62843e(0x28b8)]=_0x21ca9e['rows'];})[_0x5eef89(0x20cd)](function(_0x1210a9){const _0x3e7b14=_0x5eef89;console[_0x3e7b14(0x1bd0)](_0x1210a9);});}function _0x289a4c(_0x443903){_0x5d104a['internalrouteApps']=_0x443903||{'count':0x0,'rows':[]};}function _0x57b8c5(){const _0x28e2ce=_0x373f4f;return _0x26635b[_0x28e2ce(0xcfd)][_0x28e2ce(0x896)]({'fields':_0x28e2ce(0x1aa)})[_0x28e2ce(0x15e7)][_0x28e2ce(0x64a)](function(_0x332816){_0x5d104a['intervals']=_0x332816;})[_0x28e2ce(0x20cd)](function(_0x488f45){const _0x5174de=_0x28e2ce;console[_0x5174de(0x1bd0)](_0x488f45);});}function _0x2f7fae(){const _0x5a3305=_0x373f4f;_0x5d104a[_0x5a3305(0x1713)]=_0x26635b['voiceExtension'][_0x5a3305(0x896)](_0x5d104a[_0x5a3305(0x289a)],_0x289a4c)[_0x5a3305(0x15e7)];}function _0x7454d4(_0x89fd3a){const _0x48ce01=_0x373f4f;_0x28c606()[_0x48ce01(0x21c7)](_0x5d104a[_0x48ce01(0x2757)][_0x48ce01(0x28b8)],{'id':_0x89fd3a['id']}),_0x11ef3d(),_0x386ac8['success']({'title':'App\x20deleted!','msg':_0x89fd3a[_0x48ce01(0x16e1)]?_0x89fd3a[_0x48ce01(0x16e1)]+_0x48ce01(0x1fa8):''});}function _0x132f81(_0x4935d1){const _0x48c733=_0x373f4f,_0x5bc84f=_0x5699ac[_0x48c733(0x856)]()[_0x48c733(0x2021)](_0x48c733(0x150d))[_0x48c733(0x33a)](_0x48c733(0x50b)+_0x5d104a[_0x48c733(0x1642)]['length']+_0x48c733(0x163e)+'\x20will\x20be\x20deleted.')[_0x48c733(0x213e)](_0x48c733(0x2180))[_0x48c733(0x2283)](_0x4935d1)['ok']('OK')[_0x48c733(0x101a)](_0x48c733(0x18fd));_0x5699ac[_0x48c733(0xa60)](_0x5bc84f)['then'](function(){const _0x5bb6a9=_0x48c733;_0x5d104a[_0x5bb6a9(0x1642)][_0x5bb6a9(0x1397)](function(_0x280402){const _0xb658f1=_0x5bb6a9;_0x28c606()[_0xb658f1(0x21c7)](_0x5d104a[_0xb658f1(0x2757)][_0xb658f1(0x28b8)],{'id':_0x280402['id']});}),_0x5d104a['selectedInternalRouteApps']=[],_0x11ef3d();});}}const _0x5469c2=_0x21b9dc;;_0xeb2cdb[_0x49a1e3(0x1e73)]=['$mdDialog','$q','toasty',_0x49a1e3(0xfec),_0x49a1e3(0x18b9),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0xeb2cdb(_0x5b41ed,_0x56b1e8,_0x313594,_0x4e1f09,_0x4b4ac8,_0x31c84c,_0x284b09,_0x1e87f4){const _0x7cc1c4=_0x49a1e3,_0xb7fbff=this;_0xb7fbff[_0x7cc1c4(0x1d3d)]=_0x284b09[_0x7cc1c4(0x808)](),_0xb7fbff[_0x7cc1c4(0xbae)]=[],_0xb7fbff[_0x7cc1c4(0x2021)]=_0x7cc1c4(0x2073)+(_0x4e1f09[_0x7cc1c4(0x4f4)]||_0x4e1f09[_0x7cc1c4(0x16e1)])[_0x7cc1c4(0xa3c)](),_0xb7fbff['agi']=angular[_0x7cc1c4(0x289e)](_0x4e1f09),_0xb7fbff[_0x7cc1c4(0x402)]=_0x1e87f4,_0xb7fbff[_0x7cc1c4(0x6c2)]={};if(_0xb7fbff[_0x7cc1c4(0x1e67)]['appdata'])switch(_0xb7fbff['agi'][_0x7cc1c4(0x4f4)]?_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x4f4)][_0x7cc1c4(0x2554)]():_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x16e1)]['toLowerCase']()){case'custom':break;case _0x7cc1c4(0x1084):{const _0x32c07a=_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0xacb)][_0x7cc1c4(0x282c)](',');_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x2125)]=_0x32c07a[0x0],_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x1cbd)]=_0x32c07a[0x1],_0xb7fbff[_0x7cc1c4(0x1e67)]['welcomemessage']=_0x32c07a[_0x7cc1c4(0x142e)](0x2,_0x32c07a[_0x7cc1c4(0x1b9e)])['join'](',');}break;case _0x7cc1c4(0x1b1a):{const _0x47d3f4=_0xb7fbff[_0x7cc1c4(0x1e67)]['appdata'][_0x7cc1c4(0x282c)](',');_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0xbfd)]=_0x47d3f4[0x0],_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x4b2)]=_0x47d3f4[0x1],_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x1b1b)]=_0x47d3f4[0x2],_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x1cbd)]=_0x47d3f4[0x3],_0xb7fbff['agi'][_0x7cc1c4(0x31b)]=_0x47d3f4[_0x7cc1c4(0x142e)](0x4,_0x47d3f4[_0x7cc1c4(0x1b9e)])['join'](',');}break;case _0x7cc1c4(0x290d):{const _0x1fd287=_0xb7fbff[_0x7cc1c4(0x1e67)]['appdata'][_0x7cc1c4(0x282c)](',');_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x1466)]=_0x1fd287[0x0],_0xb7fbff[_0x7cc1c4(0x1e67)]['secretaccesskey']=_0x1fd287[0x1],_0xb7fbff['agi'][_0x7cc1c4(0x17a2)]=_0x1fd287[0x2],_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x2797)]=_0x1fd287[0x3],_0xb7fbff['agi']['welcomemessage']=_0x1fd287[_0x7cc1c4(0x142e)](0x4,_0x1fd287[_0x7cc1c4(0x1b9e)])['join'](',');}break;case _0x7cc1c4(0x21a9):{const _0x485b05=_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0xacb)][_0x7cc1c4(0x282c)](',');_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x95f)]=isNaN(_0x485b05[0x0])?_0x485b05[0x0]:parseInt(_0x485b05[0x0],0xa),_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x39b)]=_0x485b05[_0x7cc1c4(0x142e)](0x1,_0x485b05[_0x7cc1c4(0x1b9e)])[_0x7cc1c4(0x9a6)](',');}break;case _0x7cc1c4(0x18ca):_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x39b)]=_0xb7fbff[_0x7cc1c4(0x1e67)]['appdata'];break;case'set':_0xb7fbff[_0x7cc1c4(0x1e67)]['name']=_0xb7fbff[_0x7cc1c4(0x1e67)]['appdata'][_0x7cc1c4(0x282c)]('=')[0x0],_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x1096)]=_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0xacb)][_0x7cc1c4(0x282c)]('=')[0x1];break;case'agi':_0xb7fbff['agi'][_0x7cc1c4(0x1bd9)]=_0xb7fbff[_0x7cc1c4(0x1e67)]['appdata'];break;default:{const _0x10d243=_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0xacb)]['split'](',');_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x1bd9)]=_0x28c606()[_0x7cc1c4(0x940)](_0x10d243[0x0])?_0x10d243[0x0]:isNaN(_0x10d243[0x0])?_0x10d243[0x0]:parseInt(_0x10d243[0x0],0xa);}break;}else{}_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x2185)]&&_0xb7fbff[_0x7cc1c4(0x1e67)]['type']['toLowerCase']()===_0x7cc1c4(0xbce)&&_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x4f4)]['toLowerCase']()===_0x7cc1c4(0x20eb)&&(_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x2524)]=_0xb7fbff[_0x7cc1c4(0x1e67)]['phone']?_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x267a)][_0x7cc1c4(0x282c)]('$')[0x0]:undefined,_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x1a9b)]=_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x1abe)]?_0x7cc1c4(0x2489)+_0xb7fbff[_0x7cc1c4(0x1e67)][_0x7cc1c4(0x1abe)]:undefined);_0xb7fbff[_0x7cc1c4(0x194)]=_0xe30caf,_0xb7fbff[_0x7cc1c4(0x16cb)]=_0x133e60,_0x284b09[_0x7cc1c4(0x4de)](_0x7cc1c4(0x333))?_0x31c84c['squareProject'][_0x7cc1c4(0x896)]({'fields':_0x7cc1c4(0x1427),'sort':'name','nolimit':'true'})[_0x7cc1c4(0x15e7)]['then'](function(_0x5e0d13){const _0x55cd1b=_0x7cc1c4;_0xb7fbff[_0x55cd1b(0x1d73)]=_0x5e0d13['rows']||[];})[_0x7cc1c4(0x20cd)](function(_0x44e9f2){const _0x427250=_0x7cc1c4;_0x313594[_0x427250(0x1bd0)]({'title':_0x44e9f2['status']?_0x427250(0x575)+_0x44e9f2['status']+_0x427250(0x21db)+_0x44e9f2[_0x427250(0x2115)]:_0x427250(0x295e),'msg':_0x44e9f2[_0x427250(0x1c52)]?JSON['stringify'](_0x44e9f2['data']):_0x44e9f2['toString']()});}):_0x31c84c[_0x7cc1c4(0x2101)]['get']({'fields':'id,name','sort':_0x7cc1c4(0x2494),'nolimit':_0x7cc1c4(0x1685)})[_0x7cc1c4(0x15e7)][_0x7cc1c4(0x64a)](function(_0x29b85c){const _0x5a506c=_0x7cc1c4;_0xb7fbff[_0x5a506c(0x1d73)]=_0x29b85c[_0x5a506c(0x28b8)]||[];})[_0x7cc1c4(0x64a)](function(){const _0x359dcb=_0x7cc1c4;return _0x31c84c['userProfileSection'][_0x359dcb(0x896)]({'userProfileId':_0xb7fbff[_0x359dcb(0x1d3d)][_0x359dcb(0x21ac)],'sectionId':0x44f})[_0x359dcb(0x15e7)];})[_0x7cc1c4(0x64a)](function(_0x327682){const _0x4347ec=_0x7cc1c4,_0x470229=_0x327682&&_0x327682[_0x4347ec(0x28b8)]?_0x327682[_0x4347ec(0x28b8)][0x0]:null;if(!_0x470229){const _0x28e6cd=[];let _0x501990=null;_0xb7fbff[_0x4347ec(0x1e67)]&&(_0x501990=_0x28c606()[_0x4347ec(0x27bc)](_0xb7fbff['projects'],{'name':_0xb7fbff[_0x4347ec(0x1e67)][_0x4347ec(0x1bd9)]}));for(let _0x1438e9=0x0;_0x1438e9<_0xb7fbff[_0x4347ec(0x1d73)][_0x4347ec(0x1b9e)];_0x1438e9++){_0x501990&&_0xb7fbff['projects'][_0x1438e9]['id']===_0x501990['id']&&(_0xb7fbff[_0x4347ec(0x1d73)][_0x1438e9][_0x4347ec(0xd4f)]=![],_0x28e6cd[_0x4347ec(0x1954)](_0xb7fbff[_0x4347ec(0x1d73)][_0x1438e9]));}_0xb7fbff['projects']=_0x28e6cd;}else{if(!_0x470229[_0x4347ec(0x11da)])return _0x31c84c[_0x4347ec(0x1617)][_0x4347ec(0x896)]({'sectionId':_0x470229['id']})[_0x4347ec(0x15e7)][_0x4347ec(0x64a)](function(_0x388a36){const _0x1c92a4=_0x4347ec,_0x11af95=_0x28c606()[_0x1c92a4(0x1de5)](_0x388a36[_0x1c92a4(0x28b8)],function(_0x30a036){const _0x75a3b5=_0x1c92a4;return _0x28c606()[_0x75a3b5(0x27bc)](_0xb7fbff[_0x75a3b5(0x1d73)],{'id':_0x30a036['resourceId']});});let _0x5f2c78=null;_0xb7fbff[_0x1c92a4(0x1e67)]&&(_0x5f2c78=_0x28c606()[_0x1c92a4(0x27bc)](_0xb7fbff[_0x1c92a4(0x1d73)],{'name':_0xb7fbff[_0x1c92a4(0x1e67)][_0x1c92a4(0x1bd9)]}));if(_0x5f2c78&&!_0x28c606()[_0x1c92a4(0x25f8)](_0x11af95,['id',_0x5f2c78['id']])){const _0x2b849c=_0x28c606()['find'](_0xb7fbff[_0x1c92a4(0x1d73)],{'id':_0x5f2c78['id']});_0x2b849c['canSelect']=![],_0x11af95[_0x1c92a4(0x1954)](_0x2b849c);}_0xb7fbff[_0x1c92a4(0x1d73)]=_0x11af95;});}})[_0x7cc1c4(0x20cd)](function(_0x9a3397){const _0x2a907e=_0x7cc1c4;_0x313594['error']({'title':_0x9a3397[_0x2a907e(0x10b3)]?_0x2a907e(0x575)+_0x9a3397[_0x2a907e(0x10b3)]+'\x20-\x20'+_0x9a3397[_0x2a907e(0x2115)]:_0x2a907e(0x2786),'msg':_0x9a3397[_0x2a907e(0x1c52)]?JSON[_0x2a907e(0x2317)](_0x9a3397['data']):_0x9a3397[_0x2a907e(0x2915)]()});});function _0xe30caf(){const _0x1e1e5e=_0x7cc1c4;_0xb7fbff[_0x1e1e5e(0xbae)]=[];const _0x3b006d=[];_0xb7fbff[_0x1e1e5e(0x1e67)][_0x1e1e5e(0x2185)]&&_0xb7fbff[_0x1e1e5e(0x1e67)][_0x1e1e5e(0x2185)][_0x1e1e5e(0x2554)]()==='outbound'&&_0xb7fbff[_0x1e1e5e(0x1e67)][_0x1e1e5e(0x4f4)]===_0x1e1e5e(0x17b6)&&(_0xb7fbff[_0x1e1e5e(0x1e67)][_0x1e1e5e(0x267a)]=_0x4b4ac8['cutdigits']?(_0xb7fbff['agi'][_0x1e1e5e(0x2524)]||'')+'${EXTEN:'+_0x4b4ac8[_0x1e1e5e(0x242b)]+'}':(_0xb7fbff['agi'][_0x1e1e5e(0x2524)]||'')+'${EXTEN}',_0x4b4ac8[_0x1e1e5e(0x1097)]!==_0x1e1e5e(0x2507)?_0xb7fbff[_0x1e1e5e(0x1e67)][_0x1e1e5e(0x59e)][_0x1e1e5e(0x1b28)](_0x1e1e5e(0x13e0))<0x0&&(_0xb7fbff[_0x1e1e5e(0x1e67)][_0x1e1e5e(0x59e)]+=_0x1e1e5e(0x13e0)):_0xb7fbff[_0x1e1e5e(0x1e67)]['options']=_0xb7fbff[_0x1e1e5e(0x1e67)][_0x1e1e5e(0x59e)]['replace'](_0x1e1e5e(0x13e0),''));if(_0xb7fbff[_0x1e1e5e(0x1e67)]['appType']&&_0xb7fbff[_0x1e1e5e(0x1e67)][_0x1e1e5e(0x4f4)]==='custom'){}else switch((_0xb7fbff[_0x1e1e5e(0x1e67)][_0x1e1e5e(0x16e1)]||_0xb7fbff[_0x1e1e5e(0x1e67)][_0x1e1e5e(0x4f4)])[_0x1e1e5e(0x2554)]()){case _0x1e1e5e(0x1979):_0xb7fbff[_0x1e1e5e(0x1e67)][_0x1e1e5e(0xacb)]=_0xb7fbff[_0x1e1e5e(0x1e67)][_0x1e1e5e(0x2494)]+'='+_0xb7fbff[_0x1e1e5e(0x1e67)]['value'];break;case _0x1e1e5e(0x1ad6):break;default:_0x3b006d[0x0]=_0xb7fbff[_0x1e1e5e(0x1e67)][_0x1e1e5e(0x1bd9)],_0xb7fbff[_0x1e1e5e(0x1e67)][_0x1e1e5e(0xacb)]=_0x3b006d['join'](',');}_0x133e60(_0xb7fbff[_0x1e1e5e(0x1e67)]);}function _0x133e60(_0x2b723c){const _0x17bad1=_0x7cc1c4;_0x5b41ed[_0x17bad1(0x268e)](_0x2b723c);}}const _0x61864a=_0xeb2cdb;;_0x3d6c60[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty','internalrouteApp',_0x49a1e3(0x18b9),_0x49a1e3(0xa19),'Auth','crudPermissions'];function _0x3d6c60(_0x4a4b6d,_0x125d05,_0x58057e,_0x56185e,_0x1d3e21,_0x404d09,_0x370252,_0x4636ba){const _0xdc5d2f=_0x49a1e3,_0x1fb3f5=this;_0x1fb3f5[_0xdc5d2f(0x1d3d)]=_0x370252[_0xdc5d2f(0x808)](),_0x1fb3f5[_0xdc5d2f(0xbae)]=[],_0x1fb3f5[_0xdc5d2f(0x2021)]='VOICE.EDIT_'+(_0x56185e[_0xdc5d2f(0x4f4)]||_0x56185e[_0xdc5d2f(0x16e1)])['toUpperCase'](),_0x1fb3f5[_0xdc5d2f(0x1ad6)]=angular[_0xdc5d2f(0x289e)](_0x56185e),_0x1fb3f5[_0xdc5d2f(0x402)]=_0x4636ba,_0x1fb3f5[_0xdc5d2f(0x6c2)]={};if(_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0xacb)])switch(_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0x4f4)]?_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0x4f4)][_0xdc5d2f(0x2554)]():_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0x16e1)][_0xdc5d2f(0x2554)]()){case'custom':break;case _0xdc5d2f(0x1084):{const _0x2a4257=_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0xacb)][_0xdc5d2f(0x282c)](',');_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0x2125)]=_0x2a4257[0x0],_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0x1cbd)]=_0x2a4257[0x1],_0x1fb3f5['custom']['welcomemessage']=_0x2a4257[_0xdc5d2f(0x142e)](0x2,_0x2a4257[_0xdc5d2f(0x1b9e)])['join'](',');}break;case _0xdc5d2f(0x1b1a):{const _0x5f11da=_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0xacb)][_0xdc5d2f(0x282c)](',');_0x1fb3f5['custom'][_0xdc5d2f(0xbfd)]=_0x5f11da[0x0],_0x1fb3f5['custom'][_0xdc5d2f(0x4b2)]=_0x5f11da[0x1],_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0x1b1b)]=_0x5f11da[0x2],_0x1fb3f5[_0xdc5d2f(0x1ad6)]['language']=_0x5f11da[0x3],_0x1fb3f5['custom']['welcomemessage']=_0x5f11da[_0xdc5d2f(0x142e)](0x4,_0x5f11da[_0xdc5d2f(0x1b9e)])[_0xdc5d2f(0x9a6)](',');}break;case _0xdc5d2f(0x290d):{const _0x3da3fe=_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0xacb)]['split'](',');_0x1fb3f5['custom'][_0xdc5d2f(0x1466)]=_0x3da3fe[0x0],_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0x1b1)]=_0x3da3fe[0x1],_0x1fb3f5[_0xdc5d2f(0x1ad6)]['lexregion']=_0x3da3fe[0x2],_0x1fb3f5['custom'][_0xdc5d2f(0x2797)]=_0x3da3fe[0x3],_0x1fb3f5['custom']['welcomemessage']=_0x3da3fe[_0xdc5d2f(0x142e)](0x4,_0x3da3fe['length'])[_0xdc5d2f(0x9a6)](',');}break;case _0xdc5d2f(0x21a9):{const _0x1ae5ff=_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0xacb)][_0xdc5d2f(0x282c)](',');_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0x95f)]=isNaN(_0x1ae5ff[0x0])?_0x1ae5ff[0x0]:parseInt(_0x1ae5ff[0x0],0xa),_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0x39b)]=_0x1ae5ff['slice'](0x1,_0x1ae5ff[_0xdc5d2f(0x1b9e)])[_0xdc5d2f(0x9a6)](',');}break;case _0xdc5d2f(0x18ca):_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0x39b)]=_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0xacb)];break;case _0xdc5d2f(0x1979):_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0x2494)]=_0x1fb3f5['custom'][_0xdc5d2f(0xacb)][_0xdc5d2f(0x282c)]('=')[0x0],_0x1fb3f5['custom'][_0xdc5d2f(0x1096)]=_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0xacb)]['split']('=')[0x1];break;case _0xdc5d2f(0x1e67):_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0x1bd9)]=_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0xacb)];break;default:{const _0x19f240=_0x1fb3f5['custom']['appdata'][_0xdc5d2f(0x282c)](',');_0x1fb3f5['custom'][_0xdc5d2f(0x16e1)]=_0x28c606()[_0xdc5d2f(0x940)](_0x19f240[0x0])?_0x19f240[0x0]:isNaN(_0x19f240[0x0])?_0x19f240[0x0]:parseInt(_0x19f240[0x0],0xa),_0x1fb3f5['custom'][_0xdc5d2f(0xacb)]=_0x28c606()[_0xdc5d2f(0x940)](_0x19f240[0x1])?_0x19f240[0x1]:isNaN(_0x19f240[0x1])?_0x19f240[0x1]:parseInt(_0x19f240[0x1],0xa);}break;}else{}_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0x2185)]&&_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0x2185)][_0xdc5d2f(0x2554)]()==='outbound'&&_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0x4f4)][_0xdc5d2f(0x2554)]()===_0xdc5d2f(0x20eb)&&(_0x1fb3f5['custom']['prefix']=_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0x267a)]?_0x1fb3f5[_0xdc5d2f(0x1ad6)]['phone'][_0xdc5d2f(0x282c)]('$')[0x0]:undefined,_0x1fb3f5[_0xdc5d2f(0x1ad6)][_0xdc5d2f(0x1a9b)]=_0x1fb3f5[_0xdc5d2f(0x1ad6)]['callerID']?_0xdc5d2f(0x2489)+_0x1fb3f5['custom'][_0xdc5d2f(0x1abe)]:undefined);_0x1fb3f5[_0xdc5d2f(0x194)]=_0xcb9aee,_0x1fb3f5[_0xdc5d2f(0x16cb)]=_0x4ec298;function _0xcb9aee(){const _0x1340c6=_0xdc5d2f;_0x1fb3f5['errors']=[];const _0x57d1e7=[];_0x1fb3f5[_0x1340c6(0x1ad6)][_0x1340c6(0x2185)]&&_0x1fb3f5[_0x1340c6(0x1ad6)][_0x1340c6(0x2185)][_0x1340c6(0x2554)]()===_0x1340c6(0xbce)&&_0x1fb3f5['custom']['appType']===_0x1340c6(0x17b6)&&(_0x1fb3f5['custom'][_0x1340c6(0x267a)]=_0x1d3e21['cutdigits']?(_0x1fb3f5[_0x1340c6(0x1ad6)][_0x1340c6(0x2524)]||'')+_0x1340c6(0x1a75)+_0x1d3e21[_0x1340c6(0x242b)]+'}':(_0x1fb3f5[_0x1340c6(0x1ad6)][_0x1340c6(0x2524)]||'')+'${EXTEN}',_0x1d3e21[_0x1340c6(0x1097)]!==_0x1340c6(0x2507)?_0x1fb3f5[_0x1340c6(0x1ad6)][_0x1340c6(0x59e)][_0x1340c6(0x1b28)](_0x1340c6(0x13e0))<0x0&&(_0x1fb3f5['custom'][_0x1340c6(0x59e)]+=_0x1340c6(0x13e0)):_0x1fb3f5[_0x1340c6(0x1ad6)][_0x1340c6(0x59e)]=_0x1fb3f5[_0x1340c6(0x1ad6)][_0x1340c6(0x59e)][_0x1340c6(0x1353)](_0x1340c6(0x13e0),''));if(_0x1fb3f5[_0x1340c6(0x1ad6)]['appType']&&_0x1fb3f5[_0x1340c6(0x1ad6)][_0x1340c6(0x4f4)]==='custom'){}else switch((_0x1fb3f5['custom'][_0x1340c6(0x16e1)]||_0x1fb3f5[_0x1340c6(0x1ad6)][_0x1340c6(0x4f4)])[_0x1340c6(0x2554)]()){case'set':_0x1fb3f5[_0x1340c6(0x1ad6)]['appdata']=_0x1fb3f5[_0x1340c6(0x1ad6)][_0x1340c6(0x2494)]+'='+_0x1fb3f5[_0x1340c6(0x1ad6)][_0x1340c6(0x1096)];break;case _0x1340c6(0x1ad6):break;default:_0x57d1e7[0x0]=_0x1fb3f5[_0x1340c6(0x1ad6)][_0x1340c6(0x16e1)],_0x57d1e7[0x1]=_0x1fb3f5[_0x1340c6(0x1ad6)][_0x1340c6(0xacb)],_0x1fb3f5['custom'][_0x1340c6(0xacb)]=_0x57d1e7[_0x1340c6(0x9a6)](',');}_0x4ec298(_0x1fb3f5[_0x1340c6(0x1ad6)]);}function _0x4ec298(_0x141a85){const _0x1e64db=_0xdc5d2f;_0x4a4b6d[_0x1e64db(0x268e)](_0x141a85);}}const _0x2211e1=_0x3d6c60;;_0x1d9b49[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xfec),_0x49a1e3(0x18b9),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x1d9b49(_0x168527,_0x17c71d,_0x14f025,_0xa1d7a4,_0x54fc70,_0x2b1fc5,_0x403ed1,_0x6d5950){const _0x216153=_0x49a1e3,_0x314e48=this;_0x314e48[_0x216153(0x1d3d)]=_0x403ed1[_0x216153(0x808)](),_0x314e48['errors']=[],_0x314e48[_0x216153(0x2021)]='VOICE.EDIT_'+(_0xa1d7a4[_0x216153(0x4f4)]||_0xa1d7a4['app'])[_0x216153(0xa3c)](),_0x314e48[_0x216153(0x19b6)]=angular[_0x216153(0x289e)](_0xa1d7a4),_0x314e48[_0x216153(0x402)]=_0x6d5950,_0x314e48['hasModulePermissions']={};if(_0x314e48[_0x216153(0x19b6)][_0x216153(0xacb)])switch(_0x314e48['dial']['appType']?_0x314e48[_0x216153(0x19b6)][_0x216153(0x4f4)][_0x216153(0x2554)]():_0x314e48[_0x216153(0x19b6)][_0x216153(0x16e1)]['toLowerCase']()){case'custom':break;case'dialogflow':{const _0x163ccf=_0x314e48[_0x216153(0x19b6)]['appdata']['split'](',');_0x314e48[_0x216153(0x19b6)][_0x216153(0x2125)]=_0x163ccf[0x0],_0x314e48['dial'][_0x216153(0x1cbd)]=_0x163ccf[0x1],_0x314e48[_0x216153(0x19b6)][_0x216153(0x31b)]=_0x163ccf[_0x216153(0x142e)](0x2,_0x163ccf['length'])[_0x216153(0x9a6)](',');}break;case _0x216153(0x1b1a):{const _0x3e3156=_0x314e48['dial'][_0x216153(0xacb)][_0x216153(0x282c)](',');_0x314e48['dial'][_0x216153(0xbfd)]=_0x3e3156[0x0],_0x314e48[_0x216153(0x19b6)][_0x216153(0x4b2)]=_0x3e3156[0x1],_0x314e48[_0x216153(0x19b6)][_0x216153(0x1b1b)]=_0x3e3156[0x2],_0x314e48[_0x216153(0x19b6)][_0x216153(0x1cbd)]=_0x3e3156[0x3],_0x314e48[_0x216153(0x19b6)]['welcomemessage']=_0x3e3156['slice'](0x4,_0x3e3156[_0x216153(0x1b9e)])[_0x216153(0x9a6)](',');}break;case'amazonlex':{const _0x3022ab=_0x314e48[_0x216153(0x19b6)]['appdata']['split'](',');_0x314e48[_0x216153(0x19b6)][_0x216153(0x1466)]=_0x3022ab[0x0],_0x314e48[_0x216153(0x19b6)][_0x216153(0x1b1)]=_0x3022ab[0x1],_0x314e48['dial'][_0x216153(0x17a2)]=_0x3022ab[0x2],_0x314e48[_0x216153(0x19b6)]['botname']=_0x3022ab[0x3],_0x314e48[_0x216153(0x19b6)][_0x216153(0x31b)]=_0x3022ab[_0x216153(0x142e)](0x4,_0x3022ab[_0x216153(0x1b9e)])[_0x216153(0x9a6)](',');}break;case'autoreply':{const _0x2adefc=_0x314e48[_0x216153(0x19b6)][_0x216153(0xacb)][_0x216153(0x282c)](',');_0x314e48['dial']['times']=isNaN(_0x2adefc[0x0])?_0x2adefc[0x0]:parseInt(_0x2adefc[0x0],0xa),_0x314e48[_0x216153(0x19b6)][_0x216153(0x39b)]=_0x2adefc[_0x216153(0x142e)](0x1,_0x2adefc['length'])[_0x216153(0x9a6)](',');}break;case _0x216153(0x18ca):_0x314e48[_0x216153(0x19b6)][_0x216153(0x39b)]=_0x314e48[_0x216153(0x19b6)]['appdata'];break;case _0x216153(0x1979):_0x314e48['dial'][_0x216153(0x2494)]=_0x314e48[_0x216153(0x19b6)][_0x216153(0xacb)][_0x216153(0x282c)]('=')[0x0],_0x314e48['dial'][_0x216153(0x1096)]=_0x314e48['dial']['appdata']['split']('=')[0x1];break;case _0x216153(0x1e67):_0x314e48['dial'][_0x216153(0x1bd9)]=_0x314e48[_0x216153(0x19b6)][_0x216153(0xacb)];break;default:{const _0x2220fb=_0x314e48[_0x216153(0x19b6)]['appdata'][_0x216153(0x282c)](',');_0x314e48[_0x216153(0x19b6)][_0x216153(0x17ca)]=_0x28c606()[_0x216153(0x940)](_0x2220fb[0x0])?_0x2220fb[0x0]:isNaN(_0x2220fb[0x0])?_0x2220fb[0x0]:parseInt(_0x2220fb[0x0],0xa),_0x314e48[_0x216153(0x19b6)][_0x216153(0x16d)]=_0x28c606()[_0x216153(0x940)](_0x2220fb[0x1])?_0x2220fb[0x1]:isNaN(_0x2220fb[0x1])?_0x2220fb[0x1]:parseInt(_0x2220fb[0x1],0xa),_0x314e48[_0x216153(0x19b6)][_0x216153(0x59e)]=_0x28c606()[_0x216153(0x940)](_0x2220fb[0x2])?_0x2220fb[0x2]:isNaN(_0x2220fb[0x2])?_0x2220fb[0x2]:parseInt(_0x2220fb[0x2],0xa),_0x314e48['dial'][_0x216153(0x2761)]=_0x28c606()[_0x216153(0x940)](_0x2220fb[0x3])?_0x2220fb[0x3]:isNaN(_0x2220fb[0x3])?_0x2220fb[0x3]:parseInt(_0x2220fb[0x3],0xa);}break;}else{}_0x314e48[_0x216153(0x19b6)][_0x216153(0x2185)]&&_0x314e48[_0x216153(0x19b6)][_0x216153(0x2185)][_0x216153(0x2554)]()===_0x216153(0xbce)&&_0x314e48['dial'][_0x216153(0x4f4)][_0x216153(0x2554)]()===_0x216153(0x20eb)&&(_0x314e48['dial'][_0x216153(0x2524)]=_0x314e48[_0x216153(0x19b6)][_0x216153(0x267a)]?_0x314e48[_0x216153(0x19b6)]['phone'][_0x216153(0x282c)]('$')[0x0]:undefined,_0x314e48[_0x216153(0x19b6)][_0x216153(0x1a9b)]=_0x314e48[_0x216153(0x19b6)][_0x216153(0x1abe)]?_0x216153(0x2489)+_0x314e48['dial'][_0x216153(0x1abe)]:undefined);_0x314e48['saveInternalRouteApp']=_0x4c1215,_0x314e48[_0x216153(0x16cb)]=_0x3ddf1b;function _0x4c1215(){const _0x27883a=_0x216153;_0x314e48[_0x27883a(0xbae)]=[];const _0x69b6b6=[];_0x314e48[_0x27883a(0x19b6)][_0x27883a(0x2185)]&&_0x314e48[_0x27883a(0x19b6)]['type']['toLowerCase']()===_0x27883a(0xbce)&&_0x314e48[_0x27883a(0x19b6)][_0x27883a(0x4f4)]===_0x27883a(0x17b6)&&(_0x314e48[_0x27883a(0x19b6)][_0x27883a(0x267a)]=_0x54fc70['cutdigits']?(_0x314e48[_0x27883a(0x19b6)][_0x27883a(0x2524)]||'')+'${EXTEN:'+_0x54fc70[_0x27883a(0x242b)]+'}':(_0x314e48['dial']['prefix']||'')+'${EXTEN}',_0x54fc70['recordingFormat']!==_0x27883a(0x2507)?_0x314e48['dial'][_0x27883a(0x59e)][_0x27883a(0x1b28)]('U(xcally-mixmonitor-context)')<0x0&&(_0x314e48[_0x27883a(0x19b6)][_0x27883a(0x59e)]+=_0x27883a(0x13e0)):_0x314e48[_0x27883a(0x19b6)]['options']=_0x314e48['dial']['options'][_0x27883a(0x1353)]('U(xcally-mixmonitor-context)',''));if(_0x314e48['dial'][_0x27883a(0x4f4)]&&_0x314e48[_0x27883a(0x19b6)][_0x27883a(0x4f4)]==='custom'){}else switch((_0x314e48['dial'][_0x27883a(0x16e1)]||_0x314e48[_0x27883a(0x19b6)]['appType'])[_0x27883a(0x2554)]()){case'set':_0x314e48[_0x27883a(0x19b6)]['appdata']=_0x314e48[_0x27883a(0x19b6)][_0x27883a(0x2494)]+'='+_0x314e48['dial']['value'];break;case _0x27883a(0x1ad6):break;default:_0x69b6b6[0x0]=_0x314e48[_0x27883a(0x19b6)][_0x27883a(0x17ca)],_0x69b6b6[0x1]=_0x314e48[_0x27883a(0x19b6)][_0x27883a(0x16d)],_0x69b6b6[0x2]=_0x314e48[_0x27883a(0x19b6)][_0x27883a(0x59e)],_0x69b6b6[0x3]=_0x314e48[_0x27883a(0x19b6)][_0x27883a(0x2761)],_0x314e48[_0x27883a(0x19b6)][_0x27883a(0xacb)]=_0x69b6b6[_0x27883a(0x9a6)](',');}_0x3ddf1b(_0x314e48['dial']);}function _0x3ddf1b(_0x421ed5){const _0x3810d2=_0x216153;_0x168527[_0x3810d2(0x268e)](_0x421ed5);}}const _0x5a43c9=_0x1d9b49;;_0x599afc[_0x49a1e3(0x1e73)]=['$mdDialog','$q','toasty',_0x49a1e3(0xfec),_0x49a1e3(0x18b9),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x599afc(_0x10ed12,_0x4bb1c2,_0x1d1bc2,_0x341a28,_0x26dc69,_0x12737f,_0x25e6af,_0xacc198){const _0x87d379=_0x49a1e3,_0x35eebf=this;_0x35eebf[_0x87d379(0x1d3d)]=_0x25e6af[_0x87d379(0x808)](),_0x35eebf['errors']=[],_0x35eebf[_0x87d379(0x2021)]=_0x87d379(0x2073)+(_0x341a28[_0x87d379(0x4f4)]||_0x341a28['app'])[_0x87d379(0xa3c)](),_0x35eebf[_0x87d379(0x279f)]=angular[_0x87d379(0x289e)](_0x341a28),_0x35eebf[_0x87d379(0x402)]=_0xacc198,_0x35eebf[_0x87d379(0x6c2)]={};if(_0x35eebf[_0x87d379(0x279f)][_0x87d379(0xacb)])switch(_0x35eebf['externaldial'][_0x87d379(0x4f4)]?_0x35eebf[_0x87d379(0x279f)][_0x87d379(0x4f4)][_0x87d379(0x2554)]():_0x35eebf[_0x87d379(0x279f)][_0x87d379(0x16e1)]['toLowerCase']()){case _0x87d379(0x1ad6):break;case _0x87d379(0x1084):{const _0x1e81af=_0x35eebf[_0x87d379(0x279f)][_0x87d379(0xacb)]['split'](',');_0x35eebf[_0x87d379(0x279f)][_0x87d379(0x2125)]=_0x1e81af[0x0],_0x35eebf[_0x87d379(0x279f)][_0x87d379(0x1cbd)]=_0x1e81af[0x1],_0x35eebf[_0x87d379(0x279f)][_0x87d379(0x31b)]=_0x1e81af[_0x87d379(0x142e)](0x2,_0x1e81af[_0x87d379(0x1b9e)])[_0x87d379(0x9a6)](',');}break;case'dialogflowv2':{const _0x460ac6=_0x35eebf['externaldial'][_0x87d379(0xacb)][_0x87d379(0x282c)](',');_0x35eebf[_0x87d379(0x279f)][_0x87d379(0xbfd)]=_0x460ac6[0x0],_0x35eebf[_0x87d379(0x279f)]['clientEmail']=_0x460ac6[0x1],_0x35eebf[_0x87d379(0x279f)][_0x87d379(0x1b1b)]=_0x460ac6[0x2],_0x35eebf[_0x87d379(0x279f)][_0x87d379(0x1cbd)]=_0x460ac6[0x3],_0x35eebf[_0x87d379(0x279f)][_0x87d379(0x31b)]=_0x460ac6[_0x87d379(0x142e)](0x4,_0x460ac6[_0x87d379(0x1b9e)])[_0x87d379(0x9a6)](',');}break;case _0x87d379(0x290d):{const _0x34d053=_0x35eebf[_0x87d379(0x279f)][_0x87d379(0xacb)]['split'](',');_0x35eebf[_0x87d379(0x279f)][_0x87d379(0x1466)]=_0x34d053[0x0],_0x35eebf[_0x87d379(0x279f)]['secretaccesskey']=_0x34d053[0x1],_0x35eebf[_0x87d379(0x279f)]['lexregion']=_0x34d053[0x2],_0x35eebf[_0x87d379(0x279f)]['botname']=_0x34d053[0x3],_0x35eebf[_0x87d379(0x279f)][_0x87d379(0x31b)]=_0x34d053[_0x87d379(0x142e)](0x4,_0x34d053[_0x87d379(0x1b9e)])['join'](',');}break;case _0x87d379(0x21a9):{const _0x1e5832=_0x35eebf[_0x87d379(0x279f)][_0x87d379(0xacb)][_0x87d379(0x282c)](',');_0x35eebf['externaldial'][_0x87d379(0x95f)]=isNaN(_0x1e5832[0x0])?_0x1e5832[0x0]:parseInt(_0x1e5832[0x0],0xa),_0x35eebf['externaldial'][_0x87d379(0x39b)]=_0x1e5832[_0x87d379(0x142e)](0x1,_0x1e5832[_0x87d379(0x1b9e)])[_0x87d379(0x9a6)](',');}break;case'message':_0x35eebf[_0x87d379(0x279f)][_0x87d379(0x39b)]=_0x35eebf[_0x87d379(0x279f)][_0x87d379(0xacb)];break;case'set':_0x35eebf['externaldial'][_0x87d379(0x2494)]=_0x35eebf[_0x87d379(0x279f)][_0x87d379(0xacb)][_0x87d379(0x282c)]('=')[0x0],_0x35eebf['externaldial'][_0x87d379(0x1096)]=_0x35eebf[_0x87d379(0x279f)][_0x87d379(0xacb)][_0x87d379(0x282c)]('=')[0x1];break;case _0x87d379(0x1e67):_0x35eebf[_0x87d379(0x279f)][_0x87d379(0x1bd9)]=_0x35eebf[_0x87d379(0x279f)][_0x87d379(0xacb)];break;default:{const _0x303d13=_0x35eebf[_0x87d379(0x279f)][_0x87d379(0xacb)][_0x87d379(0x282c)](',');_0x35eebf[_0x87d379(0x279f)][_0x87d379(0x4ef)]=_0x303d13[0x0][_0x87d379(0x282c)]('/')[0x1],_0x35eebf['externaldial'][_0x87d379(0x267a)]=_0x303d13[0x0]['split']('/')[0x2],_0x35eebf[_0x87d379(0x279f)][_0x87d379(0x16d)]=_0x28c606()['isEmpty'](_0x303d13[0x1])?_0x303d13[0x1]:isNaN(_0x303d13[0x1])?_0x303d13[0x1]:parseInt(_0x303d13[0x1],0xa),_0x35eebf['externaldial'][_0x87d379(0x59e)]=_0x28c606()[_0x87d379(0x940)](_0x303d13[0x2])?_0x303d13[0x2]:isNaN(_0x303d13[0x2])?_0x303d13[0x2]:parseInt(_0x303d13[0x2],0xa),_0x35eebf['externaldial']['url']=_0x28c606()['isEmpty'](_0x303d13[0x3])?_0x303d13[0x3]:isNaN(_0x303d13[0x3])?_0x303d13[0x3]:parseInt(_0x303d13[0x3],0xa);}break;}else{}_0x35eebf[_0x87d379(0x279f)][_0x87d379(0x2185)]&&_0x35eebf[_0x87d379(0x279f)]['type'][_0x87d379(0x2554)]()==='outbound'&&_0x35eebf[_0x87d379(0x279f)][_0x87d379(0x4f4)][_0x87d379(0x2554)]()===_0x87d379(0x20eb)&&(_0x35eebf[_0x87d379(0x279f)][_0x87d379(0x2524)]=_0x35eebf['externaldial'][_0x87d379(0x267a)]?_0x35eebf[_0x87d379(0x279f)]['phone']['split']('$')[0x0]:undefined,_0x35eebf['externaldial'][_0x87d379(0x1a9b)]=_0x35eebf['externaldial']['callerID']?_0x87d379(0x2489)+_0x35eebf['externaldial'][_0x87d379(0x1abe)]:undefined);_0x35eebf[_0x87d379(0x194)]=_0x2d573f,_0x35eebf[_0x87d379(0x16cb)]=_0x492f49,_0x25e6af[_0x87d379(0x4de)](_0x87d379(0x333))?_0x12737f['trunk'][_0x87d379(0x896)]({'fields':_0x87d379(0x1427),'sort':_0x87d379(0x2494),'nolimit':_0x87d379(0x1685)})[_0x87d379(0x15e7)][_0x87d379(0x64a)](function(_0x5d969d){const _0x1153e8=_0x87d379;_0x35eebf['trunks']=_0x5d969d[_0x1153e8(0x28b8)]||[];})[_0x87d379(0x20cd)](function(_0xe2b217){const _0x4a554e=_0x87d379;_0x1d1bc2[_0x4a554e(0x1bd0)]({'title':_0xe2b217['status']?_0x4a554e(0x575)+_0xe2b217[_0x4a554e(0x10b3)]+'\x20-\x20'+_0xe2b217['statusText']:_0x4a554e(0x1d82),'msg':_0xe2b217[_0x4a554e(0x1c52)]?JSON[_0x4a554e(0x2317)](_0xe2b217['data']):_0xe2b217[_0x4a554e(0x2915)]()});}):_0x12737f[_0x87d379(0x4ef)][_0x87d379(0x896)]({'fields':_0x87d379(0x1427),'sort':_0x87d379(0x2494),'nolimit':_0x87d379(0x1685)})[_0x87d379(0x15e7)]['then'](function(_0x81ea3a){const _0x56f177=_0x87d379;_0x35eebf[_0x56f177(0xe23)]=_0x81ea3a[_0x56f177(0x28b8)]||[];})[_0x87d379(0x64a)](function(){const _0x2a360a=_0x87d379;return _0x12737f[_0x2a360a(0x16b2)][_0x2a360a(0x896)]({'userProfileId':_0x35eebf['currentUser'][_0x2a360a(0x21ac)],'sectionId':0x3f3})['$promise'];})['then'](function(_0x5ec748){const _0x2ccfbd=_0x87d379,_0x407d85=_0x5ec748&&_0x5ec748[_0x2ccfbd(0x28b8)]?_0x5ec748['rows'][0x0]:null;if(!_0x407d85){const _0x50471d=[];let _0x4bf009=null;_0x35eebf[_0x2ccfbd(0x279f)]&&(_0x4bf009=_0x28c606()[_0x2ccfbd(0x27bc)](_0x35eebf[_0x2ccfbd(0xe23)],{'name':_0x35eebf[_0x2ccfbd(0x279f)]['trunk']}));for(let _0x464ccf=0x0;_0x464ccf<_0x35eebf[_0x2ccfbd(0xe23)][_0x2ccfbd(0x1b9e)];_0x464ccf++){_0x4bf009&&_0x35eebf['trunks'][_0x464ccf]['id']===_0x4bf009['id']&&(_0x35eebf[_0x2ccfbd(0xe23)][_0x464ccf][_0x2ccfbd(0xd4f)]=![],_0x50471d['push'](_0x35eebf['trunks'][_0x464ccf]));}_0x35eebf[_0x2ccfbd(0xe23)]=_0x50471d;}else{if(!_0x407d85[_0x2ccfbd(0x11da)])return _0x12737f['userProfileResource'][_0x2ccfbd(0x896)]({'sectionId':_0x407d85['id']})[_0x2ccfbd(0x15e7)][_0x2ccfbd(0x64a)](function(_0x11cdc4){const _0x3f4066=_0x2ccfbd,_0x2b1afc=_0x28c606()[_0x3f4066(0x1de5)](_0x11cdc4['rows'],function(_0x503a8c){const _0x421de8=_0x3f4066;return _0x28c606()[_0x421de8(0x27bc)](_0x35eebf['trunks'],{'id':_0x503a8c[_0x421de8(0x145)]});});let _0x2d158d=null;_0x35eebf['externaldial']&&(_0x2d158d=_0x28c606()[_0x3f4066(0x27bc)](_0x35eebf[_0x3f4066(0xe23)],{'name':_0x35eebf[_0x3f4066(0x279f)][_0x3f4066(0x4ef)]}));if(_0x2d158d&&!_0x28c606()[_0x3f4066(0x25f8)](_0x2b1afc,['id',_0x2d158d['id']])){const _0x1d7d99=_0x28c606()[_0x3f4066(0x27bc)](_0x35eebf[_0x3f4066(0xe23)],{'id':_0x2d158d['id']});_0x1d7d99['canSelect']=![],_0x2b1afc['push'](_0x1d7d99);}_0x35eebf[_0x3f4066(0xe23)]=_0x2b1afc;});}})['catch'](function(_0x50fa58){const _0x3582a1=_0x87d379;_0x1d1bc2[_0x3582a1(0x1bd0)]({'title':_0x50fa58[_0x3582a1(0x10b3)]?_0x3582a1(0x575)+_0x50fa58[_0x3582a1(0x10b3)]+_0x3582a1(0x21db)+_0x50fa58['statusText']:'SYSTEM:GETtrunks','msg':_0x50fa58[_0x3582a1(0x1c52)]?JSON[_0x3582a1(0x2317)](_0x50fa58[_0x3582a1(0x1c52)]):_0x50fa58[_0x3582a1(0x2915)]()});});function _0x2d573f(){const _0x7516fc=_0x87d379;_0x35eebf[_0x7516fc(0xbae)]=[];const _0x567b87=[];_0x35eebf[_0x7516fc(0x279f)]['type']&&_0x35eebf['externaldial'][_0x7516fc(0x2185)][_0x7516fc(0x2554)]()===_0x7516fc(0xbce)&&_0x35eebf['externaldial']['appType']===_0x7516fc(0x17b6)&&(_0x35eebf['externaldial']['phone']=_0x26dc69[_0x7516fc(0x242b)]?(_0x35eebf[_0x7516fc(0x279f)][_0x7516fc(0x2524)]||'')+_0x7516fc(0x1a75)+_0x26dc69[_0x7516fc(0x242b)]+'}':(_0x35eebf['externaldial'][_0x7516fc(0x2524)]||'')+_0x7516fc(0x5ad),_0x26dc69[_0x7516fc(0x1097)]!=='none'?_0x35eebf[_0x7516fc(0x279f)][_0x7516fc(0x59e)][_0x7516fc(0x1b28)]('U(xcally-mixmonitor-context)')<0x0&&(_0x35eebf[_0x7516fc(0x279f)][_0x7516fc(0x59e)]+=_0x7516fc(0x13e0)):_0x35eebf[_0x7516fc(0x279f)]['options']=_0x35eebf[_0x7516fc(0x279f)]['options']['replace']('U(xcally-mixmonitor-context)',''));if(_0x35eebf[_0x7516fc(0x279f)][_0x7516fc(0x4f4)]&&_0x35eebf[_0x7516fc(0x279f)][_0x7516fc(0x4f4)]===_0x7516fc(0x1ad6)){}else switch((_0x35eebf[_0x7516fc(0x279f)][_0x7516fc(0x16e1)]||_0x35eebf['externaldial'][_0x7516fc(0x4f4)])['toLowerCase']()){case _0x7516fc(0x1979):_0x35eebf[_0x7516fc(0x279f)][_0x7516fc(0xacb)]=_0x35eebf['externaldial'][_0x7516fc(0x2494)]+'='+_0x35eebf[_0x7516fc(0x279f)][_0x7516fc(0x1096)];break;case'custom':break;default:_0x567b87[0x0]=[_0x7516fc(0x2644),_0x35eebf[_0x7516fc(0x279f)][_0x7516fc(0x4ef)],_0x35eebf[_0x7516fc(0x279f)][_0x7516fc(0x267a)]][_0x7516fc(0x9a6)]('/'),_0x567b87[0x1]=_0x35eebf[_0x7516fc(0x279f)][_0x7516fc(0x16d)],_0x567b87[0x2]=_0x35eebf[_0x7516fc(0x279f)][_0x7516fc(0x59e)],_0x567b87[0x3]=_0x35eebf['externaldial'][_0x7516fc(0x2761)],_0x35eebf['externaldial'][_0x7516fc(0xacb)]=_0x567b87['join'](',');}_0x492f49(_0x35eebf[_0x7516fc(0x279f)]);}function _0x492f49(_0x2b62c9){const _0x3835e2=_0x87d379;_0x10ed12[_0x3835e2(0x268e)](_0x2b62c9);}}const _0x3f03d9=_0x599afc;;_0x2e5cd9[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xfec),_0x49a1e3(0x18b9),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x2e5cd9(_0x3fa095,_0x1eb079,_0x1e8351,_0xace7b4,_0x20782d,_0x4326fe,_0x1ce8e7,_0x18c803){const _0x31b3f5=_0x49a1e3,_0x53bd24=this;_0x53bd24['currentUser']=_0x1ce8e7[_0x31b3f5(0x808)](),_0x53bd24[_0x31b3f5(0xbae)]=[],_0x53bd24[_0x31b3f5(0x2021)]='VOICE.EDIT_'+(_0xace7b4[_0x31b3f5(0x4f4)]||_0xace7b4[_0x31b3f5(0x16e1)])[_0x31b3f5(0xa3c)](),_0x53bd24[_0x31b3f5(0x1e5a)]=angular[_0x31b3f5(0x289e)](_0xace7b4),_0x53bd24[_0x31b3f5(0x402)]=_0x18c803,_0x53bd24[_0x31b3f5(0x6c2)]={};if(_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0xacb)])switch(_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x4f4)]?_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x4f4)][_0x31b3f5(0x2554)]():_0x53bd24[_0x31b3f5(0x1e5a)]['app'][_0x31b3f5(0x2554)]()){case'custom':break;case _0x31b3f5(0x1084):{const _0x2511c1=_0x53bd24['goto'][_0x31b3f5(0xacb)][_0x31b3f5(0x282c)](',');_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x2125)]=_0x2511c1[0x0],_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x1cbd)]=_0x2511c1[0x1],_0x53bd24[_0x31b3f5(0x1e5a)]['welcomemessage']=_0x2511c1['slice'](0x2,_0x2511c1['length'])[_0x31b3f5(0x9a6)](',');}break;case _0x31b3f5(0x1b1a):{const _0x4848c5=_0x53bd24[_0x31b3f5(0x1e5a)]['appdata'][_0x31b3f5(0x282c)](',');_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0xbfd)]=_0x4848c5[0x0],_0x53bd24['goto'][_0x31b3f5(0x4b2)]=_0x4848c5[0x1],_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x1b1b)]=_0x4848c5[0x2],_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x1cbd)]=_0x4848c5[0x3],_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x31b)]=_0x4848c5['slice'](0x4,_0x4848c5['length'])[_0x31b3f5(0x9a6)](',');}break;case'amazonlex':{const _0x49d064=_0x53bd24[_0x31b3f5(0x1e5a)]['appdata'][_0x31b3f5(0x282c)](',');_0x53bd24['goto'][_0x31b3f5(0x1466)]=_0x49d064[0x0],_0x53bd24[_0x31b3f5(0x1e5a)]['secretaccesskey']=_0x49d064[0x1],_0x53bd24['goto'][_0x31b3f5(0x17a2)]=_0x49d064[0x2],_0x53bd24['goto'][_0x31b3f5(0x2797)]=_0x49d064[0x3],_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x31b)]=_0x49d064['slice'](0x4,_0x49d064[_0x31b3f5(0x1b9e)])[_0x31b3f5(0x9a6)](',');}break;case _0x31b3f5(0x21a9):{const _0xd3d136=_0x53bd24['goto']['appdata']['split'](',');_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x95f)]=isNaN(_0xd3d136[0x0])?_0xd3d136[0x0]:parseInt(_0xd3d136[0x0],0xa),_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x39b)]=_0xd3d136['slice'](0x1,_0xd3d136['length'])['join'](',');}break;case _0x31b3f5(0x18ca):_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x39b)]=_0x53bd24[_0x31b3f5(0x1e5a)]['appdata'];break;case'set':_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x2494)]=_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0xacb)][_0x31b3f5(0x282c)]('=')[0x0],_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x1096)]=_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0xacb)][_0x31b3f5(0x282c)]('=')[0x1];break;case _0x31b3f5(0x1e67):_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x1bd9)]=_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0xacb)];break;default:{const _0x5288aa=_0x53bd24['goto']['appdata'][_0x31b3f5(0x282c)](',');_0x53bd24[_0x31b3f5(0x1e5a)]['context']=_0x28c606()[_0x31b3f5(0x940)](_0x5288aa[0x0])?_0x5288aa[0x0]:isNaN(_0x5288aa[0x0])?_0x5288aa[0x0]:parseInt(_0x5288aa[0x0],0xa),_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x13d4)]=_0x28c606()[_0x31b3f5(0x940)](_0x5288aa[0x1])?_0x5288aa[0x1]:isNaN(_0x5288aa[0x1])?_0x5288aa[0x1]:parseInt(_0x5288aa[0x1],0xa),_0x53bd24['goto'][_0x31b3f5(0x1095)]=_0x28c606()['isEmpty'](_0x5288aa[0x2])?_0x5288aa[0x2]:isNaN(_0x5288aa[0x2])?_0x5288aa[0x2]:parseInt(_0x5288aa[0x2],0xa);}break;}else{}_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x2185)]&&_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x2185)][_0x31b3f5(0x2554)]()===_0x31b3f5(0xbce)&&_0x53bd24[_0x31b3f5(0x1e5a)]['appType'][_0x31b3f5(0x2554)]()===_0x31b3f5(0x20eb)&&(_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x2524)]=_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x267a)]?_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x267a)][_0x31b3f5(0x282c)]('$')[0x0]:undefined,_0x53bd24[_0x31b3f5(0x1e5a)]['callerId']=_0x53bd24[_0x31b3f5(0x1e5a)]['callerID']?'CALLERID(all)='+_0x53bd24[_0x31b3f5(0x1e5a)][_0x31b3f5(0x1abe)]:undefined);_0x53bd24[_0x31b3f5(0x194)]=_0x19f26a,_0x53bd24[_0x31b3f5(0x16cb)]=_0x76b1b0,_0x1ce8e7[_0x31b3f5(0x4de)](_0x31b3f5(0x333))?_0x4326fe[_0x31b3f5(0x1faa)][_0x31b3f5(0x896)]({'fields':_0x31b3f5(0x1427),'sort':_0x31b3f5(0x2494),'nolimit':'true'})[_0x31b3f5(0x15e7)][_0x31b3f5(0x64a)](function(_0x4b8a3c){const _0x2391b8=_0x31b3f5;_0x53bd24['contexts']=_0x4b8a3c[_0x2391b8(0x28b8)]||[];})['catch'](function(_0xca906c){const _0x249aab=_0x31b3f5;_0x1e8351['error']({'title':_0xca906c['status']?'API:'+_0xca906c[_0x249aab(0x10b3)]+_0x249aab(0x21db)+_0xca906c[_0x249aab(0x2115)]:'SYSTEM:GET_CONTEXTS','msg':_0xca906c[_0x249aab(0x1c52)]?JSON['stringify'](_0xca906c['data']):_0xca906c['toString']()});}):_0x4326fe[_0x31b3f5(0x1faa)]['get']({'fields':_0x31b3f5(0x1427),'sort':_0x31b3f5(0x2494),'nolimit':_0x31b3f5(0x1685)})[_0x31b3f5(0x15e7)][_0x31b3f5(0x64a)](function(_0x4a31fd){const _0x1ae8b1=_0x31b3f5;_0x53bd24['contexts']=_0x4a31fd[_0x1ae8b1(0x28b8)]||[];})['then'](function(){const _0x5e89ac=_0x31b3f5;return _0x4326fe[_0x5e89ac(0x16b2)][_0x5e89ac(0x896)]({'userProfileId':_0x53bd24[_0x5e89ac(0x1d3d)]['userProfileId'],'sectionId':0x195})['$promise'];})['then'](function(_0x4d35d5){const _0x21343e=_0x31b3f5,_0x26b491=_0x4d35d5&&_0x4d35d5[_0x21343e(0x28b8)]?_0x4d35d5['rows'][0x0]:null;if(!_0x26b491)return _0x4326fe['voiceContext'][_0x21343e(0x896)]({'fields':_0x21343e(0x1427),'sort':_0x21343e(0x2494),'nolimit':_0x21343e(0x1685),'defaultEntry':0x1})[_0x21343e(0x15e7)][_0x21343e(0x64a)](function(_0x11fcfe){const _0x284308=_0x21343e;_0x53bd24[_0x284308(0xad1)]=_0x11fcfe[_0x284308(0x28b8)]||[];});else{if(!_0x26b491[_0x21343e(0x11da)])return _0x4326fe[_0x21343e(0x1617)][_0x21343e(0x896)]({'sectionId':_0x26b491['id']})[_0x21343e(0x15e7)]['then'](function(_0x40e7ca){const _0x100d91=_0x21343e,_0x4107d4=_0x28c606()[_0x100d91(0x1de5)](_0x40e7ca[_0x100d91(0x28b8)],function(_0x51ba10){const _0x4bc298=_0x100d91;return _0x28c606()[_0x4bc298(0x27bc)](_0x53bd24[_0x4bc298(0xad1)],{'id':_0x51ba10[_0x4bc298(0x145)]});});let _0x503e3b=null;_0x53bd24[_0x100d91(0x1e5a)]&&(_0x503e3b=_0x28c606()['find'](_0x53bd24[_0x100d91(0xad1)],{'name':_0x53bd24[_0x100d91(0x1e5a)][_0x100d91(0x139)]}));if(_0x503e3b&&!_0x28c606()[_0x100d91(0x25f8)](_0x4107d4,['id',_0x503e3b['id']])){const _0x493b0b=_0x28c606()[_0x100d91(0x27bc)](_0x53bd24[_0x100d91(0xad1)],{'id':_0x503e3b['id']});_0x493b0b[_0x100d91(0xd4f)]=![],_0x4107d4[_0x100d91(0x1954)](_0x493b0b);}_0x53bd24[_0x100d91(0xad1)]=_0x4107d4;});}})[_0x31b3f5(0x20cd)](function(_0xe4e986){const _0x5f4105=_0x31b3f5;_0x1e8351[_0x5f4105(0x1bd0)]({'title':_0xe4e986[_0x5f4105(0x10b3)]?'API:'+_0xe4e986[_0x5f4105(0x10b3)]+_0x5f4105(0x21db)+_0xe4e986[_0x5f4105(0x2115)]:_0x5f4105(0x184b),'msg':_0xe4e986[_0x5f4105(0x1c52)]?JSON[_0x5f4105(0x2317)](_0xe4e986['data']):_0xe4e986[_0x5f4105(0x2915)]()});});function _0x19f26a(){const _0x53628c=_0x31b3f5;_0x53bd24[_0x53628c(0xbae)]=[];const _0x15df60=[];_0x53bd24['goto']['type']&&_0x53bd24[_0x53628c(0x1e5a)][_0x53628c(0x2185)]['toLowerCase']()==='outbound'&&_0x53bd24['goto'][_0x53628c(0x4f4)]===_0x53628c(0x17b6)&&(_0x53bd24[_0x53628c(0x1e5a)][_0x53628c(0x267a)]=_0x20782d[_0x53628c(0x242b)]?(_0x53bd24['goto']['prefix']||'')+_0x53628c(0x1a75)+_0x20782d[_0x53628c(0x242b)]+'}':(_0x53bd24[_0x53628c(0x1e5a)]['prefix']||'')+_0x53628c(0x5ad),_0x20782d[_0x53628c(0x1097)]!=='none'?_0x53bd24[_0x53628c(0x1e5a)]['options']['indexOf'](_0x53628c(0x13e0))<0x0&&(_0x53bd24[_0x53628c(0x1e5a)]['options']+=_0x53628c(0x13e0)):_0x53bd24['goto'][_0x53628c(0x59e)]=_0x53bd24[_0x53628c(0x1e5a)][_0x53628c(0x59e)]['replace'](_0x53628c(0x13e0),''));if(_0x53bd24['goto']['appType']&&_0x53bd24[_0x53628c(0x1e5a)][_0x53628c(0x4f4)]===_0x53628c(0x1ad6)){}else switch((_0x53bd24[_0x53628c(0x1e5a)][_0x53628c(0x16e1)]||_0x53bd24[_0x53628c(0x1e5a)][_0x53628c(0x4f4)])['toLowerCase']()){case _0x53628c(0x1979):_0x53bd24[_0x53628c(0x1e5a)][_0x53628c(0xacb)]=_0x53bd24[_0x53628c(0x1e5a)]['name']+'='+_0x53bd24[_0x53628c(0x1e5a)]['value'];break;case _0x53628c(0x1ad6):break;default:_0x15df60[0x0]=_0x53bd24[_0x53628c(0x1e5a)][_0x53628c(0x139)],_0x15df60[0x1]=_0x53bd24[_0x53628c(0x1e5a)][_0x53628c(0x13d4)],_0x15df60[0x2]=_0x53bd24[_0x53628c(0x1e5a)][_0x53628c(0x1095)],_0x53bd24[_0x53628c(0x1e5a)][_0x53628c(0xacb)]=_0x15df60[_0x53628c(0x9a6)](',');}_0x76b1b0(_0x53bd24[_0x53628c(0x1e5a)]);}function _0x76b1b0(_0x367ce1){const _0x27dc48=_0x31b3f5;_0x3fa095[_0x27dc48(0x268e)](_0x367ce1);}}const _0x43dd34=_0x2e5cd9;;_0x4017c7['$inject']=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xfec),_0x49a1e3(0x18b9),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x4017c7(_0x11a92b,_0x2586e7,_0x588a66,_0x18e377,_0x3e0283,_0x2bb54c,_0xdcecea,_0x3dd629){const _0x1e1481=_0x49a1e3,_0x4e152b=this;_0x4e152b['currentUser']=_0xdcecea[_0x1e1481(0x808)](),_0x4e152b[_0x1e1481(0xbae)]=[],_0x4e152b[_0x1e1481(0x2021)]='VOICE.EDIT_'+(_0x18e377[_0x1e1481(0x4f4)]||_0x18e377[_0x1e1481(0x16e1)])[_0x1e1481(0xa3c)](),_0x4e152b['hangup']=angular['copy'](_0x18e377),_0x4e152b[_0x1e1481(0x402)]=_0x3dd629,_0x4e152b[_0x1e1481(0x6c2)]={};if(_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0xacb)])switch(_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x4f4)]?_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x4f4)][_0x1e1481(0x2554)]():_0x4e152b['hangup']['app'][_0x1e1481(0x2554)]()){case _0x1e1481(0x1ad6):break;case'dialogflow':{const _0x1e9087=_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0xacb)]['split'](',');_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x2125)]=_0x1e9087[0x0],_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x1cbd)]=_0x1e9087[0x1],_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x31b)]=_0x1e9087['slice'](0x2,_0x1e9087[_0x1e1481(0x1b9e)])[_0x1e1481(0x9a6)](',');}break;case'dialogflowv2':{const _0x3511bb=_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0xacb)]['split'](',');_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0xbfd)]=_0x3511bb[0x0],_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x4b2)]=_0x3511bb[0x1],_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x1b1b)]=_0x3511bb[0x2],_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x1cbd)]=_0x3511bb[0x3],_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x31b)]=_0x3511bb['slice'](0x4,_0x3511bb[_0x1e1481(0x1b9e)])[_0x1e1481(0x9a6)](',');}break;case'amazonlex':{const _0x5c52ea=_0x4e152b[_0x1e1481(0x19dc)]['appdata'][_0x1e1481(0x282c)](',');_0x4e152b['hangup'][_0x1e1481(0x1466)]=_0x5c52ea[0x0],_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x1b1)]=_0x5c52ea[0x1],_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x17a2)]=_0x5c52ea[0x2],_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x2797)]=_0x5c52ea[0x3],_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x31b)]=_0x5c52ea[_0x1e1481(0x142e)](0x4,_0x5c52ea[_0x1e1481(0x1b9e)])[_0x1e1481(0x9a6)](',');}break;case'autoreply':{const _0x27cd4a=_0x4e152b['hangup'][_0x1e1481(0xacb)]['split'](',');_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x95f)]=isNaN(_0x27cd4a[0x0])?_0x27cd4a[0x0]:parseInt(_0x27cd4a[0x0],0xa),_0x4e152b['hangup']['text']=_0x27cd4a[_0x1e1481(0x142e)](0x1,_0x27cd4a['length'])['join'](',');}break;case'message':_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x39b)]=_0x4e152b[_0x1e1481(0x19dc)]['appdata'];break;case'set':_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x2494)]=_0x4e152b[_0x1e1481(0x19dc)]['appdata'][_0x1e1481(0x282c)]('=')[0x0],_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x1096)]=_0x4e152b['hangup'][_0x1e1481(0xacb)]['split']('=')[0x1];break;case _0x1e1481(0x1e67):_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x1bd9)]=_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0xacb)];break;default:{const _0x2df01c=_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0xacb)][_0x1e1481(0x282c)](',');_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0xacb)]=_0x28c606()[_0x1e1481(0x940)](_0x2df01c[0x0])?_0x2df01c[0x0]:isNaN(_0x2df01c[0x0])?_0x2df01c[0x0]:parseInt(_0x2df01c[0x0],0xa);}break;}else{}_0x4e152b['hangup']['type']&&_0x4e152b['hangup'][_0x1e1481(0x2185)][_0x1e1481(0x2554)]()===_0x1e1481(0xbce)&&_0x4e152b[_0x1e1481(0x19dc)]['appType'][_0x1e1481(0x2554)]()===_0x1e1481(0x20eb)&&(_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x2524)]=_0x4e152b[_0x1e1481(0x19dc)]['phone']?_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x267a)][_0x1e1481(0x282c)]('$')[0x0]:undefined,_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x1a9b)]=_0x4e152b['hangup'][_0x1e1481(0x1abe)]?'CALLERID(all)='+_0x4e152b[_0x1e1481(0x19dc)][_0x1e1481(0x1abe)]:undefined);_0x4e152b[_0x1e1481(0x194)]=_0x3a0ff9,_0x4e152b[_0x1e1481(0x16cb)]=_0x552a6c;function _0x3a0ff9(){const _0x7ceea4=_0x1e1481;_0x4e152b[_0x7ceea4(0xbae)]=[];const _0x5493c2=[];_0x4e152b[_0x7ceea4(0x19dc)][_0x7ceea4(0x2185)]&&_0x4e152b[_0x7ceea4(0x19dc)]['type'][_0x7ceea4(0x2554)]()===_0x7ceea4(0xbce)&&_0x4e152b[_0x7ceea4(0x19dc)][_0x7ceea4(0x4f4)]===_0x7ceea4(0x17b6)&&(_0x4e152b[_0x7ceea4(0x19dc)]['phone']=_0x3e0283[_0x7ceea4(0x242b)]?(_0x4e152b[_0x7ceea4(0x19dc)][_0x7ceea4(0x2524)]||'')+_0x7ceea4(0x1a75)+_0x3e0283[_0x7ceea4(0x242b)]+'}':(_0x4e152b[_0x7ceea4(0x19dc)][_0x7ceea4(0x2524)]||'')+_0x7ceea4(0x5ad),_0x3e0283[_0x7ceea4(0x1097)]!==_0x7ceea4(0x2507)?_0x4e152b[_0x7ceea4(0x19dc)][_0x7ceea4(0x59e)]['indexOf'](_0x7ceea4(0x13e0))<0x0&&(_0x4e152b['hangup'][_0x7ceea4(0x59e)]+='U(xcally-mixmonitor-context)'):_0x4e152b[_0x7ceea4(0x19dc)]['options']=_0x4e152b['hangup'][_0x7ceea4(0x59e)]['replace'](_0x7ceea4(0x13e0),''));if(_0x4e152b[_0x7ceea4(0x19dc)][_0x7ceea4(0x4f4)]&&_0x4e152b[_0x7ceea4(0x19dc)][_0x7ceea4(0x4f4)]===_0x7ceea4(0x1ad6)){}else switch((_0x4e152b[_0x7ceea4(0x19dc)][_0x7ceea4(0x16e1)]||_0x4e152b[_0x7ceea4(0x19dc)][_0x7ceea4(0x4f4)])[_0x7ceea4(0x2554)]()){case _0x7ceea4(0x1979):_0x4e152b['hangup'][_0x7ceea4(0xacb)]=_0x4e152b[_0x7ceea4(0x19dc)][_0x7ceea4(0x2494)]+'='+_0x4e152b[_0x7ceea4(0x19dc)][_0x7ceea4(0x1096)];break;case _0x7ceea4(0x1ad6):break;default:_0x5493c2[0x0]=_0x4e152b['hangup'][_0x7ceea4(0xacb)],_0x4e152b['hangup']['appdata']=_0x5493c2['join'](',');}_0x552a6c(_0x4e152b[_0x7ceea4(0x19dc)]);}function _0x552a6c(_0x13348b){const _0x2d37a9=_0x1e1481;_0x11a92b[_0x2d37a9(0x268e)](_0x13348b);}}const _0x12e2d9=_0x4017c7;;_0x4c8fa5['$inject']=['$mdDialog','$q','toasty',_0x49a1e3(0xfec),_0x49a1e3(0x18b9),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'crudPermissions'];function _0x4c8fa5(_0x91a4d6,_0x3f6887,_0xcd65b7,_0x50dd41,_0x333fb6,_0x24e522,_0x46d13d,_0x4a4d34){const _0x4fc6f5=_0x49a1e3,_0x542412=this;_0x542412[_0x4fc6f5(0x1d3d)]=_0x46d13d['getCurrentUser'](),_0x542412['errors']=[],_0x542412[_0x4fc6f5(0x2021)]=_0x4fc6f5(0x2073)+(_0x50dd41[_0x4fc6f5(0x4f4)]||_0x50dd41[_0x4fc6f5(0x16e1)])[_0x4fc6f5(0xa3c)](),_0x542412[_0x4fc6f5(0x161)]=angular[_0x4fc6f5(0x289e)](_0x50dd41),_0x542412['crudPermissions']=_0x4a4d34,_0x542412[_0x4fc6f5(0x6c2)]={};if(_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0xacb)])switch(_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x4f4)]?_0x542412[_0x4fc6f5(0x161)]['appType']['toLowerCase']():_0x542412['internaldial'][_0x4fc6f5(0x16e1)][_0x4fc6f5(0x2554)]()){case _0x4fc6f5(0x1ad6):break;case'dialogflow':{const _0x2b859e=_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0xacb)][_0x4fc6f5(0x282c)](',');_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x2125)]=_0x2b859e[0x0],_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x1cbd)]=_0x2b859e[0x1],_0x542412[_0x4fc6f5(0x161)]['welcomemessage']=_0x2b859e[_0x4fc6f5(0x142e)](0x2,_0x2b859e[_0x4fc6f5(0x1b9e)])[_0x4fc6f5(0x9a6)](',');}break;case'dialogflowv2':{const _0x556271=_0x542412['internaldial'][_0x4fc6f5(0xacb)]['split'](',');_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0xbfd)]=_0x556271[0x0],_0x542412['internaldial'][_0x4fc6f5(0x4b2)]=_0x556271[0x1],_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x1b1b)]=_0x556271[0x2],_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x1cbd)]=_0x556271[0x3],_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x31b)]=_0x556271[_0x4fc6f5(0x142e)](0x4,_0x556271[_0x4fc6f5(0x1b9e)])[_0x4fc6f5(0x9a6)](',');}break;case _0x4fc6f5(0x290d):{const _0x5c00c5=_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0xacb)][_0x4fc6f5(0x282c)](',');_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x1466)]=_0x5c00c5[0x0],_0x542412['internaldial'][_0x4fc6f5(0x1b1)]=_0x5c00c5[0x1],_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x17a2)]=_0x5c00c5[0x2],_0x542412[_0x4fc6f5(0x161)]['botname']=_0x5c00c5[0x3],_0x542412[_0x4fc6f5(0x161)]['welcomemessage']=_0x5c00c5[_0x4fc6f5(0x142e)](0x4,_0x5c00c5[_0x4fc6f5(0x1b9e)])[_0x4fc6f5(0x9a6)](',');}break;case _0x4fc6f5(0x21a9):{const _0x3226b5=_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0xacb)]['split'](',');_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x95f)]=isNaN(_0x3226b5[0x0])?_0x3226b5[0x0]:parseInt(_0x3226b5[0x0],0xa),_0x542412['internaldial']['text']=_0x3226b5[_0x4fc6f5(0x142e)](0x1,_0x3226b5[_0x4fc6f5(0x1b9e)])[_0x4fc6f5(0x9a6)](',');}break;case _0x4fc6f5(0x18ca):_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x39b)]=_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0xacb)];break;case'set':_0x542412['internaldial'][_0x4fc6f5(0x2494)]=_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0xacb)][_0x4fc6f5(0x282c)]('=')[0x0],_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x1096)]=_0x542412[_0x4fc6f5(0x161)]['appdata'][_0x4fc6f5(0x282c)]('=')[0x1];break;case _0x4fc6f5(0x1e67):_0x542412['internaldial']['project']=_0x542412['internaldial'][_0x4fc6f5(0xacb)];break;default:{const _0x4b2a76=_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0xacb)]['split'](',');_0x542412[_0x4fc6f5(0x161)]['user']=_0x28c606()[_0x4fc6f5(0x940)](_0x4b2a76[0x0])?_0x4b2a76[0x0]:isNaN(_0x4b2a76[0x0])?_0x4b2a76[0x0]:parseInt(_0x4b2a76[0x0],0xa),_0x542412[_0x4fc6f5(0x161)]['timeout']=_0x28c606()[_0x4fc6f5(0x940)](_0x4b2a76[0x1])?_0x4b2a76[0x1]:isNaN(_0x4b2a76[0x1])?_0x4b2a76[0x1]:parseInt(_0x4b2a76[0x1],0xa),_0x542412[_0x4fc6f5(0x161)]['options']=_0x28c606()[_0x4fc6f5(0x940)](_0x4b2a76[0x2])?_0x4b2a76[0x2]:isNaN(_0x4b2a76[0x2])?_0x4b2a76[0x2]:parseInt(_0x4b2a76[0x2],0xa),_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x2761)]=_0x28c606()[_0x4fc6f5(0x940)](_0x4b2a76[0x3])?_0x4b2a76[0x3]:isNaN(_0x4b2a76[0x3])?_0x4b2a76[0x3]:parseInt(_0x4b2a76[0x3],0xa);}break;}else{}_0x542412[_0x4fc6f5(0x161)]['type']&&_0x542412['internaldial'][_0x4fc6f5(0x2185)][_0x4fc6f5(0x2554)]()===_0x4fc6f5(0xbce)&&_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x4f4)][_0x4fc6f5(0x2554)]()===_0x4fc6f5(0x20eb)&&(_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x2524)]=_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x267a)]?_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x267a)][_0x4fc6f5(0x282c)]('$')[0x0]:undefined,_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x1a9b)]=_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x1abe)]?'CALLERID(all)='+_0x542412[_0x4fc6f5(0x161)][_0x4fc6f5(0x1abe)]:undefined);_0x542412[_0x4fc6f5(0x194)]=_0x1603bf,_0x542412[_0x4fc6f5(0x16cb)]=_0xb1b371;const _0x1d4692=[{'id':0xca,'role':_0x4fc6f5(0x11ae)},{'id':0xcb,'role':'telephone'}];let _0x216b20=null;_0x46d13d['hasRole'](_0x4fc6f5(0x333))?_0x24e522[_0x4fc6f5(0x2e8)][_0x4fc6f5(0x896)]({'fields':'id,name,role','sort':_0x4fc6f5(0x2494),'nolimit':'true'})[_0x4fc6f5(0x15e7)][_0x4fc6f5(0x64a)](function(_0x3f2dda){const _0x1c037a=_0x4fc6f5;_0x542412[_0x1c037a(0xff5)]=_0x3f2dda[_0x1c037a(0x28b8)]||[];})['catch'](function(_0x37a18d){const _0x34b36c=_0x4fc6f5;_0xcd65b7[_0x34b36c(0x1bd0)]({'title':_0x37a18d[_0x34b36c(0x10b3)]?_0x34b36c(0x575)+_0x37a18d[_0x34b36c(0x10b3)]+_0x34b36c(0x21db)+_0x37a18d[_0x34b36c(0x2115)]:'SYSTEM:GET_USERS','msg':_0x37a18d['data']?JSON['stringify'](_0x37a18d[_0x34b36c(0x1c52)]):_0x37a18d[_0x34b36c(0x2915)]()});}):_0x24e522[_0x4fc6f5(0x2e8)][_0x4fc6f5(0x896)]({'fields':_0x4fc6f5(0x298b),'sort':_0x4fc6f5(0x2494),'nolimit':_0x4fc6f5(0x1685)})['$promise'][_0x4fc6f5(0x64a)](function(_0x4ec00c){const _0xb1f597=_0x4fc6f5;_0x216b20=_0x4ec00c[_0xb1f597(0x28b8)]||[];})[_0x4fc6f5(0x64a)](function(){const _0x3e09ab=_0x4fc6f5,_0x44700a=[];for(let _0x5650b3=0x0;_0x5650b3<_0x1d4692[_0x3e09ab(0x1b9e)];_0x5650b3++){_0x44700a[_0x3e09ab(0x1954)](_0x24e522['userProfileSection']['get']({'userProfileId':_0x542412[_0x3e09ab(0x1d3d)][_0x3e09ab(0x21ac)],'sectionId':_0x1d4692[_0x5650b3]['id']})[_0x3e09ab(0x15e7)]);}return _0x3f6887[_0x3e09ab(0x2705)](_0x44700a);})[_0x4fc6f5(0x64a)](function(_0x1b2842){const _0x2ab3c1=_0x4fc6f5,_0x4dde0d=_0x28c606()['map'](_0x1b2842,function(_0xb7955c){const _0x360c7b=a0_0x4127;return _0xb7955c&&_0xb7955c[_0x360c7b(0x28b8)]?_0xb7955c['rows'][0x0]:null;}),_0x31209c=[];for(let _0x208311=0x0;_0x208311<_0x1d4692[_0x2ab3c1(0x1b9e)];_0x208311++){const _0x3aa3d3=_0x28c606()['find'](_0x4dde0d,[_0x2ab3c1(0xf7b),_0x1d4692[_0x208311]['id']]);if(_0x3aa3d3){if(!_0x3aa3d3[_0x2ab3c1(0x11da)])_0x31209c[_0x2ab3c1(0x1954)](_0x24e522[_0x2ab3c1(0x1617)][_0x2ab3c1(0x896)]({'sectionId':_0x3aa3d3['id']})[_0x2ab3c1(0x15e7)]);else{const _0x33542d=[];_0x216b20['forEach'](function(_0x330478){const _0x3a33b4=_0x2ab3c1;_0x330478[_0x3a33b4(0x161a)]===_0x1d4692[_0x208311][_0x3a33b4(0x161a)]&&_0x33542d[_0x3a33b4(0x1954)](_0x330478);}),_0x31209c['push']({'rows':_0x33542d,'count':_0x33542d['length']});}}}return _0x3f6887[_0x2ab3c1(0x2705)](_0x31209c);})[_0x4fc6f5(0x64a)](function(_0xe5c4f4){const _0x2921ab=_0x4fc6f5,_0x4fec2d=[];let _0x3209d0=null;_0x542412[_0x2921ab(0x161)]&&(_0x3209d0=_0x28c606()[_0x2921ab(0x27bc)](_0x216b20,{'name':_0x542412['internaldial']['user']}));for(let _0x4d5b15=0x0;_0x4d5b15<_0xe5c4f4['length'];_0x4d5b15++){const _0x18217f=_0xe5c4f4[_0x4d5b15][_0x2921ab(0x28b8)]||[];_0x18217f[_0x2921ab(0x1397)](function(_0x4ded83){const _0x2c4f7e=_0x2921ab;_0x4fec2d[_0x2c4f7e(0x1954)](_0x4ded83);});}_0x3209d0&&!_0x28c606()[_0x2921ab(0x25f8)](_0x4fec2d,[_0x2921ab(0x145),_0x3209d0['id']])&&_0x216b20['forEach'](function(_0x106e84){_0x106e84['id']===_0x3209d0['id']&&(_0x106e84['canSelect']=![],_0x4fec2d['push'](_0x106e84));}),_0x542412[_0x2921ab(0xff5)]=_0x4fec2d;})['catch'](function(_0x4d9116){const _0x398231=_0x4fc6f5;_0xcd65b7[_0x398231(0x1bd0)]({'title':_0x4d9116[_0x398231(0x10b3)]?'API:'+_0x4d9116[_0x398231(0x10b3)]+'\x20-\x20'+_0x4d9116['statusText']:_0x398231(0x19e5),'msg':_0x4d9116[_0x398231(0x1c52)]?JSON[_0x398231(0x2317)](_0x4d9116['data']):_0x4d9116[_0x398231(0x2915)]()});});function _0x1603bf(){const _0x1e9e7e=_0x4fc6f5;_0x542412[_0x1e9e7e(0xbae)]=[];const _0x42d528=[];_0x542412[_0x1e9e7e(0x161)]['type']&&_0x542412['internaldial'][_0x1e9e7e(0x2185)][_0x1e9e7e(0x2554)]()===_0x1e9e7e(0xbce)&&_0x542412['internaldial']['appType']===_0x1e9e7e(0x17b6)&&(_0x542412[_0x1e9e7e(0x161)][_0x1e9e7e(0x267a)]=_0x333fb6[_0x1e9e7e(0x242b)]?(_0x542412[_0x1e9e7e(0x161)][_0x1e9e7e(0x2524)]||'')+_0x1e9e7e(0x1a75)+_0x333fb6[_0x1e9e7e(0x242b)]+'}':(_0x542412[_0x1e9e7e(0x161)][_0x1e9e7e(0x2524)]||'')+_0x1e9e7e(0x5ad),_0x333fb6['recordingFormat']!==_0x1e9e7e(0x2507)?_0x542412[_0x1e9e7e(0x161)][_0x1e9e7e(0x59e)][_0x1e9e7e(0x1b28)](_0x1e9e7e(0x13e0))<0x0&&(_0x542412[_0x1e9e7e(0x161)][_0x1e9e7e(0x59e)]+='U(xcally-mixmonitor-context)'):_0x542412[_0x1e9e7e(0x161)][_0x1e9e7e(0x59e)]=_0x542412[_0x1e9e7e(0x161)][_0x1e9e7e(0x59e)][_0x1e9e7e(0x1353)](_0x1e9e7e(0x13e0),''));if(_0x542412[_0x1e9e7e(0x161)][_0x1e9e7e(0x4f4)]&&_0x542412[_0x1e9e7e(0x161)][_0x1e9e7e(0x4f4)]===_0x1e9e7e(0x1ad6)){}else switch((_0x542412[_0x1e9e7e(0x161)][_0x1e9e7e(0x16e1)]||_0x542412['internaldial'][_0x1e9e7e(0x4f4)])[_0x1e9e7e(0x2554)]()){case _0x1e9e7e(0x1979):_0x542412[_0x1e9e7e(0x161)]['appdata']=_0x542412[_0x1e9e7e(0x161)][_0x1e9e7e(0x2494)]+'='+_0x542412[_0x1e9e7e(0x161)][_0x1e9e7e(0x1096)];break;case _0x1e9e7e(0x1ad6):break;default:_0x42d528[0x0]=_0x542412[_0x1e9e7e(0x161)][_0x1e9e7e(0x2e8)],_0x42d528[0x1]=_0x542412[_0x1e9e7e(0x161)]['timeout'],_0x42d528[0x2]=_0x542412[_0x1e9e7e(0x161)][_0x1e9e7e(0x59e)],_0x42d528[0x3]=_0x542412[_0x1e9e7e(0x161)]['url'],_0x542412['internaldial']['appdata']=_0x42d528[_0x1e9e7e(0x9a6)](',');}_0xb1b371(_0x542412[_0x1e9e7e(0x161)]);}function _0xb1b371(_0x106d5f){const _0x5095dd=_0x4fc6f5;_0x91a4d6[_0x5095dd(0x268e)](_0x106d5f);}}const _0x126302=_0x4c8fa5;;_0x208b87[_0x49a1e3(0x1e73)]=['$state',_0x49a1e3(0x212a),_0x49a1e3(0x611),_0x49a1e3(0xd48),_0x49a1e3(0xcfd),_0x49a1e3(0x15e4),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x208b87(_0x2eb8e0,_0x5c45e2,_0x343528,_0x201f64,_0x4be658,_0x13b770,_0x458e49,_0x2b40f5,_0xfd1660,_0x46a2c9){const _0x3cb6eb=_0x49a1e3,_0x3ea82c=this;_0x3ea82c[_0x3cb6eb(0x1d3d)]=_0xfd1660[_0x3cb6eb(0x808)](),_0x3ea82c[_0x3cb6eb(0xbae)]=[],_0x3ea82c['title']=_0x3cb6eb(0x20a4),_0x3ea82c['interval']=angular[_0x3cb6eb(0x289e)](_0x4be658),_0x3ea82c[_0x3cb6eb(0x15e4)]=_0x13b770,_0x3ea82c[_0x3cb6eb(0xf18)]=![],_0x3ea82c[_0x3cb6eb(0x269)]=[_0x3cb6eb(0xa66),'custom',_0x3cb6eb(0x2764)],_0x3ea82c['crudPermissions']=_0x46a2c9,_0x3ea82c[_0x3cb6eb(0x121a)]=_0x201f64[_0x3cb6eb(0x8b9)](),_0x3ea82c[_0x3cb6eb(0x2391)]=_0x201f64[_0x3cb6eb(0x17ef)](),_0x3ea82c[_0x3cb6eb(0x1c7e)]=_0x201f64[_0x3cb6eb(0x273)](),_0x3ea82c['daysOfMonth']=_0x201f64['getDaysOfMonth']();if(!_0x3ea82c['interval'])_0x3ea82c[_0x3cb6eb(0xcfd)]={'interval':_0x3cb6eb(0x2145)},_0x3ea82c[_0x3cb6eb(0x2185)]=_0x3cb6eb(0xa66),_0x3ea82c[_0x3cb6eb(0x2021)]=_0x3cb6eb(0xcbc),_0x3ea82c[_0x3cb6eb(0xf18)]=!![];else{if(_0x3ea82c[_0x3cb6eb(0xcfd)][_0x3cb6eb(0xcfd)]!==_0x3cb6eb(0x2145)){_0x3ea82c[_0x3cb6eb(0x2185)]=_0x3cb6eb(0x1ad6);const _0x1ed2e9=_0x3ea82c['interval'][_0x3cb6eb(0xcfd)][_0x3cb6eb(0x282c)](','),_0x4b7c40=_0x1ed2e9[0x0],_0x150c6d=_0x1ed2e9[0x1],_0x3b4808=_0x1ed2e9[0x2],_0x7acded=_0x1ed2e9[0x3];if(_0x4b7c40!=='*'){const _0x4a9f18=_0x4b7c40['split']('-')[0x0],_0x50a2e9=_0x4b7c40[_0x3cb6eb(0x282c)]('-')[0x1];let _0x1b057c;_0x1b057c=new Date(),_0x1b057c[_0x3cb6eb(0x260)](Number(_0x4a9f18[_0x3cb6eb(0x282c)](':')[0x0])),_0x1b057c[_0x3cb6eb(0x1b10)](Number(_0x4a9f18[_0x3cb6eb(0x282c)](':')[0x1])),_0x3ea82c[_0x3cb6eb(0x268d)]=_0x1b057c,_0x1b057c=new Date(),_0x1b057c[_0x3cb6eb(0x260)](Number(_0x50a2e9[_0x3cb6eb(0x282c)](':')[0x0])),_0x1b057c[_0x3cb6eb(0x1b10)](Number(_0x50a2e9[_0x3cb6eb(0x282c)](':')[0x1])),_0x3ea82c[_0x3cb6eb(0x196a)]=_0x1b057c;}_0x150c6d!=='*'&&(_0x3ea82c[_0x3cb6eb(0xa8e)]=_0x150c6d[_0x3cb6eb(0x282c)]('-')[0x0],_0x3ea82c[_0x3cb6eb(0x1297)]=_0x150c6d[_0x3cb6eb(0x282c)]('-')[0x1]),_0x3b4808!=='*'&&(_0x3ea82c['monthDayFrom']=_0x3b4808[_0x3cb6eb(0x282c)]('-')[0x0],_0x3ea82c[_0x3cb6eb(0x15c4)]=_0x3b4808['split']('-')[0x1]),_0x7acded!=='*'&&(_0x3ea82c['monthFrom']=_0x7acded[_0x3cb6eb(0x282c)]('-')[0x0],_0x3ea82c[_0x3cb6eb(0x1ea4)]=_0x7acded[_0x3cb6eb(0x282c)]('-')[0x1]);}else _0x3ea82c[_0x3cb6eb(0x2185)]='always';}_0x2eb8e0[_0x3cb6eb(0x1b48)]['id']&&!_0x3ea82c[_0x3cb6eb(0xcfd)][_0x3cb6eb(0x2081)]&&(_0x3ea82c[_0x3cb6eb(0xcfd)][_0x3cb6eb(0xb71)]=_0x2eb8e0[_0x3cb6eb(0x1b48)]['id']);_0x3ea82c[_0x3cb6eb(0xcfd)][_0x3cb6eb(0xb71)]&&_0x3ea82c[_0x3cb6eb(0xcfd)]['application']&&(_0x3ea82c[_0x3cb6eb(0x2185)]=_0x3cb6eb(0x2764));_0x3ea82c[_0x3cb6eb(0x23c0)]=_0x2e7c9e,_0x3ea82c[_0x3cb6eb(0x1f5)]=_0x200d6c,_0x3ea82c[_0x3cb6eb(0x16cb)]=_0x19a057;_0x3ea82c['interval'][_0x3cb6eb(0x2081)]&&(_0xfd1660[_0x3cb6eb(0x4de)](_0x3cb6eb(0x333))?_0x2b40f5[_0x3cb6eb(0xcfd)][_0x3cb6eb(0x896)]({'fields':_0x3cb6eb(0x530),'IntervalId':_0x3cb6eb(0x8f1),'nolimit':!![]})[_0x3cb6eb(0x15e7)][_0x3cb6eb(0x64a)](function(_0x3a94aa){const _0x8a01fe=_0x3cb6eb;_0x3ea82c[_0x8a01fe(0x15e4)]=_0x3a94aa[_0x8a01fe(0x28b8)]||[];})[_0x3cb6eb(0x20cd)](function(_0x26222b){const _0x1bfd56=_0x3cb6eb;_0x458e49[_0x1bfd56(0x1bd0)]({'title':_0x26222b[_0x1bfd56(0x10b3)]?_0x1bfd56(0x575)+_0x26222b[_0x1bfd56(0x10b3)]+'\x20-\x20'+_0x26222b[_0x1bfd56(0x2115)]:_0x1bfd56(0xbfb),'msg':_0x26222b['data']?JSON[_0x1bfd56(0x2317)](_0x26222b[_0x1bfd56(0x1c52)]):_0x26222b[_0x1bfd56(0x2915)]()});}):_0x2b40f5[_0x3cb6eb(0xcfd)][_0x3cb6eb(0x896)]({'fields':_0x3cb6eb(0x530),'IntervalId':_0x3cb6eb(0x8f1),'nolimit':!![]})[_0x3cb6eb(0x15e7)][_0x3cb6eb(0x64a)](function(_0x4deae0){const _0x47cce8=_0x3cb6eb;_0x3ea82c[_0x47cce8(0x15e4)]=_0x4deae0['rows']||[];})[_0x3cb6eb(0x64a)](function(){const _0x2fe846=_0x3cb6eb;return _0x2b40f5[_0x2fe846(0x16b2)]['get']({'userProfileId':_0x3ea82c[_0x2fe846(0x1d3d)]['userProfileId'],'sectionId':0x3ec})[_0x2fe846(0x15e7)];})[_0x3cb6eb(0x64a)](function(_0x25c188){const _0x53c8a5=_0x3cb6eb,_0x4e112b=_0x25c188&&_0x25c188[_0x53c8a5(0x28b8)]?_0x25c188[_0x53c8a5(0x28b8)][0x0]:null;if(!_0x4e112b)_0x3ea82c['intervals']=[];else{if(!_0x4e112b[_0x53c8a5(0x11da)])return _0x2b40f5[_0x53c8a5(0x1617)][_0x53c8a5(0x896)]({'sectionId':_0x4e112b['id']})[_0x53c8a5(0x15e7)]['then'](function(_0x201a39){const _0x170a88=_0x53c8a5,_0x30f75d=_0x201a39&&_0x201a39['rows']?_0x201a39['rows']:[],_0x53b1a8=[];let _0x150dc7=null;_0x3ea82c[_0x170a88(0xcfd)]&&(_0x150dc7=_0x28c606()[_0x170a88(0x27bc)](_0x3ea82c[_0x170a88(0x15e4)],{'name':_0x3ea82c[_0x170a88(0xcfd)][_0x170a88(0xb71)]})),_0x150dc7&&!_0x28c606()[_0x170a88(0x25f8)](_0x30f75d,[_0x170a88(0x145),_0x150dc7['id']])&&_0x3ea82c['intervals']['forEach'](function(_0x322b72){const _0x582434=_0x170a88;_0x322b72['id']===_0x150dc7['id']&&(_0x322b72[_0x582434(0xd4f)]=![],_0x53b1a8[_0x582434(0x1954)](_0x322b72));}),_0x3ea82c[_0x170a88(0x15e4)]=_0x53b1a8;});}})[_0x3cb6eb(0x20cd)](function(_0x491de7){const _0x4ce110=_0x3cb6eb;_0x458e49[_0x4ce110(0x1bd0)]({'title':_0x491de7[_0x4ce110(0x10b3)]?_0x4ce110(0x575)+_0x491de7[_0x4ce110(0x10b3)]+_0x4ce110(0x21db)+_0x491de7['statusText']:'SYSTEM:GET_INTERVALS','msg':_0x491de7[_0x4ce110(0x1c52)]?JSON[_0x4ce110(0x2317)](_0x491de7[_0x4ce110(0x1c52)]):_0x491de7[_0x4ce110(0x2915)]()});}));function _0x46c6a8(){const _0x4c9283=_0x3cb6eb;switch(_0x3ea82c['type']){case'always':case'list':return _0x4c9283(0x2145);case _0x4c9283(0x1ad6):{const _0x1c0aaf=[];if(_0x3ea82c[_0x4c9283(0x268d)]!=='*'&&_0x3ea82c[_0x4c9283(0x268d)]&&_0x3ea82c['timeRangeTo']){const _0x4461b2=(_0x3ea82c[_0x4c9283(0x268d)][_0x4c9283(0x48a)]()<0xa?'0':'')+_0x3ea82c[_0x4c9283(0x268d)][_0x4c9283(0x48a)]()+':'+((_0x3ea82c[_0x4c9283(0x268d)][_0x4c9283(0x1894)]()<0xa?'0':'')+_0x3ea82c[_0x4c9283(0x268d)][_0x4c9283(0x1894)]()),_0x29e6b4=(_0x3ea82c[_0x4c9283(0x196a)]['getHours']()<0xa?'0':'')+_0x3ea82c['timeRangeTo'][_0x4c9283(0x48a)]()+':'+((_0x3ea82c[_0x4c9283(0x196a)][_0x4c9283(0x1894)]()<0xa?'0':'')+_0x3ea82c[_0x4c9283(0x196a)]['getMinutes']());_0x1c0aaf['push'](_0x4461b2+'-'+_0x29e6b4);}else _0x1c0aaf[_0x4c9283(0x1954)]('*');return _0x3ea82c[_0x4c9283(0xa8e)]?_0x3ea82c[_0x4c9283(0x1297)]?_0x1c0aaf[_0x4c9283(0x1954)](_0x3ea82c[_0x4c9283(0xa8e)]+'-'+_0x3ea82c['dayOfWeekTo']):_0x1c0aaf['push'](_0x3ea82c[_0x4c9283(0xa8e)]):_0x1c0aaf[_0x4c9283(0x1954)]('*'),_0x3ea82c[_0x4c9283(0x1e3)]?_0x3ea82c[_0x4c9283(0x15c4)]?_0x1c0aaf[_0x4c9283(0x1954)](_0x3ea82c['monthDayFrom']+'-'+_0x3ea82c['monthDayTo']):_0x1c0aaf[_0x4c9283(0x1954)](_0x3ea82c[_0x4c9283(0x1e3)]):_0x1c0aaf[_0x4c9283(0x1954)]('*'),_0x3ea82c[_0x4c9283(0x205f)]?_0x3ea82c['monthTo']?_0x1c0aaf[_0x4c9283(0x1954)](_0x3ea82c[_0x4c9283(0x205f)]+'-'+_0x3ea82c['monthTo']):_0x1c0aaf[_0x4c9283(0x1954)](_0x3ea82c[_0x4c9283(0x205f)]):_0x1c0aaf[_0x4c9283(0x1954)]('*'),_0x1c0aaf['join']();}}}function _0x2e7c9e(){const _0x3e2b5f=_0x3cb6eb;_0x3ea82c[_0x3e2b5f(0xbae)]=[],_0x3ea82c[_0x3e2b5f(0xcfd)][_0x3e2b5f(0xcfd)]=_0x46c6a8(),_0x2b40f5['interval'][_0x3e2b5f(0x2479)](_0x3ea82c[_0x3e2b5f(0xcfd)])[_0x3e2b5f(0x15e7)]['then'](function(_0x4e2109){const _0x29b2d4=_0x3e2b5f;_0x3ea82c[_0x29b2d4(0x15e4)]['push'](_0x4e2109),_0x458e49[_0x29b2d4(0x1339)]({'title':'Interval\x20properly\x20created','msg':_0x3ea82c['interval']['name']?_0x3ea82c[_0x29b2d4(0xcfd)]['name']+_0x29b2d4(0x258d):''}),_0x19a057();})[_0x3e2b5f(0x20cd)](function(_0x439851){const _0x53c112=_0x3e2b5f;console[_0x53c112(0x1bd0)](_0x439851),_0x3ea82c[_0x53c112(0xbae)]=_0x439851[_0x53c112(0x1c52)]['errors']||[{'message':_0x439851[_0x53c112(0x2915)](),'type':_0x53c112(0x12a0)}];});}function _0x200d6c(){const _0x3d093a=_0x3cb6eb;_0x3ea82c[_0x3d093a(0xbae)]=[],_0x3ea82c[_0x3d093a(0xcfd)]['interval']=_0x46c6a8(),_0x3ea82c[_0x3d093a(0xcfd)][_0x3d093a(0x2081)]?(_0x3ea82c['type']!=='list'&&(_0x3ea82c[_0x3d093a(0xcfd)]['IntervalId']=null),_0x19a057(_0x3ea82c[_0x3d093a(0xcfd)])):_0x2b40f5['interval'][_0x3d093a(0x2603)]({'id':_0x3ea82c[_0x3d093a(0xcfd)]['id']},_0x3ea82c['interval'])[_0x3d093a(0x15e7)][_0x3d093a(0x64a)](function(_0x385ba8){const _0x577579=_0x3d093a,_0x44e336=_0x28c606()[_0x577579(0x27bc)](_0x3ea82c[_0x577579(0x15e4)],{'id':_0x385ba8['id']});_0x44e336&&_0x28c606()[_0x577579(0x14fe)](_0x44e336,_0x385ba8),_0x458e49['success']({'title':_0x577579(0x2896),'msg':'Interval\x20has\x20been\x20saved!'}),_0x19a057();})[_0x3d093a(0x20cd)](function(_0x130631){const _0x52986b=_0x3d093a;console[_0x52986b(0x1bd0)](_0x130631),_0x3ea82c['errors']=_0x130631['data']['errors']||[{'message':_0x130631[_0x52986b(0x2915)](),'type':_0x52986b(0x710)}];});}function _0x19a057(_0x1eb03a){_0x5c45e2['hide'](_0x1eb03a);}}const _0x48e89a=_0x208b87;;_0x523f76[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0xfec),_0x49a1e3(0x18b9),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x523f76(_0x2beba7,_0x2fb09f,_0x45b87f,_0x1ff9b9,_0xc5b875,_0x4ddc53,_0x3a3454,_0x44f83e){const _0x3eb455=_0x49a1e3,_0x49712d=this;_0x49712d['currentUser']=_0x3a3454[_0x3eb455(0x808)](),_0x49712d[_0x3eb455(0xbae)]=[],_0x49712d[_0x3eb455(0x2021)]=_0x3eb455(0x2073)+(_0x1ff9b9[_0x3eb455(0x4f4)]||_0x1ff9b9['app'])[_0x3eb455(0xa3c)](),_0x49712d[_0x3eb455(0x1001)]=angular[_0x3eb455(0x289e)](_0x1ff9b9),_0x49712d['crudPermissions']=_0x44f83e,_0x49712d['hasModulePermissions']={};if(_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0xacb)])switch(_0x49712d[_0x3eb455(0x1001)]['appType']?_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0x4f4)][_0x3eb455(0x2554)]():_0x49712d[_0x3eb455(0x1001)]['app'][_0x3eb455(0x2554)]()){case _0x3eb455(0x1ad6):break;case _0x3eb455(0x1084):{const _0x4c4f57=_0x49712d[_0x3eb455(0x1001)]['appdata'][_0x3eb455(0x282c)](',');_0x49712d['playback'][_0x3eb455(0x2125)]=_0x4c4f57[0x0],_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0x1cbd)]=_0x4c4f57[0x1],_0x49712d['playback']['welcomemessage']=_0x4c4f57[_0x3eb455(0x142e)](0x2,_0x4c4f57[_0x3eb455(0x1b9e)])[_0x3eb455(0x9a6)](',');}break;case'dialogflowv2':{const _0x5706f9=_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0xacb)]['split'](',');_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0xbfd)]=_0x5706f9[0x0],_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0x4b2)]=_0x5706f9[0x1],_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0x1b1b)]=_0x5706f9[0x2],_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0x1cbd)]=_0x5706f9[0x3],_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0x31b)]=_0x5706f9['slice'](0x4,_0x5706f9['length'])[_0x3eb455(0x9a6)](',');}break;case _0x3eb455(0x290d):{const _0x1dbc76=_0x49712d['playback']['appdata'][_0x3eb455(0x282c)](',');_0x49712d['playback']['accesskeyid']=_0x1dbc76[0x0],_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0x1b1)]=_0x1dbc76[0x1],_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0x17a2)]=_0x1dbc76[0x2],_0x49712d['playback'][_0x3eb455(0x2797)]=_0x1dbc76[0x3],_0x49712d[_0x3eb455(0x1001)]['welcomemessage']=_0x1dbc76[_0x3eb455(0x142e)](0x4,_0x1dbc76['length'])['join'](',');}break;case'autoreply':{const _0x1bcb15=_0x49712d[_0x3eb455(0x1001)]['appdata'][_0x3eb455(0x282c)](',');_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0x95f)]=isNaN(_0x1bcb15[0x0])?_0x1bcb15[0x0]:parseInt(_0x1bcb15[0x0],0xa),_0x49712d[_0x3eb455(0x1001)]['text']=_0x1bcb15[_0x3eb455(0x142e)](0x1,_0x1bcb15[_0x3eb455(0x1b9e)])[_0x3eb455(0x9a6)](',');}break;case _0x3eb455(0x18ca):_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0x39b)]=_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0xacb)];break;case _0x3eb455(0x1979):_0x49712d[_0x3eb455(0x1001)]['name']=_0x49712d['playback']['appdata']['split']('=')[0x0],_0x49712d['playback'][_0x3eb455(0x1096)]=_0x49712d[_0x3eb455(0x1001)]['appdata'][_0x3eb455(0x282c)]('=')[0x1];break;case _0x3eb455(0x1e67):_0x49712d['playback']['project']=_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0xacb)];break;default:{const _0x41d87b=_0x49712d['playback']['appdata'][_0x3eb455(0x282c)](',');_0x49712d[_0x3eb455(0x1001)]['appdata']=_0x28c606()[_0x3eb455(0x940)](_0x41d87b[0x0])?_0x41d87b[0x0]:isNaN(_0x41d87b[0x0])?_0x41d87b[0x0]:parseInt(_0x41d87b[0x0],0xa),_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0x59e)]=_0x28c606()[_0x3eb455(0x940)](_0x41d87b[0x1])?_0x41d87b[0x1]:isNaN(_0x41d87b[0x1])?_0x41d87b[0x1]:parseInt(_0x41d87b[0x1],0xa);}break;}else{}_0x49712d['playback'][_0x3eb455(0x2185)]&&_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0x2185)][_0x3eb455(0x2554)]()===_0x3eb455(0xbce)&&_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0x4f4)][_0x3eb455(0x2554)]()==='outbounddial'&&(_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0x2524)]=_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0x267a)]?_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0x267a)]['split']('$')[0x0]:undefined,_0x49712d[_0x3eb455(0x1001)][_0x3eb455(0x1a9b)]=_0x49712d['playback'][_0x3eb455(0x1abe)]?_0x3eb455(0x2489)+_0x49712d[_0x3eb455(0x1001)]['callerID']:undefined);_0x49712d[_0x3eb455(0x194)]=_0x1ed09b,_0x49712d[_0x3eb455(0x16cb)]=_0x2774c0,_0x3a3454[_0x3eb455(0x4de)](_0x3eb455(0x333))?_0x4ddc53['sound'][_0x3eb455(0x896)]({'fields':_0x3eb455(0x2246),'sort':_0x3eb455(0x2494),'nolimit':_0x3eb455(0x1685)})[_0x3eb455(0x15e7)]['then'](function(_0x23fe6a){const _0x48e57d=_0x3eb455;_0x49712d[_0x48e57d(0x16df)]=_0x23fe6a[_0x48e57d(0x28b8)]||[];})[_0x3eb455(0x20cd)](function(_0x53cfe8){const _0x1a34bf=_0x3eb455;_0x45b87f['error']({'title':_0x53cfe8[_0x1a34bf(0x10b3)]?'API:'+_0x53cfe8[_0x1a34bf(0x10b3)]+_0x1a34bf(0x21db)+_0x53cfe8[_0x1a34bf(0x2115)]:_0x1a34bf(0x63b),'msg':_0x53cfe8[_0x1a34bf(0x1c52)]?JSON[_0x1a34bf(0x2317)](_0x53cfe8[_0x1a34bf(0x1c52)]):_0x53cfe8[_0x1a34bf(0x2915)]()});}):_0x4ddc53[_0x3eb455(0x282b)][_0x3eb455(0x896)]({'fields':_0x3eb455(0x2246),'sort':'name','nolimit':_0x3eb455(0x1685)})['$promise']['then'](function(_0x156109){const _0x4ae33f=_0x3eb455;_0x49712d[_0x4ae33f(0x16df)]=_0x156109[_0x4ae33f(0x28b8)]||[];})[_0x3eb455(0x64a)](function(){const _0x5da7f9=_0x3eb455;return _0x4ddc53[_0x5da7f9(0x16b2)][_0x5da7f9(0x896)]({'userProfileId':_0x49712d['currentUser'][_0x5da7f9(0x21ac)],'sectionId':0x3ef})['$promise'];})[_0x3eb455(0x64a)](function(_0x559fea){const _0x519996=_0x3eb455,_0x543b43=_0x559fea&&_0x559fea[_0x519996(0x28b8)]?_0x559fea['rows'][0x0]:null;if(!_0x543b43){const _0x4ae462=[];let _0x558845=null;_0x49712d['playback']&&(_0x558845=_0x28c606()[_0x519996(0x27bc)](_0x49712d['sounds'],{'save_name':_0x49712d[_0x519996(0x1001)][_0x519996(0xacb)]}));for(let _0x5bf0ab=0x0;_0x5bf0ab<_0x49712d[_0x519996(0x16df)]['length'];_0x5bf0ab++){_0x558845&&_0x49712d['sounds'][_0x5bf0ab]['id']===_0x558845['id']&&(_0x49712d[_0x519996(0x16df)][_0x5bf0ab]['canSelect']=![],_0x4ae462[_0x519996(0x1954)](_0x49712d[_0x519996(0x16df)][_0x5bf0ab]));}_0x49712d['sounds']=_0x4ae462;}else{if(!_0x543b43['autoAssociation'])return _0x4ddc53[_0x519996(0x1617)][_0x519996(0x896)]({'sectionId':_0x543b43['id']})[_0x519996(0x15e7)][_0x519996(0x64a)](function(_0x1b37c9){const _0xcbab9a=_0x519996,_0x2027b7=_0x28c606()[_0xcbab9a(0x1de5)](_0x1b37c9[_0xcbab9a(0x28b8)],function(_0x9155ce){const _0x3dc2cf=_0xcbab9a;return _0x28c606()[_0x3dc2cf(0x27bc)](_0x49712d[_0x3dc2cf(0x16df)],{'id':_0x9155ce['resourceId']});});let _0x467bbb=null;_0x49712d[_0xcbab9a(0x1001)]&&(_0x467bbb=_0x28c606()[_0xcbab9a(0x27bc)](_0x49712d[_0xcbab9a(0x16df)],{'save_name':_0x49712d[_0xcbab9a(0x1001)]['appdata']}));if(_0x467bbb&&!_0x28c606()[_0xcbab9a(0x25f8)](_0x2027b7,['id',_0x467bbb['id']])){const _0x29c5cf=_0x28c606()[_0xcbab9a(0x27bc)](_0x49712d[_0xcbab9a(0x16df)],{'id':_0x467bbb['id']});_0x29c5cf[_0xcbab9a(0xd4f)]=![],_0x2027b7[_0xcbab9a(0x1954)](_0x29c5cf);}_0x49712d[_0xcbab9a(0x16df)]=_0x2027b7;});}})[_0x3eb455(0x20cd)](function(_0x15b353){const _0x4298b8=_0x3eb455;_0x45b87f[_0x4298b8(0x1bd0)]({'title':_0x15b353['status']?'API:'+_0x15b353[_0x4298b8(0x10b3)]+'\x20-\x20'+_0x15b353[_0x4298b8(0x2115)]:_0x4298b8(0x1655),'msg':_0x15b353['data']?JSON[_0x4298b8(0x2317)](_0x15b353[_0x4298b8(0x1c52)]):_0x15b353[_0x4298b8(0x2915)]()});});function _0x1ed09b(){const _0x2827a1=_0x3eb455;_0x49712d[_0x2827a1(0xbae)]=[];const _0x4c6bea=[];_0x49712d[_0x2827a1(0x1001)][_0x2827a1(0x2185)]&&_0x49712d[_0x2827a1(0x1001)][_0x2827a1(0x2185)][_0x2827a1(0x2554)]()===_0x2827a1(0xbce)&&_0x49712d[_0x2827a1(0x1001)]['appType']===_0x2827a1(0x17b6)&&(_0x49712d[_0x2827a1(0x1001)][_0x2827a1(0x267a)]=_0xc5b875[_0x2827a1(0x242b)]?(_0x49712d[_0x2827a1(0x1001)]['prefix']||'')+_0x2827a1(0x1a75)+_0xc5b875[_0x2827a1(0x242b)]+'}':(_0x49712d[_0x2827a1(0x1001)]['prefix']||'')+_0x2827a1(0x5ad),_0xc5b875[_0x2827a1(0x1097)]!=='none'?_0x49712d[_0x2827a1(0x1001)][_0x2827a1(0x59e)][_0x2827a1(0x1b28)](_0x2827a1(0x13e0))<0x0&&(_0x49712d[_0x2827a1(0x1001)][_0x2827a1(0x59e)]+=_0x2827a1(0x13e0)):_0x49712d[_0x2827a1(0x1001)]['options']=_0x49712d[_0x2827a1(0x1001)]['options']['replace']('U(xcally-mixmonitor-context)',''));if(_0x49712d['playback'][_0x2827a1(0x4f4)]&&_0x49712d[_0x2827a1(0x1001)]['appType']===_0x2827a1(0x1ad6)){}else switch((_0x49712d[_0x2827a1(0x1001)][_0x2827a1(0x16e1)]||_0x49712d[_0x2827a1(0x1001)]['appType'])[_0x2827a1(0x2554)]()){case _0x2827a1(0x1979):_0x49712d[_0x2827a1(0x1001)][_0x2827a1(0xacb)]=_0x49712d['playback']['name']+'='+_0x49712d['playback'][_0x2827a1(0x1096)];break;case _0x2827a1(0x1ad6):break;default:_0x4c6bea[0x0]=_0x49712d[_0x2827a1(0x1001)][_0x2827a1(0xacb)],_0x4c6bea[0x1]=_0x49712d['playback']['options'],_0x49712d[_0x2827a1(0x1001)][_0x2827a1(0xacb)]=_0x4c6bea[_0x2827a1(0x9a6)](',');}_0x2774c0(_0x49712d[_0x2827a1(0x1001)]);}function _0x2774c0(_0x5d55a3){const _0x52be82=_0x3eb455;_0x2beba7[_0x52be82(0x268e)](_0x5d55a3);}}const _0x1dc46a=_0x523f76;;_0x31fe6a['$inject']=['$mdDialog','$q',_0x49a1e3(0x680),_0x49a1e3(0xfec),'internalroute',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x31fe6a(_0x21c2ad,_0x38fe87,_0x66253d,_0x429e86,_0x586f29,_0x1b584c,_0x2d1278,_0x31abab){const _0x75ff53=_0x49a1e3,_0x4a2f6a=this;_0x4a2f6a['currentUser']=_0x2d1278[_0x75ff53(0x808)](),_0x4a2f6a[_0x75ff53(0xbae)]=[],_0x4a2f6a[_0x75ff53(0x2021)]='VOICE.EDIT_'+(_0x429e86['appType']||_0x429e86['app'])[_0x75ff53(0xa3c)](),_0x4a2f6a['queue']=angular[_0x75ff53(0x289e)](_0x429e86),_0x4a2f6a[_0x75ff53(0x402)]=_0x31abab,_0x4a2f6a[_0x75ff53(0x6c2)]={};if(_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0xacb)])switch(_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x4f4)]?_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x4f4)][_0x75ff53(0x2554)]():_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x16e1)][_0x75ff53(0x2554)]()){case _0x75ff53(0x1ad6):break;case _0x75ff53(0x1084):{const _0x51c7a1=_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0xacb)][_0x75ff53(0x282c)](',');_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x2125)]=_0x51c7a1[0x0],_0x4a2f6a[_0x75ff53(0x1e4e)]['language']=_0x51c7a1[0x1],_0x4a2f6a['queue'][_0x75ff53(0x31b)]=_0x51c7a1['slice'](0x2,_0x51c7a1[_0x75ff53(0x1b9e)])[_0x75ff53(0x9a6)](',');}break;case _0x75ff53(0x1b1a):{const _0x182b7b=_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0xacb)]['split'](',');_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0xbfd)]=_0x182b7b[0x0],_0x4a2f6a[_0x75ff53(0x1e4e)]['clientEmail']=_0x182b7b[0x1],_0x4a2f6a[_0x75ff53(0x1e4e)]['privateKey']=_0x182b7b[0x2],_0x4a2f6a['queue']['language']=_0x182b7b[0x3],_0x4a2f6a['queue']['welcomemessage']=_0x182b7b[_0x75ff53(0x142e)](0x4,_0x182b7b[_0x75ff53(0x1b9e)])[_0x75ff53(0x9a6)](',');}break;case'amazonlex':{const _0x2d8b30=_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0xacb)][_0x75ff53(0x282c)](',');_0x4a2f6a['queue'][_0x75ff53(0x1466)]=_0x2d8b30[0x0],_0x4a2f6a['queue'][_0x75ff53(0x1b1)]=_0x2d8b30[0x1],_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x17a2)]=_0x2d8b30[0x2],_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x2797)]=_0x2d8b30[0x3],_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x31b)]=_0x2d8b30[_0x75ff53(0x142e)](0x4,_0x2d8b30[_0x75ff53(0x1b9e)])[_0x75ff53(0x9a6)](',');}break;case _0x75ff53(0x21a9):{const _0x53fa2a=_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0xacb)][_0x75ff53(0x282c)](',');_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x95f)]=isNaN(_0x53fa2a[0x0])?_0x53fa2a[0x0]:parseInt(_0x53fa2a[0x0],0xa),_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x39b)]=_0x53fa2a[_0x75ff53(0x142e)](0x1,_0x53fa2a[_0x75ff53(0x1b9e)])[_0x75ff53(0x9a6)](',');}break;case _0x75ff53(0x18ca):_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x39b)]=_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0xacb)];break;case _0x75ff53(0x1979):_0x4a2f6a[_0x75ff53(0x1e4e)]['name']=_0x4a2f6a[_0x75ff53(0x1e4e)]['appdata'][_0x75ff53(0x282c)]('=')[0x0],_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x1096)]=_0x4a2f6a['queue'][_0x75ff53(0xacb)][_0x75ff53(0x282c)]('=')[0x1];break;case _0x75ff53(0x1e67):_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x1bd9)]=_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0xacb)];break;default:{const _0x1315c3=_0x4a2f6a[_0x75ff53(0x1e4e)]['appdata'][_0x75ff53(0x282c)](',');_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x1e4e)]=_0x28c606()['isEmpty'](_0x1315c3[0x0])?_0x1315c3[0x0]:isNaN(_0x1315c3[0x0])?_0x1315c3[0x0]:parseInt(_0x1315c3[0x0],0xa),_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x59e)]=_0x28c606()[_0x75ff53(0x940)](_0x1315c3[0x1])?_0x1315c3[0x1]:isNaN(_0x1315c3[0x1])?_0x1315c3[0x1]:parseInt(_0x1315c3[0x1],0xa),_0x4a2f6a[_0x75ff53(0x1e4e)]['URL']=_0x28c606()[_0x75ff53(0x940)](_0x1315c3[0x2])?_0x1315c3[0x2]:isNaN(_0x1315c3[0x2])?_0x1315c3[0x2]:parseInt(_0x1315c3[0x2],0xa),_0x4a2f6a['queue'][_0x75ff53(0x282b)]=_0x28c606()[_0x75ff53(0x940)](_0x1315c3[0x3])?_0x1315c3[0x3]:isNaN(_0x1315c3[0x3])?_0x1315c3[0x3]:parseInt(_0x1315c3[0x3],0xa),_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x16d)]=_0x28c606()[_0x75ff53(0x940)](_0x1315c3[0x4])?_0x1315c3[0x4]:isNaN(_0x1315c3[0x4])?_0x1315c3[0x4]:parseInt(_0x1315c3[0x4],0xa),_0x4a2f6a['queue']['agi']=_0x28c606()[_0x75ff53(0x940)](_0x1315c3[0x5])?_0x1315c3[0x5]:isNaN(_0x1315c3[0x5])?_0x1315c3[0x5]:parseInt(_0x1315c3[0x5],0xa),_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x2542)]=_0x28c606()[_0x75ff53(0x940)](_0x1315c3[0x6])?_0x1315c3[0x6]:isNaN(_0x1315c3[0x6])?_0x1315c3[0x6]:parseInt(_0x1315c3[0x6],0xa),_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x17e)]=_0x28c606()[_0x75ff53(0x940)](_0x1315c3[0x7])?_0x1315c3[0x7]:isNaN(_0x1315c3[0x7])?_0x1315c3[0x7]:parseInt(_0x1315c3[0x7],0xa),_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x1487)]=_0x28c606()[_0x75ff53(0x940)](_0x1315c3[0x8])?_0x1315c3[0x8]:isNaN(_0x1315c3[0x8])?_0x1315c3[0x8]:parseInt(_0x1315c3[0x8],0xa),_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x14f7)]=_0x28c606()[_0x75ff53(0x940)](_0x1315c3[0x9])?_0x1315c3[0x9]:isNaN(_0x1315c3[0x9])?_0x1315c3[0x9]:parseInt(_0x1315c3[0x9],0xa);}break;}else{}_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x2185)]&&_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x2185)][_0x75ff53(0x2554)]()===_0x75ff53(0xbce)&&_0x4a2f6a[_0x75ff53(0x1e4e)]['appType'][_0x75ff53(0x2554)]()===_0x75ff53(0x20eb)&&(_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x2524)]=_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x267a)]?_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x267a)][_0x75ff53(0x282c)]('$')[0x0]:undefined,_0x4a2f6a[_0x75ff53(0x1e4e)]['callerId']=_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x1abe)]?_0x75ff53(0x2489)+_0x4a2f6a[_0x75ff53(0x1e4e)][_0x75ff53(0x1abe)]:undefined);_0x4a2f6a[_0x75ff53(0x194)]=_0x50dbda,_0x4a2f6a[_0x75ff53(0x16cb)]=_0x2b1337,_0x2d1278[_0x75ff53(0x4de)](_0x75ff53(0x333))?_0x1b584c[_0x75ff53(0x282b)][_0x75ff53(0x896)]({'fields':_0x75ff53(0x2246),'sort':_0x75ff53(0x2494),'nolimit':'true'})['$promise'][_0x75ff53(0x64a)](function(_0x33e8ba){const _0x45107b=_0x75ff53;_0x4a2f6a[_0x45107b(0x16df)]=_0x33e8ba['rows']||[];})[_0x75ff53(0x20cd)](function(_0x1551f7){const _0x582ad7=_0x75ff53;_0x66253d['error']({'title':_0x1551f7[_0x582ad7(0x10b3)]?_0x582ad7(0x575)+_0x1551f7['status']+'\x20-\x20'+_0x1551f7['statusText']:_0x582ad7(0x63b),'msg':_0x1551f7[_0x582ad7(0x1c52)]?JSON[_0x582ad7(0x2317)](_0x1551f7[_0x582ad7(0x1c52)]):_0x1551f7[_0x582ad7(0x2915)]()});}):_0x1b584c['sound'][_0x75ff53(0x896)]({'fields':'id,name,save_name','sort':_0x75ff53(0x2494),'nolimit':_0x75ff53(0x1685)})['$promise'][_0x75ff53(0x64a)](function(_0x2db68b){const _0x52cb2a=_0x75ff53;_0x4a2f6a[_0x52cb2a(0x16df)]=_0x2db68b['rows']||[];})[_0x75ff53(0x64a)](function(){const _0x3ecd5d=_0x75ff53;return _0x1b584c[_0x3ecd5d(0x16b2)][_0x3ecd5d(0x896)]({'userProfileId':_0x4a2f6a['currentUser'][_0x3ecd5d(0x21ac)],'sectionId':0x3ef})[_0x3ecd5d(0x15e7)];})[_0x75ff53(0x64a)](function(_0x104abd){const _0x26210b=_0x75ff53,_0x3a490b=_0x104abd&&_0x104abd[_0x26210b(0x28b8)]?_0x104abd[_0x26210b(0x28b8)][0x0]:null;if(!_0x3a490b){const _0x33187c=[];let _0x3b287a=null;_0x4a2f6a[_0x26210b(0x1e4e)]&&(_0x3b287a=_0x28c606()[_0x26210b(0x27bc)](_0x4a2f6a[_0x26210b(0x16df)],{'save_name':_0x4a2f6a['queue'][_0x26210b(0x282b)]}));for(let _0xc705ac=0x0;_0xc705ac<_0x4a2f6a['sounds']['length'];_0xc705ac++){_0x3b287a&&_0x4a2f6a[_0x26210b(0x16df)][_0xc705ac]['id']===_0x3b287a['id']&&(_0x4a2f6a['sounds'][_0xc705ac][_0x26210b(0xd4f)]=![],_0x33187c['push'](_0x4a2f6a[_0x26210b(0x16df)][_0xc705ac]));}_0x4a2f6a[_0x26210b(0x16df)]=_0x33187c;}else{if(!_0x3a490b[_0x26210b(0x11da)])return _0x1b584c['userProfileResource'][_0x26210b(0x896)]({'sectionId':_0x3a490b['id']})[_0x26210b(0x15e7)][_0x26210b(0x64a)](function(_0x1a83fb){const _0x2c7f4e=_0x26210b,_0x9d9c9=_0x28c606()[_0x2c7f4e(0x1de5)](_0x1a83fb['rows'],function(_0x5a18a0){const _0x5bbfb4=_0x2c7f4e;return _0x28c606()[_0x5bbfb4(0x27bc)](_0x4a2f6a[_0x5bbfb4(0x16df)],{'id':_0x5a18a0[_0x5bbfb4(0x145)]});});let _0x306ebc=null;_0x4a2f6a[_0x2c7f4e(0x1e4e)]&&(_0x306ebc=_0x28c606()[_0x2c7f4e(0x27bc)](_0x4a2f6a[_0x2c7f4e(0x16df)],{'save_name':_0x4a2f6a[_0x2c7f4e(0x1e4e)]['sound']}));if(_0x306ebc&&!_0x28c606()[_0x2c7f4e(0x25f8)](_0x9d9c9,['id',_0x306ebc['id']])){const _0x1a0abb=_0x28c606()['find'](_0x4a2f6a[_0x2c7f4e(0x16df)],{'id':_0x306ebc['id']});_0x1a0abb['canSelect']=![],_0x9d9c9[_0x2c7f4e(0x1954)](_0x1a0abb);}_0x4a2f6a['sounds']=_0x9d9c9;});}})[_0x75ff53(0x20cd)](function(_0x133dbf){const _0x2d0a49=_0x75ff53;_0x66253d[_0x2d0a49(0x1bd0)]({'title':_0x133dbf[_0x2d0a49(0x10b3)]?'API:'+_0x133dbf[_0x2d0a49(0x10b3)]+_0x2d0a49(0x21db)+_0x133dbf[_0x2d0a49(0x2115)]:_0x2d0a49(0x1655),'msg':_0x133dbf[_0x2d0a49(0x1c52)]?JSON['stringify'](_0x133dbf[_0x2d0a49(0x1c52)]):_0x133dbf[_0x2d0a49(0x2915)]()});}),_0x2d1278[_0x75ff53(0x4de)](_0x75ff53(0x333))?_0x1b584c[_0x75ff53(0x178b)][_0x75ff53(0x896)]({'type':_0x75ff53(0x12a4),'fields':_0x75ff53(0x2ba),'sort':_0x75ff53(0x2494),'nolimit':_0x75ff53(0x1685)})[_0x75ff53(0x15e7)][_0x75ff53(0x64a)](function(_0x4627cd){const _0x18d78b=_0x75ff53;_0x4a2f6a[_0x18d78b(0x1c06)]=_0x4627cd[_0x18d78b(0x28b8)]||[];})[_0x75ff53(0x20cd)](function(_0x52d69a){const _0x1eb130=_0x75ff53;_0x66253d[_0x1eb130(0x1bd0)]({'title':_0x52d69a['status']?_0x1eb130(0x575)+_0x52d69a[_0x1eb130(0x10b3)]+'\x20-\x20'+_0x52d69a[_0x1eb130(0x2115)]:_0x1eb130(0xe03),'msg':_0x52d69a[_0x1eb130(0x1c52)]?JSON['stringify'](_0x52d69a[_0x1eb130(0x1c52)]):_0x52d69a[_0x1eb130(0x2915)]()});}):_0x1b584c[_0x75ff53(0x178b)][_0x75ff53(0x896)]({'type':_0x75ff53(0x12a4),'fields':_0x75ff53(0x2ba),'sort':'name','nolimit':_0x75ff53(0x1685)})[_0x75ff53(0x15e7)][_0x75ff53(0x64a)](function(_0x4c59f8){const _0x1ade66=_0x75ff53;_0x4a2f6a['queues']=_0x4c59f8[_0x1ade66(0x28b8)]||[];})[_0x75ff53(0x64a)](function(){const _0x15ce67=_0x75ff53;return _0x1b584c[_0x15ce67(0x16b2)][_0x15ce67(0x896)]({'userProfileId':_0x4a2f6a['currentUser']['userProfileId'],'sectionId':0x191})['$promise'];})[_0x75ff53(0x64a)](function(_0x3c37b8){const _0x5d834a=_0x75ff53,_0x40b949=_0x3c37b8&&_0x3c37b8[_0x5d834a(0x28b8)]?_0x3c37b8[_0x5d834a(0x28b8)][0x0]:null;if(!_0x40b949){const _0x414158=[];let _0x33d063=null;_0x4a2f6a[_0x5d834a(0x1e4e)]&&(_0x33d063=_0x28c606()[_0x5d834a(0x27bc)](_0x4a2f6a[_0x5d834a(0x1c06)],{'name':_0x4a2f6a[_0x5d834a(0x1e4e)][_0x5d834a(0x1e4e)]}));for(let _0x273f69=0x0;_0x273f69<_0x4a2f6a[_0x5d834a(0x1c06)]['length'];_0x273f69++){_0x33d063&&_0x4a2f6a[_0x5d834a(0x1c06)][_0x273f69]['id']===_0x33d063['id']&&(_0x4a2f6a['queues'][_0x273f69][_0x5d834a(0xd4f)]=![],_0x414158[_0x5d834a(0x1954)](_0x4a2f6a[_0x5d834a(0x1c06)][_0x273f69]));}_0x4a2f6a['queues']=_0x414158;}else{if(!_0x40b949[_0x5d834a(0x11da)])return _0x1b584c[_0x5d834a(0x1617)][_0x5d834a(0x896)]({'sectionId':_0x40b949['id']})[_0x5d834a(0x15e7)][_0x5d834a(0x64a)](function(_0x2612e5){const _0xa4edc7=_0x5d834a,_0x4d0941=_0x28c606()[_0xa4edc7(0x1de5)](_0x2612e5[_0xa4edc7(0x28b8)],function(_0x2862f4){const _0x3f2271=_0xa4edc7;return _0x28c606()['find'](_0x4a2f6a['queues'],{'id':_0x2862f4[_0x3f2271(0x145)]});});let _0xe1453d=null;_0x4a2f6a[_0xa4edc7(0x1e4e)]&&(_0xe1453d=_0x28c606()[_0xa4edc7(0x27bc)](_0x4a2f6a[_0xa4edc7(0x1c06)],{'name':_0x4a2f6a[_0xa4edc7(0x1e4e)][_0xa4edc7(0x1e4e)]}));if(_0xe1453d&&!_0x28c606()[_0xa4edc7(0x25f8)](_0x4d0941,['id',_0xe1453d['id']])){const _0x496203=_0x28c606()['find'](_0x4a2f6a[_0xa4edc7(0x1c06)],{'id':_0xe1453d['id']});_0x496203[_0xa4edc7(0xd4f)]=![],_0x4d0941[_0xa4edc7(0x1954)](_0x496203);}_0x4a2f6a[_0xa4edc7(0x1c06)]=_0x4d0941;});}})[_0x75ff53(0x20cd)](function(_0x1bc842){const _0x3a27c9=_0x75ff53;_0x66253d['error']({'title':_0x1bc842[_0x3a27c9(0x10b3)]?_0x3a27c9(0x575)+_0x1bc842[_0x3a27c9(0x10b3)]+_0x3a27c9(0x21db)+_0x1bc842[_0x3a27c9(0x2115)]:_0x3a27c9(0x1238),'msg':_0x1bc842[_0x3a27c9(0x1c52)]?JSON[_0x3a27c9(0x2317)](_0x1bc842[_0x3a27c9(0x1c52)]):_0x1bc842['toString']()});});function _0x50dbda(){const _0x105b8b=_0x75ff53;_0x4a2f6a[_0x105b8b(0xbae)]=[];const _0x99f3e8=[];_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0x2185)]&&_0x4a2f6a[_0x105b8b(0x1e4e)]['type'][_0x105b8b(0x2554)]()===_0x105b8b(0xbce)&&_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0x4f4)]===_0x105b8b(0x17b6)&&(_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0x267a)]=_0x586f29['cutdigits']?(_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0x2524)]||'')+_0x105b8b(0x1a75)+_0x586f29[_0x105b8b(0x242b)]+'}':(_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0x2524)]||'')+'${EXTEN}',_0x586f29[_0x105b8b(0x1097)]!==_0x105b8b(0x2507)?_0x4a2f6a[_0x105b8b(0x1e4e)]['options']['indexOf'](_0x105b8b(0x13e0))<0x0&&(_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0x59e)]+='U(xcally-mixmonitor-context)'):_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0x59e)]=_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0x59e)][_0x105b8b(0x1353)](_0x105b8b(0x13e0),''));if(_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0x4f4)]&&_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0x4f4)]==='custom'){}else switch((_0x4a2f6a['queue'][_0x105b8b(0x16e1)]||_0x4a2f6a['queue'][_0x105b8b(0x4f4)])[_0x105b8b(0x2554)]()){case'set':_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0xacb)]=_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0x2494)]+'='+_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0x1096)];break;case _0x105b8b(0x1ad6):break;default:_0x99f3e8[0x0]=_0x4a2f6a['queue'][_0x105b8b(0x1e4e)],_0x99f3e8[0x1]=_0x4a2f6a['queue']['options'],_0x99f3e8[0x2]=_0x4a2f6a['queue'][_0x105b8b(0xea4)],_0x99f3e8[0x3]=_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0x282b)],_0x99f3e8[0x4]=_0x4a2f6a['queue'][_0x105b8b(0x16d)],_0x99f3e8[0x5]=_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0x1e67)],_0x99f3e8[0x6]=_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0x2542)],_0x99f3e8[0x7]=_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0x17e)],_0x99f3e8[0x8]=_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0x1487)],_0x99f3e8[0x9]=_0x4a2f6a['queue'][_0x105b8b(0x14f7)],_0x4a2f6a[_0x105b8b(0x1e4e)][_0x105b8b(0xacb)]=_0x99f3e8[_0x105b8b(0x9a6)](',');}_0x2b1337(_0x4a2f6a[_0x105b8b(0x1e4e)]);}function _0x2b1337(_0x4fab21){const _0xa46499=_0x75ff53;_0x21c2ad[_0xa46499(0x268e)](_0x4fab21);}}const _0x2b0841=_0x31fe6a;;_0x500992[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty','internalrouteApp','internalroute','api','Auth',_0x49a1e3(0x402)];function _0x500992(_0x407ee5,_0x38fdaa,_0xca7dad,_0x4397b7,_0x465791,_0x3dd1a8,_0x3ef640,_0x2a4ee9){const _0x5a5423=_0x49a1e3,_0x22a9bb=this;_0x22a9bb['currentUser']=_0x3ef640['getCurrentUser'](),_0x22a9bb[_0x5a5423(0xbae)]=[],_0x22a9bb[_0x5a5423(0x2021)]=_0x5a5423(0x2073)+(_0x4397b7[_0x5a5423(0x4f4)]||_0x4397b7['app'])[_0x5a5423(0xa3c)](),_0x22a9bb[_0x5a5423(0x1b7a)]=angular[_0x5a5423(0x289e)](_0x4397b7),_0x22a9bb['crudPermissions']=_0x2a4ee9,_0x22a9bb[_0x5a5423(0x6c2)]={};if(_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0xacb)])switch(_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x4f4)]?_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x4f4)][_0x5a5423(0x2554)]():_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x16e1)][_0x5a5423(0x2554)]()){case'custom':break;case'dialogflow':{const _0x22b757=_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0xacb)]['split'](',');_0x22a9bb['ringgroup']['key']=_0x22b757[0x0],_0x22a9bb[_0x5a5423(0x1b7a)]['language']=_0x22b757[0x1],_0x22a9bb[_0x5a5423(0x1b7a)]['welcomemessage']=_0x22b757[_0x5a5423(0x142e)](0x2,_0x22b757['length'])[_0x5a5423(0x9a6)](',');}break;case _0x5a5423(0x1b1a):{const _0x5b1adb=_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0xacb)]['split'](',');_0x22a9bb[_0x5a5423(0x1b7a)]['projectId']=_0x5b1adb[0x0],_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x4b2)]=_0x5b1adb[0x1],_0x22a9bb[_0x5a5423(0x1b7a)]['privateKey']=_0x5b1adb[0x2],_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x1cbd)]=_0x5b1adb[0x3],_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x31b)]=_0x5b1adb[_0x5a5423(0x142e)](0x4,_0x5b1adb[_0x5a5423(0x1b9e)])[_0x5a5423(0x9a6)](',');}break;case _0x5a5423(0x290d):{const _0xeb3d45=_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0xacb)]['split'](',');_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x1466)]=_0xeb3d45[0x0],_0x22a9bb[_0x5a5423(0x1b7a)]['secretaccesskey']=_0xeb3d45[0x1],_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x17a2)]=_0xeb3d45[0x2],_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x2797)]=_0xeb3d45[0x3],_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x31b)]=_0xeb3d45[_0x5a5423(0x142e)](0x4,_0xeb3d45['length'])['join'](',');}break;case _0x5a5423(0x21a9):{const _0x35deb9=_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0xacb)][_0x5a5423(0x282c)](',');_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x95f)]=isNaN(_0x35deb9[0x0])?_0x35deb9[0x0]:parseInt(_0x35deb9[0x0],0xa),_0x22a9bb['ringgroup'][_0x5a5423(0x39b)]=_0x35deb9[_0x5a5423(0x142e)](0x1,_0x35deb9['length'])[_0x5a5423(0x9a6)](',');}break;case _0x5a5423(0x18ca):_0x22a9bb[_0x5a5423(0x1b7a)]['text']=_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0xacb)];break;case _0x5a5423(0x1979):_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x2494)]=_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0xacb)][_0x5a5423(0x282c)]('=')[0x0],_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x1096)]=_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0xacb)][_0x5a5423(0x282c)]('=')[0x1];break;case _0x5a5423(0x1e67):_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x1bd9)]=_0x22a9bb['ringgroup'][_0x5a5423(0xacb)];break;default:{const _0x41a84b=_0x22a9bb[_0x5a5423(0x1b7a)]['appdata']['split'](',');_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x2627)]=_0x41a84b[0x0]['split']('&'),_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x16d)]=_0x28c606()[_0x5a5423(0x940)](_0x41a84b[0x1])?_0x41a84b[0x1]:isNaN(_0x41a84b[0x1])?_0x41a84b[0x1]:parseInt(_0x41a84b[0x1],0xa),_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x59e)]=_0x28c606()['isEmpty'](_0x41a84b[0x2])?_0x41a84b[0x2]:isNaN(_0x41a84b[0x2])?_0x41a84b[0x2]:parseInt(_0x41a84b[0x2],0xa),_0x22a9bb[_0x5a5423(0x1b7a)]['url']=_0x28c606()[_0x5a5423(0x940)](_0x41a84b[0x3])?_0x41a84b[0x3]:isNaN(_0x41a84b[0x3])?_0x41a84b[0x3]:parseInt(_0x41a84b[0x3],0xa);}break;}else{}_0x22a9bb['ringgroup'][_0x5a5423(0x2185)]&&_0x22a9bb['ringgroup'][_0x5a5423(0x2185)]['toLowerCase']()==='outbound'&&_0x22a9bb['ringgroup'][_0x5a5423(0x4f4)]['toLowerCase']()===_0x5a5423(0x20eb)&&(_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x2524)]=_0x22a9bb['ringgroup'][_0x5a5423(0x267a)]?_0x22a9bb['ringgroup'][_0x5a5423(0x267a)][_0x5a5423(0x282c)]('$')[0x0]:undefined,_0x22a9bb['ringgroup'][_0x5a5423(0x1a9b)]=_0x22a9bb[_0x5a5423(0x1b7a)][_0x5a5423(0x1abe)]?'CALLERID(all)='+_0x22a9bb[_0x5a5423(0x1b7a)]['callerID']:undefined);_0x22a9bb[_0x5a5423(0x194)]=_0x3626a8,_0x22a9bb[_0x5a5423(0x16cb)]=_0x17877e;const _0x39ac39=[{'id':0xca,'role':_0x5a5423(0x11ae)},{'id':0xcb,'role':_0x5a5423(0x1782)}];let _0x5c1164=null;_0x3ef640[_0x5a5423(0x4de)]('admin')?_0x3dd1a8[_0x5a5423(0x2e8)]['get']({'fields':_0x5a5423(0x298b),'sort':_0x5a5423(0x2494),'nolimit':_0x5a5423(0x1685)})['$promise'][_0x5a5423(0x64a)](function(_0x9abc4f){const _0x49d361=_0x5a5423;_0x22a9bb[_0x49d361(0xff5)]=_0x9abc4f[_0x49d361(0x28b8)]||[];})[_0x5a5423(0x20cd)](function(_0x294a83){const _0x167e40=_0x5a5423;_0xca7dad[_0x167e40(0x1bd0)]({'title':_0x294a83[_0x167e40(0x10b3)]?_0x167e40(0x575)+_0x294a83[_0x167e40(0x10b3)]+'\x20-\x20'+_0x294a83['statusText']:_0x167e40(0x112b),'msg':_0x294a83['data']?JSON[_0x167e40(0x2317)](_0x294a83['data']):_0x294a83[_0x167e40(0x2915)]()});}):_0x3dd1a8[_0x5a5423(0x2e8)][_0x5a5423(0x896)]({'fields':'id,name,role','sort':'name','nolimit':_0x5a5423(0x1685)})[_0x5a5423(0x15e7)][_0x5a5423(0x64a)](function(_0x225415){const _0x3d594a=_0x5a5423;_0x5c1164=_0x225415[_0x3d594a(0x28b8)]||[];})[_0x5a5423(0x64a)](function(){const _0x2a38c4=_0x5a5423,_0x5571da=[];for(let _0x180196=0x0;_0x180196<_0x39ac39[_0x2a38c4(0x1b9e)];_0x180196++){_0x5571da['push'](_0x3dd1a8[_0x2a38c4(0x16b2)][_0x2a38c4(0x896)]({'userProfileId':_0x22a9bb[_0x2a38c4(0x1d3d)][_0x2a38c4(0x21ac)],'sectionId':_0x39ac39[_0x180196]['id']})[_0x2a38c4(0x15e7)]);}return _0x38fdaa[_0x2a38c4(0x2705)](_0x5571da);})['then'](function(_0x2646ef){const _0x30c17e=_0x5a5423,_0x51c4e1=_0x28c606()[_0x30c17e(0x1de5)](_0x2646ef,function(_0x396b3c){const _0x12204b=_0x30c17e;return _0x396b3c&&_0x396b3c[_0x12204b(0x28b8)]?_0x396b3c[_0x12204b(0x28b8)][0x0]:null;}),_0x193b82=[];for(let _0x47b72c=0x0;_0x47b72c<_0x39ac39['length'];_0x47b72c++){const _0x40e9dc=_0x28c606()['find'](_0x51c4e1,[_0x30c17e(0xf7b),_0x39ac39[_0x47b72c]['id']]);if(_0x40e9dc){if(!_0x40e9dc[_0x30c17e(0x11da)])_0x193b82[_0x30c17e(0x1954)](_0x3dd1a8[_0x30c17e(0x1617)][_0x30c17e(0x896)]({'sectionId':_0x40e9dc['id']})['$promise']);else{const _0x4a164f=[];_0x5c1164[_0x30c17e(0x1397)](function(_0x5c40de){const _0x12a2c8=_0x30c17e;_0x5c40de['role']===_0x39ac39[_0x47b72c]['role']&&_0x4a164f[_0x12a2c8(0x1954)](_0x5c40de);}),_0x193b82[_0x30c17e(0x1954)]({'rows':_0x4a164f,'count':_0x4a164f['length']});}}}return _0x38fdaa[_0x30c17e(0x2705)](_0x193b82);})[_0x5a5423(0x64a)](function(_0x4cf03b){const _0x1d1b11=_0x5a5423,_0x5d1402=[];let _0x43d966=null;_0x22a9bb[_0x1d1b11(0x1b7a)]&&(_0x43d966=_0x28c606()[_0x1d1b11(0x27bc)](_0x5c1164,{'name':_0x22a9bb[_0x1d1b11(0x1b7a)][_0x1d1b11(0x2627)]}));for(let _0x2112a4=0x0;_0x2112a4<_0x4cf03b[_0x1d1b11(0x1b9e)];_0x2112a4++){const _0x39fde5=_0x4cf03b[_0x2112a4][_0x1d1b11(0x28b8)]||[];_0x39fde5[_0x1d1b11(0x1397)](function(_0x2acf92){_0x5d1402['push'](_0x2acf92);});}_0x43d966&&!_0x28c606()['some'](_0x5d1402,[_0x1d1b11(0x145),_0x43d966['id']])&&_0x5c1164[_0x1d1b11(0x1397)](function(_0x32e11f){_0x32e11f['id']===_0x43d966['id']&&(_0x32e11f['canSelect']=![],_0x5d1402['push'](_0x32e11f));}),_0x22a9bb[_0x1d1b11(0xff5)]=_0x5d1402;})[_0x5a5423(0x20cd)](function(_0x2d0180){const _0x539e41=_0x5a5423;_0xca7dad[_0x539e41(0x1bd0)]({'title':_0x2d0180[_0x539e41(0x10b3)]?_0x539e41(0x575)+_0x2d0180[_0x539e41(0x10b3)]+'\x20-\x20'+_0x2d0180[_0x539e41(0x2115)]:'SYSTEM:GETusers','msg':_0x2d0180[_0x539e41(0x1c52)]?JSON['stringify'](_0x2d0180[_0x539e41(0x1c52)]):_0x2d0180['toString']()});});function _0x3626a8(){const _0x3721a5=_0x5a5423;_0x22a9bb['errors']=[];const _0x4fcdf6=[];_0x22a9bb[_0x3721a5(0x1b7a)][_0x3721a5(0x2185)]&&_0x22a9bb[_0x3721a5(0x1b7a)][_0x3721a5(0x2185)][_0x3721a5(0x2554)]()===_0x3721a5(0xbce)&&_0x22a9bb[_0x3721a5(0x1b7a)][_0x3721a5(0x4f4)]===_0x3721a5(0x17b6)&&(_0x22a9bb['ringgroup'][_0x3721a5(0x267a)]=_0x465791[_0x3721a5(0x242b)]?(_0x22a9bb['ringgroup']['prefix']||'')+_0x3721a5(0x1a75)+_0x465791[_0x3721a5(0x242b)]+'}':(_0x22a9bb['ringgroup'][_0x3721a5(0x2524)]||'')+'${EXTEN}',_0x465791[_0x3721a5(0x1097)]!==_0x3721a5(0x2507)?_0x22a9bb[_0x3721a5(0x1b7a)][_0x3721a5(0x59e)][_0x3721a5(0x1b28)](_0x3721a5(0x13e0))<0x0&&(_0x22a9bb[_0x3721a5(0x1b7a)][_0x3721a5(0x59e)]+=_0x3721a5(0x13e0)):_0x22a9bb['ringgroup'][_0x3721a5(0x59e)]=_0x22a9bb['ringgroup'][_0x3721a5(0x59e)][_0x3721a5(0x1353)](_0x3721a5(0x13e0),''));if(_0x22a9bb[_0x3721a5(0x1b7a)][_0x3721a5(0x4f4)]&&_0x22a9bb[_0x3721a5(0x1b7a)][_0x3721a5(0x4f4)]==='custom'){}else switch((_0x22a9bb[_0x3721a5(0x1b7a)][_0x3721a5(0x16e1)]||_0x22a9bb[_0x3721a5(0x1b7a)][_0x3721a5(0x4f4)])['toLowerCase']()){case _0x3721a5(0x1979):_0x22a9bb[_0x3721a5(0x1b7a)][_0x3721a5(0xacb)]=_0x22a9bb['ringgroup'][_0x3721a5(0x2494)]+'='+_0x22a9bb[_0x3721a5(0x1b7a)][_0x3721a5(0x1096)];break;case'custom':break;default:_0x4fcdf6[0x0]=_0x22a9bb[_0x3721a5(0x1b7a)][_0x3721a5(0x2627)]['join']('&'),_0x4fcdf6[0x1]=_0x22a9bb[_0x3721a5(0x1b7a)]['timeout'],_0x4fcdf6[0x2]=_0x22a9bb[_0x3721a5(0x1b7a)]['options'],_0x4fcdf6[0x3]=_0x22a9bb[_0x3721a5(0x1b7a)][_0x3721a5(0x2761)],_0x22a9bb[_0x3721a5(0x1b7a)][_0x3721a5(0xacb)]=_0x4fcdf6['join'](',');}_0x17877e(_0x22a9bb[_0x3721a5(0x1b7a)]);}function _0x17877e(_0x1df73c){const _0x406862=_0x5a5423;_0x407ee5[_0x406862(0x268e)](_0x1df73c);}}const _0x4ac6ca=_0x500992;;_0x1687c7['$inject']=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0xfec),'internalroute','api','Auth',_0x49a1e3(0x402)];function _0x1687c7(_0x4f2200,_0x39147e,_0x16948c,_0x2ab0a0,_0x2b5c3f,_0x3d405b,_0x294d35,_0x219534){const _0x55b857=_0x49a1e3,_0x49fed8=this;_0x49fed8['currentUser']=_0x294d35[_0x55b857(0x808)](),_0x49fed8[_0x55b857(0xbae)]=[],_0x49fed8[_0x55b857(0x2021)]='VOICE.EDIT_'+(_0x2ab0a0[_0x55b857(0x4f4)]||_0x2ab0a0[_0x55b857(0x16e1)])[_0x55b857(0xa3c)](),_0x49fed8[_0x55b857(0x1979)]=angular[_0x55b857(0x289e)](_0x2ab0a0),_0x49fed8[_0x55b857(0x402)]=_0x219534,_0x49fed8[_0x55b857(0x6c2)]={};if(_0x49fed8[_0x55b857(0x1979)][_0x55b857(0xacb)])switch(_0x49fed8['set']['appType']?_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x4f4)]['toLowerCase']():_0x49fed8['set'][_0x55b857(0x16e1)][_0x55b857(0x2554)]()){case _0x55b857(0x1ad6):break;case _0x55b857(0x1084):{const _0x1b31e8=_0x49fed8[_0x55b857(0x1979)][_0x55b857(0xacb)][_0x55b857(0x282c)](',');_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x2125)]=_0x1b31e8[0x0],_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x1cbd)]=_0x1b31e8[0x1],_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x31b)]=_0x1b31e8[_0x55b857(0x142e)](0x2,_0x1b31e8[_0x55b857(0x1b9e)])[_0x55b857(0x9a6)](',');}break;case _0x55b857(0x1b1a):{const _0x5ab6bd=_0x49fed8['set'][_0x55b857(0xacb)][_0x55b857(0x282c)](',');_0x49fed8['set']['projectId']=_0x5ab6bd[0x0],_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x4b2)]=_0x5ab6bd[0x1],_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x1b1b)]=_0x5ab6bd[0x2],_0x49fed8['set'][_0x55b857(0x1cbd)]=_0x5ab6bd[0x3],_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x31b)]=_0x5ab6bd[_0x55b857(0x142e)](0x4,_0x5ab6bd[_0x55b857(0x1b9e)])['join'](',');}break;case _0x55b857(0x290d):{const _0x9b4d95=_0x49fed8[_0x55b857(0x1979)][_0x55b857(0xacb)][_0x55b857(0x282c)](',');_0x49fed8[_0x55b857(0x1979)]['accesskeyid']=_0x9b4d95[0x0],_0x49fed8[_0x55b857(0x1979)]['secretaccesskey']=_0x9b4d95[0x1],_0x49fed8[_0x55b857(0x1979)]['lexregion']=_0x9b4d95[0x2],_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x2797)]=_0x9b4d95[0x3],_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x31b)]=_0x9b4d95[_0x55b857(0x142e)](0x4,_0x9b4d95[_0x55b857(0x1b9e)])[_0x55b857(0x9a6)](',');}break;case _0x55b857(0x21a9):{const _0x1c8f7e=_0x49fed8[_0x55b857(0x1979)][_0x55b857(0xacb)]['split'](',');_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x95f)]=isNaN(_0x1c8f7e[0x0])?_0x1c8f7e[0x0]:parseInt(_0x1c8f7e[0x0],0xa),_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x39b)]=_0x1c8f7e[_0x55b857(0x142e)](0x1,_0x1c8f7e[_0x55b857(0x1b9e)])[_0x55b857(0x9a6)](',');}break;case _0x55b857(0x18ca):_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x39b)]=_0x49fed8[_0x55b857(0x1979)][_0x55b857(0xacb)];break;case'set':_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x2494)]=_0x49fed8['set'][_0x55b857(0xacb)][_0x55b857(0x282c)]('=')[0x0],_0x49fed8[_0x55b857(0x1979)]['value']=_0x49fed8[_0x55b857(0x1979)]['appdata'][_0x55b857(0x282c)]('=')[0x1];break;case _0x55b857(0x1e67):_0x49fed8['set'][_0x55b857(0x1bd9)]=_0x49fed8[_0x55b857(0x1979)]['appdata'];break;default:{const _0x9f7baa=_0x49fed8[_0x55b857(0x1979)][_0x55b857(0xacb)]['split']('=');_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x2494)]=_0x28c606()[_0x55b857(0x940)](_0x9f7baa[0x0])?_0x9f7baa[0x0]:isNaN(_0x9f7baa[0x0])?_0x9f7baa[0x0]:parseInt(_0x9f7baa[0x0],0xa),_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x1096)]=_0x28c606()['isEmpty'](_0x9f7baa[0x1])?_0x9f7baa[0x1]:isNaN(_0x9f7baa[0x1])?_0x9f7baa[0x1]:parseInt(_0x9f7baa[0x1],0xa);}break;}else{}_0x49fed8[_0x55b857(0x1979)]['type']&&_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x2185)][_0x55b857(0x2554)]()===_0x55b857(0xbce)&&_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x4f4)][_0x55b857(0x2554)]()===_0x55b857(0x20eb)&&(_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x2524)]=_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x267a)]?_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x267a)][_0x55b857(0x282c)]('$')[0x0]:undefined,_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x1a9b)]=_0x49fed8['set'][_0x55b857(0x1abe)]?_0x55b857(0x2489)+_0x49fed8[_0x55b857(0x1979)][_0x55b857(0x1abe)]:undefined);_0x49fed8[_0x55b857(0x194)]=_0x205898,_0x49fed8[_0x55b857(0x16cb)]=_0x3b6411,_0x294d35[_0x55b857(0x4de)](_0x55b857(0x333))?_0x3d405b[_0x55b857(0xefb)]['get']({'fields':'id,name','sort':_0x55b857(0x2494),'nolimit':_0x55b857(0x1685)})['$promise'][_0x55b857(0x64a)](function(_0x56be9c){const _0x5f0713=_0x55b857;_0x49fed8[_0x5f0713(0x145c)]=_0x56be9c['rows']||[];})['catch'](function(_0x3ae6ce){const _0x279847=_0x55b857;_0x16948c[_0x279847(0x1bd0)]({'title':_0x3ae6ce[_0x279847(0x10b3)]?'API:'+_0x3ae6ce[_0x279847(0x10b3)]+_0x279847(0x21db)+_0x3ae6ce[_0x279847(0x2115)]:_0x279847(0x1cf6),'msg':_0x3ae6ce[_0x279847(0x1c52)]?JSON[_0x279847(0x2317)](_0x3ae6ce[_0x279847(0x1c52)]):_0x3ae6ce[_0x279847(0x2915)]()});}):_0x3d405b[_0x55b857(0xefb)][_0x55b857(0x896)]({'fields':_0x55b857(0x1427),'sort':_0x55b857(0x2494),'nolimit':_0x55b857(0x1685)})[_0x55b857(0x15e7)]['then'](function(_0x140790){const _0x1a263c=_0x55b857;_0x49fed8[_0x1a263c(0x145c)]=_0x140790[_0x1a263c(0x28b8)]||[];})[_0x55b857(0x64a)](function(){const _0x57537a=_0x55b857;return _0x3d405b[_0x57537a(0x16b2)][_0x57537a(0x896)]({'userProfileId':_0x49fed8['currentUser'][_0x57537a(0x21ac)],'sectionId':0x3f4})[_0x57537a(0x15e7)];})[_0x55b857(0x64a)](function(_0x32918){const _0x14bc7e=_0x55b857,_0xc74698=_0x32918&&_0x32918[_0x14bc7e(0x28b8)]?_0x32918[_0x14bc7e(0x28b8)][0x0]:null;if(!_0xc74698){const _0x12d55f=[];let _0x459f0f=null;_0x49fed8['set']&&(_0x459f0f=_0x28c606()[_0x14bc7e(0x27bc)](_0x49fed8[_0x14bc7e(0x145c)],{'name':_0x49fed8[_0x14bc7e(0x1979)][_0x14bc7e(0x2494)]}));for(let _0x44a47e=0x0;_0x44a47e<_0x49fed8[_0x14bc7e(0x145c)][_0x14bc7e(0x1b9e)];_0x44a47e++){_0x459f0f&&_0x49fed8[_0x14bc7e(0x145c)][_0x44a47e]['id']===_0x459f0f['id']&&(_0x49fed8[_0x14bc7e(0x145c)][_0x44a47e][_0x14bc7e(0xd4f)]=![],_0x12d55f[_0x14bc7e(0x1954)](_0x49fed8[_0x14bc7e(0x145c)][_0x44a47e]));}_0x49fed8[_0x14bc7e(0x145c)]=_0x12d55f;}else{if(!_0xc74698[_0x14bc7e(0x11da)])return _0x3d405b[_0x14bc7e(0x1617)][_0x14bc7e(0x896)]({'sectionId':_0xc74698['id']})['$promise']['then'](function(_0x5602ba){const _0xbebcf1=_0x14bc7e,_0x139060=_0x28c606()[_0xbebcf1(0x1de5)](_0x5602ba['rows'],function(_0x3bfc50){const _0x4f5876=_0xbebcf1;return _0x28c606()[_0x4f5876(0x27bc)](_0x49fed8[_0x4f5876(0x145c)],{'id':_0x3bfc50[_0x4f5876(0x145)]});});let _0x51b317=null;_0x49fed8[_0xbebcf1(0x1979)]&&(_0x51b317=_0x28c606()[_0xbebcf1(0x27bc)](_0x49fed8['variables'],{'name':_0x49fed8[_0xbebcf1(0x1979)]['name']}));if(_0x51b317&&!_0x28c606()[_0xbebcf1(0x25f8)](_0x139060,['id',_0x51b317['id']])){const _0x191d05=_0x28c606()['find'](_0x49fed8[_0xbebcf1(0x145c)],{'id':_0x51b317['id']});_0x191d05[_0xbebcf1(0xd4f)]=![],_0x139060[_0xbebcf1(0x1954)](_0x191d05);}_0x49fed8[_0xbebcf1(0x145c)]=_0x139060;});}})[_0x55b857(0x20cd)](function(_0x210e84){const _0x49823f=_0x55b857;_0x16948c['error']({'title':_0x210e84[_0x49823f(0x10b3)]?'API:'+_0x210e84['status']+_0x49823f(0x21db)+_0x210e84[_0x49823f(0x2115)]:_0x49823f(0x284a),'msg':_0x210e84['data']?JSON[_0x49823f(0x2317)](_0x210e84[_0x49823f(0x1c52)]):_0x210e84[_0x49823f(0x2915)]()});});function _0x205898(){const _0x22409b=_0x55b857;_0x49fed8[_0x22409b(0xbae)]=[];const _0x4e7845=[];_0x49fed8[_0x22409b(0x1979)]['type']&&_0x49fed8[_0x22409b(0x1979)]['type'][_0x22409b(0x2554)]()===_0x22409b(0xbce)&&_0x49fed8[_0x22409b(0x1979)][_0x22409b(0x4f4)]===_0x22409b(0x17b6)&&(_0x49fed8[_0x22409b(0x1979)][_0x22409b(0x267a)]=_0x2b5c3f[_0x22409b(0x242b)]?(_0x49fed8['set'][_0x22409b(0x2524)]||'')+_0x22409b(0x1a75)+_0x2b5c3f[_0x22409b(0x242b)]+'}':(_0x49fed8[_0x22409b(0x1979)]['prefix']||'')+'${EXTEN}',_0x2b5c3f[_0x22409b(0x1097)]!=='none'?_0x49fed8['set']['options'][_0x22409b(0x1b28)](_0x22409b(0x13e0))<0x0&&(_0x49fed8[_0x22409b(0x1979)]['options']+=_0x22409b(0x13e0)):_0x49fed8[_0x22409b(0x1979)]['options']=_0x49fed8['set'][_0x22409b(0x59e)][_0x22409b(0x1353)]('U(xcally-mixmonitor-context)',''));if(_0x49fed8[_0x22409b(0x1979)][_0x22409b(0x4f4)]&&_0x49fed8[_0x22409b(0x1979)]['appType']==='custom'){}else switch((_0x49fed8[_0x22409b(0x1979)][_0x22409b(0x16e1)]||_0x49fed8[_0x22409b(0x1979)][_0x22409b(0x4f4)])[_0x22409b(0x2554)]()){case'set':_0x49fed8[_0x22409b(0x1979)][_0x22409b(0xacb)]=_0x49fed8[_0x22409b(0x1979)][_0x22409b(0x2494)]+'='+_0x49fed8[_0x22409b(0x1979)]['value'];break;case'custom':break;default:_0x4e7845[0x0]=_0x49fed8['set'][_0x22409b(0x2494)],_0x4e7845[0x1]=_0x49fed8['set'][_0x22409b(0x1096)],_0x49fed8[_0x22409b(0x1979)][_0x22409b(0xacb)]=_0x4e7845[_0x22409b(0x9a6)]('=');}_0x3b6411(_0x49fed8['set']);}function _0x3b6411(_0x4ca3c3){_0x4f2200['hide'](_0x4ca3c3);}}const _0xb2bc9b=_0x1687c7;;_0x202433[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),'internalrouteApp','internalroute','api',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x202433(_0x36d14e,_0x4fe7a8,_0x497dc0,_0x423d52,_0x42e154,_0x3d51ad,_0x272567,_0x5ea51e){const _0x52c71f=_0x49a1e3,_0x44d5aa=this;_0x44d5aa[_0x52c71f(0x1d3d)]=_0x272567[_0x52c71f(0x808)](),_0x44d5aa[_0x52c71f(0xbae)]=[],_0x44d5aa[_0x52c71f(0x2021)]='VOICE.EDIT_'+(_0x423d52[_0x52c71f(0x4f4)]||_0x423d52[_0x52c71f(0x16e1)])[_0x52c71f(0xa3c)](),_0x44d5aa['voicemail']=angular[_0x52c71f(0x289e)](_0x423d52),_0x44d5aa[_0x52c71f(0x402)]=_0x5ea51e,_0x44d5aa[_0x52c71f(0x6c2)]={};if(_0x44d5aa['voicemail'][_0x52c71f(0xacb)])switch(_0x44d5aa['voicemail']['appType']?_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x4f4)][_0x52c71f(0x2554)]():_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x16e1)]['toLowerCase']()){case _0x52c71f(0x1ad6):break;case _0x52c71f(0x1084):{const _0x5e0f88=_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0xacb)][_0x52c71f(0x282c)](',');_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x2125)]=_0x5e0f88[0x0],_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x1cbd)]=_0x5e0f88[0x1],_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x31b)]=_0x5e0f88[_0x52c71f(0x142e)](0x2,_0x5e0f88['length'])[_0x52c71f(0x9a6)](',');}break;case _0x52c71f(0x1b1a):{const _0xfb1e18=_0x44d5aa['voicemail']['appdata'][_0x52c71f(0x282c)](',');_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0xbfd)]=_0xfb1e18[0x0],_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x4b2)]=_0xfb1e18[0x1],_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x1b1b)]=_0xfb1e18[0x2],_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x1cbd)]=_0xfb1e18[0x3],_0x44d5aa[_0x52c71f(0x25b)]['welcomemessage']=_0xfb1e18[_0x52c71f(0x142e)](0x4,_0xfb1e18[_0x52c71f(0x1b9e)])[_0x52c71f(0x9a6)](',');}break;case _0x52c71f(0x290d):{const _0xb006f6=_0x44d5aa['voicemail'][_0x52c71f(0xacb)][_0x52c71f(0x282c)](',');_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x1466)]=_0xb006f6[0x0],_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x1b1)]=_0xb006f6[0x1],_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x17a2)]=_0xb006f6[0x2],_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x2797)]=_0xb006f6[0x3],_0x44d5aa['voicemail'][_0x52c71f(0x31b)]=_0xb006f6['slice'](0x4,_0xb006f6['length'])[_0x52c71f(0x9a6)](',');}break;case _0x52c71f(0x21a9):{const _0x2e1d21=_0x44d5aa['voicemail'][_0x52c71f(0xacb)][_0x52c71f(0x282c)](',');_0x44d5aa['voicemail'][_0x52c71f(0x95f)]=isNaN(_0x2e1d21[0x0])?_0x2e1d21[0x0]:parseInt(_0x2e1d21[0x0],0xa),_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x39b)]=_0x2e1d21[_0x52c71f(0x142e)](0x1,_0x2e1d21[_0x52c71f(0x1b9e)])['join'](',');}break;case _0x52c71f(0x18ca):_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x39b)]=_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0xacb)];break;case _0x52c71f(0x1979):_0x44d5aa['voicemail']['name']=_0x44d5aa['voicemail'][_0x52c71f(0xacb)][_0x52c71f(0x282c)]('=')[0x0],_0x44d5aa['voicemail']['value']=_0x44d5aa['voicemail']['appdata'][_0x52c71f(0x282c)]('=')[0x1];break;case'agi':_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x1bd9)]=_0x44d5aa['voicemail'][_0x52c71f(0xacb)];break;default:{const _0x40f9d8=_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0xacb)]['split'](',');_0x44d5aa[_0x52c71f(0x25b)]['voiceMail']=_0x28c606()['isEmpty'](_0x40f9d8[0x0])?_0x40f9d8[0x0]:isNaN(_0x40f9d8[0x0])?_0x40f9d8[0x0]:parseInt(_0x40f9d8[0x0],0xa),_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x59e)]=_0x28c606()[_0x52c71f(0x940)](_0x40f9d8[0x1])?_0x40f9d8[0x1]:isNaN(_0x40f9d8[0x1])?_0x40f9d8[0x1]:parseInt(_0x40f9d8[0x1],0xa);}break;}else{}_0x44d5aa[_0x52c71f(0x25b)]['type']&&_0x44d5aa['voicemail'][_0x52c71f(0x2185)][_0x52c71f(0x2554)]()===_0x52c71f(0xbce)&&_0x44d5aa['voicemail']['appType']['toLowerCase']()===_0x52c71f(0x20eb)&&(_0x44d5aa['voicemail'][_0x52c71f(0x2524)]=_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x267a)]?_0x44d5aa['voicemail'][_0x52c71f(0x267a)]['split']('$')[0x0]:undefined,_0x44d5aa[_0x52c71f(0x25b)]['callerId']=_0x44d5aa[_0x52c71f(0x25b)][_0x52c71f(0x1abe)]?'CALLERID(all)='+_0x44d5aa['voicemail'][_0x52c71f(0x1abe)]:undefined);_0x44d5aa[_0x52c71f(0x194)]=_0x23bf42,_0x44d5aa[_0x52c71f(0x16cb)]=_0x570c5a,_0x272567[_0x52c71f(0x4de)](_0x52c71f(0x333))?_0x3d51ad['voiceMail'][_0x52c71f(0x896)]({'fields':_0x52c71f(0x2419),'sort':_0x52c71f(0x1efa),'nolimit':_0x52c71f(0x1685)})[_0x52c71f(0x15e7)][_0x52c71f(0x64a)](function(_0x5e82b7){const _0x12e779=_0x52c71f;_0x44d5aa[_0x12e779(0x5e4)]=_0x5e82b7[_0x12e779(0x28b8)]||[];})[_0x52c71f(0x20cd)](function(_0x255972){const _0x47d52d=_0x52c71f;_0x497dc0[_0x47d52d(0x1bd0)]({'title':_0x255972[_0x47d52d(0x10b3)]?_0x47d52d(0x575)+_0x255972[_0x47d52d(0x10b3)]+_0x47d52d(0x21db)+_0x255972[_0x47d52d(0x2115)]:_0x47d52d(0x18d0),'msg':_0x255972[_0x47d52d(0x1c52)]?JSON['stringify'](_0x255972['data']):_0x255972['toString']()});}):_0x3d51ad[_0x52c71f(0x1e43)][_0x52c71f(0x896)]({'fields':_0x52c71f(0x2419),'sort':'mailbox','nolimit':_0x52c71f(0x1685)})[_0x52c71f(0x15e7)]['then'](function(_0xcefba4){const _0x5a281d=_0x52c71f;_0x44d5aa[_0x5a281d(0x5e4)]=_0xcefba4[_0x5a281d(0x28b8)]||[];})['then'](function(){const _0x3d14ab=_0x52c71f;return _0x3d51ad[_0x3d14ab(0x16b2)][_0x3d14ab(0x896)]({'userProfileId':_0x44d5aa[_0x3d14ab(0x1d3d)][_0x3d14ab(0x21ac)],'sectionId':0x196})[_0x3d14ab(0x15e7)];})[_0x52c71f(0x64a)](function(_0x4c4d3b){const _0x2470e1=_0x52c71f,_0x5c84d0=_0x4c4d3b&&_0x4c4d3b[_0x2470e1(0x28b8)]?_0x4c4d3b[_0x2470e1(0x28b8)][0x0]:null;if(!_0x5c84d0){const _0x18faee=[];let _0x31637c=null;_0x44d5aa[_0x2470e1(0x25b)]&&(_0x31637c=_0x28c606()[_0x2470e1(0x27bc)](_0x44d5aa[_0x2470e1(0x5e4)],{'mailbox':_0x44d5aa[_0x2470e1(0x25b)][_0x2470e1(0x1e43)]}));for(let _0xd0dc26=0x0;_0xd0dc26<_0x44d5aa[_0x2470e1(0x5e4)][_0x2470e1(0x1b9e)];_0xd0dc26++){_0x31637c&&_0x44d5aa[_0x2470e1(0x5e4)][_0xd0dc26]['id']===_0x31637c['id']&&(_0x44d5aa[_0x2470e1(0x5e4)][_0xd0dc26][_0x2470e1(0xd4f)]=![],_0x18faee[_0x2470e1(0x1954)](_0x44d5aa[_0x2470e1(0x5e4)][_0xd0dc26]));}_0x44d5aa['voiceMails']=_0x18faee;}else{if(!_0x5c84d0[_0x2470e1(0x11da)])return _0x3d51ad[_0x2470e1(0x1617)]['get']({'sectionId':_0x5c84d0['id']})[_0x2470e1(0x15e7)][_0x2470e1(0x64a)](function(_0x11b2c0){const _0x111f13=_0x2470e1,_0x362f7f=_0x28c606()[_0x111f13(0x1de5)](_0x11b2c0[_0x111f13(0x28b8)],function(_0x4c1784){const _0x319abb=_0x111f13;return _0x28c606()['find'](_0x44d5aa['voiceMails'],{'id':_0x4c1784[_0x319abb(0x145)]});});let _0x339727=null;_0x44d5aa[_0x111f13(0x25b)]&&(_0x339727=_0x28c606()[_0x111f13(0x27bc)](_0x44d5aa[_0x111f13(0x5e4)],{'mailbox':_0x44d5aa['voicemail'][_0x111f13(0x1e43)]}));if(_0x339727&&!_0x28c606()[_0x111f13(0x25f8)](_0x362f7f,['id',_0x339727['id']])){const _0x3ad6c5=_0x28c606()[_0x111f13(0x27bc)](_0x44d5aa['voiceMails'],{'id':_0x339727['id']});_0x3ad6c5[_0x111f13(0xd4f)]=![],_0x362f7f[_0x111f13(0x1954)](_0x3ad6c5);}_0x44d5aa[_0x111f13(0x5e4)]=_0x362f7f;});}})[_0x52c71f(0x20cd)](function(_0x5e55af){const _0x2f2bbf=_0x52c71f;_0x497dc0['error']({'title':_0x5e55af['status']?_0x2f2bbf(0x575)+_0x5e55af[_0x2f2bbf(0x10b3)]+'\x20-\x20'+_0x5e55af['statusText']:_0x2f2bbf(0x33c),'msg':_0x5e55af['data']?JSON['stringify'](_0x5e55af[_0x2f2bbf(0x1c52)]):_0x5e55af[_0x2f2bbf(0x2915)]()});});function _0x23bf42(){const _0x1e8755=_0x52c71f;_0x44d5aa[_0x1e8755(0xbae)]=[];const _0xa1e834=[];_0x44d5aa[_0x1e8755(0x25b)][_0x1e8755(0x2185)]&&_0x44d5aa['voicemail'][_0x1e8755(0x2185)][_0x1e8755(0x2554)]()===_0x1e8755(0xbce)&&_0x44d5aa[_0x1e8755(0x25b)][_0x1e8755(0x4f4)]==='outboundDial'&&(_0x44d5aa[_0x1e8755(0x25b)][_0x1e8755(0x267a)]=_0x42e154['cutdigits']?(_0x44d5aa['voicemail']['prefix']||'')+_0x1e8755(0x1a75)+_0x42e154['cutdigits']+'}':(_0x44d5aa[_0x1e8755(0x25b)][_0x1e8755(0x2524)]||'')+_0x1e8755(0x5ad),_0x42e154[_0x1e8755(0x1097)]!==_0x1e8755(0x2507)?_0x44d5aa[_0x1e8755(0x25b)][_0x1e8755(0x59e)][_0x1e8755(0x1b28)]('U(xcally-mixmonitor-context)')<0x0&&(_0x44d5aa['voicemail'][_0x1e8755(0x59e)]+=_0x1e8755(0x13e0)):_0x44d5aa[_0x1e8755(0x25b)][_0x1e8755(0x59e)]=_0x44d5aa[_0x1e8755(0x25b)][_0x1e8755(0x59e)][_0x1e8755(0x1353)](_0x1e8755(0x13e0),''));if(_0x44d5aa['voicemail'][_0x1e8755(0x4f4)]&&_0x44d5aa[_0x1e8755(0x25b)][_0x1e8755(0x4f4)]===_0x1e8755(0x1ad6)){}else switch((_0x44d5aa[_0x1e8755(0x25b)][_0x1e8755(0x16e1)]||_0x44d5aa[_0x1e8755(0x25b)][_0x1e8755(0x4f4)])[_0x1e8755(0x2554)]()){case _0x1e8755(0x1979):_0x44d5aa[_0x1e8755(0x25b)]['appdata']=_0x44d5aa[_0x1e8755(0x25b)]['name']+'='+_0x44d5aa[_0x1e8755(0x25b)][_0x1e8755(0x1096)];break;case _0x1e8755(0x1ad6):break;default:_0xa1e834[0x0]=_0x44d5aa[_0x1e8755(0x25b)][_0x1e8755(0x1e43)],_0xa1e834[0x1]=_0x44d5aa[_0x1e8755(0x25b)][_0x1e8755(0x59e)],_0x44d5aa['voicemail'][_0x1e8755(0xacb)]=_0xa1e834['join'](',');}_0x570c5a(_0x44d5aa[_0x1e8755(0x25b)]);}function _0x570c5a(_0x87413d){_0x36d14e['hide'](_0x87413d);}}const _0x5ef4ea=_0x202433;;_0x18ad19['$inject']=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'api',_0x49a1e3(0x680),_0x49a1e3(0xdcf),'internalroute',_0x49a1e3(0x16b2)];function _0x18ad19(_0x276ee8,_0xe24e02,_0x1615b4,_0x142ff6,_0xf48065,_0x353154,_0x59a99b,_0x2afaa4,_0x3234d4,_0x4c2329,_0x543898,_0x2a27e9){const _0x44590a=_0x49a1e3,_0x3da786=this;_0x3da786[_0x44590a(0x1d3d)]=_0x4c2329['getCurrentUser'](),_0x3da786[_0x44590a(0x1947)]=_0x353154,_0x3da786[_0x44590a(0x28d6)]=_0x59a99b,_0x3da786[_0x44590a(0xccc)]=_0x3da786[_0x44590a(0x28d6)][_0x44590a(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3da786[_0x44590a(0xb36)]=_0xe24e02[_0x44590a(0x48e)]()+_0x44590a(0xe1f)+_0xe24e02['host'](),_0x3da786['internalroute']=_0x543898||_0x276ee8['params']['internalroute']||{},_0x3da786[_0x44590a(0x16b2)]=_0x2a27e9&&_0x2a27e9[_0x44590a(0xb90)]==0x1?_0x2a27e9[_0x44590a(0x28b8)][0x0]:null,_0x3da786[_0x44590a(0x402)]=_0x4c2329[_0x44590a(0xa7e)](_0x3da786[_0x44590a(0x16b2)]?_0x3da786[_0x44590a(0x16b2)][_0x44590a(0x402)]:null),_0x3da786[_0x44590a(0x6c2)]={},_0x3da786[_0x44590a(0x197c)]=_0x276ee8[_0x44590a(0x1b48)]['tab']||0x0,_0x3da786[_0x44590a(0x2540)]=_0x3234d4[_0x44590a(0x772)],_0x3da786[_0x44590a(0x169d)]=_0x4b69c0,_0x3da786['saveInternalRoute']=_0x2a45a0,_0x4c2329[_0x44590a(0x4de)]('admin')?_0x2afaa4[_0x44590a(0x1faa)]['get']({'fields':_0x44590a(0x1427),'sort':_0x44590a(0x2494),'nolimit':_0x44590a(0x1685)})[_0x44590a(0x15e7)][_0x44590a(0x64a)](function(_0x44be28){const _0x52f227=_0x44590a;_0x3da786['contexts']=_0x44be28[_0x52f227(0x28b8)]||[];})[_0x44590a(0x20cd)](function(_0x51a56e){const _0x2c47d3=_0x44590a;_0x3234d4[_0x2c47d3(0x1bd0)]({'title':_0x51a56e[_0x2c47d3(0x10b3)]?_0x2c47d3(0x575)+_0x51a56e[_0x2c47d3(0x10b3)]+'\x20-\x20'+_0x51a56e[_0x2c47d3(0x2115)]:_0x2c47d3(0xbea),'msg':_0x51a56e['data']?JSON[_0x2c47d3(0x2317)](_0x51a56e[_0x2c47d3(0x1c52)]):_0x51a56e[_0x2c47d3(0x2915)]()});}):_0x2afaa4[_0x44590a(0x1faa)][_0x44590a(0x896)]({'fields':'id,name','sort':_0x44590a(0x2494),'nolimit':_0x44590a(0x1685)})[_0x44590a(0x15e7)][_0x44590a(0x64a)](function(_0x231ff6){const _0x419f00=_0x44590a;_0x3da786[_0x419f00(0xad1)]=_0x231ff6[_0x419f00(0x28b8)]||[];})[_0x44590a(0x64a)](function(){const _0x781b01=_0x44590a;return _0x2afaa4[_0x781b01(0x16b2)][_0x781b01(0x896)]({'userProfileId':_0x3da786[_0x781b01(0x1d3d)]['userProfileId'],'sectionId':0x195})[_0x781b01(0x15e7)];})[_0x44590a(0x64a)](function(_0x475ea3){const _0x1d819d=_0x44590a,_0x5e6a3e=_0x475ea3&&_0x475ea3[_0x1d819d(0x28b8)]?_0x475ea3[_0x1d819d(0x28b8)][0x0]:null;if(!_0x5e6a3e)return _0x2afaa4[_0x1d819d(0x1faa)][_0x1d819d(0x896)]({'fields':_0x1d819d(0x1427),'sort':_0x1d819d(0x2494),'nolimit':_0x1d819d(0x1685),'defaultEntry':0x1})[_0x1d819d(0x15e7)][_0x1d819d(0x64a)](function(_0x1606e9){const _0x40cfe2=_0x1d819d;_0x3da786[_0x40cfe2(0xad1)]=_0x1606e9['rows']||[];});else{if(!_0x5e6a3e[_0x1d819d(0x11da)])return _0x2afaa4[_0x1d819d(0x1617)]['get']({'sectionId':_0x5e6a3e['id']})[_0x1d819d(0x15e7)][_0x1d819d(0x64a)](function(_0x32f803){const _0x1c5ee3=_0x1d819d,_0x10f5f4=_0x28c606()[_0x1c5ee3(0x1de5)](_0x32f803[_0x1c5ee3(0x28b8)],function(_0x42afb8){const _0x455fd7=_0x1c5ee3;return _0x28c606()[_0x455fd7(0x27bc)](_0x3da786['contexts'],{'id':_0x42afb8[_0x455fd7(0x145)]});});let _0x5f0ffa=null;_0x3da786[_0x1c5ee3(0x18b9)]&&(_0x5f0ffa=_0x28c606()['find'](_0x3da786[_0x1c5ee3(0xad1)],{'name':_0x3da786[_0x1c5ee3(0x18b9)][_0x1c5ee3(0x139)]}));if(_0x5f0ffa&&!_0x28c606()[_0x1c5ee3(0x25f8)](_0x10f5f4,['id',_0x5f0ffa['id']])){const _0x5a0a66=_0x28c606()[_0x1c5ee3(0x27bc)](_0x3da786[_0x1c5ee3(0xad1)],{'id':_0x5f0ffa['id']});_0x5a0a66[_0x1c5ee3(0xd4f)]=![],_0x10f5f4[_0x1c5ee3(0x1954)](_0x5a0a66);}_0x3da786[_0x1c5ee3(0xad1)]=_0x10f5f4;});}})[_0x44590a(0x20cd)](function(_0x474c89){const _0x1b1e14=_0x44590a;_0x3234d4[_0x1b1e14(0x1bd0)]({'title':_0x474c89['status']?_0x1b1e14(0x575)+_0x474c89[_0x1b1e14(0x10b3)]+_0x1b1e14(0x21db)+_0x474c89[_0x1b1e14(0x2115)]:_0x1b1e14(0x184b),'msg':_0x474c89['data']?JSON['stringify'](_0x474c89['data']):_0x474c89[_0x1b1e14(0x2915)]()});});function _0x4b69c0(){const _0x288a27=_0x44590a;_0x276ee8['go'](_0x288a27(0x1eba),{},{'reload':_0x288a27(0x1eba)});}function _0x2a45a0(){const _0x2e3a67=_0x44590a;_0x2afaa4[_0x2e3a67(0x1438)]['update']({'id':_0x3da786[_0x2e3a67(0x18b9)]['id']},_0x3da786['internalroute'])[_0x2e3a67(0x15e7)]['then'](function(){const _0x3e23a6=_0x2e3a67;_0x3234d4[_0x3e23a6(0x1339)]({'title':_0x3e23a6(0x6d0),'msg':_0x3da786[_0x3e23a6(0x18b9)]['name']?_0x3da786[_0x3e23a6(0x18b9)][_0x3e23a6(0x2494)]+_0x3e23a6(0x2032):''});})[_0x2e3a67(0x20cd)](function(_0x393f89){const _0x111285=_0x2e3a67;_0x3234d4[_0x111285(0x1bd0)]({'title':_0x393f89[_0x111285(0x10b3)]?_0x111285(0x575)+_0x393f89[_0x111285(0x10b3)]+_0x111285(0x21db)+_0x393f89[_0x111285(0x2115)]:_0x111285(0x209e),'msg':_0x393f89[_0x111285(0x1c52)]?JSON[_0x111285(0x2317)](_0x393f89[_0x111285(0x1c52)]):_0x393f89[_0x111285(0x2915)]()});});}}const _0x375427=_0x18ad19;;const _0x37b3cc=_0x2e4a48['p']+'src/js/modules/main/apps/voice/views/internalroutes/create/dialog.html/dialog.html';;_0x437ffa[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$window',_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x1cae),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),'api',_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6)];function _0x437ffa(_0xf4b7b9,_0x459c7a,_0x395ad9,_0x70dc7a,_0x1e0b8a,_0x2adb4d,_0x556f76,_0x248367,_0x30e31f,_0x39973c,_0x4e54a6,_0x5c7c09,_0x494d02,_0x162d5c,_0x93e75,_0x16b61f,_0x1cf564){const _0x15fe75=_0x49a1e3,_0x2ebad7=this;_0x2ebad7[_0x15fe75(0x1947)]=_0x16b61f,_0x2ebad7['setting']=_0x1cf564,_0x2ebad7[_0x15fe75(0x1d3d)]=_0x93e75[_0x15fe75(0x808)](),_0x2ebad7[_0x15fe75(0x1cae)]=_0x30e31f||{'count':0x0,'rows':[]},_0x2ebad7[_0x15fe75(0x16a8)]=_0x39973c,_0x2ebad7['userProfileSection']=_0x4e54a6&&_0x4e54a6['count']==0x1?_0x4e54a6['rows'][0x0]:null,_0x2ebad7[_0x15fe75(0x402)]=_0x93e75[_0x15fe75(0xa7e)](_0x2ebad7[_0x15fe75(0x16b2)]?_0x2ebad7[_0x15fe75(0x16b2)][_0x15fe75(0x402)]:null),_0x2ebad7[_0x15fe75(0x185d)]=_0x15fe75(0x1cae),_0x2ebad7['listOrder']='',_0x2ebad7['listOrderAsc']=null,_0x2ebad7[_0x15fe75(0x35a)]=[],_0x2ebad7[_0x15fe75(0x289a)]={'fields':_0x15fe75(0x18b7),'type':_0x15fe75(0xe2f),'sort':_0x15fe75(0x260c),'VoiceExtensionId':_0x15fe75(0x8f1),'limit':0xa,'page':0x1},_0x2ebad7[_0x15fe75(0xff6)]=_0x1dd823,_0x2ebad7[_0x15fe75(0x1262)]=_0x147cb0,_0x2ebad7[_0x15fe75(0x1339)]=_0x376ce5,_0x2ebad7['getInternalRoutes']=_0x12e626,_0x2ebad7[_0x15fe75(0x417)]=_0x575421,_0x2ebad7[_0x15fe75(0x19d9)]=_0x1ae5e5,_0x2ebad7['exportSelectedInternalRoutes']=_0x4e7067,_0x2ebad7[_0x15fe75(0x2682)]=_0x589df9,_0x2ebad7[_0x15fe75(0x87d)]=_0x261d54,_0x2ebad7[_0x15fe75(0x1286)]=_0x2d715a,_0x93e75[_0x15fe75(0x4de)](_0x15fe75(0x333))?_0x5c7c09[_0x15fe75(0x1faa)][_0x15fe75(0x896)]({'fields':_0x15fe75(0x1427),'sort':_0x15fe75(0x2494),'nolimit':_0x15fe75(0x1685)})[_0x15fe75(0x15e7)][_0x15fe75(0x64a)](function(_0x2f5b9a){const _0x1cb6d1=_0x15fe75;_0x2ebad7['contexts']=_0x2f5b9a[_0x1cb6d1(0x28b8)]||[];})[_0x15fe75(0x20cd)](function(_0x46dbed){const _0x13bdb1=_0x15fe75;_0x162d5c[_0x13bdb1(0x1bd0)]({'title':_0x46dbed[_0x13bdb1(0x10b3)]?_0x13bdb1(0x575)+_0x46dbed[_0x13bdb1(0x10b3)]+_0x13bdb1(0x21db)+_0x46dbed[_0x13bdb1(0x2115)]:'SYSTEM:GET_CONTEXTS','msg':_0x46dbed[_0x13bdb1(0x1c52)]?JSON[_0x13bdb1(0x2317)](_0x46dbed[_0x13bdb1(0x1c52)]):_0x46dbed[_0x13bdb1(0x2915)]()});}):_0x5c7c09[_0x15fe75(0x1faa)][_0x15fe75(0x896)]({'fields':'id,name','sort':_0x15fe75(0x2494),'nolimit':_0x15fe75(0x1685)})[_0x15fe75(0x15e7)][_0x15fe75(0x64a)](function(_0x5c5b5d){const _0x1b81f6=_0x15fe75;_0x2ebad7['contexts']=_0x5c5b5d[_0x1b81f6(0x28b8)]||[];})[_0x15fe75(0x64a)](function(){const _0x2ad1f6=_0x15fe75;return _0x5c7c09[_0x2ad1f6(0x16b2)][_0x2ad1f6(0x896)]({'userProfileId':_0x2ebad7[_0x2ad1f6(0x1d3d)][_0x2ad1f6(0x21ac)],'sectionId':0x195})[_0x2ad1f6(0x15e7)];})[_0x15fe75(0x64a)](function(_0x9c9398){const _0x40e4cf=_0x15fe75,_0x15be7c=_0x9c9398&&_0x9c9398[_0x40e4cf(0x28b8)]?_0x9c9398[_0x40e4cf(0x28b8)][0x0]:null;if(!_0x15be7c)return _0x5c7c09[_0x40e4cf(0x1faa)][_0x40e4cf(0x896)]({'fields':'id,name','sort':_0x40e4cf(0x2494),'nolimit':'true','defaultEntry':0x1})[_0x40e4cf(0x15e7)][_0x40e4cf(0x64a)](function(_0x2c9207){const _0x36d698=_0x40e4cf;_0x2ebad7['contexts']=_0x2c9207[_0x36d698(0x28b8)]||[];});else{if(!_0x15be7c[_0x40e4cf(0x11da)])return _0x5c7c09[_0x40e4cf(0x1617)]['get']({'sectionId':_0x15be7c['id']})[_0x40e4cf(0x15e7)]['then'](function(_0x1f8cce){const _0x50f40a=_0x40e4cf,_0x240680=_0x28c606()[_0x50f40a(0x1de5)](_0x1f8cce[_0x50f40a(0x28b8)],function(_0x22b824){const _0x3b31a5=_0x50f40a;return _0x28c606()[_0x3b31a5(0x27bc)](_0x2ebad7['contexts'],{'id':_0x22b824[_0x3b31a5(0x145)]});});let _0x1617ef=null;_0x2ebad7['internalroute']&&(_0x1617ef=_0x28c606()['find'](_0x2ebad7[_0x50f40a(0xad1)],{'name':_0x2ebad7['internalroute'][_0x50f40a(0x139)]}));if(_0x1617ef&&!_0x28c606()[_0x50f40a(0x25f8)](_0x240680,['id',_0x1617ef['id']])){const _0x2ded94=_0x28c606()['find'](_0x2ebad7[_0x50f40a(0xad1)],{'id':_0x1617ef['id']});_0x2ded94[_0x50f40a(0xd4f)]=![],_0x240680[_0x50f40a(0x1954)](_0x2ded94);}_0x2ebad7[_0x50f40a(0xad1)]=_0x240680;});}})['catch'](function(_0x129260){const _0x41568b=_0x15fe75;_0x162d5c[_0x41568b(0x1bd0)]({'title':_0x129260[_0x41568b(0x10b3)]?_0x41568b(0x575)+_0x129260['status']+_0x41568b(0x21db)+_0x129260['statusText']:_0x41568b(0x184b),'msg':_0x129260['data']?JSON[_0x41568b(0x2317)](_0x129260[_0x41568b(0x1c52)]):_0x129260[_0x41568b(0x2915)]()});});function _0x1dd823(_0x19b518){_0x395ad9['go']('app.voice.internalroutes.edit',{'id':_0x19b518['id'],'internalroute':_0x19b518,'crudPermissions':_0x2ebad7['crudPermissions']});}function _0x147cb0(_0x361529,_0x4b280e){const _0x5e7b1e=_0x15fe75,_0x28d1cd=_0x1e0b8a[_0x5e7b1e(0x856)]()[_0x5e7b1e(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()[_0x5e7b1e(0xc01)](_0x5e7b1e(0x18b9))+'?')[_0x5e7b1e(0x33a)](_0x5e7b1e(0x50b)+(_0x361529[_0x5e7b1e(0x2494)]||_0x5e7b1e(0x18b9))+_0x5e7b1e(0x26d0)+_0x5e7b1e(0x4b8))[_0x5e7b1e(0x213e)](_0x5e7b1e(0x2701))[_0x5e7b1e(0x2283)](_0x4b280e)['ok']('OK')['cancel']('CANCEL');_0x1e0b8a[_0x5e7b1e(0xa60)](_0x28d1cd)[_0x5e7b1e(0x64a)](function(){_0x1ae5e5(_0x361529);},function(){const _0x13d2f4=_0x5e7b1e;console['log'](_0x13d2f4(0x18fd));});}let _0x580939=!![],_0x28e483=0x1;_0xf4b7b9[_0x15fe75(0xc62)](_0x15fe75(0x1cb9),function(_0xd45384,_0x40c3a1){const _0x5a1a03=_0x15fe75;_0x580939?_0x556f76(function(){_0x580939=![];}):(!_0x40c3a1&&(_0x28e483=_0x2ebad7['query'][_0x5a1a03(0xc72)]),_0xd45384!==_0x40c3a1&&(_0x2ebad7[_0x5a1a03(0x289a)][_0x5a1a03(0xc72)]=0x1),!_0xd45384&&(_0x2ebad7['query']['page']=_0x28e483),_0x2ebad7[_0x5a1a03(0x2438)]());});function _0x376ce5(_0xb47737){const _0x1cc77c=_0x15fe75;_0x2ebad7[_0x1cc77c(0x1cae)]=_0xb47737||{'count':0x0,'rows':[]};}function _0x12e626(){const _0x54811f=_0x15fe75;_0x2ebad7[_0x54811f(0x289a)][_0x54811f(0x24f9)]=(_0x2ebad7[_0x54811f(0x289a)][_0x54811f(0xc72)]-0x1)*_0x2ebad7['query'][_0x54811f(0x25bb)],_0x93e75[_0x54811f(0x4de)](_0x54811f(0x333))?_0x2ebad7[_0x54811f(0x1713)]=_0x5c7c09[_0x54811f(0x1438)]['get'](_0x2ebad7[_0x54811f(0x289a)],_0x376ce5)[_0x54811f(0x15e7)]:(_0x2ebad7[_0x54811f(0x289a)]['id']=_0x2ebad7[_0x54811f(0x16a8)]['id'],_0x2ebad7[_0x54811f(0x289a)]['section']=_0x54811f(0x18d2),_0x2ebad7[_0x54811f(0x1713)]=_0x5c7c09[_0x54811f(0x16a8)]['getResources'](_0x2ebad7[_0x54811f(0x289a)],_0x376ce5)[_0x54811f(0x15e7)]);}function _0x575421(_0x5f3b83,_0x59d3bf){const _0x23d842=_0x15fe75;_0x1e0b8a[_0x23d842(0xa60)]({'controller':'CreateOrEditInternalRouteDialogController','controllerAs':'vm','templateUrl':_0x37b3cc,'parent':angular['element'](_0x2adb4d[_0x23d842(0xb49)]),'targetEvent':_0x5f3b83,'clickOutsideToClose':!![],'locals':{'internalroute':_0x59d3bf,'internalroutes':_0x2ebad7[_0x23d842(0x1cae)][_0x23d842(0x28b8)],'license':_0x2ebad7[_0x23d842(0x1947)],'setting':_0x2ebad7['setting'],'crudPermissions':_0x2ebad7['crudPermissions']}});}function _0x1ae5e5(_0x56f355){const _0x4572c4=_0x15fe75;_0x5c7c09[_0x4572c4(0x1438)]['delete']({'id':_0x56f355['id']})[_0x4572c4(0x15e7)][_0x4572c4(0x64a)](function(){const _0x42cfb4=_0x4572c4;_0x28c606()['remove'](_0x2ebad7[_0x42cfb4(0x1cae)][_0x42cfb4(0x28b8)],{'id':_0x56f355['id']}),_0x2ebad7[_0x42cfb4(0x1cae)][_0x42cfb4(0xb90)]-=0x1,!_0x2ebad7[_0x42cfb4(0x1cae)][_0x42cfb4(0x28b8)][_0x42cfb4(0x1b9e)]&&_0x2ebad7[_0x42cfb4(0x2438)](),_0x162d5c[_0x42cfb4(0x1339)]({'title':_0x28c606()[_0x42cfb4(0xc01)](_0x42cfb4(0x1282))+_0x42cfb4(0x2502),'msg':_0x56f355['name']?_0x56f355[_0x42cfb4(0x2494)]+'\x20has\x20been\x20deleted!':''});})[_0x4572c4(0x20cd)](function(_0x190ef0){const _0x250c47=_0x4572c4;if(_0x190ef0['data']&&_0x190ef0[_0x250c47(0x1c52)][_0x250c47(0xbae)]&&_0x190ef0[_0x250c47(0x1c52)][_0x250c47(0xbae)][_0x250c47(0x1b9e)]){_0x2ebad7[_0x250c47(0xbae)]=_0x190ef0[_0x250c47(0x1c52)]['errors']||[{'message':_0x190ef0[_0x250c47(0x2915)](),'type':'SYSTEM:DELETEvoiceExtension'}];for(let _0x9ce5c8=0x0;_0x9ce5c8<_0x190ef0[_0x250c47(0x1c52)][_0x250c47(0xbae)][_0x250c47(0x1b9e)];_0x9ce5c8++){_0x162d5c[_0x250c47(0x1bd0)]({'title':_0x190ef0[_0x250c47(0x1c52)][_0x250c47(0xbae)][_0x9ce5c8][_0x250c47(0x2185)],'msg':_0x190ef0[_0x250c47(0x1c52)][_0x250c47(0xbae)][_0x9ce5c8][_0x250c47(0x18ca)]});}}else _0x162d5c[_0x250c47(0x1bd0)]({'title':_0x190ef0[_0x250c47(0x10b3)]?_0x250c47(0x575)+_0x190ef0['status']+_0x250c47(0x21db)+_0x190ef0[_0x250c47(0x2115)]:_0x250c47(0x278b),'msg':_0x190ef0['data']?JSON[_0x250c47(0x2317)](_0x190ef0['data'][_0x250c47(0x18ca)]):_0x190ef0[_0x250c47(0x18ca)]||_0x190ef0[_0x250c47(0x2915)]()});});}function _0x4e7067(){const _0xa9d087=_0x15fe75,_0x27efde=angular[_0xa9d087(0x289e)](_0x2ebad7[_0xa9d087(0x35a)]);return _0x2ebad7[_0xa9d087(0x35a)]=[],_0x27efde;}function _0x589df9(_0x10c06e){const _0x304510=_0x15fe75,_0x38b300=_0x1e0b8a[_0x304510(0x856)]()['title'](_0x304510(0x785))[_0x304510(0x33a)](_0x304510(0x50b)+_0x2ebad7[_0x304510(0x35a)]['length']+_0x304510(0x163e)+_0x304510(0x4b8))[_0x304510(0x213e)](_0x304510(0x684))[_0x304510(0x2283)](_0x10c06e)['ok']('OK')[_0x304510(0x101a)](_0x304510(0x18fd));_0x1e0b8a['show'](_0x38b300)['then'](function(){_0x2ebad7['selectedInternalRoutes']['forEach'](function(_0x2ec1d3){_0x1ae5e5(_0x2ec1d3);}),_0x2ebad7['selectedInternalRoutes']=[];});}function _0x261d54(){const _0x3b1089=_0x15fe75;_0x2ebad7[_0x3b1089(0x35a)]=[];}function _0x2d715a(){const _0x55ea65=_0x15fe75;_0x2ebad7[_0x55ea65(0x35a)]=_0x2ebad7[_0x55ea65(0x1cae)][_0x55ea65(0x28b8)];}}const _0xd9bd8e=_0x437ffa;;_0x20d1b8[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location','$mdDialog','$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x9e4),_0x49a1e3(0x2082),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x20d1b8(_0xd2505,_0x555c95,_0x48a069,_0x52df6b,_0x6b81bf,_0x18e572,_0x26d511,_0x359ac5,_0x2273b1,_0x1eff76,_0x11769e,_0x7d189d,_0x124531,_0x49a821){const _0x5af02f=_0x49a1e3,_0x287550=this;_0x287550['currentUser']=_0x11769e['getCurrentUser'](),_0x287550[_0x5af02f(0xbae)]=[],_0x287550['setting']=_0x124531,_0x287550['license']=_0x7d189d,_0x287550['crudPermissions']=_0x49a821,_0x287550[_0x5af02f(0x6c2)]={},_0x287550[_0x5af02f(0xccc)]=_0x287550[_0x5af02f(0x28d6)]&&_0x287550[_0x5af02f(0x28d6)][_0x5af02f(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x287550['title']=_0x5af02f(0xd3c),_0x287550[_0x5af02f(0x2082)]=angular[_0x5af02f(0x289e)](_0x2273b1),_0x287550[_0x5af02f(0x9e4)]=_0x359ac5,_0x287550[_0x5af02f(0x19a4)]=![];!_0x287550[_0x5af02f(0x2082)]&&(_0x287550[_0x5af02f(0x2082)]={'mode':_0x5af02f(0x4ec)},_0x287550[_0x5af02f(0x2021)]=_0x5af02f(0x365),_0x287550[_0x5af02f(0x19a4)]=!![]);_0x287550[_0x5af02f(0x1a83)]=_0x49e066,_0x287550[_0x5af02f(0x1cc7)]=_0x13431a,_0x287550['deleteMusicOnHold']=_0x16e8d3,_0x287550[_0x5af02f(0x1605)]=_0x6f2acb,_0x287550[_0x5af02f(0x16cb)]=_0x522e7e;function _0x49e066(){const _0xbc33d1=_0x5af02f;_0x287550[_0xbc33d1(0xbae)]=[],_0x1eff76[_0xbc33d1(0x1b55)][_0xbc33d1(0x2479)](_0x287550[_0xbc33d1(0x2082)])[_0xbc33d1(0x15e7)][_0xbc33d1(0x64a)](function(_0x280f22){const _0x1c7610=_0xbc33d1;_0x287550[_0x1c7610(0x9e4)][_0x1c7610(0x1891)](_0x280f22[_0x1c7610(0x14f8)]()),_0x26d511[_0x1c7610(0x1339)]({'title':'MusicOnHold\x20properly\x20created','msg':_0x287550[_0x1c7610(0x2082)][_0x1c7610(0x2494)]?_0x287550[_0x1c7610(0x2082)][_0x1c7610(0x2494)]+_0x1c7610(0x258d):''}),_0x522e7e(_0x280f22);})[_0xbc33d1(0x20cd)](function(_0x5f4d1b){const _0x1fcec6=_0xbc33d1;if(_0x5f4d1b[_0x1fcec6(0x1c52)]&&_0x5f4d1b[_0x1fcec6(0x1c52)][_0x1fcec6(0xbae)]&&_0x5f4d1b[_0x1fcec6(0x1c52)]['errors'][_0x1fcec6(0x1b9e)]){_0x287550['errors']=_0x5f4d1b[_0x1fcec6(0x1c52)][_0x1fcec6(0xbae)]||[{'message':_0x5f4d1b[_0x1fcec6(0x2915)](),'type':'api.voiceMusicOnHold.save'}];for(let _0x53dccd=0x0;_0x53dccd<_0x5f4d1b[_0x1fcec6(0x1c52)][_0x1fcec6(0xbae)][_0x1fcec6(0x1b9e)];_0x53dccd+=0x1){_0x26d511[_0x1fcec6(0x1bd0)]({'title':_0x5f4d1b[_0x1fcec6(0x1c52)]['errors'][_0x53dccd][_0x1fcec6(0x2185)],'msg':_0x5f4d1b['data']['errors'][_0x53dccd]['message']});}}else _0x26d511[_0x1fcec6(0x1bd0)]({'title':_0x5f4d1b[_0x1fcec6(0x10b3)]?_0x1fcec6(0x575)+_0x5f4d1b[_0x1fcec6(0x10b3)]+_0x1fcec6(0x21db)+_0x5f4d1b[_0x1fcec6(0x2115)]:_0x1fcec6(0xe5a),'msg':_0x5f4d1b[_0x1fcec6(0x1c52)]?JSON[_0x1fcec6(0x2317)](_0x5f4d1b[_0x1fcec6(0x1c52)][_0x1fcec6(0x18ca)]):_0x5f4d1b[_0x1fcec6(0x2915)]()});});}function _0x13431a(){const _0x3ba2ea=_0x5af02f;_0x287550[_0x3ba2ea(0xbae)]=[],_0x1eff76[_0x3ba2ea(0x1b55)][_0x3ba2ea(0x2603)]({'id':_0x287550[_0x3ba2ea(0x2082)]['id']},_0x287550[_0x3ba2ea(0x2082)])[_0x3ba2ea(0x15e7)][_0x3ba2ea(0x64a)](function(_0x24c584){const _0x40c46c=_0x3ba2ea,_0x29e627=_0x28c606()[_0x40c46c(0x27bc)](_0x287550['musiconholds'],{'id':_0x24c584['id']});_0x29e627&&_0x28c606()['merge'](_0x29e627,_0x28c606()[_0x40c46c(0x27bb)](_0x24c584[_0x40c46c(0x14f8)](),_0x28c606()['keys'](_0x29e627))),_0x26d511['success']({'title':_0x40c46c(0x53a),'msg':_0x287550[_0x40c46c(0x2082)][_0x40c46c(0x2494)]?_0x287550[_0x40c46c(0x2082)][_0x40c46c(0x2494)]+_0x40c46c(0x271):''}),_0x522e7e(_0x24c584);})['catch'](function(_0x10184a){const _0xe24fb8=_0x3ba2ea;if(_0x10184a[_0xe24fb8(0x1c52)]&&_0x10184a[_0xe24fb8(0x1c52)][_0xe24fb8(0xbae)]&&_0x10184a[_0xe24fb8(0x1c52)]['errors']['length']){_0x287550[_0xe24fb8(0xbae)]=_0x10184a[_0xe24fb8(0x1c52)]['errors']||[{'message':_0x10184a['toString'](),'type':_0xe24fb8(0x1a68)}];for(let _0x120eee=0x0;_0x120eee<_0x10184a['data'][_0xe24fb8(0xbae)][_0xe24fb8(0x1b9e)];_0x120eee++){_0x26d511[_0xe24fb8(0x1bd0)]({'title':_0x10184a[_0xe24fb8(0x1c52)]['errors'][_0x120eee][_0xe24fb8(0x2185)],'msg':_0x10184a[_0xe24fb8(0x1c52)][_0xe24fb8(0xbae)][_0x120eee]['message']});}}else _0x26d511[_0xe24fb8(0x1bd0)]({'title':_0x10184a['status']?_0xe24fb8(0x575)+_0x10184a[_0xe24fb8(0x10b3)]+'\x20-\x20'+_0x10184a[_0xe24fb8(0x2115)]:_0xe24fb8(0x1a68),'msg':_0x10184a['data']?JSON['stringify'](_0x10184a[_0xe24fb8(0x1c52)]['message']):_0x10184a['toString']()});});}function _0x16e8d3(_0x473c3e){const _0x1eb521=_0x5af02f;_0x287550[_0x1eb521(0xbae)]=[];const _0x1eb04f=_0x52df6b[_0x1eb521(0x856)]()['title'](_0x1eb521(0x103a))['content'](_0x1eb521(0x725))['ariaLabel'](_0x1eb521(0x4e4))['ok'](_0x1eb521(0x2664))['cancel'](_0x1eb521(0x1dc6))[_0x1eb521(0x2283)](_0x473c3e);_0x52df6b[_0x1eb521(0xa60)](_0x1eb04f)[_0x1eb521(0x64a)](function(){const _0x1e573c=_0x1eb521;_0x1eff76[_0x1e573c(0x1b55)][_0x1e573c(0xabd)]({'id':_0x287550[_0x1e573c(0x2082)]['id']})[_0x1e573c(0x15e7)][_0x1e573c(0x64a)](function(){const _0x3b22dc=_0x1e573c;_0x28c606()[_0x3b22dc(0x21c7)](_0x287550['musiconholds'],{'id':_0x287550[_0x3b22dc(0x2082)]['id']}),_0x26d511['success']({'title':'MusicOnHold\x20properly\x20deleted!','msg':(_0x287550[_0x3b22dc(0x2082)][_0x3b22dc(0x2494)]||_0x3b22dc(0x2082))+_0x3b22dc(0x1fa8)}),_0x522e7e(_0x287550['musiconhold']);})[_0x1e573c(0x20cd)](function(_0x5ecf2c){const _0x193ba8=_0x1e573c;if(_0x5ecf2c[_0x193ba8(0x1c52)]&&_0x5ecf2c[_0x193ba8(0x1c52)][_0x193ba8(0xbae)]&&_0x5ecf2c[_0x193ba8(0x1c52)][_0x193ba8(0xbae)]['length']){_0x287550['errors']=_0x5ecf2c[_0x193ba8(0x1c52)]['errors']||[{'message':_0x5ecf2c['toString'](),'type':_0x193ba8(0x20ed)}];for(let _0x4863c1=0x0;_0x4863c1<_0x5ecf2c[_0x193ba8(0x1c52)][_0x193ba8(0xbae)][_0x193ba8(0x1b9e)];_0x4863c1++){_0x26d511[_0x193ba8(0x1bd0)]({'title':_0x5ecf2c[_0x193ba8(0x1c52)][_0x193ba8(0xbae)][_0x4863c1][_0x193ba8(0x2185)],'msg':_0x5ecf2c[_0x193ba8(0x1c52)]['errors'][_0x4863c1][_0x193ba8(0x18ca)]});}}else _0x26d511[_0x193ba8(0x1bd0)]({'title':_0x5ecf2c[_0x193ba8(0x10b3)]?_0x193ba8(0x575)+_0x5ecf2c[_0x193ba8(0x10b3)]+_0x193ba8(0x21db)+_0x5ecf2c[_0x193ba8(0x2115)]:'api.voiceMusicOnHold.delete','msg':_0x5ecf2c['data']?JSON[_0x193ba8(0x2317)](_0x5ecf2c[_0x193ba8(0x1c52)][_0x193ba8(0x18ca)]):_0x5ecf2c['message']||_0x5ecf2c['toString']()});});},function(){});}function _0x6f2acb(_0x73ab14){return _0x73ab14===null?undefined:new Date(_0x73ab14);}function _0x522e7e(_0x1985ed){const _0x5aba31=_0x5af02f;_0x52df6b[_0x5aba31(0x268e)](_0x1985ed);}}const _0x3a0aa3=_0x20d1b8;;const _0x625815=_0x2e4a48['p']+_0x49a1e3(0x28d5);;_0x3ce09a[_0x49a1e3(0x1e73)]=['$cookies',_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x20d4),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x680),'api',_0x49a1e3(0xdcf)];function _0x3ce09a(_0x18f129,_0x5aa996,_0xd07c43,_0x1c023d,_0x24e4bb,_0xd12f2f,_0x357888,_0x3cccbf,_0x579423,_0x475272,_0x1de5fc){const _0x111576=_0x49a1e3,_0xaa59c0=this;_0xaa59c0[_0x111576(0x1d3d)]=_0x1de5fc[_0x111576(0x808)](),_0xaa59c0[_0x111576(0x2082)]={},_0xaa59c0['musiconholdMohSounds']={'count':0x0,'rows':[]},_0xaa59c0[_0x111576(0x1baf)]=[],_0xaa59c0[_0x111576(0x402)],_0xaa59c0['query']={'fields':_0x111576(0x1a30),'limit':0xa,'page':0x1},_0xaa59c0[_0x111576(0x2354)]=_0x10bd17,_0xaa59c0[_0x111576(0x217e)]=_0x775c3f,_0xaa59c0[_0x111576(0x1a79)]=_0x15412d,_0xaa59c0[_0x111576(0x1339)]=_0x5d89c2,_0xaa59c0[_0x111576(0x261)]=_0x569cc5,_0xaa59c0[_0x111576(0x11e)]=_0x20fdda,_0xaa59c0[_0x111576(0x234b)]=_0x23a9b4,_0xaa59c0[_0x111576(0x219f)]=_0x1b7342,_0xaa59c0[_0x111576(0xd38)]=_0x53429f,_0x1de5fc[_0x111576(0x4de)](_0x111576(0x333))?_0x475272[_0x111576(0x282b)][_0x111576(0x896)]({'fields':_0x111576(0x1427),'sort':_0x111576(0x2494)})['$promise'][_0x111576(0x64a)](function(_0x1e9f95){const _0x3af7aa=_0x111576;_0xaa59c0[_0x3af7aa(0x16df)]=_0x1e9f95[_0x3af7aa(0x28b8)]||[];})[_0x111576(0x20cd)](function(_0x34b55c){const _0x560d7f=_0x111576;_0x579423[_0x560d7f(0x1bd0)]({'title':_0x34b55c[_0x560d7f(0x10b3)]?_0x560d7f(0x575)+_0x34b55c[_0x560d7f(0x10b3)]+'\x20-\x20'+_0x34b55c[_0x560d7f(0x2115)]:_0x560d7f(0x63b),'msg':_0x34b55c['data']?JSON[_0x560d7f(0x2317)](_0x34b55c[_0x560d7f(0x1c52)]):_0x34b55c[_0x560d7f(0x2915)]()});}):_0x475272['sound'][_0x111576(0x896)]({'fields':_0x111576(0x1427),'sort':'name'})[_0x111576(0x15e7)]['then'](function(_0x5e9602){const _0x267b0a=_0x111576;_0xaa59c0[_0x267b0a(0x16df)]=_0x5e9602[_0x267b0a(0x28b8)]||[];})['then'](function(){const _0x29ce28=_0x111576;return _0x475272[_0x29ce28(0x16b2)][_0x29ce28(0x896)]({'userProfileId':_0xaa59c0[_0x29ce28(0x1d3d)][_0x29ce28(0x21ac)],'sectionId':0x3ef})[_0x29ce28(0x15e7)];})['then'](function(_0x46624d){const _0x1ad2f5=_0x111576,_0x806caa=_0x46624d&&_0x46624d['rows']?_0x46624d['rows'][0x0]:null;if(!_0x806caa){const _0x522afc=[];let _0x12a00d=null;_0xaa59c0[_0x1ad2f5(0x2082)]&&(_0x12a00d=_0x28c606()[_0x1ad2f5(0x27bc)](_0xaa59c0[_0x1ad2f5(0x16df)],{'id':Number(_0xaa59c0[_0x1ad2f5(0x2082)]['id'])}));for(let _0x1098df=0x0;_0x1098df<_0xaa59c0[_0x1ad2f5(0x16df)]['length'];_0x1098df++){_0x12a00d&&_0xaa59c0[_0x1ad2f5(0x16df)][_0x1098df]['id']===_0x12a00d['id']&&(_0xaa59c0[_0x1ad2f5(0x16df)][_0x1098df]['canSelect']=![],_0x522afc['push'](_0xaa59c0[_0x1ad2f5(0x16df)][_0x1098df]));}_0xaa59c0['sounds']=_0x522afc;}else{if(!_0x806caa[_0x1ad2f5(0x11da)])return _0x475272['userProfileResource'][_0x1ad2f5(0x896)]({'sectionId':_0x806caa['id']})['$promise'][_0x1ad2f5(0x64a)](function(_0x3d2aa9){const _0x1cbb19=_0x1ad2f5,_0x379a29=_0x28c606()['map'](_0x3d2aa9[_0x1cbb19(0x28b8)],function(_0x1fd958){const _0xfe6530=_0x1cbb19;return _0x28c606()[_0xfe6530(0x27bc)](_0xaa59c0[_0xfe6530(0x16df)],{'id':_0x1fd958[_0xfe6530(0x145)]});});let _0x50d502=null;_0xaa59c0[_0x1cbb19(0x2082)]&&(_0x50d502=_0x28c606()[_0x1cbb19(0x27bc)](_0xaa59c0[_0x1cbb19(0x16df)],{'id':Number(_0xaa59c0[_0x1cbb19(0x2082)]['id'])}));if(_0x50d502&&!_0x28c606()['some'](_0x379a29,['id',_0x50d502['id']])){const _0x21a61d=_0x28c606()[_0x1cbb19(0x27bc)](_0xaa59c0[_0x1cbb19(0x16df)],{'id':_0x50d502['id']});_0x21a61d[_0x1cbb19(0xd4f)]=![],_0x379a29[_0x1cbb19(0x1954)](_0x21a61d);}_0xaa59c0[_0x1cbb19(0x16df)]=_0x379a29;});}})[_0x111576(0x20cd)](function(_0x1ceaf7){const _0x22e761=_0x111576;_0x579423[_0x22e761(0x1bd0)]({'title':_0x1ceaf7['status']?'API:'+_0x1ceaf7[_0x22e761(0x10b3)]+_0x22e761(0x21db)+_0x1ceaf7[_0x22e761(0x2115)]:_0x22e761(0x1655),'msg':_0x1ceaf7[_0x22e761(0x1c52)]?JSON[_0x22e761(0x2317)](_0x1ceaf7[_0x22e761(0x1c52)]):_0x1ceaf7[_0x22e761(0x2915)]()});});function _0x10bd17(_0x1b4c16,_0x3dea7b){const _0x477bee=_0x111576;_0xaa59c0['musiconhold']=_0x1b4c16,_0xaa59c0[_0x477bee(0x402)]=typeof _0x3dea7b!=='undefined'?_0x3dea7b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xaa59c0[_0x477bee(0x289a)][_0x477bee(0x49b)]=_0xaa59c0[_0x477bee(0x2082)]['id'],_0xaa59c0[_0x477bee(0x289a)]['id']=_0xaa59c0[_0x477bee(0x2082)]['id'],_0x569cc5();}function _0x15412d(_0x41b6fb,_0x5c42ba,_0x4dfd15){const _0x4d8c16=_0x111576;return _0x475272[_0x4d8c16(0x282b)]['download']({'id':_0x41b6fb['id'],'exists':!![],'attachments':_0x4dfd15})[_0x4d8c16(0x15e7)][_0x4d8c16(0x64a)](function(_0x49882f){const _0x395934=_0x4d8c16,_0x298972=[_0x49882f[_0x395934(0x5a9)]];let _0x37686c='mohSound'+_0x41b6fb['id'];const _0x2d80a1=new Blob(_0x298972,{'type':_0x49882f[_0x395934(0x2185)]});_0x37686c=_0x41b6fb[_0x395934(0x1dac)]?_0x41b6fb[_0x395934(0x962)]+'.'+_0x41b6fb[_0x395934(0x1dac)]:_0x41b6fb[_0x395934(0x962)];const _0xd13bb1=window[_0x395934(0x123f)][_0x395934(0x2978)]('a');_0xd13bb1[_0x395934(0x1280)](_0x395934(0x25d0),URL[_0x395934(0x206)](_0x2d80a1)),_0xd13bb1['setAttribute'](_0x395934(0x19b3),_0x37686c),document['body'][_0x395934(0x2661)](_0xd13bb1),_0xd13bb1[_0x395934(0x2668)]();})[_0x4d8c16(0x20cd)](function(_0x12630b){const _0x253608=_0x4d8c16;if(_0x12630b[_0x253608(0x1c52)]&&_0x12630b[_0x253608(0x1c52)][_0x253608(0xbae)]&&_0x12630b['data'][_0x253608(0xbae)][_0x253608(0x1b9e)])for(let _0x49b8c1=0x0;_0x49b8c1<_0x12630b[_0x253608(0x1c52)][_0x253608(0xbae)][_0x253608(0x1b9e)];_0x49b8c1+=0x1){_0x579423[_0x253608(0x1bd0)]({'title':_0x12630b[_0x253608(0x1c52)][_0x253608(0xbae)][_0x49b8c1][_0x253608(0x2185)],'msg':_0x12630b[_0x253608(0x1c52)][_0x253608(0xbae)][_0x49b8c1]['message']});}else _0x579423[_0x253608(0x1bd0)]({'title':_0x12630b[_0x253608(0x10b3)]?'API:'+_0x12630b[_0x253608(0x10b3)]+_0x253608(0x21db)+_0x12630b[_0x253608(0x2115)]:_0x253608(0xe5a),'msg':_0x12630b[_0x253608(0x1c52)]?JSON[_0x253608(0x2317)](_0x12630b['data'][_0x253608(0x18ca)]):_0x12630b[_0x253608(0x2915)]()});});}function _0x775c3f(_0xb9bbb6,_0x5c860b){const _0x591606=_0x111576,_0x36cdec=_0x357888['confirm']()[_0x591606(0x2021)](_0x591606(0x1c02))['htmlContent'](_0x591606(0x50b)+(_0xb9bbb6[_0x591606(0x2494)]||_0xb9bbb6['id']&&_0x28c606()[_0x591606(0x1766)](_0x591606(0x2414))+_0xb9bbb6['id']||_0x591606(0x6f5))+_0x591606(0x26d0)+_0x591606(0x4b8))[_0x591606(0x213e)](_0x591606(0x1ca2))[_0x591606(0x2283)](_0x5c860b)['ok']('OK')[_0x591606(0x101a)](_0x591606(0x18fd));_0x357888[_0x591606(0xa60)](_0x36cdec)[_0x591606(0x64a)](function(){_0x1b7342(_0xb9bbb6);},function(){const _0x101ea8=_0x591606;console[_0x101ea8(0x9b4)]('CANCEL');});}function _0x5d89c2(_0x2fcdb1){const _0x144c20=_0x111576;_0xaa59c0[_0x144c20(0x175f)]=_0x2fcdb1||{'count':0x0,'rows':[]};}function _0x569cc5(){const _0x1bf959=_0x111576;_0xaa59c0[_0x1bf959(0x289a)][_0x1bf959(0x24f9)]=(_0xaa59c0['query']['page']-0x1)*_0xaa59c0[_0x1bf959(0x289a)][_0x1bf959(0x25bb)],_0xaa59c0['promise']=_0x475272['voiceMusicOnHold'][_0x1bf959(0x1e15)](_0xaa59c0['query'],_0x5d89c2)[_0x1bf959(0x15e7)];}function _0x20fdda(_0x197922,_0x3d253d){const _0xa4e6d1=_0x111576;_0x357888[_0xa4e6d1(0xa60)]({'controller':_0xa4e6d1(0x1dba),'controllerAs':'vm','templateUrl':_0x625815,'parent':angular[_0xa4e6d1(0x1f81)](_0x3cccbf[_0xa4e6d1(0xb49)]),'targetEvent':_0x197922,'clickOutsideToClose':!![],'locals':{'musiconhold':_0xaa59c0[_0xa4e6d1(0x2082)],'mohSound':_0x3d253d,'mohSounds':_0xaa59c0[_0xa4e6d1(0x175f)][_0xa4e6d1(0x28b8)],'license':null,'setting':null,'crudPermissions':_0xaa59c0['crudPermissions']}});}function _0x1b7342(_0x519012){const _0x45b430=_0x111576;_0x475272[_0x45b430(0x1b55)][_0x45b430(0x8e0)]({'id':_0xd07c43[_0x45b430(0x1b48)]['id'],'id2':_0x519012['id']})['$promise'][_0x45b430(0x64a)](function(){const _0x101054=_0x45b430;_0x28c606()[_0x101054(0x21c7)](_0xaa59c0['musiconholdMohSounds'][_0x101054(0x28b8)],{'id':_0x519012['id']}),_0xaa59c0[_0x101054(0x175f)][_0x101054(0xb90)]-=0x1,!_0xaa59c0[_0x101054(0x175f)][_0x101054(0x28b8)]['length']&&_0x569cc5(),_0x579423['success']({'title':_0x101054(0xd08),'msg':_0x519012[_0x101054(0x2494)]?_0x519012['name']+_0x101054(0x1fa8):''});})[_0x45b430(0x20cd)](function(_0x490b78){const _0x515b5a=_0x45b430;if(_0x490b78[_0x515b5a(0x1c52)]&&_0x490b78['data']['errors']&&_0x490b78['data']['errors']['length']){_0xaa59c0[_0x515b5a(0xbae)]=_0x490b78[_0x515b5a(0x1c52)][_0x515b5a(0xbae)]||[{'message':_0x490b78[_0x515b5a(0x2915)](),'type':_0x515b5a(0x1b60)}];for(let _0x3fb0d6=0x0;_0x3fb0d6<_0x490b78[_0x515b5a(0x1c52)][_0x515b5a(0xbae)][_0x515b5a(0x1b9e)];_0x3fb0d6++){_0x579423[_0x515b5a(0x1bd0)]({'title':_0x490b78[_0x515b5a(0x1c52)][_0x515b5a(0xbae)][_0x3fb0d6][_0x515b5a(0x2185)],'msg':_0x490b78['data']['errors'][_0x3fb0d6]['message']});}}else _0x579423[_0x515b5a(0x1bd0)]({'title':_0x490b78['status']?_0x515b5a(0x575)+_0x490b78[_0x515b5a(0x10b3)]+_0x515b5a(0x21db)+_0x490b78[_0x515b5a(0x2115)]:_0x515b5a(0x1b60),'msg':_0x490b78[_0x515b5a(0x1c52)]?JSON[_0x515b5a(0x2317)](_0x490b78[_0x515b5a(0x1c52)]['message']):_0x490b78['message']||_0x490b78['toString']()});});}function _0x23a9b4(){const _0x19bb56=_0x111576,_0x5c940d=angular[_0x19bb56(0x289e)](_0xaa59c0[_0x19bb56(0x1baf)]);return _0xaa59c0['selectedMusicOnHoldMohSounds']=[],_0x5c940d;}function _0x53429f(_0x36e793){const _0x6ac354=_0x111576,_0xc8e10f=_0x357888['confirm']()[_0x6ac354(0x2021)](_0x6ac354(0x69f))[_0x6ac354(0x33a)](_0x6ac354(0x50b)+_0xaa59c0[_0x6ac354(0x1baf)][_0x6ac354(0x1b9e)]+_0x6ac354(0x163e)+'\x20will\x20be\x20deleted.')[_0x6ac354(0x213e)](_0x6ac354(0x231c))[_0x6ac354(0x2283)](_0x36e793)['ok']('OK')['cancel'](_0x6ac354(0x18fd));_0x357888[_0x6ac354(0xa60)](_0xc8e10f)[_0x6ac354(0x64a)](function(){const _0xfad322=_0x6ac354;_0xaa59c0[_0xfad322(0x1baf)][_0xfad322(0x1397)](function(_0x8ee0e){_0x1b7342(_0x8ee0e);}),_0xaa59c0[_0xfad322(0x1baf)]=[];});}let _0x246b34=!![],_0x56deec=0x1;_0x5aa996[_0x111576(0xc62)]('vm_dc.query.filter',function(_0x120f8e,_0x5e1511){const _0x4a9ff5=_0x111576;_0x246b34?_0xd12f2f(function(){_0x246b34=![];}):(!_0x5e1511&&(_0x56deec=_0xaa59c0[_0x4a9ff5(0x289a)][_0x4a9ff5(0xc72)]),_0x120f8e!==_0x5e1511&&(_0xaa59c0[_0x4a9ff5(0x289a)][_0x4a9ff5(0xc72)]=0x1),!_0x120f8e&&(_0xaa59c0['query']['page']=_0x56deec),_0x569cc5());});}const _0x3f097b=_0x3ce09a;;_0x1f91cf[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),'toasty','mohSounds',_0x49a1e3(0x6f5),'api','Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x1f91cf(_0x53e9e4,_0x4dcb63,_0x4870a6,_0x1986ad,_0x22698e,_0x3e0531,_0x3d88ac,_0x84b45e,_0xfdd928,_0x1e457e,_0x2722f9,_0x1108d3,_0x38b17a,_0x46be8d){const _0x13da69=_0x49a1e3,_0x4024fc=this;_0x4024fc['currentUser']=_0x2722f9[_0x13da69(0x808)](),_0x4024fc[_0x13da69(0xbae)]=[],_0x4024fc[_0x13da69(0x28d6)]=_0x38b17a,_0x4024fc[_0x13da69(0x1947)]=_0x1108d3,_0x4024fc[_0x13da69(0x402)]=_0x46be8d,_0x4024fc[_0x13da69(0x6c2)]={},_0x4024fc[_0x13da69(0xccc)]=_0x4024fc[_0x13da69(0x28d6)]&&_0x4024fc[_0x13da69(0x28d6)][_0x13da69(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4024fc[_0x13da69(0x2021)]=_0x13da69(0x1d79),_0x4024fc[_0x13da69(0x6f5)]=angular['copy'](_0xfdd928),_0x4024fc[_0x13da69(0x137e)]=_0x84b45e,_0x4024fc[_0x13da69(0x1fca)]=![];!_0x4024fc[_0x13da69(0x6f5)]&&(_0x4024fc['mohSound']={},_0x4024fc[_0x13da69(0x2021)]=_0x13da69(0x1963),_0x4024fc[_0x13da69(0x1fca)]=!![]);_0x4dcb63[_0x13da69(0x1b48)]['id']&&(_0x4024fc[_0x13da69(0x6f5)][_0x13da69(0x49b)]=_0x4dcb63[_0x13da69(0x1b48)]['id']);_0x4024fc[_0x13da69(0xed9)]=_0x2c4497,_0x4024fc[_0x13da69(0xb2e)]=_0x2833ac,_0x4024fc['deleteMohSound']=_0x26184b,_0x4024fc[_0x13da69(0x1605)]=_0x53d02a,_0x4024fc['closeDialog']=_0x5cd3e5,_0x2722f9[_0x13da69(0x4de)](_0x13da69(0x333))?_0x1e457e[_0x13da69(0x282b)]['get']({'fields':_0x13da69(0x1427),'sort':_0x13da69(0x2494)})[_0x13da69(0x15e7)][_0x13da69(0x64a)](function(_0x1a480f){const _0x2eefa6=_0x13da69;_0x4024fc[_0x2eefa6(0x16df)]=_0x1a480f['rows']||[];})[_0x13da69(0x20cd)](function(_0x36173b){const _0x11796f=_0x13da69;_0x3d88ac[_0x11796f(0x1bd0)]({'title':_0x36173b[_0x11796f(0x10b3)]?'API:'+_0x36173b[_0x11796f(0x10b3)]+_0x11796f(0x21db)+_0x36173b['statusText']:'SYSTEM:GET_SOUNDS','msg':_0x36173b[_0x11796f(0x1c52)]?JSON[_0x11796f(0x2317)](_0x36173b['data']):_0x36173b[_0x11796f(0x2915)]()});}):_0x1e457e[_0x13da69(0x282b)][_0x13da69(0x896)]({'fields':_0x13da69(0x1427),'sort':_0x13da69(0x2494)})['$promise'][_0x13da69(0x64a)](function(_0x4d5416){const _0x3e94ab=_0x13da69;_0x4024fc[_0x3e94ab(0x16df)]=_0x4d5416[_0x3e94ab(0x28b8)]||[];})['then'](function(){const _0x56a5c4=_0x13da69;return _0x1e457e[_0x56a5c4(0x16b2)][_0x56a5c4(0x896)]({'userProfileId':_0x4024fc[_0x56a5c4(0x1d3d)][_0x56a5c4(0x21ac)],'sectionId':0x3ef})[_0x56a5c4(0x15e7)];})[_0x13da69(0x64a)](function(_0x3d8ed1){const _0xf33f67=_0x13da69,_0x42971d=_0x3d8ed1&&_0x3d8ed1[_0xf33f67(0x28b8)]?_0x3d8ed1[_0xf33f67(0x28b8)][0x0]:null;if(!_0x42971d){const _0x4431e0=[];let _0x4a93d8=null;_0x4024fc[_0xf33f67(0x6f5)]&&(_0x4a93d8=_0x28c606()[_0xf33f67(0x27bc)](_0x4024fc[_0xf33f67(0x16df)],{'id':Number(_0x4024fc[_0xf33f67(0x6f5)]['id'])}));for(let _0x178c58=0x0;_0x178c58<_0x4024fc['sounds'][_0xf33f67(0x1b9e)];_0x178c58++){_0x4a93d8&&_0x4024fc[_0xf33f67(0x16df)][_0x178c58]['id']===_0x4a93d8['id']&&(_0x4024fc[_0xf33f67(0x16df)][_0x178c58][_0xf33f67(0xd4f)]=![],_0x4431e0[_0xf33f67(0x1954)](_0x4024fc[_0xf33f67(0x16df)][_0x178c58]));}_0x4024fc[_0xf33f67(0x16df)]=_0x4431e0;}else{if(!_0x42971d[_0xf33f67(0x11da)])return _0x1e457e[_0xf33f67(0x1617)][_0xf33f67(0x896)]({'sectionId':_0x42971d['id']})[_0xf33f67(0x15e7)][_0xf33f67(0x64a)](function(_0x458069){const _0x2f9648=_0xf33f67,_0x1edfb6=_0x28c606()[_0x2f9648(0x1de5)](_0x458069[_0x2f9648(0x28b8)],function(_0x563eb5){const _0x1600b1=_0x2f9648;return _0x28c606()[_0x1600b1(0x27bc)](_0x4024fc['sounds'],{'id':_0x563eb5[_0x1600b1(0x145)]});});let _0x50bbfc=null;_0x4024fc['mohSound']&&(_0x50bbfc=_0x28c606()['find'](_0x4024fc[_0x2f9648(0x16df)],{'id':Number(_0x4024fc[_0x2f9648(0x6f5)]['id'])}));if(_0x50bbfc&&!_0x28c606()[_0x2f9648(0x25f8)](_0x1edfb6,['id',_0x50bbfc['id']])){const _0x479d50=_0x28c606()[_0x2f9648(0x27bc)](_0x4024fc[_0x2f9648(0x16df)],{'id':_0x50bbfc['id']});_0x479d50[_0x2f9648(0xd4f)]=![],_0x1edfb6[_0x2f9648(0x1954)](_0x479d50);}_0x4024fc['sounds']=_0x1edfb6;});}})['catch'](function(_0x50e1b2){const _0x2c8733=_0x13da69;_0x3d88ac[_0x2c8733(0x1bd0)]({'title':_0x50e1b2[_0x2c8733(0x10b3)]?_0x2c8733(0x575)+_0x50e1b2['status']+'\x20-\x20'+_0x50e1b2[_0x2c8733(0x2115)]:_0x2c8733(0x1655),'msg':_0x50e1b2[_0x2c8733(0x1c52)]?JSON[_0x2c8733(0x2317)](_0x50e1b2[_0x2c8733(0x1c52)]):_0x50e1b2[_0x2c8733(0x2915)]()});});function _0x2c4497(){const _0x1ceeb6=_0x13da69;_0x4024fc[_0x1ceeb6(0xbae)]=[],_0x1e457e[_0x1ceeb6(0x1b55)][_0x1ceeb6(0x43c)]({'id':_0x4dcb63[_0x1ceeb6(0x1b48)]['id']},_0x4024fc[_0x1ceeb6(0x6f5)])[_0x1ceeb6(0x15e7)][_0x1ceeb6(0x64a)](function(_0x365e8a){const _0x5e39b7=_0x1ceeb6;_0x4024fc['mohSounds']['unshift'](_0x365e8a['toJSON']()),_0x3d88ac[_0x5e39b7(0x1339)]({'title':'MohSound\x20properly\x20created','msg':_0x4024fc['mohSound'][_0x5e39b7(0x2494)]?_0x4024fc[_0x5e39b7(0x6f5)][_0x5e39b7(0x2494)]+_0x5e39b7(0x258d):''}),_0x5cd3e5(_0x365e8a);})[_0x1ceeb6(0x20cd)](function(_0x30d103){const _0x3319a6=_0x1ceeb6;if(_0x30d103['data']&&_0x30d103[_0x3319a6(0x1c52)][_0x3319a6(0xbae)]&&_0x30d103[_0x3319a6(0x1c52)][_0x3319a6(0xbae)][_0x3319a6(0x1b9e)]){_0x4024fc['errors']=_0x30d103[_0x3319a6(0x1c52)][_0x3319a6(0xbae)]||[{'message':_0x30d103[_0x3319a6(0x2915)](),'type':_0x3319a6(0xe5a)}];for(let _0x4a51e1=0x0;_0x4a51e1<_0x30d103[_0x3319a6(0x1c52)][_0x3319a6(0xbae)][_0x3319a6(0x1b9e)];_0x4a51e1+=0x1){_0x3d88ac[_0x3319a6(0x1bd0)]({'title':_0x30d103[_0x3319a6(0x1c52)]['errors'][_0x4a51e1][_0x3319a6(0x2185)],'msg':_0x30d103['data']['errors'][_0x4a51e1][_0x3319a6(0x18ca)]});}}else _0x3d88ac[_0x3319a6(0x1bd0)]({'title':_0x30d103[_0x3319a6(0x10b3)]?_0x3319a6(0x575)+_0x30d103[_0x3319a6(0x10b3)]+'\x20-\x20'+_0x30d103[_0x3319a6(0x2115)]:_0x3319a6(0xe5a),'msg':_0x30d103[_0x3319a6(0x1c52)]?JSON['stringify'](_0x30d103[_0x3319a6(0x1c52)][_0x3319a6(0x18ca)]):_0x30d103[_0x3319a6(0x2915)]()});});}function _0x2833ac(){const _0x2728cc=_0x13da69;_0x4024fc[_0x2728cc(0xbae)]=[],_0x1e457e[_0x2728cc(0x1b55)][_0x2728cc(0x2603)]({'id':_0x4024fc['mohSound']['id']},_0x4024fc[_0x2728cc(0x6f5)])[_0x2728cc(0x15e7)][_0x2728cc(0x64a)](function(_0x6be654){const _0x58705f=_0x2728cc,_0xf28999=_0x28c606()[_0x58705f(0x27bc)](_0x4024fc[_0x58705f(0x137e)],{'id':_0x6be654['id']});_0xf28999&&_0x28c606()[_0x58705f(0x14fe)](_0xf28999,_0x28c606()[_0x58705f(0x27bb)](_0x6be654[_0x58705f(0x14f8)](),_0x28c606()['keys'](_0xf28999))),_0x3d88ac[_0x58705f(0x1339)]({'title':_0x58705f(0x6ef),'msg':_0x4024fc[_0x58705f(0x6f5)][_0x58705f(0x2494)]?_0x4024fc['mohSound'][_0x58705f(0x2494)]+_0x58705f(0x271):''}),_0x5cd3e5(_0x6be654);})['catch'](function(_0x1ec08c){const _0x156863=_0x2728cc;if(_0x1ec08c[_0x156863(0x1c52)]&&_0x1ec08c['data']['errors']&&_0x1ec08c['data']['errors'][_0x156863(0x1b9e)]){_0x4024fc[_0x156863(0xbae)]=_0x1ec08c[_0x156863(0x1c52)][_0x156863(0xbae)]||[{'message':_0x1ec08c[_0x156863(0x2915)](),'type':_0x156863(0x1a68)}];for(let _0x105839=0x0;_0x105839<_0x1ec08c[_0x156863(0x1c52)][_0x156863(0xbae)][_0x156863(0x1b9e)];_0x105839++){_0x3d88ac[_0x156863(0x1bd0)]({'title':_0x1ec08c['data'][_0x156863(0xbae)][_0x105839][_0x156863(0x2185)],'msg':_0x1ec08c['data'][_0x156863(0xbae)][_0x105839][_0x156863(0x18ca)]});}}else _0x3d88ac[_0x156863(0x1bd0)]({'title':_0x1ec08c[_0x156863(0x10b3)]?_0x156863(0x575)+_0x1ec08c['status']+_0x156863(0x21db)+_0x1ec08c[_0x156863(0x2115)]:_0x156863(0x1a68),'msg':_0x1ec08c['data']?JSON[_0x156863(0x2317)](_0x1ec08c[_0x156863(0x1c52)][_0x156863(0x18ca)]):_0x1ec08c[_0x156863(0x2915)]()});});}function _0x26184b(_0x1dbff8){const _0x59a8ac=_0x13da69;_0x4024fc[_0x59a8ac(0xbae)]=[];const _0x40f65e=_0x1986ad[_0x59a8ac(0x856)]()['title'](_0x59a8ac(0x103a))['content'](_0x59a8ac(0x1089))[_0x59a8ac(0x213e)](_0x59a8ac(0x1981))['ok']('Delete')[_0x59a8ac(0x101a)](_0x59a8ac(0x1dc6))[_0x59a8ac(0x2283)](_0x1dbff8);_0x1986ad['show'](_0x40f65e)[_0x59a8ac(0x64a)](function(){const _0x147951=_0x59a8ac;_0x1e457e[_0x147951(0x1b55)]['delete']({'id':_0x4024fc[_0x147951(0x6f5)]['id']})['$promise'][_0x147951(0x64a)](function(){const _0x2d4406=_0x147951;_0x28c606()[_0x2d4406(0x21c7)](_0x4024fc[_0x2d4406(0x137e)],{'id':_0x4024fc['mohSound']['id']}),_0x3d88ac[_0x2d4406(0x1339)]({'title':_0x2d4406(0x6a7),'msg':(_0x4024fc['mohSound'][_0x2d4406(0x2494)]||_0x2d4406(0x6f5))+_0x2d4406(0x1fa8)}),_0x5cd3e5(_0x4024fc['mohSound']);})[_0x147951(0x20cd)](function(_0x2f0c95){const _0x3c00b7=_0x147951;if(_0x2f0c95['data']&&_0x2f0c95['data']['errors']&&_0x2f0c95[_0x3c00b7(0x1c52)][_0x3c00b7(0xbae)][_0x3c00b7(0x1b9e)]){_0x4024fc[_0x3c00b7(0xbae)]=_0x2f0c95[_0x3c00b7(0x1c52)][_0x3c00b7(0xbae)]||[{'message':_0x2f0c95[_0x3c00b7(0x2915)](),'type':'api.voiceMusicOnHold.delete'}];for(let _0x4263c9=0x0;_0x4263c9<_0x2f0c95[_0x3c00b7(0x1c52)]['errors'][_0x3c00b7(0x1b9e)];_0x4263c9++){_0x3d88ac['error']({'title':_0x2f0c95['data'][_0x3c00b7(0xbae)][_0x4263c9][_0x3c00b7(0x2185)],'msg':_0x2f0c95[_0x3c00b7(0x1c52)][_0x3c00b7(0xbae)][_0x4263c9][_0x3c00b7(0x18ca)]});}}else _0x3d88ac[_0x3c00b7(0x1bd0)]({'title':_0x2f0c95[_0x3c00b7(0x10b3)]?_0x3c00b7(0x575)+_0x2f0c95[_0x3c00b7(0x10b3)]+'\x20-\x20'+_0x2f0c95[_0x3c00b7(0x2115)]:_0x3c00b7(0x20ed),'msg':_0x2f0c95['data']?JSON['stringify'](_0x2f0c95[_0x3c00b7(0x1c52)]['message']):_0x2f0c95[_0x3c00b7(0x18ca)]||_0x2f0c95['toString']()});});},function(){});}function _0x53d02a(_0x3a7a3d){return _0x3a7a3d===null?undefined:new Date(_0x3a7a3d);}function _0x5cd3e5(_0x5d8ff8){_0x1986ad['hide'](_0x5d8ff8);}}const _0x1d0178=_0x1f91cf;;_0x4a56a6['$inject']=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),'setting','api',_0x49a1e3(0x680),_0x49a1e3(0xdcf),'musiconhold',_0x49a1e3(0x16b2)];function _0x4a56a6(_0x26eb43,_0x5dfcd3,_0x405862,_0x5c534c,_0x8ac9e1,_0xa55983,_0xbe6351,_0x1718cd,_0x501443,_0x5ddcc2,_0x394f15,_0x3b42dc){const _0x185ce0=_0x49a1e3,_0x317469=this;_0x317469[_0x185ce0(0x1d3d)]=_0x5ddcc2[_0x185ce0(0x808)](),_0x317469[_0x185ce0(0x1947)]=_0xa55983,_0x317469[_0x185ce0(0x28d6)]=_0xbe6351,_0x317469[_0x185ce0(0xccc)]=_0x317469[_0x185ce0(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x317469[_0x185ce0(0xb36)]=_0x5dfcd3[_0x185ce0(0x48e)]()+'://'+_0x5dfcd3[_0x185ce0(0x1e5d)](),_0x317469[_0x185ce0(0x2082)]=_0x394f15||_0x26eb43[_0x185ce0(0x1b48)][_0x185ce0(0x2082)]||{},_0x317469['userProfileSection']=_0x3b42dc&&_0x3b42dc[_0x185ce0(0xb90)]==0x1?_0x3b42dc[_0x185ce0(0x28b8)][0x0]:null,_0x317469['crudPermissions']=_0x5ddcc2[_0x185ce0(0xa7e)](_0x317469[_0x185ce0(0x16b2)]?_0x317469['userProfileSection'][_0x185ce0(0x402)]:null),_0x317469[_0x185ce0(0x6c2)]={},_0x317469[_0x185ce0(0x197c)]=_0x26eb43['params']['tab']||0x0,_0x317469[_0x185ce0(0x2540)]=_0x501443[_0x185ce0(0x772)],_0x317469[_0x185ce0(0x237)]=_0x1b3d90,_0x317469[_0x185ce0(0x1cc7)]=_0x48185f;function _0x1b3d90(){const _0x905f30=_0x185ce0;_0x26eb43['go'](_0x905f30(0x126a),{},{'reload':_0x905f30(0x126a)});}function _0x48185f(){const _0x470816=_0x185ce0;_0x1718cd[_0x470816(0x1b55)][_0x470816(0x2603)]({'id':_0x317469[_0x470816(0x2082)]['id']},_0x317469['musiconhold'])[_0x470816(0x15e7)][_0x470816(0x64a)](function(){const _0x338ed8=_0x470816;_0x501443[_0x338ed8(0x1339)]({'title':_0x338ed8(0xbd1),'msg':_0x317469[_0x338ed8(0x2082)][_0x338ed8(0x2494)]?_0x317469[_0x338ed8(0x2082)][_0x338ed8(0x2494)]+_0x338ed8(0x2032):''});})['catch'](function(_0x5995b7){const _0x59109d=_0x470816;_0x501443[_0x59109d(0x1bd0)]({'title':_0x5995b7[_0x59109d(0x10b3)]?_0x59109d(0x575)+_0x5995b7[_0x59109d(0x10b3)]+_0x59109d(0x21db)+_0x5995b7[_0x59109d(0x2115)]:_0x59109d(0x1b60),'msg':_0x5995b7[_0x59109d(0x1c52)]?JSON[_0x59109d(0x2317)](_0x5995b7[_0x59109d(0x1c52)]):_0x5995b7['toString']()});});}}const _0x515c25=_0x4a56a6;;const _0x476297=_0x2e4a48['p']+_0x49a1e3(0x1e9c);;_0x15f05f['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),'$timeout',_0x49a1e3(0x298c),_0x49a1e3(0x9e4),'userProfile',_0x49a1e3(0x16b2),'api',_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x15f05f(_0x160eb3,_0x4b33e1,_0x11ee35,_0x3c8e05,_0x4ae17b,_0x39aa8e,_0x5abd08,_0x4ae4a0,_0x34a504,_0x2c6468,_0x5e9516,_0x528151,_0x2de680,_0xbdacd0,_0x284a89,_0x2ca7bd,_0x5ec4eb){const _0x500b5f=_0x49a1e3,_0x2f412d=this;_0x2f412d[_0x500b5f(0x1947)]=_0x2ca7bd,_0x2f412d[_0x500b5f(0x28d6)]=_0x5ec4eb,_0x2f412d[_0x500b5f(0x1d3d)]=_0x284a89[_0x500b5f(0x808)](),_0x2f412d[_0x500b5f(0x9e4)]=_0x34a504||{'count':0x0,'rows':[]},_0x2f412d[_0x500b5f(0x16a8)]=_0x2c6468,_0x2f412d[_0x500b5f(0x16b2)]=_0x5e9516&&_0x5e9516[_0x500b5f(0xb90)]==0x1?_0x5e9516[_0x500b5f(0x28b8)][0x0]:null,_0x2f412d[_0x500b5f(0x402)]=_0x284a89[_0x500b5f(0xa7e)](_0x2f412d[_0x500b5f(0x16b2)]?_0x2f412d[_0x500b5f(0x16b2)]['crudPermissions']:null),_0x2f412d[_0x500b5f(0x185d)]=_0x500b5f(0x9e4),_0x2f412d[_0x500b5f(0x300)]='',_0x2f412d[_0x500b5f(0x2748)]=null,_0x2f412d[_0x500b5f(0x28aa)]=[],_0x2f412d['query']={'fields':_0x500b5f(0x864),'defaultEntry':_0x500b5f(0x2872),'limit':0xa,'page':0x1},_0x2f412d[_0x500b5f(0x561)]=_0x28c606()[_0x500b5f(0x161e)]([{'option':_0x500b5f(0x1369),'value':_0x500b5f(0x2556)},{'option':'Custom','value':_0x500b5f(0x1fb1)}],function(_0x442c1d){const _0x42ee0d=_0x500b5f;return _0x28c606()[_0x42ee0d(0x1353)](_0x442c1d['value'],new RegExp('\x27','g'),'');}),_0x2f412d[_0x500b5f(0x148b)]=_0x28c606()[_0x500b5f(0x161e)]([{'option':_0x500b5f(0xaa5),'value':'\x27random\x27'},{'option':'Alphabetical','value':_0x500b5f(0x6de)}],function(_0x356e9a){const _0x25843f=_0x500b5f;return _0x28c606()['replace'](_0x356e9a[_0x25843f(0x1096)],new RegExp('\x27','g'),'');}),_0x2f412d[_0x500b5f(0xff6)]=_0x30bcf6,_0x2f412d[_0x500b5f(0x1262)]=_0x114faf,_0x2f412d[_0x500b5f(0x1339)]=_0x3f33ea,_0x2f412d['getMusicOnHolds']=_0xb7d815,_0x2f412d[_0x500b5f(0x1c4b)]=_0x3e3e46,_0x2f412d[_0x500b5f(0x1332)]=_0x21b6ee,_0x2f412d[_0x500b5f(0x13bf)]=_0x120b54,_0x2f412d['deleteSelectedMusicOnHolds']=_0x157930,_0x2f412d['deselectMusicOnHolds']=_0x46bc35,_0x2f412d[_0x500b5f(0x18e)]=_0x22d96a;function _0x30bcf6(_0x14660e){const _0x54041a=_0x500b5f;_0x11ee35['go'](_0x54041a(0x21d5),{'id':_0x14660e['id'],'musiconhold':_0x14660e,'crudPermissions':_0x2f412d[_0x54041a(0x402)]});}function _0x114faf(_0x30d962,_0x1f7243){const _0xe0a939=_0x500b5f,_0x57e55b=_0x4ae17b[_0xe0a939(0x856)]()[_0xe0a939(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()['startCase'](_0xe0a939(0x2082))+'?')[_0xe0a939(0x33a)](_0xe0a939(0x50b)+(_0x30d962[_0xe0a939(0x2494)]||_0xe0a939(0x2082))+_0xe0a939(0x26d0)+_0xe0a939(0x4b8))['ariaLabel'](_0xe0a939(0x192e))[_0xe0a939(0x2283)](_0x1f7243)['ok']('OK')[_0xe0a939(0x101a)](_0xe0a939(0x18fd));_0x4ae17b[_0xe0a939(0xa60)](_0x57e55b)['then'](function(){_0x21b6ee(_0x30d962);},function(){const _0x44a9fc=_0xe0a939;console[_0x44a9fc(0x9b4)](_0x44a9fc(0x18fd));});}let _0x57ea1c=!![],_0x57ff9c=0x1;_0x160eb3['$watch'](_0x500b5f(0x1cb9),function(_0x454e2e,_0x410781){const _0x4b1851=_0x500b5f;_0x57ea1c?_0x5abd08(function(){_0x57ea1c=![];}):(!_0x410781&&(_0x57ff9c=_0x2f412d[_0x4b1851(0x289a)][_0x4b1851(0xc72)]),_0x454e2e!==_0x410781&&(_0x2f412d[_0x4b1851(0x289a)][_0x4b1851(0xc72)]=0x1),!_0x454e2e&&(_0x2f412d[_0x4b1851(0x289a)][_0x4b1851(0xc72)]=_0x57ff9c),_0x2f412d['getMusicOnHolds']());});function _0x3f33ea(_0x3720e0){_0x2f412d['musiconholds']=_0x3720e0||{'count':0x0,'rows':[]};}function _0xb7d815(){const _0x235789=_0x500b5f;_0x2f412d[_0x235789(0x289a)][_0x235789(0x24f9)]=(_0x2f412d['query'][_0x235789(0xc72)]-0x1)*_0x2f412d[_0x235789(0x289a)][_0x235789(0x25bb)],_0x284a89['hasRole'](_0x235789(0x333))?_0x2f412d[_0x235789(0x1713)]=_0x528151[_0x235789(0x1b55)][_0x235789(0x896)](_0x2f412d[_0x235789(0x289a)],_0x3f33ea)[_0x235789(0x15e7)]:(_0x2f412d['query']['id']=_0x2f412d[_0x235789(0x16a8)]['id'],_0x2f412d['query'][_0x235789(0xa21)]=_0x235789(0xdb6),_0x2f412d[_0x235789(0x1713)]=_0x528151[_0x235789(0x16a8)][_0x235789(0x2565)](_0x2f412d[_0x235789(0x289a)],_0x3f33ea)['$promise']);}function _0x3e3e46(_0x6263a5,_0x57105f){const _0x10f790=_0x500b5f;_0x4ae17b[_0x10f790(0xa60)]({'controller':_0x10f790(0x26cf),'controllerAs':'vm','templateUrl':_0x476297,'parent':angular['element'](_0x39aa8e['body']),'targetEvent':_0x6263a5,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x57105f,'musiconholds':_0x2f412d[_0x10f790(0x9e4)][_0x10f790(0x28b8)],'license':_0x2f412d[_0x10f790(0x1947)],'setting':_0x2f412d['setting'],'crudPermissions':_0x2f412d[_0x10f790(0x402)]}});}function _0x21b6ee(_0x2fd3ed){const _0x26f352=_0x500b5f;_0x528151[_0x26f352(0x1b55)][_0x26f352(0xabd)]({'id':_0x2fd3ed['id']})[_0x26f352(0x15e7)][_0x26f352(0x64a)](function(){const _0x193ca3=_0x26f352;_0x28c606()[_0x193ca3(0x21c7)](_0x2f412d[_0x193ca3(0x9e4)][_0x193ca3(0x28b8)],{'id':_0x2fd3ed['id']}),_0x2f412d[_0x193ca3(0x9e4)][_0x193ca3(0xb90)]-=0x1,!_0x2f412d[_0x193ca3(0x9e4)][_0x193ca3(0x28b8)]['length']&&_0x2f412d[_0x193ca3(0x8c5)](),_0xbdacd0[_0x193ca3(0x1339)]({'title':_0x28c606()[_0x193ca3(0xc01)](_0x193ca3(0x270c))+'\x20deleted!','msg':_0x2fd3ed[_0x193ca3(0x2494)]?_0x2fd3ed['name']+_0x193ca3(0x1fa8):''});})[_0x26f352(0x20cd)](function(_0x45b8a8){const _0x126b8d=_0x26f352;if(_0x45b8a8[_0x126b8d(0x1c52)]&&_0x45b8a8[_0x126b8d(0x1c52)][_0x126b8d(0xbae)]&&_0x45b8a8['data'][_0x126b8d(0xbae)]['length']){_0x2f412d[_0x126b8d(0xbae)]=_0x45b8a8[_0x126b8d(0x1c52)][_0x126b8d(0xbae)]||[{'message':_0x45b8a8[_0x126b8d(0x2915)](),'type':'SYSTEM:DELETEvoiceMusicOnHold'}];for(let _0x4f462a=0x0;_0x4f462a<_0x45b8a8[_0x126b8d(0x1c52)]['errors'][_0x126b8d(0x1b9e)];_0x4f462a++){_0xbdacd0['error']({'title':_0x45b8a8[_0x126b8d(0x1c52)][_0x126b8d(0xbae)][_0x4f462a][_0x126b8d(0x2185)],'msg':_0x45b8a8[_0x126b8d(0x1c52)][_0x126b8d(0xbae)][_0x4f462a][_0x126b8d(0x18ca)]});}}else _0xbdacd0[_0x126b8d(0x1bd0)]({'title':_0x45b8a8[_0x126b8d(0x10b3)]?_0x126b8d(0x575)+_0x45b8a8['status']+'\x20-\x20'+_0x45b8a8['statusText']:'SYSTEM:DELETEvoiceMusicOnHold','msg':_0x45b8a8[_0x126b8d(0x1c52)]?JSON[_0x126b8d(0x2317)](_0x45b8a8[_0x126b8d(0x1c52)]['message']):_0x45b8a8[_0x126b8d(0x18ca)]||_0x45b8a8['toString']()});});}function _0x120b54(){const _0x21968a=_0x500b5f,_0x5ee371=angular[_0x21968a(0x289e)](_0x2f412d[_0x21968a(0x28aa)]);return _0x2f412d['selectedMusicOnHolds']=[],_0x5ee371;}function _0x157930(_0x2c740d){const _0x17b01f=_0x500b5f,_0x4f9ce6=_0x4ae17b[_0x17b01f(0x856)]()[_0x17b01f(0x2021)](_0x17b01f(0xdb2))[_0x17b01f(0x33a)](''+_0x2f412d[_0x17b01f(0x28aa)][_0x17b01f(0x1b9e)]+'\x20selected'+_0x17b01f(0x4b8))[_0x17b01f(0x213e)](_0x17b01f(0x332))[_0x17b01f(0x2283)](_0x2c740d)['ok']('OK')[_0x17b01f(0x101a)](_0x17b01f(0x18fd));_0x4ae17b[_0x17b01f(0xa60)](_0x4f9ce6)[_0x17b01f(0x64a)](function(){const _0x3cabf2=_0x17b01f;_0x2f412d[_0x3cabf2(0x28aa)][_0x3cabf2(0x1397)](function(_0xc60ed6){_0x21b6ee(_0xc60ed6);}),_0x2f412d[_0x3cabf2(0x28aa)]=[];});}function _0x46bc35(){_0x2f412d['selectedMusicOnHolds']=[];}function _0x22d96a(){const _0x17c677=_0x500b5f;_0x2f412d[_0x17c677(0x28aa)]=_0x2f412d['musiconholds'][_0x17c677(0x28b8)];}}const _0x25a886=_0x15f05f;;_0x27c51c['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x1a93),_0x49a1e3(0x1d38),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting','crudPermissions'];function _0x27c51c(_0x3d48c3,_0x2df9e5,_0x2eb752,_0x3d0185,_0x137ae9,_0x5a9ac5,_0x515b09,_0x1b31f2,_0x52a2c7,_0x53bb46,_0x5595d7,_0x2df37a,_0x3ad4d6,_0x307fd4){const _0x2ced1f=_0x49a1e3,_0x28097b=this;_0x28097b[_0x2ced1f(0x1d3d)]=_0x5595d7['getCurrentUser'](),_0x28097b['errors']=[],_0x28097b[_0x2ced1f(0x28d6)]=_0x3ad4d6,_0x28097b['license']=_0x2df37a,_0x28097b[_0x2ced1f(0x402)]=_0x307fd4,_0x28097b[_0x2ced1f(0x6c2)]={},_0x28097b[_0x2ced1f(0xccc)]=_0x28097b[_0x2ced1f(0x28d6)]&&_0x28097b['setting'][_0x2ced1f(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x28097b[_0x2ced1f(0x2021)]='VOICE.EDIT_OUTBOUNDROUTE',_0x28097b[_0x2ced1f(0x1d38)]=angular['copy'](_0x52a2c7),_0x28097b[_0x2ced1f(0x1a93)]=_0x1b31f2,_0x28097b[_0x2ced1f(0x1794)]=![],_0x28097b[_0x2ced1f(0x1d1)]={'count':0x0,'rows':[]},_0x28097b[_0x2ced1f(0x1018)]=_0x28c606()['reject'](_0x28c606()[_0x2ced1f(0x1643)]([{'app':_0x2ced1f(0x1f03),'appType':_0x2ced1f(0xcfd),'type':'Outbound','types':['always','custom',_0x2ced1f(0x2764)],'fields':[],'isApp':![]},{'app':_0x2ced1f(0x38a),'appType':_0x2ced1f(0x17b6),'context':_0x2ced1f(0x275),'type':_0x2ced1f(0x170a),'icon':_0x2ced1f(0xd46),'interval':_0x2ced1f(0x2145),'options':'xX','isApp':!![],'extraApi':[{'name':_0x2ced1f(0xe23),'route':_0x2ced1f(0x4ef),'filters':{'fields':_0x2ced1f(0x2494),'sort':'name'}},{'name':_0x2ced1f(0x16a6),'route':_0x2ced1f(0xac8),'filters':{'fields':_0x2ced1f(0x2494),'sort':'name','nolimit':!![]}}],'fields':[{'title':_0x2ced1f(0x1608),'name':_0x2ced1f(0x4ef),'type':_0x2ced1f(0x26e8),'values':_0x2ced1f(0xe23),'value':_0x2ced1f(0x2501),'option':_0x2ced1f(0x2501),'required':!![],'param':0x0},{'title':_0x2ced1f(0x18db),'name':_0x2ced1f(0x1abe),'type':'text','ngPattern':_0x2ced1f(0x4a4),'help':!![]},{'title':_0x2ced1f(0x1204),'name':_0x2ced1f(0x2524),'type':_0x2ced1f(0x39b)},{'title':_0x2ced1f(0x1178),'name':_0x2ced1f(0xac8),'type':_0x2ced1f(0x26e8),'values':'tags','value':'tag.name','option':'tag.name','defaultValues':[{'value':'\x27--\x27','option':'None'}]},{'title':'Timeout','name':_0x2ced1f(0x16d),'type':_0x2ced1f(0x2113),'min':0x0,'param':0x1},{'title':_0x2ced1f(0x1df6),'name':_0x2ced1f(0x59e),'type':'text','param':0x2},{'title':_0x2ced1f(0x9f7),'name':_0x2ced1f(0x2761),'type':_0x2ced1f(0x39b),'param':0x3}]},{'app':null,'type':'Outbound','appType':'custom','icon':'icon-apps','interval':_0x2ced1f(0x2145),'isApp':!![],'fields':[{'title':_0x2ced1f(0x1e8a),'name':_0x2ced1f(0x16e1),'type':_0x2ced1f(0x39b),'required':!![],'param':0x0},{'title':_0x2ced1f(0x2078),'name':_0x2ced1f(0xacb),'type':'text','param':0x1}]}],[_0x2ced1f(0x16e1)]),{'isApp':![]});!_0x28097b[_0x2ced1f(0x1d38)]&&(_0x28097b[_0x2ced1f(0x1d38)]={'appdata':_0x2ced1f(0x14a5),'type':_0x2ced1f(0xbce),'context':_0x2ced1f(0x275),'recordingFormat':_0x2ced1f(0x2507)},_0x28097b[_0x2ced1f(0x2021)]=_0x2ced1f(0x216),_0x28097b['newOutboundRoute']=!![]);_0x28097b[_0x2ced1f(0x2649)]=_0x3159bb,_0x28097b[_0x2ced1f(0xf91)]=_0x1a823e,_0x28097b[_0x2ced1f(0x2777)]=_0x3f289b,_0x28097b[_0x2ced1f(0x1605)]=_0x5c7b1f,_0x28097b['rewriteRouting']=_0x1d4cb1,_0x28097b['closeDialog']=_0x19db49,_0x5595d7[_0x2ced1f(0x4de)](_0x2ced1f(0x333))?_0x53bb46[_0x2ced1f(0x1faa)][_0x2ced1f(0x896)]({'fields':'id,name','sort':'name','nolimit':_0x2ced1f(0x1685)})[_0x2ced1f(0x15e7)][_0x2ced1f(0x64a)](function(_0x4aef84){const _0x35e7b7=_0x2ced1f;_0x28097b[_0x35e7b7(0xad1)]=_0x4aef84[_0x35e7b7(0x28b8)]||[];})[_0x2ced1f(0x20cd)](function(_0x382f29){const _0x5b4608=_0x2ced1f;_0x515b09[_0x5b4608(0x1bd0)]({'title':_0x382f29[_0x5b4608(0x10b3)]?_0x5b4608(0x575)+_0x382f29[_0x5b4608(0x10b3)]+'\x20-\x20'+_0x382f29[_0x5b4608(0x2115)]:_0x5b4608(0xbea),'msg':_0x382f29[_0x5b4608(0x1c52)]?JSON[_0x5b4608(0x2317)](_0x382f29['data']):_0x382f29[_0x5b4608(0x2915)]()});}):_0x53bb46[_0x2ced1f(0x1faa)][_0x2ced1f(0x896)]({'fields':_0x2ced1f(0x1427),'sort':_0x2ced1f(0x2494),'nolimit':_0x2ced1f(0x1685)})[_0x2ced1f(0x15e7)][_0x2ced1f(0x64a)](function(_0x88e78a){const _0x3d17e7=_0x2ced1f;_0x28097b[_0x3d17e7(0xad1)]=_0x88e78a[_0x3d17e7(0x28b8)]||[];})['then'](function(){const _0x54f942=_0x2ced1f;return _0x53bb46[_0x54f942(0x16b2)]['get']({'userProfileId':_0x28097b[_0x54f942(0x1d3d)][_0x54f942(0x21ac)],'sectionId':0x195})['$promise'];})[_0x2ced1f(0x64a)](function(_0x49978d){const _0xaf37a=_0x2ced1f,_0x334bc5=_0x49978d&&_0x49978d[_0xaf37a(0x28b8)]?_0x49978d[_0xaf37a(0x28b8)][0x0]:null;if(!_0x334bc5)return _0x53bb46[_0xaf37a(0x1faa)][_0xaf37a(0x896)]({'fields':_0xaf37a(0x1427),'sort':_0xaf37a(0x2494),'nolimit':'true','defaultEntry':0x1})[_0xaf37a(0x15e7)]['then'](function(_0x5b848b){const _0x364c69=_0xaf37a;_0x28097b[_0x364c69(0xad1)]=_0x5b848b[_0x364c69(0x28b8)]||[];});else{if(!_0x334bc5['autoAssociation'])return _0x53bb46[_0xaf37a(0x1617)][_0xaf37a(0x896)]({'sectionId':_0x334bc5['id']})[_0xaf37a(0x15e7)][_0xaf37a(0x64a)](function(_0x2d7008){const _0x407506=_0xaf37a,_0x5a1e06=_0x28c606()[_0x407506(0x1de5)](_0x2d7008[_0x407506(0x28b8)],function(_0x4bc894){const _0x5a829c=_0x407506;return _0x28c606()[_0x5a829c(0x27bc)](_0x28097b[_0x5a829c(0xad1)],{'id':_0x4bc894[_0x5a829c(0x145)]});});let _0x26e1e9=null;_0x28097b[_0x407506(0x1d38)]&&(_0x26e1e9=_0x28c606()[_0x407506(0x27bc)](_0x28097b[_0x407506(0xad1)],{'name':_0x28097b[_0x407506(0x1d38)][_0x407506(0x139)]}));if(_0x26e1e9&&!_0x28c606()[_0x407506(0x25f8)](_0x5a1e06,['id',_0x26e1e9['id']])){const _0x31b536=_0x28c606()[_0x407506(0x27bc)](_0x28097b['contexts'],{'id':_0x26e1e9['id']});_0x31b536[_0x407506(0xd4f)]=![],_0x5a1e06['push'](_0x31b536);}_0x28097b[_0x407506(0xad1)]=_0x5a1e06;});}})[_0x2ced1f(0x20cd)](function(_0x38fc17){const _0x588a9a=_0x2ced1f;_0x515b09['error']({'title':_0x38fc17[_0x588a9a(0x10b3)]?_0x588a9a(0x575)+_0x38fc17['status']+_0x588a9a(0x21db)+_0x38fc17[_0x588a9a(0x2115)]:_0x588a9a(0x184b),'msg':_0x38fc17[_0x588a9a(0x1c52)]?JSON[_0x588a9a(0x2317)](_0x38fc17[_0x588a9a(0x1c52)]):_0x38fc17['toString']()});});function _0x3159bb(){const _0x261644=_0x2ced1f;_0x28097b[_0x261644(0xbae)]=[],_0x53bb46[_0x261644(0x1438)][_0x261644(0x2479)](_0x28097b[_0x261644(0x1d38)])[_0x261644(0x15e7)][_0x261644(0x64a)](function(_0x23233c){const _0x46a634=_0x261644;_0x28097b['outboundroutes'][_0x46a634(0x1891)](_0x23233c[_0x46a634(0x14f8)]()),_0x515b09[_0x46a634(0x1339)]({'title':_0x46a634(0x27ee),'msg':_0x28097b[_0x46a634(0x1d38)][_0x46a634(0x2494)]?_0x28097b['outboundroute'][_0x46a634(0x2494)]+_0x46a634(0x258d):''}),_0x19db49(_0x23233c);})[_0x261644(0x20cd)](function(_0x35507b){const _0x341c5e=_0x261644;if(_0x35507b['data']&&_0x35507b['data'][_0x341c5e(0xbae)]&&_0x35507b['data'][_0x341c5e(0xbae)][_0x341c5e(0x1b9e)]){_0x28097b[_0x341c5e(0xbae)]=_0x35507b['data'][_0x341c5e(0xbae)]||[{'message':_0x35507b[_0x341c5e(0x2915)](),'type':_0x341c5e(0x177a)}];for(let _0x2378fd=0x0;_0x2378fd<_0x35507b['data'][_0x341c5e(0xbae)][_0x341c5e(0x1b9e)];_0x2378fd+=0x1){_0x515b09[_0x341c5e(0x1bd0)]({'title':_0x35507b[_0x341c5e(0x1c52)][_0x341c5e(0xbae)][_0x2378fd]['type'],'msg':_0x35507b[_0x341c5e(0x1c52)][_0x341c5e(0xbae)][_0x2378fd][_0x341c5e(0x18ca)]});}}else _0x515b09[_0x341c5e(0x1bd0)]({'title':_0x35507b['status']?'API:'+_0x35507b['status']+_0x341c5e(0x21db)+_0x35507b[_0x341c5e(0x2115)]:_0x341c5e(0x177a),'msg':_0x35507b[_0x341c5e(0x1c52)]?JSON['stringify'](_0x35507b[_0x341c5e(0x1c52)][_0x341c5e(0x18ca)]):_0x35507b[_0x341c5e(0x2915)]()});});}function _0x1a823e(){const _0x3d158c=_0x2ced1f;_0x28097b[_0x3d158c(0xbae)]=[],_0x53bb46[_0x3d158c(0x1438)][_0x3d158c(0x2603)]({'id':_0x28097b[_0x3d158c(0x1d38)]['id']},_0x28097b[_0x3d158c(0x1d38)])[_0x3d158c(0x15e7)]['then'](function(_0x211cbc){const _0x1e9879=_0x3d158c,_0x9764fc=_0x28c606()[_0x1e9879(0x27bc)](_0x28097b[_0x1e9879(0x1a93)],{'id':_0x211cbc['id']});_0x9764fc&&(_0x28c606()['merge'](_0x9764fc,_0x28c606()[_0x1e9879(0x27bb)](_0x211cbc['toJSON'](),_0x28c606()[_0x1e9879(0x1ec6)](_0x9764fc))),_0x53bb46[_0x1e9879(0x1438)]['get']({'sort':_0x1e9879(0x1095),'VoiceExtensionId':_0x9764fc['id'],'isApp':!![],'nolimit':!![]})['$promise'][_0x1e9879(0x64a)](function(_0x270c4e){_0x28097b['outboundrouteApps']=_0x270c4e,_0x1d4cb1();})),_0x515b09[_0x1e9879(0x1339)]({'title':_0x1e9879(0xb41),'msg':_0x28097b[_0x1e9879(0x1d38)]['name']?_0x28097b['outboundroute'][_0x1e9879(0x2494)]+_0x1e9879(0x271):''}),_0x19db49(_0x211cbc);})[_0x3d158c(0x20cd)](function(_0x1f0f25){const _0x537076=_0x3d158c;if(_0x1f0f25[_0x537076(0x1c52)]&&_0x1f0f25['data'][_0x537076(0xbae)]&&_0x1f0f25['data'][_0x537076(0xbae)][_0x537076(0x1b9e)]){_0x28097b[_0x537076(0xbae)]=_0x1f0f25['data'][_0x537076(0xbae)]||[{'message':_0x1f0f25['toString'](),'type':_0x537076(0x196)}];for(let _0x221bed=0x0;_0x221bed<_0x1f0f25[_0x537076(0x1c52)][_0x537076(0xbae)]['length'];_0x221bed++){_0x515b09[_0x537076(0x1bd0)]({'title':_0x1f0f25[_0x537076(0x1c52)]['errors'][_0x221bed]['type'],'msg':_0x1f0f25[_0x537076(0x1c52)][_0x537076(0xbae)][_0x221bed][_0x537076(0x18ca)]});}}else _0x515b09[_0x537076(0x1bd0)]({'title':_0x1f0f25[_0x537076(0x10b3)]?'API:'+_0x1f0f25[_0x537076(0x10b3)]+'\x20-\x20'+_0x1f0f25[_0x537076(0x2115)]:'api.voiceExtension.update','msg':_0x1f0f25[_0x537076(0x1c52)]?JSON[_0x537076(0x2317)](_0x1f0f25[_0x537076(0x1c52)][_0x537076(0x18ca)]):_0x1f0f25[_0x537076(0x2915)]()});});}function _0x3f289b(_0x4b95e1){const _0x5657f5=_0x2ced1f;_0x53bb46[_0x5657f5(0x23ef)][_0x5657f5(0x896)]({'VoiceExtensionId':_0x52a2c7['id']})['$promise'][_0x5657f5(0x64a)](function(_0x3aa711){const _0x561c41=_0x5657f5;if(_0x3aa711&&_0x3aa711[_0x561c41(0x28b8)]&&_0x3aa711['rows'][_0x561c41(0x1b9e)]>0x0)return _0x515b09[_0x561c41(0x1bd0)]({'title':_0x561c41(0xf16),'msg':_0x561c41(0xada)});else{_0x28097b['errors']=[];const _0x334ed9=_0x3d0185[_0x561c41(0x856)]()[_0x561c41(0x2021)]('Are\x20you\x20sure?')[_0x561c41(0x12b8)]('The\x20outboundroute\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20OutboundRoute')['ok'](_0x561c41(0x2664))[_0x561c41(0x101a)]('Cancel')[_0x561c41(0x2283)](_0x4b95e1);_0x3d0185[_0x561c41(0xa60)](_0x334ed9)[_0x561c41(0x64a)](function(){const _0x5f2215=_0x561c41;_0x53bb46[_0x5f2215(0x1438)][_0x5f2215(0xabd)]({'id':_0x28097b[_0x5f2215(0x1d38)]['id']})['$promise'][_0x5f2215(0x64a)](function(){const _0x719b80=_0x5f2215;_0x28c606()[_0x719b80(0x21c7)](_0x28097b[_0x719b80(0x1a93)],{'id':_0x28097b[_0x719b80(0x1d38)]['id']}),_0x515b09['success']({'title':_0x719b80(0x17b7),'msg':(_0x28097b[_0x719b80(0x1d38)][_0x719b80(0x2494)]||_0x719b80(0x1d38))+_0x719b80(0x1fa8)}),_0x19db49(_0x28097b['outboundroute']);})['catch'](function(_0x5bb963){const _0x59d2bf=_0x5f2215;if(_0x5bb963[_0x59d2bf(0x1c52)]&&_0x5bb963['data']['errors']&&_0x5bb963[_0x59d2bf(0x1c52)]['errors'][_0x59d2bf(0x1b9e)]){_0x28097b[_0x59d2bf(0xbae)]=_0x5bb963[_0x59d2bf(0x1c52)][_0x59d2bf(0xbae)]||[{'message':_0x5bb963[_0x59d2bf(0x2915)](),'type':_0x59d2bf(0x6ea)}];for(let _0x180cad=0x0;_0x180cad<_0x5bb963[_0x59d2bf(0x1c52)][_0x59d2bf(0xbae)][_0x59d2bf(0x1b9e)];_0x180cad++){_0x515b09[_0x59d2bf(0x1bd0)]({'title':_0x5bb963[_0x59d2bf(0x1c52)][_0x59d2bf(0xbae)][_0x180cad][_0x59d2bf(0x2185)],'msg':_0x5bb963['data']['errors'][_0x180cad]['message']});}}else _0x515b09[_0x59d2bf(0x1bd0)]({'title':_0x5bb963['status']?_0x59d2bf(0x575)+_0x5bb963[_0x59d2bf(0x10b3)]+'\x20-\x20'+_0x5bb963[_0x59d2bf(0x2115)]:_0x59d2bf(0x6ea),'msg':_0x5bb963[_0x59d2bf(0x1c52)]?JSON[_0x59d2bf(0x2317)](_0x5bb963[_0x59d2bf(0x1c52)][_0x59d2bf(0x18ca)]):_0x5bb963['message']||_0x5bb963[_0x59d2bf(0x2915)]()});});},function(){});}});}function _0x1d4cb1(){const _0x2c5a8c=_0x2ced1f;let _0x3abaaf=0x2,_0x95b146=[];_0x95b146['push']({'type':_0x2c5a8c(0xbce),'app':_0x2c5a8c(0x1c13),'appdata':'CDR(type)=outbound','context':_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x139)],'exten':_0x28097b['outboundroute'][_0x2c5a8c(0x19c8)],'priority':_0x3abaaf++,'VoiceExtensionId':_0x28097b[_0x2c5a8c(0x1d38)]['id']}),_0x95b146[_0x2c5a8c(0x1954)]({'type':_0x2c5a8c(0xbce),'app':_0x2c5a8c(0x1c13),'appdata':_0x2c5a8c(0x101c)+(_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x242b)]?'${EXTEN:'+_0x28097b[_0x2c5a8c(0x1d38)]['cutdigits']+'}':_0x2c5a8c(0x5ad)),'context':_0x28097b[_0x2c5a8c(0x1d38)]['context'],'exten':_0x28097b['outboundroute'][_0x2c5a8c(0x19c8)],'priority':_0x3abaaf++,'VoiceExtensionId':_0x28097b[_0x2c5a8c(0x1d38)]['id']}),_0x95b146['push']({'type':_0x2c5a8c(0xbce),'app':_0x2c5a8c(0x1c13),'appdata':_0x2c5a8c(0x1b4a),'context':_0x28097b['outboundroute'][_0x2c5a8c(0x139)],'exten':_0x28097b[_0x2c5a8c(0x1d38)]['exten'],'priority':_0x3abaaf++,'VoiceExtensionId':_0x28097b[_0x2c5a8c(0x1d38)]['id']}),_0x95b146['push']({'type':_0x2c5a8c(0xbce),'app':_0x2c5a8c(0x1c13),'appdata':_0x2c5a8c(0x379),'context':_0x28097b['outboundroute'][_0x2c5a8c(0x139)],'exten':_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x19c8)],'priority':_0x3abaaf++,'VoiceExtensionId':_0x28097b[_0x2c5a8c(0x1d38)]['id']}),_0x95b146[_0x2c5a8c(0x1954)]({'type':_0x2c5a8c(0xbce),'app':_0x2c5a8c(0x1c13),'appdata':'MONITOR_OPTIONS=ab','context':_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x139)],'exten':_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x19c8)],'priority':_0x3abaaf++,'VoiceExtensionId':_0x28097b['outboundroute']['id']}),_0x95b146[_0x2c5a8c(0x1954)]({'type':'outbound','app':_0x2c5a8c(0x1c13),'appdata':_0x2c5a8c(0x21d0)+_0x28097b[_0x2c5a8c(0x1d38)]['id'],'context':_0x28097b[_0x2c5a8c(0x1d38)]['context'],'exten':_0x28097b[_0x2c5a8c(0x1d38)]['exten'],'priority':_0x3abaaf++,'VoiceExtensionId':_0x28097b[_0x2c5a8c(0x1d38)]['id']});typeof _0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x1097)]!==_0x2c5a8c(0x19a1)&&_0x28097b['outboundroute'][_0x2c5a8c(0x1097)]!==_0x2c5a8c(0x2507)&&(_0x95b146[_0x2c5a8c(0x1954)]({'type':_0x2c5a8c(0xbce),'app':_0x2c5a8c(0x1c13),'appdata':'_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','context':_0x28097b[_0x2c5a8c(0x1d38)]['context'],'exten':_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x19c8)],'priority':_0x3abaaf++,'VoiceExtensionId':_0x28097b['outboundroute']['id']}),_0x95b146[_0x2c5a8c(0x1954)]({'type':_0x2c5a8c(0xbce),'app':'Set','appdata':_0x2c5a8c(0x1323)+_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x1097)]||0x0,'context':_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x139)],'exten':_0x28097b[_0x2c5a8c(0x1d38)]['exten'],'priority':_0x3abaaf++,'VoiceExtensionId':_0x28097b[_0x2c5a8c(0x1d38)]['id']}));for(let _0x3e893c=0x0,_0x28cbd7=0x0;_0x3e893c<_0x28097b[_0x2c5a8c(0x1d1)][_0x2c5a8c(0x28b8)]['length'];_0x3e893c++,_0x28cbd7=0x0){const _0x1dd57a=_0x28097b[_0x2c5a8c(0x1d1)][_0x2c5a8c(0x28b8)][_0x3e893c],_0x58f767=[],_0x3a608d=[];_0x1dd57a['intervals']=_0x1dd57a[_0x2c5a8c(0xcfd)]!=='*,*,*,*'?[_0x1dd57a[_0x2c5a8c(0xcfd)]]:_0x1dd57a[_0x2c5a8c(0xb71)]?_0x28c606()[_0x2c5a8c(0x1de5)](_0x28c606()[_0x2c5a8c(0xcec)](_0x28097b[_0x2c5a8c(0x15e4)][_0x2c5a8c(0x28b8)],{'IntervalId':_0x1dd57a[_0x2c5a8c(0xb71)]}),_0x2c5a8c(0xcfd)):[],_0x1dd57a[_0x2c5a8c(0x139)]=_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x139)],_0x1dd57a[_0x2c5a8c(0x19c8)]=_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x19c8)];_0x1dd57a[_0x2c5a8c(0x2185)]&&(_0x1dd57a[_0x2c5a8c(0x2185)]=_0x1dd57a['type']['toLowerCase']());typeof _0x1dd57a[_0x2c5a8c(0xac8)]!==_0x2c5a8c(0x19a1)&&(_0x1dd57a['tag']&&_0x1dd57a[_0x2c5a8c(0xac8)]!=='--'&&_0x58f767['push']({'type':_0x1dd57a[_0x2c5a8c(0x2185)][_0x2c5a8c(0x2554)](),'app':'Set','appdata':_0x2c5a8c(0x25cc)+_0x1dd57a[_0x2c5a8c(0xac8)],'context':_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x139)],'exten':_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x19c8)],'priority':_0x1dd57a['intervals'][_0x2c5a8c(0x1b9e)]+_0x3abaaf+_0x28cbd7++,'VoiceExtensionId':_0x28097b['outboundroute']['id']}));_0x1dd57a[_0x2c5a8c(0x1abe)]?_0x58f767[_0x2c5a8c(0x1954)]({'type':_0x1dd57a['type'][_0x2c5a8c(0x2554)](),'app':'ExecIf','appdata':_0x2c5a8c(0x157a)+_0x1dd57a[_0x2c5a8c(0x1abe)]+')','context':_0x28097b['outboundroute'][_0x2c5a8c(0x139)],'exten':_0x28097b[_0x2c5a8c(0x1d38)]['exten'],'priority':_0x1dd57a[_0x2c5a8c(0x15e4)][_0x2c5a8c(0x1b9e)]+_0x3abaaf+_0x28cbd7++,'VoiceExtensionId':_0x28097b[_0x2c5a8c(0x1d38)]['id']}):_0x58f767['push']({'type':_0x1dd57a['type'][_0x2c5a8c(0x2554)](),'app':_0x2c5a8c(0xb37),'appdata':_0x2c5a8c(0x1ff9),'context':_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x139)],'exten':_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x19c8)],'priority':_0x1dd57a[_0x2c5a8c(0x15e4)]['length']+_0x3abaaf+_0x28cbd7++,'VoiceExtensionId':_0x28097b[_0x2c5a8c(0x1d38)]['id']});for(let _0x28f27c=0x0;_0x28f27c<_0x1dd57a[_0x2c5a8c(0x15e4)]['length'];_0x28f27c++){const _0x3f26e3=_0x3abaaf+_0x1dd57a[_0x2c5a8c(0x15e4)][_0x2c5a8c(0x1b9e)],_0x2f5345=_0x28f27c===_0x1dd57a[_0x2c5a8c(0x15e4)][_0x2c5a8c(0x1b9e)]-0x1?_0x3abaaf+_0x58f767[_0x2c5a8c(0x1b9e)]+_0x3a608d[_0x2c5a8c(0x1b9e)]+0x2:_0x3abaaf+_0x28f27c+0x1;_0x58f767[_0x2c5a8c(0x18f0)](_0x28f27c,0x0,{'type':_0x2c5a8c(0xbce),'app':_0x2c5a8c(0x2092),'appdata':_0x1dd57a[_0x2c5a8c(0x15e4)][_0x28f27c]+'?'+_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x139)]+_0x2c5a8c(0x812)+_0x3f26e3+':'+_0x28097b['outboundroute'][_0x2c5a8c(0x139)]+',${EXTEN},'+_0x2f5345,'exten':_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x19c8)],'context':_0x28097b[_0x2c5a8c(0x1d38)]['context'],'priority':_0x3abaaf+_0x28f27c,'VoiceExtensionId':_0x28097b['outboundroute']['id']});}if(_0x1dd57a[_0x2c5a8c(0x4f4)]==='outboundDial'){const _0x5efae8=_0x28c606()[_0x2c5a8c(0x27bc)](_0x28097b['apps'],{'appType':'outboundDial'});if(_0x5efae8&&_0x5efae8[_0x2c5a8c(0xf26)]){const _0x2caadc={},_0x323a23=_0x1dd57a['appdata'][_0x2c5a8c(0x282c)](','),_0xab5743=[];for(let _0x553aea=0x0,_0x4dc031=_0x5efae8[_0x2c5a8c(0xf26)][_0x2c5a8c(0x1b9e)];_0x553aea<_0x4dc031;_0x553aea++){if(typeof _0x5efae8['fields'][_0x553aea][_0x2c5a8c(0x162)]!=='undefined')switch(_0x5efae8['fields'][_0x553aea][_0x2c5a8c(0x2494)]){case _0x2c5a8c(0x4ef):_0x2caadc[_0x2c5a8c(0x4ef)]=_0x323a23[_0x5efae8[_0x2c5a8c(0xf26)][_0x553aea][_0x2c5a8c(0x162)]][_0x2c5a8c(0x282c)]('/')[0x1],_0x2caadc[_0x2c5a8c(0x267a)]=_0x323a23[_0x5efae8[_0x2c5a8c(0xf26)][_0x553aea][_0x2c5a8c(0x162)]][_0x2c5a8c(0x282c)]('/')[0x2],_0x2caadc[_0x2c5a8c(0x2524)]=_0x2caadc[_0x2c5a8c(0x267a)]?_0x2caadc[_0x2c5a8c(0x267a)][_0x2c5a8c(0x282c)]('$')[0x0]:undefined,_0x2caadc[_0x2c5a8c(0x267a)]=_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x242b)]?(_0x2caadc[_0x2c5a8c(0x2524)]||'')+_0x2c5a8c(0x1a75)+_0x28097b['outboundroute'][_0x2c5a8c(0x242b)]+'}':(_0x2caadc[_0x2c5a8c(0x2524)]||'')+'${EXTEN}',_0xab5743[_0x5efae8['fields'][_0x553aea][_0x2c5a8c(0x162)]]=[_0x2c5a8c(0x2644),_0x2caadc['trunk'],_0x2caadc['phone']]['join']('/');break;case _0x2c5a8c(0x59e):_0x2caadc[_0x2c5a8c(0x59e)]=_0x323a23[_0x5efae8['fields'][_0x553aea]['param']];_0x28097b[_0x2c5a8c(0x1d38)][_0x2c5a8c(0x1097)]!==_0x2c5a8c(0x2507)?_0x2caadc[_0x2c5a8c(0x59e)][_0x2c5a8c(0x1b28)](_0x2c5a8c(0x13e0))<0x0&&(_0x2caadc[_0x2c5a8c(0x59e)]+=_0x2c5a8c(0x13e0)):_0x2caadc['options']=_0x2caadc[_0x2c5a8c(0x59e)][_0x2c5a8c(0x1353)]('U(xcally-mixmonitor-context)','');_0xab5743[_0x5efae8['fields'][_0x553aea][_0x2c5a8c(0x162)]]=_0x2caadc[_0x2c5a8c(0x59e)];break;default:_0xab5743[_0x5efae8[_0x2c5a8c(0xf26)][_0x553aea][_0x2c5a8c(0x162)]]=_0x323a23[_0x5efae8[_0x2c5a8c(0xf26)][_0x553aea][_0x2c5a8c(0x162)]];}}_0x1dd57a[_0x2c5a8c(0xacb)]=_0xab5743[_0x2c5a8c(0x9a6)](',');}}_0x1dd57a[_0x2c5a8c(0x1095)]=_0x58f767[_0x2c5a8c(0x1b9e)]?_0x28c606()[_0x2c5a8c(0xe62)](_0x58f767)[_0x2c5a8c(0x1095)]+0x1:_0x3abaaf,_0x3abaaf=(_0x3a608d['length']?_0x28c606()[_0x2c5a8c(0xe62)](_0x3a608d)[_0x2c5a8c(0x1095)]:_0x1dd57a[_0x2c5a8c(0x1095)])+0x1,_0x95b146=_0x28c606()[_0x2c5a8c(0x2808)](_0x95b146,_0x58f767,[_0x1dd57a],_0x3a608d);}_0x95b146['push']({'type':'outbound','app':_0x2c5a8c(0x13d5),'exten':_0x28097b['outboundroute'][_0x2c5a8c(0x19c8)],'context':_0x28097b[_0x2c5a8c(0x1d38)]['context'],'priority':_0x3abaaf,'VoiceExtensionId':_0x28097b[_0x2c5a8c(0x1d38)]['id']}),_0x53bb46[_0x2c5a8c(0x1438)]['addApplications']({'id':_0x28097b['outboundroute']['id']},_0x28c606()[_0x2c5a8c(0x1643)](_0x95b146,_0x2c5a8c(0x1095)))[_0x2c5a8c(0x15e7)][_0x2c5a8c(0x64a)](function(_0xb8db44){const _0x5ab3f5=_0x2c5a8c;_0x28097b[_0x5ab3f5(0x1d1)][_0x5ab3f5(0x28b8)]=_0xb8db44[_0x5ab3f5(0x28b8)];})[_0x2c5a8c(0x20cd)](function(_0x12a8a8){const _0x39965f=_0x2c5a8c;console[_0x39965f(0x1bd0)](_0x12a8a8);});}function _0x5c7b1f(_0x5350ef){return _0x5350ef===null?undefined:new Date(_0x5350ef);}function _0x19db49(_0x5641da){const _0x54fca1=_0x2ced1f;_0x3d0185[_0x54fca1(0x268e)](_0x5641da);}}const _0x4d8988=_0x27c51c;;const _0x3d79c2=_0x2e4a48['p']+_0x49a1e3(0x19d5);;const _0x2cf3b2=_0x2e4a48['p']+'src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/interval/dialog.html/dialog.html';;const _0xd290b9=_0x2e4a48['p']+'src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/outbounddial/dialog.html/dialog.html';;_0x108875[_0x49a1e3(0x1e73)]=['api','$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x680),_0x49a1e3(0x633),_0x49a1e3(0x1674),'Auth'];const _0x370b45={'custom':_0x3d79c2,'interval':_0x2cf3b2,'outbounddial':_0xd290b9};function _0x108875(_0x3f717b,_0x3b8bdc,_0x566dc3,_0x125d0a,_0x13e846,_0x5e6e29,_0x5eefcd){const _0x4cdc68=_0x49a1e3,_0x2b3c1f=this;_0x2b3c1f[_0x4cdc68(0x1d3d)]=_0x5eefcd[_0x4cdc68(0x808)](),_0x2b3c1f[_0x4cdc68(0x1d38)]={},_0x2b3c1f[_0x4cdc68(0x1d1)]={'count':0x0,'rows':[]},_0x2b3c1f['selectedOutboundRouteApps']=[],_0x2b3c1f[_0x4cdc68(0x402)],_0x2b3c1f['query']={'sort':'priority'},_0x2b3c1f['apps']=_0x28c606()[_0x4cdc68(0x19d2)](_0x28c606()['sortBy']([{'app':'Interval','appType':_0x4cdc68(0xcfd),'type':_0x4cdc68(0x170a),'types':['always',_0x4cdc68(0x1ad6),_0x4cdc68(0x2764)],'fields':[],'isApp':![]},{'app':_0x4cdc68(0x38a),'appType':'outboundDial','context':_0x4cdc68(0x275),'type':_0x4cdc68(0x170a),'icon':_0x4cdc68(0xd46),'interval':_0x4cdc68(0x2145),'options':'xX','isApp':!![],'extraApi':[{'name':_0x4cdc68(0xe23),'field':{'name':_0x4cdc68(0x4ef),'key':_0x4cdc68(0x2494)},'route':_0x4cdc68(0x4ef),'filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f3}},{'name':_0x4cdc68(0x16a6),'field':{'name':_0x4cdc68(0xac8),'key':_0x4cdc68(0x2494)},'route':'tag','filters':{'fields':_0x4cdc68(0x1427),'sort':_0x4cdc68(0x2494),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x4cdc68(0x1608),'name':'trunk','type':_0x4cdc68(0x26e8),'values':_0x4cdc68(0xe23),'value':_0x4cdc68(0x2501),'option':_0x4cdc68(0x2501),'required':!![],'param':0x0},{'title':_0x4cdc68(0x18db),'name':'callerID','type':_0x4cdc68(0x39b),'help':!![]},{'title':_0x4cdc68(0x1204),'name':_0x4cdc68(0x2524),'type':_0x4cdc68(0x39b)},{'title':_0x4cdc68(0x1178),'name':_0x4cdc68(0xac8),'type':_0x4cdc68(0x26e8),'values':_0x4cdc68(0x16a6),'value':_0x4cdc68(0xcef),'option':_0x4cdc68(0xcef),'defaultValues':[{'value':'\x27--\x27','option':_0x4cdc68(0x8c8)}]},{'title':_0x4cdc68(0x66e),'name':_0x4cdc68(0x16d),'type':_0x4cdc68(0x2113),'min':0x0,'param':0x1},{'title':_0x4cdc68(0x1df6),'name':'options','type':'text','param':0x2},{'title':_0x4cdc68(0x9f7),'name':_0x4cdc68(0x2761),'type':'text','param':0x3}]},{'app':null,'type':_0x4cdc68(0x170a),'appType':_0x4cdc68(0x1ad6),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':'Application_Name','name':_0x4cdc68(0x16e1),'type':_0x4cdc68(0x39b),'required':!![],'param':0x0},{'title':_0x4cdc68(0x2078),'name':_0x4cdc68(0xacb),'type':_0x4cdc68(0x39b),'param':0x1}]}],['app']),{'isApp':![]}),_0x2b3c1f[_0x4cdc68(0x2764)]={'group':{'name':_0x4cdc68(0x7f2),'pull':_0x4cdc68(0x24b2)},'animation':0x64,'sort':![]},_0x2b3c1f[_0x4cdc68(0x221f)]={'group':{'name':_0x4cdc68(0x3a8),'put':_0x4cdc68(0x7f2)},'animation':0x64,'onAdd':function(_0x4265d4){const _0x41a029=_0x4cdc68;_0x1b55f2(_0x4265d4,_0x4265d4[_0x41a029(0xa3e)]);},'onSort':function(){_0x3336f9();}},_0x2b3c1f[_0x4cdc68(0x2354)]=_0xe16a76,_0x2b3c1f['deleteConfirm']=_0x13c6e4,_0x2b3c1f['getOutboundRouteApps']=_0x43d217,_0x2b3c1f['editOutboundRouteApp']=_0x1b55f2,_0x2b3c1f[_0x4cdc68(0x2427)]=_0xdd31ab,_0x2b3c1f[_0x4cdc68(0x552)]=_0x10052d,_0x2b3c1f[_0x4cdc68(0x75f)]=_0x2473c1,_0x2b3c1f['rewriteRouting']=_0x3336f9,_0x2b3c1f['getIntervals']=_0x2c8c36,_0x2b3c1f['onVoiceExtensionUpdate']=_0x58ba23;function _0xe16a76(_0x134606,_0xcb3695){const _0x4191f5=_0x4cdc68;_0x2b3c1f[_0x4191f5(0x1d38)]=_0x134606,_0x2b3c1f[_0x4191f5(0x402)]=typeof _0xcb3695!==_0x4191f5(0x19a1)?_0xcb3695:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2b3c1f['applications'][_0x4191f5(0x1a95)]=!_0x2b3c1f[_0x4191f5(0x402)][_0x4191f5(0xd86)]?!![]:![],_0x13e846['on'](_0x4191f5(0x21c9),_0x2b3c1f['onVoiceExtensionUpdate']),_0x2b3c1f[_0x4191f5(0x289a)][_0x4191f5(0x2551)]=_0x134606['id'],_0x2b3c1f['query'][_0x4191f5(0x210d)]=!![],_0x2b3c1f[_0x4191f5(0x289a)][_0x4191f5(0x13d8)]=!![],_0x2b3c1f[_0x4191f5(0x1375)](),_0x2b3c1f[_0x4191f5(0x1039)]();}function _0x58ba23(_0x24d693){const _0x44baa6=_0x4cdc68;_0x24d693[_0x44baa6(0x2551)]===_0x2b3c1f[_0x44baa6(0x1d38)]['id']&&_0x3336f9(!![]);}function _0x13c6e4(_0x188702,_0x4b2151,_0x3573ab){const _0x1ce8ee=_0x4cdc68,_0x15b6cb=_0x3b8bdc[_0x1ce8ee(0x856)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0x1ce8ee(0x33a)](''+_0x188702[_0x1ce8ee(0x16e1)]+''+'\x20will\x20be\x20deleted.')[_0x1ce8ee(0x213e)](_0x1ce8ee(0x1260))[_0x1ce8ee(0x2283)](_0x3573ab)['ok']('OK')[_0x1ce8ee(0x101a)]('CANCEL');_0x3b8bdc[_0x1ce8ee(0xa60)](_0x15b6cb)[_0x1ce8ee(0x64a)](function(){const _0x227f69=_0x1ce8ee;_0x2b3c1f[_0x227f69(0x1d1)][_0x227f69(0x28b8)][_0x227f69(0x18f0)](_0x4b2151,0x1),_0x3336f9();},function(){const _0x1fc86d=_0x1ce8ee;console[_0x1fc86d(0x9b4)](_0x1fc86d(0x18fd));});}function _0x1b55f2(_0x4eb14c,_0xc060ed){const _0x3bce25=_0x4cdc68;if(_0x2b3c1f[_0x3bce25(0x1d1)][_0x3bce25(0x28b8)]['length']){const _0x1fce8e=_0x2b3c1f[_0x3bce25(0x1d1)][_0x3bce25(0x28b8)][_0xc060ed]?_0x2b3c1f['outboundrouteApps'][_0x3bce25(0x28b8)][_0xc060ed]:_0x2b3c1f[_0x3bce25(0x1d1)][_0x3bce25(0x28b8)][0x0],_0x1cb4de=(_0x1fce8e['appType']||_0x1fce8e['app'])['toLowerCase']();_0x3b8bdc[_0x3bce25(0xa60)]({'controller':'EditoutboundApp'+_0x1cb4de+_0x3bce25(0x1528),'controllerAs':'vm','templateUrl':_0x370b45[_0x1cb4de],'parent':angular['element'](_0x566dc3[_0x3bce25(0xb49)]),'targetEvent':_0x4eb14c,'clickOutsideToClose':!![],'locals':{'outboundrouteApp':_0x1fce8e,'outboundroute':_0x2b3c1f[_0x3bce25(0x1d38)],'crudPermissions':_0x2b3c1f[_0x3bce25(0x402)]}})[_0x3bce25(0x64a)](function(_0xb3688){const _0x41565e=_0x3bce25;_0xb3688&&(_0xb3688['id']?_0x2b3c1f[_0x41565e(0x1d1)]['rows'][_0xc060ed]=_0xb3688:_0x2b3c1f[_0x41565e(0x1d1)][_0x41565e(0x28b8)]['splice'](_0xc060ed,0x0,_0xb3688),_0x3336f9());})[_0x3bce25(0x20cd)](function(_0x698fae){const _0x5c1689=_0x3bce25;_0x698fae&&_0x125d0a['error']({'title':_0x698fae['status']?_0x5c1689(0x575)+_0x698fae[_0x5c1689(0x10b3)]+_0x5c1689(0x21db)+_0x698fae[_0x5c1689(0x2115)]:'SYSTEM:EDITMODALSHOW','msg':_0x698fae['data']?JSON['stringify'](_0x698fae[_0x5c1689(0x1c52)]):_0x698fae[_0x5c1689(0x2915)]()});});}}function _0xdd31ab(_0x5eccc0,_0x320df8){const _0x2e6846=_0x4cdc68;if(_0x2b3c1f['outboundrouteApps'][_0x2e6846(0x28b8)]['length']){const _0x161c44=_0x2b3c1f[_0x2e6846(0x1d1)][_0x2e6846(0x28b8)][_0x320df8]?_0x2b3c1f[_0x2e6846(0x1d1)]['rows'][_0x320df8]:_0x2b3c1f['outboundrouteApps'][_0x2e6846(0x28b8)][0x0];_0x3b8bdc[_0x2e6846(0xa60)]({'controller':_0x2e6846(0xead),'controllerAs':'vm','templateUrl':_0x2cf3b2,'parent':angular['element'](_0x566dc3[_0x2e6846(0xb49)]),'targetEvent':_0x5eccc0,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x161c44[_0x2e6846(0xcfd)],'IntervalId':_0x161c44[_0x2e6846(0xb71)],'application':!![]},'intervals':[],'crudPermissions':_0x2b3c1f[_0x2e6846(0x402)]}})['then'](function(_0x526dfb){const _0x3e43ef=_0x2e6846;_0x526dfb&&(_0x161c44[_0x3e43ef(0xcfd)]=_0x526dfb[_0x3e43ef(0xcfd)]||_0x3e43ef(0x2145),_0x161c44['IntervalId']=_0x526dfb[_0x3e43ef(0xb71)]||null,_0x3336f9());});}}function _0x3336f9(_0x5ab0b0){const _0x1650a9=_0x4cdc68;let _0x2f67da=0x2,_0x33a479=[];_0x33a479[_0x1650a9(0x1954)]({'type':_0x1650a9(0xbce),'app':_0x1650a9(0x1c13),'appdata':_0x1650a9(0x79a),'context':_0x2b3c1f['outboundroute'][_0x1650a9(0x139)],'exten':_0x2b3c1f['outboundroute'][_0x1650a9(0x19c8)],'priority':_0x2f67da++,'VoiceExtensionId':_0x2b3c1f[_0x1650a9(0x1d38)]['id']}),_0x33a479[_0x1650a9(0x1954)]({'type':_0x1650a9(0xbce),'app':_0x1650a9(0x1c13),'appdata':_0x1650a9(0x101c)+(_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x242b)]?_0x1650a9(0x1a75)+_0x2b3c1f[_0x1650a9(0x1d38)]['cutdigits']+'}':_0x1650a9(0x5ad)),'context':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x139)],'exten':_0x2b3c1f[_0x1650a9(0x1d38)]['exten'],'priority':_0x2f67da++,'VoiceExtensionId':_0x2b3c1f[_0x1650a9(0x1d38)]['id']}),_0x33a479['push']({'type':_0x1650a9(0xbce),'app':'Set','appdata':_0x1650a9(0x8e4)+_0x2b3c1f[_0x1650a9(0x1d38)]['id'],'context':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x139)],'exten':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x19c8)],'priority':_0x2f67da++,'VoiceExtensionId':_0x2b3c1f[_0x1650a9(0x1d38)]['id']});const _0x5acdca=_0x2f67da++;_0x33a479[_0x1650a9(0x1954)]({'type':_0x1650a9(0xbce),'app':_0x1650a9(0xb37),'appdata':_0x1650a9(0x4ad)+(_0x5acdca+0x2)+_0x1650a9(0xe18)+(_0x5acdca+0x1)+')','context':_0x2b3c1f[_0x1650a9(0x1d38)]['context'],'exten':_0x2b3c1f['outboundroute'][_0x1650a9(0x19c8)],'priority':_0x5acdca,'VoiceExtensionId':_0x2b3c1f[_0x1650a9(0x1d38)]['id']}),_0x33a479[_0x1650a9(0x1954)]({'type':_0x1650a9(0xbce),'app':'Set','appdata':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x242b)]?_0x1650a9(0x1481)+_0x2b3c1f['outboundroute'][_0x1650a9(0x242b)]+'}':_0x1650a9(0x1127),'context':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x139)],'exten':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x19c8)],'priority':_0x2f67da++,'VoiceExtensionId':_0x2b3c1f[_0x1650a9(0x1d38)]['id']}),_0x33a479[_0x1650a9(0x1954)]({'type':'outbound','app':_0x1650a9(0x1c13),'appdata':_0x1650a9(0x1b4a),'context':_0x2b3c1f[_0x1650a9(0x1d38)]['context'],'exten':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x19c8)],'priority':_0x2f67da++,'VoiceExtensionId':_0x2b3c1f['outboundroute']['id']}),_0x33a479['push']({'type':_0x1650a9(0xbce),'app':'Set','appdata':_0x1650a9(0x379),'context':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x139)],'exten':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x19c8)],'priority':_0x2f67da++,'VoiceExtensionId':_0x2b3c1f['outboundroute']['id']}),_0x33a479[_0x1650a9(0x1954)]({'type':_0x1650a9(0xbce),'app':_0x1650a9(0x1c13),'appdata':_0x1650a9(0x7fe),'context':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x139)],'exten':_0x2b3c1f[_0x1650a9(0x1d38)]['exten'],'priority':_0x2f67da++,'VoiceExtensionId':_0x2b3c1f['outboundroute']['id']}),_0x33a479['push']({'type':_0x1650a9(0xbce),'app':_0x1650a9(0x1c13),'appdata':_0x1650a9(0x21d0)+_0x2b3c1f[_0x1650a9(0x1d38)]['id'],'context':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x139)],'exten':_0x2b3c1f['outboundroute'][_0x1650a9(0x19c8)],'priority':_0x2f67da++,'VoiceExtensionId':_0x2b3c1f[_0x1650a9(0x1d38)]['id']});typeof _0x2b3c1f['outboundroute']['recordingFormat']===_0x1650a9(0x19a1)&&_0x2b3c1f['outboundroute']['recordingFormat']!==_0x1650a9(0x2507)&&(_0x33a479['push']({'type':_0x1650a9(0xbce),'app':'Set','appdata':_0x1650a9(0x47a),'context':_0x2b3c1f['outboundroute'][_0x1650a9(0x139)],'exten':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x19c8)],'priority':_0x2f67da++,'VoiceExtensionId':_0x2b3c1f[_0x1650a9(0x1d38)]['id']}),_0x33a479['push']({'type':_0x1650a9(0xbce),'app':_0x1650a9(0x1c13),'appdata':'_XCALLY_MIXMONITOR_FORMAT='+_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x1097)]||0x0,'context':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x139)],'exten':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x19c8)],'priority':_0x2f67da++,'VoiceExtensionId':_0x2b3c1f[_0x1650a9(0x1d38)]['id']}));for(let _0xbe6c11=0x0,_0x1484c2=0x0;_0xbe6c11<_0x2b3c1f[_0x1650a9(0x1d1)][_0x1650a9(0x28b8)]['length'];_0xbe6c11++,_0x1484c2=0x0){const _0x20c92e=_0x2b3c1f[_0x1650a9(0x1d1)][_0x1650a9(0x28b8)][_0xbe6c11],_0x409069=[],_0xf61334=[];_0x20c92e[_0x1650a9(0x15e4)]=_0x20c92e[_0x1650a9(0xcfd)]!==_0x1650a9(0x2145)?[_0x20c92e[_0x1650a9(0xcfd)]]:_0x20c92e[_0x1650a9(0xb71)]?_0x28c606()['map'](_0x28c606()[_0x1650a9(0xcec)](_0x2b3c1f['intervals'][_0x1650a9(0x28b8)],{'IntervalId':_0x20c92e['IntervalId']}),'interval'):[],_0x20c92e['context']=_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x139)],_0x20c92e['exten']=_0x2b3c1f['outboundroute'][_0x1650a9(0x19c8)];_0x20c92e[_0x1650a9(0x2185)]&&(_0x20c92e[_0x1650a9(0x2185)]=_0x20c92e[_0x1650a9(0x2185)][_0x1650a9(0x2554)]());typeof _0x20c92e[_0x1650a9(0xac8)]!==_0x1650a9(0x19a1)&&(_0x20c92e['tag']&&_0x20c92e[_0x1650a9(0xac8)]!=='--'&&_0x409069[_0x1650a9(0x1954)]({'type':_0x20c92e[_0x1650a9(0x2185)]['toLowerCase'](),'app':_0x1650a9(0x1c13),'appdata':'CDR(tag)='+_0x20c92e['tag'],'context':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x139)],'exten':_0x2b3c1f['outboundroute'][_0x1650a9(0x19c8)],'priority':_0x20c92e[_0x1650a9(0x15e4)][_0x1650a9(0x1b9e)]+_0x2f67da+_0x1484c2++,'VoiceExtensionId':_0x2b3c1f[_0x1650a9(0x1d38)]['id']}));_0x20c92e[_0x1650a9(0x1abe)]?_0x409069[_0x1650a9(0x1954)]({'type':_0x20c92e['type']['toLowerCase'](),'app':'ExecIf','appdata':'$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)='+_0x20c92e[_0x1650a9(0x1abe)]+')','context':_0x2b3c1f['outboundroute'][_0x1650a9(0x139)],'exten':_0x2b3c1f['outboundroute']['exten'],'priority':_0x20c92e['intervals'][_0x1650a9(0x1b9e)]+_0x2f67da+_0x1484c2++,'VoiceExtensionId':_0x2b3c1f[_0x1650a9(0x1d38)]['id']}):_0x409069[_0x1650a9(0x1954)]({'type':_0x20c92e['type'][_0x1650a9(0x2554)](),'app':_0x1650a9(0xb37),'appdata':'$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','context':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x139)],'exten':_0x2b3c1f[_0x1650a9(0x1d38)]['exten'],'priority':_0x20c92e[_0x1650a9(0x15e4)][_0x1650a9(0x1b9e)]+_0x2f67da+_0x1484c2++,'VoiceExtensionId':_0x2b3c1f['outboundroute']['id']});for(let _0x5f0a21=0x0;_0x5f0a21<_0x20c92e[_0x1650a9(0x15e4)][_0x1650a9(0x1b9e)];_0x5f0a21++){const _0x3df3c8=_0x2f67da+_0x20c92e[_0x1650a9(0x15e4)][_0x1650a9(0x1b9e)],_0x47aab7=_0x5f0a21===_0x20c92e[_0x1650a9(0x15e4)][_0x1650a9(0x1b9e)]-0x1?_0x2f67da+_0x409069[_0x1650a9(0x1b9e)]+_0xf61334[_0x1650a9(0x1b9e)]+0x2:_0x2f67da+_0x5f0a21+0x1;_0x409069[_0x1650a9(0x18f0)](_0x5f0a21,0x0,{'type':_0x1650a9(0xbce),'app':'GotoIfTime','appdata':_0x20c92e[_0x1650a9(0x15e4)][_0x5f0a21]+'?'+_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x139)]+_0x1650a9(0x812)+_0x3df3c8+':'+_0x2b3c1f[_0x1650a9(0x1d38)]['context']+',${EXTEN},'+_0x47aab7,'exten':_0x2b3c1f['outboundroute'][_0x1650a9(0x19c8)],'context':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x139)],'priority':_0x2f67da+_0x5f0a21,'VoiceExtensionId':_0x2b3c1f[_0x1650a9(0x1d38)]['id']});}if(_0x5ab0b0&&_0x20c92e[_0x1650a9(0x4f4)]===_0x1650a9(0x17b6)){const _0x422097=_0x28c606()[_0x1650a9(0x27bc)](_0x2b3c1f['apps'],{'appType':_0x1650a9(0x17b6)});if(_0x422097&&_0x422097[_0x1650a9(0xf26)]){const _0x2e79b5={},_0x208cb0=_0x20c92e['appdata']['split'](','),_0x641a48=[];for(let _0x57ce28=0x0,_0xe2756d=_0x422097[_0x1650a9(0xf26)][_0x1650a9(0x1b9e)];_0x57ce28<_0xe2756d;_0x57ce28++){if(typeof _0x422097[_0x1650a9(0xf26)][_0x57ce28][_0x1650a9(0x162)]!==_0x1650a9(0x19a1))switch(_0x422097[_0x1650a9(0xf26)][_0x57ce28][_0x1650a9(0x2494)]){case _0x1650a9(0x4ef):_0x2e79b5[_0x1650a9(0x4ef)]=_0x208cb0[_0x422097['fields'][_0x57ce28][_0x1650a9(0x162)]]['split']('/')[0x1],_0x2e79b5['phone']=_0x208cb0[_0x422097[_0x1650a9(0xf26)][_0x57ce28]['param']][_0x1650a9(0x282c)]('/')[0x2],_0x2e79b5[_0x1650a9(0x2524)]=_0x2e79b5[_0x1650a9(0x267a)]?_0x2e79b5[_0x1650a9(0x267a)]['split']('$')[0x0]:undefined,_0x2e79b5[_0x1650a9(0x267a)]=_0x2b3c1f['outboundroute'][_0x1650a9(0x242b)]?(_0x2e79b5['prefix']||'')+_0x1650a9(0x1a75)+_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x242b)]+'}':(_0x2e79b5[_0x1650a9(0x2524)]||'')+_0x1650a9(0x5ad),_0x641a48[_0x422097['fields'][_0x57ce28][_0x1650a9(0x162)]]=['SIP',_0x2e79b5[_0x1650a9(0x4ef)],_0x2e79b5['phone']][_0x1650a9(0x9a6)]('/');break;case _0x1650a9(0x59e):_0x2e79b5['options']=_0x208cb0[_0x422097[_0x1650a9(0xf26)][_0x57ce28]['param']];_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x1097)]!==_0x1650a9(0x2507)?_0x2e79b5[_0x1650a9(0x59e)][_0x1650a9(0x1b28)](_0x1650a9(0x13e0))<0x0&&(_0x2e79b5[_0x1650a9(0x59e)]+=_0x1650a9(0x13e0)):_0x2e79b5[_0x1650a9(0x59e)]=_0x2e79b5['options'][_0x1650a9(0x1353)](_0x1650a9(0x13e0),'');_0x641a48[_0x422097[_0x1650a9(0xf26)][_0x57ce28][_0x1650a9(0x162)]]=_0x2e79b5[_0x1650a9(0x59e)];break;default:_0x641a48[_0x422097['fields'][_0x57ce28][_0x1650a9(0x162)]]=_0x208cb0[_0x422097[_0x1650a9(0xf26)][_0x57ce28]['param']];}}_0x20c92e[_0x1650a9(0xacb)]=_0x641a48[_0x1650a9(0x9a6)](',');}}_0x20c92e[_0x1650a9(0x1095)]=_0x409069[_0x1650a9(0x1b9e)]?_0x28c606()[_0x1650a9(0xe62)](_0x409069)[_0x1650a9(0x1095)]+0x1:_0x2f67da,_0x2f67da=(_0xf61334[_0x1650a9(0x1b9e)]?_0x28c606()[_0x1650a9(0xe62)](_0xf61334)[_0x1650a9(0x1095)]:_0x20c92e[_0x1650a9(0x1095)])+0x1,_0x33a479=_0x28c606()[_0x1650a9(0x2808)](_0x33a479,_0x409069,[_0x20c92e],_0xf61334);}_0x33a479[_0x1650a9(0x1954)]({'type':_0x1650a9(0xbce),'app':_0x1650a9(0x13d5),'exten':_0x2b3c1f['outboundroute']['exten'],'context':_0x2b3c1f[_0x1650a9(0x1d38)][_0x1650a9(0x139)],'priority':_0x2f67da,'VoiceExtensionId':_0x2b3c1f[_0x1650a9(0x1d38)]['id']}),_0x3f717b[_0x1650a9(0x1438)][_0x1650a9(0x1c5d)]({'id':_0x2b3c1f['outboundroute']['id']},_0x28c606()[_0x1650a9(0x1643)](_0x33a479,_0x1650a9(0x1095)))['$promise']['then'](function(_0x26c107){const _0x114e24=_0x1650a9;_0x2b3c1f[_0x114e24(0x1d1)]['rows']=_0x26c107[_0x114e24(0x28b8)];})[_0x1650a9(0x20cd)](function(_0x14b2f2){const _0x17c217=_0x1650a9;console[_0x17c217(0x1bd0)](_0x14b2f2);});}function _0xcbcec6(_0x22c106){_0x2b3c1f['outboundrouteApps']=_0x22c106||{'count':0x0,'rows':[]};}function _0x2c8c36(){const _0x165278=_0x4cdc68;return _0x3f717b[_0x165278(0xcfd)][_0x165278(0x896)]({'fields':_0x165278(0x1aa)})['$promise']['then'](function(_0x57294d){const _0x21566b=_0x165278;_0x2b3c1f[_0x21566b(0x15e4)]=_0x57294d;})[_0x165278(0x20cd)](function(_0x1f684c){console['error'](_0x1f684c);});}function _0x43d217(){const _0x104e48=_0x4cdc68;_0x2b3c1f[_0x104e48(0x1713)]=_0x3f717b[_0x104e48(0x1438)]['get'](_0x2b3c1f[_0x104e48(0x289a)],_0xcbcec6)['$promise'];}function _0x10052d(_0x495182){const _0xd7dcb0=_0x4cdc68;_0x28c606()[_0xd7dcb0(0x21c7)](_0x2b3c1f[_0xd7dcb0(0x1d1)][_0xd7dcb0(0x28b8)],{'id':_0x495182['id']}),_0x3336f9(),_0x125d0a[_0xd7dcb0(0x1339)]({'title':'App\x20deleted!','msg':_0x495182['app']?_0x495182[_0xd7dcb0(0x16e1)]+_0xd7dcb0(0x1fa8):''});}function _0x2473c1(_0x21654d){const _0x4e5f58=_0x4cdc68,_0x4aa0d7=_0x3b8bdc['confirm']()['title'](_0x4e5f58(0x150d))['htmlContent'](_0x4e5f58(0x50b)+_0x2b3c1f['selectedOutboundRouteApps'][_0x4e5f58(0x1b9e)]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x4e5f58(0x213e)](_0x4e5f58(0x2180))[_0x4e5f58(0x2283)](_0x21654d)['ok']('OK')[_0x4e5f58(0x101a)](_0x4e5f58(0x18fd));_0x3b8bdc[_0x4e5f58(0xa60)](_0x4aa0d7)[_0x4e5f58(0x64a)](function(){const _0x2189d3=_0x4e5f58;_0x2b3c1f[_0x2189d3(0x1ccc)]['forEach'](function(_0x2b91cc){const _0x3fccc6=_0x2189d3;_0x28c606()[_0x3fccc6(0x21c7)](_0x2b3c1f[_0x3fccc6(0x1d1)][_0x3fccc6(0x28b8)],{'id':_0x2b91cc['id']});}),_0x2b3c1f['selectedOutboundRouteApps']=[],_0x3336f9();});}_0x5e6e29[_0x4cdc68(0x8c7)](_0x4cdc68(0xf28),function(){const _0x5046ed=_0x4cdc68;_0x13e846[_0x5046ed(0x1951)](_0x5046ed(0x21c9));});}const _0x36b0d8=_0x108875;;_0x236d07[_0x49a1e3(0x1e73)]=['$mdDialog','$q',_0x49a1e3(0x680),_0x49a1e3(0x15a),_0x49a1e3(0x1d38),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'crudPermissions'];function _0x236d07(_0x488958,_0x24fc07,_0x5ad75b,_0x218e3f,_0x5ae537,_0x76a938,_0x14dd38,_0x5657be){const _0x1c40ea=_0x49a1e3,_0x4b4ba3=this;_0x4b4ba3['currentUser']=_0x14dd38[_0x1c40ea(0x808)](),_0x4b4ba3[_0x1c40ea(0xbae)]=[],_0x4b4ba3[_0x1c40ea(0x2021)]=_0x1c40ea(0x2073)+(_0x218e3f['appType']||_0x218e3f[_0x1c40ea(0x16e1)])[_0x1c40ea(0xa3c)](),_0x4b4ba3[_0x1c40ea(0x1ad6)]=angular['copy'](_0x218e3f),_0x4b4ba3[_0x1c40ea(0x402)]=_0x5657be,_0x4b4ba3[_0x1c40ea(0x6c2)]={};if(_0x4b4ba3['custom'][_0x1c40ea(0xacb)])switch(_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x4f4)]?_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x4f4)]['toLowerCase']():_0x4b4ba3[_0x1c40ea(0x1ad6)]['app']['toLowerCase']()){case _0x1c40ea(0x1ad6):break;case _0x1c40ea(0x1084):{const _0x375aab=_0x4b4ba3['custom'][_0x1c40ea(0xacb)][_0x1c40ea(0x282c)](',');_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x2125)]=_0x375aab[0x0],_0x4b4ba3['custom'][_0x1c40ea(0x1cbd)]=_0x375aab[0x1],_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x31b)]=_0x375aab[_0x1c40ea(0x142e)](0x2,_0x375aab['length'])[_0x1c40ea(0x9a6)](',');}break;case _0x1c40ea(0x1b1a):{const _0x5ba1c7=_0x4b4ba3['custom'][_0x1c40ea(0xacb)]['split'](',');_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0xbfd)]=_0x5ba1c7[0x0],_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x4b2)]=_0x5ba1c7[0x1],_0x4b4ba3[_0x1c40ea(0x1ad6)]['privateKey']=_0x5ba1c7[0x2],_0x4b4ba3['custom'][_0x1c40ea(0x1cbd)]=_0x5ba1c7[0x3],_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x31b)]=_0x5ba1c7[_0x1c40ea(0x142e)](0x4,_0x5ba1c7[_0x1c40ea(0x1b9e)])['join'](',');}break;case _0x1c40ea(0x290d):{const _0x124fec=_0x4b4ba3[_0x1c40ea(0x1ad6)]['appdata'][_0x1c40ea(0x282c)](',');_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x1466)]=_0x124fec[0x0],_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x1b1)]=_0x124fec[0x1],_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x17a2)]=_0x124fec[0x2],_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x2797)]=_0x124fec[0x3],_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x31b)]=_0x124fec[_0x1c40ea(0x142e)](0x4,_0x124fec[_0x1c40ea(0x1b9e)])[_0x1c40ea(0x9a6)](',');}break;case _0x1c40ea(0x21a9):{const _0x40df9d=_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0xacb)][_0x1c40ea(0x282c)](',');_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x95f)]=isNaN(_0x40df9d[0x0])?_0x40df9d[0x0]:parseInt(_0x40df9d[0x0],0xa),_0x4b4ba3['custom'][_0x1c40ea(0x39b)]=_0x40df9d['slice'](0x1,_0x40df9d['length'])[_0x1c40ea(0x9a6)](',');}break;case _0x1c40ea(0x18ca):_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x39b)]=_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0xacb)];break;case _0x1c40ea(0x1979):_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x2494)]=_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0xacb)][_0x1c40ea(0x282c)]('=')[0x0],_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x1096)]=_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0xacb)][_0x1c40ea(0x282c)]('=')[0x1];break;case _0x1c40ea(0x1e67):_0x4b4ba3['custom']['project']=_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0xacb)];break;default:{const _0x18166e=_0x4b4ba3['custom'][_0x1c40ea(0xacb)][_0x1c40ea(0x282c)](',');_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x16e1)]=_0x28c606()[_0x1c40ea(0x940)](_0x18166e[0x0])?_0x18166e[0x0]:isNaN(_0x18166e[0x0])?_0x18166e[0x0]:parseInt(_0x18166e[0x0],0xa),_0x4b4ba3['custom'][_0x1c40ea(0xacb)]=_0x28c606()[_0x1c40ea(0x940)](_0x18166e[0x1])?_0x18166e[0x1]:isNaN(_0x18166e[0x1])?_0x18166e[0x1]:parseInt(_0x18166e[0x1],0xa);}break;}else{}_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x2185)]&&_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x2185)][_0x1c40ea(0x2554)]()===_0x1c40ea(0xbce)&&_0x4b4ba3['custom'][_0x1c40ea(0x4f4)][_0x1c40ea(0x2554)]()==='outbounddial'&&(_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x2524)]=_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x267a)]?_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x267a)][_0x1c40ea(0x282c)]('$')[0x0]:undefined,_0x4b4ba3['custom']['callerId']=_0x4b4ba3[_0x1c40ea(0x1ad6)][_0x1c40ea(0x1abe)]?_0x1c40ea(0x2489)+_0x4b4ba3['custom'][_0x1c40ea(0x1abe)]:undefined);_0x4b4ba3[_0x1c40ea(0x1407)]=_0x6adcb0,_0x4b4ba3[_0x1c40ea(0x16cb)]=_0x28c3a5;function _0x6adcb0(){const _0x269031=_0x1c40ea;_0x4b4ba3[_0x269031(0xbae)]=[];const _0x33dc19=[];_0x4b4ba3[_0x269031(0x1ad6)][_0x269031(0x2185)]&&_0x4b4ba3[_0x269031(0x1ad6)][_0x269031(0x2185)][_0x269031(0x2554)]()===_0x269031(0xbce)&&_0x4b4ba3[_0x269031(0x1ad6)]['appType']===_0x269031(0x17b6)&&(_0x4b4ba3[_0x269031(0x1ad6)][_0x269031(0x267a)]=_0x5ae537[_0x269031(0x242b)]?(_0x4b4ba3['custom']['prefix']||'')+'${EXTEN:'+_0x5ae537['cutdigits']+'}':(_0x4b4ba3[_0x269031(0x1ad6)]['prefix']||'')+_0x269031(0x5ad),_0x5ae537['recordingFormat']!=='none'?_0x4b4ba3[_0x269031(0x1ad6)]['options'][_0x269031(0x1b28)](_0x269031(0x13e0))<0x0&&(_0x4b4ba3['custom'][_0x269031(0x59e)]+=_0x269031(0x13e0)):_0x4b4ba3[_0x269031(0x1ad6)][_0x269031(0x59e)]=_0x4b4ba3['custom']['options']['replace'](_0x269031(0x13e0),''));if(_0x4b4ba3[_0x269031(0x1ad6)][_0x269031(0x4f4)]&&_0x4b4ba3['custom'][_0x269031(0x4f4)]==='custom'){}else switch((_0x4b4ba3[_0x269031(0x1ad6)][_0x269031(0x16e1)]||_0x4b4ba3[_0x269031(0x1ad6)]['appType'])['toLowerCase']()){case _0x269031(0x1979):_0x4b4ba3[_0x269031(0x1ad6)]['appdata']=_0x4b4ba3[_0x269031(0x1ad6)][_0x269031(0x2494)]+'='+_0x4b4ba3[_0x269031(0x1ad6)][_0x269031(0x1096)];break;case _0x269031(0x1ad6):break;default:_0x33dc19[0x0]=_0x4b4ba3[_0x269031(0x1ad6)][_0x269031(0x16e1)],_0x33dc19[0x1]=_0x4b4ba3[_0x269031(0x1ad6)][_0x269031(0xacb)],_0x4b4ba3[_0x269031(0x1ad6)]['appdata']=_0x33dc19['join'](',');}_0x28c3a5(_0x4b4ba3[_0x269031(0x1ad6)]);}function _0x28c3a5(_0x530d15){_0x488958['hide'](_0x530d15);}}const _0x4065c1=_0x236d07;;_0x5f1345[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x212a),_0x49a1e3(0x611),'IndexFactory',_0x49a1e3(0xcfd),_0x49a1e3(0x15e4),_0x49a1e3(0x680),_0x49a1e3(0xa19),'Auth','crudPermissions'];function _0x5f1345(_0x264219,_0x875df0,_0x2c8e99,_0x3ee585,_0x166199,_0x4396ba,_0x3749bd,_0x7f7201,_0x30b9ea,_0x3ee1bc){const _0x4a7c42=_0x49a1e3,_0xa3c76=this;_0xa3c76['currentUser']=_0x30b9ea[_0x4a7c42(0x808)](),_0xa3c76['errors']=[],_0xa3c76[_0x4a7c42(0x2021)]='TOOLS.EDIT_INTERVAL',_0xa3c76['interval']=angular[_0x4a7c42(0x289e)](_0x166199),_0xa3c76[_0x4a7c42(0x15e4)]=_0x4396ba,_0xa3c76['newInterval']=![],_0xa3c76[_0x4a7c42(0x269)]=[_0x4a7c42(0xa66),_0x4a7c42(0x1ad6),_0x4a7c42(0x2764)],_0xa3c76[_0x4a7c42(0x402)]=_0x3ee1bc,_0xa3c76[_0x4a7c42(0x121a)]=_0x3ee585[_0x4a7c42(0x8b9)](),_0xa3c76['monthNumber']=_0x3ee585[_0x4a7c42(0x17ef)](),_0xa3c76['monthName']=_0x3ee585[_0x4a7c42(0x273)](),_0xa3c76[_0x4a7c42(0x1e2a)]=_0x3ee585[_0x4a7c42(0xefe)]();if(!_0xa3c76[_0x4a7c42(0xcfd)])_0xa3c76[_0x4a7c42(0xcfd)]={'interval':_0x4a7c42(0x2145)},_0xa3c76[_0x4a7c42(0x2185)]=_0x4a7c42(0xa66),_0xa3c76[_0x4a7c42(0x2021)]=_0x4a7c42(0xcbc),_0xa3c76['newInterval']=!![];else{if(_0xa3c76[_0x4a7c42(0xcfd)][_0x4a7c42(0xcfd)]!==_0x4a7c42(0x2145)){_0xa3c76['type']=_0x4a7c42(0x1ad6);const _0x1a418e=_0xa3c76['interval'][_0x4a7c42(0xcfd)][_0x4a7c42(0x282c)](','),_0x27cb0d=_0x1a418e[0x0],_0x3a18dc=_0x1a418e[0x1],_0x217628=_0x1a418e[0x2],_0x540ffc=_0x1a418e[0x3];if(_0x27cb0d!=='*'){const _0x1b0475=_0x27cb0d['split']('-')[0x0],_0x56d46b=_0x27cb0d[_0x4a7c42(0x282c)]('-')[0x1];let _0x213821;_0x213821=new Date(),_0x213821[_0x4a7c42(0x260)](Number(_0x1b0475[_0x4a7c42(0x282c)](':')[0x0])),_0x213821['setMinutes'](Number(_0x1b0475['split'](':')[0x1])),_0xa3c76[_0x4a7c42(0x268d)]=_0x213821,_0x213821=new Date(),_0x213821[_0x4a7c42(0x260)](Number(_0x56d46b['split'](':')[0x0])),_0x213821[_0x4a7c42(0x1b10)](Number(_0x56d46b[_0x4a7c42(0x282c)](':')[0x1])),_0xa3c76[_0x4a7c42(0x196a)]=_0x213821;}_0x3a18dc!=='*'&&(_0xa3c76[_0x4a7c42(0xa8e)]=_0x3a18dc[_0x4a7c42(0x282c)]('-')[0x0],_0xa3c76[_0x4a7c42(0x1297)]=_0x3a18dc['split']('-')[0x1]),_0x217628!=='*'&&(_0xa3c76['monthDayFrom']=_0x217628['split']('-')[0x0],_0xa3c76[_0x4a7c42(0x15c4)]=_0x217628[_0x4a7c42(0x282c)]('-')[0x1]),_0x540ffc!=='*'&&(_0xa3c76['monthFrom']=_0x540ffc['split']('-')[0x0],_0xa3c76[_0x4a7c42(0x1ea4)]=_0x540ffc[_0x4a7c42(0x282c)]('-')[0x1]);}else _0xa3c76[_0x4a7c42(0x2185)]=_0x4a7c42(0xa66);}_0x264219[_0x4a7c42(0x1b48)]['id']&&!_0xa3c76[_0x4a7c42(0xcfd)][_0x4a7c42(0x2081)]&&(_0xa3c76[_0x4a7c42(0xcfd)][_0x4a7c42(0xb71)]=_0x264219['params']['id']);_0xa3c76['interval'][_0x4a7c42(0xb71)]&&_0xa3c76[_0x4a7c42(0xcfd)][_0x4a7c42(0x2081)]&&(_0xa3c76[_0x4a7c42(0x2185)]='list');_0xa3c76[_0x4a7c42(0x23c0)]=_0x47374c,_0xa3c76['saveInterval']=_0x1569fe,_0xa3c76['closeDialog']=_0x426e77;_0xa3c76[_0x4a7c42(0xcfd)]['application']&&(_0x30b9ea['hasRole']('admin')?_0x7f7201[_0x4a7c42(0xcfd)][_0x4a7c42(0x896)]({'fields':_0x4a7c42(0x530),'IntervalId':_0x4a7c42(0x8f1),'nolimit':!![]})[_0x4a7c42(0x15e7)][_0x4a7c42(0x64a)](function(_0x24e70b){const _0x2c718a=_0x4a7c42;_0xa3c76[_0x2c718a(0x15e4)]=_0x24e70b[_0x2c718a(0x28b8)]||[];})[_0x4a7c42(0x20cd)](function(_0x14a287){const _0x148c22=_0x4a7c42;_0x3749bd[_0x148c22(0x1bd0)]({'title':_0x14a287['status']?_0x148c22(0x575)+_0x14a287[_0x148c22(0x10b3)]+_0x148c22(0x21db)+_0x14a287['statusText']:'SYSTEM:GET_INTERVALS','msg':_0x14a287['data']?JSON[_0x148c22(0x2317)](_0x14a287[_0x148c22(0x1c52)]):_0x14a287[_0x148c22(0x2915)]()});}):_0x7f7201[_0x4a7c42(0xcfd)][_0x4a7c42(0x896)]({'fields':_0x4a7c42(0x530),'IntervalId':_0x4a7c42(0x8f1),'nolimit':!![]})[_0x4a7c42(0x15e7)][_0x4a7c42(0x64a)](function(_0x31906e){const _0x4665e3=_0x4a7c42;_0xa3c76[_0x4665e3(0x15e4)]=_0x31906e['rows']||[];})[_0x4a7c42(0x64a)](function(){const _0x47496f=_0x4a7c42;return _0x7f7201[_0x47496f(0x16b2)][_0x47496f(0x896)]({'userProfileId':_0xa3c76[_0x47496f(0x1d3d)][_0x47496f(0x21ac)],'sectionId':0x3ec})[_0x47496f(0x15e7)];})['then'](function(_0x293753){const _0x47ed0b=_0x4a7c42,_0x2b4e05=_0x293753&&_0x293753['rows']?_0x293753[_0x47ed0b(0x28b8)][0x0]:null;if(!_0x2b4e05)_0xa3c76[_0x47ed0b(0x15e4)]=[];else{if(!_0x2b4e05['autoAssociation'])return _0x7f7201[_0x47ed0b(0x1617)][_0x47ed0b(0x896)]({'sectionId':_0x2b4e05['id']})[_0x47ed0b(0x15e7)][_0x47ed0b(0x64a)](function(_0x15aaa5){const _0xdc99f5=_0x47ed0b,_0x16cf04=_0x15aaa5&&_0x15aaa5[_0xdc99f5(0x28b8)]?_0x15aaa5['rows']:[],_0x210013=[];let _0x286c27=null;_0xa3c76[_0xdc99f5(0xcfd)]&&(_0x286c27=_0x28c606()[_0xdc99f5(0x27bc)](_0xa3c76[_0xdc99f5(0x15e4)],{'name':_0xa3c76[_0xdc99f5(0xcfd)][_0xdc99f5(0xb71)]})),_0x286c27&&!_0x28c606()['some'](_0x16cf04,[_0xdc99f5(0x145),_0x286c27['id']])&&_0xa3c76[_0xdc99f5(0x15e4)][_0xdc99f5(0x1397)](function(_0x52a4ea){_0x52a4ea['id']===_0x286c27['id']&&(_0x52a4ea['canSelect']=![],_0x210013['push'](_0x52a4ea));}),_0xa3c76[_0xdc99f5(0x15e4)]=_0x210013;});}})[_0x4a7c42(0x20cd)](function(_0xdec0ac){const _0x2b2d20=_0x4a7c42;_0x3749bd[_0x2b2d20(0x1bd0)]({'title':_0xdec0ac['status']?_0x2b2d20(0x575)+_0xdec0ac['status']+_0x2b2d20(0x21db)+_0xdec0ac[_0x2b2d20(0x2115)]:_0x2b2d20(0xbfb),'msg':_0xdec0ac['data']?JSON['stringify'](_0xdec0ac[_0x2b2d20(0x1c52)]):_0xdec0ac[_0x2b2d20(0x2915)]()});}));function _0xa3b4c3(){const _0x10cbae=_0x4a7c42;switch(_0xa3c76[_0x10cbae(0x2185)]){case _0x10cbae(0xa66):case'list':return _0x10cbae(0x2145);case _0x10cbae(0x1ad6):{const _0x12dd10=[];if(_0xa3c76[_0x10cbae(0x268d)]!=='*'&&_0xa3c76[_0x10cbae(0x268d)]&&_0xa3c76[_0x10cbae(0x196a)]){const _0x23ba8a=(_0xa3c76[_0x10cbae(0x268d)][_0x10cbae(0x48a)]()<0xa?'0':'')+_0xa3c76[_0x10cbae(0x268d)][_0x10cbae(0x48a)]()+':'+((_0xa3c76[_0x10cbae(0x268d)]['getMinutes']()<0xa?'0':'')+_0xa3c76[_0x10cbae(0x268d)][_0x10cbae(0x1894)]()),_0x158929=(_0xa3c76[_0x10cbae(0x196a)][_0x10cbae(0x48a)]()<0xa?'0':'')+_0xa3c76[_0x10cbae(0x196a)][_0x10cbae(0x48a)]()+':'+((_0xa3c76[_0x10cbae(0x196a)][_0x10cbae(0x1894)]()<0xa?'0':'')+_0xa3c76[_0x10cbae(0x196a)][_0x10cbae(0x1894)]());_0x12dd10[_0x10cbae(0x1954)](_0x23ba8a+'-'+_0x158929);}else _0x12dd10[_0x10cbae(0x1954)]('*');return _0xa3c76[_0x10cbae(0xa8e)]?_0xa3c76[_0x10cbae(0x1297)]?_0x12dd10[_0x10cbae(0x1954)](_0xa3c76[_0x10cbae(0xa8e)]+'-'+_0xa3c76[_0x10cbae(0x1297)]):_0x12dd10[_0x10cbae(0x1954)](_0xa3c76['dayOfWeekFrom']):_0x12dd10[_0x10cbae(0x1954)]('*'),_0xa3c76['monthDayFrom']?_0xa3c76[_0x10cbae(0x15c4)]?_0x12dd10[_0x10cbae(0x1954)](_0xa3c76['monthDayFrom']+'-'+_0xa3c76[_0x10cbae(0x15c4)]):_0x12dd10['push'](_0xa3c76[_0x10cbae(0x1e3)]):_0x12dd10[_0x10cbae(0x1954)]('*'),_0xa3c76[_0x10cbae(0x205f)]?_0xa3c76['monthTo']?_0x12dd10[_0x10cbae(0x1954)](_0xa3c76['monthFrom']+'-'+_0xa3c76[_0x10cbae(0x1ea4)]):_0x12dd10['push'](_0xa3c76['monthFrom']):_0x12dd10[_0x10cbae(0x1954)]('*'),_0x12dd10['join']();}}}function _0x47374c(){const _0x258492=_0x4a7c42;_0xa3c76[_0x258492(0xbae)]=[],_0xa3c76['interval'][_0x258492(0xcfd)]=_0xa3b4c3(),_0x7f7201['interval']['save'](_0xa3c76[_0x258492(0xcfd)])[_0x258492(0x15e7)][_0x258492(0x64a)](function(_0x508bf0){const _0x42ced0=_0x258492;_0xa3c76[_0x42ced0(0x15e4)]['push'](_0x508bf0),_0x3749bd[_0x42ced0(0x1339)]({'title':_0x42ced0(0x2864),'msg':_0xa3c76[_0x42ced0(0xcfd)][_0x42ced0(0x2494)]?_0xa3c76[_0x42ced0(0xcfd)][_0x42ced0(0x2494)]+_0x42ced0(0x258d):''}),_0x426e77();})[_0x258492(0x20cd)](function(_0x27e4eb){const _0x1bc69b=_0x258492;console[_0x1bc69b(0x1bd0)](_0x27e4eb),_0xa3c76[_0x1bc69b(0xbae)]=_0x27e4eb['data'][_0x1bc69b(0xbae)]||[{'message':_0x27e4eb['toString'](),'type':'api.interval.save'}];});}function _0x1569fe(){const _0x192263=_0x4a7c42;_0xa3c76[_0x192263(0xbae)]=[],_0xa3c76[_0x192263(0xcfd)]['interval']=_0xa3b4c3(),_0xa3c76[_0x192263(0xcfd)][_0x192263(0x2081)]?(_0xa3c76['type']!==_0x192263(0x2764)&&(_0xa3c76[_0x192263(0xcfd)][_0x192263(0xb71)]=null),_0x426e77(_0xa3c76[_0x192263(0xcfd)])):_0x7f7201[_0x192263(0xcfd)]['update']({'id':_0xa3c76['interval']['id']},_0xa3c76[_0x192263(0xcfd)])[_0x192263(0x15e7)][_0x192263(0x64a)](function(_0x539f2c){const _0x1abd25=_0x192263,_0x282318=_0x28c606()['find'](_0xa3c76[_0x1abd25(0x15e4)],{'id':_0x539f2c['id']});_0x282318&&_0x28c606()[_0x1abd25(0x14fe)](_0x282318,_0x539f2c),_0x3749bd[_0x1abd25(0x1339)]({'title':_0x1abd25(0x2896),'msg':'Interval\x20has\x20been\x20saved!'}),_0x426e77();})[_0x192263(0x20cd)](function(_0x27651f){const _0x36fc2b=_0x192263;console['error'](_0x27651f),_0xa3c76[_0x36fc2b(0xbae)]=_0x27651f[_0x36fc2b(0x1c52)][_0x36fc2b(0xbae)]||[{'message':_0x27651f[_0x36fc2b(0x2915)](),'type':_0x36fc2b(0x710)}];});}function _0x426e77(_0x5dec19){const _0x23711b=_0x4a7c42;_0x875df0[_0x23711b(0x268e)](_0x5dec19);}}const _0x33ec30=_0x5f1345;;_0x558a6f[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0x15a),'outboundroute',_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x402)];function _0x558a6f(_0x3be63a,_0x221da4,_0x49eafe,_0x411dbf,_0x1bdf32,_0x36d77a,_0x554e52,_0x5a0b87){const _0x2e9461=_0x49a1e3,_0x36ef2d=this;_0x36ef2d['currentUser']=_0x554e52[_0x2e9461(0x808)](),_0x36ef2d['errors']=[],_0x36ef2d[_0x2e9461(0x2021)]=_0x2e9461(0x2073)+(_0x411dbf[_0x2e9461(0x4f4)]||_0x411dbf[_0x2e9461(0x16e1)])[_0x2e9461(0xa3c)](),_0x36ef2d[_0x2e9461(0x20eb)]=angular['copy'](_0x411dbf),_0x36ef2d[_0x2e9461(0x402)]=_0x5a0b87,_0x36ef2d[_0x2e9461(0x6c2)]={};if(_0x36ef2d['outbounddial']['appdata'])switch(_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x4f4)]?_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x4f4)][_0x2e9461(0x2554)]():_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x16e1)][_0x2e9461(0x2554)]()){case _0x2e9461(0x1ad6):break;case _0x2e9461(0x1084):{const _0x2ac415=_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0xacb)][_0x2e9461(0x282c)](',');_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x2125)]=_0x2ac415[0x0],_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x1cbd)]=_0x2ac415[0x1],_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x31b)]=_0x2ac415[_0x2e9461(0x142e)](0x2,_0x2ac415[_0x2e9461(0x1b9e)])[_0x2e9461(0x9a6)](',');}break;case _0x2e9461(0x1b1a):{const _0x553a15=_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0xacb)][_0x2e9461(0x282c)](',');_0x36ef2d[_0x2e9461(0x20eb)]['projectId']=_0x553a15[0x0],_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x4b2)]=_0x553a15[0x1],_0x36ef2d['outbounddial'][_0x2e9461(0x1b1b)]=_0x553a15[0x2],_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x1cbd)]=_0x553a15[0x3],_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x31b)]=_0x553a15[_0x2e9461(0x142e)](0x4,_0x553a15[_0x2e9461(0x1b9e)])[_0x2e9461(0x9a6)](',');}break;case'amazonlex':{const _0x8d04c4=_0x36ef2d[_0x2e9461(0x20eb)]['appdata'][_0x2e9461(0x282c)](',');_0x36ef2d['outbounddial'][_0x2e9461(0x1466)]=_0x8d04c4[0x0],_0x36ef2d['outbounddial']['secretaccesskey']=_0x8d04c4[0x1],_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x17a2)]=_0x8d04c4[0x2],_0x36ef2d[_0x2e9461(0x20eb)]['botname']=_0x8d04c4[0x3],_0x36ef2d[_0x2e9461(0x20eb)]['welcomemessage']=_0x8d04c4[_0x2e9461(0x142e)](0x4,_0x8d04c4['length'])[_0x2e9461(0x9a6)](',');}break;case _0x2e9461(0x21a9):{const _0x4ed602=_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0xacb)][_0x2e9461(0x282c)](',');_0x36ef2d['outbounddial'][_0x2e9461(0x95f)]=isNaN(_0x4ed602[0x0])?_0x4ed602[0x0]:parseInt(_0x4ed602[0x0],0xa),_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x39b)]=_0x4ed602[_0x2e9461(0x142e)](0x1,_0x4ed602[_0x2e9461(0x1b9e)])[_0x2e9461(0x9a6)](',');}break;case _0x2e9461(0x18ca):_0x36ef2d['outbounddial']['text']=_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0xacb)];break;case _0x2e9461(0x1979):_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x2494)]=_0x36ef2d['outbounddial']['appdata'][_0x2e9461(0x282c)]('=')[0x0],_0x36ef2d['outbounddial']['value']=_0x36ef2d[_0x2e9461(0x20eb)]['appdata'][_0x2e9461(0x282c)]('=')[0x1];break;case _0x2e9461(0x1e67):_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x1bd9)]=_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0xacb)];break;default:{const _0x3f57dd=_0x36ef2d['outbounddial'][_0x2e9461(0xacb)]['split'](',');_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x4ef)]=_0x3f57dd[0x0]['split']('/')[0x1],_0x36ef2d['outbounddial'][_0x2e9461(0x267a)]=_0x3f57dd[0x0]['split']('/')[0x2],_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x16d)]=_0x28c606()[_0x2e9461(0x940)](_0x3f57dd[0x1])?_0x3f57dd[0x1]:isNaN(_0x3f57dd[0x1])?_0x3f57dd[0x1]:parseInt(_0x3f57dd[0x1],0xa),_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x59e)]=_0x28c606()[_0x2e9461(0x940)](_0x3f57dd[0x2])?_0x3f57dd[0x2]:isNaN(_0x3f57dd[0x2])?_0x3f57dd[0x2]:parseInt(_0x3f57dd[0x2],0xa),_0x36ef2d[_0x2e9461(0x20eb)]['url']=_0x28c606()[_0x2e9461(0x940)](_0x3f57dd[0x3])?_0x3f57dd[0x3]:isNaN(_0x3f57dd[0x3])?_0x3f57dd[0x3]:parseInt(_0x3f57dd[0x3],0xa);}break;}else{}_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x2185)]&&_0x36ef2d[_0x2e9461(0x20eb)]['type']['toLowerCase']()===_0x2e9461(0xbce)&&_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x4f4)]['toLowerCase']()===_0x2e9461(0x20eb)&&(_0x36ef2d['outbounddial'][_0x2e9461(0x2524)]=_0x36ef2d[_0x2e9461(0x20eb)]['phone']?_0x36ef2d['outbounddial'][_0x2e9461(0x267a)][_0x2e9461(0x282c)]('$')[0x0]:undefined,_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x1a9b)]=_0x36ef2d[_0x2e9461(0x20eb)][_0x2e9461(0x1abe)]?'CALLERID(all)='+_0x36ef2d[_0x2e9461(0x20eb)]['callerID']:undefined);_0x36ef2d[_0x2e9461(0x1407)]=_0x1be41b,_0x36ef2d[_0x2e9461(0x16cb)]=_0x2fc81e,_0x554e52[_0x2e9461(0x4de)](_0x2e9461(0x333))?_0x36d77a['trunk'][_0x2e9461(0x896)]({'fields':_0x2e9461(0x1427),'sort':_0x2e9461(0x2494),'nolimit':_0x2e9461(0x1685)})[_0x2e9461(0x15e7)][_0x2e9461(0x64a)](function(_0x91b7be){const _0xe0c921=_0x2e9461;_0x36ef2d[_0xe0c921(0xe23)]=_0x91b7be['rows']||[];})['catch'](function(_0x3a67a2){const _0x5610d1=_0x2e9461;_0x49eafe[_0x5610d1(0x1bd0)]({'title':_0x3a67a2[_0x5610d1(0x10b3)]?_0x5610d1(0x575)+_0x3a67a2[_0x5610d1(0x10b3)]+_0x5610d1(0x21db)+_0x3a67a2['statusText']:_0x5610d1(0x1d82),'msg':_0x3a67a2[_0x5610d1(0x1c52)]?JSON['stringify'](_0x3a67a2[_0x5610d1(0x1c52)]):_0x3a67a2[_0x5610d1(0x2915)]()});}):_0x36d77a[_0x2e9461(0x4ef)][_0x2e9461(0x896)]({'fields':_0x2e9461(0x1427),'sort':_0x2e9461(0x2494),'nolimit':_0x2e9461(0x1685)})['$promise']['then'](function(_0x34e5b7){const _0x34de87=_0x2e9461;_0x36ef2d[_0x34de87(0xe23)]=_0x34e5b7[_0x34de87(0x28b8)]||[];})[_0x2e9461(0x64a)](function(){const _0x4fd1bf=_0x2e9461;return _0x36d77a[_0x4fd1bf(0x16b2)][_0x4fd1bf(0x896)]({'userProfileId':_0x36ef2d['currentUser']['userProfileId'],'sectionId':0x3f3})[_0x4fd1bf(0x15e7)];})[_0x2e9461(0x64a)](function(_0x242527){const _0x37a5cd=_0x2e9461,_0xcf62bc=_0x242527&&_0x242527[_0x37a5cd(0x28b8)]?_0x242527['rows'][0x0]:null;if(!_0xcf62bc){const _0x526b27=[];let _0x4d558a=null;_0x36ef2d[_0x37a5cd(0x20eb)]&&(_0x4d558a=_0x28c606()[_0x37a5cd(0x27bc)](_0x36ef2d['trunks'],{'name':_0x36ef2d[_0x37a5cd(0x20eb)][_0x37a5cd(0x4ef)]}));for(let _0x270795=0x0;_0x270795<_0x36ef2d['trunks'][_0x37a5cd(0x1b9e)];_0x270795++){_0x4d558a&&_0x36ef2d[_0x37a5cd(0xe23)][_0x270795]['id']===_0x4d558a['id']&&(_0x36ef2d[_0x37a5cd(0xe23)][_0x270795][_0x37a5cd(0xd4f)]=![],_0x526b27[_0x37a5cd(0x1954)](_0x36ef2d['trunks'][_0x270795]));}_0x36ef2d['trunks']=_0x526b27;}else{if(!_0xcf62bc['autoAssociation'])return _0x36d77a[_0x37a5cd(0x1617)][_0x37a5cd(0x896)]({'sectionId':_0xcf62bc['id']})[_0x37a5cd(0x15e7)][_0x37a5cd(0x64a)](function(_0xae54c6){const _0x12abb2=_0x37a5cd,_0xa9e3b0=_0x28c606()[_0x12abb2(0x1de5)](_0xae54c6[_0x12abb2(0x28b8)],function(_0x46f06e){const _0x58baeb=_0x12abb2;return _0x28c606()[_0x58baeb(0x27bc)](_0x36ef2d[_0x58baeb(0xe23)],{'id':_0x46f06e[_0x58baeb(0x145)]});});let _0x1e1dd0=null;_0x36ef2d[_0x12abb2(0x20eb)]&&(_0x1e1dd0=_0x28c606()['find'](_0x36ef2d[_0x12abb2(0xe23)],{'name':_0x36ef2d[_0x12abb2(0x20eb)][_0x12abb2(0x4ef)]}));if(_0x1e1dd0&&!_0x28c606()[_0x12abb2(0x25f8)](_0xa9e3b0,['id',_0x1e1dd0['id']])){const _0xfa6a0=_0x28c606()[_0x12abb2(0x27bc)](_0x36ef2d[_0x12abb2(0xe23)],{'id':_0x1e1dd0['id']});_0xfa6a0[_0x12abb2(0xd4f)]=![],_0xa9e3b0[_0x12abb2(0x1954)](_0xfa6a0);}_0x36ef2d[_0x12abb2(0xe23)]=_0xa9e3b0;});}})['catch'](function(_0x249147){const _0x525c11=_0x2e9461;_0x49eafe[_0x525c11(0x1bd0)]({'title':_0x249147[_0x525c11(0x10b3)]?_0x525c11(0x575)+_0x249147[_0x525c11(0x10b3)]+'\x20-\x20'+_0x249147['statusText']:_0x525c11(0x89a),'msg':_0x249147[_0x525c11(0x1c52)]?JSON[_0x525c11(0x2317)](_0x249147['data']):_0x249147[_0x525c11(0x2915)]()});}),_0x554e52['hasRole'](_0x2e9461(0x333))?_0x36d77a[_0x2e9461(0xac8)][_0x2e9461(0x896)]({'fields':_0x2e9461(0x1427),'sort':'name','nolimit':_0x2e9461(0x1685)})[_0x2e9461(0x15e7)]['then'](function(_0x48cc5a){const _0x172cc5=_0x2e9461;_0x36ef2d[_0x172cc5(0x16a6)]=_0x48cc5a['rows']||[];})['catch'](function(_0x2f46c0){const _0x394464=_0x2e9461;_0x49eafe[_0x394464(0x1bd0)]({'title':_0x2f46c0[_0x394464(0x10b3)]?_0x394464(0x575)+_0x2f46c0[_0x394464(0x10b3)]+_0x394464(0x21db)+_0x2f46c0[_0x394464(0x2115)]:_0x394464(0x28be),'msg':_0x2f46c0['data']?JSON[_0x394464(0x2317)](_0x2f46c0[_0x394464(0x1c52)]):_0x2f46c0[_0x394464(0x2915)]()});}):_0x36d77a[_0x2e9461(0xac8)]['get']({'fields':_0x2e9461(0x1427),'sort':_0x2e9461(0x2494),'nolimit':_0x2e9461(0x1685)})['$promise'][_0x2e9461(0x64a)](function(_0x194b88){const _0x2a379f=_0x2e9461;_0x36ef2d[_0x2a379f(0x16a6)]=_0x194b88['rows']||[];})[_0x2e9461(0x64a)](function(){const _0x2700d1=_0x2e9461;return _0x36d77a[_0x2700d1(0x16b2)][_0x2700d1(0x896)]({'userProfileId':_0x36ef2d['currentUser'][_0x2700d1(0x21ac)],'sectionId':0x3f0})[_0x2700d1(0x15e7)];})[_0x2e9461(0x64a)](function(_0x8fb365){const _0x4e8144=_0x2e9461,_0x647795=_0x8fb365&&_0x8fb365[_0x4e8144(0x28b8)]?_0x8fb365[_0x4e8144(0x28b8)][0x0]:null;if(!_0x647795){const _0x5c0ec5=[];let _0x441b1c=null;_0x36ef2d[_0x4e8144(0x20eb)]&&(_0x441b1c=_0x28c606()[_0x4e8144(0x27bc)](_0x36ef2d[_0x4e8144(0x16a6)],{'name':_0x36ef2d[_0x4e8144(0x20eb)][_0x4e8144(0xac8)]}));for(let _0x1fc290=0x0;_0x1fc290<_0x36ef2d[_0x4e8144(0x16a6)][_0x4e8144(0x1b9e)];_0x1fc290++){_0x441b1c&&_0x36ef2d[_0x4e8144(0x16a6)][_0x1fc290]['id']===_0x441b1c['id']&&(_0x36ef2d[_0x4e8144(0x16a6)][_0x1fc290][_0x4e8144(0xd4f)]=![],_0x5c0ec5[_0x4e8144(0x1954)](_0x36ef2d[_0x4e8144(0x16a6)][_0x1fc290]));}_0x36ef2d[_0x4e8144(0x16a6)]=_0x5c0ec5;}else{if(!_0x647795[_0x4e8144(0x11da)])return _0x36d77a[_0x4e8144(0x1617)][_0x4e8144(0x896)]({'sectionId':_0x647795['id']})[_0x4e8144(0x15e7)][_0x4e8144(0x64a)](function(_0x370ec7){const _0x210c82=_0x4e8144,_0x48b902=_0x28c606()[_0x210c82(0x1de5)](_0x370ec7['rows'],function(_0x446816){const _0x124967=_0x210c82;return _0x28c606()[_0x124967(0x27bc)](_0x36ef2d[_0x124967(0x16a6)],{'id':_0x446816[_0x124967(0x145)]});});let _0x2547a1=null;_0x36ef2d[_0x210c82(0x20eb)]&&(_0x2547a1=_0x28c606()['find'](_0x36ef2d[_0x210c82(0x16a6)],{'name':_0x36ef2d[_0x210c82(0x20eb)]['tag']}));if(_0x2547a1&&!_0x28c606()['some'](_0x48b902,['id',_0x2547a1['id']])){const _0x29c594=_0x28c606()[_0x210c82(0x27bc)](_0x36ef2d[_0x210c82(0x16a6)],{'id':_0x2547a1['id']});_0x29c594[_0x210c82(0xd4f)]=![],_0x48b902[_0x210c82(0x1954)](_0x29c594);}_0x36ef2d[_0x210c82(0x16a6)]=_0x48b902;});}})[_0x2e9461(0x20cd)](function(_0x445904){const _0x2ffa55=_0x2e9461;_0x49eafe[_0x2ffa55(0x1bd0)]({'title':_0x445904['status']?_0x2ffa55(0x575)+_0x445904[_0x2ffa55(0x10b3)]+_0x2ffa55(0x21db)+_0x445904[_0x2ffa55(0x2115)]:_0x2ffa55(0x14a7),'msg':_0x445904['data']?JSON[_0x2ffa55(0x2317)](_0x445904[_0x2ffa55(0x1c52)]):_0x445904['toString']()});});function _0x1be41b(){const _0x41ed57=_0x2e9461;_0x36ef2d[_0x41ed57(0xbae)]=[];const _0x2bfaea=[];_0x36ef2d[_0x41ed57(0x20eb)][_0x41ed57(0x2185)]&&_0x36ef2d['outbounddial']['type'][_0x41ed57(0x2554)]()===_0x41ed57(0xbce)&&_0x36ef2d[_0x41ed57(0x20eb)][_0x41ed57(0x4f4)]===_0x41ed57(0x17b6)&&(_0x36ef2d[_0x41ed57(0x20eb)]['phone']=_0x1bdf32[_0x41ed57(0x242b)]?(_0x36ef2d[_0x41ed57(0x20eb)][_0x41ed57(0x2524)]||'')+_0x41ed57(0x1a75)+_0x1bdf32['cutdigits']+'}':(_0x36ef2d[_0x41ed57(0x20eb)]['prefix']||'')+_0x41ed57(0x5ad),_0x1bdf32[_0x41ed57(0x1097)]!==_0x41ed57(0x2507)?_0x36ef2d[_0x41ed57(0x20eb)][_0x41ed57(0x59e)]['indexOf'](_0x41ed57(0x13e0))<0x0&&(_0x36ef2d[_0x41ed57(0x20eb)]['options']+=_0x41ed57(0x13e0)):_0x36ef2d['outbounddial'][_0x41ed57(0x59e)]=_0x36ef2d[_0x41ed57(0x20eb)][_0x41ed57(0x59e)][_0x41ed57(0x1353)](_0x41ed57(0x13e0),''));if(_0x36ef2d['outbounddial'][_0x41ed57(0x4f4)]&&_0x36ef2d[_0x41ed57(0x20eb)]['appType']===_0x41ed57(0x1ad6)){}else switch((_0x36ef2d[_0x41ed57(0x20eb)]['app']||_0x36ef2d[_0x41ed57(0x20eb)]['appType'])[_0x41ed57(0x2554)]()){case _0x41ed57(0x1979):_0x36ef2d['outbounddial']['appdata']=_0x36ef2d[_0x41ed57(0x20eb)]['name']+'='+_0x36ef2d[_0x41ed57(0x20eb)][_0x41ed57(0x1096)];break;case _0x41ed57(0x1ad6):break;default:_0x2bfaea[0x0]=[_0x41ed57(0x2644),_0x36ef2d[_0x41ed57(0x20eb)][_0x41ed57(0x4ef)],_0x36ef2d[_0x41ed57(0x20eb)]['phone']][_0x41ed57(0x9a6)]('/'),_0x2bfaea[0x1]=_0x36ef2d[_0x41ed57(0x20eb)][_0x41ed57(0x16d)],_0x2bfaea[0x2]=_0x36ef2d['outbounddial'][_0x41ed57(0x59e)],_0x2bfaea[0x3]=_0x36ef2d[_0x41ed57(0x20eb)][_0x41ed57(0x2761)],_0x36ef2d[_0x41ed57(0x20eb)]['appdata']=_0x2bfaea['join'](',');}_0x2fc81e(_0x36ef2d['outbounddial']);}function _0x2fc81e(_0x1497bc){const _0x46a9ff=_0x2e9461;_0x3be63a[_0x46a9ff(0x268e)](_0x1497bc);}}const _0x557082=_0x558a6f;;_0x118917[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1d38),'userProfileSection'];function _0x118917(_0x33eef3,_0x426adc,_0x2d8684,_0x372b2d,_0x5514c1,_0x96e12d,_0x3e9e2a,_0x33a78d,_0x29cda2,_0x38c1bb,_0xca8ed6,_0x3d5287){const _0x14eb06=_0x49a1e3,_0x267dc7=this;_0x267dc7[_0x14eb06(0x1d3d)]=_0x38c1bb[_0x14eb06(0x808)](),_0x267dc7['license']=_0x96e12d,_0x267dc7['setting']=_0x3e9e2a,_0x267dc7[_0x14eb06(0xccc)]=_0x267dc7['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x267dc7[_0x14eb06(0xb36)]=_0x426adc['protocol']()+_0x14eb06(0xe1f)+_0x426adc[_0x14eb06(0x1e5d)](),_0x267dc7[_0x14eb06(0x1d38)]=_0xca8ed6||_0x33eef3[_0x14eb06(0x1b48)][_0x14eb06(0x1d38)]||{},_0x267dc7[_0x14eb06(0x16b2)]=_0x3d5287&&_0x3d5287[_0x14eb06(0xb90)]==0x1?_0x3d5287['rows'][0x0]:null,_0x267dc7['crudPermissions']=_0x38c1bb[_0x14eb06(0xa7e)](_0x267dc7['userProfileSection']?_0x267dc7['userProfileSection'][_0x14eb06(0x402)]:null),_0x267dc7[_0x14eb06(0x6c2)]={},_0x267dc7[_0x14eb06(0x197c)]=_0x33eef3['params'][_0x14eb06(0x1222)]||0x0,_0x267dc7[_0x14eb06(0x2540)]=_0x29cda2[_0x14eb06(0x772)],_0x267dc7[_0x14eb06(0x215f)]=_0x2195bc,_0x267dc7[_0x14eb06(0xf91)]=_0x4e7910,_0x38c1bb[_0x14eb06(0x4de)](_0x14eb06(0x333))?_0x33a78d[_0x14eb06(0x1faa)][_0x14eb06(0x896)]({'fields':_0x14eb06(0x1427),'sort':_0x14eb06(0x2494),'nolimit':'true'})['$promise']['then'](function(_0x318c0b){const _0x9e81b2=_0x14eb06;_0x267dc7[_0x9e81b2(0xad1)]=_0x318c0b[_0x9e81b2(0x28b8)]||[];})['catch'](function(_0x191a76){const _0x466f85=_0x14eb06;_0x29cda2[_0x466f85(0x1bd0)]({'title':_0x191a76[_0x466f85(0x10b3)]?_0x466f85(0x575)+_0x191a76[_0x466f85(0x10b3)]+_0x466f85(0x21db)+_0x191a76[_0x466f85(0x2115)]:_0x466f85(0xbea),'msg':_0x191a76[_0x466f85(0x1c52)]?JSON[_0x466f85(0x2317)](_0x191a76[_0x466f85(0x1c52)]):_0x191a76[_0x466f85(0x2915)]()});}):_0x33a78d['voiceContext'][_0x14eb06(0x896)]({'fields':_0x14eb06(0x1427),'sort':_0x14eb06(0x2494),'nolimit':_0x14eb06(0x1685)})['$promise'][_0x14eb06(0x64a)](function(_0x360a94){const _0x4326ae=_0x14eb06;_0x267dc7['contexts']=_0x360a94[_0x4326ae(0x28b8)]||[];})[_0x14eb06(0x64a)](function(){const _0xd25948=_0x14eb06;return _0x33a78d[_0xd25948(0x16b2)][_0xd25948(0x896)]({'userProfileId':_0x267dc7[_0xd25948(0x1d3d)]['userProfileId'],'sectionId':0x195})[_0xd25948(0x15e7)];})[_0x14eb06(0x64a)](function(_0x44d432){const _0x83731b=_0x14eb06,_0x2a73bc=_0x44d432&&_0x44d432[_0x83731b(0x28b8)]?_0x44d432[_0x83731b(0x28b8)][0x0]:null;if(!_0x2a73bc)return _0x33a78d[_0x83731b(0x1faa)]['get']({'fields':_0x83731b(0x1427),'sort':_0x83731b(0x2494),'nolimit':'true','defaultEntry':0x1})[_0x83731b(0x15e7)][_0x83731b(0x64a)](function(_0xc54293){const _0x5924e3=_0x83731b;_0x267dc7['contexts']=_0xc54293[_0x5924e3(0x28b8)]||[];});else{if(!_0x2a73bc[_0x83731b(0x11da)])return _0x33a78d[_0x83731b(0x1617)][_0x83731b(0x896)]({'sectionId':_0x2a73bc['id']})['$promise'][_0x83731b(0x64a)](function(_0x343254){const _0x389d85=_0x83731b,_0x2a823b=_0x28c606()[_0x389d85(0x1de5)](_0x343254[_0x389d85(0x28b8)],function(_0x2277a3){const _0x4f5904=_0x389d85;return _0x28c606()[_0x4f5904(0x27bc)](_0x267dc7['contexts'],{'id':_0x2277a3[_0x4f5904(0x145)]});});let _0x3c21f6=null;_0x267dc7[_0x389d85(0x1d38)]&&(_0x3c21f6=_0x28c606()[_0x389d85(0x27bc)](_0x267dc7['contexts'],{'name':_0x267dc7[_0x389d85(0x1d38)][_0x389d85(0x139)]}));if(_0x3c21f6&&!_0x28c606()[_0x389d85(0x25f8)](_0x2a823b,['id',_0x3c21f6['id']])){const _0x584149=_0x28c606()[_0x389d85(0x27bc)](_0x267dc7[_0x389d85(0xad1)],{'id':_0x3c21f6['id']});_0x584149['canSelect']=![],_0x2a823b[_0x389d85(0x1954)](_0x584149);}_0x267dc7['contexts']=_0x2a823b;});}})[_0x14eb06(0x20cd)](function(_0x29f989){const _0x1b99fc=_0x14eb06;_0x29cda2[_0x1b99fc(0x1bd0)]({'title':_0x29f989[_0x1b99fc(0x10b3)]?_0x1b99fc(0x575)+_0x29f989[_0x1b99fc(0x10b3)]+_0x1b99fc(0x21db)+_0x29f989[_0x1b99fc(0x2115)]:_0x1b99fc(0x184b),'msg':_0x29f989[_0x1b99fc(0x1c52)]?JSON[_0x1b99fc(0x2317)](_0x29f989['data']):_0x29f989['toString']()});});function _0x2195bc(){const _0x2034be=_0x14eb06;_0x33eef3['go']('app.voice.outboundroutes',{},{'reload':_0x2034be(0x59c)});}function _0x4e7910(){const _0x3d6af1=_0x14eb06;_0x33a78d[_0x3d6af1(0x1438)]['update']({'id':_0x267dc7[_0x3d6af1(0x1d38)]['id']},_0x267dc7['outboundroute'])[_0x3d6af1(0x15e7)]['then'](function(){const _0x5e57e0=_0x3d6af1;_0x29cda2[_0x5e57e0(0x1339)]({'title':_0x5e57e0(0x1a99),'msg':_0x267dc7[_0x5e57e0(0x1d38)][_0x5e57e0(0x2494)]?_0x267dc7[_0x5e57e0(0x1d38)][_0x5e57e0(0x2494)]+_0x5e57e0(0x2032):''});})['catch'](function(_0x30cdb5){const _0x4e7b37=_0x3d6af1;_0x29cda2[_0x4e7b37(0x1bd0)]({'title':_0x30cdb5[_0x4e7b37(0x10b3)]?_0x4e7b37(0x575)+_0x30cdb5[_0x4e7b37(0x10b3)]+_0x4e7b37(0x21db)+_0x30cdb5[_0x4e7b37(0x2115)]:'SYSTEM:GETvoiceExtension','msg':_0x30cdb5['data']?JSON['stringify'](_0x30cdb5['data']):_0x30cdb5[_0x4e7b37(0x2915)]()});});}}const _0x15bfb4=_0x118917;;const _0x2bf705=_0x2e4a48['p']+_0x49a1e3(0xd40);;_0x13808c['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),'outboundroutes',_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xa19),'msUtils','toasty',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x13808c(_0x7e9873,_0x4457b,_0x3f59a2,_0x272ac5,_0x157820,_0x33a226,_0x5e7de8,_0x24c812,_0x1f4d5e,_0x20f7d5,_0x200dc0,_0x8e3bb9,_0x3b0130,_0x3fbfae,_0x3f9cc7,_0x1a4e1f,_0x2fbf39){const _0x4e4eb9=_0x49a1e3,_0x47a1db=this;_0x47a1db['license']=_0x1a4e1f,_0x47a1db[_0x4e4eb9(0x28d6)]=_0x2fbf39,_0x47a1db[_0x4e4eb9(0x1d3d)]=_0x3f9cc7[_0x4e4eb9(0x808)](),_0x47a1db[_0x4e4eb9(0x1a93)]=_0x1f4d5e||{'count':0x0,'rows':[]},_0x47a1db[_0x4e4eb9(0x16a8)]=_0x20f7d5,_0x47a1db[_0x4e4eb9(0x16b2)]=_0x200dc0&&_0x200dc0[_0x4e4eb9(0xb90)]==0x1?_0x200dc0['rows'][0x0]:null,_0x47a1db['crudPermissions']=_0x3f9cc7[_0x4e4eb9(0xa7e)](_0x47a1db[_0x4e4eb9(0x16b2)]?_0x47a1db[_0x4e4eb9(0x16b2)][_0x4e4eb9(0x402)]:null),_0x47a1db[_0x4e4eb9(0x185d)]='outboundroutes',_0x47a1db['listOrder']='',_0x47a1db[_0x4e4eb9(0x2748)]=null,_0x47a1db[_0x4e4eb9(0xc7d)]=[],_0x47a1db[_0x4e4eb9(0x289a)]={'fields':_0x4e4eb9(0x1031),'type':_0x4e4eb9(0xbce),'sort':'-updatedAt','VoiceExtensionId':_0x4e4eb9(0x8f1),'limit':0xa,'page':0x1},_0x47a1db[_0x4e4eb9(0x1d3a)]=_0x28c606()['keyBy']([{'option':_0x4e4eb9(0x2507),'value':_0x4e4eb9(0x1fcf)},{'option':'wav','value':'\x27wav\x27'},{'option':'wav49','value':'\x27WAV\x27'},{'option':_0x4e4eb9(0x8e1),'value':_0x4e4eb9(0x17cb)}],function(_0x559999){const _0x9984f4=_0x4e4eb9;return _0x28c606()['replace'](_0x559999[_0x9984f4(0x1096)],new RegExp('\x27','g'),'');}),_0x47a1db[_0x4e4eb9(0xff6)]=_0x5aeeb1,_0x47a1db[_0x4e4eb9(0x1262)]=_0x514100,_0x47a1db['success']=_0x301394,_0x47a1db[_0x4e4eb9(0x539)]=_0x551640,_0x47a1db[_0x4e4eb9(0x20f7)]=_0x4412bd,_0x47a1db[_0x4e4eb9(0x2777)]=_0x4d8b50,_0x47a1db[_0x4e4eb9(0x18e7)]=_0x4ebb90,_0x47a1db[_0x4e4eb9(0xa7c)]=_0x6c73f,_0x47a1db[_0x4e4eb9(0xe4e)]=_0x2c2a2c,_0x47a1db[_0x4e4eb9(0x8a0)]=_0x3b80d8,_0x3f9cc7['hasRole'](_0x4e4eb9(0x333))?_0x8e3bb9[_0x4e4eb9(0x1faa)][_0x4e4eb9(0x896)]({'fields':_0x4e4eb9(0x1427),'sort':'name','nolimit':_0x4e4eb9(0x1685)})['$promise']['then'](function(_0x1b7aa1){const _0x4243fd=_0x4e4eb9;_0x47a1db['contexts']=_0x1b7aa1[_0x4243fd(0x28b8)]||[];})[_0x4e4eb9(0x20cd)](function(_0x19be6b){const _0xdcb3bb=_0x4e4eb9;_0x3fbfae[_0xdcb3bb(0x1bd0)]({'title':_0x19be6b['status']?_0xdcb3bb(0x575)+_0x19be6b['status']+'\x20-\x20'+_0x19be6b[_0xdcb3bb(0x2115)]:_0xdcb3bb(0xbea),'msg':_0x19be6b[_0xdcb3bb(0x1c52)]?JSON['stringify'](_0x19be6b['data']):_0x19be6b[_0xdcb3bb(0x2915)]()});}):_0x8e3bb9['voiceContext'][_0x4e4eb9(0x896)]({'fields':_0x4e4eb9(0x1427),'sort':_0x4e4eb9(0x2494),'nolimit':_0x4e4eb9(0x1685)})[_0x4e4eb9(0x15e7)][_0x4e4eb9(0x64a)](function(_0x26bd0e){const _0x57a92a=_0x4e4eb9;_0x47a1db[_0x57a92a(0xad1)]=_0x26bd0e[_0x57a92a(0x28b8)]||[];})['then'](function(){const _0x323e1a=_0x4e4eb9;return _0x8e3bb9[_0x323e1a(0x16b2)][_0x323e1a(0x896)]({'userProfileId':_0x47a1db[_0x323e1a(0x1d3d)][_0x323e1a(0x21ac)],'sectionId':0x195})[_0x323e1a(0x15e7)];})[_0x4e4eb9(0x64a)](function(_0xa2cc11){const _0x34a23d=_0x4e4eb9,_0x7d6d67=_0xa2cc11&&_0xa2cc11[_0x34a23d(0x28b8)]?_0xa2cc11[_0x34a23d(0x28b8)][0x0]:null;if(!_0x7d6d67)return _0x8e3bb9[_0x34a23d(0x1faa)][_0x34a23d(0x896)]({'fields':_0x34a23d(0x1427),'sort':_0x34a23d(0x2494),'nolimit':_0x34a23d(0x1685),'defaultEntry':0x1})[_0x34a23d(0x15e7)][_0x34a23d(0x64a)](function(_0x380194){const _0x75b37d=_0x34a23d;_0x47a1db[_0x75b37d(0xad1)]=_0x380194['rows']||[];});else{if(!_0x7d6d67[_0x34a23d(0x11da)])return _0x8e3bb9[_0x34a23d(0x1617)][_0x34a23d(0x896)]({'sectionId':_0x7d6d67['id']})[_0x34a23d(0x15e7)][_0x34a23d(0x64a)](function(_0x2132c9){const _0x29b600=_0x34a23d,_0x348b5e=_0x28c606()[_0x29b600(0x1de5)](_0x2132c9[_0x29b600(0x28b8)],function(_0x890006){const _0x570a1f=_0x29b600;return _0x28c606()[_0x570a1f(0x27bc)](_0x47a1db['contexts'],{'id':_0x890006[_0x570a1f(0x145)]});});let _0x3a2801=null;_0x47a1db[_0x29b600(0x1d38)]&&(_0x3a2801=_0x28c606()[_0x29b600(0x27bc)](_0x47a1db[_0x29b600(0xad1)],{'name':_0x47a1db['outboundroute'][_0x29b600(0x139)]}));if(_0x3a2801&&!_0x28c606()[_0x29b600(0x25f8)](_0x348b5e,['id',_0x3a2801['id']])){const _0x3470bd=_0x28c606()[_0x29b600(0x27bc)](_0x47a1db[_0x29b600(0xad1)],{'id':_0x3a2801['id']});_0x3470bd[_0x29b600(0xd4f)]=![],_0x348b5e['push'](_0x3470bd);}_0x47a1db['contexts']=_0x348b5e;});}})[_0x4e4eb9(0x20cd)](function(_0xa5f938){const _0x55fa97=_0x4e4eb9;_0x3fbfae['error']({'title':_0xa5f938['status']?_0x55fa97(0x575)+_0xa5f938[_0x55fa97(0x10b3)]+_0x55fa97(0x21db)+_0xa5f938[_0x55fa97(0x2115)]:_0x55fa97(0x184b),'msg':_0xa5f938[_0x55fa97(0x1c52)]?JSON[_0x55fa97(0x2317)](_0xa5f938[_0x55fa97(0x1c52)]):_0xa5f938[_0x55fa97(0x2915)]()});});function _0x5aeeb1(_0x12d005){const _0x2d7dd1=_0x4e4eb9;_0x3f59a2['go'](_0x2d7dd1(0x207c),{'id':_0x12d005['id'],'outboundroute':_0x12d005,'crudPermissions':_0x47a1db['crudPermissions']});}function _0x514100(_0x30080a,_0x3b01f8){const _0x8d7665=_0x4e4eb9,_0x4aa257=_0x157820[_0x8d7665(0x856)]()['title'](_0x8d7665(0x1231)+_0x28c606()[_0x8d7665(0xc01)](_0x8d7665(0x1d38))+'?')[_0x8d7665(0x33a)](''+(_0x30080a[_0x8d7665(0x2494)]||'outboundroute')+_0x8d7665(0x26d0)+_0x8d7665(0x4b8))[_0x8d7665(0x213e)](_0x8d7665(0x13b9))[_0x8d7665(0x2283)](_0x3b01f8)['ok']('OK')[_0x8d7665(0x101a)](_0x8d7665(0x18fd));_0x157820['show'](_0x4aa257)[_0x8d7665(0x64a)](function(){_0x4d8b50(_0x30080a);},function(){const _0xe067aa=_0x8d7665;console['log'](_0xe067aa(0x18fd));});}let _0x13f2d9=!![],_0x135622=0x1;_0x7e9873['$watch']('vm.query.filter',function(_0x1fab25,_0x4137ae){const _0x164a6f=_0x4e4eb9;_0x13f2d9?_0x5e7de8(function(){_0x13f2d9=![];}):(!_0x4137ae&&(_0x135622=_0x47a1db['query'][_0x164a6f(0xc72)]),_0x1fab25!==_0x4137ae&&(_0x47a1db[_0x164a6f(0x289a)][_0x164a6f(0xc72)]=0x1),!_0x1fab25&&(_0x47a1db[_0x164a6f(0x289a)][_0x164a6f(0xc72)]=_0x135622),_0x47a1db[_0x164a6f(0x539)]());});function _0x301394(_0x3919fc){const _0x2a923e=_0x4e4eb9;_0x47a1db[_0x2a923e(0x1a93)]=_0x3919fc||{'count':0x0,'rows':[]};}function _0x551640(){const _0x543799=_0x4e4eb9;_0x47a1db[_0x543799(0x289a)][_0x543799(0x24f9)]=(_0x47a1db['query'][_0x543799(0xc72)]-0x1)*_0x47a1db[_0x543799(0x289a)][_0x543799(0x25bb)],_0x3f9cc7['hasRole']('admin')?_0x47a1db['promise']=_0x8e3bb9[_0x543799(0x1438)][_0x543799(0x896)](_0x47a1db['query'],_0x301394)[_0x543799(0x15e7)]:(_0x47a1db[_0x543799(0x289a)]['id']=_0x47a1db[_0x543799(0x16a8)]['id'],_0x47a1db['query'][_0x543799(0xa21)]='OutboundRoutes',_0x47a1db['promise']=_0x8e3bb9['userProfile'][_0x543799(0x2565)](_0x47a1db[_0x543799(0x289a)],_0x301394)[_0x543799(0x15e7)]);}function _0x4412bd(_0x2fae5d,_0x206fe7){const _0xb283de=_0x4e4eb9;_0x157820['show']({'controller':_0xb283de(0x630),'controllerAs':'vm','templateUrl':_0x2bf705,'parent':angular[_0xb283de(0x1f81)](_0x33a226[_0xb283de(0xb49)]),'targetEvent':_0x2fae5d,'clickOutsideToClose':!![],'locals':{'outboundroute':_0x206fe7,'outboundroutes':_0x47a1db[_0xb283de(0x1a93)][_0xb283de(0x28b8)],'license':_0x47a1db[_0xb283de(0x1947)],'setting':_0x47a1db[_0xb283de(0x28d6)],'crudPermissions':_0x47a1db[_0xb283de(0x402)]}});}function _0x4d8b50(_0x8ba859){const _0x5e4a7d=_0x4e4eb9;_0x8e3bb9['voicePrefix'][_0x5e4a7d(0x896)]({'VoiceExtensionId':_0x8ba859['id']})[_0x5e4a7d(0x15e7)]['then'](function(_0x3c3a73){const _0xfb63d5=_0x5e4a7d;if(_0x3c3a73&&_0x3c3a73['rows']&&_0x3c3a73[_0xfb63d5(0x28b8)][_0xfb63d5(0x1b9e)]>0x0)return _0x3fbfae['error']({'title':'Outbound\x20route\x20not\x20deleted!','msg':'You\x20can\x27t\x20remove\x20an\x20outbound\x20route\x20associated\x20to\x20an\x20out\x20prefix'});else _0x8e3bb9[_0xfb63d5(0x1438)][_0xfb63d5(0xabd)]({'id':_0x8ba859['id']})[_0xfb63d5(0x15e7)][_0xfb63d5(0x64a)](function(){const _0xa89a6b=_0xfb63d5;_0x28c606()[_0xa89a6b(0x21c7)](_0x47a1db[_0xa89a6b(0x1a93)][_0xa89a6b(0x28b8)],{'id':_0x8ba859['id']}),_0x47a1db[_0xa89a6b(0x1a93)][_0xa89a6b(0xb90)]-=0x1,!_0x47a1db[_0xa89a6b(0x1a93)]['rows']['length']&&_0x47a1db[_0xa89a6b(0x539)](),_0x3fbfae['success']({'title':_0x28c606()[_0xa89a6b(0xc01)]('OutboundRoute')+_0xa89a6b(0x2502),'msg':_0x8ba859[_0xa89a6b(0x2494)]?_0x8ba859[_0xa89a6b(0x2494)]+_0xa89a6b(0x1fa8):''});})[_0xfb63d5(0x20cd)](function(_0x32e699){const _0x3a7d4d=_0xfb63d5;if(_0x32e699['data']&&_0x32e699[_0x3a7d4d(0x1c52)]['errors']&&_0x32e699[_0x3a7d4d(0x1c52)]['errors'][_0x3a7d4d(0x1b9e)]){_0x47a1db[_0x3a7d4d(0xbae)]=_0x32e699[_0x3a7d4d(0x1c52)][_0x3a7d4d(0xbae)]||[{'message':_0x32e699[_0x3a7d4d(0x2915)](),'type':_0x3a7d4d(0x278b)}];for(let _0x584cfc=0x0;_0x584cfc<_0x32e699[_0x3a7d4d(0x1c52)][_0x3a7d4d(0xbae)]['length'];_0x584cfc++){_0x3fbfae['error']({'title':_0x32e699[_0x3a7d4d(0x1c52)][_0x3a7d4d(0xbae)][_0x584cfc]['type'],'msg':_0x32e699[_0x3a7d4d(0x1c52)][_0x3a7d4d(0xbae)][_0x584cfc][_0x3a7d4d(0x18ca)]});}}else _0x3fbfae['error']({'title':_0x32e699['status']?_0x3a7d4d(0x575)+_0x32e699[_0x3a7d4d(0x10b3)]+_0x3a7d4d(0x21db)+_0x32e699[_0x3a7d4d(0x2115)]:'SYSTEM:DELETEvoiceExtension','msg':_0x32e699[_0x3a7d4d(0x1c52)]?JSON[_0x3a7d4d(0x2317)](_0x32e699['data'][_0x3a7d4d(0x18ca)]):_0x32e699[_0x3a7d4d(0x18ca)]||_0x32e699[_0x3a7d4d(0x2915)]()});});});}function _0x4ebb90(){const _0x5ce328=_0x4e4eb9,_0x2d30fa=angular[_0x5ce328(0x289e)](_0x47a1db[_0x5ce328(0xc7d)]);return _0x47a1db[_0x5ce328(0xc7d)]=[],_0x2d30fa;}function _0x6c73f(_0x644a52){const _0x4faf24=_0x4e4eb9,_0x12e05c=_0x157820[_0x4faf24(0x856)]()[_0x4faf24(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20outboundroutes?')[_0x4faf24(0x33a)](''+_0x47a1db[_0x4faf24(0xc7d)]['length']+'\x20selected'+_0x4faf24(0x4b8))[_0x4faf24(0x213e)](_0x4faf24(0x1343))[_0x4faf24(0x2283)](_0x644a52)['ok']('OK')[_0x4faf24(0x101a)](_0x4faf24(0x18fd));_0x157820[_0x4faf24(0xa60)](_0x12e05c)[_0x4faf24(0x64a)](function(){const _0x272048=_0x4faf24;_0x47a1db[_0x272048(0xc7d)][_0x272048(0x1397)](function(_0x3a34b3){_0x4d8b50(_0x3a34b3);}),_0x47a1db[_0x272048(0xc7d)]=[];});}function _0x2c2a2c(){const _0x2cfcc7=_0x4e4eb9;_0x47a1db[_0x2cfcc7(0xc7d)]=[];}function _0x3b80d8(){const _0x213d45=_0x4e4eb9;_0x47a1db[_0x213d45(0xc7d)]=_0x47a1db[_0x213d45(0x1a93)][_0x213d45(0x28b8)];}}const _0x39768c=_0x13808c;;_0x2aa0b6[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x411),'voicemail',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting',_0x49a1e3(0x402)];function _0x2aa0b6(_0x22a11c,_0x4dc631,_0x199123,_0x329916,_0x49cd1b,_0xe1100b,_0x4782c0,_0x262dfb,_0xe4b207,_0x4471c9,_0x248b53,_0x4611c2,_0x4c98ef,_0x1ecffd){const _0x42a4ed=_0x49a1e3,_0x598ee5=this;_0x598ee5['currentUser']=_0x248b53[_0x42a4ed(0x808)](),_0x598ee5[_0x42a4ed(0xbae)]=[],_0x598ee5[_0x42a4ed(0x28d6)]=_0x4c98ef,_0x598ee5[_0x42a4ed(0x1947)]=_0x4611c2,_0x598ee5[_0x42a4ed(0x402)]=_0x1ecffd,_0x598ee5[_0x42a4ed(0x6c2)]={},_0x598ee5['passwordPattern']=_0x598ee5[_0x42a4ed(0x28d6)]&&_0x598ee5[_0x42a4ed(0x28d6)][_0x42a4ed(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x598ee5['title']='VOICE.EDIT_VOICEMAIL',_0x598ee5[_0x42a4ed(0x25b)]=angular[_0x42a4ed(0x289e)](_0xe4b207),_0x598ee5['voicemails']=_0x262dfb,_0x598ee5[_0x42a4ed(0x18ab)]=![];!_0x598ee5['voicemail']&&(_0x598ee5[_0x42a4ed(0x25b)]={'attach':'no'},_0x598ee5[_0x42a4ed(0x2021)]='VOICE.NEW_VOICEMAIL',_0x598ee5[_0x42a4ed(0x18ab)]=!![]);_0x598ee5[_0x42a4ed(0x1726)]=_0xfaa6c2,_0x598ee5['saveVoicemail']=_0x25535c,_0x598ee5['deleteVoicemail']=_0x4a4ba1,_0x598ee5['getDateFromString']=_0xd70938,_0x598ee5[_0x42a4ed(0x16cb)]=_0x5f27fd;function _0xfaa6c2(){const _0x53d674=_0x42a4ed;_0x598ee5[_0x53d674(0xbae)]=[],_0x4471c9[_0x53d674(0x1e43)][_0x53d674(0x2479)](_0x598ee5[_0x53d674(0x25b)])[_0x53d674(0x15e7)][_0x53d674(0x64a)](function(_0x493d67){const _0x2f3f58=_0x53d674;_0x598ee5[_0x2f3f58(0x411)]['unshift'](_0x493d67[_0x2f3f58(0x14f8)]()),_0x4782c0[_0x2f3f58(0x1339)]({'title':_0x2f3f58(0x693),'msg':_0x598ee5['voicemail'][_0x2f3f58(0x2494)]?_0x598ee5[_0x2f3f58(0x25b)]['name']+_0x2f3f58(0x258d):''}),_0x5f27fd(_0x493d67);})['catch'](function(_0x32e305){const _0x5e79e3=_0x53d674;if(_0x32e305[_0x5e79e3(0x1c52)]&&_0x32e305[_0x5e79e3(0x1c52)][_0x5e79e3(0xbae)]&&_0x32e305[_0x5e79e3(0x1c52)][_0x5e79e3(0xbae)]['length']){_0x598ee5[_0x5e79e3(0xbae)]=_0x32e305['data'][_0x5e79e3(0xbae)]||[{'message':_0x32e305[_0x5e79e3(0x2915)](),'type':'api.voiceMail.save'}];for(let _0x38630f=0x0;_0x38630f<_0x32e305['data'][_0x5e79e3(0xbae)]['length'];_0x38630f+=0x1){_0x4782c0[_0x5e79e3(0x1bd0)]({'title':_0x32e305[_0x5e79e3(0x1c52)]['errors'][_0x38630f][_0x5e79e3(0x2185)],'msg':_0x32e305[_0x5e79e3(0x1c52)]['errors'][_0x38630f][_0x5e79e3(0x18ca)]});}}else _0x4782c0['error']({'title':_0x32e305['status']?_0x5e79e3(0x575)+_0x32e305[_0x5e79e3(0x10b3)]+'\x20-\x20'+_0x32e305['statusText']:_0x5e79e3(0x2737),'msg':_0x32e305[_0x5e79e3(0x1c52)]?JSON[_0x5e79e3(0x2317)](_0x32e305[_0x5e79e3(0x1c52)]['message']):_0x32e305[_0x5e79e3(0x2915)]()});});}function _0x25535c(){const _0x3495cb=_0x42a4ed;_0x598ee5['errors']=[],_0x4471c9[_0x3495cb(0x1e43)][_0x3495cb(0x2603)]({'id':_0x598ee5['voicemail']['id']},_0x598ee5['voicemail'])[_0x3495cb(0x15e7)][_0x3495cb(0x64a)](function(_0x1093bf){const _0x54c3f7=_0x3495cb,_0x1d08e7=_0x28c606()[_0x54c3f7(0x27bc)](_0x598ee5[_0x54c3f7(0x411)],{'id':_0x1093bf['id']});_0x1d08e7&&_0x28c606()[_0x54c3f7(0x14fe)](_0x1d08e7,_0x28c606()[_0x54c3f7(0x27bb)](_0x1093bf[_0x54c3f7(0x14f8)](),_0x28c606()[_0x54c3f7(0x1ec6)](_0x1d08e7))),_0x4782c0[_0x54c3f7(0x1339)]({'title':_0x54c3f7(0x2774),'msg':_0x598ee5['voicemail']['name']?_0x598ee5[_0x54c3f7(0x25b)][_0x54c3f7(0x2494)]+'\x20has\x20been\x20saved!':''}),_0x5f27fd(_0x1093bf);})['catch'](function(_0x43acdf){const _0x2fe816=_0x3495cb;if(_0x43acdf['data']&&_0x43acdf[_0x2fe816(0x1c52)][_0x2fe816(0xbae)]&&_0x43acdf['data'][_0x2fe816(0xbae)]['length']){_0x598ee5[_0x2fe816(0xbae)]=_0x43acdf['data'][_0x2fe816(0xbae)]||[{'message':_0x43acdf['toString'](),'type':'api.voiceMail.update'}];for(let _0x41bd3b=0x0;_0x41bd3b<_0x43acdf[_0x2fe816(0x1c52)][_0x2fe816(0xbae)][_0x2fe816(0x1b9e)];_0x41bd3b++){_0x4782c0[_0x2fe816(0x1bd0)]({'title':_0x43acdf[_0x2fe816(0x1c52)][_0x2fe816(0xbae)][_0x41bd3b][_0x2fe816(0x2185)],'msg':_0x43acdf[_0x2fe816(0x1c52)]['errors'][_0x41bd3b]['message']});}}else _0x4782c0[_0x2fe816(0x1bd0)]({'title':_0x43acdf[_0x2fe816(0x10b3)]?_0x2fe816(0x575)+_0x43acdf['status']+_0x2fe816(0x21db)+_0x43acdf[_0x2fe816(0x2115)]:_0x2fe816(0x25dc),'msg':_0x43acdf[_0x2fe816(0x1c52)]?JSON[_0x2fe816(0x2317)](_0x43acdf[_0x2fe816(0x1c52)][_0x2fe816(0x18ca)]):_0x43acdf['toString']()});});}function _0x4a4ba1(_0x5d711a){const _0x196080=_0x42a4ed;_0x598ee5['errors']=[];const _0x45c01f=_0x329916[_0x196080(0x856)]()[_0x196080(0x2021)](_0x196080(0x103a))[_0x196080(0x12b8)](_0x196080(0x1977))[_0x196080(0x213e)](_0x196080(0x243f))['ok'](_0x196080(0x2664))[_0x196080(0x101a)](_0x196080(0x1dc6))[_0x196080(0x2283)](_0x5d711a);_0x329916['show'](_0x45c01f)['then'](function(){const _0x1064d7=_0x196080;_0x4471c9[_0x1064d7(0x1e43)]['delete']({'id':_0x598ee5[_0x1064d7(0x25b)]['id']})['$promise'][_0x1064d7(0x64a)](function(){const _0x557bfe=_0x1064d7;_0x28c606()['remove'](_0x598ee5[_0x557bfe(0x411)],{'id':_0x598ee5[_0x557bfe(0x25b)]['id']}),_0x4782c0[_0x557bfe(0x1339)]({'title':'Voicemail\x20properly\x20deleted!','msg':(_0x598ee5['voicemail']['name']||_0x557bfe(0x25b))+_0x557bfe(0x1fa8)}),_0x5f27fd(_0x598ee5[_0x557bfe(0x25b)]);})['catch'](function(_0x1d5046){const _0xbc6922=_0x1064d7;if(_0x1d5046['data']&&_0x1d5046[_0xbc6922(0x1c52)][_0xbc6922(0xbae)]&&_0x1d5046['data'][_0xbc6922(0xbae)]['length']){_0x598ee5['errors']=_0x1d5046['data'][_0xbc6922(0xbae)]||[{'message':_0x1d5046[_0xbc6922(0x2915)](),'type':'api.voiceMail.delete'}];for(let _0x386bc3=0x0;_0x386bc3<_0x1d5046[_0xbc6922(0x1c52)][_0xbc6922(0xbae)][_0xbc6922(0x1b9e)];_0x386bc3++){_0x4782c0[_0xbc6922(0x1bd0)]({'title':_0x1d5046[_0xbc6922(0x1c52)][_0xbc6922(0xbae)][_0x386bc3]['type'],'msg':_0x1d5046[_0xbc6922(0x1c52)][_0xbc6922(0xbae)][_0x386bc3][_0xbc6922(0x18ca)]});}}else _0x4782c0[_0xbc6922(0x1bd0)]({'title':_0x1d5046[_0xbc6922(0x10b3)]?_0xbc6922(0x575)+_0x1d5046[_0xbc6922(0x10b3)]+_0xbc6922(0x21db)+_0x1d5046[_0xbc6922(0x2115)]:'api.voiceMail.delete','msg':_0x1d5046[_0xbc6922(0x1c52)]?JSON[_0xbc6922(0x2317)](_0x1d5046[_0xbc6922(0x1c52)]['message']):_0x1d5046[_0xbc6922(0x18ca)]||_0x1d5046[_0xbc6922(0x2915)]()});});},function(){});}function _0xd70938(_0x3c8756){return _0x3c8756===null?undefined:new Date(_0x3c8756);}function _0x5f27fd(_0x4e8075){const _0x36fffe=_0x42a4ed;_0x329916[_0x36fffe(0x268e)](_0x4e8075);}}const _0x102b67=_0x2aa0b6;;_0x1d7735[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),'$scope',_0x49a1e3(0x77f),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),'$document','toasty',_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x1d7735(_0x3e2532,_0x424ba3,_0x3b939d,_0x540cf5,_0x408b8b,_0x2b984e,_0x17ca72,_0xb8aea2,_0x487e3f,_0x9c9902,_0x20f81d){const _0x1f732f=_0x49a1e3,_0x11f023=this;_0x11f023[_0x1f732f(0x1d3d)]=_0x20f81d[_0x1f732f(0x808)](),_0x11f023[_0x1f732f(0x25b)]={},_0x11f023[_0x1f732f(0x23ee)]={'count':0x0,'rows':[]},_0x11f023[_0x1f732f(0x2404)]=[],_0x11f023[_0x1f732f(0x402)],_0x11f023[_0x1f732f(0x289a)]={'fields':_0x1f732f(0x1311),'sort':_0x1f732f(0xcdf),'limit':0xa,'page':0x1},_0x11f023[_0x1f732f(0x2354)]=_0x5249d6,_0x11f023['deleteConfirm']=_0x3d0532,_0x11f023['voiceMailMessageDownload']=_0x176f76,_0x11f023[_0x1f732f(0x1339)]=_0x3fcaed,_0x11f023[_0x1f732f(0xc81)]=_0x512735,_0x11f023['exportSelectedVoicemailMessages']=_0x281500,_0x11f023[_0x1f732f(0x13c5)]=_0x597848,_0x11f023[_0x1f732f(0x1dde)]=_0x5ca323;function _0x5249d6(_0x4a2714,_0x4ec543){const _0x770f64=_0x1f732f;_0x11f023[_0x770f64(0x25b)]=_0x4a2714,_0x11f023['crudPermissions']=typeof _0x4ec543!==_0x770f64(0x19a1)?_0x4ec543:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x11f023['query']['id']=_0x11f023['voicemail']['id'],_0x512735();}function _0x176f76(_0x442509,_0x239846,_0x2b8015){const _0x1a3b61=_0x1f732f;return _0x9c9902['voiceMailMessage'][_0x1a3b61(0x19b3)]({'id':_0x442509['id'],'exists':!![],'attachments':_0x2b8015})['$promise'][_0x1a3b61(0x64a)](function(_0x3bebb9){const _0x27509a=_0x1a3b61,_0x4055a4=[_0x3bebb9[_0x27509a(0x5a9)]];let _0x56b3e9=_0x27509a(0x18ca)+_0x442509['id'];const _0x3dcb3e=new Blob(_0x4055a4,{'type':_0x3bebb9[_0x27509a(0x2185)]});_0x56b3e9=_0x442509['msg_id']+_0x27509a(0xb0e);const _0x1eafff=window['document'][_0x27509a(0x2978)]('a');_0x1eafff[_0x27509a(0x1280)](_0x27509a(0x25d0),URL[_0x27509a(0x206)](_0x3dcb3e)),_0x1eafff['setAttribute'](_0x27509a(0x19b3),_0x56b3e9),document[_0x27509a(0xb49)]['appendChild'](_0x1eafff),_0x1eafff['click']();})[_0x1a3b61(0x20cd)](function(_0x1ae5dd){const _0x13060d=_0x1a3b61;if(_0x1ae5dd[_0x13060d(0x1c52)]&&_0x1ae5dd[_0x13060d(0x1c52)]['errors']&&_0x1ae5dd[_0x13060d(0x1c52)][_0x13060d(0xbae)][_0x13060d(0x1b9e)])for(let _0x52e8f7=0x0;_0x52e8f7<_0x1ae5dd[_0x13060d(0x1c52)][_0x13060d(0xbae)][_0x13060d(0x1b9e)];_0x52e8f7+=0x1){_0x487e3f[_0x13060d(0x1bd0)]({'title':_0x1ae5dd[_0x13060d(0x1c52)][_0x13060d(0xbae)][_0x52e8f7][_0x13060d(0x2185)],'msg':_0x1ae5dd['data'][_0x13060d(0xbae)][_0x52e8f7]['message']});}else _0x487e3f[_0x13060d(0x1bd0)]({'title':_0x1ae5dd[_0x13060d(0x10b3)]?'API:'+_0x1ae5dd[_0x13060d(0x10b3)]+'\x20-\x20'+_0x1ae5dd['statusText']:_0x13060d(0x2737),'msg':_0x1ae5dd[_0x13060d(0x1c52)]?JSON[_0x13060d(0x2317)](_0x1ae5dd[_0x13060d(0x1c52)][_0x13060d(0x18ca)]):_0x1ae5dd[_0x13060d(0x2915)]()});});}function _0x3d0532(_0x40fc30,_0x839abd){const _0x3e1b90=_0x1f732f,_0x5b027e=_0x17ca72['confirm']()[_0x3e1b90(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20message?')[_0x3e1b90(0x33a)](_0x3e1b90(0x50b)+(_0x40fc30['name']||_0x40fc30['id']&&_0x28c606()[_0x3e1b90(0x1766)](_0x3e1b90(0x135b))+_0x40fc30['id']||_0x3e1b90(0x18ca))+''+_0x3e1b90(0x4b8))[_0x3e1b90(0x213e)]('delete\x20message')['targetEvent'](_0x839abd)['ok']('OK')[_0x3e1b90(0x101a)](_0x3e1b90(0x18fd));_0x17ca72[_0x3e1b90(0xa60)](_0x5b027e)['then'](function(){_0x597848(_0x40fc30);},function(){const _0x1b6e33=_0x3e1b90;console['log'](_0x1b6e33(0x18fd));});}function _0x3fcaed(_0x517742){const _0x369c82=_0x1f732f;_0x11f023[_0x369c82(0x23ee)]=_0x517742||{'count':0x0,'rows':[]};}function _0x512735(){const _0x3647bf=_0x1f732f;_0x11f023[_0x3647bf(0x289a)]['offset']=(_0x11f023[_0x3647bf(0x289a)]['page']-0x1)*_0x11f023['query'][_0x3647bf(0x25bb)],_0x11f023['promise']=_0x9c9902[_0x3647bf(0x1e43)]['getMessages'](_0x11f023[_0x3647bf(0x289a)],_0x3fcaed)[_0x3647bf(0x15e7)];}function _0x597848(_0x306af9){const _0x687906=_0x1f732f;_0x9c9902[_0x687906(0xd0e)]['delete']({'id':_0x306af9['id']})['$promise'][_0x687906(0x64a)](function(){const _0x5d67d5=_0x687906;_0x28c606()['remove'](_0x11f023[_0x5d67d5(0x23ee)][_0x5d67d5(0x28b8)],{'id':_0x306af9['id']}),_0x11f023[_0x5d67d5(0x23ee)][_0x5d67d5(0xb90)]-=0x1,!_0x11f023[_0x5d67d5(0x23ee)]['rows'][_0x5d67d5(0x1b9e)]&&_0x512735(),_0x487e3f[_0x5d67d5(0x1339)]({'title':_0x5d67d5(0x160f),'msg':_0x306af9[_0x5d67d5(0x2494)]?_0x306af9[_0x5d67d5(0x2494)]+_0x5d67d5(0x1fa8):''});})['catch'](function(_0x566744){const _0xb78f24=_0x687906;if(_0x566744[_0xb78f24(0x1c52)]&&_0x566744[_0xb78f24(0x1c52)][_0xb78f24(0xbae)]&&_0x566744['data'][_0xb78f24(0xbae)]['length']){_0x11f023['errors']=_0x566744['data'][_0xb78f24(0xbae)]||[{'message':_0x566744[_0xb78f24(0x2915)](),'type':_0xb78f24(0x131a)}];for(let _0x558f4b=0x0;_0x558f4b<_0x566744[_0xb78f24(0x1c52)][_0xb78f24(0xbae)][_0xb78f24(0x1b9e)];_0x558f4b++){_0x487e3f[_0xb78f24(0x1bd0)]({'title':_0x566744[_0xb78f24(0x1c52)][_0xb78f24(0xbae)][_0x558f4b][_0xb78f24(0x2185)],'msg':_0x566744['data'][_0xb78f24(0xbae)][_0x558f4b][_0xb78f24(0x18ca)]});}}else _0x487e3f[_0xb78f24(0x1bd0)]({'title':_0x566744['status']?_0xb78f24(0x575)+_0x566744[_0xb78f24(0x10b3)]+_0xb78f24(0x21db)+_0x566744[_0xb78f24(0x2115)]:_0xb78f24(0x131a),'msg':_0x566744['data']?JSON[_0xb78f24(0x2317)](_0x566744[_0xb78f24(0x1c52)][_0xb78f24(0x18ca)]):_0x566744[_0xb78f24(0x18ca)]||_0x566744['toString']()});});}function _0x281500(){const _0x900330=_0x1f732f,_0x119edb=angular[_0x900330(0x289e)](_0x11f023[_0x900330(0x2404)]);return _0x11f023[_0x900330(0x2404)]=[],_0x119edb;}function _0x5ca323(_0x2966f4){const _0x27ae66=_0x1f732f,_0xdf2544=_0x17ca72[_0x27ae66(0x856)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20messages?')[_0x27ae66(0x33a)](_0x27ae66(0x50b)+_0x11f023[_0x27ae66(0x2404)][_0x27ae66(0x1b9e)]+_0x27ae66(0x163e)+_0x27ae66(0x4b8))[_0x27ae66(0x213e)](_0x27ae66(0x19e1))[_0x27ae66(0x2283)](_0x2966f4)['ok']('OK')['cancel'](_0x27ae66(0x18fd));_0x17ca72['show'](_0xdf2544)[_0x27ae66(0x64a)](function(){const _0x12e43b=_0x27ae66;_0x11f023[_0x12e43b(0x2404)][_0x12e43b(0x1397)](function(_0x26b625){_0x597848(_0x26b625);}),_0x11f023[_0x12e43b(0x2404)]=[];});}let _0x283570=!![],_0x286c5d=0x1;_0x424ba3[_0x1f732f(0xc62)](_0x1f732f(0x1200),function(_0x22dfde,_0x3c725a){const _0x5dee8a=_0x1f732f;_0x283570?_0x2b984e(function(){_0x283570=![];}):(!_0x3c725a&&(_0x286c5d=_0x11f023[_0x5dee8a(0x289a)]['page']),_0x22dfde!==_0x3c725a&&(_0x11f023[_0x5dee8a(0x289a)][_0x5dee8a(0xc72)]=0x1),!_0x22dfde&&(_0x11f023['query'][_0x5dee8a(0xc72)]=_0x286c5d),_0x512735());});}const _0x5bb4ca=_0x1d7735;;_0x40172d[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$document',_0x49a1e3(0x298c),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),'Auth','voicemail',_0x49a1e3(0x16b2)];function _0x40172d(_0x2ca454,_0x36adb5,_0x4ad5a6,_0x57ab03,_0x37b177,_0x3de84d,_0x1c3421,_0x397d27,_0x6f2178,_0x4f2356,_0xa191f7,_0xd25371){const _0x3cfb18=_0x49a1e3,_0x3c2142=this;_0x3c2142[_0x3cfb18(0x1d3d)]=_0x4f2356[_0x3cfb18(0x808)](),_0x3c2142[_0x3cfb18(0x1947)]=_0x3de84d,_0x3c2142[_0x3cfb18(0x28d6)]=_0x1c3421,_0x3c2142[_0x3cfb18(0xccc)]=_0x3c2142[_0x3cfb18(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3c2142['location']=_0x36adb5[_0x3cfb18(0x48e)]()+_0x3cfb18(0xe1f)+_0x36adb5[_0x3cfb18(0x1e5d)](),_0x3c2142[_0x3cfb18(0x25b)]=_0xa191f7||_0x2ca454[_0x3cfb18(0x1b48)]['voicemail']||{},_0x3c2142[_0x3cfb18(0x16b2)]=_0xd25371&&_0xd25371[_0x3cfb18(0xb90)]==0x1?_0xd25371[_0x3cfb18(0x28b8)][0x0]:null,_0x3c2142[_0x3cfb18(0x402)]=_0x4f2356[_0x3cfb18(0xa7e)](_0x3c2142[_0x3cfb18(0x16b2)]?_0x3c2142[_0x3cfb18(0x16b2)][_0x3cfb18(0x402)]:null),_0x3c2142['hasModulePermissions']={},_0x3c2142['selectedTab']=_0x2ca454[_0x3cfb18(0x1b48)][_0x3cfb18(0x1222)]||0x0,_0x3c2142[_0x3cfb18(0x2540)]=_0x6f2178[_0x3cfb18(0x772)],_0x3c2142[_0x3cfb18(0x9ca)]=_0x371e80,_0x3c2142[_0x3cfb18(0x1bbe)]=_0x216ee1,_0x4f2356[_0x3cfb18(0x4de)](_0x3cfb18(0x333))?_0x397d27['voiceContext']['get']({'fields':'id,name','sort':_0x3cfb18(0x2494)})[_0x3cfb18(0x15e7)][_0x3cfb18(0x64a)](function(_0x38d525){const _0x273b22=_0x3cfb18;_0x3c2142[_0x273b22(0xad1)]=_0x38d525[_0x273b22(0x28b8)]||[];})[_0x3cfb18(0x20cd)](function(_0x4f06e8){const _0x504e08=_0x3cfb18;_0x6f2178['error']({'title':_0x4f06e8[_0x504e08(0x10b3)]?_0x504e08(0x575)+_0x4f06e8[_0x504e08(0x10b3)]+_0x504e08(0x21db)+_0x4f06e8[_0x504e08(0x2115)]:_0x504e08(0xbea),'msg':_0x4f06e8[_0x504e08(0x1c52)]?JSON['stringify'](_0x4f06e8['data']):_0x4f06e8[_0x504e08(0x2915)]()});}):_0x397d27['voiceContext'][_0x3cfb18(0x896)]({'fields':'id,name','sort':_0x3cfb18(0x2494)})['$promise'][_0x3cfb18(0x64a)](function(_0x26d1f4){const _0x33c04d=_0x3cfb18;_0x3c2142[_0x33c04d(0xad1)]=_0x26d1f4['rows']||[];})[_0x3cfb18(0x64a)](function(){const _0x4d457c=_0x3cfb18;return _0x397d27[_0x4d457c(0x16b2)]['get']({'userProfileId':_0x3c2142[_0x4d457c(0x1d3d)][_0x4d457c(0x21ac)],'sectionId':0x195})['$promise'];})[_0x3cfb18(0x64a)](function(_0x32fe5d){const _0x2507e3=_0x3cfb18,_0x44776e=_0x32fe5d&&_0x32fe5d[_0x2507e3(0x28b8)]?_0x32fe5d[_0x2507e3(0x28b8)][0x0]:null;if(!_0x44776e)return _0x397d27[_0x2507e3(0x1faa)]['get']({'fields':'id,name','sort':'name','defaultEntry':0x1})['$promise'][_0x2507e3(0x64a)](function(_0x3a54ab){const _0xc3b4fc=_0x2507e3;_0x3c2142[_0xc3b4fc(0xad1)]=_0x3a54ab[_0xc3b4fc(0x28b8)]||[];});else{if(!_0x44776e[_0x2507e3(0x11da)])return _0x397d27[_0x2507e3(0x1617)][_0x2507e3(0x896)]({'sectionId':_0x44776e['id']})[_0x2507e3(0x15e7)][_0x2507e3(0x64a)](function(_0x378ebb){const _0x4e0cf3=_0x2507e3,_0x1a92e3=_0x28c606()['map'](_0x378ebb[_0x4e0cf3(0x28b8)],function(_0x48b9b2){const _0x47bca0=_0x4e0cf3;return _0x28c606()[_0x47bca0(0x27bc)](_0x3c2142[_0x47bca0(0xad1)],{'id':_0x48b9b2[_0x47bca0(0x145)]});});let _0x14bcff=null;_0x3c2142[_0x4e0cf3(0x25b)]&&(_0x14bcff=_0x28c606()[_0x4e0cf3(0x27bc)](_0x3c2142[_0x4e0cf3(0xad1)],{'name':_0x3c2142[_0x4e0cf3(0x25b)][_0x4e0cf3(0x139)]}));if(_0x14bcff&&!_0x28c606()[_0x4e0cf3(0x25f8)](_0x1a92e3,['id',_0x14bcff['id']])){const _0x569bb1=_0x28c606()[_0x4e0cf3(0x27bc)](_0x3c2142['contexts'],{'id':_0x14bcff['id']});_0x569bb1[_0x4e0cf3(0xd4f)]=![],_0x1a92e3[_0x4e0cf3(0x1954)](_0x569bb1);}_0x3c2142[_0x4e0cf3(0xad1)]=_0x1a92e3;});}})['catch'](function(_0x45664b){const _0x5774b8=_0x3cfb18;_0x6f2178[_0x5774b8(0x1bd0)]({'title':_0x45664b['status']?_0x5774b8(0x575)+_0x45664b[_0x5774b8(0x10b3)]+'\x20-\x20'+_0x45664b['statusText']:_0x5774b8(0x184b),'msg':_0x45664b[_0x5774b8(0x1c52)]?JSON[_0x5774b8(0x2317)](_0x45664b[_0x5774b8(0x1c52)]):_0x45664b[_0x5774b8(0x2915)]()});});function _0x371e80(){_0x2ca454['go']('app.voice.voicemails',{},{'reload':'app.voice.voicemails'});}function _0x216ee1(){const _0x1227ee=_0x3cfb18;_0x397d27[_0x1227ee(0x1e43)]['update']({'id':_0x3c2142[_0x1227ee(0x25b)]['id']},_0x3c2142[_0x1227ee(0x25b)])[_0x1227ee(0x15e7)][_0x1227ee(0x64a)](function(){const _0x1a27b6=_0x1227ee;_0x6f2178[_0x1a27b6(0x1339)]({'title':'Voicemail\x20updated!','msg':_0x3c2142['voicemail'][_0x1a27b6(0x2494)]?_0x3c2142[_0x1a27b6(0x25b)]['name']+_0x1a27b6(0x2032):''});})[_0x1227ee(0x20cd)](function(_0x5d8ed3){const _0x238635=_0x1227ee;_0x6f2178[_0x238635(0x1bd0)]({'title':_0x5d8ed3['status']?_0x238635(0x575)+_0x5d8ed3['status']+_0x238635(0x21db)+_0x5d8ed3[_0x238635(0x2115)]:_0x238635(0x131a),'msg':_0x5d8ed3[_0x238635(0x1c52)]?JSON[_0x238635(0x2317)](_0x5d8ed3[_0x238635(0x1c52)]):_0x5d8ed3[_0x238635(0x2915)]()});});}}const _0x2c51e3=_0x40172d;;const _0x510aa8=_0x2e4a48['p']+_0x49a1e3(0x9ac);;_0x4842ba['$inject']=[_0x49a1e3(0x1674),'$window','$state',_0x49a1e3(0x2899),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x20d4),'$translate','voicemails','userProfile',_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),'Auth','license',_0x49a1e3(0x28d6)];function _0x4842ba(_0x45a466,_0x4fc5b8,_0x221cc7,_0x5f52f4,_0x2c8d6e,_0x2854d6,_0x3801c4,_0x48c57b,_0x32c093,_0x5967b9,_0x20a341,_0x14f89e,_0x3b7f65,_0x55444d,_0x29c382,_0x1b5acb,_0x522826){const _0x552c90=_0x49a1e3,_0x1c85b7=this;_0x1c85b7[_0x552c90(0x1947)]=_0x1b5acb,_0x1c85b7[_0x552c90(0x28d6)]=_0x522826,_0x1c85b7[_0x552c90(0x1d3d)]=_0x29c382[_0x552c90(0x808)](),_0x1c85b7[_0x552c90(0x411)]=_0x32c093||{'count':0x0,'rows':[]},_0x1c85b7['userProfile']=_0x5967b9,_0x1c85b7[_0x552c90(0x16b2)]=_0x20a341&&_0x20a341['count']==0x1?_0x20a341['rows'][0x0]:null,_0x1c85b7[_0x552c90(0x402)]=_0x29c382['parseCrudPermissions'](_0x1c85b7[_0x552c90(0x16b2)]?_0x1c85b7[_0x552c90(0x16b2)]['crudPermissions']:null),_0x1c85b7[_0x552c90(0x185d)]=_0x552c90(0x411),_0x1c85b7[_0x552c90(0x300)]='',_0x1c85b7[_0x552c90(0x2748)]=null,_0x1c85b7['selectedVoicemails']=[],_0x1c85b7[_0x552c90(0x289a)]={'fields':_0x552c90(0x28c0),'sort':_0x552c90(0x260c),'limit':0xa,'page':0x1},_0x1c85b7[_0x552c90(0xd03)]=_0x28c606()[_0x552c90(0x161e)]([{'option':_0x552c90(0x307),'value':_0x552c90(0x726)},{'option':'No','value':_0x552c90(0x1476)}],function(_0x29ffce){const _0x1315ce=_0x552c90;return _0x28c606()[_0x1315ce(0x1353)](_0x29ffce[_0x1315ce(0x1096)],new RegExp('\x27','g'),'');}),_0x1c85b7['arrayenvelope']=_0x28c606()[_0x552c90(0x161e)]([{'option':_0x552c90(0x307),'value':_0x552c90(0x726)},{'option':'No','value':_0x552c90(0x1476)}],function(_0x523c14){const _0x3ec1d5=_0x552c90;return _0x28c606()[_0x3ec1d5(0x1353)](_0x523c14[_0x3ec1d5(0x1096)],new RegExp('\x27','g'),'');}),_0x1c85b7[_0x552c90(0x2474)]=_0x28c606()[_0x552c90(0x161e)]([{'option':'Yes','value':_0x552c90(0x726)},{'option':'No','value':_0x552c90(0x1476)}],function(_0x487ef8){const _0x47384d=_0x552c90;return _0x28c606()[_0x47384d(0x1353)](_0x487ef8[_0x47384d(0x1096)],new RegExp('\x27','g'),'');}),_0x1c85b7['editstate']=_0x1f9d3a,_0x1c85b7['deleteconfirm']=_0x1fd7f2,_0x1c85b7[_0x552c90(0x1339)]=_0x4b27f9,_0x1c85b7[_0x552c90(0x1f36)]=_0xd6fc5e,_0x1c85b7[_0x552c90(0xf3a)]=_0x1fd0c4,_0x1c85b7['deleteVoicemail']=_0x1ab5c1,_0x1c85b7[_0x552c90(0x18cb)]=_0x30218e,_0x1c85b7[_0x552c90(0x80b)]=_0x5d7606,_0x1c85b7[_0x552c90(0x278a)]=_0x118db3,_0x1c85b7[_0x552c90(0x2917)]=_0x14e6ea;function _0x1f9d3a(_0x39b8da){const _0x1c6caf=_0x552c90;_0x221cc7['go']('app.voice.voicemails.edit',{'id':_0x39b8da['id'],'voicemail':_0x39b8da,'crudPermissions':_0x1c85b7[_0x1c6caf(0x402)]});}function _0x1fd7f2(_0x1d1862,_0x3afc71){const _0x27c56d=_0x552c90,_0x49c8a0=_0x2c8d6e[_0x27c56d(0x856)]()['title'](_0x27c56d(0x1231)+_0x28c606()[_0x27c56d(0xc01)](_0x27c56d(0x25b))+'?')[_0x27c56d(0x33a)](_0x27c56d(0x50b)+(_0x1d1862[_0x27c56d(0x2494)]||_0x27c56d(0x25b))+_0x27c56d(0x26d0)+_0x27c56d(0x4b8))[_0x27c56d(0x213e)]('delete\x20voicemail')['targetEvent'](_0x3afc71)['ok']('OK')[_0x27c56d(0x101a)]('CANCEL');_0x2c8d6e[_0x27c56d(0xa60)](_0x49c8a0)[_0x27c56d(0x64a)](function(){_0x1ab5c1(_0x1d1862);},function(){const _0x30f3f1=_0x27c56d;console[_0x30f3f1(0x9b4)](_0x30f3f1(0x18fd));});}let _0x1e736b=!![],_0x1ae9e0=0x1;_0x45a466['$watch'](_0x552c90(0x1cb9),function(_0x466e65,_0x5ccea6){const _0x433ede=_0x552c90;_0x1e736b?_0x3801c4(function(){_0x1e736b=![];}):(!_0x5ccea6&&(_0x1ae9e0=_0x1c85b7['query'][_0x433ede(0xc72)]),_0x466e65!==_0x5ccea6&&(_0x1c85b7['query'][_0x433ede(0xc72)]=0x1),!_0x466e65&&(_0x1c85b7['query']['page']=_0x1ae9e0),_0x1c85b7[_0x433ede(0x1f36)]());});function _0x4b27f9(_0x30ea00){const _0x30a3d0=_0x552c90;_0x1c85b7[_0x30a3d0(0x411)]=_0x30ea00||{'count':0x0,'rows':[]};}function _0xd6fc5e(){const _0x27e58f=_0x552c90;_0x1c85b7[_0x27e58f(0x289a)][_0x27e58f(0x24f9)]=(_0x1c85b7[_0x27e58f(0x289a)][_0x27e58f(0xc72)]-0x1)*_0x1c85b7[_0x27e58f(0x289a)][_0x27e58f(0x25bb)],_0x29c382[_0x27e58f(0x4de)](_0x27e58f(0x333))?_0x1c85b7[_0x27e58f(0x1713)]=_0x14f89e[_0x27e58f(0x1e43)][_0x27e58f(0x896)](_0x1c85b7[_0x27e58f(0x289a)],_0x4b27f9)[_0x27e58f(0x15e7)]:(_0x1c85b7[_0x27e58f(0x289a)]['id']=_0x1c85b7['userProfile']['id'],_0x1c85b7[_0x27e58f(0x289a)][_0x27e58f(0xa21)]=_0x27e58f(0x1370),_0x1c85b7[_0x27e58f(0x1713)]=_0x14f89e[_0x27e58f(0x16a8)][_0x27e58f(0x2565)](_0x1c85b7[_0x27e58f(0x289a)],_0x4b27f9)['$promise']);}function _0x1fd0c4(_0x43d04b,_0x199b57){const _0x461aae=_0x552c90;_0x2c8d6e[_0x461aae(0xa60)]({'controller':_0x461aae(0x1c29),'controllerAs':'vm','templateUrl':_0x510aa8,'parent':angular[_0x461aae(0x1f81)](_0x2854d6[_0x461aae(0xb49)]),'targetEvent':_0x43d04b,'clickOutsideToClose':!![],'locals':{'voicemail':_0x199b57,'voicemails':_0x1c85b7[_0x461aae(0x411)][_0x461aae(0x28b8)],'license':_0x1c85b7[_0x461aae(0x1947)],'setting':_0x1c85b7[_0x461aae(0x28d6)],'crudPermissions':_0x1c85b7[_0x461aae(0x402)]}});}function _0x1ab5c1(_0x148947){const _0x3ba6b5=_0x552c90;_0x14f89e[_0x3ba6b5(0x1e43)]['delete']({'id':_0x148947['id']})[_0x3ba6b5(0x15e7)][_0x3ba6b5(0x64a)](function(){const _0x204de2=_0x3ba6b5;_0x28c606()[_0x204de2(0x21c7)](_0x1c85b7[_0x204de2(0x411)][_0x204de2(0x28b8)],{'id':_0x148947['id']}),_0x1c85b7[_0x204de2(0x411)][_0x204de2(0xb90)]-=0x1,!_0x1c85b7[_0x204de2(0x411)]['rows'][_0x204de2(0x1b9e)]&&_0x1c85b7[_0x204de2(0x1f36)](),_0x55444d['success']({'title':_0x28c606()[_0x204de2(0xc01)]('Voicemail')+_0x204de2(0x2502),'msg':_0x148947[_0x204de2(0x2494)]?_0x148947[_0x204de2(0x2494)]+'\x20has\x20been\x20deleted!':''});})[_0x3ba6b5(0x20cd)](function(_0x46a8cc){const _0x4012e7=_0x3ba6b5;if(_0x46a8cc['data']&&_0x46a8cc[_0x4012e7(0x1c52)][_0x4012e7(0xbae)]&&_0x46a8cc[_0x4012e7(0x1c52)][_0x4012e7(0xbae)]['length']){_0x1c85b7['errors']=_0x46a8cc[_0x4012e7(0x1c52)]['errors']||[{'message':_0x46a8cc[_0x4012e7(0x2915)](),'type':_0x4012e7(0x24ca)}];for(let _0x1d9242=0x0;_0x1d9242<_0x46a8cc[_0x4012e7(0x1c52)][_0x4012e7(0xbae)][_0x4012e7(0x1b9e)];_0x1d9242++){_0x55444d['error']({'title':_0x46a8cc[_0x4012e7(0x1c52)][_0x4012e7(0xbae)][_0x1d9242][_0x4012e7(0x2185)],'msg':_0x46a8cc[_0x4012e7(0x1c52)][_0x4012e7(0xbae)][_0x1d9242][_0x4012e7(0x18ca)]});}}else _0x55444d[_0x4012e7(0x1bd0)]({'title':_0x46a8cc[_0x4012e7(0x10b3)]?_0x4012e7(0x575)+_0x46a8cc['status']+'\x20-\x20'+_0x46a8cc[_0x4012e7(0x2115)]:_0x4012e7(0x24ca),'msg':_0x46a8cc[_0x4012e7(0x1c52)]?JSON['stringify'](_0x46a8cc[_0x4012e7(0x1c52)][_0x4012e7(0x18ca)]):_0x46a8cc['message']||_0x46a8cc[_0x4012e7(0x2915)]()});});}function _0x30218e(){const _0x178bcb=_0x552c90,_0x47eae5=angular['copy'](_0x1c85b7[_0x178bcb(0x287e)]);return _0x1c85b7[_0x178bcb(0x287e)]=[],_0x47eae5;}function _0x5d7606(_0x8a0760){const _0x3b0b0c=_0x552c90,_0x3bed49=_0x2c8d6e[_0x3b0b0c(0x856)]()[_0x3b0b0c(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voicemails?')[_0x3b0b0c(0x33a)](_0x3b0b0c(0x50b)+_0x1c85b7[_0x3b0b0c(0x287e)]['length']+_0x3b0b0c(0x163e)+_0x3b0b0c(0x4b8))['ariaLabel'](_0x3b0b0c(0x2127))[_0x3b0b0c(0x2283)](_0x8a0760)['ok']('OK')[_0x3b0b0c(0x101a)](_0x3b0b0c(0x18fd));_0x2c8d6e[_0x3b0b0c(0xa60)](_0x3bed49)[_0x3b0b0c(0x64a)](function(){const _0x5877d8=_0x3b0b0c;_0x1c85b7[_0x5877d8(0x287e)][_0x5877d8(0x1397)](function(_0x354dab){_0x1ab5c1(_0x354dab);}),_0x1c85b7['selectedVoicemails']=[];});}function _0x118db3(){const _0x11601b=_0x552c90;_0x1c85b7[_0x11601b(0x287e)]=[];}function _0x14e6ea(){const _0x33d7ac=_0x552c90;_0x1c85b7[_0x33d7ac(0x287e)]=_0x1c85b7[_0x33d7ac(0x411)][_0x33d7ac(0x28b8)];}}const _0x12422a=_0x4842ba;;_0x1ac881[_0x49a1e3(0x1e73)]=['$scope','$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x28d0),_0x49a1e3(0x23ef),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x1ac881(_0x254d5d,_0x465fac,_0xe9c473,_0x448c6d,_0x15cb04,_0x2c4455,_0x32f4fb,_0x10b2b6,_0x1820bf,_0x1fb329,_0x294123,_0x2661f0,_0x15fb7e,_0x3101f0){const _0x352e8f=_0x49a1e3,_0x49c889=this;_0x49c889[_0x352e8f(0x1d3d)]=_0x294123['getCurrentUser'](),_0x49c889[_0x352e8f(0xbae)]=[],_0x49c889['setting']=_0x15fb7e,_0x49c889[_0x352e8f(0x1947)]=_0x2661f0,_0x49c889[_0x352e8f(0x402)]=_0x3101f0,_0x49c889[_0x352e8f(0x6c2)]={},_0x49c889[_0x352e8f(0xccc)]=_0x49c889[_0x352e8f(0x28d6)]&&_0x49c889[_0x352e8f(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x49c889[_0x352e8f(0x2021)]='VOICE.EDIT_VOICEPREFIX',_0x49c889[_0x352e8f(0x23ef)]=angular[_0x352e8f(0x289e)](_0x1820bf),_0x49c889[_0x352e8f(0x28d0)]=_0x10b2b6,_0x49c889[_0x352e8f(0x1d9c)]=![];!_0x49c889['voicePrefix']&&(_0x49c889[_0x352e8f(0x23ef)]={},_0x49c889[_0x352e8f(0x2021)]=_0x352e8f(0x180b),_0x49c889[_0x352e8f(0x1d9c)]=!![]);_0x49c889[_0x352e8f(0xe94)]=_0x38c2ea,_0x49c889[_0x352e8f(0x140c)]=_0x2e7ec5,_0x49c889[_0x352e8f(0x1dce)]=_0x49a283,_0x49c889['getDateFromString']=_0x574dc0,_0x49c889[_0x352e8f(0x16cb)]=_0x2cc4f6,_0x294123[_0x352e8f(0x4de)]('admin')?_0x1fb329[_0x352e8f(0x1438)][_0x352e8f(0x896)]({'fields':'id,exten','type':_0x352e8f(0xbce),'VoiceExtensionId':'null','nolimit':_0x352e8f(0x1685)})['$promise'][_0x352e8f(0x64a)](function(_0x349a45){const _0x41fa36=_0x352e8f;_0x49c889[_0x41fa36(0x20a0)]=_0x349a45['rows']||[];})[_0x352e8f(0x20cd)](function(_0x1936d8){const _0x86d4b7=_0x352e8f;_0x32f4fb[_0x86d4b7(0x1bd0)]({'title':_0x1936d8[_0x86d4b7(0x10b3)]?'API:'+_0x1936d8[_0x86d4b7(0x10b3)]+_0x86d4b7(0x21db)+_0x1936d8['statusText']:_0x86d4b7(0x76f),'msg':_0x1936d8[_0x86d4b7(0x1c52)]?JSON[_0x86d4b7(0x2317)](_0x1936d8[_0x86d4b7(0x1c52)]):_0x1936d8[_0x86d4b7(0x2915)]()});}):_0x1fb329[_0x352e8f(0x1438)]['get']({'fields':_0x352e8f(0x105b),'type':_0x352e8f(0xbce),'VoiceExtensionId':_0x352e8f(0x8f1),'nolimit':'true'})[_0x352e8f(0x15e7)][_0x352e8f(0x64a)](function(_0x3210fa){const _0x56c43c=_0x352e8f;_0x49c889[_0x56c43c(0x20a0)]=_0x3210fa[_0x56c43c(0x28b8)]||[];})[_0x352e8f(0x64a)](function(){const _0x4b16b4=_0x352e8f;return _0x1fb329[_0x4b16b4(0x16b2)][_0x4b16b4(0x896)]({'userProfileId':_0x49c889['currentUser'][_0x4b16b4(0x21ac)],'sectionId':0x193})[_0x4b16b4(0x15e7)];})[_0x352e8f(0x64a)](function(_0x371006){const _0x157c29=_0x352e8f,_0x10bd55=_0x371006&&_0x371006[_0x157c29(0x28b8)]?_0x371006['rows'][0x0]:null;if(!_0x10bd55){const _0x33e10b=[];let _0x338dd8=null;_0x49c889[_0x157c29(0x23ef)]&&(_0x338dd8=_0x28c606()[_0x157c29(0x27bc)](_0x49c889[_0x157c29(0x20a0)],{'id':Number(_0x49c889[_0x157c29(0x23ef)][_0x157c29(0x2551)])}));for(let _0x413c22=0x0;_0x413c22<_0x49c889[_0x157c29(0x20a0)]['length'];_0x413c22++){_0x338dd8&&_0x49c889[_0x157c29(0x20a0)][_0x413c22]['id']===_0x338dd8['id']&&(_0x49c889[_0x157c29(0x20a0)][_0x413c22]['canSelect']=![],_0x33e10b[_0x157c29(0x1954)](_0x49c889[_0x157c29(0x20a0)][_0x413c22]));}_0x49c889['outboundRoutes']=_0x33e10b;}else{if(!_0x10bd55[_0x157c29(0x11da)])return _0x1fb329['userProfileResource'][_0x157c29(0x896)]({'sectionId':_0x10bd55['id']})[_0x157c29(0x15e7)][_0x157c29(0x64a)](function(_0x18f5d9){const _0x5b4635=_0x157c29,_0x2f411d=_0x28c606()[_0x5b4635(0x1de5)](_0x18f5d9['rows'],function(_0x3b3a60){const _0x4d8483=_0x5b4635;return _0x28c606()['find'](_0x49c889[_0x4d8483(0x20a0)],{'id':_0x3b3a60['resourceId']});});let _0x14732f=null;_0x49c889[_0x5b4635(0x23ef)]&&(_0x14732f=_0x28c606()[_0x5b4635(0x27bc)](_0x49c889[_0x5b4635(0x20a0)],{'id':Number(_0x49c889[_0x5b4635(0x23ef)][_0x5b4635(0x2551)])}));if(_0x14732f&&!_0x28c606()['some'](_0x2f411d,['id',_0x14732f['id']])){const _0x4bb955=_0x28c606()[_0x5b4635(0x27bc)](_0x49c889[_0x5b4635(0x20a0)],{'id':_0x14732f['id']});_0x4bb955[_0x5b4635(0xd4f)]=![],_0x2f411d[_0x5b4635(0x1954)](_0x4bb955);}_0x49c889[_0x5b4635(0x20a0)]=_0x2f411d;});}})[_0x352e8f(0x20cd)](function(_0x2662fa){const _0x312ed9=_0x352e8f;_0x32f4fb[_0x312ed9(0x1bd0)]({'title':_0x2662fa[_0x312ed9(0x10b3)]?_0x312ed9(0x575)+_0x2662fa[_0x312ed9(0x10b3)]+_0x312ed9(0x21db)+_0x2662fa[_0x312ed9(0x2115)]:_0x312ed9(0x1bac),'msg':_0x2662fa[_0x312ed9(0x1c52)]?JSON['stringify'](_0x2662fa['data']):_0x2662fa[_0x312ed9(0x2915)]()});});function _0x38c2ea(){const _0x28e977=_0x352e8f;_0x49c889[_0x28e977(0xbae)]=[],_0x1fb329[_0x28e977(0x23ef)][_0x28e977(0x2479)](_0x49c889[_0x28e977(0x23ef)])[_0x28e977(0x15e7)]['then'](function(_0x12c861){const _0x2f59c8=_0x28e977;_0x49c889['voicePrefixes'][_0x2f59c8(0x1891)](_0x12c861[_0x2f59c8(0x14f8)]()),_0x32f4fb[_0x2f59c8(0x1339)]({'title':_0x2f59c8(0x2361),'msg':_0x49c889[_0x2f59c8(0x23ef)][_0x2f59c8(0x2494)]?_0x49c889['voicePrefix'][_0x2f59c8(0x2494)]+_0x2f59c8(0x258d):''}),_0x2cc4f6(_0x12c861);})[_0x28e977(0x20cd)](function(_0x463d70){const _0x290c0f=_0x28e977;if(_0x463d70['data']&&_0x463d70[_0x290c0f(0x1c52)]['errors']&&_0x463d70[_0x290c0f(0x1c52)][_0x290c0f(0xbae)][_0x290c0f(0x1b9e)]){_0x49c889[_0x290c0f(0xbae)]=_0x463d70[_0x290c0f(0x1c52)][_0x290c0f(0xbae)]||[{'message':_0x463d70['toString'](),'type':_0x290c0f(0xd9a)}];for(let _0x1a4a03=0x0;_0x1a4a03<_0x463d70[_0x290c0f(0x1c52)][_0x290c0f(0xbae)][_0x290c0f(0x1b9e)];_0x1a4a03+=0x1){_0x32f4fb['error']({'title':_0x463d70[_0x290c0f(0x1c52)][_0x290c0f(0xbae)][_0x1a4a03][_0x290c0f(0x2185)],'msg':_0x463d70[_0x290c0f(0x1c52)][_0x290c0f(0xbae)][_0x1a4a03][_0x290c0f(0x18ca)]});}}else _0x32f4fb['error']({'title':_0x463d70[_0x290c0f(0x10b3)]?_0x290c0f(0x575)+_0x463d70[_0x290c0f(0x10b3)]+'\x20-\x20'+_0x463d70[_0x290c0f(0x2115)]:'api.voicePrefix.save','msg':_0x463d70['data']?JSON[_0x290c0f(0x2317)](_0x463d70[_0x290c0f(0x1c52)][_0x290c0f(0x18ca)]):_0x463d70['toString']()});});}function _0x2e7ec5(){const _0x52df01=_0x352e8f;_0x49c889[_0x52df01(0xbae)]=[],_0x1fb329[_0x52df01(0x23ef)]['update']({'id':_0x49c889[_0x52df01(0x23ef)]['id']},_0x49c889[_0x52df01(0x23ef)])['$promise'][_0x52df01(0x64a)](function(_0x6b9f23){const _0x749769=_0x52df01,_0x3df4f7=_0x28c606()[_0x749769(0x27bc)](_0x49c889[_0x749769(0x28d0)],{'id':_0x6b9f23['id']});_0x3df4f7&&_0x28c606()[_0x749769(0x14fe)](_0x3df4f7,_0x28c606()[_0x749769(0x27bb)](_0x6b9f23['toJSON'](),_0x28c606()[_0x749769(0x1ec6)](_0x3df4f7))),_0x32f4fb[_0x749769(0x1339)]({'title':'voicePrefix\x20properly\x20saved!','msg':_0x49c889[_0x749769(0x23ef)]['name']?_0x49c889[_0x749769(0x23ef)][_0x749769(0x2494)]+_0x749769(0x271):''}),_0x2cc4f6(_0x6b9f23);})[_0x52df01(0x20cd)](function(_0x32b757){const _0x50a969=_0x52df01;if(_0x32b757[_0x50a969(0x1c52)]&&_0x32b757[_0x50a969(0x1c52)][_0x50a969(0xbae)]&&_0x32b757[_0x50a969(0x1c52)][_0x50a969(0xbae)][_0x50a969(0x1b9e)]){_0x49c889[_0x50a969(0xbae)]=_0x32b757['data'][_0x50a969(0xbae)]||[{'message':_0x32b757[_0x50a969(0x2915)](),'type':_0x50a969(0x2c5)}];for(let _0x17d1b1=0x0;_0x17d1b1<_0x32b757[_0x50a969(0x1c52)][_0x50a969(0xbae)][_0x50a969(0x1b9e)];_0x17d1b1++){_0x32f4fb[_0x50a969(0x1bd0)]({'title':_0x32b757[_0x50a969(0x1c52)]['errors'][_0x17d1b1]['type'],'msg':_0x32b757['data'][_0x50a969(0xbae)][_0x17d1b1]['message']});}}else _0x32f4fb[_0x50a969(0x1bd0)]({'title':_0x32b757[_0x50a969(0x10b3)]?_0x50a969(0x575)+_0x32b757[_0x50a969(0x10b3)]+_0x50a969(0x21db)+_0x32b757[_0x50a969(0x2115)]:_0x50a969(0x2c5),'msg':_0x32b757['data']?JSON[_0x50a969(0x2317)](_0x32b757['data'][_0x50a969(0x18ca)]):_0x32b757[_0x50a969(0x2915)]()});});}function _0x49a283(_0x1be420){const _0x3d6efa=_0x352e8f;_0x49c889[_0x3d6efa(0xbae)]=[];const _0x5f5c42=_0x448c6d[_0x3d6efa(0x856)]()[_0x3d6efa(0x2021)](_0x3d6efa(0x103a))[_0x3d6efa(0x12b8)](_0x3d6efa(0xc86))['ariaLabel'](_0x3d6efa(0x2416))['ok'](_0x3d6efa(0x2664))[_0x3d6efa(0x101a)](_0x3d6efa(0x1dc6))[_0x3d6efa(0x2283)](_0x1be420);_0x448c6d[_0x3d6efa(0xa60)](_0x5f5c42)[_0x3d6efa(0x64a)](function(){const _0x4ba643=_0x3d6efa;_0x1fb329[_0x4ba643(0x23ef)][_0x4ba643(0xabd)]({'id':_0x49c889[_0x4ba643(0x23ef)]['id']})[_0x4ba643(0x15e7)][_0x4ba643(0x64a)](function(){const _0x3c9de1=_0x4ba643;_0x28c606()['remove'](_0x49c889[_0x3c9de1(0x28d0)],{'id':_0x49c889['voicePrefix']['id']}),_0x32f4fb[_0x3c9de1(0x1339)]({'title':_0x3c9de1(0x18e8),'msg':(_0x49c889['voicePrefix'][_0x3c9de1(0x2494)]||_0x3c9de1(0x23ef))+_0x3c9de1(0x1fa8)}),_0x2cc4f6(_0x49c889[_0x3c9de1(0x23ef)]);})['catch'](function(_0x52cea3){const _0x5f0881=_0x4ba643;if(_0x52cea3[_0x5f0881(0x1c52)]&&_0x52cea3[_0x5f0881(0x1c52)][_0x5f0881(0xbae)]&&_0x52cea3[_0x5f0881(0x1c52)][_0x5f0881(0xbae)]['length']){_0x49c889[_0x5f0881(0xbae)]=_0x52cea3[_0x5f0881(0x1c52)][_0x5f0881(0xbae)]||[{'message':_0x52cea3[_0x5f0881(0x2915)](),'type':_0x5f0881(0xe90)}];for(let _0x178c1d=0x0;_0x178c1d<_0x52cea3[_0x5f0881(0x1c52)][_0x5f0881(0xbae)][_0x5f0881(0x1b9e)];_0x178c1d++){_0x32f4fb['error']({'title':_0x52cea3[_0x5f0881(0x1c52)][_0x5f0881(0xbae)][_0x178c1d][_0x5f0881(0x2185)],'msg':_0x52cea3[_0x5f0881(0x1c52)][_0x5f0881(0xbae)][_0x178c1d][_0x5f0881(0x18ca)]});}}else _0x32f4fb[_0x5f0881(0x1bd0)]({'title':_0x52cea3['status']?'API:'+_0x52cea3[_0x5f0881(0x10b3)]+_0x5f0881(0x21db)+_0x52cea3['statusText']:_0x5f0881(0xe90),'msg':_0x52cea3[_0x5f0881(0x1c52)]?JSON['stringify'](_0x52cea3[_0x5f0881(0x1c52)][_0x5f0881(0x18ca)]):_0x52cea3[_0x5f0881(0x18ca)]||_0x52cea3[_0x5f0881(0x2915)]()});});},function(){});}function _0x574dc0(_0x5ea0ed){return _0x5ea0ed===null?undefined:new Date(_0x5ea0ed);}function _0x2cc4f6(_0x552c66){_0x448c6d['hide'](_0x552c66);}}const _0x1133c5=_0x1ac881;;_0x466bd5[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x23ef),'voicePrefixes',_0x49a1e3(0x252e),_0x49a1e3(0x298c),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x466bd5(_0x3362fd,_0xc72f9d,_0x3b84a3,_0xcca426,_0x3c896e,_0xf7312e,_0x23090f,_0x58f6ea,_0x34d04b,_0x35f569){const _0x588389=_0x49a1e3,_0x323d34=this;_0x323d34[_0x588389(0x1d3d)]=_0x34d04b[_0x588389(0x808)](),_0x323d34['voicePrefix']=_0x3c896e,_0x323d34['crudPermissions']=_0x35f569,_0x323d34[_0x588389(0x252e)]=_0x23090f,_0x323d34['items']=[],_0x323d34[_0x588389(0x13d1)]=[],_0x323d34[_0x588389(0x1f4f)]=[],_0x323d34[_0x588389(0x206b)]=[],_0x323d34[_0x588389(0x24e1)]=[],_0x323d34[_0x588389(0xe9e)]=![],_0x323d34[_0x588389(0x2483)]=_0x28d85f,_0x323d34[_0x588389(0x4c4)]=_0x25c533,_0x323d34[_0x588389(0x16cb)]=_0x2561ee,_0x323d34[_0x588389(0x1eeb)]={'readOnly':!_0x323d34[_0x588389(0x402)][_0x588389(0xd86)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x588389(0x2494),'line1':_0x588389(0x15c),'line2':[_0x588389(0x2494),_0x588389(0xe2f)],'line3':'','labelAll':_0x58f6ea[_0x588389(0x2292)](_0x588389(0x1da4)),'labelSelected':_0x58f6ea[_0x588389(0x2292)]('APP.SELECTED_AGENTS'),'transferCallback':function(){const _0x53c8bd=_0x588389,_0xd58eb6=_0x28c606()[_0x53c8bd(0x1ad)](_0x323d34[_0x53c8bd(0x24e1)],_0x323d34[_0x53c8bd(0x1f4f)],'id');_0x323d34[_0x53c8bd(0xe9e)]=_0x28c606()['isEmpty'](_0xd58eb6)?![]:!![];}};function _0x28d85f(){const _0x38bde5=_0x588389;return _0x34d04b[_0x38bde5(0x4de)](_0x38bde5(0x333))?_0x333f92()[_0x38bde5(0x20cd)](function(_0x63c925){const _0x26df82=_0x38bde5;_0x3b84a3['error']({'title':_0x63c925[_0x26df82(0x10b3)]?_0x26df82(0x575)+_0x63c925[_0x26df82(0x10b3)]+_0x26df82(0x21db)+_0x63c925[_0x26df82(0x2115)]:_0x26df82(0x554),'msg':_0x63c925[_0x26df82(0x10b3)]?JSON[_0x26df82(0x2317)](_0x63c925[_0x26df82(0x1c52)]):_0x63c925['toString']()});}):_0x312dd1()[_0x38bde5(0x64a)](function(_0x4b66a0){const _0x2d6ebd=_0x38bde5;return _0x323d34[_0x2d6ebd(0xa21)]=_0x4b66a0,_0x333f92();})[_0x38bde5(0x20cd)](function(_0x588eb4){const _0x22424d=_0x38bde5;_0x3b84a3[_0x22424d(0x1bd0)]({'title':_0x588eb4['status']?'API:'+_0x588eb4[_0x22424d(0x10b3)]+_0x22424d(0x21db)+_0x588eb4['statusText']:'SYSTEM:GET_AGENTS','msg':_0x588eb4[_0x22424d(0x10b3)]?JSON['stringify'](_0x588eb4[_0x22424d(0x1c52)]):_0x588eb4[_0x22424d(0x2915)]()});});}function _0x312dd1(){return _0xc72f9d(function(_0x5cfca5,_0x455643){const _0x4d87f8=a0_0x4127;_0xcca426[_0x4d87f8(0x16b2)]['get']({'userProfileId':_0x323d34['currentUser'][_0x4d87f8(0x21ac)],'name':_0x4d87f8(0x2132)})[_0x4d87f8(0x15e7)][_0x4d87f8(0x64a)](function(_0x1a99a3){const _0xebab9e=_0x4d87f8,_0x236c50=_0x1a99a3&&_0x1a99a3[_0xebab9e(0x28b8)]?_0x1a99a3['rows'][0x0]:null;_0x5cfca5(_0x236c50);})[_0x4d87f8(0x20cd)](function(_0xe0ce00){_0x455643(_0xe0ce00);});});}function _0x333f92(){return _0xc72f9d(function(_0xec33d9,_0x3a33a8){const _0x54fe53=a0_0x4127;return _0x49c18b()[_0x54fe53(0x64a)](function(_0x57d7fb){const _0xcc50fe=_0x54fe53;return _0x323d34[_0xcc50fe(0x23cb)]=_0x57d7fb['rows']?_0x57d7fb['rows']:[],_0x34d04b[_0xcc50fe(0x4de)](_0xcc50fe(0x333))?_0x57d7fb:_0x323d34[_0xcc50fe(0xa21)]?_0x323d34[_0xcc50fe(0xa21)][_0xcc50fe(0x11da)]?_0x57d7fb:_0x2bd15d():null;})[_0x54fe53(0x64a)](function(_0x42cd9f){const _0x4933b7=_0x54fe53,_0x4faf46=_0x42cd9f&&_0x42cd9f[_0x4933b7(0x28b8)]?_0x42cd9f[_0x4933b7(0x28b8)]:[];return _0x323d34[_0x4933b7(0x13d1)]=_0x28c606()[_0x4933b7(0x1de5)](_0x4faf46,function(_0x18201e){const _0x35f4a4=_0x4933b7;return _0x28c606()[_0x35f4a4(0x27bc)](_0x323d34['items'],{'id':_0x34d04b[_0x35f4a4(0x4de)](_0x35f4a4(0x333))||_0x323d34['section'][_0x35f4a4(0x11da)]?_0x18201e['id']:_0x18201e[_0x35f4a4(0x145)]});}),_0x323d34[_0x4933b7(0x206b)]=angular[_0x4933b7(0x289e)](_0x323d34[_0x4933b7(0x13d1)]),_0x323d34[_0x4933b7(0x23cb)]['forEach'](function(_0x313ef8){const _0x2adaa5=_0x4933b7,_0xa99a6b=_0x28c606()['find'](_0x323d34[_0x2adaa5(0x13d1)],{'id':_0x313ef8['id']});_0x34d04b[_0x2adaa5(0x4de)]('admin')?_0x313ef8[_0x2adaa5(0x6f9)]=!![]:_0x313ef8['isValid']=typeof _0xa99a6b!==_0x2adaa5(0x19a1)?!![]:![];}),_0xe2820e();})[_0x54fe53(0x64a)](function(_0x33c10b){const _0x56e8cb=_0x54fe53,_0x14f7ec=_0x33c10b&&_0x33c10b['rows']?_0x33c10b[_0x56e8cb(0x28b8)]:[];_0x323d34[_0x56e8cb(0x1f4f)]=_0x28c606()[_0x56e8cb(0x1de5)](_0x14f7ec,function(_0x38d3db){const _0x4d914b=_0x56e8cb,_0x599bf2=_0x28c606()[_0x4d914b(0x27bc)](_0x323d34[_0x4d914b(0x23cb)],{'id':_0x38d3db['id']});return _0x599bf2[_0x4d914b(0x70f)]=_0x38d3db[_0x4d914b(0xd79)]?_0x4d914b(0xcff)+_0x38d3db['UservoicePrefix'][_0x4d914b(0x70f)]:'',_0x599bf2[_0x4d914b(0xe2f)]=typeof _0x38d3db[_0x4d914b(0xe2f)]!==_0x4d914b(0x19a1)?'<'+_0x38d3db[_0x4d914b(0xe2f)]+'>':'',_0x599bf2;}),_0x323d34[_0x56e8cb(0x24e1)]=angular[_0x56e8cb(0x289e)](_0x323d34['selectedItems']),_0x323d34[_0x56e8cb(0x1eeb)]['selectedItems']=_0x323d34[_0x56e8cb(0x1f4f)],_0x323d34[_0x56e8cb(0x1eeb)][_0x56e8cb(0x23cb)]=_0x28c606()[_0x56e8cb(0x23e5)](_0x323d34[_0x56e8cb(0x13d1)],_0x323d34[_0x56e8cb(0x1eeb)][_0x56e8cb(0x1f4f)],'id'),_0xec33d9();})[_0x54fe53(0x20cd)](function(_0x561cc1){_0x3a33a8(_0x561cc1);});});}function _0x2bd15d(){return _0xc72f9d(function(_0x3de34f,_0x420479){const _0x4597d9=a0_0x4127;return _0xcca426['userProfileResource']['get']({'sectionId':_0x323d34[_0x4597d9(0xa21)]['id'],'nolimit':!![]})[_0x4597d9(0x15e7)][_0x4597d9(0x64a)](function(_0x4ce008){_0x3de34f(_0x4ce008);})[_0x4597d9(0x20cd)](function(_0x522fe1){_0x420479(_0x522fe1);});});}function _0xe2820e(){return _0xc72f9d(function(_0x1138dd,_0x4f5a0c){const _0x56e6a7=a0_0x4127;return _0xcca426[_0x56e6a7(0x23ef)][_0x56e6a7(0xa10)]({'id':_0x323d34[_0x56e6a7(0x23ef)]['id'],'fields':_0x56e6a7(0x2105),'nolimit':!![],'role':_0x56e6a7(0x11ae)})[_0x56e6a7(0x15e7)][_0x56e6a7(0x64a)](function(_0x221b7b){_0x1138dd(_0x221b7b);})[_0x56e6a7(0x20cd)](function(_0x16611c){_0x4f5a0c(_0x16611c);});});}function _0x49c18b(){return _0xc72f9d(function(_0x5e2ec5,_0x47fec5){const _0x108b65=a0_0x4127;return _0xcca426['user']['get']({'fields':_0x108b65(0x2105),'nolimit':!![],'role':_0x108b65(0x11ae)})['$promise'][_0x108b65(0x64a)](function(_0x530acf){_0x5e2ec5(_0x530acf);})['catch'](function(_0x59be36){_0x47fec5(_0x59be36);});});}function _0x4b9851(_0x5f285d){return _0xc72f9d(function(_0x55541c,_0x2d896f){const _0x4bc032=a0_0x4127;_0x28c606()[_0x4bc032(0x940)](_0x5f285d)?_0x55541c():_0xcca426[_0x4bc032(0x23ef)][_0x4bc032(0x1575)]({'id':_0x323d34[_0x4bc032(0x23ef)]['id'],'ids':_0x28c606()[_0x4bc032(0x1de5)](_0x5f285d,'id')})['$promise'][_0x4bc032(0x64a)](function(){_0x55541c();})[_0x4bc032(0x20cd)](function(_0x1c6769){_0x2d896f(_0x1c6769);});});}function _0x172262(_0x2c5944){return _0xc72f9d(function(_0x2cae3e,_0x3ee361){const _0x3f8c35=a0_0x4127;_0x28c606()['isEmpty'](_0x2c5944)?_0x2cae3e():_0xcca426[_0x3f8c35(0x23ef)][_0x3f8c35(0x251d)]({'id':_0x323d34[_0x3f8c35(0x23ef)]['id'],'ids':_0x28c606()['map'](_0x2c5944,'id')})['$promise'][_0x3f8c35(0x64a)](function(){_0x2cae3e();})['catch'](function(_0x221757){_0x3ee361(_0x221757);});});}function _0x25c533(){const _0x178ddf=_0x588389,_0x2c7f3a=_0x28c606()[_0x178ddf(0x23e5)](_0x323d34[_0x178ddf(0x24e1)],_0x323d34[_0x178ddf(0x1f4f)],'id'),_0x27994e=_0x28c606()[_0x178ddf(0x23e5)](_0x323d34['selectedItems'],_0x323d34[_0x178ddf(0x24e1)],'id');return _0x172262(_0x2c7f3a)['then'](function(){return _0x4b9851(_0x27994e);})[_0x178ddf(0x64a)](function(){const _0xeab9da=_0x178ddf;_0x323d34['pendingChanges']=![],_0x323d34[_0xeab9da(0x206b)]=angular[_0xeab9da(0x289e)](_0x323d34[_0xeab9da(0x13d1)]),_0x323d34[_0xeab9da(0x24e1)]=angular[_0xeab9da(0x289e)](_0x323d34['selectedItems']),_0x3b84a3['success']({'title':'SUCCESS','msg':_0xeab9da(0x1db)});})[_0x178ddf(0x20cd)](function(_0x53430e){const _0x219e7d=_0x178ddf;_0x3b84a3['error']({'title':_0x53430e[_0x219e7d(0x10b3)]?_0x219e7d(0x575)+_0x53430e['status']+'\x20-\x20'+_0x53430e[_0x219e7d(0x2115)]:_0x219e7d(0x1226),'msg':_0x53430e[_0x219e7d(0x10b3)]?JSON[_0x219e7d(0x2317)](_0x53430e[_0x219e7d(0x1c52)]):_0x53430e[_0x219e7d(0x2915)]()});});}function _0x2561ee(){const _0x194058=_0x588389;_0x3362fd[_0x194058(0x268e)]();}}const _0x3f82fd=_0x466bd5;;const _0x17f02f=_0x2e4a48['p']+_0x49a1e3(0x25ee);;const _0x464543=_0x2e4a48['p']+_0x49a1e3(0x25e5);;_0x46512c['$inject']=['$scope','$window',_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),'$translate',_0x49a1e3(0x28d0),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),'api','msUtils',_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x46512c(_0x15581e,_0x229e44,_0x8cf68e,_0x422388,_0x519b57,_0x4999dd,_0x24fe99,_0x5745a9,_0x148d99,_0x1cc716,_0x10240d,_0x542a5b,_0x132d77,_0x41ffe9,_0x3df00c,_0x1eb975,_0x1eea50){const _0x229677=_0x49a1e3,_0x426e28=this;_0x426e28[_0x229677(0x1947)]=_0x1eb975,_0x426e28[_0x229677(0x28d6)]=_0x1eea50,_0x426e28['currentUser']=_0x3df00c[_0x229677(0x808)](),_0x426e28[_0x229677(0x28d0)]=_0x148d99||{'count':0x0,'rows':[]},_0x426e28[_0x229677(0x16a8)]=_0x1cc716,_0x426e28[_0x229677(0x16b2)]=_0x10240d&&_0x10240d[_0x229677(0xb90)]==0x1?_0x10240d[_0x229677(0x28b8)][0x0]:null,_0x426e28[_0x229677(0x402)]=_0x3df00c[_0x229677(0xa7e)](_0x426e28[_0x229677(0x16b2)]?_0x426e28[_0x229677(0x16b2)][_0x229677(0x402)]:null),_0x426e28['table']=_0x229677(0x28d0),_0x426e28[_0x229677(0x300)]='',_0x426e28[_0x229677(0x2748)]=null,_0x426e28['selectedVoicePrefixes']=[],_0x426e28['query']={'fields':_0x229677(0x233f),'limit':0xa,'page':0x1},_0x426e28[_0x229677(0x1c42)]=_0x379840,_0x426e28[_0x229677(0x104a)]=_0x42fb9b,_0x426e28[_0x229677(0x1262)]=_0x5656f1,_0x426e28['success']=_0x1adb62,_0x426e28[_0x229677(0xc93)]=_0x5d73a9,_0x426e28[_0x229677(0x295a)]=_0x5aa48d,_0x426e28[_0x229677(0x1dce)]=_0x38759d,_0x426e28['exportSelectedVoicePrefixes']=_0x2f33d6,_0x426e28[_0x229677(0x264c)]=_0x3f48f7,_0x426e28[_0x229677(0xc8c)]=_0x120c62,_0x426e28['selectAllVoicePrefixes']=_0x134845,_0x3df00c[_0x229677(0x4de)](_0x229677(0x333))?_0x542a5b[_0x229677(0x1438)][_0x229677(0x896)]({'fields':_0x229677(0x105b),'type':_0x229677(0xbce),'VoiceExtensionId':'null','nolimit':_0x229677(0x1685)})['$promise'][_0x229677(0x64a)](function(_0x11283c){const _0x1587c4=_0x229677;_0x426e28['outboundRoutes']=_0x11283c[_0x1587c4(0x28b8)]||[];})[_0x229677(0x20cd)](function(_0x5cf48e){const _0x59b08d=_0x229677;_0x41ffe9[_0x59b08d(0x1bd0)]({'title':_0x5cf48e['status']?_0x59b08d(0x575)+_0x5cf48e[_0x59b08d(0x10b3)]+_0x59b08d(0x21db)+_0x5cf48e[_0x59b08d(0x2115)]:_0x59b08d(0x76f),'msg':_0x5cf48e[_0x59b08d(0x1c52)]?JSON['stringify'](_0x5cf48e['data']):_0x5cf48e[_0x59b08d(0x2915)]()});}):_0x542a5b[_0x229677(0x1438)]['get']({'fields':_0x229677(0x105b),'type':_0x229677(0xbce),'VoiceExtensionId':_0x229677(0x8f1),'nolimit':_0x229677(0x1685)})[_0x229677(0x15e7)][_0x229677(0x64a)](function(_0x2ceb7c){const _0x3346dd=_0x229677;_0x426e28['outboundRoutes']=_0x2ceb7c[_0x3346dd(0x28b8)]||[];})['then'](function(){const _0x19c850=_0x229677;return _0x542a5b['userProfileSection']['get']({'userProfileId':_0x426e28[_0x19c850(0x1d3d)]['userProfileId'],'sectionId':0x193})[_0x19c850(0x15e7)];})[_0x229677(0x64a)](function(_0x36ed45){const _0x3e15cc=_0x229677,_0x51cd13=_0x36ed45&&_0x36ed45[_0x3e15cc(0x28b8)]?_0x36ed45[_0x3e15cc(0x28b8)][0x0]:null;if(!_0x51cd13){const _0xea2bea=[];let _0x4ebf4d=null;_0x426e28[_0x3e15cc(0x23ef)]&&(_0x4ebf4d=_0x28c606()[_0x3e15cc(0x27bc)](_0x426e28[_0x3e15cc(0x20a0)],{'id':Number(_0x426e28['voicePrefix'][_0x3e15cc(0x2551)])}));for(let _0xd2a72c=0x0;_0xd2a72c<_0x426e28[_0x3e15cc(0x20a0)][_0x3e15cc(0x1b9e)];_0xd2a72c++){_0x4ebf4d&&_0x426e28[_0x3e15cc(0x20a0)][_0xd2a72c]['id']===_0x4ebf4d['id']&&(_0x426e28['outboundRoutes'][_0xd2a72c][_0x3e15cc(0xd4f)]=![],_0xea2bea[_0x3e15cc(0x1954)](_0x426e28[_0x3e15cc(0x20a0)][_0xd2a72c]));}_0x426e28[_0x3e15cc(0x20a0)]=_0xea2bea;}else{if(!_0x51cd13['autoAssociation'])return _0x542a5b[_0x3e15cc(0x1617)][_0x3e15cc(0x896)]({'sectionId':_0x51cd13['id']})[_0x3e15cc(0x15e7)]['then'](function(_0x3f3883){const _0x40e7fe=_0x3e15cc,_0x357443=_0x28c606()[_0x40e7fe(0x1de5)](_0x3f3883[_0x40e7fe(0x28b8)],function(_0x50f1e4){const _0x52b8a7=_0x40e7fe;return _0x28c606()[_0x52b8a7(0x27bc)](_0x426e28[_0x52b8a7(0x20a0)],{'id':_0x50f1e4['resourceId']});});let _0x30e573=null;_0x426e28[_0x40e7fe(0x23ef)]&&(_0x30e573=_0x28c606()[_0x40e7fe(0x27bc)](_0x426e28[_0x40e7fe(0x20a0)],{'id':Number(_0x426e28['voicePrefix']['VoiceExtensionId'])}));if(_0x30e573&&!_0x28c606()[_0x40e7fe(0x25f8)](_0x357443,['id',_0x30e573['id']])){const _0x1c7257=_0x28c606()[_0x40e7fe(0x27bc)](_0x426e28[_0x40e7fe(0x20a0)],{'id':_0x30e573['id']});_0x1c7257[_0x40e7fe(0xd4f)]=![],_0x357443[_0x40e7fe(0x1954)](_0x1c7257);}_0x426e28[_0x40e7fe(0x20a0)]=_0x357443;});}})[_0x229677(0x20cd)](function(_0x1b0e78){const _0x28ba89=_0x229677;_0x41ffe9['error']({'title':_0x1b0e78[_0x28ba89(0x10b3)]?'API:'+_0x1b0e78[_0x28ba89(0x10b3)]+_0x28ba89(0x21db)+_0x1b0e78[_0x28ba89(0x2115)]:_0x28ba89(0x1bac),'msg':_0x1b0e78[_0x28ba89(0x1c52)]?JSON[_0x28ba89(0x2317)](_0x1b0e78[_0x28ba89(0x1c52)]):_0x1b0e78[_0x28ba89(0x2915)]()});});function _0x379840(_0x494347,_0xefb741){const _0x166b56=_0x229677;_0x519b57[_0x166b56(0xa60)]({'controller':_0x166b56(0x24b7),'controllerAs':'vm','templateUrl':_0x17f02f,'parent':angular[_0x166b56(0x1f81)](_0x4999dd[_0x166b56(0xb49)]),'targetEvent':_0xefb741,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x494347,'voicePrefixes':_0x426e28['voicePrefixes'][_0x166b56(0x28b8)],'license':_0x426e28['license'],'setting':null,'crudPermissions':_0x426e28[_0x166b56(0x402)]}});}function _0x42fb9b(_0x4f69c2,_0x1bc425){const _0x38529c=_0x229677;_0x519b57['show']({'controller':_0x38529c(0x131c),'controllerAs':'vm','templateUrl':_0x464543,'parent':angular[_0x38529c(0x1f81)](_0x4999dd['body']),'targetEvent':_0x1bc425,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x4f69c2,'voicePrefixes':_0x426e28[_0x38529c(0x28d0)]?_0x426e28[_0x38529c(0x28d0)]['rows']:[],'crudPermissions':_0x426e28['crudPermissions'],'realtime':![]}});}function _0x5656f1(_0x10c515,_0x3aec36){const _0x1df404=_0x229677,_0x4f2ca1=_0x519b57[_0x1df404(0x856)]()[_0x1df404(0x2021)](_0x1df404(0x1231)+_0x28c606()[_0x1df404(0xc01)](_0x1df404(0x23ef))+'?')[_0x1df404(0x33a)](_0x1df404(0x50b)+(_0x10c515['name']||_0x1df404(0x23ef))+''+_0x1df404(0x4b8))['ariaLabel'](_0x1df404(0x2613))[_0x1df404(0x2283)](_0x3aec36)['ok']('OK')[_0x1df404(0x101a)](_0x1df404(0x18fd));_0x519b57[_0x1df404(0xa60)](_0x4f2ca1)[_0x1df404(0x64a)](function(){_0x38759d(_0x10c515);},function(){const _0x56d215=_0x1df404;console['log'](_0x56d215(0x18fd));});}let _0xe7cc48=!![],_0x53a99e=0x1;_0x15581e['$watch'](_0x229677(0x1cb9),function(_0x1bf7c1,_0x183620){const _0x2e4aa5=_0x229677;_0xe7cc48?_0x24fe99(function(){_0xe7cc48=![];}):(!_0x183620&&(_0x53a99e=_0x426e28[_0x2e4aa5(0x289a)]['page']),_0x1bf7c1!==_0x183620&&(_0x426e28['query'][_0x2e4aa5(0xc72)]=0x1),!_0x1bf7c1&&(_0x426e28[_0x2e4aa5(0x289a)][_0x2e4aa5(0xc72)]=_0x53a99e),_0x426e28[_0x2e4aa5(0xc93)]());});function _0x1adb62(_0x6cf87c){const _0x184bad=_0x229677;_0x426e28[_0x184bad(0x28d0)]=_0x6cf87c||{'count':0x0,'rows':[]};}function _0x5d73a9(){const _0x48f464=_0x229677;_0x426e28[_0x48f464(0x289a)][_0x48f464(0x24f9)]=(_0x426e28[_0x48f464(0x289a)]['page']-0x1)*_0x426e28[_0x48f464(0x289a)]['limit'],_0x3df00c[_0x48f464(0x4de)]('admin')?_0x426e28['promise']=_0x542a5b[_0x48f464(0x23ef)][_0x48f464(0x896)](_0x426e28[_0x48f464(0x289a)],_0x1adb62)['$promise']:(_0x426e28[_0x48f464(0x289a)]['id']=_0x426e28[_0x48f464(0x16a8)]['id'],_0x426e28[_0x48f464(0x289a)][_0x48f464(0xa21)]=_0x48f464(0x91e),_0x426e28['promise']=_0x542a5b[_0x48f464(0x16a8)][_0x48f464(0x2565)](_0x426e28[_0x48f464(0x289a)],_0x1adb62)[_0x48f464(0x15e7)]);}function _0x5aa48d(_0x3e3ebf,_0x599289){const _0x2ba4e8=_0x229677;_0x519b57[_0x2ba4e8(0xa60)]({'controller':_0x2ba4e8(0x24b7),'controllerAs':'vm','templateUrl':_0x17f02f,'parent':angular[_0x2ba4e8(0x1f81)](_0x4999dd['body']),'targetEvent':_0x3e3ebf,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x599289,'voicePrefixes':_0x426e28[_0x2ba4e8(0x28d0)][_0x2ba4e8(0x28b8)],'license':_0x426e28[_0x2ba4e8(0x1947)],'setting':_0x426e28[_0x2ba4e8(0x28d6)],'crudPermissions':_0x426e28[_0x2ba4e8(0x402)]}});}function _0x38759d(_0x1dcba0){const _0x36c479=_0x229677;_0x542a5b['voicePrefix'][_0x36c479(0xabd)]({'id':_0x1dcba0['id']})['$promise']['then'](function(){const _0xf92161=_0x36c479;_0x28c606()[_0xf92161(0x21c7)](_0x426e28['voicePrefixes'][_0xf92161(0x28b8)],{'id':_0x1dcba0['id']}),_0x426e28[_0xf92161(0x28d0)][_0xf92161(0xb90)]-=0x1,!_0x426e28[_0xf92161(0x28d0)][_0xf92161(0x28b8)][_0xf92161(0x1b9e)]&&_0x426e28[_0xf92161(0xc93)](),_0x41ffe9[_0xf92161(0x1339)]({'title':_0x28c606()[_0xf92161(0xc01)](_0xf92161(0x23ef))+'\x20deleted!','msg':_0x1dcba0[_0xf92161(0x2494)]?_0x1dcba0[_0xf92161(0x2494)]+_0xf92161(0x1fa8):''});})[_0x36c479(0x20cd)](function(_0x3dd06f){const _0x582764=_0x36c479;if(_0x3dd06f[_0x582764(0x1c52)]&&_0x3dd06f[_0x582764(0x1c52)]['errors']&&_0x3dd06f[_0x582764(0x1c52)][_0x582764(0xbae)][_0x582764(0x1b9e)]){_0x426e28[_0x582764(0xbae)]=_0x3dd06f[_0x582764(0x1c52)][_0x582764(0xbae)]||[{'message':_0x3dd06f[_0x582764(0x2915)](),'type':_0x582764(0x5a5)}];for(let _0x41746c=0x0;_0x41746c<_0x3dd06f[_0x582764(0x1c52)][_0x582764(0xbae)][_0x582764(0x1b9e)];_0x41746c++){_0x41ffe9['error']({'title':_0x3dd06f['data'][_0x582764(0xbae)][_0x41746c][_0x582764(0x2185)],'msg':_0x3dd06f[_0x582764(0x1c52)][_0x582764(0xbae)][_0x41746c]['message']});}}else _0x41ffe9[_0x582764(0x1bd0)]({'title':_0x3dd06f[_0x582764(0x10b3)]?_0x582764(0x575)+_0x3dd06f['status']+_0x582764(0x21db)+_0x3dd06f[_0x582764(0x2115)]:_0x582764(0x5a5),'msg':_0x3dd06f[_0x582764(0x1c52)]?JSON[_0x582764(0x2317)](_0x3dd06f[_0x582764(0x1c52)][_0x582764(0x18ca)]):_0x3dd06f[_0x582764(0x18ca)]||_0x3dd06f[_0x582764(0x2915)]()});});}function _0x2f33d6(){const _0x260c82=_0x229677,_0x33feae=angular[_0x260c82(0x289e)](_0x426e28['selectedVoicePrefixes']);return _0x426e28[_0x260c82(0x1f48)]=[],_0x33feae;}function _0x3f48f7(_0x3c3f3d){const _0x1402e3=_0x229677,_0xf189ae=_0x519b57['confirm']()['title'](_0x1402e3(0xc31))['htmlContent'](_0x1402e3(0x50b)+_0x426e28[_0x1402e3(0x1f48)][_0x1402e3(0x1b9e)]+_0x1402e3(0x163e)+'\x20will\x20be\x20deleted.')[_0x1402e3(0x213e)]('delete\x20voicePrefixs')['targetEvent'](_0x3c3f3d)['ok']('OK')['cancel']('CANCEL');_0x519b57[_0x1402e3(0xa60)](_0xf189ae)['then'](function(){const _0x18d919=_0x1402e3;_0x426e28[_0x18d919(0x1f48)][_0x18d919(0x1397)](function(_0x4c1553){_0x38759d(_0x4c1553);}),_0x426e28['selectedVoicePrefixes']=[];});}function _0x120c62(){const _0x56ca42=_0x229677;_0x426e28[_0x56ca42(0x1f48)]=[];}function _0x134845(){const _0x255489=_0x229677;_0x426e28[_0x255489(0x1f48)]=_0x426e28['voicePrefixes'][_0x255489(0x28b8)];}}const _0x11a23b=_0x46512c;;_0x237824[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q','$translate',_0x49a1e3(0x680),_0x49a1e3(0x2dc),_0x49a1e3(0x178b),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x237824(_0x47edca,_0x138c8a,_0x25b70b,_0x3625ae,_0x3f4963,_0x1df559,_0x1b1125,_0x58aa56,_0x2203de,_0xdefa4d,_0x5138b5,_0x1b9a75,_0x328cf8,_0x5d04bf){const _0x14c26c=_0x49a1e3,_0x2ef86f=this;_0x2ef86f[_0x14c26c(0x1d3d)]=_0x5138b5['getCurrentUser'](),_0x2ef86f[_0x14c26c(0xbae)]=[],_0x2ef86f[_0x14c26c(0x28d6)]=_0x328cf8,_0x2ef86f[_0x14c26c(0x1947)]=_0x1b9a75,_0x2ef86f[_0x14c26c(0x402)]=_0x5d04bf,_0x2ef86f[_0x14c26c(0x6c2)]={},_0x2ef86f[_0x14c26c(0xccc)]=_0x2ef86f[_0x14c26c(0x28d6)]&&_0x2ef86f[_0x14c26c(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2ef86f[_0x14c26c(0x2021)]=_0x14c26c(0x2209),_0x2ef86f[_0x14c26c(0x178b)]=angular[_0x14c26c(0x289e)](_0x2203de),_0x2ef86f['voiceQueues']=_0x58aa56,_0x2ef86f[_0x14c26c(0x25db)]=![];!_0x2ef86f['voiceQueue']&&(_0x2ef86f[_0x14c26c(0x178b)]={'type':_0x14c26c(0x12a4),'strategy':_0x14c26c(0x825),'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'},_0x2ef86f['title']=_0x14c26c(0x2430),_0x2ef86f[_0x14c26c(0x25db)]=!![]);_0x2ef86f[_0x14c26c(0x24d8)]=_0x5c1d23,_0x2ef86f['saveVoiceQueue']=_0x2a697c,_0x2ef86f[_0x14c26c(0x6bc)]=_0xdcfbcb,_0x2ef86f[_0x14c26c(0x1605)]=_0x5a8afc,_0x2ef86f['closeDialog']=_0x3237ab;function _0x5c1d23(){const _0x5a5f50=_0x14c26c;_0x2ef86f['errors']=[],_0xdefa4d[_0x5a5f50(0x178b)][_0x5a5f50(0x2479)](_0x2ef86f[_0x5a5f50(0x178b)])[_0x5a5f50(0x15e7)][_0x5a5f50(0x64a)](function(_0x2f2a92){const _0x159c96=_0x5a5f50;_0x2ef86f[_0x159c96(0x2dc)]['unshift'](_0x2f2a92[_0x159c96(0x14f8)]()),_0x1b1125['success']({'title':_0x159c96(0x2718),'msg':_0x2ef86f[_0x159c96(0x178b)]['name']?_0x2ef86f['voiceQueue'][_0x159c96(0x2494)]+'\x20has\x20been\x20created!':''}),_0x3237ab(_0x2f2a92);})[_0x5a5f50(0x20cd)](function(_0x325022){const _0x5c93fb=_0x5a5f50;if(_0x325022[_0x5c93fb(0x1c52)]&&_0x325022[_0x5c93fb(0x1c52)]['errors']&&_0x325022[_0x5c93fb(0x1c52)][_0x5c93fb(0xbae)][_0x5c93fb(0x1b9e)]){_0x2ef86f[_0x5c93fb(0xbae)]=_0x325022[_0x5c93fb(0x1c52)]['errors']||[{'message':_0x325022['toString'](),'type':_0x5c93fb(0x1bef)}];for(let _0x1861ec=0x0;_0x1861ec<_0x325022[_0x5c93fb(0x1c52)][_0x5c93fb(0xbae)][_0x5c93fb(0x1b9e)];_0x1861ec+=0x1){_0x1b1125[_0x5c93fb(0x1bd0)]({'title':_0x325022[_0x5c93fb(0x1c52)][_0x5c93fb(0xbae)][_0x1861ec][_0x5c93fb(0x2185)],'msg':_0x325022[_0x5c93fb(0x1c52)][_0x5c93fb(0xbae)][_0x1861ec][_0x5c93fb(0x18ca)]});}}else _0x1b1125[_0x5c93fb(0x1bd0)]({'title':_0x325022[_0x5c93fb(0x10b3)]?_0x5c93fb(0x575)+_0x325022['status']+_0x5c93fb(0x21db)+_0x325022[_0x5c93fb(0x2115)]:_0x5c93fb(0x1bef),'msg':_0x325022[_0x5c93fb(0x1c52)]?JSON[_0x5c93fb(0x2317)](_0x325022['data'][_0x5c93fb(0x18ca)]):_0x325022[_0x5c93fb(0x2915)]()});});}function _0x2a697c(){const _0x2fa416=_0x14c26c;_0x2ef86f[_0x2fa416(0xbae)]=[],_0xdefa4d[_0x2fa416(0x178b)][_0x2fa416(0x2603)]({'id':_0x2ef86f[_0x2fa416(0x178b)]['id']},_0x2ef86f['voiceQueue'])[_0x2fa416(0x15e7)][_0x2fa416(0x64a)](function(_0x3bca82){const _0x14ef6b=_0x2fa416,_0x61933e=_0x28c606()[_0x14ef6b(0x27bc)](_0x2ef86f[_0x14ef6b(0x2dc)],{'id':_0x3bca82['id']});_0x61933e&&_0x28c606()[_0x14ef6b(0x14fe)](_0x61933e,_0x28c606()['pick'](_0x3bca82['toJSON'](),_0x28c606()[_0x14ef6b(0x1ec6)](_0x61933e))),_0x1b1125['success']({'title':_0x14ef6b(0xbb3),'msg':_0x2ef86f['voiceQueue'][_0x14ef6b(0x2494)]?_0x2ef86f['voiceQueue']['name']+_0x14ef6b(0x271):''}),_0x3237ab(_0x3bca82);})[_0x2fa416(0x20cd)](function(_0x4ad88e){const _0x157269=_0x2fa416;if(_0x4ad88e[_0x157269(0x1c52)]&&_0x4ad88e[_0x157269(0x1c52)][_0x157269(0xbae)]&&_0x4ad88e[_0x157269(0x1c52)][_0x157269(0xbae)][_0x157269(0x1b9e)]){_0x2ef86f[_0x157269(0xbae)]=_0x4ad88e[_0x157269(0x1c52)][_0x157269(0xbae)]||[{'message':_0x4ad88e[_0x157269(0x2915)](),'type':_0x157269(0xdd3)}];for(let _0x3c4597=0x0;_0x3c4597<_0x4ad88e['data'][_0x157269(0xbae)]['length'];_0x3c4597++){_0x1b1125['error']({'title':_0x4ad88e['data'][_0x157269(0xbae)][_0x3c4597][_0x157269(0x2185)],'msg':_0x4ad88e[_0x157269(0x1c52)]['errors'][_0x3c4597][_0x157269(0x18ca)]});}}else _0x1b1125[_0x157269(0x1bd0)]({'title':_0x4ad88e[_0x157269(0x10b3)]?_0x157269(0x575)+_0x4ad88e[_0x157269(0x10b3)]+'\x20-\x20'+_0x4ad88e[_0x157269(0x2115)]:_0x157269(0xdd3),'msg':_0x4ad88e[_0x157269(0x1c52)]?JSON[_0x157269(0x2317)](_0x4ad88e['data'][_0x157269(0x18ca)]):_0x4ad88e[_0x157269(0x2915)]()});});}function _0xdcfbcb(_0x1fb471){const _0x1b565e=_0x14c26c;_0x2ef86f[_0x1b565e(0xbae)]=[];const _0x166971=_0x3625ae['confirm']()[_0x1b565e(0x2021)](_0x1b565e(0x103a))[_0x1b565e(0x12b8)]('The\x20voiceQueue\x20will\x20be\x20deleted.')['ariaLabel'](_0x1b565e(0x24d))['ok'](_0x1b565e(0x2664))['cancel']('Cancel')['targetEvent'](_0x1fb471);_0x3625ae[_0x1b565e(0xa60)](_0x166971)['then'](function(){const _0x31a1f0=_0x1b565e;_0xdefa4d[_0x31a1f0(0x178b)][_0x31a1f0(0xabd)]({'id':_0x2ef86f[_0x31a1f0(0x178b)]['id']})[_0x31a1f0(0x15e7)]['then'](function(){const _0x18ce9e=_0x31a1f0;_0x28c606()[_0x18ce9e(0x21c7)](_0x2ef86f[_0x18ce9e(0x2dc)],{'id':_0x2ef86f['voiceQueue']['id']}),_0x1b1125[_0x18ce9e(0x1339)]({'title':_0x18ce9e(0x23b),'msg':(_0x2ef86f[_0x18ce9e(0x178b)][_0x18ce9e(0x2494)]||_0x18ce9e(0x178b))+_0x18ce9e(0x1fa8)}),_0x3237ab(_0x2ef86f[_0x18ce9e(0x178b)]);})[_0x31a1f0(0x20cd)](function(_0x3d8bde){const _0x50db6e=_0x31a1f0;if(_0x3d8bde[_0x50db6e(0x1c52)]&&_0x3d8bde[_0x50db6e(0x1c52)][_0x50db6e(0xbae)]&&_0x3d8bde[_0x50db6e(0x1c52)][_0x50db6e(0xbae)]['length']){_0x2ef86f[_0x50db6e(0xbae)]=_0x3d8bde[_0x50db6e(0x1c52)]['errors']||[{'message':_0x3d8bde[_0x50db6e(0x2915)](),'type':_0x50db6e(0x117b)}];for(let _0xc2575b=0x0;_0xc2575b<_0x3d8bde['data'][_0x50db6e(0xbae)][_0x50db6e(0x1b9e)];_0xc2575b++){_0x1b1125[_0x50db6e(0x1bd0)]({'title':_0x3d8bde[_0x50db6e(0x1c52)][_0x50db6e(0xbae)][_0xc2575b][_0x50db6e(0x2185)],'msg':_0x3d8bde[_0x50db6e(0x1c52)][_0x50db6e(0xbae)][_0xc2575b][_0x50db6e(0x18ca)]});}}else _0x1b1125[_0x50db6e(0x1bd0)]({'title':_0x3d8bde[_0x50db6e(0x10b3)]?'API:'+_0x3d8bde['status']+'\x20-\x20'+_0x3d8bde['statusText']:'api.voiceQueue.delete','msg':_0x3d8bde[_0x50db6e(0x1c52)]?JSON[_0x50db6e(0x2317)](_0x3d8bde[_0x50db6e(0x1c52)][_0x50db6e(0x18ca)]):_0x3d8bde[_0x50db6e(0x18ca)]||_0x3d8bde[_0x50db6e(0x2915)]()});});},function(){});}function _0x5a8afc(_0x86107d){return _0x86107d===null?undefined:new Date(_0x86107d);}function _0x3237ab(_0x436c84){const _0x5248d3=_0x14c26c;_0x3625ae[_0x5248d3(0x268e)](_0x436c84);}}const _0x5c719a=_0x237824;;_0x3f7876[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),'api',_0x49a1e3(0x178b),_0x49a1e3(0x2dc),_0x49a1e3(0x252e),_0x49a1e3(0x298c),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x3f7876(_0x5a34e8,_0x5ce946,_0x30f130,_0x442757,_0x2f38dd,_0x416af0,_0x3a1d5d,_0x5184bf,_0x3b943c,_0x21e6c2){const _0x4274dc=_0x49a1e3,_0x3f80f4=this;_0x3f80f4[_0x4274dc(0x1d3d)]=_0x3b943c['getCurrentUser'](),_0x3f80f4[_0x4274dc(0x178b)]=_0x2f38dd,_0x3f80f4[_0x4274dc(0x402)]=_0x21e6c2,_0x3f80f4[_0x4274dc(0x70f)]=0x0,_0x3f80f4[_0x4274dc(0x252e)]=_0x3a1d5d,_0x3f80f4['items']=[],_0x3f80f4[_0x4274dc(0x13d1)]=[],_0x3f80f4[_0x4274dc(0x1f4f)]=[],_0x3f80f4['startingAllowedItems']=[],_0x3f80f4[_0x4274dc(0x24e1)]=[],_0x3f80f4['pendingChanges']=![],_0x3f80f4[_0x4274dc(0x2483)]=_0x3561a6,_0x3f80f4[_0x4274dc(0x4c4)]=_0x5d085c,_0x3f80f4['closeDialog']=_0x56abf3,_0x3f80f4[_0x4274dc(0x1eeb)]={'readOnly':!_0x3f80f4[_0x4274dc(0x402)]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x4274dc(0x2494),'line1':'fullname','line2':[_0x4274dc(0x2494),'internal'],'line3':_0x4274dc(0x70f),'labelAll':_0x5184bf[_0x4274dc(0x2292)](_0x4274dc(0x1da4)),'labelSelected':_0x5184bf['instant']('APP.SELECTED_AGENTS'),'transferCallback':function(_0x5b5da0,_0x4b86e5){const _0x6113ee=_0x4274dc;_0x4b86e5?_0x5b5da0[_0x6113ee(0x1397)](function(_0xc09abc){const _0x3060a2=_0x6113ee;_0xc09abc[_0x3060a2(0x70f)]=undefined;}):_0x5b5da0['forEach'](function(_0x159543){const _0x5c6c97=_0x6113ee;_0x159543['penalty']='penalty\x20'+_0x3f80f4[_0x5c6c97(0x70f)];});const _0x4315a1=_0x28c606()[_0x6113ee(0x9a2)](_0x3f80f4['startingSelectedItems'],_0x3f80f4[_0x6113ee(0x1f4f)],function(_0x51e07a,_0x589ea8){const _0x154498=_0x6113ee;return _0x51e07a['id']===_0x589ea8['id']&&_0x51e07a[_0x154498(0x70f)]===_0x589ea8[_0x154498(0x70f)];});_0x3f80f4[_0x6113ee(0xe9e)]=_0x28c606()[_0x6113ee(0x940)](_0x4315a1)?![]:!![];}};function _0x3561a6(){const _0xfecc9f=_0x4274dc;return _0x3b943c[_0xfecc9f(0x4de)](_0xfecc9f(0x333))?_0x4c1255()[_0xfecc9f(0x20cd)](function(_0x53f77e){const _0xf00355=_0xfecc9f;_0x30f130[_0xf00355(0x1bd0)]({'title':_0x53f77e['status']?_0xf00355(0x575)+_0x53f77e[_0xf00355(0x10b3)]+_0xf00355(0x21db)+_0x53f77e[_0xf00355(0x2115)]:_0xf00355(0x554),'msg':_0x53f77e[_0xf00355(0x10b3)]?JSON['stringify'](_0x53f77e['data']):_0x53f77e[_0xf00355(0x2915)]()});}):_0x6da833()[_0xfecc9f(0x64a)](function(_0x1b3022){const _0x28cba0=_0xfecc9f;return _0x3f80f4[_0x28cba0(0xa21)]=_0x1b3022,_0x4c1255();})[_0xfecc9f(0x20cd)](function(_0x48ebad){const _0x276be9=_0xfecc9f;_0x30f130[_0x276be9(0x1bd0)]({'title':_0x48ebad[_0x276be9(0x10b3)]?_0x276be9(0x575)+_0x48ebad[_0x276be9(0x10b3)]+_0x276be9(0x21db)+_0x48ebad[_0x276be9(0x2115)]:_0x276be9(0x554),'msg':_0x48ebad[_0x276be9(0x10b3)]?JSON[_0x276be9(0x2317)](_0x48ebad[_0x276be9(0x1c52)]):_0x48ebad[_0x276be9(0x2915)]()});});}function _0x6da833(){return _0x5ce946(function(_0x336b67,_0x4b5047){const _0x5894c7=a0_0x4127;_0x442757['userProfileSection'][_0x5894c7(0x896)]({'userProfileId':_0x3f80f4[_0x5894c7(0x1d3d)][_0x5894c7(0x21ac)],'name':_0x5894c7(0x2132)})[_0x5894c7(0x15e7)]['then'](function(_0x1285f6){const _0x5c0524=_0x5894c7,_0x38443a=_0x1285f6&&_0x1285f6['rows']?_0x1285f6[_0x5c0524(0x28b8)][0x0]:null;_0x336b67(_0x38443a);})['catch'](function(_0x45b2c0){_0x4b5047(_0x45b2c0);});});}function _0x4c1255(){return _0x5ce946(function(_0x1389cf,_0x3e525b){const _0x12ff9a=a0_0x4127;return _0x336ac1()[_0x12ff9a(0x64a)](function(_0x4eb94f){const _0x34f1ae=_0x12ff9a;return _0x3f80f4['items']=_0x4eb94f[_0x34f1ae(0x28b8)]?_0x4eb94f['rows']:[],_0x3b943c[_0x34f1ae(0x4de)](_0x34f1ae(0x333))?_0x4eb94f:_0x3f80f4[_0x34f1ae(0xa21)]?_0x3f80f4['section'][_0x34f1ae(0x11da)]?_0x4eb94f:_0x177d07():null;})[_0x12ff9a(0x64a)](function(_0x1008d2){const _0x177c63=_0x12ff9a,_0x3ff2c5=_0x1008d2&&_0x1008d2['rows']?_0x1008d2[_0x177c63(0x28b8)]:[];return _0x3f80f4['allowedItems']=_0x28c606()[_0x177c63(0x1de5)](_0x3ff2c5,function(_0x447490){const _0x36c597=_0x177c63;return _0x28c606()[_0x36c597(0x27bc)](_0x3f80f4[_0x36c597(0x23cb)],{'id':_0x3b943c[_0x36c597(0x4de)](_0x36c597(0x333))||_0x3f80f4[_0x36c597(0xa21)]['autoAssociation']?_0x447490['id']:_0x447490[_0x36c597(0x145)]});}),_0x3f80f4[_0x177c63(0x206b)]=angular[_0x177c63(0x289e)](_0x3f80f4[_0x177c63(0x13d1)]),_0x3f80f4[_0x177c63(0x23cb)][_0x177c63(0x1397)](function(_0x510767){const _0x3705d8=_0x177c63,_0x2dcc98=_0x28c606()[_0x3705d8(0x27bc)](_0x3f80f4['allowedItems'],{'id':_0x510767['id']});_0x3b943c[_0x3705d8(0x4de)](_0x3705d8(0x333))?_0x510767[_0x3705d8(0x6f9)]=!![]:_0x510767[_0x3705d8(0x6f9)]=typeof _0x2dcc98!==_0x3705d8(0x19a1)?!![]:![];}),_0x5e5ddc();})[_0x12ff9a(0x64a)](function(_0x15526d){const _0x4f6131=_0x12ff9a,_0x2cbbec=_0x15526d&&_0x15526d[_0x4f6131(0x28b8)]?_0x15526d[_0x4f6131(0x28b8)]:[];_0x3f80f4['selectedItems']=_0x28c606()[_0x4f6131(0x1de5)](_0x2cbbec,function(_0x157fed){const _0x391a99=_0x4f6131,_0x2d6446=_0x28c606()['find'](_0x3f80f4[_0x391a99(0x23cb)],{'id':_0x157fed['id']});return _0x2d6446[_0x391a99(0x70f)]=_0x157fed[_0x391a99(0x5f0)]?'penalty\x20'+_0x157fed['UserVoiceQueue'][_0x391a99(0x70f)]:'',_0x2d6446[_0x391a99(0xe2f)]=typeof _0x157fed[_0x391a99(0xe2f)]!==_0x391a99(0x19a1)?'<'+_0x157fed['internal']+'>':'',_0x2d6446;}),_0x3f80f4[_0x4f6131(0x24e1)]=angular['copy'](_0x3f80f4[_0x4f6131(0x1f4f)]),_0x3f80f4[_0x4f6131(0x1eeb)]['selectedItems']=_0x3f80f4[_0x4f6131(0x1f4f)],_0x3f80f4[_0x4f6131(0x1eeb)][_0x4f6131(0x23cb)]=_0x28c606()[_0x4f6131(0x23e5)](_0x3f80f4['allowedItems'],_0x3f80f4['dualMultiselectOptions']['selectedItems'],'id'),_0x1389cf();})[_0x12ff9a(0x20cd)](function(_0x162a59){_0x3e525b(_0x162a59);});});}function _0x177d07(){return _0x5ce946(function(_0x540061,_0x9ee185){const _0x2e6a5c=a0_0x4127;return _0x442757[_0x2e6a5c(0x1617)][_0x2e6a5c(0x896)]({'sectionId':_0x3f80f4['section']['id'],'nolimit':!![]})[_0x2e6a5c(0x15e7)][_0x2e6a5c(0x64a)](function(_0x4de140){_0x540061(_0x4de140);})[_0x2e6a5c(0x20cd)](function(_0x2e58c9){_0x9ee185(_0x2e58c9);});});}function _0x5e5ddc(){return _0x5ce946(function(_0x164631,_0x14680e){const _0x5b2687=a0_0x4127;return _0x442757[_0x5b2687(0x178b)][_0x5b2687(0xa10)]({'id':_0x3f80f4[_0x5b2687(0x178b)]['id'],'fields':_0x5b2687(0x2105),'nolimit':!![],'role':'agent'})['$promise'][_0x5b2687(0x64a)](function(_0x3ba124){_0x164631(_0x3ba124);})['catch'](function(_0x1e2ce2){_0x14680e(_0x1e2ce2);});});}function _0x336ac1(){return _0x5ce946(function(_0x3c5e09,_0x595868){const _0x3d8e96=a0_0x4127;return _0x442757['user']['get']({'fields':_0x3d8e96(0x2105),'nolimit':!![],'role':_0x3d8e96(0x11ae)})[_0x3d8e96(0x15e7)]['then'](function(_0x131533){_0x3c5e09(_0x131533);})['catch'](function(_0x474085){_0x595868(_0x474085);});});}function _0x3e6e45(_0x538bff){return _0x5ce946(function(_0xe65ebd,_0x530882){const _0x7a4217=a0_0x4127;if(_0x28c606()[_0x7a4217(0x940)](_0x538bff))_0xe65ebd();else{const _0x5452fc=[],_0x431ea3=_0x28c606()[_0x7a4217(0x156d)](_0x538bff,_0x7a4217(0x70f));for(let _0x15b50c=0x0;_0x15b50c'+_0x1de307(0x4b8))['ariaLabel'](_0x1de307(0x242f))[_0x1de307(0x2283)](_0x25c946)['ok']('OK')['cancel'](_0x1de307(0x18fd));_0x3d77c7[_0x1de307(0xa60)](_0x57146a)[_0x1de307(0x64a)](function(){_0x53ee77(_0x5446ff);},function(){console['log']('CANCEL');});}function _0xcee435(){const _0x1c271e=_0x25cd71;if(_0x57aa6c[_0x1c271e(0x4de)](_0x1c271e(0x333)))_0x251332['go'](_0x1c271e(0x1dcb),{});else return _0x215c90[_0x1c271e(0x16b2)]['get']({'userProfileId':_0x57aa6c[_0x1c271e(0x808)]()[_0x1c271e(0x21ac)],'sectionId':0x19b})[_0x1c271e(0x15e7)]['then'](function(_0x4c3b98){const _0x2fcf33=_0x1c271e,_0x241588=_0x4c3b98&&_0x4c3b98[_0x2fcf33(0x28b8)]?_0x4c3b98['rows'][0x0]:null;_0x241588&&_0x241588['enabled']?_0x251332['go'](_0x2fcf33(0x1dcb),{}):_0x87868[_0x2fcf33(0x772)]({'title':_0x3a1864['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x3a1864[_0x2fcf33(0x2292)](_0x2fcf33(0x229))});})['catch'](function(_0x66e0a0){const _0x158a55=_0x1c271e;_0x87868[_0x158a55(0x1bd0)]({'title':_0x66e0a0[_0x158a55(0x10b3)]?'API:'+_0x66e0a0['status']+_0x158a55(0x21db)+_0x66e0a0['statusText']:_0x158a55(0x942),'msg':_0x66e0a0[_0x158a55(0x10b3)]?JSON[_0x158a55(0x2317)](_0x66e0a0[_0x158a55(0x1c52)]):_0x66e0a0[_0x158a55(0x2915)]()});});}let _0xb9c63e=!![],_0x2b649b=0x1;_0x6368b4['$watch'](_0x25cd71(0x1cb9),function(_0x660c1,_0x11de6b){const _0x58ba8e=_0x25cd71;_0xb9c63e?_0x2cd1a9(function(){_0xb9c63e=![];}):(!_0x11de6b&&(_0x2b649b=_0x26f65d[_0x58ba8e(0x289a)]['page']),_0x660c1!==_0x11de6b&&(_0x26f65d[_0x58ba8e(0x289a)][_0x58ba8e(0xc72)]=0x1),!_0x660c1&&(_0x26f65d[_0x58ba8e(0x289a)]['page']=_0x2b649b),_0x26f65d['getVoiceQueues']());});function _0x210eba(_0x5359c9){_0x26f65d['voiceQueues']=_0x5359c9||{'count':0x0,'rows':[]};}function _0x588516(){const _0x2197e3=_0x25cd71;_0x26f65d[_0x2197e3(0x289a)]['offset']=(_0x26f65d[_0x2197e3(0x289a)][_0x2197e3(0xc72)]-0x1)*_0x26f65d['query']['limit'],_0x57aa6c[_0x2197e3(0x4de)](_0x2197e3(0x333))?_0x26f65d['promise']=_0x215c90[_0x2197e3(0x178b)][_0x2197e3(0x896)](_0x26f65d[_0x2197e3(0x289a)],_0x210eba)[_0x2197e3(0x15e7)]:(_0x26f65d[_0x2197e3(0x289a)]['id']=_0x26f65d['userProfile']['id'],_0x26f65d[_0x2197e3(0x289a)]['section']='VoiceQueues',_0x26f65d[_0x2197e3(0x1713)]=_0x215c90[_0x2197e3(0x16a8)]['getResources'](_0x26f65d[_0x2197e3(0x289a)],_0x210eba)[_0x2197e3(0x15e7)]);}function _0x539d97(_0xcf88ac,_0x3a9ed9){const _0x455056=_0x25cd71;_0x3d77c7[_0x455056(0xa60)]({'controller':'CreateOrEditVoiceQueueDialogController','controllerAs':'vm','templateUrl':_0x2df9d9,'parent':angular[_0x455056(0x1f81)](_0xcb966d['body']),'targetEvent':_0xcf88ac,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x3a9ed9,'voiceQueues':_0x26f65d[_0x455056(0x2dc)]['rows'],'license':_0x26f65d[_0x455056(0x1947)],'setting':_0x26f65d[_0x455056(0x28d6)],'crudPermissions':_0x26f65d[_0x455056(0x402)]}});}function _0x53ee77(_0x5f58d8){const _0xc858fc=_0x25cd71;_0x215c90[_0xc858fc(0x178b)][_0xc858fc(0xabd)]({'id':_0x5f58d8['id']})[_0xc858fc(0x15e7)][_0xc858fc(0x64a)](function(){const _0x51dfb0=_0xc858fc;_0x28c606()[_0x51dfb0(0x21c7)](_0x26f65d[_0x51dfb0(0x2dc)]['rows'],{'id':_0x5f58d8['id']}),_0x26f65d[_0x51dfb0(0x2dc)]['count']-=0x1,!_0x26f65d[_0x51dfb0(0x2dc)][_0x51dfb0(0x28b8)][_0x51dfb0(0x1b9e)]&&_0x26f65d[_0x51dfb0(0x137a)](),_0x87868['success']({'title':_0x28c606()[_0x51dfb0(0xc01)](_0x51dfb0(0x1a06))+'\x20deleted!','msg':_0x5f58d8[_0x51dfb0(0x2494)]?_0x5f58d8[_0x51dfb0(0x2494)]+_0x51dfb0(0x1fa8):''});})[_0xc858fc(0x20cd)](function(_0x102895){const _0x2ae89d=_0xc858fc;if(_0x102895[_0x2ae89d(0x1c52)]&&_0x102895[_0x2ae89d(0x1c52)][_0x2ae89d(0xbae)]&&_0x102895[_0x2ae89d(0x1c52)]['errors']['length']){_0x26f65d['errors']=_0x102895[_0x2ae89d(0x1c52)][_0x2ae89d(0xbae)]||[{'message':_0x102895[_0x2ae89d(0x2915)](),'type':_0x2ae89d(0x9bf)}];for(let _0x553dd8=0x0;_0x553dd8<_0x102895[_0x2ae89d(0x1c52)][_0x2ae89d(0xbae)][_0x2ae89d(0x1b9e)];_0x553dd8++){_0x87868[_0x2ae89d(0x1bd0)]({'title':_0x102895[_0x2ae89d(0x1c52)][_0x2ae89d(0xbae)][_0x553dd8][_0x2ae89d(0x2185)],'msg':_0x102895[_0x2ae89d(0x1c52)][_0x2ae89d(0xbae)][_0x553dd8]['message']});}}else _0x87868[_0x2ae89d(0x1bd0)]({'title':_0x102895['status']?'API:'+_0x102895[_0x2ae89d(0x10b3)]+_0x2ae89d(0x21db)+_0x102895['statusText']:_0x2ae89d(0x9bf),'msg':_0x102895[_0x2ae89d(0x1c52)]?JSON[_0x2ae89d(0x2317)](_0x102895[_0x2ae89d(0x1c52)][_0x2ae89d(0x18ca)]):_0x102895[_0x2ae89d(0x18ca)]||_0x102895[_0x2ae89d(0x2915)]()});});}function _0x21e230(){const _0x2d3425=_0x25cd71,_0x29a8eb=angular[_0x2d3425(0x289e)](_0x26f65d[_0x2d3425(0x22f1)]);return _0x26f65d[_0x2d3425(0x22f1)]=[],_0x29a8eb;}function _0x35a50c(_0x936789){const _0x1c7eb6=_0x25cd71,_0x4d607d=_0x3d77c7['confirm']()[_0x1c7eb6(0x2021)](_0x1c7eb6(0x2648))[_0x1c7eb6(0x33a)](_0x1c7eb6(0x50b)+_0x26f65d[_0x1c7eb6(0x22f1)][_0x1c7eb6(0x1b9e)]+_0x1c7eb6(0x163e)+_0x1c7eb6(0x4b8))['ariaLabel'](_0x1c7eb6(0x102a))[_0x1c7eb6(0x2283)](_0x936789)['ok']('OK')[_0x1c7eb6(0x101a)](_0x1c7eb6(0x18fd));_0x3d77c7[_0x1c7eb6(0xa60)](_0x4d607d)[_0x1c7eb6(0x64a)](function(){const _0x629f31=_0x1c7eb6;_0x26f65d['selectedVoiceQueues'][_0x629f31(0x1397)](function(_0x1eecd8){_0x53ee77(_0x1eecd8);}),_0x26f65d[_0x629f31(0x22f1)]=[];});}function _0x21a812(){const _0x15fc28=_0x25cd71;_0x26f65d[_0x15fc28(0x22f1)]=[];}function _0x2c7350(){const _0x1caeaf=_0x25cd71;_0x26f65d[_0x1caeaf(0x22f1)]=_0x26f65d[_0x1caeaf(0x2dc)][_0x1caeaf(0x28b8)];}}const _0x9e2ccc=_0x365d04;;_0x83f90[_0x49a1e3(0x1e73)]=['$scope','$state',_0x49a1e3(0x1155),'$mdDialog','$q','$translate',_0x49a1e3(0x680),_0x49a1e3(0xdfc),_0x49a1e3(0x15bd),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'crudPermissions'];function _0x83f90(_0x365476,_0x2915fe,_0x168223,_0x8a59e3,_0xadcdad,_0x58ce8a,_0x53dabe,_0x3fe208,_0x1bb019,_0xea04b5,_0x315296,_0x2d14f9,_0x26b6e1,_0x5a95c5){const _0x57130f=_0x49a1e3,_0x322fa0=this;_0x322fa0[_0x57130f(0x1d3d)]=_0x315296[_0x57130f(0x808)](),_0x322fa0['errors']=[],_0x322fa0[_0x57130f(0x28d6)]=_0x26b6e1,_0x322fa0[_0x57130f(0x1947)]=_0x2d14f9,_0x322fa0['crudPermissions']=_0x5a95c5,_0x322fa0[_0x57130f(0x6c2)]={},_0x322fa0[_0x57130f(0xccc)]=_0x322fa0[_0x57130f(0x28d6)]&&_0x322fa0[_0x57130f(0x28d6)][_0x57130f(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x322fa0[_0x57130f(0x2021)]='VOICE.EDIT_VOICERECORDING',_0x322fa0[_0x57130f(0x15bd)]=angular[_0x57130f(0x289e)](_0x1bb019),_0x322fa0[_0x57130f(0xdfc)]=_0x3fe208,_0x322fa0['newVoiceRecording']=![];!_0x322fa0[_0x57130f(0x15bd)]&&(_0x322fa0[_0x57130f(0x15bd)]={},_0x322fa0[_0x57130f(0x2021)]=_0x57130f(0x23e8),_0x322fa0['newVoiceRecording']=!![]);_0x322fa0[_0x57130f(0xc1b)]=_0x25af6a,_0x322fa0[_0x57130f(0xd63)]=_0x2dba56,_0x322fa0[_0x57130f(0x103b)]=_0x41a6d1,_0x322fa0['getDateFromString']=_0x12cac9,_0x322fa0[_0x57130f(0x16cb)]=_0x445eea;function _0x25af6a(){const _0xb5a189=_0x57130f;_0x322fa0['errors']=[],_0xea04b5[_0xb5a189(0x15bd)]['save'](_0x322fa0['voiceRecording'])['$promise'][_0xb5a189(0x64a)](function(_0x13f0b9){const _0x35a3f0=_0xb5a189;_0x322fa0[_0x35a3f0(0xdfc)][_0x35a3f0(0x1891)](_0x13f0b9['toJSON']()),_0x53dabe[_0x35a3f0(0x1339)]({'title':_0x35a3f0(0x11a9),'msg':_0x322fa0[_0x35a3f0(0x15bd)]['name']?_0x322fa0[_0x35a3f0(0x15bd)][_0x35a3f0(0x2494)]+'\x20has\x20been\x20created!':''}),_0x445eea(_0x13f0b9);})[_0xb5a189(0x20cd)](function(_0x2179cd){const _0x47a306=_0xb5a189;if(_0x2179cd[_0x47a306(0x1c52)]&&_0x2179cd[_0x47a306(0x1c52)][_0x47a306(0xbae)]&&_0x2179cd[_0x47a306(0x1c52)][_0x47a306(0xbae)][_0x47a306(0x1b9e)]){_0x322fa0[_0x47a306(0xbae)]=_0x2179cd[_0x47a306(0x1c52)]['errors']||[{'message':_0x2179cd[_0x47a306(0x2915)](),'type':_0x47a306(0x1198)}];for(let _0x3a3b25=0x0;_0x3a3b25<_0x2179cd[_0x47a306(0x1c52)]['errors']['length'];_0x3a3b25+=0x1){_0x53dabe[_0x47a306(0x1bd0)]({'title':_0x2179cd[_0x47a306(0x1c52)][_0x47a306(0xbae)][_0x3a3b25]['type'],'msg':_0x2179cd[_0x47a306(0x1c52)]['errors'][_0x3a3b25][_0x47a306(0x18ca)]});}}else _0x53dabe[_0x47a306(0x1bd0)]({'title':_0x2179cd[_0x47a306(0x10b3)]?'API:'+_0x2179cd[_0x47a306(0x10b3)]+_0x47a306(0x21db)+_0x2179cd[_0x47a306(0x2115)]:_0x47a306(0x1198),'msg':_0x2179cd[_0x47a306(0x1c52)]?JSON[_0x47a306(0x2317)](_0x2179cd[_0x47a306(0x1c52)][_0x47a306(0x18ca)]):_0x2179cd[_0x47a306(0x2915)]()});});}function _0x2dba56(){const _0xf8f8f6=_0x57130f;_0x322fa0[_0xf8f8f6(0xbae)]=[],_0xea04b5[_0xf8f8f6(0x15bd)][_0xf8f8f6(0x2603)]({'id':_0x322fa0[_0xf8f8f6(0x15bd)]['id']},_0x322fa0[_0xf8f8f6(0x15bd)])[_0xf8f8f6(0x15e7)][_0xf8f8f6(0x64a)](function(_0x45f133){const _0x37ef88=_0xf8f8f6,_0x55ac11=_0x28c606()[_0x37ef88(0x27bc)](_0x322fa0[_0x37ef88(0xdfc)],{'id':_0x45f133['id']});_0x55ac11&&_0x28c606()['merge'](_0x55ac11,_0x28c606()[_0x37ef88(0x27bb)](_0x45f133[_0x37ef88(0x14f8)](),_0x28c606()[_0x37ef88(0x1ec6)](_0x55ac11))),_0x53dabe[_0x37ef88(0x1339)]({'title':'VoiceRecording\x20properly\x20saved!','msg':_0x322fa0[_0x37ef88(0x15bd)][_0x37ef88(0x2494)]?_0x322fa0[_0x37ef88(0x15bd)][_0x37ef88(0x2494)]+_0x37ef88(0x271):''}),_0x445eea(_0x45f133);})[_0xf8f8f6(0x20cd)](function(_0x1f8e38){const _0x2a9d14=_0xf8f8f6;if(_0x1f8e38[_0x2a9d14(0x1c52)]&&_0x1f8e38[_0x2a9d14(0x1c52)][_0x2a9d14(0xbae)]&&_0x1f8e38[_0x2a9d14(0x1c52)][_0x2a9d14(0xbae)][_0x2a9d14(0x1b9e)]){_0x322fa0[_0x2a9d14(0xbae)]=_0x1f8e38[_0x2a9d14(0x1c52)][_0x2a9d14(0xbae)]||[{'message':_0x1f8e38[_0x2a9d14(0x2915)](),'type':_0x2a9d14(0x2615)}];for(let _0x18ac0f=0x0;_0x18ac0f<_0x1f8e38[_0x2a9d14(0x1c52)][_0x2a9d14(0xbae)]['length'];_0x18ac0f++){_0x53dabe[_0x2a9d14(0x1bd0)]({'title':_0x1f8e38[_0x2a9d14(0x1c52)]['errors'][_0x18ac0f][_0x2a9d14(0x2185)],'msg':_0x1f8e38[_0x2a9d14(0x1c52)][_0x2a9d14(0xbae)][_0x18ac0f][_0x2a9d14(0x18ca)]});}}else _0x53dabe[_0x2a9d14(0x1bd0)]({'title':_0x1f8e38['status']?_0x2a9d14(0x575)+_0x1f8e38['status']+_0x2a9d14(0x21db)+_0x1f8e38[_0x2a9d14(0x2115)]:'api.voiceRecording.update','msg':_0x1f8e38[_0x2a9d14(0x1c52)]?JSON[_0x2a9d14(0x2317)](_0x1f8e38['data'][_0x2a9d14(0x18ca)]):_0x1f8e38['toString']()});});}function _0x41a6d1(_0x2fb1d2){const _0xa48366=_0x57130f;_0x322fa0[_0xa48366(0xbae)]=[];const _0x58b0ab=_0x8a59e3[_0xa48366(0x856)]()[_0xa48366(0x2021)](_0xa48366(0x103a))['content'](_0xa48366(0x1c03))[_0xa48366(0x213e)](_0xa48366(0x7f9))['ok']('Delete')[_0xa48366(0x101a)](_0xa48366(0x1dc6))[_0xa48366(0x2283)](_0x2fb1d2);_0x8a59e3['show'](_0x58b0ab)['then'](function(){const _0x1e6c41=_0xa48366;_0xea04b5[_0x1e6c41(0x15bd)][_0x1e6c41(0xabd)]({'id':_0x322fa0['voiceRecording']['id']})[_0x1e6c41(0x15e7)][_0x1e6c41(0x64a)](function(){const _0x47e438=_0x1e6c41;_0x28c606()[_0x47e438(0x21c7)](_0x322fa0['voiceRecordings'],{'id':_0x322fa0[_0x47e438(0x15bd)]['id']}),_0x53dabe[_0x47e438(0x1339)]({'title':_0x47e438(0xb23),'msg':(_0x322fa0['voiceRecording'][_0x47e438(0x2494)]||'voiceRecording')+'\x20has\x20been\x20deleted!'}),_0x445eea(_0x322fa0['voiceRecording']);})[_0x1e6c41(0x20cd)](function(_0x3f9492){const _0x24a441=_0x1e6c41;if(_0x3f9492[_0x24a441(0x1c52)]&&_0x3f9492[_0x24a441(0x1c52)][_0x24a441(0xbae)]&&_0x3f9492['data'][_0x24a441(0xbae)][_0x24a441(0x1b9e)]){_0x322fa0['errors']=_0x3f9492[_0x24a441(0x1c52)][_0x24a441(0xbae)]||[{'message':_0x3f9492['toString'](),'type':'api.voiceRecording.delete'}];for(let _0x14ab2e=0x0;_0x14ab2e<_0x3f9492['data']['errors'][_0x24a441(0x1b9e)];_0x14ab2e++){_0x53dabe[_0x24a441(0x1bd0)]({'title':_0x3f9492[_0x24a441(0x1c52)][_0x24a441(0xbae)][_0x14ab2e][_0x24a441(0x2185)],'msg':_0x3f9492['data'][_0x24a441(0xbae)][_0x14ab2e][_0x24a441(0x18ca)]});}}else _0x53dabe[_0x24a441(0x1bd0)]({'title':_0x3f9492[_0x24a441(0x10b3)]?'API:'+_0x3f9492[_0x24a441(0x10b3)]+_0x24a441(0x21db)+_0x3f9492[_0x24a441(0x2115)]:'api.voiceRecording.delete','msg':_0x3f9492[_0x24a441(0x1c52)]?JSON['stringify'](_0x3f9492['data'][_0x24a441(0x18ca)]):_0x3f9492['message']||_0x3f9492[_0x24a441(0x2915)]()});});},function(){});}function _0x12cac9(_0x324a27){return _0x324a27===null?undefined:new Date(_0x324a27);}function _0x445eea(_0xae59f8){_0x8a59e3['hide'](_0xae59f8);}}const _0x3b392e=_0x83f90;;function _0x59c8d3(){const _0x4d2200=_0x49a1e3,_0x32dadf=this;_0x32dadf[_0x4d2200(0x15bd)]={},_0x32dadf[_0x4d2200(0x2354)]=_0x2100af;function _0x2100af(_0x3f1cbb){const _0x46fd5c=_0x4d2200;_0x32dadf[_0x46fd5c(0x15bd)]=_0x3f1cbb;}}const _0x5b10b5=_0x59c8d3;;_0x35ce4a[_0x49a1e3(0x1e73)]=['$state',_0x49a1e3(0x1155),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x298c),'license',_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x15bd),'userProfileSection'];function _0x35ce4a(_0xde7f0,_0x3c34ec,_0x2a52d6,_0x48ffa2,_0x21f729,_0x1238f7,_0x220a28,_0x2e825b,_0x22d173,_0x3a90e2,_0x4939b7,_0x3732d5){const _0x22d8ef=_0x49a1e3,_0x3a60c1=this;_0x3a60c1[_0x22d8ef(0x1d3d)]=_0x3a90e2[_0x22d8ef(0x808)](),_0x3a60c1[_0x22d8ef(0x1947)]=_0x1238f7,_0x3a60c1['setting']=_0x220a28,_0x3a60c1['passwordPattern']=_0x3a60c1[_0x22d8ef(0x28d6)][_0x22d8ef(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a60c1[_0x22d8ef(0xb36)]=_0x3c34ec[_0x22d8ef(0x48e)]()+'://'+_0x3c34ec['host'](),_0x3a60c1[_0x22d8ef(0x15bd)]=_0x4939b7||_0xde7f0[_0x22d8ef(0x1b48)][_0x22d8ef(0x15bd)]||{},_0x3a60c1[_0x22d8ef(0x16b2)]=_0x3732d5&&_0x3732d5[_0x22d8ef(0xb90)]==0x1?_0x3732d5[_0x22d8ef(0x28b8)][0x0]:null,_0x3a60c1[_0x22d8ef(0x402)]=_0x3a90e2[_0x22d8ef(0xa7e)](_0x3a60c1[_0x22d8ef(0x16b2)]?_0x3a60c1[_0x22d8ef(0x16b2)]['crudPermissions']:null),_0x3a60c1[_0x22d8ef(0x6c2)]={},_0x3a60c1[_0x22d8ef(0x197c)]=_0xde7f0[_0x22d8ef(0x1b48)]['tab']||0x0,_0x3a60c1['alert']=_0x22d173[_0x22d8ef(0x772)],_0x3a60c1[_0x22d8ef(0xff0)]=_0x1aa486,_0x3a60c1['saveVoiceRecording']=_0x36e3f2;function _0x1aa486(){const _0x45a1b1=_0x22d8ef;_0xde7f0['go'](_0x45a1b1(0x200d),{},{'reload':_0x45a1b1(0x200d)});}function _0x36e3f2(){const _0x586d9b=_0x22d8ef;_0x2e825b[_0x586d9b(0x15bd)][_0x586d9b(0x2603)]({'id':_0x3a60c1[_0x586d9b(0x15bd)]['id']},_0x3a60c1[_0x586d9b(0x15bd)])[_0x586d9b(0x15e7)][_0x586d9b(0x64a)](function(){const _0x2d1e9c=_0x586d9b;_0x22d173['success']({'title':_0x2d1e9c(0x1cb8),'msg':_0x3a60c1[_0x2d1e9c(0x15bd)][_0x2d1e9c(0x2494)]?_0x3a60c1[_0x2d1e9c(0x15bd)]['name']+_0x2d1e9c(0x2032):''});})['catch'](function(_0x343875){const _0x40803=_0x586d9b;_0x22d173[_0x40803(0x1bd0)]({'title':_0x343875[_0x40803(0x10b3)]?_0x40803(0x575)+_0x343875[_0x40803(0x10b3)]+_0x40803(0x21db)+_0x343875[_0x40803(0x2115)]:_0x40803(0x2379),'msg':_0x343875[_0x40803(0x1c52)]?JSON['stringify'](_0x343875[_0x40803(0x1c52)]):_0x343875[_0x40803(0x2915)]()});});}}const _0x58a384=_0x35ce4a;;const _0x141845=_0x2e4a48['p']+_0x49a1e3(0x1b57);;_0x298ef1['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog','$document','$timeout',_0x49a1e3(0x298c),'voiceRecordings',_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),'msUtils',_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting'];function _0x298ef1(_0x3bdc3f,_0x2a9f77,_0x469922,_0x8617c3,_0x86cb74,_0x1e0da1,_0x5b5acb,_0x369b1e,_0x186ce3,_0x1fe42,_0x1c38ff,_0x107866,_0x4fa5a2,_0x11c990,_0x16c04b,_0x20cf7e,_0x1046e0){const _0x1cfd70=_0x49a1e3,_0x151b46=this;_0x151b46[_0x1cfd70(0x1947)]=_0x20cf7e,_0x151b46[_0x1cfd70(0x28d6)]=_0x1046e0,_0x151b46['currentUser']=_0x16c04b[_0x1cfd70(0x808)](),_0x151b46['voiceRecordings']=_0x186ce3||{'count':0x0,'rows':[]},_0x151b46[_0x1cfd70(0x16a8)]=_0x1fe42,_0x151b46[_0x1cfd70(0x16b2)]=_0x1c38ff&&_0x1c38ff[_0x1cfd70(0xb90)]==0x1?_0x1c38ff[_0x1cfd70(0x28b8)][0x0]:null,_0x151b46[_0x1cfd70(0x402)]=_0x16c04b[_0x1cfd70(0xa7e)](_0x151b46[_0x1cfd70(0x16b2)]?_0x151b46[_0x1cfd70(0x16b2)][_0x1cfd70(0x402)]:null),_0x151b46[_0x1cfd70(0x185d)]=_0x1cfd70(0xdfc),_0x151b46['listOrder']='',_0x151b46['listOrderAsc']=null,_0x151b46[_0x1cfd70(0xa5e)]=[],_0x151b46[_0x1cfd70(0x289a)]={'fields':_0x1cfd70(0x137d),'sort':_0x1cfd70(0x260c),'createdAt':_0x1cfd70(0x853),'limit':0xa,'page':0x1},_0x151b46['query'][_0x1cfd70(0x2378)]=_0x4fa5a2[_0x1cfd70(0x1b72)](),_0x151b46[_0x1cfd70(0x9fc)]=_0x4c9706();function _0x4c9706(){const _0xec34f0=_0x1cfd70;return[{'name':_0xec34f0(0x1967),'key':_0xec34f0(0x2378),'type':_0xec34f0(0x232e),'label':'DASHBOARDS.SELECT_DATE_RANGE'}];}_0x151b46[_0x1cfd70(0xff6)]=_0x3404c7,_0x151b46[_0x1cfd70(0x2164)]=_0x1dd88b,_0x151b46[_0x1cfd70(0x21fe)]=_0x485b38,_0x151b46[_0x1cfd70(0x1d46)]=_0x3d0913,_0x151b46[_0x1cfd70(0x1d57)]=_0x1907a5,_0x151b46[_0x1cfd70(0x1d39)]=_0x1f41b1,_0x151b46[_0x1cfd70(0x1262)]=_0x1d4bb7,_0x151b46[_0x1cfd70(0x1339)]=_0x12c118,_0x151b46[_0x1cfd70(0x1022)]=_0x327172,_0x151b46[_0x1cfd70(0xec7)]=_0x26265e,_0x151b46['deleteVoiceRecording']=_0x4c8485,_0x151b46[_0x1cfd70(0x196b)]=_0x3b8fd8,_0x151b46[_0x1cfd70(0x25de)]=_0x3e53bc,_0x151b46[_0x1cfd70(0xf6b)]=_0x59182b,_0x151b46[_0x1cfd70(0x11e2)]=_0x58c7e2;function _0x3404c7(_0x5a0be5){const _0x34cdf0=_0x1cfd70;_0x469922['go'](_0x34cdf0(0x9c1),{'id':_0x5a0be5['id'],'voiceRecording':_0x5a0be5,'crudPermissions':_0x151b46['crudPermissions']});}_0x151b46[_0x1cfd70(0x1478)]=_0x2bba29;function _0x1dd88b(_0x43f933){const _0x1eb229=_0x1cfd70;return _0x107866[_0x1eb229(0x15bd)][_0x1eb229(0x11c5)]({'id':_0x43f933['id'],'runSentiment':![]})[_0x1eb229(0x15e7)][_0x1eb229(0x64a)](function(_0x5aa9c4){const _0x5499ee=_0x1eb229;_0x11c990['success']({'title':_0x369b1e[_0x5499ee(0x2292)](_0x5499ee(0x1684)),'msg':_0x369b1e[_0x5499ee(0x2292)](_0x5499ee(0x1684))+_0x5499ee(0x257d)}),_0x43f933['transcribeStatus']=_0x5aa9c4[_0x5499ee(0x101d)];})[_0x1eb229(0x20cd)](function(_0x36b1b9){const _0x4f0a98=_0x1eb229;_0x11c990[_0x4f0a98(0x1bd0)]({'title':_0x369b1e['instant'](_0x4f0a98(0x1684)),'msg':_0x36b1b9[_0x4f0a98(0x1c52)]?_0x36b1b9[_0x4f0a98(0x1c52)][_0x4f0a98(0x18ca)]?_0x36b1b9[_0x4f0a98(0x1c52)][_0x4f0a98(0x18ca)]:JSON[_0x4f0a98(0x2317)](_0x36b1b9[_0x4f0a98(0x1c52)]):_0x36b1b9[_0x4f0a98(0x2915)]()});});}function _0x2bba29(){const _0x356ef6=_0x1cfd70;_0x151b46[_0x356ef6(0xa5e)][_0x356ef6(0x1397)](function(_0x27bf14){_0x1dd88b(_0x27bf14);}),_0x151b46[_0x356ef6(0xa5e)]=[];}_0x151b46['runtranscribesentimentSelectedVoiceRecordings']=_0x260c37;function _0x485b38(_0x1dd638){const _0x5f3769=_0x1cfd70;return _0x107866[_0x5f3769(0x15bd)][_0x5f3769(0x11c5)]({'id':_0x1dd638['id'],'runSentiment':!![]})[_0x5f3769(0x15e7)]['then'](function(_0x27c4cf){const _0x43b707=_0x5f3769;_0x11c990['success']({'title':_0x369b1e[_0x43b707(0x2292)](_0x43b707(0x2383)),'msg':_0x369b1e[_0x43b707(0x2292)](_0x43b707(0x2383))+_0x43b707(0x257d)}),_0x1dd638[_0x43b707(0x101d)]=_0x27c4cf[_0x43b707(0x101d)];})['catch'](function(_0x445105){const _0x3c25e6=_0x5f3769;_0x11c990[_0x3c25e6(0x1bd0)]({'title':_0x369b1e['instant'](_0x3c25e6(0x2383)),'msg':_0x445105['data']?_0x445105['data'][_0x3c25e6(0x18ca)]?_0x445105[_0x3c25e6(0x1c52)][_0x3c25e6(0x18ca)]:JSON['stringify'](_0x445105[_0x3c25e6(0x1c52)]):_0x445105[_0x3c25e6(0x2915)]()});});}function _0x260c37(){const _0x450df0=_0x1cfd70;_0x151b46[_0x450df0(0xa5e)]['forEach'](function(_0x59e2c5){_0x485b38(_0x59e2c5);}),_0x151b46[_0x450df0(0xa5e)]=[];}_0x151b46[_0x1cfd70(0x6c8)]=_0x32910e;function _0x3d0913(_0x5d15ea){const _0x384881=_0x1cfd70;return _0x107866['voiceRecording'][_0x384881(0x11c5)]({'id':_0x5d15ea['id'],'runSentiment':!![]})[_0x384881(0x15e7)][_0x384881(0x64a)](function(){const _0x151b8f=_0x384881;_0x11c990[_0x151b8f(0x1339)]({'title':_0x369b1e['instant'](_0x151b8f(0x169c)),'msg':_0x369b1e['instant'](_0x151b8f(0x169c))+_0x151b8f(0x257d)});})[_0x384881(0x20cd)](function(_0x301de1){const _0xc2bf33=_0x384881;_0x11c990['error']({'title':_0x369b1e[_0xc2bf33(0x2292)](_0xc2bf33(0x169c)),'msg':_0x301de1[_0xc2bf33(0x1c52)]?_0x301de1[_0xc2bf33(0x1c52)][_0xc2bf33(0x18ca)]?_0x301de1[_0xc2bf33(0x1c52)][_0xc2bf33(0x18ca)]:JSON[_0xc2bf33(0x2317)](_0x301de1[_0xc2bf33(0x1c52)]):_0x301de1[_0xc2bf33(0x2915)]()});});}function _0x32910e(){const _0x4b0023=_0x1cfd70;_0x151b46[_0x4b0023(0xa5e)][_0x4b0023(0x1397)](function(_0x4d2d44){_0x3d0913(_0x4d2d44);}),_0x151b46[_0x4b0023(0xa5e)]=[];}function _0x1907a5(_0x15d3a2){const _0x55550f=_0x1cfd70;let _0x27ccc2=![];const _0x115648=!_0x28c606()['isNil'](_0x15d3a2[_0x55550f(0x1c2c)])?_0x15d3a2[_0x55550f(0x1c2c)]:_0x15d3a2[_0x55550f(0x1096)][_0x55550f(0x28b2)](_0x15d3a2[_0x55550f(0x1096)][_0x55550f(0x269c)]('.'));return _0x27ccc2=_0x115648===_0x55550f(0x431)?!![]:![],_0x107866[_0x55550f(0x15bd)]['downloadTranscribe']({'id':_0x15d3a2['id']})['$promise'][_0x55550f(0x64a)](function(_0x1bb04e){const _0xa9d5f6=_0x55550f,_0x5b1132=[_0x1bb04e[_0xa9d5f6(0x5a9)]];let _0x13f86a='download';const _0x319877=new Blob(_0x5b1132,{'type':_0x1bb04e['type']});_0x13f86a=_0x15d3a2[_0xa9d5f6(0x2947)]+_0xa9d5f6(0x252a);const _0x17bb95=window[_0xa9d5f6(0x123f)][_0xa9d5f6(0x2978)]('a');_0x17bb95[_0xa9d5f6(0x1280)](_0xa9d5f6(0x25d0),URL['createObjectURL'](_0x319877)),_0x17bb95[_0xa9d5f6(0x1280)](_0xa9d5f6(0x19b3),_0x13f86a),document[_0xa9d5f6(0xb49)][_0xa9d5f6(0x2661)](_0x17bb95),_0x17bb95['click']();})[_0x55550f(0x20cd)](function(_0x30830a){const _0x2faea0=_0x55550f;if(_0x30830a['data']&&_0x30830a[_0x2faea0(0x1c52)][_0x2faea0(0xbae)]&&_0x30830a[_0x2faea0(0x1c52)][_0x2faea0(0xbae)][_0x2faea0(0x1b9e)])for(let _0xe956a9=0x0;_0xe956a9<_0x30830a['data']['errors'][_0x2faea0(0x1b9e)];_0xe956a9++){_0x11c990[_0x2faea0(0x1bd0)]({'title':_0x30830a[_0x2faea0(0x1c52)][_0x2faea0(0xbae)][_0xe956a9][_0x2faea0(0x2185)],'msg':_0x30830a['data'][_0x2faea0(0xbae)][_0xe956a9]['message']});}else{if(String(_0x30830a[_0x2faea0(0x10b3)])==='404'&&_0x27ccc2===![])_0x11c990[_0x2faea0(0x772)]({'title':_0x369b1e['instant'](_0x2faea0(0x2735)),'msg':_0x369b1e[_0x2faea0(0x2292)](_0x2faea0(0x1d77))});else String(_0x30830a[_0x2faea0(0x10b3)])===_0x2faea0(0xfed)?_0x11c990[_0x2faea0(0x772)]({'title':_0x369b1e['instant'](_0x2faea0(0x2735)),'msg':_0x369b1e[_0x2faea0(0x2292)]('APP.FILE_NOT_FOUND')}):_0x11c990[_0x2faea0(0x1bd0)]({'title':_0x30830a['status']?_0x2faea0(0x575)+_0x30830a[_0x2faea0(0x10b3)]+_0x2faea0(0x21db)+_0x30830a['statusText']:_0x2faea0(0x1198),'msg':_0x30830a[_0x2faea0(0x1c52)]?JSON['stringify'](_0x30830a[_0x2faea0(0x1c52)][_0x2faea0(0x18ca)]):_0x30830a['toString']()});}});}function _0x3c5a4d(_0x326ce1){const _0x3035c4=_0x1cfd70;let _0x32aa62=_0x326ce1[_0x3035c4(0x269c)]('/')>-0x1?_0x326ce1['substring'](_0x326ce1[_0x3035c4(0x269c)]('/')+0x1):_0x326ce1['lastIndexOf']('\x5c')>-0x1?_0x326ce1[_0x3035c4(0x28b2)](_0x326ce1[_0x3035c4(0x269c)]('\x5c')+0x1):_0x326ce1;return _0x32aa62=_0x32aa62[_0x3035c4(0x28b2)](0x0,_0x32aa62[_0x3035c4(0x269c)]('.')),_0x32aa62;}function _0x1f41b1(_0x1c20ef){const _0x3ebf66=_0x1cfd70;let _0x256fd2=![];const _0x5645cb=!_0x28c606()['isNil'](_0x1c20ef[_0x3ebf66(0x1c2c)])?_0x1c20ef[_0x3ebf66(0x1c2c)]:_0x1c20ef[_0x3ebf66(0x1096)]['substring'](_0x1c20ef[_0x3ebf66(0x1096)][_0x3ebf66(0x269c)]('.'));return _0x256fd2=_0x5645cb===_0x3ebf66(0x431)?!![]:![],_0x107866['voiceRecording']['download']({'id':_0x1c20ef['id']})[_0x3ebf66(0x15e7)][_0x3ebf66(0x64a)](function(_0x14d677){const _0x34fba6=_0x3ebf66,_0x11d3e6=[_0x14d677[_0x34fba6(0x5a9)]];let _0x97360=_0x34fba6(0x19b3);const _0x108608=new Blob(_0x11d3e6,{'type':_0x14d677[_0x34fba6(0x2185)]});_0x97360=_0x3c5a4d(_0x1c20ef[_0x34fba6(0x1096)])+_0x1c20ef[_0x34fba6(0x1c2c)];const _0x5aac2d=window[_0x34fba6(0x123f)][_0x34fba6(0x2978)]('a');_0x5aac2d['setAttribute'](_0x34fba6(0x25d0),URL[_0x34fba6(0x206)](_0x108608)),_0x5aac2d[_0x34fba6(0x1280)](_0x34fba6(0x19b3),_0x97360),document['body'][_0x34fba6(0x2661)](_0x5aac2d),_0x5aac2d['click']();})['catch'](function(_0x52c5e5){const _0x493dbe=_0x3ebf66;if(_0x52c5e5[_0x493dbe(0x1c52)]&&_0x52c5e5['data']['errors']&&_0x52c5e5[_0x493dbe(0x1c52)][_0x493dbe(0xbae)][_0x493dbe(0x1b9e)])for(let _0x5a2450=0x0;_0x5a2450<_0x52c5e5[_0x493dbe(0x1c52)]['errors'][_0x493dbe(0x1b9e)];_0x5a2450++){_0x11c990[_0x493dbe(0x1bd0)]({'title':_0x52c5e5[_0x493dbe(0x1c52)][_0x493dbe(0xbae)][_0x5a2450][_0x493dbe(0x2185)],'msg':_0x52c5e5[_0x493dbe(0x1c52)]['errors'][_0x5a2450][_0x493dbe(0x18ca)]});}else{if(String(_0x52c5e5[_0x493dbe(0x10b3)])==='404'&&_0x256fd2===![])_0x11c990[_0x493dbe(0x772)]({'title':_0x369b1e[_0x493dbe(0x2292)](_0x493dbe(0x2735)),'msg':_0x369b1e[_0x493dbe(0x2292)](_0x493dbe(0x1d77))});else String(_0x52c5e5[_0x493dbe(0x10b3)])===_0x493dbe(0xfed)?_0x11c990[_0x493dbe(0x772)]({'title':_0x369b1e[_0x493dbe(0x2292)]('APP.CANT_DOWNLOAD_THIS_FILE'),'msg':_0x369b1e[_0x493dbe(0x2292)]('APP.FILE_NOT_FOUND')}):_0x11c990[_0x493dbe(0x1bd0)]({'title':_0x52c5e5[_0x493dbe(0x10b3)]?_0x493dbe(0x575)+_0x52c5e5['status']+_0x493dbe(0x21db)+_0x52c5e5[_0x493dbe(0x2115)]:_0x493dbe(0x1198),'msg':_0x52c5e5[_0x493dbe(0x1c52)]?JSON[_0x493dbe(0x2317)](_0x52c5e5['data'][_0x493dbe(0x18ca)]):_0x52c5e5[_0x493dbe(0x2915)]()});}});}function _0x1d4bb7(_0x2a4541,_0x102eb6){const _0x473c8c=_0x1cfd70,_0x5e3bc3=_0x86cb74[_0x473c8c(0x856)]()[_0x473c8c(0x2021)](_0x473c8c(0x1231)+_0x28c606()[_0x473c8c(0xc01)](_0x473c8c(0x15bd))+'?')[_0x473c8c(0x33a)](_0x473c8c(0x50b)+(_0x2a4541[_0x473c8c(0x2494)]||_0x473c8c(0x15bd))+''+_0x473c8c(0x4b8))['ariaLabel'](_0x473c8c(0x19ee))[_0x473c8c(0x2283)](_0x102eb6)['ok']('OK')['cancel'](_0x473c8c(0x18fd));_0x86cb74[_0x473c8c(0xa60)](_0x5e3bc3)['then'](function(){_0x4c8485(_0x2a4541);},function(){const _0x4a8b3b=_0x473c8c;console[_0x4a8b3b(0x9b4)](_0x4a8b3b(0x18fd));});}let _0x324a96=!![],_0x5847a8=0x1;_0x3bdc3f['$watch']('vm.query.filter',function(_0x1dff38,_0x104d2c){const _0x2d5f79=_0x1cfd70;_0x324a96?_0x5b5acb(function(){_0x324a96=![];}):(!_0x104d2c&&(_0x5847a8=_0x151b46[_0x2d5f79(0x289a)]['page']),_0x1dff38!==_0x104d2c&&(_0x151b46[_0x2d5f79(0x289a)][_0x2d5f79(0xc72)]=0x1),!_0x1dff38&&(_0x151b46[_0x2d5f79(0x289a)][_0x2d5f79(0xc72)]=_0x5847a8),_0x151b46[_0x2d5f79(0x1022)]());});function _0x12c118(_0x1f8be3){const _0x480ce2=_0x1cfd70;_0x151b46[_0x480ce2(0xdfc)]=_0x1f8be3||{'count':0x0,'rows':[]};}function _0x327172(){const _0x48dafa=_0x1cfd70;_0x151b46[_0x48dafa(0x289a)]['offset']=(_0x151b46[_0x48dafa(0x289a)][_0x48dafa(0xc72)]-0x1)*_0x151b46[_0x48dafa(0x289a)][_0x48dafa(0x25bb)],_0x16c04b[_0x48dafa(0x4de)](_0x48dafa(0x333))?_0x151b46[_0x48dafa(0x1713)]=_0x107866['voiceRecording'][_0x48dafa(0x896)](_0x151b46['query'],_0x12c118)['$promise']:(_0x151b46[_0x48dafa(0x289a)]['id']=_0x151b46[_0x48dafa(0x16a8)]['id'],_0x151b46['query']['section']=_0x48dafa(0x9fd),_0x151b46[_0x48dafa(0x1713)]=_0x107866[_0x48dafa(0x16a8)][_0x48dafa(0x2565)](_0x151b46[_0x48dafa(0x289a)],_0x12c118)[_0x48dafa(0x15e7)]);}function _0x26265e(_0x10d1b5,_0x5be478){const _0x3fbb3b=_0x1cfd70;_0x86cb74[_0x3fbb3b(0xa60)]({'controller':_0x3fbb3b(0x96e),'controllerAs':'vm','templateUrl':_0x141845,'parent':angular[_0x3fbb3b(0x1f81)](_0x1e0da1[_0x3fbb3b(0xb49)]),'targetEvent':_0x10d1b5,'clickOutsideToClose':!![],'locals':{'voiceRecording':_0x5be478,'voiceRecordings':_0x151b46[_0x3fbb3b(0xdfc)][_0x3fbb3b(0x28b8)],'license':_0x151b46[_0x3fbb3b(0x1947)],'setting':_0x151b46['setting'],'crudPermissions':_0x151b46[_0x3fbb3b(0x402)]}});}function _0x4c8485(_0x1dd5a0){const _0x3fc80c=_0x1cfd70;_0x107866[_0x3fc80c(0x15bd)]['delete']({'id':_0x1dd5a0['id']})[_0x3fc80c(0x15e7)][_0x3fc80c(0x64a)](function(){const _0x26fc21=_0x3fc80c;_0x28c606()[_0x26fc21(0x21c7)](_0x151b46['voiceRecordings']['rows'],{'id':_0x1dd5a0['id']}),_0x151b46[_0x26fc21(0xdfc)]['count']-=0x1,!_0x151b46[_0x26fc21(0xdfc)][_0x26fc21(0x28b8)][_0x26fc21(0x1b9e)]&&_0x151b46[_0x26fc21(0x1022)](),_0x11c990[_0x26fc21(0x1339)]({'title':_0x28c606()[_0x26fc21(0xc01)](_0x26fc21(0x13e3))+'\x20deleted!','msg':_0x1dd5a0[_0x26fc21(0x2494)]?_0x1dd5a0[_0x26fc21(0x2494)]+_0x26fc21(0x1fa8):''});})[_0x3fc80c(0x20cd)](function(_0x2fdc7c){const _0x11eaab=_0x3fc80c;if(_0x2fdc7c[_0x11eaab(0x1c52)]&&_0x2fdc7c[_0x11eaab(0x1c52)]['errors']&&_0x2fdc7c[_0x11eaab(0x1c52)]['errors']['length']){_0x151b46[_0x11eaab(0xbae)]=_0x2fdc7c[_0x11eaab(0x1c52)][_0x11eaab(0xbae)]||[{'message':_0x2fdc7c[_0x11eaab(0x2915)](),'type':_0x11eaab(0x1ca0)}];for(let _0x5ea722=0x0;_0x5ea722<_0x2fdc7c[_0x11eaab(0x1c52)]['errors'][_0x11eaab(0x1b9e)];_0x5ea722++){_0x11c990['error']({'title':_0x2fdc7c[_0x11eaab(0x1c52)][_0x11eaab(0xbae)][_0x5ea722]['type'],'msg':_0x2fdc7c[_0x11eaab(0x1c52)][_0x11eaab(0xbae)][_0x5ea722][_0x11eaab(0x18ca)]});}}else _0x11c990['error']({'title':_0x2fdc7c[_0x11eaab(0x10b3)]?_0x11eaab(0x575)+_0x2fdc7c[_0x11eaab(0x10b3)]+'\x20-\x20'+_0x2fdc7c[_0x11eaab(0x2115)]:'SYSTEM:DELETEvoiceRecording','msg':_0x2fdc7c[_0x11eaab(0x1c52)]?JSON[_0x11eaab(0x2317)](_0x2fdc7c['data'][_0x11eaab(0x18ca)]):_0x2fdc7c[_0x11eaab(0x18ca)]||_0x2fdc7c['toString']()});});}function _0x3b8fd8(){const _0x36d6b7=_0x1cfd70,_0x1ff367=angular[_0x36d6b7(0x289e)](_0x151b46[_0x36d6b7(0xa5e)]);return _0x151b46[_0x36d6b7(0xa5e)]=[],_0x1ff367;}function _0x3e53bc(_0x885b14){const _0x5d5b64=_0x1cfd70,_0x2441e2=_0x86cb74['confirm']()[_0x5d5b64(0x2021)](_0x5d5b64(0x1769))[_0x5d5b64(0x33a)](_0x5d5b64(0x50b)+_0x151b46[_0x5d5b64(0xa5e)][_0x5d5b64(0x1b9e)]+_0x5d5b64(0x163e)+'\x20will\x20be\x20deleted.')[_0x5d5b64(0x213e)](_0x5d5b64(0x1c33))[_0x5d5b64(0x2283)](_0x885b14)['ok']('OK')[_0x5d5b64(0x101a)](_0x5d5b64(0x18fd));_0x86cb74[_0x5d5b64(0xa60)](_0x2441e2)[_0x5d5b64(0x64a)](function(){const _0x4f2374=_0x5d5b64;_0x151b46[_0x4f2374(0xa5e)][_0x4f2374(0x1397)](function(_0x4730ea){_0x4c8485(_0x4730ea);}),_0x151b46['selectedVoiceRecordings']=[];});}function _0x59182b(){const _0x1434c7=_0x1cfd70;_0x151b46[_0x1434c7(0xa5e)]=[];}function _0x58c7e2(){const _0x16e435=_0x1cfd70;_0x151b46[_0x16e435(0xa5e)]=_0x151b46['voiceRecordings']['rows'];}}const _0x1a625b=_0x298ef1;;const _0x4cca16=_0x2e4a48['p']+_0x49a1e3(0x2970);;const _0x2ff755=_0x2e4a48['p']+'src/js/modules/main/apps/voice/views/voiceQueues/edit/view.html/view.html';;const _0xe82e9d=_0x2e4a48['p']+_0x49a1e3(0x1f13);;const _0x947d47=_0x2e4a48['p']+_0x49a1e3(0xfc3);;const _0x3ba72e=_0x2e4a48['p']+_0x49a1e3(0x1924);;const _0x56b406=_0x2e4a48['p']+_0x49a1e3(0x152);;const _0x1b4ed3=_0x2e4a48['p']+_0x49a1e3(0x24b0);;const _0x379ef9=_0x2e4a48['p']+_0x49a1e3(0x1349);;const _0x4cd22a=_0x2e4a48['p']+_0x49a1e3(0x31d);;const _0xd099be=_0x2e4a48['p']+_0x49a1e3(0xc96);;const _0x24d006=_0x2e4a48['p']+_0x49a1e3(0x2731);;const _0x3aec5a=_0x2e4a48['p']+_0x49a1e3(0x1e0b);;const _0x219c9b=_0x2e4a48['p']+_0x49a1e3(0x216f);;const _0x1acc6e=_0x2e4a48['p']+_0x49a1e3(0x69b);;const _0x1ac7f6=_0x2e4a48['p']+'src/js/modules/main/apps/voice/views/voiceRecordings/edit/view.html/view.html';;const _0x512d3f=_0x2e4a48['p']+'src/js/modules/main/apps/voice/views/chanSpies/chanSpies.html/chanSpies.html';;const _0x30627f=_0x2e4a48['p']+'src/js/modules/main/apps/voice/views/voicePrefixes/voicePrefixes.html/voicePrefixes.html';;_0x13b4fc[_0x49a1e3(0x1e73)]=['$stateProvider',_0x49a1e3(0x21f8)];function _0x13b4fc(_0x3108ff,_0x1389d7){const _0xd6bd81=_0x49a1e3;_0x3108ff[_0xd6bd81(0x14f2)](_0xd6bd81(0x169f),{'abstract':!![],'url':_0xd6bd81(0x256a)})['state'](_0xd6bd81(0x10cc),{'url':'/voiceQueues','views':{'content@app':{'templateUrl':_0x4cca16,'controller':'VoiceQueuesController\x20as\x20vm'}},'resolve':{'voiceQueues':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x5cd5ad,_0x1c1879){const _0x47aa1b=_0xd6bd81;return _0x1c1879['hasRole'](_0x47aa1b(0x333))?_0x5cd5ad[_0x47aa1b(0x1268)](_0x47aa1b(0x1c51),{'fields':_0x47aa1b(0x1ac),'type':_0x47aa1b(0x12a4),'sort':_0x47aa1b(0x260c),'channel':'voice','limit':0xa,'offset':0x0}):_0x5cd5ad[_0x47aa1b(0x1268)](_0x47aa1b(0x1758),{'id':_0x1c1879[_0x47aa1b(0x808)]()['userProfileId'],'section':_0x47aa1b(0x2110),'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':_0x47aa1b(0x12a4),'sort':_0x47aa1b(0x260c),'channel':_0x47aa1b(0x227c),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x958e72,_0x3477da){const _0x50e4c8=_0xd6bd81;return _0x3477da[_0x50e4c8(0x4de)](_0x50e4c8(0x333))?null:_0x958e72[_0x50e4c8(0x1268)](_0x50e4c8(0x6e3),{'fields':_0x50e4c8(0x10d2),'id':_0x3477da[_0x50e4c8(0x808)]()['userProfileId']});}],'userProfileSection':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x51db39,_0x1e9a26){const _0x318222=_0xd6bd81;return _0x1e9a26[_0x318222(0x4de)]('admin')?null:_0x51db39['resolve'](_0x318222(0x2681),{'fields':_0x318222(0x527),'userProfileId':_0x1e9a26['getCurrentUser']()['userProfileId'],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':_0xd6bd81(0x227c)})[_0xd6bd81(0x14f2)](_0xd6bd81(0x26bc),{'url':_0xd6bd81(0x45b),'params':{'voiceQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2ff755,'controller':_0xd6bd81(0x356)}},'resolve':{'voiceQueue':[_0xd6bd81(0x107c),'$stateParams',function(_0x25acf4,_0x5a7f60){const _0x368a5c=_0xd6bd81;return _0x25acf4[_0x368a5c(0x1268)](_0x368a5c(0x1c51),{'fields':_0x368a5c(0x1ac),'id':_0x5a7f60['id']});}],'userProfileSection':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x4eb2fc,_0x5a89e1){const _0x3cc3c9=_0xd6bd81;return _0x4eb2fc['resolve'](_0x3cc3c9(0x2681),{'fields':_0x3cc3c9(0x527),'userProfileId':_0x5a89e1[_0x3cc3c9(0x808)]()[_0x3cc3c9(0x21ac)],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':_0xd6bd81(0x227c)})[_0xd6bd81(0x14f2)](_0xd6bd81(0x2da),{'url':'/inboundroutes','views':{'content@app':{'templateUrl':_0xe82e9d,'controller':_0xd6bd81(0x19c1)}},'resolve':{'inboundroutes':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x1a02d0,_0x23e195){const _0x2f7124=_0xd6bd81;return _0x23e195[_0x2f7124(0x4de)](_0x2f7124(0x333))?_0x1a02d0[_0x2f7124(0x1268)]('voiceExtension@get',{'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':_0x2f7124(0x12a4),'sort':'-updatedAt','VoiceExtensionId':_0x2f7124(0x8f1),'limit':0xa,'offset':0x0}):_0x1a02d0[_0x2f7124(0x1268)](_0x2f7124(0x1758),{'id':_0x23e195[_0x2f7124(0x808)]()[_0x2f7124(0x21ac)],'section':_0x2f7124(0xbbd),'fields':_0x2f7124(0x18b7),'type':_0x2f7124(0x12a4),'sort':_0x2f7124(0x260c),'VoiceExtensionId':_0x2f7124(0x8f1),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0xd6bd81(0xdcf),function(_0x427900,_0x5bcb86){const _0x294cb9=_0xd6bd81;return _0x5bcb86[_0x294cb9(0x4de)](_0x294cb9(0x333))?null:_0x427900[_0x294cb9(0x1268)]('userProfile@get',{'fields':_0x294cb9(0x10d2),'id':_0x5bcb86['getCurrentUser']()[_0x294cb9(0x21ac)]});}],'userProfileSection':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x22ff3d,_0x53c18f){const _0x35d781=_0xd6bd81;return _0x53c18f[_0x35d781(0x4de)](_0x35d781(0x333))?null:_0x22ff3d[_0x35d781(0x1268)](_0x35d781(0x2681),{'fields':_0x35d781(0x527),'userProfileId':_0x53c18f[_0x35d781(0x808)]()[_0x35d781(0x21ac)],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':_0xd6bd81(0x227c)})['state'](_0xd6bd81(0x758),{'url':'/:id?tab','params':{'inboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x947d47,'controller':_0xd6bd81(0x95c)}},'resolve':{'inboundroute':[_0xd6bd81(0x107c),_0xd6bd81(0x1fbb),function(_0x41b2c9,_0x7d18d9){return _0x41b2c9['resolve']('voiceExtension@get',{'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','id':_0x7d18d9['id']});}],'userProfileSection':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x3f3a49,_0x59f4ee){const _0x3d1157=_0xd6bd81;return _0x3f3a49[_0x3d1157(0x1268)]('userProfileSection@get',{'fields':_0x3d1157(0x527),'userProfileId':_0x59f4ee['getCurrentUser']()[_0x3d1157(0x21ac)],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':_0xd6bd81(0x227c)})[_0xd6bd81(0x14f2)](_0xd6bd81(0x59c),{'url':'/outboundroutes','views':{'content@app':{'templateUrl':_0x3ba72e,'controller':_0xd6bd81(0x2595)}},'resolve':{'outboundroutes':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0xdee0be,_0x3dd2a5){const _0xa6295c=_0xd6bd81;return _0x3dd2a5[_0xa6295c(0x4de)]('admin')?_0xdee0be[_0xa6295c(0x1268)](_0xa6295c(0x26de),{'fields':'createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','type':_0xa6295c(0xbce),'sort':_0xa6295c(0x260c),'VoiceExtensionId':_0xa6295c(0x8f1),'limit':0xa,'offset':0x0}):_0xdee0be[_0xa6295c(0x1268)](_0xa6295c(0x1758),{'id':_0x3dd2a5[_0xa6295c(0x808)]()[_0xa6295c(0x21ac)],'section':_0xa6295c(0x1035),'fields':_0xa6295c(0x1031),'type':_0xa6295c(0xbce),'sort':_0xa6295c(0x260c),'VoiceExtensionId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0xd6bd81(0x107c),'Auth',function(_0x45461c,_0x3444f3){const _0x5e4cef=_0xd6bd81;return _0x3444f3[_0x5e4cef(0x4de)]('admin')?null:_0x45461c[_0x5e4cef(0x1268)]('userProfile@get',{'fields':_0x5e4cef(0x10d2),'id':_0x3444f3['getCurrentUser']()['userProfileId']});}],'userProfileSection':['apiResolver',_0xd6bd81(0xdcf),function(_0x172a95,_0x14efca){const _0x258a5c=_0xd6bd81;return _0x14efca['hasRole']('admin')?null:_0x172a95[_0x258a5c(0x1268)](_0x258a5c(0x2681),{'fields':_0x258a5c(0x527),'userProfileId':_0x14efca['getCurrentUser']()[_0x258a5c(0x21ac)],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':_0xd6bd81(0x227c)})[_0xd6bd81(0x14f2)](_0xd6bd81(0x207c),{'url':_0xd6bd81(0x45b),'params':{'outboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x56b406,'controller':'OutboundRouteController\x20as\x20vm'}},'resolve':{'outboundroute':[_0xd6bd81(0x107c),_0xd6bd81(0x1fbb),function(_0xd5b55a,_0x107b45){const _0x4e7081=_0xd6bd81;return _0xd5b55a[_0x4e7081(0x1268)]('voiceExtension@get',{'fields':'createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','id':_0x107b45['id']});}],'userProfileSection':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x5a5e95,_0x1265a2){const _0x248455=_0xd6bd81;return _0x5a5e95[_0x248455(0x1268)](_0x248455(0x2681),{'fields':_0x248455(0x527),'userProfileId':_0x1265a2[_0x248455(0x808)]()[_0x248455(0x21ac)],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':_0xd6bd81(0x227c)})[_0xd6bd81(0x14f2)]('app.voice.internalroutes',{'url':_0xd6bd81(0xe7c),'views':{'content@app':{'templateUrl':_0x1b4ed3,'controller':'InternalRoutesController\x20as\x20vm'}},'resolve':{'internalroutes':[_0xd6bd81(0x107c),'Auth',function(_0x21660c,_0x1c8012){const _0x1f1a87=_0xd6bd81;return _0x1c8012[_0x1f1a87(0x4de)]('admin')?_0x21660c[_0x1f1a87(0x1268)](_0x1f1a87(0x26de),{'fields':_0x1f1a87(0x18b7),'type':'internal','sort':_0x1f1a87(0x260c),'VoiceExtensionId':_0x1f1a87(0x8f1),'limit':0xa,'offset':0x0}):_0x21660c[_0x1f1a87(0x1268)](_0x1f1a87(0x1758),{'id':_0x1c8012[_0x1f1a87(0x808)]()[_0x1f1a87(0x21ac)],'section':_0x1f1a87(0x18d2),'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':'internal','sort':_0x1f1a87(0x260c),'VoiceExtensionId':_0x1f1a87(0x8f1),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x4cecc3,_0x29391b){const _0x348892=_0xd6bd81;return _0x29391b[_0x348892(0x4de)](_0x348892(0x333))?null:_0x4cecc3['resolve'](_0x348892(0x6e3),{'fields':_0x348892(0x10d2),'id':_0x29391b[_0x348892(0x808)]()[_0x348892(0x21ac)]});}],'userProfileSection':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x1c64a5,_0x177841){const _0x3ac6eb=_0xd6bd81;return _0x177841['hasRole'](_0x3ac6eb(0x333))?null:_0x1c64a5[_0x3ac6eb(0x1268)](_0x3ac6eb(0x2681),{'fields':_0x3ac6eb(0x527),'userProfileId':_0x177841[_0x3ac6eb(0x808)]()[_0x3ac6eb(0x21ac)],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':_0xd6bd81(0x227c)})[_0xd6bd81(0x14f2)](_0xd6bd81(0x10b8),{'url':_0xd6bd81(0x45b),'params':{'internalroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x379ef9,'controller':_0xd6bd81(0x777)}},'resolve':{'internalroute':[_0xd6bd81(0x107c),'$stateParams',function(_0x4cd5a1,_0x43ec02){const _0x3543ea=_0xd6bd81;return _0x4cd5a1['resolve'](_0x3543ea(0x26de),{'fields':_0x3543ea(0x18b7),'id':_0x43ec02['id']});}],'userProfileSection':['apiResolver',_0xd6bd81(0xdcf),function(_0x3b54e1,_0x20894a){const _0x4bdd7b=_0xd6bd81;return _0x3b54e1[_0x4bdd7b(0x1268)](_0x4bdd7b(0x2681),{'fields':_0x4bdd7b(0x527),'userProfileId':_0x20894a[_0x4bdd7b(0x808)]()[_0x4bdd7b(0x21ac)],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':_0xd6bd81(0x227c)})[_0xd6bd81(0x14f2)]('app.voice.contexts',{'url':_0xd6bd81(0xc5c),'views':{'content@app':{'templateUrl':_0x4cd22a,'controller':'ContextsController\x20as\x20vm'}},'resolve':{'contexts':[_0xd6bd81(0x107c),'Auth',function(_0x12370d,_0x1e802f){const _0x52fc6a=_0xd6bd81;return _0x1e802f[_0x52fc6a(0x4de)](_0x52fc6a(0x333))?_0x12370d[_0x52fc6a(0x1268)]('voiceContext@get',{'fields':_0x52fc6a(0x15b8),'sort':_0x52fc6a(0x260c),'defaultEntry':_0x52fc6a(0x2872),'limit':0xa,'offset':0x0}):_0x12370d[_0x52fc6a(0x1268)](_0x52fc6a(0x1758),{'id':_0x1e802f[_0x52fc6a(0x808)]()['userProfileId'],'section':_0x52fc6a(0xcfe),'fields':_0x52fc6a(0x15b8),'sort':_0x52fc6a(0x260c),'defaultEntry':'false','limit':0xa,'offset':0x0});}],'userProfile':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x1f21c0,_0x6e7580){const _0x2b910c=_0xd6bd81;return _0x6e7580['hasRole'](_0x2b910c(0x333))?null:_0x1f21c0[_0x2b910c(0x1268)]('userProfile@get',{'fields':_0x2b910c(0x10d2),'id':_0x6e7580['getCurrentUser']()[_0x2b910c(0x21ac)]});}],'userProfileSection':['apiResolver',_0xd6bd81(0xdcf),function(_0x159c19,_0x1a6ba6){const _0x34783c=_0xd6bd81;return _0x1a6ba6[_0x34783c(0x4de)]('admin')?null:_0x159c19[_0x34783c(0x1268)](_0x34783c(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1a6ba6['getCurrentUser']()['userProfileId'],'sectionId':0x195});}]},'authenticate':!![],'permissionId':0x195,'bodyClass':'voice'})['state'](_0xd6bd81(0x1d5a),{'url':'/voicemails','views':{'content@app':{'templateUrl':_0xd099be,'controller':'VoicemailsController\x20as\x20vm'}},'resolve':{'voicemails':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0xd6635d,_0x99704){const _0x27a3ef=_0xd6bd81;return _0x99704[_0x27a3ef(0x4de)](_0x27a3ef(0x333))?_0xd6635d['resolve']('voiceMail@get',{'fields':_0x27a3ef(0x28c0),'sort':_0x27a3ef(0x260c),'limit':0xa,'offset':0x0}):_0xd6635d[_0x27a3ef(0x1268)]('userProfile@getResources',{'id':_0x99704[_0x27a3ef(0x808)]()[_0x27a3ef(0x21ac)],'section':_0x27a3ef(0x1370),'fields':'createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x2c2558,_0x21e6e6){const _0x5eb980=_0xd6bd81;return _0x21e6e6[_0x5eb980(0x4de)](_0x5eb980(0x333))?null:_0x2c2558['resolve'](_0x5eb980(0x6e3),{'fields':_0x5eb980(0x10d2),'id':_0x21e6e6[_0x5eb980(0x808)]()[_0x5eb980(0x21ac)]});}],'userProfileSection':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x1ffb9b,_0x12861b){const _0x3c920f=_0xd6bd81;return _0x12861b['hasRole'](_0x3c920f(0x333))?null:_0x1ffb9b[_0x3c920f(0x1268)](_0x3c920f(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x12861b['getCurrentUser']()[_0x3c920f(0x21ac)],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':_0xd6bd81(0x227c)})['state'](_0xd6bd81(0x1770),{'url':_0xd6bd81(0x45b),'params':{'voicemail':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x24d006,'controller':_0xd6bd81(0x235c)}},'resolve':{'voicemail':['apiResolver',_0xd6bd81(0x1fbb),function(_0x114d6f,_0x2088d9){const _0x53f514=_0xd6bd81;return _0x114d6f[_0x53f514(0x1268)](_0x53f514(0x19ab),{'fields':'createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg','id':_0x2088d9['id']});}],'userProfileSection':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x47935b,_0x3f83dd){const _0xd893b9=_0xd6bd81;return _0x47935b[_0xd893b9(0x1268)]('userProfileSection@get',{'fields':_0xd893b9(0x527),'userProfileId':_0x3f83dd[_0xd893b9(0x808)]()[_0xd893b9(0x21ac)],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':'voice'})[_0xd6bd81(0x14f2)]('app.voice.musiconholds',{'url':_0xd6bd81(0x1cef),'views':{'content@app':{'templateUrl':_0x3aec5a,'controller':_0xd6bd81(0x1b8a)}},'resolve':{'musiconholds':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x2d5f9e,_0x1a0d2a){const _0x850c50=_0xd6bd81;return _0x1a0d2a[_0x850c50(0x4de)]('admin')?_0x2d5f9e[_0x850c50(0x1268)]('voiceMusicOnHold@get',{'fields':_0x850c50(0x864),'defaultEntry':_0x850c50(0x2872),'limit':0xa,'offset':0x0}):_0x2d5f9e['resolve']('userProfile@getResources',{'id':_0x1a0d2a['getCurrentUser']()[_0x850c50(0x21ac)],'section':_0x850c50(0xdb6),'fields':_0x850c50(0x864),'defaultEntry':'false','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0xd6bd81(0xdcf),function(_0x498653,_0x1adfb0){const _0x349955=_0xd6bd81;return _0x1adfb0[_0x349955(0x4de)](_0x349955(0x333))?null:_0x498653['resolve']('userProfile@get',{'fields':_0x349955(0x10d2),'id':_0x1adfb0['getCurrentUser']()[_0x349955(0x21ac)]});}],'userProfileSection':[_0xd6bd81(0x107c),'Auth',function(_0x2a08bd,_0x49b4cf){const _0x4a50ce=_0xd6bd81;return _0x49b4cf[_0x4a50ce(0x4de)](_0x4a50ce(0x333))?null:_0x2a08bd[_0x4a50ce(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x49b4cf[_0x4a50ce(0x808)]()[_0x4a50ce(0x21ac)],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0xd6bd81(0x227c)})[_0xd6bd81(0x14f2)](_0xd6bd81(0x21d5),{'url':_0xd6bd81(0x45b),'params':{'musiconhold':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x219c9b,'controller':_0xd6bd81(0x1ffd)}},'resolve':{'musiconhold':[_0xd6bd81(0x107c),_0xd6bd81(0x1fbb),function(_0x2df1d8,_0x23bfc7){const _0x52e77a=_0xd6bd81;return _0x2df1d8['resolve'](_0x52e77a(0x2537),{'fields':_0x52e77a(0x864),'id':_0x23bfc7['id']});}],'userProfileSection':[_0xd6bd81(0x107c),'Auth',function(_0x2d2adf,_0x58d275){const _0x214cef=_0xd6bd81;return _0x2d2adf['resolve'](_0x214cef(0x2681),{'fields':_0x214cef(0x527),'userProfileId':_0x58d275[_0x214cef(0x808)]()[_0x214cef(0x21ac)],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0xd6bd81(0x227c)})['state']('app.voice.voiceRecordings',{'url':_0xd6bd81(0x54a),'views':{'content@app':{'templateUrl':_0x1acc6e,'controller':_0xd6bd81(0x130a)}},'resolve':{'voiceRecordings':[_0xd6bd81(0x107c),'Auth',_0xd6bd81(0x1214),function(_0x3884aa,_0x16ac83,_0x3a9b3e){const _0x297e29=_0xd6bd81;return _0x16ac83['hasRole'](_0x297e29(0x333))?_0x3884aa[_0x297e29(0x1268)]('voiceRecording@get',{'fields':_0x297e29(0x137d),'sort':_0x297e29(0x260c),'createdAt':_0x3a9b3e[_0x297e29(0x1b72)](),'limit':0xa,'offset':0x0}):_0x3884aa['resolve']('userProfile@getResources',{'id':_0x16ac83['getCurrentUser']()['userProfileId'],'section':_0x297e29(0x9fd),'fields':_0x297e29(0x137d),'sort':_0x297e29(0x260c),'createdAt':_0x3a9b3e[_0x297e29(0x1b72)](),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x21077e,_0x343583){const _0x32becc=_0xd6bd81;return _0x343583[_0x32becc(0x4de)](_0x32becc(0x333))?null:_0x21077e['resolve'](_0x32becc(0x6e3),{'fields':'id,name,crudPermissions','id':_0x343583[_0x32becc(0x808)]()[_0x32becc(0x21ac)]});}],'userProfileSection':['apiResolver','Auth',function(_0x4fde5b,_0x1f24ea){const _0x466a4c=_0xd6bd81;return _0x1f24ea[_0x466a4c(0x4de)](_0x466a4c(0x333))?null:_0x4fde5b[_0x466a4c(0x1268)](_0x466a4c(0x2681),{'fields':_0x466a4c(0x527),'userProfileId':_0x1f24ea['getCurrentUser']()[_0x466a4c(0x21ac)],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':_0xd6bd81(0x227c)})['state'](_0xd6bd81(0x9c1),{'url':'/:id?tab','params':{'voiceRecording':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1ac7f6,'controller':_0xd6bd81(0x295b)}},'resolve':{'voiceRecording':['apiResolver','$stateParams',function(_0x66cace,_0x4719a9){const _0x53a144=_0xd6bd81;return _0x66cace[_0x53a144(0x1268)]('voiceRecording@get',{'fields':_0x53a144(0x137d),'id':_0x4719a9['id']});}],'userProfileSection':[_0xd6bd81(0x107c),'Auth',function(_0x57a0c3,_0x2adfef){const _0x5e9de3=_0xd6bd81;return _0x57a0c3[_0x5e9de3(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2adfef[_0x5e9de3(0x808)]()['userProfileId'],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':_0xd6bd81(0x227c)})[_0xd6bd81(0x14f2)](_0xd6bd81(0x23e),{'url':_0xd6bd81(0x23a4),'views':{'content@app':{'templateUrl':_0x512d3f,'controller':_0xd6bd81(0xc52)}},'resolve':{'chanSpies':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x84a5d1,_0xf2b1e6){const _0x2e765b=_0xd6bd81;return _0xf2b1e6['hasRole']('admin')?_0x84a5d1[_0x2e765b(0x1268)]('voiceChanSpy@get',{'fields':_0x2e765b(0x16ec),'sort':_0x2e765b(0x260c),'limit':0xa,'offset':0x0}):_0x84a5d1[_0x2e765b(0x1268)](_0x2e765b(0x1758),{'id':_0xf2b1e6[_0x2e765b(0x808)]()[_0x2e765b(0x21ac)],'section':_0x2e765b(0x1cfa),'fields':_0x2e765b(0x16ec),'sort':_0x2e765b(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x2b2cad,_0x574d8c){const _0x58c070=_0xd6bd81;return _0x574d8c[_0x58c070(0x4de)](_0x58c070(0x333))?null:_0x2b2cad[_0x58c070(0x1268)]('userProfile@get',{'fields':_0x58c070(0x10d2),'id':_0x574d8c['getCurrentUser']()[_0x58c070(0x21ac)]});}],'userProfileSection':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x415d55,_0x1ab6d3){const _0x5444f8=_0xd6bd81;return _0x1ab6d3[_0x5444f8(0x4de)](_0x5444f8(0x333))?null:_0x415d55['resolve']('userProfileSection@get',{'fields':_0x5444f8(0x527),'userProfileId':_0x1ab6d3['getCurrentUser']()[_0x5444f8(0x21ac)],'sectionId':0x199});}]},'authenticate':!![],'permissionId':0x199,'bodyClass':_0xd6bd81(0x227c)})['state'](_0xd6bd81(0x56c),{'url':_0xd6bd81(0x36c),'views':{'content@app':{'templateUrl':_0x30627f,'controller':_0xd6bd81(0x467)}},'resolve':{'voicePrefixes':['apiResolver',_0xd6bd81(0xdcf),function(_0x58e390,_0x56f336){const _0x34fc67=_0xd6bd81;return _0x56f336[_0x34fc67(0x4de)](_0x34fc67(0x333))?_0x58e390[_0x34fc67(0x1268)](_0x34fc67(0x14d6),{'fields':_0x34fc67(0x233f),'limit':0xa,'offset':0x0}):_0x58e390[_0x34fc67(0x1268)](_0x34fc67(0x1758),{'id':_0x56f336[_0x34fc67(0x808)]()[_0x34fc67(0x21ac)],'section':_0x34fc67(0x91e),'fields':_0x34fc67(0x233f),'limit':0xa,'offset':0x0});}],'userProfile':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x2930e0,_0x319124){const _0x1e9e74=_0xd6bd81;return _0x319124[_0x1e9e74(0x4de)](_0x1e9e74(0x333))?null:_0x2930e0[_0x1e9e74(0x1268)]('userProfile@get',{'fields':_0x1e9e74(0x10d2),'id':_0x319124['getCurrentUser']()[_0x1e9e74(0x21ac)]});}],'userProfileSection':[_0xd6bd81(0x107c),_0xd6bd81(0xdcf),function(_0x3bec60,_0x24fbce){const _0x341dc6=_0xd6bd81;return _0x24fbce['hasRole'](_0x341dc6(0x333))?null:_0x3bec60['resolve'](_0x341dc6(0x2681),{'fields':_0x341dc6(0x527),'userProfileId':_0x24fbce[_0x341dc6(0x808)]()[_0x341dc6(0x21ac)],'sectionId':0x19a});}]},'authenticate':!![],'permissionId':0x19a,'bodyClass':'voice'}),_0x1389d7[_0xd6bd81(0x1bde)]('app/main/apps/voice');}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x169f),['ngCsv','ngPassword',_0x49a1e3(0x1fe3),'flow','mdColorPicker',_0x49a1e3(0x1b6c),_0x49a1e3(0x1434),_0x49a1e3(0x1a87),_0x49a1e3(0x1610),_0x49a1e3(0xb19),'mwFormBuilder',_0x49a1e3(0x11fd),_0x49a1e3(0x1cfe),_0x49a1e3(0x1bd1),'angular-cron-jobs','ngEmbed',_0x49a1e3(0x1046),_0x49a1e3(0x1acd),_0x49a1e3(0xc48),_0x49a1e3(0x28dd),_0x49a1e3(0x18cd)])[_0x49a1e3(0x3d3)](_0x13b4fc)[_0x49a1e3(0x38e)]('ChanSpiesController',_0x12afa3)[_0x49a1e3(0x38e)](_0x49a1e3(0x13fe),_0x3de1a6)[_0x49a1e3(0x38e)](_0x49a1e3(0xa12),_0x1d95c7)['controller']('CreateOrEditContextDialogController',_0x370d99)[_0x49a1e3(0x38e)](_0x49a1e3(0x2161),_0x4115da)['controller'](_0x49a1e3(0x174a),_0x520ed7)[_0x49a1e3(0x38e)](_0x49a1e3(0x4aa),_0x31f79a)['controller'](_0x49a1e3(0x169a),_0x171fdb)[_0x49a1e3(0x38e)](_0x49a1e3(0x22c9),_0x461953)[_0x49a1e3(0x38e)](_0x49a1e3(0x15f5),_0x327436)[_0x49a1e3(0x38e)](_0x49a1e3(0x130c),_0x3c6b91)[_0x49a1e3(0x38e)](_0x49a1e3(0x390),_0x3448c1)[_0x49a1e3(0x38e)](_0x49a1e3(0x1f8),_0x567b80)[_0x49a1e3(0x38e)](_0x49a1e3(0x174b),_0x3b7fdf)[_0x49a1e3(0x38e)]('EditInboundAppplaybackDialogController',_0x5436a8)[_0x49a1e3(0x38e)]('EditInboundAppqueueDialogController',_0x50dfd1)[_0x49a1e3(0x38e)](_0x49a1e3(0xf6f),_0x262ce6)['controller'](_0x49a1e3(0x1626),_0x3c4aa9)[_0x49a1e3(0x38e)](_0x49a1e3(0x23e7),_0x54377e)['controller'](_0x49a1e3(0x21b),_0xd0f4d1)['controller'](_0x49a1e3(0x23b8),_0x2fde79)[_0x49a1e3(0x38e)]('CreateOrEditInternalRouteDialogController',_0x1ea418)[_0x49a1e3(0x38e)](_0x49a1e3(0x137b),_0x5469c2)[_0x49a1e3(0x38e)](_0x49a1e3(0x287a),_0x61864a)[_0x49a1e3(0x38e)](_0x49a1e3(0xb95),_0x2211e1)[_0x49a1e3(0x38e)](_0x49a1e3(0x11c4),_0x5a43c9)['controller'](_0x49a1e3(0x116c),_0x3f03d9)[_0x49a1e3(0x38e)](_0x49a1e3(0x63a),_0x43dd34)[_0x49a1e3(0x38e)](_0x49a1e3(0x152a),_0x12e2d9)[_0x49a1e3(0x38e)](_0x49a1e3(0x1388),_0x126302)[_0x49a1e3(0x38e)]('EditInternalAppintervalDialogController',_0x48e89a)[_0x49a1e3(0x38e)](_0x49a1e3(0x1560),_0x1dc46a)[_0x49a1e3(0x38e)](_0x49a1e3(0x1300),_0x2b0841)[_0x49a1e3(0x38e)](_0x49a1e3(0x447),_0x4ac6ca)[_0x49a1e3(0x38e)](_0x49a1e3(0x23c8),_0xb2bc9b)[_0x49a1e3(0x38e)](_0x49a1e3(0x174f),_0x5ef4ea)[_0x49a1e3(0x38e)](_0x49a1e3(0x123c),_0x375427)[_0x49a1e3(0x38e)](_0x49a1e3(0xd2e),_0xd9bd8e)[_0x49a1e3(0x38e)](_0x49a1e3(0x26cf),_0x3a0aa3)[_0x49a1e3(0x38e)](_0x49a1e3(0x2832),_0x3f097b)['controller']('CreateOrEditMohSoundDialogController',_0x1d0178)[_0x49a1e3(0x38e)]('MusicOnHoldController',_0x515c25)['controller']('MusicOnHoldsController',_0x25a886),angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x169f))[_0x49a1e3(0x38e)](_0x49a1e3(0x630),_0x4d8988)[_0x49a1e3(0x38e)]('OutboundRouteActionsController',_0x36b0d8)['controller'](_0x49a1e3(0xb89),_0x4065c1)[_0x49a1e3(0x38e)]('EditoutboundAppintervalDialogController',_0x33ec30)['controller']('EditoutboundAppoutbounddialDialogController',_0x557082)['controller'](_0x49a1e3(0x1908),_0x15bfb4)[_0x49a1e3(0x38e)](_0x49a1e3(0x875),_0x39768c)['controller']('CreateOrEditVoicemailDialogController',_0x102b67)[_0x49a1e3(0x38e)](_0x49a1e3(0x2307),_0x5bb4ca)['controller'](_0x49a1e3(0x2484),_0x2c51e3)[_0x49a1e3(0x38e)](_0x49a1e3(0x23a7),_0x12422a)[_0x49a1e3(0x38e)](_0x49a1e3(0x24b7),_0x1133c5)[_0x49a1e3(0x38e)](_0x49a1e3(0x131c),_0x3f82fd)['controller'](_0x49a1e3(0xa86),_0x11a23b)[_0x49a1e3(0x38e)](_0x49a1e3(0xcba),_0x5c719a)[_0x49a1e3(0x38e)](_0x49a1e3(0x1d84),_0x750cd3)['controller'](_0x49a1e3(0x7bf),_0x516b1a)[_0x49a1e3(0x38e)](_0x49a1e3(0x2804),_0x56dd2c)[_0x49a1e3(0x38e)](_0x49a1e3(0x288d),_0x9e2ccc)[_0x49a1e3(0x38e)]('CreateOrEditVoiceRecordingDialogController',_0x3b392e)[_0x49a1e3(0x38e)](_0x49a1e3(0xa0d),_0x5b10b5)[_0x49a1e3(0x38e)](_0x49a1e3(0x27a9),_0x58a384)[_0x49a1e3(0x38e)](_0x49a1e3(0x1887),_0x1a625b);;const _0x287188=_0x2e4a48['p']+_0x49a1e3(0x1c76);;const _0x3e5cd1=_0x2e4a48['p']+_0x49a1e3(0x16cd);;const _0x542cf8=_0x2e4a48['p']+_0x49a1e3(0x504);;const _0x3c570b=_0x2e4a48['p']+_0x49a1e3(0x174);;const _0x5723cd=_0x2e4a48['p']+_0x49a1e3(0x750);;const _0x26f30b=_0x2e4a48['p']+_0x49a1e3(0x1b89);;const _0x205d14=_0x2e4a48['p']+_0x49a1e3(0x3c2);;_0x39e800[_0x49a1e3(0x1e73)]=['$scope','$q',_0x49a1e3(0x20d4),_0x49a1e3(0x212a),'$document',_0x49a1e3(0x1ce1),'pauses',_0x49a1e3(0xd77),_0x49a1e3(0x287f),_0x49a1e3(0xa19),_0x49a1e3(0x633),_0x49a1e3(0x680),_0x49a1e3(0x1f8c),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xdcf),'license','$interval'];function _0x39e800(_0x1d4dd1,_0xac97bf,_0x582d36,_0x7df383,_0x239c34,_0x5c3dc3,_0x5796ca,_0x4c223c,_0x4ba176,_0x3b3eb2,_0x19063c,_0x4686b8,_0x5bc0d0,_0x1dc4c0,_0x6c6093,_0x2d9c0d,_0xc427e6,_0x1cb3b7){const _0x2e9b2f=_0x49a1e3,_0x45896f=this,_0x4850e7=[_0x2e9b2f(0x1c79),_0x2e9b2f(0x1eab),_0x2e9b2f(0x7a4),'lastPauseAt','pauseType',_0x2e9b2f(0x2148),'internal',_0x2e9b2f(0x81e),_0x2e9b2f(0x2248),'openchannelPause',_0x2e9b2f(0x292),_0x2e9b2f(0xf2d),'whatsappPause',_0x2e9b2f(0x211),_0x2e9b2f(0x11a4),'chatCapacity',_0x2e9b2f(0x1561),_0x2e9b2f(0x8cb),_0x2e9b2f(0x708),_0x2e9b2f(0x12c5),_0x2e9b2f(0x1839),_0x2e9b2f(0x1b1d),_0x2e9b2f(0x1099),_0x2e9b2f(0x9ec),_0x2e9b2f(0x41d),_0x2e9b2f(0x19a8),_0x2e9b2f(0x6eb),_0x2e9b2f(0x363),_0x2e9b2f(0x11d7),_0x2e9b2f(0x13f4),_0x2e9b2f(0x2431),'whatsappStatus',_0x2e9b2f(0x2014),_0x2e9b2f(0x2783),'chatStatusTime','openchannelStatusTime',_0x2e9b2f(0x1f78),_0x2e9b2f(0x24a3),_0x2e9b2f(0x17fb),_0x2e9b2f(0x16c8),_0x2e9b2f(0x17f4),_0x2e9b2f(0x1e4e),_0x2e9b2f(0xeae),_0x2e9b2f(0x2921),_0x2e9b2f(0x52c),_0x2e9b2f(0x20d3)],_0x2b90a7=[_0x2e9b2f(0x2248),_0x2e9b2f(0x1451),_0x2e9b2f(0x292),'smsPause',_0x2e9b2f(0x1f34),_0x2e9b2f(0x211),_0x2e9b2f(0x11a4),'online'];_0x45896f[_0x2e9b2f(0x1d3d)]=_0x2d9c0d['getCurrentUser'](),_0x45896f[_0x2e9b2f(0x1b8)]=[_0x2e9b2f(0xf8e),_0x2e9b2f(0x7be),_0x2e9b2f(0x94d),_0x2e9b2f(0x8cc),_0x2e9b2f(0x181)],_0x45896f['pauses']=_0x5796ca||{'count':0x0,'rows':[]},_0x45896f[_0x2e9b2f(0x1947)]=_0xc427e6,_0x45896f[_0x2e9b2f(0x16a8)]=_0x1dc4c0,_0x45896f['userProfileSection']=_0x6c6093&&_0x6c6093[_0x2e9b2f(0xb90)]==0x1?_0x6c6093[_0x2e9b2f(0x28b8)][0x0]:null,_0x45896f[_0x2e9b2f(0x402)]=_0x2d9c0d[_0x2e9b2f(0xa7e)](_0x45896f['userProfileSection']?_0x45896f['userProfileSection'][_0x2e9b2f(0x402)]:null),_0x45896f[_0x2e9b2f(0xd77)]=_0x4c223c?_0x28c606()[_0x2e9b2f(0x161e)](_0x4c223c['rows']?_0x4c223c[_0x2e9b2f(0x28b8)]:[],'id'):{},_0x45896f[_0x2e9b2f(0x287f)]=_0x4ba176?_0x28c606()['keyBy'](_0x4ba176[_0x2e9b2f(0x28b8)]?_0x4ba176[_0x2e9b2f(0x28b8)]:[],'id'):{},_0x45896f['paginatedAgents']={},_0x45896f[_0x2e9b2f(0x2789)]=![],_0x45896f[_0x2e9b2f(0x1997)]=[],_0x45896f[_0x2e9b2f(0xf0f)]={};for(const _0x3fe5f9 in _0x45896f[_0x2e9b2f(0xd77)]){typeof _0x45896f[_0x2e9b2f(0xd77)][_0x3fe5f9]!==_0x2e9b2f(0x19a1)&&(_0x45896f[_0x2e9b2f(0xd77)][_0x3fe5f9][_0x2e9b2f(0x2354)]=!![]);}_0x45896f[_0x2e9b2f(0x289a)]={'limit':0xa,'page':0x1,'order':_0x2e9b2f(0x15c),'globalStatusFilter':'','pauseTypeFilter':''},_0x45896f['logout']=_0x175ab3,_0x45896f[_0x2e9b2f(0x279d)]=_0x1c5d3b,_0x45896f[_0x2e9b2f(0x2826)]=_0x5dba3d,_0x45896f[_0x2e9b2f(0xab9)]=_0x22e2b7,_0x45896f[_0x2e9b2f(0x1133)]=_0x30312b,_0x45896f[_0x2e9b2f(0xb1c)]=_0x38f5b6,_0x45896f[_0x2e9b2f(0xba5)]=_0x5b4038,_0x45896f[_0x2e9b2f(0x54e)]=_0x550ca1,_0x45896f[_0x2e9b2f(0x15d)]=_0x3a4d01,_0x45896f[_0x2e9b2f(0x2744)]=_0x3aa772,_0x45896f[_0x2e9b2f(0x249c)]=_0x312247,_0x45896f[_0x2e9b2f(0x2853)]=_0x2af54f,_0x45896f[_0x2e9b2f(0x2483)]=_0x39701c,_0x45896f['onConnect']=_0x17e8ee,_0x45896f[_0x2e9b2f(0x125b)]=_0x457eb7,_0x45896f['screenRecording']=_0xc76cd6,_0x19063c['on'](_0x2e9b2f(0x17e9),_0x45896f[_0x2e9b2f(0x249c)]),_0x19063c['on'](_0x2e9b2f(0x130f),_0x45896f[_0x2e9b2f(0x2853)]),_0x19063c['on'](_0x2e9b2f(0x197a),_0x45896f['onConnect']),_0x19063c['on'](_0x2e9b2f(0x1b7e),_0x45896f[_0x2e9b2f(0x125b)]),_0x39701c();let _0x2c3eda=_0x1cb3b7(function(){const _0x55c365=_0x2e9b2f;_0x45896f[_0x55c365(0x2789)]&&(_0x45896f[_0x55c365(0x2789)]=![],_0x39701c());},0x3e7);function _0x39701c(){const _0x3c3163=_0x2e9b2f;_0x45896f[_0x3c3163(0x2789)]=![];const _0x2e1854=_0xac97bf[_0x3c3163(0x122)]();_0x45896f['promise']=_0x2e1854[_0x3c3163(0x1713)],_0x45896f[_0x3c3163(0x2202)]=[],_0x45896f[_0x3c3163(0x1997)]=[],_0x28c606()[_0x3c3163(0x1789)](_0x45896f['agents'],function(_0x53f432,_0x5ae55d){const _0x30444a=_0x3c3163;_0x45896f[_0x30444a(0x287f)][_0x5ae55d]&&_0x28c606()[_0x30444a(0x14fe)](_0x53f432,_0x28c606()['pick'](_0x28c606()[_0x30444a(0xd09)](_0x45896f['rpcAgents'][_0x5ae55d],_0x2b90a7),_0x4850e7)),_0x5b4038(_0x53f432),_0x53f432['online']?(_0x45896f['filteredAgents'][_0x30444a(0x1954)](_0x53f432),_0x45896f[_0x30444a(0xf0f)][_0x53f432[_0x30444a(0xe2f)]]=_0x5ae55d):_0x53f432['globalStatusTime']=_0x28c606()['toNumber'](_0x2ac33a()()['format']('x'));});_0x45896f['query']['globalStatusFilter']&&_0x28c606()[_0x3c3163(0x21c7)](_0x45896f[_0x3c3163(0x2202)],function(_0x568ae4){const _0x4f3ac0=_0x3c3163;return _0x568ae4['globalStatus']!==_0x45896f[_0x4f3ac0(0x289a)][_0x4f3ac0(0x1de8)];});_0x45896f['query'][_0x3c3163(0x1421)]&&_0x28c606()['remove'](_0x45896f[_0x3c3163(0x2202)],function(_0x5effab){const _0x13c4a6=_0x3c3163;return _0x5effab[_0x13c4a6(0x84f)]!==_0x45896f['query']['pauseTypeFilter'];});_0x45896f[_0x3c3163(0x289a)][_0x3c3163(0xcec)]&&_0x28c606()[_0x3c3163(0x21c7)](_0x45896f[_0x3c3163(0x2202)],function(_0x5c7ce3){const _0x113002=_0x3c3163;return _0x5c7ce3[_0x113002(0x15c)][_0x113002(0x2554)]()['indexOf'](_0x45896f[_0x113002(0x289a)][_0x113002(0xcec)][_0x113002(0x2554)]())<0x0;});_0x45896f[_0x3c3163(0x2202)]=_0x2873b7(_0x45896f[_0x3c3163(0x2202)]);const _0x4ba815=(_0x45896f['query']['page']-0x1)*_0x45896f[_0x3c3163(0x289a)][_0x3c3163(0x25bb)];_0x45896f[_0x3c3163(0x2d8)]=_0x28c606()['drop'](_0x45896f['filteredAgents'],_0x4ba815)[_0x3c3163(0x142e)](0x0,_0x45896f[_0x3c3163(0x289a)][_0x3c3163(0x25bb)]);for(let _0x449039=0x0;_0x449039<_0x45896f[_0x3c3163(0x2d8)][_0x3c3163(0x1b9e)];_0x449039+=0x1){_0x45896f['order'][_0x3c3163(0x1954)](_0x45896f[_0x3c3163(0x2d8)][_0x449039]['id']);}_0x2e1854[_0x3c3163(0x1268)](),_0x45896f[_0x3c3163(0x2789)]=!![];}function _0x312247(_0x8d5224){const _0x226f32=_0x2e9b2f;_0x45896f['agents'][_0x8d5224['id']]&&(_0x28c606()[_0x226f32(0x14fe)](_0x45896f[_0x226f32(0xd77)][_0x8d5224['id']],_0x28c606()[_0x226f32(0x27bb)](_0x28c606()[_0x226f32(0xd09)](_0x8d5224,_0x2b90a7),_0x4850e7)),_0x28c606()['merge'](_0x45896f['rpcAgents'][_0x8d5224['id']],_0x28c606()['pick'](_0x28c606()['omit'](_0x8d5224,_0x2b90a7),_0x4850e7)),_0x5b4038(_0x45896f[_0x226f32(0xd77)][_0x8d5224['id']]));}function _0x2af54f(_0x17f62a){const _0x53f1be=_0x2e9b2f;_0x45896f[_0x53f1be(0xd77)][_0x17f62a['id']]&&(_0x28c606()[_0x53f1be(0x14fe)](_0x45896f[_0x53f1be(0xd77)][_0x17f62a['id']],_0x28c606()[_0x53f1be(0x27bb)](_0x17f62a,_0x4850e7)),_0x28c606()[_0x53f1be(0x14fe)](_0x45896f[_0x53f1be(0x287f)][_0x17f62a['id']],_0x28c606()[_0x53f1be(0x27bb)](_0x17f62a,_0x4850e7)),_0x17f62a[_0x53f1be(0x2148)]&&(_0x45896f[_0x53f1be(0xd77)][_0x17f62a['id']]['globalStatusTime']=_0x17f62a[_0x53f1be(0x2148)],_0x45896f[_0x53f1be(0x287f)][_0x17f62a['id']][_0x53f1be(0x14f5)]=_0x17f62a['lastPauseAt']),_0x5b4038(_0x45896f[_0x53f1be(0xd77)][_0x17f62a['id']]));}function _0x17e8ee(_0x469c6f){const _0x45721c=_0x2e9b2f;_0x45896f[_0x45721c(0xd77)][_0x45896f[_0x45721c(0xf0f)][_0x469c6f[_0x45721c(0xf65)]]]&&(_0x28c606()[_0x45721c(0x14fe)](_0x45896f[_0x45721c(0xd77)][_0x45896f[_0x45721c(0xf0f)][_0x469c6f[_0x45721c(0xf65)]]],_0x28c606()[_0x45721c(0x27bb)](_0x469c6f,[_0x45721c(0x1e4e),_0x45721c(0xeae)])),_0x28c606()[_0x45721c(0x14fe)](_0x45896f[_0x45721c(0x287f)][_0x45896f[_0x45721c(0xf0f)][_0x469c6f[_0x45721c(0xf65)]]],_0x28c606()[_0x45721c(0x27bb)](_0x469c6f,['queue',_0x45721c(0xeae)])));}function _0x457eb7(_0x3d6018){const _0x805c65=_0x2e9b2f;_0x45896f[_0x805c65(0xd77)][_0x45896f[_0x805c65(0xf0f)][_0x3d6018[_0x805c65(0xf65)]]]&&(_0x45896f[_0x805c65(0xd77)][_0x45896f[_0x805c65(0xf0f)][_0x3d6018['destaccountcode']]]=_0x28c606()['omit'](_0x45896f[_0x805c65(0xd77)][_0x45896f[_0x805c65(0xf0f)][_0x3d6018[_0x805c65(0xf65)]]],[_0x805c65(0x1e4e),_0x805c65(0xeae)]),_0x45896f['rpcAgents'][_0x45896f[_0x805c65(0xf0f)][_0x3d6018[_0x805c65(0xf65)]]]=_0x28c606()[_0x805c65(0xd09)](_0x45896f['rpcAgents'][_0x45896f[_0x805c65(0xf0f)][_0x3d6018[_0x805c65(0xf65)]]],[_0x805c65(0x1e4e),_0x805c65(0xeae)]));}function _0x175ab3(_0x38c66f){const _0x417318=_0x2e9b2f;return _0x3b3eb2[_0x417318(0x2e8)][_0x417318(0xad9)]({'id':_0x38c66f['id'],'device':_0x417318(0x252e),'agent_id':_0x38c66f['id'],'agent_name':_0x38c66f[_0x417318(0x2494)]})[_0x417318(0x15e7)]['then'](function(){const _0xbf9318=_0x417318;_0x4686b8[_0xbf9318(0x1339)]({'title':_0xbf9318(0x2927),'msg':_0x38c66f[_0xbf9318(0x15c)]+_0xbf9318(0x236)}),_0x45896f[_0xbf9318(0xd77)][_0x38c66f['id']]&&(_0x45896f['agents'][_0x38c66f['id']][_0xbf9318(0x1eab)]=![]),_0x45896f['rpcAgents'][_0x38c66f['id']]&&(_0x45896f[_0xbf9318(0x287f)][_0x38c66f['id']][_0xbf9318(0x1eab)]=![]),_0x39701c();})[_0x417318(0x20cd)](function(_0x48ffec){const _0x4577f2=_0x417318;_0x4686b8[_0x4577f2(0x1bd0)]({'title':_0x48ffec[_0x4577f2(0x10b3)]?'API:'+_0x48ffec['status']+_0x4577f2(0x21db)+_0x48ffec[_0x4577f2(0x2115)]:_0x4577f2(0x180),'msg':_0x48ffec[_0x4577f2(0x1c52)]?JSON['stringify'](_0x48ffec[_0x4577f2(0x1c52)][_0x4577f2(0x18ca)]):_0x48ffec['toString']()});});}function _0x5dba3d(_0x208881,_0x53c706){const _0x2dee69=_0x2e9b2f;return _0x3b3eb2[_0x2dee69(0x2e8)]['pause']({'id':_0x208881['id'],'type':_0x53c706})['$promise'][_0x2dee69(0x64a)](function(_0x43e88e){const _0x606a4b=_0x2dee69;_0x45896f[_0x606a4b(0xd77)][_0x208881['id']]&&_0x28c606()['merge'](_0x45896f[_0x606a4b(0xd77)][_0x208881['id']],_0x28c606()['pick'](_0x43e88e,_0x4850e7)),_0x45896f[_0x606a4b(0x287f)][_0x208881['id']]&&_0x28c606()['merge'](_0x45896f[_0x606a4b(0x287f)][_0x208881['id']],_0x28c606()[_0x606a4b(0x27bb)](_0x43e88e,_0x4850e7)),_0x5b4038(_0x45896f[_0x606a4b(0xd77)][_0x208881['id']]);})[_0x2dee69(0x20cd)](function(_0x309ceb){const _0x232226=_0x2dee69;_0x4686b8[_0x232226(0x1bd0)]({'title':_0x309ceb[_0x232226(0x10b3)]?_0x232226(0x575)+_0x309ceb['status']+'\x20-\x20'+_0x309ceb['statusText']:'api.staff.save','msg':_0x309ceb[_0x232226(0x1c52)]?JSON['stringify'](_0x309ceb[_0x232226(0x1c52)]['message']):_0x309ceb[_0x232226(0x2915)]()});});}function _0x22e2b7(_0x571d19){const _0x52dc67=_0x2e9b2f;return _0x3b3eb2['user'][_0x52dc67(0x818)]({'id':_0x571d19['id']})['$promise'][_0x52dc67(0x64a)](function(_0x3e5621){const _0x3e23b8=_0x52dc67;_0x45896f['agents'][_0x571d19['id']]&&_0x28c606()[_0x3e23b8(0x14fe)](_0x45896f[_0x3e23b8(0xd77)][_0x571d19['id']],_0x28c606()['pick'](_0x3e5621,_0x4850e7)),_0x45896f[_0x3e23b8(0x287f)][_0x571d19['id']]&&_0x28c606()[_0x3e23b8(0x14fe)](_0x45896f[_0x3e23b8(0x287f)][_0x571d19['id']],_0x28c606()['pick'](_0x3e5621,_0x4850e7)),_0x5b4038(_0x45896f[_0x3e23b8(0xd77)][_0x571d19['id']]);})[_0x52dc67(0x20cd)](function(_0x547c75){const _0x5c58f2=_0x52dc67;_0x4686b8[_0x5c58f2(0x1bd0)]({'title':_0x547c75[_0x5c58f2(0x10b3)]?'API:'+_0x547c75['status']+'\x20-\x20'+_0x547c75[_0x5c58f2(0x2115)]:'api.staff.save','msg':_0x547c75[_0x5c58f2(0x1c52)]?JSON['stringify'](_0x547c75[_0x5c58f2(0x1c52)]['message']):_0x547c75[_0x5c58f2(0x2915)]()});});}function _0x30312b(_0x1e0b64){const _0x217854=_0x2e9b2f;_0x7df383['show'](_0x7df383[_0x217854(0x2540)]()[_0x217854(0x1945)](!![])[_0x217854(0x2021)](_0x217854(0xe68))[_0x217854(0x33a)](_0x217854(0x424))['ok']('Ok')[_0x217854(0x2283)](_0x1e0b64));}function _0x1c5d3b(_0x5a7b53,_0x52d423){const _0x488b32=_0x2e9b2f;_0x7df383[_0x488b32(0xa60)]({'controller':_0x488b32(0x5a7),'controllerAs':'vm','templateUrl':_0x5eb675,'parent':angular['element'](_0x239c34[_0x488b32(0xb49)]),'targetEvent':_0x52d423,'clickOutsideToClose':!![],'locals':{'agent':_0x5a7b53,'agents':[],'channel':_0x488b32(0xf52),'direction':'inbound','crudPermissions':_0x45896f[_0x488b32(0x402)]}});}function _0x550ca1(_0x26a9fa){const _0x51acb7=_0x2e9b2f;return _0x26a9fa===_0x51acb7(0x2826)||_0x26a9fa===_0x51acb7(0x1bcc);}function _0x3a4d01(_0x15c631){const _0x2fea51=_0x2e9b2f;return _0x15c631===_0x2fea51(0x2826);}function _0x3aa772(_0xbe5b7c){return _0xbe5b7c==='*pause';}function _0x3b32db(_0x331e77){const _0x53a034=_0x2e9b2f;return _0x331e77===_0x53a034(0xac6)||_0x331e77==='unknown'||_0x331e77===_0x53a034(0x407)||_0x331e77===_0x53a034(0xf8e)||_0x28c606()[_0x53a034(0x28d7)](_0x331e77);}function _0x38f5b6(_0x2f4e06,_0x335cd5){const _0x32f0ca=_0x2e9b2f;if(_0x335cd5===_0x32f0ca(0x227c)){if(_0x2f4e06[_0x335cd5+'Status']!==_0x32f0ca(0xac6))return _0x2f4e06[_0x335cd5+_0x32f0ca(0x2311)];if(_0x2f4e06[_0x335cd5+_0x32f0ca(0x9d3)])return _0x2f4e06[_0x335cd5+'Status']='pause',_0x32f0ca(0x2826);return _0x32f0ca(0xac6);}else{if(_0x2f4e06[_0x335cd5+_0x32f0ca(0x9d3)])return _0x2f4e06[_0x335cd5+'Status']='pause',_0x32f0ca(0x2826);return _0x2f4e06[_0x335cd5+_0x32f0ca(0x2311)];}}function _0x5b4038(_0x39491f){const _0x47d10d=_0x2e9b2f;let _0x39f490=_0x47d10d(0x1191);if(_0x28c606()['every']([_0x38f5b6(_0x39491f,_0x47d10d(0x227c)),_0x38f5b6(_0x39491f,_0x47d10d(0xf52)),_0x38f5b6(_0x39491f,'mail'),_0x38f5b6(_0x39491f,_0x47d10d(0x28ad)),_0x38f5b6(_0x39491f,_0x47d10d(0x10aa)),_0x38f5b6(_0x39491f,_0x47d10d(0x1a29)),_0x38f5b6(_0x39491f,_0x47d10d(0x1d37))],_0x550ca1))_0x39f490=_0x47d10d(0x2826);else{if(_0x28c606()[_0x47d10d(0x25f8)]([_0x38f5b6(_0x39491f,_0x47d10d(0x227c)),_0x38f5b6(_0x39491f,_0x47d10d(0xf52)),_0x38f5b6(_0x39491f,_0x47d10d(0xc71)),_0x38f5b6(_0x39491f,'openchannel'),_0x38f5b6(_0x39491f,_0x47d10d(0x10aa)),_0x38f5b6(_0x39491f,_0x47d10d(0x1a29)),_0x38f5b6(_0x39491f,_0x47d10d(0x1d37))],_0x550ca1))_0x39f490=_0x47d10d(0x1bcc);else _0x28c606()[_0x47d10d(0x2972)]([_0x38f5b6(_0x39491f,_0x47d10d(0x227c)),_0x38f5b6(_0x39491f,_0x47d10d(0xf52)),_0x38f5b6(_0x39491f,_0x47d10d(0xc71)),_0x38f5b6(_0x39491f,'openchannel'),_0x38f5b6(_0x39491f,'sms'),_0x38f5b6(_0x39491f,_0x47d10d(0x1a29)),_0x38f5b6(_0x39491f,_0x47d10d(0x1d37))],_0x3b32db)?_0x39f490=_0x47d10d(0xac6):_0x39f490=_0x47d10d(0x94d);}_0x39491f[_0x47d10d(0x876)]!==_0x39f490&&(_0x39491f[_0x47d10d(0x876)]=_0x39f490,_0x39491f['init']?(_0x39491f[_0x47d10d(0x2354)]=![],_0x39491f[_0x47d10d(0x14f5)]=_0x550ca1(_0x39f490)?_0x28c606()[_0x47d10d(0x1251)](_0x2ac33a()(_0x39491f[_0x47d10d(0x2148)])[_0x47d10d(0x1c2c)]('x')):_0x28c606()[_0x47d10d(0x2a2)]([_0x39491f['voiceStatusTime'],_0x39491f[_0x47d10d(0x2642)],_0x39491f[_0x47d10d(0x1f78)],_0x39491f[_0x47d10d(0x24a3)],_0x39491f[_0x47d10d(0x17fb)],_0x39491f[_0x47d10d(0x1857)],_0x39491f[_0x47d10d(0x16c8)]])):_0x39491f[_0x47d10d(0x14f5)]=_0x28c606()[_0x47d10d(0x1251)](_0x2ac33a()()['format']('x')));}function _0x2873b7(_0x44bc03){const _0x3838a5=_0x2e9b2f,_0x328eb8=_0x28c606()[_0x3838a5(0x1273)](_0x45896f[_0x3838a5(0x289a)]['order'],'-')?_0x3838a5(0x19d0):_0x3838a5(0x2449);return _0x28c606()['orderBy'](_0x44bc03,[_0x45896f['query'][_0x3838a5(0x1997)][_0x3838a5(0x1353)]('-','')],[_0x328eb8]);}function _0xa35956(){_0x2c3eda&&(_0x1cb3b7['cancel'](_0x2c3eda),_0x2c3eda=null);}function _0xc76cd6(_0x168147,_0x53dfa1){const _0x450ced=_0x2e9b2f;return _0x3b3eb2[_0x450ced(0x2e8)][_0x450ced(0x2603)]({'id':_0x168147['id']},{'screenrecording':_0x53dfa1})[_0x450ced(0x15e7)]['catch'](function(_0x5651ef){const _0x593704=_0x450ced;_0x4686b8[_0x593704(0x1bd0)]({'title':_0x5651ef[_0x593704(0x10b3)]?_0x593704(0x575)+_0x5651ef[_0x593704(0x10b3)]+_0x593704(0x21db)+_0x5651ef[_0x593704(0x2115)]:_0x593704(0x15e5),'msg':_0x5651ef[_0x593704(0x1c52)]?JSON['stringify'](_0x5651ef[_0x593704(0x1c52)][_0x593704(0x18ca)]):_0x5651ef[_0x593704(0x2915)]()});});}_0x1d4dd1[_0x2e9b2f(0x8c7)](_0x2e9b2f(0xf28),function(){const _0x1e8773=_0x2e9b2f;_0x19063c[_0x1e8773(0x1951)](_0x1e8773(0x17e9)),_0x19063c['removeAllListeners'](_0x1e8773(0x130f)),_0x19063c[_0x1e8773(0x1951)](_0x1e8773(0x197a)),_0x19063c[_0x1e8773(0x1951)]('user:agentcomplete'),_0xa35956();});}const _0x19f8e0=_0x39e800;;const _0x541f7c=_0x2e4a48['p']+_0x49a1e3(0x13fb);;const _0xe0abf5=_0x2e4a48['p']+_0x49a1e3(0x1f55);;_0x2727d9[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x1373),_0x49a1e3(0x1239),'queues','rpcQueues',_0x49a1e3(0xa19),_0x49a1e3(0x633),'toasty','userProfile','userProfileSection',_0x49a1e3(0xdcf)];function _0x2727d9(_0xacd2dd,_0x48af81,_0x65462,_0x2b70db,_0x1675e2,_0x1e20fd,_0x3030d7,_0x28537b,_0x4d1f7f,_0x4f4dff,_0x18f206,_0x282623,_0x3c2c69,_0x693e35){const _0xcb0558=_0x49a1e3,_0x4c26f6=this,_0xc40df0=[_0xcb0558(0x17bc),_0xcb0558(0x1c58),_0xcb0558(0x188f),'talking',_0xcb0558(0xc00),_0xcb0558(0xa1b),_0xcb0558(0x18ca),_0xcb0558(0x11b3),_0xcb0558(0xa69),'Trunk',_0xcb0558(0x20a7)];_0x4c26f6[_0xcb0558(0x1d3d)]=_0x693e35[_0xcb0558(0x808)](),_0x4c26f6['count']=_0x3030d7[_0xcb0558(0xb90)]?_0x3030d7[_0xcb0558(0xb90)]:0x0,_0x4c26f6[_0xcb0558(0x1c06)]=_0x3030d7?_0x28c606()[_0xcb0558(0x161e)](_0x3030d7['rows']?_0x3030d7[_0xcb0558(0x28b8)]:[],'id'):{},_0x4c26f6[_0xcb0558(0x22c7)]=_0x28537b?_0x28c606()[_0xcb0558(0x161e)](_0x28537b['rows']?_0x28537b['rows']:[],'id'):{},_0x4c26f6[_0xcb0558(0x16a8)]=_0x282623,_0x4c26f6[_0xcb0558(0x16b2)]=_0x3c2c69&&_0x3c2c69[_0xcb0558(0xb90)]==0x1?_0x3c2c69['rows'][0x0]:null,_0x4c26f6['crudPermissions']=_0x693e35['parseCrudPermissions'](_0x4c26f6[_0xcb0558(0x16b2)]?_0x4c26f6[_0xcb0558(0x16b2)][_0xcb0558(0x402)]:null);_0x693e35[_0xcb0558(0x4de)]('admin')?_0x4c26f6['query']={'type':'inbound','sort':'-updatedAt','limit':0xa,'page':0x1}:_0x4c26f6[_0xcb0558(0x289a)]={'id':_0x4c26f6[_0xcb0558(0x1d3d)]['id'],'channel':_0xcb0558(0xf52),'type':_0xcb0558(0x12a4),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x4c26f6[_0xcb0558(0x1339)]=_0x4fb699,_0x4c26f6['getQueues']=_0xf6eb30,_0x4c26f6[_0xcb0558(0x257b)]=_0x505d3a,_0x4c26f6[_0xcb0558(0x2241)]=_0x3a5812,_0x4c26f6[_0xcb0558(0x10f3)]=_0x1804ed,_0x4c26f6[_0xcb0558(0x249c)]=_0x4d4865,_0x4c26f6['onSaveMember']=_0xbf468c,_0x4c26f6['onRemoveMember']=_0xf08021,_0x4c26f6['onPause']=_0x3c241f,_0x4c26f6['onLogin']=_0x5c8ffc,_0x4c26f6['onLogout']=_0x5c3d7d,_0x4c26f6[_0xcb0558(0xea6)]=_0x5107d5,_0x4c26f6[_0xcb0558(0x1997)]=[],_0x28c606()[_0xcb0558(0x1789)](_0x4c26f6['queues'],function(_0x10899c){const _0x17f15b=_0xcb0558;_0x4c26f6[_0x17f15b(0x1997)]['push'](_0x10899c['id']);}),_0x4f4dff['on'](_0xcb0558(0x28d3),_0x4c26f6['onSave']),_0x4f4dff['on'](_0xcb0558(0x262a),_0x4c26f6['onSaveMember']),_0x4f4dff['on'](_0xcb0558(0x234c),_0x4c26f6[_0xcb0558(0x351)]),_0x4f4dff['on'](_0xcb0558(0x130f),_0x4c26f6[_0xcb0558(0x2fe)]),_0x4f4dff['on']('userVoiceQueue:remove',_0x4c26f6[_0xcb0558(0x259)]),_0x4f4dff['on'](_0xcb0558(0x44b),_0x4c26f6[_0xcb0558(0x4c3)]);function _0x5107d5(){const _0x51543f=_0xcb0558,_0x28c704=[];return _0x28c606()[_0x51543f(0x1789)](_0x4c26f6[_0x51543f(0x1c06)],function(_0x4d2bb0,_0xc2a93d){const _0x49af57=_0x51543f;_0x4d2bb0['paused']=0x0,_0x4d2bb0[_0x49af57(0x371)]=0x0,_0x4c26f6['queues'][_0xc2a93d][_0x49af57(0xd77)]={},_0x28c704[_0x49af57(0x1954)](_0x4d1f7f[_0x49af57(0x10b0)]['getMembers']({'id':_0xc2a93d})['$promise']),_0x4c26f6[_0x49af57(0x22c7)][_0xc2a93d]&&_0x28c606()['merge'](_0x4d2bb0,_0x28c606()[_0x49af57(0x27bb)](_0x4c26f6[_0x49af57(0x22c7)][_0xc2a93d],_0xc40df0));}),_0x2b70db[_0x51543f(0x2705)](_0x28c704)[_0x51543f(0x64a)](function(_0x104d47){const _0x2f103d=_0x51543f;for(let _0x1a2f48=0x0;_0x1a2f48<_0x104d47['length'];_0x1a2f48+=0x1){for(let _0x4d9a0c=0x0;_0x4d9a0c<_0x104d47[_0x1a2f48]['rows'][_0x2f103d(0x1b9e)];_0x4d9a0c++){_0x104d47[_0x1a2f48][_0x2f103d(0x28b8)][_0x4d9a0c]['paused']&&_0x4c26f6['queues'][_0x104d47[_0x1a2f48][_0x2f103d(0x28b8)][_0x4d9a0c][_0x2f103d(0x194e)]][_0x2f103d(0x20a7)]++,_0x4c26f6[_0x2f103d(0x1c06)][_0x104d47[_0x1a2f48][_0x2f103d(0x28b8)][_0x4d9a0c][_0x2f103d(0x194e)]][_0x2f103d(0x371)]++,_0x4c26f6[_0x2f103d(0x1c06)][_0x104d47[_0x1a2f48][_0x2f103d(0x28b8)][_0x4d9a0c][_0x2f103d(0x194e)]][_0x2f103d(0xd77)][_0x104d47[_0x1a2f48]['rows'][_0x4d9a0c][_0x2f103d(0x246c)]]=_0x104d47[_0x1a2f48][_0x2f103d(0x28b8)][_0x4d9a0c][_0x2f103d(0x194e)];}}})[_0x51543f(0x20cd)](function(_0x9dd864){const _0x2ba7fb=_0x51543f;console[_0x2ba7fb(0x1bd0)](_0x9dd864);});}function _0x4d4865(_0x208a04){const _0x2cb51c=_0xcb0558;_0x4c26f6[_0x2cb51c(0x1c06)][_0x208a04['id']]&&_0x28c606()[_0x2cb51c(0x14fe)](_0x4c26f6[_0x2cb51c(0x1c06)][_0x208a04['id']],_0x28c606()['pick'](_0x208a04,_0xc40df0));}function _0xbf468c(_0x44e145){const _0x34417a=_0xcb0558;_0x4c26f6[_0x34417a(0x1c06)][_0x44e145[_0x34417a(0x194e)]]&&_0x4c26f6[_0x34417a(0x1c06)][_0x44e145['ChatQueueId']]['loggedInDb']++;}function _0xf08021(_0x1b3b70){const _0x3e9449=_0xcb0558;_0x4c26f6[_0x3e9449(0x1c06)][_0x1b3b70[_0x3e9449(0x194e)]]&&_0x4c26f6['queues'][_0x1b3b70[_0x3e9449(0x194e)]][_0x3e9449(0x371)]--;}function _0x3c241f(_0x14b845){const _0x2b8db4=_0xcb0558;console[_0x2b8db4(0x9b4)]('onPause',_0x14b845);if(_0x14b845['voicePause'])_0x28c606()[_0x2b8db4(0x1789)](_0x4c26f6[_0x2b8db4(0x1c06)],function(_0x220da0){const _0x542af0=_0x2b8db4;_0x220da0[_0x542af0(0xd77)][_0x14b845['id']]&&(_0x220da0[_0x542af0(0x20a7)]+=0x1,console[_0x542af0(0x9b4)]('pause'));});else!_0x14b845[_0x2b8db4(0x11a4)]&&_0x28c606()[_0x2b8db4(0x1789)](_0x4c26f6[_0x2b8db4(0x1c06)],function(_0x242439){const _0x5eb765=_0x2b8db4;_0x242439[_0x5eb765(0xd77)][_0x14b845['id']]&&(_0x242439['paused']>0x0&&(_0x242439[_0x5eb765(0x20a7)]-=0x1,console[_0x5eb765(0x9b4)](_0x5eb765(0x818))));});}function _0x5c8ffc(_0x484dad){const _0x2fdc23=_0xcb0558;console[_0x2fdc23(0x9b4)]('onLogged',_0x484dad),_0x4c26f6['queues'][_0x484dad[_0x2fdc23(0x194e)]]&&(_0x4c26f6[_0x2fdc23(0x1c06)][_0x484dad['ChatQueueId']]['loggedInDb']+=0x1,_0x4c26f6[_0x2fdc23(0x1c06)][_0x484dad[_0x2fdc23(0x194e)]][_0x2fdc23(0xd77)][_0x484dad['UserId']]=_0x484dad[_0x2fdc23(0x194e)]);}function _0x5c3d7d(_0x4bff5b){const _0x345ae1=_0xcb0558;console['log'](_0x345ae1(0x259),_0x4bff5b),_0x4c26f6[_0x345ae1(0x1c06)][_0x4bff5b[_0x345ae1(0x194e)]]&&_0x4c26f6[_0x345ae1(0x1c06)][_0x4bff5b['ChatQueueId']][_0x345ae1(0x371)]>0x0&&(_0x4c26f6[_0x345ae1(0x1c06)][_0x4bff5b[_0x345ae1(0x194e)]][_0x345ae1(0x371)]-=0x1,delete _0x4c26f6[_0x345ae1(0x1c06)][_0x4bff5b[_0x345ae1(0x194e)]][_0x345ae1(0xd77)][_0x4bff5b[_0x345ae1(0x246c)]]);}let _0x3088c3=!![],_0x3652b1=0x1;_0xacd2dd[_0xcb0558(0xc62)]('vm.query.filter',function(_0x181599,_0x10fe76){const _0x3ab59d=_0xcb0558;_0x3088c3?_0x48af81(function(){_0x3088c3=![];}):(!_0x10fe76&&(_0x3652b1=_0x4c26f6[_0x3ab59d(0x289a)][_0x3ab59d(0xc72)]),_0x181599!==_0x10fe76&&(_0x4c26f6[_0x3ab59d(0x289a)]['page']=0x1),!_0x181599&&(_0x4c26f6[_0x3ab59d(0x289a)][_0x3ab59d(0xc72)]=_0x3652b1),_0x4c26f6[_0x3ab59d(0x1f2c)]());});function _0x4fb699(_0x1eccbc){const _0x7b10c8=_0xcb0558;_0x4c26f6[_0x7b10c8(0xb90)]=_0x1eccbc[_0x7b10c8(0xb90)],_0x4c26f6[_0x7b10c8(0x1c06)]=_0x1eccbc?_0x28c606()['keyBy'](_0x1eccbc[_0x7b10c8(0x28b8)]?_0x1eccbc['rows']:[],'id'):{};if(_0x1eccbc[_0x7b10c8(0x28b8)]){_0x4c26f6['order']=[];for(let _0x4c347d=0x0;_0x4c347d<_0x1eccbc[_0x7b10c8(0x28b8)][_0x7b10c8(0x1b9e)];_0x4c347d++){_0x4c26f6[_0x7b10c8(0x1997)]['push'](_0x1eccbc['rows'][_0x4c347d]['id']);}}_0x5107d5();}function _0xf6eb30(){const _0x13ab8c=_0xcb0558;_0x4c26f6['query'][_0x13ab8c(0x24f9)]=(_0x4c26f6[_0x13ab8c(0x289a)]['page']-0x1)*_0x4c26f6[_0x13ab8c(0x289a)][_0x13ab8c(0x25bb)],_0x693e35['hasRole'](_0x13ab8c(0x333))?_0x4c26f6[_0x13ab8c(0x1713)]=_0x4d1f7f[_0x13ab8c(0x10b0)]['get'](_0x4c26f6[_0x13ab8c(0x289a)],_0x4fb699)[_0x13ab8c(0x15e7)]:(_0x4c26f6['query']['id']=_0x4c26f6[_0x13ab8c(0x16a8)]['id'],_0x4c26f6[_0x13ab8c(0x289a)]['section']='ChatQueues',_0x4c26f6[_0x13ab8c(0x1713)]=_0x4d1f7f['userProfile'][_0x13ab8c(0x2565)](_0x4c26f6[_0x13ab8c(0x289a)],_0x4fb699)[_0x13ab8c(0x15e7)]);}function _0x505d3a(_0x426e6d,_0x2e5cb3){const _0x51ba2d=_0xcb0558;_0x65462[_0x51ba2d(0xa60)]({'controller':_0x51ba2d(0x97c),'controllerAs':'vm','templateUrl':_0x541f7c,'parent':angular[_0x51ba2d(0x1f81)](_0x1675e2[_0x51ba2d(0xb49)]),'targetEvent':_0x426e6d,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x2e5cb3,'chatQueues':_0x28c606()[_0x51ba2d(0x2146)](_0x4c26f6[_0x51ba2d(0x1c06)]),'license':null,'setting':null,'crudPermissions':_0x4c26f6[_0x51ba2d(0x402)]}});}function _0x3a5812(_0x3501c5,_0x17476b){const _0x3a1546=_0xcb0558;_0x65462['show']({'controller':_0x3a1546(0xc30),'controllerAs':'vm','templateUrl':_0xe0abf5,'parent':angular[_0x3a1546(0x1f81)](_0x1675e2[_0x3a1546(0xb49)]),'targetEvent':_0x3501c5,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x17476b,'chatQueues':_0x4c26f6['queues']?_0x4c26f6[_0x3a1546(0x1c06)][_0x3a1546(0x28b8)]:[],'realtime':![],'crudPermissions':_0x4c26f6[_0x3a1546(0x402)]}});}function _0x1804ed(_0x372716){const _0x3e3ca0=_0xcb0558;return _0x4d1f7f[_0x3e3ca0(0x10b0)][_0x3e3ca0(0x2603)](_0x372716)[_0x3e3ca0(0x15e7)][_0x3e3ca0(0x64a)](function(){const _0x4990fd=_0x3e3ca0;_0x18f206['success']({'title':_0x4990fd(0x2bf),'msg':_0x372716[_0x4990fd(0x2494)]?_0x372716[_0x4990fd(0x2494)]+_0x4990fd(0x2032):''});})[_0x3e3ca0(0x20cd)](function(_0xa9d055){const _0x536f12=_0x3e3ca0;_0x18f206[_0x536f12(0x1bd0)]({'title':'Error\x20creating\x20queue!','msg':_0xa9d055[_0x536f12(0x18ca)]});});}_0xacd2dd[_0xcb0558(0x8c7)](_0xcb0558(0xf28),function(){const _0x180a3e=_0xcb0558;_0x4f4dff[_0x180a3e(0x1951)](_0x180a3e(0x28d3)),_0x4f4dff['removeAllListeners'](_0x180a3e(0x234c)),_0x4f4dff[_0x180a3e(0x1951)]('userChatQueue:save'),_0x4f4dff['removeAllListeners'](_0x180a3e(0x130f)),_0x4f4dff['removeAllListeners'](_0x180a3e(0x289d)),_0x4f4dff[_0x180a3e(0x1951)](_0x180a3e(0x44b));});}const _0x9cdc66=_0x2727d9;;function _0x32616a(){const _0x3e293e=_0x49a1e3;return{'status':{'registered':_0x3e293e(0x26f8),'unregistered':_0x3e293e(0x2448),'lagged':'red-300-fg\x20icon-close-circle','reachable':_0x3e293e(0x26f8),'unreachable':_0x3e293e(0x2448),'unknown':_0x3e293e(0x178c)},'state':{'unknown':_0x3e293e(0x2971),'not_inuse':_0x3e293e(0x14d3),'inuse':_0x3e293e(0xa51),'busy':'red-300-fg\x20icon-phone-locked','invalid':_0x3e293e(0x2971),'unavailable':_0x3e293e(0x2971),'ringing':'blue-300-fg\x20icon-phone-incoming','ringinuse':_0x3e293e(0x15e),'onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':'blue-300-fg\x20icon-phone-incoming','up':_0x3e293e(0x5c4),'hangup':'red-300-fg\x20icon-phone-hangup'},'channelStatusOut':{'ring':_0x3e293e(0x170),'up':_0x3e293e(0x5c4),'hangup':_0x3e293e(0x2150)}};}const _0x4f2221=_0x32616a;;_0x1014d3[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x633)];function _0x1014d3(_0xb1ce9e,_0x40bbf0,_0x5a1c3f){const _0x4588d1=_0x49a1e3,_0x5f0da0=this;_0x5a1c3f[_0x4588d1(0x1c31)](),_0x5a1c3f[_0x4588d1(0x25fa)](),_0x5f0da0[_0x4588d1(0x197c)]=0x0;switch(_0x40bbf0[_0x4588d1(0xa6c)][_0x4588d1(0x2494)]){case _0x4588d1(0x1b63):_0x5f0da0['selectedTab']=0x0;break;case _0x4588d1(0x5c8):_0x5f0da0[_0x4588d1(0x197c)]=0x1;break;default:_0x5f0da0[_0x4588d1(0x197c)]=0x0,_0x40bbf0['go']('app.chat.realtime.agents');}_0xb1ce9e[_0x4588d1(0xc62)]('vm.selectedTab',function(_0x3144f5,_0x5f00f5){const _0x2abd39=_0x4588d1;if(_0x3144f5!==_0x5f00f5)switch(_0x3144f5){case 0x0:_0x40bbf0['go'](_0x2abd39(0x1b63));break;case 0x1:_0x40bbf0['go'](_0x2abd39(0x5c8));break;default:_0x40bbf0['go'](_0x2abd39(0x1b63));}});}const _0x2432fe=_0x1014d3;;_0x493e0b['$inject']=[_0x49a1e3(0x20ad)];function _0x493e0b(_0x16899b){const _0x7215b0=_0x49a1e3;_0x16899b[_0x7215b0(0x14f2)](_0x7215b0(0xf01),{'url':_0x7215b0(0x71d),'views':{'content@app':{'templateUrl':_0x5723cd,'controller':_0x7215b0(0x14a1)}},'resolve':{'userProfile':['apiResolver',_0x7215b0(0xdcf),function(_0x53d0ae,_0x5a2951){const _0x12b097=_0x7215b0;return _0x5a2951[_0x12b097(0x4de)]('admin')?null:_0x53d0ae[_0x12b097(0x1268)](_0x12b097(0x6e3),{'fields':_0x12b097(0x10d2),'id':_0x5a2951[_0x12b097(0x808)]()['userProfileId']});}],'userProfileSection':[_0x7215b0(0x107c),'Auth',function(_0x701e24,_0x20d959){const _0x430d24=_0x7215b0;return _0x20d959[_0x430d24(0x4de)](_0x430d24(0x333))?null:_0x701e24[_0x430d24(0x1268)]('userProfileSection@get',{'fields':_0x430d24(0x527),'userProfileId':_0x20d959[_0x430d24(0x808)]()[_0x430d24(0x21ac)],'sectionId':0x1fe});}]},'authenticate':!![],'permissionId':0x1fe})['state'](_0x7215b0(0x1b63),{'url':_0x7215b0(0x23f8),'controller':_0x7215b0(0x109b),'templateUrl':_0x26f30b,'resolve':{'pauses':[_0x7215b0(0x107c),function(_0x46f64d){const _0xc16943=_0x7215b0;return _0x46f64d[_0xc16943(0x1268)]('pause@get',{'nolimit':!![]});}],'agents':['apiResolver',_0x7215b0(0xdcf),function(_0x53b911,_0x43dc5a){const _0x4a6b6d=_0x7215b0;return _0x43dc5a['hasRole'](_0x4a6b6d(0x333))?_0x53b911[_0x4a6b6d(0x1268)](_0x4a6b6d(0x142c),{'fields':_0x4a6b6d(0x1956),'role':_0x4a6b6d(0x11ae),'sort':'fullname','nolimit':!![]}):_0x53b911[_0x4a6b6d(0x1268)](_0x4a6b6d(0x1758),{'id':_0x43dc5a[_0x4a6b6d(0x808)]()[_0x4a6b6d(0x21ac)],'section':'Agents','fields':'id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording','role':_0x4a6b6d(0x11ae),'sort':_0x4a6b6d(0x15c),'nolimit':!![]});}],'userProfile':[_0x7215b0(0x107c),_0x7215b0(0xdcf),function(_0x56c9f3,_0x5e321e){const _0xc29bc3=_0x7215b0;return _0x5e321e[_0xc29bc3(0x4de)](_0xc29bc3(0x333))?null:_0x56c9f3[_0xc29bc3(0x1268)](_0xc29bc3(0x6e3),{'fields':'id,name,crudPermissions','id':_0x5e321e[_0xc29bc3(0x808)]()['userProfileId']});}],'userProfileSection':[_0x7215b0(0x107c),_0x7215b0(0xdcf),function(_0x18b00d,_0x594faa){const _0x4869bd=_0x7215b0;return _0x594faa[_0x4869bd(0x4de)]('admin')?null:_0x18b00d[_0x4869bd(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x594faa[_0x4869bd(0x808)]()['userProfileId'],'sectionId':0xca});}],'rpcAgents':[_0x7215b0(0x107c),function(_0x450155){const _0x5db820=_0x7215b0;return _0x450155[_0x5db820(0x1268)](_0x5db820(0x2222));}]},'authenticate':!![],'permissionId':0x1fe})[_0x7215b0(0x14f2)](_0x7215b0(0x5c8),{'url':'/queues','controller':_0x7215b0(0xe59),'templateUrl':_0x205d14,'resolve':{'queues':['apiResolver','Auth',function(_0x447dff,_0x53be20){const _0x392b77=_0x7215b0;return _0x53be20[_0x392b77(0x4de)]('admin')?_0x447dff[_0x392b77(0x1268)](_0x392b77(0x5d6),{'type':_0x392b77(0x12a4),'sort':_0x392b77(0x260c),'limit':0xa,'offset':0x0}):_0x447dff[_0x392b77(0x1268)]('userProfile@getResources',{'id':_0x53be20['getCurrentUser']()['userProfileId'],'section':'ChatQueues','channel':'chat','type':_0x392b77(0x12a4),'sort':_0x392b77(0x260c),'limit':0xa,'page':0x1});}],'userProfile':[_0x7215b0(0x107c),_0x7215b0(0xdcf),function(_0x2d6187,_0x3a69e8){const _0x4d2100=_0x7215b0;return _0x3a69e8['hasRole']('admin')?null:_0x2d6187[_0x4d2100(0x1268)](_0x4d2100(0x6e3),{'fields':_0x4d2100(0x10d2),'id':_0x3a69e8[_0x4d2100(0x808)]()[_0x4d2100(0x21ac)]});}],'userProfileSection':['apiResolver',_0x7215b0(0xdcf),function(_0xc92778,_0x264ff7){const _0x30d234=_0x7215b0;return _0x264ff7[_0x30d234(0x4de)](_0x30d234(0x333))?null:_0xc92778[_0x30d234(0x1268)](_0x30d234(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x264ff7[_0x30d234(0x808)]()['userProfileId'],'sectionId':0x1f5});}],'rpcQueues':['apiResolver',function(_0x367c2f){const _0x2893e6=_0x7215b0;return _0x367c2f['resolve'](_0x2893e6(0xe1a));}]},'authenticate':!![],'permissionId':0x1fe});}angular[_0x49a1e3(0x20d2)]('app.chat.realtime',[])[_0x49a1e3(0x3d3)](_0x493e0b)[_0x49a1e3(0x38e)](_0x49a1e3(0xa00),_0x19f8e0)[_0x49a1e3(0x38e)](_0x49a1e3(0x5c7),_0x9cdc66)[_0x49a1e3(0x646)]('helperClasses',_0x4f2221)[_0x49a1e3(0x38e)](_0x49a1e3(0x1160),_0x2432fe);;const _0x16411b=_0x2e4a48['p']+_0x49a1e3(0xd8a);;_0x565cdc[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x136f),_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xa19),_0x49a1e3(0x1214),'toasty',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x565cdc(_0x6b359b,_0x17ea86,_0x4d3999,_0x5f001f,_0x5d49dc,_0x9320c6,_0x963e91,_0x1993d5,_0x8e24ca,_0x36827d,_0x387a92,_0x3fd563,_0x1fee2b,_0x18ef99,_0x55b153,_0x17cb58,_0x193cc6){const _0x389e6c=_0x49a1e3,_0x5b6469=this;_0x5b6469[_0x389e6c(0x1947)]=_0x17cb58,_0x5b6469[_0x389e6c(0x28d6)]=_0x193cc6,_0x5b6469[_0x389e6c(0x1d3d)]=_0x55b153[_0x389e6c(0x808)](),_0x5b6469['chatQueues']=_0x8e24ca||{'count':0x0,'rows':[]},_0x5b6469[_0x389e6c(0x16a8)]=_0x36827d,_0x5b6469[_0x389e6c(0x16b2)]=_0x387a92&&_0x387a92[_0x389e6c(0xb90)]==0x1?_0x387a92[_0x389e6c(0x28b8)][0x0]:null,_0x5b6469[_0x389e6c(0x402)]=_0x55b153['parseCrudPermissions'](_0x5b6469[_0x389e6c(0x16b2)]?_0x5b6469[_0x389e6c(0x16b2)]['crudPermissions']:null),_0x5b6469[_0x389e6c(0x185d)]=_0x389e6c(0x136f),_0x5b6469[_0x389e6c(0x300)]='',_0x5b6469['listOrderAsc']=null,_0x5b6469[_0x389e6c(0x12dc)]=[],_0x5b6469[_0x389e6c(0x289a)]={'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x389e6c(0x260c),'channel':_0x389e6c(0xf52),'limit':0xa,'page':0x1},_0x5b6469[_0x389e6c(0xc25)]=_0x28c606()[_0x389e6c(0x161e)]([{'option':'Beepall','value':_0x389e6c(0x2342)},{'option':_0x389e6c(0x773),'value':'\x27rrmemory\x27'}],function(_0x584c83){const _0x3bc274=_0x389e6c;return _0x28c606()[_0x3bc274(0x1353)](_0x584c83[_0x3bc274(0x1096)],new RegExp('\x27','g'),'');}),_0x5b6469[_0x389e6c(0xff6)]=_0x2c5e6a,_0x5b6469[_0x389e6c(0x1a72)]=_0x4639c2,_0x5b6469[_0x389e6c(0x104a)]=_0x17bcb9,_0x5b6469['deleteconfirm']=_0x3d3355,_0x5b6469[_0x389e6c(0x93f)]=_0x1ac525,_0x5b6469[_0x389e6c(0x1339)]=_0x3c4c0b,_0x5b6469[_0x389e6c(0xd1b)]=_0x58a975,_0x5b6469[_0x389e6c(0x257b)]=_0x2b0ac5,_0x5b6469['deleteChatQueue']=_0x388376,_0x5b6469[_0x389e6c(0x1fb)]=_0x167122,_0x5b6469[_0x389e6c(0xcab)]=_0x5ae231,_0x5b6469[_0x389e6c(0x2276)]=_0x2788e1,_0x5b6469[_0x389e6c(0x170e)]=_0x1bea75;function _0x2c5e6a(_0x500629){const _0x47ade0=_0x389e6c;_0x4d3999['go']('app.chat.chatQueues.edit',{'id':_0x500629['id'],'chatQueue':_0x500629,'crudPermissions':_0x5b6469[_0x47ade0(0x402)]});}function _0x4639c2(_0x177770,_0x289da9){const _0x4239d8=_0x389e6c;_0x5d49dc['show']({'controller':_0x4239d8(0x167b),'controllerAs':'vm','templateUrl':_0x16411b,'parent':angular['element'](_0x9320c6['body']),'targetEvent':_0x289da9,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x177770,'chatQueues':_0x5b6469[_0x4239d8(0x136f)]?_0x5b6469[_0x4239d8(0x136f)][_0x4239d8(0x28b8)]:[],'crudPermissions':_0x5b6469[_0x4239d8(0x402)]}});}function _0x17bcb9(_0x101a85,_0x249720){const _0x24f4a=_0x389e6c;_0x5d49dc[_0x24f4a(0xa60)]({'controller':_0x24f4a(0xc30),'controllerAs':'vm','templateUrl':_0xe0abf5,'parent':angular[_0x24f4a(0x1f81)](_0x9320c6[_0x24f4a(0xb49)]),'targetEvent':_0x249720,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x101a85,'chatQueues':_0x5b6469[_0x24f4a(0x136f)]?_0x5b6469['chatQueues']['rows']:[],'crudPermissions':_0x5b6469['crudPermissions'],'realtime':![]}});}function _0x3d3355(_0x13fbfe,_0x1c1458){const _0x3d0d54=_0x389e6c,_0x54ef9b=_0x5d49dc[_0x3d0d54(0x856)]()[_0x3d0d54(0x2021)](_0x3d0d54(0x1231)+_0x28c606()[_0x3d0d54(0xc01)](_0x3d0d54(0x10b0))+'?')[_0x3d0d54(0x33a)](_0x3d0d54(0x50b)+(_0x13fbfe[_0x3d0d54(0x2494)]||_0x3d0d54(0x10b0))+_0x3d0d54(0x26d0)+_0x3d0d54(0x4b8))[_0x3d0d54(0x213e)](_0x3d0d54(0x261d))[_0x3d0d54(0x2283)](_0x1c1458)['ok']('OK')[_0x3d0d54(0x101a)]('CANCEL');_0x5d49dc[_0x3d0d54(0xa60)](_0x54ef9b)[_0x3d0d54(0x64a)](function(){_0x388376(_0x13fbfe);},function(){const _0x5e42c5=_0x3d0d54;console[_0x5e42c5(0x9b4)](_0x5e42c5(0x18fd));});}function _0x1ac525(){const _0x3014eb=_0x389e6c;if(_0x55b153[_0x3014eb(0x4de)](_0x3014eb(0x333)))_0x4d3999['go'](_0x3014eb(0x5c8),{});else return _0x3fd563['userProfileSection']['get']({'userProfileId':_0x55b153[_0x3014eb(0x808)]()['userProfileId'],'sectionId':0x1fe})['$promise'][_0x3014eb(0x64a)](function(_0x48db66){const _0x996fc0=_0x3014eb,_0x1ace81=_0x48db66&&_0x48db66[_0x996fc0(0x28b8)]?_0x48db66[_0x996fc0(0x28b8)][0x0]:null;_0x1ace81&&_0x1ace81[_0x996fc0(0xe49)]?_0x4d3999['go'](_0x996fc0(0x5c8),{}):_0x18ef99['info']({'title':_0x1993d5[_0x996fc0(0x2292)](_0x996fc0(0x111a)),'msg':_0x1993d5[_0x996fc0(0x2292)](_0x996fc0(0x229))});})['catch'](function(_0x26f568){const _0x3e914e=_0x3014eb;_0x18ef99['error']({'title':_0x26f568[_0x3e914e(0x10b3)]?_0x3e914e(0x575)+_0x26f568[_0x3e914e(0x10b3)]+_0x3e914e(0x21db)+_0x26f568[_0x3e914e(0x2115)]:_0x3e914e(0x942),'msg':_0x26f568[_0x3e914e(0x10b3)]?JSON['stringify'](_0x26f568[_0x3e914e(0x1c52)]):_0x26f568[_0x3e914e(0x2915)]()});});}let _0x27e01a=!![],_0x4eb87f=0x1;_0x6b359b[_0x389e6c(0xc62)](_0x389e6c(0x1cb9),function(_0x444e6b,_0x3927ce){const _0x17cc2c=_0x389e6c;_0x27e01a?_0x963e91(function(){_0x27e01a=![];}):(!_0x3927ce&&(_0x4eb87f=_0x5b6469[_0x17cc2c(0x289a)][_0x17cc2c(0xc72)]),_0x444e6b!==_0x3927ce&&(_0x5b6469[_0x17cc2c(0x289a)]['page']=0x1),!_0x444e6b&&(_0x5b6469['query'][_0x17cc2c(0xc72)]=_0x4eb87f),_0x5b6469['getChatQueues']());});function _0x3c4c0b(_0x5587ee){const _0x4e721d=_0x389e6c;_0x5b6469[_0x4e721d(0x136f)]=_0x5587ee||{'count':0x0,'rows':[]};}function _0x58a975(){const _0x36bc56=_0x389e6c;_0x5b6469['query'][_0x36bc56(0x24f9)]=(_0x5b6469[_0x36bc56(0x289a)][_0x36bc56(0xc72)]-0x1)*_0x5b6469[_0x36bc56(0x289a)][_0x36bc56(0x25bb)],_0x55b153['hasRole']('admin')?_0x5b6469['promise']=_0x3fd563[_0x36bc56(0x10b0)]['get'](_0x5b6469['query'],_0x3c4c0b)[_0x36bc56(0x15e7)]:(_0x5b6469['query']['id']=_0x5b6469[_0x36bc56(0x16a8)]['id'],_0x5b6469[_0x36bc56(0x289a)]['section']=_0x36bc56(0xaa7),_0x5b6469['promise']=_0x3fd563[_0x36bc56(0x16a8)][_0x36bc56(0x2565)](_0x5b6469['query'],_0x3c4c0b)['$promise']);}function _0x2b0ac5(_0x3027c7,_0x402f4f){const _0x407f98=_0x389e6c;_0x5d49dc[_0x407f98(0xa60)]({'controller':_0x407f98(0x97c),'controllerAs':'vm','templateUrl':_0x541f7c,'parent':angular[_0x407f98(0x1f81)](_0x9320c6['body']),'targetEvent':_0x3027c7,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x402f4f,'chatQueues':_0x5b6469[_0x407f98(0x136f)][_0x407f98(0x28b8)],'license':_0x5b6469[_0x407f98(0x1947)],'setting':_0x5b6469[_0x407f98(0x28d6)],'crudPermissions':_0x5b6469[_0x407f98(0x402)]}});}function _0x388376(_0x9df667){const _0x19b50=_0x389e6c;_0x3fd563[_0x19b50(0x10b0)][_0x19b50(0xabd)]({'id':_0x9df667['id']})[_0x19b50(0x15e7)]['then'](function(){const _0x2881e8=_0x19b50;_0x28c606()[_0x2881e8(0x21c7)](_0x5b6469[_0x2881e8(0x136f)][_0x2881e8(0x28b8)],{'id':_0x9df667['id']}),_0x5b6469['chatQueues'][_0x2881e8(0xb90)]-=0x1,!_0x5b6469[_0x2881e8(0x136f)][_0x2881e8(0x28b8)]['length']&&_0x5b6469[_0x2881e8(0xd1b)](),_0x18ef99[_0x2881e8(0x1339)]({'title':_0x28c606()[_0x2881e8(0xc01)]('ChatQueue')+_0x2881e8(0x2502),'msg':_0x9df667[_0x2881e8(0x2494)]?_0x9df667[_0x2881e8(0x2494)]+_0x2881e8(0x1fa8):''});})[_0x19b50(0x20cd)](function(_0x34e145){const _0x533433=_0x19b50;if(_0x34e145[_0x533433(0x1c52)]&&_0x34e145[_0x533433(0x1c52)][_0x533433(0xbae)]&&_0x34e145['data'][_0x533433(0xbae)][_0x533433(0x1b9e)]){_0x5b6469[_0x533433(0xbae)]=_0x34e145[_0x533433(0x1c52)][_0x533433(0xbae)]||[{'message':_0x34e145[_0x533433(0x2915)](),'type':_0x533433(0x1335)}];for(let _0x14f51a=0x0;_0x14f51a<_0x34e145[_0x533433(0x1c52)][_0x533433(0xbae)]['length'];_0x14f51a++){_0x18ef99[_0x533433(0x1bd0)]({'title':_0x34e145['data']['errors'][_0x14f51a][_0x533433(0x2185)],'msg':_0x34e145[_0x533433(0x1c52)][_0x533433(0xbae)][_0x14f51a][_0x533433(0x18ca)]});}}else _0x18ef99['error']({'title':_0x34e145[_0x533433(0x10b3)]?_0x533433(0x575)+_0x34e145[_0x533433(0x10b3)]+_0x533433(0x21db)+_0x34e145[_0x533433(0x2115)]:_0x533433(0x1335),'msg':_0x34e145['data']?JSON[_0x533433(0x2317)](_0x34e145['data'][_0x533433(0x18ca)]):_0x34e145[_0x533433(0x18ca)]||_0x34e145[_0x533433(0x2915)]()});});}function _0x167122(){const _0x473276=_0x389e6c,_0x394b6f=angular[_0x473276(0x289e)](_0x5b6469[_0x473276(0x12dc)]);return _0x5b6469['selectedChatQueues']=[],_0x394b6f;}function _0x5ae231(_0x353d6f){const _0x3f149e=_0x389e6c,_0x4abcf6=_0x5d49dc['confirm']()[_0x3f149e(0x2021)](_0x3f149e(0x244f))[_0x3f149e(0x33a)](_0x3f149e(0x50b)+_0x5b6469[_0x3f149e(0x12dc)][_0x3f149e(0x1b9e)]+_0x3f149e(0x163e)+_0x3f149e(0x4b8))[_0x3f149e(0x213e)]('delete\x20ChatQueues')[_0x3f149e(0x2283)](_0x353d6f)['ok']('OK')[_0x3f149e(0x101a)]('CANCEL');_0x5d49dc[_0x3f149e(0xa60)](_0x4abcf6)[_0x3f149e(0x64a)](function(){const _0x2fd249=_0x3f149e;_0x5b6469[_0x2fd249(0x12dc)][_0x2fd249(0x1397)](function(_0x2868f0){_0x388376(_0x2868f0);}),_0x5b6469[_0x2fd249(0x12dc)]=[];});}function _0x2788e1(){const _0x39b20b=_0x389e6c;_0x5b6469[_0x39b20b(0x12dc)]=[];}function _0x1bea75(){const _0x89c21f=_0x389e6c;_0x5b6469[_0x89c21f(0x12dc)]=_0x5b6469[_0x89c21f(0x136f)][_0x89c21f(0x28b8)];}}const _0x3fcecf=_0x565cdc;;_0x5d3413[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x136f),_0x49a1e3(0x10b0),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x5d3413(_0x3ce91e,_0x26f53e,_0x502c99,_0x910caa,_0x113c60,_0x2c6a35,_0xd9f2d8,_0x3521fe,_0x30a681,_0x354659,_0x35f3dd,_0x60bb61,_0x209cf4,_0x385274){const _0x358b86=_0x49a1e3,_0x3ba50c=this;_0x3ba50c[_0x358b86(0x1d3d)]=_0x35f3dd[_0x358b86(0x808)](),_0x3ba50c[_0x358b86(0xbae)]=[],_0x3ba50c[_0x358b86(0x28d6)]=_0x209cf4,_0x3ba50c[_0x358b86(0x1947)]=_0x60bb61,_0x3ba50c[_0x358b86(0x402)]=_0x385274,_0x3ba50c[_0x358b86(0x6c2)]={},_0x3ba50c[_0x358b86(0xccc)]=_0x3ba50c[_0x358b86(0x28d6)]&&_0x3ba50c[_0x358b86(0x28d6)][_0x358b86(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3ba50c['title']=_0x358b86(0x1bb0),_0x3ba50c[_0x358b86(0x10b0)]=angular[_0x358b86(0x289e)](_0x30a681),_0x3ba50c[_0x358b86(0x136f)]=_0x3521fe,_0x3ba50c[_0x358b86(0xd21)]=![];!_0x3ba50c[_0x358b86(0x10b0)]&&(_0x3ba50c['chatQueue']={'strategy':'beepall','timeout':0xa},_0x3ba50c[_0x358b86(0x2021)]=_0x358b86(0x1dff),_0x3ba50c[_0x358b86(0xd21)]=!![]);_0x3ba50c[_0x358b86(0x14dc)]=_0x209079,_0x3ba50c[_0x358b86(0xcb0)]=_0x5153a1,_0x3ba50c[_0x358b86(0x18c0)]=_0x5c33ff,_0x3ba50c[_0x358b86(0x1605)]=_0x5c3afd,_0x3ba50c[_0x358b86(0x16cb)]=_0x441d40;function _0x209079(){const _0x3f5a74=_0x358b86;_0x3ba50c[_0x3f5a74(0xbae)]=[],_0x354659[_0x3f5a74(0x10b0)][_0x3f5a74(0x2479)](_0x3ba50c['chatQueue'])[_0x3f5a74(0x15e7)]['then'](function(_0x42c96f){const _0x2af1ce=_0x3f5a74;_0x3ba50c[_0x2af1ce(0x136f)]['unshift'](_0x42c96f[_0x2af1ce(0x14f8)]()),_0xd9f2d8[_0x2af1ce(0x1339)]({'title':_0x2af1ce(0x153),'msg':_0x3ba50c[_0x2af1ce(0x10b0)]['name']?_0x3ba50c['chatQueue'][_0x2af1ce(0x2494)]+_0x2af1ce(0x258d):''}),_0x441d40(_0x42c96f);})['catch'](function(_0x3e57ae){const _0x3e88e3=_0x3f5a74;if(_0x3e57ae[_0x3e88e3(0x1c52)]&&_0x3e57ae[_0x3e88e3(0x1c52)][_0x3e88e3(0xbae)]&&_0x3e57ae[_0x3e88e3(0x1c52)][_0x3e88e3(0xbae)][_0x3e88e3(0x1b9e)]){_0x3ba50c[_0x3e88e3(0xbae)]=_0x3e57ae['data'][_0x3e88e3(0xbae)]||[{'message':_0x3e57ae[_0x3e88e3(0x2915)](),'type':'api.chatQueue.save'}];for(let _0x1fb237=0x0;_0x1fb237<_0x3e57ae[_0x3e88e3(0x1c52)][_0x3e88e3(0xbae)][_0x3e88e3(0x1b9e)];_0x1fb237+=0x1){_0xd9f2d8[_0x3e88e3(0x1bd0)]({'title':_0x3e57ae[_0x3e88e3(0x1c52)][_0x3e88e3(0xbae)][_0x1fb237][_0x3e88e3(0x2185)],'msg':_0x3e57ae[_0x3e88e3(0x1c52)][_0x3e88e3(0xbae)][_0x1fb237][_0x3e88e3(0x18ca)]});}}else _0xd9f2d8[_0x3e88e3(0x1bd0)]({'title':_0x3e57ae['status']?_0x3e88e3(0x575)+_0x3e57ae[_0x3e88e3(0x10b3)]+_0x3e88e3(0x21db)+_0x3e57ae['statusText']:_0x3e88e3(0x200f),'msg':_0x3e57ae['data']?JSON[_0x3e88e3(0x2317)](_0x3e57ae[_0x3e88e3(0x1c52)][_0x3e88e3(0x18ca)]):_0x3e57ae[_0x3e88e3(0x2915)]()});});}function _0x5153a1(){const _0x467f51=_0x358b86;_0x3ba50c[_0x467f51(0xbae)]=[],_0x354659[_0x467f51(0x10b0)]['update']({'id':_0x3ba50c['chatQueue']['id']},_0x3ba50c[_0x467f51(0x10b0)])[_0x467f51(0x15e7)]['then'](function(_0x26146b){const _0x47bf25=_0x467f51,_0x484411=_0x28c606()[_0x47bf25(0x27bc)](_0x3ba50c[_0x47bf25(0x136f)],{'id':_0x26146b['id']});_0x484411&&_0x28c606()['merge'](_0x484411,_0x28c606()['pick'](_0x26146b[_0x47bf25(0x14f8)](),_0x28c606()['keys'](_0x484411))),_0xd9f2d8['success']({'title':'ChatQueue\x20properly\x20saved!','msg':_0x3ba50c[_0x47bf25(0x10b0)]['name']?_0x3ba50c[_0x47bf25(0x10b0)][_0x47bf25(0x2494)]+_0x47bf25(0x271):''}),_0x441d40(_0x26146b);})[_0x467f51(0x20cd)](function(_0x3e469b){const _0x43ab44=_0x467f51;if(_0x3e469b[_0x43ab44(0x1c52)]&&_0x3e469b[_0x43ab44(0x1c52)]['errors']&&_0x3e469b[_0x43ab44(0x1c52)][_0x43ab44(0xbae)]['length']){_0x3ba50c[_0x43ab44(0xbae)]=_0x3e469b[_0x43ab44(0x1c52)][_0x43ab44(0xbae)]||[{'message':_0x3e469b[_0x43ab44(0x2915)](),'type':_0x43ab44(0x1c3e)}];for(let _0x8cc9fa=0x0;_0x8cc9fa<_0x3e469b[_0x43ab44(0x1c52)][_0x43ab44(0xbae)][_0x43ab44(0x1b9e)];_0x8cc9fa++){_0xd9f2d8[_0x43ab44(0x1bd0)]({'title':_0x3e469b[_0x43ab44(0x1c52)][_0x43ab44(0xbae)][_0x8cc9fa]['type'],'msg':_0x3e469b['data']['errors'][_0x8cc9fa][_0x43ab44(0x18ca)]});}}else _0xd9f2d8[_0x43ab44(0x1bd0)]({'title':_0x3e469b[_0x43ab44(0x10b3)]?'API:'+_0x3e469b[_0x43ab44(0x10b3)]+_0x43ab44(0x21db)+_0x3e469b[_0x43ab44(0x2115)]:_0x43ab44(0x1c3e),'msg':_0x3e469b[_0x43ab44(0x1c52)]?JSON[_0x43ab44(0x2317)](_0x3e469b['data']['message']):_0x3e469b[_0x43ab44(0x2915)]()});});}function _0x5c33ff(_0x484112){const _0x519399=_0x358b86;_0x3ba50c[_0x519399(0xbae)]=[];const _0x2f8bf5=_0x910caa[_0x519399(0x856)]()[_0x519399(0x2021)](_0x519399(0x103a))[_0x519399(0x12b8)](_0x519399(0x1bc8))['ariaLabel'](_0x519399(0x3c4))['ok'](_0x519399(0x2664))[_0x519399(0x101a)](_0x519399(0x1dc6))[_0x519399(0x2283)](_0x484112);_0x910caa[_0x519399(0xa60)](_0x2f8bf5)[_0x519399(0x64a)](function(){const _0x3177d6=_0x519399;_0x354659[_0x3177d6(0x10b0)]['delete']({'id':_0x3ba50c['chatQueue']['id']})[_0x3177d6(0x15e7)][_0x3177d6(0x64a)](function(){const _0x4e2b78=_0x3177d6;_0x28c606()[_0x4e2b78(0x21c7)](_0x3ba50c[_0x4e2b78(0x136f)],{'id':_0x3ba50c['chatQueue']['id']}),_0xd9f2d8['success']({'title':'ChatQueue\x20properly\x20deleted!','msg':(_0x3ba50c['chatQueue'][_0x4e2b78(0x2494)]||_0x4e2b78(0x10b0))+'\x20has\x20been\x20deleted!'}),_0x441d40(_0x3ba50c['chatQueue']);})[_0x3177d6(0x20cd)](function(_0x5def09){const _0x5eb6cd=_0x3177d6;if(_0x5def09[_0x5eb6cd(0x1c52)]&&_0x5def09[_0x5eb6cd(0x1c52)][_0x5eb6cd(0xbae)]&&_0x5def09['data']['errors']['length']){_0x3ba50c['errors']=_0x5def09[_0x5eb6cd(0x1c52)][_0x5eb6cd(0xbae)]||[{'message':_0x5def09[_0x5eb6cd(0x2915)](),'type':_0x5eb6cd(0xf47)}];for(let _0x3ccfa5=0x0;_0x3ccfa5<_0x5def09['data'][_0x5eb6cd(0xbae)][_0x5eb6cd(0x1b9e)];_0x3ccfa5++){_0xd9f2d8['error']({'title':_0x5def09[_0x5eb6cd(0x1c52)][_0x5eb6cd(0xbae)][_0x3ccfa5]['type'],'msg':_0x5def09[_0x5eb6cd(0x1c52)]['errors'][_0x3ccfa5][_0x5eb6cd(0x18ca)]});}}else _0xd9f2d8[_0x5eb6cd(0x1bd0)]({'title':_0x5def09[_0x5eb6cd(0x10b3)]?_0x5eb6cd(0x575)+_0x5def09[_0x5eb6cd(0x10b3)]+_0x5eb6cd(0x21db)+_0x5def09['statusText']:_0x5eb6cd(0xf47),'msg':_0x5def09['data']?JSON['stringify'](_0x5def09['data'][_0x5eb6cd(0x18ca)]):_0x5def09['message']||_0x5def09[_0x5eb6cd(0x2915)]()});});},function(){});}function _0x5c3afd(_0x5989fc){return _0x5989fc===null?undefined:new Date(_0x5989fc);}function _0x441d40(_0x10fe1e){const _0x286f6b=_0x358b86;_0x910caa[_0x286f6b(0x268e)](_0x10fe1e);}}const _0x18c06a=_0x5d3413;;_0x2187cb[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0xa19),'chatQueue',_0x49a1e3(0x136f),'realtime',_0x49a1e3(0x298c),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x2187cb(_0x35d01d,_0x1adbdd,_0x3e2a09,_0x526250,_0x4b3553,_0x3a0528,_0x4db948,_0x57f21d,_0x47382b,_0x31c5ae){const _0x153127=_0x49a1e3,_0x247174=this;_0x247174['currentUser']=_0x47382b['getCurrentUser'](),_0x247174[_0x153127(0x10b0)]=_0x4b3553,_0x247174[_0x153127(0x402)]=_0x31c5ae,_0x247174[_0x153127(0x252e)]=_0x4db948,_0x247174[_0x153127(0x23cb)]=[],_0x247174[_0x153127(0x13d1)]=[],_0x247174['selectedItems']=[],_0x247174[_0x153127(0x206b)]=[],_0x247174['startingSelectedItems']=[],_0x247174['pendingChanges']=![],_0x247174['onInit']=_0x487333,_0x247174[_0x153127(0x4c4)]=_0x48c38,_0x247174[_0x153127(0x16cb)]=_0x52ffa2,_0x247174['dualMultiselectOptions']={'readOnly':!_0x247174['crudPermissions']['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x153127(0x2494),'line1':_0x153127(0x15c),'line2':[_0x153127(0x2494),_0x153127(0xe2f)],'line3':'','labelAll':_0x57f21d['instant'](_0x153127(0x1da4)),'labelSelected':_0x57f21d['instant'](_0x153127(0xcf8)),'transferCallback':function(){const _0x33f986=_0x153127,_0x4c022f=_0x28c606()[_0x33f986(0x1ad)](_0x247174[_0x33f986(0x24e1)],_0x247174[_0x33f986(0x1f4f)],'id');_0x247174[_0x33f986(0xe9e)]=_0x28c606()[_0x33f986(0x940)](_0x4c022f)?![]:!![];}};function _0x487333(){const _0x103ddf=_0x153127;return _0x47382b['hasRole']('admin')?_0x41fd19()['catch'](function(_0x382838){const _0x326f70=a0_0x4127;_0x3e2a09[_0x326f70(0x1bd0)]({'title':_0x382838[_0x326f70(0x10b3)]?_0x326f70(0x575)+_0x382838['status']+'\x20-\x20'+_0x382838[_0x326f70(0x2115)]:_0x326f70(0x554),'msg':_0x382838[_0x326f70(0x10b3)]?JSON['stringify'](_0x382838[_0x326f70(0x1c52)]):_0x382838[_0x326f70(0x2915)]()});}):_0x2bdce4()[_0x103ddf(0x64a)](function(_0x143cf5){return _0x247174['section']=_0x143cf5,_0x41fd19();})[_0x103ddf(0x20cd)](function(_0x1fa96c){const _0x1a5b52=_0x103ddf;_0x3e2a09[_0x1a5b52(0x1bd0)]({'title':_0x1fa96c[_0x1a5b52(0x10b3)]?_0x1a5b52(0x575)+_0x1fa96c[_0x1a5b52(0x10b3)]+_0x1a5b52(0x21db)+_0x1fa96c[_0x1a5b52(0x2115)]:'SYSTEM:GET_AGENTS','msg':_0x1fa96c[_0x1a5b52(0x10b3)]?JSON[_0x1a5b52(0x2317)](_0x1fa96c[_0x1a5b52(0x1c52)]):_0x1fa96c['toString']()});});}function _0x2bdce4(){return _0x1adbdd(function(_0x76e9b1,_0x4028a4){const _0x4fb78f=a0_0x4127;_0x526250[_0x4fb78f(0x16b2)][_0x4fb78f(0x896)]({'userProfileId':_0x247174['currentUser'][_0x4fb78f(0x21ac)],'name':_0x4fb78f(0x2132)})['$promise']['then'](function(_0x22234b){const _0x1f0532=_0x4fb78f,_0x4418c0=_0x22234b&&_0x22234b['rows']?_0x22234b[_0x1f0532(0x28b8)][0x0]:null;_0x76e9b1(_0x4418c0);})[_0x4fb78f(0x20cd)](function(_0x55ccb4){_0x4028a4(_0x55ccb4);});});}function _0x41fd19(){return _0x1adbdd(function(_0x4f7503,_0x309211){const _0x34e87b=a0_0x4127;return _0x315f89()[_0x34e87b(0x64a)](function(_0x24620b){const _0x1686ab=_0x34e87b;return _0x247174[_0x1686ab(0x23cb)]=_0x24620b[_0x1686ab(0x28b8)]?_0x24620b['rows']:[],_0x47382b[_0x1686ab(0x4de)](_0x1686ab(0x333))?_0x24620b:_0x247174[_0x1686ab(0xa21)]?_0x247174[_0x1686ab(0xa21)][_0x1686ab(0x11da)]?_0x24620b:_0x39a069():null;})[_0x34e87b(0x64a)](function(_0x25b864){const _0x146f93=_0x34e87b,_0x4cebcf=_0x25b864&&_0x25b864['rows']?_0x25b864[_0x146f93(0x28b8)]:[];return _0x247174['allowedItems']=_0x28c606()[_0x146f93(0x1de5)](_0x4cebcf,function(_0x19e48b){const _0x233354=_0x146f93;return _0x28c606()['find'](_0x247174[_0x233354(0x23cb)],{'id':_0x47382b[_0x233354(0x4de)](_0x233354(0x333))||_0x247174[_0x233354(0xa21)][_0x233354(0x11da)]?_0x19e48b['id']:_0x19e48b[_0x233354(0x145)]});}),_0x247174[_0x146f93(0x206b)]=angular[_0x146f93(0x289e)](_0x247174[_0x146f93(0x13d1)]),_0x247174[_0x146f93(0x23cb)]['forEach'](function(_0x3d198a){const _0xd87421=_0x146f93,_0x2f662e=_0x28c606()['find'](_0x247174[_0xd87421(0x13d1)],{'id':_0x3d198a['id']});_0x47382b[_0xd87421(0x4de)](_0xd87421(0x333))?_0x3d198a['isValid']=!![]:_0x3d198a[_0xd87421(0x6f9)]=typeof _0x2f662e!==_0xd87421(0x19a1)?!![]:![];}),_0x95a0db();})[_0x34e87b(0x64a)](function(_0x1c6c3f){const _0x2c621c=_0x34e87b,_0x4e3f3c=_0x1c6c3f&&_0x1c6c3f[_0x2c621c(0x28b8)]?_0x1c6c3f['rows']:[];_0x247174[_0x2c621c(0x1f4f)]=_0x28c606()[_0x2c621c(0x1de5)](_0x4e3f3c,function(_0x5ec7a6){const _0x3f9146=_0x2c621c,_0x39ffa2=_0x28c606()[_0x3f9146(0x27bc)](_0x247174[_0x3f9146(0x23cb)],{'id':_0x5ec7a6['id']});return _0x39ffa2[_0x3f9146(0x70f)]=_0x5ec7a6[_0x3f9146(0xc82)]?'penalty\x20'+_0x5ec7a6[_0x3f9146(0xc82)][_0x3f9146(0x70f)]:'',_0x39ffa2[_0x3f9146(0xe2f)]=typeof _0x5ec7a6[_0x3f9146(0xe2f)]!==_0x3f9146(0x19a1)?'<'+_0x5ec7a6[_0x3f9146(0xe2f)]+'>':'',_0x39ffa2;}),_0x247174[_0x2c621c(0x24e1)]=angular[_0x2c621c(0x289e)](_0x247174[_0x2c621c(0x1f4f)]),_0x247174[_0x2c621c(0x1eeb)][_0x2c621c(0x1f4f)]=_0x247174[_0x2c621c(0x1f4f)],_0x247174['dualMultiselectOptions']['items']=_0x28c606()[_0x2c621c(0x23e5)](_0x247174[_0x2c621c(0x13d1)],_0x247174['dualMultiselectOptions'][_0x2c621c(0x1f4f)],'id'),_0x4f7503();})[_0x34e87b(0x20cd)](function(_0x46ac95){_0x309211(_0x46ac95);});});}function _0x39a069(){return _0x1adbdd(function(_0x212c0a,_0x1dcfff){const _0x1ec9e7=a0_0x4127;return _0x526250['userProfileResource'][_0x1ec9e7(0x896)]({'sectionId':_0x247174[_0x1ec9e7(0xa21)]['id'],'nolimit':!![]})[_0x1ec9e7(0x15e7)][_0x1ec9e7(0x64a)](function(_0x4d9e27){_0x212c0a(_0x4d9e27);})['catch'](function(_0x5804ef){_0x1dcfff(_0x5804ef);});});}function _0x95a0db(){return _0x1adbdd(function(_0x2b0bef,_0x44d125){const _0x1ed670=a0_0x4127;return _0x526250[_0x1ed670(0x10b0)][_0x1ed670(0xa10)]({'id':_0x247174[_0x1ed670(0x10b0)]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x1ed670(0x11ae)})[_0x1ed670(0x15e7)][_0x1ed670(0x64a)](function(_0x48a18b){_0x2b0bef(_0x48a18b);})[_0x1ed670(0x20cd)](function(_0x5585ed){_0x44d125(_0x5585ed);});});}function _0x315f89(){return _0x1adbdd(function(_0x2a67a3,_0x1e653a){const _0x38cbab=a0_0x4127;return _0x526250[_0x38cbab(0x2e8)][_0x38cbab(0x896)]({'fields':_0x38cbab(0x2105),'nolimit':!![],'role':_0x38cbab(0x11ae)})['$promise'][_0x38cbab(0x64a)](function(_0xe946ca){_0x2a67a3(_0xe946ca);})[_0x38cbab(0x20cd)](function(_0x2ee932){_0x1e653a(_0x2ee932);});});}function _0x364410(_0x3bc061){return _0x1adbdd(function(_0x4f2066,_0x5726e2){const _0x4f187a=a0_0x4127;_0x28c606()[_0x4f187a(0x940)](_0x3bc061)?_0x4f2066():_0x526250['chatQueue']['addAgents']({'id':_0x247174[_0x4f187a(0x10b0)]['id'],'ids':_0x28c606()['map'](_0x3bc061,'id')})['$promise'][_0x4f187a(0x64a)](function(){_0x4f2066();})['catch'](function(_0x53f0cb){_0x5726e2(_0x53f0cb);});});}function _0x3bd4c9(_0x4df88d){return _0x1adbdd(function(_0x3a13fd,_0x397f81){const _0x236588=a0_0x4127;_0x28c606()[_0x236588(0x940)](_0x4df88d)?_0x3a13fd():_0x526250[_0x236588(0x10b0)][_0x236588(0x251d)]({'id':_0x247174[_0x236588(0x10b0)]['id'],'ids':_0x28c606()[_0x236588(0x1de5)](_0x4df88d,'id')})[_0x236588(0x15e7)][_0x236588(0x64a)](function(){_0x3a13fd();})[_0x236588(0x20cd)](function(_0x47493d){_0x397f81(_0x47493d);});});}function _0x48c38(){const _0x25e2e4=_0x153127,_0xba59e5=_0x28c606()[_0x25e2e4(0x23e5)](_0x247174[_0x25e2e4(0x24e1)],_0x247174['selectedItems'],'id'),_0x5a75b1=_0x28c606()[_0x25e2e4(0x23e5)](_0x247174['selectedItems'],_0x247174[_0x25e2e4(0x24e1)],'id');return _0x3bd4c9(_0xba59e5)['then'](function(){return _0x364410(_0x5a75b1);})['then'](function(){const _0x1dad79=_0x25e2e4;_0x247174['pendingChanges']=![],_0x247174['startingAllowedItems']=angular[_0x1dad79(0x289e)](_0x247174[_0x1dad79(0x13d1)]),_0x247174[_0x1dad79(0x24e1)]=angular[_0x1dad79(0x289e)](_0x247174[_0x1dad79(0x1f4f)]),_0x3e2a09[_0x1dad79(0x1339)]({'title':_0x1dad79(0x24d6),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x25e2e4(0x20cd)](function(_0x4d6a24){const _0x3e5d34=_0x25e2e4;_0x3e2a09[_0x3e5d34(0x1bd0)]({'title':_0x4d6a24[_0x3e5d34(0x10b3)]?_0x3e5d34(0x575)+_0x4d6a24[_0x3e5d34(0x10b3)]+_0x3e5d34(0x21db)+_0x4d6a24[_0x3e5d34(0x2115)]:_0x3e5d34(0x1226),'msg':_0x4d6a24[_0x3e5d34(0x10b3)]?JSON[_0x3e5d34(0x2317)](_0x4d6a24[_0x3e5d34(0x1c52)]):_0x4d6a24[_0x3e5d34(0x2915)]()});});}function _0x52ffa2(){const _0x235f64=_0x153127;_0x35d01d[_0x235f64(0x268e)]();}}const _0x4ecd5b=_0x2187cb;;_0xd58196[_0x49a1e3(0x1e73)]=['$mdDialog','$q','toasty',_0x49a1e3(0xa19),'chatQueue',_0x49a1e3(0x298c),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0xd58196(_0x318db9,_0x4520a2,_0x263bb6,_0x228d17,_0x5ee86e,_0xa994de,_0x32365d,_0x3244b8){const _0xda3c0d=_0x49a1e3,_0x3f6396=this;_0x3f6396[_0xda3c0d(0x1d3d)]=_0x32365d['getCurrentUser'](),_0x3f6396[_0xda3c0d(0x10b0)]=_0x5ee86e,_0x3f6396[_0xda3c0d(0x402)]=_0x3244b8,_0x3f6396[_0xda3c0d(0x23cb)]=[],_0x3f6396[_0xda3c0d(0x13d1)]=[],_0x3f6396[_0xda3c0d(0x1f4f)]=[],_0x3f6396[_0xda3c0d(0x206b)]=[],_0x3f6396['startingSelectedItems']=[],_0x3f6396[_0xda3c0d(0xe9e)]=![],_0x3f6396[_0xda3c0d(0x1eeb)]={'readOnly':!_0x3f6396['crudPermissions'][_0xda3c0d(0xd86)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0xda3c0d(0x2494),'line2':'','line3':'','labelAll':_0xa994de[_0xda3c0d(0x2292)](_0xda3c0d(0x1ef1)),'labelSelected':_0xa994de[_0xda3c0d(0x2292)](_0xda3c0d(0x2936)),'transferCallback':function(){const _0x99d908=_0xda3c0d,_0x2c4ab4=_0x28c606()[_0x99d908(0x1ad)](_0x3f6396[_0x99d908(0x24e1)],_0x3f6396['selectedItems'],'id');_0x3f6396['pendingChanges']=_0x28c606()[_0x99d908(0x940)](_0x2c4ab4)?![]:!![];}},_0x3f6396['onInit']=_0x9a9de0,_0x3f6396[_0xda3c0d(0x1c8c)]=_0x8cb713,_0x3f6396[_0xda3c0d(0x16cb)]=_0x10f197;function _0x9a9de0(){const _0x1104e9=_0xda3c0d;return _0x32365d['hasRole'](_0x1104e9(0x333))?_0x5ce12b()['catch'](function(_0x356f7e){const _0x581d67=_0x1104e9;_0x263bb6['error']({'title':_0x356f7e['status']?_0x581d67(0x575)+_0x356f7e[_0x581d67(0x10b3)]+_0x581d67(0x21db)+_0x356f7e[_0x581d67(0x2115)]:_0x581d67(0x1542),'msg':_0x356f7e['status']?JSON[_0x581d67(0x2317)](_0x356f7e['data']):_0x356f7e[_0x581d67(0x2915)]()});}):_0x4c966c()[_0x1104e9(0x64a)](function(_0x317340){const _0x531dbd=_0x1104e9;return _0x3f6396[_0x531dbd(0xa21)]=_0x317340,_0x5ce12b();})['catch'](function(_0x29b112){const _0x1ca91c=_0x1104e9;_0x263bb6[_0x1ca91c(0x1bd0)]({'title':_0x29b112[_0x1ca91c(0x10b3)]?'API:'+_0x29b112[_0x1ca91c(0x10b3)]+'\x20-\x20'+_0x29b112[_0x1ca91c(0x2115)]:_0x1ca91c(0x1542),'msg':_0x29b112[_0x1ca91c(0x10b3)]?JSON[_0x1ca91c(0x2317)](_0x29b112['data']):_0x29b112[_0x1ca91c(0x2915)]()});});}function _0x4c966c(){return _0x4520a2(function(_0x1c1395,_0x451315){const _0x42fc7c=a0_0x4127;_0x228d17[_0x42fc7c(0x16b2)]['get']({'userProfileId':_0x3f6396[_0x42fc7c(0x1d3d)][_0x42fc7c(0x21ac)],'name':_0x42fc7c(0x286d)})[_0x42fc7c(0x15e7)][_0x42fc7c(0x64a)](function(_0x3a1b40){const _0x77553c=_0x42fc7c,_0x41f294=_0x3a1b40&&_0x3a1b40[_0x77553c(0x28b8)]?_0x3a1b40[_0x77553c(0x28b8)][0x0]:null;_0x1c1395(_0x41f294);})[_0x42fc7c(0x20cd)](function(_0x25ea1e){_0x451315(_0x25ea1e);});});}function _0x5ce12b(){return _0x4520a2(function(_0x537757,_0x433616){const _0x2a59db=a0_0x4127;return _0x5d7d92()[_0x2a59db(0x64a)](function(_0x1487e1){const _0x564f29=_0x2a59db;return _0x3f6396[_0x564f29(0x23cb)]=_0x1487e1[_0x564f29(0x28b8)]?_0x1487e1[_0x564f29(0x28b8)]:[],_0x32365d[_0x564f29(0x4de)]('admin')?_0x1487e1:_0x3f6396['section']?_0x3f6396[_0x564f29(0xa21)][_0x564f29(0x11da)]?_0x1487e1:_0x5bd774():null;})[_0x2a59db(0x64a)](function(_0x39fe25){const _0x2fbae4=_0x2a59db,_0x31ba1e=_0x39fe25&&_0x39fe25['rows']?_0x39fe25[_0x2fbae4(0x28b8)]:[];return _0x3f6396['allowedItems']=_0x28c606()[_0x2fbae4(0x1de5)](_0x31ba1e,function(_0xfeb702){const _0x2652f9=_0x2fbae4;return _0x28c606()[_0x2652f9(0x27bc)](_0x3f6396['items'],{'id':_0x32365d[_0x2652f9(0x4de)](_0x2652f9(0x333))||_0x3f6396[_0x2652f9(0xa21)][_0x2652f9(0x11da)]?_0xfeb702['id']:_0xfeb702[_0x2652f9(0x145)]});}),_0x3f6396[_0x2fbae4(0x23cb)][_0x2fbae4(0x1397)](function(_0x569ff5){const _0x2b06e3=_0x2fbae4,_0x50c99d=_0x28c606()['find'](_0x3f6396[_0x2b06e3(0x13d1)],{'id':_0x569ff5['id']});_0x32365d[_0x2b06e3(0x4de)]('admin')?_0x569ff5['isValid']=!![]:_0x569ff5['isValid']=typeof _0x50c99d!=='undefined'?!![]:![];}),_0x35ed03();})[_0x2a59db(0x64a)](function(_0x1fe061){const _0x3c7147=_0x2a59db,_0x18f4be=_0x1fe061&&_0x1fe061['rows']?_0x1fe061[_0x3c7147(0x28b8)]:[];_0x3f6396[_0x3c7147(0x1f4f)]=_0x28c606()['map'](_0x18f4be,function(_0x2d8bbd){const _0x597bfa=_0x3c7147;return _0x28c606()[_0x597bfa(0x27bc)](_0x3f6396[_0x597bfa(0x23cb)],{'id':_0x2d8bbd['id']});}),_0x3f6396['startingSelectedItems']=angular[_0x3c7147(0x289e)](_0x3f6396[_0x3c7147(0x1f4f)]),_0x3f6396[_0x3c7147(0x1eeb)][_0x3c7147(0x1f4f)]=_0x3f6396['selectedItems'],_0x3f6396[_0x3c7147(0x1eeb)]['items']=_0x28c606()[_0x3c7147(0x23e5)](_0x3f6396[_0x3c7147(0x13d1)],_0x3f6396[_0x3c7147(0x1eeb)][_0x3c7147(0x1f4f)],'id'),_0x537757();})[_0x2a59db(0x20cd)](function(_0x44dc30){_0x433616(_0x44dc30);});});}function _0x5bd774(){return _0x4520a2(function(_0x325425,_0x53ddb5){const _0x4677b4=a0_0x4127;return _0x228d17['userProfileResource']['get']({'sectionId':_0x3f6396[_0x4677b4(0xa21)]['id'],'nolimit':!![]})[_0x4677b4(0x15e7)][_0x4677b4(0x64a)](function(_0xf144a9){_0x325425(_0xf144a9);})['catch'](function(_0x4fc260){_0x53ddb5(_0x4fc260);});});}function _0x35ed03(){return _0x4520a2(function(_0x2389c8,_0x18995b){const _0x54d7fb=a0_0x4127;return _0x228d17[_0x54d7fb(0x10b0)]['getTeams']({'id':_0x3f6396['chatQueue']['id'],'fields':'id,name','nolimit':!![]})[_0x54d7fb(0x15e7)][_0x54d7fb(0x64a)](function(_0x359420){_0x2389c8(_0x359420);})[_0x54d7fb(0x20cd)](function(_0x47b307){_0x18995b(_0x47b307);});});}function _0x5d7d92(){return _0x4520a2(function(_0x534ded,_0x4f429b){const _0x241e52=a0_0x4127;return _0x228d17[_0x241e52(0x15ea)]['get']({'fields':_0x241e52(0x1427),'nolimit':!![]})[_0x241e52(0x15e7)]['then'](function(_0x30c69f){_0x534ded(_0x30c69f);})[_0x241e52(0x20cd)](function(_0x92051){_0x4f429b(_0x92051);});});}function _0x5dcf9c(_0x461ff9){return _0x4520a2(function(_0x12935,_0x4947ad){const _0x1c2a01=a0_0x4127;_0x28c606()[_0x1c2a01(0x940)](_0x461ff9)?_0x12935():_0x228d17[_0x1c2a01(0x10b0)][_0x1c2a01(0x1858)]({'id':_0x3f6396['chatQueue']['id'],'ids':_0x28c606()['map'](_0x461ff9,'id')})[_0x1c2a01(0x15e7)][_0x1c2a01(0x64a)](function(){_0x12935();})['catch'](function(_0x352a58){_0x4947ad(_0x352a58);});});}function _0x539904(_0x5b6fac){return _0x4520a2(function(_0x53d90b,_0x3dab7a){const _0x3b1c8e=a0_0x4127;_0x28c606()[_0x3b1c8e(0x940)](_0x5b6fac)?_0x53d90b():_0x228d17['chatQueue']['removeTeams']({'id':_0x3f6396[_0x3b1c8e(0x10b0)]['id'],'ids':_0x28c606()[_0x3b1c8e(0x1de5)](_0x5b6fac,'id')})['$promise']['then'](function(){_0x53d90b();})[_0x3b1c8e(0x20cd)](function(_0x4d1ed5){_0x3dab7a(_0x4d1ed5);});});}function _0x8cb713(){const _0x205580=_0xda3c0d,_0x165df2=_0x28c606()[_0x205580(0x23e5)](_0x3f6396[_0x205580(0x24e1)],_0x3f6396[_0x205580(0x1f4f)],'id'),_0x2d8d6f=_0x28c606()[_0x205580(0x23e5)](_0x3f6396['selectedItems'],_0x3f6396[_0x205580(0x24e1)],'id');return _0x539904(_0x165df2)[_0x205580(0x64a)](function(){return _0x5dcf9c(_0x2d8d6f);})[_0x205580(0x64a)](function(){const _0x1dbdfb=_0x205580;_0x3f6396['pendingChanges']=![],_0x3f6396[_0x1dbdfb(0x206b)]=angular[_0x1dbdfb(0x289e)](_0x3f6396[_0x1dbdfb(0x13d1)]),_0x3f6396['startingSelectedItems']=angular[_0x1dbdfb(0x289e)](_0x3f6396[_0x1dbdfb(0x1f4f)]),_0x263bb6[_0x1dbdfb(0x1339)]({'title':_0x1dbdfb(0x24d6),'msg':_0x1dbdfb(0x1932)});})[_0x205580(0x20cd)](function(_0x1c2cf5){const _0x36018a=_0x205580;_0x263bb6[_0x36018a(0x1bd0)]({'title':_0x1c2cf5['status']?_0x36018a(0x575)+_0x1c2cf5[_0x36018a(0x10b3)]+_0x36018a(0x21db)+_0x1c2cf5['statusText']:'SYSTEM:LISTS_ASSOCIATION','msg':_0x1c2cf5[_0x36018a(0x10b3)]?JSON[_0x36018a(0x2317)](_0x1c2cf5[_0x36018a(0x1c52)]):_0x1c2cf5[_0x36018a(0x2915)]()});});}function _0x10f197(){const _0x412a2f=_0xda3c0d;_0x318db9[_0x412a2f(0x268e)]();}}const _0x4bfe97=_0xd58196;;_0x1e647a['$inject']=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog','$document',_0x49a1e3(0x298c),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),'Auth','chatQueue',_0x49a1e3(0x16b2)];function _0x1e647a(_0x412a93,_0x53b83a,_0x3186a5,_0x29f08b,_0x446e3b,_0x1cca17,_0x666c8d,_0x116f22,_0x190c79,_0xbe2015,_0xa09dd5,_0x4bdb96){const _0x2b453d=_0x49a1e3,_0x136403=this;_0x136403[_0x2b453d(0x1d3d)]=_0xbe2015[_0x2b453d(0x808)](),_0x136403[_0x2b453d(0x1947)]=_0x1cca17,_0x136403[_0x2b453d(0x28d6)]=_0x666c8d,_0x136403[_0x2b453d(0xccc)]=_0x136403['setting'][_0x2b453d(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x136403[_0x2b453d(0xb36)]=_0x53b83a[_0x2b453d(0x48e)]()+_0x2b453d(0xe1f)+_0x53b83a['host'](),_0x136403[_0x2b453d(0x10b0)]=_0xa09dd5||_0x412a93[_0x2b453d(0x1b48)][_0x2b453d(0x10b0)]||{},_0x136403['userProfileSection']=_0x4bdb96&&_0x4bdb96[_0x2b453d(0xb90)]==0x1?_0x4bdb96[_0x2b453d(0x28b8)][0x0]:null,_0x136403[_0x2b453d(0x402)]=_0xbe2015[_0x2b453d(0xa7e)](_0x136403[_0x2b453d(0x16b2)]?_0x136403['userProfileSection'][_0x2b453d(0x402)]:null),_0x136403[_0x2b453d(0x6c2)]={},_0x136403['selectedTab']=_0x412a93['params'][_0x2b453d(0x1222)]||0x0,_0x136403[_0x2b453d(0x1a72)]=_0x3e169f,_0x136403['agentadddialog']=_0x44ed1f,_0x136403[_0x2b453d(0x2540)]=_0x190c79[_0x2b453d(0x772)],_0x136403[_0x2b453d(0x5fa)]=_0x5d5c52,_0x136403['saveChatQueue']=_0x53da5b;function _0x3e169f(_0x3621d1,_0x29eb71){const _0x1504fd=_0x2b453d;_0x3186a5[_0x1504fd(0xa60)]({'controller':_0x1504fd(0x167b),'controllerAs':'vm','templateUrl':_0x16411b,'parent':angular[_0x1504fd(0x1f81)](_0x29f08b[_0x1504fd(0xb49)]),'targetEvent':_0x29eb71,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x3621d1,'chatQueues':_0x136403[_0x1504fd(0x136f)]?_0x136403[_0x1504fd(0x136f)][_0x1504fd(0x28b8)]:[],'crudPermissions':_0x136403['crudPermissions']}});}function _0x44ed1f(_0x1901a1,_0x30ac77){const _0x3577df=_0x2b453d;_0x3186a5[_0x3577df(0xa60)]({'controller':_0x3577df(0xc30),'controllerAs':'vm','templateUrl':_0xe0abf5,'parent':angular[_0x3577df(0x1f81)](_0x29f08b[_0x3577df(0xb49)]),'targetEvent':_0x30ac77,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x1901a1,'chatQueues':_0x136403[_0x3577df(0x136f)]?_0x136403[_0x3577df(0x136f)]['rows']:[],'crudPermissions':_0x136403[_0x3577df(0x402)],'realtime':![]}});}function _0x5d5c52(){const _0x79f684=_0x2b453d;_0x412a93['go']('app.chat.chatQueues',{},{'reload':_0x79f684(0x393)});}function _0x53da5b(){const _0x359caf=_0x2b453d;_0x116f22[_0x359caf(0x10b0)]['update']({'id':_0x136403[_0x359caf(0x10b0)]['id']},_0x136403[_0x359caf(0x10b0)])[_0x359caf(0x15e7)]['then'](function(){const _0x4b64fd=_0x359caf;_0x190c79[_0x4b64fd(0x1339)]({'title':_0x4b64fd(0x231),'msg':_0x136403['chatQueue'][_0x4b64fd(0x2494)]?_0x136403[_0x4b64fd(0x10b0)][_0x4b64fd(0x2494)]+'\x20has\x20been\x20updated!':''});})[_0x359caf(0x20cd)](function(_0x5cded0){const _0x522779=_0x359caf;_0x190c79[_0x522779(0x1bd0)]({'title':_0x5cded0[_0x522779(0x10b3)]?_0x522779(0x575)+_0x5cded0[_0x522779(0x10b3)]+_0x522779(0x21db)+_0x5cded0[_0x522779(0x2115)]:_0x522779(0x1295),'msg':_0x5cded0[_0x522779(0x1c52)]?JSON[_0x522779(0x2317)](_0x5cded0[_0x522779(0x1c52)]):_0x5cded0['toString']()});});}}const _0x34f3dd=_0x1e647a;;const _0x53d35c=_0x2e4a48['p']+_0x49a1e3(0x2289);;const _0x4a3735=_0x2e4a48['p']+_0x49a1e3(0x18f5);;_0x53b6d6['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x111),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),'Auth',_0x49a1e3(0x1947),'setting'];function _0x53b6d6(_0x6b6f02,_0x4504a1,_0xc071d4,_0x3674f2,_0x20c2dc,_0x29cf88,_0x2d5a39,_0x3cd1ac,_0x162730,_0x1d93a7,_0x33287e,_0x2854f7,_0xf798cf,_0x37a85c,_0x1e76cc,_0x131f98,_0x172624){const _0x10f254=_0x49a1e3,_0x295c2d=this;_0x295c2d['license']=_0x131f98,_0x295c2d[_0x10f254(0x28d6)]=_0x172624,_0x295c2d[_0x10f254(0x1d3d)]=_0x1e76cc[_0x10f254(0x808)](),_0x295c2d['chatWebsites']=_0x162730||{'count':0x0,'rows':[]},_0x295c2d[_0x10f254(0x16a8)]=_0x1d93a7,_0x295c2d[_0x10f254(0x16b2)]=_0x33287e&&_0x33287e['count']==0x1?_0x33287e[_0x10f254(0x28b8)][0x0]:null,_0x295c2d['crudPermissions']=_0x1e76cc[_0x10f254(0xa7e)](_0x295c2d['userProfileSection']?_0x295c2d['userProfileSection']['crudPermissions']:null),_0x295c2d['table']=_0x10f254(0x111),_0x295c2d[_0x10f254(0x300)]='',_0x295c2d[_0x10f254(0x2748)]=null,_0x295c2d[_0x10f254(0x557)]=[],_0x295c2d[_0x10f254(0x289a)]={'fields':_0x10f254(0x3fd),'sort':_0x10f254(0x260c),'limit':0xa,'page':0x1},_0x295c2d[_0x10f254(0x2253)]=_0x28c606()['keyBy']([{'option':_0x10f254(0x1ba0),'value':_0x10f254(0xe63)},{'option':_0x10f254(0xf1a),'value':_0x10f254(0x2463)},{'option':'AgentFullname','value':_0x10f254(0x1952)}],function(_0x2fb995){const _0x2375ba=_0x10f254;return _0x28c606()[_0x2375ba(0x1353)](_0x2fb995[_0x2375ba(0x1096)],new RegExp('\x27','g'),'');}),_0x295c2d[_0x10f254(0x17b8)]=_0x28c606()['keyBy']([{'option':_0x10f254(0x24fd),'value':'\x27rounded\x27'},{'option':_0x10f254(0x1b15),'value':'\x27squared\x27'}],function(_0x57758c){const _0x1a8ecc=_0x10f254;return _0x28c606()[_0x1a8ecc(0x1353)](_0x57758c['value'],new RegExp('\x27','g'),'');}),_0x295c2d[_0x10f254(0x83c)]=_0x28c606()[_0x10f254(0x161e)]([{'option':_0x10f254(0x23fc),'value':_0x10f254(0x2005)},{'option':_0x10f254(0x15d7),'value':_0x10f254(0x10e0)},{'option':'left','value':_0x10f254(0x1d4a)}],function(_0x556e43){const _0x194a2c=_0x10f254;return _0x28c606()[_0x194a2c(0x1353)](_0x556e43['value'],new RegExp('\x27','g'),'');}),_0x295c2d[_0x10f254(0x2596)]=_0x28c606()[_0x10f254(0x161e)]([{'option':'alternate','value':_0x10f254(0x16c0)},{'option':_0x10f254(0xf20),'value':_0x10f254(0x26a5)}],function(_0x1778ca){const _0x36dcbf=_0x10f254;return _0x28c606()[_0x36dcbf(0x1353)](_0x1778ca[_0x36dcbf(0x1096)],new RegExp('\x27','g'),'');}),_0x295c2d[_0x10f254(0xf4f)]=_0x28c606()[_0x10f254(0x161e)]([{'option':_0x10f254(0x92c),'value':'\x27star\x27'},{'option':_0x10f254(0x14cd),'value':_0x10f254(0x1bfa)}],function(_0xae6d8a){const _0x4ba0de=_0x10f254;return _0x28c606()[_0x4ba0de(0x1353)](_0xae6d8a[_0x4ba0de(0x1096)],new RegExp('\x27','g'),'');}),_0x295c2d[_0x10f254(0xff6)]=_0x603930,_0x295c2d[_0x10f254(0x1531)]=_0x13e7ef,_0x295c2d[_0x10f254(0x168e)]=_0x52c265,_0x295c2d[_0x10f254(0x104a)]=_0x506b8a,_0x295c2d[_0x10f254(0x1262)]=_0x42bfb,_0x295c2d[_0x10f254(0x1339)]=_0x8b4d2d,_0x295c2d[_0x10f254(0x21a3)]=_0x3d9b5d,_0x295c2d[_0x10f254(0x1d6b)]=_0x24ec86,_0x295c2d[_0x10f254(0x60a)]=_0x908ea3,_0x295c2d[_0x10f254(0x2441)]=_0x45e197,_0x295c2d['deleteSelectedChatWebsites']=_0x37a273,_0x295c2d['deselectChatWebsites']=_0x37f64f,_0x295c2d[_0x10f254(0x19c9)]=_0x173625,_0x1e76cc['hasRole'](_0x10f254(0x333))?_0x2854f7[_0x10f254(0x19f8)]['get']({'fields':_0x10f254(0x1427),'sort':_0x10f254(0x2494)})['$promise'][_0x10f254(0x64a)](function(_0x348f0f){const _0x263bf5=_0x10f254;_0x295c2d[_0x263bf5(0x974)]=_0x348f0f[_0x263bf5(0x28b8)]||[];})['catch'](function(_0x3205e0){const _0x11c589=_0x10f254;_0x37a85c[_0x11c589(0x1bd0)]({'title':_0x3205e0[_0x11c589(0x10b3)]?_0x11c589(0x575)+_0x3205e0[_0x11c589(0x10b3)]+_0x11c589(0x21db)+_0x3205e0[_0x11c589(0x2115)]:_0x11c589(0x1ed6),'msg':_0x3205e0['data']?JSON[_0x11c589(0x2317)](_0x3205e0['data']):_0x3205e0[_0x11c589(0x2915)]()});}):_0x2854f7[_0x10f254(0x19f8)][_0x10f254(0x896)]({'fields':_0x10f254(0x1427),'sort':_0x10f254(0x2494)})[_0x10f254(0x15e7)][_0x10f254(0x64a)](function(_0x3c7447){const _0x268e62=_0x10f254;_0x295c2d[_0x268e62(0x974)]=_0x3c7447[_0x268e62(0x28b8)]||[];})['then'](function(){const _0x2a5be0=_0x10f254;return _0x2854f7['userProfileSection'][_0x2a5be0(0x896)]({'userProfileId':_0x295c2d[_0x2a5be0(0x1d3d)]['userProfileId'],'sectionId':0x12d})['$promise'];})[_0x10f254(0x64a)](function(_0x2dbfcb){const _0x104e6f=_0x10f254,_0x6f08c2=_0x2dbfcb&&_0x2dbfcb['rows']?_0x2dbfcb[_0x104e6f(0x28b8)][0x0]:null;if(!_0x6f08c2){const _0x58b7b3=[];let _0x565095=null;_0x295c2d[_0x104e6f(0x26c3)]&&(_0x565095=_0x28c606()[_0x104e6f(0x27bc)](_0x295c2d[_0x104e6f(0x974)],{'id':Number(_0x295c2d[_0x104e6f(0x26c3)][_0x104e6f(0x869)])}));for(let _0xe3e8c=0x0;_0xe3e8c<_0x295c2d['lists'][_0x104e6f(0x1b9e)];_0xe3e8c++){_0x565095&&_0x295c2d[_0x104e6f(0x974)][_0xe3e8c]['id']===_0x565095['id']&&(_0x295c2d[_0x104e6f(0x974)][_0xe3e8c][_0x104e6f(0xd4f)]=![],_0x58b7b3['push'](_0x295c2d[_0x104e6f(0x974)][_0xe3e8c]));}_0x295c2d[_0x104e6f(0x974)]=_0x58b7b3;}else{if(!_0x6f08c2[_0x104e6f(0x11da)])return _0x2854f7[_0x104e6f(0x1617)][_0x104e6f(0x896)]({'sectionId':_0x6f08c2['id']})[_0x104e6f(0x15e7)][_0x104e6f(0x64a)](function(_0x917e63){const _0x137725=_0x104e6f,_0x2ca263=_0x28c606()[_0x137725(0x1de5)](_0x917e63[_0x137725(0x28b8)],function(_0x2d4431){const _0x3ea175=_0x137725;return _0x28c606()[_0x3ea175(0x27bc)](_0x295c2d[_0x3ea175(0x974)],{'id':_0x2d4431[_0x3ea175(0x145)]});});let _0x2802da=null;_0x295c2d[_0x137725(0x26c3)]&&(_0x2802da=_0x28c606()['find'](_0x295c2d[_0x137725(0x974)],{'id':Number(_0x295c2d['chatWebsite']['ListId'])}));if(_0x2802da&&!_0x28c606()[_0x137725(0x25f8)](_0x2ca263,['id',_0x2802da['id']])){const _0x528b26=_0x28c606()[_0x137725(0x27bc)](_0x295c2d['lists'],{'id':_0x2802da['id']});_0x528b26[_0x137725(0xd4f)]=![],_0x2ca263['push'](_0x528b26);}_0x295c2d[_0x137725(0x974)]=_0x2ca263;});}})[_0x10f254(0x20cd)](function(_0x53775f){const _0x491100=_0x10f254;_0x37a85c['error']({'title':_0x53775f[_0x491100(0x10b3)]?_0x491100(0x575)+_0x53775f[_0x491100(0x10b3)]+_0x491100(0x21db)+_0x53775f[_0x491100(0x2115)]:_0x491100(0x1beb),'msg':_0x53775f['data']?JSON[_0x491100(0x2317)](_0x53775f['data']):_0x53775f[_0x491100(0x2915)]()});}),_0x1e76cc[_0x10f254(0x4de)](_0x10f254(0x333))?_0x2854f7['interval'][_0x10f254(0x896)]({'fields':_0x10f254(0x1427),'sort':_0x10f254(0x2494),'IntervalId':_0x10f254(0x8f1)})[_0x10f254(0x15e7)][_0x10f254(0x64a)](function(_0x4efb4e){const _0x3a6f5a=_0x10f254;_0x295c2d[_0x3a6f5a(0xcfd)]=_0x4efb4e['rows']||[];})[_0x10f254(0x20cd)](function(_0x849474){const _0x3d62eb=_0x10f254;_0x37a85c['error']({'title':_0x849474['status']?_0x3d62eb(0x575)+_0x849474[_0x3d62eb(0x10b3)]+_0x3d62eb(0x21db)+_0x849474[_0x3d62eb(0x2115)]:_0x3d62eb(0x2780),'msg':_0x849474[_0x3d62eb(0x1c52)]?JSON[_0x3d62eb(0x2317)](_0x849474['data']):_0x849474[_0x3d62eb(0x2915)]()});}):_0x2854f7[_0x10f254(0xcfd)]['get']({'fields':_0x10f254(0x1427),'sort':_0x10f254(0x2494),'IntervalId':_0x10f254(0x8f1)})[_0x10f254(0x15e7)][_0x10f254(0x64a)](function(_0x2653cc){const _0x3e6b0b=_0x10f254;_0x295c2d['interval']=_0x2653cc[_0x3e6b0b(0x28b8)]||[];})[_0x10f254(0x64a)](function(){const _0x52b404=_0x10f254;return _0x2854f7[_0x52b404(0x16b2)][_0x52b404(0x896)]({'userProfileId':_0x295c2d[_0x52b404(0x1d3d)][_0x52b404(0x21ac)],'sectionId':0x3ec})[_0x52b404(0x15e7)];})[_0x10f254(0x64a)](function(_0x2b5408){const _0xba8bfd=_0x10f254,_0x3a9965=_0x2b5408&&_0x2b5408['rows']?_0x2b5408[_0xba8bfd(0x28b8)][0x0]:null;if(!_0x3a9965){const _0x41f796=[];let _0x592efe=null;_0x295c2d[_0xba8bfd(0x26c3)]&&(_0x592efe=_0x28c606()[_0xba8bfd(0x27bc)](_0x295c2d[_0xba8bfd(0xcfd)],{'id':Number(_0x295c2d[_0xba8bfd(0x26c3)][_0xba8bfd(0xb71)])}));for(let _0x11199a=0x0;_0x11199a<_0x295c2d[_0xba8bfd(0xcfd)][_0xba8bfd(0x1b9e)];_0x11199a++){_0x592efe&&_0x295c2d[_0xba8bfd(0xcfd)][_0x11199a]['id']===_0x592efe['id']&&(_0x295c2d['interval'][_0x11199a][_0xba8bfd(0xd4f)]=![],_0x41f796[_0xba8bfd(0x1954)](_0x295c2d[_0xba8bfd(0xcfd)][_0x11199a]));}_0x295c2d[_0xba8bfd(0xcfd)]=_0x41f796;}else{if(!_0x3a9965[_0xba8bfd(0x11da)])return _0x2854f7[_0xba8bfd(0x1617)]['get']({'sectionId':_0x3a9965['id']})[_0xba8bfd(0x15e7)][_0xba8bfd(0x64a)](function(_0x31a373){const _0x16ca8d=_0xba8bfd,_0x65b295=_0x28c606()[_0x16ca8d(0x1de5)](_0x31a373[_0x16ca8d(0x28b8)],function(_0x4e4640){const _0x38f6df=_0x16ca8d;return _0x28c606()[_0x38f6df(0x27bc)](_0x295c2d[_0x38f6df(0xcfd)],{'id':_0x4e4640[_0x38f6df(0x145)]});});let _0x37d262=null;_0x295c2d['chatWebsite']&&(_0x37d262=_0x28c606()[_0x16ca8d(0x27bc)](_0x295c2d[_0x16ca8d(0xcfd)],{'id':Number(_0x295c2d[_0x16ca8d(0x26c3)]['IntervalId'])}));if(_0x37d262&&!_0x28c606()['some'](_0x65b295,['id',_0x37d262['id']])){const _0x355581=_0x28c606()[_0x16ca8d(0x27bc)](_0x295c2d['interval'],{'id':_0x37d262['id']});_0x355581[_0x16ca8d(0xd4f)]=![],_0x65b295['push'](_0x355581);}_0x295c2d['interval']=_0x65b295;});}})['catch'](function(_0x1f8ea1){const _0x5eab3b=_0x10f254;_0x37a85c[_0x5eab3b(0x1bd0)]({'title':_0x1f8ea1[_0x5eab3b(0x10b3)]?_0x5eab3b(0x575)+_0x1f8ea1[_0x5eab3b(0x10b3)]+_0x5eab3b(0x21db)+_0x1f8ea1['statusText']:_0x5eab3b(0x314),'msg':_0x1f8ea1['data']?JSON[_0x5eab3b(0x2317)](_0x1f8ea1['data']):_0x1f8ea1['toString']()});});function _0x603930(_0x166731){const _0x1f3fe2=_0x10f254;_0xc071d4['go'](_0x1f3fe2(0x1763),{'id':_0x166731['id'],'chatWebsite':_0x166731,'crudPermissions':_0x295c2d['crudPermissions']});}function _0x13e7ef(_0x6b9cc3){const _0x2c2071=_0x10f254;_0xc071d4['go'](_0x2c2071(0x1763),{'id':_0x6b9cc3['id'],'tab':0xa});}function _0x52c265(_0x14abe9){const _0x53297a=_0x10f254;_0xc071d4['go'](_0x53297a(0x1763),{'id':_0x14abe9['id'],'tab':0xb});}function _0x506b8a(_0x4153d1,_0x35b9cd){const _0x252499=_0x10f254;_0x20c2dc[_0x252499(0xa60)]({'controller':_0x252499(0x28fc),'controllerAs':'vm','templateUrl':_0x53d35c,'parent':angular[_0x252499(0x1f81)](_0x29cf88[_0x252499(0xb49)]),'targetEvent':_0x35b9cd,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x4153d1,'chatWebsites':_0x295c2d['chatWebsites']?_0x295c2d[_0x252499(0x111)][_0x252499(0x28b8)]:[],'crudPermissions':_0x295c2d['crudPermissions'],'realtime':![]}});}function _0x42bfb(_0x2a39ab,_0x504e4d){const _0x72a798=_0x10f254,_0x13e4a5=_0x20c2dc[_0x72a798(0x856)]()[_0x72a798(0x2021)](_0x72a798(0x1231)+_0x28c606()[_0x72a798(0xc01)]('chatWebsite')+'?')[_0x72a798(0x33a)](_0x72a798(0x50b)+(_0x2a39ab[_0x72a798(0x2494)]||'chatWebsite')+_0x72a798(0x26d0)+'\x20will\x20be\x20deleted.')[_0x72a798(0x213e)](_0x72a798(0x1993))[_0x72a798(0x2283)](_0x504e4d)['ok']('OK')[_0x72a798(0x101a)](_0x72a798(0x18fd));_0x20c2dc[_0x72a798(0xa60)](_0x13e4a5)['then'](function(){_0x908ea3(_0x2a39ab);},function(){console['log']('CANCEL');});}let _0x12de42=!![],_0x3da47c=0x1;_0x6b6f02['$watch'](_0x10f254(0x1cb9),function(_0x47b277,_0x191c68){const _0x1b7c35=_0x10f254;_0x12de42?_0x2d5a39(function(){_0x12de42=![];}):(!_0x191c68&&(_0x3da47c=_0x295c2d[_0x1b7c35(0x289a)][_0x1b7c35(0xc72)]),_0x47b277!==_0x191c68&&(_0x295c2d[_0x1b7c35(0x289a)][_0x1b7c35(0xc72)]=0x1),!_0x47b277&&(_0x295c2d[_0x1b7c35(0x289a)]['page']=_0x3da47c),_0x295c2d[_0x1b7c35(0x21a3)]());});function _0x8b4d2d(_0x2a028e){_0x295c2d['chatWebsites']=_0x2a028e||{'count':0x0,'rows':[]};}function _0x3d9b5d(){const _0x365f82=_0x10f254;_0x295c2d['query'][_0x365f82(0x24f9)]=(_0x295c2d[_0x365f82(0x289a)][_0x365f82(0xc72)]-0x1)*_0x295c2d[_0x365f82(0x289a)][_0x365f82(0x25bb)],_0x1e76cc[_0x365f82(0x4de)](_0x365f82(0x333))?_0x295c2d[_0x365f82(0x1713)]=_0x2854f7['chatWebsite'][_0x365f82(0x896)](_0x295c2d[_0x365f82(0x289a)],_0x8b4d2d)[_0x365f82(0x15e7)]:(_0x295c2d['query']['id']=_0x295c2d[_0x365f82(0x16a8)]['id'],_0x295c2d[_0x365f82(0x289a)][_0x365f82(0xa21)]='ChatWebsites',_0x295c2d[_0x365f82(0x1713)]=_0x2854f7[_0x365f82(0x16a8)][_0x365f82(0x2565)](_0x295c2d[_0x365f82(0x289a)],_0x8b4d2d)[_0x365f82(0x15e7)]);}function _0x24ec86(_0x2839e5,_0x9c8a14){const _0x5e85ae=_0x10f254;_0x20c2dc[_0x5e85ae(0xa60)]({'controller':_0x5e85ae(0x1b4),'controllerAs':'vm','templateUrl':_0x4a3735,'parent':angular[_0x5e85ae(0x1f81)](_0x29cf88[_0x5e85ae(0xb49)]),'targetEvent':_0x2839e5,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x9c8a14,'chatWebsites':_0x295c2d[_0x5e85ae(0x111)]['rows'],'license':_0x295c2d['license'],'setting':_0x295c2d[_0x5e85ae(0x28d6)],'crudPermissions':_0x295c2d[_0x5e85ae(0x402)]}});}function _0x908ea3(_0x4d9b1b){const _0x58d834=_0x10f254;_0x2854f7[_0x58d834(0x26c3)][_0x58d834(0xabd)]({'id':_0x4d9b1b['id']})['$promise']['then'](function(){const _0x3d61be=_0x58d834;_0x28c606()[_0x3d61be(0x21c7)](_0x295c2d[_0x3d61be(0x111)][_0x3d61be(0x28b8)],{'id':_0x4d9b1b['id']}),_0x295c2d['chatWebsites'][_0x3d61be(0xb90)]-=0x1,!_0x295c2d[_0x3d61be(0x111)][_0x3d61be(0x28b8)][_0x3d61be(0x1b9e)]&&_0x295c2d[_0x3d61be(0x21a3)](),_0x37a85c[_0x3d61be(0x1339)]({'title':_0x28c606()[_0x3d61be(0xc01)](_0x3d61be(0x1706))+_0x3d61be(0x2502),'msg':_0x4d9b1b['name']?_0x4d9b1b[_0x3d61be(0x2494)]+_0x3d61be(0x1fa8):''});})[_0x58d834(0x20cd)](function(_0x3d80e6){const _0xd043ae=_0x58d834;if(_0x3d80e6[_0xd043ae(0x1c52)]&&_0x3d80e6[_0xd043ae(0x1c52)][_0xd043ae(0xbae)]&&_0x3d80e6[_0xd043ae(0x1c52)][_0xd043ae(0xbae)]['length']){_0x295c2d[_0xd043ae(0xbae)]=_0x3d80e6[_0xd043ae(0x1c52)][_0xd043ae(0xbae)]||[{'message':_0x3d80e6[_0xd043ae(0x2915)](),'type':_0xd043ae(0x219c)}];for(let _0x4135fa=0x0;_0x4135fa<_0x3d80e6[_0xd043ae(0x1c52)][_0xd043ae(0xbae)]['length'];_0x4135fa++){_0x37a85c['error']({'title':_0x3d80e6['data'][_0xd043ae(0xbae)][_0x4135fa][_0xd043ae(0x2185)],'msg':_0x3d80e6[_0xd043ae(0x1c52)]['errors'][_0x4135fa][_0xd043ae(0x18ca)]});}}else _0x37a85c[_0xd043ae(0x1bd0)]({'title':_0x3d80e6[_0xd043ae(0x10b3)]?_0xd043ae(0x575)+_0x3d80e6[_0xd043ae(0x10b3)]+'\x20-\x20'+_0x3d80e6['statusText']:_0xd043ae(0x219c),'msg':_0x3d80e6[_0xd043ae(0x1c52)]?JSON['stringify'](_0x3d80e6[_0xd043ae(0x1c52)][_0xd043ae(0x18ca)]):_0x3d80e6[_0xd043ae(0x18ca)]||_0x3d80e6[_0xd043ae(0x2915)]()});});}function _0x45e197(){const _0x449f2d=_0x10f254,_0x4d48bd=angular[_0x449f2d(0x289e)](_0x295c2d[_0x449f2d(0x557)]);return _0x295c2d[_0x449f2d(0x557)]=[],_0x4d48bd;}function _0x37a273(_0x325f4b){const _0x4c0c6c=_0x10f254,_0x105619=_0x20c2dc[_0x4c0c6c(0x856)]()[_0x4c0c6c(0x2021)](_0x4c0c6c(0x7b6))['htmlContent'](''+_0x295c2d[_0x4c0c6c(0x557)][_0x4c0c6c(0x1b9e)]+_0x4c0c6c(0x163e)+'\x20will\x20be\x20deleted.')[_0x4c0c6c(0x213e)]('delete\x20ChatWebsites')[_0x4c0c6c(0x2283)](_0x325f4b)['ok']('OK')[_0x4c0c6c(0x101a)](_0x4c0c6c(0x18fd));_0x20c2dc[_0x4c0c6c(0xa60)](_0x105619)['then'](function(){const _0x797782=_0x4c0c6c;_0x295c2d[_0x797782(0x557)][_0x797782(0x1397)](function(_0x532465){_0x908ea3(_0x532465);}),_0x295c2d[_0x797782(0x557)]=[];});}function _0x37f64f(){_0x295c2d['selectedChatWebsites']=[];}function _0x173625(){const _0x491cc7=_0x10f254;_0x295c2d[_0x491cc7(0x557)]=_0x295c2d['chatWebsites'][_0x491cc7(0x28b8)];}}const _0x22d4d9=_0x53b6d6;;_0x21316e[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),'toasty','chatWebsites',_0x49a1e3(0x26c3),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x21316e(_0x47f171,_0x30b815,_0x37d892,_0x541133,_0x240679,_0x37f050,_0x5ff690,_0x1755d5,_0x227f6f,_0x351c06,_0x8606ac,_0x5bfa44,_0x53dd87,_0x477db4){const _0x267813=_0x49a1e3,_0x171e0c=this;_0x171e0c[_0x267813(0x1d3d)]=_0x8606ac[_0x267813(0x808)](),_0x171e0c[_0x267813(0xbae)]=[],_0x171e0c[_0x267813(0x28d6)]=_0x53dd87,_0x171e0c['license']=_0x5bfa44,_0x171e0c[_0x267813(0x402)]=_0x477db4,_0x171e0c['hasModulePermissions']={},_0x171e0c[_0x267813(0xccc)]=_0x171e0c[_0x267813(0x28d6)]&&_0x171e0c[_0x267813(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x171e0c[_0x267813(0x2021)]=_0x267813(0x193b),_0x171e0c[_0x267813(0x26c3)]=angular['copy'](_0x227f6f),_0x171e0c[_0x267813(0x111)]=_0x1755d5,_0x171e0c[_0x267813(0x1e53)]=![];!_0x171e0c['chatWebsite']&&(_0x171e0c[_0x267813(0x26c3)]={'remote':_0x37d892[_0x267813(0x48e)]()+_0x267813(0xe1f)+_0x37d892[_0x267813(0x1e5d)]()+(_0x37d892[_0x267813(0x23f2)]()?':'+_0x37d892['port']():''),'header_shape':_0x267813(0x9d2),'alignment':_0x267813(0x23fc),'verticalAlignment':0x1e,'messagesAlignment':_0x267813(0x28e),'IntervalId':_0x267813(0x8f1),'timezone':'null','waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x171e0c[_0x267813(0x2021)]=_0x267813(0x17f7),_0x171e0c[_0x267813(0x1e53)]=!![]);_0x30b815['params']['id']&&(_0x171e0c[_0x267813(0x26c3)][_0x267813(0xd93)]=_0x30b815['params']['id']);_0x171e0c[_0x267813(0x18d9)]=_0x4bdbc7,_0x171e0c[_0x267813(0x17e1)]=_0x33ed7e,_0x171e0c[_0x267813(0x60a)]=_0x366388,_0x171e0c[_0x267813(0x1605)]=_0x327d47,_0x171e0c[_0x267813(0x16cb)]=_0x33258a,_0x8606ac['hasRole'](_0x267813(0x333))?_0x351c06[_0x267813(0x19f8)][_0x267813(0x896)]({'fields':_0x267813(0x1427),'sort':_0x267813(0x2494)})[_0x267813(0x15e7)][_0x267813(0x64a)](function(_0x8e887){const _0x1df546=_0x267813;_0x171e0c[_0x1df546(0x974)]=_0x8e887[_0x1df546(0x28b8)]||[];})[_0x267813(0x20cd)](function(_0x204642){const _0x491bdd=_0x267813;_0x5ff690[_0x491bdd(0x1bd0)]({'title':_0x204642[_0x491bdd(0x10b3)]?'API:'+_0x204642[_0x491bdd(0x10b3)]+_0x491bdd(0x21db)+_0x204642[_0x491bdd(0x2115)]:'SYSTEM:GET_LISTS','msg':_0x204642[_0x491bdd(0x1c52)]?JSON['stringify'](_0x204642[_0x491bdd(0x1c52)]):_0x204642[_0x491bdd(0x2915)]()});}):_0x351c06['cmList'][_0x267813(0x896)]({'fields':_0x267813(0x1427),'sort':_0x267813(0x2494)})[_0x267813(0x15e7)][_0x267813(0x64a)](function(_0x15e33a){const _0x504e73=_0x267813;_0x171e0c[_0x504e73(0x974)]=_0x15e33a[_0x504e73(0x28b8)]||[];})[_0x267813(0x64a)](function(){const _0x57283d=_0x267813;return _0x351c06['userProfileSection'][_0x57283d(0x896)]({'userProfileId':_0x171e0c[_0x57283d(0x1d3d)][_0x57283d(0x21ac)],'sectionId':0x12d})[_0x57283d(0x15e7)];})[_0x267813(0x64a)](function(_0x55c6c5){const _0x5328b5=_0x267813,_0x1cdfa4=_0x55c6c5&&_0x55c6c5[_0x5328b5(0x28b8)]?_0x55c6c5[_0x5328b5(0x28b8)][0x0]:null;if(!_0x1cdfa4){const _0x294874=[];let _0x594484=null;_0x171e0c['chatWebsite']&&(_0x594484=_0x28c606()[_0x5328b5(0x27bc)](_0x171e0c[_0x5328b5(0x974)],{'id':Number(_0x171e0c[_0x5328b5(0x26c3)]['ListId'])}));for(let _0x5099a0=0x0;_0x5099a0<_0x171e0c['lists']['length'];_0x5099a0++){_0x594484&&_0x171e0c[_0x5328b5(0x974)][_0x5099a0]['id']===_0x594484['id']&&(_0x171e0c[_0x5328b5(0x974)][_0x5099a0]['canSelect']=![],_0x294874['push'](_0x171e0c[_0x5328b5(0x974)][_0x5099a0]));}_0x171e0c[_0x5328b5(0x974)]=_0x294874;}else{if(!_0x1cdfa4[_0x5328b5(0x11da)])return _0x351c06[_0x5328b5(0x1617)][_0x5328b5(0x896)]({'sectionId':_0x1cdfa4['id']})['$promise'][_0x5328b5(0x64a)](function(_0x1b9418){const _0x559c0a=_0x5328b5,_0x3b00b7=_0x28c606()['map'](_0x1b9418[_0x559c0a(0x28b8)],function(_0x4d1e5c){const _0x1a5220=_0x559c0a;return _0x28c606()[_0x1a5220(0x27bc)](_0x171e0c[_0x1a5220(0x974)],{'id':_0x4d1e5c[_0x1a5220(0x145)]});});let _0x1f6e15=null;_0x171e0c['chatWebsite']&&(_0x1f6e15=_0x28c606()[_0x559c0a(0x27bc)](_0x171e0c[_0x559c0a(0x974)],{'id':Number(_0x171e0c[_0x559c0a(0x26c3)]['ListId'])}));if(_0x1f6e15&&!_0x28c606()[_0x559c0a(0x25f8)](_0x3b00b7,['id',_0x1f6e15['id']])){const _0x507c0a=_0x28c606()[_0x559c0a(0x27bc)](_0x171e0c['lists'],{'id':_0x1f6e15['id']});_0x507c0a[_0x559c0a(0xd4f)]=![],_0x3b00b7[_0x559c0a(0x1954)](_0x507c0a);}_0x171e0c['lists']=_0x3b00b7;});}})[_0x267813(0x20cd)](function(_0x2d9c50){const _0x205f6e=_0x267813;_0x5ff690[_0x205f6e(0x1bd0)]({'title':_0x2d9c50[_0x205f6e(0x10b3)]?_0x205f6e(0x575)+_0x2d9c50[_0x205f6e(0x10b3)]+_0x205f6e(0x21db)+_0x2d9c50['statusText']:_0x205f6e(0x1beb),'msg':_0x2d9c50[_0x205f6e(0x1c52)]?JSON[_0x205f6e(0x2317)](_0x2d9c50[_0x205f6e(0x1c52)]):_0x2d9c50[_0x205f6e(0x2915)]()});}),_0x8606ac[_0x267813(0x4de)]('admin')?_0x351c06[_0x267813(0xcfd)]['get']({'fields':_0x267813(0x1427),'sort':_0x267813(0x2494),'IntervalId':_0x267813(0x8f1)})[_0x267813(0x15e7)][_0x267813(0x64a)](function(_0x989307){const _0xd89f43=_0x267813;_0x171e0c[_0xd89f43(0xcfd)]=_0x989307[_0xd89f43(0x28b8)]||[];})[_0x267813(0x20cd)](function(_0x2044f5){const _0x5e4064=_0x267813;_0x5ff690['error']({'title':_0x2044f5['status']?_0x5e4064(0x575)+_0x2044f5[_0x5e4064(0x10b3)]+_0x5e4064(0x21db)+_0x2044f5['statusText']:_0x5e4064(0x2780),'msg':_0x2044f5[_0x5e4064(0x1c52)]?JSON[_0x5e4064(0x2317)](_0x2044f5[_0x5e4064(0x1c52)]):_0x2044f5[_0x5e4064(0x2915)]()});}):_0x351c06[_0x267813(0xcfd)]['get']({'fields':_0x267813(0x1427),'sort':'name','IntervalId':_0x267813(0x8f1)})['$promise'][_0x267813(0x64a)](function(_0x42ef1e){const _0x35aeb3=_0x267813;_0x171e0c['interval']=_0x42ef1e[_0x35aeb3(0x28b8)]||[];})[_0x267813(0x64a)](function(){const _0x31fec9=_0x267813;return _0x351c06['userProfileSection'][_0x31fec9(0x896)]({'userProfileId':_0x171e0c[_0x31fec9(0x1d3d)][_0x31fec9(0x21ac)],'sectionId':0x3ec})[_0x31fec9(0x15e7)];})[_0x267813(0x64a)](function(_0x140b49){const _0x459c92=_0x267813,_0x50d21a=_0x140b49&&_0x140b49[_0x459c92(0x28b8)]?_0x140b49[_0x459c92(0x28b8)][0x0]:null;if(!_0x50d21a){const _0x331395=[];let _0x306b69=null;_0x171e0c[_0x459c92(0x26c3)]&&(_0x306b69=_0x28c606()[_0x459c92(0x27bc)](_0x171e0c[_0x459c92(0xcfd)],{'id':Number(_0x171e0c[_0x459c92(0x26c3)]['IntervalId'])}));for(let _0x3abfd7=0x0;_0x3abfd7<_0x171e0c['interval'][_0x459c92(0x1b9e)];_0x3abfd7++){_0x306b69&&_0x171e0c[_0x459c92(0xcfd)][_0x3abfd7]['id']===_0x306b69['id']&&(_0x171e0c[_0x459c92(0xcfd)][_0x3abfd7][_0x459c92(0xd4f)]=![],_0x331395['push'](_0x171e0c['interval'][_0x3abfd7]));}_0x171e0c['interval']=_0x331395;}else{if(!_0x50d21a[_0x459c92(0x11da)])return _0x351c06[_0x459c92(0x1617)]['get']({'sectionId':_0x50d21a['id']})[_0x459c92(0x15e7)][_0x459c92(0x64a)](function(_0x272f09){const _0x109a3b=_0x459c92,_0x3468f3=_0x28c606()['map'](_0x272f09[_0x109a3b(0x28b8)],function(_0x11f915){const _0x3d3b3f=_0x109a3b;return _0x28c606()[_0x3d3b3f(0x27bc)](_0x171e0c[_0x3d3b3f(0xcfd)],{'id':_0x11f915[_0x3d3b3f(0x145)]});});let _0x3e0dde=null;_0x171e0c[_0x109a3b(0x26c3)]&&(_0x3e0dde=_0x28c606()[_0x109a3b(0x27bc)](_0x171e0c[_0x109a3b(0xcfd)],{'id':Number(_0x171e0c[_0x109a3b(0x26c3)]['IntervalId'])}));if(_0x3e0dde&&!_0x28c606()[_0x109a3b(0x25f8)](_0x3468f3,['id',_0x3e0dde['id']])){const _0x224d64=_0x28c606()[_0x109a3b(0x27bc)](_0x171e0c['interval'],{'id':_0x3e0dde['id']});_0x224d64[_0x109a3b(0xd4f)]=![],_0x3468f3['push'](_0x224d64);}_0x171e0c[_0x109a3b(0xcfd)]=_0x3468f3;});}})['catch'](function(_0x38b6b7){const _0x5839a5=_0x267813;_0x5ff690[_0x5839a5(0x1bd0)]({'title':_0x38b6b7[_0x5839a5(0x10b3)]?'API:'+_0x38b6b7[_0x5839a5(0x10b3)]+_0x5839a5(0x21db)+_0x38b6b7[_0x5839a5(0x2115)]:_0x5839a5(0x314),'msg':_0x38b6b7[_0x5839a5(0x1c52)]?JSON[_0x5839a5(0x2317)](_0x38b6b7[_0x5839a5(0x1c52)]):_0x38b6b7[_0x5839a5(0x2915)]()});});function _0x4bdbc7(){const _0x5048d2=_0x267813;_0x171e0c[_0x5048d2(0xbae)]=[],_0x351c06[_0x5048d2(0x26c3)][_0x5048d2(0x2479)](_0x171e0c[_0x5048d2(0x26c3)])[_0x5048d2(0x15e7)][_0x5048d2(0x64a)](function(_0x152168){const _0x4e7860=_0x5048d2;_0x171e0c['chatWebsites']['unshift'](_0x152168[_0x4e7860(0x14f8)]()),_0x5ff690[_0x4e7860(0x1339)]({'title':_0x4e7860(0x17bb),'msg':_0x171e0c[_0x4e7860(0x26c3)][_0x4e7860(0x2494)]?_0x171e0c[_0x4e7860(0x26c3)]['name']+_0x4e7860(0x258d):''}),_0x33258a(_0x152168);})['catch'](function(_0x41c2b2){const _0x46f06a=_0x5048d2;if(_0x41c2b2['data']&&_0x41c2b2['data']['errors']&&_0x41c2b2[_0x46f06a(0x1c52)][_0x46f06a(0xbae)][_0x46f06a(0x1b9e)]){_0x171e0c[_0x46f06a(0xbae)]=_0x41c2b2[_0x46f06a(0x1c52)][_0x46f06a(0xbae)]||[{'message':_0x41c2b2[_0x46f06a(0x2915)](),'type':_0x46f06a(0x1ba3)}];for(let _0x592eb5=0x0;_0x592eb5<_0x41c2b2['data'][_0x46f06a(0xbae)][_0x46f06a(0x1b9e)];_0x592eb5+=0x1){_0x5ff690['error']({'title':_0x41c2b2[_0x46f06a(0x1c52)][_0x46f06a(0xbae)][_0x592eb5][_0x46f06a(0x2185)],'msg':_0x41c2b2[_0x46f06a(0x1c52)][_0x46f06a(0xbae)][_0x592eb5]['message']});}}else _0x5ff690[_0x46f06a(0x1bd0)]({'title':_0x41c2b2[_0x46f06a(0x10b3)]?_0x46f06a(0x575)+_0x41c2b2[_0x46f06a(0x10b3)]+'\x20-\x20'+_0x41c2b2[_0x46f06a(0x2115)]:_0x46f06a(0x1ba3),'msg':_0x41c2b2[_0x46f06a(0x1c52)]?JSON[_0x46f06a(0x2317)](_0x41c2b2[_0x46f06a(0x1c52)]['message']):_0x41c2b2[_0x46f06a(0x2915)]()});});}function _0x33ed7e(){const _0x3ccb0c=_0x267813;_0x171e0c[_0x3ccb0c(0xbae)]=[],_0x351c06[_0x3ccb0c(0x26c3)][_0x3ccb0c(0x2603)]({'id':_0x171e0c[_0x3ccb0c(0x26c3)]['id']},_0x171e0c['chatWebsite'])[_0x3ccb0c(0x15e7)][_0x3ccb0c(0x64a)](function(_0x256826){const _0x2ec813=_0x3ccb0c,_0x501775=_0x28c606()[_0x2ec813(0x27bc)](_0x171e0c[_0x2ec813(0x111)],{'id':_0x256826['id']});_0x501775&&_0x28c606()[_0x2ec813(0x14fe)](_0x501775,_0x28c606()[_0x2ec813(0x27bb)](_0x256826['toJSON'](),_0x28c606()[_0x2ec813(0x1ec6)](_0x501775))),_0x5ff690['success']({'title':_0x2ec813(0x121e),'msg':_0x171e0c['chatWebsite'][_0x2ec813(0x2494)]?_0x171e0c['chatWebsite']['name']+_0x2ec813(0x271):''}),_0x33258a(_0x256826);})[_0x3ccb0c(0x20cd)](function(_0x459616){const _0x8befdd=_0x3ccb0c;if(_0x459616[_0x8befdd(0x1c52)]&&_0x459616[_0x8befdd(0x1c52)]['errors']&&_0x459616[_0x8befdd(0x1c52)]['errors'][_0x8befdd(0x1b9e)]){_0x171e0c[_0x8befdd(0xbae)]=_0x459616[_0x8befdd(0x1c52)][_0x8befdd(0xbae)]||[{'message':_0x459616[_0x8befdd(0x2915)](),'type':_0x8befdd(0x1a94)}];for(let _0x4b7ffd=0x0;_0x4b7ffd<_0x459616[_0x8befdd(0x1c52)][_0x8befdd(0xbae)]['length'];_0x4b7ffd++){_0x5ff690['error']({'title':_0x459616[_0x8befdd(0x1c52)][_0x8befdd(0xbae)][_0x4b7ffd][_0x8befdd(0x2185)],'msg':_0x459616[_0x8befdd(0x1c52)][_0x8befdd(0xbae)][_0x4b7ffd][_0x8befdd(0x18ca)]});}}else _0x5ff690[_0x8befdd(0x1bd0)]({'title':_0x459616[_0x8befdd(0x10b3)]?_0x8befdd(0x575)+_0x459616['status']+_0x8befdd(0x21db)+_0x459616[_0x8befdd(0x2115)]:_0x8befdd(0x1a94),'msg':_0x459616[_0x8befdd(0x1c52)]?JSON[_0x8befdd(0x2317)](_0x459616['data'][_0x8befdd(0x18ca)]):_0x459616[_0x8befdd(0x2915)]()});});}function _0x366388(_0x78549d){const _0x4196d7=_0x267813;_0x171e0c[_0x4196d7(0xbae)]=[];const _0x36f12c=_0x541133[_0x4196d7(0x856)]()[_0x4196d7(0x2021)]('Are\x20you\x20sure?')[_0x4196d7(0x12b8)](_0x4196d7(0x1d60))[_0x4196d7(0x213e)](_0x4196d7(0x262f))['ok'](_0x4196d7(0x2664))[_0x4196d7(0x101a)](_0x4196d7(0x1dc6))[_0x4196d7(0x2283)](_0x78549d);_0x541133[_0x4196d7(0xa60)](_0x36f12c)[_0x4196d7(0x64a)](function(){const _0x14b90b=_0x4196d7;_0x351c06[_0x14b90b(0x26c3)]['delete']({'id':_0x171e0c[_0x14b90b(0x26c3)]['id']})[_0x14b90b(0x15e7)][_0x14b90b(0x64a)](function(){const _0x262b35=_0x14b90b;_0x28c606()[_0x262b35(0x21c7)](_0x171e0c[_0x262b35(0x111)],{'id':_0x171e0c['chatWebsite']['id']}),_0x5ff690[_0x262b35(0x1339)]({'title':_0x262b35(0x27f9),'msg':(_0x171e0c['chatWebsite'][_0x262b35(0x2494)]||_0x262b35(0x26c3))+'\x20has\x20been\x20deleted!'}),_0x33258a(_0x171e0c[_0x262b35(0x26c3)]);})[_0x14b90b(0x20cd)](function(_0x2e9cd1){const _0x2bc739=_0x14b90b;if(_0x2e9cd1['data']&&_0x2e9cd1[_0x2bc739(0x1c52)]['errors']&&_0x2e9cd1[_0x2bc739(0x1c52)][_0x2bc739(0xbae)]['length']){_0x171e0c[_0x2bc739(0xbae)]=_0x2e9cd1[_0x2bc739(0x1c52)][_0x2bc739(0xbae)]||[{'message':_0x2e9cd1[_0x2bc739(0x2915)](),'type':_0x2bc739(0x18e2)}];for(let _0x48664b=0x0;_0x48664b<_0x2e9cd1[_0x2bc739(0x1c52)][_0x2bc739(0xbae)]['length'];_0x48664b++){_0x5ff690['error']({'title':_0x2e9cd1[_0x2bc739(0x1c52)][_0x2bc739(0xbae)][_0x48664b][_0x2bc739(0x2185)],'msg':_0x2e9cd1[_0x2bc739(0x1c52)]['errors'][_0x48664b][_0x2bc739(0x18ca)]});}}else _0x5ff690[_0x2bc739(0x1bd0)]({'title':_0x2e9cd1[_0x2bc739(0x10b3)]?'API:'+_0x2e9cd1['status']+_0x2bc739(0x21db)+_0x2e9cd1[_0x2bc739(0x2115)]:_0x2bc739(0x18e2),'msg':_0x2e9cd1[_0x2bc739(0x1c52)]?JSON[_0x2bc739(0x2317)](_0x2e9cd1[_0x2bc739(0x1c52)][_0x2bc739(0x18ca)]):_0x2e9cd1[_0x2bc739(0x18ca)]||_0x2e9cd1[_0x2bc739(0x2915)]()});});},function(){});}function _0x327d47(_0x33c0cd){return _0x33c0cd===null?undefined:new Date(_0x33c0cd);}function _0x33258a(_0x11d350){_0x541133['hide'](_0x11d350);}}const _0x2a45f7=_0x21316e;;const _0x1820ab=_0x2e4a48['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/agent/dialog.html/dialog.html';;const _0x23dfa2=_0x2e4a48['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/amazonlex/dialog.html/dialog.html';;const _0x2aa100=_0x2e4a48['p']+_0x49a1e3(0x23b6);;const _0x151c06=_0x2e4a48['p']+_0x49a1e3(0x8ad);;const _0x357a8c=_0x2e4a48['p']+_0x49a1e3(0x1702);;const _0xc10f62=_0x2e4a48['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotoif/dialog.html/dialog.html';;const _0x46d239=_0x2e4a48['p']+_0x49a1e3(0xe7f);;const _0x2a005b=_0x2e4a48['p']+_0x49a1e3(0x387);;const _0x3548a9=_0x2e4a48['p']+_0x49a1e3(0x195);;const _0x54ad8c=_0x2e4a48['p']+_0x49a1e3(0x2043);;const _0x2d480c=_0x2e4a48['p']+_0x49a1e3(0x1a0d);;const _0x2e9e98=_0x2e4a48['p']+_0x49a1e3(0x234a);;_0x1d5f46[_0x49a1e3(0x1e73)]=[_0x49a1e3(0xa19),_0x49a1e3(0x212a),'$document','toasty',_0x49a1e3(0xdcf)];const _0x47e973={'agent':_0x1820ab,'amazonlex':_0x23dfa2,'autoreply':_0x2aa100,'close':_0x151c06,'dialogflow':_0x357a8c,'gotoif':_0xc10f62,'gotop':_0x46d239,'interval':_0x2a005b,'noop':_0x3548a9,'queue':_0x54ad8c,'system':_0x2d480c,'tag':_0x2e9e98};function _0x1d5f46(_0x82f928,_0xac7fb6,_0x2cdc08,_0x17ac90,_0x1bed7f){const _0x4c810e=_0x49a1e3,_0x32e827=this;_0x32e827[_0x4c810e(0x1d3d)]=_0x1bed7f[_0x4c810e(0x808)](),_0x32e827['chatWebsite']={},_0x32e827['chatWebsiteApps']={'count':0x0,'rows':[]},_0x32e827[_0x4c810e(0x18df)]=[],_0x32e827[_0x4c810e(0x402)],_0x32e827[_0x4c810e(0x289a)]={'sort':_0x4c810e(0x1095)},_0x32e827[_0x4c810e(0x1018)]=_0x28c606()[_0x4c810e(0x19d2)](_0x28c606()['sortBy']([{'app':'Interval','appType':_0x4c810e(0xcfd),'types':[_0x4c810e(0xa66),_0x4c810e(0x1ad6),_0x4c810e(0x2764)],'fields':[],'isApp':![]},{'app':'noop','appType':_0x4c810e(0xbb6),'type':_0x4c810e(0xbb6),'icon':_0x4c810e(0xd46),'interval':_0x4c810e(0x2145),'required':!![],'isApp':!![],'fields':[{'title':_0x4c810e(0x107f),'name':_0x4c810e(0x1096),'type':'text','param':0x0}]},{'app':_0x4c810e(0x1f06),'appType':_0x4c810e(0x1f06),'type':_0x4c810e(0x1f06),'icon':_0x4c810e(0xd46),'interval':_0x4c810e(0x2145),'required':!![],'isApp':!![],'extraApi':[{'name':'variables','field':{'name':_0x4c810e(0xefb),'key':_0x4c810e(0x2494)},'route':'variable','filters':{'fields':_0x4c810e(0x1427),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x4c810e(0x6c7),'name':_0x4c810e(0xf42),'type':_0x4c810e(0x39b),'required':!![],'param':0x0},{'title':_0x4c810e(0x1538),'name':_0x4c810e(0xefb),'type':'apiselect','values':'variables','value':_0x4c810e(0x1c5a),'option':_0x4c810e(0x1c5a),'defaultValues':[{'value':'\x27\x27','option':_0x4c810e(0x8c8)}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x4c810e(0x2046),'appType':'gotop','type':_0x4c810e(0x1e5a),'icon':_0x4c810e(0xd46),'interval':_0x4c810e(0x2145),'isApp':!![],'fields':[{'title':_0x4c810e(0x27f2),'name':_0x4c810e(0x1095),'type':'number','required':!![],'min':0x0,'param':0x0}]},{'app':'gotoif','appType':_0x4c810e(0x614),'type':_0x4c810e(0x614),'icon':_0x4c810e(0xd46),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x4c810e(0x82a),'name':'condition','type':_0x4c810e(0x39b),'required':!![],'param':0x0},{'title':_0x4c810e(0x108f),'name':'truepriority','type':'number','min':0x1,'required':!![],'param':0x1},{'title':_0x4c810e(0x1d32),'name':_0x4c810e(0x1d32),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':'queue','appType':_0x4c810e(0x1e4e),'foreignKey':_0x4c810e(0x194e),'type':_0x4c810e(0x1e4e),'icon':_0x4c810e(0xd46),'interval':_0x4c810e(0x2145),'isApp':!![],'extraApi':[{'name':_0x4c810e(0x1c06),'field':{'name':_0x4c810e(0x1e4e),'key':_0x4c810e(0x2494)},'route':'chatQueue','filters':{'fields':_0x4c810e(0x2ba),'sort':_0x4c810e(0x2494),'nolimit':!![]},'permissions':{'section':0x1f5}}],'fields':[{'title':'Queue','name':_0x4c810e(0x1e4e),'type':_0x4c810e(0x26e8),'values':_0x4c810e(0x1c06),'value':_0x4c810e(0x5ca),'option':_0x4c810e(0x5ca),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x4c810e(0x66e),'name':_0x4c810e(0x16d),'type':_0x4c810e(0x2113),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x4c810e(0x11ae),'appType':_0x4c810e(0x11ae),'type':_0x4c810e(0x11ae),'foreignKey':_0x4c810e(0x246c),'icon':_0x4c810e(0xd46),'interval':_0x4c810e(0x2145),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':_0x4c810e(0x11ae),'key':_0x4c810e(0x2494)},'route':_0x4c810e(0x2e8),'filters':{'fields':'id,name','role':_0x4c810e(0x11ae),'sort':_0x4c810e(0x2494),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x4c810e(0x12ad),'name':_0x4c810e(0x11ae),'type':_0x4c810e(0x26e8),'values':'agents','value':'agent.name','option':_0x4c810e(0x1ddb),'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x4c810e(0x67b),'appType':'close','type':_0x4c810e(0x67b),'icon':_0x4c810e(0xd46),'interval':_0x4c810e(0x2145),'isApp':!![],'fields':[{'title':_0x4c810e(0x217f),'name':_0x4c810e(0x168b),'type':_0x4c810e(0x39b),'required':!![],'param':0x0}]},{'app':_0x4c810e(0x21a9),'appType':_0x4c810e(0x21a9),'type':_0x4c810e(0x21a9),'icon':_0x4c810e(0xd46),'interval':_0x4c810e(0x2145),'isApp':!![],'fields':[{'title':_0x4c810e(0x95f),'name':'times','type':_0x4c810e(0x2926),'defaultValue':'1','values':[{'option':_0x4c810e(0x1abb),'value':'1'},{'option':_0x4c810e(0xfdd),'value':'0'}],'required':!![],'param':0x0},{'title':_0x4c810e(0x1378),'name':'text','type':_0x4c810e(0x1e3c),'required':!![],'param':0x1}]},{'app':_0x4c810e(0xac8),'appType':'tag','type':_0x4c810e(0xac8),'foreignKey':_0x4c810e(0x923),'icon':'icon-apps','interval':_0x4c810e(0x2145),'isApp':!![],'extraApi':[{'name':_0x4c810e(0x16a6),'field':{'name':'tag','key':_0x4c810e(0x2494)},'route':_0x4c810e(0xac8),'filters':{'fields':_0x4c810e(0x1427),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x4c810e(0x1e9f),'name':_0x4c810e(0xac8),'type':_0x4c810e(0x26e8),'values':'tags','value':'tag.name','option':_0x4c810e(0xcef),'required':!![],'param':0x0}]},{'app':_0x4c810e(0x1084),'appType':_0x4c810e(0x1084),'type':_0x4c810e(0x1084),'icon':_0x4c810e(0xd46),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x4c810e(0x2367),'name':'key','type':_0x4c810e(0x39b),'required':!![],'param':0x0},{'title':'language','name':_0x4c810e(0x1cbd),'type':_0x4c810e(0x2926),'defaultValue':_0x4c810e(0x160),'values':[{'option':_0x4c810e(0x5f1),'value':_0x4c810e(0x2287)},{'option':_0x4c810e(0x1230),'value':_0x4c810e(0x160)},{'option':_0x4c810e(0x10a4),'value':_0x4c810e(0x746)},{'option':_0x4c810e(0x28bf),'value':_0x4c810e(0x1517)},{'option':'Spanish','value':_0x4c810e(0x17aa)},{'option':_0x4c810e(0x976),'value':_0x4c810e(0x249a)},{'option':'Indonesian','value':_0x4c810e(0xfce)},{'option':'Japanese','value':_0x4c810e(0x295)},{'option':'Korean\x20(South\x20Korea)','value':'\x27ko\x27'},{'option':'Dutch','value':_0x4c810e(0x87f)},{'option':_0x4c810e(0x22d3),'value':_0x4c810e(0x1476)},{'option':_0x4c810e(0x1190),'value':_0x4c810e(0x70b)},{'option':'Portuguese\x20(Nrazilian)','value':'\x27pt-br\x27'},{'option':'Russian','value':_0x4c810e(0x86f)},{'option':_0x4c810e(0xa2d),'value':_0x4c810e(0x15b)},{'option':_0x4c810e(0x17e8),'value':'\x27th\x27'},{'option':_0x4c810e(0xd44),'value':_0x4c810e(0x4bf)},{'option':_0x4c810e(0x133e),'value':'\x27zh-CN\x27'},{'option':_0x4c810e(0x14aa),'value':_0x4c810e(0x34f)},{'option':_0x4c810e(0x263a),'value':'\x27zh-TW\x27'}],'required':!![],'param':0x1},{'title':'welcomemessage','name':_0x4c810e(0x31b),'type':'textarea','maxlength':0xff,'param':0x2,'help':!![]}]},{'app':_0x4c810e(0xda3),'appType':_0x4c810e(0x1b1a),'type':_0x4c810e(0x1b1a),'icon':_0x4c810e(0xd46),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'ProjectID','name':_0x4c810e(0xbfd),'type':_0x4c810e(0x39b),'required':!![],'param':0x0},{'title':_0x4c810e(0x37c),'name':_0x4c810e(0x4b2),'type':_0x4c810e(0x39b),'required':!![],'param':0x1},{'title':'PrivateKey','name':_0x4c810e(0x1b1b),'type':'textarea','required':!![],'param':0x2},{'title':_0x4c810e(0x1cbd),'name':'language','type':_0x4c810e(0x2926),'defaultValue':_0x4c810e(0x160),'values':[{'value':_0x4c810e(0x34f),'option':_0x4c810e(0x25aa)},{'value':_0x4c810e(0x784),'option':_0x4c810e(0x133e)},{'value':_0x4c810e(0x188d),'option':_0x4c810e(0x263a)},{'value':'\x27da\x27','option':_0x4c810e(0x5f1)},{'value':_0x4c810e(0x87f),'option':'Dutch'},{'value':'\x27en\x27','option':_0x4c810e(0x1230)},{'value':_0x4c810e(0x2863),'option':_0x4c810e(0x1c1f)},{'value':_0x4c810e(0x20a5),'option':_0x4c810e(0x24bc)},{'value':_0x4c810e(0x2620),'option':_0x4c810e(0x201c)},{'value':_0x4c810e(0x28e0),'option':_0x4c810e(0x2196)},{'value':_0x4c810e(0x2571),'option':'English\x20(US)'},{'value':_0x4c810e(0x249a),'option':_0x4c810e(0x976)},{'value':_0x4c810e(0x24f3),'option':_0x4c810e(0xee8)},{'value':_0x4c810e(0x23f3),'option':_0x4c810e(0xf9a)},{'value':_0x4c810e(0x746),'option':_0x4c810e(0x10a4)},{'value':_0x4c810e(0x26a7),'option':_0x4c810e(0xb30)},{'value':_0x4c810e(0xfce),'option':_0x4c810e(0x2079)},{'value':_0x4c810e(0x1517),'option':_0x4c810e(0x28bf)},{'value':_0x4c810e(0x295),'option':'Japanese'},{'value':_0x4c810e(0x1644),'option':_0x4c810e(0x1ec8)},{'value':'\x27no\x27','option':_0x4c810e(0x22d3)},{'value':_0x4c810e(0x1f4b),'option':_0x4c810e(0x17c4)},{'value':'\x27pt-BR\x27','option':_0x4c810e(0xb9e)},{'value':_0x4c810e(0x1106),'option':_0x4c810e(0x739)},{'value':_0x4c810e(0x86f),'option':'Russian'},{'value':_0x4c810e(0x17aa),'option':'Spanish'},{'value':_0x4c810e(0xc89),'option':'Spanish\x20(Latin\x20America)'},{'value':_0x4c810e(0xcae),'option':_0x4c810e(0xd7e)},{'value':_0x4c810e(0x15f8),'option':_0x4c810e(0xa2d)},{'value':_0x4c810e(0x5aa),'option':_0x4c810e(0x17e8)},{'value':_0x4c810e(0x551),'option':'Turkish'},{'value':_0x4c810e(0x4bf),'option':_0x4c810e(0xd44)}],'required':!![],'param':0x3},{'title':_0x4c810e(0x31b),'name':_0x4c810e(0x31b),'type':_0x4c810e(0x1e3c),'maxlength':0xff,'param':0x4,'help':!![]}]},{'app':_0x4c810e(0x290d),'appType':_0x4c810e(0x290d),'type':_0x4c810e(0x290d),'icon':_0x4c810e(0xd46),'interval':_0x4c810e(0x2145),'isApp':!![],'fields':[{'title':_0x4c810e(0x1466),'name':_0x4c810e(0x1466),'type':'text','required':!![],'param':0x0},{'title':_0x4c810e(0x1b1),'name':_0x4c810e(0x1b1),'type':_0x4c810e(0x39b),'required':!![],'param':0x1},{'title':_0x4c810e(0x17a2),'name':_0x4c810e(0x17a2),'type':_0x4c810e(0x2926),'defaultValue':_0x4c810e(0x21de),'values':[{'option':_0x4c810e(0x3f1),'value':'\x27us-east-1\x27'},{'option':'US\x20West\x20(Oregon)','value':_0x4c810e(0x6cc)},{'option':'EU\x20(Ireland)','value':_0x4c810e(0x28f4)},{'option':_0x4c810e(0xbb7),'value':'\x27ap-southeast-2\x27'}],'required':!![],'param':0x2},{'title':_0x4c810e(0x2797),'name':_0x4c810e(0x2797),'type':_0x4c810e(0x39b),'required':!![],'param':0x3},{'title':'welcomemessage','name':_0x4c810e(0x31b),'type':'textarea','maxlength':0xff,'param':0x4,'help':!![]}]}],[_0x4c810e(0x16e1)]),{'isApp':![]}),_0x32e827[_0x4c810e(0x2764)]={'group':{'name':_0x4c810e(0x7f2),'pull':_0x4c810e(0x24b2)},'animation':0x64,'sort':![]},_0x32e827[_0x4c810e(0x221f)]={'group':{'name':_0x4c810e(0x3a8),'put':_0x4c810e(0x7f2)},'animation':0x64,'onAdd':function(_0x112631){const _0x4bea77=_0x4c810e;_0x2eaf01(_0x112631,_0x112631[_0x4bea77(0xa3e)]);},'onSort':function(){_0x1aa782();}},_0x32e827[_0x4c810e(0x2354)]=_0x10f302,_0x32e827[_0x4c810e(0x217e)]=_0x2845d5,_0x32e827[_0x4c810e(0x259f)]=_0x3e9e01,_0x32e827[_0x4c810e(0x197d)]=_0x2eaf01,_0x32e827['editInterval']=_0x20c20b,_0x32e827[_0x4c810e(0x1be6)]=_0x10f74b,_0x32e827[_0x4c810e(0x6be)]=_0x54679c,_0x32e827[_0x4c810e(0x14d0)]=_0x1aa782,_0x32e827[_0x4c810e(0x1039)]=_0x4bdc18;function _0x10f302(_0xb4665c,_0x2bf5a3){const _0x4f0cfa=_0x4c810e;_0x32e827[_0x4f0cfa(0x26c3)]=_0xb4665c,_0x32e827['crudPermissions']=typeof _0x2bf5a3!==_0x4f0cfa(0x19a1)?_0x2bf5a3:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x32e827[_0x4f0cfa(0x221f)]['disabled']=!_0x32e827[_0x4f0cfa(0x402)][_0x4f0cfa(0xd86)]?!![]:![],_0x32e827[_0x4f0cfa(0x289a)]['id']=_0xb4665c['id'],_0x32e827['query']['isApp']=!![],_0x32e827[_0x4f0cfa(0x289a)][_0x4f0cfa(0x13d8)]=!![],_0x32e827[_0x4f0cfa(0x259f)](),_0x32e827[_0x4f0cfa(0x1039)]();}function _0x2845d5(_0x19aa96,_0xe27c7a,_0x43c525){const _0x14f15d=_0x4c810e,_0x586159=_0xac7fb6[_0x14f15d(0x856)]()['title'](_0x14f15d(0x2041))[_0x14f15d(0x33a)](_0x14f15d(0x50b)+_0x19aa96[_0x14f15d(0x16e1)]+_0x14f15d(0x26d0)+_0x14f15d(0x4b8))[_0x14f15d(0x213e)](_0x14f15d(0x1260))[_0x14f15d(0x2283)](_0x43c525)['ok']('OK')[_0x14f15d(0x101a)](_0x14f15d(0x18fd));_0xac7fb6['show'](_0x586159)[_0x14f15d(0x64a)](function(){const _0x43d13d=_0x14f15d;_0x32e827[_0x43d13d(0x6b4)]['rows'][_0x43d13d(0x18f0)](_0xe27c7a,0x1),_0x1aa782();},function(){const _0x5691df=_0x14f15d;console[_0x5691df(0x9b4)](_0x5691df(0x18fd));});}function _0x2eaf01(_0x42ef79,_0x4aae30){const _0x2d1bad=_0x4c810e;if(_0x32e827['chatWebsiteApps']['rows'][_0x2d1bad(0x1b9e)]){const _0x2c81f8=_0x32e827[_0x2d1bad(0x6b4)][_0x2d1bad(0x28b8)][_0x4aae30]?_0x32e827[_0x2d1bad(0x6b4)][_0x2d1bad(0x28b8)][_0x4aae30]:_0x32e827[_0x2d1bad(0x6b4)]['rows'][0x0],_0x58a2cc=(_0x2c81f8[_0x2d1bad(0x4f4)]||_0x2c81f8[_0x2d1bad(0x16e1)])[_0x2d1bad(0x2554)]();_0xac7fb6[_0x2d1bad(0xa60)]({'controller':'EditChatWebsiteApp'+_0x58a2cc+_0x2d1bad(0x1528),'controllerAs':'vm','templateUrl':_0x47e973[_0x58a2cc],'parent':angular[_0x2d1bad(0x1f81)](_0x2cdc08['body']),'targetEvent':_0x42ef79,'clickOutsideToClose':!![],'locals':{'chatWebsiteApp':_0x2c81f8,'chatWebsite':_0x32e827[_0x2d1bad(0x26c3)],'crudPermissions':_0x32e827[_0x2d1bad(0x402)]}})[_0x2d1bad(0x64a)](function(_0x4f1296){const _0x3c005f=_0x2d1bad;_0x4f1296&&(_0x4f1296['id']?_0x32e827['chatWebsiteApps'][_0x3c005f(0x28b8)][_0x4aae30]=_0x4f1296:_0x32e827[_0x3c005f(0x6b4)][_0x3c005f(0x28b8)][_0x3c005f(0x18f0)](_0x4aae30,0x0,_0x4f1296),_0x1aa782());})[_0x2d1bad(0x20cd)](function(_0x4d44cd){const _0x4d3d95=_0x2d1bad;_0x4d44cd&&_0x17ac90['error']({'title':_0x4d44cd[_0x4d3d95(0x10b3)]?_0x4d3d95(0x575)+_0x4d44cd[_0x4d3d95(0x10b3)]+_0x4d3d95(0x21db)+_0x4d44cd[_0x4d3d95(0x2115)]:_0x4d3d95(0xd28),'msg':_0x4d44cd[_0x4d3d95(0x1c52)]?JSON[_0x4d3d95(0x2317)](_0x4d44cd['data']):_0x4d44cd[_0x4d3d95(0x2915)]()});});}}function _0x20c20b(_0x9a49bf,_0x28a0f9){const _0x416210=_0x4c810e;if(_0x32e827['chatWebsiteApps'][_0x416210(0x28b8)][_0x416210(0x1b9e)]){const _0x2ee580=_0x32e827[_0x416210(0x6b4)][_0x416210(0x28b8)][_0x28a0f9]?_0x32e827[_0x416210(0x6b4)][_0x416210(0x28b8)][_0x28a0f9]:_0x32e827['chatWebsiteApps'][_0x416210(0x28b8)][0x0];_0xac7fb6[_0x416210(0xa60)]({'controller':_0x416210(0x1320),'controllerAs':'vm','templateUrl':_0x2a005b,'parent':angular[_0x416210(0x1f81)](_0x2cdc08[_0x416210(0xb49)]),'targetEvent':_0x9a49bf,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x2ee580[_0x416210(0xcfd)],'IntervalId':_0x2ee580[_0x416210(0xb71)],'application':!![]},'intervals':[],'crudPermissions':_0x32e827['crudPermissions']}})[_0x416210(0x64a)](function(_0x1587a0){const _0x4b06d8=_0x416210;_0x1587a0&&(_0x2ee580[_0x4b06d8(0xcfd)]=_0x1587a0['interval']||_0x4b06d8(0x2145),_0x2ee580['IntervalId']=_0x1587a0[_0x4b06d8(0xb71)]||null,_0x1aa782());});}}function _0x1aa782(){const _0xf13d3=_0x4c810e;let _0x549c49=0x1,_0x4bb849=[];for(let _0x338414=0x0;_0x338414<_0x32e827['chatWebsiteApps'][_0xf13d3(0x28b8)][_0xf13d3(0x1b9e)];_0x338414++){const _0x26643f=_0x32e827[_0xf13d3(0x6b4)][_0xf13d3(0x28b8)][_0x338414],_0x2bbab4=[],_0xb9f8f2=[];_0x26643f[_0xf13d3(0x15e4)]=_0x26643f[_0xf13d3(0xcfd)]!==_0xf13d3(0x2145)?[_0x26643f['interval']]:_0x26643f['IntervalId']?_0x28c606()[_0xf13d3(0x1de5)](_0x28c606()[_0xf13d3(0xcec)](_0x32e827['intervals'][_0xf13d3(0x28b8)],{'IntervalId':_0x26643f['IntervalId']}),_0xf13d3(0xcfd)):[],_0x26643f[_0xf13d3(0x139)]=_0x32e827['chatWebsite']['context'],_0x26643f[_0xf13d3(0x19c8)]=_0x32e827['chatWebsite'][_0xf13d3(0x19c8)],_0x26643f['type']&&(_0x26643f['type']=_0x26643f[_0xf13d3(0x2185)][_0xf13d3(0x2554)]()),_0x26643f[_0xf13d3(0x1095)]=_0x2bbab4[_0xf13d3(0x1b9e)]?_0x28c606()[_0xf13d3(0xe62)](_0x2bbab4)['priority']+0x1:_0x549c49,_0x549c49=(_0xb9f8f2[_0xf13d3(0x1b9e)]?_0x28c606()['last'](_0xb9f8f2)[_0xf13d3(0x1095)]:_0x26643f[_0xf13d3(0x1095)])+0x1,_0x4bb849=_0x28c606()[_0xf13d3(0x2808)](_0x4bb849,_0x2bbab4,[_0x26643f],_0xb9f8f2);}_0x82f928[_0xf13d3(0x26c3)][_0xf13d3(0x1c5d)]({'id':_0x32e827[_0xf13d3(0x26c3)]['id']},_0x28c606()[_0xf13d3(0x1643)](_0x4bb849,_0xf13d3(0x1095)))[_0xf13d3(0x15e7)][_0xf13d3(0x64a)](function(_0x531397){const _0x350c16=_0xf13d3;_0x32e827[_0x350c16(0x6b4)][_0x350c16(0x28b8)]=_0x531397[_0x350c16(0x28b8)];})['catch'](function(_0x5d63ef){const _0x17cff9=_0xf13d3;console[_0x17cff9(0x1bd0)](_0x5d63ef);});}function _0x10430b(_0x679678){const _0xb9edbd=_0x4c810e;_0x32e827[_0xb9edbd(0x6b4)]=_0x679678||{'count':0x0,'rows':[]};}function _0x4bdc18(){const _0x154769=_0x4c810e;return _0x82f928[_0x154769(0xcfd)][_0x154769(0x896)]({'fields':'id,interval,IntervalId'})['$promise']['then'](function(_0x42d6dd){const _0x431f1d=_0x154769;_0x32e827[_0x431f1d(0x15e4)]=_0x42d6dd;})[_0x154769(0x20cd)](function(_0x11999e){const _0x515fbe=_0x154769;console[_0x515fbe(0x1bd0)](_0x11999e);});}function _0x3e9e01(){const _0x1a7779=_0x4c810e;_0x32e827[_0x1a7779(0x1713)]=_0x82f928['chatWebsite'][_0x1a7779(0x42f)](_0x32e827['query'],_0x10430b)['$promise'];}function _0x10f74b(_0x208469){const _0x5500bd=_0x4c810e;_0x28c606()[_0x5500bd(0x21c7)](_0x32e827[_0x5500bd(0x6b4)]['rows'],{'id':_0x208469['id']}),_0x1aa782(),_0x17ac90[_0x5500bd(0x1339)]({'title':_0x5500bd(0x2166),'msg':_0x208469[_0x5500bd(0x16e1)]?_0x208469['app']+'\x20has\x20been\x20deleted!':''});}function _0x54679c(_0x57ae8b){const _0x23efe9=_0x4c810e,_0x30a6a4=_0xac7fb6[_0x23efe9(0x856)]()[_0x23efe9(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')[_0x23efe9(0x33a)](_0x23efe9(0x50b)+_0x32e827[_0x23efe9(0x18df)][_0x23efe9(0x1b9e)]+_0x23efe9(0x163e)+_0x23efe9(0x4b8))[_0x23efe9(0x213e)]('delete\x20applications')[_0x23efe9(0x2283)](_0x57ae8b)['ok']('OK')[_0x23efe9(0x101a)]('CANCEL');_0xac7fb6[_0x23efe9(0xa60)](_0x30a6a4)['then'](function(){const _0x3a14bd=_0x23efe9;_0x32e827[_0x3a14bd(0x18df)][_0x3a14bd(0x1397)](function(_0x3fae80){const _0x5afe91=_0x3a14bd;_0x28c606()['remove'](_0x32e827['chatWebsiteApps'][_0x5afe91(0x28b8)],{'id':_0x3fae80['id']});}),_0x32e827[_0x3a14bd(0x18df)]=[],_0x1aa782();});}}const _0x27859d=_0x1d5f46;;_0x2f29a7['$inject']=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),'api',_0x49a1e3(0x26c3),_0x49a1e3(0x111),_0x49a1e3(0x252e),'$translate',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x2f29a7(_0x688ad0,_0x53c6b9,_0x488738,_0x283703,_0x4a20ea,_0x10542d,_0x5132ae,_0x55be7f,_0x3517f1,_0x7d902f){const _0x4cf29=_0x49a1e3,_0x3bd690=this;_0x3bd690['currentUser']=_0x3517f1[_0x4cf29(0x808)](),_0x3bd690['chatWebsite']=_0x4a20ea,_0x3bd690[_0x4cf29(0x402)]=_0x7d902f,_0x3bd690[_0x4cf29(0x252e)]=_0x5132ae,_0x3bd690[_0x4cf29(0x23cb)]=[],_0x3bd690[_0x4cf29(0x13d1)]=[],_0x3bd690[_0x4cf29(0x1f4f)]=[],_0x3bd690[_0x4cf29(0x206b)]=[],_0x3bd690[_0x4cf29(0x24e1)]=[],_0x3bd690[_0x4cf29(0xe9e)]=![],_0x3bd690[_0x4cf29(0x2483)]=_0x2882c6,_0x3bd690[_0x4cf29(0x4c4)]=_0x29427f,_0x3bd690[_0x4cf29(0x16cb)]=_0x3d9c26,_0x3bd690[_0x4cf29(0x1eeb)]={'readOnly':!_0x3bd690[_0x4cf29(0x402)][_0x4cf29(0xd86)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x4cf29(0x2494),'line1':'fullname','line2':['name',_0x4cf29(0xe2f)],'line3':'','labelAll':_0x55be7f['instant'](_0x4cf29(0x1da4)),'labelSelected':_0x55be7f['instant'](_0x4cf29(0xcf8)),'transferCallback':function(){const _0x35f262=_0x4cf29,_0xabde5d=_0x28c606()[_0x35f262(0x1ad)](_0x3bd690[_0x35f262(0x24e1)],_0x3bd690[_0x35f262(0x1f4f)],'id');_0x3bd690['pendingChanges']=_0x28c606()['isEmpty'](_0xabde5d)?![]:!![];}};function _0x2882c6(){const _0x1f3a54=_0x4cf29;return _0x3517f1[_0x1f3a54(0x4de)](_0x1f3a54(0x333))?_0x55b621()[_0x1f3a54(0x20cd)](function(_0x79dc07){const _0x27bdea=_0x1f3a54;_0x488738[_0x27bdea(0x1bd0)]({'title':_0x79dc07['status']?_0x27bdea(0x575)+_0x79dc07['status']+'\x20-\x20'+_0x79dc07[_0x27bdea(0x2115)]:_0x27bdea(0x554),'msg':_0x79dc07[_0x27bdea(0x10b3)]?JSON[_0x27bdea(0x2317)](_0x79dc07[_0x27bdea(0x1c52)]):_0x79dc07[_0x27bdea(0x2915)]()});}):_0x33e5ad()['then'](function(_0x5ebac9){const _0x450cc3=_0x1f3a54;return _0x3bd690[_0x450cc3(0xa21)]=_0x5ebac9,_0x55b621();})[_0x1f3a54(0x20cd)](function(_0x59583d){const _0x1d4497=_0x1f3a54;_0x488738[_0x1d4497(0x1bd0)]({'title':_0x59583d[_0x1d4497(0x10b3)]?_0x1d4497(0x575)+_0x59583d[_0x1d4497(0x10b3)]+_0x1d4497(0x21db)+_0x59583d[_0x1d4497(0x2115)]:_0x1d4497(0x554),'msg':_0x59583d[_0x1d4497(0x10b3)]?JSON['stringify'](_0x59583d[_0x1d4497(0x1c52)]):_0x59583d['toString']()});});}function _0x33e5ad(){return _0x53c6b9(function(_0xd84d6d,_0xbbeab7){const _0x4b557c=a0_0x4127;_0x283703[_0x4b557c(0x16b2)][_0x4b557c(0x896)]({'userProfileId':_0x3bd690[_0x4b557c(0x1d3d)][_0x4b557c(0x21ac)],'name':_0x4b557c(0x2132)})['$promise'][_0x4b557c(0x64a)](function(_0x56ceb1){const _0x24df3f=_0x4b557c,_0x31fd0a=_0x56ceb1&&_0x56ceb1['rows']?_0x56ceb1[_0x24df3f(0x28b8)][0x0]:null;_0xd84d6d(_0x31fd0a);})[_0x4b557c(0x20cd)](function(_0x12d59a){_0xbbeab7(_0x12d59a);});});}function _0x55b621(){return _0x53c6b9(function(_0x274ef5,_0x17e562){const _0x16a3b4=a0_0x4127;return _0x10f2b8()[_0x16a3b4(0x64a)](function(_0x3b4d51){const _0x1bf1a3=_0x16a3b4;return _0x3bd690[_0x1bf1a3(0x23cb)]=_0x3b4d51[_0x1bf1a3(0x28b8)]?_0x3b4d51[_0x1bf1a3(0x28b8)]:[],_0x3517f1['hasRole'](_0x1bf1a3(0x333))?_0x3b4d51:_0x3bd690[_0x1bf1a3(0xa21)]?_0x3bd690['section'][_0x1bf1a3(0x11da)]?_0x3b4d51:_0x4ea854():null;})['then'](function(_0x5b8c1a){const _0x472a7d=_0x16a3b4,_0x3f0ced=_0x5b8c1a&&_0x5b8c1a['rows']?_0x5b8c1a[_0x472a7d(0x28b8)]:[];return _0x3bd690[_0x472a7d(0x13d1)]=_0x28c606()[_0x472a7d(0x1de5)](_0x3f0ced,function(_0x4ef3cc){const _0x453d3d=_0x472a7d;return _0x28c606()[_0x453d3d(0x27bc)](_0x3bd690['items'],{'id':_0x3517f1[_0x453d3d(0x4de)]('admin')||_0x3bd690['section'][_0x453d3d(0x11da)]?_0x4ef3cc['id']:_0x4ef3cc[_0x453d3d(0x145)]});}),_0x3bd690[_0x472a7d(0x206b)]=angular[_0x472a7d(0x289e)](_0x3bd690[_0x472a7d(0x13d1)]),_0x3bd690['items']['forEach'](function(_0x106459){const _0x427179=_0x472a7d,_0x28e389=_0x28c606()[_0x427179(0x27bc)](_0x3bd690[_0x427179(0x13d1)],{'id':_0x106459['id']});_0x3517f1[_0x427179(0x4de)](_0x427179(0x333))?_0x106459[_0x427179(0x6f9)]=!![]:_0x106459[_0x427179(0x6f9)]=typeof _0x28e389!==_0x427179(0x19a1)?!![]:![];}),_0x163b2b();})['then'](function(_0xfa8894){const _0x5e5517=_0x16a3b4,_0x238833=_0xfa8894&&_0xfa8894[_0x5e5517(0x28b8)]?_0xfa8894[_0x5e5517(0x28b8)]:[];_0x3bd690[_0x5e5517(0x1f4f)]=_0x28c606()[_0x5e5517(0x1de5)](_0x238833,function(_0xfdc783){const _0x57e7a6=_0x5e5517,_0x49038f=_0x28c606()['find'](_0x3bd690[_0x57e7a6(0x23cb)],{'id':_0xfdc783['id']});return _0x49038f[_0x57e7a6(0x70f)]=_0xfdc783['UserChatWebsite']?_0x57e7a6(0xcff)+_0xfdc783[_0x57e7a6(0x733)]['penalty']:'',_0x49038f[_0x57e7a6(0xe2f)]=typeof _0xfdc783[_0x57e7a6(0xe2f)]!=='undefined'?'<'+_0xfdc783[_0x57e7a6(0xe2f)]+'>':'',_0x49038f;}),_0x3bd690[_0x5e5517(0x24e1)]=angular['copy'](_0x3bd690['selectedItems']),_0x3bd690[_0x5e5517(0x1eeb)][_0x5e5517(0x1f4f)]=_0x3bd690['selectedItems'],_0x3bd690[_0x5e5517(0x1eeb)]['items']=_0x28c606()['differenceBy'](_0x3bd690[_0x5e5517(0x13d1)],_0x3bd690[_0x5e5517(0x1eeb)][_0x5e5517(0x1f4f)],'id'),_0x274ef5();})[_0x16a3b4(0x20cd)](function(_0x56f154){_0x17e562(_0x56f154);});});}function _0x4ea854(){return _0x53c6b9(function(_0x205596,_0x2ae1fd){const _0x87424f=a0_0x4127;return _0x283703[_0x87424f(0x1617)]['get']({'sectionId':_0x3bd690[_0x87424f(0xa21)]['id'],'nolimit':!![]})['$promise'][_0x87424f(0x64a)](function(_0x16df32){_0x205596(_0x16df32);})[_0x87424f(0x20cd)](function(_0x1f9763){_0x2ae1fd(_0x1f9763);});});}function _0x163b2b(){return _0x53c6b9(function(_0x2c26da,_0x5bf732){const _0x1d8577=a0_0x4127;return _0x283703[_0x1d8577(0x26c3)][_0x1d8577(0xa10)]({'id':_0x3bd690[_0x1d8577(0x26c3)]['id'],'fields':_0x1d8577(0x2105),'nolimit':!![],'role':_0x1d8577(0x11ae)})[_0x1d8577(0x15e7)][_0x1d8577(0x64a)](function(_0x5e25f9){_0x2c26da(_0x5e25f9);})[_0x1d8577(0x20cd)](function(_0x2cc2b1){_0x5bf732(_0x2cc2b1);});});}function _0x10f2b8(){return _0x53c6b9(function(_0xcaab9d,_0x6fabf5){const _0x49b401=a0_0x4127;return _0x283703[_0x49b401(0x2e8)][_0x49b401(0x896)]({'fields':_0x49b401(0x2105),'nolimit':!![],'role':'agent'})[_0x49b401(0x15e7)][_0x49b401(0x64a)](function(_0x22ec6e){_0xcaab9d(_0x22ec6e);})[_0x49b401(0x20cd)](function(_0x417149){_0x6fabf5(_0x417149);});});}function _0x3ca6c7(_0x5d4550){return _0x53c6b9(function(_0x3775a6,_0x2c87a3){const _0x524a32=a0_0x4127;_0x28c606()[_0x524a32(0x940)](_0x5d4550)?_0x3775a6():_0x283703['chatWebsite']['addAgents']({'id':_0x3bd690[_0x524a32(0x26c3)]['id'],'ids':_0x28c606()[_0x524a32(0x1de5)](_0x5d4550,'id')})[_0x524a32(0x15e7)][_0x524a32(0x64a)](function(){_0x3775a6();})[_0x524a32(0x20cd)](function(_0x3c8a6e){_0x2c87a3(_0x3c8a6e);});});}function _0x5def5a(_0x15620c){return _0x53c6b9(function(_0x239b6d,_0x5dfb14){const _0x191032=a0_0x4127;_0x28c606()[_0x191032(0x940)](_0x15620c)?_0x239b6d():_0x283703[_0x191032(0x26c3)]['removeAgents']({'id':_0x3bd690['chatWebsite']['id'],'ids':_0x28c606()['map'](_0x15620c,'id')})[_0x191032(0x15e7)]['then'](function(){_0x239b6d();})[_0x191032(0x20cd)](function(_0x3fc02b){_0x5dfb14(_0x3fc02b);});});}function _0x29427f(){const _0x229bec=_0x4cf29,_0x318984=_0x28c606()['differenceBy'](_0x3bd690[_0x229bec(0x24e1)],_0x3bd690[_0x229bec(0x1f4f)],'id'),_0x59e9fa=_0x28c606()[_0x229bec(0x23e5)](_0x3bd690[_0x229bec(0x1f4f)],_0x3bd690[_0x229bec(0x24e1)],'id');return _0x5def5a(_0x318984)[_0x229bec(0x64a)](function(){return _0x3ca6c7(_0x59e9fa);})[_0x229bec(0x64a)](function(){const _0x2751fe=_0x229bec;_0x3bd690[_0x2751fe(0xe9e)]=![],_0x3bd690[_0x2751fe(0x206b)]=angular['copy'](_0x3bd690[_0x2751fe(0x13d1)]),_0x3bd690[_0x2751fe(0x24e1)]=angular[_0x2751fe(0x289e)](_0x3bd690['selectedItems']),_0x488738[_0x2751fe(0x1339)]({'title':_0x2751fe(0x24d6),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})['catch'](function(_0x21446f){const _0x2199f0=_0x229bec;_0x488738[_0x2199f0(0x1bd0)]({'title':_0x21446f[_0x2199f0(0x10b3)]?_0x2199f0(0x575)+_0x21446f['status']+_0x2199f0(0x21db)+_0x21446f[_0x2199f0(0x2115)]:_0x2199f0(0x1226),'msg':_0x21446f[_0x2199f0(0x10b3)]?JSON[_0x2199f0(0x2317)](_0x21446f[_0x2199f0(0x1c52)]):_0x21446f[_0x2199f0(0x2915)]()});});}function _0x3d9c26(){const _0x14beae=_0x4cf29;_0x688ad0[_0x14beae(0x268e)]();}}const _0x542d52=_0x2f29a7;;_0x30121a[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x680)];function _0x30121a(_0x32add,_0xe74aea){const _0x268f37=_0x49a1e3,_0x68aff3=this,_0x460039=0x8,_0x3e0a78=_0x460039*0x400*0x400;_0x68aff3[_0x268f37(0x26c3)]={},_0x68aff3[_0x268f37(0x402)],_0x68aff3[_0x268f37(0x1026)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x3e0a78,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x68aff3[_0x268f37(0x1eec)]={'flow':{}},_0x68aff3[_0x268f37(0x397)]=![],_0x68aff3[_0x268f37(0x25ed)]=_0x4f6e76,_0x68aff3[_0x268f37(0x1c5)]=_0x51737e,_0x68aff3['fileSuccess']=_0x2be38b,_0x68aff3[_0x268f37(0x2354)]=_0x23ed64;function _0x23ed64(_0x54020,_0x1af9b2){const _0x3f76fc=_0x268f37;_0x68aff3[_0x3f76fc(0x26c3)]=angular[_0x3f76fc(0x289e)](_0x54020),_0x68aff3[_0x3f76fc(0x402)]=typeof _0x1af9b2!==_0x3f76fc(0x19a1)?_0x1af9b2:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x68aff3['ngFlowOptions'][_0x3f76fc(0x2497)]=_0x3f76fc(0x2395)[_0x3f76fc(0x1353)](_0x3f76fc(0x201e),_0x68aff3[_0x3f76fc(0x26c3)]['id']),_0x68aff3[_0x3f76fc(0x26c3)][_0x3f76fc(0x21e3)]=[];}function _0x4f6e76(_0x406240){const _0x2a72df=_0x268f37,_0x4ef29c=[_0x2a72df(0x105e),_0x2a72df(0xfcc)];if(!_0x28c606()['includes'](_0x4ef29c,_0x406240[_0x2a72df(0xa2f)]()))return _0xe74aea[_0x2a72df(0x1bd0)]({'title':'Invalid\x20extension:\x20'+_0x406240['getExtension'](),'msg':_0x2a72df(0x1b51)+_0x4ef29c['join']()}),![];if(_0x406240[_0x2a72df(0x1c97)]>_0x3e0a78)return _0xe74aea['error']({'title':_0x2a72df(0x535),'msg':_0x2a72df(0xbfa)+_0x460039+'MB'}),![];const _0x367f07={'id':_0x406240[_0x2a72df(0x16c4)],'file':_0x406240,'type':_0x2a72df(0xffd)};return _0x68aff3[_0x2a72df(0x26c3)][_0x2a72df(0x21e3)][_0x2a72df(0x1891)](_0x367f07),!![];}function _0x51737e(){const _0x56015f=_0x268f37;_0x68aff3[_0x56015f(0x1eec)][_0x56015f(0x891)][_0x56015f(0x2017)]['headers']={'X-Requested-With':'XMLHttpRequest','Authorization':_0x56015f(0x28cb)+_0x32add[_0x56015f(0x896)](_0x56015f(0x283d))},_0x68aff3[_0x56015f(0x1eec)][_0x56015f(0x891)][_0x56015f(0x1c5)]();}function _0x2be38b(_0x8d6198){const _0x590ddf=_0x268f37;angular['forEach'](_0x68aff3[_0x590ddf(0x26c3)][_0x590ddf(0x21e3)],function(_0x10cc86){const _0xe2b011=_0x590ddf;if(_0x10cc86['id']===_0x8d6198[_0xe2b011(0x16c4)]){const _0x1f93e2=new FileReader();_0x1f93e2[_0xe2b011(0x2724)](_0x10cc86[_0xe2b011(0x10b4)][_0xe2b011(0x10b4)]),_0x1f93e2[_0xe2b011(0x11c)]=function(_0x261267){const _0x2e73be=_0xe2b011;_0x10cc86[_0x2e73be(0x2761)]=_0x261267[_0x2e73be(0x2497)][_0x2e73be(0x5e3)];},_0x10cc86[_0xe2b011(0x2185)]=_0xe2b011(0x1a0);}});}}const _0x5b964b=_0x30121a;;_0x4cdafe[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),'chatWebsiteApp',_0x49a1e3(0x26c3),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x4cdafe(_0x26086d,_0x286372,_0x3a5893,_0x27c728,_0x4037c5,_0x462c93,_0xd8f4d4,_0x3cf900){const _0x183183=_0x49a1e3,_0x4edf20=this;_0x4edf20['currentUser']=_0xd8f4d4[_0x183183(0x808)](),_0x4edf20[_0x183183(0xbae)]=[],_0x4edf20[_0x183183(0x2021)]=_0x183183(0x17bd)+(_0x27c728['appType']||_0x27c728[_0x183183(0x16e1)])[_0x183183(0xa3c)](),_0x4edf20[_0x183183(0x11ae)]=angular[_0x183183(0x289e)](_0x27c728),_0x4edf20[_0x183183(0x402)]=_0x3cf900,_0x4edf20['hasModulePermissions']={};if(_0x4edf20[_0x183183(0x11ae)][_0x183183(0xacb)])switch(_0x4edf20[_0x183183(0x11ae)]['appType']?_0x4edf20['agent'][_0x183183(0x4f4)][_0x183183(0x2554)]():_0x4edf20[_0x183183(0x11ae)][_0x183183(0x16e1)][_0x183183(0x2554)]()){case _0x183183(0x1ad6):break;case'dialogflow':{const _0x116d2d=_0x4edf20[_0x183183(0x11ae)]['appdata'][_0x183183(0x282c)](',');_0x4edf20[_0x183183(0x11ae)][_0x183183(0x2125)]=_0x116d2d[0x0],_0x4edf20[_0x183183(0x11ae)][_0x183183(0x1cbd)]=_0x116d2d[0x1],_0x4edf20[_0x183183(0x11ae)][_0x183183(0x31b)]=_0x116d2d[_0x183183(0x142e)](0x2,_0x116d2d[_0x183183(0x1b9e)])[_0x183183(0x9a6)](',');}break;case _0x183183(0x1b1a):{const _0x2402a9=_0x4edf20[_0x183183(0x11ae)]['appdata'][_0x183183(0x282c)](',');_0x4edf20[_0x183183(0x11ae)][_0x183183(0xbfd)]=_0x2402a9[0x0],_0x4edf20[_0x183183(0x11ae)][_0x183183(0x4b2)]=_0x2402a9[0x1],_0x4edf20[_0x183183(0x11ae)]['privateKey']=_0x2402a9[0x2],_0x4edf20[_0x183183(0x11ae)]['language']=_0x2402a9[0x3],_0x4edf20[_0x183183(0x11ae)][_0x183183(0x31b)]=_0x2402a9[_0x183183(0x142e)](0x4,_0x2402a9[_0x183183(0x1b9e)])['join'](',');}break;case _0x183183(0x290d):{const _0xb8a8e4=_0x4edf20['agent'][_0x183183(0xacb)][_0x183183(0x282c)](',');_0x4edf20[_0x183183(0x11ae)]['accesskeyid']=_0xb8a8e4[0x0],_0x4edf20[_0x183183(0x11ae)][_0x183183(0x1b1)]=_0xb8a8e4[0x1],_0x4edf20[_0x183183(0x11ae)]['lexregion']=_0xb8a8e4[0x2],_0x4edf20[_0x183183(0x11ae)][_0x183183(0x2797)]=_0xb8a8e4[0x3],_0x4edf20[_0x183183(0x11ae)]['welcomemessage']=_0xb8a8e4['slice'](0x4,_0xb8a8e4[_0x183183(0x1b9e)])['join'](',');}break;case _0x183183(0x21a9):{const _0x138b7b=_0x4edf20[_0x183183(0x11ae)][_0x183183(0xacb)][_0x183183(0x282c)](',');_0x4edf20['agent'][_0x183183(0x95f)]=isNaN(_0x138b7b[0x0])?_0x138b7b[0x0]:parseInt(_0x138b7b[0x0],0xa),_0x4edf20[_0x183183(0x11ae)][_0x183183(0x39b)]=_0x138b7b['slice'](0x1,_0x138b7b['length'])[_0x183183(0x9a6)](',');}break;case _0x183183(0x18ca):_0x4edf20['agent'][_0x183183(0x39b)]=_0x4edf20['agent']['appdata'];break;case _0x183183(0x1979):_0x4edf20[_0x183183(0x11ae)][_0x183183(0x2494)]=_0x4edf20[_0x183183(0x11ae)]['appdata'][_0x183183(0x282c)]('=')[0x0],_0x4edf20[_0x183183(0x11ae)]['value']=_0x4edf20[_0x183183(0x11ae)]['appdata']['split']('=')[0x1];break;case _0x183183(0x1e67):_0x4edf20[_0x183183(0x11ae)][_0x183183(0x1bd9)]=_0x4edf20['agent'][_0x183183(0xacb)];break;default:{const _0x50ac00=_0x4edf20[_0x183183(0x11ae)]['appdata']['split'](',');_0x4edf20[_0x183183(0x11ae)][_0x183183(0x11ae)]=_0x28c606()['isEmpty'](_0x50ac00[0x0])?_0x50ac00[0x0]:isNaN(_0x50ac00[0x0])?_0x50ac00[0x0]:parseInt(_0x50ac00[0x0],0xa),_0x4edf20[_0x183183(0x11ae)][_0x183183(0x16d)]=_0x28c606()[_0x183183(0x940)](_0x50ac00[0x1])?_0x50ac00[0x1]:isNaN(_0x50ac00[0x1])?_0x50ac00[0x1]:parseInt(_0x50ac00[0x1],0xa);}break;}else _0x4edf20[_0x183183(0x11ae)][_0x183183(0x16d)]=0x1e;_0x4edf20['agent'][_0x183183(0x2185)]&&_0x4edf20[_0x183183(0x11ae)][_0x183183(0x2185)]['toLowerCase']()===_0x183183(0xbce)&&_0x4edf20[_0x183183(0x11ae)][_0x183183(0x4f4)][_0x183183(0x2554)]()==='outbounddial'&&(_0x4edf20['agent'][_0x183183(0x2524)]=_0x4edf20[_0x183183(0x11ae)][_0x183183(0x267a)]?_0x4edf20[_0x183183(0x11ae)][_0x183183(0x267a)][_0x183183(0x282c)]('$')[0x0]:undefined,_0x4edf20[_0x183183(0x11ae)]['callerId']=_0x4edf20['agent'][_0x183183(0x1abe)]?_0x183183(0x2489)+_0x4edf20['agent'][_0x183183(0x1abe)]:undefined);_0x4edf20['saveChatWebsiteApp']=_0x4dd6c3,_0x4edf20[_0x183183(0x16cb)]=_0xa3cd44,_0xd8f4d4[_0x183183(0x4de)](_0x183183(0x333))?_0x462c93['user'][_0x183183(0x896)]({'fields':'id,name','role':_0x183183(0x11ae),'sort':_0x183183(0x2494),'nolimit':'true'})[_0x183183(0x15e7)][_0x183183(0x64a)](function(_0x411879){const _0x53487b=_0x183183;_0x4edf20[_0x53487b(0xd77)]=_0x411879['rows']||[];})['catch'](function(_0x50c030){const _0x610e61=_0x183183;_0x3a5893[_0x610e61(0x1bd0)]({'title':_0x50c030['status']?_0x610e61(0x575)+_0x50c030[_0x610e61(0x10b3)]+'\x20-\x20'+_0x50c030[_0x610e61(0x2115)]:_0x610e61(0x554),'msg':_0x50c030['data']?JSON[_0x610e61(0x2317)](_0x50c030[_0x610e61(0x1c52)]):_0x50c030[_0x610e61(0x2915)]()});}):_0x462c93[_0x183183(0x2e8)][_0x183183(0x896)]({'fields':_0x183183(0x1427),'role':_0x183183(0x11ae),'sort':'name','nolimit':'true'})[_0x183183(0x15e7)]['then'](function(_0x223f96){const _0x4ba0d1=_0x183183;_0x4edf20[_0x4ba0d1(0xd77)]=_0x223f96[_0x4ba0d1(0x28b8)]||[];})[_0x183183(0x64a)](function(){const _0x2c1c01=_0x183183;return _0x462c93[_0x2c1c01(0x16b2)][_0x2c1c01(0x896)]({'userProfileId':_0x4edf20['currentUser'][_0x2c1c01(0x21ac)],'sectionId':0xca})[_0x2c1c01(0x15e7)];})[_0x183183(0x64a)](function(_0x9a3ea3){const _0x26bdb1=_0x183183,_0xd50076=_0x9a3ea3&&_0x9a3ea3[_0x26bdb1(0x28b8)]?_0x9a3ea3['rows'][0x0]:null;if(!_0xd50076){const _0x955f51=[];let _0x3ad4c2=null;_0x4edf20[_0x26bdb1(0x11ae)]&&(_0x3ad4c2=_0x28c606()[_0x26bdb1(0x27bc)](_0x4edf20[_0x26bdb1(0xd77)],{'name':_0x4edf20[_0x26bdb1(0x11ae)][_0x26bdb1(0x11ae)]}));for(let _0x31a864=0x0;_0x31a864<_0x4edf20[_0x26bdb1(0xd77)][_0x26bdb1(0x1b9e)];_0x31a864++){_0x3ad4c2&&_0x4edf20[_0x26bdb1(0xd77)][_0x31a864]['id']===_0x3ad4c2['id']&&(_0x4edf20[_0x26bdb1(0xd77)][_0x31a864][_0x26bdb1(0xd4f)]=![],_0x955f51[_0x26bdb1(0x1954)](_0x4edf20[_0x26bdb1(0xd77)][_0x31a864]));}_0x4edf20['agents']=_0x955f51;}else{if(!_0xd50076[_0x26bdb1(0x11da)])return _0x462c93['userProfileResource'][_0x26bdb1(0x896)]({'sectionId':_0xd50076['id']})[_0x26bdb1(0x15e7)][_0x26bdb1(0x64a)](function(_0x332634){const _0xb3252d=_0x26bdb1,_0x2af535=_0x28c606()[_0xb3252d(0x1de5)](_0x332634[_0xb3252d(0x28b8)],function(_0x474e36){const _0x27fdd4=_0xb3252d;return _0x28c606()[_0x27fdd4(0x27bc)](_0x4edf20['agents'],{'id':_0x474e36[_0x27fdd4(0x145)]});});let _0x3f1f4a=null;_0x4edf20[_0xb3252d(0x11ae)]&&(_0x3f1f4a=_0x28c606()[_0xb3252d(0x27bc)](_0x4edf20[_0xb3252d(0xd77)],{'name':_0x4edf20[_0xb3252d(0x11ae)][_0xb3252d(0x11ae)]}));if(_0x3f1f4a&&!_0x28c606()['some'](_0x2af535,['id',_0x3f1f4a['id']])){const _0xbf7238=_0x28c606()[_0xb3252d(0x27bc)](_0x4edf20[_0xb3252d(0xd77)],{'id':_0x3f1f4a['id']});_0xbf7238[_0xb3252d(0xd4f)]=![],_0x2af535[_0xb3252d(0x1954)](_0xbf7238);}_0x4edf20[_0xb3252d(0xd77)]=_0x2af535;});}})[_0x183183(0x20cd)](function(_0x5298ed){const _0x58f5c9=_0x183183;_0x3a5893[_0x58f5c9(0x1bd0)]({'title':_0x5298ed['status']?'API:'+_0x5298ed[_0x58f5c9(0x10b3)]+_0x58f5c9(0x21db)+_0x5298ed['statusText']:_0x58f5c9(0x1ff1),'msg':_0x5298ed[_0x58f5c9(0x1c52)]?JSON['stringify'](_0x5298ed['data']):_0x5298ed[_0x58f5c9(0x2915)]()});});function _0x4dd6c3(){const _0x143e9e=_0x183183;_0x4edf20[_0x143e9e(0xbae)]=[];const _0x369c91=[];_0x4edf20['agent'][_0x143e9e(0x2185)]&&_0x4edf20[_0x143e9e(0x11ae)]['type'][_0x143e9e(0x2554)]()===_0x143e9e(0xbce)&&_0x4edf20['agent'][_0x143e9e(0x4f4)]===_0x143e9e(0x17b6)&&(_0x4edf20['agent'][_0x143e9e(0x267a)]=_0x4037c5[_0x143e9e(0x242b)]?(_0x4edf20[_0x143e9e(0x11ae)][_0x143e9e(0x2524)]||'')+_0x143e9e(0x1a75)+_0x4037c5['cutdigits']+'}':(_0x4edf20['agent'][_0x143e9e(0x2524)]||'')+_0x143e9e(0x5ad),_0x4037c5[_0x143e9e(0x1097)]!==_0x143e9e(0x2507)?_0x4edf20['agent'][_0x143e9e(0x59e)][_0x143e9e(0x1b28)](_0x143e9e(0x13e0))<0x0&&(_0x4edf20['agent']['options']+=_0x143e9e(0x13e0)):_0x4edf20['agent'][_0x143e9e(0x59e)]=_0x4edf20['agent'][_0x143e9e(0x59e)][_0x143e9e(0x1353)]('U(xcally-mixmonitor-context)',''));const _0x250e23=_0x28c606()['find'](_0x4edf20['agents'],{'name':_0x4edf20[_0x143e9e(0x11ae)][_0x143e9e(0x11ae)]});_0x250e23&&(_0x4edf20[_0x143e9e(0x11ae)]['UserId']=_0x250e23['id']);if(_0x4edf20[_0x143e9e(0x11ae)][_0x143e9e(0x4f4)]&&_0x4edf20[_0x143e9e(0x11ae)][_0x143e9e(0x4f4)]===_0x143e9e(0x1ad6)){}else switch((_0x4edf20[_0x143e9e(0x11ae)][_0x143e9e(0x16e1)]||_0x4edf20[_0x143e9e(0x11ae)][_0x143e9e(0x4f4)])['toLowerCase']()){case'set':_0x4edf20[_0x143e9e(0x11ae)]['appdata']=_0x4edf20[_0x143e9e(0x11ae)][_0x143e9e(0x2494)]+'='+_0x4edf20['agent']['value'];break;case'custom':break;default:_0x369c91[0x0]=_0x4edf20[_0x143e9e(0x11ae)][_0x143e9e(0x11ae)],_0x369c91[0x1]=_0x4edf20[_0x143e9e(0x11ae)][_0x143e9e(0x16d)],_0x4edf20[_0x143e9e(0x11ae)][_0x143e9e(0xacb)]=_0x369c91[_0x143e9e(0x9a6)](',');}_0xa3cd44(_0x4edf20[_0x143e9e(0x11ae)]);}function _0xa3cd44(_0x1eddec){const _0x1b83e9=_0x183183;_0x26086d[_0x1b83e9(0x268e)](_0x1eddec);}}const _0x5be5e1=_0x4cdafe;;_0x472ff9[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa15),'chatWebsite',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'crudPermissions'];function _0x472ff9(_0x388d5f,_0x315a36,_0x4b1c6c,_0x3d6946,_0x1a09ab,_0xb60fcf,_0x6ba61,_0x1adbcb){const _0x169de3=_0x49a1e3,_0x21ce3c=this;_0x21ce3c[_0x169de3(0x1d3d)]=_0x6ba61[_0x169de3(0x808)](),_0x21ce3c[_0x169de3(0xbae)]=[],_0x21ce3c[_0x169de3(0x2021)]='CHAT.EDIT_'+(_0x3d6946[_0x169de3(0x4f4)]||_0x3d6946['app'])['toUpperCase'](),_0x21ce3c['amazonlex']=angular[_0x169de3(0x289e)](_0x3d6946),_0x21ce3c['crudPermissions']=_0x1adbcb,_0x21ce3c['hasModulePermissions']={};if(_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0xacb)])switch(_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x4f4)]?_0x21ce3c['amazonlex'][_0x169de3(0x4f4)][_0x169de3(0x2554)]():_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x16e1)]['toLowerCase']()){case _0x169de3(0x1ad6):break;case'dialogflow':{const _0x52913b=_0x21ce3c[_0x169de3(0x290d)]['appdata'][_0x169de3(0x282c)](',');_0x21ce3c['amazonlex']['key']=_0x52913b[0x0],_0x21ce3c[_0x169de3(0x290d)]['language']=_0x52913b[0x1],_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x31b)]=_0x52913b[_0x169de3(0x142e)](0x2,_0x52913b[_0x169de3(0x1b9e)])['join'](',');}break;case'dialogflowv2':{const _0x4d06e7=_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0xacb)]['split'](',');_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0xbfd)]=_0x4d06e7[0x0],_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x4b2)]=_0x4d06e7[0x1],_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x1b1b)]=_0x4d06e7[0x2],_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x1cbd)]=_0x4d06e7[0x3],_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x31b)]=_0x4d06e7[_0x169de3(0x142e)](0x4,_0x4d06e7[_0x169de3(0x1b9e)])['join'](',');}break;case'amazonlex':{const _0xec6fca=_0x21ce3c['amazonlex'][_0x169de3(0xacb)][_0x169de3(0x282c)](',');_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x1466)]=_0xec6fca[0x0],_0x21ce3c[_0x169de3(0x290d)]['secretaccesskey']=_0xec6fca[0x1],_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x17a2)]=_0xec6fca[0x2],_0x21ce3c[_0x169de3(0x290d)]['botname']=_0xec6fca[0x3],_0x21ce3c['amazonlex']['welcomemessage']=_0xec6fca[_0x169de3(0x142e)](0x4,_0xec6fca[_0x169de3(0x1b9e)])[_0x169de3(0x9a6)](',');}break;case _0x169de3(0x21a9):{const _0x1490e2=_0x21ce3c[_0x169de3(0x290d)]['appdata'][_0x169de3(0x282c)](',');_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x95f)]=isNaN(_0x1490e2[0x0])?_0x1490e2[0x0]:parseInt(_0x1490e2[0x0],0xa),_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x39b)]=_0x1490e2[_0x169de3(0x142e)](0x1,_0x1490e2['length'])[_0x169de3(0x9a6)](',');}break;case'message':_0x21ce3c[_0x169de3(0x290d)]['text']=_0x21ce3c['amazonlex']['appdata'];break;case _0x169de3(0x1979):_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x2494)]=_0x21ce3c[_0x169de3(0x290d)]['appdata'][_0x169de3(0x282c)]('=')[0x0],_0x21ce3c['amazonlex'][_0x169de3(0x1096)]=_0x21ce3c[_0x169de3(0x290d)]['appdata'][_0x169de3(0x282c)]('=')[0x1];break;case _0x169de3(0x1e67):_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x1bd9)]=_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0xacb)];break;default:{const _0x8a0987=_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0xacb)][_0x169de3(0x282c)](',');_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x1466)]=_0x28c606()[_0x169de3(0x940)](_0x8a0987[0x0])?_0x8a0987[0x0]:isNaN(_0x8a0987[0x0])?_0x8a0987[0x0]:parseInt(_0x8a0987[0x0],0xa),_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x1b1)]=_0x28c606()[_0x169de3(0x940)](_0x8a0987[0x1])?_0x8a0987[0x1]:isNaN(_0x8a0987[0x1])?_0x8a0987[0x1]:parseInt(_0x8a0987[0x1],0xa),_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x17a2)]=_0x28c606()[_0x169de3(0x940)](_0x8a0987[0x2])?_0x8a0987[0x2]:isNaN(_0x8a0987[0x2])?_0x8a0987[0x2]:parseInt(_0x8a0987[0x2],0xa),_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x2797)]=_0x28c606()[_0x169de3(0x940)](_0x8a0987[0x3])?_0x8a0987[0x3]:isNaN(_0x8a0987[0x3])?_0x8a0987[0x3]:parseInt(_0x8a0987[0x3],0xa),_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x31b)]=_0x28c606()[_0x169de3(0x940)](_0x8a0987[0x4])?_0x8a0987[0x4]:isNaN(_0x8a0987[0x4])?_0x8a0987[0x4]:parseInt(_0x8a0987[0x4],0xa);}break;}else _0x21ce3c['amazonlex'][_0x169de3(0x17a2)]=_0x169de3(0x211e);_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x2185)]&&_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x2185)]['toLowerCase']()===_0x169de3(0xbce)&&_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x4f4)][_0x169de3(0x2554)]()===_0x169de3(0x20eb)&&(_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x2524)]=_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x267a)]?_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x267a)]['split']('$')[0x0]:undefined,_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x1a9b)]=_0x21ce3c[_0x169de3(0x290d)][_0x169de3(0x1abe)]?_0x169de3(0x2489)+_0x21ce3c['amazonlex']['callerID']:undefined);_0x21ce3c[_0x169de3(0x1533)]=_0x36499d,_0x21ce3c[_0x169de3(0x16cb)]=_0xf9fc25;function _0x36499d(){const _0x4c28da=_0x169de3;_0x21ce3c['errors']=[];const _0x1aec8a=[];_0x21ce3c[_0x4c28da(0x290d)][_0x4c28da(0x2185)]&&_0x21ce3c[_0x4c28da(0x290d)][_0x4c28da(0x2185)][_0x4c28da(0x2554)]()==='outbound'&&_0x21ce3c[_0x4c28da(0x290d)][_0x4c28da(0x4f4)]==='outboundDial'&&(_0x21ce3c[_0x4c28da(0x290d)][_0x4c28da(0x267a)]=_0x1a09ab[_0x4c28da(0x242b)]?(_0x21ce3c[_0x4c28da(0x290d)]['prefix']||'')+_0x4c28da(0x1a75)+_0x1a09ab[_0x4c28da(0x242b)]+'}':(_0x21ce3c[_0x4c28da(0x290d)][_0x4c28da(0x2524)]||'')+_0x4c28da(0x5ad),_0x1a09ab[_0x4c28da(0x1097)]!==_0x4c28da(0x2507)?_0x21ce3c[_0x4c28da(0x290d)]['options'][_0x4c28da(0x1b28)](_0x4c28da(0x13e0))<0x0&&(_0x21ce3c[_0x4c28da(0x290d)][_0x4c28da(0x59e)]+=_0x4c28da(0x13e0)):_0x21ce3c[_0x4c28da(0x290d)][_0x4c28da(0x59e)]=_0x21ce3c[_0x4c28da(0x290d)][_0x4c28da(0x59e)][_0x4c28da(0x1353)](_0x4c28da(0x13e0),''));if(_0x21ce3c['amazonlex'][_0x4c28da(0x4f4)]&&_0x21ce3c['amazonlex'][_0x4c28da(0x4f4)]===_0x4c28da(0x1ad6)){}else switch((_0x21ce3c[_0x4c28da(0x290d)][_0x4c28da(0x16e1)]||_0x21ce3c['amazonlex']['appType'])[_0x4c28da(0x2554)]()){case'set':_0x21ce3c[_0x4c28da(0x290d)][_0x4c28da(0xacb)]=_0x21ce3c['amazonlex'][_0x4c28da(0x2494)]+'='+_0x21ce3c[_0x4c28da(0x290d)]['value'];break;case'custom':break;default:_0x1aec8a[0x0]=_0x21ce3c[_0x4c28da(0x290d)][_0x4c28da(0x1466)],_0x1aec8a[0x1]=_0x21ce3c[_0x4c28da(0x290d)][_0x4c28da(0x1b1)],_0x1aec8a[0x2]=_0x21ce3c['amazonlex'][_0x4c28da(0x17a2)],_0x1aec8a[0x3]=_0x21ce3c[_0x4c28da(0x290d)][_0x4c28da(0x2797)],_0x1aec8a[0x4]=_0x21ce3c['amazonlex'][_0x4c28da(0x31b)],_0x21ce3c['amazonlex'][_0x4c28da(0xacb)]=_0x1aec8a[_0x4c28da(0x9a6)](',');}_0xf9fc25(_0x21ce3c['amazonlex']);}function _0xf9fc25(_0x37c5bb){_0x388d5f['hide'](_0x37c5bb);}}const _0x2915ec=_0x472ff9;;_0x29cca4[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa15),_0x49a1e3(0x26c3),'api',_0x49a1e3(0xdcf),'crudPermissions'];function _0x29cca4(_0x58c671,_0x257945,_0x1c0b5c,_0x5c522e,_0x313410,_0x1d1db3,_0x5e1e9f,_0x5d0908){const _0x42fa2d=_0x49a1e3,_0x2ff570=this;_0x2ff570[_0x42fa2d(0x1d3d)]=_0x5e1e9f[_0x42fa2d(0x808)](),_0x2ff570[_0x42fa2d(0xbae)]=[],_0x2ff570[_0x42fa2d(0x2021)]=_0x42fa2d(0x17bd)+(_0x5c522e[_0x42fa2d(0x4f4)]||_0x5c522e[_0x42fa2d(0x16e1)])[_0x42fa2d(0xa3c)](),_0x2ff570[_0x42fa2d(0x21a9)]=angular[_0x42fa2d(0x289e)](_0x5c522e),_0x2ff570[_0x42fa2d(0x402)]=_0x5d0908,_0x2ff570[_0x42fa2d(0x6c2)]={};if(_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0xacb)])switch(_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0x4f4)]?_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0x4f4)][_0x42fa2d(0x2554)]():_0x2ff570[_0x42fa2d(0x21a9)]['app']['toLowerCase']()){case _0x42fa2d(0x1ad6):break;case _0x42fa2d(0x1084):{const _0x50109f=_0x2ff570['autoreply'][_0x42fa2d(0xacb)][_0x42fa2d(0x282c)](',');_0x2ff570['autoreply'][_0x42fa2d(0x2125)]=_0x50109f[0x0],_0x2ff570[_0x42fa2d(0x21a9)]['language']=_0x50109f[0x1],_0x2ff570['autoreply'][_0x42fa2d(0x31b)]=_0x50109f[_0x42fa2d(0x142e)](0x2,_0x50109f[_0x42fa2d(0x1b9e)])[_0x42fa2d(0x9a6)](',');}break;case'dialogflowv2':{const _0x53e573=_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0xacb)][_0x42fa2d(0x282c)](',');_0x2ff570['autoreply'][_0x42fa2d(0xbfd)]=_0x53e573[0x0],_0x2ff570['autoreply']['clientEmail']=_0x53e573[0x1],_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0x1b1b)]=_0x53e573[0x2],_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0x1cbd)]=_0x53e573[0x3],_0x2ff570['autoreply']['welcomemessage']=_0x53e573[_0x42fa2d(0x142e)](0x4,_0x53e573[_0x42fa2d(0x1b9e)])[_0x42fa2d(0x9a6)](',');}break;case _0x42fa2d(0x290d):{const _0x555b78=_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0xacb)][_0x42fa2d(0x282c)](',');_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0x1466)]=_0x555b78[0x0],_0x2ff570['autoreply'][_0x42fa2d(0x1b1)]=_0x555b78[0x1],_0x2ff570[_0x42fa2d(0x21a9)]['lexregion']=_0x555b78[0x2],_0x2ff570[_0x42fa2d(0x21a9)]['botname']=_0x555b78[0x3],_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0x31b)]=_0x555b78[_0x42fa2d(0x142e)](0x4,_0x555b78['length'])[_0x42fa2d(0x9a6)](',');}break;case _0x42fa2d(0x21a9):{const _0x5efbd8=_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0xacb)][_0x42fa2d(0x282c)](',');_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0x95f)]=isNaN(_0x5efbd8[0x0])?_0x5efbd8[0x0]:parseInt(_0x5efbd8[0x0],0xa),_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0x39b)]=_0x5efbd8[_0x42fa2d(0x142e)](0x1,_0x5efbd8[_0x42fa2d(0x1b9e)])['join'](',');}break;case'message':_0x2ff570['autoreply'][_0x42fa2d(0x39b)]=_0x2ff570[_0x42fa2d(0x21a9)]['appdata'];break;case'set':_0x2ff570[_0x42fa2d(0x21a9)]['name']=_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0xacb)][_0x42fa2d(0x282c)]('=')[0x0],_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0x1096)]=_0x2ff570['autoreply'][_0x42fa2d(0xacb)]['split']('=')[0x1];break;case _0x42fa2d(0x1e67):_0x2ff570['autoreply'][_0x42fa2d(0x1bd9)]=_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0xacb)];break;default:{const _0x450942=_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0xacb)][_0x42fa2d(0x282c)](',');_0x2ff570[_0x42fa2d(0x21a9)]['times']=_0x28c606()[_0x42fa2d(0x940)](_0x450942[0x0])?_0x450942[0x0]:isNaN(_0x450942[0x0])?_0x450942[0x0]:parseInt(_0x450942[0x0],0xa),_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0x39b)]=_0x28c606()[_0x42fa2d(0x940)](_0x450942[0x1])?_0x450942[0x1]:isNaN(_0x450942[0x1])?_0x450942[0x1]:parseInt(_0x450942[0x1],0xa);}break;}else _0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0x95f)]=0x1;_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0x2185)]&&_0x2ff570[_0x42fa2d(0x21a9)]['type'][_0x42fa2d(0x2554)]()===_0x42fa2d(0xbce)&&_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0x4f4)][_0x42fa2d(0x2554)]()==='outbounddial'&&(_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0x2524)]=_0x2ff570[_0x42fa2d(0x21a9)]['phone']?_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0x267a)][_0x42fa2d(0x282c)]('$')[0x0]:undefined,_0x2ff570[_0x42fa2d(0x21a9)][_0x42fa2d(0x1a9b)]=_0x2ff570['autoreply'][_0x42fa2d(0x1abe)]?'CALLERID(all)='+_0x2ff570[_0x42fa2d(0x21a9)]['callerID']:undefined);_0x2ff570['saveChatWebsiteApp']=_0x11c840,_0x2ff570['closeDialog']=_0x399315;function _0x11c840(){const _0x24abd0=_0x42fa2d;_0x2ff570[_0x24abd0(0xbae)]=[];const _0x51ccee=[];_0x2ff570[_0x24abd0(0x21a9)][_0x24abd0(0x2185)]&&_0x2ff570[_0x24abd0(0x21a9)][_0x24abd0(0x2185)]['toLowerCase']()===_0x24abd0(0xbce)&&_0x2ff570[_0x24abd0(0x21a9)][_0x24abd0(0x4f4)]==='outboundDial'&&(_0x2ff570['autoreply'][_0x24abd0(0x267a)]=_0x313410[_0x24abd0(0x242b)]?(_0x2ff570['autoreply']['prefix']||'')+'${EXTEN:'+_0x313410['cutdigits']+'}':(_0x2ff570[_0x24abd0(0x21a9)]['prefix']||'')+_0x24abd0(0x5ad),_0x313410['recordingFormat']!=='none'?_0x2ff570[_0x24abd0(0x21a9)]['options'][_0x24abd0(0x1b28)](_0x24abd0(0x13e0))<0x0&&(_0x2ff570[_0x24abd0(0x21a9)][_0x24abd0(0x59e)]+=_0x24abd0(0x13e0)):_0x2ff570['autoreply'][_0x24abd0(0x59e)]=_0x2ff570[_0x24abd0(0x21a9)][_0x24abd0(0x59e)][_0x24abd0(0x1353)](_0x24abd0(0x13e0),''));if(_0x2ff570[_0x24abd0(0x21a9)]['appType']&&_0x2ff570[_0x24abd0(0x21a9)][_0x24abd0(0x4f4)]==='custom'){}else switch((_0x2ff570[_0x24abd0(0x21a9)]['app']||_0x2ff570[_0x24abd0(0x21a9)][_0x24abd0(0x4f4)])[_0x24abd0(0x2554)]()){case _0x24abd0(0x1979):_0x2ff570[_0x24abd0(0x21a9)]['appdata']=_0x2ff570[_0x24abd0(0x21a9)][_0x24abd0(0x2494)]+'='+_0x2ff570[_0x24abd0(0x21a9)][_0x24abd0(0x1096)];break;case _0x24abd0(0x1ad6):break;default:_0x51ccee[0x0]=_0x2ff570['autoreply'][_0x24abd0(0x95f)],_0x51ccee[0x1]=_0x2ff570[_0x24abd0(0x21a9)][_0x24abd0(0x39b)],_0x2ff570[_0x24abd0(0x21a9)][_0x24abd0(0xacb)]=_0x51ccee[_0x24abd0(0x9a6)](',');}_0x399315(_0x2ff570[_0x24abd0(0x21a9)]);}function _0x399315(_0x1ddbfd){_0x58c671['hide'](_0x1ddbfd);}}const _0x3921dd=_0x29cca4;;_0x211d2b['$inject']=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0xa15),_0x49a1e3(0x26c3),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x211d2b(_0x2c40ff,_0x4bb385,_0x435c85,_0x5004a8,_0x412489,_0x39ecf8,_0x147435,_0x3f04fb){const _0x2f2365=_0x49a1e3,_0x263dc2=this;_0x263dc2[_0x2f2365(0x1d3d)]=_0x147435[_0x2f2365(0x808)](),_0x263dc2[_0x2f2365(0xbae)]=[],_0x263dc2['title']=_0x2f2365(0x17bd)+(_0x5004a8[_0x2f2365(0x4f4)]||_0x5004a8[_0x2f2365(0x16e1)])['toUpperCase'](),_0x263dc2['close']=angular[_0x2f2365(0x289e)](_0x5004a8),_0x263dc2['crudPermissions']=_0x3f04fb,_0x263dc2[_0x2f2365(0x6c2)]={};if(_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0xacb)])switch(_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x4f4)]?_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x4f4)][_0x2f2365(0x2554)]():_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x16e1)][_0x2f2365(0x2554)]()){case'custom':break;case'dialogflow':{const _0x121fbf=_0x263dc2[_0x2f2365(0x67b)]['appdata']['split'](',');_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x2125)]=_0x121fbf[0x0],_0x263dc2['close'][_0x2f2365(0x1cbd)]=_0x121fbf[0x1],_0x263dc2['close'][_0x2f2365(0x31b)]=_0x121fbf[_0x2f2365(0x142e)](0x2,_0x121fbf[_0x2f2365(0x1b9e)])[_0x2f2365(0x9a6)](',');}break;case _0x2f2365(0x1b1a):{const _0x34b254=_0x263dc2[_0x2f2365(0x67b)]['appdata']['split'](',');_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0xbfd)]=_0x34b254[0x0],_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x4b2)]=_0x34b254[0x1],_0x263dc2['close']['privateKey']=_0x34b254[0x2],_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x1cbd)]=_0x34b254[0x3],_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x31b)]=_0x34b254[_0x2f2365(0x142e)](0x4,_0x34b254['length'])[_0x2f2365(0x9a6)](',');}break;case'amazonlex':{const _0x31f3b6=_0x263dc2[_0x2f2365(0x67b)]['appdata'][_0x2f2365(0x282c)](',');_0x263dc2[_0x2f2365(0x67b)]['accesskeyid']=_0x31f3b6[0x0],_0x263dc2['close'][_0x2f2365(0x1b1)]=_0x31f3b6[0x1],_0x263dc2['close'][_0x2f2365(0x17a2)]=_0x31f3b6[0x2],_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x2797)]=_0x31f3b6[0x3],_0x263dc2['close'][_0x2f2365(0x31b)]=_0x31f3b6[_0x2f2365(0x142e)](0x4,_0x31f3b6[_0x2f2365(0x1b9e)])[_0x2f2365(0x9a6)](',');}break;case _0x2f2365(0x21a9):{const _0x5807de=_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0xacb)]['split'](',');_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x95f)]=isNaN(_0x5807de[0x0])?_0x5807de[0x0]:parseInt(_0x5807de[0x0],0xa),_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x39b)]=_0x5807de[_0x2f2365(0x142e)](0x1,_0x5807de[_0x2f2365(0x1b9e)])[_0x2f2365(0x9a6)](',');}break;case'message':_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x39b)]=_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0xacb)];break;case _0x2f2365(0x1979):_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x2494)]=_0x263dc2[_0x2f2365(0x67b)]['appdata'][_0x2f2365(0x282c)]('=')[0x0],_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x1096)]=_0x263dc2[_0x2f2365(0x67b)]['appdata'][_0x2f2365(0x282c)]('=')[0x1];break;case _0x2f2365(0x1e67):_0x263dc2[_0x2f2365(0x67b)]['project']=_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0xacb)];break;default:{const _0x5ebf9b=_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0xacb)][_0x2f2365(0x282c)](',');_0x263dc2[_0x2f2365(0x67b)]['disposition']=_0x28c606()[_0x2f2365(0x940)](_0x5ebf9b[0x0])?_0x5ebf9b[0x0]:isNaN(_0x5ebf9b[0x0])?_0x5ebf9b[0x0]:parseInt(_0x5ebf9b[0x0],0xa);}break;}else{}_0x263dc2['close'][_0x2f2365(0x2185)]&&_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x2185)][_0x2f2365(0x2554)]()===_0x2f2365(0xbce)&&_0x263dc2['close'][_0x2f2365(0x4f4)][_0x2f2365(0x2554)]()==='outbounddial'&&(_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x2524)]=_0x263dc2[_0x2f2365(0x67b)]['phone']?_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x267a)][_0x2f2365(0x282c)]('$')[0x0]:undefined,_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x1a9b)]=_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x1abe)]?'CALLERID(all)='+_0x263dc2[_0x2f2365(0x67b)][_0x2f2365(0x1abe)]:undefined);_0x263dc2['saveChatWebsiteApp']=_0x1bd1b0,_0x263dc2[_0x2f2365(0x16cb)]=_0x56ea5d;function _0x1bd1b0(){const _0x25c892=_0x2f2365;_0x263dc2[_0x25c892(0xbae)]=[];const _0x38b4fa=[];_0x263dc2[_0x25c892(0x67b)][_0x25c892(0x2185)]&&_0x263dc2[_0x25c892(0x67b)][_0x25c892(0x2185)][_0x25c892(0x2554)]()===_0x25c892(0xbce)&&_0x263dc2[_0x25c892(0x67b)][_0x25c892(0x4f4)]===_0x25c892(0x17b6)&&(_0x263dc2[_0x25c892(0x67b)][_0x25c892(0x267a)]=_0x412489[_0x25c892(0x242b)]?(_0x263dc2['close']['prefix']||'')+_0x25c892(0x1a75)+_0x412489['cutdigits']+'}':(_0x263dc2[_0x25c892(0x67b)]['prefix']||'')+_0x25c892(0x5ad),_0x412489[_0x25c892(0x1097)]!=='none'?_0x263dc2[_0x25c892(0x67b)][_0x25c892(0x59e)]['indexOf'](_0x25c892(0x13e0))<0x0&&(_0x263dc2[_0x25c892(0x67b)][_0x25c892(0x59e)]+='U(xcally-mixmonitor-context)'):_0x263dc2[_0x25c892(0x67b)][_0x25c892(0x59e)]=_0x263dc2['close'][_0x25c892(0x59e)]['replace']('U(xcally-mixmonitor-context)',''));if(_0x263dc2['close'][_0x25c892(0x4f4)]&&_0x263dc2['close'][_0x25c892(0x4f4)]===_0x25c892(0x1ad6)){}else switch((_0x263dc2['close'][_0x25c892(0x16e1)]||_0x263dc2[_0x25c892(0x67b)][_0x25c892(0x4f4)])[_0x25c892(0x2554)]()){case _0x25c892(0x1979):_0x263dc2['close'][_0x25c892(0xacb)]=_0x263dc2['close'][_0x25c892(0x2494)]+'='+_0x263dc2['close'][_0x25c892(0x1096)];break;case'custom':break;default:_0x38b4fa[0x0]=_0x263dc2[_0x25c892(0x67b)]['disposition'],_0x263dc2[_0x25c892(0x67b)][_0x25c892(0xacb)]=_0x38b4fa[_0x25c892(0x9a6)](',');}_0x56ea5d(_0x263dc2[_0x25c892(0x67b)]);}function _0x56ea5d(_0x3b7524){const _0xfbdec9=_0x2f2365;_0x2c40ff[_0xfbdec9(0x268e)](_0x3b7524);}}const _0x285333=_0x211d2b;;_0x7133d6[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0xa15),_0x49a1e3(0x26c3),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'crudPermissions'];function _0x7133d6(_0x85a09c,_0x9a6f3,_0x370653,_0x1b2fbf,_0x211e21,_0x799ab6,_0x58b32e,_0x20ed82){const _0x2d6cff=_0x49a1e3,_0x2de4f5=this;_0x2de4f5['currentUser']=_0x58b32e[_0x2d6cff(0x808)](),_0x2de4f5[_0x2d6cff(0xbae)]=[],_0x2de4f5['title']=_0x2d6cff(0x17bd)+(_0x1b2fbf[_0x2d6cff(0x4f4)]||_0x1b2fbf['app'])[_0x2d6cff(0xa3c)](),_0x2de4f5[_0x2d6cff(0x1084)]=angular[_0x2d6cff(0x289e)](_0x1b2fbf),_0x2de4f5[_0x2d6cff(0x402)]=_0x20ed82,_0x2de4f5[_0x2d6cff(0x6c2)]={};if(_0x2de4f5['dialogflow'][_0x2d6cff(0xacb)])switch(_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0x4f4)]?_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0x4f4)]['toLowerCase']():_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0x16e1)]['toLowerCase']()){case _0x2d6cff(0x1ad6):break;case _0x2d6cff(0x1084):{const _0x190539=_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0xacb)][_0x2d6cff(0x282c)](',');_0x2de4f5['dialogflow'][_0x2d6cff(0x2125)]=_0x190539[0x0],_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0x1cbd)]=_0x190539[0x1],_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0x31b)]=_0x190539[_0x2d6cff(0x142e)](0x2,_0x190539[_0x2d6cff(0x1b9e)])[_0x2d6cff(0x9a6)](',');}break;case _0x2d6cff(0x1b1a):{const _0x9fd7b9=_0x2de4f5['dialogflow'][_0x2d6cff(0xacb)]['split'](',');_0x2de4f5[_0x2d6cff(0x1084)]['projectId']=_0x9fd7b9[0x0],_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0x4b2)]=_0x9fd7b9[0x1],_0x2de4f5['dialogflow'][_0x2d6cff(0x1b1b)]=_0x9fd7b9[0x2],_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0x1cbd)]=_0x9fd7b9[0x3],_0x2de4f5['dialogflow'][_0x2d6cff(0x31b)]=_0x9fd7b9['slice'](0x4,_0x9fd7b9[_0x2d6cff(0x1b9e)])[_0x2d6cff(0x9a6)](',');}break;case _0x2d6cff(0x290d):{const _0x3a1e59=_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0xacb)][_0x2d6cff(0x282c)](',');_0x2de4f5['dialogflow'][_0x2d6cff(0x1466)]=_0x3a1e59[0x0],_0x2de4f5[_0x2d6cff(0x1084)]['secretaccesskey']=_0x3a1e59[0x1],_0x2de4f5[_0x2d6cff(0x1084)]['lexregion']=_0x3a1e59[0x2],_0x2de4f5[_0x2d6cff(0x1084)]['botname']=_0x3a1e59[0x3],_0x2de4f5[_0x2d6cff(0x1084)]['welcomemessage']=_0x3a1e59[_0x2d6cff(0x142e)](0x4,_0x3a1e59['length'])[_0x2d6cff(0x9a6)](',');}break;case _0x2d6cff(0x21a9):{const _0x156f3a=_0x2de4f5['dialogflow'][_0x2d6cff(0xacb)][_0x2d6cff(0x282c)](',');_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0x95f)]=isNaN(_0x156f3a[0x0])?_0x156f3a[0x0]:parseInt(_0x156f3a[0x0],0xa),_0x2de4f5['dialogflow'][_0x2d6cff(0x39b)]=_0x156f3a[_0x2d6cff(0x142e)](0x1,_0x156f3a[_0x2d6cff(0x1b9e)])[_0x2d6cff(0x9a6)](',');}break;case _0x2d6cff(0x18ca):_0x2de4f5['dialogflow']['text']=_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0xacb)];break;case'set':_0x2de4f5[_0x2d6cff(0x1084)]['name']=_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0xacb)]['split']('=')[0x0],_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0x1096)]=_0x2de4f5['dialogflow'][_0x2d6cff(0xacb)]['split']('=')[0x1];break;case'agi':_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0x1bd9)]=_0x2de4f5[_0x2d6cff(0x1084)]['appdata'];break;default:{const _0x454665=_0x2de4f5['dialogflow'][_0x2d6cff(0xacb)][_0x2d6cff(0x282c)](',');_0x2de4f5[_0x2d6cff(0x1084)]['key']=_0x28c606()[_0x2d6cff(0x940)](_0x454665[0x0])?_0x454665[0x0]:isNaN(_0x454665[0x0])?_0x454665[0x0]:parseInt(_0x454665[0x0],0xa),_0x2de4f5['dialogflow'][_0x2d6cff(0x1cbd)]=_0x28c606()[_0x2d6cff(0x940)](_0x454665[0x1])?_0x454665[0x1]:isNaN(_0x454665[0x1])?_0x454665[0x1]:parseInt(_0x454665[0x1],0xa),_0x2de4f5['dialogflow'][_0x2d6cff(0x31b)]=_0x28c606()[_0x2d6cff(0x940)](_0x454665[0x2])?_0x454665[0x2]:isNaN(_0x454665[0x2])?_0x454665[0x2]:parseInt(_0x454665[0x2],0xa);}break;}else _0x2de4f5['dialogflow'][_0x2d6cff(0x1cbd)]='en';_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0x2185)]&&_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0x2185)][_0x2d6cff(0x2554)]()===_0x2d6cff(0xbce)&&_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0x4f4)][_0x2d6cff(0x2554)]()===_0x2d6cff(0x20eb)&&(_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0x2524)]=_0x2de4f5[_0x2d6cff(0x1084)]['phone']?_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0x267a)][_0x2d6cff(0x282c)]('$')[0x0]:undefined,_0x2de4f5[_0x2d6cff(0x1084)]['callerId']=_0x2de4f5[_0x2d6cff(0x1084)][_0x2d6cff(0x1abe)]?_0x2d6cff(0x2489)+_0x2de4f5['dialogflow'][_0x2d6cff(0x1abe)]:undefined);_0x2de4f5['saveChatWebsiteApp']=_0x532b0d,_0x2de4f5[_0x2d6cff(0x16cb)]=_0x7b01d;function _0x532b0d(){const _0x3cdb8d=_0x2d6cff;_0x2de4f5['errors']=[];const _0x3ed41b=[];_0x2de4f5['dialogflow'][_0x3cdb8d(0x2185)]&&_0x2de4f5[_0x3cdb8d(0x1084)][_0x3cdb8d(0x2185)][_0x3cdb8d(0x2554)]()===_0x3cdb8d(0xbce)&&_0x2de4f5[_0x3cdb8d(0x1084)][_0x3cdb8d(0x4f4)]===_0x3cdb8d(0x17b6)&&(_0x2de4f5[_0x3cdb8d(0x1084)][_0x3cdb8d(0x267a)]=_0x211e21[_0x3cdb8d(0x242b)]?(_0x2de4f5[_0x3cdb8d(0x1084)]['prefix']||'')+_0x3cdb8d(0x1a75)+_0x211e21[_0x3cdb8d(0x242b)]+'}':(_0x2de4f5[_0x3cdb8d(0x1084)][_0x3cdb8d(0x2524)]||'')+_0x3cdb8d(0x5ad),_0x211e21[_0x3cdb8d(0x1097)]!==_0x3cdb8d(0x2507)?_0x2de4f5[_0x3cdb8d(0x1084)][_0x3cdb8d(0x59e)][_0x3cdb8d(0x1b28)](_0x3cdb8d(0x13e0))<0x0&&(_0x2de4f5[_0x3cdb8d(0x1084)][_0x3cdb8d(0x59e)]+='U(xcally-mixmonitor-context)'):_0x2de4f5['dialogflow'][_0x3cdb8d(0x59e)]=_0x2de4f5[_0x3cdb8d(0x1084)]['options'][_0x3cdb8d(0x1353)](_0x3cdb8d(0x13e0),''));if(_0x2de4f5['dialogflow'][_0x3cdb8d(0x4f4)]&&_0x2de4f5['dialogflow'][_0x3cdb8d(0x4f4)]===_0x3cdb8d(0x1ad6)){}else switch((_0x2de4f5[_0x3cdb8d(0x1084)][_0x3cdb8d(0x16e1)]||_0x2de4f5['dialogflow'][_0x3cdb8d(0x4f4)])[_0x3cdb8d(0x2554)]()){case _0x3cdb8d(0x1979):_0x2de4f5[_0x3cdb8d(0x1084)][_0x3cdb8d(0xacb)]=_0x2de4f5[_0x3cdb8d(0x1084)][_0x3cdb8d(0x2494)]+'='+_0x2de4f5[_0x3cdb8d(0x1084)][_0x3cdb8d(0x1096)];break;case _0x3cdb8d(0x1ad6):break;default:_0x3ed41b[0x0]=_0x2de4f5['dialogflow'][_0x3cdb8d(0x2125)],_0x3ed41b[0x1]=_0x2de4f5[_0x3cdb8d(0x1084)][_0x3cdb8d(0x1cbd)],_0x3ed41b[0x2]=_0x2de4f5[_0x3cdb8d(0x1084)][_0x3cdb8d(0x31b)],_0x2de4f5['dialogflow'][_0x3cdb8d(0xacb)]=_0x3ed41b[_0x3cdb8d(0x9a6)](',');}_0x7b01d(_0x2de4f5[_0x3cdb8d(0x1084)]);}function _0x7b01d(_0x4114c5){const _0xe943bf=_0x2d6cff;_0x85a09c[_0xe943bf(0x268e)](_0x4114c5);}}const _0x4643bc=_0x7133d6;;_0x2eb9f1[_0x49a1e3(0x1e73)]=['$mdDialog','$q',_0x49a1e3(0x680),_0x49a1e3(0xa15),_0x49a1e3(0x26c3),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'crudPermissions'];function _0x2eb9f1(_0x231cc8,_0x550b68,_0x5c95d4,_0x8e6398,_0x2955d7,_0x5093aa,_0x474a76,_0x47460e){const _0x3d1065=_0x49a1e3,_0x2daf49=this;_0x2daf49[_0x3d1065(0x1d3d)]=_0x474a76[_0x3d1065(0x808)](),_0x2daf49['errors']=[],_0x2daf49[_0x3d1065(0x2021)]='CHAT.EDIT_'+(_0x8e6398[_0x3d1065(0x4f4)]||_0x8e6398[_0x3d1065(0x16e1)])['toUpperCase'](),_0x2daf49['gotoif']=angular[_0x3d1065(0x289e)](_0x8e6398),_0x2daf49[_0x3d1065(0x402)]=_0x47460e,_0x2daf49[_0x3d1065(0x6c2)]={};if(_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0xacb)])switch(_0x2daf49['gotoif'][_0x3d1065(0x4f4)]?_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x4f4)]['toLowerCase']():_0x2daf49['gotoif'][_0x3d1065(0x16e1)]['toLowerCase']()){case'custom':break;case _0x3d1065(0x1084):{const _0xbcc937=_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0xacb)][_0x3d1065(0x282c)](',');_0x2daf49['gotoif']['key']=_0xbcc937[0x0],_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x1cbd)]=_0xbcc937[0x1],_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x31b)]=_0xbcc937['slice'](0x2,_0xbcc937[_0x3d1065(0x1b9e)])[_0x3d1065(0x9a6)](',');}break;case _0x3d1065(0x1b1a):{const _0x2d3451=_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0xacb)]['split'](',');_0x2daf49['gotoif'][_0x3d1065(0xbfd)]=_0x2d3451[0x0],_0x2daf49['gotoif']['clientEmail']=_0x2d3451[0x1],_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x1b1b)]=_0x2d3451[0x2],_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x1cbd)]=_0x2d3451[0x3],_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x31b)]=_0x2d3451[_0x3d1065(0x142e)](0x4,_0x2d3451[_0x3d1065(0x1b9e)])[_0x3d1065(0x9a6)](',');}break;case _0x3d1065(0x290d):{const _0x36e65d=_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0xacb)]['split'](',');_0x2daf49['gotoif']['accesskeyid']=_0x36e65d[0x0],_0x2daf49['gotoif'][_0x3d1065(0x1b1)]=_0x36e65d[0x1],_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x17a2)]=_0x36e65d[0x2],_0x2daf49['gotoif']['botname']=_0x36e65d[0x3],_0x2daf49[_0x3d1065(0x614)]['welcomemessage']=_0x36e65d[_0x3d1065(0x142e)](0x4,_0x36e65d[_0x3d1065(0x1b9e)])['join'](',');}break;case'autoreply':{const _0x4702eb=_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0xacb)][_0x3d1065(0x282c)](',');_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x95f)]=isNaN(_0x4702eb[0x0])?_0x4702eb[0x0]:parseInt(_0x4702eb[0x0],0xa),_0x2daf49['gotoif']['text']=_0x4702eb[_0x3d1065(0x142e)](0x1,_0x4702eb[_0x3d1065(0x1b9e)])[_0x3d1065(0x9a6)](',');}break;case'message':_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x39b)]=_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0xacb)];break;case _0x3d1065(0x1979):_0x2daf49[_0x3d1065(0x614)]['name']=_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0xacb)][_0x3d1065(0x282c)]('=')[0x0],_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x1096)]=_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0xacb)]['split']('=')[0x1];break;case _0x3d1065(0x1e67):_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x1bd9)]=_0x2daf49['gotoif'][_0x3d1065(0xacb)];break;default:{const _0x2b8535=_0x2daf49['gotoif'][_0x3d1065(0xacb)][_0x3d1065(0x282c)](',');_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0xeea)]=_0x28c606()['isEmpty'](_0x2b8535[0x0])?_0x2b8535[0x0]:isNaN(_0x2b8535[0x0])?_0x2b8535[0x0]:parseInt(_0x2b8535[0x0],0xa),_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x108f)]=_0x28c606()['isEmpty'](_0x2b8535[0x1])?_0x2b8535[0x1]:isNaN(_0x2b8535[0x1])?_0x2b8535[0x1]:parseInt(_0x2b8535[0x1],0xa),_0x2daf49['gotoif'][_0x3d1065(0x1d32)]=_0x28c606()['isEmpty'](_0x2b8535[0x2])?_0x2b8535[0x2]:isNaN(_0x2b8535[0x2])?_0x2b8535[0x2]:parseInt(_0x2b8535[0x2],0xa);}break;}else{}_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x2185)]&&_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x2185)][_0x3d1065(0x2554)]()===_0x3d1065(0xbce)&&_0x2daf49['gotoif'][_0x3d1065(0x4f4)]['toLowerCase']()===_0x3d1065(0x20eb)&&(_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x2524)]=_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x267a)]?_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x267a)][_0x3d1065(0x282c)]('$')[0x0]:undefined,_0x2daf49['gotoif'][_0x3d1065(0x1a9b)]=_0x2daf49['gotoif'][_0x3d1065(0x1abe)]?_0x3d1065(0x2489)+_0x2daf49[_0x3d1065(0x614)][_0x3d1065(0x1abe)]:undefined);_0x2daf49[_0x3d1065(0x1533)]=_0xd8ed45,_0x2daf49[_0x3d1065(0x16cb)]=_0x147a26;function _0xd8ed45(){const _0x573580=_0x3d1065;_0x2daf49['errors']=[];const _0xc9aa7d=[];_0x2daf49['gotoif']['type']&&_0x2daf49[_0x573580(0x614)][_0x573580(0x2185)]['toLowerCase']()===_0x573580(0xbce)&&_0x2daf49[_0x573580(0x614)][_0x573580(0x4f4)]===_0x573580(0x17b6)&&(_0x2daf49[_0x573580(0x614)][_0x573580(0x267a)]=_0x2955d7[_0x573580(0x242b)]?(_0x2daf49[_0x573580(0x614)]['prefix']||'')+_0x573580(0x1a75)+_0x2955d7[_0x573580(0x242b)]+'}':(_0x2daf49[_0x573580(0x614)][_0x573580(0x2524)]||'')+_0x573580(0x5ad),_0x2955d7[_0x573580(0x1097)]!=='none'?_0x2daf49['gotoif']['options'][_0x573580(0x1b28)](_0x573580(0x13e0))<0x0&&(_0x2daf49[_0x573580(0x614)]['options']+=_0x573580(0x13e0)):_0x2daf49['gotoif'][_0x573580(0x59e)]=_0x2daf49[_0x573580(0x614)][_0x573580(0x59e)][_0x573580(0x1353)](_0x573580(0x13e0),''));if(_0x2daf49['gotoif'][_0x573580(0x4f4)]&&_0x2daf49[_0x573580(0x614)][_0x573580(0x4f4)]===_0x573580(0x1ad6)){}else switch((_0x2daf49[_0x573580(0x614)][_0x573580(0x16e1)]||_0x2daf49[_0x573580(0x614)][_0x573580(0x4f4)])[_0x573580(0x2554)]()){case _0x573580(0x1979):_0x2daf49[_0x573580(0x614)][_0x573580(0xacb)]=_0x2daf49[_0x573580(0x614)]['name']+'='+_0x2daf49[_0x573580(0x614)][_0x573580(0x1096)];break;case _0x573580(0x1ad6):break;default:_0xc9aa7d[0x0]=_0x2daf49[_0x573580(0x614)]['condition'],_0xc9aa7d[0x1]=_0x2daf49[_0x573580(0x614)][_0x573580(0x108f)],_0xc9aa7d[0x2]=_0x2daf49[_0x573580(0x614)][_0x573580(0x1d32)],_0x2daf49[_0x573580(0x614)][_0x573580(0xacb)]=_0xc9aa7d['join'](',');}_0x147a26(_0x2daf49[_0x573580(0x614)]);}function _0x147a26(_0x3e36f2){const _0x53133b=_0x3d1065;_0x231cc8[_0x53133b(0x268e)](_0x3e36f2);}}const _0x2294f8=_0x2eb9f1;;_0x3dabe9[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),'chatWebsiteApp',_0x49a1e3(0x26c3),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x3dabe9(_0x37ed90,_0x406673,_0x4c07b6,_0x35c2db,_0x1359a9,_0x4fe932,_0xbb8faa,_0x374158){const _0x111ab3=_0x49a1e3,_0x5b395a=this;_0x5b395a[_0x111ab3(0x1d3d)]=_0xbb8faa[_0x111ab3(0x808)](),_0x5b395a['errors']=[],_0x5b395a[_0x111ab3(0x2021)]='CHAT.EDIT_'+(_0x35c2db[_0x111ab3(0x4f4)]||_0x35c2db[_0x111ab3(0x16e1)])[_0x111ab3(0xa3c)](),_0x5b395a[_0x111ab3(0x2046)]=angular[_0x111ab3(0x289e)](_0x35c2db),_0x5b395a['crudPermissions']=_0x374158,_0x5b395a[_0x111ab3(0x6c2)]={};if(_0x5b395a[_0x111ab3(0x2046)]['appdata'])switch(_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0x4f4)]?_0x5b395a['gotop'][_0x111ab3(0x4f4)]['toLowerCase']():_0x5b395a['gotop'][_0x111ab3(0x16e1)][_0x111ab3(0x2554)]()){case _0x111ab3(0x1ad6):break;case _0x111ab3(0x1084):{const _0x2eb652=_0x5b395a[_0x111ab3(0x2046)]['appdata'][_0x111ab3(0x282c)](',');_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0x2125)]=_0x2eb652[0x0],_0x5b395a[_0x111ab3(0x2046)]['language']=_0x2eb652[0x1],_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0x31b)]=_0x2eb652[_0x111ab3(0x142e)](0x2,_0x2eb652['length'])[_0x111ab3(0x9a6)](',');}break;case _0x111ab3(0x1b1a):{const _0x4e76e0=_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0xacb)][_0x111ab3(0x282c)](',');_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0xbfd)]=_0x4e76e0[0x0],_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0x4b2)]=_0x4e76e0[0x1],_0x5b395a['gotop'][_0x111ab3(0x1b1b)]=_0x4e76e0[0x2],_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0x1cbd)]=_0x4e76e0[0x3],_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0x31b)]=_0x4e76e0['slice'](0x4,_0x4e76e0[_0x111ab3(0x1b9e)])[_0x111ab3(0x9a6)](',');}break;case'amazonlex':{const _0x2a03a9=_0x5b395a[_0x111ab3(0x2046)]['appdata']['split'](',');_0x5b395a[_0x111ab3(0x2046)]['accesskeyid']=_0x2a03a9[0x0],_0x5b395a[_0x111ab3(0x2046)]['secretaccesskey']=_0x2a03a9[0x1],_0x5b395a['gotop'][_0x111ab3(0x17a2)]=_0x2a03a9[0x2],_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0x2797)]=_0x2a03a9[0x3],_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0x31b)]=_0x2a03a9[_0x111ab3(0x142e)](0x4,_0x2a03a9[_0x111ab3(0x1b9e)])['join'](',');}break;case'autoreply':{const _0x5eaa9c=_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0xacb)][_0x111ab3(0x282c)](',');_0x5b395a[_0x111ab3(0x2046)]['times']=isNaN(_0x5eaa9c[0x0])?_0x5eaa9c[0x0]:parseInt(_0x5eaa9c[0x0],0xa),_0x5b395a['gotop']['text']=_0x5eaa9c[_0x111ab3(0x142e)](0x1,_0x5eaa9c[_0x111ab3(0x1b9e)])[_0x111ab3(0x9a6)](',');}break;case'message':_0x5b395a['gotop'][_0x111ab3(0x39b)]=_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0xacb)];break;case _0x111ab3(0x1979):_0x5b395a['gotop'][_0x111ab3(0x2494)]=_0x5b395a[_0x111ab3(0x2046)]['appdata'][_0x111ab3(0x282c)]('=')[0x0],_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0x1096)]=_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0xacb)]['split']('=')[0x1];break;case _0x111ab3(0x1e67):_0x5b395a['gotop'][_0x111ab3(0x1bd9)]=_0x5b395a[_0x111ab3(0x2046)]['appdata'];break;default:{const _0x30bc8a=_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0xacb)][_0x111ab3(0x282c)](',');_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0x1095)]=_0x28c606()[_0x111ab3(0x940)](_0x30bc8a[0x0])?_0x30bc8a[0x0]:isNaN(_0x30bc8a[0x0])?_0x30bc8a[0x0]:parseInt(_0x30bc8a[0x0],0xa);}break;}else{}_0x5b395a['gotop']['type']&&_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0x2185)][_0x111ab3(0x2554)]()==='outbound'&&_0x5b395a['gotop']['appType'][_0x111ab3(0x2554)]()==='outbounddial'&&(_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0x2524)]=_0x5b395a[_0x111ab3(0x2046)][_0x111ab3(0x267a)]?_0x5b395a['gotop'][_0x111ab3(0x267a)]['split']('$')[0x0]:undefined,_0x5b395a['gotop'][_0x111ab3(0x1a9b)]=_0x5b395a['gotop'][_0x111ab3(0x1abe)]?_0x111ab3(0x2489)+_0x5b395a['gotop'][_0x111ab3(0x1abe)]:undefined);_0x5b395a[_0x111ab3(0x1533)]=_0x2d1d16,_0x5b395a['closeDialog']=_0xc60d0d;function _0x2d1d16(){const _0x182d86=_0x111ab3;_0x5b395a[_0x182d86(0xbae)]=[];const _0x20236a=[];_0x5b395a[_0x182d86(0x2046)]['type']&&_0x5b395a[_0x182d86(0x2046)][_0x182d86(0x2185)]['toLowerCase']()===_0x182d86(0xbce)&&_0x5b395a[_0x182d86(0x2046)]['appType']==='outboundDial'&&(_0x5b395a[_0x182d86(0x2046)][_0x182d86(0x267a)]=_0x1359a9['cutdigits']?(_0x5b395a[_0x182d86(0x2046)][_0x182d86(0x2524)]||'')+_0x182d86(0x1a75)+_0x1359a9[_0x182d86(0x242b)]+'}':(_0x5b395a['gotop'][_0x182d86(0x2524)]||'')+_0x182d86(0x5ad),_0x1359a9[_0x182d86(0x1097)]!=='none'?_0x5b395a[_0x182d86(0x2046)][_0x182d86(0x59e)][_0x182d86(0x1b28)](_0x182d86(0x13e0))<0x0&&(_0x5b395a[_0x182d86(0x2046)]['options']+=_0x182d86(0x13e0)):_0x5b395a['gotop'][_0x182d86(0x59e)]=_0x5b395a[_0x182d86(0x2046)][_0x182d86(0x59e)][_0x182d86(0x1353)](_0x182d86(0x13e0),''));if(_0x5b395a['gotop'][_0x182d86(0x4f4)]&&_0x5b395a[_0x182d86(0x2046)][_0x182d86(0x4f4)]===_0x182d86(0x1ad6)){}else switch((_0x5b395a['gotop'][_0x182d86(0x16e1)]||_0x5b395a[_0x182d86(0x2046)][_0x182d86(0x4f4)])['toLowerCase']()){case'set':_0x5b395a[_0x182d86(0x2046)][_0x182d86(0xacb)]=_0x5b395a[_0x182d86(0x2046)][_0x182d86(0x2494)]+'='+_0x5b395a['gotop']['value'];break;case _0x182d86(0x1ad6):break;default:_0x20236a[0x0]=_0x5b395a[_0x182d86(0x2046)][_0x182d86(0x1095)],_0x5b395a[_0x182d86(0x2046)]['appdata']=_0x20236a['join'](',');}_0xc60d0d(_0x5b395a[_0x182d86(0x2046)]);}function _0xc60d0d(_0xb67134){const _0x2ccf49=_0x111ab3;_0x37ed90[_0x2ccf49(0x268e)](_0xb67134);}}const _0x2680f9=_0x3dabe9;;_0x425a68['$inject']=[_0x49a1e3(0x77f),_0x49a1e3(0x212a),_0x49a1e3(0x611),_0x49a1e3(0xd48),_0x49a1e3(0xcfd),'intervals','toasty','api',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x425a68(_0x195d91,_0x4b4f17,_0x24f3b1,_0x1d8872,_0x1ccba1,_0x9a1339,_0x26d9a8,_0x9ef383,_0x5890b3,_0x4558aa){const _0x21dd88=_0x49a1e3,_0x3b95c0=this;_0x3b95c0[_0x21dd88(0x1d3d)]=_0x5890b3[_0x21dd88(0x808)](),_0x3b95c0[_0x21dd88(0xbae)]=[],_0x3b95c0['title']=_0x21dd88(0x20a4),_0x3b95c0['interval']=angular[_0x21dd88(0x289e)](_0x1ccba1),_0x3b95c0[_0x21dd88(0x15e4)]=_0x9a1339,_0x3b95c0[_0x21dd88(0xf18)]=![],_0x3b95c0[_0x21dd88(0x269)]=[_0x21dd88(0xa66),_0x21dd88(0x1ad6),_0x21dd88(0x2764)],_0x3b95c0[_0x21dd88(0x402)]=_0x4558aa,_0x3b95c0[_0x21dd88(0x121a)]=_0x1d8872[_0x21dd88(0x8b9)](),_0x3b95c0[_0x21dd88(0x2391)]=_0x1d8872[_0x21dd88(0x17ef)](),_0x3b95c0['monthName']=_0x1d8872[_0x21dd88(0x273)](),_0x3b95c0[_0x21dd88(0x1e2a)]=_0x1d8872[_0x21dd88(0xefe)]();if(!_0x3b95c0[_0x21dd88(0xcfd)])_0x3b95c0[_0x21dd88(0xcfd)]={'interval':'*,*,*,*'},_0x3b95c0[_0x21dd88(0x2185)]='always',_0x3b95c0['title']=_0x21dd88(0xcbc),_0x3b95c0[_0x21dd88(0xf18)]=!![];else{if(_0x3b95c0[_0x21dd88(0xcfd)]['interval']!=='*,*,*,*'){_0x3b95c0[_0x21dd88(0x2185)]=_0x21dd88(0x1ad6);const _0x21da43=_0x3b95c0[_0x21dd88(0xcfd)]['interval'][_0x21dd88(0x282c)](','),_0x3225fa=_0x21da43[0x0],_0x1d24ff=_0x21da43[0x1],_0x279b5d=_0x21da43[0x2],_0x4a5199=_0x21da43[0x3];if(_0x3225fa!=='*'){const _0x51afcb=_0x3225fa[_0x21dd88(0x282c)]('-')[0x0],_0x3b0029=_0x3225fa['split']('-')[0x1];let _0x4beaf7;_0x4beaf7=new Date(),_0x4beaf7['setHours'](Number(_0x51afcb[_0x21dd88(0x282c)](':')[0x0])),_0x4beaf7['setMinutes'](Number(_0x51afcb['split'](':')[0x1])),_0x3b95c0[_0x21dd88(0x268d)]=_0x4beaf7,_0x4beaf7=new Date(),_0x4beaf7[_0x21dd88(0x260)](Number(_0x3b0029['split'](':')[0x0])),_0x4beaf7[_0x21dd88(0x1b10)](Number(_0x3b0029['split'](':')[0x1])),_0x3b95c0[_0x21dd88(0x196a)]=_0x4beaf7;}_0x1d24ff!=='*'&&(_0x3b95c0[_0x21dd88(0xa8e)]=_0x1d24ff[_0x21dd88(0x282c)]('-')[0x0],_0x3b95c0[_0x21dd88(0x1297)]=_0x1d24ff['split']('-')[0x1]),_0x279b5d!=='*'&&(_0x3b95c0[_0x21dd88(0x1e3)]=_0x279b5d[_0x21dd88(0x282c)]('-')[0x0],_0x3b95c0[_0x21dd88(0x15c4)]=_0x279b5d[_0x21dd88(0x282c)]('-')[0x1]),_0x4a5199!=='*'&&(_0x3b95c0[_0x21dd88(0x205f)]=_0x4a5199[_0x21dd88(0x282c)]('-')[0x0],_0x3b95c0[_0x21dd88(0x1ea4)]=_0x4a5199['split']('-')[0x1]);}else _0x3b95c0['type']=_0x21dd88(0xa66);}_0x195d91[_0x21dd88(0x1b48)]['id']&&!_0x3b95c0[_0x21dd88(0xcfd)][_0x21dd88(0x2081)]&&(_0x3b95c0[_0x21dd88(0xcfd)][_0x21dd88(0xb71)]=_0x195d91[_0x21dd88(0x1b48)]['id']);_0x3b95c0[_0x21dd88(0xcfd)]['IntervalId']&&_0x3b95c0['interval'][_0x21dd88(0x2081)]&&(_0x3b95c0[_0x21dd88(0x2185)]='list');_0x3b95c0[_0x21dd88(0x23c0)]=_0x271832,_0x3b95c0['saveInterval']=_0x960cea,_0x3b95c0[_0x21dd88(0x16cb)]=_0x5e4977;_0x3b95c0[_0x21dd88(0xcfd)]['application']&&(_0x5890b3[_0x21dd88(0x4de)](_0x21dd88(0x333))?_0x9ef383[_0x21dd88(0xcfd)][_0x21dd88(0x896)]({'fields':'id,name,interval,IntervalId','IntervalId':_0x21dd88(0x8f1),'nolimit':!![]})[_0x21dd88(0x15e7)][_0x21dd88(0x64a)](function(_0x4493b4){const _0x24c1c0=_0x21dd88;_0x3b95c0[_0x24c1c0(0x15e4)]=_0x4493b4[_0x24c1c0(0x28b8)]||[];})[_0x21dd88(0x20cd)](function(_0x4f287b){const _0x1623a6=_0x21dd88;_0x26d9a8['error']({'title':_0x4f287b[_0x1623a6(0x10b3)]?'API:'+_0x4f287b[_0x1623a6(0x10b3)]+_0x1623a6(0x21db)+_0x4f287b[_0x1623a6(0x2115)]:'SYSTEM:GET_INTERVALS','msg':_0x4f287b[_0x1623a6(0x1c52)]?JSON[_0x1623a6(0x2317)](_0x4f287b[_0x1623a6(0x1c52)]):_0x4f287b[_0x1623a6(0x2915)]()});}):_0x9ef383[_0x21dd88(0xcfd)]['get']({'fields':_0x21dd88(0x530),'IntervalId':'null','nolimit':!![]})[_0x21dd88(0x15e7)][_0x21dd88(0x64a)](function(_0x2162d8){const _0x29f47a=_0x21dd88;_0x3b95c0[_0x29f47a(0x15e4)]=_0x2162d8[_0x29f47a(0x28b8)]||[];})[_0x21dd88(0x64a)](function(){const _0x57fbd8=_0x21dd88;return _0x9ef383[_0x57fbd8(0x16b2)]['get']({'userProfileId':_0x3b95c0[_0x57fbd8(0x1d3d)][_0x57fbd8(0x21ac)],'sectionId':0x3ec})[_0x57fbd8(0x15e7)];})[_0x21dd88(0x64a)](function(_0x2887b2){const _0x1baf46=_0x21dd88,_0x5b7da8=_0x2887b2&&_0x2887b2[_0x1baf46(0x28b8)]?_0x2887b2[_0x1baf46(0x28b8)][0x0]:null;if(!_0x5b7da8)_0x3b95c0[_0x1baf46(0x15e4)]=[];else{if(!_0x5b7da8[_0x1baf46(0x11da)])return _0x9ef383['userProfileResource'][_0x1baf46(0x896)]({'sectionId':_0x5b7da8['id']})['$promise'][_0x1baf46(0x64a)](function(_0x53ecad){const _0x233c6d=_0x1baf46,_0x2b73ce=_0x53ecad&&_0x53ecad[_0x233c6d(0x28b8)]?_0x53ecad[_0x233c6d(0x28b8)]:[],_0xdf778f=[];let _0x447f3c=null;_0x3b95c0[_0x233c6d(0xcfd)]&&(_0x447f3c=_0x28c606()[_0x233c6d(0x27bc)](_0x3b95c0['intervals'],{'name':_0x3b95c0[_0x233c6d(0xcfd)][_0x233c6d(0xb71)]})),_0x447f3c&&!_0x28c606()[_0x233c6d(0x25f8)](_0x2b73ce,['resourceId',_0x447f3c['id']])&&_0x3b95c0['intervals'][_0x233c6d(0x1397)](function(_0x15d220){const _0x28fc34=_0x233c6d;_0x15d220['id']===_0x447f3c['id']&&(_0x15d220[_0x28fc34(0xd4f)]=![],_0xdf778f[_0x28fc34(0x1954)](_0x15d220));}),_0x3b95c0[_0x233c6d(0x15e4)]=_0xdf778f;});}})[_0x21dd88(0x20cd)](function(_0x35858b){const _0x3648dd=_0x21dd88;_0x26d9a8['error']({'title':_0x35858b[_0x3648dd(0x10b3)]?'API:'+_0x35858b[_0x3648dd(0x10b3)]+'\x20-\x20'+_0x35858b[_0x3648dd(0x2115)]:'SYSTEM:GET_INTERVALS','msg':_0x35858b[_0x3648dd(0x1c52)]?JSON[_0x3648dd(0x2317)](_0x35858b[_0x3648dd(0x1c52)]):_0x35858b[_0x3648dd(0x2915)]()});}));function _0xac9514(){const _0x3dcad7=_0x21dd88;switch(_0x3b95c0['type']){case _0x3dcad7(0xa66):case _0x3dcad7(0x2764):return _0x3dcad7(0x2145);case _0x3dcad7(0x1ad6):{const _0xba62fe=[];if(_0x3b95c0[_0x3dcad7(0x268d)]!=='*'&&_0x3b95c0[_0x3dcad7(0x268d)]&&_0x3b95c0[_0x3dcad7(0x196a)]){const _0x5d12f9=(_0x3b95c0[_0x3dcad7(0x268d)][_0x3dcad7(0x48a)]()<0xa?'0':'')+_0x3b95c0[_0x3dcad7(0x268d)][_0x3dcad7(0x48a)]()+':'+((_0x3b95c0[_0x3dcad7(0x268d)][_0x3dcad7(0x1894)]()<0xa?'0':'')+_0x3b95c0[_0x3dcad7(0x268d)]['getMinutes']()),_0xc84403=(_0x3b95c0['timeRangeTo'][_0x3dcad7(0x48a)]()<0xa?'0':'')+_0x3b95c0['timeRangeTo'][_0x3dcad7(0x48a)]()+':'+((_0x3b95c0['timeRangeTo'][_0x3dcad7(0x1894)]()<0xa?'0':'')+_0x3b95c0[_0x3dcad7(0x196a)][_0x3dcad7(0x1894)]());_0xba62fe[_0x3dcad7(0x1954)](_0x5d12f9+'-'+_0xc84403);}else _0xba62fe['push']('*');return _0x3b95c0[_0x3dcad7(0xa8e)]?_0x3b95c0[_0x3dcad7(0x1297)]?_0xba62fe[_0x3dcad7(0x1954)](_0x3b95c0[_0x3dcad7(0xa8e)]+'-'+_0x3b95c0['dayOfWeekTo']):_0xba62fe[_0x3dcad7(0x1954)](_0x3b95c0[_0x3dcad7(0xa8e)]):_0xba62fe[_0x3dcad7(0x1954)]('*'),_0x3b95c0[_0x3dcad7(0x1e3)]?_0x3b95c0[_0x3dcad7(0x15c4)]?_0xba62fe[_0x3dcad7(0x1954)](_0x3b95c0['monthDayFrom']+'-'+_0x3b95c0[_0x3dcad7(0x15c4)]):_0xba62fe[_0x3dcad7(0x1954)](_0x3b95c0[_0x3dcad7(0x1e3)]):_0xba62fe[_0x3dcad7(0x1954)]('*'),_0x3b95c0[_0x3dcad7(0x205f)]?_0x3b95c0[_0x3dcad7(0x1ea4)]?_0xba62fe[_0x3dcad7(0x1954)](_0x3b95c0[_0x3dcad7(0x205f)]+'-'+_0x3b95c0[_0x3dcad7(0x1ea4)]):_0xba62fe['push'](_0x3b95c0[_0x3dcad7(0x205f)]):_0xba62fe['push']('*'),_0xba62fe[_0x3dcad7(0x9a6)]();}}}function _0x271832(){const _0x2b632f=_0x21dd88;_0x3b95c0[_0x2b632f(0xbae)]=[],_0x3b95c0['interval'][_0x2b632f(0xcfd)]=_0xac9514(),_0x9ef383[_0x2b632f(0xcfd)][_0x2b632f(0x2479)](_0x3b95c0[_0x2b632f(0xcfd)])['$promise']['then'](function(_0x456018){const _0x50d624=_0x2b632f;_0x3b95c0[_0x50d624(0x15e4)][_0x50d624(0x1954)](_0x456018),_0x26d9a8[_0x50d624(0x1339)]({'title':'Interval\x20properly\x20created','msg':_0x3b95c0[_0x50d624(0xcfd)][_0x50d624(0x2494)]?_0x3b95c0[_0x50d624(0xcfd)]['name']+'\x20has\x20been\x20created!':''}),_0x5e4977();})['catch'](function(_0x581255){const _0x65a5c9=_0x2b632f;console['error'](_0x581255),_0x3b95c0[_0x65a5c9(0xbae)]=_0x581255['data'][_0x65a5c9(0xbae)]||[{'message':_0x581255[_0x65a5c9(0x2915)](),'type':_0x65a5c9(0x12a0)}];});}function _0x960cea(){const _0x29b07c=_0x21dd88;_0x3b95c0['errors']=[],_0x3b95c0[_0x29b07c(0xcfd)]['interval']=_0xac9514(),_0x3b95c0[_0x29b07c(0xcfd)][_0x29b07c(0x2081)]?(_0x3b95c0['type']!==_0x29b07c(0x2764)&&(_0x3b95c0[_0x29b07c(0xcfd)][_0x29b07c(0xb71)]=null),_0x5e4977(_0x3b95c0[_0x29b07c(0xcfd)])):_0x9ef383[_0x29b07c(0xcfd)][_0x29b07c(0x2603)]({'id':_0x3b95c0['interval']['id']},_0x3b95c0['interval'])[_0x29b07c(0x15e7)][_0x29b07c(0x64a)](function(_0x536a13){const _0x1196cc=_0x29b07c,_0xa8bfc9=_0x28c606()[_0x1196cc(0x27bc)](_0x3b95c0[_0x1196cc(0x15e4)],{'id':_0x536a13['id']});_0xa8bfc9&&_0x28c606()[_0x1196cc(0x14fe)](_0xa8bfc9,_0x536a13),_0x26d9a8[_0x1196cc(0x1339)]({'title':_0x1196cc(0x2896),'msg':_0x1196cc(0x198)}),_0x5e4977();})[_0x29b07c(0x20cd)](function(_0x434e7d){const _0x7f87db=_0x29b07c;console[_0x7f87db(0x1bd0)](_0x434e7d),_0x3b95c0[_0x7f87db(0xbae)]=_0x434e7d[_0x7f87db(0x1c52)]['errors']||[{'message':_0x434e7d[_0x7f87db(0x2915)](),'type':_0x7f87db(0x710)}];});}function _0x5e4977(_0x3fa234){const _0x284202=_0x21dd88;_0x4b4f17[_0x284202(0x268e)](_0x3fa234);}}const _0x8c932d=_0x425a68;;_0x412282['$inject']=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa15),_0x49a1e3(0x26c3),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x412282(_0x4f95ad,_0x489f94,_0x68ed59,_0x3e2057,_0x1fb680,_0x58c335,_0x53ab77,_0x2f58d5){const _0x5d3f0b=_0x49a1e3,_0x30204f=this;_0x30204f[_0x5d3f0b(0x1d3d)]=_0x53ab77[_0x5d3f0b(0x808)](),_0x30204f['errors']=[],_0x30204f[_0x5d3f0b(0x2021)]='CHAT.EDIT_'+(_0x3e2057[_0x5d3f0b(0x4f4)]||_0x3e2057['app'])[_0x5d3f0b(0xa3c)](),_0x30204f[_0x5d3f0b(0xbb6)]=angular[_0x5d3f0b(0x289e)](_0x3e2057),_0x30204f[_0x5d3f0b(0x402)]=_0x2f58d5,_0x30204f[_0x5d3f0b(0x6c2)]={};if(_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0xacb)])switch(_0x30204f['noop'][_0x5d3f0b(0x4f4)]?_0x30204f['noop'][_0x5d3f0b(0x4f4)][_0x5d3f0b(0x2554)]():_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0x16e1)]['toLowerCase']()){case _0x5d3f0b(0x1ad6):break;case'dialogflow':{const _0x24d64c=_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0xacb)][_0x5d3f0b(0x282c)](',');_0x30204f['noop'][_0x5d3f0b(0x2125)]=_0x24d64c[0x0],_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0x1cbd)]=_0x24d64c[0x1],_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0x31b)]=_0x24d64c[_0x5d3f0b(0x142e)](0x2,_0x24d64c[_0x5d3f0b(0x1b9e)])[_0x5d3f0b(0x9a6)](',');}break;case _0x5d3f0b(0x1b1a):{const _0x227686=_0x30204f[_0x5d3f0b(0xbb6)]['appdata'][_0x5d3f0b(0x282c)](',');_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0xbfd)]=_0x227686[0x0],_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0x4b2)]=_0x227686[0x1],_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0x1b1b)]=_0x227686[0x2],_0x30204f['noop'][_0x5d3f0b(0x1cbd)]=_0x227686[0x3],_0x30204f[_0x5d3f0b(0xbb6)]['welcomemessage']=_0x227686[_0x5d3f0b(0x142e)](0x4,_0x227686[_0x5d3f0b(0x1b9e)])[_0x5d3f0b(0x9a6)](',');}break;case _0x5d3f0b(0x290d):{const _0x168f1d=_0x30204f[_0x5d3f0b(0xbb6)]['appdata'][_0x5d3f0b(0x282c)](',');_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0x1466)]=_0x168f1d[0x0],_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0x1b1)]=_0x168f1d[0x1],_0x30204f['noop'][_0x5d3f0b(0x17a2)]=_0x168f1d[0x2],_0x30204f['noop'][_0x5d3f0b(0x2797)]=_0x168f1d[0x3],_0x30204f['noop']['welcomemessage']=_0x168f1d[_0x5d3f0b(0x142e)](0x4,_0x168f1d[_0x5d3f0b(0x1b9e)])[_0x5d3f0b(0x9a6)](',');}break;case _0x5d3f0b(0x21a9):{const _0x2e99e2=_0x30204f[_0x5d3f0b(0xbb6)]['appdata']['split'](',');_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0x95f)]=isNaN(_0x2e99e2[0x0])?_0x2e99e2[0x0]:parseInt(_0x2e99e2[0x0],0xa),_0x30204f[_0x5d3f0b(0xbb6)]['text']=_0x2e99e2['slice'](0x1,_0x2e99e2[_0x5d3f0b(0x1b9e)])[_0x5d3f0b(0x9a6)](',');}break;case'message':_0x30204f[_0x5d3f0b(0xbb6)]['text']=_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0xacb)];break;case _0x5d3f0b(0x1979):_0x30204f[_0x5d3f0b(0xbb6)]['name']=_0x30204f[_0x5d3f0b(0xbb6)]['appdata']['split']('=')[0x0],_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0x1096)]=_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0xacb)][_0x5d3f0b(0x282c)]('=')[0x1];break;case _0x5d3f0b(0x1e67):_0x30204f[_0x5d3f0b(0xbb6)]['project']=_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0xacb)];break;default:{const _0x5e9bec=_0x30204f['noop'][_0x5d3f0b(0xacb)][_0x5d3f0b(0x282c)](',');_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0x1096)]=_0x28c606()['isEmpty'](_0x5e9bec[0x0])?_0x5e9bec[0x0]:isNaN(_0x5e9bec[0x0])?_0x5e9bec[0x0]:parseInt(_0x5e9bec[0x0],0xa);}break;}else{}_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0x2185)]&&_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0x2185)]['toLowerCase']()===_0x5d3f0b(0xbce)&&_0x30204f['noop'][_0x5d3f0b(0x4f4)][_0x5d3f0b(0x2554)]()===_0x5d3f0b(0x20eb)&&(_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0x2524)]=_0x30204f[_0x5d3f0b(0xbb6)]['phone']?_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0x267a)][_0x5d3f0b(0x282c)]('$')[0x0]:undefined,_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0x1a9b)]=_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0x1abe)]?_0x5d3f0b(0x2489)+_0x30204f[_0x5d3f0b(0xbb6)][_0x5d3f0b(0x1abe)]:undefined);_0x30204f[_0x5d3f0b(0x1533)]=_0x1c7630,_0x30204f['closeDialog']=_0x12d6c5;function _0x1c7630(){const _0x3d3b15=_0x5d3f0b;_0x30204f[_0x3d3b15(0xbae)]=[];const _0x44bcd8=[];_0x30204f['noop'][_0x3d3b15(0x2185)]&&_0x30204f[_0x3d3b15(0xbb6)][_0x3d3b15(0x2185)]['toLowerCase']()==='outbound'&&_0x30204f[_0x3d3b15(0xbb6)][_0x3d3b15(0x4f4)]==='outboundDial'&&(_0x30204f['noop'][_0x3d3b15(0x267a)]=_0x1fb680['cutdigits']?(_0x30204f[_0x3d3b15(0xbb6)][_0x3d3b15(0x2524)]||'')+'${EXTEN:'+_0x1fb680[_0x3d3b15(0x242b)]+'}':(_0x30204f[_0x3d3b15(0xbb6)][_0x3d3b15(0x2524)]||'')+_0x3d3b15(0x5ad),_0x1fb680[_0x3d3b15(0x1097)]!==_0x3d3b15(0x2507)?_0x30204f[_0x3d3b15(0xbb6)]['options']['indexOf'](_0x3d3b15(0x13e0))<0x0&&(_0x30204f[_0x3d3b15(0xbb6)][_0x3d3b15(0x59e)]+='U(xcally-mixmonitor-context)'):_0x30204f[_0x3d3b15(0xbb6)]['options']=_0x30204f[_0x3d3b15(0xbb6)][_0x3d3b15(0x59e)]['replace']('U(xcally-mixmonitor-context)',''));if(_0x30204f[_0x3d3b15(0xbb6)][_0x3d3b15(0x4f4)]&&_0x30204f[_0x3d3b15(0xbb6)][_0x3d3b15(0x4f4)]==='custom'){}else switch((_0x30204f['noop'][_0x3d3b15(0x16e1)]||_0x30204f['noop'][_0x3d3b15(0x4f4)])[_0x3d3b15(0x2554)]()){case _0x3d3b15(0x1979):_0x30204f[_0x3d3b15(0xbb6)][_0x3d3b15(0xacb)]=_0x30204f[_0x3d3b15(0xbb6)][_0x3d3b15(0x2494)]+'='+_0x30204f[_0x3d3b15(0xbb6)]['value'];break;case'custom':break;default:_0x44bcd8[0x0]=_0x30204f[_0x3d3b15(0xbb6)][_0x3d3b15(0x1096)],_0x30204f[_0x3d3b15(0xbb6)][_0x3d3b15(0xacb)]=_0x44bcd8[_0x3d3b15(0x9a6)](',');}_0x12d6c5(_0x30204f[_0x3d3b15(0xbb6)]);}function _0x12d6c5(_0x2aad0d){const _0x40bd0a=_0x5d3f0b;_0x4f95ad[_0x40bd0a(0x268e)](_0x2aad0d);}}const _0xcc6c93=_0x412282;;_0x26dd65['$inject']=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa15),_0x49a1e3(0x26c3),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x26dd65(_0x389e03,_0x1c0b5e,_0x2eb6a9,_0x29c301,_0x4377dd,_0x2df588,_0x4fb264,_0x398f75){const _0x1fdbf5=_0x49a1e3,_0x2e8414=this;_0x2e8414['currentUser']=_0x4fb264[_0x1fdbf5(0x808)](),_0x2e8414[_0x1fdbf5(0xbae)]=[],_0x2e8414[_0x1fdbf5(0x2021)]=_0x1fdbf5(0x17bd)+(_0x29c301[_0x1fdbf5(0x4f4)]||_0x29c301[_0x1fdbf5(0x16e1)])[_0x1fdbf5(0xa3c)](),_0x2e8414[_0x1fdbf5(0x1e4e)]=angular[_0x1fdbf5(0x289e)](_0x29c301),_0x2e8414[_0x1fdbf5(0x402)]=_0x398f75,_0x2e8414[_0x1fdbf5(0x6c2)]={};if(_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0xacb)])switch(_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x4f4)]?_0x2e8414[_0x1fdbf5(0x1e4e)]['appType'][_0x1fdbf5(0x2554)]():_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x16e1)][_0x1fdbf5(0x2554)]()){case _0x1fdbf5(0x1ad6):break;case _0x1fdbf5(0x1084):{const _0x1d704c=_0x2e8414['queue']['appdata']['split'](',');_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x2125)]=_0x1d704c[0x0],_0x2e8414[_0x1fdbf5(0x1e4e)]['language']=_0x1d704c[0x1],_0x2e8414['queue'][_0x1fdbf5(0x31b)]=_0x1d704c['slice'](0x2,_0x1d704c[_0x1fdbf5(0x1b9e)])[_0x1fdbf5(0x9a6)](',');}break;case _0x1fdbf5(0x1b1a):{const _0x49fdb1=_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0xacb)][_0x1fdbf5(0x282c)](',');_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0xbfd)]=_0x49fdb1[0x0],_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x4b2)]=_0x49fdb1[0x1],_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x1b1b)]=_0x49fdb1[0x2],_0x2e8414[_0x1fdbf5(0x1e4e)]['language']=_0x49fdb1[0x3],_0x2e8414['queue'][_0x1fdbf5(0x31b)]=_0x49fdb1[_0x1fdbf5(0x142e)](0x4,_0x49fdb1['length'])[_0x1fdbf5(0x9a6)](',');}break;case _0x1fdbf5(0x290d):{const _0x20bd5b=_0x2e8414['queue'][_0x1fdbf5(0xacb)]['split'](',');_0x2e8414['queue'][_0x1fdbf5(0x1466)]=_0x20bd5b[0x0],_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x1b1)]=_0x20bd5b[0x1],_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x17a2)]=_0x20bd5b[0x2],_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x2797)]=_0x20bd5b[0x3],_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x31b)]=_0x20bd5b[_0x1fdbf5(0x142e)](0x4,_0x20bd5b[_0x1fdbf5(0x1b9e)])[_0x1fdbf5(0x9a6)](',');}break;case _0x1fdbf5(0x21a9):{const _0x2c9d08=_0x2e8414[_0x1fdbf5(0x1e4e)]['appdata'][_0x1fdbf5(0x282c)](',');_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x95f)]=isNaN(_0x2c9d08[0x0])?_0x2c9d08[0x0]:parseInt(_0x2c9d08[0x0],0xa),_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x39b)]=_0x2c9d08[_0x1fdbf5(0x142e)](0x1,_0x2c9d08[_0x1fdbf5(0x1b9e)])[_0x1fdbf5(0x9a6)](',');}break;case _0x1fdbf5(0x18ca):_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x39b)]=_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0xacb)];break;case'set':_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x2494)]=_0x2e8414[_0x1fdbf5(0x1e4e)]['appdata']['split']('=')[0x0],_0x2e8414['queue'][_0x1fdbf5(0x1096)]=_0x2e8414['queue']['appdata'][_0x1fdbf5(0x282c)]('=')[0x1];break;case _0x1fdbf5(0x1e67):_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x1bd9)]=_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0xacb)];break;default:{const _0x43f7bf=_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0xacb)][_0x1fdbf5(0x282c)](',');_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x1e4e)]=_0x28c606()['isEmpty'](_0x43f7bf[0x0])?_0x43f7bf[0x0]:isNaN(_0x43f7bf[0x0])?_0x43f7bf[0x0]:parseInt(_0x43f7bf[0x0],0xa),_0x2e8414[_0x1fdbf5(0x1e4e)]['timeout']=_0x28c606()[_0x1fdbf5(0x940)](_0x43f7bf[0x1])?_0x43f7bf[0x1]:isNaN(_0x43f7bf[0x1])?_0x43f7bf[0x1]:parseInt(_0x43f7bf[0x1],0xa);}break;}else _0x2e8414[_0x1fdbf5(0x1e4e)]['queue']=0x12c,_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x16d)]=0x12c;_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x2185)]&&_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x2185)]['toLowerCase']()===_0x1fdbf5(0xbce)&&_0x2e8414['queue'][_0x1fdbf5(0x4f4)]['toLowerCase']()===_0x1fdbf5(0x20eb)&&(_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x2524)]=_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x267a)]?_0x2e8414['queue'][_0x1fdbf5(0x267a)][_0x1fdbf5(0x282c)]('$')[0x0]:undefined,_0x2e8414['queue'][_0x1fdbf5(0x1a9b)]=_0x2e8414[_0x1fdbf5(0x1e4e)][_0x1fdbf5(0x1abe)]?_0x1fdbf5(0x2489)+_0x2e8414['queue']['callerID']:undefined);_0x2e8414[_0x1fdbf5(0x1533)]=_0x3a4565,_0x2e8414[_0x1fdbf5(0x16cb)]=_0x27d1a6,_0x4fb264[_0x1fdbf5(0x4de)](_0x1fdbf5(0x333))?_0x2df588['chatQueue'][_0x1fdbf5(0x896)]({'fields':_0x1fdbf5(0x2ba),'sort':_0x1fdbf5(0x2494),'nolimit':_0x1fdbf5(0x1685)})['$promise']['then'](function(_0x4aa9a3){const _0x17188b=_0x1fdbf5;_0x2e8414[_0x17188b(0x1c06)]=_0x4aa9a3['rows']||[];})[_0x1fdbf5(0x20cd)](function(_0x30c403){const _0x48b6aa=_0x1fdbf5;_0x2eb6a9[_0x48b6aa(0x1bd0)]({'title':_0x30c403[_0x48b6aa(0x10b3)]?_0x48b6aa(0x575)+_0x30c403['status']+_0x48b6aa(0x21db)+_0x30c403[_0x48b6aa(0x2115)]:_0x48b6aa(0xe03),'msg':_0x30c403['data']?JSON['stringify'](_0x30c403['data']):_0x30c403[_0x48b6aa(0x2915)]()});}):_0x2df588[_0x1fdbf5(0x10b0)][_0x1fdbf5(0x896)]({'fields':_0x1fdbf5(0x2ba),'sort':_0x1fdbf5(0x2494),'nolimit':_0x1fdbf5(0x1685)})[_0x1fdbf5(0x15e7)]['then'](function(_0x464bd6){const _0x16a838=_0x1fdbf5;_0x2e8414[_0x16a838(0x1c06)]=_0x464bd6[_0x16a838(0x28b8)]||[];})[_0x1fdbf5(0x64a)](function(){const _0x1cc078=_0x1fdbf5;return _0x2df588['userProfileSection']['get']({'userProfileId':_0x2e8414['currentUser'][_0x1cc078(0x21ac)],'sectionId':0x1f5})['$promise'];})[_0x1fdbf5(0x64a)](function(_0x33575e){const _0x12f924=_0x1fdbf5,_0x2c2fea=_0x33575e&&_0x33575e[_0x12f924(0x28b8)]?_0x33575e[_0x12f924(0x28b8)][0x0]:null;if(!_0x2c2fea){const _0x2a5bfe=[];let _0x54475a=null;_0x2e8414['queue']&&(_0x54475a=_0x28c606()[_0x12f924(0x27bc)](_0x2e8414['queues'],{'name':_0x2e8414[_0x12f924(0x1e4e)]['queue']}));for(let _0x581872=0x0;_0x581872<_0x2e8414[_0x12f924(0x1c06)]['length'];_0x581872++){_0x54475a&&_0x2e8414['queues'][_0x581872]['id']===_0x54475a['id']&&(_0x2e8414['queues'][_0x581872]['canSelect']=![],_0x2a5bfe[_0x12f924(0x1954)](_0x2e8414['queues'][_0x581872]));}_0x2e8414[_0x12f924(0x1c06)]=_0x2a5bfe;}else{if(!_0x2c2fea[_0x12f924(0x11da)])return _0x2df588[_0x12f924(0x1617)]['get']({'sectionId':_0x2c2fea['id']})[_0x12f924(0x15e7)][_0x12f924(0x64a)](function(_0x18fa02){const _0x5b8c00=_0x12f924,_0x5c3efc=_0x28c606()[_0x5b8c00(0x1de5)](_0x18fa02['rows'],function(_0x489558){const _0x175606=_0x5b8c00;return _0x28c606()['find'](_0x2e8414[_0x175606(0x1c06)],{'id':_0x489558[_0x175606(0x145)]});});let _0x417733=null;_0x2e8414['queue']&&(_0x417733=_0x28c606()['find'](_0x2e8414[_0x5b8c00(0x1c06)],{'name':_0x2e8414[_0x5b8c00(0x1e4e)][_0x5b8c00(0x1e4e)]}));if(_0x417733&&!_0x28c606()[_0x5b8c00(0x25f8)](_0x5c3efc,['id',_0x417733['id']])){const _0x378dea=_0x28c606()[_0x5b8c00(0x27bc)](_0x2e8414[_0x5b8c00(0x1c06)],{'id':_0x417733['id']});_0x378dea[_0x5b8c00(0xd4f)]=![],_0x5c3efc[_0x5b8c00(0x1954)](_0x378dea);}_0x2e8414['queues']=_0x5c3efc;});}})[_0x1fdbf5(0x20cd)](function(_0x33e273){const _0x42d6bb=_0x1fdbf5;_0x2eb6a9[_0x42d6bb(0x1bd0)]({'title':_0x33e273[_0x42d6bb(0x10b3)]?_0x42d6bb(0x575)+_0x33e273['status']+_0x42d6bb(0x21db)+_0x33e273[_0x42d6bb(0x2115)]:_0x42d6bb(0x1238),'msg':_0x33e273[_0x42d6bb(0x1c52)]?JSON[_0x42d6bb(0x2317)](_0x33e273[_0x42d6bb(0x1c52)]):_0x33e273[_0x42d6bb(0x2915)]()});});function _0x3a4565(){const _0x5aac52=_0x1fdbf5;_0x2e8414['errors']=[];const _0x1d1d97=[];_0x2e8414[_0x5aac52(0x1e4e)]['type']&&_0x2e8414[_0x5aac52(0x1e4e)][_0x5aac52(0x2185)][_0x5aac52(0x2554)]()==='outbound'&&_0x2e8414[_0x5aac52(0x1e4e)][_0x5aac52(0x4f4)]===_0x5aac52(0x17b6)&&(_0x2e8414[_0x5aac52(0x1e4e)][_0x5aac52(0x267a)]=_0x4377dd[_0x5aac52(0x242b)]?(_0x2e8414['queue'][_0x5aac52(0x2524)]||'')+'${EXTEN:'+_0x4377dd[_0x5aac52(0x242b)]+'}':(_0x2e8414[_0x5aac52(0x1e4e)][_0x5aac52(0x2524)]||'')+'${EXTEN}',_0x4377dd[_0x5aac52(0x1097)]!==_0x5aac52(0x2507)?_0x2e8414[_0x5aac52(0x1e4e)][_0x5aac52(0x59e)]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x2e8414[_0x5aac52(0x1e4e)][_0x5aac52(0x59e)]+=_0x5aac52(0x13e0)):_0x2e8414[_0x5aac52(0x1e4e)][_0x5aac52(0x59e)]=_0x2e8414[_0x5aac52(0x1e4e)][_0x5aac52(0x59e)][_0x5aac52(0x1353)](_0x5aac52(0x13e0),''));const _0x29b10a=_0x28c606()['find'](_0x2e8414[_0x5aac52(0x1c06)],{'name':_0x2e8414[_0x5aac52(0x1e4e)]['queue']});_0x29b10a&&(_0x2e8414['queue'][_0x28c606()[_0x5aac52(0xd56)]('chat')+_0x5aac52(0x1fe9)]=_0x29b10a['id']);if(_0x2e8414[_0x5aac52(0x1e4e)][_0x5aac52(0x4f4)]&&_0x2e8414[_0x5aac52(0x1e4e)][_0x5aac52(0x4f4)]===_0x5aac52(0x1ad6)){}else switch((_0x2e8414[_0x5aac52(0x1e4e)][_0x5aac52(0x16e1)]||_0x2e8414[_0x5aac52(0x1e4e)][_0x5aac52(0x4f4)])[_0x5aac52(0x2554)]()){case'set':_0x2e8414['queue'][_0x5aac52(0xacb)]=_0x2e8414[_0x5aac52(0x1e4e)][_0x5aac52(0x2494)]+'='+_0x2e8414[_0x5aac52(0x1e4e)][_0x5aac52(0x1096)];break;case'custom':break;default:_0x1d1d97[0x0]=_0x2e8414[_0x5aac52(0x1e4e)][_0x5aac52(0x1e4e)],_0x1d1d97[0x1]=_0x2e8414[_0x5aac52(0x1e4e)]['timeout'],_0x2e8414[_0x5aac52(0x1e4e)][_0x5aac52(0xacb)]=_0x1d1d97['join'](',');}_0x27d1a6(_0x2e8414[_0x5aac52(0x1e4e)]);}function _0x27d1a6(_0x138777){const _0x7827e1=_0x1fdbf5;_0x389e03[_0x7827e1(0x268e)](_0x138777);}}const _0x504451=_0x26dd65;;_0x41fea9[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0xa15),_0x49a1e3(0x26c3),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x41fea9(_0x3f5398,_0x262b06,_0x129929,_0x4a265b,_0x5d884b,_0x252f23,_0x559058,_0x753921){const _0x216d3d=_0x49a1e3,_0x58b0d9=this;_0x58b0d9[_0x216d3d(0x1d3d)]=_0x559058[_0x216d3d(0x808)](),_0x58b0d9[_0x216d3d(0xbae)]=[],_0x58b0d9[_0x216d3d(0x2021)]=_0x216d3d(0x17bd)+(_0x4a265b[_0x216d3d(0x4f4)]||_0x4a265b[_0x216d3d(0x16e1)])[_0x216d3d(0xa3c)](),_0x58b0d9['system']=angular[_0x216d3d(0x289e)](_0x4a265b),_0x58b0d9[_0x216d3d(0x402)]=_0x753921,_0x58b0d9[_0x216d3d(0x6c2)]={};if(_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0xacb)])switch(_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0x4f4)]?_0x58b0d9[_0x216d3d(0x1f06)]['appType'][_0x216d3d(0x2554)]():_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0x16e1)][_0x216d3d(0x2554)]()){case _0x216d3d(0x1ad6):break;case _0x216d3d(0x1084):{const _0x24bbce=_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0xacb)]['split'](',');_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0x2125)]=_0x24bbce[0x0],_0x58b0d9['system'][_0x216d3d(0x1cbd)]=_0x24bbce[0x1],_0x58b0d9[_0x216d3d(0x1f06)]['welcomemessage']=_0x24bbce[_0x216d3d(0x142e)](0x2,_0x24bbce[_0x216d3d(0x1b9e)])['join'](',');}break;case'dialogflowv2':{const _0x8ce7ac=_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0xacb)]['split'](',');_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0xbfd)]=_0x8ce7ac[0x0],_0x58b0d9[_0x216d3d(0x1f06)]['clientEmail']=_0x8ce7ac[0x1],_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0x1b1b)]=_0x8ce7ac[0x2],_0x58b0d9['system'][_0x216d3d(0x1cbd)]=_0x8ce7ac[0x3],_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0x31b)]=_0x8ce7ac[_0x216d3d(0x142e)](0x4,_0x8ce7ac['length'])[_0x216d3d(0x9a6)](',');}break;case _0x216d3d(0x290d):{const _0x3a5f52=_0x58b0d9[_0x216d3d(0x1f06)]['appdata'][_0x216d3d(0x282c)](',');_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0x1466)]=_0x3a5f52[0x0],_0x58b0d9['system']['secretaccesskey']=_0x3a5f52[0x1],_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0x17a2)]=_0x3a5f52[0x2],_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0x2797)]=_0x3a5f52[0x3],_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0x31b)]=_0x3a5f52[_0x216d3d(0x142e)](0x4,_0x3a5f52[_0x216d3d(0x1b9e)])[_0x216d3d(0x9a6)](',');}break;case _0x216d3d(0x21a9):{const _0x12fd6a=_0x58b0d9['system'][_0x216d3d(0xacb)][_0x216d3d(0x282c)](',');_0x58b0d9[_0x216d3d(0x1f06)]['times']=isNaN(_0x12fd6a[0x0])?_0x12fd6a[0x0]:parseInt(_0x12fd6a[0x0],0xa),_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0x39b)]=_0x12fd6a[_0x216d3d(0x142e)](0x1,_0x12fd6a[_0x216d3d(0x1b9e)])[_0x216d3d(0x9a6)](',');}break;case _0x216d3d(0x18ca):_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0x39b)]=_0x58b0d9[_0x216d3d(0x1f06)]['appdata'];break;case'set':_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0x2494)]=_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0xacb)][_0x216d3d(0x282c)]('=')[0x0],_0x58b0d9[_0x216d3d(0x1f06)]['value']=_0x58b0d9[_0x216d3d(0x1f06)]['appdata'][_0x216d3d(0x282c)]('=')[0x1];break;case'agi':_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0x1bd9)]=_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0xacb)];break;default:{const _0x56f808=_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0xacb)][_0x216d3d(0x282c)](',');_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0xf42)]=_0x28c606()[_0x216d3d(0x940)](_0x56f808[0x0])?_0x56f808[0x0]:isNaN(_0x56f808[0x0])?_0x56f808[0x0]:parseInt(_0x56f808[0x0],0xa),_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0xefb)]=_0x28c606()[_0x216d3d(0x940)](_0x56f808[0x1])?_0x56f808[0x1]:isNaN(_0x56f808[0x1])?_0x56f808[0x1]:parseInt(_0x56f808[0x1],0xa);}break;}else _0x58b0d9[_0x216d3d(0x1f06)]['variable']='';_0x58b0d9['system']['type']&&_0x58b0d9['system'][_0x216d3d(0x2185)][_0x216d3d(0x2554)]()===_0x216d3d(0xbce)&&_0x58b0d9['system'][_0x216d3d(0x4f4)][_0x216d3d(0x2554)]()===_0x216d3d(0x20eb)&&(_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0x2524)]=_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0x267a)]?_0x58b0d9[_0x216d3d(0x1f06)]['phone'][_0x216d3d(0x282c)]('$')[0x0]:undefined,_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0x1a9b)]=_0x58b0d9[_0x216d3d(0x1f06)]['callerID']?'CALLERID(all)='+_0x58b0d9[_0x216d3d(0x1f06)][_0x216d3d(0x1abe)]:undefined);_0x58b0d9[_0x216d3d(0x1533)]=_0x4e03b2,_0x58b0d9['closeDialog']=_0x1229de,_0x559058['hasRole'](_0x216d3d(0x333))?_0x252f23[_0x216d3d(0xefb)][_0x216d3d(0x896)]({'fields':_0x216d3d(0x1427),'sort':_0x216d3d(0x2494),'nolimit':_0x216d3d(0x1685)})[_0x216d3d(0x15e7)]['then'](function(_0x95bc60){const _0x25a4bf=_0x216d3d;_0x58b0d9[_0x25a4bf(0x145c)]=_0x95bc60[_0x25a4bf(0x28b8)]||[];})[_0x216d3d(0x20cd)](function(_0xed69bf){const _0x18052b=_0x216d3d;_0x129929[_0x18052b(0x1bd0)]({'title':_0xed69bf[_0x18052b(0x10b3)]?_0x18052b(0x575)+_0xed69bf['status']+_0x18052b(0x21db)+_0xed69bf[_0x18052b(0x2115)]:'SYSTEM:GET_VARIABLES','msg':_0xed69bf[_0x18052b(0x1c52)]?JSON[_0x18052b(0x2317)](_0xed69bf[_0x18052b(0x1c52)]):_0xed69bf[_0x18052b(0x2915)]()});}):_0x252f23['variable'][_0x216d3d(0x896)]({'fields':_0x216d3d(0x1427),'sort':_0x216d3d(0x2494),'nolimit':_0x216d3d(0x1685)})[_0x216d3d(0x15e7)]['then'](function(_0x2fb701){const _0x3a6d22=_0x216d3d;_0x58b0d9[_0x3a6d22(0x145c)]=_0x2fb701[_0x3a6d22(0x28b8)]||[];})[_0x216d3d(0x64a)](function(){const _0x41b1fb=_0x216d3d;return _0x252f23[_0x41b1fb(0x16b2)][_0x41b1fb(0x896)]({'userProfileId':_0x58b0d9[_0x41b1fb(0x1d3d)][_0x41b1fb(0x21ac)],'sectionId':0x3f4})[_0x41b1fb(0x15e7)];})['then'](function(_0x2e8ee2){const _0x4b4a23=_0x216d3d,_0x5753b9=_0x2e8ee2&&_0x2e8ee2['rows']?_0x2e8ee2['rows'][0x0]:null;if(!_0x5753b9){const _0x17939f=[];let _0x459319=null;_0x58b0d9[_0x4b4a23(0x1f06)]&&(_0x459319=_0x28c606()[_0x4b4a23(0x27bc)](_0x58b0d9[_0x4b4a23(0x145c)],{'name':_0x58b0d9[_0x4b4a23(0x1f06)][_0x4b4a23(0xefb)]}));for(let _0x5d7cea=0x0;_0x5d7cea<_0x58b0d9[_0x4b4a23(0x145c)][_0x4b4a23(0x1b9e)];_0x5d7cea++){_0x459319&&_0x58b0d9[_0x4b4a23(0x145c)][_0x5d7cea]['id']===_0x459319['id']&&(_0x58b0d9[_0x4b4a23(0x145c)][_0x5d7cea][_0x4b4a23(0xd4f)]=![],_0x17939f[_0x4b4a23(0x1954)](_0x58b0d9[_0x4b4a23(0x145c)][_0x5d7cea]));}_0x58b0d9[_0x4b4a23(0x145c)]=_0x17939f;}else{if(!_0x5753b9['autoAssociation'])return _0x252f23['userProfileResource'][_0x4b4a23(0x896)]({'sectionId':_0x5753b9['id']})[_0x4b4a23(0x15e7)][_0x4b4a23(0x64a)](function(_0xe394e4){const _0x5980a7=_0x4b4a23,_0x114620=_0x28c606()[_0x5980a7(0x1de5)](_0xe394e4['rows'],function(_0x4e3ccc){const _0xa98b94=_0x5980a7;return _0x28c606()['find'](_0x58b0d9[_0xa98b94(0x145c)],{'id':_0x4e3ccc['resourceId']});});let _0x43fab9=null;_0x58b0d9[_0x5980a7(0x1f06)]&&(_0x43fab9=_0x28c606()['find'](_0x58b0d9[_0x5980a7(0x145c)],{'name':_0x58b0d9[_0x5980a7(0x1f06)][_0x5980a7(0xefb)]}));if(_0x43fab9&&!_0x28c606()[_0x5980a7(0x25f8)](_0x114620,['id',_0x43fab9['id']])){const _0x4465ed=_0x28c606()[_0x5980a7(0x27bc)](_0x58b0d9['variables'],{'id':_0x43fab9['id']});_0x4465ed['canSelect']=![],_0x114620[_0x5980a7(0x1954)](_0x4465ed);}_0x58b0d9[_0x5980a7(0x145c)]=_0x114620;});}})['catch'](function(_0x4501ff){const _0x46fc0d=_0x216d3d;_0x129929['error']({'title':_0x4501ff[_0x46fc0d(0x10b3)]?_0x46fc0d(0x575)+_0x4501ff[_0x46fc0d(0x10b3)]+_0x46fc0d(0x21db)+_0x4501ff[_0x46fc0d(0x2115)]:'SYSTEM:GETvariables','msg':_0x4501ff[_0x46fc0d(0x1c52)]?JSON[_0x46fc0d(0x2317)](_0x4501ff[_0x46fc0d(0x1c52)]):_0x4501ff[_0x46fc0d(0x2915)]()});});function _0x4e03b2(){const _0x7e30e2=_0x216d3d;_0x58b0d9[_0x7e30e2(0xbae)]=[];const _0x395956=[];_0x58b0d9[_0x7e30e2(0x1f06)]['type']&&_0x58b0d9[_0x7e30e2(0x1f06)][_0x7e30e2(0x2185)][_0x7e30e2(0x2554)]()===_0x7e30e2(0xbce)&&_0x58b0d9[_0x7e30e2(0x1f06)][_0x7e30e2(0x4f4)]==='outboundDial'&&(_0x58b0d9[_0x7e30e2(0x1f06)]['phone']=_0x5d884b[_0x7e30e2(0x242b)]?(_0x58b0d9[_0x7e30e2(0x1f06)]['prefix']||'')+'${EXTEN:'+_0x5d884b['cutdigits']+'}':(_0x58b0d9[_0x7e30e2(0x1f06)][_0x7e30e2(0x2524)]||'')+_0x7e30e2(0x5ad),_0x5d884b[_0x7e30e2(0x1097)]!==_0x7e30e2(0x2507)?_0x58b0d9[_0x7e30e2(0x1f06)][_0x7e30e2(0x59e)][_0x7e30e2(0x1b28)](_0x7e30e2(0x13e0))<0x0&&(_0x58b0d9[_0x7e30e2(0x1f06)]['options']+=_0x7e30e2(0x13e0)):_0x58b0d9[_0x7e30e2(0x1f06)][_0x7e30e2(0x59e)]=_0x58b0d9['system'][_0x7e30e2(0x59e)][_0x7e30e2(0x1353)](_0x7e30e2(0x13e0),''));if(_0x58b0d9['system'][_0x7e30e2(0x4f4)]&&_0x58b0d9[_0x7e30e2(0x1f06)][_0x7e30e2(0x4f4)]===_0x7e30e2(0x1ad6)){}else switch((_0x58b0d9[_0x7e30e2(0x1f06)][_0x7e30e2(0x16e1)]||_0x58b0d9['system'][_0x7e30e2(0x4f4)])[_0x7e30e2(0x2554)]()){case _0x7e30e2(0x1979):_0x58b0d9[_0x7e30e2(0x1f06)][_0x7e30e2(0xacb)]=_0x58b0d9[_0x7e30e2(0x1f06)][_0x7e30e2(0x2494)]+'='+_0x58b0d9[_0x7e30e2(0x1f06)][_0x7e30e2(0x1096)];break;case _0x7e30e2(0x1ad6):break;default:_0x395956[0x0]=_0x58b0d9[_0x7e30e2(0x1f06)][_0x7e30e2(0xf42)],_0x395956[0x1]=_0x58b0d9['system'][_0x7e30e2(0xefb)],_0x58b0d9[_0x7e30e2(0x1f06)]['appdata']=_0x395956[_0x7e30e2(0x9a6)](',');}_0x1229de(_0x58b0d9['system']);}function _0x1229de(_0x3edcf4){const _0x2d8c74=_0x216d3d;_0x3f5398[_0x2d8c74(0x268e)](_0x3edcf4);}}const _0x37bec2=_0x41fea9;;_0x4a4d4e[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa15),_0x49a1e3(0x26c3),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x4a4d4e(_0x511da1,_0x5a339f,_0x49b062,_0x4dd280,_0x212804,_0x1ccb67,_0x2952b4,_0x11e2eb){const _0x43b6aa=_0x49a1e3,_0x4ea0a7=this;_0x4ea0a7[_0x43b6aa(0x1d3d)]=_0x2952b4['getCurrentUser'](),_0x4ea0a7[_0x43b6aa(0xbae)]=[],_0x4ea0a7[_0x43b6aa(0x2021)]=_0x43b6aa(0x17bd)+(_0x4dd280[_0x43b6aa(0x4f4)]||_0x4dd280[_0x43b6aa(0x16e1)])['toUpperCase'](),_0x4ea0a7[_0x43b6aa(0xac8)]=angular['copy'](_0x4dd280),_0x4ea0a7['crudPermissions']=_0x11e2eb,_0x4ea0a7[_0x43b6aa(0x6c2)]={};if(_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0xacb)])switch(_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0x4f4)]?_0x4ea0a7['tag']['appType']['toLowerCase']():_0x4ea0a7[_0x43b6aa(0xac8)]['app'][_0x43b6aa(0x2554)]()){case _0x43b6aa(0x1ad6):break;case _0x43b6aa(0x1084):{const _0x768ae4=_0x4ea0a7[_0x43b6aa(0xac8)]['appdata'][_0x43b6aa(0x282c)](',');_0x4ea0a7[_0x43b6aa(0xac8)]['key']=_0x768ae4[0x0],_0x4ea0a7['tag'][_0x43b6aa(0x1cbd)]=_0x768ae4[0x1],_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0x31b)]=_0x768ae4['slice'](0x2,_0x768ae4[_0x43b6aa(0x1b9e)])[_0x43b6aa(0x9a6)](',');}break;case _0x43b6aa(0x1b1a):{const _0x22a477=_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0xacb)][_0x43b6aa(0x282c)](',');_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0xbfd)]=_0x22a477[0x0],_0x4ea0a7[_0x43b6aa(0xac8)]['clientEmail']=_0x22a477[0x1],_0x4ea0a7['tag']['privateKey']=_0x22a477[0x2],_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0x1cbd)]=_0x22a477[0x3],_0x4ea0a7[_0x43b6aa(0xac8)]['welcomemessage']=_0x22a477[_0x43b6aa(0x142e)](0x4,_0x22a477[_0x43b6aa(0x1b9e)])[_0x43b6aa(0x9a6)](',');}break;case _0x43b6aa(0x290d):{const _0x51b53b=_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0xacb)]['split'](',');_0x4ea0a7['tag'][_0x43b6aa(0x1466)]=_0x51b53b[0x0],_0x4ea0a7[_0x43b6aa(0xac8)]['secretaccesskey']=_0x51b53b[0x1],_0x4ea0a7['tag']['lexregion']=_0x51b53b[0x2],_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0x2797)]=_0x51b53b[0x3],_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0x31b)]=_0x51b53b[_0x43b6aa(0x142e)](0x4,_0x51b53b[_0x43b6aa(0x1b9e)])['join'](',');}break;case _0x43b6aa(0x21a9):{const _0x1c6a66=_0x4ea0a7['tag'][_0x43b6aa(0xacb)][_0x43b6aa(0x282c)](',');_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0x95f)]=isNaN(_0x1c6a66[0x0])?_0x1c6a66[0x0]:parseInt(_0x1c6a66[0x0],0xa),_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0x39b)]=_0x1c6a66[_0x43b6aa(0x142e)](0x1,_0x1c6a66[_0x43b6aa(0x1b9e)])['join'](',');}break;case _0x43b6aa(0x18ca):_0x4ea0a7['tag'][_0x43b6aa(0x39b)]=_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0xacb)];break;case _0x43b6aa(0x1979):_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0x2494)]=_0x4ea0a7['tag']['appdata']['split']('=')[0x0],_0x4ea0a7['tag']['value']=_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0xacb)][_0x43b6aa(0x282c)]('=')[0x1];break;case _0x43b6aa(0x1e67):_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0x1bd9)]=_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0xacb)];break;default:{const _0x18eb68=_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0xacb)][_0x43b6aa(0x282c)](',');_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0xac8)]=_0x28c606()['isEmpty'](_0x18eb68[0x0])?_0x18eb68[0x0]:isNaN(_0x18eb68[0x0])?_0x18eb68[0x0]:parseInt(_0x18eb68[0x0],0xa);}break;}else{}_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0x2185)]&&_0x4ea0a7['tag'][_0x43b6aa(0x2185)]['toLowerCase']()==='outbound'&&_0x4ea0a7[_0x43b6aa(0xac8)]['appType'][_0x43b6aa(0x2554)]()===_0x43b6aa(0x20eb)&&(_0x4ea0a7[_0x43b6aa(0xac8)]['prefix']=_0x4ea0a7['tag'][_0x43b6aa(0x267a)]?_0x4ea0a7[_0x43b6aa(0xac8)]['phone'][_0x43b6aa(0x282c)]('$')[0x0]:undefined,_0x4ea0a7[_0x43b6aa(0xac8)]['callerId']=_0x4ea0a7[_0x43b6aa(0xac8)][_0x43b6aa(0x1abe)]?_0x43b6aa(0x2489)+_0x4ea0a7['tag'][_0x43b6aa(0x1abe)]:undefined);_0x4ea0a7[_0x43b6aa(0x1533)]=_0x1f6aa6,_0x4ea0a7[_0x43b6aa(0x16cb)]=_0x136238,_0x2952b4[_0x43b6aa(0x4de)]('admin')?_0x1ccb67[_0x43b6aa(0xac8)][_0x43b6aa(0x896)]({'fields':_0x43b6aa(0x1427),'sort':'name','nolimit':'true'})[_0x43b6aa(0x15e7)][_0x43b6aa(0x64a)](function(_0x571c7f){const _0x4ca4b1=_0x43b6aa;_0x4ea0a7['tags']=_0x571c7f[_0x4ca4b1(0x28b8)]||[];})[_0x43b6aa(0x20cd)](function(_0x44e67e){const _0x52a94a=_0x43b6aa;_0x49b062[_0x52a94a(0x1bd0)]({'title':_0x44e67e['status']?_0x52a94a(0x575)+_0x44e67e['status']+_0x52a94a(0x21db)+_0x44e67e[_0x52a94a(0x2115)]:_0x52a94a(0x28be),'msg':_0x44e67e['data']?JSON[_0x52a94a(0x2317)](_0x44e67e['data']):_0x44e67e[_0x52a94a(0x2915)]()});}):_0x1ccb67[_0x43b6aa(0xac8)][_0x43b6aa(0x896)]({'fields':_0x43b6aa(0x1427),'sort':_0x43b6aa(0x2494),'nolimit':_0x43b6aa(0x1685)})[_0x43b6aa(0x15e7)][_0x43b6aa(0x64a)](function(_0x535c7d){const _0x2078d=_0x43b6aa;_0x4ea0a7[_0x2078d(0x16a6)]=_0x535c7d['rows']||[];})[_0x43b6aa(0x64a)](function(){const _0x52d88f=_0x43b6aa;return _0x1ccb67[_0x52d88f(0x16b2)][_0x52d88f(0x896)]({'userProfileId':_0x4ea0a7[_0x52d88f(0x1d3d)][_0x52d88f(0x21ac)],'sectionId':0x3f0})[_0x52d88f(0x15e7)];})[_0x43b6aa(0x64a)](function(_0x228fba){const _0x4aff8a=_0x43b6aa,_0x389470=_0x228fba&&_0x228fba['rows']?_0x228fba['rows'][0x0]:null;if(!_0x389470){const _0x24006d=[];let _0x32ed4a=null;_0x4ea0a7[_0x4aff8a(0xac8)]&&(_0x32ed4a=_0x28c606()[_0x4aff8a(0x27bc)](_0x4ea0a7[_0x4aff8a(0x16a6)],{'name':_0x4ea0a7[_0x4aff8a(0xac8)][_0x4aff8a(0xac8)]}));for(let _0x181cc8=0x0;_0x181cc8<_0x4ea0a7[_0x4aff8a(0x16a6)]['length'];_0x181cc8++){_0x32ed4a&&_0x4ea0a7[_0x4aff8a(0x16a6)][_0x181cc8]['id']===_0x32ed4a['id']&&(_0x4ea0a7[_0x4aff8a(0x16a6)][_0x181cc8][_0x4aff8a(0xd4f)]=![],_0x24006d[_0x4aff8a(0x1954)](_0x4ea0a7[_0x4aff8a(0x16a6)][_0x181cc8]));}_0x4ea0a7['tags']=_0x24006d;}else{if(!_0x389470['autoAssociation'])return _0x1ccb67['userProfileResource'][_0x4aff8a(0x896)]({'sectionId':_0x389470['id']})['$promise'][_0x4aff8a(0x64a)](function(_0x4ed0a8){const _0xc2ee55=_0x4aff8a,_0x9e1137=_0x28c606()[_0xc2ee55(0x1de5)](_0x4ed0a8[_0xc2ee55(0x28b8)],function(_0x146b32){const _0x2f96e3=_0xc2ee55;return _0x28c606()[_0x2f96e3(0x27bc)](_0x4ea0a7['tags'],{'id':_0x146b32[_0x2f96e3(0x145)]});});let _0x2ba2b3=null;_0x4ea0a7[_0xc2ee55(0xac8)]&&(_0x2ba2b3=_0x28c606()['find'](_0x4ea0a7[_0xc2ee55(0x16a6)],{'name':_0x4ea0a7[_0xc2ee55(0xac8)][_0xc2ee55(0xac8)]}));if(_0x2ba2b3&&!_0x28c606()[_0xc2ee55(0x25f8)](_0x9e1137,['id',_0x2ba2b3['id']])){const _0x409f7b=_0x28c606()[_0xc2ee55(0x27bc)](_0x4ea0a7[_0xc2ee55(0x16a6)],{'id':_0x2ba2b3['id']});_0x409f7b[_0xc2ee55(0xd4f)]=![],_0x9e1137[_0xc2ee55(0x1954)](_0x409f7b);}_0x4ea0a7[_0xc2ee55(0x16a6)]=_0x9e1137;});}})['catch'](function(_0xe35366){const _0x5a5015=_0x43b6aa;_0x49b062[_0x5a5015(0x1bd0)]({'title':_0xe35366[_0x5a5015(0x10b3)]?_0x5a5015(0x575)+_0xe35366[_0x5a5015(0x10b3)]+_0x5a5015(0x21db)+_0xe35366[_0x5a5015(0x2115)]:'SYSTEM:GETtags','msg':_0xe35366['data']?JSON[_0x5a5015(0x2317)](_0xe35366[_0x5a5015(0x1c52)]):_0xe35366[_0x5a5015(0x2915)]()});});function _0x1f6aa6(){const _0x21983b=_0x43b6aa;_0x4ea0a7['errors']=[];const _0xc292a9=[];_0x4ea0a7[_0x21983b(0xac8)][_0x21983b(0x2185)]&&_0x4ea0a7[_0x21983b(0xac8)][_0x21983b(0x2185)][_0x21983b(0x2554)]()===_0x21983b(0xbce)&&_0x4ea0a7[_0x21983b(0xac8)][_0x21983b(0x4f4)]==='outboundDial'&&(_0x4ea0a7['tag'][_0x21983b(0x267a)]=_0x212804[_0x21983b(0x242b)]?(_0x4ea0a7[_0x21983b(0xac8)][_0x21983b(0x2524)]||'')+'${EXTEN:'+_0x212804[_0x21983b(0x242b)]+'}':(_0x4ea0a7[_0x21983b(0xac8)]['prefix']||'')+_0x21983b(0x5ad),_0x212804['recordingFormat']!==_0x21983b(0x2507)?_0x4ea0a7[_0x21983b(0xac8)]['options']['indexOf'](_0x21983b(0x13e0))<0x0&&(_0x4ea0a7[_0x21983b(0xac8)][_0x21983b(0x59e)]+=_0x21983b(0x13e0)):_0x4ea0a7[_0x21983b(0xac8)][_0x21983b(0x59e)]=_0x4ea0a7[_0x21983b(0xac8)][_0x21983b(0x59e)]['replace'](_0x21983b(0x13e0),''));const _0x288195=_0x28c606()[_0x21983b(0x27bc)](_0x4ea0a7['tags'],{'name':_0x4ea0a7[_0x21983b(0xac8)][_0x21983b(0xac8)]});_0x288195&&(_0x4ea0a7['tag'][_0x21983b(0x923)]=_0x288195['id']);if(_0x4ea0a7['tag'][_0x21983b(0x4f4)]&&_0x4ea0a7['tag']['appType']===_0x21983b(0x1ad6)){}else switch((_0x4ea0a7['tag']['app']||_0x4ea0a7[_0x21983b(0xac8)][_0x21983b(0x4f4)])['toLowerCase']()){case _0x21983b(0x1979):_0x4ea0a7['tag'][_0x21983b(0xacb)]=_0x4ea0a7[_0x21983b(0xac8)][_0x21983b(0x2494)]+'='+_0x4ea0a7[_0x21983b(0xac8)]['value'];break;case _0x21983b(0x1ad6):break;default:_0xc292a9[0x0]=_0x4ea0a7['tag'][_0x21983b(0xac8)],_0x4ea0a7['tag'][_0x21983b(0xacb)]=_0xc292a9['join'](',');}_0x136238(_0x4ea0a7[_0x21983b(0xac8)]);}function _0x136238(_0x5687af){const _0x4af941=_0x43b6aa;_0x511da1[_0x4af941(0x268e)](_0x5687af);}}const _0x1166d5=_0x4a4d4e;;const _0x3b8827=_0x2e4a48['p']+_0x49a1e3(0xa4e);;_0x148cdd[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x1674),'$state','$q','$translate',_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),'toasty',_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x148cdd(_0x3f75e2,_0x3dc9ee,_0x32f414,_0x11392a,_0x1629a1,_0x2d46a3,_0x1cb0fc,_0x1fe7ee,_0x580312,_0x3f8f66,_0x53a90f){const _0x4c0085=_0x49a1e3,_0x248c1e=this;_0x248c1e[_0x4c0085(0x1d3d)]=_0x53a90f[_0x4c0085(0x808)](),_0x248c1e[_0x4c0085(0x26c3)]={},_0x248c1e[_0x4c0085(0x1d9f)]={'count':0x0,'rows':[]},_0x248c1e['selectedChatWebsiteChatCannedAnswers']=[],_0x248c1e[_0x4c0085(0x402)],_0x248c1e[_0x4c0085(0x289a)]={'fields':_0x4c0085(0x9e8),'limit':0xa,'page':0x1},_0x248c1e[_0x4c0085(0x2354)]=_0xe2da55,_0x248c1e['deleteConfirm']=_0x436547,_0x248c1e[_0x4c0085(0x1339)]=_0x4e29a9,_0x248c1e[_0x4c0085(0x4cc)]=_0x9d37db,_0x248c1e['createOrEditChatWebsiteChatCannedAnswer']=_0x449398,_0x248c1e[_0x4c0085(0x27dd)]=_0x1110f8,_0x248c1e[_0x4c0085(0x2818)]=_0x58180f,_0x248c1e[_0x4c0085(0x251b)]=_0x104aa6;function _0xe2da55(_0x33d763,_0x8d8336){const _0x5478d5=_0x4c0085;_0x248c1e['chatWebsite']=_0x33d763,_0x248c1e[_0x5478d5(0x402)]=typeof _0x8d8336!=='undefined'?_0x8d8336:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x248c1e[_0x5478d5(0x289a)]['ChatWebsiteId']=_0x248c1e[_0x5478d5(0x26c3)]['id'],_0x248c1e['query']['id']=_0x248c1e['chatWebsite']['id'],_0x9d37db();}function _0x436547(_0x5a8ace,_0x4ea220){const _0x1700ad=_0x4c0085,_0x2606bc=_0x1cb0fc[_0x1700ad(0x856)]()[_0x1700ad(0x2021)](_0x1700ad(0xb14))[_0x1700ad(0x33a)](_0x1700ad(0x50b)+(_0x5a8ace[_0x1700ad(0x2494)]||_0x5a8ace['id']&&_0x28c606()[_0x1700ad(0x1766)]('chatCannedAnswer\x20#')+_0x5a8ace['id']||_0x1700ad(0xc09))+_0x1700ad(0x26d0)+_0x1700ad(0x4b8))[_0x1700ad(0x213e)](_0x1700ad(0x2d1))[_0x1700ad(0x2283)](_0x4ea220)['ok']('OK')[_0x1700ad(0x101a)](_0x1700ad(0x18fd));_0x1cb0fc[_0x1700ad(0xa60)](_0x2606bc)[_0x1700ad(0x64a)](function(){_0x58180f(_0x5a8ace);},function(){const _0x125000=_0x1700ad;console['log'](_0x125000(0x18fd));});}function _0x4e29a9(_0x5aec21){_0x248c1e['chatWebsiteChatCannedAnswers']=_0x5aec21||{'count':0x0,'rows':[]};}function _0x9d37db(){const _0x408c5d=_0x4c0085;_0x248c1e['query']['offset']=(_0x248c1e[_0x408c5d(0x289a)][_0x408c5d(0xc72)]-0x1)*_0x248c1e[_0x408c5d(0x289a)]['limit'],_0x248c1e[_0x408c5d(0x1713)]=_0x3f8f66['chatWebsite'][_0x408c5d(0x13db)](_0x248c1e[_0x408c5d(0x289a)],_0x4e29a9)[_0x408c5d(0x15e7)];}function _0x449398(_0x38475b,_0x222982){const _0x33441f=_0x4c0085;_0x1cb0fc[_0x33441f(0xa60)]({'controller':'CreateOrEditChatCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x3b8827,'parent':angular[_0x33441f(0x1f81)](_0x1fe7ee[_0x33441f(0xb49)]),'targetEvent':_0x38475b,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x248c1e['chatWebsite'],'chatCannedAnswer':_0x222982,'chatCannedAnswers':_0x248c1e[_0x33441f(0x1d9f)][_0x33441f(0x28b8)],'license':null,'setting':null,'crudPermissions':_0x248c1e[_0x33441f(0x402)]}});}function _0x58180f(_0x2759e8){const _0x11c5dd=_0x4c0085;_0x3f8f66[_0x11c5dd(0x14c4)][_0x11c5dd(0xabd)]({'id':_0x2759e8['id']})[_0x11c5dd(0x15e7)][_0x11c5dd(0x64a)](function(){const _0x586724=_0x11c5dd;_0x28c606()['remove'](_0x248c1e[_0x586724(0x1d9f)]['rows'],{'id':_0x2759e8['id']}),_0x248c1e[_0x586724(0x1d9f)][_0x586724(0xb90)]-=0x1,!_0x248c1e[_0x586724(0x1d9f)][_0x586724(0x28b8)]['length']&&_0x9d37db(),_0x580312[_0x586724(0x1339)]({'title':_0x586724(0x5d7),'msg':_0x2759e8['name']?_0x2759e8['name']+'\x20has\x20been\x20deleted!':''});})[_0x11c5dd(0x20cd)](function(_0x1823d2){const _0x43f924=_0x11c5dd;if(_0x1823d2[_0x43f924(0x1c52)]&&_0x1823d2['data']['errors']&&_0x1823d2['data'][_0x43f924(0xbae)][_0x43f924(0x1b9e)]){_0x248c1e[_0x43f924(0xbae)]=_0x1823d2[_0x43f924(0x1c52)][_0x43f924(0xbae)]||[{'message':_0x1823d2[_0x43f924(0x2915)](),'type':_0x43f924(0xb2f)}];for(let _0x4a2382=0x0;_0x4a2382<_0x1823d2[_0x43f924(0x1c52)]['errors']['length'];_0x4a2382++){_0x580312['error']({'title':_0x1823d2[_0x43f924(0x1c52)][_0x43f924(0xbae)][_0x4a2382][_0x43f924(0x2185)],'msg':_0x1823d2[_0x43f924(0x1c52)][_0x43f924(0xbae)][_0x4a2382][_0x43f924(0x18ca)]});}}else _0x580312[_0x43f924(0x1bd0)]({'title':_0x1823d2[_0x43f924(0x10b3)]?_0x43f924(0x575)+_0x1823d2[_0x43f924(0x10b3)]+_0x43f924(0x21db)+_0x1823d2['statusText']:_0x43f924(0xb2f),'msg':_0x1823d2[_0x43f924(0x1c52)]?JSON[_0x43f924(0x2317)](_0x1823d2[_0x43f924(0x1c52)][_0x43f924(0x18ca)]):_0x1823d2[_0x43f924(0x18ca)]||_0x1823d2[_0x43f924(0x2915)]()});});}function _0x1110f8(){const _0x246d91=_0x4c0085,_0x257a97=angular[_0x246d91(0x289e)](_0x248c1e['selectedChatWebsiteChatCannedAnswers']);return _0x248c1e['selectedChatWebsiteChatCannedAnswers']=[],_0x257a97;}function _0x104aa6(_0x94d500){const _0x27547b=_0x4c0085,_0x3fc0f5=_0x1cb0fc[_0x27547b(0x856)]()[_0x27547b(0x2021)](_0x27547b(0x1ae5))[_0x27547b(0x33a)](_0x27547b(0x50b)+_0x248c1e['selectedChatWebsiteChatCannedAnswers'][_0x27547b(0x1b9e)]+_0x27547b(0x163e)+_0x27547b(0x4b8))[_0x27547b(0x213e)](_0x27547b(0x27a6))[_0x27547b(0x2283)](_0x94d500)['ok']('OK')[_0x27547b(0x101a)]('CANCEL');_0x1cb0fc[_0x27547b(0xa60)](_0x3fc0f5)[_0x27547b(0x64a)](function(){const _0xb5764e=_0x27547b;_0x248c1e[_0xb5764e(0x1351)][_0xb5764e(0x1397)](function(_0xace700){_0x58180f(_0xace700);}),_0x248c1e[_0xb5764e(0x1351)]=[];});}let _0x4e5f56=!![],_0x582cc5=0x1;_0x3dc9ee[_0x4c0085(0xc62)](_0x4c0085(0x1200),function(_0x20d02f,_0x3fd8e9){const _0x372691=_0x4c0085;_0x4e5f56?_0x2d46a3(function(){_0x4e5f56=![];}):(!_0x3fd8e9&&(_0x582cc5=_0x248c1e[_0x372691(0x289a)][_0x372691(0xc72)]),_0x20d02f!==_0x3fd8e9&&(_0x248c1e[_0x372691(0x289a)][_0x372691(0xc72)]=0x1),!_0x20d02f&&(_0x248c1e['query']['page']=_0x582cc5),_0x9d37db());});}const _0x3ddbdc=_0x148cdd;;_0x134664[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x12bb),_0x49a1e3(0xc09),'api',_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6),'crudPermissions'];function _0x134664(_0x135d00,_0x821bb,_0x3cb7f2,_0x2e72cb,_0x3ff4aa,_0x49c9c7,_0x54e98b,_0xe77321,_0x3511d2,_0xa4e32,_0x22147f,_0x737a88,_0x23e3ee,_0x3294b0){const _0x5724c1=_0x49a1e3,_0x275edd=this;_0x275edd['currentUser']=_0x22147f[_0x5724c1(0x808)](),_0x275edd[_0x5724c1(0xbae)]=[],_0x275edd[_0x5724c1(0x28d6)]=_0x23e3ee,_0x275edd[_0x5724c1(0x1947)]=_0x737a88,_0x275edd[_0x5724c1(0x402)]=_0x3294b0,_0x275edd[_0x5724c1(0x6c2)]={},_0x275edd[_0x5724c1(0xccc)]=_0x275edd['setting']&&_0x275edd[_0x5724c1(0x28d6)][_0x5724c1(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x275edd['title']=_0x5724c1(0x23e6),_0x275edd[_0x5724c1(0xc09)]=angular[_0x5724c1(0x289e)](_0x3511d2),_0x275edd['chatCannedAnswers']=_0xe77321,_0x275edd[_0x5724c1(0xb91)]=![];!_0x275edd[_0x5724c1(0xc09)]&&(_0x275edd[_0x5724c1(0xc09)]={},_0x275edd[_0x5724c1(0x2021)]=_0x5724c1(0x989),_0x275edd['newChatCannedAnswer']=!![]);_0x821bb[_0x5724c1(0x1b48)]['id']&&(_0x275edd['chatCannedAnswer'][_0x5724c1(0xd93)]=_0x821bb[_0x5724c1(0x1b48)]['id']);_0x275edd[_0x5724c1(0x13c1)]=_0x107d01,_0x275edd[_0x5724c1(0xddd)]=_0x3fcab7,_0x275edd[_0x5724c1(0xab5)]=_0x4e15e1,_0x275edd[_0x5724c1(0x1605)]=_0x413949,_0x275edd[_0x5724c1(0x16cb)]=_0x36e52f;function _0x107d01(){const _0x5603a5=_0x5724c1;_0x275edd[_0x5603a5(0xbae)]=[],_0xa4e32['cannedAnswer']['save'](_0x275edd[_0x5603a5(0xc09)])['$promise'][_0x5603a5(0x64a)](function(_0x3da89a){const _0x1b621a=_0x5603a5;_0x275edd['chatCannedAnswers']['unshift'](_0x3da89a['toJSON']()),_0x54e98b[_0x1b621a(0x1339)]({'title':_0x1b621a(0xabf),'msg':_0x275edd[_0x1b621a(0xc09)][_0x1b621a(0x2494)]?_0x275edd[_0x1b621a(0xc09)]['name']+'\x20has\x20been\x20created!':''}),_0x36e52f(_0x3da89a);})[_0x5603a5(0x20cd)](function(_0x239d04){const _0x297646=_0x5603a5;if(_0x239d04[_0x297646(0x1c52)]&&_0x239d04['data']['errors']&&_0x239d04[_0x297646(0x1c52)][_0x297646(0xbae)][_0x297646(0x1b9e)]){_0x275edd['errors']=_0x239d04[_0x297646(0x1c52)][_0x297646(0xbae)]||[{'message':_0x239d04[_0x297646(0x2915)](),'type':_0x297646(0x932)}];for(let _0x49eda9=0x0;_0x49eda9<_0x239d04['data'][_0x297646(0xbae)][_0x297646(0x1b9e)];_0x49eda9+=0x1){_0x54e98b[_0x297646(0x1bd0)]({'title':_0x239d04[_0x297646(0x1c52)][_0x297646(0xbae)][_0x49eda9]['type'],'msg':_0x239d04[_0x297646(0x1c52)][_0x297646(0xbae)][_0x49eda9]['message']});}}else _0x54e98b[_0x297646(0x1bd0)]({'title':_0x239d04[_0x297646(0x10b3)]?_0x297646(0x575)+_0x239d04[_0x297646(0x10b3)]+_0x297646(0x21db)+_0x239d04[_0x297646(0x2115)]:_0x297646(0x932),'msg':_0x239d04['data']?JSON['stringify'](_0x239d04[_0x297646(0x1c52)][_0x297646(0x18ca)]):_0x239d04[_0x297646(0x2915)]()});});}function _0x3fcab7(){const _0x314094=_0x5724c1;_0x275edd['errors']=[],_0xa4e32['cannedAnswer'][_0x314094(0x2603)]({'id':_0x275edd[_0x314094(0xc09)]['id']},_0x275edd['chatCannedAnswer'])[_0x314094(0x15e7)][_0x314094(0x64a)](function(_0x1ef4f9){const _0x31682b=_0x314094,_0x26f751=_0x28c606()[_0x31682b(0x27bc)](_0x275edd[_0x31682b(0x12bb)],{'id':_0x1ef4f9['id']});_0x26f751&&_0x28c606()[_0x31682b(0x14fe)](_0x26f751,_0x28c606()[_0x31682b(0x27bb)](_0x1ef4f9[_0x31682b(0x14f8)](),_0x28c606()[_0x31682b(0x1ec6)](_0x26f751))),_0x54e98b[_0x31682b(0x1339)]({'title':_0x31682b(0xb2c),'msg':_0x275edd[_0x31682b(0xc09)][_0x31682b(0x2494)]?_0x275edd['chatCannedAnswer'][_0x31682b(0x2494)]+'\x20has\x20been\x20saved!':''}),_0x36e52f(_0x1ef4f9);})[_0x314094(0x20cd)](function(_0x5b0ebd){const _0x5376fa=_0x314094;if(_0x5b0ebd[_0x5376fa(0x1c52)]&&_0x5b0ebd[_0x5376fa(0x1c52)][_0x5376fa(0xbae)]&&_0x5b0ebd[_0x5376fa(0x1c52)]['errors'][_0x5376fa(0x1b9e)]){_0x275edd[_0x5376fa(0xbae)]=_0x5b0ebd[_0x5376fa(0x1c52)][_0x5376fa(0xbae)]||[{'message':_0x5b0ebd[_0x5376fa(0x2915)](),'type':'api.cannedAnswer.update'}];for(let _0xdab2f8=0x0;_0xdab2f8<_0x5b0ebd[_0x5376fa(0x1c52)]['errors']['length'];_0xdab2f8++){_0x54e98b[_0x5376fa(0x1bd0)]({'title':_0x5b0ebd['data'][_0x5376fa(0xbae)][_0xdab2f8][_0x5376fa(0x2185)],'msg':_0x5b0ebd[_0x5376fa(0x1c52)][_0x5376fa(0xbae)][_0xdab2f8][_0x5376fa(0x18ca)]});}}else _0x54e98b[_0x5376fa(0x1bd0)]({'title':_0x5b0ebd[_0x5376fa(0x10b3)]?_0x5376fa(0x575)+_0x5b0ebd['status']+_0x5376fa(0x21db)+_0x5b0ebd[_0x5376fa(0x2115)]:_0x5376fa(0xab6),'msg':_0x5b0ebd[_0x5376fa(0x1c52)]?JSON[_0x5376fa(0x2317)](_0x5b0ebd[_0x5376fa(0x1c52)][_0x5376fa(0x18ca)]):_0x5b0ebd['toString']()});});}function _0x4e15e1(_0x431948){const _0x51fd8f=_0x5724c1;_0x275edd['errors']=[];const _0x40fbe4=_0x2e72cb['confirm']()[_0x51fd8f(0x2021)]('Are\x20you\x20sure?')[_0x51fd8f(0x12b8)]('The\x20chatCannedAnswer\x20will\x20be\x20deleted.')[_0x51fd8f(0x213e)](_0x51fd8f(0x2258))['ok'](_0x51fd8f(0x2664))[_0x51fd8f(0x101a)](_0x51fd8f(0x1dc6))[_0x51fd8f(0x2283)](_0x431948);_0x2e72cb[_0x51fd8f(0xa60)](_0x40fbe4)[_0x51fd8f(0x64a)](function(){const _0x34e168=_0x51fd8f;_0xa4e32[_0x34e168(0x14c4)][_0x34e168(0xabd)]({'id':_0x275edd['chatCannedAnswer']['id']})[_0x34e168(0x15e7)][_0x34e168(0x64a)](function(){const _0x6c514a=_0x34e168;_0x28c606()['remove'](_0x275edd[_0x6c514a(0x12bb)],{'id':_0x275edd['chatCannedAnswer']['id']}),_0x54e98b['success']({'title':_0x6c514a(0x1e98),'msg':(_0x275edd[_0x6c514a(0xc09)]['name']||_0x6c514a(0xc09))+_0x6c514a(0x1fa8)}),_0x36e52f(_0x275edd[_0x6c514a(0xc09)]);})[_0x34e168(0x20cd)](function(_0x518773){const _0x560bcb=_0x34e168;if(_0x518773[_0x560bcb(0x1c52)]&&_0x518773['data']['errors']&&_0x518773['data']['errors'][_0x560bcb(0x1b9e)]){_0x275edd[_0x560bcb(0xbae)]=_0x518773[_0x560bcb(0x1c52)][_0x560bcb(0xbae)]||[{'message':_0x518773['toString'](),'type':'api.cannedAnswer.delete'}];for(let _0x216ae0=0x0;_0x216ae0<_0x518773[_0x560bcb(0x1c52)]['errors'][_0x560bcb(0x1b9e)];_0x216ae0++){_0x54e98b[_0x560bcb(0x1bd0)]({'title':_0x518773[_0x560bcb(0x1c52)][_0x560bcb(0xbae)][_0x216ae0]['type'],'msg':_0x518773[_0x560bcb(0x1c52)][_0x560bcb(0xbae)][_0x216ae0][_0x560bcb(0x18ca)]});}}else _0x54e98b[_0x560bcb(0x1bd0)]({'title':_0x518773[_0x560bcb(0x10b3)]?_0x560bcb(0x575)+_0x518773[_0x560bcb(0x10b3)]+'\x20-\x20'+_0x518773[_0x560bcb(0x2115)]:'api.cannedAnswer.delete','msg':_0x518773[_0x560bcb(0x1c52)]?JSON['stringify'](_0x518773['data'][_0x560bcb(0x18ca)]):_0x518773['message']||_0x518773[_0x560bcb(0x2915)]()});});},function(){});}function _0x413949(_0x36bbef){return _0x36bbef===null?undefined:new Date(_0x36bbef);}function _0x36e52f(_0x7cec8a){const _0x1fb19d=_0x5724c1;_0x2e72cb[_0x1fb19d(0x268e)](_0x7cec8a);}}const _0x39aaa1=_0x134664;;_0x592803[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),'$mdSidenav','$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf)];function _0x592803(_0x32b444,_0x24d3e4,_0x62b1c9,_0xe079e0,_0x177943,_0x38329e,_0x3c75ed,_0x5dbd8c,_0x1df587,_0x33c2e0,_0x55354c){const _0x7cef08=_0x49a1e3,_0x46278e=this;_0x46278e['currentUser']=_0x55354c[_0x7cef08(0x808)](),_0x46278e[_0x7cef08(0x16d7)]={'count':0x0,'rows':[]},_0x46278e[_0x7cef08(0x1403)]=[],_0x46278e[_0x7cef08(0x402)],_0x46278e[_0x7cef08(0x20c7)]={'first':_0x7cef08(0x1d03),'second':'2nd','third':_0x7cef08(0x157e)},_0x46278e['query']={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':_0x7cef08(0x260c),'limit':0xa,'page':0x1},_0x46278e[_0x7cef08(0x2354)]=_0x356c4d,_0x46278e[_0x7cef08(0x217e)]=_0x50586b,_0x46278e['success']=_0x445845,_0x46278e[_0x7cef08(0xe50)]=_0x223a05,_0x46278e[_0x7cef08(0x22cb)]=_0x9b7638,_0x46278e['deleteDisposition']=_0x4b3ed7,_0x46278e[_0x7cef08(0x28e3)]=_0xa4f645,_0x46278e[_0x7cef08(0x1d1e)]=_0x37ee81,_0x46278e['deselectDispositions']=_0x40e45e,_0x46278e[_0x7cef08(0x2984)]=_0x10844f;function _0x356c4d(_0x420224,_0x367bb0){const _0x2467fd=_0x7cef08;_0x46278e['chatWebsite']=_0x420224||{},_0x46278e[_0x2467fd(0x402)]=typeof _0x367bb0!==_0x2467fd(0x19a1)?_0x367bb0:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x46278e[_0x2467fd(0x289a)][_0x2467fd(0xd93)]=_0x46278e[_0x2467fd(0x26c3)]['id'],_0x46278e[_0x2467fd(0x289a)]['id']=_0x46278e['chatWebsite']['id'],_0x223a05();}function _0x9b7638(_0x3965b1,_0x13fdff){const _0x556332=_0x7cef08;_0x177943[_0x556332(0xa60)]({'controller':'CreateOrEditDispositionDialogController','controllerAs':'vm','templateUrl':_0x482291,'parent':angular['element'](_0x38329e[_0x556332(0xb49)]),'targetEvent':_0x3965b1,'clickOutsideToClose':!![],'locals':{'disposition':_0x13fdff,'model':{'id':_0x46278e[_0x556332(0x26c3)]['id'],'field':_0x556332(0xd93),'route':_0x556332(0x26c3)},'license':null,'setting':null,'crudPermissions':_0x46278e[_0x556332(0x402)]}})[_0x556332(0x64a)](function(_0x5d4909){if(_0x5d4909)_0x223a05();});}function _0x50586b(_0x79548c,_0x5b4449){const _0x57b8d3=_0x7cef08,_0x2e6d5a=_0x28c606()[_0x57b8d3(0x25f8)](_0x46278e['dispositions'][_0x57b8d3(0x28b8)],[_0x57b8d3(0xbb9),_0x79548c['id']]),_0x2b7527=_0x177943['confirm']()[_0x57b8d3(0x2021)](_0x5dbd8c['instant'](_0x57b8d3(0x13a7)))[_0x57b8d3(0x12b8)](_0x5dbd8c['instant']('TOOLS.NOTIFICATIONS.'+(_0x2e6d5a?_0x57b8d3(0x1be):_0x57b8d3(0x1942)),{'name':_0x79548c[_0x57b8d3(0x2494)]}))[_0x57b8d3(0x213e)]('Delete\x20disposition')[_0x57b8d3(0x2283)](_0x5b4449)['ok']('OK')[_0x57b8d3(0x101a)](_0x5dbd8c[_0x57b8d3(0x2292)](_0x57b8d3(0x4f5)));_0x177943[_0x57b8d3(0xa60)](_0x2b7527)[_0x57b8d3(0x64a)](function(){_0x4b3ed7(_0x79548c);});}function _0x445845(_0x143d04){const _0x7213e=_0x7cef08;_0x46278e[_0x7213e(0x16d7)]=_0x143d04||{'count':0x0,'rows':[]};}function _0x223a05(){const _0x5b36ce=_0x7cef08;_0x46278e[_0x5b36ce(0x289a)]['offset']=(_0x46278e[_0x5b36ce(0x289a)]['page']-0x1)*_0x46278e[_0x5b36ce(0x289a)][_0x5b36ce(0x25bb)],_0x46278e['promise']=_0x1df587[_0x5b36ce(0x26c3)][_0x5b36ce(0xe50)](_0x46278e[_0x5b36ce(0x289a)],_0x445845)['$promise'];}function _0x4b3ed7(_0x48ff13){const _0x410817=_0x7cef08;_0x1df587[_0x410817(0x168b)][_0x410817(0xabd)]({'id':_0x48ff13['id']})['$promise'][_0x410817(0x64a)](function(){const _0x357b1a=_0x410817;_0x223a05(),_0x33c2e0[_0x357b1a(0x1339)]({'title':_0x5dbd8c[_0x357b1a(0x2292)](_0x357b1a(0x870))});})[_0x410817(0x20cd)](function(_0x4fb04b){const _0x52b0c3=_0x410817;if(_0x4fb04b['data']&&_0x4fb04b['data'][_0x52b0c3(0xbae)]&&_0x4fb04b['data'][_0x52b0c3(0xbae)][_0x52b0c3(0x1b9e)]){_0x46278e[_0x52b0c3(0xbae)]=_0x4fb04b[_0x52b0c3(0x1c52)][_0x52b0c3(0xbae)]||[{'message':_0x4fb04b['toString'](),'type':_0x52b0c3(0x1c37)}];for(let _0x285e8b=0x0;_0x285e8b<_0x4fb04b[_0x52b0c3(0x1c52)][_0x52b0c3(0xbae)][_0x52b0c3(0x1b9e)];_0x285e8b++){_0x33c2e0[_0x52b0c3(0x1bd0)]({'title':_0x4fb04b[_0x52b0c3(0x1c52)]['errors'][_0x285e8b][_0x52b0c3(0x2185)],'msg':_0x4fb04b[_0x52b0c3(0x1c52)]['errors'][_0x285e8b][_0x52b0c3(0x18ca)]});}}else _0x33c2e0[_0x52b0c3(0x1bd0)]({'title':_0x4fb04b[_0x52b0c3(0x10b3)]?_0x52b0c3(0x575)+_0x4fb04b[_0x52b0c3(0x10b3)]+_0x52b0c3(0x21db)+_0x4fb04b['statusText']:_0x52b0c3(0x1c37),'msg':_0x4fb04b[_0x52b0c3(0x1c52)]?JSON[_0x52b0c3(0x2317)](_0x4fb04b[_0x52b0c3(0x1c52)][_0x52b0c3(0x18ca)]):_0x4fb04b[_0x52b0c3(0x18ca)]||_0x4fb04b['toString']()});});}function _0xa4f645(){const _0x26c630=_0x7cef08,_0x172c69=angular[_0x26c630(0x289e)](_0x46278e[_0x26c630(0x1403)]);return _0x46278e[_0x26c630(0x1403)]=[],_0x172c69;}function _0x37ee81(_0x16f56e){const _0x5ea3ee=_0x7cef08,_0x4467d3=_0x177943['confirm']()['title'](_0x5dbd8c[_0x5ea3ee(0x2292)]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE'))[_0x5ea3ee(0x12b8)](_0x5dbd8c[_0x5ea3ee(0x2292)](_0x5ea3ee(0x2563),{'total':_0x46278e[_0x5ea3ee(0x1403)]['length']}))[_0x5ea3ee(0x213e)](_0x5ea3ee(0x10e))[_0x5ea3ee(0x2283)](_0x16f56e)['ok']('OK')[_0x5ea3ee(0x101a)](_0x5dbd8c[_0x5ea3ee(0x2292)](_0x5ea3ee(0x4f5)));_0x177943[_0x5ea3ee(0xa60)](_0x4467d3)['then'](function(){const _0x513d21=_0x5ea3ee;_0x46278e[_0x513d21(0x1403)][_0x513d21(0x1397)](function(_0x2dada7){_0x4b3ed7(_0x2dada7);}),_0x46278e[_0x513d21(0x1403)]=[];});}function _0x40e45e(){const _0x4e512e=_0x7cef08;_0x46278e[_0x4e512e(0x1403)]=[];}function _0x10844f(){const _0x171a28=_0x7cef08;_0x46278e[_0x171a28(0x1403)]=_0x46278e[_0x171a28(0x16d7)][_0x171a28(0x28b8)];}let _0x1ad93f=!![],_0x530bfc=0x1;_0x32b444[_0x7cef08(0xc62)](_0x7cef08(0x1200),function(_0x4bea60,_0x2b09da){const _0x32b22c=_0x7cef08;_0x1ad93f?_0x3c75ed(function(){_0x1ad93f=![];}):(!_0x2b09da&&(_0x530bfc=_0x46278e[_0x32b22c(0x289a)]['page']),_0x4bea60!==_0x2b09da&&(_0x46278e[_0x32b22c(0x289a)][_0x32b22c(0xc72)]=0x1),!_0x4bea60&&(_0x46278e[_0x32b22c(0x289a)][_0x32b22c(0xc72)]=_0x530bfc),_0x223a05());});}const _0x18da0d=_0x592803;;_0x2f3cfe[_0x49a1e3(0x1e73)]=['$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0xa19)];function _0x2f3cfe(_0x318cf8,_0x59d889,_0x504bb5){const _0x3f692b=_0x49a1e3,_0x1fd4ab=this;_0x1fd4ab[_0x3f692b(0x26c3)]={},_0x1fd4ab[_0x3f692b(0xe64)]={},_0x1fd4ab[_0x3f692b(0x13f5)]=[{'type':_0x3f692b(0x2089),'name':_0x3f692b(0x224e),'icon':'icon-label'},{'type':_0x3f692b(0x1625),'name':'Select','icon':_0x3f692b(0xc5d)},{'type':_0x3f692b(0xb70),'name':_0x3f692b(0x27e4),'icon':_0x3f692b(0x1314)},{'type':_0x3f692b(0x1e3c),'name':'Textarea','icon':_0x3f692b(0x2108)},{'type':_0x3f692b(0x65b),'name':'Radio\x20Buttons','icon':_0x3f692b(0x26c8)},{'type':_0x3f692b(0xcaa),'name':_0x3f692b(0xc1e),'icon':_0x3f692b(0x1529)},{'type':_0x3f692b(0xe8e),'name':_0x3f692b(0xbb8),'icon':_0x3f692b(0x1387)}],_0x1fd4ab['init']=_0x76fdf9,_0x1fd4ab['up']=_0x73df45,_0x1fd4ab[_0x3f692b(0xb11)]=_0x58df71,_0x1fd4ab[_0x3f692b(0x25df)]=_0x48d5e6,_0x1fd4ab['remove']=_0x48faaf;function _0x76fdf9(_0x4406b7){const _0x294b67=_0x3f692b;_0x1fd4ab[_0x294b67(0xf26)]=[],_0x1fd4ab[_0x294b67(0x1559)]=[],_0x1fd4ab['uselessFields']=['id',_0x294b67(0x2378),_0x294b67(0x2056),_0x294b67(0x869),_0x294b67(0xfb1),_0x294b67(0x15e7),_0x294b67(0x19ba)],_0x1fd4ab[_0x294b67(0x26c3)]=_0x4406b7,_0x28c606()[_0x294b67(0x940)](_0x1fd4ab['chatWebsite'][_0x294b67(0xe64)])&&(_0x1fd4ab[_0x294b67(0x26c3)][_0x294b67(0xe64)]={'items':[],'fromKey':null}),_0x504bb5['cmList'][_0x294b67(0x231f)]({'id':_0x1fd4ab['chatWebsite'][_0x294b67(0x869)]})[_0x294b67(0x15e7)][_0x294b67(0x64a)](function(_0x2ee530){const _0x243617=_0x294b67;for(let _0x4747d5=0x0;_0x4747d5<_0x2ee530[_0x243617(0x28b8)][_0x243617(0x1b9e)];_0x4747d5++){_0x1fd4ab[_0x243617(0x1559)][_0x243617(0x1954)]({'key':_0x243617(0x48d)+_0x2ee530['rows'][_0x4747d5]['id'],'value':_0x2ee530[_0x243617(0x28b8)][_0x4747d5][_0x243617(0x1e0a)]});}return _0x504bb5['cmContact']['describe']()[_0x243617(0x15e7)];})[_0x294b67(0x64a)](function(_0x34e761){const _0x1f5a21=_0x294b67,_0x4ed0d1=_0x28c606()[_0x1f5a21(0x1ec6)](_0x34e761);for(let _0x1013d8=0x0;_0x1013d8<_0x4ed0d1[_0x1f5a21(0x1b9e)];_0x1013d8++){!_0x28c606()[_0x1f5a21(0x68a)](_0x1fd4ab[_0x1f5a21(0x16a7)],_0x4ed0d1[_0x1013d8])&&!_0x28c606()[_0x1f5a21(0x1273)](_0x4ed0d1[_0x1013d8],_0x1f5a21(0x48d))&&_0x1fd4ab[_0x1f5a21(0xf26)][_0x1f5a21(0x1891)]({'key':_0x4ed0d1[_0x1013d8],'value':_0x4ed0d1[_0x1013d8]});}return _0x504bb5[_0x1f5a21(0xefb)][_0x1f5a21(0x896)]()[_0x1f5a21(0x15e7)];})[_0x294b67(0x64a)](function(_0x39a64d){const _0x405414=_0x294b67;_0x1fd4ab[_0x405414(0x145c)]=_0x39a64d['rows'];})[_0x294b67(0x20cd)](function(_0x10376b){const _0x2cdca6=_0x294b67;console[_0x2cdca6(0x1bd0)](_0x10376b);});}function _0x73df45(_0x5b39ba,_0x2e6ff9){const _0x1c58ef=_0x3f692b;if(_0x2e6ff9!==0x0){const _0x46914c=_0x1fd4ab['chatWebsite'][_0x1c58ef(0xe64)][_0x1c58ef(0x23cb)][_0x2e6ff9-0x1];_0x1fd4ab[_0x1c58ef(0x26c3)][_0x1c58ef(0xe64)][_0x1c58ef(0x23cb)][_0x2e6ff9]=_0x46914c,_0x1fd4ab['chatWebsite'][_0x1c58ef(0xe64)]['items'][_0x2e6ff9-0x1]=angular[_0x1c58ef(0x289e)](_0x5b39ba);if(_0x1fd4ab['chatWebsite'][_0x1c58ef(0xe64)]['fromKey']===_0x2e6ff9)_0x1fd4ab['chatWebsite']['offlineForm'][_0x1c58ef(0x2116)]--;else _0x1fd4ab[_0x1c58ef(0x26c3)][_0x1c58ef(0xe64)]['fromKey']===_0x2e6ff9-0x1&&_0x1fd4ab[_0x1c58ef(0x26c3)][_0x1c58ef(0xe64)][_0x1c58ef(0x2116)]++;}}function _0x58df71(_0x3781b8,_0x43a73e){const _0xf16ca6=_0x3f692b;if(_0x43a73e!==_0x1fd4ab[_0xf16ca6(0x26c3)]['offlineForm']['items'][_0xf16ca6(0x1b9e)]-0x1){const _0x468ef=_0x1fd4ab[_0xf16ca6(0x26c3)]['offlineForm'][_0xf16ca6(0x23cb)][_0x43a73e+0x1];_0x1fd4ab[_0xf16ca6(0x26c3)][_0xf16ca6(0xe64)]['items'][_0x43a73e]=_0x468ef,_0x1fd4ab[_0xf16ca6(0x26c3)][_0xf16ca6(0xe64)][_0xf16ca6(0x23cb)][_0x43a73e+0x1]=angular['copy'](_0x3781b8);if(_0x1fd4ab[_0xf16ca6(0x26c3)][_0xf16ca6(0xe64)][_0xf16ca6(0x2116)]===_0x43a73e)_0x1fd4ab[_0xf16ca6(0x26c3)]['offlineForm'][_0xf16ca6(0x2116)]++;else _0x1fd4ab['chatWebsite'][_0xf16ca6(0xe64)][_0xf16ca6(0x2116)]===_0x43a73e+0x1&&_0x1fd4ab[_0xf16ca6(0x26c3)]['offlineForm'][_0xf16ca6(0x2116)]--;}}function _0x48d5e6(_0x234e9d){const _0x17dfea=_0x3f692b;_0x1fd4ab[_0x17dfea(0x26c3)][_0x17dfea(0xe64)]['items']['push']({'type':_0x234e9d,'cmField':null,'variable':null});}function _0x48faaf(_0x395656){const _0x51c206=_0x3f692b,_0x5c220b=_0x318cf8[_0x51c206(0x856)]()[_0x51c206(0x2021)](_0x51c206(0x2874))[_0x51c206(0x250d)](_0x51c206(0x103a))[_0x51c206(0x213e)](_0x51c206(0x26a3))['ok']('Ok')[_0x51c206(0x101a)]('Cancel');_0x318cf8[_0x51c206(0xa60)](_0x5c220b)[_0x51c206(0x64a)](function(){const _0x3e7ff4=_0x51c206;_0x1fd4ab['chatWebsite']['offlineForm'][_0x3e7ff4(0x23cb)][_0x3e7ff4(0x18f0)](_0x395656,0x1);});}}const _0x3982bc=_0x2f3cfe;;_0x3eca5a['$inject']=[_0x49a1e3(0x212a),'$document','api'];function _0x3eca5a(_0x2a2c6f,_0xe6af06,_0x524809){const _0x6da082=_0x49a1e3,_0x466871=this;_0x466871[_0x6da082(0x26c3)]={},_0x466871[_0x6da082(0x166e)]={},_0x466871[_0x6da082(0x13f5)]=[{'type':_0x6da082(0x2089),'name':_0x6da082(0x224e),'icon':_0x6da082(0x85a)},{'type':_0x6da082(0x1625),'name':_0x6da082(0x25d4),'icon':'icon-playlist-plus'},{'type':_0x6da082(0xb70),'name':_0x6da082(0x27e4),'icon':_0x6da082(0x1314)},{'type':_0x6da082(0x1e3c),'name':'Textarea','icon':'icon-format-text'},{'type':_0x6da082(0x65b),'name':_0x6da082(0x24dc),'icon':_0x6da082(0x26c8)},{'type':'checkboxes','name':_0x6da082(0xc1e),'icon':_0x6da082(0x1529)},{'type':_0x6da082(0xe8e),'name':_0x6da082(0xbb8),'icon':'icon-checkbox-marked-outline'}],_0x466871[_0x6da082(0x2354)]=_0x3d8bf4,_0x466871['up']=_0xfbeb63,_0x466871[_0x6da082(0xb11)]=_0xd119cb,_0x466871['add']=_0x284df6,_0x466871['remove']=_0x65f49c;function _0x3d8bf4(_0x386148){const _0x4132f6=_0x6da082;_0x466871['fields']=[],_0x466871[_0x4132f6(0x1559)]=[],_0x466871[_0x4132f6(0x16a7)]=['id','createdAt',_0x4132f6(0x2056),'ListId',_0x4132f6(0xfb1),'$promise','$resolved'],_0x466871[_0x4132f6(0x26c3)]=_0x386148,_0x28c606()[_0x4132f6(0x940)](_0x466871[_0x4132f6(0x26c3)]['onlineForm'])&&(_0x466871[_0x4132f6(0x26c3)][_0x4132f6(0x166e)]={'items':[],'fromKey':null}),_0x524809[_0x4132f6(0x19f8)][_0x4132f6(0x231f)]({'id':_0x466871['chatWebsite'][_0x4132f6(0x869)]})[_0x4132f6(0x15e7)]['then'](function(_0x3f83a6){const _0x5392a7=_0x4132f6;for(let _0x7f1c14=0x0;_0x7f1c14<_0x3f83a6[_0x5392a7(0x28b8)][_0x5392a7(0x1b9e)];_0x7f1c14++){_0x466871[_0x5392a7(0x1559)][_0x5392a7(0x1954)]({'key':'cf_'+_0x3f83a6['rows'][_0x7f1c14]['id'],'value':_0x3f83a6[_0x5392a7(0x28b8)][_0x7f1c14][_0x5392a7(0x1e0a)]});}return _0x524809[_0x5392a7(0xdf5)][_0x5392a7(0xa81)]()[_0x5392a7(0x15e7)];})[_0x4132f6(0x64a)](function(_0x36ba9f){const _0x10c463=_0x4132f6,_0x1ed487=_0x28c606()[_0x10c463(0x1ec6)](_0x36ba9f);for(let _0x51787d=0x0;_0x51787d<_0x1ed487['length'];_0x51787d++){!_0x28c606()[_0x10c463(0x68a)](_0x466871[_0x10c463(0x16a7)],_0x1ed487[_0x51787d])&&!_0x28c606()[_0x10c463(0x1273)](_0x1ed487[_0x51787d],'cf_')&&_0x466871[_0x10c463(0xf26)][_0x10c463(0x1891)]({'key':_0x1ed487[_0x51787d],'value':_0x1ed487[_0x51787d]});}return _0x524809[_0x10c463(0xefb)][_0x10c463(0x896)]()[_0x10c463(0x15e7)];})[_0x4132f6(0x64a)](function(_0x2d0553){const _0x38badc=_0x4132f6;_0x466871[_0x38badc(0x145c)]=_0x2d0553[_0x38badc(0x28b8)];})[_0x4132f6(0x20cd)](function(_0x481b55){console['error'](_0x481b55);});}function _0xfbeb63(_0x4f7d59,_0x286176){const _0x519887=_0x6da082;if(_0x286176!==0x0){const _0x15c946=_0x466871[_0x519887(0x26c3)][_0x519887(0x166e)]['items'][_0x286176-0x1];_0x466871['chatWebsite'][_0x519887(0x166e)][_0x519887(0x23cb)][_0x286176]=_0x15c946,_0x466871[_0x519887(0x26c3)][_0x519887(0x166e)][_0x519887(0x23cb)][_0x286176-0x1]=angular['copy'](_0x4f7d59);if(_0x466871['chatWebsite'][_0x519887(0x166e)][_0x519887(0x2116)]===_0x286176)_0x466871[_0x519887(0x26c3)][_0x519887(0x166e)][_0x519887(0x2116)]--;else _0x466871[_0x519887(0x26c3)][_0x519887(0x166e)][_0x519887(0x2116)]===_0x286176-0x1&&_0x466871[_0x519887(0x26c3)]['onlineForm'][_0x519887(0x2116)]++;}}function _0xd119cb(_0x5126ce,_0x6bf89c){const _0x886205=_0x6da082;if(_0x6bf89c!==_0x466871[_0x886205(0x26c3)][_0x886205(0x166e)]['items']['length']-0x1){const _0x26cdf1=_0x466871[_0x886205(0x26c3)][_0x886205(0x166e)]['items'][_0x6bf89c+0x1];_0x466871[_0x886205(0x26c3)][_0x886205(0x166e)][_0x886205(0x23cb)][_0x6bf89c]=_0x26cdf1,_0x466871[_0x886205(0x26c3)][_0x886205(0x166e)][_0x886205(0x23cb)][_0x6bf89c+0x1]=angular[_0x886205(0x289e)](_0x5126ce);if(_0x466871['chatWebsite']['onlineForm'][_0x886205(0x2116)]===_0x6bf89c)_0x466871[_0x886205(0x26c3)]['onlineForm'][_0x886205(0x2116)]++;else _0x466871[_0x886205(0x26c3)]['onlineForm'][_0x886205(0x2116)]===_0x6bf89c+0x1&&_0x466871[_0x886205(0x26c3)][_0x886205(0x166e)][_0x886205(0x2116)]--;}}function _0x284df6(_0x474b52){const _0x45f6fc=_0x6da082;_0x466871[_0x45f6fc(0x26c3)]['onlineForm'][_0x45f6fc(0x23cb)][_0x45f6fc(0x1954)]({'type':_0x474b52,'cmField':null,'variable':null});}function _0x65f49c(_0x1b5171){const _0x47e689=_0x6da082,_0x546dcd=_0x2a2c6f[_0x47e689(0x856)]()['title'](_0x47e689(0x2874))[_0x47e689(0x250d)](_0x47e689(0x103a))[_0x47e689(0x213e)](_0x47e689(0x26a3))['ok']('Ok')[_0x47e689(0x101a)](_0x47e689(0x1dc6));_0x2a2c6f[_0x47e689(0xa60)](_0x546dcd)[_0x47e689(0x64a)](function(){const _0x4453a8=_0x47e689;_0x466871[_0x4453a8(0x26c3)]['onlineForm'][_0x4453a8(0x2116)]===_0x1b5171&&(_0x466871[_0x4453a8(0x26c3)]['onlineForm'][_0x4453a8(0x2116)]=null),_0x466871[_0x4453a8(0x26c3)]['onlineForm'][_0x4453a8(0x23cb)][_0x4453a8(0x18f0)](_0x1b5171,0x1),!_0x466871[_0x4453a8(0x26c3)][_0x4453a8(0x166e)][_0x4453a8(0x23cb)]['length']&&(_0x466871[_0x4453a8(0x26c3)][_0x4453a8(0x166e)][_0x4453a8(0x2116)]=null);});}}const _0x78c1c9=_0x3eca5a;;_0xfc8484[_0x49a1e3(0x1e73)]=['$cookies','toasty'];function _0xfc8484(_0x5a5aba,_0x3d184d){const _0x44943d=_0x49a1e3,_0x28235b=this,_0x5dba79=0x8,_0x63874a=_0x5dba79*0x400*0x400;_0x28235b[_0x44943d(0x26c3)]={},_0x28235b[_0x44943d(0x402)],_0x28235b[_0x44943d(0x1026)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x63874a,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x28235b[_0x44943d(0x1eec)]={'flow':{}},_0x28235b[_0x44943d(0x397)]=![],_0x28235b[_0x44943d(0x25ed)]=_0x4fa186,_0x28235b[_0x44943d(0x1c5)]=_0x1bed6d,_0x28235b['fileSuccess']=_0x424b99,_0x28235b[_0x44943d(0x2354)]=_0x45d54d;function _0x45d54d(_0x1b699e,_0x40750f){const _0x105f0d=_0x44943d;_0x28235b['chatWebsite']=angular[_0x105f0d(0x289e)](_0x1b699e),_0x28235b['crudPermissions']=typeof _0x40750f!==_0x105f0d(0x19a1)?_0x40750f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x28235b[_0x105f0d(0x1026)][_0x105f0d(0x2497)]=_0x105f0d(0xd76)[_0x105f0d(0x1353)](':id',_0x28235b[_0x105f0d(0x26c3)]['id']),_0x28235b[_0x105f0d(0x26c3)][_0x105f0d(0x21e3)]=[];}function _0x4fa186(_0xb74ab2){const _0x2db629=_0x44943d,_0x365587=[_0x2db629(0x105e),_0x2db629(0xfcc)];if(!_0x28c606()[_0x2db629(0x68a)](_0x365587,_0xb74ab2[_0x2db629(0xa2f)]()))return _0x3d184d[_0x2db629(0x1bd0)]({'title':_0x2db629(0x1486)+_0xb74ab2[_0x2db629(0xa2f)](),'msg':_0x2db629(0x1b51)+_0x365587[_0x2db629(0x9a6)]()}),![];if(_0xb74ab2[_0x2db629(0x1c97)]>_0x63874a)return _0x3d184d[_0x2db629(0x1bd0)]({'title':'File\x20too\x20big','msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x5dba79+'MB'}),![];const _0xd9be44={'id':_0xb74ab2[_0x2db629(0x16c4)],'file':_0xb74ab2,'type':_0x2db629(0xffd)};return _0x28235b[_0x2db629(0x26c3)]['images'][_0x2db629(0x1891)](_0xd9be44),!![];}function _0x1bed6d(){const _0x3ac698=_0x44943d;_0x28235b['ngFlow'][_0x3ac698(0x891)][_0x3ac698(0x2017)]['headers']={'X-Requested-With':_0x3ac698(0x15fc),'Authorization':'Bearer\x20'+_0x5a5aba[_0x3ac698(0x896)](_0x3ac698(0x283d))},_0x28235b['ngFlow'][_0x3ac698(0x891)][_0x3ac698(0x1c5)]();}function _0x424b99(_0xf8a3bb){const _0x227e0c=_0x44943d;angular['forEach'](_0x28235b[_0x227e0c(0x26c3)][_0x227e0c(0x21e3)],function(_0x29abbe){const _0x25da60=_0x227e0c;if(_0x29abbe['id']===_0xf8a3bb['uniqueIdentifier']){const _0x9453de=new FileReader();_0x9453de[_0x25da60(0x2724)](_0x29abbe['file'][_0x25da60(0x10b4)]),_0x9453de[_0x25da60(0x11c)]=function(_0x2e29ed){const _0x578c87=_0x25da60;_0x29abbe[_0x578c87(0x2761)]=_0x2e29ed[_0x578c87(0x2497)][_0x578c87(0x5e3)];},_0x29abbe['type']='image';}});}}const _0xf1378b=_0xfc8484;;const _0x27e3ee=_0x2e4a48['p']+_0x49a1e3(0x297e);;_0x73ca84[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$q','$translate','$timeout',_0x49a1e3(0x212a),_0x49a1e3(0x1373),'toasty',_0x49a1e3(0xa19),'Auth'];function _0x73ca84(_0xf300cf,_0x4ac1e8,_0x4717f4,_0x293655,_0x545a07,_0x177b76,_0x472039,_0x26eea2,_0x13a424,_0xbe218,_0x38e7b8){const _0x11e7eb=_0x49a1e3,_0x4f8cba=this;_0x4f8cba[_0x11e7eb(0x1d3d)]=_0x38e7b8[_0x11e7eb(0x808)](),_0x4f8cba[_0x11e7eb(0x26c3)]={},_0x4f8cba[_0x11e7eb(0x666)]={'count':0x0,'rows':[]},_0x4f8cba['selectedChatWebsiteInteractions']=[],_0x4f8cba[_0x11e7eb(0x402)],_0x4f8cba[_0x11e7eb(0x289a)]={'read':_0x11e7eb(0x8f1),'closed':_0x11e7eb(0x8f1),'sort':_0x11e7eb(0x1b35),'includeAll':_0x11e7eb(0x1685),'limit':0xa,'page':0x1},_0x4f8cba['init']=_0xecaded,_0x4f8cba[_0x11e7eb(0x217e)]=_0x2b5ae5,_0x4f8cba[_0x11e7eb(0xdce)]=_0x1cb87b,_0x4f8cba[_0x11e7eb(0x1339)]=_0x5b1a99,_0x4f8cba[_0x11e7eb(0xd0a)]=_0x1975d6,_0x4f8cba[_0x11e7eb(0x756)]=_0x2e3299,_0x4f8cba['openAdvancedSearch']=_0x47c0f8,_0x4f8cba['exportSelectedChatWebsiteInteractions']=_0x5d54eb,_0x4f8cba[_0x11e7eb(0x284f)]=_0x1b6a11,_0x4f8cba[_0x11e7eb(0x1491)]=_0x5e9e90;function _0xecaded(_0x1c4e51,_0x3bd821){const _0x492435=_0x11e7eb;_0x4f8cba[_0x492435(0x26c3)]=_0x1c4e51,_0x4f8cba[_0x492435(0x402)]=typeof _0x3bd821!==_0x492435(0x19a1)?_0x3bd821:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4f8cba[_0x492435(0x289a)]['ChatWebsiteId']=_0x4f8cba['chatWebsite']['id'],_0x4f8cba[_0x492435(0x1b2f)]={'fields':_0x355f3a()},_0x1f7d9d();}function _0x1f7d9d(){const _0x574e5a=_0x11e7eb;return _0xbe218[_0x574e5a(0xac8)][_0x574e5a(0x896)]()[_0x574e5a(0x15e7)][_0x574e5a(0x64a)](function(_0x2240f1){const _0x5a475a=_0x574e5a;_0x4f8cba[_0x5a475a(0x16a6)]=_0x2240f1||{'count':0x0,'rows':[]};})[_0x574e5a(0x64a)](function(){const _0x4c545e=_0x574e5a;_0x4f8cba[_0x4c545e(0x9fc)]=_0x27a1aa();});}function _0x27a1aa(){const _0xfce68e=_0x11e7eb;return[{'name':_0xfce68e(0x1967),'key':_0xfce68e(0x2378),'type':_0xfce68e(0x232e),'label':_0xfce68e(0x2720)},{'name':_0xfce68e(0x17af),'key':_0xfce68e(0x12a6),'type':_0xfce68e(0x2926),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0xfce68e(0x1889)},{'value':null,'translate':_0xfce68e(0x2200)}]},{'name':'Status','key':_0xfce68e(0x1140),'type':_0xfce68e(0x2926),'label':_0xfce68e(0x110d),'customOptions':[{'value':0x0,'translate':_0xfce68e(0x1313)},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0xfce68e(0x2200)}]},{'name':'Agent','key':_0xfce68e(0x246c),'type':_0xfce68e(0x2926),'label':_0xfce68e(0x18bf),'customOptions':[{'value':'null','translate':_0xfce68e(0x276d)},{'value':undefined,'translate':_0xfce68e(0x2200)}]},{'name':_0xfce68e(0x1e9f),'key':'tag','type':_0xfce68e(0x20ae),'label':_0xfce68e(0x1208),'options':_0x4f8cba[_0xfce68e(0x16a6)]['rows'],'placeholder':'DASHBOARDS.TAGS'}];}function _0x355f3a(){const _0xde27c6=_0x11e7eb;return[{'name':'Id','column':'id','type':_0xde27c6(0x2113)},{'name':_0xde27c6(0x1c38),'column':'Contact','type':_0xde27c6(0x21b7),'options':{'searchFields':[_0xde27c6(0x2518),_0xde27c6(0x21c4),_0xde27c6(0xd47)],'route':{'model':_0xde27c6(0xdf5),'action':_0xde27c6(0x896),'params':{'fields':_0xde27c6(0x3ef),'Contact':_0xde27c6(0xb96),'nolimit':!![]}},'extraOperators':[_0xde27c6(0xe87)],'excludedOperators':[_0xde27c6(0x14b5)]}},{'name':'Subject','column':_0xde27c6(0x25bc),'type':'text','options':{'excludedOperators':[_0xde27c6(0x1743),_0xde27c6(0x14b5)]}},{'name':_0xde27c6(0x19fb),'column':'plainBody','type':_0xde27c6(0x39b),'options':{'excludedOperators':['$eq',_0xde27c6(0x14b5)]}},{'name':_0xde27c6(0x2311),'column':_0xde27c6(0x1140),'type':_0xde27c6(0x2926),'values':[{'id':0x0,'translate':_0xde27c6(0x1313)},{'id':0x1,'translate':_0xde27c6(0x5cd)}],'options':{'excludedOperators':[_0xde27c6(0x14b5)]}},{'name':_0xde27c6(0x12ad),'column':'User','type':_0xde27c6(0x21b7),'options':{'table':'i','route':{'model':_0xde27c6(0x2e8),'action':_0xde27c6(0x896),'params':{'role':_0xde27c6(0x11ae),'fields':_0xde27c6(0xd53),'nolimit':!![]}},'searchFields':[_0xde27c6(0x15c),_0xde27c6(0x2494)],'extraOperators':[_0xde27c6(0xe87)],'excludedOperators':[_0xde27c6(0x14b5)]}},{'name':_0xde27c6(0x1178),'column':'Tag','type':'multiselect','options':{'route':{'model':'tag','action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0xde27c6(0x9eb)]}},{'name':'Start\x20Date','column':_0xde27c6(0x2378),'type':'date','options':{'excludedOperators':[_0xde27c6(0x14b5)]}},{'name':'Read','column':_0xde27c6(0x18d3),'type':_0xde27c6(0x2926),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0xde27c6(0x13be)}],'options':{'excludedOperators':[_0xde27c6(0x14b5)]}}];}function _0x47c0f8(){const _0x4482a3=_0x11e7eb;_0x472039['show']({'controller':_0x4482a3(0x271c),'controllerAs':'vm','templateUrl':_0x46e7cb,'parent':angular[_0x4482a3(0x1f81)](_0x26eea2['body']),'clickOutsideToClose':![],'locals':{'fields':_0x4f8cba['advancedSearch'][_0x4482a3(0xf26)],'color':undefined,'storagePath':'chat.chatWebsites'},'fullscreen':!![]})[_0x4482a3(0x64a)](function(_0x33077a){const _0x4e8eae=_0x4482a3;_0x4f8cba[_0x4e8eae(0x289a)][_0x4e8eae(0xb58)]=_0x33077a===![]?undefined:_0x33077a;if(_0x4f8cba[_0x4e8eae(0x289a)][_0x4e8eae(0xb58)])_0x1975d6();else _0x33077a===![]&&_0x1975d6();})[_0x4482a3(0x20cd)](function(_0x5168e1){const _0x459b57=_0x4482a3;_0x13a424[_0x459b57(0x1bd0)]({'title':'ERROR','msg':_0x5168e1[_0x459b57(0x1c52)]?JSON[_0x459b57(0x2317)](_0x5168e1[_0x459b57(0x1c52)][_0x459b57(0x18ca)]):_0x5168e1[_0x459b57(0x2915)]()});});}function _0x1cb87b(_0x3e7b6c,_0x51af36,_0x127719){const _0x5d6b9d=_0x11e7eb;return _0xbe218[_0x5d6b9d(0x180c)]['download']({'id':_0x3e7b6c['id'],'exists':!![],'attachments':_0x127719})['$promise'][_0x5d6b9d(0x64a)](function(_0x54f861){const _0x2512bb=_0x5d6b9d,_0x432843=[_0x54f861[_0x2512bb(0x5a9)]];let _0x1a1f46='interaction'+_0x3e7b6c['id'];const _0x5a7563=new Blob(_0x432843,{'type':_0x54f861[_0x2512bb(0x2185)]});_0x1a1f46=_0x2512bb(0x1e1f)+_0x3e7b6c['id']+_0x2512bb(0x2177);const _0x1e8040=window[_0x2512bb(0x123f)][_0x2512bb(0x2978)]('a');_0x1e8040['setAttribute'](_0x2512bb(0x25d0),URL['createObjectURL'](_0x5a7563)),_0x1e8040['setAttribute'](_0x2512bb(0x19b3),_0x1a1f46),document[_0x2512bb(0xb49)][_0x2512bb(0x2661)](_0x1e8040),_0x1e8040[_0x2512bb(0x2668)]();})['catch'](function(_0x35945e){const _0x2391eb=_0x5d6b9d;if(_0x35945e[_0x2391eb(0x1c52)]&&_0x35945e[_0x2391eb(0x1c52)][_0x2391eb(0xbae)]&&_0x35945e['data'][_0x2391eb(0xbae)][_0x2391eb(0x1b9e)])for(let _0x125b52=0x0;_0x125b52<_0x35945e['data'][_0x2391eb(0xbae)][_0x2391eb(0x1b9e)];_0x125b52+=0x1){_0x13a424[_0x2391eb(0x1bd0)]({'title':_0x35945e['data'][_0x2391eb(0xbae)][_0x125b52]['type'],'msg':_0x35945e[_0x2391eb(0x1c52)]['errors'][_0x125b52]['message']});}else _0x13a424[_0x2391eb(0x1bd0)]({'title':_0x35945e[_0x2391eb(0x10b3)]?_0x2391eb(0x575)+_0x35945e[_0x2391eb(0x10b3)]+_0x2391eb(0x21db)+_0x35945e[_0x2391eb(0x2115)]:_0x2391eb(0x1ba3),'msg':_0x35945e[_0x2391eb(0x1c52)]?JSON[_0x2391eb(0x2317)](_0x35945e[_0x2391eb(0x1c52)][_0x2391eb(0x18ca)]):_0x35945e['toString']()});});}function _0x2b5ae5(_0x196ef0,_0x5944a3){const _0x3edc80=_0x11e7eb,_0x3197e9=_0x472039[_0x3edc80(0x856)]()[_0x3edc80(0x2021)](_0x3edc80(0x686))['htmlContent'](_0x3edc80(0x50b)+(_0x196ef0['name']||_0x196ef0['id']&&_0x28c606()[_0x3edc80(0x1766)](_0x3edc80(0x1302))+_0x196ef0['id']||_0x3edc80(0x73a))+_0x3edc80(0x26d0)+_0x3edc80(0x4b8))[_0x3edc80(0x213e)](_0x3edc80(0x1e54))['targetEvent'](_0x5944a3)['ok']('OK')['cancel'](_0x3edc80(0x18fd));_0x472039['show'](_0x3197e9)['then'](function(){_0x1b6a11(_0x196ef0);},function(){const _0x47c555=_0x3edc80;console[_0x47c555(0x9b4)]('CANCEL');});}function _0x5b1a99(_0x4c31a8){const _0x5e3660=_0x11e7eb;_0x4f8cba['chatWebsiteInteractions']=_0x4c31a8||{'count':0x0,'rows':[]};for(let _0x4e30c2=0x0;_0x4e30c2<_0x4f8cba[_0x5e3660(0x666)][_0x5e3660(0x28b8)][_0x5e3660(0x1b9e)];_0x4e30c2+=0x1){const _0x143e47=_0x4f8cba[_0x5e3660(0x666)][_0x5e3660(0x28b8)][_0x4e30c2];_0x9eed27(_0x143e47),_0x143e47['Owner'][_0x5e3660(0x2494)]=_0x2d01ce(_0x143e47);}}function _0x1975d6(){const _0x452ec9=_0x11e7eb;_0x4f8cba[_0x452ec9(0x289a)][_0x452ec9(0x24f9)]=(_0x4f8cba[_0x452ec9(0x289a)][_0x452ec9(0xc72)]-0x1)*_0x4f8cba[_0x452ec9(0x289a)]['limit'],_0x4f8cba[_0x452ec9(0x1713)]=_0xbe218['chatInteraction'][_0x452ec9(0x896)](_0x4f8cba['query'],_0x5b1a99)[_0x452ec9(0x15e7)];}function _0x2e3299(_0x25c3ca,_0x48262d){const _0x197e69=_0x11e7eb;_0x472039[_0x197e69(0xa60)]({'controller':'AgentGeneralInteractionController','controllerAs':'vm','templateUrl':_0x27e3ee,'parent':angular[_0x197e69(0x1f81)](_0x26eea2['body']),'targetEvent':_0x25c3ca,'clickOutsideToClose':!![],'onShowing':function(_0x5e62fc){const _0x27b3c6=_0x197e69;_0x5e62fc['vm'][_0x27b3c6(0x2354)]({'id':0x1,'channel':_0x27b3c6(0xf52),'interaction':_0x48262d,'spy':!![]},_0x4ac1e8[_0x27b3c6(0x4e3)]['vm'][_0x27b3c6(0x28d6)]);}});}function _0x1b6a11(_0x3a2d02){const _0x29556e=_0x11e7eb;_0xbe218[_0x29556e(0x180c)][_0x29556e(0xabd)]({'id':_0x3a2d02['id']})[_0x29556e(0x15e7)][_0x29556e(0x64a)](function(){const _0x182f42=_0x29556e;_0x28c606()[_0x182f42(0x21c7)](_0x4f8cba[_0x182f42(0x666)][_0x182f42(0x28b8)],{'id':_0x3a2d02['id']}),_0x4f8cba[_0x182f42(0x666)][_0x182f42(0xb90)]-=0x1,!_0x4f8cba['chatWebsiteInteractions'][_0x182f42(0x28b8)][_0x182f42(0x1b9e)]&&_0x1975d6(),_0x13a424['success']({'title':_0x182f42(0xa06),'msg':_0x3a2d02[_0x182f42(0x2494)]?_0x3a2d02[_0x182f42(0x2494)]+_0x182f42(0x1fa8):''});})[_0x29556e(0x20cd)](function(_0x2e86df){const _0x24497a=_0x29556e;if(_0x2e86df[_0x24497a(0x1c52)]&&_0x2e86df[_0x24497a(0x1c52)][_0x24497a(0xbae)]&&_0x2e86df['data'][_0x24497a(0xbae)][_0x24497a(0x1b9e)]){_0x4f8cba[_0x24497a(0xbae)]=_0x2e86df['data'][_0x24497a(0xbae)]||[{'message':_0x2e86df['toString'](),'type':'SYSTEM:GETchatWebsite'}];for(let _0x3eb106=0x0;_0x3eb106<_0x2e86df[_0x24497a(0x1c52)][_0x24497a(0xbae)][_0x24497a(0x1b9e)];_0x3eb106++){_0x13a424[_0x24497a(0x1bd0)]({'title':_0x2e86df[_0x24497a(0x1c52)]['errors'][_0x3eb106][_0x24497a(0x2185)],'msg':_0x2e86df[_0x24497a(0x1c52)][_0x24497a(0xbae)][_0x3eb106]['message']});}}else _0x13a424[_0x24497a(0x1bd0)]({'title':_0x2e86df[_0x24497a(0x10b3)]?_0x24497a(0x575)+_0x2e86df[_0x24497a(0x10b3)]+'\x20-\x20'+_0x2e86df[_0x24497a(0x2115)]:_0x24497a(0xb2f),'msg':_0x2e86df[_0x24497a(0x1c52)]?JSON[_0x24497a(0x2317)](_0x2e86df['data'][_0x24497a(0x18ca)]):_0x2e86df[_0x24497a(0x18ca)]||_0x2e86df[_0x24497a(0x2915)]()});});}function _0x5d54eb(){const _0x4d3182=_0x11e7eb,_0x3bdab4=angular[_0x4d3182(0x289e)](_0x4f8cba['selectedChatWebsiteInteractions']);return _0x4f8cba['selectedChatWebsiteInteractions']=[],_0x3bdab4;}function _0x5e9e90(_0x819a4f){const _0xf63ec=_0x11e7eb,_0x2fad8e=_0x472039[_0xf63ec(0x856)]()[_0xf63ec(0x2021)](_0xf63ec(0x201))['htmlContent'](''+_0x4f8cba[_0xf63ec(0x1818)]['length']+_0xf63ec(0x163e)+_0xf63ec(0x4b8))[_0xf63ec(0x213e)](_0xf63ec(0xb35))[_0xf63ec(0x2283)](_0x819a4f)['ok']('OK')['cancel'](_0xf63ec(0x18fd));_0x472039[_0xf63ec(0xa60)](_0x2fad8e)['then'](function(){const _0x61423=_0xf63ec;_0x4f8cba[_0x61423(0x1818)][_0x61423(0x1397)](function(_0x356559){_0x1b6a11(_0x356559);}),_0x4f8cba[_0x61423(0x1818)]=[];});}function _0x9eed27(_0x2297bd){const _0xbfd343=_0x11e7eb;_0x2297bd[_0xbfd343(0x1c38)]?_0x2297bd[_0xbfd343(0xfd7)]=(_0x2297bd[_0xbfd343(0x1c38)][_0xbfd343(0x2518)]||'')+'\x20'+(_0x2297bd[_0xbfd343(0x1c38)]['lastName']||''):_0x2297bd[_0xbfd343(0xfd7)]=_0x545a07[_0xbfd343(0x2292)](_0xbfd343(0x1c8d));}function _0x2d01ce(_0x13cf78){const _0x2bb22b=_0x11e7eb;if(_0x13cf78[_0x2bb22b(0x246c)])return _0x13cf78[_0x2bb22b(0x246c)]===_0x4f8cba[_0x2bb22b(0x1d3d)]['id']?_0x545a07[_0x2bb22b(0x2292)]('DASHBOARDS.ME'):_0x13cf78[_0x2bb22b(0x1b06)][_0x2bb22b(0x15c)]+'\x20<'+_0x13cf78[_0x2bb22b(0x1b06)][_0x2bb22b(0xe2f)]+'>';return _0x545a07['instant'](_0x2bb22b(0x276d));}let _0xb04965=!![],_0x2d08c2=0x1;_0x4ac1e8[_0x11e7eb(0xc62)](_0x11e7eb(0x1200),function(_0xdf4647,_0x25f9c0){const _0x35a47c=_0x11e7eb;_0xb04965?_0x177b76(function(){_0xb04965=![];}):(!_0x25f9c0&&(_0x2d08c2=_0x4f8cba[_0x35a47c(0x289a)][_0x35a47c(0xc72)]),_0xdf4647!==_0x25f9c0&&(_0x4f8cba['query'][_0x35a47c(0xc72)]=0x1),!_0xdf4647&&(_0x4f8cba[_0x35a47c(0x289a)][_0x35a47c(0xc72)]=_0x2d08c2),_0x1975d6());});}const _0x580ff8=_0x73ca84;;_0x5ac7ca[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),'toasty'];function _0x5ac7ca(_0x11915f,_0x4aaa3e){const _0x4ef15c=_0x49a1e3,_0x4b300f=this,_0x47237b=0x8,_0x146786=_0x47237b*0x400*0x400;_0x4b300f[_0x4ef15c(0x26c3)]={},_0x4b300f[_0x4ef15c(0x402)],_0x4b300f['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x146786,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x4b300f['ngFlow']={'flow':{}},_0x4b300f[_0x4ef15c(0x397)]=![],_0x4b300f[_0x4ef15c(0x25ed)]=_0x4c5f5e,_0x4b300f[_0x4ef15c(0x1c5)]=_0x27bd86,_0x4b300f['fileSuccess']=_0x57827f,_0x4b300f['init']=_0x4ba629;function _0x4ba629(_0x799406,_0x55dff1){const _0x230a9e=_0x4ef15c;_0x4b300f[_0x230a9e(0x26c3)]=angular['copy'](_0x799406),_0x4b300f[_0x230a9e(0x402)]=typeof _0x55dff1!==_0x230a9e(0x19a1)?_0x55dff1:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4b300f['ngFlowOptions']['target']=_0x230a9e(0x1d8)[_0x230a9e(0x1353)](':id',_0x4b300f[_0x230a9e(0x26c3)]['id']),_0x4b300f['chatWebsite'][_0x230a9e(0x21e3)]=[];}function _0x4c5f5e(_0x165e43){const _0x2beddf=_0x4ef15c,_0x1fa104=[_0x2beddf(0x105e),_0x2beddf(0xfcc)];if(!_0x28c606()[_0x2beddf(0x68a)](_0x1fa104,_0x165e43['getExtension']()))return _0x4aaa3e[_0x2beddf(0x1bd0)]({'title':_0x2beddf(0x1486)+_0x165e43['getExtension'](),'msg':_0x2beddf(0x1b51)+_0x1fa104[_0x2beddf(0x9a6)]()}),![];if(_0x165e43['size']>_0x146786)return _0x4aaa3e['error']({'title':_0x2beddf(0x535),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x47237b+'MB'}),![];const _0x2d74ae={'id':_0x165e43[_0x2beddf(0x16c4)],'file':_0x165e43,'type':_0x2beddf(0xffd)};return _0x4b300f[_0x2beddf(0x26c3)][_0x2beddf(0x21e3)][_0x2beddf(0x1891)](_0x2d74ae),!![];}function _0x27bd86(){const _0x236cf2=_0x4ef15c;_0x4b300f['ngFlow']['flow']['opts']['headers']={'X-Requested-With':_0x236cf2(0x15fc),'Authorization':_0x236cf2(0x28cb)+_0x11915f[_0x236cf2(0x896)](_0x236cf2(0x283d))},_0x4b300f[_0x236cf2(0x1eec)]['flow'][_0x236cf2(0x1c5)]();}function _0x57827f(_0x141c73){const _0x2fb083=_0x4ef15c;angular[_0x2fb083(0x1397)](_0x4b300f[_0x2fb083(0x26c3)][_0x2fb083(0x21e3)],function(_0x4f06f3){const _0x1d5e3a=_0x2fb083;if(_0x4f06f3['id']===_0x141c73[_0x1d5e3a(0x16c4)]){const _0x274b0a=new FileReader();_0x274b0a[_0x1d5e3a(0x2724)](_0x4f06f3[_0x1d5e3a(0x10b4)][_0x1d5e3a(0x10b4)]),_0x274b0a[_0x1d5e3a(0x11c)]=function(_0x520899){const _0x67717c=_0x1d5e3a;_0x4f06f3['url']=_0x520899[_0x67717c(0x2497)][_0x67717c(0x5e3)];},_0x4f06f3[_0x1d5e3a(0x2185)]=_0x1d5e3a(0x1a0);}});}}const _0x51bb25=_0x5ac7ca;;const _0x20cdb7=_0x2e4a48['p']+_0x49a1e3(0x2397);;_0x44706a[_0x49a1e3(0x1e73)]=['$cookies',_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),'$document','toasty',_0x49a1e3(0xa19),'Auth'];function _0x44706a(_0xeed419,_0x2c02bf,_0x3f8f1a,_0x318471,_0x40efdb,_0x56c8b7,_0x1ed747,_0xaf8611,_0x7ee2f1,_0x4f2ca9,_0x3ead2d){const _0x3799e0=_0x49a1e3,_0x521610=this;_0x521610[_0x3799e0(0x1d3d)]=_0x3ead2d[_0x3799e0(0x808)](),_0x521610[_0x3799e0(0x26c3)]={},_0x521610[_0x3799e0(0x724)]={'count':0x0,'rows':[]},_0x521610[_0x3799e0(0x23e1)]=[],_0x521610[_0x3799e0(0x402)],_0x521610[_0x3799e0(0x289a)]={'fields':_0x3799e0(0xd74),'sort':'-createdAt','limit':0xa,'page':0x1},_0x521610[_0x3799e0(0x2354)]=_0x47ef1f,_0x521610[_0x3799e0(0x217e)]=_0x2ce50a,_0x521610[_0x3799e0(0x1339)]=_0x4b6966,_0x521610[_0x3799e0(0x1e16)]=_0x25161d,_0x521610[_0x3799e0(0x17a3)]=_0x4ceb78,_0x521610['showOfflineMessageChatWebsiteOfflineMessage']=_0x66a21f,_0x521610[_0x3799e0(0x64d)]=_0x4f5573,_0x521610['deleteChatWebsiteOfflineMessage']=_0x7ed37c,_0x521610['deleteSelectedChatWebsiteOfflineMessages']=_0x445dfb;function _0x47ef1f(_0x330046,_0x500a88){const _0x322bb2=_0x3799e0;_0x521610[_0x322bb2(0x26c3)]=_0x330046,_0x521610[_0x322bb2(0x402)]=typeof _0x500a88!==_0x322bb2(0x19a1)?_0x500a88:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x521610['query']['id']=_0x521610[_0x322bb2(0x26c3)]['id'],_0x25161d();}function _0x2ce50a(_0x365e1f,_0x57a2b6){const _0x14f18b=_0x3799e0,_0x5a1991=_0x1ed747['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20offlineMessage?')['htmlContent'](_0x14f18b(0x50b)+(_0x365e1f['name']||_0x365e1f['id']&&_0x28c606()['upperFirst'](_0x14f18b(0x1662))+_0x365e1f['id']||_0x14f18b(0xf68))+_0x14f18b(0x26d0)+_0x14f18b(0x4b8))[_0x14f18b(0x213e)]('delete\x20offlineMessage')[_0x14f18b(0x2283)](_0x57a2b6)['ok']('OK')[_0x14f18b(0x101a)]('CANCEL');_0x1ed747[_0x14f18b(0xa60)](_0x5a1991)[_0x14f18b(0x64a)](function(){_0x7ed37c(_0x365e1f);},function(){const _0x48aa4b=_0x14f18b;console[_0x48aa4b(0x9b4)](_0x48aa4b(0x18fd));});}function _0x4b6966(_0x543b21){const _0x12ebf7=_0x3799e0;_0x521610[_0x12ebf7(0x724)]=_0x543b21||{'count':0x0,'rows':[]};}function _0x25161d(){const _0x245b07=_0x3799e0;_0x521610['query'][_0x245b07(0x24f9)]=(_0x521610[_0x245b07(0x289a)][_0x245b07(0xc72)]-0x1)*_0x521610[_0x245b07(0x289a)][_0x245b07(0x25bb)],_0x521610[_0x245b07(0x1713)]=_0x4f2ca9['chatWebsite'][_0x245b07(0x106d)](_0x521610[_0x245b07(0x289a)],_0x4b6966)[_0x245b07(0x15e7)];}function _0x4ceb78(_0x10e7f4,_0x377f6d){const _0x5ae416=_0x3799e0;_0x1ed747[_0x5ae416(0xa60)]({'controller':_0x5ae416(0x674),'controllerAs':'vm','templateUrl':_0x20cdb7,'parent':angular[_0x5ae416(0x1f81)](_0xaf8611[_0x5ae416(0xb49)]),'targetEvent':_0x10e7f4,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x521610[_0x5ae416(0x26c3)],'offlineMessage':_0x377f6d,'offlineMessages':_0x521610['chatWebsiteOfflineMessages']['rows'],'license':null,'setting':null,'crudPermissions':_0x521610[_0x5ae416(0x402)]}});}function _0x66a21f(_0x22ef50,_0xfa3111){const _0x1369c9=_0x3799e0;_0x1ed747[_0x1369c9(0xa60)]({'controller':_0x1369c9(0x211f),'controllerAs':'vm','templateUrl':_0x20cdb7,'parent':angular[_0x1369c9(0x1f81)](_0xaf8611[_0x1369c9(0xb49)]),'targetEvent':_0x22ef50,'clickOutsideToClose':!![],'resolve':{'message':[_0x1369c9(0x107c),function(_0x2d3e8c){const _0x3ba04b=_0x1369c9;return _0x2d3e8c['resolve'](_0x3ba04b(0x1b0e),{'fields':_0x3ba04b(0x1fbf),'id':_0xfa3111['id']});}]}});}function _0x7ed37c(_0x2e85aa){const _0x486dfe=_0x3799e0;_0x4f2ca9[_0x486dfe(0x2812)]['delete']({'id':_0x2e85aa['id']})['$promise'][_0x486dfe(0x64a)](function(){const _0x51b7eb=_0x486dfe;_0x28c606()[_0x51b7eb(0x21c7)](_0x521610['chatWebsiteOfflineMessages'][_0x51b7eb(0x28b8)],{'id':_0x2e85aa['id']}),_0x521610[_0x51b7eb(0x724)][_0x51b7eb(0xb90)]-=0x1,!_0x521610['chatWebsiteOfflineMessages'][_0x51b7eb(0x28b8)]['length']&&_0x25161d(),_0x7ee2f1[_0x51b7eb(0x1339)]({'title':_0x51b7eb(0x92d),'msg':_0x2e85aa['name']?_0x2e85aa[_0x51b7eb(0x2494)]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x4ac63d){const _0x55ad96=_0x486dfe;if(_0x4ac63d[_0x55ad96(0x1c52)]&&_0x4ac63d[_0x55ad96(0x1c52)][_0x55ad96(0xbae)]&&_0x4ac63d[_0x55ad96(0x1c52)]['errors']['length']){_0x521610[_0x55ad96(0xbae)]=_0x4ac63d[_0x55ad96(0x1c52)][_0x55ad96(0xbae)]||[{'message':_0x4ac63d[_0x55ad96(0x2915)](),'type':_0x55ad96(0xb2f)}];for(let _0x41b710=0x0;_0x41b710<_0x4ac63d[_0x55ad96(0x1c52)][_0x55ad96(0xbae)][_0x55ad96(0x1b9e)];_0x41b710++){_0x7ee2f1[_0x55ad96(0x1bd0)]({'title':_0x4ac63d[_0x55ad96(0x1c52)][_0x55ad96(0xbae)][_0x41b710]['type'],'msg':_0x4ac63d[_0x55ad96(0x1c52)]['errors'][_0x41b710][_0x55ad96(0x18ca)]});}}else _0x7ee2f1['error']({'title':_0x4ac63d[_0x55ad96(0x10b3)]?_0x55ad96(0x575)+_0x4ac63d[_0x55ad96(0x10b3)]+'\x20-\x20'+_0x4ac63d[_0x55ad96(0x2115)]:_0x55ad96(0xb2f),'msg':_0x4ac63d[_0x55ad96(0x1c52)]?JSON[_0x55ad96(0x2317)](_0x4ac63d[_0x55ad96(0x1c52)][_0x55ad96(0x18ca)]):_0x4ac63d[_0x55ad96(0x18ca)]||_0x4ac63d['toString']()});});}function _0x4f5573(){const _0x1b9c24=_0x3799e0,_0x366204=angular[_0x1b9c24(0x289e)](_0x521610['selectedChatWebsiteOfflineMessages']);return _0x521610[_0x1b9c24(0x23e1)]=[],_0x366204;}function _0x445dfb(_0x3d5729){const _0x348eb3=_0x3799e0,_0x19dfef=_0x1ed747[_0x348eb3(0x856)]()['title'](_0x348eb3(0x2184))[_0x348eb3(0x33a)](''+_0x521610[_0x348eb3(0x23e1)]['length']+_0x348eb3(0x163e)+_0x348eb3(0x4b8))[_0x348eb3(0x213e)](_0x348eb3(0x9cc))[_0x348eb3(0x2283)](_0x3d5729)['ok']('OK')[_0x348eb3(0x101a)]('CANCEL');_0x1ed747[_0x348eb3(0xa60)](_0x19dfef)[_0x348eb3(0x64a)](function(){const _0x271e54=_0x348eb3;_0x521610['selectedChatWebsiteOfflineMessages'][_0x271e54(0x1397)](function(_0x16f36f){_0x7ed37c(_0x16f36f);}),_0x521610['selectedChatWebsiteOfflineMessages']=[];});}let _0x3fcd87=!![],_0x544fe0=0x1;_0x2c02bf['$watch'](_0x3799e0(0x1200),function(_0x52c5b6,_0x4c31ac){const _0x389905=_0x3799e0;_0x3fcd87?_0x56c8b7(function(){_0x3fcd87=![];}):(!_0x4c31ac&&(_0x544fe0=_0x521610[_0x389905(0x289a)][_0x389905(0xc72)]),_0x52c5b6!==_0x4c31ac&&(_0x521610[_0x389905(0x289a)][_0x389905(0xc72)]=0x1),!_0x52c5b6&&(_0x521610[_0x389905(0x289a)][_0x389905(0xc72)]=_0x544fe0),_0x25161d());});}const _0x5eb558=_0x44706a;;_0x4e5659[_0x49a1e3(0x1e73)]=['$mdDialog',_0x49a1e3(0x18ca)];function _0x4e5659(_0x5c8264,_0xff396a){const _0x210005=_0x49a1e3,_0x4225cc=this;_0x4225cc[_0x210005(0x2021)]=_0x210005(0x550),_0x4225cc['message']=_0xff396a,_0x4225cc[_0x210005(0x16cb)]=_0x20a277;function _0x20a277(_0x12ab07){const _0x597a0d=_0x210005;_0x5c8264[_0x597a0d(0x268e)](_0x12ab07);}}const _0x5aa88a=_0x4e5659;;const _0x37687c=_0x2e4a48['p']+_0x49a1e3(0x152d);;_0x384037[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$q','$translate','$timeout','$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x384037(_0x5e1b72,_0x5d16e7,_0x3ed19b,_0x512b8a,_0x2b5090,_0x431c96,_0x53b0bf,_0x1d91d5,_0x20da7d,_0x39a498,_0xe830aa){const _0x5d2970=_0x49a1e3,_0x2e1b87=this;_0x2e1b87[_0x5d2970(0x1d3d)]=_0xe830aa[_0x5d2970(0x808)](),_0x2e1b87[_0x5d2970(0x26c3)]={},_0x2e1b87[_0x5d2970(0xded)]={'count':0x0,'rows':[]},_0x2e1b87[_0x5d2970(0x1433)]=[],_0x2e1b87[_0x5d2970(0x402)],_0x2e1b87['query']={'fields':_0x5d2970(0x15fb),'limit':0xa,'page':0x1},_0x2e1b87[_0x5d2970(0x9d4)]=_0x28c606()[_0x5d2970(0x161e)]([{'option':'MouseOver','value':_0x5d2970(0x762)},{'option':_0x5d2970(0x66e),'value':_0x5d2970(0x1694)}],function(_0x2301d2){const _0x3e09ee=_0x5d2970;return _0x28c606()[_0x3e09ee(0x1353)](_0x2301d2[_0x3e09ee(0x1096)],new RegExp('\x27','g'),'');}),_0x2e1b87['init']=_0xa9c9ca,_0x2e1b87[_0x5d2970(0x217e)]=_0x1eef83,_0x2e1b87[_0x5d2970(0x1339)]=_0x10a7be,_0x2e1b87[_0x5d2970(0x2922)]=_0x1f96e1,_0x2e1b87[_0x5d2970(0x11f2)]=_0x7be930,_0x2e1b87['exportSelectedChatWebsiteProactiveActions']=_0x16ab3e,_0x2e1b87[_0x5d2970(0xc08)]=_0x263995,_0x2e1b87[_0x5d2970(0x23a1)]=_0xb24282;function _0xa9c9ca(_0x2d6ad5,_0x1be68e){const _0x58db99=_0x5d2970;_0x2e1b87[_0x58db99(0x26c3)]=_0x2d6ad5,_0x2e1b87['crudPermissions']=typeof _0x1be68e!==_0x58db99(0x19a1)?_0x1be68e:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2e1b87['query'][_0x58db99(0xd93)]=_0x2e1b87[_0x58db99(0x26c3)]['id'],_0x2e1b87[_0x58db99(0x289a)]['id']=_0x2e1b87['chatWebsite']['id'],_0x1f96e1();}function _0x1eef83(_0x1f2f44,_0x45db21){const _0xd6a0f6=_0x5d2970,_0x498226=_0x53b0bf['confirm']()['title'](_0xd6a0f6(0x7fc))[_0xd6a0f6(0x33a)](_0xd6a0f6(0x50b)+(_0x1f2f44[_0xd6a0f6(0x2494)]||_0x1f2f44['id']&&_0x28c606()[_0xd6a0f6(0x1766)](_0xd6a0f6(0xb7c))+_0x1f2f44['id']||_0xd6a0f6(0x1f7d))+''+'\x20will\x20be\x20deleted.')['ariaLabel'](_0xd6a0f6(0x913))[_0xd6a0f6(0x2283)](_0x45db21)['ok']('OK')['cancel'](_0xd6a0f6(0x18fd));_0x53b0bf[_0xd6a0f6(0xa60)](_0x498226)[_0xd6a0f6(0x64a)](function(){_0x263995(_0x1f2f44);},function(){const _0x9f2a6d=_0xd6a0f6;console[_0x9f2a6d(0x9b4)](_0x9f2a6d(0x18fd));});}function _0x10a7be(_0x979ed9){const _0x2ac7ed=_0x5d2970;_0x2e1b87[_0x2ac7ed(0xded)]=_0x979ed9||{'count':0x0,'rows':[]};}function _0x1f96e1(){const _0x146d10=_0x5d2970;_0x2e1b87[_0x146d10(0x289a)][_0x146d10(0x24f9)]=(_0x2e1b87['query'][_0x146d10(0xc72)]-0x1)*_0x2e1b87[_0x146d10(0x289a)]['limit'],_0x2e1b87[_0x146d10(0x1713)]=_0x39a498[_0x146d10(0x26c3)]['getProactiveActions'](_0x2e1b87[_0x146d10(0x289a)],_0x10a7be)[_0x146d10(0x15e7)];}function _0x7be930(_0x184747,_0x1cd37a){const _0x290dbb=_0x5d2970;_0x53b0bf[_0x290dbb(0xa60)]({'controller':_0x290dbb(0x4e8),'controllerAs':'vm','templateUrl':_0x37687c,'parent':angular[_0x290dbb(0x1f81)](_0x1d91d5[_0x290dbb(0xb49)]),'targetEvent':_0x184747,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x2e1b87[_0x290dbb(0x26c3)],'chatProactiveAction':_0x1cd37a,'proactive':_0x2e1b87[_0x290dbb(0xded)][_0x290dbb(0x28b8)],'license':null,'setting':null,'crudPermissions':_0x2e1b87[_0x290dbb(0x402)]}});}function _0x263995(_0x1ebb43){const _0x518398=_0x5d2970;_0x39a498['chatProactiveAction'][_0x518398(0xabd)]({'id':_0x1ebb43['id']})[_0x518398(0x15e7)][_0x518398(0x64a)](function(){const _0x524400=_0x518398;_0x28c606()[_0x524400(0x21c7)](_0x2e1b87[_0x524400(0xded)][_0x524400(0x28b8)],{'id':_0x1ebb43['id']}),_0x2e1b87[_0x524400(0xded)][_0x524400(0xb90)]-=0x1,!_0x2e1b87['chatWebsiteProactiveActions']['rows']['length']&&_0x1f96e1(),_0x20da7d[_0x524400(0x1339)]({'title':_0x524400(0x963),'msg':_0x1ebb43[_0x524400(0x2494)]?_0x1ebb43[_0x524400(0x2494)]+_0x524400(0x1fa8):''});})[_0x518398(0x20cd)](function(_0x5e87d9){const _0x4e20ed=_0x518398;if(_0x5e87d9[_0x4e20ed(0x1c52)]&&_0x5e87d9['data'][_0x4e20ed(0xbae)]&&_0x5e87d9[_0x4e20ed(0x1c52)]['errors']['length']){_0x2e1b87[_0x4e20ed(0xbae)]=_0x5e87d9['data'][_0x4e20ed(0xbae)]||[{'message':_0x5e87d9[_0x4e20ed(0x2915)](),'type':_0x4e20ed(0xb2f)}];for(let _0x592a4e=0x0;_0x592a4e<_0x5e87d9['data'][_0x4e20ed(0xbae)][_0x4e20ed(0x1b9e)];_0x592a4e++){_0x20da7d['error']({'title':_0x5e87d9['data'][_0x4e20ed(0xbae)][_0x592a4e][_0x4e20ed(0x2185)],'msg':_0x5e87d9[_0x4e20ed(0x1c52)][_0x4e20ed(0xbae)][_0x592a4e][_0x4e20ed(0x18ca)]});}}else _0x20da7d[_0x4e20ed(0x1bd0)]({'title':_0x5e87d9[_0x4e20ed(0x10b3)]?_0x4e20ed(0x575)+_0x5e87d9['status']+_0x4e20ed(0x21db)+_0x5e87d9[_0x4e20ed(0x2115)]:_0x4e20ed(0xb2f),'msg':_0x5e87d9['data']?JSON[_0x4e20ed(0x2317)](_0x5e87d9[_0x4e20ed(0x1c52)][_0x4e20ed(0x18ca)]):_0x5e87d9['message']||_0x5e87d9['toString']()});});}function _0x16ab3e(){const _0x97a225=_0x5d2970,_0x56ef64=angular[_0x97a225(0x289e)](_0x2e1b87[_0x97a225(0x1433)]);return _0x2e1b87['selectedChatWebsiteProactiveActions']=[],_0x56ef64;}function _0xb24282(_0x13a07e){const _0x2ea956=_0x5d2970,_0x4873be=_0x53b0bf[_0x2ea956(0x856)]()[_0x2ea956(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20proactive?')[_0x2ea956(0x33a)](_0x2ea956(0x50b)+_0x2e1b87[_0x2ea956(0x1433)][_0x2ea956(0x1b9e)]+'\x20selected'+_0x2ea956(0x4b8))[_0x2ea956(0x213e)](_0x2ea956(0x754))[_0x2ea956(0x2283)](_0x13a07e)['ok']('OK')['cancel'](_0x2ea956(0x18fd));_0x53b0bf['show'](_0x4873be)[_0x2ea956(0x64a)](function(){const _0x146f4b=_0x2ea956;_0x2e1b87['selectedChatWebsiteProactiveActions'][_0x146f4b(0x1397)](function(_0x33dbb3){_0x263995(_0x33dbb3);}),_0x2e1b87[_0x146f4b(0x1433)]=[];});}let _0x18620d=!![],_0x19266a=0x1;_0x5d16e7['$watch']('vm_dc.query.filter',function(_0x24b123,_0x3c85c1){const _0x36739c=_0x5d2970;_0x18620d?_0x431c96(function(){_0x18620d=![];}):(!_0x3c85c1&&(_0x19266a=_0x2e1b87['query'][_0x36739c(0xc72)]),_0x24b123!==_0x3c85c1&&(_0x2e1b87[_0x36739c(0x289a)][_0x36739c(0xc72)]=0x1),!_0x24b123&&(_0x2e1b87[_0x36739c(0x289a)]['page']=_0x19266a),_0x1f96e1());});}const _0x375f81=_0x384037;;_0x270cb8['$inject']=[_0x49a1e3(0x1674),'$state','$location',_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x7d6),_0x49a1e3(0x1f7d),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x270cb8(_0x57a10e,_0x5c23c5,_0x4636cd,_0x57d634,_0x3d8f4c,_0xac11d7,_0x5c02e5,_0x2facd5,_0x29beb3,_0x5adb09,_0x7c3e72,_0xc528ab,_0x2b3ec9,_0x501101){const _0x446fb4=_0x49a1e3,_0x326d54=this;_0x326d54[_0x446fb4(0x1d3d)]=_0x7c3e72[_0x446fb4(0x808)](),_0x326d54[_0x446fb4(0xbae)]=[],_0x326d54[_0x446fb4(0x28d6)]=_0x2b3ec9,_0x326d54['license']=_0xc528ab,_0x326d54[_0x446fb4(0x402)]=_0x501101,_0x326d54['hasModulePermissions']={},_0x326d54[_0x446fb4(0xccc)]=_0x326d54[_0x446fb4(0x28d6)]&&_0x326d54[_0x446fb4(0x28d6)][_0x446fb4(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x326d54[_0x446fb4(0x2021)]='CHAT.EDIT_CHATPROACTIVEACTION',_0x326d54[_0x446fb4(0x1f7d)]=angular[_0x446fb4(0x289e)](_0x29beb3),_0x326d54[_0x446fb4(0x7d6)]=_0x2facd5,_0x326d54[_0x446fb4(0x2104)]=![];!_0x326d54[_0x446fb4(0x1f7d)]&&(_0x326d54[_0x446fb4(0x1f7d)]={'type':'mouseOver'},_0x326d54[_0x446fb4(0x2021)]='CHAT.NEW_CHATPROACTIVEACTION',_0x326d54['newChatProactiveAction']=!![]);_0x5c23c5[_0x446fb4(0x1b48)]['id']&&(_0x326d54[_0x446fb4(0x1f7d)][_0x446fb4(0xd93)]=_0x5c23c5[_0x446fb4(0x1b48)]['id']);_0x326d54[_0x446fb4(0x1569)]=_0x5d8608,_0x326d54[_0x446fb4(0x268f)]=_0x426695,_0x326d54[_0x446fb4(0xfdb)]=_0x2d929b,_0x326d54[_0x446fb4(0x1605)]=_0x525a11,_0x326d54[_0x446fb4(0x16cb)]=_0x786d89;function _0x5d8608(){const _0x24b2a1=_0x446fb4;_0x326d54['errors']=[],_0x5adb09[_0x24b2a1(0x1f7d)][_0x24b2a1(0x2479)](_0x326d54[_0x24b2a1(0x1f7d)])[_0x24b2a1(0x15e7)][_0x24b2a1(0x64a)](function(_0x15d01f){const _0x55765c=_0x24b2a1;_0x326d54[_0x55765c(0x7d6)][_0x55765c(0x1891)](_0x15d01f['toJSON']()),_0x5c02e5[_0x55765c(0x1339)]({'title':_0x55765c(0x23c7),'msg':_0x326d54[_0x55765c(0x1f7d)]['name']?_0x326d54[_0x55765c(0x1f7d)][_0x55765c(0x2494)]+_0x55765c(0x258d):''}),_0x786d89(_0x15d01f);})['catch'](function(_0x2efd2c){const _0x26e412=_0x24b2a1;if(_0x2efd2c['data']&&_0x2efd2c[_0x26e412(0x1c52)][_0x26e412(0xbae)]&&_0x2efd2c[_0x26e412(0x1c52)][_0x26e412(0xbae)][_0x26e412(0x1b9e)]){_0x326d54[_0x26e412(0xbae)]=_0x2efd2c[_0x26e412(0x1c52)][_0x26e412(0xbae)]||[{'message':_0x2efd2c[_0x26e412(0x2915)](),'type':_0x26e412(0x2193)}];for(let _0x53ff3f=0x0;_0x53ff3f<_0x2efd2c['data'][_0x26e412(0xbae)]['length'];_0x53ff3f+=0x1){_0x5c02e5[_0x26e412(0x1bd0)]({'title':_0x2efd2c[_0x26e412(0x1c52)][_0x26e412(0xbae)][_0x53ff3f][_0x26e412(0x2185)],'msg':_0x2efd2c['data'][_0x26e412(0xbae)][_0x53ff3f][_0x26e412(0x18ca)]});}}else _0x5c02e5[_0x26e412(0x1bd0)]({'title':_0x2efd2c[_0x26e412(0x10b3)]?_0x26e412(0x575)+_0x2efd2c[_0x26e412(0x10b3)]+_0x26e412(0x21db)+_0x2efd2c[_0x26e412(0x2115)]:_0x26e412(0x2193),'msg':_0x2efd2c[_0x26e412(0x1c52)]?JSON[_0x26e412(0x2317)](_0x2efd2c[_0x26e412(0x1c52)][_0x26e412(0x18ca)]):_0x2efd2c['toString']()});});}function _0x426695(){const _0x31aed5=_0x446fb4;_0x326d54[_0x31aed5(0xbae)]=[],_0x5adb09[_0x31aed5(0x1f7d)][_0x31aed5(0x2603)]({'id':_0x326d54[_0x31aed5(0x1f7d)]['id']},_0x326d54[_0x31aed5(0x1f7d)])[_0x31aed5(0x15e7)][_0x31aed5(0x64a)](function(_0x444016){const _0x470915=_0x31aed5,_0x4e3275=_0x28c606()[_0x470915(0x27bc)](_0x326d54[_0x470915(0x7d6)],{'id':_0x444016['id']});_0x4e3275&&_0x28c606()['merge'](_0x4e3275,_0x28c606()[_0x470915(0x27bb)](_0x444016[_0x470915(0x14f8)](),_0x28c606()[_0x470915(0x1ec6)](_0x4e3275))),_0x5c02e5['success']({'title':'ChatProactiveAction\x20properly\x20saved!','msg':_0x326d54[_0x470915(0x1f7d)][_0x470915(0x2494)]?_0x326d54[_0x470915(0x1f7d)]['name']+_0x470915(0x271):''}),_0x786d89(_0x444016);})[_0x31aed5(0x20cd)](function(_0x5aa1fd){const _0xc14002=_0x31aed5;if(_0x5aa1fd[_0xc14002(0x1c52)]&&_0x5aa1fd[_0xc14002(0x1c52)][_0xc14002(0xbae)]&&_0x5aa1fd[_0xc14002(0x1c52)][_0xc14002(0xbae)][_0xc14002(0x1b9e)]){_0x326d54[_0xc14002(0xbae)]=_0x5aa1fd['data'][_0xc14002(0xbae)]||[{'message':_0x5aa1fd[_0xc14002(0x2915)](),'type':_0xc14002(0x1762)}];for(let _0x7aa1e4=0x0;_0x7aa1e4<_0x5aa1fd[_0xc14002(0x1c52)][_0xc14002(0xbae)]['length'];_0x7aa1e4++){_0x5c02e5[_0xc14002(0x1bd0)]({'title':_0x5aa1fd[_0xc14002(0x1c52)][_0xc14002(0xbae)][_0x7aa1e4][_0xc14002(0x2185)],'msg':_0x5aa1fd['data'][_0xc14002(0xbae)][_0x7aa1e4][_0xc14002(0x18ca)]});}}else _0x5c02e5[_0xc14002(0x1bd0)]({'title':_0x5aa1fd['status']?_0xc14002(0x575)+_0x5aa1fd[_0xc14002(0x10b3)]+_0xc14002(0x21db)+_0x5aa1fd[_0xc14002(0x2115)]:'api.chatProactiveAction.update','msg':_0x5aa1fd[_0xc14002(0x1c52)]?JSON['stringify'](_0x5aa1fd['data']['message']):_0x5aa1fd[_0xc14002(0x2915)]()});});}function _0x2d929b(_0x349f99){const _0x17560c=_0x446fb4;_0x326d54[_0x17560c(0xbae)]=[];const _0x484a47=_0x57d634[_0x17560c(0x856)]()[_0x17560c(0x2021)](_0x17560c(0x103a))[_0x17560c(0x12b8)](_0x17560c(0x164b))[_0x17560c(0x213e)]('Delete\x20ChatProactiveAction')['ok'](_0x17560c(0x2664))[_0x17560c(0x101a)]('Cancel')['targetEvent'](_0x349f99);_0x57d634['show'](_0x484a47)['then'](function(){const _0x264340=_0x17560c;_0x5adb09[_0x264340(0x1f7d)][_0x264340(0xabd)]({'id':_0x326d54[_0x264340(0x1f7d)]['id']})['$promise'][_0x264340(0x64a)](function(){const _0x3a7d78=_0x264340;_0x28c606()[_0x3a7d78(0x21c7)](_0x326d54[_0x3a7d78(0x7d6)],{'id':_0x326d54[_0x3a7d78(0x1f7d)]['id']}),_0x5c02e5[_0x3a7d78(0x1339)]({'title':_0x3a7d78(0x1a9a),'msg':(_0x326d54[_0x3a7d78(0x1f7d)][_0x3a7d78(0x2494)]||_0x3a7d78(0x1f7d))+_0x3a7d78(0x1fa8)}),_0x786d89(_0x326d54['chatProactiveAction']);})[_0x264340(0x20cd)](function(_0x3e6127){const _0x559bf8=_0x264340;if(_0x3e6127[_0x559bf8(0x1c52)]&&_0x3e6127['data']['errors']&&_0x3e6127[_0x559bf8(0x1c52)]['errors'][_0x559bf8(0x1b9e)]){_0x326d54['errors']=_0x3e6127[_0x559bf8(0x1c52)][_0x559bf8(0xbae)]||[{'message':_0x3e6127[_0x559bf8(0x2915)](),'type':_0x559bf8(0x2261)}];for(let _0x582fcc=0x0;_0x582fcc<_0x3e6127[_0x559bf8(0x1c52)][_0x559bf8(0xbae)][_0x559bf8(0x1b9e)];_0x582fcc++){_0x5c02e5[_0x559bf8(0x1bd0)]({'title':_0x3e6127['data'][_0x559bf8(0xbae)][_0x582fcc][_0x559bf8(0x2185)],'msg':_0x3e6127[_0x559bf8(0x1c52)][_0x559bf8(0xbae)][_0x582fcc][_0x559bf8(0x18ca)]});}}else _0x5c02e5[_0x559bf8(0x1bd0)]({'title':_0x3e6127[_0x559bf8(0x10b3)]?_0x559bf8(0x575)+_0x3e6127[_0x559bf8(0x10b3)]+_0x559bf8(0x21db)+_0x3e6127['statusText']:'api.chatProactiveAction.delete','msg':_0x3e6127['data']?JSON[_0x559bf8(0x2317)](_0x3e6127[_0x559bf8(0x1c52)][_0x559bf8(0x18ca)]):_0x3e6127['message']||_0x3e6127[_0x559bf8(0x2915)]()});});},function(){});}function _0x525a11(_0x4ffd93){return _0x4ffd93===null?undefined:new Date(_0x4ffd93);}function _0x786d89(_0x11fa0b){const _0x233e49=_0x446fb4;_0x57d634[_0x233e49(0x268e)](_0x11fa0b);}}const _0x37f60c=_0x270cb8;;_0x41b018[_0x49a1e3(0x1e73)]=['$scope'];function _0x41b018(_0x277aa7){const _0x154081=_0x49a1e3,_0x4c4bd1=this;_0x4c4bd1['chatWebsite']={},_0x4c4bd1[_0x154081(0x2354)]=_0x27306f,_0x4c4bd1[_0x154081(0x772)]={};function _0x27306f(_0x3f94f6){const _0x314b58=_0x154081;_0x4c4bd1[_0x314b58(0x26c3)]=_0x3f94f6,_0x4c4bd1['start']=_0x314b58(0xd0c),_0x4c4bd1[_0x314b58(0x2929)]=_0x314b58(0x545)+_0x4c4bd1[_0x314b58(0x26c3)][_0x314b58(0xc77)]+_0x314b58(0xd02)+_0x4c4bd1[_0x314b58(0x26c3)]['id']+_0x314b58(0x14dd)+_0x4c4bd1[_0x314b58(0x26c3)][_0x314b58(0x1e13)]+_0x314b58(0xc66),_0x4c4bd1['end']=_0x314b58(0xd0c);}_0x277aa7[_0x154081(0xc62)](_0x154081(0x1eea),function(){const _0x20b83d=_0x154081;_0x4c4bd1[_0x20b83d(0x2929)]='\x0a\x20\x20\x20\x20_0x2a071b)return _0x55c86f[_0x43d7ac(0x1bd0)]({'title':'File\x20too\x20big','msg':_0x43d7ac(0xbfa)+_0x276ae3+'MB'}),![];const _0x1d2868={'id':_0x3e5130[_0x43d7ac(0x16c4)],'file':_0x3e5130,'type':_0x43d7ac(0xffd)};return _0x566f4a[_0x43d7ac(0x26c3)][_0x43d7ac(0x21e3)][_0x43d7ac(0x1891)](_0x1d2868),!![];}function _0x56f5e3(){const _0x45143f=_0xdd3f9f;_0x566f4a[_0x45143f(0x1eec)][_0x45143f(0x891)][_0x45143f(0x2017)][_0x45143f(0x1de3)]={'X-Requested-With':_0x45143f(0x15fc),'Authorization':_0x45143f(0x28cb)+_0xf543c2[_0x45143f(0x896)](_0x45143f(0x283d))},_0x566f4a[_0x45143f(0x1eec)][_0x45143f(0x891)]['upload']();}function _0x2db717(_0x5856a0){const _0x5811da=_0xdd3f9f;angular['forEach'](_0x566f4a[_0x5811da(0x26c3)][_0x5811da(0x21e3)],function(_0xc1013){const _0x272369=_0x5811da;if(_0xc1013['id']===_0x5856a0[_0x272369(0x16c4)]){const _0x2704a3=new FileReader();_0x2704a3[_0x272369(0x2724)](_0xc1013[_0x272369(0x10b4)][_0x272369(0x10b4)]),_0x2704a3[_0x272369(0x11c)]=function(_0x3dce83){const _0x1e176a=_0x272369;_0xc1013[_0x1e176a(0x2761)]=_0x3dce83[_0x1e176a(0x2497)][_0x1e176a(0x5e3)];},_0xc1013[_0x272369(0x2185)]='image';}});}}const _0x5713c5=_0x39db83;;_0x266e85['$inject']=[_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),_0x49a1e3(0x1373),'$translate',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x26c3),'userProfileSection'];function _0x266e85(_0x2b3d7e,_0x1db625,_0x354540,_0x580359,_0x1046ea,_0xfba2a9,_0x4a11ca,_0x2f0484,_0x5d18fe,_0x4d84a6,_0x49c44a,_0x441fc9){const _0x52b678=_0x49a1e3,_0x2a7775=this;_0x2a7775[_0x52b678(0x1d3d)]=_0x4d84a6[_0x52b678(0x808)](),_0x2a7775[_0x52b678(0x1947)]=_0xfba2a9,_0x2a7775[_0x52b678(0x28d6)]=_0x4a11ca,_0x2a7775[_0x52b678(0xccc)]=_0x2a7775[_0x52b678(0x28d6)][_0x52b678(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2a7775['location']=_0x1db625[_0x52b678(0x48e)]()+'://'+_0x1db625[_0x52b678(0x1e5d)](),_0x2a7775[_0x52b678(0x26c3)]=_0x49c44a||_0x2b3d7e['params'][_0x52b678(0x26c3)]||{},_0x2a7775[_0x52b678(0x16b2)]=_0x441fc9&&_0x441fc9[_0x52b678(0xb90)]==0x1?_0x441fc9[_0x52b678(0x28b8)][0x0]:null,_0x2a7775[_0x52b678(0x402)]=_0x4d84a6[_0x52b678(0xa7e)](_0x2a7775['userProfileSection']?_0x2a7775[_0x52b678(0x16b2)][_0x52b678(0x402)]:null),_0x2a7775[_0x52b678(0x6c2)]={},_0x2a7775['selectedTab']=_0x2b3d7e[_0x52b678(0x1b48)]['tab']||0x0,_0x2a7775[_0x52b678(0x104a)]=_0x103388,_0x2a7775[_0x52b678(0x2540)]=_0x5d18fe['info'],_0x2a7775[_0x52b678(0x297c)]=_0x2663dd,_0x2a7775[_0x52b678(0x17e1)]=_0x379e49,_0x4d84a6[_0x52b678(0x4de)]('admin')?_0x2f0484[_0x52b678(0x19f8)]['get']({'fields':'id,name','sort':_0x52b678(0x2494)})[_0x52b678(0x15e7)][_0x52b678(0x64a)](function(_0x1621da){_0x2a7775['lists']=_0x1621da['rows']||[];})['catch'](function(_0x31e5ea){const _0x440332=_0x52b678;_0x5d18fe[_0x440332(0x1bd0)]({'title':_0x31e5ea[_0x440332(0x10b3)]?_0x440332(0x575)+_0x31e5ea['status']+_0x440332(0x21db)+_0x31e5ea[_0x440332(0x2115)]:_0x440332(0x1ed6),'msg':_0x31e5ea['data']?JSON[_0x440332(0x2317)](_0x31e5ea[_0x440332(0x1c52)]):_0x31e5ea[_0x440332(0x2915)]()});}):_0x2f0484[_0x52b678(0x19f8)]['get']({'fields':'id,name','sort':_0x52b678(0x2494)})['$promise'][_0x52b678(0x64a)](function(_0x42ade4){const _0x117665=_0x52b678;_0x2a7775[_0x117665(0x974)]=_0x42ade4['rows']||[];})[_0x52b678(0x64a)](function(){const _0x338596=_0x52b678;return _0x2f0484[_0x338596(0x16b2)][_0x338596(0x896)]({'userProfileId':_0x2a7775[_0x338596(0x1d3d)][_0x338596(0x21ac)],'sectionId':0x12d})[_0x338596(0x15e7)];})[_0x52b678(0x64a)](function(_0x3288a9){const _0x56d1cd=_0x52b678,_0x2a84b1=_0x3288a9&&_0x3288a9['rows']?_0x3288a9[_0x56d1cd(0x28b8)][0x0]:null;if(!_0x2a84b1){const _0x9c556a=[];let _0x2fdc2b=null;_0x2a7775[_0x56d1cd(0x26c3)]&&(_0x2fdc2b=_0x28c606()[_0x56d1cd(0x27bc)](_0x2a7775[_0x56d1cd(0x974)],{'id':Number(_0x2a7775[_0x56d1cd(0x26c3)][_0x56d1cd(0x869)])}));for(let _0x13aa40=0x0;_0x13aa40<_0x2a7775[_0x56d1cd(0x974)][_0x56d1cd(0x1b9e)];_0x13aa40++){_0x2fdc2b&&_0x2a7775[_0x56d1cd(0x974)][_0x13aa40]['id']===_0x2fdc2b['id']&&(_0x2a7775[_0x56d1cd(0x974)][_0x13aa40][_0x56d1cd(0xd4f)]=![],_0x9c556a[_0x56d1cd(0x1954)](_0x2a7775[_0x56d1cd(0x974)][_0x13aa40]));}_0x2a7775['lists']=_0x9c556a;}else{if(!_0x2a84b1[_0x56d1cd(0x11da)])return _0x2f0484[_0x56d1cd(0x1617)]['get']({'sectionId':_0x2a84b1['id']})[_0x56d1cd(0x15e7)][_0x56d1cd(0x64a)](function(_0x5138c4){const _0x524c5d=_0x56d1cd,_0x3748ea=_0x28c606()[_0x524c5d(0x1de5)](_0x5138c4['rows'],function(_0x287f89){const _0x137832=_0x524c5d;return _0x28c606()[_0x137832(0x27bc)](_0x2a7775[_0x137832(0x974)],{'id':_0x287f89[_0x137832(0x145)]});});let _0xa95cad=null;_0x2a7775[_0x524c5d(0x26c3)]&&(_0xa95cad=_0x28c606()['find'](_0x2a7775[_0x524c5d(0x974)],{'id':Number(_0x2a7775[_0x524c5d(0x26c3)][_0x524c5d(0x869)])}));if(_0xa95cad&&!_0x28c606()[_0x524c5d(0x25f8)](_0x3748ea,['id',_0xa95cad['id']])){const _0x48c1ce=_0x28c606()[_0x524c5d(0x27bc)](_0x2a7775['lists'],{'id':_0xa95cad['id']});_0x48c1ce[_0x524c5d(0xd4f)]=![],_0x3748ea[_0x524c5d(0x1954)](_0x48c1ce);}_0x2a7775['lists']=_0x3748ea;});}})[_0x52b678(0x20cd)](function(_0x57eaa3){const _0x3ccc17=_0x52b678;_0x5d18fe['error']({'title':_0x57eaa3[_0x3ccc17(0x10b3)]?_0x3ccc17(0x575)+_0x57eaa3['status']+_0x3ccc17(0x21db)+_0x57eaa3[_0x3ccc17(0x2115)]:_0x3ccc17(0x1beb),'msg':_0x57eaa3['data']?JSON[_0x3ccc17(0x2317)](_0x57eaa3[_0x3ccc17(0x1c52)]):_0x57eaa3['toString']()});}),_0x4d84a6[_0x52b678(0x4de)](_0x52b678(0x333))?_0x2f0484[_0x52b678(0xcfd)][_0x52b678(0x896)]({'fields':_0x52b678(0x1427),'sort':'name','IntervalId':_0x52b678(0x8f1)})[_0x52b678(0x15e7)][_0x52b678(0x64a)](function(_0xf0491){const _0x305959=_0x52b678;_0x2a7775[_0x305959(0xcfd)]=_0xf0491['rows']||[];})['catch'](function(_0x6f4225){const _0x1f19c4=_0x52b678;_0x5d18fe[_0x1f19c4(0x1bd0)]({'title':_0x6f4225['status']?'API:'+_0x6f4225[_0x1f19c4(0x10b3)]+'\x20-\x20'+_0x6f4225[_0x1f19c4(0x2115)]:_0x1f19c4(0x2780),'msg':_0x6f4225[_0x1f19c4(0x1c52)]?JSON['stringify'](_0x6f4225[_0x1f19c4(0x1c52)]):_0x6f4225[_0x1f19c4(0x2915)]()});}):_0x2f0484[_0x52b678(0xcfd)][_0x52b678(0x896)]({'fields':_0x52b678(0x1427),'sort':_0x52b678(0x2494),'IntervalId':_0x52b678(0x8f1)})['$promise'][_0x52b678(0x64a)](function(_0x1fcf22){_0x2a7775['interval']=_0x1fcf22['rows']||[];})[_0x52b678(0x64a)](function(){const _0xf98f3d=_0x52b678;return _0x2f0484[_0xf98f3d(0x16b2)]['get']({'userProfileId':_0x2a7775[_0xf98f3d(0x1d3d)]['userProfileId'],'sectionId':0x3ec})[_0xf98f3d(0x15e7)];})['then'](function(_0x3ab1df){const _0x5ed1e7=_0x52b678,_0x29d73d=_0x3ab1df&&_0x3ab1df['rows']?_0x3ab1df['rows'][0x0]:null;if(!_0x29d73d){const _0xcb192a=[];let _0x2212a2=null;_0x2a7775['chatWebsite']&&(_0x2212a2=_0x28c606()[_0x5ed1e7(0x27bc)](_0x2a7775['interval'],{'id':Number(_0x2a7775[_0x5ed1e7(0x26c3)][_0x5ed1e7(0xb71)])}));for(let _0x1d9189=0x0;_0x1d9189<_0x2a7775[_0x5ed1e7(0xcfd)][_0x5ed1e7(0x1b9e)];_0x1d9189++){_0x2212a2&&_0x2a7775[_0x5ed1e7(0xcfd)][_0x1d9189]['id']===_0x2212a2['id']&&(_0x2a7775[_0x5ed1e7(0xcfd)][_0x1d9189][_0x5ed1e7(0xd4f)]=![],_0xcb192a['push'](_0x2a7775['interval'][_0x1d9189]));}_0x2a7775[_0x5ed1e7(0xcfd)]=_0xcb192a;}else{if(!_0x29d73d[_0x5ed1e7(0x11da)])return _0x2f0484[_0x5ed1e7(0x1617)]['get']({'sectionId':_0x29d73d['id']})[_0x5ed1e7(0x15e7)][_0x5ed1e7(0x64a)](function(_0x446e29){const _0x2fb4d3=_0x5ed1e7,_0x373941=_0x28c606()[_0x2fb4d3(0x1de5)](_0x446e29[_0x2fb4d3(0x28b8)],function(_0x5a278c){const _0x21ce37=_0x2fb4d3;return _0x28c606()[_0x21ce37(0x27bc)](_0x2a7775[_0x21ce37(0xcfd)],{'id':_0x5a278c[_0x21ce37(0x145)]});});let _0x562a6c=null;_0x2a7775[_0x2fb4d3(0x26c3)]&&(_0x562a6c=_0x28c606()[_0x2fb4d3(0x27bc)](_0x2a7775[_0x2fb4d3(0xcfd)],{'id':Number(_0x2a7775[_0x2fb4d3(0x26c3)][_0x2fb4d3(0xb71)])}));if(_0x562a6c&&!_0x28c606()[_0x2fb4d3(0x25f8)](_0x373941,['id',_0x562a6c['id']])){const _0x4366eb=_0x28c606()[_0x2fb4d3(0x27bc)](_0x2a7775[_0x2fb4d3(0xcfd)],{'id':_0x562a6c['id']});_0x4366eb[_0x2fb4d3(0xd4f)]=![],_0x373941[_0x2fb4d3(0x1954)](_0x4366eb);}_0x2a7775[_0x2fb4d3(0xcfd)]=_0x373941;});}})['catch'](function(_0x2dc227){const _0x6a69ab=_0x52b678;_0x5d18fe[_0x6a69ab(0x1bd0)]({'title':_0x2dc227[_0x6a69ab(0x10b3)]?_0x6a69ab(0x575)+_0x2dc227[_0x6a69ab(0x10b3)]+'\x20-\x20'+_0x2dc227[_0x6a69ab(0x2115)]:'SYSTEM:GETinterval','msg':_0x2dc227[_0x6a69ab(0x1c52)]?JSON[_0x6a69ab(0x2317)](_0x2dc227[_0x6a69ab(0x1c52)]):_0x2dc227[_0x6a69ab(0x2915)]()});}),_0x4d84a6['hasRole'](_0x52b678(0x333))?_0x2f0484[_0x52b678(0x2826)]['get']({'fields':'name,id','sort':'name','nolimit':'true'})[_0x52b678(0x15e7)][_0x52b678(0x64a)](function(_0x35c626){const _0x59ae2e=_0x52b678;_0x2a7775[_0x59ae2e(0x23d1)]=_0x35c626['rows']||[];})[_0x52b678(0x20cd)](function(_0xe2f7c4){const _0x202b4c=_0x52b678;_0x5d18fe['error']({'title':_0xe2f7c4[_0x202b4c(0x10b3)]?_0x202b4c(0x575)+_0xe2f7c4['status']+_0x202b4c(0x21db)+_0xe2f7c4[_0x202b4c(0x2115)]:_0x202b4c(0x1a14),'msg':_0xe2f7c4['data']?JSON[_0x202b4c(0x2317)](_0xe2f7c4[_0x202b4c(0x1c52)]):_0xe2f7c4[_0x202b4c(0x2915)]()});}):_0x2f0484[_0x52b678(0x2826)][_0x52b678(0x896)]({'fields':'name,id','sort':_0x52b678(0x2494),'nolimit':'true'})[_0x52b678(0x15e7)][_0x52b678(0x64a)](function(_0x1db03a){const _0x257da8=_0x52b678;_0x2a7775['pauses']=_0x1db03a[_0x257da8(0x28b8)]||[];})[_0x52b678(0x64a)](function(){const _0x36befe=_0x52b678;return _0x2f0484['userProfileSection']['get']({'userProfileId':_0x2a7775[_0x36befe(0x1d3d)][_0x36befe(0x21ac)],'sectionId':0x3ed})[_0x36befe(0x15e7)];})[_0x52b678(0x64a)](function(_0x524d1e){const _0x10034b=_0x52b678,_0x15cc84=_0x524d1e&&_0x524d1e[_0x10034b(0x28b8)]?_0x524d1e[_0x10034b(0x28b8)][0x0]:null;if(!_0x15cc84)_0x2a7775[_0x10034b(0x23d1)]=[];else{if(!_0x15cc84[_0x10034b(0x11da)])return _0x2f0484[_0x10034b(0x1617)][_0x10034b(0x896)]({'sectionId':_0x15cc84['id']})[_0x10034b(0x15e7)][_0x10034b(0x64a)](function(_0x202647){const _0x2de876=_0x10034b,_0x414d43=_0x28c606()[_0x2de876(0x1de5)](_0x202647['rows'],function(_0xa6b429){const _0x36d5fc=_0x2de876;return _0x28c606()[_0x36d5fc(0x27bc)](_0x2a7775[_0x36d5fc(0x23d1)],{'id':_0xa6b429['resourceId']});});_0x2a7775[_0x2de876(0x23d1)][_0x2de876(0x1397)](function(_0x257774){const _0x47ecf2=_0x2de876;!_0x28c606()[_0x47ecf2(0x25f8)](_0x414d43,['id',_0x257774['id']])&&(_0x257774[_0x47ecf2(0xd4f)]=![]),_0x414d43[_0x47ecf2(0x1954)](_0x257774);}),_0x2a7775[_0x2de876(0x23d1)]=_0x414d43;});}})['catch'](function(_0x48dbae){const _0x4f64f5=_0x52b678;_0x5d18fe[_0x4f64f5(0x1bd0)]({'title':_0x48dbae[_0x4f64f5(0x10b3)]?_0x4f64f5(0x575)+_0x48dbae[_0x4f64f5(0x10b3)]+_0x4f64f5(0x21db)+_0x48dbae['statusText']:_0x4f64f5(0xd4a),'msg':_0x48dbae[_0x4f64f5(0x1c52)]?JSON[_0x4f64f5(0x2317)](_0x48dbae[_0x4f64f5(0x1c52)]):_0x48dbae['toString']()});});function _0x103388(_0x35c792,_0xf42970){const _0x52bb04=_0x52b678;_0x354540[_0x52bb04(0xa60)]({'controller':_0x52bb04(0x28fc),'controllerAs':'vm','templateUrl':_0x53d35c,'parent':angular[_0x52bb04(0x1f81)](_0x580359['body']),'targetEvent':_0xf42970,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x35c792,'chatWebsites':_0x2a7775[_0x52bb04(0x111)]?_0x2a7775['chatWebsites'][_0x52bb04(0x28b8)]:[],'crudPermissions':_0x2a7775[_0x52bb04(0x402)],'realtime':![]}});}function _0x2663dd(){const _0x8828dd=_0x52b678;_0x2b3d7e['go'](_0x8828dd(0x2924),{},{'reload':_0x8828dd(0x2924)});}function _0x379e49(){const _0x4efcfe=_0x52b678;_0x2f0484['chatWebsite']['update']({'id':_0x2a7775[_0x4efcfe(0x26c3)]['id']},_0x2a7775[_0x4efcfe(0x26c3)])[_0x4efcfe(0x15e7)][_0x4efcfe(0x64a)](function(){const _0x2e28d5=_0x4efcfe;_0x5d18fe[_0x2e28d5(0x1339)]({'title':'ChatWebsite\x20updated!','msg':_0x2a7775[_0x2e28d5(0x26c3)][_0x2e28d5(0x2494)]?_0x2a7775['chatWebsite'][_0x2e28d5(0x2494)]+_0x2e28d5(0x2032):''});})[_0x4efcfe(0x20cd)](function(_0x5bd5f8){const _0x2945e9=_0x4efcfe;_0x5d18fe[_0x2945e9(0x1bd0)]({'title':_0x5bd5f8[_0x2945e9(0x10b3)]?_0x2945e9(0x575)+_0x5bd5f8['status']+_0x2945e9(0x21db)+_0x5bd5f8[_0x2945e9(0x2115)]:'SYSTEM:GETchatWebsite','msg':_0x5bd5f8[_0x2945e9(0x1c52)]?JSON[_0x2945e9(0x2317)](_0x5bd5f8[_0x2945e9(0x1c52)]):_0x5bd5f8[_0x2945e9(0x2915)]()});});}}const _0x9fc6aa=_0x266e85;;_0x71b836['$inject']=['$stateProvider',_0x49a1e3(0x21f8)];function _0x71b836(_0x131211,_0x4ddb4f){const _0x3f35a0=_0x49a1e3;_0x131211['state']('app.chat',{'abstract':!![],'url':_0x3f35a0(0x28e9)})['state'](_0x3f35a0(0x393),{'url':_0x3f35a0(0x2912),'views':{'content@app':{'templateUrl':_0x287188,'controller':_0x3f35a0(0x14b4)}},'resolve':{'chatQueues':[_0x3f35a0(0x107c),'Auth',function(_0x37bccb,_0x38c17e){const _0xcc00f8=_0x3f35a0;return _0x38c17e['hasRole'](_0xcc00f8(0x333))?_0x37bccb[_0xcc00f8(0x1268)]('chatQueue@get',{'fields':_0xcc00f8(0x1649),'sort':_0xcc00f8(0x260c),'channel':'chat','limit':0xa,'offset':0x0}):_0x37bccb[_0xcc00f8(0x1268)](_0xcc00f8(0x1758),{'id':_0x38c17e['getCurrentUser']()[_0xcc00f8(0x21ac)],'section':_0xcc00f8(0xaa7),'fields':_0xcc00f8(0x1649),'sort':_0xcc00f8(0x260c),'channel':'chat','limit':0xa,'offset':0x0});}],'userProfile':[_0x3f35a0(0x107c),_0x3f35a0(0xdcf),function(_0x1788af,_0x5d566c){const _0x452cec=_0x3f35a0;return _0x5d566c[_0x452cec(0x4de)](_0x452cec(0x333))?null:_0x1788af[_0x452cec(0x1268)]('userProfile@get',{'fields':_0x452cec(0x10d2),'id':_0x5d566c['getCurrentUser']()[_0x452cec(0x21ac)]});}],'userProfileSection':[_0x3f35a0(0x107c),_0x3f35a0(0xdcf),function(_0x570189,_0x4a13b2){const _0x51f923=_0x3f35a0;return _0x4a13b2['hasRole'](_0x51f923(0x333))?null:_0x570189[_0x51f923(0x1268)](_0x51f923(0x2681),{'fields':_0x51f923(0x527),'userProfileId':_0x4a13b2[_0x51f923(0x808)]()[_0x51f923(0x21ac)],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0x3f35a0(0xf52)})[_0x3f35a0(0x14f2)](_0x3f35a0(0xcc9),{'url':'/:id?tab','params':{'chatQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3e5cd1,'controller':_0x3f35a0(0x18f4)}},'resolve':{'chatQueue':[_0x3f35a0(0x107c),_0x3f35a0(0x1fbb),function(_0x36523d,_0x47765b){const _0x5b7ed4=_0x3f35a0;return _0x36523d[_0x5b7ed4(0x1268)]('chatQueue@get',{'fields':_0x5b7ed4(0x1649),'id':_0x47765b['id']});}],'userProfileSection':['apiResolver',_0x3f35a0(0xdcf),function(_0x3ab05d,_0x1d562a){const _0x33de8d=_0x3f35a0;return _0x3ab05d[_0x33de8d(0x1268)](_0x33de8d(0x2681),{'fields':_0x33de8d(0x527),'userProfileId':_0x1d562a[_0x33de8d(0x808)]()['userProfileId'],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0x3f35a0(0xf52)})[_0x3f35a0(0x14f2)](_0x3f35a0(0x2924),{'url':'/chatWebsites','views':{'content@app':{'templateUrl':_0x542cf8,'controller':_0x3f35a0(0x22bf)}},'resolve':{'chatWebsites':[_0x3f35a0(0x107c),'Auth',function(_0x5b03fd,_0x6e1086){const _0x58843e=_0x3f35a0;return _0x6e1086[_0x58843e(0x4de)](_0x58843e(0x333))?_0x5b03fd['resolve'](_0x58843e(0x225c),{'fields':_0x58843e(0x3fd),'sort':_0x58843e(0x260c),'limit':0xa,'offset':0x0}):_0x5b03fd[_0x58843e(0x1268)]('userProfile@getResources',{'id':_0x6e1086['getCurrentUser']()[_0x58843e(0x21ac)],'section':_0x58843e(0x241a),'fields':_0x58843e(0x3fd),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x3f35a0(0x107c),_0x3f35a0(0xdcf),function(_0x383844,_0x40197c){const _0x275280=_0x3f35a0;return _0x40197c[_0x275280(0x4de)](_0x275280(0x333))?null:_0x383844[_0x275280(0x1268)](_0x275280(0x6e3),{'fields':_0x275280(0x10d2),'id':_0x40197c[_0x275280(0x808)]()['userProfileId']});}],'userProfileSection':[_0x3f35a0(0x107c),_0x3f35a0(0xdcf),function(_0xb54856,_0x3f7886){const _0x1409f3=_0x3f35a0;return _0x3f7886[_0x1409f3(0x4de)](_0x1409f3(0x333))?null:_0xb54856['resolve'](_0x1409f3(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3f7886[_0x1409f3(0x808)]()[_0x1409f3(0x21ac)],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0x3f35a0(0xf52)})[_0x3f35a0(0x14f2)](_0x3f35a0(0x1763),{'url':_0x3f35a0(0x45b),'params':{'chatWebsite':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3c570b,'controller':_0x3f35a0(0x1fcc)}},'resolve':{'chatWebsite':[_0x3f35a0(0x107c),'$stateParams',function(_0x4cf1cb,_0x20096f){const _0x232a67=_0x3f35a0;return _0x4cf1cb[_0x232a67(0x1268)](_0x232a67(0x225c),{'fields':_0x232a67(0x3fd),'id':_0x20096f['id']});}],'userProfileSection':[_0x3f35a0(0x107c),_0x3f35a0(0xdcf),function(_0x1236f8,_0x7a9b58){const _0x542280=_0x3f35a0;return _0x1236f8['resolve'](_0x542280(0x2681),{'fields':_0x542280(0x527),'userProfileId':_0x7a9b58['getCurrentUser']()['userProfileId'],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0x3f35a0(0xf52)}),_0x4ddb4f[_0x3f35a0(0x1bde)]('app/main/apps/chat');}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x44a),[_0x49a1e3(0x8d2),_0x49a1e3(0x3c7),_0x49a1e3(0x1fe3),_0x49a1e3(0x891),'mdColorPicker',_0x49a1e3(0x1b6c),_0x49a1e3(0x1434),_0x49a1e3(0x1a87),'ngAnimate',_0x49a1e3(0xb19),'mwFormBuilder',_0x49a1e3(0x11fd),_0x49a1e3(0x1cfe),_0x49a1e3(0x1bd1),_0x49a1e3(0x1b5f),_0x49a1e3(0x1cff),_0x49a1e3(0x1046),_0x49a1e3(0x1acd),_0x49a1e3(0xc48),'angular.filter',_0x49a1e3(0xf01)])[_0x49a1e3(0x3d3)](_0x71b836)[_0x49a1e3(0x38e)](_0x49a1e3(0x207a),_0x3fcecf)[_0x49a1e3(0x38e)]('CreateOrEditChatQueueDialogController',_0x18c06a)[_0x49a1e3(0x38e)](_0x49a1e3(0xc30),_0x4ecd5b)['controller']('ChatQueueteamaddController',_0x4bfe97)[_0x49a1e3(0x38e)](_0x49a1e3(0x15b1),_0x34f3dd)[_0x49a1e3(0x38e)](_0x49a1e3(0xcfb),_0x22d4d9)[_0x49a1e3(0x38e)](_0x49a1e3(0x1b4),_0x2a45f7)['controller'](_0x49a1e3(0x182c),_0x27859d)['controller'](_0x49a1e3(0x28fc),_0x542d52)[_0x49a1e3(0x38e)]('ChatWebsiteagentAvatarController',_0x5b964b)['controller'](_0x49a1e3(0x20a8),_0x5be5e1)[_0x49a1e3(0x38e)]('EditChatWebsiteAppamazonlexDialogController',_0x2915ec)[_0x49a1e3(0x38e)](_0x49a1e3(0x1cbe),_0x2915ec)[_0x49a1e3(0x38e)](_0x49a1e3(0x4c9),_0x3921dd)[_0x49a1e3(0x38e)]('EditChatWebsiteAppcloseDialogController',_0x285333)['controller'](_0x49a1e3(0x1301),_0x4643bc)['controller'](_0x49a1e3(0x389),_0x2294f8)[_0x49a1e3(0x38e)](_0x49a1e3(0x125e),_0x2680f9)[_0x49a1e3(0x38e)](_0x49a1e3(0x1320),_0x8c932d)[_0x49a1e3(0x38e)]('EditChatWebsiteAppnoopDialogController',_0xcc6c93)[_0x49a1e3(0x38e)](_0x49a1e3(0x13df),_0x504451)[_0x49a1e3(0x38e)](_0x49a1e3(0x1a2c),_0x37bec2)[_0x49a1e3(0x38e)](_0x49a1e3(0x19cb),_0x1166d5)[_0x49a1e3(0x38e)]('ChatWebsiteChatCannedAnswersController',_0x3ddbdc)[_0x49a1e3(0x38e)]('CreateOrEditChatCannedAnswerDialogController',_0x39aaa1)[_0x49a1e3(0x38e)](_0x49a1e3(0x264b),_0x18da0d)[_0x49a1e3(0x38e)]('ChatWebsiteofflineFormController',_0x3982bc)[_0x49a1e3(0x38e)](_0x49a1e3(0x1458),_0x78c1c9)[_0x49a1e3(0x38e)](_0x49a1e3(0xb60),_0xf1378b)[_0x49a1e3(0x38e)](_0x49a1e3(0xa41),_0x580ff8)['controller'](_0x49a1e3(0x2227),_0x51bb25)[_0x49a1e3(0x38e)](_0x49a1e3(0x168d),_0x5eb558)['controller'](_0x49a1e3(0x211f),_0x5aa88a)[_0x49a1e3(0x38e)]('ChatWebsiteProactiveActionsController',_0x375f81)[_0x49a1e3(0x38e)](_0x49a1e3(0x4e8),_0x37f60c)[_0x49a1e3(0x38e)](_0x49a1e3(0x21d),_0x2ac99a)[_0x49a1e3(0x38e)](_0x49a1e3(0x1525),_0x5713c5)['controller'](_0x49a1e3(0x17a4),_0x9fc6aa);;const _0x511157=_0x2e4a48['p']+_0x49a1e3(0x3e1);;const _0x235201=_0x2e4a48['p']+_0x49a1e3(0x553);;const _0x53c408=_0x2e4a48['p']+_0x49a1e3(0x213);;const _0x4e540d=_0x2e4a48['p']+_0x49a1e3(0x6af);;_0x5613f8['$inject']=[_0x49a1e3(0x1674),'$q',_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),'$filter','pauses','agents',_0x49a1e3(0x287f),'api',_0x49a1e3(0x633),_0x49a1e3(0x680),_0x49a1e3(0x1f8c),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x1239)];function _0x5613f8(_0x2cf53d,_0x4ac4a8,_0x26b51a,_0x4b4f03,_0x502da5,_0x863789,_0x14f356,_0x1c2ee0,_0xce2470,_0x46adb0,_0x281a28,_0x3bf9b9,_0x316945,_0xe0885e,_0x485fb5,_0x13c38e,_0x4441c2,_0x39a10a){const _0x393cf9=_0x49a1e3,_0x3f3331=this,_0xd9d012=[_0x393cf9(0x1c79),'online','lastLoginAt',_0x393cf9(0x2148),_0x393cf9(0x84f),_0x393cf9(0x2148),'internal',_0x393cf9(0x81e),_0x393cf9(0x2248),'openchannelPause',_0x393cf9(0x292),_0x393cf9(0xf2d),_0x393cf9(0x1f34),_0x393cf9(0x211),_0x393cf9(0x11a4),_0x393cf9(0x80a),'openchannelCapacity',_0x393cf9(0x8cb),_0x393cf9(0x708),_0x393cf9(0x12c5),_0x393cf9(0x1839),_0x393cf9(0x1b1d),_0x393cf9(0x1099),_0x393cf9(0x9ec),_0x393cf9(0x41d),_0x393cf9(0x19a8),_0x393cf9(0x6eb),_0x393cf9(0x363),_0x393cf9(0x11d7),_0x393cf9(0x13f4),_0x393cf9(0x2431),_0x393cf9(0x22a4),'faxStatus',_0x393cf9(0x2783),_0x393cf9(0x2642),_0x393cf9(0x1857),_0x393cf9(0x1f78),_0x393cf9(0x24a3),_0x393cf9(0x17fb),_0x393cf9(0x16c8),'voiceStatusTime',_0x393cf9(0x1e4e),_0x393cf9(0xeae),_0x393cf9(0x2921),_0x393cf9(0x52c),_0x393cf9(0x20d3)],_0x3056cf=[_0x393cf9(0x2248),'openchannelPause','mailPause',_0x393cf9(0xf2d),'whatsappPause',_0x393cf9(0x211),_0x393cf9(0x11a4),_0x393cf9(0x1eab)];_0x3f3331[_0x393cf9(0x1d3d)]=_0x13c38e['getCurrentUser'](),_0x3f3331[_0x393cf9(0x1b8)]=[_0x393cf9(0xf8e),_0x393cf9(0x7be),_0x393cf9(0x94d),_0x393cf9(0x8cc),'not_inuse'],_0x3f3331[_0x393cf9(0x23d1)]=_0x14f356||{'count':0x0,'rows':[]},_0x3f3331['license']=_0x4441c2,_0x3f3331[_0x393cf9(0x16a8)]=_0xe0885e,_0x3f3331[_0x393cf9(0x16b2)]=_0x485fb5&&_0x485fb5[_0x393cf9(0xb90)]==0x1?_0x485fb5[_0x393cf9(0x28b8)][0x0]:null,_0x3f3331[_0x393cf9(0x402)]=_0x13c38e['parseCrudPermissions'](_0x3f3331['userProfileSection']?_0x3f3331[_0x393cf9(0x16b2)]['crudPermissions']:null),_0x3f3331[_0x393cf9(0xd77)]=_0x1c2ee0?_0x28c606()['keyBy'](_0x1c2ee0[_0x393cf9(0x28b8)]?_0x1c2ee0[_0x393cf9(0x28b8)]:[],'id'):{},_0x3f3331['rpcAgents']=_0xce2470?_0x28c606()[_0x393cf9(0x161e)](_0xce2470['rows']?_0xce2470[_0x393cf9(0x28b8)]:[],'id'):{},_0x3f3331['paginatedAgents']={},_0x3f3331[_0x393cf9(0x2789)]=![],_0x3f3331[_0x393cf9(0x1997)]=[],_0x3f3331[_0x393cf9(0xf0f)]={};for(const _0x2160e2 in _0x3f3331['agents']){typeof _0x3f3331[_0x393cf9(0xd77)][_0x2160e2]!==_0x393cf9(0x19a1)&&(_0x3f3331[_0x393cf9(0xd77)][_0x2160e2][_0x393cf9(0x2354)]=!![]);}_0x3f3331[_0x393cf9(0x289a)]={'limit':0xa,'page':0x1,'order':_0x393cf9(0x15c),'globalStatusFilter':'','pauseTypeFilter':''},_0x3f3331[_0x393cf9(0xad9)]=_0x4951e2,_0x3f3331[_0x393cf9(0x279d)]=_0x3c0f0a,_0x3f3331[_0x393cf9(0x2826)]=_0x3c462d,_0x3f3331['unPause']=_0x4217e4,_0x3f3331['showInfo']=_0x44d2f7,_0x3f3331['getAgentStatus']=_0x253a10,_0x3f3331[_0x393cf9(0xba5)]=_0x1864a9,_0x3f3331[_0x393cf9(0x54e)]=_0xeb99d1,_0x3f3331[_0x393cf9(0x15d)]=_0xb86cd9,_0x3f3331[_0x393cf9(0x2744)]=_0x30f8aa,_0x3f3331[_0x393cf9(0x249c)]=_0x40272d,_0x3f3331[_0x393cf9(0x2853)]=_0x7afac8,_0x3f3331[_0x393cf9(0x2483)]=_0x26a41b,_0x3f3331[_0x393cf9(0x1a7c)]=_0xbea51f,_0x3f3331['onComplete']=_0x16385c,_0x3f3331['screenRecording']=_0x27020c,_0x281a28['on'](_0x393cf9(0x17e9),_0x3f3331[_0x393cf9(0x249c)]),_0x281a28['on']('user:update',_0x3f3331['onUpdate']),_0x281a28['on'](_0x393cf9(0x197a),_0x3f3331[_0x393cf9(0x1a7c)]),_0x281a28['on'](_0x393cf9(0x1b7e),_0x3f3331['onComplete']),_0x26a41b();let _0x1fb127=_0x39a10a(function(){const _0x27af02=_0x393cf9;_0x3f3331[_0x27af02(0x2789)]&&(_0x3f3331['load']=![],_0x26a41b());},0x3e7);function _0x26a41b(){const _0x230db4=_0x393cf9;_0x3f3331['load']=![];const _0x5d75a6=_0x4ac4a8[_0x230db4(0x122)]();_0x3f3331[_0x230db4(0x1713)]=_0x5d75a6[_0x230db4(0x1713)],_0x3f3331[_0x230db4(0x2202)]=[],_0x3f3331[_0x230db4(0x1997)]=[],_0x28c606()[_0x230db4(0x1789)](_0x3f3331[_0x230db4(0xd77)],function(_0x17ee81,_0x7fa79e){const _0x4ecb09=_0x230db4;_0x3f3331['rpcAgents'][_0x7fa79e]&&_0x28c606()['merge'](_0x17ee81,_0x28c606()[_0x4ecb09(0x27bb)](_0x28c606()['omit'](_0x3f3331[_0x4ecb09(0x287f)][_0x7fa79e],_0x3056cf),_0xd9d012)),_0x1864a9(_0x17ee81),_0x17ee81[_0x4ecb09(0x1eab)]?(_0x3f3331['filteredAgents'][_0x4ecb09(0x1954)](_0x17ee81),_0x3f3331[_0x4ecb09(0xf0f)][_0x17ee81[_0x4ecb09(0xe2f)]]=_0x7fa79e):_0x17ee81[_0x4ecb09(0x14f5)]=_0x28c606()['toNumber'](_0x2ac33a()()[_0x4ecb09(0x1c2c)]('x'));});_0x3f3331[_0x230db4(0x289a)][_0x230db4(0x1de8)]&&_0x28c606()[_0x230db4(0x21c7)](_0x3f3331[_0x230db4(0x2202)],function(_0x3e6242){const _0x2299c5=_0x230db4;return _0x3e6242[_0x2299c5(0x876)]!==_0x3f3331[_0x2299c5(0x289a)][_0x2299c5(0x1de8)];});_0x3f3331[_0x230db4(0x289a)][_0x230db4(0x1421)]&&_0x28c606()[_0x230db4(0x21c7)](_0x3f3331[_0x230db4(0x2202)],function(_0x348152){const _0x3f8547=_0x230db4;return _0x348152[_0x3f8547(0x84f)]!==_0x3f3331[_0x3f8547(0x289a)]['pauseTypeFilter'];});_0x3f3331['query'][_0x230db4(0xcec)]&&_0x28c606()[_0x230db4(0x21c7)](_0x3f3331[_0x230db4(0x2202)],function(_0x5c6368){const _0x1c40c2=_0x230db4;return _0x5c6368[_0x1c40c2(0x15c)][_0x1c40c2(0x2554)]()[_0x1c40c2(0x1b28)](_0x3f3331[_0x1c40c2(0x289a)][_0x1c40c2(0xcec)][_0x1c40c2(0x2554)]())<0x0;});_0x3f3331['filteredAgents']=_0x1d1045(_0x3f3331['filteredAgents']);const _0x55639d=(_0x3f3331[_0x230db4(0x289a)][_0x230db4(0xc72)]-0x1)*_0x3f3331[_0x230db4(0x289a)][_0x230db4(0x25bb)];_0x3f3331[_0x230db4(0x2d8)]=_0x28c606()[_0x230db4(0xfeb)](_0x3f3331['filteredAgents'],_0x55639d)[_0x230db4(0x142e)](0x0,_0x3f3331[_0x230db4(0x289a)][_0x230db4(0x25bb)]);for(let _0x5a8c32=0x0;_0x5a8c32<_0x3f3331['paginatedAgents'][_0x230db4(0x1b9e)];_0x5a8c32+=0x1){_0x3f3331['order']['push'](_0x3f3331[_0x230db4(0x2d8)][_0x5a8c32]['id']);}_0x5d75a6[_0x230db4(0x1268)](),_0x3f3331[_0x230db4(0x2789)]=!![];}function _0x40272d(_0x37136b){const _0xbdc266=_0x393cf9;_0x3f3331[_0xbdc266(0xd77)][_0x37136b['id']]&&(_0x28c606()[_0xbdc266(0x14fe)](_0x3f3331[_0xbdc266(0xd77)][_0x37136b['id']],_0x28c606()[_0xbdc266(0x27bb)](_0x28c606()[_0xbdc266(0xd09)](_0x37136b,_0x3056cf),_0xd9d012)),_0x28c606()[_0xbdc266(0x14fe)](_0x3f3331[_0xbdc266(0x287f)][_0x37136b['id']],_0x28c606()[_0xbdc266(0x27bb)](_0x28c606()[_0xbdc266(0xd09)](_0x37136b,_0x3056cf),_0xd9d012)),_0x1864a9(_0x3f3331[_0xbdc266(0xd77)][_0x37136b['id']]));}function _0x7afac8(_0x466081){const _0x204b88=_0x393cf9;_0x3f3331[_0x204b88(0xd77)][_0x466081['id']]&&(_0x28c606()[_0x204b88(0x14fe)](_0x3f3331[_0x204b88(0xd77)][_0x466081['id']],_0x28c606()[_0x204b88(0x27bb)](_0x466081,_0xd9d012)),_0x28c606()[_0x204b88(0x14fe)](_0x3f3331[_0x204b88(0x287f)][_0x466081['id']],_0x28c606()[_0x204b88(0x27bb)](_0x466081,_0xd9d012)),_0x466081[_0x204b88(0x2148)]&&(_0x3f3331['agents'][_0x466081['id']][_0x204b88(0x14f5)]=_0x466081[_0x204b88(0x2148)],_0x3f3331[_0x204b88(0x287f)][_0x466081['id']][_0x204b88(0x14f5)]=_0x466081[_0x204b88(0x2148)]),_0x1864a9(_0x3f3331[_0x204b88(0xd77)][_0x466081['id']]));}function _0xbea51f(_0x2d421b){const _0x41c418=_0x393cf9;_0x3f3331[_0x41c418(0xd77)][_0x3f3331[_0x41c418(0xf0f)][_0x2d421b[_0x41c418(0xf65)]]]&&(_0x28c606()[_0x41c418(0x14fe)](_0x3f3331[_0x41c418(0xd77)][_0x3f3331[_0x41c418(0xf0f)][_0x2d421b[_0x41c418(0xf65)]]],_0x28c606()[_0x41c418(0x27bb)](_0x2d421b,[_0x41c418(0x1e4e),_0x41c418(0xeae)])),_0x28c606()[_0x41c418(0x14fe)](_0x3f3331['rpcAgents'][_0x3f3331[_0x41c418(0xf0f)][_0x2d421b[_0x41c418(0xf65)]]],_0x28c606()['pick'](_0x2d421b,[_0x41c418(0x1e4e),_0x41c418(0xeae)])));}function _0x16385c(_0x9f50dd){const _0x5df971=_0x393cf9;_0x3f3331[_0x5df971(0xd77)][_0x3f3331['agentInternal'][_0x9f50dd[_0x5df971(0xf65)]]]&&(_0x3f3331[_0x5df971(0xd77)][_0x3f3331[_0x5df971(0xf0f)][_0x9f50dd['destaccountcode']]]=_0x28c606()[_0x5df971(0xd09)](_0x3f3331[_0x5df971(0xd77)][_0x3f3331[_0x5df971(0xf0f)][_0x9f50dd[_0x5df971(0xf65)]]],[_0x5df971(0x1e4e),_0x5df971(0xeae)]),_0x3f3331[_0x5df971(0x287f)][_0x3f3331[_0x5df971(0xf0f)][_0x9f50dd['destaccountcode']]]=_0x28c606()['omit'](_0x3f3331[_0x5df971(0x287f)][_0x3f3331[_0x5df971(0xf0f)][_0x9f50dd['destaccountcode']]],[_0x5df971(0x1e4e),_0x5df971(0xeae)]));}function _0x4951e2(_0x4a35f7){const _0xa4b65a=_0x393cf9;return _0x46adb0['user'][_0xa4b65a(0xad9)]({'id':_0x4a35f7['id'],'device':_0xa4b65a(0x252e),'agent_id':_0x4a35f7['id'],'agent_name':_0x4a35f7[_0xa4b65a(0x2494)]})[_0xa4b65a(0x15e7)][_0xa4b65a(0x64a)](function(){const _0x5ec10e=_0xa4b65a;_0x3bf9b9[_0x5ec10e(0x1339)]({'title':_0x5ec10e(0x2927),'msg':_0x4a35f7[_0x5ec10e(0x15c)]+_0x5ec10e(0x236)}),_0x3f3331['agents'][_0x4a35f7['id']]&&(_0x3f3331[_0x5ec10e(0xd77)][_0x4a35f7['id']][_0x5ec10e(0x1eab)]=![]),_0x3f3331[_0x5ec10e(0x287f)][_0x4a35f7['id']]&&(_0x3f3331[_0x5ec10e(0x287f)][_0x4a35f7['id']]['online']=![]),_0x26a41b();})[_0xa4b65a(0x20cd)](function(_0x1892ce){const _0x43b02c=_0xa4b65a;_0x3bf9b9['error']({'title':_0x1892ce[_0x43b02c(0x10b3)]?'API:'+_0x1892ce[_0x43b02c(0x10b3)]+_0x43b02c(0x21db)+_0x1892ce[_0x43b02c(0x2115)]:_0x43b02c(0x180),'msg':_0x1892ce[_0x43b02c(0x1c52)]?JSON[_0x43b02c(0x2317)](_0x1892ce[_0x43b02c(0x1c52)][_0x43b02c(0x18ca)]):_0x1892ce['toString']()});});}function _0x3c462d(_0x3d0414,_0x29cb68){const _0x421f70=_0x393cf9;return _0x46adb0['user'][_0x421f70(0x2826)]({'id':_0x3d0414['id'],'type':_0x29cb68})[_0x421f70(0x15e7)][_0x421f70(0x64a)](function(_0x3f32b1){const _0x955e1b=_0x421f70;_0x3f3331[_0x955e1b(0xd77)][_0x3d0414['id']]&&_0x28c606()[_0x955e1b(0x14fe)](_0x3f3331['agents'][_0x3d0414['id']],_0x28c606()['pick'](_0x3f32b1,_0xd9d012)),_0x3f3331['rpcAgents'][_0x3d0414['id']]&&_0x28c606()[_0x955e1b(0x14fe)](_0x3f3331[_0x955e1b(0x287f)][_0x3d0414['id']],_0x28c606()[_0x955e1b(0x27bb)](_0x3f32b1,_0xd9d012)),_0x1864a9(_0x3f3331[_0x955e1b(0xd77)][_0x3d0414['id']]);})[_0x421f70(0x20cd)](function(_0x45e6bf){const _0xf62813=_0x421f70;_0x3bf9b9[_0xf62813(0x1bd0)]({'title':_0x45e6bf[_0xf62813(0x10b3)]?_0xf62813(0x575)+_0x45e6bf[_0xf62813(0x10b3)]+_0xf62813(0x21db)+_0x45e6bf['statusText']:_0xf62813(0x180),'msg':_0x45e6bf[_0xf62813(0x1c52)]?JSON[_0xf62813(0x2317)](_0x45e6bf['data'][_0xf62813(0x18ca)]):_0x45e6bf[_0xf62813(0x2915)]()});});}function _0x4217e4(_0x2f02a9){const _0x56d27e=_0x393cf9;return _0x46adb0[_0x56d27e(0x2e8)]['unpause']({'id':_0x2f02a9['id']})[_0x56d27e(0x15e7)]['then'](function(_0x171b14){const _0x52c20e=_0x56d27e;_0x3f3331[_0x52c20e(0xd77)][_0x2f02a9['id']]&&_0x28c606()[_0x52c20e(0x14fe)](_0x3f3331['agents'][_0x2f02a9['id']],_0x28c606()[_0x52c20e(0x27bb)](_0x171b14,_0xd9d012)),_0x3f3331[_0x52c20e(0x287f)][_0x2f02a9['id']]&&_0x28c606()[_0x52c20e(0x14fe)](_0x3f3331[_0x52c20e(0x287f)][_0x2f02a9['id']],_0x28c606()[_0x52c20e(0x27bb)](_0x171b14,_0xd9d012)),_0x1864a9(_0x3f3331[_0x52c20e(0xd77)][_0x2f02a9['id']]);})[_0x56d27e(0x20cd)](function(_0x4aebb1){const _0x34269f=_0x56d27e;_0x3bf9b9['error']({'title':_0x4aebb1[_0x34269f(0x10b3)]?'API:'+_0x4aebb1['status']+_0x34269f(0x21db)+_0x4aebb1[_0x34269f(0x2115)]:_0x34269f(0x180),'msg':_0x4aebb1['data']?JSON['stringify'](_0x4aebb1[_0x34269f(0x1c52)][_0x34269f(0x18ca)]):_0x4aebb1[_0x34269f(0x2915)]()});});}function _0x44d2f7(_0x211131){const _0x24fb7a=_0x393cf9;_0x4b4f03[_0x24fb7a(0xa60)](_0x4b4f03[_0x24fb7a(0x2540)]()['clickOutsideToClose'](!![])[_0x24fb7a(0x2021)](_0x24fb7a(0xe68))[_0x24fb7a(0x33a)]('
TODO\x20legend\x20status\x20+\x20state
')['ok']('Ok')[_0x24fb7a(0x2283)](_0x211131));}function _0x3c0f0a(_0x6730be,_0x3a62a2){const _0x502400=_0x393cf9;_0x4b4f03[_0x502400(0xa60)]({'controller':_0x502400(0x5a7),'controllerAs':'vm','templateUrl':_0x5eb675,'parent':angular[_0x502400(0x1f81)](_0x502da5[_0x502400(0xb49)]),'targetEvent':_0x3a62a2,'clickOutsideToClose':!![],'locals':{'agent':_0x6730be,'agents':[],'channel':_0x502400(0xc71),'direction':'inbound','crudPermissions':_0x3f3331[_0x502400(0x402)]}});}function _0xeb99d1(_0x244df5){const _0x5bed60=_0x393cf9;return _0x244df5===_0x5bed60(0x2826)||_0x244df5===_0x5bed60(0x1bcc);}function _0xb86cd9(_0x30c601){return _0x30c601==='pause';}function _0x30f8aa(_0x398beb){const _0x18f53b=_0x393cf9;return _0x398beb===_0x18f53b(0x1bcc);}function _0x360cbc(_0x2bf9f9){const _0x103301=_0x393cf9;return _0x2bf9f9===_0x103301(0xac6)||_0x2bf9f9==='unknown'||_0x2bf9f9===_0x103301(0x407)||_0x2bf9f9===_0x103301(0xf8e)||_0x28c606()[_0x103301(0x28d7)](_0x2bf9f9);}function _0x253a10(_0x2f0520,_0x1e1948){const _0x886047=_0x393cf9;if(_0x1e1948===_0x886047(0x227c)){if(_0x2f0520[_0x1e1948+'Status']!==_0x886047(0xac6))return _0x2f0520[_0x1e1948+_0x886047(0x2311)];if(_0x2f0520[_0x1e1948+_0x886047(0x9d3)])return _0x2f0520[_0x1e1948+'Status']=_0x886047(0x2826),_0x886047(0x2826);return'idle';}else{if(_0x2f0520[_0x1e1948+'Pause'])return _0x2f0520[_0x1e1948+_0x886047(0x2311)]=_0x886047(0x2826),'pause';return _0x2f0520[_0x1e1948+_0x886047(0x2311)];}}function _0x1864a9(_0x4cb4a8){const _0x587f36=_0x393cf9;let _0x2862b1=_0x587f36(0x1191);if(_0x28c606()[_0x587f36(0x2972)]([_0x253a10(_0x4cb4a8,_0x587f36(0x227c)),_0x253a10(_0x4cb4a8,_0x587f36(0xf52)),_0x253a10(_0x4cb4a8,'mail'),_0x253a10(_0x4cb4a8,_0x587f36(0x28ad)),_0x253a10(_0x4cb4a8,_0x587f36(0x10aa)),_0x253a10(_0x4cb4a8,_0x587f36(0x1a29)),_0x253a10(_0x4cb4a8,_0x587f36(0x1d37))],_0xeb99d1))_0x2862b1=_0x587f36(0x2826);else{if(_0x28c606()[_0x587f36(0x25f8)]([_0x253a10(_0x4cb4a8,_0x587f36(0x227c)),_0x253a10(_0x4cb4a8,'chat'),_0x253a10(_0x4cb4a8,_0x587f36(0xc71)),_0x253a10(_0x4cb4a8,_0x587f36(0x28ad)),_0x253a10(_0x4cb4a8,_0x587f36(0x10aa)),_0x253a10(_0x4cb4a8,_0x587f36(0x1a29)),_0x253a10(_0x4cb4a8,_0x587f36(0x1d37))],_0xeb99d1))_0x2862b1=_0x587f36(0x1bcc);else _0x28c606()[_0x587f36(0x2972)]([_0x253a10(_0x4cb4a8,_0x587f36(0x227c)),_0x253a10(_0x4cb4a8,_0x587f36(0xf52)),_0x253a10(_0x4cb4a8,_0x587f36(0xc71)),_0x253a10(_0x4cb4a8,_0x587f36(0x28ad)),_0x253a10(_0x4cb4a8,_0x587f36(0x10aa)),_0x253a10(_0x4cb4a8,_0x587f36(0x1a29)),_0x253a10(_0x4cb4a8,'fax')],_0x360cbc)?_0x2862b1=_0x587f36(0xac6):_0x2862b1='busy';}_0x4cb4a8['globalStatus']!==_0x2862b1&&(_0x4cb4a8[_0x587f36(0x876)]=_0x2862b1,_0x4cb4a8[_0x587f36(0x2354)]?(_0x4cb4a8['init']=![],_0x4cb4a8[_0x587f36(0x14f5)]=_0xeb99d1(_0x2862b1)?_0x28c606()[_0x587f36(0x1251)](_0x2ac33a()(_0x4cb4a8['lastPauseAt'])[_0x587f36(0x1c2c)]('x')):_0x28c606()['max']([_0x4cb4a8[_0x587f36(0x17f4)],_0x4cb4a8['chatStatusTime'],_0x4cb4a8[_0x587f36(0x1f78)],_0x4cb4a8['smsStatusTime'],_0x4cb4a8[_0x587f36(0x17fb)],_0x4cb4a8[_0x587f36(0x1857)],_0x4cb4a8[_0x587f36(0x16c8)]])):_0x4cb4a8[_0x587f36(0x14f5)]=_0x28c606()[_0x587f36(0x1251)](_0x2ac33a()()[_0x587f36(0x1c2c)]('x')));}function _0x1d1045(_0x17a04f){const _0x4abae5=_0x393cf9,_0x47b42e=_0x28c606()[_0x4abae5(0x1273)](_0x3f3331[_0x4abae5(0x289a)]['order'],'-')?'desc':'asc';return _0x28c606()['orderBy'](_0x17a04f,[_0x3f3331['query'][_0x4abae5(0x1997)]['replace']('-','')],[_0x47b42e]);}function _0x5f398b(){const _0x29ead8=_0x393cf9;_0x1fb127&&(_0x39a10a[_0x29ead8(0x101a)](_0x1fb127),_0x1fb127=null);}function _0x27020c(_0x337f23,_0x4ab9b8){return _0x46adb0['user']['update']({'id':_0x337f23['id']},{'screenrecording':_0x4ab9b8})['$promise']['catch'](function(_0xae581a){const _0x3d60fd=a0_0x4127;_0x3bf9b9['error']({'title':_0xae581a[_0x3d60fd(0x10b3)]?_0x3d60fd(0x575)+_0xae581a[_0x3d60fd(0x10b3)]+_0x3d60fd(0x21db)+_0xae581a[_0x3d60fd(0x2115)]:'api.user.update','msg':_0xae581a[_0x3d60fd(0x1c52)]?JSON['stringify'](_0xae581a[_0x3d60fd(0x1c52)][_0x3d60fd(0x18ca)]):_0xae581a[_0x3d60fd(0x2915)]()});});}_0x2cf53d[_0x393cf9(0x8c7)]('$destroy',function(){const _0x18a71c=_0x393cf9;_0x281a28[_0x18a71c(0x1951)](_0x18a71c(0x17e9)),_0x281a28[_0x18a71c(0x1951)](_0x18a71c(0x130f)),_0x281a28['removeAllListeners'](_0x18a71c(0x197a)),_0x281a28[_0x18a71c(0x1951)](_0x18a71c(0x1b7e)),_0x5f398b();});}const _0x3aab43=_0x5613f8;;const _0x37019f=_0x2e4a48['p']+_0x49a1e3(0x2457);;const _0x16efc7=_0x2e4a48['p']+_0x49a1e3(0x120b);;_0x5a7557[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$timeout','$mdDialog','$q','$document',_0x49a1e3(0x1239),_0x49a1e3(0x1c06),_0x49a1e3(0x22c7),_0x49a1e3(0xa19),_0x49a1e3(0x633),_0x49a1e3(0x680),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xdcf)];function _0x5a7557(_0x3c7bcf,_0x608553,_0x124657,_0xfe49b5,_0x4d1454,_0xb860bd,_0x29357,_0x5af556,_0x3bd49d,_0x3ee475,_0xd5682a,_0x423037,_0xc209f9,_0x3842b3){const _0x2cb748=_0x49a1e3,_0x158c8d=this,_0x2924f9=[_0x2cb748(0x17bc),_0x2cb748(0x1c58),_0x2cb748(0x188f),_0x2cb748(0x130d),_0x2cb748(0xc00),_0x2cb748(0xa1b),_0x2cb748(0x18ca),_0x2cb748(0x11b3),_0x2cb748(0xa69),_0x2cb748(0x1608),'paused'];_0x158c8d[_0x2cb748(0x1d3d)]=_0x3842b3[_0x2cb748(0x808)](),_0x158c8d[_0x2cb748(0xb90)]=_0x29357[_0x2cb748(0xb90)]?_0x29357[_0x2cb748(0xb90)]:0x0,_0x158c8d['queues']=_0x29357?_0x28c606()[_0x2cb748(0x161e)](_0x29357[_0x2cb748(0x28b8)]?_0x29357[_0x2cb748(0x28b8)]:[],'id'):{},_0x158c8d[_0x2cb748(0x22c7)]=_0x5af556?_0x28c606()[_0x2cb748(0x161e)](_0x5af556['rows']?_0x5af556[_0x2cb748(0x28b8)]:[],'id'):{},_0x158c8d[_0x2cb748(0x16a8)]=_0x423037,_0x158c8d[_0x2cb748(0x16b2)]=_0xc209f9&&_0xc209f9['count']==0x1?_0xc209f9[_0x2cb748(0x28b8)][0x0]:null,_0x158c8d['crudPermissions']=_0x3842b3['parseCrudPermissions'](_0x158c8d[_0x2cb748(0x16b2)]?_0x158c8d[_0x2cb748(0x16b2)]['crudPermissions']:null);_0x3842b3['hasRole'](_0x2cb748(0x333))?_0x158c8d[_0x2cb748(0x289a)]={'type':_0x2cb748(0x12a4),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x158c8d[_0x2cb748(0x289a)]={'id':_0x158c8d['currentUser']['id'],'channel':_0x2cb748(0xc71),'type':_0x2cb748(0x12a4),'sort':_0x2cb748(0x260c),'limit':0xa,'page':0x1};_0x158c8d['success']=_0x290019,_0x158c8d[_0x2cb748(0x1f2c)]=_0x401a0f,_0x158c8d['createOrEditMailQueue']=_0x4997c7,_0x158c8d[_0x2cb748(0x2241)]=_0x420754,_0x158c8d['updateQueue']=_0x1a5604,_0x158c8d['onSave']=_0x1380a1,_0x158c8d[_0x2cb748(0x28b9)]=_0x14175b,_0x158c8d[_0x2cb748(0x351)]=_0x31c327,_0x158c8d[_0x2cb748(0x2fe)]=_0x15b465,_0x158c8d[_0x2cb748(0x4c3)]=_0x4c6c08,_0x158c8d[_0x2cb748(0x259)]=_0xb0d8cc,_0x158c8d['$onInit']=_0x583578,_0x158c8d[_0x2cb748(0x1997)]=[],_0x28c606()[_0x2cb748(0x1789)](_0x158c8d[_0x2cb748(0x1c06)],function(_0x63ae53){const _0x2f3790=_0x2cb748;_0x158c8d['order'][_0x2f3790(0x1954)](_0x63ae53['id']);}),_0x3ee475['on'](_0x2cb748(0x17a5),_0x158c8d[_0x2cb748(0x249c)]),_0x3ee475['on'](_0x2cb748(0x204d),_0x158c8d[_0x2cb748(0x28b9)]),_0x3ee475['on'](_0x2cb748(0x1b97),_0x158c8d['onRemoveMember']),_0x3ee475['on']('user:update',_0x158c8d[_0x2cb748(0x2fe)]),_0x3ee475['on'](_0x2cb748(0x289d),_0x158c8d['onLogout']),_0x3ee475['on'](_0x2cb748(0x44b),_0x158c8d[_0x2cb748(0x4c3)]);function _0x583578(){const _0x584161=_0x2cb748,_0x32386d=[];return _0x28c606()['forIn'](_0x158c8d[_0x584161(0x1c06)],function(_0x2e197f,_0x2aa91d){const _0x528d24=_0x584161;_0x2e197f[_0x528d24(0x20a7)]=0x0,_0x2e197f[_0x528d24(0x371)]=0x0,_0x158c8d[_0x528d24(0x1c06)][_0x2aa91d]['agents']={},_0x32386d[_0x528d24(0x1954)](_0x3bd49d[_0x528d24(0x1eb3)][_0x528d24(0xf49)]({'id':_0x2aa91d})[_0x528d24(0x15e7)]),_0x158c8d['rpcQueues'][_0x2aa91d]&&_0x28c606()['merge'](_0x2e197f,_0x28c606()['pick'](_0x158c8d[_0x528d24(0x22c7)][_0x2aa91d],_0x2924f9));}),_0xfe49b5[_0x584161(0x2705)](_0x32386d)[_0x584161(0x64a)](function(_0x3c636e){const _0x113540=_0x584161;for(let _0x2016fb=0x0;_0x2016fb<_0x3c636e[_0x113540(0x1b9e)];_0x2016fb+=0x1){for(let _0x1d3cb8=0x0;_0x1d3cb8<_0x3c636e[_0x2016fb]['rows'][_0x113540(0x1b9e)];_0x1d3cb8++){_0x3c636e[_0x2016fb][_0x113540(0x28b8)][_0x1d3cb8][_0x113540(0x20a7)]&&_0x158c8d[_0x113540(0x1c06)][_0x3c636e[_0x2016fb][_0x113540(0x28b8)][_0x1d3cb8][_0x113540(0x14f0)]][_0x113540(0x20a7)]++,_0x158c8d['queues'][_0x3c636e[_0x2016fb]['rows'][_0x1d3cb8]['MailQueueId']][_0x113540(0x371)]++,_0x158c8d[_0x113540(0x1c06)][_0x3c636e[_0x2016fb][_0x113540(0x28b8)][_0x1d3cb8][_0x113540(0x14f0)]][_0x113540(0xd77)][_0x3c636e[_0x2016fb]['rows'][_0x1d3cb8][_0x113540(0x246c)]]=_0x3c636e[_0x2016fb][_0x113540(0x28b8)][_0x1d3cb8][_0x113540(0x14f0)];}}})[_0x584161(0x20cd)](function(_0x21fe6d){const _0x5346a6=_0x584161;console[_0x5346a6(0x1bd0)](_0x21fe6d);});}function _0x1380a1(_0xc77f45){const _0x174e59=_0x2cb748;_0x158c8d['queues'][_0xc77f45['id']]&&_0x28c606()['merge'](_0x158c8d[_0x174e59(0x1c06)][_0xc77f45['id']],_0x28c606()[_0x174e59(0x27bb)](_0xc77f45,_0x2924f9));}function _0x14175b(_0x713c87){const _0x167db6=_0x2cb748;_0x158c8d[_0x167db6(0x1c06)][_0x713c87['MailQueueId']]&&_0x158c8d['queues'][_0x713c87[_0x167db6(0x14f0)]][_0x167db6(0x371)]++;}function _0x31c327(_0x529cf5){const _0x8d67f5=_0x2cb748;_0x158c8d[_0x8d67f5(0x1c06)][_0x529cf5[_0x8d67f5(0x14f0)]]&&_0x158c8d[_0x8d67f5(0x1c06)][_0x529cf5['MailQueueId']][_0x8d67f5(0x371)]--;}function _0x15b465(_0x140654){const _0x3c0dd2=_0x2cb748;console[_0x3c0dd2(0x9b4)]('onPause',_0x140654);if(_0x140654[_0x3c0dd2(0x11a4)])_0x28c606()[_0x3c0dd2(0x1789)](_0x158c8d[_0x3c0dd2(0x1c06)],function(_0x41d43e){const _0x424b98=_0x3c0dd2;_0x41d43e[_0x424b98(0xd77)][_0x140654['id']]&&(_0x41d43e[_0x424b98(0x20a7)]+=0x1,console['log'](_0x424b98(0x2826)));});else!_0x140654[_0x3c0dd2(0x11a4)]&&_0x28c606()[_0x3c0dd2(0x1789)](_0x158c8d['queues'],function(_0x450377){const _0x137d32=_0x3c0dd2;_0x450377[_0x137d32(0xd77)][_0x140654['id']]&&(_0x450377[_0x137d32(0x20a7)]>0x0&&(_0x450377[_0x137d32(0x20a7)]-=0x1,console[_0x137d32(0x9b4)](_0x137d32(0x818))));});}function _0x4c6c08(_0x44a86c){const _0x497a6f=_0x2cb748;console[_0x497a6f(0x9b4)](_0x497a6f(0x889),_0x44a86c),_0x158c8d[_0x497a6f(0x1c06)][_0x44a86c[_0x497a6f(0x14f0)]]&&(_0x158c8d[_0x497a6f(0x1c06)][_0x44a86c[_0x497a6f(0x14f0)]][_0x497a6f(0x371)]+=0x1,_0x158c8d[_0x497a6f(0x1c06)][_0x44a86c['MailQueueId']]['agents'][_0x44a86c[_0x497a6f(0x246c)]]=_0x44a86c[_0x497a6f(0x14f0)]);}function _0xb0d8cc(_0x280a23){const _0x334130=_0x2cb748;console[_0x334130(0x9b4)]('onLogout',_0x280a23),_0x158c8d['queues'][_0x280a23['MailQueueId']]&&_0x158c8d['queues'][_0x280a23[_0x334130(0x14f0)]][_0x334130(0x371)]>0x0&&(_0x158c8d['queues'][_0x280a23[_0x334130(0x14f0)]][_0x334130(0x371)]-=0x1,delete _0x158c8d[_0x334130(0x1c06)][_0x280a23['MailQueueId']]['agents'][_0x280a23[_0x334130(0x246c)]]);}let _0x1b9040=!![],_0x147f02=0x1;_0x3c7bcf[_0x2cb748(0xc62)]('vm.query.filter',function(_0x4b6513,_0x547bd5){const _0x470209=_0x2cb748;_0x1b9040?_0x608553(function(){_0x1b9040=![];}):(!_0x547bd5&&(_0x147f02=_0x158c8d[_0x470209(0x289a)][_0x470209(0xc72)]),_0x4b6513!==_0x547bd5&&(_0x158c8d[_0x470209(0x289a)][_0x470209(0xc72)]=0x1),!_0x4b6513&&(_0x158c8d[_0x470209(0x289a)][_0x470209(0xc72)]=_0x147f02),_0x158c8d[_0x470209(0x1f2c)]());});function _0x290019(_0x4e20d5){const _0x207899=_0x2cb748;_0x158c8d[_0x207899(0xb90)]=_0x4e20d5[_0x207899(0xb90)],_0x158c8d[_0x207899(0x1c06)]=_0x4e20d5?_0x28c606()['keyBy'](_0x4e20d5['rows']?_0x4e20d5[_0x207899(0x28b8)]:[],'id'):{};if(_0x4e20d5[_0x207899(0x28b8)]){_0x158c8d[_0x207899(0x1997)]=[];for(let _0x578ea7=0x0;_0x578ea7<_0x4e20d5[_0x207899(0x28b8)][_0x207899(0x1b9e)];_0x578ea7++){_0x158c8d[_0x207899(0x1997)][_0x207899(0x1954)](_0x4e20d5[_0x207899(0x28b8)][_0x578ea7]['id']);}}_0x583578();}function _0x401a0f(){const _0x2ef4fb=_0x2cb748;_0x158c8d[_0x2ef4fb(0x289a)][_0x2ef4fb(0x24f9)]=(_0x158c8d[_0x2ef4fb(0x289a)]['page']-0x1)*_0x158c8d[_0x2ef4fb(0x289a)]['limit'],_0x3842b3[_0x2ef4fb(0x4de)](_0x2ef4fb(0x333))?_0x158c8d[_0x2ef4fb(0x1713)]=_0x3bd49d[_0x2ef4fb(0x1eb3)][_0x2ef4fb(0x896)](_0x158c8d['query'],_0x290019)[_0x2ef4fb(0x15e7)]:(_0x158c8d['query']['id']=_0x158c8d['userProfile']['id'],_0x158c8d[_0x2ef4fb(0x289a)][_0x2ef4fb(0xa21)]=_0x2ef4fb(0x138c),_0x158c8d[_0x2ef4fb(0x1713)]=_0x3bd49d[_0x2ef4fb(0x16a8)][_0x2ef4fb(0x2565)](_0x158c8d[_0x2ef4fb(0x289a)],_0x290019)['$promise']);}function _0x4997c7(_0x9e507b,_0x549958){const _0x40249c=_0x2cb748;_0x124657['show']({'controller':_0x40249c(0x71a),'controllerAs':'vm','templateUrl':_0x37019f,'parent':angular[_0x40249c(0x1f81)](_0x4d1454[_0x40249c(0xb49)]),'targetEvent':_0x9e507b,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x549958,'mailQueues':_0x28c606()[_0x40249c(0x2146)](_0x158c8d[_0x40249c(0x1c06)]),'license':null,'setting':null,'crudPermissions':_0x158c8d[_0x40249c(0x402)]}});}function _0x420754(_0x27df47,_0xf08d4){const _0x3c055d=_0x2cb748;_0x124657[_0x3c055d(0xa60)]({'controller':_0x3c055d(0x886),'controllerAs':'vm','templateUrl':_0x16efc7,'parent':angular[_0x3c055d(0x1f81)](_0x4d1454['body']),'targetEvent':_0x27df47,'clickOutsideToClose':!![],'locals':{'mailQueue':_0xf08d4,'mailQueues':_0x158c8d[_0x3c055d(0x1c06)]?_0x158c8d[_0x3c055d(0x1c06)][_0x3c055d(0x28b8)]:[],'realtime':![],'crudPermissions':_0x158c8d[_0x3c055d(0x402)]}});}function _0x1a5604(_0x24c17b){const _0xb57ccd=_0x2cb748;return _0x3bd49d[_0xb57ccd(0x1eb3)][_0xb57ccd(0x2603)](_0x24c17b)['$promise'][_0xb57ccd(0x64a)](function(){const _0x12a054=_0xb57ccd;_0xd5682a['success']({'title':'Queue\x20properly\x20updated!','msg':_0x24c17b[_0x12a054(0x2494)]?_0x24c17b[_0x12a054(0x2494)]+'\x20has\x20been\x20updated!':''});})[_0xb57ccd(0x20cd)](function(_0x1b2692){const _0x380658=_0xb57ccd;_0xd5682a[_0x380658(0x1bd0)]({'title':'Error\x20creating\x20queue!','msg':_0x1b2692['message']});});}_0x3c7bcf[_0x2cb748(0x8c7)](_0x2cb748(0xf28),function(){const _0x40756e=_0x2cb748;_0x3ee475[_0x40756e(0x1951)](_0x40756e(0x17a5)),_0x3ee475[_0x40756e(0x1951)]('userMailQueue:remove'),_0x3ee475[_0x40756e(0x1951)]('userMailQueue:save'),_0x3ee475['removeAllListeners']('user:update'),_0x3ee475[_0x40756e(0x1951)](_0x40756e(0x289d)),_0x3ee475['removeAllListeners'](_0x40756e(0x44b));});}const _0x4cde5c=_0x5a7557;;function _0x2bc37b(){const _0x4a33ff=_0x49a1e3;return{'status':{'registered':_0x4a33ff(0x26f8),'unregistered':'red-300-fg\x20icon-close-circle','lagged':_0x4a33ff(0x2448),'reachable':_0x4a33ff(0x26f8),'unreachable':_0x4a33ff(0x2448),'unknown':_0x4a33ff(0x178c)},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':_0x4a33ff(0x14d3),'inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0x4a33ff(0xe3e),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':_0x4a33ff(0x2971),'ringing':_0x4a33ff(0x15e),'ringinuse':_0x4a33ff(0x15e),'onhold':_0x4a33ff(0xced)},'channelStatus':{'ring':_0x4a33ff(0x15e),'up':'green-300-fg\x20icon-phone-in-talk','hangup':'red-300-fg\x20icon-phone-hangup'},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':_0x4a33ff(0x5c4),'hangup':'red-300-fg\x20icon-phone-hangup'}};}const _0xdb2011=_0x2bc37b;;_0x349847[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x633)];function _0x349847(_0x4a1094,_0x2025f5,_0x59287f){const _0x4e83bd=_0x49a1e3,_0x1febd2=this;_0x59287f[_0x4e83bd(0x1c31)](),_0x59287f[_0x4e83bd(0x25fa)](),_0x1febd2[_0x4e83bd(0x197c)]=0x0;switch(_0x2025f5['current'][_0x4e83bd(0x2494)]){case _0x4e83bd(0x292e):_0x1febd2[_0x4e83bd(0x197c)]=0x0;break;case _0x4e83bd(0x991):_0x1febd2['selectedTab']=0x1;break;case _0x4e83bd(0x1b9b):_0x1febd2[_0x4e83bd(0x197c)]=0x2;break;default:_0x1febd2[_0x4e83bd(0x197c)]=0x0,_0x2025f5['go'](_0x4e83bd(0x292e));}_0x4a1094['$watch'](_0x4e83bd(0x2303),function(_0x382a53,_0x23ae28){const _0x3aa065=_0x4e83bd;if(_0x382a53!==_0x23ae28)switch(_0x382a53){case 0x0:_0x2025f5['go'](_0x3aa065(0x292e));break;case 0x1:_0x2025f5['go'](_0x3aa065(0x991));break;case 0x2:_0x2025f5['go'](_0x3aa065(0x1b9b));break;default:_0x2025f5['go'](_0x3aa065(0x292e));}});}const _0x1b7e5f=_0x349847;;_0x4b73e6[_0x49a1e3(0x1e73)]=['$stateProvider'];function _0x4b73e6(_0x49c4ae){const _0x57140e=_0x49a1e3;_0x49c4ae[_0x57140e(0x14f2)](_0x57140e(0x1ebe),{'url':'/realtime','views':{'content@app':{'templateUrl':_0x511157,'controller':_0x57140e(0x25b3)}},'resolve':{'userProfile':[_0x57140e(0x107c),_0x57140e(0xdcf),function(_0x2b012d,_0x4d9e3e){const _0x3e84ba=_0x57140e;return _0x4d9e3e['hasRole'](_0x3e84ba(0x333))?null:_0x2b012d[_0x3e84ba(0x1268)](_0x3e84ba(0x6e3),{'fields':_0x3e84ba(0x10d2),'id':_0x4d9e3e['getCurrentUser']()[_0x3e84ba(0x21ac)]});}],'userProfileSection':[_0x57140e(0x107c),_0x57140e(0xdcf),function(_0x4d46ba,_0x1c4fc1){const _0x3f9b00=_0x57140e;return _0x1c4fc1['hasRole'](_0x3f9b00(0x333))?null:_0x4d46ba[_0x3f9b00(0x1268)](_0x3f9b00(0x2681),{'fields':_0x3f9b00(0x527),'userProfileId':_0x1c4fc1[_0x3f9b00(0x808)]()[_0x3f9b00(0x21ac)],'sectionId':0x262});}]},'authenticate':!![],'permissionId':0x262})[_0x57140e(0x14f2)](_0x57140e(0x292e),{'url':_0x57140e(0x23f8),'controller':'AgentsMailRealtimeController\x20as\x20vm','templateUrl':_0x235201,'resolve':{'pauses':[_0x57140e(0x107c),function(_0x5222ae){const _0x3902da=_0x57140e;return _0x5222ae[_0x3902da(0x1268)](_0x3902da(0x1fae),{'nolimit':!![]});}],'agents':[_0x57140e(0x107c),'Auth',function(_0xd74ad2,_0x4ca7ab){const _0xd36b7c=_0x57140e;return _0x4ca7ab['hasRole']('admin')?_0xd74ad2['resolve'](_0xd36b7c(0x142c),{'fields':_0xd36b7c(0x1956),'role':'agent','sort':'fullname','nolimit':!![]}):_0xd74ad2[_0xd36b7c(0x1268)](_0xd36b7c(0x1758),{'id':_0x4ca7ab[_0xd36b7c(0x808)]()[_0xd36b7c(0x21ac)],'section':_0xd36b7c(0x2132),'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':_0xd36b7c(0x11ae),'sort':_0xd36b7c(0x15c),'nolimit':!![]});}],'userProfile':[_0x57140e(0x107c),_0x57140e(0xdcf),function(_0x371002,_0x182667){const _0x31dc21=_0x57140e;return _0x182667[_0x31dc21(0x4de)]('admin')?null:_0x371002[_0x31dc21(0x1268)](_0x31dc21(0x6e3),{'fields':_0x31dc21(0x10d2),'id':_0x182667[_0x31dc21(0x808)]()[_0x31dc21(0x21ac)]});}],'userProfileSection':['apiResolver','Auth',function(_0x4c2691,_0x524154){const _0x9e899e=_0x57140e;return _0x524154[_0x9e899e(0x4de)](_0x9e899e(0x333))?null:_0x4c2691['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x524154[_0x9e899e(0x808)]()['userProfileId'],'sectionId':0xca});}],'rpcAgents':[_0x57140e(0x107c),function(_0x1bd536){const _0x349861=_0x57140e;return _0x1bd536[_0x349861(0x1268)]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x262})['state'](_0x57140e(0x991),{'url':'/queues','controller':_0x57140e(0x6cb),'templateUrl':_0x53c408,'resolve':{'queues':[_0x57140e(0x107c),'Auth',function(_0x29e637,_0x2d0454){const _0x1e063f=_0x57140e;return _0x2d0454['hasRole']('admin')?_0x29e637[_0x1e063f(0x1268)](_0x1e063f(0x1a12),{'type':_0x1e063f(0x12a4),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x29e637[_0x1e063f(0x1268)](_0x1e063f(0x1758),{'id':_0x2d0454[_0x1e063f(0x808)]()[_0x1e063f(0x21ac)],'section':_0x1e063f(0x138c),'channel':'mail','type':_0x1e063f(0x12a4),'sort':_0x1e063f(0x260c),'limit':0xa,'page':0x1});}],'userProfile':[_0x57140e(0x107c),_0x57140e(0xdcf),function(_0xa71eec,_0x433ba3){const _0x6bf798=_0x57140e;return _0x433ba3[_0x6bf798(0x4de)](_0x6bf798(0x333))?null:_0xa71eec[_0x6bf798(0x1268)](_0x6bf798(0x6e3),{'fields':_0x6bf798(0x10d2),'id':_0x433ba3['getCurrentUser']()[_0x6bf798(0x21ac)]});}],'userProfileSection':['apiResolver',_0x57140e(0xdcf),function(_0x11d38b,_0x1c8e0d){const _0x8f4f8b=_0x57140e;return _0x1c8e0d['hasRole'](_0x8f4f8b(0x333))?null:_0x11d38b[_0x8f4f8b(0x1268)](_0x8f4f8b(0x2681),{'fields':_0x8f4f8b(0x527),'userProfileId':_0x1c8e0d[_0x8f4f8b(0x808)]()[_0x8f4f8b(0x21ac)],'sectionId':0x259});}],'rpcQueues':[_0x57140e(0x107c),function(_0x21c21e){const _0x80b283=_0x57140e;return _0x21c21e[_0x80b283(0x1268)]('rpc@getMailQueues');}]},'authenticate':!![],'permissionId':0x262})[_0x57140e(0x14f2)]('app.mail.realtime.accounts',{'url':_0x57140e(0x2bd),'controller':_0x57140e(0x23d5),'templateUrl':_0x4e540d,'resolve':{'mailAccounts':['apiResolver',_0x57140e(0xdcf),function(_0x57a4ce,_0x5dac35){const _0x33c117=_0x57140e;return _0x5dac35[_0x33c117(0x4de)](_0x33c117(0x333))?_0x57a4ce[_0x33c117(0x1268)](_0x33c117(0x1cdb),{'sort':_0x33c117(0x260c),'limit':0xa,'offset':0x0}):_0x57a4ce[_0x33c117(0x1268)](_0x33c117(0x1758),{'id':_0x5dac35['getCurrentUser']()[_0x33c117(0x21ac)],'section':_0x33c117(0x1941),'sort':_0x33c117(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x57140e(0x107c),_0x57140e(0xdcf),function(_0x468bc7,_0x4a9873){const _0x20d1cd=_0x57140e;return _0x4a9873[_0x20d1cd(0x4de)](_0x20d1cd(0x333))?null:_0x468bc7[_0x20d1cd(0x1268)](_0x20d1cd(0x6e3),{'fields':_0x20d1cd(0x10d2),'id':_0x4a9873['getCurrentUser']()[_0x20d1cd(0x21ac)]});}],'userProfileSection':[_0x57140e(0x107c),_0x57140e(0xdcf),function(_0x2fdcab,_0x5b8e15){const _0x7332a9=_0x57140e;return _0x5b8e15[_0x7332a9(0x4de)](_0x7332a9(0x333))?null:_0x2fdcab[_0x7332a9(0x1268)](_0x7332a9(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5b8e15[_0x7332a9(0x808)]()['userProfileId'],'sectionId':0x25a});}],'rpcMailAccounts':[_0x57140e(0x107c),function(_0x5a5f9f){const _0x18d08d=_0x57140e;return _0x5a5f9f[_0x18d08d(0x1268)](_0x18d08d(0x1500));}]},'authenticate':!![],'permissionId':0x262});}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x1ebe),[])[_0x49a1e3(0x3d3)](_0x4b73e6)[_0x49a1e3(0x38e)](_0x49a1e3(0x104d),_0x3aab43)[_0x49a1e3(0x38e)](_0x49a1e3(0x1809),_0x4cde5c)['factory'](_0x49a1e3(0x1f8c),_0xdb2011)[_0x49a1e3(0x38e)](_0x49a1e3(0x1e5c),_0x1b7e5f);;const _0x32a98c=_0x2e4a48['p']+_0x49a1e3(0x1a4a);;const _0x3e6a7b=_0x2e4a48['p']+_0x49a1e3(0x1ea2);;const _0xb3939e=_0x2e4a48['p']+_0x49a1e3(0x15f6);;const _0x17ecb2=_0x2e4a48['p']+_0x49a1e3(0xccb);;const _0x266dd2=_0x2e4a48['p']+_0x49a1e3(0x821);;_0x33bf3d[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q','$translate',_0x49a1e3(0x680),_0x49a1e3(0x2435),_0x49a1e3(0x1b1e),'api',_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x33bf3d(_0x298736,_0x496d29,_0x41776c,_0x3e3e5d,_0x4714f9,_0x37bb73,_0x563ecf,_0x89fd12,_0x505e71,_0x638f3f,_0x21367e,_0x5afe32,_0x17391c,_0x2ea899){const _0x372ae5=_0x49a1e3,_0x3947d8=this;_0x3947d8[_0x372ae5(0x1d3d)]=_0x21367e[_0x372ae5(0x808)](),_0x3947d8[_0x372ae5(0xbae)]=[],_0x3947d8[_0x372ae5(0x28d6)]=_0x17391c,_0x3947d8[_0x372ae5(0x1947)]=_0x5afe32,_0x3947d8[_0x372ae5(0x402)]=_0x2ea899,_0x3947d8[_0x372ae5(0x6c2)]={},_0x3947d8[_0x372ae5(0xccc)]=_0x3947d8[_0x372ae5(0x28d6)]&&_0x3947d8[_0x372ae5(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3947d8[_0x372ae5(0x2021)]=_0x372ae5(0x1112),_0x3947d8[_0x372ae5(0x1b1e)]=angular['copy'](_0x505e71),_0x3947d8[_0x372ae5(0x2435)]=_0x89fd12,_0x3947d8[_0x372ae5(0x1edf)]=![];!_0x3947d8[_0x372ae5(0x1b1e)]&&(_0x3947d8[_0x372ae5(0x1b1e)]={'active':!![],'cservice':_0x372ae5(0x8f1),'cauthentication':!![],'fontSize':0xd,'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x3947d8[_0x372ae5(0x2021)]=_0x372ae5(0x2118),_0x3947d8[_0x372ae5(0x1edf)]=!![]);_0x496d29[_0x372ae5(0x1b48)]['id']&&(_0x3947d8['mailAccount'][_0x372ae5(0xa4c)]=_0x496d29['params']['id']);_0x3947d8['addNewMailAccount']=_0x282ba7,_0x3947d8[_0x372ae5(0x1813)]=_0x7bff4d,_0x3947d8[_0x372ae5(0x841)]=_0xed740b,_0x3947d8[_0x372ae5(0x1605)]=_0x1b21eb,_0x3947d8[_0x372ae5(0x16cb)]=_0x4da2ae,_0x21367e[_0x372ae5(0x4de)](_0x372ae5(0x333))?_0x638f3f[_0x372ae5(0x19f8)]['get']({'fields':'id,name','sort':_0x372ae5(0x2494)})['$promise'][_0x372ae5(0x64a)](function(_0x5b7b74){const _0x40c300=_0x372ae5;_0x3947d8[_0x40c300(0x974)]=_0x5b7b74['rows']||[];})[_0x372ae5(0x20cd)](function(_0x31b933){const _0x168ef1=_0x372ae5;_0x563ecf[_0x168ef1(0x1bd0)]({'title':_0x31b933[_0x168ef1(0x10b3)]?_0x168ef1(0x575)+_0x31b933[_0x168ef1(0x10b3)]+_0x168ef1(0x21db)+_0x31b933['statusText']:_0x168ef1(0x1ed6),'msg':_0x31b933[_0x168ef1(0x1c52)]?JSON[_0x168ef1(0x2317)](_0x31b933[_0x168ef1(0x1c52)]):_0x31b933[_0x168ef1(0x2915)]()});}):_0x638f3f[_0x372ae5(0x19f8)][_0x372ae5(0x896)]({'fields':_0x372ae5(0x1427),'sort':_0x372ae5(0x2494)})[_0x372ae5(0x15e7)][_0x372ae5(0x64a)](function(_0x369e18){const _0xc04d85=_0x372ae5;_0x3947d8[_0xc04d85(0x974)]=_0x369e18['rows']||[];})[_0x372ae5(0x64a)](function(){const _0x242e7a=_0x372ae5;return _0x638f3f[_0x242e7a(0x16b2)][_0x242e7a(0x896)]({'userProfileId':_0x3947d8['currentUser'][_0x242e7a(0x21ac)],'sectionId':0x12d})['$promise'];})[_0x372ae5(0x64a)](function(_0x1f36b2){const _0x2e2bbb=_0x372ae5,_0x2420fa=_0x1f36b2&&_0x1f36b2[_0x2e2bbb(0x28b8)]?_0x1f36b2[_0x2e2bbb(0x28b8)][0x0]:null;if(!_0x2420fa){const _0x55ad48=[];let _0x267e7f=null;_0x3947d8[_0x2e2bbb(0x1b1e)]&&(_0x267e7f=_0x28c606()[_0x2e2bbb(0x27bc)](_0x3947d8[_0x2e2bbb(0x974)],{'id':Number(_0x3947d8[_0x2e2bbb(0x1b1e)][_0x2e2bbb(0x869)])}));for(let _0x3d7165=0x0;_0x3d7165<_0x3947d8[_0x2e2bbb(0x974)]['length'];_0x3d7165++){_0x267e7f&&_0x3947d8[_0x2e2bbb(0x974)][_0x3d7165]['id']===_0x267e7f['id']&&(_0x3947d8[_0x2e2bbb(0x974)][_0x3d7165][_0x2e2bbb(0xd4f)]=![],_0x55ad48['push'](_0x3947d8[_0x2e2bbb(0x974)][_0x3d7165]));}_0x3947d8[_0x2e2bbb(0x974)]=_0x55ad48;}else{if(!_0x2420fa[_0x2e2bbb(0x11da)])return _0x638f3f['userProfileResource'][_0x2e2bbb(0x896)]({'sectionId':_0x2420fa['id']})[_0x2e2bbb(0x15e7)][_0x2e2bbb(0x64a)](function(_0x29ddb5){const _0x4f7deb=_0x2e2bbb,_0x4f3e04=_0x28c606()['map'](_0x29ddb5[_0x4f7deb(0x28b8)],function(_0x23c516){const _0x368e8a=_0x4f7deb;return _0x28c606()[_0x368e8a(0x27bc)](_0x3947d8[_0x368e8a(0x974)],{'id':_0x23c516[_0x368e8a(0x145)]});});let _0x119729=null;_0x3947d8[_0x4f7deb(0x1b1e)]&&(_0x119729=_0x28c606()[_0x4f7deb(0x27bc)](_0x3947d8['lists'],{'id':Number(_0x3947d8[_0x4f7deb(0x1b1e)][_0x4f7deb(0x869)])}));if(_0x119729&&!_0x28c606()[_0x4f7deb(0x25f8)](_0x4f3e04,['id',_0x119729['id']])){const _0x5937f8=_0x28c606()[_0x4f7deb(0x27bc)](_0x3947d8[_0x4f7deb(0x974)],{'id':_0x119729['id']});_0x5937f8[_0x4f7deb(0xd4f)]=![],_0x4f3e04[_0x4f7deb(0x1954)](_0x5937f8);}_0x3947d8['lists']=_0x4f3e04;});}})[_0x372ae5(0x20cd)](function(_0x26dde7){const _0x156dc7=_0x372ae5;_0x563ecf[_0x156dc7(0x1bd0)]({'title':_0x26dde7[_0x156dc7(0x10b3)]?_0x156dc7(0x575)+_0x26dde7[_0x156dc7(0x10b3)]+_0x156dc7(0x21db)+_0x26dde7[_0x156dc7(0x2115)]:_0x156dc7(0x1beb),'msg':_0x26dde7[_0x156dc7(0x1c52)]?JSON[_0x156dc7(0x2317)](_0x26dde7['data']):_0x26dde7[_0x156dc7(0x2915)]()});});function _0x282ba7(){const _0x789bc=_0x372ae5;_0x3947d8[_0x789bc(0xbae)]=[],_0x638f3f['mailAccount'][_0x789bc(0x2479)](_0x3947d8[_0x789bc(0x1b1e)])[_0x789bc(0x15e7)][_0x789bc(0x64a)](function(_0x150284){const _0x22c499=_0x789bc;_0x3947d8['mailAccounts'][_0x22c499(0x1891)](_0x150284[_0x22c499(0x14f8)]()),_0x563ecf[_0x22c499(0x1339)]({'title':_0x22c499(0x20f4),'msg':_0x3947d8[_0x22c499(0x1b1e)][_0x22c499(0x2494)]?_0x3947d8[_0x22c499(0x1b1e)][_0x22c499(0x2494)]+_0x22c499(0x258d):''}),_0x4da2ae(_0x150284);})['catch'](function(_0x40abf1){const _0x2d696d=_0x789bc;if(_0x40abf1['data']&&_0x40abf1[_0x2d696d(0x1c52)][_0x2d696d(0xbae)]&&_0x40abf1['data'][_0x2d696d(0xbae)][_0x2d696d(0x1b9e)]){_0x3947d8[_0x2d696d(0xbae)]=_0x40abf1[_0x2d696d(0x1c52)][_0x2d696d(0xbae)]||[{'message':_0x40abf1[_0x2d696d(0x2915)](),'type':_0x2d696d(0xce0)}];for(let _0x1b5c04=0x0;_0x1b5c04<_0x40abf1[_0x2d696d(0x1c52)][_0x2d696d(0xbae)][_0x2d696d(0x1b9e)];_0x1b5c04+=0x1){_0x563ecf[_0x2d696d(0x1bd0)]({'title':_0x40abf1[_0x2d696d(0x1c52)][_0x2d696d(0xbae)][_0x1b5c04][_0x2d696d(0x2185)],'msg':_0x40abf1[_0x2d696d(0x1c52)]['errors'][_0x1b5c04][_0x2d696d(0x18ca)]});}}else _0x563ecf[_0x2d696d(0x1bd0)]({'title':_0x40abf1['status']?_0x2d696d(0x575)+_0x40abf1[_0x2d696d(0x10b3)]+_0x2d696d(0x21db)+_0x40abf1[_0x2d696d(0x2115)]:_0x2d696d(0xce0),'msg':_0x40abf1[_0x2d696d(0x1c52)]?JSON[_0x2d696d(0x2317)](_0x40abf1[_0x2d696d(0x1c52)][_0x2d696d(0x18ca)]):_0x40abf1[_0x2d696d(0x2915)]()});});}function _0x7bff4d(){const _0x40851f=_0x372ae5;_0x3947d8[_0x40851f(0xbae)]=[],_0x638f3f['mailAccount'][_0x40851f(0x2603)]({'id':_0x3947d8[_0x40851f(0x1b1e)]['id']},_0x3947d8[_0x40851f(0x1b1e)])[_0x40851f(0x15e7)][_0x40851f(0x64a)](function(_0x457e98){const _0x2a3884=_0x40851f,_0x36676a=_0x28c606()['find'](_0x3947d8[_0x2a3884(0x2435)],{'id':_0x457e98['id']});_0x36676a&&_0x28c606()[_0x2a3884(0x14fe)](_0x36676a,_0x28c606()[_0x2a3884(0x27bb)](_0x457e98[_0x2a3884(0x14f8)](),_0x28c606()[_0x2a3884(0x1ec6)](_0x36676a))),_0x563ecf[_0x2a3884(0x1339)]({'title':_0x2a3884(0x21a2),'msg':_0x3947d8[_0x2a3884(0x1b1e)][_0x2a3884(0x2494)]?_0x3947d8[_0x2a3884(0x1b1e)][_0x2a3884(0x2494)]+'\x20has\x20been\x20saved!':''}),_0x4da2ae(_0x457e98);})['catch'](function(_0x2c0d7b){const _0xa0c28=_0x40851f;if(_0x2c0d7b[_0xa0c28(0x1c52)]&&_0x2c0d7b[_0xa0c28(0x1c52)][_0xa0c28(0xbae)]&&_0x2c0d7b[_0xa0c28(0x1c52)][_0xa0c28(0xbae)][_0xa0c28(0x1b9e)]){_0x3947d8[_0xa0c28(0xbae)]=_0x2c0d7b[_0xa0c28(0x1c52)][_0xa0c28(0xbae)]||[{'message':_0x2c0d7b['toString'](),'type':_0xa0c28(0x150)}];for(let _0x5ea343=0x0;_0x5ea343<_0x2c0d7b['data'][_0xa0c28(0xbae)][_0xa0c28(0x1b9e)];_0x5ea343++){_0x563ecf[_0xa0c28(0x1bd0)]({'title':_0x2c0d7b[_0xa0c28(0x1c52)][_0xa0c28(0xbae)][_0x5ea343][_0xa0c28(0x2185)],'msg':_0x2c0d7b[_0xa0c28(0x1c52)][_0xa0c28(0xbae)][_0x5ea343][_0xa0c28(0x18ca)]});}}else _0x563ecf[_0xa0c28(0x1bd0)]({'title':_0x2c0d7b[_0xa0c28(0x10b3)]?_0xa0c28(0x575)+_0x2c0d7b[_0xa0c28(0x10b3)]+_0xa0c28(0x21db)+_0x2c0d7b[_0xa0c28(0x2115)]:_0xa0c28(0x150),'msg':_0x2c0d7b[_0xa0c28(0x1c52)]?JSON[_0xa0c28(0x2317)](_0x2c0d7b['data']['message']):_0x2c0d7b[_0xa0c28(0x2915)]()});});}function _0xed740b(_0x5c29bd){const _0x21ea3b=_0x372ae5;if(_0x3947d8[_0x21ea3b(0x1b1e)][_0x21ea3b(0xe15)])return _0x563ecf[_0x21ea3b(0x1bd0)]({'title':_0x21ea3b(0x1e34),'msg':_0x21ea3b(0x14fc)});_0x3947d8['errors']=[];const _0x4cd753=_0x3e3e5d[_0x21ea3b(0x856)]()[_0x21ea3b(0x2021)](_0x21ea3b(0x103a))[_0x21ea3b(0x12b8)](_0x21ea3b(0x95b))[_0x21ea3b(0x213e)]('Delete\x20MailAccount')['ok']('Delete')['cancel'](_0x21ea3b(0x1dc6))['targetEvent'](_0x5c29bd);_0x3e3e5d[_0x21ea3b(0xa60)](_0x4cd753)[_0x21ea3b(0x64a)](function(){const _0x4e087a=_0x21ea3b;_0x638f3f['mailAccount'][_0x4e087a(0xabd)]({'id':_0x3947d8[_0x4e087a(0x1b1e)]['id']})['$promise'][_0x4e087a(0x64a)](function(){const _0x43dde7=_0x4e087a;_0x28c606()[_0x43dde7(0x21c7)](_0x3947d8['mailAccounts'],{'id':_0x3947d8[_0x43dde7(0x1b1e)]['id']}),_0x563ecf['success']({'title':'MailAccount\x20properly\x20deleted!','msg':(_0x3947d8[_0x43dde7(0x1b1e)][_0x43dde7(0x2494)]||_0x43dde7(0x1b1e))+'\x20has\x20been\x20deleted!'}),_0x4da2ae(_0x3947d8[_0x43dde7(0x1b1e)]);})[_0x4e087a(0x20cd)](function(_0x58f266){const _0x39fa0b=_0x4e087a;if(_0x58f266['data']&&_0x58f266['data']['errors']&&_0x58f266['data'][_0x39fa0b(0xbae)][_0x39fa0b(0x1b9e)]){_0x3947d8[_0x39fa0b(0xbae)]=_0x58f266[_0x39fa0b(0x1c52)][_0x39fa0b(0xbae)]||[{'message':_0x58f266[_0x39fa0b(0x2915)](),'type':_0x39fa0b(0x2f7)}];for(let _0x565bac=0x0;_0x565bac<_0x58f266[_0x39fa0b(0x1c52)][_0x39fa0b(0xbae)][_0x39fa0b(0x1b9e)];_0x565bac++){_0x563ecf[_0x39fa0b(0x1bd0)]({'title':_0x58f266[_0x39fa0b(0x1c52)][_0x39fa0b(0xbae)][_0x565bac][_0x39fa0b(0x2185)],'msg':_0x58f266[_0x39fa0b(0x1c52)][_0x39fa0b(0xbae)][_0x565bac][_0x39fa0b(0x18ca)]});}}else _0x563ecf[_0x39fa0b(0x1bd0)]({'title':_0x58f266[_0x39fa0b(0x10b3)]?_0x39fa0b(0x575)+_0x58f266[_0x39fa0b(0x10b3)]+_0x39fa0b(0x21db)+_0x58f266[_0x39fa0b(0x2115)]:'api.mailAccount.delete','msg':_0x58f266[_0x39fa0b(0x1c52)]?JSON[_0x39fa0b(0x2317)](_0x58f266['data'][_0x39fa0b(0x18ca)]):_0x58f266[_0x39fa0b(0x18ca)]||_0x58f266[_0x39fa0b(0x2915)]()});});},function(){});}function _0x1b21eb(_0x3431d8){return _0x3431d8===null?undefined:new Date(_0x3431d8);}function _0x4da2ae(_0x3f8829){const _0x39b2f9=_0x372ae5;_0x3e3e5d[_0x39b2f9(0x268e)](_0x3f8829);}}const _0x1acd49=_0x33bf3d;;const _0x30c9a6=_0x2e4a48['p']+_0x49a1e3(0x6c6);;const _0x388295=_0x2e4a48['p']+_0x49a1e3(0x163c);;const _0x37f3ce=_0x2e4a48['p']+_0x49a1e3(0x75d);;const _0x18b43d=_0x2e4a48['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotoif/dialog.html/dialog.html';;const _0x48c55a=_0x2e4a48['p']+_0x49a1e3(0xd54);;const _0xce45db=_0x2e4a48['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/interval/dialog.html/dialog.html';;const _0x47aa6a=_0x2e4a48['p']+_0x49a1e3(0x73b);;const _0x41d0a9=_0x2e4a48['p']+_0x49a1e3(0x1b18);;const _0x4f6464=_0x2e4a48['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/system/dialog.html/dialog.html';;const _0x2f5862=_0x2e4a48['p']+_0x49a1e3(0x1c2b);;_0x32f65d[_0x49a1e3(0x1e73)]=[_0x49a1e3(0xa19),'$mdDialog','$document','toasty',_0x49a1e3(0xdcf)];const _0x16b07c={'agent':_0x30c9a6,'autoreply':_0x388295,'close':_0x37f3ce,'gotoif':_0x18b43d,'gotop':_0x48c55a,'interval':_0xce45db,'noop':_0x47aa6a,'queue':_0x41d0a9,'system':_0x4f6464,'tag':_0x2f5862};function _0x32f65d(_0x5b06e9,_0x487e7b,_0x37af3f,_0x27be01,_0x1c9176){const _0x1e0245=_0x49a1e3,_0x324ffc=this;_0x324ffc[_0x1e0245(0x1d3d)]=_0x1c9176[_0x1e0245(0x808)](),_0x324ffc[_0x1e0245(0x1b1e)]={},_0x324ffc[_0x1e0245(0x18a5)]={'count':0x0,'rows':[]},_0x324ffc[_0x1e0245(0xeb6)]=[],_0x324ffc[_0x1e0245(0x402)],_0x324ffc[_0x1e0245(0x289a)]={'sort':'priority'},_0x324ffc[_0x1e0245(0x1018)]=_0x28c606()[_0x1e0245(0x19d2)](_0x28c606()[_0x1e0245(0x1643)]([{'app':_0x1e0245(0x1f03),'appType':_0x1e0245(0xcfd),'types':['always','custom','list'],'fields':[],'isApp':![]},{'app':_0x1e0245(0xbb6),'appType':'noop','type':_0x1e0245(0xbb6),'icon':'icon-apps','interval':_0x1e0245(0x2145),'required':!![],'isApp':!![],'fields':[{'title':_0x1e0245(0x107f),'name':_0x1e0245(0x1096),'type':'text','param':0x0}]},{'app':_0x1e0245(0x1f06),'appType':_0x1e0245(0x1f06),'type':'system','icon':_0x1e0245(0xd46),'interval':_0x1e0245(0x2145),'required':!![],'isApp':!![],'extraApi':[{'name':_0x1e0245(0x145c),'field':{'name':_0x1e0245(0xefb),'key':_0x1e0245(0x2494)},'route':'variable','filters':{'fields':_0x1e0245(0x1427),'sort':_0x1e0245(0x2494),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':'Command','name':_0x1e0245(0xf42),'type':_0x1e0245(0x39b),'required':!![],'param':0x0},{'title':_0x1e0245(0x1538),'name':_0x1e0245(0xefb),'type':'apiselect','values':'variables','value':_0x1e0245(0x1c5a),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':'None'}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x1e0245(0x2046),'appType':_0x1e0245(0x2046),'type':_0x1e0245(0x1e5a),'icon':'icon-apps','interval':_0x1e0245(0x2145),'isApp':!![],'fields':[{'title':_0x1e0245(0x27f2),'name':'priority','type':'number','required':!![],'min':0x0,'param':0x0}]},{'app':'gotoif','appType':'gotoif','type':'gotoif','icon':_0x1e0245(0xd46),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x1e0245(0x82a),'name':'condition','type':_0x1e0245(0x39b),'required':!![],'param':0x0},{'title':_0x1e0245(0x108f),'name':'truepriority','type':_0x1e0245(0x2113),'min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':_0x1e0245(0x1d32),'type':_0x1e0245(0x2113),'min':0x1,'required':!![],'param':0x2}]},{'app':'queue','appType':_0x1e0245(0x1e4e),'foreignKey':_0x1e0245(0x14f0),'type':_0x1e0245(0x1e4e),'icon':_0x1e0245(0xd46),'interval':_0x1e0245(0x2145),'isApp':!![],'extraApi':[{'name':'queues','field':{'name':_0x1e0245(0x1e4e),'key':'name'},'route':_0x1e0245(0x1eb3),'filters':{'fields':_0x1e0245(0x2ba),'sort':_0x1e0245(0x2494),'nolimit':!![]},'permissions':{'section':0x259}}],'fields':[{'title':_0x1e0245(0x285e),'name':'queue','type':_0x1e0245(0x26e8),'values':_0x1e0245(0x1c06),'value':_0x1e0245(0x5ca),'option':_0x1e0245(0x5ca),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':_0x1e0245(0x16d),'type':_0x1e0245(0x2113),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x1e0245(0x11ae),'appType':'agent','type':'agent','foreignKey':'UserId','icon':'icon-apps','interval':_0x1e0245(0x2145),'isApp':!![],'extraApi':[{'name':_0x1e0245(0xd77),'field':{'name':_0x1e0245(0x11ae),'key':_0x1e0245(0x2494)},'route':'user','filters':{'fields':'id,name','sort':'name','nolimit':!![],'role':'agent'},'permissions':{'section':0xca}}],'fields':[{'title':_0x1e0245(0x12ad),'name':_0x1e0245(0x11ae),'type':'apiselect','values':'agents','value':'agent.name','option':'agent.name','required':!![],'param':0x0},{'title':_0x1e0245(0x66e),'name':_0x1e0245(0x16d),'type':_0x1e0245(0x2113),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x1e0245(0x21a9),'appType':_0x1e0245(0x21a9),'type':_0x1e0245(0x21a9),'icon':_0x1e0245(0xd46),'interval':_0x1e0245(0x2145),'isApp':!![],'fields':[{'title':'times','name':_0x1e0245(0x95f),'type':_0x1e0245(0x2926),'defaultValue':'1','values':[{'option':_0x1e0245(0x1abb),'value':'1'},{'option':_0x1e0245(0xfdd),'value':'0'}],'required':!![],'param':0x0},{'title':_0x1e0245(0x1378),'name':_0x1e0245(0x39b),'type':'html','required':!![],'param':0x1}]},{'app':'close','appType':_0x1e0245(0x67b),'type':_0x1e0245(0x67b),'icon':_0x1e0245(0xd46),'interval':_0x1e0245(0x2145),'isApp':!![],'fields':[{'title':'Disposition','name':_0x1e0245(0x168b),'type':_0x1e0245(0x39b),'required':!![],'param':0x0}]},{'app':_0x1e0245(0xac8),'appType':_0x1e0245(0xac8),'type':'tag','foreignKey':_0x1e0245(0x923),'icon':'icon-apps','interval':_0x1e0245(0x2145),'isApp':!![],'extraApi':[{'name':_0x1e0245(0x16a6),'field':{'name':_0x1e0245(0xac8),'key':'name'},'route':'tag','filters':{'fields':'id,name','sort':_0x1e0245(0x2494),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x1e0245(0x1e9f),'name':'tag','type':'apiselect','values':_0x1e0245(0x16a6),'value':'tag.name','option':'tag.name','required':!![],'param':0x0}]}],[_0x1e0245(0x16e1)]),{'isApp':![]}),_0x324ffc[_0x1e0245(0x2764)]={'group':{'name':_0x1e0245(0x7f2),'pull':'clone'},'animation':0x64,'sort':![]},_0x324ffc['applications']={'group':{'name':_0x1e0245(0x3a8),'put':_0x1e0245(0x7f2)},'animation':0x64,'onAdd':function(_0x143f47){const _0x33756b=_0x1e0245;_0x3dab84(_0x143f47,_0x143f47[_0x33756b(0xa3e)]);},'onSort':function(){_0x33e858();}},_0x324ffc[_0x1e0245(0x2354)]=_0x102d68,_0x324ffc[_0x1e0245(0x217e)]=_0x59c5c2,_0x324ffc[_0x1e0245(0x293f)]=_0x3c89ef,_0x324ffc[_0x1e0245(0x18ec)]=_0x3dab84,_0x324ffc[_0x1e0245(0x2427)]=_0x42ebc9,_0x324ffc[_0x1e0245(0x1ff0)]=_0x553c04,_0x324ffc[_0x1e0245(0x507)]=_0x1abe7f,_0x324ffc[_0x1e0245(0x14d0)]=_0x33e858,_0x324ffc[_0x1e0245(0x1039)]=_0x55909f;function _0x102d68(_0x5ac66f,_0x18de32){const _0x9528e1=_0x1e0245;_0x324ffc[_0x9528e1(0x1b1e)]=_0x5ac66f,_0x324ffc[_0x9528e1(0x402)]=typeof _0x18de32!==_0x9528e1(0x19a1)?_0x18de32:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x324ffc['applications'][_0x9528e1(0x1a95)]=!_0x324ffc[_0x9528e1(0x402)][_0x9528e1(0xd86)]?!![]:![],_0x324ffc[_0x9528e1(0x289a)]['id']=_0x5ac66f['id'],_0x324ffc[_0x9528e1(0x289a)][_0x9528e1(0x210d)]=!![],_0x324ffc[_0x9528e1(0x289a)][_0x9528e1(0x13d8)]=!![],_0x324ffc['getMailAccountApps'](),_0x324ffc[_0x9528e1(0x1039)]();}function _0x59c5c2(_0x17ef9b,_0x269927,_0x29922e){const _0x3ba5d8=_0x1e0245,_0x17bc9c=_0x487e7b[_0x3ba5d8(0x856)]()[_0x3ba5d8(0x2021)](_0x3ba5d8(0x2041))[_0x3ba5d8(0x33a)](''+_0x17ef9b[_0x3ba5d8(0x16e1)]+''+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x3ba5d8(0x1260))[_0x3ba5d8(0x2283)](_0x29922e)['ok']('OK')[_0x3ba5d8(0x101a)]('CANCEL');_0x487e7b[_0x3ba5d8(0xa60)](_0x17bc9c)[_0x3ba5d8(0x64a)](function(){const _0x549452=_0x3ba5d8;_0x324ffc[_0x549452(0x18a5)][_0x549452(0x28b8)][_0x549452(0x18f0)](_0x269927,0x1),_0x33e858();},function(){const _0x40522c=_0x3ba5d8;console[_0x40522c(0x9b4)]('CANCEL');});}function _0x3dab84(_0x33af99,_0x37b075){const _0x1fe184=_0x1e0245;if(_0x324ffc[_0x1fe184(0x18a5)]['rows'][_0x1fe184(0x1b9e)]){const _0x13b7f4=_0x324ffc['mailAccountApps'][_0x1fe184(0x28b8)][_0x37b075]?_0x324ffc['mailAccountApps'][_0x1fe184(0x28b8)][_0x37b075]:_0x324ffc[_0x1fe184(0x18a5)][_0x1fe184(0x28b8)][0x0],_0x4b2728=(_0x13b7f4[_0x1fe184(0x4f4)]||_0x13b7f4[_0x1fe184(0x16e1)])['toLowerCase']();_0x487e7b[_0x1fe184(0xa60)]({'controller':_0x1fe184(0xa1a)+_0x4b2728+'DialogController','controllerAs':'vm','templateUrl':_0x16b07c[_0x4b2728],'parent':angular[_0x1fe184(0x1f81)](_0x37af3f['body']),'targetEvent':_0x33af99,'clickOutsideToClose':!![],'locals':{'mailAccountApp':_0x13b7f4,'mailAccount':_0x324ffc[_0x1fe184(0x1b1e)],'crudPermissions':_0x324ffc[_0x1fe184(0x402)]}})[_0x1fe184(0x64a)](function(_0x556a82){const _0x3b4077=_0x1fe184;_0x556a82&&(_0x556a82['id']?_0x324ffc[_0x3b4077(0x18a5)][_0x3b4077(0x28b8)][_0x37b075]=_0x556a82:_0x324ffc[_0x3b4077(0x18a5)][_0x3b4077(0x28b8)][_0x3b4077(0x18f0)](_0x37b075,0x0,_0x556a82),_0x33e858());})['catch'](function(_0x51f7ba){const _0x3fe851=_0x1fe184;_0x51f7ba&&_0x27be01[_0x3fe851(0x1bd0)]({'title':_0x51f7ba['status']?_0x3fe851(0x575)+_0x51f7ba[_0x3fe851(0x10b3)]+_0x3fe851(0x21db)+_0x51f7ba[_0x3fe851(0x2115)]:'SYSTEM:EDITMODALSHOW','msg':_0x51f7ba['data']?JSON['stringify'](_0x51f7ba['data']):_0x51f7ba[_0x3fe851(0x2915)]()});});}}function _0x42ebc9(_0x794cc3,_0x472c90){const _0x5c222e=_0x1e0245;if(_0x324ffc[_0x5c222e(0x18a5)]['rows'][_0x5c222e(0x1b9e)]){const _0x33cfa4=_0x324ffc[_0x5c222e(0x18a5)][_0x5c222e(0x28b8)][_0x472c90]?_0x324ffc['mailAccountApps'][_0x5c222e(0x28b8)][_0x472c90]:_0x324ffc['mailAccountApps'][_0x5c222e(0x28b8)][0x0];_0x487e7b[_0x5c222e(0xa60)]({'controller':_0x5c222e(0x1404),'controllerAs':'vm','templateUrl':_0xce45db,'parent':angular[_0x5c222e(0x1f81)](_0x37af3f[_0x5c222e(0xb49)]),'targetEvent':_0x794cc3,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x33cfa4['interval'],'IntervalId':_0x33cfa4[_0x5c222e(0xb71)],'application':!![]},'intervals':[],'crudPermissions':_0x324ffc['crudPermissions']}})[_0x5c222e(0x64a)](function(_0x4326bf){const _0x37e265=_0x5c222e;_0x4326bf&&(_0x33cfa4[_0x37e265(0xcfd)]=_0x4326bf[_0x37e265(0xcfd)]||_0x37e265(0x2145),_0x33cfa4[_0x37e265(0xb71)]=_0x4326bf[_0x37e265(0xb71)]||null,_0x33e858());});}}function _0x33e858(){const _0x5be078=_0x1e0245;let _0x56dc0b=0x1,_0x49fa7c=[];for(let _0x2a7741=0x0;_0x2a7741<_0x324ffc['mailAccountApps'][_0x5be078(0x28b8)][_0x5be078(0x1b9e)];_0x2a7741++){const _0x10ee88=_0x324ffc[_0x5be078(0x18a5)]['rows'][_0x2a7741],_0x3778db=[],_0x3c7ed8=[];_0x10ee88[_0x5be078(0x15e4)]=_0x10ee88[_0x5be078(0xcfd)]!==_0x5be078(0x2145)?[_0x10ee88[_0x5be078(0xcfd)]]:_0x10ee88[_0x5be078(0xb71)]?_0x28c606()['map'](_0x28c606()[_0x5be078(0xcec)](_0x324ffc[_0x5be078(0x15e4)][_0x5be078(0x28b8)],{'IntervalId':_0x10ee88['IntervalId']}),'interval'):[],_0x10ee88[_0x5be078(0x139)]=_0x324ffc[_0x5be078(0x1b1e)][_0x5be078(0x139)],_0x10ee88['exten']=_0x324ffc['mailAccount'][_0x5be078(0x19c8)],_0x10ee88[_0x5be078(0x2185)]&&(_0x10ee88['type']=_0x10ee88[_0x5be078(0x2185)][_0x5be078(0x2554)]()),_0x10ee88['priority']=_0x3778db[_0x5be078(0x1b9e)]?_0x28c606()[_0x5be078(0xe62)](_0x3778db)['priority']+0x1:_0x56dc0b,_0x56dc0b=(_0x3c7ed8[_0x5be078(0x1b9e)]?_0x28c606()['last'](_0x3c7ed8)[_0x5be078(0x1095)]:_0x10ee88['priority'])+0x1,_0x49fa7c=_0x28c606()[_0x5be078(0x2808)](_0x49fa7c,_0x3778db,[_0x10ee88],_0x3c7ed8);}_0x5b06e9[_0x5be078(0x1b1e)][_0x5be078(0x1c5d)]({'id':_0x324ffc[_0x5be078(0x1b1e)]['id']},_0x28c606()[_0x5be078(0x1643)](_0x49fa7c,_0x5be078(0x1095)))[_0x5be078(0x15e7)]['then'](function(_0x28393b){const _0x29cd4d=_0x5be078;_0x324ffc[_0x29cd4d(0x18a5)][_0x29cd4d(0x28b8)]=_0x28393b[_0x29cd4d(0x28b8)];})[_0x5be078(0x20cd)](function(_0x6d570a){console['error'](_0x6d570a);});}function _0x1be10e(_0x540190){const _0x31f54e=_0x1e0245;_0x324ffc[_0x31f54e(0x18a5)]=_0x540190||{'count':0x0,'rows':[]};}function _0x55909f(){const _0x57cd9f=_0x1e0245;return _0x5b06e9[_0x57cd9f(0xcfd)]['get']({'fields':_0x57cd9f(0x1aa)})[_0x57cd9f(0x15e7)][_0x57cd9f(0x64a)](function(_0x5017eb){const _0x211294=_0x57cd9f;_0x324ffc[_0x211294(0x15e4)]=_0x5017eb;})[_0x57cd9f(0x20cd)](function(_0x20a347){const _0xfaeae4=_0x57cd9f;console[_0xfaeae4(0x1bd0)](_0x20a347);});}function _0x3c89ef(){const _0x4313c9=_0x1e0245;_0x324ffc[_0x4313c9(0x1713)]=_0x5b06e9[_0x4313c9(0x1b1e)][_0x4313c9(0x42f)](_0x324ffc[_0x4313c9(0x289a)],_0x1be10e)[_0x4313c9(0x15e7)];}function _0x553c04(_0x3f9219){const _0x326410=_0x1e0245;_0x28c606()[_0x326410(0x21c7)](_0x324ffc['mailAccountApps']['rows'],{'id':_0x3f9219['id']}),_0x33e858(),_0x27be01[_0x326410(0x1339)]({'title':_0x326410(0x2166),'msg':_0x3f9219['app']?_0x3f9219[_0x326410(0x16e1)]+'\x20has\x20been\x20deleted!':''});}function _0x1abe7f(_0x25d386){const _0x461c9b=_0x1e0245,_0x16ef2c=_0x487e7b[_0x461c9b(0x856)]()[_0x461c9b(0x2021)](_0x461c9b(0x150d))[_0x461c9b(0x33a)](_0x461c9b(0x50b)+_0x324ffc['selectedMailAccountApps'][_0x461c9b(0x1b9e)]+'\x20selected
'+'\x20will\x20be\x20deleted.')[_0x461c9b(0x213e)]('delete\x20applications')[_0x461c9b(0x2283)](_0x25d386)['ok']('OK')[_0x461c9b(0x101a)](_0x461c9b(0x18fd));_0x487e7b['show'](_0x16ef2c)[_0x461c9b(0x64a)](function(){const _0x34b35b=_0x461c9b;_0x324ffc[_0x34b35b(0xeb6)]['forEach'](function(_0x5d78f3){const _0x204905=_0x34b35b;_0x28c606()['remove'](_0x324ffc[_0x204905(0x18a5)]['rows'],{'id':_0x5d78f3['id']});}),_0x324ffc[_0x34b35b(0xeb6)]=[],_0x33e858();});}}const _0x1b1f65=_0x32f65d;;_0x705dd9[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa19),'mailAccount',_0x49a1e3(0x2435),_0x49a1e3(0x252e),_0x49a1e3(0x298c),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x705dd9(_0x1e1402,_0x317728,_0x3dabc0,_0xffe4bd,_0x33f2cf,_0x1cdb3f,_0x3e6e77,_0x530c0d,_0x51e214,_0x1f2251){const _0x1f4107=_0x49a1e3,_0x1008c8=this;_0x1008c8[_0x1f4107(0x1d3d)]=_0x51e214[_0x1f4107(0x808)](),_0x1008c8[_0x1f4107(0x1b1e)]=_0x33f2cf,_0x1008c8[_0x1f4107(0x402)]=_0x1f2251,_0x1008c8[_0x1f4107(0x252e)]=_0x3e6e77,_0x1008c8[_0x1f4107(0x23cb)]=[],_0x1008c8['allowedItems']=[],_0x1008c8[_0x1f4107(0x1f4f)]=[],_0x1008c8['startingAllowedItems']=[],_0x1008c8[_0x1f4107(0x24e1)]=[],_0x1008c8['pendingChanges']=![],_0x1008c8[_0x1f4107(0x2483)]=_0x422e2d,_0x1008c8[_0x1f4107(0x4c4)]=_0x2824ff,_0x1008c8[_0x1f4107(0x16cb)]=_0x1ffee0,_0x1008c8[_0x1f4107(0x1eeb)]={'readOnly':!_0x1008c8[_0x1f4107(0x402)][_0x1f4107(0xd86)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x1f4107(0x2494),'line1':_0x1f4107(0x15c),'line2':['name',_0x1f4107(0xe2f)],'line3':'','labelAll':_0x530c0d[_0x1f4107(0x2292)](_0x1f4107(0x1da4)),'labelSelected':_0x530c0d[_0x1f4107(0x2292)](_0x1f4107(0xcf8)),'transferCallback':function(){const _0x49e4f5=_0x1f4107,_0x533fab=_0x28c606()[_0x49e4f5(0x1ad)](_0x1008c8[_0x49e4f5(0x24e1)],_0x1008c8[_0x49e4f5(0x1f4f)],'id');_0x1008c8[_0x49e4f5(0xe9e)]=_0x28c606()[_0x49e4f5(0x940)](_0x533fab)?![]:!![];}};function _0x422e2d(){const _0xe5782d=_0x1f4107;return _0x51e214[_0xe5782d(0x4de)](_0xe5782d(0x333))?_0x11befa()['catch'](function(_0x496299){const _0x28dc43=_0xe5782d;_0x3dabc0[_0x28dc43(0x1bd0)]({'title':_0x496299['status']?'API:'+_0x496299[_0x28dc43(0x10b3)]+_0x28dc43(0x21db)+_0x496299[_0x28dc43(0x2115)]:'SYSTEM:GET_AGENTS','msg':_0x496299[_0x28dc43(0x10b3)]?JSON[_0x28dc43(0x2317)](_0x496299[_0x28dc43(0x1c52)]):_0x496299['toString']()});}):_0x2dcae8()[_0xe5782d(0x64a)](function(_0x4f584b){return _0x1008c8['section']=_0x4f584b,_0x11befa();})['catch'](function(_0x50ca5e){const _0x42f1c6=_0xe5782d;_0x3dabc0[_0x42f1c6(0x1bd0)]({'title':_0x50ca5e[_0x42f1c6(0x10b3)]?'API:'+_0x50ca5e[_0x42f1c6(0x10b3)]+'\x20-\x20'+_0x50ca5e['statusText']:_0x42f1c6(0x554),'msg':_0x50ca5e['status']?JSON['stringify'](_0x50ca5e['data']):_0x50ca5e['toString']()});});}function _0x2dcae8(){return _0x317728(function(_0x5bf9c5,_0x13bc2b){const _0x19ad7f=a0_0x4127;_0xffe4bd[_0x19ad7f(0x16b2)][_0x19ad7f(0x896)]({'userProfileId':_0x1008c8['currentUser'][_0x19ad7f(0x21ac)],'name':_0x19ad7f(0x2132)})[_0x19ad7f(0x15e7)][_0x19ad7f(0x64a)](function(_0xe0bb55){const _0x1b0898=_0xe0bb55&&_0xe0bb55['rows']?_0xe0bb55['rows'][0x0]:null;_0x5bf9c5(_0x1b0898);})[_0x19ad7f(0x20cd)](function(_0x109efc){_0x13bc2b(_0x109efc);});});}function _0x11befa(){return _0x317728(function(_0x4115c3,_0xba99b0){const _0x22a2fe=a0_0x4127;return _0x59559c()[_0x22a2fe(0x64a)](function(_0x430707){const _0xc34433=_0x22a2fe;return _0x1008c8['items']=_0x430707[_0xc34433(0x28b8)]?_0x430707[_0xc34433(0x28b8)]:[],_0x51e214[_0xc34433(0x4de)](_0xc34433(0x333))?_0x430707:_0x1008c8['section']?_0x1008c8[_0xc34433(0xa21)]['autoAssociation']?_0x430707:_0x30d99b():null;})[_0x22a2fe(0x64a)](function(_0xe4be3d){const _0x4363b8=_0x22a2fe,_0x1110b8=_0xe4be3d&&_0xe4be3d['rows']?_0xe4be3d[_0x4363b8(0x28b8)]:[];return _0x1008c8[_0x4363b8(0x13d1)]=_0x28c606()['map'](_0x1110b8,function(_0x37b486){const _0x5cd038=_0x4363b8;return _0x28c606()[_0x5cd038(0x27bc)](_0x1008c8[_0x5cd038(0x23cb)],{'id':_0x51e214[_0x5cd038(0x4de)]('admin')||_0x1008c8[_0x5cd038(0xa21)][_0x5cd038(0x11da)]?_0x37b486['id']:_0x37b486['resourceId']});}),_0x1008c8['startingAllowedItems']=angular[_0x4363b8(0x289e)](_0x1008c8[_0x4363b8(0x13d1)]),_0x1008c8[_0x4363b8(0x23cb)][_0x4363b8(0x1397)](function(_0x424a8d){const _0x3503d6=_0x4363b8,_0x2172ff=_0x28c606()[_0x3503d6(0x27bc)](_0x1008c8[_0x3503d6(0x13d1)],{'id':_0x424a8d['id']});_0x51e214[_0x3503d6(0x4de)](_0x3503d6(0x333))?_0x424a8d['isValid']=!![]:_0x424a8d[_0x3503d6(0x6f9)]=typeof _0x2172ff!==_0x3503d6(0x19a1)?!![]:![];}),_0x516b71();})[_0x22a2fe(0x64a)](function(_0x51735e){const _0x325f4a=_0x22a2fe,_0x41b041=_0x51735e&&_0x51735e['rows']?_0x51735e[_0x325f4a(0x28b8)]:[];_0x1008c8['selectedItems']=_0x28c606()[_0x325f4a(0x1de5)](_0x41b041,function(_0x3aea1a){const _0x593484=_0x325f4a,_0x5c2d58=_0x28c606()[_0x593484(0x27bc)](_0x1008c8[_0x593484(0x23cb)],{'id':_0x3aea1a['id']});return _0x5c2d58[_0x593484(0x70f)]=_0x3aea1a[_0x593484(0xae1)]?_0x593484(0xcff)+_0x3aea1a[_0x593484(0xae1)][_0x593484(0x70f)]:'',_0x5c2d58['internal']=typeof _0x3aea1a[_0x593484(0xe2f)]!=='undefined'?'<'+_0x3aea1a[_0x593484(0xe2f)]+'>':'',_0x5c2d58;}),_0x1008c8[_0x325f4a(0x24e1)]=angular[_0x325f4a(0x289e)](_0x1008c8[_0x325f4a(0x1f4f)]),_0x1008c8[_0x325f4a(0x1eeb)]['selectedItems']=_0x1008c8[_0x325f4a(0x1f4f)],_0x1008c8[_0x325f4a(0x1eeb)][_0x325f4a(0x23cb)]=_0x28c606()[_0x325f4a(0x23e5)](_0x1008c8['allowedItems'],_0x1008c8[_0x325f4a(0x1eeb)][_0x325f4a(0x1f4f)],'id'),_0x4115c3();})['catch'](function(_0x2c9708){_0xba99b0(_0x2c9708);});});}function _0x30d99b(){return _0x317728(function(_0x291dc8,_0x3644cb){const _0x2f503f=a0_0x4127;return _0xffe4bd[_0x2f503f(0x1617)][_0x2f503f(0x896)]({'sectionId':_0x1008c8[_0x2f503f(0xa21)]['id'],'nolimit':!![]})[_0x2f503f(0x15e7)][_0x2f503f(0x64a)](function(_0xed2cd9){_0x291dc8(_0xed2cd9);})[_0x2f503f(0x20cd)](function(_0x9ac59f){_0x3644cb(_0x9ac59f);});});}function _0x516b71(){return _0x317728(function(_0x158050,_0x29a28f){const _0x33f76e=a0_0x4127;return _0xffe4bd[_0x33f76e(0x1b1e)][_0x33f76e(0xa10)]({'id':_0x1008c8['mailAccount']['id'],'fields':_0x33f76e(0x2105),'nolimit':!![],'role':'agent'})[_0x33f76e(0x15e7)]['then'](function(_0x2ad807){_0x158050(_0x2ad807);})['catch'](function(_0xd80ac7){_0x29a28f(_0xd80ac7);});});}function _0x59559c(){return _0x317728(function(_0x48a256,_0x22222c){const _0xf2c529=a0_0x4127;return _0xffe4bd['user'][_0xf2c529(0x896)]({'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0xf2c529(0x15e7)]['then'](function(_0x510492){_0x48a256(_0x510492);})[_0xf2c529(0x20cd)](function(_0x1adba7){_0x22222c(_0x1adba7);});});}function _0xea4ebd(_0x479a31){return _0x317728(function(_0x4240b4,_0x57c923){const _0x2bc740=a0_0x4127;_0x28c606()[_0x2bc740(0x940)](_0x479a31)?_0x4240b4():_0xffe4bd[_0x2bc740(0x1b1e)]['addAgents']({'id':_0x1008c8[_0x2bc740(0x1b1e)]['id'],'ids':_0x28c606()['map'](_0x479a31,'id')})['$promise'][_0x2bc740(0x64a)](function(){_0x4240b4();})[_0x2bc740(0x20cd)](function(_0x1e89fb){_0x57c923(_0x1e89fb);});});}function _0xe90106(_0x1eb4fa){return _0x317728(function(_0x5b2d2d,_0x508732){const _0x1dc7d6=a0_0x4127;_0x28c606()['isEmpty'](_0x1eb4fa)?_0x5b2d2d():_0xffe4bd[_0x1dc7d6(0x1b1e)]['removeAgents']({'id':_0x1008c8[_0x1dc7d6(0x1b1e)]['id'],'ids':_0x28c606()[_0x1dc7d6(0x1de5)](_0x1eb4fa,'id')})[_0x1dc7d6(0x15e7)][_0x1dc7d6(0x64a)](function(){_0x5b2d2d();})[_0x1dc7d6(0x20cd)](function(_0x10c374){_0x508732(_0x10c374);});});}function _0x2824ff(){const _0xe37d17=_0x1f4107,_0x387126=_0x28c606()[_0xe37d17(0x23e5)](_0x1008c8[_0xe37d17(0x24e1)],_0x1008c8[_0xe37d17(0x1f4f)],'id'),_0x52cad6=_0x28c606()[_0xe37d17(0x23e5)](_0x1008c8[_0xe37d17(0x1f4f)],_0x1008c8[_0xe37d17(0x24e1)],'id');return _0xe90106(_0x387126)[_0xe37d17(0x64a)](function(){return _0xea4ebd(_0x52cad6);})[_0xe37d17(0x64a)](function(){const _0xd1b7fc=_0xe37d17;_0x1008c8[_0xd1b7fc(0xe9e)]=![],_0x1008c8[_0xd1b7fc(0x206b)]=angular[_0xd1b7fc(0x289e)](_0x1008c8[_0xd1b7fc(0x13d1)]),_0x1008c8[_0xd1b7fc(0x24e1)]=angular[_0xd1b7fc(0x289e)](_0x1008c8[_0xd1b7fc(0x1f4f)]),_0x3dabc0['success']({'title':_0xd1b7fc(0x24d6),'msg':_0xd1b7fc(0x1db)});})[_0xe37d17(0x20cd)](function(_0x228bb0){const _0x5e57a2=_0xe37d17;_0x3dabc0['error']({'title':_0x228bb0[_0x5e57a2(0x10b3)]?'API:'+_0x228bb0[_0x5e57a2(0x10b3)]+_0x5e57a2(0x21db)+_0x228bb0[_0x5e57a2(0x2115)]:_0x5e57a2(0x1226),'msg':_0x228bb0[_0x5e57a2(0x10b3)]?JSON[_0x5e57a2(0x2317)](_0x228bb0[_0x5e57a2(0x1c52)]):_0x228bb0[_0x5e57a2(0x2915)]()});});}function _0x1ffee0(){_0x1e1402['hide']();}}const _0x3c9364=_0x705dd9;;_0x2540a2[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x9bd),_0x49a1e3(0x1b1e),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x2540a2(_0x381422,_0x48ab0a,_0x4e8238,_0x192aaf,_0x40dbc0,_0x16a8bb,_0x121ead,_0x590d9b){const _0x27df5c=_0x49a1e3,_0xa5ee01=this;_0xa5ee01[_0x27df5c(0x1d3d)]=_0x121ead[_0x27df5c(0x808)](),_0xa5ee01[_0x27df5c(0xbae)]=[],_0xa5ee01['title']=_0x27df5c(0x273e)+(_0x192aaf['appType']||_0x192aaf[_0x27df5c(0x16e1)])[_0x27df5c(0xa3c)](),_0xa5ee01[_0x27df5c(0x11ae)]=angular[_0x27df5c(0x289e)](_0x192aaf),_0xa5ee01[_0x27df5c(0x402)]=_0x590d9b,_0xa5ee01[_0x27df5c(0x6c2)]={};if(_0xa5ee01['agent'][_0x27df5c(0xacb)])switch(_0xa5ee01[_0x27df5c(0x11ae)]['appType']?_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0x4f4)]['toLowerCase']():_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0x16e1)][_0x27df5c(0x2554)]()){case _0x27df5c(0x1ad6):break;case'dialogflow':{const _0x17b4ec=_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0xacb)][_0x27df5c(0x282c)](',');_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0x2125)]=_0x17b4ec[0x0],_0xa5ee01['agent'][_0x27df5c(0x1cbd)]=_0x17b4ec[0x1],_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0x31b)]=_0x17b4ec[_0x27df5c(0x142e)](0x2,_0x17b4ec[_0x27df5c(0x1b9e)])[_0x27df5c(0x9a6)](',');}break;case _0x27df5c(0x1b1a):{const _0x7e1af9=_0xa5ee01['agent'][_0x27df5c(0xacb)]['split'](',');_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0xbfd)]=_0x7e1af9[0x0],_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0x4b2)]=_0x7e1af9[0x1],_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0x1b1b)]=_0x7e1af9[0x2],_0xa5ee01['agent'][_0x27df5c(0x1cbd)]=_0x7e1af9[0x3],_0xa5ee01['agent'][_0x27df5c(0x31b)]=_0x7e1af9[_0x27df5c(0x142e)](0x4,_0x7e1af9[_0x27df5c(0x1b9e)])[_0x27df5c(0x9a6)](',');}break;case'amazonlex':{const _0xcaedf=_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0xacb)][_0x27df5c(0x282c)](',');_0xa5ee01['agent'][_0x27df5c(0x1466)]=_0xcaedf[0x0],_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0x1b1)]=_0xcaedf[0x1],_0xa5ee01['agent'][_0x27df5c(0x17a2)]=_0xcaedf[0x2],_0xa5ee01['agent'][_0x27df5c(0x2797)]=_0xcaedf[0x3],_0xa5ee01['agent'][_0x27df5c(0x31b)]=_0xcaedf[_0x27df5c(0x142e)](0x4,_0xcaedf[_0x27df5c(0x1b9e)])[_0x27df5c(0x9a6)](',');}break;case'autoreply':{const _0x2fbae6=_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0xacb)]['split'](',');_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0x95f)]=isNaN(_0x2fbae6[0x0])?_0x2fbae6[0x0]:parseInt(_0x2fbae6[0x0],0xa),_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0x39b)]=_0x2fbae6['slice'](0x1,_0x2fbae6[_0x27df5c(0x1b9e)])[_0x27df5c(0x9a6)](',');}break;case _0x27df5c(0x18ca):_0xa5ee01[_0x27df5c(0x11ae)]['text']=_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0xacb)];break;case _0x27df5c(0x1979):_0xa5ee01[_0x27df5c(0x11ae)]['name']=_0xa5ee01['agent']['appdata'][_0x27df5c(0x282c)]('=')[0x0],_0xa5ee01['agent'][_0x27df5c(0x1096)]=_0xa5ee01[_0x27df5c(0x11ae)]['appdata'][_0x27df5c(0x282c)]('=')[0x1];break;case _0x27df5c(0x1e67):_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0x1bd9)]=_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0xacb)];break;default:{const _0x2c47da=_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0xacb)]['split'](',');_0xa5ee01['agent'][_0x27df5c(0x11ae)]=_0x28c606()[_0x27df5c(0x940)](_0x2c47da[0x0])?_0x2c47da[0x0]:isNaN(_0x2c47da[0x0])?_0x2c47da[0x0]:parseInt(_0x2c47da[0x0],0xa),_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0x16d)]=_0x28c606()['isEmpty'](_0x2c47da[0x1])?_0x2c47da[0x1]:isNaN(_0x2c47da[0x1])?_0x2c47da[0x1]:parseInt(_0x2c47da[0x1],0xa);}break;}else _0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0x16d)]=0x1e;_0xa5ee01['agent']['type']&&_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0x2185)]['toLowerCase']()===_0x27df5c(0xbce)&&_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0x4f4)][_0x27df5c(0x2554)]()===_0x27df5c(0x20eb)&&(_0xa5ee01['agent'][_0x27df5c(0x2524)]=_0xa5ee01[_0x27df5c(0x11ae)]['phone']?_0xa5ee01[_0x27df5c(0x11ae)]['phone'][_0x27df5c(0x282c)]('$')[0x0]:undefined,_0xa5ee01[_0x27df5c(0x11ae)]['callerId']=_0xa5ee01[_0x27df5c(0x11ae)][_0x27df5c(0x1abe)]?_0x27df5c(0x2489)+_0xa5ee01['agent'][_0x27df5c(0x1abe)]:undefined);_0xa5ee01[_0x27df5c(0x1b31)]=_0x215e72,_0xa5ee01[_0x27df5c(0x16cb)]=_0xe63072,_0x121ead[_0x27df5c(0x4de)](_0x27df5c(0x333))?_0x16a8bb[_0x27df5c(0x2e8)][_0x27df5c(0x896)]({'fields':_0x27df5c(0x1427),'sort':'name','nolimit':_0x27df5c(0x1685),'role':_0x27df5c(0x11ae)})[_0x27df5c(0x15e7)][_0x27df5c(0x64a)](function(_0x35df0b){const _0x5cabcd=_0x27df5c;_0xa5ee01[_0x5cabcd(0xd77)]=_0x35df0b[_0x5cabcd(0x28b8)]||[];})[_0x27df5c(0x20cd)](function(_0xad3ae3){const _0xdb7a8a=_0x27df5c;_0x4e8238[_0xdb7a8a(0x1bd0)]({'title':_0xad3ae3['status']?_0xdb7a8a(0x575)+_0xad3ae3[_0xdb7a8a(0x10b3)]+_0xdb7a8a(0x21db)+_0xad3ae3[_0xdb7a8a(0x2115)]:_0xdb7a8a(0x554),'msg':_0xad3ae3[_0xdb7a8a(0x1c52)]?JSON[_0xdb7a8a(0x2317)](_0xad3ae3[_0xdb7a8a(0x1c52)]):_0xad3ae3[_0xdb7a8a(0x2915)]()});}):_0x16a8bb[_0x27df5c(0x2e8)][_0x27df5c(0x896)]({'fields':_0x27df5c(0x1427),'sort':'name','nolimit':_0x27df5c(0x1685),'role':'agent'})[_0x27df5c(0x15e7)]['then'](function(_0x50d1e0){const _0x7f8292=_0x27df5c;_0xa5ee01[_0x7f8292(0xd77)]=_0x50d1e0[_0x7f8292(0x28b8)]||[];})[_0x27df5c(0x64a)](function(){const _0x4a6a9a=_0x27df5c;return _0x16a8bb[_0x4a6a9a(0x16b2)][_0x4a6a9a(0x896)]({'userProfileId':_0xa5ee01[_0x4a6a9a(0x1d3d)][_0x4a6a9a(0x21ac)],'sectionId':0xca})['$promise'];})[_0x27df5c(0x64a)](function(_0x18175f){const _0x5d1f4f=_0x27df5c,_0xdd67a3=_0x18175f&&_0x18175f['rows']?_0x18175f[_0x5d1f4f(0x28b8)][0x0]:null;if(!_0xdd67a3){const _0x4b1f0c=[];let _0xb0b90d=null;_0xa5ee01['agent']&&(_0xb0b90d=_0x28c606()[_0x5d1f4f(0x27bc)](_0xa5ee01[_0x5d1f4f(0xd77)],{'name':_0xa5ee01[_0x5d1f4f(0x11ae)][_0x5d1f4f(0x11ae)]}));for(let _0x432068=0x0;_0x432068<_0xa5ee01[_0x5d1f4f(0xd77)][_0x5d1f4f(0x1b9e)];_0x432068++){_0xb0b90d&&_0xa5ee01[_0x5d1f4f(0xd77)][_0x432068]['id']===_0xb0b90d['id']&&(_0xa5ee01[_0x5d1f4f(0xd77)][_0x432068]['canSelect']=![],_0x4b1f0c[_0x5d1f4f(0x1954)](_0xa5ee01[_0x5d1f4f(0xd77)][_0x432068]));}_0xa5ee01[_0x5d1f4f(0xd77)]=_0x4b1f0c;}else{if(!_0xdd67a3['autoAssociation'])return _0x16a8bb[_0x5d1f4f(0x1617)][_0x5d1f4f(0x896)]({'sectionId':_0xdd67a3['id']})['$promise']['then'](function(_0xaaa8c4){const _0x709673=_0x5d1f4f,_0x28d4c2=_0x28c606()[_0x709673(0x1de5)](_0xaaa8c4[_0x709673(0x28b8)],function(_0x464ba7){const _0x15ff0f=_0x709673;return _0x28c606()[_0x15ff0f(0x27bc)](_0xa5ee01[_0x15ff0f(0xd77)],{'id':_0x464ba7['resourceId']});});let _0x547b20=null;_0xa5ee01[_0x709673(0x11ae)]&&(_0x547b20=_0x28c606()[_0x709673(0x27bc)](_0xa5ee01[_0x709673(0xd77)],{'name':_0xa5ee01[_0x709673(0x11ae)][_0x709673(0x11ae)]}));if(_0x547b20&&!_0x28c606()['some'](_0x28d4c2,['id',_0x547b20['id']])){const _0x10e605=_0x28c606()[_0x709673(0x27bc)](_0xa5ee01[_0x709673(0xd77)],{'id':_0x547b20['id']});_0x10e605[_0x709673(0xd4f)]=![],_0x28d4c2[_0x709673(0x1954)](_0x10e605);}_0xa5ee01['agents']=_0x28d4c2;});}})[_0x27df5c(0x20cd)](function(_0x3ffa56){const _0x245338=_0x27df5c;_0x4e8238['error']({'title':_0x3ffa56[_0x245338(0x10b3)]?_0x245338(0x575)+_0x3ffa56['status']+_0x245338(0x21db)+_0x3ffa56[_0x245338(0x2115)]:_0x245338(0x1ff1),'msg':_0x3ffa56[_0x245338(0x1c52)]?JSON[_0x245338(0x2317)](_0x3ffa56['data']):_0x3ffa56[_0x245338(0x2915)]()});});function _0x215e72(){const _0x11aca6=_0x27df5c;_0xa5ee01[_0x11aca6(0xbae)]=[];const _0x2266b1=[];_0xa5ee01[_0x11aca6(0x11ae)][_0x11aca6(0x2185)]&&_0xa5ee01[_0x11aca6(0x11ae)][_0x11aca6(0x2185)][_0x11aca6(0x2554)]()===_0x11aca6(0xbce)&&_0xa5ee01['agent'][_0x11aca6(0x4f4)]==='outboundDial'&&(_0xa5ee01[_0x11aca6(0x11ae)][_0x11aca6(0x267a)]=_0x40dbc0[_0x11aca6(0x242b)]?(_0xa5ee01[_0x11aca6(0x11ae)][_0x11aca6(0x2524)]||'')+_0x11aca6(0x1a75)+_0x40dbc0['cutdigits']+'}':(_0xa5ee01[_0x11aca6(0x11ae)][_0x11aca6(0x2524)]||'')+'${EXTEN}',_0x40dbc0[_0x11aca6(0x1097)]!==_0x11aca6(0x2507)?_0xa5ee01[_0x11aca6(0x11ae)][_0x11aca6(0x59e)][_0x11aca6(0x1b28)](_0x11aca6(0x13e0))<0x0&&(_0xa5ee01[_0x11aca6(0x11ae)]['options']+=_0x11aca6(0x13e0)):_0xa5ee01[_0x11aca6(0x11ae)][_0x11aca6(0x59e)]=_0xa5ee01[_0x11aca6(0x11ae)][_0x11aca6(0x59e)][_0x11aca6(0x1353)]('U(xcally-mixmonitor-context)',''));const _0x51ea85=_0x28c606()[_0x11aca6(0x27bc)](_0xa5ee01[_0x11aca6(0xd77)],{'name':_0xa5ee01[_0x11aca6(0x11ae)][_0x11aca6(0x11ae)]});_0x51ea85&&(_0xa5ee01[_0x11aca6(0x11ae)][_0x11aca6(0x246c)]=_0x51ea85['id']);if(_0xa5ee01[_0x11aca6(0x11ae)][_0x11aca6(0x4f4)]&&_0xa5ee01[_0x11aca6(0x11ae)]['appType']===_0x11aca6(0x1ad6)){}else switch((_0xa5ee01[_0x11aca6(0x11ae)][_0x11aca6(0x16e1)]||_0xa5ee01[_0x11aca6(0x11ae)][_0x11aca6(0x4f4)])['toLowerCase']()){case _0x11aca6(0x1979):_0xa5ee01['agent']['appdata']=_0xa5ee01[_0x11aca6(0x11ae)][_0x11aca6(0x2494)]+'='+_0xa5ee01[_0x11aca6(0x11ae)][_0x11aca6(0x1096)];break;case'custom':break;default:_0x2266b1[0x0]=_0xa5ee01['agent']['agent'],_0x2266b1[0x1]=_0xa5ee01[_0x11aca6(0x11ae)][_0x11aca6(0x16d)],_0xa5ee01[_0x11aca6(0x11ae)][_0x11aca6(0xacb)]=_0x2266b1['join'](',');}_0xe63072(_0xa5ee01['agent']);}function _0xe63072(_0x2b0226){const _0x6de4ce=_0x27df5c;_0x381422[_0x6de4ce(0x268e)](_0x2b0226);}}const _0x217f5f=_0x2540a2;;_0x222a64['$inject']=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),'mailAccountApp',_0x49a1e3(0x1b1e),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x222a64(_0x531012,_0x550923,_0x465c5d,_0x5c15eb,_0x3c412a,_0xbfd935,_0x1f807,_0x5f55ad){const _0x3cc479=_0x49a1e3,_0x8b62ce=this;_0x8b62ce[_0x3cc479(0x1d3d)]=_0x1f807['getCurrentUser'](),_0x8b62ce[_0x3cc479(0xbae)]=[],_0x8b62ce[_0x3cc479(0x2021)]=_0x3cc479(0x273e)+(_0x5c15eb[_0x3cc479(0x4f4)]||_0x5c15eb[_0x3cc479(0x16e1)])[_0x3cc479(0xa3c)](),_0x8b62ce[_0x3cc479(0x21a9)]=angular['copy'](_0x5c15eb),_0x8b62ce[_0x3cc479(0x402)]=_0x5f55ad,_0x8b62ce[_0x3cc479(0x6c2)]={};if(_0x8b62ce[_0x3cc479(0x21a9)]['appdata'])switch(_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0x4f4)]?_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0x4f4)][_0x3cc479(0x2554)]():_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0x16e1)][_0x3cc479(0x2554)]()){case _0x3cc479(0x1ad6):break;case'dialogflow':{const _0x2f05df=_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0xacb)]['split'](',');_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0x2125)]=_0x2f05df[0x0],_0x8b62ce[_0x3cc479(0x21a9)]['language']=_0x2f05df[0x1],_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0x31b)]=_0x2f05df[_0x3cc479(0x142e)](0x2,_0x2f05df[_0x3cc479(0x1b9e)])[_0x3cc479(0x9a6)](',');}break;case'dialogflowv2':{const _0x1bad46=_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0xacb)][_0x3cc479(0x282c)](',');_0x8b62ce[_0x3cc479(0x21a9)]['projectId']=_0x1bad46[0x0],_0x8b62ce[_0x3cc479(0x21a9)]['clientEmail']=_0x1bad46[0x1],_0x8b62ce['autoreply'][_0x3cc479(0x1b1b)]=_0x1bad46[0x2],_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0x1cbd)]=_0x1bad46[0x3],_0x8b62ce['autoreply'][_0x3cc479(0x31b)]=_0x1bad46[_0x3cc479(0x142e)](0x4,_0x1bad46[_0x3cc479(0x1b9e)])[_0x3cc479(0x9a6)](',');}break;case'amazonlex':{const _0x4e0c74=_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0xacb)][_0x3cc479(0x282c)](',');_0x8b62ce[_0x3cc479(0x21a9)]['accesskeyid']=_0x4e0c74[0x0],_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0x1b1)]=_0x4e0c74[0x1],_0x8b62ce['autoreply']['lexregion']=_0x4e0c74[0x2],_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0x2797)]=_0x4e0c74[0x3],_0x8b62ce['autoreply']['welcomemessage']=_0x4e0c74[_0x3cc479(0x142e)](0x4,_0x4e0c74['length'])['join'](',');}break;case _0x3cc479(0x21a9):{const _0x20c1d8=_0x8b62ce[_0x3cc479(0x21a9)]['appdata'][_0x3cc479(0x282c)](',');_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0x95f)]=isNaN(_0x20c1d8[0x0])?_0x20c1d8[0x0]:parseInt(_0x20c1d8[0x0],0xa),_0x8b62ce['autoreply'][_0x3cc479(0x39b)]=_0x20c1d8[_0x3cc479(0x142e)](0x1,_0x20c1d8[_0x3cc479(0x1b9e)])['join'](',');}break;case _0x3cc479(0x18ca):_0x8b62ce[_0x3cc479(0x21a9)]['text']=_0x8b62ce[_0x3cc479(0x21a9)]['appdata'];break;case _0x3cc479(0x1979):_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0x2494)]=_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0xacb)][_0x3cc479(0x282c)]('=')[0x0],_0x8b62ce[_0x3cc479(0x21a9)]['value']=_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0xacb)]['split']('=')[0x1];break;case _0x3cc479(0x1e67):_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0x1bd9)]=_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0xacb)];break;default:{const _0x146f10=_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0xacb)][_0x3cc479(0x282c)](',');_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0x95f)]=_0x28c606()[_0x3cc479(0x940)](_0x146f10[0x0])?_0x146f10[0x0]:isNaN(_0x146f10[0x0])?_0x146f10[0x0]:parseInt(_0x146f10[0x0],0xa),_0x8b62ce['autoreply'][_0x3cc479(0x39b)]=_0x28c606()[_0x3cc479(0x940)](_0x146f10[0x1])?_0x146f10[0x1]:isNaN(_0x146f10[0x1])?_0x146f10[0x1]:parseInt(_0x146f10[0x1],0xa);}break;}else _0x8b62ce[_0x3cc479(0x21a9)]['times']=0x1;_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0x2185)]&&_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0x2185)][_0x3cc479(0x2554)]()===_0x3cc479(0xbce)&&_0x8b62ce['autoreply'][_0x3cc479(0x4f4)][_0x3cc479(0x2554)]()===_0x3cc479(0x20eb)&&(_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0x2524)]=_0x8b62ce['autoreply'][_0x3cc479(0x267a)]?_0x8b62ce[_0x3cc479(0x21a9)]['phone'][_0x3cc479(0x282c)]('$')[0x0]:undefined,_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0x1a9b)]=_0x8b62ce[_0x3cc479(0x21a9)][_0x3cc479(0x1abe)]?_0x3cc479(0x2489)+_0x8b62ce[_0x3cc479(0x21a9)]['callerID']:undefined);_0x8b62ce[_0x3cc479(0x1b31)]=_0x5b7cf0,_0x8b62ce[_0x3cc479(0x16cb)]=_0xfa9a27;function _0x5b7cf0(){const _0x220db9=_0x3cc479;_0x8b62ce[_0x220db9(0xbae)]=[];const _0xcd629f=[];_0x8b62ce[_0x220db9(0x21a9)]['type']&&_0x8b62ce[_0x220db9(0x21a9)]['type'][_0x220db9(0x2554)]()==='outbound'&&_0x8b62ce['autoreply']['appType']===_0x220db9(0x17b6)&&(_0x8b62ce[_0x220db9(0x21a9)][_0x220db9(0x267a)]=_0x3c412a[_0x220db9(0x242b)]?(_0x8b62ce[_0x220db9(0x21a9)]['prefix']||'')+_0x220db9(0x1a75)+_0x3c412a[_0x220db9(0x242b)]+'}':(_0x8b62ce[_0x220db9(0x21a9)]['prefix']||'')+'${EXTEN}',_0x3c412a[_0x220db9(0x1097)]!=='none'?_0x8b62ce[_0x220db9(0x21a9)][_0x220db9(0x59e)][_0x220db9(0x1b28)](_0x220db9(0x13e0))<0x0&&(_0x8b62ce[_0x220db9(0x21a9)][_0x220db9(0x59e)]+=_0x220db9(0x13e0)):_0x8b62ce[_0x220db9(0x21a9)][_0x220db9(0x59e)]=_0x8b62ce['autoreply'][_0x220db9(0x59e)][_0x220db9(0x1353)](_0x220db9(0x13e0),''));if(_0x8b62ce['autoreply']['appType']&&_0x8b62ce['autoreply'][_0x220db9(0x4f4)]===_0x220db9(0x1ad6)){}else switch((_0x8b62ce[_0x220db9(0x21a9)]['app']||_0x8b62ce['autoreply'][_0x220db9(0x4f4)])[_0x220db9(0x2554)]()){case _0x220db9(0x1979):_0x8b62ce[_0x220db9(0x21a9)][_0x220db9(0xacb)]=_0x8b62ce['autoreply'][_0x220db9(0x2494)]+'='+_0x8b62ce[_0x220db9(0x21a9)][_0x220db9(0x1096)];break;case _0x220db9(0x1ad6):break;default:_0xcd629f[0x0]=_0x8b62ce[_0x220db9(0x21a9)][_0x220db9(0x95f)],_0xcd629f[0x1]=_0x8b62ce[_0x220db9(0x21a9)][_0x220db9(0x39b)],_0x8b62ce['autoreply'][_0x220db9(0xacb)]=_0xcd629f[_0x220db9(0x9a6)](',');}_0xfa9a27(_0x8b62ce[_0x220db9(0x21a9)]);}function _0xfa9a27(_0x4555b7){_0x531012['hide'](_0x4555b7);}}const _0xe447a6=_0x222a64;;_0x3f379d[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),'mailAccountApp','mailAccount',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x3f379d(_0x38de0a,_0x4e0ec7,_0x552ff3,_0x37618b,_0xb3b8d5,_0x49007e,_0x28011c,_0xaf64ee){const _0x5366a9=_0x49a1e3,_0xd4e9d0=this;_0xd4e9d0[_0x5366a9(0x1d3d)]=_0x28011c[_0x5366a9(0x808)](),_0xd4e9d0[_0x5366a9(0xbae)]=[],_0xd4e9d0[_0x5366a9(0x2021)]=_0x5366a9(0x273e)+(_0x37618b[_0x5366a9(0x4f4)]||_0x37618b['app'])[_0x5366a9(0xa3c)](),_0xd4e9d0[_0x5366a9(0x67b)]=angular[_0x5366a9(0x289e)](_0x37618b),_0xd4e9d0[_0x5366a9(0x402)]=_0xaf64ee,_0xd4e9d0[_0x5366a9(0x6c2)]={};if(_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0xacb)])switch(_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x4f4)]?_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x4f4)][_0x5366a9(0x2554)]():_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x16e1)]['toLowerCase']()){case _0x5366a9(0x1ad6):break;case _0x5366a9(0x1084):{const _0x212e9b=_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0xacb)]['split'](',');_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x2125)]=_0x212e9b[0x0],_0xd4e9d0['close'][_0x5366a9(0x1cbd)]=_0x212e9b[0x1],_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x31b)]=_0x212e9b[_0x5366a9(0x142e)](0x2,_0x212e9b[_0x5366a9(0x1b9e)])[_0x5366a9(0x9a6)](',');}break;case'dialogflowv2':{const _0x256e2d=_0xd4e9d0[_0x5366a9(0x67b)]['appdata'][_0x5366a9(0x282c)](',');_0xd4e9d0['close'][_0x5366a9(0xbfd)]=_0x256e2d[0x0],_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x4b2)]=_0x256e2d[0x1],_0xd4e9d0[_0x5366a9(0x67b)]['privateKey']=_0x256e2d[0x2],_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x1cbd)]=_0x256e2d[0x3],_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x31b)]=_0x256e2d['slice'](0x4,_0x256e2d[_0x5366a9(0x1b9e)])[_0x5366a9(0x9a6)](',');}break;case _0x5366a9(0x290d):{const _0x47ab8b=_0xd4e9d0[_0x5366a9(0x67b)]['appdata'][_0x5366a9(0x282c)](',');_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x1466)]=_0x47ab8b[0x0],_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x1b1)]=_0x47ab8b[0x1],_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x17a2)]=_0x47ab8b[0x2],_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x2797)]=_0x47ab8b[0x3],_0xd4e9d0['close'][_0x5366a9(0x31b)]=_0x47ab8b[_0x5366a9(0x142e)](0x4,_0x47ab8b['length'])[_0x5366a9(0x9a6)](',');}break;case _0x5366a9(0x21a9):{const _0x4983=_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0xacb)][_0x5366a9(0x282c)](',');_0xd4e9d0[_0x5366a9(0x67b)]['times']=isNaN(_0x4983[0x0])?_0x4983[0x0]:parseInt(_0x4983[0x0],0xa),_0xd4e9d0[_0x5366a9(0x67b)]['text']=_0x4983[_0x5366a9(0x142e)](0x1,_0x4983[_0x5366a9(0x1b9e)])[_0x5366a9(0x9a6)](',');}break;case'message':_0xd4e9d0['close'][_0x5366a9(0x39b)]=_0xd4e9d0['close'][_0x5366a9(0xacb)];break;case _0x5366a9(0x1979):_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x2494)]=_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0xacb)][_0x5366a9(0x282c)]('=')[0x0],_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x1096)]=_0xd4e9d0['close'][_0x5366a9(0xacb)]['split']('=')[0x1];break;case _0x5366a9(0x1e67):_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x1bd9)]=_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0xacb)];break;default:{const _0x32a7fc=_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0xacb)]['split'](',');_0xd4e9d0['close'][_0x5366a9(0x168b)]=_0x28c606()[_0x5366a9(0x940)](_0x32a7fc[0x0])?_0x32a7fc[0x0]:isNaN(_0x32a7fc[0x0])?_0x32a7fc[0x0]:parseInt(_0x32a7fc[0x0],0xa);}break;}else{}_0xd4e9d0[_0x5366a9(0x67b)]['type']&&_0xd4e9d0[_0x5366a9(0x67b)]['type'][_0x5366a9(0x2554)]()===_0x5366a9(0xbce)&&_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x4f4)][_0x5366a9(0x2554)]()==='outbounddial'&&(_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x2524)]=_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x267a)]?_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x267a)][_0x5366a9(0x282c)]('$')[0x0]:undefined,_0xd4e9d0[_0x5366a9(0x67b)]['callerId']=_0xd4e9d0[_0x5366a9(0x67b)][_0x5366a9(0x1abe)]?_0x5366a9(0x2489)+_0xd4e9d0['close'][_0x5366a9(0x1abe)]:undefined);_0xd4e9d0['saveMailAccountApp']=_0x3e63c2,_0xd4e9d0[_0x5366a9(0x16cb)]=_0x445e77;function _0x3e63c2(){const _0x3fa3f5=_0x5366a9;_0xd4e9d0[_0x3fa3f5(0xbae)]=[];const _0x95c31d=[];_0xd4e9d0['close'][_0x3fa3f5(0x2185)]&&_0xd4e9d0[_0x3fa3f5(0x67b)]['type'][_0x3fa3f5(0x2554)]()===_0x3fa3f5(0xbce)&&_0xd4e9d0[_0x3fa3f5(0x67b)][_0x3fa3f5(0x4f4)]===_0x3fa3f5(0x17b6)&&(_0xd4e9d0[_0x3fa3f5(0x67b)][_0x3fa3f5(0x267a)]=_0xb3b8d5[_0x3fa3f5(0x242b)]?(_0xd4e9d0[_0x3fa3f5(0x67b)]['prefix']||'')+_0x3fa3f5(0x1a75)+_0xb3b8d5['cutdigits']+'}':(_0xd4e9d0[_0x3fa3f5(0x67b)]['prefix']||'')+'${EXTEN}',_0xb3b8d5[_0x3fa3f5(0x1097)]!==_0x3fa3f5(0x2507)?_0xd4e9d0[_0x3fa3f5(0x67b)][_0x3fa3f5(0x59e)][_0x3fa3f5(0x1b28)](_0x3fa3f5(0x13e0))<0x0&&(_0xd4e9d0[_0x3fa3f5(0x67b)][_0x3fa3f5(0x59e)]+=_0x3fa3f5(0x13e0)):_0xd4e9d0[_0x3fa3f5(0x67b)][_0x3fa3f5(0x59e)]=_0xd4e9d0[_0x3fa3f5(0x67b)][_0x3fa3f5(0x59e)][_0x3fa3f5(0x1353)](_0x3fa3f5(0x13e0),''));if(_0xd4e9d0[_0x3fa3f5(0x67b)][_0x3fa3f5(0x4f4)]&&_0xd4e9d0[_0x3fa3f5(0x67b)][_0x3fa3f5(0x4f4)]===_0x3fa3f5(0x1ad6)){}else switch((_0xd4e9d0['close'][_0x3fa3f5(0x16e1)]||_0xd4e9d0['close']['appType'])[_0x3fa3f5(0x2554)]()){case _0x3fa3f5(0x1979):_0xd4e9d0[_0x3fa3f5(0x67b)][_0x3fa3f5(0xacb)]=_0xd4e9d0['close'][_0x3fa3f5(0x2494)]+'='+_0xd4e9d0[_0x3fa3f5(0x67b)][_0x3fa3f5(0x1096)];break;case _0x3fa3f5(0x1ad6):break;default:_0x95c31d[0x0]=_0xd4e9d0[_0x3fa3f5(0x67b)]['disposition'],_0xd4e9d0['close'][_0x3fa3f5(0xacb)]=_0x95c31d[_0x3fa3f5(0x9a6)](',');}_0x445e77(_0xd4e9d0['close']);}function _0x445e77(_0x7a4ea){const _0x53edfd=_0x5366a9;_0x38de0a[_0x53edfd(0x268e)](_0x7a4ea);}}const _0x3eb95e=_0x3f379d;;_0xddbf47['$inject']=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),'mailAccountApp',_0x49a1e3(0x1b1e),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0xddbf47(_0x4ab28e,_0x50961b,_0x4f806b,_0x73a53a,_0x12a1b1,_0x365b3f,_0x57ada3,_0x1b4f0f){const _0x53c585=_0x49a1e3,_0xf2a224=this;_0xf2a224[_0x53c585(0x1d3d)]=_0x57ada3['getCurrentUser'](),_0xf2a224[_0x53c585(0xbae)]=[],_0xf2a224[_0x53c585(0x2021)]='MAIL.EDIT_'+(_0x73a53a[_0x53c585(0x4f4)]||_0x73a53a[_0x53c585(0x16e1)])[_0x53c585(0xa3c)](),_0xf2a224[_0x53c585(0x614)]=angular[_0x53c585(0x289e)](_0x73a53a),_0xf2a224[_0x53c585(0x402)]=_0x1b4f0f,_0xf2a224['hasModulePermissions']={};if(_0xf2a224['gotoif'][_0x53c585(0xacb)])switch(_0xf2a224[_0x53c585(0x614)][_0x53c585(0x4f4)]?_0xf2a224[_0x53c585(0x614)][_0x53c585(0x4f4)]['toLowerCase']():_0xf2a224[_0x53c585(0x614)][_0x53c585(0x16e1)][_0x53c585(0x2554)]()){case'custom':break;case _0x53c585(0x1084):{const _0x522780=_0xf2a224[_0x53c585(0x614)][_0x53c585(0xacb)][_0x53c585(0x282c)](',');_0xf2a224[_0x53c585(0x614)]['key']=_0x522780[0x0],_0xf2a224['gotoif'][_0x53c585(0x1cbd)]=_0x522780[0x1],_0xf2a224[_0x53c585(0x614)][_0x53c585(0x31b)]=_0x522780['slice'](0x2,_0x522780['length'])[_0x53c585(0x9a6)](',');}break;case _0x53c585(0x1b1a):{const _0x87ecc8=_0xf2a224['gotoif'][_0x53c585(0xacb)]['split'](',');_0xf2a224[_0x53c585(0x614)][_0x53c585(0xbfd)]=_0x87ecc8[0x0],_0xf2a224['gotoif']['clientEmail']=_0x87ecc8[0x1],_0xf2a224[_0x53c585(0x614)]['privateKey']=_0x87ecc8[0x2],_0xf2a224[_0x53c585(0x614)]['language']=_0x87ecc8[0x3],_0xf2a224[_0x53c585(0x614)][_0x53c585(0x31b)]=_0x87ecc8['slice'](0x4,_0x87ecc8['length'])[_0x53c585(0x9a6)](',');}break;case _0x53c585(0x290d):{const _0x40d36c=_0xf2a224[_0x53c585(0x614)]['appdata'][_0x53c585(0x282c)](',');_0xf2a224[_0x53c585(0x614)][_0x53c585(0x1466)]=_0x40d36c[0x0],_0xf2a224[_0x53c585(0x614)][_0x53c585(0x1b1)]=_0x40d36c[0x1],_0xf2a224['gotoif']['lexregion']=_0x40d36c[0x2],_0xf2a224[_0x53c585(0x614)][_0x53c585(0x2797)]=_0x40d36c[0x3],_0xf2a224['gotoif'][_0x53c585(0x31b)]=_0x40d36c[_0x53c585(0x142e)](0x4,_0x40d36c['length'])[_0x53c585(0x9a6)](',');}break;case _0x53c585(0x21a9):{const _0x1884d7=_0xf2a224[_0x53c585(0x614)][_0x53c585(0xacb)][_0x53c585(0x282c)](',');_0xf2a224['gotoif'][_0x53c585(0x95f)]=isNaN(_0x1884d7[0x0])?_0x1884d7[0x0]:parseInt(_0x1884d7[0x0],0xa),_0xf2a224[_0x53c585(0x614)][_0x53c585(0x39b)]=_0x1884d7[_0x53c585(0x142e)](0x1,_0x1884d7[_0x53c585(0x1b9e)])[_0x53c585(0x9a6)](',');}break;case _0x53c585(0x18ca):_0xf2a224['gotoif'][_0x53c585(0x39b)]=_0xf2a224[_0x53c585(0x614)]['appdata'];break;case'set':_0xf2a224[_0x53c585(0x614)][_0x53c585(0x2494)]=_0xf2a224['gotoif'][_0x53c585(0xacb)]['split']('=')[0x0],_0xf2a224[_0x53c585(0x614)][_0x53c585(0x1096)]=_0xf2a224[_0x53c585(0x614)][_0x53c585(0xacb)]['split']('=')[0x1];break;case _0x53c585(0x1e67):_0xf2a224[_0x53c585(0x614)][_0x53c585(0x1bd9)]=_0xf2a224[_0x53c585(0x614)]['appdata'];break;default:{const _0x35f092=_0xf2a224[_0x53c585(0x614)][_0x53c585(0xacb)][_0x53c585(0x282c)](',');_0xf2a224[_0x53c585(0x614)][_0x53c585(0xeea)]=_0x28c606()[_0x53c585(0x940)](_0x35f092[0x0])?_0x35f092[0x0]:isNaN(_0x35f092[0x0])?_0x35f092[0x0]:parseInt(_0x35f092[0x0],0xa),_0xf2a224[_0x53c585(0x614)][_0x53c585(0x108f)]=_0x28c606()[_0x53c585(0x940)](_0x35f092[0x1])?_0x35f092[0x1]:isNaN(_0x35f092[0x1])?_0x35f092[0x1]:parseInt(_0x35f092[0x1],0xa),_0xf2a224[_0x53c585(0x614)][_0x53c585(0x1d32)]=_0x28c606()[_0x53c585(0x940)](_0x35f092[0x2])?_0x35f092[0x2]:isNaN(_0x35f092[0x2])?_0x35f092[0x2]:parseInt(_0x35f092[0x2],0xa);}break;}else{}_0xf2a224[_0x53c585(0x614)][_0x53c585(0x2185)]&&_0xf2a224['gotoif']['type'][_0x53c585(0x2554)]()===_0x53c585(0xbce)&&_0xf2a224[_0x53c585(0x614)][_0x53c585(0x4f4)][_0x53c585(0x2554)]()===_0x53c585(0x20eb)&&(_0xf2a224[_0x53c585(0x614)][_0x53c585(0x2524)]=_0xf2a224[_0x53c585(0x614)]['phone']?_0xf2a224[_0x53c585(0x614)][_0x53c585(0x267a)][_0x53c585(0x282c)]('$')[0x0]:undefined,_0xf2a224['gotoif']['callerId']=_0xf2a224[_0x53c585(0x614)][_0x53c585(0x1abe)]?_0x53c585(0x2489)+_0xf2a224[_0x53c585(0x614)][_0x53c585(0x1abe)]:undefined);_0xf2a224['saveMailAccountApp']=_0x31d6cb,_0xf2a224[_0x53c585(0x16cb)]=_0x3a6a62;function _0x31d6cb(){const _0x379113=_0x53c585;_0xf2a224[_0x379113(0xbae)]=[];const _0x57a946=[];_0xf2a224[_0x379113(0x614)][_0x379113(0x2185)]&&_0xf2a224[_0x379113(0x614)]['type']['toLowerCase']()===_0x379113(0xbce)&&_0xf2a224[_0x379113(0x614)][_0x379113(0x4f4)]===_0x379113(0x17b6)&&(_0xf2a224[_0x379113(0x614)]['phone']=_0x12a1b1['cutdigits']?(_0xf2a224[_0x379113(0x614)][_0x379113(0x2524)]||'')+_0x379113(0x1a75)+_0x12a1b1[_0x379113(0x242b)]+'}':(_0xf2a224[_0x379113(0x614)]['prefix']||'')+_0x379113(0x5ad),_0x12a1b1[_0x379113(0x1097)]!=='none'?_0xf2a224[_0x379113(0x614)][_0x379113(0x59e)][_0x379113(0x1b28)]('U(xcally-mixmonitor-context)')<0x0&&(_0xf2a224['gotoif']['options']+=_0x379113(0x13e0)):_0xf2a224[_0x379113(0x614)][_0x379113(0x59e)]=_0xf2a224[_0x379113(0x614)][_0x379113(0x59e)]['replace']('U(xcally-mixmonitor-context)',''));if(_0xf2a224[_0x379113(0x614)][_0x379113(0x4f4)]&&_0xf2a224[_0x379113(0x614)][_0x379113(0x4f4)]===_0x379113(0x1ad6)){}else switch((_0xf2a224[_0x379113(0x614)][_0x379113(0x16e1)]||_0xf2a224[_0x379113(0x614)][_0x379113(0x4f4)])[_0x379113(0x2554)]()){case _0x379113(0x1979):_0xf2a224[_0x379113(0x614)][_0x379113(0xacb)]=_0xf2a224[_0x379113(0x614)][_0x379113(0x2494)]+'='+_0xf2a224['gotoif'][_0x379113(0x1096)];break;case _0x379113(0x1ad6):break;default:_0x57a946[0x0]=_0xf2a224[_0x379113(0x614)][_0x379113(0xeea)],_0x57a946[0x1]=_0xf2a224[_0x379113(0x614)][_0x379113(0x108f)],_0x57a946[0x2]=_0xf2a224[_0x379113(0x614)][_0x379113(0x1d32)],_0xf2a224[_0x379113(0x614)][_0x379113(0xacb)]=_0x57a946[_0x379113(0x9a6)](',');}_0x3a6a62(_0xf2a224[_0x379113(0x614)]);}function _0x3a6a62(_0x333084){const _0x2e69a6=_0x53c585;_0x4ab28e[_0x2e69a6(0x268e)](_0x333084);}}const _0x8c792e=_0xddbf47;;_0x3ba3ca[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x9bd),_0x49a1e3(0x1b1e),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x3ba3ca(_0x5bbe88,_0x753696,_0x444aa2,_0x43d16c,_0x487a59,_0x5015e8,_0x106dcd,_0x1c6f3e){const _0x37267a=_0x49a1e3,_0xa8a6e5=this;_0xa8a6e5['currentUser']=_0x106dcd[_0x37267a(0x808)](),_0xa8a6e5[_0x37267a(0xbae)]=[],_0xa8a6e5[_0x37267a(0x2021)]='MAIL.EDIT_'+(_0x43d16c[_0x37267a(0x4f4)]||_0x43d16c[_0x37267a(0x16e1)])[_0x37267a(0xa3c)](),_0xa8a6e5[_0x37267a(0x2046)]=angular['copy'](_0x43d16c),_0xa8a6e5[_0x37267a(0x402)]=_0x1c6f3e,_0xa8a6e5['hasModulePermissions']={};if(_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0xacb)])switch(_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x4f4)]?_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x4f4)]['toLowerCase']():_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x16e1)][_0x37267a(0x2554)]()){case _0x37267a(0x1ad6):break;case _0x37267a(0x1084):{const _0x42bdfc=_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0xacb)][_0x37267a(0x282c)](',');_0xa8a6e5[_0x37267a(0x2046)]['key']=_0x42bdfc[0x0],_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x1cbd)]=_0x42bdfc[0x1],_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x31b)]=_0x42bdfc[_0x37267a(0x142e)](0x2,_0x42bdfc[_0x37267a(0x1b9e)])[_0x37267a(0x9a6)](',');}break;case _0x37267a(0x1b1a):{const _0x3eec02=_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0xacb)][_0x37267a(0x282c)](',');_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0xbfd)]=_0x3eec02[0x0],_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x4b2)]=_0x3eec02[0x1],_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x1b1b)]=_0x3eec02[0x2],_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x1cbd)]=_0x3eec02[0x3],_0xa8a6e5['gotop'][_0x37267a(0x31b)]=_0x3eec02['slice'](0x4,_0x3eec02[_0x37267a(0x1b9e)])[_0x37267a(0x9a6)](',');}break;case _0x37267a(0x290d):{const _0x4b1f96=_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0xacb)]['split'](',');_0xa8a6e5['gotop'][_0x37267a(0x1466)]=_0x4b1f96[0x0],_0xa8a6e5[_0x37267a(0x2046)]['secretaccesskey']=_0x4b1f96[0x1],_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x17a2)]=_0x4b1f96[0x2],_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x2797)]=_0x4b1f96[0x3],_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x31b)]=_0x4b1f96['slice'](0x4,_0x4b1f96['length'])[_0x37267a(0x9a6)](',');}break;case _0x37267a(0x21a9):{const _0x213e02=_0xa8a6e5[_0x37267a(0x2046)]['appdata'][_0x37267a(0x282c)](',');_0xa8a6e5[_0x37267a(0x2046)]['times']=isNaN(_0x213e02[0x0])?_0x213e02[0x0]:parseInt(_0x213e02[0x0],0xa),_0xa8a6e5[_0x37267a(0x2046)]['text']=_0x213e02['slice'](0x1,_0x213e02[_0x37267a(0x1b9e)])[_0x37267a(0x9a6)](',');}break;case _0x37267a(0x18ca):_0xa8a6e5['gotop']['text']=_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0xacb)];break;case'set':_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x2494)]=_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0xacb)][_0x37267a(0x282c)]('=')[0x0],_0xa8a6e5[_0x37267a(0x2046)]['value']=_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0xacb)][_0x37267a(0x282c)]('=')[0x1];break;case _0x37267a(0x1e67):_0xa8a6e5['gotop'][_0x37267a(0x1bd9)]=_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0xacb)];break;default:{const _0x5cb113=_0xa8a6e5['gotop']['appdata'][_0x37267a(0x282c)](',');_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x1095)]=_0x28c606()[_0x37267a(0x940)](_0x5cb113[0x0])?_0x5cb113[0x0]:isNaN(_0x5cb113[0x0])?_0x5cb113[0x0]:parseInt(_0x5cb113[0x0],0xa);}break;}else{}_0xa8a6e5[_0x37267a(0x2046)]['type']&&_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x2185)][_0x37267a(0x2554)]()===_0x37267a(0xbce)&&_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x4f4)][_0x37267a(0x2554)]()===_0x37267a(0x20eb)&&(_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x2524)]=_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x267a)]?_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x267a)][_0x37267a(0x282c)]('$')[0x0]:undefined,_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x1a9b)]=_0xa8a6e5[_0x37267a(0x2046)]['callerID']?_0x37267a(0x2489)+_0xa8a6e5[_0x37267a(0x2046)][_0x37267a(0x1abe)]:undefined);_0xa8a6e5[_0x37267a(0x1b31)]=_0x475fa7,_0xa8a6e5['closeDialog']=_0x3d2b36;function _0x475fa7(){const _0x3ebc80=_0x37267a;_0xa8a6e5['errors']=[];const _0x22e0df=[];_0xa8a6e5[_0x3ebc80(0x2046)][_0x3ebc80(0x2185)]&&_0xa8a6e5[_0x3ebc80(0x2046)][_0x3ebc80(0x2185)][_0x3ebc80(0x2554)]()===_0x3ebc80(0xbce)&&_0xa8a6e5[_0x3ebc80(0x2046)]['appType']===_0x3ebc80(0x17b6)&&(_0xa8a6e5[_0x3ebc80(0x2046)]['phone']=_0x487a59[_0x3ebc80(0x242b)]?(_0xa8a6e5['gotop']['prefix']||'')+_0x3ebc80(0x1a75)+_0x487a59[_0x3ebc80(0x242b)]+'}':(_0xa8a6e5['gotop']['prefix']||'')+_0x3ebc80(0x5ad),_0x487a59[_0x3ebc80(0x1097)]!==_0x3ebc80(0x2507)?_0xa8a6e5['gotop'][_0x3ebc80(0x59e)]['indexOf'](_0x3ebc80(0x13e0))<0x0&&(_0xa8a6e5['gotop']['options']+=_0x3ebc80(0x13e0)):_0xa8a6e5['gotop'][_0x3ebc80(0x59e)]=_0xa8a6e5[_0x3ebc80(0x2046)][_0x3ebc80(0x59e)]['replace']('U(xcally-mixmonitor-context)',''));if(_0xa8a6e5[_0x3ebc80(0x2046)]['appType']&&_0xa8a6e5['gotop'][_0x3ebc80(0x4f4)]===_0x3ebc80(0x1ad6)){}else switch((_0xa8a6e5['gotop']['app']||_0xa8a6e5[_0x3ebc80(0x2046)][_0x3ebc80(0x4f4)])['toLowerCase']()){case _0x3ebc80(0x1979):_0xa8a6e5[_0x3ebc80(0x2046)]['appdata']=_0xa8a6e5[_0x3ebc80(0x2046)][_0x3ebc80(0x2494)]+'='+_0xa8a6e5[_0x3ebc80(0x2046)][_0x3ebc80(0x1096)];break;case _0x3ebc80(0x1ad6):break;default:_0x22e0df[0x0]=_0xa8a6e5[_0x3ebc80(0x2046)][_0x3ebc80(0x1095)],_0xa8a6e5[_0x3ebc80(0x2046)][_0x3ebc80(0xacb)]=_0x22e0df[_0x3ebc80(0x9a6)](',');}_0x3d2b36(_0xa8a6e5[_0x3ebc80(0x2046)]);}function _0x3d2b36(_0x1ed70b){_0x5bbe88['hide'](_0x1ed70b);}}const _0x147bc4=_0x3ba3ca;;_0x324818[_0x49a1e3(0x1e73)]=['$state',_0x49a1e3(0x212a),_0x49a1e3(0x611),_0x49a1e3(0xd48),'interval','intervals','toasty','api',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x324818(_0x35738d,_0x243869,_0x8ce830,_0x40336c,_0x21a8b0,_0x4f48d3,_0x50b007,_0x2b839c,_0x359403,_0x3634b2){const _0x1981ec=_0x49a1e3,_0x3090d5=this;_0x3090d5[_0x1981ec(0x1d3d)]=_0x359403['getCurrentUser'](),_0x3090d5[_0x1981ec(0xbae)]=[],_0x3090d5['title']=_0x1981ec(0x20a4),_0x3090d5[_0x1981ec(0xcfd)]=angular[_0x1981ec(0x289e)](_0x21a8b0),_0x3090d5[_0x1981ec(0x15e4)]=_0x4f48d3,_0x3090d5[_0x1981ec(0xf18)]=![],_0x3090d5['types']=[_0x1981ec(0xa66),_0x1981ec(0x1ad6),'list'],_0x3090d5[_0x1981ec(0x402)]=_0x3634b2,_0x3090d5[_0x1981ec(0x121a)]=_0x40336c[_0x1981ec(0x8b9)](),_0x3090d5[_0x1981ec(0x2391)]=_0x40336c['getMonthNumber'](),_0x3090d5['monthName']=_0x40336c['getMonthName'](),_0x3090d5[_0x1981ec(0x1e2a)]=_0x40336c['getDaysOfMonth']();if(!_0x3090d5['interval'])_0x3090d5['interval']={'interval':_0x1981ec(0x2145)},_0x3090d5[_0x1981ec(0x2185)]='always',_0x3090d5[_0x1981ec(0x2021)]=_0x1981ec(0xcbc),_0x3090d5['newInterval']=!![];else{if(_0x3090d5['interval'][_0x1981ec(0xcfd)]!==_0x1981ec(0x2145)){_0x3090d5['type']=_0x1981ec(0x1ad6);const _0xc57e63=_0x3090d5[_0x1981ec(0xcfd)][_0x1981ec(0xcfd)][_0x1981ec(0x282c)](','),_0x587335=_0xc57e63[0x0],_0x109893=_0xc57e63[0x1],_0x4bd155=_0xc57e63[0x2],_0x15f325=_0xc57e63[0x3];if(_0x587335!=='*'){const _0x27e0ae=_0x587335['split']('-')[0x0],_0x564c91=_0x587335[_0x1981ec(0x282c)]('-')[0x1];let _0xfa8439;_0xfa8439=new Date(),_0xfa8439[_0x1981ec(0x260)](Number(_0x27e0ae[_0x1981ec(0x282c)](':')[0x0])),_0xfa8439[_0x1981ec(0x1b10)](Number(_0x27e0ae[_0x1981ec(0x282c)](':')[0x1])),_0x3090d5['timeRangeFrom']=_0xfa8439,_0xfa8439=new Date(),_0xfa8439[_0x1981ec(0x260)](Number(_0x564c91[_0x1981ec(0x282c)](':')[0x0])),_0xfa8439['setMinutes'](Number(_0x564c91[_0x1981ec(0x282c)](':')[0x1])),_0x3090d5[_0x1981ec(0x196a)]=_0xfa8439;}_0x109893!=='*'&&(_0x3090d5[_0x1981ec(0xa8e)]=_0x109893['split']('-')[0x0],_0x3090d5[_0x1981ec(0x1297)]=_0x109893[_0x1981ec(0x282c)]('-')[0x1]),_0x4bd155!=='*'&&(_0x3090d5[_0x1981ec(0x1e3)]=_0x4bd155[_0x1981ec(0x282c)]('-')[0x0],_0x3090d5[_0x1981ec(0x15c4)]=_0x4bd155['split']('-')[0x1]),_0x15f325!=='*'&&(_0x3090d5[_0x1981ec(0x205f)]=_0x15f325[_0x1981ec(0x282c)]('-')[0x0],_0x3090d5['monthTo']=_0x15f325[_0x1981ec(0x282c)]('-')[0x1]);}else _0x3090d5[_0x1981ec(0x2185)]='always';}_0x35738d[_0x1981ec(0x1b48)]['id']&&!_0x3090d5[_0x1981ec(0xcfd)][_0x1981ec(0x2081)]&&(_0x3090d5['interval'][_0x1981ec(0xb71)]=_0x35738d[_0x1981ec(0x1b48)]['id']);_0x3090d5[_0x1981ec(0xcfd)][_0x1981ec(0xb71)]&&_0x3090d5[_0x1981ec(0xcfd)][_0x1981ec(0x2081)]&&(_0x3090d5[_0x1981ec(0x2185)]=_0x1981ec(0x2764));_0x3090d5[_0x1981ec(0x23c0)]=_0x40148f,_0x3090d5[_0x1981ec(0x1f5)]=_0x5c3d57,_0x3090d5[_0x1981ec(0x16cb)]=_0x4001f9;_0x3090d5[_0x1981ec(0xcfd)][_0x1981ec(0x2081)]&&(_0x359403[_0x1981ec(0x4de)]('admin')?_0x2b839c[_0x1981ec(0xcfd)]['get']({'fields':'id,name,interval,IntervalId','IntervalId':_0x1981ec(0x8f1),'nolimit':!![]})[_0x1981ec(0x15e7)]['then'](function(_0x5b99f4){const _0x4242a3=_0x1981ec;_0x3090d5[_0x4242a3(0x15e4)]=_0x5b99f4[_0x4242a3(0x28b8)]||[];})[_0x1981ec(0x20cd)](function(_0x172ae9){const _0x386ab6=_0x1981ec;_0x50b007[_0x386ab6(0x1bd0)]({'title':_0x172ae9[_0x386ab6(0x10b3)]?_0x386ab6(0x575)+_0x172ae9[_0x386ab6(0x10b3)]+_0x386ab6(0x21db)+_0x172ae9[_0x386ab6(0x2115)]:_0x386ab6(0xbfb),'msg':_0x172ae9[_0x386ab6(0x1c52)]?JSON[_0x386ab6(0x2317)](_0x172ae9[_0x386ab6(0x1c52)]):_0x172ae9['toString']()});}):_0x2b839c[_0x1981ec(0xcfd)][_0x1981ec(0x896)]({'fields':'id,name,interval,IntervalId','IntervalId':_0x1981ec(0x8f1),'nolimit':!![]})[_0x1981ec(0x15e7)][_0x1981ec(0x64a)](function(_0x33945e){_0x3090d5['intervals']=_0x33945e['rows']||[];})['then'](function(){const _0x3c9674=_0x1981ec;return _0x2b839c[_0x3c9674(0x16b2)][_0x3c9674(0x896)]({'userProfileId':_0x3090d5[_0x3c9674(0x1d3d)][_0x3c9674(0x21ac)],'sectionId':0x3ec})[_0x3c9674(0x15e7)];})[_0x1981ec(0x64a)](function(_0x4fbae1){const _0x13bc0c=_0x1981ec,_0x4e9658=_0x4fbae1&&_0x4fbae1[_0x13bc0c(0x28b8)]?_0x4fbae1['rows'][0x0]:null;if(!_0x4e9658)_0x3090d5[_0x13bc0c(0x15e4)]=[];else{if(!_0x4e9658[_0x13bc0c(0x11da)])return _0x2b839c[_0x13bc0c(0x1617)][_0x13bc0c(0x896)]({'sectionId':_0x4e9658['id']})[_0x13bc0c(0x15e7)][_0x13bc0c(0x64a)](function(_0x1f4844){const _0x657a30=_0x13bc0c,_0x4badc2=_0x1f4844&&_0x1f4844[_0x657a30(0x28b8)]?_0x1f4844[_0x657a30(0x28b8)]:[],_0x3da335=[];let _0x2095b1=null;_0x3090d5['interval']&&(_0x2095b1=_0x28c606()['find'](_0x3090d5[_0x657a30(0x15e4)],{'name':_0x3090d5[_0x657a30(0xcfd)][_0x657a30(0xb71)]})),_0x2095b1&&!_0x28c606()[_0x657a30(0x25f8)](_0x4badc2,[_0x657a30(0x145),_0x2095b1['id']])&&_0x3090d5[_0x657a30(0x15e4)]['forEach'](function(_0x29db33){const _0x8641d4=_0x657a30;_0x29db33['id']===_0x2095b1['id']&&(_0x29db33[_0x8641d4(0xd4f)]=![],_0x3da335[_0x8641d4(0x1954)](_0x29db33));}),_0x3090d5['intervals']=_0x3da335;});}})['catch'](function(_0xd4b2e7){const _0x3fd021=_0x1981ec;_0x50b007['error']({'title':_0xd4b2e7[_0x3fd021(0x10b3)]?_0x3fd021(0x575)+_0xd4b2e7[_0x3fd021(0x10b3)]+_0x3fd021(0x21db)+_0xd4b2e7[_0x3fd021(0x2115)]:'SYSTEM:GET_INTERVALS','msg':_0xd4b2e7[_0x3fd021(0x1c52)]?JSON[_0x3fd021(0x2317)](_0xd4b2e7[_0x3fd021(0x1c52)]):_0xd4b2e7[_0x3fd021(0x2915)]()});}));function _0x1ddf9a(){const _0x258a66=_0x1981ec;switch(_0x3090d5['type']){case _0x258a66(0xa66):case _0x258a66(0x2764):return _0x258a66(0x2145);case _0x258a66(0x1ad6):{const _0x339954=[];if(_0x3090d5[_0x258a66(0x268d)]!=='*'&&_0x3090d5['timeRangeFrom']&&_0x3090d5[_0x258a66(0x196a)]){const _0x21172f=(_0x3090d5[_0x258a66(0x268d)][_0x258a66(0x48a)]()<0xa?'0':'')+_0x3090d5[_0x258a66(0x268d)][_0x258a66(0x48a)]()+':'+((_0x3090d5['timeRangeFrom'][_0x258a66(0x1894)]()<0xa?'0':'')+_0x3090d5[_0x258a66(0x268d)][_0x258a66(0x1894)]()),_0x42d8e8=(_0x3090d5[_0x258a66(0x196a)][_0x258a66(0x48a)]()<0xa?'0':'')+_0x3090d5['timeRangeTo'][_0x258a66(0x48a)]()+':'+((_0x3090d5[_0x258a66(0x196a)][_0x258a66(0x1894)]()<0xa?'0':'')+_0x3090d5['timeRangeTo'][_0x258a66(0x1894)]());_0x339954['push'](_0x21172f+'-'+_0x42d8e8);}else _0x339954[_0x258a66(0x1954)]('*');return _0x3090d5[_0x258a66(0xa8e)]?_0x3090d5[_0x258a66(0x1297)]?_0x339954[_0x258a66(0x1954)](_0x3090d5['dayOfWeekFrom']+'-'+_0x3090d5[_0x258a66(0x1297)]):_0x339954[_0x258a66(0x1954)](_0x3090d5[_0x258a66(0xa8e)]):_0x339954[_0x258a66(0x1954)]('*'),_0x3090d5[_0x258a66(0x1e3)]?_0x3090d5[_0x258a66(0x15c4)]?_0x339954[_0x258a66(0x1954)](_0x3090d5[_0x258a66(0x1e3)]+'-'+_0x3090d5['monthDayTo']):_0x339954[_0x258a66(0x1954)](_0x3090d5[_0x258a66(0x1e3)]):_0x339954[_0x258a66(0x1954)]('*'),_0x3090d5['monthFrom']?_0x3090d5[_0x258a66(0x1ea4)]?_0x339954[_0x258a66(0x1954)](_0x3090d5[_0x258a66(0x205f)]+'-'+_0x3090d5[_0x258a66(0x1ea4)]):_0x339954['push'](_0x3090d5['monthFrom']):_0x339954['push']('*'),_0x339954[_0x258a66(0x9a6)]();}}}function _0x40148f(){const _0x50acba=_0x1981ec;_0x3090d5[_0x50acba(0xbae)]=[],_0x3090d5[_0x50acba(0xcfd)]['interval']=_0x1ddf9a(),_0x2b839c['interval'][_0x50acba(0x2479)](_0x3090d5[_0x50acba(0xcfd)])[_0x50acba(0x15e7)][_0x50acba(0x64a)](function(_0xbebe16){const _0x306b08=_0x50acba;_0x3090d5['intervals'][_0x306b08(0x1954)](_0xbebe16),_0x50b007[_0x306b08(0x1339)]({'title':_0x306b08(0x2864),'msg':_0x3090d5['interval']['name']?_0x3090d5[_0x306b08(0xcfd)]['name']+_0x306b08(0x258d):''}),_0x4001f9();})[_0x50acba(0x20cd)](function(_0xe1d3ad){const _0x27ea81=_0x50acba;console[_0x27ea81(0x1bd0)](_0xe1d3ad),_0x3090d5[_0x27ea81(0xbae)]=_0xe1d3ad[_0x27ea81(0x1c52)][_0x27ea81(0xbae)]||[{'message':_0xe1d3ad[_0x27ea81(0x2915)](),'type':_0x27ea81(0x12a0)}];});}function _0x5c3d57(){const _0x50d546=_0x1981ec;_0x3090d5['errors']=[],_0x3090d5[_0x50d546(0xcfd)]['interval']=_0x1ddf9a(),_0x3090d5[_0x50d546(0xcfd)][_0x50d546(0x2081)]?(_0x3090d5['type']!==_0x50d546(0x2764)&&(_0x3090d5[_0x50d546(0xcfd)][_0x50d546(0xb71)]=null),_0x4001f9(_0x3090d5[_0x50d546(0xcfd)])):_0x2b839c[_0x50d546(0xcfd)][_0x50d546(0x2603)]({'id':_0x3090d5[_0x50d546(0xcfd)]['id']},_0x3090d5[_0x50d546(0xcfd)])['$promise'][_0x50d546(0x64a)](function(_0x541ec5){const _0x3943f7=_0x50d546,_0xe469de=_0x28c606()[_0x3943f7(0x27bc)](_0x3090d5[_0x3943f7(0x15e4)],{'id':_0x541ec5['id']});_0xe469de&&_0x28c606()['merge'](_0xe469de,_0x541ec5),_0x50b007[_0x3943f7(0x1339)]({'title':'Interval\x20properly\x20saved!','msg':_0x3943f7(0x198)}),_0x4001f9();})[_0x50d546(0x20cd)](function(_0x568434){const _0x3c3e1d=_0x50d546;console[_0x3c3e1d(0x1bd0)](_0x568434),_0x3090d5[_0x3c3e1d(0xbae)]=_0x568434[_0x3c3e1d(0x1c52)]['errors']||[{'message':_0x568434[_0x3c3e1d(0x2915)](),'type':'api.interval.update'}];});}function _0x4001f9(_0x335685){const _0x4a9129=_0x1981ec;_0x243869[_0x4a9129(0x268e)](_0x335685);}}const _0x3e77b3=_0x324818;;_0x1f10c1['$inject']=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0x9bd),_0x49a1e3(0x1b1e),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x1f10c1(_0x155df3,_0x584196,_0x5abeb8,_0x3bf615,_0x31a498,_0x17648a,_0x300d99,_0x32ce6e){const _0x36dafa=_0x49a1e3,_0x1f82c4=this;_0x1f82c4[_0x36dafa(0x1d3d)]=_0x300d99[_0x36dafa(0x808)](),_0x1f82c4['errors']=[],_0x1f82c4['title']=_0x36dafa(0x273e)+(_0x3bf615[_0x36dafa(0x4f4)]||_0x3bf615[_0x36dafa(0x16e1)])[_0x36dafa(0xa3c)](),_0x1f82c4[_0x36dafa(0xbb6)]=angular['copy'](_0x3bf615),_0x1f82c4['crudPermissions']=_0x32ce6e,_0x1f82c4[_0x36dafa(0x6c2)]={};if(_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0xacb)])switch(_0x1f82c4['noop'][_0x36dafa(0x4f4)]?_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x4f4)][_0x36dafa(0x2554)]():_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x16e1)][_0x36dafa(0x2554)]()){case _0x36dafa(0x1ad6):break;case'dialogflow':{const _0xbc9735=_0x1f82c4['noop']['appdata'][_0x36dafa(0x282c)](',');_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x2125)]=_0xbc9735[0x0],_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x1cbd)]=_0xbc9735[0x1],_0x1f82c4[_0x36dafa(0xbb6)]['welcomemessage']=_0xbc9735[_0x36dafa(0x142e)](0x2,_0xbc9735[_0x36dafa(0x1b9e)])[_0x36dafa(0x9a6)](',');}break;case'dialogflowv2':{const _0x505388=_0x1f82c4['noop'][_0x36dafa(0xacb)]['split'](',');_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0xbfd)]=_0x505388[0x0],_0x1f82c4['noop'][_0x36dafa(0x4b2)]=_0x505388[0x1],_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x1b1b)]=_0x505388[0x2],_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x1cbd)]=_0x505388[0x3],_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x31b)]=_0x505388[_0x36dafa(0x142e)](0x4,_0x505388[_0x36dafa(0x1b9e)])[_0x36dafa(0x9a6)](',');}break;case _0x36dafa(0x290d):{const _0xec920=_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0xacb)][_0x36dafa(0x282c)](',');_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x1466)]=_0xec920[0x0],_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x1b1)]=_0xec920[0x1],_0x1f82c4['noop'][_0x36dafa(0x17a2)]=_0xec920[0x2],_0x1f82c4['noop']['botname']=_0xec920[0x3],_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x31b)]=_0xec920[_0x36dafa(0x142e)](0x4,_0xec920[_0x36dafa(0x1b9e)])[_0x36dafa(0x9a6)](',');}break;case _0x36dafa(0x21a9):{const _0x3fd7ec=_0x1f82c4[_0x36dafa(0xbb6)]['appdata'][_0x36dafa(0x282c)](',');_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x95f)]=isNaN(_0x3fd7ec[0x0])?_0x3fd7ec[0x0]:parseInt(_0x3fd7ec[0x0],0xa),_0x1f82c4['noop'][_0x36dafa(0x39b)]=_0x3fd7ec[_0x36dafa(0x142e)](0x1,_0x3fd7ec['length'])[_0x36dafa(0x9a6)](',');}break;case _0x36dafa(0x18ca):_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x39b)]=_0x1f82c4[_0x36dafa(0xbb6)]['appdata'];break;case _0x36dafa(0x1979):_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x2494)]=_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0xacb)][_0x36dafa(0x282c)]('=')[0x0],_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x1096)]=_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0xacb)]['split']('=')[0x1];break;case'agi':_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x1bd9)]=_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0xacb)];break;default:{const _0x5d57ff=_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0xacb)]['split'](',');_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x1096)]=_0x28c606()['isEmpty'](_0x5d57ff[0x0])?_0x5d57ff[0x0]:isNaN(_0x5d57ff[0x0])?_0x5d57ff[0x0]:parseInt(_0x5d57ff[0x0],0xa);}break;}else{}_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x2185)]&&_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x2185)][_0x36dafa(0x2554)]()===_0x36dafa(0xbce)&&_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x4f4)]['toLowerCase']()==='outbounddial'&&(_0x1f82c4[_0x36dafa(0xbb6)]['prefix']=_0x1f82c4[_0x36dafa(0xbb6)]['phone']?_0x1f82c4['noop'][_0x36dafa(0x267a)][_0x36dafa(0x282c)]('$')[0x0]:undefined,_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x1a9b)]=_0x1f82c4[_0x36dafa(0xbb6)][_0x36dafa(0x1abe)]?_0x36dafa(0x2489)+_0x1f82c4[_0x36dafa(0xbb6)]['callerID']:undefined);_0x1f82c4[_0x36dafa(0x1b31)]=_0x1502eb,_0x1f82c4[_0x36dafa(0x16cb)]=_0x361c33;function _0x1502eb(){const _0x1fd711=_0x36dafa;_0x1f82c4[_0x1fd711(0xbae)]=[];const _0x4d6c29=[];_0x1f82c4[_0x1fd711(0xbb6)][_0x1fd711(0x2185)]&&_0x1f82c4[_0x1fd711(0xbb6)][_0x1fd711(0x2185)][_0x1fd711(0x2554)]()===_0x1fd711(0xbce)&&_0x1f82c4[_0x1fd711(0xbb6)][_0x1fd711(0x4f4)]===_0x1fd711(0x17b6)&&(_0x1f82c4[_0x1fd711(0xbb6)][_0x1fd711(0x267a)]=_0x31a498[_0x1fd711(0x242b)]?(_0x1f82c4[_0x1fd711(0xbb6)][_0x1fd711(0x2524)]||'')+_0x1fd711(0x1a75)+_0x31a498[_0x1fd711(0x242b)]+'}':(_0x1f82c4[_0x1fd711(0xbb6)][_0x1fd711(0x2524)]||'')+_0x1fd711(0x5ad),_0x31a498[_0x1fd711(0x1097)]!==_0x1fd711(0x2507)?_0x1f82c4[_0x1fd711(0xbb6)][_0x1fd711(0x59e)][_0x1fd711(0x1b28)](_0x1fd711(0x13e0))<0x0&&(_0x1f82c4[_0x1fd711(0xbb6)][_0x1fd711(0x59e)]+=_0x1fd711(0x13e0)):_0x1f82c4[_0x1fd711(0xbb6)][_0x1fd711(0x59e)]=_0x1f82c4[_0x1fd711(0xbb6)][_0x1fd711(0x59e)][_0x1fd711(0x1353)](_0x1fd711(0x13e0),''));if(_0x1f82c4[_0x1fd711(0xbb6)][_0x1fd711(0x4f4)]&&_0x1f82c4['noop'][_0x1fd711(0x4f4)]===_0x1fd711(0x1ad6)){}else switch((_0x1f82c4['noop'][_0x1fd711(0x16e1)]||_0x1f82c4[_0x1fd711(0xbb6)]['appType'])['toLowerCase']()){case'set':_0x1f82c4['noop']['appdata']=_0x1f82c4[_0x1fd711(0xbb6)][_0x1fd711(0x2494)]+'='+_0x1f82c4[_0x1fd711(0xbb6)]['value'];break;case'custom':break;default:_0x4d6c29[0x0]=_0x1f82c4['noop'][_0x1fd711(0x1096)],_0x1f82c4[_0x1fd711(0xbb6)][_0x1fd711(0xacb)]=_0x4d6c29['join'](',');}_0x361c33(_0x1f82c4[_0x1fd711(0xbb6)]);}function _0x361c33(_0x247641){const _0x17bf7d=_0x36dafa;_0x155df3[_0x17bf7d(0x268e)](_0x247641);}}const _0xe0bb43=_0x1f10c1;;_0x147d2c[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0x9bd),_0x49a1e3(0x1b1e),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x147d2c(_0x87b07e,_0xd42bef,_0x59aed7,_0x41ed40,_0x299ba6,_0x337d08,_0x1bdc3e,_0x58e54d){const _0x4384fd=_0x49a1e3,_0x7cf048=this;_0x7cf048['currentUser']=_0x1bdc3e['getCurrentUser'](),_0x7cf048['errors']=[],_0x7cf048[_0x4384fd(0x2021)]='MAIL.EDIT_'+(_0x41ed40[_0x4384fd(0x4f4)]||_0x41ed40['app'])[_0x4384fd(0xa3c)](),_0x7cf048[_0x4384fd(0x1e4e)]=angular[_0x4384fd(0x289e)](_0x41ed40),_0x7cf048[_0x4384fd(0x402)]=_0x58e54d,_0x7cf048[_0x4384fd(0x6c2)]={};if(_0x7cf048['queue'][_0x4384fd(0xacb)])switch(_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x4f4)]?_0x7cf048['queue']['appType']['toLowerCase']():_0x7cf048['queue'][_0x4384fd(0x16e1)][_0x4384fd(0x2554)]()){case _0x4384fd(0x1ad6):break;case _0x4384fd(0x1084):{const _0x15cbfa=_0x7cf048['queue'][_0x4384fd(0xacb)][_0x4384fd(0x282c)](',');_0x7cf048['queue'][_0x4384fd(0x2125)]=_0x15cbfa[0x0],_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x1cbd)]=_0x15cbfa[0x1],_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x31b)]=_0x15cbfa[_0x4384fd(0x142e)](0x2,_0x15cbfa['length'])[_0x4384fd(0x9a6)](',');}break;case _0x4384fd(0x1b1a):{const _0x56018b=_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0xacb)][_0x4384fd(0x282c)](',');_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0xbfd)]=_0x56018b[0x0],_0x7cf048['queue'][_0x4384fd(0x4b2)]=_0x56018b[0x1],_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x1b1b)]=_0x56018b[0x2],_0x7cf048['queue']['language']=_0x56018b[0x3],_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x31b)]=_0x56018b[_0x4384fd(0x142e)](0x4,_0x56018b['length'])['join'](',');}break;case _0x4384fd(0x290d):{const _0x4aa164=_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0xacb)][_0x4384fd(0x282c)](',');_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x1466)]=_0x4aa164[0x0],_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x1b1)]=_0x4aa164[0x1],_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x17a2)]=_0x4aa164[0x2],_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x2797)]=_0x4aa164[0x3],_0x7cf048['queue'][_0x4384fd(0x31b)]=_0x4aa164[_0x4384fd(0x142e)](0x4,_0x4aa164[_0x4384fd(0x1b9e)])[_0x4384fd(0x9a6)](',');}break;case _0x4384fd(0x21a9):{const _0x1ba9b0=_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0xacb)][_0x4384fd(0x282c)](',');_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x95f)]=isNaN(_0x1ba9b0[0x0])?_0x1ba9b0[0x0]:parseInt(_0x1ba9b0[0x0],0xa),_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x39b)]=_0x1ba9b0['slice'](0x1,_0x1ba9b0['length'])[_0x4384fd(0x9a6)](',');}break;case _0x4384fd(0x18ca):_0x7cf048['queue'][_0x4384fd(0x39b)]=_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0xacb)];break;case'set':_0x7cf048[_0x4384fd(0x1e4e)]['name']=_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0xacb)][_0x4384fd(0x282c)]('=')[0x0],_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x1096)]=_0x7cf048['queue'][_0x4384fd(0xacb)][_0x4384fd(0x282c)]('=')[0x1];break;case _0x4384fd(0x1e67):_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x1bd9)]=_0x7cf048[_0x4384fd(0x1e4e)]['appdata'];break;default:{const _0x54eec6=_0x7cf048['queue']['appdata'][_0x4384fd(0x282c)](',');_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x1e4e)]=_0x28c606()[_0x4384fd(0x940)](_0x54eec6[0x0])?_0x54eec6[0x0]:isNaN(_0x54eec6[0x0])?_0x54eec6[0x0]:parseInt(_0x54eec6[0x0],0xa),_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x16d)]=_0x28c606()['isEmpty'](_0x54eec6[0x1])?_0x54eec6[0x1]:isNaN(_0x54eec6[0x1])?_0x54eec6[0x1]:parseInt(_0x54eec6[0x1],0xa);}break;}else _0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x1e4e)]=0x12c,_0x7cf048['queue']['timeout']=0x12c;_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x2185)]&&_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x2185)][_0x4384fd(0x2554)]()==='outbound'&&_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x4f4)]['toLowerCase']()===_0x4384fd(0x20eb)&&(_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x2524)]=_0x7cf048['queue'][_0x4384fd(0x267a)]?_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x267a)][_0x4384fd(0x282c)]('$')[0x0]:undefined,_0x7cf048[_0x4384fd(0x1e4e)][_0x4384fd(0x1a9b)]=_0x7cf048[_0x4384fd(0x1e4e)]['callerID']?'CALLERID(all)='+_0x7cf048['queue'][_0x4384fd(0x1abe)]:undefined);_0x7cf048[_0x4384fd(0x1b31)]=_0x3c02c0,_0x7cf048[_0x4384fd(0x16cb)]=_0x181730,_0x1bdc3e[_0x4384fd(0x4de)]('admin')?_0x337d08['mailQueue'][_0x4384fd(0x896)]({'fields':_0x4384fd(0x2ba),'sort':_0x4384fd(0x2494),'nolimit':_0x4384fd(0x1685)})[_0x4384fd(0x15e7)][_0x4384fd(0x64a)](function(_0x39ac82){const _0x18dd7a=_0x4384fd;_0x7cf048[_0x18dd7a(0x1c06)]=_0x39ac82['rows']||[];})[_0x4384fd(0x20cd)](function(_0x1cfc2e){const _0x2e0f62=_0x4384fd;_0x59aed7[_0x2e0f62(0x1bd0)]({'title':_0x1cfc2e['status']?'API:'+_0x1cfc2e['status']+'\x20-\x20'+_0x1cfc2e[_0x2e0f62(0x2115)]:_0x2e0f62(0xe03),'msg':_0x1cfc2e[_0x2e0f62(0x1c52)]?JSON[_0x2e0f62(0x2317)](_0x1cfc2e[_0x2e0f62(0x1c52)]):_0x1cfc2e[_0x2e0f62(0x2915)]()});}):_0x337d08['mailQueue'][_0x4384fd(0x896)]({'fields':_0x4384fd(0x2ba),'sort':_0x4384fd(0x2494),'nolimit':_0x4384fd(0x1685)})[_0x4384fd(0x15e7)][_0x4384fd(0x64a)](function(_0x254144){const _0x424f02=_0x4384fd;_0x7cf048[_0x424f02(0x1c06)]=_0x254144[_0x424f02(0x28b8)]||[];})[_0x4384fd(0x64a)](function(){const _0x3dea53=_0x4384fd;return _0x337d08[_0x3dea53(0x16b2)][_0x3dea53(0x896)]({'userProfileId':_0x7cf048[_0x3dea53(0x1d3d)][_0x3dea53(0x21ac)],'sectionId':0x259})[_0x3dea53(0x15e7)];})[_0x4384fd(0x64a)](function(_0x236146){const _0x1a87e7=_0x4384fd,_0x2b214e=_0x236146&&_0x236146['rows']?_0x236146[_0x1a87e7(0x28b8)][0x0]:null;if(!_0x2b214e){const _0x35847e=[];let _0x4a3d96=null;_0x7cf048['queue']&&(_0x4a3d96=_0x28c606()['find'](_0x7cf048[_0x1a87e7(0x1c06)],{'name':_0x7cf048[_0x1a87e7(0x1e4e)][_0x1a87e7(0x1e4e)]}));for(let _0x52dc5c=0x0;_0x52dc5c<_0x7cf048[_0x1a87e7(0x1c06)]['length'];_0x52dc5c++){_0x4a3d96&&_0x7cf048[_0x1a87e7(0x1c06)][_0x52dc5c]['id']===_0x4a3d96['id']&&(_0x7cf048[_0x1a87e7(0x1c06)][_0x52dc5c][_0x1a87e7(0xd4f)]=![],_0x35847e[_0x1a87e7(0x1954)](_0x7cf048['queues'][_0x52dc5c]));}_0x7cf048[_0x1a87e7(0x1c06)]=_0x35847e;}else{if(!_0x2b214e[_0x1a87e7(0x11da)])return _0x337d08[_0x1a87e7(0x1617)]['get']({'sectionId':_0x2b214e['id']})['$promise']['then'](function(_0x36ef63){const _0x42d778=_0x1a87e7,_0x1389b9=_0x28c606()[_0x42d778(0x1de5)](_0x36ef63['rows'],function(_0x1b66eb){const _0x2665cc=_0x42d778;return _0x28c606()['find'](_0x7cf048[_0x2665cc(0x1c06)],{'id':_0x1b66eb['resourceId']});});let _0x28445b=null;_0x7cf048[_0x42d778(0x1e4e)]&&(_0x28445b=_0x28c606()[_0x42d778(0x27bc)](_0x7cf048['queues'],{'name':_0x7cf048['queue'][_0x42d778(0x1e4e)]}));if(_0x28445b&&!_0x28c606()[_0x42d778(0x25f8)](_0x1389b9,['id',_0x28445b['id']])){const _0xa22276=_0x28c606()[_0x42d778(0x27bc)](_0x7cf048[_0x42d778(0x1c06)],{'id':_0x28445b['id']});_0xa22276[_0x42d778(0xd4f)]=![],_0x1389b9[_0x42d778(0x1954)](_0xa22276);}_0x7cf048[_0x42d778(0x1c06)]=_0x1389b9;});}})[_0x4384fd(0x20cd)](function(_0x4d994b){const _0x37fe6a=_0x4384fd;_0x59aed7[_0x37fe6a(0x1bd0)]({'title':_0x4d994b[_0x37fe6a(0x10b3)]?_0x37fe6a(0x575)+_0x4d994b['status']+_0x37fe6a(0x21db)+_0x4d994b['statusText']:_0x37fe6a(0x1238),'msg':_0x4d994b[_0x37fe6a(0x1c52)]?JSON[_0x37fe6a(0x2317)](_0x4d994b[_0x37fe6a(0x1c52)]):_0x4d994b[_0x37fe6a(0x2915)]()});});function _0x3c02c0(){const _0x5dad15=_0x4384fd;_0x7cf048[_0x5dad15(0xbae)]=[];const _0x1f1bf8=[];_0x7cf048[_0x5dad15(0x1e4e)][_0x5dad15(0x2185)]&&_0x7cf048[_0x5dad15(0x1e4e)][_0x5dad15(0x2185)]['toLowerCase']()===_0x5dad15(0xbce)&&_0x7cf048[_0x5dad15(0x1e4e)][_0x5dad15(0x4f4)]===_0x5dad15(0x17b6)&&(_0x7cf048[_0x5dad15(0x1e4e)][_0x5dad15(0x267a)]=_0x299ba6[_0x5dad15(0x242b)]?(_0x7cf048[_0x5dad15(0x1e4e)][_0x5dad15(0x2524)]||'')+_0x5dad15(0x1a75)+_0x299ba6[_0x5dad15(0x242b)]+'}':(_0x7cf048[_0x5dad15(0x1e4e)][_0x5dad15(0x2524)]||'')+_0x5dad15(0x5ad),_0x299ba6[_0x5dad15(0x1097)]!==_0x5dad15(0x2507)?_0x7cf048[_0x5dad15(0x1e4e)]['options']['indexOf'](_0x5dad15(0x13e0))<0x0&&(_0x7cf048[_0x5dad15(0x1e4e)][_0x5dad15(0x59e)]+=_0x5dad15(0x13e0)):_0x7cf048[_0x5dad15(0x1e4e)][_0x5dad15(0x59e)]=_0x7cf048[_0x5dad15(0x1e4e)][_0x5dad15(0x59e)]['replace'](_0x5dad15(0x13e0),''));const _0x3273aa=_0x28c606()['find'](_0x7cf048['queues'],{'name':_0x7cf048[_0x5dad15(0x1e4e)][_0x5dad15(0x1e4e)]});_0x3273aa&&(_0x7cf048[_0x5dad15(0x1e4e)][_0x28c606()[_0x5dad15(0xd56)](_0x5dad15(0xc71))+'QueueId']=_0x3273aa['id']);if(_0x7cf048[_0x5dad15(0x1e4e)]['appType']&&_0x7cf048[_0x5dad15(0x1e4e)][_0x5dad15(0x4f4)]===_0x5dad15(0x1ad6)){}else switch((_0x7cf048[_0x5dad15(0x1e4e)]['app']||_0x7cf048['queue'][_0x5dad15(0x4f4)])['toLowerCase']()){case _0x5dad15(0x1979):_0x7cf048[_0x5dad15(0x1e4e)][_0x5dad15(0xacb)]=_0x7cf048[_0x5dad15(0x1e4e)][_0x5dad15(0x2494)]+'='+_0x7cf048['queue']['value'];break;case _0x5dad15(0x1ad6):break;default:_0x1f1bf8[0x0]=_0x7cf048[_0x5dad15(0x1e4e)][_0x5dad15(0x1e4e)],_0x1f1bf8[0x1]=_0x7cf048[_0x5dad15(0x1e4e)][_0x5dad15(0x16d)],_0x7cf048['queue'][_0x5dad15(0xacb)]=_0x1f1bf8[_0x5dad15(0x9a6)](',');}_0x181730(_0x7cf048[_0x5dad15(0x1e4e)]);}function _0x181730(_0x2462e1){const _0x42155d=_0x4384fd;_0x87b07e[_0x42155d(0x268e)](_0x2462e1);}}const _0x2dcf40=_0x147d2c;;_0x1740df[_0x49a1e3(0x1e73)]=['$mdDialog','$q',_0x49a1e3(0x680),'mailAccountApp',_0x49a1e3(0x1b1e),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x1740df(_0x5a6a90,_0x47b113,_0x279241,_0x45cd3a,_0x11fad3,_0x40a098,_0x903bde,_0x5d9d7a){const _0x385eaa=_0x49a1e3,_0x1dfc21=this;_0x1dfc21[_0x385eaa(0x1d3d)]=_0x903bde[_0x385eaa(0x808)](),_0x1dfc21['errors']=[],_0x1dfc21[_0x385eaa(0x2021)]=_0x385eaa(0x273e)+(_0x45cd3a[_0x385eaa(0x4f4)]||_0x45cd3a[_0x385eaa(0x16e1)])[_0x385eaa(0xa3c)](),_0x1dfc21[_0x385eaa(0x1f06)]=angular[_0x385eaa(0x289e)](_0x45cd3a),_0x1dfc21[_0x385eaa(0x402)]=_0x5d9d7a,_0x1dfc21[_0x385eaa(0x6c2)]={};if(_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0xacb)])switch(_0x1dfc21[_0x385eaa(0x1f06)]['appType']?_0x1dfc21[_0x385eaa(0x1f06)]['appType'][_0x385eaa(0x2554)]():_0x1dfc21[_0x385eaa(0x1f06)]['app'][_0x385eaa(0x2554)]()){case _0x385eaa(0x1ad6):break;case'dialogflow':{const _0x38215f=_0x1dfc21[_0x385eaa(0x1f06)]['appdata'][_0x385eaa(0x282c)](',');_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x2125)]=_0x38215f[0x0],_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x1cbd)]=_0x38215f[0x1],_0x1dfc21['system']['welcomemessage']=_0x38215f[_0x385eaa(0x142e)](0x2,_0x38215f['length'])[_0x385eaa(0x9a6)](',');}break;case'dialogflowv2':{const _0x14194a=_0x1dfc21[_0x385eaa(0x1f06)]['appdata'][_0x385eaa(0x282c)](',');_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0xbfd)]=_0x14194a[0x0],_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x4b2)]=_0x14194a[0x1],_0x1dfc21[_0x385eaa(0x1f06)]['privateKey']=_0x14194a[0x2],_0x1dfc21['system'][_0x385eaa(0x1cbd)]=_0x14194a[0x3],_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x31b)]=_0x14194a[_0x385eaa(0x142e)](0x4,_0x14194a[_0x385eaa(0x1b9e)])['join'](',');}break;case _0x385eaa(0x290d):{const _0x4277a4=_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0xacb)][_0x385eaa(0x282c)](',');_0x1dfc21[_0x385eaa(0x1f06)]['accesskeyid']=_0x4277a4[0x0],_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x1b1)]=_0x4277a4[0x1],_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x17a2)]=_0x4277a4[0x2],_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x2797)]=_0x4277a4[0x3],_0x1dfc21['system'][_0x385eaa(0x31b)]=_0x4277a4[_0x385eaa(0x142e)](0x4,_0x4277a4[_0x385eaa(0x1b9e)])['join'](',');}break;case _0x385eaa(0x21a9):{const _0x41fde2=_0x1dfc21[_0x385eaa(0x1f06)]['appdata'][_0x385eaa(0x282c)](',');_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x95f)]=isNaN(_0x41fde2[0x0])?_0x41fde2[0x0]:parseInt(_0x41fde2[0x0],0xa),_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x39b)]=_0x41fde2[_0x385eaa(0x142e)](0x1,_0x41fde2[_0x385eaa(0x1b9e)])[_0x385eaa(0x9a6)](',');}break;case _0x385eaa(0x18ca):_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x39b)]=_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0xacb)];break;case _0x385eaa(0x1979):_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x2494)]=_0x1dfc21['system']['appdata'][_0x385eaa(0x282c)]('=')[0x0],_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x1096)]=_0x1dfc21[_0x385eaa(0x1f06)]['appdata']['split']('=')[0x1];break;case'agi':_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x1bd9)]=_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0xacb)];break;default:{const _0x27b53f=_0x1dfc21[_0x385eaa(0x1f06)]['appdata'][_0x385eaa(0x282c)](',');_0x1dfc21['system'][_0x385eaa(0xf42)]=_0x28c606()[_0x385eaa(0x940)](_0x27b53f[0x0])?_0x27b53f[0x0]:isNaN(_0x27b53f[0x0])?_0x27b53f[0x0]:parseInt(_0x27b53f[0x0],0xa),_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0xefb)]=_0x28c606()['isEmpty'](_0x27b53f[0x1])?_0x27b53f[0x1]:isNaN(_0x27b53f[0x1])?_0x27b53f[0x1]:parseInt(_0x27b53f[0x1],0xa);}break;}else _0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0xefb)]='';_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x2185)]&&_0x1dfc21[_0x385eaa(0x1f06)]['type'][_0x385eaa(0x2554)]()===_0x385eaa(0xbce)&&_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x4f4)]['toLowerCase']()===_0x385eaa(0x20eb)&&(_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x2524)]=_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x267a)]?_0x1dfc21['system'][_0x385eaa(0x267a)][_0x385eaa(0x282c)]('$')[0x0]:undefined,_0x1dfc21[_0x385eaa(0x1f06)]['callerId']=_0x1dfc21[_0x385eaa(0x1f06)][_0x385eaa(0x1abe)]?'CALLERID(all)='+_0x1dfc21[_0x385eaa(0x1f06)]['callerID']:undefined);_0x1dfc21[_0x385eaa(0x1b31)]=_0x1a2960,_0x1dfc21[_0x385eaa(0x16cb)]=_0x4487a3,_0x903bde['hasRole'](_0x385eaa(0x333))?_0x40a098[_0x385eaa(0xefb)][_0x385eaa(0x896)]({'fields':_0x385eaa(0x1427),'sort':_0x385eaa(0x2494),'nolimit':_0x385eaa(0x1685)})['$promise'][_0x385eaa(0x64a)](function(_0x4882c7){const _0x4fc003=_0x385eaa;_0x1dfc21[_0x4fc003(0x145c)]=_0x4882c7[_0x4fc003(0x28b8)]||[];})[_0x385eaa(0x20cd)](function(_0x535255){const _0x205169=_0x385eaa;_0x279241[_0x205169(0x1bd0)]({'title':_0x535255[_0x205169(0x10b3)]?'API:'+_0x535255[_0x205169(0x10b3)]+_0x205169(0x21db)+_0x535255['statusText']:_0x205169(0x1cf6),'msg':_0x535255[_0x205169(0x1c52)]?JSON['stringify'](_0x535255[_0x205169(0x1c52)]):_0x535255[_0x205169(0x2915)]()});}):_0x40a098['variable']['get']({'fields':_0x385eaa(0x1427),'sort':_0x385eaa(0x2494),'nolimit':_0x385eaa(0x1685)})[_0x385eaa(0x15e7)][_0x385eaa(0x64a)](function(_0x2e0e16){const _0x1f2f17=_0x385eaa;_0x1dfc21['variables']=_0x2e0e16[_0x1f2f17(0x28b8)]||[];})[_0x385eaa(0x64a)](function(){const _0x424e4e=_0x385eaa;return _0x40a098['userProfileSection'][_0x424e4e(0x896)]({'userProfileId':_0x1dfc21[_0x424e4e(0x1d3d)][_0x424e4e(0x21ac)],'sectionId':0x3f4})['$promise'];})['then'](function(_0x573de2){const _0x1cbfec=_0x385eaa,_0x41e131=_0x573de2&&_0x573de2[_0x1cbfec(0x28b8)]?_0x573de2['rows'][0x0]:null;if(!_0x41e131){const _0xe931a1=[];let _0x4a32f8=null;_0x1dfc21[_0x1cbfec(0x1f06)]&&(_0x4a32f8=_0x28c606()[_0x1cbfec(0x27bc)](_0x1dfc21[_0x1cbfec(0x145c)],{'name':_0x1dfc21[_0x1cbfec(0x1f06)][_0x1cbfec(0xefb)]}));for(let _0x123177=0x0;_0x123177<_0x1dfc21['variables'][_0x1cbfec(0x1b9e)];_0x123177++){_0x4a32f8&&_0x1dfc21[_0x1cbfec(0x145c)][_0x123177]['id']===_0x4a32f8['id']&&(_0x1dfc21[_0x1cbfec(0x145c)][_0x123177][_0x1cbfec(0xd4f)]=![],_0xe931a1[_0x1cbfec(0x1954)](_0x1dfc21[_0x1cbfec(0x145c)][_0x123177]));}_0x1dfc21[_0x1cbfec(0x145c)]=_0xe931a1;}else{if(!_0x41e131[_0x1cbfec(0x11da)])return _0x40a098[_0x1cbfec(0x1617)]['get']({'sectionId':_0x41e131['id']})[_0x1cbfec(0x15e7)][_0x1cbfec(0x64a)](function(_0x489418){const _0x3b1ed3=_0x1cbfec,_0x2ddc28=_0x28c606()[_0x3b1ed3(0x1de5)](_0x489418[_0x3b1ed3(0x28b8)],function(_0x3f15b4){const _0x4ec71b=_0x3b1ed3;return _0x28c606()[_0x4ec71b(0x27bc)](_0x1dfc21[_0x4ec71b(0x145c)],{'id':_0x3f15b4[_0x4ec71b(0x145)]});});let _0x312c63=null;_0x1dfc21[_0x3b1ed3(0x1f06)]&&(_0x312c63=_0x28c606()[_0x3b1ed3(0x27bc)](_0x1dfc21[_0x3b1ed3(0x145c)],{'name':_0x1dfc21[_0x3b1ed3(0x1f06)][_0x3b1ed3(0xefb)]}));if(_0x312c63&&!_0x28c606()[_0x3b1ed3(0x25f8)](_0x2ddc28,['id',_0x312c63['id']])){const _0x3a50d7=_0x28c606()[_0x3b1ed3(0x27bc)](_0x1dfc21[_0x3b1ed3(0x145c)],{'id':_0x312c63['id']});_0x3a50d7['canSelect']=![],_0x2ddc28[_0x3b1ed3(0x1954)](_0x3a50d7);}_0x1dfc21[_0x3b1ed3(0x145c)]=_0x2ddc28;});}})[_0x385eaa(0x20cd)](function(_0x57303f){const _0x184541=_0x385eaa;_0x279241[_0x184541(0x1bd0)]({'title':_0x57303f[_0x184541(0x10b3)]?'API:'+_0x57303f['status']+_0x184541(0x21db)+_0x57303f['statusText']:_0x184541(0x284a),'msg':_0x57303f[_0x184541(0x1c52)]?JSON[_0x184541(0x2317)](_0x57303f[_0x184541(0x1c52)]):_0x57303f['toString']()});});function _0x1a2960(){const _0x9076fc=_0x385eaa;_0x1dfc21[_0x9076fc(0xbae)]=[];const _0x5ffd1d=[];_0x1dfc21['system']['type']&&_0x1dfc21['system'][_0x9076fc(0x2185)]['toLowerCase']()===_0x9076fc(0xbce)&&_0x1dfc21['system']['appType']===_0x9076fc(0x17b6)&&(_0x1dfc21[_0x9076fc(0x1f06)]['phone']=_0x11fad3[_0x9076fc(0x242b)]?(_0x1dfc21['system'][_0x9076fc(0x2524)]||'')+_0x9076fc(0x1a75)+_0x11fad3['cutdigits']+'}':(_0x1dfc21[_0x9076fc(0x1f06)][_0x9076fc(0x2524)]||'')+_0x9076fc(0x5ad),_0x11fad3[_0x9076fc(0x1097)]!==_0x9076fc(0x2507)?_0x1dfc21[_0x9076fc(0x1f06)]['options'][_0x9076fc(0x1b28)](_0x9076fc(0x13e0))<0x0&&(_0x1dfc21[_0x9076fc(0x1f06)]['options']+=_0x9076fc(0x13e0)):_0x1dfc21['system'][_0x9076fc(0x59e)]=_0x1dfc21[_0x9076fc(0x1f06)]['options'][_0x9076fc(0x1353)](_0x9076fc(0x13e0),''));if(_0x1dfc21[_0x9076fc(0x1f06)][_0x9076fc(0x4f4)]&&_0x1dfc21[_0x9076fc(0x1f06)][_0x9076fc(0x4f4)]===_0x9076fc(0x1ad6)){}else switch((_0x1dfc21['system'][_0x9076fc(0x16e1)]||_0x1dfc21[_0x9076fc(0x1f06)][_0x9076fc(0x4f4)])[_0x9076fc(0x2554)]()){case'set':_0x1dfc21['system']['appdata']=_0x1dfc21[_0x9076fc(0x1f06)]['name']+'='+_0x1dfc21[_0x9076fc(0x1f06)][_0x9076fc(0x1096)];break;case _0x9076fc(0x1ad6):break;default:_0x5ffd1d[0x0]=_0x1dfc21['system'][_0x9076fc(0xf42)],_0x5ffd1d[0x1]=_0x1dfc21[_0x9076fc(0x1f06)][_0x9076fc(0xefb)],_0x1dfc21['system']['appdata']=_0x5ffd1d['join'](',');}_0x4487a3(_0x1dfc21[_0x9076fc(0x1f06)]);}function _0x4487a3(_0x4c006d){const _0x5e5959=_0x385eaa;_0x5a6a90[_0x5e5959(0x268e)](_0x4c006d);}}const _0x521a17=_0x1740df;;_0x2bcc9c[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0x9bd),_0x49a1e3(0x1b1e),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'crudPermissions'];function _0x2bcc9c(_0x3c437c,_0x3e2523,_0x1eea70,_0x41a26c,_0x2d1cf2,_0x3aa570,_0xf31a36,_0x3c58d8){const _0x472b47=_0x49a1e3,_0x46505d=this;_0x46505d['currentUser']=_0xf31a36['getCurrentUser'](),_0x46505d[_0x472b47(0xbae)]=[],_0x46505d['title']=_0x472b47(0x273e)+(_0x41a26c[_0x472b47(0x4f4)]||_0x41a26c[_0x472b47(0x16e1)])['toUpperCase'](),_0x46505d[_0x472b47(0xac8)]=angular['copy'](_0x41a26c),_0x46505d[_0x472b47(0x402)]=_0x3c58d8,_0x46505d[_0x472b47(0x6c2)]={};if(_0x46505d['tag'][_0x472b47(0xacb)])switch(_0x46505d['tag']['appType']?_0x46505d[_0x472b47(0xac8)][_0x472b47(0x4f4)][_0x472b47(0x2554)]():_0x46505d[_0x472b47(0xac8)][_0x472b47(0x16e1)][_0x472b47(0x2554)]()){case _0x472b47(0x1ad6):break;case _0x472b47(0x1084):{const _0xfd7562=_0x46505d[_0x472b47(0xac8)][_0x472b47(0xacb)][_0x472b47(0x282c)](',');_0x46505d[_0x472b47(0xac8)]['key']=_0xfd7562[0x0],_0x46505d[_0x472b47(0xac8)][_0x472b47(0x1cbd)]=_0xfd7562[0x1],_0x46505d['tag']['welcomemessage']=_0xfd7562[_0x472b47(0x142e)](0x2,_0xfd7562[_0x472b47(0x1b9e)])[_0x472b47(0x9a6)](',');}break;case _0x472b47(0x1b1a):{const _0x2b8012=_0x46505d['tag']['appdata'][_0x472b47(0x282c)](',');_0x46505d['tag'][_0x472b47(0xbfd)]=_0x2b8012[0x0],_0x46505d['tag'][_0x472b47(0x4b2)]=_0x2b8012[0x1],_0x46505d[_0x472b47(0xac8)][_0x472b47(0x1b1b)]=_0x2b8012[0x2],_0x46505d['tag'][_0x472b47(0x1cbd)]=_0x2b8012[0x3],_0x46505d['tag'][_0x472b47(0x31b)]=_0x2b8012[_0x472b47(0x142e)](0x4,_0x2b8012[_0x472b47(0x1b9e)])[_0x472b47(0x9a6)](',');}break;case _0x472b47(0x290d):{const _0x26170a=_0x46505d['tag'][_0x472b47(0xacb)]['split'](',');_0x46505d[_0x472b47(0xac8)][_0x472b47(0x1466)]=_0x26170a[0x0],_0x46505d[_0x472b47(0xac8)]['secretaccesskey']=_0x26170a[0x1],_0x46505d[_0x472b47(0xac8)][_0x472b47(0x17a2)]=_0x26170a[0x2],_0x46505d['tag'][_0x472b47(0x2797)]=_0x26170a[0x3],_0x46505d[_0x472b47(0xac8)]['welcomemessage']=_0x26170a[_0x472b47(0x142e)](0x4,_0x26170a[_0x472b47(0x1b9e)])[_0x472b47(0x9a6)](',');}break;case _0x472b47(0x21a9):{const _0x422592=_0x46505d[_0x472b47(0xac8)][_0x472b47(0xacb)][_0x472b47(0x282c)](',');_0x46505d[_0x472b47(0xac8)][_0x472b47(0x95f)]=isNaN(_0x422592[0x0])?_0x422592[0x0]:parseInt(_0x422592[0x0],0xa),_0x46505d[_0x472b47(0xac8)][_0x472b47(0x39b)]=_0x422592[_0x472b47(0x142e)](0x1,_0x422592[_0x472b47(0x1b9e)])[_0x472b47(0x9a6)](',');}break;case'message':_0x46505d[_0x472b47(0xac8)][_0x472b47(0x39b)]=_0x46505d['tag'][_0x472b47(0xacb)];break;case _0x472b47(0x1979):_0x46505d['tag']['name']=_0x46505d[_0x472b47(0xac8)][_0x472b47(0xacb)][_0x472b47(0x282c)]('=')[0x0],_0x46505d[_0x472b47(0xac8)][_0x472b47(0x1096)]=_0x46505d[_0x472b47(0xac8)]['appdata'][_0x472b47(0x282c)]('=')[0x1];break;case _0x472b47(0x1e67):_0x46505d['tag']['project']=_0x46505d[_0x472b47(0xac8)][_0x472b47(0xacb)];break;default:{const _0x1cfd20=_0x46505d[_0x472b47(0xac8)]['appdata'][_0x472b47(0x282c)](',');_0x46505d['tag'][_0x472b47(0xac8)]=_0x28c606()['isEmpty'](_0x1cfd20[0x0])?_0x1cfd20[0x0]:isNaN(_0x1cfd20[0x0])?_0x1cfd20[0x0]:parseInt(_0x1cfd20[0x0],0xa);}break;}else{}_0x46505d['tag'][_0x472b47(0x2185)]&&_0x46505d[_0x472b47(0xac8)][_0x472b47(0x2185)][_0x472b47(0x2554)]()===_0x472b47(0xbce)&&_0x46505d[_0x472b47(0xac8)][_0x472b47(0x4f4)][_0x472b47(0x2554)]()===_0x472b47(0x20eb)&&(_0x46505d['tag']['prefix']=_0x46505d[_0x472b47(0xac8)]['phone']?_0x46505d['tag'][_0x472b47(0x267a)]['split']('$')[0x0]:undefined,_0x46505d['tag'][_0x472b47(0x1a9b)]=_0x46505d['tag']['callerID']?_0x472b47(0x2489)+_0x46505d[_0x472b47(0xac8)][_0x472b47(0x1abe)]:undefined);_0x46505d[_0x472b47(0x1b31)]=_0x29b19e,_0x46505d[_0x472b47(0x16cb)]=_0x1e2c08,_0xf31a36[_0x472b47(0x4de)](_0x472b47(0x333))?_0x3aa570['tag'][_0x472b47(0x896)]({'fields':'id,name','sort':_0x472b47(0x2494),'nolimit':'true'})[_0x472b47(0x15e7)][_0x472b47(0x64a)](function(_0x10d298){_0x46505d['tags']=_0x10d298['rows']||[];})[_0x472b47(0x20cd)](function(_0x222678){const _0x39b546=_0x472b47;_0x1eea70[_0x39b546(0x1bd0)]({'title':_0x222678['status']?_0x39b546(0x575)+_0x222678['status']+_0x39b546(0x21db)+_0x222678[_0x39b546(0x2115)]:_0x39b546(0x28be),'msg':_0x222678[_0x39b546(0x1c52)]?JSON[_0x39b546(0x2317)](_0x222678['data']):_0x222678['toString']()});}):_0x3aa570[_0x472b47(0xac8)]['get']({'fields':_0x472b47(0x1427),'sort':_0x472b47(0x2494),'nolimit':_0x472b47(0x1685)})[_0x472b47(0x15e7)][_0x472b47(0x64a)](function(_0x5db2af){const _0x1ffea8=_0x472b47;_0x46505d[_0x1ffea8(0x16a6)]=_0x5db2af[_0x1ffea8(0x28b8)]||[];})['then'](function(){const _0x264936=_0x472b47;return _0x3aa570['userProfileSection'][_0x264936(0x896)]({'userProfileId':_0x46505d[_0x264936(0x1d3d)][_0x264936(0x21ac)],'sectionId':0x3f0})['$promise'];})[_0x472b47(0x64a)](function(_0x473485){const _0x419175=_0x472b47,_0xff5ac8=_0x473485&&_0x473485[_0x419175(0x28b8)]?_0x473485[_0x419175(0x28b8)][0x0]:null;if(!_0xff5ac8){const _0x2098a6=[];let _0x237910=null;_0x46505d[_0x419175(0xac8)]&&(_0x237910=_0x28c606()[_0x419175(0x27bc)](_0x46505d[_0x419175(0x16a6)],{'name':_0x46505d[_0x419175(0xac8)][_0x419175(0xac8)]}));for(let _0x12cdd0=0x0;_0x12cdd0<_0x46505d[_0x419175(0x16a6)]['length'];_0x12cdd0++){_0x237910&&_0x46505d[_0x419175(0x16a6)][_0x12cdd0]['id']===_0x237910['id']&&(_0x46505d[_0x419175(0x16a6)][_0x12cdd0][_0x419175(0xd4f)]=![],_0x2098a6[_0x419175(0x1954)](_0x46505d[_0x419175(0x16a6)][_0x12cdd0]));}_0x46505d['tags']=_0x2098a6;}else{if(!_0xff5ac8[_0x419175(0x11da)])return _0x3aa570[_0x419175(0x1617)][_0x419175(0x896)]({'sectionId':_0xff5ac8['id']})[_0x419175(0x15e7)][_0x419175(0x64a)](function(_0x593e68){const _0x262982=_0x419175,_0x250ee1=_0x28c606()[_0x262982(0x1de5)](_0x593e68['rows'],function(_0xfc1763){const _0x543a65=_0x262982;return _0x28c606()[_0x543a65(0x27bc)](_0x46505d[_0x543a65(0x16a6)],{'id':_0xfc1763[_0x543a65(0x145)]});});let _0x3b596c=null;_0x46505d['tag']&&(_0x3b596c=_0x28c606()[_0x262982(0x27bc)](_0x46505d[_0x262982(0x16a6)],{'name':_0x46505d['tag']['tag']}));if(_0x3b596c&&!_0x28c606()[_0x262982(0x25f8)](_0x250ee1,['id',_0x3b596c['id']])){const _0x2b5f20=_0x28c606()['find'](_0x46505d[_0x262982(0x16a6)],{'id':_0x3b596c['id']});_0x2b5f20[_0x262982(0xd4f)]=![],_0x250ee1[_0x262982(0x1954)](_0x2b5f20);}_0x46505d['tags']=_0x250ee1;});}})[_0x472b47(0x20cd)](function(_0x80c5a5){const _0x16264a=_0x472b47;_0x1eea70[_0x16264a(0x1bd0)]({'title':_0x80c5a5[_0x16264a(0x10b3)]?_0x16264a(0x575)+_0x80c5a5[_0x16264a(0x10b3)]+_0x16264a(0x21db)+_0x80c5a5[_0x16264a(0x2115)]:_0x16264a(0x14a7),'msg':_0x80c5a5[_0x16264a(0x1c52)]?JSON[_0x16264a(0x2317)](_0x80c5a5['data']):_0x80c5a5[_0x16264a(0x2915)]()});});function _0x29b19e(){const _0x5b8210=_0x472b47;_0x46505d[_0x5b8210(0xbae)]=[];const _0x25fdae=[];_0x46505d['tag']['type']&&_0x46505d[_0x5b8210(0xac8)][_0x5b8210(0x2185)][_0x5b8210(0x2554)]()===_0x5b8210(0xbce)&&_0x46505d['tag'][_0x5b8210(0x4f4)]===_0x5b8210(0x17b6)&&(_0x46505d['tag'][_0x5b8210(0x267a)]=_0x2d1cf2['cutdigits']?(_0x46505d[_0x5b8210(0xac8)]['prefix']||'')+_0x5b8210(0x1a75)+_0x2d1cf2[_0x5b8210(0x242b)]+'}':(_0x46505d[_0x5b8210(0xac8)]['prefix']||'')+_0x5b8210(0x5ad),_0x2d1cf2[_0x5b8210(0x1097)]!=='none'?_0x46505d['tag'][_0x5b8210(0x59e)]['indexOf'](_0x5b8210(0x13e0))<0x0&&(_0x46505d[_0x5b8210(0xac8)][_0x5b8210(0x59e)]+=_0x5b8210(0x13e0)):_0x46505d['tag']['options']=_0x46505d['tag'][_0x5b8210(0x59e)]['replace'](_0x5b8210(0x13e0),''));const _0x301621=_0x28c606()[_0x5b8210(0x27bc)](_0x46505d[_0x5b8210(0x16a6)],{'name':_0x46505d['tag'][_0x5b8210(0xac8)]});_0x301621&&(_0x46505d[_0x5b8210(0xac8)][_0x5b8210(0x923)]=_0x301621['id']);if(_0x46505d['tag'][_0x5b8210(0x4f4)]&&_0x46505d[_0x5b8210(0xac8)]['appType']===_0x5b8210(0x1ad6)){}else switch((_0x46505d['tag']['app']||_0x46505d['tag']['appType'])[_0x5b8210(0x2554)]()){case'set':_0x46505d[_0x5b8210(0xac8)]['appdata']=_0x46505d['tag'][_0x5b8210(0x2494)]+'='+_0x46505d[_0x5b8210(0xac8)][_0x5b8210(0x1096)];break;case _0x5b8210(0x1ad6):break;default:_0x25fdae[0x0]=_0x46505d[_0x5b8210(0xac8)][_0x5b8210(0xac8)],_0x46505d['tag'][_0x5b8210(0xacb)]=_0x25fdae[_0x5b8210(0x9a6)](',');}_0x1e2c08(_0x46505d['tag']);}function _0x1e2c08(_0x34d9ca){const _0x242555=_0x472b47;_0x3c437c[_0x242555(0x268e)](_0x34d9ca);}}const _0x37a6f8=_0x2bcc9c;;_0x3fdccb[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),'toasty',_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x3fdccb(_0x56e9cd,_0x424e4f,_0x33a8a9,_0x36ce4f,_0x4c5174,_0x107713,_0x34f4c1,_0x14b813,_0x47f4ed,_0x3d1231,_0xc2c8f1){const _0x43e0b3=_0x49a1e3,_0x6ea5b6=this;_0x6ea5b6[_0x43e0b3(0x1d3d)]=_0xc2c8f1[_0x43e0b3(0x808)](),_0x6ea5b6[_0x43e0b3(0x1b1e)]={},_0x6ea5b6[_0x43e0b3(0x1a82)]={'count':0x0,'rows':[]},_0x6ea5b6[_0x43e0b3(0x2840)]=[],_0x6ea5b6[_0x43e0b3(0x402)],_0x6ea5b6[_0x43e0b3(0x289a)]={'read':_0x43e0b3(0x8f1),'closed':_0x43e0b3(0x8f1),'sort':_0x43e0b3(0x1b35),'includeAll':_0x43e0b3(0x1685),'limit':0xa,'page':0x1},_0x6ea5b6['init']=_0x38ca79,_0x6ea5b6[_0x43e0b3(0x217e)]=_0x51031b,_0x6ea5b6[_0x43e0b3(0x82d)]=_0x42131e,_0x6ea5b6[_0x43e0b3(0x1339)]=_0x239bc6,_0x6ea5b6[_0x43e0b3(0x2919)]=_0x5697c4,_0x6ea5b6[_0x43e0b3(0xf07)]=_0x1eb663,_0x6ea5b6[_0x43e0b3(0x114f)]=_0x5e6ba2,_0x6ea5b6['exportSelectedMailAccountInteractions']=_0x2b423d,_0x6ea5b6[_0x43e0b3(0x1868)]=_0x5d7e62,_0x6ea5b6['deleteSelectedMailAccountInteractions']=_0x21e684;function _0x38ca79(_0x386734,_0x1419c8){const _0x8c0b60=_0x43e0b3;_0x6ea5b6[_0x8c0b60(0x1b1e)]=_0x386734,_0x6ea5b6[_0x8c0b60(0x402)]=typeof _0x1419c8!==_0x8c0b60(0x19a1)?_0x1419c8:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x6ea5b6[_0x8c0b60(0x289a)][_0x8c0b60(0xa4c)]=_0x6ea5b6[_0x8c0b60(0x1b1e)]['id'],_0x6ea5b6[_0x8c0b60(0x1b2f)]={'fields':_0x1ff6d8()},_0x449085();}function _0x449085(){const _0x41fd01=_0x43e0b3;return _0x3d1231['tag'][_0x41fd01(0x896)]()[_0x41fd01(0x15e7)][_0x41fd01(0x64a)](function(_0x491f5f){const _0x280baa=_0x41fd01;_0x6ea5b6[_0x280baa(0x16a6)]=_0x491f5f||{'count':0x0,'rows':[]};})['then'](function(){const _0x2509e2=_0x41fd01;return _0x3d1231['mailSubstatus'][_0x2509e2(0x896)]({'nolimit':!![]})['$promise'][_0x2509e2(0x64a)](function(_0x1b4deb){const _0x655d81=_0x2509e2;_0x6ea5b6[_0x655d81(0x21f9)]=_0x1b4deb||{'count':0x0,'rows':[]};});})['then'](function(){const _0x35e874=_0x41fd01;_0x6ea5b6[_0x35e874(0x9fc)]=_0x3ba6a();});}function _0x3ba6a(){const _0x21cd62=_0x43e0b3;return[{'name':_0x21cd62(0x1967),'key':'createdAt','type':'date','label':'DASHBOARDS.SELECT_DATE'},{'name':_0x21cd62(0x17af),'key':'read','type':_0x21cd62(0x2926),'label':_0x21cd62(0x23f7),'customOptions':[{'value':0x0,'translate':_0x21cd62(0x13be)},{'value':0x1,'translate':_0x21cd62(0x1889)},{'value':null,'translate':_0x21cd62(0x2200)}]},{'name':_0x21cd62(0x2311),'key':'closed','type':_0x21cd62(0x2926),'label':_0x21cd62(0x110d),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x21cd62(0x5cd)},{'value':null,'translate':_0x21cd62(0x2200)}]},{'name':_0x21cd62(0x143c),'key':_0x21cd62(0x2045),'type':_0x21cd62(0x2926),'label':_0x21cd62(0x1bdb),'options':_0x6ea5b6[_0x21cd62(0x21f9)][_0x21cd62(0x28b8)],'customOptions':[{'value':_0x21cd62(0x8f1),'translate':_0x21cd62(0x9b1)},{'value':undefined,'translate':_0x21cd62(0x2200)}],'ngValue':_0x21cd62(0x2494),'ngIf':_0x21cd62(0x1af2)},{'name':_0x21cd62(0x12ad),'key':'UserId','type':_0x21cd62(0x2926),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x21cd62(0x8f1),'translate':_0x21cd62(0x276d)},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':'Tag','key':'tag','type':_0x21cd62(0x20ae),'label':_0x21cd62(0x1208),'options':_0x6ea5b6[_0x21cd62(0x16a6)][_0x21cd62(0x28b8)],'placeholder':_0x21cd62(0x6a6)}];}function _0x1ff6d8(){const _0x3d9c8c=_0x43e0b3;return[{'name':'Id','column':'id','type':_0x3d9c8c(0x2113)},{'name':'Contact','column':_0x3d9c8c(0x1c38),'type':'autocomplete','options':{'searchFields':[_0x3d9c8c(0x2518),_0x3d9c8c(0x21c4),_0x3d9c8c(0xd47)],'route':{'model':'cmContact','action':_0x3d9c8c(0x896),'params':{'fields':'id,firstName,lastName,email','Contact':_0x3d9c8c(0xb96),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x3d9c8c(0x14b5)]}},{'name':'Subject','column':_0x3d9c8c(0x25bc),'type':_0x3d9c8c(0x39b),'options':{'excludedOperators':['$eq',_0x3d9c8c(0x14b5)]}},{'name':_0x3d9c8c(0x19fb),'column':_0x3d9c8c(0x2233),'type':_0x3d9c8c(0x39b),'options':{'excludedOperators':[_0x3d9c8c(0x1743),_0x3d9c8c(0x14b5)]}},{'name':_0x3d9c8c(0x2311),'column':_0x3d9c8c(0x1140),'type':'select','values':[{'id':0x0,'translate':_0x3d9c8c(0x1313)},{'id':0x1,'translate':_0x3d9c8c(0x5cd)}],'options':{'excludedOperators':[_0x3d9c8c(0x14b5)]}},{'name':_0x3d9c8c(0x143c),'column':'substatus','type':_0x3d9c8c(0x20ae),'options':{'field':_0x3d9c8c(0x2494),'route':{'model':'mailSubstatus','action':_0x3d9c8c(0x896),'params':{'nolimit':!![]}},'excludedOperators':[_0x3d9c8c(0x9eb)]}},{'name':'Agent','column':_0x3d9c8c(0x1098),'type':'autocomplete','options':{'table':'i','route':{'model':'user','action':_0x3d9c8c(0x896),'params':{'role':_0x3d9c8c(0x11ae),'fields':_0x3d9c8c(0xd53),'nolimit':!![]}},'searchFields':['fullname',_0x3d9c8c(0x2494)],'extraOperators':[_0x3d9c8c(0xe87)],'excludedOperators':[_0x3d9c8c(0x14b5)]}},{'name':_0x3d9c8c(0x1178),'column':_0x3d9c8c(0x1e9f),'type':_0x3d9c8c(0x20ae),'options':{'route':{'model':_0x3d9c8c(0xac8),'action':'get','params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x3d9c8c(0x1967),'column':_0x3d9c8c(0x2378),'type':_0x3d9c8c(0x232e),'options':{'excludedOperators':['$ne']}},{'name':_0x3d9c8c(0xff4),'column':_0x3d9c8c(0x18d3),'type':_0x3d9c8c(0x2926),'values':[{'id':0x1,'translate':_0x3d9c8c(0x1889)},{'id':0x0,'translate':_0x3d9c8c(0x13be)}],'options':{'excludedOperators':[_0x3d9c8c(0x14b5)]}}];}function _0x5e6ba2(){const _0xc02f05=_0x43e0b3;_0x34f4c1[_0xc02f05(0xa60)]({'controller':_0xc02f05(0x271c),'controllerAs':'vm','templateUrl':_0x46e7cb,'parent':angular[_0xc02f05(0x1f81)](_0x14b813[_0xc02f05(0xb49)]),'clickOutsideToClose':![],'locals':{'fields':_0x6ea5b6[_0xc02f05(0x1b2f)][_0xc02f05(0xf26)],'color':undefined,'storagePath':_0xc02f05(0x19fa)},'fullscreen':!![]})[_0xc02f05(0x64a)](function(_0x17081f){const _0x20fb14=_0xc02f05;_0x6ea5b6[_0x20fb14(0x289a)][_0x20fb14(0xb58)]=_0x17081f===![]?undefined:_0x17081f;if(_0x6ea5b6[_0x20fb14(0x289a)][_0x20fb14(0xb58)])_0x6ea5b6[_0x20fb14(0x289a)][_0x20fb14(0xb58)]+=_0x20fb14(0x77a)+_0x6ea5b6[_0x20fb14(0x1b1e)]['id']+']',_0x5697c4();else _0x17081f===![]&&_0x5697c4();})['catch'](function(_0x2a31a8){const _0x306023=_0xc02f05;_0x47f4ed[_0x306023(0x1bd0)]({'title':_0x306023(0x2440),'msg':_0x2a31a8['data']?JSON[_0x306023(0x2317)](_0x2a31a8[_0x306023(0x1c52)][_0x306023(0x18ca)]):_0x2a31a8[_0x306023(0x2915)]()});});}function _0x42131e(_0x289b4e,_0x491e70,_0x1b6819){const _0x1922dc=_0x43e0b3;return _0x3d1231['mailInteraction'][_0x1922dc(0x19b3)]({'id':_0x289b4e['id'],'exists':!![],'attachments':_0x1b6819})[_0x1922dc(0x15e7)][_0x1922dc(0x64a)](function(_0x5c1af2){const _0x1f2e8e=_0x1922dc,_0x1d0668=[_0x5c1af2[_0x1f2e8e(0x5a9)]];let _0x4a9b65=_0x1f2e8e(0x73a)+_0x289b4e['id'];const _0x17d632=new Blob(_0x1d0668,{'type':_0x5c1af2['type']});_0x4a9b65=_0x1f2e8e(0x1aa9)+_0x289b4e['id']+_0x1f2e8e(0x2177);const _0x56f128=window[_0x1f2e8e(0x123f)][_0x1f2e8e(0x2978)]('a');_0x56f128[_0x1f2e8e(0x1280)](_0x1f2e8e(0x25d0),URL[_0x1f2e8e(0x206)](_0x17d632)),_0x56f128['setAttribute'](_0x1f2e8e(0x19b3),_0x4a9b65),document[_0x1f2e8e(0xb49)][_0x1f2e8e(0x2661)](_0x56f128),_0x56f128[_0x1f2e8e(0x2668)]();})[_0x1922dc(0x20cd)](function(_0x40ae6c){const _0x288757=_0x1922dc;if(_0x40ae6c[_0x288757(0x1c52)]&&_0x40ae6c[_0x288757(0x1c52)][_0x288757(0xbae)]&&_0x40ae6c[_0x288757(0x1c52)][_0x288757(0xbae)][_0x288757(0x1b9e)])for(let _0x57ce01=0x0;_0x57ce01<_0x40ae6c[_0x288757(0x1c52)]['errors'][_0x288757(0x1b9e)];_0x57ce01+=0x1){_0x47f4ed[_0x288757(0x1bd0)]({'title':_0x40ae6c[_0x288757(0x1c52)][_0x288757(0xbae)][_0x57ce01][_0x288757(0x2185)],'msg':_0x40ae6c[_0x288757(0x1c52)][_0x288757(0xbae)][_0x57ce01][_0x288757(0x18ca)]});}else _0x47f4ed['error']({'title':_0x40ae6c[_0x288757(0x10b3)]?'API:'+_0x40ae6c[_0x288757(0x10b3)]+'\x20-\x20'+_0x40ae6c[_0x288757(0x2115)]:_0x288757(0xce0),'msg':_0x40ae6c[_0x288757(0x1c52)]?JSON[_0x288757(0x2317)](_0x40ae6c['data'][_0x288757(0x18ca)]):_0x40ae6c['toString']()});});}function _0x51031b(_0x54ea7c,_0x19d718){const _0x238639=_0x43e0b3,_0x3f51e9=_0x34f4c1[_0x238639(0x856)]()[_0x238639(0x2021)](_0x238639(0x686))[_0x238639(0x33a)](''+(_0x54ea7c[_0x238639(0x2494)]||_0x54ea7c['id']&&_0x28c606()[_0x238639(0x1766)](_0x238639(0x1302))+_0x54ea7c['id']||_0x238639(0x73a))+_0x238639(0x26d0)+_0x238639(0x4b8))[_0x238639(0x213e)](_0x238639(0x1e54))[_0x238639(0x2283)](_0x19d718)['ok']('OK')['cancel']('CANCEL');_0x34f4c1[_0x238639(0xa60)](_0x3f51e9)[_0x238639(0x64a)](function(){_0x5d7e62(_0x54ea7c);},function(){const _0xac5004=_0x238639;console[_0xac5004(0x9b4)]('CANCEL');});}function _0x239bc6(_0x2968f8){const _0x5070aa=_0x43e0b3;_0x6ea5b6[_0x5070aa(0x1a82)]=_0x2968f8||{'count':0x0,'rows':[]};for(let _0xa461b3=0x0;_0xa461b3<_0x6ea5b6[_0x5070aa(0x1a82)][_0x5070aa(0x28b8)][_0x5070aa(0x1b9e)];_0xa461b3+=0x1){const _0x185598=_0x6ea5b6['mailAccountInteractions'][_0x5070aa(0x28b8)][_0xa461b3];_0x3800ff(_0x185598),_0x185598['Owner']['name']=_0x3f8193(_0x185598);}}function _0x5697c4(){const _0x39fe74=_0x43e0b3;_0x6ea5b6['query'][_0x39fe74(0x24f9)]=(_0x6ea5b6[_0x39fe74(0x289a)][_0x39fe74(0xc72)]-0x1)*_0x6ea5b6[_0x39fe74(0x289a)][_0x39fe74(0x25bb)],_0x6ea5b6[_0x39fe74(0x1713)]=_0x3d1231['mailInteraction'][_0x39fe74(0x896)](_0x6ea5b6[_0x39fe74(0x289a)],_0x239bc6)[_0x39fe74(0x15e7)];}function _0x1eb663(_0x362d0d,_0x126e59){const _0x2c1850=_0x43e0b3;_0x34f4c1[_0x2c1850(0xa60)]({'controller':'AgentGeneralInteractionController','controllerAs':'vm','templateUrl':_0x27e3ee,'parent':angular[_0x2c1850(0x1f81)](_0x14b813[_0x2c1850(0xb49)]),'targetEvent':_0x362d0d,'clickOutsideToClose':!![],'onShowing':function(_0x594d41){const _0x34a7f2=_0x2c1850;_0x594d41['vm'][_0x34a7f2(0x2354)]({'id':0x1,'channel':_0x34a7f2(0xc71),'interaction':_0x126e59,'spy':!![]},_0x424e4f['$parent']['vm'][_0x34a7f2(0x28d6)]);}});}function _0x5d7e62(_0x119127){const _0x4c5f8a=_0x43e0b3;_0x3d1231[_0x4c5f8a(0x1e03)][_0x4c5f8a(0xabd)]({'id':_0x119127['id']})[_0x4c5f8a(0x15e7)][_0x4c5f8a(0x64a)](function(){const _0x3915db=_0x4c5f8a;_0x28c606()[_0x3915db(0x21c7)](_0x6ea5b6[_0x3915db(0x1a82)][_0x3915db(0x28b8)],{'id':_0x119127['id']}),_0x6ea5b6[_0x3915db(0x1a82)][_0x3915db(0xb90)]-=0x1,!_0x6ea5b6[_0x3915db(0x1a82)][_0x3915db(0x28b8)][_0x3915db(0x1b9e)]&&_0x5697c4(),_0x47f4ed['success']({'title':'Interaction\x20deleted!','msg':_0x119127['name']?_0x119127['name']+_0x3915db(0x1fa8):''});})['catch'](function(_0xf145b4){const _0xf3759a=_0x4c5f8a;if(_0xf145b4[_0xf3759a(0x1c52)]&&_0xf145b4[_0xf3759a(0x1c52)][_0xf3759a(0xbae)]&&_0xf145b4[_0xf3759a(0x1c52)]['errors'][_0xf3759a(0x1b9e)]){_0x6ea5b6[_0xf3759a(0xbae)]=_0xf145b4[_0xf3759a(0x1c52)][_0xf3759a(0xbae)]||[{'message':_0xf145b4[_0xf3759a(0x2915)](),'type':_0xf3759a(0x3d1)}];for(let _0x5bdb5d=0x0;_0x5bdb5d<_0xf145b4['data'][_0xf3759a(0xbae)][_0xf3759a(0x1b9e)];_0x5bdb5d++){_0x47f4ed['error']({'title':_0xf145b4['data']['errors'][_0x5bdb5d]['type'],'msg':_0xf145b4[_0xf3759a(0x1c52)]['errors'][_0x5bdb5d]['message']});}}else _0x47f4ed['error']({'title':_0xf145b4['status']?_0xf3759a(0x575)+_0xf145b4[_0xf3759a(0x10b3)]+_0xf3759a(0x21db)+_0xf145b4[_0xf3759a(0x2115)]:_0xf3759a(0x3d1),'msg':_0xf145b4['data']?JSON[_0xf3759a(0x2317)](_0xf145b4[_0xf3759a(0x1c52)]['message']):_0xf145b4[_0xf3759a(0x18ca)]||_0xf145b4[_0xf3759a(0x2915)]()});});}function _0x2b423d(){const _0x402ea2=_0x43e0b3,_0x167efc=angular['copy'](_0x6ea5b6[_0x402ea2(0x2840)]);return _0x6ea5b6['selectedMailAccountInteractions']=[],_0x167efc;}function _0x21e684(_0x2a5de7){const _0x20b95d=_0x43e0b3,_0x5709f8=_0x34f4c1[_0x20b95d(0x856)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?')['htmlContent'](_0x20b95d(0x50b)+_0x6ea5b6[_0x20b95d(0x2840)]['length']+_0x20b95d(0x163e)+_0x20b95d(0x4b8))[_0x20b95d(0x213e)](_0x20b95d(0xb35))[_0x20b95d(0x2283)](_0x2a5de7)['ok']('OK')[_0x20b95d(0x101a)](_0x20b95d(0x18fd));_0x34f4c1['show'](_0x5709f8)[_0x20b95d(0x64a)](function(){const _0x2e16c6=_0x20b95d;_0x6ea5b6[_0x2e16c6(0x2840)]['forEach'](function(_0x163fb7){_0x5d7e62(_0x163fb7);}),_0x6ea5b6[_0x2e16c6(0x2840)]=[];});}function _0x3800ff(_0x1978f5){const _0x23ead7=_0x43e0b3;if(!_0x28c606()[_0x23ead7(0x940)](_0x1978f5['to'])&&!_0x28c606()[_0x23ead7(0x68a)](_0x1978f5['to'],_0x6ea5b6['mailAccount'][_0x23ead7(0xd47)]))_0x1978f5[_0x23ead7(0xfd7)]=_0x1978f5['to'][_0x23ead7(0x282c)]('\x20<')[0x0],_0x1978f5['contactInfo']=_0x1978f5['to'][_0x23ead7(0x282c)]('<')[_0x23ead7(0x639)]()[_0x23ead7(0x282c)]('>')[0x0];else _0x1978f5[_0x23ead7(0x1c38)]?(_0x1978f5['contactName']=(_0x1978f5[_0x23ead7(0x1c38)]['firstName']||'')+'\x20'+(_0x1978f5['Contact'][_0x23ead7(0x21c4)]||''),_0x1978f5[_0x23ead7(0x27b3)]=_0x1978f5[_0x23ead7(0x1c38)][_0x23ead7(0xd47)]||''):_0x1978f5['contactName']=_0x4c5174['instant']('APP.UNKNOWN');}function _0x3f8193(_0x4a3d45){const _0x334af9=_0x43e0b3;if(_0x4a3d45[_0x334af9(0x246c)])return _0x4a3d45[_0x334af9(0x246c)]===_0x6ea5b6['currentUser']['id']?_0x4c5174[_0x334af9(0x2292)](_0x334af9(0x2368)):_0x4a3d45[_0x334af9(0x1b06)][_0x334af9(0x15c)]+'\x20<'+_0x4a3d45[_0x334af9(0x1b06)][_0x334af9(0xe2f)]+'>';return _0x4c5174[_0x334af9(0x2292)](_0x334af9(0x276d));}let _0x390b8a=!![],_0x565073=0x1;_0x424e4f['$watch'](_0x43e0b3(0x1200),function(_0x514f09,_0x1dc9e4){const _0x19b171=_0x43e0b3;_0x390b8a?_0x107713(function(){_0x390b8a=![];}):(!_0x1dc9e4&&(_0x565073=_0x6ea5b6['query'][_0x19b171(0xc72)]),_0x514f09!==_0x1dc9e4&&(_0x6ea5b6['query'][_0x19b171(0xc72)]=0x1),!_0x514f09&&(_0x6ea5b6['query'][_0x19b171(0xc72)]=_0x565073),_0x5697c4());});}const _0x3d4ed6=_0x3fdccb;;const _0x28c060=_0x2e4a48['p']+_0x49a1e3(0x217a);;_0x47a601['$inject']=[_0x49a1e3(0x7a7),_0x49a1e3(0x1674),'$state','$q','$translate','$timeout','$mdDialog','$document','toasty','api','Auth'];function _0x47a601(_0x1e030c,_0x1a6ebd,_0x15f440,_0x5b55e9,_0x40df74,_0x5e659e,_0x171b20,_0x23e2e0,_0x1f9934,_0x4962f4,_0x184eda){const _0x219043=_0x49a1e3,_0x15b0da=this;_0x15b0da['currentUser']=_0x184eda[_0x219043(0x808)](),_0x15b0da['mailAccount']={},_0x15b0da[_0x219043(0x1657)]={'count':0x0,'rows':[]},_0x15b0da[_0x219043(0x20ca)]=[],_0x15b0da[_0x219043(0x402)],_0x15b0da['query']={'fields':_0x219043(0x9e8),'limit':0xa,'page':0x1},_0x15b0da[_0x219043(0x2354)]=_0xc21023,_0x15b0da[_0x219043(0x217e)]=_0x4d4d85,_0x15b0da[_0x219043(0x1339)]=_0x54eefd,_0x15b0da[_0x219043(0x1021)]=_0xaac974,_0x15b0da['createOrEditMailAccountMailCannedAnswer']=_0x3e6306,_0x15b0da['exportSelectedMailAccountMailCannedAnswers']=_0x1156cd,_0x15b0da[_0x219043(0x1914)]=_0x48b58a,_0x15b0da['deleteSelectedMailAccountMailCannedAnswers']=_0x5c6318;function _0xc21023(_0x211c9e,_0x24b00f){const _0x222cd0=_0x219043;_0x15b0da[_0x222cd0(0x1b1e)]=_0x211c9e,_0x15b0da['crudPermissions']=typeof _0x24b00f!==_0x222cd0(0x19a1)?_0x24b00f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x15b0da[_0x222cd0(0x289a)][_0x222cd0(0xa4c)]=_0x15b0da['mailAccount']['id'],_0x15b0da[_0x222cd0(0x289a)]['id']=_0x15b0da[_0x222cd0(0x1b1e)]['id'],_0xaac974();}function _0x4d4d85(_0x45542b,_0x56f7d8){const _0x195f02=_0x219043,_0x2b8dc7=_0x171b20[_0x195f02(0x856)]()[_0x195f02(0x2021)](_0x195f02(0x262b))[_0x195f02(0x33a)](_0x195f02(0x50b)+(_0x45542b[_0x195f02(0x2494)]||_0x45542b['id']&&_0x28c606()[_0x195f02(0x1766)](_0x195f02(0x469))+_0x45542b['id']||_0x195f02(0xb2d))+''+_0x195f02(0x4b8))[_0x195f02(0x213e)](_0x195f02(0x26a8))['targetEvent'](_0x56f7d8)['ok']('OK')['cancel'](_0x195f02(0x18fd));_0x171b20[_0x195f02(0xa60)](_0x2b8dc7)[_0x195f02(0x64a)](function(){_0x48b58a(_0x45542b);},function(){const _0x3c470e=_0x195f02;console[_0x3c470e(0x9b4)]('CANCEL');});}function _0x54eefd(_0x1fbe16){const _0x387333=_0x219043;_0x15b0da[_0x387333(0x1657)]=_0x1fbe16||{'count':0x0,'rows':[]};}function _0xaac974(){const _0x5f4a6c=_0x219043;_0x15b0da[_0x5f4a6c(0x289a)][_0x5f4a6c(0x24f9)]=(_0x15b0da['query']['page']-0x1)*_0x15b0da[_0x5f4a6c(0x289a)]['limit'],_0x15b0da[_0x5f4a6c(0x1713)]=_0x4962f4['mailAccount'][_0x5f4a6c(0x13db)](_0x15b0da[_0x5f4a6c(0x289a)],_0x54eefd)[_0x5f4a6c(0x15e7)];}function _0x3e6306(_0x45106e,_0x174e57){const _0x1b1b02=_0x219043;_0x171b20[_0x1b1b02(0xa60)]({'controller':_0x1b1b02(0x3db),'controllerAs':'vm','templateUrl':_0x28c060,'parent':angular[_0x1b1b02(0x1f81)](_0x23e2e0[_0x1b1b02(0xb49)]),'targetEvent':_0x45106e,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x15b0da[_0x1b1b02(0x1b1e)],'mailCannedAnswer':_0x174e57,'mailCannedAnswers':_0x15b0da[_0x1b1b02(0x1657)][_0x1b1b02(0x28b8)],'license':null,'setting':null,'crudPermissions':_0x15b0da[_0x1b1b02(0x402)]}});}function _0x48b58a(_0x170c95){const _0x5f5e06=_0x219043;_0x4962f4['cannedAnswer']['delete']({'id':_0x170c95['id']})[_0x5f5e06(0x15e7)]['then'](function(){const _0x29f1e9=_0x5f5e06;_0x28c606()[_0x29f1e9(0x21c7)](_0x15b0da['mailAccountMailCannedAnswers'][_0x29f1e9(0x28b8)],{'id':_0x170c95['id']}),_0x15b0da['mailAccountMailCannedAnswers'][_0x29f1e9(0xb90)]-=0x1,!_0x15b0da[_0x29f1e9(0x1657)][_0x29f1e9(0x28b8)][_0x29f1e9(0x1b9e)]&&_0xaac974(),_0x1f9934[_0x29f1e9(0x1339)]({'title':_0x29f1e9(0x1e35),'msg':_0x170c95[_0x29f1e9(0x2494)]?_0x170c95[_0x29f1e9(0x2494)]+'\x20has\x20been\x20deleted!':''});})[_0x5f5e06(0x20cd)](function(_0xad974){const _0x4570cb=_0x5f5e06;if(_0xad974[_0x4570cb(0x1c52)]&&_0xad974[_0x4570cb(0x1c52)]['errors']&&_0xad974[_0x4570cb(0x1c52)]['errors'][_0x4570cb(0x1b9e)]){_0x15b0da[_0x4570cb(0xbae)]=_0xad974[_0x4570cb(0x1c52)]['errors']||[{'message':_0xad974[_0x4570cb(0x2915)](),'type':_0x4570cb(0x3d1)}];for(let _0x1cff3c=0x0;_0x1cff3c<_0xad974[_0x4570cb(0x1c52)][_0x4570cb(0xbae)][_0x4570cb(0x1b9e)];_0x1cff3c++){_0x1f9934[_0x4570cb(0x1bd0)]({'title':_0xad974[_0x4570cb(0x1c52)][_0x4570cb(0xbae)][_0x1cff3c]['type'],'msg':_0xad974[_0x4570cb(0x1c52)]['errors'][_0x1cff3c][_0x4570cb(0x18ca)]});}}else _0x1f9934[_0x4570cb(0x1bd0)]({'title':_0xad974['status']?_0x4570cb(0x575)+_0xad974['status']+_0x4570cb(0x21db)+_0xad974[_0x4570cb(0x2115)]:_0x4570cb(0x3d1),'msg':_0xad974[_0x4570cb(0x1c52)]?JSON['stringify'](_0xad974[_0x4570cb(0x1c52)][_0x4570cb(0x18ca)]):_0xad974[_0x4570cb(0x18ca)]||_0xad974[_0x4570cb(0x2915)]()});});}function _0x1156cd(){const _0x105a85=_0x219043,_0x5d4cb5=angular[_0x105a85(0x289e)](_0x15b0da[_0x105a85(0x20ca)]);return _0x15b0da['selectedMailAccountMailCannedAnswers']=[],_0x5d4cb5;}function _0x5c6318(_0x48cccf){const _0x2f8ab3=_0x219043,_0x2d3f66=_0x171b20['confirm']()[_0x2f8ab3(0x2021)](_0x2f8ab3(0x1f76))[_0x2f8ab3(0x33a)](_0x2f8ab3(0x50b)+_0x15b0da[_0x2f8ab3(0x20ca)][_0x2f8ab3(0x1b9e)]+'\x20selected'+_0x2f8ab3(0x4b8))['ariaLabel'](_0x2f8ab3(0x67a))[_0x2f8ab3(0x2283)](_0x48cccf)['ok']('OK')[_0x2f8ab3(0x101a)](_0x2f8ab3(0x18fd));_0x171b20['show'](_0x2d3f66)['then'](function(){const _0x5d9157=_0x2f8ab3;_0x15b0da[_0x5d9157(0x20ca)][_0x5d9157(0x1397)](function(_0x376cef){_0x48b58a(_0x376cef);}),_0x15b0da[_0x5d9157(0x20ca)]=[];});}let _0x1c4b92=!![],_0x477818=0x1;_0x1a6ebd[_0x219043(0xc62)](_0x219043(0x1200),function(_0x4867c4,_0x457bee){const _0x43e3d9=_0x219043;_0x1c4b92?_0x5e659e(function(){_0x1c4b92=![];}):(!_0x457bee&&(_0x477818=_0x15b0da['query'][_0x43e3d9(0xc72)]),_0x4867c4!==_0x457bee&&(_0x15b0da[_0x43e3d9(0x289a)]['page']=0x1),!_0x4867c4&&(_0x15b0da[_0x43e3d9(0x289a)][_0x43e3d9(0xc72)]=_0x477818),_0xaac974());});}const _0x2fbffa=_0x47a601;;_0x1ca59d[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),'toasty',_0x49a1e3(0x9f6),'mailCannedAnswer',_0x49a1e3(0xa19),'Auth','license','setting','crudPermissions'];function _0x1ca59d(_0x52a2c2,_0x1881e8,_0x316e44,_0x34d260,_0x7409a6,_0x431845,_0x509e74,_0x4ac7cb,_0x2e3adc,_0x48a34b,_0x275732,_0x6c5a4a,_0x2f6068,_0x45ad74){const _0x197550=_0x49a1e3,_0x38fe93=this;_0x38fe93[_0x197550(0x1d3d)]=_0x275732[_0x197550(0x808)](),_0x38fe93[_0x197550(0xbae)]=[],_0x38fe93[_0x197550(0x28d6)]=_0x2f6068,_0x38fe93['license']=_0x6c5a4a,_0x38fe93[_0x197550(0x402)]=_0x45ad74,_0x38fe93[_0x197550(0x6c2)]={},_0x38fe93['passwordPattern']=_0x38fe93[_0x197550(0x28d6)]&&_0x38fe93['setting'][_0x197550(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x38fe93[_0x197550(0x2021)]=_0x197550(0xa78),_0x38fe93[_0x197550(0xb2d)]=angular['copy'](_0x2e3adc),_0x38fe93[_0x197550(0x9f6)]=_0x4ac7cb,_0x38fe93[_0x197550(0x573)]=![];!_0x38fe93[_0x197550(0xb2d)]&&(_0x38fe93[_0x197550(0xb2d)]={},_0x38fe93[_0x197550(0x2021)]=_0x197550(0x972),_0x38fe93[_0x197550(0x573)]=!![]);_0x1881e8[_0x197550(0x1b48)]['id']&&(_0x38fe93[_0x197550(0xb2d)][_0x197550(0xa4c)]=_0x1881e8['params']['id']);_0x38fe93[_0x197550(0x1ea5)]=_0x359166,_0x38fe93['saveMailCannedAnswer']=_0x51eb01,_0x38fe93[_0x197550(0x1874)]=_0x26cbbf,_0x38fe93[_0x197550(0x1605)]=_0x3c001d,_0x38fe93[_0x197550(0x16cb)]=_0x147fc1;function _0x359166(){const _0x3b04b3=_0x197550;_0x38fe93[_0x3b04b3(0xbae)]=[],_0x48a34b[_0x3b04b3(0x14c4)][_0x3b04b3(0x2479)](_0x38fe93[_0x3b04b3(0xb2d)])[_0x3b04b3(0x15e7)][_0x3b04b3(0x64a)](function(_0x1b059){const _0x3527fa=_0x3b04b3;_0x38fe93[_0x3527fa(0x9f6)]['unshift'](_0x1b059[_0x3527fa(0x14f8)]()),_0x509e74[_0x3527fa(0x1339)]({'title':_0x3527fa(0x16e2),'msg':_0x38fe93['mailCannedAnswer']['name']?_0x38fe93['mailCannedAnswer']['name']+_0x3527fa(0x258d):''}),_0x147fc1(_0x1b059);})[_0x3b04b3(0x20cd)](function(_0x29e40b){const _0x36e562=_0x3b04b3;if(_0x29e40b['data']&&_0x29e40b[_0x36e562(0x1c52)]['errors']&&_0x29e40b[_0x36e562(0x1c52)][_0x36e562(0xbae)][_0x36e562(0x1b9e)]){_0x38fe93[_0x36e562(0xbae)]=_0x29e40b[_0x36e562(0x1c52)][_0x36e562(0xbae)]||[{'message':_0x29e40b['toString'](),'type':_0x36e562(0x932)}];for(let _0x4e48b2=0x0;_0x4e48b2<_0x29e40b['data'][_0x36e562(0xbae)]['length'];_0x4e48b2+=0x1){_0x509e74[_0x36e562(0x1bd0)]({'title':_0x29e40b[_0x36e562(0x1c52)][_0x36e562(0xbae)][_0x4e48b2][_0x36e562(0x2185)],'msg':_0x29e40b['data']['errors'][_0x4e48b2][_0x36e562(0x18ca)]});}}else _0x509e74[_0x36e562(0x1bd0)]({'title':_0x29e40b[_0x36e562(0x10b3)]?'API:'+_0x29e40b[_0x36e562(0x10b3)]+_0x36e562(0x21db)+_0x29e40b[_0x36e562(0x2115)]:'api.cannedAnswer.save','msg':_0x29e40b[_0x36e562(0x1c52)]?JSON[_0x36e562(0x2317)](_0x29e40b[_0x36e562(0x1c52)]['message']):_0x29e40b['toString']()});});}function _0x51eb01(){const _0x38a0a6=_0x197550;_0x38fe93[_0x38a0a6(0xbae)]=[],_0x48a34b['cannedAnswer'][_0x38a0a6(0x2603)]({'id':_0x38fe93['mailCannedAnswer']['id']},_0x38fe93['mailCannedAnswer'])[_0x38a0a6(0x15e7)][_0x38a0a6(0x64a)](function(_0x29c0aa){const _0xec5d0f=_0x38a0a6,_0x49a159=_0x28c606()[_0xec5d0f(0x27bc)](_0x38fe93[_0xec5d0f(0x9f6)],{'id':_0x29c0aa['id']});_0x49a159&&_0x28c606()[_0xec5d0f(0x14fe)](_0x49a159,_0x28c606()[_0xec5d0f(0x27bb)](_0x29c0aa[_0xec5d0f(0x14f8)](),_0x28c606()['keys'](_0x49a159))),_0x509e74[_0xec5d0f(0x1339)]({'title':'MailCannedAnswer\x20properly\x20saved!','msg':_0x38fe93['mailCannedAnswer'][_0xec5d0f(0x2494)]?_0x38fe93[_0xec5d0f(0xb2d)][_0xec5d0f(0x2494)]+_0xec5d0f(0x271):''}),_0x147fc1(_0x29c0aa);})[_0x38a0a6(0x20cd)](function(_0x1fbc97){const _0x370f30=_0x38a0a6;if(_0x1fbc97['data']&&_0x1fbc97[_0x370f30(0x1c52)][_0x370f30(0xbae)]&&_0x1fbc97['data']['errors'][_0x370f30(0x1b9e)]){_0x38fe93['errors']=_0x1fbc97[_0x370f30(0x1c52)][_0x370f30(0xbae)]||[{'message':_0x1fbc97[_0x370f30(0x2915)](),'type':_0x370f30(0xab6)}];for(let _0x3a4591=0x0;_0x3a4591<_0x1fbc97[_0x370f30(0x1c52)]['errors']['length'];_0x3a4591++){_0x509e74[_0x370f30(0x1bd0)]({'title':_0x1fbc97[_0x370f30(0x1c52)][_0x370f30(0xbae)][_0x3a4591][_0x370f30(0x2185)],'msg':_0x1fbc97[_0x370f30(0x1c52)][_0x370f30(0xbae)][_0x3a4591][_0x370f30(0x18ca)]});}}else _0x509e74[_0x370f30(0x1bd0)]({'title':_0x1fbc97[_0x370f30(0x10b3)]?_0x370f30(0x575)+_0x1fbc97[_0x370f30(0x10b3)]+_0x370f30(0x21db)+_0x1fbc97[_0x370f30(0x2115)]:'api.cannedAnswer.update','msg':_0x1fbc97[_0x370f30(0x1c52)]?JSON[_0x370f30(0x2317)](_0x1fbc97['data'][_0x370f30(0x18ca)]):_0x1fbc97['toString']()});});}function _0x26cbbf(_0x547116){const _0x1302da=_0x197550;_0x38fe93[_0x1302da(0xbae)]=[];const _0x2a9cad=_0x34d260[_0x1302da(0x856)]()[_0x1302da(0x2021)](_0x1302da(0x103a))[_0x1302da(0x12b8)](_0x1302da(0x1cf0))[_0x1302da(0x213e)](_0x1302da(0x1def))['ok'](_0x1302da(0x2664))[_0x1302da(0x101a)]('Cancel')[_0x1302da(0x2283)](_0x547116);_0x34d260[_0x1302da(0xa60)](_0x2a9cad)[_0x1302da(0x64a)](function(){const _0x617be1=_0x1302da;_0x48a34b[_0x617be1(0x14c4)][_0x617be1(0xabd)]({'id':_0x38fe93['mailCannedAnswer']['id']})['$promise'][_0x617be1(0x64a)](function(){const _0xc6f235=_0x617be1;_0x28c606()[_0xc6f235(0x21c7)](_0x38fe93[_0xc6f235(0x9f6)],{'id':_0x38fe93[_0xc6f235(0xb2d)]['id']}),_0x509e74['success']({'title':_0xc6f235(0x890),'msg':(_0x38fe93[_0xc6f235(0xb2d)][_0xc6f235(0x2494)]||_0xc6f235(0xb2d))+_0xc6f235(0x1fa8)}),_0x147fc1(_0x38fe93[_0xc6f235(0xb2d)]);})['catch'](function(_0x4015cd){const _0x20493c=_0x617be1;if(_0x4015cd['data']&&_0x4015cd['data'][_0x20493c(0xbae)]&&_0x4015cd[_0x20493c(0x1c52)][_0x20493c(0xbae)][_0x20493c(0x1b9e)]){_0x38fe93[_0x20493c(0xbae)]=_0x4015cd[_0x20493c(0x1c52)][_0x20493c(0xbae)]||[{'message':_0x4015cd['toString'](),'type':_0x20493c(0x1ed3)}];for(let _0x5ab83f=0x0;_0x5ab83f<_0x4015cd[_0x20493c(0x1c52)][_0x20493c(0xbae)][_0x20493c(0x1b9e)];_0x5ab83f++){_0x509e74[_0x20493c(0x1bd0)]({'title':_0x4015cd[_0x20493c(0x1c52)][_0x20493c(0xbae)][_0x5ab83f][_0x20493c(0x2185)],'msg':_0x4015cd[_0x20493c(0x1c52)][_0x20493c(0xbae)][_0x5ab83f][_0x20493c(0x18ca)]});}}else _0x509e74['error']({'title':_0x4015cd[_0x20493c(0x10b3)]?_0x20493c(0x575)+_0x4015cd['status']+_0x20493c(0x21db)+_0x4015cd[_0x20493c(0x2115)]:_0x20493c(0x1ed3),'msg':_0x4015cd[_0x20493c(0x1c52)]?JSON[_0x20493c(0x2317)](_0x4015cd[_0x20493c(0x1c52)]['message']):_0x4015cd[_0x20493c(0x18ca)]||_0x4015cd[_0x20493c(0x2915)]()});});},function(){});}function _0x3c001d(_0x5ead1b){return _0x5ead1b===null?undefined:new Date(_0x5ead1b);}function _0x147fc1(_0x1e6677){const _0xbff50=_0x197550;_0x34d260[_0xbff50(0x268e)](_0x1e6677);}}const _0xecd080=_0x1ca59d;;_0x5553fd['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),'$document',_0x49a1e3(0x20d4),_0x49a1e3(0x298c),'api',_0x49a1e3(0x680),'Auth'];function _0x5553fd(_0x3442bf,_0x5c2f8a,_0x13cd6c,_0x68f9a9,_0x194e23,_0x41d43d,_0xbb982c,_0x189f6a,_0x288019,_0x500a95,_0x5e6d14){const _0xa1dce7=_0x49a1e3,_0x5b60cd=this;_0x5b60cd[_0xa1dce7(0x1d3d)]=_0x5e6d14[_0xa1dce7(0x808)](),_0x5b60cd[_0xa1dce7(0x16d7)]={'count':0x0,'rows':[]},_0x5b60cd[_0xa1dce7(0x1403)]=[],_0x5b60cd[_0xa1dce7(0x402)],_0x5b60cd[_0xa1dce7(0x20c7)]={'first':_0xa1dce7(0x1d03),'second':_0xa1dce7(0x255e),'third':_0xa1dce7(0x157e)},_0x5b60cd[_0xa1dce7(0x289a)]={'fields':_0xa1dce7(0x12ce),'sort':_0xa1dce7(0x260c),'limit':0xa,'page':0x1},_0x5b60cd['init']=_0x10b0b7,_0x5b60cd[_0xa1dce7(0x217e)]=_0x2ad4dd,_0x5b60cd[_0xa1dce7(0x1339)]=_0x1c44d5,_0x5b60cd[_0xa1dce7(0xe50)]=_0xb29aa3,_0x5b60cd[_0xa1dce7(0x22cb)]=_0x4547ce,_0x5b60cd['deleteDisposition']=_0x1ee689,_0x5b60cd[_0xa1dce7(0x28e3)]=_0x422923,_0x5b60cd[_0xa1dce7(0x1d1e)]=_0x62a5ae,_0x5b60cd['deselectDispositions']=_0x31e2e4,_0x5b60cd['selectAllDispositions']=_0x2b55b2;function _0x10b0b7(_0x4232d2,_0x8ba487){const _0x5e2dcd=_0xa1dce7;_0x5b60cd[_0x5e2dcd(0x1b1e)]=_0x4232d2||{},_0x5b60cd[_0x5e2dcd(0x402)]=typeof _0x8ba487!=='undefined'?_0x8ba487:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5b60cd[_0x5e2dcd(0x289a)][_0x5e2dcd(0xa4c)]=_0x5b60cd[_0x5e2dcd(0x1b1e)]['id'],_0x5b60cd['query']['id']=_0x5b60cd['mailAccount']['id'],_0xb29aa3();}function _0x4547ce(_0x17c73d,_0x5c8a5b){const _0x223c58=_0xa1dce7;_0x194e23[_0x223c58(0xa60)]({'controller':_0x223c58(0xf48),'controllerAs':'vm','templateUrl':_0x482291,'parent':angular[_0x223c58(0x1f81)](_0x41d43d[_0x223c58(0xb49)]),'targetEvent':_0x17c73d,'clickOutsideToClose':!![],'locals':{'disposition':_0x5c8a5b,'model':{'id':_0x5b60cd[_0x223c58(0x1b1e)]['id'],'field':_0x223c58(0xa4c),'route':_0x223c58(0x1b1e)},'license':null,'setting':null,'crudPermissions':_0x5b60cd[_0x223c58(0x402)]}})[_0x223c58(0x64a)](function(_0x20bd0b){if(_0x20bd0b)_0xb29aa3();});}function _0x2ad4dd(_0x1a239c,_0x14a43f){const _0x224a17=_0xa1dce7,_0x1d7cc9=_0x28c606()[_0x224a17(0x25f8)](_0x5b60cd[_0x224a17(0x16d7)][_0x224a17(0x28b8)],[_0x224a17(0xbb9),_0x1a239c['id']]),_0x53c231=_0x194e23[_0x224a17(0x856)]()['title'](_0x189f6a[_0x224a17(0x2292)](_0x224a17(0x13a7)))[_0x224a17(0x12b8)](_0x189f6a[_0x224a17(0x2292)](_0x224a17(0x2213)+(_0x1d7cc9?'DISPOSITION_DELETE_MESSAGE_CHILDREN':_0x224a17(0x1942)),{'name':_0x1a239c['name']}))[_0x224a17(0x213e)](_0x224a17(0xc2c))[_0x224a17(0x2283)](_0x14a43f)['ok']('OK')[_0x224a17(0x101a)](_0x189f6a['instant'](_0x224a17(0x4f5)));_0x194e23[_0x224a17(0xa60)](_0x53c231)[_0x224a17(0x64a)](function(){_0x1ee689(_0x1a239c);});}function _0x1c44d5(_0x7e979){_0x5b60cd['dispositions']=_0x7e979||{'count':0x0,'rows':[]};}function _0xb29aa3(){const _0x477c20=_0xa1dce7;_0x5b60cd[_0x477c20(0x289a)][_0x477c20(0x24f9)]=(_0x5b60cd[_0x477c20(0x289a)][_0x477c20(0xc72)]-0x1)*_0x5b60cd[_0x477c20(0x289a)]['limit'],_0x5b60cd[_0x477c20(0x1713)]=_0x288019[_0x477c20(0x1b1e)][_0x477c20(0xe50)](_0x5b60cd[_0x477c20(0x289a)],_0x1c44d5)[_0x477c20(0x15e7)];}function _0x1ee689(_0xd19c4d){const _0x11c24f=_0xa1dce7;_0x288019['disposition'][_0x11c24f(0xabd)]({'id':_0xd19c4d['id']})[_0x11c24f(0x15e7)][_0x11c24f(0x64a)](function(){const _0x34a926=_0x11c24f;_0xb29aa3(),_0x500a95[_0x34a926(0x1339)]({'title':_0x189f6a[_0x34a926(0x2292)](_0x34a926(0x870))});})['catch'](function(_0x824531){const _0x4c3dba=_0x11c24f;if(_0x824531[_0x4c3dba(0x1c52)]&&_0x824531[_0x4c3dba(0x1c52)][_0x4c3dba(0xbae)]&&_0x824531['data'][_0x4c3dba(0xbae)][_0x4c3dba(0x1b9e)]){_0x5b60cd[_0x4c3dba(0xbae)]=_0x824531['data']['errors']||[{'message':_0x824531['toString'](),'type':_0x4c3dba(0x1c37)}];for(let _0x5d9ba1=0x0;_0x5d9ba1<_0x824531[_0x4c3dba(0x1c52)]['errors'][_0x4c3dba(0x1b9e)];_0x5d9ba1++){_0x500a95['error']({'title':_0x824531[_0x4c3dba(0x1c52)][_0x4c3dba(0xbae)][_0x5d9ba1][_0x4c3dba(0x2185)],'msg':_0x824531[_0x4c3dba(0x1c52)][_0x4c3dba(0xbae)][_0x5d9ba1]['message']});}}else _0x500a95[_0x4c3dba(0x1bd0)]({'title':_0x824531[_0x4c3dba(0x10b3)]?_0x4c3dba(0x575)+_0x824531[_0x4c3dba(0x10b3)]+_0x4c3dba(0x21db)+_0x824531[_0x4c3dba(0x2115)]:_0x4c3dba(0x1c37),'msg':_0x824531[_0x4c3dba(0x1c52)]?JSON[_0x4c3dba(0x2317)](_0x824531[_0x4c3dba(0x1c52)]['message']):_0x824531[_0x4c3dba(0x18ca)]||_0x824531[_0x4c3dba(0x2915)]()});});}function _0x422923(){const _0x211685=_0xa1dce7,_0xc1eb37=angular[_0x211685(0x289e)](_0x5b60cd['selectedDispositions']);return _0x5b60cd['selectedDispositions']=[],_0xc1eb37;}function _0x62a5ae(_0x2ff5fd){const _0x2ea0d8=_0xa1dce7,_0x18d6db=_0x194e23['confirm']()[_0x2ea0d8(0x2021)](_0x189f6a[_0x2ea0d8(0x2292)](_0x2ea0d8(0x10a1)))[_0x2ea0d8(0x12b8)](_0x189f6a[_0x2ea0d8(0x2292)](_0x2ea0d8(0x2563),{'total':_0x5b60cd[_0x2ea0d8(0x1403)]['length']}))[_0x2ea0d8(0x213e)](_0x2ea0d8(0x10e))['targetEvent'](_0x2ff5fd)['ok']('OK')[_0x2ea0d8(0x101a)](_0x189f6a['instant']('APP.CANCEL'));_0x194e23['show'](_0x18d6db)[_0x2ea0d8(0x64a)](function(){_0x5b60cd['selectedDispositions']['forEach'](function(_0x53d22c){_0x1ee689(_0x53d22c);}),_0x5b60cd['selectedDispositions']=[];});}function _0x31e2e4(){const _0x5f4246=_0xa1dce7;_0x5b60cd[_0x5f4246(0x1403)]=[];}function _0x2b55b2(){const _0x2fc74f=_0xa1dce7;_0x5b60cd[_0x2fc74f(0x1403)]=_0x5b60cd[_0x2fc74f(0x16d7)][_0x2fc74f(0x28b8)];}let _0x3cf9db=!![],_0x29430a=0x1;_0x3442bf[_0xa1dce7(0xc62)](_0xa1dce7(0x1200),function(_0x5c1021,_0x1f770e){const _0x34472a=_0xa1dce7;_0x3cf9db?_0xbb982c(function(){_0x3cf9db=![];}):(!_0x1f770e&&(_0x29430a=_0x5b60cd[_0x34472a(0x289a)][_0x34472a(0xc72)]),_0x5c1021!==_0x1f770e&&(_0x5b60cd[_0x34472a(0x289a)][_0x34472a(0xc72)]=0x1),!_0x5c1021&&(_0x5b60cd[_0x34472a(0x289a)][_0x34472a(0xc72)]=_0x29430a),_0xb29aa3());});}const _0x2ac9ac=_0x5553fd;;const _0x19a163=_0x2e4a48['p']+_0x49a1e3(0x12f1);;_0x25bc75[_0x49a1e3(0x1e73)]=['$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),'$translate',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1b1e),_0x49a1e3(0x16b2)];function _0x25bc75(_0x4fd856,_0x4357af,_0x28a7b3,_0x23dc21,_0x3d5a4a,_0x512a7e,_0x360105,_0x19a635,_0x545498,_0x3cd2bc,_0x3e94b5,_0x411177){const _0x14d1ad=_0x49a1e3,_0x263a68=this;_0x263a68['currentUser']=_0x3cd2bc[_0x14d1ad(0x808)](),_0x263a68['license']=_0x512a7e,_0x263a68[_0x14d1ad(0x28d6)]=_0x360105,_0x263a68[_0x14d1ad(0xccc)]=_0x263a68['setting'][_0x14d1ad(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x263a68[_0x14d1ad(0xb36)]=_0x4357af['protocol']()+_0x14d1ad(0xe1f)+_0x4357af['host'](),_0x263a68[_0x14d1ad(0x1b1e)]=_0x3e94b5||_0x4fd856[_0x14d1ad(0x1b48)]['mailAccount']||{},_0x263a68[_0x14d1ad(0x16b2)]=_0x411177&&_0x411177[_0x14d1ad(0xb90)]==0x1?_0x411177[_0x14d1ad(0x28b8)][0x0]:null,_0x263a68[_0x14d1ad(0x402)]=_0x3cd2bc['parseCrudPermissions'](_0x263a68[_0x14d1ad(0x16b2)]?_0x263a68[_0x14d1ad(0x16b2)][_0x14d1ad(0x402)]:null),_0x263a68[_0x14d1ad(0x6c2)]={},_0x263a68[_0x14d1ad(0x197c)]=_0x4fd856[_0x14d1ad(0x1b48)][_0x14d1ad(0x1222)]||0x0,_0x263a68['gotogoto']=_0x5cd2d5,_0x263a68[_0x14d1ad(0x104a)]=_0x1ae172,_0x263a68[_0x14d1ad(0x2540)]=_0x545498[_0x14d1ad(0x772)],_0x263a68['gotoMailAccounts']=_0x43eef2,_0x263a68[_0x14d1ad(0x1813)]=_0x5ee9ce,_0x3cd2bc[_0x14d1ad(0x4de)](_0x14d1ad(0x333))?_0x19a635[_0x14d1ad(0x19f8)]['get']({'fields':_0x14d1ad(0x1427),'sort':'name'})[_0x14d1ad(0x15e7)][_0x14d1ad(0x64a)](function(_0x375cb6){_0x263a68['lists']=_0x375cb6['rows']||[];})[_0x14d1ad(0x20cd)](function(_0x18f25e){const _0x247af4=_0x14d1ad;_0x545498['error']({'title':_0x18f25e['status']?_0x247af4(0x575)+_0x18f25e[_0x247af4(0x10b3)]+_0x247af4(0x21db)+_0x18f25e[_0x247af4(0x2115)]:'SYSTEM:GET_LISTS','msg':_0x18f25e['data']?JSON[_0x247af4(0x2317)](_0x18f25e[_0x247af4(0x1c52)]):_0x18f25e[_0x247af4(0x2915)]()});}):_0x19a635[_0x14d1ad(0x19f8)][_0x14d1ad(0x896)]({'fields':_0x14d1ad(0x1427),'sort':_0x14d1ad(0x2494)})['$promise']['then'](function(_0x37b105){const _0x5c56da=_0x14d1ad;_0x263a68[_0x5c56da(0x974)]=_0x37b105['rows']||[];})[_0x14d1ad(0x64a)](function(){const _0x208ac6=_0x14d1ad;return _0x19a635[_0x208ac6(0x16b2)][_0x208ac6(0x896)]({'userProfileId':_0x263a68[_0x208ac6(0x1d3d)][_0x208ac6(0x21ac)],'sectionId':0x12d})[_0x208ac6(0x15e7)];})['then'](function(_0x1c099f){const _0x1c18f9=_0x14d1ad,_0x40fdba=_0x1c099f&&_0x1c099f['rows']?_0x1c099f['rows'][0x0]:null;if(!_0x40fdba){const _0x527e72=[];let _0x3030ef=null;_0x263a68[_0x1c18f9(0x1b1e)]&&(_0x3030ef=_0x28c606()[_0x1c18f9(0x27bc)](_0x263a68['lists'],{'id':Number(_0x263a68['mailAccount'][_0x1c18f9(0x869)])}));for(let _0x57473c=0x0;_0x57473c<_0x263a68[_0x1c18f9(0x974)][_0x1c18f9(0x1b9e)];_0x57473c++){_0x3030ef&&_0x263a68[_0x1c18f9(0x974)][_0x57473c]['id']===_0x3030ef['id']&&(_0x263a68[_0x1c18f9(0x974)][_0x57473c][_0x1c18f9(0xd4f)]=![],_0x527e72[_0x1c18f9(0x1954)](_0x263a68['lists'][_0x57473c]));}_0x263a68[_0x1c18f9(0x974)]=_0x527e72;}else{if(!_0x40fdba[_0x1c18f9(0x11da)])return _0x19a635['userProfileResource'][_0x1c18f9(0x896)]({'sectionId':_0x40fdba['id']})[_0x1c18f9(0x15e7)][_0x1c18f9(0x64a)](function(_0x5d0fc1){const _0x257f34=_0x1c18f9,_0x5defd1=_0x28c606()[_0x257f34(0x1de5)](_0x5d0fc1['rows'],function(_0x4e9a66){const _0x24c22e=_0x257f34;return _0x28c606()[_0x24c22e(0x27bc)](_0x263a68[_0x24c22e(0x974)],{'id':_0x4e9a66[_0x24c22e(0x145)]});});let _0xfb6708=null;_0x263a68['mailAccount']&&(_0xfb6708=_0x28c606()[_0x257f34(0x27bc)](_0x263a68[_0x257f34(0x974)],{'id':Number(_0x263a68[_0x257f34(0x1b1e)][_0x257f34(0x869)])}));if(_0xfb6708&&!_0x28c606()[_0x257f34(0x25f8)](_0x5defd1,['id',_0xfb6708['id']])){const _0xf1872=_0x28c606()[_0x257f34(0x27bc)](_0x263a68[_0x257f34(0x974)],{'id':_0xfb6708['id']});_0xf1872[_0x257f34(0xd4f)]=![],_0x5defd1[_0x257f34(0x1954)](_0xf1872);}_0x263a68[_0x257f34(0x974)]=_0x5defd1;});}})['catch'](function(_0x5ec8c1){const _0x4b222f=_0x14d1ad;_0x545498[_0x4b222f(0x1bd0)]({'title':_0x5ec8c1[_0x4b222f(0x10b3)]?_0x4b222f(0x575)+_0x5ec8c1[_0x4b222f(0x10b3)]+_0x4b222f(0x21db)+_0x5ec8c1['statusText']:_0x4b222f(0x1beb),'msg':_0x5ec8c1['data']?JSON[_0x4b222f(0x2317)](_0x5ec8c1[_0x4b222f(0x1c52)]):_0x5ec8c1[_0x4b222f(0x2915)]()});}),_0x3cd2bc['hasRole'](_0x14d1ad(0x333))?_0x19a635['pause'][_0x14d1ad(0x896)]({'fields':_0x14d1ad(0x1dfb),'sort':_0x14d1ad(0x2494),'nolimit':_0x14d1ad(0x1685)})[_0x14d1ad(0x15e7)][_0x14d1ad(0x64a)](function(_0x266c3b){const _0x3ed51e=_0x14d1ad;_0x263a68[_0x3ed51e(0x23d1)]=_0x266c3b[_0x3ed51e(0x28b8)]||[];})[_0x14d1ad(0x20cd)](function(_0x48a441){const _0x3d8ff9=_0x14d1ad;_0x545498['error']({'title':_0x48a441['status']?_0x3d8ff9(0x575)+_0x48a441[_0x3d8ff9(0x10b3)]+_0x3d8ff9(0x21db)+_0x48a441['statusText']:_0x3d8ff9(0x1a14),'msg':_0x48a441[_0x3d8ff9(0x1c52)]?JSON['stringify'](_0x48a441[_0x3d8ff9(0x1c52)]):_0x48a441[_0x3d8ff9(0x2915)]()});}):_0x19a635[_0x14d1ad(0x2826)][_0x14d1ad(0x896)]({'fields':_0x14d1ad(0x1dfb),'sort':_0x14d1ad(0x2494),'nolimit':_0x14d1ad(0x1685)})[_0x14d1ad(0x15e7)][_0x14d1ad(0x64a)](function(_0x21bc17){const _0x46f2b8=_0x14d1ad;_0x263a68[_0x46f2b8(0x23d1)]=_0x21bc17[_0x46f2b8(0x28b8)]||[];})[_0x14d1ad(0x64a)](function(){const _0x14e9c8=_0x14d1ad;return _0x19a635[_0x14e9c8(0x16b2)]['get']({'userProfileId':_0x263a68[_0x14e9c8(0x1d3d)]['userProfileId'],'sectionId':0x3ed})[_0x14e9c8(0x15e7)];})[_0x14d1ad(0x64a)](function(_0xae9e27){const _0x5e5528=_0x14d1ad,_0x194477=_0xae9e27&&_0xae9e27[_0x5e5528(0x28b8)]?_0xae9e27[_0x5e5528(0x28b8)][0x0]:null;if(!_0x194477)_0x263a68[_0x5e5528(0x23d1)]=[];else{if(!_0x194477[_0x5e5528(0x11da)])return _0x19a635[_0x5e5528(0x1617)][_0x5e5528(0x896)]({'sectionId':_0x194477['id']})['$promise'][_0x5e5528(0x64a)](function(_0xb31533){const _0x48cfc9=_0x5e5528,_0x18b64a=_0x28c606()[_0x48cfc9(0x1de5)](_0xb31533['rows'],function(_0xaaf843){const _0x4c1915=_0x48cfc9;return _0x28c606()[_0x4c1915(0x27bc)](_0x263a68['pauses'],{'id':_0xaaf843[_0x4c1915(0x145)]});});_0x263a68['pauses'][_0x48cfc9(0x1397)](function(_0x1e489d){const _0x59f463=_0x48cfc9;!_0x28c606()[_0x59f463(0x25f8)](_0x18b64a,['id',_0x1e489d['id']])&&(_0x1e489d[_0x59f463(0xd4f)]=![]),_0x18b64a['push'](_0x1e489d);}),_0x263a68[_0x48cfc9(0x23d1)]=_0x18b64a;});}})[_0x14d1ad(0x20cd)](function(_0x365d12){const _0x29ce81=_0x14d1ad;_0x545498[_0x29ce81(0x1bd0)]({'title':_0x365d12[_0x29ce81(0x10b3)]?_0x29ce81(0x575)+_0x365d12[_0x29ce81(0x10b3)]+'\x20-\x20'+_0x365d12[_0x29ce81(0x2115)]:'SYSTEM:GETpauses','msg':_0x365d12['data']?JSON['stringify'](_0x365d12['data']):_0x365d12['toString']()});});function _0x5cd2d5(){const _0x827c2c=_0x14d1ad;if(_0x3cd2bc[_0x827c2c(0x4de)]('admin'))_0x4fd856['go'](_0x827c2c(0x1b9b),{});else return _0x19a635['userProfileSection'][_0x827c2c(0x896)]({'userProfileId':_0x3cd2bc['getCurrentUser']()[_0x827c2c(0x21ac)],'sectionId':0x262})[_0x827c2c(0x15e7)][_0x827c2c(0x64a)](function(_0x24d0b1){const _0x32297e=_0x827c2c,_0x40db4d=_0x24d0b1&&_0x24d0b1[_0x32297e(0x28b8)]?_0x24d0b1[_0x32297e(0x28b8)][0x0]:null;_0x40db4d&&_0x40db4d[_0x32297e(0xe49)]?_0x4fd856['go'](_0x32297e(0x1b9b),{}):_0x545498[_0x32297e(0x772)]({'title':_0x3d5a4a[_0x32297e(0x2292)](_0x32297e(0x111a)),'msg':_0x3d5a4a[_0x32297e(0x2292)](_0x32297e(0x229))});})[_0x827c2c(0x20cd)](function(_0x28552a){const _0x547507=_0x827c2c;_0x545498[_0x547507(0x1bd0)]({'title':_0x28552a[_0x547507(0x10b3)]?_0x547507(0x575)+_0x28552a[_0x547507(0x10b3)]+_0x547507(0x21db)+_0x28552a[_0x547507(0x2115)]:_0x547507(0x942),'msg':_0x28552a[_0x547507(0x10b3)]?JSON['stringify'](_0x28552a[_0x547507(0x1c52)]):_0x28552a[_0x547507(0x2915)]()});});}function _0x1ae172(_0xd73e61,_0x1807e5){const _0x584c7d=_0x14d1ad;_0x28a7b3[_0x584c7d(0xa60)]({'controller':_0x584c7d(0x7d9),'controllerAs':'vm','templateUrl':_0x19a163,'parent':angular[_0x584c7d(0x1f81)](_0x23dc21[_0x584c7d(0xb49)]),'targetEvent':_0x1807e5,'clickOutsideToClose':!![],'locals':{'mailAccount':_0xd73e61,'mailAccounts':_0x263a68[_0x584c7d(0x2435)]?_0x263a68[_0x584c7d(0x2435)]['rows']:[],'crudPermissions':_0x263a68[_0x584c7d(0x402)],'realtime':![]}});}function _0x43eef2(){const _0x181b34=_0x14d1ad;_0x4fd856['go'](_0x181b34(0xd0d),{},{'reload':_0x181b34(0xd0d)});}function _0x5ee9ce(){const _0x1c8516=_0x14d1ad;_0x19a635[_0x1c8516(0x1b1e)]['update']({'id':_0x263a68[_0x1c8516(0x1b1e)]['id']},_0x263a68[_0x1c8516(0x1b1e)])[_0x1c8516(0x15e7)][_0x1c8516(0x64a)](function(){const _0x3b104e=_0x1c8516;_0x545498[_0x3b104e(0x1339)]({'title':_0x3b104e(0x2612),'msg':_0x263a68[_0x3b104e(0x1b1e)][_0x3b104e(0x2494)]?_0x263a68[_0x3b104e(0x1b1e)]['name']+_0x3b104e(0x2032):''});})[_0x1c8516(0x20cd)](function(_0x39366a){const _0x10b3b9=_0x1c8516;_0x545498[_0x10b3b9(0x1bd0)]({'title':_0x39366a[_0x10b3b9(0x10b3)]?_0x10b3b9(0x575)+_0x39366a['status']+_0x10b3b9(0x21db)+_0x39366a[_0x10b3b9(0x2115)]:'SYSTEM:GETmailAccount','msg':_0x39366a[_0x10b3b9(0x1c52)]?JSON['stringify'](_0x39366a['data']):_0x39366a[_0x10b3b9(0x2915)]()});});}}const _0x59f782=_0x25bc75;;const _0x325e68=_0x2e4a48['p']+'src/js/modules/main/apps/mail/views/mailAccounts/create/dialog.html/dialog.html';;_0x577129[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog',_0x49a1e3(0x1373),'$timeout',_0x49a1e3(0x298c),_0x49a1e3(0x2435),'userProfile',_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting'];function _0x577129(_0x45979a,_0x977c31,_0x466ac0,_0x20f919,_0x112742,_0x351ca4,_0x3ffaf6,_0x44327c,_0x4d594b,_0x3f0b0c,_0x5e2a51,_0x1af999,_0x1f8b0e,_0x5c064d,_0x4bda8c,_0x34a7dc,_0x40e5be){const _0x3c29=_0x49a1e3,_0x827dda=this;_0x827dda[_0x3c29(0x1947)]=_0x34a7dc,_0x827dda[_0x3c29(0x28d6)]=_0x40e5be,_0x827dda[_0x3c29(0x1d3d)]=_0x4bda8c[_0x3c29(0x808)](),_0x827dda['mailAccounts']=_0x4d594b||{'count':0x0,'rows':[]},_0x827dda[_0x3c29(0x16a8)]=_0x3f0b0c,_0x827dda[_0x3c29(0x16b2)]=_0x5e2a51&&_0x5e2a51[_0x3c29(0xb90)]==0x1?_0x5e2a51['rows'][0x0]:null,_0x827dda[_0x3c29(0x402)]=_0x4bda8c['parseCrudPermissions'](_0x827dda['userProfileSection']?_0x827dda[_0x3c29(0x16b2)]['crudPermissions']:null),_0x827dda[_0x3c29(0x185d)]='mailAccounts',_0x827dda[_0x3c29(0x300)]='',_0x827dda[_0x3c29(0x2748)]=null,_0x827dda['selectedMailAccounts']=[],_0x827dda[_0x3c29(0x289a)]={'fields':_0x3c29(0x615),'sort':_0x3c29(0x260c),'limit':0xa,'page':0x1},_0x827dda[_0x3c29(0x176b)]=_0x28c606()['keyBy']([{'option':_0x3c29(0x204a),'value':'null'},{'option':_0x3c29(0x2415),'value':_0x3c29(0xb0d)},{'option':_0x3c29(0x1607),'value':_0x3c29(0x20e)},{'option':_0x3c29(0x14f3),'value':_0x3c29(0x17b0)},{'option':'Outlook365','value':_0x3c29(0xa90)}],function(_0x2ddf99){const _0x53ed75=_0x3c29;return _0x28c606()[_0x53ed75(0x1353)](_0x2ddf99[_0x53ed75(0x1096)],new RegExp('\x27','g'),'');}),_0x827dda[_0x3c29(0x2665)]=_0x28c606()[_0x3c29(0x161e)]([{'option':'Custom','value':_0x3c29(0x8f1)},{'option':_0x3c29(0x2415),'value':'\x27gmail\x27'},{'option':_0x3c29(0x1607),'value':'\x27hotmail\x27'},{'option':_0x3c29(0x14f3),'value':_0x3c29(0x17b0)},{'option':_0x3c29(0x1ca3),'value':'\x27outlook365\x27'}],function(_0x1e5693){const _0x3f9207=_0x3c29;return _0x28c606()['replace'](_0x1e5693[_0x3f9207(0x1096)],new RegExp('\x27','g'),'');}),_0x827dda[_0x3c29(0x12d9)]=_0x28c606()[_0x3c29(0x161e)]([{'option':_0x3c29(0x204a),'value':_0x3c29(0x8f1)},{'option':'Gmail','value':_0x3c29(0xb0d)},{'option':_0x3c29(0x1607),'value':'\x27hotmail\x27'},{'option':_0x3c29(0x14f3),'value':_0x3c29(0x17b0)},{'option':_0x3c29(0x1ca3),'value':_0x3c29(0xa90)}],function(_0x255cb0){const _0x27fcfe=_0x3c29;return _0x28c606()[_0x27fcfe(0x1353)](_0x255cb0[_0x27fcfe(0x1096)],new RegExp('\x27','g'),'');}),_0x827dda[_0x3c29(0xff6)]=_0x2585e0,_0x827dda[_0x3c29(0x1c09)]=_0x580d49,_0x827dda[_0x3c29(0x1531)]=_0x438a98,_0x827dda[_0x3c29(0x93f)]=_0x471cf2,_0x827dda[_0x3c29(0x104a)]=_0x38a5b9,_0x827dda[_0x3c29(0x1262)]=_0x495cc1,_0x827dda[_0x3c29(0x1339)]=_0x3adc48,_0x827dda[_0x3c29(0x8df)]=_0xde3475,_0x827dda[_0x3c29(0x1cc2)]=_0x2f5a4c,_0x827dda[_0x3c29(0x841)]=_0x312eab,_0x827dda[_0x3c29(0x238c)]=_0x20b501,_0x827dda[_0x3c29(0x16dc)]=_0x1158ea,_0x827dda[_0x3c29(0x282d)]=_0x54ee9b,_0x827dda[_0x3c29(0x7ad)]=_0x10b787,_0x4bda8c[_0x3c29(0x4de)](_0x3c29(0x333))?_0x1af999['cmList']['get']({'fields':_0x3c29(0x1427),'sort':_0x3c29(0x2494)})[_0x3c29(0x15e7)][_0x3c29(0x64a)](function(_0x32233c){const _0x52b7b3=_0x3c29;_0x827dda[_0x52b7b3(0x974)]=_0x32233c['rows']||[];})[_0x3c29(0x20cd)](function(_0x433bd7){const _0x162888=_0x3c29;_0x5c064d['error']({'title':_0x433bd7[_0x162888(0x10b3)]?'API:'+_0x433bd7[_0x162888(0x10b3)]+'\x20-\x20'+_0x433bd7[_0x162888(0x2115)]:_0x162888(0x1ed6),'msg':_0x433bd7['data']?JSON[_0x162888(0x2317)](_0x433bd7[_0x162888(0x1c52)]):_0x433bd7[_0x162888(0x2915)]()});}):_0x1af999[_0x3c29(0x19f8)][_0x3c29(0x896)]({'fields':_0x3c29(0x1427),'sort':_0x3c29(0x2494)})['$promise']['then'](function(_0x562e1f){const _0xae2048=_0x3c29;_0x827dda[_0xae2048(0x974)]=_0x562e1f[_0xae2048(0x28b8)]||[];})[_0x3c29(0x64a)](function(){const _0x322e2a=_0x3c29;return _0x1af999[_0x322e2a(0x16b2)]['get']({'userProfileId':_0x827dda['currentUser'][_0x322e2a(0x21ac)],'sectionId':0x12d})[_0x322e2a(0x15e7)];})['then'](function(_0x20e29f){const _0x4a7a93=_0x3c29,_0x338c02=_0x20e29f&&_0x20e29f['rows']?_0x20e29f[_0x4a7a93(0x28b8)][0x0]:null;if(!_0x338c02){const _0x7b8d3d=[];let _0x2dd39f=null;_0x827dda['mailAccount']&&(_0x2dd39f=_0x28c606()[_0x4a7a93(0x27bc)](_0x827dda[_0x4a7a93(0x974)],{'id':Number(_0x827dda[_0x4a7a93(0x1b1e)]['ListId'])}));for(let _0x2e575f=0x0;_0x2e575f<_0x827dda[_0x4a7a93(0x974)][_0x4a7a93(0x1b9e)];_0x2e575f++){_0x2dd39f&&_0x827dda[_0x4a7a93(0x974)][_0x2e575f]['id']===_0x2dd39f['id']&&(_0x827dda[_0x4a7a93(0x974)][_0x2e575f][_0x4a7a93(0xd4f)]=![],_0x7b8d3d[_0x4a7a93(0x1954)](_0x827dda['lists'][_0x2e575f]));}_0x827dda[_0x4a7a93(0x974)]=_0x7b8d3d;}else{if(!_0x338c02[_0x4a7a93(0x11da)])return _0x1af999[_0x4a7a93(0x1617)][_0x4a7a93(0x896)]({'sectionId':_0x338c02['id']})['$promise'][_0x4a7a93(0x64a)](function(_0x120550){const _0xedfa4e=_0x4a7a93,_0x1fbae5=_0x28c606()[_0xedfa4e(0x1de5)](_0x120550[_0xedfa4e(0x28b8)],function(_0x45579c){const _0x29740e=_0xedfa4e;return _0x28c606()[_0x29740e(0x27bc)](_0x827dda[_0x29740e(0x974)],{'id':_0x45579c[_0x29740e(0x145)]});});let _0x59907e=null;_0x827dda[_0xedfa4e(0x1b1e)]&&(_0x59907e=_0x28c606()[_0xedfa4e(0x27bc)](_0x827dda[_0xedfa4e(0x974)],{'id':Number(_0x827dda['mailAccount'][_0xedfa4e(0x869)])}));if(_0x59907e&&!_0x28c606()[_0xedfa4e(0x25f8)](_0x1fbae5,['id',_0x59907e['id']])){const _0x315d37=_0x28c606()['find'](_0x827dda[_0xedfa4e(0x974)],{'id':_0x59907e['id']});_0x315d37[_0xedfa4e(0xd4f)]=![],_0x1fbae5[_0xedfa4e(0x1954)](_0x315d37);}_0x827dda[_0xedfa4e(0x974)]=_0x1fbae5;});}})[_0x3c29(0x20cd)](function(_0x3d495f){const _0x485489=_0x3c29;_0x5c064d[_0x485489(0x1bd0)]({'title':_0x3d495f[_0x485489(0x10b3)]?_0x485489(0x575)+_0x3d495f[_0x485489(0x10b3)]+_0x485489(0x21db)+_0x3d495f['statusText']:_0x485489(0x1beb),'msg':_0x3d495f[_0x485489(0x1c52)]?JSON['stringify'](_0x3d495f[_0x485489(0x1c52)]):_0x3d495f[_0x485489(0x2915)]()});});function _0x2585e0(_0x6f6eae){const _0x42c2a1=_0x3c29;_0x466ac0['go'](_0x42c2a1(0x8e5),{'id':_0x6f6eae['id'],'mailAccount':_0x6f6eae,'crudPermissions':_0x827dda[_0x42c2a1(0x402)]});}function _0x580d49(_0x2b10e0){const _0x57116f=_0x3c29;if(_0x2b10e0&&_0x2b10e0['id'])return _0x1af999['mailAccount'][_0x57116f(0x4b7)]({'id':_0x2b10e0['id']})[_0x57116f(0x15e7)][_0x57116f(0x64a)](function(){const _0x4e8249=_0x57116f;_0x5c064d[_0x4e8249(0x1339)]({'title':_0x4e8249(0x27ea),'msg':_0x4e8249(0x259b)});})[_0x57116f(0x20cd)](function(_0x1fd650){const _0x3727ee=_0x57116f;_0x5c064d[_0x3727ee(0x1bd0)]({'title':_0x3727ee(0x27ea),'msg':_0x1fd650[_0x3727ee(0x1c52)]?JSON[_0x3727ee(0x2317)](_0x1fd650['data']):_0x1fd650[_0x3727ee(0x2915)]()});});else _0x5c064d['error']({'title':_0x57116f(0x27ea),'msg':_0x57116f(0x2206)});}function _0x438a98(_0x54220a){const _0x23cbe9=_0x3c29;_0x466ac0['go'](_0x23cbe9(0x8e5),{'id':_0x54220a['id'],'tab':0x7});}function _0x471cf2(){const _0x481659=_0x3c29;if(_0x4bda8c[_0x481659(0x4de)]('admin'))_0x466ac0['go']('app.mail.realtime.accounts',{});else return _0x1af999[_0x481659(0x16b2)][_0x481659(0x896)]({'userProfileId':_0x4bda8c[_0x481659(0x808)]()[_0x481659(0x21ac)],'sectionId':0x262})[_0x481659(0x15e7)][_0x481659(0x64a)](function(_0x1c9ee7){const _0x2a1560=_0x481659,_0x5afd1f=_0x1c9ee7&&_0x1c9ee7['rows']?_0x1c9ee7[_0x2a1560(0x28b8)][0x0]:null;_0x5afd1f&&_0x5afd1f['enabled']?_0x466ac0['go']('app.mail.realtime.accounts',{}):_0x5c064d[_0x2a1560(0x772)]({'title':_0x44327c[_0x2a1560(0x2292)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x44327c['instant'](_0x2a1560(0x229))});})[_0x481659(0x20cd)](function(_0x32d7d0){const _0x2e8e93=_0x481659;_0x5c064d[_0x2e8e93(0x1bd0)]({'title':_0x32d7d0[_0x2e8e93(0x10b3)]?_0x2e8e93(0x575)+_0x32d7d0[_0x2e8e93(0x10b3)]+_0x2e8e93(0x21db)+_0x32d7d0[_0x2e8e93(0x2115)]:_0x2e8e93(0x942),'msg':_0x32d7d0['status']?JSON[_0x2e8e93(0x2317)](_0x32d7d0[_0x2e8e93(0x1c52)]):_0x32d7d0[_0x2e8e93(0x2915)]()});});}function _0x38a5b9(_0x361903,_0x191a33){const _0x18c3e0=_0x3c29;_0x112742[_0x18c3e0(0xa60)]({'controller':_0x18c3e0(0x7d9),'controllerAs':'vm','templateUrl':_0x19a163,'parent':angular['element'](_0x351ca4[_0x18c3e0(0xb49)]),'targetEvent':_0x191a33,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x361903,'mailAccounts':_0x827dda[_0x18c3e0(0x2435)]?_0x827dda['mailAccounts']['rows']:[],'crudPermissions':_0x827dda[_0x18c3e0(0x402)],'realtime':![]}});}function _0x495cc1(_0x47743d,_0x482016){const _0xa1ccc7=_0x3c29,_0x10fe77=_0x112742[_0xa1ccc7(0x856)]()[_0xa1ccc7(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()['startCase'](_0xa1ccc7(0x1b1e))+'?')[_0xa1ccc7(0x33a)](''+(_0x47743d[_0xa1ccc7(0x2494)]||'mailAccount')+_0xa1ccc7(0x26d0)+'\x20will\x20be\x20deleted.')[_0xa1ccc7(0x213e)](_0xa1ccc7(0x1334))[_0xa1ccc7(0x2283)](_0x482016)['ok']('OK')[_0xa1ccc7(0x101a)]('CANCEL');_0x112742[_0xa1ccc7(0xa60)](_0x10fe77)['then'](function(){_0x312eab(_0x47743d);},function(){const _0x5d7894=_0xa1ccc7;console[_0x5d7894(0x9b4)](_0x5d7894(0x18fd));});}let _0x16985=!![],_0x5aad7f=0x1;_0x45979a[_0x3c29(0xc62)](_0x3c29(0x1cb9),function(_0x2314d7,_0xcd7c5d){const _0x9e7844=_0x3c29;_0x16985?_0x3ffaf6(function(){_0x16985=![];}):(!_0xcd7c5d&&(_0x5aad7f=_0x827dda[_0x9e7844(0x289a)][_0x9e7844(0xc72)]),_0x2314d7!==_0xcd7c5d&&(_0x827dda[_0x9e7844(0x289a)][_0x9e7844(0xc72)]=0x1),!_0x2314d7&&(_0x827dda[_0x9e7844(0x289a)][_0x9e7844(0xc72)]=_0x5aad7f),_0x827dda[_0x9e7844(0x8df)]());});function _0x3adc48(_0x4f90d8){const _0x4ec2b8=_0x3c29;_0x827dda[_0x4ec2b8(0x2435)]=_0x4f90d8||{'count':0x0,'rows':[]};}function _0xde3475(){const _0x2fe86d=_0x3c29;_0x827dda['query']['offset']=(_0x827dda['query'][_0x2fe86d(0xc72)]-0x1)*_0x827dda['query'][_0x2fe86d(0x25bb)],_0x4bda8c[_0x2fe86d(0x4de)](_0x2fe86d(0x333))?_0x827dda[_0x2fe86d(0x1713)]=_0x1af999[_0x2fe86d(0x1b1e)][_0x2fe86d(0x896)](_0x827dda['query'],_0x3adc48)[_0x2fe86d(0x15e7)]:(_0x827dda[_0x2fe86d(0x289a)]['id']=_0x827dda[_0x2fe86d(0x16a8)]['id'],_0x827dda[_0x2fe86d(0x289a)][_0x2fe86d(0xa21)]=_0x2fe86d(0x1941),_0x827dda[_0x2fe86d(0x1713)]=_0x1af999[_0x2fe86d(0x16a8)][_0x2fe86d(0x2565)](_0x827dda['query'],_0x3adc48)[_0x2fe86d(0x15e7)]);}function _0x2f5a4c(_0x5b2fe4,_0x428927){const _0x27b743=_0x3c29;_0x112742[_0x27b743(0xa60)]({'controller':_0x27b743(0x17dd),'controllerAs':'vm','templateUrl':_0x325e68,'parent':angular[_0x27b743(0x1f81)](_0x351ca4[_0x27b743(0xb49)]),'targetEvent':_0x5b2fe4,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x428927,'mailAccounts':_0x827dda[_0x27b743(0x2435)][_0x27b743(0x28b8)],'license':_0x827dda['license'],'setting':_0x827dda['setting'],'crudPermissions':_0x827dda[_0x27b743(0x402)]}});}function _0x312eab(_0x320046){const _0x4195bd=_0x3c29;if(_0x320046['service'])return _0x5c064d['error']({'title':_0x4195bd(0x1e34),'msg':_0x4195bd(0x14fc)});_0x1af999[_0x4195bd(0x1b1e)]['delete']({'id':_0x320046['id']})[_0x4195bd(0x15e7)][_0x4195bd(0x64a)](function(){const _0x240621=_0x4195bd;_0x28c606()['remove'](_0x827dda[_0x240621(0x2435)][_0x240621(0x28b8)],{'id':_0x320046['id']}),_0x827dda[_0x240621(0x2435)][_0x240621(0xb90)]-=0x1,!_0x827dda[_0x240621(0x2435)][_0x240621(0x28b8)][_0x240621(0x1b9e)]&&_0x827dda[_0x240621(0x8df)](),_0x5c064d[_0x240621(0x1339)]({'title':_0x28c606()[_0x240621(0xc01)](_0x240621(0x2224))+_0x240621(0x2502),'msg':_0x320046['name']?_0x320046[_0x240621(0x2494)]+_0x240621(0x1fa8):''});})['catch'](function(_0x3e6081){const _0x116446=_0x4195bd;if(_0x3e6081[_0x116446(0x1c52)]&&_0x3e6081[_0x116446(0x1c52)][_0x116446(0xbae)]&&_0x3e6081[_0x116446(0x1c52)][_0x116446(0xbae)]['length']){_0x827dda[_0x116446(0xbae)]=_0x3e6081[_0x116446(0x1c52)]['errors']||[{'message':_0x3e6081[_0x116446(0x2915)](),'type':_0x116446(0x142f)}];for(let _0x411afc=0x0;_0x411afc<_0x3e6081[_0x116446(0x1c52)][_0x116446(0xbae)][_0x116446(0x1b9e)];_0x411afc++){_0x5c064d['error']({'title':_0x3e6081[_0x116446(0x1c52)][_0x116446(0xbae)][_0x411afc][_0x116446(0x2185)],'msg':_0x3e6081[_0x116446(0x1c52)][_0x116446(0xbae)][_0x411afc]['message']});}}else _0x5c064d[_0x116446(0x1bd0)]({'title':_0x3e6081['status']?_0x116446(0x575)+_0x3e6081[_0x116446(0x10b3)]+_0x116446(0x21db)+_0x3e6081[_0x116446(0x2115)]:'SYSTEM:DELETEmailAccount','msg':_0x3e6081['data']?JSON['stringify'](_0x3e6081[_0x116446(0x1c52)][_0x116446(0x18ca)]):_0x3e6081[_0x116446(0x18ca)]||_0x3e6081['toString']()});});}function _0x20b501(){const _0x13cf92=_0x3c29,_0x191383=angular['copy'](_0x827dda[_0x13cf92(0x1ce5)]);return _0x827dda['selectedMailAccounts']=[],_0x191383;}function _0x1158ea(_0xf28a70){const _0x2844ab=_0x3c29,_0x4bc35f=_0x112742[_0x2844ab(0x856)]()[_0x2844ab(0x2021)](_0x2844ab(0x2831))[_0x2844ab(0x33a)](''+_0x827dda[_0x2844ab(0x1ce5)][_0x2844ab(0x1b9e)]+_0x2844ab(0x163e)+'\x20will\x20be\x20deleted.')[_0x2844ab(0x213e)]('delete\x20MailAccounts')[_0x2844ab(0x2283)](_0xf28a70)['ok']('OK')[_0x2844ab(0x101a)](_0x2844ab(0x18fd));_0x112742[_0x2844ab(0xa60)](_0x4bc35f)['then'](function(){const _0x388c87=_0x2844ab;_0x827dda['selectedMailAccounts'][_0x388c87(0x1397)](function(_0x2af1c0){_0x312eab(_0x2af1c0);}),_0x827dda[_0x388c87(0x1ce5)]=[];});}function _0x54ee9b(){const _0x1a396b=_0x3c29;_0x827dda[_0x1a396b(0x1ce5)]=[];}function _0x10b787(){const _0x49b76b=_0x3c29;_0x827dda[_0x49b76b(0x1ce5)]=_0x827dda['mailAccounts'][_0x49b76b(0x28b8)];}}const _0x27b95e=_0x577129;;_0x3ce496['$inject']=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0xdba),_0x49a1e3(0x1eb3),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x3ce496(_0x3e9c65,_0x283987,_0x545609,_0x395e73,_0x47316c,_0x39a15e,_0x36e59f,_0x4bece9,_0x38915c,_0x47f8ce,_0x19ee6b,_0x1cbc89,_0x2afc49,_0x5b4f30){const _0x3a9782=_0x49a1e3,_0x5c8871=this;_0x5c8871[_0x3a9782(0x1d3d)]=_0x19ee6b[_0x3a9782(0x808)](),_0x5c8871[_0x3a9782(0xbae)]=[],_0x5c8871[_0x3a9782(0x28d6)]=_0x2afc49,_0x5c8871[_0x3a9782(0x1947)]=_0x1cbc89,_0x5c8871[_0x3a9782(0x402)]=_0x5b4f30,_0x5c8871['hasModulePermissions']={},_0x5c8871[_0x3a9782(0xccc)]=_0x5c8871['setting']&&_0x5c8871['setting'][_0x3a9782(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5c8871['title']=_0x3a9782(0x2143),_0x5c8871[_0x3a9782(0x1eb3)]=angular[_0x3a9782(0x289e)](_0x38915c),_0x5c8871[_0x3a9782(0xdba)]=_0x4bece9,_0x5c8871[_0x3a9782(0x2293)]=![];!_0x5c8871[_0x3a9782(0x1eb3)]&&(_0x5c8871['mailQueue']={'strategy':_0x3a9782(0x24e2),'timeout':0xa},_0x5c8871['title']='MAIL.NEW_MAILQUEUE',_0x5c8871[_0x3a9782(0x2293)]=!![]);_0x5c8871[_0x3a9782(0xdc1)]=_0x4b2f2e,_0x5c8871[_0x3a9782(0x15a3)]=_0x3ab3b2,_0x5c8871[_0x3a9782(0x146c)]=_0x845e79,_0x5c8871[_0x3a9782(0x1605)]=_0x2a14df,_0x5c8871[_0x3a9782(0x16cb)]=_0x325482;function _0x4b2f2e(){const _0x678e25=_0x3a9782;_0x5c8871[_0x678e25(0xbae)]=[],_0x47f8ce[_0x678e25(0x1eb3)]['save'](_0x5c8871[_0x678e25(0x1eb3)])[_0x678e25(0x15e7)][_0x678e25(0x64a)](function(_0x3c8c23){const _0x46b03d=_0x678e25;_0x5c8871['mailQueues'][_0x46b03d(0x1891)](_0x3c8c23[_0x46b03d(0x14f8)]()),_0x36e59f['success']({'title':_0x46b03d(0xc2e),'msg':_0x5c8871['mailQueue']['name']?_0x5c8871[_0x46b03d(0x1eb3)][_0x46b03d(0x2494)]+_0x46b03d(0x258d):''}),_0x325482(_0x3c8c23);})['catch'](function(_0x5f054d){const _0x322d18=_0x678e25;if(_0x5f054d[_0x322d18(0x1c52)]&&_0x5f054d[_0x322d18(0x1c52)][_0x322d18(0xbae)]&&_0x5f054d['data'][_0x322d18(0xbae)][_0x322d18(0x1b9e)]){_0x5c8871[_0x322d18(0xbae)]=_0x5f054d['data'][_0x322d18(0xbae)]||[{'message':_0x5f054d[_0x322d18(0x2915)](),'type':_0x322d18(0x1bb1)}];for(let _0x3fb684=0x0;_0x3fb684<_0x5f054d['data'][_0x322d18(0xbae)][_0x322d18(0x1b9e)];_0x3fb684+=0x1){_0x36e59f[_0x322d18(0x1bd0)]({'title':_0x5f054d[_0x322d18(0x1c52)][_0x322d18(0xbae)][_0x3fb684][_0x322d18(0x2185)],'msg':_0x5f054d[_0x322d18(0x1c52)]['errors'][_0x3fb684][_0x322d18(0x18ca)]});}}else _0x36e59f[_0x322d18(0x1bd0)]({'title':_0x5f054d[_0x322d18(0x10b3)]?_0x322d18(0x575)+_0x5f054d[_0x322d18(0x10b3)]+'\x20-\x20'+_0x5f054d[_0x322d18(0x2115)]:'api.mailQueue.save','msg':_0x5f054d[_0x322d18(0x1c52)]?JSON[_0x322d18(0x2317)](_0x5f054d[_0x322d18(0x1c52)][_0x322d18(0x18ca)]):_0x5f054d[_0x322d18(0x2915)]()});});}function _0x3ab3b2(){const _0xfc1ed=_0x3a9782;_0x5c8871[_0xfc1ed(0xbae)]=[],_0x47f8ce[_0xfc1ed(0x1eb3)]['update']({'id':_0x5c8871[_0xfc1ed(0x1eb3)]['id']},_0x5c8871[_0xfc1ed(0x1eb3)])[_0xfc1ed(0x15e7)]['then'](function(_0x141d00){const _0x5b3a41=_0xfc1ed,_0x52e7d5=_0x28c606()['find'](_0x5c8871[_0x5b3a41(0xdba)],{'id':_0x141d00['id']});_0x52e7d5&&_0x28c606()[_0x5b3a41(0x14fe)](_0x52e7d5,_0x28c606()[_0x5b3a41(0x27bb)](_0x141d00[_0x5b3a41(0x14f8)](),_0x28c606()[_0x5b3a41(0x1ec6)](_0x52e7d5))),_0x36e59f[_0x5b3a41(0x1339)]({'title':_0x5b3a41(0x122d),'msg':_0x5c8871[_0x5b3a41(0x1eb3)][_0x5b3a41(0x2494)]?_0x5c8871[_0x5b3a41(0x1eb3)]['name']+_0x5b3a41(0x271):''}),_0x325482(_0x141d00);})['catch'](function(_0x334dc1){const _0x22ff8b=_0xfc1ed;if(_0x334dc1[_0x22ff8b(0x1c52)]&&_0x334dc1[_0x22ff8b(0x1c52)]['errors']&&_0x334dc1[_0x22ff8b(0x1c52)]['errors']['length']){_0x5c8871['errors']=_0x334dc1[_0x22ff8b(0x1c52)][_0x22ff8b(0xbae)]||[{'message':_0x334dc1[_0x22ff8b(0x2915)](),'type':_0x22ff8b(0x83b)}];for(let _0x402378=0x0;_0x402378<_0x334dc1[_0x22ff8b(0x1c52)][_0x22ff8b(0xbae)][_0x22ff8b(0x1b9e)];_0x402378++){_0x36e59f[_0x22ff8b(0x1bd0)]({'title':_0x334dc1[_0x22ff8b(0x1c52)]['errors'][_0x402378][_0x22ff8b(0x2185)],'msg':_0x334dc1['data'][_0x22ff8b(0xbae)][_0x402378][_0x22ff8b(0x18ca)]});}}else _0x36e59f['error']({'title':_0x334dc1[_0x22ff8b(0x10b3)]?_0x22ff8b(0x575)+_0x334dc1[_0x22ff8b(0x10b3)]+_0x22ff8b(0x21db)+_0x334dc1[_0x22ff8b(0x2115)]:_0x22ff8b(0x83b),'msg':_0x334dc1[_0x22ff8b(0x1c52)]?JSON[_0x22ff8b(0x2317)](_0x334dc1[_0x22ff8b(0x1c52)][_0x22ff8b(0x18ca)]):_0x334dc1['toString']()});});}function _0x845e79(_0x3e1c9f){const _0x2ae473=_0x3a9782;_0x5c8871[_0x2ae473(0xbae)]=[];const _0x50382a=_0x395e73[_0x2ae473(0x856)]()['title'](_0x2ae473(0x103a))[_0x2ae473(0x12b8)](_0x2ae473(0x294d))[_0x2ae473(0x213e)](_0x2ae473(0x129c))['ok'](_0x2ae473(0x2664))['cancel'](_0x2ae473(0x1dc6))[_0x2ae473(0x2283)](_0x3e1c9f);_0x395e73[_0x2ae473(0xa60)](_0x50382a)[_0x2ae473(0x64a)](function(){const _0xab890=_0x2ae473;_0x47f8ce['mailQueue'][_0xab890(0xabd)]({'id':_0x5c8871[_0xab890(0x1eb3)]['id']})[_0xab890(0x15e7)][_0xab890(0x64a)](function(){const _0x45e84d=_0xab890;_0x28c606()[_0x45e84d(0x21c7)](_0x5c8871[_0x45e84d(0xdba)],{'id':_0x5c8871[_0x45e84d(0x1eb3)]['id']}),_0x36e59f[_0x45e84d(0x1339)]({'title':_0x45e84d(0x7fd),'msg':(_0x5c8871[_0x45e84d(0x1eb3)][_0x45e84d(0x2494)]||_0x45e84d(0x1eb3))+_0x45e84d(0x1fa8)}),_0x325482(_0x5c8871[_0x45e84d(0x1eb3)]);})[_0xab890(0x20cd)](function(_0x349992){const _0x517d35=_0xab890;if(_0x349992[_0x517d35(0x1c52)]&&_0x349992[_0x517d35(0x1c52)][_0x517d35(0xbae)]&&_0x349992['data']['errors'][_0x517d35(0x1b9e)]){_0x5c8871[_0x517d35(0xbae)]=_0x349992[_0x517d35(0x1c52)][_0x517d35(0xbae)]||[{'message':_0x349992[_0x517d35(0x2915)](),'type':_0x517d35(0x230c)}];for(let _0x57deae=0x0;_0x57deae<_0x349992['data']['errors'][_0x517d35(0x1b9e)];_0x57deae++){_0x36e59f[_0x517d35(0x1bd0)]({'title':_0x349992[_0x517d35(0x1c52)][_0x517d35(0xbae)][_0x57deae][_0x517d35(0x2185)],'msg':_0x349992[_0x517d35(0x1c52)][_0x517d35(0xbae)][_0x57deae][_0x517d35(0x18ca)]});}}else _0x36e59f[_0x517d35(0x1bd0)]({'title':_0x349992[_0x517d35(0x10b3)]?'API:'+_0x349992[_0x517d35(0x10b3)]+_0x517d35(0x21db)+_0x349992[_0x517d35(0x2115)]:_0x517d35(0x230c),'msg':_0x349992[_0x517d35(0x1c52)]?JSON[_0x517d35(0x2317)](_0x349992[_0x517d35(0x1c52)][_0x517d35(0x18ca)]):_0x349992[_0x517d35(0x18ca)]||_0x349992[_0x517d35(0x2915)]()});});},function(){});}function _0x2a14df(_0x1b471c){return _0x1b471c===null?undefined:new Date(_0x1b471c);}function _0x325482(_0x174a37){const _0x42c7a6=_0x3a9782;_0x395e73[_0x42c7a6(0x268e)](_0x174a37);}}const _0x1cfcda=_0x3ce496;;_0x4f047a['$inject']=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0xa19),_0x49a1e3(0x1eb3),'mailQueues','realtime',_0x49a1e3(0x298c),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x4f047a(_0x84d596,_0x3b1530,_0x82ecf5,_0x2050cb,_0x609588,_0x39e900,_0x490605,_0x38452d,_0x5a925a,_0x1f50b8){const _0x5e0b39=_0x49a1e3,_0x3e6db9=this;_0x3e6db9[_0x5e0b39(0x1d3d)]=_0x5a925a[_0x5e0b39(0x808)](),_0x3e6db9['mailQueue']=_0x609588,_0x3e6db9[_0x5e0b39(0x402)]=_0x1f50b8,_0x3e6db9[_0x5e0b39(0x252e)]=_0x490605,_0x3e6db9[_0x5e0b39(0x23cb)]=[],_0x3e6db9[_0x5e0b39(0x13d1)]=[],_0x3e6db9[_0x5e0b39(0x1f4f)]=[],_0x3e6db9[_0x5e0b39(0x206b)]=[],_0x3e6db9[_0x5e0b39(0x24e1)]=[],_0x3e6db9[_0x5e0b39(0xe9e)]=![],_0x3e6db9[_0x5e0b39(0x2483)]=_0x20edbf,_0x3e6db9['saveAgents']=_0x5b5afb,_0x3e6db9[_0x5e0b39(0x16cb)]=_0xaea0df,_0x3e6db9['dualMultiselectOptions']={'readOnly':!_0x3e6db9['crudPermissions'][_0x5e0b39(0xd86)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5e0b39(0x2494),'line1':_0x5e0b39(0x15c),'line2':['name',_0x5e0b39(0xe2f)],'line3':'','labelAll':_0x38452d[_0x5e0b39(0x2292)]('APP.ALL_AGENTS'),'labelSelected':_0x38452d[_0x5e0b39(0x2292)](_0x5e0b39(0xcf8)),'transferCallback':function(){const _0x5f2a59=_0x5e0b39,_0x30ff4a=_0x28c606()[_0x5f2a59(0x1ad)](_0x3e6db9[_0x5f2a59(0x24e1)],_0x3e6db9[_0x5f2a59(0x1f4f)],'id');_0x3e6db9['pendingChanges']=_0x28c606()[_0x5f2a59(0x940)](_0x30ff4a)?![]:!![];}};function _0x20edbf(){const _0x55e7e0=_0x5e0b39;return _0x5a925a[_0x55e7e0(0x4de)](_0x55e7e0(0x333))?_0x133ec9()[_0x55e7e0(0x20cd)](function(_0x2c20a4){const _0x4593e7=_0x55e7e0;_0x82ecf5['error']({'title':_0x2c20a4[_0x4593e7(0x10b3)]?'API:'+_0x2c20a4['status']+_0x4593e7(0x21db)+_0x2c20a4[_0x4593e7(0x2115)]:'SYSTEM:GET_AGENTS','msg':_0x2c20a4[_0x4593e7(0x10b3)]?JSON['stringify'](_0x2c20a4[_0x4593e7(0x1c52)]):_0x2c20a4[_0x4593e7(0x2915)]()});}):_0x54da76()[_0x55e7e0(0x64a)](function(_0x6b1fa6){return _0x3e6db9['section']=_0x6b1fa6,_0x133ec9();})['catch'](function(_0x4f9229){const _0x32f4f9=_0x55e7e0;_0x82ecf5[_0x32f4f9(0x1bd0)]({'title':_0x4f9229[_0x32f4f9(0x10b3)]?_0x32f4f9(0x575)+_0x4f9229[_0x32f4f9(0x10b3)]+_0x32f4f9(0x21db)+_0x4f9229[_0x32f4f9(0x2115)]:_0x32f4f9(0x554),'msg':_0x4f9229['status']?JSON[_0x32f4f9(0x2317)](_0x4f9229[_0x32f4f9(0x1c52)]):_0x4f9229['toString']()});});}function _0x54da76(){return _0x3b1530(function(_0x5652ea,_0x1537bd){const _0x425881=a0_0x4127;_0x2050cb['userProfileSection']['get']({'userProfileId':_0x3e6db9[_0x425881(0x1d3d)][_0x425881(0x21ac)],'name':_0x425881(0x2132)})[_0x425881(0x15e7)]['then'](function(_0x1f2e3a){const _0x495fec=_0x425881,_0x190f22=_0x1f2e3a&&_0x1f2e3a['rows']?_0x1f2e3a[_0x495fec(0x28b8)][0x0]:null;_0x5652ea(_0x190f22);})[_0x425881(0x20cd)](function(_0x5d881b){_0x1537bd(_0x5d881b);});});}function _0x133ec9(){return _0x3b1530(function(_0x201534,_0x15382a){const _0x272103=a0_0x4127;return _0x463aea()[_0x272103(0x64a)](function(_0x56c237){const _0x198d3c=_0x272103;return _0x3e6db9['items']=_0x56c237[_0x198d3c(0x28b8)]?_0x56c237[_0x198d3c(0x28b8)]:[],_0x5a925a['hasRole']('admin')?_0x56c237:_0x3e6db9[_0x198d3c(0xa21)]?_0x3e6db9[_0x198d3c(0xa21)][_0x198d3c(0x11da)]?_0x56c237:_0xcb3771():null;})[_0x272103(0x64a)](function(_0x3b9dbb){const _0x2322a8=_0x272103,_0x14eb4f=_0x3b9dbb&&_0x3b9dbb['rows']?_0x3b9dbb[_0x2322a8(0x28b8)]:[];return _0x3e6db9[_0x2322a8(0x13d1)]=_0x28c606()[_0x2322a8(0x1de5)](_0x14eb4f,function(_0x54c018){const _0x524808=_0x2322a8;return _0x28c606()[_0x524808(0x27bc)](_0x3e6db9['items'],{'id':_0x5a925a[_0x524808(0x4de)](_0x524808(0x333))||_0x3e6db9[_0x524808(0xa21)][_0x524808(0x11da)]?_0x54c018['id']:_0x54c018[_0x524808(0x145)]});}),_0x3e6db9['startingAllowedItems']=angular[_0x2322a8(0x289e)](_0x3e6db9[_0x2322a8(0x13d1)]),_0x3e6db9[_0x2322a8(0x23cb)][_0x2322a8(0x1397)](function(_0x14d0e1){const _0x58a79f=_0x2322a8,_0x2db7c1=_0x28c606()['find'](_0x3e6db9[_0x58a79f(0x13d1)],{'id':_0x14d0e1['id']});_0x5a925a[_0x58a79f(0x4de)](_0x58a79f(0x333))?_0x14d0e1[_0x58a79f(0x6f9)]=!![]:_0x14d0e1[_0x58a79f(0x6f9)]=typeof _0x2db7c1!==_0x58a79f(0x19a1)?!![]:![];}),_0x114a96();})[_0x272103(0x64a)](function(_0x41e30){const _0x4403f4=_0x272103,_0x25dc37=_0x41e30&&_0x41e30[_0x4403f4(0x28b8)]?_0x41e30[_0x4403f4(0x28b8)]:[];_0x3e6db9[_0x4403f4(0x1f4f)]=_0x28c606()[_0x4403f4(0x1de5)](_0x25dc37,function(_0x51ee5d){const _0x11a946=_0x4403f4,_0x303580=_0x28c606()[_0x11a946(0x27bc)](_0x3e6db9[_0x11a946(0x23cb)],{'id':_0x51ee5d['id']});return _0x303580[_0x11a946(0x70f)]=_0x51ee5d['UserMailQueue']?'penalty\x20'+_0x51ee5d[_0x11a946(0x429)]['penalty']:'',_0x303580[_0x11a946(0xe2f)]=typeof _0x51ee5d[_0x11a946(0xe2f)]!=='undefined'?'<'+_0x51ee5d[_0x11a946(0xe2f)]+'>':'',_0x303580;}),_0x3e6db9[_0x4403f4(0x24e1)]=angular['copy'](_0x3e6db9[_0x4403f4(0x1f4f)]),_0x3e6db9[_0x4403f4(0x1eeb)][_0x4403f4(0x1f4f)]=_0x3e6db9['selectedItems'],_0x3e6db9[_0x4403f4(0x1eeb)][_0x4403f4(0x23cb)]=_0x28c606()[_0x4403f4(0x23e5)](_0x3e6db9[_0x4403f4(0x13d1)],_0x3e6db9['dualMultiselectOptions'][_0x4403f4(0x1f4f)],'id'),_0x201534();})[_0x272103(0x20cd)](function(_0x1e98ca){_0x15382a(_0x1e98ca);});});}function _0xcb3771(){return _0x3b1530(function(_0x1e851b,_0x4dc71b){const _0x507fdc=a0_0x4127;return _0x2050cb[_0x507fdc(0x1617)][_0x507fdc(0x896)]({'sectionId':_0x3e6db9[_0x507fdc(0xa21)]['id'],'nolimit':!![]})[_0x507fdc(0x15e7)][_0x507fdc(0x64a)](function(_0x2ce9da){_0x1e851b(_0x2ce9da);})[_0x507fdc(0x20cd)](function(_0x158d69){_0x4dc71b(_0x158d69);});});}function _0x114a96(){return _0x3b1530(function(_0x20005e,_0x299115){const _0x371f22=a0_0x4127;return _0x2050cb[_0x371f22(0x1eb3)]['getAgents']({'id':_0x3e6db9[_0x371f22(0x1eb3)]['id'],'fields':_0x371f22(0x2105),'nolimit':!![],'role':_0x371f22(0x11ae)})['$promise']['then'](function(_0x50ca43){_0x20005e(_0x50ca43);})[_0x371f22(0x20cd)](function(_0x1be872){_0x299115(_0x1be872);});});}function _0x463aea(){return _0x3b1530(function(_0x7ed2c1,_0x5e3ffb){const _0x1cafd9=a0_0x4127;return _0x2050cb[_0x1cafd9(0x2e8)][_0x1cafd9(0x896)]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x1cafd9(0x11ae)})[_0x1cafd9(0x15e7)][_0x1cafd9(0x64a)](function(_0x480740){_0x7ed2c1(_0x480740);})[_0x1cafd9(0x20cd)](function(_0x5503a4){_0x5e3ffb(_0x5503a4);});});}function _0x19df5e(_0x1f4f60){return _0x3b1530(function(_0x1c763a,_0x58edbb){const _0x2b3cca=a0_0x4127;_0x28c606()[_0x2b3cca(0x940)](_0x1f4f60)?_0x1c763a():_0x2050cb[_0x2b3cca(0x1eb3)][_0x2b3cca(0x1575)]({'id':_0x3e6db9['mailQueue']['id'],'ids':_0x28c606()[_0x2b3cca(0x1de5)](_0x1f4f60,'id')})[_0x2b3cca(0x15e7)][_0x2b3cca(0x64a)](function(){_0x1c763a();})[_0x2b3cca(0x20cd)](function(_0x4b3d4c){_0x58edbb(_0x4b3d4c);});});}function _0x38f60e(_0x3b177a){return _0x3b1530(function(_0x59ab55,_0x412ff2){const _0x358570=a0_0x4127;_0x28c606()['isEmpty'](_0x3b177a)?_0x59ab55():_0x2050cb['mailQueue'][_0x358570(0x251d)]({'id':_0x3e6db9[_0x358570(0x1eb3)]['id'],'ids':_0x28c606()[_0x358570(0x1de5)](_0x3b177a,'id')})['$promise']['then'](function(){_0x59ab55();})[_0x358570(0x20cd)](function(_0x23a33a){_0x412ff2(_0x23a33a);});});}function _0x5b5afb(){const _0x1bf468=_0x5e0b39,_0x326025=_0x28c606()[_0x1bf468(0x23e5)](_0x3e6db9[_0x1bf468(0x24e1)],_0x3e6db9[_0x1bf468(0x1f4f)],'id'),_0x1cc2fc=_0x28c606()['differenceBy'](_0x3e6db9['selectedItems'],_0x3e6db9[_0x1bf468(0x24e1)],'id');return _0x38f60e(_0x326025)[_0x1bf468(0x64a)](function(){return _0x19df5e(_0x1cc2fc);})[_0x1bf468(0x64a)](function(){const _0x20ad99=_0x1bf468;_0x3e6db9[_0x20ad99(0xe9e)]=![],_0x3e6db9[_0x20ad99(0x206b)]=angular[_0x20ad99(0x289e)](_0x3e6db9['allowedItems']),_0x3e6db9[_0x20ad99(0x24e1)]=angular[_0x20ad99(0x289e)](_0x3e6db9[_0x20ad99(0x1f4f)]),_0x82ecf5[_0x20ad99(0x1339)]({'title':_0x20ad99(0x24d6),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x1bf468(0x20cd)](function(_0x3b1be1){const _0x3a56a5=_0x1bf468;_0x82ecf5[_0x3a56a5(0x1bd0)]({'title':_0x3b1be1['status']?_0x3a56a5(0x575)+_0x3b1be1['status']+_0x3a56a5(0x21db)+_0x3b1be1['statusText']:'SYSTEM:LISTS_ASSOCIATION','msg':_0x3b1be1[_0x3a56a5(0x10b3)]?JSON[_0x3a56a5(0x2317)](_0x3b1be1[_0x3a56a5(0x1c52)]):_0x3b1be1[_0x3a56a5(0x2915)]()});});}function _0xaea0df(){const _0x1fb5e2=_0x5e0b39;_0x84d596[_0x1fb5e2(0x268e)]();}}const _0x599bd9=_0x4f047a;;_0x189770[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa19),'mailQueue','$translate',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x189770(_0x3328fe,_0x42ce14,_0x29372e,_0x1d3646,_0x5af928,_0x2401d1,_0x3ae4ba,_0x550c81){const _0xa12230=_0x49a1e3,_0x1e5537=this;_0x1e5537[_0xa12230(0x1d3d)]=_0x3ae4ba['getCurrentUser'](),_0x1e5537[_0xa12230(0x1eb3)]=_0x5af928,_0x1e5537[_0xa12230(0x402)]=_0x550c81,_0x1e5537[_0xa12230(0x23cb)]=[],_0x1e5537['allowedItems']=[],_0x1e5537[_0xa12230(0x1f4f)]=[],_0x1e5537['startingAllowedItems']=[],_0x1e5537[_0xa12230(0x24e1)]=[],_0x1e5537[_0xa12230(0xe9e)]=![],_0x1e5537[_0xa12230(0x1eeb)]={'readOnly':!_0x1e5537[_0xa12230(0x402)][_0xa12230(0xd86)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0xa12230(0x2494),'line1':_0xa12230(0x2494),'line2':'','line3':'','labelAll':_0x2401d1[_0xa12230(0x2292)](_0xa12230(0x1ef1)),'labelSelected':_0x2401d1['instant'](_0xa12230(0x2936)),'transferCallback':function(){const _0x3dd66b=_0xa12230,_0x391393=_0x28c606()['xorBy'](_0x1e5537[_0x3dd66b(0x24e1)],_0x1e5537[_0x3dd66b(0x1f4f)],'id');_0x1e5537[_0x3dd66b(0xe9e)]=_0x28c606()[_0x3dd66b(0x940)](_0x391393)?![]:!![];}},_0x1e5537[_0xa12230(0x2483)]=_0x5c7042,_0x1e5537[_0xa12230(0x1c8c)]=_0x3c6227,_0x1e5537[_0xa12230(0x16cb)]=_0x277325;function _0x5c7042(){const _0x4be5e1=_0xa12230;return _0x3ae4ba[_0x4be5e1(0x4de)](_0x4be5e1(0x333))?_0x51c715()['catch'](function(_0x2d2762){const _0x1a15bb=_0x4be5e1;_0x29372e[_0x1a15bb(0x1bd0)]({'title':_0x2d2762[_0x1a15bb(0x10b3)]?_0x1a15bb(0x575)+_0x2d2762['status']+_0x1a15bb(0x21db)+_0x2d2762[_0x1a15bb(0x2115)]:_0x1a15bb(0x1542),'msg':_0x2d2762[_0x1a15bb(0x10b3)]?JSON[_0x1a15bb(0x2317)](_0x2d2762[_0x1a15bb(0x1c52)]):_0x2d2762[_0x1a15bb(0x2915)]()});}):_0x3b23f5()['then'](function(_0x170874){return _0x1e5537['section']=_0x170874,_0x51c715();})[_0x4be5e1(0x20cd)](function(_0x58bda6){const _0x903db3=_0x4be5e1;_0x29372e['error']({'title':_0x58bda6['status']?_0x903db3(0x575)+_0x58bda6[_0x903db3(0x10b3)]+_0x903db3(0x21db)+_0x58bda6[_0x903db3(0x2115)]:_0x903db3(0x1542),'msg':_0x58bda6['status']?JSON[_0x903db3(0x2317)](_0x58bda6[_0x903db3(0x1c52)]):_0x58bda6[_0x903db3(0x2915)]()});});}function _0x3b23f5(){return _0x42ce14(function(_0xb5bbec,_0x50942c){const _0x3fff3a=a0_0x4127;_0x1d3646[_0x3fff3a(0x16b2)]['get']({'userProfileId':_0x1e5537[_0x3fff3a(0x1d3d)][_0x3fff3a(0x21ac)],'name':_0x3fff3a(0x286d)})[_0x3fff3a(0x15e7)][_0x3fff3a(0x64a)](function(_0x1f99ae){const _0x3173ec=_0x3fff3a,_0x41357e=_0x1f99ae&&_0x1f99ae['rows']?_0x1f99ae[_0x3173ec(0x28b8)][0x0]:null;_0xb5bbec(_0x41357e);})[_0x3fff3a(0x20cd)](function(_0x3ee93b){_0x50942c(_0x3ee93b);});});}function _0x51c715(){return _0x42ce14(function(_0x333841,_0x33f03e){const _0x167288=a0_0x4127;return _0x443c2e()[_0x167288(0x64a)](function(_0x2e026){const _0x29166b=_0x167288;return _0x1e5537['items']=_0x2e026[_0x29166b(0x28b8)]?_0x2e026[_0x29166b(0x28b8)]:[],_0x3ae4ba[_0x29166b(0x4de)](_0x29166b(0x333))?_0x2e026:_0x1e5537[_0x29166b(0xa21)]?_0x1e5537[_0x29166b(0xa21)][_0x29166b(0x11da)]?_0x2e026:_0x1bcf86():null;})[_0x167288(0x64a)](function(_0x4bd334){const _0x12c671=_0x167288,_0x3f526f=_0x4bd334&&_0x4bd334[_0x12c671(0x28b8)]?_0x4bd334[_0x12c671(0x28b8)]:[];return _0x1e5537[_0x12c671(0x13d1)]=_0x28c606()[_0x12c671(0x1de5)](_0x3f526f,function(_0x2bad04){const _0x20e5d1=_0x12c671;return _0x28c606()[_0x20e5d1(0x27bc)](_0x1e5537['items'],{'id':_0x3ae4ba[_0x20e5d1(0x4de)](_0x20e5d1(0x333))||_0x1e5537[_0x20e5d1(0xa21)]['autoAssociation']?_0x2bad04['id']:_0x2bad04['resourceId']});}),_0x1e5537[_0x12c671(0x23cb)][_0x12c671(0x1397)](function(_0x44f8c2){const _0x3358ae=_0x12c671,_0x29c750=_0x28c606()[_0x3358ae(0x27bc)](_0x1e5537[_0x3358ae(0x13d1)],{'id':_0x44f8c2['id']});_0x3ae4ba[_0x3358ae(0x4de)](_0x3358ae(0x333))?_0x44f8c2[_0x3358ae(0x6f9)]=!![]:_0x44f8c2[_0x3358ae(0x6f9)]=typeof _0x29c750!==_0x3358ae(0x19a1)?!![]:![];}),_0x288dae();})['then'](function(_0x140271){const _0x509dc9=_0x167288,_0x2e8a7e=_0x140271&&_0x140271[_0x509dc9(0x28b8)]?_0x140271['rows']:[];_0x1e5537[_0x509dc9(0x1f4f)]=_0x28c606()[_0x509dc9(0x1de5)](_0x2e8a7e,function(_0x3d603d){const _0x1b200f=_0x509dc9;return _0x28c606()[_0x1b200f(0x27bc)](_0x1e5537[_0x1b200f(0x23cb)],{'id':_0x3d603d['id']});}),_0x1e5537[_0x509dc9(0x24e1)]=angular['copy'](_0x1e5537[_0x509dc9(0x1f4f)]),_0x1e5537[_0x509dc9(0x1eeb)][_0x509dc9(0x1f4f)]=_0x1e5537[_0x509dc9(0x1f4f)],_0x1e5537[_0x509dc9(0x1eeb)][_0x509dc9(0x23cb)]=_0x28c606()[_0x509dc9(0x23e5)](_0x1e5537[_0x509dc9(0x13d1)],_0x1e5537[_0x509dc9(0x1eeb)][_0x509dc9(0x1f4f)],'id'),_0x333841();})['catch'](function(_0x46cd3b){_0x33f03e(_0x46cd3b);});});}function _0x1bcf86(){return _0x42ce14(function(_0x26fbd7,_0x4feb6f){const _0x2fe8d6=a0_0x4127;return _0x1d3646[_0x2fe8d6(0x1617)][_0x2fe8d6(0x896)]({'sectionId':_0x1e5537[_0x2fe8d6(0xa21)]['id'],'nolimit':!![]})[_0x2fe8d6(0x15e7)][_0x2fe8d6(0x64a)](function(_0x5f4b41){_0x26fbd7(_0x5f4b41);})[_0x2fe8d6(0x20cd)](function(_0x3c86a9){_0x4feb6f(_0x3c86a9);});});}function _0x288dae(){return _0x42ce14(function(_0x1faa01,_0x1e9f48){const _0x5641de=a0_0x4127;return _0x1d3646[_0x5641de(0x1eb3)][_0x5641de(0x151d)]({'id':_0x1e5537[_0x5641de(0x1eb3)]['id'],'fields':_0x5641de(0x1427),'nolimit':!![]})[_0x5641de(0x15e7)][_0x5641de(0x64a)](function(_0x5c45c4){_0x1faa01(_0x5c45c4);})[_0x5641de(0x20cd)](function(_0x18b116){_0x1e9f48(_0x18b116);});});}function _0x443c2e(){return _0x42ce14(function(_0x2d240d,_0xe88064){const _0x1a9672=a0_0x4127;return _0x1d3646[_0x1a9672(0x15ea)][_0x1a9672(0x896)]({'fields':'id,name','nolimit':!![]})[_0x1a9672(0x15e7)]['then'](function(_0x5c206e){_0x2d240d(_0x5c206e);})[_0x1a9672(0x20cd)](function(_0x38fa9d){_0xe88064(_0x38fa9d);});});}function _0x112d9d(_0xb7f8ca){return _0x42ce14(function(_0x310906,_0x54aa9b){const _0x545126=a0_0x4127;_0x28c606()['isEmpty'](_0xb7f8ca)?_0x310906():_0x1d3646['mailQueue'][_0x545126(0x1858)]({'id':_0x1e5537[_0x545126(0x1eb3)]['id'],'ids':_0x28c606()['map'](_0xb7f8ca,'id')})[_0x545126(0x15e7)][_0x545126(0x64a)](function(){_0x310906();})[_0x545126(0x20cd)](function(_0x5d8caf){_0x54aa9b(_0x5d8caf);});});}function _0x4e95da(_0x136ae5){return _0x42ce14(function(_0x24b2f5,_0x45219d){const _0x46b3c6=a0_0x4127;_0x28c606()[_0x46b3c6(0x940)](_0x136ae5)?_0x24b2f5():_0x1d3646[_0x46b3c6(0x1eb3)][_0x46b3c6(0x6d5)]({'id':_0x1e5537['mailQueue']['id'],'ids':_0x28c606()['map'](_0x136ae5,'id')})[_0x46b3c6(0x15e7)][_0x46b3c6(0x64a)](function(){_0x24b2f5();})[_0x46b3c6(0x20cd)](function(_0x1426f2){_0x45219d(_0x1426f2);});});}function _0x3c6227(){const _0x5687ff=_0xa12230,_0x48f670=_0x28c606()[_0x5687ff(0x23e5)](_0x1e5537[_0x5687ff(0x24e1)],_0x1e5537[_0x5687ff(0x1f4f)],'id'),_0x13ee96=_0x28c606()[_0x5687ff(0x23e5)](_0x1e5537['selectedItems'],_0x1e5537[_0x5687ff(0x24e1)],'id');return _0x4e95da(_0x48f670)[_0x5687ff(0x64a)](function(){return _0x112d9d(_0x13ee96);})[_0x5687ff(0x64a)](function(){const _0x272366=_0x5687ff;_0x1e5537['pendingChanges']=![],_0x1e5537[_0x272366(0x206b)]=angular[_0x272366(0x289e)](_0x1e5537[_0x272366(0x13d1)]),_0x1e5537[_0x272366(0x24e1)]=angular[_0x272366(0x289e)](_0x1e5537[_0x272366(0x1f4f)]),_0x29372e['success']({'title':_0x272366(0x24d6),'msg':_0x272366(0x1932)});})[_0x5687ff(0x20cd)](function(_0x49dbc4){const _0x11f410=_0x5687ff;_0x29372e[_0x11f410(0x1bd0)]({'title':_0x49dbc4[_0x11f410(0x10b3)]?'API:'+_0x49dbc4[_0x11f410(0x10b3)]+_0x11f410(0x21db)+_0x49dbc4[_0x11f410(0x2115)]:_0x11f410(0x1226),'msg':_0x49dbc4[_0x11f410(0x10b3)]?JSON['stringify'](_0x49dbc4[_0x11f410(0x1c52)]):_0x49dbc4[_0x11f410(0x2915)]()});});}function _0x277325(){const _0x468e58=_0xa12230;_0x3328fe[_0x468e58(0x268e)]();}}const _0x46e817=_0x189770;;const _0x53319f=_0x2e4a48['p']+_0x49a1e3(0x2708);;_0x5d9535['$inject']=['$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),'setting',_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1eb3),_0x49a1e3(0x16b2)];function _0x5d9535(_0x25b508,_0x4da8a8,_0x2ef9ff,_0xdaa751,_0x2af216,_0x273f3c,_0x4256be,_0x517776,_0x16bb40,_0x5f47bb,_0x426ff0,_0x33ff5e){const _0x172de9=_0x49a1e3,_0x145a44=this;_0x145a44[_0x172de9(0x1d3d)]=_0x5f47bb['getCurrentUser'](),_0x145a44[_0x172de9(0x1947)]=_0x273f3c,_0x145a44[_0x172de9(0x28d6)]=_0x4256be,_0x145a44['passwordPattern']=_0x145a44['setting'][_0x172de9(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x145a44[_0x172de9(0xb36)]=_0x4da8a8[_0x172de9(0x48e)]()+_0x172de9(0xe1f)+_0x4da8a8[_0x172de9(0x1e5d)](),_0x145a44[_0x172de9(0x1eb3)]=_0x426ff0||_0x25b508['params'][_0x172de9(0x1eb3)]||{},_0x145a44[_0x172de9(0x16b2)]=_0x33ff5e&&_0x33ff5e[_0x172de9(0xb90)]==0x1?_0x33ff5e[_0x172de9(0x28b8)][0x0]:null,_0x145a44[_0x172de9(0x402)]=_0x5f47bb[_0x172de9(0xa7e)](_0x145a44[_0x172de9(0x16b2)]?_0x145a44[_0x172de9(0x16b2)]['crudPermissions']:null),_0x145a44['hasModulePermissions']={},_0x145a44[_0x172de9(0x197c)]=_0x25b508[_0x172de9(0x1b48)][_0x172de9(0x1222)]||0x0,_0x145a44[_0x172de9(0x1a72)]=_0xa692b,_0x145a44[_0x172de9(0x104a)]=_0x29ad24,_0x145a44[_0x172de9(0x2540)]=_0x16bb40[_0x172de9(0x772)],_0x145a44[_0x172de9(0x191a)]=_0x4b67f6,_0x145a44[_0x172de9(0x15a3)]=_0x5281c7;function _0xa692b(_0x537fe7,_0x13b79d){const _0x205e72=_0x172de9;_0x2ef9ff[_0x205e72(0xa60)]({'controller':_0x205e72(0x26f2),'controllerAs':'vm','templateUrl':_0x53319f,'parent':angular[_0x205e72(0x1f81)](_0xdaa751['body']),'targetEvent':_0x13b79d,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x537fe7,'mailQueues':_0x145a44[_0x205e72(0xdba)]?_0x145a44[_0x205e72(0xdba)][_0x205e72(0x28b8)]:[],'crudPermissions':_0x145a44[_0x205e72(0x402)]}});}function _0x29ad24(_0x5b32db,_0x543611){const _0x216f68=_0x172de9;_0x2ef9ff[_0x216f68(0xa60)]({'controller':'MailQueueagentaddController','controllerAs':'vm','templateUrl':_0x16efc7,'parent':angular[_0x216f68(0x1f81)](_0xdaa751['body']),'targetEvent':_0x543611,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x5b32db,'mailQueues':_0x145a44[_0x216f68(0xdba)]?_0x145a44['mailQueues'][_0x216f68(0x28b8)]:[],'crudPermissions':_0x145a44[_0x216f68(0x402)],'realtime':![]}});}function _0x4b67f6(){const _0x10d0cf=_0x172de9;_0x25b508['go'](_0x10d0cf(0xfe1),{},{'reload':_0x10d0cf(0xfe1)});}function _0x5281c7(){const _0x1eeef9=_0x172de9;_0x517776[_0x1eeef9(0x1eb3)]['update']({'id':_0x145a44[_0x1eeef9(0x1eb3)]['id']},_0x145a44[_0x1eeef9(0x1eb3)])['$promise'][_0x1eeef9(0x64a)](function(){const _0xb5d4ba=_0x1eeef9;_0x16bb40['success']({'title':_0xb5d4ba(0x1933),'msg':_0x145a44[_0xb5d4ba(0x1eb3)][_0xb5d4ba(0x2494)]?_0x145a44[_0xb5d4ba(0x1eb3)][_0xb5d4ba(0x2494)]+_0xb5d4ba(0x2032):''});})[_0x1eeef9(0x20cd)](function(_0x241930){const _0x7ec205=_0x1eeef9;_0x16bb40['error']({'title':_0x241930['status']?_0x7ec205(0x575)+_0x241930[_0x7ec205(0x10b3)]+_0x7ec205(0x21db)+_0x241930['statusText']:'SYSTEM:GETmailQueue','msg':_0x241930['data']?JSON[_0x7ec205(0x2317)](_0x241930[_0x7ec205(0x1c52)]):_0x241930[_0x7ec205(0x2915)]()});});}}const _0x4e202a=_0x5d9535;;_0x1fdfd6['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog',_0x49a1e3(0x1373),'$timeout',_0x49a1e3(0x298c),_0x49a1e3(0xdba),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x1fdfd6(_0x3e3662,_0x10792b,_0x599247,_0x2e0540,_0x220c75,_0x450b8d,_0x8dc888,_0x2430c4,_0x33bf59,_0x2cccd9,_0x5e3baa,_0x20f9b2,_0xc24993,_0x1a3137,_0x424f01,_0x10be1e,_0x1319e8){const _0x521061=_0x49a1e3,_0x528e7e=this;_0x528e7e[_0x521061(0x1947)]=_0x10be1e,_0x528e7e[_0x521061(0x28d6)]=_0x1319e8,_0x528e7e[_0x521061(0x1d3d)]=_0x424f01['getCurrentUser'](),_0x528e7e[_0x521061(0xdba)]=_0x33bf59||{'count':0x0,'rows':[]},_0x528e7e['userProfile']=_0x2cccd9,_0x528e7e[_0x521061(0x16b2)]=_0x5e3baa&&_0x5e3baa['count']==0x1?_0x5e3baa[_0x521061(0x28b8)][0x0]:null,_0x528e7e['crudPermissions']=_0x424f01[_0x521061(0xa7e)](_0x528e7e[_0x521061(0x16b2)]?_0x528e7e[_0x521061(0x16b2)]['crudPermissions']:null),_0x528e7e['table']='mailQueues',_0x528e7e[_0x521061(0x300)]='',_0x528e7e[_0x521061(0x2748)]=null,_0x528e7e[_0x521061(0xa25)]=[],_0x528e7e['query']={'fields':_0x521061(0x1649),'sort':_0x521061(0x260c),'channel':_0x521061(0xc71),'limit':0xa,'page':0x1},_0x528e7e[_0x521061(0xc25)]=_0x28c606()[_0x521061(0x161e)]([{'option':_0x521061(0x618),'value':'\x27beepall\x27'},{'option':_0x521061(0x773),'value':_0x521061(0x1dfa)}],function(_0x17d337){const _0x26f2b5=_0x521061;return _0x28c606()[_0x26f2b5(0x1353)](_0x17d337[_0x26f2b5(0x1096)],new RegExp('\x27','g'),'');}),_0x528e7e[_0x521061(0xff6)]=_0x4bf80f,_0x528e7e['teamadddialog']=_0x34f9aa,_0x528e7e['agentadddialog']=_0x1d3c65,_0x528e7e[_0x521061(0x1262)]=_0x51f9b2,_0x528e7e[_0x521061(0x93f)]=_0xaee389,_0x528e7e[_0x521061(0x1339)]=_0xf2a4c9,_0x528e7e[_0x521061(0xa2a)]=_0x102fd7,_0x528e7e['createOrEditMailQueue']=_0x56bff8,_0x528e7e['deleteMailQueue']=_0x526185,_0x528e7e[_0x521061(0x1b37)]=_0x432853,_0x528e7e[_0x521061(0x207f)]=_0x466941,_0x528e7e[_0x521061(0xba6)]=_0x1eaff9,_0x528e7e[_0x521061(0x215c)]=_0x542282;function _0x4bf80f(_0x4ae563){const _0x97373c=_0x521061;_0x599247['go'](_0x97373c(0x721),{'id':_0x4ae563['id'],'mailQueue':_0x4ae563,'crudPermissions':_0x528e7e[_0x97373c(0x402)]});}function _0x34f9aa(_0x4427b2,_0x23d58a){const _0x3457fc=_0x521061;_0x220c75[_0x3457fc(0xa60)]({'controller':'MailQueueteamaddController','controllerAs':'vm','templateUrl':_0x53319f,'parent':angular['element'](_0x450b8d[_0x3457fc(0xb49)]),'targetEvent':_0x23d58a,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x4427b2,'mailQueues':_0x528e7e[_0x3457fc(0xdba)]?_0x528e7e[_0x3457fc(0xdba)][_0x3457fc(0x28b8)]:[],'crudPermissions':_0x528e7e[_0x3457fc(0x402)]}});}function _0x1d3c65(_0x445cf9,_0x25d8b7){const _0x1b4bf0=_0x521061;_0x220c75[_0x1b4bf0(0xa60)]({'controller':_0x1b4bf0(0x886),'controllerAs':'vm','templateUrl':_0x16efc7,'parent':angular[_0x1b4bf0(0x1f81)](_0x450b8d['body']),'targetEvent':_0x25d8b7,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x445cf9,'mailQueues':_0x528e7e[_0x1b4bf0(0xdba)]?_0x528e7e[_0x1b4bf0(0xdba)][_0x1b4bf0(0x28b8)]:[],'crudPermissions':_0x528e7e['crudPermissions'],'realtime':![]}});}function _0x51f9b2(_0x559f9a,_0x1b7685){const _0x5a82f0=_0x521061,_0x69230a=_0x220c75[_0x5a82f0(0x856)]()['title'](_0x5a82f0(0x1231)+_0x28c606()[_0x5a82f0(0xc01)](_0x5a82f0(0x1eb3))+'?')[_0x5a82f0(0x33a)](''+(_0x559f9a[_0x5a82f0(0x2494)]||'mailQueue')+_0x5a82f0(0x26d0)+_0x5a82f0(0x4b8))[_0x5a82f0(0x213e)](_0x5a82f0(0x1e6e))[_0x5a82f0(0x2283)](_0x1b7685)['ok']('OK')[_0x5a82f0(0x101a)](_0x5a82f0(0x18fd));_0x220c75[_0x5a82f0(0xa60)](_0x69230a)['then'](function(){_0x526185(_0x559f9a);},function(){const _0x4c927f=_0x5a82f0;console[_0x4c927f(0x9b4)]('CANCEL');});}function _0xaee389(){const _0x222c0d=_0x521061;if(_0x424f01[_0x222c0d(0x4de)](_0x222c0d(0x333)))_0x599247['go'](_0x222c0d(0x991),{});else return _0x20f9b2[_0x222c0d(0x16b2)]['get']({'userProfileId':_0x424f01[_0x222c0d(0x808)]()['userProfileId'],'sectionId':0x262})['$promise'][_0x222c0d(0x64a)](function(_0x2a7cc9){const _0x13e56f=_0x222c0d,_0x4f1c17=_0x2a7cc9&&_0x2a7cc9[_0x13e56f(0x28b8)]?_0x2a7cc9['rows'][0x0]:null;_0x4f1c17&&_0x4f1c17[_0x13e56f(0xe49)]?_0x599247['go'](_0x13e56f(0x991),{}):_0x1a3137[_0x13e56f(0x772)]({'title':_0x2430c4[_0x13e56f(0x2292)](_0x13e56f(0x111a)),'msg':_0x2430c4[_0x13e56f(0x2292)](_0x13e56f(0x229))});})[_0x222c0d(0x20cd)](function(_0x8c7ea2){const _0x118da1=_0x222c0d;_0x1a3137[_0x118da1(0x1bd0)]({'title':_0x8c7ea2[_0x118da1(0x10b3)]?'API:'+_0x8c7ea2['status']+'\x20-\x20'+_0x8c7ea2['statusText']:_0x118da1(0x942),'msg':_0x8c7ea2[_0x118da1(0x10b3)]?JSON['stringify'](_0x8c7ea2[_0x118da1(0x1c52)]):_0x8c7ea2[_0x118da1(0x2915)]()});});}let _0x58061f=!![],_0x351534=0x1;_0x3e3662['$watch']('vm.query.filter',function(_0x2ea8b4,_0x1045f9){const _0x14ec33=_0x521061;_0x58061f?_0x8dc888(function(){_0x58061f=![];}):(!_0x1045f9&&(_0x351534=_0x528e7e[_0x14ec33(0x289a)][_0x14ec33(0xc72)]),_0x2ea8b4!==_0x1045f9&&(_0x528e7e[_0x14ec33(0x289a)][_0x14ec33(0xc72)]=0x1),!_0x2ea8b4&&(_0x528e7e['query'][_0x14ec33(0xc72)]=_0x351534),_0x528e7e[_0x14ec33(0xa2a)]());});function _0xf2a4c9(_0x532c8e){const _0x2803fe=_0x521061;_0x528e7e[_0x2803fe(0xdba)]=_0x532c8e||{'count':0x0,'rows':[]};}function _0x102fd7(){const _0x1470b6=_0x521061;_0x528e7e[_0x1470b6(0x289a)][_0x1470b6(0x24f9)]=(_0x528e7e[_0x1470b6(0x289a)][_0x1470b6(0xc72)]-0x1)*_0x528e7e['query'][_0x1470b6(0x25bb)],_0x424f01[_0x1470b6(0x4de)](_0x1470b6(0x333))?_0x528e7e[_0x1470b6(0x1713)]=_0x20f9b2[_0x1470b6(0x1eb3)][_0x1470b6(0x896)](_0x528e7e[_0x1470b6(0x289a)],_0xf2a4c9)[_0x1470b6(0x15e7)]:(_0x528e7e[_0x1470b6(0x289a)]['id']=_0x528e7e[_0x1470b6(0x16a8)]['id'],_0x528e7e[_0x1470b6(0x289a)][_0x1470b6(0xa21)]=_0x1470b6(0x138c),_0x528e7e[_0x1470b6(0x1713)]=_0x20f9b2[_0x1470b6(0x16a8)][_0x1470b6(0x2565)](_0x528e7e['query'],_0xf2a4c9)[_0x1470b6(0x15e7)]);}function _0x56bff8(_0x183a87,_0x3e0a5e){const _0x10d26a=_0x521061;_0x220c75[_0x10d26a(0xa60)]({'controller':_0x10d26a(0x71a),'controllerAs':'vm','templateUrl':_0x37019f,'parent':angular[_0x10d26a(0x1f81)](_0x450b8d[_0x10d26a(0xb49)]),'targetEvent':_0x183a87,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x3e0a5e,'mailQueues':_0x528e7e['mailQueues']['rows'],'license':_0x528e7e[_0x10d26a(0x1947)],'setting':_0x528e7e['setting'],'crudPermissions':_0x528e7e['crudPermissions']}});}function _0x526185(_0x1e0d9d){const _0x58db6e=_0x521061;_0x20f9b2[_0x58db6e(0x1eb3)][_0x58db6e(0xabd)]({'id':_0x1e0d9d['id']})[_0x58db6e(0x15e7)][_0x58db6e(0x64a)](function(){const _0x34b118=_0x58db6e;_0x28c606()[_0x34b118(0x21c7)](_0x528e7e['mailQueues'][_0x34b118(0x28b8)],{'id':_0x1e0d9d['id']}),_0x528e7e[_0x34b118(0xdba)][_0x34b118(0xb90)]-=0x1,!_0x528e7e[_0x34b118(0xdba)][_0x34b118(0x28b8)][_0x34b118(0x1b9e)]&&_0x528e7e[_0x34b118(0xa2a)](),_0x1a3137[_0x34b118(0x1339)]({'title':_0x28c606()[_0x34b118(0xc01)]('MailQueue')+'\x20deleted!','msg':_0x1e0d9d['name']?_0x1e0d9d['name']+'\x20has\x20been\x20deleted!':''});})[_0x58db6e(0x20cd)](function(_0x29406e){const _0x4cd8a5=_0x58db6e;if(_0x29406e[_0x4cd8a5(0x1c52)]&&_0x29406e[_0x4cd8a5(0x1c52)][_0x4cd8a5(0xbae)]&&_0x29406e[_0x4cd8a5(0x1c52)][_0x4cd8a5(0xbae)]['length']){_0x528e7e['errors']=_0x29406e['data'][_0x4cd8a5(0xbae)]||[{'message':_0x29406e['toString'](),'type':_0x4cd8a5(0x11bf)}];for(let _0x130238=0x0;_0x130238<_0x29406e['data'][_0x4cd8a5(0xbae)]['length'];_0x130238++){_0x1a3137[_0x4cd8a5(0x1bd0)]({'title':_0x29406e[_0x4cd8a5(0x1c52)]['errors'][_0x130238][_0x4cd8a5(0x2185)],'msg':_0x29406e[_0x4cd8a5(0x1c52)][_0x4cd8a5(0xbae)][_0x130238][_0x4cd8a5(0x18ca)]});}}else _0x1a3137['error']({'title':_0x29406e[_0x4cd8a5(0x10b3)]?_0x4cd8a5(0x575)+_0x29406e[_0x4cd8a5(0x10b3)]+_0x4cd8a5(0x21db)+_0x29406e[_0x4cd8a5(0x2115)]:'SYSTEM:DELETEmailQueue','msg':_0x29406e[_0x4cd8a5(0x1c52)]?JSON[_0x4cd8a5(0x2317)](_0x29406e[_0x4cd8a5(0x1c52)][_0x4cd8a5(0x18ca)]):_0x29406e['message']||_0x29406e[_0x4cd8a5(0x2915)]()});});}function _0x432853(){const _0x3e03cf=_0x521061,_0x13eb93=angular[_0x3e03cf(0x289e)](_0x528e7e[_0x3e03cf(0xa25)]);return _0x528e7e[_0x3e03cf(0xa25)]=[],_0x13eb93;}function _0x466941(_0x5c4925){const _0x4f72b9=_0x521061,_0x55eac7=_0x220c75['confirm']()[_0x4f72b9(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailQueues?')[_0x4f72b9(0x33a)](_0x4f72b9(0x50b)+_0x528e7e[_0x4f72b9(0xa25)][_0x4f72b9(0x1b9e)]+_0x4f72b9(0x163e)+'\x20will\x20be\x20deleted.')[_0x4f72b9(0x213e)](_0x4f72b9(0x118c))[_0x4f72b9(0x2283)](_0x5c4925)['ok']('OK')[_0x4f72b9(0x101a)](_0x4f72b9(0x18fd));_0x220c75[_0x4f72b9(0xa60)](_0x55eac7)[_0x4f72b9(0x64a)](function(){const _0x9aa09d=_0x4f72b9;_0x528e7e[_0x9aa09d(0xa25)][_0x9aa09d(0x1397)](function(_0x2b4fe3){_0x526185(_0x2b4fe3);}),_0x528e7e[_0x9aa09d(0xa25)]=[];});}function _0x1eaff9(){_0x528e7e['selectedMailQueues']=[];}function _0x542282(){const _0x375b05=_0x521061;_0x528e7e[_0x375b05(0xa25)]=_0x528e7e['mailQueues']['rows'];}}const _0x127620=_0x1fdfd6;;_0x2e22c1['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q','$translate',_0x49a1e3(0x680),_0x49a1e3(0x28c9),_0x49a1e3(0x1b8e),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x2e22c1(_0x14f7d8,_0x4cea3e,_0x5b6656,_0x870fc,_0x2182c9,_0x3de4bf,_0xcef542,_0x2272f0,_0x450814,_0xfbddc,_0x1a6a2b,_0x43bdad,_0x51128c,_0x3c2282){const _0x5d25ac=_0x49a1e3,_0x49455e=this;_0x49455e[_0x5d25ac(0x1d3d)]=_0x1a6a2b['getCurrentUser'](),_0x49455e[_0x5d25ac(0xbae)]=[],_0x49455e[_0x5d25ac(0x28d6)]=_0x51128c,_0x49455e[_0x5d25ac(0x1947)]=_0x43bdad,_0x49455e[_0x5d25ac(0x402)]=_0x3c2282,_0x49455e['hasModulePermissions']={},_0x49455e['passwordPattern']=_0x49455e[_0x5d25ac(0x28d6)]&&_0x49455e[_0x5d25ac(0x28d6)][_0x5d25ac(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x49455e[_0x5d25ac(0x2021)]=_0x5d25ac(0x6dc),_0x49455e[_0x5d25ac(0x1b8e)]=angular[_0x5d25ac(0x289e)](_0x450814),_0x49455e[_0x5d25ac(0x28c9)]=_0x2272f0,_0x49455e[_0x5d25ac(0x12ef)]=![];!_0x49455e[_0x5d25ac(0x1b8e)]&&(_0x49455e[_0x5d25ac(0x1b8e)]={},_0x49455e[_0x5d25ac(0x2021)]=_0x5d25ac(0x17d1),_0x49455e[_0x5d25ac(0x12ef)]=!![]);_0x49455e[_0x5d25ac(0x23ea)]=_0x46a8f0,_0x49455e['saveMailSubstatus']=_0xee3552,_0x49455e[_0x5d25ac(0x1db2)]=_0x39769a,_0x49455e[_0x5d25ac(0x1605)]=_0x4928e3,_0x49455e[_0x5d25ac(0x16cb)]=_0x4121f3;function _0x46a8f0(){const _0x38e492=_0x5d25ac;_0x49455e[_0x38e492(0xbae)]=[],_0xfbddc[_0x38e492(0x1b8e)]['save'](_0x49455e[_0x38e492(0x1b8e)])['$promise'][_0x38e492(0x64a)](function(_0x13f2bc){const _0x14a47c=_0x38e492;_0x49455e[_0x14a47c(0x28c9)][_0x14a47c(0x1891)](_0x13f2bc[_0x14a47c(0x14f8)]()),_0xcef542['success']({'title':_0x14a47c(0xe58),'msg':_0x49455e[_0x14a47c(0x1b8e)][_0x14a47c(0x2494)]?_0x49455e['mailSubstatus'][_0x14a47c(0x2494)]+'\x20has\x20been\x20created!':''}),_0x4121f3(_0x13f2bc);})[_0x38e492(0x20cd)](function(_0x7325f1){const _0x372bfb=_0x38e492;if(_0x7325f1[_0x372bfb(0x1c52)]&&_0x7325f1['data'][_0x372bfb(0xbae)]&&_0x7325f1[_0x372bfb(0x1c52)][_0x372bfb(0xbae)][_0x372bfb(0x1b9e)]){_0x49455e[_0x372bfb(0xbae)]=_0x7325f1['data'][_0x372bfb(0xbae)]||[{'message':_0x7325f1[_0x372bfb(0x2915)](),'type':'api.mailSubstatus.save'}];for(let _0x3eee43=0x0;_0x3eee43<_0x7325f1[_0x372bfb(0x1c52)]['errors'][_0x372bfb(0x1b9e)];_0x3eee43+=0x1){_0xcef542[_0x372bfb(0x1bd0)]({'title':_0x7325f1['data']['errors'][_0x3eee43][_0x372bfb(0x2185)],'msg':_0x7325f1[_0x372bfb(0x1c52)][_0x372bfb(0xbae)][_0x3eee43]['message']});}}else _0xcef542[_0x372bfb(0x1bd0)]({'title':_0x7325f1[_0x372bfb(0x10b3)]?_0x372bfb(0x575)+_0x7325f1[_0x372bfb(0x10b3)]+'\x20-\x20'+_0x7325f1[_0x372bfb(0x2115)]:'api.mailSubstatus.save','msg':_0x7325f1['data']?JSON[_0x372bfb(0x2317)](_0x7325f1[_0x372bfb(0x1c52)]['message']):_0x7325f1[_0x372bfb(0x2915)]()});});}function _0xee3552(){const _0x40eb26=_0x5d25ac;_0x49455e[_0x40eb26(0xbae)]=[],_0xfbddc[_0x40eb26(0x1b8e)][_0x40eb26(0x2603)]({'id':_0x49455e[_0x40eb26(0x1b8e)]['id']},_0x49455e['mailSubstatus'])['$promise'][_0x40eb26(0x64a)](function(_0xd2e6ec){const _0x339b9f=_0x40eb26,_0x469295=_0x28c606()[_0x339b9f(0x27bc)](_0x49455e['mailSubtatuses'],{'id':_0xd2e6ec['id']});_0x469295&&_0x28c606()['merge'](_0x469295,_0x28c606()[_0x339b9f(0x27bb)](_0xd2e6ec[_0x339b9f(0x14f8)](),_0x28c606()[_0x339b9f(0x1ec6)](_0x469295))),_0xcef542[_0x339b9f(0x1339)]({'title':_0x339b9f(0x1f6d),'msg':_0x49455e[_0x339b9f(0x1b8e)][_0x339b9f(0x2494)]?_0x49455e[_0x339b9f(0x1b8e)][_0x339b9f(0x2494)]+_0x339b9f(0x271):''}),_0x4121f3(_0xd2e6ec);})['catch'](function(_0x4c5705){const _0x156a4b=_0x40eb26;if(_0x4c5705['data']&&_0x4c5705[_0x156a4b(0x1c52)][_0x156a4b(0xbae)]&&_0x4c5705[_0x156a4b(0x1c52)][_0x156a4b(0xbae)][_0x156a4b(0x1b9e)]){_0x49455e['errors']=_0x4c5705[_0x156a4b(0x1c52)][_0x156a4b(0xbae)]||[{'message':_0x4c5705['toString'](),'type':_0x156a4b(0x35b)}];for(let _0x9ad2f4=0x0;_0x9ad2f4<_0x4c5705[_0x156a4b(0x1c52)]['errors'][_0x156a4b(0x1b9e)];_0x9ad2f4++){_0xcef542[_0x156a4b(0x1bd0)]({'title':_0x4c5705[_0x156a4b(0x1c52)]['errors'][_0x9ad2f4][_0x156a4b(0x2185)],'msg':_0x4c5705['data'][_0x156a4b(0xbae)][_0x9ad2f4][_0x156a4b(0x18ca)]});}}else _0xcef542[_0x156a4b(0x1bd0)]({'title':_0x4c5705[_0x156a4b(0x10b3)]?'API:'+_0x4c5705[_0x156a4b(0x10b3)]+_0x156a4b(0x21db)+_0x4c5705[_0x156a4b(0x2115)]:'api.mailSubstatus.update','msg':_0x4c5705['data']?JSON[_0x156a4b(0x2317)](_0x4c5705[_0x156a4b(0x1c52)][_0x156a4b(0x18ca)]):_0x4c5705[_0x156a4b(0x2915)]()});});}function _0x39769a(_0x678a5f){const _0x28472d=_0x5d25ac;_0x49455e['errors']=[];const _0x1c9909=_0x870fc['confirm']()[_0x28472d(0x2021)](_0x28472d(0x103a))[_0x28472d(0x12b8)]('The\x20mailSubstatus\x20will\x20be\x20deleted.')[_0x28472d(0x213e)](_0x28472d(0x258c))['ok'](_0x28472d(0x2664))['cancel'](_0x28472d(0x1dc6))['targetEvent'](_0x678a5f);_0x870fc['show'](_0x1c9909)[_0x28472d(0x64a)](function(){const _0x1bac21=_0x28472d;_0xfbddc['mailSubstatus']['delete']({'id':_0x49455e[_0x1bac21(0x1b8e)]['id']})['$promise'][_0x1bac21(0x64a)](function(){const _0x1a0974=_0x1bac21;_0x28c606()['remove'](_0x49455e[_0x1a0974(0x28c9)],{'id':_0x49455e[_0x1a0974(0x1b8e)]['id']}),_0xcef542[_0x1a0974(0x1339)]({'title':_0x1a0974(0xb5b),'msg':(_0x49455e['mailSubstatus'][_0x1a0974(0x2494)]||_0x1a0974(0x1b8e))+'\x20has\x20been\x20deleted!'}),_0x4121f3(_0x49455e[_0x1a0974(0x1b8e)]);})[_0x1bac21(0x20cd)](function(_0x3f9d54){const _0x2e4ae5=_0x1bac21;if(_0x3f9d54[_0x2e4ae5(0x1c52)]&&_0x3f9d54['data'][_0x2e4ae5(0xbae)]&&_0x3f9d54['data']['errors'][_0x2e4ae5(0x1b9e)]){_0x49455e[_0x2e4ae5(0xbae)]=_0x3f9d54[_0x2e4ae5(0x1c52)][_0x2e4ae5(0xbae)]||[{'message':_0x3f9d54['toString'](),'type':'api.mailSubstatus.delete'}];for(let _0x413cec=0x0;_0x413cec<_0x3f9d54[_0x2e4ae5(0x1c52)][_0x2e4ae5(0xbae)][_0x2e4ae5(0x1b9e)];_0x413cec++){_0xcef542[_0x2e4ae5(0x1bd0)]({'title':_0x3f9d54[_0x2e4ae5(0x1c52)][_0x2e4ae5(0xbae)][_0x413cec][_0x2e4ae5(0x2185)],'msg':_0x3f9d54[_0x2e4ae5(0x1c52)][_0x2e4ae5(0xbae)][_0x413cec]['message']});}}else _0xcef542['error']({'title':_0x3f9d54[_0x2e4ae5(0x10b3)]?_0x2e4ae5(0x575)+_0x3f9d54[_0x2e4ae5(0x10b3)]+'\x20-\x20'+_0x3f9d54[_0x2e4ae5(0x2115)]:_0x2e4ae5(0xf08),'msg':_0x3f9d54['data']?JSON[_0x2e4ae5(0x2317)](_0x3f9d54[_0x2e4ae5(0x1c52)][_0x2e4ae5(0x18ca)]):_0x3f9d54[_0x2e4ae5(0x18ca)]||_0x3f9d54['toString']()});});},function(){});}function _0x4928e3(_0x2661c5){return _0x2661c5===null?undefined:new Date(_0x2661c5);}function _0x4121f3(_0x2b6bc2){const _0x114b86=_0x5d25ac;_0x870fc[_0x114b86(0x268e)](_0x2b6bc2);}}const _0xc17a12=_0x2e22c1;;const _0x5628ab=_0x2e4a48['p']+_0x49a1e3(0x12e3);;_0x180a5b[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),'$state',_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),'$timeout',_0x49a1e3(0x298c),_0x49a1e3(0x28c9),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x180a5b(_0x8329b,_0x1cb603,_0x400f5a,_0x2c1fe3,_0x47523d,_0x3aed67,_0x1134e0,_0x2789cf,_0x420d62,_0x404f3b,_0x456469,_0x2773f7,_0x403ca3,_0x3cb06e,_0x93fcb8,_0x51d54a,_0x163137){const _0x1bba88=_0x49a1e3,_0x14408e=this;_0x14408e[_0x1bba88(0x1947)]=_0x51d54a,_0x14408e[_0x1bba88(0x28d6)]=_0x163137,_0x14408e[_0x1bba88(0x1d3d)]=_0x93fcb8[_0x1bba88(0x808)](),_0x14408e[_0x1bba88(0x28c9)]=_0x420d62||{'count':0x0,'rows':[]},_0x14408e['userProfile']=_0x404f3b,_0x14408e[_0x1bba88(0x16b2)]=_0x456469&&_0x456469[_0x1bba88(0xb90)]==0x1?_0x456469[_0x1bba88(0x28b8)][0x0]:null,_0x14408e[_0x1bba88(0x402)]=_0x93fcb8[_0x1bba88(0xa7e)](_0x14408e[_0x1bba88(0x16b2)]?_0x14408e[_0x1bba88(0x16b2)][_0x1bba88(0x402)]:null),_0x14408e[_0x1bba88(0x185d)]=_0x1bba88(0x28c9),_0x14408e[_0x1bba88(0x300)]='',_0x14408e[_0x1bba88(0x2748)]=null,_0x14408e[_0x1bba88(0xb9f)]=[],_0x14408e[_0x1bba88(0x289a)]={'fields':_0x1bba88(0x15b8),'sort':_0x1bba88(0x260c),'limit':0xa,'page':0x1},_0x14408e[_0x1bba88(0x1c42)]=_0x34633e,_0x14408e[_0x1bba88(0x1262)]=_0xba950c,_0x14408e[_0x1bba88(0x1339)]=_0x5dc94a,_0x14408e[_0x1bba88(0x1814)]=_0x454244,_0x14408e[_0x1bba88(0xb18)]=_0x106319,_0x14408e[_0x1bba88(0x1db2)]=_0x2a0687,_0x14408e['exportSelectedMailSubstatuses']=_0x40378b,_0x14408e[_0x1bba88(0x268b)]=_0x523243,_0x14408e[_0x1bba88(0x21f1)]=_0x49a1fc,_0x14408e['selectAllMailSubstatuses']=_0x1e62f6;function _0x34633e(_0x58d721,_0x28c0b2){const _0xcfdd5f=_0x1bba88;_0x47523d[_0xcfdd5f(0xa60)]({'controller':'CreateOrEditMailSubstatusDialogController','controllerAs':'vm','templateUrl':_0x5628ab,'parent':angular[_0xcfdd5f(0x1f81)](_0x3aed67[_0xcfdd5f(0xb49)]),'targetEvent':_0x28c0b2,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x58d721,'mailSubtatuses':_0x14408e['mailSubtatuses'][_0xcfdd5f(0x28b8)],'license':_0x14408e[_0xcfdd5f(0x1947)],'setting':null,'crudPermissions':_0x14408e[_0xcfdd5f(0x402)]}});}function _0xba950c(_0x9cb4ce,_0x2d84b9){const _0x2e783a=_0x1bba88,_0x661200=_0x47523d['confirm']()[_0x2e783a(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()[_0x2e783a(0xc01)]('mailSubstatus')+'?')[_0x2e783a(0x33a)](_0x2e783a(0x50b)+(_0x9cb4ce[_0x2e783a(0x2494)]||_0x2e783a(0x1b8e))+_0x2e783a(0x26d0)+_0x2e783a(0x4b8))[_0x2e783a(0x213e)](_0x2e783a(0x5ff))['targetEvent'](_0x2d84b9)['ok']('OK')[_0x2e783a(0x101a)]('CANCEL');_0x47523d[_0x2e783a(0xa60)](_0x661200)['then'](function(){_0x2a0687(_0x9cb4ce);},function(){const _0x878093=_0x2e783a;console['log'](_0x878093(0x18fd));});}let _0x55267a=!![],_0x2d8fe3=0x1;_0x8329b['$watch'](_0x1bba88(0x1cb9),function(_0x1ab8ee,_0x3d1491){const _0x1b80c2=_0x1bba88;_0x55267a?_0x1134e0(function(){_0x55267a=![];}):(!_0x3d1491&&(_0x2d8fe3=_0x14408e['query'][_0x1b80c2(0xc72)]),_0x1ab8ee!==_0x3d1491&&(_0x14408e['query'][_0x1b80c2(0xc72)]=0x1),!_0x1ab8ee&&(_0x14408e['query'][_0x1b80c2(0xc72)]=_0x2d8fe3),_0x14408e['getMailSubstatuses']());});function _0x5dc94a(_0x2d6511){const _0x273f42=_0x1bba88;_0x14408e[_0x273f42(0x28c9)]=_0x2d6511||{'count':0x0,'rows':[]};}function _0x454244(){const _0x5d9c37=_0x1bba88;_0x14408e[_0x5d9c37(0x289a)]['offset']=(_0x14408e[_0x5d9c37(0x289a)]['page']-0x1)*_0x14408e[_0x5d9c37(0x289a)][_0x5d9c37(0x25bb)],_0x93fcb8[_0x5d9c37(0x4de)](_0x5d9c37(0x333))?_0x14408e[_0x5d9c37(0x1713)]=_0x2773f7['mailSubstatus'][_0x5d9c37(0x896)](_0x14408e[_0x5d9c37(0x289a)],_0x5dc94a)[_0x5d9c37(0x15e7)]:(_0x14408e[_0x5d9c37(0x289a)]['id']=_0x14408e['userProfile']['id'],_0x14408e[_0x5d9c37(0x289a)][_0x5d9c37(0xa21)]=_0x5d9c37(0x20f8),_0x14408e[_0x5d9c37(0x1713)]=_0x2773f7[_0x5d9c37(0x16a8)]['getResources'](_0x14408e[_0x5d9c37(0x289a)],_0x5dc94a)[_0x5d9c37(0x15e7)]);}function _0x106319(_0x1b825b,_0x3cc86e){const _0x5e721c=_0x1bba88;_0x47523d[_0x5e721c(0xa60)]({'controller':_0x5e721c(0x971),'controllerAs':'vm','templateUrl':_0x5628ab,'parent':angular[_0x5e721c(0x1f81)](_0x3aed67[_0x5e721c(0xb49)]),'targetEvent':_0x1b825b,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x3cc86e,'mailSubtatuses':_0x14408e[_0x5e721c(0x28c9)][_0x5e721c(0x28b8)],'license':_0x14408e[_0x5e721c(0x1947)],'setting':_0x14408e['setting'],'crudPermissions':_0x14408e[_0x5e721c(0x402)]}});}function _0x2a0687(_0x5e7e0b){const _0x183513=_0x1bba88;_0x2773f7[_0x183513(0x1b8e)][_0x183513(0xabd)]({'id':_0x5e7e0b['id']})[_0x183513(0x15e7)][_0x183513(0x64a)](function(){const _0x4afe4c=_0x183513;_0x28c606()[_0x4afe4c(0x21c7)](_0x14408e[_0x4afe4c(0x28c9)][_0x4afe4c(0x28b8)],{'id':_0x5e7e0b['id']}),_0x14408e[_0x4afe4c(0x28c9)]['count']-=0x1,!_0x14408e[_0x4afe4c(0x28c9)][_0x4afe4c(0x28b8)][_0x4afe4c(0x1b9e)]&&_0x14408e[_0x4afe4c(0x1814)](),_0x3cb06e[_0x4afe4c(0x1339)]({'title':_0x28c606()[_0x4afe4c(0xc01)](_0x4afe4c(0x1d48))+'\x20deleted!','msg':_0x5e7e0b['name']?_0x5e7e0b[_0x4afe4c(0x2494)]+_0x4afe4c(0x1fa8):''});})[_0x183513(0x20cd)](function(_0x37c02e){const _0x4d7992=_0x183513;if(_0x37c02e['data']&&_0x37c02e['data']['errors']&&_0x37c02e[_0x4d7992(0x1c52)][_0x4d7992(0xbae)][_0x4d7992(0x1b9e)]){_0x14408e[_0x4d7992(0xbae)]=_0x37c02e[_0x4d7992(0x1c52)]['errors']||[{'message':_0x37c02e[_0x4d7992(0x2915)](),'type':_0x4d7992(0x2033)}];for(let _0x1bf474=0x0;_0x1bf474<_0x37c02e[_0x4d7992(0x1c52)][_0x4d7992(0xbae)][_0x4d7992(0x1b9e)];_0x1bf474++){_0x3cb06e[_0x4d7992(0x1bd0)]({'title':_0x37c02e[_0x4d7992(0x1c52)][_0x4d7992(0xbae)][_0x1bf474][_0x4d7992(0x2185)],'msg':_0x37c02e[_0x4d7992(0x1c52)][_0x4d7992(0xbae)][_0x1bf474][_0x4d7992(0x18ca)]});}}else _0x3cb06e[_0x4d7992(0x1bd0)]({'title':_0x37c02e[_0x4d7992(0x10b3)]?'API:'+_0x37c02e[_0x4d7992(0x10b3)]+_0x4d7992(0x21db)+_0x37c02e[_0x4d7992(0x2115)]:_0x4d7992(0x2033),'msg':_0x37c02e[_0x4d7992(0x1c52)]?JSON[_0x4d7992(0x2317)](_0x37c02e[_0x4d7992(0x1c52)][_0x4d7992(0x18ca)]):_0x37c02e[_0x4d7992(0x18ca)]||_0x37c02e['toString']()});});}function _0x40378b(){const _0x25b605=_0x1bba88,_0x191af2=angular[_0x25b605(0x289e)](_0x14408e[_0x25b605(0xb9f)]);return _0x14408e[_0x25b605(0xb9f)]=[],_0x191af2;}function _0x523243(_0x5f30b2){const _0x5a8a0e=_0x1bba88,_0x423da6=_0x47523d[_0x5a8a0e(0x856)]()[_0x5a8a0e(0x2021)](_0x5a8a0e(0x1a5d))[_0x5a8a0e(0x33a)](_0x5a8a0e(0x50b)+_0x14408e['selectedMailSubstatuses'][_0x5a8a0e(0x1b9e)]+_0x5a8a0e(0x163e)+_0x5a8a0e(0x4b8))[_0x5a8a0e(0x213e)](_0x5a8a0e(0x1990))[_0x5a8a0e(0x2283)](_0x5f30b2)['ok']('OK')[_0x5a8a0e(0x101a)](_0x5a8a0e(0x18fd));_0x47523d[_0x5a8a0e(0xa60)](_0x423da6)['then'](function(){const _0x218ebc=_0x5a8a0e;_0x14408e[_0x218ebc(0xb9f)][_0x218ebc(0x1397)](function(_0x142b40){_0x2a0687(_0x142b40);}),_0x14408e['selectedMailSubstatuses']=[];});}function _0x49a1fc(){_0x14408e['selectedMailSubstatuses']=[];}function _0x1e62f6(){const _0x194ec0=_0x1bba88;_0x14408e[_0x194ec0(0xb9f)]=_0x14408e[_0x194ec0(0x28c9)][_0x194ec0(0x28b8)];}}const _0x5cf5a7=_0x180a5b;;_0xcf4eb['$inject']=['$stateProvider','$translatePartialLoaderProvider'];function _0xcf4eb(_0x418412,_0x23cfeb){const _0x41591d=_0x49a1e3;_0x418412[_0x41591d(0x14f2)](_0x41591d(0x1202),{'abstract':!![],'url':_0x41591d(0x99d)})[_0x41591d(0x14f2)]('app.mail.mailQueues',{'url':_0x41591d(0x1234),'views':{'content@app':{'templateUrl':_0x32a98c,'controller':_0x41591d(0xfa9)}},'resolve':{'mailQueues':['apiResolver',_0x41591d(0xdcf),function(_0x1d2785,_0x5524f6){const _0x12d134=_0x41591d;return _0x5524f6[_0x12d134(0x4de)](_0x12d134(0x333))?_0x1d2785[_0x12d134(0x1268)](_0x12d134(0x1a12),{'fields':_0x12d134(0x1649),'sort':_0x12d134(0x260c),'channel':'mail','limit':0xa,'offset':0x0}):_0x1d2785['resolve']('userProfile@getResources',{'id':_0x5524f6[_0x12d134(0x808)]()[_0x12d134(0x21ac)],'section':_0x12d134(0x138c),'fields':_0x12d134(0x1649),'sort':'-updatedAt','channel':'mail','limit':0xa,'offset':0x0});}],'userProfile':[_0x41591d(0x107c),'Auth',function(_0x30dfed,_0xd746e5){const _0x11b1dd=_0x41591d;return _0xd746e5[_0x11b1dd(0x4de)](_0x11b1dd(0x333))?null:_0x30dfed[_0x11b1dd(0x1268)](_0x11b1dd(0x6e3),{'fields':'id,name,crudPermissions','id':_0xd746e5['getCurrentUser']()[_0x11b1dd(0x21ac)]});}],'userProfileSection':[_0x41591d(0x107c),_0x41591d(0xdcf),function(_0xc50b00,_0x5204a6){const _0x4cff30=_0x41591d;return _0x5204a6[_0x4cff30(0x4de)](_0x4cff30(0x333))?null:_0xc50b00['resolve'](_0x4cff30(0x2681),{'fields':_0x4cff30(0x527),'userProfileId':_0x5204a6[_0x4cff30(0x808)]()[_0x4cff30(0x21ac)],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':_0x41591d(0xc71)})['state'](_0x41591d(0x721),{'url':_0x41591d(0x45b),'params':{'mailQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3e6a7b,'controller':_0x41591d(0x279e)}},'resolve':{'mailQueue':[_0x41591d(0x107c),_0x41591d(0x1fbb),function(_0x3069db,_0x54ff87){const _0x3c9369=_0x41591d;return _0x3069db[_0x3c9369(0x1268)](_0x3c9369(0x1a12),{'fields':_0x3c9369(0x1649),'id':_0x54ff87['id']});}],'userProfileSection':[_0x41591d(0x107c),_0x41591d(0xdcf),function(_0x4a34b0,_0x3b9e82){const _0x36171c=_0x41591d;return _0x4a34b0[_0x36171c(0x1268)]('userProfileSection@get',{'fields':_0x36171c(0x527),'userProfileId':_0x3b9e82[_0x36171c(0x808)]()[_0x36171c(0x21ac)],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':'mail'})[_0x41591d(0x14f2)](_0x41591d(0xd0d),{'url':_0x41591d(0x20b6),'views':{'content@app':{'templateUrl':_0xb3939e,'controller':_0x41591d(0x18c1)}},'resolve':{'mailAccounts':[_0x41591d(0x107c),'Auth',function(_0x23673f,_0x5a01a3){const _0x2ee82c=_0x41591d;return _0x5a01a3['hasRole']('admin')?_0x23673f[_0x2ee82c(0x1268)]('mailAccount@get',{'fields':'createdAt,updatedAt,id,name,key,email,ListId,active,cservice,Imap.service,Imap.host,Imap.port,Imap.tls,Imap.authentication,Imap.user,Imap.password,Imap.mailbox,Imap.connTimeout,Imap.authTimeout,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,cauthentication,cuser,cpassword,fontFamily,fontSize,template,markAsUnread,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':_0x2ee82c(0x260c),'limit':0xa,'offset':0x0}):_0x23673f[_0x2ee82c(0x1268)](_0x2ee82c(0x1758),{'id':_0x5a01a3['getCurrentUser']()['userProfileId'],'section':_0x2ee82c(0x1941),'fields':_0x2ee82c(0x615),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x41591d(0x107c),_0x41591d(0xdcf),function(_0x5dcb01,_0x2db218){const _0x4f814f=_0x41591d;return _0x2db218['hasRole'](_0x4f814f(0x333))?null:_0x5dcb01[_0x4f814f(0x1268)](_0x4f814f(0x6e3),{'fields':_0x4f814f(0x10d2),'id':_0x2db218[_0x4f814f(0x808)]()[_0x4f814f(0x21ac)]});}],'userProfileSection':[_0x41591d(0x107c),'Auth',function(_0x58ffd9,_0x5dfb8e){const _0x4bcc77=_0x41591d;return _0x5dfb8e['hasRole']('admin')?null:_0x58ffd9[_0x4bcc77(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5dfb8e[_0x4bcc77(0x808)]()[_0x4bcc77(0x21ac)],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':_0x41591d(0xc71)})['state'](_0x41591d(0x8e5),{'url':_0x41591d(0x45b),'params':{'mailAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x17ecb2,'controller':_0x41591d(0x135f)}},'resolve':{'mailAccount':['apiResolver',_0x41591d(0x1fbb),function(_0x4cf87e,_0x4f09cb){const _0x5bf550=_0x41591d;return _0x4cf87e[_0x5bf550(0x1268)]('mailAccount@get',{'fields':'createdAt,updatedAt,id,name,key,email,ListId,active,cservice,Imap.service,Imap.host,Imap.port,Imap.tls,Imap.authentication,Imap.user,Imap.password,Imap.mailbox,Imap.connTimeout,Imap.authTimeout,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,cauthentication,cuser,cpassword,fontFamily,fontSize,template,markAsUnread,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','id':_0x4f09cb['id']});}],'userProfileSection':[_0x41591d(0x107c),'Auth',function(_0x44a731,_0x31ac42){const _0x381879=_0x41591d;return _0x44a731['resolve'](_0x381879(0x2681),{'fields':_0x381879(0x527),'userProfileId':_0x31ac42[_0x381879(0x808)]()['userProfileId'],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':_0x41591d(0xc71)})[_0x41591d(0x14f2)](_0x41591d(0x1bf2),{'url':_0x41591d(0x295f),'views':{'content@app':{'templateUrl':_0x266dd2,'controller':_0x41591d(0x2210)}},'resolve':{'mailSubtatuses':[_0x41591d(0x107c),function(_0xfe26bf){const _0x3ed89a=_0x41591d;return _0xfe26bf['resolve']('mailSubstatus@get',{'fields':'createdAt,updatedAt,id,name,description','sort':_0x3ed89a(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x41591d(0x107c),_0x41591d(0xdcf),function(_0x3116af,_0x2eda83){const _0x429e28=_0x41591d;return _0x2eda83[_0x429e28(0x4de)]('admin')?null:_0x3116af[_0x429e28(0x1268)](_0x429e28(0x6e3),{'fields':'id,name,crudPermissions','id':_0x2eda83[_0x429e28(0x808)]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x41591d(0xdcf),function(_0x305839,_0x50cb40){const _0x1438c1=_0x41591d;return _0x50cb40[_0x1438c1(0x4de)]('admin')?null:_0x305839[_0x1438c1(0x1268)]('userProfileSection@get',{'fields':_0x1438c1(0x527),'userProfileId':_0x50cb40[_0x1438c1(0x808)]()['userProfileId'],'sectionId':0x25b});}]},'authenticate':!![],'permissionId':0x25b,'bodyClass':'mail'}),_0x23cfeb[_0x41591d(0x1bde)](_0x41591d(0x1eed));}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x1202),[_0x49a1e3(0x8d2),_0x49a1e3(0x3c7),_0x49a1e3(0x1fe3),_0x49a1e3(0x891),_0x49a1e3(0x2516),_0x49a1e3(0x1b6c),'ng-sortable','ngAria',_0x49a1e3(0x1610),_0x49a1e3(0xb19),_0x49a1e3(0x1a59),_0x49a1e3(0x11fd),'mwFormUtils',_0x49a1e3(0x1bd1),_0x49a1e3(0x1b5f),_0x49a1e3(0x1cff),_0x49a1e3(0x1046),_0x49a1e3(0x1acd),_0x49a1e3(0xc48),_0x49a1e3(0x28dd),_0x49a1e3(0x1ebe)])[_0x49a1e3(0x3d3)](_0xcf4eb)['controller'](_0x49a1e3(0x17dd),_0x1acd49)[_0x49a1e3(0x38e)](_0x49a1e3(0x18dc),_0x1b1f65)[_0x49a1e3(0x38e)](_0x49a1e3(0x7d9),_0x3c9364)[_0x49a1e3(0x38e)](_0x49a1e3(0xfb5),_0x217f5f)[_0x49a1e3(0x38e)](_0x49a1e3(0x231a),_0xe447a6)[_0x49a1e3(0x38e)](_0x49a1e3(0x2523),_0x3eb95e)['controller'](_0x49a1e3(0x5d3),_0x8c792e)[_0x49a1e3(0x38e)](_0x49a1e3(0x1bd3),_0x147bc4)[_0x49a1e3(0x38e)]('EditMailAccountAppintervalDialogController',_0x3e77b3)[_0x49a1e3(0x38e)](_0x49a1e3(0xf74),_0xe0bb43)[_0x49a1e3(0x38e)](_0x49a1e3(0x18ac),_0x2dcf40)[_0x49a1e3(0x38e)]('EditMailAccountAppsystemDialogController',_0x521a17)['controller']('EditMailAccountApptagDialogController',_0x37a6f8)[_0x49a1e3(0x38e)](_0x49a1e3(0x44d),_0x3d4ed6)[_0x49a1e3(0x38e)](_0x49a1e3(0x1687),_0x2fbffa)[_0x49a1e3(0x38e)](_0x49a1e3(0x3db),_0xecd080)[_0x49a1e3(0x38e)](_0x49a1e3(0x1f29),_0x2ac9ac)[_0x49a1e3(0x38e)](_0x49a1e3(0x1876),_0x59f782)['controller'](_0x49a1e3(0x1843),_0x27b95e)[_0x49a1e3(0x38e)](_0x49a1e3(0x71a),_0x1cfcda)['controller']('MailQueueagentaddController',_0x599bd9)[_0x49a1e3(0x38e)](_0x49a1e3(0x26f2),_0x46e817)[_0x49a1e3(0x38e)](_0x49a1e3(0xd83),_0x4e202a)[_0x49a1e3(0x38e)](_0x49a1e3(0x26cd),_0x127620)[_0x49a1e3(0x38e)](_0x49a1e3(0x971),_0xc17a12)[_0x49a1e3(0x38e)](_0x49a1e3(0x34d),_0x5cf5a7);;const _0x4d6863=_0x2e4a48['p']+_0x49a1e3(0x26c4);;const _0x407e28=_0x2e4a48['p']+_0x49a1e3(0x1c16);;const _0x270c15=_0x2e4a48['p']+_0x49a1e3(0xb8d);;_0x19aa47[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$q','$timeout','$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x1ce1),_0x49a1e3(0x23d1),_0x49a1e3(0xd77),_0x49a1e3(0x287f),_0x49a1e3(0xa19),_0x49a1e3(0x633),_0x49a1e3(0x680),_0x49a1e3(0x1f8c),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x1239)];function _0x19aa47(_0x3cef2e,_0x51adc2,_0x57c9fc,_0x235d4b,_0x5c7348,_0x1df8ad,_0x58a354,_0xa76ce0,_0x2f8ace,_0x344367,_0x433a53,_0x9a3913,_0x3381df,_0x371dae,_0x2648e9,_0xc7f3e1,_0x48864d,_0x570554){const _0x5d8764=_0x49a1e3,_0x1c99c4=this,_0x335898=[_0x5d8764(0x1c79),_0x5d8764(0x1eab),_0x5d8764(0x7a4),_0x5d8764(0x2148),'pauseType',_0x5d8764(0x2148),'internal',_0x5d8764(0x81e),_0x5d8764(0x2248),'openchannelPause',_0x5d8764(0x292),_0x5d8764(0xf2d),'whatsappPause',_0x5d8764(0x211),_0x5d8764(0x11a4),_0x5d8764(0x80a),'openchannelCapacity',_0x5d8764(0x8cb),_0x5d8764(0x708),_0x5d8764(0x12c5),_0x5d8764(0x1839),_0x5d8764(0x1b1d),_0x5d8764(0x1099),_0x5d8764(0x9ec),_0x5d8764(0x41d),_0x5d8764(0x19a8),_0x5d8764(0x6eb),_0x5d8764(0x363),_0x5d8764(0x11d7),_0x5d8764(0x13f4),'smsStatus','whatsappStatus',_0x5d8764(0x2014),'voiceStatus',_0x5d8764(0x2642),_0x5d8764(0x1857),'mailStatusTime','smsStatusTime',_0x5d8764(0x17fb),_0x5d8764(0x16c8),_0x5d8764(0x17f4),'queue',_0x5d8764(0xeae),'screenrecording',_0x5d8764(0x52c),_0x5d8764(0x20d3)],_0x19c5e3=[_0x5d8764(0x2248),_0x5d8764(0x1451),_0x5d8764(0x292),_0x5d8764(0xf2d),_0x5d8764(0x1f34),_0x5d8764(0x211),_0x5d8764(0x11a4),_0x5d8764(0x1eab)];_0x1c99c4['currentUser']=_0xc7f3e1[_0x5d8764(0x808)](),_0x1c99c4[_0x5d8764(0x1b8)]=[_0x5d8764(0xf8e),_0x5d8764(0x7be),'busy',_0x5d8764(0x8cc),'not_inuse'],_0x1c99c4[_0x5d8764(0x23d1)]=_0x58a354||{'count':0x0,'rows':[]},_0x1c99c4[_0x5d8764(0x1947)]=_0x48864d,_0x1c99c4['userProfile']=_0x371dae,_0x1c99c4['userProfileSection']=_0x2648e9&&_0x2648e9[_0x5d8764(0xb90)]==0x1?_0x2648e9[_0x5d8764(0x28b8)][0x0]:null,_0x1c99c4[_0x5d8764(0x402)]=_0xc7f3e1[_0x5d8764(0xa7e)](_0x1c99c4[_0x5d8764(0x16b2)]?_0x1c99c4['userProfileSection'][_0x5d8764(0x402)]:null),_0x1c99c4[_0x5d8764(0xd77)]=_0xa76ce0?_0x28c606()['keyBy'](_0xa76ce0[_0x5d8764(0x28b8)]?_0xa76ce0['rows']:[],'id'):{},_0x1c99c4[_0x5d8764(0x287f)]=_0x2f8ace?_0x28c606()[_0x5d8764(0x161e)](_0x2f8ace[_0x5d8764(0x28b8)]?_0x2f8ace[_0x5d8764(0x28b8)]:[],'id'):{},_0x1c99c4['paginatedAgents']={},_0x1c99c4['load']=![],_0x1c99c4[_0x5d8764(0x1997)]=[],_0x1c99c4[_0x5d8764(0xf0f)]={};for(const _0x533f4e in _0x1c99c4[_0x5d8764(0xd77)]){typeof _0x1c99c4['agents'][_0x533f4e]!=='undefined'&&(_0x1c99c4[_0x5d8764(0xd77)][_0x533f4e][_0x5d8764(0x2354)]=!![]);}_0x1c99c4['query']={'limit':0xa,'page':0x1,'order':_0x5d8764(0x15c),'globalStatusFilter':'','pauseTypeFilter':''},_0x1c99c4[_0x5d8764(0xad9)]=_0x343b84,_0x1c99c4[_0x5d8764(0x279d)]=_0x5006ec,_0x1c99c4[_0x5d8764(0x2826)]=_0x11b122,_0x1c99c4['unPause']=_0x1f6610,_0x1c99c4['showInfo']=_0x185ad6,_0x1c99c4[_0x5d8764(0xb1c)]=_0x390ec9,_0x1c99c4['getAgentGlobalStatus']=_0x5c0f30,_0x1c99c4[_0x5d8764(0x54e)]=_0x39a01f,_0x1c99c4[_0x5d8764(0x15d)]=_0xbb4fa9,_0x1c99c4[_0x5d8764(0x2744)]=_0x48b542,_0x1c99c4[_0x5d8764(0x249c)]=_0x10d9ae,_0x1c99c4[_0x5d8764(0x2853)]=_0x3c2566,_0x1c99c4[_0x5d8764(0x2483)]=_0x2139a3,_0x1c99c4['onConnect']=_0x2da9f7,_0x1c99c4[_0x5d8764(0x125b)]=_0x333aad,_0x1c99c4[_0x5d8764(0x24f7)]=_0x2d00fc,_0x433a53['on'](_0x5d8764(0x17e9),_0x1c99c4[_0x5d8764(0x249c)]),_0x433a53['on'](_0x5d8764(0x130f),_0x1c99c4[_0x5d8764(0x2853)]),_0x433a53['on']('user:agentconnect',_0x1c99c4[_0x5d8764(0x1a7c)]),_0x433a53['on']('user:agentcomplete',_0x1c99c4[_0x5d8764(0x125b)]),_0x2139a3();let _0x1581cf=_0x570554(function(){const _0x2261f2=_0x5d8764;_0x1c99c4['load']&&(_0x1c99c4[_0x2261f2(0x2789)]=![],_0x2139a3());},0x3e7);function _0x2139a3(){const _0x3a4c94=_0x5d8764;_0x1c99c4[_0x3a4c94(0x2789)]=![];const _0x3ca0ca=_0x51adc2[_0x3a4c94(0x122)]();_0x1c99c4[_0x3a4c94(0x1713)]=_0x3ca0ca[_0x3a4c94(0x1713)],_0x1c99c4[_0x3a4c94(0x2202)]=[],_0x1c99c4['order']=[],_0x28c606()[_0x3a4c94(0x1789)](_0x1c99c4[_0x3a4c94(0xd77)],function(_0x3d733e,_0x175410){const _0x534651=_0x3a4c94;_0x1c99c4[_0x534651(0x287f)][_0x175410]&&_0x28c606()[_0x534651(0x14fe)](_0x3d733e,_0x28c606()[_0x534651(0x27bb)](_0x28c606()[_0x534651(0xd09)](_0x1c99c4['rpcAgents'][_0x175410],_0x19c5e3),_0x335898)),_0x5c0f30(_0x3d733e),_0x3d733e['online']?(_0x1c99c4[_0x534651(0x2202)][_0x534651(0x1954)](_0x3d733e),_0x1c99c4['agentInternal'][_0x3d733e[_0x534651(0xe2f)]]=_0x175410):_0x3d733e[_0x534651(0x14f5)]=_0x28c606()['toNumber'](_0x2ac33a()()[_0x534651(0x1c2c)]('x'));});_0x1c99c4['query'][_0x3a4c94(0x1de8)]&&_0x28c606()[_0x3a4c94(0x21c7)](_0x1c99c4[_0x3a4c94(0x2202)],function(_0x487525){const _0x5bd91f=_0x3a4c94;return _0x487525[_0x5bd91f(0x876)]!==_0x1c99c4[_0x5bd91f(0x289a)]['globalStatusFilter'];});_0x1c99c4[_0x3a4c94(0x289a)][_0x3a4c94(0x1421)]&&_0x28c606()['remove'](_0x1c99c4[_0x3a4c94(0x2202)],function(_0x33ce4a){const _0x1e4987=_0x3a4c94;return _0x33ce4a[_0x1e4987(0x84f)]!==_0x1c99c4[_0x1e4987(0x289a)][_0x1e4987(0x1421)];});_0x1c99c4[_0x3a4c94(0x289a)][_0x3a4c94(0xcec)]&&_0x28c606()[_0x3a4c94(0x21c7)](_0x1c99c4[_0x3a4c94(0x2202)],function(_0x3f4d53){const _0x2f7400=_0x3a4c94;return _0x3f4d53[_0x2f7400(0x15c)][_0x2f7400(0x2554)]()[_0x2f7400(0x1b28)](_0x1c99c4[_0x2f7400(0x289a)]['filter'][_0x2f7400(0x2554)]())<0x0;});_0x1c99c4['filteredAgents']=_0xbe791d(_0x1c99c4[_0x3a4c94(0x2202)]);const _0x5a2c82=(_0x1c99c4['query'][_0x3a4c94(0xc72)]-0x1)*_0x1c99c4['query'][_0x3a4c94(0x25bb)];_0x1c99c4[_0x3a4c94(0x2d8)]=_0x28c606()[_0x3a4c94(0xfeb)](_0x1c99c4[_0x3a4c94(0x2202)],_0x5a2c82)[_0x3a4c94(0x142e)](0x0,_0x1c99c4[_0x3a4c94(0x289a)][_0x3a4c94(0x25bb)]);for(let _0x27e705=0x0;_0x27e705<_0x1c99c4[_0x3a4c94(0x2d8)][_0x3a4c94(0x1b9e)];_0x27e705+=0x1){_0x1c99c4[_0x3a4c94(0x1997)]['push'](_0x1c99c4[_0x3a4c94(0x2d8)][_0x27e705]['id']);}_0x3ca0ca[_0x3a4c94(0x1268)](),_0x1c99c4[_0x3a4c94(0x2789)]=!![];}function _0x10d9ae(_0x5a59d5){const _0x2e28ca=_0x5d8764;_0x1c99c4[_0x2e28ca(0xd77)][_0x5a59d5['id']]&&(_0x28c606()['merge'](_0x1c99c4[_0x2e28ca(0xd77)][_0x5a59d5['id']],_0x28c606()[_0x2e28ca(0x27bb)](_0x28c606()[_0x2e28ca(0xd09)](_0x5a59d5,_0x19c5e3),_0x335898)),_0x28c606()[_0x2e28ca(0x14fe)](_0x1c99c4[_0x2e28ca(0x287f)][_0x5a59d5['id']],_0x28c606()['pick'](_0x28c606()['omit'](_0x5a59d5,_0x19c5e3),_0x335898)),_0x5c0f30(_0x1c99c4[_0x2e28ca(0xd77)][_0x5a59d5['id']]));}function _0x3c2566(_0x19b727){const _0x2c342b=_0x5d8764;_0x1c99c4[_0x2c342b(0xd77)][_0x19b727['id']]&&(_0x28c606()[_0x2c342b(0x14fe)](_0x1c99c4[_0x2c342b(0xd77)][_0x19b727['id']],_0x28c606()['pick'](_0x19b727,_0x335898)),_0x28c606()['merge'](_0x1c99c4[_0x2c342b(0x287f)][_0x19b727['id']],_0x28c606()[_0x2c342b(0x27bb)](_0x19b727,_0x335898)),_0x19b727[_0x2c342b(0x2148)]&&(_0x1c99c4[_0x2c342b(0xd77)][_0x19b727['id']][_0x2c342b(0x14f5)]=_0x19b727[_0x2c342b(0x2148)],_0x1c99c4['rpcAgents'][_0x19b727['id']]['globalStatusTime']=_0x19b727[_0x2c342b(0x2148)]),_0x5c0f30(_0x1c99c4[_0x2c342b(0xd77)][_0x19b727['id']]));}function _0x2da9f7(_0x5d6d42){const _0x167598=_0x5d8764;_0x1c99c4[_0x167598(0xd77)][_0x1c99c4[_0x167598(0xf0f)][_0x5d6d42[_0x167598(0xf65)]]]&&(_0x28c606()['merge'](_0x1c99c4[_0x167598(0xd77)][_0x1c99c4[_0x167598(0xf0f)][_0x5d6d42[_0x167598(0xf65)]]],_0x28c606()['pick'](_0x5d6d42,['queue','destconnectedlinenum'])),_0x28c606()[_0x167598(0x14fe)](_0x1c99c4[_0x167598(0x287f)][_0x1c99c4[_0x167598(0xf0f)][_0x5d6d42[_0x167598(0xf65)]]],_0x28c606()[_0x167598(0x27bb)](_0x5d6d42,[_0x167598(0x1e4e),'destconnectedlinenum'])));}function _0x333aad(_0x16302d){const _0x25f91f=_0x5d8764;_0x1c99c4[_0x25f91f(0xd77)][_0x1c99c4[_0x25f91f(0xf0f)][_0x16302d['destaccountcode']]]&&(_0x1c99c4[_0x25f91f(0xd77)][_0x1c99c4[_0x25f91f(0xf0f)][_0x16302d[_0x25f91f(0xf65)]]]=_0x28c606()[_0x25f91f(0xd09)](_0x1c99c4[_0x25f91f(0xd77)][_0x1c99c4[_0x25f91f(0xf0f)][_0x16302d['destaccountcode']]],[_0x25f91f(0x1e4e),_0x25f91f(0xeae)]),_0x1c99c4[_0x25f91f(0x287f)][_0x1c99c4[_0x25f91f(0xf0f)][_0x16302d[_0x25f91f(0xf65)]]]=_0x28c606()[_0x25f91f(0xd09)](_0x1c99c4[_0x25f91f(0x287f)][_0x1c99c4['agentInternal'][_0x16302d[_0x25f91f(0xf65)]]],[_0x25f91f(0x1e4e),_0x25f91f(0xeae)]));}function _0x343b84(_0x2fc398){const _0x1bc87c=_0x5d8764;return _0x344367[_0x1bc87c(0x2e8)][_0x1bc87c(0xad9)]({'id':_0x2fc398['id'],'device':_0x1bc87c(0x252e),'agent_id':_0x2fc398['id'],'agent_name':_0x2fc398[_0x1bc87c(0x2494)]})[_0x1bc87c(0x15e7)][_0x1bc87c(0x64a)](function(){const _0x4a5c8a=_0x1bc87c;_0x9a3913[_0x4a5c8a(0x1339)]({'title':_0x4a5c8a(0x2927),'msg':_0x2fc398['fullname']+_0x4a5c8a(0x236)}),_0x1c99c4['agents'][_0x2fc398['id']]&&(_0x1c99c4[_0x4a5c8a(0xd77)][_0x2fc398['id']][_0x4a5c8a(0x1eab)]=![]),_0x1c99c4[_0x4a5c8a(0x287f)][_0x2fc398['id']]&&(_0x1c99c4[_0x4a5c8a(0x287f)][_0x2fc398['id']][_0x4a5c8a(0x1eab)]=![]),_0x2139a3();})['catch'](function(_0x3b4f3d){const _0x853c0c=_0x1bc87c;_0x9a3913['error']({'title':_0x3b4f3d[_0x853c0c(0x10b3)]?_0x853c0c(0x575)+_0x3b4f3d[_0x853c0c(0x10b3)]+_0x853c0c(0x21db)+_0x3b4f3d[_0x853c0c(0x2115)]:'api.staff.save','msg':_0x3b4f3d[_0x853c0c(0x1c52)]?JSON[_0x853c0c(0x2317)](_0x3b4f3d[_0x853c0c(0x1c52)]['message']):_0x3b4f3d[_0x853c0c(0x2915)]()});});}function _0x11b122(_0x533878,_0x4d364c){const _0x569f00=_0x5d8764;return _0x344367['user'][_0x569f00(0x2826)]({'id':_0x533878['id'],'type':_0x4d364c})[_0x569f00(0x15e7)][_0x569f00(0x64a)](function(_0x8c12cf){const _0x480fb3=_0x569f00;_0x1c99c4[_0x480fb3(0xd77)][_0x533878['id']]&&_0x28c606()['merge'](_0x1c99c4[_0x480fb3(0xd77)][_0x533878['id']],_0x28c606()[_0x480fb3(0x27bb)](_0x8c12cf,_0x335898)),_0x1c99c4[_0x480fb3(0x287f)][_0x533878['id']]&&_0x28c606()[_0x480fb3(0x14fe)](_0x1c99c4[_0x480fb3(0x287f)][_0x533878['id']],_0x28c606()[_0x480fb3(0x27bb)](_0x8c12cf,_0x335898)),_0x5c0f30(_0x1c99c4[_0x480fb3(0xd77)][_0x533878['id']]);})[_0x569f00(0x20cd)](function(_0x44c1c){const _0x496b79=_0x569f00;_0x9a3913[_0x496b79(0x1bd0)]({'title':_0x44c1c[_0x496b79(0x10b3)]?_0x496b79(0x575)+_0x44c1c[_0x496b79(0x10b3)]+_0x496b79(0x21db)+_0x44c1c[_0x496b79(0x2115)]:'api.staff.save','msg':_0x44c1c[_0x496b79(0x1c52)]?JSON['stringify'](_0x44c1c['data']['message']):_0x44c1c[_0x496b79(0x2915)]()});});}function _0x1f6610(_0x2bacd3){const _0x2f8dc6=_0x5d8764;return _0x344367[_0x2f8dc6(0x2e8)]['unpause']({'id':_0x2bacd3['id']})[_0x2f8dc6(0x15e7)][_0x2f8dc6(0x64a)](function(_0x463815){const _0x232a24=_0x2f8dc6;_0x1c99c4['agents'][_0x2bacd3['id']]&&_0x28c606()[_0x232a24(0x14fe)](_0x1c99c4[_0x232a24(0xd77)][_0x2bacd3['id']],_0x28c606()[_0x232a24(0x27bb)](_0x463815,_0x335898)),_0x1c99c4[_0x232a24(0x287f)][_0x2bacd3['id']]&&_0x28c606()[_0x232a24(0x14fe)](_0x1c99c4[_0x232a24(0x287f)][_0x2bacd3['id']],_0x28c606()[_0x232a24(0x27bb)](_0x463815,_0x335898)),_0x5c0f30(_0x1c99c4['agents'][_0x2bacd3['id']]);})['catch'](function(_0xef89b2){const _0x3f8dd1=_0x2f8dc6;_0x9a3913[_0x3f8dd1(0x1bd0)]({'title':_0xef89b2['status']?_0x3f8dd1(0x575)+_0xef89b2['status']+'\x20-\x20'+_0xef89b2[_0x3f8dd1(0x2115)]:_0x3f8dd1(0x180),'msg':_0xef89b2[_0x3f8dd1(0x1c52)]?JSON['stringify'](_0xef89b2[_0x3f8dd1(0x1c52)]['message']):_0xef89b2[_0x3f8dd1(0x2915)]()});});}function _0x185ad6(_0x5aaf3f){const _0x368515=_0x5d8764;_0x235d4b[_0x368515(0xa60)](_0x235d4b['alert']()[_0x368515(0x1945)](!![])[_0x368515(0x2021)]('Legend')[_0x368515(0x33a)](_0x368515(0x424))['ok']('Ok')[_0x368515(0x2283)](_0x5aaf3f));}function _0x5006ec(_0x4559b0,_0x205b5c){const _0x49da5c=_0x5d8764;_0x235d4b[_0x49da5c(0xa60)]({'controller':_0x49da5c(0x5a7),'controllerAs':'vm','templateUrl':_0x5eb675,'parent':angular[_0x49da5c(0x1f81)](_0x5c7348[_0x49da5c(0xb49)]),'targetEvent':_0x205b5c,'clickOutsideToClose':!![],'locals':{'agent':_0x4559b0,'agents':[],'channel':_0x49da5c(0x10aa),'direction':_0x49da5c(0x12a4),'crudPermissions':_0x1c99c4['crudPermissions']}});}function _0x39a01f(_0x18eedb){const _0x468ee5=_0x5d8764;return _0x18eedb==='pause'||_0x18eedb===_0x468ee5(0x1bcc);}function _0xbb4fa9(_0x3acada){return _0x3acada==='pause';}function _0x48b542(_0x243e48){const _0x2e632f=_0x5d8764;return _0x243e48===_0x2e632f(0x1bcc);}function _0x3f88d4(_0x3e98d2){const _0x324424=_0x5d8764;return _0x3e98d2===_0x324424(0xac6)||_0x3e98d2==='unknown'||_0x3e98d2===_0x324424(0x407)||_0x3e98d2==='ringing'||_0x28c606()[_0x324424(0x28d7)](_0x3e98d2);}function _0x390ec9(_0xaeb043,_0x11bf03){const _0x2c0a20=_0x5d8764;if(_0x11bf03===_0x2c0a20(0x227c)){if(_0xaeb043[_0x11bf03+_0x2c0a20(0x2311)]!=='idle')return _0xaeb043[_0x11bf03+_0x2c0a20(0x2311)];if(_0xaeb043[_0x11bf03+_0x2c0a20(0x9d3)])return _0xaeb043[_0x11bf03+_0x2c0a20(0x2311)]=_0x2c0a20(0x2826),'pause';return'idle';}else{if(_0xaeb043[_0x11bf03+'Pause'])return _0xaeb043[_0x11bf03+_0x2c0a20(0x2311)]='pause',_0x2c0a20(0x2826);return _0xaeb043[_0x11bf03+_0x2c0a20(0x2311)];}}function _0x5c0f30(_0x4d24fb){const _0x256d6a=_0x5d8764;let _0x5b80b2=_0x256d6a(0x1191);if(_0x28c606()[_0x256d6a(0x2972)]([_0x390ec9(_0x4d24fb,_0x256d6a(0x227c)),_0x390ec9(_0x4d24fb,_0x256d6a(0xf52)),_0x390ec9(_0x4d24fb,_0x256d6a(0xc71)),_0x390ec9(_0x4d24fb,'openchannel'),_0x390ec9(_0x4d24fb,'sms'),_0x390ec9(_0x4d24fb,'whatsapp'),_0x390ec9(_0x4d24fb,_0x256d6a(0x1d37))],_0x39a01f))_0x5b80b2=_0x256d6a(0x2826);else{if(_0x28c606()[_0x256d6a(0x25f8)]([_0x390ec9(_0x4d24fb,_0x256d6a(0x227c)),_0x390ec9(_0x4d24fb,_0x256d6a(0xf52)),_0x390ec9(_0x4d24fb,'mail'),_0x390ec9(_0x4d24fb,_0x256d6a(0x28ad)),_0x390ec9(_0x4d24fb,'sms'),_0x390ec9(_0x4d24fb,'whatsapp'),_0x390ec9(_0x4d24fb,'fax')],_0x39a01f))_0x5b80b2=_0x256d6a(0x1bcc);else _0x28c606()['every']([_0x390ec9(_0x4d24fb,_0x256d6a(0x227c)),_0x390ec9(_0x4d24fb,_0x256d6a(0xf52)),_0x390ec9(_0x4d24fb,'mail'),_0x390ec9(_0x4d24fb,_0x256d6a(0x28ad)),_0x390ec9(_0x4d24fb,'sms'),_0x390ec9(_0x4d24fb,'whatsapp'),_0x390ec9(_0x4d24fb,_0x256d6a(0x1d37))],_0x3f88d4)?_0x5b80b2=_0x256d6a(0xac6):_0x5b80b2=_0x256d6a(0x94d);}_0x4d24fb[_0x256d6a(0x876)]!==_0x5b80b2&&(_0x4d24fb[_0x256d6a(0x876)]=_0x5b80b2,_0x4d24fb[_0x256d6a(0x2354)]?(_0x4d24fb[_0x256d6a(0x2354)]=![],_0x4d24fb[_0x256d6a(0x14f5)]=_0x39a01f(_0x5b80b2)?_0x28c606()['toNumber'](_0x2ac33a()(_0x4d24fb[_0x256d6a(0x2148)])[_0x256d6a(0x1c2c)]('x')):_0x28c606()[_0x256d6a(0x2a2)]([_0x4d24fb[_0x256d6a(0x17f4)],_0x4d24fb[_0x256d6a(0x2642)],_0x4d24fb[_0x256d6a(0x1f78)],_0x4d24fb[_0x256d6a(0x24a3)],_0x4d24fb[_0x256d6a(0x17fb)],_0x4d24fb['openchannelStatusTime'],_0x4d24fb[_0x256d6a(0x16c8)]])):_0x4d24fb['globalStatusTime']=_0x28c606()[_0x256d6a(0x1251)](_0x2ac33a()()['format']('x')));}function _0xbe791d(_0xd5ccb0){const _0x4951fe=_0x5d8764,_0x4fcc78=_0x28c606()[_0x4951fe(0x1273)](_0x1c99c4[_0x4951fe(0x289a)][_0x4951fe(0x1997)],'-')?_0x4951fe(0x19d0):_0x4951fe(0x2449);return _0x28c606()['orderBy'](_0xd5ccb0,[_0x1c99c4[_0x4951fe(0x289a)][_0x4951fe(0x1997)][_0x4951fe(0x1353)]('-','')],[_0x4fcc78]);}function _0x2a504f(){const _0x4a74af=_0x5d8764;_0x1581cf&&(_0x570554[_0x4a74af(0x101a)](_0x1581cf),_0x1581cf=null);}function _0x2d00fc(_0x183479,_0x30d39e){const _0x1f76e1=_0x5d8764;return _0x344367['user'][_0x1f76e1(0x2603)]({'id':_0x183479['id']},{'screenrecording':_0x30d39e})['$promise']['catch'](function(_0x20a743){const _0x579b79=_0x1f76e1;_0x9a3913[_0x579b79(0x1bd0)]({'title':_0x20a743[_0x579b79(0x10b3)]?'API:'+_0x20a743[_0x579b79(0x10b3)]+'\x20-\x20'+_0x20a743[_0x579b79(0x2115)]:_0x579b79(0x15e5),'msg':_0x20a743[_0x579b79(0x1c52)]?JSON[_0x579b79(0x2317)](_0x20a743['data']['message']):_0x20a743[_0x579b79(0x2915)]()});});}_0x3cef2e['$on'](_0x5d8764(0xf28),function(){const _0x1088a5=_0x5d8764;_0x433a53[_0x1088a5(0x1951)](_0x1088a5(0x17e9)),_0x433a53['removeAllListeners'](_0x1088a5(0x130f)),_0x433a53['removeAllListeners'](_0x1088a5(0x197a)),_0x433a53[_0x1088a5(0x1951)](_0x1088a5(0x1b7e)),_0x2a504f();});}const _0x721622=_0x19aa47;;const _0x217fe5=_0x2e4a48['p']+_0x49a1e3(0x5db);;const _0x54f3d7=_0x2e4a48['p']+_0x49a1e3(0xc97);;_0x48c597[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$timeout','$mdDialog','$q',_0x49a1e3(0x1373),'$interval','queues',_0x49a1e3(0x22c7),_0x49a1e3(0xa19),_0x49a1e3(0x633),_0x49a1e3(0x680),'userProfile',_0x49a1e3(0x16b2),_0x49a1e3(0xdcf)];function _0x48c597(_0x11afd4,_0x561004,_0xe7e8b1,_0x5dd42d,_0x5a0a9b,_0x3a651d,_0x110b8e,_0x137a79,_0x1ec17d,_0x1afc78,_0x1cabf2,_0xe624bf,_0x1b53ba,_0x2a59b3){const _0x3050e5=_0x49a1e3,_0x192fb8=this,_0x4fa4f0=[_0x3050e5(0x17bc),_0x3050e5(0x1c58),_0x3050e5(0x188f),_0x3050e5(0x130d),'pTalking',_0x3050e5(0xa1b),'message',_0x3050e5(0x11b3),_0x3050e5(0xa69),'Trunk',_0x3050e5(0x20a7)];_0x192fb8[_0x3050e5(0x1d3d)]=_0x2a59b3[_0x3050e5(0x808)](),_0x192fb8[_0x3050e5(0xb90)]=_0x110b8e[_0x3050e5(0xb90)]?_0x110b8e[_0x3050e5(0xb90)]:0x0,_0x192fb8[_0x3050e5(0x1c06)]=_0x110b8e?_0x28c606()[_0x3050e5(0x161e)](_0x110b8e[_0x3050e5(0x28b8)]?_0x110b8e['rows']:[],'id'):{},_0x192fb8[_0x3050e5(0x22c7)]=_0x137a79?_0x28c606()[_0x3050e5(0x161e)](_0x137a79['rows']?_0x137a79[_0x3050e5(0x28b8)]:[],'id'):{},_0x192fb8[_0x3050e5(0x16a8)]=_0xe624bf,_0x192fb8[_0x3050e5(0x16b2)]=_0x1b53ba&&_0x1b53ba[_0x3050e5(0xb90)]==0x1?_0x1b53ba[_0x3050e5(0x28b8)][0x0]:null,_0x192fb8[_0x3050e5(0x402)]=_0x2a59b3[_0x3050e5(0xa7e)](_0x192fb8[_0x3050e5(0x16b2)]?_0x192fb8[_0x3050e5(0x16b2)][_0x3050e5(0x402)]:null);_0x2a59b3[_0x3050e5(0x4de)](_0x3050e5(0x333))?_0x192fb8[_0x3050e5(0x289a)]={'type':_0x3050e5(0x12a4),'sort':_0x3050e5(0x260c),'limit':0xa,'page':0x1}:_0x192fb8['query']={'id':_0x192fb8[_0x3050e5(0x1d3d)]['id'],'channel':_0x3050e5(0x10aa),'type':_0x3050e5(0x12a4),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x192fb8[_0x3050e5(0x1339)]=_0x1695c7,_0x192fb8[_0x3050e5(0x1f2c)]=_0x578d4d,_0x192fb8['createOrEditSmsQueue']=_0x3fd982,_0x192fb8[_0x3050e5(0x2241)]=_0x1b2639,_0x192fb8['updateQueue']=_0x5bf826,_0x192fb8['onSave']=_0x89242f,_0x192fb8[_0x3050e5(0x28b9)]=_0x1773c3,_0x192fb8[_0x3050e5(0x351)]=_0x494856,_0x192fb8['onPause']=_0x11ea2d,_0x192fb8[_0x3050e5(0x4c3)]=_0x5657a4,_0x192fb8[_0x3050e5(0x259)]=_0x5e880b,_0x192fb8[_0x3050e5(0xea6)]=_0x13e89d,_0x192fb8[_0x3050e5(0x1997)]=[],_0x28c606()[_0x3050e5(0x1789)](_0x192fb8[_0x3050e5(0x1c06)],function(_0x1b12f7){const _0x4491fa=_0x3050e5;_0x192fb8['order'][_0x4491fa(0x1954)](_0x1b12f7['id']);}),_0x1afc78['on'](_0x3050e5(0x12d8),_0x192fb8[_0x3050e5(0x249c)]),_0x1afc78['on'](_0x3050e5(0x2591),_0x192fb8[_0x3050e5(0x28b9)]),_0x1afc78['on']('userSmsQueue:remove',_0x192fb8[_0x3050e5(0x351)]),_0x1afc78['on'](_0x3050e5(0x130f),_0x192fb8[_0x3050e5(0x2fe)]),_0x1afc78['on'](_0x3050e5(0x289d),_0x192fb8['onLogout']),_0x1afc78['on'](_0x3050e5(0x44b),_0x192fb8[_0x3050e5(0x4c3)]);function _0x13e89d(){const _0x25f89f=_0x3050e5,_0x455a9e=[];return _0x28c606()[_0x25f89f(0x1789)](_0x192fb8[_0x25f89f(0x1c06)],function(_0x36aac7,_0x447bdb){const _0xf30112=_0x25f89f;_0x36aac7[_0xf30112(0x20a7)]=0x0,_0x36aac7[_0xf30112(0x371)]=0x0,_0x192fb8[_0xf30112(0x1c06)][_0x447bdb]['agents']={},_0x455a9e[_0xf30112(0x1954)](_0x1ec17d[_0xf30112(0x1957)][_0xf30112(0xf49)]({'id':_0x447bdb})[_0xf30112(0x15e7)]),_0x192fb8[_0xf30112(0x22c7)][_0x447bdb]&&_0x28c606()[_0xf30112(0x14fe)](_0x36aac7,_0x28c606()['pick'](_0x192fb8[_0xf30112(0x22c7)][_0x447bdb],_0x4fa4f0));}),_0x5dd42d['all'](_0x455a9e)[_0x25f89f(0x64a)](function(_0x33cb05){const _0x20c65e=_0x25f89f;for(let _0x50f9b4=0x0;_0x50f9b4<_0x33cb05[_0x20c65e(0x1b9e)];_0x50f9b4+=0x1){for(let _0x783dd7=0x0;_0x783dd7<_0x33cb05[_0x50f9b4][_0x20c65e(0x28b8)][_0x20c65e(0x1b9e)];_0x783dd7++){_0x33cb05[_0x50f9b4][_0x20c65e(0x28b8)][_0x783dd7]['paused']&&_0x192fb8[_0x20c65e(0x1c06)][_0x33cb05[_0x50f9b4][_0x20c65e(0x28b8)][_0x783dd7][_0x20c65e(0x1e24)]][_0x20c65e(0x20a7)]++,_0x192fb8[_0x20c65e(0x1c06)][_0x33cb05[_0x50f9b4][_0x20c65e(0x28b8)][_0x783dd7][_0x20c65e(0x1e24)]][_0x20c65e(0x371)]++,_0x192fb8[_0x20c65e(0x1c06)][_0x33cb05[_0x50f9b4][_0x20c65e(0x28b8)][_0x783dd7]['SmsQueueId']][_0x20c65e(0xd77)][_0x33cb05[_0x50f9b4][_0x20c65e(0x28b8)][_0x783dd7][_0x20c65e(0x246c)]]=_0x33cb05[_0x50f9b4][_0x20c65e(0x28b8)][_0x783dd7][_0x20c65e(0x1e24)];}}})[_0x25f89f(0x20cd)](function(_0x398f50){const _0x260461=_0x25f89f;console[_0x260461(0x1bd0)](_0x398f50);});}function _0x89242f(_0x18bf85){const _0x35e781=_0x3050e5;_0x192fb8[_0x35e781(0x1c06)][_0x18bf85['id']]&&_0x28c606()[_0x35e781(0x14fe)](_0x192fb8[_0x35e781(0x1c06)][_0x18bf85['id']],_0x28c606()[_0x35e781(0x27bb)](_0x18bf85,_0x4fa4f0));}function _0x1773c3(_0x500f65){const _0x1b4617=_0x3050e5;_0x192fb8[_0x1b4617(0x1c06)][_0x500f65[_0x1b4617(0x1e24)]]&&_0x192fb8['queues'][_0x500f65[_0x1b4617(0x1e24)]][_0x1b4617(0x371)]++;}function _0x494856(_0x539915){const _0x78f80b=_0x3050e5;_0x192fb8[_0x78f80b(0x1c06)][_0x539915['SmsQueueId']]&&_0x192fb8['queues'][_0x539915[_0x78f80b(0x1e24)]][_0x78f80b(0x371)]--;}function _0x11ea2d(_0x54de13){const _0xbd675=_0x3050e5;console[_0xbd675(0x9b4)](_0xbd675(0x2fe),_0x54de13);if(_0x54de13[_0xbd675(0x11a4)])_0x28c606()['forIn'](_0x192fb8[_0xbd675(0x1c06)],function(_0x212319){const _0x194a78=_0xbd675;_0x212319[_0x194a78(0xd77)][_0x54de13['id']]&&(_0x212319[_0x194a78(0x20a7)]+=0x1,console[_0x194a78(0x9b4)](_0x194a78(0x2826)));});else!_0x54de13[_0xbd675(0x11a4)]&&_0x28c606()[_0xbd675(0x1789)](_0x192fb8[_0xbd675(0x1c06)],function(_0x166aab){const _0x5341cc=_0xbd675;_0x166aab[_0x5341cc(0xd77)][_0x54de13['id']]&&(_0x166aab[_0x5341cc(0x20a7)]>0x0&&(_0x166aab['paused']-=0x1,console[_0x5341cc(0x9b4)]('unpause')));});}function _0x5657a4(_0x4037b6){const _0x47e3ee=_0x3050e5;console[_0x47e3ee(0x9b4)](_0x47e3ee(0x889),_0x4037b6),_0x192fb8[_0x47e3ee(0x1c06)][_0x4037b6[_0x47e3ee(0x1e24)]]&&(_0x192fb8[_0x47e3ee(0x1c06)][_0x4037b6[_0x47e3ee(0x1e24)]][_0x47e3ee(0x371)]+=0x1,_0x192fb8['queues'][_0x4037b6[_0x47e3ee(0x1e24)]]['agents'][_0x4037b6[_0x47e3ee(0x246c)]]=_0x4037b6[_0x47e3ee(0x1e24)]);}function _0x5e880b(_0x414911){const _0x5aac07=_0x3050e5;console[_0x5aac07(0x9b4)](_0x5aac07(0x259),_0x414911),_0x192fb8[_0x5aac07(0x1c06)][_0x414911[_0x5aac07(0x1e24)]]&&_0x192fb8[_0x5aac07(0x1c06)][_0x414911[_0x5aac07(0x1e24)]][_0x5aac07(0x371)]>0x0&&(_0x192fb8['queues'][_0x414911['SmsQueueId']]['loggedInDb']-=0x1,delete _0x192fb8[_0x5aac07(0x1c06)][_0x414911[_0x5aac07(0x1e24)]][_0x5aac07(0xd77)][_0x414911[_0x5aac07(0x246c)]]);}let _0x47356=!![],_0x316ca0=0x1;_0x11afd4['$watch'](_0x3050e5(0x1cb9),function(_0x45d039,_0x3bdeca){const _0x35a179=_0x3050e5;_0x47356?_0x561004(function(){_0x47356=![];}):(!_0x3bdeca&&(_0x316ca0=_0x192fb8[_0x35a179(0x289a)]['page']),_0x45d039!==_0x3bdeca&&(_0x192fb8[_0x35a179(0x289a)][_0x35a179(0xc72)]=0x1),!_0x45d039&&(_0x192fb8['query'][_0x35a179(0xc72)]=_0x316ca0),_0x192fb8[_0x35a179(0x1f2c)]());});function _0x1695c7(_0x558b38){const _0x28840f=_0x3050e5;_0x192fb8[_0x28840f(0xb90)]=_0x558b38['count'],_0x192fb8[_0x28840f(0x1c06)]=_0x558b38?_0x28c606()[_0x28840f(0x161e)](_0x558b38[_0x28840f(0x28b8)]?_0x558b38['rows']:[],'id'):{};if(_0x558b38[_0x28840f(0x28b8)]){_0x192fb8['order']=[];for(let _0x2e9927=0x0;_0x2e9927<_0x558b38[_0x28840f(0x28b8)][_0x28840f(0x1b9e)];_0x2e9927++){_0x192fb8[_0x28840f(0x1997)]['push'](_0x558b38['rows'][_0x2e9927]['id']);}}_0x13e89d();}function _0x578d4d(){const _0x5a38e7=_0x3050e5;_0x192fb8[_0x5a38e7(0x289a)][_0x5a38e7(0x24f9)]=(_0x192fb8['query'][_0x5a38e7(0xc72)]-0x1)*_0x192fb8['query'][_0x5a38e7(0x25bb)],_0x2a59b3[_0x5a38e7(0x4de)](_0x5a38e7(0x333))?_0x192fb8[_0x5a38e7(0x1713)]=_0x1ec17d['smsQueue']['get'](_0x192fb8[_0x5a38e7(0x289a)],_0x1695c7)[_0x5a38e7(0x15e7)]:(_0x192fb8['query']['id']=_0x192fb8[_0x5a38e7(0x16a8)]['id'],_0x192fb8[_0x5a38e7(0x289a)][_0x5a38e7(0xa21)]=_0x5a38e7(0x1272),_0x192fb8[_0x5a38e7(0x1713)]=_0x1ec17d[_0x5a38e7(0x16a8)]['getResources'](_0x192fb8['query'],_0x1695c7)[_0x5a38e7(0x15e7)]);}function _0x3fd982(_0x3c57c3,_0x59fd66){const _0x25840d=_0x3050e5;_0xe7e8b1[_0x25840d(0xa60)]({'controller':_0x25840d(0x2654),'controllerAs':'vm','templateUrl':_0x217fe5,'parent':angular[_0x25840d(0x1f81)](_0x5a0a9b[_0x25840d(0xb49)]),'targetEvent':_0x3c57c3,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x59fd66,'smsQueues':_0x28c606()[_0x25840d(0x2146)](_0x192fb8[_0x25840d(0x1c06)]),'license':null,'setting':null,'crudPermissions':_0x192fb8[_0x25840d(0x402)]}});}function _0x1b2639(_0x3d377c,_0x353ec4){const _0x4e5365=_0x3050e5;_0xe7e8b1[_0x4e5365(0xa60)]({'controller':_0x4e5365(0x998),'controllerAs':'vm','templateUrl':_0x54f3d7,'parent':angular[_0x4e5365(0x1f81)](_0x5a0a9b[_0x4e5365(0xb49)]),'targetEvent':_0x3d377c,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x353ec4,'smsQueues':_0x192fb8[_0x4e5365(0x1c06)]?_0x192fb8['queues'][_0x4e5365(0x28b8)]:[],'realtime':![],'crudPermissions':_0x192fb8[_0x4e5365(0x402)]}});}function _0x5bf826(_0x5498cb){const _0x4c033c=_0x3050e5;return _0x1ec17d['smsQueue']['update'](_0x5498cb)[_0x4c033c(0x15e7)][_0x4c033c(0x64a)](function(){const _0x3090ab=_0x4c033c;_0x1cabf2[_0x3090ab(0x1339)]({'title':_0x3090ab(0x2bf),'msg':_0x5498cb['name']?_0x5498cb[_0x3090ab(0x2494)]+_0x3090ab(0x2032):''});})[_0x4c033c(0x20cd)](function(_0x5f0383){const _0x1b6c0e=_0x4c033c;_0x1cabf2[_0x1b6c0e(0x1bd0)]({'title':_0x1b6c0e(0x5d4),'msg':_0x5f0383['message']});});}_0x11afd4[_0x3050e5(0x8c7)](_0x3050e5(0xf28),function(){const _0x24d09e=_0x3050e5;_0x1afc78['removeAllListeners'](_0x24d09e(0x12d8)),_0x1afc78[_0x24d09e(0x1951)](_0x24d09e(0xc64)),_0x1afc78[_0x24d09e(0x1951)]('userSmsQueue:save'),_0x1afc78['removeAllListeners'](_0x24d09e(0x130f)),_0x1afc78[_0x24d09e(0x1951)]('userVoiceQueue:remove'),_0x1afc78['removeAllListeners'](_0x24d09e(0x44b));});}const _0x393712=_0x48c597;;function _0xa8875d(){const _0x5b724c=_0x49a1e3;return{'status':{'registered':_0x5b724c(0x26f8),'unregistered':'red-300-fg\x20icon-close-circle','lagged':_0x5b724c(0x2448),'reachable':_0x5b724c(0x26f8),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x5b724c(0x178c)},'state':{'unknown':_0x5b724c(0x2971),'not_inuse':_0x5b724c(0x14d3),'inuse':_0x5b724c(0xa51),'busy':'red-300-fg\x20icon-phone-locked','invalid':_0x5b724c(0x2971),'unavailable':_0x5b724c(0x2971),'ringing':_0x5b724c(0x15e),'ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':_0x5b724c(0xced)},'channelStatus':{'ring':_0x5b724c(0x15e),'up':_0x5b724c(0x5c4),'hangup':_0x5b724c(0x2150)},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':_0x5b724c(0x5c4),'hangup':'red-300-fg\x20icon-phone-hangup'}};}const _0x1cee3f=_0xa8875d;;_0x2b075e['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x633)];function _0x2b075e(_0x40a80f,_0x4b537a,_0x31baa8){const _0x1f2b1c=_0x49a1e3,_0x2cf9cb=this;_0x31baa8[_0x1f2b1c(0x1c31)](),_0x31baa8[_0x1f2b1c(0x25fa)](),_0x2cf9cb['selectedTab']=0x0;switch(_0x4b537a[_0x1f2b1c(0xa6c)][_0x1f2b1c(0x2494)]){case'app.sms.realtime.agents':_0x2cf9cb[_0x1f2b1c(0x197c)]=0x0;break;case _0x1f2b1c(0x281b):_0x2cf9cb[_0x1f2b1c(0x197c)]=0x1;break;default:_0x2cf9cb['selectedTab']=0x0,_0x4b537a['go'](_0x1f2b1c(0x3d6));}_0x40a80f['$watch']('vm.selectedTab',function(_0x58bc98,_0x42d48c){const _0x36b252=_0x1f2b1c;if(_0x58bc98!==_0x42d48c)switch(_0x58bc98){case 0x0:_0x4b537a['go']('app.sms.realtime.agents');break;case 0x1:_0x4b537a['go'](_0x36b252(0x281b));break;default:_0x4b537a['go'](_0x36b252(0x3d6));}});}const _0x14d4d5=_0x2b075e;;_0x13bdc5['$inject']=[_0x49a1e3(0x20ad)];function _0x13bdc5(_0x5e4439){const _0x342877=_0x49a1e3;_0x5e4439[_0x342877(0x14f2)]('app.sms.realtime',{'url':_0x342877(0x71d),'views':{'content@app':{'templateUrl':_0x4d6863,'controller':_0x342877(0x14fd)}},'resolve':{'userProfile':[_0x342877(0x107c),_0x342877(0xdcf),function(_0x3d3c75,_0x5a4ce2){const _0x40ea35=_0x342877;return _0x5a4ce2[_0x40ea35(0x4de)](_0x40ea35(0x333))?null:_0x3d3c75[_0x40ea35(0x1268)](_0x40ea35(0x6e3),{'fields':_0x40ea35(0x10d2),'id':_0x5a4ce2['getCurrentUser']()[_0x40ea35(0x21ac)]});}],'userProfileSection':[_0x342877(0x107c),'Auth',function(_0x167af8,_0x4550e1){const _0x26148a=_0x342877;return _0x4550e1[_0x26148a(0x4de)](_0x26148a(0x333))?null:_0x167af8[_0x26148a(0x1268)](_0x26148a(0x2681),{'fields':_0x26148a(0x527),'userProfileId':_0x4550e1[_0x26148a(0x808)]()[_0x26148a(0x21ac)],'sectionId':0x2c6});}]},'authenticate':!![],'permissionId':0x2c6})[_0x342877(0x14f2)](_0x342877(0x3d6),{'url':_0x342877(0x23f8),'controller':_0x342877(0x1340),'templateUrl':_0x407e28,'resolve':{'pauses':[_0x342877(0x107c),function(_0x23d53e){const _0x1e4f05=_0x342877;return _0x23d53e[_0x1e4f05(0x1268)](_0x1e4f05(0x1fae),{'nolimit':!![]});}],'agents':['apiResolver','Auth',function(_0x492086,_0x4e3223){const _0x4afd51=_0x342877;return _0x4e3223['hasRole'](_0x4afd51(0x333))?_0x492086['resolve'](_0x4afd51(0x142c),{'fields':_0x4afd51(0x1956),'role':_0x4afd51(0x11ae),'sort':_0x4afd51(0x15c),'nolimit':!![]}):_0x492086['resolve'](_0x4afd51(0x1758),{'id':_0x4e3223[_0x4afd51(0x808)]()['userProfileId'],'section':_0x4afd51(0x2132),'fields':_0x4afd51(0x1956),'role':_0x4afd51(0x11ae),'sort':_0x4afd51(0x15c),'nolimit':!![]});}],'userProfile':[_0x342877(0x107c),_0x342877(0xdcf),function(_0x40c954,_0x4348fb){const _0x2fe3d3=_0x342877;return _0x4348fb[_0x2fe3d3(0x4de)](_0x2fe3d3(0x333))?null:_0x40c954[_0x2fe3d3(0x1268)](_0x2fe3d3(0x6e3),{'fields':_0x2fe3d3(0x10d2),'id':_0x4348fb[_0x2fe3d3(0x808)]()[_0x2fe3d3(0x21ac)]});}],'userProfileSection':['apiResolver',_0x342877(0xdcf),function(_0x4611fe,_0x535bfa){const _0xefe928=_0x342877;return _0x535bfa[_0xefe928(0x4de)](_0xefe928(0x333))?null:_0x4611fe[_0xefe928(0x1268)](_0xefe928(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x535bfa[_0xefe928(0x808)]()[_0xefe928(0x21ac)],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0x5a2f17){return _0x5a2f17['resolve']('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x2c6})[_0x342877(0x14f2)]('app.sms.realtime.queues',{'url':_0x342877(0x16ca),'controller':_0x342877(0x1c8f),'templateUrl':_0x270c15,'resolve':{'queues':[_0x342877(0x107c),_0x342877(0xdcf),function(_0xa1d6b4,_0xc84740){const _0xe44772=_0x342877;return _0xc84740[_0xe44772(0x4de)](_0xe44772(0x333))?_0xa1d6b4['resolve'](_0xe44772(0x1494),{'type':_0xe44772(0x12a4),'sort':_0xe44772(0x260c),'limit':0xa,'offset':0x0}):_0xa1d6b4[_0xe44772(0x1268)](_0xe44772(0x1758),{'id':_0xc84740[_0xe44772(0x808)]()[_0xe44772(0x21ac)],'section':_0xe44772(0x1272),'channel':_0xe44772(0x10aa),'type':_0xe44772(0x12a4),'sort':_0xe44772(0x260c),'limit':0xa,'page':0x1});}],'userProfile':[_0x342877(0x107c),_0x342877(0xdcf),function(_0x66c3a2,_0x2f0098){const _0x2f3a6f=_0x342877;return _0x2f0098[_0x2f3a6f(0x4de)]('admin')?null:_0x66c3a2['resolve'](_0x2f3a6f(0x6e3),{'fields':_0x2f3a6f(0x10d2),'id':_0x2f0098[_0x2f3a6f(0x808)]()['userProfileId']});}],'userProfileSection':[_0x342877(0x107c),'Auth',function(_0x2e4aca,_0x54d874){const _0x314b91=_0x342877;return _0x54d874[_0x314b91(0x4de)](_0x314b91(0x333))?null:_0x2e4aca[_0x314b91(0x1268)](_0x314b91(0x2681),{'fields':_0x314b91(0x527),'userProfileId':_0x54d874[_0x314b91(0x808)]()[_0x314b91(0x21ac)],'sectionId':0x2bd});}],'rpcQueues':[_0x342877(0x107c),function(_0x4bd4fc){return _0x4bd4fc['resolve']('rpc@getSmsQueues');}]},'authenticate':!![],'permissionId':0x2c6});}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x956),[])['config'](_0x13bdc5)[_0x49a1e3(0x38e)]('AgentsSmsRealtimeController',_0x721622)['controller']('QueuesSmsRealtimeController',_0x393712)[_0x49a1e3(0x646)](_0x49a1e3(0x1f8c),_0x1cee3f)[_0x49a1e3(0x38e)](_0x49a1e3(0x2805),_0x14d4d5);;const _0x2d67ba=_0x2e4a48['p']+_0x49a1e3(0x1704);;const _0x36936c=_0x2e4a48['p']+_0x49a1e3(0x79d);;const _0x4ad43b=_0x2e4a48['p']+_0x49a1e3(0x1136);;const _0x212169=_0x2e4a48['p']+_0x49a1e3(0x1ac8);;_0x370a9a[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),'smsAccounts',_0x49a1e3(0x1512),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'crudPermissions'];function _0x370a9a(_0x13cd3b,_0x4a85eb,_0x5aec90,_0x44ba3c,_0x41da2c,_0x2ede58,_0x528566,_0x5755ab,_0x1fc921,_0x399f4c,_0x108f10,_0x1c7595,_0x4f4d7a,_0x683758){const _0x5c4457=_0x49a1e3,_0x32ab32=this;_0x32ab32[_0x5c4457(0x1d3d)]=_0x108f10[_0x5c4457(0x808)](),_0x32ab32[_0x5c4457(0xbae)]=[],_0x32ab32['setting']=_0x4f4d7a,_0x32ab32[_0x5c4457(0x1947)]=_0x1c7595,_0x32ab32['crudPermissions']=_0x683758,_0x32ab32[_0x5c4457(0x6c2)]={},_0x32ab32[_0x5c4457(0xccc)]=_0x32ab32[_0x5c4457(0x28d6)]&&_0x32ab32['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x32ab32[_0x5c4457(0x2021)]=_0x5c4457(0x1757),_0x32ab32[_0x5c4457(0x1512)]=angular[_0x5c4457(0x289e)](_0x1fc921),_0x32ab32[_0x5c4457(0x205)]=_0x5755ab,_0x32ab32[_0x5c4457(0x1ce7)]=![];!_0x32ab32[_0x5c4457(0x1512)]&&(_0x32ab32[_0x5c4457(0x1512)]={'remote':_0x5aec90[_0x5c4457(0x48e)]()+'://'+_0x5aec90['host']()+(_0x5aec90[_0x5c4457(0x23f2)]()?':'+_0x5aec90['port']():''),'type':_0x5c4457(0x18eb),'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x32ab32['title']=_0x5c4457(0xa07),_0x32ab32[_0x5c4457(0x1ce7)]=!![]);_0x4a85eb['params']['id']&&(_0x32ab32[_0x5c4457(0x1512)][_0x5c4457(0x1be5)]=_0x4a85eb[_0x5c4457(0x1b48)]['id']);_0x32ab32['addNewSmsAccount']=_0x14e88d,_0x32ab32[_0x5c4457(0x920)]=_0x220bea,_0x32ab32[_0x5c4457(0xc7f)]=_0x4ed7df,_0x32ab32[_0x5c4457(0x1605)]=_0x4da30,_0x32ab32[_0x5c4457(0x16cb)]=_0xfe9fb6,_0x108f10[_0x5c4457(0x4de)]('admin')?_0x399f4c[_0x5c4457(0x19f8)][_0x5c4457(0x896)]({'fields':'id,name','sort':'name'})[_0x5c4457(0x15e7)][_0x5c4457(0x64a)](function(_0x53d551){const _0x5a7293=_0x5c4457;_0x32ab32['lists']=_0x53d551[_0x5a7293(0x28b8)]||[];})['catch'](function(_0x25fa6e){const _0x474c5e=_0x5c4457;_0x528566[_0x474c5e(0x1bd0)]({'title':_0x25fa6e[_0x474c5e(0x10b3)]?_0x474c5e(0x575)+_0x25fa6e[_0x474c5e(0x10b3)]+_0x474c5e(0x21db)+_0x25fa6e[_0x474c5e(0x2115)]:_0x474c5e(0x1ed6),'msg':_0x25fa6e[_0x474c5e(0x1c52)]?JSON[_0x474c5e(0x2317)](_0x25fa6e[_0x474c5e(0x1c52)]):_0x25fa6e[_0x474c5e(0x2915)]()});}):_0x399f4c[_0x5c4457(0x19f8)][_0x5c4457(0x896)]({'fields':'id,name','sort':_0x5c4457(0x2494)})[_0x5c4457(0x15e7)][_0x5c4457(0x64a)](function(_0x26b2f8){const _0x5d7ab9=_0x5c4457;_0x32ab32[_0x5d7ab9(0x974)]=_0x26b2f8[_0x5d7ab9(0x28b8)]||[];})['then'](function(){const _0x181fd9=_0x5c4457;return _0x399f4c[_0x181fd9(0x16b2)][_0x181fd9(0x896)]({'userProfileId':_0x32ab32[_0x181fd9(0x1d3d)][_0x181fd9(0x21ac)],'sectionId':0x12d})['$promise'];})[_0x5c4457(0x64a)](function(_0x1158c3){const _0x3d7306=_0x5c4457,_0x51640c=_0x1158c3&&_0x1158c3[_0x3d7306(0x28b8)]?_0x1158c3[_0x3d7306(0x28b8)][0x0]:null;if(!_0x51640c){const _0x241364=[];let _0x55b4ad=null;_0x32ab32['smsAccount']&&(_0x55b4ad=_0x28c606()['find'](_0x32ab32['lists'],{'id':Number(_0x32ab32[_0x3d7306(0x1512)][_0x3d7306(0x869)])}));for(let _0x4fbc3d=0x0;_0x4fbc3d<_0x32ab32[_0x3d7306(0x974)][_0x3d7306(0x1b9e)];_0x4fbc3d++){_0x55b4ad&&_0x32ab32[_0x3d7306(0x974)][_0x4fbc3d]['id']===_0x55b4ad['id']&&(_0x32ab32[_0x3d7306(0x974)][_0x4fbc3d]['canSelect']=![],_0x241364[_0x3d7306(0x1954)](_0x32ab32[_0x3d7306(0x974)][_0x4fbc3d]));}_0x32ab32['lists']=_0x241364;}else{if(!_0x51640c[_0x3d7306(0x11da)])return _0x399f4c[_0x3d7306(0x1617)]['get']({'sectionId':_0x51640c['id']})[_0x3d7306(0x15e7)][_0x3d7306(0x64a)](function(_0xdc3618){const _0x1f6672=_0x3d7306,_0x3a51c1=_0x28c606()[_0x1f6672(0x1de5)](_0xdc3618[_0x1f6672(0x28b8)],function(_0x252810){const _0x5805fc=_0x1f6672;return _0x28c606()[_0x5805fc(0x27bc)](_0x32ab32['lists'],{'id':_0x252810[_0x5805fc(0x145)]});});let _0x684d3d=null;_0x32ab32['smsAccount']&&(_0x684d3d=_0x28c606()[_0x1f6672(0x27bc)](_0x32ab32['lists'],{'id':Number(_0x32ab32['smsAccount'][_0x1f6672(0x869)])}));if(_0x684d3d&&!_0x28c606()['some'](_0x3a51c1,['id',_0x684d3d['id']])){const _0x5cb2a6=_0x28c606()['find'](_0x32ab32[_0x1f6672(0x974)],{'id':_0x684d3d['id']});_0x5cb2a6['canSelect']=![],_0x3a51c1[_0x1f6672(0x1954)](_0x5cb2a6);}_0x32ab32[_0x1f6672(0x974)]=_0x3a51c1;});}})[_0x5c4457(0x20cd)](function(_0x51b288){const _0x59ed8a=_0x5c4457;_0x528566[_0x59ed8a(0x1bd0)]({'title':_0x51b288['status']?_0x59ed8a(0x575)+_0x51b288[_0x59ed8a(0x10b3)]+_0x59ed8a(0x21db)+_0x51b288[_0x59ed8a(0x2115)]:_0x59ed8a(0x1beb),'msg':_0x51b288[_0x59ed8a(0x1c52)]?JSON[_0x59ed8a(0x2317)](_0x51b288[_0x59ed8a(0x1c52)]):_0x51b288[_0x59ed8a(0x2915)]()});});function _0x14e88d(){const _0x3252d5=_0x5c4457;_0x32ab32[_0x3252d5(0xbae)]=[],_0x399f4c[_0x3252d5(0x1512)][_0x3252d5(0x2479)](_0x32ab32['smsAccount'])[_0x3252d5(0x15e7)]['then'](function(_0x45f42b){const _0x595a2a=_0x3252d5;_0x32ab32['smsAccounts']['unshift'](_0x45f42b[_0x595a2a(0x14f8)]()),_0x528566[_0x595a2a(0x1339)]({'title':_0x595a2a(0x2182),'msg':_0x32ab32['smsAccount']['name']?_0x32ab32['smsAccount'][_0x595a2a(0x2494)]+_0x595a2a(0x258d):''}),_0xfe9fb6(_0x45f42b);})[_0x3252d5(0x20cd)](function(_0x68e9a2){const _0x43ab72=_0x3252d5;if(_0x68e9a2['data']&&_0x68e9a2['data'][_0x43ab72(0xbae)]&&_0x68e9a2[_0x43ab72(0x1c52)][_0x43ab72(0xbae)][_0x43ab72(0x1b9e)]){_0x32ab32[_0x43ab72(0xbae)]=_0x68e9a2[_0x43ab72(0x1c52)][_0x43ab72(0xbae)]||[{'message':_0x68e9a2[_0x43ab72(0x2915)](),'type':_0x43ab72(0x114)}];for(let _0x5c8809=0x0;_0x5c8809<_0x68e9a2[_0x43ab72(0x1c52)][_0x43ab72(0xbae)][_0x43ab72(0x1b9e)];_0x5c8809+=0x1){_0x528566['error']({'title':_0x68e9a2[_0x43ab72(0x1c52)][_0x43ab72(0xbae)][_0x5c8809][_0x43ab72(0x2185)],'msg':_0x68e9a2[_0x43ab72(0x1c52)][_0x43ab72(0xbae)][_0x5c8809]['message']});}}else _0x528566[_0x43ab72(0x1bd0)]({'title':_0x68e9a2['status']?'API:'+_0x68e9a2[_0x43ab72(0x10b3)]+_0x43ab72(0x21db)+_0x68e9a2['statusText']:_0x43ab72(0x114),'msg':_0x68e9a2[_0x43ab72(0x1c52)]?JSON[_0x43ab72(0x2317)](_0x68e9a2[_0x43ab72(0x1c52)][_0x43ab72(0x18ca)]):_0x68e9a2[_0x43ab72(0x2915)]()});});}function _0x220bea(){const _0x2d2597=_0x5c4457;_0x32ab32[_0x2d2597(0xbae)]=[],_0x399f4c[_0x2d2597(0x1512)]['update']({'id':_0x32ab32['smsAccount']['id']},_0x32ab32['smsAccount'])[_0x2d2597(0x15e7)][_0x2d2597(0x64a)](function(_0x2b70bb){const _0x13056a=_0x2d2597,_0x19c499=_0x28c606()['find'](_0x32ab32[_0x13056a(0x205)],{'id':_0x2b70bb['id']});_0x19c499&&_0x28c606()['merge'](_0x19c499,_0x28c606()[_0x13056a(0x27bb)](_0x2b70bb[_0x13056a(0x14f8)](),_0x28c606()[_0x13056a(0x1ec6)](_0x19c499))),_0x528566[_0x13056a(0x1339)]({'title':_0x13056a(0x676),'msg':_0x32ab32[_0x13056a(0x1512)][_0x13056a(0x2494)]?_0x32ab32[_0x13056a(0x1512)][_0x13056a(0x2494)]+_0x13056a(0x271):''}),_0xfe9fb6(_0x2b70bb);})[_0x2d2597(0x20cd)](function(_0x45ac65){const _0xd54a88=_0x2d2597;if(_0x45ac65['data']&&_0x45ac65[_0xd54a88(0x1c52)][_0xd54a88(0xbae)]&&_0x45ac65[_0xd54a88(0x1c52)][_0xd54a88(0xbae)][_0xd54a88(0x1b9e)]){_0x32ab32['errors']=_0x45ac65[_0xd54a88(0x1c52)]['errors']||[{'message':_0x45ac65[_0xd54a88(0x2915)](),'type':_0xd54a88(0x1c85)}];for(let _0x148d14=0x0;_0x148d14<_0x45ac65[_0xd54a88(0x1c52)]['errors'][_0xd54a88(0x1b9e)];_0x148d14++){_0x528566['error']({'title':_0x45ac65[_0xd54a88(0x1c52)]['errors'][_0x148d14][_0xd54a88(0x2185)],'msg':_0x45ac65[_0xd54a88(0x1c52)][_0xd54a88(0xbae)][_0x148d14][_0xd54a88(0x18ca)]});}}else _0x528566[_0xd54a88(0x1bd0)]({'title':_0x45ac65[_0xd54a88(0x10b3)]?_0xd54a88(0x575)+_0x45ac65[_0xd54a88(0x10b3)]+'\x20-\x20'+_0x45ac65['statusText']:'api.smsAccount.update','msg':_0x45ac65[_0xd54a88(0x1c52)]?JSON[_0xd54a88(0x2317)](_0x45ac65[_0xd54a88(0x1c52)][_0xd54a88(0x18ca)]):_0x45ac65[_0xd54a88(0x2915)]()});});}function _0x4ed7df(_0x2ea10d){const _0x353df9=_0x5c4457;_0x32ab32[_0x353df9(0xbae)]=[];const _0x36bfef=_0x44ba3c[_0x353df9(0x856)]()[_0x353df9(0x2021)](_0x353df9(0x103a))[_0x353df9(0x12b8)](_0x353df9(0xbf3))['ariaLabel']('Delete\x20SmsAccount')['ok'](_0x353df9(0x2664))['cancel']('Cancel')[_0x353df9(0x2283)](_0x2ea10d);_0x44ba3c[_0x353df9(0xa60)](_0x36bfef)[_0x353df9(0x64a)](function(){const _0x425d6c=_0x353df9;_0x399f4c['smsAccount'][_0x425d6c(0xabd)]({'id':_0x32ab32[_0x425d6c(0x1512)]['id']})[_0x425d6c(0x15e7)][_0x425d6c(0x64a)](function(){const _0x187ef5=_0x425d6c;_0x28c606()['remove'](_0x32ab32['smsAccounts'],{'id':_0x32ab32['smsAccount']['id']}),_0x528566[_0x187ef5(0x1339)]({'title':_0x187ef5(0x2bc),'msg':(_0x32ab32[_0x187ef5(0x1512)][_0x187ef5(0x2494)]||_0x187ef5(0x1512))+'\x20has\x20been\x20deleted!'}),_0xfe9fb6(_0x32ab32[_0x187ef5(0x1512)]);})[_0x425d6c(0x20cd)](function(_0xb1a1ce){const _0x4c41a5=_0x425d6c;if(_0xb1a1ce[_0x4c41a5(0x1c52)]&&_0xb1a1ce[_0x4c41a5(0x1c52)][_0x4c41a5(0xbae)]&&_0xb1a1ce[_0x4c41a5(0x1c52)][_0x4c41a5(0xbae)]['length']){_0x32ab32[_0x4c41a5(0xbae)]=_0xb1a1ce[_0x4c41a5(0x1c52)][_0x4c41a5(0xbae)]||[{'message':_0xb1a1ce['toString'](),'type':'api.smsAccount.delete'}];for(let _0x4e51a4=0x0;_0x4e51a4<_0xb1a1ce['data'][_0x4c41a5(0xbae)][_0x4c41a5(0x1b9e)];_0x4e51a4++){_0x528566[_0x4c41a5(0x1bd0)]({'title':_0xb1a1ce['data'][_0x4c41a5(0xbae)][_0x4e51a4][_0x4c41a5(0x2185)],'msg':_0xb1a1ce['data']['errors'][_0x4e51a4][_0x4c41a5(0x18ca)]});}}else _0x528566[_0x4c41a5(0x1bd0)]({'title':_0xb1a1ce['status']?_0x4c41a5(0x575)+_0xb1a1ce['status']+'\x20-\x20'+_0xb1a1ce['statusText']:_0x4c41a5(0xb4a),'msg':_0xb1a1ce['data']?JSON[_0x4c41a5(0x2317)](_0xb1a1ce[_0x4c41a5(0x1c52)][_0x4c41a5(0x18ca)]):_0xb1a1ce['message']||_0xb1a1ce[_0x4c41a5(0x2915)]()});});},function(){});}function _0x4da30(_0x423999){return _0x423999===null?undefined:new Date(_0x423999);}function _0xfe9fb6(_0x1ce36a){_0x44ba3c['hide'](_0x1ce36a);}}const _0x3e8412=_0x370a9a;;const _0x217ce6=_0x2e4a48['p']+_0x49a1e3(0x110a);;const _0xb6f785=_0x2e4a48['p']+_0x49a1e3(0x1250);;const _0x2807b0=_0x2e4a48['p']+_0x49a1e3(0x7eb);;const _0x43673d=_0x2e4a48['p']+_0x49a1e3(0x287c);;const _0x4a5cfa=_0x2e4a48['p']+_0x49a1e3(0x108b);;const _0x4985ce=_0x2e4a48['p']+_0x49a1e3(0xd31);;const _0x3db90a=_0x2e4a48['p']+_0x49a1e3(0x3c9);;const _0x4acc25=_0x2e4a48['p']+_0x49a1e3(0x1f0d);;const _0x301a58=_0x2e4a48['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/noop/dialog.html/dialog.html';;const _0x10661b=_0x2e4a48['p']+_0x49a1e3(0x62a);;const _0x10d428=_0x2e4a48['p']+_0x49a1e3(0x752);;const _0x3ec3d8=_0x2e4a48['p']+_0x49a1e3(0x2ea);;_0x4c1e05[_0x49a1e3(0x1e73)]=[_0x49a1e3(0xa19),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x680),_0x49a1e3(0xdcf)];const _0xb17685={'agent':_0x217ce6,'amazonlex':_0xb6f785,'autoreply':_0x2807b0,'close':_0x43673d,'dialogflow':_0x4a5cfa,'gotoif':_0x4985ce,'gotop':_0x3db90a,'interval':_0x4acc25,'noop':_0x301a58,'queue':_0x10661b,'system':_0x10d428,'tag':_0x3ec3d8};function _0x4c1e05(_0x4e2b6f,_0x42be83,_0x3ac7ee,_0x2faca1,_0x139039){const _0x3e1135=_0x49a1e3,_0xe6f332=this;_0xe6f332[_0x3e1135(0x1d3d)]=_0x139039['getCurrentUser'](),_0xe6f332['smsAccount']={},_0xe6f332[_0x3e1135(0x946)]={'count':0x0,'rows':[]},_0xe6f332[_0x3e1135(0x3b7)]=[],_0xe6f332[_0x3e1135(0x402)],_0xe6f332[_0x3e1135(0x289a)]={'sort':_0x3e1135(0x1095)},_0xe6f332[_0x3e1135(0x1018)]=_0x28c606()[_0x3e1135(0x19d2)](_0x28c606()['sortBy']([{'app':_0x3e1135(0x1f03),'appType':'interval','types':[_0x3e1135(0xa66),'custom',_0x3e1135(0x2764)],'fields':[],'isApp':![]},{'app':_0x3e1135(0xbb6),'appType':_0x3e1135(0xbb6),'type':_0x3e1135(0xbb6),'icon':_0x3e1135(0xd46),'interval':_0x3e1135(0x2145),'required':!![],'isApp':!![],'fields':[{'title':'Value','name':'value','type':_0x3e1135(0x39b),'param':0x0}]},{'app':_0x3e1135(0x1f06),'appType':_0x3e1135(0x1f06),'type':_0x3e1135(0x1f06),'icon':_0x3e1135(0xd46),'interval':_0x3e1135(0x2145),'required':!![],'isApp':!![],'extraApi':[{'name':_0x3e1135(0x145c),'field':{'name':_0x3e1135(0xefb),'key':_0x3e1135(0x2494)},'route':_0x3e1135(0xefb),'filters':{'fields':_0x3e1135(0x1427),'sort':_0x3e1135(0x2494),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x3e1135(0x6c7),'name':_0x3e1135(0xf42),'type':_0x3e1135(0x39b),'required':!![],'param':0x0},{'title':_0x3e1135(0x1538),'name':_0x3e1135(0xefb),'type':_0x3e1135(0x26e8),'values':_0x3e1135(0x145c),'value':_0x3e1135(0x1c5a),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':_0x3e1135(0x8c8)}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x3e1135(0x2046),'appType':_0x3e1135(0x2046),'type':_0x3e1135(0x1e5a),'icon':_0x3e1135(0xd46),'interval':_0x3e1135(0x2145),'isApp':!![],'fields':[{'title':_0x3e1135(0x27f2),'name':'priority','type':_0x3e1135(0x2113),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x3e1135(0x614),'appType':'gotoif','type':_0x3e1135(0x614),'icon':_0x3e1135(0xd46),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'Condition','name':_0x3e1135(0xeea),'type':_0x3e1135(0x39b),'required':!![],'param':0x0},{'title':_0x3e1135(0x108f),'name':_0x3e1135(0x108f),'type':_0x3e1135(0x2113),'min':0x1,'required':!![],'param':0x1},{'title':_0x3e1135(0x1d32),'name':_0x3e1135(0x1d32),'type':_0x3e1135(0x2113),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x3e1135(0x1e4e),'appType':_0x3e1135(0x1e4e),'foreignKey':_0x3e1135(0x1e24),'type':_0x3e1135(0x1e4e),'icon':_0x3e1135(0xd46),'interval':_0x3e1135(0x2145),'isApp':!![],'extraApi':[{'name':_0x3e1135(0x1c06),'field':{'name':_0x3e1135(0x1e4e),'key':'name'},'route':_0x3e1135(0x1957),'filters':{'fields':'id,name,type','sort':_0x3e1135(0x2494),'nolimit':!![]},'permissions':{'section':0x2bd}}],'fields':[{'title':'Queue','name':_0x3e1135(0x1e4e),'type':'apiselect','values':'queues','value':_0x3e1135(0x5ca),'option':_0x3e1135(0x5ca),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':_0x3e1135(0x16d),'type':_0x3e1135(0x2113),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x3e1135(0x11ae),'appType':_0x3e1135(0x11ae),'type':_0x3e1135(0x11ae),'foreignKey':_0x3e1135(0x246c),'icon':_0x3e1135(0xd46),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x3e1135(0xd77),'field':{'name':'agent','key':_0x3e1135(0x2494)},'route':'user','filters':{'fields':_0x3e1135(0x1427),'sort':_0x3e1135(0x2494),'nolimit':!![],'role':_0x3e1135(0x11ae)},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':_0x3e1135(0x11ae),'type':_0x3e1135(0x26e8),'values':_0x3e1135(0xd77),'value':_0x3e1135(0x1ddb),'option':_0x3e1135(0x1ddb),'required':!![],'param':0x0},{'title':_0x3e1135(0x66e),'name':_0x3e1135(0x16d),'type':_0x3e1135(0x2113),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':'autoreply','appType':_0x3e1135(0x21a9),'type':'autoreply','icon':'icon-apps','interval':_0x3e1135(0x2145),'isApp':!![],'fields':[{'title':'times','name':_0x3e1135(0x95f),'type':'select','defaultValue':'1','values':[{'option':_0x3e1135(0x1abb),'value':'1'},{'option':_0x3e1135(0xfdd),'value':'0'}],'required':!![],'param':0x0},{'title':_0x3e1135(0x1378),'name':_0x3e1135(0x39b),'type':'textarea','required':!![],'param':0x1}]},{'app':_0x3e1135(0x67b),'appType':_0x3e1135(0x67b),'type':_0x3e1135(0x67b),'icon':'icon-apps','interval':_0x3e1135(0x2145),'isApp':!![],'fields':[{'title':'Disposition','name':_0x3e1135(0x168b),'type':'text','required':!![],'param':0x0}]},{'app':'tag','appType':'tag','type':_0x3e1135(0xac8),'foreignKey':_0x3e1135(0x923),'icon':_0x3e1135(0xd46),'interval':_0x3e1135(0x2145),'isApp':!![],'extraApi':[{'name':'tags','field':{'name':_0x3e1135(0xac8),'key':_0x3e1135(0x2494)},'route':_0x3e1135(0xac8),'filters':{'fields':_0x3e1135(0x1427),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x3e1135(0x1e9f),'name':'tag','type':'apiselect','values':_0x3e1135(0x16a6),'value':_0x3e1135(0xcef),'option':_0x3e1135(0xcef),'required':!![],'param':0x0}]},{'app':'dialogflow','appType':_0x3e1135(0x1084),'type':_0x3e1135(0x1084),'icon':_0x3e1135(0xd46),'interval':_0x3e1135(0x2145),'isApp':!![],'fields':[{'title':_0x3e1135(0x2367),'name':'key','type':_0x3e1135(0x39b),'required':!![],'param':0x0},{'title':_0x3e1135(0x1cbd),'name':_0x3e1135(0x1cbd),'type':_0x3e1135(0x2926),'defaultValue':_0x3e1135(0x160),'values':[{'option':_0x3e1135(0x5f1),'value':'\x27da\x27'},{'option':'English','value':_0x3e1135(0x160)},{'option':_0x3e1135(0x10a4),'value':'\x27de\x27'},{'option':'Italian','value':_0x3e1135(0x1517)},{'option':_0x3e1135(0x656),'value':_0x3e1135(0x17aa)},{'option':'French','value':_0x3e1135(0x249a)},{'option':_0x3e1135(0x2079),'value':_0x3e1135(0xfce)},{'option':'Japanese','value':'\x27ja\x27'},{'option':_0x3e1135(0x209d),'value':_0x3e1135(0x1644)},{'option':_0x3e1135(0x183),'value':_0x3e1135(0x87f)},{'option':_0x3e1135(0x22d3),'value':_0x3e1135(0x1476)},{'option':_0x3e1135(0x1190),'value':_0x3e1135(0x70b)},{'option':'Portuguese\x20(Nrazilian)','value':_0x3e1135(0x1358)},{'option':_0x3e1135(0x21f6),'value':_0x3e1135(0x86f)},{'option':'Swedish','value':_0x3e1135(0x15b)},{'option':_0x3e1135(0x17e8),'value':'\x27th\x27'},{'option':'Ukrainian','value':'\x27uk\x27'},{'option':_0x3e1135(0x133e),'value':_0x3e1135(0x784)},{'option':_0x3e1135(0x14aa),'value':_0x3e1135(0x34f)},{'option':'Chinese\x20(Traditional)','value':_0x3e1135(0x188d)}],'required':!![],'param':0x1},{'title':_0x3e1135(0x31b),'name':_0x3e1135(0x31b),'type':_0x3e1135(0x1e3c),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x3e1135(0xda3),'appType':'dialogflowv2','type':_0x3e1135(0x1b1a),'icon':_0x3e1135(0xd46),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x3e1135(0x4fe),'name':_0x3e1135(0xbfd),'type':_0x3e1135(0x39b),'required':!![],'param':0x0},{'title':_0x3e1135(0x37c),'name':_0x3e1135(0x4b2),'type':_0x3e1135(0x39b),'required':!![],'param':0x1},{'title':_0x3e1135(0xda2),'name':_0x3e1135(0x1b1b),'type':_0x3e1135(0x1e3c),'required':!![],'param':0x2},{'title':_0x3e1135(0x1cbd),'name':_0x3e1135(0x1cbd),'type':'select','defaultValue':_0x3e1135(0x160),'values':[{'value':_0x3e1135(0x34f),'option':_0x3e1135(0x25aa)},{'value':_0x3e1135(0x784),'option':_0x3e1135(0x133e)},{'value':_0x3e1135(0x188d),'option':_0x3e1135(0x263a)},{'value':_0x3e1135(0x2287),'option':'Danish'},{'value':_0x3e1135(0x87f),'option':_0x3e1135(0x183)},{'value':'\x27en\x27','option':_0x3e1135(0x1230)},{'value':_0x3e1135(0x2863),'option':_0x3e1135(0x1c1f)},{'value':_0x3e1135(0x20a5),'option':_0x3e1135(0x24bc)},{'value':'\x27en-GB\x27','option':'English\x20(Great\x20Britain)'},{'value':_0x3e1135(0x28e0),'option':_0x3e1135(0x2196)},{'value':_0x3e1135(0x2571),'option':_0x3e1135(0x1a41)},{'value':_0x3e1135(0x249a),'option':_0x3e1135(0x976)},{'value':'\x27fr-CA\x27','option':_0x3e1135(0xee8)},{'value':_0x3e1135(0x23f3),'option':_0x3e1135(0xf9a)},{'value':_0x3e1135(0x746),'option':_0x3e1135(0x10a4)},{'value':_0x3e1135(0x26a7),'option':'Hindi'},{'value':_0x3e1135(0xfce),'option':_0x3e1135(0x2079)},{'value':_0x3e1135(0x1517),'option':_0x3e1135(0x28bf)},{'value':_0x3e1135(0x295),'option':_0x3e1135(0xf5c)},{'value':'\x27ko\x27','option':'Korean'},{'value':_0x3e1135(0x1476),'option':'Norwegian'},{'value':_0x3e1135(0x1f4b),'option':_0x3e1135(0x17c4)},{'value':_0x3e1135(0xe14),'option':'Portuguese\x20(Brazil)'},{'value':'\x27pt-PT\x27','option':'Portuguese\x20(Portugal)'},{'value':_0x3e1135(0x86f),'option':'Russian'},{'value':'\x27es\x27','option':_0x3e1135(0x656)},{'value':'\x27es-419\x27','option':'Spanish\x20(Latin\x20America)'},{'value':_0x3e1135(0xcae),'option':'Spanish\x20(Spain)'},{'value':_0x3e1135(0x15f8),'option':'Swedish'},{'value':_0x3e1135(0x5aa),'option':_0x3e1135(0x17e8)},{'value':'\x27tr\x27','option':'Turkish'},{'value':_0x3e1135(0x4bf),'option':_0x3e1135(0xd44)}],'required':!![],'param':0x3},{'title':_0x3e1135(0x31b),'name':_0x3e1135(0x31b),'type':_0x3e1135(0x1e3c),'maxlength':0xff,'param':0x4,'help':!![]}]},{'app':_0x3e1135(0x290d),'appType':_0x3e1135(0x290d),'type':'amazonlex','icon':_0x3e1135(0xd46),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x3e1135(0x1466),'name':'accesskeyid','type':'text','required':!![],'param':0x0},{'title':_0x3e1135(0x1b1),'name':_0x3e1135(0x1b1),'type':_0x3e1135(0x39b),'required':!![],'param':0x1},{'title':'lexregion','name':_0x3e1135(0x17a2),'type':'select','defaultValue':_0x3e1135(0x21de),'values':[{'option':_0x3e1135(0x3f1),'value':_0x3e1135(0x21de)},{'option':'US\x20West\x20(Oregon)','value':'\x27us-west-2\x27'},{'option':_0x3e1135(0xdda),'value':_0x3e1135(0x28f4)},{'option':'Asia\x20Pacific\x20(Sydney)','value':_0x3e1135(0x2504)}],'required':!![],'param':0x2},{'title':_0x3e1135(0x2797),'name':'botname','type':_0x3e1135(0x39b),'required':!![],'param':0x3},{'title':_0x3e1135(0x31b),'name':_0x3e1135(0x31b),'type':'textarea','maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],['app']),{'isApp':![]}),_0xe6f332[_0x3e1135(0x2764)]={'group':{'name':_0x3e1135(0x7f2),'pull':'clone'},'animation':0x64,'sort':![]},_0xe6f332[_0x3e1135(0x221f)]={'group':{'name':_0x3e1135(0x3a8),'put':'opt1'},'animation':0x64,'onAdd':function(_0x5560f9){const _0xc586c3=_0x3e1135;_0x5e8d46(_0x5560f9,_0x5560f9[_0xc586c3(0xa3e)]);},'onSort':function(){_0x1903e6();}},_0xe6f332[_0x3e1135(0x2354)]=_0x2922dd,_0xe6f332[_0x3e1135(0x217e)]=_0x276222,_0xe6f332[_0x3e1135(0xdd0)]=_0x19707e,_0xe6f332['editSmsAccountApp']=_0x5e8d46,_0xe6f332[_0x3e1135(0x2427)]=_0x5c55fb,_0xe6f332[_0x3e1135(0x1d9d)]=_0x2bb3c3,_0xe6f332[_0x3e1135(0x955)]=_0x1ad729,_0xe6f332[_0x3e1135(0x14d0)]=_0x1903e6,_0xe6f332['getIntervals']=_0x513c68;function _0x2922dd(_0x341719,_0xaf95be){const _0x5a7fdf=_0x3e1135;_0xe6f332[_0x5a7fdf(0x1512)]=_0x341719,_0xe6f332['crudPermissions']=typeof _0xaf95be!==_0x5a7fdf(0x19a1)?_0xaf95be:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xe6f332[_0x5a7fdf(0x221f)][_0x5a7fdf(0x1a95)]=!_0xe6f332[_0x5a7fdf(0x402)]['canEdit']?!![]:![],_0xe6f332[_0x5a7fdf(0x289a)]['id']=_0x341719['id'],_0xe6f332['query'][_0x5a7fdf(0x210d)]=!![],_0xe6f332[_0x5a7fdf(0x289a)][_0x5a7fdf(0x13d8)]=!![],_0xe6f332[_0x5a7fdf(0xdd0)](),_0xe6f332['getIntervals']();}function _0x276222(_0xbf2dbf,_0x4db115,_0x34d65d){const _0x557b5b=_0x3e1135,_0x5c5d8f=_0x42be83[_0x557b5b(0x856)]()['title'](_0x557b5b(0x2041))[_0x557b5b(0x33a)](_0x557b5b(0x50b)+_0xbf2dbf[_0x557b5b(0x16e1)]+_0x557b5b(0x26d0)+_0x557b5b(0x4b8))[_0x557b5b(0x213e)](_0x557b5b(0x1260))[_0x557b5b(0x2283)](_0x34d65d)['ok']('OK')[_0x557b5b(0x101a)](_0x557b5b(0x18fd));_0x42be83[_0x557b5b(0xa60)](_0x5c5d8f)[_0x557b5b(0x64a)](function(){const _0x1a49f9=_0x557b5b;_0xe6f332[_0x1a49f9(0x946)]['rows']['splice'](_0x4db115,0x1),_0x1903e6();},function(){const _0x259594=_0x557b5b;console[_0x259594(0x9b4)]('CANCEL');});}function _0x5e8d46(_0x12f722,_0xef755c){const _0x4d45b5=_0x3e1135;if(_0xe6f332[_0x4d45b5(0x946)][_0x4d45b5(0x28b8)][_0x4d45b5(0x1b9e)]){const _0x60d373=_0xe6f332[_0x4d45b5(0x946)]['rows'][_0xef755c]?_0xe6f332[_0x4d45b5(0x946)]['rows'][_0xef755c]:_0xe6f332[_0x4d45b5(0x946)][_0x4d45b5(0x28b8)][0x0],_0x189cf2=(_0x60d373[_0x4d45b5(0x4f4)]||_0x60d373[_0x4d45b5(0x16e1)])['toLowerCase']();_0x42be83['show']({'controller':_0x4d45b5(0x113e)+_0x189cf2+'DialogController','controllerAs':'vm','templateUrl':_0xb17685[_0x189cf2],'parent':angular['element'](_0x3ac7ee[_0x4d45b5(0xb49)]),'targetEvent':_0x12f722,'clickOutsideToClose':!![],'locals':{'smsAccountApp':_0x60d373,'smsAccount':_0xe6f332[_0x4d45b5(0x1512)],'crudPermissions':_0xe6f332[_0x4d45b5(0x402)]}})[_0x4d45b5(0x64a)](function(_0x545337){const _0x150e4d=_0x4d45b5;_0x545337&&(_0x545337['id']?_0xe6f332[_0x150e4d(0x946)][_0x150e4d(0x28b8)][_0xef755c]=_0x545337:_0xe6f332[_0x150e4d(0x946)][_0x150e4d(0x28b8)][_0x150e4d(0x18f0)](_0xef755c,0x0,_0x545337),_0x1903e6());})['catch'](function(_0x2dba86){const _0x100aba=_0x4d45b5;_0x2dba86&&_0x2faca1[_0x100aba(0x1bd0)]({'title':_0x2dba86[_0x100aba(0x10b3)]?'API:'+_0x2dba86['status']+_0x100aba(0x21db)+_0x2dba86[_0x100aba(0x2115)]:_0x100aba(0xd28),'msg':_0x2dba86[_0x100aba(0x1c52)]?JSON[_0x100aba(0x2317)](_0x2dba86[_0x100aba(0x1c52)]):_0x2dba86[_0x100aba(0x2915)]()});});}}function _0x5c55fb(_0x4109d2,_0x279b5e){const _0x3ccb4b=_0x3e1135;if(_0xe6f332[_0x3ccb4b(0x946)][_0x3ccb4b(0x28b8)]['length']){const _0x1466fd=_0xe6f332[_0x3ccb4b(0x946)][_0x3ccb4b(0x28b8)][_0x279b5e]?_0xe6f332[_0x3ccb4b(0x946)][_0x3ccb4b(0x28b8)][_0x279b5e]:_0xe6f332[_0x3ccb4b(0x946)][_0x3ccb4b(0x28b8)][0x0];_0x42be83[_0x3ccb4b(0xa60)]({'controller':_0x3ccb4b(0x1de4),'controllerAs':'vm','templateUrl':_0x4acc25,'parent':angular[_0x3ccb4b(0x1f81)](_0x3ac7ee[_0x3ccb4b(0xb49)]),'targetEvent':_0x4109d2,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x1466fd['interval'],'IntervalId':_0x1466fd[_0x3ccb4b(0xb71)],'application':!![]},'intervals':[],'crudPermissions':_0xe6f332[_0x3ccb4b(0x402)]}})[_0x3ccb4b(0x64a)](function(_0xa39995){const _0x43c917=_0x3ccb4b;_0xa39995&&(_0x1466fd[_0x43c917(0xcfd)]=_0xa39995[_0x43c917(0xcfd)]||'*,*,*,*',_0x1466fd[_0x43c917(0xb71)]=_0xa39995[_0x43c917(0xb71)]||null,_0x1903e6());});}}function _0x1903e6(){const _0x41c0d6=_0x3e1135;let _0x24e292=0x1,_0x5d41e4=[];for(let _0x3edef1=0x0;_0x3edef1<_0xe6f332[_0x41c0d6(0x946)][_0x41c0d6(0x28b8)][_0x41c0d6(0x1b9e)];_0x3edef1++){const _0x14f63b=_0xe6f332['smsAccountApps'][_0x41c0d6(0x28b8)][_0x3edef1],_0x34f79f=[],_0xde1184=[];_0x14f63b[_0x41c0d6(0x15e4)]=_0x14f63b[_0x41c0d6(0xcfd)]!=='*,*,*,*'?[_0x14f63b[_0x41c0d6(0xcfd)]]:_0x14f63b[_0x41c0d6(0xb71)]?_0x28c606()[_0x41c0d6(0x1de5)](_0x28c606()['filter'](_0xe6f332['intervals'][_0x41c0d6(0x28b8)],{'IntervalId':_0x14f63b[_0x41c0d6(0xb71)]}),_0x41c0d6(0xcfd)):[],_0x14f63b[_0x41c0d6(0x139)]=_0xe6f332['smsAccount'][_0x41c0d6(0x139)],_0x14f63b[_0x41c0d6(0x19c8)]=_0xe6f332[_0x41c0d6(0x1512)][_0x41c0d6(0x19c8)],_0x14f63b[_0x41c0d6(0x2185)]&&(_0x14f63b['type']=_0x14f63b[_0x41c0d6(0x2185)][_0x41c0d6(0x2554)]()),_0x14f63b[_0x41c0d6(0x1095)]=_0x34f79f[_0x41c0d6(0x1b9e)]?_0x28c606()['last'](_0x34f79f)[_0x41c0d6(0x1095)]+0x1:_0x24e292,_0x24e292=(_0xde1184[_0x41c0d6(0x1b9e)]?_0x28c606()['last'](_0xde1184)[_0x41c0d6(0x1095)]:_0x14f63b['priority'])+0x1,_0x5d41e4=_0x28c606()[_0x41c0d6(0x2808)](_0x5d41e4,_0x34f79f,[_0x14f63b],_0xde1184);}_0x4e2b6f[_0x41c0d6(0x1512)][_0x41c0d6(0x1c5d)]({'id':_0xe6f332[_0x41c0d6(0x1512)]['id']},_0x28c606()[_0x41c0d6(0x1643)](_0x5d41e4,_0x41c0d6(0x1095)))[_0x41c0d6(0x15e7)]['then'](function(_0xcad655){const _0x20780d=_0x41c0d6;_0xe6f332[_0x20780d(0x946)][_0x20780d(0x28b8)]=_0xcad655[_0x20780d(0x28b8)];})[_0x41c0d6(0x20cd)](function(_0xbb8786){const _0x7307f4=_0x41c0d6;console[_0x7307f4(0x1bd0)](_0xbb8786);});}function _0x2d3cdf(_0x17fe8d){_0xe6f332['smsAccountApps']=_0x17fe8d||{'count':0x0,'rows':[]};}function _0x513c68(){const _0x5f3633=_0x3e1135;return _0x4e2b6f['interval'][_0x5f3633(0x896)]({'fields':'id,interval,IntervalId'})[_0x5f3633(0x15e7)][_0x5f3633(0x64a)](function(_0x840831){const _0xccc572=_0x5f3633;_0xe6f332[_0xccc572(0x15e4)]=_0x840831;})[_0x5f3633(0x20cd)](function(_0x4159eb){const _0xe81551=_0x5f3633;console[_0xe81551(0x1bd0)](_0x4159eb);});}function _0x19707e(){const _0x264c0c=_0x3e1135;_0xe6f332[_0x264c0c(0x1713)]=_0x4e2b6f[_0x264c0c(0x1512)][_0x264c0c(0x42f)](_0xe6f332['query'],_0x2d3cdf)[_0x264c0c(0x15e7)];}function _0x2bb3c3(_0x5ed390){const _0x2457b7=_0x3e1135;_0x28c606()[_0x2457b7(0x21c7)](_0xe6f332[_0x2457b7(0x946)][_0x2457b7(0x28b8)],{'id':_0x5ed390['id']}),_0x1903e6(),_0x2faca1[_0x2457b7(0x1339)]({'title':_0x2457b7(0x2166),'msg':_0x5ed390[_0x2457b7(0x16e1)]?_0x5ed390[_0x2457b7(0x16e1)]+_0x2457b7(0x1fa8):''});}function _0x1ad729(_0x374b96){const _0x42892a=_0x3e1135,_0x5c4131=_0x42be83['confirm']()[_0x42892a(0x2021)](_0x42892a(0x150d))[_0x42892a(0x33a)](_0x42892a(0x50b)+_0xe6f332['selectedSmsAccountApps'][_0x42892a(0x1b9e)]+_0x42892a(0x163e)+_0x42892a(0x4b8))['ariaLabel']('delete\x20applications')[_0x42892a(0x2283)](_0x374b96)['ok']('OK')['cancel']('CANCEL');_0x42be83[_0x42892a(0xa60)](_0x5c4131)[_0x42892a(0x64a)](function(){const _0x2afea0=_0x42892a;_0xe6f332['selectedSmsAccountApps'][_0x2afea0(0x1397)](function(_0x5b7811){const _0x3f0ce2=_0x2afea0;_0x28c606()[_0x3f0ce2(0x21c7)](_0xe6f332['smsAccountApps'][_0x3f0ce2(0x28b8)],{'id':_0x5b7811['id']});}),_0xe6f332[_0x2afea0(0x3b7)]=[],_0x1903e6();});}}const _0x9ad340=_0x4c1e05;;_0x35da5a[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x1512),_0x49a1e3(0x205),_0x49a1e3(0x252e),_0x49a1e3(0x298c),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x35da5a(_0x43531b,_0x39bc3b,_0x49fd15,_0x2e651a,_0x4b3a72,_0x5943b8,_0x13922c,_0x34402e,_0x3ffc37,_0x324738){const _0x47c297=_0x49a1e3,_0x4d41e3=this;_0x4d41e3['currentUser']=_0x3ffc37[_0x47c297(0x808)](),_0x4d41e3['smsAccount']=_0x4b3a72,_0x4d41e3[_0x47c297(0x402)]=_0x324738,_0x4d41e3[_0x47c297(0x252e)]=_0x13922c,_0x4d41e3[_0x47c297(0x23cb)]=[],_0x4d41e3['allowedItems']=[],_0x4d41e3[_0x47c297(0x1f4f)]=[],_0x4d41e3[_0x47c297(0x206b)]=[],_0x4d41e3[_0x47c297(0x24e1)]=[],_0x4d41e3[_0x47c297(0xe9e)]=![],_0x4d41e3['onInit']=_0x1a3bdb,_0x4d41e3['saveAgents']=_0x55c7f1,_0x4d41e3[_0x47c297(0x16cb)]=_0xe52c1f,_0x4d41e3[_0x47c297(0x1eeb)]={'readOnly':!_0x4d41e3[_0x47c297(0x402)]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x47c297(0x2494),'line1':'fullname','line2':[_0x47c297(0x2494),_0x47c297(0xe2f)],'line3':'','labelAll':_0x34402e[_0x47c297(0x2292)](_0x47c297(0x1da4)),'labelSelected':_0x34402e['instant'](_0x47c297(0xcf8)),'transferCallback':function(){const _0x2062ae=_0x47c297,_0x273314=_0x28c606()[_0x2062ae(0x1ad)](_0x4d41e3[_0x2062ae(0x24e1)],_0x4d41e3[_0x2062ae(0x1f4f)],'id');_0x4d41e3[_0x2062ae(0xe9e)]=_0x28c606()[_0x2062ae(0x940)](_0x273314)?![]:!![];}};function _0x1a3bdb(){const _0x2722ce=_0x47c297;return _0x3ffc37[_0x2722ce(0x4de)](_0x2722ce(0x333))?_0x31192f()['catch'](function(_0x17a0fa){const _0x52f7b3=_0x2722ce;_0x49fd15[_0x52f7b3(0x1bd0)]({'title':_0x17a0fa[_0x52f7b3(0x10b3)]?'API:'+_0x17a0fa['status']+_0x52f7b3(0x21db)+_0x17a0fa[_0x52f7b3(0x2115)]:'SYSTEM:GET_AGENTS','msg':_0x17a0fa['status']?JSON[_0x52f7b3(0x2317)](_0x17a0fa[_0x52f7b3(0x1c52)]):_0x17a0fa['toString']()});}):_0x211ec8()['then'](function(_0x19c7a9){const _0x43d1d0=_0x2722ce;return _0x4d41e3[_0x43d1d0(0xa21)]=_0x19c7a9,_0x31192f();})[_0x2722ce(0x20cd)](function(_0x2b3e7a){const _0x1f2bf2=_0x2722ce;_0x49fd15[_0x1f2bf2(0x1bd0)]({'title':_0x2b3e7a[_0x1f2bf2(0x10b3)]?_0x1f2bf2(0x575)+_0x2b3e7a['status']+_0x1f2bf2(0x21db)+_0x2b3e7a['statusText']:_0x1f2bf2(0x554),'msg':_0x2b3e7a[_0x1f2bf2(0x10b3)]?JSON[_0x1f2bf2(0x2317)](_0x2b3e7a[_0x1f2bf2(0x1c52)]):_0x2b3e7a['toString']()});});}function _0x211ec8(){return _0x39bc3b(function(_0x53f2a2,_0x383e6a){const _0x3c3d82=a0_0x4127;_0x2e651a[_0x3c3d82(0x16b2)][_0x3c3d82(0x896)]({'userProfileId':_0x4d41e3[_0x3c3d82(0x1d3d)]['userProfileId'],'name':_0x3c3d82(0x2132)})[_0x3c3d82(0x15e7)][_0x3c3d82(0x64a)](function(_0xcf7219){const _0x27d9c6=_0x3c3d82,_0x2b0b59=_0xcf7219&&_0xcf7219[_0x27d9c6(0x28b8)]?_0xcf7219['rows'][0x0]:null;_0x53f2a2(_0x2b0b59);})['catch'](function(_0x38784e){_0x383e6a(_0x38784e);});});}function _0x31192f(){return _0x39bc3b(function(_0x284b7c,_0x4b658d){const _0x5caebb=a0_0x4127;return _0x178983()['then'](function(_0x5c848d){const _0x2cb47f=a0_0x4127;return _0x4d41e3[_0x2cb47f(0x23cb)]=_0x5c848d[_0x2cb47f(0x28b8)]?_0x5c848d[_0x2cb47f(0x28b8)]:[],_0x3ffc37[_0x2cb47f(0x4de)](_0x2cb47f(0x333))?_0x5c848d:_0x4d41e3[_0x2cb47f(0xa21)]?_0x4d41e3[_0x2cb47f(0xa21)][_0x2cb47f(0x11da)]?_0x5c848d:_0x29a557():null;})[_0x5caebb(0x64a)](function(_0x2fc81a){const _0x5cda30=_0x5caebb,_0x165583=_0x2fc81a&&_0x2fc81a[_0x5cda30(0x28b8)]?_0x2fc81a[_0x5cda30(0x28b8)]:[];return _0x4d41e3[_0x5cda30(0x13d1)]=_0x28c606()[_0x5cda30(0x1de5)](_0x165583,function(_0x5b6587){const _0x25720f=_0x5cda30;return _0x28c606()[_0x25720f(0x27bc)](_0x4d41e3[_0x25720f(0x23cb)],{'id':_0x3ffc37[_0x25720f(0x4de)](_0x25720f(0x333))||_0x4d41e3['section'][_0x25720f(0x11da)]?_0x5b6587['id']:_0x5b6587[_0x25720f(0x145)]});}),_0x4d41e3['startingAllowedItems']=angular['copy'](_0x4d41e3['allowedItems']),_0x4d41e3[_0x5cda30(0x23cb)][_0x5cda30(0x1397)](function(_0x42a4ad){const _0x373a67=_0x5cda30,_0x49f46c=_0x28c606()[_0x373a67(0x27bc)](_0x4d41e3[_0x373a67(0x13d1)],{'id':_0x42a4ad['id']});_0x3ffc37[_0x373a67(0x4de)]('admin')?_0x42a4ad[_0x373a67(0x6f9)]=!![]:_0x42a4ad[_0x373a67(0x6f9)]=typeof _0x49f46c!==_0x373a67(0x19a1)?!![]:![];}),_0x1c2678();})[_0x5caebb(0x64a)](function(_0x4946fe){const _0x34d48b=_0x5caebb,_0x3f84a0=_0x4946fe&&_0x4946fe[_0x34d48b(0x28b8)]?_0x4946fe[_0x34d48b(0x28b8)]:[];_0x4d41e3[_0x34d48b(0x1f4f)]=_0x28c606()[_0x34d48b(0x1de5)](_0x3f84a0,function(_0x3ae05b){const _0x5bc1a6=_0x34d48b,_0x1a6762=_0x28c606()[_0x5bc1a6(0x27bc)](_0x4d41e3[_0x5bc1a6(0x23cb)],{'id':_0x3ae05b['id']});return _0x1a6762[_0x5bc1a6(0x70f)]=_0x3ae05b[_0x5bc1a6(0x12a1)]?_0x5bc1a6(0xcff)+_0x3ae05b['UserSmsAccount'][_0x5bc1a6(0x70f)]:'',_0x1a6762[_0x5bc1a6(0xe2f)]=typeof _0x3ae05b[_0x5bc1a6(0xe2f)]!==_0x5bc1a6(0x19a1)?'<'+_0x3ae05b[_0x5bc1a6(0xe2f)]+'>':'',_0x1a6762;}),_0x4d41e3['startingSelectedItems']=angular[_0x34d48b(0x289e)](_0x4d41e3[_0x34d48b(0x1f4f)]),_0x4d41e3[_0x34d48b(0x1eeb)]['selectedItems']=_0x4d41e3[_0x34d48b(0x1f4f)],_0x4d41e3[_0x34d48b(0x1eeb)][_0x34d48b(0x23cb)]=_0x28c606()[_0x34d48b(0x23e5)](_0x4d41e3[_0x34d48b(0x13d1)],_0x4d41e3[_0x34d48b(0x1eeb)][_0x34d48b(0x1f4f)],'id'),_0x284b7c();})[_0x5caebb(0x20cd)](function(_0x590613){_0x4b658d(_0x590613);});});}function _0x29a557(){return _0x39bc3b(function(_0x4abedf,_0x4eba88){const _0x55c700=a0_0x4127;return _0x2e651a[_0x55c700(0x1617)][_0x55c700(0x896)]({'sectionId':_0x4d41e3[_0x55c700(0xa21)]['id'],'nolimit':!![]})[_0x55c700(0x15e7)][_0x55c700(0x64a)](function(_0xbefc57){_0x4abedf(_0xbefc57);})['catch'](function(_0x285553){_0x4eba88(_0x285553);});});}function _0x1c2678(){return _0x39bc3b(function(_0x4d5f55,_0x51a202){const _0x21b2e7=a0_0x4127;return _0x2e651a[_0x21b2e7(0x1512)][_0x21b2e7(0xa10)]({'id':_0x4d41e3[_0x21b2e7(0x1512)]['id'],'fields':_0x21b2e7(0x2105),'nolimit':!![],'role':_0x21b2e7(0x11ae)})[_0x21b2e7(0x15e7)]['then'](function(_0x4895f5){_0x4d5f55(_0x4895f5);})['catch'](function(_0x2a0f5f){_0x51a202(_0x2a0f5f);});});}function _0x178983(){return _0x39bc3b(function(_0x216fe4,_0x1fa5ed){const _0x23c2bb=a0_0x4127;return _0x2e651a[_0x23c2bb(0x2e8)][_0x23c2bb(0x896)]({'fields':_0x23c2bb(0x2105),'nolimit':!![],'role':_0x23c2bb(0x11ae)})[_0x23c2bb(0x15e7)]['then'](function(_0xc31dd){_0x216fe4(_0xc31dd);})[_0x23c2bb(0x20cd)](function(_0x51e863){_0x1fa5ed(_0x51e863);});});}function _0x1274df(_0x220725){return _0x39bc3b(function(_0x2efe2c,_0x230aae){const _0x39fb9d=a0_0x4127;_0x28c606()['isEmpty'](_0x220725)?_0x2efe2c():_0x2e651a[_0x39fb9d(0x1512)][_0x39fb9d(0x1575)]({'id':_0x4d41e3[_0x39fb9d(0x1512)]['id'],'ids':_0x28c606()[_0x39fb9d(0x1de5)](_0x220725,'id')})[_0x39fb9d(0x15e7)]['then'](function(){_0x2efe2c();})[_0x39fb9d(0x20cd)](function(_0xaa5ad0){_0x230aae(_0xaa5ad0);});});}function _0x501489(_0x418a59){return _0x39bc3b(function(_0x567ad5,_0x4da2fb){const _0x248924=a0_0x4127;_0x28c606()[_0x248924(0x940)](_0x418a59)?_0x567ad5():_0x2e651a['smsAccount']['removeAgents']({'id':_0x4d41e3[_0x248924(0x1512)]['id'],'ids':_0x28c606()['map'](_0x418a59,'id')})[_0x248924(0x15e7)][_0x248924(0x64a)](function(){_0x567ad5();})[_0x248924(0x20cd)](function(_0x6f85d){_0x4da2fb(_0x6f85d);});});}function _0x55c7f1(){const _0x543827=_0x47c297,_0x319728=_0x28c606()[_0x543827(0x23e5)](_0x4d41e3[_0x543827(0x24e1)],_0x4d41e3[_0x543827(0x1f4f)],'id'),_0xe68f77=_0x28c606()[_0x543827(0x23e5)](_0x4d41e3[_0x543827(0x1f4f)],_0x4d41e3[_0x543827(0x24e1)],'id');return _0x501489(_0x319728)[_0x543827(0x64a)](function(){return _0x1274df(_0xe68f77);})[_0x543827(0x64a)](function(){const _0x27ed15=_0x543827;_0x4d41e3['pendingChanges']=![],_0x4d41e3[_0x27ed15(0x206b)]=angular[_0x27ed15(0x289e)](_0x4d41e3[_0x27ed15(0x13d1)]),_0x4d41e3['startingSelectedItems']=angular[_0x27ed15(0x289e)](_0x4d41e3['selectedItems']),_0x49fd15[_0x27ed15(0x1339)]({'title':'SUCCESS','msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x543827(0x20cd)](function(_0x5c659c){const _0x250fa6=_0x543827;_0x49fd15[_0x250fa6(0x1bd0)]({'title':_0x5c659c['status']?_0x250fa6(0x575)+_0x5c659c[_0x250fa6(0x10b3)]+_0x250fa6(0x21db)+_0x5c659c[_0x250fa6(0x2115)]:_0x250fa6(0x1226),'msg':_0x5c659c[_0x250fa6(0x10b3)]?JSON['stringify'](_0x5c659c[_0x250fa6(0x1c52)]):_0x5c659c['toString']()});});}function _0xe52c1f(){const _0x373479=_0x47c297;_0x43531b[_0x373479(0x268e)]();}}const _0x3149d5=_0x35da5a;;_0x5c0c5a['$inject']=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x1f1),'smsAccount','api',_0x49a1e3(0xdcf),'crudPermissions'];function _0x5c0c5a(_0x33c436,_0x57cbc3,_0x1feffe,_0x440b26,_0x1b6937,_0x1def54,_0x3255e6,_0x4909fc){const _0xc480c8=_0x49a1e3,_0x4f22d8=this;_0x4f22d8[_0xc480c8(0x1d3d)]=_0x3255e6[_0xc480c8(0x808)](),_0x4f22d8[_0xc480c8(0xbae)]=[],_0x4f22d8[_0xc480c8(0x2021)]=_0xc480c8(0x26c7)+(_0x440b26[_0xc480c8(0x4f4)]||_0x440b26['app'])[_0xc480c8(0xa3c)](),_0x4f22d8[_0xc480c8(0x11ae)]=angular[_0xc480c8(0x289e)](_0x440b26),_0x4f22d8[_0xc480c8(0x402)]=_0x4909fc,_0x4f22d8[_0xc480c8(0x6c2)]={};if(_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0xacb)])switch(_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0x4f4)]?_0x4f22d8['agent']['appType'][_0xc480c8(0x2554)]():_0x4f22d8['agent']['app']['toLowerCase']()){case _0xc480c8(0x1ad6):break;case'dialogflow':{const _0x138d38=_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0xacb)]['split'](',');_0x4f22d8[_0xc480c8(0x11ae)]['key']=_0x138d38[0x0],_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0x1cbd)]=_0x138d38[0x1],_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0x31b)]=_0x138d38[_0xc480c8(0x142e)](0x2,_0x138d38[_0xc480c8(0x1b9e)])[_0xc480c8(0x9a6)](',');}break;case _0xc480c8(0x1b1a):{const _0x424293=_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0xacb)]['split'](',');_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0xbfd)]=_0x424293[0x0],_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0x4b2)]=_0x424293[0x1],_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0x1b1b)]=_0x424293[0x2],_0x4f22d8['agent'][_0xc480c8(0x1cbd)]=_0x424293[0x3],_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0x31b)]=_0x424293['slice'](0x4,_0x424293[_0xc480c8(0x1b9e)])[_0xc480c8(0x9a6)](',');}break;case _0xc480c8(0x290d):{const _0x39bfc2=_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0xacb)][_0xc480c8(0x282c)](',');_0x4f22d8[_0xc480c8(0x11ae)]['accesskeyid']=_0x39bfc2[0x0],_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0x1b1)]=_0x39bfc2[0x1],_0x4f22d8[_0xc480c8(0x11ae)]['lexregion']=_0x39bfc2[0x2],_0x4f22d8['agent'][_0xc480c8(0x2797)]=_0x39bfc2[0x3],_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0x31b)]=_0x39bfc2[_0xc480c8(0x142e)](0x4,_0x39bfc2[_0xc480c8(0x1b9e)])[_0xc480c8(0x9a6)](',');}break;case _0xc480c8(0x21a9):{const _0x2bf0ee=_0x4f22d8['agent'][_0xc480c8(0xacb)][_0xc480c8(0x282c)](',');_0x4f22d8[_0xc480c8(0x11ae)]['times']=isNaN(_0x2bf0ee[0x0])?_0x2bf0ee[0x0]:parseInt(_0x2bf0ee[0x0],0xa),_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0x39b)]=_0x2bf0ee[_0xc480c8(0x142e)](0x1,_0x2bf0ee['length'])['join'](',');}break;case _0xc480c8(0x18ca):_0x4f22d8[_0xc480c8(0x11ae)]['text']=_0x4f22d8[_0xc480c8(0x11ae)]['appdata'];break;case _0xc480c8(0x1979):_0x4f22d8[_0xc480c8(0x11ae)]['name']=_0x4f22d8['agent']['appdata'][_0xc480c8(0x282c)]('=')[0x0],_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0x1096)]=_0x4f22d8['agent']['appdata'][_0xc480c8(0x282c)]('=')[0x1];break;case'agi':_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0x1bd9)]=_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0xacb)];break;default:{const _0x3016c7=_0x4f22d8['agent'][_0xc480c8(0xacb)][_0xc480c8(0x282c)](',');_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0x11ae)]=_0x28c606()[_0xc480c8(0x940)](_0x3016c7[0x0])?_0x3016c7[0x0]:isNaN(_0x3016c7[0x0])?_0x3016c7[0x0]:parseInt(_0x3016c7[0x0],0xa),_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0x16d)]=_0x28c606()[_0xc480c8(0x940)](_0x3016c7[0x1])?_0x3016c7[0x1]:isNaN(_0x3016c7[0x1])?_0x3016c7[0x1]:parseInt(_0x3016c7[0x1],0xa);}break;}else _0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0x16d)]=0x1e;_0x4f22d8['agent'][_0xc480c8(0x2185)]&&_0x4f22d8[_0xc480c8(0x11ae)]['type'][_0xc480c8(0x2554)]()==='outbound'&&_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0x4f4)][_0xc480c8(0x2554)]()===_0xc480c8(0x20eb)&&(_0x4f22d8['agent']['prefix']=_0x4f22d8[_0xc480c8(0x11ae)]['phone']?_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0x267a)]['split']('$')[0x0]:undefined,_0x4f22d8[_0xc480c8(0x11ae)][_0xc480c8(0x1a9b)]=_0x4f22d8['agent']['callerID']?_0xc480c8(0x2489)+_0x4f22d8['agent'][_0xc480c8(0x1abe)]:undefined);_0x4f22d8[_0xc480c8(0x1803)]=_0x2e4b83,_0x4f22d8[_0xc480c8(0x16cb)]=_0x11f0c4,_0x3255e6[_0xc480c8(0x4de)](_0xc480c8(0x333))?_0x1def54[_0xc480c8(0x2e8)][_0xc480c8(0x896)]({'fields':'id,name','sort':'name','nolimit':_0xc480c8(0x1685),'role':_0xc480c8(0x11ae)})[_0xc480c8(0x15e7)]['then'](function(_0x3e8545){const _0x1f496b=_0xc480c8;_0x4f22d8[_0x1f496b(0xd77)]=_0x3e8545['rows']||[];})[_0xc480c8(0x20cd)](function(_0x2f5bf4){const _0x2b9c25=_0xc480c8;_0x1feffe['error']({'title':_0x2f5bf4[_0x2b9c25(0x10b3)]?_0x2b9c25(0x575)+_0x2f5bf4[_0x2b9c25(0x10b3)]+_0x2b9c25(0x21db)+_0x2f5bf4[_0x2b9c25(0x2115)]:'SYSTEM:GET_AGENTS','msg':_0x2f5bf4[_0x2b9c25(0x1c52)]?JSON['stringify'](_0x2f5bf4[_0x2b9c25(0x1c52)]):_0x2f5bf4[_0x2b9c25(0x2915)]()});}):_0x1def54[_0xc480c8(0x2e8)][_0xc480c8(0x896)]({'fields':_0xc480c8(0x1427),'sort':_0xc480c8(0x2494),'nolimit':'true','role':_0xc480c8(0x11ae)})[_0xc480c8(0x15e7)][_0xc480c8(0x64a)](function(_0x470f6e){const _0x39b9f3=_0xc480c8;_0x4f22d8[_0x39b9f3(0xd77)]=_0x470f6e[_0x39b9f3(0x28b8)]||[];})['then'](function(){const _0x3b1068=_0xc480c8;return _0x1def54['userProfileSection'][_0x3b1068(0x896)]({'userProfileId':_0x4f22d8[_0x3b1068(0x1d3d)][_0x3b1068(0x21ac)],'sectionId':0xca})['$promise'];})[_0xc480c8(0x64a)](function(_0x3ce17e){const _0x1330d0=_0xc480c8,_0x598e6a=_0x3ce17e&&_0x3ce17e[_0x1330d0(0x28b8)]?_0x3ce17e['rows'][0x0]:null;if(!_0x598e6a){const _0x1ae51f=[];let _0x959c33=null;_0x4f22d8['agent']&&(_0x959c33=_0x28c606()[_0x1330d0(0x27bc)](_0x4f22d8[_0x1330d0(0xd77)],{'name':_0x4f22d8[_0x1330d0(0x11ae)]['agent']}));for(let _0x49f8a3=0x0;_0x49f8a3<_0x4f22d8[_0x1330d0(0xd77)][_0x1330d0(0x1b9e)];_0x49f8a3++){_0x959c33&&_0x4f22d8[_0x1330d0(0xd77)][_0x49f8a3]['id']===_0x959c33['id']&&(_0x4f22d8[_0x1330d0(0xd77)][_0x49f8a3][_0x1330d0(0xd4f)]=![],_0x1ae51f[_0x1330d0(0x1954)](_0x4f22d8['agents'][_0x49f8a3]));}_0x4f22d8[_0x1330d0(0xd77)]=_0x1ae51f;}else{if(!_0x598e6a[_0x1330d0(0x11da)])return _0x1def54[_0x1330d0(0x1617)][_0x1330d0(0x896)]({'sectionId':_0x598e6a['id']})[_0x1330d0(0x15e7)][_0x1330d0(0x64a)](function(_0x27deec){const _0x2cec0f=_0x1330d0,_0x1d58ba=_0x28c606()[_0x2cec0f(0x1de5)](_0x27deec[_0x2cec0f(0x28b8)],function(_0x4f3986){return _0x28c606()['find'](_0x4f22d8['agents'],{'id':_0x4f3986['resourceId']});});let _0x127b55=null;_0x4f22d8[_0x2cec0f(0x11ae)]&&(_0x127b55=_0x28c606()[_0x2cec0f(0x27bc)](_0x4f22d8[_0x2cec0f(0xd77)],{'name':_0x4f22d8[_0x2cec0f(0x11ae)][_0x2cec0f(0x11ae)]}));if(_0x127b55&&!_0x28c606()[_0x2cec0f(0x25f8)](_0x1d58ba,['id',_0x127b55['id']])){const _0x4fc459=_0x28c606()[_0x2cec0f(0x27bc)](_0x4f22d8[_0x2cec0f(0xd77)],{'id':_0x127b55['id']});_0x4fc459['canSelect']=![],_0x1d58ba[_0x2cec0f(0x1954)](_0x4fc459);}_0x4f22d8[_0x2cec0f(0xd77)]=_0x1d58ba;});}})[_0xc480c8(0x20cd)](function(_0x4eab91){const _0x5c4bda=_0xc480c8;_0x1feffe[_0x5c4bda(0x1bd0)]({'title':_0x4eab91[_0x5c4bda(0x10b3)]?_0x5c4bda(0x575)+_0x4eab91[_0x5c4bda(0x10b3)]+_0x5c4bda(0x21db)+_0x4eab91[_0x5c4bda(0x2115)]:_0x5c4bda(0x1ff1),'msg':_0x4eab91[_0x5c4bda(0x1c52)]?JSON[_0x5c4bda(0x2317)](_0x4eab91[_0x5c4bda(0x1c52)]):_0x4eab91[_0x5c4bda(0x2915)]()});});function _0x2e4b83(){const _0x2b7e44=_0xc480c8;_0x4f22d8[_0x2b7e44(0xbae)]=[];const _0xb2c665=[];_0x4f22d8[_0x2b7e44(0x11ae)][_0x2b7e44(0x2185)]&&_0x4f22d8[_0x2b7e44(0x11ae)][_0x2b7e44(0x2185)]['toLowerCase']()===_0x2b7e44(0xbce)&&_0x4f22d8[_0x2b7e44(0x11ae)]['appType']==='outboundDial'&&(_0x4f22d8['agent']['phone']=_0x1b6937[_0x2b7e44(0x242b)]?(_0x4f22d8[_0x2b7e44(0x11ae)][_0x2b7e44(0x2524)]||'')+_0x2b7e44(0x1a75)+_0x1b6937[_0x2b7e44(0x242b)]+'}':(_0x4f22d8['agent']['prefix']||'')+_0x2b7e44(0x5ad),_0x1b6937[_0x2b7e44(0x1097)]!==_0x2b7e44(0x2507)?_0x4f22d8[_0x2b7e44(0x11ae)][_0x2b7e44(0x59e)][_0x2b7e44(0x1b28)](_0x2b7e44(0x13e0))<0x0&&(_0x4f22d8['agent'][_0x2b7e44(0x59e)]+=_0x2b7e44(0x13e0)):_0x4f22d8['agent'][_0x2b7e44(0x59e)]=_0x4f22d8['agent'][_0x2b7e44(0x59e)][_0x2b7e44(0x1353)](_0x2b7e44(0x13e0),''));const _0x4f53e8=_0x28c606()[_0x2b7e44(0x27bc)](_0x4f22d8['agents'],{'name':_0x4f22d8[_0x2b7e44(0x11ae)][_0x2b7e44(0x11ae)]});_0x4f53e8&&(_0x4f22d8[_0x2b7e44(0x11ae)][_0x2b7e44(0x246c)]=_0x4f53e8['id']);if(_0x4f22d8[_0x2b7e44(0x11ae)][_0x2b7e44(0x4f4)]&&_0x4f22d8[_0x2b7e44(0x11ae)][_0x2b7e44(0x4f4)]===_0x2b7e44(0x1ad6)){}else switch((_0x4f22d8[_0x2b7e44(0x11ae)][_0x2b7e44(0x16e1)]||_0x4f22d8[_0x2b7e44(0x11ae)]['appType'])[_0x2b7e44(0x2554)]()){case _0x2b7e44(0x1979):_0x4f22d8[_0x2b7e44(0x11ae)][_0x2b7e44(0xacb)]=_0x4f22d8[_0x2b7e44(0x11ae)]['name']+'='+_0x4f22d8[_0x2b7e44(0x11ae)][_0x2b7e44(0x1096)];break;case _0x2b7e44(0x1ad6):break;default:_0xb2c665[0x0]=_0x4f22d8[_0x2b7e44(0x11ae)][_0x2b7e44(0x11ae)],_0xb2c665[0x1]=_0x4f22d8[_0x2b7e44(0x11ae)]['timeout'],_0x4f22d8[_0x2b7e44(0x11ae)]['appdata']=_0xb2c665['join'](',');}_0x11f0c4(_0x4f22d8[_0x2b7e44(0x11ae)]);}function _0x11f0c4(_0x5c7527){_0x33c436['hide'](_0x5c7527);}}const _0x42cdfa=_0x5c0c5a;;_0x1f6085[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x1f1),_0x49a1e3(0x1512),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x1f6085(_0x56c057,_0x218211,_0x1649ff,_0x44ab3e,_0x11c3c1,_0x38424b,_0x94d631,_0x173994){const _0xcb72fe=_0x49a1e3,_0x3700be=this;_0x3700be[_0xcb72fe(0x1d3d)]=_0x94d631[_0xcb72fe(0x808)](),_0x3700be['errors']=[],_0x3700be[_0xcb72fe(0x2021)]='SMS.EDIT_'+(_0x44ab3e[_0xcb72fe(0x4f4)]||_0x44ab3e['app'])[_0xcb72fe(0xa3c)](),_0x3700be['amazonlex']=angular[_0xcb72fe(0x289e)](_0x44ab3e),_0x3700be[_0xcb72fe(0x402)]=_0x173994,_0x3700be[_0xcb72fe(0x6c2)]={};if(_0x3700be['amazonlex'][_0xcb72fe(0xacb)])switch(_0x3700be[_0xcb72fe(0x290d)]['appType']?_0x3700be['amazonlex'][_0xcb72fe(0x4f4)][_0xcb72fe(0x2554)]():_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x16e1)][_0xcb72fe(0x2554)]()){case'custom':break;case _0xcb72fe(0x1084):{const _0x18f802=_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0xacb)][_0xcb72fe(0x282c)](',');_0x3700be['amazonlex'][_0xcb72fe(0x2125)]=_0x18f802[0x0],_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x1cbd)]=_0x18f802[0x1],_0x3700be['amazonlex']['welcomemessage']=_0x18f802[_0xcb72fe(0x142e)](0x2,_0x18f802[_0xcb72fe(0x1b9e)])['join'](',');}break;case'dialogflowv2':{const _0x549851=_0x3700be[_0xcb72fe(0x290d)]['appdata']['split'](',');_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0xbfd)]=_0x549851[0x0],_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x4b2)]=_0x549851[0x1],_0x3700be['amazonlex'][_0xcb72fe(0x1b1b)]=_0x549851[0x2],_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x1cbd)]=_0x549851[0x3],_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x31b)]=_0x549851[_0xcb72fe(0x142e)](0x4,_0x549851[_0xcb72fe(0x1b9e)])['join'](',');}break;case _0xcb72fe(0x290d):{const _0x1c3faa=_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0xacb)]['split'](',');_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x1466)]=_0x1c3faa[0x0],_0x3700be['amazonlex'][_0xcb72fe(0x1b1)]=_0x1c3faa[0x1],_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x17a2)]=_0x1c3faa[0x2],_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x2797)]=_0x1c3faa[0x3],_0x3700be['amazonlex']['welcomemessage']=_0x1c3faa[_0xcb72fe(0x142e)](0x4,_0x1c3faa['length'])[_0xcb72fe(0x9a6)](',');}break;case _0xcb72fe(0x21a9):{const _0x1d4b01=_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0xacb)][_0xcb72fe(0x282c)](',');_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x95f)]=isNaN(_0x1d4b01[0x0])?_0x1d4b01[0x0]:parseInt(_0x1d4b01[0x0],0xa),_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x39b)]=_0x1d4b01[_0xcb72fe(0x142e)](0x1,_0x1d4b01[_0xcb72fe(0x1b9e)])[_0xcb72fe(0x9a6)](',');}break;case _0xcb72fe(0x18ca):_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x39b)]=_0x3700be[_0xcb72fe(0x290d)]['appdata'];break;case _0xcb72fe(0x1979):_0x3700be['amazonlex'][_0xcb72fe(0x2494)]=_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0xacb)][_0xcb72fe(0x282c)]('=')[0x0],_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x1096)]=_0x3700be[_0xcb72fe(0x290d)]['appdata'][_0xcb72fe(0x282c)]('=')[0x1];break;case _0xcb72fe(0x1e67):_0x3700be[_0xcb72fe(0x290d)]['project']=_0x3700be['amazonlex'][_0xcb72fe(0xacb)];break;default:{const _0x8defab=_0x3700be['amazonlex']['appdata'][_0xcb72fe(0x282c)](',');_0x3700be['amazonlex'][_0xcb72fe(0x1466)]=_0x28c606()[_0xcb72fe(0x940)](_0x8defab[0x0])?_0x8defab[0x0]:isNaN(_0x8defab[0x0])?_0x8defab[0x0]:parseInt(_0x8defab[0x0],0xa),_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x1b1)]=_0x28c606()[_0xcb72fe(0x940)](_0x8defab[0x1])?_0x8defab[0x1]:isNaN(_0x8defab[0x1])?_0x8defab[0x1]:parseInt(_0x8defab[0x1],0xa),_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x17a2)]=_0x28c606()[_0xcb72fe(0x940)](_0x8defab[0x2])?_0x8defab[0x2]:isNaN(_0x8defab[0x2])?_0x8defab[0x2]:parseInt(_0x8defab[0x2],0xa),_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x2797)]=_0x28c606()[_0xcb72fe(0x940)](_0x8defab[0x3])?_0x8defab[0x3]:isNaN(_0x8defab[0x3])?_0x8defab[0x3]:parseInt(_0x8defab[0x3],0xa),_0x3700be[_0xcb72fe(0x290d)]['welcomemessage']=_0x28c606()[_0xcb72fe(0x940)](_0x8defab[0x4])?_0x8defab[0x4]:isNaN(_0x8defab[0x4])?_0x8defab[0x4]:parseInt(_0x8defab[0x4],0xa);}break;}else _0x3700be[_0xcb72fe(0x290d)]['lexregion']=_0xcb72fe(0x211e);_0x3700be['amazonlex']['type']&&_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x2185)][_0xcb72fe(0x2554)]()==='outbound'&&_0x3700be['amazonlex'][_0xcb72fe(0x4f4)]['toLowerCase']()===_0xcb72fe(0x20eb)&&(_0x3700be['amazonlex'][_0xcb72fe(0x2524)]=_0x3700be['amazonlex'][_0xcb72fe(0x267a)]?_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x267a)][_0xcb72fe(0x282c)]('$')[0x0]:undefined,_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x1a9b)]=_0x3700be[_0xcb72fe(0x290d)][_0xcb72fe(0x1abe)]?_0xcb72fe(0x2489)+_0x3700be['amazonlex'][_0xcb72fe(0x1abe)]:undefined);_0x3700be['saveSmsAccountApp']=_0x3ea861,_0x3700be[_0xcb72fe(0x16cb)]=_0x57f90b;function _0x3ea861(){const _0x3caca7=_0xcb72fe;_0x3700be['errors']=[];const _0x167d73=[];_0x3700be['amazonlex'][_0x3caca7(0x2185)]&&_0x3700be[_0x3caca7(0x290d)]['type']['toLowerCase']()===_0x3caca7(0xbce)&&_0x3700be[_0x3caca7(0x290d)]['appType']===_0x3caca7(0x17b6)&&(_0x3700be[_0x3caca7(0x290d)]['phone']=_0x11c3c1[_0x3caca7(0x242b)]?(_0x3700be[_0x3caca7(0x290d)][_0x3caca7(0x2524)]||'')+_0x3caca7(0x1a75)+_0x11c3c1[_0x3caca7(0x242b)]+'}':(_0x3700be[_0x3caca7(0x290d)]['prefix']||'')+_0x3caca7(0x5ad),_0x11c3c1[_0x3caca7(0x1097)]!==_0x3caca7(0x2507)?_0x3700be[_0x3caca7(0x290d)][_0x3caca7(0x59e)][_0x3caca7(0x1b28)](_0x3caca7(0x13e0))<0x0&&(_0x3700be[_0x3caca7(0x290d)][_0x3caca7(0x59e)]+=_0x3caca7(0x13e0)):_0x3700be[_0x3caca7(0x290d)][_0x3caca7(0x59e)]=_0x3700be['amazonlex'][_0x3caca7(0x59e)][_0x3caca7(0x1353)](_0x3caca7(0x13e0),''));if(_0x3700be[_0x3caca7(0x290d)][_0x3caca7(0x4f4)]&&_0x3700be['amazonlex']['appType']==='custom'){}else switch((_0x3700be['amazonlex'][_0x3caca7(0x16e1)]||_0x3700be[_0x3caca7(0x290d)][_0x3caca7(0x4f4)])[_0x3caca7(0x2554)]()){case _0x3caca7(0x1979):_0x3700be[_0x3caca7(0x290d)][_0x3caca7(0xacb)]=_0x3700be[_0x3caca7(0x290d)][_0x3caca7(0x2494)]+'='+_0x3700be[_0x3caca7(0x290d)][_0x3caca7(0x1096)];break;case'custom':break;default:_0x167d73[0x0]=_0x3700be['amazonlex'][_0x3caca7(0x1466)],_0x167d73[0x1]=_0x3700be[_0x3caca7(0x290d)][_0x3caca7(0x1b1)],_0x167d73[0x2]=_0x3700be[_0x3caca7(0x290d)][_0x3caca7(0x17a2)],_0x167d73[0x3]=_0x3700be[_0x3caca7(0x290d)]['botname'],_0x167d73[0x4]=_0x3700be[_0x3caca7(0x290d)][_0x3caca7(0x31b)],_0x3700be[_0x3caca7(0x290d)][_0x3caca7(0xacb)]=_0x167d73[_0x3caca7(0x9a6)](',');}_0x57f90b(_0x3700be[_0x3caca7(0x290d)]);}function _0x57f90b(_0x36435d){const _0x5ca1cc=_0xcb72fe;_0x56c057[_0x5ca1cc(0x268e)](_0x36435d);}}const _0x48836a=_0x1f6085;;_0x30c7b5['$inject']=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0x1f1),_0x49a1e3(0x1512),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x402)];function _0x30c7b5(_0x272ba5,_0x2a0263,_0x249516,_0x5572d4,_0x213a15,_0x11a259,_0x4fd768,_0x308c32){const _0x439665=_0x49a1e3,_0x31255e=this;_0x31255e[_0x439665(0x1d3d)]=_0x4fd768[_0x439665(0x808)](),_0x31255e[_0x439665(0xbae)]=[],_0x31255e[_0x439665(0x2021)]=_0x439665(0x26c7)+(_0x5572d4[_0x439665(0x4f4)]||_0x5572d4[_0x439665(0x16e1)])[_0x439665(0xa3c)](),_0x31255e['autoreply']=angular[_0x439665(0x289e)](_0x5572d4),_0x31255e['crudPermissions']=_0x308c32,_0x31255e[_0x439665(0x6c2)]={};if(_0x31255e[_0x439665(0x21a9)][_0x439665(0xacb)])switch(_0x31255e[_0x439665(0x21a9)][_0x439665(0x4f4)]?_0x31255e[_0x439665(0x21a9)][_0x439665(0x4f4)][_0x439665(0x2554)]():_0x31255e['autoreply'][_0x439665(0x16e1)]['toLowerCase']()){case _0x439665(0x1ad6):break;case _0x439665(0x1084):{const _0x450b93=_0x31255e[_0x439665(0x21a9)][_0x439665(0xacb)][_0x439665(0x282c)](',');_0x31255e[_0x439665(0x21a9)]['key']=_0x450b93[0x0],_0x31255e[_0x439665(0x21a9)]['language']=_0x450b93[0x1],_0x31255e[_0x439665(0x21a9)][_0x439665(0x31b)]=_0x450b93['slice'](0x2,_0x450b93[_0x439665(0x1b9e)])['join'](',');}break;case _0x439665(0x1b1a):{const _0x23fb3d=_0x31255e[_0x439665(0x21a9)][_0x439665(0xacb)][_0x439665(0x282c)](',');_0x31255e[_0x439665(0x21a9)][_0x439665(0xbfd)]=_0x23fb3d[0x0],_0x31255e[_0x439665(0x21a9)][_0x439665(0x4b2)]=_0x23fb3d[0x1],_0x31255e[_0x439665(0x21a9)][_0x439665(0x1b1b)]=_0x23fb3d[0x2],_0x31255e[_0x439665(0x21a9)]['language']=_0x23fb3d[0x3],_0x31255e['autoreply'][_0x439665(0x31b)]=_0x23fb3d['slice'](0x4,_0x23fb3d['length'])[_0x439665(0x9a6)](',');}break;case _0x439665(0x290d):{const _0x2ee76b=_0x31255e['autoreply'][_0x439665(0xacb)][_0x439665(0x282c)](',');_0x31255e[_0x439665(0x21a9)]['accesskeyid']=_0x2ee76b[0x0],_0x31255e['autoreply'][_0x439665(0x1b1)]=_0x2ee76b[0x1],_0x31255e[_0x439665(0x21a9)][_0x439665(0x17a2)]=_0x2ee76b[0x2],_0x31255e[_0x439665(0x21a9)][_0x439665(0x2797)]=_0x2ee76b[0x3],_0x31255e[_0x439665(0x21a9)]['welcomemessage']=_0x2ee76b['slice'](0x4,_0x2ee76b['length'])[_0x439665(0x9a6)](',');}break;case _0x439665(0x21a9):{const _0xfff07e=_0x31255e[_0x439665(0x21a9)][_0x439665(0xacb)][_0x439665(0x282c)](',');_0x31255e[_0x439665(0x21a9)][_0x439665(0x95f)]=isNaN(_0xfff07e[0x0])?_0xfff07e[0x0]:parseInt(_0xfff07e[0x0],0xa),_0x31255e[_0x439665(0x21a9)][_0x439665(0x39b)]=_0xfff07e['slice'](0x1,_0xfff07e['length'])[_0x439665(0x9a6)](',');}break;case _0x439665(0x18ca):_0x31255e[_0x439665(0x21a9)][_0x439665(0x39b)]=_0x31255e['autoreply'][_0x439665(0xacb)];break;case _0x439665(0x1979):_0x31255e[_0x439665(0x21a9)]['name']=_0x31255e[_0x439665(0x21a9)][_0x439665(0xacb)]['split']('=')[0x0],_0x31255e[_0x439665(0x21a9)]['value']=_0x31255e[_0x439665(0x21a9)]['appdata']['split']('=')[0x1];break;case _0x439665(0x1e67):_0x31255e[_0x439665(0x21a9)][_0x439665(0x1bd9)]=_0x31255e[_0x439665(0x21a9)][_0x439665(0xacb)];break;default:{const _0x2f48e9=_0x31255e[_0x439665(0x21a9)][_0x439665(0xacb)][_0x439665(0x282c)](',');_0x31255e[_0x439665(0x21a9)][_0x439665(0x95f)]=_0x28c606()['isEmpty'](_0x2f48e9[0x0])?_0x2f48e9[0x0]:isNaN(_0x2f48e9[0x0])?_0x2f48e9[0x0]:parseInt(_0x2f48e9[0x0],0xa),_0x31255e[_0x439665(0x21a9)][_0x439665(0x39b)]=_0x28c606()['isEmpty'](_0x2f48e9[0x1])?_0x2f48e9[0x1]:isNaN(_0x2f48e9[0x1])?_0x2f48e9[0x1]:parseInt(_0x2f48e9[0x1],0xa);}}else _0x31255e[_0x439665(0x21a9)][_0x439665(0x95f)]=0x1;_0x31255e['autoreply']['type']&&_0x31255e[_0x439665(0x21a9)][_0x439665(0x2185)][_0x439665(0x2554)]()===_0x439665(0xbce)&&_0x31255e[_0x439665(0x21a9)][_0x439665(0x4f4)][_0x439665(0x2554)]()===_0x439665(0x20eb)&&(_0x31255e['autoreply'][_0x439665(0x2524)]=_0x31255e[_0x439665(0x21a9)][_0x439665(0x267a)]?_0x31255e[_0x439665(0x21a9)][_0x439665(0x267a)]['split']('$')[0x0]:undefined,_0x31255e['autoreply'][_0x439665(0x1a9b)]=_0x31255e['autoreply'][_0x439665(0x1abe)]?_0x439665(0x2489)+_0x31255e[_0x439665(0x21a9)][_0x439665(0x1abe)]:undefined);_0x31255e[_0x439665(0x1803)]=_0x43dcaf,_0x31255e[_0x439665(0x16cb)]=_0x5bbbbf;function _0x43dcaf(){const _0x5040c0=_0x439665;_0x31255e[_0x5040c0(0xbae)]=[];const _0x5a8dd1=[];_0x31255e[_0x5040c0(0x21a9)][_0x5040c0(0x2185)]&&_0x31255e['autoreply']['type']['toLowerCase']()===_0x5040c0(0xbce)&&_0x31255e[_0x5040c0(0x21a9)]['appType']===_0x5040c0(0x17b6)&&(_0x31255e[_0x5040c0(0x21a9)]['phone']=_0x213a15[_0x5040c0(0x242b)]?(_0x31255e[_0x5040c0(0x21a9)][_0x5040c0(0x2524)]||'')+'${EXTEN:'+_0x213a15[_0x5040c0(0x242b)]+'}':(_0x31255e['autoreply'][_0x5040c0(0x2524)]||'')+_0x5040c0(0x5ad),_0x213a15[_0x5040c0(0x1097)]!==_0x5040c0(0x2507)?_0x31255e[_0x5040c0(0x21a9)][_0x5040c0(0x59e)]['indexOf'](_0x5040c0(0x13e0))<0x0&&(_0x31255e['autoreply'][_0x5040c0(0x59e)]+=_0x5040c0(0x13e0)):_0x31255e[_0x5040c0(0x21a9)][_0x5040c0(0x59e)]=_0x31255e[_0x5040c0(0x21a9)][_0x5040c0(0x59e)][_0x5040c0(0x1353)](_0x5040c0(0x13e0),''));if(_0x31255e[_0x5040c0(0x21a9)][_0x5040c0(0x4f4)]&&_0x31255e[_0x5040c0(0x21a9)][_0x5040c0(0x4f4)]===_0x5040c0(0x1ad6)){}else switch((_0x31255e[_0x5040c0(0x21a9)][_0x5040c0(0x16e1)]||_0x31255e['autoreply']['appType'])['toLowerCase']()){case _0x5040c0(0x1979):_0x31255e[_0x5040c0(0x21a9)][_0x5040c0(0xacb)]=_0x31255e[_0x5040c0(0x21a9)][_0x5040c0(0x2494)]+'='+_0x31255e[_0x5040c0(0x21a9)][_0x5040c0(0x1096)];break;case _0x5040c0(0x1ad6):break;default:_0x5a8dd1[0x0]=_0x31255e[_0x5040c0(0x21a9)][_0x5040c0(0x95f)],_0x5a8dd1[0x1]=_0x31255e[_0x5040c0(0x21a9)][_0x5040c0(0x39b)],_0x31255e[_0x5040c0(0x21a9)][_0x5040c0(0xacb)]=_0x5a8dd1[_0x5040c0(0x9a6)](',');}_0x5bbbbf(_0x31255e['autoreply']);}function _0x5bbbbf(_0x4d4b12){const _0x4e74eb=_0x439665;_0x272ba5[_0x4e74eb(0x268e)](_0x4d4b12);}}const _0x3160b5=_0x30c7b5;;_0x4991b2[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0x1f1),_0x49a1e3(0x1512),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x4991b2(_0x4a09c7,_0x1c0677,_0x563984,_0x29b32c,_0x8cb0b4,_0x3f4142,_0x5ab998,_0x5836d6){const _0x1dc189=_0x49a1e3,_0x13d7c3=this;_0x13d7c3['currentUser']=_0x5ab998[_0x1dc189(0x808)](),_0x13d7c3[_0x1dc189(0xbae)]=[],_0x13d7c3['title']=_0x1dc189(0x26c7)+(_0x29b32c[_0x1dc189(0x4f4)]||_0x29b32c['app'])[_0x1dc189(0xa3c)](),_0x13d7c3[_0x1dc189(0x67b)]=angular['copy'](_0x29b32c),_0x13d7c3[_0x1dc189(0x402)]=_0x5836d6,_0x13d7c3['hasModulePermissions']={};if(_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0xacb)])switch(_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x4f4)]?_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x4f4)][_0x1dc189(0x2554)]():_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x16e1)][_0x1dc189(0x2554)]()){case'custom':break;case _0x1dc189(0x1084):{const _0x2b5f17=_0x13d7c3['close'][_0x1dc189(0xacb)][_0x1dc189(0x282c)](',');_0x13d7c3['close'][_0x1dc189(0x2125)]=_0x2b5f17[0x0],_0x13d7c3['close'][_0x1dc189(0x1cbd)]=_0x2b5f17[0x1],_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x31b)]=_0x2b5f17['slice'](0x2,_0x2b5f17[_0x1dc189(0x1b9e)])[_0x1dc189(0x9a6)](',');}break;case _0x1dc189(0x1b1a):{const _0x5e7a71=_0x13d7c3['close']['appdata']['split'](',');_0x13d7c3[_0x1dc189(0x67b)]['projectId']=_0x5e7a71[0x0],_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x4b2)]=_0x5e7a71[0x1],_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x1b1b)]=_0x5e7a71[0x2],_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x1cbd)]=_0x5e7a71[0x3],_0x13d7c3['close'][_0x1dc189(0x31b)]=_0x5e7a71[_0x1dc189(0x142e)](0x4,_0x5e7a71['length'])[_0x1dc189(0x9a6)](',');}break;case _0x1dc189(0x290d):{const _0x38118a=_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0xacb)][_0x1dc189(0x282c)](',');_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x1466)]=_0x38118a[0x0],_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x1b1)]=_0x38118a[0x1],_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x17a2)]=_0x38118a[0x2],_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x2797)]=_0x38118a[0x3],_0x13d7c3[_0x1dc189(0x67b)]['welcomemessage']=_0x38118a[_0x1dc189(0x142e)](0x4,_0x38118a['length'])['join'](',');}break;case _0x1dc189(0x21a9):{const _0x1c10c2=_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0xacb)][_0x1dc189(0x282c)](',');_0x13d7c3[_0x1dc189(0x67b)]['times']=isNaN(_0x1c10c2[0x0])?_0x1c10c2[0x0]:parseInt(_0x1c10c2[0x0],0xa),_0x13d7c3['close'][_0x1dc189(0x39b)]=_0x1c10c2['slice'](0x1,_0x1c10c2[_0x1dc189(0x1b9e)])[_0x1dc189(0x9a6)](',');}break;case _0x1dc189(0x18ca):_0x13d7c3[_0x1dc189(0x67b)]['text']=_0x13d7c3['close'][_0x1dc189(0xacb)];break;case _0x1dc189(0x1979):_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x2494)]=_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0xacb)][_0x1dc189(0x282c)]('=')[0x0],_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x1096)]=_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0xacb)][_0x1dc189(0x282c)]('=')[0x1];break;case _0x1dc189(0x1e67):_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x1bd9)]=_0x13d7c3['close'][_0x1dc189(0xacb)];break;default:{const _0x1af034=_0x13d7c3['close'][_0x1dc189(0xacb)][_0x1dc189(0x282c)](',');_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x168b)]=_0x28c606()[_0x1dc189(0x940)](_0x1af034[0x0])?_0x1af034[0x0]:isNaN(_0x1af034[0x0])?_0x1af034[0x0]:parseInt(_0x1af034[0x0],0xa);}break;}else{}_0x13d7c3[_0x1dc189(0x67b)]['type']&&_0x13d7c3[_0x1dc189(0x67b)]['type'][_0x1dc189(0x2554)]()===_0x1dc189(0xbce)&&_0x13d7c3['close'][_0x1dc189(0x4f4)][_0x1dc189(0x2554)]()===_0x1dc189(0x20eb)&&(_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x2524)]=_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x267a)]?_0x13d7c3[_0x1dc189(0x67b)]['phone'][_0x1dc189(0x282c)]('$')[0x0]:undefined,_0x13d7c3['close'][_0x1dc189(0x1a9b)]=_0x13d7c3[_0x1dc189(0x67b)][_0x1dc189(0x1abe)]?_0x1dc189(0x2489)+_0x13d7c3['close'][_0x1dc189(0x1abe)]:undefined);_0x13d7c3[_0x1dc189(0x1803)]=_0x44d30a,_0x13d7c3[_0x1dc189(0x16cb)]=_0x42c34d;function _0x44d30a(){const _0x59e540=_0x1dc189;_0x13d7c3[_0x59e540(0xbae)]=[];const _0x327227=[];_0x13d7c3[_0x59e540(0x67b)][_0x59e540(0x2185)]&&_0x13d7c3[_0x59e540(0x67b)][_0x59e540(0x2185)]['toLowerCase']()==='outbound'&&_0x13d7c3[_0x59e540(0x67b)][_0x59e540(0x4f4)]===_0x59e540(0x17b6)&&(_0x13d7c3[_0x59e540(0x67b)][_0x59e540(0x267a)]=_0x8cb0b4[_0x59e540(0x242b)]?(_0x13d7c3['close'][_0x59e540(0x2524)]||'')+_0x59e540(0x1a75)+_0x8cb0b4[_0x59e540(0x242b)]+'}':(_0x13d7c3['close'][_0x59e540(0x2524)]||'')+_0x59e540(0x5ad),_0x8cb0b4['recordingFormat']!==_0x59e540(0x2507)?_0x13d7c3[_0x59e540(0x67b)]['options'][_0x59e540(0x1b28)](_0x59e540(0x13e0))<0x0&&(_0x13d7c3[_0x59e540(0x67b)]['options']+=_0x59e540(0x13e0)):_0x13d7c3['close'][_0x59e540(0x59e)]=_0x13d7c3[_0x59e540(0x67b)][_0x59e540(0x59e)][_0x59e540(0x1353)]('U(xcally-mixmonitor-context)',''));if(_0x13d7c3[_0x59e540(0x67b)][_0x59e540(0x4f4)]&&_0x13d7c3['close'][_0x59e540(0x4f4)]===_0x59e540(0x1ad6)){}else switch((_0x13d7c3['close']['app']||_0x13d7c3[_0x59e540(0x67b)][_0x59e540(0x4f4)])[_0x59e540(0x2554)]()){case _0x59e540(0x1979):_0x13d7c3['close'][_0x59e540(0xacb)]=_0x13d7c3[_0x59e540(0x67b)][_0x59e540(0x2494)]+'='+_0x13d7c3[_0x59e540(0x67b)][_0x59e540(0x1096)];break;case _0x59e540(0x1ad6):break;default:_0x327227[0x0]=_0x13d7c3['close'][_0x59e540(0x168b)],_0x13d7c3[_0x59e540(0x67b)][_0x59e540(0xacb)]=_0x327227['join'](',');}_0x42c34d(_0x13d7c3['close']);}function _0x42c34d(_0x5efe70){const _0x30cd21=_0x1dc189;_0x4a09c7[_0x30cd21(0x268e)](_0x5efe70);}}const _0x3a069b=_0x4991b2;;_0x2934a6['$inject']=['$mdDialog','$q',_0x49a1e3(0x680),'smsAccountApp','smsAccount','api','Auth','crudPermissions'];function _0x2934a6(_0x28592e,_0xd097c9,_0x2ac4f9,_0x410eef,_0x4bf9b6,_0x38f4fd,_0x2a95e1,_0x255cbf){const _0x5d280c=_0x49a1e3,_0x56a381=this;_0x56a381[_0x5d280c(0x1d3d)]=_0x2a95e1['getCurrentUser'](),_0x56a381[_0x5d280c(0xbae)]=[],_0x56a381['title']=_0x5d280c(0x26c7)+(_0x410eef[_0x5d280c(0x4f4)]||_0x410eef['app'])[_0x5d280c(0xa3c)](),_0x56a381[_0x5d280c(0x1084)]=angular[_0x5d280c(0x289e)](_0x410eef),_0x56a381[_0x5d280c(0x402)]=_0x255cbf,_0x56a381[_0x5d280c(0x6c2)]={};if(_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0xacb)])switch(_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x4f4)]?_0x56a381[_0x5d280c(0x1084)]['appType'][_0x5d280c(0x2554)]():_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x16e1)][_0x5d280c(0x2554)]()){case'custom':break;case _0x5d280c(0x1084):{const _0x27e469=_0x56a381['dialogflow']['appdata'][_0x5d280c(0x282c)](',');_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x2125)]=_0x27e469[0x0],_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x1cbd)]=_0x27e469[0x1],_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x31b)]=_0x27e469[_0x5d280c(0x142e)](0x2,_0x27e469[_0x5d280c(0x1b9e)])[_0x5d280c(0x9a6)](',');}break;case'dialogflowv2':{const _0x1fdfae=_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0xacb)][_0x5d280c(0x282c)](',');_0x56a381['dialogflow'][_0x5d280c(0xbfd)]=_0x1fdfae[0x0],_0x56a381['dialogflow'][_0x5d280c(0x4b2)]=_0x1fdfae[0x1],_0x56a381[_0x5d280c(0x1084)]['privateKey']=_0x1fdfae[0x2],_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x1cbd)]=_0x1fdfae[0x3],_0x56a381['dialogflow'][_0x5d280c(0x31b)]=_0x1fdfae[_0x5d280c(0x142e)](0x4,_0x1fdfae[_0x5d280c(0x1b9e)])[_0x5d280c(0x9a6)](',');}break;case _0x5d280c(0x290d):{const _0x285a97=_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0xacb)][_0x5d280c(0x282c)](',');_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x1466)]=_0x285a97[0x0],_0x56a381['dialogflow']['secretaccesskey']=_0x285a97[0x1],_0x56a381[_0x5d280c(0x1084)]['lexregion']=_0x285a97[0x2],_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x2797)]=_0x285a97[0x3],_0x56a381[_0x5d280c(0x1084)]['welcomemessage']=_0x285a97[_0x5d280c(0x142e)](0x4,_0x285a97[_0x5d280c(0x1b9e)])[_0x5d280c(0x9a6)](',');}break;case _0x5d280c(0x21a9):{const _0x3f5ce4=_0x56a381['dialogflow'][_0x5d280c(0xacb)]['split'](',');_0x56a381['dialogflow'][_0x5d280c(0x95f)]=isNaN(_0x3f5ce4[0x0])?_0x3f5ce4[0x0]:parseInt(_0x3f5ce4[0x0],0xa),_0x56a381['dialogflow'][_0x5d280c(0x39b)]=_0x3f5ce4[_0x5d280c(0x142e)](0x1,_0x3f5ce4['length'])[_0x5d280c(0x9a6)](',');}break;case _0x5d280c(0x18ca):_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x39b)]=_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0xacb)];break;case _0x5d280c(0x1979):_0x56a381[_0x5d280c(0x1084)]['name']=_0x56a381['dialogflow'][_0x5d280c(0xacb)][_0x5d280c(0x282c)]('=')[0x0],_0x56a381['dialogflow'][_0x5d280c(0x1096)]=_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0xacb)][_0x5d280c(0x282c)]('=')[0x1];break;case _0x5d280c(0x1e67):_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x1bd9)]=_0x56a381[_0x5d280c(0x1084)]['appdata'];break;default:{const _0x2be9f1=_0x56a381['dialogflow']['appdata'][_0x5d280c(0x282c)](',');_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x2125)]=_0x28c606()[_0x5d280c(0x940)](_0x2be9f1[0x0])?_0x2be9f1[0x0]:isNaN(_0x2be9f1[0x0])?_0x2be9f1[0x0]:parseInt(_0x2be9f1[0x0],0xa),_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x1cbd)]=_0x28c606()[_0x5d280c(0x940)](_0x2be9f1[0x1])?_0x2be9f1[0x1]:isNaN(_0x2be9f1[0x1])?_0x2be9f1[0x1]:parseInt(_0x2be9f1[0x1],0xa),_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x31b)]=_0x28c606()[_0x5d280c(0x940)](_0x2be9f1[0x2])?_0x2be9f1[0x2]:isNaN(_0x2be9f1[0x2])?_0x2be9f1[0x2]:parseInt(_0x2be9f1[0x2],0xa);}break;}else _0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x1cbd)]='en';_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x2185)]&&_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x2185)]['toLowerCase']()===_0x5d280c(0xbce)&&_0x56a381['dialogflow'][_0x5d280c(0x4f4)][_0x5d280c(0x2554)]()===_0x5d280c(0x20eb)&&(_0x56a381[_0x5d280c(0x1084)]['prefix']=_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x267a)]?_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x267a)][_0x5d280c(0x282c)]('$')[0x0]:undefined,_0x56a381[_0x5d280c(0x1084)]['callerId']=_0x56a381[_0x5d280c(0x1084)][_0x5d280c(0x1abe)]?'CALLERID(all)='+_0x56a381[_0x5d280c(0x1084)]['callerID']:undefined);_0x56a381[_0x5d280c(0x1803)]=_0x1cbda9,_0x56a381[_0x5d280c(0x16cb)]=_0x23e60e;function _0x1cbda9(){const _0x10a0dc=_0x5d280c;_0x56a381['errors']=[];const _0x3d0d=[];_0x56a381[_0x10a0dc(0x1084)]['type']&&_0x56a381[_0x10a0dc(0x1084)]['type'][_0x10a0dc(0x2554)]()===_0x10a0dc(0xbce)&&_0x56a381[_0x10a0dc(0x1084)]['appType']==='outboundDial'&&(_0x56a381[_0x10a0dc(0x1084)][_0x10a0dc(0x267a)]=_0x4bf9b6[_0x10a0dc(0x242b)]?(_0x56a381[_0x10a0dc(0x1084)][_0x10a0dc(0x2524)]||'')+_0x10a0dc(0x1a75)+_0x4bf9b6[_0x10a0dc(0x242b)]+'}':(_0x56a381[_0x10a0dc(0x1084)][_0x10a0dc(0x2524)]||'')+_0x10a0dc(0x5ad),_0x4bf9b6[_0x10a0dc(0x1097)]!==_0x10a0dc(0x2507)?_0x56a381['dialogflow'][_0x10a0dc(0x59e)]['indexOf'](_0x10a0dc(0x13e0))<0x0&&(_0x56a381[_0x10a0dc(0x1084)]['options']+=_0x10a0dc(0x13e0)):_0x56a381[_0x10a0dc(0x1084)][_0x10a0dc(0x59e)]=_0x56a381[_0x10a0dc(0x1084)][_0x10a0dc(0x59e)][_0x10a0dc(0x1353)]('U(xcally-mixmonitor-context)',''));if(_0x56a381[_0x10a0dc(0x1084)][_0x10a0dc(0x4f4)]&&_0x56a381[_0x10a0dc(0x1084)][_0x10a0dc(0x4f4)]===_0x10a0dc(0x1ad6)){}else switch((_0x56a381[_0x10a0dc(0x1084)][_0x10a0dc(0x16e1)]||_0x56a381[_0x10a0dc(0x1084)][_0x10a0dc(0x4f4)])[_0x10a0dc(0x2554)]()){case _0x10a0dc(0x1979):_0x56a381[_0x10a0dc(0x1084)][_0x10a0dc(0xacb)]=_0x56a381[_0x10a0dc(0x1084)][_0x10a0dc(0x2494)]+'='+_0x56a381[_0x10a0dc(0x1084)][_0x10a0dc(0x1096)];break;case _0x10a0dc(0x1ad6):break;default:_0x3d0d[0x0]=_0x56a381[_0x10a0dc(0x1084)][_0x10a0dc(0x2125)],_0x3d0d[0x1]=_0x56a381[_0x10a0dc(0x1084)]['language'],_0x3d0d[0x2]=_0x56a381['dialogflow']['welcomemessage'],_0x56a381[_0x10a0dc(0x1084)][_0x10a0dc(0xacb)]=_0x3d0d['join'](',');}_0x23e60e(_0x56a381['dialogflow']);}function _0x23e60e(_0x428f72){const _0x5b0685=_0x5d280c;_0x28592e[_0x5b0685(0x268e)](_0x428f72);}}const _0x32858e=_0x2934a6;;_0x43a757[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0x1f1),'smsAccount',_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x402)];function _0x43a757(_0xe60eb,_0x5cb0cb,_0x483ae1,_0xa98c72,_0x41734d,_0x432888,_0x6c2bff,_0x1032a6){const _0x492816=_0x49a1e3,_0x24b350=this;_0x24b350[_0x492816(0x1d3d)]=_0x6c2bff[_0x492816(0x808)](),_0x24b350[_0x492816(0xbae)]=[],_0x24b350[_0x492816(0x2021)]='SMS.EDIT_'+(_0xa98c72[_0x492816(0x4f4)]||_0xa98c72[_0x492816(0x16e1)])[_0x492816(0xa3c)](),_0x24b350[_0x492816(0x614)]=angular['copy'](_0xa98c72),_0x24b350['crudPermissions']=_0x1032a6,_0x24b350[_0x492816(0x6c2)]={};if(_0x24b350[_0x492816(0x614)]['appdata'])switch(_0x24b350['gotoif']['appType']?_0x24b350[_0x492816(0x614)]['appType'][_0x492816(0x2554)]():_0x24b350['gotoif'][_0x492816(0x16e1)][_0x492816(0x2554)]()){case _0x492816(0x1ad6):break;case _0x492816(0x1084):{const _0x41065e=_0x24b350[_0x492816(0x614)][_0x492816(0xacb)][_0x492816(0x282c)](',');_0x24b350[_0x492816(0x614)][_0x492816(0x2125)]=_0x41065e[0x0],_0x24b350['gotoif'][_0x492816(0x1cbd)]=_0x41065e[0x1],_0x24b350[_0x492816(0x614)][_0x492816(0x31b)]=_0x41065e[_0x492816(0x142e)](0x2,_0x41065e[_0x492816(0x1b9e)])[_0x492816(0x9a6)](',');}break;case _0x492816(0x1b1a):{const _0x427b2c=_0x24b350[_0x492816(0x614)][_0x492816(0xacb)][_0x492816(0x282c)](',');_0x24b350['gotoif']['projectId']=_0x427b2c[0x0],_0x24b350[_0x492816(0x614)][_0x492816(0x4b2)]=_0x427b2c[0x1],_0x24b350[_0x492816(0x614)][_0x492816(0x1b1b)]=_0x427b2c[0x2],_0x24b350['gotoif']['language']=_0x427b2c[0x3],_0x24b350['gotoif'][_0x492816(0x31b)]=_0x427b2c['slice'](0x4,_0x427b2c[_0x492816(0x1b9e)])[_0x492816(0x9a6)](',');}break;case _0x492816(0x290d):{const _0x2ca05e=_0x24b350[_0x492816(0x614)][_0x492816(0xacb)][_0x492816(0x282c)](',');_0x24b350[_0x492816(0x614)][_0x492816(0x1466)]=_0x2ca05e[0x0],_0x24b350[_0x492816(0x614)]['secretaccesskey']=_0x2ca05e[0x1],_0x24b350[_0x492816(0x614)][_0x492816(0x17a2)]=_0x2ca05e[0x2],_0x24b350[_0x492816(0x614)]['botname']=_0x2ca05e[0x3],_0x24b350[_0x492816(0x614)][_0x492816(0x31b)]=_0x2ca05e[_0x492816(0x142e)](0x4,_0x2ca05e[_0x492816(0x1b9e)])[_0x492816(0x9a6)](',');}break;case _0x492816(0x21a9):{const _0xd71f2e=_0x24b350['gotoif']['appdata']['split'](',');_0x24b350[_0x492816(0x614)]['times']=isNaN(_0xd71f2e[0x0])?_0xd71f2e[0x0]:parseInt(_0xd71f2e[0x0],0xa),_0x24b350['gotoif'][_0x492816(0x39b)]=_0xd71f2e[_0x492816(0x142e)](0x1,_0xd71f2e[_0x492816(0x1b9e)])['join'](',');}break;case _0x492816(0x18ca):_0x24b350['gotoif'][_0x492816(0x39b)]=_0x24b350[_0x492816(0x614)][_0x492816(0xacb)];break;case _0x492816(0x1979):_0x24b350['gotoif'][_0x492816(0x2494)]=_0x24b350['gotoif'][_0x492816(0xacb)][_0x492816(0x282c)]('=')[0x0],_0x24b350['gotoif'][_0x492816(0x1096)]=_0x24b350[_0x492816(0x614)][_0x492816(0xacb)][_0x492816(0x282c)]('=')[0x1];break;case'agi':_0x24b350[_0x492816(0x614)][_0x492816(0x1bd9)]=_0x24b350[_0x492816(0x614)][_0x492816(0xacb)];break;default:{const _0x242fc0=_0x24b350[_0x492816(0x614)][_0x492816(0xacb)]['split'](',');_0x24b350[_0x492816(0x614)][_0x492816(0xeea)]=_0x28c606()[_0x492816(0x940)](_0x242fc0[0x0])?_0x242fc0[0x0]:isNaN(_0x242fc0[0x0])?_0x242fc0[0x0]:parseInt(_0x242fc0[0x0],0xa),_0x24b350[_0x492816(0x614)]['truepriority']=_0x28c606()['isEmpty'](_0x242fc0[0x1])?_0x242fc0[0x1]:isNaN(_0x242fc0[0x1])?_0x242fc0[0x1]:parseInt(_0x242fc0[0x1],0xa),_0x24b350[_0x492816(0x614)]['falsepriority']=_0x28c606()[_0x492816(0x940)](_0x242fc0[0x2])?_0x242fc0[0x2]:isNaN(_0x242fc0[0x2])?_0x242fc0[0x2]:parseInt(_0x242fc0[0x2],0xa);}break;}else{}_0x24b350[_0x492816(0x614)]['type']&&_0x24b350[_0x492816(0x614)][_0x492816(0x2185)][_0x492816(0x2554)]()===_0x492816(0xbce)&&_0x24b350['gotoif'][_0x492816(0x4f4)][_0x492816(0x2554)]()==='outbounddial'&&(_0x24b350['gotoif'][_0x492816(0x2524)]=_0x24b350['gotoif'][_0x492816(0x267a)]?_0x24b350[_0x492816(0x614)][_0x492816(0x267a)]['split']('$')[0x0]:undefined,_0x24b350[_0x492816(0x614)][_0x492816(0x1a9b)]=_0x24b350['gotoif']['callerID']?_0x492816(0x2489)+_0x24b350[_0x492816(0x614)][_0x492816(0x1abe)]:undefined);_0x24b350[_0x492816(0x1803)]=_0x29efa4,_0x24b350[_0x492816(0x16cb)]=_0x1d6e7f;function _0x29efa4(){const _0xfd533b=_0x492816;_0x24b350[_0xfd533b(0xbae)]=[];const _0x53606a=[];_0x24b350[_0xfd533b(0x614)][_0xfd533b(0x2185)]&&_0x24b350[_0xfd533b(0x614)]['type'][_0xfd533b(0x2554)]()===_0xfd533b(0xbce)&&_0x24b350[_0xfd533b(0x614)][_0xfd533b(0x4f4)]===_0xfd533b(0x17b6)&&(_0x24b350[_0xfd533b(0x614)][_0xfd533b(0x267a)]=_0x41734d[_0xfd533b(0x242b)]?(_0x24b350['gotoif'][_0xfd533b(0x2524)]||'')+_0xfd533b(0x1a75)+_0x41734d[_0xfd533b(0x242b)]+'}':(_0x24b350[_0xfd533b(0x614)][_0xfd533b(0x2524)]||'')+_0xfd533b(0x5ad),_0x41734d[_0xfd533b(0x1097)]!==_0xfd533b(0x2507)?_0x24b350[_0xfd533b(0x614)]['options'][_0xfd533b(0x1b28)](_0xfd533b(0x13e0))<0x0&&(_0x24b350['gotoif'][_0xfd533b(0x59e)]+=_0xfd533b(0x13e0)):_0x24b350['gotoif'][_0xfd533b(0x59e)]=_0x24b350['gotoif'][_0xfd533b(0x59e)][_0xfd533b(0x1353)]('U(xcally-mixmonitor-context)',''));if(_0x24b350[_0xfd533b(0x614)][_0xfd533b(0x4f4)]&&_0x24b350[_0xfd533b(0x614)]['appType']===_0xfd533b(0x1ad6)){}else switch((_0x24b350[_0xfd533b(0x614)][_0xfd533b(0x16e1)]||_0x24b350[_0xfd533b(0x614)][_0xfd533b(0x4f4)])[_0xfd533b(0x2554)]()){case'set':_0x24b350[_0xfd533b(0x614)][_0xfd533b(0xacb)]=_0x24b350[_0xfd533b(0x614)][_0xfd533b(0x2494)]+'='+_0x24b350['gotoif']['value'];break;case _0xfd533b(0x1ad6):break;default:_0x53606a[0x0]=_0x24b350['gotoif'][_0xfd533b(0xeea)],_0x53606a[0x1]=_0x24b350[_0xfd533b(0x614)]['truepriority'],_0x53606a[0x2]=_0x24b350[_0xfd533b(0x614)][_0xfd533b(0x1d32)],_0x24b350[_0xfd533b(0x614)][_0xfd533b(0xacb)]=_0x53606a[_0xfd533b(0x9a6)](',');}_0x1d6e7f(_0x24b350['gotoif']);}function _0x1d6e7f(_0xd7ca86){const _0x6e7a93=_0x492816;_0xe60eb[_0x6e7a93(0x268e)](_0xd7ca86);}}const _0x32e3ba=_0x43a757;;_0x515dfd['$inject']=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x1f1),_0x49a1e3(0x1512),'api',_0x49a1e3(0xdcf),'crudPermissions'];function _0x515dfd(_0x5ac13f,_0x57b13a,_0x21b502,_0x3f4def,_0x2fbabf,_0x4614a1,_0x1f1210,_0xc7f3ab){const _0x3adf82=_0x49a1e3,_0x22ab0d=this;_0x22ab0d['currentUser']=_0x1f1210[_0x3adf82(0x808)](),_0x22ab0d[_0x3adf82(0xbae)]=[],_0x22ab0d[_0x3adf82(0x2021)]=_0x3adf82(0x26c7)+(_0x3f4def[_0x3adf82(0x4f4)]||_0x3f4def[_0x3adf82(0x16e1)])['toUpperCase'](),_0x22ab0d[_0x3adf82(0x2046)]=angular[_0x3adf82(0x289e)](_0x3f4def),_0x22ab0d['crudPermissions']=_0xc7f3ab,_0x22ab0d[_0x3adf82(0x6c2)]={};if(_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0xacb)])switch(_0x22ab0d['gotop']['appType']?_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x4f4)][_0x3adf82(0x2554)]():_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x16e1)][_0x3adf82(0x2554)]()){case _0x3adf82(0x1ad6):break;case _0x3adf82(0x1084):{const _0xa6ab3f=_0x22ab0d['gotop'][_0x3adf82(0xacb)][_0x3adf82(0x282c)](',');_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x2125)]=_0xa6ab3f[0x0],_0x22ab0d[_0x3adf82(0x2046)]['language']=_0xa6ab3f[0x1],_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x31b)]=_0xa6ab3f[_0x3adf82(0x142e)](0x2,_0xa6ab3f[_0x3adf82(0x1b9e)])[_0x3adf82(0x9a6)](',');}break;case _0x3adf82(0x1b1a):{const _0x2f4e3e=_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0xacb)]['split'](',');_0x22ab0d['gotop']['projectId']=_0x2f4e3e[0x0],_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x4b2)]=_0x2f4e3e[0x1],_0x22ab0d['gotop'][_0x3adf82(0x1b1b)]=_0x2f4e3e[0x2],_0x22ab0d['gotop'][_0x3adf82(0x1cbd)]=_0x2f4e3e[0x3],_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x31b)]=_0x2f4e3e[_0x3adf82(0x142e)](0x4,_0x2f4e3e['length'])[_0x3adf82(0x9a6)](',');}break;case _0x3adf82(0x290d):{const _0x3b8a38=_0x22ab0d[_0x3adf82(0x2046)]['appdata'][_0x3adf82(0x282c)](',');_0x22ab0d[_0x3adf82(0x2046)]['accesskeyid']=_0x3b8a38[0x0],_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x1b1)]=_0x3b8a38[0x1],_0x22ab0d['gotop'][_0x3adf82(0x17a2)]=_0x3b8a38[0x2],_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x2797)]=_0x3b8a38[0x3],_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x31b)]=_0x3b8a38[_0x3adf82(0x142e)](0x4,_0x3b8a38['length'])[_0x3adf82(0x9a6)](',');}break;case _0x3adf82(0x21a9):{const _0x1e7482=_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0xacb)][_0x3adf82(0x282c)](',');_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x95f)]=isNaN(_0x1e7482[0x0])?_0x1e7482[0x0]:parseInt(_0x1e7482[0x0],0xa),_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x39b)]=_0x1e7482[_0x3adf82(0x142e)](0x1,_0x1e7482[_0x3adf82(0x1b9e)])[_0x3adf82(0x9a6)](',');}break;case _0x3adf82(0x18ca):_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x39b)]=_0x22ab0d[_0x3adf82(0x2046)]['appdata'];break;case'set':_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x2494)]=_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0xacb)][_0x3adf82(0x282c)]('=')[0x0],_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x1096)]=_0x22ab0d[_0x3adf82(0x2046)]['appdata']['split']('=')[0x1];break;case _0x3adf82(0x1e67):_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x1bd9)]=_0x22ab0d['gotop'][_0x3adf82(0xacb)];break;default:{const _0x166e81=_0x22ab0d['gotop'][_0x3adf82(0xacb)]['split'](',');_0x22ab0d[_0x3adf82(0x2046)]['priority']=_0x28c606()[_0x3adf82(0x940)](_0x166e81[0x0])?_0x166e81[0x0]:isNaN(_0x166e81[0x0])?_0x166e81[0x0]:parseInt(_0x166e81[0x0],0xa);}break;}else{}_0x22ab0d[_0x3adf82(0x2046)]['type']&&_0x22ab0d['gotop'][_0x3adf82(0x2185)][_0x3adf82(0x2554)]()===_0x3adf82(0xbce)&&_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x4f4)][_0x3adf82(0x2554)]()==='outbounddial'&&(_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x2524)]=_0x22ab0d['gotop'][_0x3adf82(0x267a)]?_0x22ab0d['gotop'][_0x3adf82(0x267a)][_0x3adf82(0x282c)]('$')[0x0]:undefined,_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x1a9b)]=_0x22ab0d[_0x3adf82(0x2046)][_0x3adf82(0x1abe)]?'CALLERID(all)='+_0x22ab0d[_0x3adf82(0x2046)]['callerID']:undefined);_0x22ab0d[_0x3adf82(0x1803)]=_0x3cb309,_0x22ab0d[_0x3adf82(0x16cb)]=_0x1b9dc7;function _0x3cb309(){const _0x108f2d=_0x3adf82;_0x22ab0d[_0x108f2d(0xbae)]=[];const _0x206472=[];_0x22ab0d[_0x108f2d(0x2046)]['type']&&_0x22ab0d['gotop'][_0x108f2d(0x2185)][_0x108f2d(0x2554)]()===_0x108f2d(0xbce)&&_0x22ab0d[_0x108f2d(0x2046)]['appType']===_0x108f2d(0x17b6)&&(_0x22ab0d[_0x108f2d(0x2046)][_0x108f2d(0x267a)]=_0x2fbabf[_0x108f2d(0x242b)]?(_0x22ab0d[_0x108f2d(0x2046)][_0x108f2d(0x2524)]||'')+_0x108f2d(0x1a75)+_0x2fbabf[_0x108f2d(0x242b)]+'}':(_0x22ab0d['gotop'][_0x108f2d(0x2524)]||'')+_0x108f2d(0x5ad),_0x2fbabf['recordingFormat']!=='none'?_0x22ab0d[_0x108f2d(0x2046)]['options'][_0x108f2d(0x1b28)](_0x108f2d(0x13e0))<0x0&&(_0x22ab0d[_0x108f2d(0x2046)][_0x108f2d(0x59e)]+=_0x108f2d(0x13e0)):_0x22ab0d[_0x108f2d(0x2046)][_0x108f2d(0x59e)]=_0x22ab0d[_0x108f2d(0x2046)][_0x108f2d(0x59e)][_0x108f2d(0x1353)](_0x108f2d(0x13e0),''));if(_0x22ab0d[_0x108f2d(0x2046)][_0x108f2d(0x4f4)]&&_0x22ab0d[_0x108f2d(0x2046)][_0x108f2d(0x4f4)]===_0x108f2d(0x1ad6)){}else switch((_0x22ab0d[_0x108f2d(0x2046)]['app']||_0x22ab0d[_0x108f2d(0x2046)]['appType'])['toLowerCase']()){case'set':_0x22ab0d[_0x108f2d(0x2046)][_0x108f2d(0xacb)]=_0x22ab0d['gotop'][_0x108f2d(0x2494)]+'='+_0x22ab0d['gotop'][_0x108f2d(0x1096)];break;case _0x108f2d(0x1ad6):break;default:_0x206472[0x0]=_0x22ab0d[_0x108f2d(0x2046)][_0x108f2d(0x1095)],_0x22ab0d[_0x108f2d(0x2046)]['appdata']=_0x206472[_0x108f2d(0x9a6)](',');}_0x1b9dc7(_0x22ab0d[_0x108f2d(0x2046)]);}function _0x1b9dc7(_0xa6aee2){_0x5ac13f['hide'](_0xa6aee2);}}const _0x29960b=_0x515dfd;;_0x1fea96[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x212a),_0x49a1e3(0x611),'IndexFactory',_0x49a1e3(0xcfd),_0x49a1e3(0x15e4),_0x49a1e3(0x680),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x1fea96(_0xaa8c4f,_0x41880a,_0x25bdd0,_0xa3d7f3,_0x428447,_0x32b5c0,_0x102ee8,_0x395bc1,_0x2b47fb,_0x2bdc2b){const _0x5fdf6b=_0x49a1e3,_0x554b25=this;_0x554b25['currentUser']=_0x2b47fb[_0x5fdf6b(0x808)](),_0x554b25['errors']=[],_0x554b25[_0x5fdf6b(0x2021)]='TOOLS.EDIT_INTERVAL',_0x554b25[_0x5fdf6b(0xcfd)]=angular['copy'](_0x428447),_0x554b25[_0x5fdf6b(0x15e4)]=_0x32b5c0,_0x554b25[_0x5fdf6b(0xf18)]=![],_0x554b25[_0x5fdf6b(0x269)]=[_0x5fdf6b(0xa66),_0x5fdf6b(0x1ad6),'list'],_0x554b25[_0x5fdf6b(0x402)]=_0x2bdc2b,_0x554b25[_0x5fdf6b(0x121a)]=_0xa3d7f3[_0x5fdf6b(0x8b9)](),_0x554b25[_0x5fdf6b(0x2391)]=_0xa3d7f3['getMonthNumber'](),_0x554b25['monthName']=_0xa3d7f3[_0x5fdf6b(0x273)](),_0x554b25['daysOfMonth']=_0xa3d7f3[_0x5fdf6b(0xefe)]();if(!_0x554b25[_0x5fdf6b(0xcfd)])_0x554b25['interval']={'interval':'*,*,*,*'},_0x554b25[_0x5fdf6b(0x2185)]=_0x5fdf6b(0xa66),_0x554b25[_0x5fdf6b(0x2021)]=_0x5fdf6b(0xcbc),_0x554b25[_0x5fdf6b(0xf18)]=!![];else{if(_0x554b25[_0x5fdf6b(0xcfd)][_0x5fdf6b(0xcfd)]!==_0x5fdf6b(0x2145)){_0x554b25[_0x5fdf6b(0x2185)]='custom';const _0x1ec47e=_0x554b25['interval'][_0x5fdf6b(0xcfd)][_0x5fdf6b(0x282c)](','),_0x38067a=_0x1ec47e[0x0],_0x2ba44b=_0x1ec47e[0x1],_0x3b61d0=_0x1ec47e[0x2],_0x1f526d=_0x1ec47e[0x3];if(_0x38067a!=='*'){const _0x2866be=_0x38067a[_0x5fdf6b(0x282c)]('-')[0x0],_0x76644b=_0x38067a['split']('-')[0x1];let _0x343d37;_0x343d37=new Date(),_0x343d37[_0x5fdf6b(0x260)](Number(_0x2866be[_0x5fdf6b(0x282c)](':')[0x0])),_0x343d37[_0x5fdf6b(0x1b10)](Number(_0x2866be[_0x5fdf6b(0x282c)](':')[0x1])),_0x554b25['timeRangeFrom']=_0x343d37,_0x343d37=new Date(),_0x343d37[_0x5fdf6b(0x260)](Number(_0x76644b[_0x5fdf6b(0x282c)](':')[0x0])),_0x343d37[_0x5fdf6b(0x1b10)](Number(_0x76644b[_0x5fdf6b(0x282c)](':')[0x1])),_0x554b25[_0x5fdf6b(0x196a)]=_0x343d37;}_0x2ba44b!=='*'&&(_0x554b25[_0x5fdf6b(0xa8e)]=_0x2ba44b['split']('-')[0x0],_0x554b25[_0x5fdf6b(0x1297)]=_0x2ba44b[_0x5fdf6b(0x282c)]('-')[0x1]),_0x3b61d0!=='*'&&(_0x554b25[_0x5fdf6b(0x1e3)]=_0x3b61d0[_0x5fdf6b(0x282c)]('-')[0x0],_0x554b25[_0x5fdf6b(0x15c4)]=_0x3b61d0[_0x5fdf6b(0x282c)]('-')[0x1]),_0x1f526d!=='*'&&(_0x554b25[_0x5fdf6b(0x205f)]=_0x1f526d[_0x5fdf6b(0x282c)]('-')[0x0],_0x554b25[_0x5fdf6b(0x1ea4)]=_0x1f526d[_0x5fdf6b(0x282c)]('-')[0x1]);}else _0x554b25['type']=_0x5fdf6b(0xa66);}_0xaa8c4f[_0x5fdf6b(0x1b48)]['id']&&!_0x554b25[_0x5fdf6b(0xcfd)][_0x5fdf6b(0x2081)]&&(_0x554b25[_0x5fdf6b(0xcfd)][_0x5fdf6b(0xb71)]=_0xaa8c4f[_0x5fdf6b(0x1b48)]['id']);_0x554b25['interval']['IntervalId']&&_0x554b25[_0x5fdf6b(0xcfd)]['application']&&(_0x554b25[_0x5fdf6b(0x2185)]=_0x5fdf6b(0x2764));_0x554b25['addNewInterval']=_0x194a5a,_0x554b25[_0x5fdf6b(0x1f5)]=_0x227923,_0x554b25['closeDialog']=_0x1370f8;_0x554b25['interval'][_0x5fdf6b(0x2081)]&&(_0x2b47fb[_0x5fdf6b(0x4de)]('admin')?_0x395bc1['interval'][_0x5fdf6b(0x896)]({'fields':_0x5fdf6b(0x530),'IntervalId':'null','nolimit':!![]})[_0x5fdf6b(0x15e7)][_0x5fdf6b(0x64a)](function(_0x31e700){const _0xf571f9=_0x5fdf6b;_0x554b25[_0xf571f9(0x15e4)]=_0x31e700[_0xf571f9(0x28b8)]||[];})[_0x5fdf6b(0x20cd)](function(_0x16e370){const _0x32b280=_0x5fdf6b;_0x102ee8[_0x32b280(0x1bd0)]({'title':_0x16e370[_0x32b280(0x10b3)]?'API:'+_0x16e370[_0x32b280(0x10b3)]+_0x32b280(0x21db)+_0x16e370[_0x32b280(0x2115)]:_0x32b280(0xbfb),'msg':_0x16e370[_0x32b280(0x1c52)]?JSON[_0x32b280(0x2317)](_0x16e370['data']):_0x16e370[_0x32b280(0x2915)]()});}):_0x395bc1[_0x5fdf6b(0xcfd)]['get']({'fields':'id,name,interval,IntervalId','IntervalId':'null','nolimit':!![]})[_0x5fdf6b(0x15e7)][_0x5fdf6b(0x64a)](function(_0x2b86fe){const _0xb38610=_0x5fdf6b;_0x554b25[_0xb38610(0x15e4)]=_0x2b86fe[_0xb38610(0x28b8)]||[];})[_0x5fdf6b(0x64a)](function(){const _0x253eeb=_0x5fdf6b;return _0x395bc1[_0x253eeb(0x16b2)]['get']({'userProfileId':_0x554b25[_0x253eeb(0x1d3d)]['userProfileId'],'sectionId':0x3ec})[_0x253eeb(0x15e7)];})[_0x5fdf6b(0x64a)](function(_0x1d1e9a){const _0x3c2b00=_0x5fdf6b,_0x23f9df=_0x1d1e9a&&_0x1d1e9a[_0x3c2b00(0x28b8)]?_0x1d1e9a[_0x3c2b00(0x28b8)][0x0]:null;if(!_0x23f9df)_0x554b25[_0x3c2b00(0x15e4)]=[];else{if(!_0x23f9df[_0x3c2b00(0x11da)])return _0x395bc1[_0x3c2b00(0x1617)][_0x3c2b00(0x896)]({'sectionId':_0x23f9df['id']})[_0x3c2b00(0x15e7)]['then'](function(_0x473b84){const _0x49e39d=_0x3c2b00,_0xa59a69=_0x473b84&&_0x473b84[_0x49e39d(0x28b8)]?_0x473b84[_0x49e39d(0x28b8)]:[],_0x16338d=[];let _0x16323c=null;_0x554b25[_0x49e39d(0xcfd)]&&(_0x16323c=_0x28c606()[_0x49e39d(0x27bc)](_0x554b25[_0x49e39d(0x15e4)],{'name':_0x554b25[_0x49e39d(0xcfd)][_0x49e39d(0xb71)]})),_0x16323c&&!_0x28c606()[_0x49e39d(0x25f8)](_0xa59a69,[_0x49e39d(0x145),_0x16323c['id']])&&_0x554b25[_0x49e39d(0x15e4)][_0x49e39d(0x1397)](function(_0xc75cb1){_0xc75cb1['id']===_0x16323c['id']&&(_0xc75cb1['canSelect']=![],_0x16338d['push'](_0xc75cb1));}),_0x554b25[_0x49e39d(0x15e4)]=_0x16338d;});}})[_0x5fdf6b(0x20cd)](function(_0x132f5e){const _0x4c18d3=_0x5fdf6b;_0x102ee8[_0x4c18d3(0x1bd0)]({'title':_0x132f5e[_0x4c18d3(0x10b3)]?_0x4c18d3(0x575)+_0x132f5e[_0x4c18d3(0x10b3)]+_0x4c18d3(0x21db)+_0x132f5e[_0x4c18d3(0x2115)]:_0x4c18d3(0xbfb),'msg':_0x132f5e[_0x4c18d3(0x1c52)]?JSON['stringify'](_0x132f5e[_0x4c18d3(0x1c52)]):_0x132f5e[_0x4c18d3(0x2915)]()});}));function _0x5084e5(){const _0x507042=_0x5fdf6b;switch(_0x554b25[_0x507042(0x2185)]){case _0x507042(0xa66):case _0x507042(0x2764):return _0x507042(0x2145);case _0x507042(0x1ad6):{const _0x56f9a3=[];if(_0x554b25['timeRangeFrom']!=='*'&&_0x554b25[_0x507042(0x268d)]&&_0x554b25['timeRangeTo']){const _0x518070=(_0x554b25[_0x507042(0x268d)][_0x507042(0x48a)]()<0xa?'0':'')+_0x554b25['timeRangeFrom']['getHours']()+':'+((_0x554b25['timeRangeFrom'][_0x507042(0x1894)]()<0xa?'0':'')+_0x554b25[_0x507042(0x268d)][_0x507042(0x1894)]()),_0x21bbd4=(_0x554b25[_0x507042(0x196a)][_0x507042(0x48a)]()<0xa?'0':'')+_0x554b25[_0x507042(0x196a)]['getHours']()+':'+((_0x554b25[_0x507042(0x196a)][_0x507042(0x1894)]()<0xa?'0':'')+_0x554b25['timeRangeTo']['getMinutes']());_0x56f9a3[_0x507042(0x1954)](_0x518070+'-'+_0x21bbd4);}else _0x56f9a3['push']('*');return _0x554b25[_0x507042(0xa8e)]?_0x554b25[_0x507042(0x1297)]?_0x56f9a3[_0x507042(0x1954)](_0x554b25['dayOfWeekFrom']+'-'+_0x554b25[_0x507042(0x1297)]):_0x56f9a3[_0x507042(0x1954)](_0x554b25[_0x507042(0xa8e)]):_0x56f9a3[_0x507042(0x1954)]('*'),_0x554b25[_0x507042(0x1e3)]?_0x554b25['monthDayTo']?_0x56f9a3['push'](_0x554b25[_0x507042(0x1e3)]+'-'+_0x554b25['monthDayTo']):_0x56f9a3['push'](_0x554b25['monthDayFrom']):_0x56f9a3[_0x507042(0x1954)]('*'),_0x554b25[_0x507042(0x205f)]?_0x554b25['monthTo']?_0x56f9a3[_0x507042(0x1954)](_0x554b25[_0x507042(0x205f)]+'-'+_0x554b25[_0x507042(0x1ea4)]):_0x56f9a3['push'](_0x554b25[_0x507042(0x205f)]):_0x56f9a3['push']('*'),_0x56f9a3['join']();}}}function _0x194a5a(){const _0x16e9d5=_0x5fdf6b;_0x554b25['errors']=[],_0x554b25[_0x16e9d5(0xcfd)]['interval']=_0x5084e5(),_0x395bc1[_0x16e9d5(0xcfd)][_0x16e9d5(0x2479)](_0x554b25[_0x16e9d5(0xcfd)])[_0x16e9d5(0x15e7)][_0x16e9d5(0x64a)](function(_0x3c04ab){const _0x154b1a=_0x16e9d5;_0x554b25['intervals'][_0x154b1a(0x1954)](_0x3c04ab),_0x102ee8[_0x154b1a(0x1339)]({'title':_0x154b1a(0x2864),'msg':_0x554b25['interval'][_0x154b1a(0x2494)]?_0x554b25['interval'][_0x154b1a(0x2494)]+_0x154b1a(0x258d):''}),_0x1370f8();})[_0x16e9d5(0x20cd)](function(_0x16c3c5){const _0x4264cd=_0x16e9d5;console[_0x4264cd(0x1bd0)](_0x16c3c5),_0x554b25['errors']=_0x16c3c5[_0x4264cd(0x1c52)][_0x4264cd(0xbae)]||[{'message':_0x16c3c5['toString'](),'type':_0x4264cd(0x12a0)}];});}function _0x227923(){const _0xfd23b8=_0x5fdf6b;_0x554b25[_0xfd23b8(0xbae)]=[],_0x554b25['interval'][_0xfd23b8(0xcfd)]=_0x5084e5(),_0x554b25[_0xfd23b8(0xcfd)][_0xfd23b8(0x2081)]?(_0x554b25[_0xfd23b8(0x2185)]!==_0xfd23b8(0x2764)&&(_0x554b25[_0xfd23b8(0xcfd)]['IntervalId']=null),_0x1370f8(_0x554b25['interval'])):_0x395bc1[_0xfd23b8(0xcfd)][_0xfd23b8(0x2603)]({'id':_0x554b25[_0xfd23b8(0xcfd)]['id']},_0x554b25['interval'])[_0xfd23b8(0x15e7)]['then'](function(_0x9b9b7e){const _0x30c67e=_0xfd23b8,_0x356226=_0x28c606()[_0x30c67e(0x27bc)](_0x554b25[_0x30c67e(0x15e4)],{'id':_0x9b9b7e['id']});_0x356226&&_0x28c606()[_0x30c67e(0x14fe)](_0x356226,_0x9b9b7e),_0x102ee8['success']({'title':'Interval\x20properly\x20saved!','msg':_0x30c67e(0x198)}),_0x1370f8();})['catch'](function(_0x1d52d4){const _0x3d2627=_0xfd23b8;console['error'](_0x1d52d4),_0x554b25['errors']=_0x1d52d4['data'][_0x3d2627(0xbae)]||[{'message':_0x1d52d4[_0x3d2627(0x2915)](),'type':_0x3d2627(0x710)}];});}function _0x1370f8(_0x367a74){const _0x118cd3=_0x5fdf6b;_0x41880a[_0x118cd3(0x268e)](_0x367a74);}}const _0xd8f591=_0x1fea96;;_0x2903ac[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0x1f1),_0x49a1e3(0x1512),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x402)];function _0x2903ac(_0x26c6af,_0x247ec8,_0x58177c,_0x5063d8,_0xffc284,_0x593156,_0x1cd580,_0x594719){const _0x4438a3=_0x49a1e3,_0x5dad40=this;_0x5dad40[_0x4438a3(0x1d3d)]=_0x1cd580['getCurrentUser'](),_0x5dad40[_0x4438a3(0xbae)]=[],_0x5dad40['title']=_0x4438a3(0x26c7)+(_0x5063d8[_0x4438a3(0x4f4)]||_0x5063d8['app'])['toUpperCase'](),_0x5dad40[_0x4438a3(0xbb6)]=angular[_0x4438a3(0x289e)](_0x5063d8),_0x5dad40[_0x4438a3(0x402)]=_0x594719,_0x5dad40[_0x4438a3(0x6c2)]={};if(_0x5dad40['noop'][_0x4438a3(0xacb)])switch(_0x5dad40['noop'][_0x4438a3(0x4f4)]?_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x4f4)][_0x4438a3(0x2554)]():_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x16e1)][_0x4438a3(0x2554)]()){case _0x4438a3(0x1ad6):break;case _0x4438a3(0x1084):{const _0x31afef=_0x5dad40['noop'][_0x4438a3(0xacb)][_0x4438a3(0x282c)](',');_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x2125)]=_0x31afef[0x0],_0x5dad40['noop'][_0x4438a3(0x1cbd)]=_0x31afef[0x1],_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x31b)]=_0x31afef[_0x4438a3(0x142e)](0x2,_0x31afef[_0x4438a3(0x1b9e)])[_0x4438a3(0x9a6)](',');}break;case _0x4438a3(0x1b1a):{const _0x33eb5c=_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0xacb)][_0x4438a3(0x282c)](',');_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0xbfd)]=_0x33eb5c[0x0],_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x4b2)]=_0x33eb5c[0x1],_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x1b1b)]=_0x33eb5c[0x2],_0x5dad40[_0x4438a3(0xbb6)]['language']=_0x33eb5c[0x3],_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x31b)]=_0x33eb5c[_0x4438a3(0x142e)](0x4,_0x33eb5c[_0x4438a3(0x1b9e)])[_0x4438a3(0x9a6)](',');}break;case _0x4438a3(0x290d):{const _0x46cfc5=_0x5dad40['noop']['appdata']['split'](',');_0x5dad40['noop'][_0x4438a3(0x1466)]=_0x46cfc5[0x0],_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x1b1)]=_0x46cfc5[0x1],_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x17a2)]=_0x46cfc5[0x2],_0x5dad40[_0x4438a3(0xbb6)]['botname']=_0x46cfc5[0x3],_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x31b)]=_0x46cfc5[_0x4438a3(0x142e)](0x4,_0x46cfc5[_0x4438a3(0x1b9e)])[_0x4438a3(0x9a6)](',');}break;case _0x4438a3(0x21a9):{const _0x204092=_0x5dad40['noop'][_0x4438a3(0xacb)]['split'](',');_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x95f)]=isNaN(_0x204092[0x0])?_0x204092[0x0]:parseInt(_0x204092[0x0],0xa),_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x39b)]=_0x204092['slice'](0x1,_0x204092[_0x4438a3(0x1b9e)])[_0x4438a3(0x9a6)](',');}break;case _0x4438a3(0x18ca):_0x5dad40[_0x4438a3(0xbb6)]['text']=_0x5dad40['noop'][_0x4438a3(0xacb)];break;case'set':_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x2494)]=_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0xacb)]['split']('=')[0x0],_0x5dad40['noop'][_0x4438a3(0x1096)]=_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0xacb)][_0x4438a3(0x282c)]('=')[0x1];break;case'agi':_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x1bd9)]=_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0xacb)];break;default:{const _0x3fcd6b=_0x5dad40[_0x4438a3(0xbb6)]['appdata'][_0x4438a3(0x282c)](',');_0x5dad40['noop']['value']=_0x28c606()[_0x4438a3(0x940)](_0x3fcd6b[0x0])?_0x3fcd6b[0x0]:isNaN(_0x3fcd6b[0x0])?_0x3fcd6b[0x0]:parseInt(_0x3fcd6b[0x0],0xa);}break;}else{}_0x5dad40[_0x4438a3(0xbb6)]['type']&&_0x5dad40[_0x4438a3(0xbb6)]['type'][_0x4438a3(0x2554)]()===_0x4438a3(0xbce)&&_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x4f4)][_0x4438a3(0x2554)]()===_0x4438a3(0x20eb)&&(_0x5dad40['noop'][_0x4438a3(0x2524)]=_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x267a)]?_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x267a)][_0x4438a3(0x282c)]('$')[0x0]:undefined,_0x5dad40[_0x4438a3(0xbb6)][_0x4438a3(0x1a9b)]=_0x5dad40['noop']['callerID']?'CALLERID(all)='+_0x5dad40['noop']['callerID']:undefined);_0x5dad40[_0x4438a3(0x1803)]=_0x511281,_0x5dad40[_0x4438a3(0x16cb)]=_0x5f5169;function _0x511281(){const _0x164826=_0x4438a3;_0x5dad40[_0x164826(0xbae)]=[];const _0x29c497=[];_0x5dad40[_0x164826(0xbb6)][_0x164826(0x2185)]&&_0x5dad40[_0x164826(0xbb6)][_0x164826(0x2185)][_0x164826(0x2554)]()===_0x164826(0xbce)&&_0x5dad40[_0x164826(0xbb6)][_0x164826(0x4f4)]==='outboundDial'&&(_0x5dad40['noop'][_0x164826(0x267a)]=_0xffc284[_0x164826(0x242b)]?(_0x5dad40[_0x164826(0xbb6)][_0x164826(0x2524)]||'')+_0x164826(0x1a75)+_0xffc284[_0x164826(0x242b)]+'}':(_0x5dad40['noop'][_0x164826(0x2524)]||'')+'${EXTEN}',_0xffc284[_0x164826(0x1097)]!=='none'?_0x5dad40[_0x164826(0xbb6)][_0x164826(0x59e)]['indexOf'](_0x164826(0x13e0))<0x0&&(_0x5dad40[_0x164826(0xbb6)][_0x164826(0x59e)]+='U(xcally-mixmonitor-context)'):_0x5dad40[_0x164826(0xbb6)][_0x164826(0x59e)]=_0x5dad40[_0x164826(0xbb6)][_0x164826(0x59e)][_0x164826(0x1353)]('U(xcally-mixmonitor-context)',''));if(_0x5dad40['noop'][_0x164826(0x4f4)]&&_0x5dad40[_0x164826(0xbb6)][_0x164826(0x4f4)]===_0x164826(0x1ad6)){}else switch((_0x5dad40[_0x164826(0xbb6)][_0x164826(0x16e1)]||_0x5dad40['noop'][_0x164826(0x4f4)])[_0x164826(0x2554)]()){case'set':_0x5dad40[_0x164826(0xbb6)][_0x164826(0xacb)]=_0x5dad40[_0x164826(0xbb6)]['name']+'='+_0x5dad40[_0x164826(0xbb6)][_0x164826(0x1096)];break;case _0x164826(0x1ad6):break;default:_0x29c497[0x0]=_0x5dad40[_0x164826(0xbb6)]['value'],_0x5dad40[_0x164826(0xbb6)]['appdata']=_0x29c497[_0x164826(0x9a6)](',');}_0x5f5169(_0x5dad40['noop']);}function _0x5f5169(_0x862611){const _0x5aa75b=_0x4438a3;_0x26c6af[_0x5aa75b(0x268e)](_0x862611);}}const _0x4a4d3d=_0x2903ac;;_0x1567b3[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x1f1),_0x49a1e3(0x1512),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x1567b3(_0x31c963,_0x4be150,_0x148adf,_0x50eb53,_0x261d5f,_0x5e2a12,_0xa4a264,_0x1a06fd){const _0x4a3988=_0x49a1e3,_0x5738cb=this;_0x5738cb[_0x4a3988(0x1d3d)]=_0xa4a264[_0x4a3988(0x808)](),_0x5738cb[_0x4a3988(0xbae)]=[],_0x5738cb['title']=_0x4a3988(0x26c7)+(_0x50eb53[_0x4a3988(0x4f4)]||_0x50eb53[_0x4a3988(0x16e1)])[_0x4a3988(0xa3c)](),_0x5738cb[_0x4a3988(0x1e4e)]=angular[_0x4a3988(0x289e)](_0x50eb53),_0x5738cb[_0x4a3988(0x402)]=_0x1a06fd,_0x5738cb[_0x4a3988(0x6c2)]={};if(_0x5738cb[_0x4a3988(0x1e4e)]['appdata'])switch(_0x5738cb['queue'][_0x4a3988(0x4f4)]?_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x4f4)][_0x4a3988(0x2554)]():_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x16e1)]['toLowerCase']()){case _0x4a3988(0x1ad6):break;case _0x4a3988(0x1084):{const _0xe865ac=_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0xacb)][_0x4a3988(0x282c)](',');_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x2125)]=_0xe865ac[0x0],_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x1cbd)]=_0xe865ac[0x1],_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x31b)]=_0xe865ac[_0x4a3988(0x142e)](0x2,_0xe865ac['length'])[_0x4a3988(0x9a6)](',');}break;case _0x4a3988(0x1b1a):{const _0x1e96fb=_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0xacb)][_0x4a3988(0x282c)](',');_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0xbfd)]=_0x1e96fb[0x0],_0x5738cb['queue'][_0x4a3988(0x4b2)]=_0x1e96fb[0x1],_0x5738cb[_0x4a3988(0x1e4e)]['privateKey']=_0x1e96fb[0x2],_0x5738cb['queue'][_0x4a3988(0x1cbd)]=_0x1e96fb[0x3],_0x5738cb[_0x4a3988(0x1e4e)]['welcomemessage']=_0x1e96fb[_0x4a3988(0x142e)](0x4,_0x1e96fb[_0x4a3988(0x1b9e)])[_0x4a3988(0x9a6)](',');}break;case _0x4a3988(0x290d):{const _0x4f7494=_0x5738cb[_0x4a3988(0x1e4e)]['appdata']['split'](',');_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x1466)]=_0x4f7494[0x0],_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x1b1)]=_0x4f7494[0x1],_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x17a2)]=_0x4f7494[0x2],_0x5738cb['queue'][_0x4a3988(0x2797)]=_0x4f7494[0x3],_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x31b)]=_0x4f7494[_0x4a3988(0x142e)](0x4,_0x4f7494['length'])[_0x4a3988(0x9a6)](',');}break;case _0x4a3988(0x21a9):{const _0x883393=_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0xacb)][_0x4a3988(0x282c)](',');_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x95f)]=isNaN(_0x883393[0x0])?_0x883393[0x0]:parseInt(_0x883393[0x0],0xa),_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x39b)]=_0x883393[_0x4a3988(0x142e)](0x1,_0x883393[_0x4a3988(0x1b9e)])[_0x4a3988(0x9a6)](',');}break;case _0x4a3988(0x18ca):_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x39b)]=_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0xacb)];break;case'set':_0x5738cb['queue'][_0x4a3988(0x2494)]=_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0xacb)]['split']('=')[0x0],_0x5738cb[_0x4a3988(0x1e4e)]['value']=_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0xacb)]['split']('=')[0x1];break;case'agi':_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x1bd9)]=_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0xacb)];break;default:{const _0x4ca57b=_0x5738cb['queue'][_0x4a3988(0xacb)][_0x4a3988(0x282c)](',');_0x5738cb['queue'][_0x4a3988(0x1e4e)]=_0x28c606()[_0x4a3988(0x940)](_0x4ca57b[0x0])?_0x4ca57b[0x0]:isNaN(_0x4ca57b[0x0])?_0x4ca57b[0x0]:parseInt(_0x4ca57b[0x0],0xa),_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x16d)]=_0x28c606()[_0x4a3988(0x940)](_0x4ca57b[0x1])?_0x4ca57b[0x1]:isNaN(_0x4ca57b[0x1])?_0x4ca57b[0x1]:parseInt(_0x4ca57b[0x1],0xa);}break;}else _0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x1e4e)]=0x12c,_0x5738cb['queue'][_0x4a3988(0x16d)]=0x12c;_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x2185)]&&_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x2185)][_0x4a3988(0x2554)]()===_0x4a3988(0xbce)&&_0x5738cb[_0x4a3988(0x1e4e)]['appType'][_0x4a3988(0x2554)]()===_0x4a3988(0x20eb)&&(_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x2524)]=_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x267a)]?_0x5738cb[_0x4a3988(0x1e4e)]['phone'][_0x4a3988(0x282c)]('$')[0x0]:undefined,_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x1a9b)]=_0x5738cb[_0x4a3988(0x1e4e)]['callerID']?_0x4a3988(0x2489)+_0x5738cb[_0x4a3988(0x1e4e)][_0x4a3988(0x1abe)]:undefined);_0x5738cb[_0x4a3988(0x1803)]=_0x33e123,_0x5738cb[_0x4a3988(0x16cb)]=_0x166311,_0xa4a264[_0x4a3988(0x4de)]('admin')?_0x5e2a12['smsQueue'][_0x4a3988(0x896)]({'fields':_0x4a3988(0x2ba),'sort':_0x4a3988(0x2494),'nolimit':'true'})['$promise'][_0x4a3988(0x64a)](function(_0x295179){const _0x5a7f15=_0x4a3988;_0x5738cb[_0x5a7f15(0x1c06)]=_0x295179[_0x5a7f15(0x28b8)]||[];})['catch'](function(_0x539190){const _0x127dca=_0x4a3988;_0x148adf[_0x127dca(0x1bd0)]({'title':_0x539190[_0x127dca(0x10b3)]?_0x127dca(0x575)+_0x539190['status']+'\x20-\x20'+_0x539190['statusText']:'SYSTEM:GET_QUEUES','msg':_0x539190[_0x127dca(0x1c52)]?JSON[_0x127dca(0x2317)](_0x539190[_0x127dca(0x1c52)]):_0x539190['toString']()});}):_0x5e2a12[_0x4a3988(0x1957)][_0x4a3988(0x896)]({'fields':_0x4a3988(0x2ba),'sort':_0x4a3988(0x2494),'nolimit':_0x4a3988(0x1685)})[_0x4a3988(0x15e7)][_0x4a3988(0x64a)](function(_0xe41c90){const _0x2e179a=_0x4a3988;_0x5738cb[_0x2e179a(0x1c06)]=_0xe41c90[_0x2e179a(0x28b8)]||[];})[_0x4a3988(0x64a)](function(){const _0x55c2c0=_0x4a3988;return _0x5e2a12[_0x55c2c0(0x16b2)]['get']({'userProfileId':_0x5738cb[_0x55c2c0(0x1d3d)]['userProfileId'],'sectionId':0x2bd})[_0x55c2c0(0x15e7)];})[_0x4a3988(0x64a)](function(_0x14bd15){const _0x27521c=_0x4a3988,_0x437e77=_0x14bd15&&_0x14bd15[_0x27521c(0x28b8)]?_0x14bd15['rows'][0x0]:null;if(!_0x437e77){const _0x58bf7b=[];let _0x49f7e7=null;_0x5738cb['queue']&&(_0x49f7e7=_0x28c606()[_0x27521c(0x27bc)](_0x5738cb[_0x27521c(0x1c06)],{'name':_0x5738cb[_0x27521c(0x1e4e)][_0x27521c(0x1e4e)]}));for(let _0x5557a4=0x0;_0x5557a4<_0x5738cb[_0x27521c(0x1c06)][_0x27521c(0x1b9e)];_0x5557a4++){_0x49f7e7&&_0x5738cb[_0x27521c(0x1c06)][_0x5557a4]['id']===_0x49f7e7['id']&&(_0x5738cb[_0x27521c(0x1c06)][_0x5557a4][_0x27521c(0xd4f)]=![],_0x58bf7b[_0x27521c(0x1954)](_0x5738cb[_0x27521c(0x1c06)][_0x5557a4]));}_0x5738cb[_0x27521c(0x1c06)]=_0x58bf7b;}else{if(!_0x437e77['autoAssociation'])return _0x5e2a12[_0x27521c(0x1617)][_0x27521c(0x896)]({'sectionId':_0x437e77['id']})[_0x27521c(0x15e7)]['then'](function(_0x4e2053){const _0x11f287=_0x27521c,_0x17d97c=_0x28c606()[_0x11f287(0x1de5)](_0x4e2053[_0x11f287(0x28b8)],function(_0x4fc780){const _0x1a1012=_0x11f287;return _0x28c606()[_0x1a1012(0x27bc)](_0x5738cb[_0x1a1012(0x1c06)],{'id':_0x4fc780[_0x1a1012(0x145)]});});let _0x37ac98=null;_0x5738cb[_0x11f287(0x1e4e)]&&(_0x37ac98=_0x28c606()[_0x11f287(0x27bc)](_0x5738cb[_0x11f287(0x1c06)],{'name':_0x5738cb[_0x11f287(0x1e4e)][_0x11f287(0x1e4e)]}));if(_0x37ac98&&!_0x28c606()[_0x11f287(0x25f8)](_0x17d97c,['id',_0x37ac98['id']])){const _0x2cb20a=_0x28c606()[_0x11f287(0x27bc)](_0x5738cb[_0x11f287(0x1c06)],{'id':_0x37ac98['id']});_0x2cb20a[_0x11f287(0xd4f)]=![],_0x17d97c['push'](_0x2cb20a);}_0x5738cb['queues']=_0x17d97c;});}})['catch'](function(_0x5174c0){const _0x20be2=_0x4a3988;_0x148adf['error']({'title':_0x5174c0['status']?'API:'+_0x5174c0['status']+_0x20be2(0x21db)+_0x5174c0[_0x20be2(0x2115)]:_0x20be2(0x1238),'msg':_0x5174c0[_0x20be2(0x1c52)]?JSON[_0x20be2(0x2317)](_0x5174c0[_0x20be2(0x1c52)]):_0x5174c0[_0x20be2(0x2915)]()});});function _0x33e123(){const _0x16c003=_0x4a3988;_0x5738cb['errors']=[];const _0x519b25=[];_0x5738cb[_0x16c003(0x1e4e)]['type']&&_0x5738cb['queue'][_0x16c003(0x2185)][_0x16c003(0x2554)]()==='outbound'&&_0x5738cb['queue']['appType']===_0x16c003(0x17b6)&&(_0x5738cb[_0x16c003(0x1e4e)][_0x16c003(0x267a)]=_0x261d5f[_0x16c003(0x242b)]?(_0x5738cb[_0x16c003(0x1e4e)][_0x16c003(0x2524)]||'')+'${EXTEN:'+_0x261d5f['cutdigits']+'}':(_0x5738cb[_0x16c003(0x1e4e)][_0x16c003(0x2524)]||'')+'${EXTEN}',_0x261d5f[_0x16c003(0x1097)]!==_0x16c003(0x2507)?_0x5738cb[_0x16c003(0x1e4e)][_0x16c003(0x59e)][_0x16c003(0x1b28)]('U(xcally-mixmonitor-context)')<0x0&&(_0x5738cb[_0x16c003(0x1e4e)]['options']+=_0x16c003(0x13e0)):_0x5738cb[_0x16c003(0x1e4e)][_0x16c003(0x59e)]=_0x5738cb[_0x16c003(0x1e4e)][_0x16c003(0x59e)][_0x16c003(0x1353)](_0x16c003(0x13e0),''));const _0x44ff8e=_0x28c606()[_0x16c003(0x27bc)](_0x5738cb[_0x16c003(0x1c06)],{'name':_0x5738cb['queue']['queue']});_0x44ff8e&&(_0x5738cb[_0x16c003(0x1e4e)][_0x28c606()[_0x16c003(0xd56)](_0x16c003(0x10aa))+'QueueId']=_0x44ff8e['id']);if(_0x5738cb[_0x16c003(0x1e4e)][_0x16c003(0x4f4)]&&_0x5738cb[_0x16c003(0x1e4e)][_0x16c003(0x4f4)]===_0x16c003(0x1ad6)){}else switch((_0x5738cb[_0x16c003(0x1e4e)][_0x16c003(0x16e1)]||_0x5738cb[_0x16c003(0x1e4e)][_0x16c003(0x4f4)])[_0x16c003(0x2554)]()){case _0x16c003(0x1979):_0x5738cb[_0x16c003(0x1e4e)][_0x16c003(0xacb)]=_0x5738cb[_0x16c003(0x1e4e)]['name']+'='+_0x5738cb['queue'][_0x16c003(0x1096)];break;case _0x16c003(0x1ad6):break;default:_0x519b25[0x0]=_0x5738cb[_0x16c003(0x1e4e)][_0x16c003(0x1e4e)],_0x519b25[0x1]=_0x5738cb[_0x16c003(0x1e4e)][_0x16c003(0x16d)],_0x5738cb[_0x16c003(0x1e4e)][_0x16c003(0xacb)]=_0x519b25[_0x16c003(0x9a6)](',');}_0x166311(_0x5738cb['queue']);}function _0x166311(_0x2706fb){_0x31c963['hide'](_0x2706fb);}}const _0x2d511e=_0x1567b3;;_0x328045[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0x1f1),_0x49a1e3(0x1512),_0x49a1e3(0xa19),'Auth','crudPermissions'];function _0x328045(_0xe18d9,_0x4b59c6,_0xbdab08,_0x3d2ceb,_0x2b8890,_0x3c577f,_0x158524,_0x19c336){const _0x28b9ef=_0x49a1e3,_0x4e12f2=this;_0x4e12f2[_0x28b9ef(0x1d3d)]=_0x158524[_0x28b9ef(0x808)](),_0x4e12f2['errors']=[],_0x4e12f2[_0x28b9ef(0x2021)]=_0x28b9ef(0x26c7)+(_0x3d2ceb['appType']||_0x3d2ceb[_0x28b9ef(0x16e1)])['toUpperCase'](),_0x4e12f2[_0x28b9ef(0x1f06)]=angular[_0x28b9ef(0x289e)](_0x3d2ceb),_0x4e12f2['crudPermissions']=_0x19c336,_0x4e12f2[_0x28b9ef(0x6c2)]={};if(_0x4e12f2['system'][_0x28b9ef(0xacb)])switch(_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x4f4)]?_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x4f4)][_0x28b9ef(0x2554)]():_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x16e1)]['toLowerCase']()){case _0x28b9ef(0x1ad6):break;case _0x28b9ef(0x1084):{const _0x4a5bdf=_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0xacb)][_0x28b9ef(0x282c)](',');_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x2125)]=_0x4a5bdf[0x0],_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x1cbd)]=_0x4a5bdf[0x1],_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x31b)]=_0x4a5bdf[_0x28b9ef(0x142e)](0x2,_0x4a5bdf[_0x28b9ef(0x1b9e)])['join'](',');}break;case'dialogflowv2':{const _0x1928b4=_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0xacb)][_0x28b9ef(0x282c)](',');_0x4e12f2[_0x28b9ef(0x1f06)]['projectId']=_0x1928b4[0x0],_0x4e12f2['system']['clientEmail']=_0x1928b4[0x1],_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x1b1b)]=_0x1928b4[0x2],_0x4e12f2['system']['language']=_0x1928b4[0x3],_0x4e12f2['system'][_0x28b9ef(0x31b)]=_0x1928b4[_0x28b9ef(0x142e)](0x4,_0x1928b4[_0x28b9ef(0x1b9e)])[_0x28b9ef(0x9a6)](',');}break;case _0x28b9ef(0x290d):{const _0x4c05d3=_0x4e12f2['system']['appdata'][_0x28b9ef(0x282c)](',');_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x1466)]=_0x4c05d3[0x0],_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x1b1)]=_0x4c05d3[0x1],_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x17a2)]=_0x4c05d3[0x2],_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x2797)]=_0x4c05d3[0x3],_0x4e12f2[_0x28b9ef(0x1f06)]['welcomemessage']=_0x4c05d3[_0x28b9ef(0x142e)](0x4,_0x4c05d3[_0x28b9ef(0x1b9e)])[_0x28b9ef(0x9a6)](',');}break;case _0x28b9ef(0x21a9):{const _0x133b67=_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0xacb)]['split'](',');_0x4e12f2['system'][_0x28b9ef(0x95f)]=isNaN(_0x133b67[0x0])?_0x133b67[0x0]:parseInt(_0x133b67[0x0],0xa),_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x39b)]=_0x133b67[_0x28b9ef(0x142e)](0x1,_0x133b67['length'])[_0x28b9ef(0x9a6)](',');}break;case _0x28b9ef(0x18ca):_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x39b)]=_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0xacb)];break;case _0x28b9ef(0x1979):_0x4e12f2['system']['name']=_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0xacb)]['split']('=')[0x0],_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x1096)]=_0x4e12f2['system'][_0x28b9ef(0xacb)]['split']('=')[0x1];break;case _0x28b9ef(0x1e67):_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x1bd9)]=_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0xacb)];break;default:{const _0x7b9b41=_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0xacb)]['split'](',');_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0xf42)]=_0x28c606()[_0x28b9ef(0x940)](_0x7b9b41[0x0])?_0x7b9b41[0x0]:isNaN(_0x7b9b41[0x0])?_0x7b9b41[0x0]:parseInt(_0x7b9b41[0x0],0xa),_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0xefb)]=_0x28c606()[_0x28b9ef(0x940)](_0x7b9b41[0x1])?_0x7b9b41[0x1]:isNaN(_0x7b9b41[0x1])?_0x7b9b41[0x1]:parseInt(_0x7b9b41[0x1],0xa);}break;}else _0x4e12f2[_0x28b9ef(0x1f06)]['variable']='';_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x2185)]&&_0x4e12f2['system'][_0x28b9ef(0x2185)][_0x28b9ef(0x2554)]()===_0x28b9ef(0xbce)&&_0x4e12f2['system'][_0x28b9ef(0x4f4)][_0x28b9ef(0x2554)]()===_0x28b9ef(0x20eb)&&(_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x2524)]=_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x267a)]?_0x4e12f2[_0x28b9ef(0x1f06)][_0x28b9ef(0x267a)][_0x28b9ef(0x282c)]('$')[0x0]:undefined,_0x4e12f2['system'][_0x28b9ef(0x1a9b)]=_0x4e12f2[_0x28b9ef(0x1f06)]['callerID']?_0x28b9ef(0x2489)+_0x4e12f2[_0x28b9ef(0x1f06)]['callerID']:undefined);_0x4e12f2[_0x28b9ef(0x1803)]=_0xb44d78,_0x4e12f2['closeDialog']=_0x1f9299,_0x158524[_0x28b9ef(0x4de)](_0x28b9ef(0x333))?_0x3c577f['variable'][_0x28b9ef(0x896)]({'fields':'id,name','sort':_0x28b9ef(0x2494),'nolimit':_0x28b9ef(0x1685)})[_0x28b9ef(0x15e7)][_0x28b9ef(0x64a)](function(_0x4a5b1e){const _0x221a94=_0x28b9ef;_0x4e12f2[_0x221a94(0x145c)]=_0x4a5b1e['rows']||[];})['catch'](function(_0x5c1192){const _0x111a66=_0x28b9ef;_0xbdab08[_0x111a66(0x1bd0)]({'title':_0x5c1192[_0x111a66(0x10b3)]?_0x111a66(0x575)+_0x5c1192[_0x111a66(0x10b3)]+_0x111a66(0x21db)+_0x5c1192[_0x111a66(0x2115)]:_0x111a66(0x1cf6),'msg':_0x5c1192[_0x111a66(0x1c52)]?JSON[_0x111a66(0x2317)](_0x5c1192[_0x111a66(0x1c52)]):_0x5c1192['toString']()});}):_0x3c577f[_0x28b9ef(0xefb)][_0x28b9ef(0x896)]({'fields':_0x28b9ef(0x1427),'sort':_0x28b9ef(0x2494),'nolimit':_0x28b9ef(0x1685)})['$promise'][_0x28b9ef(0x64a)](function(_0x593012){const _0xfc913d=_0x28b9ef;_0x4e12f2['variables']=_0x593012[_0xfc913d(0x28b8)]||[];})[_0x28b9ef(0x64a)](function(){const _0x62ee90=_0x28b9ef;return _0x3c577f[_0x62ee90(0x16b2)][_0x62ee90(0x896)]({'userProfileId':_0x4e12f2[_0x62ee90(0x1d3d)][_0x62ee90(0x21ac)],'sectionId':0x3f4})[_0x62ee90(0x15e7)];})[_0x28b9ef(0x64a)](function(_0x238a53){const _0x59f940=_0x28b9ef,_0x5bd891=_0x238a53&&_0x238a53[_0x59f940(0x28b8)]?_0x238a53[_0x59f940(0x28b8)][0x0]:null;if(!_0x5bd891){const _0x491ecb=[];let _0xcb17d9=null;_0x4e12f2[_0x59f940(0x1f06)]&&(_0xcb17d9=_0x28c606()[_0x59f940(0x27bc)](_0x4e12f2[_0x59f940(0x145c)],{'name':_0x4e12f2[_0x59f940(0x1f06)][_0x59f940(0xefb)]}));for(let _0x25c387=0x0;_0x25c387<_0x4e12f2[_0x59f940(0x145c)][_0x59f940(0x1b9e)];_0x25c387++){_0xcb17d9&&_0x4e12f2[_0x59f940(0x145c)][_0x25c387]['id']===_0xcb17d9['id']&&(_0x4e12f2[_0x59f940(0x145c)][_0x25c387][_0x59f940(0xd4f)]=![],_0x491ecb['push'](_0x4e12f2[_0x59f940(0x145c)][_0x25c387]));}_0x4e12f2['variables']=_0x491ecb;}else{if(!_0x5bd891[_0x59f940(0x11da)])return _0x3c577f[_0x59f940(0x1617)][_0x59f940(0x896)]({'sectionId':_0x5bd891['id']})['$promise']['then'](function(_0xe6580){const _0x505e59=_0x59f940,_0x10bd01=_0x28c606()[_0x505e59(0x1de5)](_0xe6580[_0x505e59(0x28b8)],function(_0x6420bc){const _0x49dfa9=_0x505e59;return _0x28c606()['find'](_0x4e12f2[_0x49dfa9(0x145c)],{'id':_0x6420bc[_0x49dfa9(0x145)]});});let _0x46e702=null;_0x4e12f2[_0x505e59(0x1f06)]&&(_0x46e702=_0x28c606()['find'](_0x4e12f2[_0x505e59(0x145c)],{'name':_0x4e12f2[_0x505e59(0x1f06)][_0x505e59(0xefb)]}));if(_0x46e702&&!_0x28c606()['some'](_0x10bd01,['id',_0x46e702['id']])){const _0x2f9459=_0x28c606()['find'](_0x4e12f2[_0x505e59(0x145c)],{'id':_0x46e702['id']});_0x2f9459[_0x505e59(0xd4f)]=![],_0x10bd01[_0x505e59(0x1954)](_0x2f9459);}_0x4e12f2[_0x505e59(0x145c)]=_0x10bd01;});}})[_0x28b9ef(0x20cd)](function(_0x545fa4){const _0x4a3d41=_0x28b9ef;_0xbdab08[_0x4a3d41(0x1bd0)]({'title':_0x545fa4[_0x4a3d41(0x10b3)]?_0x4a3d41(0x575)+_0x545fa4['status']+_0x4a3d41(0x21db)+_0x545fa4[_0x4a3d41(0x2115)]:_0x4a3d41(0x284a),'msg':_0x545fa4['data']?JSON[_0x4a3d41(0x2317)](_0x545fa4[_0x4a3d41(0x1c52)]):_0x545fa4[_0x4a3d41(0x2915)]()});});function _0xb44d78(){const _0xac300=_0x28b9ef;_0x4e12f2[_0xac300(0xbae)]=[];const _0x340353=[];_0x4e12f2['system']['type']&&_0x4e12f2['system'][_0xac300(0x2185)]['toLowerCase']()===_0xac300(0xbce)&&_0x4e12f2[_0xac300(0x1f06)][_0xac300(0x4f4)]==='outboundDial'&&(_0x4e12f2[_0xac300(0x1f06)][_0xac300(0x267a)]=_0x2b8890[_0xac300(0x242b)]?(_0x4e12f2[_0xac300(0x1f06)][_0xac300(0x2524)]||'')+_0xac300(0x1a75)+_0x2b8890['cutdigits']+'}':(_0x4e12f2[_0xac300(0x1f06)]['prefix']||'')+_0xac300(0x5ad),_0x2b8890['recordingFormat']!==_0xac300(0x2507)?_0x4e12f2[_0xac300(0x1f06)][_0xac300(0x59e)][_0xac300(0x1b28)]('U(xcally-mixmonitor-context)')<0x0&&(_0x4e12f2[_0xac300(0x1f06)][_0xac300(0x59e)]+='U(xcally-mixmonitor-context)'):_0x4e12f2[_0xac300(0x1f06)]['options']=_0x4e12f2[_0xac300(0x1f06)][_0xac300(0x59e)]['replace'](_0xac300(0x13e0),''));if(_0x4e12f2[_0xac300(0x1f06)][_0xac300(0x4f4)]&&_0x4e12f2[_0xac300(0x1f06)]['appType']==='custom'){}else switch((_0x4e12f2[_0xac300(0x1f06)][_0xac300(0x16e1)]||_0x4e12f2[_0xac300(0x1f06)][_0xac300(0x4f4)])[_0xac300(0x2554)]()){case _0xac300(0x1979):_0x4e12f2[_0xac300(0x1f06)]['appdata']=_0x4e12f2[_0xac300(0x1f06)]['name']+'='+_0x4e12f2[_0xac300(0x1f06)][_0xac300(0x1096)];break;case _0xac300(0x1ad6):break;default:_0x340353[0x0]=_0x4e12f2[_0xac300(0x1f06)][_0xac300(0xf42)],_0x340353[0x1]=_0x4e12f2[_0xac300(0x1f06)][_0xac300(0xefb)],_0x4e12f2['system']['appdata']=_0x340353[_0xac300(0x9a6)](',');}_0x1f9299(_0x4e12f2['system']);}function _0x1f9299(_0x2a1b25){const _0x23e627=_0x28b9ef;_0xe18d9[_0x23e627(0x268e)](_0x2a1b25);}}const _0xeb83c0=_0x328045;;_0x3ed383['$inject']=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x1f1),_0x49a1e3(0x1512),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x402)];function _0x3ed383(_0x504a5f,_0xc4b9bb,_0x3aefb0,_0x46c474,_0x197532,_0x346f18,_0x5cb8aa,_0x54100a){const _0x5f295d=_0x49a1e3,_0xf24367=this;_0xf24367[_0x5f295d(0x1d3d)]=_0x5cb8aa[_0x5f295d(0x808)](),_0xf24367[_0x5f295d(0xbae)]=[],_0xf24367[_0x5f295d(0x2021)]=_0x5f295d(0x26c7)+(_0x46c474[_0x5f295d(0x4f4)]||_0x46c474[_0x5f295d(0x16e1)])['toUpperCase'](),_0xf24367[_0x5f295d(0xac8)]=angular[_0x5f295d(0x289e)](_0x46c474),_0xf24367['crudPermissions']=_0x54100a,_0xf24367['hasModulePermissions']={};if(_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0xacb)])switch(_0xf24367[_0x5f295d(0xac8)]['appType']?_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0x4f4)]['toLowerCase']():_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0x16e1)][_0x5f295d(0x2554)]()){case _0x5f295d(0x1ad6):break;case _0x5f295d(0x1084):{const _0x46241b=_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0xacb)][_0x5f295d(0x282c)](',');_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0x2125)]=_0x46241b[0x0],_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0x1cbd)]=_0x46241b[0x1],_0xf24367['tag'][_0x5f295d(0x31b)]=_0x46241b['slice'](0x2,_0x46241b[_0x5f295d(0x1b9e)])[_0x5f295d(0x9a6)](',');}break;case _0x5f295d(0x1b1a):{const _0x42f87f=_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0xacb)][_0x5f295d(0x282c)](',');_0xf24367['tag'][_0x5f295d(0xbfd)]=_0x42f87f[0x0],_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0x4b2)]=_0x42f87f[0x1],_0xf24367['tag'][_0x5f295d(0x1b1b)]=_0x42f87f[0x2],_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0x1cbd)]=_0x42f87f[0x3],_0xf24367[_0x5f295d(0xac8)]['welcomemessage']=_0x42f87f[_0x5f295d(0x142e)](0x4,_0x42f87f[_0x5f295d(0x1b9e)])[_0x5f295d(0x9a6)](',');}break;case'amazonlex':{const _0x2c8aff=_0xf24367[_0x5f295d(0xac8)]['appdata'][_0x5f295d(0x282c)](',');_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0x1466)]=_0x2c8aff[0x0],_0xf24367['tag'][_0x5f295d(0x1b1)]=_0x2c8aff[0x1],_0xf24367[_0x5f295d(0xac8)]['lexregion']=_0x2c8aff[0x2],_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0x2797)]=_0x2c8aff[0x3],_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0x31b)]=_0x2c8aff['slice'](0x4,_0x2c8aff[_0x5f295d(0x1b9e)])['join'](',');}break;case _0x5f295d(0x21a9):{const _0x21246b=_0xf24367['tag'][_0x5f295d(0xacb)]['split'](',');_0xf24367['tag'][_0x5f295d(0x95f)]=isNaN(_0x21246b[0x0])?_0x21246b[0x0]:parseInt(_0x21246b[0x0],0xa),_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0x39b)]=_0x21246b[_0x5f295d(0x142e)](0x1,_0x21246b[_0x5f295d(0x1b9e)])[_0x5f295d(0x9a6)](',');}break;case _0x5f295d(0x18ca):_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0x39b)]=_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0xacb)];break;case _0x5f295d(0x1979):_0xf24367[_0x5f295d(0xac8)]['name']=_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0xacb)][_0x5f295d(0x282c)]('=')[0x0],_0xf24367['tag'][_0x5f295d(0x1096)]=_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0xacb)][_0x5f295d(0x282c)]('=')[0x1];break;case _0x5f295d(0x1e67):_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0x1bd9)]=_0xf24367['tag'][_0x5f295d(0xacb)];break;default:{const _0x5605b0=_0xf24367['tag'][_0x5f295d(0xacb)]['split'](',');_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0xac8)]=_0x28c606()[_0x5f295d(0x940)](_0x5605b0[0x0])?_0x5605b0[0x0]:isNaN(_0x5605b0[0x0])?_0x5605b0[0x0]:parseInt(_0x5605b0[0x0],0xa);}break;}else{}_0xf24367[_0x5f295d(0xac8)]['type']&&_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0x2185)]['toLowerCase']()===_0x5f295d(0xbce)&&_0xf24367[_0x5f295d(0xac8)]['appType'][_0x5f295d(0x2554)]()===_0x5f295d(0x20eb)&&(_0xf24367[_0x5f295d(0xac8)]['prefix']=_0xf24367[_0x5f295d(0xac8)]['phone']?_0xf24367[_0x5f295d(0xac8)][_0x5f295d(0x267a)][_0x5f295d(0x282c)]('$')[0x0]:undefined,_0xf24367['tag'][_0x5f295d(0x1a9b)]=_0xf24367['tag'][_0x5f295d(0x1abe)]?'CALLERID(all)='+_0xf24367['tag']['callerID']:undefined);_0xf24367[_0x5f295d(0x1803)]=_0x563ea6,_0xf24367['closeDialog']=_0x4fe11a,_0x5cb8aa['hasRole'](_0x5f295d(0x333))?_0x346f18['tag'][_0x5f295d(0x896)]({'fields':_0x5f295d(0x1427),'sort':'name','nolimit':_0x5f295d(0x1685)})[_0x5f295d(0x15e7)]['then'](function(_0x29f1e8){const _0x2875c5=_0x5f295d;_0xf24367[_0x2875c5(0x16a6)]=_0x29f1e8[_0x2875c5(0x28b8)]||[];})['catch'](function(_0x9a2425){const _0x85b7f5=_0x5f295d;_0x3aefb0['error']({'title':_0x9a2425['status']?_0x85b7f5(0x575)+_0x9a2425[_0x85b7f5(0x10b3)]+'\x20-\x20'+_0x9a2425[_0x85b7f5(0x2115)]:_0x85b7f5(0x28be),'msg':_0x9a2425['data']?JSON[_0x85b7f5(0x2317)](_0x9a2425[_0x85b7f5(0x1c52)]):_0x9a2425['toString']()});}):_0x346f18[_0x5f295d(0xac8)][_0x5f295d(0x896)]({'fields':_0x5f295d(0x1427),'sort':'name','nolimit':'true'})['$promise']['then'](function(_0x15a0d0){const _0x1fecb8=_0x5f295d;_0xf24367[_0x1fecb8(0x16a6)]=_0x15a0d0[_0x1fecb8(0x28b8)]||[];})[_0x5f295d(0x64a)](function(){const _0xd6a3af=_0x5f295d;return _0x346f18[_0xd6a3af(0x16b2)][_0xd6a3af(0x896)]({'userProfileId':_0xf24367[_0xd6a3af(0x1d3d)]['userProfileId'],'sectionId':0x3f0})['$promise'];})[_0x5f295d(0x64a)](function(_0x1cb383){const _0x150c41=_0x5f295d,_0x1c4f28=_0x1cb383&&_0x1cb383[_0x150c41(0x28b8)]?_0x1cb383[_0x150c41(0x28b8)][0x0]:null;if(!_0x1c4f28){const _0x35980d=[];let _0x9fa099=null;_0xf24367[_0x150c41(0xac8)]&&(_0x9fa099=_0x28c606()['find'](_0xf24367[_0x150c41(0x16a6)],{'name':_0xf24367[_0x150c41(0xac8)][_0x150c41(0xac8)]}));for(let _0x3ecd15=0x0;_0x3ecd15<_0xf24367['tags'][_0x150c41(0x1b9e)];_0x3ecd15++){_0x9fa099&&_0xf24367['tags'][_0x3ecd15]['id']===_0x9fa099['id']&&(_0xf24367[_0x150c41(0x16a6)][_0x3ecd15][_0x150c41(0xd4f)]=![],_0x35980d[_0x150c41(0x1954)](_0xf24367[_0x150c41(0x16a6)][_0x3ecd15]));}_0xf24367['tags']=_0x35980d;}else{if(!_0x1c4f28[_0x150c41(0x11da)])return _0x346f18[_0x150c41(0x1617)]['get']({'sectionId':_0x1c4f28['id']})[_0x150c41(0x15e7)]['then'](function(_0x605a67){const _0x2c135d=_0x150c41,_0xcd4795=_0x28c606()['map'](_0x605a67['rows'],function(_0x4f13bd){const _0x32bcaf=a0_0x4127;return _0x28c606()[_0x32bcaf(0x27bc)](_0xf24367[_0x32bcaf(0x16a6)],{'id':_0x4f13bd[_0x32bcaf(0x145)]});});let _0x4ebf3d=null;_0xf24367['tag']&&(_0x4ebf3d=_0x28c606()[_0x2c135d(0x27bc)](_0xf24367[_0x2c135d(0x16a6)],{'name':_0xf24367[_0x2c135d(0xac8)]['tag']}));if(_0x4ebf3d&&!_0x28c606()[_0x2c135d(0x25f8)](_0xcd4795,['id',_0x4ebf3d['id']])){const _0x4d3c08=_0x28c606()[_0x2c135d(0x27bc)](_0xf24367['tags'],{'id':_0x4ebf3d['id']});_0x4d3c08[_0x2c135d(0xd4f)]=![],_0xcd4795['push'](_0x4d3c08);}_0xf24367[_0x2c135d(0x16a6)]=_0xcd4795;});}})[_0x5f295d(0x20cd)](function(_0x452edf){const _0x19ec30=_0x5f295d;_0x3aefb0[_0x19ec30(0x1bd0)]({'title':_0x452edf['status']?_0x19ec30(0x575)+_0x452edf['status']+_0x19ec30(0x21db)+_0x452edf[_0x19ec30(0x2115)]:_0x19ec30(0x14a7),'msg':_0x452edf['data']?JSON['stringify'](_0x452edf[_0x19ec30(0x1c52)]):_0x452edf[_0x19ec30(0x2915)]()});});function _0x563ea6(){const _0x361eab=_0x5f295d;_0xf24367[_0x361eab(0xbae)]=[];const _0x590880=[];_0xf24367['tag']['type']&&_0xf24367[_0x361eab(0xac8)][_0x361eab(0x2185)][_0x361eab(0x2554)]()===_0x361eab(0xbce)&&_0xf24367['tag'][_0x361eab(0x4f4)]===_0x361eab(0x17b6)&&(_0xf24367[_0x361eab(0xac8)][_0x361eab(0x267a)]=_0x197532[_0x361eab(0x242b)]?(_0xf24367[_0x361eab(0xac8)][_0x361eab(0x2524)]||'')+_0x361eab(0x1a75)+_0x197532[_0x361eab(0x242b)]+'}':(_0xf24367[_0x361eab(0xac8)]['prefix']||'')+_0x361eab(0x5ad),_0x197532[_0x361eab(0x1097)]!=='none'?_0xf24367['tag'][_0x361eab(0x59e)][_0x361eab(0x1b28)]('U(xcally-mixmonitor-context)')<0x0&&(_0xf24367[_0x361eab(0xac8)][_0x361eab(0x59e)]+=_0x361eab(0x13e0)):_0xf24367[_0x361eab(0xac8)][_0x361eab(0x59e)]=_0xf24367[_0x361eab(0xac8)]['options'][_0x361eab(0x1353)](_0x361eab(0x13e0),''));const _0x4dd890=_0x28c606()[_0x361eab(0x27bc)](_0xf24367[_0x361eab(0x16a6)],{'name':_0xf24367[_0x361eab(0xac8)][_0x361eab(0xac8)]});_0x4dd890&&(_0xf24367['tag'][_0x361eab(0x923)]=_0x4dd890['id']);if(_0xf24367[_0x361eab(0xac8)][_0x361eab(0x4f4)]&&_0xf24367[_0x361eab(0xac8)][_0x361eab(0x4f4)]===_0x361eab(0x1ad6)){}else switch((_0xf24367[_0x361eab(0xac8)][_0x361eab(0x16e1)]||_0xf24367[_0x361eab(0xac8)]['appType'])[_0x361eab(0x2554)]()){case'set':_0xf24367['tag']['appdata']=_0xf24367[_0x361eab(0xac8)]['name']+'='+_0xf24367[_0x361eab(0xac8)][_0x361eab(0x1096)];break;case'custom':break;default:_0x590880[0x0]=_0xf24367[_0x361eab(0xac8)]['tag'],_0xf24367[_0x361eab(0xac8)][_0x361eab(0xacb)]=_0x590880[_0x361eab(0x9a6)](',');}_0x4fe11a(_0xf24367[_0x361eab(0xac8)]);}function _0x4fe11a(_0x568ed7){const _0x537254=_0x5f295d;_0x504a5f[_0x537254(0x268e)](_0x568ed7);}}const _0x3b7d18=_0x3ed383;;_0x421bae['$inject']=[_0x49a1e3(0x7a7),_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x20d4),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x421bae(_0x3c9747,_0x2b1486,_0x42e99a,_0x4de239,_0x18d8f3,_0x410d2e,_0x38943a,_0x31a539,_0x400c92,_0x58ae55,_0x28809d){const _0x31426a=_0x49a1e3,_0x39bac8=this;_0x39bac8[_0x31426a(0x1d3d)]=_0x28809d['getCurrentUser'](),_0x39bac8[_0x31426a(0x1512)]={},_0x39bac8[_0x31426a(0x139c)]={'count':0x0,'rows':[]},_0x39bac8[_0x31426a(0x1e5e)]=[],_0x39bac8[_0x31426a(0x402)],_0x39bac8[_0x31426a(0x289a)]={'read':_0x31426a(0x8f1),'closed':'null','sort':_0x31426a(0x1b35),'includeAll':'true','limit':0xa,'page':0x1},_0x39bac8[_0x31426a(0x2354)]=_0x20d8ff,_0x39bac8['deleteConfirm']=_0x2f0ad8,_0x39bac8[_0x31426a(0x556)]=_0x509bd3,_0x39bac8[_0x31426a(0x1339)]=_0x58f1d3,_0x39bac8[_0x31426a(0x1e4c)]=_0x2da34e,_0x39bac8[_0x31426a(0x32c)]=_0xbd89f3,_0x39bac8['openAdvancedSearch']=_0xf08662,_0x39bac8[_0x31426a(0x1d29)]=_0x409575,_0x39bac8[_0x31426a(0xd06)]=_0x55c162,_0x39bac8['deleteSelectedSmsAccountInteractions']=_0x1e8889;function _0x20d8ff(_0x1daa6b,_0x492f1b){const _0x837fd6=_0x31426a;_0x39bac8[_0x837fd6(0x1512)]=_0x1daa6b,_0x39bac8[_0x837fd6(0x402)]=typeof _0x492f1b!==_0x837fd6(0x19a1)?_0x492f1b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x39bac8[_0x837fd6(0x289a)][_0x837fd6(0x1be5)]=_0x39bac8['smsAccount']['id'],_0x39bac8[_0x837fd6(0x1b2f)]={'fields':_0xc7d1b2()},_0x48dd05();}function _0x48dd05(){const _0x1dbd4e=_0x31426a;return _0x58ae55[_0x1dbd4e(0xac8)][_0x1dbd4e(0x896)]()[_0x1dbd4e(0x15e7)][_0x1dbd4e(0x64a)](function(_0x383a1b){const _0x3c22e6=_0x1dbd4e;_0x39bac8[_0x3c22e6(0x16a6)]=_0x383a1b||{'count':0x0,'rows':[]};})[_0x1dbd4e(0x64a)](function(){const _0x4c986d=_0x1dbd4e;_0x39bac8[_0x4c986d(0x9fc)]=_0x43af74();});}function _0x43af74(){const _0x24c88b=_0x31426a;return[{'name':_0x24c88b(0x1967),'key':'createdAt','type':_0x24c88b(0x232e),'label':_0x24c88b(0x2720)},{'name':'Messages','key':_0x24c88b(0x12a6),'type':_0x24c88b(0x2926),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x24c88b(0x1889)},{'value':null,'translate':_0x24c88b(0x2200)}]},{'name':'Status','key':_0x24c88b(0x1140),'type':'select','label':_0x24c88b(0x110d),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x24c88b(0x5cd)},{'value':null,'translate':_0x24c88b(0x2200)}]},{'name':_0x24c88b(0x12ad),'key':_0x24c88b(0x246c),'type':_0x24c88b(0x2926),'label':_0x24c88b(0x18bf),'customOptions':[{'value':_0x24c88b(0x8f1),'translate':_0x24c88b(0x276d)},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':'Tag','key':_0x24c88b(0xac8),'type':_0x24c88b(0x20ae),'label':_0x24c88b(0x1208),'options':_0x39bac8[_0x24c88b(0x16a6)][_0x24c88b(0x28b8)],'placeholder':'DASHBOARDS.TAGS'}];}function _0xc7d1b2(){const _0x4e2d63=_0x31426a;return[{'name':'Id','column':'id','type':_0x4e2d63(0x2113)},{'name':_0x4e2d63(0x1c38),'column':_0x4e2d63(0x1c38),'type':_0x4e2d63(0x21b7),'options':{'searchFields':[_0x4e2d63(0x2518),_0x4e2d63(0x21c4),_0x4e2d63(0xd47)],'route':{'model':_0x4e2d63(0xdf5),'action':_0x4e2d63(0x896),'params':{'fields':_0x4e2d63(0x3ef),'Contact':_0x4e2d63(0xb96),'nolimit':!![]}},'extraOperators':[_0x4e2d63(0xe87)],'excludedOperators':['$ne']}},{'name':_0x4e2d63(0x1cd9),'column':_0x4e2d63(0x25bc),'type':'text','options':{'excludedOperators':['$eq',_0x4e2d63(0x14b5)]}},{'name':_0x4e2d63(0x19fb),'column':_0x4e2d63(0x2233),'type':_0x4e2d63(0x39b),'options':{'excludedOperators':[_0x4e2d63(0x1743),_0x4e2d63(0x14b5)]}},{'name':_0x4e2d63(0x2311),'column':_0x4e2d63(0x1140),'type':_0x4e2d63(0x2926),'values':[{'id':0x0,'translate':_0x4e2d63(0x1313)},{'id':0x1,'translate':_0x4e2d63(0x5cd)}],'options':{'excludedOperators':[_0x4e2d63(0x14b5)]}},{'name':_0x4e2d63(0x12ad),'column':_0x4e2d63(0x1098),'type':'autocomplete','options':{'table':'i','route':{'model':'user','action':'get','params':{'role':_0x4e2d63(0x11ae),'fields':_0x4e2d63(0xd53),'nolimit':!![]}},'searchFields':['fullname',_0x4e2d63(0x2494)],'extraOperators':[_0x4e2d63(0xe87)],'excludedOperators':[_0x4e2d63(0x14b5)]}},{'name':_0x4e2d63(0x1178),'column':_0x4e2d63(0x1e9f),'type':'multiselect','options':{'route':{'model':_0x4e2d63(0xac8),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x4e2d63(0x9eb)]}},{'name':_0x4e2d63(0x1967),'column':'createdAt','type':_0x4e2d63(0x232e),'options':{'excludedOperators':[_0x4e2d63(0x14b5)]}},{'name':_0x4e2d63(0xff4),'column':_0x4e2d63(0x18d3),'type':'select','values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x4e2d63(0x13be)}],'options':{'excludedOperators':[_0x4e2d63(0x14b5)]}}];}function _0xf08662(){const _0x569a3b=_0x31426a;_0x38943a[_0x569a3b(0xa60)]({'controller':_0x569a3b(0x271c),'controllerAs':'vm','templateUrl':_0x46e7cb,'parent':angular[_0x569a3b(0x1f81)](_0x31a539[_0x569a3b(0xb49)]),'clickOutsideToClose':![],'locals':{'fields':_0x39bac8[_0x569a3b(0x1b2f)][_0x569a3b(0xf26)],'color':undefined,'storagePath':_0x569a3b(0x1d1b)},'fullscreen':!![]})[_0x569a3b(0x64a)](function(_0x1e61de){const _0x38abe5=_0x569a3b;_0x39bac8[_0x38abe5(0x289a)][_0x38abe5(0xb58)]=_0x1e61de===![]?undefined:_0x1e61de;if(_0x39bac8[_0x38abe5(0x289a)][_0x38abe5(0xb58)])_0x2da34e();else _0x1e61de===![]&&_0x2da34e();})[_0x569a3b(0x20cd)](function(_0xd7172c){const _0x2744e3=_0x569a3b;_0x400c92['error']({'title':_0x2744e3(0x2440),'msg':_0xd7172c[_0x2744e3(0x1c52)]?JSON[_0x2744e3(0x2317)](_0xd7172c['data'][_0x2744e3(0x18ca)]):_0xd7172c[_0x2744e3(0x2915)]()});});}function _0x509bd3(_0x4be9da,_0x45a24c,_0x3a43a3){const _0xc5e02a=_0x31426a;return _0x58ae55['smsInteraction'][_0xc5e02a(0x19b3)]({'id':_0x4be9da['id'],'exists':!![],'attachments':_0x3a43a3})[_0xc5e02a(0x15e7)][_0xc5e02a(0x64a)](function(_0x3821f4){const _0x2532bf=_0xc5e02a,_0x9b7e1c=[_0x3821f4[_0x2532bf(0x5a9)]];let _0x10255d='interaction'+_0x4be9da['id'];const _0x43edbd=new Blob(_0x9b7e1c,{'type':_0x3821f4[_0x2532bf(0x2185)]});_0x10255d=_0x2532bf(0x1ce)+_0x4be9da['id']+_0x2532bf(0x2177);const _0x1f938f=window[_0x2532bf(0x123f)][_0x2532bf(0x2978)]('a');_0x1f938f[_0x2532bf(0x1280)]('href',URL[_0x2532bf(0x206)](_0x43edbd)),_0x1f938f['setAttribute'](_0x2532bf(0x19b3),_0x10255d),document[_0x2532bf(0xb49)][_0x2532bf(0x2661)](_0x1f938f),_0x1f938f['click']();})['catch'](function(_0x44dbb8){const _0x56a850=_0xc5e02a;if(_0x44dbb8[_0x56a850(0x1c52)]&&_0x44dbb8[_0x56a850(0x1c52)][_0x56a850(0xbae)]&&_0x44dbb8['data'][_0x56a850(0xbae)][_0x56a850(0x1b9e)])for(let _0x4d85ea=0x0;_0x4d85ea<_0x44dbb8[_0x56a850(0x1c52)][_0x56a850(0xbae)][_0x56a850(0x1b9e)];_0x4d85ea+=0x1){_0x400c92[_0x56a850(0x1bd0)]({'title':_0x44dbb8[_0x56a850(0x1c52)][_0x56a850(0xbae)][_0x4d85ea][_0x56a850(0x2185)],'msg':_0x44dbb8['data'][_0x56a850(0xbae)][_0x4d85ea]['message']});}else _0x400c92['error']({'title':_0x44dbb8[_0x56a850(0x10b3)]?_0x56a850(0x575)+_0x44dbb8[_0x56a850(0x10b3)]+_0x56a850(0x21db)+_0x44dbb8[_0x56a850(0x2115)]:_0x56a850(0x114),'msg':_0x44dbb8[_0x56a850(0x1c52)]?JSON[_0x56a850(0x2317)](_0x44dbb8['data'][_0x56a850(0x18ca)]):_0x44dbb8[_0x56a850(0x2915)]()});});}function _0x2f0ad8(_0x3b88cf,_0x288ae8){const _0x397c59=_0x31426a,_0x5c8fa2=_0x38943a[_0x397c59(0x856)]()[_0x397c59(0x2021)](_0x397c59(0x686))[_0x397c59(0x33a)](_0x397c59(0x50b)+(_0x3b88cf['name']||_0x3b88cf['id']&&_0x28c606()[_0x397c59(0x1766)](_0x397c59(0x1302))+_0x3b88cf['id']||_0x397c59(0x73a))+''+'\x20will\x20be\x20deleted.')[_0x397c59(0x213e)](_0x397c59(0x1e54))[_0x397c59(0x2283)](_0x288ae8)['ok']('OK')[_0x397c59(0x101a)]('CANCEL');_0x38943a['show'](_0x5c8fa2)['then'](function(){_0x55c162(_0x3b88cf);},function(){const _0x5a3244=_0x397c59;console[_0x5a3244(0x9b4)](_0x5a3244(0x18fd));});}function _0x58f1d3(_0x51c3ec){const _0x10768e=_0x31426a;_0x39bac8['smsAccountInteractions']=_0x51c3ec||{'count':0x0,'rows':[]};for(let _0x222aa7=0x0;_0x222aa7<_0x39bac8[_0x10768e(0x139c)][_0x10768e(0x28b8)]['length'];_0x222aa7+=0x1){const _0x4e0960=_0x39bac8[_0x10768e(0x139c)][_0x10768e(0x28b8)][_0x222aa7];_0x12c916(_0x4e0960),_0x4e0960['Owner']['name']=_0x30292c(_0x4e0960);}}function _0x2da34e(){const _0x3aee02=_0x31426a;_0x39bac8[_0x3aee02(0x289a)]['offset']=(_0x39bac8['query']['page']-0x1)*_0x39bac8['query'][_0x3aee02(0x25bb)],_0x39bac8[_0x3aee02(0x1713)]=_0x58ae55[_0x3aee02(0x1c74)][_0x3aee02(0x896)](_0x39bac8[_0x3aee02(0x289a)],_0x58f1d3)['$promise'];}function _0xbd89f3(_0x11fb21,_0x5717b9){const _0x26aba5=_0x31426a;_0x38943a[_0x26aba5(0xa60)]({'controller':'AgentGeneralInteractionController','controllerAs':'vm','templateUrl':_0x27e3ee,'parent':angular[_0x26aba5(0x1f81)](_0x31a539[_0x26aba5(0xb49)]),'targetEvent':_0x11fb21,'clickOutsideToClose':!![],'onShowing':function(_0x586cba){const _0x1c5ade=_0x26aba5;_0x586cba['vm'][_0x1c5ade(0x2354)]({'id':0x1,'channel':_0x1c5ade(0x10aa),'interaction':_0x5717b9,'spy':!![]},_0x2b1486[_0x1c5ade(0x4e3)]['vm'][_0x1c5ade(0x28d6)]);}});}function _0x55c162(_0x541c5a){const _0x52b93e=_0x31426a;_0x58ae55[_0x52b93e(0x1c74)]['delete']({'id':_0x541c5a['id']})[_0x52b93e(0x15e7)][_0x52b93e(0x64a)](function(){const _0x34d293=_0x52b93e;_0x28c606()[_0x34d293(0x21c7)](_0x39bac8[_0x34d293(0x139c)][_0x34d293(0x28b8)],{'id':_0x541c5a['id']}),_0x39bac8[_0x34d293(0x139c)][_0x34d293(0xb90)]-=0x1,!_0x39bac8[_0x34d293(0x139c)][_0x34d293(0x28b8)][_0x34d293(0x1b9e)]&&_0x2da34e(),_0x400c92[_0x34d293(0x1339)]({'title':_0x34d293(0xa06),'msg':_0x541c5a['name']?_0x541c5a[_0x34d293(0x2494)]+_0x34d293(0x1fa8):''});})[_0x52b93e(0x20cd)](function(_0x2c310a){const _0x414a23=_0x52b93e;if(_0x2c310a[_0x414a23(0x1c52)]&&_0x2c310a['data'][_0x414a23(0xbae)]&&_0x2c310a[_0x414a23(0x1c52)][_0x414a23(0xbae)][_0x414a23(0x1b9e)]){_0x39bac8[_0x414a23(0xbae)]=_0x2c310a['data']['errors']||[{'message':_0x2c310a[_0x414a23(0x2915)](),'type':_0x414a23(0x91c)}];for(let _0x4ae66f=0x0;_0x4ae66f<_0x2c310a['data'][_0x414a23(0xbae)][_0x414a23(0x1b9e)];_0x4ae66f++){_0x400c92['error']({'title':_0x2c310a[_0x414a23(0x1c52)][_0x414a23(0xbae)][_0x4ae66f]['type'],'msg':_0x2c310a[_0x414a23(0x1c52)][_0x414a23(0xbae)][_0x4ae66f][_0x414a23(0x18ca)]});}}else _0x400c92['error']({'title':_0x2c310a[_0x414a23(0x10b3)]?_0x414a23(0x575)+_0x2c310a[_0x414a23(0x10b3)]+'\x20-\x20'+_0x2c310a[_0x414a23(0x2115)]:_0x414a23(0x91c),'msg':_0x2c310a[_0x414a23(0x1c52)]?JSON[_0x414a23(0x2317)](_0x2c310a[_0x414a23(0x1c52)][_0x414a23(0x18ca)]):_0x2c310a['message']||_0x2c310a[_0x414a23(0x2915)]()});});}function _0x409575(){const _0x1b0a0e=_0x31426a,_0x486577=angular[_0x1b0a0e(0x289e)](_0x39bac8['selectedSmsAccountInteractions']);return _0x39bac8[_0x1b0a0e(0x1e5e)]=[],_0x486577;}function _0x1e8889(_0x47d9e4){const _0x5cd1f1=_0x31426a,_0x284b96=_0x38943a[_0x5cd1f1(0x856)]()[_0x5cd1f1(0x2021)](_0x5cd1f1(0x201))[_0x5cd1f1(0x33a)](_0x5cd1f1(0x50b)+_0x39bac8[_0x5cd1f1(0x1e5e)]['length']+_0x5cd1f1(0x163e)+_0x5cd1f1(0x4b8))[_0x5cd1f1(0x213e)]('delete\x20interactions')[_0x5cd1f1(0x2283)](_0x47d9e4)['ok']('OK')[_0x5cd1f1(0x101a)](_0x5cd1f1(0x18fd));_0x38943a[_0x5cd1f1(0xa60)](_0x284b96)[_0x5cd1f1(0x64a)](function(){const _0x3f0fa2=_0x5cd1f1;_0x39bac8[_0x3f0fa2(0x1e5e)]['forEach'](function(_0x25fdf4){_0x55c162(_0x25fdf4);}),_0x39bac8[_0x3f0fa2(0x1e5e)]=[];});}function _0x12c916(_0x44342b){const _0x3d55f6=_0x31426a;_0x44342b[_0x3d55f6(0x1c38)]?(_0x44342b[_0x3d55f6(0xfd7)]=(_0x44342b[_0x3d55f6(0x1c38)][_0x3d55f6(0x2518)]||'')+'\x20'+(_0x44342b[_0x3d55f6(0x1c38)][_0x3d55f6(0x21c4)]||''),_0x44342b[_0x3d55f6(0x27b3)]=_0x44342b[_0x3d55f6(0x1c38)]['mobile']):_0x44342b[_0x3d55f6(0xfd7)]=_0x18d8f3['instant'](_0x3d55f6(0x1c8d));}function _0x30292c(_0x261de7){const _0x27a0a9=_0x31426a;if(_0x261de7[_0x27a0a9(0x246c)])return _0x261de7[_0x27a0a9(0x246c)]===_0x39bac8[_0x27a0a9(0x1d3d)]['id']?_0x18d8f3[_0x27a0a9(0x2292)](_0x27a0a9(0x2368)):_0x261de7['Owner'][_0x27a0a9(0x15c)]+'\x20<'+_0x261de7['Owner'][_0x27a0a9(0xe2f)]+'>';return _0x18d8f3[_0x27a0a9(0x2292)](_0x27a0a9(0x276d));}let _0x2f5ae7=!![],_0x1b5de1=0x1;_0x2b1486[_0x31426a(0xc62)]('vm_dc.query.filter',function(_0x5a72ec,_0x18a377){const _0x1fcd68=_0x31426a;_0x2f5ae7?_0x410d2e(function(){_0x2f5ae7=![];}):(!_0x18a377&&(_0x1b5de1=_0x39bac8['query'][_0x1fcd68(0xc72)]),_0x5a72ec!==_0x18a377&&(_0x39bac8[_0x1fcd68(0x289a)][_0x1fcd68(0xc72)]=0x1),!_0x5a72ec&&(_0x39bac8['query']['page']=_0x1b5de1),_0x2da34e());});}const _0x5e695b=_0x421bae;;const _0xe9c7bf=_0x2e4a48['p']+_0x49a1e3(0x24e8);;_0x1b917b[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$q','$translate','$timeout',_0x49a1e3(0x212a),'$document',_0x49a1e3(0x680),'api',_0x49a1e3(0xdcf)];function _0x1b917b(_0x1faf35,_0x38eb7d,_0x22ba1e,_0x1c04db,_0x231932,_0x1ca2e4,_0x129fa2,_0x58d560,_0x5dbea6,_0x541c15,_0x129a78){const _0x56b609=_0x49a1e3,_0x5a43bc=this;_0x5a43bc[_0x56b609(0x1d3d)]=_0x129a78[_0x56b609(0x808)](),_0x5a43bc[_0x56b609(0x1512)]={},_0x5a43bc['smsAccountSmsCannedAnswers']={'count':0x0,'rows':[]},_0x5a43bc['selectedSmsAccountSmsCannedAnswers']=[],_0x5a43bc[_0x56b609(0x402)],_0x5a43bc['query']={'fields':_0x56b609(0x9e8),'limit':0xa,'page':0x1},_0x5a43bc[_0x56b609(0x2354)]=_0x5aa52b,_0x5a43bc[_0x56b609(0x217e)]=_0x516730,_0x5a43bc[_0x56b609(0x1339)]=_0x17d99c,_0x5a43bc['getSmsAccountSmsCannedAnswers']=_0x574292,_0x5a43bc[_0x56b609(0xa27)]=_0x3dd30a,_0x5a43bc[_0x56b609(0x107e)]=_0x1e45d2,_0x5a43bc[_0x56b609(0x25e0)]=_0x5bd918,_0x5a43bc[_0x56b609(0x24a4)]=_0x4e9f19;function _0x5aa52b(_0x4216d9,_0x12a418){const _0x137bf7=_0x56b609;_0x5a43bc[_0x137bf7(0x1512)]=_0x4216d9,_0x5a43bc['crudPermissions']=typeof _0x12a418!=='undefined'?_0x12a418:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5a43bc[_0x137bf7(0x289a)][_0x137bf7(0x1be5)]=_0x5a43bc[_0x137bf7(0x1512)]['id'],_0x5a43bc[_0x137bf7(0x289a)]['id']=_0x5a43bc['smsAccount']['id'],_0x574292();}function _0x516730(_0x5ed281,_0x21e81a){const _0x434c54=_0x56b609,_0x817f7b=_0x129fa2[_0x434c54(0x856)]()[_0x434c54(0x2021)](_0x434c54(0x644))[_0x434c54(0x33a)](_0x434c54(0x50b)+(_0x5ed281[_0x434c54(0x2494)]||_0x5ed281['id']&&_0x28c606()[_0x434c54(0x1766)](_0x434c54(0x1a55))+_0x5ed281['id']||_0x434c54(0x20be))+_0x434c54(0x26d0)+_0x434c54(0x4b8))[_0x434c54(0x213e)](_0x434c54(0x502))[_0x434c54(0x2283)](_0x21e81a)['ok']('OK')[_0x434c54(0x101a)](_0x434c54(0x18fd));_0x129fa2[_0x434c54(0xa60)](_0x817f7b)[_0x434c54(0x64a)](function(){_0x5bd918(_0x5ed281);},function(){const _0x9e4e67=_0x434c54;console[_0x9e4e67(0x9b4)](_0x9e4e67(0x18fd));});}function _0x17d99c(_0x37504b){const _0x54da9d=_0x56b609;_0x5a43bc[_0x54da9d(0x234f)]=_0x37504b||{'count':0x0,'rows':[]};}function _0x574292(){const _0xa8b0ea=_0x56b609;_0x5a43bc['query'][_0xa8b0ea(0x24f9)]=(_0x5a43bc['query'][_0xa8b0ea(0xc72)]-0x1)*_0x5a43bc[_0xa8b0ea(0x289a)][_0xa8b0ea(0x25bb)],_0x5a43bc[_0xa8b0ea(0x1713)]=_0x541c15[_0xa8b0ea(0x1512)][_0xa8b0ea(0x13db)](_0x5a43bc[_0xa8b0ea(0x289a)],_0x17d99c)[_0xa8b0ea(0x15e7)];}function _0x3dd30a(_0x394960,_0x476647){const _0x3776e7=_0x56b609;_0x129fa2['show']({'controller':_0x3776e7(0x1f1c),'controllerAs':'vm','templateUrl':_0xe9c7bf,'parent':angular['element'](_0x58d560['body']),'targetEvent':_0x394960,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x5a43bc[_0x3776e7(0x1512)],'smsCannedAnswer':_0x476647,'smsCannedAnswers':_0x5a43bc[_0x3776e7(0x234f)][_0x3776e7(0x28b8)],'license':null,'setting':null,'crudPermissions':_0x5a43bc[_0x3776e7(0x402)]}});}function _0x5bd918(_0x100afc){const _0x4588cd=_0x56b609;_0x541c15[_0x4588cd(0x14c4)][_0x4588cd(0xabd)]({'id':_0x100afc['id']})[_0x4588cd(0x15e7)][_0x4588cd(0x64a)](function(){const _0x12969f=_0x4588cd;_0x28c606()[_0x12969f(0x21c7)](_0x5a43bc[_0x12969f(0x234f)]['rows'],{'id':_0x100afc['id']}),_0x5a43bc[_0x12969f(0x234f)][_0x12969f(0xb90)]-=0x1,!_0x5a43bc['smsAccountSmsCannedAnswers']['rows'][_0x12969f(0x1b9e)]&&_0x574292(),_0x5dbea6[_0x12969f(0x1339)]({'title':_0x12969f(0x19f),'msg':_0x100afc['name']?_0x100afc[_0x12969f(0x2494)]+_0x12969f(0x1fa8):''});})[_0x4588cd(0x20cd)](function(_0x38cd62){const _0x4e728e=_0x4588cd;if(_0x38cd62['data']&&_0x38cd62['data'][_0x4e728e(0xbae)]&&_0x38cd62[_0x4e728e(0x1c52)][_0x4e728e(0xbae)][_0x4e728e(0x1b9e)]){_0x5a43bc[_0x4e728e(0xbae)]=_0x38cd62['data'][_0x4e728e(0xbae)]||[{'message':_0x38cd62[_0x4e728e(0x2915)](),'type':_0x4e728e(0x91c)}];for(let _0x3ed202=0x0;_0x3ed202<_0x38cd62[_0x4e728e(0x1c52)][_0x4e728e(0xbae)][_0x4e728e(0x1b9e)];_0x3ed202++){_0x5dbea6[_0x4e728e(0x1bd0)]({'title':_0x38cd62['data'][_0x4e728e(0xbae)][_0x3ed202][_0x4e728e(0x2185)],'msg':_0x38cd62[_0x4e728e(0x1c52)][_0x4e728e(0xbae)][_0x3ed202][_0x4e728e(0x18ca)]});}}else _0x5dbea6[_0x4e728e(0x1bd0)]({'title':_0x38cd62[_0x4e728e(0x10b3)]?_0x4e728e(0x575)+_0x38cd62[_0x4e728e(0x10b3)]+_0x4e728e(0x21db)+_0x38cd62[_0x4e728e(0x2115)]:_0x4e728e(0x91c),'msg':_0x38cd62[_0x4e728e(0x1c52)]?JSON[_0x4e728e(0x2317)](_0x38cd62['data'][_0x4e728e(0x18ca)]):_0x38cd62[_0x4e728e(0x18ca)]||_0x38cd62[_0x4e728e(0x2915)]()});});}function _0x1e45d2(){const _0x48c6cb=_0x56b609,_0x435f66=angular['copy'](_0x5a43bc[_0x48c6cb(0x296f)]);return _0x5a43bc[_0x48c6cb(0x296f)]=[],_0x435f66;}function _0x4e9f19(_0x53dd40){const _0x3f0161=_0x56b609,_0xdc7c82=_0x129fa2[_0x3f0161(0x856)]()['title'](_0x3f0161(0x8d0))[_0x3f0161(0x33a)](_0x3f0161(0x50b)+_0x5a43bc[_0x3f0161(0x296f)]['length']+_0x3f0161(0x163e)+_0x3f0161(0x4b8))[_0x3f0161(0x213e)](_0x3f0161(0x1209))[_0x3f0161(0x2283)](_0x53dd40)['ok']('OK')[_0x3f0161(0x101a)](_0x3f0161(0x18fd));_0x129fa2['show'](_0xdc7c82)[_0x3f0161(0x64a)](function(){const _0x3db0fd=_0x3f0161;_0x5a43bc[_0x3db0fd(0x296f)]['forEach'](function(_0x4230f5){_0x5bd918(_0x4230f5);}),_0x5a43bc[_0x3db0fd(0x296f)]=[];});}let _0x392303=!![],_0x4410c0=0x1;_0x38eb7d[_0x56b609(0xc62)](_0x56b609(0x1200),function(_0x2b6f57,_0x521fd0){const _0xe93b82=_0x56b609;_0x392303?_0x1ca2e4(function(){_0x392303=![];}):(!_0x521fd0&&(_0x4410c0=_0x5a43bc[_0xe93b82(0x289a)]['page']),_0x2b6f57!==_0x521fd0&&(_0x5a43bc[_0xe93b82(0x289a)][_0xe93b82(0xc72)]=0x1),!_0x2b6f57&&(_0x5a43bc[_0xe93b82(0x289a)][_0xe93b82(0xc72)]=_0x4410c0),_0x574292());});}const _0x4f54ed=_0x1b917b;;_0x1553f3[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0xa8b),_0x49a1e3(0x20be),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x1553f3(_0x416a56,_0xfd091b,_0x2582c0,_0x37dd8b,_0x21f075,_0x137e6e,_0x20d442,_0x35669d,_0x3b9492,_0x252cc,_0x7f00d2,_0x91dde8,_0x82dd16,_0x547c08){const _0x459ea2=_0x49a1e3,_0x466a5a=this;_0x466a5a[_0x459ea2(0x1d3d)]=_0x7f00d2[_0x459ea2(0x808)](),_0x466a5a[_0x459ea2(0xbae)]=[],_0x466a5a[_0x459ea2(0x28d6)]=_0x82dd16,_0x466a5a['license']=_0x91dde8,_0x466a5a['crudPermissions']=_0x547c08,_0x466a5a[_0x459ea2(0x6c2)]={},_0x466a5a[_0x459ea2(0xccc)]=_0x466a5a[_0x459ea2(0x28d6)]&&_0x466a5a[_0x459ea2(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x466a5a[_0x459ea2(0x2021)]='SMS.EDIT_SMSCANNEDANSWER',_0x466a5a['smsCannedAnswer']=angular['copy'](_0x3b9492),_0x466a5a[_0x459ea2(0xa8b)]=_0x35669d,_0x466a5a['newSmsCannedAnswer']=![];!_0x466a5a[_0x459ea2(0x20be)]&&(_0x466a5a['smsCannedAnswer']={},_0x466a5a[_0x459ea2(0x2021)]=_0x459ea2(0x2794),_0x466a5a['newSmsCannedAnswer']=!![]);_0xfd091b[_0x459ea2(0x1b48)]['id']&&(_0x466a5a[_0x459ea2(0x20be)][_0x459ea2(0x1be5)]=_0xfd091b[_0x459ea2(0x1b48)]['id']);_0x466a5a[_0x459ea2(0x1b64)]=_0x3c1fc6,_0x466a5a['saveSmsCannedAnswer']=_0x15f31f,_0x466a5a[_0x459ea2(0x265a)]=_0x5770d8,_0x466a5a['getDateFromString']=_0x245495,_0x466a5a[_0x459ea2(0x16cb)]=_0x35506f;function _0x3c1fc6(){const _0x3cce4d=_0x459ea2;_0x466a5a[_0x3cce4d(0xbae)]=[],_0x252cc[_0x3cce4d(0x14c4)][_0x3cce4d(0x2479)](_0x466a5a['smsCannedAnswer'])[_0x3cce4d(0x15e7)][_0x3cce4d(0x64a)](function(_0x4333af){const _0x539a0d=_0x3cce4d;_0x466a5a[_0x539a0d(0xa8b)][_0x539a0d(0x1891)](_0x4333af[_0x539a0d(0x14f8)]()),_0x20d442[_0x539a0d(0x1339)]({'title':_0x539a0d(0x1a96),'msg':_0x466a5a[_0x539a0d(0x20be)][_0x539a0d(0x2494)]?_0x466a5a['smsCannedAnswer'][_0x539a0d(0x2494)]+_0x539a0d(0x258d):''}),_0x35506f(_0x4333af);})[_0x3cce4d(0x20cd)](function(_0x5081bf){const _0x10de74=_0x3cce4d;if(_0x5081bf[_0x10de74(0x1c52)]&&_0x5081bf[_0x10de74(0x1c52)]['errors']&&_0x5081bf['data'][_0x10de74(0xbae)][_0x10de74(0x1b9e)]){_0x466a5a[_0x10de74(0xbae)]=_0x5081bf[_0x10de74(0x1c52)][_0x10de74(0xbae)]||[{'message':_0x5081bf[_0x10de74(0x2915)](),'type':_0x10de74(0x932)}];for(let _0x4e7303=0x0;_0x4e7303<_0x5081bf[_0x10de74(0x1c52)][_0x10de74(0xbae)][_0x10de74(0x1b9e)];_0x4e7303+=0x1){_0x20d442['error']({'title':_0x5081bf[_0x10de74(0x1c52)][_0x10de74(0xbae)][_0x4e7303][_0x10de74(0x2185)],'msg':_0x5081bf[_0x10de74(0x1c52)][_0x10de74(0xbae)][_0x4e7303][_0x10de74(0x18ca)]});}}else _0x20d442[_0x10de74(0x1bd0)]({'title':_0x5081bf['status']?_0x10de74(0x575)+_0x5081bf[_0x10de74(0x10b3)]+_0x10de74(0x21db)+_0x5081bf[_0x10de74(0x2115)]:'api.cannedAnswer.save','msg':_0x5081bf[_0x10de74(0x1c52)]?JSON['stringify'](_0x5081bf[_0x10de74(0x1c52)]['message']):_0x5081bf[_0x10de74(0x2915)]()});});}function _0x15f31f(){const _0x2462cd=_0x459ea2;_0x466a5a[_0x2462cd(0xbae)]=[],_0x252cc[_0x2462cd(0x14c4)][_0x2462cd(0x2603)]({'id':_0x466a5a['smsCannedAnswer']['id']},_0x466a5a[_0x2462cd(0x20be)])[_0x2462cd(0x15e7)][_0x2462cd(0x64a)](function(_0x590dae){const _0x2c8c15=_0x2462cd,_0x252604=_0x28c606()[_0x2c8c15(0x27bc)](_0x466a5a[_0x2c8c15(0xa8b)],{'id':_0x590dae['id']});_0x252604&&_0x28c606()['merge'](_0x252604,_0x28c606()['pick'](_0x590dae[_0x2c8c15(0x14f8)](),_0x28c606()[_0x2c8c15(0x1ec6)](_0x252604))),_0x20d442[_0x2c8c15(0x1339)]({'title':_0x2c8c15(0x2623),'msg':_0x466a5a['smsCannedAnswer'][_0x2c8c15(0x2494)]?_0x466a5a[_0x2c8c15(0x20be)]['name']+_0x2c8c15(0x271):''}),_0x35506f(_0x590dae);})['catch'](function(_0x377613){const _0xa4d783=_0x2462cd;if(_0x377613[_0xa4d783(0x1c52)]&&_0x377613['data'][_0xa4d783(0xbae)]&&_0x377613[_0xa4d783(0x1c52)][_0xa4d783(0xbae)][_0xa4d783(0x1b9e)]){_0x466a5a[_0xa4d783(0xbae)]=_0x377613[_0xa4d783(0x1c52)][_0xa4d783(0xbae)]||[{'message':_0x377613[_0xa4d783(0x2915)](),'type':'api.cannedAnswer.update'}];for(let _0x57f080=0x0;_0x57f080<_0x377613[_0xa4d783(0x1c52)][_0xa4d783(0xbae)]['length'];_0x57f080++){_0x20d442['error']({'title':_0x377613[_0xa4d783(0x1c52)][_0xa4d783(0xbae)][_0x57f080]['type'],'msg':_0x377613[_0xa4d783(0x1c52)][_0xa4d783(0xbae)][_0x57f080][_0xa4d783(0x18ca)]});}}else _0x20d442[_0xa4d783(0x1bd0)]({'title':_0x377613[_0xa4d783(0x10b3)]?_0xa4d783(0x575)+_0x377613[_0xa4d783(0x10b3)]+_0xa4d783(0x21db)+_0x377613[_0xa4d783(0x2115)]:_0xa4d783(0xab6),'msg':_0x377613['data']?JSON['stringify'](_0x377613['data'][_0xa4d783(0x18ca)]):_0x377613['toString']()});});}function _0x5770d8(_0x4d0bee){const _0x30083b=_0x459ea2;_0x466a5a[_0x30083b(0xbae)]=[];const _0x1aeb8b=_0x37dd8b[_0x30083b(0x856)]()[_0x30083b(0x2021)]('Are\x20you\x20sure?')[_0x30083b(0x12b8)](_0x30083b(0x12f3))[_0x30083b(0x213e)](_0x30083b(0x1020))['ok']('Delete')[_0x30083b(0x101a)](_0x30083b(0x1dc6))[_0x30083b(0x2283)](_0x4d0bee);_0x37dd8b['show'](_0x1aeb8b)[_0x30083b(0x64a)](function(){const _0x2423c3=_0x30083b;_0x252cc[_0x2423c3(0x14c4)][_0x2423c3(0xabd)]({'id':_0x466a5a[_0x2423c3(0x20be)]['id']})[_0x2423c3(0x15e7)][_0x2423c3(0x64a)](function(){const _0x1ea8b0=_0x2423c3;_0x28c606()[_0x1ea8b0(0x21c7)](_0x466a5a['smsCannedAnswers'],{'id':_0x466a5a['smsCannedAnswer']['id']}),_0x20d442[_0x1ea8b0(0x1339)]({'title':_0x1ea8b0(0x37b),'msg':(_0x466a5a[_0x1ea8b0(0x20be)]['name']||_0x1ea8b0(0x20be))+_0x1ea8b0(0x1fa8)}),_0x35506f(_0x466a5a['smsCannedAnswer']);})[_0x2423c3(0x20cd)](function(_0x453565){const _0x15a95d=_0x2423c3;if(_0x453565['data']&&_0x453565[_0x15a95d(0x1c52)]['errors']&&_0x453565[_0x15a95d(0x1c52)]['errors']['length']){_0x466a5a[_0x15a95d(0xbae)]=_0x453565[_0x15a95d(0x1c52)]['errors']||[{'message':_0x453565[_0x15a95d(0x2915)](),'type':_0x15a95d(0x1ed3)}];for(let _0x3e57a6=0x0;_0x3e57a6<_0x453565[_0x15a95d(0x1c52)][_0x15a95d(0xbae)][_0x15a95d(0x1b9e)];_0x3e57a6++){_0x20d442[_0x15a95d(0x1bd0)]({'title':_0x453565['data'][_0x15a95d(0xbae)][_0x3e57a6]['type'],'msg':_0x453565[_0x15a95d(0x1c52)][_0x15a95d(0xbae)][_0x3e57a6][_0x15a95d(0x18ca)]});}}else _0x20d442['error']({'title':_0x453565[_0x15a95d(0x10b3)]?_0x15a95d(0x575)+_0x453565[_0x15a95d(0x10b3)]+_0x15a95d(0x21db)+_0x453565['statusText']:'api.cannedAnswer.delete','msg':_0x453565[_0x15a95d(0x1c52)]?JSON[_0x15a95d(0x2317)](_0x453565[_0x15a95d(0x1c52)][_0x15a95d(0x18ca)]):_0x453565['message']||_0x453565[_0x15a95d(0x2915)]()});});},function(){});}function _0x245495(_0x1b3829){return _0x1b3829===null?undefined:new Date(_0x1b3829);}function _0x35506f(_0x58fcf1){const _0xcedaad=_0x459ea2;_0x37dd8b[_0xcedaad(0x268e)](_0x58fcf1);}}const _0x4527be=_0x1553f3;;_0x3a2b34[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),'api',_0x49a1e3(0x680),_0x49a1e3(0xdcf)];function _0x3a2b34(_0x5a9d2e,_0x50311c,_0x1c3cf0,_0x2b4b43,_0x1f5837,_0x4c8e15,_0x342205,_0x37811a,_0x2f9e34,_0x29851a,_0x4ce785){const _0x4d485d=_0x49a1e3,_0x1a122c=this;_0x1a122c[_0x4d485d(0x1d3d)]=_0x4ce785[_0x4d485d(0x808)](),_0x1a122c[_0x4d485d(0x16d7)]={'count':0x0,'rows':[]},_0x1a122c[_0x4d485d(0x1403)]=[],_0x1a122c[_0x4d485d(0x402)],_0x1a122c['levels']={'first':_0x4d485d(0x1d03),'second':_0x4d485d(0x255e),'third':'3rd'},_0x1a122c[_0x4d485d(0x289a)]={'fields':_0x4d485d(0x12ce),'sort':_0x4d485d(0x260c),'limit':0xa,'page':0x1},_0x1a122c[_0x4d485d(0x2354)]=_0x194787,_0x1a122c[_0x4d485d(0x217e)]=_0x2cb252,_0x1a122c[_0x4d485d(0x1339)]=_0x358ad4,_0x1a122c[_0x4d485d(0xe50)]=_0x31f8f9,_0x1a122c[_0x4d485d(0x22cb)]=_0x28fd2c,_0x1a122c[_0x4d485d(0x17f6)]=_0x2067d4,_0x1a122c[_0x4d485d(0x28e3)]=_0x185501,_0x1a122c[_0x4d485d(0x1d1e)]=_0x31dee3,_0x1a122c['deselectDispositions']=_0x2f5724,_0x1a122c[_0x4d485d(0x2984)]=_0x55e3bd;function _0x194787(_0x248346,_0x4fa7b9){const _0x4c6747=_0x4d485d;_0x1a122c['smsAccount']=_0x248346||{},_0x1a122c[_0x4c6747(0x402)]=typeof _0x4fa7b9!==_0x4c6747(0x19a1)?_0x4fa7b9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1a122c[_0x4c6747(0x289a)]['SmsAccountId']=_0x1a122c[_0x4c6747(0x1512)]['id'],_0x1a122c[_0x4c6747(0x289a)]['id']=_0x1a122c[_0x4c6747(0x1512)]['id'],_0x31f8f9();}function _0x28fd2c(_0x312306,_0x115623){const _0x3ae2f8=_0x4d485d;_0x1f5837[_0x3ae2f8(0xa60)]({'controller':'CreateOrEditDispositionDialogController','controllerAs':'vm','templateUrl':_0x482291,'parent':angular[_0x3ae2f8(0x1f81)](_0x4c8e15['body']),'targetEvent':_0x312306,'clickOutsideToClose':!![],'locals':{'disposition':_0x115623,'model':{'id':_0x1a122c[_0x3ae2f8(0x1512)]['id'],'field':_0x3ae2f8(0x1be5),'route':_0x3ae2f8(0x1512)},'license':null,'setting':null,'crudPermissions':_0x1a122c[_0x3ae2f8(0x402)]}})[_0x3ae2f8(0x64a)](function(_0x5ced13){if(_0x5ced13)_0x31f8f9();});}function _0x2cb252(_0x41089e,_0x114030){const _0x121369=_0x4d485d,_0x1215f3=_0x28c606()[_0x121369(0x25f8)](_0x1a122c[_0x121369(0x16d7)][_0x121369(0x28b8)],[_0x121369(0xbb9),_0x41089e['id']]),_0x381aa2=_0x1f5837[_0x121369(0x856)]()['title'](_0x37811a['instant'](_0x121369(0x13a7)))[_0x121369(0x12b8)](_0x37811a[_0x121369(0x2292)](_0x121369(0x2213)+(_0x1215f3?'DISPOSITION_DELETE_MESSAGE_CHILDREN':'DISPOSITION_DELETE_MESSAGE'),{'name':_0x41089e[_0x121369(0x2494)]}))[_0x121369(0x213e)](_0x121369(0xc2c))['targetEvent'](_0x114030)['ok']('OK')['cancel'](_0x37811a[_0x121369(0x2292)]('APP.CANCEL'));_0x1f5837[_0x121369(0xa60)](_0x381aa2)[_0x121369(0x64a)](function(){_0x2067d4(_0x41089e);});}function _0x358ad4(_0x2f918d){const _0x59f7b2=_0x4d485d;_0x1a122c[_0x59f7b2(0x16d7)]=_0x2f918d||{'count':0x0,'rows':[]};}function _0x31f8f9(){const _0x898049=_0x4d485d;_0x1a122c[_0x898049(0x289a)][_0x898049(0x24f9)]=(_0x1a122c[_0x898049(0x289a)][_0x898049(0xc72)]-0x1)*_0x1a122c['query'][_0x898049(0x25bb)],_0x1a122c['promise']=_0x2f9e34[_0x898049(0x1512)]['getDispositions'](_0x1a122c[_0x898049(0x289a)],_0x358ad4)[_0x898049(0x15e7)];}function _0x2067d4(_0x28237a){const _0x195558=_0x4d485d;_0x2f9e34[_0x195558(0x168b)][_0x195558(0xabd)]({'id':_0x28237a['id']})[_0x195558(0x15e7)]['then'](function(){const _0x40006b=_0x195558;_0x31f8f9(),_0x29851a['success']({'title':_0x37811a[_0x40006b(0x2292)]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')});})[_0x195558(0x20cd)](function(_0x1d6b6d){const _0x460f60=_0x195558;if(_0x1d6b6d[_0x460f60(0x1c52)]&&_0x1d6b6d[_0x460f60(0x1c52)][_0x460f60(0xbae)]&&_0x1d6b6d[_0x460f60(0x1c52)]['errors'][_0x460f60(0x1b9e)]){_0x1a122c[_0x460f60(0xbae)]=_0x1d6b6d[_0x460f60(0x1c52)][_0x460f60(0xbae)]||[{'message':_0x1d6b6d[_0x460f60(0x2915)](),'type':_0x460f60(0x1c37)}];for(let _0x4d49f9=0x0;_0x4d49f9<_0x1d6b6d[_0x460f60(0x1c52)][_0x460f60(0xbae)]['length'];_0x4d49f9++){_0x29851a[_0x460f60(0x1bd0)]({'title':_0x1d6b6d['data'][_0x460f60(0xbae)][_0x4d49f9]['type'],'msg':_0x1d6b6d[_0x460f60(0x1c52)][_0x460f60(0xbae)][_0x4d49f9][_0x460f60(0x18ca)]});}}else _0x29851a[_0x460f60(0x1bd0)]({'title':_0x1d6b6d[_0x460f60(0x10b3)]?_0x460f60(0x575)+_0x1d6b6d[_0x460f60(0x10b3)]+_0x460f60(0x21db)+_0x1d6b6d[_0x460f60(0x2115)]:_0x460f60(0x1c37),'msg':_0x1d6b6d['data']?JSON[_0x460f60(0x2317)](_0x1d6b6d[_0x460f60(0x1c52)]['message']):_0x1d6b6d[_0x460f60(0x18ca)]||_0x1d6b6d[_0x460f60(0x2915)]()});});}function _0x185501(){const _0x4e417e=_0x4d485d,_0x11f9e1=angular[_0x4e417e(0x289e)](_0x1a122c[_0x4e417e(0x1403)]);return _0x1a122c[_0x4e417e(0x1403)]=[],_0x11f9e1;}function _0x31dee3(_0x45bc04){const _0x5be73f=_0x4d485d,_0x4bce06=_0x1f5837[_0x5be73f(0x856)]()['title'](_0x37811a[_0x5be73f(0x2292)](_0x5be73f(0x10a1)))['content'](_0x37811a[_0x5be73f(0x2292)](_0x5be73f(0x2563),{'total':_0x1a122c[_0x5be73f(0x1403)]['length']}))[_0x5be73f(0x213e)](_0x5be73f(0x10e))[_0x5be73f(0x2283)](_0x45bc04)['ok']('OK')[_0x5be73f(0x101a)](_0x37811a[_0x5be73f(0x2292)](_0x5be73f(0x4f5)));_0x1f5837[_0x5be73f(0xa60)](_0x4bce06)[_0x5be73f(0x64a)](function(){const _0x14b6eb=_0x5be73f;_0x1a122c[_0x14b6eb(0x1403)][_0x14b6eb(0x1397)](function(_0x2947f0){_0x2067d4(_0x2947f0);}),_0x1a122c['selectedDispositions']=[];});}function _0x2f5724(){_0x1a122c['selectedDispositions']=[];}function _0x55e3bd(){const _0x579c65=_0x4d485d;_0x1a122c[_0x579c65(0x1403)]=_0x1a122c[_0x579c65(0x16d7)][_0x579c65(0x28b8)];}let _0xbc6c8=!![],_0x4146a7=0x1;_0x5a9d2e[_0x4d485d(0xc62)](_0x4d485d(0x1200),function(_0x1a3093,_0x59646f){const _0x270058=_0x4d485d;_0xbc6c8?_0x342205(function(){_0xbc6c8=![];}):(!_0x59646f&&(_0x4146a7=_0x1a122c[_0x270058(0x289a)][_0x270058(0xc72)]),_0x1a3093!==_0x59646f&&(_0x1a122c[_0x270058(0x289a)]['page']=0x1),!_0x1a3093&&(_0x1a122c[_0x270058(0x289a)][_0x270058(0xc72)]=_0x4146a7),_0x31f8f9());});}const _0x2de556=_0x3a2b34;;const _0xc3db19=_0x2e4a48['p']+_0x49a1e3(0x94e);;_0x597366['$inject']=['$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1512),_0x49a1e3(0x16b2)];function _0x597366(_0x4d1aea,_0x38d7a2,_0x324a15,_0x27d3eb,_0xaa0707,_0x2918dc,_0x365d3c,_0x2aae38,_0x5a179f,_0x5f0ae1,_0x1db437,_0x5f3cc5){const _0x4fb130=_0x49a1e3,_0x265a1c=this;_0x265a1c[_0x4fb130(0x1d3d)]=_0x5f0ae1[_0x4fb130(0x808)](),_0x265a1c[_0x4fb130(0x1947)]=_0x2918dc,_0x265a1c[_0x4fb130(0x28d6)]=_0x365d3c,_0x265a1c['passwordPattern']=_0x265a1c[_0x4fb130(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x265a1c[_0x4fb130(0xb36)]=_0x38d7a2[_0x4fb130(0x48e)]()+_0x4fb130(0xe1f)+_0x38d7a2[_0x4fb130(0x1e5d)](),_0x265a1c[_0x4fb130(0x1512)]=_0x1db437||_0x4d1aea['params']['smsAccount']||{},_0x265a1c[_0x4fb130(0x16b2)]=_0x5f3cc5&&_0x5f3cc5['count']==0x1?_0x5f3cc5[_0x4fb130(0x28b8)][0x0]:null,_0x265a1c[_0x4fb130(0x402)]=_0x5f0ae1[_0x4fb130(0xa7e)](_0x265a1c[_0x4fb130(0x16b2)]?_0x265a1c['userProfileSection'][_0x4fb130(0x402)]:null),_0x265a1c['hasModulePermissions']={},_0x265a1c['selectedTab']=_0x4d1aea[_0x4fb130(0x1b48)][_0x4fb130(0x1222)]||0x0,_0x265a1c['agentadddialog']=_0x250860,_0x265a1c[_0x4fb130(0x2540)]=_0x5a179f[_0x4fb130(0x772)],_0x265a1c[_0x4fb130(0x2630)]=_0x43b272,_0x265a1c['saveSmsAccount']=_0x41ebd0,_0x5f0ae1[_0x4fb130(0x4de)](_0x4fb130(0x333))?_0x2aae38[_0x4fb130(0x19f8)][_0x4fb130(0x896)]({'fields':_0x4fb130(0x1427),'sort':'name'})[_0x4fb130(0x15e7)][_0x4fb130(0x64a)](function(_0x5a79c1){_0x265a1c['lists']=_0x5a79c1['rows']||[];})[_0x4fb130(0x20cd)](function(_0x4c74d8){const _0x5772dc=_0x4fb130;_0x5a179f['error']({'title':_0x4c74d8['status']?_0x5772dc(0x575)+_0x4c74d8[_0x5772dc(0x10b3)]+'\x20-\x20'+_0x4c74d8['statusText']:'SYSTEM:GET_LISTS','msg':_0x4c74d8[_0x5772dc(0x1c52)]?JSON[_0x5772dc(0x2317)](_0x4c74d8[_0x5772dc(0x1c52)]):_0x4c74d8[_0x5772dc(0x2915)]()});}):_0x2aae38[_0x4fb130(0x19f8)][_0x4fb130(0x896)]({'fields':_0x4fb130(0x1427),'sort':_0x4fb130(0x2494)})[_0x4fb130(0x15e7)][_0x4fb130(0x64a)](function(_0xd4bb89){const _0x166613=_0x4fb130;_0x265a1c[_0x166613(0x974)]=_0xd4bb89['rows']||[];})[_0x4fb130(0x64a)](function(){const _0x2ee740=_0x4fb130;return _0x2aae38[_0x2ee740(0x16b2)]['get']({'userProfileId':_0x265a1c[_0x2ee740(0x1d3d)][_0x2ee740(0x21ac)],'sectionId':0x12d})[_0x2ee740(0x15e7)];})[_0x4fb130(0x64a)](function(_0x4900f7){const _0x353fa3=_0x4fb130,_0xc15dc=_0x4900f7&&_0x4900f7[_0x353fa3(0x28b8)]?_0x4900f7[_0x353fa3(0x28b8)][0x0]:null;if(!_0xc15dc){const _0x27d090=[];let _0x18f378=null;_0x265a1c['smsAccount']&&(_0x18f378=_0x28c606()['find'](_0x265a1c[_0x353fa3(0x974)],{'id':Number(_0x265a1c[_0x353fa3(0x1512)][_0x353fa3(0x869)])}));for(let _0x1d01fd=0x0;_0x1d01fd<_0x265a1c['lists']['length'];_0x1d01fd++){_0x18f378&&_0x265a1c['lists'][_0x1d01fd]['id']===_0x18f378['id']&&(_0x265a1c[_0x353fa3(0x974)][_0x1d01fd]['canSelect']=![],_0x27d090[_0x353fa3(0x1954)](_0x265a1c[_0x353fa3(0x974)][_0x1d01fd]));}_0x265a1c['lists']=_0x27d090;}else{if(!_0xc15dc[_0x353fa3(0x11da)])return _0x2aae38[_0x353fa3(0x1617)][_0x353fa3(0x896)]({'sectionId':_0xc15dc['id']})[_0x353fa3(0x15e7)]['then'](function(_0x3ea592){const _0x568827=_0x353fa3,_0x27395a=_0x28c606()[_0x568827(0x1de5)](_0x3ea592[_0x568827(0x28b8)],function(_0x298201){const _0x3bb334=_0x568827;return _0x28c606()[_0x3bb334(0x27bc)](_0x265a1c[_0x3bb334(0x974)],{'id':_0x298201[_0x3bb334(0x145)]});});let _0x594577=null;_0x265a1c[_0x568827(0x1512)]&&(_0x594577=_0x28c606()[_0x568827(0x27bc)](_0x265a1c['lists'],{'id':Number(_0x265a1c[_0x568827(0x1512)][_0x568827(0x869)])}));if(_0x594577&&!_0x28c606()[_0x568827(0x25f8)](_0x27395a,['id',_0x594577['id']])){const _0x4f63a8=_0x28c606()[_0x568827(0x27bc)](_0x265a1c[_0x568827(0x974)],{'id':_0x594577['id']});_0x4f63a8['canSelect']=![],_0x27395a[_0x568827(0x1954)](_0x4f63a8);}_0x265a1c['lists']=_0x27395a;});}})[_0x4fb130(0x20cd)](function(_0xd0203){const _0x1ca36c=_0x4fb130;_0x5a179f[_0x1ca36c(0x1bd0)]({'title':_0xd0203[_0x1ca36c(0x10b3)]?_0x1ca36c(0x575)+_0xd0203['status']+_0x1ca36c(0x21db)+_0xd0203[_0x1ca36c(0x2115)]:'SYSTEM:GETlists','msg':_0xd0203[_0x1ca36c(0x1c52)]?JSON[_0x1ca36c(0x2317)](_0xd0203[_0x1ca36c(0x1c52)]):_0xd0203[_0x1ca36c(0x2915)]()});}),_0x5f0ae1[_0x4fb130(0x4de)](_0x4fb130(0x333))?_0x2aae38[_0x4fb130(0x2826)][_0x4fb130(0x896)]({'fields':_0x4fb130(0x1dfb),'sort':_0x4fb130(0x2494),'nolimit':_0x4fb130(0x1685)})[_0x4fb130(0x15e7)][_0x4fb130(0x64a)](function(_0x4d2d77){_0x265a1c['pauses']=_0x4d2d77['rows']||[];})[_0x4fb130(0x20cd)](function(_0x367844){const _0x3a0b73=_0x4fb130;_0x5a179f[_0x3a0b73(0x1bd0)]({'title':_0x367844[_0x3a0b73(0x10b3)]?'API:'+_0x367844[_0x3a0b73(0x10b3)]+_0x3a0b73(0x21db)+_0x367844[_0x3a0b73(0x2115)]:'SYSTEM:GET_PAUSES','msg':_0x367844[_0x3a0b73(0x1c52)]?JSON[_0x3a0b73(0x2317)](_0x367844[_0x3a0b73(0x1c52)]):_0x367844[_0x3a0b73(0x2915)]()});}):_0x2aae38[_0x4fb130(0x2826)]['get']({'fields':_0x4fb130(0x1dfb),'sort':_0x4fb130(0x2494),'nolimit':_0x4fb130(0x1685)})['$promise'][_0x4fb130(0x64a)](function(_0x9a378f){const _0x2e22de=_0x4fb130;_0x265a1c[_0x2e22de(0x23d1)]=_0x9a378f[_0x2e22de(0x28b8)]||[];})['then'](function(){const _0x5ce824=_0x4fb130;return _0x2aae38['userProfileSection']['get']({'userProfileId':_0x265a1c['currentUser'][_0x5ce824(0x21ac)],'sectionId':0x3ed})[_0x5ce824(0x15e7)];})['then'](function(_0x3ba3ef){const _0x28706b=_0x4fb130,_0x2c36c1=_0x3ba3ef&&_0x3ba3ef[_0x28706b(0x28b8)]?_0x3ba3ef[_0x28706b(0x28b8)][0x0]:null;if(!_0x2c36c1)_0x265a1c[_0x28706b(0x23d1)]=[];else{if(!_0x2c36c1['autoAssociation'])return _0x2aae38[_0x28706b(0x1617)][_0x28706b(0x896)]({'sectionId':_0x2c36c1['id']})[_0x28706b(0x15e7)][_0x28706b(0x64a)](function(_0xd23fb){const _0x4ead50=_0x28706b,_0x1b2976=_0x28c606()[_0x4ead50(0x1de5)](_0xd23fb['rows'],function(_0x260021){const _0x5145e8=_0x4ead50;return _0x28c606()[_0x5145e8(0x27bc)](_0x265a1c['pauses'],{'id':_0x260021[_0x5145e8(0x145)]});});_0x265a1c['pauses']['forEach'](function(_0xb078e3){const _0x61b6e6=_0x4ead50;!_0x28c606()['some'](_0x1b2976,['id',_0xb078e3['id']])&&(_0xb078e3[_0x61b6e6(0xd4f)]=![]),_0x1b2976[_0x61b6e6(0x1954)](_0xb078e3);}),_0x265a1c['pauses']=_0x1b2976;});}})['catch'](function(_0x1ee157){const _0x2e361f=_0x4fb130;_0x5a179f['error']({'title':_0x1ee157[_0x2e361f(0x10b3)]?_0x2e361f(0x575)+_0x1ee157[_0x2e361f(0x10b3)]+_0x2e361f(0x21db)+_0x1ee157[_0x2e361f(0x2115)]:_0x2e361f(0xd4a),'msg':_0x1ee157[_0x2e361f(0x1c52)]?JSON['stringify'](_0x1ee157['data']):_0x1ee157[_0x2e361f(0x2915)]()});});function _0x250860(_0x3f8390,_0x319aac){const _0x22a386=_0x4fb130;_0x324a15['show']({'controller':_0x22a386(0x1a45),'controllerAs':'vm','templateUrl':_0xc3db19,'parent':angular[_0x22a386(0x1f81)](_0x27d3eb[_0x22a386(0xb49)]),'targetEvent':_0x319aac,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x3f8390,'smsAccounts':_0x265a1c[_0x22a386(0x205)]?_0x265a1c[_0x22a386(0x205)][_0x22a386(0x28b8)]:[],'crudPermissions':_0x265a1c[_0x22a386(0x402)],'realtime':![]}});}function _0x43b272(){const _0x4127c5=_0x4fb130;_0x4d1aea['go'](_0x4127c5(0x1abc),{},{'reload':_0x4127c5(0x1abc)});}function _0x41ebd0(){const _0x54d652=_0x4fb130;_0x2aae38[_0x54d652(0x1512)][_0x54d652(0x2603)]({'id':_0x265a1c[_0x54d652(0x1512)]['id']},_0x265a1c['smsAccount'])[_0x54d652(0x15e7)][_0x54d652(0x64a)](function(){const _0x25a817=_0x54d652;_0x5a179f[_0x25a817(0x1339)]({'title':_0x25a817(0x22ca),'msg':_0x265a1c[_0x25a817(0x1512)][_0x25a817(0x2494)]?_0x265a1c[_0x25a817(0x1512)][_0x25a817(0x2494)]+'\x20has\x20been\x20updated!':''});})[_0x54d652(0x20cd)](function(_0x910e31){const _0x1bee58=_0x54d652;_0x5a179f[_0x1bee58(0x1bd0)]({'title':_0x910e31[_0x1bee58(0x10b3)]?_0x1bee58(0x575)+_0x910e31['status']+_0x1bee58(0x21db)+_0x910e31[_0x1bee58(0x2115)]:_0x1bee58(0x91c),'msg':_0x910e31['data']?JSON[_0x1bee58(0x2317)](_0x910e31[_0x1bee58(0x1c52)]):_0x910e31[_0x1bee58(0x2915)]()});});}}const _0x3c4034=_0x597366;;const _0x237f53=_0x2e4a48['p']+_0x49a1e3(0x17f9);;_0x1f6334[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$window',_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x205),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),'msUtils',_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x1f6334(_0x31ebac,_0x25670f,_0xdda583,_0x1f0e96,_0x3837bf,_0x2907e,_0x44b6ca,_0x2b1bc9,_0x112414,_0x3c3740,_0x4d56f4,_0x19a511,_0x2215ea,_0x249e08,_0x55e14b,_0x1bbeec,_0x1fcbd3){const _0x53b48f=_0x49a1e3,_0x2ed518=this;_0x2ed518[_0x53b48f(0x1947)]=_0x1bbeec,_0x2ed518[_0x53b48f(0x28d6)]=_0x1fcbd3,_0x2ed518[_0x53b48f(0x1d3d)]=_0x55e14b[_0x53b48f(0x808)](),_0x2ed518['smsAccounts']=_0x112414||{'count':0x0,'rows':[]},_0x2ed518[_0x53b48f(0x16a8)]=_0x3c3740,_0x2ed518['userProfileSection']=_0x4d56f4&&_0x4d56f4[_0x53b48f(0xb90)]==0x1?_0x4d56f4['rows'][0x0]:null,_0x2ed518[_0x53b48f(0x402)]=_0x55e14b['parseCrudPermissions'](_0x2ed518[_0x53b48f(0x16b2)]?_0x2ed518[_0x53b48f(0x16b2)][_0x53b48f(0x402)]:null),_0x2ed518['table']='smsAccounts',_0x2ed518[_0x53b48f(0x300)]='',_0x2ed518[_0x53b48f(0x2748)]=null,_0x2ed518[_0x53b48f(0x1717)]=[],_0x2ed518[_0x53b48f(0x289a)]={'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':_0x53b48f(0x260c),'limit':0xa,'page':0x1},_0x2ed518[_0x53b48f(0x9d4)]=_0x28c606()['keyBy']([{'option':_0x53b48f(0x907),'value':_0x53b48f(0x2151)},{'option':_0x53b48f(0x14c5),'value':_0x53b48f(0x5a1)},{'option':_0x53b48f(0x126b),'value':_0x53b48f(0x1130)},{'option':'ClickSend','value':_0x53b48f(0x64c)},{'option':_0x53b48f(0x145a),'value':'\x27plivo\x27'},{'option':_0x53b48f(0x223b),'value':_0x53b48f(0x1c12)},{'option':_0x53b48f(0x15a1),'value':_0x53b48f(0x27d5)},{'option':_0x53b48f(0x3ca),'value':'\x27csc\x27'},{'option':'Intelepeer','value':'\x27intelepeer\x27'}],function(_0xae3f9f){const _0xf90783=_0x53b48f;return _0x28c606()[_0xf90783(0x1353)](_0xae3f9f[_0xf90783(0x1096)],new RegExp('\x27','g'),'');}),_0x2ed518[_0x53b48f(0x2690)]=_0x28c606()[_0x53b48f(0x161e)]([{'option':_0x53b48f(0x1e26),'value':_0x53b48f(0x11c7)},{'option':_0x53b48f(0x1c4e),'value':_0x53b48f(0x218c)},{'option':_0x53b48f(0x209a),'value':_0x53b48f(0x1e97)}],function(_0x3477ed){const _0x4c41e7=_0x53b48f;return _0x28c606()[_0x4c41e7(0x1353)](_0x3477ed['value'],new RegExp('\x27','g'),'');}),_0x2ed518[_0x53b48f(0xff6)]=_0x1c82a8,_0x2ed518[_0x53b48f(0x1531)]=_0xec1afd,_0x2ed518['agentadddialog']=_0x2f0e59,_0x2ed518[_0x53b48f(0x1262)]=_0x5b0340,_0x2ed518[_0x53b48f(0x1339)]=_0x16806b,_0x2ed518[_0x53b48f(0x790)]=_0x105a47,_0x2ed518[_0x53b48f(0x1eb2)]=_0x16b80d,_0x2ed518['deleteSmsAccount']=_0x2470f0,_0x2ed518[_0x53b48f(0x7d5)]=_0x502aaa,_0x2ed518[_0x53b48f(0x240f)]=_0x19a720,_0x2ed518[_0x53b48f(0x2355)]=_0x14008c,_0x2ed518[_0x53b48f(0x16c3)]=_0x4b5ffe,_0x55e14b['hasRole']('admin')?_0x19a511['cmList'][_0x53b48f(0x896)]({'fields':_0x53b48f(0x1427),'sort':_0x53b48f(0x2494)})[_0x53b48f(0x15e7)][_0x53b48f(0x64a)](function(_0x2f5a51){const _0x4bb9b9=_0x53b48f;_0x2ed518[_0x4bb9b9(0x974)]=_0x2f5a51[_0x4bb9b9(0x28b8)]||[];})[_0x53b48f(0x20cd)](function(_0x56ddd5){const _0x1211fb=_0x53b48f;_0x249e08[_0x1211fb(0x1bd0)]({'title':_0x56ddd5['status']?_0x1211fb(0x575)+_0x56ddd5[_0x1211fb(0x10b3)]+_0x1211fb(0x21db)+_0x56ddd5[_0x1211fb(0x2115)]:'SYSTEM:GET_LISTS','msg':_0x56ddd5[_0x1211fb(0x1c52)]?JSON['stringify'](_0x56ddd5[_0x1211fb(0x1c52)]):_0x56ddd5[_0x1211fb(0x2915)]()});}):_0x19a511[_0x53b48f(0x19f8)][_0x53b48f(0x896)]({'fields':'id,name','sort':'name'})[_0x53b48f(0x15e7)][_0x53b48f(0x64a)](function(_0x523c7b){const _0x1c1eaa=_0x53b48f;_0x2ed518[_0x1c1eaa(0x974)]=_0x523c7b['rows']||[];})[_0x53b48f(0x64a)](function(){const _0x158554=_0x53b48f;return _0x19a511[_0x158554(0x16b2)]['get']({'userProfileId':_0x2ed518['currentUser'][_0x158554(0x21ac)],'sectionId':0x12d})['$promise'];})[_0x53b48f(0x64a)](function(_0x2d9cb0){const _0x2b67c8=_0x53b48f,_0x177508=_0x2d9cb0&&_0x2d9cb0[_0x2b67c8(0x28b8)]?_0x2d9cb0['rows'][0x0]:null;if(!_0x177508){const _0x37cea7=[];let _0x4c63b4=null;_0x2ed518['smsAccount']&&(_0x4c63b4=_0x28c606()['find'](_0x2ed518[_0x2b67c8(0x974)],{'id':Number(_0x2ed518[_0x2b67c8(0x1512)][_0x2b67c8(0x869)])}));for(let _0x1bc6df=0x0;_0x1bc6df<_0x2ed518[_0x2b67c8(0x974)][_0x2b67c8(0x1b9e)];_0x1bc6df++){_0x4c63b4&&_0x2ed518[_0x2b67c8(0x974)][_0x1bc6df]['id']===_0x4c63b4['id']&&(_0x2ed518[_0x2b67c8(0x974)][_0x1bc6df]['canSelect']=![],_0x37cea7['push'](_0x2ed518[_0x2b67c8(0x974)][_0x1bc6df]));}_0x2ed518[_0x2b67c8(0x974)]=_0x37cea7;}else{if(!_0x177508[_0x2b67c8(0x11da)])return _0x19a511[_0x2b67c8(0x1617)][_0x2b67c8(0x896)]({'sectionId':_0x177508['id']})[_0x2b67c8(0x15e7)][_0x2b67c8(0x64a)](function(_0x463ae5){const _0x417334=_0x2b67c8,_0x224b61=_0x28c606()[_0x417334(0x1de5)](_0x463ae5[_0x417334(0x28b8)],function(_0x28e23b){const _0x5236df=_0x417334;return _0x28c606()['find'](_0x2ed518[_0x5236df(0x974)],{'id':_0x28e23b[_0x5236df(0x145)]});});let _0x5ba2f3=null;_0x2ed518['smsAccount']&&(_0x5ba2f3=_0x28c606()[_0x417334(0x27bc)](_0x2ed518[_0x417334(0x974)],{'id':Number(_0x2ed518['smsAccount'][_0x417334(0x869)])}));if(_0x5ba2f3&&!_0x28c606()[_0x417334(0x25f8)](_0x224b61,['id',_0x5ba2f3['id']])){const _0x4fa9be=_0x28c606()[_0x417334(0x27bc)](_0x2ed518[_0x417334(0x974)],{'id':_0x5ba2f3['id']});_0x4fa9be[_0x417334(0xd4f)]=![],_0x224b61['push'](_0x4fa9be);}_0x2ed518['lists']=_0x224b61;});}})[_0x53b48f(0x20cd)](function(_0x2fe327){const _0x4c6794=_0x53b48f;_0x249e08[_0x4c6794(0x1bd0)]({'title':_0x2fe327[_0x4c6794(0x10b3)]?_0x4c6794(0x575)+_0x2fe327[_0x4c6794(0x10b3)]+_0x4c6794(0x21db)+_0x2fe327['statusText']:_0x4c6794(0x1beb),'msg':_0x2fe327[_0x4c6794(0x1c52)]?JSON[_0x4c6794(0x2317)](_0x2fe327[_0x4c6794(0x1c52)]):_0x2fe327[_0x4c6794(0x2915)]()});});function _0x1c82a8(_0x240732){const _0x1437e3=_0x53b48f;_0xdda583['go'](_0x1437e3(0x93c),{'id':_0x240732['id'],'smsAccount':_0x240732,'crudPermissions':_0x2ed518[_0x1437e3(0x402)]});}function _0xec1afd(_0x200998){const _0x2f6592=_0x53b48f;_0xdda583['go'](_0x2f6592(0x93c),{'id':_0x200998['id'],'tab':0x5});}function _0x2f0e59(_0xeeda70,_0x401373){const _0x33f407=_0x53b48f;_0x3837bf[_0x33f407(0xa60)]({'controller':_0x33f407(0x1a45),'controllerAs':'vm','templateUrl':_0xc3db19,'parent':angular[_0x33f407(0x1f81)](_0x2907e[_0x33f407(0xb49)]),'targetEvent':_0x401373,'clickOutsideToClose':!![],'locals':{'smsAccount':_0xeeda70,'smsAccounts':_0x2ed518['smsAccounts']?_0x2ed518[_0x33f407(0x205)][_0x33f407(0x28b8)]:[],'crudPermissions':_0x2ed518['crudPermissions'],'realtime':![]}});}function _0x5b0340(_0x89613e,_0xa81b89){const _0x5f1a91=_0x53b48f,_0x29dfa7=_0x3837bf[_0x5f1a91(0x856)]()[_0x5f1a91(0x2021)](_0x5f1a91(0x1231)+_0x28c606()[_0x5f1a91(0xc01)](_0x5f1a91(0x1512))+'?')[_0x5f1a91(0x33a)](''+(_0x89613e[_0x5f1a91(0x2494)]||_0x5f1a91(0x1512))+''+_0x5f1a91(0x4b8))[_0x5f1a91(0x213e)](_0x5f1a91(0x2638))[_0x5f1a91(0x2283)](_0xa81b89)['ok']('OK')[_0x5f1a91(0x101a)](_0x5f1a91(0x18fd));_0x3837bf[_0x5f1a91(0xa60)](_0x29dfa7)[_0x5f1a91(0x64a)](function(){_0x2470f0(_0x89613e);},function(){const _0x67b613=_0x5f1a91;console[_0x67b613(0x9b4)](_0x67b613(0x18fd));});}let _0x54e24b=!![],_0x375de2=0x1;_0x31ebac[_0x53b48f(0xc62)](_0x53b48f(0x1cb9),function(_0x430036,_0x5c96ea){const _0x108359=_0x53b48f;_0x54e24b?_0x44b6ca(function(){_0x54e24b=![];}):(!_0x5c96ea&&(_0x375de2=_0x2ed518[_0x108359(0x289a)][_0x108359(0xc72)]),_0x430036!==_0x5c96ea&&(_0x2ed518[_0x108359(0x289a)][_0x108359(0xc72)]=0x1),!_0x430036&&(_0x2ed518[_0x108359(0x289a)][_0x108359(0xc72)]=_0x375de2),_0x2ed518[_0x108359(0x790)]());});function _0x16806b(_0x367700){_0x2ed518['smsAccounts']=_0x367700||{'count':0x0,'rows':[]};}function _0x105a47(){const _0x15e513=_0x53b48f;_0x2ed518[_0x15e513(0x289a)][_0x15e513(0x24f9)]=(_0x2ed518['query'][_0x15e513(0xc72)]-0x1)*_0x2ed518[_0x15e513(0x289a)][_0x15e513(0x25bb)],_0x55e14b[_0x15e513(0x4de)](_0x15e513(0x333))?_0x2ed518[_0x15e513(0x1713)]=_0x19a511['smsAccount']['get'](_0x2ed518[_0x15e513(0x289a)],_0x16806b)[_0x15e513(0x15e7)]:(_0x2ed518[_0x15e513(0x289a)]['id']=_0x2ed518['userProfile']['id'],_0x2ed518[_0x15e513(0x289a)][_0x15e513(0xa21)]=_0x15e513(0x29a),_0x2ed518[_0x15e513(0x1713)]=_0x19a511[_0x15e513(0x16a8)][_0x15e513(0x2565)](_0x2ed518[_0x15e513(0x289a)],_0x16806b)[_0x15e513(0x15e7)]);}function _0x16b80d(_0x303beb,_0x3edb82){const _0xdc28a8=_0x53b48f;_0x3837bf[_0xdc28a8(0xa60)]({'controller':_0xdc28a8(0x9f9),'controllerAs':'vm','templateUrl':_0x237f53,'parent':angular[_0xdc28a8(0x1f81)](_0x2907e[_0xdc28a8(0xb49)]),'targetEvent':_0x303beb,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x3edb82,'smsAccounts':_0x2ed518[_0xdc28a8(0x205)][_0xdc28a8(0x28b8)],'license':_0x2ed518[_0xdc28a8(0x1947)],'setting':_0x2ed518[_0xdc28a8(0x28d6)],'crudPermissions':_0x2ed518[_0xdc28a8(0x402)]}});}function _0x2470f0(_0xa79b4e){const _0x2506d0=_0x53b48f;_0x19a511[_0x2506d0(0x1512)]['delete']({'id':_0xa79b4e['id']})[_0x2506d0(0x15e7)][_0x2506d0(0x64a)](function(){const _0xc97d5d=_0x2506d0;_0x28c606()[_0xc97d5d(0x21c7)](_0x2ed518[_0xc97d5d(0x205)][_0xc97d5d(0x28b8)],{'id':_0xa79b4e['id']}),_0x2ed518[_0xc97d5d(0x205)][_0xc97d5d(0xb90)]-=0x1,!_0x2ed518[_0xc97d5d(0x205)][_0xc97d5d(0x28b8)]['length']&&_0x2ed518[_0xc97d5d(0x790)](),_0x249e08['success']({'title':_0x28c606()[_0xc97d5d(0xc01)](_0xc97d5d(0x28a6))+'\x20deleted!','msg':_0xa79b4e['name']?_0xa79b4e[_0xc97d5d(0x2494)]+_0xc97d5d(0x1fa8):''});})['catch'](function(_0x1f41e2){const _0x565bad=_0x2506d0;if(_0x1f41e2[_0x565bad(0x1c52)]&&_0x1f41e2[_0x565bad(0x1c52)][_0x565bad(0xbae)]&&_0x1f41e2['data'][_0x565bad(0xbae)][_0x565bad(0x1b9e)]){_0x2ed518[_0x565bad(0xbae)]=_0x1f41e2['data'][_0x565bad(0xbae)]||[{'message':_0x1f41e2[_0x565bad(0x2915)](),'type':_0x565bad(0xd5c)}];for(let _0x265318=0x0;_0x265318<_0x1f41e2['data'][_0x565bad(0xbae)]['length'];_0x265318++){_0x249e08[_0x565bad(0x1bd0)]({'title':_0x1f41e2['data']['errors'][_0x265318][_0x565bad(0x2185)],'msg':_0x1f41e2['data']['errors'][_0x265318][_0x565bad(0x18ca)]});}}else _0x249e08['error']({'title':_0x1f41e2[_0x565bad(0x10b3)]?'API:'+_0x1f41e2[_0x565bad(0x10b3)]+_0x565bad(0x21db)+_0x1f41e2['statusText']:_0x565bad(0xd5c),'msg':_0x1f41e2[_0x565bad(0x1c52)]?JSON[_0x565bad(0x2317)](_0x1f41e2[_0x565bad(0x1c52)]['message']):_0x1f41e2[_0x565bad(0x18ca)]||_0x1f41e2['toString']()});});}function _0x502aaa(){const _0x57bf47=_0x53b48f,_0x1ca07e=angular[_0x57bf47(0x289e)](_0x2ed518[_0x57bf47(0x1717)]);return _0x2ed518[_0x57bf47(0x1717)]=[],_0x1ca07e;}function _0x19a720(_0x1f564f){const _0x2843a1=_0x53b48f,_0x5ed04c=_0x3837bf['confirm']()[_0x2843a1(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsAccounts?')['htmlContent'](_0x2843a1(0x50b)+_0x2ed518[_0x2843a1(0x1717)]['length']+_0x2843a1(0x163e)+_0x2843a1(0x4b8))[_0x2843a1(0x213e)](_0x2843a1(0x399))[_0x2843a1(0x2283)](_0x1f564f)['ok']('OK')[_0x2843a1(0x101a)]('CANCEL');_0x3837bf[_0x2843a1(0xa60)](_0x5ed04c)[_0x2843a1(0x64a)](function(){const _0x1d1483=_0x2843a1;_0x2ed518[_0x1d1483(0x1717)]['forEach'](function(_0x41a3c3){_0x2470f0(_0x41a3c3);}),_0x2ed518[_0x1d1483(0x1717)]=[];});}function _0x14008c(){const _0x181835=_0x53b48f;_0x2ed518[_0x181835(0x1717)]=[];}function _0x4b5ffe(){_0x2ed518['selectedSmsAccounts']=_0x2ed518['smsAccounts']['rows'];}}const _0x267aa6=_0x1f6334;;_0x1bef4c[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),'toasty','smsQueues',_0x49a1e3(0x1957),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x1bef4c(_0x1275d7,_0x479bee,_0x6debbb,_0x5e4ae6,_0x4edd13,_0x17bc67,_0xbcbd35,_0x2dec22,_0x3bb4bf,_0x1d033c,_0x3e2f85,_0x52634e,_0x40dd7d,_0x565d59){const _0x51b16f=_0x49a1e3,_0x209e86=this;_0x209e86[_0x51b16f(0x1d3d)]=_0x3e2f85[_0x51b16f(0x808)](),_0x209e86['errors']=[],_0x209e86['setting']=_0x40dd7d,_0x209e86[_0x51b16f(0x1947)]=_0x52634e,_0x209e86[_0x51b16f(0x402)]=_0x565d59,_0x209e86[_0x51b16f(0x6c2)]={},_0x209e86['passwordPattern']=_0x209e86[_0x51b16f(0x28d6)]&&_0x209e86[_0x51b16f(0x28d6)][_0x51b16f(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x209e86[_0x51b16f(0x2021)]='SMS.EDIT_SMSQUEUE',_0x209e86['smsQueue']=angular['copy'](_0x3bb4bf),_0x209e86[_0x51b16f(0x1e55)]=_0x2dec22,_0x209e86[_0x51b16f(0x61f)]=![];!_0x209e86['smsQueue']&&(_0x209e86[_0x51b16f(0x1957)]={'strategy':_0x51b16f(0x24e2),'timeout':0xa},_0x209e86[_0x51b16f(0x2021)]='SMS.NEW_SMSQUEUE',_0x209e86['newSmsQueue']=!![]);_0x209e86[_0x51b16f(0xae5)]=_0xc1883d,_0x209e86[_0x51b16f(0x142d)]=_0x5d7dca,_0x209e86[_0x51b16f(0x21a5)]=_0x18b8c9,_0x209e86['getDateFromString']=_0x1dddcb,_0x209e86[_0x51b16f(0x16cb)]=_0x16b0ad;function _0xc1883d(){const _0x582e9b=_0x51b16f;_0x209e86[_0x582e9b(0xbae)]=[],_0x1d033c[_0x582e9b(0x1957)][_0x582e9b(0x2479)](_0x209e86[_0x582e9b(0x1957)])[_0x582e9b(0x15e7)]['then'](function(_0x17e9c1){const _0x2c14be=_0x582e9b;_0x209e86[_0x2c14be(0x1e55)]['unshift'](_0x17e9c1['toJSON']()),_0xbcbd35['success']({'title':_0x2c14be(0x2e0),'msg':_0x209e86[_0x2c14be(0x1957)]['name']?_0x209e86['smsQueue']['name']+'\x20has\x20been\x20created!':''}),_0x16b0ad(_0x17e9c1);})[_0x582e9b(0x20cd)](function(_0x1ebeae){const _0x5c4473=_0x582e9b;if(_0x1ebeae[_0x5c4473(0x1c52)]&&_0x1ebeae[_0x5c4473(0x1c52)][_0x5c4473(0xbae)]&&_0x1ebeae[_0x5c4473(0x1c52)][_0x5c4473(0xbae)]['length']){_0x209e86[_0x5c4473(0xbae)]=_0x1ebeae[_0x5c4473(0x1c52)][_0x5c4473(0xbae)]||[{'message':_0x1ebeae[_0x5c4473(0x2915)](),'type':_0x5c4473(0x24ba)}];for(let _0x318c2b=0x0;_0x318c2b<_0x1ebeae[_0x5c4473(0x1c52)][_0x5c4473(0xbae)][_0x5c4473(0x1b9e)];_0x318c2b+=0x1){_0xbcbd35[_0x5c4473(0x1bd0)]({'title':_0x1ebeae['data'][_0x5c4473(0xbae)][_0x318c2b][_0x5c4473(0x2185)],'msg':_0x1ebeae['data'][_0x5c4473(0xbae)][_0x318c2b][_0x5c4473(0x18ca)]});}}else _0xbcbd35[_0x5c4473(0x1bd0)]({'title':_0x1ebeae[_0x5c4473(0x10b3)]?_0x5c4473(0x575)+_0x1ebeae['status']+_0x5c4473(0x21db)+_0x1ebeae[_0x5c4473(0x2115)]:_0x5c4473(0x24ba),'msg':_0x1ebeae[_0x5c4473(0x1c52)]?JSON[_0x5c4473(0x2317)](_0x1ebeae[_0x5c4473(0x1c52)][_0x5c4473(0x18ca)]):_0x1ebeae[_0x5c4473(0x2915)]()});});}function _0x5d7dca(){const _0x300088=_0x51b16f;_0x209e86['errors']=[],_0x1d033c['smsQueue'][_0x300088(0x2603)]({'id':_0x209e86[_0x300088(0x1957)]['id']},_0x209e86['smsQueue'])[_0x300088(0x15e7)]['then'](function(_0x4e3c68){const _0x149765=_0x300088,_0x5c9625=_0x28c606()[_0x149765(0x27bc)](_0x209e86[_0x149765(0x1e55)],{'id':_0x4e3c68['id']});_0x5c9625&&_0x28c606()['merge'](_0x5c9625,_0x28c606()[_0x149765(0x27bb)](_0x4e3c68[_0x149765(0x14f8)](),_0x28c606()['keys'](_0x5c9625))),_0xbcbd35[_0x149765(0x1339)]({'title':_0x149765(0x32b),'msg':_0x209e86['smsQueue'][_0x149765(0x2494)]?_0x209e86[_0x149765(0x1957)][_0x149765(0x2494)]+_0x149765(0x271):''}),_0x16b0ad(_0x4e3c68);})[_0x300088(0x20cd)](function(_0x399a5e){const _0x15bc2=_0x300088;if(_0x399a5e[_0x15bc2(0x1c52)]&&_0x399a5e[_0x15bc2(0x1c52)][_0x15bc2(0xbae)]&&_0x399a5e[_0x15bc2(0x1c52)][_0x15bc2(0xbae)][_0x15bc2(0x1b9e)]){_0x209e86[_0x15bc2(0xbae)]=_0x399a5e[_0x15bc2(0x1c52)][_0x15bc2(0xbae)]||[{'message':_0x399a5e['toString'](),'type':_0x15bc2(0x682)}];for(let _0x25b1a2=0x0;_0x25b1a2<_0x399a5e[_0x15bc2(0x1c52)][_0x15bc2(0xbae)][_0x15bc2(0x1b9e)];_0x25b1a2++){_0xbcbd35[_0x15bc2(0x1bd0)]({'title':_0x399a5e[_0x15bc2(0x1c52)][_0x15bc2(0xbae)][_0x25b1a2][_0x15bc2(0x2185)],'msg':_0x399a5e['data']['errors'][_0x25b1a2][_0x15bc2(0x18ca)]});}}else _0xbcbd35[_0x15bc2(0x1bd0)]({'title':_0x399a5e[_0x15bc2(0x10b3)]?'API:'+_0x399a5e[_0x15bc2(0x10b3)]+_0x15bc2(0x21db)+_0x399a5e['statusText']:_0x15bc2(0x682),'msg':_0x399a5e[_0x15bc2(0x1c52)]?JSON['stringify'](_0x399a5e[_0x15bc2(0x1c52)]['message']):_0x399a5e[_0x15bc2(0x2915)]()});});}function _0x18b8c9(_0x1c88da){const _0x5d629a=_0x51b16f;_0x209e86['errors']=[];const _0x2fc2c6=_0x5e4ae6[_0x5d629a(0x856)]()['title'](_0x5d629a(0x103a))[_0x5d629a(0x12b8)]('The\x20smsQueue\x20will\x20be\x20deleted.')['ariaLabel'](_0x5d629a(0x76a))['ok']('Delete')[_0x5d629a(0x101a)]('Cancel')[_0x5d629a(0x2283)](_0x1c88da);_0x5e4ae6[_0x5d629a(0xa60)](_0x2fc2c6)[_0x5d629a(0x64a)](function(){const _0x2fbf65=_0x5d629a;_0x1d033c[_0x2fbf65(0x1957)][_0x2fbf65(0xabd)]({'id':_0x209e86[_0x2fbf65(0x1957)]['id']})[_0x2fbf65(0x15e7)][_0x2fbf65(0x64a)](function(){const _0x34c924=_0x2fbf65;_0x28c606()[_0x34c924(0x21c7)](_0x209e86['smsQueues'],{'id':_0x209e86[_0x34c924(0x1957)]['id']}),_0xbcbd35[_0x34c924(0x1339)]({'title':_0x34c924(0x2422),'msg':(_0x209e86['smsQueue'][_0x34c924(0x2494)]||_0x34c924(0x1957))+_0x34c924(0x1fa8)}),_0x16b0ad(_0x209e86[_0x34c924(0x1957)]);})[_0x2fbf65(0x20cd)](function(_0x2daf95){const _0x5bdcbd=_0x2fbf65;if(_0x2daf95[_0x5bdcbd(0x1c52)]&&_0x2daf95[_0x5bdcbd(0x1c52)][_0x5bdcbd(0xbae)]&&_0x2daf95[_0x5bdcbd(0x1c52)][_0x5bdcbd(0xbae)]['length']){_0x209e86['errors']=_0x2daf95[_0x5bdcbd(0x1c52)][_0x5bdcbd(0xbae)]||[{'message':_0x2daf95[_0x5bdcbd(0x2915)](),'type':_0x5bdcbd(0x267c)}];for(let _0x1d8c34=0x0;_0x1d8c34<_0x2daf95['data'][_0x5bdcbd(0xbae)]['length'];_0x1d8c34++){_0xbcbd35[_0x5bdcbd(0x1bd0)]({'title':_0x2daf95['data'][_0x5bdcbd(0xbae)][_0x1d8c34]['type'],'msg':_0x2daf95['data'][_0x5bdcbd(0xbae)][_0x1d8c34][_0x5bdcbd(0x18ca)]});}}else _0xbcbd35[_0x5bdcbd(0x1bd0)]({'title':_0x2daf95[_0x5bdcbd(0x10b3)]?_0x5bdcbd(0x575)+_0x2daf95[_0x5bdcbd(0x10b3)]+_0x5bdcbd(0x21db)+_0x2daf95[_0x5bdcbd(0x2115)]:_0x5bdcbd(0x267c),'msg':_0x2daf95[_0x5bdcbd(0x1c52)]?JSON[_0x5bdcbd(0x2317)](_0x2daf95[_0x5bdcbd(0x1c52)][_0x5bdcbd(0x18ca)]):_0x2daf95[_0x5bdcbd(0x18ca)]||_0x2daf95[_0x5bdcbd(0x2915)]()});});},function(){});}function _0x1dddcb(_0x5aa724){return _0x5aa724===null?undefined:new Date(_0x5aa724);}function _0x16b0ad(_0x5b7c25){const _0x18c9dc=_0x51b16f;_0x5e4ae6[_0x18c9dc(0x268e)](_0x5b7c25);}}const _0x4e875e=_0x1bef4c;;_0x525631[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x1957),_0x49a1e3(0x1e55),_0x49a1e3(0x252e),_0x49a1e3(0x298c),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x525631(_0x47c4b4,_0x1ab50a,_0x3edc5b,_0x3c88ba,_0x417f86,_0x1326b8,_0x57885e,_0x328722,_0x16a60c,_0x44dcfd){const _0x255b60=_0x49a1e3,_0x1786e2=this;_0x1786e2['currentUser']=_0x16a60c[_0x255b60(0x808)](),_0x1786e2[_0x255b60(0x1957)]=_0x417f86,_0x1786e2['crudPermissions']=_0x44dcfd,_0x1786e2[_0x255b60(0x252e)]=_0x57885e,_0x1786e2[_0x255b60(0x23cb)]=[],_0x1786e2['allowedItems']=[],_0x1786e2[_0x255b60(0x1f4f)]=[],_0x1786e2['startingAllowedItems']=[],_0x1786e2[_0x255b60(0x24e1)]=[],_0x1786e2[_0x255b60(0xe9e)]=![],_0x1786e2[_0x255b60(0x2483)]=_0x4cd72a,_0x1786e2[_0x255b60(0x4c4)]=_0x2addb1,_0x1786e2[_0x255b60(0x16cb)]=_0x6c60bc,_0x1786e2['dualMultiselectOptions']={'readOnly':!_0x1786e2[_0x255b60(0x402)][_0x255b60(0xd86)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x255b60(0x2494),'line1':_0x255b60(0x15c),'line2':[_0x255b60(0x2494),_0x255b60(0xe2f)],'line3':'','labelAll':_0x328722[_0x255b60(0x2292)](_0x255b60(0x1da4)),'labelSelected':_0x328722[_0x255b60(0x2292)](_0x255b60(0xcf8)),'transferCallback':function(){const _0x24800d=_0x255b60,_0x1e92ef=_0x28c606()[_0x24800d(0x1ad)](_0x1786e2[_0x24800d(0x24e1)],_0x1786e2['selectedItems'],'id');_0x1786e2[_0x24800d(0xe9e)]=_0x28c606()[_0x24800d(0x940)](_0x1e92ef)?![]:!![];}};function _0x4cd72a(){const _0x541aa7=_0x255b60;return _0x16a60c['hasRole'](_0x541aa7(0x333))?_0x20ddcc()[_0x541aa7(0x20cd)](function(_0x461be9){const _0x5cf545=_0x541aa7;_0x3edc5b[_0x5cf545(0x1bd0)]({'title':_0x461be9[_0x5cf545(0x10b3)]?_0x5cf545(0x575)+_0x461be9[_0x5cf545(0x10b3)]+_0x5cf545(0x21db)+_0x461be9[_0x5cf545(0x2115)]:_0x5cf545(0x554),'msg':_0x461be9[_0x5cf545(0x10b3)]?JSON['stringify'](_0x461be9[_0x5cf545(0x1c52)]):_0x461be9['toString']()});}):_0x277d5d()[_0x541aa7(0x64a)](function(_0x1a73bc){const _0x49d51a=_0x541aa7;return _0x1786e2[_0x49d51a(0xa21)]=_0x1a73bc,_0x20ddcc();})['catch'](function(_0x5c2a43){const _0xe52225=_0x541aa7;_0x3edc5b[_0xe52225(0x1bd0)]({'title':_0x5c2a43[_0xe52225(0x10b3)]?'API:'+_0x5c2a43[_0xe52225(0x10b3)]+'\x20-\x20'+_0x5c2a43[_0xe52225(0x2115)]:'SYSTEM:GET_AGENTS','msg':_0x5c2a43[_0xe52225(0x10b3)]?JSON[_0xe52225(0x2317)](_0x5c2a43[_0xe52225(0x1c52)]):_0x5c2a43[_0xe52225(0x2915)]()});});}function _0x277d5d(){return _0x1ab50a(function(_0x4e211a,_0x46ce39){const _0x11e02b=a0_0x4127;_0x3c88ba[_0x11e02b(0x16b2)]['get']({'userProfileId':_0x1786e2[_0x11e02b(0x1d3d)][_0x11e02b(0x21ac)],'name':_0x11e02b(0x2132)})['$promise'][_0x11e02b(0x64a)](function(_0x160fa4){const _0x3c1279=_0x11e02b,_0x167a29=_0x160fa4&&_0x160fa4[_0x3c1279(0x28b8)]?_0x160fa4[_0x3c1279(0x28b8)][0x0]:null;_0x4e211a(_0x167a29);})[_0x11e02b(0x20cd)](function(_0x68bad0){_0x46ce39(_0x68bad0);});});}function _0x20ddcc(){return _0x1ab50a(function(_0x1239b9,_0x55e8bc){const _0xe4a118=a0_0x4127;return _0x3f668b()[_0xe4a118(0x64a)](function(_0x1aa106){const _0x5714b6=_0xe4a118;return _0x1786e2[_0x5714b6(0x23cb)]=_0x1aa106[_0x5714b6(0x28b8)]?_0x1aa106['rows']:[],_0x16a60c[_0x5714b6(0x4de)](_0x5714b6(0x333))?_0x1aa106:_0x1786e2[_0x5714b6(0xa21)]?_0x1786e2[_0x5714b6(0xa21)]['autoAssociation']?_0x1aa106:_0xbba909():null;})[_0xe4a118(0x64a)](function(_0x382657){const _0x2a2888=_0xe4a118,_0x1c8ec3=_0x382657&&_0x382657[_0x2a2888(0x28b8)]?_0x382657[_0x2a2888(0x28b8)]:[];return _0x1786e2[_0x2a2888(0x13d1)]=_0x28c606()[_0x2a2888(0x1de5)](_0x1c8ec3,function(_0x470ef1){const _0xe8f8ab=_0x2a2888;return _0x28c606()[_0xe8f8ab(0x27bc)](_0x1786e2[_0xe8f8ab(0x23cb)],{'id':_0x16a60c[_0xe8f8ab(0x4de)]('admin')||_0x1786e2[_0xe8f8ab(0xa21)][_0xe8f8ab(0x11da)]?_0x470ef1['id']:_0x470ef1[_0xe8f8ab(0x145)]});}),_0x1786e2[_0x2a2888(0x206b)]=angular[_0x2a2888(0x289e)](_0x1786e2[_0x2a2888(0x13d1)]),_0x1786e2[_0x2a2888(0x23cb)][_0x2a2888(0x1397)](function(_0x4f6d73){const _0x1cdd22=_0x2a2888,_0x3f33fd=_0x28c606()[_0x1cdd22(0x27bc)](_0x1786e2[_0x1cdd22(0x13d1)],{'id':_0x4f6d73['id']});_0x16a60c[_0x1cdd22(0x4de)](_0x1cdd22(0x333))?_0x4f6d73[_0x1cdd22(0x6f9)]=!![]:_0x4f6d73[_0x1cdd22(0x6f9)]=typeof _0x3f33fd!==_0x1cdd22(0x19a1)?!![]:![];}),_0x497fea();})[_0xe4a118(0x64a)](function(_0x5eac5b){const _0x395607=_0xe4a118,_0x376a7a=_0x5eac5b&&_0x5eac5b['rows']?_0x5eac5b[_0x395607(0x28b8)]:[];_0x1786e2[_0x395607(0x1f4f)]=_0x28c606()[_0x395607(0x1de5)](_0x376a7a,function(_0x24421e){const _0x204460=_0x395607,_0x12170=_0x28c606()[_0x204460(0x27bc)](_0x1786e2['items'],{'id':_0x24421e['id']});return _0x12170[_0x204460(0x70f)]=_0x24421e[_0x204460(0x43b)]?_0x204460(0xcff)+_0x24421e[_0x204460(0x43b)][_0x204460(0x70f)]:'',_0x12170[_0x204460(0xe2f)]=typeof _0x24421e[_0x204460(0xe2f)]!==_0x204460(0x19a1)?'<'+_0x24421e['internal']+'>':'',_0x12170;}),_0x1786e2['startingSelectedItems']=angular[_0x395607(0x289e)](_0x1786e2[_0x395607(0x1f4f)]),_0x1786e2[_0x395607(0x1eeb)][_0x395607(0x1f4f)]=_0x1786e2[_0x395607(0x1f4f)],_0x1786e2[_0x395607(0x1eeb)][_0x395607(0x23cb)]=_0x28c606()[_0x395607(0x23e5)](_0x1786e2[_0x395607(0x13d1)],_0x1786e2['dualMultiselectOptions'][_0x395607(0x1f4f)],'id'),_0x1239b9();})[_0xe4a118(0x20cd)](function(_0x413bd8){_0x55e8bc(_0x413bd8);});});}function _0xbba909(){return _0x1ab50a(function(_0x59b899,_0x2f01e6){const _0x556912=a0_0x4127;return _0x3c88ba[_0x556912(0x1617)][_0x556912(0x896)]({'sectionId':_0x1786e2[_0x556912(0xa21)]['id'],'nolimit':!![]})[_0x556912(0x15e7)][_0x556912(0x64a)](function(_0xd1786e){_0x59b899(_0xd1786e);})['catch'](function(_0x9aa6a){_0x2f01e6(_0x9aa6a);});});}function _0x497fea(){return _0x1ab50a(function(_0x40ff31,_0x314cea){const _0x48d72b=a0_0x4127;return _0x3c88ba['smsQueue'][_0x48d72b(0xa10)]({'id':_0x1786e2['smsQueue']['id'],'fields':_0x48d72b(0x2105),'nolimit':!![],'role':_0x48d72b(0x11ae)})[_0x48d72b(0x15e7)]['then'](function(_0x253974){_0x40ff31(_0x253974);})[_0x48d72b(0x20cd)](function(_0x12b6db){_0x314cea(_0x12b6db);});});}function _0x3f668b(){return _0x1ab50a(function(_0x182c0b,_0x276ab7){const _0x69a19=a0_0x4127;return _0x3c88ba['user'][_0x69a19(0x896)]({'fields':_0x69a19(0x2105),'nolimit':!![],'role':_0x69a19(0x11ae)})[_0x69a19(0x15e7)][_0x69a19(0x64a)](function(_0x2243e3){_0x182c0b(_0x2243e3);})[_0x69a19(0x20cd)](function(_0x414ed5){_0x276ab7(_0x414ed5);});});}function _0x1ccb9b(_0x82209b){return _0x1ab50a(function(_0x2d4680,_0x303abb){const _0x3882a4=a0_0x4127;_0x28c606()['isEmpty'](_0x82209b)?_0x2d4680():_0x3c88ba[_0x3882a4(0x1957)]['addAgents']({'id':_0x1786e2['smsQueue']['id'],'ids':_0x28c606()[_0x3882a4(0x1de5)](_0x82209b,'id')})[_0x3882a4(0x15e7)]['then'](function(){_0x2d4680();})[_0x3882a4(0x20cd)](function(_0x3e93b1){_0x303abb(_0x3e93b1);});});}function _0x1c5342(_0x50f08b){return _0x1ab50a(function(_0x5a3aa3,_0x5e517b){const _0x2f34b9=a0_0x4127;_0x28c606()[_0x2f34b9(0x940)](_0x50f08b)?_0x5a3aa3():_0x3c88ba[_0x2f34b9(0x1957)][_0x2f34b9(0x251d)]({'id':_0x1786e2['smsQueue']['id'],'ids':_0x28c606()[_0x2f34b9(0x1de5)](_0x50f08b,'id')})[_0x2f34b9(0x15e7)]['then'](function(){_0x5a3aa3();})[_0x2f34b9(0x20cd)](function(_0x2f8614){_0x5e517b(_0x2f8614);});});}function _0x2addb1(){const _0xb09d0c=_0x255b60,_0x194a25=_0x28c606()[_0xb09d0c(0x23e5)](_0x1786e2[_0xb09d0c(0x24e1)],_0x1786e2[_0xb09d0c(0x1f4f)],'id'),_0x54748a=_0x28c606()[_0xb09d0c(0x23e5)](_0x1786e2[_0xb09d0c(0x1f4f)],_0x1786e2[_0xb09d0c(0x24e1)],'id');return _0x1c5342(_0x194a25)[_0xb09d0c(0x64a)](function(){return _0x1ccb9b(_0x54748a);})[_0xb09d0c(0x64a)](function(){const _0x3c9816=_0xb09d0c;_0x1786e2[_0x3c9816(0xe9e)]=![],_0x1786e2[_0x3c9816(0x206b)]=angular[_0x3c9816(0x289e)](_0x1786e2[_0x3c9816(0x13d1)]),_0x1786e2['startingSelectedItems']=angular[_0x3c9816(0x289e)](_0x1786e2['selectedItems']),_0x3edc5b['success']({'title':_0x3c9816(0x24d6),'msg':_0x3c9816(0x1db)});})[_0xb09d0c(0x20cd)](function(_0x4447af){const _0x540f08=_0xb09d0c;_0x3edc5b[_0x540f08(0x1bd0)]({'title':_0x4447af[_0x540f08(0x10b3)]?_0x540f08(0x575)+_0x4447af[_0x540f08(0x10b3)]+'\x20-\x20'+_0x4447af[_0x540f08(0x2115)]:_0x540f08(0x1226),'msg':_0x4447af['status']?JSON['stringify'](_0x4447af[_0x540f08(0x1c52)]):_0x4447af[_0x540f08(0x2915)]()});});}function _0x6c60bc(){_0x47c4b4['hide']();}}const _0x373f99=_0x525631;;_0x31edbd[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x1957),_0x49a1e3(0x298c),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x31edbd(_0x33043d,_0x16ce2e,_0x4e051e,_0x2c3d70,_0x45a490,_0x56d9a1,_0x1c2b4c,_0x550f01){const _0x5b11b8=_0x49a1e3,_0x47b6e1=this;_0x47b6e1[_0x5b11b8(0x1d3d)]=_0x1c2b4c[_0x5b11b8(0x808)](),_0x47b6e1['smsQueue']=_0x45a490,_0x47b6e1[_0x5b11b8(0x402)]=_0x550f01,_0x47b6e1[_0x5b11b8(0x23cb)]=[],_0x47b6e1['allowedItems']=[],_0x47b6e1[_0x5b11b8(0x1f4f)]=[],_0x47b6e1[_0x5b11b8(0x206b)]=[],_0x47b6e1[_0x5b11b8(0x24e1)]=[],_0x47b6e1[_0x5b11b8(0xe9e)]=![],_0x47b6e1[_0x5b11b8(0x1eeb)]={'readOnly':!_0x47b6e1[_0x5b11b8(0x402)][_0x5b11b8(0xd86)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5b11b8(0x2494),'line1':_0x5b11b8(0x2494),'line2':'','line3':'','labelAll':_0x56d9a1[_0x5b11b8(0x2292)]('APP.ALL_TEAMS'),'labelSelected':_0x56d9a1[_0x5b11b8(0x2292)](_0x5b11b8(0x2936)),'transferCallback':function(){const _0x1927b0=_0x5b11b8,_0x338f8c=_0x28c606()[_0x1927b0(0x1ad)](_0x47b6e1['startingSelectedItems'],_0x47b6e1[_0x1927b0(0x1f4f)],'id');_0x47b6e1[_0x1927b0(0xe9e)]=_0x28c606()[_0x1927b0(0x940)](_0x338f8c)?![]:!![];}},_0x47b6e1[_0x5b11b8(0x2483)]=_0x2c6825,_0x47b6e1['saveTeams']=_0x20c071,_0x47b6e1[_0x5b11b8(0x16cb)]=_0x4c5976;function _0x2c6825(){const _0x6d5abb=_0x5b11b8;return _0x1c2b4c[_0x6d5abb(0x4de)](_0x6d5abb(0x333))?_0x544339()[_0x6d5abb(0x20cd)](function(_0x23fc49){const _0x4e1505=_0x6d5abb;_0x4e051e['error']({'title':_0x23fc49[_0x4e1505(0x10b3)]?_0x4e1505(0x575)+_0x23fc49[_0x4e1505(0x10b3)]+_0x4e1505(0x21db)+_0x23fc49[_0x4e1505(0x2115)]:_0x4e1505(0x1542),'msg':_0x23fc49[_0x4e1505(0x10b3)]?JSON[_0x4e1505(0x2317)](_0x23fc49[_0x4e1505(0x1c52)]):_0x23fc49[_0x4e1505(0x2915)]()});}):_0x416807()['then'](function(_0x5d2ff5){const _0x9f7f92=_0x6d5abb;return _0x47b6e1[_0x9f7f92(0xa21)]=_0x5d2ff5,_0x544339();})[_0x6d5abb(0x20cd)](function(_0x21f323){const _0x119d0e=_0x6d5abb;_0x4e051e[_0x119d0e(0x1bd0)]({'title':_0x21f323[_0x119d0e(0x10b3)]?_0x119d0e(0x575)+_0x21f323[_0x119d0e(0x10b3)]+_0x119d0e(0x21db)+_0x21f323[_0x119d0e(0x2115)]:_0x119d0e(0x1542),'msg':_0x21f323['status']?JSON[_0x119d0e(0x2317)](_0x21f323['data']):_0x21f323[_0x119d0e(0x2915)]()});});}function _0x416807(){return _0x16ce2e(function(_0xe3ca76,_0x4a606f){const _0x2ffcc5=a0_0x4127;_0x2c3d70[_0x2ffcc5(0x16b2)]['get']({'userProfileId':_0x47b6e1[_0x2ffcc5(0x1d3d)]['userProfileId'],'name':_0x2ffcc5(0x286d)})[_0x2ffcc5(0x15e7)][_0x2ffcc5(0x64a)](function(_0x4b6456){const _0x33ceb8=_0x2ffcc5,_0x2fc6e4=_0x4b6456&&_0x4b6456[_0x33ceb8(0x28b8)]?_0x4b6456[_0x33ceb8(0x28b8)][0x0]:null;_0xe3ca76(_0x2fc6e4);})[_0x2ffcc5(0x20cd)](function(_0x262306){_0x4a606f(_0x262306);});});}function _0x544339(){return _0x16ce2e(function(_0x4c5409,_0x224d87){const _0x277ed1=a0_0x4127;return _0x3cf495()[_0x277ed1(0x64a)](function(_0x33565c){const _0x49c922=_0x277ed1;return _0x47b6e1[_0x49c922(0x23cb)]=_0x33565c[_0x49c922(0x28b8)]?_0x33565c[_0x49c922(0x28b8)]:[],_0x1c2b4c[_0x49c922(0x4de)](_0x49c922(0x333))?_0x33565c:_0x47b6e1['section']?_0x47b6e1[_0x49c922(0xa21)][_0x49c922(0x11da)]?_0x33565c:_0x142da6():null;})['then'](function(_0x255a92){const _0x5c4d89=_0x277ed1,_0x611574=_0x255a92&&_0x255a92['rows']?_0x255a92[_0x5c4d89(0x28b8)]:[];return _0x47b6e1['allowedItems']=_0x28c606()[_0x5c4d89(0x1de5)](_0x611574,function(_0x187c24){const _0x13f5ca=_0x5c4d89;return _0x28c606()[_0x13f5ca(0x27bc)](_0x47b6e1[_0x13f5ca(0x23cb)],{'id':_0x1c2b4c['hasRole'](_0x13f5ca(0x333))||_0x47b6e1[_0x13f5ca(0xa21)][_0x13f5ca(0x11da)]?_0x187c24['id']:_0x187c24[_0x13f5ca(0x145)]});}),_0x47b6e1[_0x5c4d89(0x23cb)][_0x5c4d89(0x1397)](function(_0x1158a0){const _0x20ee15=_0x5c4d89,_0x2a5114=_0x28c606()['find'](_0x47b6e1[_0x20ee15(0x13d1)],{'id':_0x1158a0['id']});_0x1c2b4c[_0x20ee15(0x4de)](_0x20ee15(0x333))?_0x1158a0[_0x20ee15(0x6f9)]=!![]:_0x1158a0[_0x20ee15(0x6f9)]=typeof _0x2a5114!==_0x20ee15(0x19a1)?!![]:![];}),_0x1e7207();})['then'](function(_0x50a6e7){const _0x2dd868=_0x277ed1,_0x31b013=_0x50a6e7&&_0x50a6e7[_0x2dd868(0x28b8)]?_0x50a6e7[_0x2dd868(0x28b8)]:[];_0x47b6e1[_0x2dd868(0x1f4f)]=_0x28c606()[_0x2dd868(0x1de5)](_0x31b013,function(_0x64a14f){const _0x519581=_0x2dd868;return _0x28c606()[_0x519581(0x27bc)](_0x47b6e1[_0x519581(0x23cb)],{'id':_0x64a14f['id']});}),_0x47b6e1['startingSelectedItems']=angular[_0x2dd868(0x289e)](_0x47b6e1[_0x2dd868(0x1f4f)]),_0x47b6e1[_0x2dd868(0x1eeb)][_0x2dd868(0x1f4f)]=_0x47b6e1['selectedItems'],_0x47b6e1[_0x2dd868(0x1eeb)][_0x2dd868(0x23cb)]=_0x28c606()[_0x2dd868(0x23e5)](_0x47b6e1[_0x2dd868(0x13d1)],_0x47b6e1[_0x2dd868(0x1eeb)][_0x2dd868(0x1f4f)],'id'),_0x4c5409();})[_0x277ed1(0x20cd)](function(_0x52c063){_0x224d87(_0x52c063);});});}function _0x142da6(){return _0x16ce2e(function(_0x55b862,_0x34c1e9){const _0x3bca09=a0_0x4127;return _0x2c3d70[_0x3bca09(0x1617)]['get']({'sectionId':_0x47b6e1[_0x3bca09(0xa21)]['id'],'nolimit':!![]})[_0x3bca09(0x15e7)][_0x3bca09(0x64a)](function(_0x570855){_0x55b862(_0x570855);})[_0x3bca09(0x20cd)](function(_0x5e7c09){_0x34c1e9(_0x5e7c09);});});}function _0x1e7207(){return _0x16ce2e(function(_0x5a3599,_0x5e07b8){const _0xb7185a=a0_0x4127;return _0x2c3d70[_0xb7185a(0x1957)][_0xb7185a(0x151d)]({'id':_0x47b6e1[_0xb7185a(0x1957)]['id'],'fields':_0xb7185a(0x1427),'nolimit':!![]})['$promise']['then'](function(_0x3cdfcb){_0x5a3599(_0x3cdfcb);})['catch'](function(_0x459793){_0x5e07b8(_0x459793);});});}function _0x3cf495(){return _0x16ce2e(function(_0x371d21,_0x5e265e){const _0x46ac96=a0_0x4127;return _0x2c3d70['team'][_0x46ac96(0x896)]({'fields':_0x46ac96(0x1427),'nolimit':!![]})[_0x46ac96(0x15e7)][_0x46ac96(0x64a)](function(_0x186c02){_0x371d21(_0x186c02);})[_0x46ac96(0x20cd)](function(_0x58f33c){_0x5e265e(_0x58f33c);});});}function _0x3aed34(_0x21b1b0){return _0x16ce2e(function(_0xe5182e,_0x45d50d){const _0x149073=a0_0x4127;_0x28c606()['isEmpty'](_0x21b1b0)?_0xe5182e():_0x2c3d70[_0x149073(0x1957)][_0x149073(0x1858)]({'id':_0x47b6e1[_0x149073(0x1957)]['id'],'ids':_0x28c606()[_0x149073(0x1de5)](_0x21b1b0,'id')})[_0x149073(0x15e7)]['then'](function(){_0xe5182e();})['catch'](function(_0x7f3110){_0x45d50d(_0x7f3110);});});}function _0x5987a8(_0xfb57ba){return _0x16ce2e(function(_0x4810ad,_0x306fa3){const _0x12b8c7=a0_0x4127;_0x28c606()[_0x12b8c7(0x940)](_0xfb57ba)?_0x4810ad():_0x2c3d70[_0x12b8c7(0x1957)][_0x12b8c7(0x6d5)]({'id':_0x47b6e1[_0x12b8c7(0x1957)]['id'],'ids':_0x28c606()[_0x12b8c7(0x1de5)](_0xfb57ba,'id')})[_0x12b8c7(0x15e7)][_0x12b8c7(0x64a)](function(){_0x4810ad();})[_0x12b8c7(0x20cd)](function(_0x4eeb7b){_0x306fa3(_0x4eeb7b);});});}function _0x20c071(){const _0x4ea22a=_0x5b11b8,_0x3c5b13=_0x28c606()[_0x4ea22a(0x23e5)](_0x47b6e1[_0x4ea22a(0x24e1)],_0x47b6e1[_0x4ea22a(0x1f4f)],'id'),_0x1a9c6a=_0x28c606()[_0x4ea22a(0x23e5)](_0x47b6e1[_0x4ea22a(0x1f4f)],_0x47b6e1[_0x4ea22a(0x24e1)],'id');return _0x5987a8(_0x3c5b13)[_0x4ea22a(0x64a)](function(){return _0x3aed34(_0x1a9c6a);})[_0x4ea22a(0x64a)](function(){const _0x5b687e=_0x4ea22a;_0x47b6e1['pendingChanges']=![],_0x47b6e1['startingAllowedItems']=angular[_0x5b687e(0x289e)](_0x47b6e1[_0x5b687e(0x13d1)]),_0x47b6e1['startingSelectedItems']=angular[_0x5b687e(0x289e)](_0x47b6e1[_0x5b687e(0x1f4f)]),_0x4e051e['success']({'title':'SUCCESS','msg':'Teams\x20association\x20has\x20been\x20updated!'});})['catch'](function(_0x2a815d){const _0x1b2644=_0x4ea22a;_0x4e051e[_0x1b2644(0x1bd0)]({'title':_0x2a815d[_0x1b2644(0x10b3)]?_0x1b2644(0x575)+_0x2a815d[_0x1b2644(0x10b3)]+_0x1b2644(0x21db)+_0x2a815d[_0x1b2644(0x2115)]:_0x1b2644(0x1226),'msg':_0x2a815d[_0x1b2644(0x10b3)]?JSON['stringify'](_0x2a815d[_0x1b2644(0x1c52)]):_0x2a815d[_0x1b2644(0x2915)]()});});}function _0x4c5976(){const _0x4ca71e=_0x5b11b8;_0x33043d[_0x4ca71e(0x268e)]();}}const _0x5734dd=_0x31edbd;;const _0xa6f52f=_0x2e4a48['p']+'src/js/modules/main/apps/sms/views/smsQueues/edit/teamadd/teamadd.html/teamadd.html';;_0x5a9fe8[_0x49a1e3(0x1e73)]=['$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),'setting',_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),'smsQueue',_0x49a1e3(0x16b2)];function _0x5a9fe8(_0x4b3f5e,_0x3617de,_0x56cf17,_0x4c7e49,_0x434f83,_0xab6613,_0x63acd4,_0x1c54be,_0x4a2d36,_0xc50b2a,_0xef4bae,_0x599453){const _0x12a2d2=_0x49a1e3,_0x1ff817=this;_0x1ff817['currentUser']=_0xc50b2a[_0x12a2d2(0x808)](),_0x1ff817[_0x12a2d2(0x1947)]=_0xab6613,_0x1ff817[_0x12a2d2(0x28d6)]=_0x63acd4,_0x1ff817['passwordPattern']=_0x1ff817[_0x12a2d2(0x28d6)][_0x12a2d2(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1ff817[_0x12a2d2(0xb36)]=_0x3617de[_0x12a2d2(0x48e)]()+'://'+_0x3617de['host'](),_0x1ff817[_0x12a2d2(0x1957)]=_0xef4bae||_0x4b3f5e['params'][_0x12a2d2(0x1957)]||{},_0x1ff817[_0x12a2d2(0x16b2)]=_0x599453&&_0x599453['count']==0x1?_0x599453['rows'][0x0]:null,_0x1ff817[_0x12a2d2(0x402)]=_0xc50b2a[_0x12a2d2(0xa7e)](_0x1ff817[_0x12a2d2(0x16b2)]?_0x1ff817[_0x12a2d2(0x16b2)][_0x12a2d2(0x402)]:null),_0x1ff817[_0x12a2d2(0x6c2)]={},_0x1ff817[_0x12a2d2(0x197c)]=_0x4b3f5e['params'][_0x12a2d2(0x1222)]||0x0,_0x1ff817[_0x12a2d2(0x1a72)]=_0x32a16b,_0x1ff817[_0x12a2d2(0x104a)]=_0xf55b9a,_0x1ff817[_0x12a2d2(0x2540)]=_0x4a2d36[_0x12a2d2(0x772)],_0x1ff817[_0x12a2d2(0x260d)]=_0x9a9e7a,_0x1ff817[_0x12a2d2(0x142d)]=_0x4133e6;function _0x32a16b(_0x5c20ba,_0x72229c){const _0x1842d6=_0x12a2d2;_0x56cf17[_0x1842d6(0xa60)]({'controller':'SmsQueueteamaddController','controllerAs':'vm','templateUrl':_0xa6f52f,'parent':angular['element'](_0x4c7e49[_0x1842d6(0xb49)]),'targetEvent':_0x72229c,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x5c20ba,'smsQueues':_0x1ff817[_0x1842d6(0x1e55)]?_0x1ff817[_0x1842d6(0x1e55)][_0x1842d6(0x28b8)]:[],'crudPermissions':_0x1ff817['crudPermissions']}});}function _0xf55b9a(_0x1e8b9d,_0x22f68a){const _0x391185=_0x12a2d2;_0x56cf17['show']({'controller':'SmsQueueagentaddController','controllerAs':'vm','templateUrl':_0x54f3d7,'parent':angular[_0x391185(0x1f81)](_0x4c7e49[_0x391185(0xb49)]),'targetEvent':_0x22f68a,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x1e8b9d,'smsQueues':_0x1ff817[_0x391185(0x1e55)]?_0x1ff817[_0x391185(0x1e55)][_0x391185(0x28b8)]:[],'crudPermissions':_0x1ff817[_0x391185(0x402)],'realtime':![]}});}function _0x9a9e7a(){const _0x216c91=_0x12a2d2;_0x4b3f5e['go'](_0x216c91(0x1ede),{},{'reload':'app.sms.smsQueues'});}function _0x4133e6(){const _0x27cb6e=_0x12a2d2;_0x1c54be[_0x27cb6e(0x1957)]['update']({'id':_0x1ff817['smsQueue']['id']},_0x1ff817['smsQueue'])[_0x27cb6e(0x15e7)][_0x27cb6e(0x64a)](function(){const _0x522a4c=_0x27cb6e;_0x4a2d36[_0x522a4c(0x1339)]({'title':_0x522a4c(0x1467),'msg':_0x1ff817['smsQueue'][_0x522a4c(0x2494)]?_0x1ff817['smsQueue']['name']+'\x20has\x20been\x20updated!':''});})[_0x27cb6e(0x20cd)](function(_0x4dcc24){const _0x22d5fa=_0x27cb6e;_0x4a2d36[_0x22d5fa(0x1bd0)]({'title':_0x4dcc24[_0x22d5fa(0x10b3)]?_0x22d5fa(0x575)+_0x4dcc24[_0x22d5fa(0x10b3)]+_0x22d5fa(0x21db)+_0x4dcc24['statusText']:_0x22d5fa(0xd5d),'msg':_0x4dcc24[_0x22d5fa(0x1c52)]?JSON[_0x22d5fa(0x2317)](_0x4dcc24['data']):_0x4dcc24[_0x22d5fa(0x2915)]()});});}}const _0x2e4e9e=_0x5a9fe8;;_0x2832f9[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),'$mdSidenav','$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x20d4),'$translate',_0x49a1e3(0x1e55),'userProfile',_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x2832f9(_0x17ca9e,_0x4c7aa0,_0x3492d4,_0x2863ad,_0x418c5e,_0x41c171,_0x14e5cd,_0x30f1b4,_0x47df72,_0x2184cd,_0x1ba1ab,_0x35569e,_0x2278ab,_0x16e792,_0x2fac3d,_0x3ae173,_0x2bd163){const _0x230935=_0x49a1e3,_0x2288dc=this;_0x2288dc[_0x230935(0x1947)]=_0x3ae173,_0x2288dc['setting']=_0x2bd163,_0x2288dc['currentUser']=_0x2fac3d[_0x230935(0x808)](),_0x2288dc[_0x230935(0x1e55)]=_0x47df72||{'count':0x0,'rows':[]},_0x2288dc[_0x230935(0x16a8)]=_0x2184cd,_0x2288dc[_0x230935(0x16b2)]=_0x1ba1ab&&_0x1ba1ab['count']==0x1?_0x1ba1ab[_0x230935(0x28b8)][0x0]:null,_0x2288dc[_0x230935(0x402)]=_0x2fac3d[_0x230935(0xa7e)](_0x2288dc[_0x230935(0x16b2)]?_0x2288dc[_0x230935(0x16b2)][_0x230935(0x402)]:null),_0x2288dc[_0x230935(0x185d)]=_0x230935(0x1e55),_0x2288dc[_0x230935(0x300)]='',_0x2288dc[_0x230935(0x2748)]=null,_0x2288dc[_0x230935(0x1e4b)]=[],_0x2288dc['query']={'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x230935(0x260c),'channel':'sms','limit':0xa,'page':0x1},_0x2288dc[_0x230935(0xc25)]=_0x28c606()['keyBy']([{'option':'Beepall','value':_0x230935(0x2342)},{'option':_0x230935(0x773),'value':_0x230935(0x1dfa)}],function(_0x32f7ab){const _0x5f3f82=_0x230935;return _0x28c606()[_0x5f3f82(0x1353)](_0x32f7ab[_0x5f3f82(0x1096)],new RegExp('\x27','g'),'');}),_0x2288dc[_0x230935(0xff6)]=_0x49eb68,_0x2288dc[_0x230935(0x1a72)]=_0x1a9e83,_0x2288dc[_0x230935(0x104a)]=_0x442030,_0x2288dc['deleteconfirm']=_0x3972c3,_0x2288dc[_0x230935(0x93f)]=_0x4b133a,_0x2288dc[_0x230935(0x1339)]=_0x158052,_0x2288dc[_0x230935(0x15ab)]=_0x226c48,_0x2288dc['createOrEditSmsQueue']=_0x2da1bd,_0x2288dc[_0x230935(0x21a5)]=_0x4b6c42,_0x2288dc['exportSelectedSmsQueues']=_0x270878,_0x2288dc[_0x230935(0x1806)]=_0x4b61b6,_0x2288dc[_0x230935(0x936)]=_0x1a5b2d,_0x2288dc[_0x230935(0x1c60)]=_0x55cc8b;function _0x49eb68(_0x38df39){const _0x2670aa=_0x230935;_0x3492d4['go'](_0x2670aa(0x783),{'id':_0x38df39['id'],'smsQueue':_0x38df39,'crudPermissions':_0x2288dc[_0x2670aa(0x402)]});}function _0x1a9e83(_0x25b444,_0xee7494){const _0x2c19d5=_0x230935;_0x418c5e[_0x2c19d5(0xa60)]({'controller':_0x2c19d5(0x66b),'controllerAs':'vm','templateUrl':_0xa6f52f,'parent':angular[_0x2c19d5(0x1f81)](_0x41c171[_0x2c19d5(0xb49)]),'targetEvent':_0xee7494,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x25b444,'smsQueues':_0x2288dc[_0x2c19d5(0x1e55)]?_0x2288dc[_0x2c19d5(0x1e55)][_0x2c19d5(0x28b8)]:[],'crudPermissions':_0x2288dc[_0x2c19d5(0x402)]}});}function _0x442030(_0x597850,_0x41667c){const _0xf2a381=_0x230935;_0x418c5e['show']({'controller':_0xf2a381(0x998),'controllerAs':'vm','templateUrl':_0x54f3d7,'parent':angular[_0xf2a381(0x1f81)](_0x41c171['body']),'targetEvent':_0x41667c,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x597850,'smsQueues':_0x2288dc[_0xf2a381(0x1e55)]?_0x2288dc['smsQueues'][_0xf2a381(0x28b8)]:[],'crudPermissions':_0x2288dc['crudPermissions'],'realtime':![]}});}function _0x3972c3(_0x2c4039,_0x2b8f42){const _0x4c3f3f=_0x230935,_0x4ef523=_0x418c5e[_0x4c3f3f(0x856)]()[_0x4c3f3f(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()['startCase'](_0x4c3f3f(0x1957))+'?')['htmlContent'](_0x4c3f3f(0x50b)+(_0x2c4039[_0x4c3f3f(0x2494)]||_0x4c3f3f(0x1957))+''+'\x20will\x20be\x20deleted.')[_0x4c3f3f(0x213e)](_0x4c3f3f(0x1af))[_0x4c3f3f(0x2283)](_0x2b8f42)['ok']('OK')['cancel'](_0x4c3f3f(0x18fd));_0x418c5e[_0x4c3f3f(0xa60)](_0x4ef523)[_0x4c3f3f(0x64a)](function(){_0x4b6c42(_0x2c4039);},function(){const _0x36d9c0=_0x4c3f3f;console[_0x36d9c0(0x9b4)](_0x36d9c0(0x18fd));});}function _0x4b133a(){const _0x312c61=_0x230935;if(_0x2fac3d[_0x312c61(0x4de)](_0x312c61(0x333)))_0x3492d4['go']('app.sms.realtime.queues',{});else return _0x35569e[_0x312c61(0x16b2)][_0x312c61(0x896)]({'userProfileId':_0x2fac3d['getCurrentUser']()[_0x312c61(0x21ac)],'sectionId':0x2c6})[_0x312c61(0x15e7)]['then'](function(_0x2e5539){const _0x58c93c=_0x312c61,_0x1e974e=_0x2e5539&&_0x2e5539[_0x58c93c(0x28b8)]?_0x2e5539[_0x58c93c(0x28b8)][0x0]:null;_0x1e974e&&_0x1e974e[_0x58c93c(0xe49)]?_0x3492d4['go']('app.sms.realtime.queues',{}):_0x16e792[_0x58c93c(0x772)]({'title':_0x30f1b4[_0x58c93c(0x2292)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x30f1b4[_0x58c93c(0x2292)](_0x58c93c(0x229))});})[_0x312c61(0x20cd)](function(_0x1b7a0f){const _0x42705f=_0x312c61;_0x16e792[_0x42705f(0x1bd0)]({'title':_0x1b7a0f[_0x42705f(0x10b3)]?_0x42705f(0x575)+_0x1b7a0f[_0x42705f(0x10b3)]+_0x42705f(0x21db)+_0x1b7a0f[_0x42705f(0x2115)]:_0x42705f(0x942),'msg':_0x1b7a0f[_0x42705f(0x10b3)]?JSON['stringify'](_0x1b7a0f['data']):_0x1b7a0f[_0x42705f(0x2915)]()});});}let _0x4e77d9=!![],_0x5c488c=0x1;_0x17ca9e['$watch'](_0x230935(0x1cb9),function(_0x1fe58e,_0x2ea1ea){const _0x270a03=_0x230935;_0x4e77d9?_0x14e5cd(function(){_0x4e77d9=![];}):(!_0x2ea1ea&&(_0x5c488c=_0x2288dc[_0x270a03(0x289a)][_0x270a03(0xc72)]),_0x1fe58e!==_0x2ea1ea&&(_0x2288dc[_0x270a03(0x289a)]['page']=0x1),!_0x1fe58e&&(_0x2288dc['query'][_0x270a03(0xc72)]=_0x5c488c),_0x2288dc[_0x270a03(0x15ab)]());});function _0x158052(_0x2ae00d){const _0x2e9789=_0x230935;_0x2288dc[_0x2e9789(0x1e55)]=_0x2ae00d||{'count':0x0,'rows':[]};}function _0x226c48(){const _0x5298a7=_0x230935;_0x2288dc['query'][_0x5298a7(0x24f9)]=(_0x2288dc['query'][_0x5298a7(0xc72)]-0x1)*_0x2288dc[_0x5298a7(0x289a)]['limit'],_0x2fac3d[_0x5298a7(0x4de)](_0x5298a7(0x333))?_0x2288dc[_0x5298a7(0x1713)]=_0x35569e[_0x5298a7(0x1957)][_0x5298a7(0x896)](_0x2288dc['query'],_0x158052)[_0x5298a7(0x15e7)]:(_0x2288dc[_0x5298a7(0x289a)]['id']=_0x2288dc[_0x5298a7(0x16a8)]['id'],_0x2288dc['query'][_0x5298a7(0xa21)]=_0x5298a7(0x1272),_0x2288dc['promise']=_0x35569e[_0x5298a7(0x16a8)][_0x5298a7(0x2565)](_0x2288dc[_0x5298a7(0x289a)],_0x158052)['$promise']);}function _0x2da1bd(_0x12169d,_0x9abf9){const _0x12de20=_0x230935;_0x418c5e[_0x12de20(0xa60)]({'controller':_0x12de20(0x2654),'controllerAs':'vm','templateUrl':_0x217fe5,'parent':angular[_0x12de20(0x1f81)](_0x41c171[_0x12de20(0xb49)]),'targetEvent':_0x12169d,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x9abf9,'smsQueues':_0x2288dc[_0x12de20(0x1e55)][_0x12de20(0x28b8)],'license':_0x2288dc[_0x12de20(0x1947)],'setting':_0x2288dc[_0x12de20(0x28d6)],'crudPermissions':_0x2288dc[_0x12de20(0x402)]}});}function _0x4b6c42(_0x43e1c7){const _0x234093=_0x230935;_0x35569e['smsQueue'][_0x234093(0xabd)]({'id':_0x43e1c7['id']})[_0x234093(0x15e7)][_0x234093(0x64a)](function(){const _0x2e73f8=_0x234093;_0x28c606()[_0x2e73f8(0x21c7)](_0x2288dc[_0x2e73f8(0x1e55)][_0x2e73f8(0x28b8)],{'id':_0x43e1c7['id']}),_0x2288dc['smsQueues'][_0x2e73f8(0xb90)]-=0x1,!_0x2288dc[_0x2e73f8(0x1e55)][_0x2e73f8(0x28b8)]['length']&&_0x2288dc[_0x2e73f8(0x15ab)](),_0x16e792[_0x2e73f8(0x1339)]({'title':_0x28c606()[_0x2e73f8(0xc01)]('SmsQueue')+_0x2e73f8(0x2502),'msg':_0x43e1c7[_0x2e73f8(0x2494)]?_0x43e1c7[_0x2e73f8(0x2494)]+_0x2e73f8(0x1fa8):''});})[_0x234093(0x20cd)](function(_0x2403dc){const _0x2e20a8=_0x234093;if(_0x2403dc['data']&&_0x2403dc[_0x2e20a8(0x1c52)][_0x2e20a8(0xbae)]&&_0x2403dc['data']['errors'][_0x2e20a8(0x1b9e)]){_0x2288dc[_0x2e20a8(0xbae)]=_0x2403dc[_0x2e20a8(0x1c52)]['errors']||[{'message':_0x2403dc[_0x2e20a8(0x2915)](),'type':_0x2e20a8(0x1557)}];for(let _0x3a9ef8=0x0;_0x3a9ef8<_0x2403dc['data']['errors'][_0x2e20a8(0x1b9e)];_0x3a9ef8++){_0x16e792[_0x2e20a8(0x1bd0)]({'title':_0x2403dc['data']['errors'][_0x3a9ef8][_0x2e20a8(0x2185)],'msg':_0x2403dc[_0x2e20a8(0x1c52)]['errors'][_0x3a9ef8][_0x2e20a8(0x18ca)]});}}else _0x16e792[_0x2e20a8(0x1bd0)]({'title':_0x2403dc[_0x2e20a8(0x10b3)]?'API:'+_0x2403dc['status']+'\x20-\x20'+_0x2403dc[_0x2e20a8(0x2115)]:_0x2e20a8(0x1557),'msg':_0x2403dc[_0x2e20a8(0x1c52)]?JSON['stringify'](_0x2403dc[_0x2e20a8(0x1c52)][_0x2e20a8(0x18ca)]):_0x2403dc[_0x2e20a8(0x18ca)]||_0x2403dc[_0x2e20a8(0x2915)]()});});}function _0x270878(){const _0x379d38=_0x230935,_0x175edd=angular[_0x379d38(0x289e)](_0x2288dc[_0x379d38(0x1e4b)]);return _0x2288dc[_0x379d38(0x1e4b)]=[],_0x175edd;}function _0x4b61b6(_0x1e1d0a){const _0x4e6a75=_0x230935,_0x5a203e=_0x418c5e['confirm']()[_0x4e6a75(0x2021)](_0x4e6a75(0x1b09))[_0x4e6a75(0x33a)](_0x4e6a75(0x50b)+_0x2288dc[_0x4e6a75(0x1e4b)][_0x4e6a75(0x1b9e)]+'\x20selected'+_0x4e6a75(0x4b8))['ariaLabel'](_0x4e6a75(0x1e1a))[_0x4e6a75(0x2283)](_0x1e1d0a)['ok']('OK')[_0x4e6a75(0x101a)]('CANCEL');_0x418c5e[_0x4e6a75(0xa60)](_0x5a203e)[_0x4e6a75(0x64a)](function(){const _0x30fb63=_0x4e6a75;_0x2288dc[_0x30fb63(0x1e4b)]['forEach'](function(_0x3b8cbb){_0x4b6c42(_0x3b8cbb);}),_0x2288dc[_0x30fb63(0x1e4b)]=[];});}function _0x1a5b2d(){_0x2288dc['selectedSmsQueues']=[];}function _0x55cc8b(){const _0x4e6835=_0x230935;_0x2288dc['selectedSmsQueues']=_0x2288dc[_0x4e6835(0x1e55)][_0x4e6835(0x28b8)];}}const _0x15e292=_0x2832f9;;_0x4aa45a[_0x49a1e3(0x1e73)]=['$stateProvider','$translatePartialLoaderProvider'];function _0x4aa45a(_0x2adbf0,_0x1d33ef){const _0x18ad10=_0x49a1e3;_0x2adbf0[_0x18ad10(0x14f2)](_0x18ad10(0x1471),{'abstract':!![],'url':_0x18ad10(0x10dd)})[_0x18ad10(0x14f2)](_0x18ad10(0x1ede),{'url':_0x18ad10(0x2572),'views':{'content@app':{'templateUrl':_0x2d67ba,'controller':'SmsQueuesController\x20as\x20vm'}},'resolve':{'smsQueues':[_0x18ad10(0x107c),_0x18ad10(0xdcf),function(_0x436793,_0x5aad06){const _0x545f37=_0x18ad10;return _0x5aad06[_0x545f37(0x4de)](_0x545f37(0x333))?_0x436793[_0x545f37(0x1268)]('smsQueue@get',{'fields':_0x545f37(0x1649),'sort':'-updatedAt','channel':'sms','limit':0xa,'offset':0x0}):_0x436793['resolve'](_0x545f37(0x1758),{'id':_0x5aad06[_0x545f37(0x808)]()[_0x545f37(0x21ac)],'section':_0x545f37(0x1272),'fields':_0x545f37(0x1649),'sort':'-updatedAt','channel':_0x545f37(0x10aa),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x18ad10(0xdcf),function(_0x5ead66,_0x1f2622){const _0x4cf137=_0x18ad10;return _0x1f2622[_0x4cf137(0x4de)](_0x4cf137(0x333))?null:_0x5ead66['resolve'](_0x4cf137(0x6e3),{'fields':_0x4cf137(0x10d2),'id':_0x1f2622[_0x4cf137(0x808)]()[_0x4cf137(0x21ac)]});}],'userProfileSection':[_0x18ad10(0x107c),_0x18ad10(0xdcf),function(_0x3753c3,_0x339e61){const _0x442bf4=_0x18ad10;return _0x339e61['hasRole'](_0x442bf4(0x333))?null:_0x3753c3[_0x442bf4(0x1268)](_0x442bf4(0x2681),{'fields':_0x442bf4(0x527),'userProfileId':_0x339e61[_0x442bf4(0x808)]()[_0x442bf4(0x21ac)],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':_0x18ad10(0x10aa)})['state'](_0x18ad10(0x783),{'url':_0x18ad10(0x45b),'params':{'smsQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x36936c,'controller':_0x18ad10(0x52d)}},'resolve':{'smsQueue':[_0x18ad10(0x107c),_0x18ad10(0x1fbb),function(_0x156c37,_0x161036){const _0x5f1afa=_0x18ad10;return _0x156c37[_0x5f1afa(0x1268)](_0x5f1afa(0x1494),{'fields':_0x5f1afa(0x1649),'id':_0x161036['id']});}],'userProfileSection':[_0x18ad10(0x107c),_0x18ad10(0xdcf),function(_0xef2c2c,_0x5d8707){const _0x4790d3=_0x18ad10;return _0xef2c2c['resolve'](_0x4790d3(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5d8707['getCurrentUser']()[_0x4790d3(0x21ac)],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':_0x18ad10(0x10aa)})['state'](_0x18ad10(0x1abc),{'url':_0x18ad10(0xfb7),'views':{'content@app':{'templateUrl':_0x4ad43b,'controller':_0x18ad10(0x265f)}},'resolve':{'smsAccounts':['apiResolver',_0x18ad10(0xdcf),function(_0x442a8b,_0xc37286){const _0x5bc6a5=_0x18ad10;return _0xc37286[_0x5bc6a5(0x4de)](_0x5bc6a5(0x333))?_0x442a8b[_0x5bc6a5(0x1268)](_0x5bc6a5(0x1c75),{'fields':_0x5bc6a5(0x24e7),'sort':_0x5bc6a5(0x260c),'limit':0xa,'offset':0x0}):_0x442a8b['resolve'](_0x5bc6a5(0x1758),{'id':_0xc37286[_0x5bc6a5(0x808)]()['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':_0x5bc6a5(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x18ad10(0xdcf),function(_0xae5100,_0x2d4f62){const _0x41790e=_0x18ad10;return _0x2d4f62['hasRole'](_0x41790e(0x333))?null:_0xae5100['resolve'](_0x41790e(0x6e3),{'fields':_0x41790e(0x10d2),'id':_0x2d4f62[_0x41790e(0x808)]()['userProfileId']});}],'userProfileSection':[_0x18ad10(0x107c),_0x18ad10(0xdcf),function(_0x2936de,_0x4fda6e){const _0x2a4c64=_0x18ad10;return _0x4fda6e[_0x2a4c64(0x4de)](_0x2a4c64(0x333))?null:_0x2936de[_0x2a4c64(0x1268)](_0x2a4c64(0x2681),{'fields':_0x2a4c64(0x527),'userProfileId':_0x4fda6e[_0x2a4c64(0x808)]()[_0x2a4c64(0x21ac)],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':_0x18ad10(0x10aa)})['state']('app.sms.smsAccounts.edit',{'url':_0x18ad10(0x45b),'params':{'smsAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x212169,'controller':'SmsAccountController\x20as\x20vm'}},'resolve':{'smsAccount':['apiResolver',_0x18ad10(0x1fbb),function(_0x382088,_0x1119a4){const _0x570dd6=_0x18ad10;return _0x382088[_0x570dd6(0x1268)](_0x570dd6(0x1c75),{'fields':_0x570dd6(0x24e7),'id':_0x1119a4['id']});}],'userProfileSection':[_0x18ad10(0x107c),'Auth',function(_0x3b3ac5,_0x197b05){const _0x1dd6c3=_0x18ad10;return _0x3b3ac5[_0x1dd6c3(0x1268)]('userProfileSection@get',{'fields':_0x1dd6c3(0x527),'userProfileId':_0x197b05[_0x1dd6c3(0x808)]()[_0x1dd6c3(0x21ac)],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':_0x18ad10(0x10aa)}),_0x1d33ef[_0x18ad10(0x1bde)](_0x18ad10(0x5ac));}angular[_0x49a1e3(0x20d2)]('app.sms',[_0x49a1e3(0x8d2),_0x49a1e3(0x3c7),_0x49a1e3(0x1fe3),'flow',_0x49a1e3(0x2516),_0x49a1e3(0x1b6c),_0x49a1e3(0x1434),_0x49a1e3(0x1a87),_0x49a1e3(0x1610),_0x49a1e3(0xb19),_0x49a1e3(0x1a59),'mwFormViewer',_0x49a1e3(0x1cfe),_0x49a1e3(0x1bd1),_0x49a1e3(0x1b5f),_0x49a1e3(0x1cff),_0x49a1e3(0x1046),_0x49a1e3(0x1acd),_0x49a1e3(0xc48),_0x49a1e3(0x28dd),_0x49a1e3(0x956)])['config'](_0x4aa45a)[_0x49a1e3(0x38e)](_0x49a1e3(0x9f9),_0x3e8412)[_0x49a1e3(0x38e)](_0x49a1e3(0x778),_0x9ad340)[_0x49a1e3(0x38e)](_0x49a1e3(0x1a45),_0x3149d5)[_0x49a1e3(0x38e)](_0x49a1e3(0x1309),_0x42cdfa)[_0x49a1e3(0x38e)](_0x49a1e3(0x1342),_0x48836a)[_0x49a1e3(0x38e)](_0x49a1e3(0x560),_0x3160b5)['controller'](_0x49a1e3(0x14d7),_0x3a069b)['controller'](_0x49a1e3(0x2266),_0x32858e)[_0x49a1e3(0x38e)]('EditSmsAccountAppgotoifDialogController',_0x32e3ba)[_0x49a1e3(0x38e)](_0x49a1e3(0xc4d),_0x29960b)[_0x49a1e3(0x38e)]('EditSmsAccountAppintervalDialogController',_0xd8f591)[_0x49a1e3(0x38e)](_0x49a1e3(0x156a),_0x4a4d3d)[_0x49a1e3(0x38e)](_0x49a1e3(0x10a),_0x2d511e)[_0x49a1e3(0x38e)](_0x49a1e3(0xcd3),_0xeb83c0)[_0x49a1e3(0x38e)](_0x49a1e3(0x2890),_0x3b7d18)[_0x49a1e3(0x38e)](_0x49a1e3(0x292c),_0x5e695b)[_0x49a1e3(0x38e)](_0x49a1e3(0xe54),_0x4f54ed)['controller']('CreateOrEditSmsCannedAnswerDialogController',_0x4527be)[_0x49a1e3(0x38e)](_0x49a1e3(0x1f2),_0x2de556)['controller'](_0x49a1e3(0xbdc),_0x3c4034)[_0x49a1e3(0x38e)](_0x49a1e3(0x261e),_0x267aa6)[_0x49a1e3(0x38e)](_0x49a1e3(0x2654),_0x4e875e)[_0x49a1e3(0x38e)]('SmsQueueagentaddController',_0x373f99)[_0x49a1e3(0x38e)]('SmsQueueteamaddController',_0x5734dd)['controller'](_0x49a1e3(0x1330),_0x2e4e9e)[_0x49a1e3(0x38e)](_0x49a1e3(0x3c1),_0x15e292);;const _0x328310=_0x2e4a48['p']+_0x49a1e3(0xc39);;const _0x5b20b9=_0x2e4a48['p']+_0x49a1e3(0x685);;const _0x248c1a=_0x2e4a48['p']+_0x49a1e3(0x1fe2);;_0x2710a7[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$q','$timeout','$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x1ce1),_0x49a1e3(0x23d1),_0x49a1e3(0xd77),_0x49a1e3(0x287f),_0x49a1e3(0xa19),_0x49a1e3(0x633),_0x49a1e3(0x680),_0x49a1e3(0x1f8c),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x1239)];function _0x2710a7(_0x1fc37e,_0x275d0c,_0xda028a,_0x5e5544,_0x33c9f6,_0x35a81c,_0x2129d2,_0x21f170,_0x1ffa73,_0x302a1a,_0x20dce8,_0x57ce3e,_0x3d7a7b,_0x45bd3c,_0x478c6c,_0x5db19a,_0x45a1b6,_0x5416b6){const _0x13a062=_0x49a1e3,_0x3f5be7=this,_0x430ce2=[_0x13a062(0x1c79),'online',_0x13a062(0x7a4),_0x13a062(0x2148),_0x13a062(0x84f),'lastPauseAt','internal',_0x13a062(0x81e),_0x13a062(0x2248),_0x13a062(0x1451),'mailPause',_0x13a062(0xf2d),_0x13a062(0x1f34),'faxPause',_0x13a062(0x11a4),_0x13a062(0x80a),_0x13a062(0x1561),'mailCapacity',_0x13a062(0x708),'whatsappCapacity',_0x13a062(0x1839),_0x13a062(0x1b1d),_0x13a062(0x1099),'mailCurrentCapacity',_0x13a062(0x41d),_0x13a062(0x19a8),_0x13a062(0x6eb),'chatStatus',_0x13a062(0x11d7),_0x13a062(0x13f4),_0x13a062(0x2431),_0x13a062(0x22a4),_0x13a062(0x2014),_0x13a062(0x2783),_0x13a062(0x2642),_0x13a062(0x1857),_0x13a062(0x1f78),_0x13a062(0x24a3),_0x13a062(0x17fb),_0x13a062(0x16c8),_0x13a062(0x17f4),_0x13a062(0x1e4e),_0x13a062(0xeae),'screenrecording',_0x13a062(0x52c),_0x13a062(0x20d3)],_0x20e7d2=[_0x13a062(0x2248),_0x13a062(0x1451),_0x13a062(0x292),_0x13a062(0xf2d),'whatsappPause',_0x13a062(0x211),'voicePause',_0x13a062(0x1eab)];_0x3f5be7[_0x13a062(0x1d3d)]=_0x5db19a[_0x13a062(0x808)](),_0x3f5be7[_0x13a062(0x1b8)]=[_0x13a062(0xf8e),'inuse','busy',_0x13a062(0x8cc),_0x13a062(0x181)],_0x3f5be7[_0x13a062(0x23d1)]=_0x2129d2||{'count':0x0,'rows':[]},_0x3f5be7[_0x13a062(0x1947)]=_0x45a1b6,_0x3f5be7[_0x13a062(0x16a8)]=_0x45bd3c,_0x3f5be7[_0x13a062(0x16b2)]=_0x478c6c&&_0x478c6c[_0x13a062(0xb90)]==0x1?_0x478c6c['rows'][0x0]:null,_0x3f5be7[_0x13a062(0x402)]=_0x5db19a['parseCrudPermissions'](_0x3f5be7[_0x13a062(0x16b2)]?_0x3f5be7[_0x13a062(0x16b2)][_0x13a062(0x402)]:null),_0x3f5be7[_0x13a062(0xd77)]=_0x21f170?_0x28c606()['keyBy'](_0x21f170[_0x13a062(0x28b8)]?_0x21f170[_0x13a062(0x28b8)]:[],'id'):{},_0x3f5be7[_0x13a062(0x287f)]=_0x1ffa73?_0x28c606()[_0x13a062(0x161e)](_0x1ffa73['rows']?_0x1ffa73[_0x13a062(0x28b8)]:[],'id'):{},_0x3f5be7[_0x13a062(0x2d8)]={},_0x3f5be7[_0x13a062(0x2789)]=![],_0x3f5be7[_0x13a062(0x1997)]=[],_0x3f5be7[_0x13a062(0xf0f)]={};for(const _0x197d8c in _0x3f5be7['agents']){typeof _0x3f5be7[_0x13a062(0xd77)][_0x197d8c]!==_0x13a062(0x19a1)&&(_0x3f5be7['agents'][_0x197d8c]['init']=!![]);}_0x3f5be7[_0x13a062(0x289a)]={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x3f5be7[_0x13a062(0xad9)]=_0x26bdbd,_0x3f5be7[_0x13a062(0x279d)]=_0x168505,_0x3f5be7['pause']=_0x1e77b0,_0x3f5be7['unPause']=_0x406d59,_0x3f5be7[_0x13a062(0x1133)]=_0x5dfc13,_0x3f5be7[_0x13a062(0xb1c)]=_0x1ea8a8,_0x3f5be7['getAgentGlobalStatus']=_0x3f2b0b,_0x3f5be7['isPause']=_0x4dfd61,_0x3f5be7[_0x13a062(0x15d)]=_0x455aae,_0x3f5be7[_0x13a062(0x2744)]=_0xbfb8c6,_0x3f5be7[_0x13a062(0x249c)]=_0x4268e0,_0x3f5be7[_0x13a062(0x2853)]=_0x578aa8,_0x3f5be7['onInit']=_0x2d7309,_0x3f5be7[_0x13a062(0x1a7c)]=_0x1ae17c,_0x3f5be7[_0x13a062(0x125b)]=_0x255030,_0x3f5be7['screenRecording']=_0xf98e62,_0x20dce8['on'](_0x13a062(0x17e9),_0x3f5be7[_0x13a062(0x249c)]),_0x20dce8['on'](_0x13a062(0x130f),_0x3f5be7[_0x13a062(0x2853)]),_0x20dce8['on'](_0x13a062(0x197a),_0x3f5be7[_0x13a062(0x1a7c)]),_0x20dce8['on'](_0x13a062(0x1b7e),_0x3f5be7[_0x13a062(0x125b)]),_0x2d7309();let _0x17df40=_0x5416b6(function(){_0x3f5be7['load']&&(_0x3f5be7['load']=![],_0x2d7309());},0x3e7);function _0x2d7309(){const _0x132b13=_0x13a062;_0x3f5be7[_0x132b13(0x2789)]=![];const _0xd52229=_0x275d0c[_0x132b13(0x122)]();_0x3f5be7[_0x132b13(0x1713)]=_0xd52229[_0x132b13(0x1713)],_0x3f5be7[_0x132b13(0x2202)]=[],_0x3f5be7[_0x132b13(0x1997)]=[],_0x28c606()[_0x132b13(0x1789)](_0x3f5be7[_0x132b13(0xd77)],function(_0x59dbcf,_0xea24ab){const _0x1a2ab5=_0x132b13;_0x3f5be7['rpcAgents'][_0xea24ab]&&_0x28c606()[_0x1a2ab5(0x14fe)](_0x59dbcf,_0x28c606()['pick'](_0x28c606()[_0x1a2ab5(0xd09)](_0x3f5be7['rpcAgents'][_0xea24ab],_0x20e7d2),_0x430ce2)),_0x3f2b0b(_0x59dbcf),_0x59dbcf[_0x1a2ab5(0x1eab)]?(_0x3f5be7[_0x1a2ab5(0x2202)]['push'](_0x59dbcf),_0x3f5be7['agentInternal'][_0x59dbcf['internal']]=_0xea24ab):_0x59dbcf[_0x1a2ab5(0x14f5)]=_0x28c606()[_0x1a2ab5(0x1251)](_0x2ac33a()()[_0x1a2ab5(0x1c2c)]('x'));});_0x3f5be7[_0x132b13(0x289a)][_0x132b13(0x1de8)]&&_0x28c606()[_0x132b13(0x21c7)](_0x3f5be7[_0x132b13(0x2202)],function(_0x556a8d){const _0x1335f6=_0x132b13;return _0x556a8d[_0x1335f6(0x876)]!==_0x3f5be7['query'][_0x1335f6(0x1de8)];});_0x3f5be7[_0x132b13(0x289a)][_0x132b13(0x1421)]&&_0x28c606()[_0x132b13(0x21c7)](_0x3f5be7[_0x132b13(0x2202)],function(_0x59d6f7){const _0x1c78fa=_0x132b13;return _0x59d6f7[_0x1c78fa(0x84f)]!==_0x3f5be7[_0x1c78fa(0x289a)]['pauseTypeFilter'];});_0x3f5be7[_0x132b13(0x289a)][_0x132b13(0xcec)]&&_0x28c606()[_0x132b13(0x21c7)](_0x3f5be7[_0x132b13(0x2202)],function(_0x55c76e){const _0x58b6e8=_0x132b13;return _0x55c76e['fullname'][_0x58b6e8(0x2554)]()['indexOf'](_0x3f5be7[_0x58b6e8(0x289a)][_0x58b6e8(0xcec)][_0x58b6e8(0x2554)]())<0x0;});_0x3f5be7[_0x132b13(0x2202)]=_0x4ba93e(_0x3f5be7[_0x132b13(0x2202)]);const _0x5d28b7=(_0x3f5be7[_0x132b13(0x289a)][_0x132b13(0xc72)]-0x1)*_0x3f5be7[_0x132b13(0x289a)]['limit'];_0x3f5be7['paginatedAgents']=_0x28c606()['drop'](_0x3f5be7[_0x132b13(0x2202)],_0x5d28b7)[_0x132b13(0x142e)](0x0,_0x3f5be7[_0x132b13(0x289a)][_0x132b13(0x25bb)]);for(let _0x19be3b=0x0;_0x19be3b<_0x3f5be7[_0x132b13(0x2d8)][_0x132b13(0x1b9e)];_0x19be3b+=0x1){_0x3f5be7[_0x132b13(0x1997)]['push'](_0x3f5be7['paginatedAgents'][_0x19be3b]['id']);}_0xd52229[_0x132b13(0x1268)](),_0x3f5be7[_0x132b13(0x2789)]=!![];}function _0x4268e0(_0x2bce3b){const _0x300af3=_0x13a062;_0x3f5be7[_0x300af3(0xd77)][_0x2bce3b['id']]&&(_0x28c606()[_0x300af3(0x14fe)](_0x3f5be7[_0x300af3(0xd77)][_0x2bce3b['id']],_0x28c606()['pick'](_0x28c606()[_0x300af3(0xd09)](_0x2bce3b,_0x20e7d2),_0x430ce2)),_0x28c606()[_0x300af3(0x14fe)](_0x3f5be7['rpcAgents'][_0x2bce3b['id']],_0x28c606()['pick'](_0x28c606()['omit'](_0x2bce3b,_0x20e7d2),_0x430ce2)),_0x3f2b0b(_0x3f5be7[_0x300af3(0xd77)][_0x2bce3b['id']]));}function _0x578aa8(_0xe43547){const _0x4c5a5b=_0x13a062;_0x3f5be7[_0x4c5a5b(0xd77)][_0xe43547['id']]&&(_0x28c606()[_0x4c5a5b(0x14fe)](_0x3f5be7[_0x4c5a5b(0xd77)][_0xe43547['id']],_0x28c606()[_0x4c5a5b(0x27bb)](_0xe43547,_0x430ce2)),_0x28c606()[_0x4c5a5b(0x14fe)](_0x3f5be7[_0x4c5a5b(0x287f)][_0xe43547['id']],_0x28c606()[_0x4c5a5b(0x27bb)](_0xe43547,_0x430ce2)),_0xe43547[_0x4c5a5b(0x2148)]&&(_0x3f5be7['agents'][_0xe43547['id']]['globalStatusTime']=_0xe43547['lastPauseAt'],_0x3f5be7[_0x4c5a5b(0x287f)][_0xe43547['id']]['globalStatusTime']=_0xe43547['lastPauseAt']),_0x3f2b0b(_0x3f5be7[_0x4c5a5b(0xd77)][_0xe43547['id']]));}function _0x1ae17c(_0x8db8e8){const _0x342e56=_0x13a062;_0x3f5be7[_0x342e56(0xd77)][_0x3f5be7[_0x342e56(0xf0f)][_0x8db8e8['destaccountcode']]]&&(_0x28c606()[_0x342e56(0x14fe)](_0x3f5be7[_0x342e56(0xd77)][_0x3f5be7['agentInternal'][_0x8db8e8[_0x342e56(0xf65)]]],_0x28c606()['pick'](_0x8db8e8,['queue',_0x342e56(0xeae)])),_0x28c606()[_0x342e56(0x14fe)](_0x3f5be7[_0x342e56(0x287f)][_0x3f5be7[_0x342e56(0xf0f)][_0x8db8e8[_0x342e56(0xf65)]]],_0x28c606()[_0x342e56(0x27bb)](_0x8db8e8,[_0x342e56(0x1e4e),_0x342e56(0xeae)])));}function _0x255030(_0x2af72c){const _0x3346b7=_0x13a062;_0x3f5be7[_0x3346b7(0xd77)][_0x3f5be7[_0x3346b7(0xf0f)][_0x2af72c[_0x3346b7(0xf65)]]]&&(_0x3f5be7[_0x3346b7(0xd77)][_0x3f5be7['agentInternal'][_0x2af72c['destaccountcode']]]=_0x28c606()['omit'](_0x3f5be7[_0x3346b7(0xd77)][_0x3f5be7[_0x3346b7(0xf0f)][_0x2af72c['destaccountcode']]],['queue',_0x3346b7(0xeae)]),_0x3f5be7['rpcAgents'][_0x3f5be7[_0x3346b7(0xf0f)][_0x2af72c[_0x3346b7(0xf65)]]]=_0x28c606()['omit'](_0x3f5be7[_0x3346b7(0x287f)][_0x3f5be7[_0x3346b7(0xf0f)][_0x2af72c[_0x3346b7(0xf65)]]],[_0x3346b7(0x1e4e),_0x3346b7(0xeae)]));}function _0x26bdbd(_0x31b55a){const _0x107512=_0x13a062;return _0x302a1a[_0x107512(0x2e8)][_0x107512(0xad9)]({'id':_0x31b55a['id'],'device':_0x107512(0x252e),'agent_id':_0x31b55a['id'],'agent_name':_0x31b55a['name']})[_0x107512(0x15e7)]['then'](function(){const _0x53e22a=_0x107512;_0x57ce3e[_0x53e22a(0x1339)]({'title':_0x53e22a(0x2927),'msg':_0x31b55a[_0x53e22a(0x15c)]+_0x53e22a(0x236)}),_0x3f5be7[_0x53e22a(0xd77)][_0x31b55a['id']]&&(_0x3f5be7[_0x53e22a(0xd77)][_0x31b55a['id']]['online']=![]),_0x3f5be7[_0x53e22a(0x287f)][_0x31b55a['id']]&&(_0x3f5be7['rpcAgents'][_0x31b55a['id']]['online']=![]),_0x2d7309();})[_0x107512(0x20cd)](function(_0x23b8e4){const _0x43f32c=_0x107512;_0x57ce3e['error']({'title':_0x23b8e4[_0x43f32c(0x10b3)]?_0x43f32c(0x575)+_0x23b8e4['status']+_0x43f32c(0x21db)+_0x23b8e4[_0x43f32c(0x2115)]:'api.staff.save','msg':_0x23b8e4[_0x43f32c(0x1c52)]?JSON[_0x43f32c(0x2317)](_0x23b8e4[_0x43f32c(0x1c52)][_0x43f32c(0x18ca)]):_0x23b8e4[_0x43f32c(0x2915)]()});});}function _0x1e77b0(_0x571c16,_0xdbc452){const _0xf5c238=_0x13a062;return _0x302a1a['user']['pause']({'id':_0x571c16['id'],'type':_0xdbc452})['$promise'][_0xf5c238(0x64a)](function(_0x1ead7c){const _0x2a702f=_0xf5c238;_0x3f5be7[_0x2a702f(0xd77)][_0x571c16['id']]&&_0x28c606()[_0x2a702f(0x14fe)](_0x3f5be7[_0x2a702f(0xd77)][_0x571c16['id']],_0x28c606()[_0x2a702f(0x27bb)](_0x1ead7c,_0x430ce2)),_0x3f5be7[_0x2a702f(0x287f)][_0x571c16['id']]&&_0x28c606()[_0x2a702f(0x14fe)](_0x3f5be7[_0x2a702f(0x287f)][_0x571c16['id']],_0x28c606()[_0x2a702f(0x27bb)](_0x1ead7c,_0x430ce2)),_0x3f2b0b(_0x3f5be7[_0x2a702f(0xd77)][_0x571c16['id']]);})[_0xf5c238(0x20cd)](function(_0x34171e){const _0x44c5e3=_0xf5c238;_0x57ce3e[_0x44c5e3(0x1bd0)]({'title':_0x34171e[_0x44c5e3(0x10b3)]?_0x44c5e3(0x575)+_0x34171e['status']+_0x44c5e3(0x21db)+_0x34171e['statusText']:'api.staff.save','msg':_0x34171e[_0x44c5e3(0x1c52)]?JSON['stringify'](_0x34171e[_0x44c5e3(0x1c52)][_0x44c5e3(0x18ca)]):_0x34171e[_0x44c5e3(0x2915)]()});});}function _0x406d59(_0x30fe16){const _0x1a1d1c=_0x13a062;return _0x302a1a[_0x1a1d1c(0x2e8)][_0x1a1d1c(0x818)]({'id':_0x30fe16['id']})[_0x1a1d1c(0x15e7)][_0x1a1d1c(0x64a)](function(_0x40cb65){const _0x140aa9=_0x1a1d1c;_0x3f5be7[_0x140aa9(0xd77)][_0x30fe16['id']]&&_0x28c606()[_0x140aa9(0x14fe)](_0x3f5be7[_0x140aa9(0xd77)][_0x30fe16['id']],_0x28c606()[_0x140aa9(0x27bb)](_0x40cb65,_0x430ce2)),_0x3f5be7[_0x140aa9(0x287f)][_0x30fe16['id']]&&_0x28c606()['merge'](_0x3f5be7[_0x140aa9(0x287f)][_0x30fe16['id']],_0x28c606()[_0x140aa9(0x27bb)](_0x40cb65,_0x430ce2)),_0x3f2b0b(_0x3f5be7[_0x140aa9(0xd77)][_0x30fe16['id']]);})[_0x1a1d1c(0x20cd)](function(_0x40f94a){const _0x19e596=_0x1a1d1c;_0x57ce3e[_0x19e596(0x1bd0)]({'title':_0x40f94a[_0x19e596(0x10b3)]?_0x19e596(0x575)+_0x40f94a[_0x19e596(0x10b3)]+_0x19e596(0x21db)+_0x40f94a[_0x19e596(0x2115)]:_0x19e596(0x180),'msg':_0x40f94a['data']?JSON[_0x19e596(0x2317)](_0x40f94a[_0x19e596(0x1c52)][_0x19e596(0x18ca)]):_0x40f94a['toString']()});});}function _0x5dfc13(_0x2091c6){const _0x77be09=_0x13a062;_0x5e5544[_0x77be09(0xa60)](_0x5e5544[_0x77be09(0x2540)]()[_0x77be09(0x1945)](!![])['title'](_0x77be09(0xe68))[_0x77be09(0x33a)](_0x77be09(0x424))['ok']('Ok')[_0x77be09(0x2283)](_0x2091c6));}function _0x168505(_0x1d99b5,_0x2185e3){const _0x37e0d0=_0x13a062;_0x5e5544['show']({'controller':_0x37e0d0(0x5a7),'controllerAs':'vm','templateUrl':_0x5eb675,'parent':angular[_0x37e0d0(0x1f81)](_0x33c9f6[_0x37e0d0(0xb49)]),'targetEvent':_0x2185e3,'clickOutsideToClose':!![],'locals':{'agent':_0x1d99b5,'agents':[],'channel':_0x37e0d0(0x28ad),'direction':_0x37e0d0(0x12a4),'crudPermissions':_0x3f5be7[_0x37e0d0(0x402)]}});}function _0x4dfd61(_0x13eb28){const _0x41e72b=_0x13a062;return _0x13eb28===_0x41e72b(0x2826)||_0x13eb28===_0x41e72b(0x1bcc);}function _0x455aae(_0x484d14){return _0x484d14==='pause';}function _0xbfb8c6(_0x25eb70){return _0x25eb70==='*pause';}function _0x1a5527(_0x382377){const _0x19ee16=_0x13a062;return _0x382377===_0x19ee16(0xac6)||_0x382377==='unknown'||_0x382377===_0x19ee16(0x407)||_0x382377===_0x19ee16(0xf8e)||_0x28c606()[_0x19ee16(0x28d7)](_0x382377);}function _0x1ea8a8(_0xa5d3ab,_0x20bd30){const _0x2d6eda=_0x13a062;if(_0x20bd30===_0x2d6eda(0x227c)){if(_0xa5d3ab[_0x20bd30+_0x2d6eda(0x2311)]!==_0x2d6eda(0xac6))return _0xa5d3ab[_0x20bd30+_0x2d6eda(0x2311)];if(_0xa5d3ab[_0x20bd30+_0x2d6eda(0x9d3)])return _0xa5d3ab[_0x20bd30+_0x2d6eda(0x2311)]='pause',_0x2d6eda(0x2826);return _0x2d6eda(0xac6);}else{if(_0xa5d3ab[_0x20bd30+_0x2d6eda(0x9d3)])return _0xa5d3ab[_0x20bd30+_0x2d6eda(0x2311)]=_0x2d6eda(0x2826),_0x2d6eda(0x2826);return _0xa5d3ab[_0x20bd30+'Status'];}}function _0x3f2b0b(_0x3433e8){const _0x27f2b8=_0x13a062;let _0x40eee2=_0x27f2b8(0x1191);if(_0x28c606()[_0x27f2b8(0x2972)]([_0x1ea8a8(_0x3433e8,_0x27f2b8(0x227c)),_0x1ea8a8(_0x3433e8,_0x27f2b8(0xf52)),_0x1ea8a8(_0x3433e8,_0x27f2b8(0xc71)),_0x1ea8a8(_0x3433e8,_0x27f2b8(0x28ad)),_0x1ea8a8(_0x3433e8,_0x27f2b8(0x10aa)),_0x1ea8a8(_0x3433e8,_0x27f2b8(0x1a29)),_0x1ea8a8(_0x3433e8,_0x27f2b8(0x1d37))],_0x4dfd61))_0x40eee2=_0x27f2b8(0x2826);else{if(_0x28c606()[_0x27f2b8(0x25f8)]([_0x1ea8a8(_0x3433e8,_0x27f2b8(0x227c)),_0x1ea8a8(_0x3433e8,_0x27f2b8(0xf52)),_0x1ea8a8(_0x3433e8,_0x27f2b8(0xc71)),_0x1ea8a8(_0x3433e8,_0x27f2b8(0x28ad)),_0x1ea8a8(_0x3433e8,'sms'),_0x1ea8a8(_0x3433e8,_0x27f2b8(0x1a29)),_0x1ea8a8(_0x3433e8,_0x27f2b8(0x1d37))],_0x4dfd61))_0x40eee2=_0x27f2b8(0x1bcc);else _0x28c606()[_0x27f2b8(0x2972)]([_0x1ea8a8(_0x3433e8,_0x27f2b8(0x227c)),_0x1ea8a8(_0x3433e8,_0x27f2b8(0xf52)),_0x1ea8a8(_0x3433e8,_0x27f2b8(0xc71)),_0x1ea8a8(_0x3433e8,_0x27f2b8(0x28ad)),_0x1ea8a8(_0x3433e8,_0x27f2b8(0x10aa)),_0x1ea8a8(_0x3433e8,_0x27f2b8(0x1a29)),_0x1ea8a8(_0x3433e8,_0x27f2b8(0x1d37))],_0x1a5527)?_0x40eee2=_0x27f2b8(0xac6):_0x40eee2=_0x27f2b8(0x94d);}_0x3433e8[_0x27f2b8(0x876)]!==_0x40eee2&&(_0x3433e8[_0x27f2b8(0x876)]=_0x40eee2,_0x3433e8[_0x27f2b8(0x2354)]?(_0x3433e8[_0x27f2b8(0x2354)]=![],_0x3433e8['globalStatusTime']=_0x4dfd61(_0x40eee2)?_0x28c606()[_0x27f2b8(0x1251)](_0x2ac33a()(_0x3433e8[_0x27f2b8(0x2148)])['format']('x')):_0x28c606()[_0x27f2b8(0x2a2)]([_0x3433e8[_0x27f2b8(0x17f4)],_0x3433e8[_0x27f2b8(0x2642)],_0x3433e8[_0x27f2b8(0x1f78)],_0x3433e8[_0x27f2b8(0x24a3)],_0x3433e8[_0x27f2b8(0x17fb)],_0x3433e8['openchannelStatusTime'],_0x3433e8['faxStatusTime']])):_0x3433e8[_0x27f2b8(0x14f5)]=_0x28c606()[_0x27f2b8(0x1251)](_0x2ac33a()()[_0x27f2b8(0x1c2c)]('x')));}function _0x4ba93e(_0x59f301){const _0x3b41f5=_0x13a062,_0x5c5d01=_0x28c606()['startsWith'](_0x3f5be7[_0x3b41f5(0x289a)][_0x3b41f5(0x1997)],'-')?'desc':_0x3b41f5(0x2449);return _0x28c606()[_0x3b41f5(0x288e)](_0x59f301,[_0x3f5be7[_0x3b41f5(0x289a)][_0x3b41f5(0x1997)][_0x3b41f5(0x1353)]('-','')],[_0x5c5d01]);}function _0x1d1d93(){_0x17df40&&(_0x5416b6['cancel'](_0x17df40),_0x17df40=null);}function _0xf98e62(_0x4e00d4,_0x5ee5e2){const _0x11a5cd=_0x13a062;return _0x302a1a[_0x11a5cd(0x2e8)][_0x11a5cd(0x2603)]({'id':_0x4e00d4['id']},{'screenrecording':_0x5ee5e2})[_0x11a5cd(0x15e7)][_0x11a5cd(0x20cd)](function(_0x3b73de){const _0x47ad85=_0x11a5cd;_0x57ce3e[_0x47ad85(0x1bd0)]({'title':_0x3b73de['status']?_0x47ad85(0x575)+_0x3b73de['status']+_0x47ad85(0x21db)+_0x3b73de[_0x47ad85(0x2115)]:'api.user.update','msg':_0x3b73de['data']?JSON[_0x47ad85(0x2317)](_0x3b73de[_0x47ad85(0x1c52)][_0x47ad85(0x18ca)]):_0x3b73de[_0x47ad85(0x2915)]()});});}_0x1fc37e[_0x13a062(0x8c7)](_0x13a062(0xf28),function(){const _0x162cde=_0x13a062;_0x20dce8[_0x162cde(0x1951)](_0x162cde(0x17e9)),_0x20dce8[_0x162cde(0x1951)](_0x162cde(0x130f)),_0x20dce8[_0x162cde(0x1951)](_0x162cde(0x197a)),_0x20dce8[_0x162cde(0x1951)]('user:agentcomplete'),_0x1d1d93();});}const _0x1ce565=_0x2710a7;;const _0x11b102=_0x2e4a48['p']+_0x49a1e3(0x905);;const _0xdada58=_0x2e4a48['p']+_0x49a1e3(0x44e);;_0x4299c1[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),'$q','$document',_0x49a1e3(0x1239),_0x49a1e3(0x1c06),_0x49a1e3(0x22c7),_0x49a1e3(0xa19),_0x49a1e3(0x633),_0x49a1e3(0x680),_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xdcf)];function _0x4299c1(_0x1c3c0e,_0x4b6cca,_0x391ee4,_0x468d1,_0x338d0d,_0x344029,_0x4a83c1,_0x37dc2d,_0x41510d,_0x81b924,_0x42fdfe,_0x385854,_0x20d7d5,_0x4c928a){const _0x21fc3c=_0x49a1e3,_0x8aacdc=this,_0x299128=[_0x21fc3c(0x17bc),_0x21fc3c(0x1c58),_0x21fc3c(0x188f),_0x21fc3c(0x130d),_0x21fc3c(0xc00),'originated',_0x21fc3c(0x18ca),'dialActive',_0x21fc3c(0xa69),_0x21fc3c(0x1608),_0x21fc3c(0x20a7)];_0x8aacdc[_0x21fc3c(0x1d3d)]=_0x4c928a[_0x21fc3c(0x808)](),_0x8aacdc[_0x21fc3c(0xb90)]=_0x4a83c1[_0x21fc3c(0xb90)]?_0x4a83c1['count']:0x0,_0x8aacdc[_0x21fc3c(0x1c06)]=_0x4a83c1?_0x28c606()[_0x21fc3c(0x161e)](_0x4a83c1[_0x21fc3c(0x28b8)]?_0x4a83c1[_0x21fc3c(0x28b8)]:[],'id'):{},_0x8aacdc[_0x21fc3c(0x22c7)]=_0x37dc2d?_0x28c606()['keyBy'](_0x37dc2d[_0x21fc3c(0x28b8)]?_0x37dc2d[_0x21fc3c(0x28b8)]:[],'id'):{},_0x8aacdc[_0x21fc3c(0x16a8)]=_0x385854,_0x8aacdc[_0x21fc3c(0x16b2)]=_0x20d7d5&&_0x20d7d5['count']==0x1?_0x20d7d5[_0x21fc3c(0x28b8)][0x0]:null,_0x8aacdc[_0x21fc3c(0x402)]=_0x4c928a[_0x21fc3c(0xa7e)](_0x8aacdc['userProfileSection']?_0x8aacdc[_0x21fc3c(0x16b2)][_0x21fc3c(0x402)]:null);_0x4c928a['hasRole'](_0x21fc3c(0x333))?_0x8aacdc['query']={'type':_0x21fc3c(0x12a4),'sort':_0x21fc3c(0x260c),'limit':0xa,'page':0x1}:_0x8aacdc['query']={'id':_0x8aacdc[_0x21fc3c(0x1d3d)]['id'],'channel':'openchannel','type':_0x21fc3c(0x12a4),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x8aacdc[_0x21fc3c(0x1339)]=_0x520bbe,_0x8aacdc[_0x21fc3c(0x1f2c)]=_0x4e2e1e,_0x8aacdc[_0x21fc3c(0x3e0)]=_0x4c1562,_0x8aacdc[_0x21fc3c(0x2241)]=_0x524e8a,_0x8aacdc['updateQueue']=_0x24a0ce,_0x8aacdc['onSave']=_0x9b2b56,_0x8aacdc['onSaveMember']=_0x366f8f,_0x8aacdc['onRemoveMember']=_0x373130,_0x8aacdc[_0x21fc3c(0x2fe)]=_0x7d0110,_0x8aacdc[_0x21fc3c(0x4c3)]=_0x5f123e,_0x8aacdc[_0x21fc3c(0x259)]=_0x496810,_0x8aacdc[_0x21fc3c(0xea6)]=_0x327960,_0x8aacdc[_0x21fc3c(0x1997)]=[],_0x28c606()[_0x21fc3c(0x1789)](_0x8aacdc[_0x21fc3c(0x1c06)],function(_0x2f01c9){const _0x6970f0=_0x21fc3c;_0x8aacdc['order'][_0x6970f0(0x1954)](_0x2f01c9['id']);}),_0x81b924['on'](_0x21fc3c(0xc85),_0x8aacdc['onSave']),_0x81b924['on'](_0x21fc3c(0x1cf2),_0x8aacdc[_0x21fc3c(0x28b9)]),_0x81b924['on'](_0x21fc3c(0x14a9),_0x8aacdc[_0x21fc3c(0x351)]),_0x81b924['on'](_0x21fc3c(0x130f),_0x8aacdc['onPause']),_0x81b924['on'](_0x21fc3c(0x289d),_0x8aacdc[_0x21fc3c(0x259)]),_0x81b924['on'](_0x21fc3c(0x44b),_0x8aacdc[_0x21fc3c(0x4c3)]);function _0x327960(){const _0x142c81=_0x21fc3c,_0x17b6c3=[];return _0x28c606()[_0x142c81(0x1789)](_0x8aacdc[_0x142c81(0x1c06)],function(_0x68b88d,_0x2ea236){const _0x28fdcc=_0x142c81;_0x68b88d[_0x28fdcc(0x20a7)]=0x0,_0x68b88d[_0x28fdcc(0x371)]=0x0,_0x8aacdc[_0x28fdcc(0x1c06)][_0x2ea236][_0x28fdcc(0xd77)]={},_0x17b6c3[_0x28fdcc(0x1954)](_0x41510d[_0x28fdcc(0xb4b)][_0x28fdcc(0xf49)]({'id':_0x2ea236})[_0x28fdcc(0x15e7)]),_0x8aacdc[_0x28fdcc(0x22c7)][_0x2ea236]&&_0x28c606()['merge'](_0x68b88d,_0x28c606()[_0x28fdcc(0x27bb)](_0x8aacdc['rpcQueues'][_0x2ea236],_0x299128));}),_0x468d1[_0x142c81(0x2705)](_0x17b6c3)[_0x142c81(0x64a)](function(_0x3b96d2){const _0x5de712=_0x142c81;for(let _0x58bad7=0x0;_0x58bad7<_0x3b96d2[_0x5de712(0x1b9e)];_0x58bad7+=0x1){for(let _0x468a09=0x0;_0x468a09<_0x3b96d2[_0x58bad7][_0x5de712(0x28b8)][_0x5de712(0x1b9e)];_0x468a09++){_0x3b96d2[_0x58bad7][_0x5de712(0x28b8)][_0x468a09]['paused']&&_0x8aacdc['queues'][_0x3b96d2[_0x58bad7]['rows'][_0x468a09][_0x5de712(0x3a4)]]['paused']++,_0x8aacdc['queues'][_0x3b96d2[_0x58bad7][_0x5de712(0x28b8)][_0x468a09]['OpenchannelQueueId']][_0x5de712(0x371)]++,_0x8aacdc[_0x5de712(0x1c06)][_0x3b96d2[_0x58bad7]['rows'][_0x468a09][_0x5de712(0x3a4)]][_0x5de712(0xd77)][_0x3b96d2[_0x58bad7][_0x5de712(0x28b8)][_0x468a09][_0x5de712(0x246c)]]=_0x3b96d2[_0x58bad7][_0x5de712(0x28b8)][_0x468a09]['OpenchannelQueueId'];}}})['catch'](function(_0x37b93f){console['error'](_0x37b93f);});}function _0x9b2b56(_0x5554fd){const _0x8fc5fc=_0x21fc3c;_0x8aacdc['queues'][_0x5554fd['id']]&&_0x28c606()[_0x8fc5fc(0x14fe)](_0x8aacdc[_0x8fc5fc(0x1c06)][_0x5554fd['id']],_0x28c606()[_0x8fc5fc(0x27bb)](_0x5554fd,_0x299128));}function _0x366f8f(_0x52724e){const _0x4a808f=_0x21fc3c;_0x8aacdc[_0x4a808f(0x1c06)][_0x52724e['OpenchannelQueueId']]&&_0x8aacdc['queues'][_0x52724e[_0x4a808f(0x3a4)]]['loggedInDb']++;}function _0x373130(_0x27c822){const _0x36fa8c=_0x21fc3c;_0x8aacdc['queues'][_0x27c822[_0x36fa8c(0x3a4)]]&&_0x8aacdc['queues'][_0x27c822[_0x36fa8c(0x3a4)]][_0x36fa8c(0x371)]--;}function _0x7d0110(_0x349a76){const _0xf32398=_0x21fc3c;console['log']('onPause',_0x349a76);if(_0x349a76[_0xf32398(0x11a4)])_0x28c606()[_0xf32398(0x1789)](_0x8aacdc[_0xf32398(0x1c06)],function(_0x48b09f){const _0x5e1f81=_0xf32398;_0x48b09f[_0x5e1f81(0xd77)][_0x349a76['id']]&&(_0x48b09f[_0x5e1f81(0x20a7)]+=0x1,console[_0x5e1f81(0x9b4)](_0x5e1f81(0x2826)));});else!_0x349a76[_0xf32398(0x11a4)]&&_0x28c606()[_0xf32398(0x1789)](_0x8aacdc[_0xf32398(0x1c06)],function(_0x2b15be){const _0x24dca3=_0xf32398;_0x2b15be[_0x24dca3(0xd77)][_0x349a76['id']]&&(_0x2b15be[_0x24dca3(0x20a7)]>0x0&&(_0x2b15be[_0x24dca3(0x20a7)]-=0x1,console[_0x24dca3(0x9b4)]('unpause')));});}function _0x5f123e(_0x340928){const _0x506119=_0x21fc3c;console[_0x506119(0x9b4)](_0x506119(0x889),_0x340928),_0x8aacdc[_0x506119(0x1c06)][_0x340928[_0x506119(0x3a4)]]&&(_0x8aacdc[_0x506119(0x1c06)][_0x340928[_0x506119(0x3a4)]][_0x506119(0x371)]+=0x1,_0x8aacdc[_0x506119(0x1c06)][_0x340928[_0x506119(0x3a4)]]['agents'][_0x340928[_0x506119(0x246c)]]=_0x340928[_0x506119(0x3a4)]);}function _0x496810(_0xf7728f){const _0x2cd6ea=_0x21fc3c;console[_0x2cd6ea(0x9b4)](_0x2cd6ea(0x259),_0xf7728f),_0x8aacdc['queues'][_0xf7728f['OpenchannelQueueId']]&&_0x8aacdc['queues'][_0xf7728f[_0x2cd6ea(0x3a4)]][_0x2cd6ea(0x371)]>0x0&&(_0x8aacdc['queues'][_0xf7728f[_0x2cd6ea(0x3a4)]][_0x2cd6ea(0x371)]-=0x1,delete _0x8aacdc[_0x2cd6ea(0x1c06)][_0xf7728f[_0x2cd6ea(0x3a4)]][_0x2cd6ea(0xd77)][_0xf7728f['UserId']]);}let _0x13f8d1=!![],_0x550bdd=0x1;_0x1c3c0e[_0x21fc3c(0xc62)](_0x21fc3c(0x1cb9),function(_0x33375c,_0x4289ed){const _0x5865ee=_0x21fc3c;_0x13f8d1?_0x4b6cca(function(){_0x13f8d1=![];}):(!_0x4289ed&&(_0x550bdd=_0x8aacdc[_0x5865ee(0x289a)][_0x5865ee(0xc72)]),_0x33375c!==_0x4289ed&&(_0x8aacdc[_0x5865ee(0x289a)][_0x5865ee(0xc72)]=0x1),!_0x33375c&&(_0x8aacdc[_0x5865ee(0x289a)][_0x5865ee(0xc72)]=_0x550bdd),_0x8aacdc[_0x5865ee(0x1f2c)]());});function _0x520bbe(_0x2faafd){const _0x30a0a4=_0x21fc3c;_0x8aacdc[_0x30a0a4(0xb90)]=_0x2faafd[_0x30a0a4(0xb90)],_0x8aacdc['queues']=_0x2faafd?_0x28c606()[_0x30a0a4(0x161e)](_0x2faafd['rows']?_0x2faafd['rows']:[],'id'):{};if(_0x2faafd[_0x30a0a4(0x28b8)]){_0x8aacdc[_0x30a0a4(0x1997)]=[];for(let _0x145157=0x0;_0x145157<_0x2faafd[_0x30a0a4(0x28b8)]['length'];_0x145157++){_0x8aacdc[_0x30a0a4(0x1997)][_0x30a0a4(0x1954)](_0x2faafd[_0x30a0a4(0x28b8)][_0x145157]['id']);}}_0x327960();}function _0x4e2e1e(){const _0x15fc50=_0x21fc3c;_0x8aacdc[_0x15fc50(0x289a)][_0x15fc50(0x24f9)]=(_0x8aacdc[_0x15fc50(0x289a)][_0x15fc50(0xc72)]-0x1)*_0x8aacdc[_0x15fc50(0x289a)][_0x15fc50(0x25bb)],_0x4c928a['hasRole'](_0x15fc50(0x333))?_0x8aacdc['promise']=_0x41510d['openchannelQueue'][_0x15fc50(0x896)](_0x8aacdc[_0x15fc50(0x289a)],_0x520bbe)['$promise']:(_0x8aacdc[_0x15fc50(0x289a)]['id']=_0x8aacdc[_0x15fc50(0x16a8)]['id'],_0x8aacdc[_0x15fc50(0x289a)][_0x15fc50(0xa21)]='OpenchannelQueues',_0x8aacdc['promise']=_0x41510d[_0x15fc50(0x16a8)][_0x15fc50(0x2565)](_0x8aacdc[_0x15fc50(0x289a)],_0x520bbe)['$promise']);}function _0x4c1562(_0x313a5b,_0x1b8421){const _0x20b701=_0x21fc3c;_0x391ee4[_0x20b701(0xa60)]({'controller':'CreateOrEditOpenchannelQueueDialogController','controllerAs':'vm','templateUrl':_0x11b102,'parent':angular[_0x20b701(0x1f81)](_0x338d0d[_0x20b701(0xb49)]),'targetEvent':_0x313a5b,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x1b8421,'openchannelQueues':_0x28c606()[_0x20b701(0x2146)](_0x8aacdc[_0x20b701(0x1c06)]),'license':null,'setting':null,'crudPermissions':_0x8aacdc[_0x20b701(0x402)]}});}function _0x524e8a(_0x585bb2,_0x16aece){const _0x1aa810=_0x21fc3c;_0x391ee4['show']({'controller':_0x1aa810(0x1232),'controllerAs':'vm','templateUrl':_0xdada58,'parent':angular['element'](_0x338d0d[_0x1aa810(0xb49)]),'targetEvent':_0x585bb2,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x16aece,'openchannelQueues':_0x8aacdc[_0x1aa810(0x1c06)]?_0x8aacdc[_0x1aa810(0x1c06)][_0x1aa810(0x28b8)]:[],'realtime':![],'crudPermissions':_0x8aacdc[_0x1aa810(0x402)]}});}function _0x24a0ce(_0x5a9ca1){const _0x12d7bc=_0x21fc3c;return _0x41510d[_0x12d7bc(0xb4b)][_0x12d7bc(0x2603)](_0x5a9ca1)['$promise'][_0x12d7bc(0x64a)](function(){const _0x160af8=_0x12d7bc;_0x42fdfe['success']({'title':'Queue\x20properly\x20updated!','msg':_0x5a9ca1['name']?_0x5a9ca1['name']+_0x160af8(0x2032):''});})[_0x12d7bc(0x20cd)](function(_0x245a98){const _0x518f4b=_0x12d7bc;_0x42fdfe[_0x518f4b(0x1bd0)]({'title':'Error\x20creating\x20queue!','msg':_0x245a98[_0x518f4b(0x18ca)]});});}_0x1c3c0e[_0x21fc3c(0x8c7)]('$destroy',function(){const _0x2bb550=_0x21fc3c;_0x81b924[_0x2bb550(0x1951)](_0x2bb550(0xc85)),_0x81b924['removeAllListeners'](_0x2bb550(0x14a9)),_0x81b924[_0x2bb550(0x1951)]('userOpenchannelQueue:save'),_0x81b924[_0x2bb550(0x1951)](_0x2bb550(0x130f)),_0x81b924['removeAllListeners'](_0x2bb550(0x289d)),_0x81b924['removeAllListeners'](_0x2bb550(0x44b));});}const _0x5a5e6a=_0x4299c1;;function _0x4f1b04(){const _0x2f18b2=_0x49a1e3;return{'status':{'registered':_0x2f18b2(0x26f8),'unregistered':_0x2f18b2(0x2448),'lagged':_0x2f18b2(0x2448),'reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x2f18b2(0x178c)},'state':{'unknown':_0x2f18b2(0x2971),'not_inuse':_0x2f18b2(0x14d3),'inuse':_0x2f18b2(0xa51),'busy':'red-300-fg\x20icon-phone-locked','invalid':_0x2f18b2(0x2971),'unavailable':_0x2f18b2(0x2971),'ringing':_0x2f18b2(0x15e),'ringinuse':_0x2f18b2(0x15e),'onhold':_0x2f18b2(0xced)},'channelStatus':{'ring':'blue-300-fg\x20icon-phone-incoming','up':_0x2f18b2(0x5c4),'hangup':_0x2f18b2(0x2150)},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':_0x2f18b2(0x5c4),'hangup':_0x2f18b2(0x2150)}};}const _0x4599f9=_0x4f1b04;;_0x34b245[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x633)];function _0x34b245(_0x38aa92,_0xc67a98,_0x56f5dd){const _0x416e10=_0x49a1e3,_0x46d94b=this;_0x56f5dd['disconnect'](),_0x56f5dd[_0x416e10(0x25fa)](),_0x46d94b[_0x416e10(0x197c)]=0x0;switch(_0xc67a98[_0x416e10(0xa6c)]['name']){case _0x416e10(0x782):_0x46d94b[_0x416e10(0x197c)]=0x0;break;case'app.openchannel.realtime.queues':_0x46d94b[_0x416e10(0x197c)]=0x1;break;default:_0x46d94b[_0x416e10(0x197c)]=0x0,_0xc67a98['go'](_0x416e10(0x782));}_0x38aa92[_0x416e10(0xc62)]('vm.selectedTab',function(_0xd5a4f3,_0xeeb207){const _0x15b8df=_0x416e10;if(_0xd5a4f3!==_0xeeb207)switch(_0xd5a4f3){case 0x0:_0xc67a98['go'](_0x15b8df(0x782));break;case 0x1:_0xc67a98['go'](_0x15b8df(0x1236));break;default:_0xc67a98['go'](_0x15b8df(0x782));}});}const _0x130d32=_0x34b245;;_0x36b54f[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad)];function _0x36b54f(_0xf7d24a){const _0x3e18c4=_0x49a1e3;_0xf7d24a[_0x3e18c4(0x14f2)](_0x3e18c4(0x2469),{'url':_0x3e18c4(0x71d),'views':{'content@app':{'templateUrl':_0x328310,'controller':_0x3e18c4(0x15cb)}},'resolve':{'userProfile':['apiResolver',_0x3e18c4(0xdcf),function(_0x37d273,_0x2b5e30){const _0x58f31e=_0x3e18c4;return _0x2b5e30[_0x58f31e(0x4de)](_0x58f31e(0x333))?null:_0x37d273[_0x58f31e(0x1268)](_0x58f31e(0x6e3),{'fields':_0x58f31e(0x10d2),'id':_0x2b5e30[_0x58f31e(0x808)]()['userProfileId']});}],'userProfileSection':[_0x3e18c4(0x107c),'Auth',function(_0x309f01,_0x550fc9){const _0x2dfca4=_0x3e18c4;return _0x550fc9[_0x2dfca4(0x4de)](_0x2dfca4(0x333))?null:_0x309f01[_0x2dfca4(0x1268)]('userProfileSection@get',{'fields':_0x2dfca4(0x527),'userProfileId':_0x550fc9['getCurrentUser']()[_0x2dfca4(0x21ac)],'sectionId':0x32a});}]},'authenticate':!![],'permissionId':0x32a})[_0x3e18c4(0x14f2)]('app.openchannel.realtime.agents',{'url':'/agents','controller':_0x3e18c4(0x7ff),'templateUrl':_0x5b20b9,'resolve':{'pauses':[_0x3e18c4(0x107c),function(_0xd12f1d){const _0x3464a8=_0x3e18c4;return _0xd12f1d[_0x3464a8(0x1268)](_0x3464a8(0x1fae),{'nolimit':!![]});}],'agents':[_0x3e18c4(0x107c),_0x3e18c4(0xdcf),function(_0x4aead4,_0x153ce3){const _0x6a0d2b=_0x3e18c4;return _0x153ce3[_0x6a0d2b(0x4de)](_0x6a0d2b(0x333))?_0x4aead4[_0x6a0d2b(0x1268)](_0x6a0d2b(0x142c),{'fields':_0x6a0d2b(0x1956),'role':'agent','sort':'fullname','nolimit':!![]}):_0x4aead4[_0x6a0d2b(0x1268)](_0x6a0d2b(0x1758),{'id':_0x153ce3[_0x6a0d2b(0x808)]()[_0x6a0d2b(0x21ac)],'section':_0x6a0d2b(0x2132),'fields':_0x6a0d2b(0x1956),'role':_0x6a0d2b(0x11ae),'sort':_0x6a0d2b(0x15c),'nolimit':!![]});}],'userProfile':[_0x3e18c4(0x107c),_0x3e18c4(0xdcf),function(_0x1ce425,_0x1b7b8f){const _0x2cf808=_0x3e18c4;return _0x1b7b8f['hasRole'](_0x2cf808(0x333))?null:_0x1ce425[_0x2cf808(0x1268)]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x1b7b8f[_0x2cf808(0x808)]()[_0x2cf808(0x21ac)]});}],'userProfileSection':[_0x3e18c4(0x107c),'Auth',function(_0x7e55b2,_0x187516){const _0x255ddf=_0x3e18c4;return _0x187516[_0x255ddf(0x4de)](_0x255ddf(0x333))?null:_0x7e55b2[_0x255ddf(0x1268)](_0x255ddf(0x2681),{'fields':_0x255ddf(0x527),'userProfileId':_0x187516[_0x255ddf(0x808)]()[_0x255ddf(0x21ac)],'sectionId':0xca});}],'rpcAgents':[_0x3e18c4(0x107c),function(_0x2ecd1e){const _0x25ab96=_0x3e18c4;return _0x2ecd1e[_0x25ab96(0x1268)](_0x25ab96(0x2222));}]},'authenticate':!![],'permissionId':0x32a})[_0x3e18c4(0x14f2)]('app.openchannel.realtime.queues',{'url':_0x3e18c4(0x16ca),'controller':_0x3e18c4(0x691),'templateUrl':_0x248c1a,'resolve':{'queues':[_0x3e18c4(0x107c),'Auth',function(_0x2b3274,_0x4b4231){const _0x154cf5=_0x3e18c4;return _0x4b4231[_0x154cf5(0x4de)](_0x154cf5(0x333))?_0x2b3274[_0x154cf5(0x1268)]('openchannelQueue@get',{'type':_0x154cf5(0x12a4),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x2b3274[_0x154cf5(0x1268)](_0x154cf5(0x1758),{'id':_0x4b4231[_0x154cf5(0x808)]()[_0x154cf5(0x21ac)],'section':_0x154cf5(0x1b75),'channel':_0x154cf5(0x28ad),'type':_0x154cf5(0x12a4),'sort':_0x154cf5(0x260c),'limit':0xa,'page':0x1});}],'userProfile':[_0x3e18c4(0x107c),_0x3e18c4(0xdcf),function(_0x5ac649,_0x4100f8){const _0x379963=_0x3e18c4;return _0x4100f8['hasRole'](_0x379963(0x333))?null:_0x5ac649[_0x379963(0x1268)](_0x379963(0x6e3),{'fields':_0x379963(0x10d2),'id':_0x4100f8['getCurrentUser']()[_0x379963(0x21ac)]});}],'userProfileSection':[_0x3e18c4(0x107c),_0x3e18c4(0xdcf),function(_0x48f48f,_0xd970bd){const _0x4d4585=_0x3e18c4;return _0xd970bd[_0x4d4585(0x4de)](_0x4d4585(0x333))?null:_0x48f48f[_0x4d4585(0x1268)](_0x4d4585(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xd970bd[_0x4d4585(0x808)]()['userProfileId'],'sectionId':0x321});}],'rpcQueues':[_0x3e18c4(0x107c),function(_0xb609f5){const _0x2a28ae=_0x3e18c4;return _0xb609f5[_0x2a28ae(0x1268)](_0x2a28ae(0x1d76));}]},'authenticate':!![],'permissionId':0x32a});}angular[_0x49a1e3(0x20d2)]('app.openchannel.realtime',[])['config'](_0x36b54f)['controller'](_0x49a1e3(0x15c5),_0x1ce565)[_0x49a1e3(0x38e)](_0x49a1e3(0xf04),_0x5a5e6a)['factory'](_0x49a1e3(0x1f8c),_0x4599f9)[_0x49a1e3(0x38e)](_0x49a1e3(0xc79),_0x130d32);;const _0x2c6592=_0x2e4a48['p']+'src/js/modules/main/apps/openchannel/views/openchannelQueues/openchannelQueues.html/openchannelQueues.html';;const _0x3e61b3=_0x2e4a48['p']+'src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/view.html/view.html';;const _0x387326=_0x2e4a48['p']+_0x49a1e3(0x5d5);;const _0x132801=_0x2e4a48['p']+_0x49a1e3(0x274d);;_0x4c750e[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q','$translate','toasty',_0x49a1e3(0xda9),_0x49a1e3(0x880),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting',_0x49a1e3(0x402)];function _0x4c750e(_0x5ae406,_0x33baa8,_0xe9b6b0,_0x364579,_0x50c39b,_0x5e6b74,_0x5169ff,_0x572f2e,_0x2c975a,_0x53d02e,_0x5a325f,_0x2322e5,_0x4173f3,_0x3bcf9a){const _0x844e7e=_0x49a1e3,_0x39032c=this;_0x39032c[_0x844e7e(0x1d3d)]=_0x5a325f[_0x844e7e(0x808)](),_0x39032c[_0x844e7e(0xbae)]=[],_0x39032c[_0x844e7e(0x28d6)]=_0x4173f3,_0x39032c[_0x844e7e(0x1947)]=_0x2322e5,_0x39032c[_0x844e7e(0x402)]=_0x3bcf9a,_0x39032c['hasModulePermissions']={},_0x39032c[_0x844e7e(0xccc)]=_0x39032c['setting']&&_0x39032c['setting'][_0x844e7e(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x39032c[_0x844e7e(0x2021)]='OPENCHANNEL.EDIT_OPENCHANNELACCOUNT',_0x39032c[_0x844e7e(0x880)]=angular[_0x844e7e(0x289e)](_0x2c975a),_0x39032c[_0x844e7e(0xda9)]=_0x572f2e,_0x39032c['newOpenchannelAccount']=![];!_0x39032c[_0x844e7e(0x880)]&&(_0x39032c[_0x844e7e(0x880)]={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x39032c['title']=_0x844e7e(0x10ee),_0x39032c[_0x844e7e(0x272)]=!![]);_0x33baa8[_0x844e7e(0x1b48)]['id']&&(_0x39032c[_0x844e7e(0x880)][_0x844e7e(0x2859)]=_0x33baa8[_0x844e7e(0x1b48)]['id']);_0x39032c['addNewOpenchannelAccount']=_0x1f5e69,_0x39032c[_0x844e7e(0x81b)]=_0x40c841,_0x39032c[_0x844e7e(0xdc2)]=_0x386e59,_0x39032c[_0x844e7e(0x1605)]=_0x4696da,_0x39032c['closeDialog']=_0x715831,_0x5a325f[_0x844e7e(0x4de)](_0x844e7e(0x333))?_0x53d02e[_0x844e7e(0x19f8)][_0x844e7e(0x896)]({'fields':_0x844e7e(0x1427),'sort':_0x844e7e(0x2494)})[_0x844e7e(0x15e7)][_0x844e7e(0x64a)](function(_0x42fc9f){const _0xc4bc21=_0x844e7e;_0x39032c['lists']=_0x42fc9f[_0xc4bc21(0x28b8)]||[];})['catch'](function(_0x553b8d){const _0x4c9896=_0x844e7e;_0x5169ff[_0x4c9896(0x1bd0)]({'title':_0x553b8d[_0x4c9896(0x10b3)]?_0x4c9896(0x575)+_0x553b8d[_0x4c9896(0x10b3)]+_0x4c9896(0x21db)+_0x553b8d[_0x4c9896(0x2115)]:'SYSTEM:GET_LISTS','msg':_0x553b8d[_0x4c9896(0x1c52)]?JSON['stringify'](_0x553b8d[_0x4c9896(0x1c52)]):_0x553b8d['toString']()});}):_0x53d02e[_0x844e7e(0x19f8)][_0x844e7e(0x896)]({'fields':_0x844e7e(0x1427),'sort':_0x844e7e(0x2494)})[_0x844e7e(0x15e7)][_0x844e7e(0x64a)](function(_0x25f622){const _0x259a9a=_0x844e7e;_0x39032c[_0x259a9a(0x974)]=_0x25f622[_0x259a9a(0x28b8)]||[];})[_0x844e7e(0x64a)](function(){const _0x499e3f=_0x844e7e;return _0x53d02e[_0x499e3f(0x16b2)][_0x499e3f(0x896)]({'userProfileId':_0x39032c[_0x499e3f(0x1d3d)][_0x499e3f(0x21ac)],'sectionId':0x12d})[_0x499e3f(0x15e7)];})[_0x844e7e(0x64a)](function(_0x38c367){const _0x2f6ab2=_0x844e7e,_0x4da042=_0x38c367&&_0x38c367[_0x2f6ab2(0x28b8)]?_0x38c367[_0x2f6ab2(0x28b8)][0x0]:null;if(!_0x4da042){const _0x3cf6db=[];let _0xc706e0=null;_0x39032c[_0x2f6ab2(0x880)]&&(_0xc706e0=_0x28c606()[_0x2f6ab2(0x27bc)](_0x39032c[_0x2f6ab2(0x974)],{'id':Number(_0x39032c['openchannelAccount'][_0x2f6ab2(0x869)])}));for(let _0xe88f7=0x0;_0xe88f7<_0x39032c[_0x2f6ab2(0x974)][_0x2f6ab2(0x1b9e)];_0xe88f7++){_0xc706e0&&_0x39032c['lists'][_0xe88f7]['id']===_0xc706e0['id']&&(_0x39032c['lists'][_0xe88f7][_0x2f6ab2(0xd4f)]=![],_0x3cf6db[_0x2f6ab2(0x1954)](_0x39032c[_0x2f6ab2(0x974)][_0xe88f7]));}_0x39032c['lists']=_0x3cf6db;}else{if(!_0x4da042[_0x2f6ab2(0x11da)])return _0x53d02e[_0x2f6ab2(0x1617)][_0x2f6ab2(0x896)]({'sectionId':_0x4da042['id']})[_0x2f6ab2(0x15e7)][_0x2f6ab2(0x64a)](function(_0x1cf587){const _0x5bfcc0=_0x2f6ab2,_0x243134=_0x28c606()[_0x5bfcc0(0x1de5)](_0x1cf587[_0x5bfcc0(0x28b8)],function(_0x7de1fd){const _0xbf3725=_0x5bfcc0;return _0x28c606()[_0xbf3725(0x27bc)](_0x39032c[_0xbf3725(0x974)],{'id':_0x7de1fd['resourceId']});});let _0x18ed75=null;_0x39032c[_0x5bfcc0(0x880)]&&(_0x18ed75=_0x28c606()[_0x5bfcc0(0x27bc)](_0x39032c[_0x5bfcc0(0x974)],{'id':Number(_0x39032c[_0x5bfcc0(0x880)][_0x5bfcc0(0x869)])}));if(_0x18ed75&&!_0x28c606()[_0x5bfcc0(0x25f8)](_0x243134,['id',_0x18ed75['id']])){const _0xe6a93c=_0x28c606()[_0x5bfcc0(0x27bc)](_0x39032c[_0x5bfcc0(0x974)],{'id':_0x18ed75['id']});_0xe6a93c[_0x5bfcc0(0xd4f)]=![],_0x243134[_0x5bfcc0(0x1954)](_0xe6a93c);}_0x39032c['lists']=_0x243134;});}})[_0x844e7e(0x20cd)](function(_0x58bb01){const _0xc480d=_0x844e7e;_0x5169ff['error']({'title':_0x58bb01[_0xc480d(0x10b3)]?_0xc480d(0x575)+_0x58bb01[_0xc480d(0x10b3)]+'\x20-\x20'+_0x58bb01[_0xc480d(0x2115)]:_0xc480d(0x1beb),'msg':_0x58bb01['data']?JSON[_0xc480d(0x2317)](_0x58bb01['data']):_0x58bb01['toString']()});});function _0x1f5e69(){const _0x543082=_0x844e7e;_0x39032c['errors']=[],_0x53d02e[_0x543082(0x880)][_0x543082(0x2479)](_0x39032c[_0x543082(0x880)])[_0x543082(0x15e7)][_0x543082(0x64a)](function(_0x40e146){const _0x5cbf10=_0x543082;_0x39032c[_0x5cbf10(0xda9)][_0x5cbf10(0x1891)](_0x40e146[_0x5cbf10(0x14f8)]()),_0x5169ff['success']({'title':_0x5cbf10(0x25b6),'msg':_0x39032c[_0x5cbf10(0x880)][_0x5cbf10(0x2494)]?_0x39032c['openchannelAccount']['name']+_0x5cbf10(0x258d):''}),_0x715831(_0x40e146);})[_0x543082(0x20cd)](function(_0x135539){const _0x271e82=_0x543082;if(_0x135539[_0x271e82(0x1c52)]&&_0x135539[_0x271e82(0x1c52)][_0x271e82(0xbae)]&&_0x135539[_0x271e82(0x1c52)][_0x271e82(0xbae)][_0x271e82(0x1b9e)]){_0x39032c[_0x271e82(0xbae)]=_0x135539[_0x271e82(0x1c52)]['errors']||[{'message':_0x135539[_0x271e82(0x2915)](),'type':'api.openchannelAccount.save'}];for(let _0x1fbce7=0x0;_0x1fbce7<_0x135539[_0x271e82(0x1c52)][_0x271e82(0xbae)][_0x271e82(0x1b9e)];_0x1fbce7+=0x1){_0x5169ff['error']({'title':_0x135539[_0x271e82(0x1c52)][_0x271e82(0xbae)][_0x1fbce7][_0x271e82(0x2185)],'msg':_0x135539[_0x271e82(0x1c52)][_0x271e82(0xbae)][_0x1fbce7][_0x271e82(0x18ca)]});}}else _0x5169ff[_0x271e82(0x1bd0)]({'title':_0x135539['status']?'API:'+_0x135539[_0x271e82(0x10b3)]+_0x271e82(0x21db)+_0x135539['statusText']:_0x271e82(0x26ab),'msg':_0x135539[_0x271e82(0x1c52)]?JSON[_0x271e82(0x2317)](_0x135539[_0x271e82(0x1c52)][_0x271e82(0x18ca)]):_0x135539['toString']()});});}function _0x40c841(){const _0x2644f0=_0x844e7e;_0x39032c['errors']=[],_0x53d02e[_0x2644f0(0x880)]['update']({'id':_0x39032c['openchannelAccount']['id']},_0x39032c[_0x2644f0(0x880)])[_0x2644f0(0x15e7)][_0x2644f0(0x64a)](function(_0x16ee6d){const _0x3daebe=_0x2644f0,_0x166da0=_0x28c606()[_0x3daebe(0x27bc)](_0x39032c[_0x3daebe(0xda9)],{'id':_0x16ee6d['id']});_0x166da0&&_0x28c606()[_0x3daebe(0x14fe)](_0x166da0,_0x28c606()[_0x3daebe(0x27bb)](_0x16ee6d[_0x3daebe(0x14f8)](),_0x28c606()['keys'](_0x166da0))),_0x5169ff[_0x3daebe(0x1339)]({'title':_0x3daebe(0x448),'msg':_0x39032c['openchannelAccount'][_0x3daebe(0x2494)]?_0x39032c[_0x3daebe(0x880)][_0x3daebe(0x2494)]+_0x3daebe(0x271):''}),_0x715831(_0x16ee6d);})[_0x2644f0(0x20cd)](function(_0x3e723b){const _0x38ef32=_0x2644f0;if(_0x3e723b[_0x38ef32(0x1c52)]&&_0x3e723b[_0x38ef32(0x1c52)][_0x38ef32(0xbae)]&&_0x3e723b[_0x38ef32(0x1c52)]['errors'][_0x38ef32(0x1b9e)]){_0x39032c[_0x38ef32(0xbae)]=_0x3e723b[_0x38ef32(0x1c52)]['errors']||[{'message':_0x3e723b[_0x38ef32(0x2915)](),'type':_0x38ef32(0x1237)}];for(let _0x3e2531=0x0;_0x3e2531<_0x3e723b[_0x38ef32(0x1c52)]['errors'][_0x38ef32(0x1b9e)];_0x3e2531++){_0x5169ff[_0x38ef32(0x1bd0)]({'title':_0x3e723b[_0x38ef32(0x1c52)]['errors'][_0x3e2531][_0x38ef32(0x2185)],'msg':_0x3e723b[_0x38ef32(0x1c52)][_0x38ef32(0xbae)][_0x3e2531][_0x38ef32(0x18ca)]});}}else _0x5169ff['error']({'title':_0x3e723b['status']?'API:'+_0x3e723b[_0x38ef32(0x10b3)]+'\x20-\x20'+_0x3e723b[_0x38ef32(0x2115)]:'api.openchannelAccount.update','msg':_0x3e723b[_0x38ef32(0x1c52)]?JSON[_0x38ef32(0x2317)](_0x3e723b[_0x38ef32(0x1c52)][_0x38ef32(0x18ca)]):_0x3e723b[_0x38ef32(0x2915)]()});});}function _0x386e59(_0x594e03){const _0x28a8d5=_0x844e7e;_0x39032c[_0x28a8d5(0xbae)]=[];const _0x1a74a5=_0x364579[_0x28a8d5(0x856)]()[_0x28a8d5(0x2021)](_0x28a8d5(0x103a))[_0x28a8d5(0x12b8)](_0x28a8d5(0x24c7))['ariaLabel'](_0x28a8d5(0x161f))['ok'](_0x28a8d5(0x2664))[_0x28a8d5(0x101a)](_0x28a8d5(0x1dc6))[_0x28a8d5(0x2283)](_0x594e03);_0x364579[_0x28a8d5(0xa60)](_0x1a74a5)['then'](function(){const _0x23e198=_0x28a8d5;_0x53d02e[_0x23e198(0x880)][_0x23e198(0xabd)]({'id':_0x39032c[_0x23e198(0x880)]['id']})[_0x23e198(0x15e7)][_0x23e198(0x64a)](function(){const _0x5b9395=_0x23e198;_0x28c606()['remove'](_0x39032c[_0x5b9395(0xda9)],{'id':_0x39032c[_0x5b9395(0x880)]['id']}),_0x5169ff[_0x5b9395(0x1339)]({'title':_0x5b9395(0x2496),'msg':(_0x39032c['openchannelAccount'][_0x5b9395(0x2494)]||_0x5b9395(0x880))+_0x5b9395(0x1fa8)}),_0x715831(_0x39032c[_0x5b9395(0x880)]);})[_0x23e198(0x20cd)](function(_0x3f8c92){const _0x398381=_0x23e198;if(_0x3f8c92[_0x398381(0x1c52)]&&_0x3f8c92['data'][_0x398381(0xbae)]&&_0x3f8c92['data']['errors']['length']){_0x39032c[_0x398381(0xbae)]=_0x3f8c92[_0x398381(0x1c52)]['errors']||[{'message':_0x3f8c92[_0x398381(0x2915)](),'type':_0x398381(0x2235)}];for(let _0x4e6b4f=0x0;_0x4e6b4f<_0x3f8c92['data'][_0x398381(0xbae)][_0x398381(0x1b9e)];_0x4e6b4f++){_0x5169ff['error']({'title':_0x3f8c92[_0x398381(0x1c52)][_0x398381(0xbae)][_0x4e6b4f][_0x398381(0x2185)],'msg':_0x3f8c92[_0x398381(0x1c52)][_0x398381(0xbae)][_0x4e6b4f][_0x398381(0x18ca)]});}}else _0x5169ff[_0x398381(0x1bd0)]({'title':_0x3f8c92['status']?'API:'+_0x3f8c92['status']+'\x20-\x20'+_0x3f8c92['statusText']:_0x398381(0x2235),'msg':_0x3f8c92[_0x398381(0x1c52)]?JSON[_0x398381(0x2317)](_0x3f8c92[_0x398381(0x1c52)][_0x398381(0x18ca)]):_0x3f8c92['message']||_0x3f8c92['toString']()});});},function(){});}function _0x4696da(_0x30f0f3){return _0x30f0f3===null?undefined:new Date(_0x30f0f3);}function _0x715831(_0x13b32c){const _0x20e96b=_0x844e7e;_0x364579[_0x20e96b(0x268e)](_0x13b32c);}}const _0x5e89d1=_0x4c750e;;const _0x4fbb3d=_0x2e4a48['p']+_0x49a1e3(0x156);;const _0x182a62=_0x2e4a48['p']+_0x49a1e3(0x844);;const _0x2d2ba4=_0x2e4a48['p']+_0x49a1e3(0x1b54);;const _0x385506=_0x2e4a48['p']+_0x49a1e3(0x511);;const _0x3277c6=_0x2e4a48['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotop/dialog.html/dialog.html';;const _0x4ad8a3=_0x2e4a48['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/interval/dialog.html/dialog.html';;const _0x28cbea=_0x2e4a48['p']+_0x49a1e3(0x1936);;const _0xe2ee8f=_0x2e4a48['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/queue/dialog.html/dialog.html';;const _0x5df93a=_0x2e4a48['p']+_0x49a1e3(0x1d71);;const _0x1cd1c5=_0x2e4a48['p']+_0x49a1e3(0xe29);;_0x566bd6['$inject']=[_0x49a1e3(0xa19),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x680),_0x49a1e3(0xdcf)];const _0x369a09={'agent':_0x4fbb3d,'autoreply':_0x182a62,'close':_0x2d2ba4,'gotoif':_0x385506,'gotop':_0x3277c6,'interval':_0x4ad8a3,'noop':_0x28cbea,'queue':_0xe2ee8f,'system':_0x5df93a,'tag':_0x1cd1c5};function _0x566bd6(_0x452310,_0x7690c9,_0x8bb8df,_0x1daf90,_0x297476){const _0x3eaaa2=_0x49a1e3,_0x55cb21=this;_0x55cb21['currentUser']=_0x297476['getCurrentUser'](),_0x55cb21['openchannelAccount']={},_0x55cb21[_0x3eaaa2(0x10dc)]={'count':0x0,'rows':[]},_0x55cb21[_0x3eaaa2(0xc35)]=[],_0x55cb21[_0x3eaaa2(0x402)],_0x55cb21[_0x3eaaa2(0x289a)]={'sort':_0x3eaaa2(0x1095)},_0x55cb21['apps']=_0x28c606()[_0x3eaaa2(0x19d2)](_0x28c606()['sortBy']([{'app':_0x3eaaa2(0x1084),'appType':_0x3eaaa2(0x1084),'type':_0x3eaaa2(0x1084),'icon':_0x3eaaa2(0xd46),'interval':_0x3eaaa2(0x2145),'isApp':!![],'fields':[{'title':_0x3eaaa2(0x2367),'name':_0x3eaaa2(0x2125),'type':_0x3eaaa2(0x39b),'required':!![],'param':0x0},{'title':'language','name':_0x3eaaa2(0x1cbd),'type':_0x3eaaa2(0x2926),'defaultValue':_0x3eaaa2(0x160),'values':[{'option':_0x3eaaa2(0x5f1),'value':'\x27da\x27'},{'option':_0x3eaaa2(0x1230),'value':'\x27en\x27'},{'option':_0x3eaaa2(0x10a4),'value':_0x3eaaa2(0x746)},{'option':_0x3eaaa2(0x28bf),'value':'\x27it\x27'},{'option':_0x3eaaa2(0x656),'value':_0x3eaaa2(0x17aa)},{'option':_0x3eaaa2(0x976),'value':_0x3eaaa2(0x249a)},{'option':_0x3eaaa2(0x2079),'value':_0x3eaaa2(0xfce)},{'option':'Japanese','value':'\x27ja\x27'},{'option':_0x3eaaa2(0x209d),'value':_0x3eaaa2(0x1644)},{'option':_0x3eaaa2(0x183),'value':_0x3eaaa2(0x87f)},{'option':_0x3eaaa2(0x22d3),'value':_0x3eaaa2(0x1476)},{'option':_0x3eaaa2(0x1190),'value':_0x3eaaa2(0x70b)},{'option':_0x3eaaa2(0x18af),'value':_0x3eaaa2(0x1358)},{'option':_0x3eaaa2(0x21f6),'value':'\x27ru\x27'},{'option':'Swedish','value':_0x3eaaa2(0x15b)},{'option':_0x3eaaa2(0x17e8),'value':_0x3eaaa2(0x5aa)},{'option':_0x3eaaa2(0xd44),'value':_0x3eaaa2(0x4bf)},{'option':_0x3eaaa2(0x133e),'value':_0x3eaaa2(0x784)},{'option':'Chinese\x20(Hong\x20Kong)','value':_0x3eaaa2(0x34f)},{'option':_0x3eaaa2(0x263a),'value':_0x3eaaa2(0x188d)}],'required':!![],'param':0x1},{'title':'welcomemessage','name':_0x3eaaa2(0x31b),'type':_0x3eaaa2(0x1e3c),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':'dialogflowV2','appType':'dialogflowv2','type':'dialogflowv2','icon':_0x3eaaa2(0xd46),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x3eaaa2(0x4fe),'name':_0x3eaaa2(0xbfd),'type':_0x3eaaa2(0x39b),'required':!![],'param':0x0},{'title':_0x3eaaa2(0x37c),'name':_0x3eaaa2(0x4b2),'type':'text','required':!![],'param':0x1},{'title':_0x3eaaa2(0xda2),'name':_0x3eaaa2(0x1b1b),'type':_0x3eaaa2(0x1e3c),'required':!![],'param':0x2},{'title':_0x3eaaa2(0x1cbd),'name':_0x3eaaa2(0x1cbd),'type':_0x3eaaa2(0x2926),'defaultValue':_0x3eaaa2(0x160),'values':[{'value':_0x3eaaa2(0x34f),'option':'Chinese\x20(Cantonese)'},{'value':'\x27zh-CN\x27','option':_0x3eaaa2(0x133e)},{'value':'\x27zh-TW\x27','option':_0x3eaaa2(0x263a)},{'value':_0x3eaaa2(0x2287),'option':_0x3eaaa2(0x5f1)},{'value':'\x27nl\x27','option':'Dutch'},{'value':_0x3eaaa2(0x160),'option':_0x3eaaa2(0x1230)},{'value':_0x3eaaa2(0x2863),'option':_0x3eaaa2(0x1c1f)},{'value':_0x3eaaa2(0x20a5),'option':_0x3eaaa2(0x24bc)},{'value':_0x3eaaa2(0x2620),'option':'English\x20(Great\x20Britain)'},{'value':_0x3eaaa2(0x28e0),'option':_0x3eaaa2(0x2196)},{'value':'\x27en-US\x27','option':_0x3eaaa2(0x1a41)},{'value':_0x3eaaa2(0x249a),'option':_0x3eaaa2(0x976)},{'value':_0x3eaaa2(0x24f3),'option':_0x3eaaa2(0xee8)},{'value':'\x27fr-FR\x27','option':_0x3eaaa2(0xf9a)},{'value':_0x3eaaa2(0x746),'option':_0x3eaaa2(0x10a4)},{'value':_0x3eaaa2(0x26a7),'option':'Hindi'},{'value':_0x3eaaa2(0xfce),'option':'Indonesian'},{'value':_0x3eaaa2(0x1517),'option':'Italian'},{'value':_0x3eaaa2(0x295),'option':_0x3eaaa2(0xf5c)},{'value':'\x27ko\x27','option':_0x3eaaa2(0x1ec8)},{'value':_0x3eaaa2(0x1476),'option':_0x3eaaa2(0x22d3)},{'value':_0x3eaaa2(0x1f4b),'option':_0x3eaaa2(0x17c4)},{'value':_0x3eaaa2(0xe14),'option':_0x3eaaa2(0xb9e)},{'value':_0x3eaaa2(0x1106),'option':_0x3eaaa2(0x739)},{'value':_0x3eaaa2(0x86f),'option':'Russian'},{'value':_0x3eaaa2(0x17aa),'option':'Spanish'},{'value':'\x27es-419\x27','option':_0x3eaaa2(0x523)},{'value':'\x27es-ES\x27','option':_0x3eaaa2(0xd7e)},{'value':'\x27sw\x27','option':_0x3eaaa2(0xa2d)},{'value':_0x3eaaa2(0x5aa),'option':_0x3eaaa2(0x17e8)},{'value':'\x27tr\x27','option':_0x3eaaa2(0x2060)},{'value':_0x3eaaa2(0x4bf),'option':_0x3eaaa2(0xd44)}],'required':!![],'param':0x3},{'title':_0x3eaaa2(0x31b),'name':_0x3eaaa2(0x31b),'type':_0x3eaaa2(0x1e3c),'maxlength':0xff,'param':0x4,'help':!![]}]},{'app':_0x3eaaa2(0x290d),'appType':_0x3eaaa2(0x290d),'type':_0x3eaaa2(0x290d),'icon':_0x3eaaa2(0xd46),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x3eaaa2(0x1466),'name':_0x3eaaa2(0x1466),'type':_0x3eaaa2(0x39b),'required':!![],'param':0x0},{'title':'secretaccesskey','name':_0x3eaaa2(0x1b1),'type':'text','required':!![],'param':0x1},{'title':_0x3eaaa2(0x17a2),'name':_0x3eaaa2(0x17a2),'type':_0x3eaaa2(0x2926),'defaultValue':'\x27us-east-1\x27','values':[{'option':_0x3eaaa2(0x3f1),'value':_0x3eaaa2(0x21de)},{'option':_0x3eaaa2(0x528),'value':'\x27us-west-2\x27'},{'option':_0x3eaaa2(0xdda),'value':'\x27eu-west-1\x27'},{'option':_0x3eaaa2(0xbb7),'value':_0x3eaaa2(0x2504)}],'required':!![],'param':0x2},{'title':_0x3eaaa2(0x2797),'name':_0x3eaaa2(0x2797),'type':'text','required':!![],'param':0x3},{'title':'welcomemessage','name':'welcomemessage','type':'textarea','maxlength':0xff,'required':![],'param':0x4,'help':!![]}]},{'app':_0x3eaaa2(0x1f03),'appType':_0x3eaaa2(0xcfd),'types':[_0x3eaaa2(0xa66),_0x3eaaa2(0x1ad6),'list'],'fields':[],'isApp':![]},{'app':_0x3eaaa2(0xbb6),'appType':_0x3eaaa2(0xbb6),'type':'noop','icon':_0x3eaaa2(0xd46),'interval':_0x3eaaa2(0x2145),'required':!![],'isApp':!![],'fields':[{'title':_0x3eaaa2(0x107f),'name':_0x3eaaa2(0x1096),'type':'text','param':0x0}]},{'app':_0x3eaaa2(0x1f06),'appType':_0x3eaaa2(0x1f06),'type':_0x3eaaa2(0x1f06),'icon':_0x3eaaa2(0xd46),'interval':_0x3eaaa2(0x2145),'required':!![],'isApp':!![],'extraApi':[{'name':_0x3eaaa2(0x145c),'field':{'name':'variable','key':_0x3eaaa2(0x2494)},'route':_0x3eaaa2(0xefb),'filters':{'fields':_0x3eaaa2(0x1427),'sort':_0x3eaaa2(0x2494),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x3eaaa2(0x6c7),'name':_0x3eaaa2(0xf42),'type':'text','required':!![],'param':0x0},{'title':_0x3eaaa2(0x1538),'name':'variable','type':_0x3eaaa2(0x26e8),'values':_0x3eaaa2(0x145c),'value':_0x3eaaa2(0x1c5a),'option':_0x3eaaa2(0x1c5a),'defaultValues':[{'value':'\x27\x27','option':_0x3eaaa2(0x8c8)}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x3eaaa2(0x2046),'appType':_0x3eaaa2(0x2046),'type':_0x3eaaa2(0x1e5a),'icon':_0x3eaaa2(0xd46),'interval':_0x3eaaa2(0x2145),'isApp':!![],'fields':[{'title':_0x3eaaa2(0x27f2),'name':_0x3eaaa2(0x1095),'type':'number','required':!![],'min':0x0,'param':0x0}]},{'app':_0x3eaaa2(0x614),'appType':_0x3eaaa2(0x614),'type':_0x3eaaa2(0x614),'icon':_0x3eaaa2(0xd46),'interval':_0x3eaaa2(0x2145),'isApp':!![],'fields':[{'title':_0x3eaaa2(0x82a),'name':'condition','type':_0x3eaaa2(0x39b),'required':!![],'param':0x0},{'title':_0x3eaaa2(0x108f),'name':_0x3eaaa2(0x108f),'type':_0x3eaaa2(0x2113),'min':0x1,'required':!![],'param':0x1},{'title':_0x3eaaa2(0x1d32),'name':_0x3eaaa2(0x1d32),'type':_0x3eaaa2(0x2113),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x3eaaa2(0x1e4e),'appType':_0x3eaaa2(0x1e4e),'foreignKey':'OpenchannelQueueId','type':_0x3eaaa2(0x1e4e),'icon':_0x3eaaa2(0xd46),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':'queues','field':{'name':_0x3eaaa2(0x1e4e),'key':'name'},'route':_0x3eaaa2(0xb4b),'filters':{'fields':'id,name,type','sort':_0x3eaaa2(0x2494),'nolimit':!![]},'permissions':{'section':0x321}}],'fields':[{'title':_0x3eaaa2(0x285e),'name':_0x3eaaa2(0x1e4e),'type':_0x3eaaa2(0x26e8),'values':_0x3eaaa2(0x1c06),'value':_0x3eaaa2(0x5ca),'option':'queue.name','defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x3eaaa2(0x66e),'name':_0x3eaaa2(0x16d),'type':_0x3eaaa2(0x2113),'max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':'agent','appType':_0x3eaaa2(0x11ae),'type':_0x3eaaa2(0x11ae),'foreignKey':_0x3eaaa2(0x246c),'icon':_0x3eaaa2(0xd46),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x3eaaa2(0xd77),'field':{'name':_0x3eaaa2(0x11ae),'key':_0x3eaaa2(0x2494)},'route':'user','filters':{'fields':_0x3eaaa2(0x1427),'sort':'name','role':_0x3eaaa2(0x11ae),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x3eaaa2(0x12ad),'name':_0x3eaaa2(0x11ae),'type':_0x3eaaa2(0x26e8),'values':_0x3eaaa2(0xd77),'value':_0x3eaaa2(0x1ddb),'option':_0x3eaaa2(0x1ddb),'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':_0x3eaaa2(0x2113),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x3eaaa2(0x21a9),'appType':_0x3eaaa2(0x21a9),'type':'autoreply','icon':_0x3eaaa2(0xd46),'interval':_0x3eaaa2(0x2145),'isApp':!![],'fields':[{'title':_0x3eaaa2(0x95f),'name':_0x3eaaa2(0x95f),'type':_0x3eaaa2(0x2926),'defaultValue':'1','values':[{'option':_0x3eaaa2(0x1abb),'value':'1'},{'option':_0x3eaaa2(0xfdd),'value':'0'}],'required':!![],'param':0x0},{'title':_0x3eaaa2(0x1378),'name':_0x3eaaa2(0x39b),'type':_0x3eaaa2(0x1e3c),'required':!![],'param':0x1}]},{'app':'close','appType':_0x3eaaa2(0x67b),'type':_0x3eaaa2(0x67b),'icon':_0x3eaaa2(0xd46),'interval':_0x3eaaa2(0x2145),'isApp':!![],'fields':[{'title':'Disposition','name':_0x3eaaa2(0x168b),'type':_0x3eaaa2(0x39b),'required':!![],'param':0x0}]},{'app':_0x3eaaa2(0xac8),'appType':_0x3eaaa2(0xac8),'type':_0x3eaaa2(0xac8),'foreignKey':_0x3eaaa2(0x923),'icon':_0x3eaaa2(0xd46),'interval':_0x3eaaa2(0x2145),'isApp':!![],'extraApi':[{'name':_0x3eaaa2(0x16a6),'field':{'name':_0x3eaaa2(0xac8),'key':_0x3eaaa2(0x2494)},'route':_0x3eaaa2(0xac8),'filters':{'fields':'id,name','sort':_0x3eaaa2(0x2494),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x3eaaa2(0x1e9f),'name':_0x3eaaa2(0xac8),'type':_0x3eaaa2(0x26e8),'values':_0x3eaaa2(0x16a6),'value':_0x3eaaa2(0xcef),'option':_0x3eaaa2(0xcef),'required':!![],'param':0x0}]}],[_0x3eaaa2(0x16e1)]),{'isApp':![]}),_0x55cb21[_0x3eaaa2(0x2764)]={'group':{'name':'opt1','pull':'clone'},'animation':0x64,'sort':![]},_0x55cb21[_0x3eaaa2(0x221f)]={'group':{'name':_0x3eaaa2(0x3a8),'put':_0x3eaaa2(0x7f2)},'animation':0x64,'onAdd':function(_0x48508d){_0x4446ad(_0x48508d,_0x48508d['newIndex']);},'onSort':function(){_0xa8c408();}},_0x55cb21[_0x3eaaa2(0x2354)]=_0xae168d,_0x55cb21[_0x3eaaa2(0x217e)]=_0x29d6a0,_0x55cb21['getOpenchannelAccountApps']=_0x17d5b3,_0x55cb21[_0x3eaaa2(0x1adc)]=_0x4446ad,_0x55cb21['editInterval']=_0x16c36f,_0x55cb21[_0x3eaaa2(0x27c0)]=_0xfe169f,_0x55cb21['deleteSelectedOpenchannelAccountApps']=_0x699a52,_0x55cb21[_0x3eaaa2(0x14d0)]=_0xa8c408,_0x55cb21[_0x3eaaa2(0x1039)]=_0x78fa1;function _0xae168d(_0x458419,_0x3b5956){const _0x45013b=_0x3eaaa2;_0x55cb21[_0x45013b(0x880)]=_0x458419,_0x55cb21['crudPermissions']=typeof _0x3b5956!==_0x45013b(0x19a1)?_0x3b5956:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x55cb21[_0x45013b(0x221f)][_0x45013b(0x1a95)]=!_0x55cb21['crudPermissions'][_0x45013b(0xd86)]?!![]:![],_0x55cb21[_0x45013b(0x289a)]['id']=_0x458419['id'],_0x55cb21[_0x45013b(0x289a)][_0x45013b(0x210d)]=!![],_0x55cb21[_0x45013b(0x289a)][_0x45013b(0x13d8)]=!![],_0x55cb21[_0x45013b(0x11cc)](),_0x55cb21[_0x45013b(0x1039)]();}function _0x29d6a0(_0x299d3f,_0x1a61a5,_0x3ece38){const _0x4c5acc=_0x3eaaa2,_0x2afdb3=_0x7690c9[_0x4c5acc(0x856)]()[_0x4c5acc(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')['htmlContent'](_0x4c5acc(0x50b)+_0x299d3f['app']+_0x4c5acc(0x26d0)+_0x4c5acc(0x4b8))[_0x4c5acc(0x213e)]('delete\x20application')[_0x4c5acc(0x2283)](_0x3ece38)['ok']('OK')[_0x4c5acc(0x101a)](_0x4c5acc(0x18fd));_0x7690c9[_0x4c5acc(0xa60)](_0x2afdb3)[_0x4c5acc(0x64a)](function(){const _0x5a7b65=_0x4c5acc;_0x55cb21['openchannelAccountApps'][_0x5a7b65(0x28b8)]['splice'](_0x1a61a5,0x1),_0xa8c408();},function(){const _0x41294f=_0x4c5acc;console[_0x41294f(0x9b4)](_0x41294f(0x18fd));});}function _0x4446ad(_0x45d25d,_0x39e8b2){const _0x36552e=_0x3eaaa2;if(_0x55cb21[_0x36552e(0x10dc)][_0x36552e(0x28b8)][_0x36552e(0x1b9e)]){const _0xcb242b=_0x55cb21[_0x36552e(0x10dc)][_0x36552e(0x28b8)][_0x39e8b2]?_0x55cb21['openchannelAccountApps'][_0x36552e(0x28b8)][_0x39e8b2]:_0x55cb21[_0x36552e(0x10dc)][_0x36552e(0x28b8)][0x0],_0x368dbe=(_0xcb242b[_0x36552e(0x4f4)]||_0xcb242b[_0x36552e(0x16e1)])['toLowerCase']();_0x7690c9[_0x36552e(0xa60)]({'controller':_0x36552e(0x1700)+_0x368dbe+_0x36552e(0x1528),'controllerAs':'vm','templateUrl':_0x369a09[_0x368dbe],'parent':angular['element'](_0x8bb8df[_0x36552e(0xb49)]),'targetEvent':_0x45d25d,'clickOutsideToClose':!![],'locals':{'openchannelAccountApp':_0xcb242b,'openchannelAccount':_0x55cb21['openchannelAccount'],'crudPermissions':_0x55cb21[_0x36552e(0x402)]}})[_0x36552e(0x64a)](function(_0xbf341d){const _0x1b2cd1=_0x36552e;_0xbf341d&&(_0xbf341d['id']?_0x55cb21['openchannelAccountApps'][_0x1b2cd1(0x28b8)][_0x39e8b2]=_0xbf341d:_0x55cb21[_0x1b2cd1(0x10dc)][_0x1b2cd1(0x28b8)]['splice'](_0x39e8b2,0x0,_0xbf341d),_0xa8c408());})['catch'](function(_0x46599c){const _0x12191c=_0x36552e;_0x46599c&&_0x1daf90[_0x12191c(0x1bd0)]({'title':_0x46599c[_0x12191c(0x10b3)]?_0x12191c(0x575)+_0x46599c[_0x12191c(0x10b3)]+_0x12191c(0x21db)+_0x46599c[_0x12191c(0x2115)]:'SYSTEM:EDITMODALSHOW','msg':_0x46599c[_0x12191c(0x1c52)]?JSON[_0x12191c(0x2317)](_0x46599c[_0x12191c(0x1c52)]):_0x46599c['toString']()});});}}function _0x16c36f(_0x5b59db,_0x52ed57){const _0x6efe0e=_0x3eaaa2;if(_0x55cb21[_0x6efe0e(0x10dc)][_0x6efe0e(0x28b8)][_0x6efe0e(0x1b9e)]){const _0x301f45=_0x55cb21[_0x6efe0e(0x10dc)]['rows'][_0x52ed57]?_0x55cb21[_0x6efe0e(0x10dc)]['rows'][_0x52ed57]:_0x55cb21[_0x6efe0e(0x10dc)][_0x6efe0e(0x28b8)][0x0];_0x7690c9[_0x6efe0e(0xa60)]({'controller':'EditOpenchannelAccountAppintervalDialogController','controllerAs':'vm','templateUrl':_0x4ad8a3,'parent':angular[_0x6efe0e(0x1f81)](_0x8bb8df[_0x6efe0e(0xb49)]),'targetEvent':_0x5b59db,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x301f45['interval'],'IntervalId':_0x301f45['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x55cb21['crudPermissions']}})['then'](function(_0x951327){const _0x5346ef=_0x6efe0e;_0x951327&&(_0x301f45[_0x5346ef(0xcfd)]=_0x951327[_0x5346ef(0xcfd)]||_0x5346ef(0x2145),_0x301f45[_0x5346ef(0xb71)]=_0x951327[_0x5346ef(0xb71)]||null,_0xa8c408());});}}function _0xa8c408(){const _0x5f361d=_0x3eaaa2;let _0x27689d=0x1,_0x134899=[];for(let _0x1d46a9=0x0;_0x1d46a9<_0x55cb21[_0x5f361d(0x10dc)][_0x5f361d(0x28b8)]['length'];_0x1d46a9++){const _0x5c3808=_0x55cb21[_0x5f361d(0x10dc)][_0x5f361d(0x28b8)][_0x1d46a9],_0x14a28a=[],_0x1ee3b6=[];_0x5c3808[_0x5f361d(0x15e4)]=_0x5c3808[_0x5f361d(0xcfd)]!==_0x5f361d(0x2145)?[_0x5c3808[_0x5f361d(0xcfd)]]:_0x5c3808[_0x5f361d(0xb71)]?_0x28c606()[_0x5f361d(0x1de5)](_0x28c606()['filter'](_0x55cb21[_0x5f361d(0x15e4)][_0x5f361d(0x28b8)],{'IntervalId':_0x5c3808['IntervalId']}),_0x5f361d(0xcfd)):[],_0x5c3808['context']=_0x55cb21[_0x5f361d(0x880)][_0x5f361d(0x139)],_0x5c3808[_0x5f361d(0x19c8)]=_0x55cb21[_0x5f361d(0x880)][_0x5f361d(0x19c8)],_0x5c3808['type']&&(_0x5c3808[_0x5f361d(0x2185)]=_0x5c3808[_0x5f361d(0x2185)][_0x5f361d(0x2554)]()),_0x5c3808['priority']=_0x14a28a[_0x5f361d(0x1b9e)]?_0x28c606()[_0x5f361d(0xe62)](_0x14a28a)[_0x5f361d(0x1095)]+0x1:_0x27689d,_0x27689d=(_0x1ee3b6['length']?_0x28c606()[_0x5f361d(0xe62)](_0x1ee3b6)[_0x5f361d(0x1095)]:_0x5c3808[_0x5f361d(0x1095)])+0x1,_0x134899=_0x28c606()[_0x5f361d(0x2808)](_0x134899,_0x14a28a,[_0x5c3808],_0x1ee3b6);}_0x452310[_0x5f361d(0x880)][_0x5f361d(0x1c5d)]({'id':_0x55cb21[_0x5f361d(0x880)]['id']},_0x28c606()[_0x5f361d(0x1643)](_0x134899,'priority'))[_0x5f361d(0x15e7)]['then'](function(_0x3a456f){const _0x28faa0=_0x5f361d;_0x55cb21['openchannelAccountApps'][_0x28faa0(0x28b8)]=_0x3a456f['rows'];})[_0x5f361d(0x20cd)](function(_0x4dba78){console['error'](_0x4dba78);});}function _0x2711ef(_0x2e1a9b){const _0x4d3628=_0x3eaaa2;_0x55cb21[_0x4d3628(0x10dc)]=_0x2e1a9b||{'count':0x0,'rows':[]};}function _0x78fa1(){const _0x2873c4=_0x3eaaa2;return _0x452310[_0x2873c4(0xcfd)][_0x2873c4(0x896)]({'fields':_0x2873c4(0x1aa)})[_0x2873c4(0x15e7)][_0x2873c4(0x64a)](function(_0x51067f){const _0x31d123=_0x2873c4;_0x55cb21[_0x31d123(0x15e4)]=_0x51067f;})[_0x2873c4(0x20cd)](function(_0xd2d423){console['error'](_0xd2d423);});}function _0x17d5b3(){const _0x272af1=_0x3eaaa2;_0x55cb21[_0x272af1(0x1713)]=_0x452310[_0x272af1(0x880)][_0x272af1(0x42f)](_0x55cb21[_0x272af1(0x289a)],_0x2711ef)['$promise'];}function _0xfe169f(_0x489519){const _0x542bc3=_0x3eaaa2;_0x28c606()[_0x542bc3(0x21c7)](_0x55cb21[_0x542bc3(0x10dc)]['rows'],{'id':_0x489519['id']}),_0xa8c408(),_0x1daf90[_0x542bc3(0x1339)]({'title':_0x542bc3(0x2166),'msg':_0x489519[_0x542bc3(0x16e1)]?_0x489519[_0x542bc3(0x16e1)]+_0x542bc3(0x1fa8):''});}function _0x699a52(_0x2f488b){const _0x1ea846=_0x3eaaa2,_0x5d4596=_0x7690c9[_0x1ea846(0x856)]()[_0x1ea846(0x2021)](_0x1ea846(0x150d))['htmlContent'](_0x1ea846(0x50b)+_0x55cb21[_0x1ea846(0xc35)][_0x1ea846(0x1b9e)]+_0x1ea846(0x163e)+'\x20will\x20be\x20deleted.')[_0x1ea846(0x213e)](_0x1ea846(0x2180))['targetEvent'](_0x2f488b)['ok']('OK')[_0x1ea846(0x101a)](_0x1ea846(0x18fd));_0x7690c9['show'](_0x5d4596)[_0x1ea846(0x64a)](function(){const _0x132b3e=_0x1ea846;_0x55cb21['selectedOpenchannelAccountApps'][_0x132b3e(0x1397)](function(_0x3d1958){const _0x545f75=_0x132b3e;_0x28c606()['remove'](_0x55cb21[_0x545f75(0x10dc)]['rows'],{'id':_0x3d1958['id']});}),_0x55cb21[_0x132b3e(0xc35)]=[],_0xa8c408();});}}const _0x2234bf=_0x566bd6;;_0x130216[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa19),'openchannelAccount',_0x49a1e3(0xda9),'realtime',_0x49a1e3(0x298c),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x130216(_0x5974d1,_0x90fa47,_0x325d86,_0x57ff0a,_0x4dcbd1,_0x14f3aa,_0x4bf239,_0x6d978,_0x2e0261,_0x2d6571){const _0x183796=_0x49a1e3,_0x4c345f=this;_0x4c345f['currentUser']=_0x2e0261[_0x183796(0x808)](),_0x4c345f[_0x183796(0x880)]=_0x4dcbd1,_0x4c345f[_0x183796(0x402)]=_0x2d6571,_0x4c345f[_0x183796(0x252e)]=_0x4bf239,_0x4c345f[_0x183796(0x23cb)]=[],_0x4c345f['allowedItems']=[],_0x4c345f['selectedItems']=[],_0x4c345f[_0x183796(0x206b)]=[],_0x4c345f[_0x183796(0x24e1)]=[],_0x4c345f['pendingChanges']=![],_0x4c345f[_0x183796(0x2483)]=_0x1685f3,_0x4c345f[_0x183796(0x4c4)]=_0x350701,_0x4c345f[_0x183796(0x16cb)]=_0x54a595,_0x4c345f['dualMultiselectOptions']={'readOnly':!_0x4c345f[_0x183796(0x402)]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x183796(0x2494),'line1':'fullname','line2':[_0x183796(0x2494),_0x183796(0xe2f)],'line3':'','labelAll':_0x6d978[_0x183796(0x2292)](_0x183796(0x1da4)),'labelSelected':_0x6d978['instant'](_0x183796(0xcf8)),'transferCallback':function(){const _0x399e87=_0x183796,_0x16d18f=_0x28c606()['xorBy'](_0x4c345f['startingSelectedItems'],_0x4c345f[_0x399e87(0x1f4f)],'id');_0x4c345f[_0x399e87(0xe9e)]=_0x28c606()[_0x399e87(0x940)](_0x16d18f)?![]:!![];}};function _0x1685f3(){const _0x1db990=_0x183796;return _0x2e0261[_0x1db990(0x4de)]('admin')?_0x2b3b23()[_0x1db990(0x20cd)](function(_0x4fde89){const _0x886d9a=_0x1db990;_0x325d86[_0x886d9a(0x1bd0)]({'title':_0x4fde89[_0x886d9a(0x10b3)]?_0x886d9a(0x575)+_0x4fde89[_0x886d9a(0x10b3)]+'\x20-\x20'+_0x4fde89[_0x886d9a(0x2115)]:_0x886d9a(0x554),'msg':_0x4fde89[_0x886d9a(0x10b3)]?JSON['stringify'](_0x4fde89[_0x886d9a(0x1c52)]):_0x4fde89[_0x886d9a(0x2915)]()});}):_0x1902b7()[_0x1db990(0x64a)](function(_0x340ec2){const _0xc06870=_0x1db990;return _0x4c345f[_0xc06870(0xa21)]=_0x340ec2,_0x2b3b23();})[_0x1db990(0x20cd)](function(_0x38ee8e){const _0x35ac61=_0x1db990;_0x325d86['error']({'title':_0x38ee8e[_0x35ac61(0x10b3)]?'API:'+_0x38ee8e[_0x35ac61(0x10b3)]+_0x35ac61(0x21db)+_0x38ee8e[_0x35ac61(0x2115)]:_0x35ac61(0x554),'msg':_0x38ee8e['status']?JSON[_0x35ac61(0x2317)](_0x38ee8e[_0x35ac61(0x1c52)]):_0x38ee8e['toString']()});});}function _0x1902b7(){return _0x90fa47(function(_0x5656a4,_0x125d27){const _0x48479e=a0_0x4127;_0x57ff0a[_0x48479e(0x16b2)][_0x48479e(0x896)]({'userProfileId':_0x4c345f['currentUser']['userProfileId'],'name':_0x48479e(0x2132)})[_0x48479e(0x15e7)][_0x48479e(0x64a)](function(_0x254598){const _0x3477ff=_0x48479e,_0x2d5a48=_0x254598&&_0x254598[_0x3477ff(0x28b8)]?_0x254598[_0x3477ff(0x28b8)][0x0]:null;_0x5656a4(_0x2d5a48);})[_0x48479e(0x20cd)](function(_0x1be454){_0x125d27(_0x1be454);});});}function _0x2b3b23(){return _0x90fa47(function(_0x1b4766,_0x3356f4){const _0x8878de=a0_0x4127;return _0x18a3f2()[_0x8878de(0x64a)](function(_0x41f45b){const _0x5d6cdc=_0x8878de;return _0x4c345f[_0x5d6cdc(0x23cb)]=_0x41f45b['rows']?_0x41f45b[_0x5d6cdc(0x28b8)]:[],_0x2e0261[_0x5d6cdc(0x4de)]('admin')?_0x41f45b:_0x4c345f[_0x5d6cdc(0xa21)]?_0x4c345f[_0x5d6cdc(0xa21)][_0x5d6cdc(0x11da)]?_0x41f45b:_0x1d3c5b():null;})[_0x8878de(0x64a)](function(_0x5a95eb){const _0x491705=_0x8878de,_0x45db9b=_0x5a95eb&&_0x5a95eb[_0x491705(0x28b8)]?_0x5a95eb[_0x491705(0x28b8)]:[];return _0x4c345f[_0x491705(0x13d1)]=_0x28c606()['map'](_0x45db9b,function(_0x472a07){const _0x435cbe=_0x491705;return _0x28c606()[_0x435cbe(0x27bc)](_0x4c345f[_0x435cbe(0x23cb)],{'id':_0x2e0261['hasRole'](_0x435cbe(0x333))||_0x4c345f[_0x435cbe(0xa21)]['autoAssociation']?_0x472a07['id']:_0x472a07[_0x435cbe(0x145)]});}),_0x4c345f[_0x491705(0x206b)]=angular['copy'](_0x4c345f[_0x491705(0x13d1)]),_0x4c345f['items'][_0x491705(0x1397)](function(_0x1fc4e2){const _0x449404=_0x491705,_0x10638f=_0x28c606()[_0x449404(0x27bc)](_0x4c345f[_0x449404(0x13d1)],{'id':_0x1fc4e2['id']});_0x2e0261[_0x449404(0x4de)](_0x449404(0x333))?_0x1fc4e2[_0x449404(0x6f9)]=!![]:_0x1fc4e2[_0x449404(0x6f9)]=typeof _0x10638f!=='undefined'?!![]:![];}),_0x3b3c8d();})[_0x8878de(0x64a)](function(_0x11cd7f){const _0x5274cc=_0x8878de,_0x2172bc=_0x11cd7f&&_0x11cd7f[_0x5274cc(0x28b8)]?_0x11cd7f['rows']:[];_0x4c345f[_0x5274cc(0x1f4f)]=_0x28c606()[_0x5274cc(0x1de5)](_0x2172bc,function(_0x1d93e4){const _0x45b634=_0x5274cc,_0x401c30=_0x28c606()['find'](_0x4c345f[_0x45b634(0x23cb)],{'id':_0x1d93e4['id']});return _0x401c30[_0x45b634(0x70f)]=_0x1d93e4[_0x45b634(0x1117)]?_0x45b634(0xcff)+_0x1d93e4[_0x45b634(0x1117)]['penalty']:'',_0x401c30[_0x45b634(0xe2f)]=typeof _0x1d93e4[_0x45b634(0xe2f)]!==_0x45b634(0x19a1)?'<'+_0x1d93e4[_0x45b634(0xe2f)]+'>':'',_0x401c30;}),_0x4c345f[_0x5274cc(0x24e1)]=angular[_0x5274cc(0x289e)](_0x4c345f[_0x5274cc(0x1f4f)]),_0x4c345f[_0x5274cc(0x1eeb)][_0x5274cc(0x1f4f)]=_0x4c345f[_0x5274cc(0x1f4f)],_0x4c345f[_0x5274cc(0x1eeb)][_0x5274cc(0x23cb)]=_0x28c606()[_0x5274cc(0x23e5)](_0x4c345f[_0x5274cc(0x13d1)],_0x4c345f[_0x5274cc(0x1eeb)][_0x5274cc(0x1f4f)],'id'),_0x1b4766();})[_0x8878de(0x20cd)](function(_0x14ca0e){_0x3356f4(_0x14ca0e);});});}function _0x1d3c5b(){return _0x90fa47(function(_0x372121,_0x201f8b){const _0x17824f=a0_0x4127;return _0x57ff0a[_0x17824f(0x1617)][_0x17824f(0x896)]({'sectionId':_0x4c345f[_0x17824f(0xa21)]['id'],'nolimit':!![]})[_0x17824f(0x15e7)]['then'](function(_0x536f9c){_0x372121(_0x536f9c);})['catch'](function(_0x2826dc){_0x201f8b(_0x2826dc);});});}function _0x3b3c8d(){return _0x90fa47(function(_0x5edfd8,_0x512d14){const _0x1e4899=a0_0x4127;return _0x57ff0a[_0x1e4899(0x880)][_0x1e4899(0xa10)]({'id':_0x4c345f[_0x1e4899(0x880)]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x1e4899(0x11ae)})[_0x1e4899(0x15e7)][_0x1e4899(0x64a)](function(_0x9a2923){_0x5edfd8(_0x9a2923);})[_0x1e4899(0x20cd)](function(_0xb7e94){_0x512d14(_0xb7e94);});});}function _0x18a3f2(){return _0x90fa47(function(_0x32ff55,_0x4ac023){const _0x260f6c=a0_0x4127;return _0x57ff0a[_0x260f6c(0x2e8)]['get']({'fields':_0x260f6c(0x2105),'nolimit':!![],'role':_0x260f6c(0x11ae)})[_0x260f6c(0x15e7)][_0x260f6c(0x64a)](function(_0x453e02){_0x32ff55(_0x453e02);})[_0x260f6c(0x20cd)](function(_0x380c7e){_0x4ac023(_0x380c7e);});});}function _0x2fccc7(_0x1142e4){return _0x90fa47(function(_0x4d37c9,_0x2a6d5e){const _0x511838=a0_0x4127;_0x28c606()[_0x511838(0x940)](_0x1142e4)?_0x4d37c9():_0x57ff0a['openchannelAccount'][_0x511838(0x1575)]({'id':_0x4c345f['openchannelAccount']['id'],'ids':_0x28c606()['map'](_0x1142e4,'id')})[_0x511838(0x15e7)][_0x511838(0x64a)](function(){_0x4d37c9();})[_0x511838(0x20cd)](function(_0x14260b){_0x2a6d5e(_0x14260b);});});}function _0x2de485(_0x1da5a6){return _0x90fa47(function(_0xe21e6d,_0x312303){const _0x552c3d=a0_0x4127;_0x28c606()[_0x552c3d(0x940)](_0x1da5a6)?_0xe21e6d():_0x57ff0a[_0x552c3d(0x880)][_0x552c3d(0x251d)]({'id':_0x4c345f[_0x552c3d(0x880)]['id'],'ids':_0x28c606()[_0x552c3d(0x1de5)](_0x1da5a6,'id')})['$promise'][_0x552c3d(0x64a)](function(){_0xe21e6d();})[_0x552c3d(0x20cd)](function(_0x1fa6f5){_0x312303(_0x1fa6f5);});});}function _0x350701(){const _0x1f7a3d=_0x183796,_0x302a6f=_0x28c606()[_0x1f7a3d(0x23e5)](_0x4c345f[_0x1f7a3d(0x24e1)],_0x4c345f[_0x1f7a3d(0x1f4f)],'id'),_0x231e15=_0x28c606()[_0x1f7a3d(0x23e5)](_0x4c345f['selectedItems'],_0x4c345f['startingSelectedItems'],'id');return _0x2de485(_0x302a6f)['then'](function(){return _0x2fccc7(_0x231e15);})[_0x1f7a3d(0x64a)](function(){const _0x1df179=_0x1f7a3d;_0x4c345f[_0x1df179(0xe9e)]=![],_0x4c345f[_0x1df179(0x206b)]=angular['copy'](_0x4c345f[_0x1df179(0x13d1)]),_0x4c345f['startingSelectedItems']=angular['copy'](_0x4c345f[_0x1df179(0x1f4f)]),_0x325d86[_0x1df179(0x1339)]({'title':_0x1df179(0x24d6),'msg':_0x1df179(0x1db)});})[_0x1f7a3d(0x20cd)](function(_0x5dd6e0){const _0x5aada1=_0x1f7a3d;_0x325d86['error']({'title':_0x5dd6e0[_0x5aada1(0x10b3)]?'API:'+_0x5dd6e0[_0x5aada1(0x10b3)]+_0x5aada1(0x21db)+_0x5dd6e0[_0x5aada1(0x2115)]:_0x5aada1(0x1226),'msg':_0x5dd6e0['status']?JSON[_0x5aada1(0x2317)](_0x5dd6e0['data']):_0x5dd6e0[_0x5aada1(0x2915)]()});});}function _0x54a595(){const _0x339778=_0x183796;_0x5974d1[_0x339778(0x268e)]();}}const _0x6582a4=_0x130216;;_0x58ed50[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x10d4),_0x49a1e3(0x880),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x58ed50(_0x4874ce,_0x3d14c3,_0x1723b8,_0x3d94e4,_0x4ba54f,_0x20166a,_0x5593c7,_0x52fb20){const _0x318f52=_0x49a1e3,_0x1eafbf=this;_0x1eafbf[_0x318f52(0x1d3d)]=_0x5593c7['getCurrentUser'](),_0x1eafbf[_0x318f52(0xbae)]=[],_0x1eafbf['title']=_0x318f52(0x9d5)+(_0x3d94e4[_0x318f52(0x4f4)]||_0x3d94e4[_0x318f52(0x16e1)])[_0x318f52(0xa3c)](),_0x1eafbf[_0x318f52(0x11ae)]=angular[_0x318f52(0x289e)](_0x3d94e4),_0x1eafbf[_0x318f52(0x402)]=_0x52fb20,_0x1eafbf[_0x318f52(0x6c2)]={};if(_0x1eafbf[_0x318f52(0x11ae)]['appdata'])switch(_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x4f4)]?_0x1eafbf['agent'][_0x318f52(0x4f4)][_0x318f52(0x2554)]():_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x16e1)][_0x318f52(0x2554)]()){case _0x318f52(0x1ad6):break;case _0x318f52(0x1084):{const _0x2f530e=_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0xacb)][_0x318f52(0x282c)](',');_0x1eafbf[_0x318f52(0x11ae)]['key']=_0x2f530e[0x0],_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x1cbd)]=_0x2f530e[0x1],_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x31b)]=_0x2f530e[_0x318f52(0x142e)](0x2,_0x2f530e[_0x318f52(0x1b9e)])[_0x318f52(0x9a6)](',');}break;case _0x318f52(0x1b1a):{const _0x29f834=_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0xacb)]['split'](',');_0x1eafbf[_0x318f52(0x11ae)]['projectId']=_0x29f834[0x0],_0x1eafbf['agent'][_0x318f52(0x4b2)]=_0x29f834[0x1],_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x1b1b)]=_0x29f834[0x2],_0x1eafbf['agent']['language']=_0x29f834[0x3],_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x31b)]=_0x29f834['slice'](0x4,_0x29f834[_0x318f52(0x1b9e)])[_0x318f52(0x9a6)](',');}break;case'amazonlex':{const _0x5021d6=_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0xacb)][_0x318f52(0x282c)](',');_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x1466)]=_0x5021d6[0x0],_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x1b1)]=_0x5021d6[0x1],_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x17a2)]=_0x5021d6[0x2],_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x2797)]=_0x5021d6[0x3],_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x31b)]=_0x5021d6[_0x318f52(0x142e)](0x4,_0x5021d6['length'])[_0x318f52(0x9a6)](',');}break;case'autoreply':{const _0x37d748=_0x1eafbf['agent'][_0x318f52(0xacb)][_0x318f52(0x282c)](',');_0x1eafbf['agent'][_0x318f52(0x95f)]=isNaN(_0x37d748[0x0])?_0x37d748[0x0]:parseInt(_0x37d748[0x0],0xa),_0x1eafbf[_0x318f52(0x11ae)]['text']=_0x37d748[_0x318f52(0x142e)](0x1,_0x37d748['length'])[_0x318f52(0x9a6)](',');}break;case _0x318f52(0x18ca):_0x1eafbf[_0x318f52(0x11ae)]['text']=_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0xacb)];break;case _0x318f52(0x1979):_0x1eafbf['agent']['name']=_0x1eafbf['agent'][_0x318f52(0xacb)][_0x318f52(0x282c)]('=')[0x0],_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x1096)]=_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0xacb)][_0x318f52(0x282c)]('=')[0x1];break;case _0x318f52(0x1e67):_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x1bd9)]=_0x1eafbf['agent'][_0x318f52(0xacb)];break;default:{const _0x4dfb34=_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0xacb)][_0x318f52(0x282c)](',');_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x11ae)]=_0x28c606()[_0x318f52(0x940)](_0x4dfb34[0x0])?_0x4dfb34[0x0]:isNaN(_0x4dfb34[0x0])?_0x4dfb34[0x0]:parseInt(_0x4dfb34[0x0],0xa),_0x1eafbf[_0x318f52(0x11ae)]['timeout']=_0x28c606()['isEmpty'](_0x4dfb34[0x1])?_0x4dfb34[0x1]:isNaN(_0x4dfb34[0x1])?_0x4dfb34[0x1]:parseInt(_0x4dfb34[0x1],0xa);}break;}else _0x1eafbf[_0x318f52(0x11ae)]['timeout']=0x1e;_0x1eafbf['agent'][_0x318f52(0x2185)]&&_0x1eafbf[_0x318f52(0x11ae)]['type'][_0x318f52(0x2554)]()==='outbound'&&_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x4f4)][_0x318f52(0x2554)]()===_0x318f52(0x20eb)&&(_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x2524)]=_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x267a)]?_0x1eafbf[_0x318f52(0x11ae)]['phone'][_0x318f52(0x282c)]('$')[0x0]:undefined,_0x1eafbf[_0x318f52(0x11ae)][_0x318f52(0x1a9b)]=_0x1eafbf['agent']['callerID']?_0x318f52(0x2489)+_0x1eafbf[_0x318f52(0x11ae)]['callerID']:undefined);_0x1eafbf[_0x318f52(0x1ad3)]=_0x27ca71,_0x1eafbf['closeDialog']=_0x61adc5,_0x5593c7[_0x318f52(0x4de)]('admin')?_0x20166a[_0x318f52(0x2e8)][_0x318f52(0x896)]({'fields':_0x318f52(0x1427),'sort':'name','role':_0x318f52(0x11ae),'nolimit':_0x318f52(0x1685)})[_0x318f52(0x15e7)][_0x318f52(0x64a)](function(_0x185639){const _0x13063d=_0x318f52;_0x1eafbf['agents']=_0x185639[_0x13063d(0x28b8)]||[];})['catch'](function(_0x40e4b8){const _0x4f3772=_0x318f52;_0x1723b8[_0x4f3772(0x1bd0)]({'title':_0x40e4b8[_0x4f3772(0x10b3)]?'API:'+_0x40e4b8[_0x4f3772(0x10b3)]+_0x4f3772(0x21db)+_0x40e4b8[_0x4f3772(0x2115)]:_0x4f3772(0x554),'msg':_0x40e4b8[_0x4f3772(0x1c52)]?JSON[_0x4f3772(0x2317)](_0x40e4b8[_0x4f3772(0x1c52)]):_0x40e4b8[_0x4f3772(0x2915)]()});}):_0x20166a[_0x318f52(0x2e8)][_0x318f52(0x896)]({'fields':_0x318f52(0x1427),'sort':'name','role':_0x318f52(0x11ae),'nolimit':_0x318f52(0x1685)})[_0x318f52(0x15e7)][_0x318f52(0x64a)](function(_0x2884c7){const _0x3512f1=_0x318f52;_0x1eafbf['agents']=_0x2884c7[_0x3512f1(0x28b8)]||[];})[_0x318f52(0x64a)](function(){const _0x712160=_0x318f52;return _0x20166a[_0x712160(0x16b2)]['get']({'userProfileId':_0x1eafbf['currentUser'][_0x712160(0x21ac)],'sectionId':0xca})[_0x712160(0x15e7)];})[_0x318f52(0x64a)](function(_0x2f2435){const _0x319883=_0x318f52,_0x762fb5=_0x2f2435&&_0x2f2435[_0x319883(0x28b8)]?_0x2f2435[_0x319883(0x28b8)][0x0]:null;if(!_0x762fb5){const _0x1505e9=[];let _0x22b025=null;_0x1eafbf[_0x319883(0x11ae)]&&(_0x22b025=_0x28c606()[_0x319883(0x27bc)](_0x1eafbf[_0x319883(0xd77)],{'name':_0x1eafbf[_0x319883(0x11ae)][_0x319883(0x11ae)]}));for(let _0xa9aee=0x0;_0xa9aee<_0x1eafbf['agents'][_0x319883(0x1b9e)];_0xa9aee++){_0x22b025&&_0x1eafbf['agents'][_0xa9aee]['id']===_0x22b025['id']&&(_0x1eafbf[_0x319883(0xd77)][_0xa9aee][_0x319883(0xd4f)]=![],_0x1505e9[_0x319883(0x1954)](_0x1eafbf['agents'][_0xa9aee]));}_0x1eafbf['agents']=_0x1505e9;}else{if(!_0x762fb5[_0x319883(0x11da)])return _0x20166a[_0x319883(0x1617)][_0x319883(0x896)]({'sectionId':_0x762fb5['id']})[_0x319883(0x15e7)][_0x319883(0x64a)](function(_0x1996f0){const _0x2e5a1d=_0x319883,_0x55ca6c=_0x28c606()['map'](_0x1996f0[_0x2e5a1d(0x28b8)],function(_0x2924b3){const _0x5e8b16=_0x2e5a1d;return _0x28c606()['find'](_0x1eafbf[_0x5e8b16(0xd77)],{'id':_0x2924b3[_0x5e8b16(0x145)]});});let _0x3135f8=null;_0x1eafbf[_0x2e5a1d(0x11ae)]&&(_0x3135f8=_0x28c606()['find'](_0x1eafbf[_0x2e5a1d(0xd77)],{'name':_0x1eafbf[_0x2e5a1d(0x11ae)][_0x2e5a1d(0x11ae)]}));if(_0x3135f8&&!_0x28c606()[_0x2e5a1d(0x25f8)](_0x55ca6c,['id',_0x3135f8['id']])){const _0xd676d7=_0x28c606()[_0x2e5a1d(0x27bc)](_0x1eafbf[_0x2e5a1d(0xd77)],{'id':_0x3135f8['id']});_0xd676d7[_0x2e5a1d(0xd4f)]=![],_0x55ca6c[_0x2e5a1d(0x1954)](_0xd676d7);}_0x1eafbf['agents']=_0x55ca6c;});}})[_0x318f52(0x20cd)](function(_0xe862bf){const _0x4e9cff=_0x318f52;_0x1723b8[_0x4e9cff(0x1bd0)]({'title':_0xe862bf[_0x4e9cff(0x10b3)]?_0x4e9cff(0x575)+_0xe862bf[_0x4e9cff(0x10b3)]+_0x4e9cff(0x21db)+_0xe862bf[_0x4e9cff(0x2115)]:_0x4e9cff(0x1ff1),'msg':_0xe862bf[_0x4e9cff(0x1c52)]?JSON[_0x4e9cff(0x2317)](_0xe862bf['data']):_0xe862bf[_0x4e9cff(0x2915)]()});});function _0x27ca71(){const _0x15f37d=_0x318f52;_0x1eafbf[_0x15f37d(0xbae)]=[];const _0xf35937=[];_0x1eafbf[_0x15f37d(0x11ae)][_0x15f37d(0x2185)]&&_0x1eafbf[_0x15f37d(0x11ae)][_0x15f37d(0x2185)][_0x15f37d(0x2554)]()===_0x15f37d(0xbce)&&_0x1eafbf[_0x15f37d(0x11ae)][_0x15f37d(0x4f4)]===_0x15f37d(0x17b6)&&(_0x1eafbf[_0x15f37d(0x11ae)][_0x15f37d(0x267a)]=_0x4ba54f[_0x15f37d(0x242b)]?(_0x1eafbf[_0x15f37d(0x11ae)]['prefix']||'')+'${EXTEN:'+_0x4ba54f[_0x15f37d(0x242b)]+'}':(_0x1eafbf['agent'][_0x15f37d(0x2524)]||'')+'${EXTEN}',_0x4ba54f[_0x15f37d(0x1097)]!==_0x15f37d(0x2507)?_0x1eafbf[_0x15f37d(0x11ae)]['options'][_0x15f37d(0x1b28)](_0x15f37d(0x13e0))<0x0&&(_0x1eafbf[_0x15f37d(0x11ae)][_0x15f37d(0x59e)]+='U(xcally-mixmonitor-context)'):_0x1eafbf['agent'][_0x15f37d(0x59e)]=_0x1eafbf[_0x15f37d(0x11ae)][_0x15f37d(0x59e)][_0x15f37d(0x1353)]('U(xcally-mixmonitor-context)',''));const _0x42b7cd=_0x28c606()[_0x15f37d(0x27bc)](_0x1eafbf[_0x15f37d(0xd77)],{'name':_0x1eafbf[_0x15f37d(0x11ae)][_0x15f37d(0x11ae)]});_0x42b7cd&&(_0x1eafbf[_0x15f37d(0x11ae)][_0x15f37d(0x246c)]=_0x42b7cd['id']);if(_0x1eafbf[_0x15f37d(0x11ae)][_0x15f37d(0x4f4)]&&_0x1eafbf['agent']['appType']===_0x15f37d(0x1ad6)){}else switch((_0x1eafbf['agent'][_0x15f37d(0x16e1)]||_0x1eafbf['agent'][_0x15f37d(0x4f4)])[_0x15f37d(0x2554)]()){case'set':_0x1eafbf[_0x15f37d(0x11ae)]['appdata']=_0x1eafbf[_0x15f37d(0x11ae)][_0x15f37d(0x2494)]+'='+_0x1eafbf['agent']['value'];break;case _0x15f37d(0x1ad6):break;default:_0xf35937[0x0]=_0x1eafbf['agent'][_0x15f37d(0x11ae)],_0xf35937[0x1]=_0x1eafbf[_0x15f37d(0x11ae)][_0x15f37d(0x16d)],_0x1eafbf['agent']['appdata']=_0xf35937[_0x15f37d(0x9a6)](',');}_0x61adc5(_0x1eafbf[_0x15f37d(0x11ae)]);}function _0x61adc5(_0x12bd51){const _0x1b7cd4=_0x318f52;_0x4874ce[_0x1b7cd4(0x268e)](_0x12bd51);}}const _0x186e59=_0x58ed50;;_0x3fe45b['$inject']=['$mdDialog','$q',_0x49a1e3(0x680),_0x49a1e3(0x10d4),_0x49a1e3(0x880),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x3fe45b(_0x5a9cf7,_0x1e7c6b,_0x2b687d,_0x3172dc,_0x4f559c,_0x529638,_0x50a65c,_0x4ba28f){const _0x1f3077=_0x49a1e3,_0x771a2e=this;_0x771a2e[_0x1f3077(0x1d3d)]=_0x50a65c[_0x1f3077(0x808)](),_0x771a2e[_0x1f3077(0xbae)]=[],_0x771a2e[_0x1f3077(0x2021)]=_0x1f3077(0x9d5)+(_0x3172dc[_0x1f3077(0x4f4)]||_0x3172dc[_0x1f3077(0x16e1)])['toUpperCase'](),_0x771a2e['amazonlex']=angular['copy'](_0x3172dc),_0x771a2e[_0x1f3077(0x402)]=_0x4ba28f,_0x771a2e[_0x1f3077(0x6c2)]={};if(_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0xacb)])switch(_0x771a2e['amazonlex'][_0x1f3077(0x4f4)]?_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x4f4)][_0x1f3077(0x2554)]():_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x16e1)][_0x1f3077(0x2554)]()){case _0x1f3077(0x1ad6):break;case _0x1f3077(0x1084):{const _0x40639c=_0x771a2e['amazonlex']['appdata'][_0x1f3077(0x282c)](',');_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x2125)]=_0x40639c[0x0],_0x771a2e[_0x1f3077(0x290d)]['language']=_0x40639c[0x1],_0x771a2e[_0x1f3077(0x290d)]['welcomemessage']=_0x40639c[_0x1f3077(0x142e)](0x2,_0x40639c[_0x1f3077(0x1b9e)])[_0x1f3077(0x9a6)](',');}break;case _0x1f3077(0x1b1a):{const _0x24ad4e=_0x771a2e['amazonlex'][_0x1f3077(0xacb)][_0x1f3077(0x282c)](',');_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0xbfd)]=_0x24ad4e[0x0],_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x4b2)]=_0x24ad4e[0x1],_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x1b1b)]=_0x24ad4e[0x2],_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x1cbd)]=_0x24ad4e[0x3],_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x31b)]=_0x24ad4e[_0x1f3077(0x142e)](0x4,_0x24ad4e['length'])['join'](',');}break;case'amazonlex':{const _0x4c2ef3=_0x771a2e['amazonlex'][_0x1f3077(0xacb)][_0x1f3077(0x282c)](',');_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x1466)]=_0x4c2ef3[0x0],_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x1b1)]=_0x4c2ef3[0x1],_0x771a2e['amazonlex'][_0x1f3077(0x17a2)]=_0x4c2ef3[0x2],_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x2797)]=_0x4c2ef3[0x3],_0x771a2e[_0x1f3077(0x290d)]['welcomemessage']=_0x4c2ef3[_0x1f3077(0x142e)](0x4,_0x4c2ef3[_0x1f3077(0x1b9e)])['join'](',');}break;case _0x1f3077(0x21a9):{const _0x377d32=_0x771a2e['amazonlex'][_0x1f3077(0xacb)][_0x1f3077(0x282c)](',');_0x771a2e[_0x1f3077(0x290d)]['times']=isNaN(_0x377d32[0x0])?_0x377d32[0x0]:parseInt(_0x377d32[0x0],0xa),_0x771a2e[_0x1f3077(0x290d)]['text']=_0x377d32[_0x1f3077(0x142e)](0x1,_0x377d32[_0x1f3077(0x1b9e)])[_0x1f3077(0x9a6)](',');}break;case'message':_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x39b)]=_0x771a2e[_0x1f3077(0x290d)]['appdata'];break;case _0x1f3077(0x1979):_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x2494)]=_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0xacb)][_0x1f3077(0x282c)]('=')[0x0],_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x1096)]=_0x771a2e[_0x1f3077(0x290d)]['appdata'][_0x1f3077(0x282c)]('=')[0x1];break;case _0x1f3077(0x1e67):_0x771a2e[_0x1f3077(0x290d)]['project']=_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0xacb)];break;default:{const _0x40fd0d=_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0xacb)][_0x1f3077(0x282c)](',');_0x771a2e['amazonlex'][_0x1f3077(0x1466)]=_0x28c606()[_0x1f3077(0x940)](_0x40fd0d[0x0])?_0x40fd0d[0x0]:isNaN(_0x40fd0d[0x0])?_0x40fd0d[0x0]:parseInt(_0x40fd0d[0x0],0xa),_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x1b1)]=_0x28c606()[_0x1f3077(0x940)](_0x40fd0d[0x1])?_0x40fd0d[0x1]:isNaN(_0x40fd0d[0x1])?_0x40fd0d[0x1]:parseInt(_0x40fd0d[0x1],0xa),_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x17a2)]=_0x28c606()[_0x1f3077(0x940)](_0x40fd0d[0x2])?_0x40fd0d[0x2]:isNaN(_0x40fd0d[0x2])?_0x40fd0d[0x2]:parseInt(_0x40fd0d[0x2],0xa),_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x2797)]=_0x28c606()['isEmpty'](_0x40fd0d[0x3])?_0x40fd0d[0x3]:isNaN(_0x40fd0d[0x3])?_0x40fd0d[0x3]:parseInt(_0x40fd0d[0x3],0xa),_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x31b)]=_0x28c606()[_0x1f3077(0x940)](_0x40fd0d[0x4])?_0x40fd0d[0x4]:isNaN(_0x40fd0d[0x4])?_0x40fd0d[0x4]:parseInt(_0x40fd0d[0x4],0xa);}break;}else _0x771a2e['amazonlex'][_0x1f3077(0x17a2)]=_0x1f3077(0x211e);_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x2185)]&&_0x771a2e['amazonlex'][_0x1f3077(0x2185)][_0x1f3077(0x2554)]()===_0x1f3077(0xbce)&&_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x4f4)][_0x1f3077(0x2554)]()==='outbounddial'&&(_0x771a2e['amazonlex'][_0x1f3077(0x2524)]=_0x771a2e['amazonlex'][_0x1f3077(0x267a)]?_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x267a)]['split']('$')[0x0]:undefined,_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x1a9b)]=_0x771a2e[_0x1f3077(0x290d)]['callerID']?_0x1f3077(0x2489)+_0x771a2e[_0x1f3077(0x290d)][_0x1f3077(0x1abe)]:undefined);_0x771a2e[_0x1f3077(0x1ad3)]=_0x3ce502,_0x771a2e['closeDialog']=_0x98f8f1;function _0x3ce502(){const _0x12024e=_0x1f3077;_0x771a2e[_0x12024e(0xbae)]=[];const _0x47e5f3=[];_0x771a2e[_0x12024e(0x290d)][_0x12024e(0x2185)]&&_0x771a2e[_0x12024e(0x290d)][_0x12024e(0x2185)]['toLowerCase']()===_0x12024e(0xbce)&&_0x771a2e[_0x12024e(0x290d)][_0x12024e(0x4f4)]==='outboundDial'&&(_0x771a2e[_0x12024e(0x290d)]['phone']=_0x4f559c[_0x12024e(0x242b)]?(_0x771a2e[_0x12024e(0x290d)]['prefix']||'')+_0x12024e(0x1a75)+_0x4f559c['cutdigits']+'}':(_0x771a2e['amazonlex'][_0x12024e(0x2524)]||'')+_0x12024e(0x5ad),_0x4f559c['recordingFormat']!==_0x12024e(0x2507)?_0x771a2e[_0x12024e(0x290d)]['options'][_0x12024e(0x1b28)]('U(xcally-mixmonitor-context)')<0x0&&(_0x771a2e['amazonlex'][_0x12024e(0x59e)]+=_0x12024e(0x13e0)):_0x771a2e[_0x12024e(0x290d)][_0x12024e(0x59e)]=_0x771a2e[_0x12024e(0x290d)][_0x12024e(0x59e)][_0x12024e(0x1353)](_0x12024e(0x13e0),''));if(_0x771a2e[_0x12024e(0x290d)][_0x12024e(0x4f4)]&&_0x771a2e[_0x12024e(0x290d)][_0x12024e(0x4f4)]===_0x12024e(0x1ad6)){}else switch((_0x771a2e[_0x12024e(0x290d)]['app']||_0x771a2e[_0x12024e(0x290d)]['appType'])[_0x12024e(0x2554)]()){case'set':_0x771a2e['amazonlex']['appdata']=_0x771a2e[_0x12024e(0x290d)][_0x12024e(0x2494)]+'='+_0x771a2e[_0x12024e(0x290d)][_0x12024e(0x1096)];break;case _0x12024e(0x1ad6):break;default:_0x47e5f3[0x0]=_0x771a2e[_0x12024e(0x290d)][_0x12024e(0x1466)],_0x47e5f3[0x1]=_0x771a2e['amazonlex'][_0x12024e(0x1b1)],_0x47e5f3[0x2]=_0x771a2e[_0x12024e(0x290d)][_0x12024e(0x17a2)],_0x47e5f3[0x3]=_0x771a2e[_0x12024e(0x290d)][_0x12024e(0x2797)],_0x47e5f3[0x4]=_0x771a2e['amazonlex'][_0x12024e(0x31b)],_0x771a2e[_0x12024e(0x290d)][_0x12024e(0xacb)]=_0x47e5f3[_0x12024e(0x9a6)](',');}_0x98f8f1(_0x771a2e[_0x12024e(0x290d)]);}function _0x98f8f1(_0x3baa55){_0x5a9cf7['hide'](_0x3baa55);}}const _0x218667=_0x3fe45b;;_0x4710ca[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x10d4),'openchannelAccount',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x4710ca(_0x4568fb,_0x183826,_0xedfbec,_0x5378ed,_0x9a0bd6,_0x2b2a19,_0x2b7807,_0x5eb487){const _0x521151=_0x49a1e3,_0x59e459=this;_0x59e459[_0x521151(0x1d3d)]=_0x2b7807[_0x521151(0x808)](),_0x59e459['errors']=[],_0x59e459[_0x521151(0x2021)]=_0x521151(0x9d5)+(_0x5378ed['appType']||_0x5378ed[_0x521151(0x16e1)])[_0x521151(0xa3c)](),_0x59e459[_0x521151(0x21a9)]=angular['copy'](_0x5378ed),_0x59e459[_0x521151(0x402)]=_0x5eb487,_0x59e459[_0x521151(0x6c2)]={};if(_0x59e459[_0x521151(0x21a9)][_0x521151(0xacb)])switch(_0x59e459[_0x521151(0x21a9)][_0x521151(0x4f4)]?_0x59e459['autoreply']['appType'][_0x521151(0x2554)]():_0x59e459['autoreply'][_0x521151(0x16e1)][_0x521151(0x2554)]()){case'custom':break;case _0x521151(0x1084):{const _0x3eb6ae=_0x59e459[_0x521151(0x21a9)][_0x521151(0xacb)][_0x521151(0x282c)](',');_0x59e459[_0x521151(0x21a9)][_0x521151(0x2125)]=_0x3eb6ae[0x0],_0x59e459['autoreply'][_0x521151(0x1cbd)]=_0x3eb6ae[0x1],_0x59e459['autoreply']['welcomemessage']=_0x3eb6ae['slice'](0x2,_0x3eb6ae[_0x521151(0x1b9e)])[_0x521151(0x9a6)](',');}break;case _0x521151(0x1b1a):{const _0x4485b5=_0x59e459['autoreply']['appdata'][_0x521151(0x282c)](',');_0x59e459[_0x521151(0x21a9)]['projectId']=_0x4485b5[0x0],_0x59e459[_0x521151(0x21a9)]['clientEmail']=_0x4485b5[0x1],_0x59e459['autoreply'][_0x521151(0x1b1b)]=_0x4485b5[0x2],_0x59e459[_0x521151(0x21a9)]['language']=_0x4485b5[0x3],_0x59e459[_0x521151(0x21a9)]['welcomemessage']=_0x4485b5[_0x521151(0x142e)](0x4,_0x4485b5[_0x521151(0x1b9e)])[_0x521151(0x9a6)](',');}break;case _0x521151(0x290d):{const _0x280107=_0x59e459[_0x521151(0x21a9)][_0x521151(0xacb)][_0x521151(0x282c)](',');_0x59e459[_0x521151(0x21a9)][_0x521151(0x1466)]=_0x280107[0x0],_0x59e459[_0x521151(0x21a9)][_0x521151(0x1b1)]=_0x280107[0x1],_0x59e459[_0x521151(0x21a9)]['lexregion']=_0x280107[0x2],_0x59e459[_0x521151(0x21a9)][_0x521151(0x2797)]=_0x280107[0x3],_0x59e459[_0x521151(0x21a9)]['welcomemessage']=_0x280107[_0x521151(0x142e)](0x4,_0x280107[_0x521151(0x1b9e)])['join'](',');}break;case _0x521151(0x21a9):{const _0x247f44=_0x59e459[_0x521151(0x21a9)][_0x521151(0xacb)][_0x521151(0x282c)](',');_0x59e459[_0x521151(0x21a9)][_0x521151(0x95f)]=isNaN(_0x247f44[0x0])?_0x247f44[0x0]:parseInt(_0x247f44[0x0],0xa),_0x59e459[_0x521151(0x21a9)][_0x521151(0x39b)]=_0x247f44[_0x521151(0x142e)](0x1,_0x247f44['length'])[_0x521151(0x9a6)](',');}break;case _0x521151(0x18ca):_0x59e459[_0x521151(0x21a9)][_0x521151(0x39b)]=_0x59e459[_0x521151(0x21a9)][_0x521151(0xacb)];break;case _0x521151(0x1979):_0x59e459['autoreply'][_0x521151(0x2494)]=_0x59e459['autoreply'][_0x521151(0xacb)]['split']('=')[0x0],_0x59e459['autoreply'][_0x521151(0x1096)]=_0x59e459[_0x521151(0x21a9)][_0x521151(0xacb)][_0x521151(0x282c)]('=')[0x1];break;case _0x521151(0x1e67):_0x59e459[_0x521151(0x21a9)][_0x521151(0x1bd9)]=_0x59e459[_0x521151(0x21a9)][_0x521151(0xacb)];break;default:{const _0x1dc967=_0x59e459[_0x521151(0x21a9)]['appdata'][_0x521151(0x282c)](',');_0x59e459['autoreply'][_0x521151(0x95f)]=_0x28c606()['isEmpty'](_0x1dc967[0x0])?_0x1dc967[0x0]:isNaN(_0x1dc967[0x0])?_0x1dc967[0x0]:parseInt(_0x1dc967[0x0],0xa),_0x59e459[_0x521151(0x21a9)][_0x521151(0x39b)]=_0x28c606()[_0x521151(0x940)](_0x1dc967[0x1])?_0x1dc967[0x1]:isNaN(_0x1dc967[0x1])?_0x1dc967[0x1]:parseInt(_0x1dc967[0x1],0xa);}break;}else _0x59e459['autoreply'][_0x521151(0x95f)]=0x1;_0x59e459['autoreply'][_0x521151(0x2185)]&&_0x59e459[_0x521151(0x21a9)][_0x521151(0x2185)][_0x521151(0x2554)]()===_0x521151(0xbce)&&_0x59e459[_0x521151(0x21a9)][_0x521151(0x4f4)]['toLowerCase']()===_0x521151(0x20eb)&&(_0x59e459[_0x521151(0x21a9)][_0x521151(0x2524)]=_0x59e459[_0x521151(0x21a9)][_0x521151(0x267a)]?_0x59e459[_0x521151(0x21a9)][_0x521151(0x267a)][_0x521151(0x282c)]('$')[0x0]:undefined,_0x59e459[_0x521151(0x21a9)][_0x521151(0x1a9b)]=_0x59e459[_0x521151(0x21a9)][_0x521151(0x1abe)]?_0x521151(0x2489)+_0x59e459[_0x521151(0x21a9)][_0x521151(0x1abe)]:undefined);_0x59e459[_0x521151(0x1ad3)]=_0x2db8fc,_0x59e459[_0x521151(0x16cb)]=_0x534071;function _0x2db8fc(){const _0x2d06eb=_0x521151;_0x59e459[_0x2d06eb(0xbae)]=[];const _0x1b904c=[];_0x59e459['autoreply'][_0x2d06eb(0x2185)]&&_0x59e459[_0x2d06eb(0x21a9)][_0x2d06eb(0x2185)][_0x2d06eb(0x2554)]()===_0x2d06eb(0xbce)&&_0x59e459[_0x2d06eb(0x21a9)]['appType']===_0x2d06eb(0x17b6)&&(_0x59e459['autoreply'][_0x2d06eb(0x267a)]=_0x9a0bd6[_0x2d06eb(0x242b)]?(_0x59e459[_0x2d06eb(0x21a9)][_0x2d06eb(0x2524)]||'')+_0x2d06eb(0x1a75)+_0x9a0bd6[_0x2d06eb(0x242b)]+'}':(_0x59e459[_0x2d06eb(0x21a9)]['prefix']||'')+_0x2d06eb(0x5ad),_0x9a0bd6[_0x2d06eb(0x1097)]!==_0x2d06eb(0x2507)?_0x59e459[_0x2d06eb(0x21a9)][_0x2d06eb(0x59e)]['indexOf'](_0x2d06eb(0x13e0))<0x0&&(_0x59e459[_0x2d06eb(0x21a9)][_0x2d06eb(0x59e)]+='U(xcally-mixmonitor-context)'):_0x59e459['autoreply']['options']=_0x59e459[_0x2d06eb(0x21a9)][_0x2d06eb(0x59e)][_0x2d06eb(0x1353)]('U(xcally-mixmonitor-context)',''));if(_0x59e459[_0x2d06eb(0x21a9)][_0x2d06eb(0x4f4)]&&_0x59e459[_0x2d06eb(0x21a9)][_0x2d06eb(0x4f4)]===_0x2d06eb(0x1ad6)){}else switch((_0x59e459['autoreply']['app']||_0x59e459[_0x2d06eb(0x21a9)]['appType'])[_0x2d06eb(0x2554)]()){case _0x2d06eb(0x1979):_0x59e459[_0x2d06eb(0x21a9)][_0x2d06eb(0xacb)]=_0x59e459[_0x2d06eb(0x21a9)][_0x2d06eb(0x2494)]+'='+_0x59e459[_0x2d06eb(0x21a9)][_0x2d06eb(0x1096)];break;case _0x2d06eb(0x1ad6):break;default:_0x1b904c[0x0]=_0x59e459['autoreply'][_0x2d06eb(0x95f)],_0x1b904c[0x1]=_0x59e459[_0x2d06eb(0x21a9)][_0x2d06eb(0x39b)],_0x59e459[_0x2d06eb(0x21a9)][_0x2d06eb(0xacb)]=_0x1b904c['join'](',');}_0x534071(_0x59e459[_0x2d06eb(0x21a9)]);}function _0x534071(_0x4b90f2){const _0x2d7cfd=_0x521151;_0x4568fb[_0x2d7cfd(0x268e)](_0x4b90f2);}}const _0x5943b3=_0x4710ca;;_0x465f2d[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0x10d4),'openchannelAccount','api',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x465f2d(_0x431fbb,_0x20b0aa,_0x5b7c38,_0x68cad9,_0x5ba6bf,_0x129a4b,_0x5a234e,_0x397f72){const _0x1fcf1c=_0x49a1e3,_0x20f1d4=this;_0x20f1d4[_0x1fcf1c(0x1d3d)]=_0x5a234e[_0x1fcf1c(0x808)](),_0x20f1d4['errors']=[],_0x20f1d4[_0x1fcf1c(0x2021)]='OPENCHANNEL.EDIT_'+(_0x68cad9[_0x1fcf1c(0x4f4)]||_0x68cad9[_0x1fcf1c(0x16e1)])['toUpperCase'](),_0x20f1d4[_0x1fcf1c(0x67b)]=angular[_0x1fcf1c(0x289e)](_0x68cad9),_0x20f1d4[_0x1fcf1c(0x402)]=_0x397f72,_0x20f1d4[_0x1fcf1c(0x6c2)]={};if(_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0xacb)])switch(_0x20f1d4['close'][_0x1fcf1c(0x4f4)]?_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x4f4)][_0x1fcf1c(0x2554)]():_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x16e1)][_0x1fcf1c(0x2554)]()){case _0x1fcf1c(0x1ad6):break;case _0x1fcf1c(0x1084):{const _0x311453=_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0xacb)][_0x1fcf1c(0x282c)](',');_0x20f1d4[_0x1fcf1c(0x67b)]['key']=_0x311453[0x0],_0x20f1d4[_0x1fcf1c(0x67b)]['language']=_0x311453[0x1],_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x31b)]=_0x311453['slice'](0x2,_0x311453['length'])[_0x1fcf1c(0x9a6)](',');}break;case _0x1fcf1c(0x1b1a):{const _0x4ae190=_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0xacb)][_0x1fcf1c(0x282c)](',');_0x20f1d4['close'][_0x1fcf1c(0xbfd)]=_0x4ae190[0x0],_0x20f1d4[_0x1fcf1c(0x67b)]['clientEmail']=_0x4ae190[0x1],_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x1b1b)]=_0x4ae190[0x2],_0x20f1d4[_0x1fcf1c(0x67b)]['language']=_0x4ae190[0x3],_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x31b)]=_0x4ae190[_0x1fcf1c(0x142e)](0x4,_0x4ae190[_0x1fcf1c(0x1b9e)])[_0x1fcf1c(0x9a6)](',');}break;case _0x1fcf1c(0x290d):{const _0x5a8854=_0x20f1d4['close'][_0x1fcf1c(0xacb)][_0x1fcf1c(0x282c)](',');_0x20f1d4[_0x1fcf1c(0x67b)]['accesskeyid']=_0x5a8854[0x0],_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x1b1)]=_0x5a8854[0x1],_0x20f1d4['close'][_0x1fcf1c(0x17a2)]=_0x5a8854[0x2],_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x2797)]=_0x5a8854[0x3],_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x31b)]=_0x5a8854[_0x1fcf1c(0x142e)](0x4,_0x5a8854['length'])['join'](',');}break;case _0x1fcf1c(0x21a9):{const _0x1f64c9=_0x20f1d4[_0x1fcf1c(0x67b)]['appdata'][_0x1fcf1c(0x282c)](',');_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x95f)]=isNaN(_0x1f64c9[0x0])?_0x1f64c9[0x0]:parseInt(_0x1f64c9[0x0],0xa),_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x39b)]=_0x1f64c9[_0x1fcf1c(0x142e)](0x1,_0x1f64c9[_0x1fcf1c(0x1b9e)])[_0x1fcf1c(0x9a6)](',');}break;case'message':_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x39b)]=_0x20f1d4['close']['appdata'];break;case _0x1fcf1c(0x1979):_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x2494)]=_0x20f1d4[_0x1fcf1c(0x67b)]['appdata']['split']('=')[0x0],_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x1096)]=_0x20f1d4['close'][_0x1fcf1c(0xacb)][_0x1fcf1c(0x282c)]('=')[0x1];break;case _0x1fcf1c(0x1e67):_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x1bd9)]=_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0xacb)];break;default:{const _0x20af4a=_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0xacb)][_0x1fcf1c(0x282c)](',');_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x168b)]=_0x28c606()[_0x1fcf1c(0x940)](_0x20af4a[0x0])?_0x20af4a[0x0]:isNaN(_0x20af4a[0x0])?_0x20af4a[0x0]:parseInt(_0x20af4a[0x0],0xa);}break;}else{}_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x2185)]&&_0x20f1d4[_0x1fcf1c(0x67b)]['type']['toLowerCase']()===_0x1fcf1c(0xbce)&&_0x20f1d4[_0x1fcf1c(0x67b)]['appType'][_0x1fcf1c(0x2554)]()===_0x1fcf1c(0x20eb)&&(_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x2524)]=_0x20f1d4['close']['phone']?_0x20f1d4[_0x1fcf1c(0x67b)]['phone']['split']('$')[0x0]:undefined,_0x20f1d4['close'][_0x1fcf1c(0x1a9b)]=_0x20f1d4[_0x1fcf1c(0x67b)][_0x1fcf1c(0x1abe)]?_0x1fcf1c(0x2489)+_0x20f1d4[_0x1fcf1c(0x67b)]['callerID']:undefined);_0x20f1d4[_0x1fcf1c(0x1ad3)]=_0x591f49,_0x20f1d4[_0x1fcf1c(0x16cb)]=_0x25d2e1;function _0x591f49(){const _0x3e18ed=_0x1fcf1c;_0x20f1d4[_0x3e18ed(0xbae)]=[];const _0x115128=[];_0x20f1d4[_0x3e18ed(0x67b)][_0x3e18ed(0x2185)]&&_0x20f1d4[_0x3e18ed(0x67b)]['type'][_0x3e18ed(0x2554)]()===_0x3e18ed(0xbce)&&_0x20f1d4['close'][_0x3e18ed(0x4f4)]===_0x3e18ed(0x17b6)&&(_0x20f1d4[_0x3e18ed(0x67b)][_0x3e18ed(0x267a)]=_0x5ba6bf[_0x3e18ed(0x242b)]?(_0x20f1d4['close'][_0x3e18ed(0x2524)]||'')+'${EXTEN:'+_0x5ba6bf[_0x3e18ed(0x242b)]+'}':(_0x20f1d4[_0x3e18ed(0x67b)][_0x3e18ed(0x2524)]||'')+_0x3e18ed(0x5ad),_0x5ba6bf[_0x3e18ed(0x1097)]!==_0x3e18ed(0x2507)?_0x20f1d4[_0x3e18ed(0x67b)][_0x3e18ed(0x59e)]['indexOf'](_0x3e18ed(0x13e0))<0x0&&(_0x20f1d4[_0x3e18ed(0x67b)]['options']+=_0x3e18ed(0x13e0)):_0x20f1d4['close'][_0x3e18ed(0x59e)]=_0x20f1d4[_0x3e18ed(0x67b)]['options']['replace'](_0x3e18ed(0x13e0),''));if(_0x20f1d4[_0x3e18ed(0x67b)][_0x3e18ed(0x4f4)]&&_0x20f1d4[_0x3e18ed(0x67b)][_0x3e18ed(0x4f4)]===_0x3e18ed(0x1ad6)){}else switch((_0x20f1d4[_0x3e18ed(0x67b)][_0x3e18ed(0x16e1)]||_0x20f1d4['close'][_0x3e18ed(0x4f4)])[_0x3e18ed(0x2554)]()){case _0x3e18ed(0x1979):_0x20f1d4[_0x3e18ed(0x67b)][_0x3e18ed(0xacb)]=_0x20f1d4[_0x3e18ed(0x67b)]['name']+'='+_0x20f1d4[_0x3e18ed(0x67b)][_0x3e18ed(0x1096)];break;case'custom':break;default:_0x115128[0x0]=_0x20f1d4[_0x3e18ed(0x67b)][_0x3e18ed(0x168b)],_0x20f1d4[_0x3e18ed(0x67b)][_0x3e18ed(0xacb)]=_0x115128[_0x3e18ed(0x9a6)](',');}_0x25d2e1(_0x20f1d4['close']);}function _0x25d2e1(_0x2e81b2){const _0x14ffc0=_0x1fcf1c;_0x431fbb[_0x14ffc0(0x268e)](_0x2e81b2);}}const _0xe88c3f=_0x465f2d;;_0x3daed4['$inject']=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x10d4),_0x49a1e3(0x880),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'crudPermissions'];function _0x3daed4(_0x3b12c3,_0x42f655,_0xa3e695,_0xdc63cd,_0x51b6b2,_0x47eba2,_0x3df3be,_0x4b04fc){const _0x564419=_0x49a1e3,_0x113066=this;_0x113066['currentUser']=_0x3df3be['getCurrentUser'](),_0x113066[_0x564419(0xbae)]=[],_0x113066['title']=_0x564419(0x9d5)+(_0xdc63cd['appType']||_0xdc63cd[_0x564419(0x16e1)])[_0x564419(0xa3c)](),_0x113066['dialogflow']=angular[_0x564419(0x289e)](_0xdc63cd),_0x113066[_0x564419(0x402)]=_0x4b04fc,_0x113066[_0x564419(0x6c2)]={};if(_0x113066['dialogflow']['appdata'])switch(_0x113066['dialogflow'][_0x564419(0x4f4)]?_0x113066[_0x564419(0x1084)]['appType'][_0x564419(0x2554)]():_0x113066[_0x564419(0x1084)][_0x564419(0x16e1)][_0x564419(0x2554)]()){case _0x564419(0x1ad6):break;case _0x564419(0x1084):{const _0x3ce933=_0x113066[_0x564419(0x1084)]['appdata'][_0x564419(0x282c)](',');_0x113066[_0x564419(0x1084)][_0x564419(0x2125)]=_0x3ce933[0x0],_0x113066[_0x564419(0x1084)]['language']=_0x3ce933[0x1],_0x113066[_0x564419(0x1084)][_0x564419(0x31b)]=_0x3ce933[_0x564419(0x142e)](0x2,_0x3ce933[_0x564419(0x1b9e)])[_0x564419(0x9a6)](',');}break;case'dialogflowv2':{const _0x3aec67=_0x113066[_0x564419(0x1084)]['appdata'][_0x564419(0x282c)](',');_0x113066[_0x564419(0x1084)][_0x564419(0xbfd)]=_0x3aec67[0x0],_0x113066[_0x564419(0x1084)]['clientEmail']=_0x3aec67[0x1],_0x113066['dialogflow']['privateKey']=_0x3aec67[0x2],_0x113066[_0x564419(0x1084)]['language']=_0x3aec67[0x3],_0x113066['dialogflow'][_0x564419(0x31b)]=_0x3aec67[_0x564419(0x142e)](0x4,_0x3aec67['length'])[_0x564419(0x9a6)](',');}break;case _0x564419(0x290d):{const _0x341cba=_0x113066[_0x564419(0x1084)][_0x564419(0xacb)][_0x564419(0x282c)](',');_0x113066[_0x564419(0x1084)]['accesskeyid']=_0x341cba[0x0],_0x113066[_0x564419(0x1084)][_0x564419(0x1b1)]=_0x341cba[0x1],_0x113066['dialogflow'][_0x564419(0x17a2)]=_0x341cba[0x2],_0x113066[_0x564419(0x1084)]['botname']=_0x341cba[0x3],_0x113066[_0x564419(0x1084)]['welcomemessage']=_0x341cba[_0x564419(0x142e)](0x4,_0x341cba['length'])[_0x564419(0x9a6)](',');}break;case _0x564419(0x21a9):{const _0x3e81e1=_0x113066[_0x564419(0x1084)][_0x564419(0xacb)][_0x564419(0x282c)](',');_0x113066['dialogflow'][_0x564419(0x95f)]=isNaN(_0x3e81e1[0x0])?_0x3e81e1[0x0]:parseInt(_0x3e81e1[0x0],0xa),_0x113066[_0x564419(0x1084)]['text']=_0x3e81e1[_0x564419(0x142e)](0x1,_0x3e81e1['length'])[_0x564419(0x9a6)](',');}break;case _0x564419(0x18ca):_0x113066['dialogflow']['text']=_0x113066[_0x564419(0x1084)][_0x564419(0xacb)];break;case _0x564419(0x1979):_0x113066[_0x564419(0x1084)]['name']=_0x113066[_0x564419(0x1084)][_0x564419(0xacb)][_0x564419(0x282c)]('=')[0x0],_0x113066['dialogflow'][_0x564419(0x1096)]=_0x113066[_0x564419(0x1084)][_0x564419(0xacb)][_0x564419(0x282c)]('=')[0x1];break;case _0x564419(0x1e67):_0x113066['dialogflow']['project']=_0x113066[_0x564419(0x1084)][_0x564419(0xacb)];break;default:{const _0xda529d=_0x113066[_0x564419(0x1084)]['appdata'][_0x564419(0x282c)](',');_0x113066[_0x564419(0x1084)]['key']=_0x28c606()[_0x564419(0x940)](_0xda529d[0x0])?_0xda529d[0x0]:isNaN(_0xda529d[0x0])?_0xda529d[0x0]:parseInt(_0xda529d[0x0],0xa),_0x113066[_0x564419(0x1084)][_0x564419(0x1cbd)]=_0x28c606()[_0x564419(0x940)](_0xda529d[0x1])?_0xda529d[0x1]:isNaN(_0xda529d[0x1])?_0xda529d[0x1]:parseInt(_0xda529d[0x1],0xa),_0x113066['dialogflow']['welcomemessage']=_0x28c606()[_0x564419(0x940)](_0xda529d[0x2])?_0xda529d[0x2]:isNaN(_0xda529d[0x2])?_0xda529d[0x2]:parseInt(_0xda529d[0x2],0xa);}break;}else _0x113066[_0x564419(0x1084)][_0x564419(0x1cbd)]='en';_0x113066[_0x564419(0x1084)][_0x564419(0x2185)]&&_0x113066[_0x564419(0x1084)][_0x564419(0x2185)][_0x564419(0x2554)]()===_0x564419(0xbce)&&_0x113066[_0x564419(0x1084)][_0x564419(0x4f4)][_0x564419(0x2554)]()===_0x564419(0x20eb)&&(_0x113066['dialogflow'][_0x564419(0x2524)]=_0x113066[_0x564419(0x1084)]['phone']?_0x113066[_0x564419(0x1084)][_0x564419(0x267a)]['split']('$')[0x0]:undefined,_0x113066[_0x564419(0x1084)][_0x564419(0x1a9b)]=_0x113066['dialogflow'][_0x564419(0x1abe)]?'CALLERID(all)='+_0x113066['dialogflow'][_0x564419(0x1abe)]:undefined);_0x113066[_0x564419(0x1ad3)]=_0x3f82ce,_0x113066[_0x564419(0x16cb)]=_0x433517;function _0x3f82ce(){const _0x423620=_0x564419;_0x113066[_0x423620(0xbae)]=[];const _0xd34de1=[];_0x113066[_0x423620(0x1084)]['type']&&_0x113066[_0x423620(0x1084)][_0x423620(0x2185)][_0x423620(0x2554)]()===_0x423620(0xbce)&&_0x113066[_0x423620(0x1084)][_0x423620(0x4f4)]===_0x423620(0x17b6)&&(_0x113066['dialogflow'][_0x423620(0x267a)]=_0x51b6b2[_0x423620(0x242b)]?(_0x113066[_0x423620(0x1084)][_0x423620(0x2524)]||'')+_0x423620(0x1a75)+_0x51b6b2[_0x423620(0x242b)]+'}':(_0x113066[_0x423620(0x1084)][_0x423620(0x2524)]||'')+'${EXTEN}',_0x51b6b2[_0x423620(0x1097)]!=='none'?_0x113066[_0x423620(0x1084)]['options'][_0x423620(0x1b28)](_0x423620(0x13e0))<0x0&&(_0x113066[_0x423620(0x1084)]['options']+=_0x423620(0x13e0)):_0x113066[_0x423620(0x1084)][_0x423620(0x59e)]=_0x113066['dialogflow'][_0x423620(0x59e)][_0x423620(0x1353)]('U(xcally-mixmonitor-context)',''));if(_0x113066[_0x423620(0x1084)][_0x423620(0x4f4)]&&_0x113066[_0x423620(0x1084)][_0x423620(0x4f4)]===_0x423620(0x1ad6)){}else switch((_0x113066[_0x423620(0x1084)][_0x423620(0x16e1)]||_0x113066[_0x423620(0x1084)][_0x423620(0x4f4)])[_0x423620(0x2554)]()){case _0x423620(0x1979):_0x113066[_0x423620(0x1084)][_0x423620(0xacb)]=_0x113066[_0x423620(0x1084)]['name']+'='+_0x113066[_0x423620(0x1084)][_0x423620(0x1096)];break;case'custom':break;default:_0xd34de1[0x0]=_0x113066[_0x423620(0x1084)][_0x423620(0x2125)],_0xd34de1[0x1]=_0x113066['dialogflow'][_0x423620(0x1cbd)],_0xd34de1[0x2]=_0x113066[_0x423620(0x1084)][_0x423620(0x31b)],_0x113066[_0x423620(0x1084)]['appdata']=_0xd34de1[_0x423620(0x9a6)](',');}_0x433517(_0x113066[_0x423620(0x1084)]);}function _0x433517(_0x4041ac){const _0x1532fe=_0x564419;_0x3b12c3[_0x1532fe(0x268e)](_0x4041ac);}}const _0x4ed304=_0x3daed4;;_0x44d16c['$inject']=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),'openchannelAccountApp','openchannelAccount',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x44d16c(_0x4b1614,_0x262cc6,_0x38aba0,_0x14448f,_0x1b07e,_0x2a9897,_0x129ae0,_0xdee9f1){const _0x582a76=_0x49a1e3,_0x47d7d2=this;_0x47d7d2[_0x582a76(0x1d3d)]=_0x129ae0['getCurrentUser'](),_0x47d7d2[_0x582a76(0xbae)]=[],_0x47d7d2['title']='OPENCHANNEL.EDIT_'+(_0x14448f[_0x582a76(0x4f4)]||_0x14448f[_0x582a76(0x16e1)])['toUpperCase'](),_0x47d7d2[_0x582a76(0x614)]=angular['copy'](_0x14448f),_0x47d7d2[_0x582a76(0x402)]=_0xdee9f1,_0x47d7d2[_0x582a76(0x6c2)]={};if(_0x47d7d2[_0x582a76(0x614)][_0x582a76(0xacb)])switch(_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x4f4)]?_0x47d7d2['gotoif'][_0x582a76(0x4f4)][_0x582a76(0x2554)]():_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x16e1)][_0x582a76(0x2554)]()){case _0x582a76(0x1ad6):break;case _0x582a76(0x1084):{const _0x15ba4b=_0x47d7d2[_0x582a76(0x614)][_0x582a76(0xacb)][_0x582a76(0x282c)](',');_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x2125)]=_0x15ba4b[0x0],_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x1cbd)]=_0x15ba4b[0x1],_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x31b)]=_0x15ba4b[_0x582a76(0x142e)](0x2,_0x15ba4b['length'])['join'](',');}break;case'dialogflowv2':{const _0x276073=_0x47d7d2[_0x582a76(0x614)]['appdata']['split'](',');_0x47d7d2['gotoif']['projectId']=_0x276073[0x0],_0x47d7d2['gotoif'][_0x582a76(0x4b2)]=_0x276073[0x1],_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x1b1b)]=_0x276073[0x2],_0x47d7d2['gotoif'][_0x582a76(0x1cbd)]=_0x276073[0x3],_0x47d7d2[_0x582a76(0x614)]['welcomemessage']=_0x276073[_0x582a76(0x142e)](0x4,_0x276073['length'])['join'](',');}break;case _0x582a76(0x290d):{const _0xeff2a5=_0x47d7d2[_0x582a76(0x614)]['appdata'][_0x582a76(0x282c)](',');_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x1466)]=_0xeff2a5[0x0],_0x47d7d2[_0x582a76(0x614)]['secretaccesskey']=_0xeff2a5[0x1],_0x47d7d2['gotoif'][_0x582a76(0x17a2)]=_0xeff2a5[0x2],_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x2797)]=_0xeff2a5[0x3],_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x31b)]=_0xeff2a5[_0x582a76(0x142e)](0x4,_0xeff2a5[_0x582a76(0x1b9e)])[_0x582a76(0x9a6)](',');}break;case'autoreply':{const _0x18d2dc=_0x47d7d2[_0x582a76(0x614)][_0x582a76(0xacb)][_0x582a76(0x282c)](',');_0x47d7d2[_0x582a76(0x614)]['times']=isNaN(_0x18d2dc[0x0])?_0x18d2dc[0x0]:parseInt(_0x18d2dc[0x0],0xa),_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x39b)]=_0x18d2dc['slice'](0x1,_0x18d2dc['length'])[_0x582a76(0x9a6)](',');}break;case _0x582a76(0x18ca):_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x39b)]=_0x47d7d2[_0x582a76(0x614)][_0x582a76(0xacb)];break;case _0x582a76(0x1979):_0x47d7d2['gotoif'][_0x582a76(0x2494)]=_0x47d7d2[_0x582a76(0x614)][_0x582a76(0xacb)][_0x582a76(0x282c)]('=')[0x0],_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x1096)]=_0x47d7d2[_0x582a76(0x614)][_0x582a76(0xacb)][_0x582a76(0x282c)]('=')[0x1];break;case'agi':_0x47d7d2['gotoif'][_0x582a76(0x1bd9)]=_0x47d7d2[_0x582a76(0x614)][_0x582a76(0xacb)];break;default:{const _0x35cca1=_0x47d7d2['gotoif'][_0x582a76(0xacb)][_0x582a76(0x282c)](',');_0x47d7d2[_0x582a76(0x614)][_0x582a76(0xeea)]=_0x28c606()['isEmpty'](_0x35cca1[0x0])?_0x35cca1[0x0]:isNaN(_0x35cca1[0x0])?_0x35cca1[0x0]:parseInt(_0x35cca1[0x0],0xa),_0x47d7d2[_0x582a76(0x614)]['truepriority']=_0x28c606()[_0x582a76(0x940)](_0x35cca1[0x1])?_0x35cca1[0x1]:isNaN(_0x35cca1[0x1])?_0x35cca1[0x1]:parseInt(_0x35cca1[0x1],0xa),_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x1d32)]=_0x28c606()[_0x582a76(0x940)](_0x35cca1[0x2])?_0x35cca1[0x2]:isNaN(_0x35cca1[0x2])?_0x35cca1[0x2]:parseInt(_0x35cca1[0x2],0xa);}break;}else{}_0x47d7d2['gotoif'][_0x582a76(0x2185)]&&_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x2185)][_0x582a76(0x2554)]()===_0x582a76(0xbce)&&_0x47d7d2['gotoif'][_0x582a76(0x4f4)][_0x582a76(0x2554)]()===_0x582a76(0x20eb)&&(_0x47d7d2['gotoif'][_0x582a76(0x2524)]=_0x47d7d2['gotoif'][_0x582a76(0x267a)]?_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x267a)][_0x582a76(0x282c)]('$')[0x0]:undefined,_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x1a9b)]=_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x1abe)]?'CALLERID(all)='+_0x47d7d2[_0x582a76(0x614)][_0x582a76(0x1abe)]:undefined);_0x47d7d2['saveOpenchannelAccountApp']=_0x2bf675,_0x47d7d2[_0x582a76(0x16cb)]=_0x2a0623;function _0x2bf675(){const _0x8bcfe7=_0x582a76;_0x47d7d2[_0x8bcfe7(0xbae)]=[];const _0x31fda1=[];_0x47d7d2[_0x8bcfe7(0x614)][_0x8bcfe7(0x2185)]&&_0x47d7d2[_0x8bcfe7(0x614)][_0x8bcfe7(0x2185)][_0x8bcfe7(0x2554)]()===_0x8bcfe7(0xbce)&&_0x47d7d2[_0x8bcfe7(0x614)][_0x8bcfe7(0x4f4)]==='outboundDial'&&(_0x47d7d2[_0x8bcfe7(0x614)][_0x8bcfe7(0x267a)]=_0x1b07e[_0x8bcfe7(0x242b)]?(_0x47d7d2['gotoif'][_0x8bcfe7(0x2524)]||'')+_0x8bcfe7(0x1a75)+_0x1b07e['cutdigits']+'}':(_0x47d7d2[_0x8bcfe7(0x614)]['prefix']||'')+_0x8bcfe7(0x5ad),_0x1b07e['recordingFormat']!==_0x8bcfe7(0x2507)?_0x47d7d2[_0x8bcfe7(0x614)][_0x8bcfe7(0x59e)]['indexOf'](_0x8bcfe7(0x13e0))<0x0&&(_0x47d7d2[_0x8bcfe7(0x614)][_0x8bcfe7(0x59e)]+=_0x8bcfe7(0x13e0)):_0x47d7d2['gotoif'][_0x8bcfe7(0x59e)]=_0x47d7d2[_0x8bcfe7(0x614)][_0x8bcfe7(0x59e)]['replace']('U(xcally-mixmonitor-context)',''));if(_0x47d7d2['gotoif']['appType']&&_0x47d7d2[_0x8bcfe7(0x614)][_0x8bcfe7(0x4f4)]==='custom'){}else switch((_0x47d7d2[_0x8bcfe7(0x614)]['app']||_0x47d7d2['gotoif'][_0x8bcfe7(0x4f4)])['toLowerCase']()){case'set':_0x47d7d2[_0x8bcfe7(0x614)][_0x8bcfe7(0xacb)]=_0x47d7d2[_0x8bcfe7(0x614)][_0x8bcfe7(0x2494)]+'='+_0x47d7d2['gotoif'][_0x8bcfe7(0x1096)];break;case _0x8bcfe7(0x1ad6):break;default:_0x31fda1[0x0]=_0x47d7d2[_0x8bcfe7(0x614)]['condition'],_0x31fda1[0x1]=_0x47d7d2['gotoif'][_0x8bcfe7(0x108f)],_0x31fda1[0x2]=_0x47d7d2[_0x8bcfe7(0x614)]['falsepriority'],_0x47d7d2[_0x8bcfe7(0x614)]['appdata']=_0x31fda1[_0x8bcfe7(0x9a6)](',');}_0x2a0623(_0x47d7d2[_0x8bcfe7(0x614)]);}function _0x2a0623(_0x2ff1ca){const _0x1e8b2a=_0x582a76;_0x4b1614[_0x1e8b2a(0x268e)](_0x2ff1ca);}}const _0x46ebf2=_0x44d16c;;_0x46a278[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x10d4),_0x49a1e3(0x880),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x46a278(_0x348180,_0x478eaf,_0x1ca497,_0x5cc7b6,_0x232c9a,_0x54a26a,_0x14f8b2,_0x5f0c8d){const _0x22db44=_0x49a1e3,_0x304323=this;_0x304323['currentUser']=_0x14f8b2[_0x22db44(0x808)](),_0x304323[_0x22db44(0xbae)]=[],_0x304323[_0x22db44(0x2021)]=_0x22db44(0x9d5)+(_0x5cc7b6['appType']||_0x5cc7b6['app'])[_0x22db44(0xa3c)](),_0x304323[_0x22db44(0x2046)]=angular[_0x22db44(0x289e)](_0x5cc7b6),_0x304323[_0x22db44(0x402)]=_0x5f0c8d,_0x304323[_0x22db44(0x6c2)]={};if(_0x304323[_0x22db44(0x2046)]['appdata'])switch(_0x304323[_0x22db44(0x2046)][_0x22db44(0x4f4)]?_0x304323[_0x22db44(0x2046)][_0x22db44(0x4f4)][_0x22db44(0x2554)]():_0x304323[_0x22db44(0x2046)]['app'][_0x22db44(0x2554)]()){case _0x22db44(0x1ad6):break;case _0x22db44(0x1084):{const _0x4768fd=_0x304323[_0x22db44(0x2046)][_0x22db44(0xacb)]['split'](',');_0x304323['gotop']['key']=_0x4768fd[0x0],_0x304323[_0x22db44(0x2046)][_0x22db44(0x1cbd)]=_0x4768fd[0x1],_0x304323['gotop'][_0x22db44(0x31b)]=_0x4768fd[_0x22db44(0x142e)](0x2,_0x4768fd[_0x22db44(0x1b9e)])[_0x22db44(0x9a6)](',');}break;case _0x22db44(0x1b1a):{const _0x4936ca=_0x304323[_0x22db44(0x2046)][_0x22db44(0xacb)][_0x22db44(0x282c)](',');_0x304323['gotop'][_0x22db44(0xbfd)]=_0x4936ca[0x0],_0x304323[_0x22db44(0x2046)][_0x22db44(0x4b2)]=_0x4936ca[0x1],_0x304323[_0x22db44(0x2046)][_0x22db44(0x1b1b)]=_0x4936ca[0x2],_0x304323[_0x22db44(0x2046)][_0x22db44(0x1cbd)]=_0x4936ca[0x3],_0x304323['gotop']['welcomemessage']=_0x4936ca[_0x22db44(0x142e)](0x4,_0x4936ca['length'])[_0x22db44(0x9a6)](',');}break;case _0x22db44(0x290d):{const _0x31f8a7=_0x304323[_0x22db44(0x2046)]['appdata'][_0x22db44(0x282c)](',');_0x304323['gotop'][_0x22db44(0x1466)]=_0x31f8a7[0x0],_0x304323[_0x22db44(0x2046)][_0x22db44(0x1b1)]=_0x31f8a7[0x1],_0x304323['gotop']['lexregion']=_0x31f8a7[0x2],_0x304323['gotop'][_0x22db44(0x2797)]=_0x31f8a7[0x3],_0x304323['gotop']['welcomemessage']=_0x31f8a7[_0x22db44(0x142e)](0x4,_0x31f8a7[_0x22db44(0x1b9e)])['join'](',');}break;case _0x22db44(0x21a9):{const _0x62fa88=_0x304323[_0x22db44(0x2046)][_0x22db44(0xacb)][_0x22db44(0x282c)](',');_0x304323[_0x22db44(0x2046)][_0x22db44(0x95f)]=isNaN(_0x62fa88[0x0])?_0x62fa88[0x0]:parseInt(_0x62fa88[0x0],0xa),_0x304323[_0x22db44(0x2046)][_0x22db44(0x39b)]=_0x62fa88[_0x22db44(0x142e)](0x1,_0x62fa88['length'])[_0x22db44(0x9a6)](',');}break;case'message':_0x304323['gotop'][_0x22db44(0x39b)]=_0x304323[_0x22db44(0x2046)][_0x22db44(0xacb)];break;case _0x22db44(0x1979):_0x304323['gotop'][_0x22db44(0x2494)]=_0x304323[_0x22db44(0x2046)][_0x22db44(0xacb)][_0x22db44(0x282c)]('=')[0x0],_0x304323[_0x22db44(0x2046)]['value']=_0x304323['gotop'][_0x22db44(0xacb)][_0x22db44(0x282c)]('=')[0x1];break;case'agi':_0x304323[_0x22db44(0x2046)]['project']=_0x304323[_0x22db44(0x2046)][_0x22db44(0xacb)];break;default:{const _0x256f12=_0x304323[_0x22db44(0x2046)]['appdata'][_0x22db44(0x282c)](',');_0x304323[_0x22db44(0x2046)][_0x22db44(0x1095)]=_0x28c606()[_0x22db44(0x940)](_0x256f12[0x0])?_0x256f12[0x0]:isNaN(_0x256f12[0x0])?_0x256f12[0x0]:parseInt(_0x256f12[0x0],0xa);}break;}else{}_0x304323[_0x22db44(0x2046)]['type']&&_0x304323[_0x22db44(0x2046)][_0x22db44(0x2185)][_0x22db44(0x2554)]()===_0x22db44(0xbce)&&_0x304323[_0x22db44(0x2046)][_0x22db44(0x4f4)]['toLowerCase']()==='outbounddial'&&(_0x304323[_0x22db44(0x2046)][_0x22db44(0x2524)]=_0x304323[_0x22db44(0x2046)]['phone']?_0x304323[_0x22db44(0x2046)][_0x22db44(0x267a)]['split']('$')[0x0]:undefined,_0x304323[_0x22db44(0x2046)]['callerId']=_0x304323[_0x22db44(0x2046)][_0x22db44(0x1abe)]?'CALLERID(all)='+_0x304323[_0x22db44(0x2046)][_0x22db44(0x1abe)]:undefined);_0x304323[_0x22db44(0x1ad3)]=_0x1f064b,_0x304323[_0x22db44(0x16cb)]=_0x47a016;function _0x1f064b(){const _0x2c4586=_0x22db44;_0x304323['errors']=[];const _0x5e33a8=[];_0x304323[_0x2c4586(0x2046)][_0x2c4586(0x2185)]&&_0x304323['gotop'][_0x2c4586(0x2185)][_0x2c4586(0x2554)]()===_0x2c4586(0xbce)&&_0x304323['gotop'][_0x2c4586(0x4f4)]===_0x2c4586(0x17b6)&&(_0x304323['gotop']['phone']=_0x232c9a[_0x2c4586(0x242b)]?(_0x304323['gotop'][_0x2c4586(0x2524)]||'')+'${EXTEN:'+_0x232c9a[_0x2c4586(0x242b)]+'}':(_0x304323[_0x2c4586(0x2046)][_0x2c4586(0x2524)]||'')+_0x2c4586(0x5ad),_0x232c9a['recordingFormat']!==_0x2c4586(0x2507)?_0x304323[_0x2c4586(0x2046)]['options'][_0x2c4586(0x1b28)](_0x2c4586(0x13e0))<0x0&&(_0x304323[_0x2c4586(0x2046)][_0x2c4586(0x59e)]+='U(xcally-mixmonitor-context)'):_0x304323['gotop'][_0x2c4586(0x59e)]=_0x304323[_0x2c4586(0x2046)]['options'][_0x2c4586(0x1353)](_0x2c4586(0x13e0),''));if(_0x304323[_0x2c4586(0x2046)][_0x2c4586(0x4f4)]&&_0x304323['gotop'][_0x2c4586(0x4f4)]==='custom'){}else switch((_0x304323['gotop'][_0x2c4586(0x16e1)]||_0x304323[_0x2c4586(0x2046)][_0x2c4586(0x4f4)])[_0x2c4586(0x2554)]()){case _0x2c4586(0x1979):_0x304323[_0x2c4586(0x2046)][_0x2c4586(0xacb)]=_0x304323[_0x2c4586(0x2046)][_0x2c4586(0x2494)]+'='+_0x304323[_0x2c4586(0x2046)][_0x2c4586(0x1096)];break;case'custom':break;default:_0x5e33a8[0x0]=_0x304323[_0x2c4586(0x2046)][_0x2c4586(0x1095)],_0x304323['gotop'][_0x2c4586(0xacb)]=_0x5e33a8[_0x2c4586(0x9a6)](',');}_0x47a016(_0x304323[_0x2c4586(0x2046)]);}function _0x47a016(_0x44e56e){const _0x1fd3ed=_0x22db44;_0x348180[_0x1fd3ed(0x268e)](_0x44e56e);}}const _0x813c76=_0x46a278;;_0x240221['$inject']=['$state',_0x49a1e3(0x212a),_0x49a1e3(0x611),_0x49a1e3(0xd48),_0x49a1e3(0xcfd),_0x49a1e3(0x15e4),_0x49a1e3(0x680),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x402)];function _0x240221(_0x5ec663,_0x1fc218,_0xea18ee,_0x3ad45a,_0x196494,_0x4c5fd9,_0x3bace2,_0x25e257,_0x5f4e42,_0x3a7e0a){const _0xe5c1a6=_0x49a1e3,_0x454ad5=this;_0x454ad5['currentUser']=_0x5f4e42[_0xe5c1a6(0x808)](),_0x454ad5['errors']=[],_0x454ad5['title']='TOOLS.EDIT_INTERVAL',_0x454ad5[_0xe5c1a6(0xcfd)]=angular[_0xe5c1a6(0x289e)](_0x196494),_0x454ad5[_0xe5c1a6(0x15e4)]=_0x4c5fd9,_0x454ad5[_0xe5c1a6(0xf18)]=![],_0x454ad5[_0xe5c1a6(0x269)]=[_0xe5c1a6(0xa66),'custom','list'],_0x454ad5[_0xe5c1a6(0x402)]=_0x3a7e0a,_0x454ad5[_0xe5c1a6(0x121a)]=_0x3ad45a[_0xe5c1a6(0x8b9)](),_0x454ad5[_0xe5c1a6(0x2391)]=_0x3ad45a[_0xe5c1a6(0x17ef)](),_0x454ad5[_0xe5c1a6(0x1c7e)]=_0x3ad45a[_0xe5c1a6(0x273)](),_0x454ad5[_0xe5c1a6(0x1e2a)]=_0x3ad45a[_0xe5c1a6(0xefe)]();if(!_0x454ad5[_0xe5c1a6(0xcfd)])_0x454ad5[_0xe5c1a6(0xcfd)]={'interval':_0xe5c1a6(0x2145)},_0x454ad5[_0xe5c1a6(0x2185)]=_0xe5c1a6(0xa66),_0x454ad5['title']=_0xe5c1a6(0xcbc),_0x454ad5[_0xe5c1a6(0xf18)]=!![];else{if(_0x454ad5[_0xe5c1a6(0xcfd)]['interval']!==_0xe5c1a6(0x2145)){_0x454ad5['type']='custom';const _0x40bb59=_0x454ad5[_0xe5c1a6(0xcfd)][_0xe5c1a6(0xcfd)]['split'](','),_0xb5b34d=_0x40bb59[0x0],_0x405d08=_0x40bb59[0x1],_0x2419d6=_0x40bb59[0x2],_0x88e47b=_0x40bb59[0x3];if(_0xb5b34d!=='*'){const _0x4c6151=_0xb5b34d[_0xe5c1a6(0x282c)]('-')[0x0],_0x5bea26=_0xb5b34d[_0xe5c1a6(0x282c)]('-')[0x1];let _0x2d105a;_0x2d105a=new Date(),_0x2d105a[_0xe5c1a6(0x260)](Number(_0x4c6151[_0xe5c1a6(0x282c)](':')[0x0])),_0x2d105a['setMinutes'](Number(_0x4c6151[_0xe5c1a6(0x282c)](':')[0x1])),_0x454ad5[_0xe5c1a6(0x268d)]=_0x2d105a,_0x2d105a=new Date(),_0x2d105a['setHours'](Number(_0x5bea26[_0xe5c1a6(0x282c)](':')[0x0])),_0x2d105a[_0xe5c1a6(0x1b10)](Number(_0x5bea26['split'](':')[0x1])),_0x454ad5[_0xe5c1a6(0x196a)]=_0x2d105a;}_0x405d08!=='*'&&(_0x454ad5[_0xe5c1a6(0xa8e)]=_0x405d08[_0xe5c1a6(0x282c)]('-')[0x0],_0x454ad5[_0xe5c1a6(0x1297)]=_0x405d08[_0xe5c1a6(0x282c)]('-')[0x1]),_0x2419d6!=='*'&&(_0x454ad5[_0xe5c1a6(0x1e3)]=_0x2419d6[_0xe5c1a6(0x282c)]('-')[0x0],_0x454ad5[_0xe5c1a6(0x15c4)]=_0x2419d6['split']('-')[0x1]),_0x88e47b!=='*'&&(_0x454ad5[_0xe5c1a6(0x205f)]=_0x88e47b[_0xe5c1a6(0x282c)]('-')[0x0],_0x454ad5[_0xe5c1a6(0x1ea4)]=_0x88e47b[_0xe5c1a6(0x282c)]('-')[0x1]);}else _0x454ad5['type']='always';}_0x5ec663['params']['id']&&!_0x454ad5[_0xe5c1a6(0xcfd)][_0xe5c1a6(0x2081)]&&(_0x454ad5[_0xe5c1a6(0xcfd)]['IntervalId']=_0x5ec663[_0xe5c1a6(0x1b48)]['id']);_0x454ad5[_0xe5c1a6(0xcfd)][_0xe5c1a6(0xb71)]&&_0x454ad5[_0xe5c1a6(0xcfd)][_0xe5c1a6(0x2081)]&&(_0x454ad5['type']=_0xe5c1a6(0x2764));_0x454ad5[_0xe5c1a6(0x23c0)]=_0x4f2a63,_0x454ad5['saveInterval']=_0x1dcca5,_0x454ad5['closeDialog']=_0x2e1587;_0x454ad5[_0xe5c1a6(0xcfd)][_0xe5c1a6(0x2081)]&&(_0x5f4e42[_0xe5c1a6(0x4de)](_0xe5c1a6(0x333))?_0x25e257[_0xe5c1a6(0xcfd)][_0xe5c1a6(0x896)]({'fields':'id,name,interval,IntervalId','IntervalId':'null','nolimit':!![]})[_0xe5c1a6(0x15e7)][_0xe5c1a6(0x64a)](function(_0x39ebb2){const _0x31a470=_0xe5c1a6;_0x454ad5[_0x31a470(0x15e4)]=_0x39ebb2[_0x31a470(0x28b8)]||[];})[_0xe5c1a6(0x20cd)](function(_0x3f237b){const _0x15612d=_0xe5c1a6;_0x3bace2[_0x15612d(0x1bd0)]({'title':_0x3f237b[_0x15612d(0x10b3)]?'API:'+_0x3f237b[_0x15612d(0x10b3)]+_0x15612d(0x21db)+_0x3f237b[_0x15612d(0x2115)]:'SYSTEM:GET_INTERVALS','msg':_0x3f237b[_0x15612d(0x1c52)]?JSON[_0x15612d(0x2317)](_0x3f237b['data']):_0x3f237b[_0x15612d(0x2915)]()});}):_0x25e257[_0xe5c1a6(0xcfd)][_0xe5c1a6(0x896)]({'fields':_0xe5c1a6(0x530),'IntervalId':_0xe5c1a6(0x8f1),'nolimit':!![]})['$promise']['then'](function(_0x49f783){_0x454ad5['intervals']=_0x49f783['rows']||[];})[_0xe5c1a6(0x64a)](function(){const _0x1a04cb=_0xe5c1a6;return _0x25e257[_0x1a04cb(0x16b2)]['get']({'userProfileId':_0x454ad5[_0x1a04cb(0x1d3d)][_0x1a04cb(0x21ac)],'sectionId':0x3ec})[_0x1a04cb(0x15e7)];})[_0xe5c1a6(0x64a)](function(_0x1a11c0){const _0x1cf995=_0xe5c1a6,_0x28f966=_0x1a11c0&&_0x1a11c0['rows']?_0x1a11c0[_0x1cf995(0x28b8)][0x0]:null;if(!_0x28f966)_0x454ad5[_0x1cf995(0x15e4)]=[];else{if(!_0x28f966[_0x1cf995(0x11da)])return _0x25e257['userProfileResource'][_0x1cf995(0x896)]({'sectionId':_0x28f966['id']})['$promise'][_0x1cf995(0x64a)](function(_0x33ceb7){const _0x5e6006=_0x1cf995,_0x389c30=_0x33ceb7&&_0x33ceb7['rows']?_0x33ceb7[_0x5e6006(0x28b8)]:[],_0x1be53b=[];let _0x368eea=null;_0x454ad5[_0x5e6006(0xcfd)]&&(_0x368eea=_0x28c606()[_0x5e6006(0x27bc)](_0x454ad5[_0x5e6006(0x15e4)],{'name':_0x454ad5[_0x5e6006(0xcfd)][_0x5e6006(0xb71)]})),_0x368eea&&!_0x28c606()[_0x5e6006(0x25f8)](_0x389c30,[_0x5e6006(0x145),_0x368eea['id']])&&_0x454ad5[_0x5e6006(0x15e4)][_0x5e6006(0x1397)](function(_0x485e02){const _0x212234=_0x5e6006;_0x485e02['id']===_0x368eea['id']&&(_0x485e02[_0x212234(0xd4f)]=![],_0x1be53b[_0x212234(0x1954)](_0x485e02));}),_0x454ad5[_0x5e6006(0x15e4)]=_0x1be53b;});}})[_0xe5c1a6(0x20cd)](function(_0x575038){const _0x9418c6=_0xe5c1a6;_0x3bace2[_0x9418c6(0x1bd0)]({'title':_0x575038[_0x9418c6(0x10b3)]?_0x9418c6(0x575)+_0x575038[_0x9418c6(0x10b3)]+_0x9418c6(0x21db)+_0x575038[_0x9418c6(0x2115)]:_0x9418c6(0xbfb),'msg':_0x575038[_0x9418c6(0x1c52)]?JSON[_0x9418c6(0x2317)](_0x575038[_0x9418c6(0x1c52)]):_0x575038['toString']()});}));function _0x1a53b2(){const _0x4f7f1c=_0xe5c1a6;switch(_0x454ad5[_0x4f7f1c(0x2185)]){case _0x4f7f1c(0xa66):case _0x4f7f1c(0x2764):return _0x4f7f1c(0x2145);case _0x4f7f1c(0x1ad6):{const _0xc664c8=[];if(_0x454ad5[_0x4f7f1c(0x268d)]!=='*'&&_0x454ad5[_0x4f7f1c(0x268d)]&&_0x454ad5[_0x4f7f1c(0x196a)]){const _0x5471b2=(_0x454ad5[_0x4f7f1c(0x268d)]['getHours']()<0xa?'0':'')+_0x454ad5['timeRangeFrom']['getHours']()+':'+((_0x454ad5['timeRangeFrom'][_0x4f7f1c(0x1894)]()<0xa?'0':'')+_0x454ad5['timeRangeFrom'][_0x4f7f1c(0x1894)]()),_0x1f2a85=(_0x454ad5['timeRangeTo'][_0x4f7f1c(0x48a)]()<0xa?'0':'')+_0x454ad5[_0x4f7f1c(0x196a)][_0x4f7f1c(0x48a)]()+':'+((_0x454ad5['timeRangeTo'][_0x4f7f1c(0x1894)]()<0xa?'0':'')+_0x454ad5[_0x4f7f1c(0x196a)][_0x4f7f1c(0x1894)]());_0xc664c8[_0x4f7f1c(0x1954)](_0x5471b2+'-'+_0x1f2a85);}else _0xc664c8[_0x4f7f1c(0x1954)]('*');return _0x454ad5['dayOfWeekFrom']?_0x454ad5[_0x4f7f1c(0x1297)]?_0xc664c8[_0x4f7f1c(0x1954)](_0x454ad5[_0x4f7f1c(0xa8e)]+'-'+_0x454ad5[_0x4f7f1c(0x1297)]):_0xc664c8[_0x4f7f1c(0x1954)](_0x454ad5[_0x4f7f1c(0xa8e)]):_0xc664c8['push']('*'),_0x454ad5[_0x4f7f1c(0x1e3)]?_0x454ad5[_0x4f7f1c(0x15c4)]?_0xc664c8['push'](_0x454ad5[_0x4f7f1c(0x1e3)]+'-'+_0x454ad5[_0x4f7f1c(0x15c4)]):_0xc664c8[_0x4f7f1c(0x1954)](_0x454ad5[_0x4f7f1c(0x1e3)]):_0xc664c8[_0x4f7f1c(0x1954)]('*'),_0x454ad5[_0x4f7f1c(0x205f)]?_0x454ad5[_0x4f7f1c(0x1ea4)]?_0xc664c8[_0x4f7f1c(0x1954)](_0x454ad5[_0x4f7f1c(0x205f)]+'-'+_0x454ad5[_0x4f7f1c(0x1ea4)]):_0xc664c8[_0x4f7f1c(0x1954)](_0x454ad5[_0x4f7f1c(0x205f)]):_0xc664c8['push']('*'),_0xc664c8['join']();}}}function _0x4f2a63(){const _0x3d8364=_0xe5c1a6;_0x454ad5['errors']=[],_0x454ad5[_0x3d8364(0xcfd)][_0x3d8364(0xcfd)]=_0x1a53b2(),_0x25e257[_0x3d8364(0xcfd)][_0x3d8364(0x2479)](_0x454ad5[_0x3d8364(0xcfd)])[_0x3d8364(0x15e7)][_0x3d8364(0x64a)](function(_0x4bb5e0){const _0x10d495=_0x3d8364;_0x454ad5[_0x10d495(0x15e4)][_0x10d495(0x1954)](_0x4bb5e0),_0x3bace2[_0x10d495(0x1339)]({'title':_0x10d495(0x2864),'msg':_0x454ad5['interval'][_0x10d495(0x2494)]?_0x454ad5['interval']['name']+'\x20has\x20been\x20created!':''}),_0x2e1587();})['catch'](function(_0x21f926){const _0x5265f2=_0x3d8364;console[_0x5265f2(0x1bd0)](_0x21f926),_0x454ad5['errors']=_0x21f926[_0x5265f2(0x1c52)][_0x5265f2(0xbae)]||[{'message':_0x21f926[_0x5265f2(0x2915)](),'type':_0x5265f2(0x12a0)}];});}function _0x1dcca5(){const _0x1706f7=_0xe5c1a6;_0x454ad5[_0x1706f7(0xbae)]=[],_0x454ad5[_0x1706f7(0xcfd)][_0x1706f7(0xcfd)]=_0x1a53b2(),_0x454ad5[_0x1706f7(0xcfd)]['application']?(_0x454ad5['type']!=='list'&&(_0x454ad5[_0x1706f7(0xcfd)][_0x1706f7(0xb71)]=null),_0x2e1587(_0x454ad5[_0x1706f7(0xcfd)])):_0x25e257['interval'][_0x1706f7(0x2603)]({'id':_0x454ad5[_0x1706f7(0xcfd)]['id']},_0x454ad5[_0x1706f7(0xcfd)])['$promise'][_0x1706f7(0x64a)](function(_0x20a445){const _0x58d575=_0x1706f7,_0x102ab4=_0x28c606()[_0x58d575(0x27bc)](_0x454ad5[_0x58d575(0x15e4)],{'id':_0x20a445['id']});_0x102ab4&&_0x28c606()['merge'](_0x102ab4,_0x20a445),_0x3bace2[_0x58d575(0x1339)]({'title':_0x58d575(0x2896),'msg':_0x58d575(0x198)}),_0x2e1587();})[_0x1706f7(0x20cd)](function(_0x528522){const _0xa4e8e5=_0x1706f7;console[_0xa4e8e5(0x1bd0)](_0x528522),_0x454ad5[_0xa4e8e5(0xbae)]=_0x528522[_0xa4e8e5(0x1c52)][_0xa4e8e5(0xbae)]||[{'message':_0x528522['toString'](),'type':_0xa4e8e5(0x710)}];});}function _0x2e1587(_0x1c1a62){const _0x2657a3=_0xe5c1a6;_0x1fc218[_0x2657a3(0x268e)](_0x1c1a62);}}const _0x58598a=_0x240221;;_0x3fa3f2[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),'openchannelAccountApp','openchannelAccount',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x3fa3f2(_0x57c927,_0x2a54e6,_0x141ba9,_0x2cf749,_0x2d9814,_0x502a15,_0x91dd11,_0x32da03){const _0x1b0e45=_0x49a1e3,_0x4a9bc3=this;_0x4a9bc3[_0x1b0e45(0x1d3d)]=_0x91dd11[_0x1b0e45(0x808)](),_0x4a9bc3['errors']=[],_0x4a9bc3[_0x1b0e45(0x2021)]='OPENCHANNEL.EDIT_'+(_0x2cf749[_0x1b0e45(0x4f4)]||_0x2cf749[_0x1b0e45(0x16e1)])['toUpperCase'](),_0x4a9bc3[_0x1b0e45(0xbb6)]=angular['copy'](_0x2cf749),_0x4a9bc3[_0x1b0e45(0x402)]=_0x32da03,_0x4a9bc3[_0x1b0e45(0x6c2)]={};if(_0x4a9bc3['noop'][_0x1b0e45(0xacb)])switch(_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x4f4)]?_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x4f4)][_0x1b0e45(0x2554)]():_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x16e1)][_0x1b0e45(0x2554)]()){case _0x1b0e45(0x1ad6):break;case _0x1b0e45(0x1084):{const _0x11f48a=_0x4a9bc3[_0x1b0e45(0xbb6)]['appdata'][_0x1b0e45(0x282c)](',');_0x4a9bc3[_0x1b0e45(0xbb6)]['key']=_0x11f48a[0x0],_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x1cbd)]=_0x11f48a[0x1],_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x31b)]=_0x11f48a['slice'](0x2,_0x11f48a[_0x1b0e45(0x1b9e)])['join'](',');}break;case _0x1b0e45(0x1b1a):{const _0x572db7=_0x4a9bc3[_0x1b0e45(0xbb6)]['appdata'][_0x1b0e45(0x282c)](',');_0x4a9bc3['noop'][_0x1b0e45(0xbfd)]=_0x572db7[0x0],_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x4b2)]=_0x572db7[0x1],_0x4a9bc3[_0x1b0e45(0xbb6)]['privateKey']=_0x572db7[0x2],_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x1cbd)]=_0x572db7[0x3],_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x31b)]=_0x572db7['slice'](0x4,_0x572db7['length'])[_0x1b0e45(0x9a6)](',');}break;case _0x1b0e45(0x290d):{const _0x13369e=_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0xacb)]['split'](',');_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x1466)]=_0x13369e[0x0],_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x1b1)]=_0x13369e[0x1],_0x4a9bc3[_0x1b0e45(0xbb6)]['lexregion']=_0x13369e[0x2],_0x4a9bc3['noop']['botname']=_0x13369e[0x3],_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x31b)]=_0x13369e['slice'](0x4,_0x13369e[_0x1b0e45(0x1b9e)])['join'](',');}break;case _0x1b0e45(0x21a9):{const _0x38685f=_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0xacb)][_0x1b0e45(0x282c)](',');_0x4a9bc3[_0x1b0e45(0xbb6)]['times']=isNaN(_0x38685f[0x0])?_0x38685f[0x0]:parseInt(_0x38685f[0x0],0xa),_0x4a9bc3['noop'][_0x1b0e45(0x39b)]=_0x38685f[_0x1b0e45(0x142e)](0x1,_0x38685f['length'])[_0x1b0e45(0x9a6)](',');}break;case'message':_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x39b)]=_0x4a9bc3[_0x1b0e45(0xbb6)]['appdata'];break;case _0x1b0e45(0x1979):_0x4a9bc3['noop'][_0x1b0e45(0x2494)]=_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0xacb)][_0x1b0e45(0x282c)]('=')[0x0],_0x4a9bc3['noop'][_0x1b0e45(0x1096)]=_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0xacb)][_0x1b0e45(0x282c)]('=')[0x1];break;case'agi':_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x1bd9)]=_0x4a9bc3['noop'][_0x1b0e45(0xacb)];break;default:{const _0x4e15b5=_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0xacb)][_0x1b0e45(0x282c)](',');_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x1096)]=_0x28c606()[_0x1b0e45(0x940)](_0x4e15b5[0x0])?_0x4e15b5[0x0]:isNaN(_0x4e15b5[0x0])?_0x4e15b5[0x0]:parseInt(_0x4e15b5[0x0],0xa);}break;}else{}_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x2185)]&&_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x2185)][_0x1b0e45(0x2554)]()===_0x1b0e45(0xbce)&&_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x4f4)]['toLowerCase']()==='outbounddial'&&(_0x4a9bc3[_0x1b0e45(0xbb6)]['prefix']=_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x267a)]?_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x267a)][_0x1b0e45(0x282c)]('$')[0x0]:undefined,_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x1a9b)]=_0x4a9bc3[_0x1b0e45(0xbb6)][_0x1b0e45(0x1abe)]?_0x1b0e45(0x2489)+_0x4a9bc3['noop'][_0x1b0e45(0x1abe)]:undefined);_0x4a9bc3[_0x1b0e45(0x1ad3)]=_0x51f2d5,_0x4a9bc3[_0x1b0e45(0x16cb)]=_0x1a022f;function _0x51f2d5(){const _0x5c3597=_0x1b0e45;_0x4a9bc3[_0x5c3597(0xbae)]=[];const _0x300bd9=[];_0x4a9bc3[_0x5c3597(0xbb6)]['type']&&_0x4a9bc3[_0x5c3597(0xbb6)]['type']['toLowerCase']()===_0x5c3597(0xbce)&&_0x4a9bc3[_0x5c3597(0xbb6)][_0x5c3597(0x4f4)]==='outboundDial'&&(_0x4a9bc3['noop']['phone']=_0x2d9814[_0x5c3597(0x242b)]?(_0x4a9bc3[_0x5c3597(0xbb6)][_0x5c3597(0x2524)]||'')+_0x5c3597(0x1a75)+_0x2d9814[_0x5c3597(0x242b)]+'}':(_0x4a9bc3[_0x5c3597(0xbb6)][_0x5c3597(0x2524)]||'')+_0x5c3597(0x5ad),_0x2d9814[_0x5c3597(0x1097)]!==_0x5c3597(0x2507)?_0x4a9bc3['noop'][_0x5c3597(0x59e)][_0x5c3597(0x1b28)]('U(xcally-mixmonitor-context)')<0x0&&(_0x4a9bc3[_0x5c3597(0xbb6)][_0x5c3597(0x59e)]+='U(xcally-mixmonitor-context)'):_0x4a9bc3[_0x5c3597(0xbb6)][_0x5c3597(0x59e)]=_0x4a9bc3[_0x5c3597(0xbb6)][_0x5c3597(0x59e)]['replace'](_0x5c3597(0x13e0),''));if(_0x4a9bc3[_0x5c3597(0xbb6)][_0x5c3597(0x4f4)]&&_0x4a9bc3[_0x5c3597(0xbb6)][_0x5c3597(0x4f4)]===_0x5c3597(0x1ad6)){}else switch((_0x4a9bc3[_0x5c3597(0xbb6)][_0x5c3597(0x16e1)]||_0x4a9bc3[_0x5c3597(0xbb6)]['appType'])[_0x5c3597(0x2554)]()){case _0x5c3597(0x1979):_0x4a9bc3[_0x5c3597(0xbb6)][_0x5c3597(0xacb)]=_0x4a9bc3['noop'][_0x5c3597(0x2494)]+'='+_0x4a9bc3[_0x5c3597(0xbb6)]['value'];break;case _0x5c3597(0x1ad6):break;default:_0x300bd9[0x0]=_0x4a9bc3[_0x5c3597(0xbb6)][_0x5c3597(0x1096)],_0x4a9bc3['noop'][_0x5c3597(0xacb)]=_0x300bd9[_0x5c3597(0x9a6)](',');}_0x1a022f(_0x4a9bc3['noop']);}function _0x1a022f(_0xd61254){const _0x5e3183=_0x1b0e45;_0x57c927[_0x5e3183(0x268e)](_0xd61254);}}const _0x15421c=_0x3fa3f2;;_0x549f16[_0x49a1e3(0x1e73)]=['$mdDialog','$q','toasty',_0x49a1e3(0x10d4),_0x49a1e3(0x880),_0x49a1e3(0xa19),'Auth','crudPermissions'];function _0x549f16(_0xe3aab3,_0x439bb9,_0x34fa24,_0x31e463,_0xc0ea34,_0x5c7969,_0x59e957,_0x53b3ae){const _0x55a632=_0x49a1e3,_0x1c8776=this;_0x1c8776['currentUser']=_0x59e957[_0x55a632(0x808)](),_0x1c8776[_0x55a632(0xbae)]=[],_0x1c8776[_0x55a632(0x2021)]=_0x55a632(0x9d5)+(_0x31e463[_0x55a632(0x4f4)]||_0x31e463[_0x55a632(0x16e1)])[_0x55a632(0xa3c)](),_0x1c8776[_0x55a632(0x1e4e)]=angular[_0x55a632(0x289e)](_0x31e463),_0x1c8776[_0x55a632(0x402)]=_0x53b3ae,_0x1c8776['hasModulePermissions']={};if(_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0xacb)])switch(_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x4f4)]?_0x1c8776['queue'][_0x55a632(0x4f4)][_0x55a632(0x2554)]():_0x1c8776['queue']['app'][_0x55a632(0x2554)]()){case _0x55a632(0x1ad6):break;case _0x55a632(0x1084):{const _0x1039d7=_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0xacb)][_0x55a632(0x282c)](',');_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x2125)]=_0x1039d7[0x0],_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x1cbd)]=_0x1039d7[0x1],_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x31b)]=_0x1039d7['slice'](0x2,_0x1039d7[_0x55a632(0x1b9e)])[_0x55a632(0x9a6)](',');}break;case _0x55a632(0x1b1a):{const _0x57bd6c=_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0xacb)][_0x55a632(0x282c)](',');_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0xbfd)]=_0x57bd6c[0x0],_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x4b2)]=_0x57bd6c[0x1],_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x1b1b)]=_0x57bd6c[0x2],_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x1cbd)]=_0x57bd6c[0x3],_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x31b)]=_0x57bd6c[_0x55a632(0x142e)](0x4,_0x57bd6c[_0x55a632(0x1b9e)])[_0x55a632(0x9a6)](',');}break;case _0x55a632(0x290d):{const _0x4c5f25=_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0xacb)][_0x55a632(0x282c)](',');_0x1c8776['queue'][_0x55a632(0x1466)]=_0x4c5f25[0x0],_0x1c8776[_0x55a632(0x1e4e)]['secretaccesskey']=_0x4c5f25[0x1],_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x17a2)]=_0x4c5f25[0x2],_0x1c8776['queue']['botname']=_0x4c5f25[0x3],_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x31b)]=_0x4c5f25[_0x55a632(0x142e)](0x4,_0x4c5f25['length'])['join'](',');}break;case _0x55a632(0x21a9):{const _0x2a9182=_0x1c8776['queue']['appdata']['split'](',');_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x95f)]=isNaN(_0x2a9182[0x0])?_0x2a9182[0x0]:parseInt(_0x2a9182[0x0],0xa),_0x1c8776[_0x55a632(0x1e4e)]['text']=_0x2a9182[_0x55a632(0x142e)](0x1,_0x2a9182[_0x55a632(0x1b9e)])[_0x55a632(0x9a6)](',');}break;case _0x55a632(0x18ca):_0x1c8776[_0x55a632(0x1e4e)]['text']=_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0xacb)];break;case'set':_0x1c8776['queue'][_0x55a632(0x2494)]=_0x1c8776[_0x55a632(0x1e4e)]['appdata'][_0x55a632(0x282c)]('=')[0x0],_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x1096)]=_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0xacb)][_0x55a632(0x282c)]('=')[0x1];break;case _0x55a632(0x1e67):_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x1bd9)]=_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0xacb)];break;default:{const _0x2244ba=_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0xacb)][_0x55a632(0x282c)](',');_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x1e4e)]=_0x28c606()[_0x55a632(0x940)](_0x2244ba[0x0])?_0x2244ba[0x0]:isNaN(_0x2244ba[0x0])?_0x2244ba[0x0]:parseInt(_0x2244ba[0x0],0xa),_0x1c8776['queue'][_0x55a632(0x16d)]=_0x28c606()[_0x55a632(0x940)](_0x2244ba[0x1])?_0x2244ba[0x1]:isNaN(_0x2244ba[0x1])?_0x2244ba[0x1]:parseInt(_0x2244ba[0x1],0xa);}break;}else _0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x1e4e)]=0x12c,_0x1c8776[_0x55a632(0x1e4e)]['timeout']=0x12c;_0x1c8776[_0x55a632(0x1e4e)]['type']&&_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x2185)][_0x55a632(0x2554)]()==='outbound'&&_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x4f4)][_0x55a632(0x2554)]()==='outbounddial'&&(_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x2524)]=_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x267a)]?_0x1c8776[_0x55a632(0x1e4e)]['phone'][_0x55a632(0x282c)]('$')[0x0]:undefined,_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x1a9b)]=_0x1c8776[_0x55a632(0x1e4e)][_0x55a632(0x1abe)]?'CALLERID(all)='+_0x1c8776[_0x55a632(0x1e4e)]['callerID']:undefined);_0x1c8776[_0x55a632(0x1ad3)]=_0x32ae9b,_0x1c8776[_0x55a632(0x16cb)]=_0x46ba93,_0x59e957['hasRole']('admin')?_0x5c7969['openchannelQueue']['get']({'fields':'id,name,type','sort':_0x55a632(0x2494),'nolimit':_0x55a632(0x1685)})[_0x55a632(0x15e7)][_0x55a632(0x64a)](function(_0x2b8ae1){const _0x43d512=_0x55a632;_0x1c8776[_0x43d512(0x1c06)]=_0x2b8ae1[_0x43d512(0x28b8)]||[];})[_0x55a632(0x20cd)](function(_0x355523){const _0x26245c=_0x55a632;_0x34fa24[_0x26245c(0x1bd0)]({'title':_0x355523[_0x26245c(0x10b3)]?_0x26245c(0x575)+_0x355523[_0x26245c(0x10b3)]+'\x20-\x20'+_0x355523['statusText']:_0x26245c(0xe03),'msg':_0x355523[_0x26245c(0x1c52)]?JSON[_0x26245c(0x2317)](_0x355523[_0x26245c(0x1c52)]):_0x355523['toString']()});}):_0x5c7969[_0x55a632(0xb4b)][_0x55a632(0x896)]({'fields':_0x55a632(0x2ba),'sort':_0x55a632(0x2494),'nolimit':_0x55a632(0x1685)})['$promise'][_0x55a632(0x64a)](function(_0x97f27a){const _0xe15ade=_0x55a632;_0x1c8776[_0xe15ade(0x1c06)]=_0x97f27a['rows']||[];})[_0x55a632(0x64a)](function(){const _0x4de8bd=_0x55a632;return _0x5c7969[_0x4de8bd(0x16b2)]['get']({'userProfileId':_0x1c8776['currentUser'][_0x4de8bd(0x21ac)],'sectionId':0x321})[_0x4de8bd(0x15e7)];})['then'](function(_0x2153c1){const _0x4a9a66=_0x55a632,_0x14c509=_0x2153c1&&_0x2153c1[_0x4a9a66(0x28b8)]?_0x2153c1[_0x4a9a66(0x28b8)][0x0]:null;if(!_0x14c509){const _0x18b91d=[];let _0x49e300=null;_0x1c8776['queue']&&(_0x49e300=_0x28c606()['find'](_0x1c8776[_0x4a9a66(0x1c06)],{'name':_0x1c8776[_0x4a9a66(0x1e4e)]['queue']}));for(let _0x16952a=0x0;_0x16952a<_0x1c8776[_0x4a9a66(0x1c06)][_0x4a9a66(0x1b9e)];_0x16952a++){_0x49e300&&_0x1c8776[_0x4a9a66(0x1c06)][_0x16952a]['id']===_0x49e300['id']&&(_0x1c8776['queues'][_0x16952a]['canSelect']=![],_0x18b91d[_0x4a9a66(0x1954)](_0x1c8776[_0x4a9a66(0x1c06)][_0x16952a]));}_0x1c8776[_0x4a9a66(0x1c06)]=_0x18b91d;}else{if(!_0x14c509[_0x4a9a66(0x11da)])return _0x5c7969[_0x4a9a66(0x1617)][_0x4a9a66(0x896)]({'sectionId':_0x14c509['id']})[_0x4a9a66(0x15e7)][_0x4a9a66(0x64a)](function(_0x286b09){const _0x1292fd=_0x4a9a66,_0x2b2936=_0x28c606()['map'](_0x286b09[_0x1292fd(0x28b8)],function(_0x595174){const _0xc1ed03=_0x1292fd;return _0x28c606()[_0xc1ed03(0x27bc)](_0x1c8776[_0xc1ed03(0x1c06)],{'id':_0x595174[_0xc1ed03(0x145)]});});let _0x247096=null;_0x1c8776[_0x1292fd(0x1e4e)]&&(_0x247096=_0x28c606()[_0x1292fd(0x27bc)](_0x1c8776[_0x1292fd(0x1c06)],{'name':_0x1c8776['queue'][_0x1292fd(0x1e4e)]}));if(_0x247096&&!_0x28c606()[_0x1292fd(0x25f8)](_0x2b2936,['id',_0x247096['id']])){const _0x5978a3=_0x28c606()[_0x1292fd(0x27bc)](_0x1c8776['queues'],{'id':_0x247096['id']});_0x5978a3[_0x1292fd(0xd4f)]=![],_0x2b2936['push'](_0x5978a3);}_0x1c8776['queues']=_0x2b2936;});}})['catch'](function(_0x223683){const _0x35fb38=_0x55a632;_0x34fa24[_0x35fb38(0x1bd0)]({'title':_0x223683['status']?_0x35fb38(0x575)+_0x223683[_0x35fb38(0x10b3)]+'\x20-\x20'+_0x223683['statusText']:'SYSTEM:GETqueues','msg':_0x223683[_0x35fb38(0x1c52)]?JSON['stringify'](_0x223683[_0x35fb38(0x1c52)]):_0x223683[_0x35fb38(0x2915)]()});});function _0x32ae9b(){const _0xf2a39b=_0x55a632;_0x1c8776[_0xf2a39b(0xbae)]=[];const _0x2448ce=[];_0x1c8776['queue'][_0xf2a39b(0x2185)]&&_0x1c8776[_0xf2a39b(0x1e4e)][_0xf2a39b(0x2185)]['toLowerCase']()===_0xf2a39b(0xbce)&&_0x1c8776['queue'][_0xf2a39b(0x4f4)]===_0xf2a39b(0x17b6)&&(_0x1c8776[_0xf2a39b(0x1e4e)][_0xf2a39b(0x267a)]=_0xc0ea34[_0xf2a39b(0x242b)]?(_0x1c8776['queue'][_0xf2a39b(0x2524)]||'')+_0xf2a39b(0x1a75)+_0xc0ea34[_0xf2a39b(0x242b)]+'}':(_0x1c8776[_0xf2a39b(0x1e4e)]['prefix']||'')+'${EXTEN}',_0xc0ea34['recordingFormat']!==_0xf2a39b(0x2507)?_0x1c8776['queue']['options'][_0xf2a39b(0x1b28)]('U(xcally-mixmonitor-context)')<0x0&&(_0x1c8776[_0xf2a39b(0x1e4e)][_0xf2a39b(0x59e)]+=_0xf2a39b(0x13e0)):_0x1c8776[_0xf2a39b(0x1e4e)][_0xf2a39b(0x59e)]=_0x1c8776[_0xf2a39b(0x1e4e)][_0xf2a39b(0x59e)][_0xf2a39b(0x1353)]('U(xcally-mixmonitor-context)',''));const _0x2213a6=_0x28c606()['find'](_0x1c8776[_0xf2a39b(0x1c06)],{'name':_0x1c8776[_0xf2a39b(0x1e4e)][_0xf2a39b(0x1e4e)]});_0x2213a6&&(_0x1c8776['queue'][_0x28c606()[_0xf2a39b(0xd56)](_0xf2a39b(0x1215))+_0xf2a39b(0x1fe9)]=_0x2213a6['id']);if(_0x1c8776[_0xf2a39b(0x1e4e)][_0xf2a39b(0x4f4)]&&_0x1c8776[_0xf2a39b(0x1e4e)][_0xf2a39b(0x4f4)]===_0xf2a39b(0x1ad6)){}else switch((_0x1c8776[_0xf2a39b(0x1e4e)]['app']||_0x1c8776[_0xf2a39b(0x1e4e)]['appType'])['toLowerCase']()){case _0xf2a39b(0x1979):_0x1c8776[_0xf2a39b(0x1e4e)]['appdata']=_0x1c8776[_0xf2a39b(0x1e4e)][_0xf2a39b(0x2494)]+'='+_0x1c8776[_0xf2a39b(0x1e4e)][_0xf2a39b(0x1096)];break;case _0xf2a39b(0x1ad6):break;default:_0x2448ce[0x0]=_0x1c8776[_0xf2a39b(0x1e4e)][_0xf2a39b(0x1e4e)],_0x2448ce[0x1]=_0x1c8776[_0xf2a39b(0x1e4e)][_0xf2a39b(0x16d)],_0x1c8776[_0xf2a39b(0x1e4e)][_0xf2a39b(0xacb)]=_0x2448ce[_0xf2a39b(0x9a6)](',');}_0x46ba93(_0x1c8776[_0xf2a39b(0x1e4e)]);}function _0x46ba93(_0x30cc9e){_0xe3aab3['hide'](_0x30cc9e);}}const _0x378962=_0x549f16;;_0x1286b2[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x10d4),_0x49a1e3(0x880),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x402)];function _0x1286b2(_0xaddc5c,_0x1c3bb8,_0x312d3f,_0x27defd,_0x1f759e,_0x23e8f5,_0xaeae3,_0x1eb91){const _0x3a978f=_0x49a1e3,_0x1f273a=this;_0x1f273a[_0x3a978f(0x1d3d)]=_0xaeae3['getCurrentUser'](),_0x1f273a[_0x3a978f(0xbae)]=[],_0x1f273a[_0x3a978f(0x2021)]='OPENCHANNEL.EDIT_'+(_0x27defd['appType']||_0x27defd[_0x3a978f(0x16e1)])['toUpperCase'](),_0x1f273a[_0x3a978f(0x1f06)]=angular['copy'](_0x27defd),_0x1f273a['crudPermissions']=_0x1eb91,_0x1f273a['hasModulePermissions']={};if(_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0xacb)])switch(_0x1f273a['system']['appType']?_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x4f4)]['toLowerCase']():_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x16e1)]['toLowerCase']()){case _0x3a978f(0x1ad6):break;case _0x3a978f(0x1084):{const _0x47d4d4=_0x1f273a['system'][_0x3a978f(0xacb)][_0x3a978f(0x282c)](',');_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x2125)]=_0x47d4d4[0x0],_0x1f273a['system']['language']=_0x47d4d4[0x1],_0x1f273a[_0x3a978f(0x1f06)]['welcomemessage']=_0x47d4d4[_0x3a978f(0x142e)](0x2,_0x47d4d4[_0x3a978f(0x1b9e)])[_0x3a978f(0x9a6)](',');}break;case'dialogflowv2':{const _0x130fcd=_0x1f273a['system'][_0x3a978f(0xacb)][_0x3a978f(0x282c)](',');_0x1f273a['system'][_0x3a978f(0xbfd)]=_0x130fcd[0x0],_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x4b2)]=_0x130fcd[0x1],_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x1b1b)]=_0x130fcd[0x2],_0x1f273a[_0x3a978f(0x1f06)]['language']=_0x130fcd[0x3],_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x31b)]=_0x130fcd['slice'](0x4,_0x130fcd[_0x3a978f(0x1b9e)])[_0x3a978f(0x9a6)](',');}break;case _0x3a978f(0x290d):{const _0x1b6d0f=_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0xacb)][_0x3a978f(0x282c)](',');_0x1f273a[_0x3a978f(0x1f06)]['accesskeyid']=_0x1b6d0f[0x0],_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x1b1)]=_0x1b6d0f[0x1],_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x17a2)]=_0x1b6d0f[0x2],_0x1f273a[_0x3a978f(0x1f06)]['botname']=_0x1b6d0f[0x3],_0x1f273a[_0x3a978f(0x1f06)]['welcomemessage']=_0x1b6d0f[_0x3a978f(0x142e)](0x4,_0x1b6d0f[_0x3a978f(0x1b9e)])['join'](',');}break;case _0x3a978f(0x21a9):{const _0x38f8ab=_0x1f273a['system']['appdata']['split'](',');_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x95f)]=isNaN(_0x38f8ab[0x0])?_0x38f8ab[0x0]:parseInt(_0x38f8ab[0x0],0xa),_0x1f273a[_0x3a978f(0x1f06)]['text']=_0x38f8ab[_0x3a978f(0x142e)](0x1,_0x38f8ab[_0x3a978f(0x1b9e)])[_0x3a978f(0x9a6)](',');}break;case'message':_0x1f273a['system'][_0x3a978f(0x39b)]=_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0xacb)];break;case'set':_0x1f273a['system'][_0x3a978f(0x2494)]=_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0xacb)][_0x3a978f(0x282c)]('=')[0x0],_0x1f273a[_0x3a978f(0x1f06)]['value']=_0x1f273a['system'][_0x3a978f(0xacb)][_0x3a978f(0x282c)]('=')[0x1];break;case _0x3a978f(0x1e67):_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x1bd9)]=_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0xacb)];break;default:{const _0x4540d4=_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0xacb)][_0x3a978f(0x282c)](',');_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0xf42)]=_0x28c606()[_0x3a978f(0x940)](_0x4540d4[0x0])?_0x4540d4[0x0]:isNaN(_0x4540d4[0x0])?_0x4540d4[0x0]:parseInt(_0x4540d4[0x0],0xa),_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0xefb)]=_0x28c606()['isEmpty'](_0x4540d4[0x1])?_0x4540d4[0x1]:isNaN(_0x4540d4[0x1])?_0x4540d4[0x1]:parseInt(_0x4540d4[0x1],0xa);}break;}else _0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0xefb)]='';_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x2185)]&&_0x1f273a['system'][_0x3a978f(0x2185)]['toLowerCase']()===_0x3a978f(0xbce)&&_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x4f4)][_0x3a978f(0x2554)]()===_0x3a978f(0x20eb)&&(_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x2524)]=_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x267a)]?_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x267a)]['split']('$')[0x0]:undefined,_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x1a9b)]=_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x1abe)]?'CALLERID(all)='+_0x1f273a[_0x3a978f(0x1f06)][_0x3a978f(0x1abe)]:undefined);_0x1f273a[_0x3a978f(0x1ad3)]=_0x4f659d,_0x1f273a[_0x3a978f(0x16cb)]=_0x406d04,_0xaeae3[_0x3a978f(0x4de)](_0x3a978f(0x333))?_0x23e8f5[_0x3a978f(0xefb)][_0x3a978f(0x896)]({'fields':_0x3a978f(0x1427),'sort':'name','nolimit':_0x3a978f(0x1685)})[_0x3a978f(0x15e7)]['then'](function(_0x3200be){const _0x344b7b=_0x3a978f;_0x1f273a[_0x344b7b(0x145c)]=_0x3200be[_0x344b7b(0x28b8)]||[];})[_0x3a978f(0x20cd)](function(_0x200e43){const _0x33aa62=_0x3a978f;_0x312d3f[_0x33aa62(0x1bd0)]({'title':_0x200e43[_0x33aa62(0x10b3)]?_0x33aa62(0x575)+_0x200e43[_0x33aa62(0x10b3)]+'\x20-\x20'+_0x200e43['statusText']:'SYSTEM:GET_VARIABLES','msg':_0x200e43['data']?JSON[_0x33aa62(0x2317)](_0x200e43[_0x33aa62(0x1c52)]):_0x200e43[_0x33aa62(0x2915)]()});}):_0x23e8f5[_0x3a978f(0xefb)][_0x3a978f(0x896)]({'fields':'id,name','sort':_0x3a978f(0x2494),'nolimit':_0x3a978f(0x1685)})[_0x3a978f(0x15e7)][_0x3a978f(0x64a)](function(_0x108a00){const _0x217551=_0x3a978f;_0x1f273a[_0x217551(0x145c)]=_0x108a00[_0x217551(0x28b8)]||[];})[_0x3a978f(0x64a)](function(){const _0x20dc10=_0x3a978f;return _0x23e8f5[_0x20dc10(0x16b2)][_0x20dc10(0x896)]({'userProfileId':_0x1f273a['currentUser'][_0x20dc10(0x21ac)],'sectionId':0x3f4})[_0x20dc10(0x15e7)];})['then'](function(_0x2dbaa8){const _0x473aa3=_0x3a978f,_0x2add63=_0x2dbaa8&&_0x2dbaa8[_0x473aa3(0x28b8)]?_0x2dbaa8[_0x473aa3(0x28b8)][0x0]:null;if(!_0x2add63){const _0x5e8af4=[];let _0x15df9e=null;_0x1f273a[_0x473aa3(0x1f06)]&&(_0x15df9e=_0x28c606()[_0x473aa3(0x27bc)](_0x1f273a[_0x473aa3(0x145c)],{'name':_0x1f273a[_0x473aa3(0x1f06)]['variable']}));for(let _0x274baf=0x0;_0x274baf<_0x1f273a[_0x473aa3(0x145c)][_0x473aa3(0x1b9e)];_0x274baf++){_0x15df9e&&_0x1f273a['variables'][_0x274baf]['id']===_0x15df9e['id']&&(_0x1f273a[_0x473aa3(0x145c)][_0x274baf][_0x473aa3(0xd4f)]=![],_0x5e8af4[_0x473aa3(0x1954)](_0x1f273a[_0x473aa3(0x145c)][_0x274baf]));}_0x1f273a[_0x473aa3(0x145c)]=_0x5e8af4;}else{if(!_0x2add63[_0x473aa3(0x11da)])return _0x23e8f5[_0x473aa3(0x1617)][_0x473aa3(0x896)]({'sectionId':_0x2add63['id']})['$promise'][_0x473aa3(0x64a)](function(_0x546831){const _0x48a9fc=_0x473aa3,_0x5a2ef4=_0x28c606()[_0x48a9fc(0x1de5)](_0x546831[_0x48a9fc(0x28b8)],function(_0x46ebe8){const _0x4b130b=_0x48a9fc;return _0x28c606()[_0x4b130b(0x27bc)](_0x1f273a[_0x4b130b(0x145c)],{'id':_0x46ebe8[_0x4b130b(0x145)]});});let _0x58c43e=null;_0x1f273a[_0x48a9fc(0x1f06)]&&(_0x58c43e=_0x28c606()['find'](_0x1f273a[_0x48a9fc(0x145c)],{'name':_0x1f273a[_0x48a9fc(0x1f06)][_0x48a9fc(0xefb)]}));if(_0x58c43e&&!_0x28c606()['some'](_0x5a2ef4,['id',_0x58c43e['id']])){const _0x2e3ec9=_0x28c606()[_0x48a9fc(0x27bc)](_0x1f273a[_0x48a9fc(0x145c)],{'id':_0x58c43e['id']});_0x2e3ec9[_0x48a9fc(0xd4f)]=![],_0x5a2ef4[_0x48a9fc(0x1954)](_0x2e3ec9);}_0x1f273a[_0x48a9fc(0x145c)]=_0x5a2ef4;});}})[_0x3a978f(0x20cd)](function(_0x4de2e9){const _0xb87a0c=_0x3a978f;_0x312d3f[_0xb87a0c(0x1bd0)]({'title':_0x4de2e9[_0xb87a0c(0x10b3)]?'API:'+_0x4de2e9['status']+_0xb87a0c(0x21db)+_0x4de2e9['statusText']:_0xb87a0c(0x284a),'msg':_0x4de2e9['data']?JSON[_0xb87a0c(0x2317)](_0x4de2e9[_0xb87a0c(0x1c52)]):_0x4de2e9[_0xb87a0c(0x2915)]()});});function _0x4f659d(){const _0x4fd80c=_0x3a978f;_0x1f273a[_0x4fd80c(0xbae)]=[];const _0x4b5a8a=[];_0x1f273a[_0x4fd80c(0x1f06)][_0x4fd80c(0x2185)]&&_0x1f273a[_0x4fd80c(0x1f06)][_0x4fd80c(0x2185)][_0x4fd80c(0x2554)]()===_0x4fd80c(0xbce)&&_0x1f273a[_0x4fd80c(0x1f06)][_0x4fd80c(0x4f4)]===_0x4fd80c(0x17b6)&&(_0x1f273a[_0x4fd80c(0x1f06)][_0x4fd80c(0x267a)]=_0x1f759e[_0x4fd80c(0x242b)]?(_0x1f273a[_0x4fd80c(0x1f06)][_0x4fd80c(0x2524)]||'')+'${EXTEN:'+_0x1f759e[_0x4fd80c(0x242b)]+'}':(_0x1f273a[_0x4fd80c(0x1f06)][_0x4fd80c(0x2524)]||'')+_0x4fd80c(0x5ad),_0x1f759e['recordingFormat']!==_0x4fd80c(0x2507)?_0x1f273a['system'][_0x4fd80c(0x59e)][_0x4fd80c(0x1b28)](_0x4fd80c(0x13e0))<0x0&&(_0x1f273a[_0x4fd80c(0x1f06)][_0x4fd80c(0x59e)]+=_0x4fd80c(0x13e0)):_0x1f273a[_0x4fd80c(0x1f06)]['options']=_0x1f273a[_0x4fd80c(0x1f06)][_0x4fd80c(0x59e)]['replace']('U(xcally-mixmonitor-context)',''));if(_0x1f273a[_0x4fd80c(0x1f06)]['appType']&&_0x1f273a[_0x4fd80c(0x1f06)][_0x4fd80c(0x4f4)]===_0x4fd80c(0x1ad6)){}else switch((_0x1f273a['system'][_0x4fd80c(0x16e1)]||_0x1f273a['system'][_0x4fd80c(0x4f4)])[_0x4fd80c(0x2554)]()){case _0x4fd80c(0x1979):_0x1f273a[_0x4fd80c(0x1f06)]['appdata']=_0x1f273a[_0x4fd80c(0x1f06)][_0x4fd80c(0x2494)]+'='+_0x1f273a[_0x4fd80c(0x1f06)][_0x4fd80c(0x1096)];break;case _0x4fd80c(0x1ad6):break;default:_0x4b5a8a[0x0]=_0x1f273a[_0x4fd80c(0x1f06)][_0x4fd80c(0xf42)],_0x4b5a8a[0x1]=_0x1f273a[_0x4fd80c(0x1f06)][_0x4fd80c(0xefb)],_0x1f273a[_0x4fd80c(0x1f06)]['appdata']=_0x4b5a8a[_0x4fd80c(0x9a6)](',');}_0x406d04(_0x1f273a[_0x4fd80c(0x1f06)]);}function _0x406d04(_0x420f61){const _0x178c49=_0x3a978f;_0xaddc5c[_0x178c49(0x268e)](_0x420f61);}}const _0xbd3edf=_0x1286b2;;_0x2a3ce4[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty','openchannelAccountApp',_0x49a1e3(0x880),_0x49a1e3(0xa19),'Auth','crudPermissions'];function _0x2a3ce4(_0x543bbd,_0x8419a8,_0x5a3ff6,_0xcacd2e,_0x398566,_0x954290,_0x18c5a2,_0xfd045f){const _0x4fccda=_0x49a1e3,_0x4d551f=this;_0x4d551f[_0x4fccda(0x1d3d)]=_0x18c5a2[_0x4fccda(0x808)](),_0x4d551f[_0x4fccda(0xbae)]=[],_0x4d551f[_0x4fccda(0x2021)]=_0x4fccda(0x9d5)+(_0xcacd2e['appType']||_0xcacd2e[_0x4fccda(0x16e1)])['toUpperCase'](),_0x4d551f[_0x4fccda(0xac8)]=angular[_0x4fccda(0x289e)](_0xcacd2e),_0x4d551f[_0x4fccda(0x402)]=_0xfd045f,_0x4d551f['hasModulePermissions']={};if(_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0xacb)])switch(_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x4f4)]?_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x4f4)][_0x4fccda(0x2554)]():_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x16e1)][_0x4fccda(0x2554)]()){case _0x4fccda(0x1ad6):break;case _0x4fccda(0x1084):{const _0x26d0c5=_0x4d551f['tag'][_0x4fccda(0xacb)][_0x4fccda(0x282c)](',');_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x2125)]=_0x26d0c5[0x0],_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x1cbd)]=_0x26d0c5[0x1],_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x31b)]=_0x26d0c5[_0x4fccda(0x142e)](0x2,_0x26d0c5[_0x4fccda(0x1b9e)])[_0x4fccda(0x9a6)](',');}break;case'dialogflowv2':{const _0x5b1dc7=_0x4d551f['tag'][_0x4fccda(0xacb)][_0x4fccda(0x282c)](',');_0x4d551f['tag']['projectId']=_0x5b1dc7[0x0],_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x4b2)]=_0x5b1dc7[0x1],_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x1b1b)]=_0x5b1dc7[0x2],_0x4d551f[_0x4fccda(0xac8)]['language']=_0x5b1dc7[0x3],_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x31b)]=_0x5b1dc7['slice'](0x4,_0x5b1dc7['length'])['join'](',');}break;case _0x4fccda(0x290d):{const _0x504f07=_0x4d551f[_0x4fccda(0xac8)]['appdata'][_0x4fccda(0x282c)](',');_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x1466)]=_0x504f07[0x0],_0x4d551f['tag']['secretaccesskey']=_0x504f07[0x1],_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x17a2)]=_0x504f07[0x2],_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x2797)]=_0x504f07[0x3],_0x4d551f['tag'][_0x4fccda(0x31b)]=_0x504f07[_0x4fccda(0x142e)](0x4,_0x504f07['length'])[_0x4fccda(0x9a6)](',');}break;case'autoreply':{const _0x3d9aff=_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0xacb)]['split'](',');_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x95f)]=isNaN(_0x3d9aff[0x0])?_0x3d9aff[0x0]:parseInt(_0x3d9aff[0x0],0xa),_0x4d551f['tag'][_0x4fccda(0x39b)]=_0x3d9aff[_0x4fccda(0x142e)](0x1,_0x3d9aff['length'])[_0x4fccda(0x9a6)](',');}break;case _0x4fccda(0x18ca):_0x4d551f['tag']['text']=_0x4d551f[_0x4fccda(0xac8)]['appdata'];break;case _0x4fccda(0x1979):_0x4d551f['tag'][_0x4fccda(0x2494)]=_0x4d551f['tag'][_0x4fccda(0xacb)][_0x4fccda(0x282c)]('=')[0x0],_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x1096)]=_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0xacb)][_0x4fccda(0x282c)]('=')[0x1];break;case _0x4fccda(0x1e67):_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x1bd9)]=_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0xacb)];break;default:{const _0x4035f4=_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0xacb)][_0x4fccda(0x282c)](',');_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0xac8)]=_0x28c606()[_0x4fccda(0x940)](_0x4035f4[0x0])?_0x4035f4[0x0]:isNaN(_0x4035f4[0x0])?_0x4035f4[0x0]:parseInt(_0x4035f4[0x0],0xa);}break;}else{}_0x4d551f[_0x4fccda(0xac8)]['type']&&_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x2185)][_0x4fccda(0x2554)]()===_0x4fccda(0xbce)&&_0x4d551f[_0x4fccda(0xac8)]['appType'][_0x4fccda(0x2554)]()===_0x4fccda(0x20eb)&&(_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x2524)]=_0x4d551f[_0x4fccda(0xac8)]['phone']?_0x4d551f['tag'][_0x4fccda(0x267a)][_0x4fccda(0x282c)]('$')[0x0]:undefined,_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x1a9b)]=_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x1abe)]?'CALLERID(all)='+_0x4d551f[_0x4fccda(0xac8)][_0x4fccda(0x1abe)]:undefined);_0x4d551f[_0x4fccda(0x1ad3)]=_0x3706ff,_0x4d551f['closeDialog']=_0x1ab402,_0x18c5a2['hasRole'](_0x4fccda(0x333))?_0x954290[_0x4fccda(0xac8)][_0x4fccda(0x896)]({'fields':_0x4fccda(0x1427),'sort':'name','nolimit':'true'})[_0x4fccda(0x15e7)][_0x4fccda(0x64a)](function(_0x4019e4){const _0x4d9e7a=_0x4fccda;_0x4d551f[_0x4d9e7a(0x16a6)]=_0x4019e4[_0x4d9e7a(0x28b8)]||[];})[_0x4fccda(0x20cd)](function(_0x5606e5){const _0x5e4cf3=_0x4fccda;_0x5a3ff6[_0x5e4cf3(0x1bd0)]({'title':_0x5606e5[_0x5e4cf3(0x10b3)]?_0x5e4cf3(0x575)+_0x5606e5['status']+'\x20-\x20'+_0x5606e5[_0x5e4cf3(0x2115)]:_0x5e4cf3(0x28be),'msg':_0x5606e5[_0x5e4cf3(0x1c52)]?JSON[_0x5e4cf3(0x2317)](_0x5606e5[_0x5e4cf3(0x1c52)]):_0x5606e5[_0x5e4cf3(0x2915)]()});}):_0x954290[_0x4fccda(0xac8)][_0x4fccda(0x896)]({'fields':_0x4fccda(0x1427),'sort':'name','nolimit':'true'})['$promise'][_0x4fccda(0x64a)](function(_0x2fbf7a){const _0x168902=_0x4fccda;_0x4d551f[_0x168902(0x16a6)]=_0x2fbf7a['rows']||[];})['then'](function(){const _0x4d093f=_0x4fccda;return _0x954290[_0x4d093f(0x16b2)][_0x4d093f(0x896)]({'userProfileId':_0x4d551f['currentUser'][_0x4d093f(0x21ac)],'sectionId':0x3f0})[_0x4d093f(0x15e7)];})[_0x4fccda(0x64a)](function(_0x333264){const _0x59572b=_0x4fccda,_0x32ac6f=_0x333264&&_0x333264['rows']?_0x333264[_0x59572b(0x28b8)][0x0]:null;if(!_0x32ac6f){const _0x1ced07=[];let _0x59761a=null;_0x4d551f[_0x59572b(0xac8)]&&(_0x59761a=_0x28c606()[_0x59572b(0x27bc)](_0x4d551f[_0x59572b(0x16a6)],{'name':_0x4d551f[_0x59572b(0xac8)][_0x59572b(0xac8)]}));for(let _0xc9742e=0x0;_0xc9742e<_0x4d551f[_0x59572b(0x16a6)][_0x59572b(0x1b9e)];_0xc9742e++){_0x59761a&&_0x4d551f[_0x59572b(0x16a6)][_0xc9742e]['id']===_0x59761a['id']&&(_0x4d551f[_0x59572b(0x16a6)][_0xc9742e][_0x59572b(0xd4f)]=![],_0x1ced07['push'](_0x4d551f['tags'][_0xc9742e]));}_0x4d551f[_0x59572b(0x16a6)]=_0x1ced07;}else{if(!_0x32ac6f[_0x59572b(0x11da)])return _0x954290[_0x59572b(0x1617)][_0x59572b(0x896)]({'sectionId':_0x32ac6f['id']})[_0x59572b(0x15e7)][_0x59572b(0x64a)](function(_0x20a011){const _0x596e49=_0x59572b,_0xd83a4a=_0x28c606()['map'](_0x20a011[_0x596e49(0x28b8)],function(_0x28d21){const _0x2b91c4=_0x596e49;return _0x28c606()[_0x2b91c4(0x27bc)](_0x4d551f[_0x2b91c4(0x16a6)],{'id':_0x28d21[_0x2b91c4(0x145)]});});let _0x2af074=null;_0x4d551f[_0x596e49(0xac8)]&&(_0x2af074=_0x28c606()[_0x596e49(0x27bc)](_0x4d551f[_0x596e49(0x16a6)],{'name':_0x4d551f[_0x596e49(0xac8)][_0x596e49(0xac8)]}));if(_0x2af074&&!_0x28c606()[_0x596e49(0x25f8)](_0xd83a4a,['id',_0x2af074['id']])){const _0x4b9b9c=_0x28c606()[_0x596e49(0x27bc)](_0x4d551f['tags'],{'id':_0x2af074['id']});_0x4b9b9c['canSelect']=![],_0xd83a4a[_0x596e49(0x1954)](_0x4b9b9c);}_0x4d551f[_0x596e49(0x16a6)]=_0xd83a4a;});}})[_0x4fccda(0x20cd)](function(_0x2b525c){const _0x3d229d=_0x4fccda;_0x5a3ff6[_0x3d229d(0x1bd0)]({'title':_0x2b525c[_0x3d229d(0x10b3)]?_0x3d229d(0x575)+_0x2b525c[_0x3d229d(0x10b3)]+_0x3d229d(0x21db)+_0x2b525c[_0x3d229d(0x2115)]:_0x3d229d(0x14a7),'msg':_0x2b525c[_0x3d229d(0x1c52)]?JSON[_0x3d229d(0x2317)](_0x2b525c['data']):_0x2b525c[_0x3d229d(0x2915)]()});});function _0x3706ff(){const _0x2a5465=_0x4fccda;_0x4d551f['errors']=[];const _0x419800=[];_0x4d551f['tag'][_0x2a5465(0x2185)]&&_0x4d551f[_0x2a5465(0xac8)][_0x2a5465(0x2185)][_0x2a5465(0x2554)]()==='outbound'&&_0x4d551f[_0x2a5465(0xac8)][_0x2a5465(0x4f4)]==='outboundDial'&&(_0x4d551f[_0x2a5465(0xac8)][_0x2a5465(0x267a)]=_0x398566[_0x2a5465(0x242b)]?(_0x4d551f[_0x2a5465(0xac8)]['prefix']||'')+'${EXTEN:'+_0x398566[_0x2a5465(0x242b)]+'}':(_0x4d551f[_0x2a5465(0xac8)][_0x2a5465(0x2524)]||'')+_0x2a5465(0x5ad),_0x398566['recordingFormat']!=='none'?_0x4d551f[_0x2a5465(0xac8)][_0x2a5465(0x59e)][_0x2a5465(0x1b28)](_0x2a5465(0x13e0))<0x0&&(_0x4d551f[_0x2a5465(0xac8)][_0x2a5465(0x59e)]+=_0x2a5465(0x13e0)):_0x4d551f[_0x2a5465(0xac8)][_0x2a5465(0x59e)]=_0x4d551f[_0x2a5465(0xac8)][_0x2a5465(0x59e)][_0x2a5465(0x1353)](_0x2a5465(0x13e0),''));const _0x5f39d0=_0x28c606()[_0x2a5465(0x27bc)](_0x4d551f['tags'],{'name':_0x4d551f[_0x2a5465(0xac8)][_0x2a5465(0xac8)]});_0x5f39d0&&(_0x4d551f[_0x2a5465(0xac8)][_0x2a5465(0x923)]=_0x5f39d0['id']);if(_0x4d551f['tag'][_0x2a5465(0x4f4)]&&_0x4d551f[_0x2a5465(0xac8)][_0x2a5465(0x4f4)]===_0x2a5465(0x1ad6)){}else switch((_0x4d551f['tag']['app']||_0x4d551f['tag'][_0x2a5465(0x4f4)])[_0x2a5465(0x2554)]()){case _0x2a5465(0x1979):_0x4d551f['tag']['appdata']=_0x4d551f[_0x2a5465(0xac8)][_0x2a5465(0x2494)]+'='+_0x4d551f[_0x2a5465(0xac8)][_0x2a5465(0x1096)];break;case'custom':break;default:_0x419800[0x0]=_0x4d551f['tag'][_0x2a5465(0xac8)],_0x4d551f[_0x2a5465(0xac8)][_0x2a5465(0xacb)]=_0x419800[_0x2a5465(0x9a6)](',');}_0x1ab402(_0x4d551f[_0x2a5465(0xac8)]);}function _0x1ab402(_0x2c53a2){const _0x201d45=_0x4fccda;_0x543bbd[_0x201d45(0x268e)](_0x2c53a2);}}const _0x699b0a=_0x2a3ce4;;_0x4b6d95[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$q','$translate',_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x680),_0x49a1e3(0xa19),'Auth'];function _0x4b6d95(_0x128fdb,_0x55a60d,_0x126200,_0x336679,_0x1c1080,_0x4b6e6e,_0x1c9867,_0x2b6227,_0x1795dd,_0x39421e,_0x113b2c){const _0x409a3d=_0x49a1e3,_0xa3585c=this;_0xa3585c['currentUser']=_0x113b2c['getCurrentUser'](),_0xa3585c[_0x409a3d(0x880)]={},_0xa3585c[_0x409a3d(0x138f)]={'count':0x0,'rows':[]},_0xa3585c['selectedOpenchannelAccountInteractions']=[],_0xa3585c['crudPermissions'],_0xa3585c[_0x409a3d(0x289a)]={'read':_0x409a3d(0x8f1),'closed':_0x409a3d(0x8f1),'sort':_0x409a3d(0x1b35),'includeAll':_0x409a3d(0x1685),'limit':0xa,'page':0x1},_0xa3585c[_0x409a3d(0x2354)]=_0x107ec9,_0xa3585c[_0x409a3d(0x217e)]=_0x31edd7,_0xa3585c[_0x409a3d(0x1ff6)]=_0x208bf3,_0xa3585c['success']=_0x501b2a,_0xa3585c[_0x409a3d(0x25b1)]=_0x4ee538,_0xa3585c['spyopenchannelInteraction']=_0xa497c9,_0xa3585c[_0x409a3d(0x114f)]=_0x450f68,_0xa3585c[_0x409a3d(0xe37)]=_0x102abc,_0xa3585c[_0x409a3d(0x18ee)]=_0x487030,_0xa3585c['deleteSelectedOpenchannelAccountInteractions']=_0x148935;function _0x107ec9(_0x34548e,_0x2ef0cf){const _0x15486b=_0x409a3d;_0xa3585c['openchannelAccount']=_0x34548e,_0xa3585c['crudPermissions']=typeof _0x2ef0cf!==_0x15486b(0x19a1)?_0x2ef0cf:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xa3585c[_0x15486b(0x289a)]['OpenchannelAccountId']=_0xa3585c['openchannelAccount']['id'],_0xa3585c[_0x15486b(0x1b2f)]={'fields':_0x2764a2()},_0x57ff8a();}function _0x57ff8a(){const _0x25df6d=_0x409a3d;return _0x39421e['tag'][_0x25df6d(0x896)]()[_0x25df6d(0x15e7)][_0x25df6d(0x64a)](function(_0x229d05){const _0x2789d7=_0x25df6d;_0xa3585c[_0x2789d7(0x16a6)]=_0x229d05||{'count':0x0,'rows':[]};})[_0x25df6d(0x64a)](function(){_0xa3585c['quickFilters']=_0x3760a7();});}function _0x3760a7(){const _0x6b21ba=_0x409a3d;return[{'name':_0x6b21ba(0x1967),'key':_0x6b21ba(0x2378),'type':_0x6b21ba(0x232e),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x6b21ba(0x17af),'key':_0x6b21ba(0x12a6),'type':'select','label':_0x6b21ba(0x23f7),'customOptions':[{'value':0x0,'translate':_0x6b21ba(0x13be)},{'value':0x1,'translate':_0x6b21ba(0x1889)},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x6b21ba(0x2311),'key':_0x6b21ba(0x1140),'type':_0x6b21ba(0x2926),'label':_0x6b21ba(0x110d),'customOptions':[{'value':0x0,'translate':_0x6b21ba(0x1313)},{'value':0x1,'translate':_0x6b21ba(0x5cd)},{'value':null,'translate':_0x6b21ba(0x2200)}]},{'name':'Agent','key':'UserId','type':_0x6b21ba(0x2926),'label':_0x6b21ba(0x18bf),'customOptions':[{'value':_0x6b21ba(0x8f1),'translate':_0x6b21ba(0x276d)},{'value':undefined,'translate':_0x6b21ba(0x2200)}]},{'name':_0x6b21ba(0x1e9f),'key':_0x6b21ba(0xac8),'type':_0x6b21ba(0x20ae),'label':_0x6b21ba(0x1208),'options':_0xa3585c[_0x6b21ba(0x16a6)][_0x6b21ba(0x28b8)],'placeholder':_0x6b21ba(0x6a6)}];}function _0x2764a2(){const _0x47d107=_0x409a3d;return[{'name':'Id','column':'id','type':_0x47d107(0x2113)},{'name':_0x47d107(0x1c38),'column':_0x47d107(0x1c38),'type':'autocomplete','options':{'searchFields':[_0x47d107(0x2518),_0x47d107(0x21c4),'email'],'route':{'model':_0x47d107(0xdf5),'action':_0x47d107(0x896),'params':{'fields':'id,firstName,lastName,email','Contact':_0x47d107(0xb96),'nolimit':!![]}},'extraOperators':[_0x47d107(0xe87)],'excludedOperators':[_0x47d107(0x14b5)]}},{'name':_0x47d107(0x1cd9),'column':_0x47d107(0x25bc),'type':'text','options':{'excludedOperators':[_0x47d107(0x1743),_0x47d107(0x14b5)]}},{'name':_0x47d107(0x19fb),'column':_0x47d107(0x2233),'type':'text','options':{'excludedOperators':[_0x47d107(0x1743),'$ne']}},{'name':_0x47d107(0x2311),'column':'closed','type':_0x47d107(0x2926),'values':[{'id':0x0,'translate':_0x47d107(0x1313)},{'id':0x1,'translate':_0x47d107(0x5cd)}],'options':{'excludedOperators':[_0x47d107(0x14b5)]}},{'name':_0x47d107(0x12ad),'column':_0x47d107(0x1098),'type':_0x47d107(0x21b7),'options':{'table':'i','route':{'model':_0x47d107(0x2e8),'action':_0x47d107(0x896),'params':{'role':_0x47d107(0x11ae),'fields':_0x47d107(0xd53),'nolimit':!![]}},'searchFields':[_0x47d107(0x15c),_0x47d107(0x2494)],'extraOperators':['$substring'],'excludedOperators':[_0x47d107(0x14b5)]}},{'name':_0x47d107(0x1178),'column':'Tag','type':'multiselect','options':{'route':{'model':_0x47d107(0xac8),'action':_0x47d107(0x896),'params':{'nolimit':!![]}},'excludedOperators':[_0x47d107(0x9eb)]}},{'name':_0x47d107(0x1967),'column':_0x47d107(0x2378),'type':_0x47d107(0x232e),'options':{'excludedOperators':['$ne']}},{'name':_0x47d107(0xff4),'column':_0x47d107(0x18d3),'type':_0x47d107(0x2926),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x47d107(0x14b5)]}}];}function _0x450f68(){const _0x5daed3=_0x409a3d;_0x1c9867[_0x5daed3(0xa60)]({'controller':_0x5daed3(0x271c),'controllerAs':'vm','templateUrl':_0x46e7cb,'parent':angular[_0x5daed3(0x1f81)](_0x2b6227[_0x5daed3(0xb49)]),'clickOutsideToClose':![],'locals':{'fields':_0xa3585c[_0x5daed3(0x1b2f)][_0x5daed3(0xf26)],'color':undefined,'storagePath':_0x5daed3(0x1100)},'fullscreen':!![]})[_0x5daed3(0x64a)](function(_0x561663){const _0x5c6f33=_0x5daed3;_0xa3585c[_0x5c6f33(0x289a)][_0x5c6f33(0xb58)]=_0x561663===![]?undefined:_0x561663;if(_0xa3585c['query'][_0x5c6f33(0xb58)])_0x4ee538();else _0x561663===![]&&_0x4ee538();})[_0x5daed3(0x20cd)](function(_0x24a275){const _0x4eb34d=_0x5daed3;_0x1795dd[_0x4eb34d(0x1bd0)]({'title':_0x4eb34d(0x2440),'msg':_0x24a275[_0x4eb34d(0x1c52)]?JSON[_0x4eb34d(0x2317)](_0x24a275[_0x4eb34d(0x1c52)][_0x4eb34d(0x18ca)]):_0x24a275[_0x4eb34d(0x2915)]()});});}function _0x208bf3(_0x129f41,_0x4ed4d4,_0x10979d){const _0x5a3baf=_0x409a3d;return _0x39421e[_0x5a3baf(0x1265)][_0x5a3baf(0x19b3)]({'id':_0x129f41['id'],'exists':!![],'attachments':_0x10979d})[_0x5a3baf(0x15e7)]['then'](function(_0x4951eb){const _0x31fa34=_0x5a3baf,_0x25ec55=[_0x4951eb[_0x31fa34(0x5a9)]];let _0x3a49bc=_0x31fa34(0x73a)+_0x129f41['id'];const _0x3436d1=new Blob(_0x25ec55,{'type':_0x4951eb[_0x31fa34(0x2185)]});_0x3a49bc=_0x31fa34(0x7b7)+_0x129f41['id']+_0x31fa34(0x2177);const _0x20716e=window[_0x31fa34(0x123f)][_0x31fa34(0x2978)]('a');_0x20716e['setAttribute']('href',URL[_0x31fa34(0x206)](_0x3436d1)),_0x20716e['setAttribute'](_0x31fa34(0x19b3),_0x3a49bc),document['body'][_0x31fa34(0x2661)](_0x20716e),_0x20716e[_0x31fa34(0x2668)]();})[_0x5a3baf(0x20cd)](function(_0x209bae){const _0x2de131=_0x5a3baf;if(_0x209bae[_0x2de131(0x1c52)]&&_0x209bae['data'][_0x2de131(0xbae)]&&_0x209bae[_0x2de131(0x1c52)][_0x2de131(0xbae)][_0x2de131(0x1b9e)])for(let _0x5061e3=0x0;_0x5061e3<_0x209bae['data']['errors']['length'];_0x5061e3+=0x1){_0x1795dd['error']({'title':_0x209bae[_0x2de131(0x1c52)][_0x2de131(0xbae)][_0x5061e3][_0x2de131(0x2185)],'msg':_0x209bae['data'][_0x2de131(0xbae)][_0x5061e3][_0x2de131(0x18ca)]});}else _0x1795dd[_0x2de131(0x1bd0)]({'title':_0x209bae[_0x2de131(0x10b3)]?'API:'+_0x209bae[_0x2de131(0x10b3)]+_0x2de131(0x21db)+_0x209bae['statusText']:'api.openchannelAccount.save','msg':_0x209bae['data']?JSON[_0x2de131(0x2317)](_0x209bae['data']['message']):_0x209bae['toString']()});});}function _0x31edd7(_0x4f9610,_0x5abe96){const _0x55dace=_0x409a3d,_0x375467=_0x1c9867[_0x55dace(0x856)]()['title'](_0x55dace(0x686))[_0x55dace(0x33a)](_0x55dace(0x50b)+(_0x4f9610[_0x55dace(0x2494)]||_0x4f9610['id']&&_0x28c606()[_0x55dace(0x1766)]('interaction\x20#')+_0x4f9610['id']||_0x55dace(0x73a))+_0x55dace(0x26d0)+_0x55dace(0x4b8))[_0x55dace(0x213e)](_0x55dace(0x1e54))[_0x55dace(0x2283)](_0x5abe96)['ok']('OK')[_0x55dace(0x101a)](_0x55dace(0x18fd));_0x1c9867[_0x55dace(0xa60)](_0x375467)[_0x55dace(0x64a)](function(){_0x487030(_0x4f9610);},function(){const _0xd79358=_0x55dace;console[_0xd79358(0x9b4)](_0xd79358(0x18fd));});}function _0x501b2a(_0x176a33){const _0xa5a5ff=_0x409a3d;_0xa3585c[_0xa5a5ff(0x138f)]=_0x176a33||{'count':0x0,'rows':[]};for(let _0x33fb40=0x0;_0x33fb40<_0xa3585c[_0xa5a5ff(0x138f)][_0xa5a5ff(0x28b8)][_0xa5a5ff(0x1b9e)];_0x33fb40+=0x1){const _0x11d94e=_0xa3585c[_0xa5a5ff(0x138f)][_0xa5a5ff(0x28b8)][_0x33fb40];_0x3e7113(_0x11d94e),_0x11d94e[_0xa5a5ff(0x1b06)]['name']=_0x48ea79(_0x11d94e);}}function _0x4ee538(){const _0x35cfbe=_0x409a3d;_0xa3585c[_0x35cfbe(0x289a)]['offset']=(_0xa3585c[_0x35cfbe(0x289a)]['page']-0x1)*_0xa3585c[_0x35cfbe(0x289a)][_0x35cfbe(0x25bb)],_0xa3585c['promise']=_0x39421e[_0x35cfbe(0x1265)][_0x35cfbe(0x896)](_0xa3585c[_0x35cfbe(0x289a)],_0x501b2a)[_0x35cfbe(0x15e7)];}function _0xa497c9(_0x178d04,_0x42c01e){const _0x490ba8=_0x409a3d;_0x1c9867[_0x490ba8(0xa60)]({'controller':_0x490ba8(0x1836),'controllerAs':'vm','templateUrl':_0x27e3ee,'parent':angular[_0x490ba8(0x1f81)](_0x2b6227['body']),'targetEvent':_0x178d04,'clickOutsideToClose':!![],'onShowing':function(_0xce0a5d){const _0x285a7a=_0x490ba8;_0xce0a5d['vm'][_0x285a7a(0x2354)]({'id':0x1,'channel':_0x285a7a(0x28ad),'interaction':_0x42c01e,'spy':!![]},_0x55a60d['$parent']['vm'][_0x285a7a(0x28d6)]);}});}function _0x487030(_0x548c1d){const _0x128089=_0x409a3d;_0x39421e['openchannelInteraction'][_0x128089(0xabd)]({'id':_0x548c1d['id']})['$promise']['then'](function(){const _0x253c09=_0x128089;_0x28c606()[_0x253c09(0x21c7)](_0xa3585c[_0x253c09(0x138f)]['rows'],{'id':_0x548c1d['id']}),_0xa3585c[_0x253c09(0x138f)][_0x253c09(0xb90)]-=0x1,!_0xa3585c['openchannelAccountInteractions'][_0x253c09(0x28b8)][_0x253c09(0x1b9e)]&&_0x4ee538(),_0x1795dd['success']({'title':_0x253c09(0xa06),'msg':_0x548c1d[_0x253c09(0x2494)]?_0x548c1d[_0x253c09(0x2494)]+_0x253c09(0x1fa8):''});})[_0x128089(0x20cd)](function(_0x37c438){const _0x5d4e02=_0x128089;if(_0x37c438[_0x5d4e02(0x1c52)]&&_0x37c438[_0x5d4e02(0x1c52)][_0x5d4e02(0xbae)]&&_0x37c438[_0x5d4e02(0x1c52)][_0x5d4e02(0xbae)]['length']){_0xa3585c[_0x5d4e02(0xbae)]=_0x37c438['data'][_0x5d4e02(0xbae)]||[{'message':_0x37c438[_0x5d4e02(0x2915)](),'type':'SYSTEM:GETopenchannelAccount'}];for(let _0x5d1451=0x0;_0x5d1451<_0x37c438[_0x5d4e02(0x1c52)][_0x5d4e02(0xbae)][_0x5d4e02(0x1b9e)];_0x5d1451++){_0x1795dd[_0x5d4e02(0x1bd0)]({'title':_0x37c438[_0x5d4e02(0x1c52)][_0x5d4e02(0xbae)][_0x5d1451][_0x5d4e02(0x2185)],'msg':_0x37c438[_0x5d4e02(0x1c52)][_0x5d4e02(0xbae)][_0x5d1451][_0x5d4e02(0x18ca)]});}}else _0x1795dd[_0x5d4e02(0x1bd0)]({'title':_0x37c438['status']?_0x5d4e02(0x575)+_0x37c438[_0x5d4e02(0x10b3)]+'\x20-\x20'+_0x37c438['statusText']:_0x5d4e02(0x1a22),'msg':_0x37c438[_0x5d4e02(0x1c52)]?JSON['stringify'](_0x37c438[_0x5d4e02(0x1c52)][_0x5d4e02(0x18ca)]):_0x37c438[_0x5d4e02(0x18ca)]||_0x37c438[_0x5d4e02(0x2915)]()});});}function _0x102abc(){const _0x4f909d=_0x409a3d,_0x430059=angular[_0x4f909d(0x289e)](_0xa3585c[_0x4f909d(0x22f0)]);return _0xa3585c[_0x4f909d(0x22f0)]=[],_0x430059;}function _0x148935(_0x45f7e1){const _0x456c61=_0x409a3d,_0x4b6803=_0x1c9867[_0x456c61(0x856)]()[_0x456c61(0x2021)](_0x456c61(0x201))['htmlContent'](_0x456c61(0x50b)+_0xa3585c[_0x456c61(0x22f0)][_0x456c61(0x1b9e)]+_0x456c61(0x163e)+'\x20will\x20be\x20deleted.')[_0x456c61(0x213e)](_0x456c61(0xb35))[_0x456c61(0x2283)](_0x45f7e1)['ok']('OK')['cancel']('CANCEL');_0x1c9867['show'](_0x4b6803)[_0x456c61(0x64a)](function(){const _0x3e6fcf=_0x456c61;_0xa3585c[_0x3e6fcf(0x22f0)]['forEach'](function(_0x33f662){_0x487030(_0x33f662);}),_0xa3585c[_0x3e6fcf(0x22f0)]=[];});}function _0x3e7113(_0x30479a){const _0x198b10=_0x409a3d;if(_0x30479a[_0x198b10(0x2519)])_0x30479a[_0x198b10(0xfd7)]=_0x30479a[_0x198b10(0x2519)];else _0x30479a[_0x198b10(0x1c38)]?_0x30479a['contactName']=(_0x30479a[_0x198b10(0x1c38)][_0x198b10(0x2518)]||'')+'\x20'+(_0x30479a[_0x198b10(0x1c38)][_0x198b10(0x21c4)]||''):_0x30479a[_0x198b10(0xfd7)]=_0x1c1080['instant'](_0x198b10(0x1c8d));}function _0x48ea79(_0x28a2d1){const _0x1f50e2=_0x409a3d;if(_0x28a2d1[_0x1f50e2(0x246c)])return _0x28a2d1[_0x1f50e2(0x246c)]===_0xa3585c[_0x1f50e2(0x1d3d)]['id']?_0x1c1080['instant']('DASHBOARDS.ME'):_0x28a2d1[_0x1f50e2(0x1b06)]['fullname']+'\x20<'+_0x28a2d1[_0x1f50e2(0x1b06)][_0x1f50e2(0xe2f)]+'>';return _0x1c1080[_0x1f50e2(0x2292)](_0x1f50e2(0x276d));}let _0x2bbe95=!![],_0x16834f=0x1;_0x55a60d['$watch'](_0x409a3d(0x1200),function(_0xb6905d,_0xadf4e1){const _0x48b813=_0x409a3d;_0x2bbe95?_0x4b6e6e(function(){_0x2bbe95=![];}):(!_0xadf4e1&&(_0x16834f=_0xa3585c['query'][_0x48b813(0xc72)]),_0xb6905d!==_0xadf4e1&&(_0xa3585c[_0x48b813(0x289a)][_0x48b813(0xc72)]=0x1),!_0xb6905d&&(_0xa3585c[_0x48b813(0x289a)]['page']=_0x16834f),_0x4ee538());});}const _0x2680cc=_0x4b6d95;;const _0x293511=_0x2e4a48['p']+_0x49a1e3(0x24f0);;_0x79f5d[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x1674),'$state','$q',_0x49a1e3(0x298c),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x79f5d(_0x272f1b,_0xc72cec,_0x1ffcb3,_0xbd6908,_0x10ac98,_0xec6f29,_0x133be8,_0x136a37,_0x5f711,_0x4b7c8a,_0x4a1db2){const _0x41588e=_0x49a1e3,_0x1d7c60=this;_0x1d7c60[_0x41588e(0x1d3d)]=_0x4a1db2[_0x41588e(0x808)](),_0x1d7c60[_0x41588e(0x880)]={},_0x1d7c60['openchannelAccountOpenchannelCannedAnswers']={'count':0x0,'rows':[]},_0x1d7c60[_0x41588e(0xc9a)]=[],_0x1d7c60['crudPermissions'],_0x1d7c60[_0x41588e(0x289a)]={'fields':_0x41588e(0x9e8),'limit':0xa,'page':0x1},_0x1d7c60[_0x41588e(0x2354)]=_0x552218,_0x1d7c60[_0x41588e(0x217e)]=_0x3626ff,_0x1d7c60['success']=_0x2ba338,_0x1d7c60[_0x41588e(0x2645)]=_0x11151f,_0x1d7c60['createOrEditOpenchannelAccountOpenchannelCannedAnswer']=_0x40af56,_0x1d7c60[_0x41588e(0x187a)]=_0x38d98c,_0x1d7c60[_0x41588e(0x1935)]=_0x3cbf21,_0x1d7c60[_0x41588e(0x624)]=_0x504414;function _0x552218(_0x4317cb,_0x5ef238){const _0x46024f=_0x41588e;_0x1d7c60[_0x46024f(0x880)]=_0x4317cb,_0x1d7c60[_0x46024f(0x402)]=typeof _0x5ef238!=='undefined'?_0x5ef238:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1d7c60[_0x46024f(0x289a)][_0x46024f(0x2859)]=_0x1d7c60['openchannelAccount']['id'],_0x1d7c60[_0x46024f(0x289a)]['id']=_0x1d7c60[_0x46024f(0x880)]['id'],_0x11151f();}function _0x3626ff(_0x47921a,_0x2c6caf){const _0x1115f5=_0x41588e,_0x43b517=_0x133be8[_0x1115f5(0x856)]()[_0x1115f5(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20openchannelCannedAnswer?')[_0x1115f5(0x33a)](''+(_0x47921a[_0x1115f5(0x2494)]||_0x47921a['id']&&_0x28c606()[_0x1115f5(0x1766)](_0x1115f5(0x27f3))+_0x47921a['id']||_0x1115f5(0x543))+_0x1115f5(0x26d0)+'\x20will\x20be\x20deleted.')[_0x1115f5(0x213e)](_0x1115f5(0x6f4))[_0x1115f5(0x2283)](_0x2c6caf)['ok']('OK')[_0x1115f5(0x101a)](_0x1115f5(0x18fd));_0x133be8[_0x1115f5(0xa60)](_0x43b517)[_0x1115f5(0x64a)](function(){_0x3cbf21(_0x47921a);},function(){const _0x40fdd4=_0x1115f5;console[_0x40fdd4(0x9b4)](_0x40fdd4(0x18fd));});}function _0x2ba338(_0x233154){const _0x1bd81d=_0x41588e;_0x1d7c60[_0x1bd81d(0x1ecd)]=_0x233154||{'count':0x0,'rows':[]};}function _0x11151f(){const _0x9966b8=_0x41588e;_0x1d7c60[_0x9966b8(0x289a)][_0x9966b8(0x24f9)]=(_0x1d7c60[_0x9966b8(0x289a)][_0x9966b8(0xc72)]-0x1)*_0x1d7c60[_0x9966b8(0x289a)][_0x9966b8(0x25bb)],_0x1d7c60[_0x9966b8(0x1713)]=_0x4b7c8a['openchannelAccount']['getAnswers'](_0x1d7c60[_0x9966b8(0x289a)],_0x2ba338)[_0x9966b8(0x15e7)];}function _0x40af56(_0x23348f,_0x18ea6f){const _0x29b122=_0x41588e;_0x133be8[_0x29b122(0xa60)]({'controller':'CreateOrEditOpenchannelCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x293511,'parent':angular['element'](_0x136a37[_0x29b122(0xb49)]),'targetEvent':_0x23348f,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x1d7c60['openchannelAccount'],'openchannelCannedAnswer':_0x18ea6f,'openchannelCannedAnswers':_0x1d7c60['openchannelAccountOpenchannelCannedAnswers'][_0x29b122(0x28b8)],'license':null,'setting':null,'crudPermissions':_0x1d7c60[_0x29b122(0x402)]}});}function _0x3cbf21(_0x584852){const _0x1938a5=_0x41588e;_0x4b7c8a[_0x1938a5(0x14c4)][_0x1938a5(0xabd)]({'id':_0x584852['id']})[_0x1938a5(0x15e7)][_0x1938a5(0x64a)](function(){const _0x1191a4=_0x1938a5;_0x28c606()[_0x1191a4(0x21c7)](_0x1d7c60[_0x1191a4(0x1ecd)]['rows'],{'id':_0x584852['id']}),_0x1d7c60['openchannelAccountOpenchannelCannedAnswers']['count']-=0x1,!_0x1d7c60[_0x1191a4(0x1ecd)][_0x1191a4(0x28b8)][_0x1191a4(0x1b9e)]&&_0x11151f(),_0x5f711[_0x1191a4(0x1339)]({'title':_0x1191a4(0x22a8),'msg':_0x584852[_0x1191a4(0x2494)]?_0x584852[_0x1191a4(0x2494)]+'\x20has\x20been\x20deleted!':''});})[_0x1938a5(0x20cd)](function(_0x2294fe){const _0x1b30b5=_0x1938a5;if(_0x2294fe[_0x1b30b5(0x1c52)]&&_0x2294fe[_0x1b30b5(0x1c52)][_0x1b30b5(0xbae)]&&_0x2294fe[_0x1b30b5(0x1c52)]['errors'][_0x1b30b5(0x1b9e)]){_0x1d7c60[_0x1b30b5(0xbae)]=_0x2294fe[_0x1b30b5(0x1c52)][_0x1b30b5(0xbae)]||[{'message':_0x2294fe['toString'](),'type':_0x1b30b5(0x1a22)}];for(let _0xc71387=0x0;_0xc71387<_0x2294fe['data'][_0x1b30b5(0xbae)][_0x1b30b5(0x1b9e)];_0xc71387++){_0x5f711['error']({'title':_0x2294fe['data']['errors'][_0xc71387][_0x1b30b5(0x2185)],'msg':_0x2294fe[_0x1b30b5(0x1c52)]['errors'][_0xc71387]['message']});}}else _0x5f711[_0x1b30b5(0x1bd0)]({'title':_0x2294fe[_0x1b30b5(0x10b3)]?_0x1b30b5(0x575)+_0x2294fe[_0x1b30b5(0x10b3)]+_0x1b30b5(0x21db)+_0x2294fe[_0x1b30b5(0x2115)]:_0x1b30b5(0x1a22),'msg':_0x2294fe[_0x1b30b5(0x1c52)]?JSON[_0x1b30b5(0x2317)](_0x2294fe[_0x1b30b5(0x1c52)][_0x1b30b5(0x18ca)]):_0x2294fe['message']||_0x2294fe[_0x1b30b5(0x2915)]()});});}function _0x38d98c(){const _0x54b6aa=_0x41588e,_0x1e2a6f=angular[_0x54b6aa(0x289e)](_0x1d7c60[_0x54b6aa(0xc9a)]);return _0x1d7c60[_0x54b6aa(0xc9a)]=[],_0x1e2a6f;}function _0x504414(_0x17ba77){const _0x3bd8ab=_0x41588e,_0x4e47ec=_0x133be8[_0x3bd8ab(0x856)]()[_0x3bd8ab(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelCannedAnswers?')[_0x3bd8ab(0x33a)](_0x3bd8ab(0x50b)+_0x1d7c60[_0x3bd8ab(0xc9a)][_0x3bd8ab(0x1b9e)]+_0x3bd8ab(0x163e)+_0x3bd8ab(0x4b8))[_0x3bd8ab(0x213e)](_0x3bd8ab(0x2865))['targetEvent'](_0x17ba77)['ok']('OK')[_0x3bd8ab(0x101a)](_0x3bd8ab(0x18fd));_0x133be8['show'](_0x4e47ec)[_0x3bd8ab(0x64a)](function(){const _0x3bd00e=_0x3bd8ab;_0x1d7c60[_0x3bd00e(0xc9a)][_0x3bd00e(0x1397)](function(_0x17b707){_0x3cbf21(_0x17b707);}),_0x1d7c60[_0x3bd00e(0xc9a)]=[];});}let _0x52c978=!![],_0x24d0b0=0x1;_0xc72cec['$watch'](_0x41588e(0x1200),function(_0x5c998e,_0x1c3628){const _0xbedf58=_0x41588e;_0x52c978?_0xec6f29(function(){_0x52c978=![];}):(!_0x1c3628&&(_0x24d0b0=_0x1d7c60[_0xbedf58(0x289a)][_0xbedf58(0xc72)]),_0x5c998e!==_0x1c3628&&(_0x1d7c60[_0xbedf58(0x289a)][_0xbedf58(0xc72)]=0x1),!_0x5c998e&&(_0x1d7c60['query'][_0xbedf58(0xc72)]=_0x24d0b0),_0x11151f());});}const _0x29e75c=_0x79f5d;;_0x416166[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location','$mdDialog','$q','$translate',_0x49a1e3(0x680),_0x49a1e3(0x2844),'openchannelCannedAnswer',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x416166(_0x526b1d,_0x56705a,_0x346595,_0x2721ee,_0x4cd482,_0x16eeaa,_0x1f9c17,_0x849637,_0x1d47b4,_0x2a36fc,_0x414f66,_0x255242,_0x17544a,_0x39c379){const _0x11a540=_0x49a1e3,_0x15daad=this;_0x15daad[_0x11a540(0x1d3d)]=_0x414f66[_0x11a540(0x808)](),_0x15daad['errors']=[],_0x15daad['setting']=_0x17544a,_0x15daad[_0x11a540(0x1947)]=_0x255242,_0x15daad['crudPermissions']=_0x39c379,_0x15daad[_0x11a540(0x6c2)]={},_0x15daad[_0x11a540(0xccc)]=_0x15daad[_0x11a540(0x28d6)]&&_0x15daad[_0x11a540(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x15daad[_0x11a540(0x2021)]=_0x11a540(0x811),_0x15daad[_0x11a540(0x543)]=angular[_0x11a540(0x289e)](_0x1d47b4),_0x15daad[_0x11a540(0x2844)]=_0x849637,_0x15daad[_0x11a540(0x2478)]=![];!_0x15daad['openchannelCannedAnswer']&&(_0x15daad[_0x11a540(0x543)]={},_0x15daad[_0x11a540(0x2021)]=_0x11a540(0x240d),_0x15daad[_0x11a540(0x2478)]=!![]);_0x56705a['params']['id']&&(_0x15daad['openchannelCannedAnswer']['OpenchannelAccountId']=_0x56705a[_0x11a540(0x1b48)]['id']);_0x15daad[_0x11a540(0x8a7)]=_0x1f7e9d,_0x15daad[_0x11a540(0xc63)]=_0x23e2e7,_0x15daad[_0x11a540(0x1406)]=_0x228eae,_0x15daad[_0x11a540(0x1605)]=_0x3e1616,_0x15daad[_0x11a540(0x16cb)]=_0x5b8115;function _0x1f7e9d(){const _0x2b3370=_0x11a540;_0x15daad['errors']=[],_0x2a36fc[_0x2b3370(0x14c4)][_0x2b3370(0x2479)](_0x15daad[_0x2b3370(0x543)])['$promise'][_0x2b3370(0x64a)](function(_0x1a3f2f){const _0x26143d=_0x2b3370;_0x15daad['openchannelCannedAnswers'][_0x26143d(0x1891)](_0x1a3f2f[_0x26143d(0x14f8)]()),_0x1f9c17['success']({'title':'OpenchannelCannedAnswer\x20properly\x20created','msg':_0x15daad['openchannelCannedAnswer'][_0x26143d(0x2494)]?_0x15daad[_0x26143d(0x543)][_0x26143d(0x2494)]+_0x26143d(0x258d):''}),_0x5b8115(_0x1a3f2f);})[_0x2b3370(0x20cd)](function(_0x525738){const _0x294f38=_0x2b3370;if(_0x525738['data']&&_0x525738[_0x294f38(0x1c52)][_0x294f38(0xbae)]&&_0x525738[_0x294f38(0x1c52)][_0x294f38(0xbae)]['length']){_0x15daad[_0x294f38(0xbae)]=_0x525738[_0x294f38(0x1c52)][_0x294f38(0xbae)]||[{'message':_0x525738[_0x294f38(0x2915)](),'type':_0x294f38(0x932)}];for(let _0xdfcd4=0x0;_0xdfcd4<_0x525738[_0x294f38(0x1c52)][_0x294f38(0xbae)]['length'];_0xdfcd4+=0x1){_0x1f9c17[_0x294f38(0x1bd0)]({'title':_0x525738[_0x294f38(0x1c52)][_0x294f38(0xbae)][_0xdfcd4][_0x294f38(0x2185)],'msg':_0x525738[_0x294f38(0x1c52)][_0x294f38(0xbae)][_0xdfcd4][_0x294f38(0x18ca)]});}}else _0x1f9c17[_0x294f38(0x1bd0)]({'title':_0x525738[_0x294f38(0x10b3)]?_0x294f38(0x575)+_0x525738['status']+_0x294f38(0x21db)+_0x525738[_0x294f38(0x2115)]:'api.cannedAnswer.save','msg':_0x525738[_0x294f38(0x1c52)]?JSON['stringify'](_0x525738['data'][_0x294f38(0x18ca)]):_0x525738[_0x294f38(0x2915)]()});});}function _0x23e2e7(){const _0x537b91=_0x11a540;_0x15daad[_0x537b91(0xbae)]=[],_0x2a36fc[_0x537b91(0x14c4)][_0x537b91(0x2603)]({'id':_0x15daad[_0x537b91(0x543)]['id']},_0x15daad['openchannelCannedAnswer'])[_0x537b91(0x15e7)][_0x537b91(0x64a)](function(_0x2f977b){const _0x3b954f=_0x537b91,_0x3136c9=_0x28c606()[_0x3b954f(0x27bc)](_0x15daad['openchannelCannedAnswers'],{'id':_0x2f977b['id']});_0x3136c9&&_0x28c606()[_0x3b954f(0x14fe)](_0x3136c9,_0x28c606()[_0x3b954f(0x27bb)](_0x2f977b['toJSON'](),_0x28c606()[_0x3b954f(0x1ec6)](_0x3136c9))),_0x1f9c17[_0x3b954f(0x1339)]({'title':_0x3b954f(0x10a7),'msg':_0x15daad[_0x3b954f(0x543)][_0x3b954f(0x2494)]?_0x15daad[_0x3b954f(0x543)][_0x3b954f(0x2494)]+_0x3b954f(0x271):''}),_0x5b8115(_0x2f977b);})[_0x537b91(0x20cd)](function(_0x4a9ca4){const _0x40ff0c=_0x537b91;if(_0x4a9ca4[_0x40ff0c(0x1c52)]&&_0x4a9ca4['data'][_0x40ff0c(0xbae)]&&_0x4a9ca4['data'][_0x40ff0c(0xbae)][_0x40ff0c(0x1b9e)]){_0x15daad['errors']=_0x4a9ca4[_0x40ff0c(0x1c52)][_0x40ff0c(0xbae)]||[{'message':_0x4a9ca4[_0x40ff0c(0x2915)](),'type':_0x40ff0c(0xab6)}];for(let _0x23e96a=0x0;_0x23e96a<_0x4a9ca4[_0x40ff0c(0x1c52)][_0x40ff0c(0xbae)][_0x40ff0c(0x1b9e)];_0x23e96a++){_0x1f9c17['error']({'title':_0x4a9ca4[_0x40ff0c(0x1c52)]['errors'][_0x23e96a][_0x40ff0c(0x2185)],'msg':_0x4a9ca4[_0x40ff0c(0x1c52)][_0x40ff0c(0xbae)][_0x23e96a][_0x40ff0c(0x18ca)]});}}else _0x1f9c17['error']({'title':_0x4a9ca4['status']?_0x40ff0c(0x575)+_0x4a9ca4[_0x40ff0c(0x10b3)]+_0x40ff0c(0x21db)+_0x4a9ca4[_0x40ff0c(0x2115)]:_0x40ff0c(0xab6),'msg':_0x4a9ca4['data']?JSON[_0x40ff0c(0x2317)](_0x4a9ca4['data'][_0x40ff0c(0x18ca)]):_0x4a9ca4[_0x40ff0c(0x2915)]()});});}function _0x228eae(_0x157a35){const _0x3bf522=_0x11a540;_0x15daad[_0x3bf522(0xbae)]=[];const _0x19de17=_0x2721ee[_0x3bf522(0x856)]()['title'](_0x3bf522(0x103a))['content'](_0x3bf522(0x2e6))[_0x3bf522(0x213e)]('Delete\x20OpenchannelCannedAnswer')['ok'](_0x3bf522(0x2664))[_0x3bf522(0x101a)]('Cancel')[_0x3bf522(0x2283)](_0x157a35);_0x2721ee[_0x3bf522(0xa60)](_0x19de17)[_0x3bf522(0x64a)](function(){const _0x51f97b=_0x3bf522;_0x2a36fc[_0x51f97b(0x14c4)][_0x51f97b(0xabd)]({'id':_0x15daad[_0x51f97b(0x543)]['id']})['$promise'][_0x51f97b(0x64a)](function(){const _0x4d3e50=_0x51f97b;_0x28c606()[_0x4d3e50(0x21c7)](_0x15daad[_0x4d3e50(0x2844)],{'id':_0x15daad[_0x4d3e50(0x543)]['id']}),_0x1f9c17['success']({'title':_0x4d3e50(0x2583),'msg':(_0x15daad[_0x4d3e50(0x543)][_0x4d3e50(0x2494)]||_0x4d3e50(0x543))+_0x4d3e50(0x1fa8)}),_0x5b8115(_0x15daad[_0x4d3e50(0x543)]);})['catch'](function(_0x3d0333){const _0x335edc=_0x51f97b;if(_0x3d0333[_0x335edc(0x1c52)]&&_0x3d0333['data'][_0x335edc(0xbae)]&&_0x3d0333[_0x335edc(0x1c52)][_0x335edc(0xbae)][_0x335edc(0x1b9e)]){_0x15daad[_0x335edc(0xbae)]=_0x3d0333[_0x335edc(0x1c52)][_0x335edc(0xbae)]||[{'message':_0x3d0333[_0x335edc(0x2915)](),'type':_0x335edc(0x1ed3)}];for(let _0x14de5f=0x0;_0x14de5f<_0x3d0333[_0x335edc(0x1c52)][_0x335edc(0xbae)]['length'];_0x14de5f++){_0x1f9c17[_0x335edc(0x1bd0)]({'title':_0x3d0333[_0x335edc(0x1c52)][_0x335edc(0xbae)][_0x14de5f]['type'],'msg':_0x3d0333['data'][_0x335edc(0xbae)][_0x14de5f][_0x335edc(0x18ca)]});}}else _0x1f9c17[_0x335edc(0x1bd0)]({'title':_0x3d0333[_0x335edc(0x10b3)]?_0x335edc(0x575)+_0x3d0333[_0x335edc(0x10b3)]+_0x335edc(0x21db)+_0x3d0333[_0x335edc(0x2115)]:_0x335edc(0x1ed3),'msg':_0x3d0333[_0x335edc(0x1c52)]?JSON[_0x335edc(0x2317)](_0x3d0333[_0x335edc(0x1c52)][_0x335edc(0x18ca)]):_0x3d0333[_0x335edc(0x18ca)]||_0x3d0333['toString']()});});},function(){});}function _0x3e1616(_0x307986){return _0x307986===null?undefined:new Date(_0x307986);}function _0x5b8115(_0x28f0df){const _0x1b2fa7=_0x11a540;_0x2721ee[_0x1b2fa7(0x268e)](_0x28f0df);}}const _0x300679=_0x416166;;_0x49111e[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),'$document',_0x49a1e3(0x20d4),'$translate',_0x49a1e3(0xa19),'toasty','Auth'];function _0x49111e(_0x481085,_0x21e37b,_0x3701c7,_0x593aa0,_0x13debc,_0x1a5a6e,_0x465923,_0xa2e1e4,_0x3265c8,_0x1ad735,_0x58485f){const _0x56b6a6=_0x49a1e3,_0x1a384b=this;_0x1a384b['currentUser']=_0x58485f[_0x56b6a6(0x808)](),_0x1a384b[_0x56b6a6(0x16d7)]={'count':0x0,'rows':[]},_0x1a384b[_0x56b6a6(0x1403)]=[],_0x1a384b[_0x56b6a6(0x402)],_0x1a384b[_0x56b6a6(0x20c7)]={'first':_0x56b6a6(0x1d03),'second':'2nd','third':_0x56b6a6(0x157e)},_0x1a384b[_0x56b6a6(0x289a)]={'fields':_0x56b6a6(0x12ce),'sort':_0x56b6a6(0x260c),'limit':0xa,'page':0x1},_0x1a384b[_0x56b6a6(0x2354)]=_0x199459,_0x1a384b[_0x56b6a6(0x217e)]=_0xf51ee8,_0x1a384b[_0x56b6a6(0x1339)]=_0x43a889,_0x1a384b[_0x56b6a6(0xe50)]=_0x4fbd0d,_0x1a384b['createOrEditDisposition']=_0x4c3ada,_0x1a384b[_0x56b6a6(0x17f6)]=_0x1f93f3,_0x1a384b[_0x56b6a6(0x28e3)]=_0x249a77,_0x1a384b['deleteSelectedDispositions']=_0x56bd4a,_0x1a384b['deselectDispositions']=_0x398548,_0x1a384b['selectAllDispositions']=_0x901acb;function _0x199459(_0x38b114,_0x6b0a1b){const _0x7ec2a0=_0x56b6a6;_0x1a384b['openchannelAccount']=_0x38b114||{},_0x1a384b[_0x7ec2a0(0x402)]=typeof _0x6b0a1b!==_0x7ec2a0(0x19a1)?_0x6b0a1b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1a384b[_0x7ec2a0(0x289a)]['OpenchannelAccountId']=_0x1a384b['openchannelAccount']['id'],_0x1a384b['query']['id']=_0x1a384b[_0x7ec2a0(0x880)]['id'],_0x4fbd0d();}function _0x4c3ada(_0x221822,_0x4dfa59){const _0x2cba42=_0x56b6a6;_0x13debc['show']({'controller':'CreateOrEditDispositionDialogController','controllerAs':'vm','templateUrl':_0x482291,'parent':angular[_0x2cba42(0x1f81)](_0x1a5a6e[_0x2cba42(0xb49)]),'targetEvent':_0x221822,'clickOutsideToClose':!![],'locals':{'disposition':_0x4dfa59,'model':{'id':_0x1a384b[_0x2cba42(0x880)]['id'],'field':'OpenchannelAccountId','route':_0x2cba42(0x880)},'license':null,'setting':null,'crudPermissions':_0x1a384b[_0x2cba42(0x402)]}})[_0x2cba42(0x64a)](function(_0x4497a0){if(_0x4497a0)_0x4fbd0d();});}function _0xf51ee8(_0x392568,_0x614efc){const _0x4f29fa=_0x56b6a6,_0x3b7a87=_0x28c606()[_0x4f29fa(0x25f8)](_0x1a384b['dispositions']['rows'],['ParentId',_0x392568['id']]),_0x56a199=_0x13debc[_0x4f29fa(0x856)]()[_0x4f29fa(0x2021)](_0xa2e1e4[_0x4f29fa(0x2292)](_0x4f29fa(0x13a7)))[_0x4f29fa(0x12b8)](_0xa2e1e4[_0x4f29fa(0x2292)](_0x4f29fa(0x2213)+(_0x3b7a87?_0x4f29fa(0x1be):_0x4f29fa(0x1942)),{'name':_0x392568[_0x4f29fa(0x2494)]}))[_0x4f29fa(0x213e)](_0x4f29fa(0xc2c))[_0x4f29fa(0x2283)](_0x614efc)['ok']('OK')[_0x4f29fa(0x101a)](_0xa2e1e4['instant'](_0x4f29fa(0x4f5)));_0x13debc[_0x4f29fa(0xa60)](_0x56a199)[_0x4f29fa(0x64a)](function(){_0x1f93f3(_0x392568);});}function _0x43a889(_0x37db18){_0x1a384b['dispositions']=_0x37db18||{'count':0x0,'rows':[]};}function _0x4fbd0d(){const _0x3b88b5=_0x56b6a6;_0x1a384b[_0x3b88b5(0x289a)][_0x3b88b5(0x24f9)]=(_0x1a384b['query'][_0x3b88b5(0xc72)]-0x1)*_0x1a384b[_0x3b88b5(0x289a)]['limit'],_0x1a384b[_0x3b88b5(0x1713)]=_0x3265c8['openchannelAccount']['getDispositions'](_0x1a384b[_0x3b88b5(0x289a)],_0x43a889)[_0x3b88b5(0x15e7)];}function _0x1f93f3(_0x197893){const _0xa9940e=_0x56b6a6;_0x3265c8['disposition'][_0xa9940e(0xabd)]({'id':_0x197893['id']})[_0xa9940e(0x15e7)][_0xa9940e(0x64a)](function(){const _0x6469a9=_0xa9940e;_0x4fbd0d(),_0x1ad735[_0x6469a9(0x1339)]({'title':_0xa2e1e4[_0x6469a9(0x2292)](_0x6469a9(0x870))});})['catch'](function(_0x3189fb){const _0x423e4a=_0xa9940e;if(_0x3189fb[_0x423e4a(0x1c52)]&&_0x3189fb[_0x423e4a(0x1c52)][_0x423e4a(0xbae)]&&_0x3189fb[_0x423e4a(0x1c52)][_0x423e4a(0xbae)]['length']){_0x1a384b[_0x423e4a(0xbae)]=_0x3189fb['data']['errors']||[{'message':_0x3189fb[_0x423e4a(0x2915)](),'type':_0x423e4a(0x1c37)}];for(let _0x4857b7=0x0;_0x4857b7<_0x3189fb['data'][_0x423e4a(0xbae)][_0x423e4a(0x1b9e)];_0x4857b7++){_0x1ad735[_0x423e4a(0x1bd0)]({'title':_0x3189fb[_0x423e4a(0x1c52)][_0x423e4a(0xbae)][_0x4857b7]['type'],'msg':_0x3189fb[_0x423e4a(0x1c52)][_0x423e4a(0xbae)][_0x4857b7][_0x423e4a(0x18ca)]});}}else _0x1ad735[_0x423e4a(0x1bd0)]({'title':_0x3189fb[_0x423e4a(0x10b3)]?'API:'+_0x3189fb['status']+'\x20-\x20'+_0x3189fb[_0x423e4a(0x2115)]:_0x423e4a(0x1c37),'msg':_0x3189fb[_0x423e4a(0x1c52)]?JSON[_0x423e4a(0x2317)](_0x3189fb[_0x423e4a(0x1c52)][_0x423e4a(0x18ca)]):_0x3189fb[_0x423e4a(0x18ca)]||_0x3189fb[_0x423e4a(0x2915)]()});});}function _0x249a77(){const _0x32c47d=_0x56b6a6,_0x44d85f=angular[_0x32c47d(0x289e)](_0x1a384b[_0x32c47d(0x1403)]);return _0x1a384b[_0x32c47d(0x1403)]=[],_0x44d85f;}function _0x56bd4a(_0x112a7f){const _0x1c5de9=_0x56b6a6,_0x3fd2b0=_0x13debc['confirm']()[_0x1c5de9(0x2021)](_0xa2e1e4['instant']('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE'))['content'](_0xa2e1e4[_0x1c5de9(0x2292)](_0x1c5de9(0x2563),{'total':_0x1a384b[_0x1c5de9(0x1403)][_0x1c5de9(0x1b9e)]}))[_0x1c5de9(0x213e)](_0x1c5de9(0x10e))[_0x1c5de9(0x2283)](_0x112a7f)['ok']('OK')[_0x1c5de9(0x101a)](_0xa2e1e4[_0x1c5de9(0x2292)]('APP.CANCEL'));_0x13debc[_0x1c5de9(0xa60)](_0x3fd2b0)[_0x1c5de9(0x64a)](function(){const _0xa0d5a3=_0x1c5de9;_0x1a384b['selectedDispositions']['forEach'](function(_0x5ca05b){_0x1f93f3(_0x5ca05b);}),_0x1a384b[_0xa0d5a3(0x1403)]=[];});}function _0x398548(){_0x1a384b['selectedDispositions']=[];}function _0x901acb(){const _0x43feb3=_0x56b6a6;_0x1a384b[_0x43feb3(0x1403)]=_0x1a384b[_0x43feb3(0x16d7)][_0x43feb3(0x28b8)];}let _0x3a1be6=!![],_0x412e7f=0x1;_0x481085[_0x56b6a6(0xc62)](_0x56b6a6(0x1200),function(_0x1c2821,_0x3cafa0){const _0x39779b=_0x56b6a6;_0x3a1be6?_0x465923(function(){_0x3a1be6=![];}):(!_0x3cafa0&&(_0x412e7f=_0x1a384b[_0x39779b(0x289a)][_0x39779b(0xc72)]),_0x1c2821!==_0x3cafa0&&(_0x1a384b[_0x39779b(0x289a)][_0x39779b(0xc72)]=0x1),!_0x1c2821&&(_0x1a384b['query']['page']=_0x412e7f),_0x4fbd0d());});}const _0x447c47=_0x49111e;;const _0x45b6a0=_0x2e4a48['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/agentadd/agentadd.html/agentadd.html';;_0x22b719['$inject']=['$state',_0x49a1e3(0x1155),'$mdDialog',_0x49a1e3(0x1373),'$translate',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x880),_0x49a1e3(0x16b2)];function _0x22b719(_0x433296,_0xf9f468,_0x53456d,_0x5c1b6b,_0x249a00,_0x334a41,_0x41651b,_0x3e381b,_0x509b81,_0x3542c2,_0x255655,_0x28bef6){const _0x1a14e1=_0x49a1e3,_0x455dbf=this;_0x455dbf[_0x1a14e1(0x1d3d)]=_0x3542c2[_0x1a14e1(0x808)](),_0x455dbf[_0x1a14e1(0x1947)]=_0x334a41,_0x455dbf[_0x1a14e1(0x28d6)]=_0x41651b,_0x455dbf['passwordPattern']=_0x455dbf['setting'][_0x1a14e1(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x455dbf[_0x1a14e1(0xb36)]=_0xf9f468['protocol']()+_0x1a14e1(0xe1f)+_0xf9f468[_0x1a14e1(0x1e5d)](),_0x455dbf[_0x1a14e1(0x880)]=_0x255655||_0x433296[_0x1a14e1(0x1b48)][_0x1a14e1(0x880)]||{},_0x455dbf[_0x1a14e1(0x16b2)]=_0x28bef6&&_0x28bef6[_0x1a14e1(0xb90)]==0x1?_0x28bef6[_0x1a14e1(0x28b8)][0x0]:null,_0x455dbf[_0x1a14e1(0x402)]=_0x3542c2[_0x1a14e1(0xa7e)](_0x455dbf[_0x1a14e1(0x16b2)]?_0x455dbf[_0x1a14e1(0x16b2)][_0x1a14e1(0x402)]:null),_0x455dbf[_0x1a14e1(0x6c2)]={},_0x455dbf['selectedTab']=_0x433296[_0x1a14e1(0x1b48)][_0x1a14e1(0x1222)]||0x0,_0x455dbf[_0x1a14e1(0x104a)]=_0x3099a1,_0x455dbf['alert']=_0x509b81[_0x1a14e1(0x772)],_0x455dbf[_0x1a14e1(0x1497)]=_0x244955,_0x455dbf[_0x1a14e1(0x81b)]=_0x5c2a02,_0x3542c2[_0x1a14e1(0x4de)](_0x1a14e1(0x333))?_0x3e381b[_0x1a14e1(0x19f8)][_0x1a14e1(0x896)]({'fields':_0x1a14e1(0x1427),'sort':_0x1a14e1(0x2494)})[_0x1a14e1(0x15e7)]['then'](function(_0x3c4bcf){const _0x5b69a6=_0x1a14e1;_0x455dbf['lists']=_0x3c4bcf[_0x5b69a6(0x28b8)]||[];})['catch'](function(_0x2e14c3){const _0xb56584=_0x1a14e1;_0x509b81[_0xb56584(0x1bd0)]({'title':_0x2e14c3['status']?_0xb56584(0x575)+_0x2e14c3[_0xb56584(0x10b3)]+_0xb56584(0x21db)+_0x2e14c3[_0xb56584(0x2115)]:_0xb56584(0x1ed6),'msg':_0x2e14c3[_0xb56584(0x1c52)]?JSON['stringify'](_0x2e14c3[_0xb56584(0x1c52)]):_0x2e14c3['toString']()});}):_0x3e381b[_0x1a14e1(0x19f8)][_0x1a14e1(0x896)]({'fields':_0x1a14e1(0x1427),'sort':'name'})['$promise'][_0x1a14e1(0x64a)](function(_0x3859d9){const _0x5630a1=_0x1a14e1;_0x455dbf[_0x5630a1(0x974)]=_0x3859d9['rows']||[];})[_0x1a14e1(0x64a)](function(){const _0xa328d9=_0x1a14e1;return _0x3e381b['userProfileSection'][_0xa328d9(0x896)]({'userProfileId':_0x455dbf[_0xa328d9(0x1d3d)][_0xa328d9(0x21ac)],'sectionId':0x12d})[_0xa328d9(0x15e7)];})[_0x1a14e1(0x64a)](function(_0x1645ac){const _0x70bbed=_0x1a14e1,_0x57c9d1=_0x1645ac&&_0x1645ac[_0x70bbed(0x28b8)]?_0x1645ac['rows'][0x0]:null;if(!_0x57c9d1){const _0x214f5f=[];let _0x5c63d4=null;_0x455dbf['openchannelAccount']&&(_0x5c63d4=_0x28c606()['find'](_0x455dbf[_0x70bbed(0x974)],{'id':Number(_0x455dbf[_0x70bbed(0x880)][_0x70bbed(0x869)])}));for(let _0x592713=0x0;_0x592713<_0x455dbf['lists']['length'];_0x592713++){_0x5c63d4&&_0x455dbf[_0x70bbed(0x974)][_0x592713]['id']===_0x5c63d4['id']&&(_0x455dbf[_0x70bbed(0x974)][_0x592713][_0x70bbed(0xd4f)]=![],_0x214f5f[_0x70bbed(0x1954)](_0x455dbf[_0x70bbed(0x974)][_0x592713]));}_0x455dbf[_0x70bbed(0x974)]=_0x214f5f;}else{if(!_0x57c9d1[_0x70bbed(0x11da)])return _0x3e381b['userProfileResource'][_0x70bbed(0x896)]({'sectionId':_0x57c9d1['id']})[_0x70bbed(0x15e7)][_0x70bbed(0x64a)](function(_0x4f2ce4){const _0x2ca093=_0x70bbed,_0x3dd697=_0x28c606()['map'](_0x4f2ce4[_0x2ca093(0x28b8)],function(_0x5786bf){const _0x17f200=_0x2ca093;return _0x28c606()['find'](_0x455dbf[_0x17f200(0x974)],{'id':_0x5786bf[_0x17f200(0x145)]});});let _0x4d7bc9=null;_0x455dbf['openchannelAccount']&&(_0x4d7bc9=_0x28c606()[_0x2ca093(0x27bc)](_0x455dbf[_0x2ca093(0x974)],{'id':Number(_0x455dbf[_0x2ca093(0x880)][_0x2ca093(0x869)])}));if(_0x4d7bc9&&!_0x28c606()[_0x2ca093(0x25f8)](_0x3dd697,['id',_0x4d7bc9['id']])){const _0xe58cc5=_0x28c606()['find'](_0x455dbf[_0x2ca093(0x974)],{'id':_0x4d7bc9['id']});_0xe58cc5[_0x2ca093(0xd4f)]=![],_0x3dd697[_0x2ca093(0x1954)](_0xe58cc5);}_0x455dbf[_0x2ca093(0x974)]=_0x3dd697;});}})[_0x1a14e1(0x20cd)](function(_0x17db8a){const _0x1d79ed=_0x1a14e1;_0x509b81[_0x1d79ed(0x1bd0)]({'title':_0x17db8a['status']?_0x1d79ed(0x575)+_0x17db8a[_0x1d79ed(0x10b3)]+_0x1d79ed(0x21db)+_0x17db8a['statusText']:_0x1d79ed(0x1beb),'msg':_0x17db8a[_0x1d79ed(0x1c52)]?JSON[_0x1d79ed(0x2317)](_0x17db8a[_0x1d79ed(0x1c52)]):_0x17db8a[_0x1d79ed(0x2915)]()});}),_0x3e381b[_0x1a14e1(0xdf5)][_0x1a14e1(0xa81)]({'id':_0x455dbf[_0x1a14e1(0x880)][_0x1a14e1(0x869)]})[_0x1a14e1(0x15e7)][_0x1a14e1(0x64a)](function(_0x44dc2e){const _0x31e8ee=_0x1a14e1;_0x455dbf[_0x31e8ee(0xf26)]=[],_0x44dc2e=_0x28c606()[_0x31e8ee(0x2146)](_0x44dc2e['toJSON']());const _0xab271a=['id',_0x31e8ee(0x2378),'updatedAt',_0x31e8ee(0x7c3),_0x31e8ee(0x28f0),_0x31e8ee(0x869),_0x31e8ee(0xfb1)];for(let _0x241d17=0x0;_0x241d17<_0x44dc2e[_0x31e8ee(0x1b9e)];_0x241d17++){!_0x28c606()[_0x31e8ee(0x68a)](_0xab271a,_0x44dc2e[_0x241d17]['columnName'])&&_0x455dbf[_0x31e8ee(0xf26)][_0x31e8ee(0x1954)](_0x44dc2e[_0x241d17]);}})[_0x1a14e1(0x20cd)](function(_0x530203){const _0x544198=_0x1a14e1;_0x509b81[_0x544198(0x1bd0)]({'title':_0x530203['status']?'API:'+_0x530203['status']+_0x544198(0x21db)+_0x530203['statusText']:'SYSTEM:GET_FIELDS','msg':_0x530203['data']?JSON[_0x544198(0x2317)](_0x530203['data']):_0x530203[_0x544198(0x2915)]()});}),_0x3542c2['hasRole'](_0x1a14e1(0x333))?_0x3e381b[_0x1a14e1(0x2826)][_0x1a14e1(0x896)]({'fields':_0x1a14e1(0x1dfb),'sort':_0x1a14e1(0x2494),'nolimit':_0x1a14e1(0x1685)})[_0x1a14e1(0x15e7)][_0x1a14e1(0x64a)](function(_0x216430){const _0x54bfd8=_0x1a14e1;_0x455dbf['pauses']=_0x216430[_0x54bfd8(0x28b8)]||[];})[_0x1a14e1(0x20cd)](function(_0x40291a){const _0x55d50e=_0x1a14e1;_0x509b81[_0x55d50e(0x1bd0)]({'title':_0x40291a[_0x55d50e(0x10b3)]?_0x55d50e(0x575)+_0x40291a[_0x55d50e(0x10b3)]+_0x55d50e(0x21db)+_0x40291a[_0x55d50e(0x2115)]:_0x55d50e(0x1a14),'msg':_0x40291a[_0x55d50e(0x1c52)]?JSON[_0x55d50e(0x2317)](_0x40291a[_0x55d50e(0x1c52)]):_0x40291a[_0x55d50e(0x2915)]()});}):_0x3e381b[_0x1a14e1(0x2826)][_0x1a14e1(0x896)]({'fields':_0x1a14e1(0x1dfb),'sort':_0x1a14e1(0x2494),'nolimit':_0x1a14e1(0x1685)})[_0x1a14e1(0x15e7)][_0x1a14e1(0x64a)](function(_0x28f035){const _0x328090=_0x1a14e1;_0x455dbf[_0x328090(0x23d1)]=_0x28f035[_0x328090(0x28b8)]||[];})[_0x1a14e1(0x64a)](function(){const _0x46a0e7=_0x1a14e1;return _0x3e381b[_0x46a0e7(0x16b2)][_0x46a0e7(0x896)]({'userProfileId':_0x455dbf[_0x46a0e7(0x1d3d)]['userProfileId'],'sectionId':0x3ed})[_0x46a0e7(0x15e7)];})[_0x1a14e1(0x64a)](function(_0x38a097){const _0x52e98c=_0x1a14e1,_0x20ec56=_0x38a097&&_0x38a097[_0x52e98c(0x28b8)]?_0x38a097['rows'][0x0]:null;if(!_0x20ec56)_0x455dbf[_0x52e98c(0x23d1)]=[];else{if(!_0x20ec56[_0x52e98c(0x11da)])return _0x3e381b['userProfileResource']['get']({'sectionId':_0x20ec56['id']})[_0x52e98c(0x15e7)][_0x52e98c(0x64a)](function(_0x3b4eb6){const _0x4c827b=_0x52e98c,_0x4ac360=_0x28c606()[_0x4c827b(0x1de5)](_0x3b4eb6[_0x4c827b(0x28b8)],function(_0x162fd7){const _0x4dbc80=_0x4c827b;return _0x28c606()[_0x4dbc80(0x27bc)](_0x455dbf[_0x4dbc80(0x23d1)],{'id':_0x162fd7['resourceId']});});_0x455dbf[_0x4c827b(0x23d1)][_0x4c827b(0x1397)](function(_0x211f72){const _0x16552a=_0x4c827b;!_0x28c606()[_0x16552a(0x25f8)](_0x4ac360,['id',_0x211f72['id']])&&(_0x211f72['canSelect']=![]),_0x4ac360[_0x16552a(0x1954)](_0x211f72);}),_0x455dbf[_0x4c827b(0x23d1)]=_0x4ac360;});}})[_0x1a14e1(0x20cd)](function(_0x716c57){const _0x3b76d7=_0x1a14e1;_0x509b81[_0x3b76d7(0x1bd0)]({'title':_0x716c57['status']?_0x3b76d7(0x575)+_0x716c57[_0x3b76d7(0x10b3)]+_0x3b76d7(0x21db)+_0x716c57[_0x3b76d7(0x2115)]:_0x3b76d7(0xd4a),'msg':_0x716c57[_0x3b76d7(0x1c52)]?JSON['stringify'](_0x716c57[_0x3b76d7(0x1c52)]):_0x716c57[_0x3b76d7(0x2915)]()});});function _0x3099a1(_0x207846,_0x2cd32d){const _0x1ea45d=_0x1a14e1;_0x53456d[_0x1ea45d(0xa60)]({'controller':_0x1ea45d(0xb42),'controllerAs':'vm','templateUrl':_0x45b6a0,'parent':angular[_0x1ea45d(0x1f81)](_0x5c1b6b[_0x1ea45d(0xb49)]),'targetEvent':_0x2cd32d,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x207846,'openchannelAccounts':_0x455dbf[_0x1ea45d(0xda9)]?_0x455dbf['openchannelAccounts'][_0x1ea45d(0x28b8)]:[],'crudPermissions':_0x455dbf[_0x1ea45d(0x402)],'realtime':![]}});}function _0x244955(){const _0x3e1751=_0x1a14e1;_0x433296['go'](_0x3e1751(0x1129),{},{'reload':_0x3e1751(0x1129)});}function _0x5c2a02(){const _0x43785a=_0x1a14e1;_0x3e381b[_0x43785a(0x880)][_0x43785a(0x2603)]({'id':_0x455dbf[_0x43785a(0x880)]['id']},_0x455dbf[_0x43785a(0x880)])[_0x43785a(0x15e7)][_0x43785a(0x64a)](function(){const _0x3b8f69=_0x43785a;_0x509b81[_0x3b8f69(0x1339)]({'title':'OpenchannelAccount\x20updated!','msg':_0x455dbf['openchannelAccount'][_0x3b8f69(0x2494)]?_0x455dbf[_0x3b8f69(0x880)][_0x3b8f69(0x2494)]+_0x3b8f69(0x2032):''});})[_0x43785a(0x20cd)](function(_0xa50c2e){const _0x887a07=_0x43785a;_0x509b81[_0x887a07(0x1bd0)]({'title':_0xa50c2e[_0x887a07(0x10b3)]?_0x887a07(0x575)+_0xa50c2e[_0x887a07(0x10b3)]+_0x887a07(0x21db)+_0xa50c2e[_0x887a07(0x2115)]:_0x887a07(0x1a22),'msg':_0xa50c2e[_0x887a07(0x1c52)]?JSON[_0x887a07(0x2317)](_0xa50c2e[_0x887a07(0x1c52)]):_0xa50c2e[_0x887a07(0x2915)]()});});}}const _0x5cf15e=_0x22b719;;const _0x967af4=_0x2e4a48['p']+_0x49a1e3(0x2349);;_0x231615[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$window',_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),'$timeout',_0x49a1e3(0x298c),_0x49a1e3(0xda9),_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xa19),'msUtils','toasty',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x231615(_0x45463b,_0x518b2f,_0x3ca9b4,_0x319681,_0x275e08,_0x258bb8,_0x4a956e,_0x3e07f3,_0x34cdcc,_0x5a6802,_0x1f252f,_0x516b8c,_0x46446b,_0x40ac78,_0x5c23a1,_0x2d50e5,_0x4a12ea){const _0x5927b6=_0x49a1e3,_0x5877a4=this;_0x5877a4[_0x5927b6(0x1947)]=_0x2d50e5,_0x5877a4['setting']=_0x4a12ea,_0x5877a4[_0x5927b6(0x1d3d)]=_0x5c23a1[_0x5927b6(0x808)](),_0x5877a4['openchannelAccounts']=_0x34cdcc||{'count':0x0,'rows':[]},_0x5877a4['userProfile']=_0x5a6802,_0x5877a4[_0x5927b6(0x16b2)]=_0x1f252f&&_0x1f252f[_0x5927b6(0xb90)]==0x1?_0x1f252f[_0x5927b6(0x28b8)][0x0]:null,_0x5877a4[_0x5927b6(0x402)]=_0x5c23a1[_0x5927b6(0xa7e)](_0x5877a4['userProfileSection']?_0x5877a4[_0x5927b6(0x16b2)][_0x5927b6(0x402)]:null),_0x5877a4[_0x5927b6(0x185d)]=_0x5927b6(0xda9),_0x5877a4[_0x5927b6(0x300)]='',_0x5877a4[_0x5927b6(0x2748)]=null,_0x5877a4[_0x5927b6(0xe6e)]=[],_0x5877a4[_0x5927b6(0x289a)]={'fields':_0x5927b6(0x2544),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x5877a4[_0x5927b6(0xff6)]=_0x51daed,_0x5877a4[_0x5927b6(0x1531)]=_0x154e03,_0x5877a4[_0x5927b6(0x104a)]=_0x445e82,_0x5877a4[_0x5927b6(0x1262)]=_0x31eb43,_0x5877a4[_0x5927b6(0x1339)]=_0x3caefb,_0x5877a4[_0x5927b6(0x1247)]=_0x42b0f3,_0x5877a4[_0x5927b6(0x18da)]=_0x53d100,_0x5877a4[_0x5927b6(0xdc2)]=_0x246e87,_0x5877a4[_0x5927b6(0x1f01)]=_0x5a18b0,_0x5877a4['deleteSelectedOpenchannelAccounts']=_0x5a5e4e,_0x5877a4[_0x5927b6(0x1a64)]=_0x130079,_0x5877a4['selectAllOpenchannelAccounts']=_0xc781cf,_0x5c23a1['hasRole'](_0x5927b6(0x333))?_0x516b8c[_0x5927b6(0x19f8)][_0x5927b6(0x896)]({'fields':_0x5927b6(0x1427),'sort':_0x5927b6(0x2494)})['$promise']['then'](function(_0xc9e5d2){const _0x486607=_0x5927b6;_0x5877a4[_0x486607(0x974)]=_0xc9e5d2[_0x486607(0x28b8)]||[];})['catch'](function(_0x53a38b){const _0x5db2d3=_0x5927b6;_0x40ac78[_0x5db2d3(0x1bd0)]({'title':_0x53a38b[_0x5db2d3(0x10b3)]?_0x5db2d3(0x575)+_0x53a38b[_0x5db2d3(0x10b3)]+_0x5db2d3(0x21db)+_0x53a38b['statusText']:_0x5db2d3(0x1ed6),'msg':_0x53a38b[_0x5db2d3(0x1c52)]?JSON[_0x5db2d3(0x2317)](_0x53a38b[_0x5db2d3(0x1c52)]):_0x53a38b[_0x5db2d3(0x2915)]()});}):_0x516b8c['cmList'][_0x5927b6(0x896)]({'fields':_0x5927b6(0x1427),'sort':_0x5927b6(0x2494)})[_0x5927b6(0x15e7)][_0x5927b6(0x64a)](function(_0x26fb5b){_0x5877a4['lists']=_0x26fb5b['rows']||[];})[_0x5927b6(0x64a)](function(){const _0x2b20c9=_0x5927b6;return _0x516b8c[_0x2b20c9(0x16b2)]['get']({'userProfileId':_0x5877a4[_0x2b20c9(0x1d3d)][_0x2b20c9(0x21ac)],'sectionId':0x12d})['$promise'];})['then'](function(_0x34c66b){const _0x4072cf=_0x5927b6,_0x31dbb7=_0x34c66b&&_0x34c66b['rows']?_0x34c66b[_0x4072cf(0x28b8)][0x0]:null;if(!_0x31dbb7){const _0x568bd9=[];let _0x236765=null;_0x5877a4[_0x4072cf(0x880)]&&(_0x236765=_0x28c606()['find'](_0x5877a4[_0x4072cf(0x974)],{'id':Number(_0x5877a4['openchannelAccount'][_0x4072cf(0x869)])}));for(let _0x113e08=0x0;_0x113e08<_0x5877a4[_0x4072cf(0x974)][_0x4072cf(0x1b9e)];_0x113e08++){_0x236765&&_0x5877a4[_0x4072cf(0x974)][_0x113e08]['id']===_0x236765['id']&&(_0x5877a4[_0x4072cf(0x974)][_0x113e08][_0x4072cf(0xd4f)]=![],_0x568bd9[_0x4072cf(0x1954)](_0x5877a4[_0x4072cf(0x974)][_0x113e08]));}_0x5877a4[_0x4072cf(0x974)]=_0x568bd9;}else{if(!_0x31dbb7[_0x4072cf(0x11da)])return _0x516b8c[_0x4072cf(0x1617)]['get']({'sectionId':_0x31dbb7['id']})[_0x4072cf(0x15e7)][_0x4072cf(0x64a)](function(_0x158762){const _0x4cfd16=_0x4072cf,_0x431e9e=_0x28c606()[_0x4cfd16(0x1de5)](_0x158762[_0x4cfd16(0x28b8)],function(_0x1648f8){const _0x4959f9=_0x4cfd16;return _0x28c606()[_0x4959f9(0x27bc)](_0x5877a4[_0x4959f9(0x974)],{'id':_0x1648f8[_0x4959f9(0x145)]});});let _0x455c33=null;_0x5877a4[_0x4cfd16(0x880)]&&(_0x455c33=_0x28c606()[_0x4cfd16(0x27bc)](_0x5877a4[_0x4cfd16(0x974)],{'id':Number(_0x5877a4['openchannelAccount']['ListId'])}));if(_0x455c33&&!_0x28c606()[_0x4cfd16(0x25f8)](_0x431e9e,['id',_0x455c33['id']])){const _0x12751f=_0x28c606()[_0x4cfd16(0x27bc)](_0x5877a4[_0x4cfd16(0x974)],{'id':_0x455c33['id']});_0x12751f['canSelect']=![],_0x431e9e['push'](_0x12751f);}_0x5877a4[_0x4cfd16(0x974)]=_0x431e9e;});}})[_0x5927b6(0x20cd)](function(_0x3e73f4){const _0x23e881=_0x5927b6;_0x40ac78[_0x23e881(0x1bd0)]({'title':_0x3e73f4[_0x23e881(0x10b3)]?_0x23e881(0x575)+_0x3e73f4[_0x23e881(0x10b3)]+'\x20-\x20'+_0x3e73f4[_0x23e881(0x2115)]:_0x23e881(0x1beb),'msg':_0x3e73f4['data']?JSON['stringify'](_0x3e73f4['data']):_0x3e73f4[_0x23e881(0x2915)]()});});function _0x51daed(_0x26f340){const _0x4b1a8e=_0x5927b6;_0x3ca9b4['go'](_0x4b1a8e(0x253d),{'id':_0x26f340['id'],'openchannelAccount':_0x26f340,'crudPermissions':_0x5877a4[_0x4b1a8e(0x402)]});}function _0x154e03(_0x1bdb70){_0x3ca9b4['go']('app.openchannel.openchannelAccounts.edit',{'id':_0x1bdb70['id'],'tab':0x5});}function _0x445e82(_0x357a93,_0x277e84){const _0x3e2aa3=_0x5927b6;_0x275e08[_0x3e2aa3(0xa60)]({'controller':_0x3e2aa3(0xb42),'controllerAs':'vm','templateUrl':_0x45b6a0,'parent':angular[_0x3e2aa3(0x1f81)](_0x258bb8[_0x3e2aa3(0xb49)]),'targetEvent':_0x277e84,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x357a93,'openchannelAccounts':_0x5877a4[_0x3e2aa3(0xda9)]?_0x5877a4['openchannelAccounts'][_0x3e2aa3(0x28b8)]:[],'crudPermissions':_0x5877a4['crudPermissions'],'realtime':![]}});}function _0x31eb43(_0x1268ee,_0x26c744){const _0x4e2d2f=_0x5927b6,_0x2b480c=_0x275e08[_0x4e2d2f(0x856)]()[_0x4e2d2f(0x2021)](_0x4e2d2f(0x1231)+_0x28c606()['startCase'](_0x4e2d2f(0x880))+'?')['htmlContent'](''+(_0x1268ee[_0x4e2d2f(0x2494)]||_0x4e2d2f(0x880))+''+'\x20will\x20be\x20deleted.')[_0x4e2d2f(0x213e)](_0x4e2d2f(0x260f))['targetEvent'](_0x26c744)['ok']('OK')[_0x4e2d2f(0x101a)]('CANCEL');_0x275e08[_0x4e2d2f(0xa60)](_0x2b480c)[_0x4e2d2f(0x64a)](function(){_0x246e87(_0x1268ee);},function(){const _0x1d224f=_0x4e2d2f;console[_0x1d224f(0x9b4)]('CANCEL');});}let _0x3a9421=!![],_0x31286a=0x1;_0x45463b['$watch']('vm.query.filter',function(_0x421c87,_0x5510e5){const _0x1acbfa=_0x5927b6;_0x3a9421?_0x4a956e(function(){_0x3a9421=![];}):(!_0x5510e5&&(_0x31286a=_0x5877a4[_0x1acbfa(0x289a)]['page']),_0x421c87!==_0x5510e5&&(_0x5877a4[_0x1acbfa(0x289a)][_0x1acbfa(0xc72)]=0x1),!_0x421c87&&(_0x5877a4['query'][_0x1acbfa(0xc72)]=_0x31286a),_0x5877a4[_0x1acbfa(0x1247)]());});function _0x3caefb(_0x1b53b7){const _0x16bb85=_0x5927b6;_0x5877a4[_0x16bb85(0xda9)]=_0x1b53b7||{'count':0x0,'rows':[]};}function _0x42b0f3(){const _0xa8fb68=_0x5927b6;_0x5877a4[_0xa8fb68(0x289a)][_0xa8fb68(0x24f9)]=(_0x5877a4['query'][_0xa8fb68(0xc72)]-0x1)*_0x5877a4[_0xa8fb68(0x289a)][_0xa8fb68(0x25bb)],_0x5c23a1['hasRole'](_0xa8fb68(0x333))?_0x5877a4[_0xa8fb68(0x1713)]=_0x516b8c[_0xa8fb68(0x880)][_0xa8fb68(0x896)](_0x5877a4[_0xa8fb68(0x289a)],_0x3caefb)['$promise']:(_0x5877a4[_0xa8fb68(0x289a)]['id']=_0x5877a4[_0xa8fb68(0x16a8)]['id'],_0x5877a4[_0xa8fb68(0x289a)][_0xa8fb68(0xa21)]=_0xa8fb68(0x141b),_0x5877a4[_0xa8fb68(0x1713)]=_0x516b8c[_0xa8fb68(0x16a8)][_0xa8fb68(0x2565)](_0x5877a4[_0xa8fb68(0x289a)],_0x3caefb)['$promise']);}function _0x53d100(_0x4e02e3,_0x70fbd5){const _0x121c3a=_0x5927b6;_0x275e08[_0x121c3a(0xa60)]({'controller':'CreateOrEditOpenchannelAccountDialogController','controllerAs':'vm','templateUrl':_0x967af4,'parent':angular['element'](_0x258bb8[_0x121c3a(0xb49)]),'targetEvent':_0x4e02e3,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x70fbd5,'openchannelAccounts':_0x5877a4[_0x121c3a(0xda9)]['rows'],'license':_0x5877a4[_0x121c3a(0x1947)],'setting':_0x5877a4[_0x121c3a(0x28d6)],'crudPermissions':_0x5877a4[_0x121c3a(0x402)]}});}function _0x246e87(_0x4cece1){const _0x3bba83=_0x5927b6;_0x516b8c['openchannelAccount'][_0x3bba83(0xabd)]({'id':_0x4cece1['id']})['$promise'][_0x3bba83(0x64a)](function(){const _0x432627=_0x3bba83;_0x28c606()[_0x432627(0x21c7)](_0x5877a4[_0x432627(0xda9)][_0x432627(0x28b8)],{'id':_0x4cece1['id']}),_0x5877a4[_0x432627(0xda9)][_0x432627(0xb90)]-=0x1,!_0x5877a4[_0x432627(0xda9)][_0x432627(0x28b8)][_0x432627(0x1b9e)]&&_0x5877a4[_0x432627(0x1247)](),_0x40ac78['success']({'title':_0x28c606()[_0x432627(0xc01)](_0x432627(0x1da7))+_0x432627(0x2502),'msg':_0x4cece1['name']?_0x4cece1[_0x432627(0x2494)]+_0x432627(0x1fa8):''});})[_0x3bba83(0x20cd)](function(_0x3ecff5){const _0x136da1=_0x3bba83;if(_0x3ecff5[_0x136da1(0x1c52)]&&_0x3ecff5[_0x136da1(0x1c52)][_0x136da1(0xbae)]&&_0x3ecff5['data'][_0x136da1(0xbae)][_0x136da1(0x1b9e)]){_0x5877a4['errors']=_0x3ecff5[_0x136da1(0x1c52)][_0x136da1(0xbae)]||[{'message':_0x3ecff5[_0x136da1(0x2915)](),'type':'SYSTEM:DELETEopenchannelAccount'}];for(let _0x4aedcc=0x0;_0x4aedcc<_0x3ecff5[_0x136da1(0x1c52)][_0x136da1(0xbae)][_0x136da1(0x1b9e)];_0x4aedcc++){_0x40ac78[_0x136da1(0x1bd0)]({'title':_0x3ecff5[_0x136da1(0x1c52)][_0x136da1(0xbae)][_0x4aedcc][_0x136da1(0x2185)],'msg':_0x3ecff5[_0x136da1(0x1c52)][_0x136da1(0xbae)][_0x4aedcc][_0x136da1(0x18ca)]});}}else _0x40ac78[_0x136da1(0x1bd0)]({'title':_0x3ecff5['status']?'API:'+_0x3ecff5['status']+_0x136da1(0x21db)+_0x3ecff5[_0x136da1(0x2115)]:_0x136da1(0x19f3),'msg':_0x3ecff5[_0x136da1(0x1c52)]?JSON[_0x136da1(0x2317)](_0x3ecff5['data']['message']):_0x3ecff5['message']||_0x3ecff5[_0x136da1(0x2915)]()});});}function _0x5a18b0(){const _0x5adec8=_0x5927b6,_0xd4ffb4=angular['copy'](_0x5877a4[_0x5adec8(0xe6e)]);return _0x5877a4[_0x5adec8(0xe6e)]=[],_0xd4ffb4;}function _0x5a5e4e(_0x131a3b){const _0x72a7ed=_0x5927b6,_0x5739f5=_0x275e08['confirm']()[_0x72a7ed(0x2021)](_0x72a7ed(0x1f5d))[_0x72a7ed(0x33a)](_0x72a7ed(0x50b)+_0x5877a4['selectedOpenchannelAccounts'][_0x72a7ed(0x1b9e)]+_0x72a7ed(0x163e)+'\x20will\x20be\x20deleted.')[_0x72a7ed(0x213e)]('delete\x20OpenchannelAccounts')[_0x72a7ed(0x2283)](_0x131a3b)['ok']('OK')[_0x72a7ed(0x101a)]('CANCEL');_0x275e08[_0x72a7ed(0xa60)](_0x5739f5)[_0x72a7ed(0x64a)](function(){const _0x2affca=_0x72a7ed;_0x5877a4[_0x2affca(0xe6e)]['forEach'](function(_0x1f9349){_0x246e87(_0x1f9349);}),_0x5877a4['selectedOpenchannelAccounts']=[];});}function _0x130079(){const _0x58f383=_0x5927b6;_0x5877a4[_0x58f383(0xe6e)]=[];}function _0xc781cf(){const _0x407497=_0x5927b6;_0x5877a4['selectedOpenchannelAccounts']=_0x5877a4[_0x407497(0xda9)][_0x407497(0x28b8)];}}const _0x296a62=_0x231615;;_0x1d9bf6[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q','$translate','toasty',_0x49a1e3(0x600),'openchannelQueue','api',_0x49a1e3(0xdcf),'license','setting',_0x49a1e3(0x402)];function _0x1d9bf6(_0x193154,_0x4c59f1,_0x14c9e8,_0x4445a7,_0x4cf082,_0xe13c0d,_0x5947ed,_0x4c635d,_0x52b9fc,_0x1b3425,_0x1fb795,_0x1a5407,_0x3b64cb,_0x1b23a3){const _0x56fa2c=_0x49a1e3,_0x3d5d4e=this;_0x3d5d4e['currentUser']=_0x1fb795[_0x56fa2c(0x808)](),_0x3d5d4e[_0x56fa2c(0xbae)]=[],_0x3d5d4e[_0x56fa2c(0x28d6)]=_0x3b64cb,_0x3d5d4e[_0x56fa2c(0x1947)]=_0x1a5407,_0x3d5d4e[_0x56fa2c(0x402)]=_0x1b23a3,_0x3d5d4e[_0x56fa2c(0x6c2)]={},_0x3d5d4e[_0x56fa2c(0xccc)]=_0x3d5d4e[_0x56fa2c(0x28d6)]&&_0x3d5d4e[_0x56fa2c(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3d5d4e[_0x56fa2c(0x2021)]=_0x56fa2c(0x5da),_0x3d5d4e['openchannelQueue']=angular[_0x56fa2c(0x289e)](_0x52b9fc),_0x3d5d4e[_0x56fa2c(0x600)]=_0x4c635d,_0x3d5d4e[_0x56fa2c(0x1775)]=![];!_0x3d5d4e['openchannelQueue']&&(_0x3d5d4e[_0x56fa2c(0xb4b)]={'strategy':_0x56fa2c(0x24e2),'timeout':0xa},_0x3d5d4e[_0x56fa2c(0x2021)]='OPENCHANNEL.NEW_OPENCHANNELQUEUE',_0x3d5d4e['newOpenchannelQueue']=!![]);_0x3d5d4e['addNewOpenchannelQueue']=_0x445a78,_0x3d5d4e[_0x56fa2c(0x285)]=_0x5b02ba,_0x3d5d4e[_0x56fa2c(0x8a3)]=_0x587654,_0x3d5d4e[_0x56fa2c(0x1605)]=_0x4f4767,_0x3d5d4e['closeDialog']=_0x42528e;function _0x445a78(){const _0x41f606=_0x56fa2c;_0x3d5d4e[_0x41f606(0xbae)]=[],_0x1b3425[_0x41f606(0xb4b)][_0x41f606(0x2479)](_0x3d5d4e['openchannelQueue'])[_0x41f606(0x15e7)][_0x41f606(0x64a)](function(_0x4f5302){const _0x56f332=_0x41f606;_0x3d5d4e[_0x56f332(0x600)][_0x56f332(0x1891)](_0x4f5302[_0x56f332(0x14f8)]()),_0x5947ed[_0x56f332(0x1339)]({'title':'OpenchannelQueue\x20properly\x20created','msg':_0x3d5d4e[_0x56f332(0xb4b)]['name']?_0x3d5d4e[_0x56f332(0xb4b)]['name']+_0x56f332(0x258d):''}),_0x42528e(_0x4f5302);})[_0x41f606(0x20cd)](function(_0x2950c6){const _0x367c17=_0x41f606;if(_0x2950c6[_0x367c17(0x1c52)]&&_0x2950c6['data'][_0x367c17(0xbae)]&&_0x2950c6[_0x367c17(0x1c52)][_0x367c17(0xbae)][_0x367c17(0x1b9e)]){_0x3d5d4e[_0x367c17(0xbae)]=_0x2950c6['data'][_0x367c17(0xbae)]||[{'message':_0x2950c6[_0x367c17(0x2915)](),'type':_0x367c17(0xb0c)}];for(let _0x5509d1=0x0;_0x5509d1<_0x2950c6[_0x367c17(0x1c52)]['errors'][_0x367c17(0x1b9e)];_0x5509d1+=0x1){_0x5947ed[_0x367c17(0x1bd0)]({'title':_0x2950c6[_0x367c17(0x1c52)][_0x367c17(0xbae)][_0x5509d1][_0x367c17(0x2185)],'msg':_0x2950c6[_0x367c17(0x1c52)][_0x367c17(0xbae)][_0x5509d1][_0x367c17(0x18ca)]});}}else _0x5947ed['error']({'title':_0x2950c6[_0x367c17(0x10b3)]?_0x367c17(0x575)+_0x2950c6['status']+'\x20-\x20'+_0x2950c6[_0x367c17(0x2115)]:_0x367c17(0xb0c),'msg':_0x2950c6[_0x367c17(0x1c52)]?JSON[_0x367c17(0x2317)](_0x2950c6[_0x367c17(0x1c52)]['message']):_0x2950c6[_0x367c17(0x2915)]()});});}function _0x5b02ba(){const _0x29f286=_0x56fa2c;_0x3d5d4e[_0x29f286(0xbae)]=[],_0x1b3425[_0x29f286(0xb4b)][_0x29f286(0x2603)]({'id':_0x3d5d4e[_0x29f286(0xb4b)]['id']},_0x3d5d4e[_0x29f286(0xb4b)])[_0x29f286(0x15e7)][_0x29f286(0x64a)](function(_0x14d396){const _0x50394f=_0x29f286,_0x297615=_0x28c606()[_0x50394f(0x27bc)](_0x3d5d4e['openchannelQueues'],{'id':_0x14d396['id']});_0x297615&&_0x28c606()['merge'](_0x297615,_0x28c606()[_0x50394f(0x27bb)](_0x14d396['toJSON'](),_0x28c606()['keys'](_0x297615))),_0x5947ed[_0x50394f(0x1339)]({'title':'OpenchannelQueue\x20properly\x20saved!','msg':_0x3d5d4e[_0x50394f(0xb4b)][_0x50394f(0x2494)]?_0x3d5d4e[_0x50394f(0xb4b)][_0x50394f(0x2494)]+_0x50394f(0x271):''}),_0x42528e(_0x14d396);})[_0x29f286(0x20cd)](function(_0x595fe1){const _0x2ce414=_0x29f286;if(_0x595fe1['data']&&_0x595fe1[_0x2ce414(0x1c52)]['errors']&&_0x595fe1[_0x2ce414(0x1c52)][_0x2ce414(0xbae)]['length']){_0x3d5d4e[_0x2ce414(0xbae)]=_0x595fe1[_0x2ce414(0x1c52)]['errors']||[{'message':_0x595fe1[_0x2ce414(0x2915)](),'type':'api.openchannelQueue.update'}];for(let _0x198fca=0x0;_0x198fca<_0x595fe1[_0x2ce414(0x1c52)]['errors']['length'];_0x198fca++){_0x5947ed['error']({'title':_0x595fe1['data'][_0x2ce414(0xbae)][_0x198fca]['type'],'msg':_0x595fe1[_0x2ce414(0x1c52)][_0x2ce414(0xbae)][_0x198fca]['message']});}}else _0x5947ed['error']({'title':_0x595fe1[_0x2ce414(0x10b3)]?_0x2ce414(0x575)+_0x595fe1[_0x2ce414(0x10b3)]+_0x2ce414(0x21db)+_0x595fe1[_0x2ce414(0x2115)]:_0x2ce414(0x1bf3),'msg':_0x595fe1['data']?JSON[_0x2ce414(0x2317)](_0x595fe1['data'][_0x2ce414(0x18ca)]):_0x595fe1[_0x2ce414(0x2915)]()});});}function _0x587654(_0x33d654){const _0x3e8211=_0x56fa2c;_0x3d5d4e[_0x3e8211(0xbae)]=[];const _0x27f90d=_0x4445a7[_0x3e8211(0x856)]()['title'](_0x3e8211(0x103a))['content'](_0x3e8211(0x12e6))['ariaLabel'](_0x3e8211(0x1eae))['ok']('Delete')['cancel'](_0x3e8211(0x1dc6))['targetEvent'](_0x33d654);_0x4445a7[_0x3e8211(0xa60)](_0x27f90d)[_0x3e8211(0x64a)](function(){const _0x2c1aa1=_0x3e8211;_0x1b3425['openchannelQueue'][_0x2c1aa1(0xabd)]({'id':_0x3d5d4e['openchannelQueue']['id']})[_0x2c1aa1(0x15e7)][_0x2c1aa1(0x64a)](function(){const _0x5aed28=_0x2c1aa1;_0x28c606()['remove'](_0x3d5d4e['openchannelQueues'],{'id':_0x3d5d4e['openchannelQueue']['id']}),_0x5947ed[_0x5aed28(0x1339)]({'title':_0x5aed28(0x817),'msg':(_0x3d5d4e['openchannelQueue'][_0x5aed28(0x2494)]||_0x5aed28(0xb4b))+_0x5aed28(0x1fa8)}),_0x42528e(_0x3d5d4e['openchannelQueue']);})['catch'](function(_0x2d7965){const _0x17341a=_0x2c1aa1;if(_0x2d7965[_0x17341a(0x1c52)]&&_0x2d7965[_0x17341a(0x1c52)]['errors']&&_0x2d7965[_0x17341a(0x1c52)]['errors'][_0x17341a(0x1b9e)]){_0x3d5d4e['errors']=_0x2d7965['data'][_0x17341a(0xbae)]||[{'message':_0x2d7965[_0x17341a(0x2915)](),'type':_0x17341a(0xc59)}];for(let _0x239c00=0x0;_0x239c00<_0x2d7965[_0x17341a(0x1c52)][_0x17341a(0xbae)][_0x17341a(0x1b9e)];_0x239c00++){_0x5947ed[_0x17341a(0x1bd0)]({'title':_0x2d7965[_0x17341a(0x1c52)][_0x17341a(0xbae)][_0x239c00][_0x17341a(0x2185)],'msg':_0x2d7965[_0x17341a(0x1c52)][_0x17341a(0xbae)][_0x239c00][_0x17341a(0x18ca)]});}}else _0x5947ed['error']({'title':_0x2d7965[_0x17341a(0x10b3)]?_0x17341a(0x575)+_0x2d7965[_0x17341a(0x10b3)]+_0x17341a(0x21db)+_0x2d7965['statusText']:'api.openchannelQueue.delete','msg':_0x2d7965['data']?JSON['stringify'](_0x2d7965[_0x17341a(0x1c52)][_0x17341a(0x18ca)]):_0x2d7965[_0x17341a(0x18ca)]||_0x2d7965[_0x17341a(0x2915)]()});});},function(){});}function _0x4f4767(_0x24da5e){return _0x24da5e===null?undefined:new Date(_0x24da5e);}function _0x42528e(_0x5a78e2){_0x4445a7['hide'](_0x5a78e2);}}const _0x1b3e5c=_0x1d9bf6;;_0x20435f[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0xb4b),_0x49a1e3(0x600),_0x49a1e3(0x252e),_0x49a1e3(0x298c),'Auth',_0x49a1e3(0x402)];function _0x20435f(_0x47ad11,_0x2442b2,_0x390173,_0x4ddf85,_0x568bc6,_0x38838e,_0x4c28fc,_0x1882b7,_0x24df77,_0xf94918){const _0x59ff27=_0x49a1e3,_0x1ceff9=this;_0x1ceff9[_0x59ff27(0x1d3d)]=_0x24df77[_0x59ff27(0x808)](),_0x1ceff9[_0x59ff27(0xb4b)]=_0x568bc6,_0x1ceff9[_0x59ff27(0x402)]=_0xf94918,_0x1ceff9[_0x59ff27(0x252e)]=_0x4c28fc,_0x1ceff9['items']=[],_0x1ceff9[_0x59ff27(0x13d1)]=[],_0x1ceff9[_0x59ff27(0x1f4f)]=[],_0x1ceff9[_0x59ff27(0x206b)]=[],_0x1ceff9[_0x59ff27(0x24e1)]=[],_0x1ceff9[_0x59ff27(0xe9e)]=![],_0x1ceff9[_0x59ff27(0x2483)]=_0x342fc1,_0x1ceff9[_0x59ff27(0x4c4)]=_0x3631af,_0x1ceff9[_0x59ff27(0x16cb)]=_0xc31d5,_0x1ceff9[_0x59ff27(0x1eeb)]={'readOnly':!_0x1ceff9[_0x59ff27(0x402)][_0x59ff27(0xd86)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x59ff27(0x2494),'line1':_0x59ff27(0x15c),'line2':['name',_0x59ff27(0xe2f)],'line3':'','labelAll':_0x1882b7['instant'](_0x59ff27(0x1da4)),'labelSelected':_0x1882b7[_0x59ff27(0x2292)](_0x59ff27(0xcf8)),'transferCallback':function(){const _0x41bf52=_0x59ff27,_0x357c33=_0x28c606()[_0x41bf52(0x1ad)](_0x1ceff9[_0x41bf52(0x24e1)],_0x1ceff9[_0x41bf52(0x1f4f)],'id');_0x1ceff9['pendingChanges']=_0x28c606()[_0x41bf52(0x940)](_0x357c33)?![]:!![];}};function _0x342fc1(){const _0x16fab5=_0x59ff27;return _0x24df77[_0x16fab5(0x4de)](_0x16fab5(0x333))?_0x244942()[_0x16fab5(0x20cd)](function(_0x54b104){const _0x401628=_0x16fab5;_0x390173[_0x401628(0x1bd0)]({'title':_0x54b104[_0x401628(0x10b3)]?_0x401628(0x575)+_0x54b104[_0x401628(0x10b3)]+_0x401628(0x21db)+_0x54b104[_0x401628(0x2115)]:'SYSTEM:GET_AGENTS','msg':_0x54b104[_0x401628(0x10b3)]?JSON[_0x401628(0x2317)](_0x54b104['data']):_0x54b104[_0x401628(0x2915)]()});}):_0x8bc315()[_0x16fab5(0x64a)](function(_0x12018c){const _0x155cdd=_0x16fab5;return _0x1ceff9[_0x155cdd(0xa21)]=_0x12018c,_0x244942();})['catch'](function(_0x565275){const _0x164383=_0x16fab5;_0x390173[_0x164383(0x1bd0)]({'title':_0x565275[_0x164383(0x10b3)]?'API:'+_0x565275['status']+_0x164383(0x21db)+_0x565275['statusText']:_0x164383(0x554),'msg':_0x565275[_0x164383(0x10b3)]?JSON[_0x164383(0x2317)](_0x565275[_0x164383(0x1c52)]):_0x565275[_0x164383(0x2915)]()});});}function _0x8bc315(){return _0x2442b2(function(_0x50bf93,_0x26567c){const _0x189ab6=a0_0x4127;_0x4ddf85['userProfileSection'][_0x189ab6(0x896)]({'userProfileId':_0x1ceff9[_0x189ab6(0x1d3d)][_0x189ab6(0x21ac)],'name':_0x189ab6(0x2132)})['$promise'][_0x189ab6(0x64a)](function(_0x3d2b73){const _0x120fe0=_0x189ab6,_0x231359=_0x3d2b73&&_0x3d2b73[_0x120fe0(0x28b8)]?_0x3d2b73[_0x120fe0(0x28b8)][0x0]:null;_0x50bf93(_0x231359);})[_0x189ab6(0x20cd)](function(_0x1fea02){_0x26567c(_0x1fea02);});});}function _0x244942(){return _0x2442b2(function(_0x16cb51,_0x3e8165){const _0x19d570=a0_0x4127;return _0x11ed1d()[_0x19d570(0x64a)](function(_0x208a1d){const _0x7bbaed=_0x19d570;return _0x1ceff9[_0x7bbaed(0x23cb)]=_0x208a1d[_0x7bbaed(0x28b8)]?_0x208a1d[_0x7bbaed(0x28b8)]:[],_0x24df77[_0x7bbaed(0x4de)](_0x7bbaed(0x333))?_0x208a1d:_0x1ceff9['section']?_0x1ceff9['section'][_0x7bbaed(0x11da)]?_0x208a1d:_0x105052():null;})[_0x19d570(0x64a)](function(_0x2bae5c){const _0x4a6fd=_0x19d570,_0x578f77=_0x2bae5c&&_0x2bae5c[_0x4a6fd(0x28b8)]?_0x2bae5c[_0x4a6fd(0x28b8)]:[];return _0x1ceff9['allowedItems']=_0x28c606()[_0x4a6fd(0x1de5)](_0x578f77,function(_0x503555){const _0x54ae25=_0x4a6fd;return _0x28c606()[_0x54ae25(0x27bc)](_0x1ceff9['items'],{'id':_0x24df77[_0x54ae25(0x4de)](_0x54ae25(0x333))||_0x1ceff9['section'][_0x54ae25(0x11da)]?_0x503555['id']:_0x503555[_0x54ae25(0x145)]});}),_0x1ceff9[_0x4a6fd(0x206b)]=angular[_0x4a6fd(0x289e)](_0x1ceff9[_0x4a6fd(0x13d1)]),_0x1ceff9[_0x4a6fd(0x23cb)]['forEach'](function(_0x4035d8){const _0x4ca5cc=_0x4a6fd,_0x594522=_0x28c606()['find'](_0x1ceff9[_0x4ca5cc(0x13d1)],{'id':_0x4035d8['id']});_0x24df77[_0x4ca5cc(0x4de)]('admin')?_0x4035d8[_0x4ca5cc(0x6f9)]=!![]:_0x4035d8[_0x4ca5cc(0x6f9)]=typeof _0x594522!==_0x4ca5cc(0x19a1)?!![]:![];}),_0x49cc99();})['then'](function(_0x51a516){const _0x70830e=_0x19d570,_0x20da91=_0x51a516&&_0x51a516[_0x70830e(0x28b8)]?_0x51a516[_0x70830e(0x28b8)]:[];_0x1ceff9['selectedItems']=_0x28c606()['map'](_0x20da91,function(_0x12fe85){const _0x4bc86b=_0x70830e,_0x3e53b4=_0x28c606()['find'](_0x1ceff9['items'],{'id':_0x12fe85['id']});return _0x3e53b4[_0x4bc86b(0x70f)]=_0x12fe85[_0x4bc86b(0x15ac)]?_0x4bc86b(0xcff)+_0x12fe85[_0x4bc86b(0x15ac)]['penalty']:'',_0x3e53b4['internal']=typeof _0x12fe85[_0x4bc86b(0xe2f)]!==_0x4bc86b(0x19a1)?'<'+_0x12fe85[_0x4bc86b(0xe2f)]+'>':'',_0x3e53b4;}),_0x1ceff9['startingSelectedItems']=angular[_0x70830e(0x289e)](_0x1ceff9[_0x70830e(0x1f4f)]),_0x1ceff9[_0x70830e(0x1eeb)][_0x70830e(0x1f4f)]=_0x1ceff9['selectedItems'],_0x1ceff9[_0x70830e(0x1eeb)][_0x70830e(0x23cb)]=_0x28c606()['differenceBy'](_0x1ceff9['allowedItems'],_0x1ceff9[_0x70830e(0x1eeb)][_0x70830e(0x1f4f)],'id'),_0x16cb51();})[_0x19d570(0x20cd)](function(_0x3fc195){_0x3e8165(_0x3fc195);});});}function _0x105052(){return _0x2442b2(function(_0x4564ed,_0x217bb7){const _0x131493=a0_0x4127;return _0x4ddf85[_0x131493(0x1617)][_0x131493(0x896)]({'sectionId':_0x1ceff9[_0x131493(0xa21)]['id'],'nolimit':!![]})[_0x131493(0x15e7)]['then'](function(_0x5106bd){_0x4564ed(_0x5106bd);})[_0x131493(0x20cd)](function(_0x1b12b1){_0x217bb7(_0x1b12b1);});});}function _0x49cc99(){return _0x2442b2(function(_0x50ac5f,_0x387da8){const _0x228630=a0_0x4127;return _0x4ddf85['openchannelQueue'][_0x228630(0xa10)]({'id':_0x1ceff9[_0x228630(0xb4b)]['id'],'fields':_0x228630(0x2105),'nolimit':!![],'role':_0x228630(0x11ae)})['$promise'][_0x228630(0x64a)](function(_0x33ced6){_0x50ac5f(_0x33ced6);})[_0x228630(0x20cd)](function(_0x3bb454){_0x387da8(_0x3bb454);});});}function _0x11ed1d(){return _0x2442b2(function(_0x2078c8,_0x465b91){const _0xa2c96b=a0_0x4127;return _0x4ddf85[_0xa2c96b(0x2e8)]['get']({'fields':_0xa2c96b(0x2105),'nolimit':!![],'role':_0xa2c96b(0x11ae)})[_0xa2c96b(0x15e7)][_0xa2c96b(0x64a)](function(_0x43d759){_0x2078c8(_0x43d759);})[_0xa2c96b(0x20cd)](function(_0x3cf86a){_0x465b91(_0x3cf86a);});});}function _0x1ef34a(_0x7c4113){return _0x2442b2(function(_0x4e099a,_0x24af56){const _0x376426=a0_0x4127;_0x28c606()['isEmpty'](_0x7c4113)?_0x4e099a():_0x4ddf85[_0x376426(0xb4b)][_0x376426(0x1575)]({'id':_0x1ceff9['openchannelQueue']['id'],'ids':_0x28c606()[_0x376426(0x1de5)](_0x7c4113,'id')})[_0x376426(0x15e7)][_0x376426(0x64a)](function(){_0x4e099a();})[_0x376426(0x20cd)](function(_0x4e97ce){_0x24af56(_0x4e97ce);});});}function _0x48b83b(_0x23186b){return _0x2442b2(function(_0x5987f6,_0x3f736e){const _0x2d229f=a0_0x4127;_0x28c606()['isEmpty'](_0x23186b)?_0x5987f6():_0x4ddf85[_0x2d229f(0xb4b)][_0x2d229f(0x251d)]({'id':_0x1ceff9[_0x2d229f(0xb4b)]['id'],'ids':_0x28c606()['map'](_0x23186b,'id')})[_0x2d229f(0x15e7)][_0x2d229f(0x64a)](function(){_0x5987f6();})[_0x2d229f(0x20cd)](function(_0x49c2f9){_0x3f736e(_0x49c2f9);});});}function _0x3631af(){const _0x3a473d=_0x59ff27,_0x5a1a5a=_0x28c606()[_0x3a473d(0x23e5)](_0x1ceff9[_0x3a473d(0x24e1)],_0x1ceff9[_0x3a473d(0x1f4f)],'id'),_0x38426f=_0x28c606()['differenceBy'](_0x1ceff9['selectedItems'],_0x1ceff9[_0x3a473d(0x24e1)],'id');return _0x48b83b(_0x5a1a5a)['then'](function(){return _0x1ef34a(_0x38426f);})[_0x3a473d(0x64a)](function(){const _0x5cfe63=_0x3a473d;_0x1ceff9[_0x5cfe63(0xe9e)]=![],_0x1ceff9[_0x5cfe63(0x206b)]=angular[_0x5cfe63(0x289e)](_0x1ceff9[_0x5cfe63(0x13d1)]),_0x1ceff9[_0x5cfe63(0x24e1)]=angular['copy'](_0x1ceff9[_0x5cfe63(0x1f4f)]),_0x390173['success']({'title':_0x5cfe63(0x24d6),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x3a473d(0x20cd)](function(_0x5a4d22){const _0x46e516=_0x3a473d;_0x390173[_0x46e516(0x1bd0)]({'title':_0x5a4d22[_0x46e516(0x10b3)]?_0x46e516(0x575)+_0x5a4d22['status']+_0x46e516(0x21db)+_0x5a4d22[_0x46e516(0x2115)]:_0x46e516(0x1226),'msg':_0x5a4d22[_0x46e516(0x10b3)]?JSON[_0x46e516(0x2317)](_0x5a4d22['data']):_0x5a4d22['toString']()});});}function _0xc31d5(){const _0x2d745d=_0x59ff27;_0x47ad11[_0x2d745d(0x268e)]();}}const _0x57e625=_0x20435f;;_0x29fe87[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),'api',_0x49a1e3(0xb4b),_0x49a1e3(0x298c),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x29fe87(_0x6fd522,_0x3942b1,_0x47eeb0,_0x2c5a2a,_0x254667,_0x855a47,_0x2ba250,_0x4fe51f){const _0x190576=_0x49a1e3,_0x5b0ad1=this;_0x5b0ad1[_0x190576(0x1d3d)]=_0x2ba250[_0x190576(0x808)](),_0x5b0ad1[_0x190576(0xb4b)]=_0x254667,_0x5b0ad1[_0x190576(0x402)]=_0x4fe51f,_0x5b0ad1['items']=[],_0x5b0ad1[_0x190576(0x13d1)]=[],_0x5b0ad1[_0x190576(0x1f4f)]=[],_0x5b0ad1[_0x190576(0x206b)]=[],_0x5b0ad1['startingSelectedItems']=[],_0x5b0ad1['pendingChanges']=![],_0x5b0ad1[_0x190576(0x1eeb)]={'readOnly':!_0x5b0ad1[_0x190576(0x402)]['canEdit'],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x190576(0x2494),'line2':'','line3':'','labelAll':_0x855a47[_0x190576(0x2292)]('APP.ALL_TEAMS'),'labelSelected':_0x855a47[_0x190576(0x2292)](_0x190576(0x2936)),'transferCallback':function(){const _0x4005ec=_0x190576,_0x348226=_0x28c606()[_0x4005ec(0x1ad)](_0x5b0ad1[_0x4005ec(0x24e1)],_0x5b0ad1[_0x4005ec(0x1f4f)],'id');_0x5b0ad1['pendingChanges']=_0x28c606()['isEmpty'](_0x348226)?![]:!![];}},_0x5b0ad1[_0x190576(0x2483)]=_0x3b9a9c,_0x5b0ad1['saveTeams']=_0x2236c6,_0x5b0ad1[_0x190576(0x16cb)]=_0x70077a;function _0x3b9a9c(){const _0x54a242=_0x190576;return _0x2ba250['hasRole'](_0x54a242(0x333))?_0x194694()[_0x54a242(0x20cd)](function(_0x265ebc){const _0x56962f=_0x54a242;_0x47eeb0[_0x56962f(0x1bd0)]({'title':_0x265ebc['status']?'API:'+_0x265ebc[_0x56962f(0x10b3)]+_0x56962f(0x21db)+_0x265ebc[_0x56962f(0x2115)]:'SYSTEM:GET_TEAMS','msg':_0x265ebc[_0x56962f(0x10b3)]?JSON[_0x56962f(0x2317)](_0x265ebc[_0x56962f(0x1c52)]):_0x265ebc[_0x56962f(0x2915)]()});}):_0x57a0ab()[_0x54a242(0x64a)](function(_0xd3c89d){const _0x2fb9b1=_0x54a242;return _0x5b0ad1[_0x2fb9b1(0xa21)]=_0xd3c89d,_0x194694();})[_0x54a242(0x20cd)](function(_0x4bcaa0){const _0x15a0ce=_0x54a242;_0x47eeb0[_0x15a0ce(0x1bd0)]({'title':_0x4bcaa0[_0x15a0ce(0x10b3)]?_0x15a0ce(0x575)+_0x4bcaa0['status']+_0x15a0ce(0x21db)+_0x4bcaa0[_0x15a0ce(0x2115)]:_0x15a0ce(0x1542),'msg':_0x4bcaa0[_0x15a0ce(0x10b3)]?JSON[_0x15a0ce(0x2317)](_0x4bcaa0[_0x15a0ce(0x1c52)]):_0x4bcaa0[_0x15a0ce(0x2915)]()});});}function _0x57a0ab(){return _0x3942b1(function(_0x530ea9,_0x961b64){const _0x377d7d=a0_0x4127;_0x2c5a2a[_0x377d7d(0x16b2)][_0x377d7d(0x896)]({'userProfileId':_0x5b0ad1[_0x377d7d(0x1d3d)][_0x377d7d(0x21ac)],'name':_0x377d7d(0x286d)})[_0x377d7d(0x15e7)][_0x377d7d(0x64a)](function(_0x49f9a0){const _0x335825=_0x377d7d,_0x330b25=_0x49f9a0&&_0x49f9a0['rows']?_0x49f9a0[_0x335825(0x28b8)][0x0]:null;_0x530ea9(_0x330b25);})[_0x377d7d(0x20cd)](function(_0x1e6015){_0x961b64(_0x1e6015);});});}function _0x194694(){return _0x3942b1(function(_0x4ce5b6,_0x3f74f9){const _0x53f60a=a0_0x4127;return _0x201eab()[_0x53f60a(0x64a)](function(_0x47de0a){const _0x3c717c=_0x53f60a;return _0x5b0ad1['items']=_0x47de0a[_0x3c717c(0x28b8)]?_0x47de0a['rows']:[],_0x2ba250['hasRole'](_0x3c717c(0x333))?_0x47de0a:_0x5b0ad1[_0x3c717c(0xa21)]?_0x5b0ad1[_0x3c717c(0xa21)]['autoAssociation']?_0x47de0a:_0x18e7f8():null;})[_0x53f60a(0x64a)](function(_0x5b1382){const _0x443e31=_0x53f60a,_0x56bb40=_0x5b1382&&_0x5b1382[_0x443e31(0x28b8)]?_0x5b1382[_0x443e31(0x28b8)]:[];return _0x5b0ad1[_0x443e31(0x13d1)]=_0x28c606()[_0x443e31(0x1de5)](_0x56bb40,function(_0x307a1c){const _0x340be0=_0x443e31;return _0x28c606()[_0x340be0(0x27bc)](_0x5b0ad1[_0x340be0(0x23cb)],{'id':_0x2ba250[_0x340be0(0x4de)](_0x340be0(0x333))||_0x5b0ad1[_0x340be0(0xa21)][_0x340be0(0x11da)]?_0x307a1c['id']:_0x307a1c['resourceId']});}),_0x5b0ad1[_0x443e31(0x23cb)][_0x443e31(0x1397)](function(_0x25c9b9){const _0x348549=_0x443e31,_0x49c2f7=_0x28c606()[_0x348549(0x27bc)](_0x5b0ad1[_0x348549(0x13d1)],{'id':_0x25c9b9['id']});_0x2ba250[_0x348549(0x4de)](_0x348549(0x333))?_0x25c9b9[_0x348549(0x6f9)]=!![]:_0x25c9b9[_0x348549(0x6f9)]=typeof _0x49c2f7!=='undefined'?!![]:![];}),_0xab2903();})[_0x53f60a(0x64a)](function(_0xb707aa){const _0x217bc8=_0x53f60a,_0x40a808=_0xb707aa&&_0xb707aa[_0x217bc8(0x28b8)]?_0xb707aa[_0x217bc8(0x28b8)]:[];_0x5b0ad1[_0x217bc8(0x1f4f)]=_0x28c606()['map'](_0x40a808,function(_0x127bef){const _0x103759=_0x217bc8;return _0x28c606()[_0x103759(0x27bc)](_0x5b0ad1[_0x103759(0x23cb)],{'id':_0x127bef['id']});}),_0x5b0ad1[_0x217bc8(0x24e1)]=angular['copy'](_0x5b0ad1[_0x217bc8(0x1f4f)]),_0x5b0ad1[_0x217bc8(0x1eeb)][_0x217bc8(0x1f4f)]=_0x5b0ad1[_0x217bc8(0x1f4f)],_0x5b0ad1[_0x217bc8(0x1eeb)][_0x217bc8(0x23cb)]=_0x28c606()[_0x217bc8(0x23e5)](_0x5b0ad1[_0x217bc8(0x13d1)],_0x5b0ad1['dualMultiselectOptions'][_0x217bc8(0x1f4f)],'id'),_0x4ce5b6();})['catch'](function(_0x2b0eee){_0x3f74f9(_0x2b0eee);});});}function _0x18e7f8(){return _0x3942b1(function(_0xc3115f,_0x2af38e){const _0x2d440e=a0_0x4127;return _0x2c5a2a[_0x2d440e(0x1617)]['get']({'sectionId':_0x5b0ad1[_0x2d440e(0xa21)]['id'],'nolimit':!![]})[_0x2d440e(0x15e7)]['then'](function(_0x298f6a){_0xc3115f(_0x298f6a);})[_0x2d440e(0x20cd)](function(_0xbee04e){_0x2af38e(_0xbee04e);});});}function _0xab2903(){return _0x3942b1(function(_0x4eb9a8,_0x37c7bb){const _0x2348f7=a0_0x4127;return _0x2c5a2a[_0x2348f7(0xb4b)][_0x2348f7(0x151d)]({'id':_0x5b0ad1[_0x2348f7(0xb4b)]['id'],'fields':_0x2348f7(0x1427),'nolimit':!![]})[_0x2348f7(0x15e7)][_0x2348f7(0x64a)](function(_0xdb8af2){_0x4eb9a8(_0xdb8af2);})[_0x2348f7(0x20cd)](function(_0x567080){_0x37c7bb(_0x567080);});});}function _0x201eab(){return _0x3942b1(function(_0x3a2e22,_0x43a4eb){const _0x48168c=a0_0x4127;return _0x2c5a2a[_0x48168c(0x15ea)][_0x48168c(0x896)]({'fields':_0x48168c(0x1427),'nolimit':!![]})[_0x48168c(0x15e7)][_0x48168c(0x64a)](function(_0x4a62d4){_0x3a2e22(_0x4a62d4);})[_0x48168c(0x20cd)](function(_0x3b1130){_0x43a4eb(_0x3b1130);});});}function _0x14c331(_0x4596cb){return _0x3942b1(function(_0x158eff,_0x152290){const _0x4a810d=a0_0x4127;_0x28c606()[_0x4a810d(0x940)](_0x4596cb)?_0x158eff():_0x2c5a2a['openchannelQueue'][_0x4a810d(0x1858)]({'id':_0x5b0ad1['openchannelQueue']['id'],'ids':_0x28c606()[_0x4a810d(0x1de5)](_0x4596cb,'id')})[_0x4a810d(0x15e7)][_0x4a810d(0x64a)](function(){_0x158eff();})['catch'](function(_0xd48e3){_0x152290(_0xd48e3);});});}function _0x190012(_0x541079){return _0x3942b1(function(_0x1a5004,_0x258a5e){const _0x30604e=a0_0x4127;_0x28c606()['isEmpty'](_0x541079)?_0x1a5004():_0x2c5a2a[_0x30604e(0xb4b)][_0x30604e(0x6d5)]({'id':_0x5b0ad1[_0x30604e(0xb4b)]['id'],'ids':_0x28c606()[_0x30604e(0x1de5)](_0x541079,'id')})[_0x30604e(0x15e7)]['then'](function(){_0x1a5004();})[_0x30604e(0x20cd)](function(_0x1189c9){_0x258a5e(_0x1189c9);});});}function _0x2236c6(){const _0x4088d3=_0x190576,_0x4dfd69=_0x28c606()[_0x4088d3(0x23e5)](_0x5b0ad1[_0x4088d3(0x24e1)],_0x5b0ad1['selectedItems'],'id'),_0x31aee9=_0x28c606()['differenceBy'](_0x5b0ad1[_0x4088d3(0x1f4f)],_0x5b0ad1['startingSelectedItems'],'id');return _0x190012(_0x4dfd69)[_0x4088d3(0x64a)](function(){return _0x14c331(_0x31aee9);})[_0x4088d3(0x64a)](function(){const _0x281e20=_0x4088d3;_0x5b0ad1[_0x281e20(0xe9e)]=![],_0x5b0ad1[_0x281e20(0x206b)]=angular[_0x281e20(0x289e)](_0x5b0ad1[_0x281e20(0x13d1)]),_0x5b0ad1[_0x281e20(0x24e1)]=angular[_0x281e20(0x289e)](_0x5b0ad1[_0x281e20(0x1f4f)]),_0x47eeb0[_0x281e20(0x1339)]({'title':_0x281e20(0x24d6),'msg':_0x281e20(0x1932)});})[_0x4088d3(0x20cd)](function(_0x44ed83){const _0x39ee93=_0x4088d3;_0x47eeb0[_0x39ee93(0x1bd0)]({'title':_0x44ed83[_0x39ee93(0x10b3)]?'API:'+_0x44ed83[_0x39ee93(0x10b3)]+_0x39ee93(0x21db)+_0x44ed83[_0x39ee93(0x2115)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x44ed83[_0x39ee93(0x10b3)]?JSON['stringify'](_0x44ed83['data']):_0x44ed83['toString']()});});}function _0x70077a(){const _0x5c5f35=_0x190576;_0x6fd522[_0x5c5f35(0x268e)]();}}const _0x357735=_0x29fe87;;const _0x2369b4=_0x2e4a48['p']+_0x49a1e3(0x188e);;_0x32ec90['$inject']=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'api','toasty',_0x49a1e3(0xdcf),_0x49a1e3(0xb4b),'userProfileSection'];function _0x32ec90(_0x4e4f4f,_0xba04e3,_0x18cd82,_0x4ff96f,_0x442044,_0x6b3e44,_0x3bce8b,_0x4c5b06,_0x2cbe19,_0x468479,_0x1da475,_0xb7314f){const _0x11dd8e=_0x49a1e3,_0x4fb8a6=this;_0x4fb8a6[_0x11dd8e(0x1d3d)]=_0x468479['getCurrentUser'](),_0x4fb8a6['license']=_0x6b3e44,_0x4fb8a6['setting']=_0x3bce8b,_0x4fb8a6[_0x11dd8e(0xccc)]=_0x4fb8a6[_0x11dd8e(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4fb8a6[_0x11dd8e(0xb36)]=_0xba04e3[_0x11dd8e(0x48e)]()+_0x11dd8e(0xe1f)+_0xba04e3[_0x11dd8e(0x1e5d)](),_0x4fb8a6['openchannelQueue']=_0x1da475||_0x4e4f4f[_0x11dd8e(0x1b48)][_0x11dd8e(0xb4b)]||{},_0x4fb8a6[_0x11dd8e(0x16b2)]=_0xb7314f&&_0xb7314f['count']==0x1?_0xb7314f['rows'][0x0]:null,_0x4fb8a6[_0x11dd8e(0x402)]=_0x468479[_0x11dd8e(0xa7e)](_0x4fb8a6[_0x11dd8e(0x16b2)]?_0x4fb8a6[_0x11dd8e(0x16b2)][_0x11dd8e(0x402)]:null),_0x4fb8a6[_0x11dd8e(0x6c2)]={},_0x4fb8a6['selectedTab']=_0x4e4f4f[_0x11dd8e(0x1b48)][_0x11dd8e(0x1222)]||0x0,_0x4fb8a6['teamadddialog']=_0x44f88d,_0x4fb8a6[_0x11dd8e(0x104a)]=_0x59bc63,_0x4fb8a6['alert']=_0x2cbe19[_0x11dd8e(0x772)],_0x4fb8a6[_0x11dd8e(0x8de)]=_0x12888f,_0x4fb8a6[_0x11dd8e(0x285)]=_0x169bef;function _0x44f88d(_0x182232,_0x57b270){const _0x29c922=_0x11dd8e;_0x18cd82[_0x29c922(0xa60)]({'controller':_0x29c922(0x3bc),'controllerAs':'vm','templateUrl':_0x2369b4,'parent':angular[_0x29c922(0x1f81)](_0x4ff96f['body']),'targetEvent':_0x57b270,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x182232,'openchannelQueues':_0x4fb8a6[_0x29c922(0x600)]?_0x4fb8a6[_0x29c922(0x600)][_0x29c922(0x28b8)]:[],'crudPermissions':_0x4fb8a6[_0x29c922(0x402)]}});}function _0x59bc63(_0x15c0cf,_0x29e788){const _0x1c14e7=_0x11dd8e;_0x18cd82[_0x1c14e7(0xa60)]({'controller':'OpenchannelQueueagentaddController','controllerAs':'vm','templateUrl':_0xdada58,'parent':angular[_0x1c14e7(0x1f81)](_0x4ff96f[_0x1c14e7(0xb49)]),'targetEvent':_0x29e788,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x15c0cf,'openchannelQueues':_0x4fb8a6['openchannelQueues']?_0x4fb8a6[_0x1c14e7(0x600)][_0x1c14e7(0x28b8)]:[],'crudPermissions':_0x4fb8a6[_0x1c14e7(0x402)],'realtime':![]}});}function _0x12888f(){const _0x351f44=_0x11dd8e;_0x4e4f4f['go'](_0x351f44(0x629),{},{'reload':_0x351f44(0x629)});}function _0x169bef(){const _0x2dfb6e=_0x11dd8e;_0x4c5b06[_0x2dfb6e(0xb4b)][_0x2dfb6e(0x2603)]({'id':_0x4fb8a6[_0x2dfb6e(0xb4b)]['id']},_0x4fb8a6[_0x2dfb6e(0xb4b)])[_0x2dfb6e(0x15e7)]['then'](function(){const _0xfefcaf=_0x2dfb6e;_0x2cbe19['success']({'title':_0xfefcaf(0xc2a),'msg':_0x4fb8a6[_0xfefcaf(0xb4b)][_0xfefcaf(0x2494)]?_0x4fb8a6[_0xfefcaf(0xb4b)][_0xfefcaf(0x2494)]+_0xfefcaf(0x2032):''});})[_0x2dfb6e(0x20cd)](function(_0x3153fb){const _0x2114c6=_0x2dfb6e;_0x2cbe19[_0x2114c6(0x1bd0)]({'title':_0x3153fb[_0x2114c6(0x10b3)]?'API:'+_0x3153fb[_0x2114c6(0x10b3)]+'\x20-\x20'+_0x3153fb[_0x2114c6(0x2115)]:_0x2114c6(0x983),'msg':_0x3153fb['data']?JSON[_0x2114c6(0x2317)](_0x3153fb['data']):_0x3153fb['toString']()});});}}const _0x4825a9=_0x32ec90;;_0x32bb0f[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x600),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x32bb0f(_0x53ebfc,_0x4ae49d,_0x3b6e5c,_0x3fc612,_0x269e99,_0x35eaf2,_0x58a2ed,_0x4eb0c7,_0x5819ad,_0x55e500,_0x4a20e8,_0xf75a80,_0x1999d1,_0x957849,_0x167e66,_0x2f4627,_0x4f5b9e){const _0x2ef4c0=_0x49a1e3,_0x1b7ba4=this;_0x1b7ba4[_0x2ef4c0(0x1947)]=_0x2f4627,_0x1b7ba4[_0x2ef4c0(0x28d6)]=_0x4f5b9e,_0x1b7ba4[_0x2ef4c0(0x1d3d)]=_0x167e66[_0x2ef4c0(0x808)](),_0x1b7ba4['openchannelQueues']=_0x5819ad||{'count':0x0,'rows':[]},_0x1b7ba4[_0x2ef4c0(0x16a8)]=_0x55e500,_0x1b7ba4[_0x2ef4c0(0x16b2)]=_0x4a20e8&&_0x4a20e8[_0x2ef4c0(0xb90)]==0x1?_0x4a20e8[_0x2ef4c0(0x28b8)][0x0]:null,_0x1b7ba4[_0x2ef4c0(0x402)]=_0x167e66[_0x2ef4c0(0xa7e)](_0x1b7ba4[_0x2ef4c0(0x16b2)]?_0x1b7ba4['userProfileSection'][_0x2ef4c0(0x402)]:null),_0x1b7ba4[_0x2ef4c0(0x185d)]=_0x2ef4c0(0x600),_0x1b7ba4[_0x2ef4c0(0x300)]='',_0x1b7ba4[_0x2ef4c0(0x2748)]=null,_0x1b7ba4[_0x2ef4c0(0x1d51)]=[],_0x1b7ba4['query']={'fields':_0x2ef4c0(0x1649),'sort':_0x2ef4c0(0x260c),'channel':_0x2ef4c0(0x28ad),'limit':0xa,'page':0x1},_0x1b7ba4[_0x2ef4c0(0xc25)]=_0x28c606()[_0x2ef4c0(0x161e)]([{'option':_0x2ef4c0(0x618),'value':_0x2ef4c0(0x2342)},{'option':'RR\x20Memory','value':_0x2ef4c0(0x1dfa)}],function(_0x521b61){const _0x586bd2=_0x2ef4c0;return _0x28c606()[_0x586bd2(0x1353)](_0x521b61[_0x586bd2(0x1096)],new RegExp('\x27','g'),'');}),_0x1b7ba4[_0x2ef4c0(0xff6)]=_0x184ef6,_0x1b7ba4[_0x2ef4c0(0x1a72)]=_0x388254,_0x1b7ba4[_0x2ef4c0(0x104a)]=_0x19c39d,_0x1b7ba4[_0x2ef4c0(0x1262)]=_0x549615,_0x1b7ba4[_0x2ef4c0(0x93f)]=_0x1b83d2,_0x1b7ba4[_0x2ef4c0(0x1339)]=_0x5dbb95,_0x1b7ba4['getOpenchannelQueues']=_0x21911b,_0x1b7ba4[_0x2ef4c0(0x3e0)]=_0x5e310b,_0x1b7ba4[_0x2ef4c0(0x8a3)]=_0xe9f7b1,_0x1b7ba4[_0x2ef4c0(0x1f71)]=_0xf7196a,_0x1b7ba4[_0x2ef4c0(0xfb0)]=_0x2ba203,_0x1b7ba4[_0x2ef4c0(0x5b9)]=_0x5f9132,_0x1b7ba4[_0x2ef4c0(0x1f46)]=_0x29791a;function _0x184ef6(_0x4e7723){const _0x35edcd=_0x2ef4c0;_0x3b6e5c['go'](_0x35edcd(0x1328),{'id':_0x4e7723['id'],'openchannelQueue':_0x4e7723,'crudPermissions':_0x1b7ba4[_0x35edcd(0x402)]});}function _0x388254(_0x29fcbd,_0x9017b5){const _0x57b213=_0x2ef4c0;_0x269e99[_0x57b213(0xa60)]({'controller':_0x57b213(0x3bc),'controllerAs':'vm','templateUrl':_0x2369b4,'parent':angular['element'](_0x35eaf2[_0x57b213(0xb49)]),'targetEvent':_0x9017b5,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x29fcbd,'openchannelQueues':_0x1b7ba4['openchannelQueues']?_0x1b7ba4['openchannelQueues'][_0x57b213(0x28b8)]:[],'crudPermissions':_0x1b7ba4[_0x57b213(0x402)]}});}function _0x19c39d(_0x2bc256,_0x36de04){const _0x32ac60=_0x2ef4c0;_0x269e99[_0x32ac60(0xa60)]({'controller':'OpenchannelQueueagentaddController','controllerAs':'vm','templateUrl':_0xdada58,'parent':angular['element'](_0x35eaf2[_0x32ac60(0xb49)]),'targetEvent':_0x36de04,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x2bc256,'openchannelQueues':_0x1b7ba4['openchannelQueues']?_0x1b7ba4[_0x32ac60(0x600)][_0x32ac60(0x28b8)]:[],'crudPermissions':_0x1b7ba4[_0x32ac60(0x402)],'realtime':![]}});}function _0x549615(_0x26e12c,_0x2d76b4){const _0x3efac9=_0x2ef4c0,_0x5229af=_0x269e99[_0x3efac9(0x856)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()['startCase'](_0x3efac9(0xb4b))+'?')[_0x3efac9(0x33a)](_0x3efac9(0x50b)+(_0x26e12c[_0x3efac9(0x2494)]||_0x3efac9(0xb4b))+_0x3efac9(0x26d0)+_0x3efac9(0x4b8))[_0x3efac9(0x213e)]('delete\x20openchannelQueue')['targetEvent'](_0x2d76b4)['ok']('OK')[_0x3efac9(0x101a)]('CANCEL');_0x269e99[_0x3efac9(0xa60)](_0x5229af)[_0x3efac9(0x64a)](function(){_0xe9f7b1(_0x26e12c);},function(){const _0x1930c5=_0x3efac9;console[_0x1930c5(0x9b4)](_0x1930c5(0x18fd));});}function _0x1b83d2(){const _0x4927fc=_0x2ef4c0;if(_0x167e66['hasRole'](_0x4927fc(0x333)))_0x3b6e5c['go']('app.openchannel.realtime.queues',{});else return _0xf75a80[_0x4927fc(0x16b2)][_0x4927fc(0x896)]({'userProfileId':_0x167e66['getCurrentUser']()[_0x4927fc(0x21ac)],'sectionId':0x32a})[_0x4927fc(0x15e7)][_0x4927fc(0x64a)](function(_0xacd1e6){const _0x2473be=_0x4927fc,_0x2e620d=_0xacd1e6&&_0xacd1e6[_0x2473be(0x28b8)]?_0xacd1e6[_0x2473be(0x28b8)][0x0]:null;_0x2e620d&&_0x2e620d[_0x2473be(0xe49)]?_0x3b6e5c['go'](_0x2473be(0x1236),{}):_0x957849[_0x2473be(0x772)]({'title':_0x4eb0c7['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x4eb0c7[_0x2473be(0x2292)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x4927fc(0x20cd)](function(_0x552286){const _0x1512cf=_0x4927fc;_0x957849[_0x1512cf(0x1bd0)]({'title':_0x552286[_0x1512cf(0x10b3)]?'API:'+_0x552286[_0x1512cf(0x10b3)]+_0x1512cf(0x21db)+_0x552286[_0x1512cf(0x2115)]:_0x1512cf(0x942),'msg':_0x552286[_0x1512cf(0x10b3)]?JSON[_0x1512cf(0x2317)](_0x552286[_0x1512cf(0x1c52)]):_0x552286[_0x1512cf(0x2915)]()});});}let _0x1f349e=!![],_0x3b87bc=0x1;_0x53ebfc[_0x2ef4c0(0xc62)]('vm.query.filter',function(_0x3015d8,_0x68de2b){const _0x50702a=_0x2ef4c0;_0x1f349e?_0x58a2ed(function(){_0x1f349e=![];}):(!_0x68de2b&&(_0x3b87bc=_0x1b7ba4[_0x50702a(0x289a)][_0x50702a(0xc72)]),_0x3015d8!==_0x68de2b&&(_0x1b7ba4['query'][_0x50702a(0xc72)]=0x1),!_0x3015d8&&(_0x1b7ba4[_0x50702a(0x289a)][_0x50702a(0xc72)]=_0x3b87bc),_0x1b7ba4[_0x50702a(0xc32)]());});function _0x5dbb95(_0x1fa404){const _0xd51e2a=_0x2ef4c0;_0x1b7ba4[_0xd51e2a(0x600)]=_0x1fa404||{'count':0x0,'rows':[]};}function _0x21911b(){const _0x348d49=_0x2ef4c0;_0x1b7ba4[_0x348d49(0x289a)][_0x348d49(0x24f9)]=(_0x1b7ba4['query'][_0x348d49(0xc72)]-0x1)*_0x1b7ba4[_0x348d49(0x289a)]['limit'],_0x167e66[_0x348d49(0x4de)](_0x348d49(0x333))?_0x1b7ba4['promise']=_0xf75a80[_0x348d49(0xb4b)]['get'](_0x1b7ba4[_0x348d49(0x289a)],_0x5dbb95)[_0x348d49(0x15e7)]:(_0x1b7ba4[_0x348d49(0x289a)]['id']=_0x1b7ba4[_0x348d49(0x16a8)]['id'],_0x1b7ba4[_0x348d49(0x289a)][_0x348d49(0xa21)]='OpenchannelQueues',_0x1b7ba4['promise']=_0xf75a80['userProfile']['getResources'](_0x1b7ba4[_0x348d49(0x289a)],_0x5dbb95)[_0x348d49(0x15e7)]);}function _0x5e310b(_0x463cb0,_0x1e9d89){const _0x20f7e7=_0x2ef4c0;_0x269e99[_0x20f7e7(0xa60)]({'controller':_0x20f7e7(0x22bc),'controllerAs':'vm','templateUrl':_0x11b102,'parent':angular['element'](_0x35eaf2[_0x20f7e7(0xb49)]),'targetEvent':_0x463cb0,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x1e9d89,'openchannelQueues':_0x1b7ba4[_0x20f7e7(0x600)][_0x20f7e7(0x28b8)],'license':_0x1b7ba4['license'],'setting':_0x1b7ba4[_0x20f7e7(0x28d6)],'crudPermissions':_0x1b7ba4['crudPermissions']}});}function _0xe9f7b1(_0x105264){const _0x26a9cc=_0x2ef4c0;_0xf75a80[_0x26a9cc(0xb4b)]['delete']({'id':_0x105264['id']})[_0x26a9cc(0x15e7)][_0x26a9cc(0x64a)](function(){const _0x33aed4=_0x26a9cc;_0x28c606()[_0x33aed4(0x21c7)](_0x1b7ba4['openchannelQueues'][_0x33aed4(0x28b8)],{'id':_0x105264['id']}),_0x1b7ba4[_0x33aed4(0x600)][_0x33aed4(0xb90)]-=0x1,!_0x1b7ba4[_0x33aed4(0x600)][_0x33aed4(0x28b8)][_0x33aed4(0x1b9e)]&&_0x1b7ba4[_0x33aed4(0xc32)](),_0x957849[_0x33aed4(0x1339)]({'title':_0x28c606()[_0x33aed4(0xc01)]('OpenchannelQueue')+_0x33aed4(0x2502),'msg':_0x105264[_0x33aed4(0x2494)]?_0x105264[_0x33aed4(0x2494)]+'\x20has\x20been\x20deleted!':''});})[_0x26a9cc(0x20cd)](function(_0x45a9c5){const _0x44d5da=_0x26a9cc;if(_0x45a9c5[_0x44d5da(0x1c52)]&&_0x45a9c5[_0x44d5da(0x1c52)][_0x44d5da(0xbae)]&&_0x45a9c5[_0x44d5da(0x1c52)][_0x44d5da(0xbae)][_0x44d5da(0x1b9e)]){_0x1b7ba4[_0x44d5da(0xbae)]=_0x45a9c5['data'][_0x44d5da(0xbae)]||[{'message':_0x45a9c5[_0x44d5da(0x2915)](),'type':_0x44d5da(0xa9b)}];for(let _0x33efc5=0x0;_0x33efc5<_0x45a9c5['data'][_0x44d5da(0xbae)][_0x44d5da(0x1b9e)];_0x33efc5++){_0x957849[_0x44d5da(0x1bd0)]({'title':_0x45a9c5['data']['errors'][_0x33efc5][_0x44d5da(0x2185)],'msg':_0x45a9c5[_0x44d5da(0x1c52)][_0x44d5da(0xbae)][_0x33efc5][_0x44d5da(0x18ca)]});}}else _0x957849[_0x44d5da(0x1bd0)]({'title':_0x45a9c5[_0x44d5da(0x10b3)]?_0x44d5da(0x575)+_0x45a9c5['status']+_0x44d5da(0x21db)+_0x45a9c5['statusText']:'SYSTEM:DELETEopenchannelQueue','msg':_0x45a9c5[_0x44d5da(0x1c52)]?JSON[_0x44d5da(0x2317)](_0x45a9c5[_0x44d5da(0x1c52)][_0x44d5da(0x18ca)]):_0x45a9c5[_0x44d5da(0x18ca)]||_0x45a9c5['toString']()});});}function _0xf7196a(){const _0x340cee=_0x2ef4c0,_0x2ed349=angular[_0x340cee(0x289e)](_0x1b7ba4[_0x340cee(0x1d51)]);return _0x1b7ba4[_0x340cee(0x1d51)]=[],_0x2ed349;}function _0x2ba203(_0x53f630){const _0x514644=_0x2ef4c0,_0x5549d5=_0x269e99[_0x514644(0x856)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelQueues?')['htmlContent'](''+_0x1b7ba4[_0x514644(0x1d51)][_0x514644(0x1b9e)]+_0x514644(0x163e)+'\x20will\x20be\x20deleted.')[_0x514644(0x213e)]('delete\x20OpenchannelQueues')[_0x514644(0x2283)](_0x53f630)['ok']('OK')[_0x514644(0x101a)](_0x514644(0x18fd));_0x269e99[_0x514644(0xa60)](_0x5549d5)[_0x514644(0x64a)](function(){const _0x5d1d38=_0x514644;_0x1b7ba4[_0x5d1d38(0x1d51)]['forEach'](function(_0x2e84c3){_0xe9f7b1(_0x2e84c3);}),_0x1b7ba4['selectedOpenchannelQueues']=[];});}function _0x5f9132(){const _0x26c1ee=_0x2ef4c0;_0x1b7ba4[_0x26c1ee(0x1d51)]=[];}function _0x29791a(){const _0x170021=_0x2ef4c0;_0x1b7ba4[_0x170021(0x1d51)]=_0x1b7ba4[_0x170021(0x600)][_0x170021(0x28b8)];}}const _0x201532=_0x32bb0f;;_0x23d2a6[_0x49a1e3(0x1e73)]=['$stateProvider',_0x49a1e3(0x21f8)];function _0x23d2a6(_0x32220a,_0x29c05d){const _0x2b57a9=_0x49a1e3;_0x32220a[_0x2b57a9(0x14f2)]('app.openchannel',{'abstract':!![],'url':_0x2b57a9(0x2886)})[_0x2b57a9(0x14f2)]('app.openchannel.openchannelQueues',{'url':_0x2b57a9(0xd2c),'views':{'content@app':{'templateUrl':_0x2c6592,'controller':_0x2b57a9(0xc75)}},'resolve':{'openchannelQueues':[_0x2b57a9(0x107c),_0x2b57a9(0xdcf),function(_0x5e6f8b,_0x5e3ee2){const _0x13a554=_0x2b57a9;return _0x5e3ee2['hasRole']('admin')?_0x5e6f8b[_0x13a554(0x1268)](_0x13a554(0x954),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x13a554(0x260c),'channel':_0x13a554(0x28ad),'limit':0xa,'offset':0x0}):_0x5e6f8b['resolve'](_0x13a554(0x1758),{'id':_0x5e3ee2['getCurrentUser']()[_0x13a554(0x21ac)],'section':_0x13a554(0x1b75),'fields':_0x13a554(0x1649),'sort':_0x13a554(0x260c),'channel':_0x13a554(0x28ad),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2b57a9(0x107c),_0x2b57a9(0xdcf),function(_0x3613a2,_0x2d4e4a){const _0x5a3663=_0x2b57a9;return _0x2d4e4a['hasRole'](_0x5a3663(0x333))?null:_0x3613a2['resolve'](_0x5a3663(0x6e3),{'fields':_0x5a3663(0x10d2),'id':_0x2d4e4a[_0x5a3663(0x808)]()[_0x5a3663(0x21ac)]});}],'userProfileSection':['apiResolver',_0x2b57a9(0xdcf),function(_0x1855de,_0x385d87){const _0x18d460=_0x2b57a9;return _0x385d87[_0x18d460(0x4de)](_0x18d460(0x333))?null:_0x1855de[_0x18d460(0x1268)](_0x18d460(0x2681),{'fields':_0x18d460(0x527),'userProfileId':_0x385d87[_0x18d460(0x808)]()[_0x18d460(0x21ac)],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':_0x2b57a9(0x28ad)})[_0x2b57a9(0x14f2)](_0x2b57a9(0x1328),{'url':_0x2b57a9(0x45b),'params':{'openchannelQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3e61b3,'controller':'OpenchannelQueueController\x20as\x20vm'}},'resolve':{'openchannelQueue':[_0x2b57a9(0x107c),'$stateParams',function(_0xad6143,_0x2a183c){const _0xa04a63=_0x2b57a9;return _0xad6143[_0xa04a63(0x1268)](_0xa04a63(0x954),{'fields':_0xa04a63(0x1649),'id':_0x2a183c['id']});}],'userProfileSection':[_0x2b57a9(0x107c),_0x2b57a9(0xdcf),function(_0x3d29cc,_0x45c526){const _0xdcc735=_0x2b57a9;return _0x3d29cc[_0xdcc735(0x1268)](_0xdcc735(0x2681),{'fields':_0xdcc735(0x527),'userProfileId':_0x45c526['getCurrentUser']()[_0xdcc735(0x21ac)],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':'openchannel'})[_0x2b57a9(0x14f2)](_0x2b57a9(0x1129),{'url':_0x2b57a9(0x1c78),'views':{'content@app':{'templateUrl':_0x387326,'controller':_0x2b57a9(0x249e)}},'resolve':{'openchannelAccounts':['apiResolver',_0x2b57a9(0xdcf),function(_0x5e214e,_0x2149e0){const _0x42650a=_0x2b57a9;return _0x2149e0[_0x42650a(0x4de)](_0x42650a(0x333))?_0x5e214e[_0x42650a(0x1268)](_0x42650a(0x8ce),{'fields':_0x42650a(0x2544),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x5e214e[_0x42650a(0x1268)](_0x42650a(0x1758),{'id':_0x2149e0['getCurrentUser']()[_0x42650a(0x21ac)],'section':_0x42650a(0x141b),'fields':_0x42650a(0x2544),'sort':_0x42650a(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x2b57a9(0xdcf),function(_0x52fea9,_0x7de75a){const _0x716366=_0x2b57a9;return _0x7de75a[_0x716366(0x4de)](_0x716366(0x333))?null:_0x52fea9[_0x716366(0x1268)]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x7de75a['getCurrentUser']()['userProfileId']});}],'userProfileSection':['apiResolver',_0x2b57a9(0xdcf),function(_0x3cd67f,_0x33d707){const _0x136f0c=_0x2b57a9;return _0x33d707[_0x136f0c(0x4de)]('admin')?null:_0x3cd67f['resolve'](_0x136f0c(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x33d707[_0x136f0c(0x808)]()['userProfileId'],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':'openchannel'})[_0x2b57a9(0x14f2)](_0x2b57a9(0x253d),{'url':_0x2b57a9(0x45b),'params':{'openchannelAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x132801,'controller':'OpenchannelAccountController\x20as\x20vm'}},'resolve':{'openchannelAccount':[_0x2b57a9(0x107c),_0x2b57a9(0x1fbb),function(_0xcb0249,_0x114a05){const _0x410784=_0x2b57a9;return _0xcb0249[_0x410784(0x1268)](_0x410784(0x8ce),{'fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','id':_0x114a05['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x43591d,_0x4a9cf8){const _0x305510=_0x2b57a9;return _0x43591d[_0x305510(0x1268)](_0x305510(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4a9cf8[_0x305510(0x808)]()[_0x305510(0x21ac)],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':_0x2b57a9(0x28ad)}),_0x29c05d[_0x2b57a9(0x1bde)](_0x2b57a9(0x1b21));}angular['module'](_0x49a1e3(0xe6b),[_0x49a1e3(0x8d2),_0x49a1e3(0x3c7),_0x49a1e3(0x1fe3),'flow',_0x49a1e3(0x2516),_0x49a1e3(0x1b6c),_0x49a1e3(0x1434),'ngAria','ngAnimate',_0x49a1e3(0xb19),_0x49a1e3(0x1a59),_0x49a1e3(0x11fd),_0x49a1e3(0x1cfe),_0x49a1e3(0x1bd1),_0x49a1e3(0x1b5f),_0x49a1e3(0x1cff),'angularMaterialFormBuilder','material.components.expansionPanels',_0x49a1e3(0xc48),_0x49a1e3(0x28dd),_0x49a1e3(0x2469)])[_0x49a1e3(0x3d3)](_0x23d2a6)[_0x49a1e3(0x38e)]('CreateOrEditOpenchannelAccountDialogController',_0x5e89d1)['controller'](_0x49a1e3(0x221),_0x2234bf)[_0x49a1e3(0x38e)]('OpenchannelAccountagentaddController',_0x6582a4)[_0x49a1e3(0x38e)](_0x49a1e3(0x1cca),_0x186e59)['controller'](_0x49a1e3(0x2699),_0x218667)[_0x49a1e3(0x38e)](_0x49a1e3(0x1ae3),_0x5943b3)['controller'](_0x49a1e3(0x1b43),_0xe88c3f)[_0x49a1e3(0x38e)]('EditOpenchannelAccountAppdialogflowDialogController',_0x4ed304)['controller'](_0x49a1e3(0x1553),_0x46ebf2)['controller'](_0x49a1e3(0xb5e),_0x813c76)['controller']('EditOpenchannelAccountAppintervalDialogController',_0x58598a)[_0x49a1e3(0x38e)](_0x49a1e3(0x47c),_0x15421c)[_0x49a1e3(0x38e)]('EditOpenchannelAccountAppqueueDialogController',_0x378962)[_0x49a1e3(0x38e)]('EditOpenchannelAccountAppsystemDialogController',_0xbd3edf)[_0x49a1e3(0x38e)]('EditOpenchannelAccountApptagDialogController',_0x699b0a)['controller'](_0x49a1e3(0x2cc),_0x2680cc)[_0x49a1e3(0x38e)](_0x49a1e3(0x13da),_0x29e75c)[_0x49a1e3(0x38e)](_0x49a1e3(0x1e71),_0x300679)[_0x49a1e3(0x38e)]('OpenchannelAccountDispositionsController',_0x447c47)[_0x49a1e3(0x38e)](_0x49a1e3(0x1366),_0x5cf15e)[_0x49a1e3(0x38e)]('OpenchannelAccountsController',_0x296a62)['controller'](_0x49a1e3(0x22bc),_0x1b3e5c)[_0x49a1e3(0x38e)]('OpenchannelQueueagentaddController',_0x57e625)[_0x49a1e3(0x38e)](_0x49a1e3(0x3bc),_0x357735)[_0x49a1e3(0x38e)](_0x49a1e3(0x19eb),_0x4825a9)[_0x49a1e3(0x38e)](_0x49a1e3(0x1fed),_0x201532);;const _0xf5405=_0x2e4a48['p']+'src/js/modules/main/apps/fax/views/faxQueues/faxQueues.html/faxQueues.html';;const _0x45c64e=_0x2e4a48['p']+_0x49a1e3(0x1c66);;const _0x166ddd=_0x2e4a48['p']+_0x49a1e3(0x123);;const _0x23ae17=_0x2e4a48['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/view.html/view.html';;const _0x2b77cb=_0x2e4a48['p']+'src/js/modules/main/apps/fax/views/realtime/realtime.html/realtime.html';;const _0x4207a1=_0x2e4a48['p']+_0x49a1e3(0x6b7);;const _0x5c239e=_0x2e4a48['p']+'src/js/modules/main/apps/fax/views/realtime/trunks/view.html/view.html';;const _0x4606bc=_0x2e4a48['p']+_0x49a1e3(0x244d);;const _0x1f802b=_0x2e4a48['p']+_0x49a1e3(0x15f1);;_0x224f0c['$inject']=[_0x49a1e3(0x1674),'$timeout',_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x77f),_0x49a1e3(0xa19),'socket',_0x49a1e3(0x680),'faxAccounts',_0x49a1e3(0x21d6),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xdcf)];function _0x224f0c(_0x37c1c1,_0x13d901,_0x355b0d,_0x1dec61,_0x3ffbff,_0x5da921,_0x42d124,_0x54afb0,_0x39b72a,_0x3ad42c,_0x428642,_0x88a2e1,_0x5f046c){const _0x4db1da=_0x49a1e3,_0x3dabee=this;_0x3dabee[_0x4db1da(0x1d3d)]=_0x5f046c[_0x4db1da(0x808)](),_0x3dabee[_0x4db1da(0xb90)]=_0x39b72a&&_0x39b72a[_0x4db1da(0xb90)]?_0x39b72a[_0x4db1da(0xb90)]:0x0,_0x3dabee[_0x4db1da(0x198c)]=_0x39b72a?_0x28c606()[_0x4db1da(0x161e)](_0x39b72a[_0x4db1da(0x28b8)]?_0x39b72a[_0x4db1da(0x28b8)]:[],'id'):{},_0x3dabee[_0x4db1da(0x21d6)]=_0x3ad42c?_0x28c606()[_0x4db1da(0x161e)](_0x3ad42c[_0x4db1da(0x28b8)]?_0x3ad42c[_0x4db1da(0x28b8)]:[],'id'):{},_0x3dabee[_0x4db1da(0x16a8)]=_0x428642,_0x3dabee[_0x4db1da(0x16b2)]=_0x88a2e1&&_0x88a2e1['count']==0x1?_0x88a2e1[_0x4db1da(0x28b8)][0x0]:null,_0x3dabee[_0x4db1da(0x402)]=_0x5f046c[_0x4db1da(0xa7e)](_0x3dabee['userProfileSection']?_0x3dabee['userProfileSection'][_0x4db1da(0x402)]:null),_0x3dabee['query']={'sort':_0x4db1da(0x216b),'limit':0xa,'page':0x1},_0x3dabee[_0x4db1da(0x1339)]=_0x5b82dd,_0x3dabee['$onInit']=_0x232a54,_0x3dabee[_0x4db1da(0x1010)]=_0x6389d0,_0x3dabee[_0x4db1da(0x249c)]=_0x11bef6,_0x3dabee[_0x4db1da(0xa92)]=_0xb0500,_0x3dabee[_0x4db1da(0x10b2)]=_0x18fce6,_0x3dabee[_0x4db1da(0x1997)]=[],_0x28c606()['forIn'](_0x3dabee[_0x4db1da(0x198c)],function(_0x28933c){_0x3dabee['order']['push'](_0x28933c['id']);}),_0x42d124['on'](_0x4db1da(0xe44),_0x3dabee['onSave']),_0x42d124['on'](_0x4db1da(0x24cc),_0x3dabee['onSave']),_0x42d124['on'](_0x4db1da(0x14d1),_0x3dabee['onFaxMessageSave']);function _0x232a54(){const _0x344288=_0x4db1da;_0x28c606()['forIn'](_0x3dabee[_0x344288(0x198c)],function(_0x1f9c02,_0x56e4d6){const _0x120bb0=_0x344288;_0x3dabee[_0x120bb0(0x21d6)][_0x56e4d6]&&_0x28c606()[_0x120bb0(0x14fe)](_0x1f9c02,_0x3dabee[_0x120bb0(0x21d6)][_0x56e4d6]);}),_0x28c606()[_0x344288(0x1789)](_0x3dabee[_0x344288(0x198c)],function(_0x5015ad,_0x1522ac){const _0x31e36f=_0x344288,_0x5d0706={'id':_0x1522ac,'sort':'-id','direction':'in','limit':0x1,'offset':0x0,'$gte':_0x31e36f(0x1f64)+_0x2ac33a()()[_0x31e36f(0x246e)](_0x31e36f(0x2784))[_0x31e36f(0x1c2c)](_0x31e36f(0x5f7))};_0x5da921[_0x31e36f(0x549)]['getMessages'](_0x5d0706)[_0x31e36f(0x15e7)][_0x31e36f(0x64a)](function(_0x5385ae){const _0x3f6d05=_0x31e36f;return _0x5385ae&&(_0x5015ad['in']=_0x5385ae['count']||0x0,_0x5015ad[_0x3f6d05(0x1c9d)]=_0x5385ae[_0x3f6d05(0x28b8)]&&_0x5385ae[_0x3f6d05(0x28b8)][_0x3f6d05(0x1b9e)]?_0x5385ae[_0x3f6d05(0x28b8)][0x0][_0x3f6d05(0x2378)]:undefined),_0x5d0706[_0x3f6d05(0x484)]='out',_0x5da921[_0x3f6d05(0x549)][_0x3f6d05(0x1fe)](_0x5d0706)[_0x3f6d05(0x15e7)];})['then'](function(_0x45bf77){const _0x4f774e=_0x31e36f;_0x45bf77&&(_0x5015ad[_0x4f774e(0x1d6d)]=_0x45bf77[_0x4f774e(0xb90)]||0x0,_0x5015ad[_0x4f774e(0x1e82)]=_0x45bf77[_0x4f774e(0x28b8)]&&_0x45bf77[_0x4f774e(0x28b8)][_0x4f774e(0x1b9e)]?_0x45bf77[_0x4f774e(0x28b8)][0x0][_0x4f774e(0x2378)]:undefined);})[_0x31e36f(0x20cd)](function(_0xcf2c43){const _0x30fff9=_0x31e36f;console[_0x30fff9(0x9b4)](_0xcf2c43);});});}function _0x11bef6(_0x2a70f1){const _0x8cd621=_0x4db1da;_0x3dabee[_0x8cd621(0x198c)][_0x2a70f1['id']]&&_0x28c606()[_0x8cd621(0x14fe)](_0x3dabee['faxAccounts'][_0x2a70f1['id']],_0x2a70f1);}function _0xb0500(_0x1a2f70){const _0x1808c6=_0x4db1da;_0x3dabee[_0x1808c6(0x198c)][_0x1a2f70['FaxAccountId']]&&(_0x1a2f70[_0x1808c6(0x484)]=='in'?(_0x3dabee['faxAccounts'][_0x1a2f70[_0x1808c6(0x1da3)]]['in']+=0x1,_0x3dabee[_0x1808c6(0x198c)][_0x1a2f70[_0x1808c6(0x1da3)]][_0x1808c6(0x1c9d)]=_0x1a2f70[_0x1808c6(0x2378)]):(_0x3dabee[_0x1808c6(0x198c)][_0x1a2f70[_0x1808c6(0x1da3)]][_0x1808c6(0x1d6d)]+=0x1,_0x3dabee[_0x1808c6(0x198c)][_0x1a2f70[_0x1808c6(0x1da3)]][_0x1808c6(0x1e82)]=_0x1a2f70[_0x1808c6(0x2378)]));}function _0x18fce6(_0xc3cb26,_0x441467){_0x3ffbff['go']('app.fax.faxAccounts.edit',{'id':_0x441467['id'],'faxAccount':_0x441467});}let _0x1647f4=!![],_0x248e5d=0x1;_0x37c1c1[_0x4db1da(0xc62)](_0x4db1da(0x1cb9),function(_0x2f3d2f,_0x176347){const _0xba9acd=_0x4db1da;_0x1647f4?_0x13d901(function(){_0x1647f4=![];}):(!_0x176347&&(_0x248e5d=_0x3dabee[_0xba9acd(0x289a)][_0xba9acd(0xc72)]),_0x2f3d2f!==_0x176347&&(_0x3dabee['query'][_0xba9acd(0xc72)]=0x1),!_0x2f3d2f&&(_0x3dabee['query'][_0xba9acd(0xc72)]=_0x248e5d),_0x3dabee[_0xba9acd(0x1010)]());});function _0x5b82dd(_0x182b86){const _0x5837d1=_0x4db1da;_0x3dabee[_0x5837d1(0x198c)]=_0x182b86?_0x28c606()[_0x5837d1(0x161e)](_0x182b86[_0x5837d1(0x28b8)]?_0x182b86[_0x5837d1(0x28b8)]:[],'id'):{};if(_0x182b86[_0x5837d1(0x28b8)]){_0x3dabee[_0x5837d1(0x1997)]=[];for(let _0x2ecb05=0x0;_0x2ecb05<_0x182b86[_0x5837d1(0x28b8)][_0x5837d1(0x1b9e)];_0x2ecb05++){_0x3dabee[_0x5837d1(0x1997)][_0x5837d1(0x1954)](_0x182b86[_0x5837d1(0x28b8)][_0x2ecb05]['id']);}}_0x232a54();}function _0x6389d0(){const _0x45b8f0=_0x4db1da;_0x3dabee['query'][_0x45b8f0(0x24f9)]=(_0x3dabee['query'][_0x45b8f0(0xc72)]-0x1)*_0x3dabee[_0x45b8f0(0x289a)][_0x45b8f0(0x25bb)],_0x5f046c['hasRole']('admin')?_0x3dabee[_0x45b8f0(0x1713)]=_0x5da921['faxAccount'][_0x45b8f0(0x896)](_0x3dabee[_0x45b8f0(0x289a)],_0x5b82dd)[_0x45b8f0(0x15e7)]:(_0x3dabee[_0x45b8f0(0x289a)]['id']=_0x3dabee[_0x45b8f0(0x16a8)]['id'],_0x3dabee[_0x45b8f0(0x289a)][_0x45b8f0(0xa21)]=_0x45b8f0(0x1d83),_0x3dabee[_0x45b8f0(0x1713)]=_0x5da921[_0x45b8f0(0x16a8)][_0x45b8f0(0x2565)](_0x3dabee[_0x45b8f0(0x289a)],_0x5b82dd)[_0x45b8f0(0x15e7)]);}_0x37c1c1[_0x4db1da(0x8c7)]('$destroy',function(){const _0x37b5d0=_0x4db1da;_0x42d124[_0x37b5d0(0x1951)](_0x37b5d0(0xe44)),_0x42d124[_0x37b5d0(0x1951)](_0x37b5d0(0x24cc)),_0x42d124[_0x37b5d0(0x1951)]('faxMessage:save');});}const _0xe8b07a=_0x224f0c;;_0x5bc3d0['$inject']=[_0x49a1e3(0x1674),'$q',_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x1ce1),'pauses','agents',_0x49a1e3(0x287f),'api',_0x49a1e3(0x633),_0x49a1e3(0x680),'helperClasses',_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x1239)];function _0x5bc3d0(_0x1a2110,_0xb67a22,_0x52c15c,_0x425b49,_0x3e94ed,_0x3b959e,_0x50b565,_0x2180df,_0x4a51d3,_0xeaf8aa,_0x37ede8,_0x2431f2,_0x3384e9,_0x1fd7e7,_0x44b295,_0x315cd4,_0x4bf1df,_0x404235){const _0x50f2c6=_0x49a1e3,_0x2894c7=this,_0x588ac2=[_0x50f2c6(0x1c79),_0x50f2c6(0x1eab),_0x50f2c6(0x7a4),_0x50f2c6(0x2148),'pauseType',_0x50f2c6(0x2148),_0x50f2c6(0xe2f),'address',_0x50f2c6(0x2248),_0x50f2c6(0x1451),_0x50f2c6(0x292),_0x50f2c6(0xf2d),_0x50f2c6(0x1f34),'faxPause',_0x50f2c6(0x11a4),'chatCapacity',_0x50f2c6(0x1561),_0x50f2c6(0x8cb),_0x50f2c6(0x708),'whatsappCapacity',_0x50f2c6(0x1839),_0x50f2c6(0x1b1d),_0x50f2c6(0x1099),_0x50f2c6(0x9ec),_0x50f2c6(0x41d),'whatsappCurrentCapacity','faxCurrentCapacity','chatStatus',_0x50f2c6(0x11d7),_0x50f2c6(0x13f4),_0x50f2c6(0x2431),_0x50f2c6(0x22a4),_0x50f2c6(0x2014),_0x50f2c6(0x2783),'chatStatusTime',_0x50f2c6(0x1857),_0x50f2c6(0x1f78),_0x50f2c6(0x24a3),_0x50f2c6(0x17fb),_0x50f2c6(0x16c8),_0x50f2c6(0x17f4),_0x50f2c6(0x1e4e),'destconnectedlinenum',_0x50f2c6(0x2921),_0x50f2c6(0x52c),'phoneBarEnableAutomaticScreenRecording'],_0x1c9d6a=[_0x50f2c6(0x2248),'openchannelPause','mailPause',_0x50f2c6(0xf2d),_0x50f2c6(0x1f34),_0x50f2c6(0x211),'voicePause',_0x50f2c6(0x1eab)];_0x2894c7[_0x50f2c6(0x1d3d)]=_0x315cd4[_0x50f2c6(0x808)](),_0x2894c7[_0x50f2c6(0x1b8)]=['ringing',_0x50f2c6(0x7be),_0x50f2c6(0x94d),'onhold',_0x50f2c6(0x181)],_0x2894c7['pauses']=_0x50b565||{'count':0x0,'rows':[]},_0x2894c7[_0x50f2c6(0x1947)]=_0x4bf1df,_0x2894c7[_0x50f2c6(0x16a8)]=_0x1fd7e7,_0x2894c7[_0x50f2c6(0x16b2)]=_0x44b295&&_0x44b295['count']==0x1?_0x44b295[_0x50f2c6(0x28b8)][0x0]:null,_0x2894c7['crudPermissions']=_0x315cd4[_0x50f2c6(0xa7e)](_0x2894c7[_0x50f2c6(0x16b2)]?_0x2894c7[_0x50f2c6(0x16b2)][_0x50f2c6(0x402)]:null),_0x2894c7[_0x50f2c6(0xd77)]=_0x2180df?_0x28c606()[_0x50f2c6(0x161e)](_0x2180df['rows']?_0x2180df[_0x50f2c6(0x28b8)]:[],'id'):{},_0x2894c7[_0x50f2c6(0x287f)]=_0x4a51d3?_0x28c606()[_0x50f2c6(0x161e)](_0x4a51d3[_0x50f2c6(0x28b8)]?_0x4a51d3[_0x50f2c6(0x28b8)]:[],'id'):{},_0x2894c7[_0x50f2c6(0x2d8)]={},_0x2894c7['load']=![],_0x2894c7[_0x50f2c6(0x1997)]=[],_0x2894c7[_0x50f2c6(0xf0f)]={};for(const _0x4da308 in _0x2894c7[_0x50f2c6(0xd77)]){typeof _0x2894c7['agents'][_0x4da308]!==_0x50f2c6(0x19a1)&&(_0x2894c7['agents'][_0x4da308][_0x50f2c6(0x2354)]=!![]);}_0x2894c7['query']={'limit':0xa,'page':0x1,'order':_0x50f2c6(0x15c),'globalStatusFilter':'','pauseTypeFilter':''},_0x2894c7[_0x50f2c6(0xad9)]=_0x3da5fa,_0x2894c7[_0x50f2c6(0x279d)]=_0xba5ef8,_0x2894c7[_0x50f2c6(0x2826)]=_0x743ad8,_0x2894c7[_0x50f2c6(0xab9)]=_0x539b49,_0x2894c7['showInfo']=_0x30a94b,_0x2894c7['getAgentStatus']=_0x1bdba8,_0x2894c7['getAgentGlobalStatus']=_0x56276d,_0x2894c7[_0x50f2c6(0x54e)]=_0x232b1a,_0x2894c7['checkPause']=_0x4e71c2,_0x2894c7[_0x50f2c6(0x2744)]=_0x1698d5,_0x2894c7['onSave']=_0x3886d8,_0x2894c7[_0x50f2c6(0x2853)]=_0x58422f,_0x2894c7[_0x50f2c6(0x2483)]=_0x311e83,_0x2894c7[_0x50f2c6(0x1a7c)]=_0x1a00b8,_0x2894c7[_0x50f2c6(0x125b)]=_0x47c4dc,_0x2894c7[_0x50f2c6(0x24f7)]=_0x5eb7a5,_0x37ede8['on'](_0x50f2c6(0x17e9),_0x2894c7['onSave']),_0x37ede8['on'](_0x50f2c6(0x130f),_0x2894c7[_0x50f2c6(0x2853)]),_0x37ede8['on']('user:agentconnect',_0x2894c7[_0x50f2c6(0x1a7c)]),_0x37ede8['on'](_0x50f2c6(0x1b7e),_0x2894c7[_0x50f2c6(0x125b)]),_0x311e83();let _0x204259=_0x404235(function(){_0x2894c7['load']&&(_0x2894c7['load']=![],_0x311e83());},0x3e7);function _0x311e83(){const _0x723df5=_0x50f2c6;_0x2894c7[_0x723df5(0x2789)]=![];const _0x11187f=_0xb67a22[_0x723df5(0x122)]();_0x2894c7[_0x723df5(0x1713)]=_0x11187f[_0x723df5(0x1713)],_0x2894c7['filteredAgents']=[],_0x2894c7[_0x723df5(0x1997)]=[],_0x28c606()['forIn'](_0x2894c7[_0x723df5(0xd77)],function(_0xd135ec,_0x55090e){const _0x9e77ff=_0x723df5;_0x2894c7['rpcAgents'][_0x55090e]&&_0x28c606()['merge'](_0xd135ec,_0x28c606()[_0x9e77ff(0x27bb)](_0x28c606()['omit'](_0x2894c7[_0x9e77ff(0x287f)][_0x55090e],_0x1c9d6a),_0x588ac2)),_0x56276d(_0xd135ec),_0xd135ec[_0x9e77ff(0x1eab)]?(_0x2894c7['filteredAgents'][_0x9e77ff(0x1954)](_0xd135ec),_0x2894c7['agentInternal'][_0xd135ec[_0x9e77ff(0xe2f)]]=_0x55090e):_0xd135ec[_0x9e77ff(0x14f5)]=_0x28c606()['toNumber'](_0x2ac33a()()[_0x9e77ff(0x1c2c)]('x'));});_0x2894c7['query']['globalStatusFilter']&&_0x28c606()[_0x723df5(0x21c7)](_0x2894c7[_0x723df5(0x2202)],function(_0x5c227e){const _0x5bc18f=_0x723df5;return _0x5c227e[_0x5bc18f(0x876)]!==_0x2894c7[_0x5bc18f(0x289a)]['globalStatusFilter'];});_0x2894c7[_0x723df5(0x289a)][_0x723df5(0x1421)]&&_0x28c606()[_0x723df5(0x21c7)](_0x2894c7[_0x723df5(0x2202)],function(_0x27fb37){const _0x48e1af=_0x723df5;return _0x27fb37[_0x48e1af(0x84f)]!==_0x2894c7[_0x48e1af(0x289a)][_0x48e1af(0x1421)];});_0x2894c7[_0x723df5(0x289a)]['filter']&&_0x28c606()[_0x723df5(0x21c7)](_0x2894c7[_0x723df5(0x2202)],function(_0x3bec8a){const _0x23e140=_0x723df5;return _0x3bec8a[_0x23e140(0x15c)][_0x23e140(0x2554)]()['indexOf'](_0x2894c7[_0x23e140(0x289a)]['filter'][_0x23e140(0x2554)]())<0x0;});_0x2894c7['filteredAgents']=_0xb4f8b6(_0x2894c7[_0x723df5(0x2202)]);const _0x4aa814=(_0x2894c7['query'][_0x723df5(0xc72)]-0x1)*_0x2894c7[_0x723df5(0x289a)][_0x723df5(0x25bb)];_0x2894c7[_0x723df5(0x2d8)]=_0x28c606()[_0x723df5(0xfeb)](_0x2894c7[_0x723df5(0x2202)],_0x4aa814)[_0x723df5(0x142e)](0x0,_0x2894c7[_0x723df5(0x289a)]['limit']);for(let _0x36f848=0x0;_0x36f848<_0x2894c7[_0x723df5(0x2d8)][_0x723df5(0x1b9e)];_0x36f848+=0x1){_0x2894c7[_0x723df5(0x1997)]['push'](_0x2894c7[_0x723df5(0x2d8)][_0x36f848]['id']);}_0x11187f[_0x723df5(0x1268)](),_0x2894c7[_0x723df5(0x2789)]=!![];}function _0x3886d8(_0x26b3ca){const _0xf0e380=_0x50f2c6;_0x2894c7[_0xf0e380(0xd77)][_0x26b3ca['id']]&&(_0x28c606()[_0xf0e380(0x14fe)](_0x2894c7[_0xf0e380(0xd77)][_0x26b3ca['id']],_0x28c606()['pick'](_0x28c606()[_0xf0e380(0xd09)](_0x26b3ca,_0x1c9d6a),_0x588ac2)),_0x28c606()[_0xf0e380(0x14fe)](_0x2894c7[_0xf0e380(0x287f)][_0x26b3ca['id']],_0x28c606()['pick'](_0x28c606()[_0xf0e380(0xd09)](_0x26b3ca,_0x1c9d6a),_0x588ac2)),_0x56276d(_0x2894c7[_0xf0e380(0xd77)][_0x26b3ca['id']]));}function _0x58422f(_0x412486){const _0x5b54c7=_0x50f2c6;_0x2894c7[_0x5b54c7(0xd77)][_0x412486['id']]&&(_0x28c606()['merge'](_0x2894c7[_0x5b54c7(0xd77)][_0x412486['id']],_0x28c606()[_0x5b54c7(0x27bb)](_0x412486,_0x588ac2)),_0x28c606()[_0x5b54c7(0x14fe)](_0x2894c7[_0x5b54c7(0x287f)][_0x412486['id']],_0x28c606()[_0x5b54c7(0x27bb)](_0x412486,_0x588ac2)),_0x412486[_0x5b54c7(0x2148)]&&(_0x2894c7[_0x5b54c7(0xd77)][_0x412486['id']][_0x5b54c7(0x14f5)]=_0x412486[_0x5b54c7(0x2148)],_0x2894c7[_0x5b54c7(0x287f)][_0x412486['id']]['globalStatusTime']=_0x412486['lastPauseAt']),_0x56276d(_0x2894c7[_0x5b54c7(0xd77)][_0x412486['id']]));}function _0x1a00b8(_0x1274aa){const _0xe8442f=_0x50f2c6;_0x2894c7[_0xe8442f(0xd77)][_0x2894c7['agentInternal'][_0x1274aa[_0xe8442f(0xf65)]]]&&(_0x28c606()[_0xe8442f(0x14fe)](_0x2894c7['agents'][_0x2894c7['agentInternal'][_0x1274aa['destaccountcode']]],_0x28c606()[_0xe8442f(0x27bb)](_0x1274aa,[_0xe8442f(0x1e4e),_0xe8442f(0xeae)])),_0x28c606()[_0xe8442f(0x14fe)](_0x2894c7[_0xe8442f(0x287f)][_0x2894c7[_0xe8442f(0xf0f)][_0x1274aa[_0xe8442f(0xf65)]]],_0x28c606()[_0xe8442f(0x27bb)](_0x1274aa,[_0xe8442f(0x1e4e),_0xe8442f(0xeae)])));}function _0x47c4dc(_0x40e2f8){const _0x2664fc=_0x50f2c6;_0x2894c7[_0x2664fc(0xd77)][_0x2894c7[_0x2664fc(0xf0f)][_0x40e2f8[_0x2664fc(0xf65)]]]&&(_0x2894c7['agents'][_0x2894c7['agentInternal'][_0x40e2f8[_0x2664fc(0xf65)]]]=_0x28c606()[_0x2664fc(0xd09)](_0x2894c7[_0x2664fc(0xd77)][_0x2894c7[_0x2664fc(0xf0f)][_0x40e2f8[_0x2664fc(0xf65)]]],['queue',_0x2664fc(0xeae)]),_0x2894c7[_0x2664fc(0x287f)][_0x2894c7[_0x2664fc(0xf0f)][_0x40e2f8[_0x2664fc(0xf65)]]]=_0x28c606()[_0x2664fc(0xd09)](_0x2894c7['rpcAgents'][_0x2894c7[_0x2664fc(0xf0f)][_0x40e2f8['destaccountcode']]],[_0x2664fc(0x1e4e),_0x2664fc(0xeae)]));}function _0x3da5fa(_0x2a6993){const _0x46cfcd=_0x50f2c6;return _0xeaf8aa[_0x46cfcd(0x2e8)][_0x46cfcd(0xad9)]({'id':_0x2a6993['id'],'device':_0x46cfcd(0x252e),'agent_id':_0x2a6993['id'],'agent_name':_0x2a6993[_0x46cfcd(0x2494)]})['$promise']['then'](function(){const _0x529121=_0x46cfcd;_0x2431f2['success']({'title':'Agent\x20logout','msg':_0x2a6993[_0x529121(0x15c)]+'\x20\x20properly\x20logout'}),_0x2894c7[_0x529121(0xd77)][_0x2a6993['id']]&&(_0x2894c7['agents'][_0x2a6993['id']][_0x529121(0x1eab)]=![]),_0x2894c7[_0x529121(0x287f)][_0x2a6993['id']]&&(_0x2894c7[_0x529121(0x287f)][_0x2a6993['id']][_0x529121(0x1eab)]=![]),_0x311e83();})['catch'](function(_0x31de53){const _0x57f3bc=_0x46cfcd;_0x2431f2[_0x57f3bc(0x1bd0)]({'title':_0x31de53[_0x57f3bc(0x10b3)]?_0x57f3bc(0x575)+_0x31de53[_0x57f3bc(0x10b3)]+'\x20-\x20'+_0x31de53['statusText']:_0x57f3bc(0x180),'msg':_0x31de53[_0x57f3bc(0x1c52)]?JSON[_0x57f3bc(0x2317)](_0x31de53[_0x57f3bc(0x1c52)][_0x57f3bc(0x18ca)]):_0x31de53[_0x57f3bc(0x2915)]()});});}function _0x743ad8(_0x146842,_0x208b09){const _0x4655b8=_0x50f2c6;return _0xeaf8aa[_0x4655b8(0x2e8)]['pause']({'id':_0x146842['id'],'type':_0x208b09})[_0x4655b8(0x15e7)][_0x4655b8(0x64a)](function(_0x5901d5){const _0x2f8eb6=_0x4655b8;_0x2894c7[_0x2f8eb6(0xd77)][_0x146842['id']]&&_0x28c606()['merge'](_0x2894c7[_0x2f8eb6(0xd77)][_0x146842['id']],_0x28c606()[_0x2f8eb6(0x27bb)](_0x5901d5,_0x588ac2)),_0x2894c7[_0x2f8eb6(0x287f)][_0x146842['id']]&&_0x28c606()['merge'](_0x2894c7['rpcAgents'][_0x146842['id']],_0x28c606()[_0x2f8eb6(0x27bb)](_0x5901d5,_0x588ac2)),_0x56276d(_0x2894c7[_0x2f8eb6(0xd77)][_0x146842['id']]);})['catch'](function(_0x34b604){const _0x435afd=_0x4655b8;_0x2431f2[_0x435afd(0x1bd0)]({'title':_0x34b604[_0x435afd(0x10b3)]?_0x435afd(0x575)+_0x34b604['status']+'\x20-\x20'+_0x34b604[_0x435afd(0x2115)]:_0x435afd(0x180),'msg':_0x34b604[_0x435afd(0x1c52)]?JSON[_0x435afd(0x2317)](_0x34b604['data']['message']):_0x34b604[_0x435afd(0x2915)]()});});}function _0x539b49(_0x351f1d){const _0x43cbd1=_0x50f2c6;return _0xeaf8aa[_0x43cbd1(0x2e8)][_0x43cbd1(0x818)]({'id':_0x351f1d['id']})[_0x43cbd1(0x15e7)]['then'](function(_0xa9cb60){const _0x24267d=_0x43cbd1;_0x2894c7[_0x24267d(0xd77)][_0x351f1d['id']]&&_0x28c606()[_0x24267d(0x14fe)](_0x2894c7['agents'][_0x351f1d['id']],_0x28c606()[_0x24267d(0x27bb)](_0xa9cb60,_0x588ac2)),_0x2894c7[_0x24267d(0x287f)][_0x351f1d['id']]&&_0x28c606()[_0x24267d(0x14fe)](_0x2894c7[_0x24267d(0x287f)][_0x351f1d['id']],_0x28c606()[_0x24267d(0x27bb)](_0xa9cb60,_0x588ac2)),_0x56276d(_0x2894c7[_0x24267d(0xd77)][_0x351f1d['id']]);})[_0x43cbd1(0x20cd)](function(_0x1b774a){const _0x102ef3=_0x43cbd1;_0x2431f2['error']({'title':_0x1b774a[_0x102ef3(0x10b3)]?_0x102ef3(0x575)+_0x1b774a[_0x102ef3(0x10b3)]+'\x20-\x20'+_0x1b774a['statusText']:_0x102ef3(0x180),'msg':_0x1b774a[_0x102ef3(0x1c52)]?JSON[_0x102ef3(0x2317)](_0x1b774a[_0x102ef3(0x1c52)]['message']):_0x1b774a[_0x102ef3(0x2915)]()});});}function _0x30a94b(_0x490159){const _0x39b100=_0x50f2c6;_0x425b49[_0x39b100(0xa60)](_0x425b49[_0x39b100(0x2540)]()[_0x39b100(0x1945)](!![])[_0x39b100(0x2021)](_0x39b100(0xe68))[_0x39b100(0x33a)](_0x39b100(0x424))['ok']('Ok')[_0x39b100(0x2283)](_0x490159));}function _0xba5ef8(_0x5cc899,_0x5cf233){const _0x113468=_0x50f2c6;_0x425b49[_0x113468(0xa60)]({'controller':_0x113468(0x5a7),'controllerAs':'vm','templateUrl':_0x5eb675,'parent':angular['element'](_0x3e94ed['body']),'targetEvent':_0x5cf233,'clickOutsideToClose':!![],'locals':{'agent':_0x5cc899,'agents':[],'channel':_0x113468(0x1d37),'direction':_0x113468(0x12a4),'crudPermissions':_0x2894c7[_0x113468(0x402)]}});}function _0x232b1a(_0x1fe847){return _0x1fe847==='pause'||_0x1fe847==='*pause';}function _0x4e71c2(_0x40c150){const _0x5c129f=_0x50f2c6;return _0x40c150===_0x5c129f(0x2826);}function _0x1698d5(_0x1e0d9b){const _0x814fa4=_0x50f2c6;return _0x1e0d9b===_0x814fa4(0x1bcc);}function _0x65a06d(_0x84f839){const _0x37a339=_0x50f2c6;return _0x84f839===_0x37a339(0xac6)||_0x84f839==='unknown'||_0x84f839===_0x37a339(0x407)||_0x84f839===_0x37a339(0xf8e)||_0x28c606()[_0x37a339(0x28d7)](_0x84f839);}function _0x1bdba8(_0x55330e,_0x294004){const _0x1f17c0=_0x50f2c6;if(_0x294004==='voice'){if(_0x55330e[_0x294004+_0x1f17c0(0x2311)]!==_0x1f17c0(0xac6))return _0x55330e[_0x294004+_0x1f17c0(0x2311)];if(_0x55330e[_0x294004+_0x1f17c0(0x9d3)])return _0x55330e[_0x294004+'Status']=_0x1f17c0(0x2826),'pause';return _0x1f17c0(0xac6);}else{if(_0x55330e[_0x294004+_0x1f17c0(0x9d3)])return _0x55330e[_0x294004+'Status']='pause','pause';return _0x55330e[_0x294004+_0x1f17c0(0x2311)];}}function _0x56276d(_0x4bbd85){const _0x4b87a8=_0x50f2c6;let _0x4cdb00=_0x4b87a8(0x1191);if(_0x28c606()[_0x4b87a8(0x2972)]([_0x1bdba8(_0x4bbd85,_0x4b87a8(0x227c)),_0x1bdba8(_0x4bbd85,_0x4b87a8(0xf52)),_0x1bdba8(_0x4bbd85,_0x4b87a8(0xc71)),_0x1bdba8(_0x4bbd85,_0x4b87a8(0x28ad)),_0x1bdba8(_0x4bbd85,_0x4b87a8(0x10aa)),_0x1bdba8(_0x4bbd85,_0x4b87a8(0x1a29)),_0x1bdba8(_0x4bbd85,_0x4b87a8(0x1d37))],_0x232b1a))_0x4cdb00=_0x4b87a8(0x2826);else{if(_0x28c606()[_0x4b87a8(0x25f8)]([_0x1bdba8(_0x4bbd85,'voice'),_0x1bdba8(_0x4bbd85,_0x4b87a8(0xf52)),_0x1bdba8(_0x4bbd85,'mail'),_0x1bdba8(_0x4bbd85,_0x4b87a8(0x28ad)),_0x1bdba8(_0x4bbd85,_0x4b87a8(0x10aa)),_0x1bdba8(_0x4bbd85,_0x4b87a8(0x1a29)),_0x1bdba8(_0x4bbd85,'fax')],_0x232b1a))_0x4cdb00='*pause';else _0x28c606()[_0x4b87a8(0x2972)]([_0x1bdba8(_0x4bbd85,_0x4b87a8(0x227c)),_0x1bdba8(_0x4bbd85,_0x4b87a8(0xf52)),_0x1bdba8(_0x4bbd85,_0x4b87a8(0xc71)),_0x1bdba8(_0x4bbd85,_0x4b87a8(0x28ad)),_0x1bdba8(_0x4bbd85,_0x4b87a8(0x10aa)),_0x1bdba8(_0x4bbd85,'whatsapp'),_0x1bdba8(_0x4bbd85,_0x4b87a8(0x1d37))],_0x65a06d)?_0x4cdb00='idle':_0x4cdb00=_0x4b87a8(0x94d);}_0x4bbd85[_0x4b87a8(0x876)]!==_0x4cdb00&&(_0x4bbd85[_0x4b87a8(0x876)]=_0x4cdb00,_0x4bbd85[_0x4b87a8(0x2354)]?(_0x4bbd85[_0x4b87a8(0x2354)]=![],_0x4bbd85['globalStatusTime']=_0x232b1a(_0x4cdb00)?_0x28c606()[_0x4b87a8(0x1251)](_0x2ac33a()(_0x4bbd85['lastPauseAt'])['format']('x')):_0x28c606()[_0x4b87a8(0x2a2)]([_0x4bbd85[_0x4b87a8(0x17f4)],_0x4bbd85['chatStatusTime'],_0x4bbd85['mailStatusTime'],_0x4bbd85['smsStatusTime'],_0x4bbd85[_0x4b87a8(0x17fb)],_0x4bbd85[_0x4b87a8(0x1857)],_0x4bbd85[_0x4b87a8(0x16c8)]])):_0x4bbd85[_0x4b87a8(0x14f5)]=_0x28c606()['toNumber'](_0x2ac33a()()[_0x4b87a8(0x1c2c)]('x')));}function _0xb4f8b6(_0x5d3f37){const _0xa1622a=_0x50f2c6,_0x564d79=_0x28c606()[_0xa1622a(0x1273)](_0x2894c7['query']['order'],'-')?'desc':'asc';return _0x28c606()[_0xa1622a(0x288e)](_0x5d3f37,[_0x2894c7[_0xa1622a(0x289a)][_0xa1622a(0x1997)][_0xa1622a(0x1353)]('-','')],[_0x564d79]);}function _0x37e8e8(){_0x204259&&(_0x404235['cancel'](_0x204259),_0x204259=null);}function _0x5eb7a5(_0xba49c6,_0x39cd5d){const _0x4cc804=_0x50f2c6;return _0xeaf8aa['user'][_0x4cc804(0x2603)]({'id':_0xba49c6['id']},{'screenrecording':_0x39cd5d})['$promise'][_0x4cc804(0x20cd)](function(_0x155695){const _0x4722d8=_0x4cc804;_0x2431f2['error']({'title':_0x155695[_0x4722d8(0x10b3)]?_0x4722d8(0x575)+_0x155695[_0x4722d8(0x10b3)]+_0x4722d8(0x21db)+_0x155695[_0x4722d8(0x2115)]:'api.user.update','msg':_0x155695[_0x4722d8(0x1c52)]?JSON['stringify'](_0x155695[_0x4722d8(0x1c52)][_0x4722d8(0x18ca)]):_0x155695[_0x4722d8(0x2915)]()});});}_0x1a2110['$on'](_0x50f2c6(0xf28),function(){const _0x2c8402=_0x50f2c6;_0x37ede8[_0x2c8402(0x1951)](_0x2c8402(0x17e9)),_0x37ede8['removeAllListeners'](_0x2c8402(0x130f)),_0x37ede8[_0x2c8402(0x1951)]('user:agentconnect'),_0x37ede8['removeAllListeners'](_0x2c8402(0x1b7e)),_0x37e8e8();});}const _0x60b7e5=_0x5bc3d0;;const _0x13ad17=_0x2e4a48['p']+_0x49a1e3(0xa29);;const _0x5ea2c1=_0x2e4a48['p']+_0x49a1e3(0x1dd3);;_0x2273cd['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x1373),_0x49a1e3(0x1239),_0x49a1e3(0x1c06),_0x49a1e3(0x22c7),_0x49a1e3(0xa19),_0x49a1e3(0x633),'toasty',_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xdcf)];function _0x2273cd(_0x484e4c,_0x9142d3,_0x2a87a7,_0x5c2c80,_0x149cf4,_0x13cc4d,_0x4c9cc4,_0x3e156b,_0x1a22eb,_0x3834d1,_0x13b1e3,_0x1df0a6,_0x4f890f,_0x4be83c){const _0x587953=_0x49a1e3,_0x4032c8=this,_0x45fc0d=['loggedIn',_0x587953(0x1c58),_0x587953(0x188f),_0x587953(0x130d),_0x587953(0xc00),_0x587953(0xa1b),'message',_0x587953(0x11b3),_0x587953(0xa69),_0x587953(0x1608),_0x587953(0x20a7)];_0x4032c8[_0x587953(0x1d3d)]=_0x4be83c[_0x587953(0x808)](),_0x4032c8[_0x587953(0xb90)]=_0x4c9cc4['count']?_0x4c9cc4[_0x587953(0xb90)]:0x0,_0x4032c8[_0x587953(0x1c06)]=_0x4c9cc4?_0x28c606()[_0x587953(0x161e)](_0x4c9cc4[_0x587953(0x28b8)]?_0x4c9cc4[_0x587953(0x28b8)]:[],'id'):{},_0x4032c8[_0x587953(0x22c7)]=_0x3e156b?_0x28c606()[_0x587953(0x161e)](_0x3e156b[_0x587953(0x28b8)]?_0x3e156b[_0x587953(0x28b8)]:[],'id'):{},_0x4032c8['userProfile']=_0x1df0a6,_0x4032c8[_0x587953(0x16b2)]=_0x4f890f&&_0x4f890f['count']==0x1?_0x4f890f['rows'][0x0]:null,_0x4032c8[_0x587953(0x402)]=_0x4be83c[_0x587953(0xa7e)](_0x4032c8[_0x587953(0x16b2)]?_0x4032c8['userProfileSection']['crudPermissions']:null);_0x4be83c[_0x587953(0x4de)](_0x587953(0x333))?_0x4032c8['query']={'type':_0x587953(0x12a4),'sort':_0x587953(0x260c),'limit':0xa,'page':0x1}:_0x4032c8[_0x587953(0x289a)]={'id':_0x4032c8[_0x587953(0x1d3d)]['id'],'channel':_0x587953(0x1d37),'type':'inbound','sort':'-updatedAt','limit':0xa,'page':0x1};_0x4032c8[_0x587953(0x1339)]=_0x241fab,_0x4032c8[_0x587953(0x1f2c)]=_0x5d4eac,_0x4032c8['createOrEditFaxQueue']=_0x148bae,_0x4032c8[_0x587953(0x2241)]=_0x51b58e,_0x4032c8[_0x587953(0x10f3)]=_0x4888,_0x4032c8['onSave']=_0x9ae832,_0x4032c8[_0x587953(0x28b9)]=_0xb1c3fb,_0x4032c8[_0x587953(0x351)]=_0x2dcd37,_0x4032c8[_0x587953(0x2fe)]=_0xcb03aa,_0x4032c8[_0x587953(0x4c3)]=_0x50a7ce,_0x4032c8[_0x587953(0x259)]=_0x205974,_0x4032c8[_0x587953(0xea6)]=_0x184e0d,_0x4032c8[_0x587953(0x1997)]=[],_0x28c606()['forIn'](_0x4032c8[_0x587953(0x1c06)],function(_0x1cb618){const _0x2b1274=_0x587953;_0x4032c8['order'][_0x2b1274(0x1954)](_0x1cb618['id']);}),_0x3834d1['on'](_0x587953(0xfd1),_0x4032c8[_0x587953(0x249c)]),_0x3834d1['on'](_0x587953(0xcc4),_0x4032c8['onSaveMember']),_0x3834d1['on'](_0x587953(0x1ca9),_0x4032c8[_0x587953(0x351)]),_0x3834d1['on'](_0x587953(0x130f),_0x4032c8[_0x587953(0x2fe)]),_0x3834d1['on']('userVoiceQueue:remove',_0x4032c8['onLogout']),_0x3834d1['on']('userVoiceQueue:save',_0x4032c8['onLogin']);function _0x184e0d(){const _0x4d757e=_0x587953,_0x5f149b=[];return _0x28c606()[_0x4d757e(0x1789)](_0x4032c8[_0x4d757e(0x1c06)],function(_0x4d5f3f,_0x34ad75){const _0x288df2=_0x4d757e;_0x4d5f3f[_0x288df2(0x20a7)]=0x0,_0x4d5f3f['loggedInDb']=0x0,_0x4032c8[_0x288df2(0x1c06)][_0x34ad75][_0x288df2(0xd77)]={},_0x5f149b['push'](_0x1a22eb[_0x288df2(0xf82)][_0x288df2(0xf49)]({'id':_0x34ad75})[_0x288df2(0x15e7)]),_0x4032c8[_0x288df2(0x22c7)][_0x34ad75]&&_0x28c606()['merge'](_0x4d5f3f,_0x28c606()['pick'](_0x4032c8[_0x288df2(0x22c7)][_0x34ad75],_0x45fc0d));}),_0x5c2c80[_0x4d757e(0x2705)](_0x5f149b)[_0x4d757e(0x64a)](function(_0x34909c){const _0x1a1427=_0x4d757e;for(let _0x34a348=0x0;_0x34a348<_0x34909c['length'];_0x34a348+=0x1){for(let _0x35d053=0x0;_0x35d053<_0x34909c[_0x34a348][_0x1a1427(0x28b8)][_0x1a1427(0x1b9e)];_0x35d053++){_0x34909c[_0x34a348]['rows'][_0x35d053]['paused']&&_0x4032c8[_0x1a1427(0x1c06)][_0x34909c[_0x34a348][_0x1a1427(0x28b8)][_0x35d053]['FaxQueueId']][_0x1a1427(0x20a7)]++,_0x4032c8['queues'][_0x34909c[_0x34a348][_0x1a1427(0x28b8)][_0x35d053][_0x1a1427(0x89e)]][_0x1a1427(0x371)]++,_0x4032c8['queues'][_0x34909c[_0x34a348]['rows'][_0x35d053]['FaxQueueId']][_0x1a1427(0xd77)][_0x34909c[_0x34a348][_0x1a1427(0x28b8)][_0x35d053][_0x1a1427(0x246c)]]=_0x34909c[_0x34a348][_0x1a1427(0x28b8)][_0x35d053][_0x1a1427(0x89e)];}}})['catch'](function(_0x5a8520){const _0xdb9a98=_0x4d757e;console[_0xdb9a98(0x1bd0)](_0x5a8520);});}function _0x9ae832(_0x19147c){const _0x5587b9=_0x587953;_0x4032c8[_0x5587b9(0x1c06)][_0x19147c['id']]&&_0x28c606()[_0x5587b9(0x14fe)](_0x4032c8[_0x5587b9(0x1c06)][_0x19147c['id']],_0x28c606()[_0x5587b9(0x27bb)](_0x19147c,_0x45fc0d));}function _0xb1c3fb(_0x5d6308){const _0x1efbd7=_0x587953;_0x4032c8['queues'][_0x5d6308[_0x1efbd7(0x89e)]]&&_0x4032c8[_0x1efbd7(0x1c06)][_0x5d6308[_0x1efbd7(0x89e)]][_0x1efbd7(0x371)]++;}function _0x2dcd37(_0x44b1d0){const _0x3895df=_0x587953;_0x4032c8[_0x3895df(0x1c06)][_0x44b1d0[_0x3895df(0x89e)]]&&_0x4032c8[_0x3895df(0x1c06)][_0x44b1d0[_0x3895df(0x89e)]]['loggedInDb']--;}function _0xcb03aa(_0x51b1e8){const _0x5c2d01=_0x587953;console['log'](_0x5c2d01(0x2fe),_0x51b1e8);if(_0x51b1e8[_0x5c2d01(0x11a4)])_0x28c606()['forIn'](_0x4032c8['queues'],function(_0x23379b){const _0x436b74=_0x5c2d01;_0x23379b['agents'][_0x51b1e8['id']]&&(_0x23379b[_0x436b74(0x20a7)]+=0x1,console[_0x436b74(0x9b4)](_0x436b74(0x2826)));});else!_0x51b1e8[_0x5c2d01(0x11a4)]&&_0x28c606()['forIn'](_0x4032c8['queues'],function(_0x362565){const _0x47a47c=_0x5c2d01;_0x362565[_0x47a47c(0xd77)][_0x51b1e8['id']]&&(_0x362565[_0x47a47c(0x20a7)]>0x0&&(_0x362565[_0x47a47c(0x20a7)]-=0x1,console[_0x47a47c(0x9b4)]('unpause')));});}function _0x50a7ce(_0x212d2d){const _0x54bbc7=_0x587953;console[_0x54bbc7(0x9b4)](_0x54bbc7(0x889),_0x212d2d),_0x4032c8[_0x54bbc7(0x1c06)][_0x212d2d['FaxQueueId']]&&(_0x4032c8[_0x54bbc7(0x1c06)][_0x212d2d['FaxQueueId']][_0x54bbc7(0x371)]+=0x1,_0x4032c8[_0x54bbc7(0x1c06)][_0x212d2d['FaxQueueId']][_0x54bbc7(0xd77)][_0x212d2d[_0x54bbc7(0x246c)]]=_0x212d2d['FaxQueueId']);}function _0x205974(_0xbb755a){const _0xbd8317=_0x587953;console[_0xbd8317(0x9b4)](_0xbd8317(0x259),_0xbb755a),_0x4032c8[_0xbd8317(0x1c06)][_0xbb755a[_0xbd8317(0x89e)]]&&_0x4032c8[_0xbd8317(0x1c06)][_0xbb755a['FaxQueueId']][_0xbd8317(0x371)]>0x0&&(_0x4032c8[_0xbd8317(0x1c06)][_0xbb755a[_0xbd8317(0x89e)]][_0xbd8317(0x371)]-=0x1,delete _0x4032c8['queues'][_0xbb755a[_0xbd8317(0x89e)]][_0xbd8317(0xd77)][_0xbb755a['UserId']]);}let _0x1edd05=!![],_0x7d3204=0x1;_0x484e4c[_0x587953(0xc62)]('vm.query.filter',function(_0x232cbb,_0x302ef2){const _0x27264d=_0x587953;_0x1edd05?_0x9142d3(function(){_0x1edd05=![];}):(!_0x302ef2&&(_0x7d3204=_0x4032c8['query'][_0x27264d(0xc72)]),_0x232cbb!==_0x302ef2&&(_0x4032c8[_0x27264d(0x289a)]['page']=0x1),!_0x232cbb&&(_0x4032c8[_0x27264d(0x289a)][_0x27264d(0xc72)]=_0x7d3204),_0x4032c8[_0x27264d(0x1f2c)]());});function _0x241fab(_0xcb7c04){const _0x2e3a0b=_0x587953;_0x4032c8[_0x2e3a0b(0xb90)]=_0xcb7c04[_0x2e3a0b(0xb90)],_0x4032c8[_0x2e3a0b(0x1c06)]=_0xcb7c04?_0x28c606()[_0x2e3a0b(0x161e)](_0xcb7c04[_0x2e3a0b(0x28b8)]?_0xcb7c04[_0x2e3a0b(0x28b8)]:[],'id'):{};if(_0xcb7c04[_0x2e3a0b(0x28b8)]){_0x4032c8[_0x2e3a0b(0x1997)]=[];for(let _0x36eaa2=0x0;_0x36eaa2<_0xcb7c04['rows']['length'];_0x36eaa2++){_0x4032c8['order'][_0x2e3a0b(0x1954)](_0xcb7c04['rows'][_0x36eaa2]['id']);}}_0x184e0d();}function _0x5d4eac(){const _0xfdbca1=_0x587953;_0x4032c8[_0xfdbca1(0x289a)][_0xfdbca1(0x24f9)]=(_0x4032c8['query'][_0xfdbca1(0xc72)]-0x1)*_0x4032c8[_0xfdbca1(0x289a)][_0xfdbca1(0x25bb)],_0x4be83c['hasRole'](_0xfdbca1(0x333))?_0x4032c8[_0xfdbca1(0x1713)]=_0x1a22eb[_0xfdbca1(0xf82)][_0xfdbca1(0x896)](_0x4032c8[_0xfdbca1(0x289a)],_0x241fab)[_0xfdbca1(0x15e7)]:(_0x4032c8[_0xfdbca1(0x289a)]['id']=_0x4032c8['userProfile']['id'],_0x4032c8[_0xfdbca1(0x289a)][_0xfdbca1(0xa21)]=_0xfdbca1(0x952),_0x4032c8[_0xfdbca1(0x1713)]=_0x1a22eb[_0xfdbca1(0x16a8)][_0xfdbca1(0x2565)](_0x4032c8[_0xfdbca1(0x289a)],_0x241fab)['$promise']);}function _0x148bae(_0x3c7285,_0x530f15){const _0x53b086=_0x587953;_0x2a87a7[_0x53b086(0xa60)]({'controller':'CreateOrEditFaxQueueDialogController','controllerAs':'vm','templateUrl':_0x5ea2c1,'parent':angular['element'](_0x149cf4[_0x53b086(0xb49)]),'targetEvent':_0x3c7285,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x530f15,'faxQueues':_0x28c606()[_0x53b086(0x2146)](_0x4032c8['queues']),'license':null,'setting':null,'crudPermissions':_0x4032c8[_0x53b086(0x402)]}});}function _0x51b58e(_0x5e24f9,_0x323ea3){const _0x4f0b30=_0x587953;_0x2a87a7[_0x4f0b30(0xa60)]({'controller':'FaxQueueagentaddController','controllerAs':'vm','templateUrl':_0x13ad17,'parent':angular[_0x4f0b30(0x1f81)](_0x149cf4[_0x4f0b30(0xb49)]),'targetEvent':_0x5e24f9,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x323ea3,'faxQueues':_0x4032c8[_0x4f0b30(0x1c06)]?_0x4032c8[_0x4f0b30(0x1c06)][_0x4f0b30(0x28b8)]:[],'realtime':![],'crudPermissions':_0x4032c8[_0x4f0b30(0x402)]}});}function _0x4888(_0x258aeb){const _0x3fde09=_0x587953;return _0x1a22eb['faxQueue'][_0x3fde09(0x2603)](_0x258aeb)['$promise']['then'](function(){const _0x8582ef=_0x3fde09;_0x13b1e3['success']({'title':_0x8582ef(0x2bf),'msg':_0x258aeb[_0x8582ef(0x2494)]?_0x258aeb[_0x8582ef(0x2494)]+_0x8582ef(0x2032):''});})[_0x3fde09(0x20cd)](function(_0x5e1fe8){const _0x1614b4=_0x3fde09;_0x13b1e3[_0x1614b4(0x1bd0)]({'title':_0x1614b4(0x5d4),'msg':_0x5e1fe8['message']});});}_0x484e4c[_0x587953(0x8c7)](_0x587953(0xf28),function(){const _0x20d629=_0x587953;_0x3834d1[_0x20d629(0x1951)](_0x20d629(0xfd1)),_0x3834d1['removeAllListeners'](_0x20d629(0x1ca9)),_0x3834d1[_0x20d629(0x1951)](_0x20d629(0xcc4)),_0x3834d1[_0x20d629(0x1951)](_0x20d629(0x130f)),_0x3834d1[_0x20d629(0x1951)]('userVoiceQueue:remove'),_0x3834d1['removeAllListeners'](_0x20d629(0x44b));});}const _0x2ed665=_0x2273cd;;function _0x3aee97(){const _0x924968=_0x49a1e3;return{'status':{'registered':_0x924968(0x26f8),'unregistered':'red-300-fg\x20icon-close-circle','lagged':'red-300-fg\x20icon-close-circle','reachable':_0x924968(0x26f8),'unreachable':_0x924968(0x2448),'unknown':_0x924968(0x178c)},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':_0x924968(0xa51),'busy':_0x924968(0xe3e),'invalid':_0x924968(0x2971),'unavailable':_0x924968(0x2971),'ringing':_0x924968(0x15e),'ringinuse':_0x924968(0x15e),'onhold':_0x924968(0xced)},'channelStatus':{'ring':'blue-300-fg\x20icon-phone-incoming','up':_0x924968(0x5c4),'hangup':_0x924968(0x2150)},'channelStatusOut':{'ring':_0x924968(0x170),'up':_0x924968(0x5c4),'hangup':_0x924968(0x2150)}};}const _0x1f36ca=_0x3aee97;;_0x13bfc8[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x633)];function _0x13bfc8(_0x26094b,_0xa098ba,_0x501d62){const _0x29ee2f=_0x49a1e3,_0x189bfb=this;_0x501d62[_0x29ee2f(0x1c31)](),_0x501d62[_0x29ee2f(0x25fa)](),_0x189bfb[_0x29ee2f(0x197c)]=0x0;switch(_0xa098ba[_0x29ee2f(0xa6c)][_0x29ee2f(0x2494)]){case _0x29ee2f(0x23df):_0x189bfb['selectedTab']=0x0;break;case _0x29ee2f(0x26d6):_0x189bfb[_0x29ee2f(0x197c)]=0x1;break;case'app.fax.realtime.queues':_0x189bfb['selectedTab']=0x2;break;case _0x29ee2f(0x546):_0x189bfb[_0x29ee2f(0x197c)]=0x3;break;default:_0x189bfb[_0x29ee2f(0x197c)]=0x0,_0xa098ba['go'](_0x29ee2f(0x23df));}_0x26094b[_0x29ee2f(0xc62)](_0x29ee2f(0x2303),function(_0x3eee42,_0x382b1b){const _0x5cce77=_0x29ee2f;if(_0x3eee42!==_0x382b1b)switch(_0x3eee42){case 0x0:_0xa098ba['go']('app.fax.realtime.agents');break;case 0x1:_0xa098ba['go'](_0x5cce77(0x26d6));break;case 0x2:_0xa098ba['go'](_0x5cce77(0x78b));break;case 0x3:_0xa098ba['go'](_0x5cce77(0x546));break;default:_0xa098ba['go']('app.fax.realtime.agents');}});}const _0x21ce67=_0x13bfc8;;_0x9c1eef[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x20d4),_0x49a1e3(0x212a),'trunks',_0x49a1e3(0x10cb),_0x49a1e3(0xa19),_0x49a1e3(0x633),_0x49a1e3(0x1f8c),_0x49a1e3(0x77f),'userProfile','userProfileSection',_0x49a1e3(0xdcf)];function _0x9c1eef(_0x328568,_0x19bc63,_0x84d1af,_0x33b540,_0x1983f7,_0x53a267,_0x325b09,_0x32ddca,_0x90d771,_0x21f595,_0x52b6b8,_0x6fc3a4){const _0x5f4e49=_0x49a1e3,_0x19407f=this,_0x2ab403=[_0x5f4e49(0x10b3),'stateRegistry','registry',_0x5f4e49(0x1e5d),_0x5f4e49(0x23f2),'internal',_0x5f4e49(0x14f2),_0x5f4e49(0x10b3)];_0x19407f['currentUser']=_0x6fc3a4[_0x5f4e49(0x808)](),_0x19407f['count']=_0x33b540[_0x5f4e49(0xb90)],_0x19407f[_0x5f4e49(0xe23)]=_0x33b540?_0x33b540[_0x5f4e49(0x28b8)]:[],_0x19407f['rpcTrunks']=_0x1983f7?_0x1983f7[_0x5f4e49(0x28b8)]?_0x1983f7[_0x5f4e49(0x28b8)]:[]:[],_0x19407f[_0x5f4e49(0x289a)]={'fields':_0x5f4e49(0x1427),'active':!![],'sort':_0x5f4e49(0x260c),'limit':0xa,'page':0x1},_0x19407f['statusClass']=_0x32ddca[_0x5f4e49(0x10b3)],_0x19407f[_0x5f4e49(0x2396)]=_0x32ddca[_0x5f4e49(0x14f2)],_0x19407f[_0x5f4e49(0x16a8)]=_0x21f595,_0x19407f[_0x5f4e49(0x16b2)]=_0x52b6b8&&_0x52b6b8['count']==0x1?_0x52b6b8[_0x5f4e49(0x28b8)][0x0]:null,_0x19407f['crudPermissions']=_0x6fc3a4[_0x5f4e49(0xa7e)](_0x19407f['userProfileSection']?_0x19407f[_0x5f4e49(0x16b2)][_0x5f4e49(0x402)]:null),_0x19407f['success']=_0x2d5a12,_0x19407f[_0x5f4e49(0xea6)]=_0x10e733,_0x19407f['showInfo']=_0x2d06c9,_0x19407f[_0x5f4e49(0xcee)]=_0x32ae44,_0x19407f[_0x5f4e49(0x7b1)]=_0x1ab451,_0x19407f['onSave']=_0x342dcf,_0x325b09['on'](_0x5f4e49(0x1418),_0x19407f[_0x5f4e49(0x249c)]);function _0x10e733(){const _0x2c42dc=_0x5f4e49;let _0x486f69;for(let _0x5c762b=0x0;_0x5c762b<_0x19407f[_0x2c42dc(0xe23)][_0x2c42dc(0x1b9e)];_0x5c762b+=0x1){_0x486f69=_0x28c606()[_0x2c42dc(0xb10)](_0x19407f[_0x2c42dc(0x10cb)],['id',_0x19407f[_0x2c42dc(0xe23)][_0x5c762b]['id']]),_0x486f69>=0x0&&_0x28c606()[_0x2c42dc(0x14fe)](_0x19407f[_0x2c42dc(0xe23)][_0x5c762b],_0x28c606()['pick'](_0x19407f['rpcTrunks'][_0x486f69],_0x2ab403));}}function _0x2d06c9(_0x519ea3){const _0x23660b=_0x5f4e49;_0x84d1af[_0x23660b(0xa60)](_0x84d1af[_0x23660b(0x2540)]()['clickOutsideToClose'](!![])['title'](_0x23660b(0xe68))[_0x23660b(0x33a)](_0x23660b(0x424))['ok']('Ok')['targetEvent'](_0x519ea3));}function _0x229229(_0x5f3d62,_0x3e5538,_0x740e8a){const _0x5571d1=_0x5f4e49;_0x3e5538>=0x0&&_0x28c606()['merge'](_0x5f3d62[_0x3e5538],_0x28c606()[_0x5571d1(0x27bb)](_0x740e8a,_0x2ab403));}function _0x342dcf(_0x1e9722){const _0x249ce5=_0x5f4e49,_0xdd7e16=_0x28c606()[_0x249ce5(0xb10)](_0x19407f[_0x249ce5(0xe23)],['id',_0x1e9722['id']]),_0x5676e1=_0x28c606()[_0x249ce5(0xb10)](_0x19407f[_0x249ce5(0x10cb)],['id',_0x1e9722['id']]);_0x229229(_0x19407f[_0x249ce5(0xe23)],_0xdd7e16,_0x1e9722),_0x229229(_0x19407f['rpcTrunks'],_0x5676e1,_0x1e9722);}let _0x47e6fc=!![],_0xa776d0=0x1;_0x328568[_0x5f4e49(0xc62)](_0x5f4e49(0x1cb9),function(_0x42c868,_0x214523){const _0x3f3591=_0x5f4e49;_0x47e6fc?_0x19bc63(function(){_0x47e6fc=![];}):(!_0x214523&&(_0xa776d0=_0x19407f[_0x3f3591(0x289a)][_0x3f3591(0xc72)]),_0x42c868!==_0x214523&&(_0x19407f[_0x3f3591(0x289a)][_0x3f3591(0xc72)]=0x1),!_0x42c868&&(_0x19407f[_0x3f3591(0x289a)][_0x3f3591(0xc72)]=_0xa776d0),_0x19407f[_0x3f3591(0xcee)]());});function _0x2d5a12(_0x2b81f5){const _0x45d9df=_0x5f4e49;_0x19407f['count']=_0x2b81f5[_0x45d9df(0xb90)],_0x19407f[_0x45d9df(0xe23)]=_0x2b81f5?_0x2b81f5[_0x45d9df(0x28b8)]?_0x2b81f5[_0x45d9df(0x28b8)]:[]:[],_0x10e733();}function _0x32ae44(){const _0x2a66f5=_0x5f4e49;_0x19407f['query'][_0x2a66f5(0x24f9)]=(_0x19407f[_0x2a66f5(0x289a)]['page']-0x1)*_0x19407f[_0x2a66f5(0x289a)][_0x2a66f5(0x25bb)],_0x6fc3a4[_0x2a66f5(0x4de)]('admin')?_0x19407f['promise']=_0x53a267[_0x2a66f5(0x4ef)]['get'](_0x19407f[_0x2a66f5(0x289a)],_0x2d5a12)[_0x2a66f5(0x15e7)]:(_0x19407f[_0x2a66f5(0x289a)]['id']=_0x19407f[_0x2a66f5(0x16a8)]['id'],_0x19407f[_0x2a66f5(0x289a)][_0x2a66f5(0xa21)]=_0x2a66f5(0x740),_0x19407f[_0x2a66f5(0x1713)]=_0x53a267[_0x2a66f5(0x16a8)][_0x2a66f5(0x2565)](_0x19407f['query'],_0x2d5a12)[_0x2a66f5(0x15e7)]);}_0x328568[_0x5f4e49(0x8c7)](_0x5f4e49(0xf28),function(){const _0x4879ba=_0x5f4e49;_0x325b09[_0x4879ba(0x1951)](_0x4879ba(0x1418));});function _0x1ab451(_0x324977,_0x15df72){_0x90d771['go']('app.tools.trunks.edit',{'id':_0x15df72['id']});}}const _0x677de7=_0x9c1eef;;_0x20ee6e[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad)];function _0x20ee6e(_0x2cf31c){const _0x1f931c=_0x49a1e3;_0x2cf31c[_0x1f931c(0x14f2)](_0x1f931c(0x24c4),{'url':_0x1f931c(0x71d),'views':{'content@app':{'templateUrl':_0x2b77cb,'controller':_0x1f931c(0x1721)}},'resolve':{'userProfile':['apiResolver','Auth',function(_0x28e67d,_0x597aaf){const _0x107b4f=_0x1f931c;return _0x597aaf[_0x107b4f(0x4de)]('admin')?null:_0x28e67d['resolve']('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x597aaf[_0x107b4f(0x808)]()[_0x107b4f(0x21ac)]});}],'userProfileSection':[_0x1f931c(0x107c),'Auth',function(_0x4d1d28,_0x163180){const _0x5a7925=_0x1f931c;return _0x163180[_0x5a7925(0x4de)]('admin')?null:_0x4d1d28[_0x5a7925(0x1268)](_0x5a7925(0x2681),{'fields':_0x5a7925(0x527),'userProfileId':_0x163180[_0x5a7925(0x808)]()[_0x5a7925(0x21ac)],'sectionId':0x38e});}]},'authenticate':!![],'permissionId':0x38e})['state']('app.fax.realtime.agents',{'url':_0x1f931c(0x23f8),'controller':_0x1f931c(0x2019),'templateUrl':_0x4207a1,'resolve':{'pauses':[_0x1f931c(0x107c),function(_0x404cf5){const _0xedd8a=_0x1f931c;return _0x404cf5[_0xedd8a(0x1268)](_0xedd8a(0x1fae),{'nolimit':!![]});}],'agents':[_0x1f931c(0x107c),_0x1f931c(0xdcf),function(_0x15776d,_0x74b8f8){const _0x729649=_0x1f931c;return _0x74b8f8[_0x729649(0x4de)]('admin')?_0x15776d[_0x729649(0x1268)](_0x729649(0x142c),{'fields':_0x729649(0x1956),'role':_0x729649(0x11ae),'sort':_0x729649(0x15c),'nolimit':!![]}):_0x15776d['resolve']('userProfile@getResources',{'id':_0x74b8f8['getCurrentUser']()[_0x729649(0x21ac)],'section':'Agents','fields':_0x729649(0x1956),'role':_0x729649(0x11ae),'sort':'fullname','nolimit':!![]});}],'userProfile':[_0x1f931c(0x107c),_0x1f931c(0xdcf),function(_0x2bb6f9,_0x314a74){const _0x368d99=_0x1f931c;return _0x314a74[_0x368d99(0x4de)](_0x368d99(0x333))?null:_0x2bb6f9[_0x368d99(0x1268)](_0x368d99(0x6e3),{'fields':_0x368d99(0x10d2),'id':_0x314a74[_0x368d99(0x808)]()[_0x368d99(0x21ac)]});}],'userProfileSection':[_0x1f931c(0x107c),_0x1f931c(0xdcf),function(_0x24b1dc,_0x48dd67){const _0x2ac6ff=_0x1f931c;return _0x48dd67['hasRole']('admin')?null:_0x24b1dc[_0x2ac6ff(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x48dd67[_0x2ac6ff(0x808)]()[_0x2ac6ff(0x21ac)],'sectionId':0xca});}],'rpcAgents':[_0x1f931c(0x107c),function(_0x628bbd){const _0x248b34=_0x1f931c;return _0x628bbd[_0x248b34(0x1268)](_0x248b34(0x2222));}]},'authenticate':!![],'permissionId':0x38e})[_0x1f931c(0x14f2)](_0x1f931c(0x26d6),{'url':_0x1f931c(0xa5b),'controller':_0x1f931c(0x980),'templateUrl':_0x5c239e,'resolve':{'trunks':[_0x1f931c(0x107c),_0x1f931c(0xdcf),function(_0x22eb65,_0x2896f8){const _0x3e34e1=_0x1f931c;return _0x2896f8[_0x3e34e1(0x4de)](_0x3e34e1(0x333))?_0x22eb65[_0x3e34e1(0x1268)](_0x3e34e1(0x1727),{'fields':_0x3e34e1(0x1427),'active':!![],'sort':_0x3e34e1(0x260c),'limit':0xa,'offset':0x0}):_0x22eb65[_0x3e34e1(0x1268)](_0x3e34e1(0x1758),{'id':_0x2896f8[_0x3e34e1(0x808)]()[_0x3e34e1(0x21ac)],'section':_0x3e34e1(0x740),'fields':'id,name','active':!![],'sort':_0x3e34e1(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1f931c(0x107c),_0x1f931c(0xdcf),function(_0x2857e1,_0x59a277){const _0x4050e0=_0x1f931c;return _0x59a277[_0x4050e0(0x4de)](_0x4050e0(0x333))?null:_0x2857e1['resolve'](_0x4050e0(0x6e3),{'fields':_0x4050e0(0x10d2),'id':_0x59a277[_0x4050e0(0x808)]()[_0x4050e0(0x21ac)]});}],'userProfileSection':[_0x1f931c(0x107c),'Auth',function(_0x26f29a,_0x25d4a8){const _0x6e890e=_0x1f931c;return _0x25d4a8[_0x6e890e(0x4de)](_0x6e890e(0x333))?null:_0x26f29a['resolve']('userProfileSection@get',{'fields':_0x6e890e(0x527),'userProfileId':_0x25d4a8[_0x6e890e(0x808)]()['userProfileId'],'sectionId':0x3f3});}],'rpcTrunks':['apiResolver',function(_0x42d164){const _0x1e1552=_0x1f931c;return _0x42d164[_0x1e1552(0x1268)]('rpc@getTrunks');}]},'authenticate':!![],'permissionId':0x38e})[_0x1f931c(0x14f2)](_0x1f931c(0x78b),{'url':'/queues','controller':_0x1f931c(0x28d1),'templateUrl':_0x4606bc,'resolve':{'queues':[_0x1f931c(0x107c),_0x1f931c(0xdcf),function(_0x3cdf5c,_0x2960fd){const _0x54bd20=_0x1f931c;return _0x2960fd[_0x54bd20(0x4de)](_0x54bd20(0x333))?_0x3cdf5c[_0x54bd20(0x1268)](_0x54bd20(0x101e),{'type':_0x54bd20(0x12a4),'sort':_0x54bd20(0x260c),'limit':0xa,'offset':0x0}):_0x3cdf5c[_0x54bd20(0x1268)](_0x54bd20(0x1758),{'id':_0x2960fd['getCurrentUser']()[_0x54bd20(0x21ac)],'section':'FaxQueues','channel':_0x54bd20(0x1d37),'type':_0x54bd20(0x12a4),'sort':_0x54bd20(0x260c),'limit':0xa,'page':0x1});}],'userProfile':[_0x1f931c(0x107c),_0x1f931c(0xdcf),function(_0x1d9198,_0x2556c4){const _0x53bc2c=_0x1f931c;return _0x2556c4[_0x53bc2c(0x4de)](_0x53bc2c(0x333))?null:_0x1d9198[_0x53bc2c(0x1268)](_0x53bc2c(0x6e3),{'fields':_0x53bc2c(0x10d2),'id':_0x2556c4[_0x53bc2c(0x808)]()[_0x53bc2c(0x21ac)]});}],'userProfileSection':[_0x1f931c(0x107c),_0x1f931c(0xdcf),function(_0x2ffc33,_0x3df533){const _0x20ed83=_0x1f931c;return _0x3df533[_0x20ed83(0x4de)](_0x20ed83(0x333))?null:_0x2ffc33[_0x20ed83(0x1268)](_0x20ed83(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3df533[_0x20ed83(0x808)]()['userProfileId'],'sectionId':0x385});}],'rpcQueues':[_0x1f931c(0x107c),function(_0x31d4ae){const _0x5234f3=_0x1f931c;return _0x31d4ae[_0x5234f3(0x1268)](_0x5234f3(0x14b3));}]},'authenticate':!![],'permissionId':0x38e})[_0x1f931c(0x14f2)]('app.fax.realtime.accounts',{'url':'/accounts','controller':_0x1f931c(0x15b2),'templateUrl':_0x1f802b,'resolve':{'faxAccounts':['apiResolver',_0x1f931c(0xdcf),function(_0x4227da,_0x46dfae){const _0x2eebed=_0x1f931c;return _0x46dfae[_0x2eebed(0x4de)](_0x2eebed(0x333))?_0x4227da[_0x2eebed(0x1268)](_0x2eebed(0x2028),{'sort':_0x2eebed(0x260c),'limit':0xa,'offset':0x0}):_0x4227da[_0x2eebed(0x1268)](_0x2eebed(0x1758),{'id':_0x46dfae[_0x2eebed(0x808)]()[_0x2eebed(0x21ac)],'section':'FaxAccounts','sort':_0x2eebed(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1f931c(0x107c),'Auth',function(_0x28c2f2,_0x158038){const _0x4ea9ef=_0x1f931c;return _0x158038[_0x4ea9ef(0x4de)](_0x4ea9ef(0x333))?null:_0x28c2f2[_0x4ea9ef(0x1268)](_0x4ea9ef(0x6e3),{'fields':'id,name,crudPermissions','id':_0x158038['getCurrentUser']()[_0x4ea9ef(0x21ac)]});}],'userProfileSection':['apiResolver',_0x1f931c(0xdcf),function(_0x3a7e92,_0x2b06f2){const _0x1233a5=_0x1f931c;return _0x2b06f2['hasRole'](_0x1233a5(0x333))?null:_0x3a7e92[_0x1233a5(0x1268)](_0x1233a5(0x2681),{'fields':_0x1233a5(0x527),'userProfileId':_0x2b06f2['getCurrentUser']()[_0x1233a5(0x21ac)],'sectionId':0x386});}],'rpcFaxAccounts':[_0x1f931c(0x107c),function(_0x73b492){const _0x142774=_0x1f931c;return _0x73b492[_0x142774(0x1268)](_0x142774(0xb51));}]},'authenticate':!![],'permissionId':0x38e});}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x24c4),[])[_0x49a1e3(0x3d3)](_0x20ee6e)['controller'](_0x49a1e3(0x2578),_0xe8b07a)[_0x49a1e3(0x38e)](_0x49a1e3(0xe8c),_0x60b7e5)[_0x49a1e3(0x38e)](_0x49a1e3(0x3c8),_0x2ed665)[_0x49a1e3(0x646)](_0x49a1e3(0x1f8c),_0x1f36ca)['controller'](_0x49a1e3(0xf1e),_0x21ce67)[_0x49a1e3(0x38e)](_0x49a1e3(0x298f),_0x677de7);;_0x113ffe['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x198c),'faxAccount',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x113ffe(_0x4564dd,_0x2ded06,_0x2ccf3d,_0x2cea8f,_0x3d8d6,_0x3f6f33,_0x5d16b6,_0x5b81fa,_0x502c2a,_0x35cd55,_0x4c5a39,_0x33a34e,_0x51df8b,_0x4de32c){const _0xba19ca=_0x49a1e3,_0x3c80a0=this;_0x3c80a0[_0xba19ca(0x1d3d)]=_0x4c5a39[_0xba19ca(0x808)](),_0x3c80a0[_0xba19ca(0xbae)]=[],_0x3c80a0[_0xba19ca(0x28d6)]=_0x51df8b,_0x3c80a0[_0xba19ca(0x1947)]=_0x33a34e,_0x3c80a0[_0xba19ca(0x402)]=_0x4de32c,_0x3c80a0[_0xba19ca(0x6c2)]={},_0x3c80a0[_0xba19ca(0xccc)]=_0x3c80a0[_0xba19ca(0x28d6)]&&_0x3c80a0['setting'][_0xba19ca(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3c80a0[_0xba19ca(0x2021)]=_0xba19ca(0xa0a),_0x3c80a0['faxAccount']=angular['copy'](_0x502c2a),_0x3c80a0['faxAccounts']=_0x5b81fa,_0x3c80a0[_0xba19ca(0x1a3e)]=![];!_0x3c80a0['faxAccount']&&(_0x3c80a0[_0xba19ca(0x549)]={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x3c80a0[_0xba19ca(0x2021)]=_0xba19ca(0x11d4),_0x3c80a0[_0xba19ca(0x1a3e)]=!![]);_0x2ded06[_0xba19ca(0x1b48)]['id']&&(_0x3c80a0[_0xba19ca(0x549)]['FaxAccountId']=_0x2ded06[_0xba19ca(0x1b48)]['id']);_0x3c80a0[_0xba19ca(0xed7)]=_0xc484d0,_0x3c80a0['saveFaxAccount']=_0x5d7a2d,_0x3c80a0[_0xba19ca(0x14c2)]=_0x9a1763,_0x3c80a0[_0xba19ca(0x1605)]=_0x22d07f,_0x3c80a0['closeDialog']=_0xdc0ace,_0x4c5a39[_0xba19ca(0x4de)](_0xba19ca(0x333))?_0x35cd55[_0xba19ca(0x4ef)][_0xba19ca(0x896)]({'fields':_0xba19ca(0x1427),'sort':_0xba19ca(0x2494)})['$promise']['then'](function(_0x44444c){const _0x1a14b4=_0xba19ca;_0x3c80a0['trunks']=_0x44444c[_0x1a14b4(0x28b8)]||[];})[_0xba19ca(0x20cd)](function(_0x2d1b52){const _0x1e8297=_0xba19ca;_0x5d16b6[_0x1e8297(0x1bd0)]({'title':_0x2d1b52[_0x1e8297(0x10b3)]?_0x1e8297(0x575)+_0x2d1b52[_0x1e8297(0x10b3)]+_0x1e8297(0x21db)+_0x2d1b52[_0x1e8297(0x2115)]:'SYSTEM:GET_TRUNKS','msg':_0x2d1b52[_0x1e8297(0x1c52)]?JSON['stringify'](_0x2d1b52[_0x1e8297(0x1c52)]):_0x2d1b52[_0x1e8297(0x2915)]()});}):_0x35cd55[_0xba19ca(0x4ef)][_0xba19ca(0x896)]({'fields':_0xba19ca(0x1427),'sort':'name'})[_0xba19ca(0x15e7)][_0xba19ca(0x64a)](function(_0x57c31d){const _0x3fda17=_0xba19ca;_0x3c80a0['trunks']=_0x57c31d[_0x3fda17(0x28b8)]||[];})[_0xba19ca(0x64a)](function(){const _0x5a66ca=_0xba19ca;return _0x35cd55['userProfileSection'][_0x5a66ca(0x896)]({'userProfileId':_0x3c80a0[_0x5a66ca(0x1d3d)][_0x5a66ca(0x21ac)],'sectionId':0x3f3})[_0x5a66ca(0x15e7)];})['then'](function(_0x3ecab5){const _0x1cedd3=_0xba19ca,_0xf8e967=_0x3ecab5&&_0x3ecab5['rows']?_0x3ecab5['rows'][0x0]:null;if(!_0xf8e967){const _0x16e814=[];let _0x377f87=null;_0x3c80a0[_0x1cedd3(0x549)]&&(_0x377f87=_0x28c606()[_0x1cedd3(0x27bc)](_0x3c80a0['trunks'],{'id':Number(_0x3c80a0[_0x1cedd3(0x549)][_0x1cedd3(0x1c2)])}));for(let _0xba6d75=0x0;_0xba6d75<_0x3c80a0[_0x1cedd3(0xe23)][_0x1cedd3(0x1b9e)];_0xba6d75++){_0x377f87&&_0x3c80a0['trunks'][_0xba6d75]['id']===_0x377f87['id']&&(_0x3c80a0[_0x1cedd3(0xe23)][_0xba6d75][_0x1cedd3(0xd4f)]=![],_0x16e814['push'](_0x3c80a0[_0x1cedd3(0xe23)][_0xba6d75]));}_0x3c80a0[_0x1cedd3(0xe23)]=_0x16e814;}else{if(!_0xf8e967[_0x1cedd3(0x11da)])return _0x35cd55[_0x1cedd3(0x1617)][_0x1cedd3(0x896)]({'sectionId':_0xf8e967['id']})[_0x1cedd3(0x15e7)][_0x1cedd3(0x64a)](function(_0x1077eb){const _0x5f1f5f=_0x1cedd3,_0x563255=_0x28c606()[_0x5f1f5f(0x1de5)](_0x1077eb['rows'],function(_0x331f07){const _0x1b65e4=_0x5f1f5f;return _0x28c606()[_0x1b65e4(0x27bc)](_0x3c80a0[_0x1b65e4(0xe23)],{'id':_0x331f07[_0x1b65e4(0x145)]});});let _0x4e7bc3=null;_0x3c80a0['faxAccount']&&(_0x4e7bc3=_0x28c606()[_0x5f1f5f(0x27bc)](_0x3c80a0['trunks'],{'id':Number(_0x3c80a0[_0x5f1f5f(0x549)][_0x5f1f5f(0x1c2)])}));if(_0x4e7bc3&&!_0x28c606()['some'](_0x563255,['id',_0x4e7bc3['id']])){const _0x42b810=_0x28c606()['find'](_0x3c80a0[_0x5f1f5f(0xe23)],{'id':_0x4e7bc3['id']});_0x42b810[_0x5f1f5f(0xd4f)]=![],_0x563255[_0x5f1f5f(0x1954)](_0x42b810);}_0x3c80a0[_0x5f1f5f(0xe23)]=_0x563255;});}})[_0xba19ca(0x20cd)](function(_0x22b00c){const _0x2b9d99=_0xba19ca;_0x5d16b6[_0x2b9d99(0x1bd0)]({'title':_0x22b00c['status']?_0x2b9d99(0x575)+_0x22b00c[_0x2b9d99(0x10b3)]+_0x2b9d99(0x21db)+_0x22b00c[_0x2b9d99(0x2115)]:'SYSTEM:GETtrunks','msg':_0x22b00c[_0x2b9d99(0x1c52)]?JSON[_0x2b9d99(0x2317)](_0x22b00c[_0x2b9d99(0x1c52)]):_0x22b00c[_0x2b9d99(0x2915)]()});}),_0x4c5a39[_0xba19ca(0x4de)]('admin')?_0x35cd55['cmList'][_0xba19ca(0x896)]({'fields':_0xba19ca(0x1427),'sort':_0xba19ca(0x2494)})[_0xba19ca(0x15e7)][_0xba19ca(0x64a)](function(_0x2c263c){const _0x5e2f5a=_0xba19ca;_0x3c80a0[_0x5e2f5a(0x974)]=_0x2c263c[_0x5e2f5a(0x28b8)]||[];})[_0xba19ca(0x20cd)](function(_0x20e1ad){const _0x26e54a=_0xba19ca;_0x5d16b6[_0x26e54a(0x1bd0)]({'title':_0x20e1ad[_0x26e54a(0x10b3)]?_0x26e54a(0x575)+_0x20e1ad[_0x26e54a(0x10b3)]+'\x20-\x20'+_0x20e1ad[_0x26e54a(0x2115)]:_0x26e54a(0x1ed6),'msg':_0x20e1ad[_0x26e54a(0x1c52)]?JSON['stringify'](_0x20e1ad[_0x26e54a(0x1c52)]):_0x20e1ad[_0x26e54a(0x2915)]()});}):_0x35cd55[_0xba19ca(0x19f8)]['get']({'fields':_0xba19ca(0x1427),'sort':_0xba19ca(0x2494)})[_0xba19ca(0x15e7)][_0xba19ca(0x64a)](function(_0xc8a029){const _0x189bdb=_0xba19ca;_0x3c80a0[_0x189bdb(0x974)]=_0xc8a029[_0x189bdb(0x28b8)]||[];})[_0xba19ca(0x64a)](function(){const _0x20f3e2=_0xba19ca;return _0x35cd55['userProfileSection'][_0x20f3e2(0x896)]({'userProfileId':_0x3c80a0[_0x20f3e2(0x1d3d)][_0x20f3e2(0x21ac)],'sectionId':0x12d})[_0x20f3e2(0x15e7)];})[_0xba19ca(0x64a)](function(_0x20b75b){const _0x331962=_0xba19ca,_0x3f5926=_0x20b75b&&_0x20b75b[_0x331962(0x28b8)]?_0x20b75b[_0x331962(0x28b8)][0x0]:null;if(!_0x3f5926){const _0x459455=[];let _0x4d5539=null;_0x3c80a0[_0x331962(0x549)]&&(_0x4d5539=_0x28c606()[_0x331962(0x27bc)](_0x3c80a0['lists'],{'id':Number(_0x3c80a0[_0x331962(0x549)][_0x331962(0x869)])}));for(let _0x15bb1d=0x0;_0x15bb1d<_0x3c80a0[_0x331962(0x974)][_0x331962(0x1b9e)];_0x15bb1d++){_0x4d5539&&_0x3c80a0[_0x331962(0x974)][_0x15bb1d]['id']===_0x4d5539['id']&&(_0x3c80a0['lists'][_0x15bb1d][_0x331962(0xd4f)]=![],_0x459455[_0x331962(0x1954)](_0x3c80a0[_0x331962(0x974)][_0x15bb1d]));}_0x3c80a0[_0x331962(0x974)]=_0x459455;}else{if(!_0x3f5926[_0x331962(0x11da)])return _0x35cd55[_0x331962(0x1617)][_0x331962(0x896)]({'sectionId':_0x3f5926['id']})[_0x331962(0x15e7)]['then'](function(_0x1a0848){const _0x331838=_0x331962,_0x1abbf6=_0x28c606()[_0x331838(0x1de5)](_0x1a0848['rows'],function(_0x54984d){const _0xc1f319=_0x331838;return _0x28c606()[_0xc1f319(0x27bc)](_0x3c80a0['lists'],{'id':_0x54984d[_0xc1f319(0x145)]});});let _0x383499=null;_0x3c80a0[_0x331838(0x549)]&&(_0x383499=_0x28c606()[_0x331838(0x27bc)](_0x3c80a0[_0x331838(0x974)],{'id':Number(_0x3c80a0[_0x331838(0x549)][_0x331838(0x869)])}));if(_0x383499&&!_0x28c606()['some'](_0x1abbf6,['id',_0x383499['id']])){const _0x348fbe=_0x28c606()[_0x331838(0x27bc)](_0x3c80a0[_0x331838(0x974)],{'id':_0x383499['id']});_0x348fbe[_0x331838(0xd4f)]=![],_0x1abbf6['push'](_0x348fbe);}_0x3c80a0[_0x331838(0x974)]=_0x1abbf6;});}})['catch'](function(_0x39d6d3){const _0x48a6f2=_0xba19ca;_0x5d16b6[_0x48a6f2(0x1bd0)]({'title':_0x39d6d3[_0x48a6f2(0x10b3)]?'API:'+_0x39d6d3[_0x48a6f2(0x10b3)]+'\x20-\x20'+_0x39d6d3['statusText']:_0x48a6f2(0x1beb),'msg':_0x39d6d3[_0x48a6f2(0x1c52)]?JSON[_0x48a6f2(0x2317)](_0x39d6d3[_0x48a6f2(0x1c52)]):_0x39d6d3[_0x48a6f2(0x2915)]()});});function _0xc484d0(){const _0x5c9a44=_0xba19ca;_0x3c80a0[_0x5c9a44(0xbae)]=[],_0x35cd55[_0x5c9a44(0x549)][_0x5c9a44(0x23d8)](_0x3c80a0[_0x5c9a44(0x549)])[_0x5c9a44(0x15e7)][_0x5c9a44(0x64a)](function(_0x11fa76){const _0x9e47d1=_0x5c9a44;_0x3c80a0[_0x9e47d1(0x198c)]['unshift'](_0x11fa76['toJSON']()),_0x5d16b6[_0x9e47d1(0x1339)]({'title':_0x9e47d1(0x10c7),'msg':_0x3c80a0['faxAccount'][_0x9e47d1(0x2494)]?_0x3c80a0['faxAccount'][_0x9e47d1(0x2494)]+_0x9e47d1(0x258d):''}),_0xdc0ace(_0x11fa76);})[_0x5c9a44(0x20cd)](function(_0x45fbec){const _0x2db9f7=_0x5c9a44;if(_0x45fbec[_0x2db9f7(0x1c52)]&&_0x45fbec['data'][_0x2db9f7(0xbae)]&&_0x45fbec[_0x2db9f7(0x1c52)][_0x2db9f7(0xbae)]['length']){_0x3c80a0['errors']=_0x45fbec['data'][_0x2db9f7(0xbae)]||[{'message':_0x45fbec[_0x2db9f7(0x2915)](),'type':'api.faxAccount.save'}];for(let _0x95cf92=0x0;_0x95cf92<_0x45fbec[_0x2db9f7(0x1c52)][_0x2db9f7(0xbae)][_0x2db9f7(0x1b9e)];_0x95cf92+=0x1){_0x5d16b6[_0x2db9f7(0x1bd0)]({'title':_0x45fbec[_0x2db9f7(0x1c52)]['errors'][_0x95cf92]['type'],'msg':_0x45fbec[_0x2db9f7(0x1c52)][_0x2db9f7(0xbae)][_0x95cf92]['message']});}}else _0x5d16b6[_0x2db9f7(0x1bd0)]({'title':_0x45fbec[_0x2db9f7(0x10b3)]?_0x2db9f7(0x575)+_0x45fbec[_0x2db9f7(0x10b3)]+_0x2db9f7(0x21db)+_0x45fbec[_0x2db9f7(0x2115)]:_0x2db9f7(0xc90),'msg':_0x45fbec[_0x2db9f7(0x1c52)]?JSON[_0x2db9f7(0x2317)](_0x45fbec['data']['message']):_0x45fbec[_0x2db9f7(0x2915)]()});});}function _0x5d7a2d(){const _0x564084=_0xba19ca;_0x3c80a0[_0x564084(0xbae)]=[],_0x35cd55[_0x564084(0x549)]['updateAccountApplications'](_0x3c80a0[_0x564084(0x549)])[_0x564084(0x15e7)][_0x564084(0x64a)](function(_0x322d96){const _0x21508f=_0x564084,_0x56fc6f=_0x28c606()[_0x21508f(0x27bc)](_0x3c80a0[_0x21508f(0x198c)],{'id':_0x322d96['id']});_0x56fc6f&&_0x28c606()['merge'](_0x56fc6f,_0x28c606()[_0x21508f(0x27bb)](_0x322d96[_0x21508f(0x14f8)](),_0x28c606()[_0x21508f(0x1ec6)](_0x56fc6f))),_0x5d16b6['success']({'title':_0x21508f(0xe65),'msg':_0x3c80a0[_0x21508f(0x549)][_0x21508f(0x2494)]?_0x3c80a0['faxAccount']['name']+'\x20has\x20been\x20saved!':''}),_0xdc0ace(_0x322d96);})[_0x564084(0x20cd)](function(_0x2eefc8){const _0x44c445=_0x564084;if(_0x2eefc8[_0x44c445(0x1c52)]&&_0x2eefc8[_0x44c445(0x1c52)][_0x44c445(0xbae)]&&_0x2eefc8[_0x44c445(0x1c52)][_0x44c445(0xbae)][_0x44c445(0x1b9e)]){_0x3c80a0[_0x44c445(0xbae)]=_0x2eefc8[_0x44c445(0x1c52)][_0x44c445(0xbae)]||[{'message':_0x2eefc8['toString'](),'type':'api.faxAccount.update'}];for(let _0x437379=0x0;_0x437379<_0x2eefc8[_0x44c445(0x1c52)][_0x44c445(0xbae)][_0x44c445(0x1b9e)];_0x437379++){_0x5d16b6[_0x44c445(0x1bd0)]({'title':_0x2eefc8[_0x44c445(0x1c52)]['errors'][_0x437379]['type'],'msg':_0x2eefc8['data'][_0x44c445(0xbae)][_0x437379][_0x44c445(0x18ca)]});}}else _0x5d16b6[_0x44c445(0x1bd0)]({'title':_0x2eefc8[_0x44c445(0x10b3)]?_0x44c445(0x575)+_0x2eefc8[_0x44c445(0x10b3)]+_0x44c445(0x21db)+_0x2eefc8[_0x44c445(0x2115)]:_0x44c445(0x144f),'msg':_0x2eefc8[_0x44c445(0x1c52)]?JSON['stringify'](_0x2eefc8['data'][_0x44c445(0x18ca)]):_0x2eefc8[_0x44c445(0x2915)]()});});}function _0x9a1763(_0xbc8163){const _0x5dee37=_0xba19ca;_0x3c80a0['errors']=[];const _0x597925=_0x2cea8f['confirm']()[_0x5dee37(0x2021)](_0x5dee37(0x103a))[_0x5dee37(0x12b8)](_0x5dee37(0x1d2b))[_0x5dee37(0x213e)]('Delete\x20FaxAccount')['ok'](_0x5dee37(0x2664))[_0x5dee37(0x101a)](_0x5dee37(0x1dc6))[_0x5dee37(0x2283)](_0xbc8163);_0x2cea8f[_0x5dee37(0xa60)](_0x597925)['then'](function(){const _0xb6b8f1=_0x5dee37;_0x35cd55[_0xb6b8f1(0x549)]['delete']({'id':_0x3c80a0[_0xb6b8f1(0x549)]['id']})[_0xb6b8f1(0x15e7)][_0xb6b8f1(0x64a)](function(){const _0x403887=_0xb6b8f1;_0x28c606()['remove'](_0x3c80a0[_0x403887(0x198c)],{'id':_0x3c80a0[_0x403887(0x549)]['id']}),_0x5d16b6[_0x403887(0x1339)]({'title':_0x403887(0xc56),'msg':(_0x3c80a0[_0x403887(0x549)][_0x403887(0x2494)]||'faxAccount')+_0x403887(0x1fa8)}),_0xdc0ace(_0x3c80a0[_0x403887(0x549)]);})[_0xb6b8f1(0x20cd)](function(_0x135e6e){const _0x59d1af=_0xb6b8f1;if(_0x135e6e[_0x59d1af(0x1c52)]&&_0x135e6e[_0x59d1af(0x1c52)][_0x59d1af(0xbae)]&&_0x135e6e['data'][_0x59d1af(0xbae)][_0x59d1af(0x1b9e)]){_0x3c80a0[_0x59d1af(0xbae)]=_0x135e6e['data'][_0x59d1af(0xbae)]||[{'message':_0x135e6e['toString'](),'type':_0x59d1af(0x2247)}];for(let _0x11d96f=0x0;_0x11d96f<_0x135e6e[_0x59d1af(0x1c52)]['errors']['length'];_0x11d96f++){_0x5d16b6[_0x59d1af(0x1bd0)]({'title':_0x135e6e[_0x59d1af(0x1c52)][_0x59d1af(0xbae)][_0x11d96f]['type'],'msg':_0x135e6e[_0x59d1af(0x1c52)]['errors'][_0x11d96f][_0x59d1af(0x18ca)]});}}else _0x5d16b6[_0x59d1af(0x1bd0)]({'title':_0x135e6e[_0x59d1af(0x10b3)]?_0x59d1af(0x575)+_0x135e6e['status']+_0x59d1af(0x21db)+_0x135e6e[_0x59d1af(0x2115)]:_0x59d1af(0x2247),'msg':_0x135e6e[_0x59d1af(0x1c52)]?JSON[_0x59d1af(0x2317)](_0x135e6e['data'][_0x59d1af(0x18ca)]):_0x135e6e[_0x59d1af(0x18ca)]||_0x135e6e['toString']()});});},function(){});}function _0x22d07f(_0x317801){return _0x317801===null?undefined:new Date(_0x317801);}function _0xdc0ace(_0x3c1880){_0x2cea8f['hide'](_0x3c1880);}}const _0x60650c=_0x113ffe;;const _0x208504=_0x2e4a48['p']+_0x49a1e3(0x176c);;const _0x219fae=_0x2e4a48['p']+_0x49a1e3(0x1978);;const _0xf460cf=_0x2e4a48['p']+_0x49a1e3(0x27e2);;const _0x55ad1e=_0x2e4a48['p']+_0x49a1e3(0x831);;const _0x8340e3=_0x2e4a48['p']+_0x49a1e3(0x1e9);;const _0x130617=_0x2e4a48['p']+_0x49a1e3(0x1acb);;const _0x33010a=_0x2e4a48['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/queue/dialog.html/dialog.html';;const _0x584feb=_0x2e4a48['p']+_0x49a1e3(0xfdf);;const _0x315079=_0x2e4a48['p']+_0x49a1e3(0xed8);;_0x232360['$inject']=[_0x49a1e3(0xa19),'$mdDialog',_0x49a1e3(0x1373),'toasty','Auth'];const _0x2917e7={'agent':_0x208504,'close':_0x219fae,'gotoif':_0xf460cf,'gotop':_0x55ad1e,'interval':_0x8340e3,'noop':_0x130617,'queue':_0x33010a,'system':_0x584feb,'tag':_0x315079};function _0x232360(_0x2b2d35,_0x5a4787,_0x3692fe,_0x57ce35,_0x3950bb){const _0x42c838=_0x49a1e3,_0x13f2a9=this;_0x13f2a9[_0x42c838(0x1d3d)]=_0x3950bb[_0x42c838(0x808)](),_0x13f2a9[_0x42c838(0x549)]={},_0x13f2a9[_0x42c838(0x7b4)]={'count':0x0,'rows':[]},_0x13f2a9[_0x42c838(0x4d7)]=[],_0x13f2a9['crudPermissions'],_0x13f2a9[_0x42c838(0x289a)]={'sort':_0x42c838(0x1095)},_0x13f2a9[_0x42c838(0x1018)]=_0x28c606()['reject'](_0x28c606()['sortBy']([{'app':_0x42c838(0x1f03),'appType':_0x42c838(0xcfd),'types':[_0x42c838(0xa66),_0x42c838(0x1ad6),_0x42c838(0x2764)],'fields':[],'isApp':![]},{'app':_0x42c838(0xbb6),'appType':_0x42c838(0xbb6),'type':_0x42c838(0xbb6),'icon':_0x42c838(0xd46),'interval':_0x42c838(0x2145),'required':!![],'isApp':!![],'fields':[{'title':'Value','name':_0x42c838(0x1096),'type':_0x42c838(0x39b),'param':0x0}]},{'app':_0x42c838(0x1f06),'appType':'system','type':_0x42c838(0x1f06),'icon':'icon-apps','interval':'*,*,*,*','required':!![],'isApp':!![],'extraApi':[{'name':_0x42c838(0x145c),'field':{'name':_0x42c838(0xefb),'key':_0x42c838(0x2494)},'route':'variable','filters':{'fields':_0x42c838(0x1427),'sort':_0x42c838(0x2494),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':'Command','name':'command','type':_0x42c838(0x39b),'required':!![],'param':0x0},{'title':_0x42c838(0x1538),'name':'variable','type':'apiselect','values':_0x42c838(0x145c),'value':'variable.name','option':_0x42c838(0x1c5a),'defaultValues':[{'value':'\x27\x27','option':'None'}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x42c838(0x2046),'appType':_0x42c838(0x2046),'type':'goto','icon':_0x42c838(0xd46),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x42c838(0x27f2),'name':'priority','type':_0x42c838(0x2113),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x42c838(0x614),'appType':_0x42c838(0x614),'type':_0x42c838(0x614),'icon':_0x42c838(0xd46),'interval':_0x42c838(0x2145),'isApp':!![],'fields':[{'title':_0x42c838(0x82a),'name':_0x42c838(0xeea),'type':'text','required':!![],'param':0x0},{'title':_0x42c838(0x108f),'name':_0x42c838(0x108f),'type':_0x42c838(0x2113),'min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':_0x42c838(0x1d32),'type':_0x42c838(0x2113),'min':0x1,'required':!![],'param':0x2}]},{'app':'queue','appType':_0x42c838(0x1e4e),'foreignKey':_0x42c838(0x89e),'type':_0x42c838(0x1e4e),'icon':_0x42c838(0xd46),'interval':_0x42c838(0x2145),'isApp':!![],'extraApi':[{'name':'queues','field':{'name':_0x42c838(0x1e4e),'key':'name'},'route':_0x42c838(0xf82),'filters':{'fields':_0x42c838(0x2ba),'sort':'name','nolimit':!![]},'permissions':{'section':0x385}}],'fields':[{'title':'Queue','name':_0x42c838(0x1e4e),'type':'apiselect','values':_0x42c838(0x1c06),'value':_0x42c838(0x5ca),'option':_0x42c838(0x5ca),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x42c838(0x66e),'name':'timeout','type':_0x42c838(0x2113),'max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':_0x42c838(0x11ae),'appType':_0x42c838(0x11ae),'type':_0x42c838(0x11ae),'foreignKey':_0x42c838(0x246c),'icon':_0x42c838(0xd46),'interval':_0x42c838(0x2145),'isApp':!![],'extraApi':[{'name':_0x42c838(0xd77),'field':{'name':_0x42c838(0x11ae),'key':'name'},'route':_0x42c838(0x2e8),'filters':{'fields':_0x42c838(0x1427),'sort':_0x42c838(0x2494),'role':_0x42c838(0x11ae),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':_0x42c838(0x11ae),'type':_0x42c838(0x26e8),'values':_0x42c838(0xd77),'value':_0x42c838(0x1ddb),'option':'agent.name','required':!![],'param':0x0},{'title':_0x42c838(0x66e),'name':_0x42c838(0x16d),'type':_0x42c838(0x2113),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x42c838(0x67b),'appType':_0x42c838(0x67b),'type':'close','icon':_0x42c838(0xd46),'interval':_0x42c838(0x2145),'isApp':!![],'fields':[{'title':_0x42c838(0x217f),'name':_0x42c838(0x168b),'type':_0x42c838(0x39b),'required':!![],'param':0x0}]},{'app':_0x42c838(0xac8),'appType':_0x42c838(0xac8),'type':'tag','foreignKey':_0x42c838(0x923),'icon':_0x42c838(0xd46),'interval':_0x42c838(0x2145),'isApp':!![],'extraApi':[{'name':_0x42c838(0x16a6),'field':{'name':_0x42c838(0xac8),'key':_0x42c838(0x2494)},'route':'tag','filters':{'fields':_0x42c838(0x1427),'sort':_0x42c838(0x2494),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x42c838(0x1e9f),'name':_0x42c838(0xac8),'type':_0x42c838(0x26e8),'values':_0x42c838(0x16a6),'value':_0x42c838(0xcef),'option':_0x42c838(0xcef),'required':!![],'param':0x0}]}],[_0x42c838(0x16e1)]),{'isApp':![]}),_0x13f2a9[_0x42c838(0x2764)]={'group':{'name':_0x42c838(0x7f2),'pull':'clone'},'animation':0x64,'sort':![]},_0x13f2a9[_0x42c838(0x221f)]={'group':{'name':_0x42c838(0x3a8),'put':_0x42c838(0x7f2)},'animation':0x64,'onAdd':function(_0x2a563a){const _0x29b41a=_0x42c838;_0x5c0373(_0x2a563a,_0x2a563a[_0x29b41a(0xa3e)]);},'onSort':function(){_0x40edf0();}},_0x13f2a9[_0x42c838(0x2354)]=_0x1069c4,_0x13f2a9[_0x42c838(0x217e)]=_0x5e58bf,_0x13f2a9['getFaxAccountApps']=_0x15da0f,_0x13f2a9[_0x42c838(0x2364)]=_0x5c0373,_0x13f2a9[_0x42c838(0x2427)]=_0x173ac0,_0x13f2a9[_0x42c838(0x1ecb)]=_0x41b9c2,_0x13f2a9[_0x42c838(0x1dc8)]=_0x3cc0f9,_0x13f2a9['rewriteRouting']=_0x40edf0,_0x13f2a9['getIntervals']=_0x2e3533;function _0x1069c4(_0x13a213,_0x7f4b03){const _0x4d411e=_0x42c838;_0x13f2a9['faxAccount']=_0x13a213,_0x13f2a9[_0x4d411e(0x402)]=typeof _0x7f4b03!=='undefined'?_0x7f4b03:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x13f2a9[_0x4d411e(0x221f)][_0x4d411e(0x1a95)]=!_0x13f2a9['crudPermissions'][_0x4d411e(0xd86)]?!![]:![],_0x13f2a9['query']['id']=_0x13a213['id'],_0x13f2a9[_0x4d411e(0x289a)][_0x4d411e(0x210d)]=!![],_0x13f2a9[_0x4d411e(0x289a)]['nolimit']=!![],_0x13f2a9[_0x4d411e(0xb81)](),_0x13f2a9['getIntervals']();}function _0x5e58bf(_0x21c465,_0xab4956,_0x5dce5c){const _0x3ecc8d=_0x42c838,_0x50723a=_0x5a4787[_0x3ecc8d(0x856)]()[_0x3ecc8d(0x2021)](_0x3ecc8d(0x2041))[_0x3ecc8d(0x33a)](_0x3ecc8d(0x50b)+_0x21c465['app']+_0x3ecc8d(0x26d0)+_0x3ecc8d(0x4b8))[_0x3ecc8d(0x213e)](_0x3ecc8d(0x1260))['targetEvent'](_0x5dce5c)['ok']('OK')[_0x3ecc8d(0x101a)](_0x3ecc8d(0x18fd));_0x5a4787[_0x3ecc8d(0xa60)](_0x50723a)[_0x3ecc8d(0x64a)](function(){const _0x68350c=_0x3ecc8d;_0x13f2a9[_0x68350c(0x7b4)][_0x68350c(0x28b8)]['splice'](_0xab4956,0x1),_0x40edf0();},function(){const _0x4aa710=_0x3ecc8d;console[_0x4aa710(0x9b4)](_0x4aa710(0x18fd));});}function _0x5c0373(_0xfe6b4f,_0x4a032a){const _0x4b0c3f=_0x42c838;if(_0x13f2a9[_0x4b0c3f(0x7b4)]['rows'][_0x4b0c3f(0x1b9e)]){const _0x986c75=_0x13f2a9[_0x4b0c3f(0x7b4)]['rows'][_0x4a032a]?_0x13f2a9[_0x4b0c3f(0x7b4)][_0x4b0c3f(0x28b8)][_0x4a032a]:_0x13f2a9['faxAccountApps']['rows'][0x0],_0x541012=(_0x986c75['appType']||_0x986c75[_0x4b0c3f(0x16e1)])['toLowerCase']();_0x5a4787['show']({'controller':'EditFaxAccountApp'+_0x541012+_0x4b0c3f(0x1528),'controllerAs':'vm','templateUrl':_0x2917e7[_0x541012],'parent':angular['element'](_0x3692fe[_0x4b0c3f(0xb49)]),'targetEvent':_0xfe6b4f,'clickOutsideToClose':!![],'locals':{'faxAccountApp':_0x986c75,'faxAccount':_0x13f2a9[_0x4b0c3f(0x549)],'crudPermissions':_0x13f2a9[_0x4b0c3f(0x402)]}})[_0x4b0c3f(0x64a)](function(_0xc3cb94){const _0x597b0f=_0x4b0c3f;_0xc3cb94&&(_0xc3cb94['id']?_0x13f2a9['faxAccountApps'][_0x597b0f(0x28b8)][_0x4a032a]=_0xc3cb94:_0x13f2a9[_0x597b0f(0x7b4)]['rows']['splice'](_0x4a032a,0x0,_0xc3cb94),_0x40edf0());})[_0x4b0c3f(0x20cd)](function(_0x42635f){const _0x1752d6=_0x4b0c3f;_0x42635f&&_0x57ce35[_0x1752d6(0x1bd0)]({'title':_0x42635f['status']?'API:'+_0x42635f[_0x1752d6(0x10b3)]+_0x1752d6(0x21db)+_0x42635f['statusText']:'SYSTEM:EDITMODALSHOW','msg':_0x42635f[_0x1752d6(0x1c52)]?JSON[_0x1752d6(0x2317)](_0x42635f[_0x1752d6(0x1c52)]):_0x42635f[_0x1752d6(0x2915)]()});});}}function _0x173ac0(_0x19ea32,_0x3fcc2a){const _0x11c867=_0x42c838;if(_0x13f2a9['faxAccountApps'][_0x11c867(0x28b8)][_0x11c867(0x1b9e)]){const _0x50c7a1=_0x13f2a9[_0x11c867(0x7b4)][_0x11c867(0x28b8)][_0x3fcc2a]?_0x13f2a9[_0x11c867(0x7b4)]['rows'][_0x3fcc2a]:_0x13f2a9[_0x11c867(0x7b4)][_0x11c867(0x28b8)][0x0];_0x5a4787[_0x11c867(0xa60)]({'controller':_0x11c867(0x1e52),'controllerAs':'vm','templateUrl':_0x8340e3,'parent':angular[_0x11c867(0x1f81)](_0x3692fe[_0x11c867(0xb49)]),'targetEvent':_0x19ea32,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x50c7a1['interval'],'IntervalId':_0x50c7a1[_0x11c867(0xb71)],'application':!![]},'intervals':[],'crudPermissions':_0x13f2a9[_0x11c867(0x402)]}})[_0x11c867(0x64a)](function(_0x47c8e0){const _0x3d2b5a=_0x11c867;_0x47c8e0&&(_0x50c7a1['interval']=_0x47c8e0[_0x3d2b5a(0xcfd)]||'*,*,*,*',_0x50c7a1[_0x3d2b5a(0xb71)]=_0x47c8e0[_0x3d2b5a(0xb71)]||null,_0x40edf0());});}}function _0x40edf0(){const _0x1bdd96=_0x42c838;let _0xadcba4=0x1,_0xab313f=[];for(let _0x1e1ea7=0x0;_0x1e1ea7<_0x13f2a9[_0x1bdd96(0x7b4)][_0x1bdd96(0x28b8)][_0x1bdd96(0x1b9e)];_0x1e1ea7++){const _0x4f8064=_0x13f2a9[_0x1bdd96(0x7b4)][_0x1bdd96(0x28b8)][_0x1e1ea7],_0x9c47f8=[],_0x4c1740=[];_0x4f8064['intervals']=_0x4f8064['interval']!==_0x1bdd96(0x2145)?[_0x4f8064['interval']]:_0x4f8064[_0x1bdd96(0xb71)]?_0x28c606()[_0x1bdd96(0x1de5)](_0x28c606()[_0x1bdd96(0xcec)](_0x13f2a9['intervals']['rows'],{'IntervalId':_0x4f8064[_0x1bdd96(0xb71)]}),_0x1bdd96(0xcfd)):[],_0x4f8064[_0x1bdd96(0x139)]=_0x13f2a9[_0x1bdd96(0x549)]['context'],_0x4f8064[_0x1bdd96(0x19c8)]=_0x13f2a9[_0x1bdd96(0x549)][_0x1bdd96(0x19c8)],_0x4f8064[_0x1bdd96(0x2185)]&&(_0x4f8064[_0x1bdd96(0x2185)]=_0x4f8064['type']['toLowerCase']()),_0x4f8064[_0x1bdd96(0x1095)]=_0x9c47f8[_0x1bdd96(0x1b9e)]?_0x28c606()[_0x1bdd96(0xe62)](_0x9c47f8)[_0x1bdd96(0x1095)]+0x1:_0xadcba4,_0xadcba4=(_0x4c1740['length']?_0x28c606()[_0x1bdd96(0xe62)](_0x4c1740)[_0x1bdd96(0x1095)]:_0x4f8064[_0x1bdd96(0x1095)])+0x1,_0xab313f=_0x28c606()[_0x1bdd96(0x2808)](_0xab313f,_0x9c47f8,[_0x4f8064],_0x4c1740);}_0x2b2d35[_0x1bdd96(0x549)][_0x1bdd96(0x1c5d)]({'id':_0x13f2a9['faxAccount']['id']},_0x28c606()['sortBy'](_0xab313f,_0x1bdd96(0x1095)))[_0x1bdd96(0x15e7)][_0x1bdd96(0x64a)](function(_0x4e641e){const _0x1f34f2=_0x1bdd96;_0x13f2a9[_0x1f34f2(0x7b4)][_0x1f34f2(0x28b8)]=_0x4e641e[_0x1f34f2(0x28b8)];})[_0x1bdd96(0x20cd)](function(_0x4cdae7){const _0x112ed8=_0x1bdd96;console[_0x112ed8(0x1bd0)](_0x4cdae7);});}function _0x240451(_0x11a6e2){const _0x3df9aa=_0x42c838;_0x13f2a9[_0x3df9aa(0x7b4)]=_0x11a6e2||{'count':0x0,'rows':[]};}function _0x2e3533(){const _0x35ba44=_0x42c838;return _0x2b2d35[_0x35ba44(0xcfd)][_0x35ba44(0x896)]({'fields':_0x35ba44(0x1aa)})[_0x35ba44(0x15e7)][_0x35ba44(0x64a)](function(_0x284fc1){_0x13f2a9['intervals']=_0x284fc1;})[_0x35ba44(0x20cd)](function(_0x14b388){const _0x1d660e=_0x35ba44;console[_0x1d660e(0x1bd0)](_0x14b388);});}function _0x15da0f(){const _0x4f5018=_0x42c838;_0x13f2a9[_0x4f5018(0x1713)]=_0x2b2d35[_0x4f5018(0x549)][_0x4f5018(0x42f)](_0x13f2a9['query'],_0x240451)['$promise'];}function _0x41b9c2(_0x556be0){const _0x142ed5=_0x42c838;_0x28c606()[_0x142ed5(0x21c7)](_0x13f2a9['faxAccountApps'][_0x142ed5(0x28b8)],{'id':_0x556be0['id']}),_0x40edf0(),_0x57ce35[_0x142ed5(0x1339)]({'title':'App\x20deleted!','msg':_0x556be0[_0x142ed5(0x16e1)]?_0x556be0[_0x142ed5(0x16e1)]+'\x20has\x20been\x20deleted!':''});}function _0x3cc0f9(_0xac5fc0){const _0x162464=_0x42c838,_0x38fa31=_0x5a4787['confirm']()[_0x162464(0x2021)](_0x162464(0x150d))[_0x162464(0x33a)](_0x162464(0x50b)+_0x13f2a9[_0x162464(0x4d7)][_0x162464(0x1b9e)]+_0x162464(0x163e)+_0x162464(0x4b8))[_0x162464(0x213e)](_0x162464(0x2180))['targetEvent'](_0xac5fc0)['ok']('OK')[_0x162464(0x101a)]('CANCEL');_0x5a4787[_0x162464(0xa60)](_0x38fa31)[_0x162464(0x64a)](function(){const _0x160745=_0x162464;_0x13f2a9['selectedFaxAccountApps']['forEach'](function(_0x288902){const _0x2df0ac=a0_0x4127;_0x28c606()[_0x2df0ac(0x21c7)](_0x13f2a9['faxAccountApps'][_0x2df0ac(0x28b8)],{'id':_0x288902['id']});}),_0x13f2a9[_0x160745(0x4d7)]=[],_0x40edf0();});}}const _0x5ca7a7=_0x232360;;_0x40cb4f['$inject']=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x549),_0x49a1e3(0x198c),_0x49a1e3(0x252e),_0x49a1e3(0x298c),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x40cb4f(_0x1874c4,_0x3181f3,_0x30b49c,_0x2b6d38,_0xa694b7,_0x88f30a,_0x57d45a,_0x54ffe2,_0x565a8c,_0x1b8c69){const _0x353ec0=_0x49a1e3,_0xda3a5c=this;_0xda3a5c[_0x353ec0(0x1d3d)]=_0x565a8c['getCurrentUser'](),_0xda3a5c[_0x353ec0(0x549)]=_0xa694b7,_0xda3a5c[_0x353ec0(0x402)]=_0x1b8c69,_0xda3a5c[_0x353ec0(0x252e)]=_0x57d45a,_0xda3a5c[_0x353ec0(0x23cb)]=[],_0xda3a5c[_0x353ec0(0x13d1)]=[],_0xda3a5c[_0x353ec0(0x1f4f)]=[],_0xda3a5c[_0x353ec0(0x206b)]=[],_0xda3a5c['startingSelectedItems']=[],_0xda3a5c[_0x353ec0(0xe9e)]=![],_0xda3a5c[_0x353ec0(0x2483)]=_0x30ad93,_0xda3a5c['saveAgents']=_0x594f22,_0xda3a5c[_0x353ec0(0x16cb)]=_0x4c350c,_0xda3a5c[_0x353ec0(0x1eeb)]={'readOnly':!_0xda3a5c['crudPermissions'][_0x353ec0(0xd86)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x353ec0(0x2494),'line1':_0x353ec0(0x15c),'line2':['name',_0x353ec0(0xe2f)],'line3':'','labelAll':_0x54ffe2[_0x353ec0(0x2292)](_0x353ec0(0x1da4)),'labelSelected':_0x54ffe2['instant'](_0x353ec0(0xcf8)),'transferCallback':function(){const _0x179205=_0x353ec0,_0x54787d=_0x28c606()[_0x179205(0x1ad)](_0xda3a5c[_0x179205(0x24e1)],_0xda3a5c[_0x179205(0x1f4f)],'id');_0xda3a5c['pendingChanges']=_0x28c606()[_0x179205(0x940)](_0x54787d)?![]:!![];}};function _0x30ad93(){const _0x5f1608=_0x353ec0;return _0x565a8c['hasRole']('admin')?_0x280557()[_0x5f1608(0x20cd)](function(_0x5f2264){const _0x2e1d29=_0x5f1608;_0x30b49c[_0x2e1d29(0x1bd0)]({'title':_0x5f2264[_0x2e1d29(0x10b3)]?'API:'+_0x5f2264['status']+_0x2e1d29(0x21db)+_0x5f2264[_0x2e1d29(0x2115)]:'SYSTEM:GET_AGENTS','msg':_0x5f2264[_0x2e1d29(0x10b3)]?JSON[_0x2e1d29(0x2317)](_0x5f2264[_0x2e1d29(0x1c52)]):_0x5f2264[_0x2e1d29(0x2915)]()});}):_0xe17977()[_0x5f1608(0x64a)](function(_0x15f954){return _0xda3a5c['section']=_0x15f954,_0x280557();})['catch'](function(_0x5ef4bc){const _0x1c8bdf=_0x5f1608;_0x30b49c[_0x1c8bdf(0x1bd0)]({'title':_0x5ef4bc[_0x1c8bdf(0x10b3)]?_0x1c8bdf(0x575)+_0x5ef4bc[_0x1c8bdf(0x10b3)]+_0x1c8bdf(0x21db)+_0x5ef4bc['statusText']:_0x1c8bdf(0x554),'msg':_0x5ef4bc[_0x1c8bdf(0x10b3)]?JSON[_0x1c8bdf(0x2317)](_0x5ef4bc[_0x1c8bdf(0x1c52)]):_0x5ef4bc[_0x1c8bdf(0x2915)]()});});}function _0xe17977(){return _0x3181f3(function(_0x572086,_0x2d1301){const _0xbfcb6f=a0_0x4127;_0x2b6d38[_0xbfcb6f(0x16b2)]['get']({'userProfileId':_0xda3a5c['currentUser'][_0xbfcb6f(0x21ac)],'name':_0xbfcb6f(0x2132)})['$promise'][_0xbfcb6f(0x64a)](function(_0x2bf805){const _0x44eee9=_0xbfcb6f,_0x15e16f=_0x2bf805&&_0x2bf805[_0x44eee9(0x28b8)]?_0x2bf805[_0x44eee9(0x28b8)][0x0]:null;_0x572086(_0x15e16f);})['catch'](function(_0x355e7){_0x2d1301(_0x355e7);});});}function _0x280557(){return _0x3181f3(function(_0x26fb8f,_0x4eb9a1){const _0x4aaef5=a0_0x4127;return _0x2fae68()[_0x4aaef5(0x64a)](function(_0x59bf5b){const _0x3d2ad3=_0x4aaef5;return _0xda3a5c[_0x3d2ad3(0x23cb)]=_0x59bf5b[_0x3d2ad3(0x28b8)]?_0x59bf5b['rows']:[],_0x565a8c[_0x3d2ad3(0x4de)](_0x3d2ad3(0x333))?_0x59bf5b:_0xda3a5c[_0x3d2ad3(0xa21)]?_0xda3a5c[_0x3d2ad3(0xa21)]['autoAssociation']?_0x59bf5b:_0x4c3c3b():null;})[_0x4aaef5(0x64a)](function(_0x11a4e7){const _0x25c984=_0x4aaef5,_0x3e890e=_0x11a4e7&&_0x11a4e7[_0x25c984(0x28b8)]?_0x11a4e7['rows']:[];return _0xda3a5c[_0x25c984(0x13d1)]=_0x28c606()[_0x25c984(0x1de5)](_0x3e890e,function(_0x3742e2){const _0x54a02a=_0x25c984;return _0x28c606()[_0x54a02a(0x27bc)](_0xda3a5c[_0x54a02a(0x23cb)],{'id':_0x565a8c['hasRole']('admin')||_0xda3a5c[_0x54a02a(0xa21)]['autoAssociation']?_0x3742e2['id']:_0x3742e2[_0x54a02a(0x145)]});}),_0xda3a5c[_0x25c984(0x206b)]=angular[_0x25c984(0x289e)](_0xda3a5c[_0x25c984(0x13d1)]),_0xda3a5c[_0x25c984(0x23cb)][_0x25c984(0x1397)](function(_0x27a733){const _0x4c7010=_0x25c984,_0x447d50=_0x28c606()[_0x4c7010(0x27bc)](_0xda3a5c[_0x4c7010(0x13d1)],{'id':_0x27a733['id']});_0x565a8c[_0x4c7010(0x4de)]('admin')?_0x27a733[_0x4c7010(0x6f9)]=!![]:_0x27a733[_0x4c7010(0x6f9)]=typeof _0x447d50!==_0x4c7010(0x19a1)?!![]:![];}),_0x3d5a2a();})[_0x4aaef5(0x64a)](function(_0xb5513){const _0x46148c=_0x4aaef5,_0x38297a=_0xb5513&&_0xb5513[_0x46148c(0x28b8)]?_0xb5513[_0x46148c(0x28b8)]:[];_0xda3a5c['selectedItems']=_0x28c606()[_0x46148c(0x1de5)](_0x38297a,function(_0x45bd76){const _0x23f994=_0x46148c,_0xfe7a75=_0x28c606()['find'](_0xda3a5c[_0x23f994(0x23cb)],{'id':_0x45bd76['id']});return _0xfe7a75[_0x23f994(0x70f)]=_0x45bd76[_0x23f994(0x15b5)]?'penalty\x20'+_0x45bd76[_0x23f994(0x15b5)][_0x23f994(0x70f)]:'',_0xfe7a75[_0x23f994(0xe2f)]=typeof _0x45bd76[_0x23f994(0xe2f)]!==_0x23f994(0x19a1)?'<'+_0x45bd76[_0x23f994(0xe2f)]+'>':'',_0xfe7a75;}),_0xda3a5c[_0x46148c(0x24e1)]=angular[_0x46148c(0x289e)](_0xda3a5c['selectedItems']),_0xda3a5c[_0x46148c(0x1eeb)][_0x46148c(0x1f4f)]=_0xda3a5c[_0x46148c(0x1f4f)],_0xda3a5c[_0x46148c(0x1eeb)][_0x46148c(0x23cb)]=_0x28c606()[_0x46148c(0x23e5)](_0xda3a5c[_0x46148c(0x13d1)],_0xda3a5c[_0x46148c(0x1eeb)][_0x46148c(0x1f4f)],'id'),_0x26fb8f();})[_0x4aaef5(0x20cd)](function(_0x3e60fd){_0x4eb9a1(_0x3e60fd);});});}function _0x4c3c3b(){return _0x3181f3(function(_0x3c37ca,_0x2f434f){const _0x7aa896=a0_0x4127;return _0x2b6d38['userProfileResource'][_0x7aa896(0x896)]({'sectionId':_0xda3a5c[_0x7aa896(0xa21)]['id'],'nolimit':!![]})[_0x7aa896(0x15e7)][_0x7aa896(0x64a)](function(_0x3d3130){_0x3c37ca(_0x3d3130);})[_0x7aa896(0x20cd)](function(_0x458ec7){_0x2f434f(_0x458ec7);});});}function _0x3d5a2a(){return _0x3181f3(function(_0x4191fa,_0x230945){const _0x5367ee=a0_0x4127;return _0x2b6d38[_0x5367ee(0x549)][_0x5367ee(0xa10)]({'id':_0xda3a5c[_0x5367ee(0x549)]['id'],'fields':_0x5367ee(0x2105),'nolimit':!![],'role':'agent'})['$promise']['then'](function(_0x58fbe0){_0x4191fa(_0x58fbe0);})[_0x5367ee(0x20cd)](function(_0x586d9e){_0x230945(_0x586d9e);});});}function _0x2fae68(){return _0x3181f3(function(_0x7f0a4f,_0x5e07ee){const _0x1bc9c2=a0_0x4127;return _0x2b6d38['user'][_0x1bc9c2(0x896)]({'fields':_0x1bc9c2(0x2105),'nolimit':!![],'role':_0x1bc9c2(0x11ae)})[_0x1bc9c2(0x15e7)][_0x1bc9c2(0x64a)](function(_0x3122d8){_0x7f0a4f(_0x3122d8);})[_0x1bc9c2(0x20cd)](function(_0x35e719){_0x5e07ee(_0x35e719);});});}function _0x297121(_0x1f327d){return _0x3181f3(function(_0x49309e,_0x4e9390){const _0x3ebf22=a0_0x4127;_0x28c606()[_0x3ebf22(0x940)](_0x1f327d)?_0x49309e():_0x2b6d38[_0x3ebf22(0x549)][_0x3ebf22(0x1575)]({'id':_0xda3a5c[_0x3ebf22(0x549)]['id'],'ids':_0x28c606()[_0x3ebf22(0x1de5)](_0x1f327d,'id')})[_0x3ebf22(0x15e7)]['then'](function(){_0x49309e();})[_0x3ebf22(0x20cd)](function(_0x4be4d9){_0x4e9390(_0x4be4d9);});});}function _0x4e5bee(_0x23756d){return _0x3181f3(function(_0x1ecf20,_0x389c39){const _0x5bc5a5=a0_0x4127;_0x28c606()['isEmpty'](_0x23756d)?_0x1ecf20():_0x2b6d38[_0x5bc5a5(0x549)]['removeAgents']({'id':_0xda3a5c[_0x5bc5a5(0x549)]['id'],'ids':_0x28c606()[_0x5bc5a5(0x1de5)](_0x23756d,'id')})['$promise'][_0x5bc5a5(0x64a)](function(){_0x1ecf20();})['catch'](function(_0xb617cf){_0x389c39(_0xb617cf);});});}function _0x594f22(){const _0x3d3993=_0x353ec0,_0x2d0253=_0x28c606()[_0x3d3993(0x23e5)](_0xda3a5c[_0x3d3993(0x24e1)],_0xda3a5c[_0x3d3993(0x1f4f)],'id'),_0x460b4c=_0x28c606()[_0x3d3993(0x23e5)](_0xda3a5c[_0x3d3993(0x1f4f)],_0xda3a5c[_0x3d3993(0x24e1)],'id');return _0x4e5bee(_0x2d0253)[_0x3d3993(0x64a)](function(){return _0x297121(_0x460b4c);})['then'](function(){const _0x944c78=_0x3d3993;_0xda3a5c[_0x944c78(0xe9e)]=![],_0xda3a5c['startingAllowedItems']=angular[_0x944c78(0x289e)](_0xda3a5c[_0x944c78(0x13d1)]),_0xda3a5c[_0x944c78(0x24e1)]=angular[_0x944c78(0x289e)](_0xda3a5c[_0x944c78(0x1f4f)]),_0x30b49c[_0x944c78(0x1339)]({'title':'SUCCESS','msg':_0x944c78(0x1db)});})[_0x3d3993(0x20cd)](function(_0x44ca37){const _0x238c6f=_0x3d3993;_0x30b49c[_0x238c6f(0x1bd0)]({'title':_0x44ca37[_0x238c6f(0x10b3)]?_0x238c6f(0x575)+_0x44ca37[_0x238c6f(0x10b3)]+_0x238c6f(0x21db)+_0x44ca37[_0x238c6f(0x2115)]:_0x238c6f(0x1226),'msg':_0x44ca37['status']?JSON[_0x238c6f(0x2317)](_0x44ca37[_0x238c6f(0x1c52)]):_0x44ca37[_0x238c6f(0x2915)]()});});}function _0x4c350c(){const _0x562570=_0x353ec0;_0x1874c4[_0x562570(0x268e)]();}}const _0x4fe71c=_0x40cb4f;;_0x1ee05e[_0x49a1e3(0x1e73)]=['$mdDialog','$q',_0x49a1e3(0x680),_0x49a1e3(0x11ca),_0x49a1e3(0x549),_0x49a1e3(0xa19),'Auth','crudPermissions'];function _0x1ee05e(_0x13f1b0,_0xa4e3e5,_0x167380,_0x11b9af,_0x2f1667,_0x43b90c,_0x4be0fb,_0x43e4c2){const _0x5d3c99=_0x49a1e3,_0x2f96c5=this;_0x2f96c5[_0x5d3c99(0x1d3d)]=_0x4be0fb['getCurrentUser'](),_0x2f96c5['errors']=[],_0x2f96c5[_0x5d3c99(0x2021)]='FAX.EDIT_'+(_0x11b9af[_0x5d3c99(0x4f4)]||_0x11b9af[_0x5d3c99(0x16e1)])[_0x5d3c99(0xa3c)](),_0x2f96c5['agent']=angular[_0x5d3c99(0x289e)](_0x11b9af),_0x2f96c5[_0x5d3c99(0x402)]=_0x43e4c2,_0x2f96c5[_0x5d3c99(0x6c2)]={};if(_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0xacb)])switch(_0x2f96c5[_0x5d3c99(0x11ae)]['appType']?_0x2f96c5['agent'][_0x5d3c99(0x4f4)][_0x5d3c99(0x2554)]():_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x16e1)][_0x5d3c99(0x2554)]()){case _0x5d3c99(0x1ad6):break;case _0x5d3c99(0x1084):{const _0x3fd400=_0x2f96c5['agent']['appdata'][_0x5d3c99(0x282c)](',');_0x2f96c5['agent'][_0x5d3c99(0x2125)]=_0x3fd400[0x0],_0x2f96c5['agent'][_0x5d3c99(0x1cbd)]=_0x3fd400[0x1],_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x31b)]=_0x3fd400[_0x5d3c99(0x142e)](0x2,_0x3fd400[_0x5d3c99(0x1b9e)])[_0x5d3c99(0x9a6)](',');}break;case _0x5d3c99(0x1b1a):{const _0x485448=_0x2f96c5[_0x5d3c99(0x11ae)]['appdata'][_0x5d3c99(0x282c)](',');_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0xbfd)]=_0x485448[0x0],_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x4b2)]=_0x485448[0x1],_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x1b1b)]=_0x485448[0x2],_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x1cbd)]=_0x485448[0x3],_0x2f96c5[_0x5d3c99(0x11ae)]['welcomemessage']=_0x485448['slice'](0x4,_0x485448['length'])[_0x5d3c99(0x9a6)](',');}break;case'amazonlex':{const _0x1709e0=_0x2f96c5[_0x5d3c99(0x11ae)]['appdata']['split'](',');_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x1466)]=_0x1709e0[0x0],_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x1b1)]=_0x1709e0[0x1],_0x2f96c5['agent'][_0x5d3c99(0x17a2)]=_0x1709e0[0x2],_0x2f96c5['agent'][_0x5d3c99(0x2797)]=_0x1709e0[0x3],_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x31b)]=_0x1709e0[_0x5d3c99(0x142e)](0x4,_0x1709e0[_0x5d3c99(0x1b9e)])[_0x5d3c99(0x9a6)](',');}break;case'autoreply':{const _0x570e0c=_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0xacb)][_0x5d3c99(0x282c)](',');_0x2f96c5[_0x5d3c99(0x11ae)]['times']=isNaN(_0x570e0c[0x0])?_0x570e0c[0x0]:parseInt(_0x570e0c[0x0],0xa),_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x39b)]=_0x570e0c[_0x5d3c99(0x142e)](0x1,_0x570e0c[_0x5d3c99(0x1b9e)])[_0x5d3c99(0x9a6)](',');}break;case _0x5d3c99(0x18ca):_0x2f96c5[_0x5d3c99(0x11ae)]['text']=_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0xacb)];break;case _0x5d3c99(0x1979):_0x2f96c5['agent']['name']=_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0xacb)]['split']('=')[0x0],_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x1096)]=_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0xacb)][_0x5d3c99(0x282c)]('=')[0x1];break;case _0x5d3c99(0x1e67):_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x1bd9)]=_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0xacb)];break;default:{const _0x319916=_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0xacb)][_0x5d3c99(0x282c)](',');_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x11ae)]=_0x28c606()[_0x5d3c99(0x940)](_0x319916[0x0])?_0x319916[0x0]:isNaN(_0x319916[0x0])?_0x319916[0x0]:parseInt(_0x319916[0x0],0xa),_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x16d)]=_0x28c606()['isEmpty'](_0x319916[0x1])?_0x319916[0x1]:isNaN(_0x319916[0x1])?_0x319916[0x1]:parseInt(_0x319916[0x1],0xa);}break;}else _0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x16d)]=0x1e;_0x2f96c5[_0x5d3c99(0x11ae)]['type']&&_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x2185)][_0x5d3c99(0x2554)]()===_0x5d3c99(0xbce)&&_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x4f4)][_0x5d3c99(0x2554)]()===_0x5d3c99(0x20eb)&&(_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x2524)]=_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x267a)]?_0x2f96c5['agent']['phone'][_0x5d3c99(0x282c)]('$')[0x0]:undefined,_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x1a9b)]=_0x2f96c5[_0x5d3c99(0x11ae)][_0x5d3c99(0x1abe)]?'CALLERID(all)='+_0x2f96c5['agent'][_0x5d3c99(0x1abe)]:undefined);_0x2f96c5[_0x5d3c99(0x13f1)]=_0x2bb7c0,_0x2f96c5['closeDialog']=_0xdc9dc7,_0x4be0fb[_0x5d3c99(0x4de)](_0x5d3c99(0x333))?_0x43b90c[_0x5d3c99(0x2e8)][_0x5d3c99(0x896)]({'fields':'id,name','sort':_0x5d3c99(0x2494),'role':_0x5d3c99(0x11ae),'nolimit':'true'})['$promise'][_0x5d3c99(0x64a)](function(_0x188cbf){const _0x3dbf86=_0x5d3c99;_0x2f96c5['agents']=_0x188cbf[_0x3dbf86(0x28b8)]||[];})['catch'](function(_0x286feb){const _0x19daf7=_0x5d3c99;_0x167380['error']({'title':_0x286feb[_0x19daf7(0x10b3)]?_0x19daf7(0x575)+_0x286feb[_0x19daf7(0x10b3)]+_0x19daf7(0x21db)+_0x286feb['statusText']:'SYSTEM:GET_AGENTS','msg':_0x286feb[_0x19daf7(0x1c52)]?JSON[_0x19daf7(0x2317)](_0x286feb[_0x19daf7(0x1c52)]):_0x286feb[_0x19daf7(0x2915)]()});}):_0x43b90c[_0x5d3c99(0x2e8)][_0x5d3c99(0x896)]({'fields':'id,name','sort':_0x5d3c99(0x2494),'role':_0x5d3c99(0x11ae),'nolimit':'true'})[_0x5d3c99(0x15e7)][_0x5d3c99(0x64a)](function(_0x2f1d1a){const _0x47db62=_0x5d3c99;_0x2f96c5[_0x47db62(0xd77)]=_0x2f1d1a['rows']||[];})['then'](function(){const _0x192d55=_0x5d3c99;return _0x43b90c[_0x192d55(0x16b2)]['get']({'userProfileId':_0x2f96c5['currentUser'][_0x192d55(0x21ac)],'sectionId':0xca})[_0x192d55(0x15e7)];})[_0x5d3c99(0x64a)](function(_0x45d891){const _0x324123=_0x5d3c99,_0x3f07fc=_0x45d891&&_0x45d891[_0x324123(0x28b8)]?_0x45d891[_0x324123(0x28b8)][0x0]:null;if(!_0x3f07fc){const _0x177189=[];let _0x35445c=null;_0x2f96c5[_0x324123(0x11ae)]&&(_0x35445c=_0x28c606()[_0x324123(0x27bc)](_0x2f96c5[_0x324123(0xd77)],{'name':_0x2f96c5[_0x324123(0x11ae)][_0x324123(0x11ae)]}));for(let _0xdcedae=0x0;_0xdcedae<_0x2f96c5[_0x324123(0xd77)][_0x324123(0x1b9e)];_0xdcedae++){_0x35445c&&_0x2f96c5[_0x324123(0xd77)][_0xdcedae]['id']===_0x35445c['id']&&(_0x2f96c5[_0x324123(0xd77)][_0xdcedae][_0x324123(0xd4f)]=![],_0x177189['push'](_0x2f96c5[_0x324123(0xd77)][_0xdcedae]));}_0x2f96c5[_0x324123(0xd77)]=_0x177189;}else{if(!_0x3f07fc[_0x324123(0x11da)])return _0x43b90c[_0x324123(0x1617)]['get']({'sectionId':_0x3f07fc['id']})[_0x324123(0x15e7)][_0x324123(0x64a)](function(_0xd198a5){const _0xfc8e4a=_0x324123,_0x79630e=_0x28c606()[_0xfc8e4a(0x1de5)](_0xd198a5[_0xfc8e4a(0x28b8)],function(_0x4836f4){const _0x5e0aa1=_0xfc8e4a;return _0x28c606()[_0x5e0aa1(0x27bc)](_0x2f96c5[_0x5e0aa1(0xd77)],{'id':_0x4836f4['resourceId']});});let _0x42a9b7=null;_0x2f96c5[_0xfc8e4a(0x11ae)]&&(_0x42a9b7=_0x28c606()['find'](_0x2f96c5[_0xfc8e4a(0xd77)],{'name':_0x2f96c5[_0xfc8e4a(0x11ae)][_0xfc8e4a(0x11ae)]}));if(_0x42a9b7&&!_0x28c606()[_0xfc8e4a(0x25f8)](_0x79630e,['id',_0x42a9b7['id']])){const _0x5b924d=_0x28c606()[_0xfc8e4a(0x27bc)](_0x2f96c5['agents'],{'id':_0x42a9b7['id']});_0x5b924d[_0xfc8e4a(0xd4f)]=![],_0x79630e[_0xfc8e4a(0x1954)](_0x5b924d);}_0x2f96c5[_0xfc8e4a(0xd77)]=_0x79630e;});}})[_0x5d3c99(0x20cd)](function(_0x5e85fc){const _0x2eb47c=_0x5d3c99;_0x167380[_0x2eb47c(0x1bd0)]({'title':_0x5e85fc[_0x2eb47c(0x10b3)]?'API:'+_0x5e85fc[_0x2eb47c(0x10b3)]+_0x2eb47c(0x21db)+_0x5e85fc['statusText']:_0x2eb47c(0x1ff1),'msg':_0x5e85fc[_0x2eb47c(0x1c52)]?JSON[_0x2eb47c(0x2317)](_0x5e85fc[_0x2eb47c(0x1c52)]):_0x5e85fc[_0x2eb47c(0x2915)]()});});function _0x2bb7c0(){const _0x37d013=_0x5d3c99;_0x2f96c5[_0x37d013(0xbae)]=[];const _0x4f47fc=[];_0x2f96c5[_0x37d013(0x11ae)][_0x37d013(0x2185)]&&_0x2f96c5['agent']['type'][_0x37d013(0x2554)]()===_0x37d013(0xbce)&&_0x2f96c5[_0x37d013(0x11ae)][_0x37d013(0x4f4)]===_0x37d013(0x17b6)&&(_0x2f96c5[_0x37d013(0x11ae)]['phone']=_0x2f1667[_0x37d013(0x242b)]?(_0x2f96c5[_0x37d013(0x11ae)][_0x37d013(0x2524)]||'')+_0x37d013(0x1a75)+_0x2f1667['cutdigits']+'}':(_0x2f96c5[_0x37d013(0x11ae)]['prefix']||'')+_0x37d013(0x5ad),_0x2f1667[_0x37d013(0x1097)]!=='none'?_0x2f96c5[_0x37d013(0x11ae)][_0x37d013(0x59e)][_0x37d013(0x1b28)](_0x37d013(0x13e0))<0x0&&(_0x2f96c5[_0x37d013(0x11ae)]['options']+=_0x37d013(0x13e0)):_0x2f96c5[_0x37d013(0x11ae)][_0x37d013(0x59e)]=_0x2f96c5[_0x37d013(0x11ae)]['options'][_0x37d013(0x1353)](_0x37d013(0x13e0),''));const _0x4c89f8=_0x28c606()['find'](_0x2f96c5[_0x37d013(0xd77)],{'name':_0x2f96c5[_0x37d013(0x11ae)]['agent']});_0x4c89f8&&(_0x2f96c5[_0x37d013(0x11ae)][_0x37d013(0x246c)]=_0x4c89f8['id']);if(_0x2f96c5[_0x37d013(0x11ae)][_0x37d013(0x4f4)]&&_0x2f96c5[_0x37d013(0x11ae)][_0x37d013(0x4f4)]===_0x37d013(0x1ad6)){}else switch((_0x2f96c5[_0x37d013(0x11ae)][_0x37d013(0x16e1)]||_0x2f96c5['agent'][_0x37d013(0x4f4)])[_0x37d013(0x2554)]()){case'set':_0x2f96c5['agent'][_0x37d013(0xacb)]=_0x2f96c5[_0x37d013(0x11ae)][_0x37d013(0x2494)]+'='+_0x2f96c5[_0x37d013(0x11ae)][_0x37d013(0x1096)];break;case _0x37d013(0x1ad6):break;default:_0x4f47fc[0x0]=_0x2f96c5[_0x37d013(0x11ae)][_0x37d013(0x11ae)],_0x4f47fc[0x1]=_0x2f96c5[_0x37d013(0x11ae)][_0x37d013(0x16d)],_0x2f96c5[_0x37d013(0x11ae)]['appdata']=_0x4f47fc['join'](',');}_0xdc9dc7(_0x2f96c5[_0x37d013(0x11ae)]);}function _0xdc9dc7(_0xb92ea5){const _0x3d3558=_0x5d3c99;_0x13f1b0[_0x3d3558(0x268e)](_0xb92ea5);}}const _0x2fe27b=_0x1ee05e;;_0x4fec3f[_0x49a1e3(0x1e73)]=['$mdDialog','$q',_0x49a1e3(0x680),_0x49a1e3(0x11ca),'faxAccount',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x4fec3f(_0x1209e1,_0x53aa4c,_0x201c0f,_0x6aa848,_0x3912b5,_0x404d2a,_0x1d72cc,_0x1c5675){const _0x64a4b4=_0x49a1e3,_0xf89fe9=this;_0xf89fe9[_0x64a4b4(0x1d3d)]=_0x1d72cc[_0x64a4b4(0x808)](),_0xf89fe9[_0x64a4b4(0xbae)]=[],_0xf89fe9[_0x64a4b4(0x2021)]=_0x64a4b4(0x128a)+(_0x6aa848[_0x64a4b4(0x4f4)]||_0x6aa848[_0x64a4b4(0x16e1)])[_0x64a4b4(0xa3c)](),_0xf89fe9['close']=angular[_0x64a4b4(0x289e)](_0x6aa848),_0xf89fe9[_0x64a4b4(0x402)]=_0x1c5675,_0xf89fe9[_0x64a4b4(0x6c2)]={};if(_0xf89fe9['close']['appdata'])switch(_0xf89fe9[_0x64a4b4(0x67b)]['appType']?_0xf89fe9['close'][_0x64a4b4(0x4f4)]['toLowerCase']():_0xf89fe9[_0x64a4b4(0x67b)]['app'][_0x64a4b4(0x2554)]()){case _0x64a4b4(0x1ad6):break;case _0x64a4b4(0x1084):{const _0x495af3=_0xf89fe9[_0x64a4b4(0x67b)]['appdata'][_0x64a4b4(0x282c)](',');_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0x2125)]=_0x495af3[0x0],_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0x1cbd)]=_0x495af3[0x1],_0xf89fe9[_0x64a4b4(0x67b)]['welcomemessage']=_0x495af3['slice'](0x2,_0x495af3[_0x64a4b4(0x1b9e)])[_0x64a4b4(0x9a6)](',');}break;case'dialogflowv2':{const _0x403fab=_0xf89fe9['close']['appdata']['split'](',');_0xf89fe9['close']['projectId']=_0x403fab[0x0],_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0x4b2)]=_0x403fab[0x1],_0xf89fe9['close'][_0x64a4b4(0x1b1b)]=_0x403fab[0x2],_0xf89fe9[_0x64a4b4(0x67b)]['language']=_0x403fab[0x3],_0xf89fe9['close']['welcomemessage']=_0x403fab[_0x64a4b4(0x142e)](0x4,_0x403fab['length'])['join'](',');}break;case'amazonlex':{const _0x43665b=_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0xacb)]['split'](',');_0xf89fe9[_0x64a4b4(0x67b)]['accesskeyid']=_0x43665b[0x0],_0xf89fe9['close'][_0x64a4b4(0x1b1)]=_0x43665b[0x1],_0xf89fe9['close'][_0x64a4b4(0x17a2)]=_0x43665b[0x2],_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0x2797)]=_0x43665b[0x3],_0xf89fe9['close'][_0x64a4b4(0x31b)]=_0x43665b[_0x64a4b4(0x142e)](0x4,_0x43665b['length'])['join'](',');}break;case'autoreply':{const _0x1e9d9a=_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0xacb)][_0x64a4b4(0x282c)](',');_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0x95f)]=isNaN(_0x1e9d9a[0x0])?_0x1e9d9a[0x0]:parseInt(_0x1e9d9a[0x0],0xa),_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0x39b)]=_0x1e9d9a[_0x64a4b4(0x142e)](0x1,_0x1e9d9a['length'])['join'](',');}break;case _0x64a4b4(0x18ca):_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0x39b)]=_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0xacb)];break;case _0x64a4b4(0x1979):_0xf89fe9['close'][_0x64a4b4(0x2494)]=_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0xacb)]['split']('=')[0x0],_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0x1096)]=_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0xacb)][_0x64a4b4(0x282c)]('=')[0x1];break;case'agi':_0xf89fe9['close'][_0x64a4b4(0x1bd9)]=_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0xacb)];break;default:{const _0x1116c9=_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0xacb)][_0x64a4b4(0x282c)](',');_0xf89fe9[_0x64a4b4(0x67b)]['disposition']=_0x28c606()['isEmpty'](_0x1116c9[0x0])?_0x1116c9[0x0]:isNaN(_0x1116c9[0x0])?_0x1116c9[0x0]:parseInt(_0x1116c9[0x0],0xa);}break;}else{}_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0x2185)]&&_0xf89fe9['close'][_0x64a4b4(0x2185)][_0x64a4b4(0x2554)]()===_0x64a4b4(0xbce)&&_0xf89fe9['close'][_0x64a4b4(0x4f4)][_0x64a4b4(0x2554)]()===_0x64a4b4(0x20eb)&&(_0xf89fe9['close'][_0x64a4b4(0x2524)]=_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0x267a)]?_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0x267a)][_0x64a4b4(0x282c)]('$')[0x0]:undefined,_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0x1a9b)]=_0xf89fe9[_0x64a4b4(0x67b)]['callerID']?_0x64a4b4(0x2489)+_0xf89fe9[_0x64a4b4(0x67b)][_0x64a4b4(0x1abe)]:undefined);_0xf89fe9[_0x64a4b4(0x13f1)]=_0x40feba,_0xf89fe9[_0x64a4b4(0x16cb)]=_0x2452b3;function _0x40feba(){const _0x212465=_0x64a4b4;_0xf89fe9[_0x212465(0xbae)]=[];const _0x329a9f=[];_0xf89fe9[_0x212465(0x67b)][_0x212465(0x2185)]&&_0xf89fe9[_0x212465(0x67b)][_0x212465(0x2185)]['toLowerCase']()===_0x212465(0xbce)&&_0xf89fe9[_0x212465(0x67b)][_0x212465(0x4f4)]===_0x212465(0x17b6)&&(_0xf89fe9['close']['phone']=_0x3912b5['cutdigits']?(_0xf89fe9[_0x212465(0x67b)]['prefix']||'')+_0x212465(0x1a75)+_0x3912b5['cutdigits']+'}':(_0xf89fe9['close'][_0x212465(0x2524)]||'')+_0x212465(0x5ad),_0x3912b5[_0x212465(0x1097)]!==_0x212465(0x2507)?_0xf89fe9['close']['options']['indexOf'](_0x212465(0x13e0))<0x0&&(_0xf89fe9['close'][_0x212465(0x59e)]+='U(xcally-mixmonitor-context)'):_0xf89fe9[_0x212465(0x67b)][_0x212465(0x59e)]=_0xf89fe9['close'][_0x212465(0x59e)]['replace'](_0x212465(0x13e0),''));if(_0xf89fe9[_0x212465(0x67b)][_0x212465(0x4f4)]&&_0xf89fe9['close'][_0x212465(0x4f4)]===_0x212465(0x1ad6)){}else switch((_0xf89fe9['close'][_0x212465(0x16e1)]||_0xf89fe9[_0x212465(0x67b)][_0x212465(0x4f4)])[_0x212465(0x2554)]()){case _0x212465(0x1979):_0xf89fe9[_0x212465(0x67b)][_0x212465(0xacb)]=_0xf89fe9['close'][_0x212465(0x2494)]+'='+_0xf89fe9[_0x212465(0x67b)]['value'];break;case'custom':break;default:_0x329a9f[0x0]=_0xf89fe9[_0x212465(0x67b)][_0x212465(0x168b)],_0xf89fe9['close'][_0x212465(0xacb)]=_0x329a9f[_0x212465(0x9a6)](',');}_0x2452b3(_0xf89fe9['close']);}function _0x2452b3(_0x3ab935){const _0x801f34=_0x64a4b4;_0x1209e1[_0x801f34(0x268e)](_0x3ab935);}}const _0x420b22=_0x4fec3f;;_0x348e6c[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),'faxAccountApp',_0x49a1e3(0x549),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x402)];function _0x348e6c(_0x436f86,_0x538546,_0x14700d,_0x179c98,_0x224a9b,_0x4fcc41,_0x4bb105,_0x158fa2){const _0x1a2ed=_0x49a1e3,_0x17170a=this;_0x17170a[_0x1a2ed(0x1d3d)]=_0x4bb105[_0x1a2ed(0x808)](),_0x17170a['errors']=[],_0x17170a[_0x1a2ed(0x2021)]=_0x1a2ed(0x128a)+(_0x179c98['appType']||_0x179c98[_0x1a2ed(0x16e1)])[_0x1a2ed(0xa3c)](),_0x17170a[_0x1a2ed(0x614)]=angular[_0x1a2ed(0x289e)](_0x179c98),_0x17170a[_0x1a2ed(0x402)]=_0x158fa2,_0x17170a[_0x1a2ed(0x6c2)]={};if(_0x17170a['gotoif'][_0x1a2ed(0xacb)])switch(_0x17170a[_0x1a2ed(0x614)]['appType']?_0x17170a['gotoif'][_0x1a2ed(0x4f4)][_0x1a2ed(0x2554)]():_0x17170a[_0x1a2ed(0x614)]['app'][_0x1a2ed(0x2554)]()){case _0x1a2ed(0x1ad6):break;case _0x1a2ed(0x1084):{const _0x13eed0=_0x17170a[_0x1a2ed(0x614)]['appdata'][_0x1a2ed(0x282c)](',');_0x17170a['gotoif'][_0x1a2ed(0x2125)]=_0x13eed0[0x0],_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0x1cbd)]=_0x13eed0[0x1],_0x17170a['gotoif'][_0x1a2ed(0x31b)]=_0x13eed0[_0x1a2ed(0x142e)](0x2,_0x13eed0[_0x1a2ed(0x1b9e)])[_0x1a2ed(0x9a6)](',');}break;case _0x1a2ed(0x1b1a):{const _0x58feb2=_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0xacb)]['split'](',');_0x17170a['gotoif'][_0x1a2ed(0xbfd)]=_0x58feb2[0x0],_0x17170a['gotoif'][_0x1a2ed(0x4b2)]=_0x58feb2[0x1],_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0x1b1b)]=_0x58feb2[0x2],_0x17170a[_0x1a2ed(0x614)]['language']=_0x58feb2[0x3],_0x17170a['gotoif'][_0x1a2ed(0x31b)]=_0x58feb2['slice'](0x4,_0x58feb2[_0x1a2ed(0x1b9e)])[_0x1a2ed(0x9a6)](',');}break;case _0x1a2ed(0x290d):{const _0x356481=_0x17170a['gotoif'][_0x1a2ed(0xacb)][_0x1a2ed(0x282c)](',');_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0x1466)]=_0x356481[0x0],_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0x1b1)]=_0x356481[0x1],_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0x17a2)]=_0x356481[0x2],_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0x2797)]=_0x356481[0x3],_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0x31b)]=_0x356481[_0x1a2ed(0x142e)](0x4,_0x356481[_0x1a2ed(0x1b9e)])[_0x1a2ed(0x9a6)](',');}break;case _0x1a2ed(0x21a9):{const _0x59e953=_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0xacb)][_0x1a2ed(0x282c)](',');_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0x95f)]=isNaN(_0x59e953[0x0])?_0x59e953[0x0]:parseInt(_0x59e953[0x0],0xa),_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0x39b)]=_0x59e953['slice'](0x1,_0x59e953[_0x1a2ed(0x1b9e)])[_0x1a2ed(0x9a6)](',');}break;case _0x1a2ed(0x18ca):_0x17170a['gotoif'][_0x1a2ed(0x39b)]=_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0xacb)];break;case'set':_0x17170a[_0x1a2ed(0x614)]['name']=_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0xacb)][_0x1a2ed(0x282c)]('=')[0x0],_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0x1096)]=_0x17170a[_0x1a2ed(0x614)]['appdata'][_0x1a2ed(0x282c)]('=')[0x1];break;case'agi':_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0x1bd9)]=_0x17170a['gotoif'][_0x1a2ed(0xacb)];break;default:{const _0x35ca93=_0x17170a['gotoif'][_0x1a2ed(0xacb)]['split'](',');_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0xeea)]=_0x28c606()['isEmpty'](_0x35ca93[0x0])?_0x35ca93[0x0]:isNaN(_0x35ca93[0x0])?_0x35ca93[0x0]:parseInt(_0x35ca93[0x0],0xa),_0x17170a['gotoif'][_0x1a2ed(0x108f)]=_0x28c606()[_0x1a2ed(0x940)](_0x35ca93[0x1])?_0x35ca93[0x1]:isNaN(_0x35ca93[0x1])?_0x35ca93[0x1]:parseInt(_0x35ca93[0x1],0xa),_0x17170a['gotoif'][_0x1a2ed(0x1d32)]=_0x28c606()[_0x1a2ed(0x940)](_0x35ca93[0x2])?_0x35ca93[0x2]:isNaN(_0x35ca93[0x2])?_0x35ca93[0x2]:parseInt(_0x35ca93[0x2],0xa);}break;}else{}_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0x2185)]&&_0x17170a[_0x1a2ed(0x614)]['type'][_0x1a2ed(0x2554)]()==='outbound'&&_0x17170a[_0x1a2ed(0x614)]['appType'][_0x1a2ed(0x2554)]()===_0x1a2ed(0x20eb)&&(_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0x2524)]=_0x17170a['gotoif'][_0x1a2ed(0x267a)]?_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0x267a)][_0x1a2ed(0x282c)]('$')[0x0]:undefined,_0x17170a[_0x1a2ed(0x614)]['callerId']=_0x17170a[_0x1a2ed(0x614)][_0x1a2ed(0x1abe)]?'CALLERID(all)='+_0x17170a['gotoif'][_0x1a2ed(0x1abe)]:undefined);_0x17170a[_0x1a2ed(0x13f1)]=_0x3df897,_0x17170a[_0x1a2ed(0x16cb)]=_0x45703f;function _0x3df897(){const _0x38e7ed=_0x1a2ed;_0x17170a[_0x38e7ed(0xbae)]=[];const _0x300e63=[];_0x17170a[_0x38e7ed(0x614)]['type']&&_0x17170a[_0x38e7ed(0x614)][_0x38e7ed(0x2185)]['toLowerCase']()===_0x38e7ed(0xbce)&&_0x17170a[_0x38e7ed(0x614)][_0x38e7ed(0x4f4)]===_0x38e7ed(0x17b6)&&(_0x17170a[_0x38e7ed(0x614)][_0x38e7ed(0x267a)]=_0x224a9b[_0x38e7ed(0x242b)]?(_0x17170a[_0x38e7ed(0x614)][_0x38e7ed(0x2524)]||'')+_0x38e7ed(0x1a75)+_0x224a9b['cutdigits']+'}':(_0x17170a['gotoif'][_0x38e7ed(0x2524)]||'')+_0x38e7ed(0x5ad),_0x224a9b['recordingFormat']!==_0x38e7ed(0x2507)?_0x17170a[_0x38e7ed(0x614)][_0x38e7ed(0x59e)][_0x38e7ed(0x1b28)](_0x38e7ed(0x13e0))<0x0&&(_0x17170a[_0x38e7ed(0x614)]['options']+=_0x38e7ed(0x13e0)):_0x17170a[_0x38e7ed(0x614)][_0x38e7ed(0x59e)]=_0x17170a[_0x38e7ed(0x614)][_0x38e7ed(0x59e)]['replace'](_0x38e7ed(0x13e0),''));if(_0x17170a[_0x38e7ed(0x614)][_0x38e7ed(0x4f4)]&&_0x17170a[_0x38e7ed(0x614)]['appType']==='custom'){}else switch((_0x17170a[_0x38e7ed(0x614)][_0x38e7ed(0x16e1)]||_0x17170a[_0x38e7ed(0x614)]['appType'])[_0x38e7ed(0x2554)]()){case _0x38e7ed(0x1979):_0x17170a[_0x38e7ed(0x614)][_0x38e7ed(0xacb)]=_0x17170a['gotoif'][_0x38e7ed(0x2494)]+'='+_0x17170a[_0x38e7ed(0x614)][_0x38e7ed(0x1096)];break;case _0x38e7ed(0x1ad6):break;default:_0x300e63[0x0]=_0x17170a[_0x38e7ed(0x614)][_0x38e7ed(0xeea)],_0x300e63[0x1]=_0x17170a[_0x38e7ed(0x614)][_0x38e7ed(0x108f)],_0x300e63[0x2]=_0x17170a[_0x38e7ed(0x614)]['falsepriority'],_0x17170a[_0x38e7ed(0x614)][_0x38e7ed(0xacb)]=_0x300e63[_0x38e7ed(0x9a6)](',');}_0x45703f(_0x17170a[_0x38e7ed(0x614)]);}function _0x45703f(_0x5730e){const _0x52fac1=_0x1a2ed;_0x436f86[_0x52fac1(0x268e)](_0x5730e);}}const _0x145b8a=_0x348e6c;;_0x518c1f[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x11ca),_0x49a1e3(0x549),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x518c1f(_0xf62b54,_0x526bf9,_0x5528a3,_0x517122,_0x6b51d4,_0x4b4977,_0x2af3ab,_0x206c8d){const _0x38639e=_0x49a1e3,_0x54ce52=this;_0x54ce52[_0x38639e(0x1d3d)]=_0x2af3ab[_0x38639e(0x808)](),_0x54ce52[_0x38639e(0xbae)]=[],_0x54ce52['title']=_0x38639e(0x128a)+(_0x517122['appType']||_0x517122[_0x38639e(0x16e1)])[_0x38639e(0xa3c)](),_0x54ce52['gotop']=angular[_0x38639e(0x289e)](_0x517122),_0x54ce52[_0x38639e(0x402)]=_0x206c8d,_0x54ce52['hasModulePermissions']={};if(_0x54ce52['gotop'][_0x38639e(0xacb)])switch(_0x54ce52[_0x38639e(0x2046)][_0x38639e(0x4f4)]?_0x54ce52[_0x38639e(0x2046)][_0x38639e(0x4f4)][_0x38639e(0x2554)]():_0x54ce52[_0x38639e(0x2046)][_0x38639e(0x16e1)][_0x38639e(0x2554)]()){case _0x38639e(0x1ad6):break;case _0x38639e(0x1084):{const _0x454173=_0x54ce52[_0x38639e(0x2046)][_0x38639e(0xacb)][_0x38639e(0x282c)](',');_0x54ce52[_0x38639e(0x2046)]['key']=_0x454173[0x0],_0x54ce52[_0x38639e(0x2046)][_0x38639e(0x1cbd)]=_0x454173[0x1],_0x54ce52[_0x38639e(0x2046)]['welcomemessage']=_0x454173['slice'](0x2,_0x454173[_0x38639e(0x1b9e)])['join'](',');}break;case _0x38639e(0x1b1a):{const _0x1a5c76=_0x54ce52['gotop'][_0x38639e(0xacb)][_0x38639e(0x282c)](',');_0x54ce52['gotop'][_0x38639e(0xbfd)]=_0x1a5c76[0x0],_0x54ce52[_0x38639e(0x2046)][_0x38639e(0x4b2)]=_0x1a5c76[0x1],_0x54ce52[_0x38639e(0x2046)][_0x38639e(0x1b1b)]=_0x1a5c76[0x2],_0x54ce52['gotop'][_0x38639e(0x1cbd)]=_0x1a5c76[0x3],_0x54ce52[_0x38639e(0x2046)][_0x38639e(0x31b)]=_0x1a5c76[_0x38639e(0x142e)](0x4,_0x1a5c76[_0x38639e(0x1b9e)])['join'](',');}break;case _0x38639e(0x290d):{const _0x527af6=_0x54ce52[_0x38639e(0x2046)][_0x38639e(0xacb)]['split'](',');_0x54ce52['gotop'][_0x38639e(0x1466)]=_0x527af6[0x0],_0x54ce52['gotop'][_0x38639e(0x1b1)]=_0x527af6[0x1],_0x54ce52['gotop'][_0x38639e(0x17a2)]=_0x527af6[0x2],_0x54ce52[_0x38639e(0x2046)][_0x38639e(0x2797)]=_0x527af6[0x3],_0x54ce52[_0x38639e(0x2046)]['welcomemessage']=_0x527af6['slice'](0x4,_0x527af6[_0x38639e(0x1b9e)])[_0x38639e(0x9a6)](',');}break;case _0x38639e(0x21a9):{const _0x74535d=_0x54ce52[_0x38639e(0x2046)][_0x38639e(0xacb)][_0x38639e(0x282c)](',');_0x54ce52['gotop'][_0x38639e(0x95f)]=isNaN(_0x74535d[0x0])?_0x74535d[0x0]:parseInt(_0x74535d[0x0],0xa),_0x54ce52[_0x38639e(0x2046)]['text']=_0x74535d['slice'](0x1,_0x74535d[_0x38639e(0x1b9e)])['join'](',');}break;case _0x38639e(0x18ca):_0x54ce52[_0x38639e(0x2046)][_0x38639e(0x39b)]=_0x54ce52['gotop'][_0x38639e(0xacb)];break;case _0x38639e(0x1979):_0x54ce52[_0x38639e(0x2046)][_0x38639e(0x2494)]=_0x54ce52[_0x38639e(0x2046)][_0x38639e(0xacb)][_0x38639e(0x282c)]('=')[0x0],_0x54ce52['gotop'][_0x38639e(0x1096)]=_0x54ce52[_0x38639e(0x2046)][_0x38639e(0xacb)][_0x38639e(0x282c)]('=')[0x1];break;case'agi':_0x54ce52[_0x38639e(0x2046)][_0x38639e(0x1bd9)]=_0x54ce52[_0x38639e(0x2046)][_0x38639e(0xacb)];break;default:{const _0x3c6bc7=_0x54ce52['gotop'][_0x38639e(0xacb)][_0x38639e(0x282c)](',');_0x54ce52[_0x38639e(0x2046)]['priority']=_0x28c606()[_0x38639e(0x940)](_0x3c6bc7[0x0])?_0x3c6bc7[0x0]:isNaN(_0x3c6bc7[0x0])?_0x3c6bc7[0x0]:parseInt(_0x3c6bc7[0x0],0xa);}break;}else{}_0x54ce52['gotop'][_0x38639e(0x2185)]&&_0x54ce52[_0x38639e(0x2046)]['type']['toLowerCase']()==='outbound'&&_0x54ce52[_0x38639e(0x2046)][_0x38639e(0x4f4)][_0x38639e(0x2554)]()===_0x38639e(0x20eb)&&(_0x54ce52['gotop'][_0x38639e(0x2524)]=_0x54ce52[_0x38639e(0x2046)][_0x38639e(0x267a)]?_0x54ce52[_0x38639e(0x2046)]['phone'][_0x38639e(0x282c)]('$')[0x0]:undefined,_0x54ce52[_0x38639e(0x2046)][_0x38639e(0x1a9b)]=_0x54ce52[_0x38639e(0x2046)][_0x38639e(0x1abe)]?_0x38639e(0x2489)+_0x54ce52[_0x38639e(0x2046)][_0x38639e(0x1abe)]:undefined);_0x54ce52['saveFaxAccountApp']=_0x2f92e9,_0x54ce52[_0x38639e(0x16cb)]=_0x582e7d;function _0x2f92e9(){const _0x527db8=_0x38639e;_0x54ce52[_0x527db8(0xbae)]=[];const _0x91b9ad=[];_0x54ce52[_0x527db8(0x2046)][_0x527db8(0x2185)]&&_0x54ce52[_0x527db8(0x2046)]['type'][_0x527db8(0x2554)]()==='outbound'&&_0x54ce52[_0x527db8(0x2046)][_0x527db8(0x4f4)]===_0x527db8(0x17b6)&&(_0x54ce52[_0x527db8(0x2046)][_0x527db8(0x267a)]=_0x6b51d4[_0x527db8(0x242b)]?(_0x54ce52['gotop'][_0x527db8(0x2524)]||'')+_0x527db8(0x1a75)+_0x6b51d4[_0x527db8(0x242b)]+'}':(_0x54ce52[_0x527db8(0x2046)][_0x527db8(0x2524)]||'')+_0x527db8(0x5ad),_0x6b51d4[_0x527db8(0x1097)]!==_0x527db8(0x2507)?_0x54ce52[_0x527db8(0x2046)][_0x527db8(0x59e)][_0x527db8(0x1b28)](_0x527db8(0x13e0))<0x0&&(_0x54ce52['gotop'][_0x527db8(0x59e)]+='U(xcally-mixmonitor-context)'):_0x54ce52[_0x527db8(0x2046)][_0x527db8(0x59e)]=_0x54ce52[_0x527db8(0x2046)][_0x527db8(0x59e)][_0x527db8(0x1353)](_0x527db8(0x13e0),''));if(_0x54ce52[_0x527db8(0x2046)][_0x527db8(0x4f4)]&&_0x54ce52[_0x527db8(0x2046)]['appType']===_0x527db8(0x1ad6)){}else switch((_0x54ce52[_0x527db8(0x2046)]['app']||_0x54ce52[_0x527db8(0x2046)]['appType'])[_0x527db8(0x2554)]()){case _0x527db8(0x1979):_0x54ce52[_0x527db8(0x2046)]['appdata']=_0x54ce52[_0x527db8(0x2046)]['name']+'='+_0x54ce52[_0x527db8(0x2046)]['value'];break;case'custom':break;default:_0x91b9ad[0x0]=_0x54ce52[_0x527db8(0x2046)][_0x527db8(0x1095)],_0x54ce52[_0x527db8(0x2046)]['appdata']=_0x91b9ad[_0x527db8(0x9a6)](',');}_0x582e7d(_0x54ce52[_0x527db8(0x2046)]);}function _0x582e7d(_0x206718){const _0x3ac0be=_0x38639e;_0xf62b54[_0x3ac0be(0x268e)](_0x206718);}}const _0x26771b=_0x518c1f;;_0x4f0513[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x212a),_0x49a1e3(0x611),_0x49a1e3(0xd48),_0x49a1e3(0xcfd),_0x49a1e3(0x15e4),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x4f0513(_0x3aa768,_0x33d114,_0x64c58a,_0x2f0bb0,_0x3e5f73,_0x20019a,_0xdb79ab,_0x4c0c5e,_0x4641ba,_0x82255c){const _0x433bf6=_0x49a1e3,_0x124bcd=this;_0x124bcd[_0x433bf6(0x1d3d)]=_0x4641ba[_0x433bf6(0x808)](),_0x124bcd[_0x433bf6(0xbae)]=[],_0x124bcd[_0x433bf6(0x2021)]='TOOLS.EDIT_INTERVAL',_0x124bcd[_0x433bf6(0xcfd)]=angular[_0x433bf6(0x289e)](_0x3e5f73),_0x124bcd[_0x433bf6(0x15e4)]=_0x20019a,_0x124bcd[_0x433bf6(0xf18)]=![],_0x124bcd[_0x433bf6(0x269)]=[_0x433bf6(0xa66),_0x433bf6(0x1ad6),_0x433bf6(0x2764)],_0x124bcd[_0x433bf6(0x402)]=_0x82255c,_0x124bcd[_0x433bf6(0x121a)]=_0x2f0bb0[_0x433bf6(0x8b9)](),_0x124bcd[_0x433bf6(0x2391)]=_0x2f0bb0[_0x433bf6(0x17ef)](),_0x124bcd[_0x433bf6(0x1c7e)]=_0x2f0bb0['getMonthName'](),_0x124bcd[_0x433bf6(0x1e2a)]=_0x2f0bb0[_0x433bf6(0xefe)]();if(!_0x124bcd[_0x433bf6(0xcfd)])_0x124bcd[_0x433bf6(0xcfd)]={'interval':'*,*,*,*'},_0x124bcd[_0x433bf6(0x2185)]=_0x433bf6(0xa66),_0x124bcd['title']='TOOLS.NEW_INTERVAL',_0x124bcd['newInterval']=!![];else{if(_0x124bcd['interval'][_0x433bf6(0xcfd)]!=='*,*,*,*'){_0x124bcd[_0x433bf6(0x2185)]='custom';const _0x4f3ef8=_0x124bcd[_0x433bf6(0xcfd)][_0x433bf6(0xcfd)][_0x433bf6(0x282c)](','),_0x492d0a=_0x4f3ef8[0x0],_0xac781b=_0x4f3ef8[0x1],_0xf308c5=_0x4f3ef8[0x2],_0x9e12f5=_0x4f3ef8[0x3];if(_0x492d0a!=='*'){const _0x2b0345=_0x492d0a[_0x433bf6(0x282c)]('-')[0x0],_0x19be82=_0x492d0a[_0x433bf6(0x282c)]('-')[0x1];let _0x14d03e;_0x14d03e=new Date(),_0x14d03e[_0x433bf6(0x260)](Number(_0x2b0345[_0x433bf6(0x282c)](':')[0x0])),_0x14d03e['setMinutes'](Number(_0x2b0345['split'](':')[0x1])),_0x124bcd['timeRangeFrom']=_0x14d03e,_0x14d03e=new Date(),_0x14d03e[_0x433bf6(0x260)](Number(_0x19be82['split'](':')[0x0])),_0x14d03e[_0x433bf6(0x1b10)](Number(_0x19be82[_0x433bf6(0x282c)](':')[0x1])),_0x124bcd['timeRangeTo']=_0x14d03e;}_0xac781b!=='*'&&(_0x124bcd[_0x433bf6(0xa8e)]=_0xac781b[_0x433bf6(0x282c)]('-')[0x0],_0x124bcd[_0x433bf6(0x1297)]=_0xac781b[_0x433bf6(0x282c)]('-')[0x1]),_0xf308c5!=='*'&&(_0x124bcd[_0x433bf6(0x1e3)]=_0xf308c5[_0x433bf6(0x282c)]('-')[0x0],_0x124bcd[_0x433bf6(0x15c4)]=_0xf308c5['split']('-')[0x1]),_0x9e12f5!=='*'&&(_0x124bcd[_0x433bf6(0x205f)]=_0x9e12f5[_0x433bf6(0x282c)]('-')[0x0],_0x124bcd['monthTo']=_0x9e12f5[_0x433bf6(0x282c)]('-')[0x1]);}else _0x124bcd['type']=_0x433bf6(0xa66);}_0x3aa768[_0x433bf6(0x1b48)]['id']&&!_0x124bcd[_0x433bf6(0xcfd)][_0x433bf6(0x2081)]&&(_0x124bcd[_0x433bf6(0xcfd)][_0x433bf6(0xb71)]=_0x3aa768['params']['id']);_0x124bcd['interval'][_0x433bf6(0xb71)]&&_0x124bcd['interval'][_0x433bf6(0x2081)]&&(_0x124bcd[_0x433bf6(0x2185)]=_0x433bf6(0x2764));_0x124bcd['addNewInterval']=_0x483fc9,_0x124bcd[_0x433bf6(0x1f5)]=_0x25f821,_0x124bcd[_0x433bf6(0x16cb)]=_0x4f9108;_0x124bcd['interval'][_0x433bf6(0x2081)]&&(_0x4641ba[_0x433bf6(0x4de)](_0x433bf6(0x333))?_0x4c0c5e['interval']['get']({'fields':_0x433bf6(0x530),'IntervalId':'null','nolimit':!![]})[_0x433bf6(0x15e7)]['then'](function(_0x29725c){const _0x54320e=_0x433bf6;_0x124bcd[_0x54320e(0x15e4)]=_0x29725c[_0x54320e(0x28b8)]||[];})['catch'](function(_0x2f4dd9){const _0x58266d=_0x433bf6;_0xdb79ab[_0x58266d(0x1bd0)]({'title':_0x2f4dd9[_0x58266d(0x10b3)]?'API:'+_0x2f4dd9[_0x58266d(0x10b3)]+_0x58266d(0x21db)+_0x2f4dd9['statusText']:_0x58266d(0xbfb),'msg':_0x2f4dd9[_0x58266d(0x1c52)]?JSON['stringify'](_0x2f4dd9[_0x58266d(0x1c52)]):_0x2f4dd9[_0x58266d(0x2915)]()});}):_0x4c0c5e['interval'][_0x433bf6(0x896)]({'fields':_0x433bf6(0x530),'IntervalId':_0x433bf6(0x8f1),'nolimit':!![]})[_0x433bf6(0x15e7)][_0x433bf6(0x64a)](function(_0x56520a){const _0x1938d1=_0x433bf6;_0x124bcd[_0x1938d1(0x15e4)]=_0x56520a[_0x1938d1(0x28b8)]||[];})[_0x433bf6(0x64a)](function(){const _0x4044ab=_0x433bf6;return _0x4c0c5e['userProfileSection'][_0x4044ab(0x896)]({'userProfileId':_0x124bcd[_0x4044ab(0x1d3d)][_0x4044ab(0x21ac)],'sectionId':0x3ec})[_0x4044ab(0x15e7)];})[_0x433bf6(0x64a)](function(_0x42d939){const _0x41a738=_0x433bf6,_0x539837=_0x42d939&&_0x42d939[_0x41a738(0x28b8)]?_0x42d939['rows'][0x0]:null;if(!_0x539837)_0x124bcd[_0x41a738(0x15e4)]=[];else{if(!_0x539837[_0x41a738(0x11da)])return _0x4c0c5e['userProfileResource']['get']({'sectionId':_0x539837['id']})[_0x41a738(0x15e7)][_0x41a738(0x64a)](function(_0x49a69d){const _0x5f3248=_0x41a738,_0x1a772a=_0x49a69d&&_0x49a69d['rows']?_0x49a69d[_0x5f3248(0x28b8)]:[],_0xb11f39=[];let _0x29d3da=null;_0x124bcd[_0x5f3248(0xcfd)]&&(_0x29d3da=_0x28c606()['find'](_0x124bcd[_0x5f3248(0x15e4)],{'name':_0x124bcd[_0x5f3248(0xcfd)][_0x5f3248(0xb71)]})),_0x29d3da&&!_0x28c606()[_0x5f3248(0x25f8)](_0x1a772a,[_0x5f3248(0x145),_0x29d3da['id']])&&_0x124bcd[_0x5f3248(0x15e4)]['forEach'](function(_0x486461){const _0x20d62d=_0x5f3248;_0x486461['id']===_0x29d3da['id']&&(_0x486461[_0x20d62d(0xd4f)]=![],_0xb11f39[_0x20d62d(0x1954)](_0x486461));}),_0x124bcd[_0x5f3248(0x15e4)]=_0xb11f39;});}})['catch'](function(_0x3415fb){const _0x3ed913=_0x433bf6;_0xdb79ab['error']({'title':_0x3415fb[_0x3ed913(0x10b3)]?_0x3ed913(0x575)+_0x3415fb[_0x3ed913(0x10b3)]+_0x3ed913(0x21db)+_0x3415fb[_0x3ed913(0x2115)]:_0x3ed913(0xbfb),'msg':_0x3415fb[_0x3ed913(0x1c52)]?JSON['stringify'](_0x3415fb[_0x3ed913(0x1c52)]):_0x3415fb[_0x3ed913(0x2915)]()});}));function _0x366054(){const _0x363c1b=_0x433bf6;switch(_0x124bcd[_0x363c1b(0x2185)]){case _0x363c1b(0xa66):case'list':return _0x363c1b(0x2145);case _0x363c1b(0x1ad6):{const _0x39537b=[];if(_0x124bcd[_0x363c1b(0x268d)]!=='*'&&_0x124bcd[_0x363c1b(0x268d)]&&_0x124bcd[_0x363c1b(0x196a)]){const _0xc3cb67=(_0x124bcd[_0x363c1b(0x268d)][_0x363c1b(0x48a)]()<0xa?'0':'')+_0x124bcd[_0x363c1b(0x268d)][_0x363c1b(0x48a)]()+':'+((_0x124bcd[_0x363c1b(0x268d)][_0x363c1b(0x1894)]()<0xa?'0':'')+_0x124bcd[_0x363c1b(0x268d)]['getMinutes']()),_0x4b60b4=(_0x124bcd[_0x363c1b(0x196a)][_0x363c1b(0x48a)]()<0xa?'0':'')+_0x124bcd['timeRangeTo']['getHours']()+':'+((_0x124bcd[_0x363c1b(0x196a)][_0x363c1b(0x1894)]()<0xa?'0':'')+_0x124bcd['timeRangeTo'][_0x363c1b(0x1894)]());_0x39537b[_0x363c1b(0x1954)](_0xc3cb67+'-'+_0x4b60b4);}else _0x39537b['push']('*');return _0x124bcd['dayOfWeekFrom']?_0x124bcd[_0x363c1b(0x1297)]?_0x39537b[_0x363c1b(0x1954)](_0x124bcd[_0x363c1b(0xa8e)]+'-'+_0x124bcd[_0x363c1b(0x1297)]):_0x39537b['push'](_0x124bcd[_0x363c1b(0xa8e)]):_0x39537b[_0x363c1b(0x1954)]('*'),_0x124bcd[_0x363c1b(0x1e3)]?_0x124bcd[_0x363c1b(0x15c4)]?_0x39537b[_0x363c1b(0x1954)](_0x124bcd[_0x363c1b(0x1e3)]+'-'+_0x124bcd['monthDayTo']):_0x39537b[_0x363c1b(0x1954)](_0x124bcd[_0x363c1b(0x1e3)]):_0x39537b[_0x363c1b(0x1954)]('*'),_0x124bcd['monthFrom']?_0x124bcd['monthTo']?_0x39537b[_0x363c1b(0x1954)](_0x124bcd[_0x363c1b(0x205f)]+'-'+_0x124bcd['monthTo']):_0x39537b[_0x363c1b(0x1954)](_0x124bcd[_0x363c1b(0x205f)]):_0x39537b[_0x363c1b(0x1954)]('*'),_0x39537b[_0x363c1b(0x9a6)]();}}}function _0x483fc9(){const _0x1b1836=_0x433bf6;_0x124bcd['errors']=[],_0x124bcd['interval'][_0x1b1836(0xcfd)]=_0x366054(),_0x4c0c5e[_0x1b1836(0xcfd)]['save'](_0x124bcd[_0x1b1836(0xcfd)])[_0x1b1836(0x15e7)][_0x1b1836(0x64a)](function(_0x538659){const _0x6d637f=_0x1b1836;_0x124bcd[_0x6d637f(0x15e4)][_0x6d637f(0x1954)](_0x538659),_0xdb79ab['success']({'title':_0x6d637f(0x2864),'msg':_0x124bcd['interval'][_0x6d637f(0x2494)]?_0x124bcd['interval'][_0x6d637f(0x2494)]+_0x6d637f(0x258d):''}),_0x4f9108();})['catch'](function(_0x2ccef1){const _0x4d6295=_0x1b1836;console[_0x4d6295(0x1bd0)](_0x2ccef1),_0x124bcd[_0x4d6295(0xbae)]=_0x2ccef1['data'][_0x4d6295(0xbae)]||[{'message':_0x2ccef1[_0x4d6295(0x2915)](),'type':'api.interval.save'}];});}function _0x25f821(){const _0x19c0de=_0x433bf6;_0x124bcd['errors']=[],_0x124bcd[_0x19c0de(0xcfd)]['interval']=_0x366054(),_0x124bcd[_0x19c0de(0xcfd)][_0x19c0de(0x2081)]?(_0x124bcd['type']!=='list'&&(_0x124bcd[_0x19c0de(0xcfd)]['IntervalId']=null),_0x4f9108(_0x124bcd[_0x19c0de(0xcfd)])):_0x4c0c5e['interval'][_0x19c0de(0x2603)]({'id':_0x124bcd[_0x19c0de(0xcfd)]['id']},_0x124bcd[_0x19c0de(0xcfd)])['$promise'][_0x19c0de(0x64a)](function(_0x4277c5){const _0x247529=_0x19c0de,_0x3645ff=_0x28c606()[_0x247529(0x27bc)](_0x124bcd[_0x247529(0x15e4)],{'id':_0x4277c5['id']});_0x3645ff&&_0x28c606()[_0x247529(0x14fe)](_0x3645ff,_0x4277c5),_0xdb79ab[_0x247529(0x1339)]({'title':_0x247529(0x2896),'msg':_0x247529(0x198)}),_0x4f9108();})[_0x19c0de(0x20cd)](function(_0x2cebe0){const _0x40109e=_0x19c0de;console[_0x40109e(0x1bd0)](_0x2cebe0),_0x124bcd[_0x40109e(0xbae)]=_0x2cebe0['data'][_0x40109e(0xbae)]||[{'message':_0x2cebe0['toString'](),'type':_0x40109e(0x710)}];});}function _0x4f9108(_0x30b7d6){_0x33d114['hide'](_0x30b7d6);}}const _0x26c0d5=_0x4f0513;;_0x500900[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),'faxAccountApp','faxAccount',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'crudPermissions'];function _0x500900(_0x26ae5c,_0x1c59b0,_0x4dd43e,_0x3034cc,_0x2ecf08,_0x57296b,_0x58910e,_0x5bbcf1){const _0xe3e3cb=_0x49a1e3,_0x5efa86=this;_0x5efa86[_0xe3e3cb(0x1d3d)]=_0x58910e['getCurrentUser'](),_0x5efa86[_0xe3e3cb(0xbae)]=[],_0x5efa86[_0xe3e3cb(0x2021)]=_0xe3e3cb(0x128a)+(_0x3034cc[_0xe3e3cb(0x4f4)]||_0x3034cc[_0xe3e3cb(0x16e1)])[_0xe3e3cb(0xa3c)](),_0x5efa86[_0xe3e3cb(0xbb6)]=angular[_0xe3e3cb(0x289e)](_0x3034cc),_0x5efa86[_0xe3e3cb(0x402)]=_0x5bbcf1,_0x5efa86[_0xe3e3cb(0x6c2)]={};if(_0x5efa86['noop'][_0xe3e3cb(0xacb)])switch(_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x4f4)]?_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x4f4)][_0xe3e3cb(0x2554)]():_0x5efa86['noop'][_0xe3e3cb(0x16e1)][_0xe3e3cb(0x2554)]()){case _0xe3e3cb(0x1ad6):break;case _0xe3e3cb(0x1084):{const _0x28d04b=_0x5efa86['noop']['appdata'][_0xe3e3cb(0x282c)](',');_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x2125)]=_0x28d04b[0x0],_0x5efa86['noop'][_0xe3e3cb(0x1cbd)]=_0x28d04b[0x1],_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x31b)]=_0x28d04b['slice'](0x2,_0x28d04b[_0xe3e3cb(0x1b9e)])[_0xe3e3cb(0x9a6)](',');}break;case'dialogflowv2':{const _0x20e6b6=_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0xacb)][_0xe3e3cb(0x282c)](',');_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0xbfd)]=_0x20e6b6[0x0],_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x4b2)]=_0x20e6b6[0x1],_0x5efa86[_0xe3e3cb(0xbb6)]['privateKey']=_0x20e6b6[0x2],_0x5efa86[_0xe3e3cb(0xbb6)]['language']=_0x20e6b6[0x3],_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x31b)]=_0x20e6b6[_0xe3e3cb(0x142e)](0x4,_0x20e6b6['length'])['join'](',');}break;case _0xe3e3cb(0x290d):{const _0x24fd60=_0x5efa86['noop'][_0xe3e3cb(0xacb)][_0xe3e3cb(0x282c)](',');_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x1466)]=_0x24fd60[0x0],_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x1b1)]=_0x24fd60[0x1],_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x17a2)]=_0x24fd60[0x2],_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x2797)]=_0x24fd60[0x3],_0x5efa86['noop'][_0xe3e3cb(0x31b)]=_0x24fd60[_0xe3e3cb(0x142e)](0x4,_0x24fd60[_0xe3e3cb(0x1b9e)])[_0xe3e3cb(0x9a6)](',');}break;case _0xe3e3cb(0x21a9):{const _0x5e1852=_0x5efa86['noop'][_0xe3e3cb(0xacb)][_0xe3e3cb(0x282c)](',');_0x5efa86['noop'][_0xe3e3cb(0x95f)]=isNaN(_0x5e1852[0x0])?_0x5e1852[0x0]:parseInt(_0x5e1852[0x0],0xa),_0x5efa86['noop']['text']=_0x5e1852['slice'](0x1,_0x5e1852[_0xe3e3cb(0x1b9e)])[_0xe3e3cb(0x9a6)](',');}break;case'message':_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x39b)]=_0x5efa86[_0xe3e3cb(0xbb6)]['appdata'];break;case _0xe3e3cb(0x1979):_0x5efa86['noop'][_0xe3e3cb(0x2494)]=_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0xacb)][_0xe3e3cb(0x282c)]('=')[0x0],_0x5efa86[_0xe3e3cb(0xbb6)]['value']=_0x5efa86['noop'][_0xe3e3cb(0xacb)][_0xe3e3cb(0x282c)]('=')[0x1];break;case _0xe3e3cb(0x1e67):_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x1bd9)]=_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0xacb)];break;default:{const _0x313ede=_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0xacb)][_0xe3e3cb(0x282c)](',');_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x1096)]=_0x28c606()[_0xe3e3cb(0x940)](_0x313ede[0x0])?_0x313ede[0x0]:isNaN(_0x313ede[0x0])?_0x313ede[0x0]:parseInt(_0x313ede[0x0],0xa);}break;}else{}_0x5efa86[_0xe3e3cb(0xbb6)]['type']&&_0x5efa86['noop'][_0xe3e3cb(0x2185)][_0xe3e3cb(0x2554)]()===_0xe3e3cb(0xbce)&&_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x4f4)]['toLowerCase']()==='outbounddial'&&(_0x5efa86['noop']['prefix']=_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x267a)]?_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x267a)][_0xe3e3cb(0x282c)]('$')[0x0]:undefined,_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x1a9b)]=_0x5efa86[_0xe3e3cb(0xbb6)][_0xe3e3cb(0x1abe)]?_0xe3e3cb(0x2489)+_0x5efa86[_0xe3e3cb(0xbb6)]['callerID']:undefined);_0x5efa86['saveFaxAccountApp']=_0x3567ef,_0x5efa86[_0xe3e3cb(0x16cb)]=_0x57b96d;function _0x3567ef(){const _0x496c8e=_0xe3e3cb;_0x5efa86[_0x496c8e(0xbae)]=[];const _0xd96be9=[];_0x5efa86[_0x496c8e(0xbb6)]['type']&&_0x5efa86[_0x496c8e(0xbb6)][_0x496c8e(0x2185)]['toLowerCase']()===_0x496c8e(0xbce)&&_0x5efa86[_0x496c8e(0xbb6)]['appType']===_0x496c8e(0x17b6)&&(_0x5efa86[_0x496c8e(0xbb6)][_0x496c8e(0x267a)]=_0x2ecf08[_0x496c8e(0x242b)]?(_0x5efa86[_0x496c8e(0xbb6)]['prefix']||'')+_0x496c8e(0x1a75)+_0x2ecf08['cutdigits']+'}':(_0x5efa86[_0x496c8e(0xbb6)]['prefix']||'')+'${EXTEN}',_0x2ecf08[_0x496c8e(0x1097)]!==_0x496c8e(0x2507)?_0x5efa86['noop']['options'][_0x496c8e(0x1b28)](_0x496c8e(0x13e0))<0x0&&(_0x5efa86[_0x496c8e(0xbb6)][_0x496c8e(0x59e)]+=_0x496c8e(0x13e0)):_0x5efa86[_0x496c8e(0xbb6)][_0x496c8e(0x59e)]=_0x5efa86[_0x496c8e(0xbb6)][_0x496c8e(0x59e)]['replace'](_0x496c8e(0x13e0),''));if(_0x5efa86[_0x496c8e(0xbb6)][_0x496c8e(0x4f4)]&&_0x5efa86[_0x496c8e(0xbb6)][_0x496c8e(0x4f4)]===_0x496c8e(0x1ad6)){}else switch((_0x5efa86[_0x496c8e(0xbb6)][_0x496c8e(0x16e1)]||_0x5efa86[_0x496c8e(0xbb6)]['appType'])['toLowerCase']()){case _0x496c8e(0x1979):_0x5efa86[_0x496c8e(0xbb6)]['appdata']=_0x5efa86[_0x496c8e(0xbb6)][_0x496c8e(0x2494)]+'='+_0x5efa86['noop'][_0x496c8e(0x1096)];break;case _0x496c8e(0x1ad6):break;default:_0xd96be9[0x0]=_0x5efa86['noop']['value'],_0x5efa86[_0x496c8e(0xbb6)][_0x496c8e(0xacb)]=_0xd96be9[_0x496c8e(0x9a6)](',');}_0x57b96d(_0x5efa86[_0x496c8e(0xbb6)]);}function _0x57b96d(_0x1b0e11){const _0x559c4f=_0xe3e3cb;_0x26ae5c[_0x559c4f(0x268e)](_0x1b0e11);}}const _0x44def8=_0x500900;;_0x5b64f8[_0x49a1e3(0x1e73)]=['$mdDialog','$q',_0x49a1e3(0x680),_0x49a1e3(0x11ca),_0x49a1e3(0x549),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x5b64f8(_0x598ce8,_0x5bb120,_0x36d49f,_0x470f29,_0x3141db,_0x515c09,_0x4136bf,_0x37167b){const _0x2b0e8b=_0x49a1e3,_0xd51337=this;_0xd51337[_0x2b0e8b(0x1d3d)]=_0x4136bf[_0x2b0e8b(0x808)](),_0xd51337[_0x2b0e8b(0xbae)]=[],_0xd51337[_0x2b0e8b(0x2021)]=_0x2b0e8b(0x128a)+(_0x470f29['appType']||_0x470f29[_0x2b0e8b(0x16e1)])[_0x2b0e8b(0xa3c)](),_0xd51337[_0x2b0e8b(0x1e4e)]=angular['copy'](_0x470f29),_0xd51337[_0x2b0e8b(0x402)]=_0x37167b,_0xd51337[_0x2b0e8b(0x6c2)]={};if(_0xd51337[_0x2b0e8b(0x1e4e)]['appdata'])switch(_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x4f4)]?_0xd51337[_0x2b0e8b(0x1e4e)]['appType']['toLowerCase']():_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x16e1)][_0x2b0e8b(0x2554)]()){case _0x2b0e8b(0x1ad6):break;case _0x2b0e8b(0x1084):{const _0x5d52c1=_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0xacb)][_0x2b0e8b(0x282c)](',');_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x2125)]=_0x5d52c1[0x0],_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x1cbd)]=_0x5d52c1[0x1],_0xd51337[_0x2b0e8b(0x1e4e)]['welcomemessage']=_0x5d52c1[_0x2b0e8b(0x142e)](0x2,_0x5d52c1[_0x2b0e8b(0x1b9e)])[_0x2b0e8b(0x9a6)](',');}break;case'dialogflowv2':{const _0x40acca=_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0xacb)][_0x2b0e8b(0x282c)](',');_0xd51337['queue']['projectId']=_0x40acca[0x0],_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x4b2)]=_0x40acca[0x1],_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x1b1b)]=_0x40acca[0x2],_0xd51337[_0x2b0e8b(0x1e4e)]['language']=_0x40acca[0x3],_0xd51337['queue'][_0x2b0e8b(0x31b)]=_0x40acca[_0x2b0e8b(0x142e)](0x4,_0x40acca[_0x2b0e8b(0x1b9e)])[_0x2b0e8b(0x9a6)](',');}break;case _0x2b0e8b(0x290d):{const _0x58d2cf=_0xd51337[_0x2b0e8b(0x1e4e)]['appdata']['split'](',');_0xd51337['queue']['accesskeyid']=_0x58d2cf[0x0],_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x1b1)]=_0x58d2cf[0x1],_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x17a2)]=_0x58d2cf[0x2],_0xd51337['queue'][_0x2b0e8b(0x2797)]=_0x58d2cf[0x3],_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x31b)]=_0x58d2cf['slice'](0x4,_0x58d2cf[_0x2b0e8b(0x1b9e)])[_0x2b0e8b(0x9a6)](',');}break;case _0x2b0e8b(0x21a9):{const _0xd232b5=_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0xacb)][_0x2b0e8b(0x282c)](',');_0xd51337[_0x2b0e8b(0x1e4e)]['times']=isNaN(_0xd232b5[0x0])?_0xd232b5[0x0]:parseInt(_0xd232b5[0x0],0xa),_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x39b)]=_0xd232b5[_0x2b0e8b(0x142e)](0x1,_0xd232b5[_0x2b0e8b(0x1b9e)])[_0x2b0e8b(0x9a6)](',');}break;case _0x2b0e8b(0x18ca):_0xd51337[_0x2b0e8b(0x1e4e)]['text']=_0xd51337[_0x2b0e8b(0x1e4e)]['appdata'];break;case _0x2b0e8b(0x1979):_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x2494)]=_0xd51337[_0x2b0e8b(0x1e4e)]['appdata']['split']('=')[0x0],_0xd51337[_0x2b0e8b(0x1e4e)]['value']=_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0xacb)][_0x2b0e8b(0x282c)]('=')[0x1];break;case _0x2b0e8b(0x1e67):_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x1bd9)]=_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0xacb)];break;default:{const _0x8ed454=_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0xacb)][_0x2b0e8b(0x282c)](',');_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x1e4e)]=_0x28c606()[_0x2b0e8b(0x940)](_0x8ed454[0x0])?_0x8ed454[0x0]:isNaN(_0x8ed454[0x0])?_0x8ed454[0x0]:parseInt(_0x8ed454[0x0],0xa),_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x16d)]=_0x28c606()[_0x2b0e8b(0x940)](_0x8ed454[0x1])?_0x8ed454[0x1]:isNaN(_0x8ed454[0x1])?_0x8ed454[0x1]:parseInt(_0x8ed454[0x1],0xa);}break;}else _0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x1e4e)]=0x12c,_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x16d)]=0x12c;_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x2185)]&&_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x2185)][_0x2b0e8b(0x2554)]()===_0x2b0e8b(0xbce)&&_0xd51337['queue']['appType'][_0x2b0e8b(0x2554)]()===_0x2b0e8b(0x20eb)&&(_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x2524)]=_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x267a)]?_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x267a)][_0x2b0e8b(0x282c)]('$')[0x0]:undefined,_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x1a9b)]=_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x1abe)]?_0x2b0e8b(0x2489)+_0xd51337[_0x2b0e8b(0x1e4e)][_0x2b0e8b(0x1abe)]:undefined);_0xd51337[_0x2b0e8b(0x13f1)]=_0x318ca8,_0xd51337[_0x2b0e8b(0x16cb)]=_0x30aa4a,_0x4136bf['hasRole'](_0x2b0e8b(0x333))?_0x515c09[_0x2b0e8b(0xf82)]['get']({'fields':_0x2b0e8b(0x2ba),'sort':_0x2b0e8b(0x2494),'nolimit':_0x2b0e8b(0x1685)})[_0x2b0e8b(0x15e7)][_0x2b0e8b(0x64a)](function(_0xf2c914){const _0x1ecfb8=_0x2b0e8b;_0xd51337[_0x1ecfb8(0x1c06)]=_0xf2c914[_0x1ecfb8(0x28b8)]||[];})['catch'](function(_0x54cc9e){const _0x164a53=_0x2b0e8b;_0x36d49f['error']({'title':_0x54cc9e[_0x164a53(0x10b3)]?_0x164a53(0x575)+_0x54cc9e[_0x164a53(0x10b3)]+'\x20-\x20'+_0x54cc9e[_0x164a53(0x2115)]:_0x164a53(0xe03),'msg':_0x54cc9e[_0x164a53(0x1c52)]?JSON[_0x164a53(0x2317)](_0x54cc9e[_0x164a53(0x1c52)]):_0x54cc9e[_0x164a53(0x2915)]()});}):_0x515c09[_0x2b0e8b(0xf82)]['get']({'fields':_0x2b0e8b(0x2ba),'sort':_0x2b0e8b(0x2494),'nolimit':_0x2b0e8b(0x1685)})[_0x2b0e8b(0x15e7)][_0x2b0e8b(0x64a)](function(_0x380d4c){const _0x7bbc61=_0x2b0e8b;_0xd51337['queues']=_0x380d4c[_0x7bbc61(0x28b8)]||[];})[_0x2b0e8b(0x64a)](function(){const _0x35012e=_0x2b0e8b;return _0x515c09['userProfileSection'][_0x35012e(0x896)]({'userProfileId':_0xd51337[_0x35012e(0x1d3d)][_0x35012e(0x21ac)],'sectionId':0x385})['$promise'];})[_0x2b0e8b(0x64a)](function(_0x10c6ae){const _0x480ebf=_0x2b0e8b,_0x29c82a=_0x10c6ae&&_0x10c6ae['rows']?_0x10c6ae[_0x480ebf(0x28b8)][0x0]:null;if(!_0x29c82a){const _0x1faf7c=[];let _0x2ed070=null;_0xd51337['queue']&&(_0x2ed070=_0x28c606()[_0x480ebf(0x27bc)](_0xd51337['queues'],{'name':_0xd51337['queue'][_0x480ebf(0x1e4e)]}));for(let _0x1863e8=0x0;_0x1863e8<_0xd51337[_0x480ebf(0x1c06)][_0x480ebf(0x1b9e)];_0x1863e8++){_0x2ed070&&_0xd51337['queues'][_0x1863e8]['id']===_0x2ed070['id']&&(_0xd51337[_0x480ebf(0x1c06)][_0x1863e8][_0x480ebf(0xd4f)]=![],_0x1faf7c['push'](_0xd51337[_0x480ebf(0x1c06)][_0x1863e8]));}_0xd51337[_0x480ebf(0x1c06)]=_0x1faf7c;}else{if(!_0x29c82a[_0x480ebf(0x11da)])return _0x515c09['userProfileResource'][_0x480ebf(0x896)]({'sectionId':_0x29c82a['id']})[_0x480ebf(0x15e7)][_0x480ebf(0x64a)](function(_0x2c1ff2){const _0x11ad54=_0x480ebf,_0x50fe6c=_0x28c606()[_0x11ad54(0x1de5)](_0x2c1ff2[_0x11ad54(0x28b8)],function(_0x3ec672){const _0x16e1c4=_0x11ad54;return _0x28c606()['find'](_0xd51337[_0x16e1c4(0x1c06)],{'id':_0x3ec672[_0x16e1c4(0x145)]});});let _0x3f4156=null;_0xd51337['queue']&&(_0x3f4156=_0x28c606()[_0x11ad54(0x27bc)](_0xd51337[_0x11ad54(0x1c06)],{'name':_0xd51337['queue'][_0x11ad54(0x1e4e)]}));if(_0x3f4156&&!_0x28c606()['some'](_0x50fe6c,['id',_0x3f4156['id']])){const _0xebac6c=_0x28c606()[_0x11ad54(0x27bc)](_0xd51337['queues'],{'id':_0x3f4156['id']});_0xebac6c[_0x11ad54(0xd4f)]=![],_0x50fe6c[_0x11ad54(0x1954)](_0xebac6c);}_0xd51337['queues']=_0x50fe6c;});}})[_0x2b0e8b(0x20cd)](function(_0x14d37b){const _0x2c2081=_0x2b0e8b;_0x36d49f[_0x2c2081(0x1bd0)]({'title':_0x14d37b[_0x2c2081(0x10b3)]?'API:'+_0x14d37b[_0x2c2081(0x10b3)]+_0x2c2081(0x21db)+_0x14d37b[_0x2c2081(0x2115)]:'SYSTEM:GETqueues','msg':_0x14d37b['data']?JSON[_0x2c2081(0x2317)](_0x14d37b[_0x2c2081(0x1c52)]):_0x14d37b[_0x2c2081(0x2915)]()});});function _0x318ca8(){const _0x15cef4=_0x2b0e8b;_0xd51337[_0x15cef4(0xbae)]=[];const _0x1913a8=[];_0xd51337[_0x15cef4(0x1e4e)]['type']&&_0xd51337[_0x15cef4(0x1e4e)][_0x15cef4(0x2185)][_0x15cef4(0x2554)]()===_0x15cef4(0xbce)&&_0xd51337[_0x15cef4(0x1e4e)][_0x15cef4(0x4f4)]==='outboundDial'&&(_0xd51337['queue']['phone']=_0x3141db['cutdigits']?(_0xd51337['queue']['prefix']||'')+_0x15cef4(0x1a75)+_0x3141db[_0x15cef4(0x242b)]+'}':(_0xd51337[_0x15cef4(0x1e4e)][_0x15cef4(0x2524)]||'')+'${EXTEN}',_0x3141db[_0x15cef4(0x1097)]!==_0x15cef4(0x2507)?_0xd51337[_0x15cef4(0x1e4e)][_0x15cef4(0x59e)][_0x15cef4(0x1b28)](_0x15cef4(0x13e0))<0x0&&(_0xd51337[_0x15cef4(0x1e4e)][_0x15cef4(0x59e)]+='U(xcally-mixmonitor-context)'):_0xd51337[_0x15cef4(0x1e4e)]['options']=_0xd51337[_0x15cef4(0x1e4e)]['options'][_0x15cef4(0x1353)](_0x15cef4(0x13e0),''));const _0x5d6a5e=_0x28c606()['find'](_0xd51337[_0x15cef4(0x1c06)],{'name':_0xd51337['queue'][_0x15cef4(0x1e4e)]});_0x5d6a5e&&(_0xd51337['queue'][_0x28c606()[_0x15cef4(0xd56)](_0x15cef4(0x1d37))+_0x15cef4(0x1fe9)]=_0x5d6a5e['id']);if(_0xd51337[_0x15cef4(0x1e4e)][_0x15cef4(0x4f4)]&&_0xd51337[_0x15cef4(0x1e4e)][_0x15cef4(0x4f4)]===_0x15cef4(0x1ad6)){}else switch((_0xd51337[_0x15cef4(0x1e4e)]['app']||_0xd51337[_0x15cef4(0x1e4e)]['appType'])[_0x15cef4(0x2554)]()){case _0x15cef4(0x1979):_0xd51337[_0x15cef4(0x1e4e)]['appdata']=_0xd51337[_0x15cef4(0x1e4e)]['name']+'='+_0xd51337[_0x15cef4(0x1e4e)]['value'];break;case _0x15cef4(0x1ad6):break;default:_0x1913a8[0x0]=_0xd51337[_0x15cef4(0x1e4e)][_0x15cef4(0x1e4e)],_0x1913a8[0x1]=_0xd51337['queue']['timeout'],_0xd51337[_0x15cef4(0x1e4e)][_0x15cef4(0xacb)]=_0x1913a8['join'](',');}_0x30aa4a(_0xd51337[_0x15cef4(0x1e4e)]);}function _0x30aa4a(_0x1c2b93){_0x598ce8['hide'](_0x1c2b93);}}const _0x6e0b2=_0x5b64f8;;_0x358ec1[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),'faxAccountApp','faxAccount','api',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x358ec1(_0x229a6b,_0x405d79,_0x588791,_0x470ce8,_0x246674,_0x5564a5,_0x4c2a9f,_0x17feff){const _0x3b3531=_0x49a1e3,_0x39a3e7=this;_0x39a3e7[_0x3b3531(0x1d3d)]=_0x4c2a9f[_0x3b3531(0x808)](),_0x39a3e7[_0x3b3531(0xbae)]=[],_0x39a3e7[_0x3b3531(0x2021)]=_0x3b3531(0x128a)+(_0x470ce8['appType']||_0x470ce8[_0x3b3531(0x16e1)])[_0x3b3531(0xa3c)](),_0x39a3e7['system']=angular[_0x3b3531(0x289e)](_0x470ce8),_0x39a3e7['crudPermissions']=_0x17feff,_0x39a3e7[_0x3b3531(0x6c2)]={};if(_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0xacb)])switch(_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x4f4)]?_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x4f4)]['toLowerCase']():_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x16e1)]['toLowerCase']()){case'custom':break;case _0x3b3531(0x1084):{const _0x154d2b=_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0xacb)][_0x3b3531(0x282c)](',');_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x2125)]=_0x154d2b[0x0],_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x1cbd)]=_0x154d2b[0x1],_0x39a3e7['system'][_0x3b3531(0x31b)]=_0x154d2b['slice'](0x2,_0x154d2b[_0x3b3531(0x1b9e)])['join'](',');}break;case _0x3b3531(0x1b1a):{const _0x1bb245=_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0xacb)][_0x3b3531(0x282c)](',');_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0xbfd)]=_0x1bb245[0x0],_0x39a3e7['system'][_0x3b3531(0x4b2)]=_0x1bb245[0x1],_0x39a3e7['system'][_0x3b3531(0x1b1b)]=_0x1bb245[0x2],_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x1cbd)]=_0x1bb245[0x3],_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x31b)]=_0x1bb245[_0x3b3531(0x142e)](0x4,_0x1bb245[_0x3b3531(0x1b9e)])[_0x3b3531(0x9a6)](',');}break;case'amazonlex':{const _0x1f6fe3=_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0xacb)][_0x3b3531(0x282c)](',');_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x1466)]=_0x1f6fe3[0x0],_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x1b1)]=_0x1f6fe3[0x1],_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x17a2)]=_0x1f6fe3[0x2],_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x2797)]=_0x1f6fe3[0x3],_0x39a3e7[_0x3b3531(0x1f06)]['welcomemessage']=_0x1f6fe3[_0x3b3531(0x142e)](0x4,_0x1f6fe3[_0x3b3531(0x1b9e)])[_0x3b3531(0x9a6)](',');}break;case _0x3b3531(0x21a9):{const _0x142d90=_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0xacb)]['split'](',');_0x39a3e7[_0x3b3531(0x1f06)]['times']=isNaN(_0x142d90[0x0])?_0x142d90[0x0]:parseInt(_0x142d90[0x0],0xa),_0x39a3e7['system'][_0x3b3531(0x39b)]=_0x142d90[_0x3b3531(0x142e)](0x1,_0x142d90['length'])['join'](',');}break;case _0x3b3531(0x18ca):_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x39b)]=_0x39a3e7[_0x3b3531(0x1f06)]['appdata'];break;case _0x3b3531(0x1979):_0x39a3e7['system']['name']=_0x39a3e7[_0x3b3531(0x1f06)]['appdata']['split']('=')[0x0],_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x1096)]=_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0xacb)][_0x3b3531(0x282c)]('=')[0x1];break;case'agi':_0x39a3e7['system']['project']=_0x39a3e7[_0x3b3531(0x1f06)]['appdata'];break;default:{const _0x1d4586=_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0xacb)][_0x3b3531(0x282c)](',');_0x39a3e7[_0x3b3531(0x1f06)]['command']=_0x28c606()[_0x3b3531(0x940)](_0x1d4586[0x0])?_0x1d4586[0x0]:isNaN(_0x1d4586[0x0])?_0x1d4586[0x0]:parseInt(_0x1d4586[0x0],0xa),_0x39a3e7[_0x3b3531(0x1f06)]['variable']=_0x28c606()[_0x3b3531(0x940)](_0x1d4586[0x1])?_0x1d4586[0x1]:isNaN(_0x1d4586[0x1])?_0x1d4586[0x1]:parseInt(_0x1d4586[0x1],0xa);}}else _0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0xefb)]='';_0x39a3e7['system'][_0x3b3531(0x2185)]&&_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x2185)][_0x3b3531(0x2554)]()===_0x3b3531(0xbce)&&_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x4f4)][_0x3b3531(0x2554)]()===_0x3b3531(0x20eb)&&(_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x2524)]=_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x267a)]?_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x267a)][_0x3b3531(0x282c)]('$')[0x0]:undefined,_0x39a3e7[_0x3b3531(0x1f06)]['callerId']=_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x1abe)]?_0x3b3531(0x2489)+_0x39a3e7[_0x3b3531(0x1f06)][_0x3b3531(0x1abe)]:undefined);_0x39a3e7['saveFaxAccountApp']=_0xab2090,_0x39a3e7[_0x3b3531(0x16cb)]=_0x4b7034,_0x4c2a9f[_0x3b3531(0x4de)](_0x3b3531(0x333))?_0x5564a5[_0x3b3531(0xefb)]['get']({'fields':_0x3b3531(0x1427),'sort':_0x3b3531(0x2494),'nolimit':_0x3b3531(0x1685)})['$promise'][_0x3b3531(0x64a)](function(_0x18623a){const _0x5cff72=_0x3b3531;_0x39a3e7[_0x5cff72(0x145c)]=_0x18623a[_0x5cff72(0x28b8)]||[];})[_0x3b3531(0x20cd)](function(_0x1a59cb){const _0x317cd2=_0x3b3531;_0x588791[_0x317cd2(0x1bd0)]({'title':_0x1a59cb[_0x317cd2(0x10b3)]?'API:'+_0x1a59cb[_0x317cd2(0x10b3)]+'\x20-\x20'+_0x1a59cb[_0x317cd2(0x2115)]:_0x317cd2(0x1cf6),'msg':_0x1a59cb[_0x317cd2(0x1c52)]?JSON[_0x317cd2(0x2317)](_0x1a59cb[_0x317cd2(0x1c52)]):_0x1a59cb['toString']()});}):_0x5564a5[_0x3b3531(0xefb)][_0x3b3531(0x896)]({'fields':_0x3b3531(0x1427),'sort':_0x3b3531(0x2494),'nolimit':_0x3b3531(0x1685)})['$promise'][_0x3b3531(0x64a)](function(_0xd49ee){const _0xb0c098=_0x3b3531;_0x39a3e7[_0xb0c098(0x145c)]=_0xd49ee['rows']||[];})[_0x3b3531(0x64a)](function(){const _0x4edf47=_0x3b3531;return _0x5564a5['userProfileSection'][_0x4edf47(0x896)]({'userProfileId':_0x39a3e7['currentUser']['userProfileId'],'sectionId':0x3f4})[_0x4edf47(0x15e7)];})[_0x3b3531(0x64a)](function(_0x5ddd36){const _0x1d3c49=_0x3b3531,_0x1fafdf=_0x5ddd36&&_0x5ddd36[_0x1d3c49(0x28b8)]?_0x5ddd36[_0x1d3c49(0x28b8)][0x0]:null;if(!_0x1fafdf){const _0x4acb09=[];let _0x4ab1de=null;_0x39a3e7[_0x1d3c49(0x1f06)]&&(_0x4ab1de=_0x28c606()[_0x1d3c49(0x27bc)](_0x39a3e7[_0x1d3c49(0x145c)],{'name':_0x39a3e7[_0x1d3c49(0x1f06)][_0x1d3c49(0xefb)]}));for(let _0x4a7ad9=0x0;_0x4a7ad9<_0x39a3e7[_0x1d3c49(0x145c)][_0x1d3c49(0x1b9e)];_0x4a7ad9++){_0x4ab1de&&_0x39a3e7[_0x1d3c49(0x145c)][_0x4a7ad9]['id']===_0x4ab1de['id']&&(_0x39a3e7[_0x1d3c49(0x145c)][_0x4a7ad9][_0x1d3c49(0xd4f)]=![],_0x4acb09[_0x1d3c49(0x1954)](_0x39a3e7[_0x1d3c49(0x145c)][_0x4a7ad9]));}_0x39a3e7[_0x1d3c49(0x145c)]=_0x4acb09;}else{if(!_0x1fafdf[_0x1d3c49(0x11da)])return _0x5564a5['userProfileResource'][_0x1d3c49(0x896)]({'sectionId':_0x1fafdf['id']})[_0x1d3c49(0x15e7)][_0x1d3c49(0x64a)](function(_0x4f353c){const _0x29f35e=_0x1d3c49,_0x3d8256=_0x28c606()[_0x29f35e(0x1de5)](_0x4f353c[_0x29f35e(0x28b8)],function(_0x2842ef){const _0x3e7ee6=_0x29f35e;return _0x28c606()[_0x3e7ee6(0x27bc)](_0x39a3e7[_0x3e7ee6(0x145c)],{'id':_0x2842ef['resourceId']});});let _0x58e7c2=null;_0x39a3e7[_0x29f35e(0x1f06)]&&(_0x58e7c2=_0x28c606()[_0x29f35e(0x27bc)](_0x39a3e7[_0x29f35e(0x145c)],{'name':_0x39a3e7[_0x29f35e(0x1f06)][_0x29f35e(0xefb)]}));if(_0x58e7c2&&!_0x28c606()[_0x29f35e(0x25f8)](_0x3d8256,['id',_0x58e7c2['id']])){const _0x1b76c3=_0x28c606()[_0x29f35e(0x27bc)](_0x39a3e7['variables'],{'id':_0x58e7c2['id']});_0x1b76c3[_0x29f35e(0xd4f)]=![],_0x3d8256[_0x29f35e(0x1954)](_0x1b76c3);}_0x39a3e7[_0x29f35e(0x145c)]=_0x3d8256;});}})[_0x3b3531(0x20cd)](function(_0x32e2e5){const _0x499ed1=_0x3b3531;_0x588791[_0x499ed1(0x1bd0)]({'title':_0x32e2e5[_0x499ed1(0x10b3)]?_0x499ed1(0x575)+_0x32e2e5[_0x499ed1(0x10b3)]+_0x499ed1(0x21db)+_0x32e2e5['statusText']:_0x499ed1(0x284a),'msg':_0x32e2e5[_0x499ed1(0x1c52)]?JSON[_0x499ed1(0x2317)](_0x32e2e5[_0x499ed1(0x1c52)]):_0x32e2e5[_0x499ed1(0x2915)]()});});function _0xab2090(){const _0x52a9b4=_0x3b3531;_0x39a3e7[_0x52a9b4(0xbae)]=[];const _0x8f9972=[];_0x39a3e7[_0x52a9b4(0x1f06)][_0x52a9b4(0x2185)]&&_0x39a3e7[_0x52a9b4(0x1f06)][_0x52a9b4(0x2185)][_0x52a9b4(0x2554)]()===_0x52a9b4(0xbce)&&_0x39a3e7['system'][_0x52a9b4(0x4f4)]===_0x52a9b4(0x17b6)&&(_0x39a3e7['system'][_0x52a9b4(0x267a)]=_0x246674[_0x52a9b4(0x242b)]?(_0x39a3e7[_0x52a9b4(0x1f06)]['prefix']||'')+_0x52a9b4(0x1a75)+_0x246674[_0x52a9b4(0x242b)]+'}':(_0x39a3e7['system'][_0x52a9b4(0x2524)]||'')+_0x52a9b4(0x5ad),_0x246674[_0x52a9b4(0x1097)]!==_0x52a9b4(0x2507)?_0x39a3e7['system'][_0x52a9b4(0x59e)]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x39a3e7[_0x52a9b4(0x1f06)][_0x52a9b4(0x59e)]+=_0x52a9b4(0x13e0)):_0x39a3e7[_0x52a9b4(0x1f06)]['options']=_0x39a3e7['system']['options'][_0x52a9b4(0x1353)](_0x52a9b4(0x13e0),''));if(_0x39a3e7['system'][_0x52a9b4(0x4f4)]&&_0x39a3e7[_0x52a9b4(0x1f06)][_0x52a9b4(0x4f4)]===_0x52a9b4(0x1ad6)){}else switch((_0x39a3e7[_0x52a9b4(0x1f06)][_0x52a9b4(0x16e1)]||_0x39a3e7[_0x52a9b4(0x1f06)][_0x52a9b4(0x4f4)])[_0x52a9b4(0x2554)]()){case'set':_0x39a3e7[_0x52a9b4(0x1f06)]['appdata']=_0x39a3e7[_0x52a9b4(0x1f06)][_0x52a9b4(0x2494)]+'='+_0x39a3e7['system']['value'];break;case _0x52a9b4(0x1ad6):break;default:_0x8f9972[0x0]=_0x39a3e7['system'][_0x52a9b4(0xf42)],_0x8f9972[0x1]=_0x39a3e7[_0x52a9b4(0x1f06)][_0x52a9b4(0xefb)],_0x39a3e7['system'][_0x52a9b4(0xacb)]=_0x8f9972[_0x52a9b4(0x9a6)](',');}_0x4b7034(_0x39a3e7[_0x52a9b4(0x1f06)]);}function _0x4b7034(_0x2b9b14){_0x229a6b['hide'](_0x2b9b14);}}const _0x34e89e=_0x358ec1;;_0x35e5ea[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0x11ca),_0x49a1e3(0x549),'api','Auth','crudPermissions'];function _0x35e5ea(_0x130822,_0x2652c4,_0x5dc4b1,_0x10c125,_0x2fb871,_0x3f9713,_0x579c17,_0x21ad27){const _0x44f006=_0x49a1e3,_0xedee74=this;_0xedee74[_0x44f006(0x1d3d)]=_0x579c17['getCurrentUser'](),_0xedee74[_0x44f006(0xbae)]=[],_0xedee74['title']=_0x44f006(0x128a)+(_0x10c125[_0x44f006(0x4f4)]||_0x10c125[_0x44f006(0x16e1)])[_0x44f006(0xa3c)](),_0xedee74[_0x44f006(0xac8)]=angular['copy'](_0x10c125),_0xedee74[_0x44f006(0x402)]=_0x21ad27,_0xedee74[_0x44f006(0x6c2)]={};if(_0xedee74['tag'][_0x44f006(0xacb)])switch(_0xedee74[_0x44f006(0xac8)][_0x44f006(0x4f4)]?_0xedee74['tag'][_0x44f006(0x4f4)][_0x44f006(0x2554)]():_0xedee74['tag'][_0x44f006(0x16e1)][_0x44f006(0x2554)]()){case _0x44f006(0x1ad6):break;case'dialogflow':{const _0x27778d=_0xedee74[_0x44f006(0xac8)][_0x44f006(0xacb)]['split'](',');_0xedee74[_0x44f006(0xac8)]['key']=_0x27778d[0x0],_0xedee74[_0x44f006(0xac8)]['language']=_0x27778d[0x1],_0xedee74['tag'][_0x44f006(0x31b)]=_0x27778d[_0x44f006(0x142e)](0x2,_0x27778d[_0x44f006(0x1b9e)])[_0x44f006(0x9a6)](',');}break;case _0x44f006(0x1b1a):{const _0x99d3a6=_0xedee74[_0x44f006(0xac8)][_0x44f006(0xacb)]['split'](',');_0xedee74['tag'][_0x44f006(0xbfd)]=_0x99d3a6[0x0],_0xedee74[_0x44f006(0xac8)]['clientEmail']=_0x99d3a6[0x1],_0xedee74['tag'][_0x44f006(0x1b1b)]=_0x99d3a6[0x2],_0xedee74['tag'][_0x44f006(0x1cbd)]=_0x99d3a6[0x3],_0xedee74[_0x44f006(0xac8)][_0x44f006(0x31b)]=_0x99d3a6['slice'](0x4,_0x99d3a6[_0x44f006(0x1b9e)])[_0x44f006(0x9a6)](',');}break;case _0x44f006(0x290d):{const _0x3bb44e=_0xedee74[_0x44f006(0xac8)][_0x44f006(0xacb)][_0x44f006(0x282c)](',');_0xedee74['tag']['accesskeyid']=_0x3bb44e[0x0],_0xedee74['tag'][_0x44f006(0x1b1)]=_0x3bb44e[0x1],_0xedee74[_0x44f006(0xac8)]['lexregion']=_0x3bb44e[0x2],_0xedee74[_0x44f006(0xac8)]['botname']=_0x3bb44e[0x3],_0xedee74[_0x44f006(0xac8)]['welcomemessage']=_0x3bb44e[_0x44f006(0x142e)](0x4,_0x3bb44e['length'])[_0x44f006(0x9a6)](',');}break;case _0x44f006(0x21a9):{const _0x19a6fc=_0xedee74[_0x44f006(0xac8)][_0x44f006(0xacb)]['split'](',');_0xedee74[_0x44f006(0xac8)][_0x44f006(0x95f)]=isNaN(_0x19a6fc[0x0])?_0x19a6fc[0x0]:parseInt(_0x19a6fc[0x0],0xa),_0xedee74[_0x44f006(0xac8)]['text']=_0x19a6fc[_0x44f006(0x142e)](0x1,_0x19a6fc['length'])[_0x44f006(0x9a6)](',');}break;case'message':_0xedee74[_0x44f006(0xac8)]['text']=_0xedee74[_0x44f006(0xac8)][_0x44f006(0xacb)];break;case _0x44f006(0x1979):_0xedee74[_0x44f006(0xac8)][_0x44f006(0x2494)]=_0xedee74[_0x44f006(0xac8)][_0x44f006(0xacb)][_0x44f006(0x282c)]('=')[0x0],_0xedee74[_0x44f006(0xac8)][_0x44f006(0x1096)]=_0xedee74[_0x44f006(0xac8)][_0x44f006(0xacb)]['split']('=')[0x1];break;case'agi':_0xedee74[_0x44f006(0xac8)]['project']=_0xedee74['tag'][_0x44f006(0xacb)];break;default:{const _0x2a9747=_0xedee74[_0x44f006(0xac8)][_0x44f006(0xacb)][_0x44f006(0x282c)](',');_0xedee74['tag'][_0x44f006(0xac8)]=_0x28c606()[_0x44f006(0x940)](_0x2a9747[0x0])?_0x2a9747[0x0]:isNaN(_0x2a9747[0x0])?_0x2a9747[0x0]:parseInt(_0x2a9747[0x0],0xa);}break;}else{}_0xedee74[_0x44f006(0xac8)][_0x44f006(0x2185)]&&_0xedee74[_0x44f006(0xac8)][_0x44f006(0x2185)]['toLowerCase']()===_0x44f006(0xbce)&&_0xedee74[_0x44f006(0xac8)][_0x44f006(0x4f4)][_0x44f006(0x2554)]()===_0x44f006(0x20eb)&&(_0xedee74[_0x44f006(0xac8)]['prefix']=_0xedee74[_0x44f006(0xac8)][_0x44f006(0x267a)]?_0xedee74['tag']['phone']['split']('$')[0x0]:undefined,_0xedee74[_0x44f006(0xac8)][_0x44f006(0x1a9b)]=_0xedee74[_0x44f006(0xac8)]['callerID']?'CALLERID(all)='+_0xedee74[_0x44f006(0xac8)]['callerID']:undefined);_0xedee74[_0x44f006(0x13f1)]=_0x4146fb,_0xedee74[_0x44f006(0x16cb)]=_0x3761fb,_0x579c17[_0x44f006(0x4de)](_0x44f006(0x333))?_0x3f9713[_0x44f006(0xac8)]['get']({'fields':_0x44f006(0x1427),'sort':_0x44f006(0x2494),'nolimit':_0x44f006(0x1685)})[_0x44f006(0x15e7)][_0x44f006(0x64a)](function(_0x74c310){const _0x4ea071=_0x44f006;_0xedee74[_0x4ea071(0x16a6)]=_0x74c310[_0x4ea071(0x28b8)]||[];})[_0x44f006(0x20cd)](function(_0x262988){const _0x12f37a=_0x44f006;_0x5dc4b1['error']({'title':_0x262988[_0x12f37a(0x10b3)]?_0x12f37a(0x575)+_0x262988[_0x12f37a(0x10b3)]+'\x20-\x20'+_0x262988['statusText']:'SYSTEM:GET_TAGS','msg':_0x262988[_0x12f37a(0x1c52)]?JSON['stringify'](_0x262988['data']):_0x262988[_0x12f37a(0x2915)]()});}):_0x3f9713['tag'][_0x44f006(0x896)]({'fields':_0x44f006(0x1427),'sort':'name','nolimit':'true'})[_0x44f006(0x15e7)][_0x44f006(0x64a)](function(_0x5e58e0){const _0x1fb946=_0x44f006;_0xedee74['tags']=_0x5e58e0[_0x1fb946(0x28b8)]||[];})[_0x44f006(0x64a)](function(){const _0x2b79b9=_0x44f006;return _0x3f9713['userProfileSection'][_0x2b79b9(0x896)]({'userProfileId':_0xedee74[_0x2b79b9(0x1d3d)][_0x2b79b9(0x21ac)],'sectionId':0x3f0})[_0x2b79b9(0x15e7)];})[_0x44f006(0x64a)](function(_0x49111d){const _0x2c80a5=_0x44f006,_0x2fe78c=_0x49111d&&_0x49111d[_0x2c80a5(0x28b8)]?_0x49111d[_0x2c80a5(0x28b8)][0x0]:null;if(!_0x2fe78c){const _0x16ec0c=[];let _0x4a4df2=null;_0xedee74[_0x2c80a5(0xac8)]&&(_0x4a4df2=_0x28c606()[_0x2c80a5(0x27bc)](_0xedee74['tags'],{'name':_0xedee74[_0x2c80a5(0xac8)]['tag']}));for(let _0x56dd33=0x0;_0x56dd33<_0xedee74[_0x2c80a5(0x16a6)][_0x2c80a5(0x1b9e)];_0x56dd33++){_0x4a4df2&&_0xedee74['tags'][_0x56dd33]['id']===_0x4a4df2['id']&&(_0xedee74[_0x2c80a5(0x16a6)][_0x56dd33][_0x2c80a5(0xd4f)]=![],_0x16ec0c[_0x2c80a5(0x1954)](_0xedee74[_0x2c80a5(0x16a6)][_0x56dd33]));}_0xedee74[_0x2c80a5(0x16a6)]=_0x16ec0c;}else{if(!_0x2fe78c[_0x2c80a5(0x11da)])return _0x3f9713['userProfileResource'][_0x2c80a5(0x896)]({'sectionId':_0x2fe78c['id']})['$promise'][_0x2c80a5(0x64a)](function(_0x9422d0){const _0x458c39=_0x2c80a5,_0x59c809=_0x28c606()[_0x458c39(0x1de5)](_0x9422d0[_0x458c39(0x28b8)],function(_0xb77496){const _0x33c9c4=_0x458c39;return _0x28c606()[_0x33c9c4(0x27bc)](_0xedee74[_0x33c9c4(0x16a6)],{'id':_0xb77496[_0x33c9c4(0x145)]});});let _0x53b597=null;_0xedee74[_0x458c39(0xac8)]&&(_0x53b597=_0x28c606()[_0x458c39(0x27bc)](_0xedee74[_0x458c39(0x16a6)],{'name':_0xedee74[_0x458c39(0xac8)]['tag']}));if(_0x53b597&&!_0x28c606()[_0x458c39(0x25f8)](_0x59c809,['id',_0x53b597['id']])){const _0x589528=_0x28c606()[_0x458c39(0x27bc)](_0xedee74[_0x458c39(0x16a6)],{'id':_0x53b597['id']});_0x589528['canSelect']=![],_0x59c809[_0x458c39(0x1954)](_0x589528);}_0xedee74['tags']=_0x59c809;});}})[_0x44f006(0x20cd)](function(_0x541ee7){const _0x1e9061=_0x44f006;_0x5dc4b1['error']({'title':_0x541ee7['status']?_0x1e9061(0x575)+_0x541ee7[_0x1e9061(0x10b3)]+_0x1e9061(0x21db)+_0x541ee7[_0x1e9061(0x2115)]:'SYSTEM:GETtags','msg':_0x541ee7[_0x1e9061(0x1c52)]?JSON[_0x1e9061(0x2317)](_0x541ee7[_0x1e9061(0x1c52)]):_0x541ee7[_0x1e9061(0x2915)]()});});function _0x4146fb(){const _0x19a634=_0x44f006;_0xedee74[_0x19a634(0xbae)]=[];const _0x3d92a5=[];_0xedee74[_0x19a634(0xac8)][_0x19a634(0x2185)]&&_0xedee74[_0x19a634(0xac8)]['type'][_0x19a634(0x2554)]()===_0x19a634(0xbce)&&_0xedee74[_0x19a634(0xac8)][_0x19a634(0x4f4)]==='outboundDial'&&(_0xedee74[_0x19a634(0xac8)][_0x19a634(0x267a)]=_0x2fb871[_0x19a634(0x242b)]?(_0xedee74[_0x19a634(0xac8)][_0x19a634(0x2524)]||'')+_0x19a634(0x1a75)+_0x2fb871[_0x19a634(0x242b)]+'}':(_0xedee74[_0x19a634(0xac8)]['prefix']||'')+_0x19a634(0x5ad),_0x2fb871[_0x19a634(0x1097)]!==_0x19a634(0x2507)?_0xedee74[_0x19a634(0xac8)][_0x19a634(0x59e)][_0x19a634(0x1b28)](_0x19a634(0x13e0))<0x0&&(_0xedee74[_0x19a634(0xac8)][_0x19a634(0x59e)]+='U(xcally-mixmonitor-context)'):_0xedee74[_0x19a634(0xac8)][_0x19a634(0x59e)]=_0xedee74[_0x19a634(0xac8)]['options'][_0x19a634(0x1353)](_0x19a634(0x13e0),''));const _0x18a4a4=_0x28c606()['find'](_0xedee74[_0x19a634(0x16a6)],{'name':_0xedee74['tag']['tag']});_0x18a4a4&&(_0xedee74[_0x19a634(0xac8)]['TagId']=_0x18a4a4['id']);if(_0xedee74[_0x19a634(0xac8)][_0x19a634(0x4f4)]&&_0xedee74['tag'][_0x19a634(0x4f4)]===_0x19a634(0x1ad6)){}else switch((_0xedee74[_0x19a634(0xac8)]['app']||_0xedee74[_0x19a634(0xac8)][_0x19a634(0x4f4)])['toLowerCase']()){case _0x19a634(0x1979):_0xedee74[_0x19a634(0xac8)][_0x19a634(0xacb)]=_0xedee74[_0x19a634(0xac8)][_0x19a634(0x2494)]+'='+_0xedee74[_0x19a634(0xac8)][_0x19a634(0x1096)];break;case _0x19a634(0x1ad6):break;default:_0x3d92a5[0x0]=_0xedee74['tag'][_0x19a634(0xac8)],_0xedee74[_0x19a634(0xac8)][_0x19a634(0xacb)]=_0x3d92a5[_0x19a634(0x9a6)](',');}_0x3761fb(_0xedee74[_0x19a634(0xac8)]);}function _0x3761fb(_0x55010e){const _0xe7f873=_0x44f006;_0x130822[_0xe7f873(0x268e)](_0x55010e);}}const _0x18914d=_0x35e5ea;;_0x428cde[_0x49a1e3(0x1e73)]=['$scope','$window',_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),'$document',_0x49a1e3(0x20d4),'$translate','api',_0x49a1e3(0x680),'Auth'];function _0x428cde(_0x40c846,_0x1050f8,_0x634710,_0x5af87f,_0x25d243,_0x352867,_0x250e39,_0x456a05,_0x101513,_0x171739,_0x476ad9){const _0xe8bb88=_0x49a1e3,_0x5f2e31=this;_0x5f2e31[_0xe8bb88(0x1d3d)]=_0x476ad9[_0xe8bb88(0x808)](),_0x5f2e31['dispositions']={'count':0x0,'rows':[]},_0x5f2e31['selectedDispositions']=[],_0x5f2e31[_0xe8bb88(0x402)],_0x5f2e31[_0xe8bb88(0x20c7)]={'first':'1st','second':_0xe8bb88(0x255e),'third':'3rd'},_0x5f2e31[_0xe8bb88(0x289a)]={'fields':_0xe8bb88(0x12ce),'sort':_0xe8bb88(0x260c),'limit':0xa,'page':0x1},_0x5f2e31['init']=_0x15b094,_0x5f2e31['deleteConfirm']=_0xdd3272,_0x5f2e31[_0xe8bb88(0x1339)]=_0x28d7ae,_0x5f2e31[_0xe8bb88(0xe50)]=_0x545f43,_0x5f2e31[_0xe8bb88(0x22cb)]=_0x23f4e6,_0x5f2e31[_0xe8bb88(0x17f6)]=_0x2c2f4f,_0x5f2e31[_0xe8bb88(0x28e3)]=_0x206add,_0x5f2e31[_0xe8bb88(0x1d1e)]=_0xd366d8,_0x5f2e31[_0xe8bb88(0x159)]=_0xb1644c,_0x5f2e31[_0xe8bb88(0x2984)]=_0x45a744;function _0x15b094(_0x41ae10,_0x52deae){const _0x4595a3=_0xe8bb88;_0x5f2e31['faxAccount']=_0x41ae10||{},_0x5f2e31[_0x4595a3(0x402)]=typeof _0x52deae!==_0x4595a3(0x19a1)?_0x52deae:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5f2e31['query'][_0x4595a3(0x1da3)]=_0x5f2e31['faxAccount']['id'],_0x5f2e31[_0x4595a3(0x289a)]['id']=_0x5f2e31[_0x4595a3(0x549)]['id'],_0x545f43();}function _0x23f4e6(_0x5c902c,_0x497ef7){const _0xfc0813=_0xe8bb88;_0x25d243[_0xfc0813(0xa60)]({'controller':_0xfc0813(0xf48),'controllerAs':'vm','templateUrl':_0x482291,'parent':angular['element'](_0x352867[_0xfc0813(0xb49)]),'targetEvent':_0x5c902c,'clickOutsideToClose':!![],'locals':{'disposition':_0x497ef7,'model':{'id':_0x5f2e31[_0xfc0813(0x549)]['id'],'field':'FaxAccountId','route':_0xfc0813(0x549)},'license':null,'setting':null,'crudPermissions':_0x5f2e31['crudPermissions']}})['then'](function(_0x15a500){if(_0x15a500)_0x545f43();});}function _0xdd3272(_0x5acdef,_0x4a1b2b){const _0x54fb42=_0xe8bb88,_0x177666=_0x28c606()[_0x54fb42(0x25f8)](_0x5f2e31[_0x54fb42(0x16d7)]['rows'],[_0x54fb42(0xbb9),_0x5acdef['id']]),_0x4f4093=_0x25d243[_0x54fb42(0x856)]()[_0x54fb42(0x2021)](_0x456a05[_0x54fb42(0x2292)](_0x54fb42(0x13a7)))[_0x54fb42(0x12b8)](_0x456a05['instant'](_0x54fb42(0x2213)+(_0x177666?_0x54fb42(0x1be):_0x54fb42(0x1942)),{'name':_0x5acdef['name']}))[_0x54fb42(0x213e)](_0x54fb42(0xc2c))[_0x54fb42(0x2283)](_0x4a1b2b)['ok']('OK')[_0x54fb42(0x101a)](_0x456a05['instant'](_0x54fb42(0x4f5)));_0x25d243[_0x54fb42(0xa60)](_0x4f4093)[_0x54fb42(0x64a)](function(){_0x2c2f4f(_0x5acdef);});}function _0x28d7ae(_0x24bbe6){const _0x102405=_0xe8bb88;_0x5f2e31[_0x102405(0x16d7)]=_0x24bbe6||{'count':0x0,'rows':[]};}function _0x545f43(){const _0x479cb3=_0xe8bb88;_0x5f2e31['query'][_0x479cb3(0x24f9)]=(_0x5f2e31[_0x479cb3(0x289a)]['page']-0x1)*_0x5f2e31['query']['limit'],_0x5f2e31[_0x479cb3(0x1713)]=_0x101513[_0x479cb3(0x549)]['getDispositions'](_0x5f2e31[_0x479cb3(0x289a)],_0x28d7ae)[_0x479cb3(0x15e7)];}function _0x2c2f4f(_0x31163a){const _0x15e204=_0xe8bb88;_0x101513[_0x15e204(0x168b)][_0x15e204(0xabd)]({'id':_0x31163a['id']})[_0x15e204(0x15e7)][_0x15e204(0x64a)](function(){const _0x47027e=_0x15e204;_0x545f43(),_0x171739[_0x47027e(0x1339)]({'title':_0x456a05[_0x47027e(0x2292)](_0x47027e(0x870))});})[_0x15e204(0x20cd)](function(_0x13d4ac){const _0x5e8e6d=_0x15e204;if(_0x13d4ac['data']&&_0x13d4ac['data'][_0x5e8e6d(0xbae)]&&_0x13d4ac[_0x5e8e6d(0x1c52)][_0x5e8e6d(0xbae)]['length']){_0x5f2e31[_0x5e8e6d(0xbae)]=_0x13d4ac[_0x5e8e6d(0x1c52)]['errors']||[{'message':_0x13d4ac[_0x5e8e6d(0x2915)](),'type':_0x5e8e6d(0x1c37)}];for(let _0x918a59=0x0;_0x918a59<_0x13d4ac[_0x5e8e6d(0x1c52)]['errors']['length'];_0x918a59++){_0x171739[_0x5e8e6d(0x1bd0)]({'title':_0x13d4ac[_0x5e8e6d(0x1c52)]['errors'][_0x918a59]['type'],'msg':_0x13d4ac[_0x5e8e6d(0x1c52)][_0x5e8e6d(0xbae)][_0x918a59]['message']});}}else _0x171739[_0x5e8e6d(0x1bd0)]({'title':_0x13d4ac[_0x5e8e6d(0x10b3)]?'API:'+_0x13d4ac[_0x5e8e6d(0x10b3)]+_0x5e8e6d(0x21db)+_0x13d4ac['statusText']:_0x5e8e6d(0x1c37),'msg':_0x13d4ac[_0x5e8e6d(0x1c52)]?JSON[_0x5e8e6d(0x2317)](_0x13d4ac[_0x5e8e6d(0x1c52)][_0x5e8e6d(0x18ca)]):_0x13d4ac[_0x5e8e6d(0x18ca)]||_0x13d4ac[_0x5e8e6d(0x2915)]()});});}function _0x206add(){const _0xc0c78a=_0xe8bb88,_0x32c5f3=angular[_0xc0c78a(0x289e)](_0x5f2e31[_0xc0c78a(0x1403)]);return _0x5f2e31['selectedDispositions']=[],_0x32c5f3;}function _0xd366d8(_0xfc010){const _0x2b03f2=_0xe8bb88,_0x114357=_0x25d243['confirm']()[_0x2b03f2(0x2021)](_0x456a05[_0x2b03f2(0x2292)](_0x2b03f2(0x10a1)))['content'](_0x456a05['instant'](_0x2b03f2(0x2563),{'total':_0x5f2e31[_0x2b03f2(0x1403)]['length']}))[_0x2b03f2(0x213e)](_0x2b03f2(0x10e))[_0x2b03f2(0x2283)](_0xfc010)['ok']('OK')[_0x2b03f2(0x101a)](_0x456a05[_0x2b03f2(0x2292)](_0x2b03f2(0x4f5)));_0x25d243['show'](_0x114357)[_0x2b03f2(0x64a)](function(){const _0x36e616=_0x2b03f2;_0x5f2e31[_0x36e616(0x1403)][_0x36e616(0x1397)](function(_0x272389){_0x2c2f4f(_0x272389);}),_0x5f2e31[_0x36e616(0x1403)]=[];});}function _0xb1644c(){_0x5f2e31['selectedDispositions']=[];}function _0x45a744(){const _0x228643=_0xe8bb88;_0x5f2e31[_0x228643(0x1403)]=_0x5f2e31[_0x228643(0x16d7)][_0x228643(0x28b8)];}let _0x4de294=!![],_0x1d2c4d=0x1;_0x40c846[_0xe8bb88(0xc62)](_0xe8bb88(0x1200),function(_0x2f68b4,_0x5832b6){const _0x4245e6=_0xe8bb88;_0x4de294?_0x250e39(function(){_0x4de294=![];}):(!_0x5832b6&&(_0x1d2c4d=_0x5f2e31[_0x4245e6(0x289a)][_0x4245e6(0xc72)]),_0x2f68b4!==_0x5832b6&&(_0x5f2e31['query']['page']=0x1),!_0x2f68b4&&(_0x5f2e31[_0x4245e6(0x289a)][_0x4245e6(0xc72)]=_0x1d2c4d),_0x545f43());});}const _0x191f28=_0x428cde;;_0x421a20[_0x49a1e3(0x1e73)]=['$cookies',_0x49a1e3(0x1674),'$state','$q',_0x49a1e3(0x298c),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),'toasty',_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x421a20(_0xfa3fd8,_0x235e55,_0x5a0e7d,_0x267e6c,_0x395f59,_0x479d35,_0x2e35a5,_0x53f787,_0x47119a,_0x1a1b32,_0x80e1a3){const _0x568dc9=_0x49a1e3,_0x4e2f73=this;_0x4e2f73[_0x568dc9(0x1d3d)]=_0x80e1a3[_0x568dc9(0x808)](),_0x4e2f73['faxAccount']={},_0x4e2f73[_0x568dc9(0x1a98)]={'count':0x0,'rows':[]},_0x4e2f73[_0x568dc9(0x13b5)]=[],_0x4e2f73['crudPermissions'],_0x4e2f73[_0x568dc9(0x289a)]={'read':_0x568dc9(0x8f1),'closed':_0x568dc9(0x8f1),'sort':_0x568dc9(0x1b35),'includeAll':_0x568dc9(0x1685),'limit':0xa,'page':0x1},_0x4e2f73['init']=_0x16a1d7,_0x4e2f73[_0x568dc9(0x217e)]=_0x4a8896,_0x4e2f73[_0x568dc9(0x14c7)]=_0x2c9198,_0x4e2f73[_0x568dc9(0x1339)]=_0x3ae146,_0x4e2f73[_0x568dc9(0x1ab2)]=_0x3a8ef0,_0x4e2f73[_0x568dc9(0x2604)]=_0x134046,_0x4e2f73[_0x568dc9(0x114f)]=_0x166003,_0x4e2f73[_0x568dc9(0x8e7)]=_0x58db09,_0x4e2f73[_0x568dc9(0x1606)]=_0x56d6ed,_0x4e2f73[_0x568dc9(0x1fd7)]=_0xcfc193;function _0x16a1d7(_0x28edd4,_0x5210e5){const _0x2d8c65=_0x568dc9;_0x4e2f73[_0x2d8c65(0x549)]=_0x28edd4,_0x4e2f73[_0x2d8c65(0x402)]=typeof _0x5210e5!=='undefined'?_0x5210e5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4e2f73[_0x2d8c65(0x289a)][_0x2d8c65(0x1da3)]=_0x4e2f73[_0x2d8c65(0x549)]['id'],_0x4e2f73[_0x2d8c65(0x1b2f)]={'fields':_0x4ea74b()},_0x897e85();}function _0x897e85(){const _0x4605da=_0x568dc9;return _0x1a1b32[_0x4605da(0xac8)][_0x4605da(0x896)]()[_0x4605da(0x15e7)][_0x4605da(0x64a)](function(_0x2b6fc9){const _0x250ea4=_0x4605da;_0x4e2f73[_0x250ea4(0x16a6)]=_0x2b6fc9||{'count':0x0,'rows':[]};})[_0x4605da(0x64a)](function(){const _0x3be198=_0x4605da;_0x4e2f73[_0x3be198(0x9fc)]=_0x539349();});}function _0x539349(){const _0x5bd6ca=_0x568dc9;return[{'name':'Start\x20Date','key':_0x5bd6ca(0x2378),'type':_0x5bd6ca(0x232e),'label':_0x5bd6ca(0x2720)},{'name':_0x5bd6ca(0x17af),'key':_0x5bd6ca(0x12a6),'type':_0x5bd6ca(0x2926),'label':_0x5bd6ca(0x23f7),'customOptions':[{'value':0x0,'translate':_0x5bd6ca(0x13be)},{'value':0x1,'translate':_0x5bd6ca(0x1889)},{'value':null,'translate':_0x5bd6ca(0x2200)}]},{'name':_0x5bd6ca(0x2311),'key':_0x5bd6ca(0x1140),'type':'select','label':_0x5bd6ca(0x110d),'customOptions':[{'value':0x0,'translate':_0x5bd6ca(0x1313)},{'value':0x1,'translate':_0x5bd6ca(0x5cd)},{'value':null,'translate':_0x5bd6ca(0x2200)}]},{'name':'Agent','key':_0x5bd6ca(0x246c),'type':_0x5bd6ca(0x2926),'label':_0x5bd6ca(0x18bf),'customOptions':[{'value':_0x5bd6ca(0x8f1),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x5bd6ca(0x2200)}]},{'name':_0x5bd6ca(0x1e9f),'key':'tag','type':_0x5bd6ca(0x20ae),'label':'DASHBOARDS.SELECT_TAG','options':_0x4e2f73[_0x5bd6ca(0x16a6)]['rows'],'placeholder':_0x5bd6ca(0x6a6)}];}function _0x4ea74b(){const _0x1f513a=_0x568dc9;return[{'name':'Id','column':'id','type':_0x1f513a(0x2113)},{'name':_0x1f513a(0x1c38),'column':'Contact','type':'autocomplete','options':{'searchFields':[_0x1f513a(0x2518),_0x1f513a(0x21c4),_0x1f513a(0xd47)],'route':{'model':_0x1f513a(0xdf5),'action':_0x1f513a(0x896),'params':{'fields':_0x1f513a(0x3ef),'Contact':_0x1f513a(0xb96),'nolimit':!![]}},'extraOperators':[_0x1f513a(0xe87)],'excludedOperators':[_0x1f513a(0x14b5)]}},{'name':_0x1f513a(0x1cd9),'column':'subject','type':_0x1f513a(0x39b),'options':{'excludedOperators':[_0x1f513a(0x1743),_0x1f513a(0x14b5)]}},{'name':'Body','column':_0x1f513a(0x2233),'type':_0x1f513a(0x39b),'options':{'excludedOperators':['$eq',_0x1f513a(0x14b5)]}},{'name':_0x1f513a(0x2311),'column':'closed','type':_0x1f513a(0x2926),'values':[{'id':0x0,'translate':_0x1f513a(0x1313)},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x1f513a(0x14b5)]}},{'name':'Agent','column':_0x1f513a(0x1098),'type':_0x1f513a(0x21b7),'options':{'table':'i','route':{'model':_0x1f513a(0x2e8),'action':_0x1f513a(0x896),'params':{'role':_0x1f513a(0x11ae),'fields':_0x1f513a(0xd53),'nolimit':!![]}},'searchFields':[_0x1f513a(0x15c),'name'],'extraOperators':[_0x1f513a(0xe87)],'excludedOperators':[_0x1f513a(0x14b5)]}},{'name':_0x1f513a(0x1178),'column':_0x1f513a(0x1e9f),'type':'multiselect','options':{'route':{'model':_0x1f513a(0xac8),'action':_0x1f513a(0x896),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x1f513a(0x1967),'column':_0x1f513a(0x2378),'type':_0x1f513a(0x232e),'options':{'excludedOperators':[_0x1f513a(0x14b5)]}},{'name':_0x1f513a(0xff4),'column':_0x1f513a(0x18d3),'type':_0x1f513a(0x2926),'values':[{'id':0x1,'translate':_0x1f513a(0x1889)},{'id':0x0,'translate':_0x1f513a(0x13be)}],'options':{'excludedOperators':[_0x1f513a(0x14b5)]}}];}function _0x166003(){const _0x3c8e21=_0x568dc9;_0x2e35a5[_0x3c8e21(0xa60)]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x46e7cb,'parent':angular[_0x3c8e21(0x1f81)](_0x53f787[_0x3c8e21(0xb49)]),'clickOutsideToClose':![],'locals':{'fields':_0x4e2f73['advancedSearch']['fields'],'color':undefined,'storagePath':_0x3c8e21(0x3de)},'fullscreen':!![]})['then'](function(_0x41fb06){const _0x17eab9=_0x3c8e21;_0x4e2f73['query']['search']=_0x41fb06===![]?undefined:_0x41fb06;if(_0x4e2f73[_0x17eab9(0x289a)][_0x17eab9(0xb58)])_0x3a8ef0();else _0x41fb06===![]&&_0x3a8ef0();})[_0x3c8e21(0x20cd)](function(_0x3a9e68){const _0x363793=_0x3c8e21;_0x47119a[_0x363793(0x1bd0)]({'title':_0x363793(0x2440),'msg':_0x3a9e68[_0x363793(0x1c52)]?JSON[_0x363793(0x2317)](_0x3a9e68[_0x363793(0x1c52)][_0x363793(0x18ca)]):_0x3a9e68['toString']()});});}function _0x2c9198(_0x5f4151,_0x18af82,_0x1c8419){const _0x352525=_0x568dc9;return _0x1a1b32[_0x352525(0x10a0)]['download']({'id':_0x5f4151['id'],'exists':!![],'attachments':_0x1c8419})[_0x352525(0x15e7)]['then'](function(_0x38b25a){const _0x1f8b0c=_0x352525,_0x379c49=[_0x38b25a[_0x1f8b0c(0x5a9)]];let _0x4298fc=_0x1f8b0c(0x73a)+_0x5f4151['id'];const _0x4185a0=new Blob(_0x379c49,{'type':_0x38b25a[_0x1f8b0c(0x2185)]});_0x4298fc=_0x1f8b0c(0x562)+_0x5f4151['id']+_0x1f8b0c(0x2177);const _0x5eb7fd=window[_0x1f8b0c(0x123f)][_0x1f8b0c(0x2978)]('a');_0x5eb7fd[_0x1f8b0c(0x1280)](_0x1f8b0c(0x25d0),URL[_0x1f8b0c(0x206)](_0x4185a0)),_0x5eb7fd[_0x1f8b0c(0x1280)](_0x1f8b0c(0x19b3),_0x4298fc),document[_0x1f8b0c(0xb49)][_0x1f8b0c(0x2661)](_0x5eb7fd),_0x5eb7fd[_0x1f8b0c(0x2668)]();})[_0x352525(0x20cd)](function(_0x1486eb){const _0x327559=_0x352525;if(_0x1486eb['data']&&_0x1486eb['data']['errors']&&_0x1486eb['data'][_0x327559(0xbae)][_0x327559(0x1b9e)])for(let _0x542e70=0x0;_0x542e70<_0x1486eb[_0x327559(0x1c52)][_0x327559(0xbae)][_0x327559(0x1b9e)];_0x542e70+=0x1){_0x47119a['error']({'title':_0x1486eb[_0x327559(0x1c52)][_0x327559(0xbae)][_0x542e70]['type'],'msg':_0x1486eb[_0x327559(0x1c52)]['errors'][_0x542e70]['message']});}else _0x47119a[_0x327559(0x1bd0)]({'title':_0x1486eb[_0x327559(0x10b3)]?'API:'+_0x1486eb[_0x327559(0x10b3)]+_0x327559(0x21db)+_0x1486eb['statusText']:_0x327559(0xc90),'msg':_0x1486eb[_0x327559(0x1c52)]?JSON[_0x327559(0x2317)](_0x1486eb['data'][_0x327559(0x18ca)]):_0x1486eb['toString']()});});}function _0x4a8896(_0x252ed5,_0x2d8dd9){const _0x17f873=_0x568dc9,_0x3180a2=_0x2e35a5[_0x17f873(0x856)]()[_0x17f873(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interaction?')[_0x17f873(0x33a)](''+(_0x252ed5[_0x17f873(0x2494)]||_0x252ed5['id']&&_0x28c606()[_0x17f873(0x1766)](_0x17f873(0x1302))+_0x252ed5['id']||_0x17f873(0x73a))+_0x17f873(0x26d0)+_0x17f873(0x4b8))[_0x17f873(0x213e)](_0x17f873(0x1e54))[_0x17f873(0x2283)](_0x2d8dd9)['ok']('OK')[_0x17f873(0x101a)](_0x17f873(0x18fd));_0x2e35a5[_0x17f873(0xa60)](_0x3180a2)[_0x17f873(0x64a)](function(){_0x56d6ed(_0x252ed5);},function(){const _0xa387b5=_0x17f873;console[_0xa387b5(0x9b4)]('CANCEL');});}function _0x3ae146(_0x3f0a38){const _0x2a0e8e=_0x568dc9;_0x4e2f73[_0x2a0e8e(0x1a98)]=_0x3f0a38||{'count':0x0,'rows':[]};for(let _0x3e5b24=0x0;_0x3e5b24<_0x4e2f73[_0x2a0e8e(0x1a98)]['rows'][_0x2a0e8e(0x1b9e)];_0x3e5b24+=0x1){const _0x2d589f=_0x4e2f73[_0x2a0e8e(0x1a98)][_0x2a0e8e(0x28b8)][_0x3e5b24];_0x3cb6a4(_0x2d589f),_0x2d589f[_0x2a0e8e(0x1b06)][_0x2a0e8e(0x2494)]=_0x214416(_0x2d589f);}}function _0x3a8ef0(){const _0x742d8c=_0x568dc9;_0x4e2f73[_0x742d8c(0x289a)][_0x742d8c(0x24f9)]=(_0x4e2f73['query'][_0x742d8c(0xc72)]-0x1)*_0x4e2f73[_0x742d8c(0x289a)][_0x742d8c(0x25bb)],_0x4e2f73[_0x742d8c(0x1713)]=_0x1a1b32['faxInteraction'][_0x742d8c(0x896)](_0x4e2f73[_0x742d8c(0x289a)],_0x3ae146)[_0x742d8c(0x15e7)];}function _0x134046(_0x563258,_0x5966b7){const _0x353261=_0x568dc9;_0x2e35a5['show']({'controller':_0x353261(0x1836),'controllerAs':'vm','templateUrl':_0x27e3ee,'parent':angular[_0x353261(0x1f81)](_0x53f787[_0x353261(0xb49)]),'targetEvent':_0x563258,'clickOutsideToClose':!![],'onShowing':function(_0x1d2a77){const _0x13a379=_0x353261;_0x1d2a77['vm']['init']({'id':0x1,'channel':_0x13a379(0x1d37),'interaction':_0x5966b7,'spy':!![]},_0x235e55[_0x13a379(0x4e3)]['vm']['setting']);}});}function _0x56d6ed(_0x1ae14b){const _0xcb6dcc=_0x568dc9;_0x1a1b32[_0xcb6dcc(0x10a0)]['delete']({'id':_0x1ae14b['id']})['$promise'][_0xcb6dcc(0x64a)](function(){const _0x4af440=_0xcb6dcc;_0x28c606()[_0x4af440(0x21c7)](_0x4e2f73[_0x4af440(0x1a98)][_0x4af440(0x28b8)],{'id':_0x1ae14b['id']}),_0x4e2f73[_0x4af440(0x1a98)]['count']-=0x1,!_0x4e2f73[_0x4af440(0x1a98)]['rows'][_0x4af440(0x1b9e)]&&_0x3a8ef0(),_0x47119a['success']({'title':'Interaction\x20deleted!','msg':_0x1ae14b[_0x4af440(0x2494)]?_0x1ae14b[_0x4af440(0x2494)]+_0x4af440(0x1fa8):''});})[_0xcb6dcc(0x20cd)](function(_0x20a6b5){const _0x597306=_0xcb6dcc;if(_0x20a6b5[_0x597306(0x1c52)]&&_0x20a6b5['data'][_0x597306(0xbae)]&&_0x20a6b5[_0x597306(0x1c52)][_0x597306(0xbae)]['length']){_0x4e2f73[_0x597306(0xbae)]=_0x20a6b5[_0x597306(0x1c52)][_0x597306(0xbae)]||[{'message':_0x20a6b5[_0x597306(0x2915)](),'type':_0x597306(0xdf3)}];for(let _0x59f3ba=0x0;_0x59f3ba<_0x20a6b5[_0x597306(0x1c52)]['errors'][_0x597306(0x1b9e)];_0x59f3ba++){_0x47119a['error']({'title':_0x20a6b5[_0x597306(0x1c52)]['errors'][_0x59f3ba][_0x597306(0x2185)],'msg':_0x20a6b5[_0x597306(0x1c52)]['errors'][_0x59f3ba][_0x597306(0x18ca)]});}}else _0x47119a[_0x597306(0x1bd0)]({'title':_0x20a6b5[_0x597306(0x10b3)]?_0x597306(0x575)+_0x20a6b5['status']+_0x597306(0x21db)+_0x20a6b5[_0x597306(0x2115)]:'SYSTEM:GETfaxAccount','msg':_0x20a6b5[_0x597306(0x1c52)]?JSON[_0x597306(0x2317)](_0x20a6b5[_0x597306(0x1c52)][_0x597306(0x18ca)]):_0x20a6b5[_0x597306(0x18ca)]||_0x20a6b5[_0x597306(0x2915)]()});});}function _0x58db09(){const _0x2a1c84=_0x568dc9,_0x10eb96=angular[_0x2a1c84(0x289e)](_0x4e2f73[_0x2a1c84(0x13b5)]);return _0x4e2f73[_0x2a1c84(0x13b5)]=[],_0x10eb96;}function _0xcfc193(_0x14d7d2){const _0x352a0c=_0x568dc9,_0x3222f4=_0x2e35a5[_0x352a0c(0x856)]()[_0x352a0c(0x2021)](_0x352a0c(0x201))[_0x352a0c(0x33a)](_0x352a0c(0x50b)+_0x4e2f73[_0x352a0c(0x13b5)][_0x352a0c(0x1b9e)]+_0x352a0c(0x163e)+_0x352a0c(0x4b8))[_0x352a0c(0x213e)](_0x352a0c(0xb35))[_0x352a0c(0x2283)](_0x14d7d2)['ok']('OK')[_0x352a0c(0x101a)](_0x352a0c(0x18fd));_0x2e35a5[_0x352a0c(0xa60)](_0x3222f4)[_0x352a0c(0x64a)](function(){const _0x25a3eb=_0x352a0c;_0x4e2f73['selectedFaxAccountInteractions']['forEach'](function(_0x2ef04a){_0x56d6ed(_0x2ef04a);}),_0x4e2f73[_0x25a3eb(0x13b5)]=[];});}function _0x3cb6a4(_0x19d366){const _0x528fe7=_0x568dc9;_0x19d366['Contact']?(_0x19d366[_0x528fe7(0xfd7)]=(_0x19d366[_0x528fe7(0x1c38)][_0x528fe7(0x2518)]||'')+'\x20'+(_0x19d366['Contact'][_0x528fe7(0x21c4)]||''),_0x19d366[_0x528fe7(0x27b3)]=_0x19d366[_0x528fe7(0x1c38)][_0x528fe7(0x1d37)]):_0x19d366[_0x528fe7(0xfd7)]=_0x395f59['instant'](_0x528fe7(0x1c8d));}function _0x214416(_0x393f08){const _0xc82a26=_0x568dc9;if(_0x393f08[_0xc82a26(0x246c)])return _0x393f08[_0xc82a26(0x246c)]===_0x4e2f73[_0xc82a26(0x1d3d)]['id']?_0x395f59[_0xc82a26(0x2292)](_0xc82a26(0x2368)):_0x393f08[_0xc82a26(0x1b06)][_0xc82a26(0x15c)]+'\x20<'+_0x393f08[_0xc82a26(0x1b06)][_0xc82a26(0xe2f)]+'>';return _0x395f59[_0xc82a26(0x2292)](_0xc82a26(0x276d));}let _0x3c3aff=!![],_0x2edb84=0x1;_0x235e55['$watch']('vm_dc.query.filter',function(_0x3d8570,_0x373b97){const _0x4f2610=_0x568dc9;_0x3c3aff?_0x479d35(function(){_0x3c3aff=![];}):(!_0x373b97&&(_0x2edb84=_0x4e2f73[_0x4f2610(0x289a)][_0x4f2610(0xc72)]),_0x3d8570!==_0x373b97&&(_0x4e2f73['query'][_0x4f2610(0xc72)]=0x1),!_0x3d8570&&(_0x4e2f73[_0x4f2610(0x289a)]['page']=_0x2edb84),_0x3a8ef0());});}const _0x196931=_0x421a20;;const _0x1cbd07=_0x2e4a48['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/agentadd/agentadd.html/agentadd.html';;_0x193755[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),'$translate',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),'Auth',_0x49a1e3(0x549),_0x49a1e3(0x16b2)];function _0x193755(_0x50166d,_0x257c22,_0x4d2045,_0x540165,_0x442366,_0x17ca39,_0x2f67bf,_0x229b05,_0x3539f7,_0x78c50c,_0x11dbf8,_0x36098c){const _0x5ae285=_0x49a1e3,_0x10aa48=this;_0x10aa48['currentUser']=_0x78c50c[_0x5ae285(0x808)](),_0x10aa48[_0x5ae285(0x1947)]=_0x17ca39,_0x10aa48[_0x5ae285(0x28d6)]=_0x2f67bf,_0x10aa48[_0x5ae285(0xccc)]=_0x10aa48[_0x5ae285(0x28d6)][_0x5ae285(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x10aa48['location']=_0x257c22[_0x5ae285(0x48e)]()+_0x5ae285(0xe1f)+_0x257c22[_0x5ae285(0x1e5d)](),_0x10aa48[_0x5ae285(0x549)]=_0x11dbf8||_0x50166d['params'][_0x5ae285(0x549)]||{},_0x10aa48[_0x5ae285(0x16b2)]=_0x36098c&&_0x36098c[_0x5ae285(0xb90)]==0x1?_0x36098c[_0x5ae285(0x28b8)][0x0]:null,_0x10aa48[_0x5ae285(0x402)]=_0x78c50c[_0x5ae285(0xa7e)](_0x10aa48[_0x5ae285(0x16b2)]?_0x10aa48[_0x5ae285(0x16b2)][_0x5ae285(0x402)]:null),_0x10aa48[_0x5ae285(0x6c2)]={},_0x10aa48[_0x5ae285(0x197c)]=_0x50166d[_0x5ae285(0x1b48)]['tab']||0x0,_0x10aa48[_0x5ae285(0x505)]=_0x5ec4df,_0x10aa48[_0x5ae285(0x104a)]=_0x312909,_0x10aa48['alert']=_0x3539f7['info'],_0x10aa48['gotoFaxAccounts']=_0x1986b5,_0x10aa48[_0x5ae285(0x23a5)]=_0x570df0,_0x78c50c[_0x5ae285(0x4de)](_0x5ae285(0x333))?_0x229b05[_0x5ae285(0x4ef)][_0x5ae285(0x896)]({'fields':_0x5ae285(0x1427),'sort':_0x5ae285(0x2494)})[_0x5ae285(0x15e7)][_0x5ae285(0x64a)](function(_0x4fe66b){const _0x12bae6=_0x5ae285;_0x10aa48[_0x12bae6(0xe23)]=_0x4fe66b[_0x12bae6(0x28b8)]||[];})['catch'](function(_0x1dd31f){const _0x548636=_0x5ae285;_0x3539f7[_0x548636(0x1bd0)]({'title':_0x1dd31f[_0x548636(0x10b3)]?_0x548636(0x575)+_0x1dd31f[_0x548636(0x10b3)]+_0x548636(0x21db)+_0x1dd31f[_0x548636(0x2115)]:_0x548636(0x1d82),'msg':_0x1dd31f[_0x548636(0x1c52)]?JSON[_0x548636(0x2317)](_0x1dd31f[_0x548636(0x1c52)]):_0x1dd31f[_0x548636(0x2915)]()});}):_0x229b05[_0x5ae285(0x4ef)][_0x5ae285(0x896)]({'fields':'id,name','sort':'name'})['$promise'][_0x5ae285(0x64a)](function(_0x3c5251){const _0x56fdc1=_0x5ae285;_0x10aa48[_0x56fdc1(0xe23)]=_0x3c5251[_0x56fdc1(0x28b8)]||[];})['then'](function(){const _0x3cac20=_0x5ae285;return _0x229b05[_0x3cac20(0x16b2)]['get']({'userProfileId':_0x10aa48[_0x3cac20(0x1d3d)][_0x3cac20(0x21ac)],'sectionId':0x3f3})[_0x3cac20(0x15e7)];})[_0x5ae285(0x64a)](function(_0x2516cd){const _0x253172=_0x5ae285,_0x1f936c=_0x2516cd&&_0x2516cd[_0x253172(0x28b8)]?_0x2516cd[_0x253172(0x28b8)][0x0]:null;if(!_0x1f936c){const _0x57851b=[];let _0x554a90=null;_0x10aa48[_0x253172(0x549)]&&(_0x554a90=_0x28c606()[_0x253172(0x27bc)](_0x10aa48[_0x253172(0xe23)],{'id':Number(_0x10aa48[_0x253172(0x549)][_0x253172(0x1c2)])}));for(let _0x241850=0x0;_0x241850<_0x10aa48[_0x253172(0xe23)][_0x253172(0x1b9e)];_0x241850++){_0x554a90&&_0x10aa48[_0x253172(0xe23)][_0x241850]['id']===_0x554a90['id']&&(_0x10aa48[_0x253172(0xe23)][_0x241850]['canSelect']=![],_0x57851b[_0x253172(0x1954)](_0x10aa48[_0x253172(0xe23)][_0x241850]));}_0x10aa48[_0x253172(0xe23)]=_0x57851b;}else{if(!_0x1f936c[_0x253172(0x11da)])return _0x229b05[_0x253172(0x1617)][_0x253172(0x896)]({'sectionId':_0x1f936c['id']})['$promise']['then'](function(_0xfbe387){const _0x5f4f89=_0x253172,_0x2f7185=_0x28c606()[_0x5f4f89(0x1de5)](_0xfbe387['rows'],function(_0x16c51a){const _0xb7729a=_0x5f4f89;return _0x28c606()[_0xb7729a(0x27bc)](_0x10aa48[_0xb7729a(0xe23)],{'id':_0x16c51a[_0xb7729a(0x145)]});});let _0x3d7709=null;_0x10aa48['faxAccount']&&(_0x3d7709=_0x28c606()[_0x5f4f89(0x27bc)](_0x10aa48[_0x5f4f89(0xe23)],{'id':Number(_0x10aa48[_0x5f4f89(0x549)]['TrunkId'])}));if(_0x3d7709&&!_0x28c606()['some'](_0x2f7185,['id',_0x3d7709['id']])){const _0x4360e0=_0x28c606()['find'](_0x10aa48['trunks'],{'id':_0x3d7709['id']});_0x4360e0[_0x5f4f89(0xd4f)]=![],_0x2f7185[_0x5f4f89(0x1954)](_0x4360e0);}_0x10aa48[_0x5f4f89(0xe23)]=_0x2f7185;});}})[_0x5ae285(0x20cd)](function(_0x596ef9){const _0x4a668a=_0x5ae285;_0x3539f7[_0x4a668a(0x1bd0)]({'title':_0x596ef9[_0x4a668a(0x10b3)]?'API:'+_0x596ef9[_0x4a668a(0x10b3)]+_0x4a668a(0x21db)+_0x596ef9[_0x4a668a(0x2115)]:_0x4a668a(0x89a),'msg':_0x596ef9[_0x4a668a(0x1c52)]?JSON[_0x4a668a(0x2317)](_0x596ef9[_0x4a668a(0x1c52)]):_0x596ef9[_0x4a668a(0x2915)]()});}),_0x78c50c[_0x5ae285(0x4de)](_0x5ae285(0x333))?_0x229b05[_0x5ae285(0x19f8)][_0x5ae285(0x896)]({'fields':_0x5ae285(0x1427),'sort':'name'})['$promise'][_0x5ae285(0x64a)](function(_0x8250a0){const _0x4cbf79=_0x5ae285;_0x10aa48[_0x4cbf79(0x974)]=_0x8250a0['rows']||[];})[_0x5ae285(0x20cd)](function(_0x44d061){const _0x570082=_0x5ae285;_0x3539f7[_0x570082(0x1bd0)]({'title':_0x44d061[_0x570082(0x10b3)]?_0x570082(0x575)+_0x44d061[_0x570082(0x10b3)]+_0x570082(0x21db)+_0x44d061['statusText']:_0x570082(0x1ed6),'msg':_0x44d061['data']?JSON[_0x570082(0x2317)](_0x44d061[_0x570082(0x1c52)]):_0x44d061['toString']()});}):_0x229b05[_0x5ae285(0x19f8)][_0x5ae285(0x896)]({'fields':_0x5ae285(0x1427),'sort':'name'})[_0x5ae285(0x15e7)][_0x5ae285(0x64a)](function(_0x340db5){const _0x1a500f=_0x5ae285;_0x10aa48[_0x1a500f(0x974)]=_0x340db5['rows']||[];})[_0x5ae285(0x64a)](function(){const _0x486848=_0x5ae285;return _0x229b05[_0x486848(0x16b2)]['get']({'userProfileId':_0x10aa48[_0x486848(0x1d3d)][_0x486848(0x21ac)],'sectionId':0x12d})['$promise'];})[_0x5ae285(0x64a)](function(_0x23f7da){const _0x584e52=_0x5ae285,_0xb7cac7=_0x23f7da&&_0x23f7da['rows']?_0x23f7da[_0x584e52(0x28b8)][0x0]:null;if(!_0xb7cac7){const _0x5ea3fc=[];let _0x2c6556=null;_0x10aa48['faxAccount']&&(_0x2c6556=_0x28c606()[_0x584e52(0x27bc)](_0x10aa48[_0x584e52(0x974)],{'id':Number(_0x10aa48[_0x584e52(0x549)][_0x584e52(0x869)])}));for(let _0x47970c=0x0;_0x47970c<_0x10aa48[_0x584e52(0x974)][_0x584e52(0x1b9e)];_0x47970c++){_0x2c6556&&_0x10aa48[_0x584e52(0x974)][_0x47970c]['id']===_0x2c6556['id']&&(_0x10aa48[_0x584e52(0x974)][_0x47970c][_0x584e52(0xd4f)]=![],_0x5ea3fc[_0x584e52(0x1954)](_0x10aa48[_0x584e52(0x974)][_0x47970c]));}_0x10aa48[_0x584e52(0x974)]=_0x5ea3fc;}else{if(!_0xb7cac7[_0x584e52(0x11da)])return _0x229b05[_0x584e52(0x1617)]['get']({'sectionId':_0xb7cac7['id']})[_0x584e52(0x15e7)][_0x584e52(0x64a)](function(_0x45f49c){const _0x1d3e56=_0x584e52,_0x435a9e=_0x28c606()['map'](_0x45f49c[_0x1d3e56(0x28b8)],function(_0x44a360){const _0xd663c8=_0x1d3e56;return _0x28c606()[_0xd663c8(0x27bc)](_0x10aa48[_0xd663c8(0x974)],{'id':_0x44a360[_0xd663c8(0x145)]});});let _0x3ce8b3=null;_0x10aa48[_0x1d3e56(0x549)]&&(_0x3ce8b3=_0x28c606()[_0x1d3e56(0x27bc)](_0x10aa48[_0x1d3e56(0x974)],{'id':Number(_0x10aa48[_0x1d3e56(0x549)][_0x1d3e56(0x869)])}));if(_0x3ce8b3&&!_0x28c606()[_0x1d3e56(0x25f8)](_0x435a9e,['id',_0x3ce8b3['id']])){const _0x23dcfe=_0x28c606()[_0x1d3e56(0x27bc)](_0x10aa48[_0x1d3e56(0x974)],{'id':_0x3ce8b3['id']});_0x23dcfe['canSelect']=![],_0x435a9e[_0x1d3e56(0x1954)](_0x23dcfe);}_0x10aa48['lists']=_0x435a9e;});}})[_0x5ae285(0x20cd)](function(_0xd5cd07){const _0x2c831b=_0x5ae285;_0x3539f7[_0x2c831b(0x1bd0)]({'title':_0xd5cd07['status']?'API:'+_0xd5cd07[_0x2c831b(0x10b3)]+_0x2c831b(0x21db)+_0xd5cd07[_0x2c831b(0x2115)]:_0x2c831b(0x1beb),'msg':_0xd5cd07[_0x2c831b(0x1c52)]?JSON['stringify'](_0xd5cd07[_0x2c831b(0x1c52)]):_0xd5cd07[_0x2c831b(0x2915)]()});}),_0x78c50c['hasRole'](_0x5ae285(0x333))?_0x229b05[_0x5ae285(0x2826)][_0x5ae285(0x896)]({'fields':_0x5ae285(0x1dfb),'sort':_0x5ae285(0x2494),'nolimit':_0x5ae285(0x1685)})['$promise']['then'](function(_0x4f4329){const _0x20b19e=_0x5ae285;_0x10aa48[_0x20b19e(0x23d1)]=_0x4f4329[_0x20b19e(0x28b8)]||[];})[_0x5ae285(0x20cd)](function(_0x36eef7){const _0x555ef4=_0x5ae285;_0x3539f7[_0x555ef4(0x1bd0)]({'title':_0x36eef7[_0x555ef4(0x10b3)]?'API:'+_0x36eef7[_0x555ef4(0x10b3)]+_0x555ef4(0x21db)+_0x36eef7[_0x555ef4(0x2115)]:'SYSTEM:GET_PAUSES','msg':_0x36eef7['data']?JSON[_0x555ef4(0x2317)](_0x36eef7[_0x555ef4(0x1c52)]):_0x36eef7[_0x555ef4(0x2915)]()});}):_0x229b05[_0x5ae285(0x2826)]['get']({'fields':_0x5ae285(0x1dfb),'sort':_0x5ae285(0x2494),'nolimit':_0x5ae285(0x1685)})['$promise'][_0x5ae285(0x64a)](function(_0x11a390){const _0x4ba1f8=_0x5ae285;_0x10aa48[_0x4ba1f8(0x23d1)]=_0x11a390['rows']||[];})[_0x5ae285(0x64a)](function(){const _0x5442b6=_0x5ae285;return _0x229b05['userProfileSection']['get']({'userProfileId':_0x10aa48[_0x5442b6(0x1d3d)][_0x5442b6(0x21ac)],'sectionId':0x3ed})[_0x5442b6(0x15e7)];})[_0x5ae285(0x64a)](function(_0x599a09){const _0x466f54=_0x5ae285,_0x2726a2=_0x599a09&&_0x599a09['rows']?_0x599a09[_0x466f54(0x28b8)][0x0]:null;if(!_0x2726a2)_0x10aa48[_0x466f54(0x23d1)]=[];else{if(!_0x2726a2[_0x466f54(0x11da)])return _0x229b05['userProfileResource'][_0x466f54(0x896)]({'sectionId':_0x2726a2['id']})[_0x466f54(0x15e7)][_0x466f54(0x64a)](function(_0x51f852){const _0x4bc8f1=_0x466f54,_0x3e74ed=_0x28c606()[_0x4bc8f1(0x1de5)](_0x51f852['rows'],function(_0x100b3c){const _0x413d7c=_0x4bc8f1;return _0x28c606()['find'](_0x10aa48[_0x413d7c(0x23d1)],{'id':_0x100b3c[_0x413d7c(0x145)]});});_0x10aa48[_0x4bc8f1(0x23d1)][_0x4bc8f1(0x1397)](function(_0x14f2bf){const _0x1668d2=_0x4bc8f1;!_0x28c606()[_0x1668d2(0x25f8)](_0x3e74ed,['id',_0x14f2bf['id']])&&(_0x14f2bf[_0x1668d2(0xd4f)]=![]),_0x3e74ed[_0x1668d2(0x1954)](_0x14f2bf);}),_0x10aa48[_0x4bc8f1(0x23d1)]=_0x3e74ed;});}})[_0x5ae285(0x20cd)](function(_0x1bedc4){const _0x16a5c5=_0x5ae285;_0x3539f7[_0x16a5c5(0x1bd0)]({'title':_0x1bedc4[_0x16a5c5(0x10b3)]?_0x16a5c5(0x575)+_0x1bedc4[_0x16a5c5(0x10b3)]+'\x20-\x20'+_0x1bedc4['statusText']:_0x16a5c5(0xd4a),'msg':_0x1bedc4[_0x16a5c5(0x1c52)]?JSON[_0x16a5c5(0x2317)](_0x1bedc4[_0x16a5c5(0x1c52)]):_0x1bedc4['toString']()});});function _0x5ec4df(){const _0x33cd16=_0x5ae285;if(_0x78c50c[_0x33cd16(0x4de)]('admin'))_0x50166d['go'](_0x33cd16(0x546),{});else return _0x229b05[_0x33cd16(0x16b2)]['get']({'userProfileId':_0x78c50c[_0x33cd16(0x808)]()[_0x33cd16(0x21ac)],'sectionId':0x38e})['$promise'][_0x33cd16(0x64a)](function(_0x42890e){const _0x5e0706=_0x33cd16,_0x30eb3c=_0x42890e&&_0x42890e[_0x5e0706(0x28b8)]?_0x42890e[_0x5e0706(0x28b8)][0x0]:null;_0x30eb3c&&_0x30eb3c[_0x5e0706(0xe49)]?_0x50166d['go'](_0x5e0706(0x546),{}):_0x3539f7[_0x5e0706(0x772)]({'title':_0x442366[_0x5e0706(0x2292)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x442366['instant'](_0x5e0706(0x229))});})[_0x33cd16(0x20cd)](function(_0x2fa39b){const _0x25190e=_0x33cd16;_0x3539f7[_0x25190e(0x1bd0)]({'title':_0x2fa39b[_0x25190e(0x10b3)]?_0x25190e(0x575)+_0x2fa39b[_0x25190e(0x10b3)]+_0x25190e(0x21db)+_0x2fa39b['statusText']:_0x25190e(0x942),'msg':_0x2fa39b[_0x25190e(0x10b3)]?JSON[_0x25190e(0x2317)](_0x2fa39b[_0x25190e(0x1c52)]):_0x2fa39b[_0x25190e(0x2915)]()});});}function _0x312909(_0xa4a1bb,_0x3e789b){const _0x14cf24=_0x5ae285;_0x4d2045['show']({'controller':_0x14cf24(0x79b),'controllerAs':'vm','templateUrl':_0x1cbd07,'parent':angular[_0x14cf24(0x1f81)](_0x540165[_0x14cf24(0xb49)]),'targetEvent':_0x3e789b,'clickOutsideToClose':!![],'locals':{'faxAccount':_0xa4a1bb,'faxAccounts':_0x10aa48[_0x14cf24(0x198c)]?_0x10aa48[_0x14cf24(0x198c)][_0x14cf24(0x28b8)]:[],'crudPermissions':_0x10aa48[_0x14cf24(0x402)],'realtime':![]}});}function _0x1986b5(){const _0x581d93=_0x5ae285;_0x50166d['go'](_0x581d93(0x1a9f),{},{'reload':_0x581d93(0x1a9f)});}function _0x570df0(){const _0x4cdf12=_0x5ae285;_0x229b05[_0x4cdf12(0x549)]['updateAccountApplications'](_0x10aa48['faxAccount'])[_0x4cdf12(0x15e7)][_0x4cdf12(0x64a)](function(){const _0x56bb43=_0x4cdf12;_0x3539f7[_0x56bb43(0x1339)]({'title':_0x56bb43(0x1536),'msg':_0x10aa48[_0x56bb43(0x549)][_0x56bb43(0x2494)]?_0x10aa48[_0x56bb43(0x549)][_0x56bb43(0x2494)]+_0x56bb43(0x2032):''});})[_0x4cdf12(0x20cd)](function(_0x1ee299){const _0x312194=_0x4cdf12;_0x3539f7[_0x312194(0x1bd0)]({'title':_0x1ee299[_0x312194(0x10b3)]?'API:'+_0x1ee299['status']+_0x312194(0x21db)+_0x1ee299[_0x312194(0x2115)]:_0x312194(0xdf3),'msg':_0x1ee299[_0x312194(0x1c52)]?JSON[_0x312194(0x2317)](_0x1ee299['data']):_0x1ee299[_0x312194(0x2915)]()});});}}const _0x272dc5=_0x193755;;const _0x155b4b=_0x2e4a48['p']+_0x49a1e3(0xa1d);;_0x35561e[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),'$state','$mdSidenav','$mdDialog',_0x49a1e3(0x1373),'$timeout',_0x49a1e3(0x298c),_0x49a1e3(0x198c),_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x35561e(_0x30c4ec,_0x20228b,_0x5064d8,_0x6d8cec,_0x592224,_0x4adf34,_0x3da2f6,_0xe24cc2,_0x5cc318,_0x54c77e,_0x28568b,_0x12a41c,_0x1309b0,_0x1e7b40,_0x1b144b,_0x4ff9dc,_0x364121){const _0x5849ca=_0x49a1e3,_0x1146d9=this;_0x1146d9['license']=_0x4ff9dc,_0x1146d9[_0x5849ca(0x28d6)]=_0x364121,_0x1146d9[_0x5849ca(0x1d3d)]=_0x1b144b[_0x5849ca(0x808)](),_0x1146d9[_0x5849ca(0x198c)]=_0x5cc318||{'count':0x0,'rows':[]},_0x1146d9[_0x5849ca(0x16a8)]=_0x54c77e,_0x1146d9['userProfileSection']=_0x28568b&&_0x28568b[_0x5849ca(0xb90)]==0x1?_0x28568b[_0x5849ca(0x28b8)][0x0]:null,_0x1146d9['crudPermissions']=_0x1b144b['parseCrudPermissions'](_0x1146d9[_0x5849ca(0x16b2)]?_0x1146d9[_0x5849ca(0x16b2)][_0x5849ca(0x402)]:null),_0x1146d9[_0x5849ca(0x185d)]=_0x5849ca(0x198c),_0x1146d9['listOrder']='',_0x1146d9['listOrderAsc']=null,_0x1146d9[_0x5849ca(0x24b5)]=[],_0x1146d9['query']={'fields':_0x5849ca(0x2282),'sort':_0x5849ca(0x260c),'limit':0xa,'page':0x1},_0x1146d9['arrayecm']=_0x28c606()[_0x5849ca(0x161e)]([{'option':_0x5849ca(0x1d21),'value':'\x27yes\x27'},{'option':'no','value':_0x5849ca(0x1476)}],function(_0x54ed28){const _0x1cb06a=_0x5849ca;return _0x28c606()['replace'](_0x54ed28[_0x1cb06a(0x1096)],new RegExp('\x27','g'),'');}),_0x1146d9['arrayminrate']=_0x28c606()[_0x5849ca(0x161e)]([{'option':_0x5849ca(0x1b62),'value':_0x5849ca(0x1f38)},{'option':_0x5849ca(0x25da),'value':_0x5849ca(0x2410)},{'option':_0x5849ca(0x237a),'value':_0x5849ca(0x136c)},{'option':_0x5849ca(0x1ef5),'value':_0x5849ca(0x164f)},{'option':_0x5849ca(0x7ee),'value':_0x5849ca(0x255a)},{'option':_0x5849ca(0xba9),'value':_0x5849ca(0x17ad)}],function(_0x2e3b69){const _0x43bcbb=_0x5849ca;return _0x28c606()[_0x43bcbb(0x1353)](_0x2e3b69[_0x43bcbb(0x1096)],new RegExp('\x27','g'),'');}),_0x1146d9[_0x5849ca(0xdca)]=_0x28c606()['keyBy']([{'option':_0x5849ca(0x1b62),'value':_0x5849ca(0x1f38)},{'option':'4800','value':_0x5849ca(0x2410)},{'option':_0x5849ca(0x237a),'value':_0x5849ca(0x136c)},{'option':_0x5849ca(0x1ef5),'value':_0x5849ca(0x164f)},{'option':_0x5849ca(0x7ee),'value':_0x5849ca(0x255a)},{'option':_0x5849ca(0xba9),'value':'\x2714400\x27'}],function(_0x44069b){const _0xe4c38e=_0x5849ca;return _0x28c606()[_0xe4c38e(0x1353)](_0x44069b[_0xe4c38e(0x1096)],new RegExp('\x27','g'),'');}),_0x1146d9['arraytech']=_0x28c606()[_0x5849ca(0x161e)]([{'option':'SIP','value':_0x5849ca(0xd87)},{'option':_0x5849ca(0x7b9),'value':_0x5849ca(0xa04)},{'option':_0x5849ca(0x15b4),'value':'\x27DADHI\x27'},{'option':_0x5849ca(0x261c),'value':_0x5849ca(0x2465)}],function(_0x5c2a26){const _0x3788f8=_0x5849ca;return _0x28c606()[_0x3788f8(0x1353)](_0x5c2a26['value'],new RegExp('\x27','g'),'');}),_0x1146d9['editstate']=_0x2ab8fb,_0x1146d9[_0x5849ca(0x1531)]=_0x42e4b6,_0x1146d9['gotorealtimegoto']=_0xb617f8,_0x1146d9[_0x5849ca(0x104a)]=_0x454c60,_0x1146d9['deleteconfirm']=_0x1fef4c,_0x1146d9[_0x5849ca(0x1339)]=_0x1e033e,_0x1146d9[_0x5849ca(0x1010)]=_0x13e00f,_0x1146d9[_0x5849ca(0x5a2)]=_0x5bdaed,_0x1146d9['deleteFaxAccount']=_0x35789a,_0x1146d9['exportSelectedFaxAccounts']=_0x18e266,_0x1146d9[_0x5849ca(0x6e7)]=_0x39ff26,_0x1146d9[_0x5849ca(0x2212)]=_0x5a1bd3,_0x1146d9['selectAllFaxAccounts']=_0x20ab60,_0x1b144b[_0x5849ca(0x4de)]('admin')?_0x12a41c['trunk'][_0x5849ca(0x896)]({'fields':'id,name','sort':'name'})['$promise']['then'](function(_0xca13a6){const _0x11b385=_0x5849ca;_0x1146d9[_0x11b385(0xe23)]=_0xca13a6[_0x11b385(0x28b8)]||[];})['catch'](function(_0x209ea5){const _0x4c1cdc=_0x5849ca;_0x1e7b40['error']({'title':_0x209ea5[_0x4c1cdc(0x10b3)]?_0x4c1cdc(0x575)+_0x209ea5[_0x4c1cdc(0x10b3)]+_0x4c1cdc(0x21db)+_0x209ea5[_0x4c1cdc(0x2115)]:_0x4c1cdc(0x1d82),'msg':_0x209ea5[_0x4c1cdc(0x1c52)]?JSON[_0x4c1cdc(0x2317)](_0x209ea5[_0x4c1cdc(0x1c52)]):_0x209ea5[_0x4c1cdc(0x2915)]()});}):_0x12a41c['trunk'][_0x5849ca(0x896)]({'fields':_0x5849ca(0x1427),'sort':_0x5849ca(0x2494)})[_0x5849ca(0x15e7)][_0x5849ca(0x64a)](function(_0x4c9863){const _0x5af0da=_0x5849ca;_0x1146d9[_0x5af0da(0xe23)]=_0x4c9863[_0x5af0da(0x28b8)]||[];})['then'](function(){const _0x1564c6=_0x5849ca;return _0x12a41c['userProfileSection']['get']({'userProfileId':_0x1146d9['currentUser'][_0x1564c6(0x21ac)],'sectionId':0x3f3})[_0x1564c6(0x15e7)];})['then'](function(_0x1dc91e){const _0x16f806=_0x5849ca,_0x9a8757=_0x1dc91e&&_0x1dc91e['rows']?_0x1dc91e['rows'][0x0]:null;if(!_0x9a8757){const _0x2589e0=[],_0xd9d3b0=[];_0x1146d9[_0x16f806(0x198c)][_0x16f806(0x28b8)][_0x16f806(0x1397)](function(_0x4155d2){const _0x512e01=_0x16f806,_0x17da0a=_0x28c606()[_0x512e01(0x27bc)](_0x1146d9['trunks'],{'id':Number(_0x4155d2[_0x512e01(0x1c2)])});_0xd9d3b0[_0x512e01(0x1954)](_0x17da0a);});for(let _0x2f37f0=0x0;_0x2f37f0<_0x1146d9[_0x16f806(0xe23)]['length'];_0x2f37f0++){const _0x5607de=_0x28c606()['some'](_0xd9d3b0,{'id':_0x1146d9[_0x16f806(0xe23)][_0x2f37f0]['id']});_0x5607de&&(_0x1146d9['trunks'][_0x2f37f0]['canSelect']=![],_0x2589e0[_0x16f806(0x1954)](_0x1146d9['trunks'][_0x2f37f0]));}_0x1146d9[_0x16f806(0xe23)]=_0x2589e0;}else{if(!_0x9a8757[_0x16f806(0x11da)])return _0x12a41c[_0x16f806(0x1617)]['get']({'sectionId':_0x9a8757['id']})[_0x16f806(0x15e7)][_0x16f806(0x64a)](function(_0x10c826){const _0x2f52d6=_0x16f806,_0x548732=_0x28c606()[_0x2f52d6(0x1de5)](_0x10c826['rows'],function(_0x15f487){const _0x280b64=_0x2f52d6;return _0x28c606()[_0x280b64(0x27bc)](_0x1146d9[_0x280b64(0xe23)],{'id':_0x15f487['resourceId']});});let _0x3e75ff=null;_0x3e75ff=[],_0x1146d9[_0x2f52d6(0x198c)][_0x2f52d6(0x28b8)]['forEach'](function(_0x465832){const _0x7bd3a0=_0x2f52d6,_0x24d943=_0x28c606()[_0x7bd3a0(0x27bc)](_0x1146d9[_0x7bd3a0(0xe23)],{'id':Number(_0x465832['TrunkId'])});_0x3e75ff[_0x7bd3a0(0x1954)](_0x24d943);}),!_0x28c606()['isEmpty'](_0x3e75ff)&&_0x3e75ff[_0x2f52d6(0x1397)](function(_0x3ffeba){const _0x3ddf8e=_0x2f52d6;if(!_0x28c606()[_0x3ddf8e(0x25f8)](_0x548732,['id',_0x3ffeba['id']])){const _0x44df46=_0x28c606()[_0x3ddf8e(0x27bc)](_0x1146d9[_0x3ddf8e(0xe23)],{'id':_0x3ffeba['id']});_0x44df46['canSelect']=![],_0x548732[_0x3ddf8e(0x1954)](_0x44df46);}}),_0x1146d9[_0x2f52d6(0xe23)]=_0x548732;});}})['catch'](function(_0x434a7c){const _0x1e0563=_0x5849ca;_0x1e7b40[_0x1e0563(0x1bd0)]({'title':_0x434a7c[_0x1e0563(0x10b3)]?_0x1e0563(0x575)+_0x434a7c[_0x1e0563(0x10b3)]+'\x20-\x20'+_0x434a7c[_0x1e0563(0x2115)]:_0x1e0563(0x89a),'msg':_0x434a7c[_0x1e0563(0x1c52)]?JSON['stringify'](_0x434a7c[_0x1e0563(0x1c52)]):_0x434a7c[_0x1e0563(0x2915)]()});}),_0x1b144b[_0x5849ca(0x4de)]('admin')?_0x12a41c['cmList'][_0x5849ca(0x896)]({'fields':_0x5849ca(0x1427),'sort':'name'})[_0x5849ca(0x15e7)]['then'](function(_0x332c1f){const _0x319990=_0x5849ca;_0x1146d9[_0x319990(0x974)]=_0x332c1f['rows']||[];})[_0x5849ca(0x20cd)](function(_0x342b27){const _0x32ed62=_0x5849ca;_0x1e7b40[_0x32ed62(0x1bd0)]({'title':_0x342b27[_0x32ed62(0x10b3)]?_0x32ed62(0x575)+_0x342b27['status']+'\x20-\x20'+_0x342b27['statusText']:_0x32ed62(0x1ed6),'msg':_0x342b27[_0x32ed62(0x1c52)]?JSON['stringify'](_0x342b27[_0x32ed62(0x1c52)]):_0x342b27[_0x32ed62(0x2915)]()});}):_0x12a41c[_0x5849ca(0x19f8)][_0x5849ca(0x896)]({'fields':_0x5849ca(0x1427),'sort':_0x5849ca(0x2494)})[_0x5849ca(0x15e7)][_0x5849ca(0x64a)](function(_0x4a7a51){const _0x136d8a=_0x5849ca;_0x1146d9[_0x136d8a(0x974)]=_0x4a7a51[_0x136d8a(0x28b8)]||[];})[_0x5849ca(0x64a)](function(){const _0x1f214c=_0x5849ca;return _0x12a41c['userProfileSection']['get']({'userProfileId':_0x1146d9['currentUser'][_0x1f214c(0x21ac)],'sectionId':0x12d})[_0x1f214c(0x15e7)];})[_0x5849ca(0x64a)](function(_0x3d9bb0){const _0x26435a=_0x5849ca,_0x43ec68=_0x3d9bb0&&_0x3d9bb0[_0x26435a(0x28b8)]?_0x3d9bb0[_0x26435a(0x28b8)][0x0]:null;if(!_0x43ec68){const _0x10be67=[];let _0x41de8f=null;_0x1146d9[_0x26435a(0x549)]&&(_0x41de8f=_0x28c606()['find'](_0x1146d9['lists'],{'id':Number(_0x1146d9[_0x26435a(0x549)][_0x26435a(0x869)])}));for(let _0x51a833=0x0;_0x51a833<_0x1146d9[_0x26435a(0x974)][_0x26435a(0x1b9e)];_0x51a833++){_0x41de8f&&_0x1146d9[_0x26435a(0x974)][_0x51a833]['id']===_0x41de8f['id']&&(_0x1146d9[_0x26435a(0x974)][_0x51a833][_0x26435a(0xd4f)]=![],_0x10be67['push'](_0x1146d9[_0x26435a(0x974)][_0x51a833]));}_0x1146d9['lists']=_0x10be67;}else{if(!_0x43ec68[_0x26435a(0x11da)])return _0x12a41c[_0x26435a(0x1617)][_0x26435a(0x896)]({'sectionId':_0x43ec68['id']})['$promise'][_0x26435a(0x64a)](function(_0x4e158c){const _0x440c98=_0x26435a,_0x4f34ae=_0x28c606()['map'](_0x4e158c[_0x440c98(0x28b8)],function(_0x2fccc1){const _0x34ff9c=_0x440c98;return _0x28c606()[_0x34ff9c(0x27bc)](_0x1146d9[_0x34ff9c(0x974)],{'id':_0x2fccc1[_0x34ff9c(0x145)]});});let _0x52b8da=null;_0x1146d9[_0x440c98(0x549)]&&(_0x52b8da=_0x28c606()[_0x440c98(0x27bc)](_0x1146d9[_0x440c98(0x974)],{'id':Number(_0x1146d9[_0x440c98(0x549)]['ListId'])}));if(_0x52b8da&&!_0x28c606()['some'](_0x4f34ae,['id',_0x52b8da['id']])){const _0x269a98=_0x28c606()[_0x440c98(0x27bc)](_0x1146d9[_0x440c98(0x974)],{'id':_0x52b8da['id']});_0x269a98['canSelect']=![],_0x4f34ae['push'](_0x269a98);}_0x1146d9[_0x440c98(0x974)]=_0x4f34ae;});}})[_0x5849ca(0x20cd)](function(_0x51781b){const _0x5ee840=_0x5849ca;_0x1e7b40['error']({'title':_0x51781b[_0x5ee840(0x10b3)]?_0x5ee840(0x575)+_0x51781b[_0x5ee840(0x10b3)]+_0x5ee840(0x21db)+_0x51781b[_0x5ee840(0x2115)]:_0x5ee840(0x1beb),'msg':_0x51781b[_0x5ee840(0x1c52)]?JSON[_0x5ee840(0x2317)](_0x51781b[_0x5ee840(0x1c52)]):_0x51781b[_0x5ee840(0x2915)]()});});function _0x2ab8fb(_0x492cd9){_0x5064d8['go']('app.fax.faxAccounts.edit',{'id':_0x492cd9['id'],'faxAccount':_0x492cd9,'crudPermissions':_0x1146d9['crudPermissions']});}function _0x42e4b6(_0x442118){const _0x1a0a1f=_0x5849ca;_0x5064d8['go'](_0x1a0a1f(0x2911),{'id':_0x442118['id'],'tab':0x5});}function _0xb617f8(){const _0x563b60=_0x5849ca;if(_0x1b144b[_0x563b60(0x4de)](_0x563b60(0x333)))_0x5064d8['go'](_0x563b60(0x546),{});else return _0x12a41c[_0x563b60(0x16b2)][_0x563b60(0x896)]({'userProfileId':_0x1b144b[_0x563b60(0x808)]()[_0x563b60(0x21ac)],'sectionId':0x38e})[_0x563b60(0x15e7)][_0x563b60(0x64a)](function(_0x53d24c){const _0x3affde=_0x563b60,_0x22a5f1=_0x53d24c&&_0x53d24c['rows']?_0x53d24c[_0x3affde(0x28b8)][0x0]:null;_0x22a5f1&&_0x22a5f1[_0x3affde(0xe49)]?_0x5064d8['go'](_0x3affde(0x546),{}):_0x1e7b40[_0x3affde(0x772)]({'title':_0xe24cc2[_0x3affde(0x2292)](_0x3affde(0x111a)),'msg':_0xe24cc2[_0x3affde(0x2292)](_0x3affde(0x229))});})[_0x563b60(0x20cd)](function(_0x17d77a){const _0x1539a7=_0x563b60;_0x1e7b40[_0x1539a7(0x1bd0)]({'title':_0x17d77a[_0x1539a7(0x10b3)]?_0x1539a7(0x575)+_0x17d77a[_0x1539a7(0x10b3)]+_0x1539a7(0x21db)+_0x17d77a[_0x1539a7(0x2115)]:'USERPROFILE:GET_SECTION','msg':_0x17d77a[_0x1539a7(0x10b3)]?JSON[_0x1539a7(0x2317)](_0x17d77a[_0x1539a7(0x1c52)]):_0x17d77a[_0x1539a7(0x2915)]()});});}function _0x454c60(_0x2adadf,_0x5d5254){const _0xd6de1e=_0x5849ca;_0x592224[_0xd6de1e(0xa60)]({'controller':_0xd6de1e(0x79b),'controllerAs':'vm','templateUrl':_0x1cbd07,'parent':angular['element'](_0x4adf34['body']),'targetEvent':_0x5d5254,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x2adadf,'faxAccounts':_0x1146d9['faxAccounts']?_0x1146d9[_0xd6de1e(0x198c)][_0xd6de1e(0x28b8)]:[],'crudPermissions':_0x1146d9[_0xd6de1e(0x402)],'realtime':![]}});}function _0x1fef4c(_0x15c275,_0x2563ed){const _0x5346cf=_0x5849ca,_0x405f55=_0x592224['confirm']()[_0x5346cf(0x2021)](_0x5346cf(0x1231)+_0x28c606()[_0x5346cf(0xc01)](_0x5346cf(0x549))+'?')[_0x5346cf(0x33a)](_0x5346cf(0x50b)+(_0x15c275['name']||_0x5346cf(0x549))+''+_0x5346cf(0x4b8))[_0x5346cf(0x213e)](_0x5346cf(0xbe8))[_0x5346cf(0x2283)](_0x2563ed)['ok']('OK')[_0x5346cf(0x101a)]('CANCEL');_0x592224['show'](_0x405f55)[_0x5346cf(0x64a)](function(){_0x35789a(_0x15c275);},function(){console['log']('CANCEL');});}let _0x547f86=!![],_0x50610b=0x1;_0x30c4ec[_0x5849ca(0xc62)](_0x5849ca(0x1cb9),function(_0x5005b3,_0x54915b){const _0x37b94b=_0x5849ca;_0x547f86?_0x3da2f6(function(){_0x547f86=![];}):(!_0x54915b&&(_0x50610b=_0x1146d9['query'][_0x37b94b(0xc72)]),_0x5005b3!==_0x54915b&&(_0x1146d9['query'][_0x37b94b(0xc72)]=0x1),!_0x5005b3&&(_0x1146d9[_0x37b94b(0x289a)][_0x37b94b(0xc72)]=_0x50610b),_0x1146d9[_0x37b94b(0x1010)]());});function _0x1e033e(_0x5789cd){_0x1146d9['faxAccounts']=_0x5789cd||{'count':0x0,'rows':[]};}function _0x13e00f(){const _0x42fd98=_0x5849ca;_0x1146d9['query'][_0x42fd98(0x24f9)]=(_0x1146d9['query'][_0x42fd98(0xc72)]-0x1)*_0x1146d9[_0x42fd98(0x289a)][_0x42fd98(0x25bb)],_0x1b144b[_0x42fd98(0x4de)](_0x42fd98(0x333))?_0x1146d9[_0x42fd98(0x1713)]=_0x12a41c[_0x42fd98(0x549)]['get'](_0x1146d9[_0x42fd98(0x289a)],_0x1e033e)[_0x42fd98(0x15e7)]:(_0x1146d9[_0x42fd98(0x289a)]['id']=_0x1146d9[_0x42fd98(0x16a8)]['id'],_0x1146d9[_0x42fd98(0x289a)][_0x42fd98(0xa21)]=_0x42fd98(0x1d83),_0x1146d9[_0x42fd98(0x1713)]=_0x12a41c[_0x42fd98(0x16a8)][_0x42fd98(0x2565)](_0x1146d9['query'],_0x1e033e)['$promise']);}function _0x5bdaed(_0x1f4fff,_0x27142e){const _0x5e0375=_0x5849ca;_0x592224[_0x5e0375(0xa60)]({'controller':_0x5e0375(0x2232),'controllerAs':'vm','templateUrl':_0x155b4b,'parent':angular[_0x5e0375(0x1f81)](_0x4adf34[_0x5e0375(0xb49)]),'targetEvent':_0x1f4fff,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x27142e,'faxAccounts':_0x1146d9[_0x5e0375(0x198c)][_0x5e0375(0x28b8)],'license':_0x1146d9[_0x5e0375(0x1947)],'setting':_0x1146d9[_0x5e0375(0x28d6)],'crudPermissions':_0x1146d9[_0x5e0375(0x402)]}});}function _0x35789a(_0x520e52){const _0x3f4c16=_0x5849ca;_0x12a41c[_0x3f4c16(0x549)][_0x3f4c16(0xabd)]({'id':_0x520e52['id']})['$promise'][_0x3f4c16(0x64a)](function(){const _0x4e68ad=_0x3f4c16;_0x28c606()[_0x4e68ad(0x21c7)](_0x1146d9['faxAccounts']['rows'],{'id':_0x520e52['id']}),_0x1146d9[_0x4e68ad(0x198c)]['count']-=0x1,!_0x1146d9[_0x4e68ad(0x198c)][_0x4e68ad(0x28b8)]['length']&&_0x1146d9[_0x4e68ad(0x1010)](),_0x1e7b40[_0x4e68ad(0x1339)]({'title':_0x28c606()[_0x4e68ad(0xc01)](_0x4e68ad(0x2513))+_0x4e68ad(0x2502),'msg':_0x520e52[_0x4e68ad(0x2494)]?_0x520e52[_0x4e68ad(0x2494)]+_0x4e68ad(0x1fa8):''});})[_0x3f4c16(0x20cd)](function(_0x2526ae){const _0x50689d=_0x3f4c16;if(_0x2526ae[_0x50689d(0x1c52)]&&_0x2526ae['data'][_0x50689d(0xbae)]&&_0x2526ae[_0x50689d(0x1c52)][_0x50689d(0xbae)]['length']){_0x1146d9[_0x50689d(0xbae)]=_0x2526ae[_0x50689d(0x1c52)]['errors']||[{'message':_0x2526ae['toString'](),'type':_0x50689d(0x147a)}];for(let _0x4a6ad4=0x0;_0x4a6ad4<_0x2526ae[_0x50689d(0x1c52)][_0x50689d(0xbae)][_0x50689d(0x1b9e)];_0x4a6ad4++){_0x1e7b40[_0x50689d(0x1bd0)]({'title':_0x2526ae[_0x50689d(0x1c52)][_0x50689d(0xbae)][_0x4a6ad4][_0x50689d(0x2185)],'msg':_0x2526ae[_0x50689d(0x1c52)][_0x50689d(0xbae)][_0x4a6ad4][_0x50689d(0x18ca)]});}}else _0x1e7b40[_0x50689d(0x1bd0)]({'title':_0x2526ae[_0x50689d(0x10b3)]?_0x50689d(0x575)+_0x2526ae[_0x50689d(0x10b3)]+_0x50689d(0x21db)+_0x2526ae[_0x50689d(0x2115)]:'SYSTEM:DELETEfaxAccount','msg':_0x2526ae[_0x50689d(0x1c52)]?JSON[_0x50689d(0x2317)](_0x2526ae[_0x50689d(0x1c52)][_0x50689d(0x18ca)]):_0x2526ae['message']||_0x2526ae[_0x50689d(0x2915)]()});});}function _0x18e266(){const _0x381584=_0x5849ca,_0x4f4ecc=angular[_0x381584(0x289e)](_0x1146d9[_0x381584(0x24b5)]);return _0x1146d9[_0x381584(0x24b5)]=[],_0x4f4ecc;}function _0x39ff26(_0x106877){const _0x5aa7b5=_0x5849ca,_0x151ebd=_0x592224[_0x5aa7b5(0x856)]()[_0x5aa7b5(0x2021)](_0x5aa7b5(0xaae))['htmlContent'](_0x5aa7b5(0x50b)+_0x1146d9[_0x5aa7b5(0x24b5)]['length']+_0x5aa7b5(0x163e)+_0x5aa7b5(0x4b8))['ariaLabel']('delete\x20FaxAccounts')[_0x5aa7b5(0x2283)](_0x106877)['ok']('OK')[_0x5aa7b5(0x101a)](_0x5aa7b5(0x18fd));_0x592224['show'](_0x151ebd)['then'](function(){const _0x433302=_0x5aa7b5;_0x1146d9[_0x433302(0x24b5)][_0x433302(0x1397)](function(_0x1cd420){_0x35789a(_0x1cd420);}),_0x1146d9[_0x433302(0x24b5)]=[];});}function _0x5a1bd3(){const _0x26f4ee=_0x5849ca;_0x1146d9[_0x26f4ee(0x24b5)]=[];}function _0x20ab60(){const _0x13b705=_0x5849ca;_0x1146d9[_0x13b705(0x24b5)]=_0x1146d9[_0x13b705(0x198c)][_0x13b705(0x28b8)];}}const _0x4a3f0b=_0x35561e;;_0x318a01[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog','$q',_0x49a1e3(0x298c),'toasty',_0x49a1e3(0x21e2),_0x49a1e3(0xf82),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x318a01(_0x30b610,_0x463ca2,_0x55bcc9,_0x190a76,_0x52c49f,_0x138290,_0x398806,_0x2d89fc,_0x2c5831,_0x17de21,_0x457ed1,_0x23b881,_0x2f0344,_0x725d1d){const _0x2f828a=_0x49a1e3,_0x1ba369=this;_0x1ba369[_0x2f828a(0x1d3d)]=_0x457ed1[_0x2f828a(0x808)](),_0x1ba369[_0x2f828a(0xbae)]=[],_0x1ba369[_0x2f828a(0x28d6)]=_0x2f0344,_0x1ba369[_0x2f828a(0x1947)]=_0x23b881,_0x1ba369[_0x2f828a(0x402)]=_0x725d1d,_0x1ba369[_0x2f828a(0x6c2)]={},_0x1ba369[_0x2f828a(0xccc)]=_0x1ba369[_0x2f828a(0x28d6)]&&_0x1ba369[_0x2f828a(0x28d6)][_0x2f828a(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1ba369['title']=_0x2f828a(0x1c10),_0x1ba369[_0x2f828a(0xf82)]=angular[_0x2f828a(0x289e)](_0x2c5831),_0x1ba369[_0x2f828a(0x21e2)]=_0x2d89fc,_0x1ba369[_0x2f828a(0x1599)]=![];!_0x1ba369['faxQueue']&&(_0x1ba369[_0x2f828a(0xf82)]={'strategy':'beepall','timeout':0xa},_0x1ba369['title']='FAX.NEW_FAXQUEUE',_0x1ba369[_0x2f828a(0x1599)]=!![]);_0x1ba369[_0x2f828a(0x15f3)]=_0x27e9af,_0x1ba369['saveFaxQueue']=_0x581570,_0x1ba369[_0x2f828a(0x18e9)]=_0x48b1a4,_0x1ba369[_0x2f828a(0x1605)]=_0x1b7f78,_0x1ba369[_0x2f828a(0x16cb)]=_0x495280;function _0x27e9af(){const _0x1f1c93=_0x2f828a;_0x1ba369[_0x1f1c93(0xbae)]=[],_0x17de21[_0x1f1c93(0xf82)][_0x1f1c93(0x2479)](_0x1ba369[_0x1f1c93(0xf82)])[_0x1f1c93(0x15e7)][_0x1f1c93(0x64a)](function(_0x5c497a){const _0x480094=_0x1f1c93;_0x1ba369[_0x480094(0x21e2)]['unshift'](_0x5c497a[_0x480094(0x14f8)]()),_0x398806['success']({'title':_0x480094(0x183d),'msg':_0x1ba369['faxQueue'][_0x480094(0x2494)]?_0x1ba369[_0x480094(0xf82)][_0x480094(0x2494)]+_0x480094(0x258d):''}),_0x495280(_0x5c497a);})[_0x1f1c93(0x20cd)](function(_0x150723){const _0x1516eb=_0x1f1c93;if(_0x150723['data']&&_0x150723['data'][_0x1516eb(0xbae)]&&_0x150723[_0x1516eb(0x1c52)][_0x1516eb(0xbae)][_0x1516eb(0x1b9e)]){_0x1ba369[_0x1516eb(0xbae)]=_0x150723[_0x1516eb(0x1c52)][_0x1516eb(0xbae)]||[{'message':_0x150723[_0x1516eb(0x2915)](),'type':'api.faxQueue.save'}];for(let _0x2f61c0=0x0;_0x2f61c0<_0x150723['data'][_0x1516eb(0xbae)][_0x1516eb(0x1b9e)];_0x2f61c0+=0x1){_0x398806[_0x1516eb(0x1bd0)]({'title':_0x150723['data']['errors'][_0x2f61c0][_0x1516eb(0x2185)],'msg':_0x150723['data'][_0x1516eb(0xbae)][_0x2f61c0]['message']});}}else _0x398806[_0x1516eb(0x1bd0)]({'title':_0x150723[_0x1516eb(0x10b3)]?_0x1516eb(0x575)+_0x150723[_0x1516eb(0x10b3)]+'\x20-\x20'+_0x150723[_0x1516eb(0x2115)]:'api.faxQueue.save','msg':_0x150723[_0x1516eb(0x1c52)]?JSON['stringify'](_0x150723['data'][_0x1516eb(0x18ca)]):_0x150723[_0x1516eb(0x2915)]()});});}function _0x581570(){const _0x26c1d7=_0x2f828a;_0x1ba369['errors']=[],_0x17de21[_0x26c1d7(0xf82)][_0x26c1d7(0x2603)]({'id':_0x1ba369[_0x26c1d7(0xf82)]['id']},_0x1ba369[_0x26c1d7(0xf82)])[_0x26c1d7(0x15e7)]['then'](function(_0x49b0e4){const _0x682d37=_0x26c1d7,_0x56dde7=_0x28c606()['find'](_0x1ba369['faxQueues'],{'id':_0x49b0e4['id']});_0x56dde7&&_0x28c606()[_0x682d37(0x14fe)](_0x56dde7,_0x28c606()[_0x682d37(0x27bb)](_0x49b0e4['toJSON'](),_0x28c606()[_0x682d37(0x1ec6)](_0x56dde7))),_0x398806[_0x682d37(0x1339)]({'title':'FaxQueue\x20properly\x20saved!','msg':_0x1ba369['faxQueue'][_0x682d37(0x2494)]?_0x1ba369[_0x682d37(0xf82)]['name']+_0x682d37(0x271):''}),_0x495280(_0x49b0e4);})['catch'](function(_0x14e173){const _0x438400=_0x26c1d7;if(_0x14e173[_0x438400(0x1c52)]&&_0x14e173['data'][_0x438400(0xbae)]&&_0x14e173[_0x438400(0x1c52)]['errors'][_0x438400(0x1b9e)]){_0x1ba369[_0x438400(0xbae)]=_0x14e173[_0x438400(0x1c52)]['errors']||[{'message':_0x14e173[_0x438400(0x2915)](),'type':_0x438400(0x1aaa)}];for(let _0x3e13c1=0x0;_0x3e13c1<_0x14e173[_0x438400(0x1c52)][_0x438400(0xbae)]['length'];_0x3e13c1++){_0x398806[_0x438400(0x1bd0)]({'title':_0x14e173[_0x438400(0x1c52)]['errors'][_0x3e13c1][_0x438400(0x2185)],'msg':_0x14e173[_0x438400(0x1c52)][_0x438400(0xbae)][_0x3e13c1][_0x438400(0x18ca)]});}}else _0x398806[_0x438400(0x1bd0)]({'title':_0x14e173[_0x438400(0x10b3)]?_0x438400(0x575)+_0x14e173[_0x438400(0x10b3)]+_0x438400(0x21db)+_0x14e173[_0x438400(0x2115)]:_0x438400(0x1aaa),'msg':_0x14e173[_0x438400(0x1c52)]?JSON[_0x438400(0x2317)](_0x14e173[_0x438400(0x1c52)][_0x438400(0x18ca)]):_0x14e173[_0x438400(0x2915)]()});});}function _0x48b1a4(_0x25b832){const _0x360d2d=_0x2f828a;_0x1ba369[_0x360d2d(0xbae)]=[];const _0x447fa2=_0x190a76['confirm']()[_0x360d2d(0x2021)](_0x360d2d(0x103a))[_0x360d2d(0x12b8)](_0x360d2d(0x1ba4))[_0x360d2d(0x213e)](_0x360d2d(0x209b))['ok'](_0x360d2d(0x2664))[_0x360d2d(0x101a)]('Cancel')[_0x360d2d(0x2283)](_0x25b832);_0x190a76[_0x360d2d(0xa60)](_0x447fa2)['then'](function(){const _0x472d13=_0x360d2d;_0x17de21[_0x472d13(0xf82)][_0x472d13(0xabd)]({'id':_0x1ba369[_0x472d13(0xf82)]['id']})[_0x472d13(0x15e7)][_0x472d13(0x64a)](function(){const _0x222ae1=_0x472d13;_0x28c606()[_0x222ae1(0x21c7)](_0x1ba369[_0x222ae1(0x21e2)],{'id':_0x1ba369['faxQueue']['id']}),_0x398806[_0x222ae1(0x1339)]({'title':_0x222ae1(0x2b7),'msg':(_0x1ba369[_0x222ae1(0xf82)][_0x222ae1(0x2494)]||_0x222ae1(0xf82))+_0x222ae1(0x1fa8)}),_0x495280(_0x1ba369[_0x222ae1(0xf82)]);})['catch'](function(_0x548ca8){const _0x5e1617=_0x472d13;if(_0x548ca8[_0x5e1617(0x1c52)]&&_0x548ca8[_0x5e1617(0x1c52)]['errors']&&_0x548ca8[_0x5e1617(0x1c52)]['errors'][_0x5e1617(0x1b9e)]){_0x1ba369[_0x5e1617(0xbae)]=_0x548ca8[_0x5e1617(0x1c52)][_0x5e1617(0xbae)]||[{'message':_0x548ca8[_0x5e1617(0x2915)](),'type':_0x5e1617(0xc58)}];for(let _0x1fd8be=0x0;_0x1fd8be<_0x548ca8[_0x5e1617(0x1c52)][_0x5e1617(0xbae)][_0x5e1617(0x1b9e)];_0x1fd8be++){_0x398806[_0x5e1617(0x1bd0)]({'title':_0x548ca8['data'][_0x5e1617(0xbae)][_0x1fd8be][_0x5e1617(0x2185)],'msg':_0x548ca8[_0x5e1617(0x1c52)][_0x5e1617(0xbae)][_0x1fd8be][_0x5e1617(0x18ca)]});}}else _0x398806['error']({'title':_0x548ca8[_0x5e1617(0x10b3)]?_0x5e1617(0x575)+_0x548ca8['status']+_0x5e1617(0x21db)+_0x548ca8[_0x5e1617(0x2115)]:_0x5e1617(0xc58),'msg':_0x548ca8['data']?JSON[_0x5e1617(0x2317)](_0x548ca8[_0x5e1617(0x1c52)][_0x5e1617(0x18ca)]):_0x548ca8[_0x5e1617(0x18ca)]||_0x548ca8[_0x5e1617(0x2915)]()});});},function(){});}function _0x1b7f78(_0x304392){return _0x304392===null?undefined:new Date(_0x304392);}function _0x495280(_0x21168c){const _0x51d986=_0x2f828a;_0x190a76[_0x51d986(0x268e)](_0x21168c);}}const _0x13ba65=_0x318a01;;_0x31e65c[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty','api',_0x49a1e3(0xf82),_0x49a1e3(0x21e2),_0x49a1e3(0x252e),_0x49a1e3(0x298c),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x31e65c(_0x279a87,_0x5ff10a,_0x3dbb07,_0x227aad,_0x1ddd0d,_0x4c0729,_0x173ce7,_0x364f43,_0x3dabeb,_0x5caf2d){const _0x3fdc0d=_0x49a1e3,_0x2a0da3=this;_0x2a0da3[_0x3fdc0d(0x1d3d)]=_0x3dabeb[_0x3fdc0d(0x808)](),_0x2a0da3[_0x3fdc0d(0xf82)]=_0x1ddd0d,_0x2a0da3[_0x3fdc0d(0x402)]=_0x5caf2d,_0x2a0da3[_0x3fdc0d(0x252e)]=_0x173ce7,_0x2a0da3['items']=[],_0x2a0da3[_0x3fdc0d(0x13d1)]=[],_0x2a0da3['selectedItems']=[],_0x2a0da3[_0x3fdc0d(0x206b)]=[],_0x2a0da3[_0x3fdc0d(0x24e1)]=[],_0x2a0da3['pendingChanges']=![],_0x2a0da3['onInit']=_0x488576,_0x2a0da3[_0x3fdc0d(0x4c4)]=_0x2d5cfa,_0x2a0da3[_0x3fdc0d(0x16cb)]=_0x2ab305,_0x2a0da3['dualMultiselectOptions']={'readOnly':!_0x2a0da3['crudPermissions'][_0x3fdc0d(0xd86)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x3fdc0d(0x2494),'line1':_0x3fdc0d(0x15c),'line2':[_0x3fdc0d(0x2494),_0x3fdc0d(0xe2f)],'line3':'','labelAll':_0x364f43[_0x3fdc0d(0x2292)](_0x3fdc0d(0x1da4)),'labelSelected':_0x364f43['instant']('APP.SELECTED_AGENTS'),'transferCallback':function(){const _0x124ded=_0x3fdc0d,_0x8c12af=_0x28c606()[_0x124ded(0x1ad)](_0x2a0da3['startingSelectedItems'],_0x2a0da3['selectedItems'],'id');_0x2a0da3[_0x124ded(0xe9e)]=_0x28c606()[_0x124ded(0x940)](_0x8c12af)?![]:!![];}};function _0x488576(){const _0x38b38c=_0x3fdc0d;return _0x3dabeb[_0x38b38c(0x4de)](_0x38b38c(0x333))?_0x57a137()[_0x38b38c(0x20cd)](function(_0x51d486){const _0xaebf3c=_0x38b38c;_0x3dbb07[_0xaebf3c(0x1bd0)]({'title':_0x51d486[_0xaebf3c(0x10b3)]?'API:'+_0x51d486['status']+_0xaebf3c(0x21db)+_0x51d486[_0xaebf3c(0x2115)]:_0xaebf3c(0x554),'msg':_0x51d486[_0xaebf3c(0x10b3)]?JSON['stringify'](_0x51d486[_0xaebf3c(0x1c52)]):_0x51d486['toString']()});}):_0x4b4a1e()['then'](function(_0x3e73b1){return _0x2a0da3['section']=_0x3e73b1,_0x57a137();})[_0x38b38c(0x20cd)](function(_0x23e95b){const _0x2a5981=_0x38b38c;_0x3dbb07[_0x2a5981(0x1bd0)]({'title':_0x23e95b[_0x2a5981(0x10b3)]?_0x2a5981(0x575)+_0x23e95b[_0x2a5981(0x10b3)]+_0x2a5981(0x21db)+_0x23e95b['statusText']:_0x2a5981(0x554),'msg':_0x23e95b[_0x2a5981(0x10b3)]?JSON[_0x2a5981(0x2317)](_0x23e95b[_0x2a5981(0x1c52)]):_0x23e95b[_0x2a5981(0x2915)]()});});}function _0x4b4a1e(){return _0x5ff10a(function(_0x86b954,_0x3e634a){const _0x80e69=a0_0x4127;_0x227aad[_0x80e69(0x16b2)]['get']({'userProfileId':_0x2a0da3[_0x80e69(0x1d3d)][_0x80e69(0x21ac)],'name':_0x80e69(0x2132)})[_0x80e69(0x15e7)][_0x80e69(0x64a)](function(_0x4050fb){const _0x5c8255=_0x80e69,_0x1682c4=_0x4050fb&&_0x4050fb['rows']?_0x4050fb[_0x5c8255(0x28b8)][0x0]:null;_0x86b954(_0x1682c4);})[_0x80e69(0x20cd)](function(_0x587e4e){_0x3e634a(_0x587e4e);});});}function _0x57a137(){return _0x5ff10a(function(_0x34eb99,_0x1c7b8c){const _0x150799=a0_0x4127;return _0x2341da()[_0x150799(0x64a)](function(_0x5c28b7){const _0x26e27d=_0x150799;return _0x2a0da3['items']=_0x5c28b7['rows']?_0x5c28b7['rows']:[],_0x3dabeb[_0x26e27d(0x4de)](_0x26e27d(0x333))?_0x5c28b7:_0x2a0da3[_0x26e27d(0xa21)]?_0x2a0da3[_0x26e27d(0xa21)]['autoAssociation']?_0x5c28b7:_0x3aa6bf():null;})['then'](function(_0x515b60){const _0x39733f=_0x150799,_0x59cb34=_0x515b60&&_0x515b60['rows']?_0x515b60[_0x39733f(0x28b8)]:[];return _0x2a0da3[_0x39733f(0x13d1)]=_0x28c606()['map'](_0x59cb34,function(_0x5c4ca7){const _0x4ec8b7=_0x39733f;return _0x28c606()[_0x4ec8b7(0x27bc)](_0x2a0da3['items'],{'id':_0x3dabeb[_0x4ec8b7(0x4de)](_0x4ec8b7(0x333))||_0x2a0da3[_0x4ec8b7(0xa21)]['autoAssociation']?_0x5c4ca7['id']:_0x5c4ca7[_0x4ec8b7(0x145)]});}),_0x2a0da3['startingAllowedItems']=angular[_0x39733f(0x289e)](_0x2a0da3['allowedItems']),_0x2a0da3[_0x39733f(0x23cb)][_0x39733f(0x1397)](function(_0x54001e){const _0x398afb=_0x39733f,_0x52bf40=_0x28c606()[_0x398afb(0x27bc)](_0x2a0da3[_0x398afb(0x13d1)],{'id':_0x54001e['id']});_0x3dabeb[_0x398afb(0x4de)](_0x398afb(0x333))?_0x54001e[_0x398afb(0x6f9)]=!![]:_0x54001e['isValid']=typeof _0x52bf40!==_0x398afb(0x19a1)?!![]:![];}),_0x57f193();})[_0x150799(0x64a)](function(_0x1d4460){const _0x1b686a=_0x150799,_0x28f5dc=_0x1d4460&&_0x1d4460[_0x1b686a(0x28b8)]?_0x1d4460[_0x1b686a(0x28b8)]:[];_0x2a0da3['selectedItems']=_0x28c606()[_0x1b686a(0x1de5)](_0x28f5dc,function(_0x4618f2){const _0x27992c=_0x1b686a,_0x43689c=_0x28c606()[_0x27992c(0x27bc)](_0x2a0da3[_0x27992c(0x23cb)],{'id':_0x4618f2['id']});return _0x43689c['penalty']=_0x4618f2[_0x27992c(0x2de)]?'penalty\x20'+_0x4618f2[_0x27992c(0x2de)]['penalty']:'',_0x43689c[_0x27992c(0xe2f)]=typeof _0x4618f2[_0x27992c(0xe2f)]!==_0x27992c(0x19a1)?'<'+_0x4618f2[_0x27992c(0xe2f)]+'>':'',_0x43689c;}),_0x2a0da3[_0x1b686a(0x24e1)]=angular[_0x1b686a(0x289e)](_0x2a0da3[_0x1b686a(0x1f4f)]),_0x2a0da3[_0x1b686a(0x1eeb)][_0x1b686a(0x1f4f)]=_0x2a0da3['selectedItems'],_0x2a0da3[_0x1b686a(0x1eeb)][_0x1b686a(0x23cb)]=_0x28c606()['differenceBy'](_0x2a0da3[_0x1b686a(0x13d1)],_0x2a0da3[_0x1b686a(0x1eeb)][_0x1b686a(0x1f4f)],'id'),_0x34eb99();})['catch'](function(_0x11b5be){_0x1c7b8c(_0x11b5be);});});}function _0x3aa6bf(){return _0x5ff10a(function(_0x4202d6,_0x382246){const _0xe7923d=a0_0x4127;return _0x227aad['userProfileResource'][_0xe7923d(0x896)]({'sectionId':_0x2a0da3[_0xe7923d(0xa21)]['id'],'nolimit':!![]})[_0xe7923d(0x15e7)][_0xe7923d(0x64a)](function(_0x288504){_0x4202d6(_0x288504);})['catch'](function(_0x39a6f0){_0x382246(_0x39a6f0);});});}function _0x57f193(){return _0x5ff10a(function(_0x572a88,_0x1d22a7){const _0x416fe4=a0_0x4127;return _0x227aad[_0x416fe4(0xf82)]['getAgents']({'id':_0x2a0da3[_0x416fe4(0xf82)]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x416fe4(0x11ae)})['$promise'][_0x416fe4(0x64a)](function(_0x1b171c){_0x572a88(_0x1b171c);})[_0x416fe4(0x20cd)](function(_0x2b2885){_0x1d22a7(_0x2b2885);});});}function _0x2341da(){return _0x5ff10a(function(_0x5711f8,_0x9426df){const _0x12b722=a0_0x4127;return _0x227aad['user'][_0x12b722(0x896)]({'fields':_0x12b722(0x2105),'nolimit':!![],'role':_0x12b722(0x11ae)})[_0x12b722(0x15e7)][_0x12b722(0x64a)](function(_0x29124e){_0x5711f8(_0x29124e);})[_0x12b722(0x20cd)](function(_0x32bf7d){_0x9426df(_0x32bf7d);});});}function _0x35bbdf(_0x4fbdab){return _0x5ff10a(function(_0x463f78,_0x21c2e6){const _0x2901fc=a0_0x4127;_0x28c606()[_0x2901fc(0x940)](_0x4fbdab)?_0x463f78():_0x227aad[_0x2901fc(0xf82)][_0x2901fc(0x1575)]({'id':_0x2a0da3['faxQueue']['id'],'ids':_0x28c606()[_0x2901fc(0x1de5)](_0x4fbdab,'id')})[_0x2901fc(0x15e7)][_0x2901fc(0x64a)](function(){_0x463f78();})['catch'](function(_0x508a91){_0x21c2e6(_0x508a91);});});}function _0xf6b340(_0x10a047){return _0x5ff10a(function(_0x426614,_0x1778a8){const _0xe746f9=a0_0x4127;_0x28c606()[_0xe746f9(0x940)](_0x10a047)?_0x426614():_0x227aad[_0xe746f9(0xf82)][_0xe746f9(0x251d)]({'id':_0x2a0da3[_0xe746f9(0xf82)]['id'],'ids':_0x28c606()['map'](_0x10a047,'id')})['$promise'][_0xe746f9(0x64a)](function(){_0x426614();})[_0xe746f9(0x20cd)](function(_0x4b675b){_0x1778a8(_0x4b675b);});});}function _0x2d5cfa(){const _0x2bc568=_0x3fdc0d,_0x21db89=_0x28c606()[_0x2bc568(0x23e5)](_0x2a0da3[_0x2bc568(0x24e1)],_0x2a0da3[_0x2bc568(0x1f4f)],'id'),_0x113766=_0x28c606()[_0x2bc568(0x23e5)](_0x2a0da3[_0x2bc568(0x1f4f)],_0x2a0da3[_0x2bc568(0x24e1)],'id');return _0xf6b340(_0x21db89)[_0x2bc568(0x64a)](function(){return _0x35bbdf(_0x113766);})['then'](function(){const _0x174dca=_0x2bc568;_0x2a0da3[_0x174dca(0xe9e)]=![],_0x2a0da3['startingAllowedItems']=angular[_0x174dca(0x289e)](_0x2a0da3[_0x174dca(0x13d1)]),_0x2a0da3[_0x174dca(0x24e1)]=angular['copy'](_0x2a0da3[_0x174dca(0x1f4f)]),_0x3dbb07['success']({'title':_0x174dca(0x24d6),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x2bc568(0x20cd)](function(_0x5d0fe7){const _0x414aeb=_0x2bc568;_0x3dbb07[_0x414aeb(0x1bd0)]({'title':_0x5d0fe7[_0x414aeb(0x10b3)]?_0x414aeb(0x575)+_0x5d0fe7[_0x414aeb(0x10b3)]+'\x20-\x20'+_0x5d0fe7['statusText']:_0x414aeb(0x1226),'msg':_0x5d0fe7[_0x414aeb(0x10b3)]?JSON[_0x414aeb(0x2317)](_0x5d0fe7['data']):_0x5d0fe7['toString']()});});}function _0x2ab305(){const _0x2c1a80=_0x3fdc0d;_0x279a87[_0x2c1a80(0x268e)]();}}const _0x4b93f6=_0x31e65c;;_0x425387[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa19),'faxQueue',_0x49a1e3(0x298c),'Auth',_0x49a1e3(0x402)];function _0x425387(_0x164dc0,_0x126692,_0x264b34,_0xa858cf,_0x527773,_0x42867c,_0x450123,_0x1978ac){const _0x2a73ae=_0x49a1e3,_0x444ad0=this;_0x444ad0[_0x2a73ae(0x1d3d)]=_0x450123[_0x2a73ae(0x808)](),_0x444ad0[_0x2a73ae(0xf82)]=_0x527773,_0x444ad0['crudPermissions']=_0x1978ac,_0x444ad0[_0x2a73ae(0x23cb)]=[],_0x444ad0[_0x2a73ae(0x13d1)]=[],_0x444ad0[_0x2a73ae(0x1f4f)]=[],_0x444ad0[_0x2a73ae(0x206b)]=[],_0x444ad0['startingSelectedItems']=[],_0x444ad0['pendingChanges']=![],_0x444ad0[_0x2a73ae(0x1eeb)]={'readOnly':!_0x444ad0[_0x2a73ae(0x402)]['canEdit'],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2a73ae(0x2494),'line1':'name','line2':'','line3':'','labelAll':_0x42867c['instant'](_0x2a73ae(0x1ef1)),'labelSelected':_0x42867c[_0x2a73ae(0x2292)](_0x2a73ae(0x2936)),'transferCallback':function(){const _0x2e2074=_0x2a73ae,_0x5fe029=_0x28c606()[_0x2e2074(0x1ad)](_0x444ad0[_0x2e2074(0x24e1)],_0x444ad0['selectedItems'],'id');_0x444ad0[_0x2e2074(0xe9e)]=_0x28c606()[_0x2e2074(0x940)](_0x5fe029)?![]:!![];}},_0x444ad0[_0x2a73ae(0x2483)]=_0x44d994,_0x444ad0['saveTeams']=_0xf9b280,_0x444ad0[_0x2a73ae(0x16cb)]=_0x396dab;function _0x44d994(){const _0x3004fd=_0x2a73ae;return _0x450123[_0x3004fd(0x4de)](_0x3004fd(0x333))?_0x202bd1()[_0x3004fd(0x20cd)](function(_0x12114a){const _0x56385f=_0x3004fd;_0x264b34['error']({'title':_0x12114a['status']?_0x56385f(0x575)+_0x12114a['status']+'\x20-\x20'+_0x12114a[_0x56385f(0x2115)]:_0x56385f(0x1542),'msg':_0x12114a[_0x56385f(0x10b3)]?JSON[_0x56385f(0x2317)](_0x12114a[_0x56385f(0x1c52)]):_0x12114a[_0x56385f(0x2915)]()});}):_0x1dea07()[_0x3004fd(0x64a)](function(_0x336524){const _0x4e4eae=_0x3004fd;return _0x444ad0[_0x4e4eae(0xa21)]=_0x336524,_0x202bd1();})[_0x3004fd(0x20cd)](function(_0x46fdd3){const _0x30520b=_0x3004fd;_0x264b34[_0x30520b(0x1bd0)]({'title':_0x46fdd3[_0x30520b(0x10b3)]?'API:'+_0x46fdd3[_0x30520b(0x10b3)]+_0x30520b(0x21db)+_0x46fdd3['statusText']:_0x30520b(0x1542),'msg':_0x46fdd3['status']?JSON[_0x30520b(0x2317)](_0x46fdd3[_0x30520b(0x1c52)]):_0x46fdd3[_0x30520b(0x2915)]()});});}function _0x1dea07(){return _0x126692(function(_0x15e16e,_0x3ac2a2){const _0x22600d=a0_0x4127;_0xa858cf[_0x22600d(0x16b2)][_0x22600d(0x896)]({'userProfileId':_0x444ad0[_0x22600d(0x1d3d)]['userProfileId'],'name':_0x22600d(0x286d)})[_0x22600d(0x15e7)][_0x22600d(0x64a)](function(_0x1a9f10){const _0x43a9f9=_0x22600d,_0x213ebf=_0x1a9f10&&_0x1a9f10['rows']?_0x1a9f10[_0x43a9f9(0x28b8)][0x0]:null;_0x15e16e(_0x213ebf);})[_0x22600d(0x20cd)](function(_0x1c5a7e){_0x3ac2a2(_0x1c5a7e);});});}function _0x202bd1(){return _0x126692(function(_0x5b4479,_0x47b7e0){const _0xcf0959=a0_0x4127;return _0x5c68b9()['then'](function(_0x39d1a8){const _0x3b0f7c=a0_0x4127;return _0x444ad0[_0x3b0f7c(0x23cb)]=_0x39d1a8[_0x3b0f7c(0x28b8)]?_0x39d1a8[_0x3b0f7c(0x28b8)]:[],_0x450123['hasRole'](_0x3b0f7c(0x333))?_0x39d1a8:_0x444ad0['section']?_0x444ad0[_0x3b0f7c(0xa21)][_0x3b0f7c(0x11da)]?_0x39d1a8:_0x49c5c1():null;})[_0xcf0959(0x64a)](function(_0x2fb61d){const _0xd9e915=_0xcf0959,_0x47c4d1=_0x2fb61d&&_0x2fb61d[_0xd9e915(0x28b8)]?_0x2fb61d[_0xd9e915(0x28b8)]:[];return _0x444ad0['allowedItems']=_0x28c606()['map'](_0x47c4d1,function(_0x1764b1){const _0x25a290=_0xd9e915;return _0x28c606()['find'](_0x444ad0[_0x25a290(0x23cb)],{'id':_0x450123[_0x25a290(0x4de)](_0x25a290(0x333))||_0x444ad0['section'][_0x25a290(0x11da)]?_0x1764b1['id']:_0x1764b1[_0x25a290(0x145)]});}),_0x444ad0[_0xd9e915(0x23cb)][_0xd9e915(0x1397)](function(_0x2f66c1){const _0x2f0071=_0xd9e915,_0x595a7b=_0x28c606()[_0x2f0071(0x27bc)](_0x444ad0[_0x2f0071(0x13d1)],{'id':_0x2f66c1['id']});_0x450123[_0x2f0071(0x4de)](_0x2f0071(0x333))?_0x2f66c1[_0x2f0071(0x6f9)]=!![]:_0x2f66c1['isValid']=typeof _0x595a7b!==_0x2f0071(0x19a1)?!![]:![];}),_0x359864();})[_0xcf0959(0x64a)](function(_0x356850){const _0x4e6aca=_0xcf0959,_0x3bc0da=_0x356850&&_0x356850[_0x4e6aca(0x28b8)]?_0x356850['rows']:[];_0x444ad0[_0x4e6aca(0x1f4f)]=_0x28c606()[_0x4e6aca(0x1de5)](_0x3bc0da,function(_0x15a397){const _0x48411b=_0x4e6aca;return _0x28c606()['find'](_0x444ad0[_0x48411b(0x23cb)],{'id':_0x15a397['id']});}),_0x444ad0['startingSelectedItems']=angular['copy'](_0x444ad0[_0x4e6aca(0x1f4f)]),_0x444ad0[_0x4e6aca(0x1eeb)][_0x4e6aca(0x1f4f)]=_0x444ad0[_0x4e6aca(0x1f4f)],_0x444ad0[_0x4e6aca(0x1eeb)]['items']=_0x28c606()[_0x4e6aca(0x23e5)](_0x444ad0[_0x4e6aca(0x13d1)],_0x444ad0[_0x4e6aca(0x1eeb)][_0x4e6aca(0x1f4f)],'id'),_0x5b4479();})[_0xcf0959(0x20cd)](function(_0x3ae128){_0x47b7e0(_0x3ae128);});});}function _0x49c5c1(){return _0x126692(function(_0x258f87,_0x593649){const _0x1de523=a0_0x4127;return _0xa858cf[_0x1de523(0x1617)][_0x1de523(0x896)]({'sectionId':_0x444ad0[_0x1de523(0xa21)]['id'],'nolimit':!![]})[_0x1de523(0x15e7)][_0x1de523(0x64a)](function(_0x1a84b0){_0x258f87(_0x1a84b0);})[_0x1de523(0x20cd)](function(_0x37de6f){_0x593649(_0x37de6f);});});}function _0x359864(){return _0x126692(function(_0x134ccb,_0x20ba4c){const _0x310b79=a0_0x4127;return _0xa858cf[_0x310b79(0xf82)][_0x310b79(0x151d)]({'id':_0x444ad0['faxQueue']['id'],'fields':_0x310b79(0x1427),'nolimit':!![]})['$promise'][_0x310b79(0x64a)](function(_0x4b56fa){_0x134ccb(_0x4b56fa);})[_0x310b79(0x20cd)](function(_0x46ddb0){_0x20ba4c(_0x46ddb0);});});}function _0x5c68b9(){return _0x126692(function(_0x155ba9,_0x4d56de){const _0x275ea6=a0_0x4127;return _0xa858cf[_0x275ea6(0x15ea)][_0x275ea6(0x896)]({'fields':_0x275ea6(0x1427),'nolimit':!![]})['$promise']['then'](function(_0x210c6a){_0x155ba9(_0x210c6a);})['catch'](function(_0x1765db){_0x4d56de(_0x1765db);});});}function _0x2688b5(_0xe57cd6){return _0x126692(function(_0x4c7fd2,_0x3796fa){const _0x40f020=a0_0x4127;_0x28c606()[_0x40f020(0x940)](_0xe57cd6)?_0x4c7fd2():_0xa858cf[_0x40f020(0xf82)][_0x40f020(0x1858)]({'id':_0x444ad0[_0x40f020(0xf82)]['id'],'ids':_0x28c606()[_0x40f020(0x1de5)](_0xe57cd6,'id')})['$promise'][_0x40f020(0x64a)](function(){_0x4c7fd2();})[_0x40f020(0x20cd)](function(_0x31063f){_0x3796fa(_0x31063f);});});}function _0x1ba0be(_0x4004fb){return _0x126692(function(_0x430246,_0x54aaea){const _0x2a221d=a0_0x4127;_0x28c606()[_0x2a221d(0x940)](_0x4004fb)?_0x430246():_0xa858cf[_0x2a221d(0xf82)]['removeTeams']({'id':_0x444ad0[_0x2a221d(0xf82)]['id'],'ids':_0x28c606()['map'](_0x4004fb,'id')})['$promise'][_0x2a221d(0x64a)](function(){_0x430246();})[_0x2a221d(0x20cd)](function(_0x27c6c5){_0x54aaea(_0x27c6c5);});});}function _0xf9b280(){const _0x15349a=_0x2a73ae,_0x532a70=_0x28c606()[_0x15349a(0x23e5)](_0x444ad0[_0x15349a(0x24e1)],_0x444ad0[_0x15349a(0x1f4f)],'id'),_0x22d0de=_0x28c606()[_0x15349a(0x23e5)](_0x444ad0['selectedItems'],_0x444ad0[_0x15349a(0x24e1)],'id');return _0x1ba0be(_0x532a70)[_0x15349a(0x64a)](function(){return _0x2688b5(_0x22d0de);})[_0x15349a(0x64a)](function(){const _0x5ce2fd=_0x15349a;_0x444ad0[_0x5ce2fd(0xe9e)]=![],_0x444ad0['startingAllowedItems']=angular['copy'](_0x444ad0[_0x5ce2fd(0x13d1)]),_0x444ad0[_0x5ce2fd(0x24e1)]=angular['copy'](_0x444ad0['selectedItems']),_0x264b34[_0x5ce2fd(0x1339)]({'title':_0x5ce2fd(0x24d6),'msg':_0x5ce2fd(0x1932)});})[_0x15349a(0x20cd)](function(_0x3725c5){const _0x26451b=_0x15349a;_0x264b34[_0x26451b(0x1bd0)]({'title':_0x3725c5[_0x26451b(0x10b3)]?_0x26451b(0x575)+_0x3725c5['status']+_0x26451b(0x21db)+_0x3725c5[_0x26451b(0x2115)]:_0x26451b(0x1226),'msg':_0x3725c5['status']?JSON['stringify'](_0x3725c5[_0x26451b(0x1c52)]):_0x3725c5[_0x26451b(0x2915)]()});});}function _0x396dab(){_0x164dc0['hide']();}}const _0x3132a9=_0x425387;;const _0x500c8e=_0x2e4a48['p']+_0x49a1e3(0x16b8);;_0x43edf0['$inject']=['$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$document',_0x49a1e3(0x298c),'license',_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),'Auth',_0x49a1e3(0xf82),_0x49a1e3(0x16b2)];function _0x43edf0(_0x80d70e,_0xdcad45,_0x2c776e,_0x50f6fa,_0x644185,_0x5a3f30,_0x3cc69f,_0xf92b92,_0x48726f,_0x2a8849,_0x2fdf87,_0x3d1e4a){const _0x5e2df6=_0x49a1e3,_0x3648ce=this;_0x3648ce['currentUser']=_0x2a8849['getCurrentUser'](),_0x3648ce['license']=_0x5a3f30,_0x3648ce[_0x5e2df6(0x28d6)]=_0x3cc69f,_0x3648ce[_0x5e2df6(0xccc)]=_0x3648ce[_0x5e2df6(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3648ce[_0x5e2df6(0xb36)]=_0xdcad45[_0x5e2df6(0x48e)]()+_0x5e2df6(0xe1f)+_0xdcad45[_0x5e2df6(0x1e5d)](),_0x3648ce['faxQueue']=_0x2fdf87||_0x80d70e[_0x5e2df6(0x1b48)][_0x5e2df6(0xf82)]||{},_0x3648ce['userProfileSection']=_0x3d1e4a&&_0x3d1e4a['count']==0x1?_0x3d1e4a['rows'][0x0]:null,_0x3648ce[_0x5e2df6(0x402)]=_0x2a8849[_0x5e2df6(0xa7e)](_0x3648ce['userProfileSection']?_0x3648ce[_0x5e2df6(0x16b2)][_0x5e2df6(0x402)]:null),_0x3648ce[_0x5e2df6(0x6c2)]={},_0x3648ce[_0x5e2df6(0x197c)]=_0x80d70e['params']['tab']||0x0,_0x3648ce[_0x5e2df6(0x1a72)]=_0x256c26,_0x3648ce[_0x5e2df6(0x104a)]=_0x117f74,_0x3648ce[_0x5e2df6(0x2540)]=_0x48726f[_0x5e2df6(0x772)],_0x3648ce[_0x5e2df6(0x203f)]=_0x16ea7a,_0x3648ce[_0x5e2df6(0xedb)]=_0x61322b;function _0x256c26(_0x3c888e,_0x244612){const _0x3d2cdd=_0x5e2df6;_0x2c776e[_0x3d2cdd(0xa60)]({'controller':_0x3d2cdd(0x206d),'controllerAs':'vm','templateUrl':_0x500c8e,'parent':angular['element'](_0x50f6fa[_0x3d2cdd(0xb49)]),'targetEvent':_0x244612,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x3c888e,'faxQueues':_0x3648ce[_0x3d2cdd(0x21e2)]?_0x3648ce[_0x3d2cdd(0x21e2)][_0x3d2cdd(0x28b8)]:[],'crudPermissions':_0x3648ce[_0x3d2cdd(0x402)]}});}function _0x117f74(_0x34da65,_0x50a12e){const _0x34e35c=_0x5e2df6;_0x2c776e[_0x34e35c(0xa60)]({'controller':_0x34e35c(0x13b),'controllerAs':'vm','templateUrl':_0x13ad17,'parent':angular['element'](_0x50f6fa[_0x34e35c(0xb49)]),'targetEvent':_0x50a12e,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x34da65,'faxQueues':_0x3648ce[_0x34e35c(0x21e2)]?_0x3648ce[_0x34e35c(0x21e2)][_0x34e35c(0x28b8)]:[],'crudPermissions':_0x3648ce['crudPermissions'],'realtime':![]}});}function _0x16ea7a(){const _0x43bc95=_0x5e2df6;_0x80d70e['go']('app.fax.faxQueues',{},{'reload':_0x43bc95(0x1995)});}function _0x61322b(){const _0x43691b=_0x5e2df6;_0xf92b92[_0x43691b(0xf82)][_0x43691b(0x2603)]({'id':_0x3648ce[_0x43691b(0xf82)]['id']},_0x3648ce[_0x43691b(0xf82)])[_0x43691b(0x15e7)][_0x43691b(0x64a)](function(){const _0x5b0f4e=_0x43691b;_0x48726f[_0x5b0f4e(0x1339)]({'title':_0x5b0f4e(0x1cdf),'msg':_0x3648ce[_0x5b0f4e(0xf82)][_0x5b0f4e(0x2494)]?_0x3648ce[_0x5b0f4e(0xf82)]['name']+'\x20has\x20been\x20updated!':''});})[_0x43691b(0x20cd)](function(_0x313808){const _0xa6f1b5=_0x43691b;_0x48726f[_0xa6f1b5(0x1bd0)]({'title':_0x313808[_0xa6f1b5(0x10b3)]?_0xa6f1b5(0x575)+_0x313808[_0xa6f1b5(0x10b3)]+_0xa6f1b5(0x21db)+_0x313808['statusText']:_0xa6f1b5(0x13ee),'msg':_0x313808['data']?JSON[_0xa6f1b5(0x2317)](_0x313808[_0xa6f1b5(0x1c52)]):_0x313808[_0xa6f1b5(0x2915)]()});});}}const _0x22628e=_0x43edf0;;_0xcbb391['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),'$timeout',_0x49a1e3(0x298c),'faxQueues','userProfile',_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),'Auth','license',_0x49a1e3(0x28d6)];function _0xcbb391(_0x21e4be,_0xbbc74d,_0x5dbef2,_0x1dfd86,_0xc2c3a,_0x5cd65c,_0x2ca7f4,_0x4e9258,_0x2c83ce,_0x2eda27,_0x176131,_0x527eec,_0x16106c,_0x361a6a,_0x2a1e56,_0x346a66,_0x3c3006){const _0x4eed5d=_0x49a1e3,_0x430428=this;_0x430428[_0x4eed5d(0x1947)]=_0x346a66,_0x430428[_0x4eed5d(0x28d6)]=_0x3c3006,_0x430428['currentUser']=_0x2a1e56[_0x4eed5d(0x808)](),_0x430428[_0x4eed5d(0x21e2)]=_0x2c83ce||{'count':0x0,'rows':[]},_0x430428[_0x4eed5d(0x16a8)]=_0x2eda27,_0x430428[_0x4eed5d(0x16b2)]=_0x176131&&_0x176131[_0x4eed5d(0xb90)]==0x1?_0x176131[_0x4eed5d(0x28b8)][0x0]:null,_0x430428[_0x4eed5d(0x402)]=_0x2a1e56[_0x4eed5d(0xa7e)](_0x430428['userProfileSection']?_0x430428['userProfileSection'][_0x4eed5d(0x402)]:null),_0x430428[_0x4eed5d(0x185d)]=_0x4eed5d(0x21e2),_0x430428[_0x4eed5d(0x300)]='',_0x430428[_0x4eed5d(0x2748)]=null,_0x430428[_0x4eed5d(0x60c)]=[],_0x430428[_0x4eed5d(0x289a)]={'fields':_0x4eed5d(0x1649),'sort':'-updatedAt','channel':_0x4eed5d(0x1d37),'limit':0xa,'page':0x1},_0x430428[_0x4eed5d(0xc25)]=_0x28c606()[_0x4eed5d(0x161e)]([{'option':_0x4eed5d(0x618),'value':_0x4eed5d(0x2342)},{'option':_0x4eed5d(0x773),'value':_0x4eed5d(0x1dfa)}],function(_0x3544b8){const _0x2e97bc=_0x4eed5d;return _0x28c606()[_0x2e97bc(0x1353)](_0x3544b8[_0x2e97bc(0x1096)],new RegExp('\x27','g'),'');}),_0x430428['editstate']=_0x4dcee9,_0x430428['teamadddialog']=_0x188928,_0x430428[_0x4eed5d(0x104a)]=_0x30f806,_0x430428['deleteconfirm']=_0x2850e1,_0x430428[_0x4eed5d(0x93f)]=_0x1d9129,_0x430428[_0x4eed5d(0x1339)]=_0x4a4188,_0x430428[_0x4eed5d(0x20a3)]=_0xc73daa,_0x430428[_0x4eed5d(0xbc4)]=_0x2a655c,_0x430428[_0x4eed5d(0x18e9)]=_0x354175,_0x430428[_0x4eed5d(0x138d)]=_0x1ad2ab,_0x430428[_0x4eed5d(0x1668)]=_0x4ccc91,_0x430428['deselectFaxQueues']=_0x1530bc,_0x430428[_0x4eed5d(0x245a)]=_0x10eec0;function _0x4dcee9(_0x3f2577){const _0x4cb64b=_0x4eed5d;_0x5dbef2['go']('app.fax.faxQueues.edit',{'id':_0x3f2577['id'],'faxQueue':_0x3f2577,'crudPermissions':_0x430428[_0x4cb64b(0x402)]});}function _0x188928(_0x172608,_0x68d42d){const _0x549d58=_0x4eed5d;_0xc2c3a[_0x549d58(0xa60)]({'controller':_0x549d58(0x206d),'controllerAs':'vm','templateUrl':_0x500c8e,'parent':angular[_0x549d58(0x1f81)](_0x5cd65c[_0x549d58(0xb49)]),'targetEvent':_0x68d42d,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x172608,'faxQueues':_0x430428['faxQueues']?_0x430428[_0x549d58(0x21e2)][_0x549d58(0x28b8)]:[],'crudPermissions':_0x430428[_0x549d58(0x402)]}});}function _0x30f806(_0x5a6a10,_0xff9f7){const _0x208fa1=_0x4eed5d;_0xc2c3a[_0x208fa1(0xa60)]({'controller':_0x208fa1(0x13b),'controllerAs':'vm','templateUrl':_0x13ad17,'parent':angular[_0x208fa1(0x1f81)](_0x5cd65c[_0x208fa1(0xb49)]),'targetEvent':_0xff9f7,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x5a6a10,'faxQueues':_0x430428[_0x208fa1(0x21e2)]?_0x430428[_0x208fa1(0x21e2)]['rows']:[],'crudPermissions':_0x430428[_0x208fa1(0x402)],'realtime':![]}});}function _0x2850e1(_0xa3fdb,_0x47b37d){const _0x3bac91=_0x4eed5d,_0x591261=_0xc2c3a[_0x3bac91(0x856)]()['title'](_0x3bac91(0x1231)+_0x28c606()[_0x3bac91(0xc01)]('faxQueue')+'?')[_0x3bac91(0x33a)](''+(_0xa3fdb['name']||_0x3bac91(0xf82))+_0x3bac91(0x26d0)+_0x3bac91(0x4b8))[_0x3bac91(0x213e)](_0x3bac91(0x5fd))[_0x3bac91(0x2283)](_0x47b37d)['ok']('OK')[_0x3bac91(0x101a)](_0x3bac91(0x18fd));_0xc2c3a[_0x3bac91(0xa60)](_0x591261)[_0x3bac91(0x64a)](function(){_0x354175(_0xa3fdb);},function(){const _0x14f4a9=_0x3bac91;console[_0x14f4a9(0x9b4)](_0x14f4a9(0x18fd));});}function _0x1d9129(){const _0x35751b=_0x4eed5d;if(_0x2a1e56[_0x35751b(0x4de)](_0x35751b(0x333)))_0x5dbef2['go'](_0x35751b(0x78b),{});else return _0x527eec['userProfileSection'][_0x35751b(0x896)]({'userProfileId':_0x2a1e56[_0x35751b(0x808)]()[_0x35751b(0x21ac)],'sectionId':0x38e})['$promise'][_0x35751b(0x64a)](function(_0x4a64d7){const _0x2917bc=_0x35751b,_0x5b80ac=_0x4a64d7&&_0x4a64d7[_0x2917bc(0x28b8)]?_0x4a64d7['rows'][0x0]:null;_0x5b80ac&&_0x5b80ac[_0x2917bc(0xe49)]?_0x5dbef2['go']('app.fax.realtime.queues',{}):_0x361a6a['info']({'title':_0x4e9258[_0x2917bc(0x2292)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x4e9258['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x35751b(0x20cd)](function(_0x5dcc97){const _0x396dce=_0x35751b;_0x361a6a[_0x396dce(0x1bd0)]({'title':_0x5dcc97[_0x396dce(0x10b3)]?_0x396dce(0x575)+_0x5dcc97[_0x396dce(0x10b3)]+_0x396dce(0x21db)+_0x5dcc97[_0x396dce(0x2115)]:'USERPROFILE:GET_SECTION','msg':_0x5dcc97[_0x396dce(0x10b3)]?JSON['stringify'](_0x5dcc97[_0x396dce(0x1c52)]):_0x5dcc97[_0x396dce(0x2915)]()});});}let _0x3e3b68=!![],_0x89a364=0x1;_0x21e4be[_0x4eed5d(0xc62)](_0x4eed5d(0x1cb9),function(_0x536e38,_0x150823){const _0x3c4b23=_0x4eed5d;_0x3e3b68?_0x2ca7f4(function(){_0x3e3b68=![];}):(!_0x150823&&(_0x89a364=_0x430428[_0x3c4b23(0x289a)][_0x3c4b23(0xc72)]),_0x536e38!==_0x150823&&(_0x430428[_0x3c4b23(0x289a)][_0x3c4b23(0xc72)]=0x1),!_0x536e38&&(_0x430428['query'][_0x3c4b23(0xc72)]=_0x89a364),_0x430428[_0x3c4b23(0x20a3)]());});function _0x4a4188(_0x397f88){const _0x2f26be=_0x4eed5d;_0x430428[_0x2f26be(0x21e2)]=_0x397f88||{'count':0x0,'rows':[]};}function _0xc73daa(){const _0x1f4b76=_0x4eed5d;_0x430428[_0x1f4b76(0x289a)][_0x1f4b76(0x24f9)]=(_0x430428[_0x1f4b76(0x289a)][_0x1f4b76(0xc72)]-0x1)*_0x430428[_0x1f4b76(0x289a)][_0x1f4b76(0x25bb)],_0x2a1e56[_0x1f4b76(0x4de)](_0x1f4b76(0x333))?_0x430428[_0x1f4b76(0x1713)]=_0x527eec[_0x1f4b76(0xf82)][_0x1f4b76(0x896)](_0x430428[_0x1f4b76(0x289a)],_0x4a4188)[_0x1f4b76(0x15e7)]:(_0x430428[_0x1f4b76(0x289a)]['id']=_0x430428[_0x1f4b76(0x16a8)]['id'],_0x430428[_0x1f4b76(0x289a)][_0x1f4b76(0xa21)]=_0x1f4b76(0x952),_0x430428[_0x1f4b76(0x1713)]=_0x527eec[_0x1f4b76(0x16a8)][_0x1f4b76(0x2565)](_0x430428[_0x1f4b76(0x289a)],_0x4a4188)['$promise']);}function _0x2a655c(_0x3bb610,_0x36794f){const _0x39038e=_0x4eed5d;_0xc2c3a[_0x39038e(0xa60)]({'controller':_0x39038e(0x1740),'controllerAs':'vm','templateUrl':_0x5ea2c1,'parent':angular['element'](_0x5cd65c[_0x39038e(0xb49)]),'targetEvent':_0x3bb610,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x36794f,'faxQueues':_0x430428['faxQueues']['rows'],'license':_0x430428[_0x39038e(0x1947)],'setting':_0x430428[_0x39038e(0x28d6)],'crudPermissions':_0x430428[_0x39038e(0x402)]}});}function _0x354175(_0xb288a5){const _0x155765=_0x4eed5d;_0x527eec[_0x155765(0xf82)][_0x155765(0xabd)]({'id':_0xb288a5['id']})[_0x155765(0x15e7)]['then'](function(){const _0x19d57d=_0x155765;_0x28c606()[_0x19d57d(0x21c7)](_0x430428[_0x19d57d(0x21e2)][_0x19d57d(0x28b8)],{'id':_0xb288a5['id']}),_0x430428[_0x19d57d(0x21e2)]['count']-=0x1,!_0x430428[_0x19d57d(0x21e2)][_0x19d57d(0x28b8)]['length']&&_0x430428[_0x19d57d(0x20a3)](),_0x361a6a[_0x19d57d(0x1339)]({'title':_0x28c606()[_0x19d57d(0xc01)](_0x19d57d(0x288b))+_0x19d57d(0x2502),'msg':_0xb288a5[_0x19d57d(0x2494)]?_0xb288a5[_0x19d57d(0x2494)]+_0x19d57d(0x1fa8):''});})[_0x155765(0x20cd)](function(_0x208da9){const _0x293470=_0x155765;if(_0x208da9[_0x293470(0x1c52)]&&_0x208da9[_0x293470(0x1c52)]['errors']&&_0x208da9['data']['errors'][_0x293470(0x1b9e)]){_0x430428[_0x293470(0xbae)]=_0x208da9[_0x293470(0x1c52)][_0x293470(0xbae)]||[{'message':_0x208da9[_0x293470(0x2915)](),'type':_0x293470(0x118e)}];for(let _0x662e76=0x0;_0x662e76<_0x208da9[_0x293470(0x1c52)][_0x293470(0xbae)]['length'];_0x662e76++){_0x361a6a['error']({'title':_0x208da9['data'][_0x293470(0xbae)][_0x662e76][_0x293470(0x2185)],'msg':_0x208da9[_0x293470(0x1c52)][_0x293470(0xbae)][_0x662e76][_0x293470(0x18ca)]});}}else _0x361a6a[_0x293470(0x1bd0)]({'title':_0x208da9[_0x293470(0x10b3)]?_0x293470(0x575)+_0x208da9[_0x293470(0x10b3)]+_0x293470(0x21db)+_0x208da9[_0x293470(0x2115)]:_0x293470(0x118e),'msg':_0x208da9[_0x293470(0x1c52)]?JSON[_0x293470(0x2317)](_0x208da9[_0x293470(0x1c52)][_0x293470(0x18ca)]):_0x208da9[_0x293470(0x18ca)]||_0x208da9['toString']()});});}function _0x1ad2ab(){const _0x330165=_0x4eed5d,_0x26e346=angular[_0x330165(0x289e)](_0x430428[_0x330165(0x60c)]);return _0x430428[_0x330165(0x60c)]=[],_0x26e346;}function _0x4ccc91(_0xf467fb){const _0x4d1ce2=_0x4eed5d,_0x44c261=_0xc2c3a[_0x4d1ce2(0x856)]()[_0x4d1ce2(0x2021)](_0x4d1ce2(0x17de))[_0x4d1ce2(0x33a)](_0x4d1ce2(0x50b)+_0x430428[_0x4d1ce2(0x60c)][_0x4d1ce2(0x1b9e)]+_0x4d1ce2(0x163e)+_0x4d1ce2(0x4b8))[_0x4d1ce2(0x213e)]('delete\x20FaxQueues')[_0x4d1ce2(0x2283)](_0xf467fb)['ok']('OK')[_0x4d1ce2(0x101a)]('CANCEL');_0xc2c3a[_0x4d1ce2(0xa60)](_0x44c261)[_0x4d1ce2(0x64a)](function(){const _0x4e02be=_0x4d1ce2;_0x430428['selectedFaxQueues'][_0x4e02be(0x1397)](function(_0x56c766){_0x354175(_0x56c766);}),_0x430428[_0x4e02be(0x60c)]=[];});}function _0x1530bc(){const _0x5f1409=_0x4eed5d;_0x430428[_0x5f1409(0x60c)]=[];}function _0x10eec0(){const _0x5d34f0=_0x4eed5d;_0x430428[_0x5d34f0(0x60c)]=_0x430428[_0x5d34f0(0x21e2)][_0x5d34f0(0x28b8)];}}const _0x228fda=_0xcbb391;;_0x1f6e98[_0x49a1e3(0x1e73)]=['$stateProvider',_0x49a1e3(0x21f8)];function _0x1f6e98(_0x77e967,_0x3f4f7a){const _0x124fe6=_0x49a1e3;_0x77e967[_0x124fe6(0x14f2)](_0x124fe6(0x320),{'abstract':!![],'url':_0x124fe6(0xa13)})['state'](_0x124fe6(0x1995),{'url':_0x124fe6(0x221b),'views':{'content@app':{'templateUrl':_0xf5405,'controller':_0x124fe6(0xb1b)}},'resolve':{'faxQueues':[_0x124fe6(0x107c),_0x124fe6(0xdcf),function(_0x1b4b17,_0x12d88c){const _0x56141c=_0x124fe6;return _0x12d88c[_0x56141c(0x4de)](_0x56141c(0x333))?_0x1b4b17[_0x56141c(0x1268)](_0x56141c(0x101e),{'fields':_0x56141c(0x1649),'sort':'-updatedAt','channel':'fax','limit':0xa,'offset':0x0}):_0x1b4b17[_0x56141c(0x1268)]('userProfile@getResources',{'id':_0x12d88c[_0x56141c(0x808)]()[_0x56141c(0x21ac)],'section':_0x56141c(0x952),'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x56141c(0x260c),'channel':_0x56141c(0x1d37),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x124fe6(0xdcf),function(_0x510bda,_0x32ba9f){const _0x33994f=_0x124fe6;return _0x32ba9f[_0x33994f(0x4de)]('admin')?null:_0x510bda[_0x33994f(0x1268)]('userProfile@get',{'fields':_0x33994f(0x10d2),'id':_0x32ba9f[_0x33994f(0x808)]()[_0x33994f(0x21ac)]});}],'userProfileSection':['apiResolver',_0x124fe6(0xdcf),function(_0x3b84f6,_0x4ee7d5){const _0x1ecc8f=_0x124fe6;return _0x4ee7d5['hasRole']('admin')?null:_0x3b84f6[_0x1ecc8f(0x1268)]('userProfileSection@get',{'fields':_0x1ecc8f(0x527),'userProfileId':_0x4ee7d5[_0x1ecc8f(0x808)]()[_0x1ecc8f(0x21ac)],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':_0x124fe6(0x1d37)})[_0x124fe6(0x14f2)]('app.fax.faxQueues.edit',{'url':_0x124fe6(0x45b),'params':{'faxQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x45c64e,'controller':_0x124fe6(0xdb1)}},'resolve':{'faxQueue':[_0x124fe6(0x107c),_0x124fe6(0x1fbb),function(_0x36ff53,_0x51d9cb){const _0x188ed1=_0x124fe6;return _0x36ff53[_0x188ed1(0x1268)]('faxQueue@get',{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','id':_0x51d9cb['id']});}],'userProfileSection':[_0x124fe6(0x107c),_0x124fe6(0xdcf),function(_0x4436ca,_0x49f195){const _0x3ff485=_0x124fe6;return _0x4436ca[_0x3ff485(0x1268)]('userProfileSection@get',{'fields':_0x3ff485(0x527),'userProfileId':_0x49f195[_0x3ff485(0x808)]()['userProfileId'],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':_0x124fe6(0x1d37)})[_0x124fe6(0x14f2)](_0x124fe6(0x1a9f),{'url':'/faxAccounts','views':{'content@app':{'templateUrl':_0x166ddd,'controller':_0x124fe6(0x16f4)}},'resolve':{'faxAccounts':['apiResolver',_0x124fe6(0xdcf),function(_0x553bbc,_0x57da1c){const _0x35e6c1=_0x124fe6;return _0x57da1c['hasRole'](_0x35e6c1(0x333))?_0x553bbc[_0x35e6c1(0x1268)]('faxAccount@get',{'fields':_0x35e6c1(0x2282),'sort':_0x35e6c1(0x260c),'limit':0xa,'offset':0x0}):_0x553bbc[_0x35e6c1(0x1268)]('userProfile@getResources',{'id':_0x57da1c[_0x35e6c1(0x808)]()[_0x35e6c1(0x21ac)],'section':_0x35e6c1(0x1d83),'fields':_0x35e6c1(0x2282),'sort':_0x35e6c1(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x124fe6(0xdcf),function(_0x53e635,_0x3d2c74){const _0x24cdfd=_0x124fe6;return _0x3d2c74[_0x24cdfd(0x4de)]('admin')?null:_0x53e635[_0x24cdfd(0x1268)](_0x24cdfd(0x6e3),{'fields':_0x24cdfd(0x10d2),'id':_0x3d2c74[_0x24cdfd(0x808)]()['userProfileId']});}],'userProfileSection':[_0x124fe6(0x107c),_0x124fe6(0xdcf),function(_0x1542c1,_0x2ceca6){const _0x59c973=_0x124fe6;return _0x2ceca6[_0x59c973(0x4de)](_0x59c973(0x333))?null:_0x1542c1[_0x59c973(0x1268)]('userProfileSection@get',{'fields':_0x59c973(0x527),'userProfileId':_0x2ceca6['getCurrentUser']()[_0x59c973(0x21ac)],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':'fax'})[_0x124fe6(0x14f2)]('app.fax.faxAccounts.edit',{'url':_0x124fe6(0x45b),'params':{'faxAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x23ae17,'controller':_0x124fe6(0x21fd)}},'resolve':{'faxAccount':[_0x124fe6(0x107c),_0x124fe6(0x1fbb),function(_0x5356ab,_0x3a8d13){const _0x345eae=_0x124fe6;return _0x5356ab[_0x345eae(0x1268)](_0x345eae(0x2028),{'fields':_0x345eae(0x2282),'id':_0x3a8d13['id']});}],'userProfileSection':[_0x124fe6(0x107c),_0x124fe6(0xdcf),function(_0x540e3b,_0x4358a1){const _0x203f09=_0x124fe6;return _0x540e3b[_0x203f09(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4358a1['getCurrentUser']()[_0x203f09(0x21ac)],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':_0x124fe6(0x1d37)}),_0x3f4f7a['addPart'](_0x124fe6(0x2381));}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x320),[_0x49a1e3(0x8d2),_0x49a1e3(0x3c7),_0x49a1e3(0x1fe3),'flow',_0x49a1e3(0x2516),_0x49a1e3(0x1b6c),_0x49a1e3(0x1434),_0x49a1e3(0x1a87),_0x49a1e3(0x1610),_0x49a1e3(0xb19),'mwFormBuilder',_0x49a1e3(0x11fd),_0x49a1e3(0x1cfe),_0x49a1e3(0x1bd1),'angular-cron-jobs',_0x49a1e3(0x1cff),_0x49a1e3(0x1046),_0x49a1e3(0x1acd),'chart.js',_0x49a1e3(0x28dd),_0x49a1e3(0x24c4)])[_0x49a1e3(0x3d3)](_0x1f6e98)[_0x49a1e3(0x38e)]('CreateOrEditFaxAccountDialogController',_0x60650c)[_0x49a1e3(0x38e)]('FaxAccountActionsController',_0x5ca7a7)['controller'](_0x49a1e3(0x79b),_0x4fe71c)[_0x49a1e3(0x38e)](_0x49a1e3(0xe22),_0x2fe27b)[_0x49a1e3(0x38e)](_0x49a1e3(0x2988),_0x420b22)[_0x49a1e3(0x38e)](_0x49a1e3(0x2138),_0x145b8a)[_0x49a1e3(0x38e)](_0x49a1e3(0x211a),_0x26771b)[_0x49a1e3(0x38e)](_0x49a1e3(0x1e52),_0x26c0d5)['controller']('EditFaxAccountAppnoopDialogController',_0x44def8)[_0x49a1e3(0x38e)](_0x49a1e3(0x13a1),_0x6e0b2)['controller'](_0x49a1e3(0x285d),_0x34e89e)[_0x49a1e3(0x38e)]('EditFaxAccountApptagDialogController',_0x18914d)[_0x49a1e3(0x38e)]('FaxAccountDispositionsController',_0x191f28)[_0x49a1e3(0x38e)]('FaxAccountInteractionsController',_0x196931)[_0x49a1e3(0x38e)]('FaxAccountController',_0x272dc5)[_0x49a1e3(0x38e)]('FaxAccountsController',_0x4a3f0b)['controller'](_0x49a1e3(0x1740),_0x13ba65)[_0x49a1e3(0x38e)](_0x49a1e3(0x13b),_0x4b93f6)[_0x49a1e3(0x38e)](_0x49a1e3(0x206d),_0x3132a9)[_0x49a1e3(0x38e)](_0x49a1e3(0x25e9),_0x22628e)['controller'](_0x49a1e3(0x258b),_0x228fda);;const _0x4c30f5=_0x2e4a48['p']+'src/js/modules/main/apps/tools/views/dispositions/dispositions.html/dispositions.html';;_0x1fbd2d[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x298c),'$q',_0x49a1e3(0x680),_0x49a1e3(0x168b),'model',_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x402),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x1fbd2d(_0x5a4742,_0x34056d,_0x12b549,_0x2a5c6e,_0x4741b8,_0x3a0c23,_0x1f1905,_0x359beb,_0x3b32d6,_0x77675a,_0x1bd3f1){const _0x1094db=_0x49a1e3,_0xf5aadb=this;_0xf5aadb[_0x1094db(0x1d3d)]=_0x359beb[_0x1094db(0x808)](),_0xf5aadb[_0x1094db(0x168b)]=angular[_0x1094db(0x289e)](_0x4741b8),_0xf5aadb[_0x1094db(0x28d6)]=_0x1bd3f1,_0xf5aadb['license']=_0x77675a,_0xf5aadb['crudPermissions']=_0x3b32d6,_0xf5aadb[_0x1094db(0x23a0)]=![],_0xf5aadb[_0x1094db(0xbae)]=[];!_0xf5aadb[_0x1094db(0x168b)]&&(_0xf5aadb[_0x1094db(0x168b)]={'level':_0x1094db(0x77b)},_0xf5aadb[_0x1094db(0x23a0)]=!![]);if(_0x3a0c23){const _0x2156ae=_0x3a0c23[_0x1094db(0xc26)];_0xf5aadb[_0x1094db(0x168b)][_0x2156ae]=_0x3a0c23['id'];}_0xf5aadb[_0x1094db(0x2483)]=_0x41e4c0,_0xf5aadb[_0x1094db(0x445)]=_0x3f9714,_0xf5aadb['addNewDisposition']=_0x138c41,_0xf5aadb[_0x1094db(0x25fb)]=_0x181424,_0xf5aadb[_0x1094db(0x17f6)]=_0x147c7b,_0xf5aadb['clearSelection']=_0x4a4b09,_0xf5aadb[_0x1094db(0x16cb)]=_0x3bc7a6;function _0x41e4c0(){const _0xbaf4f=_0x1094db;let _0x461f17=_0xbaf4f(0x168b);if(_0x3a0c23)_0x461f17=_0x3a0c23['route'];else{if(_0xf5aadb['currentUser']['role']==='user')_0x461f17=_0xbaf4f(0x16a8);}let _0x15fa32=_0xbaf4f(0x896);if(_0x3a0c23)_0x15fa32=_0xbaf4f(0xe50);else{if(_0xf5aadb['currentUser'][_0xbaf4f(0x161a)]===_0xbaf4f(0x2e8))_0x15fa32=_0xbaf4f(0x2565);}const _0x52f29a={'fields':_0xbaf4f(0x158b),'id':_0x3a0c23?_0x3a0c23['id']:undefined,'section':_0xf5aadb['currentUser'][_0xbaf4f(0x161a)]===_0xbaf4f(0x2e8)?_0xbaf4f(0x1772):undefined,'MailAccountId':_0x3a0c23?undefined:_0xbaf4f(0x8f1),'FaxAccountId':_0x3a0c23?undefined:_0xbaf4f(0x8f1),'SmsAccountId':_0x3a0c23?undefined:_0xbaf4f(0x8f1),'OpenchannelAccountId':_0x3a0c23?undefined:'null','ChatWebsiteId':_0x3a0c23?undefined:_0xbaf4f(0x8f1),'WhatsappAccountId':_0x3a0c23?undefined:_0xbaf4f(0x8f1),'ListId':_0x3a0c23?undefined:_0xbaf4f(0x8f1),'sort':'id','nolimit':_0xbaf4f(0x1685)};_0x379015(_0x461f17,_0x15fa32,_0x52f29a)[_0xbaf4f(0x64a)](function(_0x166141){const _0x5e64d5=_0xbaf4f;_0xf5aadb[_0x5e64d5(0x16d7)]=angular[_0x5e64d5(0x289e)](_0x166141);if(!_0xf5aadb[_0x5e64d5(0x23a0)])_0x4a804b();})['catch'](function(_0x1002e5){const _0xebc5ca=_0xbaf4f;_0x2a5c6e[_0xebc5ca(0x1bd0)]({'title':_0x1002e5[_0xebc5ca(0x10b3)]?'API:'+_0x1002e5[_0xebc5ca(0x10b3)]+_0xebc5ca(0x21db)+_0x1002e5[_0xebc5ca(0x2115)]:[_0xebc5ca(0xa19),_0x461f17,_0x15fa32][_0xebc5ca(0x9a6)](':'),'msg':_0x1002e5[_0xebc5ca(0x1c52)]?JSON[_0xebc5ca(0x2317)](_0x1002e5[_0xebc5ca(0x1c52)]['message']):_0x1002e5[_0xebc5ca(0x18ca)]||_0x1002e5[_0xebc5ca(0x2915)]()});});}function _0x4a804b(){const _0x444e4d=_0x1094db;if(_0xf5aadb[_0x444e4d(0x168b)][_0x444e4d(0x14cb)]==='first')return;_0xf5aadb[_0x444e4d(0x191)]=_0x28c606()['find'](_0xf5aadb[_0x444e4d(0x16d7)],['id',_0xf5aadb[_0x444e4d(0x168b)][_0x444e4d(0xbb9)]]);if(!_0xf5aadb[_0x444e4d(0x191)]){_0xe1cc5()[_0x444e4d(0x64a)](function(_0x3d76f1){const _0x5930f6=_0x444e4d;_0xf5aadb[_0x5930f6(0x198d)]=_0x3d76f1;for(let _0x5cdd48=0x0;_0x5cdd48<_0xf5aadb[_0x5930f6(0x198d)]['length'];_0x5cdd48++){const _0x72e44b=_0xf5aadb['allDispositions'][_0x5cdd48];if(_0x72e44b['id']===_0xf5aadb[_0x5930f6(0x168b)][_0x5930f6(0xbb9)]){_0x27de21(_0x72e44b),_0x72e44b[_0x5930f6(0xd4f)]=![],_0xf5aadb['dispositions'][_0x5930f6(0x1954)](_0x72e44b);break;}}});return;}_0x27de21(_0xf5aadb['parentDisposition']);}function _0x379015(_0x4fd086,_0x26cff2,_0x57bb66){return _0x12b549(function(_0x37bb7a,_0x502df3){const _0x6999cf=a0_0x4127;_0x1f1905[_0x4fd086][_0x26cff2](_0x57bb66)[_0x6999cf(0x15e7)][_0x6999cf(0x64a)](function(_0x480d66){const _0x399ec6=_0x6999cf,_0xded6dc=_0x480d66[_0x399ec6(0x28b8)]||[];return _0x37bb7a(_0xded6dc);})['catch'](function(_0x5c533b){_0x502df3(_0x5c533b);});});}function _0xe1cc5(){return _0x12b549(function(_0x10313e,_0x15f2f4){const _0x7c2825=a0_0x4127;_0x1f1905[_0x7c2825(0x168b)][_0x7c2825(0x896)]({'fields':_0x7c2825(0x158b),'sort':'id','nolimit':_0x7c2825(0x1685)})[_0x7c2825(0x15e7)][_0x7c2825(0x64a)](function(_0x5638f4){const _0x3eeabd=_0x7c2825,_0x348e62=_0x5638f4[_0x3eeabd(0x28b8)]||[];return _0x10313e(_0x348e62);})[_0x7c2825(0x20cd)](function(_0xd9b9ca){_0x15f2f4(_0xd9b9ca);});});}function _0x27de21(_0x2ef5f7){const _0x57368a=_0x1094db;_0x2ef5f7[_0x57368a(0x14cb)]===_0x57368a(0x77b)?_0xf5aadb[_0x57368a(0x580)]=_0x2ef5f7:(_0xf5aadb[_0x57368a(0x1c63)]=!![],_0xf5aadb['secondLevelDisposition']=_0x2ef5f7,_0xf5aadb[_0x57368a(0x580)]=_0x28c606()[_0x57368a(0x27bc)](_0xf5aadb[_0x57368a(0x16d7)],['id',_0xf5aadb[_0x57368a(0x2454)][_0x57368a(0xbb9)]]),!_0xf5aadb[_0x57368a(0x580)]&&_0xe1cc5()[_0x57368a(0x64a)](function(){const _0x143fc1=_0x57368a;_0xf5aadb['firstLevelDisposition']=_0x28c606()['find'](_0xf5aadb[_0x143fc1(0x198d)],['id',_0xf5aadb[_0x143fc1(0x2454)]['ParentId']]),_0xf5aadb['firstLevelDisposition']['canSelect']=![],_0xf5aadb[_0x143fc1(0x16d7)][_0x143fc1(0x1954)](_0xf5aadb[_0x143fc1(0x580)]);}));}function _0x4a4b09(_0xc5a308){const _0x362138=_0x1094db;_0xc5a308===_0x362138(0x77b)?(_0xf5aadb[_0x362138(0x580)]=undefined,_0xf5aadb[_0x362138(0x2454)]=undefined,_0xf5aadb[_0x362138(0x1c63)]=![]):_0xf5aadb['secondLevelDisposition']=undefined;}function _0x3f9714(){const _0xbc09e5=_0x1094db;_0xf5aadb[_0xbc09e5(0x2454)]=undefined,_0xf5aadb[_0xbc09e5(0x1c63)]=_0x28c606()[_0xbc09e5(0x25f8)](_0xf5aadb[_0xbc09e5(0x16d7)],function(_0xe468fe){const _0x5ea53b=_0xbc09e5;return _0xe468fe['ParentId']===_0xf5aadb[_0x5ea53b(0x580)]['id']&&_0xe468fe['id']!=_0xf5aadb[_0x5ea53b(0x168b)]['id'];});}function _0x138c41(){const _0x4c7ed0=_0x1094db;_0xf5aadb[_0x4c7ed0(0xbae)]=[];if(_0xf5aadb['secondLevelDisposition'])_0xf5aadb[_0x4c7ed0(0x168b)][_0x4c7ed0(0xbb9)]=_0xf5aadb[_0x4c7ed0(0x2454)]['id'],_0xf5aadb[_0x4c7ed0(0x168b)][_0x4c7ed0(0x14cb)]='third';else _0xf5aadb[_0x4c7ed0(0x580)]&&(_0xf5aadb[_0x4c7ed0(0x168b)][_0x4c7ed0(0xbb9)]=_0xf5aadb[_0x4c7ed0(0x580)]['id'],_0xf5aadb[_0x4c7ed0(0x168b)][_0x4c7ed0(0x14cb)]=_0x4c7ed0(0x26aa));_0x1f1905[_0x4c7ed0(0x168b)][_0x4c7ed0(0x2479)](_0xf5aadb[_0x4c7ed0(0x168b)])['$promise']['then'](function(_0x5aeefa){const _0x2b5b14=_0x4c7ed0;_0xf5aadb[_0x2b5b14(0x16d7)][_0x2b5b14(0x1891)](_0x5aeefa['toJSON']()),_0x2a5c6e['success']({'title':_0x34056d[_0x2b5b14(0x2292)](_0x2b5b14(0xc53))}),_0x3bc7a6(!![]);})['catch'](function(_0x327bbb){const _0x4e5208=_0x4c7ed0;if(_0x327bbb['data']&&_0x327bbb[_0x4e5208(0x1c52)][_0x4e5208(0xbae)]&&_0x327bbb[_0x4e5208(0x1c52)][_0x4e5208(0xbae)][_0x4e5208(0x1b9e)]){_0xf5aadb['errors']=_0x327bbb[_0x4e5208(0x1c52)][_0x4e5208(0xbae)]||[{'message':_0x327bbb[_0x4e5208(0x2915)](),'type':_0x4e5208(0x9e5)}];for(let _0x969012=0x0;_0x969012<_0x327bbb[_0x4e5208(0x1c52)]['errors']['length'];_0x969012+=0x1){_0x2a5c6e[_0x4e5208(0x1bd0)]({'title':_0x327bbb['data'][_0x4e5208(0xbae)][_0x969012]['type'],'msg':_0x327bbb[_0x4e5208(0x1c52)][_0x4e5208(0xbae)][_0x969012][_0x4e5208(0x18ca)]});}}else _0x2a5c6e['error']({'title':_0x327bbb['status']?_0x4e5208(0x575)+_0x327bbb['status']+_0x4e5208(0x21db)+_0x327bbb[_0x4e5208(0x2115)]:_0x4e5208(0x9e5),'msg':_0x327bbb[_0x4e5208(0x1c52)]?JSON['stringify'](_0x327bbb['data']['message']):_0x327bbb[_0x4e5208(0x2915)]()});});}function _0x181424(){const _0x27d775=_0x1094db;_0xf5aadb['errors']=[];if(_0xf5aadb[_0x27d775(0x2454)])_0xf5aadb['disposition'][_0x27d775(0xbb9)]=_0xf5aadb['secondLevelDisposition']['id'],_0xf5aadb[_0x27d775(0x168b)][_0x27d775(0x14cb)]=_0x27d775(0x21c0);else _0xf5aadb[_0x27d775(0x580)]&&(_0xf5aadb[_0x27d775(0x168b)][_0x27d775(0xbb9)]=_0xf5aadb['firstLevelDisposition']['id'],_0xf5aadb[_0x27d775(0x168b)][_0x27d775(0x14cb)]='second');_0x1f1905['disposition'][_0x27d775(0x2603)]({'id':_0xf5aadb[_0x27d775(0x168b)]['id']},_0xf5aadb[_0x27d775(0x168b)])['$promise'][_0x27d775(0x64a)](function(_0x51a653){const _0x58ee8c=_0x27d775,_0x25a5af=_0x28c606()[_0x58ee8c(0x27bc)](_0xf5aadb[_0x58ee8c(0x16d7)],{'id':_0x51a653['id']});_0x25a5af&&_0x28c606()[_0x58ee8c(0x14fe)](_0x25a5af,_0x28c606()[_0x58ee8c(0x27bb)](_0x51a653['toJSON'](),_0x28c606()[_0x58ee8c(0x1ec6)](_0x25a5af))),_0x2a5c6e[_0x58ee8c(0x1339)]({'title':_0x34056d[_0x58ee8c(0x2292)](_0x58ee8c(0x1000))}),_0x3bc7a6(!![]);})['catch'](function(_0x571727){const _0x19cce9=_0x27d775;if(_0x571727['data']&&_0x571727[_0x19cce9(0x1c52)][_0x19cce9(0xbae)]&&_0x571727['data']['errors'][_0x19cce9(0x1b9e)]){_0xf5aadb[_0x19cce9(0xbae)]=_0x571727[_0x19cce9(0x1c52)][_0x19cce9(0xbae)]||[{'message':_0x571727[_0x19cce9(0x2915)](),'type':'api.disposition.update'}];for(let _0x573df2=0x0;_0x573df2<_0x571727[_0x19cce9(0x1c52)][_0x19cce9(0xbae)][_0x19cce9(0x1b9e)];_0x573df2++){_0x2a5c6e[_0x19cce9(0x1bd0)]({'title':_0x571727['data']['errors'][_0x573df2]['type'],'msg':_0x571727[_0x19cce9(0x1c52)][_0x19cce9(0xbae)][_0x573df2][_0x19cce9(0x18ca)]});}}else _0x2a5c6e[_0x19cce9(0x1bd0)]({'title':_0x571727[_0x19cce9(0x10b3)]?'API:'+_0x571727[_0x19cce9(0x10b3)]+_0x19cce9(0x21db)+_0x571727[_0x19cce9(0x2115)]:_0x19cce9(0xbf8),'msg':_0x571727[_0x19cce9(0x1c52)]?JSON['stringify'](_0x571727['data'][_0x19cce9(0x18ca)]):_0x571727[_0x19cce9(0x2915)]()});});}function _0x147c7b(_0x573153){const _0x45266a=_0x1094db;_0xf5aadb[_0x45266a(0xbae)]=[];const _0x59df95=_0x28c606()['some'](_0xf5aadb[_0x45266a(0x16d7)],[_0x45266a(0xbb9),_0xf5aadb[_0x45266a(0x168b)]['id']]),_0x197be6=_0x5a4742[_0x45266a(0x856)]({'skipHide':!![]})['title'](_0x34056d[_0x45266a(0x2292)](_0x45266a(0x13a7)))[_0x45266a(0x12b8)](_0x34056d[_0x45266a(0x2292)](_0x45266a(0x2213)+(_0x59df95?_0x45266a(0x1be):_0x45266a(0x1942)),{'name':_0xf5aadb[_0x45266a(0x168b)][_0x45266a(0x2494)]}))[_0x45266a(0x213e)](_0x45266a(0xc2c))['ok'](_0x34056d[_0x45266a(0x2292)](_0x45266a(0x20f5)))[_0x45266a(0x101a)](_0x34056d[_0x45266a(0x2292)](_0x45266a(0x4f5)))[_0x45266a(0x2283)](_0x573153);_0x5a4742[_0x45266a(0xa60)](_0x197be6)[_0x45266a(0x64a)](function(){const _0x4fb8a1=_0x45266a;_0x1f1905[_0x4fb8a1(0x168b)]['delete']({'id':_0xf5aadb[_0x4fb8a1(0x168b)]['id']})[_0x4fb8a1(0x15e7)][_0x4fb8a1(0x64a)](function(){const _0x1f941d=_0x4fb8a1;_0x2a5c6e[_0x1f941d(0x1339)]({'title':_0x34056d[_0x1f941d(0x2292)]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')}),_0x3bc7a6(!![]);})['catch'](function(_0x1b25fb){const _0x79700d=_0x4fb8a1;if(_0x1b25fb['data']&&_0x1b25fb[_0x79700d(0x1c52)][_0x79700d(0xbae)]&&_0x1b25fb['data']['errors']['length']){_0xf5aadb[_0x79700d(0xbae)]=_0x1b25fb[_0x79700d(0x1c52)]['errors']||[{'message':_0x1b25fb[_0x79700d(0x2915)](),'type':'api.disposition.delete'}];for(let _0x4662f6=0x0;_0x4662f6<_0x1b25fb[_0x79700d(0x1c52)][_0x79700d(0xbae)][_0x79700d(0x1b9e)];_0x4662f6++){_0x2a5c6e[_0x79700d(0x1bd0)]({'title':_0x1b25fb[_0x79700d(0x1c52)]['errors'][_0x4662f6]['type'],'msg':_0x1b25fb['data'][_0x79700d(0xbae)][_0x4662f6][_0x79700d(0x18ca)]});}}else _0x2a5c6e['error']({'title':_0x1b25fb[_0x79700d(0x10b3)]?'API:'+_0x1b25fb[_0x79700d(0x10b3)]+_0x79700d(0x21db)+_0x1b25fb[_0x79700d(0x2115)]:_0x79700d(0x11ef),'msg':_0x1b25fb['data']?JSON['stringify'](_0x1b25fb[_0x79700d(0x1c52)]['message']):_0x1b25fb[_0x79700d(0x18ca)]||_0x1b25fb['toString']()});});});}function _0x3bc7a6(_0x446ff6){const _0x358f62=_0x1094db;_0x5a4742[_0x358f62(0x268e)](_0x446ff6);}}const _0x5298bf=_0x1fbd2d;;_0x240e35[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$window',_0x49a1e3(0x77f),'$mdSidenav',_0x49a1e3(0x212a),_0x49a1e3(0x1373),'$timeout',_0x49a1e3(0x298c),_0x49a1e3(0x16d7),'userProfile',_0x49a1e3(0x16b2),_0x49a1e3(0xa19),'toasty',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x240e35(_0x57e13e,_0x131c49,_0x358d07,_0x254ca1,_0xed170d,_0x416b17,_0x35980a,_0x217ca2,_0xc49bd4,_0x3ffa66,_0x1ad6d9,_0x4f45c6,_0x1f0bb3,_0x371eb0,_0x4bda8e,_0x186b99){const _0x21d1c5=_0x49a1e3,_0x58adba=this;_0x58adba['license']=_0x4bda8e,_0x58adba[_0x21d1c5(0x28d6)]=_0x186b99,_0x58adba[_0x21d1c5(0x1d3d)]=_0x371eb0[_0x21d1c5(0x808)](),_0x58adba[_0x21d1c5(0x16d7)]=_0xc49bd4||{'count':0x0,'rows':[]},_0x58adba[_0x21d1c5(0x16a8)]=_0x3ffa66,_0x58adba[_0x21d1c5(0x16b2)]=_0x1ad6d9&&_0x1ad6d9['count']==0x1?_0x1ad6d9[_0x21d1c5(0x28b8)][0x0]:null,_0x58adba['crudPermissions']=_0x371eb0['parseCrudPermissions'](_0x58adba[_0x21d1c5(0x16b2)]?_0x58adba[_0x21d1c5(0x16b2)]['crudPermissions']:null),_0x58adba[_0x21d1c5(0x1403)]=[],_0x58adba[_0x21d1c5(0x20c7)]={'first':_0x21d1c5(0x1d03),'second':_0x21d1c5(0x255e),'third':_0x21d1c5(0x157e)},_0x58adba['query']={'fields':_0x21d1c5(0x12ce),'sort':_0x21d1c5(0x260c),'MailAccountId':_0x21d1c5(0x8f1),'FaxAccountId':_0x21d1c5(0x8f1),'SmsAccountId':_0x21d1c5(0x8f1),'OpenchannelAccountId':_0x21d1c5(0x8f1),'ChatWebsiteId':'null','WhatsappAccountId':_0x21d1c5(0x8f1),'ListId':_0x21d1c5(0x8f1),'limit':0xa,'page':0x1},_0x58adba[_0x21d1c5(0x1262)]=_0x525d28,_0x58adba[_0x21d1c5(0x1339)]=_0x396ace,_0x58adba[_0x21d1c5(0xe50)]=_0xd43a19,_0x58adba[_0x21d1c5(0x22cb)]=_0x5d3e9e,_0x58adba[_0x21d1c5(0x17f6)]=_0xfeb6a6,_0x58adba[_0x21d1c5(0x28e3)]=_0x1f496a,_0x58adba[_0x21d1c5(0x1d1e)]=_0x136263,_0x58adba['deselectDispositions']=_0x2c5a50,_0x58adba[_0x21d1c5(0x2984)]=_0x2561ff;function _0x5d3e9e(_0x386968,_0x304fd3){const _0x2fbd3e=_0x21d1c5;_0xed170d[_0x2fbd3e(0xa60)]({'controller':_0x2fbd3e(0xf48),'controllerAs':'vm','templateUrl':_0x482291,'parent':angular[_0x2fbd3e(0x1f81)](_0x416b17[_0x2fbd3e(0xb49)]),'targetEvent':_0x386968,'clickOutsideToClose':!![],'locals':{'disposition':_0x304fd3,'model':null,'license':_0x58adba[_0x2fbd3e(0x1947)],'setting':_0x58adba[_0x2fbd3e(0x28d6)],'crudPermissions':_0x58adba[_0x2fbd3e(0x402)]}})[_0x2fbd3e(0x64a)](function(_0x45caa7){if(_0x45caa7===!![])_0xd43a19();});}function _0x525d28(_0x2ddf67,_0x1a5ef0){const _0x53dd42=_0x21d1c5,_0x35f24c=_0x28c606()[_0x53dd42(0x25f8)](_0x58adba[_0x53dd42(0x16d7)][_0x53dd42(0x28b8)],['ParentId',_0x2ddf67['id']]),_0x334d9c=_0xed170d['confirm']()[_0x53dd42(0x2021)](_0x217ca2['instant'](_0x53dd42(0x13a7)))[_0x53dd42(0x12b8)](_0x217ca2[_0x53dd42(0x2292)](_0x53dd42(0x2213)+(_0x35f24c?'DISPOSITION_DELETE_MESSAGE_CHILDREN':'DISPOSITION_DELETE_MESSAGE'),{'name':_0x2ddf67['name']}))[_0x53dd42(0x213e)]('Delete\x20disposition')[_0x53dd42(0x2283)](_0x1a5ef0)['ok']('OK')[_0x53dd42(0x101a)](_0x217ca2[_0x53dd42(0x2292)](_0x53dd42(0x4f5)));_0xed170d[_0x53dd42(0xa60)](_0x334d9c)[_0x53dd42(0x64a)](function(){_0xfeb6a6(_0x2ddf67);});}function _0x396ace(_0x5985e0){_0x58adba['dispositions']=_0x5985e0||{'count':0x0,'rows':[]};}function _0xd43a19(){const _0x2e6147=_0x21d1c5;_0x58adba['query'][_0x2e6147(0x24f9)]=(_0x58adba[_0x2e6147(0x289a)][_0x2e6147(0xc72)]-0x1)*_0x58adba['query'][_0x2e6147(0x25bb)],_0x371eb0['isAdmin']()?_0x58adba[_0x2e6147(0x1713)]=_0x4f45c6[_0x2e6147(0x168b)][_0x2e6147(0x896)](_0x58adba[_0x2e6147(0x289a)],_0x396ace)[_0x2e6147(0x15e7)]:(_0x58adba['query']['id']=_0x58adba[_0x2e6147(0x16a8)]['id'],_0x58adba['query'][_0x2e6147(0xa21)]=_0x2e6147(0x1772),_0x58adba['promise']=_0x4f45c6[_0x2e6147(0x16a8)]['getResources'](_0x58adba[_0x2e6147(0x289a)],_0x396ace)[_0x2e6147(0x15e7)]);}function _0xfeb6a6(_0x386986){const _0x3640be=_0x21d1c5;_0x4f45c6[_0x3640be(0x168b)][_0x3640be(0xabd)]({'id':_0x386986['id']})[_0x3640be(0x15e7)][_0x3640be(0x64a)](function(){const _0x116ea1=_0x3640be;_0xd43a19(),_0x1f0bb3[_0x116ea1(0x1339)]({'title':_0x217ca2[_0x116ea1(0x2292)](_0x116ea1(0x870))});})['catch'](function(_0x277a0a){const _0x2af89e=_0x3640be;if(_0x277a0a[_0x2af89e(0x1c52)]&&_0x277a0a[_0x2af89e(0x1c52)][_0x2af89e(0xbae)]&&_0x277a0a[_0x2af89e(0x1c52)]['errors']['length']){_0x58adba['errors']=_0x277a0a['data'][_0x2af89e(0xbae)]||[{'message':_0x277a0a[_0x2af89e(0x2915)](),'type':'SYSTEM:DELETEdisposition'}];for(let _0x4f25e5=0x0;_0x4f25e5<_0x277a0a[_0x2af89e(0x1c52)][_0x2af89e(0xbae)][_0x2af89e(0x1b9e)];_0x4f25e5++){_0x1f0bb3[_0x2af89e(0x1bd0)]({'title':_0x277a0a[_0x2af89e(0x1c52)][_0x2af89e(0xbae)][_0x4f25e5][_0x2af89e(0x2185)],'msg':_0x277a0a['data'][_0x2af89e(0xbae)][_0x4f25e5][_0x2af89e(0x18ca)]});}}else _0x1f0bb3[_0x2af89e(0x1bd0)]({'title':_0x277a0a[_0x2af89e(0x10b3)]?_0x2af89e(0x575)+_0x277a0a['status']+'\x20-\x20'+_0x277a0a[_0x2af89e(0x2115)]:_0x2af89e(0x1c37),'msg':_0x277a0a['data']?JSON['stringify'](_0x277a0a['data'][_0x2af89e(0x18ca)]):_0x277a0a[_0x2af89e(0x18ca)]||_0x277a0a['toString']()});});}function _0x1f496a(){const _0x85128a=_0x21d1c5,_0x395426=angular[_0x85128a(0x289e)](_0x58adba[_0x85128a(0x1403)]);return _0x58adba[_0x85128a(0x1403)]=[],_0x395426;}function _0x136263(_0x521cfe){const _0x1c122c=_0x21d1c5,_0x2c7f59=_0xed170d['confirm']()['title'](_0x217ca2[_0x1c122c(0x2292)]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE'))[_0x1c122c(0x12b8)](_0x217ca2[_0x1c122c(0x2292)](_0x1c122c(0x2563),{'total':_0x58adba[_0x1c122c(0x1403)]['length']}))[_0x1c122c(0x213e)]('Delete\x20dispositions')[_0x1c122c(0x2283)](_0x521cfe)['ok']('OK')[_0x1c122c(0x101a)](_0x217ca2[_0x1c122c(0x2292)](_0x1c122c(0x4f5)));_0xed170d[_0x1c122c(0xa60)](_0x2c7f59)['then'](function(){const _0x218e2c=_0x1c122c;_0x58adba[_0x218e2c(0x1403)]['forEach'](function(_0x3b5931){_0xfeb6a6(_0x3b5931);}),_0x58adba[_0x218e2c(0x1403)]=[];});}function _0x2c5a50(){_0x58adba['selectedDispositions']=[];}function _0x2561ff(){const _0x42df3f=_0x21d1c5;_0x58adba['selectedDispositions']=_0x58adba[_0x42df3f(0x16d7)][_0x42df3f(0x28b8)];}let _0x28dd86=!![],_0x2ba4ca=0x1;_0x57e13e[_0x21d1c5(0xc62)](_0x21d1c5(0x1cb9),function(_0x42059e,_0x275257){const _0x12668e=_0x21d1c5;_0x28dd86?_0x35980a(function(){_0x28dd86=![];}):(!_0x275257&&(_0x2ba4ca=_0x58adba['query'][_0x12668e(0xc72)]),_0x42059e!==_0x275257&&(_0x58adba['query'][_0x12668e(0xc72)]=0x1),!_0x42059e&&(_0x58adba['query'][_0x12668e(0xc72)]=_0x2ba4ca),_0xd43a19());});}const _0x791b0f=_0x240e35;;_0x588894['$inject']=[_0x49a1e3(0x20ad)];function _0x588894(_0x4954f3){const _0x148b64=_0x49a1e3;_0x4954f3[_0x148b64(0x14f2)](_0x148b64(0xff1),{'url':_0x148b64(0x1bd),'views':{'content@app':{'templateUrl':_0x4c30f5,'controller':_0x148b64(0xf8a)}},'resolve':{'dispositions':['apiResolver',_0x148b64(0xdcf),function(_0x187a7d,_0x16b3ba){const _0x134661=_0x148b64;return _0x16b3ba['hasRole'](_0x134661(0x333))?_0x187a7d[_0x134661(0x1268)](_0x134661(0x10c9),{'fields':_0x134661(0x12ce),'sort':_0x134661(0x260c),'MailAccountId':'null','FaxAccountId':_0x134661(0x8f1),'SmsAccountId':_0x134661(0x8f1),'OpenchannelAccountId':_0x134661(0x8f1),'ChatWebsiteId':_0x134661(0x8f1),'WhatsappAccountId':_0x134661(0x8f1),'ListId':_0x134661(0x8f1),'limit':0xa,'offset':0x0}):_0x187a7d['resolve'](_0x134661(0x1758),{'id':_0x16b3ba[_0x134661(0x808)]()[_0x134661(0x21ac)],'section':'Dispositions','fields':_0x134661(0x12ce),'sort':_0x134661(0x260c),'MailAccountId':_0x134661(0x8f1),'FaxAccountId':_0x134661(0x8f1),'SmsAccountId':_0x134661(0x8f1),'OpenchannelAccountId':'null','ChatWebsiteId':_0x134661(0x8f1),'WhatsappAccountId':_0x134661(0x8f1),'ListId':_0x134661(0x8f1),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x455583,_0x1875ce){const _0x4302ae=_0x148b64;return _0x1875ce[_0x4302ae(0x4de)](_0x4302ae(0x333))?null:_0x455583[_0x4302ae(0x1268)](_0x4302ae(0x6e3),{'fields':'id,name,crudPermissions','id':_0x1875ce[_0x4302ae(0x808)]()['userProfileId']});}],'userProfileSection':[_0x148b64(0x107c),_0x148b64(0xdcf),function(_0x57068e,_0x4cc18f){const _0x5bc621=_0x148b64;return _0x4cc18f[_0x5bc621(0x4de)](_0x5bc621(0x333))?null:_0x57068e[_0x5bc621(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4cc18f['getCurrentUser']()[_0x5bc621(0x21ac)],'sectionId':0x3ea});}]},'authenticate':!![],'permissionId':0x3ea,'bodyClass':'tools'});}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0xff1),[])[_0x49a1e3(0x3d3)](_0x588894)['controller'](_0x49a1e3(0xf48),_0x5298bf)[_0x49a1e3(0x38e)](_0x49a1e3(0x1f9),_0x791b0f);;const _0x349483=_0x2e4a48['p']+_0x49a1e3(0x2918);;const _0x39b0f3=_0x2e4a48['p']+_0x49a1e3(0xab4);;_0x1b18b9[_0x49a1e3(0x1e73)]=['$mdDialog',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0xcb6),'trigger',_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'crudPermissions'];function _0x1b18b9(_0x5a283f,_0xaab20d,_0x1a8e85,_0x551b15,_0x9fa103,_0x1ea19a,_0x5614b2,_0x31b9ec,_0x362ef8,_0x1f3044){const _0x201a83=_0x49a1e3,_0x349267=this;_0x349267[_0x201a83(0x1d3d)]=_0x5614b2[_0x201a83(0x808)](),_0x349267[_0x201a83(0x1e8f)]=angular[_0x201a83(0x289e)](_0x9fa103),_0x349267['triggers']=angular[_0x201a83(0x289e)](_0x551b15),_0x349267[_0x201a83(0x28d6)]=_0x362ef8,_0x349267['license']=_0x31b9ec,_0x349267['crudPermissions']=_0x1f3044,_0x349267[_0x201a83(0x42a)]=![],_0x349267[_0x201a83(0xbae)]=[];!_0x349267[_0x201a83(0x1e8f)]&&(_0x349267[_0x201a83(0x1e8f)]={'channel':'voice'},_0x349267[_0x201a83(0x42a)]=!![]);_0x349267['addNewTrigger']=_0xf5557a,_0x349267[_0x201a83(0xd75)]=_0x13479e,_0x349267[_0x201a83(0x17ac)]=_0x3aa516,_0x349267[_0x201a83(0x16cb)]=_0x52fe79;function _0xf5557a(){const _0x225f92=_0x201a83;_0x349267[_0x225f92(0xbae)]=[],_0x1ea19a[_0x225f92(0x1e8f)][_0x225f92(0x2479)](_0x349267[_0x225f92(0x1e8f)])[_0x225f92(0x15e7)][_0x225f92(0x64a)](function(_0x111a77){const _0x79a77d=_0x225f92;_0x349267[_0x79a77d(0xcb6)]['unshift'](_0x111a77[_0x79a77d(0x14f8)]()),_0x1a8e85[_0x79a77d(0x1339)]({'title':_0xaab20d['instant']('TOOLS.NOTIFICATIONS.TRIGGER_CREATED_SUCCESS_TITLE')}),_0x52fe79(_0x349267[_0x79a77d(0xcb6)]);})[_0x225f92(0x20cd)](function(_0x2734ae){const _0x2347c8=_0x225f92;if(_0x2734ae[_0x2347c8(0x1c52)]&&_0x2734ae[_0x2347c8(0x1c52)][_0x2347c8(0xbae)]&&_0x2734ae[_0x2347c8(0x1c52)]['errors'][_0x2347c8(0x1b9e)]){_0x349267[_0x2347c8(0xbae)]=_0x2734ae['data'][_0x2347c8(0xbae)]||[{'message':_0x2734ae[_0x2347c8(0x2915)](),'type':_0x2347c8(0x2069)}];for(let _0x58469f=0x0;_0x58469f<_0x2734ae[_0x2347c8(0x1c52)][_0x2347c8(0xbae)][_0x2347c8(0x1b9e)];_0x58469f+=0x1){_0x1a8e85[_0x2347c8(0x1bd0)]({'title':_0x2734ae['data'][_0x2347c8(0xbae)][_0x58469f][_0x2347c8(0x2185)],'msg':_0x2734ae[_0x2347c8(0x1c52)][_0x2347c8(0xbae)][_0x58469f][_0x2347c8(0x18ca)]});}}else _0x1a8e85[_0x2347c8(0x1bd0)]({'title':_0x2734ae[_0x2347c8(0x10b3)]?_0x2347c8(0x575)+_0x2734ae['status']+_0x2347c8(0x21db)+_0x2734ae[_0x2347c8(0x2115)]:'api.trigger.save','msg':_0x2734ae[_0x2347c8(0x1c52)]?JSON['stringify'](_0x2734ae[_0x2347c8(0x1c52)][_0x2347c8(0x18ca)]):_0x2734ae[_0x2347c8(0x2915)]()});});}function _0x13479e(){const _0x3b418a=_0x201a83;_0x349267['errors']=[],_0x1ea19a[_0x3b418a(0x1e8f)][_0x3b418a(0x2603)]({'id':_0x349267['trigger']['id']},_0x349267[_0x3b418a(0x1e8f)])['$promise']['then'](function(){const _0x57874b=_0x3b418a;_0x349267[_0x57874b(0xcb6)]=_0x28c606()[_0x57874b(0x1de5)](_0x349267[_0x57874b(0xcb6)],function(_0x52eef9){const _0x4f7b4e=_0x57874b;if(_0x52eef9['id']===_0x349267[_0x4f7b4e(0x1e8f)]['id'])return _0x349267['trigger'];else return _0x52eef9;}),_0x1a8e85[_0x57874b(0x1339)]({'title':_0xaab20d[_0x57874b(0x2292)]('TOOLS.NOTIFICATIONS.TRIGGER_SAVED_SUCCESS_TITLE')}),_0x52fe79(_0x349267['triggers']);})['catch'](function(_0x4bb349){const _0x12d420=_0x3b418a;if(_0x4bb349[_0x12d420(0x1c52)]&&_0x4bb349[_0x12d420(0x1c52)]['errors']&&_0x4bb349['data']['errors'][_0x12d420(0x1b9e)]){_0x349267[_0x12d420(0xbae)]=_0x4bb349['data']['errors']||[{'message':_0x4bb349['toString'](),'type':_0x12d420(0x1af4)}];for(let _0x2ebe0=0x0;_0x2ebe0<_0x4bb349['data'][_0x12d420(0xbae)][_0x12d420(0x1b9e)];_0x2ebe0++){_0x1a8e85[_0x12d420(0x1bd0)]({'title':_0x4bb349[_0x12d420(0x1c52)][_0x12d420(0xbae)][_0x2ebe0][_0x12d420(0x2185)],'msg':_0x4bb349['data'][_0x12d420(0xbae)][_0x2ebe0][_0x12d420(0x18ca)]});}}else _0x1a8e85['error']({'title':_0x4bb349[_0x12d420(0x10b3)]?_0x12d420(0x575)+_0x4bb349[_0x12d420(0x10b3)]+_0x12d420(0x21db)+_0x4bb349[_0x12d420(0x2115)]:_0x12d420(0x1af4),'msg':_0x4bb349['data']?JSON[_0x12d420(0x2317)](_0x4bb349[_0x12d420(0x1c52)]['message']):_0x4bb349['toString']()});});}function _0x3aa516(_0x574666){const _0x43d2c7=_0x201a83;_0x349267['errors']=[];const _0x651ce5=_0x5a283f['confirm']({'skipHide':!![]})[_0x43d2c7(0x2021)](_0xaab20d[_0x43d2c7(0x2292)](_0x43d2c7(0x6ba)))['content'](_0xaab20d['instant'](_0x43d2c7(0x1827),{'name':_0x349267['trigger'][_0x43d2c7(0x2494)]}))[_0x43d2c7(0x213e)](_0x43d2c7(0xfa5))['ok'](_0xaab20d[_0x43d2c7(0x2292)](_0x43d2c7(0x20f5)))[_0x43d2c7(0x101a)](_0xaab20d[_0x43d2c7(0x2292)](_0x43d2c7(0x4f5)))[_0x43d2c7(0x2283)](_0x574666);_0x5a283f[_0x43d2c7(0xa60)](_0x651ce5)[_0x43d2c7(0x64a)](function(){const _0x4e693f=_0x43d2c7;_0x1ea19a['trigger'][_0x4e693f(0xabd)]({'id':_0x349267['trigger']['id']})[_0x4e693f(0x15e7)][_0x4e693f(0x64a)](function(){const _0x523c90=_0x4e693f;_0x349267['triggers']=_0x28c606()[_0x523c90(0xcec)](_0x349267[_0x523c90(0xcb6)],function(_0x40d3d9){const _0x52c088=_0x523c90;return _0x40d3d9['id']!==_0x349267[_0x52c088(0x1e8f)]['id'];}),_0x1a8e85[_0x523c90(0x1339)]({'title':_0xaab20d[_0x523c90(0x2292)](_0x523c90(0xd9e))}),_0x52fe79(_0x349267[_0x523c90(0xcb6)]);})[_0x4e693f(0x20cd)](function(_0x2e2d7b){const _0x109520=_0x4e693f;if(_0x2e2d7b[_0x109520(0x1c52)]&&_0x2e2d7b['data'][_0x109520(0xbae)]&&_0x2e2d7b[_0x109520(0x1c52)][_0x109520(0xbae)][_0x109520(0x1b9e)]){_0x349267[_0x109520(0xbae)]=_0x2e2d7b[_0x109520(0x1c52)][_0x109520(0xbae)]||[{'message':_0x2e2d7b[_0x109520(0x2915)](),'type':'api.trigger.delete'}];for(let _0x28e2ae=0x0;_0x28e2ae<_0x2e2d7b['data'][_0x109520(0xbae)][_0x109520(0x1b9e)];_0x28e2ae++){_0x1a8e85['error']({'title':_0x2e2d7b[_0x109520(0x1c52)][_0x109520(0xbae)][_0x28e2ae][_0x109520(0x2185)],'msg':_0x2e2d7b[_0x109520(0x1c52)]['errors'][_0x28e2ae][_0x109520(0x18ca)]});}}else _0x1a8e85[_0x109520(0x1bd0)]({'title':_0x2e2d7b[_0x109520(0x10b3)]?_0x109520(0x575)+_0x2e2d7b[_0x109520(0x10b3)]+'\x20-\x20'+_0x2e2d7b['statusText']:_0x109520(0xc9b),'msg':_0x2e2d7b[_0x109520(0x1c52)]?JSON['stringify'](_0x2e2d7b['data'][_0x109520(0x18ca)]):_0x2e2d7b[_0x109520(0x18ca)]||_0x2e2d7b['toString']()});});},function(){});}function _0x52fe79(_0x3ea55e){const _0x3be0fb=_0x201a83;_0x5a283f[_0x3be0fb(0x268e)](_0x3ea55e);}}const _0x4c9ee1=_0x1b18b9;;const _0x14d2e4=_0x2e4a48['p']+_0x49a1e3(0x140f);;_0x2eee9e[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x298c),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x2eee9e(_0x4e6fd6,_0x20abbb,_0x53ed5e,_0x4c7e67,_0xb7c963,_0x5719ca,_0x67138f,_0x4de089){const _0x58c6f3=_0x49a1e3,_0x1f3d96=this;_0x1f3d96['currentUser']=_0x4de089['getCurrentUser'](),_0x1f3d96['trigger']={},_0x1f3d96[_0x58c6f3(0x1324)]={'count':0x0,'rows':[]},_0x1f3d96[_0x58c6f3(0x14a)]=[],_0x1f3d96['query']={'fields':'id,action,contact,data1,data2,data3,data4,data5,data6,data7,createdAt,updatedAt','limit':0xa,'page':0x1},_0x1f3d96[_0x58c6f3(0x151c)]={'zendesk':_0x58c6f3(0xf51),'salesforce':_0x58c6f3(0x204c),'sugarcrm':_0x58c6f3(0x283c),'freshdesk':_0x58c6f3(0xc23),'desk':_0x58c6f3(0x26e0),'zoho':'Zoho','vtiger':'vTiger','dynamics365':'Dynamics365','servicenow':'ServiceNow','freshsales':_0x58c6f3(0x20d9)},_0x1f3d96['motionBarOptions']={0x0:_0x58c6f3(0x604),0x1:_0x58c6f3(0x887),0x2:'Windows\x20App'},_0x1f3d96[_0x58c6f3(0x2483)]=_0x48b484,_0x1f3d96[_0x58c6f3(0x1339)]=_0x3c9b80,_0x1f3d96['getTriggerActions']=_0x314cf2,_0x1f3d96[_0x58c6f3(0xe92)]=_0x2522e3,_0x1f3d96[_0x58c6f3(0x190d)]=_0x389c58,_0x1f3d96[_0x58c6f3(0x217e)]=_0x5e8761,_0x1f3d96[_0x58c6f3(0xdd5)]=_0x373f04;function _0x48b484(_0x1b6586,_0x5adc20){const _0xa7c5ad=_0x58c6f3;_0x1f3d96[_0xa7c5ad(0x1e8f)]=_0x1b6586,_0x1f3d96['crudPermissions']=typeof _0x5adc20!==_0xa7c5ad(0x19a1)?_0x5adc20:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1f3d96[_0xa7c5ad(0x289a)][_0xa7c5ad(0xc2d)]=_0x1f3d96[_0xa7c5ad(0x1e8f)]['id'],_0x1f3d96[_0xa7c5ad(0x289a)]['id']=_0x1f3d96['trigger']['id'],_0x314cf2();}function _0x278800(){const _0x4aaff6=_0x58c6f3;_0x4de089['isAdmin']()?_0x67138f[_0x4aaff6(0x19f8)][_0x4aaff6(0x896)]({'fields':_0x4aaff6(0x1427),'sort':'name','nolimit':_0x4aaff6(0x1685)})[_0x4aaff6(0x15e7)][_0x4aaff6(0x64a)](function(_0x524b09){const _0x54657b=_0x4aaff6;_0x1f3d96[_0x54657b(0x974)]=_0x524b09['rows']||[];})[_0x4aaff6(0x20cd)](function(_0x449d63){const _0x27cb3b=_0x4aaff6;_0x5719ca[_0x27cb3b(0x1bd0)]({'title':_0x449d63[_0x27cb3b(0x10b3)]?_0x27cb3b(0x575)+_0x449d63['status']+'\x20-\x20'+_0x449d63['statusText']:_0x27cb3b(0x1ed6),'msg':_0x449d63[_0x27cb3b(0x1c52)]?JSON[_0x27cb3b(0x2317)](_0x449d63[_0x27cb3b(0x1c52)]):_0x449d63[_0x27cb3b(0x2915)]()});}):_0x67138f[_0x4aaff6(0x19f8)][_0x4aaff6(0x896)]({'fields':'id,name','sort':'name','nolimit':_0x4aaff6(0x1685)})['$promise'][_0x4aaff6(0x64a)](function(_0x26702a){const _0xc0b217=_0x4aaff6;_0x1f3d96[_0xc0b217(0x974)]=_0x26702a['rows']||[];})[_0x4aaff6(0x64a)](function(){const _0x33cd17=_0x4aaff6;return _0x67138f[_0x33cd17(0x16b2)][_0x33cd17(0x896)]({'userProfileId':_0x1f3d96[_0x33cd17(0x1d3d)][_0x33cd17(0x21ac)],'sectionId':0x12d})[_0x33cd17(0x15e7)];})[_0x4aaff6(0x64a)](function(_0x15afc4){const _0x592ff6=_0x4aaff6,_0x227291=_0x15afc4&&_0x15afc4[_0x592ff6(0x28b8)]?_0x15afc4[_0x592ff6(0x28b8)][0x0]:null;if(!_0x227291){const _0x1d546c=[],_0x465181=[];_0x1f3d96[_0x592ff6(0x1324)]['rows'][_0x592ff6(0x1397)](function(_0x48bc64){const _0x4928fd=_0x592ff6;if(_0x48bc64[_0x4928fd(0x798)]===_0x4928fd(0x894)){const _0x228e14=_0x28c606()[_0x4928fd(0x27bc)](_0x1f3d96['lists'],{'id':Number(_0x48bc64[_0x4928fd(0x813)])});_0x465181['push'](_0x228e14);}});for(let _0x5b28c5=0x0;_0x5b28c5<_0x1f3d96[_0x592ff6(0x974)][_0x592ff6(0x1b9e)];_0x5b28c5++){const _0xde5a75=_0x28c606()[_0x592ff6(0x25f8)](_0x465181,{'id':_0x1f3d96[_0x592ff6(0x974)][_0x5b28c5]['id']});_0xde5a75&&(_0x1f3d96[_0x592ff6(0x974)][_0x5b28c5][_0x592ff6(0xd4f)]=![],_0x1d546c[_0x592ff6(0x1954)](_0x1f3d96[_0x592ff6(0x974)][_0x5b28c5]));}_0x1f3d96['lists']=_0x1d546c;}else{if(!_0x227291[_0x592ff6(0x11da)])return _0x67138f[_0x592ff6(0x1617)][_0x592ff6(0x896)]({'sectionId':_0x227291['id']})[_0x592ff6(0x15e7)][_0x592ff6(0x64a)](function(_0x374ff2){const _0x582a0b=_0x592ff6,_0x36d401=_0x28c606()['map'](_0x374ff2[_0x582a0b(0x28b8)],function(_0x5c5a43){const _0x36ff77=_0x582a0b;return _0x28c606()['find'](_0x1f3d96['lists'],{'id':_0x5c5a43[_0x36ff77(0x145)]});});let _0x3a6f7e=null;_0x3a6f7e=[],_0x1f3d96[_0x582a0b(0x1324)]['rows'][_0x582a0b(0x1397)](function(_0x2bd87f){const _0x516e6b=_0x582a0b;if(_0x2bd87f[_0x516e6b(0x798)]==='contactManager'){const _0x32115a=_0x28c606()[_0x516e6b(0x27bc)](_0x1f3d96[_0x516e6b(0x974)],{'id':Number(_0x2bd87f[_0x516e6b(0x813)])});_0x3a6f7e[_0x516e6b(0x1954)](_0x32115a);}}),!_0x28c606()[_0x582a0b(0x940)](_0x3a6f7e)&&_0x3a6f7e[_0x582a0b(0x1397)](function(_0x2b94a7){const _0x1a6ac6=_0x582a0b;if(!_0x28c606()[_0x1a6ac6(0x25f8)](_0x36d401,['id',_0x2b94a7['id']])){const _0x2e6dcc=_0x28c606()[_0x1a6ac6(0x27bc)](_0x1f3d96[_0x1a6ac6(0x974)],{'id':_0x2b94a7['id']});_0x2e6dcc['canSelect']=![],_0x36d401[_0x1a6ac6(0x1954)](_0x2e6dcc);}}),_0x1f3d96[_0x582a0b(0x974)]=_0x36d401;});}})['catch'](function(_0x570b31){const _0x4fa77b=_0x4aaff6;_0x5719ca[_0x4fa77b(0x1bd0)]({'title':_0x570b31[_0x4fa77b(0x10b3)]?_0x4fa77b(0x575)+_0x570b31[_0x4fa77b(0x10b3)]+'\x20-\x20'+_0x570b31['statusText']:'SYSTEM:GETlists','msg':_0x570b31['data']?JSON[_0x4fa77b(0x2317)](_0x570b31[_0x4fa77b(0x1c52)]):_0x570b31[_0x4fa77b(0x2915)]()});});}function _0x30fe05(){const _0xbbf664=_0x58c6f3,_0x5daa82=_0x28c606()(_0x1f3d96[_0xbbf664(0x1324)][_0xbbf664(0x28b8)])[_0xbbf664(0x1de5)](function(_0x5767ba){const _0x2be745=_0xbbf664;return _0x5767ba['action']==='integration'?_0x5767ba[_0x2be745(0x813)]:undefined;})[_0xbbf664(0x2039)]()[_0xbbf664(0x810)]()[_0xbbf664(0x1096)]();_0x5daa82[_0xbbf664(0x1397)](function(_0x2df475){const _0x379b19=_0xbbf664,_0x3116ed=_0x2df475+'Accounts';if(!_0x1f3d96[_0x3116ed]){const _0x2a821e='int'+_0x28c606()[_0x379b19(0xc01)](_0x2df475)+_0x379b19(0x141);_0x67138f[_0x2a821e][_0x379b19(0x896)]({'fields':_0x379b19(0x1427),'sort':'id','nolimit':'true'})[_0x379b19(0x15e7)]['then'](function(_0x1c15da){const _0x410b64=_0x379b19;_0x1f3d96[_0x3116ed]=_0x1c15da[_0x410b64(0x28b8)]||[];})[_0x379b19(0x20cd)](function(_0x444242){const _0x40cc68=_0x379b19;_0x5719ca[_0x40cc68(0x1bd0)]({'title':_0x444242[_0x40cc68(0x10b3)]?_0x40cc68(0x575)+_0x444242[_0x40cc68(0x10b3)]+_0x40cc68(0x21db)+_0x444242[_0x40cc68(0x2115)]:_0x40cc68(0x96b)+_0x3116ed[_0x40cc68(0xa3c)]()+_0x40cc68(0xdc3),'msg':_0x444242[_0x40cc68(0x1c52)]?JSON[_0x40cc68(0x2317)](_0x444242[_0x40cc68(0x1c52)]):_0x444242[_0x40cc68(0x2915)]()});});}});}function _0x37fc3b(){const _0x16acbd=_0x58c6f3;_0x4de089[_0x16acbd(0x12c7)]()?_0x67138f[_0x16acbd(0x1fb9)][_0x16acbd(0x896)]({'fields':_0x16acbd(0x1427),'sort':_0x16acbd(0x2494),'nolimit':_0x16acbd(0x1685)})[_0x16acbd(0x15e7)][_0x16acbd(0x64a)](function(_0x25171b){_0x1f3d96['projects']=_0x25171b['rows']||[];})[_0x16acbd(0x20cd)](function(_0x57bc1a){const _0xfcff93=_0x16acbd;_0x5719ca[_0xfcff93(0x1bd0)]({'title':_0x57bc1a['status']?'API:'+_0x57bc1a[_0xfcff93(0x10b3)]+_0xfcff93(0x21db)+_0x57bc1a[_0xfcff93(0x2115)]:_0xfcff93(0x295e),'msg':_0x57bc1a['data']?JSON[_0xfcff93(0x2317)](_0x57bc1a[_0xfcff93(0x1c52)]):_0x57bc1a[_0xfcff93(0x2915)]()});}):_0x67138f[_0x16acbd(0x1fb9)][_0x16acbd(0x896)]({'fields':_0x16acbd(0x1427),'sort':'name','nolimit':_0x16acbd(0x1685)})['$promise']['then'](function(_0x1535b5){const _0x2e4d99=_0x16acbd;_0x1f3d96['projects']=_0x1535b5[_0x2e4d99(0x28b8)]||[];})[_0x16acbd(0x64a)](function(){const _0x22dd0c=_0x16acbd;return _0x67138f[_0x22dd0c(0x16b2)]['get']({'userProfileId':_0x1f3d96[_0x22dd0c(0x1d3d)][_0x22dd0c(0x21ac)],'sectionId':0x6a5})[_0x22dd0c(0x15e7)];})['then'](function(_0x55bd4b){const _0x3b3ec7=_0x16acbd,_0x5e3b6b=_0x55bd4b&&_0x55bd4b[_0x3b3ec7(0x28b8)]?_0x55bd4b[_0x3b3ec7(0x28b8)][0x0]:null;if(!_0x5e3b6b){const _0x185cb4=[],_0x59b2cd=[];_0x1f3d96['triggerActions']['rows'][_0x3b3ec7(0x1397)](function(_0x17770e){const _0x298fb9=_0x3b3ec7;if(_0x17770e[_0x298fb9(0x798)]==='jscripty'){const _0x283864=_0x28c606()['find'](_0x1f3d96[_0x298fb9(0x1d73)],{'id':Number(_0x17770e['data1'])});_0x59b2cd[_0x298fb9(0x1954)](_0x283864);}});for(let _0x107279=0x0;_0x107279<_0x1f3d96[_0x3b3ec7(0x1d73)]['length'];_0x107279++){const _0x3439ad=_0x28c606()[_0x3b3ec7(0x25f8)](_0x59b2cd,{'id':_0x1f3d96[_0x3b3ec7(0x1d73)][_0x107279]['id']});_0x3439ad&&(_0x1f3d96[_0x3b3ec7(0x1d73)][_0x107279][_0x3b3ec7(0xd4f)]=![],_0x185cb4[_0x3b3ec7(0x1954)](_0x1f3d96[_0x3b3ec7(0x1d73)][_0x107279]));}_0x1f3d96[_0x3b3ec7(0x1d73)]=_0x185cb4;}else{if(!_0x5e3b6b[_0x3b3ec7(0x11da)])return _0x67138f[_0x3b3ec7(0x1617)][_0x3b3ec7(0x896)]({'sectionId':_0x5e3b6b['id']})[_0x3b3ec7(0x15e7)][_0x3b3ec7(0x64a)](function(_0x5f5363){const _0x3acd6c=_0x3b3ec7,_0x2a044a=_0x28c606()[_0x3acd6c(0x1de5)](_0x5f5363[_0x3acd6c(0x28b8)],function(_0x553693){const _0x28eadf=_0x3acd6c;return _0x28c606()[_0x28eadf(0x27bc)](_0x1f3d96[_0x28eadf(0x1d73)],{'id':_0x553693[_0x28eadf(0x145)]});});let _0x4bc363=null;_0x4bc363=[],_0x1f3d96[_0x3acd6c(0x1324)]['rows'][_0x3acd6c(0x1397)](function(_0x22e67b){const _0x44cdc3=_0x3acd6c;if(_0x22e67b['action']===_0x44cdc3(0xd1c)){const _0x18d204=_0x28c606()[_0x44cdc3(0x27bc)](_0x1f3d96[_0x44cdc3(0x1d73)],{'id':Number(_0x22e67b['data1'])});_0x4bc363['push'](_0x18d204);}}),!_0x28c606()[_0x3acd6c(0x940)](_0x4bc363)&&_0x4bc363[_0x3acd6c(0x1397)](function(_0x21e2e5){const _0x554155=_0x3acd6c;if(!_0x28c606()[_0x554155(0x25f8)](_0x2a044a,['id',_0x21e2e5['id']])){const _0x177a97=_0x28c606()[_0x554155(0x27bc)](_0x1f3d96[_0x554155(0x1d73)],{'id':_0x21e2e5['id']});_0x177a97[_0x554155(0xd4f)]=![],_0x2a044a[_0x554155(0x1954)](_0x177a97);}}),_0x1f3d96['projects']=_0x2a044a;});}})[_0x16acbd(0x20cd)](function(_0x29c339){const _0x321900=_0x16acbd;_0x5719ca[_0x321900(0x1bd0)]({'title':_0x29c339['status']?'API:'+_0x29c339[_0x321900(0x10b3)]+_0x321900(0x21db)+_0x29c339[_0x321900(0x2115)]:_0x321900(0x2786),'msg':_0x29c339[_0x321900(0x1c52)]?JSON[_0x321900(0x2317)](_0x29c339['data']):_0x29c339['toString']()});});}function _0xc7c796(){const _0x6ffd31=_0x58c6f3;_0x4de089['isAdmin']()?_0x67138f[_0x6ffd31(0x2788)]['get']({'fields':_0x6ffd31(0x1427),'sort':'id','nolimit':_0x6ffd31(0x1685)})[_0x6ffd31(0x15e7)][_0x6ffd31(0x64a)](function(_0x174acd){const _0xd1687=_0x6ffd31;_0x1f3d96[_0xd1687(0x26c1)]=_0x174acd['rows']||[];})[_0x6ffd31(0x20cd)](function(_0x56e085){const _0x4a07dc=_0x6ffd31;_0x5719ca[_0x4a07dc(0x1bd0)]({'title':_0x56e085[_0x4a07dc(0x10b3)]?_0x4a07dc(0x575)+_0x56e085['status']+_0x4a07dc(0x21db)+_0x56e085[_0x4a07dc(0x2115)]:_0x4a07dc(0x101f),'msg':_0x56e085[_0x4a07dc(0x1c52)]?JSON[_0x4a07dc(0x2317)](_0x56e085[_0x4a07dc(0x1c52)]):_0x56e085['toString']()});}):_0x67138f[_0x6ffd31(0x2788)][_0x6ffd31(0x896)]({'fields':'id,name','sort':'id','nolimit':'true'})[_0x6ffd31(0x15e7)][_0x6ffd31(0x64a)](function(_0x3b688b){const _0x1b056e=_0x6ffd31;_0x1f3d96[_0x1b056e(0x26c1)]=_0x3b688b[_0x1b056e(0x28b8)]||[];})['then'](function(){const _0x4246c1=_0x6ffd31;return _0x67138f['userProfileSection']['get']({'userProfileId':_0x1f3d96[_0x4246c1(0x1d3d)][_0x4246c1(0x21ac)],'sectionId':0x3f1})[_0x4246c1(0x15e7)];})[_0x6ffd31(0x64a)](function(_0x19da58){const _0x5ca3ce=_0x6ffd31,_0x54c16e=_0x19da58&&_0x19da58[_0x5ca3ce(0x28b8)]?_0x19da58[_0x5ca3ce(0x28b8)][0x0]:null;if(!_0x54c16e){const _0x39e9bf=[],_0x3fb676=[];_0x1f3d96[_0x5ca3ce(0x1324)]['rows'][_0x5ca3ce(0x1397)](function(_0x254364){const _0x8e24a3=_0x5ca3ce;if(_0x28c606()[_0x8e24a3(0x68a)]([_0x8e24a3(0x127b),_0x8e24a3(0x1bbc)],_0x254364[_0x8e24a3(0x798)])){const _0x3df925=_0x28c606()['find'](_0x1f3d96[_0x8e24a3(0x26c1)],{'id':Number(_0x254364[_0x8e24a3(0x15fe)])});_0x3fb676[_0x8e24a3(0x1954)](_0x3df925);}});for(let _0x165dae=0x0;_0x165dae<_0x1f3d96[_0x5ca3ce(0x26c1)]['length'];_0x165dae++){const _0x25fcd9=_0x28c606()[_0x5ca3ce(0x25f8)](_0x3fb676,{'id':_0x1f3d96[_0x5ca3ce(0x26c1)][_0x165dae]['id']});_0x25fcd9&&(_0x1f3d96[_0x5ca3ce(0x26c1)][_0x165dae][_0x5ca3ce(0xd4f)]=![],_0x39e9bf[_0x5ca3ce(0x1954)](_0x1f3d96[_0x5ca3ce(0x26c1)][_0x165dae]));}_0x1f3d96['templates']=_0x39e9bf;}else{if(!_0x54c16e[_0x5ca3ce(0x11da)])return _0x67138f[_0x5ca3ce(0x1617)][_0x5ca3ce(0x896)]({'sectionId':_0x54c16e['id']})[_0x5ca3ce(0x15e7)]['then'](function(_0x319a03){const _0x2eb483=_0x5ca3ce,_0x2a9f38=_0x28c606()['map'](_0x319a03[_0x2eb483(0x28b8)],function(_0x1516c0){return _0x28c606()['find'](_0x1f3d96['templates'],{'id':_0x1516c0['resourceId']});});let _0x40f2d6=null;_0x40f2d6=[],_0x1f3d96['triggerActions'][_0x2eb483(0x28b8)]['forEach'](function(_0x163535){const _0x30affe=_0x2eb483;if(_0x28c606()[_0x30affe(0x68a)](['motionbar',_0x30affe(0x1bbc)],_0x163535['action'])){const _0x4b1931=_0x28c606()['find'](_0x1f3d96[_0x30affe(0x26c1)],{'id':Number(_0x163535['data2'])});_0x40f2d6['push'](_0x4b1931);}}),!_0x28c606()[_0x2eb483(0x940)](_0x40f2d6)&&_0x40f2d6[_0x2eb483(0x1397)](function(_0x4919cf){const _0x43d198=_0x2eb483;if(!_0x28c606()['some'](_0x2a9f38,['id',_0x4919cf['id']])){const _0x35a37f=_0x28c606()[_0x43d198(0x27bc)](_0x1f3d96[_0x43d198(0x26c1)],{'id':_0x4919cf['id']});_0x35a37f[_0x43d198(0xd4f)]=![],_0x2a9f38[_0x43d198(0x1954)](_0x35a37f);}}),_0x1f3d96[_0x2eb483(0x26c1)]=_0x2a9f38;});}})[_0x6ffd31(0x20cd)](function(_0x958d1b){const _0x318415=_0x6ffd31;_0x5719ca[_0x318415(0x1bd0)]({'title':_0x958d1b[_0x318415(0x10b3)]?_0x318415(0x575)+_0x958d1b[_0x318415(0x10b3)]+'\x20-\x20'+_0x958d1b['statusText']:_0x318415(0x101f),'msg':_0x958d1b[_0x318415(0x1c52)]?JSON[_0x318415(0x2317)](_0x958d1b[_0x318415(0x1c52)]):_0x958d1b['toString']()});});}function _0x213df3(){const _0x5c67d7=_0x58c6f3;if(_0x28c606()[_0x5c67d7(0x25f8)](_0x1f3d96[_0x5c67d7(0x1324)][_0x5c67d7(0x28b8)],['action',_0x5c67d7(0x894)])){if(!_0x1f3d96[_0x5c67d7(0x974)])_0x278800();}_0x28c606()['some'](_0x1f3d96[_0x5c67d7(0x1324)][_0x5c67d7(0x28b8)],[_0x5c67d7(0x798),_0x5c67d7(0x4b1)])&&_0x30fe05();if(_0x28c606()[_0x5c67d7(0x25f8)](_0x1f3d96[_0x5c67d7(0x1324)][_0x5c67d7(0x28b8)],function(_0x3d1b19){const _0xb6c9c=_0x5c67d7;return _0x28c606()['includes'](['motionbar',_0xb6c9c(0x1bbc)],_0x3d1b19['action']);})){if(!_0x1f3d96[_0x5c67d7(0x26c1)])_0xc7c796();}if(_0x28c606()[_0x5c67d7(0x25f8)](_0x1f3d96[_0x5c67d7(0x1324)][_0x5c67d7(0x28b8)],[_0x5c67d7(0x798),_0x5c67d7(0xd1c)])){if(!_0x1f3d96[_0x5c67d7(0x1d73)])_0x37fc3b();}}function _0x3c9b80(_0x583c1a){_0x1f3d96['triggerActions']=_0x583c1a||{'count':0x0,'rows':[]},_0x213df3();}function _0x314cf2(){const _0x471c0e=_0x58c6f3;_0x1f3d96['query'][_0x471c0e(0x24f9)]=(_0x1f3d96[_0x471c0e(0x289a)][_0x471c0e(0xc72)]-0x1)*_0x1f3d96[_0x471c0e(0x289a)][_0x471c0e(0x25bb)],_0x1f3d96[_0x471c0e(0x1713)]=_0x67138f['trigger'][_0x471c0e(0x225b)](_0x1f3d96[_0x471c0e(0x289a)],_0x3c9b80)[_0x471c0e(0x15e7)];}function _0x2522e3(_0x27d2f9,_0x2c1848){const _0x2c3a65=_0x58c6f3;_0x4c7e67[_0x2c3a65(0xa60)]({'controller':_0x2c3a65(0x14ec),'controllerAs':'vm','templateUrl':_0x14d2e4,'parent':angular[_0x2c3a65(0x1f81)](_0xb7c963[_0x2c3a65(0xb49)]),'targetEvent':_0x27d2f9,'clickOutsideToClose':!![],'locals':{'trigger':_0x1f3d96[_0x2c3a65(0x1e8f)],'action':_0x2c1848,'actions':_0x1f3d96[_0x2c3a65(0x1324)][_0x2c3a65(0x28b8)],'license':null,'setting':null,'crudPermissions':_0x1f3d96[_0x2c3a65(0x402)]}})[_0x2c3a65(0x64a)](function(_0x1196d8){const _0x3c2ba5=_0x2c3a65;_0x1196d8&&(_0x1f3d96[_0x3c2ba5(0x1324)]={'count':_0x1196d8[_0x3c2ba5(0x1b9e)],'rows':_0x1196d8},_0x213df3());});}function _0x5e8761(_0x567651,_0x29e29c){const _0x102555=_0x58c6f3,_0x4e0fc2=_0x4c7e67['confirm']()[_0x102555(0x2021)](_0x20abbb[_0x102555(0x2292)](_0x102555(0x1b9f)))['ariaLabel'](_0x102555(0x247b))[_0x102555(0x2283)](_0x29e29c)['ok']('OK')[_0x102555(0x101a)](_0x20abbb[_0x102555(0x2292)]('APP.CANCEL'));_0x4c7e67[_0x102555(0xa60)](_0x4e0fc2)[_0x102555(0x64a)](function(){_0x16cfcf(_0x567651,!![]);});}function _0x16cfcf(_0x2d8099,_0x4f050f){const _0xecce51=_0x58c6f3;_0x67138f[_0xecce51(0x798)]['delete']({'id':_0x2d8099['id']})[_0xecce51(0x15e7)][_0xecce51(0x64a)](function(){const _0x38be42=_0xecce51;_0x314cf2(),_0x4f050f&&_0x5719ca[_0x38be42(0x1339)]({'title':_0x20abbb[_0x38be42(0x2292)]('TOOLS.NOTIFICATIONS.ACTION_DELETED_SUCCESS_TITLE')});})[_0xecce51(0x20cd)](function(_0x18afaa){const _0x2eb66d=_0xecce51;if(_0x18afaa[_0x2eb66d(0x1c52)]&&_0x18afaa['data'][_0x2eb66d(0xbae)]&&_0x18afaa[_0x2eb66d(0x1c52)][_0x2eb66d(0xbae)][_0x2eb66d(0x1b9e)]){_0x1f3d96[_0x2eb66d(0xbae)]=_0x18afaa[_0x2eb66d(0x1c52)][_0x2eb66d(0xbae)]||[{'message':_0x18afaa[_0x2eb66d(0x2915)](),'type':_0x2eb66d(0x1abd)}];for(let _0x3174a4=0x0;_0x3174a4<_0x18afaa['data'][_0x2eb66d(0xbae)][_0x2eb66d(0x1b9e)];_0x3174a4++){_0x5719ca[_0x2eb66d(0x1bd0)]({'title':_0x18afaa[_0x2eb66d(0x1c52)][_0x2eb66d(0xbae)][_0x3174a4][_0x2eb66d(0x2185)],'msg':_0x18afaa[_0x2eb66d(0x1c52)][_0x2eb66d(0xbae)][_0x3174a4]['message']});}}else _0x5719ca[_0x2eb66d(0x1bd0)]({'title':_0x18afaa['status']?'API:'+_0x18afaa[_0x2eb66d(0x10b3)]+_0x2eb66d(0x21db)+_0x18afaa[_0x2eb66d(0x2115)]:_0x2eb66d(0x1abd),'msg':_0x18afaa['data']?JSON[_0x2eb66d(0x2317)](_0x18afaa[_0x2eb66d(0x1c52)]['message']):_0x18afaa[_0x2eb66d(0x18ca)]||_0x18afaa[_0x2eb66d(0x2915)]()});});}function _0x389c58(){const _0x194544=_0x58c6f3,_0x518519=angular[_0x194544(0x289e)](_0x1f3d96['selectedTriggerActions']);return _0x1f3d96[_0x194544(0x14a)]=[],_0x518519;}function _0x373f04(_0x5db560){const _0x345fdc=_0x58c6f3,_0x38bb27=_0x4c7e67[_0x345fdc(0x856)]()[_0x345fdc(0x2021)](_0x20abbb[_0x345fdc(0x2292)](_0x345fdc(0x4ab)))['content'](_0x20abbb['instant'](_0x345fdc(0x1c24),{'total':_0x1f3d96[_0x345fdc(0x14a)]['length']}))[_0x345fdc(0x213e)]('Delete\x20actions')['targetEvent'](_0x5db560)['ok']('OK')[_0x345fdc(0x101a)](_0x20abbb[_0x345fdc(0x2292)]('APP.CANCEL'));_0x4c7e67[_0x345fdc(0xa60)](_0x38bb27)[_0x345fdc(0x64a)](function(){const _0xf69c59=_0x345fdc;_0x1f3d96[_0xf69c59(0x14a)][_0xf69c59(0x1397)](function(_0x5428cd){_0x16cfcf(_0x5428cd);}),_0x1f3d96[_0xf69c59(0x14a)]=[],_0x5719ca[_0xf69c59(0x1339)]({'title':_0x20abbb[_0xf69c59(0x2292)](_0xf69c59(0x165d))});});}let _0x1ac2c2=!![],_0x39fb11=0x1;_0x4e6fd6['$watch'](_0x58c6f3(0x1200),function(_0x17b9e,_0x2c10f4){const _0x36bc1a=_0x58c6f3;_0x1ac2c2?_0x53ed5e(function(){_0x1ac2c2=![];}):(!_0x2c10f4&&(_0x39fb11=_0x1f3d96['query'][_0x36bc1a(0xc72)]),_0x17b9e!==_0x2c10f4&&(_0x1f3d96[_0x36bc1a(0x289a)][_0x36bc1a(0xc72)]=0x1),!_0x17b9e&&(_0x1f3d96[_0x36bc1a(0x289a)][_0x36bc1a(0xc72)]=_0x39fb11),_0x314cf2());});}const _0xdc0ece=_0x2eee9e;;_0xcfb822[_0x49a1e3(0x1e73)]=['$state','$mdDialog',_0x49a1e3(0x298c),_0x49a1e3(0x680),'actions','action','trigger',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0xcfb822(_0x4a8cd2,_0x50b9b1,_0x167d49,_0x1cdd76,_0x87cd6d,_0x433e4c,_0x40bd6b,_0x4dcedf,_0x321cf0,_0x39fd3f,_0x591586,_0x3de476){const _0x3ad28c=_0x49a1e3,_0x4e0ec8=this;_0x4e0ec8['currentUser']=_0x321cf0[_0x3ad28c(0x808)](),_0x4e0ec8[_0x3ad28c(0x798)]=angular['copy'](_0x433e4c),_0x4e0ec8[_0x3ad28c(0x23ab)]=angular['copy'](_0x87cd6d),_0x4e0ec8[_0x3ad28c(0x28d6)]=_0x591586,_0x4e0ec8[_0x3ad28c(0x1947)]=_0x39fd3f,_0x4e0ec8[_0x3ad28c(0x402)]=_0x3de476,_0x4e0ec8[_0x3ad28c(0x1256)]=![],_0x4e0ec8[_0x3ad28c(0xbae)]=[],_0x4e0ec8['trigger']=angular[_0x3ad28c(0x289e)](_0x40bd6b);!_0x4e0ec8[_0x3ad28c(0x798)]&&(_0x4e0ec8[_0x3ad28c(0x798)]={},_0x4e0ec8[_0x3ad28c(0x1256)]=!![]);_0x4e0ec8[_0x3ad28c(0x798)]['ActionId']=_0x4a8cd2['params']['id']||undefined,_0x4e0ec8[_0x3ad28c(0x98e)]=[_0x3ad28c(0x267a),'mobile',_0x3ad28c(0x1d37)],_0x4e0ec8[_0x3ad28c(0x109d)]=_0x230c54,_0x4e0ec8[_0x3ad28c(0x1d26)]=_0x2f2358,_0x4e0ec8[_0x3ad28c(0x19ec)]=_0x9e74ed,_0x4e0ec8[_0x3ad28c(0xad4)]=_0x532bea,_0x4e0ec8[_0x3ad28c(0x225a)]=_0x26f724,_0x4e0ec8[_0x3ad28c(0xa2e)]=_0x1847da,_0x4e0ec8[_0x3ad28c(0xa38)]=_0x20b055,_0x4e0ec8['onIntegrationSelection']=_0x2c7742,_0x4e0ec8[_0x3ad28c(0x661)]=_0x566feb,_0x4e0ec8['onTypeSelection']=_0x4bd121,_0x4e0ec8[_0x3ad28c(0x1fb2)]=_0x511ff8,_0x4e0ec8['onIntegrationAccountSelection']=_0x3bbc2e,_0x4e0ec8['closeDialog']=_0xb7329b;function _0x532bea(){const _0x1be148=_0x3ad28c;_0x321cf0[_0x1be148(0x6c2)](_0x1be148(0x660))[_0x1be148(0x64a)](function(_0x29ab55){_0x4e0ec8['hasIntegrationsPermissions']=_0x29ab55;})[_0x1be148(0x20cd)](function(_0x548ef5){const _0x30ffc1=_0x1be148;_0x1cdd76[_0x30ffc1(0x1bd0)]({'title':_0x548ef5[_0x30ffc1(0x10b3)]?_0x30ffc1(0x575)+_0x548ef5[_0x30ffc1(0x10b3)]+_0x30ffc1(0x21db)+_0x548ef5[_0x30ffc1(0x2115)]:_0x30ffc1(0x2090),'msg':_0x548ef5[_0x30ffc1(0x1c52)]?JSON[_0x30ffc1(0x2317)](_0x548ef5[_0x30ffc1(0x1c52)]):_0x548ef5['toString']()});});if(_0x4e0ec8[_0x1be148(0x798)][_0x1be148(0x798)])_0x224e83();}function _0x26f724(){const _0x371383=_0x3ad28c,_0x5396e9=[0x515,0x516,0x517,0x519,0x51a,0x51b,0x51c,0x51d,0x51e,0x51f];_0x321cf0[_0x371383(0x713)](_0x5396e9)[_0x371383(0x64a)](function(_0x2f5f9e){const _0x479b0c=_0x371383;_0x4e0ec8[_0x479b0c(0x19e2)]=_0x28c606()['merge'](_0x4e0ec8[_0x479b0c(0x19e2)],_0x2f5f9e);})[_0x371383(0x20cd)](function(_0x55c0b3){const _0x95696=_0x371383;_0x1cdd76[_0x95696(0x1bd0)]({'title':_0x55c0b3[_0x95696(0x10b3)]?_0x95696(0x575)+_0x55c0b3[_0x95696(0x10b3)]+_0x95696(0x21db)+_0x55c0b3[_0x95696(0x2115)]:_0x95696(0x1ae6),'msg':_0x55c0b3['data']?JSON[_0x95696(0x2317)](_0x55c0b3[_0x95696(0x1c52)]):_0x55c0b3[_0x95696(0x2915)]()});});}function _0x1847da(){if(!_0x4e0ec8['newAction'])_0x4093b7();}function _0x1aef2e(){const _0xd0bbe0=_0x3ad28c;_0x321cf0[_0xd0bbe0(0x12c7)]()?_0x4dcedf['cmList'][_0xd0bbe0(0x896)]({'fields':_0xd0bbe0(0x1427),'sort':'name','nolimit':_0xd0bbe0(0x1685)})['$promise']['then'](function(_0x442b71){const _0x12deb1=_0xd0bbe0;_0x4e0ec8[_0x12deb1(0x974)]=_0x442b71[_0x12deb1(0x28b8)]||[];})['catch'](function(_0x129cb7){const _0x25f4ed=_0xd0bbe0;_0x1cdd76[_0x25f4ed(0x1bd0)]({'title':_0x129cb7[_0x25f4ed(0x10b3)]?_0x25f4ed(0x575)+_0x129cb7[_0x25f4ed(0x10b3)]+'\x20-\x20'+_0x129cb7[_0x25f4ed(0x2115)]:_0x25f4ed(0x1ed6),'msg':_0x129cb7[_0x25f4ed(0x1c52)]?JSON['stringify'](_0x129cb7[_0x25f4ed(0x1c52)]):_0x129cb7[_0x25f4ed(0x2915)]()});}):_0x4dcedf['cmList'][_0xd0bbe0(0x896)]({'fields':_0xd0bbe0(0x1427),'sort':_0xd0bbe0(0x2494),'nolimit':_0xd0bbe0(0x1685)})[_0xd0bbe0(0x15e7)][_0xd0bbe0(0x64a)](function(_0x5804c5){const _0x298f05=_0xd0bbe0;_0x4e0ec8[_0x298f05(0x974)]=_0x5804c5[_0x298f05(0x28b8)]||[];})['then'](function(){const _0x3cbc8c=_0xd0bbe0;return _0x4dcedf[_0x3cbc8c(0x16b2)][_0x3cbc8c(0x896)]({'userProfileId':_0x4e0ec8[_0x3cbc8c(0x1d3d)]['userProfileId'],'sectionId':0x12d})[_0x3cbc8c(0x15e7)];})[_0xd0bbe0(0x64a)](function(_0x4f9219){const _0x141cbf=_0xd0bbe0,_0x40c8d2=_0x4f9219&&_0x4f9219[_0x141cbf(0x28b8)]?_0x4f9219[_0x141cbf(0x28b8)][0x0]:null;if(!_0x40c8d2){const _0x128067=[],_0xa15e0b=[];_0x4e0ec8[_0x141cbf(0x1324)][_0x141cbf(0x28b8)][_0x141cbf(0x1397)](function(_0x31cb4a){const _0x33cbed=_0x141cbf;if(_0x31cb4a[_0x33cbed(0x798)]===_0x33cbed(0x894)){const _0x18df31=_0x28c606()['find'](_0x4e0ec8[_0x33cbed(0x974)],{'id':Number(_0x31cb4a[_0x33cbed(0x813)])});_0xa15e0b[_0x33cbed(0x1954)](_0x18df31);}});for(let _0x2db6b0=0x0;_0x2db6b0<_0x4e0ec8[_0x141cbf(0x974)][_0x141cbf(0x1b9e)];_0x2db6b0++){const _0x271052=_0x28c606()[_0x141cbf(0x25f8)](_0xa15e0b,{'id':_0x4e0ec8[_0x141cbf(0x974)][_0x2db6b0]['id']});_0x271052&&(_0x4e0ec8['lists'][_0x2db6b0][_0x141cbf(0xd4f)]=![],_0x128067[_0x141cbf(0x1954)](_0x4e0ec8[_0x141cbf(0x974)][_0x2db6b0]));}_0x4e0ec8[_0x141cbf(0x974)]=_0x128067;}else{if(!_0x40c8d2[_0x141cbf(0x11da)])return _0x4dcedf[_0x141cbf(0x1617)][_0x141cbf(0x896)]({'sectionId':_0x40c8d2['id']})[_0x141cbf(0x15e7)][_0x141cbf(0x64a)](function(_0x5c9416){const _0x47e5b6=_0x141cbf,_0x2c2749=_0x28c606()['map'](_0x5c9416[_0x47e5b6(0x28b8)],function(_0x619363){const _0x21e6d3=_0x47e5b6;return _0x28c606()[_0x21e6d3(0x27bc)](_0x4e0ec8[_0x21e6d3(0x974)],{'id':_0x619363[_0x21e6d3(0x145)]});});let _0x1c95f5=null;_0x1c95f5=[],_0x4e0ec8['triggerActions'][_0x47e5b6(0x28b8)][_0x47e5b6(0x1397)](function(_0x54cc0a){const _0x79c506=_0x47e5b6;if(_0x54cc0a[_0x79c506(0x798)]===_0x79c506(0x894)){const _0x492c8a=_0x28c606()[_0x79c506(0x27bc)](_0x4e0ec8['lists'],{'id':Number(_0x54cc0a[_0x79c506(0x813)])});_0x1c95f5['push'](_0x492c8a);}}),!_0x28c606()[_0x47e5b6(0x940)](_0x1c95f5)&&_0x1c95f5[_0x47e5b6(0x1397)](function(_0x5185e9){const _0x30f829=_0x47e5b6;if(!_0x28c606()[_0x30f829(0x25f8)](_0x2c2749,['id',_0x5185e9['id']])){const _0xe7708e=_0x28c606()[_0x30f829(0x27bc)](_0x4e0ec8[_0x30f829(0x974)],{'id':_0x5185e9['id']});_0xe7708e[_0x30f829(0xd4f)]=![],_0x2c2749['push'](_0xe7708e);}}),_0x4e0ec8[_0x47e5b6(0x974)]=_0x2c2749;});}})[_0xd0bbe0(0x20cd)](function(_0x447942){const _0x572862=_0xd0bbe0;_0x1cdd76[_0x572862(0x1bd0)]({'title':_0x447942['status']?'API:'+_0x447942['status']+'\x20-\x20'+_0x447942[_0x572862(0x2115)]:_0x572862(0x1beb),'msg':_0x447942[_0x572862(0x1c52)]?JSON[_0x572862(0x2317)](_0x447942[_0x572862(0x1c52)]):_0x447942['toString']()});});}function _0x29c9a9(){const _0x1dd817=_0x3ad28c;_0x4dcedf[_0x1dd817(0xdf5)][_0x1dd817(0xa81)]({})[_0x1dd817(0x15e7)][_0x1dd817(0x64a)](function(_0x4fe347){const _0x52f1af=_0x1dd817;_0x4e0ec8[_0x52f1af(0x127a)]=[],_0x4e0ec8[_0x52f1af(0x1559)]=[];const _0x4ef496=_0x28c606()[_0x52f1af(0x2146)](_0x4fe347[_0x52f1af(0x14f8)]());for(let _0x51d3d6=0x0;_0x51d3d6<_0x4ef496['length'];_0x51d3d6++){if(_0x28c606()['includes'](_0x4e0ec8['allowedStandardFields'],_0x4ef496[_0x51d3d6][_0x52f1af(0x210b)]))_0x4e0ec8['contactFields'][_0x52f1af(0x1954)](_0x4ef496[_0x51d3d6]);else{if(_0x28c606()[_0x52f1af(0x1273)](_0x4ef496[_0x51d3d6][_0x52f1af(0x210b)],_0x52f1af(0x48d))){if(_0x4ef496[_0x51d3d6]['custom'][_0x52f1af(0x2185)]===_0x52f1af(0x39b))_0x4e0ec8[_0x52f1af(0x1559)][_0x52f1af(0x1954)](_0x4ef496[_0x51d3d6]);}}}})[_0x1dd817(0x20cd)](function(_0x27d113){const _0x4f1f7d=_0x1dd817;_0x1cdd76['error']({'title':_0x27d113[_0x4f1f7d(0x10b3)]?_0x4f1f7d(0x575)+_0x27d113[_0x4f1f7d(0x10b3)]+_0x4f1f7d(0x21db)+_0x27d113[_0x4f1f7d(0x2115)]:_0x4f1f7d(0x2e4),'msg':_0x27d113['data']?JSON[_0x4f1f7d(0x2317)](_0x27d113[_0x4f1f7d(0x1c52)]):_0x27d113[_0x4f1f7d(0x2915)]()});});}function _0x4093b7(){const _0x24ea25=_0x3ad28c;_0x4dcedf['cmList'][_0x24ea25(0x231f)]({'id':_0x4e0ec8[_0x24ea25(0x798)]['data1'],'ListId':_0x4e0ec8[_0x24ea25(0x798)][_0x24ea25(0x813)]})[_0x24ea25(0x15e7)][_0x24ea25(0x64a)](function(_0x59553a){const _0x2851f8=_0x24ea25;_0x4e0ec8['listFields']=_0x28c606()[_0x2851f8(0xcec)](_0x59553a[_0x2851f8(0x28b8)],['type',_0x2851f8(0x39b)]),_0x4e0ec8[_0x2851f8(0x1aad)][_0x2851f8(0x1397)](function(_0x4c4e82){const _0x4e9c81=_0x2851f8;_0x4c4e82[_0x4e9c81(0x210b)]='cf_'+_0x4c4e82['id'];});})[_0x24ea25(0x20cd)](function(_0x5cb999){const _0x350242=_0x24ea25;_0x1cdd76[_0x350242(0x1bd0)]({'title':_0x5cb999['status']?'API:'+_0x5cb999[_0x350242(0x10b3)]+_0x350242(0x21db)+_0x5cb999[_0x350242(0x2115)]:_0x350242(0x2084),'msg':_0x5cb999[_0x350242(0x1c52)]?JSON['stringify'](_0x5cb999[_0x350242(0x1c52)]):_0x5cb999[_0x350242(0x2915)]()});});}function _0x57d2d5(){const _0x11f14c=_0x3ad28c;_0x321cf0[_0x11f14c(0x12c7)]()?_0x4dcedf[_0x11f14c(0x1fb9)][_0x11f14c(0x896)]({'fields':_0x11f14c(0x1427),'sort':'name','nolimit':_0x11f14c(0x1685)})[_0x11f14c(0x15e7)][_0x11f14c(0x64a)](function(_0x208cf0){const _0x28159c=_0x11f14c;_0x4e0ec8['projects']=_0x208cf0[_0x28159c(0x28b8)]||[];})[_0x11f14c(0x20cd)](function(_0x564634){const _0x3bf91c=_0x11f14c;_0x1cdd76[_0x3bf91c(0x1bd0)]({'title':_0x564634['status']?_0x3bf91c(0x575)+_0x564634[_0x3bf91c(0x10b3)]+_0x3bf91c(0x21db)+_0x564634[_0x3bf91c(0x2115)]:_0x3bf91c(0x295e),'msg':_0x564634['data']?JSON[_0x3bf91c(0x2317)](_0x564634[_0x3bf91c(0x1c52)]):_0x564634[_0x3bf91c(0x2915)]()});}):_0x4dcedf[_0x11f14c(0x1fb9)][_0x11f14c(0x896)]({'fields':_0x11f14c(0x1427),'sort':'name','nolimit':_0x11f14c(0x1685)})['$promise'][_0x11f14c(0x64a)](function(_0x10faff){const _0x32b139=_0x11f14c;_0x4e0ec8[_0x32b139(0x1d73)]=_0x10faff['rows']||[];})[_0x11f14c(0x64a)](function(){const _0xcc58f8=_0x11f14c;return _0x4dcedf['userProfileSection'][_0xcc58f8(0x896)]({'userProfileId':_0x4e0ec8['currentUser'][_0xcc58f8(0x21ac)],'sectionId':0x6a5})['$promise'];})[_0x11f14c(0x64a)](function(_0x2e3171){const _0x5a66dd=_0x11f14c,_0x422423=_0x2e3171&&_0x2e3171[_0x5a66dd(0x28b8)]?_0x2e3171[_0x5a66dd(0x28b8)][0x0]:null;if(!_0x422423){const _0x160830=[],_0xc03f=[];_0x4e0ec8['triggerActions'][_0x5a66dd(0x28b8)]['forEach'](function(_0x2f2551){const _0x46b565=_0x5a66dd;if(_0x2f2551[_0x46b565(0x798)]===_0x46b565(0xd1c)){const _0x3018ed=_0x28c606()['find'](_0x4e0ec8[_0x46b565(0x1d73)],{'id':Number(_0x2f2551[_0x46b565(0x813)])});_0xc03f[_0x46b565(0x1954)](_0x3018ed);}});for(let _0x150eed=0x0;_0x150eed<_0x4e0ec8['projects'][_0x5a66dd(0x1b9e)];_0x150eed++){const _0x107764=_0x28c606()[_0x5a66dd(0x25f8)](_0xc03f,{'id':_0x4e0ec8[_0x5a66dd(0x1d73)][_0x150eed]['id']});_0x107764&&(_0x4e0ec8['projects'][_0x150eed][_0x5a66dd(0xd4f)]=![],_0x160830[_0x5a66dd(0x1954)](_0x4e0ec8[_0x5a66dd(0x1d73)][_0x150eed]));}_0x4e0ec8[_0x5a66dd(0x1d73)]=_0x160830;}else{if(!_0x422423[_0x5a66dd(0x11da)])return _0x4dcedf[_0x5a66dd(0x1617)][_0x5a66dd(0x896)]({'sectionId':_0x422423['id']})[_0x5a66dd(0x15e7)][_0x5a66dd(0x64a)](function(_0x3bf028){const _0x2ee1c6=_0x5a66dd,_0x182c78=_0x28c606()[_0x2ee1c6(0x1de5)](_0x3bf028['rows'],function(_0x44fcde){const _0x326d96=_0x2ee1c6;return _0x28c606()[_0x326d96(0x27bc)](_0x4e0ec8[_0x326d96(0x1d73)],{'id':_0x44fcde[_0x326d96(0x145)]});});let _0x20ddfe=null;_0x20ddfe=[],_0x4e0ec8['triggerActions']['rows'][_0x2ee1c6(0x1397)](function(_0x4166ae){const _0x2c455e=_0x2ee1c6;if(_0x4166ae[_0x2c455e(0x798)]===_0x2c455e(0xd1c)){const _0x4d0a6a=_0x28c606()[_0x2c455e(0x27bc)](_0x4e0ec8[_0x2c455e(0x1d73)],{'id':Number(_0x4166ae['data1'])});_0x20ddfe['push'](_0x4d0a6a);}}),!_0x28c606()[_0x2ee1c6(0x940)](_0x20ddfe)&&_0x20ddfe[_0x2ee1c6(0x1397)](function(_0x5a6c50){const _0x468149=_0x2ee1c6;if(!_0x28c606()[_0x468149(0x25f8)](_0x182c78,['id',_0x5a6c50['id']])){const _0x58166a=_0x28c606()[_0x468149(0x27bc)](_0x4e0ec8['projects'],{'id':_0x5a6c50['id']});_0x58166a[_0x468149(0xd4f)]=![],_0x182c78[_0x468149(0x1954)](_0x58166a);}}),_0x4e0ec8[_0x2ee1c6(0x1d73)]=_0x182c78;});}})[_0x11f14c(0x20cd)](function(_0x5ddbe8){const _0x1680c8=_0x11f14c;_0x1cdd76[_0x1680c8(0x1bd0)]({'title':_0x5ddbe8['status']?'API:'+_0x5ddbe8[_0x1680c8(0x10b3)]+_0x1680c8(0x21db)+_0x5ddbe8[_0x1680c8(0x2115)]:_0x1680c8(0x2786),'msg':_0x5ddbe8[_0x1680c8(0x1c52)]?JSON['stringify'](_0x5ddbe8[_0x1680c8(0x1c52)]):_0x5ddbe8['toString']()});});}function _0x28c9d4(){const _0x57719f=_0x3ad28c;_0x321cf0['isAdmin']()?_0x4dcedf['template'][_0x57719f(0x896)]({'fields':_0x57719f(0x1427),'sort':'id','nolimit':_0x57719f(0x1685)})[_0x57719f(0x15e7)]['then'](function(_0x21d622){const _0x395e81=_0x57719f;_0x4e0ec8[_0x395e81(0x26c1)]=_0x21d622[_0x395e81(0x28b8)]||[];})[_0x57719f(0x20cd)](function(_0xd8cf98){const _0x2ef569=_0x57719f;_0x1cdd76[_0x2ef569(0x1bd0)]({'title':_0xd8cf98[_0x2ef569(0x10b3)]?_0x2ef569(0x575)+_0xd8cf98[_0x2ef569(0x10b3)]+_0x2ef569(0x21db)+_0xd8cf98['statusText']:'SYSTEM:GET_TEMPLATES','msg':_0xd8cf98[_0x2ef569(0x1c52)]?JSON[_0x2ef569(0x2317)](_0xd8cf98[_0x2ef569(0x1c52)]):_0xd8cf98[_0x2ef569(0x2915)]()});}):_0x4dcedf[_0x57719f(0x2788)][_0x57719f(0x896)]({'fields':'id,name','sort':'id','nolimit':_0x57719f(0x1685)})['$promise']['then'](function(_0x19e1eb){const _0x55e2ea=_0x57719f;_0x4e0ec8[_0x55e2ea(0x26c1)]=_0x19e1eb['rows']||[];})['then'](function(){const _0x135ccc=_0x57719f;return _0x4dcedf[_0x135ccc(0x16b2)][_0x135ccc(0x896)]({'userProfileId':_0x4e0ec8['currentUser'][_0x135ccc(0x21ac)],'sectionId':0x3f1})['$promise'];})['then'](function(_0x2b2638){const _0x33ae6a=_0x57719f,_0x4706c5=_0x2b2638&&_0x2b2638[_0x33ae6a(0x28b8)]?_0x2b2638['rows'][0x0]:null;if(!_0x4706c5){const _0xcc064e=[],_0x588adb=[];_0x4e0ec8['triggerActions'][_0x33ae6a(0x28b8)][_0x33ae6a(0x1397)](function(_0x1857bf){const _0x11c5fa=_0x33ae6a;if(_0x28c606()[_0x11c5fa(0x68a)]([_0x11c5fa(0x127b),_0x11c5fa(0x1bbc)],_0x1857bf[_0x11c5fa(0x798)])){const _0x3de796=_0x28c606()[_0x11c5fa(0x27bc)](_0x4e0ec8[_0x11c5fa(0x26c1)],{'id':Number(_0x1857bf[_0x11c5fa(0x15fe)])});_0x588adb[_0x11c5fa(0x1954)](_0x3de796);}});for(let _0x40a334=0x0;_0x40a334<_0x4e0ec8[_0x33ae6a(0x26c1)][_0x33ae6a(0x1b9e)];_0x40a334++){const _0x2e4170=_0x28c606()[_0x33ae6a(0x25f8)](_0x588adb,{'id':_0x4e0ec8[_0x33ae6a(0x26c1)][_0x40a334]['id']});_0x2e4170&&(_0x4e0ec8[_0x33ae6a(0x26c1)][_0x40a334][_0x33ae6a(0xd4f)]=![],_0xcc064e['push'](_0x4e0ec8[_0x33ae6a(0x26c1)][_0x40a334]));}_0x4e0ec8[_0x33ae6a(0x26c1)]=_0xcc064e;}else{if(!_0x4706c5['autoAssociation'])return _0x4dcedf[_0x33ae6a(0x1617)][_0x33ae6a(0x896)]({'sectionId':_0x4706c5['id']})['$promise'][_0x33ae6a(0x64a)](function(_0x1e695a){const _0x37e846=_0x33ae6a,_0x1a5085=_0x28c606()[_0x37e846(0x1de5)](_0x1e695a['rows'],function(_0xa960f3){const _0x3e539a=_0x37e846;return _0x28c606()[_0x3e539a(0x27bc)](_0x4e0ec8[_0x3e539a(0x26c1)],{'id':_0xa960f3[_0x3e539a(0x145)]});});let _0x5339b6=null;_0x5339b6=[],_0x4e0ec8[_0x37e846(0x1324)][_0x37e846(0x28b8)]['forEach'](function(_0x5b21b9){const _0x4974e2=_0x37e846;if(_0x28c606()[_0x4974e2(0x68a)]([_0x4974e2(0x127b),'browser'],_0x5b21b9['action'])){const _0x3ed66e=_0x28c606()[_0x4974e2(0x27bc)](_0x4e0ec8[_0x4974e2(0x26c1)],{'id':Number(_0x5b21b9[_0x4974e2(0x15fe)])});_0x5339b6[_0x4974e2(0x1954)](_0x3ed66e);}}),!_0x28c606()[_0x37e846(0x940)](_0x5339b6)&&_0x5339b6['forEach'](function(_0x46c740){const _0x43500e=_0x37e846;if(!_0x28c606()['some'](_0x1a5085,['id',_0x46c740['id']])){const _0x30df59=_0x28c606()['find'](_0x4e0ec8[_0x43500e(0x26c1)],{'id':_0x46c740['id']});_0x30df59[_0x43500e(0xd4f)]=![],_0x1a5085[_0x43500e(0x1954)](_0x30df59);}}),_0x4e0ec8[_0x37e846(0x26c1)]=_0x1a5085;});}})[_0x57719f(0x20cd)](function(_0x4ade1e){const _0x1580d6=_0x57719f;_0x1cdd76[_0x1580d6(0x1bd0)]({'title':_0x4ade1e[_0x1580d6(0x10b3)]?_0x1580d6(0x575)+_0x4ade1e[_0x1580d6(0x10b3)]+_0x1580d6(0x21db)+_0x4ade1e[_0x1580d6(0x2115)]:'SYSTEM:GET_TEMPLATES','msg':_0x4ade1e['data']?JSON['stringify'](_0x4ade1e[_0x1580d6(0x1c52)]):_0x4ade1e[_0x1580d6(0x2915)]()});});}function _0x5461ed(){const _0x1ac1a2=_0x3ad28c;switch(_0x4e0ec8[_0x1ac1a2(0x798)]['data1']){case'zendesk':return _0x4e0ec8['hasSectionPermissions'][0x515];case _0x1ac1a2(0x20b0):return _0x4e0ec8[_0x1ac1a2(0x19e2)][0x516];case _0x1ac1a2(0x1c48):return _0x4e0ec8[_0x1ac1a2(0x19e2)][0x519];case'freshdesk':return _0x4e0ec8[_0x1ac1a2(0x19e2)][0x517];case _0x1ac1a2(0x1e29):return _0x4e0ec8['hasSectionPermissions'][0x51a];case _0x1ac1a2(0x2529):return _0x4e0ec8[_0x1ac1a2(0x19e2)][0x51b];case'vtiger':return _0x4e0ec8[_0x1ac1a2(0x19e2)][0x51c];case _0x1ac1a2(0xc29):return _0x4e0ec8[_0x1ac1a2(0x19e2)][0x51d];case _0x1ac1a2(0x9fe):return _0x4e0ec8[_0x1ac1a2(0x19e2)][0x51e];case _0x1ac1a2(0x2587):return _0x4e0ec8['hasSectionPermissions'][0x51f];}}function _0x2be315(){const _0x214132=_0x3ad28c;_0x4e0ec8['action'][_0x214132(0x813)]=undefined,_0x4e0ec8[_0x214132(0x798)][_0x214132(0x15fe)]=undefined,_0x4e0ec8['action'][_0x214132(0x10d3)]=undefined,_0x4e0ec8['action'][_0x214132(0x18ef)]=undefined,_0x4e0ec8[_0x214132(0x798)][_0x214132(0x12f8)]=_0x4e0ec8[_0x214132(0x798)][_0x214132(0x798)]===_0x214132(0x5cf)?0x5:undefined;}function _0x224e83(){const _0x3f4124=_0x3ad28c;switch(_0x4e0ec8['action'][_0x3f4124(0x798)]){case _0x3f4124(0x894):if(!_0x4e0ec8['lists'])_0x1aef2e();if(!_0x4e0ec8[_0x3f4124(0x127a)])_0x29c9a9();_0x4e0ec8[_0x3f4124(0x798)][_0x3f4124(0x10d3)]=_0x4e0ec8[_0x3f4124(0x798)]['data3']?_0x4e0ec8[_0x3f4124(0x798)][_0x3f4124(0x10d3)][_0x3f4124(0x282c)](','):[_0x3f4124(0x267a)];if(_0x4e0ec8['action'][_0x3f4124(0x15fe)]==='1'&&!_0x4e0ec8[_0x3f4124(0x798)][_0x3f4124(0x18ef)])_0x4e0ec8[_0x3f4124(0x798)][_0x3f4124(0x18ef)]=_0x3f4124(0x267a);break;case'jscripty':if(!_0x4e0ec8[_0x3f4124(0x1d73)])_0x57d2d5();break;case _0x3f4124(0x5cf):if(!_0x4e0ec8[_0x3f4124(0x798)][_0x3f4124(0x12f8)])_0x4e0ec8[_0x3f4124(0x798)][_0x3f4124(0x12f8)]=0x5;break;}}function _0x20b055(){_0x2be315(),_0x224e83();}function _0x2c7742(){const _0x40674b=_0x3ad28c;_0x4e0ec8[_0x40674b(0x798)][_0x40674b(0x15fe)]=undefined,_0x4e0ec8[_0x40674b(0x798)][_0x40674b(0x10d3)]=undefined,_0x4e0ec8[_0x40674b(0x798)][_0x40674b(0x1996)]=_0x4e0ec8['newAction']?![]:!_0x5461ed();const _0x4124ba=_0x40674b(0x23cf)+_0x28c606()[_0x40674b(0xd56)](_0x4e0ec8[_0x40674b(0x798)][_0x40674b(0x813)])+_0x40674b(0x141);_0x4dcedf[_0x4124ba]['get']({'fields':_0x40674b(0x1427),'sort':'id','nolimit':'true'})[_0x40674b(0x15e7)][_0x40674b(0x64a)](function(_0x1da547){const _0x1c8320=_0x40674b;_0x4e0ec8[_0x1c8320(0x24d4)]=_0x1da547[_0x1c8320(0x28b8)]||[];})[_0x40674b(0x20cd)](function(_0x553384){const _0xad9389=_0x40674b;_0x1cdd76[_0xad9389(0x1bd0)]({'title':_0x553384[_0xad9389(0x10b3)]?_0xad9389(0x575)+_0x553384[_0xad9389(0x10b3)]+_0xad9389(0x21db)+_0x553384['statusText']:_0xad9389(0x96b)+_0x4e0ec8['action'][_0xad9389(0x813)][_0xad9389(0xa3c)]()+'ACCOUNTS','msg':_0x553384[_0xad9389(0x1c52)]?JSON[_0xad9389(0x2317)](_0x553384[_0xad9389(0x1c52)]):_0x553384[_0xad9389(0x2915)]()});});}function _0x566feb(){_0x4093b7();}function _0x4bd121(){const _0x16bd15=_0x3ad28c;if(_0x4e0ec8[_0x16bd15(0x798)]['data1']==='0'&&!_0x4e0ec8[_0x16bd15(0x26c1)])_0x28c9d4();}function _0x511ff8(){const _0x99e342=_0x3ad28c;if(_0x4e0ec8[_0x99e342(0x798)][_0x99e342(0x15fe)]==='0')_0x4e0ec8[_0x99e342(0x798)][_0x99e342(0x18ef)]=undefined;if(!_0x4e0ec8[_0x99e342(0x798)][_0x99e342(0x18ef)]&&_0x4e0ec8[_0x99e342(0x798)][_0x99e342(0x15fe)]==='1')_0x4e0ec8[_0x99e342(0x798)][_0x99e342(0x18ef)]=_0x99e342(0x267a);}function _0x3bbc2e(){const _0x4e3b16=_0x3ad28c;_0x4e0ec8[_0x4e3b16(0x798)][_0x4e3b16(0x10d3)]=undefined;const _0x2eaddd=_0x4e3b16(0x23cf)+_0x28c606()[_0x4e3b16(0xd56)](_0x4e0ec8[_0x4e3b16(0x798)][_0x4e3b16(0x813)])+_0x4e3b16(0x2881);_0x4dcedf[_0x2eaddd][_0x4e3b16(0x896)]({'fields':'id,name,AccountId','sort':'id','nolimit':_0x4e3b16(0x1685)})[_0x4e3b16(0x15e7)][_0x4e3b16(0x64a)](function(_0x3da5ea){const _0x311ee4=_0x4e3b16;_0x4e0ec8[_0x311ee4(0x23a8)]=_0x3da5ea[_0x311ee4(0x28b8)]||[];})[_0x4e3b16(0x20cd)](function(_0xa230a5){const _0x267469=_0x4e3b16;_0x1cdd76[_0x267469(0x1bd0)]({'title':_0xa230a5[_0x267469(0x10b3)]?_0x267469(0x575)+_0xa230a5[_0x267469(0x10b3)]+_0x267469(0x21db)+_0xa230a5[_0x267469(0x2115)]:_0x267469(0x96b)+_0x4e0ec8[_0x267469(0x798)][_0x267469(0x813)][_0x267469(0xa3c)]()+_0x267469(0x2883),'msg':_0xa230a5[_0x267469(0x1c52)]?JSON[_0x267469(0x2317)](_0xa230a5['data']):_0xa230a5[_0x267469(0x2915)]()});});}function _0x5a86c9(){const _0x2d5c2c=_0x3ad28c,_0x5aff58=angular[_0x2d5c2c(0x289e)](_0x4e0ec8[_0x2d5c2c(0x798)]);if(_0x28c606()[_0x2d5c2c(0x616)](_0x5aff58[_0x2d5c2c(0x10d3)]))_0x5aff58[_0x2d5c2c(0x10d3)]=_0x4e0ec8[_0x2d5c2c(0x798)]['data3'][_0x2d5c2c(0x9a6)](',');return _0x5aff58;}function _0x230c54(){const _0x48b1d1=_0x3ad28c;_0x4e0ec8[_0x48b1d1(0xbae)]=[];const _0x447182=_0x5a86c9();_0x4dcedf[_0x48b1d1(0x1e8f)][_0x48b1d1(0x1c01)]({'id':_0x4a8cd2['params']['id']},_0x447182)['$promise'][_0x48b1d1(0x64a)](function(_0x4e8eb3){const _0x2255b5=_0x48b1d1;_0x4e0ec8['actions'][_0x2255b5(0x1891)](_0x4e8eb3[_0x2255b5(0x14f8)]()),_0x1cdd76['success']({'title':_0x167d49[_0x2255b5(0x2292)](_0x2255b5(0x96f))}),_0xb7329b(_0x4e0ec8[_0x2255b5(0x23ab)]);})[_0x48b1d1(0x20cd)](function(_0x1ab073){const _0xbb8c7f=_0x48b1d1;if(_0x1ab073['data']&&_0x1ab073[_0xbb8c7f(0x1c52)][_0xbb8c7f(0xbae)]&&_0x1ab073['data'][_0xbb8c7f(0xbae)][_0xbb8c7f(0x1b9e)]){_0x4e0ec8[_0xbb8c7f(0xbae)]=_0x1ab073[_0xbb8c7f(0x1c52)][_0xbb8c7f(0xbae)]||[{'message':_0x1ab073[_0xbb8c7f(0x2915)](),'type':_0xbb8c7f(0x2334)}];for(let _0x33e754=0x0;_0x33e754<_0x1ab073[_0xbb8c7f(0x1c52)][_0xbb8c7f(0xbae)][_0xbb8c7f(0x1b9e)];_0x33e754+=0x1){_0x1cdd76[_0xbb8c7f(0x1bd0)]({'title':_0x1ab073['data'][_0xbb8c7f(0xbae)][_0x33e754]['type'],'msg':_0x1ab073[_0xbb8c7f(0x1c52)]['errors'][_0x33e754][_0xbb8c7f(0x18ca)]});}}else _0x1cdd76['error']({'title':_0x1ab073[_0xbb8c7f(0x10b3)]?_0xbb8c7f(0x575)+_0x1ab073[_0xbb8c7f(0x10b3)]+_0xbb8c7f(0x21db)+_0x1ab073['statusText']:_0xbb8c7f(0x2334),'msg':_0x1ab073[_0xbb8c7f(0x1c52)]?JSON['stringify'](_0x1ab073[_0xbb8c7f(0x1c52)][_0xbb8c7f(0x18ca)]):_0x1ab073['toString']()});});}function _0x2f2358(){const _0x88dfd8=_0x3ad28c;_0x4e0ec8[_0x88dfd8(0xbae)]=[];const _0xbacbae=_0x5a86c9();_0x4dcedf[_0x88dfd8(0x798)][_0x88dfd8(0x2603)]({'id':_0xbacbae['id']},_0xbacbae)[_0x88dfd8(0x15e7)]['then'](function(){const _0x60cfcc=_0x88dfd8;_0x4e0ec8[_0x60cfcc(0x23ab)]=_0x28c606()[_0x60cfcc(0x1de5)](_0x4e0ec8[_0x60cfcc(0x23ab)],function(_0x2707d5){if(_0x2707d5['id']===_0xbacbae['id'])return _0xbacbae;else return _0x2707d5;}),_0x1cdd76[_0x60cfcc(0x1339)]({'title':_0x167d49[_0x60cfcc(0x2292)]('TOOLS.NOTIFICATIONS.ACTION_SAVED_SUCCESS_TITLE')}),_0xb7329b(_0x4e0ec8[_0x60cfcc(0x23ab)]);})[_0x88dfd8(0x20cd)](function(_0x2c048c){const _0x571c9f=_0x88dfd8;if(_0x2c048c[_0x571c9f(0x1c52)]&&_0x2c048c[_0x571c9f(0x1c52)][_0x571c9f(0xbae)]&&_0x2c048c[_0x571c9f(0x1c52)][_0x571c9f(0xbae)][_0x571c9f(0x1b9e)]){_0x4e0ec8['errors']=_0x2c048c['data'][_0x571c9f(0xbae)]||[{'message':_0x2c048c['toString'](),'type':_0x571c9f(0x1cd5)}];for(let _0xe975cc=0x0;_0xe975cc<_0x2c048c[_0x571c9f(0x1c52)]['errors'][_0x571c9f(0x1b9e)];_0xe975cc++){_0x1cdd76['error']({'title':_0x2c048c[_0x571c9f(0x1c52)][_0x571c9f(0xbae)][_0xe975cc][_0x571c9f(0x2185)],'msg':_0x2c048c[_0x571c9f(0x1c52)][_0x571c9f(0xbae)][_0xe975cc][_0x571c9f(0x18ca)]});}}else _0x1cdd76[_0x571c9f(0x1bd0)]({'title':_0x2c048c[_0x571c9f(0x10b3)]?_0x571c9f(0x575)+_0x2c048c[_0x571c9f(0x10b3)]+_0x571c9f(0x21db)+_0x2c048c[_0x571c9f(0x2115)]:'api.action.update','msg':_0x2c048c[_0x571c9f(0x1c52)]?JSON[_0x571c9f(0x2317)](_0x2c048c['data'][_0x571c9f(0x18ca)]):_0x2c048c['toString']()});});}function _0x9e74ed(_0x230b1b){const _0x25e42e=_0x3ad28c;_0x4e0ec8[_0x25e42e(0xbae)]=[];const _0x24c6ef=_0x50b9b1[_0x25e42e(0x856)]({'skipHide':!![]})[_0x25e42e(0x2021)](_0x167d49[_0x25e42e(0x2292)](_0x25e42e(0x1b9f)))[_0x25e42e(0x213e)](_0x25e42e(0x247b))['ok'](_0x167d49[_0x25e42e(0x2292)](_0x25e42e(0x20f5)))[_0x25e42e(0x101a)](_0x167d49[_0x25e42e(0x2292)](_0x25e42e(0x4f5)))[_0x25e42e(0x2283)](_0x230b1b);_0x50b9b1[_0x25e42e(0xa60)](_0x24c6ef)['then'](function(){const _0x380739=_0x25e42e;_0x4dcedf[_0x380739(0x798)][_0x380739(0xabd)]({'id':_0x4e0ec8[_0x380739(0x798)]['id']})['$promise'][_0x380739(0x64a)](function(){const _0x4f3cdf=_0x380739;_0x4e0ec8[_0x4f3cdf(0x23ab)]=_0x28c606()['filter'](_0x4e0ec8['actions'],function(_0x50ef28){const _0x3fc49d=_0x4f3cdf;return _0x50ef28['id']!==_0x4e0ec8[_0x3fc49d(0x798)]['id'];}),_0x1cdd76[_0x4f3cdf(0x1339)]({'title':_0x167d49['instant'](_0x4f3cdf(0x98f))}),_0xb7329b(_0x4e0ec8[_0x4f3cdf(0x23ab)]);})['catch'](function(_0x18f34b){const _0x134451=_0x380739;if(_0x18f34b['data']&&_0x18f34b[_0x134451(0x1c52)][_0x134451(0xbae)]&&_0x18f34b['data']['errors'][_0x134451(0x1b9e)]){_0x4e0ec8[_0x134451(0xbae)]=_0x18f34b[_0x134451(0x1c52)]['errors']||[{'message':_0x18f34b['toString'](),'type':_0x134451(0x1d2)}];for(let _0xac3341=0x0;_0xac3341<_0x18f34b[_0x134451(0x1c52)][_0x134451(0xbae)][_0x134451(0x1b9e)];_0xac3341++){_0x1cdd76[_0x134451(0x1bd0)]({'title':_0x18f34b[_0x134451(0x1c52)][_0x134451(0xbae)][_0xac3341][_0x134451(0x2185)],'msg':_0x18f34b[_0x134451(0x1c52)][_0x134451(0xbae)][_0xac3341][_0x134451(0x18ca)]});}}else _0x1cdd76[_0x134451(0x1bd0)]({'title':_0x18f34b[_0x134451(0x10b3)]?'API:'+_0x18f34b[_0x134451(0x10b3)]+_0x134451(0x21db)+_0x18f34b[_0x134451(0x2115)]:_0x134451(0x1d2),'msg':_0x18f34b['data']?JSON[_0x134451(0x2317)](_0x18f34b['data']['message']):_0x18f34b[_0x134451(0x18ca)]||_0x18f34b[_0x134451(0x2915)]()});});},function(){});}function _0xb7329b(_0x5b745f){const _0xb15dac=_0x3ad28c;_0x50b9b1[_0xb15dac(0x268e)](_0x5b745f);}}const _0x514c19=_0xcfb822;;const _0x4f9602=_0x2e4a48['p']+_0x49a1e3(0x4e0);;_0x5a040a[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$q','$translate',_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x5a040a(_0x348b8d,_0x33fce2,_0xd0941a,_0x2ea402,_0x1347ed,_0x369add,_0x18c2b0,_0x3b6fd5,_0x3f8a79){const _0x412d16=_0x49a1e3,_0x3a40a5=this;_0x3a40a5[_0x412d16(0x1d3d)]=_0x3f8a79[_0x412d16(0x808)](),_0x3a40a5[_0x412d16(0x1e8f)]={},_0x3a40a5[_0x412d16(0x1586)]={'count':0x0,'rows':[]},_0x3a40a5[_0x412d16(0x1184)]=[],_0x3a40a5[_0x412d16(0x289a)]={'fields':_0x412d16(0xc9e),'limit':0xa,'page':0x1},_0x3a40a5[_0x412d16(0xf26)]={'queue':'Queue','lastevent':_0x412d16(0x1167),'routeId':_0x412d16(0x2006),'agent':_0x412d16(0x12ad),'account':'Account','interaction':'Interaction','message':_0x412d16(0x149d)},_0x3a40a5[_0x412d16(0x2088)]={'abandoned':_0x412d16(0x2505),'timeout':'Timeout','complete':_0x412d16(0x13d5),'rejected':_0x412d16(0x1048),'called':_0x412d16(0x2950),'connect':_0x412d16(0x1150),'nosuchnumber':_0x412d16(0x1b66),'busy':_0x412d16(0x582),'noanswer':_0x412d16(0x2f5),'congestion':'Congestion','agentreject':_0x412d16(0x1f27)},_0x3a40a5['messageStatuses']={'in':'Incoming','out':_0x412d16(0x171d),'accept':_0x412d16(0x1893),'reject':_0x412d16(0x1507)},_0x3a40a5[_0x412d16(0x2483)]=_0x2f62ad,_0x3a40a5['success']=_0x1539ea,_0x3a40a5['getTriggerAllConditions']=_0x416948,_0x3a40a5[_0x412d16(0x21e8)]=_0x557a67,_0x3a40a5[_0x412d16(0x1453)]=_0x4fdac2,_0x3a40a5[_0x412d16(0x217e)]=_0x4caed1,_0x3a40a5[_0x412d16(0x548)]=_0x5cc586;function _0x2f62ad(_0x4f0276,_0x46e1e0){const _0x52ccb9=_0x412d16;_0x3a40a5[_0x52ccb9(0x1e8f)]=_0x4f0276,_0x3a40a5[_0x52ccb9(0x402)]=typeof _0x46e1e0!==_0x52ccb9(0x19a1)?_0x46e1e0:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3a40a5[_0x52ccb9(0x289a)]['TriggerAllId']=_0x3a40a5[_0x52ccb9(0x1e8f)]['id'],_0x3a40a5[_0x52ccb9(0x289a)]['id']=_0x3a40a5[_0x52ccb9(0x1e8f)]['id'],_0x416948();}function _0xb7efc(){const _0x138e13=_0x412d16,_0x552dae=_0x3a40a5[_0x138e13(0x1e8f)]['channel'],_0x1f75c2=_0x3a40a5['trigger'][_0x138e13(0x2156)]+_0x3a40a5[_0x138e13(0x1e8f)][_0x138e13(0x2156)]===_0x138e13(0xf52)?_0x138e13(0x9d0):_0x138e13(0x1ad8),_0x246311=_0x3a40a5[_0x138e13(0x1e8f)]['channel']+(_0x3a40a5['trigger'][_0x138e13(0x2156)]===_0x138e13(0xf52)?_0x138e13(0x16cc):_0x138e13(0x141));let _0x111778;switch(_0x3a40a5['trigger'][_0x138e13(0x2156)]){case _0x138e13(0xf52):_0x111778=0x1f6;break;case _0x138e13(0x1d37):_0x111778=0x386;break;case'mail':_0x111778=0x25a;break;case _0x138e13(0x28ad):_0x111778=0x322;break;case _0x138e13(0x10aa):_0x111778=0x2be;break;case _0x138e13(0x1a29):_0x111778=0x836;break;}_0x3f8a79[_0x138e13(0x12c7)]()?_0x3b6fd5[_0x246311]['get']({'fields':_0x138e13(0x1427),'sort':'id','nolimit':_0x138e13(0x1685)})[_0x138e13(0x15e7)][_0x138e13(0x64a)](function(_0x2ca574){const _0x4016eb=_0x138e13;_0x3a40a5[_0x1f75c2]=_0x2ca574[_0x4016eb(0x28b8)]||[];})[_0x138e13(0x20cd)](function(_0x5d411c){const _0x37537a=_0x138e13;_0x18c2b0[_0x37537a(0x1bd0)]({'title':_0x5d411c['status']?'API:'+_0x5d411c['status']+_0x37537a(0x21db)+_0x5d411c[_0x37537a(0x2115)]:_0x37537a(0x96b)+_0x552dae['toUpperCase']()+_0x552dae===_0x37537a(0xf52)?_0x37537a(0x1220):_0x37537a(0xdc3),'msg':_0x5d411c['data']?JSON[_0x37537a(0x2317)](_0x5d411c[_0x37537a(0x1c52)]):_0x5d411c[_0x37537a(0x2915)]()});}):_0x3b6fd5[_0x246311][_0x138e13(0x896)]({'fields':_0x138e13(0x1427),'sort':'id','nolimit':'true'})[_0x138e13(0x15e7)][_0x138e13(0x64a)](function(_0x5bf06c){const _0x3fc79c=_0x138e13;_0x3a40a5[_0x1f75c2]=_0x5bf06c[_0x3fc79c(0x28b8)]||[];})[_0x138e13(0x64a)](function(){const _0x563742=_0x138e13;return _0x3b6fd5['userProfileSection'][_0x563742(0x896)]({'userProfileId':_0x3a40a5[_0x563742(0x1d3d)][_0x563742(0x21ac)],'sectionId':_0x111778})[_0x563742(0x15e7)];})[_0x138e13(0x64a)](function(_0x2bb4d7){const _0x2b69c0=_0x138e13,_0x9ab9f1=_0x2bb4d7&&_0x2bb4d7[_0x2b69c0(0x28b8)]?_0x2bb4d7[_0x2b69c0(0x28b8)][0x0]:null;if(!_0x9ab9f1){const _0x58c359=[],_0x540944=[];_0x3a40a5[_0x2b69c0(0x1586)][_0x2b69c0(0x28b8)][_0x2b69c0(0x1397)](function(_0x33921d){const _0x88df78=_0x2b69c0;if(_0x33921d[_0x88df78(0xc26)]===_0x88df78(0x3e3)){const _0x2194ad=_0x28c606()[_0x88df78(0x27bc)](_0x3a40a5[_0x1f75c2],{'id':Number(_0x33921d['value'])});_0x540944[_0x88df78(0x1954)](_0x2194ad);}});for(let _0x3a0192=0x0;_0x3a0192<_0x3a40a5[_0x1f75c2][_0x2b69c0(0x1b9e)];_0x3a0192++){const _0x55741c=_0x28c606()[_0x2b69c0(0x25f8)](_0x540944,{'id':_0x3a40a5[_0x1f75c2][_0x3a0192]['id']});_0x55741c&&(_0x3a40a5[_0x1f75c2][_0x3a0192]['canSelect']=![],_0x58c359[_0x2b69c0(0x1954)](_0x3a40a5[_0x1f75c2][_0x3a0192]));}_0x3a40a5[_0x1f75c2]=_0x58c359;}else{if(!_0x9ab9f1[_0x2b69c0(0x11da)])return _0x3b6fd5[_0x2b69c0(0x1617)][_0x2b69c0(0x896)]({'sectionId':_0x9ab9f1['id']})[_0x2b69c0(0x15e7)]['then'](function(_0x5dce75){const _0x44c824=_0x2b69c0,_0x57ab95=_0x28c606()['map'](_0x5dce75[_0x44c824(0x28b8)],function(_0x2094dc){const _0x21ed9e=_0x44c824;return _0x28c606()[_0x21ed9e(0x27bc)](_0x3a40a5[_0x1f75c2],{'id':_0x2094dc[_0x21ed9e(0x145)]});});let _0x452216=null;_0x452216=[],_0x3a40a5[_0x44c824(0x1586)]['rows'][_0x44c824(0x1397)](function(_0x2b69e5){const _0x4510fc=_0x44c824;if(_0x2b69e5[_0x4510fc(0xc26)]===_0x4510fc(0x3e3)){const _0x590ef9=_0x28c606()['find'](_0x3a40a5[_0x1f75c2],{'id':Number(_0x2b69e5[_0x4510fc(0x1096)])});_0x452216[_0x4510fc(0x1954)](_0x590ef9);}}),!_0x28c606()[_0x44c824(0x940)](_0x452216)&&_0x452216[_0x44c824(0x1397)](function(_0x1a193b){const _0x472027=_0x44c824;if(!_0x28c606()[_0x472027(0x25f8)](_0x57ab95,['id',_0x1a193b['id']])){const _0x32cfbf=_0x28c606()[_0x472027(0x27bc)](_0x3a40a5[_0x1f75c2],{'id':_0x1a193b['id']});_0x32cfbf['canSelect']=![],_0x57ab95['push'](_0x32cfbf);}}),_0x3a40a5[_0x1f75c2]=_0x57ab95;});}})[_0x138e13(0x20cd)](function(_0x47291a){const _0x4d971d=_0x138e13;_0x18c2b0[_0x4d971d(0x1bd0)]({'title':_0x47291a[_0x4d971d(0x10b3)]?'API:'+_0x47291a[_0x4d971d(0x10b3)]+_0x4d971d(0x21db)+_0x47291a[_0x4d971d(0x2115)]:_0x4d971d(0x96b)+_0x552dae['toUpperCase']()+_0x552dae===_0x4d971d(0xf52)?_0x4d971d(0x1220):_0x4d971d(0xdc3),'msg':_0x47291a[_0x4d971d(0x1c52)]?JSON[_0x4d971d(0x2317)](_0x47291a['data']):_0x47291a[_0x4d971d(0x2915)]()});});}function _0x171ede(){const _0x56237e=_0x412d16,_0x3f6805=[{'id':0x191,'type':_0x56237e(0x12a4)},{'id':0x5dd,'type':_0x56237e(0xbce)}];let _0x5250a7=null;_0x3f8a79[_0x56237e(0x12c7)]()?_0x3b6fd5['voiceQueue'][_0x56237e(0x896)]({'fields':_0x56237e(0x2ba),'sort':'name','nolimit':_0x56237e(0x1685)})[_0x56237e(0x15e7)][_0x56237e(0x64a)](function(_0x1dc1e2){_0x3a40a5['queues']=_0x1dc1e2['rows']||[];})[_0x56237e(0x20cd)](function(_0x5bbf07){const _0x3d0e8b=_0x56237e;_0x18c2b0[_0x3d0e8b(0x1bd0)]({'title':_0x5bbf07['status']?_0x3d0e8b(0x575)+_0x5bbf07[_0x3d0e8b(0x10b3)]+_0x3d0e8b(0x21db)+_0x5bbf07[_0x3d0e8b(0x2115)]:_0x3d0e8b(0x2719),'msg':_0x5bbf07['data']?JSON[_0x3d0e8b(0x2317)](_0x5bbf07[_0x3d0e8b(0x1c52)]):_0x5bbf07[_0x3d0e8b(0x2915)]()});}):_0x3b6fd5[_0x56237e(0x178b)][_0x56237e(0x896)]({'fields':_0x56237e(0x2ba),'sort':'name','nolimit':'true'})[_0x56237e(0x15e7)][_0x56237e(0x64a)](function(_0x1f043a){const _0x2e7ed6=_0x56237e;_0x5250a7=_0x1f043a[_0x2e7ed6(0x28b8)]||[];})[_0x56237e(0x64a)](function(){const _0x145c6f=_0x56237e,_0x23cd42=[];for(let _0x466ad7=0x0;_0x466ad7<_0x3f6805[_0x145c6f(0x1b9e)];_0x466ad7++){_0x23cd42[_0x145c6f(0x1954)](_0x3b6fd5[_0x145c6f(0x16b2)]['get']({'userProfileId':_0x3a40a5[_0x145c6f(0x1d3d)]['userProfileId'],'sectionId':_0x3f6805[_0x466ad7]['id']})[_0x145c6f(0x15e7)]);}return _0x33fce2[_0x145c6f(0x2705)](_0x23cd42);})[_0x56237e(0x64a)](function(_0x19feb9){const _0x2d505e=_0x56237e,_0x37d6ae=_0x28c606()[_0x2d505e(0x1de5)](_0x19feb9,function(_0x8f9a30){const _0x29d9f2=_0x2d505e;return _0x8f9a30&&_0x8f9a30[_0x29d9f2(0x28b8)]?_0x8f9a30[_0x29d9f2(0x28b8)][0x0]:null;}),_0x10ca02=[];for(let _0x4b2e8e=0x0;_0x4b2e8e<_0x3f6805[_0x2d505e(0x1b9e)];_0x4b2e8e++){const _0x81b72f=_0x28c606()[_0x2d505e(0x27bc)](_0x37d6ae,[_0x2d505e(0xf7b),_0x3f6805[_0x4b2e8e]['id']]);if(_0x81b72f){if(!_0x81b72f[_0x2d505e(0x11da)])_0x10ca02[_0x2d505e(0x1954)](_0x3b6fd5[_0x2d505e(0x1617)][_0x2d505e(0x896)]({'sectionId':_0x81b72f['id']})[_0x2d505e(0x15e7)]);else{const _0x569dbc=[];_0x5250a7[_0x2d505e(0x1397)](function(_0x4b45f6){const _0xa77486=_0x2d505e;_0x4b45f6[_0xa77486(0x2185)]===_0x3f6805[_0x4b2e8e]['type']&&_0x569dbc[_0xa77486(0x1954)](_0x4b45f6);}),_0x10ca02['push']({'rows':_0x569dbc,'count':_0x569dbc[_0x2d505e(0x1b9e)]});}}}return _0x33fce2['all'](_0x10ca02);})[_0x56237e(0x64a)](function(_0x5a0e2c){const _0x49164b=_0x56237e,_0x4a17c4=[],_0x15f3ce=[];_0x3a40a5['triggerAllConditions'][_0x49164b(0x28b8)][_0x49164b(0x1397)](function(_0x654607){const _0x5c0383=_0x49164b;if(_0x654607[_0x5c0383(0xc26)]===_0x5c0383(0x1e4e)){const _0xd5460a=_0x28c606()[_0x5c0383(0x27bc)](_0x5250a7,{'name':_0x654607[_0x5c0383(0x1096)]});_0x15f3ce[_0x5c0383(0x1954)](_0xd5460a);}});for(let _0x10dea3=0x0;_0x10dea3<_0x5a0e2c[_0x49164b(0x1b9e)];_0x10dea3++){const _0x421b67=_0x5a0e2c[_0x10dea3][_0x49164b(0x28b8)]||[];_0x421b67[_0x49164b(0x1397)](function(_0x270638){_0x4a17c4['push'](_0x270638);});}!_0x28c606()[_0x49164b(0x940)](_0x15f3ce)&&_0x15f3ce[_0x49164b(0x1397)](function(_0x4c1e9e){const _0x2c6fbb=_0x49164b;if(!_0x28c606()[_0x2c6fbb(0x25f8)](_0x4a17c4,[_0x2c6fbb(0x145),_0x4c1e9e['id']])){const _0x5dfade=_0x28c606()[_0x2c6fbb(0x27bc)](_0x5250a7,{'id':_0x4c1e9e['id']});_0x5dfade['canSelect']=![],_0x4a17c4['push'](_0x5dfade);}}),_0x3a40a5[_0x49164b(0x1c06)]=_0x4a17c4;})[_0x56237e(0x20cd)](function(_0x3a2a18){const _0x53d06a=_0x56237e;_0x18c2b0['error']({'title':_0x3a2a18[_0x53d06a(0x10b3)]?_0x53d06a(0x575)+_0x3a2a18[_0x53d06a(0x10b3)]+_0x53d06a(0x21db)+_0x3a2a18[_0x53d06a(0x2115)]:'SYSTEM:GET_QUEUES','msg':_0x3a2a18[_0x53d06a(0x1c52)]?JSON[_0x53d06a(0x2317)](_0x3a2a18[_0x53d06a(0x1c52)]):_0x3a2a18[_0x53d06a(0x2915)]()});});}function _0xf911f(){const _0xb26ae7=_0x412d16;_0x3f8a79[_0xb26ae7(0x12c7)]()?_0x3b6fd5[_0xb26ae7(0x1438)][_0xb26ae7(0x896)]({'fields':'id,exten','type':_0xb26ae7(0xbce),'VoiceExtensionId':_0xb26ae7(0x8f1),'nolimit':_0xb26ae7(0x1685)})[_0xb26ae7(0x15e7)]['then'](function(_0x549627){const _0x5ede37=_0xb26ae7;_0x3a40a5[_0x5ede37(0x20a0)]=_0x549627[_0x5ede37(0x28b8)]||[];})[_0xb26ae7(0x20cd)](function(_0x5e58b1){const _0x8096a4=_0xb26ae7;_0x18c2b0[_0x8096a4(0x1bd0)]({'title':_0x5e58b1[_0x8096a4(0x10b3)]?_0x8096a4(0x575)+_0x5e58b1[_0x8096a4(0x10b3)]+_0x8096a4(0x21db)+_0x5e58b1[_0x8096a4(0x2115)]:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x5e58b1[_0x8096a4(0x1c52)]?JSON[_0x8096a4(0x2317)](_0x5e58b1[_0x8096a4(0x1c52)]):_0x5e58b1[_0x8096a4(0x2915)]()});}):_0x3b6fd5[_0xb26ae7(0x1438)][_0xb26ae7(0x896)]({'fields':_0xb26ae7(0x105b),'type':_0xb26ae7(0xbce),'VoiceExtensionId':_0xb26ae7(0x8f1),'nolimit':_0xb26ae7(0x1685)})['$promise'][_0xb26ae7(0x64a)](function(_0x337e2c){const _0x2f703a=_0xb26ae7;_0x3a40a5['outboundRoutes']=_0x337e2c[_0x2f703a(0x28b8)]||[];})['then'](function(){const _0x135721=_0xb26ae7;return _0x3b6fd5[_0x135721(0x16b2)]['get']({'userProfileId':_0x3a40a5[_0x135721(0x1d3d)]['userProfileId'],'sectionId':0x193})[_0x135721(0x15e7)];})['then'](function(_0x78a240){const _0x4470f9=_0xb26ae7,_0x457b5b=_0x78a240&&_0x78a240[_0x4470f9(0x28b8)]?_0x78a240[_0x4470f9(0x28b8)][0x0]:null;if(!_0x457b5b){const _0x3edc4f=[],_0x5bc4df=[];_0x3a40a5[_0x4470f9(0x1586)][_0x4470f9(0x28b8)][_0x4470f9(0x1397)](function(_0xe0a4c6){const _0x2f876b=_0x4470f9;if(_0xe0a4c6['field']===_0x2f876b(0xbf7)){const _0x26b1df=_0x28c606()[_0x2f876b(0x27bc)](_0x3a40a5[_0x2f876b(0x20a0)],{'id':Number(_0xe0a4c6[_0x2f876b(0x1096)])});_0x5bc4df['push'](_0x26b1df);}});for(let _0x5a80e7=0x0;_0x5a80e7<_0x3a40a5[_0x4470f9(0x20a0)][_0x4470f9(0x1b9e)];_0x5a80e7++){const _0x5dc6b9=_0x28c606()[_0x4470f9(0x25f8)](_0x5bc4df,{'id':_0x3a40a5['outboundRoutes'][_0x5a80e7]['id']});_0x5dc6b9&&(_0x3a40a5[_0x4470f9(0x20a0)][_0x5a80e7][_0x4470f9(0xd4f)]=![],_0x3edc4f[_0x4470f9(0x1954)](_0x3a40a5[_0x4470f9(0x20a0)][_0x5a80e7]));}_0x3a40a5[_0x4470f9(0x20a0)]=_0x3edc4f;}else{if(!_0x457b5b[_0x4470f9(0x11da)])return _0x3b6fd5[_0x4470f9(0x1617)][_0x4470f9(0x896)]({'sectionId':_0x457b5b['id']})[_0x4470f9(0x15e7)][_0x4470f9(0x64a)](function(_0x1f608f){const _0x27e70f=_0x4470f9,_0x39efb3=_0x28c606()[_0x27e70f(0x1de5)](_0x1f608f[_0x27e70f(0x28b8)],function(_0x4cecae){const _0x50086f=_0x27e70f;return _0x28c606()['find'](_0x3a40a5[_0x50086f(0x20a0)],{'id':_0x4cecae[_0x50086f(0x145)]});});let _0x5dcb4f=null;_0x5dcb4f=[],_0x3a40a5[_0x27e70f(0x1586)][_0x27e70f(0x28b8)]['forEach'](function(_0x46d0bb){const _0x3af8a9=_0x27e70f;if(_0x46d0bb['field']===_0x3af8a9(0xbf7)){const _0x5628a0=_0x28c606()[_0x3af8a9(0x27bc)](_0x3a40a5['outboundRoutes'],{'id':Number(_0x46d0bb[_0x3af8a9(0x1096)])});_0x5dcb4f[_0x3af8a9(0x1954)](_0x5628a0);}}),!_0x28c606()[_0x27e70f(0x940)](_0x5dcb4f)&&_0x5dcb4f[_0x27e70f(0x1397)](function(_0x177fa9){const _0x57f325=_0x27e70f;if(!_0x28c606()[_0x57f325(0x25f8)](_0x39efb3,['id',_0x177fa9['id']])){const _0x37dbbf=_0x28c606()[_0x57f325(0x27bc)](_0x3a40a5[_0x57f325(0x20a0)],{'id':_0x177fa9['id']});_0x37dbbf[_0x57f325(0xd4f)]=![],_0x39efb3[_0x57f325(0x1954)](_0x37dbbf);}}),_0x3a40a5[_0x27e70f(0x20a0)]=_0x39efb3;});}})[_0xb26ae7(0x20cd)](function(_0x3f356a){const _0x82c4f4=_0xb26ae7;_0x18c2b0['error']({'title':_0x3f356a[_0x82c4f4(0x10b3)]?_0x82c4f4(0x575)+_0x3f356a['status']+_0x82c4f4(0x21db)+_0x3f356a[_0x82c4f4(0x2115)]:_0x82c4f4(0x76f),'msg':_0x3f356a[_0x82c4f4(0x1c52)]?JSON[_0x82c4f4(0x2317)](_0x3f356a[_0x82c4f4(0x1c52)]):_0x3f356a[_0x82c4f4(0x2915)]()});});}function _0x44a657(){const _0x1246e5=_0x412d16;_0x3f8a79[_0x1246e5(0x12c7)]()?_0x3b6fd5[_0x1246e5(0x2e8)][_0x1246e5(0x896)]({'fields':_0x1246e5(0xd53),'sort':'name','role':_0x1246e5(0x11ae),'nolimit':_0x1246e5(0x1685)})[_0x1246e5(0x15e7)][_0x1246e5(0x64a)](function(_0x10996d){const _0x336d1b=_0x1246e5;_0x3a40a5['agents']=_0x10996d[_0x336d1b(0x28b8)]||[];})[_0x1246e5(0x20cd)](function(_0x1650d6){const _0x5f3bf5=_0x1246e5;_0x18c2b0['error']({'title':_0x1650d6['status']?_0x5f3bf5(0x575)+_0x1650d6[_0x5f3bf5(0x10b3)]+_0x5f3bf5(0x21db)+_0x1650d6[_0x5f3bf5(0x2115)]:'SYSTEM:GET_AGENTS','msg':_0x1650d6[_0x5f3bf5(0x1c52)]?JSON[_0x5f3bf5(0x2317)](_0x1650d6['data']):_0x1650d6['toString']()});}):_0x3b6fd5[_0x1246e5(0x2e8)][_0x1246e5(0x896)]({'fields':'id,name,fullname','sort':_0x1246e5(0x2494),'role':'agent','nolimit':'true'})[_0x1246e5(0x15e7)][_0x1246e5(0x64a)](function(_0x2518b1){const _0x5ef7c6=_0x1246e5;_0x3a40a5[_0x5ef7c6(0xd77)]=_0x2518b1[_0x5ef7c6(0x28b8)]||[];})[_0x1246e5(0x64a)](function(){const _0x7a1ca0=_0x1246e5;return _0x3b6fd5['userProfileSection']['get']({'userProfileId':_0x3a40a5['currentUser'][_0x7a1ca0(0x21ac)],'sectionId':0xca})[_0x7a1ca0(0x15e7)];})[_0x1246e5(0x64a)](function(_0x1d0b2c){const _0x4a6bfd=_0x1246e5,_0x9a9aa9=_0x1d0b2c&&_0x1d0b2c[_0x4a6bfd(0x28b8)]?_0x1d0b2c['rows'][0x0]:null;if(!_0x9a9aa9){const _0x1e7119=[],_0x3aab2b=[];_0x3a40a5[_0x4a6bfd(0x1586)][_0x4a6bfd(0x28b8)]['forEach'](function(_0x515c26){const _0xfe94f3=_0x4a6bfd;if(_0x515c26[_0xfe94f3(0xc26)]===_0xfe94f3(0x11ae)){const _0x30d751=_0x28c606()[_0xfe94f3(0x27bc)](_0x3a40a5['agents'],{'name':_0x515c26[_0xfe94f3(0x1096)]});_0x3aab2b[_0xfe94f3(0x1954)](_0x30d751);}});for(let _0x525478=0x0;_0x525478<_0x3a40a5[_0x4a6bfd(0xd77)][_0x4a6bfd(0x1b9e)];_0x525478++){const _0x31ce34=_0x28c606()[_0x4a6bfd(0x25f8)](_0x3aab2b,{'id':_0x3a40a5[_0x4a6bfd(0xd77)][_0x525478]['id']});_0x31ce34&&(_0x3a40a5['agents'][_0x525478]['canSelect']=![],_0x1e7119['push'](_0x3a40a5[_0x4a6bfd(0xd77)][_0x525478]));}_0x3a40a5[_0x4a6bfd(0xd77)]=_0x1e7119;}else{if(!_0x9a9aa9['autoAssociation'])return _0x3b6fd5[_0x4a6bfd(0x1617)][_0x4a6bfd(0x896)]({'sectionId':_0x9a9aa9['id']})['$promise'][_0x4a6bfd(0x64a)](function(_0x1d084a){const _0xa2afb=_0x4a6bfd,_0x51d53=_0x28c606()[_0xa2afb(0x1de5)](_0x1d084a[_0xa2afb(0x28b8)],function(_0x5852a9){const _0x314245=_0xa2afb;return _0x28c606()[_0x314245(0x27bc)](_0x3a40a5[_0x314245(0xd77)],{'id':_0x5852a9['resourceId']});});let _0x4d3a4a=null;_0x4d3a4a=[],_0x3a40a5['triggerAllConditions'][_0xa2afb(0x28b8)]['forEach'](function(_0x423074){const _0x155fd7=_0xa2afb;if(_0x423074[_0x155fd7(0xc26)]===_0x155fd7(0x11ae)){const _0x54fbbf=_0x28c606()[_0x155fd7(0x27bc)](_0x3a40a5['agents'],{'name':_0x423074[_0x155fd7(0x1096)]});_0x4d3a4a[_0x155fd7(0x1954)](_0x54fbbf);}}),!_0x28c606()[_0xa2afb(0x940)](_0x4d3a4a)&&_0x4d3a4a[_0xa2afb(0x1397)](function(_0x2ba809){const _0x125a35=_0xa2afb;if(!_0x28c606()[_0x125a35(0x25f8)](_0x51d53,['id',_0x2ba809['id']])){const _0x5893f9=_0x28c606()[_0x125a35(0x27bc)](_0x3a40a5[_0x125a35(0xd77)],{'id':_0x2ba809['id']});_0x5893f9['canSelect']=![],_0x51d53[_0x125a35(0x1954)](_0x5893f9);}}),_0x3a40a5[_0xa2afb(0xd77)]=_0x51d53;});}})[_0x1246e5(0x20cd)](function(_0x475801){const _0x5889ba=_0x1246e5;_0x18c2b0['error']({'title':_0x475801['status']?_0x5889ba(0x575)+_0x475801[_0x5889ba(0x10b3)]+'\x20-\x20'+_0x475801[_0x5889ba(0x2115)]:_0x5889ba(0x554),'msg':_0x475801[_0x5889ba(0x1c52)]?JSON[_0x5889ba(0x2317)](_0x475801[_0x5889ba(0x1c52)]):_0x475801[_0x5889ba(0x2915)]()});});}function _0x2b800d(){const _0x2cccd5=_0x412d16;if(_0x3a40a5['trigger'][_0x2cccd5(0x2156)]===_0x2cccd5(0x227c)){if(_0x28c606()[_0x2cccd5(0x25f8)](_0x3a40a5[_0x2cccd5(0x1586)][_0x2cccd5(0x28b8)],[_0x2cccd5(0xc26),_0x2cccd5(0x1e4e)])){if(!_0x3a40a5[_0x2cccd5(0x1c06)])_0x171ede();}if(_0x28c606()[_0x2cccd5(0x25f8)](_0x3a40a5[_0x2cccd5(0x1586)]['rows'],['field','routeId'])){if(!_0x3a40a5[_0x2cccd5(0x20a0)])_0xf911f();}if(_0x28c606()[_0x2cccd5(0x25f8)](_0x3a40a5['triggerAllConditions'][_0x2cccd5(0x28b8)],[_0x2cccd5(0xc26),'agent'])){if(!_0x3a40a5[_0x2cccd5(0xd77)])_0x44a657();}}else _0xb7efc();}function _0x1539ea(_0x3d4fa8){const _0x264ee7=_0x412d16;_0x3a40a5[_0x264ee7(0x1586)]=_0x3d4fa8||{'count':0x0,'rows':[]},_0x2b800d();}function _0x416948(){const _0x3b709f=_0x412d16;_0x3a40a5[_0x3b709f(0x289a)][_0x3b709f(0x24f9)]=(_0x3a40a5[_0x3b709f(0x289a)][_0x3b709f(0xc72)]-0x1)*_0x3a40a5['query'][_0x3b709f(0x25bb)],_0x3a40a5[_0x3b709f(0x1713)]=_0x3b6fd5[_0x3b709f(0x1e8f)][_0x3b709f(0x4b4)](_0x3a40a5['query'],_0x1539ea)[_0x3b709f(0x15e7)];}function _0x557a67(_0x436b58,_0x241d8d){const _0x4db5a1=_0x412d16;_0x1347ed[_0x4db5a1(0xa60)]({'controller':_0x4db5a1(0x1a13),'controllerAs':'vm','templateUrl':_0x4f9602,'parent':angular[_0x4db5a1(0x1f81)](_0x369add['body']),'targetEvent':_0x436b58,'clickOutsideToClose':!![],'locals':{'trigger':_0x3a40a5[_0x4db5a1(0x1e8f)],'allCondition':_0x241d8d,'allConditions':_0x3a40a5[_0x4db5a1(0x1586)][_0x4db5a1(0x28b8)],'license':null,'setting':null,'crudPermissions':_0x3a40a5[_0x4db5a1(0x402)]}})['then'](function(_0xfc8fbd){const _0x497ab6=_0x4db5a1;_0xfc8fbd&&(_0x3a40a5['triggerAllConditions']={'count':_0xfc8fbd[_0x497ab6(0x1b9e)],'rows':_0xfc8fbd},_0x2b800d());});}function _0x4caed1(_0x5871ae,_0x4f8dca){const _0x58bc3b=_0x412d16,_0x12a7d7=_0x1347ed['confirm']()[_0x58bc3b(0x2021)](_0xd0941a[_0x58bc3b(0x2292)](_0x58bc3b(0xeca)))[_0x58bc3b(0x213e)](_0x58bc3b(0x21fc))['targetEvent'](_0x4f8dca)['ok']('OK')[_0x58bc3b(0x101a)](_0xd0941a[_0x58bc3b(0x2292)](_0x58bc3b(0x4f5)));_0x1347ed[_0x58bc3b(0xa60)](_0x12a7d7)[_0x58bc3b(0x64a)](function(){_0x567316(_0x5871ae,!![]);});}function _0x567316(_0xa2d2b7,_0x4c3869){const _0x291017=_0x412d16;_0x3b6fd5[_0x291017(0xeea)][_0x291017(0xabd)]({'id':_0xa2d2b7['id']})[_0x291017(0x15e7)][_0x291017(0x64a)](function(){const _0x453ba5=_0x291017;_0x416948(),_0x4c3869&&_0x18c2b0[_0x453ba5(0x1339)]({'title':_0xd0941a[_0x453ba5(0x2292)](_0x453ba5(0x1867))});})['catch'](function(_0x5d7d58){const _0x513bdb=_0x291017;if(_0x5d7d58['data']&&_0x5d7d58['data'][_0x513bdb(0xbae)]&&_0x5d7d58[_0x513bdb(0x1c52)]['errors']['length']){_0x3a40a5[_0x513bdb(0xbae)]=_0x5d7d58['data']['errors']||[{'message':_0x5d7d58[_0x513bdb(0x2915)](),'type':'SYSTEM:GETtrigger'}];for(let _0x450d55=0x0;_0x450d55<_0x5d7d58['data'][_0x513bdb(0xbae)][_0x513bdb(0x1b9e)];_0x450d55++){_0x18c2b0[_0x513bdb(0x1bd0)]({'title':_0x5d7d58['data'][_0x513bdb(0xbae)][_0x450d55][_0x513bdb(0x2185)],'msg':_0x5d7d58[_0x513bdb(0x1c52)]['errors'][_0x450d55][_0x513bdb(0x18ca)]});}}else _0x18c2b0[_0x513bdb(0x1bd0)]({'title':_0x5d7d58[_0x513bdb(0x10b3)]?_0x513bdb(0x575)+_0x5d7d58[_0x513bdb(0x10b3)]+_0x513bdb(0x21db)+_0x5d7d58['statusText']:'SYSTEM:GETtrigger','msg':_0x5d7d58['data']?JSON['stringify'](_0x5d7d58[_0x513bdb(0x1c52)]['message']):_0x5d7d58[_0x513bdb(0x18ca)]||_0x5d7d58['toString']()});});}function _0x4fdac2(){const _0x2f196a=_0x412d16,_0x1b944a=angular[_0x2f196a(0x289e)](_0x3a40a5[_0x2f196a(0x1184)]);return _0x3a40a5[_0x2f196a(0x1184)]=[],_0x1b944a;}function _0x5cc586(_0x1d5257){const _0x7d66c6=_0x412d16,_0x30b6bb=_0x1347ed[_0x7d66c6(0x856)]()['title'](_0xd0941a['instant'](_0x7d66c6(0x706)))[_0x7d66c6(0x12b8)](_0xd0941a['instant'](_0x7d66c6(0x226f),{'total':_0x3a40a5['selectedTriggerAllConditions'][_0x7d66c6(0x1b9e)]}))[_0x7d66c6(0x213e)](_0x7d66c6(0x134e))[_0x7d66c6(0x2283)](_0x1d5257)['ok']('OK')[_0x7d66c6(0x101a)](_0xd0941a[_0x7d66c6(0x2292)]('APP.CANCEL'));_0x1347ed[_0x7d66c6(0xa60)](_0x30b6bb)[_0x7d66c6(0x64a)](function(){const _0x1e19c7=_0x7d66c6;_0x3a40a5[_0x1e19c7(0x1184)]['forEach'](function(_0x418a69){_0x567316(_0x418a69);}),_0x3a40a5[_0x1e19c7(0x1184)]=[],_0x18c2b0[_0x1e19c7(0x1339)]({'title':_0xd0941a['instant'](_0x1e19c7(0x866))});});}let _0x32a5a0=!![],_0x45642a=0x1;_0x348b8d[_0x412d16(0xc62)](_0x412d16(0x1200),function(_0x288657,_0x4fc139){const _0x524a85=_0x412d16;_0x32a5a0?_0x2ea402(function(){_0x32a5a0=![];}):(!_0x4fc139&&(_0x45642a=_0x3a40a5[_0x524a85(0x289a)]['page']),_0x288657!==_0x4fc139&&(_0x3a40a5[_0x524a85(0x289a)][_0x524a85(0xc72)]=0x1),!_0x288657&&(_0x3a40a5[_0x524a85(0x289a)][_0x524a85(0xc72)]=_0x45642a),_0x416948());});}const _0xeef872=_0x5a040a;;_0x4969fc[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),'$q','$translate',_0x49a1e3(0x680),_0x49a1e3(0x2259),_0x49a1e3(0x2340),_0x49a1e3(0x1e8f),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x4969fc(_0x5cb87d,_0x4a4e61,_0x3855aa,_0x26f060,_0x4e59d0,_0x5ad426,_0x3512ad,_0xbcf296,_0x30a5a3,_0x22422f,_0x224683,_0x3e9af6,_0x382350,_0x1a746b,_0x1bfc2b){const _0xa84558=_0x49a1e3,_0x1e507f=this;_0x1e507f[_0xa84558(0x1d3d)]=_0x3e9af6[_0xa84558(0x808)](),_0x1e507f[_0xa84558(0xbae)]=[],_0x1e507f[_0xa84558(0x28d6)]=_0x1a746b,_0x1e507f['license']=_0x382350,_0x1e507f[_0xa84558(0x402)]=_0x1bfc2b,_0x1e507f[_0xa84558(0x6c2)]={},_0x1e507f['passwordPattern']=_0x1e507f[_0xa84558(0x28d6)]&&_0x1e507f[_0xa84558(0x28d6)][_0xa84558(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1e507f[_0xa84558(0x2021)]=_0xa84558(0xba7),_0x1e507f[_0xa84558(0x2340)]=angular[_0xa84558(0x289e)](_0x30a5a3),_0x1e507f[_0xa84558(0x2259)]=_0xbcf296,_0x1e507f[_0xa84558(0xc5e)]=![],_0x1e507f[_0xa84558(0x1e8f)]=angular[_0xa84558(0x289e)](_0x22422f);!_0x1e507f['allCondition']&&(_0x1e507f[_0xa84558(0x2340)]={'field':_0xa84558(0x1e4e),'operator':_0xa84558(0x1a61),'value':'in'},_0x1e507f[_0xa84558(0x2021)]=_0xa84558(0x3dc),_0x1e507f['newAllCondition']=!![]);_0x4a4e61[_0xa84558(0x1b48)]['id']&&(_0x1e507f[_0xa84558(0x2340)]['TriggerAllId']=_0x4a4e61['params']['id']);_0x1e507f[_0xa84558(0x171e)]=_0x13093e,_0x1e507f[_0xa84558(0x1ffb)]=_0x12510a,_0x1e507f[_0xa84558(0x104b)]=_0x5d042e,_0x1e507f[_0xa84558(0x1605)]=_0x3da7e2,_0x1e507f['closeDialog']=_0x9c5baa,_0x3e9af6[_0xa84558(0x4de)](_0xa84558(0x333))?_0x224683[_0xa84558(0x26c3)][_0xa84558(0x896)]({'fields':_0xa84558(0x1427),'sort':'id','nolimit':'true'})[_0xa84558(0x15e7)]['then'](function(_0x55515a){const _0x552076=_0xa84558;_0x1e507f[_0x552076(0x1aac)]=_0x55515a[_0x552076(0x28b8)]||[];})['catch'](function(_0x2c81a3){const _0x5dae57=_0xa84558;_0x3512ad[_0x5dae57(0x1bd0)]({'title':_0x2c81a3[_0x5dae57(0x10b3)]?_0x5dae57(0x575)+_0x2c81a3[_0x5dae57(0x10b3)]+_0x5dae57(0x21db)+_0x2c81a3['statusText']:_0x5dae57(0xa62),'msg':_0x2c81a3[_0x5dae57(0x1c52)]?JSON[_0x5dae57(0x2317)](_0x2c81a3[_0x5dae57(0x1c52)]):_0x2c81a3[_0x5dae57(0x2915)]()});}):_0x224683[_0xa84558(0x26c3)][_0xa84558(0x896)]({'fields':_0xa84558(0x1427),'sort':'id','nolimit':_0xa84558(0x1685)})[_0xa84558(0x15e7)][_0xa84558(0x64a)](function(_0x335449){const _0x4eee43=_0xa84558;_0x1e507f[_0x4eee43(0x1aac)]=_0x335449['rows']||[];})[_0xa84558(0x64a)](function(){const _0x2183bd=_0xa84558;return _0x224683[_0x2183bd(0x16b2)]['get']({'userProfileId':_0x1e507f[_0x2183bd(0x1d3d)][_0x2183bd(0x21ac)],'sectionId':0x1f6})[_0x2183bd(0x15e7)];})[_0xa84558(0x64a)](function(_0x3218ce){const _0x2de813=_0xa84558,_0x56ed35=_0x3218ce&&_0x3218ce[_0x2de813(0x28b8)]?_0x3218ce[_0x2de813(0x28b8)][0x0]:null;if(!_0x56ed35){const _0x59f69c=[];let _0xf2fe4c=null;_0x1e507f[_0x2de813(0x2340)]&&(_0xf2fe4c=_0x28c606()[_0x2de813(0x27bc)](_0x1e507f[_0x2de813(0x1aac)],{'id':Number(_0x1e507f[_0x2de813(0x2340)][_0x2de813(0x1096)])}));for(let _0x4f2f1a=0x0;_0x4f2f1a<_0x1e507f['chatAccounts'][_0x2de813(0x1b9e)];_0x4f2f1a++){_0xf2fe4c&&_0x1e507f[_0x2de813(0x1aac)][_0x4f2f1a]['id']===_0xf2fe4c['id']&&(_0x1e507f['chatAccounts'][_0x4f2f1a][_0x2de813(0xd4f)]=![],_0x59f69c[_0x2de813(0x1954)](_0x1e507f[_0x2de813(0x1aac)][_0x4f2f1a]));}_0x1e507f[_0x2de813(0x1aac)]=_0x59f69c;}else{if(!_0x56ed35[_0x2de813(0x11da)])return _0x224683['userProfileResource'][_0x2de813(0x896)]({'sectionId':_0x56ed35['id']})['$promise'][_0x2de813(0x64a)](function(_0x1e9a89){const _0x59de96=_0x2de813,_0x2563d9=_0x28c606()[_0x59de96(0x1de5)](_0x1e9a89['rows'],function(_0x216d34){const _0x527d9b=_0x59de96;return _0x28c606()[_0x527d9b(0x27bc)](_0x1e507f[_0x527d9b(0x1aac)],{'id':_0x216d34[_0x527d9b(0x145)]});});let _0x6e004a=null;_0x1e507f[_0x59de96(0x2340)]&&(_0x6e004a=_0x28c606()[_0x59de96(0x27bc)](_0x1e507f['chatAccounts'],{'id':Number(_0x1e507f['allCondition'][_0x59de96(0x1096)])}));if(_0x6e004a&&!_0x28c606()[_0x59de96(0x25f8)](_0x2563d9,['id',_0x6e004a['id']])){const _0x2e6924=_0x28c606()[_0x59de96(0x27bc)](_0x1e507f['chatAccounts'],{'id':_0x6e004a['id']});_0x2e6924['canSelect']=![],_0x2563d9[_0x59de96(0x1954)](_0x2e6924);}_0x1e507f[_0x59de96(0x1aac)]=_0x2563d9;});}})[_0xa84558(0x20cd)](function(_0xbb6e6){const _0x5123cc=_0xa84558;_0x3512ad['error']({'title':_0xbb6e6['status']?_0x5123cc(0x575)+_0xbb6e6[_0x5123cc(0x10b3)]+_0x5123cc(0x21db)+_0xbb6e6['statusText']:_0x5123cc(0x723),'msg':_0xbb6e6['data']?JSON[_0x5123cc(0x2317)](_0xbb6e6['data']):_0xbb6e6[_0x5123cc(0x2915)]()});}),_0x3e9af6[_0xa84558(0x4de)](_0xa84558(0x333))?_0x224683['mailAccount']['get']({'fields':_0xa84558(0x1427),'sort':'id','nolimit':_0xa84558(0x1685)})[_0xa84558(0x15e7)][_0xa84558(0x64a)](function(_0x300b15){const _0x24da42=_0xa84558;_0x1e507f[_0x24da42(0x2435)]=_0x300b15[_0x24da42(0x28b8)]||[];})[_0xa84558(0x20cd)](function(_0x2f850c){const _0x7d5eae=_0xa84558;_0x3512ad['error']({'title':_0x2f850c[_0x7d5eae(0x10b3)]?_0x7d5eae(0x575)+_0x2f850c[_0x7d5eae(0x10b3)]+_0x7d5eae(0x21db)+_0x2f850c[_0x7d5eae(0x2115)]:'SYSTEM:GET_MAILACCOUNTS','msg':_0x2f850c['data']?JSON[_0x7d5eae(0x2317)](_0x2f850c[_0x7d5eae(0x1c52)]):_0x2f850c['toString']()});}):_0x224683[_0xa84558(0x1b1e)][_0xa84558(0x896)]({'fields':_0xa84558(0x1427),'sort':'id','nolimit':_0xa84558(0x1685)})[_0xa84558(0x15e7)][_0xa84558(0x64a)](function(_0x2b205e){const _0xd57c00=_0xa84558;_0x1e507f['mailAccounts']=_0x2b205e[_0xd57c00(0x28b8)]||[];})['then'](function(){const _0x4a803b=_0xa84558;return _0x224683[_0x4a803b(0x16b2)][_0x4a803b(0x896)]({'userProfileId':_0x1e507f[_0x4a803b(0x1d3d)][_0x4a803b(0x21ac)],'sectionId':0x25a})['$promise'];})[_0xa84558(0x64a)](function(_0x1c423a){const _0x2159c1=_0xa84558,_0x3261b4=_0x1c423a&&_0x1c423a[_0x2159c1(0x28b8)]?_0x1c423a[_0x2159c1(0x28b8)][0x0]:null;if(!_0x3261b4){const _0x4c2d07=[];let _0x2c220=null;_0x1e507f['allCondition']&&(_0x2c220=_0x28c606()[_0x2159c1(0x27bc)](_0x1e507f[_0x2159c1(0x2435)],{'id':Number(_0x1e507f[_0x2159c1(0x2340)][_0x2159c1(0x1096)])}));for(let _0x529340=0x0;_0x529340<_0x1e507f['mailAccounts'][_0x2159c1(0x1b9e)];_0x529340++){_0x2c220&&_0x1e507f[_0x2159c1(0x2435)][_0x529340]['id']===_0x2c220['id']&&(_0x1e507f[_0x2159c1(0x2435)][_0x529340]['canSelect']=![],_0x4c2d07[_0x2159c1(0x1954)](_0x1e507f[_0x2159c1(0x2435)][_0x529340]));}_0x1e507f['mailAccounts']=_0x4c2d07;}else{if(!_0x3261b4[_0x2159c1(0x11da)])return _0x224683['userProfileResource'][_0x2159c1(0x896)]({'sectionId':_0x3261b4['id']})['$promise'][_0x2159c1(0x64a)](function(_0x36c014){const _0x563ea7=_0x2159c1,_0x2cb9af=_0x28c606()[_0x563ea7(0x1de5)](_0x36c014[_0x563ea7(0x28b8)],function(_0x56246b){const _0x3fae2e=_0x563ea7;return _0x28c606()[_0x3fae2e(0x27bc)](_0x1e507f['mailAccounts'],{'id':_0x56246b[_0x3fae2e(0x145)]});});let _0x51edce=null;_0x1e507f[_0x563ea7(0x2340)]&&(_0x51edce=_0x28c606()[_0x563ea7(0x27bc)](_0x1e507f['mailAccounts'],{'id':Number(_0x1e507f[_0x563ea7(0x2340)][_0x563ea7(0x1096)])}));if(_0x51edce&&!_0x28c606()['some'](_0x2cb9af,['id',_0x51edce['id']])){const _0x3b93b1=_0x28c606()[_0x563ea7(0x27bc)](_0x1e507f[_0x563ea7(0x2435)],{'id':_0x51edce['id']});_0x3b93b1[_0x563ea7(0xd4f)]=![],_0x2cb9af[_0x563ea7(0x1954)](_0x3b93b1);}_0x1e507f[_0x563ea7(0x2435)]=_0x2cb9af;});}})['catch'](function(_0x56a9b0){const _0x229026=_0xa84558;_0x3512ad['error']({'title':_0x56a9b0['status']?_0x229026(0x575)+_0x56a9b0['status']+_0x229026(0x21db)+_0x56a9b0['statusText']:_0x229026(0x28b6),'msg':_0x56a9b0[_0x229026(0x1c52)]?JSON[_0x229026(0x2317)](_0x56a9b0[_0x229026(0x1c52)]):_0x56a9b0['toString']()});}),_0x3e9af6[_0xa84558(0x4de)](_0xa84558(0x333))?_0x224683[_0xa84558(0x1512)][_0xa84558(0x896)]({'fields':_0xa84558(0x1427),'sort':'id','nolimit':_0xa84558(0x1685)})[_0xa84558(0x15e7)][_0xa84558(0x64a)](function(_0x201935){const _0xa55fc9=_0xa84558;_0x1e507f[_0xa55fc9(0x205)]=_0x201935['rows']||[];})[_0xa84558(0x20cd)](function(_0x157787){const _0x2c83e8=_0xa84558;_0x3512ad['error']({'title':_0x157787[_0x2c83e8(0x10b3)]?_0x2c83e8(0x575)+_0x157787[_0x2c83e8(0x10b3)]+_0x2c83e8(0x21db)+_0x157787['statusText']:_0x2c83e8(0x1cbc),'msg':_0x157787[_0x2c83e8(0x1c52)]?JSON[_0x2c83e8(0x2317)](_0x157787[_0x2c83e8(0x1c52)]):_0x157787[_0x2c83e8(0x2915)]()});}):_0x224683['smsAccount']['get']({'fields':_0xa84558(0x1427),'sort':'id','nolimit':_0xa84558(0x1685)})[_0xa84558(0x15e7)][_0xa84558(0x64a)](function(_0x1ff59b){_0x1e507f['smsAccounts']=_0x1ff59b['rows']||[];})['then'](function(){const _0x4c60ab=_0xa84558;return _0x224683[_0x4c60ab(0x16b2)]['get']({'userProfileId':_0x1e507f['currentUser'][_0x4c60ab(0x21ac)],'sectionId':0x2be})[_0x4c60ab(0x15e7)];})[_0xa84558(0x64a)](function(_0x1b953e){const _0xa2e368=_0xa84558,_0x2a280a=_0x1b953e&&_0x1b953e['rows']?_0x1b953e[_0xa2e368(0x28b8)][0x0]:null;if(!_0x2a280a){const _0xb39db8=[];let _0x121c51=null;_0x1e507f[_0xa2e368(0x2340)]&&(_0x121c51=_0x28c606()[_0xa2e368(0x27bc)](_0x1e507f[_0xa2e368(0x205)],{'id':Number(_0x1e507f['allCondition'][_0xa2e368(0x1096)])}));for(let _0x5263dc=0x0;_0x5263dc<_0x1e507f[_0xa2e368(0x205)]['length'];_0x5263dc++){_0x121c51&&_0x1e507f[_0xa2e368(0x205)][_0x5263dc]['id']===_0x121c51['id']&&(_0x1e507f[_0xa2e368(0x205)][_0x5263dc]['canSelect']=![],_0xb39db8['push'](_0x1e507f[_0xa2e368(0x205)][_0x5263dc]));}_0x1e507f[_0xa2e368(0x205)]=_0xb39db8;}else{if(!_0x2a280a[_0xa2e368(0x11da)])return _0x224683['userProfileResource']['get']({'sectionId':_0x2a280a['id']})['$promise']['then'](function(_0x1b3e48){const _0x3e0252=_0xa2e368,_0x686846=_0x28c606()[_0x3e0252(0x1de5)](_0x1b3e48[_0x3e0252(0x28b8)],function(_0x1f0cff){const _0x4ba752=_0x3e0252;return _0x28c606()[_0x4ba752(0x27bc)](_0x1e507f[_0x4ba752(0x205)],{'id':_0x1f0cff['resourceId']});});let _0x5a654b=null;_0x1e507f[_0x3e0252(0x2340)]&&(_0x5a654b=_0x28c606()[_0x3e0252(0x27bc)](_0x1e507f[_0x3e0252(0x205)],{'id':Number(_0x1e507f[_0x3e0252(0x2340)][_0x3e0252(0x1096)])}));if(_0x5a654b&&!_0x28c606()[_0x3e0252(0x25f8)](_0x686846,['id',_0x5a654b['id']])){const _0x7027d9=_0x28c606()['find'](_0x1e507f[_0x3e0252(0x205)],{'id':_0x5a654b['id']});_0x7027d9[_0x3e0252(0xd4f)]=![],_0x686846['push'](_0x7027d9);}_0x1e507f['smsAccounts']=_0x686846;});}})[_0xa84558(0x20cd)](function(_0x15ca6c){const _0x34879d=_0xa84558;_0x3512ad['error']({'title':_0x15ca6c[_0x34879d(0x10b3)]?_0x34879d(0x575)+_0x15ca6c[_0x34879d(0x10b3)]+'\x20-\x20'+_0x15ca6c[_0x34879d(0x2115)]:_0x34879d(0x22b9),'msg':_0x15ca6c['data']?JSON['stringify'](_0x15ca6c[_0x34879d(0x1c52)]):_0x15ca6c[_0x34879d(0x2915)]()});}),_0x3e9af6[_0xa84558(0x4de)](_0xa84558(0x333))?_0x224683[_0xa84558(0x217c)][_0xa84558(0x896)]({'fields':_0xa84558(0x1427),'sort':'id','nolimit':'true'})[_0xa84558(0x15e7)][_0xa84558(0x64a)](function(_0x4828dc){const _0x15fcb0=_0xa84558;_0x1e507f[_0x15fcb0(0x21fb)]=_0x4828dc[_0x15fcb0(0x28b8)]||[];})[_0xa84558(0x20cd)](function(_0x335162){const _0x5aef21=_0xa84558;_0x3512ad[_0x5aef21(0x1bd0)]({'title':_0x335162[_0x5aef21(0x10b3)]?_0x5aef21(0x575)+_0x335162[_0x5aef21(0x10b3)]+'\x20-\x20'+_0x335162[_0x5aef21(0x2115)]:_0x5aef21(0x17c5),'msg':_0x335162['data']?JSON['stringify'](_0x335162[_0x5aef21(0x1c52)]):_0x335162[_0x5aef21(0x2915)]()});}):_0x224683['whatsappAccount'][_0xa84558(0x896)]({'fields':_0xa84558(0x1427),'sort':'id','nolimit':_0xa84558(0x1685)})[_0xa84558(0x15e7)][_0xa84558(0x64a)](function(_0x55dca9){const _0x134e35=_0xa84558;_0x1e507f[_0x134e35(0x21fb)]=_0x55dca9[_0x134e35(0x28b8)]||[];})['then'](function(){const _0x122a17=_0xa84558;return _0x224683[_0x122a17(0x16b2)][_0x122a17(0x896)]({'userProfileId':_0x1e507f[_0x122a17(0x1d3d)][_0x122a17(0x21ac)],'sectionId':0x836})[_0x122a17(0x15e7)];})['then'](function(_0x49b15a){const _0x57b99c=_0xa84558,_0xc90922=_0x49b15a&&_0x49b15a[_0x57b99c(0x28b8)]?_0x49b15a[_0x57b99c(0x28b8)][0x0]:null;if(!_0xc90922){const _0x284a04=[];let _0x4550cc=null;_0x1e507f[_0x57b99c(0x2340)]&&(_0x4550cc=_0x28c606()['find'](_0x1e507f[_0x57b99c(0x21fb)],{'id':Number(_0x1e507f[_0x57b99c(0x2340)]['value'])}));for(let _0x1da4e0=0x0;_0x1da4e0<_0x1e507f[_0x57b99c(0x21fb)][_0x57b99c(0x1b9e)];_0x1da4e0++){_0x4550cc&&_0x1e507f[_0x57b99c(0x21fb)][_0x1da4e0]['id']===_0x4550cc['id']&&(_0x1e507f[_0x57b99c(0x21fb)][_0x1da4e0][_0x57b99c(0xd4f)]=![],_0x284a04['push'](_0x1e507f[_0x57b99c(0x21fb)][_0x1da4e0]));}_0x1e507f['whatsappAccounts']=_0x284a04;}else{if(!_0xc90922[_0x57b99c(0x11da)])return _0x224683['userProfileResource'][_0x57b99c(0x896)]({'sectionId':_0xc90922['id']})[_0x57b99c(0x15e7)][_0x57b99c(0x64a)](function(_0x446056){const _0x489fd7=_0x57b99c,_0x3bb168=_0x28c606()[_0x489fd7(0x1de5)](_0x446056[_0x489fd7(0x28b8)],function(_0x309c98){const _0x504f15=_0x489fd7;return _0x28c606()[_0x504f15(0x27bc)](_0x1e507f[_0x504f15(0x21fb)],{'id':_0x309c98[_0x504f15(0x145)]});});let _0x536c33=null;_0x1e507f[_0x489fd7(0x2340)]&&(_0x536c33=_0x28c606()[_0x489fd7(0x27bc)](_0x1e507f[_0x489fd7(0x21fb)],{'id':Number(_0x1e507f[_0x489fd7(0x2340)][_0x489fd7(0x1096)])}));if(_0x536c33&&!_0x28c606()[_0x489fd7(0x25f8)](_0x3bb168,['id',_0x536c33['id']])){const _0x5d0f02=_0x28c606()[_0x489fd7(0x27bc)](_0x1e507f[_0x489fd7(0x21fb)],{'id':_0x536c33['id']});_0x5d0f02[_0x489fd7(0xd4f)]=![],_0x3bb168[_0x489fd7(0x1954)](_0x5d0f02);}_0x1e507f[_0x489fd7(0x21fb)]=_0x3bb168;});}})[_0xa84558(0x20cd)](function(_0x4629fc){const _0x6d70d6=_0xa84558;_0x3512ad[_0x6d70d6(0x1bd0)]({'title':_0x4629fc[_0x6d70d6(0x10b3)]?'API:'+_0x4629fc[_0x6d70d6(0x10b3)]+_0x6d70d6(0x21db)+_0x4629fc[_0x6d70d6(0x2115)]:_0x6d70d6(0x1e87),'msg':_0x4629fc[_0x6d70d6(0x1c52)]?JSON[_0x6d70d6(0x2317)](_0x4629fc[_0x6d70d6(0x1c52)]):_0x4629fc['toString']()});}),_0x3e9af6[_0xa84558(0x4de)]('admin')?_0x224683[_0xa84558(0x549)][_0xa84558(0x896)]({'fields':_0xa84558(0x1427),'sort':'id','nolimit':_0xa84558(0x1685)})[_0xa84558(0x15e7)][_0xa84558(0x64a)](function(_0x3494ee){const _0x5eab0d=_0xa84558;_0x1e507f[_0x5eab0d(0x198c)]=_0x3494ee[_0x5eab0d(0x28b8)]||[];})[_0xa84558(0x20cd)](function(_0x17ca23){const _0x4ac3ff=_0xa84558;_0x3512ad[_0x4ac3ff(0x1bd0)]({'title':_0x17ca23['status']?'API:'+_0x17ca23[_0x4ac3ff(0x10b3)]+_0x4ac3ff(0x21db)+_0x17ca23[_0x4ac3ff(0x2115)]:_0x4ac3ff(0x1fb6),'msg':_0x17ca23[_0x4ac3ff(0x1c52)]?JSON[_0x4ac3ff(0x2317)](_0x17ca23[_0x4ac3ff(0x1c52)]):_0x17ca23[_0x4ac3ff(0x2915)]()});}):_0x224683[_0xa84558(0x549)]['get']({'fields':_0xa84558(0x1427),'sort':'id','nolimit':_0xa84558(0x1685)})[_0xa84558(0x15e7)][_0xa84558(0x64a)](function(_0x2dc125){const _0x457d78=_0xa84558;_0x1e507f[_0x457d78(0x198c)]=_0x2dc125['rows']||[];})[_0xa84558(0x64a)](function(){const _0x5deac5=_0xa84558;return _0x224683[_0x5deac5(0x16b2)][_0x5deac5(0x896)]({'userProfileId':_0x1e507f[_0x5deac5(0x1d3d)][_0x5deac5(0x21ac)],'sectionId':0x386})[_0x5deac5(0x15e7)];})[_0xa84558(0x64a)](function(_0x24f256){const _0x1aa11f=_0xa84558,_0x18a0b9=_0x24f256&&_0x24f256[_0x1aa11f(0x28b8)]?_0x24f256[_0x1aa11f(0x28b8)][0x0]:null;if(!_0x18a0b9){const _0x23575c=[];let _0x1df976=null;_0x1e507f[_0x1aa11f(0x2340)]&&(_0x1df976=_0x28c606()[_0x1aa11f(0x27bc)](_0x1e507f['faxAccounts'],{'id':Number(_0x1e507f[_0x1aa11f(0x2340)][_0x1aa11f(0x1096)])}));for(let _0x1f8913=0x0;_0x1f8913<_0x1e507f[_0x1aa11f(0x198c)][_0x1aa11f(0x1b9e)];_0x1f8913++){_0x1df976&&_0x1e507f['faxAccounts'][_0x1f8913]['id']===_0x1df976['id']&&(_0x1e507f[_0x1aa11f(0x198c)][_0x1f8913][_0x1aa11f(0xd4f)]=![],_0x23575c[_0x1aa11f(0x1954)](_0x1e507f[_0x1aa11f(0x198c)][_0x1f8913]));}_0x1e507f[_0x1aa11f(0x198c)]=_0x23575c;}else{if(!_0x18a0b9[_0x1aa11f(0x11da)])return _0x224683[_0x1aa11f(0x1617)][_0x1aa11f(0x896)]({'sectionId':_0x18a0b9['id']})[_0x1aa11f(0x15e7)]['then'](function(_0x2c8c1b){const _0x1b27ca=_0x1aa11f,_0x2796c9=_0x28c606()['map'](_0x2c8c1b[_0x1b27ca(0x28b8)],function(_0x43ffae){const _0x3530e8=_0x1b27ca;return _0x28c606()[_0x3530e8(0x27bc)](_0x1e507f[_0x3530e8(0x198c)],{'id':_0x43ffae[_0x3530e8(0x145)]});});let _0x21defb=null;_0x1e507f[_0x1b27ca(0x2340)]&&(_0x21defb=_0x28c606()[_0x1b27ca(0x27bc)](_0x1e507f['faxAccounts'],{'id':Number(_0x1e507f[_0x1b27ca(0x2340)][_0x1b27ca(0x1096)])}));if(_0x21defb&&!_0x28c606()['some'](_0x2796c9,['id',_0x21defb['id']])){const _0x1a8393=_0x28c606()[_0x1b27ca(0x27bc)](_0x1e507f[_0x1b27ca(0x198c)],{'id':_0x21defb['id']});_0x1a8393['canSelect']=![],_0x2796c9['push'](_0x1a8393);}_0x1e507f['faxAccounts']=_0x2796c9;});}})[_0xa84558(0x20cd)](function(_0x7c07b3){const _0x16b3b3=_0xa84558;_0x3512ad[_0x16b3b3(0x1bd0)]({'title':_0x7c07b3['status']?'API:'+_0x7c07b3[_0x16b3b3(0x10b3)]+_0x16b3b3(0x21db)+_0x7c07b3[_0x16b3b3(0x2115)]:_0x16b3b3(0xa94),'msg':_0x7c07b3[_0x16b3b3(0x1c52)]?JSON[_0x16b3b3(0x2317)](_0x7c07b3[_0x16b3b3(0x1c52)]):_0x7c07b3[_0x16b3b3(0x2915)]()});}),_0x3e9af6[_0xa84558(0x4de)](_0xa84558(0x333))?_0x224683[_0xa84558(0x880)][_0xa84558(0x896)]({'fields':_0xa84558(0x1427),'sort':'id','nolimit':'true'})[_0xa84558(0x15e7)][_0xa84558(0x64a)](function(_0x42a717){const _0x820de2=_0xa84558;_0x1e507f[_0x820de2(0xda9)]=_0x42a717[_0x820de2(0x28b8)]||[];})[_0xa84558(0x20cd)](function(_0x14d5f6){const _0x282809=_0xa84558;_0x3512ad[_0x282809(0x1bd0)]({'title':_0x14d5f6[_0x282809(0x10b3)]?_0x282809(0x575)+_0x14d5f6['status']+_0x282809(0x21db)+_0x14d5f6[_0x282809(0x2115)]:_0x282809(0x461),'msg':_0x14d5f6[_0x282809(0x1c52)]?JSON[_0x282809(0x2317)](_0x14d5f6[_0x282809(0x1c52)]):_0x14d5f6[_0x282809(0x2915)]()});}):_0x224683[_0xa84558(0x880)][_0xa84558(0x896)]({'fields':'id,name','sort':'id','nolimit':_0xa84558(0x1685)})['$promise']['then'](function(_0x17f97d){const _0x810b4e=_0xa84558;_0x1e507f[_0x810b4e(0xda9)]=_0x17f97d[_0x810b4e(0x28b8)]||[];})[_0xa84558(0x64a)](function(){const _0x4805e0=_0xa84558;return _0x224683[_0x4805e0(0x16b2)][_0x4805e0(0x896)]({'userProfileId':_0x1e507f['currentUser']['userProfileId'],'sectionId':0x322})['$promise'];})[_0xa84558(0x64a)](function(_0x3758b1){const _0x30d3e8=_0xa84558,_0xad2227=_0x3758b1&&_0x3758b1[_0x30d3e8(0x28b8)]?_0x3758b1[_0x30d3e8(0x28b8)][0x0]:null;if(!_0xad2227){const _0x40d9c8=[];let _0x37b053=null;_0x1e507f[_0x30d3e8(0x2340)]&&(_0x37b053=_0x28c606()['find'](_0x1e507f[_0x30d3e8(0xda9)],{'id':Number(_0x1e507f[_0x30d3e8(0x2340)][_0x30d3e8(0x1096)])}));for(let _0x5d12b0=0x0;_0x5d12b0<_0x1e507f[_0x30d3e8(0xda9)][_0x30d3e8(0x1b9e)];_0x5d12b0++){_0x37b053&&_0x1e507f['openchannelAccounts'][_0x5d12b0]['id']===_0x37b053['id']&&(_0x1e507f[_0x30d3e8(0xda9)][_0x5d12b0][_0x30d3e8(0xd4f)]=![],_0x40d9c8['push'](_0x1e507f['openchannelAccounts'][_0x5d12b0]));}_0x1e507f[_0x30d3e8(0xda9)]=_0x40d9c8;}else{if(!_0xad2227[_0x30d3e8(0x11da)])return _0x224683['userProfileResource'][_0x30d3e8(0x896)]({'sectionId':_0xad2227['id']})['$promise']['then'](function(_0x1296ae){const _0x3bbed6=_0x30d3e8,_0x2566d0=_0x28c606()['map'](_0x1296ae[_0x3bbed6(0x28b8)],function(_0x41ee82){const _0x1d24a=_0x3bbed6;return _0x28c606()[_0x1d24a(0x27bc)](_0x1e507f[_0x1d24a(0xda9)],{'id':_0x41ee82[_0x1d24a(0x145)]});});let _0x1bef2c=null;_0x1e507f[_0x3bbed6(0x2340)]&&(_0x1bef2c=_0x28c606()[_0x3bbed6(0x27bc)](_0x1e507f['openchannelAccounts'],{'id':Number(_0x1e507f[_0x3bbed6(0x2340)][_0x3bbed6(0x1096)])}));if(_0x1bef2c&&!_0x28c606()['some'](_0x2566d0,['id',_0x1bef2c['id']])){const _0x5c0dd8=_0x28c606()['find'](_0x1e507f[_0x3bbed6(0xda9)],{'id':_0x1bef2c['id']});_0x5c0dd8[_0x3bbed6(0xd4f)]=![],_0x2566d0[_0x3bbed6(0x1954)](_0x5c0dd8);}_0x1e507f[_0x3bbed6(0xda9)]=_0x2566d0;});}})['catch'](function(_0xec2283){const _0x4e6a19=_0xa84558;_0x3512ad[_0x4e6a19(0x1bd0)]({'title':_0xec2283['status']?_0x4e6a19(0x575)+_0xec2283[_0x4e6a19(0x10b3)]+_0x4e6a19(0x21db)+_0xec2283[_0x4e6a19(0x2115)]:_0x4e6a19(0xd43),'msg':_0xec2283[_0x4e6a19(0x1c52)]?JSON['stringify'](_0xec2283[_0x4e6a19(0x1c52)]):_0xec2283[_0x4e6a19(0x2915)]()});});const _0x13d3c0=[{'id':0x191,'type':_0xa84558(0x12a4)},{'id':0x5dd,'type':_0xa84558(0xbce)}];let _0x1a4a04=null;_0x3e9af6[_0xa84558(0x4de)](_0xa84558(0x333))?_0x224683['voiceQueue'][_0xa84558(0x896)]({'fields':'id,name,type','sort':_0xa84558(0x2494),'nolimit':_0xa84558(0x1685)})[_0xa84558(0x15e7)][_0xa84558(0x64a)](function(_0x365bd3){const _0x152a3f=_0xa84558;_0x1e507f[_0x152a3f(0x1c06)]=_0x365bd3[_0x152a3f(0x28b8)]||[];})[_0xa84558(0x20cd)](function(_0x120639){const _0x1cc661=_0xa84558;_0x3512ad[_0x1cc661(0x1bd0)]({'title':_0x120639[_0x1cc661(0x10b3)]?_0x1cc661(0x575)+_0x120639[_0x1cc661(0x10b3)]+'\x20-\x20'+_0x120639['statusText']:_0x1cc661(0xe03),'msg':_0x120639['data']?JSON['stringify'](_0x120639[_0x1cc661(0x1c52)]):_0x120639['toString']()});}):_0x224683[_0xa84558(0x178b)][_0xa84558(0x896)]({'fields':_0xa84558(0x2ba),'sort':_0xa84558(0x2494),'nolimit':_0xa84558(0x1685)})[_0xa84558(0x15e7)][_0xa84558(0x64a)](function(_0x2c37e7){const _0x2b0349=_0xa84558;_0x1a4a04=_0x2c37e7[_0x2b0349(0x28b8)]||[];})[_0xa84558(0x64a)](function(){const _0x517eb7=_0xa84558,_0x10304b=[];for(let _0x257718=0x0;_0x257718<_0x13d3c0[_0x517eb7(0x1b9e)];_0x257718++){_0x10304b['push'](_0x224683[_0x517eb7(0x16b2)]['get']({'userProfileId':_0x1e507f[_0x517eb7(0x1d3d)][_0x517eb7(0x21ac)],'sectionId':_0x13d3c0[_0x257718]['id']})[_0x517eb7(0x15e7)]);}return _0x4e59d0[_0x517eb7(0x2705)](_0x10304b);})['then'](function(_0x72a704){const _0x5d4eb5=_0xa84558,_0x18467c=_0x28c606()[_0x5d4eb5(0x1de5)](_0x72a704,function(_0x1172e6){return _0x1172e6&&_0x1172e6['rows']?_0x1172e6['rows'][0x0]:null;}),_0x58a490=[];for(let _0x520c13=0x0;_0x520c13<_0x13d3c0[_0x5d4eb5(0x1b9e)];_0x520c13++){const _0x10501d=_0x28c606()[_0x5d4eb5(0x27bc)](_0x18467c,[_0x5d4eb5(0xf7b),_0x13d3c0[_0x520c13]['id']]);if(_0x10501d){if(!_0x10501d[_0x5d4eb5(0x11da)])_0x58a490[_0x5d4eb5(0x1954)](_0x224683[_0x5d4eb5(0x1617)]['get']({'sectionId':_0x10501d['id']})[_0x5d4eb5(0x15e7)]);else{const _0x36cb3c=[];_0x1a4a04[_0x5d4eb5(0x1397)](function(_0x2abec2){const _0x1b089d=_0x5d4eb5;_0x2abec2[_0x1b089d(0x2185)]===_0x13d3c0[_0x520c13]['type']&&_0x36cb3c[_0x1b089d(0x1954)](_0x2abec2);}),_0x58a490[_0x5d4eb5(0x1954)]({'rows':_0x36cb3c,'count':_0x36cb3c['length']});}}}return _0x4e59d0[_0x5d4eb5(0x2705)](_0x58a490);})['then'](function(_0x3ea2ba){const _0x476d25=_0xa84558,_0x4b500b=[];let _0x3d3ef3=null;_0x1e507f[_0x476d25(0x2340)]&&(_0x3d3ef3=_0x28c606()[_0x476d25(0x27bc)](_0x1a4a04,{'name':_0x1e507f[_0x476d25(0x2340)][_0x476d25(0x1096)]}));for(let _0x1a9d2c=0x0;_0x1a9d2c<_0x3ea2ba[_0x476d25(0x1b9e)];_0x1a9d2c++){const _0xccb1c8=_0x3ea2ba[_0x1a9d2c]['rows']||[];_0xccb1c8[_0x476d25(0x1397)](function(_0x3bacf5){const _0x1641aa=_0x476d25;_0x4b500b[_0x1641aa(0x1954)](_0x3bacf5);});}_0x3d3ef3&&!_0x28c606()[_0x476d25(0x25f8)](_0x4b500b,['resourceId',_0x3d3ef3['id']])&&_0x1a4a04[_0x476d25(0x1397)](function(_0x37b32a){const _0xf9b235=_0x476d25;_0x37b32a['id']===_0x3d3ef3['id']&&(_0x37b32a[_0xf9b235(0xd4f)]=![],_0x4b500b[_0xf9b235(0x1954)](_0x37b32a));}),_0x1e507f['queues']=_0x4b500b;})['catch'](function(_0x4dd8df){const _0x5d3a57=_0xa84558;_0x3512ad['error']({'title':_0x4dd8df[_0x5d3a57(0x10b3)]?_0x5d3a57(0x575)+_0x4dd8df['status']+_0x5d3a57(0x21db)+_0x4dd8df['statusText']:_0x5d3a57(0x1238),'msg':_0x4dd8df[_0x5d3a57(0x1c52)]?JSON['stringify'](_0x4dd8df[_0x5d3a57(0x1c52)]):_0x4dd8df[_0x5d3a57(0x2915)]()});}),_0x3e9af6['hasRole'](_0xa84558(0x333))?_0x224683[_0xa84558(0x1438)][_0xa84558(0x896)]({'fields':_0xa84558(0x105b),'type':_0xa84558(0xbce),'VoiceExtensionId':_0xa84558(0x8f1),'nolimit':'true'})['$promise'][_0xa84558(0x64a)](function(_0xc12649){const _0x1b7d5b=_0xa84558;_0x1e507f[_0x1b7d5b(0x20a0)]=_0xc12649['rows']||[];})[_0xa84558(0x20cd)](function(_0x2f5698){const _0x222bfc=_0xa84558;_0x3512ad[_0x222bfc(0x1bd0)]({'title':_0x2f5698['status']?_0x222bfc(0x575)+_0x2f5698[_0x222bfc(0x10b3)]+_0x222bfc(0x21db)+_0x2f5698[_0x222bfc(0x2115)]:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x2f5698[_0x222bfc(0x1c52)]?JSON[_0x222bfc(0x2317)](_0x2f5698[_0x222bfc(0x1c52)]):_0x2f5698[_0x222bfc(0x2915)]()});}):_0x224683['voiceExtension']['get']({'fields':_0xa84558(0x105b),'type':_0xa84558(0xbce),'VoiceExtensionId':_0xa84558(0x8f1),'nolimit':_0xa84558(0x1685)})[_0xa84558(0x15e7)][_0xa84558(0x64a)](function(_0x401704){const _0x1cdfa8=_0xa84558;_0x1e507f['outboundRoutes']=_0x401704[_0x1cdfa8(0x28b8)]||[];})[_0xa84558(0x64a)](function(){const _0x4b5c43=_0xa84558;return _0x224683[_0x4b5c43(0x16b2)][_0x4b5c43(0x896)]({'userProfileId':_0x1e507f[_0x4b5c43(0x1d3d)]['userProfileId'],'sectionId':0x193})[_0x4b5c43(0x15e7)];})[_0xa84558(0x64a)](function(_0x4d35cb){const _0x266434=_0xa84558,_0x225521=_0x4d35cb&&_0x4d35cb['rows']?_0x4d35cb['rows'][0x0]:null;if(!_0x225521){const _0x7d1ade=[];let _0x27a941=null;_0x1e507f['allCondition']&&(_0x27a941=_0x28c606()[_0x266434(0x27bc)](_0x1e507f[_0x266434(0x20a0)],{'id':Number(_0x1e507f[_0x266434(0x2340)][_0x266434(0x1096)])}));for(let _0x121197=0x0;_0x121197<_0x1e507f[_0x266434(0x20a0)][_0x266434(0x1b9e)];_0x121197++){_0x27a941&&_0x1e507f[_0x266434(0x20a0)][_0x121197]['id']===_0x27a941['id']&&(_0x1e507f['outboundRoutes'][_0x121197][_0x266434(0xd4f)]=![],_0x7d1ade[_0x266434(0x1954)](_0x1e507f['outboundRoutes'][_0x121197]));}_0x1e507f[_0x266434(0x20a0)]=_0x7d1ade;}else{if(!_0x225521['autoAssociation'])return _0x224683[_0x266434(0x1617)][_0x266434(0x896)]({'sectionId':_0x225521['id']})[_0x266434(0x15e7)]['then'](function(_0x34ea8d){const _0x5dc64d=_0x266434,_0x11a6e1=_0x28c606()['map'](_0x34ea8d[_0x5dc64d(0x28b8)],function(_0x28be26){const _0x1b16e6=_0x5dc64d;return _0x28c606()['find'](_0x1e507f[_0x1b16e6(0x20a0)],{'id':_0x28be26[_0x1b16e6(0x145)]});});let _0x2e64a8=null;_0x1e507f['allCondition']&&(_0x2e64a8=_0x28c606()['find'](_0x1e507f[_0x5dc64d(0x20a0)],{'id':Number(_0x1e507f[_0x5dc64d(0x2340)]['value'])}));if(_0x2e64a8&&!_0x28c606()[_0x5dc64d(0x25f8)](_0x11a6e1,['id',_0x2e64a8['id']])){const _0x385ddb=_0x28c606()[_0x5dc64d(0x27bc)](_0x1e507f[_0x5dc64d(0x20a0)],{'id':_0x2e64a8['id']});_0x385ddb['canSelect']=![],_0x11a6e1[_0x5dc64d(0x1954)](_0x385ddb);}_0x1e507f['outboundRoutes']=_0x11a6e1;});}})['catch'](function(_0x570252){const _0x1be68c=_0xa84558;_0x3512ad['error']({'title':_0x570252[_0x1be68c(0x10b3)]?_0x1be68c(0x575)+_0x570252[_0x1be68c(0x10b3)]+_0x1be68c(0x21db)+_0x570252[_0x1be68c(0x2115)]:_0x1be68c(0x1bac),'msg':_0x570252[_0x1be68c(0x1c52)]?JSON[_0x1be68c(0x2317)](_0x570252[_0x1be68c(0x1c52)]):_0x570252[_0x1be68c(0x2915)]()});}),_0x3e9af6[_0xa84558(0x4de)](_0xa84558(0x333))?_0x224683[_0xa84558(0x2e8)][_0xa84558(0x896)]({'fields':_0xa84558(0xd53),'sort':'name','role':_0xa84558(0x11ae),'nolimit':_0xa84558(0x1685)})[_0xa84558(0x15e7)]['then'](function(_0x5e9335){const _0xb4d496=_0xa84558;_0x1e507f[_0xb4d496(0xd77)]=_0x5e9335[_0xb4d496(0x28b8)]||[];})[_0xa84558(0x20cd)](function(_0xbc7393){const _0x30b78b=_0xa84558;_0x3512ad[_0x30b78b(0x1bd0)]({'title':_0xbc7393['status']?_0x30b78b(0x575)+_0xbc7393[_0x30b78b(0x10b3)]+_0x30b78b(0x21db)+_0xbc7393[_0x30b78b(0x2115)]:'SYSTEM:GET_AGENTS','msg':_0xbc7393[_0x30b78b(0x1c52)]?JSON[_0x30b78b(0x2317)](_0xbc7393[_0x30b78b(0x1c52)]):_0xbc7393[_0x30b78b(0x2915)]()});}):_0x224683[_0xa84558(0x2e8)]['get']({'fields':_0xa84558(0xd53),'sort':_0xa84558(0x2494),'role':_0xa84558(0x11ae),'nolimit':_0xa84558(0x1685)})[_0xa84558(0x15e7)][_0xa84558(0x64a)](function(_0x2297a7){const _0x2d949b=_0xa84558;_0x1e507f['agents']=_0x2297a7[_0x2d949b(0x28b8)]||[];})[_0xa84558(0x64a)](function(){const _0xc776d5=_0xa84558;return _0x224683[_0xc776d5(0x16b2)][_0xc776d5(0x896)]({'userProfileId':_0x1e507f[_0xc776d5(0x1d3d)]['userProfileId'],'sectionId':0xca})['$promise'];})[_0xa84558(0x64a)](function(_0x41d871){const _0x4e14eb=_0xa84558,_0x6b91f8=_0x41d871&&_0x41d871[_0x4e14eb(0x28b8)]?_0x41d871[_0x4e14eb(0x28b8)][0x0]:null;if(!_0x6b91f8){const _0x171136=[];let _0x3caae9=null;_0x1e507f['allCondition']&&(_0x3caae9=_0x28c606()[_0x4e14eb(0x27bc)](_0x1e507f[_0x4e14eb(0xd77)],{'name':_0x1e507f[_0x4e14eb(0x2340)][_0x4e14eb(0x1096)]}));for(let _0x183307=0x0;_0x183307<_0x1e507f[_0x4e14eb(0xd77)]['length'];_0x183307++){_0x3caae9&&_0x1e507f['agents'][_0x183307]['id']===_0x3caae9['id']&&(_0x1e507f[_0x4e14eb(0xd77)][_0x183307]['canSelect']=![],_0x171136[_0x4e14eb(0x1954)](_0x1e507f[_0x4e14eb(0xd77)][_0x183307]));}_0x1e507f[_0x4e14eb(0xd77)]=_0x171136;}else{if(!_0x6b91f8['autoAssociation'])return _0x224683[_0x4e14eb(0x1617)][_0x4e14eb(0x896)]({'sectionId':_0x6b91f8['id']})[_0x4e14eb(0x15e7)][_0x4e14eb(0x64a)](function(_0x4b63ec){const _0x189b54=_0x4e14eb,_0x4cd607=_0x28c606()[_0x189b54(0x1de5)](_0x4b63ec[_0x189b54(0x28b8)],function(_0x5c97da){const _0x33e476=_0x189b54;return _0x28c606()[_0x33e476(0x27bc)](_0x1e507f['agents'],{'id':_0x5c97da['resourceId']});});let _0xf7bc2=null;_0x1e507f[_0x189b54(0x2340)]&&(_0xf7bc2=_0x28c606()[_0x189b54(0x27bc)](_0x1e507f['agents'],{'name':_0x1e507f['allCondition'][_0x189b54(0x1096)]}));if(_0xf7bc2&&!_0x28c606()[_0x189b54(0x25f8)](_0x4cd607,['id',_0xf7bc2['id']])){const _0x5e4328=_0x28c606()[_0x189b54(0x27bc)](_0x1e507f[_0x189b54(0xd77)],{'id':_0xf7bc2['id']});_0x5e4328[_0x189b54(0xd4f)]=![],_0x4cd607[_0x189b54(0x1954)](_0x5e4328);}_0x1e507f[_0x189b54(0xd77)]=_0x4cd607;});}})['catch'](function(_0x249486){const _0x22f749=_0xa84558;_0x3512ad[_0x22f749(0x1bd0)]({'title':_0x249486[_0x22f749(0x10b3)]?_0x22f749(0x575)+_0x249486[_0x22f749(0x10b3)]+'\x20-\x20'+_0x249486[_0x22f749(0x2115)]:_0x22f749(0x1ff1),'msg':_0x249486['data']?JSON[_0x22f749(0x2317)](_0x249486[_0x22f749(0x1c52)]):_0x249486[_0x22f749(0x2915)]()});});function _0x13093e(){const _0x1febfc=_0xa84558;_0x1e507f[_0x1febfc(0xbae)]=[],_0x224683['trigger'][_0x1febfc(0x73c)]({'id':_0x4a4e61[_0x1febfc(0x1b48)]['id']},_0x1e507f['allCondition'])[_0x1febfc(0x15e7)][_0x1febfc(0x64a)](function(_0x2140d5){const _0x1edb8f=_0x1febfc;_0x1e507f[_0x1edb8f(0x2259)][_0x1edb8f(0x1891)](_0x2140d5[_0x1edb8f(0x14f8)]()),_0x3512ad[_0x1edb8f(0x1339)]({'title':_0x1edb8f(0x1a73),'msg':_0x1e507f[_0x1edb8f(0x2340)][_0x1edb8f(0x2494)]?_0x1e507f[_0x1edb8f(0x2340)][_0x1edb8f(0x2494)]+_0x1edb8f(0x258d):''}),_0x9c5baa(_0x2140d5);})[_0x1febfc(0x20cd)](function(_0x2401fc){const _0x38e7df=_0x1febfc;if(_0x2401fc[_0x38e7df(0x1c52)]&&_0x2401fc[_0x38e7df(0x1c52)][_0x38e7df(0xbae)]&&_0x2401fc[_0x38e7df(0x1c52)]['errors'][_0x38e7df(0x1b9e)]){_0x1e507f[_0x38e7df(0xbae)]=_0x2401fc[_0x38e7df(0x1c52)][_0x38e7df(0xbae)]||[{'message':_0x2401fc[_0x38e7df(0x2915)](),'type':'api.condition.save'}];for(let _0x392f7b=0x0;_0x392f7b<_0x2401fc[_0x38e7df(0x1c52)][_0x38e7df(0xbae)][_0x38e7df(0x1b9e)];_0x392f7b+=0x1){_0x3512ad[_0x38e7df(0x1bd0)]({'title':_0x2401fc[_0x38e7df(0x1c52)][_0x38e7df(0xbae)][_0x392f7b]['type'],'msg':_0x2401fc[_0x38e7df(0x1c52)][_0x38e7df(0xbae)][_0x392f7b]['message']});}}else _0x3512ad[_0x38e7df(0x1bd0)]({'title':_0x2401fc[_0x38e7df(0x10b3)]?_0x38e7df(0x575)+_0x2401fc[_0x38e7df(0x10b3)]+_0x38e7df(0x21db)+_0x2401fc[_0x38e7df(0x2115)]:_0x38e7df(0x833),'msg':_0x2401fc[_0x38e7df(0x1c52)]?JSON[_0x38e7df(0x2317)](_0x2401fc[_0x38e7df(0x1c52)][_0x38e7df(0x18ca)]):_0x2401fc[_0x38e7df(0x2915)]()});});}function _0x12510a(){const _0x44da83=_0xa84558;_0x1e507f[_0x44da83(0xbae)]=[],_0x224683['condition']['update']({'id':_0x1e507f[_0x44da83(0x2340)]['id']},_0x1e507f[_0x44da83(0x2340)])[_0x44da83(0x15e7)]['then'](function(_0x5e6206){const _0x4b4ea7=_0x44da83,_0x4aadbb=_0x28c606()[_0x4b4ea7(0x27bc)](_0x1e507f[_0x4b4ea7(0x2259)],{'id':_0x5e6206['id']});_0x4aadbb&&_0x28c606()[_0x4b4ea7(0x14fe)](_0x4aadbb,_0x28c606()[_0x4b4ea7(0x27bb)](_0x5e6206[_0x4b4ea7(0x14f8)](),_0x28c606()[_0x4b4ea7(0x1ec6)](_0x4aadbb))),_0x3512ad[_0x4b4ea7(0x1339)]({'title':'AllCondition\x20properly\x20saved!','msg':_0x1e507f[_0x4b4ea7(0x2340)]['name']?_0x1e507f[_0x4b4ea7(0x2340)][_0x4b4ea7(0x2494)]+'\x20has\x20been\x20saved!':''}),_0x9c5baa(_0x5e6206);})[_0x44da83(0x20cd)](function(_0x41f763){const _0x5b9e34=_0x44da83;if(_0x41f763['data']&&_0x41f763[_0x5b9e34(0x1c52)][_0x5b9e34(0xbae)]&&_0x41f763[_0x5b9e34(0x1c52)]['errors'][_0x5b9e34(0x1b9e)]){_0x1e507f[_0x5b9e34(0xbae)]=_0x41f763[_0x5b9e34(0x1c52)][_0x5b9e34(0xbae)]||[{'message':_0x41f763[_0x5b9e34(0x2915)](),'type':'api.condition.update'}];for(let _0x2c656e=0x0;_0x2c656e<_0x41f763[_0x5b9e34(0x1c52)][_0x5b9e34(0xbae)][_0x5b9e34(0x1b9e)];_0x2c656e++){_0x3512ad[_0x5b9e34(0x1bd0)]({'title':_0x41f763[_0x5b9e34(0x1c52)][_0x5b9e34(0xbae)][_0x2c656e][_0x5b9e34(0x2185)],'msg':_0x41f763[_0x5b9e34(0x1c52)][_0x5b9e34(0xbae)][_0x2c656e][_0x5b9e34(0x18ca)]});}}else _0x3512ad[_0x5b9e34(0x1bd0)]({'title':_0x41f763[_0x5b9e34(0x10b3)]?_0x5b9e34(0x575)+_0x41f763['status']+'\x20-\x20'+_0x41f763[_0x5b9e34(0x2115)]:_0x5b9e34(0x20f0),'msg':_0x41f763[_0x5b9e34(0x1c52)]?JSON['stringify'](_0x41f763['data'][_0x5b9e34(0x18ca)]):_0x41f763['toString']()});});}function _0x5d042e(_0x6aa0bb){const _0x298b21=_0xa84558;_0x1e507f[_0x298b21(0xbae)]=[];const _0x57e0f0=_0x26f060[_0x298b21(0x856)]()['title']('Are\x20you\x20sure?')[_0x298b21(0x12b8)](_0x298b21(0x19dd))['ariaLabel'](_0x298b21(0x11a5))['ok']('Delete')[_0x298b21(0x101a)](_0x298b21(0x1dc6))[_0x298b21(0x2283)](_0x6aa0bb);_0x26f060[_0x298b21(0xa60)](_0x57e0f0)['then'](function(){const _0x3a58c2=_0x298b21;_0x224683['condition'][_0x3a58c2(0xabd)]({'id':_0x1e507f[_0x3a58c2(0x2340)]['id']})[_0x3a58c2(0x15e7)][_0x3a58c2(0x64a)](function(){const _0x378cf7=_0x3a58c2;_0x28c606()[_0x378cf7(0x21c7)](_0x1e507f['allconditions'],{'id':_0x1e507f[_0x378cf7(0x2340)]['id']}),_0x3512ad[_0x378cf7(0x1339)]({'title':_0x378cf7(0x3f3),'msg':(_0x1e507f[_0x378cf7(0x2340)][_0x378cf7(0x2494)]||_0x378cf7(0x2340))+_0x378cf7(0x1fa8)}),_0x9c5baa(_0x1e507f[_0x378cf7(0x2340)]);})['catch'](function(_0xedefe9){const _0x514983=_0x3a58c2;if(_0xedefe9['data']&&_0xedefe9['data']['errors']&&_0xedefe9[_0x514983(0x1c52)][_0x514983(0xbae)][_0x514983(0x1b9e)]){_0x1e507f[_0x514983(0xbae)]=_0xedefe9[_0x514983(0x1c52)]['errors']||[{'message':_0xedefe9[_0x514983(0x2915)](),'type':_0x514983(0x13fc)}];for(let _0x15040e=0x0;_0x15040e<_0xedefe9[_0x514983(0x1c52)][_0x514983(0xbae)][_0x514983(0x1b9e)];_0x15040e++){_0x3512ad['error']({'title':_0xedefe9['data'][_0x514983(0xbae)][_0x15040e][_0x514983(0x2185)],'msg':_0xedefe9[_0x514983(0x1c52)][_0x514983(0xbae)][_0x15040e][_0x514983(0x18ca)]});}}else _0x3512ad[_0x514983(0x1bd0)]({'title':_0xedefe9[_0x514983(0x10b3)]?_0x514983(0x575)+_0xedefe9[_0x514983(0x10b3)]+_0x514983(0x21db)+_0xedefe9['statusText']:'api.condition.delete','msg':_0xedefe9[_0x514983(0x1c52)]?JSON[_0x514983(0x2317)](_0xedefe9[_0x514983(0x1c52)][_0x514983(0x18ca)]):_0xedefe9[_0x514983(0x18ca)]||_0xedefe9['toString']()});});},function(){});}function _0x3da7e2(_0x9469e1){return _0x9469e1===null?undefined:new Date(_0x9469e1);}function _0x9c5baa(_0x4f88be){const _0x4f9318=_0xa84558;_0x26f060[_0x4f9318(0x268e)](_0x4f88be);}}const _0x59aab7=_0x4969fc;;const _0x27cbae=_0x2e4a48['p']+'src/js/modules/main/apps/tools/views/triggers/edit/anyconditions/create/dialog.html/dialog.html';;_0x48fdc2[_0x49a1e3(0x1e73)]=['$scope','$q',_0x49a1e3(0x298c),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x680),'api',_0x49a1e3(0xdcf)];function _0x48fdc2(_0x5bf230,_0x5e75e0,_0x5d4e0b,_0xad073f,_0x4505d7,_0x1f3fb4,_0x5f00e6,_0x2f9799,_0x21f1fd){const _0x55af21=_0x49a1e3,_0x32d11e=this;_0x32d11e['currentUser']=_0x21f1fd[_0x55af21(0x808)](),_0x32d11e['trigger']={},_0x32d11e[_0x55af21(0x4ce)]={'count':0x0,'rows':[]},_0x32d11e[_0x55af21(0x26ec)]=[],_0x32d11e[_0x55af21(0x289a)]={'fields':_0x55af21(0xc9e),'limit':0xa,'page':0x1},_0x32d11e[_0x55af21(0xf26)]={'queue':_0x55af21(0x285e),'lastevent':_0x55af21(0x1167),'routeId':_0x55af21(0x2006),'agent':_0x55af21(0x12ad),'account':'Account','interaction':_0x55af21(0xb28),'message':_0x55af21(0x149d)},_0x32d11e[_0x55af21(0x2088)]={'abandoned':_0x55af21(0x2505),'timeout':'Timeout','complete':_0x55af21(0x13d5),'rejected':'Reject','called':_0x55af21(0x2950),'connect':'Answer','nosuchnumber':_0x55af21(0x1b66),'busy':_0x55af21(0x582),'noanswer':_0x55af21(0x2f5),'congestion':_0x55af21(0x17c0),'agentreject':_0x55af21(0x1f27)},_0x32d11e[_0x55af21(0x122a)]={'in':_0x55af21(0x247f),'out':_0x55af21(0x171d),'accept':_0x55af21(0x1893),'reject':'Rejected'},_0x32d11e[_0x55af21(0x2483)]=_0x346e99,_0x32d11e[_0x55af21(0x1339)]=_0x13a816,_0x32d11e[_0x55af21(0xc02)]=_0xe1556b,_0x32d11e['createOrEditTriggerAnyCondition']=_0x42c923,_0x32d11e[_0x55af21(0x700)]=_0x473b6a,_0x32d11e[_0x55af21(0x217e)]=_0x3fadf0,_0x32d11e[_0x55af21(0x2577)]=_0x41f033,_0x32d11e[_0x55af21(0x1ae)]=_0x6ff04e;function _0x346e99(_0x1f2bed,_0x1e50e2){const _0x15f57b=_0x55af21;_0x32d11e[_0x15f57b(0x1e8f)]=_0x1f2bed,_0x32d11e[_0x15f57b(0x402)]=typeof _0x1e50e2!=='undefined'?_0x1e50e2:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x32d11e['query'][_0x15f57b(0x17dc)]=_0x32d11e['trigger']['id'],_0x32d11e[_0x15f57b(0x289a)]['id']=_0x32d11e[_0x15f57b(0x1e8f)]['id'],_0xe1556b();}function _0x27ede9(){const _0x399c7a=_0x55af21,_0x50499a=_0x32d11e[_0x399c7a(0x1e8f)][_0x399c7a(0x2156)]+_0x32d11e[_0x399c7a(0x1e8f)][_0x399c7a(0x2156)]==='chat'?_0x399c7a(0x9d0):_0x399c7a(0x1ad8),_0x1d1aa5=_0x32d11e[_0x399c7a(0x1e8f)][_0x399c7a(0x2156)]+(_0x32d11e['trigger']['channel']===_0x399c7a(0xf52)?_0x399c7a(0x16cc):'Account');let _0x2d286a;switch(_0x32d11e[_0x399c7a(0x1e8f)][_0x399c7a(0x2156)]){case'chat':_0x2d286a=0x1f6;break;case _0x399c7a(0x1d37):_0x2d286a=0x386;break;case _0x399c7a(0xc71):_0x2d286a=0x25a;break;case _0x399c7a(0x28ad):_0x2d286a=0x322;break;case _0x399c7a(0x10aa):_0x2d286a=0x2be;break;case _0x399c7a(0x1a29):_0x2d286a=0x836;break;}if(_0x21f1fd[_0x399c7a(0x12c7)]()){const _0x20698e=_0x32d11e[_0x399c7a(0x1e8f)][_0x399c7a(0x2156)];_0x2f9799[_0x1d1aa5][_0x399c7a(0x896)]({'fields':_0x399c7a(0x1427),'sort':'id','nolimit':_0x399c7a(0x1685)})[_0x399c7a(0x15e7)]['then'](function(_0x38da0e){const _0x2a5a97=_0x399c7a;_0x32d11e[_0x50499a]=_0x38da0e[_0x2a5a97(0x28b8)]||[];})[_0x399c7a(0x20cd)](function(_0x55869d){const _0x16b0a9=_0x399c7a;_0x5f00e6[_0x16b0a9(0x1bd0)]({'title':_0x55869d[_0x16b0a9(0x10b3)]?'API:'+_0x55869d[_0x16b0a9(0x10b3)]+'\x20-\x20'+_0x55869d[_0x16b0a9(0x2115)]:'SYSTEM:GET_'+_0x20698e[_0x16b0a9(0xa3c)]()+_0x20698e===_0x16b0a9(0xf52)?'WEBSITES':'ACCOUNTS','msg':_0x55869d[_0x16b0a9(0x1c52)]?JSON['stringify'](_0x55869d['data']):_0x55869d[_0x16b0a9(0x2915)]()});});}else{const _0x32d79f=_0x32d11e[_0x399c7a(0x1e8f)][_0x399c7a(0x2156)];_0x2f9799[_0x1d1aa5][_0x399c7a(0x896)]({'fields':_0x399c7a(0x1427),'sort':'id','nolimit':_0x399c7a(0x1685)})[_0x399c7a(0x15e7)]['then'](function(_0x52500f){const _0x12239b=_0x399c7a;_0x32d11e[_0x50499a]=_0x52500f[_0x12239b(0x28b8)]||[];})[_0x399c7a(0x64a)](function(){const _0x20ce1f=_0x399c7a;return _0x2f9799[_0x20ce1f(0x16b2)][_0x20ce1f(0x896)]({'userProfileId':_0x32d11e[_0x20ce1f(0x1d3d)][_0x20ce1f(0x21ac)],'sectionId':_0x2d286a})[_0x20ce1f(0x15e7)];})[_0x399c7a(0x64a)](function(_0x48b919){const _0x3dfd83=_0x399c7a,_0x140c4b=_0x48b919&&_0x48b919[_0x3dfd83(0x28b8)]?_0x48b919[_0x3dfd83(0x28b8)][0x0]:null;if(!_0x140c4b){const _0x4917e6=[],_0x2310a1=[];_0x32d11e[_0x3dfd83(0x4ce)][_0x3dfd83(0x28b8)][_0x3dfd83(0x1397)](function(_0x1d7f4c){const _0x4410e9=_0x3dfd83;if(_0x1d7f4c['field']===_0x4410e9(0x3e3)){const _0x29cde9=_0x28c606()[_0x4410e9(0x27bc)](_0x32d11e[_0x50499a],{'id':Number(_0x1d7f4c[_0x4410e9(0x1096)])});_0x2310a1[_0x4410e9(0x1954)](_0x29cde9);}});for(let _0xa0f3d=0x0;_0xa0f3d<_0x32d11e[_0x50499a]['length'];_0xa0f3d++){const _0x4ae67c=_0x28c606()[_0x3dfd83(0x25f8)](_0x2310a1,{'id':_0x32d11e[_0x50499a][_0xa0f3d]['id']});_0x4ae67c&&(_0x32d11e[_0x50499a][_0xa0f3d][_0x3dfd83(0xd4f)]=![],_0x4917e6[_0x3dfd83(0x1954)](_0x32d11e[_0x50499a][_0xa0f3d]));}_0x32d11e[_0x50499a]=_0x4917e6;}else{if(!_0x140c4b[_0x3dfd83(0x11da)])return _0x2f9799['userProfileResource']['get']({'sectionId':_0x140c4b['id']})['$promise'][_0x3dfd83(0x64a)](function(_0x644f52){const _0x567eee=_0x3dfd83,_0x4212c5=_0x28c606()[_0x567eee(0x1de5)](_0x644f52[_0x567eee(0x28b8)],function(_0x3442c7){const _0x19a92e=_0x567eee;return _0x28c606()['find'](_0x32d11e[_0x50499a],{'id':_0x3442c7[_0x19a92e(0x145)]});});let _0xbcfc7c=null;_0xbcfc7c=[],_0x32d11e[_0x567eee(0x4ce)][_0x567eee(0x28b8)]['forEach'](function(_0x5032e9){const _0x151436=_0x567eee;if(_0x5032e9[_0x151436(0xc26)]===_0x151436(0x3e3)){const _0x482786=_0x28c606()[_0x151436(0x27bc)](_0x32d11e[_0x50499a],{'id':Number(_0x5032e9['value'])});_0xbcfc7c['push'](_0x482786);}}),!_0x28c606()[_0x567eee(0x940)](_0xbcfc7c)&&_0xbcfc7c[_0x567eee(0x1397)](function(_0x447627){const _0xc086ad=_0x567eee;if(!_0x28c606()[_0xc086ad(0x25f8)](_0x4212c5,['id',_0x447627['id']])){const _0x2f2825=_0x28c606()[_0xc086ad(0x27bc)](_0x32d11e[_0x50499a],{'id':_0x447627['id']});_0x2f2825['canSelect']=![],_0x4212c5['push'](_0x2f2825);}}),_0x32d11e[_0x50499a]=_0x4212c5;});}})[_0x399c7a(0x20cd)](function(_0x3d6fea){const _0x37de49=_0x399c7a;_0x5f00e6[_0x37de49(0x1bd0)]({'title':_0x3d6fea['status']?_0x37de49(0x575)+_0x3d6fea[_0x37de49(0x10b3)]+_0x37de49(0x21db)+_0x3d6fea[_0x37de49(0x2115)]:_0x37de49(0x96b)+_0x32d79f[_0x37de49(0xa3c)]()+_0x32d79f===_0x37de49(0xf52)?_0x37de49(0x1220):'ACCOUNTS','msg':_0x3d6fea[_0x37de49(0x1c52)]?JSON[_0x37de49(0x2317)](_0x3d6fea[_0x37de49(0x1c52)]):_0x3d6fea[_0x37de49(0x2915)]()});});}}function _0x3e973c(){const _0x4febf9=_0x55af21,_0xb59659=[{'id':0x191,'type':'inbound'},{'id':0x5dd,'type':_0x4febf9(0xbce)}];let _0x924572=null;_0x21f1fd[_0x4febf9(0x12c7)]()?_0x2f9799[_0x4febf9(0x178b)][_0x4febf9(0x896)]({'fields':'id,name,type','sort':_0x4febf9(0x2494),'nolimit':_0x4febf9(0x1685)})['$promise']['then'](function(_0x3f4982){const _0x242c7d=_0x4febf9;_0x32d11e[_0x242c7d(0x1c06)]=_0x3f4982[_0x242c7d(0x28b8)]||[];})[_0x4febf9(0x20cd)](function(_0x53a139){const _0x39a746=_0x4febf9;_0x5f00e6['error']({'title':_0x53a139['status']?'API:'+_0x53a139[_0x39a746(0x10b3)]+_0x39a746(0x21db)+_0x53a139[_0x39a746(0x2115)]:_0x39a746(0x2719),'msg':_0x53a139['data']?JSON[_0x39a746(0x2317)](_0x53a139[_0x39a746(0x1c52)]):_0x53a139[_0x39a746(0x2915)]()});}):_0x2f9799[_0x4febf9(0x178b)][_0x4febf9(0x896)]({'fields':_0x4febf9(0x2ba),'sort':_0x4febf9(0x2494),'nolimit':'true'})[_0x4febf9(0x15e7)][_0x4febf9(0x64a)](function(_0x1d8787){const _0x5db839=_0x4febf9;_0x924572=_0x1d8787[_0x5db839(0x28b8)]||[];})['then'](function(){const _0x14a51a=_0x4febf9,_0x31e1a5=[];for(let _0x8efc90=0x0;_0x8efc90<_0xb59659['length'];_0x8efc90++){_0x31e1a5[_0x14a51a(0x1954)](_0x2f9799[_0x14a51a(0x16b2)]['get']({'userProfileId':_0x32d11e[_0x14a51a(0x1d3d)][_0x14a51a(0x21ac)],'sectionId':_0xb59659[_0x8efc90]['id']})['$promise']);}return _0x5e75e0[_0x14a51a(0x2705)](_0x31e1a5);})['then'](function(_0x8ce7b2){const _0x32da3e=_0x4febf9,_0x16ab0e=_0x28c606()['map'](_0x8ce7b2,function(_0x39efd3){const _0x524e68=a0_0x4127;return _0x39efd3&&_0x39efd3[_0x524e68(0x28b8)]?_0x39efd3[_0x524e68(0x28b8)][0x0]:null;}),_0x16dd0b=[];for(let _0x1362ca=0x0;_0x1362ca<_0xb59659[_0x32da3e(0x1b9e)];_0x1362ca++){const _0x4930af=_0x28c606()[_0x32da3e(0x27bc)](_0x16ab0e,[_0x32da3e(0xf7b),_0xb59659[_0x1362ca]['id']]);if(_0x4930af){if(!_0x4930af[_0x32da3e(0x11da)])_0x16dd0b['push'](_0x2f9799[_0x32da3e(0x1617)][_0x32da3e(0x896)]({'sectionId':_0x4930af['id']})[_0x32da3e(0x15e7)]);else{const _0x2fae03=[];_0x924572['forEach'](function(_0x5d9351){const _0x220269=_0x32da3e;_0x5d9351[_0x220269(0x2185)]===_0xb59659[_0x1362ca][_0x220269(0x2185)]&&_0x2fae03[_0x220269(0x1954)](_0x5d9351);}),_0x16dd0b[_0x32da3e(0x1954)]({'rows':_0x2fae03,'count':_0x2fae03[_0x32da3e(0x1b9e)]});}}}return _0x5e75e0['all'](_0x16dd0b);})[_0x4febf9(0x64a)](function(_0x42b845){const _0x969e43=_0x4febf9,_0x3583d1=[],_0x52aa58=[];_0x32d11e['triggerAnyConditions']['rows'][_0x969e43(0x1397)](function(_0x4047fc){const _0x1b4f98=_0x969e43;if(_0x4047fc[_0x1b4f98(0xc26)]===_0x1b4f98(0x1e4e)){const _0x4d3ae6=_0x28c606()[_0x1b4f98(0x27bc)](_0x924572,{'name':_0x4047fc[_0x1b4f98(0x1096)]});_0x52aa58['push'](_0x4d3ae6);}});for(let _0x3905de=0x0;_0x3905de<_0x42b845['length'];_0x3905de++){const _0x3ea1ac=_0x42b845[_0x3905de][_0x969e43(0x28b8)]||[];_0x3ea1ac[_0x969e43(0x1397)](function(_0x20126f){_0x3583d1['push'](_0x20126f);});}!_0x28c606()[_0x969e43(0x940)](_0x52aa58)&&_0x52aa58[_0x969e43(0x1397)](function(_0x144fde){const _0x37c0fa=_0x969e43;if(!_0x28c606()[_0x37c0fa(0x25f8)](_0x3583d1,[_0x37c0fa(0x145),_0x144fde['id']])){const _0x48809d=_0x28c606()['find'](_0x924572,{'id':_0x144fde['id']});_0x48809d[_0x37c0fa(0xd4f)]=![],_0x3583d1[_0x37c0fa(0x1954)](_0x48809d);}}),_0x32d11e[_0x969e43(0x1c06)]=_0x3583d1;})[_0x4febf9(0x20cd)](function(_0x4938c2){const _0x149a34=_0x4febf9;_0x5f00e6[_0x149a34(0x1bd0)]({'title':_0x4938c2[_0x149a34(0x10b3)]?_0x149a34(0x575)+_0x4938c2[_0x149a34(0x10b3)]+_0x149a34(0x21db)+_0x4938c2[_0x149a34(0x2115)]:_0x149a34(0xe03),'msg':_0x4938c2[_0x149a34(0x1c52)]?JSON[_0x149a34(0x2317)](_0x4938c2['data']):_0x4938c2[_0x149a34(0x2915)]()});});}function _0x1aa526(){const _0x22db85=_0x55af21;_0x21f1fd[_0x22db85(0x12c7)]()?_0x2f9799['voiceExtension'][_0x22db85(0x896)]({'fields':_0x22db85(0x105b),'type':_0x22db85(0xbce),'VoiceExtensionId':_0x22db85(0x8f1),'nolimit':_0x22db85(0x1685)})[_0x22db85(0x15e7)][_0x22db85(0x64a)](function(_0x57df30){const _0x4eee67=_0x22db85;_0x32d11e[_0x4eee67(0x20a0)]=_0x57df30['rows']||[];})[_0x22db85(0x20cd)](function(_0x271547){const _0x526e87=_0x22db85;_0x5f00e6[_0x526e87(0x1bd0)]({'title':_0x271547[_0x526e87(0x10b3)]?'API:'+_0x271547['status']+_0x526e87(0x21db)+_0x271547['statusText']:_0x526e87(0x76f),'msg':_0x271547[_0x526e87(0x1c52)]?JSON['stringify'](_0x271547[_0x526e87(0x1c52)]):_0x271547['toString']()});}):_0x2f9799[_0x22db85(0x1438)][_0x22db85(0x896)]({'fields':_0x22db85(0x105b),'type':_0x22db85(0xbce),'VoiceExtensionId':_0x22db85(0x8f1),'nolimit':_0x22db85(0x1685)})[_0x22db85(0x15e7)][_0x22db85(0x64a)](function(_0x283ec5){const _0x49247d=_0x22db85;_0x32d11e[_0x49247d(0x20a0)]=_0x283ec5[_0x49247d(0x28b8)]||[];})['then'](function(){const _0x2826cd=_0x22db85;return _0x2f9799[_0x2826cd(0x16b2)][_0x2826cd(0x896)]({'userProfileId':_0x32d11e['currentUser'][_0x2826cd(0x21ac)],'sectionId':0x193})[_0x2826cd(0x15e7)];})[_0x22db85(0x64a)](function(_0x11a50b){const _0x44011d=_0x22db85,_0x1814e2=_0x11a50b&&_0x11a50b[_0x44011d(0x28b8)]?_0x11a50b[_0x44011d(0x28b8)][0x0]:null;if(!_0x1814e2){const _0xdc1bc2=[],_0x5dee1a=[];_0x32d11e[_0x44011d(0x4ce)][_0x44011d(0x28b8)][_0x44011d(0x1397)](function(_0x2923ac){const _0x2d65e5=_0x44011d;if(_0x2923ac[_0x2d65e5(0xc26)]===_0x2d65e5(0xbf7)){const _0x109918=_0x28c606()[_0x2d65e5(0x27bc)](_0x32d11e[_0x2d65e5(0x20a0)],{'id':Number(_0x2923ac[_0x2d65e5(0x1096)])});_0x5dee1a[_0x2d65e5(0x1954)](_0x109918);}});for(let _0x38616b=0x0;_0x38616b<_0x32d11e[_0x44011d(0x20a0)][_0x44011d(0x1b9e)];_0x38616b++){const _0x5909fe=_0x28c606()['some'](_0x5dee1a,{'id':_0x32d11e[_0x44011d(0x20a0)][_0x38616b]['id']});_0x5909fe&&(_0x32d11e[_0x44011d(0x20a0)][_0x38616b][_0x44011d(0xd4f)]=![],_0xdc1bc2[_0x44011d(0x1954)](_0x32d11e[_0x44011d(0x20a0)][_0x38616b]));}_0x32d11e[_0x44011d(0x20a0)]=_0xdc1bc2;}else{if(!_0x1814e2[_0x44011d(0x11da)])return _0x2f9799[_0x44011d(0x1617)][_0x44011d(0x896)]({'sectionId':_0x1814e2['id']})[_0x44011d(0x15e7)][_0x44011d(0x64a)](function(_0x40bf9a){const _0x965e79=_0x44011d,_0x1eec75=_0x28c606()[_0x965e79(0x1de5)](_0x40bf9a[_0x965e79(0x28b8)],function(_0xb99e1){const _0x5d20c5=_0x965e79;return _0x28c606()[_0x5d20c5(0x27bc)](_0x32d11e[_0x5d20c5(0x20a0)],{'id':_0xb99e1['resourceId']});});let _0x3da7a2=null;_0x3da7a2=[],_0x32d11e['triggerAnyConditions'][_0x965e79(0x28b8)][_0x965e79(0x1397)](function(_0x3a3d5a){const _0x1a1109=_0x965e79;if(_0x3a3d5a['field']==='routeId'){const _0xe79cbf=_0x28c606()[_0x1a1109(0x27bc)](_0x32d11e['outboundRoutes'],{'id':Number(_0x3a3d5a[_0x1a1109(0x1096)])});_0x3da7a2[_0x1a1109(0x1954)](_0xe79cbf);}}),!_0x28c606()[_0x965e79(0x940)](_0x3da7a2)&&_0x3da7a2[_0x965e79(0x1397)](function(_0x27a928){const _0x25d670=_0x965e79;if(!_0x28c606()['some'](_0x1eec75,['id',_0x27a928['id']])){const _0x5d2a68=_0x28c606()[_0x25d670(0x27bc)](_0x32d11e[_0x25d670(0x20a0)],{'id':_0x27a928['id']});_0x5d2a68[_0x25d670(0xd4f)]=![],_0x1eec75[_0x25d670(0x1954)](_0x5d2a68);}}),_0x32d11e[_0x965e79(0x20a0)]=_0x1eec75;});}})[_0x22db85(0x20cd)](function(_0x30f61e){const _0x125698=_0x22db85;_0x5f00e6[_0x125698(0x1bd0)]({'title':_0x30f61e[_0x125698(0x10b3)]?_0x125698(0x575)+_0x30f61e['status']+_0x125698(0x21db)+_0x30f61e['statusText']:_0x125698(0x76f),'msg':_0x30f61e['data']?JSON[_0x125698(0x2317)](_0x30f61e[_0x125698(0x1c52)]):_0x30f61e[_0x125698(0x2915)]()});});}function _0x7fab04(){const _0x17b8e1=_0x55af21;_0x21f1fd[_0x17b8e1(0x12c7)]()?_0x2f9799[_0x17b8e1(0x2e8)][_0x17b8e1(0x896)]({'fields':_0x17b8e1(0xd53),'sort':_0x17b8e1(0x2494),'role':'agent','nolimit':'true'})[_0x17b8e1(0x15e7)][_0x17b8e1(0x64a)](function(_0x44cc88){const _0x4d02ec=_0x17b8e1;_0x32d11e[_0x4d02ec(0xd77)]=_0x44cc88[_0x4d02ec(0x28b8)]||[];})['catch'](function(_0x2020f9){const _0xce898d=_0x17b8e1;_0x5f00e6[_0xce898d(0x1bd0)]({'title':_0x2020f9[_0xce898d(0x10b3)]?_0xce898d(0x575)+_0x2020f9[_0xce898d(0x10b3)]+_0xce898d(0x21db)+_0x2020f9[_0xce898d(0x2115)]:_0xce898d(0x554),'msg':_0x2020f9[_0xce898d(0x1c52)]?JSON[_0xce898d(0x2317)](_0x2020f9[_0xce898d(0x1c52)]):_0x2020f9[_0xce898d(0x2915)]()});}):_0x2f9799[_0x17b8e1(0x2e8)]['get']({'fields':_0x17b8e1(0xd53),'sort':_0x17b8e1(0x2494),'role':_0x17b8e1(0x11ae),'nolimit':_0x17b8e1(0x1685)})[_0x17b8e1(0x15e7)]['then'](function(_0x5c6176){const _0x26dece=_0x17b8e1;_0x32d11e[_0x26dece(0xd77)]=_0x5c6176['rows']||[];})['then'](function(){const _0x4448e1=_0x17b8e1;return _0x2f9799[_0x4448e1(0x16b2)]['get']({'userProfileId':_0x32d11e[_0x4448e1(0x1d3d)][_0x4448e1(0x21ac)],'sectionId':0xca})[_0x4448e1(0x15e7)];})[_0x17b8e1(0x64a)](function(_0x97761b){const _0x2b3ff6=_0x17b8e1,_0xbdeabc=_0x97761b&&_0x97761b[_0x2b3ff6(0x28b8)]?_0x97761b[_0x2b3ff6(0x28b8)][0x0]:null;if(!_0xbdeabc){const _0x2e4d81=[],_0xb73c2e=[];_0x32d11e[_0x2b3ff6(0x4ce)]['rows']['forEach'](function(_0x19f5a1){const _0xc4be48=_0x2b3ff6;if(_0x19f5a1['field']==='agent'){const _0x28ea47=_0x28c606()[_0xc4be48(0x27bc)](_0x32d11e['agents'],{'name':_0x19f5a1['value']});_0xb73c2e[_0xc4be48(0x1954)](_0x28ea47);}});for(let _0x3d23b1=0x0;_0x3d23b1<_0x32d11e[_0x2b3ff6(0xd77)][_0x2b3ff6(0x1b9e)];_0x3d23b1++){const _0xb53104=_0x28c606()[_0x2b3ff6(0x25f8)](_0xb73c2e,{'id':_0x32d11e[_0x2b3ff6(0xd77)][_0x3d23b1]['id']});_0xb53104&&(_0x32d11e[_0x2b3ff6(0xd77)][_0x3d23b1][_0x2b3ff6(0xd4f)]=![],_0x2e4d81[_0x2b3ff6(0x1954)](_0x32d11e[_0x2b3ff6(0xd77)][_0x3d23b1]));}_0x32d11e[_0x2b3ff6(0xd77)]=_0x2e4d81;}else{if(!_0xbdeabc[_0x2b3ff6(0x11da)])return _0x2f9799[_0x2b3ff6(0x1617)]['get']({'sectionId':_0xbdeabc['id']})[_0x2b3ff6(0x15e7)][_0x2b3ff6(0x64a)](function(_0x39c203){const _0x4845db=_0x2b3ff6,_0x40c4e0=_0x28c606()[_0x4845db(0x1de5)](_0x39c203['rows'],function(_0x5513b5){const _0x3e0e05=_0x4845db;return _0x28c606()[_0x3e0e05(0x27bc)](_0x32d11e[_0x3e0e05(0xd77)],{'id':_0x5513b5[_0x3e0e05(0x145)]});});let _0x494170=null;_0x494170=[],_0x32d11e[_0x4845db(0x4ce)][_0x4845db(0x28b8)][_0x4845db(0x1397)](function(_0x21d361){const _0x1811fb=_0x4845db;if(_0x21d361[_0x1811fb(0xc26)]===_0x1811fb(0x11ae)){const _0x14e84d=_0x28c606()['find'](_0x32d11e[_0x1811fb(0xd77)],{'name':_0x21d361[_0x1811fb(0x1096)]});_0x494170[_0x1811fb(0x1954)](_0x14e84d);}}),!_0x28c606()[_0x4845db(0x940)](_0x494170)&&_0x494170[_0x4845db(0x1397)](function(_0x22cee8){const _0x7c34e9=_0x4845db;if(!_0x28c606()[_0x7c34e9(0x25f8)](_0x40c4e0,['id',_0x22cee8['id']])){const _0x262cd5=_0x28c606()[_0x7c34e9(0x27bc)](_0x32d11e[_0x7c34e9(0xd77)],{'id':_0x22cee8['id']});_0x262cd5['canSelect']=![],_0x40c4e0[_0x7c34e9(0x1954)](_0x262cd5);}}),_0x32d11e['agents']=_0x40c4e0;});}})[_0x17b8e1(0x20cd)](function(_0x4266db){const _0x483948=_0x17b8e1;_0x5f00e6[_0x483948(0x1bd0)]({'title':_0x4266db[_0x483948(0x10b3)]?'API:'+_0x4266db[_0x483948(0x10b3)]+'\x20-\x20'+_0x4266db[_0x483948(0x2115)]:_0x483948(0x554),'msg':_0x4266db[_0x483948(0x1c52)]?JSON['stringify'](_0x4266db['data']):_0x4266db[_0x483948(0x2915)]()});});}function _0x108c3c(){const _0x2875a9=_0x55af21;if(_0x32d11e['trigger']['channel']===_0x2875a9(0x227c)){if(_0x28c606()[_0x2875a9(0x25f8)](_0x32d11e[_0x2875a9(0x4ce)]['rows'],[_0x2875a9(0xc26),_0x2875a9(0x1e4e)])){if(!_0x32d11e[_0x2875a9(0x1c06)])_0x3e973c();}if(_0x28c606()[_0x2875a9(0x25f8)](_0x32d11e[_0x2875a9(0x4ce)][_0x2875a9(0x28b8)],['field',_0x2875a9(0xbf7)])){if(!_0x32d11e[_0x2875a9(0x20a0)])_0x1aa526();}if(_0x28c606()[_0x2875a9(0x25f8)](_0x32d11e[_0x2875a9(0x4ce)][_0x2875a9(0x28b8)],['field',_0x2875a9(0x11ae)])){if(!_0x32d11e['agents'])_0x7fab04();}}else _0x27ede9();}function _0x13a816(_0x465766){const _0x478157=_0x55af21;_0x32d11e[_0x478157(0x4ce)]=_0x465766||{'count':0x0,'rows':[]},_0x108c3c();}function _0xe1556b(){const _0x31e92a=_0x55af21;_0x32d11e['query'][_0x31e92a(0x24f9)]=(_0x32d11e['query'][_0x31e92a(0xc72)]-0x1)*_0x32d11e[_0x31e92a(0x289a)][_0x31e92a(0x25bb)],_0x32d11e['promise']=_0x2f9799[_0x31e92a(0x1e8f)][_0x31e92a(0x1288)](_0x32d11e[_0x31e92a(0x289a)],_0x13a816)[_0x31e92a(0x15e7)];}function _0x42c923(_0x7832c7,_0x48cc17){const _0xadbbdd=_0x55af21;_0x4505d7['show']({'controller':_0xadbbdd(0x11ff),'controllerAs':'vm','templateUrl':_0x27cbae,'parent':angular[_0xadbbdd(0x1f81)](_0x1f3fb4[_0xadbbdd(0xb49)]),'targetEvent':_0x7832c7,'clickOutsideToClose':!![],'locals':{'trigger':_0x32d11e[_0xadbbdd(0x1e8f)],'anyCondition':_0x48cc17,'anyConditions':_0x32d11e[_0xadbbdd(0x4ce)][_0xadbbdd(0x28b8)],'license':null,'setting':null,'crudPermissions':_0x32d11e[_0xadbbdd(0x402)]}})[_0xadbbdd(0x64a)](function(_0xd8fe1a){const _0x3de6e6=_0xadbbdd;_0xd8fe1a&&(_0x32d11e[_0x3de6e6(0x4ce)]={'count':_0xd8fe1a[_0x3de6e6(0x1b9e)],'rows':_0xd8fe1a},_0x108c3c());});}function _0x3fadf0(_0x3a630c,_0x1e8dfe){const _0x37a9f9=_0x55af21,_0x577d03=_0x4505d7['confirm']()['title'](_0x5d4e0b[_0x37a9f9(0x2292)](_0x37a9f9(0xeca)))[_0x37a9f9(0x213e)](_0x37a9f9(0x21fc))[_0x37a9f9(0x2283)](_0x1e8dfe)['ok']('OK')[_0x37a9f9(0x101a)](_0x5d4e0b[_0x37a9f9(0x2292)](_0x37a9f9(0x4f5)));_0x4505d7[_0x37a9f9(0xa60)](_0x577d03)['then'](function(){_0x41f033(_0x3a630c,!![]);});}function _0x41f033(_0x4c5578,_0x34de6e){const _0x323000=_0x55af21;_0x2f9799[_0x323000(0xeea)]['delete']({'id':_0x4c5578['id']})['$promise']['then'](function(){const _0x2d8f31=_0x323000;_0xe1556b(),_0x34de6e&&_0x5f00e6['success']({'title':_0x5d4e0b[_0x2d8f31(0x2292)](_0x2d8f31(0x1867))});})[_0x323000(0x20cd)](function(_0x24ea5f){const _0x80cb8f=_0x323000;if(_0x24ea5f[_0x80cb8f(0x1c52)]&&_0x24ea5f[_0x80cb8f(0x1c52)][_0x80cb8f(0xbae)]&&_0x24ea5f[_0x80cb8f(0x1c52)][_0x80cb8f(0xbae)][_0x80cb8f(0x1b9e)]){_0x32d11e[_0x80cb8f(0xbae)]=_0x24ea5f['data'][_0x80cb8f(0xbae)]||[{'message':_0x24ea5f[_0x80cb8f(0x2915)](),'type':_0x80cb8f(0x1abd)}];for(let _0xb40d13=0x0;_0xb40d13<_0x24ea5f[_0x80cb8f(0x1c52)]['errors'][_0x80cb8f(0x1b9e)];_0xb40d13++){_0x5f00e6[_0x80cb8f(0x1bd0)]({'title':_0x24ea5f['data']['errors'][_0xb40d13][_0x80cb8f(0x2185)],'msg':_0x24ea5f[_0x80cb8f(0x1c52)][_0x80cb8f(0xbae)][_0xb40d13][_0x80cb8f(0x18ca)]});}}else _0x5f00e6[_0x80cb8f(0x1bd0)]({'title':_0x24ea5f[_0x80cb8f(0x10b3)]?_0x80cb8f(0x575)+_0x24ea5f[_0x80cb8f(0x10b3)]+_0x80cb8f(0x21db)+_0x24ea5f[_0x80cb8f(0x2115)]:_0x80cb8f(0x1abd),'msg':_0x24ea5f[_0x80cb8f(0x1c52)]?JSON[_0x80cb8f(0x2317)](_0x24ea5f[_0x80cb8f(0x1c52)]['message']):_0x24ea5f[_0x80cb8f(0x18ca)]||_0x24ea5f[_0x80cb8f(0x2915)]()});});}function _0x473b6a(){const _0x36777b=_0x55af21,_0x8fc889=angular[_0x36777b(0x289e)](_0x32d11e[_0x36777b(0x26ec)]);return _0x32d11e[_0x36777b(0x26ec)]=[],_0x8fc889;}function _0x6ff04e(_0x5e1e0e){const _0x499057=_0x55af21,_0x4b79d9=_0x4505d7[_0x499057(0x856)]()[_0x499057(0x2021)](_0x5d4e0b['instant'](_0x499057(0x706)))[_0x499057(0x12b8)](_0x5d4e0b[_0x499057(0x2292)](_0x499057(0x226f),{'total':_0x32d11e['selectedTriggerAnyConditions'][_0x499057(0x1b9e)]}))['ariaLabel']('Delete\x20conditions')['targetEvent'](_0x5e1e0e)['ok']('OK')[_0x499057(0x101a)](_0x5d4e0b[_0x499057(0x2292)](_0x499057(0x4f5)));_0x4505d7[_0x499057(0xa60)](_0x4b79d9)['then'](function(){const _0x4596cf=_0x499057;_0x32d11e['selectedTriggerAnyConditions'][_0x4596cf(0x1397)](function(_0x345134){_0x41f033(_0x345134);}),_0x32d11e['selectedTriggerAnyConditions']=[],_0x5f00e6[_0x4596cf(0x1339)]({'title':_0x5d4e0b[_0x4596cf(0x2292)]('TOOLS.NOTIFICATIONS.CONDITIONS_DELETED_SUCCESS_TITLE')});});}let _0x38124f=!![],_0x40f04f=0x1;_0x5bf230[_0x55af21(0xc62)]('vm_dc.query.filter',function(_0x274f8c,_0xa64bdb){const _0x229654=_0x55af21;_0x38124f?_0xad073f(function(){_0x38124f=![];}):(!_0xa64bdb&&(_0x40f04f=_0x32d11e['query'][_0x229654(0xc72)]),_0x274f8c!==_0xa64bdb&&(_0x32d11e['query'][_0x229654(0xc72)]=0x1),!_0x274f8c&&(_0x32d11e['query'][_0x229654(0xc72)]=_0x40f04f),_0xe1556b());});}const _0x411859=_0x48fdc2;;_0x2a0b99['$inject']=[_0x49a1e3(0x77f),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x271a),_0x49a1e3(0x2340),_0x49a1e3(0x1e8f),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x2a0b99(_0x108173,_0x5a5b44,_0x56cef5,_0x24dea8,_0x4ea9f0,_0x1becd8,_0x9c55ad,_0x3b5ad0,_0x182dc4,_0x5eb99f,_0x2f014b,_0x570d48,_0xc806d7){const _0x505d67=_0x49a1e3,_0x1a32c9=this;_0x1a32c9['currentUser']=_0x5eb99f[_0x505d67(0x808)](),_0x1a32c9[_0x505d67(0x2340)]=angular[_0x505d67(0x289e)](_0x9c55ad),_0x1a32c9[_0x505d67(0x271a)]=angular[_0x505d67(0x289e)](_0x1becd8),_0x1a32c9[_0x505d67(0x28d6)]=_0x570d48,_0x1a32c9[_0x505d67(0x1947)]=_0x2f014b,_0x1a32c9[_0x505d67(0x402)]=_0xc806d7,_0x1a32c9[_0x505d67(0x6c2)]={},_0x1a32c9[_0x505d67(0xc5e)]=![],_0x1a32c9['errors']=[],_0x1a32c9[_0x505d67(0x1e8f)]=angular['copy'](_0x3b5ad0);!_0x1a32c9[_0x505d67(0x2340)]?(_0x1a32c9[_0x505d67(0x2340)]={'operator':_0x505d67(0x1a61)},_0x1a32c9[_0x505d67(0xc5e)]=!![]):_0x3c197a();_0x1a32c9['allCondition'][_0x505d67(0x76b)]=_0x108173['params']['id']||undefined,_0x1a32c9[_0x505d67(0x2088)]=[{'name':'Abandon','value':_0x505d67(0x10f0)},{'name':_0x505d67(0x66e),'value':_0x505d67(0x16d)},{'name':_0x505d67(0x13d5),'value':'complete'},{'name':'Reject','value':_0x505d67(0x515)},{'name':'Ring','value':'called'},{'name':_0x505d67(0x1150),'value':_0x505d67(0x25fa)},{'name':'NoSuchNumber','value':_0x505d67(0x6ae)},{'name':_0x505d67(0x582),'value':'busy'},{'name':_0x505d67(0x2f5),'value':_0x505d67(0x23b4)},{'name':'Congestion','value':_0x505d67(0x1c00)},{'name':'AgentReject','value':_0x505d67(0x1c27)}],_0x1a32c9[_0x505d67(0x348)]=_0x79b3e8,_0x1a32c9[_0x505d67(0x171e)]=_0x36b5e5,_0x1a32c9['saveAllCondition']=_0x104043,_0x1a32c9[_0x505d67(0x104b)]=_0x5e9e48,_0x1a32c9[_0x505d67(0x16cb)]=_0x259f24;function _0x212bb1(){const _0x551e5f=_0x505d67,_0x4d0b5a=[{'id':0x191,'type':_0x551e5f(0x12a4)},{'id':0x5dd,'type':_0x551e5f(0xbce)}];let _0x159db1=null;_0x5eb99f[_0x551e5f(0x12c7)]()?_0x182dc4['voiceQueue'][_0x551e5f(0x896)]({'fields':_0x551e5f(0x2ba),'sort':_0x551e5f(0x2494),'nolimit':_0x551e5f(0x1685)})[_0x551e5f(0x15e7)][_0x551e5f(0x64a)](function(_0x425d7b){const _0x3b8b09=_0x551e5f;_0x1a32c9[_0x3b8b09(0x1c06)]=_0x425d7b[_0x3b8b09(0x28b8)]||[];})[_0x551e5f(0x20cd)](function(_0x8d1bb5){const _0x4ccabd=_0x551e5f;_0x4ea9f0[_0x4ccabd(0x1bd0)]({'title':_0x8d1bb5[_0x4ccabd(0x10b3)]?'API:'+_0x8d1bb5[_0x4ccabd(0x10b3)]+_0x4ccabd(0x21db)+_0x8d1bb5[_0x4ccabd(0x2115)]:_0x4ccabd(0x2719),'msg':_0x8d1bb5['data']?JSON[_0x4ccabd(0x2317)](_0x8d1bb5['data']):_0x8d1bb5[_0x4ccabd(0x2915)]()});}):_0x182dc4[_0x551e5f(0x178b)][_0x551e5f(0x896)]({'fields':_0x551e5f(0x2ba),'sort':_0x551e5f(0x2494),'nolimit':'true'})[_0x551e5f(0x15e7)]['then'](function(_0x16acd9){const _0x5c4b69=_0x551e5f;_0x159db1=_0x16acd9[_0x5c4b69(0x28b8)]||[];})['then'](function(){const _0x1e2bc5=_0x551e5f,_0x1a6eb6=[];for(let _0x2c70d2=0x0;_0x2c70d2<_0x4d0b5a[_0x1e2bc5(0x1b9e)];_0x2c70d2++){_0x1a6eb6[_0x1e2bc5(0x1954)](_0x182dc4[_0x1e2bc5(0x16b2)][_0x1e2bc5(0x896)]({'userProfileId':_0x1a32c9[_0x1e2bc5(0x1d3d)][_0x1e2bc5(0x21ac)],'sectionId':_0x4d0b5a[_0x2c70d2]['id']})[_0x1e2bc5(0x15e7)]);}return _0x56cef5[_0x1e2bc5(0x2705)](_0x1a6eb6);})[_0x551e5f(0x64a)](function(_0x4e174b){const _0x5911c8=_0x551e5f,_0x196aaf=_0x28c606()['map'](_0x4e174b,function(_0x5089e7){const _0x4c44b7=a0_0x4127;return _0x5089e7&&_0x5089e7[_0x4c44b7(0x28b8)]?_0x5089e7['rows'][0x0]:null;}),_0x221075=[];for(let _0x31feba=0x0;_0x31feba<_0x4d0b5a[_0x5911c8(0x1b9e)];_0x31feba++){const _0x4bcfb2=_0x28c606()[_0x5911c8(0x27bc)](_0x196aaf,['sectionId',_0x4d0b5a[_0x31feba]['id']]);if(_0x4bcfb2){if(!_0x4bcfb2[_0x5911c8(0x11da)])_0x221075[_0x5911c8(0x1954)](_0x182dc4[_0x5911c8(0x1617)]['get']({'sectionId':_0x4bcfb2['id']})['$promise']);else{const _0x1fadcf=[];_0x159db1[_0x5911c8(0x1397)](function(_0x5d4f68){const _0x24c042=_0x5911c8;_0x5d4f68['type']===_0x4d0b5a[_0x31feba][_0x24c042(0x2185)]&&_0x1fadcf[_0x24c042(0x1954)](_0x5d4f68);}),_0x221075['push']({'rows':_0x1fadcf,'count':_0x1fadcf[_0x5911c8(0x1b9e)]});}}}return _0x56cef5['all'](_0x221075);})['then'](function(_0x444091){const _0x57d469=_0x551e5f,_0x119d73=[],_0x5e7a33=[];_0x1a32c9[_0x57d469(0x2399)][_0x57d469(0x28b8)][_0x57d469(0x1397)](function(_0x9ca8c8){const _0x186fcb=_0x57d469;if(_0x9ca8c8[_0x186fcb(0xc26)]===_0x186fcb(0x1e4e)){const _0x198f0c=_0x28c606()['find'](_0x159db1,{'name':_0x9ca8c8['value']});_0x5e7a33[_0x186fcb(0x1954)](_0x198f0c);}});for(let _0x5a4af5=0x0;_0x5a4af5<_0x444091[_0x57d469(0x1b9e)];_0x5a4af5++){const _0x160975=_0x444091[_0x5a4af5][_0x57d469(0x28b8)]||[];_0x160975['forEach'](function(_0xb7873e){const _0x4071ad=_0x57d469;_0x119d73[_0x4071ad(0x1954)](_0xb7873e);});}!_0x28c606()[_0x57d469(0x940)](_0x5e7a33)&&_0x5e7a33['forEach'](function(_0x330406){const _0x262f3e=_0x57d469;if(!_0x28c606()[_0x262f3e(0x25f8)](_0x119d73,[_0x262f3e(0x145),_0x330406['id']])){const _0x404763=_0x28c606()[_0x262f3e(0x27bc)](_0x159db1,{'id':_0x330406['id']});_0x404763[_0x262f3e(0xd4f)]=![],_0x119d73[_0x262f3e(0x1954)](_0x404763);}}),_0x1a32c9[_0x57d469(0x1c06)]=_0x119d73;})['catch'](function(_0x2b732d){const _0x43b02d=_0x551e5f;_0x4ea9f0[_0x43b02d(0x1bd0)]({'title':_0x2b732d[_0x43b02d(0x10b3)]?_0x43b02d(0x575)+_0x2b732d[_0x43b02d(0x10b3)]+_0x43b02d(0x21db)+_0x2b732d[_0x43b02d(0x2115)]:_0x43b02d(0xe03),'msg':_0x2b732d[_0x43b02d(0x1c52)]?JSON[_0x43b02d(0x2317)](_0x2b732d[_0x43b02d(0x1c52)]):_0x2b732d[_0x43b02d(0x2915)]()});});}function _0x4059da(){const _0x56dad7=_0x505d67;_0x5eb99f[_0x56dad7(0x12c7)]()?_0x182dc4[_0x56dad7(0x1438)][_0x56dad7(0x896)]({'fields':_0x56dad7(0x105b),'type':_0x56dad7(0xbce),'VoiceExtensionId':_0x56dad7(0x8f1),'nolimit':_0x56dad7(0x1685)})[_0x56dad7(0x15e7)][_0x56dad7(0x64a)](function(_0x4b2add){const _0x4c57dc=_0x56dad7;_0x1a32c9[_0x4c57dc(0x20a0)]=_0x4b2add['rows']||[];})['catch'](function(_0x1f3597){const _0x5ea656=_0x56dad7;_0x4ea9f0[_0x5ea656(0x1bd0)]({'title':_0x1f3597['status']?_0x5ea656(0x575)+_0x1f3597[_0x5ea656(0x10b3)]+_0x5ea656(0x21db)+_0x1f3597[_0x5ea656(0x2115)]:_0x5ea656(0x76f),'msg':_0x1f3597[_0x5ea656(0x1c52)]?JSON[_0x5ea656(0x2317)](_0x1f3597[_0x5ea656(0x1c52)]):_0x1f3597[_0x5ea656(0x2915)]()});}):_0x182dc4[_0x56dad7(0x1438)][_0x56dad7(0x896)]({'fields':'id,exten','type':'outbound','VoiceExtensionId':_0x56dad7(0x8f1),'nolimit':_0x56dad7(0x1685)})[_0x56dad7(0x15e7)]['then'](function(_0x36725e){const _0x329b7d=_0x56dad7;_0x1a32c9[_0x329b7d(0x20a0)]=_0x36725e[_0x329b7d(0x28b8)]||[];})[_0x56dad7(0x64a)](function(){const _0xf2f0fe=_0x56dad7;return _0x182dc4[_0xf2f0fe(0x16b2)][_0xf2f0fe(0x896)]({'userProfileId':_0x1a32c9['currentUser'][_0xf2f0fe(0x21ac)],'sectionId':0x193})['$promise'];})[_0x56dad7(0x64a)](function(_0x4c4233){const _0x5c5032=_0x56dad7,_0x3b2545=_0x4c4233&&_0x4c4233[_0x5c5032(0x28b8)]?_0x4c4233[_0x5c5032(0x28b8)][0x0]:null;if(!_0x3b2545){const _0x3d7805=[],_0x4738bc=[];_0x1a32c9[_0x5c5032(0x2399)][_0x5c5032(0x28b8)][_0x5c5032(0x1397)](function(_0x3c3190){const _0x5b0ce2=_0x5c5032;if(_0x3c3190[_0x5b0ce2(0xc26)]===_0x5b0ce2(0xbf7)){const _0x54e63e=_0x28c606()[_0x5b0ce2(0x27bc)](_0x1a32c9[_0x5b0ce2(0x20a0)],{'id':Number(_0x3c3190['value'])});_0x4738bc['push'](_0x54e63e);}});for(let _0x120ba7=0x0;_0x120ba7<_0x1a32c9[_0x5c5032(0x20a0)]['length'];_0x120ba7++){const _0x135df7=_0x28c606()[_0x5c5032(0x25f8)](_0x4738bc,{'id':_0x1a32c9[_0x5c5032(0x20a0)][_0x120ba7]['id']});_0x135df7&&(_0x1a32c9[_0x5c5032(0x20a0)][_0x120ba7]['canSelect']=![],_0x3d7805[_0x5c5032(0x1954)](_0x1a32c9['outboundRoutes'][_0x120ba7]));}_0x1a32c9[_0x5c5032(0x20a0)]=_0x3d7805;}else{if(!_0x3b2545['autoAssociation'])return _0x182dc4[_0x5c5032(0x1617)][_0x5c5032(0x896)]({'sectionId':_0x3b2545['id']})[_0x5c5032(0x15e7)][_0x5c5032(0x64a)](function(_0x2dfdd0){const _0x8b3fe6=_0x5c5032,_0x5bf36d=_0x28c606()['map'](_0x2dfdd0[_0x8b3fe6(0x28b8)],function(_0x35a965){const _0x2e72c7=_0x8b3fe6;return _0x28c606()[_0x2e72c7(0x27bc)](_0x1a32c9[_0x2e72c7(0x20a0)],{'id':_0x35a965[_0x2e72c7(0x145)]});});let _0x2fa0d0=null;_0x2fa0d0=[],_0x1a32c9[_0x8b3fe6(0x2399)][_0x8b3fe6(0x28b8)][_0x8b3fe6(0x1397)](function(_0x358578){const _0x42cf55=_0x8b3fe6;if(_0x358578[_0x42cf55(0xc26)]===_0x42cf55(0xbf7)){const _0x410df0=_0x28c606()['find'](_0x1a32c9[_0x42cf55(0x20a0)],{'id':Number(_0x358578['value'])});_0x2fa0d0['push'](_0x410df0);}}),!_0x28c606()[_0x8b3fe6(0x940)](_0x2fa0d0)&&_0x2fa0d0['forEach'](function(_0x246c66){const _0x10c554=_0x8b3fe6;if(!_0x28c606()[_0x10c554(0x25f8)](_0x5bf36d,['id',_0x246c66['id']])){const _0x469682=_0x28c606()[_0x10c554(0x27bc)](_0x1a32c9[_0x10c554(0x20a0)],{'id':_0x246c66['id']});_0x469682[_0x10c554(0xd4f)]=![],_0x5bf36d[_0x10c554(0x1954)](_0x469682);}}),_0x1a32c9['outboundRoutes']=_0x5bf36d;});}})[_0x56dad7(0x20cd)](function(_0x48a2b0){const _0x4d8738=_0x56dad7;_0x4ea9f0[_0x4d8738(0x1bd0)]({'title':_0x48a2b0[_0x4d8738(0x10b3)]?_0x4d8738(0x575)+_0x48a2b0[_0x4d8738(0x10b3)]+_0x4d8738(0x21db)+_0x48a2b0[_0x4d8738(0x2115)]:_0x4d8738(0x76f),'msg':_0x48a2b0['data']?JSON['stringify'](_0x48a2b0[_0x4d8738(0x1c52)]):_0x48a2b0[_0x4d8738(0x2915)]()});});}function _0x2150b5(){const _0x202c7b=_0x505d67;_0x5eb99f[_0x202c7b(0x12c7)]()?_0x182dc4[_0x202c7b(0x2e8)][_0x202c7b(0x896)]({'fields':'id,name,fullname','sort':_0x202c7b(0x2494),'role':_0x202c7b(0x11ae),'nolimit':_0x202c7b(0x1685)})['$promise'][_0x202c7b(0x64a)](function(_0x3402cb){const _0x552485=_0x202c7b;_0x1a32c9[_0x552485(0xd77)]=_0x3402cb[_0x552485(0x28b8)]||[];})[_0x202c7b(0x20cd)](function(_0x403447){const _0x462a10=_0x202c7b;_0x4ea9f0[_0x462a10(0x1bd0)]({'title':_0x403447[_0x462a10(0x10b3)]?_0x462a10(0x575)+_0x403447[_0x462a10(0x10b3)]+_0x462a10(0x21db)+_0x403447[_0x462a10(0x2115)]:_0x462a10(0x554),'msg':_0x403447[_0x462a10(0x1c52)]?JSON[_0x462a10(0x2317)](_0x403447['data']):_0x403447[_0x462a10(0x2915)]()});}):_0x182dc4[_0x202c7b(0x2e8)][_0x202c7b(0x896)]({'fields':_0x202c7b(0xd53),'sort':'name','role':'agent','nolimit':_0x202c7b(0x1685)})[_0x202c7b(0x15e7)][_0x202c7b(0x64a)](function(_0x53f0b6){const _0x39939e=_0x202c7b;_0x1a32c9[_0x39939e(0xd77)]=_0x53f0b6[_0x39939e(0x28b8)]||[];})[_0x202c7b(0x64a)](function(){const _0xf9e268=_0x202c7b;return _0x182dc4['userProfileSection']['get']({'userProfileId':_0x1a32c9[_0xf9e268(0x1d3d)][_0xf9e268(0x21ac)],'sectionId':0xca})[_0xf9e268(0x15e7)];})[_0x202c7b(0x64a)](function(_0x552ace){const _0x5dae99=_0x202c7b,_0x3603c7=_0x552ace&&_0x552ace[_0x5dae99(0x28b8)]?_0x552ace[_0x5dae99(0x28b8)][0x0]:null;if(!_0x3603c7){const _0xa28be4=[],_0xa5f4ab=[];_0x1a32c9['triggerallConditions'][_0x5dae99(0x28b8)][_0x5dae99(0x1397)](function(_0x33f9cc){const _0x59c1b2=_0x5dae99;if(_0x33f9cc[_0x59c1b2(0xc26)]===_0x59c1b2(0x11ae)){const _0x227d38=_0x28c606()['find'](_0x1a32c9[_0x59c1b2(0xd77)],{'name':_0x33f9cc[_0x59c1b2(0x1096)]});_0xa5f4ab['push'](_0x227d38);}});for(let _0x2f71e9=0x0;_0x2f71e9<_0x1a32c9[_0x5dae99(0xd77)][_0x5dae99(0x1b9e)];_0x2f71e9++){const _0x1c4175=_0x28c606()['some'](_0xa5f4ab,{'id':_0x1a32c9[_0x5dae99(0xd77)][_0x2f71e9]['id']});_0x1c4175&&(_0x1a32c9[_0x5dae99(0xd77)][_0x2f71e9][_0x5dae99(0xd4f)]=![],_0xa28be4['push'](_0x1a32c9['agents'][_0x2f71e9]));}_0x1a32c9[_0x5dae99(0xd77)]=_0xa28be4;}else{if(!_0x3603c7[_0x5dae99(0x11da)])return _0x182dc4[_0x5dae99(0x1617)][_0x5dae99(0x896)]({'sectionId':_0x3603c7['id']})[_0x5dae99(0x15e7)][_0x5dae99(0x64a)](function(_0x3ea944){const _0x5f4e3f=_0x5dae99,_0x367509=_0x28c606()[_0x5f4e3f(0x1de5)](_0x3ea944[_0x5f4e3f(0x28b8)],function(_0x96e83b){const _0x455439=_0x5f4e3f;return _0x28c606()['find'](_0x1a32c9['agents'],{'id':_0x96e83b[_0x455439(0x145)]});});let _0x49e1a3=null;_0x49e1a3=[],_0x1a32c9[_0x5f4e3f(0x2399)]['rows'][_0x5f4e3f(0x1397)](function(_0x1611e8){const _0xcd5d49=_0x5f4e3f;if(_0x1611e8[_0xcd5d49(0xc26)]===_0xcd5d49(0x11ae)){const _0x2823df=_0x28c606()[_0xcd5d49(0x27bc)](_0x1a32c9[_0xcd5d49(0xd77)],{'name':_0x1611e8[_0xcd5d49(0x1096)]});_0x49e1a3[_0xcd5d49(0x1954)](_0x2823df);}}),!_0x28c606()[_0x5f4e3f(0x940)](_0x49e1a3)&&_0x49e1a3[_0x5f4e3f(0x1397)](function(_0x290306){const _0x397570=_0x5f4e3f;if(!_0x28c606()[_0x397570(0x25f8)](_0x367509,['id',_0x290306['id']])){const _0xa96796=_0x28c606()[_0x397570(0x27bc)](_0x1a32c9[_0x397570(0xd77)],{'id':_0x290306['id']});_0xa96796[_0x397570(0xd4f)]=![],_0x367509[_0x397570(0x1954)](_0xa96796);}}),_0x1a32c9[_0x5f4e3f(0xd77)]=_0x367509;});}})[_0x202c7b(0x20cd)](function(_0x42e36e){const _0x427702=_0x202c7b;_0x4ea9f0[_0x427702(0x1bd0)]({'title':_0x42e36e[_0x427702(0x10b3)]?_0x427702(0x575)+_0x42e36e['status']+_0x427702(0x21db)+_0x42e36e['statusText']:_0x427702(0x554),'msg':_0x42e36e[_0x427702(0x1c52)]?JSON[_0x427702(0x2317)](_0x42e36e[_0x427702(0x1c52)]):_0x42e36e[_0x427702(0x2915)]()});});}function _0x37b8ce(){const _0x2e0213=_0x505d67,_0x50c4b7=_0x1a32c9['trigger'][_0x2e0213(0x2156)]+(_0x1a32c9[_0x2e0213(0x1e8f)][_0x2e0213(0x2156)]==='chat'?_0x2e0213(0x16cc):_0x2e0213(0x141));let _0x331edd;switch(_0x1a32c9['trigger']['channel']){case _0x2e0213(0xf52):_0x331edd=0x1f6;break;case'fax':_0x331edd=0x386;break;case _0x2e0213(0xc71):_0x331edd=0x25a;break;case _0x2e0213(0x28ad):_0x331edd=0x322;break;case'sms':_0x331edd=0x2be;break;case _0x2e0213(0x1a29):_0x331edd=0x836;break;}if(_0x5eb99f[_0x2e0213(0x12c7)]()){const _0xaaef05=_0x1a32c9['trigger'][_0x2e0213(0x2156)];_0x182dc4[_0x50c4b7][_0x2e0213(0x896)]({'fields':'id,name','sort':'id','nolimit':_0x2e0213(0x1685)})[_0x2e0213(0x15e7)]['then'](function(_0xf2a00e){const _0x287807=_0x2e0213;_0x1a32c9[_0x287807(0x24d4)]=_0xf2a00e['rows']||[];})[_0x2e0213(0x20cd)](function(_0x4a94af){const _0x2094fb=_0x2e0213;_0x4ea9f0[_0x2094fb(0x1bd0)]({'title':_0x4a94af['status']?_0x2094fb(0x575)+_0x4a94af['status']+_0x2094fb(0x21db)+_0x4a94af['statusText']:_0x2094fb(0x96b)+_0xaaef05[_0x2094fb(0xa3c)]()+_0xaaef05===_0x2094fb(0xf52)?_0x2094fb(0x1220):_0x2094fb(0xdc3),'msg':_0x4a94af[_0x2094fb(0x1c52)]?JSON[_0x2094fb(0x2317)](_0x4a94af[_0x2094fb(0x1c52)]):_0x4a94af[_0x2094fb(0x2915)]()});});}else _0x182dc4[_0x50c4b7][_0x2e0213(0x896)]({'fields':'id,name','sort':'id','nolimit':'true'})['$promise'][_0x2e0213(0x64a)](function(_0x299e68){_0x1a32c9['accounts']=_0x299e68['rows']||[];})[_0x2e0213(0x64a)](function(){const _0x4119b1=_0x2e0213;return _0x182dc4[_0x4119b1(0x16b2)][_0x4119b1(0x896)]({'userProfileId':_0x1a32c9[_0x4119b1(0x1d3d)][_0x4119b1(0x21ac)],'sectionId':_0x331edd})[_0x4119b1(0x15e7)];})[_0x2e0213(0x64a)](function(_0x549292){const _0x43eee3=_0x2e0213,_0x9adf04=_0x549292&&_0x549292[_0x43eee3(0x28b8)]?_0x549292[_0x43eee3(0x28b8)][0x0]:null;if(!_0x9adf04){const _0x58c26b=[],_0x2d88b5=[];_0x1a32c9[_0x43eee3(0x2399)][_0x43eee3(0x28b8)][_0x43eee3(0x1397)](function(_0x426140){const _0x5aec19=_0x43eee3;if(_0x426140[_0x5aec19(0xc26)]===_0x5aec19(0x3e3)){const _0x38c4b6=_0x28c606()['find'](_0x1a32c9[_0x5aec19(0x24d4)],{'id':Number(_0x426140[_0x5aec19(0x1096)])});_0x2d88b5[_0x5aec19(0x1954)](_0x38c4b6);}});for(let _0x55aa5a=0x0;_0x55aa5a<_0x1a32c9[_0x43eee3(0x24d4)][_0x43eee3(0x1b9e)];_0x55aa5a++){const _0x17895e=_0x28c606()['some'](_0x2d88b5,{'id':_0x1a32c9[_0x43eee3(0x24d4)][_0x55aa5a]['id']});_0x17895e&&(_0x1a32c9[_0x43eee3(0x24d4)][_0x55aa5a][_0x43eee3(0xd4f)]=![],_0x58c26b[_0x43eee3(0x1954)](_0x1a32c9['accounts'][_0x55aa5a]));}_0x1a32c9[_0x43eee3(0x24d4)]=_0x58c26b;}else{if(!_0x9adf04['autoAssociation'])return _0x182dc4[_0x43eee3(0x1617)][_0x43eee3(0x896)]({'sectionId':_0x9adf04['id']})[_0x43eee3(0x15e7)][_0x43eee3(0x64a)](function(_0x2dc764){const _0x226fb5=_0x43eee3,_0x15f049=_0x28c606()[_0x226fb5(0x1de5)](_0x2dc764[_0x226fb5(0x28b8)],function(_0x5e3abe){const _0x1f0efb=_0x226fb5;return _0x28c606()[_0x1f0efb(0x27bc)](_0x1a32c9[_0x1f0efb(0x24d4)],{'id':_0x5e3abe[_0x1f0efb(0x145)]});});let _0x24bae4=null;_0x24bae4=[],_0x1a32c9[_0x226fb5(0x2399)][_0x226fb5(0x28b8)][_0x226fb5(0x1397)](function(_0x2f425c){const _0x4c8b77=_0x226fb5;if(_0x2f425c[_0x4c8b77(0xc26)]===_0x4c8b77(0x3e3)){const _0x24d5e5=_0x28c606()['find'](_0x1a32c9[_0x4c8b77(0x24d4)],{'id':Number(_0x2f425c[_0x4c8b77(0x1096)])});_0x24bae4[_0x4c8b77(0x1954)](_0x24d5e5);}}),!_0x28c606()[_0x226fb5(0x940)](_0x24bae4)&&_0x24bae4['forEach'](function(_0x2e7718){const _0x120699=_0x226fb5;if(!_0x28c606()[_0x120699(0x25f8)](_0x15f049,['id',_0x2e7718['id']])){const _0x157680=_0x28c606()[_0x120699(0x27bc)](_0x1a32c9[_0x120699(0x24d4)],{'id':_0x2e7718['id']});_0x157680[_0x120699(0xd4f)]=![],_0x15f049[_0x120699(0x1954)](_0x157680);}}),_0x1a32c9[_0x226fb5(0x24d4)]=_0x15f049;});}})[_0x2e0213(0x20cd)](function(_0x1eb2e6){const _0x37d5f9=_0x2e0213,_0x95e464=_0x1a32c9[_0x37d5f9(0x1e8f)]['channel'];_0x4ea9f0[_0x37d5f9(0x1bd0)]({'title':_0x1eb2e6[_0x37d5f9(0x10b3)]?_0x37d5f9(0x575)+_0x1eb2e6['status']+_0x37d5f9(0x21db)+_0x1eb2e6[_0x37d5f9(0x2115)]:_0x37d5f9(0x96b)+_0x95e464['toUpperCase']()+_0x95e464===_0x37d5f9(0xf52)?_0x37d5f9(0x1220):_0x37d5f9(0xdc3),'msg':_0x1eb2e6[_0x37d5f9(0x1c52)]?JSON[_0x37d5f9(0x2317)](_0x1eb2e6[_0x37d5f9(0x1c52)]):_0x1eb2e6['toString']()});});}function _0x3c197a(){const _0x1c294e=_0x505d67;switch(_0x1a32c9[_0x1c294e(0x2340)]['field']){case'queue':if(!_0x1a32c9['queues'])_0x212bb1();break;case'routeId':if(!_0x1a32c9[_0x1c294e(0x20a0)])_0x4059da();break;case'agent':if(!_0x1a32c9[_0x1c294e(0xd77)])_0x2150b5();break;case _0x1c294e(0x3e3):_0x37b8ce();break;}}function _0x79b3e8(){_0x3c197a();}function _0x36b5e5(){const _0xa21708=_0x505d67;_0x1a32c9[_0xa21708(0xbae)]=[],_0x182dc4[_0xa21708(0x1e8f)][_0xa21708(0x73c)]({'id':_0x108173[_0xa21708(0x1b48)]['id']},_0x1a32c9[_0xa21708(0x2340)])[_0xa21708(0x15e7)][_0xa21708(0x64a)](function(_0x406587){const _0x37343a=_0xa21708;_0x1a32c9[_0x37343a(0x271a)][_0x37343a(0x1891)](_0x406587[_0x37343a(0x14f8)]()),_0x4ea9f0[_0x37343a(0x1339)]({'title':_0x24dea8[_0x37343a(0x2292)](_0x37343a(0x140))}),_0x259f24(_0x1a32c9['allConditions']);})[_0xa21708(0x20cd)](function(_0x54f7b9){const _0x569bf6=_0xa21708;if(_0x54f7b9[_0x569bf6(0x1c52)]&&_0x54f7b9['data'][_0x569bf6(0xbae)]&&_0x54f7b9[_0x569bf6(0x1c52)][_0x569bf6(0xbae)][_0x569bf6(0x1b9e)]){_0x1a32c9['errors']=_0x54f7b9[_0x569bf6(0x1c52)]['errors']||[{'message':_0x54f7b9['toString'](),'type':'api.condition.save'}];for(let _0x12c9a5=0x0;_0x12c9a5<_0x54f7b9[_0x569bf6(0x1c52)][_0x569bf6(0xbae)][_0x569bf6(0x1b9e)];_0x12c9a5+=0x1){_0x4ea9f0[_0x569bf6(0x1bd0)]({'title':_0x54f7b9[_0x569bf6(0x1c52)][_0x569bf6(0xbae)][_0x12c9a5][_0x569bf6(0x2185)],'msg':_0x54f7b9[_0x569bf6(0x1c52)][_0x569bf6(0xbae)][_0x12c9a5][_0x569bf6(0x18ca)]});}}else _0x4ea9f0[_0x569bf6(0x1bd0)]({'title':_0x54f7b9[_0x569bf6(0x10b3)]?_0x569bf6(0x575)+_0x54f7b9[_0x569bf6(0x10b3)]+'\x20-\x20'+_0x54f7b9[_0x569bf6(0x2115)]:_0x569bf6(0x833),'msg':_0x54f7b9[_0x569bf6(0x1c52)]?JSON[_0x569bf6(0x2317)](_0x54f7b9['data'][_0x569bf6(0x18ca)]):_0x54f7b9[_0x569bf6(0x2915)]()});});}function _0x104043(){const _0x4f351a=_0x505d67;_0x1a32c9[_0x4f351a(0xbae)]=[],_0x182dc4[_0x4f351a(0xeea)][_0x4f351a(0x2603)]({'id':_0x1a32c9[_0x4f351a(0x2340)]['id']},_0x1a32c9[_0x4f351a(0x2340)])['$promise'][_0x4f351a(0x64a)](function(){const _0x3b7c59=_0x4f351a;_0x1a32c9['allConditions']=_0x28c606()[_0x3b7c59(0x1de5)](_0x1a32c9[_0x3b7c59(0x271a)],function(_0x589b2f){const _0x3d6ed1=_0x3b7c59;if(_0x589b2f['id']===_0x1a32c9['allCondition']['id'])return _0x1a32c9[_0x3d6ed1(0x2340)];else return _0x589b2f;}),_0x4ea9f0[_0x3b7c59(0x1339)]({'title':_0x24dea8[_0x3b7c59(0x2292)]('TOOLS.NOTIFICATIONS.CONDITION_SAVED_SUCCESS_TITLE')}),_0x259f24(_0x1a32c9[_0x3b7c59(0x271a)]);})[_0x4f351a(0x20cd)](function(_0x208ae8){const _0x51c244=_0x4f351a;if(_0x208ae8['data']&&_0x208ae8[_0x51c244(0x1c52)][_0x51c244(0xbae)]&&_0x208ae8[_0x51c244(0x1c52)][_0x51c244(0xbae)][_0x51c244(0x1b9e)]){_0x1a32c9[_0x51c244(0xbae)]=_0x208ae8[_0x51c244(0x1c52)][_0x51c244(0xbae)]||[{'message':_0x208ae8[_0x51c244(0x2915)](),'type':'api.condition.update'}];for(let _0x215628=0x0;_0x215628<_0x208ae8[_0x51c244(0x1c52)][_0x51c244(0xbae)]['length'];_0x215628++){_0x4ea9f0['error']({'title':_0x208ae8['data'][_0x51c244(0xbae)][_0x215628][_0x51c244(0x2185)],'msg':_0x208ae8[_0x51c244(0x1c52)][_0x51c244(0xbae)][_0x215628][_0x51c244(0x18ca)]});}}else _0x4ea9f0[_0x51c244(0x1bd0)]({'title':_0x208ae8['status']?_0x51c244(0x575)+_0x208ae8['status']+_0x51c244(0x21db)+_0x208ae8['statusText']:_0x51c244(0x20f0),'msg':_0x208ae8['data']?JSON['stringify'](_0x208ae8['data'][_0x51c244(0x18ca)]):_0x208ae8[_0x51c244(0x2915)]()});});}function _0x5e9e48(_0x58e175){const _0x3af6ba=_0x505d67;_0x1a32c9['errors']=[];const _0x547f55=_0x5a5b44['confirm']({'skipHide':!![]})[_0x3af6ba(0x2021)](_0x24dea8[_0x3af6ba(0x2292)](_0x3af6ba(0xeca)))[_0x3af6ba(0x213e)](_0x3af6ba(0x21fc))['ok'](_0x24dea8['instant'](_0x3af6ba(0x20f5)))[_0x3af6ba(0x101a)](_0x24dea8[_0x3af6ba(0x2292)](_0x3af6ba(0x4f5)))[_0x3af6ba(0x2283)](_0x58e175);_0x5a5b44['show'](_0x547f55)[_0x3af6ba(0x64a)](function(){const _0x540c59=_0x3af6ba;_0x182dc4[_0x540c59(0xeea)][_0x540c59(0xabd)]({'id':_0x1a32c9[_0x540c59(0x2340)]['id']})[_0x540c59(0x15e7)][_0x540c59(0x64a)](function(){const _0x43e138=_0x540c59;_0x1a32c9[_0x43e138(0x271a)]=_0x28c606()[_0x43e138(0xcec)](_0x1a32c9[_0x43e138(0x271a)],function(_0x4e0607){return _0x4e0607['id']!==_0x1a32c9['allCondition']['id'];}),_0x4ea9f0[_0x43e138(0x1339)]({'title':_0x24dea8[_0x43e138(0x2292)](_0x43e138(0x1867))}),_0x259f24(_0x1a32c9[_0x43e138(0x271a)]);})[_0x540c59(0x20cd)](function(_0xeff5b0){const _0x5b6bdf=_0x540c59;if(_0xeff5b0[_0x5b6bdf(0x1c52)]&&_0xeff5b0[_0x5b6bdf(0x1c52)]['errors']&&_0xeff5b0['data']['errors'][_0x5b6bdf(0x1b9e)]){_0x1a32c9[_0x5b6bdf(0xbae)]=_0xeff5b0[_0x5b6bdf(0x1c52)]['errors']||[{'message':_0xeff5b0['toString'](),'type':'api.condition.delete'}];for(let _0x186a8d=0x0;_0x186a8d<_0xeff5b0[_0x5b6bdf(0x1c52)]['errors']['length'];_0x186a8d++){_0x4ea9f0['error']({'title':_0xeff5b0['data'][_0x5b6bdf(0xbae)][_0x186a8d]['type'],'msg':_0xeff5b0[_0x5b6bdf(0x1c52)]['errors'][_0x186a8d][_0x5b6bdf(0x18ca)]});}}else _0x4ea9f0[_0x5b6bdf(0x1bd0)]({'title':_0xeff5b0[_0x5b6bdf(0x10b3)]?_0x5b6bdf(0x575)+_0xeff5b0[_0x5b6bdf(0x10b3)]+_0x5b6bdf(0x21db)+_0xeff5b0[_0x5b6bdf(0x2115)]:'api.condition.delete','msg':_0xeff5b0[_0x5b6bdf(0x1c52)]?JSON['stringify'](_0xeff5b0[_0x5b6bdf(0x1c52)][_0x5b6bdf(0x18ca)]):_0xeff5b0[_0x5b6bdf(0x18ca)]||_0xeff5b0[_0x5b6bdf(0x2915)]()});});},function(){});}function _0x259f24(_0x5a2b03){const _0x20cd3c=_0x505d67;_0x5a5b44[_0x20cd3c(0x268e)](_0x5a2b03);}}const _0x5da738=_0x2a0b99;;_0x283423['$inject']=[_0x49a1e3(0x77f),'$translate',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'api',_0x49a1e3(0x680),_0x49a1e3(0xdcf),'trigger',_0x49a1e3(0x16b2)];function _0x283423(_0x18f127,_0x272a4b,_0x389072,_0x86f3fa,_0x2eefd4,_0x343e41,_0x541163,_0x1f8373,_0x500d26){const _0x4f504a=_0x49a1e3,_0x348648=this;_0x348648[_0x4f504a(0x1d3d)]=_0x541163[_0x4f504a(0x808)](),_0x348648[_0x4f504a(0x1947)]=_0x389072,_0x348648['setting']=_0x86f3fa,_0x348648['trigger']=_0x1f8373||_0x18f127['params'][_0x4f504a(0x1e8f)]||{},_0x348648[_0x4f504a(0x197c)]=_0x18f127[_0x4f504a(0x1b48)][_0x4f504a(0x1222)]||0x0;_0x18f127[_0x4f504a(0x1b48)]['crudPermissions']?_0x348648[_0x4f504a(0x402)]=_0x18f127[_0x4f504a(0x1b48)][_0x4f504a(0x402)]:(_0x348648[_0x4f504a(0x16b2)]=_0x500d26&&_0x500d26[_0x4f504a(0xb90)]==0x1?_0x500d26[_0x4f504a(0x28b8)][0x0]:null,_0x348648[_0x4f504a(0x402)]=_0x541163[_0x4f504a(0xa7e)](_0x348648['userProfileSection']?_0x348648[_0x4f504a(0x16b2)][_0x4f504a(0x402)]:null));_0x348648[_0x4f504a(0x24f)]=_0x1111dc,_0x348648[_0x4f504a(0xd75)]=_0x2568ad;function _0x1111dc(){const _0x2303de=_0x4f504a;_0x18f127['go'](_0x2303de(0x1b22),{},{'reload':_0x2303de(0x1b22)});}function _0x2568ad(){const _0x41bd65=_0x4f504a;_0x2eefd4[_0x41bd65(0x1e8f)]['update']({'id':_0x348648[_0x41bd65(0x1e8f)]['id']},_0x348648[_0x41bd65(0x1e8f)])[_0x41bd65(0x15e7)]['then'](function(){const _0x10a382=_0x41bd65;_0x343e41[_0x10a382(0x1339)]({'title':_0x272a4b[_0x10a382(0x2292)](_0x10a382(0x186a))});})[_0x41bd65(0x20cd)](function(_0x23a19c){const _0x4b79b7=_0x41bd65;_0x343e41[_0x4b79b7(0x1bd0)]({'title':_0x23a19c[_0x4b79b7(0x10b3)]?_0x4b79b7(0x575)+_0x23a19c['status']+'\x20-\x20'+_0x23a19c[_0x4b79b7(0x2115)]:_0x4b79b7(0x1abd),'msg':_0x23a19c[_0x4b79b7(0x1c52)]?JSON[_0x4b79b7(0x2317)](_0x23a19c[_0x4b79b7(0x1c52)]):_0x23a19c[_0x4b79b7(0x2915)]()});});}}const _0x1e49fb=_0x283423;;const _0x119440=_0x2e4a48['p']+_0x49a1e3(0x15c9);;_0x2c49cb['$inject']=[_0x49a1e3(0x1674),'$state',_0x49a1e3(0x212a),'$document','$timeout',_0x49a1e3(0x298c),'triggers',_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),'toasty','Auth','license',_0x49a1e3(0x28d6)];function _0x2c49cb(_0x6fba5f,_0x59346d,_0x2ee638,_0x57dfbc,_0x32ffeb,_0x77e4c0,_0x1433d4,_0x259698,_0x2f8163,_0x533230,_0x406e54,_0x3c263d,_0x3cd395,_0x1af342){const _0x5c0a63=_0x49a1e3,_0x42642b=this;_0x42642b[_0x5c0a63(0x1947)]=_0x3cd395,_0x42642b[_0x5c0a63(0x28d6)]=_0x1af342,_0x42642b[_0x5c0a63(0x1d3d)]=_0x3c263d[_0x5c0a63(0x808)](),_0x42642b[_0x5c0a63(0xcb6)]=_0x1433d4||{'count':0x0,'rows':[]},_0x42642b[_0x5c0a63(0x16a8)]=_0x259698,_0x42642b[_0x5c0a63(0x16b2)]=_0x2f8163&&_0x2f8163[_0x5c0a63(0xb90)]==0x1?_0x2f8163[_0x5c0a63(0x28b8)][0x0]:null,_0x42642b[_0x5c0a63(0x402)]=_0x3c263d['parseCrudPermissions'](_0x42642b[_0x5c0a63(0x16b2)]?_0x42642b[_0x5c0a63(0x16b2)][_0x5c0a63(0x402)]:null),_0x42642b[_0x5c0a63(0x280e)]=[],_0x42642b['query']={'fields':_0x5c0a63(0x262d),'sort':_0x5c0a63(0x260c),'limit':0xa,'page':0x1},_0x42642b[_0x5c0a63(0x257f)]=_0x4d6c25,_0x42642b[_0x5c0a63(0x619)]=_0x4252be,_0x42642b[_0x5c0a63(0x1339)]=_0x3175ad,_0x42642b[_0x5c0a63(0x123e)]=_0x47cccd,_0x42642b['deleteconfirm']=_0x23de60,_0x42642b[_0x5c0a63(0x1cfc)]=_0x5d6904,_0x42642b['deleteSelectedTriggers']=_0x57fce2,_0x42642b[_0x5c0a63(0x1cd0)]=_0x224a85,_0x42642b[_0x5c0a63(0x1409)]=_0x17f8b4;function _0x4d6c25(_0x278988){const _0x41e485=_0x5c0a63;_0x59346d['go'](_0x41e485(0x589),{'id':_0x278988['id'],'trigger':_0x278988,'crudPermissions':_0x42642b[_0x41e485(0x402)]});}function _0x4252be(_0x42ef08,_0x4ce0d1){const _0x225432=_0x5c0a63;if(_0x42642b['crudPermissions'][_0x225432(0x24db)]||_0x42642b['crudPermissions']['canDelete']&&!_0x42642b[_0x225432(0x402)][_0x225432(0xd86)]){_0x4d6c25(_0x4ce0d1);return;}_0x2ee638[_0x225432(0xa60)]({'controller':_0x225432(0x47f),'controllerAs':'vm','templateUrl':_0x119440,'parent':angular[_0x225432(0x1f81)](_0x57dfbc[_0x225432(0xb49)]),'targetEvent':_0x42ef08,'clickOutsideToClose':!![],'locals':{'trigger':_0x4ce0d1,'triggers':_0x42642b['triggers']['rows'],'license':_0x42642b[_0x225432(0x1947)],'setting':_0x42642b[_0x225432(0x28d6)],'crudPermissions':_0x42642b[_0x225432(0x402)]}})['then'](function(_0xd72d86){const _0x4086c7=_0x225432;_0xd72d86&&(_0x42642b[_0x4086c7(0xcb6)]={'count':_0xd72d86[_0x4086c7(0x1b9e)],'rows':_0xd72d86});});}function _0x3175ad(_0x59efde){_0x42642b['triggers']=_0x59efde||{'count':0x0,'rows':[]};}function _0x47cccd(){const _0x454482=_0x5c0a63;_0x42642b['query']['offset']=(_0x42642b['query'][_0x454482(0xc72)]-0x1)*_0x42642b[_0x454482(0x289a)][_0x454482(0x25bb)],_0x3c263d[_0x454482(0x12c7)]()?_0x42642b[_0x454482(0x1713)]=_0x533230['trigger'][_0x454482(0x896)](_0x42642b['query'],_0x3175ad)[_0x454482(0x15e7)]:(_0x42642b[_0x454482(0x289a)]['id']=_0x42642b[_0x454482(0x16a8)]['id'],_0x42642b[_0x454482(0x289a)][_0x454482(0xa21)]='Triggers',_0x42642b[_0x454482(0x1713)]=_0x533230[_0x454482(0x16a8)]['getResources'](_0x42642b['query'],_0x3175ad)[_0x454482(0x15e7)]);}function _0x23de60(_0x48eea9,_0x320aec){const _0x3457bf=_0x5c0a63,_0x1c0d58=_0x2ee638[_0x3457bf(0x856)]()[_0x3457bf(0x2021)](_0x77e4c0['instant'](_0x3457bf(0x6ba)))[_0x3457bf(0x12b8)](_0x77e4c0[_0x3457bf(0x2292)]('TOOLS.NOTIFICATIONS.TRIGGER_DELETE_MESSAGE',{'name':_0x48eea9[_0x3457bf(0x2494)]}))[_0x3457bf(0x213e)]('Delete\x20trigger')[_0x3457bf(0x2283)](_0x320aec)['ok']('OK')[_0x3457bf(0x101a)](_0x77e4c0[_0x3457bf(0x2292)](_0x3457bf(0x4f5)));_0x2ee638[_0x3457bf(0xa60)](_0x1c0d58)[_0x3457bf(0x64a)](function(){_0x1ab13d(_0x48eea9,!![]);});}function _0x1ab13d(_0x403842,_0x3bae86){const _0x5048b3=_0x5c0a63;_0x533230['trigger'][_0x5048b3(0xabd)]({'id':_0x403842['id']})[_0x5048b3(0x15e7)]['then'](function(){const _0x7d683a=_0x5048b3;_0x47cccd(),_0x3bae86&&_0x406e54[_0x7d683a(0x1339)]({'title':_0x77e4c0[_0x7d683a(0x2292)]('TOOLS.NOTIFICATIONS.TRIGGER_DELETED_SUCCESS_TITLE')});})[_0x5048b3(0x20cd)](function(_0x1daa49){const _0x2250c6=_0x5048b3;if(_0x1daa49[_0x2250c6(0x1c52)]&&_0x1daa49[_0x2250c6(0x1c52)][_0x2250c6(0xbae)]&&_0x1daa49[_0x2250c6(0x1c52)][_0x2250c6(0xbae)][_0x2250c6(0x1b9e)]){_0x42642b[_0x2250c6(0xbae)]=_0x1daa49['data'][_0x2250c6(0xbae)]||[{'message':_0x1daa49[_0x2250c6(0x2915)](),'type':_0x2250c6(0x14b6)}];for(let _0x504065=0x0;_0x504065<_0x1daa49[_0x2250c6(0x1c52)]['errors'][_0x2250c6(0x1b9e)];_0x504065++){_0x406e54[_0x2250c6(0x1bd0)]({'title':_0x1daa49[_0x2250c6(0x1c52)][_0x2250c6(0xbae)][_0x504065]['type'],'msg':_0x1daa49[_0x2250c6(0x1c52)][_0x2250c6(0xbae)][_0x504065]['message']});}}else _0x406e54[_0x2250c6(0x1bd0)]({'title':_0x1daa49[_0x2250c6(0x10b3)]?_0x2250c6(0x575)+_0x1daa49[_0x2250c6(0x10b3)]+_0x2250c6(0x21db)+_0x1daa49[_0x2250c6(0x2115)]:_0x2250c6(0x14b6),'msg':_0x1daa49['data']?JSON[_0x2250c6(0x2317)](_0x1daa49[_0x2250c6(0x1c52)][_0x2250c6(0x18ca)]):_0x1daa49[_0x2250c6(0x18ca)]||_0x1daa49[_0x2250c6(0x2915)]()});});}function _0x5d6904(){const _0x3304b1=_0x5c0a63,_0x1f87b8=angular['copy'](_0x42642b[_0x3304b1(0x280e)]);return _0x42642b[_0x3304b1(0x280e)]=[],_0x1f87b8;}function _0x57fce2(_0x307f40){const _0x493e5f=_0x5c0a63,_0x340316=_0x2ee638[_0x493e5f(0x856)]()[_0x493e5f(0x2021)](_0x77e4c0[_0x493e5f(0x2292)]('TOOLS.NOTIFICATIONS.TRIGGERS_DELETE_TITLE'))[_0x493e5f(0x12b8)](_0x77e4c0[_0x493e5f(0x2292)](_0x493e5f(0x79f),{'total':_0x42642b[_0x493e5f(0x280e)]['length']}))[_0x493e5f(0x213e)](_0x493e5f(0x2841))[_0x493e5f(0x2283)](_0x307f40)['ok']('OK')[_0x493e5f(0x101a)](_0x77e4c0[_0x493e5f(0x2292)](_0x493e5f(0x4f5)));_0x2ee638[_0x493e5f(0xa60)](_0x340316)[_0x493e5f(0x64a)](function(){const _0x5cc30e=_0x493e5f;_0x42642b['selectedTriggers'][_0x5cc30e(0x1397)](function(_0x23ffc3){_0x1ab13d(_0x23ffc3);}),_0x42642b[_0x5cc30e(0x280e)]=[],_0x406e54['success']({'title':_0x77e4c0[_0x5cc30e(0x2292)]('TOOLS.NOTIFICATIONS.TRIGGERS_DELETED_SUCCESS_TITLE')});});}function _0x224a85(){const _0x7ea28f=_0x5c0a63;_0x42642b[_0x7ea28f(0x280e)]=[];}function _0x17f8b4(){const _0x2d660a=_0x5c0a63;_0x42642b[_0x2d660a(0x280e)]=_0x42642b[_0x2d660a(0xcb6)][_0x2d660a(0x28b8)];}let _0x2280ef=!![],_0x1e42cf=0x1;_0x6fba5f['$watch'](_0x5c0a63(0x1cb9),function(_0x3585eb,_0x1ba3d2){const _0x3ff4d8=_0x5c0a63;_0x2280ef?_0x32ffeb(function(){_0x2280ef=![];}):(!_0x1ba3d2&&(_0x1e42cf=_0x42642b['query'][_0x3ff4d8(0xc72)]),_0x3585eb!==_0x1ba3d2&&(_0x42642b[_0x3ff4d8(0x289a)][_0x3ff4d8(0xc72)]=0x1),!_0x3585eb&&(_0x42642b[_0x3ff4d8(0x289a)][_0x3ff4d8(0xc72)]=_0x1e42cf),_0x47cccd());});}const _0x1a59fa=_0x2c49cb;;_0x5dcd2b['$inject']=[_0x49a1e3(0x20ad)];function _0x5dcd2b(_0x25e66b){const _0x494f65=_0x49a1e3;_0x25e66b[_0x494f65(0x14f2)](_0x494f65(0x1b22),{'url':'/triggers','views':{'content@app':{'templateUrl':_0x349483,'controller':'TriggersController\x20as\x20vm'}},'resolve':{'triggers':[_0x494f65(0x107c),_0x494f65(0xdcf),function(_0x124081,_0xab2803){const _0x1c4ef5=_0x494f65;return _0xab2803[_0x1c4ef5(0x4de)](_0x1c4ef5(0x333))?_0x124081['resolve'](_0x1c4ef5(0x87b),{'fields':_0x1c4ef5(0xc43),'sort':_0x1c4ef5(0x260c),'limit':0xa,'offset':0x0}):_0x124081[_0x1c4ef5(0x1268)](_0x1c4ef5(0x1758),{'id':_0xab2803[_0x1c4ef5(0x808)]()[_0x1c4ef5(0x21ac)],'section':_0x1c4ef5(0x1d44),'fields':'createdAt,updatedAt,id,name,channel,status,description','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x494f65(0x107c),_0x494f65(0xdcf),function(_0x2f2a22,_0x5a9b0f){const _0x49279e=_0x494f65;return _0x5a9b0f[_0x49279e(0x4de)](_0x49279e(0x333))?null:_0x2f2a22['resolve'](_0x49279e(0x6e3),{'fields':_0x49279e(0x10d2),'id':_0x5a9b0f[_0x49279e(0x808)]()[_0x49279e(0x21ac)]});}],'userProfileSection':[_0x494f65(0x107c),_0x494f65(0xdcf),function(_0x3f58ba,_0x2017b5){const _0x1fd8e0=_0x494f65;return _0x2017b5[_0x1fd8e0(0x4de)](_0x1fd8e0(0x333))?null:_0x3f58ba[_0x1fd8e0(0x1268)](_0x1fd8e0(0x2681),{'fields':_0x1fd8e0(0x527),'userProfileId':_0x2017b5[_0x1fd8e0(0x808)]()[_0x1fd8e0(0x21ac)],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':_0x494f65(0x10fe)})[_0x494f65(0x14f2)](_0x494f65(0x589),{'url':_0x494f65(0x45b),'params':{'trigger':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x39b0f3,'controller':_0x494f65(0x653)}},'resolve':{'trigger':[_0x494f65(0x107c),_0x494f65(0x1fbb),function(_0x46cb55,_0x4ac812){const _0x540232=_0x494f65;return _0x46cb55['resolve'](_0x540232(0x87b),{'fields':'createdAt,updatedAt,id,name,channel,status,description','id':_0x4ac812['id']});}],'userProfileSection':['apiResolver',_0x494f65(0xdcf),function(_0xd996ea,_0x3de031){const _0x467246=_0x494f65;return _0xd996ea['resolve'](_0x467246(0x2681),{'fields':_0x467246(0x527),'userProfileId':_0x3de031['getCurrentUser']()[_0x467246(0x21ac)],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':_0x494f65(0x10fe)});}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x1b22),[])[_0x49a1e3(0x3d3)](_0x5dcd2b)[_0x49a1e3(0x38e)](_0x49a1e3(0x47f),_0x4c9ee1)[_0x49a1e3(0x38e)](_0x49a1e3(0x10fb),_0xdc0ece)[_0x49a1e3(0x38e)]('CreateOrEditActionDialogController',_0x514c19)[_0x49a1e3(0x38e)](_0x49a1e3(0x275a),_0xeef872)[_0x49a1e3(0x38e)](_0x49a1e3(0x1a13),_0x59aab7)[_0x49a1e3(0x38e)](_0x49a1e3(0xa74),_0x411859)[_0x49a1e3(0x38e)](_0x49a1e3(0x11ff),_0x5da738)[_0x49a1e3(0x38e)]('TriggerController',_0x1e49fb)[_0x49a1e3(0x38e)](_0x49a1e3(0x144c),_0x1a59fa);;const _0x15a417=_0x2e4a48['p']+_0x49a1e3(0x284c);;const _0x1909e1=_0x2e4a48['p']+_0x49a1e3(0xa46);;const _0x1f373c=_0x2e4a48['p']+_0x49a1e3(0x1999);;const _0x3ff879=_0x2e4a48['p']+_0x49a1e3(0x10e9);;const _0xfe8c75=_0x2e4a48['p']+_0x49a1e3(0x1600);;const _0x1008c7=_0x2e4a48['p']+_0x49a1e3(0x24aa);;const _0x27f0b6=_0x2e4a48['p']+_0x49a1e3(0x22e4);;const _0x464aa7=_0x2e4a48['p']+'src/js/modules/main/apps/tools/views/sounds/sounds.html/sounds.html';;const _0x57bf00=_0x2e4a48['p']+_0x49a1e3(0x115c);;const _0x400f75=_0x2e4a48['p']+_0x49a1e3(0x1b74);;const _0x5dd4ae=_0x2e4a48['p']+_0x49a1e3(0x39a);;const _0x3b8d35=_0x2e4a48['p']+_0x49a1e3(0x1530);;const _0x518f46=_0x2e4a48['p']+_0x49a1e3(0x796);;const _0x294026=_0x2e4a48['p']+_0x49a1e3(0x106f);;_0x2cc20f[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),'$translate',_0x49a1e3(0xc0f),'userProfile',_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x2cc20f(_0x7323d6,_0x567b7a,_0x44151e,_0xa218b0,_0x2aa62e,_0x257790,_0x262af4,_0x255e58,_0x42c849,_0x52090d,_0x52f882,_0x2b4265,_0x4b8b4d,_0xaec115,_0x3bf51f,_0x463b86,_0x45ab78){const _0x390c48=_0x49a1e3,_0x97d825=this;_0x97d825[_0x390c48(0x1947)]=_0x463b86,_0x97d825[_0x390c48(0x28d6)]=_0x45ab78,_0x97d825['currentUser']=_0x3bf51f[_0x390c48(0x808)](),_0x97d825[_0x390c48(0xc0f)]=_0x42c849||{'count':0x0,'rows':[]},_0x97d825[_0x390c48(0x16a8)]=_0x52090d,_0x97d825[_0x390c48(0x16b2)]=_0x52f882&&_0x52f882['count']==0x1?_0x52f882['rows'][0x0]:null,_0x97d825['crudPermissions']=_0x3bf51f[_0x390c48(0xa7e)](_0x97d825['userProfileSection']?_0x97d825[_0x390c48(0x16b2)]['crudPermissions']:null),_0x97d825[_0x390c48(0x185d)]=_0x390c48(0xc0f),_0x97d825[_0x390c48(0x300)]='',_0x97d825['listOrderAsc']=null,_0x97d825[_0x390c48(0x11ec)]=[],_0x97d825[_0x390c48(0x289a)]={'fields':_0x390c48(0x9e8),'sort':'-updatedAt','MailAccountId':'null','FaxAccountId':'null','SmsAccountId':_0x390c48(0x8f1),'OpenchannelAccountId':_0x390c48(0x8f1),'ChatWebsiteId':_0x390c48(0x8f1),'limit':0xa,'page':0x1},_0x97d825[_0x390c48(0x1c42)]=_0xf92c56,_0x97d825[_0x390c48(0x1262)]=_0xc50a3a,_0x97d825[_0x390c48(0x1339)]=_0x12ea99,_0x97d825[_0x390c48(0xc0b)]=_0x2c4215,_0x97d825[_0x390c48(0x242)]=_0x5e9b02,_0x97d825[_0x390c48(0x3e5)]=_0x42a36c,_0x97d825[_0x390c48(0x176d)]=_0x5b1991,_0x97d825[_0x390c48(0x2324)]=_0x202dd6,_0x97d825[_0x390c48(0x1f5e)]=_0x39b0b6,_0x97d825['selectAllCannedAnswers']=_0x1965fa;function _0xf92c56(_0x58f5ea,_0x36a4fe){const _0x4ddc64=_0x390c48;_0x2aa62e[_0x4ddc64(0xa60)]({'controller':_0x4ddc64(0x512),'controllerAs':'vm','templateUrl':_0x294026,'parent':angular[_0x4ddc64(0x1f81)](_0x257790['body']),'targetEvent':_0x36a4fe,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x58f5ea,'cannedAnswers':_0x97d825[_0x4ddc64(0xc0f)][_0x4ddc64(0x28b8)],'license':_0x97d825[_0x4ddc64(0x1947)],'setting':null,'crudPermissions':_0x97d825[_0x4ddc64(0x402)]}});}function _0xc50a3a(_0x17a38e,_0x263b17){const _0xe6457c=_0x390c48,_0x3acf27=_0x2aa62e[_0xe6457c(0x856)]()[_0xe6457c(0x2021)](_0xe6457c(0x1231)+_0x28c606()['startCase'](_0xe6457c(0x14c4))+'?')[_0xe6457c(0x33a)](_0xe6457c(0x50b)+(_0x17a38e[_0xe6457c(0x2494)]||_0xe6457c(0x14c4))+_0xe6457c(0x26d0)+_0xe6457c(0x4b8))[_0xe6457c(0x213e)](_0xe6457c(0x2ce))['targetEvent'](_0x263b17)['ok']('OK')[_0xe6457c(0x101a)](_0xe6457c(0x18fd));_0x2aa62e[_0xe6457c(0xa60)](_0x3acf27)[_0xe6457c(0x64a)](function(){_0x42a36c(_0x17a38e);},function(){const _0x5be825=_0xe6457c;console['log'](_0x5be825(0x18fd));});}let _0x520ddc=!![],_0x54230c=0x1;_0x7323d6['$watch'](_0x390c48(0x1cb9),function(_0x2d43e6,_0x518258){const _0x3f3d35=_0x390c48;_0x520ddc?_0x262af4(function(){_0x520ddc=![];}):(!_0x518258&&(_0x54230c=_0x97d825[_0x3f3d35(0x289a)][_0x3f3d35(0xc72)]),_0x2d43e6!==_0x518258&&(_0x97d825[_0x3f3d35(0x289a)][_0x3f3d35(0xc72)]=0x1),!_0x2d43e6&&(_0x97d825[_0x3f3d35(0x289a)][_0x3f3d35(0xc72)]=_0x54230c),_0x97d825[_0x3f3d35(0xc0b)]());});function _0x12ea99(_0x3acad4){_0x97d825['cannedAnswers']=_0x3acad4||{'count':0x0,'rows':[]};}function _0x2c4215(){const _0x55dfc9=_0x390c48;_0x97d825[_0x55dfc9(0x289a)][_0x55dfc9(0x24f9)]=(_0x97d825['query'][_0x55dfc9(0xc72)]-0x1)*_0x97d825[_0x55dfc9(0x289a)]['limit'],_0x3bf51f[_0x55dfc9(0x4de)](_0x55dfc9(0x333))?_0x97d825['promise']=_0x2b4265[_0x55dfc9(0x14c4)]['get'](_0x97d825['query'],_0x12ea99)[_0x55dfc9(0x15e7)]:(_0x97d825[_0x55dfc9(0x289a)]['id']=_0x97d825[_0x55dfc9(0x16a8)]['id'],_0x97d825[_0x55dfc9(0x289a)][_0x55dfc9(0xa21)]=_0x55dfc9(0x2671),_0x97d825[_0x55dfc9(0x1713)]=_0x2b4265['userProfile']['getResources'](_0x97d825[_0x55dfc9(0x289a)],_0x12ea99)[_0x55dfc9(0x15e7)]);}function _0x5e9b02(_0x516ce6,_0x39f6c0){const _0x3ede16=_0x390c48;_0x2aa62e[_0x3ede16(0xa60)]({'controller':_0x3ede16(0x512),'controllerAs':'vm','templateUrl':_0x294026,'parent':angular['element'](_0x257790[_0x3ede16(0xb49)]),'targetEvent':_0x516ce6,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x39f6c0,'cannedAnswers':_0x97d825[_0x3ede16(0xc0f)]['rows'],'license':_0x97d825[_0x3ede16(0x1947)],'setting':_0x97d825[_0x3ede16(0x28d6)],'crudPermissions':_0x97d825[_0x3ede16(0x402)]}});}function _0x42a36c(_0x2f73a6){const _0x21e53=_0x390c48;_0x2b4265['cannedAnswer'][_0x21e53(0xabd)]({'id':_0x2f73a6['id']})[_0x21e53(0x15e7)]['then'](function(){const _0x1167bb=_0x21e53;_0x28c606()[_0x1167bb(0x21c7)](_0x97d825['cannedAnswers'][_0x1167bb(0x28b8)],{'id':_0x2f73a6['id']}),_0x97d825['cannedAnswers'][_0x1167bb(0xb90)]-=0x1,!_0x97d825[_0x1167bb(0xc0f)][_0x1167bb(0x28b8)][_0x1167bb(0x1b9e)]&&_0x97d825['getCannedAnswers'](),_0xaec115[_0x1167bb(0x1339)]({'title':_0x28c606()[_0x1167bb(0xc01)](_0x1167bb(0x1161))+'\x20deleted!','msg':_0x2f73a6[_0x1167bb(0x2494)]?_0x2f73a6[_0x1167bb(0x2494)]+_0x1167bb(0x1fa8):''});})[_0x21e53(0x20cd)](function(_0xca134f){const _0x384599=_0x21e53;if(_0xca134f[_0x384599(0x1c52)]&&_0xca134f[_0x384599(0x1c52)][_0x384599(0xbae)]&&_0xca134f['data'][_0x384599(0xbae)][_0x384599(0x1b9e)]){_0x97d825['errors']=_0xca134f[_0x384599(0x1c52)][_0x384599(0xbae)]||[{'message':_0xca134f['toString'](),'type':_0x384599(0x1f10)}];for(let _0x225ce7=0x0;_0x225ce7<_0xca134f[_0x384599(0x1c52)]['errors'][_0x384599(0x1b9e)];_0x225ce7++){_0xaec115[_0x384599(0x1bd0)]({'title':_0xca134f['data']['errors'][_0x225ce7][_0x384599(0x2185)],'msg':_0xca134f['data'][_0x384599(0xbae)][_0x225ce7]['message']});}}else _0xaec115[_0x384599(0x1bd0)]({'title':_0xca134f[_0x384599(0x10b3)]?_0x384599(0x575)+_0xca134f[_0x384599(0x10b3)]+'\x20-\x20'+_0xca134f[_0x384599(0x2115)]:_0x384599(0x1f10),'msg':_0xca134f[_0x384599(0x1c52)]?JSON[_0x384599(0x2317)](_0xca134f[_0x384599(0x1c52)][_0x384599(0x18ca)]):_0xca134f[_0x384599(0x18ca)]||_0xca134f[_0x384599(0x2915)]()});});}function _0x5b1991(){const _0x5dda46=_0x390c48,_0x7257f2=angular[_0x5dda46(0x289e)](_0x97d825[_0x5dda46(0x11ec)]);return _0x97d825['selectedCannedAnswers']=[],_0x7257f2;}function _0x202dd6(_0x49470d){const _0x2f8465=_0x390c48,_0x19d299=_0x2aa62e[_0x2f8465(0x856)]()['title'](_0x2f8465(0x95a))[_0x2f8465(0x33a)](_0x2f8465(0x50b)+_0x97d825[_0x2f8465(0x11ec)][_0x2f8465(0x1b9e)]+'\x20selected'+_0x2f8465(0x4b8))['ariaLabel']('delete\x20CannedAnswers')[_0x2f8465(0x2283)](_0x49470d)['ok']('OK')[_0x2f8465(0x101a)](_0x2f8465(0x18fd));_0x2aa62e[_0x2f8465(0xa60)](_0x19d299)['then'](function(){const _0x36ee52=_0x2f8465;_0x97d825['selectedCannedAnswers'][_0x36ee52(0x1397)](function(_0x7440af){_0x42a36c(_0x7440af);}),_0x97d825[_0x36ee52(0x11ec)]=[];});}function _0x39b0b6(){_0x97d825['selectedCannedAnswers']=[];}function _0x1965fa(){const _0x513060=_0x390c48;_0x97d825['selectedCannedAnswers']=_0x97d825['cannedAnswers'][_0x513060(0x28b8)];}}const _0x533ac4=_0x2cc20f;;_0x4f9652['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0xc0f),_0x49a1e3(0x14c4),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'crudPermissions'];function _0x4f9652(_0x302b02,_0x4039be,_0x81b1d7,_0x29cb34,_0x354e06,_0x8161c2,_0x167ae6,_0x501ccb,_0x4df271,_0x15546f,_0x5b443c,_0x3f82f5,_0x563ebd,_0x1d34b1){const _0x20ded6=_0x49a1e3,_0x2b86ef=this;_0x2b86ef[_0x20ded6(0x1d3d)]=_0x5b443c[_0x20ded6(0x808)](),_0x2b86ef[_0x20ded6(0xbae)]=[],_0x2b86ef[_0x20ded6(0x28d6)]=_0x563ebd,_0x2b86ef[_0x20ded6(0x1947)]=_0x3f82f5,_0x2b86ef[_0x20ded6(0x402)]=_0x1d34b1,_0x2b86ef[_0x20ded6(0x6c2)]={},_0x2b86ef['passwordPattern']=_0x2b86ef[_0x20ded6(0x28d6)]&&_0x2b86ef[_0x20ded6(0x28d6)][_0x20ded6(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2b86ef[_0x20ded6(0x2021)]=_0x20ded6(0xa28),_0x2b86ef[_0x20ded6(0x14c4)]=angular['copy'](_0x4df271),_0x2b86ef[_0x20ded6(0xc0f)]=_0x501ccb,_0x2b86ef['newCannedAnswer']=![];!_0x2b86ef[_0x20ded6(0x14c4)]&&(_0x2b86ef[_0x20ded6(0x14c4)]={},_0x2b86ef['title']=_0x20ded6(0x21aa),_0x2b86ef['newCannedAnswer']=!![]);_0x2b86ef[_0x20ded6(0x89c)]=_0x8c471b,_0x2b86ef[_0x20ded6(0xd1d)]=_0x4974d3,_0x2b86ef[_0x20ded6(0x3e5)]=_0x3e9200,_0x2b86ef[_0x20ded6(0x1605)]=_0x25da89,_0x2b86ef[_0x20ded6(0x16cb)]=_0x3e356f;function _0x8c471b(){const _0x2ed3f2=_0x20ded6;_0x2b86ef['errors']=[],_0x15546f[_0x2ed3f2(0x14c4)][_0x2ed3f2(0x2479)](_0x2b86ef[_0x2ed3f2(0x14c4)])[_0x2ed3f2(0x15e7)]['then'](function(_0x4bd168){const _0x530ef1=_0x2ed3f2;_0x2b86ef[_0x530ef1(0xc0f)]['unshift'](_0x4bd168['toJSON']()),_0x167ae6[_0x530ef1(0x1339)]({'title':'CannedAnswer\x20properly\x20created','msg':_0x2b86ef['cannedAnswer'][_0x530ef1(0x2494)]?_0x2b86ef[_0x530ef1(0x14c4)][_0x530ef1(0x2494)]+'\x20has\x20been\x20created!':''}),_0x3e356f(_0x4bd168);})['catch'](function(_0x14d624){const _0xd40ce3=_0x2ed3f2;if(_0x14d624[_0xd40ce3(0x1c52)]&&_0x14d624[_0xd40ce3(0x1c52)][_0xd40ce3(0xbae)]&&_0x14d624[_0xd40ce3(0x1c52)][_0xd40ce3(0xbae)][_0xd40ce3(0x1b9e)]){_0x2b86ef[_0xd40ce3(0xbae)]=_0x14d624[_0xd40ce3(0x1c52)][_0xd40ce3(0xbae)]||[{'message':_0x14d624[_0xd40ce3(0x2915)](),'type':_0xd40ce3(0x932)}];for(let _0x53f934=0x0;_0x53f934<_0x14d624[_0xd40ce3(0x1c52)][_0xd40ce3(0xbae)]['length'];_0x53f934+=0x1){_0x167ae6[_0xd40ce3(0x1bd0)]({'title':_0x14d624['data'][_0xd40ce3(0xbae)][_0x53f934][_0xd40ce3(0x2185)],'msg':_0x14d624['data'][_0xd40ce3(0xbae)][_0x53f934][_0xd40ce3(0x18ca)]});}}else _0x167ae6['error']({'title':_0x14d624[_0xd40ce3(0x10b3)]?'API:'+_0x14d624[_0xd40ce3(0x10b3)]+_0xd40ce3(0x21db)+_0x14d624['statusText']:_0xd40ce3(0x932),'msg':_0x14d624[_0xd40ce3(0x1c52)]?JSON[_0xd40ce3(0x2317)](_0x14d624[_0xd40ce3(0x1c52)][_0xd40ce3(0x18ca)]):_0x14d624[_0xd40ce3(0x2915)]()});});}function _0x4974d3(){const _0x42add9=_0x20ded6;_0x2b86ef[_0x42add9(0xbae)]=[],_0x15546f['cannedAnswer'][_0x42add9(0x2603)]({'id':_0x2b86ef[_0x42add9(0x14c4)]['id']},_0x2b86ef[_0x42add9(0x14c4)])[_0x42add9(0x15e7)]['then'](function(_0x51e431){const _0x2dbb46=_0x42add9,_0x696256=_0x28c606()['find'](_0x2b86ef[_0x2dbb46(0xc0f)],{'id':_0x51e431['id']});_0x696256&&_0x28c606()[_0x2dbb46(0x14fe)](_0x696256,_0x28c606()['pick'](_0x51e431[_0x2dbb46(0x14f8)](),_0x28c606()[_0x2dbb46(0x1ec6)](_0x696256))),_0x167ae6['success']({'title':_0x2dbb46(0x8ae),'msg':_0x2b86ef[_0x2dbb46(0x14c4)][_0x2dbb46(0x2494)]?_0x2b86ef[_0x2dbb46(0x14c4)]['name']+_0x2dbb46(0x271):''}),_0x3e356f(_0x51e431);})[_0x42add9(0x20cd)](function(_0x5c74e6){const _0x3dfc2e=_0x42add9;if(_0x5c74e6['data']&&_0x5c74e6[_0x3dfc2e(0x1c52)][_0x3dfc2e(0xbae)]&&_0x5c74e6[_0x3dfc2e(0x1c52)][_0x3dfc2e(0xbae)][_0x3dfc2e(0x1b9e)]){_0x2b86ef[_0x3dfc2e(0xbae)]=_0x5c74e6['data'][_0x3dfc2e(0xbae)]||[{'message':_0x5c74e6[_0x3dfc2e(0x2915)](),'type':_0x3dfc2e(0xab6)}];for(let _0x594d4f=0x0;_0x594d4f<_0x5c74e6[_0x3dfc2e(0x1c52)][_0x3dfc2e(0xbae)]['length'];_0x594d4f++){_0x167ae6[_0x3dfc2e(0x1bd0)]({'title':_0x5c74e6[_0x3dfc2e(0x1c52)][_0x3dfc2e(0xbae)][_0x594d4f]['type'],'msg':_0x5c74e6[_0x3dfc2e(0x1c52)]['errors'][_0x594d4f][_0x3dfc2e(0x18ca)]});}}else _0x167ae6[_0x3dfc2e(0x1bd0)]({'title':_0x5c74e6['status']?_0x3dfc2e(0x575)+_0x5c74e6[_0x3dfc2e(0x10b3)]+_0x3dfc2e(0x21db)+_0x5c74e6['statusText']:_0x3dfc2e(0xab6),'msg':_0x5c74e6[_0x3dfc2e(0x1c52)]?JSON['stringify'](_0x5c74e6[_0x3dfc2e(0x1c52)][_0x3dfc2e(0x18ca)]):_0x5c74e6['toString']()});});}function _0x3e9200(_0x3c6981){const _0x2e6816=_0x20ded6;_0x2b86ef[_0x2e6816(0xbae)]=[];const _0x354e48=_0x29cb34[_0x2e6816(0x856)]()[_0x2e6816(0x2021)]('Are\x20you\x20sure?')[_0x2e6816(0x12b8)](_0x2e6816(0x1f2f))[_0x2e6816(0x213e)](_0x2e6816(0x1831))['ok']('Delete')[_0x2e6816(0x101a)](_0x2e6816(0x1dc6))[_0x2e6816(0x2283)](_0x3c6981);_0x29cb34[_0x2e6816(0xa60)](_0x354e48)[_0x2e6816(0x64a)](function(){const _0xee233e=_0x2e6816;_0x15546f[_0xee233e(0x14c4)][_0xee233e(0xabd)]({'id':_0x2b86ef[_0xee233e(0x14c4)]['id']})[_0xee233e(0x15e7)][_0xee233e(0x64a)](function(){const _0x50bdee=_0xee233e;_0x28c606()[_0x50bdee(0x21c7)](_0x2b86ef[_0x50bdee(0xc0f)],{'id':_0x2b86ef['cannedAnswer']['id']}),_0x167ae6[_0x50bdee(0x1339)]({'title':_0x50bdee(0x20bd),'msg':(_0x2b86ef[_0x50bdee(0x14c4)]['name']||'cannedAnswer')+_0x50bdee(0x1fa8)}),_0x3e356f(_0x2b86ef[_0x50bdee(0x14c4)]);})[_0xee233e(0x20cd)](function(_0x45d5b6){const _0x4922aa=_0xee233e;if(_0x45d5b6[_0x4922aa(0x1c52)]&&_0x45d5b6[_0x4922aa(0x1c52)]['errors']&&_0x45d5b6[_0x4922aa(0x1c52)]['errors'][_0x4922aa(0x1b9e)]){_0x2b86ef[_0x4922aa(0xbae)]=_0x45d5b6[_0x4922aa(0x1c52)]['errors']||[{'message':_0x45d5b6[_0x4922aa(0x2915)](),'type':_0x4922aa(0x1ed3)}];for(let _0x451b99=0x0;_0x451b99<_0x45d5b6['data'][_0x4922aa(0xbae)][_0x4922aa(0x1b9e)];_0x451b99++){_0x167ae6[_0x4922aa(0x1bd0)]({'title':_0x45d5b6['data'][_0x4922aa(0xbae)][_0x451b99][_0x4922aa(0x2185)],'msg':_0x45d5b6[_0x4922aa(0x1c52)][_0x4922aa(0xbae)][_0x451b99][_0x4922aa(0x18ca)]});}}else _0x167ae6[_0x4922aa(0x1bd0)]({'title':_0x45d5b6[_0x4922aa(0x10b3)]?_0x4922aa(0x575)+_0x45d5b6[_0x4922aa(0x10b3)]+_0x4922aa(0x21db)+_0x45d5b6[_0x4922aa(0x2115)]:'api.cannedAnswer.delete','msg':_0x45d5b6['data']?JSON[_0x4922aa(0x2317)](_0x45d5b6[_0x4922aa(0x1c52)][_0x4922aa(0x18ca)]):_0x45d5b6[_0x4922aa(0x18ca)]||_0x45d5b6['toString']()});});},function(){});}function _0x25da89(_0x10882e){return _0x10882e===null?undefined:new Date(_0x10882e);}function _0x3e356f(_0x12cf2e){_0x29cb34['hide'](_0x12cf2e);}}const _0x28a4f4=_0x4f9652;;_0x3724b3[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q','$translate',_0x49a1e3(0x680),'customDashboards',_0x49a1e3(0x1d31),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting','crudPermissions'];function _0x3724b3(_0x3bd8ad,_0x527673,_0x1e83fd,_0x293c40,_0x26a639,_0x5653e9,_0x221965,_0x25bd28,_0x408f1b,_0x1fa5cf,_0x2ff86f,_0xf94e36,_0x113937,_0x5ddaae){const _0x581103=_0x49a1e3,_0x102647=this;_0x102647[_0x581103(0x1d3d)]=_0x2ff86f[_0x581103(0x808)](),_0x102647[_0x581103(0xbae)]=[],_0x102647['setting']=_0x113937,_0x102647[_0x581103(0x1947)]=_0xf94e36,_0x102647['crudPermissions']=_0x5ddaae,_0x102647['hasModulePermissions']={},_0x102647[_0x581103(0xccc)]=_0x102647['setting']&&_0x102647[_0x581103(0x28d6)][_0x581103(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x102647['title']=_0x581103(0x28b),_0x102647[_0x581103(0x1d31)]=angular[_0x581103(0x289e)](_0x408f1b),_0x102647[_0x581103(0xc3a)]=_0x25bd28,_0x102647[_0x581103(0x1f40)]=![];!_0x102647[_0x581103(0x1d31)]&&(_0x102647['customDashboard']={},_0x102647['title']='TOOLS.NEW_CUSTOMDASHBOARD',_0x102647[_0x581103(0x1f40)]=!![]);_0x102647[_0x581103(0x200e)]=_0x4e842b,_0x102647[_0x581103(0x1c0b)]=_0x2546c9,_0x102647['deleteCustomDashboard']=_0x52132e,_0x102647['getDateFromString']=_0x1f28ef,_0x102647[_0x581103(0x16cb)]=_0x25c197;function _0x4e842b(){const _0x350204=_0x581103;_0x102647['errors']=[],_0x1fa5cf[_0x350204(0x26df)][_0x350204(0x2479)](_0x102647[_0x350204(0x1d31)])[_0x350204(0x15e7)]['then'](function(_0x2dea30){const _0x342bd9=_0x350204;_0x102647[_0x342bd9(0xc3a)]['unshift'](_0x2dea30[_0x342bd9(0x14f8)]()),_0x221965['success']({'title':'CustomDashboard\x20properly\x20created','msg':_0x102647[_0x342bd9(0x1d31)][_0x342bd9(0x2494)]?_0x102647['customDashboard'][_0x342bd9(0x2494)]+'\x20has\x20been\x20created!':''}),_0x25c197(_0x2dea30);})[_0x350204(0x20cd)](function(_0x12bcb9){const _0x53ca41=_0x350204;if(_0x12bcb9[_0x53ca41(0x1c52)]&&_0x12bcb9['data'][_0x53ca41(0xbae)]&&_0x12bcb9[_0x53ca41(0x1c52)][_0x53ca41(0xbae)][_0x53ca41(0x1b9e)]){_0x102647['errors']=_0x12bcb9[_0x53ca41(0x1c52)][_0x53ca41(0xbae)]||[{'message':_0x12bcb9['toString'](),'type':_0x53ca41(0x2827)}];for(let _0x27e0ba=0x0;_0x27e0ba<_0x12bcb9[_0x53ca41(0x1c52)][_0x53ca41(0xbae)][_0x53ca41(0x1b9e)];_0x27e0ba+=0x1){_0x221965[_0x53ca41(0x1bd0)]({'title':_0x12bcb9[_0x53ca41(0x1c52)]['errors'][_0x27e0ba]['type'],'msg':_0x12bcb9['data'][_0x53ca41(0xbae)][_0x27e0ba][_0x53ca41(0x18ca)]});}}else _0x221965[_0x53ca41(0x1bd0)]({'title':_0x12bcb9['status']?_0x53ca41(0x575)+_0x12bcb9['status']+_0x53ca41(0x21db)+_0x12bcb9['statusText']:_0x53ca41(0x2827),'msg':_0x12bcb9[_0x53ca41(0x1c52)]?JSON[_0x53ca41(0x2317)](_0x12bcb9['data'][_0x53ca41(0x18ca)]):_0x12bcb9[_0x53ca41(0x2915)]()});});}function _0x2546c9(){const _0x4e9265=_0x581103;_0x102647[_0x4e9265(0xbae)]=[],_0x1fa5cf[_0x4e9265(0x26df)][_0x4e9265(0x2603)]({'id':_0x102647[_0x4e9265(0x1d31)]['id']},_0x102647['customDashboard'])['$promise'][_0x4e9265(0x64a)](function(_0x3fe5bb){const _0x14b917=_0x4e9265,_0x31e421=_0x28c606()[_0x14b917(0x27bc)](_0x102647[_0x14b917(0xc3a)],{'id':_0x3fe5bb['id']});_0x31e421&&_0x28c606()[_0x14b917(0x14fe)](_0x31e421,_0x28c606()['pick'](_0x3fe5bb[_0x14b917(0x14f8)](),_0x28c606()['keys'](_0x31e421))),_0x221965[_0x14b917(0x1339)]({'title':_0x14b917(0x1d33),'msg':_0x102647[_0x14b917(0x1d31)]['name']?_0x102647['customDashboard'][_0x14b917(0x2494)]+'\x20has\x20been\x20saved!':''}),_0x25c197(_0x3fe5bb);})[_0x4e9265(0x20cd)](function(_0x476794){const _0x7bd0c7=_0x4e9265;if(_0x476794[_0x7bd0c7(0x1c52)]&&_0x476794[_0x7bd0c7(0x1c52)][_0x7bd0c7(0xbae)]&&_0x476794[_0x7bd0c7(0x1c52)][_0x7bd0c7(0xbae)][_0x7bd0c7(0x1b9e)]){_0x102647['errors']=_0x476794['data'][_0x7bd0c7(0xbae)]||[{'message':_0x476794[_0x7bd0c7(0x2915)](),'type':_0x7bd0c7(0x1b6a)}];for(let _0x2c7d8b=0x0;_0x2c7d8b<_0x476794[_0x7bd0c7(0x1c52)][_0x7bd0c7(0xbae)][_0x7bd0c7(0x1b9e)];_0x2c7d8b++){_0x221965['error']({'title':_0x476794[_0x7bd0c7(0x1c52)]['errors'][_0x2c7d8b]['type'],'msg':_0x476794[_0x7bd0c7(0x1c52)]['errors'][_0x2c7d8b][_0x7bd0c7(0x18ca)]});}}else _0x221965[_0x7bd0c7(0x1bd0)]({'title':_0x476794[_0x7bd0c7(0x10b3)]?_0x7bd0c7(0x575)+_0x476794[_0x7bd0c7(0x10b3)]+_0x7bd0c7(0x21db)+_0x476794[_0x7bd0c7(0x2115)]:_0x7bd0c7(0x1b6a),'msg':_0x476794[_0x7bd0c7(0x1c52)]?JSON[_0x7bd0c7(0x2317)](_0x476794[_0x7bd0c7(0x1c52)]['message']):_0x476794[_0x7bd0c7(0x2915)]()});});}function _0x52132e(_0x4400f0){const _0x4b5e3b=_0x581103;_0x102647[_0x4b5e3b(0xbae)]=[];const _0x2b39a4=_0x293c40['confirm']()['title'](_0x4b5e3b(0x103a))[_0x4b5e3b(0x12b8)](_0x4b5e3b(0x2579))[_0x4b5e3b(0x213e)]('Delete\x20CustomDashboard')['ok'](_0x4b5e3b(0x2664))[_0x4b5e3b(0x101a)](_0x4b5e3b(0x1dc6))['targetEvent'](_0x4400f0);_0x293c40[_0x4b5e3b(0xa60)](_0x2b39a4)[_0x4b5e3b(0x64a)](function(){const _0x233528=_0x4b5e3b;_0x1fa5cf[_0x233528(0x26df)][_0x233528(0xabd)]({'id':_0x102647['customDashboard']['id']})['$promise'][_0x233528(0x64a)](function(){const _0x54fef2=_0x233528;_0x28c606()[_0x54fef2(0x21c7)](_0x102647['customDashboards'],{'id':_0x102647[_0x54fef2(0x1d31)]['id']}),_0x221965[_0x54fef2(0x1339)]({'title':'CustomDashboard\x20properly\x20deleted!','msg':(_0x102647['customDashboard'][_0x54fef2(0x2494)]||_0x54fef2(0x1d31))+_0x54fef2(0x1fa8)}),_0x25c197(_0x102647[_0x54fef2(0x1d31)]);})[_0x233528(0x20cd)](function(_0x122c4f){const _0x2118e4=_0x233528;if(_0x122c4f['data']&&_0x122c4f[_0x2118e4(0x1c52)]['errors']&&_0x122c4f['data'][_0x2118e4(0xbae)][_0x2118e4(0x1b9e)]){_0x102647[_0x2118e4(0xbae)]=_0x122c4f[_0x2118e4(0x1c52)]['errors']||[{'message':_0x122c4f[_0x2118e4(0x2915)](),'type':'api.dashboard.delete'}];for(let _0x557a9d=0x0;_0x557a9d<_0x122c4f[_0x2118e4(0x1c52)][_0x2118e4(0xbae)]['length'];_0x557a9d++){_0x221965[_0x2118e4(0x1bd0)]({'title':_0x122c4f['data'][_0x2118e4(0xbae)][_0x557a9d][_0x2118e4(0x2185)],'msg':_0x122c4f[_0x2118e4(0x1c52)][_0x2118e4(0xbae)][_0x557a9d][_0x2118e4(0x18ca)]});}}else _0x221965[_0x2118e4(0x1bd0)]({'title':_0x122c4f[_0x2118e4(0x10b3)]?'API:'+_0x122c4f[_0x2118e4(0x10b3)]+'\x20-\x20'+_0x122c4f[_0x2118e4(0x2115)]:_0x2118e4(0x1765),'msg':_0x122c4f['data']?JSON[_0x2118e4(0x2317)](_0x122c4f['data']['message']):_0x122c4f[_0x2118e4(0x18ca)]||_0x122c4f['toString']()});});},function(){});}function _0x1f28ef(_0x56590e){return _0x56590e===null?undefined:new Date(_0x56590e);}function _0x25c197(_0x5a1ba){const _0x184339=_0x581103;_0x293c40[_0x184339(0x268e)](_0x5a1ba);}}const _0x8d648c=_0x3724b3;;const _0x385fe6=_0x2e4a48['p']+'src/js/modules/main/apps/tools/views/customDashboards/create/dialog.html/dialog.html';;_0xdbee02[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x20d4),'$translate',_0x49a1e3(0xc3a),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),'toasty',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0xdbee02(_0x2df8f8,_0x354477,_0x37c03e,_0x52d818,_0x1fc6d7,_0x2a75c3,_0x5437c5,_0x35602c,_0x2aa8ea,_0x314922,_0x38ee1f,_0x4f16d2,_0x25c313,_0x404cc0,_0x34097f,_0x3d1fb4,_0x16bbd7){const _0x377eab=_0x49a1e3,_0x1879fe=this;_0x1879fe[_0x377eab(0x1947)]=_0x3d1fb4,_0x1879fe[_0x377eab(0x28d6)]=_0x16bbd7,_0x1879fe[_0x377eab(0x1d3d)]=_0x34097f[_0x377eab(0x808)](),_0x1879fe[_0x377eab(0xc3a)]=_0x2aa8ea||{'count':0x0,'rows':[]},_0x1879fe[_0x377eab(0x16a8)]=_0x314922,_0x1879fe[_0x377eab(0x16b2)]=_0x38ee1f&&_0x38ee1f[_0x377eab(0xb90)]==0x1?_0x38ee1f[_0x377eab(0x28b8)][0x0]:null,_0x1879fe['crudPermissions']=_0x34097f[_0x377eab(0xa7e)](_0x1879fe[_0x377eab(0x16b2)]?_0x1879fe[_0x377eab(0x16b2)][_0x377eab(0x402)]:null),_0x1879fe[_0x377eab(0x185d)]=_0x377eab(0xc3a),_0x1879fe[_0x377eab(0x300)]='',_0x1879fe[_0x377eab(0x2748)]=null,_0x1879fe[_0x377eab(0x27b9)]=[],_0x1879fe[_0x377eab(0x289a)]={'fields':'createdAt,updatedAt,id,name,description','sort':_0x377eab(0x260c),'limit':0xa,'page':0x1},_0x1879fe[_0x377eab(0xff6)]=_0x41c3f8,_0x1879fe[_0x377eab(0xb4c)]=_0x1703a1,_0x1879fe[_0x377eab(0x1262)]=_0x228eb7,_0x1879fe[_0x377eab(0x1339)]=_0x1a1f67,_0x1879fe[_0x377eab(0xa2b)]=_0x2e0aab,_0x1879fe[_0x377eab(0xe48)]=_0x1611fc,_0x1879fe['deleteCustomDashboard']=_0x4f9542,_0x1879fe[_0x377eab(0x13ec)]=_0x4d6885,_0x1879fe[_0x377eab(0x201b)]=_0x2dd8a7,_0x1879fe[_0x377eab(0x861)]=_0x3a7f2e,_0x1879fe['selectAllCustomDashboards']=_0x2336b6;function _0x41c3f8(_0x311a43){const _0x125d24=_0x377eab;_0x37c03e['go'](_0x125d24(0x65e),{'id':_0x311a43['id'],'customDashboard':_0x311a43,'crudPermissions':_0x1879fe[_0x125d24(0x402)]});}function _0x1703a1(_0x379418){const _0x1da952=_0x377eab;_0x37c03e['go'](_0x1da952(0x1088),{'id':_0x379418['id']});}function _0x228eb7(_0x237500,_0x550f27){const _0x4b4201=_0x377eab,_0x1b19ab=_0x1fc6d7[_0x4b4201(0x856)]()[_0x4b4201(0x2021)](_0x4b4201(0x1231)+_0x28c606()[_0x4b4201(0xc01)]('customDashboard')+'?')['htmlContent'](_0x4b4201(0x50b)+(_0x237500[_0x4b4201(0x2494)]||_0x4b4201(0x1d31))+_0x4b4201(0x26d0)+_0x4b4201(0x4b8))[_0x4b4201(0x213e)]('delete\x20customDashboard')[_0x4b4201(0x2283)](_0x550f27)['ok']('OK')[_0x4b4201(0x101a)]('CANCEL');_0x1fc6d7[_0x4b4201(0xa60)](_0x1b19ab)[_0x4b4201(0x64a)](function(){_0x4f9542(_0x237500);},function(){const _0x912572=_0x4b4201;console[_0x912572(0x9b4)](_0x912572(0x18fd));});}let _0x1ecda0=!![],_0x567c42=0x1;_0x2df8f8[_0x377eab(0xc62)](_0x377eab(0x1cb9),function(_0x920a43,_0x11be6a){const _0x105a9d=_0x377eab;_0x1ecda0?_0x5437c5(function(){_0x1ecda0=![];}):(!_0x11be6a&&(_0x567c42=_0x1879fe['query'][_0x105a9d(0xc72)]),_0x920a43!==_0x11be6a&&(_0x1879fe[_0x105a9d(0x289a)][_0x105a9d(0xc72)]=0x1),!_0x920a43&&(_0x1879fe[_0x105a9d(0x289a)][_0x105a9d(0xc72)]=_0x567c42),_0x1879fe['getCustomDashboards']());});function _0x1a1f67(_0x205e1f){const _0x505db1=_0x377eab;_0x1879fe[_0x505db1(0xc3a)]=_0x205e1f||{'count':0x0,'rows':[]};}function _0x2e0aab(){const _0x3f7284=_0x377eab;_0x1879fe[_0x3f7284(0x289a)][_0x3f7284(0x24f9)]=(_0x1879fe[_0x3f7284(0x289a)]['page']-0x1)*_0x1879fe[_0x3f7284(0x289a)]['limit'],_0x34097f[_0x3f7284(0x4de)](_0x3f7284(0x333))?_0x1879fe[_0x3f7284(0x1713)]=_0x4f16d2[_0x3f7284(0x26df)]['get'](_0x1879fe[_0x3f7284(0x289a)],_0x1a1f67)['$promise']:(_0x1879fe[_0x3f7284(0x289a)]['id']=_0x1879fe['userProfile']['id'],_0x1879fe['query'][_0x3f7284(0xa21)]='CustomDashboards',_0x1879fe['promise']=_0x4f16d2[_0x3f7284(0x16a8)][_0x3f7284(0x2565)](_0x1879fe[_0x3f7284(0x289a)],_0x1a1f67)[_0x3f7284(0x15e7)]);}function _0x1611fc(_0x7dd10a,_0x19ac4a){const _0x43a3f3=_0x377eab;_0x1fc6d7['show']({'controller':_0x43a3f3(0x13e2),'controllerAs':'vm','templateUrl':_0x385fe6,'parent':angular[_0x43a3f3(0x1f81)](_0x2a75c3[_0x43a3f3(0xb49)]),'targetEvent':_0x7dd10a,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x19ac4a,'customDashboards':_0x1879fe[_0x43a3f3(0xc3a)][_0x43a3f3(0x28b8)],'license':_0x1879fe[_0x43a3f3(0x1947)],'setting':_0x1879fe[_0x43a3f3(0x28d6)],'crudPermissions':_0x1879fe[_0x43a3f3(0x402)]}});}function _0x4f9542(_0xc37afa){const _0x807e15=_0x377eab;_0x4f16d2['dashboard']['delete']({'id':_0xc37afa['id']})[_0x807e15(0x15e7)]['then'](function(){const _0x4b6a3e=_0x807e15;_0x28c606()['remove'](_0x1879fe[_0x4b6a3e(0xc3a)]['rows'],{'id':_0xc37afa['id']}),_0x1879fe[_0x4b6a3e(0xc3a)][_0x4b6a3e(0xb90)]-=0x1,!_0x1879fe[_0x4b6a3e(0xc3a)][_0x4b6a3e(0x28b8)][_0x4b6a3e(0x1b9e)]&&_0x1879fe[_0x4b6a3e(0xa2b)](),_0x404cc0[_0x4b6a3e(0x1339)]({'title':_0x28c606()['startCase'](_0x4b6a3e(0x1d92))+_0x4b6a3e(0x2502),'msg':_0xc37afa[_0x4b6a3e(0x2494)]?_0xc37afa[_0x4b6a3e(0x2494)]+'\x20has\x20been\x20deleted!':''});})[_0x807e15(0x20cd)](function(_0x228fa1){const _0x333adc=_0x807e15;if(_0x228fa1[_0x333adc(0x1c52)]&&_0x228fa1[_0x333adc(0x1c52)][_0x333adc(0xbae)]&&_0x228fa1['data'][_0x333adc(0xbae)]['length']){_0x1879fe[_0x333adc(0xbae)]=_0x228fa1[_0x333adc(0x1c52)][_0x333adc(0xbae)]||[{'message':_0x228fa1[_0x333adc(0x2915)](),'type':_0x333adc(0x277d)}];for(let _0x3669f6=0x0;_0x3669f6<_0x228fa1['data'][_0x333adc(0xbae)]['length'];_0x3669f6++){_0x404cc0[_0x333adc(0x1bd0)]({'title':_0x228fa1[_0x333adc(0x1c52)][_0x333adc(0xbae)][_0x3669f6][_0x333adc(0x2185)],'msg':_0x228fa1[_0x333adc(0x1c52)]['errors'][_0x3669f6][_0x333adc(0x18ca)]});}}else _0x404cc0[_0x333adc(0x1bd0)]({'title':_0x228fa1[_0x333adc(0x10b3)]?_0x333adc(0x575)+_0x228fa1[_0x333adc(0x10b3)]+_0x333adc(0x21db)+_0x228fa1[_0x333adc(0x2115)]:_0x333adc(0x277d),'msg':_0x228fa1[_0x333adc(0x1c52)]?JSON['stringify'](_0x228fa1[_0x333adc(0x1c52)][_0x333adc(0x18ca)]):_0x228fa1[_0x333adc(0x18ca)]||_0x228fa1[_0x333adc(0x2915)]()});});}function _0x4d6885(){const _0x41f462=_0x377eab,_0x3af115=angular[_0x41f462(0x289e)](_0x1879fe[_0x41f462(0x27b9)]);return _0x1879fe[_0x41f462(0x27b9)]=[],_0x3af115;}function _0x2dd8a7(_0x2fafd5){const _0x199d93=_0x377eab,_0x11272a=_0x1fc6d7[_0x199d93(0x856)]()['title'](_0x199d93(0x222b))[_0x199d93(0x33a)](_0x199d93(0x50b)+_0x1879fe[_0x199d93(0x27b9)][_0x199d93(0x1b9e)]+_0x199d93(0x163e)+_0x199d93(0x4b8))['ariaLabel']('delete\x20CustomDashboards')[_0x199d93(0x2283)](_0x2fafd5)['ok']('OK')[_0x199d93(0x101a)]('CANCEL');_0x1fc6d7[_0x199d93(0xa60)](_0x11272a)['then'](function(){const _0x5e62cc=_0x199d93;_0x1879fe[_0x5e62cc(0x27b9)]['forEach'](function(_0x4451fa){_0x4f9542(_0x4451fa);}),_0x1879fe[_0x5e62cc(0x27b9)]=[];});}function _0x3a7f2e(){_0x1879fe['selectedCustomDashboards']=[];}function _0x2336b6(){const _0x3c1257=_0x377eab;_0x1879fe[_0x3c1257(0x27b9)]=_0x1879fe[_0x3c1257(0xc3a)][_0x3c1257(0x28b8)];}}const _0x14ac34=_0xdbee02;;_0x83c61e['$inject']=[_0x49a1e3(0x212a),'$state','toasty',_0x49a1e3(0xa19),_0x49a1e3(0x1d31),_0x49a1e3(0xc3a),_0x49a1e3(0x298c)];function _0x83c61e(_0x2c0e31,_0x13ecf2,_0x4243f1,_0x5d45d4,_0x594a2a,_0x441834,_0x29152d){const _0x341fdc=_0x49a1e3,_0xceb3b0=this;_0xceb3b0[_0x341fdc(0x1f40)]=!![],_0xceb3b0[_0x341fdc(0x1d31)]=angular[_0x341fdc(0x289e)](_0x594a2a),_0xceb3b0[_0x341fdc(0xc3a)]=_0x441834,_0xceb3b0[_0x341fdc(0x2021)]=_0x29152d[_0x341fdc(0x2292)](_0x341fdc(0xd0f));_0x594a2a&&_0x594a2a[_0x341fdc(0x2494)]&&(_0xceb3b0[_0x341fdc(0x2021)]+=':\x20'+_0x594a2a[_0x341fdc(0x2494)]);_0xceb3b0['cloneCustomDashboard']=_0x322bcd,_0xceb3b0[_0x341fdc(0x16cb)]=_0x9ff567;function _0x322bcd(){const _0x3f3a63=_0x341fdc;return _0x5d45d4[_0x3f3a63(0x26df)][_0x3f3a63(0x24b2)]({'id':_0x594a2a['id'],'includeAll':!![]},_0xceb3b0[_0x3f3a63(0x1d31)])[_0x3f3a63(0x15e7)]['then'](function(_0x28f8c4){const _0x3a40eb=_0x3f3a63;_0xceb3b0[_0x3a40eb(0xc3a)][_0x3a40eb(0x1891)](_0x28f8c4[_0x3a40eb(0x14f8)]()),_0x4243f1['success']({'title':_0x3a40eb(0x1b6e),'msg':_0xceb3b0[_0x3a40eb(0x1d31)]['name']?_0xceb3b0['customDashboard'][_0x3a40eb(0x2494)]+_0x3a40eb(0x28e7):''}),_0x13ecf2['go']('app.tools.customDashboards.edit',{'id':_0x28f8c4['id']}),_0x9ff567(_0x28f8c4);})[_0x3f3a63(0x20cd)](function(_0x3841fb){const _0x2fbb40=_0x3f3a63;if(_0x3841fb[_0x2fbb40(0x1c52)]&&_0x3841fb[_0x2fbb40(0x1c52)][_0x2fbb40(0xbae)]&&_0x3841fb[_0x2fbb40(0x1c52)][_0x2fbb40(0xbae)]['length']){_0xceb3b0[_0x2fbb40(0xbae)]=_0x3841fb[_0x2fbb40(0x1c52)][_0x2fbb40(0xbae)]||[{'message':_0x3841fb[_0x2fbb40(0x2915)](),'type':'api.dashboard.clone'}];for(let _0x3c6e35=0x0;_0x3c6e35<_0x3841fb[_0x2fbb40(0x1c52)][_0x2fbb40(0xbae)]['length'];_0x3c6e35+=0x1){_0x4243f1[_0x2fbb40(0x1bd0)]({'title':_0x3841fb[_0x2fbb40(0x1c52)][_0x2fbb40(0xbae)][_0x3c6e35]['type'],'msg':_0x3841fb[_0x2fbb40(0x1c52)][_0x2fbb40(0xbae)][_0x3c6e35][_0x2fbb40(0x18ca)]});}}else _0x4243f1['error']({'title':_0x3841fb[_0x2fbb40(0x10b3)]?_0x2fbb40(0x575)+_0x3841fb[_0x2fbb40(0x10b3)]+_0x2fbb40(0x21db)+_0x3841fb[_0x2fbb40(0x2115)]:_0x2fbb40(0x643),'msg':_0x3841fb[_0x2fbb40(0x1c52)]?JSON[_0x2fbb40(0x2317)](_0x3841fb['data'][_0x2fbb40(0x18ca)]):_0x3841fb[_0x2fbb40(0x2915)]()});});}function _0x9ff567(_0x32ad23){const _0x2458ce=_0x341fdc;_0x2c0e31[_0x2458ce(0x268e)](_0x32ad23);}}const _0x3075f1=_0x83c61e;;const _0x2e179c=_0x2e4a48['p']+'src/js/modules/main/apps/tools/views/customDashboards/edit/dashboard/dialog.html/dialog.html';;_0x6e3de7['$inject']=[_0x49a1e3(0x212a),'$document',_0x49a1e3(0x633),_0x49a1e3(0x680),'api'];function _0x6e3de7(_0x4be8f2,_0x2c599f,_0x263777,_0x561023,_0x464a2d){const _0x3f421f=_0x49a1e3,_0x156750=this;_0x156750[_0x3f421f(0x1d31)]={},_0x156750[_0x3f421f(0x2dc)]=_0x464a2d[_0x3f421f(0x19bd)]['getVoiceQueues']({'fields':_0x3f421f(0x1427)}),_0x156750[_0x3f421f(0x2354)]=_0x4c1b7a,_0x156750['createOrEditWidget']=_0x38ea1b,_0x156750[_0x3f421f(0x16d2)]=_0x163012;function _0x4c1b7a(_0x392f01,_0x4fd58d){const _0x4fec93=_0x3f421f;return _0x156750['crudPermissions']=typeof _0x4fd58d!==_0x4fec93(0x19a1)?_0x4fd58d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x156750[_0x4fec93(0x1d31)]=_0x392f01,_0x156750[_0x4fec93(0x1d31)][_0x4fec93(0x1b44)]={'enabled':!![],'handle':_0x4fec93(0x1a0f),'stop':_0xb53107},_0x156750['customDashboard'][_0x4fec93(0x2987)]={'enabled':!![],'handle':_0x4fec93(0x79e),'stop':_0xb53107},_0x156750['customDashboard']['widgets']=[],_0x464a2d[_0x4fec93(0x26df)][_0x4fec93(0x26d3)]({'id':_0x392f01['id']})[_0x4fec93(0x15e7)][_0x4fec93(0x64a)](function(_0x2e9535){const _0x1e67ec=_0x4fec93;if(_0x2e9535&&_0x2e9535[_0x1e67ec(0xb90)]&&_0x2e9535[_0x1e67ec(0x28b8)])for(let _0x535dd7=0x0;_0x535dd7<_0x2e9535[_0x1e67ec(0x28b8)][_0x1e67ec(0x1b9e)];_0x535dd7+=0x1){_0x2e9535[_0x1e67ec(0x28b8)][_0x535dd7][_0x1e67ec(0x2dc)]=_0x156750[_0x1e67ec(0x2dc)],_0x2e9535[_0x1e67ec(0x28b8)][_0x535dd7][_0x1e67ec(0x1b6)]=_0x28c606()[_0x1e67ec(0x1de5)](_0x156750[_0x1e67ec(0x2dc)][_0x1e67ec(0x28b8)],'id'),_0x2e9535[_0x1e67ec(0x28b8)][_0x535dd7]['templateUrl']=_0x1e67ec(0x1fa3)+_0x2e9535[_0x1e67ec(0x28b8)][_0x535dd7][_0x1e67ec(0x2185)]+'/ms-widget-engine.'+_0x2e9535['rows'][_0x535dd7]['type']+_0x1e67ec(0x203c),_0x156750[_0x1e67ec(0x1d31)][_0x1e67ec(0xa63)][_0x1e67ec(0x1954)](_0x2e9535[_0x1e67ec(0x28b8)][_0x535dd7]);}})[_0x4fec93(0x20cd)](function(_0x3de394){console['error'](_0x3de394);});}function _0x38ea1b(_0x2836d1){const _0x76f373=_0x3f421f;if(_0x2836d1&&_0x2836d1[_0x76f373(0x2d9)])for(let _0x23796b=0x0;_0x23796b<_0x2836d1[_0x76f373(0x2d9)]['length'];_0x23796b+=0x1){_0x2836d1[_0x76f373(0x2d9)][_0x23796b]['name']===_0x76f373(0x328)&&(_0x2836d1['reportType']=_0x2836d1[_0x76f373(0x2d9)][_0x23796b][_0x76f373(0x2185)]),_0x2836d1[_0x2836d1[_0x76f373(0x2d9)][_0x23796b][_0x76f373(0x2494)]]=_0x2836d1['attrs'][_0x23796b][_0x76f373(0x1096)];}_0x4be8f2['show']({'controller':_0x76f373(0x675),'controllerAs':'vm','templateUrl':_0x2e179c,'parent':angular[_0x76f373(0x1f81)](_0x2c599f[_0x76f373(0xb49)]),'clickOutsideToClose':!![],'locals':{'dashboarditem':_0x2836d1,'dashboard':_0x156750[_0x76f373(0x1d31)]['widgets'],'license':null,'setting':null,'crudPermissions':_0x156750[_0x76f373(0x402)]}})[_0x76f373(0x64a)](function(_0x1d72b7){const _0x448be7=_0x76f373;if(_0x1d72b7)for(let _0x4d099e=0x0;_0x4d099e<_0x156750[_0x448be7(0x1d31)]['widgets']['length'];_0x4d099e+=0x1){_0x156750[_0x448be7(0x1d31)]['widgets'][_0x4d099e]['id']===_0x1d72b7['id']&&(_0x156750[_0x448be7(0x1d31)]['widgets'][_0x4d099e][_0x448be7(0x2d9)]=_0x1d72b7[_0x448be7(0x2d9)],_0x156750['customDashboard']['widgets'][_0x4d099e]['voiceQueues']=_0x156750['voiceQueues'],_0x156750[_0x448be7(0x1d31)]['widgets'][_0x4d099e][_0x448be7(0x1b6)]=_0x28c606()[_0x448be7(0x1de5)](_0x156750[_0x448be7(0x2dc)]['rows'],'id'),_0x156750[_0x448be7(0x1d31)][_0x448be7(0xa63)][_0x4d099e][_0x448be7(0x2928)]=_0x448be7(0x1fa3)+_0x156750[_0x448be7(0x1d31)][_0x448be7(0xa63)][_0x4d099e]['type']+_0x448be7(0xfcb)+_0x156750[_0x448be7(0x1d31)][_0x448be7(0xa63)][_0x4d099e][_0x448be7(0x2185)]+_0x448be7(0x203c));}});}function _0x163012(_0x2cdecf){const _0x3a8bb8=_0x3f421f,_0x5de4df=_0x4be8f2['confirm']()['title'](_0x3a8bb8(0xbbb)+_0x2cdecf[_0x3a8bb8(0x2021)]+'?')[_0x3a8bb8(0x250d)]('')[_0x3a8bb8(0x213e)]('Delete\x20Widget')['ok'](_0x3a8bb8(0x1ff5))[_0x3a8bb8(0x101a)]('NO');_0x4be8f2[_0x3a8bb8(0xa60)](_0x5de4df)[_0x3a8bb8(0x64a)](function(){const _0x28e39a=_0x3a8bb8;return _0x464a2d['dashboardItem'][_0x28e39a(0xabd)]({'id':_0x2cdecf['id']})['$promise'][_0x28e39a(0x64a)](function(){const _0xa60c07=_0x28e39a;_0x28c606()[_0xa60c07(0x21c7)](_0x156750[_0xa60c07(0x1d31)]['widgets'],{'id':_0x2cdecf['id']}),_0x561023[_0xa60c07(0x1339)]({'title':'Widget\x20deleted!','msg':_0x2cdecf[_0xa60c07(0x2494)]?_0x2cdecf[_0xa60c07(0x2494)]+_0xa60c07(0x1fa8):'Widget\x20has\x20been\x20deleted!'});})['catch'](function(_0x55b80e){const _0x395274=_0x28e39a;if(_0x55b80e[_0x395274(0x1c52)]&&_0x55b80e[_0x395274(0x1c52)][_0x395274(0xbae)]&&_0x55b80e[_0x395274(0x1c52)][_0x395274(0xbae)][_0x395274(0x1b9e)]){_0x156750[_0x395274(0xbae)]=_0x55b80e[_0x395274(0x1c52)][_0x395274(0xbae)]||[{'message':_0x55b80e['toString'](),'type':_0x395274(0x2077)}];for(let _0xff4a7a=0x0;_0xff4a7a<_0x55b80e[_0x395274(0x1c52)][_0x395274(0xbae)][_0x395274(0x1b9e)];_0xff4a7a++){_0x561023['error']({'title':_0x55b80e[_0x395274(0x1c52)][_0x395274(0xbae)][_0xff4a7a]['type'],'msg':_0x55b80e[_0x395274(0x1c52)][_0x395274(0xbae)][_0xff4a7a][_0x395274(0x18ca)]});}}else _0x561023[_0x395274(0x1bd0)]({'title':_0x55b80e[_0x395274(0x10b3)]?_0x395274(0x575)+_0x55b80e[_0x395274(0x10b3)]+'\x20-\x20'+_0x55b80e[_0x395274(0x2115)]:_0x395274(0x277d),'msg':_0x55b80e[_0x395274(0x1c52)]?JSON['stringify'](_0x55b80e[_0x395274(0x1c52)]['message']):_0x55b80e['message']||_0x55b80e[_0x395274(0x2915)]()});console[_0x395274(0x1bd0)](_0x55b80e);});});}function _0xb53107(_0x3b41ce,_0x2d3167,_0x47cb7e){const _0x3030f4=_0x3f421f;return _0x464a2d[_0x3030f4(0x1681)][_0x3030f4(0x2603)](_0x47cb7e)[_0x3030f4(0x15e7)][_0x3030f4(0x20cd)](function(_0x5512dd){console['error'](_0x5512dd);});}}const _0x5c20b5=_0x6e3de7;;const _0x406996=_0x2e4a48['p']+_0x49a1e3(0x92b);;_0x9c25d5[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog','$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),'dashboard',_0x49a1e3(0x2961),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x9c25d5(_0x47de43,_0x4a4b7d,_0x1fa755,_0x4f45cc,_0x395a9d,_0x5960e6,_0x516ddd,_0x108b8d,_0x866bfa,_0x1c2e2d,_0x489948,_0x16baee,_0x25e04e,_0x10ef36){const _0x53f8db=_0x49a1e3,_0x18cba7=this;_0x18cba7[_0x53f8db(0x1d3d)]=_0x489948[_0x53f8db(0x808)](),_0x18cba7[_0x53f8db(0xbae)]=[],_0x18cba7[_0x53f8db(0x28d6)]=_0x25e04e,_0x18cba7['license']=_0x16baee,_0x18cba7[_0x53f8db(0x402)]=_0x10ef36,_0x18cba7[_0x53f8db(0x6c2)]={},_0x18cba7[_0x53f8db(0xccc)]=_0x18cba7['setting']&&_0x18cba7[_0x53f8db(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x18cba7[_0x53f8db(0x2021)]='TOOLS.EDIT_DASHBOARDITEM',_0x18cba7[_0x53f8db(0x2961)]=angular['copy'](_0x866bfa),_0x18cba7[_0x53f8db(0x26df)]=_0x108b8d,_0x18cba7[_0x53f8db(0x1c0f)]=![],_0x18cba7[_0x53f8db(0xa8f)]=[],_0x18cba7['query']={'fields':_0x53f8db(0xe31),'limit':0xa,'page':0x1,'sort':_0x53f8db(0x260c)};!_0x18cba7[_0x53f8db(0x2961)]?(_0x18cba7[_0x53f8db(0x2961)]={'type':_0x53f8db(0x26d8),'attrUrl':_0x53f8db(0x2262),'attrHourFormat':'HH:mm:ss','attrTimezone':_0x53f8db(0x24f8),'attrMetric':_0x53f8db(0x1318),'attrSerie1':_0x53f8db(0x1318),'attrSerie2':_0x53f8db(0x8f1),'attrSerie3':_0x53f8db(0x8f1),'attrRefresh':0xa,'attrFontSize':0x14,'foreground':_0x53f8db(0x253c),'background':'#ffffff'},_0x18cba7[_0x53f8db(0x2021)]='TOOLS.NEW_DASHBOARDITEM',_0x18cba7['newDashboardItem']=!![]):_0x18cba7[_0x53f8db(0x2961)]['type']==_0x53f8db(0x27c7)&&(_0x18cba7['apiName']=_0x18cba7[_0x53f8db(0x2961)]['reportType']===_0x53f8db(0x1ad6)?_0x53f8db(0x1d97):'analyticDefaultReport',_0x1c2e2d[_0x18cba7[_0x53f8db(0x1c8e)]][_0x53f8db(0x896)]({'fields':_0x53f8db(0x1aa4)})[_0x53f8db(0x15e7)]['then'](function(_0x5397b2){const _0x107582=_0x53f8db;_0x18cba7[_0x107582(0x1e94)]=_0x28c606()['find'](_0x5397b2[_0x107582(0x28b8)],{'id':_0x18cba7[_0x107582(0x2961)][_0x107582(0x328)]}),_0x18cba7['dashboarditem'][_0x107582(0x1565)]=_0x18cba7[_0x107582(0x1e94)][_0x107582(0x2494)],_0x18cba7['query'][_0x107582(0x2854)]=_0x18cba7[_0x107582(0x1e94)]['parent'];}));_0x18cba7[_0x53f8db(0x1f31)]=_0x1bee52,_0x18cba7['saveDashboardItem']=_0x5bfc92,_0x18cba7[_0x53f8db(0x2868)]=_0x4fdda7,_0x18cba7[_0x53f8db(0x1605)]=_0x5e2597,_0x18cba7[_0x53f8db(0x267f)]=_0xe38e86,_0x18cba7[_0x53f8db(0x27db)]=_0x575e0d,_0x18cba7[_0x53f8db(0x179a)]=_0x303c90,_0x18cba7[_0x53f8db(0x2647)]=_0xc9d0fe,_0x18cba7[_0x53f8db(0x16cb)]=_0x1d995d,_0x1c2e2d[_0x53f8db(0x1948)][_0x53f8db(0x896)]({})[_0x53f8db(0x15e7)][_0x53f8db(0x64a)](function(_0x58f80d){const _0x396a0d=_0x53f8db;_0x18cba7[_0x396a0d(0x9e9)]=_0x58f80d['rows']||[];})[_0x53f8db(0x20cd)](function(_0x4dce0e){const _0x47379b=_0x53f8db;_0x516ddd['error']({'title':_0x4dce0e[_0x47379b(0x10b3)]?_0x47379b(0x575)+_0x4dce0e[_0x47379b(0x10b3)]+_0x47379b(0x21db)+_0x4dce0e['statusText']:_0x47379b(0xff7),'msg':_0x4dce0e['data']?JSON[_0x47379b(0x2317)](_0x4dce0e[_0x47379b(0x1c52)]):_0x4dce0e['toString']()});});const _0x2e8872=[{'id':0x191,'type':'inbound'},{'id':0x5dd,'type':_0x53f8db(0xbce)}];let _0x28fb6c=null;_0x489948[_0x53f8db(0x4de)](_0x53f8db(0x333))?_0x1c2e2d['voiceQueue'][_0x53f8db(0x896)]({'fields':_0x53f8db(0x2ba),'sort':'name','nolimit':'true'})[_0x53f8db(0x15e7)][_0x53f8db(0x64a)](function(_0x203a8d){const _0x5754a0=_0x53f8db;_0x18cba7['voiceQueues']=_0x203a8d[_0x5754a0(0x28b8)]||[];})['catch'](function(_0x5c8411){const _0x516deb=_0x53f8db;_0x516ddd['error']({'title':_0x5c8411[_0x516deb(0x10b3)]?_0x516deb(0x575)+_0x5c8411['status']+_0x516deb(0x21db)+_0x5c8411[_0x516deb(0x2115)]:'SYSTEM:GET_VOICEQUEUES','msg':_0x5c8411[_0x516deb(0x1c52)]?JSON[_0x516deb(0x2317)](_0x5c8411[_0x516deb(0x1c52)]):_0x5c8411['toString']()});}):_0x1c2e2d[_0x53f8db(0x178b)][_0x53f8db(0x896)]({'fields':_0x53f8db(0x2ba),'sort':_0x53f8db(0x2494),'nolimit':_0x53f8db(0x1685)})['$promise'][_0x53f8db(0x64a)](function(_0x276693){const _0x5df0cd=_0x53f8db;_0x28fb6c=_0x276693[_0x5df0cd(0x28b8)]||[];})[_0x53f8db(0x64a)](function(){const _0x11f6e5=_0x53f8db,_0x51d728=[];for(let _0x10e67c=0x0;_0x10e67c<_0x2e8872[_0x11f6e5(0x1b9e)];_0x10e67c++){_0x51d728['push'](_0x1c2e2d[_0x11f6e5(0x16b2)]['get']({'userProfileId':_0x18cba7['currentUser'][_0x11f6e5(0x21ac)],'sectionId':_0x2e8872[_0x10e67c]['id']})['$promise']);}return _0x395a9d[_0x11f6e5(0x2705)](_0x51d728);})[_0x53f8db(0x64a)](function(_0x115ca5){const _0x52666e=_0x53f8db,_0x5bb51c=_0x28c606()['map'](_0x115ca5,function(_0x4bbd22){const _0x54d630=a0_0x4127;return _0x4bbd22&&_0x4bbd22[_0x54d630(0x28b8)]?_0x4bbd22['rows'][0x0]:null;}),_0x1841dc=[];for(let _0x3f1ee0=0x0;_0x3f1ee0<_0x2e8872[_0x52666e(0x1b9e)];_0x3f1ee0++){const _0x3ee87d=_0x28c606()[_0x52666e(0x27bc)](_0x5bb51c,[_0x52666e(0xf7b),_0x2e8872[_0x3f1ee0]['id']]);if(_0x3ee87d){if(!_0x3ee87d[_0x52666e(0x11da)])_0x1841dc['push'](_0x1c2e2d[_0x52666e(0x1617)][_0x52666e(0x896)]({'sectionId':_0x3ee87d['id']})[_0x52666e(0x15e7)]);else{const _0x27bd3a=[];_0x28fb6c[_0x52666e(0x1397)](function(_0x2f01e2){const _0x1a5f2f=_0x52666e;_0x2f01e2[_0x1a5f2f(0x2185)]===_0x2e8872[_0x3f1ee0][_0x1a5f2f(0x2185)]&&_0x27bd3a[_0x1a5f2f(0x1954)](_0x2f01e2);}),_0x1841dc[_0x52666e(0x1954)]({'rows':_0x27bd3a,'count':_0x27bd3a[_0x52666e(0x1b9e)]});}}}return _0x395a9d[_0x52666e(0x2705)](_0x1841dc);})['then'](function(_0x3c3055){const _0xb46a82=_0x53f8db,_0x2787fe=[];let _0x3b8de2=null;_0x18cba7[_0xb46a82(0x2961)]&&(_0x3b8de2=_0x28c606()[_0xb46a82(0x27bc)](_0x28fb6c,{'id':Number(_0x18cba7[_0xb46a82(0x2961)][_0xb46a82(0xa58)])}));for(let _0x20b7db=0x0;_0x20b7db<_0x3c3055[_0xb46a82(0x1b9e)];_0x20b7db++){const _0x52102c=_0x3c3055[_0x20b7db][_0xb46a82(0x28b8)]||[];_0x52102c[_0xb46a82(0x1397)](function(_0x3a23d0){const _0x3bd489=_0xb46a82;_0x2787fe[_0x3bd489(0x1954)](_0x3a23d0);});}_0x3b8de2&&!_0x28c606()[_0xb46a82(0x25f8)](_0x2787fe,[_0xb46a82(0x145),_0x3b8de2['id']])&&_0x28fb6c[_0xb46a82(0x1397)](function(_0x92a90d){const _0x2fc88b=_0xb46a82;_0x92a90d['id']===_0x3b8de2['id']&&(_0x92a90d[_0x2fc88b(0xd4f)]=![],_0x2787fe[_0x2fc88b(0x1954)](_0x92a90d));}),_0x18cba7[_0xb46a82(0x2dc)]=_0x2787fe;})['catch'](function(_0x4cf758){const _0x26fb67=_0x53f8db;_0x516ddd['error']({'title':_0x4cf758[_0x26fb67(0x10b3)]?_0x26fb67(0x575)+_0x4cf758['status']+'\x20-\x20'+_0x4cf758['statusText']:'SYSTEM:GETvoiceQueues','msg':_0x4cf758['data']?JSON[_0x26fb67(0x2317)](_0x4cf758[_0x26fb67(0x1c52)]):_0x4cf758[_0x26fb67(0x2915)]()});});function _0x1bee52(){const _0x249d21=_0x53f8db;_0x18cba7['errors']=[],_0x1c2e2d[_0x249d21(0x26df)][_0x249d21(0x290c)]({'id':_0x4a4b7d[_0x249d21(0x1b48)]['id']},_0x18cba7[_0x249d21(0x2961)])[_0x249d21(0x15e7)][_0x249d21(0x64a)](function(_0x3ce9e6){const _0x2673e2=_0x249d21;_0x18cba7[_0x2673e2(0x26df)][_0x2673e2(0x1891)](_0x3ce9e6[_0x2673e2(0x14f8)]()),_0x516ddd[_0x2673e2(0x1339)]({'title':_0x2673e2(0x22fa),'msg':_0x18cba7[_0x2673e2(0x2961)]['name']?_0x18cba7['dashboarditem']['name']+_0x2673e2(0x258d):''}),_0x1d995d(_0x3ce9e6);})[_0x249d21(0x20cd)](function(_0x41577d){const _0x5b4074=_0x249d21;if(_0x41577d[_0x5b4074(0x1c52)]&&_0x41577d[_0x5b4074(0x1c52)][_0x5b4074(0xbae)]&&_0x41577d['data'][_0x5b4074(0xbae)][_0x5b4074(0x1b9e)]){_0x18cba7['errors']=_0x41577d[_0x5b4074(0x1c52)][_0x5b4074(0xbae)]||[{'message':_0x41577d[_0x5b4074(0x2915)](),'type':_0x5b4074(0xc4f)}];for(let _0x385c85=0x0;_0x385c85<_0x41577d[_0x5b4074(0x1c52)][_0x5b4074(0xbae)][_0x5b4074(0x1b9e)];_0x385c85+=0x1){_0x516ddd[_0x5b4074(0x1bd0)]({'title':_0x41577d[_0x5b4074(0x1c52)][_0x5b4074(0xbae)][_0x385c85]['type'],'msg':_0x41577d[_0x5b4074(0x1c52)][_0x5b4074(0xbae)][_0x385c85][_0x5b4074(0x18ca)]});}}else _0x516ddd['error']({'title':_0x41577d[_0x5b4074(0x10b3)]?_0x5b4074(0x575)+_0x41577d[_0x5b4074(0x10b3)]+_0x5b4074(0x21db)+_0x41577d[_0x5b4074(0x2115)]:'api.dashboardItem.save','msg':_0x41577d[_0x5b4074(0x1c52)]?JSON[_0x5b4074(0x2317)](_0x41577d['data'][_0x5b4074(0x18ca)]):_0x41577d[_0x5b4074(0x2915)]()});});}function _0x5bfc92(){const _0x1034c9=_0x53f8db;_0x18cba7[_0x1034c9(0xbae)]=[],_0x1c2e2d['dashboardItem'][_0x1034c9(0x2603)]({'id':_0x18cba7[_0x1034c9(0x2961)]['id']},_0x18cba7[_0x1034c9(0x2961)])[_0x1034c9(0x15e7)][_0x1034c9(0x64a)](function(_0x38e8cb){const _0x1e5e1b=_0x1034c9,_0x309b1f=_0x28c606()['find'](_0x18cba7['dashboard'],{'id':_0x38e8cb['id']});_0x309b1f&&_0x28c606()['merge'](_0x309b1f,_0x28c606()[_0x1e5e1b(0x27bb)](_0x38e8cb[_0x1e5e1b(0x14f8)](),_0x28c606()[_0x1e5e1b(0x1ec6)](_0x309b1f))),_0x516ddd['success']({'title':_0x1e5e1b(0xf89),'msg':_0x18cba7[_0x1e5e1b(0x2961)][_0x1e5e1b(0x2494)]?_0x18cba7[_0x1e5e1b(0x2961)][_0x1e5e1b(0x2494)]+_0x1e5e1b(0x271):''}),_0x1d995d(_0x38e8cb);})[_0x1034c9(0x20cd)](function(_0x263eac){const _0x54aa1f=_0x1034c9;if(_0x263eac['data']&&_0x263eac[_0x54aa1f(0x1c52)]['errors']&&_0x263eac[_0x54aa1f(0x1c52)]['errors'][_0x54aa1f(0x1b9e)]){_0x18cba7[_0x54aa1f(0xbae)]=_0x263eac[_0x54aa1f(0x1c52)][_0x54aa1f(0xbae)]||[{'message':_0x263eac['toString'](),'type':_0x54aa1f(0x602)}];for(let _0x271bec=0x0;_0x271bec<_0x263eac[_0x54aa1f(0x1c52)][_0x54aa1f(0xbae)][_0x54aa1f(0x1b9e)];_0x271bec++){_0x516ddd[_0x54aa1f(0x1bd0)]({'title':_0x263eac[_0x54aa1f(0x1c52)]['errors'][_0x271bec][_0x54aa1f(0x2185)],'msg':_0x263eac[_0x54aa1f(0x1c52)]['errors'][_0x271bec][_0x54aa1f(0x18ca)]});}}else _0x516ddd[_0x54aa1f(0x1bd0)]({'title':_0x263eac['status']?'API:'+_0x263eac['status']+'\x20-\x20'+_0x263eac['statusText']:_0x54aa1f(0x602),'msg':_0x263eac[_0x54aa1f(0x1c52)]?JSON[_0x54aa1f(0x2317)](_0x263eac[_0x54aa1f(0x1c52)]['message']):_0x263eac[_0x54aa1f(0x2915)]()});});}function _0x4fdda7(_0x14329b){const _0x5722a5=_0x53f8db;_0x18cba7[_0x5722a5(0xbae)]=[];const _0x36061f=_0x4f45cc['confirm']()[_0x5722a5(0x2021)](_0x5722a5(0x103a))[_0x5722a5(0x12b8)](_0x5722a5(0x1a31))[_0x5722a5(0x213e)](_0x5722a5(0xb33))['ok'](_0x5722a5(0x2664))[_0x5722a5(0x101a)](_0x5722a5(0x1dc6))[_0x5722a5(0x2283)](_0x14329b);_0x4f45cc[_0x5722a5(0xa60)](_0x36061f)[_0x5722a5(0x64a)](function(){const _0x32244d=_0x5722a5;_0x1c2e2d[_0x32244d(0x1681)][_0x32244d(0xabd)]({'id':_0x18cba7[_0x32244d(0x2961)]['id']})[_0x32244d(0x15e7)]['then'](function(){const _0x2ac752=_0x32244d;_0x28c606()[_0x2ac752(0x21c7)](_0x18cba7[_0x2ac752(0x26df)],{'id':_0x18cba7[_0x2ac752(0x2961)]['id']}),_0x516ddd[_0x2ac752(0x1339)]({'title':_0x2ac752(0x1429),'msg':(_0x18cba7[_0x2ac752(0x2961)][_0x2ac752(0x2494)]||_0x2ac752(0x2961))+_0x2ac752(0x1fa8)}),_0x1d995d(_0x18cba7[_0x2ac752(0x2961)]);})[_0x32244d(0x20cd)](function(_0x3ed603){const _0x732b1e=_0x32244d;if(_0x3ed603[_0x732b1e(0x1c52)]&&_0x3ed603[_0x732b1e(0x1c52)]['errors']&&_0x3ed603['data'][_0x732b1e(0xbae)][_0x732b1e(0x1b9e)]){_0x18cba7[_0x732b1e(0xbae)]=_0x3ed603[_0x732b1e(0x1c52)][_0x732b1e(0xbae)]||[{'message':_0x3ed603['toString'](),'type':'api.dashboardItem.delete'}];for(let _0x5e06c8=0x0;_0x5e06c8<_0x3ed603[_0x732b1e(0x1c52)]['errors'][_0x732b1e(0x1b9e)];_0x5e06c8++){_0x516ddd[_0x732b1e(0x1bd0)]({'title':_0x3ed603[_0x732b1e(0x1c52)][_0x732b1e(0xbae)][_0x5e06c8]['type'],'msg':_0x3ed603['data'][_0x732b1e(0xbae)][_0x5e06c8]['message']});}}else _0x516ddd[_0x732b1e(0x1bd0)]({'title':_0x3ed603[_0x732b1e(0x10b3)]?_0x732b1e(0x575)+_0x3ed603[_0x732b1e(0x10b3)]+_0x732b1e(0x21db)+_0x3ed603['statusText']:'api.dashboardItem.delete','msg':_0x3ed603[_0x732b1e(0x1c52)]?JSON['stringify'](_0x3ed603['data'][_0x732b1e(0x18ca)]):_0x3ed603[_0x732b1e(0x18ca)]||_0x3ed603[_0x732b1e(0x2915)]()});});},function(){});}function _0x149c9a(){const _0x34f5a9=_0x53f8db,_0x3d1c56={'core':{'multiple':![],'animation':!![],'error':function(_0x583f97){const _0x2e755a=a0_0x4127;console[_0x2e755a(0x1bd0)]('treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20'+angular['toJson'](_0x583f97));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x34f5a9(0x13bc)]};return _0x18cba7['currentUser'][_0x34f5a9(0x161a)]!==_0x34f5a9(0x333)?_0x1c2e2d[_0x34f5a9(0x16b2)][_0x34f5a9(0x896)]({'fields':_0x34f5a9(0x527),'userProfileId':_0x18cba7[_0x34f5a9(0x1d3d)][_0x34f5a9(0x21ac)],'sectionId':0x4b3})['$promise'][_0x34f5a9(0x64a)](function(_0x4c7959){const _0x3e18c8=_0x34f5a9;return _0x18cba7[_0x3e18c8(0x16b2)]=_0x4c7959&&_0x4c7959[_0x3e18c8(0xb90)]==0x1?_0x4c7959[_0x3e18c8(0x28b8)][0x0]:null,_0x3d1c56;})['catch'](function(_0x486379){const _0x36e989=_0x34f5a9;_0x516ddd[_0x36e989(0x1bd0)]({'title':_0x36e989(0x2440),'msg':_0x486379[_0x36e989(0x18ca)]});}):_0x3d1c56;}function _0x2d188a(_0x4c4d0e){return _0x4c4d0e?{'loaded':_0x3b08f3,'select_node':_0x9ec814}:{'loaded':_0x1545b2,'select_node':_0x36aef1};}function _0x9ec814(_0x1140ec,_0x33c7e4){const _0x46ca81=_0x53f8db;_0x18cba7[_0x46ca81(0x2609)]['jstree'](!![])[_0x46ca81(0x1c5c)](),_0x18cba7[_0x46ca81(0x2609)][_0x46ca81(0x146e)](!![])[_0x46ca81(0x2366)](),_0x18cba7[_0x46ca81(0x1519)]=_0x33c7e4['node'],_0x18cba7[_0x46ca81(0x1519)][_0x46ca81(0x1ad6)]=!![],_0x18cba7[_0x46ca81(0x1907)]=_0x18cba7[_0x46ca81(0x2003)]['jstree'](!![])[_0x46ca81(0x215d)](_0x18cba7[_0x46ca81(0x1519)])[_0x46ca81(0x9a6)]('/\x20'),_0x18cba7[_0x46ca81(0x1c8e)]=_0x46ca81(0x1d97),_0x18cba7[_0x46ca81(0x289a)][_0x46ca81(0x2854)]=_0x33c7e4[_0x46ca81(0x1442)]['id'],_0xe38e86();}function _0x36aef1(_0x237046,_0x4caf19){const _0x16f8c0=_0x53f8db;_0x18cba7[_0x16f8c0(0x2003)]['jstree'](!![])[_0x16f8c0(0x1c5c)](),_0x18cba7[_0x16f8c0(0x2003)]['jstree'](!![])[_0x16f8c0(0x2366)](),_0x18cba7[_0x16f8c0(0x1519)]=_0x4caf19['node'],_0x18cba7[_0x16f8c0(0x1519)][_0x16f8c0(0x1ad6)]=![],_0x18cba7['currentPath']=_0x18cba7['treeDefaultInstance'][_0x16f8c0(0x146e)](!![])[_0x16f8c0(0x215d)](_0x18cba7[_0x16f8c0(0x1519)])[_0x16f8c0(0x9a6)]('/\x20'),_0x18cba7['apiName']=_0x16f8c0(0x254),_0x18cba7[_0x16f8c0(0x289a)]['parent']=_0x4caf19[_0x16f8c0(0x1442)]['id'],_0xe38e86();}function _0x3b08f3(){const _0x3418b7=_0x53f8db;if(!_0x18cba7[_0x3418b7(0x1c0f)]&&_0x18cba7[_0x3418b7(0x1c8e)]===_0x3418b7(0x1d97)){const _0x77c76=_0x18cba7[_0x3418b7(0x2003)][_0x3418b7(0x146e)](!![])[_0x3418b7(0x1243)](_0x18cba7['query']['parent']);_0x9ec814(null,{'node':_0x77c76,'selected':_0x77c76['id']});}}function _0x1545b2(){const _0x561d87=_0x53f8db;if(!_0x18cba7[_0x561d87(0x1c0f)]&&_0x18cba7[_0x561d87(0x1c8e)]===_0x561d87(0x254)){const _0x52f497=_0x18cba7[_0x561d87(0x2609)][_0x561d87(0x146e)](!![])[_0x561d87(0x1243)](_0x18cba7[_0x561d87(0x289a)][_0x561d87(0x2854)]);_0x36aef1(null,{'node':_0x52f497,'selected':_0x52f497['id']});}}function _0xe38e86(){const _0x43c761=_0x53f8db;_0x18cba7[_0x43c761(0x289a)]['offset']=(_0x18cba7[_0x43c761(0x289a)][_0x43c761(0xc72)]-0x1)*_0x18cba7[_0x43c761(0x289a)][_0x43c761(0x25bb)];if(_0x18cba7[_0x43c761(0x1c8e)]){if(_0x18cba7['currentUser'][_0x43c761(0x161a)]==='admin')_0x18cba7['promise']=_0x1c2e2d[_0x18cba7['apiName']]['get'](_0x18cba7[_0x43c761(0x289a)],_0x4ddce0)[_0x43c761(0x15e7)];else{if(!_0x18cba7[_0x43c761(0x16b2)])return _0x4ddce0(null);else{if(_0x18cba7[_0x43c761(0x16b2)][_0x43c761(0x11da)])_0x18cba7[_0x43c761(0x1713)]=_0x1c2e2d[_0x18cba7['apiName']]['get'](_0x18cba7[_0x43c761(0x289a)],_0x4ddce0)['$promise'];else{let _0x23a8d4=[];_0x18cba7[_0x43c761(0x1713)]=_0x1c2e2d[_0x18cba7[_0x43c761(0x1c8e)]][_0x43c761(0x896)](_0x18cba7[_0x43c761(0x289a)])[_0x43c761(0x15e7)][_0x43c761(0x64a)](function(_0x5bae89){const _0x327e20=_0x43c761;return _0x23a8d4=_0x5bae89&&_0x5bae89['rows']?_0x5bae89['rows']:[],_0x23a8d4['length']>0x0?_0x1c2e2d[_0x327e20(0x1617)][_0x327e20(0x896)]({'sectionId':_0x18cba7[_0x327e20(0x16b2)]['id'],'type':_0x18cba7[_0x327e20(0x1c8e)]===_0x327e20(0x254)?'DefaultReports':'CustomReports'})[_0x327e20(0x15e7)]['then'](function(_0x599fe3){const _0xdfe32a=_0x327e20,_0x25b540=_0x599fe3&&_0x599fe3[_0xdfe32a(0x28b8)]?_0x599fe3['rows']:[];if(_0x25b540[_0xdfe32a(0x1b9e)]>0x0){const _0x2f5461=[];return _0x23a8d4['forEach'](function(_0x3feff2){const _0x4a6d0e=_0xdfe32a,_0x153742=_0x28c606()[_0x4a6d0e(0x27bc)](_0x25b540,['resourceId',_0x3feff2['id']]);if(_0x153742)_0x2f5461[_0x4a6d0e(0x1954)](_0x3feff2);}),_0x4ddce0({'count':_0x2f5461[_0xdfe32a(0x1b9e)],'rows':_0x2f5461});}else return _0x4ddce0(null);}):_0x4ddce0(null);})[_0x43c761(0x20cd)](function(_0x56f9fc){const _0x3d1d26=_0x43c761;_0x516ddd[_0x3d1d26(0x1bd0)]({'title':_0x56f9fc[_0x3d1d26(0x10b3)]?_0x3d1d26(0x575)+_0x56f9fc[_0x3d1d26(0x10b3)]+'\x20-\x20'+_0x56f9fc[_0x3d1d26(0x2115)]:_0x3d1d26(0x20e9),'msg':_0x56f9fc[_0x3d1d26(0x1c52)]?JSON[_0x3d1d26(0x2317)](_0x56f9fc[_0x3d1d26(0x1c52)]):_0x56f9fc[_0x3d1d26(0x2915)]()});});}}}}}function _0x4ddce0(_0x447998){const _0x24de68=_0x53f8db;_0x18cba7[_0x24de68(0x47e)]=_0x447998||{'count':0x0,'rows':[]},!_0x18cba7[_0x24de68(0x1c0f)]&&_0x18cba7[_0x24de68(0xa8f)][_0x24de68(0x1954)](_0x28c606()['find'](_0x18cba7[_0x24de68(0x47e)][_0x24de68(0x28b8)],{'id':_0x18cba7[_0x24de68(0x1e94)]['id']}));}function _0xc9d0fe(){const _0x2abe63=_0x53f8db;_0x18cba7[_0x2abe63(0x11de)]=_0x18cba7[_0x2abe63(0x9e9)][0x0]?angular[_0x2abe63(0x836)](_0x18cba7[_0x2abe63(0x9e9)][0x0]['tree']):[],_0x18cba7['treeCustomData']=_0x18cba7[_0x2abe63(0x9e9)][0x1]?angular['fromJson'](_0x18cba7[_0x2abe63(0x9e9)][0x1][_0x2abe63(0x547)]):[],_0x18cba7[_0x2abe63(0x13d7)]=_0x149c9a(),_0x18cba7[_0x2abe63(0x1af1)]=_0x2d188a(![]),_0x18cba7[_0x2abe63(0x1152)]=_0x2d188a(!![]),_0x4f45cc[_0x2abe63(0xa60)]({'controller':function(){return _0x18cba7;},'controllerAs':'vm','templateUrl':_0x406996,'autoWrap':!![],'skipHide':!![]});}function _0x575e0d(){const _0x3e1bbe=_0x53f8db;_0x18cba7['dashboarditem'][_0x3e1bbe(0x1565)]=_0x18cba7[_0x3e1bbe(0xa8f)][0x0][_0x3e1bbe(0x2494)],_0x18cba7[_0x3e1bbe(0x2961)][_0x3e1bbe(0x328)]=_0x18cba7[_0x3e1bbe(0xa8f)][0x0]['id'],_0x18cba7[_0x3e1bbe(0x2961)]['reportType']=_0x18cba7[_0x3e1bbe(0x1519)][_0x3e1bbe(0x1ad6)]?_0x3e1bbe(0x1ad6):_0x3e1bbe(0x416);if(!_0x18cba7[_0x3e1bbe(0x1c0f)]){const _0x1387ce={'name':_0x3e1bbe(0x328),'type':_0x18cba7[_0x3e1bbe(0x2961)]['reportType'],'value':_0x18cba7['selectedReport'][0x0]['id']};_0x18cba7[_0x3e1bbe(0x2961)]['attrs'][_0x3e1bbe(0x18f0)](_0x28c606()['findIndex'](_0x18cba7['dashboarditem']['attrs'],0x1,_0x1387ce));}_0x47de43[_0x3e1bbe(0xa4d)][_0x3e1bbe(0x1565)][_0x3e1bbe(0x1fb7)](),_0x4f45cc[_0x3e1bbe(0x268e)]();}function _0x303c90(){const _0x488d21=_0x53f8db;_0x4f45cc[_0x488d21(0x268e)]();}function _0x5e2597(_0xbdea65){return _0xbdea65===null?undefined:new Date(_0xbdea65);}function _0x1d995d(_0x2e4998){const _0x3078ec=_0x53f8db;_0x4f45cc[_0x3078ec(0x268e)](_0x2e4998);}}const _0x3c1e23=_0x9c25d5;;const _0x2b615b=_0x2e4a48['p']+_0x49a1e3(0x1838);;_0x16cfed['$inject']=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),'setting',_0x49a1e3(0xa19),_0x49a1e3(0x680),'Auth',_0x49a1e3(0x1d31),_0x49a1e3(0x16b2)];function _0x16cfed(_0x5ebc62,_0x7f39d3,_0x4d1182,_0x2ff549,_0x40dc23,_0x196ef3,_0x14a6ee,_0x4d5350,_0x386fd0,_0x53141e,_0x548cbf,_0x2541d9){const _0xb40355=_0x49a1e3,_0x34c7ff=this;_0x34c7ff[_0xb40355(0x1d3d)]=_0x53141e[_0xb40355(0x808)](),_0x34c7ff[_0xb40355(0x1947)]=_0x196ef3,_0x34c7ff[_0xb40355(0x28d6)]=_0x14a6ee,_0x34c7ff[_0xb40355(0xccc)]=_0x34c7ff['setting'][_0xb40355(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x34c7ff['location']=_0x7f39d3[_0xb40355(0x48e)]()+'://'+_0x7f39d3[_0xb40355(0x1e5d)](),_0x34c7ff['customDashboard']=_0x548cbf||_0x5ebc62[_0xb40355(0x1b48)][_0xb40355(0x1d31)]||{},_0x34c7ff[_0xb40355(0x16b2)]=_0x2541d9&&_0x2541d9[_0xb40355(0xb90)]==0x1?_0x2541d9[_0xb40355(0x28b8)][0x0]:null,_0x34c7ff['crudPermissions']=_0x53141e[_0xb40355(0xa7e)](_0x34c7ff['userProfileSection']?_0x34c7ff[_0xb40355(0x16b2)][_0xb40355(0x402)]:null),_0x34c7ff['hasModulePermissions']={},_0x34c7ff[_0xb40355(0x197c)]=_0x5ebc62[_0xb40355(0x1b48)][_0xb40355(0x1222)]||0x0,_0x34c7ff[_0xb40355(0x1676)]=_0x5b6162,_0x34c7ff[_0xb40355(0x505)]=_0x504f2f,_0x34c7ff[_0xb40355(0x2540)]=_0x386fd0['info'],_0x34c7ff[_0xb40355(0x13e8)]=_0x1cc806,_0x34c7ff['saveCustomDashboard']=_0x2724fc;function _0x5b6162(_0x2492a7,_0x13c366){const _0x4eae8e=_0xb40355;_0x4d1182['show']({'controller':_0x4eae8e(0x141a),'controllerAs':'vm','templateUrl':_0x2b615b,'parent':angular[_0x4eae8e(0x1f81)](_0x2ff549[_0x4eae8e(0xb49)]),'targetEvent':_0x13c366,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x2492a7,'customDashboards':_0x34c7ff['customDashboards']?_0x34c7ff[_0x4eae8e(0xc3a)][_0x4eae8e(0x28b8)]:[],'crudPermissions':_0x34c7ff[_0x4eae8e(0x402)]}});}function _0x504f2f(_0x58583c){_0x5ebc62['go']('app.dashboards.custom',{'id':_0x58583c['id']});}function _0x1cc806(){const _0x184b59=_0xb40355;_0x5ebc62['go'](_0x184b59(0x2310),{},{'reload':'app.tools.customDashboards'});}function _0x2724fc(){const _0x204f82=_0xb40355;_0x4d5350[_0x204f82(0x26df)][_0x204f82(0x2603)]({'id':_0x34c7ff[_0x204f82(0x1d31)]['id']},_0x34c7ff[_0x204f82(0x1d31)])['$promise'][_0x204f82(0x64a)](function(){const _0x33798f=_0x204f82;_0x386fd0[_0x33798f(0x1339)]({'title':_0x33798f(0x11cb),'msg':_0x34c7ff['customDashboard'][_0x33798f(0x2494)]?_0x34c7ff['customDashboard']['name']+_0x33798f(0x2032):''});})[_0x204f82(0x20cd)](function(_0x1f64a6){const _0x54ecc2=_0x204f82;_0x386fd0[_0x54ecc2(0x1bd0)]({'title':_0x1f64a6['status']?'API:'+_0x1f64a6[_0x54ecc2(0x10b3)]+_0x54ecc2(0x21db)+_0x1f64a6[_0x54ecc2(0x2115)]:_0x54ecc2(0x1c91),'msg':_0x1f64a6[_0x54ecc2(0x1c52)]?JSON['stringify'](_0x1f64a6['data']):_0x1f64a6[_0x54ecc2(0x2915)]()});});}}const _0x3e01fb=_0x16cfed;;_0x43a69c[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x15e4),_0x49a1e3(0xcfd),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting',_0x49a1e3(0x402)];function _0x43a69c(_0x3d6c7e,_0x536954,_0x107b55,_0x53d8c7,_0x5de679,_0x44f6e0,_0x488f6e,_0x5680c8,_0x26cb98,_0x4c2a7f,_0x2f0649,_0x2f1940,_0x4712b9,_0x445efb){const _0x344085=_0x49a1e3,_0x355c9e=this;_0x355c9e['currentUser']=_0x2f0649[_0x344085(0x808)](),_0x355c9e[_0x344085(0xbae)]=[],_0x355c9e[_0x344085(0x28d6)]=_0x4712b9,_0x355c9e[_0x344085(0x1947)]=_0x2f1940,_0x355c9e['crudPermissions']=_0x445efb,_0x355c9e['hasModulePermissions']={},_0x355c9e[_0x344085(0xccc)]=_0x355c9e[_0x344085(0x28d6)]&&_0x355c9e[_0x344085(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x355c9e[_0x344085(0x2021)]='TOOLS.EDIT_INTERVAL',_0x355c9e['interval']=angular[_0x344085(0x289e)](_0x26cb98),_0x355c9e[_0x344085(0x15e4)]=_0x5680c8,_0x355c9e[_0x344085(0xf18)]=![];!_0x355c9e[_0x344085(0xcfd)]&&(_0x355c9e[_0x344085(0xcfd)]={},_0x355c9e[_0x344085(0x2021)]=_0x344085(0xcbc),_0x355c9e['newInterval']=!![]);_0x355c9e[_0x344085(0x23c0)]=_0xfe6634,_0x355c9e[_0x344085(0x1f5)]=_0x303b43,_0x355c9e[_0x344085(0x1432)]=_0x20c345,_0x355c9e['getDateFromString']=_0x21121e,_0x355c9e[_0x344085(0x16cb)]=_0x18892a;function _0xfe6634(){const _0x3a322d=_0x344085;_0x355c9e['errors']=[],_0x4c2a7f[_0x3a322d(0xcfd)][_0x3a322d(0x2479)](_0x355c9e[_0x3a322d(0xcfd)])['$promise'][_0x3a322d(0x64a)](function(_0x599218){const _0x3901ad=_0x3a322d;_0x355c9e[_0x3901ad(0x15e4)][_0x3901ad(0x1891)](_0x599218[_0x3901ad(0x14f8)]()),_0x488f6e[_0x3901ad(0x1339)]({'title':_0x3901ad(0x2864),'msg':_0x355c9e[_0x3901ad(0xcfd)][_0x3901ad(0x2494)]?_0x355c9e[_0x3901ad(0xcfd)][_0x3901ad(0x2494)]+_0x3901ad(0x258d):''}),_0x18892a(_0x599218);})[_0x3a322d(0x20cd)](function(_0x4be143){const _0x5c9700=_0x3a322d;if(_0x4be143[_0x5c9700(0x1c52)]&&_0x4be143[_0x5c9700(0x1c52)][_0x5c9700(0xbae)]&&_0x4be143[_0x5c9700(0x1c52)][_0x5c9700(0xbae)][_0x5c9700(0x1b9e)]){_0x355c9e[_0x5c9700(0xbae)]=_0x4be143[_0x5c9700(0x1c52)][_0x5c9700(0xbae)]||[{'message':_0x4be143[_0x5c9700(0x2915)](),'type':'api.interval.save'}];for(let _0x48d869=0x0;_0x48d869<_0x4be143[_0x5c9700(0x1c52)][_0x5c9700(0xbae)][_0x5c9700(0x1b9e)];_0x48d869+=0x1){_0x488f6e[_0x5c9700(0x1bd0)]({'title':_0x4be143['data']['errors'][_0x48d869][_0x5c9700(0x2185)],'msg':_0x4be143[_0x5c9700(0x1c52)][_0x5c9700(0xbae)][_0x48d869]['message']});}}else _0x488f6e['error']({'title':_0x4be143['status']?'API:'+_0x4be143[_0x5c9700(0x10b3)]+'\x20-\x20'+_0x4be143[_0x5c9700(0x2115)]:'api.interval.save','msg':_0x4be143['data']?JSON[_0x5c9700(0x2317)](_0x4be143[_0x5c9700(0x1c52)][_0x5c9700(0x18ca)]):_0x4be143['toString']()});});}function _0x303b43(){const _0x5c452c=_0x344085;_0x355c9e['errors']=[],_0x4c2a7f['interval']['update']({'id':_0x355c9e[_0x5c452c(0xcfd)]['id']},_0x355c9e[_0x5c452c(0xcfd)])['$promise'][_0x5c452c(0x64a)](function(_0x23c4aa){const _0x5174ab=_0x5c452c,_0xeb4235=_0x28c606()[_0x5174ab(0x27bc)](_0x355c9e[_0x5174ab(0x15e4)],{'id':_0x23c4aa['id']});_0xeb4235&&_0x28c606()['merge'](_0xeb4235,_0x28c606()[_0x5174ab(0x27bb)](_0x23c4aa[_0x5174ab(0x14f8)](),_0x28c606()[_0x5174ab(0x1ec6)](_0xeb4235))),_0x488f6e['success']({'title':_0x5174ab(0x2896),'msg':_0x355c9e[_0x5174ab(0xcfd)][_0x5174ab(0x2494)]?_0x355c9e[_0x5174ab(0xcfd)][_0x5174ab(0x2494)]+'\x20has\x20been\x20saved!':''}),_0x18892a(_0x23c4aa);})[_0x5c452c(0x20cd)](function(_0x41060f){const _0x24b709=_0x5c452c;if(_0x41060f[_0x24b709(0x1c52)]&&_0x41060f[_0x24b709(0x1c52)][_0x24b709(0xbae)]&&_0x41060f[_0x24b709(0x1c52)][_0x24b709(0xbae)][_0x24b709(0x1b9e)]){_0x355c9e[_0x24b709(0xbae)]=_0x41060f['data'][_0x24b709(0xbae)]||[{'message':_0x41060f[_0x24b709(0x2915)](),'type':_0x24b709(0x710)}];for(let _0x4dffad=0x0;_0x4dffad<_0x41060f[_0x24b709(0x1c52)][_0x24b709(0xbae)][_0x24b709(0x1b9e)];_0x4dffad++){_0x488f6e[_0x24b709(0x1bd0)]({'title':_0x41060f['data']['errors'][_0x4dffad][_0x24b709(0x2185)],'msg':_0x41060f[_0x24b709(0x1c52)][_0x24b709(0xbae)][_0x4dffad][_0x24b709(0x18ca)]});}}else _0x488f6e[_0x24b709(0x1bd0)]({'title':_0x41060f['status']?_0x24b709(0x575)+_0x41060f[_0x24b709(0x10b3)]+_0x24b709(0x21db)+_0x41060f[_0x24b709(0x2115)]:'api.interval.update','msg':_0x41060f[_0x24b709(0x1c52)]?JSON[_0x24b709(0x2317)](_0x41060f['data'][_0x24b709(0x18ca)]):_0x41060f[_0x24b709(0x2915)]()});});}function _0x20c345(_0x15d468){const _0x5cb7b3=_0x344085;_0x355c9e['errors']=[];const _0x5ab40b=_0x53d8c7[_0x5cb7b3(0x856)]()[_0x5cb7b3(0x2021)]('Are\x20you\x20sure?')[_0x5cb7b3(0x12b8)]('The\x20interval\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20Interval')['ok'](_0x5cb7b3(0x2664))['cancel']('Cancel')[_0x5cb7b3(0x2283)](_0x15d468);_0x53d8c7[_0x5cb7b3(0xa60)](_0x5ab40b)[_0x5cb7b3(0x64a)](function(){const _0x54952c=_0x5cb7b3;_0x4c2a7f['interval'][_0x54952c(0xabd)]({'id':_0x355c9e[_0x54952c(0xcfd)]['id']})[_0x54952c(0x15e7)][_0x54952c(0x64a)](function(){const _0x3c184e=_0x54952c;_0x28c606()[_0x3c184e(0x21c7)](_0x355c9e[_0x3c184e(0x15e4)],{'id':_0x355c9e[_0x3c184e(0xcfd)]['id']}),_0x488f6e[_0x3c184e(0x1339)]({'title':'Interval\x20properly\x20deleted!','msg':(_0x355c9e[_0x3c184e(0xcfd)][_0x3c184e(0x2494)]||_0x3c184e(0xcfd))+_0x3c184e(0x1fa8)}),_0x18892a(_0x355c9e[_0x3c184e(0xcfd)]);})[_0x54952c(0x20cd)](function(_0x180688){const _0x494eff=_0x54952c;if(_0x180688[_0x494eff(0x1c52)]&&_0x180688['data'][_0x494eff(0xbae)]&&_0x180688[_0x494eff(0x1c52)][_0x494eff(0xbae)][_0x494eff(0x1b9e)]){_0x355c9e[_0x494eff(0xbae)]=_0x180688['data'][_0x494eff(0xbae)]||[{'message':_0x180688[_0x494eff(0x2915)](),'type':_0x494eff(0x10cf)}];for(let _0x520ac6=0x0;_0x520ac6<_0x180688[_0x494eff(0x1c52)][_0x494eff(0xbae)][_0x494eff(0x1b9e)];_0x520ac6++){_0x488f6e['error']({'title':_0x180688[_0x494eff(0x1c52)][_0x494eff(0xbae)][_0x520ac6]['type'],'msg':_0x180688[_0x494eff(0x1c52)][_0x494eff(0xbae)][_0x520ac6][_0x494eff(0x18ca)]});}}else _0x488f6e[_0x494eff(0x1bd0)]({'title':_0x180688[_0x494eff(0x10b3)]?'API:'+_0x180688[_0x494eff(0x10b3)]+'\x20-\x20'+_0x180688[_0x494eff(0x2115)]:_0x494eff(0x10cf),'msg':_0x180688[_0x494eff(0x1c52)]?JSON[_0x494eff(0x2317)](_0x180688[_0x494eff(0x1c52)][_0x494eff(0x18ca)]):_0x180688[_0x494eff(0x18ca)]||_0x180688['toString']()});});},function(){});}function _0x21121e(_0x94c27c){return _0x94c27c===null?undefined:new Date(_0x94c27c);}function _0x18892a(_0x50c92e){const _0x4ff065=_0x344085;_0x53d8c7[_0x4ff065(0x268e)](_0x50c92e);}}const _0x54a24f=_0x43a69c;;_0x249178[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x212a),_0x49a1e3(0x611),'IndexFactory','interval',_0x49a1e3(0x15e4),'toasty',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'crudPermissions'];function _0x249178(_0x157ac0,_0x3dc5f0,_0x2d4130,_0x70545e,_0x3b5dde,_0x9ad7d2,_0x18dfa9,_0x5b7f40,_0x30af33,_0x5e0d6c){const _0x4d8e78=_0x49a1e3,_0x42fa55=this;_0x42fa55[_0x4d8e78(0x1d3d)]=_0x30af33[_0x4d8e78(0x808)](),_0x42fa55[_0x4d8e78(0xbae)]=[],_0x42fa55[_0x4d8e78(0x2021)]=_0x4d8e78(0x20a4),_0x42fa55[_0x4d8e78(0xcfd)]=angular['copy'](_0x3b5dde),_0x42fa55[_0x4d8e78(0x15e4)]=_0x9ad7d2,_0x42fa55['newInterval']=![],_0x42fa55[_0x4d8e78(0x269)]=[_0x4d8e78(0xa66),_0x4d8e78(0x1ad6)],_0x42fa55[_0x4d8e78(0x402)]=_0x5e0d6c,_0x42fa55[_0x4d8e78(0x121a)]=_0x70545e['getDaysOfWeek'](),_0x42fa55[_0x4d8e78(0x2391)]=_0x70545e[_0x4d8e78(0x17ef)](),_0x42fa55['monthName']=_0x70545e[_0x4d8e78(0x273)](),_0x42fa55['daysOfMonth']=_0x70545e[_0x4d8e78(0xefe)]();if(!_0x42fa55['interval'])_0x42fa55[_0x4d8e78(0xcfd)]={'interval':_0x4d8e78(0x2145)},_0x42fa55['type']=_0x4d8e78(0xa66),_0x42fa55[_0x4d8e78(0x2021)]=_0x4d8e78(0xcbc),_0x42fa55[_0x4d8e78(0xf18)]=!![];else{if(_0x42fa55[_0x4d8e78(0xcfd)][_0x4d8e78(0xcfd)]!==_0x4d8e78(0x2145)){_0x42fa55['type']='custom';const _0x155e53=_0x42fa55[_0x4d8e78(0xcfd)]['interval'][_0x4d8e78(0x282c)](','),_0x3cd14f=_0x155e53[0x0],_0x2421ae=_0x155e53[0x1],_0x305a74=_0x155e53[0x2],_0x16c716=_0x155e53[0x3];if(_0x3cd14f!=='*'){const _0xd83248=_0x3cd14f['split']('-')[0x0],_0x3f3f69=_0x3cd14f[_0x4d8e78(0x282c)]('-')[0x1];let _0x3d380b;_0x3d380b=new Date(),_0x3d380b[_0x4d8e78(0x260)](Number(_0xd83248['split'](':')[0x0])),_0x3d380b['setMinutes'](Number(_0xd83248[_0x4d8e78(0x282c)](':')[0x1])),_0x42fa55['timeRangeFrom']=_0x3d380b,_0x3d380b=new Date(),_0x3d380b[_0x4d8e78(0x260)](Number(_0x3f3f69[_0x4d8e78(0x282c)](':')[0x0])),_0x3d380b[_0x4d8e78(0x1b10)](Number(_0x3f3f69['split'](':')[0x1])),_0x42fa55[_0x4d8e78(0x196a)]=_0x3d380b;}_0x2421ae!=='*'&&(_0x42fa55[_0x4d8e78(0xa8e)]=_0x2421ae[_0x4d8e78(0x282c)]('-')[0x0],_0x42fa55['dayOfWeekTo']=_0x2421ae[_0x4d8e78(0x282c)]('-')[0x1]),_0x305a74!=='*'&&(_0x42fa55[_0x4d8e78(0x1e3)]=_0x305a74['split']('-')[0x0],_0x42fa55['monthDayTo']=_0x305a74['split']('-')[0x1]),_0x16c716!=='*'&&(_0x42fa55[_0x4d8e78(0x205f)]=_0x16c716['split']('-')[0x0],_0x42fa55[_0x4d8e78(0x1ea4)]=_0x16c716['split']('-')[0x1]);}else _0x42fa55['type']=_0x4d8e78(0xa66);}_0x157ac0[_0x4d8e78(0x1b48)]['id']&&!_0x42fa55[_0x4d8e78(0xcfd)][_0x4d8e78(0x2081)]&&(_0x42fa55[_0x4d8e78(0xcfd)]['IntervalId']=_0x157ac0['params']['id']);_0x42fa55[_0x4d8e78(0xcfd)][_0x4d8e78(0xb71)]&&_0x42fa55[_0x4d8e78(0xcfd)][_0x4d8e78(0x2081)]&&(_0x42fa55[_0x4d8e78(0x2185)]=_0x4d8e78(0x2764));_0x42fa55[_0x4d8e78(0x23c0)]=_0x88d26,_0x42fa55[_0x4d8e78(0x1f5)]=_0x13f461,_0x42fa55[_0x4d8e78(0x16cb)]=_0x173909;_0x42fa55[_0x4d8e78(0xcfd)]['application']&&(_0x30af33[_0x4d8e78(0x4de)](_0x4d8e78(0x333))?_0x5b7f40[_0x4d8e78(0xcfd)][_0x4d8e78(0x896)]({'fields':'id,name,interval,IntervalId','IntervalId':_0x4d8e78(0x8f1),'nolimit':!![]})[_0x4d8e78(0x15e7)][_0x4d8e78(0x64a)](function(_0x33c909){const _0x3a76b7=_0x4d8e78;_0x42fa55[_0x3a76b7(0x15e4)]=_0x33c909[_0x3a76b7(0x28b8)]||[];})[_0x4d8e78(0x20cd)](function(_0x16d835){const _0x29c9e2=_0x4d8e78;_0x18dfa9[_0x29c9e2(0x1bd0)]({'title':_0x16d835[_0x29c9e2(0x10b3)]?'API:'+_0x16d835[_0x29c9e2(0x10b3)]+_0x29c9e2(0x21db)+_0x16d835[_0x29c9e2(0x2115)]:_0x29c9e2(0xbfb),'msg':_0x16d835['data']?JSON[_0x29c9e2(0x2317)](_0x16d835['data']):_0x16d835[_0x29c9e2(0x2915)]()});}):_0x5b7f40['interval']['get']({'fields':'id,name,interval,IntervalId','IntervalId':_0x4d8e78(0x8f1),'nolimit':!![]})[_0x4d8e78(0x15e7)][_0x4d8e78(0x64a)](function(_0x56f973){const _0x2ef35e=_0x4d8e78;_0x42fa55[_0x2ef35e(0x15e4)]=_0x56f973[_0x2ef35e(0x28b8)]||[];})[_0x4d8e78(0x64a)](function(){const _0x5c5fe5=_0x4d8e78;return _0x5b7f40[_0x5c5fe5(0x16b2)][_0x5c5fe5(0x896)]({'userProfileId':_0x42fa55[_0x5c5fe5(0x1d3d)]['userProfileId'],'sectionId':0x3ec})['$promise'];})[_0x4d8e78(0x64a)](function(_0x392d1e){const _0x31b0fb=_0x4d8e78,_0x1a816b=_0x392d1e&&_0x392d1e['rows']?_0x392d1e[_0x31b0fb(0x28b8)][0x0]:null;if(!_0x1a816b)_0x42fa55[_0x31b0fb(0x15e4)]=[];else{if(!_0x1a816b[_0x31b0fb(0x11da)])return _0x5b7f40['userProfileResource'][_0x31b0fb(0x896)]({'sectionId':_0x1a816b['id']})[_0x31b0fb(0x15e7)]['then'](function(_0xadef62){const _0x22e200=_0x31b0fb,_0x4c5978=_0xadef62&&_0xadef62[_0x22e200(0x28b8)]?_0xadef62[_0x22e200(0x28b8)]:[],_0x3b7f07=[];let _0x25cf64=null;_0x42fa55['interval']&&(_0x25cf64=_0x28c606()[_0x22e200(0x27bc)](_0x42fa55['intervals'],{'name':_0x42fa55[_0x22e200(0xcfd)][_0x22e200(0xb71)]})),_0x25cf64&&!_0x28c606()[_0x22e200(0x25f8)](_0x4c5978,[_0x22e200(0x145),_0x25cf64['id']])&&_0x42fa55[_0x22e200(0x15e4)][_0x22e200(0x1397)](function(_0x133c79){const _0x4d5cfa=_0x22e200;_0x133c79['id']===_0x25cf64['id']&&(_0x133c79[_0x4d5cfa(0xd4f)]=![],_0x3b7f07[_0x4d5cfa(0x1954)](_0x133c79));}),_0x42fa55[_0x22e200(0x15e4)]=_0x3b7f07;});}})['catch'](function(_0x603a47){const _0x496897=_0x4d8e78;_0x18dfa9[_0x496897(0x1bd0)]({'title':_0x603a47[_0x496897(0x10b3)]?_0x496897(0x575)+_0x603a47[_0x496897(0x10b3)]+_0x496897(0x21db)+_0x603a47['statusText']:'SYSTEM:GET_INTERVALS','msg':_0x603a47['data']?JSON['stringify'](_0x603a47[_0x496897(0x1c52)]):_0x603a47[_0x496897(0x2915)]()});}));function _0x39eb38(){const _0x584aee=_0x4d8e78;switch(_0x42fa55[_0x584aee(0x2185)]){case _0x584aee(0xa66):case _0x584aee(0x2764):return _0x584aee(0x2145);case _0x584aee(0x1ad6):{const _0x420cb8=[];if(_0x42fa55[_0x584aee(0x268d)]!=='*'&&_0x42fa55[_0x584aee(0x268d)]&&_0x42fa55[_0x584aee(0x196a)]){const _0x38f149=(_0x42fa55[_0x584aee(0x268d)]['getHours']()<0xa?'0':'')+_0x42fa55[_0x584aee(0x268d)][_0x584aee(0x48a)]()+':'+((_0x42fa55['timeRangeFrom']['getMinutes']()<0xa?'0':'')+_0x42fa55[_0x584aee(0x268d)][_0x584aee(0x1894)]()),_0x437992=(_0x42fa55['timeRangeTo'][_0x584aee(0x48a)]()<0xa?'0':'')+_0x42fa55[_0x584aee(0x196a)][_0x584aee(0x48a)]()+':'+((_0x42fa55[_0x584aee(0x196a)][_0x584aee(0x1894)]()<0xa?'0':'')+_0x42fa55[_0x584aee(0x196a)][_0x584aee(0x1894)]());_0x420cb8[_0x584aee(0x1954)](_0x38f149+'-'+_0x437992);}else _0x420cb8[_0x584aee(0x1954)]('*');return _0x42fa55[_0x584aee(0xa8e)]?_0x42fa55[_0x584aee(0x1297)]?_0x420cb8['push'](_0x42fa55[_0x584aee(0xa8e)]+'-'+_0x42fa55[_0x584aee(0x1297)]):_0x420cb8[_0x584aee(0x1954)](_0x42fa55['dayOfWeekFrom']):_0x420cb8[_0x584aee(0x1954)]('*'),_0x42fa55[_0x584aee(0x1e3)]?_0x42fa55['monthDayTo']?_0x420cb8['push'](_0x42fa55[_0x584aee(0x1e3)]+'-'+_0x42fa55['monthDayTo']):_0x420cb8[_0x584aee(0x1954)](_0x42fa55[_0x584aee(0x1e3)]):_0x420cb8[_0x584aee(0x1954)]('*'),_0x42fa55['monthFrom']?_0x42fa55[_0x584aee(0x1ea4)]?_0x420cb8[_0x584aee(0x1954)](_0x42fa55['monthFrom']+'-'+_0x42fa55['monthTo']):_0x420cb8[_0x584aee(0x1954)](_0x42fa55[_0x584aee(0x205f)]):_0x420cb8[_0x584aee(0x1954)]('*'),_0x420cb8['join']();}}}function _0x88d26(){const _0x52b383=_0x4d8e78;_0x42fa55[_0x52b383(0xbae)]=[],_0x42fa55[_0x52b383(0xcfd)][_0x52b383(0xcfd)]=_0x39eb38(),_0x5b7f40[_0x52b383(0xcfd)][_0x52b383(0x2479)](_0x42fa55[_0x52b383(0xcfd)])[_0x52b383(0x15e7)]['then'](function(_0x433785){const _0x15ae13=_0x52b383;_0x42fa55[_0x15ae13(0x15e4)][_0x15ae13(0x1954)](_0x433785),_0x18dfa9[_0x15ae13(0x1339)]({'title':_0x15ae13(0x2864),'msg':_0x42fa55[_0x15ae13(0xcfd)]['name']?_0x42fa55[_0x15ae13(0xcfd)][_0x15ae13(0x2494)]+_0x15ae13(0x258d):''}),_0x173909();})[_0x52b383(0x20cd)](function(_0x49f5fb){const _0x11a278=_0x52b383;console[_0x11a278(0x1bd0)](_0x49f5fb),_0x42fa55['errors']=_0x49f5fb[_0x11a278(0x1c52)][_0x11a278(0xbae)]||[{'message':_0x49f5fb[_0x11a278(0x2915)](),'type':_0x11a278(0x12a0)}];});}function _0x13f461(){const _0x51dc8b=_0x4d8e78;_0x42fa55[_0x51dc8b(0xbae)]=[],_0x42fa55['interval'][_0x51dc8b(0xcfd)]=_0x39eb38(),_0x42fa55[_0x51dc8b(0xcfd)][_0x51dc8b(0x2081)]?(_0x42fa55[_0x51dc8b(0x2185)]!=='list'&&(_0x42fa55['interval'][_0x51dc8b(0xb71)]=null),_0x173909(_0x42fa55[_0x51dc8b(0xcfd)])):_0x5b7f40[_0x51dc8b(0xcfd)][_0x51dc8b(0x2603)]({'id':_0x42fa55['interval']['id']},_0x42fa55[_0x51dc8b(0xcfd)])['$promise']['then'](function(_0x5a9c42){const _0x309cde=_0x51dc8b,_0x4f0ef5=_0x28c606()[_0x309cde(0x27bc)](_0x42fa55[_0x309cde(0x15e4)],{'id':_0x5a9c42['id']});_0x4f0ef5&&_0x28c606()['merge'](_0x4f0ef5,_0x5a9c42),_0x18dfa9[_0x309cde(0x1339)]({'title':_0x309cde(0x2896),'msg':_0x309cde(0x198)}),_0x173909();})[_0x51dc8b(0x20cd)](function(_0x33c21a){const _0x22ba2c=_0x51dc8b;console['error'](_0x33c21a),_0x42fa55[_0x22ba2c(0xbae)]=_0x33c21a['data'][_0x22ba2c(0xbae)]||[{'message':_0x33c21a[_0x22ba2c(0x2915)](),'type':'api.interval.update'}];});}function _0x173909(_0x882c5c){_0x3dc5f0['hide'](_0x882c5c);}}const _0x13ebc6=_0x249178;;const _0x46c5fa=_0x2e4a48['p']+_0x49a1e3(0x11a8);;_0x59acb0[_0x49a1e3(0x1e73)]=['$cookies','$scope','$state','$q',_0x49a1e3(0x298c),'$timeout',_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x680),_0x49a1e3(0xa19),'Auth'];function _0x59acb0(_0x25e856,_0x148a0d,_0x2d0317,_0x4a9002,_0x17f3f5,_0x3093be,_0x10ef45,_0x4e0b74,_0x8ba01e,_0x345ebe,_0x1dd937){const _0x228b53=_0x49a1e3,_0x54f79d=this;_0x54f79d[_0x228b53(0x1d3d)]=_0x1dd937[_0x228b53(0x808)](),_0x54f79d['interval']={},_0x54f79d[_0x228b53(0x1386)]={'count':0x0,'rows':[]},_0x54f79d[_0x228b53(0x19b0)]=[],_0x54f79d[_0x228b53(0x402)],_0x54f79d[_0x228b53(0x1094)]={'animation':0x64,'onSort':function(_0x3e503f){const _0x1a3e51=_0x228b53;_0x345ebe[_0x1a3e51(0xcfd)][_0x1a3e51(0x1c50)]({'id':_0x54f79d[_0x1a3e51(0xcfd)]['id']},_0x3e503f[_0x1a3e51(0x264e)])[_0x1a3e51(0x15e7)][_0x1a3e51(0x64a)](function(_0x1979fe){const _0x40c8b0=_0x1a3e51;_0x54f79d[_0x40c8b0(0x1386)][_0x40c8b0(0x28b8)]=_0x1979fe;})[_0x1a3e51(0x20cd)](function(_0x363796){const _0x267723=_0x1a3e51;_0x8ba01e[_0x267723(0x1bd0)]({'title':_0x363796[_0x267723(0x10b3)]?'API:'+_0x363796[_0x267723(0x10b3)]+'\x20-\x20'+_0x363796[_0x267723(0x2115)]:'SYSTEM:SORTABLETABLE','msg':_0x363796[_0x267723(0x1c52)]?JSON['stringify'](_0x363796['data']):_0x363796[_0x267723(0x2915)]()});});}},_0x54f79d[_0x228b53(0x289a)]={'fields':'createdAt,updatedAt,id,name,interval','nolimit':_0x228b53(0x1685),'limit':0xa,'page':0x1},_0x54f79d[_0x228b53(0x2354)]=_0x5a72dc,_0x54f79d['deleteConfirm']=_0x2b465e,_0x54f79d[_0x228b53(0x1339)]=_0x2ce5bf,_0x54f79d[_0x228b53(0x24a)]=_0x3ba4fa,_0x54f79d[_0x228b53(0x22de)]=_0x2f82aa,_0x54f79d[_0x228b53(0x145d)]=_0x2076a3,_0x54f79d[_0x228b53(0xa7d)]=_0x32cef8,_0x54f79d[_0x228b53(0x1c1d)]=_0x12a6ef;function _0x5a72dc(_0x2b3b14,_0x1d1747){const _0x4ef384=_0x228b53;_0x54f79d[_0x4ef384(0xcfd)]=_0x2b3b14,_0x54f79d[_0x4ef384(0x402)]=typeof _0x1d1747!==_0x4ef384(0x19a1)?_0x1d1747:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x54f79d['sortableTable'][_0x4ef384(0x1a95)]=!_0x54f79d[_0x4ef384(0x402)]['canEdit']?!![]:![],_0x54f79d['query']['id']=_0x54f79d['interval']['id'],_0x3ba4fa();}function _0x2b465e(_0x42e5ce,_0x38af3b){const _0x38b495=_0x228b53,_0x532cef=_0x10ef45['confirm']()['title'](_0x38b495(0x1f73))[_0x38b495(0x33a)](_0x38b495(0x50b)+(_0x42e5ce[_0x38b495(0x2494)]||_0x42e5ce['id']&&_0x28c606()[_0x38b495(0x1766)](_0x38b495(0x165e))+_0x42e5ce['id']||'interval')+_0x38b495(0x26d0)+_0x38b495(0x4b8))[_0x38b495(0x213e)](_0x38b495(0xc91))[_0x38b495(0x2283)](_0x38af3b)['ok']('OK')[_0x38b495(0x101a)](_0x38b495(0x18fd));_0x10ef45[_0x38b495(0xa60)](_0x532cef)[_0x38b495(0x64a)](function(){_0x32cef8(_0x42e5ce);},function(){const _0x363f69=_0x38b495;console[_0x363f69(0x9b4)](_0x363f69(0x18fd));});}function _0x2ce5bf(_0x561c8){const _0x4e747c=_0x228b53;_0x54f79d[_0x4e747c(0x1386)]=_0x561c8||{'count':0x0,'rows':[]};}function _0x3ba4fa(){const _0x4c2585=_0x228b53;_0x54f79d['query'][_0x4c2585(0x24f9)]=(_0x54f79d['query'][_0x4c2585(0xc72)]-0x1)*_0x54f79d[_0x4c2585(0x289a)][_0x4c2585(0x25bb)],_0x54f79d['promise']=_0x345ebe[_0x4c2585(0xcfd)][_0x4c2585(0x1039)](_0x54f79d[_0x4c2585(0x289a)],_0x2ce5bf)[_0x4c2585(0x15e7)];}function _0x2f82aa(_0x504c0e,_0x175f56){const _0x5b8a3c=_0x228b53;_0x10ef45[_0x5b8a3c(0xa60)]({'controller':_0x5b8a3c(0xfc1),'controllerAs':'vm','templateUrl':_0x46c5fa,'parent':angular[_0x5b8a3c(0x1f81)](_0x4e0b74[_0x5b8a3c(0xb49)]),'targetEvent':_0x504c0e,'clickOutsideToClose':!![],'locals':{'interval':_0x175f56,'intervals':_0x54f79d['intervalIntervals'][_0x5b8a3c(0x28b8)],'license':null,'setting':null,'crudPermissions':_0x54f79d[_0x5b8a3c(0x402)]}});}function _0x32cef8(_0x259d32){const _0x492551=_0x228b53;_0x345ebe['interval']['delete']({'id':_0x259d32['id']})[_0x492551(0x15e7)]['then'](function(){const _0x573977=_0x492551;_0x28c606()['remove'](_0x54f79d[_0x573977(0x1386)][_0x573977(0x28b8)],{'id':_0x259d32['id']}),_0x54f79d[_0x573977(0x1386)][_0x573977(0xb90)]-=0x1,!_0x54f79d[_0x573977(0x1386)][_0x573977(0x28b8)][_0x573977(0x1b9e)]&&_0x3ba4fa(),_0x8ba01e[_0x573977(0x1339)]({'title':_0x573977(0x113f),'msg':_0x259d32[_0x573977(0x2494)]?_0x259d32[_0x573977(0x2494)]+_0x573977(0x1fa8):''});})[_0x492551(0x20cd)](function(_0x3e6110){const _0x2ff05d=_0x492551;if(_0x3e6110[_0x2ff05d(0x1c52)]&&_0x3e6110[_0x2ff05d(0x1c52)]['errors']&&_0x3e6110[_0x2ff05d(0x1c52)][_0x2ff05d(0xbae)][_0x2ff05d(0x1b9e)]){_0x54f79d[_0x2ff05d(0xbae)]=_0x3e6110[_0x2ff05d(0x1c52)][_0x2ff05d(0xbae)]||[{'message':_0x3e6110['toString'](),'type':_0x2ff05d(0x314)}];for(let _0x58d32d=0x0;_0x58d32d<_0x3e6110[_0x2ff05d(0x1c52)]['errors']['length'];_0x58d32d++){_0x8ba01e[_0x2ff05d(0x1bd0)]({'title':_0x3e6110['data'][_0x2ff05d(0xbae)][_0x58d32d][_0x2ff05d(0x2185)],'msg':_0x3e6110['data']['errors'][_0x58d32d][_0x2ff05d(0x18ca)]});}}else _0x8ba01e[_0x2ff05d(0x1bd0)]({'title':_0x3e6110[_0x2ff05d(0x10b3)]?_0x2ff05d(0x575)+_0x3e6110[_0x2ff05d(0x10b3)]+_0x2ff05d(0x21db)+_0x3e6110['statusText']:'SYSTEM:GETinterval','msg':_0x3e6110[_0x2ff05d(0x1c52)]?JSON[_0x2ff05d(0x2317)](_0x3e6110['data'][_0x2ff05d(0x18ca)]):_0x3e6110[_0x2ff05d(0x18ca)]||_0x3e6110['toString']()});});}function _0x2076a3(){const _0x371ab7=_0x228b53,_0x2ff0ce=angular[_0x371ab7(0x289e)](_0x54f79d['selectedIntervalIntervals']);return _0x54f79d[_0x371ab7(0x19b0)]=[],_0x2ff0ce;}function _0x12a6ef(_0x5115d5){const _0x5e5601=_0x228b53,_0x16e769=_0x10ef45[_0x5e5601(0x856)]()[_0x5e5601(0x2021)](_0x5e5601(0x1d43))[_0x5e5601(0x33a)](''+_0x54f79d['selectedIntervalIntervals']['length']+'\x20selected'+_0x5e5601(0x4b8))['ariaLabel'](_0x5e5601(0x18d6))[_0x5e5601(0x2283)](_0x5115d5)['ok']('OK')[_0x5e5601(0x101a)]('CANCEL');_0x10ef45[_0x5e5601(0xa60)](_0x16e769)[_0x5e5601(0x64a)](function(){const _0x403b29=_0x5e5601;_0x54f79d[_0x403b29(0x19b0)]['forEach'](function(_0x53343e){_0x32cef8(_0x53343e);}),_0x54f79d['selectedIntervalIntervals']=[];});}let _0x34ccbe=!![],_0x164671=0x1;_0x148a0d[_0x228b53(0xc62)]('vm_dc.query.filter',function(_0x4f98cc,_0x18b113){const _0x5f1b86=_0x228b53;_0x34ccbe?_0x3093be(function(){_0x34ccbe=![];}):(!_0x18b113&&(_0x164671=_0x54f79d[_0x5f1b86(0x289a)][_0x5f1b86(0xc72)]),_0x4f98cc!==_0x18b113&&(_0x54f79d[_0x5f1b86(0x289a)][_0x5f1b86(0xc72)]=0x1),!_0x4f98cc&&(_0x54f79d[_0x5f1b86(0x289a)][_0x5f1b86(0xc72)]=_0x164671),_0x3ba4fa());});}const _0x208b05=_0x59acb0;;_0x1a33d2['$inject']=[_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),_0x49a1e3(0x1373),'$translate','license',_0x49a1e3(0x28d6),'api',_0x49a1e3(0x680),_0x49a1e3(0xdcf),'interval','userProfileSection'];function _0x1a33d2(_0x9b0335,_0xbeb505,_0x236a35,_0x2f128d,_0x323734,_0x4ab592,_0x5a74fd,_0x5c94a9,_0x57f077,_0x2d1016,_0x87f998,_0x56885e){const _0x74c534=_0x49a1e3,_0x18c613=this;_0x18c613[_0x74c534(0x1d3d)]=_0x2d1016[_0x74c534(0x808)](),_0x18c613[_0x74c534(0x1947)]=_0x4ab592,_0x18c613[_0x74c534(0x28d6)]=_0x5a74fd,_0x18c613[_0x74c534(0xccc)]=_0x18c613[_0x74c534(0x28d6)][_0x74c534(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x18c613[_0x74c534(0xb36)]=_0xbeb505[_0x74c534(0x48e)]()+'://'+_0xbeb505[_0x74c534(0x1e5d)](),_0x18c613['interval']=_0x87f998||_0x9b0335[_0x74c534(0x1b48)]['interval']||{},_0x18c613[_0x74c534(0x16b2)]=_0x56885e&&_0x56885e[_0x74c534(0xb90)]==0x1?_0x56885e[_0x74c534(0x28b8)][0x0]:null,_0x18c613['crudPermissions']=_0x2d1016[_0x74c534(0xa7e)](_0x18c613[_0x74c534(0x16b2)]?_0x18c613[_0x74c534(0x16b2)][_0x74c534(0x402)]:null),_0x18c613[_0x74c534(0x6c2)]={},_0x18c613[_0x74c534(0x197c)]=_0x9b0335['params'][_0x74c534(0x1222)]||0x0,_0x18c613[_0x74c534(0x2540)]=_0x57f077[_0x74c534(0x772)],_0x18c613[_0x74c534(0x247a)]=_0x3b4dca,_0x18c613[_0x74c534(0x1f5)]=_0x1c3db0;function _0x3b4dca(){const _0x18d55f=_0x74c534;_0x9b0335['go'](_0x18d55f(0x1410),{},{'reload':'app.tools.intervals'});}function _0x1c3db0(){const _0x5a04bd=_0x74c534;_0x5c94a9['interval'][_0x5a04bd(0x2603)]({'id':_0x18c613[_0x5a04bd(0xcfd)]['id']},_0x18c613['interval'])[_0x5a04bd(0x15e7)]['then'](function(){const _0x7a8ce5=_0x5a04bd;_0x57f077[_0x7a8ce5(0x1339)]({'title':_0x7a8ce5(0x1380),'msg':_0x18c613[_0x7a8ce5(0xcfd)][_0x7a8ce5(0x2494)]?_0x18c613[_0x7a8ce5(0xcfd)][_0x7a8ce5(0x2494)]+_0x7a8ce5(0x2032):''});})[_0x5a04bd(0x20cd)](function(_0x2cd840){const _0x34175d=_0x5a04bd;_0x57f077[_0x34175d(0x1bd0)]({'title':_0x2cd840[_0x34175d(0x10b3)]?'API:'+_0x2cd840[_0x34175d(0x10b3)]+_0x34175d(0x21db)+_0x2cd840[_0x34175d(0x2115)]:'SYSTEM:GETinterval','msg':_0x2cd840['data']?JSON[_0x34175d(0x2317)](_0x2cd840[_0x34175d(0x1c52)]):_0x2cd840[_0x34175d(0x2915)]()});});}}const _0x5518d6=_0x1a33d2;;const _0x45af1e=_0x2e4a48['p']+_0x49a1e3(0x1ab1);;_0x4fe4b4[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x15e4),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x4fe4b4(_0x2be961,_0x1cb57d,_0x693fdb,_0x27297c,_0x2e70c2,_0x3de95b,_0x357742,_0x5b52ec,_0x5cb60e,_0x4a64e7,_0x509213,_0x17a6a4,_0x3f8449,_0x24cb99,_0x5e307f,_0x31ac7c,_0x4b1aca){const _0x44a3f4=_0x49a1e3,_0x12b414=this;_0x12b414[_0x44a3f4(0x1947)]=_0x31ac7c,_0x12b414[_0x44a3f4(0x28d6)]=_0x4b1aca,_0x12b414[_0x44a3f4(0x1d3d)]=_0x5e307f[_0x44a3f4(0x808)](),_0x12b414[_0x44a3f4(0x15e4)]=_0x5cb60e||{'count':0x0,'rows':[]},_0x12b414[_0x44a3f4(0x16a8)]=_0x4a64e7,_0x12b414['userProfileSection']=_0x509213&&_0x509213['count']==0x1?_0x509213[_0x44a3f4(0x28b8)][0x0]:null,_0x12b414[_0x44a3f4(0x402)]=_0x5e307f[_0x44a3f4(0xa7e)](_0x12b414[_0x44a3f4(0x16b2)]?_0x12b414['userProfileSection']['crudPermissions']:null),_0x12b414['table']=_0x44a3f4(0x15e4),_0x12b414['listOrder']='',_0x12b414['listOrderAsc']=null,_0x12b414['selectedIntervals']=[],_0x12b414['query']={'fields':'createdAt,updatedAt,id,name,description','sort':_0x44a3f4(0x260c),'IntervalId':'null','limit':0xa,'page':0x1},_0x12b414['editstate']=_0x235401,_0x12b414[_0x44a3f4(0x1262)]=_0x410af6,_0x12b414[_0x44a3f4(0x1339)]=_0x33441c,_0x12b414[_0x44a3f4(0x1039)]=_0x426a74,_0x12b414['createOrEditInterval']=_0x5649f9,_0x12b414['deleteInterval']=_0x151c49,_0x12b414[_0x44a3f4(0x25a1)]=_0x573fb6,_0x12b414[_0x44a3f4(0x1e56)]=_0x3de967,_0x12b414[_0x44a3f4(0x1bcb)]=_0x5af9d1,_0x12b414['selectAllIntervals']=_0x589d67;function _0x235401(_0x289992){const _0x546ba4=_0x44a3f4;_0x693fdb['go'](_0x546ba4(0x1b0d),{'id':_0x289992['id'],'interval':_0x289992,'crudPermissions':_0x12b414['crudPermissions']});}function _0x410af6(_0xab2888,_0x4688a9){const _0x117345=_0x44a3f4,_0x2e11bd=_0x2e70c2[_0x117345(0x856)]()[_0x117345(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()['startCase'](_0x117345(0xcfd))+'?')[_0x117345(0x33a)](_0x117345(0x50b)+(_0xab2888['name']||_0x117345(0xcfd))+_0x117345(0x26d0)+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20interval')['targetEvent'](_0x4688a9)['ok']('OK')[_0x117345(0x101a)]('CANCEL');_0x2e70c2[_0x117345(0xa60)](_0x2e11bd)['then'](function(){_0x151c49(_0xab2888);},function(){const _0x41f455=_0x117345;console[_0x41f455(0x9b4)](_0x41f455(0x18fd));});}let _0x3f016c=!![],_0x14b560=0x1;_0x2be961[_0x44a3f4(0xc62)](_0x44a3f4(0x1cb9),function(_0x28cfbd,_0x5af9b7){const _0x5f07b3=_0x44a3f4;_0x3f016c?_0x357742(function(){_0x3f016c=![];}):(!_0x5af9b7&&(_0x14b560=_0x12b414['query'][_0x5f07b3(0xc72)]),_0x28cfbd!==_0x5af9b7&&(_0x12b414['query'][_0x5f07b3(0xc72)]=0x1),!_0x28cfbd&&(_0x12b414['query'][_0x5f07b3(0xc72)]=_0x14b560),_0x12b414[_0x5f07b3(0x1039)]());});function _0x33441c(_0x387e3b){_0x12b414['intervals']=_0x387e3b||{'count':0x0,'rows':[]};}function _0x426a74(){const _0x28a1e9=_0x44a3f4;_0x12b414['query'][_0x28a1e9(0x24f9)]=(_0x12b414[_0x28a1e9(0x289a)][_0x28a1e9(0xc72)]-0x1)*_0x12b414['query'][_0x28a1e9(0x25bb)],_0x5e307f['hasRole'](_0x28a1e9(0x333))?_0x12b414[_0x28a1e9(0x1713)]=_0x17a6a4[_0x28a1e9(0xcfd)][_0x28a1e9(0x896)](_0x12b414[_0x28a1e9(0x289a)],_0x33441c)['$promise']:(_0x12b414['query']['id']=_0x12b414[_0x28a1e9(0x16a8)]['id'],_0x12b414['query'][_0x28a1e9(0xa21)]=_0x28a1e9(0x2288),_0x12b414['promise']=_0x17a6a4[_0x28a1e9(0x16a8)][_0x28a1e9(0x2565)](_0x12b414['query'],_0x33441c)['$promise']);}function _0x5649f9(_0x177cca,_0x5101e6){const _0x7fbe1d=_0x44a3f4;_0x2e70c2['show']({'controller':_0x7fbe1d(0x177f),'controllerAs':'vm','templateUrl':_0x45af1e,'parent':angular[_0x7fbe1d(0x1f81)](_0x3de95b[_0x7fbe1d(0xb49)]),'targetEvent':_0x177cca,'clickOutsideToClose':!![],'locals':{'interval':_0x5101e6,'intervals':_0x12b414['intervals'][_0x7fbe1d(0x28b8)],'license':_0x12b414[_0x7fbe1d(0x1947)],'setting':_0x12b414[_0x7fbe1d(0x28d6)],'crudPermissions':_0x12b414['crudPermissions']}});}function _0x151c49(_0x9becc7){const _0x5ecadc=_0x44a3f4;_0x17a6a4[_0x5ecadc(0xcfd)][_0x5ecadc(0xabd)]({'id':_0x9becc7['id']})[_0x5ecadc(0x15e7)][_0x5ecadc(0x64a)](function(){const _0x14db72=_0x5ecadc;_0x28c606()['remove'](_0x12b414[_0x14db72(0x15e4)]['rows'],{'id':_0x9becc7['id']}),_0x12b414['intervals'][_0x14db72(0xb90)]-=0x1,!_0x12b414['intervals'][_0x14db72(0x28b8)]['length']&&_0x12b414[_0x14db72(0x1039)](),_0x24cb99['success']({'title':_0x28c606()['startCase']('Interval')+'\x20deleted!','msg':_0x9becc7[_0x14db72(0x2494)]?_0x9becc7[_0x14db72(0x2494)]+_0x14db72(0x1fa8):''});})['catch'](function(_0x101e3f){const _0x166729=_0x5ecadc;if(_0x101e3f[_0x166729(0x1c52)]&&_0x101e3f[_0x166729(0x1c52)][_0x166729(0xbae)]&&_0x101e3f[_0x166729(0x1c52)][_0x166729(0xbae)][_0x166729(0x1b9e)]){_0x12b414['errors']=_0x101e3f[_0x166729(0x1c52)][_0x166729(0xbae)]||[{'message':_0x101e3f[_0x166729(0x2915)](),'type':_0x166729(0x198b)}];for(let _0x4e6564=0x0;_0x4e6564<_0x101e3f[_0x166729(0x1c52)][_0x166729(0xbae)]['length'];_0x4e6564++){_0x24cb99['error']({'title':_0x101e3f[_0x166729(0x1c52)]['errors'][_0x4e6564][_0x166729(0x2185)],'msg':_0x101e3f['data'][_0x166729(0xbae)][_0x4e6564][_0x166729(0x18ca)]});}}else _0x24cb99[_0x166729(0x1bd0)]({'title':_0x101e3f['status']?_0x166729(0x575)+_0x101e3f[_0x166729(0x10b3)]+_0x166729(0x21db)+_0x101e3f['statusText']:_0x166729(0x198b),'msg':_0x101e3f['data']?JSON[_0x166729(0x2317)](_0x101e3f[_0x166729(0x1c52)]['message']):_0x101e3f[_0x166729(0x18ca)]||_0x101e3f[_0x166729(0x2915)]()});});}function _0x573fb6(){const _0x8126c7=_0x44a3f4,_0x4d56dc=angular[_0x8126c7(0x289e)](_0x12b414[_0x8126c7(0xabe)]);return _0x12b414[_0x8126c7(0xabe)]=[],_0x4d56dc;}function _0x3de967(_0xb2a12a){const _0x794680=_0x44a3f4,_0x3361f5=_0x2e70c2[_0x794680(0x856)]()[_0x794680(0x2021)](_0x794680(0x1d43))[_0x794680(0x33a)](_0x794680(0x50b)+_0x12b414['selectedIntervals'][_0x794680(0x1b9e)]+_0x794680(0x163e)+'\x20will\x20be\x20deleted.')[_0x794680(0x213e)](_0x794680(0xb2b))[_0x794680(0x2283)](_0xb2a12a)['ok']('OK')[_0x794680(0x101a)](_0x794680(0x18fd));_0x2e70c2['show'](_0x3361f5)[_0x794680(0x64a)](function(){const _0x382115=_0x794680;_0x12b414[_0x382115(0xabe)][_0x382115(0x1397)](function(_0x305604){_0x151c49(_0x305604);}),_0x12b414['selectedIntervals']=[];});}function _0x5af9d1(){const _0x1b636b=_0x44a3f4;_0x12b414[_0x1b636b(0xabe)]=[];}function _0x589d67(){const _0x5f27a4=_0x44a3f4;_0x12b414['selectedIntervals']=_0x12b414[_0x5f27a4(0x15e4)][_0x5f27a4(0x28b8)];}}const _0xd84d39=_0x4fe4b4;;_0x2c4be8[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),'toasty',_0x49a1e3(0x23d1),_0x49a1e3(0x2826),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting',_0x49a1e3(0x402)];function _0x2c4be8(_0x1d620d,_0x32107e,_0x5086b8,_0x23b67b,_0x3c8fff,_0x595a6b,_0x1cfcbf,_0x172cdc,_0x43860f,_0x36274c,_0x3e6382,_0x1809c0,_0x4c1600,_0x472ab4){const _0x30d594=_0x49a1e3,_0x369622=this;_0x369622[_0x30d594(0x1d3d)]=_0x3e6382[_0x30d594(0x808)](),_0x369622[_0x30d594(0xbae)]=[],_0x369622[_0x30d594(0x28d6)]=_0x4c1600,_0x369622[_0x30d594(0x1947)]=_0x1809c0,_0x369622[_0x30d594(0x402)]=_0x472ab4,_0x369622['hasModulePermissions']={},_0x369622['passwordPattern']=_0x369622[_0x30d594(0x28d6)]&&_0x369622['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x369622[_0x30d594(0x2021)]=_0x30d594(0x25f),_0x369622[_0x30d594(0x2826)]=angular[_0x30d594(0x289e)](_0x43860f),_0x369622[_0x30d594(0x23d1)]=_0x172cdc,_0x369622[_0x30d594(0xbc3)]=![];!_0x369622[_0x30d594(0x2826)]&&(_0x369622[_0x30d594(0x2826)]={},_0x369622['title']='TOOLS.NEW_PAUSE',_0x369622['newPause']=!![]);_0x369622[_0x30d594(0x131)]=_0x4a78b0,_0x369622[_0x30d594(0x15d2)]=_0x55c4fe,_0x369622[_0x30d594(0x1ea6)]=_0x97ae26,_0x369622[_0x30d594(0x1605)]=_0x17aa78,_0x369622[_0x30d594(0x16cb)]=_0x114253;function _0x4a78b0(){const _0x2e3a54=_0x30d594;_0x369622['errors']=[],_0x36274c[_0x2e3a54(0x2826)][_0x2e3a54(0x2479)](_0x369622['pause'])['$promise'][_0x2e3a54(0x64a)](function(_0x2ee47d){const _0x529a0a=_0x2e3a54;_0x369622[_0x529a0a(0x23d1)][_0x529a0a(0x1891)](_0x2ee47d[_0x529a0a(0x14f8)]()),_0x1cfcbf['success']({'title':_0x529a0a(0x2329),'msg':_0x369622[_0x529a0a(0x2826)][_0x529a0a(0x2494)]?_0x369622[_0x529a0a(0x2826)]['name']+_0x529a0a(0x258d):''}),_0x114253(_0x2ee47d);})[_0x2e3a54(0x20cd)](function(_0x40fef1){const _0x4b9e19=_0x2e3a54;if(_0x40fef1[_0x4b9e19(0x1c52)]&&_0x40fef1[_0x4b9e19(0x1c52)][_0x4b9e19(0xbae)]&&_0x40fef1[_0x4b9e19(0x1c52)][_0x4b9e19(0xbae)]['length']){_0x369622[_0x4b9e19(0xbae)]=_0x40fef1[_0x4b9e19(0x1c52)][_0x4b9e19(0xbae)]||[{'message':_0x40fef1['toString'](),'type':_0x4b9e19(0x1a33)}];for(let _0x28beaa=0x0;_0x28beaa<_0x40fef1['data'][_0x4b9e19(0xbae)][_0x4b9e19(0x1b9e)];_0x28beaa+=0x1){_0x1cfcbf[_0x4b9e19(0x1bd0)]({'title':_0x40fef1[_0x4b9e19(0x1c52)][_0x4b9e19(0xbae)][_0x28beaa][_0x4b9e19(0x2185)],'msg':_0x40fef1[_0x4b9e19(0x1c52)][_0x4b9e19(0xbae)][_0x28beaa][_0x4b9e19(0x18ca)]});}}else _0x1cfcbf[_0x4b9e19(0x1bd0)]({'title':_0x40fef1[_0x4b9e19(0x10b3)]?_0x4b9e19(0x575)+_0x40fef1[_0x4b9e19(0x10b3)]+_0x4b9e19(0x21db)+_0x40fef1[_0x4b9e19(0x2115)]:_0x4b9e19(0x1a33),'msg':_0x40fef1[_0x4b9e19(0x1c52)]?JSON['stringify'](_0x40fef1['data'][_0x4b9e19(0x18ca)]):_0x40fef1[_0x4b9e19(0x2915)]()});});}function _0x55c4fe(){const _0x443943=_0x30d594;_0x369622['errors']=[],_0x36274c[_0x443943(0x2826)][_0x443943(0x2603)]({'id':_0x369622['pause']['id']},_0x369622[_0x443943(0x2826)])[_0x443943(0x15e7)]['then'](function(_0x42edae){const _0x375e4a=_0x443943,_0x37e882=_0x28c606()[_0x375e4a(0x27bc)](_0x369622[_0x375e4a(0x23d1)],{'id':_0x42edae['id']});_0x37e882&&_0x28c606()[_0x375e4a(0x14fe)](_0x37e882,_0x28c606()[_0x375e4a(0x27bb)](_0x42edae[_0x375e4a(0x14f8)](),_0x28c606()['keys'](_0x37e882))),_0x1cfcbf[_0x375e4a(0x1339)]({'title':_0x375e4a(0x17be),'msg':_0x369622[_0x375e4a(0x2826)][_0x375e4a(0x2494)]?_0x369622['pause'][_0x375e4a(0x2494)]+_0x375e4a(0x271):''}),_0x114253(_0x42edae);})['catch'](function(_0x1cab03){const _0x288030=_0x443943;if(_0x1cab03[_0x288030(0x1c52)]&&_0x1cab03['data']['errors']&&_0x1cab03[_0x288030(0x1c52)][_0x288030(0xbae)][_0x288030(0x1b9e)]){_0x369622[_0x288030(0xbae)]=_0x1cab03['data'][_0x288030(0xbae)]||[{'message':_0x1cab03[_0x288030(0x2915)](),'type':_0x288030(0x1490)}];for(let _0x4daf14=0x0;_0x4daf14<_0x1cab03['data']['errors'][_0x288030(0x1b9e)];_0x4daf14++){_0x1cfcbf[_0x288030(0x1bd0)]({'title':_0x1cab03[_0x288030(0x1c52)][_0x288030(0xbae)][_0x4daf14]['type'],'msg':_0x1cab03['data'][_0x288030(0xbae)][_0x4daf14]['message']});}}else _0x1cfcbf[_0x288030(0x1bd0)]({'title':_0x1cab03[_0x288030(0x10b3)]?_0x288030(0x575)+_0x1cab03[_0x288030(0x10b3)]+_0x288030(0x21db)+_0x1cab03['statusText']:_0x288030(0x1490),'msg':_0x1cab03[_0x288030(0x1c52)]?JSON['stringify'](_0x1cab03['data'][_0x288030(0x18ca)]):_0x1cab03[_0x288030(0x2915)]()});});}function _0x97ae26(_0x3d3909){const _0x1012fc=_0x30d594;_0x369622[_0x1012fc(0xbae)]=[];const _0x1cfc30=_0x23b67b[_0x1012fc(0x856)]()[_0x1012fc(0x2021)](_0x1012fc(0x103a))[_0x1012fc(0x12b8)](_0x1012fc(0x2606))[_0x1012fc(0x213e)](_0x1012fc(0xa70))['ok']('Delete')[_0x1012fc(0x101a)](_0x1012fc(0x1dc6))[_0x1012fc(0x2283)](_0x3d3909);_0x23b67b[_0x1012fc(0xa60)](_0x1cfc30)['then'](function(){const _0x391e73=_0x1012fc;_0x36274c[_0x391e73(0x2826)]['delete']({'id':_0x369622[_0x391e73(0x2826)]['id']})[_0x391e73(0x15e7)]['then'](function(){const _0x384c8a=_0x391e73;_0x28c606()['remove'](_0x369622[_0x384c8a(0x23d1)],{'id':_0x369622[_0x384c8a(0x2826)]['id']}),_0x1cfcbf[_0x384c8a(0x1339)]({'title':_0x384c8a(0x221a),'msg':(_0x369622[_0x384c8a(0x2826)][_0x384c8a(0x2494)]||_0x384c8a(0x2826))+_0x384c8a(0x1fa8)}),_0x114253(_0x369622[_0x384c8a(0x2826)]);})[_0x391e73(0x20cd)](function(_0x3b40ab){const _0x16676c=_0x391e73;if(_0x3b40ab[_0x16676c(0x1c52)]&&_0x3b40ab[_0x16676c(0x1c52)]['errors']&&_0x3b40ab[_0x16676c(0x1c52)][_0x16676c(0xbae)][_0x16676c(0x1b9e)]){_0x369622[_0x16676c(0xbae)]=_0x3b40ab[_0x16676c(0x1c52)]['errors']||[{'message':_0x3b40ab['toString'](),'type':_0x16676c(0x120d)}];for(let _0x2b2a02=0x0;_0x2b2a02<_0x3b40ab[_0x16676c(0x1c52)][_0x16676c(0xbae)][_0x16676c(0x1b9e)];_0x2b2a02++){_0x1cfcbf[_0x16676c(0x1bd0)]({'title':_0x3b40ab[_0x16676c(0x1c52)][_0x16676c(0xbae)][_0x2b2a02][_0x16676c(0x2185)],'msg':_0x3b40ab['data']['errors'][_0x2b2a02]['message']});}}else _0x1cfcbf[_0x16676c(0x1bd0)]({'title':_0x3b40ab[_0x16676c(0x10b3)]?_0x16676c(0x575)+_0x3b40ab['status']+_0x16676c(0x21db)+_0x3b40ab[_0x16676c(0x2115)]:'api.pause.delete','msg':_0x3b40ab[_0x16676c(0x1c52)]?JSON[_0x16676c(0x2317)](_0x3b40ab['data']['message']):_0x3b40ab[_0x16676c(0x18ca)]||_0x3b40ab[_0x16676c(0x2915)]()});});},function(){});}function _0x17aa78(_0x1ecf70){return _0x1ecf70===null?undefined:new Date(_0x1ecf70);}function _0x114253(_0x50e314){const _0x5238cb=_0x30d594;_0x23b67b[_0x5238cb(0x268e)](_0x50e314);}}const _0x5598a3=_0x2c4be8;;const _0x45e86f=_0x2e4a48['p']+_0x49a1e3(0x2325);;_0x5b2159['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),'$translate',_0x49a1e3(0x23d1),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x5b2159(_0x30ec79,_0x118a8a,_0x43f451,_0x4143de,_0x58fe1c,_0x2bbfde,_0x2be9ee,_0x4e5a02,_0x17da27,_0x832b5d,_0x39017b,_0x14fa0e,_0xb708db,_0x1bb80d,_0x54b4ee,_0x206f36,_0x19dccc){const _0x26aa72=_0x49a1e3,_0x3548f0=this;_0x3548f0[_0x26aa72(0x1947)]=_0x206f36,_0x3548f0[_0x26aa72(0x28d6)]=_0x19dccc,_0x3548f0[_0x26aa72(0x1d3d)]=_0x54b4ee[_0x26aa72(0x808)](),_0x3548f0[_0x26aa72(0x23d1)]=_0x17da27||{'count':0x0,'rows':[]},_0x3548f0[_0x26aa72(0x16a8)]=_0x832b5d,_0x3548f0[_0x26aa72(0x16b2)]=_0x39017b&&_0x39017b[_0x26aa72(0xb90)]==0x1?_0x39017b[_0x26aa72(0x28b8)][0x0]:null,_0x3548f0[_0x26aa72(0x402)]=_0x54b4ee['parseCrudPermissions'](_0x3548f0[_0x26aa72(0x16b2)]?_0x3548f0[_0x26aa72(0x16b2)]['crudPermissions']:null),_0x3548f0[_0x26aa72(0x185d)]='pauses',_0x3548f0[_0x26aa72(0x300)]='',_0x3548f0[_0x26aa72(0x2748)]=null,_0x3548f0[_0x26aa72(0xd07)]=[],_0x3548f0['query']={'fields':'createdAt,updatedAt,id,name,description','sort':'-updatedAt','limit':0xa,'page':0x1},_0x3548f0[_0x26aa72(0x1c42)]=_0x4fb70d,_0x3548f0[_0x26aa72(0x1262)]=_0x342260,_0x3548f0['success']=_0x11bebc,_0x3548f0[_0x26aa72(0xf73)]=_0x215bf7,_0x3548f0[_0x26aa72(0x12ac)]=_0x38454d,_0x3548f0['deletePause']=_0x3a2648,_0x3548f0[_0x26aa72(0x246b)]=_0xa22340,_0x3548f0[_0x26aa72(0xd5f)]=_0x3cfd70,_0x3548f0[_0x26aa72(0x8fd)]=_0xc31790,_0x3548f0[_0x26aa72(0x27f7)]=_0x17b311;function _0x4fb70d(_0xd1b38f,_0x5ddc96){const _0x523623=_0x26aa72;_0x58fe1c[_0x523623(0xa60)]({'controller':_0x523623(0xf60),'controllerAs':'vm','templateUrl':_0x45e86f,'parent':angular['element'](_0x2bbfde['body']),'targetEvent':_0x5ddc96,'clickOutsideToClose':!![],'locals':{'pause':_0xd1b38f,'pauses':_0x3548f0[_0x523623(0x23d1)][_0x523623(0x28b8)],'license':_0x3548f0[_0x523623(0x1947)],'setting':null,'crudPermissions':_0x3548f0['crudPermissions']}});}function _0x342260(_0x3a4703,_0x1d9445){const _0x442a5d=_0x26aa72,_0x3b7598=_0x58fe1c[_0x442a5d(0x856)]()[_0x442a5d(0x2021)](_0x442a5d(0x1231)+_0x28c606()[_0x442a5d(0xc01)](_0x442a5d(0x2826))+'?')[_0x442a5d(0x33a)](_0x442a5d(0x50b)+(_0x3a4703['name']||_0x442a5d(0x2826))+_0x442a5d(0x26d0)+_0x442a5d(0x4b8))[_0x442a5d(0x213e)](_0x442a5d(0x1072))[_0x442a5d(0x2283)](_0x1d9445)['ok']('OK')[_0x442a5d(0x101a)](_0x442a5d(0x18fd));_0x58fe1c['show'](_0x3b7598)[_0x442a5d(0x64a)](function(){_0x3a2648(_0x3a4703);},function(){const _0xcf0318=_0x442a5d;console[_0xcf0318(0x9b4)](_0xcf0318(0x18fd));});}let _0x145139=!![],_0x461b51=0x1;_0x30ec79[_0x26aa72(0xc62)](_0x26aa72(0x1cb9),function(_0x2547bb,_0x289055){const _0x3d9a6c=_0x26aa72;_0x145139?_0x2be9ee(function(){_0x145139=![];}):(!_0x289055&&(_0x461b51=_0x3548f0[_0x3d9a6c(0x289a)]['page']),_0x2547bb!==_0x289055&&(_0x3548f0[_0x3d9a6c(0x289a)]['page']=0x1),!_0x2547bb&&(_0x3548f0[_0x3d9a6c(0x289a)][_0x3d9a6c(0xc72)]=_0x461b51),_0x3548f0[_0x3d9a6c(0xf73)]());});function _0x11bebc(_0x339d1a){_0x3548f0['pauses']=_0x339d1a||{'count':0x0,'rows':[]};}function _0x215bf7(){const _0x56a3b6=_0x26aa72;_0x3548f0[_0x56a3b6(0x289a)][_0x56a3b6(0x24f9)]=(_0x3548f0['query'][_0x56a3b6(0xc72)]-0x1)*_0x3548f0[_0x56a3b6(0x289a)][_0x56a3b6(0x25bb)],_0x54b4ee['hasRole']('admin')?_0x3548f0[_0x56a3b6(0x1713)]=_0x14fa0e[_0x56a3b6(0x2826)][_0x56a3b6(0x896)](_0x3548f0[_0x56a3b6(0x289a)],_0x11bebc)['$promise']:(_0x3548f0[_0x56a3b6(0x289a)]['id']=_0x3548f0[_0x56a3b6(0x16a8)]['id'],_0x3548f0['query']['section']=_0x56a3b6(0x151b),_0x3548f0[_0x56a3b6(0x1713)]=_0x14fa0e['userProfile'][_0x56a3b6(0x2565)](_0x3548f0['query'],_0x11bebc)['$promise']);}function _0x38454d(_0x4013be,_0x39b136){const _0x13f40d=_0x26aa72;_0x58fe1c[_0x13f40d(0xa60)]({'controller':_0x13f40d(0xf60),'controllerAs':'vm','templateUrl':_0x45e86f,'parent':angular[_0x13f40d(0x1f81)](_0x2bbfde[_0x13f40d(0xb49)]),'targetEvent':_0x4013be,'clickOutsideToClose':!![],'locals':{'pause':_0x39b136,'pauses':_0x3548f0[_0x13f40d(0x23d1)][_0x13f40d(0x28b8)],'license':_0x3548f0[_0x13f40d(0x1947)],'setting':_0x3548f0[_0x13f40d(0x28d6)],'crudPermissions':_0x3548f0['crudPermissions']}});}function _0x3a2648(_0x446875){const _0x70d0f5=_0x26aa72;_0x14fa0e[_0x70d0f5(0x2826)][_0x70d0f5(0xabd)]({'id':_0x446875['id']})['$promise'][_0x70d0f5(0x64a)](function(){const _0x720c1b=_0x70d0f5;_0x28c606()[_0x720c1b(0x21c7)](_0x3548f0[_0x720c1b(0x23d1)][_0x720c1b(0x28b8)],{'id':_0x446875['id']}),_0x3548f0[_0x720c1b(0x23d1)][_0x720c1b(0xb90)]-=0x1,!_0x3548f0[_0x720c1b(0x23d1)]['rows'][_0x720c1b(0x1b9e)]&&_0x3548f0[_0x720c1b(0xf73)](),_0x1bb80d[_0x720c1b(0x1339)]({'title':_0x28c606()[_0x720c1b(0xc01)](_0x720c1b(0x9d3))+_0x720c1b(0x2502),'msg':_0x446875[_0x720c1b(0x2494)]?_0x446875['name']+_0x720c1b(0x1fa8):''});})[_0x70d0f5(0x20cd)](function(_0x34d50a){const _0xbf2aa4=_0x70d0f5;if(_0x34d50a['data']&&_0x34d50a[_0xbf2aa4(0x1c52)][_0xbf2aa4(0xbae)]&&_0x34d50a[_0xbf2aa4(0x1c52)][_0xbf2aa4(0xbae)][_0xbf2aa4(0x1b9e)]){_0x3548f0['errors']=_0x34d50a['data'][_0xbf2aa4(0xbae)]||[{'message':_0x34d50a[_0xbf2aa4(0x2915)](),'type':_0xbf2aa4(0x281)}];for(let _0x2dc8b3=0x0;_0x2dc8b3<_0x34d50a[_0xbf2aa4(0x1c52)][_0xbf2aa4(0xbae)][_0xbf2aa4(0x1b9e)];_0x2dc8b3++){_0x1bb80d['error']({'title':_0x34d50a['data'][_0xbf2aa4(0xbae)][_0x2dc8b3]['type'],'msg':_0x34d50a[_0xbf2aa4(0x1c52)]['errors'][_0x2dc8b3]['message']});}}else _0x1bb80d[_0xbf2aa4(0x1bd0)]({'title':_0x34d50a[_0xbf2aa4(0x10b3)]?'API:'+_0x34d50a['status']+_0xbf2aa4(0x21db)+_0x34d50a['statusText']:_0xbf2aa4(0x281),'msg':_0x34d50a['data']?JSON['stringify'](_0x34d50a[_0xbf2aa4(0x1c52)][_0xbf2aa4(0x18ca)]):_0x34d50a[_0xbf2aa4(0x18ca)]||_0x34d50a['toString']()});});}function _0xa22340(){const _0x2262dd=_0x26aa72,_0x5b4c3e=angular[_0x2262dd(0x289e)](_0x3548f0[_0x2262dd(0xd07)]);return _0x3548f0[_0x2262dd(0xd07)]=[],_0x5b4c3e;}function _0x3cfd70(_0x4fb64f){const _0x472177=_0x26aa72,_0x15754e=_0x58fe1c[_0x472177(0x856)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20pauses?')['htmlContent'](_0x472177(0x50b)+_0x3548f0[_0x472177(0xd07)][_0x472177(0x1b9e)]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x472177(0x213e)]('delete\x20Pauses')[_0x472177(0x2283)](_0x4fb64f)['ok']('OK')[_0x472177(0x101a)](_0x472177(0x18fd));_0x58fe1c[_0x472177(0xa60)](_0x15754e)[_0x472177(0x64a)](function(){const _0x226511=_0x472177;_0x3548f0['selectedPauses']['forEach'](function(_0x42ee4f){_0x3a2648(_0x42ee4f);}),_0x3548f0[_0x226511(0xd07)]=[];});}function _0xc31790(){_0x3548f0['selectedPauses']=[];}function _0x17b311(){const _0x37563a=_0x26aa72;_0x3548f0[_0x37563a(0xd07)]=_0x3548f0[_0x37563a(0x23d1)][_0x37563a(0x28b8)];}}const _0x44632d=_0x5b2159;;const _0x246405=_0x2e4a48['p']+_0x49a1e3(0xfcd);;_0x1204fa[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),'$location','$mdDialog','$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0xf92),_0x49a1e3(0x1ee7),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting',_0x49a1e3(0x402)];function _0x1204fa(_0x1c266f,_0x5572c4,_0x2a5764,_0x3727e0,_0x11cfad,_0x132972,_0x3e0254,_0x599f4a,_0x5f5444,_0x50b715,_0x53d187,_0x374709,_0xadb267,_0x272a55){const _0x3ee8dd=_0x49a1e3,_0x48275c=this;_0x48275c[_0x3ee8dd(0x1d3d)]=_0x53d187[_0x3ee8dd(0x808)](),_0x48275c['errors']=[],_0x48275c[_0x3ee8dd(0x28d6)]=_0xadb267,_0x48275c[_0x3ee8dd(0x1947)]=_0x374709,_0x48275c[_0x3ee8dd(0x402)]=_0x272a55,_0x48275c[_0x3ee8dd(0x6c2)]={},_0x48275c[_0x3ee8dd(0xccc)]=_0x48275c['setting']&&_0x48275c['setting'][_0x3ee8dd(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x48275c[_0x3ee8dd(0x2021)]='TOOLS.EDIT_SCHEDULE',_0x48275c[_0x3ee8dd(0x1ee7)]=angular[_0x3ee8dd(0x289e)](_0x5f5444),_0x48275c[_0x3ee8dd(0xf92)]=_0x599f4a,_0x48275c[_0x3ee8dd(0xcc5)]=![],_0x48275c['selectedReport']=[],_0x48275c[_0x3ee8dd(0x289a)]={'fields':'createdAt,updatedAt,id,name,description,table,parent,conditions,joins','limit':0xa,'page':0x1,'sort':_0x3ee8dd(0x260c)};if(!_0x48275c['schedule'])_0x48275c[_0x3ee8dd(0x1ee7)]={'output':'xlsx','active':!![],'startAt':new Date(),'endAt':new Date(Date[_0x3ee8dd(0x395)]()+0x1e*0x18*0x3c*0x3c*0x3e8),'cron':_0x3ee8dd(0x1d0a),'subtractNumber':0x1,'subtractUnit':_0x3ee8dd(0x19d1),'sendMail':![],'sendIfEmpty':!![]},_0x48275c[_0x3ee8dd(0x2021)]=_0x3ee8dd(0x177d),_0x48275c['newSchedule']=!![];else{_0x48275c['apiName']=_0x48275c[_0x3ee8dd(0x1ee7)][_0x3ee8dd(0x28c)]?_0x3ee8dd(0x254):_0x3ee8dd(0x1d97);const _0x198bd7=_0x48275c[_0x3ee8dd(0x1ee7)][_0x3ee8dd(0x28c)]?_0x48275c['schedule']['DefaultReportId']:_0x48275c['schedule'][_0x3ee8dd(0x27e3)];_0x50b715[_0x48275c['apiName']][_0x3ee8dd(0x896)]({'fields':_0x3ee8dd(0x1aa4)})['$promise'][_0x3ee8dd(0x64a)](function(_0x1f5613){const _0x385a3f=_0x3ee8dd;_0x48275c[_0x385a3f(0x1e94)]=_0x28c606()['find'](_0x1f5613[_0x385a3f(0x28b8)],{'id':_0x198bd7}),_0x48275c[_0x385a3f(0x1ee7)][_0x385a3f(0x1565)]=_0x48275c[_0x385a3f(0x1e94)][_0x385a3f(0x2494)],_0x48275c[_0x385a3f(0x289a)][_0x385a3f(0x2854)]=_0x48275c[_0x385a3f(0x1e94)][_0x385a3f(0x2854)];});}_0x48275c['addNewSchedule']=_0x611e41,_0x48275c[_0x3ee8dd(0x334)]=_0x34bc28,_0x48275c[_0x3ee8dd(0x2614)]=_0x28c26e,_0x48275c[_0x3ee8dd(0x1605)]=_0x3333bd,_0x48275c[_0x3ee8dd(0x267f)]=_0x16d757,_0x48275c[_0x3ee8dd(0x27db)]=_0x5662ee,_0x48275c[_0x3ee8dd(0x179a)]=_0x12a951,_0x48275c[_0x3ee8dd(0x2647)]=_0x51e14e,_0x48275c[_0x3ee8dd(0x16cb)]=_0x2ee34d,_0x50b715[_0x3ee8dd(0x1948)][_0x3ee8dd(0x896)]({})[_0x3ee8dd(0x15e7)][_0x3ee8dd(0x64a)](function(_0x4fe0fa){const _0x349bad=_0x3ee8dd;_0x48275c['treeReports']=_0x4fe0fa[_0x349bad(0x28b8)]||[];})[_0x3ee8dd(0x20cd)](function(_0x17b17d){const _0x2abd7e=_0x3ee8dd;_0x3e0254[_0x2abd7e(0x1bd0)]({'title':_0x17b17d[_0x2abd7e(0x10b3)]?_0x2abd7e(0x575)+_0x17b17d[_0x2abd7e(0x10b3)]+_0x2abd7e(0x21db)+_0x17b17d[_0x2abd7e(0x2115)]:_0x2abd7e(0xff7),'msg':_0x17b17d['data']?JSON['stringify'](_0x17b17d[_0x2abd7e(0x1c52)]):_0x17b17d['toString']()});}),_0x53d187[_0x3ee8dd(0x4de)](_0x3ee8dd(0x333))?_0x50b715[_0x3ee8dd(0x1b1e)][_0x3ee8dd(0x896)]({'fields':_0x3ee8dd(0x1427),'sort':'name'})[_0x3ee8dd(0x15e7)][_0x3ee8dd(0x64a)](function(_0x301f12){const _0x53f5c2=_0x3ee8dd;_0x48275c[_0x53f5c2(0x2435)]=_0x301f12[_0x53f5c2(0x28b8)]||[];})[_0x3ee8dd(0x20cd)](function(_0x58e021){const _0x2bbf1f=_0x3ee8dd;_0x3e0254['error']({'title':_0x58e021[_0x2bbf1f(0x10b3)]?_0x2bbf1f(0x575)+_0x58e021['status']+'\x20-\x20'+_0x58e021['statusText']:_0x2bbf1f(0x1883),'msg':_0x58e021[_0x2bbf1f(0x1c52)]?JSON[_0x2bbf1f(0x2317)](_0x58e021[_0x2bbf1f(0x1c52)]):_0x58e021[_0x2bbf1f(0x2915)]()});}):_0x50b715['mailAccount'][_0x3ee8dd(0x896)]({'fields':_0x3ee8dd(0x1427),'sort':'name'})[_0x3ee8dd(0x15e7)]['then'](function(_0x2cebd8){const _0x177643=_0x3ee8dd;_0x48275c[_0x177643(0x2435)]=_0x2cebd8['rows']||[];})[_0x3ee8dd(0x64a)](function(){const _0x1c3e57=_0x3ee8dd;return _0x50b715[_0x1c3e57(0x16b2)][_0x1c3e57(0x896)]({'userProfileId':_0x48275c[_0x1c3e57(0x1d3d)][_0x1c3e57(0x21ac)],'sectionId':0x25a})[_0x1c3e57(0x15e7)];})[_0x3ee8dd(0x64a)](function(_0x4a0631){const _0x4f9a77=_0x3ee8dd,_0x106cca=_0x4a0631&&_0x4a0631[_0x4f9a77(0x28b8)]?_0x4a0631[_0x4f9a77(0x28b8)][0x0]:null;if(!_0x106cca){const _0x2832d1=[];let _0x5e65d1=null;_0x48275c[_0x4f9a77(0x1ee7)]&&(_0x5e65d1=_0x28c606()[_0x4f9a77(0x27bc)](_0x48275c[_0x4f9a77(0x2435)],{'id':Number(_0x48275c[_0x4f9a77(0x1ee7)][_0x4f9a77(0xa4c)])}));for(let _0x50d8df=0x0;_0x50d8df<_0x48275c['mailAccounts'][_0x4f9a77(0x1b9e)];_0x50d8df++){_0x5e65d1&&_0x48275c['mailAccounts'][_0x50d8df]['id']===_0x5e65d1['id']&&(_0x48275c[_0x4f9a77(0x2435)][_0x50d8df][_0x4f9a77(0xd4f)]=![],_0x2832d1[_0x4f9a77(0x1954)](_0x48275c['mailAccounts'][_0x50d8df]));}_0x48275c[_0x4f9a77(0x2435)]=_0x2832d1;}else{if(!_0x106cca[_0x4f9a77(0x11da)])return _0x50b715['userProfileResource'][_0x4f9a77(0x896)]({'sectionId':_0x106cca['id']})['$promise'][_0x4f9a77(0x64a)](function(_0x1c2de5){const _0x3e7421=_0x4f9a77,_0x5c6c5a=_0x28c606()[_0x3e7421(0x1de5)](_0x1c2de5[_0x3e7421(0x28b8)],function(_0x2b5fef){const _0x5943c5=_0x3e7421;return _0x28c606()[_0x5943c5(0x27bc)](_0x48275c[_0x5943c5(0x2435)],{'id':_0x2b5fef[_0x5943c5(0x145)]});});let _0x260ca3=null;_0x48275c[_0x3e7421(0x1ee7)]&&(_0x260ca3=_0x28c606()[_0x3e7421(0x27bc)](_0x48275c['mailAccounts'],{'id':Number(_0x48275c[_0x3e7421(0x1ee7)][_0x3e7421(0xa4c)])}));if(_0x260ca3&&!_0x28c606()[_0x3e7421(0x25f8)](_0x5c6c5a,['id',_0x260ca3['id']])){const _0x1528a1=_0x28c606()[_0x3e7421(0x27bc)](_0x48275c[_0x3e7421(0x2435)],{'id':_0x260ca3['id']});_0x1528a1[_0x3e7421(0xd4f)]=![],_0x5c6c5a[_0x3e7421(0x1954)](_0x1528a1);}_0x48275c[_0x3e7421(0x2435)]=_0x5c6c5a;});}})['catch'](function(_0x250d0f){const _0x225026=_0x3ee8dd;_0x3e0254[_0x225026(0x1bd0)]({'title':_0x250d0f[_0x225026(0x10b3)]?_0x225026(0x575)+_0x250d0f['status']+_0x225026(0x21db)+_0x250d0f[_0x225026(0x2115)]:_0x225026(0x28b6),'msg':_0x250d0f[_0x225026(0x1c52)]?JSON['stringify'](_0x250d0f[_0x225026(0x1c52)]):_0x250d0f[_0x225026(0x2915)]()});});function _0x611e41(){const _0x36e6e6=_0x3ee8dd;_0x48275c[_0x36e6e6(0xbae)]=[],_0x50b715['schedule']['save'](_0x48275c[_0x36e6e6(0x1ee7)])[_0x36e6e6(0x15e7)][_0x36e6e6(0x64a)](function(_0x379292){const _0x3baf23=_0x36e6e6;_0x48275c[_0x3baf23(0xf92)]['unshift'](_0x379292[_0x3baf23(0x14f8)]()),_0x3e0254['success']({'title':_0x3baf23(0x1a81),'msg':_0x48275c['schedule']['name']?_0x48275c[_0x3baf23(0x1ee7)][_0x3baf23(0x2494)]+'\x20has\x20been\x20created!':''}),_0x2ee34d(_0x379292);})[_0x36e6e6(0x20cd)](function(_0x48b211){const _0xc835ca=_0x36e6e6;if(_0x48b211[_0xc835ca(0x1c52)]&&_0x48b211[_0xc835ca(0x1c52)][_0xc835ca(0xbae)]&&_0x48b211[_0xc835ca(0x1c52)][_0xc835ca(0xbae)][_0xc835ca(0x1b9e)]){_0x48275c[_0xc835ca(0xbae)]=_0x48b211[_0xc835ca(0x1c52)][_0xc835ca(0xbae)]||[{'message':_0x48b211[_0xc835ca(0x2915)](),'type':_0xc835ca(0x1ae2)}];for(let _0x4c7fe8=0x0;_0x4c7fe8<_0x48b211[_0xc835ca(0x1c52)]['errors']['length'];_0x4c7fe8+=0x1){_0x3e0254[_0xc835ca(0x1bd0)]({'title':_0x48b211[_0xc835ca(0x1c52)]['errors'][_0x4c7fe8][_0xc835ca(0x2185)],'msg':_0x48b211[_0xc835ca(0x1c52)][_0xc835ca(0xbae)][_0x4c7fe8][_0xc835ca(0x18ca)]});}}else _0x3e0254[_0xc835ca(0x1bd0)]({'title':_0x48b211[_0xc835ca(0x10b3)]?_0xc835ca(0x575)+_0x48b211[_0xc835ca(0x10b3)]+_0xc835ca(0x21db)+_0x48b211[_0xc835ca(0x2115)]:_0xc835ca(0x1ae2),'msg':_0x48b211['data']?JSON[_0xc835ca(0x2317)](_0x48b211[_0xc835ca(0x1c52)][_0xc835ca(0x18ca)]):_0x48b211[_0xc835ca(0x2915)]()});});}function _0x34bc28(){const _0x331fbb=_0x3ee8dd;_0x48275c['errors']=[],_0x50b715[_0x331fbb(0x1ee7)]['update']({'id':_0x48275c[_0x331fbb(0x1ee7)]['id']},_0x48275c[_0x331fbb(0x1ee7)])['$promise'][_0x331fbb(0x64a)](function(_0x41edec){const _0x396804=_0x331fbb,_0x2ccc36=_0x28c606()['find'](_0x48275c[_0x396804(0xf92)],{'id':_0x41edec['id']});_0x2ccc36&&_0x28c606()[_0x396804(0x14fe)](_0x2ccc36,_0x28c606()[_0x396804(0x27bb)](_0x41edec[_0x396804(0x14f8)](),_0x28c606()['keys'](_0x2ccc36))),_0x3e0254[_0x396804(0x1339)]({'title':_0x396804(0x37a),'msg':_0x48275c['schedule'][_0x396804(0x2494)]?_0x48275c[_0x396804(0x1ee7)][_0x396804(0x2494)]+_0x396804(0x271):''}),_0x2ee34d(_0x41edec);})[_0x331fbb(0x20cd)](function(_0x3fe3a6){const _0x51e8c7=_0x331fbb;if(_0x3fe3a6[_0x51e8c7(0x1c52)]&&_0x3fe3a6[_0x51e8c7(0x1c52)][_0x51e8c7(0xbae)]&&_0x3fe3a6['data'][_0x51e8c7(0xbae)][_0x51e8c7(0x1b9e)]){_0x48275c[_0x51e8c7(0xbae)]=_0x3fe3a6[_0x51e8c7(0x1c52)][_0x51e8c7(0xbae)]||[{'message':_0x3fe3a6[_0x51e8c7(0x2915)](),'type':'api.schedule.update'}];for(let _0x3dd7d0=0x0;_0x3dd7d0<_0x3fe3a6['data'][_0x51e8c7(0xbae)]['length'];_0x3dd7d0++){_0x3e0254['error']({'title':_0x3fe3a6[_0x51e8c7(0x1c52)][_0x51e8c7(0xbae)][_0x3dd7d0][_0x51e8c7(0x2185)],'msg':_0x3fe3a6[_0x51e8c7(0x1c52)][_0x51e8c7(0xbae)][_0x3dd7d0][_0x51e8c7(0x18ca)]});}}else _0x3e0254[_0x51e8c7(0x1bd0)]({'title':_0x3fe3a6['status']?_0x51e8c7(0x575)+_0x3fe3a6[_0x51e8c7(0x10b3)]+_0x51e8c7(0x21db)+_0x3fe3a6['statusText']:_0x51e8c7(0x24fa),'msg':_0x3fe3a6[_0x51e8c7(0x1c52)]?JSON[_0x51e8c7(0x2317)](_0x3fe3a6[_0x51e8c7(0x1c52)][_0x51e8c7(0x18ca)]):_0x3fe3a6[_0x51e8c7(0x2915)]()});});}function _0x28c26e(_0x12668c){const _0x260bac=_0x3ee8dd;_0x48275c[_0x260bac(0xbae)]=[];const _0x254ade=_0x3727e0['confirm']()[_0x260bac(0x2021)](_0x260bac(0x103a))[_0x260bac(0x12b8)](_0x260bac(0x435))['ariaLabel'](_0x260bac(0x1a10))['ok']('Delete')['cancel'](_0x260bac(0x1dc6))[_0x260bac(0x2283)](_0x12668c);_0x3727e0[_0x260bac(0xa60)](_0x254ade)[_0x260bac(0x64a)](function(){const _0x21eced=_0x260bac;_0x50b715[_0x21eced(0x1ee7)]['delete']({'id':_0x48275c[_0x21eced(0x1ee7)]['id']})[_0x21eced(0x15e7)]['then'](function(){const _0x28a959=_0x21eced;_0x28c606()[_0x28a959(0x21c7)](_0x48275c[_0x28a959(0xf92)],{'id':_0x48275c['schedule']['id']}),_0x3e0254[_0x28a959(0x1339)]({'title':_0x28a959(0x403),'msg':(_0x48275c[_0x28a959(0x1ee7)][_0x28a959(0x2494)]||'schedule')+_0x28a959(0x1fa8)}),_0x2ee34d(_0x48275c['schedule']);})[_0x21eced(0x20cd)](function(_0x32b753){const _0x423c2d=_0x21eced;if(_0x32b753[_0x423c2d(0x1c52)]&&_0x32b753[_0x423c2d(0x1c52)][_0x423c2d(0xbae)]&&_0x32b753[_0x423c2d(0x1c52)]['errors'][_0x423c2d(0x1b9e)]){_0x48275c['errors']=_0x32b753[_0x423c2d(0x1c52)][_0x423c2d(0xbae)]||[{'message':_0x32b753[_0x423c2d(0x2915)](),'type':_0x423c2d(0x1eee)}];for(let _0x106832=0x0;_0x106832<_0x32b753['data'][_0x423c2d(0xbae)][_0x423c2d(0x1b9e)];_0x106832++){_0x3e0254[_0x423c2d(0x1bd0)]({'title':_0x32b753[_0x423c2d(0x1c52)][_0x423c2d(0xbae)][_0x106832][_0x423c2d(0x2185)],'msg':_0x32b753[_0x423c2d(0x1c52)][_0x423c2d(0xbae)][_0x106832][_0x423c2d(0x18ca)]});}}else _0x3e0254[_0x423c2d(0x1bd0)]({'title':_0x32b753[_0x423c2d(0x10b3)]?_0x423c2d(0x575)+_0x32b753['status']+'\x20-\x20'+_0x32b753[_0x423c2d(0x2115)]:_0x423c2d(0x1eee),'msg':_0x32b753[_0x423c2d(0x1c52)]?JSON[_0x423c2d(0x2317)](_0x32b753['data']['message']):_0x32b753[_0x423c2d(0x18ca)]||_0x32b753['toString']()});});},function(){});}function _0x5d6cd8(){const _0x18fbbf=_0x3ee8dd,_0x48567d={'core':{'multiple':![],'animation':!![],'error':function(_0x161657){const _0x22a053=a0_0x4127;console[_0x22a053(0x1bd0)](_0x22a053(0x1c9b)+angular[_0x22a053(0x1b67)](_0x161657));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x18fbbf(0x13bc)]};return _0x48275c[_0x18fbbf(0x1d3d)]['role']!==_0x18fbbf(0x333)?_0x50b715[_0x18fbbf(0x16b2)][_0x18fbbf(0x896)]({'fields':_0x18fbbf(0x527),'userProfileId':_0x48275c[_0x18fbbf(0x1d3d)][_0x18fbbf(0x21ac)],'sectionId':0x4b3})[_0x18fbbf(0x15e7)]['then'](function(_0x51d843){const _0x3debdc=_0x18fbbf;return _0x48275c[_0x3debdc(0x16b2)]=_0x51d843&&_0x51d843[_0x3debdc(0xb90)]==0x1?_0x51d843[_0x3debdc(0x28b8)][0x0]:null,_0x48567d;})[_0x18fbbf(0x20cd)](function(_0x2efa96){const _0x5c8dec=_0x18fbbf;_0x3e0254[_0x5c8dec(0x1bd0)]({'title':_0x5c8dec(0x2440),'msg':_0x2efa96[_0x5c8dec(0x18ca)]});}):_0x48567d;}function _0x77996c(_0xa814a8){return _0xa814a8?{'loaded':_0x24a9a3,'select_node':_0x57d87f}:{'loaded':_0x3a9721,'select_node':_0x4f9434};}function _0x57d87f(_0x471caf,_0x38c716){const _0x1c5ada=_0x3ee8dd;_0x48275c[_0x1c5ada(0x2609)]['jstree'](!![])[_0x1c5ada(0x1c5c)](),_0x48275c[_0x1c5ada(0x2609)][_0x1c5ada(0x146e)](!![])[_0x1c5ada(0x2366)](),_0x48275c[_0x1c5ada(0x1519)]=_0x38c716[_0x1c5ada(0x1442)],_0x48275c['currentNode'][_0x1c5ada(0x1ad6)]=!![],_0x48275c[_0x1c5ada(0x1907)]=_0x48275c[_0x1c5ada(0x2003)]['jstree'](!![])[_0x1c5ada(0x215d)](_0x48275c[_0x1c5ada(0x1519)])['join']('/\x20'),_0x48275c['apiName']='analyticCustomReport',_0x48275c[_0x1c5ada(0x289a)][_0x1c5ada(0x2854)]=_0x38c716[_0x1c5ada(0x1442)]['id'],_0x16d757();}function _0x4f9434(_0x2c4332,_0x2e4a17){const _0x321eb2=_0x3ee8dd;_0x48275c[_0x321eb2(0x2003)][_0x321eb2(0x146e)](!![])[_0x321eb2(0x1c5c)](),_0x48275c['treeCustomInstance'][_0x321eb2(0x146e)](!![])[_0x321eb2(0x2366)](),_0x48275c['currentNode']=_0x2e4a17[_0x321eb2(0x1442)],_0x48275c[_0x321eb2(0x1519)][_0x321eb2(0x1ad6)]=![],_0x48275c[_0x321eb2(0x1907)]=_0x48275c[_0x321eb2(0x2609)]['jstree'](!![])[_0x321eb2(0x215d)](_0x48275c[_0x321eb2(0x1519)])[_0x321eb2(0x9a6)]('/\x20'),_0x48275c['apiName']='analyticDefaultReport',_0x48275c[_0x321eb2(0x289a)][_0x321eb2(0x2854)]=_0x2e4a17['node']['id'],_0x16d757();}function _0x24a9a3(){const _0x2d17b0=_0x3ee8dd;if(!_0x48275c[_0x2d17b0(0xcc5)]&&_0x48275c[_0x2d17b0(0x1c8e)]==='analyticCustomReport'){const _0x27853d=_0x48275c['treeCustomInstance'][_0x2d17b0(0x146e)](!![])[_0x2d17b0(0x1243)](_0x48275c['query'][_0x2d17b0(0x2854)]);_0x57d87f(null,{'node':_0x27853d,'selected':_0x27853d['id']});}}function _0x3a9721(){const _0x1f9cc0=_0x3ee8dd;if(!_0x48275c[_0x1f9cc0(0xcc5)]&&_0x48275c[_0x1f9cc0(0x1c8e)]===_0x1f9cc0(0x254)){const _0x36a248=_0x48275c[_0x1f9cc0(0x2609)]['jstree'](!![])[_0x1f9cc0(0x1243)](_0x48275c[_0x1f9cc0(0x289a)][_0x1f9cc0(0x2854)]);_0x4f9434(null,{'node':_0x36a248,'selected':_0x36a248['id']});}}function _0x16d757(){const _0x54d223=_0x3ee8dd;_0x48275c[_0x54d223(0x289a)]['offset']=(_0x48275c[_0x54d223(0x289a)][_0x54d223(0xc72)]-0x1)*_0x48275c[_0x54d223(0x289a)][_0x54d223(0x25bb)];if(_0x48275c['apiName']){if(_0x48275c[_0x54d223(0x1d3d)][_0x54d223(0x161a)]==='admin')_0x48275c[_0x54d223(0x1713)]=_0x50b715[_0x48275c[_0x54d223(0x1c8e)]][_0x54d223(0x896)](_0x48275c[_0x54d223(0x289a)],_0x36a4a1)[_0x54d223(0x15e7)];else{if(!_0x48275c['userProfileSection'])return _0x36a4a1(null);else{if(_0x48275c[_0x54d223(0x16b2)][_0x54d223(0x11da)])_0x48275c['promise']=_0x50b715[_0x48275c['apiName']][_0x54d223(0x896)](_0x48275c['query'],_0x36a4a1)[_0x54d223(0x15e7)];else{let _0x3f1f96=[];_0x48275c[_0x54d223(0x1713)]=_0x50b715[_0x48275c[_0x54d223(0x1c8e)]]['get'](_0x48275c[_0x54d223(0x289a)])[_0x54d223(0x15e7)][_0x54d223(0x64a)](function(_0x31ca32){const _0xd22630=_0x54d223;return _0x3f1f96=_0x31ca32&&_0x31ca32['rows']?_0x31ca32[_0xd22630(0x28b8)]:[],_0x3f1f96['length']>0x0?_0x50b715[_0xd22630(0x1617)][_0xd22630(0x896)]({'sectionId':_0x48275c[_0xd22630(0x16b2)]['id'],'type':_0x48275c[_0xd22630(0x1c8e)]===_0xd22630(0x254)?'DefaultReports':_0xd22630(0x121)})[_0xd22630(0x15e7)][_0xd22630(0x64a)](function(_0x1b52a2){const _0x1d1971=_0xd22630,_0x1d209d=_0x1b52a2&&_0x1b52a2[_0x1d1971(0x28b8)]?_0x1b52a2['rows']:[];if(_0x1d209d['length']>0x0){const _0x5116c8=[];return _0x3f1f96[_0x1d1971(0x1397)](function(_0x5caff1){const _0x239c7e=_0x1d1971,_0x189c88=_0x28c606()[_0x239c7e(0x27bc)](_0x1d209d,['resourceId',_0x5caff1['id']]);if(_0x189c88)_0x5116c8[_0x239c7e(0x1954)](_0x5caff1);}),_0x36a4a1({'count':_0x5116c8[_0x1d1971(0x1b9e)],'rows':_0x5116c8});}else return _0x36a4a1(null);}):_0x36a4a1(null);})[_0x54d223(0x20cd)](function(_0x4d4b0c){const _0x404c24=_0x54d223;_0x3e0254[_0x404c24(0x1bd0)]({'title':_0x4d4b0c[_0x404c24(0x10b3)]?'API:'+_0x4d4b0c['status']+_0x404c24(0x21db)+_0x4d4b0c[_0x404c24(0x2115)]:_0x404c24(0x20e9),'msg':_0x4d4b0c['data']?JSON[_0x404c24(0x2317)](_0x4d4b0c[_0x404c24(0x1c52)]):_0x4d4b0c[_0x404c24(0x2915)]()});});}}}}}function _0x36a4a1(_0x3d3473){const _0x2f43a6=_0x3ee8dd;_0x48275c[_0x2f43a6(0x47e)]=_0x3d3473||{'count':0x0,'rows':[]},!_0x48275c[_0x2f43a6(0xcc5)]&&_0x48275c['selectedReport'][_0x2f43a6(0x1954)](_0x28c606()[_0x2f43a6(0x27bc)](_0x48275c[_0x2f43a6(0x47e)][_0x2f43a6(0x28b8)],{'id':_0x48275c['currentReport']['id']}));}function _0x51e14e(){const _0x49b2b8=_0x3ee8dd;_0x48275c[_0x49b2b8(0x11de)]=_0x48275c[_0x49b2b8(0x9e9)][0x0]?angular['fromJson'](_0x48275c['treeReports'][0x0][_0x49b2b8(0x547)]):[],_0x48275c['treeCustomData']=_0x48275c[_0x49b2b8(0x9e9)][0x1]?angular[_0x49b2b8(0x836)](_0x48275c['treeReports'][0x1][_0x49b2b8(0x547)]):[],_0x48275c[_0x49b2b8(0x13d7)]=_0x5d6cd8(),_0x48275c[_0x49b2b8(0x1af1)]=_0x77996c(![]),_0x48275c[_0x49b2b8(0x1152)]=_0x77996c(!![]),_0x3727e0[_0x49b2b8(0xa60)]({'controller':function(){return _0x48275c;},'controllerAs':'vm','templateUrl':_0x246405,'autoWrap':!![],'skipHide':!![]});}function _0x5662ee(){const _0x170721=_0x3ee8dd;_0x48275c[_0x170721(0x1ee7)]['report']=_0x48275c[_0x170721(0xa8f)][0x0]['name'],_0x48275c['currentNode'][_0x170721(0x1ad6)]?(_0x48275c['schedule'][_0x170721(0x27e3)]=_0x48275c['selectedReport'][0x0]['id'],delete _0x48275c[_0x170721(0x1ee7)][_0x170721(0x28c)]):(_0x48275c[_0x170721(0x1ee7)][_0x170721(0x28c)]=_0x48275c[_0x170721(0xa8f)][0x0]['id'],delete _0x48275c[_0x170721(0x1ee7)][_0x170721(0x27e3)]),_0x1c266f[_0x170721(0xce5)]['report'][_0x170721(0x1fb7)](),_0x3727e0[_0x170721(0x268e)]();}function _0x12a951(){_0x3727e0['hide']();}function _0x3333bd(_0x1ebe41){return _0x1ebe41===null?undefined:new Date(_0x1ebe41);}function _0x2ee34d(_0x56aedf){_0x3727e0['hide'](_0x56aedf);}}const _0x30ca5a=_0x1204fa;;const _0x454649=_0x2e4a48['p']+_0x49a1e3(0x10a3);;_0x25d1b3['$inject']=['$scope','$window',_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog','$document',_0x49a1e3(0x20d4),'$translate',_0x49a1e3(0xf92),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),'toasty',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x25d1b3(_0x44a5f2,_0x23fb42,_0xc944e4,_0x130347,_0x17df6b,_0x28e0cd,_0x118f5a,_0x330053,_0xb0f7d2,_0x1204f1,_0x156893,_0x168a80,_0x38206e,_0x1669e2,_0x5e68cd,_0x27af17,_0x409e05){const _0x54da18=_0x49a1e3,_0x1ca072=this;_0x1ca072[_0x54da18(0x1947)]=_0x27af17,_0x1ca072[_0x54da18(0x28d6)]=_0x409e05,_0x1ca072['currentUser']=_0x5e68cd['getCurrentUser'](),_0x1ca072[_0x54da18(0xf92)]=_0xb0f7d2||{'count':0x0,'rows':[]},_0x1ca072[_0x54da18(0x16a8)]=_0x1204f1,_0x1ca072[_0x54da18(0x16b2)]=_0x156893&&_0x156893[_0x54da18(0xb90)]==0x1?_0x156893['rows'][0x0]:null,_0x1ca072[_0x54da18(0x402)]=_0x5e68cd[_0x54da18(0xa7e)](_0x1ca072[_0x54da18(0x16b2)]?_0x1ca072[_0x54da18(0x16b2)]['crudPermissions']:null),_0x1ca072[_0x54da18(0x185d)]=_0x54da18(0xf92),_0x1ca072[_0x54da18(0x300)]='',_0x1ca072[_0x54da18(0x2748)]=null,_0x1ca072[_0x54da18(0x1eef)]=[],_0x1ca072['query']={'fields':_0x54da18(0x1890),'sort':_0x54da18(0x260c),'limit':0xa,'page':0x1},_0x1ca072[_0x54da18(0x16e6)]=_0x28c606()[_0x54da18(0x161e)]([{'option':_0x54da18(0x20e3),'value':'\x27csv\x27'},{'option':_0x54da18(0x53b),'value':_0x54da18(0x2689)},{'option':_0x54da18(0x834),'value':_0x54da18(0x1ab0)}],function(_0x288f75){const _0x15c909=_0x54da18;return _0x28c606()['replace'](_0x288f75[_0x15c909(0x1096)],new RegExp('\x27','g'),'');}),_0x1ca072[_0x54da18(0x22d8)]=_0x28c606()[_0x54da18(0x161e)]([{'option':'Minutes','value':'\x27minutes\x27'},{'option':_0x54da18(0xf37),'value':_0x54da18(0x500)},{'option':_0x54da18(0x226b),'value':_0x54da18(0x2436)},{'option':_0x54da18(0x17f3),'value':_0x54da18(0xe9c)},{'option':'Months','value':_0x54da18(0x288c)},{'option':_0x54da18(0x1547),'value':_0x54da18(0x968)},{'option':_0x54da18(0x137c),'value':_0x54da18(0x2f3)}],function(_0x2f87c4){const _0x46ccce=_0x54da18;return _0x28c606()[_0x46ccce(0x1353)](_0x2f87c4[_0x46ccce(0x1096)],new RegExp('\x27','g'),'');}),_0x1ca072[_0x54da18(0x1c42)]=_0x52f39c,_0x1ca072['runconfirm']=_0xea3157,_0x1ca072['deleteconfirm']=_0x5c17de,_0x1ca072[_0x54da18(0x1339)]=_0xd0d90,_0x1ca072[_0x54da18(0x1f9f)]=_0x5f22a5,_0x1ca072[_0x54da18(0x2698)]=_0x52d0a0,_0x1ca072[_0x54da18(0x2614)]=_0x5b63f7,_0x1ca072['exportSelectedScheduler']=_0xfc7de,_0x1ca072[_0x54da18(0x1f74)]=_0x31f56d,_0x1ca072[_0x54da18(0xd26)]=_0x43c1aa,_0x1ca072[_0x54da18(0x19cc)]=_0x1ee070,_0x168a80[_0x54da18(0x1948)]['get']({})[_0x54da18(0x15e7)][_0x54da18(0x64a)](function(_0x48876d){const _0x5dbb0d=_0x54da18;_0x1ca072['treeReports']=_0x48876d[_0x5dbb0d(0x28b8)]||[];})[_0x54da18(0x20cd)](function(_0x721d37){const _0x425066=_0x54da18;_0x1669e2['error']({'title':_0x721d37['status']?_0x425066(0x575)+_0x721d37[_0x425066(0x10b3)]+_0x425066(0x21db)+_0x721d37['statusText']:'SYSTEM:GET_TREEREPORTS','msg':_0x721d37[_0x425066(0x1c52)]?JSON[_0x425066(0x2317)](_0x721d37['data']):_0x721d37[_0x425066(0x2915)]()});}),_0x5e68cd[_0x54da18(0x4de)]('admin')?_0x168a80['mailAccount'][_0x54da18(0x896)]({'fields':'id,name','sort':'name'})[_0x54da18(0x15e7)][_0x54da18(0x64a)](function(_0x4c6868){const _0x53828d=_0x54da18;_0x1ca072[_0x53828d(0x2435)]=_0x4c6868[_0x53828d(0x28b8)]||[];})[_0x54da18(0x20cd)](function(_0x1869e1){const _0x50beed=_0x54da18;_0x1669e2[_0x50beed(0x1bd0)]({'title':_0x1869e1[_0x50beed(0x10b3)]?_0x50beed(0x575)+_0x1869e1[_0x50beed(0x10b3)]+_0x50beed(0x21db)+_0x1869e1[_0x50beed(0x2115)]:_0x50beed(0x1883),'msg':_0x1869e1[_0x50beed(0x1c52)]?JSON[_0x50beed(0x2317)](_0x1869e1[_0x50beed(0x1c52)]):_0x1869e1['toString']()});}):_0x168a80[_0x54da18(0x1b1e)]['get']({'fields':'id,name','sort':_0x54da18(0x2494)})[_0x54da18(0x15e7)][_0x54da18(0x64a)](function(_0x447340){const _0x4d0e3e=_0x54da18;_0x1ca072[_0x4d0e3e(0x2435)]=_0x447340[_0x4d0e3e(0x28b8)]||[];})['then'](function(){const _0x5c2329=_0x54da18;return _0x168a80['userProfileSection'][_0x5c2329(0x896)]({'userProfileId':_0x1ca072[_0x5c2329(0x1d3d)]['userProfileId'],'sectionId':0x25a})['$promise'];})[_0x54da18(0x64a)](function(_0xfc80ac){const _0x4c4c36=_0x54da18,_0x498181=_0xfc80ac&&_0xfc80ac[_0x4c4c36(0x28b8)]?_0xfc80ac[_0x4c4c36(0x28b8)][0x0]:null;if(!_0x498181){const _0x36efa2=[];let _0x4f5970=null;_0x1ca072['schedule']&&(_0x4f5970=_0x28c606()[_0x4c4c36(0x27bc)](_0x1ca072[_0x4c4c36(0x2435)],{'id':Number(_0x1ca072[_0x4c4c36(0x1ee7)][_0x4c4c36(0xa4c)])}));for(let _0x5cfadc=0x0;_0x5cfadc<_0x1ca072[_0x4c4c36(0x2435)]['length'];_0x5cfadc++){_0x4f5970&&_0x1ca072[_0x4c4c36(0x2435)][_0x5cfadc]['id']===_0x4f5970['id']&&(_0x1ca072[_0x4c4c36(0x2435)][_0x5cfadc]['canSelect']=![],_0x36efa2[_0x4c4c36(0x1954)](_0x1ca072[_0x4c4c36(0x2435)][_0x5cfadc]));}_0x1ca072[_0x4c4c36(0x2435)]=_0x36efa2;}else{if(!_0x498181[_0x4c4c36(0x11da)])return _0x168a80[_0x4c4c36(0x1617)][_0x4c4c36(0x896)]({'sectionId':_0x498181['id']})['$promise'][_0x4c4c36(0x64a)](function(_0x3ee24c){const _0x3d270b=_0x4c4c36,_0x21628d=_0x28c606()['map'](_0x3ee24c[_0x3d270b(0x28b8)],function(_0x2890da){const _0xd7c30a=_0x3d270b;return _0x28c606()[_0xd7c30a(0x27bc)](_0x1ca072[_0xd7c30a(0x2435)],{'id':_0x2890da[_0xd7c30a(0x145)]});});let _0x1442f7=null;_0x1ca072[_0x3d270b(0x1ee7)]&&(_0x1442f7=_0x28c606()[_0x3d270b(0x27bc)](_0x1ca072['mailAccounts'],{'id':Number(_0x1ca072['schedule'][_0x3d270b(0xa4c)])}));if(_0x1442f7&&!_0x28c606()['some'](_0x21628d,['id',_0x1442f7['id']])){const _0x3717d2=_0x28c606()[_0x3d270b(0x27bc)](_0x1ca072['mailAccounts'],{'id':_0x1442f7['id']});_0x3717d2['canSelect']=![],_0x21628d['push'](_0x3717d2);}_0x1ca072[_0x3d270b(0x2435)]=_0x21628d;});}})[_0x54da18(0x20cd)](function(_0x172138){const _0x4f4d0d=_0x54da18;_0x1669e2[_0x4f4d0d(0x1bd0)]({'title':_0x172138[_0x4f4d0d(0x10b3)]?_0x4f4d0d(0x575)+_0x172138[_0x4f4d0d(0x10b3)]+_0x4f4d0d(0x21db)+_0x172138['statusText']:'SYSTEM:GETmailAccounts','msg':_0x172138[_0x4f4d0d(0x1c52)]?JSON[_0x4f4d0d(0x2317)](_0x172138[_0x4f4d0d(0x1c52)]):_0x172138['toString']()});});function _0x52f39c(_0x2cd8c7,_0x241396){const _0xe379fb=_0x54da18;_0x17df6b[_0xe379fb(0xa60)]({'controller':'CreateOrEditScheduleDialogController','controllerAs':'vm','templateUrl':_0x454649,'parent':angular['element'](_0x28e0cd['body']),'targetEvent':_0x241396,'clickOutsideToClose':!![],'locals':{'schedule':_0x2cd8c7,'schedules':_0x1ca072['schedules'][_0xe379fb(0x28b8)],'license':_0x1ca072['license'],'setting':null,'crudPermissions':_0x1ca072['crudPermissions']}});}function _0xea3157(_0x51fae3,_0x237eec){const _0xc3362a=_0x54da18,_0x2407c0=_0x17df6b[_0xc3362a(0x856)]()['title'](_0xc3362a(0xde6))[_0xc3362a(0x33a)](_0xc3362a(0x50b)+(_0x51fae3[_0xc3362a(0x2494)]||_0xc3362a(0x1ee7))+_0xc3362a(0x26d0)+_0xc3362a(0x2885))['ariaLabel'](_0xc3362a(0x2555))['targetEvent'](_0x237eec)['ok']('OK')[_0xc3362a(0x101a)](_0xc3362a(0x18fd));_0x17df6b[_0xc3362a(0xa60)](_0x2407c0)[_0xc3362a(0x64a)](function(){const _0xd5aac1=_0xc3362a;return _0x168a80[_0xd5aac1(0x1ee7)][_0xd5aac1(0x1a43)]({'id':_0x51fae3['id']})[_0xd5aac1(0x15e7)];},function(){const _0x1cd9bc=_0xc3362a;console[_0x1cd9bc(0x9b4)](_0x1cd9bc(0x18fd));});}function _0x5c17de(_0x1f84db,_0x1be06a){const _0x231559=_0x54da18,_0x395d93=_0x17df6b['confirm']()[_0x231559(0x2021)](_0x231559(0x1231)+_0x28c606()[_0x231559(0xc01)](_0x231559(0x1ee7))+'?')[_0x231559(0x33a)](''+(_0x1f84db[_0x231559(0x2494)]||'schedule')+_0x231559(0x26d0)+_0x231559(0x4b8))[_0x231559(0x213e)](_0x231559(0x2555))[_0x231559(0x2283)](_0x1be06a)['ok']('OK')['cancel'](_0x231559(0x18fd));_0x17df6b[_0x231559(0xa60)](_0x395d93)['then'](function(){_0x5b63f7(_0x1f84db);},function(){const _0x3e9589=_0x231559;console[_0x3e9589(0x9b4)](_0x3e9589(0x18fd));});}let _0x2e3fdf=!![],_0x153624=0x1;_0x44a5f2['$watch'](_0x54da18(0x1cb9),function(_0x1b5405,_0x1a466f){const _0xdfb1b1=_0x54da18;_0x2e3fdf?_0x118f5a(function(){_0x2e3fdf=![];}):(!_0x1a466f&&(_0x153624=_0x1ca072['query'][_0xdfb1b1(0xc72)]),_0x1b5405!==_0x1a466f&&(_0x1ca072[_0xdfb1b1(0x289a)]['page']=0x1),!_0x1b5405&&(_0x1ca072[_0xdfb1b1(0x289a)][_0xdfb1b1(0xc72)]=_0x153624),_0x1ca072[_0xdfb1b1(0x1f9f)]());});function _0xd0d90(_0x1ef166){const _0x2354b0=_0x54da18;_0x1ca072[_0x2354b0(0xf92)]=_0x1ef166||{'count':0x0,'rows':[]};}function _0x5f22a5(){const _0x50145a=_0x54da18;_0x1ca072['query'][_0x50145a(0x24f9)]=(_0x1ca072[_0x50145a(0x289a)][_0x50145a(0xc72)]-0x1)*_0x1ca072['query'][_0x50145a(0x25bb)],_0x5e68cd[_0x50145a(0x4de)]('admin')?_0x1ca072['promise']=_0x168a80[_0x50145a(0x1ee7)][_0x50145a(0x896)](_0x1ca072[_0x50145a(0x289a)],_0xd0d90)[_0x50145a(0x15e7)]:(_0x1ca072[_0x50145a(0x289a)]['id']=_0x1ca072[_0x50145a(0x16a8)]['id'],_0x1ca072[_0x50145a(0x289a)][_0x50145a(0xa21)]=_0x50145a(0xb55),_0x1ca072[_0x50145a(0x1713)]=_0x168a80[_0x50145a(0x16a8)][_0x50145a(0x2565)](_0x1ca072[_0x50145a(0x289a)],_0xd0d90)[_0x50145a(0x15e7)]);}function _0x52d0a0(_0x13c712,_0x49c9fb){const _0x2dcb3b=_0x54da18;_0x17df6b[_0x2dcb3b(0xa60)]({'controller':_0x2dcb3b(0x20b),'controllerAs':'vm','templateUrl':_0x454649,'parent':angular[_0x2dcb3b(0x1f81)](_0x28e0cd[_0x2dcb3b(0xb49)]),'targetEvent':_0x13c712,'clickOutsideToClose':!![],'locals':{'schedule':_0x49c9fb,'schedules':_0x1ca072[_0x2dcb3b(0xf92)][_0x2dcb3b(0x28b8)],'license':_0x1ca072['license'],'setting':_0x1ca072[_0x2dcb3b(0x28d6)],'crudPermissions':_0x1ca072[_0x2dcb3b(0x402)]}});}function _0x5b63f7(_0x2d8a11){const _0x2d0544=_0x54da18;_0x168a80[_0x2d0544(0x1ee7)][_0x2d0544(0xabd)]({'id':_0x2d8a11['id']})[_0x2d0544(0x15e7)]['then'](function(){const _0x426bcb=_0x2d0544;_0x28c606()[_0x426bcb(0x21c7)](_0x1ca072['schedules'][_0x426bcb(0x28b8)],{'id':_0x2d8a11['id']}),_0x1ca072['schedules'][_0x426bcb(0xb90)]-=0x1,!_0x1ca072[_0x426bcb(0xf92)][_0x426bcb(0x28b8)][_0x426bcb(0x1b9e)]&&_0x1ca072[_0x426bcb(0x1f9f)](),_0x1669e2['success']({'title':_0x28c606()[_0x426bcb(0xc01)](_0x426bcb(0x1197))+'\x20deleted!','msg':_0x2d8a11[_0x426bcb(0x2494)]?_0x2d8a11[_0x426bcb(0x2494)]+_0x426bcb(0x1fa8):''});})['catch'](function(_0x3160a5){const _0x1904b1=_0x2d0544;if(_0x3160a5[_0x1904b1(0x1c52)]&&_0x3160a5[_0x1904b1(0x1c52)][_0x1904b1(0xbae)]&&_0x3160a5[_0x1904b1(0x1c52)][_0x1904b1(0xbae)][_0x1904b1(0x1b9e)]){_0x1ca072['errors']=_0x3160a5[_0x1904b1(0x1c52)][_0x1904b1(0xbae)]||[{'message':_0x3160a5[_0x1904b1(0x2915)](),'type':_0x1904b1(0xf50)}];for(let _0x1e1fd6=0x0;_0x1e1fd6<_0x3160a5[_0x1904b1(0x1c52)]['errors'][_0x1904b1(0x1b9e)];_0x1e1fd6++){_0x1669e2['error']({'title':_0x3160a5[_0x1904b1(0x1c52)]['errors'][_0x1e1fd6]['type'],'msg':_0x3160a5[_0x1904b1(0x1c52)][_0x1904b1(0xbae)][_0x1e1fd6][_0x1904b1(0x18ca)]});}}else _0x1669e2['error']({'title':_0x3160a5[_0x1904b1(0x10b3)]?_0x1904b1(0x575)+_0x3160a5[_0x1904b1(0x10b3)]+_0x1904b1(0x21db)+_0x3160a5['statusText']:_0x1904b1(0xf50),'msg':_0x3160a5[_0x1904b1(0x1c52)]?JSON[_0x1904b1(0x2317)](_0x3160a5[_0x1904b1(0x1c52)][_0x1904b1(0x18ca)]):_0x3160a5[_0x1904b1(0x18ca)]||_0x3160a5[_0x1904b1(0x2915)]()});});}function _0xfc7de(){const _0xc7078b=_0x54da18,_0x14a07f=angular[_0xc7078b(0x289e)](_0x1ca072[_0xc7078b(0x1eef)]);return _0x1ca072[_0xc7078b(0x1eef)]=[],_0x14a07f;}function _0x31f56d(_0x1428d){const _0x59dae4=_0x54da18,_0x5baa6e=_0x17df6b[_0x59dae4(0x856)]()['title'](_0x59dae4(0x1360))[_0x59dae4(0x33a)](_0x59dae4(0x50b)+_0x1ca072['selectedScheduler'][_0x59dae4(0x1b9e)]+_0x59dae4(0x163e)+'\x20will\x20be\x20deleted.')[_0x59dae4(0x213e)](_0x59dae4(0x2434))['targetEvent'](_0x1428d)['ok']('OK')['cancel'](_0x59dae4(0x18fd));_0x17df6b[_0x59dae4(0xa60)](_0x5baa6e)['then'](function(){const _0x949375=_0x59dae4;_0x1ca072['selectedScheduler'][_0x949375(0x1397)](function(_0x47e428){_0x5b63f7(_0x47e428);}),_0x1ca072[_0x949375(0x1eef)]=[];});}function _0x43c1aa(){const _0x486a4a=_0x54da18;_0x1ca072[_0x486a4a(0x1eef)]=[];}function _0x1ee070(){const _0x244e09=_0x54da18;_0x1ca072[_0x244e09(0x1eef)]=_0x1ca072['schedules'][_0x244e09(0x28b8)];}}const _0x158ec2=_0x25d1b3;;_0x2d2cd0[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),'toasty',_0x49a1e3(0x16df),_0x49a1e3(0x282b),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'crudPermissions'];function _0x2d2cd0(_0x9ed144,_0x5c9ec5,_0x5bf479,_0x3ae15e,_0x131210,_0x21ddcc,_0x3bd5fb,_0x2818af,_0x1fc82a,_0x5e7d9e,_0x3a3f52,_0x58153c,_0x5f4ff1,_0x53dbaa){const _0xe67712=_0x49a1e3,_0x20cdf8=this;_0x20cdf8[_0xe67712(0x1d3d)]=_0x3a3f52[_0xe67712(0x808)](),_0x20cdf8['errors']=[],_0x20cdf8['setting']=_0x5f4ff1,_0x20cdf8[_0xe67712(0x1947)]=_0x58153c,_0x20cdf8[_0xe67712(0x402)]=_0x53dbaa,_0x20cdf8[_0xe67712(0x6c2)]={},_0x20cdf8[_0xe67712(0xccc)]=_0x20cdf8[_0xe67712(0x28d6)]&&_0x20cdf8['setting'][_0xe67712(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x20cdf8['title']=_0xe67712(0x1258),_0x20cdf8[_0xe67712(0x282b)]=angular[_0xe67712(0x289e)](_0x1fc82a),_0x20cdf8[_0xe67712(0x16df)]=_0x2818af,_0x20cdf8[_0xe67712(0x2567)]=![];!_0x20cdf8['sound']&&(_0x20cdf8[_0xe67712(0x282b)]={},_0x20cdf8[_0xe67712(0x2021)]=_0xe67712(0x16ef),_0x20cdf8[_0xe67712(0x2567)]=!![]);_0x20cdf8['addNewSound']=_0x241982,_0x20cdf8[_0xe67712(0x1747)]=_0x4e28be,_0x20cdf8[_0xe67712(0x2823)]=_0x378a99,_0x20cdf8['getDateFromString']=_0x266eb2,_0x20cdf8[_0xe67712(0x16cb)]=_0x31d0ee;function _0x241982(){const _0x1672d8=_0xe67712;_0x20cdf8[_0x1672d8(0xbae)]=[],_0x5e7d9e['sound'][_0x1672d8(0x2479)](_0x20cdf8['sound'])[_0x1672d8(0x15e7)][_0x1672d8(0x64a)](function(_0x233fc1){const _0x90b122=_0x1672d8;_0x20cdf8[_0x90b122(0x16df)]['unshift'](_0x233fc1[_0x90b122(0x14f8)]()),_0x3bd5fb[_0x90b122(0x1339)]({'title':'Sound\x20properly\x20created','msg':_0x20cdf8['sound'][_0x90b122(0x2494)]?_0x20cdf8[_0x90b122(0x282b)][_0x90b122(0x2494)]+'\x20has\x20been\x20created!':''}),_0x31d0ee(_0x233fc1);})[_0x1672d8(0x20cd)](function(_0x5129be){const _0x4b2a40=_0x1672d8;if(_0x5129be['data']&&_0x5129be[_0x4b2a40(0x1c52)][_0x4b2a40(0xbae)]&&_0x5129be[_0x4b2a40(0x1c52)][_0x4b2a40(0xbae)][_0x4b2a40(0x1b9e)]){_0x20cdf8[_0x4b2a40(0xbae)]=_0x5129be[_0x4b2a40(0x1c52)][_0x4b2a40(0xbae)]||[{'message':_0x5129be['toString'](),'type':_0x4b2a40(0x22e7)}];for(let _0xa34aa3=0x0;_0xa34aa3<_0x5129be[_0x4b2a40(0x1c52)][_0x4b2a40(0xbae)]['length'];_0xa34aa3+=0x1){_0x3bd5fb['error']({'title':_0x5129be[_0x4b2a40(0x1c52)][_0x4b2a40(0xbae)][_0xa34aa3][_0x4b2a40(0x2185)],'msg':_0x5129be[_0x4b2a40(0x1c52)][_0x4b2a40(0xbae)][_0xa34aa3][_0x4b2a40(0x18ca)]});}}else _0x3bd5fb['error']({'title':_0x5129be[_0x4b2a40(0x10b3)]?'API:'+_0x5129be[_0x4b2a40(0x10b3)]+_0x4b2a40(0x21db)+_0x5129be[_0x4b2a40(0x2115)]:_0x4b2a40(0x22e7),'msg':_0x5129be[_0x4b2a40(0x1c52)]?JSON[_0x4b2a40(0x2317)](_0x5129be['data']['message']):_0x5129be[_0x4b2a40(0x2915)]()});});}function _0x4e28be(){const _0x43d546=_0xe67712;_0x20cdf8[_0x43d546(0xbae)]=[],_0x5e7d9e[_0x43d546(0x282b)][_0x43d546(0x2603)]({'id':_0x20cdf8[_0x43d546(0x282b)]['id']},_0x20cdf8[_0x43d546(0x282b)])[_0x43d546(0x15e7)][_0x43d546(0x64a)](function(_0x336eaa){const _0x188c70=_0x43d546,_0x46a5fc=_0x28c606()[_0x188c70(0x27bc)](_0x20cdf8[_0x188c70(0x16df)],{'id':_0x336eaa['id']});_0x46a5fc&&_0x28c606()[_0x188c70(0x14fe)](_0x46a5fc,_0x28c606()[_0x188c70(0x27bb)](_0x336eaa[_0x188c70(0x14f8)](),_0x28c606()[_0x188c70(0x1ec6)](_0x46a5fc))),_0x3bd5fb[_0x188c70(0x1339)]({'title':_0x188c70(0x383),'msg':_0x20cdf8[_0x188c70(0x282b)][_0x188c70(0x2494)]?_0x20cdf8['sound'][_0x188c70(0x2494)]+_0x188c70(0x271):''}),_0x31d0ee(_0x336eaa);})[_0x43d546(0x20cd)](function(_0x3ce4aa){const _0x49120e=_0x43d546;if(_0x3ce4aa['data']&&_0x3ce4aa[_0x49120e(0x1c52)][_0x49120e(0xbae)]&&_0x3ce4aa[_0x49120e(0x1c52)]['errors'][_0x49120e(0x1b9e)]){_0x20cdf8['errors']=_0x3ce4aa[_0x49120e(0x1c52)][_0x49120e(0xbae)]||[{'message':_0x3ce4aa[_0x49120e(0x2915)](),'type':_0x49120e(0xe51)}];for(let _0x146773=0x0;_0x146773<_0x3ce4aa[_0x49120e(0x1c52)][_0x49120e(0xbae)][_0x49120e(0x1b9e)];_0x146773++){_0x3bd5fb[_0x49120e(0x1bd0)]({'title':_0x3ce4aa[_0x49120e(0x1c52)]['errors'][_0x146773][_0x49120e(0x2185)],'msg':_0x3ce4aa[_0x49120e(0x1c52)][_0x49120e(0xbae)][_0x146773][_0x49120e(0x18ca)]});}}else _0x3bd5fb['error']({'title':_0x3ce4aa['status']?_0x49120e(0x575)+_0x3ce4aa[_0x49120e(0x10b3)]+_0x49120e(0x21db)+_0x3ce4aa['statusText']:_0x49120e(0xe51),'msg':_0x3ce4aa[_0x49120e(0x1c52)]?JSON[_0x49120e(0x2317)](_0x3ce4aa[_0x49120e(0x1c52)][_0x49120e(0x18ca)]):_0x3ce4aa[_0x49120e(0x2915)]()});});}function _0x378a99(_0x3869b1){const _0x5c662b=_0xe67712;_0x20cdf8[_0x5c662b(0xbae)]=[];const _0x45252d=_0x3ae15e[_0x5c662b(0x856)]()[_0x5c662b(0x2021)](_0x5c662b(0x103a))[_0x5c662b(0x12b8)](_0x5c662b(0x170c))['ariaLabel'](_0x5c662b(0x1e8))['ok'](_0x5c662b(0x2664))['cancel']('Cancel')[_0x5c662b(0x2283)](_0x3869b1);_0x3ae15e[_0x5c662b(0xa60)](_0x45252d)[_0x5c662b(0x64a)](function(){const _0x1422ce=_0x5c662b;_0x5e7d9e[_0x1422ce(0x282b)][_0x1422ce(0xabd)]({'id':_0x20cdf8[_0x1422ce(0x282b)]['id']})['$promise'][_0x1422ce(0x64a)](function(){const _0x4933d0=_0x1422ce;_0x28c606()['remove'](_0x20cdf8[_0x4933d0(0x16df)],{'id':_0x20cdf8[_0x4933d0(0x282b)]['id']}),_0x3bd5fb[_0x4933d0(0x1339)]({'title':_0x4933d0(0x1f79),'msg':(_0x20cdf8[_0x4933d0(0x282b)]['name']||_0x4933d0(0x282b))+_0x4933d0(0x1fa8)}),_0x31d0ee(_0x20cdf8[_0x4933d0(0x282b)]);})['catch'](function(_0x2ddb9d){const _0x42f714=_0x1422ce;if(_0x2ddb9d[_0x42f714(0x1c52)]&&_0x2ddb9d[_0x42f714(0x1c52)][_0x42f714(0xbae)]&&_0x2ddb9d[_0x42f714(0x1c52)][_0x42f714(0xbae)]['length']){_0x20cdf8[_0x42f714(0xbae)]=_0x2ddb9d['data'][_0x42f714(0xbae)]||[{'message':_0x2ddb9d[_0x42f714(0x2915)](),'type':_0x42f714(0x1b03)}];for(let _0x4a3fe8=0x0;_0x4a3fe8<_0x2ddb9d[_0x42f714(0x1c52)][_0x42f714(0xbae)][_0x42f714(0x1b9e)];_0x4a3fe8++){_0x3bd5fb[_0x42f714(0x1bd0)]({'title':_0x2ddb9d['data'][_0x42f714(0xbae)][_0x4a3fe8]['type'],'msg':_0x2ddb9d[_0x42f714(0x1c52)][_0x42f714(0xbae)][_0x4a3fe8][_0x42f714(0x18ca)]});}}else _0x3bd5fb[_0x42f714(0x1bd0)]({'title':_0x2ddb9d[_0x42f714(0x10b3)]?_0x42f714(0x575)+_0x2ddb9d[_0x42f714(0x10b3)]+_0x42f714(0x21db)+_0x2ddb9d[_0x42f714(0x2115)]:_0x42f714(0x1b03),'msg':_0x2ddb9d[_0x42f714(0x1c52)]?JSON[_0x42f714(0x2317)](_0x2ddb9d[_0x42f714(0x1c52)][_0x42f714(0x18ca)]):_0x2ddb9d[_0x42f714(0x18ca)]||_0x2ddb9d[_0x42f714(0x2915)]()});});},function(){});}function _0x266eb2(_0x15ab68){return _0x15ab68===null?undefined:new Date(_0x15ab68);}function _0x31d0ee(_0xba9b59){const _0x335520=_0xe67712;_0x3ae15e[_0x335520(0x268e)](_0xba9b59);}}const _0x58e3ea=_0x2d2cd0;;const _0x3d214c=_0x2e4a48['p']+_0x49a1e3(0xb50);;const _0x11a9d5=_0x2e4a48['p']+_0x49a1e3(0x1b90);;_0x508e41[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),'$mdSidenav',_0x49a1e3(0x212a),'$document',_0x49a1e3(0x20d4),_0x49a1e3(0x298c),'sounds','userProfile','userProfileSection',_0x49a1e3(0xa19),_0x49a1e3(0x1214),'toasty',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x508e41(_0x37d12e,_0x283663,_0x248040,_0x2d5e39,_0x41b181,_0x580752,_0x12b7c1,_0x1d118a,_0x2014ab,_0x1553dd,_0x44fccf,_0x4e0c73,_0x4adb93,_0x246ecf,_0xf41a50,_0x51a01b,_0x1dc072){const _0x3ba85d=_0x49a1e3,_0x4e1b18=this;_0x4e1b18[_0x3ba85d(0x1947)]=_0x51a01b,_0x4e1b18['setting']=_0x1dc072,_0x4e1b18[_0x3ba85d(0x1d3d)]=_0xf41a50[_0x3ba85d(0x808)](),_0x4e1b18[_0x3ba85d(0x16df)]=_0x2014ab||{'count':0x0,'rows':[]},_0x4e1b18[_0x3ba85d(0x16a8)]=_0x1553dd,_0x4e1b18['userProfileSection']=_0x44fccf&&_0x44fccf[_0x3ba85d(0xb90)]==0x1?_0x44fccf[_0x3ba85d(0x28b8)][0x0]:null,_0x4e1b18[_0x3ba85d(0x402)]=_0xf41a50[_0x3ba85d(0xa7e)](_0x4e1b18['userProfileSection']?_0x4e1b18[_0x3ba85d(0x16b2)][_0x3ba85d(0x402)]:null),_0x4e1b18[_0x3ba85d(0x185d)]=_0x3ba85d(0x16df),_0x4e1b18[_0x3ba85d(0x300)]='',_0x4e1b18['listOrderAsc']=null,_0x4e1b18[_0x3ba85d(0x149)]=[],_0x4e1b18[_0x3ba85d(0x289a)]={'fields':_0x3ba85d(0x1c9c),'sort':_0x3ba85d(0x260c),'limit':0xa,'page':0x1},_0x4e1b18[_0x3ba85d(0x1c42)]=_0x1b3a57,_0x4e1b18[_0x3ba85d(0x1d39)]=_0x114488,_0x4e1b18[_0x3ba85d(0x1262)]=_0x452257,_0x4e1b18['success']=_0x45f34f,_0x4e1b18['getSounds']=_0x41b49e,_0x4e1b18[_0x3ba85d(0x24c1)]=_0x5c7d7b,_0x4e1b18['deleteSound']=_0x18be7c,_0x4e1b18[_0x3ba85d(0xd51)]=_0x1ac274,_0x4e1b18['deleteSelectedSounds']=_0x43d927,_0x4e1b18[_0x3ba85d(0x14c)]=_0x48df75,_0x4e1b18['selectAllSounds']=_0x342cea,_0x4e1b18[_0x3ba85d(0x2773)]=_0x1081fd;function _0x1b3a57(_0x285ec9,_0x5a0408){const _0x3c3eec=_0x3ba85d;_0x41b181[_0x3c3eec(0xa60)]({'controller':_0x3c3eec(0x276a),'controllerAs':'vm','templateUrl':_0x3d214c,'parent':angular[_0x3c3eec(0x1f81)](_0x580752[_0x3c3eec(0xb49)]),'targetEvent':_0x5a0408,'clickOutsideToClose':!![],'locals':{'sound':_0x285ec9,'sounds':_0x4e1b18['sounds'][_0x3c3eec(0x28b8)],'license':_0x4e1b18['license'],'setting':null,'crudPermissions':_0x4e1b18['crudPermissions']}});}function _0x114488(_0x29a33d){const _0x2b54a7=_0x3ba85d;return _0x4e0c73['sound'][_0x2b54a7(0x19b3)]({'id':_0x29a33d['id']})['$promise'][_0x2b54a7(0x64a)](function(_0x2a37ac){const _0x4b28fa=_0x2b54a7,_0x593848=[_0x2a37ac[_0x4b28fa(0x5a9)]];let _0x29b416=_0x4b28fa(0x19b3);const _0xb01e9a=new Blob(_0x593848,{'type':_0x2a37ac[_0x4b28fa(0x2185)]});_0x29b416=_0x29a33d[_0x4b28fa(0x1dac)]?_0x29a33d[_0x4b28fa(0x962)]+'.'+_0x29a33d[_0x4b28fa(0x1dac)]:_0x29a33d[_0x4b28fa(0x962)];const _0x443b70=window[_0x4b28fa(0x123f)][_0x4b28fa(0x2978)]('a');_0x443b70[_0x4b28fa(0x1280)]('href',URL['createObjectURL'](_0xb01e9a)),_0x443b70['setAttribute']('download',_0x29b416),document[_0x4b28fa(0xb49)]['appendChild'](_0x443b70),_0x443b70[_0x4b28fa(0x2668)]();})[_0x2b54a7(0x20cd)](function(_0x367ed5){const _0xe483be=_0x2b54a7;if(_0x367ed5[_0xe483be(0x1c52)]&&_0x367ed5[_0xe483be(0x1c52)][_0xe483be(0xbae)]&&_0x367ed5['data'][_0xe483be(0xbae)][_0xe483be(0x1b9e)])for(let _0x2dc2de=0x0;_0x2dc2de<_0x367ed5[_0xe483be(0x1c52)][_0xe483be(0xbae)][_0xe483be(0x1b9e)];_0x2dc2de++){_0x246ecf[_0xe483be(0x1bd0)]({'title':_0x367ed5[_0xe483be(0x1c52)]['errors'][_0x2dc2de][_0xe483be(0x2185)],'msg':_0x367ed5['data'][_0xe483be(0xbae)][_0x2dc2de][_0xe483be(0x18ca)]});}else _0x246ecf[_0xe483be(0x1bd0)]({'title':_0x367ed5[_0xe483be(0x10b3)]?_0xe483be(0x575)+_0x367ed5[_0xe483be(0x10b3)]+'\x20-\x20'+_0x367ed5[_0xe483be(0x2115)]:_0xe483be(0x22e7),'msg':_0x367ed5[_0xe483be(0x1c52)]?JSON[_0xe483be(0x2317)](_0x367ed5[_0xe483be(0x1c52)][_0xe483be(0x18ca)]):_0x367ed5[_0xe483be(0x2915)]()});});}function _0x452257(_0x1cf425,_0x1ea721){const _0x2a33a5=_0x3ba85d,_0x378698=_0x41b181['confirm']()[_0x2a33a5(0x2021)](_0x2a33a5(0x1231)+_0x28c606()[_0x2a33a5(0xc01)]('sound')+'?')[_0x2a33a5(0x33a)](_0x2a33a5(0x50b)+(_0x1cf425[_0x2a33a5(0x2494)]||_0x2a33a5(0x282b))+_0x2a33a5(0x26d0)+_0x2a33a5(0x4b8))[_0x2a33a5(0x213e)](_0x2a33a5(0x13ad))[_0x2a33a5(0x2283)](_0x1ea721)['ok']('OK')[_0x2a33a5(0x101a)](_0x2a33a5(0x18fd));_0x41b181[_0x2a33a5(0xa60)](_0x378698)[_0x2a33a5(0x64a)](function(){_0x18be7c(_0x1cf425);},function(){const _0x27f058=_0x2a33a5;console[_0x27f058(0x9b4)](_0x27f058(0x18fd));});}let _0x16a5aa=!![],_0x7ca759=0x1;_0x37d12e[_0x3ba85d(0xc62)](_0x3ba85d(0x1cb9),function(_0x396c6d,_0x55f1de){const _0x2f7cd6=_0x3ba85d;_0x16a5aa?_0x12b7c1(function(){_0x16a5aa=![];}):(!_0x55f1de&&(_0x7ca759=_0x4e1b18['query'][_0x2f7cd6(0xc72)]),_0x396c6d!==_0x55f1de&&(_0x4e1b18[_0x2f7cd6(0x289a)][_0x2f7cd6(0xc72)]=0x1),!_0x396c6d&&(_0x4e1b18[_0x2f7cd6(0x289a)][_0x2f7cd6(0xc72)]=_0x7ca759),_0x4e1b18[_0x2f7cd6(0x1e15)]());});function _0x45f34f(_0x590308){const _0x10cc71=_0x3ba85d;_0x4e1b18[_0x10cc71(0x16df)]=_0x590308||{'count':0x0,'rows':[]};}function _0x41b49e(){const _0x13b618=_0x3ba85d;_0x4e1b18['query'][_0x13b618(0x24f9)]=(_0x4e1b18['query'][_0x13b618(0xc72)]-0x1)*_0x4e1b18[_0x13b618(0x289a)][_0x13b618(0x25bb)],_0xf41a50[_0x13b618(0x4de)](_0x13b618(0x333))?_0x4e1b18['promise']=_0x4e0c73[_0x13b618(0x282b)][_0x13b618(0x896)](_0x4e1b18[_0x13b618(0x289a)],_0x45f34f)['$promise']:(_0x4e1b18[_0x13b618(0x289a)]['id']=_0x4e1b18[_0x13b618(0x16a8)]['id'],_0x4e1b18[_0x13b618(0x289a)][_0x13b618(0xa21)]=_0x13b618(0x28c3),_0x4e1b18[_0x13b618(0x1713)]=_0x4e0c73[_0x13b618(0x16a8)][_0x13b618(0x2565)](_0x4e1b18[_0x13b618(0x289a)],_0x45f34f)[_0x13b618(0x15e7)]);}function _0x5c7d7b(_0x15de9a,_0x190f6d){const _0x4fc12c=_0x3ba85d;_0x41b181[_0x4fc12c(0xa60)]({'controller':'CreateOrEditSoundDialogController','controllerAs':'vm','templateUrl':_0x3d214c,'parent':angular[_0x4fc12c(0x1f81)](_0x580752['body']),'targetEvent':_0x15de9a,'clickOutsideToClose':!![],'locals':{'sound':_0x190f6d,'sounds':_0x4e1b18[_0x4fc12c(0x16df)]['rows'],'license':_0x4e1b18['license'],'setting':_0x4e1b18[_0x4fc12c(0x28d6)],'crudPermissions':_0x4e1b18[_0x4fc12c(0x402)]}});}function _0x18be7c(_0x2f6742){const _0x2fc49a=_0x3ba85d;_0x4e0c73[_0x2fc49a(0x282b)][_0x2fc49a(0xabd)]({'id':_0x2f6742['id']})[_0x2fc49a(0x15e7)][_0x2fc49a(0x64a)](function(){const _0x1fa920=_0x2fc49a;_0x28c606()[_0x1fa920(0x21c7)](_0x4e1b18[_0x1fa920(0x16df)]['rows'],{'id':_0x2f6742['id']}),_0x4e1b18[_0x1fa920(0x16df)]['count']-=0x1,!_0x4e1b18[_0x1fa920(0x16df)][_0x1fa920(0x28b8)]['length']&&_0x4e1b18[_0x1fa920(0x1e15)](),_0x246ecf['success']({'title':_0x28c606()[_0x1fa920(0xc01)](_0x1fa920(0xea9))+_0x1fa920(0x2502),'msg':_0x2f6742[_0x1fa920(0x2494)]?_0x2f6742[_0x1fa920(0x2494)]+'\x20has\x20been\x20deleted!':''});})[_0x2fc49a(0x20cd)](function(_0x2e1960){const _0x4c14d0=_0x2fc49a;if(_0x2e1960[_0x4c14d0(0x1c52)]&&_0x2e1960[_0x4c14d0(0x1c52)][_0x4c14d0(0xbae)]&&_0x2e1960[_0x4c14d0(0x1c52)]['errors'][_0x4c14d0(0x1b9e)]){_0x4e1b18[_0x4c14d0(0xbae)]=_0x2e1960[_0x4c14d0(0x1c52)][_0x4c14d0(0xbae)]||[{'message':_0x2e1960[_0x4c14d0(0x2915)](),'type':_0x4c14d0(0x211b)}];for(let _0x36c3dd=0x0;_0x36c3dd<_0x2e1960[_0x4c14d0(0x1c52)][_0x4c14d0(0xbae)][_0x4c14d0(0x1b9e)];_0x36c3dd++){_0x246ecf['error']({'title':_0x2e1960['data'][_0x4c14d0(0xbae)][_0x36c3dd][_0x4c14d0(0x2185)],'msg':_0x2e1960[_0x4c14d0(0x1c52)]['errors'][_0x36c3dd][_0x4c14d0(0x18ca)]});}}else _0x246ecf['error']({'title':_0x2e1960[_0x4c14d0(0x10b3)]?_0x4c14d0(0x575)+_0x2e1960['status']+_0x4c14d0(0x21db)+_0x2e1960[_0x4c14d0(0x2115)]:_0x4c14d0(0x211b),'msg':_0x2e1960['data']?JSON[_0x4c14d0(0x2317)](_0x2e1960[_0x4c14d0(0x1c52)][_0x4c14d0(0x18ca)]):_0x2e1960[_0x4c14d0(0x18ca)]||_0x2e1960[_0x4c14d0(0x2915)]()});});}function _0x1ac274(){const _0x4d515c=_0x3ba85d,_0x4fa2b8=angular[_0x4d515c(0x289e)](_0x4e1b18[_0x4d515c(0x149)]);return _0x4e1b18[_0x4d515c(0x149)]=[],_0x4fa2b8;}function _0x43d927(_0x4c7af4){const _0x37d2c8=_0x3ba85d,_0x217410=_0x41b181[_0x37d2c8(0x856)]()[_0x37d2c8(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sounds?')[_0x37d2c8(0x33a)](''+_0x4e1b18[_0x37d2c8(0x149)]['length']+_0x37d2c8(0x163e)+'\x20will\x20be\x20deleted.')[_0x37d2c8(0x213e)](_0x37d2c8(0x1756))['targetEvent'](_0x4c7af4)['ok']('OK')[_0x37d2c8(0x101a)](_0x37d2c8(0x18fd));_0x41b181[_0x37d2c8(0xa60)](_0x217410)[_0x37d2c8(0x64a)](function(){const _0x5e2ca5=_0x37d2c8;_0x4e1b18[_0x5e2ca5(0x149)]['forEach'](function(_0xeb6793){_0x18be7c(_0xeb6793);}),_0x4e1b18['selectedSounds']=[];});}function _0x48df75(){const _0x382627=_0x3ba85d;_0x4e1b18[_0x382627(0x149)]=[];}function _0x342cea(){const _0x5b5633=_0x3ba85d;_0x4e1b18[_0x5b5633(0x149)]=_0x4e1b18[_0x5b5633(0x16df)]['rows'];}function _0x1081fd(_0x24b8e6){const _0x506ea8=_0x3ba85d;_0x41b181[_0x506ea8(0xa60)]({'controller':_0x506ea8(0x56a),'controllerAs':'vm','templateUrl':_0x11a9d5,'parent':angular[_0x506ea8(0x1f81)](_0x580752[_0x506ea8(0xb49)]),'targetEvent':_0x24b8e6,'clickOutsideToClose':!![],'locals':{'sounds':_0x4e1b18['sounds'][_0x506ea8(0x28b8)]}});}}const _0x198273=_0x508e41;;_0x4e1d32[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x212a),_0x49a1e3(0x680),'sounds',_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x4e1d32(_0x15a387,_0x31ed1a,_0x29d59d,_0x1abea9,_0x4ab901,_0x32ca1e){const _0x4fb3e1=_0x49a1e3,_0x5d5db3=this,_0x38e4b3=0xf,_0x2c110b=_0x38e4b3*0x400*0x400;_0x5d5db3['currentUser']=_0x32ca1e[_0x4fb3e1(0x808)](),_0x5d5db3[_0x4fb3e1(0xbae)]=[],_0x5d5db3[_0x4fb3e1(0x2021)]=_0x4fb3e1(0x1e6),_0x5d5db3['sounds']=_0x1abea9,_0x5d5db3['uploadSounds']=[],_0x5d5db3[_0x4fb3e1(0x171f)]=_0x4fb3e1(0x2507),_0x5d5db3[_0x4fb3e1(0x282b)]={},_0x5d5db3[_0x4fb3e1(0x1026)]={'maxChunkRetries':0x1,'chunkSize':_0x2c110b,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':'api/sounds'},_0x5d5db3['ngFlow']={'flow':{}},_0x5d5db3[_0x4fb3e1(0x397)]=![],_0x5d5db3[_0x4fb3e1(0x25ed)]=_0x91210,_0x5d5db3['upload']=_0x1dbf52,_0x5d5db3[_0x4fb3e1(0x1de6)]=_0x1d76c7,_0x5d5db3[_0x4fb3e1(0x2346)]=_0x4b94f9,_0x5d5db3[_0x4fb3e1(0x155d)]=_0x4195a7,_0x5d5db3[_0x4fb3e1(0x16cb)]=_0x577585;function _0x91210(_0x46122d){const _0x322d4a=_0x4fb3e1,_0x107270=[_0x322d4a(0x74b),'mp3',_0x322d4a(0x8e1)];if(!_0x28c606()[_0x322d4a(0x68a)](_0x107270,_0x46122d[_0x322d4a(0xa2f)]()))return _0x29d59d[_0x322d4a(0x1bd0)]({'title':_0x322d4a(0x1486)+_0x46122d[_0x322d4a(0xa2f)](),'msg':'Supported\x20extension:\x20'+_0x107270['join']()}),![];if(_0x46122d[_0x322d4a(0x1c97)]>_0x2c110b)return _0x29d59d[_0x322d4a(0x1bd0)]({'title':'File\x20too\x20big','msg':_0x322d4a(0xbfa)+_0x38e4b3+'MB'}),![];return _0x5d5db3[_0x322d4a(0x282b)]={'id':_0x46122d[_0x322d4a(0x16c4)],'file':_0x46122d},_0x5d5db3[_0x322d4a(0xd2d)][_0x322d4a(0x1891)](_0x5d5db3[_0x322d4a(0x282b)]),!![];}function _0x1dbf52(){const _0x18c6bb=_0x4fb3e1;_0x5d5db3[_0x18c6bb(0x171f)]=_0x18c6bb(0xffd),_0x5d5db3[_0x18c6bb(0x1eec)][_0x18c6bb(0x891)][_0x18c6bb(0x2017)][_0x18c6bb(0x1de3)]={'X-Requested-With':_0x18c6bb(0x15fc),'Authorization':_0x18c6bb(0x28cb)+_0x15a387[_0x18c6bb(0x896)]('motion.token')},_0x5d5db3[_0x18c6bb(0x1eec)]['flow'][_0x18c6bb(0x2017)][_0x18c6bb(0x289a)]={'role':_0x5d5db3['currentUser']['role'],'userProfileId':_0x5d5db3[_0x18c6bb(0x1d3d)]['userProfileId']},_0x5d5db3[_0x18c6bb(0x1eec)][_0x18c6bb(0x891)][_0x18c6bb(0x1c5)]();}function _0x1d76c7(_0x22502f,_0x30ba60){const _0x99f988=_0x4fb3e1;_0x5d5db3[_0x99f988(0x16df)][_0x99f988(0x1891)](JSON['parse'](_0x30ba60)),angular['forEach'](_0x5d5db3[_0x99f988(0xd2d)],function(_0x4a6e31){const _0x360776=_0x99f988;if(_0x4a6e31['id']===_0x22502f[_0x360776(0x16c4)]){const _0x4c0b2b=new FileReader();_0x4c0b2b[_0x360776(0x2724)](_0x4a6e31['file'][_0x360776(0x10b4)]),_0x4c0b2b[_0x360776(0x11c)]=function(_0x10d42c){const _0x816f83=_0x360776;_0x4a6e31['url']=_0x10d42c[_0x816f83(0x2497)][_0x816f83(0x5e3)];};}});}function _0x4b94f9(){const _0x9dedd7=_0x4fb3e1;_0x5d5db3['ngFlow'][_0x9dedd7(0x891)][_0x9dedd7(0x101a)](),_0x29d59d[_0x9dedd7(0x1bd0)]({'title':_0x9dedd7(0x8ef),'msg':_0x9dedd7(0x19b2)}),_0x5d5db3[_0x9dedd7(0x171f)]=_0x9dedd7(0x4a9);}function _0x4195a7(){const _0x255bb7=_0x4fb3e1;_0x5d5db3[_0x255bb7(0x171f)]!=='failed'&&(_0x5d5db3['uploadState']=_0x255bb7(0x125d),_0x29d59d[_0x255bb7(0x1339)]({'title':_0x255bb7(0x522),'msg':_0x5d5db3[_0x255bb7(0x282b)]['file']['name']+_0x255bb7(0x6a4)}));}function _0x577585(){const _0x4dc436=_0x4fb3e1;_0x31ed1a[_0x4dc436(0x268e)]();}}const _0x1facaa=_0x4e1d32;;_0xb30b27['$inject']=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog','$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x16a6),_0x49a1e3(0xac8),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0xb30b27(_0x168b96,_0x243789,_0x16fa57,_0x4a0da9,_0x200a45,_0x257fdc,_0xe26e12,_0x1f325e,_0x1e2a10,_0x318725,_0x348319,_0x5100ff,_0x518a79,_0x49cd57){const _0x44d162=_0x49a1e3,_0x17730c=this;_0x17730c['currentUser']=_0x348319[_0x44d162(0x808)](),_0x17730c[_0x44d162(0xbae)]=[],_0x17730c['setting']=_0x518a79,_0x17730c[_0x44d162(0x1947)]=_0x5100ff,_0x17730c['crudPermissions']=_0x49cd57,_0x17730c[_0x44d162(0x6c2)]={},_0x17730c[_0x44d162(0xccc)]=_0x17730c[_0x44d162(0x28d6)]&&_0x17730c['setting'][_0x44d162(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x17730c[_0x44d162(0x2021)]=_0x44d162(0x1bec),_0x17730c[_0x44d162(0xac8)]=angular[_0x44d162(0x289e)](_0x1e2a10),_0x17730c[_0x44d162(0x16a6)]=_0x1f325e,_0x17730c[_0x44d162(0x16eb)]=![];!_0x17730c[_0x44d162(0xac8)]&&(_0x17730c['tag']={},_0x17730c[_0x44d162(0x2021)]=_0x44d162(0x1cd8),_0x17730c[_0x44d162(0x16eb)]=!![]);_0x17730c['addNewTag']=_0x1a2742,_0x17730c[_0x44d162(0x1308)]=_0xcf7392,_0x17730c[_0x44d162(0x1ebd)]=_0x4215c2,_0x17730c[_0x44d162(0x1605)]=_0x547a1a,_0x17730c['closeDialog']=_0x45eece;function _0x1a2742(){const _0x18e1b7=_0x44d162;_0x17730c[_0x18e1b7(0xbae)]=[],_0x318725[_0x18e1b7(0xac8)][_0x18e1b7(0x2479)](_0x17730c['tag'])[_0x18e1b7(0x15e7)][_0x18e1b7(0x64a)](function(_0x2916e8){const _0x2099c3=_0x18e1b7;_0x17730c[_0x2099c3(0x16a6)][_0x2099c3(0x1891)](_0x2916e8['toJSON']()),_0xe26e12['success']({'title':_0x2099c3(0x6bf),'msg':_0x17730c[_0x2099c3(0xac8)][_0x2099c3(0x2494)]?_0x17730c[_0x2099c3(0xac8)][_0x2099c3(0x2494)]+_0x2099c3(0x258d):''}),_0x45eece(_0x2916e8);})[_0x18e1b7(0x20cd)](function(_0x19d7e1){const _0x39818e=_0x18e1b7;if(_0x19d7e1[_0x39818e(0x1c52)]&&_0x19d7e1['data'][_0x39818e(0xbae)]&&_0x19d7e1['data'][_0x39818e(0xbae)][_0x39818e(0x1b9e)]){_0x17730c[_0x39818e(0xbae)]=_0x19d7e1[_0x39818e(0x1c52)][_0x39818e(0xbae)]||[{'message':_0x19d7e1[_0x39818e(0x2915)](),'type':'api.tag.save'}];for(let _0x8c6138=0x0;_0x8c6138<_0x19d7e1[_0x39818e(0x1c52)][_0x39818e(0xbae)][_0x39818e(0x1b9e)];_0x8c6138+=0x1){_0xe26e12[_0x39818e(0x1bd0)]({'title':_0x19d7e1[_0x39818e(0x1c52)][_0x39818e(0xbae)][_0x8c6138]['type'],'msg':_0x19d7e1['data'][_0x39818e(0xbae)][_0x8c6138][_0x39818e(0x18ca)]});}}else _0xe26e12['error']({'title':_0x19d7e1['status']?_0x39818e(0x575)+_0x19d7e1[_0x39818e(0x10b3)]+_0x39818e(0x21db)+_0x19d7e1['statusText']:_0x39818e(0x25b5),'msg':_0x19d7e1[_0x39818e(0x1c52)]?JSON[_0x39818e(0x2317)](_0x19d7e1['data'][_0x39818e(0x18ca)]):_0x19d7e1['toString']()});});}function _0xcf7392(){const _0x3c88a4=_0x44d162;_0x17730c[_0x3c88a4(0xbae)]=[],_0x318725[_0x3c88a4(0xac8)][_0x3c88a4(0x2603)]({'id':_0x17730c['tag']['id']},_0x17730c[_0x3c88a4(0xac8)])[_0x3c88a4(0x15e7)]['then'](function(_0x332cce){const _0x520660=_0x3c88a4,_0x5d3d96=_0x28c606()[_0x520660(0x27bc)](_0x17730c[_0x520660(0x16a6)],{'id':_0x332cce['id']});_0x5d3d96&&_0x28c606()[_0x520660(0x14fe)](_0x5d3d96,_0x28c606()[_0x520660(0x27bb)](_0x332cce[_0x520660(0x14f8)](),_0x28c606()['keys'](_0x5d3d96))),_0xe26e12[_0x520660(0x1339)]({'title':_0x520660(0x25a9),'msg':_0x17730c[_0x520660(0xac8)]['name']?_0x17730c['tag'][_0x520660(0x2494)]+_0x520660(0x271):''}),_0x45eece(_0x332cce);})['catch'](function(_0x707d5b){const _0x14a016=_0x3c88a4;if(_0x707d5b[_0x14a016(0x1c52)]&&_0x707d5b['data'][_0x14a016(0xbae)]&&_0x707d5b[_0x14a016(0x1c52)][_0x14a016(0xbae)][_0x14a016(0x1b9e)]){_0x17730c[_0x14a016(0xbae)]=_0x707d5b[_0x14a016(0x1c52)]['errors']||[{'message':_0x707d5b[_0x14a016(0x2915)](),'type':_0x14a016(0x9a0)}];for(let _0x44a595=0x0;_0x44a595<_0x707d5b['data']['errors']['length'];_0x44a595++){_0xe26e12[_0x14a016(0x1bd0)]({'title':_0x707d5b['data'][_0x14a016(0xbae)][_0x44a595]['type'],'msg':_0x707d5b[_0x14a016(0x1c52)]['errors'][_0x44a595][_0x14a016(0x18ca)]});}}else _0xe26e12['error']({'title':_0x707d5b[_0x14a016(0x10b3)]?'API:'+_0x707d5b[_0x14a016(0x10b3)]+_0x14a016(0x21db)+_0x707d5b['statusText']:_0x14a016(0x9a0),'msg':_0x707d5b[_0x14a016(0x1c52)]?JSON[_0x14a016(0x2317)](_0x707d5b[_0x14a016(0x1c52)][_0x14a016(0x18ca)]):_0x707d5b[_0x14a016(0x2915)]()});});}function _0x4215c2(_0x4ee072){const _0x3787a7=_0x44d162;_0x17730c[_0x3787a7(0xbae)]=[];const _0x3d989e=_0x4a0da9['confirm']()[_0x3787a7(0x2021)]('Are\x20you\x20sure?')[_0x3787a7(0x12b8)]('The\x20tag\x20will\x20be\x20deleted.')[_0x3787a7(0x213e)](_0x3787a7(0xa71))['ok'](_0x3787a7(0x2664))[_0x3787a7(0x101a)](_0x3787a7(0x1dc6))['targetEvent'](_0x4ee072);_0x4a0da9['show'](_0x3d989e)['then'](function(){const _0x49f6fc=_0x3787a7;_0x318725[_0x49f6fc(0xac8)][_0x49f6fc(0xabd)]({'id':_0x17730c['tag']['id']})['$promise']['then'](function(){const _0x1b1b71=_0x49f6fc;_0x28c606()[_0x1b1b71(0x21c7)](_0x17730c[_0x1b1b71(0x16a6)],{'id':_0x17730c[_0x1b1b71(0xac8)]['id']}),_0xe26e12[_0x1b1b71(0x1339)]({'title':'Tag\x20properly\x20deleted!','msg':(_0x17730c[_0x1b1b71(0xac8)][_0x1b1b71(0x2494)]||'tag')+_0x1b1b71(0x1fa8)}),_0x45eece(_0x17730c[_0x1b1b71(0xac8)]);})[_0x49f6fc(0x20cd)](function(_0x3a8e68){const _0x3760d0=_0x49f6fc;if(_0x3a8e68['data']&&_0x3a8e68['data']['errors']&&_0x3a8e68['data'][_0x3760d0(0xbae)][_0x3760d0(0x1b9e)]){_0x17730c[_0x3760d0(0xbae)]=_0x3a8e68[_0x3760d0(0x1c52)]['errors']||[{'message':_0x3a8e68[_0x3760d0(0x2915)](),'type':_0x3760d0(0x1d75)}];for(let _0x440fd3=0x0;_0x440fd3<_0x3a8e68[_0x3760d0(0x1c52)][_0x3760d0(0xbae)][_0x3760d0(0x1b9e)];_0x440fd3++){_0xe26e12['error']({'title':_0x3a8e68[_0x3760d0(0x1c52)]['errors'][_0x440fd3][_0x3760d0(0x2185)],'msg':_0x3a8e68[_0x3760d0(0x1c52)][_0x3760d0(0xbae)][_0x440fd3][_0x3760d0(0x18ca)]});}}else _0xe26e12[_0x3760d0(0x1bd0)]({'title':_0x3a8e68[_0x3760d0(0x10b3)]?_0x3760d0(0x575)+_0x3a8e68[_0x3760d0(0x10b3)]+'\x20-\x20'+_0x3a8e68[_0x3760d0(0x2115)]:_0x3760d0(0x1d75),'msg':_0x3a8e68['data']?JSON['stringify'](_0x3a8e68[_0x3760d0(0x1c52)][_0x3760d0(0x18ca)]):_0x3a8e68['message']||_0x3a8e68['toString']()});});},function(){});}function _0x547a1a(_0x4f2bcc){return _0x4f2bcc===null?undefined:new Date(_0x4f2bcc);}function _0x45eece(_0x4caba2){const _0x1b9703=_0x44d162;_0x4a0da9[_0x1b9703(0x268e)](_0x4caba2);}}const _0x21d68b=_0xb30b27;;const _0x3ec4d1=_0x2e4a48['p']+'src/js/modules/main/apps/tools/views/tags/create/dialog.html/dialog.html';;_0x211c9b[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x1fe7),'$state',_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),'tags',_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),'api',_0x49a1e3(0x1214),'toasty','Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x211c9b(_0x442daf,_0x4a88ff,_0x4bc9c4,_0x4239c0,_0x305cf4,_0x3b1d9f,_0x173c9c,_0x29013a,_0x2aaa88,_0x8363ef,_0x29cfc7,_0x345dd7,_0x3dc34f,_0x25e3a0,_0x54c964,_0x3a561e,_0x3d5480){const _0x987e44=_0x49a1e3,_0x5504fd=this;_0x5504fd[_0x987e44(0x1947)]=_0x3a561e,_0x5504fd[_0x987e44(0x28d6)]=_0x3d5480,_0x5504fd[_0x987e44(0x1d3d)]=_0x54c964[_0x987e44(0x808)](),_0x5504fd[_0x987e44(0x16a6)]=_0x2aaa88||{'count':0x0,'rows':[]},_0x5504fd[_0x987e44(0x16a8)]=_0x8363ef,_0x5504fd[_0x987e44(0x16b2)]=_0x29cfc7&&_0x29cfc7[_0x987e44(0xb90)]==0x1?_0x29cfc7[_0x987e44(0x28b8)][0x0]:null,_0x5504fd[_0x987e44(0x402)]=_0x54c964[_0x987e44(0xa7e)](_0x5504fd['userProfileSection']?_0x5504fd[_0x987e44(0x16b2)][_0x987e44(0x402)]:null),_0x5504fd[_0x987e44(0x185d)]=_0x987e44(0x16a6),_0x5504fd['listOrder']='',_0x5504fd[_0x987e44(0x2748)]=null,_0x5504fd[_0x987e44(0x1677)]=[],_0x5504fd[_0x987e44(0x289a)]={'fields':'createdAt,updatedAt,id,name,description,color','sort':_0x987e44(0x260c),'limit':0xa,'page':0x1},_0x5504fd[_0x987e44(0x1c42)]=_0x172cf8,_0x5504fd[_0x987e44(0x1262)]=_0x3fbb2c,_0x5504fd['success']=_0x5818d6,_0x5504fd[_0x987e44(0x11f1)]=_0x4a2ea7,_0x5504fd[_0x987e44(0x2655)]=_0x34e4a8,_0x5504fd[_0x987e44(0x1ebd)]=_0x2fe0c2,_0x5504fd['exportSelectedTags']=_0x5874d2,_0x5504fd['deleteSelectedTags']=_0x3f5d12,_0x5504fd['deselectTags']=_0x1ad9c8,_0x5504fd['selectAllTags']=_0x4c0458;function _0x172cf8(_0x4d8f26,_0x30ba16){const _0x179f1a=_0x987e44;_0x305cf4[_0x179f1a(0xa60)]({'controller':_0x179f1a(0x1720),'controllerAs':'vm','templateUrl':_0x3ec4d1,'parent':angular['element'](_0x3b1d9f['body']),'targetEvent':_0x30ba16,'clickOutsideToClose':!![],'locals':{'tag':_0x4d8f26,'tags':_0x5504fd['tags'][_0x179f1a(0x28b8)],'license':_0x5504fd[_0x179f1a(0x1947)],'setting':null,'crudPermissions':_0x5504fd[_0x179f1a(0x402)]}});}function _0x3fbb2c(_0x5ef994,_0xebb63){const _0x12e6f8=_0x987e44,_0x11155f=_0x305cf4[_0x12e6f8(0x856)]()[_0x12e6f8(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()[_0x12e6f8(0xc01)]('tag')+'?')[_0x12e6f8(0x33a)](_0x12e6f8(0x50b)+(_0x5ef994[_0x12e6f8(0x2494)]||_0x12e6f8(0xac8))+_0x12e6f8(0x26d0)+_0x12e6f8(0x4b8))[_0x12e6f8(0x213e)](_0x12e6f8(0x257))[_0x12e6f8(0x2283)](_0xebb63)['ok']('OK')['cancel'](_0x12e6f8(0x18fd));_0x305cf4['show'](_0x11155f)[_0x12e6f8(0x64a)](function(){_0x2fe0c2(_0x5ef994);},function(){const _0x52dacd=_0x12e6f8;console[_0x52dacd(0x9b4)](_0x52dacd(0x18fd));});}let _0x1d9edd=!![],_0x1728b8=0x1;_0x442daf['$watch']('vm.query.filter',function(_0x265a05,_0x4d5f65){const _0x39a380=_0x987e44;_0x1d9edd?_0x173c9c(function(){_0x1d9edd=![];}):(!_0x4d5f65&&(_0x1728b8=_0x5504fd[_0x39a380(0x289a)][_0x39a380(0xc72)]),_0x265a05!==_0x4d5f65&&(_0x5504fd[_0x39a380(0x289a)][_0x39a380(0xc72)]=0x1),!_0x265a05&&(_0x5504fd[_0x39a380(0x289a)]['page']=_0x1728b8),_0x5504fd[_0x39a380(0x11f1)]());});function _0x5818d6(_0x384e3d){_0x5504fd['tags']=_0x384e3d||{'count':0x0,'rows':[]};}function _0x4a2ea7(){const _0x5ca400=_0x987e44;_0x5504fd[_0x5ca400(0x289a)][_0x5ca400(0x24f9)]=(_0x5504fd[_0x5ca400(0x289a)]['page']-0x1)*_0x5504fd[_0x5ca400(0x289a)][_0x5ca400(0x25bb)],_0x54c964[_0x5ca400(0x4de)]('admin')?_0x5504fd['promise']=_0x345dd7[_0x5ca400(0xac8)][_0x5ca400(0x896)](_0x5504fd[_0x5ca400(0x289a)],_0x5818d6)[_0x5ca400(0x15e7)]:(_0x5504fd[_0x5ca400(0x289a)]['id']=_0x5504fd['userProfile']['id'],_0x5504fd[_0x5ca400(0x289a)][_0x5ca400(0xa21)]=_0x5ca400(0x1178),_0x5504fd[_0x5ca400(0x1713)]=_0x345dd7[_0x5ca400(0x16a8)][_0x5ca400(0x2565)](_0x5504fd[_0x5ca400(0x289a)],_0x5818d6)[_0x5ca400(0x15e7)]);}function _0x34e4a8(_0x49e372,_0x25415c){const _0x1d4f30=_0x987e44;_0x305cf4[_0x1d4f30(0xa60)]({'controller':_0x1d4f30(0x1720),'controllerAs':'vm','templateUrl':_0x3ec4d1,'parent':angular['element'](_0x3b1d9f[_0x1d4f30(0xb49)]),'targetEvent':_0x49e372,'clickOutsideToClose':!![],'locals':{'tag':_0x25415c,'tags':_0x5504fd['tags'][_0x1d4f30(0x28b8)],'license':_0x5504fd[_0x1d4f30(0x1947)],'setting':_0x5504fd[_0x1d4f30(0x28d6)],'crudPermissions':_0x5504fd[_0x1d4f30(0x402)]}});}function _0x2fe0c2(_0xad54a3){const _0x2532df=_0x987e44;_0x345dd7[_0x2532df(0xac8)]['delete']({'id':_0xad54a3['id']})['$promise'][_0x2532df(0x64a)](function(){const _0x549834=_0x2532df;_0x28c606()[_0x549834(0x21c7)](_0x5504fd[_0x549834(0x16a6)][_0x549834(0x28b8)],{'id':_0xad54a3['id']}),_0x5504fd[_0x549834(0x16a6)][_0x549834(0xb90)]-=0x1,!_0x5504fd[_0x549834(0x16a6)][_0x549834(0x28b8)][_0x549834(0x1b9e)]&&_0x5504fd[_0x549834(0x11f1)](),_0x25e3a0['success']({'title':_0x28c606()[_0x549834(0xc01)](_0x549834(0x1e9f))+_0x549834(0x2502),'msg':_0xad54a3[_0x549834(0x2494)]?_0xad54a3['name']+_0x549834(0x1fa8):''});})[_0x2532df(0x20cd)](function(_0x36a876){const _0x23f25f=_0x2532df;if(_0x36a876[_0x23f25f(0x1c52)]&&_0x36a876[_0x23f25f(0x1c52)][_0x23f25f(0xbae)]&&_0x36a876[_0x23f25f(0x1c52)][_0x23f25f(0xbae)][_0x23f25f(0x1b9e)]){_0x5504fd['errors']=_0x36a876[_0x23f25f(0x1c52)][_0x23f25f(0xbae)]||[{'message':_0x36a876[_0x23f25f(0x2915)](),'type':_0x23f25f(0x128e)}];for(let _0xff05dc=0x0;_0xff05dc<_0x36a876[_0x23f25f(0x1c52)][_0x23f25f(0xbae)]['length'];_0xff05dc++){_0x25e3a0[_0x23f25f(0x1bd0)]({'title':_0x36a876[_0x23f25f(0x1c52)][_0x23f25f(0xbae)][_0xff05dc][_0x23f25f(0x2185)],'msg':_0x36a876['data'][_0x23f25f(0xbae)][_0xff05dc]['message']});}}else _0x25e3a0['error']({'title':_0x36a876['status']?_0x23f25f(0x575)+_0x36a876[_0x23f25f(0x10b3)]+_0x23f25f(0x21db)+_0x36a876[_0x23f25f(0x2115)]:'SYSTEM:DELETEtag','msg':_0x36a876[_0x23f25f(0x1c52)]?JSON['stringify'](_0x36a876['data'][_0x23f25f(0x18ca)]):_0x36a876[_0x23f25f(0x18ca)]||_0x36a876['toString']()});});}function _0x5874d2(){const _0x3bd45a=_0x987e44,_0x5b6482=angular[_0x3bd45a(0x289e)](_0x5504fd[_0x3bd45a(0x1677)]);return _0x5504fd[_0x3bd45a(0x1677)]=[],_0x5b6482;}function _0x3f5d12(_0x40c60f){const _0x50eb5f=_0x987e44,_0x26b52b=_0x305cf4[_0x50eb5f(0x856)]()[_0x50eb5f(0x2021)](_0x50eb5f(0x17ba))['htmlContent'](_0x50eb5f(0x50b)+_0x5504fd[_0x50eb5f(0x1677)][_0x50eb5f(0x1b9e)]+_0x50eb5f(0x163e)+_0x50eb5f(0x4b8))[_0x50eb5f(0x213e)](_0x50eb5f(0xbed))['targetEvent'](_0x40c60f)['ok']('OK')[_0x50eb5f(0x101a)](_0x50eb5f(0x18fd));_0x305cf4[_0x50eb5f(0xa60)](_0x26b52b)[_0x50eb5f(0x64a)](function(){const _0x5b952b=_0x50eb5f;_0x5504fd[_0x5b952b(0x1677)][_0x5b952b(0x1397)](function(_0x17c906){_0x2fe0c2(_0x17c906);}),_0x5504fd[_0x5b952b(0x1677)]=[];});}function _0x1ad9c8(){const _0x101e2a=_0x987e44;_0x5504fd[_0x101e2a(0x1677)]=[];}function _0x4c0458(){const _0x5398f1=_0x987e44;_0x5504fd[_0x5398f1(0x1677)]=_0x5504fd[_0x5398f1(0x16a6)]['rows'];}}const _0x1fa4e2=_0x211c9b;;_0x22ad45[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog','$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x26c1),'template','api',_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6),'crudPermissions'];function _0x22ad45(_0x5265c0,_0x72f334,_0x40dce0,_0x2929cd,_0x590bc7,_0x4b8cb4,_0x2e7130,_0x2baf98,_0x3f8ad8,_0x3c170e,_0x1095fc,_0x4cabbd,_0x12a28b,_0x159fc1){const _0x1b178a=_0x49a1e3,_0x253394=this;_0x253394[_0x1b178a(0x1d3d)]=_0x1095fc[_0x1b178a(0x808)](),_0x253394[_0x1b178a(0xbae)]=[],_0x253394[_0x1b178a(0x28d6)]=_0x12a28b,_0x253394[_0x1b178a(0x1947)]=_0x4cabbd,_0x253394[_0x1b178a(0x402)]=_0x159fc1,_0x253394[_0x1b178a(0x6c2)]={},_0x253394[_0x1b178a(0xccc)]=_0x253394[_0x1b178a(0x28d6)]&&_0x253394[_0x1b178a(0x28d6)][_0x1b178a(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x253394[_0x1b178a(0x2021)]=_0x1b178a(0x9d9),_0x253394['template']=angular[_0x1b178a(0x289e)](_0x3f8ad8),_0x253394['templates']=_0x2baf98,_0x253394['newTemplate']=![];!_0x253394[_0x1b178a(0x2788)]&&(_0x253394[_0x1b178a(0x2788)]={},_0x253394['title']='TOOLS.NEW_TEMPLATE',_0x253394[_0x1b178a(0x1484)]=!![]);_0x253394[_0x1b178a(0x203e)]=_0x47d9a8,_0x253394[_0x1b178a(0x37d)]=_0xa59504,_0x253394[_0x1b178a(0x2351)]=_0x32e98a,_0x253394['getDateFromString']=_0x17c8bd,_0x253394[_0x1b178a(0x16cb)]=_0x33982d;function _0x47d9a8(){const _0x3a5b69=_0x1b178a;_0x253394['errors']=[],_0x3c170e[_0x3a5b69(0x2788)][_0x3a5b69(0x2479)](_0x253394[_0x3a5b69(0x2788)])[_0x3a5b69(0x15e7)][_0x3a5b69(0x64a)](function(_0x52e864){const _0x4eb95f=_0x3a5b69;_0x253394[_0x4eb95f(0x26c1)]['unshift'](_0x52e864[_0x4eb95f(0x14f8)]()),_0x2e7130[_0x4eb95f(0x1339)]({'title':'Template\x20properly\x20created','msg':_0x253394[_0x4eb95f(0x2788)][_0x4eb95f(0x2494)]?_0x253394[_0x4eb95f(0x2788)][_0x4eb95f(0x2494)]+_0x4eb95f(0x258d):''}),_0x33982d(_0x52e864);})[_0x3a5b69(0x20cd)](function(_0x1b4784){const _0x3af2b7=_0x3a5b69;if(_0x1b4784[_0x3af2b7(0x1c52)]&&_0x1b4784[_0x3af2b7(0x1c52)]['errors']&&_0x1b4784[_0x3af2b7(0x1c52)][_0x3af2b7(0xbae)][_0x3af2b7(0x1b9e)]){_0x253394[_0x3af2b7(0xbae)]=_0x1b4784[_0x3af2b7(0x1c52)][_0x3af2b7(0xbae)]||[{'message':_0x1b4784[_0x3af2b7(0x2915)](),'type':_0x3af2b7(0xe78)}];for(let _0x1d9699=0x0;_0x1d9699<_0x1b4784[_0x3af2b7(0x1c52)][_0x3af2b7(0xbae)]['length'];_0x1d9699+=0x1){_0x2e7130['error']({'title':_0x1b4784[_0x3af2b7(0x1c52)]['errors'][_0x1d9699]['type'],'msg':_0x1b4784[_0x3af2b7(0x1c52)][_0x3af2b7(0xbae)][_0x1d9699][_0x3af2b7(0x18ca)]});}}else _0x2e7130[_0x3af2b7(0x1bd0)]({'title':_0x1b4784[_0x3af2b7(0x10b3)]?_0x3af2b7(0x575)+_0x1b4784[_0x3af2b7(0x10b3)]+_0x3af2b7(0x21db)+_0x1b4784[_0x3af2b7(0x2115)]:_0x3af2b7(0xe78),'msg':_0x1b4784[_0x3af2b7(0x1c52)]?JSON[_0x3af2b7(0x2317)](_0x1b4784['data'][_0x3af2b7(0x18ca)]):_0x1b4784[_0x3af2b7(0x2915)]()});});}function _0xa59504(){const _0x253e81=_0x1b178a;_0x253394['errors']=[],_0x3c170e['template'][_0x253e81(0x2603)]({'id':_0x253394[_0x253e81(0x2788)]['id']},_0x253394[_0x253e81(0x2788)])[_0x253e81(0x15e7)][_0x253e81(0x64a)](function(_0x1ee018){const _0x493be2=_0x253e81,_0x219926=_0x28c606()[_0x493be2(0x27bc)](_0x253394[_0x493be2(0x26c1)],{'id':_0x1ee018['id']});_0x219926&&_0x28c606()['merge'](_0x219926,_0x28c606()['pick'](_0x1ee018['toJSON'](),_0x28c606()[_0x493be2(0x1ec6)](_0x219926))),_0x2e7130[_0x493be2(0x1339)]({'title':'Template\x20properly\x20saved!','msg':_0x253394[_0x493be2(0x2788)]['name']?_0x253394['template']['name']+_0x493be2(0x271):''}),_0x33982d(_0x1ee018);})[_0x253e81(0x20cd)](function(_0x79b95f){const _0xfcd4df=_0x253e81;if(_0x79b95f[_0xfcd4df(0x1c52)]&&_0x79b95f['data']['errors']&&_0x79b95f[_0xfcd4df(0x1c52)][_0xfcd4df(0xbae)][_0xfcd4df(0x1b9e)]){_0x253394[_0xfcd4df(0xbae)]=_0x79b95f[_0xfcd4df(0x1c52)][_0xfcd4df(0xbae)]||[{'message':_0x79b95f[_0xfcd4df(0x2915)](),'type':_0xfcd4df(0x89d)}];for(let _0x246eab=0x0;_0x246eab<_0x79b95f['data'][_0xfcd4df(0xbae)][_0xfcd4df(0x1b9e)];_0x246eab++){_0x2e7130[_0xfcd4df(0x1bd0)]({'title':_0x79b95f[_0xfcd4df(0x1c52)][_0xfcd4df(0xbae)][_0x246eab][_0xfcd4df(0x2185)],'msg':_0x79b95f[_0xfcd4df(0x1c52)][_0xfcd4df(0xbae)][_0x246eab][_0xfcd4df(0x18ca)]});}}else _0x2e7130[_0xfcd4df(0x1bd0)]({'title':_0x79b95f['status']?_0xfcd4df(0x575)+_0x79b95f[_0xfcd4df(0x10b3)]+_0xfcd4df(0x21db)+_0x79b95f[_0xfcd4df(0x2115)]:'api.template.update','msg':_0x79b95f[_0xfcd4df(0x1c52)]?JSON[_0xfcd4df(0x2317)](_0x79b95f[_0xfcd4df(0x1c52)]['message']):_0x79b95f[_0xfcd4df(0x2915)]()});});}function _0x32e98a(_0x4379cf){const _0x26d19c=_0x1b178a;_0x253394['errors']=[];const _0x38889f=_0x2929cd['confirm']()['title']('Are\x20you\x20sure?')[_0x26d19c(0x12b8)](_0x26d19c(0x2318))[_0x26d19c(0x213e)]('Delete\x20Template')['ok'](_0x26d19c(0x2664))[_0x26d19c(0x101a)]('Cancel')[_0x26d19c(0x2283)](_0x4379cf);_0x2929cd[_0x26d19c(0xa60)](_0x38889f)[_0x26d19c(0x64a)](function(){const _0x3800b0=_0x26d19c;_0x3c170e[_0x3800b0(0x2788)]['delete']({'id':_0x253394[_0x3800b0(0x2788)]['id']})[_0x3800b0(0x15e7)]['then'](function(){const _0x4fbda9=_0x3800b0;_0x28c606()[_0x4fbda9(0x21c7)](_0x253394[_0x4fbda9(0x26c1)],{'id':_0x253394[_0x4fbda9(0x2788)]['id']}),_0x2e7130[_0x4fbda9(0x1339)]({'title':'Template\x20properly\x20deleted!','msg':(_0x253394[_0x4fbda9(0x2788)]['name']||'template')+'\x20has\x20been\x20deleted!'}),_0x33982d(_0x253394[_0x4fbda9(0x2788)]);})[_0x3800b0(0x20cd)](function(_0x33eb41){const _0x5822cf=_0x3800b0;if(_0x33eb41[_0x5822cf(0x1c52)]&&_0x33eb41[_0x5822cf(0x1c52)]['errors']&&_0x33eb41['data'][_0x5822cf(0xbae)]['length']){_0x253394[_0x5822cf(0xbae)]=_0x33eb41['data'][_0x5822cf(0xbae)]||[{'message':_0x33eb41[_0x5822cf(0x2915)](),'type':_0x5822cf(0x17fa)}];for(let _0x219a07=0x0;_0x219a07<_0x33eb41[_0x5822cf(0x1c52)]['errors']['length'];_0x219a07++){_0x2e7130[_0x5822cf(0x1bd0)]({'title':_0x33eb41[_0x5822cf(0x1c52)]['errors'][_0x219a07][_0x5822cf(0x2185)],'msg':_0x33eb41['data'][_0x5822cf(0xbae)][_0x219a07]['message']});}}else _0x2e7130['error']({'title':_0x33eb41['status']?'API:'+_0x33eb41[_0x5822cf(0x10b3)]+_0x5822cf(0x21db)+_0x33eb41['statusText']:_0x5822cf(0x17fa),'msg':_0x33eb41[_0x5822cf(0x1c52)]?JSON[_0x5822cf(0x2317)](_0x33eb41[_0x5822cf(0x1c52)][_0x5822cf(0x18ca)]):_0x33eb41[_0x5822cf(0x18ca)]||_0x33eb41[_0x5822cf(0x2915)]()});});},function(){});}function _0x17c8bd(_0x5e4f1b){return _0x5e4f1b===null?undefined:new Date(_0x5e4f1b);}function _0x33982d(_0x328ff4){_0x2929cd['hide'](_0x328ff4);}}const _0x2d99a9=_0x22ad45;;const _0x1bb72d=_0x2e4a48['p']+_0x49a1e3(0x248f);;_0x2ccc8e[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),'$state',_0x49a1e3(0x2899),_0x49a1e3(0x212a),'$document',_0x49a1e3(0x20d4),'$translate',_0x49a1e3(0x26c1),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x2ccc8e(_0x53a3ef,_0x436e31,_0x3b6376,_0x2694aa,_0x9b83ce,_0x4ea82b,_0x6d843d,_0x197d22,_0x59b5a2,_0x107786,_0x2409fc,_0x33d5db,_0x5396f4,_0x16a602,_0x456edf,_0x164a67,_0xca6b41){const _0xde8cb=_0x49a1e3,_0x1a821f=this;_0x1a821f[_0xde8cb(0x1947)]=_0x164a67,_0x1a821f[_0xde8cb(0x28d6)]=_0xca6b41,_0x1a821f[_0xde8cb(0x1d3d)]=_0x456edf[_0xde8cb(0x808)](),_0x1a821f[_0xde8cb(0x26c1)]=_0x59b5a2||{'count':0x0,'rows':[]},_0x1a821f[_0xde8cb(0x16a8)]=_0x107786,_0x1a821f[_0xde8cb(0x16b2)]=_0x2409fc&&_0x2409fc[_0xde8cb(0xb90)]==0x1?_0x2409fc[_0xde8cb(0x28b8)][0x0]:null,_0x1a821f['crudPermissions']=_0x456edf['parseCrudPermissions'](_0x1a821f[_0xde8cb(0x16b2)]?_0x1a821f[_0xde8cb(0x16b2)][_0xde8cb(0x402)]:null),_0x1a821f[_0xde8cb(0x185d)]='templates',_0x1a821f['listOrder']='',_0x1a821f[_0xde8cb(0x2748)]=null,_0x1a821f['selectedTemplates']=[],_0x1a821f[_0xde8cb(0x289a)]={'fields':_0xde8cb(0x1fd2),'sort':_0xde8cb(0x260c),'limit':0xa,'page':0x1},_0x1a821f[_0xde8cb(0x1c42)]=_0x55bfb1,_0x1a821f[_0xde8cb(0x1262)]=_0x474683,_0x1a821f[_0xde8cb(0x1339)]=_0x2f8260,_0x1a821f[_0xde8cb(0x1b86)]=_0x5338f6,_0x1a821f[_0xde8cb(0x1009)]=_0x321c4a,_0x1a821f[_0xde8cb(0x2351)]=_0x431761,_0x1a821f[_0xde8cb(0x1fc7)]=_0x35c282,_0x1a821f[_0xde8cb(0x1a19)]=_0x243aa1,_0x1a821f[_0xde8cb(0x304)]=_0x3c5a76,_0x1a821f[_0xde8cb(0x1594)]=_0x583579;function _0x55bfb1(_0x575a77,_0x3cd849){const _0x2eb403=_0xde8cb;_0x9b83ce[_0x2eb403(0xa60)]({'controller':'CreateOrEditTemplateDialogController','controllerAs':'vm','templateUrl':_0x1bb72d,'parent':angular['element'](_0x4ea82b['body']),'targetEvent':_0x3cd849,'clickOutsideToClose':!![],'locals':{'template':_0x575a77,'templates':_0x1a821f[_0x2eb403(0x26c1)][_0x2eb403(0x28b8)],'license':_0x1a821f[_0x2eb403(0x1947)],'setting':null,'crudPermissions':_0x1a821f[_0x2eb403(0x402)]}});}function _0x474683(_0x52aa1b,_0x5db408){const _0x2c34d6=_0xde8cb,_0x992ea3=_0x9b83ce['confirm']()['title'](_0x2c34d6(0x1231)+_0x28c606()[_0x2c34d6(0xc01)](_0x2c34d6(0x2788))+'?')[_0x2c34d6(0x33a)](_0x2c34d6(0x50b)+(_0x52aa1b[_0x2c34d6(0x2494)]||_0x2c34d6(0x2788))+_0x2c34d6(0x26d0)+'\x20will\x20be\x20deleted.')[_0x2c34d6(0x213e)](_0x2c34d6(0xb22))[_0x2c34d6(0x2283)](_0x5db408)['ok']('OK')[_0x2c34d6(0x101a)](_0x2c34d6(0x18fd));_0x9b83ce['show'](_0x992ea3)['then'](function(){_0x431761(_0x52aa1b);},function(){const _0x2bd404=_0x2c34d6;console[_0x2bd404(0x9b4)](_0x2bd404(0x18fd));});}let _0x53255e=!![],_0x1b9db0=0x1;_0x53a3ef[_0xde8cb(0xc62)](_0xde8cb(0x1cb9),function(_0x5b7f38,_0x561d90){const _0x967902=_0xde8cb;_0x53255e?_0x6d843d(function(){_0x53255e=![];}):(!_0x561d90&&(_0x1b9db0=_0x1a821f[_0x967902(0x289a)][_0x967902(0xc72)]),_0x5b7f38!==_0x561d90&&(_0x1a821f[_0x967902(0x289a)][_0x967902(0xc72)]=0x1),!_0x5b7f38&&(_0x1a821f['query'][_0x967902(0xc72)]=_0x1b9db0),_0x1a821f[_0x967902(0x1b86)]());});function _0x2f8260(_0x355073){_0x1a821f['templates']=_0x355073||{'count':0x0,'rows':[]};}function _0x5338f6(){const _0x428e79=_0xde8cb;_0x1a821f[_0x428e79(0x289a)][_0x428e79(0x24f9)]=(_0x1a821f[_0x428e79(0x289a)][_0x428e79(0xc72)]-0x1)*_0x1a821f['query']['limit'],_0x456edf['hasRole']('admin')?_0x1a821f[_0x428e79(0x1713)]=_0x33d5db[_0x428e79(0x2788)][_0x428e79(0x896)](_0x1a821f[_0x428e79(0x289a)],_0x2f8260)['$promise']:(_0x1a821f[_0x428e79(0x289a)]['id']=_0x1a821f[_0x428e79(0x16a8)]['id'],_0x1a821f[_0x428e79(0x289a)][_0x428e79(0xa21)]=_0x428e79(0x1383),_0x1a821f[_0x428e79(0x1713)]=_0x33d5db[_0x428e79(0x16a8)][_0x428e79(0x2565)](_0x1a821f[_0x428e79(0x289a)],_0x2f8260)[_0x428e79(0x15e7)]);}function _0x321c4a(_0x1c9a89,_0x28515e){const _0x2677d7=_0xde8cb;_0x9b83ce[_0x2677d7(0xa60)]({'controller':_0x2677d7(0x1afc),'controllerAs':'vm','templateUrl':_0x1bb72d,'parent':angular[_0x2677d7(0x1f81)](_0x4ea82b[_0x2677d7(0xb49)]),'targetEvent':_0x1c9a89,'clickOutsideToClose':!![],'locals':{'template':_0x28515e,'templates':_0x1a821f[_0x2677d7(0x26c1)][_0x2677d7(0x28b8)],'license':_0x1a821f[_0x2677d7(0x1947)],'setting':_0x1a821f[_0x2677d7(0x28d6)],'crudPermissions':_0x1a821f[_0x2677d7(0x402)]}});}function _0x431761(_0x297eb2){const _0x5b48f7=_0xde8cb;_0x33d5db[_0x5b48f7(0x2788)][_0x5b48f7(0xabd)]({'id':_0x297eb2['id']})[_0x5b48f7(0x15e7)][_0x5b48f7(0x64a)](function(){const _0xcef4e7=_0x5b48f7;_0x28c606()[_0xcef4e7(0x21c7)](_0x1a821f[_0xcef4e7(0x26c1)][_0xcef4e7(0x28b8)],{'id':_0x297eb2['id']}),_0x1a821f[_0xcef4e7(0x26c1)]['count']-=0x1,!_0x1a821f[_0xcef4e7(0x26c1)]['rows'][_0xcef4e7(0x1b9e)]&&_0x1a821f['getTemplates'](),_0x16a602[_0xcef4e7(0x1339)]({'title':_0x28c606()[_0xcef4e7(0xc01)](_0xcef4e7(0xff2))+'\x20deleted!','msg':_0x297eb2[_0xcef4e7(0x2494)]?_0x297eb2[_0xcef4e7(0x2494)]+'\x20has\x20been\x20deleted!':''});})[_0x5b48f7(0x20cd)](function(_0x258eac){const _0x56734b=_0x5b48f7;if(_0x258eac[_0x56734b(0x1c52)]&&_0x258eac[_0x56734b(0x1c52)]['errors']&&_0x258eac[_0x56734b(0x1c52)][_0x56734b(0xbae)][_0x56734b(0x1b9e)]){_0x1a821f[_0x56734b(0xbae)]=_0x258eac[_0x56734b(0x1c52)][_0x56734b(0xbae)]||[{'message':_0x258eac[_0x56734b(0x2915)](),'type':_0x56734b(0x1875)}];for(let _0x4ecd14=0x0;_0x4ecd14<_0x258eac['data'][_0x56734b(0xbae)]['length'];_0x4ecd14++){_0x16a602[_0x56734b(0x1bd0)]({'title':_0x258eac['data'][_0x56734b(0xbae)][_0x4ecd14][_0x56734b(0x2185)],'msg':_0x258eac[_0x56734b(0x1c52)][_0x56734b(0xbae)][_0x4ecd14][_0x56734b(0x18ca)]});}}else _0x16a602['error']({'title':_0x258eac['status']?_0x56734b(0x575)+_0x258eac[_0x56734b(0x10b3)]+_0x56734b(0x21db)+_0x258eac[_0x56734b(0x2115)]:_0x56734b(0x1875),'msg':_0x258eac[_0x56734b(0x1c52)]?JSON[_0x56734b(0x2317)](_0x258eac[_0x56734b(0x1c52)][_0x56734b(0x18ca)]):_0x258eac[_0x56734b(0x18ca)]||_0x258eac['toString']()});});}function _0x35c282(){const _0x3cfe8d=_0xde8cb,_0x2c3367=angular[_0x3cfe8d(0x289e)](_0x1a821f[_0x3cfe8d(0x10ac)]);return _0x1a821f['selectedTemplates']=[],_0x2c3367;}function _0x243aa1(_0x44d935){const _0x5e97ee=_0xde8cb,_0x4ad77f=_0x9b83ce[_0x5e97ee(0x856)]()[_0x5e97ee(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20templates?')[_0x5e97ee(0x33a)](_0x5e97ee(0x50b)+_0x1a821f[_0x5e97ee(0x10ac)][_0x5e97ee(0x1b9e)]+_0x5e97ee(0x163e)+'\x20will\x20be\x20deleted.')[_0x5e97ee(0x213e)](_0x5e97ee(0xd70))[_0x5e97ee(0x2283)](_0x44d935)['ok']('OK')[_0x5e97ee(0x101a)](_0x5e97ee(0x18fd));_0x9b83ce[_0x5e97ee(0xa60)](_0x4ad77f)[_0x5e97ee(0x64a)](function(){const _0x302e67=_0x5e97ee;_0x1a821f['selectedTemplates']['forEach'](function(_0x3d7d23){_0x431761(_0x3d7d23);}),_0x1a821f[_0x302e67(0x10ac)]=[];});}function _0x3c5a76(){const _0x2d7fb1=_0xde8cb;_0x1a821f[_0x2d7fb1(0x10ac)]=[];}function _0x583579(){const _0x2b33e7=_0xde8cb;_0x1a821f[_0x2b33e7(0x10ac)]=_0x1a821f[_0x2b33e7(0x26c1)][_0x2b33e7(0x28b8)];}}const _0xbb4b09=_0x2ccc8e;;_0x635698[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0xe23),_0x49a1e3(0x4ef),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'crudPermissions'];function _0x635698(_0x2ecd66,_0x26ba89,_0x5846ac,_0x59bef9,_0x2b0976,_0x9d4eab,_0x25d4a7,_0x1a75a8,_0x54fe1c,_0x5ee138,_0x1cb9f6,_0x5c2d5b,_0x524a7d,_0x458d68){const _0x2ae5d4=_0x49a1e3,_0x4d7f1d=this;_0x4d7f1d[_0x2ae5d4(0x1d3d)]=_0x1cb9f6[_0x2ae5d4(0x808)](),_0x4d7f1d['errors']=[],_0x4d7f1d[_0x2ae5d4(0x28d6)]=_0x524a7d,_0x4d7f1d['license']=_0x5c2d5b,_0x4d7f1d[_0x2ae5d4(0x402)]=_0x458d68,_0x4d7f1d[_0x2ae5d4(0x6c2)]={},_0x4d7f1d[_0x2ae5d4(0xccc)]=_0x4d7f1d[_0x2ae5d4(0x28d6)]&&_0x4d7f1d['setting'][_0x2ae5d4(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4d7f1d[_0x2ae5d4(0x2021)]=_0x2ae5d4(0x2192),_0x4d7f1d[_0x2ae5d4(0x4ef)]=angular['copy'](_0x54fe1c),_0x4d7f1d[_0x2ae5d4(0xe23)]=_0x1a75a8,_0x4d7f1d[_0x2ae5d4(0x909)]=![];!_0x4d7f1d[_0x2ae5d4(0x4ef)]&&(_0x4d7f1d['trunk']={'active':!![],'type':_0x2ae5d4(0x1975),'dtmfmode':_0x2ae5d4(0x3e4),'qualify':_0x2ae5d4(0x1d21),'t38pt_udptl':'no'},_0x4d7f1d[_0x2ae5d4(0x2021)]=_0x2ae5d4(0x25e1),_0x4d7f1d[_0x2ae5d4(0x909)]=!![]);_0x4d7f1d[_0x2ae5d4(0x19ac)]=_0x4a7f0c,_0x4d7f1d[_0x2ae5d4(0x2417)]=_0x564132,_0x4d7f1d[_0x2ae5d4(0x25ec)]=_0x350ec6,_0x4d7f1d[_0x2ae5d4(0x1605)]=_0x5bd61e,_0x4d7f1d[_0x2ae5d4(0x16cb)]=_0x3b01d3;function _0x4a7f0c(){const _0x10a9fe=_0x2ae5d4;_0x4d7f1d['errors']=[],_0x5ee138[_0x10a9fe(0x4ef)]['save'](_0x4d7f1d[_0x10a9fe(0x4ef)])[_0x10a9fe(0x15e7)][_0x10a9fe(0x64a)](function(_0x2cd50f){const _0x40a145=_0x10a9fe;_0x4d7f1d['trunks'][_0x40a145(0x1891)](_0x2cd50f[_0x40a145(0x14f8)]()),_0x25d4a7[_0x40a145(0x1339)]({'title':'Trunk\x20properly\x20created','msg':_0x4d7f1d[_0x40a145(0x4ef)][_0x40a145(0x2494)]?_0x4d7f1d[_0x40a145(0x4ef)]['name']+'\x20has\x20been\x20created!':''}),_0x3b01d3(_0x2cd50f);})[_0x10a9fe(0x20cd)](function(_0x149d39){const _0x5e0af5=_0x10a9fe;if(_0x149d39[_0x5e0af5(0x1c52)]&&_0x149d39[_0x5e0af5(0x1c52)][_0x5e0af5(0xbae)]&&_0x149d39[_0x5e0af5(0x1c52)]['errors'][_0x5e0af5(0x1b9e)]){_0x4d7f1d[_0x5e0af5(0xbae)]=_0x149d39[_0x5e0af5(0x1c52)]['errors']||[{'message':_0x149d39[_0x5e0af5(0x2915)](),'type':_0x5e0af5(0x181d)}];for(let _0x34d400=0x0;_0x34d400<_0x149d39[_0x5e0af5(0x1c52)]['errors'][_0x5e0af5(0x1b9e)];_0x34d400+=0x1){_0x25d4a7['error']({'title':_0x149d39[_0x5e0af5(0x1c52)][_0x5e0af5(0xbae)][_0x34d400][_0x5e0af5(0x2185)],'msg':_0x149d39['data'][_0x5e0af5(0xbae)][_0x34d400][_0x5e0af5(0x18ca)]});}}else _0x25d4a7['error']({'title':_0x149d39[_0x5e0af5(0x10b3)]?_0x5e0af5(0x575)+_0x149d39[_0x5e0af5(0x10b3)]+_0x5e0af5(0x21db)+_0x149d39[_0x5e0af5(0x2115)]:_0x5e0af5(0x181d),'msg':_0x149d39[_0x5e0af5(0x1c52)]?JSON[_0x5e0af5(0x2317)](_0x149d39[_0x5e0af5(0x1c52)][_0x5e0af5(0x18ca)]):_0x149d39[_0x5e0af5(0x2915)]()});});}function _0x564132(){const _0x947511=_0x2ae5d4;_0x4d7f1d[_0x947511(0xbae)]=[],_0x5ee138[_0x947511(0x4ef)][_0x947511(0x2603)]({'id':_0x4d7f1d[_0x947511(0x4ef)]['id']},_0x4d7f1d['trunk'])['$promise'][_0x947511(0x64a)](function(_0x7ac40b){const _0xdd998b=_0x947511,_0xe193ba=_0x28c606()['find'](_0x4d7f1d[_0xdd998b(0xe23)],{'id':_0x7ac40b['id']});_0xe193ba&&_0x28c606()[_0xdd998b(0x14fe)](_0xe193ba,_0x28c606()['pick'](_0x7ac40b[_0xdd998b(0x14f8)](),_0x28c606()[_0xdd998b(0x1ec6)](_0xe193ba))),_0x25d4a7[_0xdd998b(0x1339)]({'title':_0xdd998b(0x22fe),'msg':_0x4d7f1d[_0xdd998b(0x4ef)][_0xdd998b(0x2494)]?_0x4d7f1d['trunk']['name']+_0xdd998b(0x271):''}),_0x3b01d3(_0x7ac40b);})['catch'](function(_0x15e602){const _0x23a796=_0x947511;if(_0x15e602['data']&&_0x15e602['data'][_0x23a796(0xbae)]&&_0x15e602[_0x23a796(0x1c52)][_0x23a796(0xbae)][_0x23a796(0x1b9e)]){_0x4d7f1d[_0x23a796(0xbae)]=_0x15e602[_0x23a796(0x1c52)][_0x23a796(0xbae)]||[{'message':_0x15e602['toString'](),'type':_0x23a796(0x1d5b)}];for(let _0x3f1f8d=0x0;_0x3f1f8d<_0x15e602[_0x23a796(0x1c52)]['errors']['length'];_0x3f1f8d++){_0x25d4a7['error']({'title':_0x15e602[_0x23a796(0x1c52)][_0x23a796(0xbae)][_0x3f1f8d][_0x23a796(0x2185)],'msg':_0x15e602[_0x23a796(0x1c52)][_0x23a796(0xbae)][_0x3f1f8d][_0x23a796(0x18ca)]});}}else _0x25d4a7['error']({'title':_0x15e602[_0x23a796(0x10b3)]?_0x23a796(0x575)+_0x15e602[_0x23a796(0x10b3)]+_0x23a796(0x21db)+_0x15e602[_0x23a796(0x2115)]:_0x23a796(0x1d5b),'msg':_0x15e602['data']?JSON['stringify'](_0x15e602[_0x23a796(0x1c52)][_0x23a796(0x18ca)]):_0x15e602[_0x23a796(0x2915)]()});});}function _0x350ec6(_0x556c6a){const _0x412598=_0x2ae5d4;_0x4d7f1d[_0x412598(0xbae)]=[];const _0x36040d=_0x59bef9[_0x412598(0x856)]()[_0x412598(0x2021)](_0x412598(0x103a))[_0x412598(0x12b8)]('The\x20trunk\x20will\x20be\x20deleted.')[_0x412598(0x213e)]('Delete\x20Trunk')['ok'](_0x412598(0x2664))[_0x412598(0x101a)](_0x412598(0x1dc6))[_0x412598(0x2283)](_0x556c6a);_0x59bef9[_0x412598(0xa60)](_0x36040d)[_0x412598(0x64a)](function(){const _0x1249c0=_0x412598;_0x5ee138[_0x1249c0(0x4ef)][_0x1249c0(0xabd)]({'id':_0x4d7f1d[_0x1249c0(0x4ef)]['id']})[_0x1249c0(0x15e7)]['then'](function(){const _0x1267ef=_0x1249c0;_0x28c606()[_0x1267ef(0x21c7)](_0x4d7f1d[_0x1267ef(0xe23)],{'id':_0x4d7f1d[_0x1267ef(0x4ef)]['id']}),_0x25d4a7[_0x1267ef(0x1339)]({'title':_0x1267ef(0x401),'msg':(_0x4d7f1d[_0x1267ef(0x4ef)][_0x1267ef(0x2494)]||_0x1267ef(0x4ef))+'\x20has\x20been\x20deleted!'}),_0x3b01d3(_0x4d7f1d[_0x1267ef(0x4ef)]);})[_0x1249c0(0x20cd)](function(_0x1f5616){const _0x3f94a2=_0x1249c0;if(_0x1f5616[_0x3f94a2(0x1c52)]&&_0x1f5616[_0x3f94a2(0x1c52)][_0x3f94a2(0xbae)]&&_0x1f5616[_0x3f94a2(0x1c52)]['errors']['length']){_0x4d7f1d[_0x3f94a2(0xbae)]=_0x1f5616[_0x3f94a2(0x1c52)]['errors']||[{'message':_0x1f5616[_0x3f94a2(0x2915)](),'type':_0x3f94a2(0x2934)}];for(let _0x1c35c=0x0;_0x1c35c<_0x1f5616[_0x3f94a2(0x1c52)][_0x3f94a2(0xbae)]['length'];_0x1c35c++){_0x25d4a7[_0x3f94a2(0x1bd0)]({'title':_0x1f5616[_0x3f94a2(0x1c52)][_0x3f94a2(0xbae)][_0x1c35c]['type'],'msg':_0x1f5616[_0x3f94a2(0x1c52)]['errors'][_0x1c35c]['message']});}}else _0x25d4a7[_0x3f94a2(0x1bd0)]({'title':_0x1f5616['status']?'API:'+_0x1f5616[_0x3f94a2(0x10b3)]+_0x3f94a2(0x21db)+_0x1f5616[_0x3f94a2(0x2115)]:_0x3f94a2(0x2934),'msg':_0x1f5616[_0x3f94a2(0x1c52)]?JSON['stringify'](_0x1f5616[_0x3f94a2(0x1c52)][_0x3f94a2(0x18ca)]):_0x1f5616['message']||_0x1f5616[_0x3f94a2(0x2915)]()});});},function(){});}function _0x5bd61e(_0x8e4ce6){return _0x8e4ce6===null?undefined:new Date(_0x8e4ce6);}function _0x3b01d3(_0x3d16bc){const _0x383f4e=_0x2ae5d4;_0x59bef9[_0x383f4e(0x268e)](_0x3d16bc);}}const _0x1679f1=_0x635698;;_0x511081[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$state',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x4ef),_0x49a1e3(0xe23),_0x49a1e3(0x298c)];function _0x511081(_0x117988,_0x3d2943,_0x35fbf7,_0x3107cc,_0xeaca75,_0x2734d0,_0x48388b){const _0x2bbf2b=_0x49a1e3,_0x1705b6=this;_0x1705b6['newTrunk']=!![],_0x1705b6['trunk']=angular['copy'](_0xeaca75),_0x1705b6[_0x2bbf2b(0xe23)]=_0x2734d0,_0x1705b6[_0x2bbf2b(0x2021)]=_0x48388b[_0x2bbf2b(0x2292)](_0x2bbf2b(0x16b9));_0xeaca75&&_0xeaca75[_0x2bbf2b(0x2494)]&&(_0x1705b6[_0x2bbf2b(0x2021)]+=':\x20'+_0xeaca75['name']);_0x1705b6[_0x2bbf2b(0x201f)]=_0x41bd33,_0x1705b6[_0x2bbf2b(0x16cb)]=_0x221627;function _0x41bd33(){const _0xb6bd83=_0x2bbf2b;return _0x3107cc[_0xb6bd83(0x4ef)][_0xb6bd83(0x24b2)]({'id':_0xeaca75['id']},_0x1705b6['trunk'])[_0xb6bd83(0x15e7)]['then'](function(_0x393837){const _0x339e7e=_0xb6bd83;_0x1705b6[_0x339e7e(0xe23)][_0x339e7e(0x1891)](_0x393837['toJSON']()),_0x35fbf7[_0x339e7e(0x1339)]({'title':'Trunk\x20properly\x20cloned','msg':_0x1705b6[_0x339e7e(0x4ef)][_0x339e7e(0x2494)]?_0x1705b6[_0x339e7e(0x4ef)][_0x339e7e(0x2494)]+_0x339e7e(0x28e7):''}),_0x3d2943['go'](_0x339e7e(0x1f7),{'id':_0x393837['id']}),_0x221627(_0x393837);})[_0xb6bd83(0x20cd)](function(_0x2445f1){const _0x4e5dde=_0xb6bd83;if(_0x2445f1[_0x4e5dde(0x1c52)]&&_0x2445f1[_0x4e5dde(0x1c52)]['errors']&&_0x2445f1['data'][_0x4e5dde(0xbae)]['length']){_0x1705b6[_0x4e5dde(0xbae)]=_0x2445f1[_0x4e5dde(0x1c52)][_0x4e5dde(0xbae)]||[{'message':_0x2445f1[_0x4e5dde(0x2915)](),'type':'api.trunk.clone'}];for(let _0x14d0c1=0x0;_0x14d0c1<_0x2445f1['data'][_0x4e5dde(0xbae)][_0x4e5dde(0x1b9e)];_0x14d0c1+=0x1){_0x35fbf7['error']({'title':_0x2445f1[_0x4e5dde(0x1c52)][_0x4e5dde(0xbae)][_0x14d0c1]['type'],'msg':_0x2445f1['data'][_0x4e5dde(0xbae)][_0x14d0c1][_0x4e5dde(0x18ca)]});}}else _0x35fbf7[_0x4e5dde(0x1bd0)]({'title':_0x2445f1['status']?_0x4e5dde(0x575)+_0x2445f1[_0x4e5dde(0x10b3)]+_0x4e5dde(0x21db)+_0x2445f1[_0x4e5dde(0x2115)]:_0x4e5dde(0xaaa),'msg':_0x2445f1['data']?JSON[_0x4e5dde(0x2317)](_0x2445f1[_0x4e5dde(0x1c52)]['message']):_0x2445f1['toString']()});});}function _0x221627(_0x8cdf27){const _0x3d5d2a=_0x2bbf2b;_0x117988[_0x3d5d2a(0x268e)](_0x8cdf27);}}const _0x4502da=_0x511081;;const _0x583261=_0x2e4a48['p']+'src/js/modules/main/apps/tools/views/trunks/edit/clone/clone.html/clone.html';;_0x12c669[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x4ef),_0x49a1e3(0x16b2)];function _0x12c669(_0x3ab41a,_0x57139a,_0x3132ee,_0x169b09,_0x19e551,_0x1b6a68,_0x1d3a13,_0x58f8bc,_0x3d9773,_0xac24f5,_0x40568e,_0x34076d){const _0x18c539=_0x49a1e3,_0x20e69e=this;_0x20e69e[_0x18c539(0x1d3d)]=_0xac24f5[_0x18c539(0x808)](),_0x20e69e['license']=_0x1b6a68,_0x20e69e[_0x18c539(0x28d6)]=_0x1d3a13,_0x20e69e[_0x18c539(0xccc)]=_0x20e69e[_0x18c539(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x20e69e[_0x18c539(0xb36)]=_0x57139a[_0x18c539(0x48e)]()+_0x18c539(0xe1f)+_0x57139a[_0x18c539(0x1e5d)](),_0x20e69e[_0x18c539(0x4ef)]=_0x40568e||_0x3ab41a[_0x18c539(0x1b48)][_0x18c539(0x4ef)]||{},_0x20e69e['userProfileSection']=_0x34076d&&_0x34076d[_0x18c539(0xb90)]==0x1?_0x34076d[_0x18c539(0x28b8)][0x0]:null,_0x20e69e[_0x18c539(0x402)]=_0xac24f5[_0x18c539(0xa7e)](_0x20e69e[_0x18c539(0x16b2)]?_0x20e69e[_0x18c539(0x16b2)][_0x18c539(0x402)]:null),_0x20e69e[_0x18c539(0x6c2)]={},_0x20e69e[_0x18c539(0x197c)]=_0x3ab41a[_0x18c539(0x1b48)][_0x18c539(0x1222)]||0x0,_0x20e69e['gotogoto']=_0x18e71d,_0x20e69e['clonedialog']=_0x44977c,_0x20e69e[_0x18c539(0x2540)]=_0x3d9773[_0x18c539(0x772)],_0x20e69e[_0x18c539(0x7e5)]=_0x49ff33,_0x20e69e[_0x18c539(0x2417)]=_0x3f01bf,_0xac24f5['hasRole'](_0x18c539(0x333))?_0x58f8bc[_0x18c539(0x1faa)][_0x18c539(0x896)]({'fields':'id,name','sort':_0x18c539(0x2494)})['$promise'][_0x18c539(0x64a)](function(_0x1cd766){const _0x133cd8=_0x18c539;_0x20e69e[_0x133cd8(0xad1)]=_0x1cd766[_0x133cd8(0x28b8)]||[];})[_0x18c539(0x20cd)](function(_0xc82722){const _0x1ef962=_0x18c539;_0x3d9773['error']({'title':_0xc82722['status']?_0x1ef962(0x575)+_0xc82722[_0x1ef962(0x10b3)]+'\x20-\x20'+_0xc82722[_0x1ef962(0x2115)]:_0x1ef962(0xbea),'msg':_0xc82722[_0x1ef962(0x1c52)]?JSON[_0x1ef962(0x2317)](_0xc82722[_0x1ef962(0x1c52)]):_0xc82722[_0x1ef962(0x2915)]()});}):_0x58f8bc[_0x18c539(0x1faa)][_0x18c539(0x896)]({'fields':'id,name','sort':'name'})[_0x18c539(0x15e7)][_0x18c539(0x64a)](function(_0x5bb4d3){const _0x3ca4f8=_0x18c539;_0x20e69e[_0x3ca4f8(0xad1)]=_0x5bb4d3[_0x3ca4f8(0x28b8)]||[];})[_0x18c539(0x64a)](function(){const _0x47b2d3=_0x18c539;return _0x58f8bc[_0x47b2d3(0x16b2)]['get']({'userProfileId':_0x20e69e[_0x47b2d3(0x1d3d)][_0x47b2d3(0x21ac)],'sectionId':0x195})[_0x47b2d3(0x15e7)];})[_0x18c539(0x64a)](function(_0xa0c030){const _0x516059=_0x18c539,_0x33642d=_0xa0c030&&_0xa0c030[_0x516059(0x28b8)]?_0xa0c030[_0x516059(0x28b8)][0x0]:null;if(!_0x33642d)return _0x58f8bc[_0x516059(0x1faa)][_0x516059(0x896)]({'fields':_0x516059(0x1427),'sort':'name','defaultEntry':0x1})['$promise']['then'](function(_0x232199){const _0x87e25e=_0x516059;_0x20e69e[_0x87e25e(0xad1)]=_0x232199[_0x87e25e(0x28b8)]||[];});else{if(!_0x33642d[_0x516059(0x11da)])return _0x58f8bc[_0x516059(0x1617)][_0x516059(0x896)]({'sectionId':_0x33642d['id']})[_0x516059(0x15e7)][_0x516059(0x64a)](function(_0x42fc6f){const _0x31770c=_0x516059,_0x4edc7d=_0x28c606()['map'](_0x42fc6f[_0x31770c(0x28b8)],function(_0x35c09e){const _0x37ec62=_0x31770c;return _0x28c606()[_0x37ec62(0x27bc)](_0x20e69e[_0x37ec62(0xad1)],{'id':_0x35c09e['resourceId']});});let _0x1cc5fc=null;_0x20e69e[_0x31770c(0x4ef)]&&(_0x1cc5fc=_0x28c606()[_0x31770c(0x27bc)](_0x20e69e[_0x31770c(0xad1)],{'name':_0x20e69e[_0x31770c(0x4ef)]['context']}));if(_0x1cc5fc&&!_0x28c606()[_0x31770c(0x25f8)](_0x4edc7d,['id',_0x1cc5fc['id']])){const _0x2daa05=_0x28c606()[_0x31770c(0x27bc)](_0x20e69e[_0x31770c(0xad1)],{'id':_0x1cc5fc['id']});_0x2daa05[_0x31770c(0xd4f)]=![],_0x4edc7d[_0x31770c(0x1954)](_0x2daa05);}_0x20e69e[_0x31770c(0xad1)]=_0x4edc7d;});}})[_0x18c539(0x20cd)](function(_0x4dc379){const _0x28b0f2=_0x18c539;_0x3d9773['error']({'title':_0x4dc379[_0x28b0f2(0x10b3)]?_0x28b0f2(0x575)+_0x4dc379[_0x28b0f2(0x10b3)]+_0x28b0f2(0x21db)+_0x4dc379[_0x28b0f2(0x2115)]:_0x28b0f2(0x184b),'msg':_0x4dc379[_0x28b0f2(0x1c52)]?JSON[_0x28b0f2(0x2317)](_0x4dc379[_0x28b0f2(0x1c52)]):_0x4dc379[_0x28b0f2(0x2915)]()});});function _0x18e71d(){const _0x8310d0=_0x18c539;if(_0xac24f5[_0x8310d0(0x4de)](_0x8310d0(0x333)))_0x3ab41a['go'](_0x8310d0(0x14f),{});else return _0x58f8bc[_0x8310d0(0x16b2)]['get']({'userProfileId':_0xac24f5['getCurrentUser']()[_0x8310d0(0x21ac)],'sectionId':0x19b})[_0x8310d0(0x15e7)][_0x8310d0(0x64a)](function(_0x5895d4){const _0x5f4dda=_0x8310d0,_0x2667ca=_0x5895d4&&_0x5895d4[_0x5f4dda(0x28b8)]?_0x5895d4[_0x5f4dda(0x28b8)][0x0]:null;_0x2667ca&&_0x2667ca[_0x5f4dda(0xe49)]?_0x3ab41a['go'](_0x5f4dda(0x14f),{}):_0x3d9773[_0x5f4dda(0x772)]({'title':_0x19e551['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x19e551[_0x5f4dda(0x2292)](_0x5f4dda(0x229))});})[_0x8310d0(0x20cd)](function(_0x4c4e43){const _0x3155a2=_0x8310d0;_0x3d9773['error']({'title':_0x4c4e43[_0x3155a2(0x10b3)]?_0x3155a2(0x575)+_0x4c4e43[_0x3155a2(0x10b3)]+_0x3155a2(0x21db)+_0x4c4e43[_0x3155a2(0x2115)]:_0x3155a2(0x942),'msg':_0x4c4e43[_0x3155a2(0x10b3)]?JSON[_0x3155a2(0x2317)](_0x4c4e43[_0x3155a2(0x1c52)]):_0x4c4e43['toString']()});});}function _0x44977c(_0x4cc2d6,_0x2c638e){const _0x28b411=_0x18c539;_0x3132ee['show']({'controller':_0x28b411(0x36d),'controllerAs':'vm','templateUrl':_0x583261,'parent':angular[_0x28b411(0x1f81)](_0x169b09[_0x28b411(0xb49)]),'targetEvent':_0x2c638e,'clickOutsideToClose':!![],'locals':{'trunk':_0x4cc2d6,'trunks':_0x20e69e[_0x28b411(0xe23)]?_0x20e69e['trunks'][_0x28b411(0x28b8)]:[],'crudPermissions':_0x20e69e[_0x28b411(0x402)]}});}function _0x49ff33(){const _0x351b85=_0x18c539;_0x3ab41a['go'](_0x351b85(0x1870),{},{'reload':_0x351b85(0x1870)});}function _0x3f01bf(){const _0x4c075d=_0x18c539;_0x58f8bc[_0x4c075d(0x4ef)][_0x4c075d(0x2603)]({'id':_0x20e69e[_0x4c075d(0x4ef)]['id']},_0x20e69e[_0x4c075d(0x4ef)])[_0x4c075d(0x15e7)][_0x4c075d(0x64a)](function(){const _0x19a6e5=_0x4c075d;_0x3d9773[_0x19a6e5(0x1339)]({'title':_0x19a6e5(0xef7),'msg':_0x20e69e[_0x19a6e5(0x4ef)]['name']?_0x20e69e[_0x19a6e5(0x4ef)][_0x19a6e5(0x2494)]+_0x19a6e5(0x2032):''});})[_0x4c075d(0x20cd)](function(_0x3f5a0f){const _0x4bdf27=_0x4c075d;_0x3d9773[_0x4bdf27(0x1bd0)]({'title':_0x3f5a0f[_0x4bdf27(0x10b3)]?'API:'+_0x3f5a0f[_0x4bdf27(0x10b3)]+_0x4bdf27(0x21db)+_0x3f5a0f[_0x4bdf27(0x2115)]:_0x4bdf27(0x164c),'msg':_0x3f5a0f[_0x4bdf27(0x1c52)]?JSON[_0x4bdf27(0x2317)](_0x3f5a0f['data']):_0x3f5a0f[_0x4bdf27(0x2915)]()});});}}const _0x154b55=_0x12c669;;const _0x4c7fbd=_0x2e4a48['p']+_0x49a1e3(0x237c);;_0x22bb0f[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),'trunks',_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),'msUtils',_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x22bb0f(_0x387e0e,_0x1a516e,_0x1d4bf5,_0x3b7d07,_0x381b83,_0x28be0f,_0x1bfdbe,_0x5dd4db,_0x347ce9,_0x4cd412,_0x2a3381,_0x471774,_0x4a3bba,_0x30f83d,_0x49ae1f,_0x5bdf6a,_0x2e7fd9){const _0x4c1a13=_0x49a1e3,_0x2770c4=this;_0x2770c4[_0x4c1a13(0x1947)]=_0x5bdf6a,_0x2770c4['setting']=_0x2e7fd9,_0x2770c4[_0x4c1a13(0x1d3d)]=_0x49ae1f[_0x4c1a13(0x808)](),_0x2770c4['trunks']=_0x347ce9||{'count':0x0,'rows':[]},_0x2770c4[_0x4c1a13(0x16a8)]=_0x4cd412,_0x2770c4['userProfileSection']=_0x2a3381&&_0x2a3381['count']==0x1?_0x2a3381[_0x4c1a13(0x28b8)][0x0]:null,_0x2770c4[_0x4c1a13(0x402)]=_0x49ae1f[_0x4c1a13(0xa7e)](_0x2770c4['userProfileSection']?_0x2770c4['userProfileSection'][_0x4c1a13(0x402)]:null),_0x2770c4[_0x4c1a13(0x185d)]=_0x4c1a13(0xe23),_0x2770c4[_0x4c1a13(0x300)]='',_0x2770c4[_0x4c1a13(0x2748)]=null,_0x2770c4[_0x4c1a13(0xe80)]=[],_0x2770c4[_0x4c1a13(0x289a)]={'fields':_0x4c1a13(0x1a17),'sort':_0x4c1a13(0x260c),'limit':0xa,'page':0x1},_0x2770c4[_0x4c1a13(0x9d4)]=_0x28c606()[_0x4c1a13(0x161e)]([{'option':_0x4c1a13(0x969),'value':'\x27friend\x27'},{'option':_0x4c1a13(0x1098),'value':'\x27user\x27'},{'option':_0x4c1a13(0x2943),'value':'\x27peer\x27'}],function(_0x27c05d){const _0x1ca5c1=_0x4c1a13;return _0x28c606()[_0x1ca5c1(0x1353)](_0x27c05d[_0x1ca5c1(0x1096)],new RegExp('\x27','g'),'');}),_0x2770c4[_0x4c1a13(0xeff)]=_0x28c606()['keyBy']([{'option':_0x4c1a13(0x3e4),'value':'\x27rfc2833\x27'},{'option':'info','value':_0x4c1a13(0x1972)},{'option':_0x4c1a13(0x2801),'value':'\x27shortinfo\x27'},{'option':'inband','value':'\x27inband\x27'},{'option':'auto','value':_0x4c1a13(0x558)}],function(_0xbd310e){const _0x141d6c=_0x4c1a13;return _0x28c606()['replace'](_0xbd310e[_0x141d6c(0x1096)],new RegExp('\x27','g'),'');}),_0x2770c4[_0x4c1a13(0x15c0)]=_0x28c606()[_0x4c1a13(0x161e)]([{'option':_0x4c1a13(0x28ee),'value':_0x4c1a13(0x9f8)},{'option':_0x4c1a13(0x176a),'value':_0x4c1a13(0x2231)},{'option':_0x4c1a13(0x1d21),'value':_0x4c1a13(0x726)},{'option':'no','value':_0x4c1a13(0x1476)},{'option':_0x4c1a13(0x233a),'value':'\x27never\x27'},{'option':_0x4c1a13(0xb5a),'value':_0x4c1a13(0x1057)}],function(_0x5be61b){const _0x19b1dc=_0x4c1a13;return _0x28c606()[_0x19b1dc(0x1353)](_0x5be61b[_0x19b1dc(0x1096)],new RegExp('\x27','g'),'');}),_0x2770c4['arrayqualify']=_0x28c606()[_0x4c1a13(0x161e)]([{'option':_0x4c1a13(0x1d21),'value':_0x4c1a13(0x726)},{'option':'no','value':'\x27no\x27'}],function(_0x40d5b8){const _0x1f44a4=_0x4c1a13;return _0x28c606()[_0x1f44a4(0x1353)](_0x40d5b8['value'],new RegExp('\x27','g'),'');}),_0x2770c4[_0x4c1a13(0xf78)]=_0x28c606()[_0x4c1a13(0x161e)]([{'option':'ulaw','value':_0x4c1a13(0x13a0)},{'option':_0x4c1a13(0x2607),'value':'\x27alaw\x27'},{'option':_0x4c1a13(0x8e1),'value':_0x4c1a13(0x17cb)},{'option':_0x4c1a13(0x153a),'value':'\x27g723\x27'},{'option':_0x4c1a13(0x1336),'value':'\x27g726\x27'},{'option':'g722','value':_0x4c1a13(0x2230)},{'option':'g729','value':_0x4c1a13(0x1389)},{'option':'ilbc','value':_0x4c1a13(0xb87)},{'option':_0x4c1a13(0x16d1),'value':'\x27opus\x27'},{'option':_0x4c1a13(0x1c59),'value':_0x4c1a13(0x269d)}],function(_0x80f521){const _0x3a63df=_0x4c1a13;return _0x28c606()['replace'](_0x80f521[_0x3a63df(0x1096)],new RegExp('\x27','g'),'');}),_0x2770c4[_0x4c1a13(0x2315)]=_0x28c606()[_0x4c1a13(0x161e)]([{'option':_0x4c1a13(0x23f2),'value':_0x4c1a13(0x11ee)},{'option':'invite','value':'\x27invite\x27'},{'option':_0x4c1a13(0x1137),'value':_0x4c1a13(0xb48)}],function(_0x353d5d){const _0xf59784=_0x4c1a13;return _0x28c606()[_0xf59784(0x1353)](_0x353d5d[_0xf59784(0x1096)],new RegExp('\x27','g'),'');}),_0x2770c4[_0x4c1a13(0x1465)]=_0x28c606()[_0x4c1a13(0x161e)]([{'option':'yes','value':'\x27yes\x27'},{'option':'no','value':_0x4c1a13(0x1476)},{'option':_0x4c1a13(0x1456),'value':_0x4c1a13(0x1eaa)},{'option':_0x4c1a13(0x2603),'value':_0x4c1a13(0x1488)}],function(_0x72f7df){const _0x530c6e=_0x4c1a13;return _0x28c606()[_0x530c6e(0x1353)](_0x72f7df[_0x530c6e(0x1096)],new RegExp('\x27','g'),'');}),_0x2770c4[_0x4c1a13(0x213d)]=_0x28c606()[_0x4c1a13(0x161e)]([{'option':_0x4c1a13(0x1d21),'value':_0x4c1a13(0x726)},{'option':'no','value':'\x27no\x27'}],function(_0x55dae3){const _0x1124dc=_0x4c1a13;return _0x28c606()[_0x1124dc(0x1353)](_0x55dae3[_0x1124dc(0x1096)],new RegExp('\x27','g'),'');}),_0x2770c4['arrayusereqphone']=_0x28c606()[_0x4c1a13(0x161e)]([{'option':_0x4c1a13(0x1d21),'value':'\x27yes\x27'},{'option':'no','value':'\x27no\x27'}],function(_0x335489){const _0x599cbe=_0x4c1a13;return _0x28c606()[_0x599cbe(0x1353)](_0x335489['value'],new RegExp('\x27','g'),'');}),_0x2770c4[_0x4c1a13(0x2137)]=_0x28c606()[_0x4c1a13(0x161e)]([{'option':'yes','value':_0x4c1a13(0x726)},{'option':'no','value':_0x4c1a13(0x1476)}],function(_0x368053){const _0x1f3fa3=_0x4c1a13;return _0x28c606()[_0x1f3fa3(0x1353)](_0x368053['value'],new RegExp('\x27','g'),'');}),_0x2770c4[_0x4c1a13(0x4f2)]=_0x28c606()[_0x4c1a13(0x161e)]([{'option':_0x4c1a13(0x1d21),'value':_0x4c1a13(0x726)},{'option':'no','value':_0x4c1a13(0x1476)},{'option':'pai','value':_0x4c1a13(0x2071)}],function(_0x10b19f){const _0x576291=_0x4c1a13;return _0x28c606()[_0x576291(0x1353)](_0x10b19f[_0x576291(0x1096)],new RegExp('\x27','g'),'');}),_0x2770c4[_0x4c1a13(0x241c)]=_0x28c606()[_0x4c1a13(0x161e)]([{'option':'yes','value':_0x4c1a13(0x726)},{'option':'no','value':_0x4c1a13(0x1476)}],function(_0x2c8d92){const _0x36d55d=_0x4c1a13;return _0x28c606()[_0x36d55d(0x1353)](_0x2c8d92['value'],new RegExp('\x27','g'),'');}),_0x2770c4[_0x4c1a13(0x7c1)]=_0x28c606()[_0x4c1a13(0x161e)]([{'option':_0x4c1a13(0x241e),'value':'\x27udp\x27'},{'option':_0x4c1a13(0x28b1),'value':_0x4c1a13(0x1289)},{'option':'ws','value':_0x4c1a13(0x23f6)},{'option':_0x4c1a13(0x10db),'value':_0x4c1a13(0x1a49)},{'option':_0x4c1a13(0x959),'value':'\x27tls\x27'}],function(_0x49d68e){const _0xa2952=_0x4c1a13;return _0x28c606()[_0xa2952(0x1353)](_0x49d68e[_0xa2952(0x1096)],new RegExp('\x27','g'),'');}),_0x2770c4[_0x4c1a13(0xb65)]=_0x28c606()[_0x4c1a13(0x161e)]([{'option':_0x4c1a13(0x307),'value':_0x4c1a13(0x726)},{'option':'No','value':_0x4c1a13(0x1476)},{'option':'Always','value':_0x4c1a13(0x1c55)}],function(_0x50eb48){return _0x28c606()['replace'](_0x50eb48['value'],new RegExp('\x27','g'),'');}),_0x2770c4[_0x4c1a13(0xff6)]=_0x21be06,_0x2770c4[_0x4c1a13(0x1676)]=_0x39a2e3,_0x2770c4[_0x4c1a13(0x93f)]=_0x555c01,_0x2770c4[_0x4c1a13(0x1262)]=_0x1678e1,_0x2770c4[_0x4c1a13(0x1339)]=_0x5c931f,_0x2770c4[_0x4c1a13(0xcee)]=_0x2541ba,_0x2770c4['createOrEditTrunk']=_0x29e9fa,_0x2770c4['deleteTrunk']=_0x43ca40,_0x2770c4[_0x4c1a13(0x2534)]=_0x1959e0,_0x2770c4[_0x4c1a13(0x1011)]=_0x28368f,_0x2770c4[_0x4c1a13(0x23b9)]=_0x560629,_0x2770c4['selectAllTrunks']=_0x3c7daf;function _0x21be06(_0x52af21){const _0x3dfb9d=_0x4c1a13;_0x1d4bf5['go'](_0x3dfb9d(0x1f7),{'id':_0x52af21['id'],'trunk':_0x52af21,'crudPermissions':_0x2770c4[_0x3dfb9d(0x402)]});}function _0x39a2e3(_0x29bb7b,_0x5ebf31){const _0x68ab89=_0x4c1a13;_0x381b83[_0x68ab89(0xa60)]({'controller':_0x68ab89(0x36d),'controllerAs':'vm','templateUrl':_0x583261,'parent':angular[_0x68ab89(0x1f81)](_0x28be0f[_0x68ab89(0xb49)]),'targetEvent':_0x5ebf31,'clickOutsideToClose':!![],'locals':{'trunk':_0x29bb7b,'trunks':_0x2770c4[_0x68ab89(0xe23)]?_0x2770c4[_0x68ab89(0xe23)][_0x68ab89(0x28b8)]:[],'crudPermissions':_0x2770c4[_0x68ab89(0x402)]}});}function _0x555c01(){const _0x4ad4ff=_0x4c1a13;if(_0x49ae1f[_0x4ad4ff(0x4de)]('admin'))_0x1d4bf5['go'](_0x4ad4ff(0x14f),{});else return _0x471774[_0x4ad4ff(0x16b2)][_0x4ad4ff(0x896)]({'userProfileId':_0x49ae1f[_0x4ad4ff(0x808)]()[_0x4ad4ff(0x21ac)],'sectionId':0x19b})[_0x4ad4ff(0x15e7)][_0x4ad4ff(0x64a)](function(_0x22ddaa){const _0x35550a=_0x4ad4ff,_0x528970=_0x22ddaa&&_0x22ddaa[_0x35550a(0x28b8)]?_0x22ddaa['rows'][0x0]:null;_0x528970&&_0x528970[_0x35550a(0xe49)]?_0x1d4bf5['go']('app.voice.realtime.trunks',{}):_0x30f83d[_0x35550a(0x772)]({'title':_0x5dd4db[_0x35550a(0x2292)](_0x35550a(0x111a)),'msg':_0x5dd4db['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x4ad4ff(0x20cd)](function(_0xf332d3){const _0x1819b4=_0x4ad4ff;_0x30f83d[_0x1819b4(0x1bd0)]({'title':_0xf332d3[_0x1819b4(0x10b3)]?_0x1819b4(0x575)+_0xf332d3[_0x1819b4(0x10b3)]+_0x1819b4(0x21db)+_0xf332d3[_0x1819b4(0x2115)]:_0x1819b4(0x942),'msg':_0xf332d3['status']?JSON[_0x1819b4(0x2317)](_0xf332d3[_0x1819b4(0x1c52)]):_0xf332d3[_0x1819b4(0x2915)]()});});}function _0x1678e1(_0x3b6646,_0xceb25e){const _0x375580=_0x4c1a13,_0xaf1d61=_0x381b83[_0x375580(0x856)]()[_0x375580(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()[_0x375580(0xc01)](_0x375580(0x4ef))+'?')[_0x375580(0x33a)](''+(_0x3b6646[_0x375580(0x2494)]||'trunk')+''+_0x375580(0x4b8))[_0x375580(0x213e)](_0x375580(0xf6c))[_0x375580(0x2283)](_0xceb25e)['ok']('OK')['cancel'](_0x375580(0x18fd));_0x381b83[_0x375580(0xa60)](_0xaf1d61)['then'](function(){_0x43ca40(_0x3b6646);},function(){console['log']('CANCEL');});}let _0x1ba764=!![],_0x3b9e81=0x1;_0x387e0e[_0x4c1a13(0xc62)]('vm.query.filter',function(_0x189983,_0x18ffec){const _0x27f2b2=_0x4c1a13;_0x1ba764?_0x1bfdbe(function(){_0x1ba764=![];}):(!_0x18ffec&&(_0x3b9e81=_0x2770c4['query'][_0x27f2b2(0xc72)]),_0x189983!==_0x18ffec&&(_0x2770c4['query']['page']=0x1),!_0x189983&&(_0x2770c4[_0x27f2b2(0x289a)][_0x27f2b2(0xc72)]=_0x3b9e81),_0x2770c4[_0x27f2b2(0xcee)]());});function _0x5c931f(_0x3ae56f){const _0x1eed4b=_0x4c1a13;_0x2770c4[_0x1eed4b(0xe23)]=_0x3ae56f||{'count':0x0,'rows':[]};}function _0x2541ba(){const _0x1e1f64=_0x4c1a13;_0x2770c4[_0x1e1f64(0x289a)][_0x1e1f64(0x24f9)]=(_0x2770c4['query']['page']-0x1)*_0x2770c4['query'][_0x1e1f64(0x25bb)],_0x49ae1f['hasRole'](_0x1e1f64(0x333))?_0x2770c4[_0x1e1f64(0x1713)]=_0x471774['trunk'][_0x1e1f64(0x896)](_0x2770c4[_0x1e1f64(0x289a)],_0x5c931f)[_0x1e1f64(0x15e7)]:(_0x2770c4[_0x1e1f64(0x289a)]['id']=_0x2770c4[_0x1e1f64(0x16a8)]['id'],_0x2770c4[_0x1e1f64(0x289a)][_0x1e1f64(0xa21)]=_0x1e1f64(0x740),_0x2770c4[_0x1e1f64(0x1713)]=_0x471774[_0x1e1f64(0x16a8)][_0x1e1f64(0x2565)](_0x2770c4[_0x1e1f64(0x289a)],_0x5c931f)[_0x1e1f64(0x15e7)]);}function _0x29e9fa(_0x49b800,_0x1e53bf){const _0x5164f3=_0x4c1a13;_0x381b83[_0x5164f3(0xa60)]({'controller':_0x5164f3(0x1faf),'controllerAs':'vm','templateUrl':_0x4c7fbd,'parent':angular[_0x5164f3(0x1f81)](_0x28be0f['body']),'targetEvent':_0x49b800,'clickOutsideToClose':!![],'locals':{'trunk':_0x1e53bf,'trunks':_0x2770c4[_0x5164f3(0xe23)][_0x5164f3(0x28b8)],'license':_0x2770c4['license'],'setting':_0x2770c4[_0x5164f3(0x28d6)],'crudPermissions':_0x2770c4[_0x5164f3(0x402)]}});}function _0x43ca40(_0x166741){const _0x470e78=_0x4c1a13;_0x471774[_0x470e78(0x4ef)][_0x470e78(0xabd)]({'id':_0x166741['id']})[_0x470e78(0x15e7)][_0x470e78(0x64a)](function(){const _0x5d218e=_0x470e78;_0x28c606()['remove'](_0x2770c4['trunks'][_0x5d218e(0x28b8)],{'id':_0x166741['id']}),_0x2770c4[_0x5d218e(0xe23)][_0x5d218e(0xb90)]-=0x1,!_0x2770c4[_0x5d218e(0xe23)]['rows'][_0x5d218e(0x1b9e)]&&_0x2770c4[_0x5d218e(0xcee)](),_0x30f83d[_0x5d218e(0x1339)]({'title':_0x28c606()[_0x5d218e(0xc01)]('Trunk')+_0x5d218e(0x2502),'msg':_0x166741[_0x5d218e(0x2494)]?_0x166741[_0x5d218e(0x2494)]+_0x5d218e(0x1fa8):''});})[_0x470e78(0x20cd)](function(_0x597e65){const _0x5b4fb0=_0x470e78;if(_0x597e65['data']&&_0x597e65[_0x5b4fb0(0x1c52)]['errors']&&_0x597e65[_0x5b4fb0(0x1c52)][_0x5b4fb0(0xbae)]['length']){_0x2770c4[_0x5b4fb0(0xbae)]=_0x597e65['data'][_0x5b4fb0(0xbae)]||[{'message':_0x597e65[_0x5b4fb0(0x2915)](),'type':'SYSTEM:DELETEtrunk'}];for(let _0x43f343=0x0;_0x43f343<_0x597e65[_0x5b4fb0(0x1c52)][_0x5b4fb0(0xbae)][_0x5b4fb0(0x1b9e)];_0x43f343++){_0x30f83d[_0x5b4fb0(0x1bd0)]({'title':_0x597e65[_0x5b4fb0(0x1c52)][_0x5b4fb0(0xbae)][_0x43f343][_0x5b4fb0(0x2185)],'msg':_0x597e65[_0x5b4fb0(0x1c52)][_0x5b4fb0(0xbae)][_0x43f343][_0x5b4fb0(0x18ca)]});}}else _0x30f83d[_0x5b4fb0(0x1bd0)]({'title':_0x597e65[_0x5b4fb0(0x10b3)]?'API:'+_0x597e65[_0x5b4fb0(0x10b3)]+_0x5b4fb0(0x21db)+_0x597e65[_0x5b4fb0(0x2115)]:_0x5b4fb0(0x2525),'msg':_0x597e65['data']?JSON[_0x5b4fb0(0x2317)](_0x597e65[_0x5b4fb0(0x1c52)][_0x5b4fb0(0x18ca)]):_0x597e65[_0x5b4fb0(0x18ca)]||_0x597e65[_0x5b4fb0(0x2915)]()});});}function _0x1959e0(){const _0x3b5db8=_0x4c1a13,_0x4ea72f=angular[_0x3b5db8(0x289e)](_0x2770c4[_0x3b5db8(0xe80)]);return _0x2770c4[_0x3b5db8(0xe80)]=[],_0x4ea72f;}function _0x28368f(_0x1bdc74){const _0x4e7f4c=_0x4c1a13,_0x5f1e32=_0x381b83[_0x4e7f4c(0x856)]()[_0x4e7f4c(0x2021)](_0x4e7f4c(0x2322))['htmlContent'](_0x4e7f4c(0x50b)+_0x2770c4[_0x4e7f4c(0xe80)][_0x4e7f4c(0x1b9e)]+'\x20selected'+_0x4e7f4c(0x4b8))[_0x4e7f4c(0x213e)](_0x4e7f4c(0x1319))['targetEvent'](_0x1bdc74)['ok']('OK')[_0x4e7f4c(0x101a)](_0x4e7f4c(0x18fd));_0x381b83['show'](_0x5f1e32)[_0x4e7f4c(0x64a)](function(){const _0x1ea5a5=_0x4e7f4c;_0x2770c4['selectedTrunks'][_0x1ea5a5(0x1397)](function(_0x1778c8){_0x43ca40(_0x1778c8);}),_0x2770c4['selectedTrunks']=[];});}function _0x560629(){const _0x87b341=_0x4c1a13;_0x2770c4[_0x87b341(0xe80)]=[];}function _0x3c7daf(){const _0x3f1e23=_0x4c1a13;_0x2770c4[_0x3f1e23(0xe80)]=_0x2770c4[_0x3f1e23(0xe23)][_0x3f1e23(0x28b8)];}}const _0x58f660=_0x22bb0f;;_0xf82d10['$inject']=['$scope',_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x145c),'variable','api','Auth','license','setting','crudPermissions'];function _0xf82d10(_0x7c6059,_0x1a4d78,_0x16517b,_0x2e3d3f,_0x19d546,_0x1b8f9b,_0x450b62,_0x33c559,_0x488d68,_0x3d0118,_0x4a368a,_0xb002c6,_0x81e70c,_0x601f98){const _0x287632=_0x49a1e3,_0x3c65c4=this;_0x3c65c4[_0x287632(0x1d3d)]=_0x4a368a['getCurrentUser'](),_0x3c65c4[_0x287632(0xbae)]=[],_0x3c65c4[_0x287632(0x28d6)]=_0x81e70c,_0x3c65c4[_0x287632(0x1947)]=_0xb002c6,_0x3c65c4[_0x287632(0x402)]=_0x601f98,_0x3c65c4[_0x287632(0x6c2)]={},_0x3c65c4['passwordPattern']=_0x3c65c4[_0x287632(0x28d6)]&&_0x3c65c4[_0x287632(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3c65c4[_0x287632(0x2021)]='TOOLS.EDIT_VARIABLE',_0x3c65c4[_0x287632(0xefb)]=angular[_0x287632(0x289e)](_0x488d68),_0x3c65c4[_0x287632(0x145c)]=_0x33c559,_0x3c65c4['newVariable']=![];!_0x3c65c4[_0x287632(0xefb)]&&(_0x3c65c4[_0x287632(0xefb)]={},_0x3c65c4[_0x287632(0x2021)]=_0x287632(0x1fb0),_0x3c65c4[_0x287632(0x2c0)]=!![]);_0x3c65c4[_0x287632(0xbca)]=_0x4ce073,_0x3c65c4[_0x287632(0xec4)]=_0x4590af,_0x3c65c4[_0x287632(0x1be7)]=_0xb0c9c2,_0x3c65c4['getDateFromString']=_0x2d9933,_0x3c65c4[_0x287632(0x16cb)]=_0x35be64;function _0x4ce073(){const _0x3ecb1d=_0x287632;_0x3c65c4[_0x3ecb1d(0xbae)]=[],_0x3d0118['variable'][_0x3ecb1d(0x2479)](_0x3c65c4[_0x3ecb1d(0xefb)])[_0x3ecb1d(0x15e7)][_0x3ecb1d(0x64a)](function(_0x46d3cf){const _0x2c6506=_0x3ecb1d;_0x3c65c4[_0x2c6506(0x145c)][_0x2c6506(0x1891)](_0x46d3cf[_0x2c6506(0x14f8)]()),_0x450b62[_0x2c6506(0x1339)]({'title':_0x2c6506(0x317),'msg':_0x3c65c4[_0x2c6506(0xefb)]['name']?_0x3c65c4[_0x2c6506(0xefb)]['name']+'\x20has\x20been\x20created!':''}),_0x35be64(_0x46d3cf);})[_0x3ecb1d(0x20cd)](function(_0x2592bc){const _0x34f3d0=_0x3ecb1d;if(_0x2592bc['data']&&_0x2592bc[_0x34f3d0(0x1c52)][_0x34f3d0(0xbae)]&&_0x2592bc['data'][_0x34f3d0(0xbae)][_0x34f3d0(0x1b9e)]){_0x3c65c4[_0x34f3d0(0xbae)]=_0x2592bc[_0x34f3d0(0x1c52)][_0x34f3d0(0xbae)]||[{'message':_0x2592bc[_0x34f3d0(0x2915)](),'type':_0x34f3d0(0x1168)}];for(let _0x12c925=0x0;_0x12c925<_0x2592bc[_0x34f3d0(0x1c52)][_0x34f3d0(0xbae)]['length'];_0x12c925+=0x1){_0x450b62[_0x34f3d0(0x1bd0)]({'title':_0x2592bc[_0x34f3d0(0x1c52)][_0x34f3d0(0xbae)][_0x12c925]['type'],'msg':_0x2592bc[_0x34f3d0(0x1c52)][_0x34f3d0(0xbae)][_0x12c925][_0x34f3d0(0x18ca)]});}}else _0x450b62['error']({'title':_0x2592bc[_0x34f3d0(0x10b3)]?_0x34f3d0(0x575)+_0x2592bc[_0x34f3d0(0x10b3)]+_0x34f3d0(0x21db)+_0x2592bc[_0x34f3d0(0x2115)]:_0x34f3d0(0x1168),'msg':_0x2592bc[_0x34f3d0(0x1c52)]?JSON['stringify'](_0x2592bc[_0x34f3d0(0x1c52)][_0x34f3d0(0x18ca)]):_0x2592bc['toString']()});});}function _0x4590af(){const _0x4d54ec=_0x287632;_0x3c65c4[_0x4d54ec(0xbae)]=[],_0x3d0118[_0x4d54ec(0xefb)][_0x4d54ec(0x2603)]({'id':_0x3c65c4[_0x4d54ec(0xefb)]['id']},_0x3c65c4['variable'])['$promise'][_0x4d54ec(0x64a)](function(_0x80073b){const _0x2e62f3=_0x4d54ec,_0x36aaff=_0x28c606()[_0x2e62f3(0x27bc)](_0x3c65c4['variables'],{'id':_0x80073b['id']});_0x36aaff&&_0x28c606()[_0x2e62f3(0x14fe)](_0x36aaff,_0x28c606()[_0x2e62f3(0x27bb)](_0x80073b[_0x2e62f3(0x14f8)](),_0x28c606()[_0x2e62f3(0x1ec6)](_0x36aaff))),_0x450b62[_0x2e62f3(0x1339)]({'title':'Variable\x20properly\x20saved!','msg':_0x3c65c4['variable'][_0x2e62f3(0x2494)]?_0x3c65c4['variable'][_0x2e62f3(0x2494)]+_0x2e62f3(0x271):''}),_0x35be64(_0x80073b);})[_0x4d54ec(0x20cd)](function(_0x3fe77){const _0x59caaf=_0x4d54ec;if(_0x3fe77[_0x59caaf(0x1c52)]&&_0x3fe77[_0x59caaf(0x1c52)][_0x59caaf(0xbae)]&&_0x3fe77['data']['errors'][_0x59caaf(0x1b9e)]){_0x3c65c4[_0x59caaf(0xbae)]=_0x3fe77[_0x59caaf(0x1c52)][_0x59caaf(0xbae)]||[{'message':_0x3fe77[_0x59caaf(0x2915)](),'type':'api.variable.update'}];for(let _0x4e6f51=0x0;_0x4e6f51<_0x3fe77[_0x59caaf(0x1c52)][_0x59caaf(0xbae)]['length'];_0x4e6f51++){_0x450b62[_0x59caaf(0x1bd0)]({'title':_0x3fe77['data'][_0x59caaf(0xbae)][_0x4e6f51][_0x59caaf(0x2185)],'msg':_0x3fe77[_0x59caaf(0x1c52)]['errors'][_0x4e6f51][_0x59caaf(0x18ca)]});}}else _0x450b62[_0x59caaf(0x1bd0)]({'title':_0x3fe77[_0x59caaf(0x10b3)]?'API:'+_0x3fe77[_0x59caaf(0x10b3)]+_0x59caaf(0x21db)+_0x3fe77['statusText']:_0x59caaf(0x251c),'msg':_0x3fe77[_0x59caaf(0x1c52)]?JSON[_0x59caaf(0x2317)](_0x3fe77[_0x59caaf(0x1c52)]['message']):_0x3fe77['toString']()});});}function _0xb0c9c2(_0x59d275){const _0x544820=_0x287632;_0x3c65c4[_0x544820(0xbae)]=[];const _0x45fddc=_0x2e3d3f[_0x544820(0x856)]()[_0x544820(0x2021)](_0x544820(0x103a))[_0x544820(0x12b8)](_0x544820(0x157b))[_0x544820(0x213e)](_0x544820(0x2461))['ok'](_0x544820(0x2664))['cancel'](_0x544820(0x1dc6))[_0x544820(0x2283)](_0x59d275);_0x2e3d3f[_0x544820(0xa60)](_0x45fddc)[_0x544820(0x64a)](function(){const _0x3a1061=_0x544820;_0x3d0118[_0x3a1061(0xefb)][_0x3a1061(0xabd)]({'id':_0x3c65c4[_0x3a1061(0xefb)]['id']})[_0x3a1061(0x15e7)][_0x3a1061(0x64a)](function(){const _0x487cd5=_0x3a1061;_0x28c606()[_0x487cd5(0x21c7)](_0x3c65c4[_0x487cd5(0x145c)],{'id':_0x3c65c4[_0x487cd5(0xefb)]['id']}),_0x450b62[_0x487cd5(0x1339)]({'title':'Variable\x20properly\x20deleted!','msg':(_0x3c65c4['variable'][_0x487cd5(0x2494)]||'variable')+_0x487cd5(0x1fa8)}),_0x35be64(_0x3c65c4[_0x487cd5(0xefb)]);})[_0x3a1061(0x20cd)](function(_0x5a416a){const _0x803e24=_0x3a1061;if(_0x5a416a[_0x803e24(0x1c52)]&&_0x5a416a[_0x803e24(0x1c52)][_0x803e24(0xbae)]&&_0x5a416a['data'][_0x803e24(0xbae)]['length']){_0x3c65c4[_0x803e24(0xbae)]=_0x5a416a[_0x803e24(0x1c52)][_0x803e24(0xbae)]||[{'message':_0x5a416a[_0x803e24(0x2915)](),'type':_0x803e24(0x2611)}];for(let _0x1955db=0x0;_0x1955db<_0x5a416a[_0x803e24(0x1c52)][_0x803e24(0xbae)]['length'];_0x1955db++){_0x450b62['error']({'title':_0x5a416a[_0x803e24(0x1c52)]['errors'][_0x1955db][_0x803e24(0x2185)],'msg':_0x5a416a[_0x803e24(0x1c52)]['errors'][_0x1955db][_0x803e24(0x18ca)]});}}else _0x450b62['error']({'title':_0x5a416a[_0x803e24(0x10b3)]?_0x803e24(0x575)+_0x5a416a['status']+'\x20-\x20'+_0x5a416a['statusText']:_0x803e24(0x2611),'msg':_0x5a416a[_0x803e24(0x1c52)]?JSON[_0x803e24(0x2317)](_0x5a416a[_0x803e24(0x1c52)][_0x803e24(0x18ca)]):_0x5a416a[_0x803e24(0x18ca)]||_0x5a416a[_0x803e24(0x2915)]()});});},function(){});}function _0x2d9933(_0x1ba086){return _0x1ba086===null?undefined:new Date(_0x1ba086);}function _0x35be64(_0x54b517){const _0x39793f=_0x287632;_0x2e3d3f[_0x39793f(0x268e)](_0x54b517);}}const _0xc333a7=_0xf82d10;;const _0x2c6a0c=_0x2e4a48['p']+_0x49a1e3(0x18cf);;_0x325196[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x145c),_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x325196(_0x533f5b,_0x4a0a39,_0x2e38e7,_0x4cbe90,_0x37ebd7,_0x565094,_0xe9a1d2,_0x391a60,_0x2752b1,_0x5415ca,_0x366086,_0x5d8e60,_0x390925,_0x48ab70,_0x53ba19,_0x4d83ad,_0x47e850){const _0xdf3e39=_0x49a1e3,_0xdd24d=this;_0xdd24d[_0xdf3e39(0x1947)]=_0x4d83ad,_0xdd24d[_0xdf3e39(0x28d6)]=_0x47e850,_0xdd24d['currentUser']=_0x53ba19[_0xdf3e39(0x808)](),_0xdd24d['variables']=_0x2752b1||{'count':0x0,'rows':[]},_0xdd24d['userProfile']=_0x5415ca,_0xdd24d[_0xdf3e39(0x16b2)]=_0x366086&&_0x366086['count']==0x1?_0x366086[_0xdf3e39(0x28b8)][0x0]:null,_0xdd24d['crudPermissions']=_0x53ba19[_0xdf3e39(0xa7e)](_0xdd24d['userProfileSection']?_0xdd24d[_0xdf3e39(0x16b2)][_0xdf3e39(0x402)]:null),_0xdd24d['table']='variables',_0xdd24d[_0xdf3e39(0x300)]='',_0xdd24d['listOrderAsc']=null,_0xdd24d['selectedVariables']=[],_0xdd24d[_0xdf3e39(0x289a)]={'fields':_0xdf3e39(0x15b8),'sort':_0xdf3e39(0x260c),'limit':0xa,'page':0x1},_0xdd24d[_0xdf3e39(0x1c42)]=_0xd0793c,_0xdd24d[_0xdf3e39(0x1262)]=_0x1e8a1d,_0xdd24d[_0xdf3e39(0x1339)]=_0x15f482,_0xdd24d[_0xdf3e39(0x32a)]=_0x5dec4e,_0xdd24d[_0xdf3e39(0xbeb)]=_0x1108c6,_0xdd24d[_0xdf3e39(0x1be7)]=_0x1ea744,_0xdd24d[_0xdf3e39(0x1d5)]=_0x5d31c9,_0xdd24d[_0xdf3e39(0x2237)]=_0x16ba47,_0xdd24d[_0xdf3e39(0xe1c)]=_0x4807d7,_0xdd24d[_0xdf3e39(0x13ea)]=_0x2e8296;function _0xd0793c(_0x35ac0e,_0x336f18){const _0x4ac83c=_0xdf3e39;_0x37ebd7[_0x4ac83c(0xa60)]({'controller':_0x4ac83c(0x2837),'controllerAs':'vm','templateUrl':_0x2c6a0c,'parent':angular[_0x4ac83c(0x1f81)](_0x565094[_0x4ac83c(0xb49)]),'targetEvent':_0x336f18,'clickOutsideToClose':!![],'locals':{'variable':_0x35ac0e,'variables':_0xdd24d[_0x4ac83c(0x145c)]['rows'],'license':_0xdd24d[_0x4ac83c(0x1947)],'setting':null,'crudPermissions':_0xdd24d[_0x4ac83c(0x402)]}});}function _0x1e8a1d(_0x184cd9,_0x478f63){const _0x2619a4=_0xdf3e39,_0xb6a257=_0x37ebd7[_0x2619a4(0x856)]()['title'](_0x2619a4(0x1231)+_0x28c606()[_0x2619a4(0xc01)](_0x2619a4(0xefb))+'?')['htmlContent'](_0x2619a4(0x50b)+(_0x184cd9[_0x2619a4(0x2494)]||_0x2619a4(0xefb))+_0x2619a4(0x26d0)+_0x2619a4(0x4b8))[_0x2619a4(0x213e)](_0x2619a4(0x20b4))['targetEvent'](_0x478f63)['ok']('OK')[_0x2619a4(0x101a)](_0x2619a4(0x18fd));_0x37ebd7[_0x2619a4(0xa60)](_0xb6a257)[_0x2619a4(0x64a)](function(){_0x1ea744(_0x184cd9);},function(){const _0x259d4=_0x2619a4;console['log'](_0x259d4(0x18fd));});}let _0x4be773=!![],_0x561001=0x1;_0x533f5b['$watch'](_0xdf3e39(0x1cb9),function(_0xf69a2f,_0x1c82b3){const _0x54ee25=_0xdf3e39;_0x4be773?_0xe9a1d2(function(){_0x4be773=![];}):(!_0x1c82b3&&(_0x561001=_0xdd24d[_0x54ee25(0x289a)][_0x54ee25(0xc72)]),_0xf69a2f!==_0x1c82b3&&(_0xdd24d[_0x54ee25(0x289a)]['page']=0x1),!_0xf69a2f&&(_0xdd24d[_0x54ee25(0x289a)][_0x54ee25(0xc72)]=_0x561001),_0xdd24d['getVariables']());});function _0x15f482(_0x57284e){const _0x3cd7d0=_0xdf3e39;_0xdd24d[_0x3cd7d0(0x145c)]=_0x57284e||{'count':0x0,'rows':[]};}function _0x5dec4e(){const _0xef6c25=_0xdf3e39;_0xdd24d[_0xef6c25(0x289a)][_0xef6c25(0x24f9)]=(_0xdd24d[_0xef6c25(0x289a)][_0xef6c25(0xc72)]-0x1)*_0xdd24d[_0xef6c25(0x289a)][_0xef6c25(0x25bb)],_0x53ba19[_0xef6c25(0x4de)](_0xef6c25(0x333))?_0xdd24d[_0xef6c25(0x1713)]=_0x5d8e60[_0xef6c25(0xefb)]['get'](_0xdd24d[_0xef6c25(0x289a)],_0x15f482)[_0xef6c25(0x15e7)]:(_0xdd24d[_0xef6c25(0x289a)]['id']=_0xdd24d[_0xef6c25(0x16a8)]['id'],_0xdd24d[_0xef6c25(0x289a)][_0xef6c25(0xa21)]=_0xef6c25(0x1ffe),_0xdd24d[_0xef6c25(0x1713)]=_0x5d8e60['userProfile'][_0xef6c25(0x2565)](_0xdd24d[_0xef6c25(0x289a)],_0x15f482)['$promise']);}function _0x1108c6(_0x1fa19b,_0x5e38ce){const _0x4f3ff6=_0xdf3e39;_0x37ebd7[_0x4f3ff6(0xa60)]({'controller':_0x4f3ff6(0x2837),'controllerAs':'vm','templateUrl':_0x2c6a0c,'parent':angular[_0x4f3ff6(0x1f81)](_0x565094[_0x4f3ff6(0xb49)]),'targetEvent':_0x1fa19b,'clickOutsideToClose':!![],'locals':{'variable':_0x5e38ce,'variables':_0xdd24d[_0x4f3ff6(0x145c)][_0x4f3ff6(0x28b8)],'license':_0xdd24d[_0x4f3ff6(0x1947)],'setting':_0xdd24d[_0x4f3ff6(0x28d6)],'crudPermissions':_0xdd24d[_0x4f3ff6(0x402)]}});}function _0x1ea744(_0x2afa30){const _0x8bfed6=_0xdf3e39;_0x5d8e60[_0x8bfed6(0xefb)][_0x8bfed6(0xabd)]({'id':_0x2afa30['id']})[_0x8bfed6(0x15e7)][_0x8bfed6(0x64a)](function(){const _0x1a7442=_0x8bfed6;_0x28c606()[_0x1a7442(0x21c7)](_0xdd24d[_0x1a7442(0x145c)][_0x1a7442(0x28b8)],{'id':_0x2afa30['id']}),_0xdd24d[_0x1a7442(0x145c)][_0x1a7442(0xb90)]-=0x1,!_0xdd24d[_0x1a7442(0x145c)][_0x1a7442(0x28b8)]['length']&&_0xdd24d[_0x1a7442(0x32a)](),_0x48ab70[_0x1a7442(0x1339)]({'title':_0x28c606()['startCase'](_0x1a7442(0x1538))+_0x1a7442(0x2502),'msg':_0x2afa30[_0x1a7442(0x2494)]?_0x2afa30[_0x1a7442(0x2494)]+'\x20has\x20been\x20deleted!':''});})[_0x8bfed6(0x20cd)](function(_0x10f1d2){const _0x4a0886=_0x8bfed6;if(_0x10f1d2[_0x4a0886(0x1c52)]&&_0x10f1d2['data'][_0x4a0886(0xbae)]&&_0x10f1d2[_0x4a0886(0x1c52)][_0x4a0886(0xbae)][_0x4a0886(0x1b9e)]){_0xdd24d['errors']=_0x10f1d2[_0x4a0886(0x1c52)][_0x4a0886(0xbae)]||[{'message':_0x10f1d2[_0x4a0886(0x2915)](),'type':'SYSTEM:DELETEvariable'}];for(let _0x410995=0x0;_0x410995<_0x10f1d2[_0x4a0886(0x1c52)][_0x4a0886(0xbae)][_0x4a0886(0x1b9e)];_0x410995++){_0x48ab70['error']({'title':_0x10f1d2[_0x4a0886(0x1c52)][_0x4a0886(0xbae)][_0x410995][_0x4a0886(0x2185)],'msg':_0x10f1d2[_0x4a0886(0x1c52)]['errors'][_0x410995]['message']});}}else _0x48ab70[_0x4a0886(0x1bd0)]({'title':_0x10f1d2['status']?_0x4a0886(0x575)+_0x10f1d2[_0x4a0886(0x10b3)]+_0x4a0886(0x21db)+_0x10f1d2[_0x4a0886(0x2115)]:_0x4a0886(0x1ef),'msg':_0x10f1d2[_0x4a0886(0x1c52)]?JSON[_0x4a0886(0x2317)](_0x10f1d2['data'][_0x4a0886(0x18ca)]):_0x10f1d2[_0x4a0886(0x18ca)]||_0x10f1d2[_0x4a0886(0x2915)]()});});}function _0x5d31c9(){const _0x3d09b7=_0xdf3e39,_0x728aaf=angular[_0x3d09b7(0x289e)](_0xdd24d[_0x3d09b7(0x2491)]);return _0xdd24d[_0x3d09b7(0x2491)]=[],_0x728aaf;}function _0x16ba47(_0x4f37f4){const _0x2a863a=_0xdf3e39,_0x55bdf7=_0x37ebd7[_0x2a863a(0x856)]()[_0x2a863a(0x2021)](_0x2a863a(0x228c))['htmlContent'](_0x2a863a(0x50b)+_0xdd24d[_0x2a863a(0x2491)][_0x2a863a(0x1b9e)]+_0x2a863a(0x163e)+'\x20will\x20be\x20deleted.')[_0x2a863a(0x213e)](_0x2a863a(0x1672))[_0x2a863a(0x2283)](_0x4f37f4)['ok']('OK')[_0x2a863a(0x101a)](_0x2a863a(0x18fd));_0x37ebd7[_0x2a863a(0xa60)](_0x55bdf7)['then'](function(){const _0x271a4a=_0x2a863a;_0xdd24d[_0x271a4a(0x2491)][_0x271a4a(0x1397)](function(_0x35f520){_0x1ea744(_0x35f520);}),_0xdd24d['selectedVariables']=[];});}function _0x4807d7(){const _0x4e19f4=_0xdf3e39;_0xdd24d[_0x4e19f4(0x2491)]=[];}function _0x2e8296(){const _0x1457f7=_0xdf3e39;_0xdd24d[_0x1457f7(0x2491)]=_0xdd24d[_0x1457f7(0x145c)][_0x1457f7(0x28b8)];}}const _0x7c8538=_0x325196;;_0x223951[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad),'$translatePartialLoaderProvider'];function _0x223951(_0x2428a0,_0xc8d69d){const _0x2eace0=_0x49a1e3;_0x2428a0[_0x2eace0(0x14f2)](_0x2eace0(0x5a8),{'abstract':!![],'url':_0x2eace0(0x166f)})[_0x2eace0(0x14f2)](_0x2eace0(0x43a),{'url':_0x2eace0(0x1910),'views':{'content@app':{'templateUrl':_0x15a417,'controller':'CannedAnswersController\x20as\x20vm'}},'resolve':{'cannedAnswers':[_0x2eace0(0x107c),_0x2eace0(0xdcf),function(_0x507477,_0x55dfd1){const _0xc89662=_0x2eace0;return _0x55dfd1[_0xc89662(0x4de)](_0xc89662(0x333))?_0x507477['resolve'](_0xc89662(0x331),{'fields':'createdAt,updatedAt,id,key,value,description','sort':_0xc89662(0x260c),'MailAccountId':'null','FaxAccountId':_0xc89662(0x8f1),'SmsAccountId':_0xc89662(0x8f1),'OpenchannelAccountId':'null','ChatWebsiteId':_0xc89662(0x8f1),'limit':0xa,'offset':0x0}):_0x507477[_0xc89662(0x1268)](_0xc89662(0x1758),{'id':_0x55dfd1[_0xc89662(0x808)]()[_0xc89662(0x21ac)],'section':_0xc89662(0x2671),'fields':'createdAt,updatedAt,id,key,value,description','sort':_0xc89662(0x260c),'MailAccountId':_0xc89662(0x8f1),'FaxAccountId':'null','SmsAccountId':_0xc89662(0x8f1),'OpenchannelAccountId':_0xc89662(0x8f1),'ChatWebsiteId':_0xc89662(0x8f1),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x577d7e,_0x52ceb5){const _0x85ef9=_0x2eace0;return _0x52ceb5[_0x85ef9(0x4de)]('admin')?null:_0x577d7e[_0x85ef9(0x1268)](_0x85ef9(0x6e3),{'fields':'id,name,crudPermissions','id':_0x52ceb5[_0x85ef9(0x808)]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x2eace0(0xdcf),function(_0x5d2ada,_0x2b16bc){const _0x24cd2f=_0x2eace0;return _0x2b16bc[_0x24cd2f(0x4de)](_0x24cd2f(0x333))?null:_0x5d2ada['resolve'](_0x24cd2f(0x2681),{'fields':_0x24cd2f(0x527),'userProfileId':_0x2b16bc[_0x24cd2f(0x808)]()[_0x24cd2f(0x21ac)],'sectionId':0x3e9});}]},'authenticate':!![],'permissionId':0x3e9,'bodyClass':_0x2eace0(0x10fe)})[_0x2eace0(0x14f2)](_0x2eace0(0x2310),{'url':_0x2eace0(0x166b),'views':{'content@app':{'templateUrl':_0x1909e1,'controller':_0x2eace0(0x13e5)}},'resolve':{'customDashboards':[_0x2eace0(0x107c),_0x2eace0(0xdcf),function(_0x3a30de,_0x3000dd){const _0x3904b1=_0x2eace0;return _0x3000dd[_0x3904b1(0x4de)](_0x3904b1(0x333))?_0x3a30de[_0x3904b1(0x1268)]('dashboard@get',{'fields':_0x3904b1(0x15b8),'sort':_0x3904b1(0x260c),'limit':0xa,'offset':0x0}):_0x3a30de[_0x3904b1(0x1268)](_0x3904b1(0x1758),{'id':_0x3000dd[_0x3904b1(0x808)]()[_0x3904b1(0x21ac)],'section':'CustomDashboards','fields':'createdAt,updatedAt,id,name,description','sort':_0x3904b1(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2eace0(0x107c),'Auth',function(_0x4ecf7c,_0x2b8bf4){const _0x567b43=_0x2eace0;return _0x2b8bf4[_0x567b43(0x4de)](_0x567b43(0x333))?null:_0x4ecf7c[_0x567b43(0x1268)]('userProfile@get',{'fields':_0x567b43(0x10d2),'id':_0x2b8bf4['getCurrentUser']()[_0x567b43(0x21ac)]});}],'userProfileSection':[_0x2eace0(0x107c),_0x2eace0(0xdcf),function(_0x297c49,_0xbb588f){const _0x62f432=_0x2eace0;return _0xbb588f[_0x62f432(0x4de)](_0x62f432(0x333))?null:_0x297c49['resolve'](_0x62f432(0x2681),{'fields':_0x62f432(0x527),'userProfileId':_0xbb588f[_0x62f432(0x808)]()[_0x62f432(0x21ac)],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':_0x2eace0(0x10fe)})[_0x2eace0(0x14f2)]('app.tools.customDashboards.edit',{'url':_0x2eace0(0x45b),'params':{'customDashboard':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1f373c,'controller':_0x2eace0(0xe72)}},'resolve':{'customDashboard':[_0x2eace0(0x107c),_0x2eace0(0x1fbb),function(_0x41b70c,_0x322d31){const _0xb348a6=_0x2eace0;return _0x41b70c[_0xb348a6(0x1268)](_0xb348a6(0xd4c),{'fields':_0xb348a6(0x15b8),'id':_0x322d31['id']});}],'userProfileSection':[_0x2eace0(0x107c),'Auth',function(_0x446487,_0x58ba01){const _0x42d42f=_0x2eace0;return _0x446487[_0x42d42f(0x1268)](_0x42d42f(0x2681),{'fields':_0x42d42f(0x527),'userProfileId':_0x58ba01[_0x42d42f(0x808)]()[_0x42d42f(0x21ac)],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':'tools'})[_0x2eace0(0x14f2)](_0x2eace0(0x1410),{'url':'/intervals','views':{'content@app':{'templateUrl':_0x3ff879,'controller':_0x2eace0(0x2392)}},'resolve':{'intervals':[_0x2eace0(0x107c),_0x2eace0(0xdcf),function(_0x11260b,_0x266689){const _0x49e42f=_0x2eace0;return _0x266689['hasRole'](_0x49e42f(0x333))?_0x11260b[_0x49e42f(0x1268)](_0x49e42f(0x329),{'fields':_0x49e42f(0x15b8),'sort':_0x49e42f(0x260c),'IntervalId':'null','limit':0xa,'offset':0x0}):_0x11260b[_0x49e42f(0x1268)](_0x49e42f(0x1758),{'id':_0x266689['getCurrentUser']()[_0x49e42f(0x21ac)],'section':_0x49e42f(0x2288),'fields':_0x49e42f(0x15b8),'sort':_0x49e42f(0x260c),'IntervalId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0x2eace0(0x107c),_0x2eace0(0xdcf),function(_0x2a47b3,_0x39ce44){const _0x1dc587=_0x2eace0;return _0x39ce44[_0x1dc587(0x4de)]('admin')?null:_0x2a47b3[_0x1dc587(0x1268)](_0x1dc587(0x6e3),{'fields':_0x1dc587(0x10d2),'id':_0x39ce44[_0x1dc587(0x808)]()['userProfileId']});}],'userProfileSection':[_0x2eace0(0x107c),_0x2eace0(0xdcf),function(_0x303715,_0xf7eab3){const _0x5611b2=_0x2eace0;return _0xf7eab3['hasRole']('admin')?null:_0x303715[_0x5611b2(0x1268)](_0x5611b2(0x2681),{'fields':_0x5611b2(0x527),'userProfileId':_0xf7eab3[_0x5611b2(0x808)]()['userProfileId'],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':_0x2eace0(0x10fe)})[_0x2eace0(0x14f2)](_0x2eace0(0x1b0d),{'url':_0x2eace0(0x45b),'params':{'interval':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xfe8c75,'controller':_0x2eace0(0x13cf)}},'resolve':{'interval':[_0x2eace0(0x107c),'$stateParams',function(_0x57844f,_0xdce862){const _0x30a5c6=_0x2eace0;return _0x57844f[_0x30a5c6(0x1268)]('interval@get',{'fields':_0x30a5c6(0x15b8),'id':_0xdce862['id']});}],'userProfileSection':['apiResolver',_0x2eace0(0xdcf),function(_0x305ca2,_0x53e8f5){const _0x557d72=_0x2eace0;return _0x305ca2[_0x557d72(0x1268)](_0x557d72(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x53e8f5['getCurrentUser']()['userProfileId'],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':_0x2eace0(0x10fe)})[_0x2eace0(0x14f2)](_0x2eace0(0x1003),{'url':_0x2eace0(0x1d16),'views':{'content@app':{'templateUrl':_0x1008c7,'controller':_0x2eace0(0xbc5)}},'resolve':{'pauses':['apiResolver',_0x2eace0(0xdcf),function(_0x2a6425,_0x2927c8){const _0x386b85=_0x2eace0;return _0x2927c8[_0x386b85(0x4de)]('admin')?_0x2a6425[_0x386b85(0x1268)](_0x386b85(0x1fae),{'fields':'createdAt,updatedAt,id,name,description','sort':_0x386b85(0x260c),'limit':0xa,'offset':0x0}):_0x2a6425[_0x386b85(0x1268)](_0x386b85(0x1758),{'id':_0x2927c8['getCurrentUser']()['userProfileId'],'section':_0x386b85(0x151b),'fields':_0x386b85(0x15b8),'sort':_0x386b85(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2eace0(0x107c),_0x2eace0(0xdcf),function(_0x31256d,_0x834f70){const _0x331d38=_0x2eace0;return _0x834f70[_0x331d38(0x4de)](_0x331d38(0x333))?null:_0x31256d[_0x331d38(0x1268)](_0x331d38(0x6e3),{'fields':_0x331d38(0x10d2),'id':_0x834f70['getCurrentUser']()[_0x331d38(0x21ac)]});}],'userProfileSection':['apiResolver',_0x2eace0(0xdcf),function(_0x77fca3,_0x2b97f3){const _0x57bf20=_0x2eace0;return _0x2b97f3['hasRole'](_0x57bf20(0x333))?null:_0x77fca3[_0x57bf20(0x1268)](_0x57bf20(0x2681),{'fields':_0x57bf20(0x527),'userProfileId':_0x2b97f3[_0x57bf20(0x808)]()[_0x57bf20(0x21ac)],'sectionId':0x3ed});}]},'authenticate':!![],'permissionId':0x3ed,'bodyClass':_0x2eace0(0x10fe)})['state']('app.tools.schedules',{'url':_0x2eace0(0x20db),'views':{'content@app':{'templateUrl':_0x27f0b6,'controller':'SchedulesController\x20as\x20vm'}},'resolve':{'schedules':[_0x2eace0(0x107c),'Auth',function(_0x1e2c2a,_0x58c678){const _0x53d064=_0x2eace0;return _0x58c678[_0x53d064(0x4de)](_0x53d064(0x333))?_0x1e2c2a[_0x53d064(0x1268)](_0x53d064(0x20b2),{'fields':'createdAt,updatedAt,id,name,CustomReportId,DefaultReportId,output,active,startAt,endAt,cron,subtractNumber,subtractUnit,sendMail,MailAccountId,email,cc,bcc,sendIfEmpty,description','sort':_0x53d064(0x260c),'limit':0xa,'offset':0x0}):_0x1e2c2a['resolve'](_0x53d064(0x1758),{'id':_0x58c678['getCurrentUser']()[_0x53d064(0x21ac)],'section':_0x53d064(0xb55),'fields':_0x53d064(0x1890),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x2eace0(0x107c),_0x2eace0(0xdcf),function(_0xe6c6d,_0x284560){const _0x2304de=_0x2eace0;return _0x284560[_0x2304de(0x4de)](_0x2304de(0x333))?null:_0xe6c6d[_0x2304de(0x1268)]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x284560[_0x2304de(0x808)]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x2eace0(0xdcf),function(_0x4ebd2a,_0x38fa87){const _0x1c9762=_0x2eace0;return _0x38fa87[_0x1c9762(0x4de)]('admin')?null:_0x4ebd2a['resolve']('userProfileSection@get',{'fields':_0x1c9762(0x527),'userProfileId':_0x38fa87[_0x1c9762(0x808)]()[_0x1c9762(0x21ac)],'sectionId':0x3ee});}]},'authenticate':!![],'permissionId':0x3ee,'bodyClass':_0x2eace0(0x10fe)})[_0x2eace0(0x14f2)](_0x2eace0(0x2375),{'url':_0x2eace0(0x2726),'views':{'content@app':{'templateUrl':_0x464aa7,'controller':_0x2eace0(0xd3f)}},'resolve':{'sounds':[_0x2eace0(0x107c),_0x2eace0(0xdcf),function(_0x4e4c97,_0x1093b3){const _0x483a69=_0x2eace0;return _0x1093b3[_0x483a69(0x4de)](_0x483a69(0x333))?_0x4e4c97[_0x483a69(0x1268)](_0x483a69(0xd10),{'fields':_0x483a69(0x1c9c),'sort':_0x483a69(0x260c),'limit':0xa,'offset':0x0}):_0x4e4c97[_0x483a69(0x1268)](_0x483a69(0x1758),{'id':_0x1093b3[_0x483a69(0x808)]()[_0x483a69(0x21ac)],'section':_0x483a69(0x28c3),'fields':_0x483a69(0x1c9c),'sort':_0x483a69(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2eace0(0x107c),_0x2eace0(0xdcf),function(_0x36c14f,_0x47dac8){const _0x28b0b9=_0x2eace0;return _0x47dac8[_0x28b0b9(0x4de)]('admin')?null:_0x36c14f[_0x28b0b9(0x1268)](_0x28b0b9(0x6e3),{'fields':'id,name,crudPermissions','id':_0x47dac8[_0x28b0b9(0x808)]()[_0x28b0b9(0x21ac)]});}],'userProfileSection':[_0x2eace0(0x107c),_0x2eace0(0xdcf),function(_0x178d3e,_0x182f4d){const _0x37b44e=_0x2eace0;return _0x182f4d[_0x37b44e(0x4de)](_0x37b44e(0x333))?null:_0x178d3e[_0x37b44e(0x1268)](_0x37b44e(0x2681),{'fields':_0x37b44e(0x527),'userProfileId':_0x182f4d[_0x37b44e(0x808)]()[_0x37b44e(0x21ac)],'sectionId':0x3ef});}]},'authenticate':!![],'permissionId':0x3ef,'bodyClass':_0x2eace0(0x10fe)})['state'](_0x2eace0(0x16dd),{'url':_0x2eace0(0x2234),'views':{'content@app':{'templateUrl':_0x57bf00,'controller':_0x2eace0(0x1e9a)}},'resolve':{'tags':[_0x2eace0(0x107c),_0x2eace0(0xdcf),function(_0x29ae8a,_0x8a54fa){const _0x5068dd=_0x2eace0;return _0x8a54fa[_0x5068dd(0x4de)](_0x5068dd(0x333))?_0x29ae8a[_0x5068dd(0x1268)]('tag@get',{'fields':'createdAt,updatedAt,id,name,description,color','sort':_0x5068dd(0x260c),'limit':0xa,'offset':0x0}):_0x29ae8a['resolve'](_0x5068dd(0x1758),{'id':_0x8a54fa[_0x5068dd(0x808)]()['userProfileId'],'section':_0x5068dd(0x1178),'fields':_0x5068dd(0x93e),'sort':_0x5068dd(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x4ea2cd,_0x1e9dfc){const _0x255c75=_0x2eace0;return _0x1e9dfc['hasRole'](_0x255c75(0x333))?null:_0x4ea2cd['resolve']('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x1e9dfc[_0x255c75(0x808)]()[_0x255c75(0x21ac)]});}],'userProfileSection':[_0x2eace0(0x107c),_0x2eace0(0xdcf),function(_0x1e41a3,_0x4403d2){const _0x1c28f8=_0x2eace0;return _0x4403d2[_0x1c28f8(0x4de)](_0x1c28f8(0x333))?null:_0x1e41a3[_0x1c28f8(0x1268)](_0x1c28f8(0x2681),{'fields':_0x1c28f8(0x527),'userProfileId':_0x4403d2[_0x1c28f8(0x808)]()[_0x1c28f8(0x21ac)],'sectionId':0x3f0});}]},'authenticate':!![],'permissionId':0x3f0,'bodyClass':_0x2eace0(0x10fe)})[_0x2eace0(0x14f2)](_0x2eace0(0x4eb),{'url':'/templates','views':{'content@app':{'templateUrl':_0x400f75,'controller':_0x2eace0(0x16c9)}},'resolve':{'templates':['apiResolver',_0x2eace0(0xdcf),function(_0x40f91c,_0x154e01){const _0x30f88e=_0x2eace0;return _0x154e01[_0x30f88e(0x4de)](_0x30f88e(0x333))?_0x40f91c[_0x30f88e(0x1268)](_0x30f88e(0x1af5),{'fields':_0x30f88e(0x1fd2),'sort':_0x30f88e(0x260c),'limit':0xa,'offset':0x0}):_0x40f91c[_0x30f88e(0x1268)](_0x30f88e(0x1758),{'id':_0x154e01[_0x30f88e(0x808)]()[_0x30f88e(0x21ac)],'section':'Templates','fields':_0x30f88e(0x1fd2),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x2eace0(0x107c),_0x2eace0(0xdcf),function(_0x570f87,_0x4053c3){const _0x26d243=_0x2eace0;return _0x4053c3[_0x26d243(0x4de)](_0x26d243(0x333))?null:_0x570f87[_0x26d243(0x1268)](_0x26d243(0x6e3),{'fields':_0x26d243(0x10d2),'id':_0x4053c3[_0x26d243(0x808)]()['userProfileId']});}],'userProfileSection':[_0x2eace0(0x107c),'Auth',function(_0x552ee0,_0x149822){const _0x240b07=_0x2eace0;return _0x149822[_0x240b07(0x4de)]('admin')?null:_0x552ee0['resolve'](_0x240b07(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x149822[_0x240b07(0x808)]()[_0x240b07(0x21ac)],'sectionId':0x3f1});}]},'authenticate':!![],'permissionId':0x3f1,'bodyClass':_0x2eace0(0x10fe)})['state']('app.tools.trunks',{'url':_0x2eace0(0xa5b),'views':{'content@app':{'templateUrl':_0x5dd4ae,'controller':_0x2eace0(0xe2e)}},'resolve':{'trunks':['apiResolver','Auth',function(_0x526d16,_0x2285c6){const _0x34f779=_0x2eace0;return _0x2285c6['hasRole'](_0x34f779(0x333))?_0x526d16[_0x34f779(0x1268)](_0x34f779(0x1727),{'fields':_0x34f779(0x1a17),'sort':_0x34f779(0x260c),'limit':0xa,'offset':0x0}):_0x526d16['resolve'](_0x34f779(0x1758),{'id':_0x2285c6[_0x34f779(0x808)]()[_0x34f779(0x21ac)],'section':'Trunks','fields':_0x34f779(0x1a17),'sort':_0x34f779(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x2eace0(0xdcf),function(_0xa644c5,_0x152dee){const _0x39e487=_0x2eace0;return _0x152dee['hasRole']('admin')?null:_0xa644c5[_0x39e487(0x1268)](_0x39e487(0x6e3),{'fields':_0x39e487(0x10d2),'id':_0x152dee['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x2eace0(0x107c),_0x2eace0(0xdcf),function(_0x1143c5,_0x3095bf){const _0x48cebf=_0x2eace0;return _0x3095bf[_0x48cebf(0x4de)](_0x48cebf(0x333))?null:_0x1143c5[_0x48cebf(0x1268)](_0x48cebf(0x2681),{'fields':_0x48cebf(0x527),'userProfileId':_0x3095bf[_0x48cebf(0x808)]()[_0x48cebf(0x21ac)],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':_0x2eace0(0x10fe)})[_0x2eace0(0x14f2)](_0x2eace0(0x1f7),{'url':'/:id?tab','params':{'trunk':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3b8d35,'controller':_0x2eace0(0x117a)}},'resolve':{'trunk':[_0x2eace0(0x107c),'$stateParams',function(_0x275b45,_0x5d519e){const _0x129c0d=_0x2eace0;return _0x275b45[_0x129c0d(0x1268)]('trunk@get',{'fields':'createdAt,updatedAt,id,name,active,host,secret,defaultuser,context,callerid,type,dtmfmode,nat,qualify,allow,insecure,call_limit,registry,description,directmedia,callcounter,fromdomain,fromuser,outboundproxy,usereqphone,trustrpid,sendrpid,encryption,port,transport,t38pt_udptl,videosupport,otherFields','id':_0x5d519e['id']});}],'userProfileSection':[_0x2eace0(0x107c),'Auth',function(_0x5a0e28,_0x561bcf){const _0x744282=_0x2eace0;return _0x5a0e28[_0x744282(0x1268)]('userProfileSection@get',{'fields':_0x744282(0x527),'userProfileId':_0x561bcf['getCurrentUser']()[_0x744282(0x21ac)],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':_0x2eace0(0x10fe)})[_0x2eace0(0x14f2)](_0x2eace0(0x1cac),{'url':_0x2eace0(0x57d),'views':{'content@app':{'templateUrl':_0x518f46,'controller':_0x2eace0(0x2798)}},'resolve':{'variables':[_0x2eace0(0x107c),_0x2eace0(0xdcf),function(_0x17a4d9,_0x3fa709){const _0xab3366=_0x2eace0;return _0x3fa709[_0xab3366(0x4de)](_0xab3366(0x333))?_0x17a4d9['resolve'](_0xab3366(0x1be8),{'fields':_0xab3366(0x15b8),'sort':_0xab3366(0x260c),'limit':0xa,'offset':0x0}):_0x17a4d9['resolve'](_0xab3366(0x1758),{'id':_0x3fa709['getCurrentUser']()[_0xab3366(0x21ac)],'section':_0xab3366(0x1ffe),'fields':'createdAt,updatedAt,id,name,description','sort':_0xab3366(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x2eace0(0xdcf),function(_0x3f2912,_0x49b22b){const _0xa0ba6e=_0x2eace0;return _0x49b22b[_0xa0ba6e(0x4de)](_0xa0ba6e(0x333))?null:_0x3f2912['resolve'](_0xa0ba6e(0x6e3),{'fields':_0xa0ba6e(0x10d2),'id':_0x49b22b[_0xa0ba6e(0x808)]()['userProfileId']});}],'userProfileSection':[_0x2eace0(0x107c),_0x2eace0(0xdcf),function(_0xee94e8,_0x5844f4){const _0x4474bf=_0x2eace0;return _0x5844f4[_0x4474bf(0x4de)](_0x4474bf(0x333))?null:_0xee94e8['resolve'](_0x4474bf(0x2681),{'fields':_0x4474bf(0x527),'userProfileId':_0x5844f4[_0x4474bf(0x808)]()[_0x4474bf(0x21ac)],'sectionId':0x3f4});}]},'authenticate':!![],'permissionId':0x3f4,'bodyClass':_0x2eace0(0x10fe)}),_0xc8d69d[_0x2eace0(0x1bde)](_0x2eace0(0x4d0));}angular['module'](_0x49a1e3(0x5a8),[_0x49a1e3(0x8d2),_0x49a1e3(0x3c7),_0x49a1e3(0x1fe3),_0x49a1e3(0x891),_0x49a1e3(0x2516),_0x49a1e3(0x1b6c),_0x49a1e3(0x1434),_0x49a1e3(0x1a87),_0x49a1e3(0x1610),_0x49a1e3(0xb19),_0x49a1e3(0x1a59),_0x49a1e3(0x11fd),_0x49a1e3(0x1cfe),'ngclipboard',_0x49a1e3(0x1b5f),'ngEmbed','angularMaterialFormBuilder',_0x49a1e3(0x1acd),'chart.js',_0x49a1e3(0x28dd),'app.tools.dispositions',_0x49a1e3(0x1b22)])[_0x49a1e3(0x3d3)](_0x223951)[_0x49a1e3(0x38e)](_0x49a1e3(0x1400),_0x533ac4)['controller']('CreateOrEditCannedAnswerDialogController',_0x28a4f4)[_0x49a1e3(0x38e)]('CreateOrEditCustomDashboardDialogController',_0x8d648c)[_0x49a1e3(0x38e)](_0x49a1e3(0x1c68),_0x14ac34)[_0x49a1e3(0x38e)](_0x49a1e3(0x141a),_0x3075f1)[_0x49a1e3(0x38e)](_0x49a1e3(0x2766),_0x5c20b5)[_0x49a1e3(0x38e)](_0x49a1e3(0x675),_0x3c1e23)['controller'](_0x49a1e3(0x1582),_0x3e01fb)[_0x49a1e3(0x38e)](_0x49a1e3(0x177f),_0x54a24f)['controller']('EditAppintervalDialogController',_0x13ebc6)['controller'](_0x49a1e3(0x10f2),_0x208b05)['controller'](_0x49a1e3(0x27d3),_0x5518d6)[_0x49a1e3(0x38e)](_0x49a1e3(0x1e1b),_0xd84d39)[_0x49a1e3(0x38e)](_0x49a1e3(0xf60),_0x5598a3)[_0x49a1e3(0x38e)](_0x49a1e3(0x69e),_0x44632d)[_0x49a1e3(0x38e)]('CreateOrEditScheduleDialogController',_0x30ca5a)[_0x49a1e3(0x38e)](_0x49a1e3(0x14ce),_0x158ec2)[_0x49a1e3(0x38e)]('CreateOrEditSoundDialogController',_0x58e3ea)[_0x49a1e3(0x38e)](_0x49a1e3(0x1619),_0x198273)[_0x49a1e3(0x38e)]('UploadSoundDialogController',_0x1facaa)['controller']('CreateOrEditTagDialogController',_0x21d68b)[_0x49a1e3(0x38e)](_0x49a1e3(0x26a6),_0x1fa4e2)[_0x49a1e3(0x38e)](_0x49a1e3(0x1afc),_0x2d99a9)[_0x49a1e3(0x38e)](_0x49a1e3(0x1715),_0xbb4b09)[_0x49a1e3(0x38e)](_0x49a1e3(0x1faf),_0x1679f1)[_0x49a1e3(0x38e)](_0x49a1e3(0x36d),_0x4502da)[_0x49a1e3(0x38e)]('TrunkController',_0x154b55)[_0x49a1e3(0x38e)](_0x49a1e3(0x105c),_0x58f660)[_0x49a1e3(0x38e)](_0x49a1e3(0x2837),_0xc333a7)['controller'](_0x49a1e3(0x2531),_0x7c8538);;const _0x2268ee=_0x2e4a48['p']+_0x49a1e3(0x2257);;const _0x1f5be7=_0x2e4a48['p']+_0x49a1e3(0x197f);;_0x57549f[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$window','$state','$q',_0x49a1e3(0xdcf),_0x49a1e3(0x680),'projects','project',_0x49a1e3(0xa19),'openFromEditor','crudPermissions'];function _0x57549f(_0x5b8efb,_0x4dceb8,_0x409872,_0x1bdb9a,_0x20c190,_0x36562a,_0x474a61,_0x3348ce,_0x557c2f,_0x2c685d,_0x1868c6){const _0x52106c=_0x49a1e3,_0x2fce06=this;_0x2fce06[_0x52106c(0xbae)]=[],_0x2fce06[_0x52106c(0x2021)]=_0x52106c(0x621),_0x2fce06['crudPermissions']=_0x1868c6,_0x2fce06[_0x52106c(0x1bd9)]=angular[_0x52106c(0x289e)](_0x3348ce),_0x2fce06[_0x52106c(0x28f8)]=!![],_0x2fce06['projects']=_0x474a61,_0x2fce06[_0x52106c(0x1ec2)]=![],_0x2fce06['openFromEditor']=_0x2c685d;!_0x2fce06[_0x52106c(0x1bd9)]&&(_0x2fce06[_0x52106c(0x1bd9)]={'name':'','description':''},_0x2fce06[_0x52106c(0x2021)]=_0x52106c(0x20c5),_0x2fce06[_0x52106c(0x1ec2)]=!![]);_0x2fce06['addNewProject']=_0x3681b9,_0x2fce06[_0x52106c(0x1635)]=_0x379172,_0x2fce06[_0x52106c(0x49c)]=_0x592c8a,_0x2fce06[_0x52106c(0x16cb)]=_0x4c6a52;function _0x3681b9(){const _0x27e4e3=_0x52106c;_0x2fce06['errors']=[],_0x557c2f[_0x27e4e3(0x2101)][_0x27e4e3(0x2479)](_0x2fce06[_0x27e4e3(0x1bd9)])[_0x27e4e3(0x15e7)]['then'](function(_0x223807){const _0x57a6b5=_0x27e4e3;return _0x557c2f[_0x57a6b5(0x2e8)][_0x57a6b5(0x19f1)]({'id':_0x20c190[_0x57a6b5(0x808)]()['id'],'ids':[_0x223807['id']]})['$promise'],_0x223807;})[_0x27e4e3(0x64a)](function(_0x5192f8){const _0x5cb183=_0x27e4e3;_0x2fce06[_0x5cb183(0x1d73)]['unshift'](_0x5192f8),_0x36562a['success']({'title':_0x5cb183(0xa20),'msg':_0x2fce06[_0x5cb183(0x1bd9)]['name']?_0x2fce06[_0x5cb183(0x1bd9)][_0x5cb183(0x2494)]+'\x20has\x20been\x20created!':''}),_0x4c6a52(_0x5192f8),_0x2fce06['openFromEditor']&&(_0x2fce06['newWindow']?_0x4dceb8[_0x5cb183(0x1463)]('/callysquare/projects/'+_0x5192f8['id'],_0x5cb183(0x235e)):_0x409872['go'](_0x5cb183(0x1cea),{'id':_0x5192f8['id']}));})[_0x27e4e3(0x20cd)](function(_0x110231){const _0x306f89=_0x27e4e3;if(_0x110231['data']&&_0x110231[_0x306f89(0x1c52)][_0x306f89(0xbae)]&&_0x110231[_0x306f89(0x1c52)][_0x306f89(0xbae)][_0x306f89(0x1b9e)]){_0x2fce06[_0x306f89(0xbae)]=_0x110231[_0x306f89(0x1c52)][_0x306f89(0xbae)]||[{'message':_0x110231['toString'](),'type':'api.squareProject.save'}];for(let _0x822c0a=0x0;_0x822c0a<_0x110231[_0x306f89(0x1c52)][_0x306f89(0xbae)][_0x306f89(0x1b9e)];_0x822c0a++){_0x36562a[_0x306f89(0x1bd0)]({'title':_0x110231['data'][_0x306f89(0xbae)][_0x822c0a]['type'],'msg':_0x110231[_0x306f89(0x1c52)]['errors'][_0x822c0a][_0x306f89(0x18ca)]});}}else _0x36562a['error']({'title':_0x110231[_0x306f89(0x10b3)]?_0x306f89(0x575)+_0x110231[_0x306f89(0x10b3)]+_0x306f89(0x21db)+_0x110231[_0x306f89(0x2115)]:'api.squareProject.save','msg':_0x110231[_0x306f89(0x1c52)]?JSON['stringify'](_0x110231['data'][_0x306f89(0x18ca)]):_0x110231[_0x306f89(0x2915)]()});});}function _0x379172(){const _0x124d6a=_0x52106c;_0x2fce06[_0x124d6a(0xbae)]=[],_0x557c2f[_0x124d6a(0x2101)][_0x124d6a(0x2603)]({'id':_0x2fce06[_0x124d6a(0x1bd9)]['id']},_0x2fce06[_0x124d6a(0x1bd9)])[_0x124d6a(0x15e7)][_0x124d6a(0x64a)](function(_0x24e743){const _0x2c8968=_0x124d6a,_0x40b7e5=_0x28c606()[_0x2c8968(0x27bc)](_0x2fce06[_0x2c8968(0x1d73)],{'id':_0x24e743['id']});_0x40b7e5&&_0x28c606()[_0x2c8968(0x14fe)](_0x40b7e5,_0x24e743),_0x36562a[_0x2c8968(0x1339)]({'title':_0x2c8968(0x1810),'msg':_0x2fce06['project'][_0x2c8968(0x2494)]?_0x2fce06[_0x2c8968(0x1bd9)][_0x2c8968(0x2494)]+_0x2c8968(0x271):''}),_0x4c6a52(_0x24e743);})[_0x124d6a(0x20cd)](function(_0x4c90c4){const _0x982ac2=_0x124d6a;if(_0x4c90c4['data']&&_0x4c90c4[_0x982ac2(0x1c52)]['errors']&&_0x4c90c4[_0x982ac2(0x1c52)][_0x982ac2(0xbae)][_0x982ac2(0x1b9e)]){_0x2fce06[_0x982ac2(0xbae)]=_0x4c90c4[_0x982ac2(0x1c52)][_0x982ac2(0xbae)]||[{'message':_0x4c90c4[_0x982ac2(0x2915)](),'type':_0x982ac2(0x1679)}];for(let _0x4e6c68=0x0;_0x4e6c68<_0x4c90c4[_0x982ac2(0x1c52)][_0x982ac2(0xbae)][_0x982ac2(0x1b9e)];_0x4e6c68++){_0x36562a['error']({'title':_0x4c90c4['data'][_0x982ac2(0xbae)][_0x4e6c68][_0x982ac2(0x2185)],'msg':_0x4c90c4[_0x982ac2(0x1c52)][_0x982ac2(0xbae)][_0x4e6c68][_0x982ac2(0x18ca)]});}}else _0x36562a['error']({'title':_0x4c90c4[_0x982ac2(0x10b3)]?_0x982ac2(0x575)+_0x4c90c4['status']+'\x20-\x20'+_0x4c90c4[_0x982ac2(0x2115)]:_0x982ac2(0x1679),'msg':_0x4c90c4['data']?JSON[_0x982ac2(0x2317)](_0x4c90c4['data']['message']):_0x4c90c4[_0x982ac2(0x2915)]()});});}function _0x592c8a(){const _0x3f5bb8=_0x52106c;_0x2fce06[_0x3f5bb8(0xbae)]=[];const _0x4b013c=_0x5b8efb[_0x3f5bb8(0x856)]()['title'](_0x3f5bb8(0x103a))[_0x3f5bb8(0x12b8)]('The\x20project\x20will\x20be\x20deleted.')['ariaLabel'](_0x3f5bb8(0x15b9))['ok'](_0x3f5bb8(0x2664))[_0x3f5bb8(0x101a)]('Cancel')['targetEvent'](event);_0x5b8efb[_0x3f5bb8(0xa60)](_0x4b013c)[_0x3f5bb8(0x64a)](function(){const _0x4f9012=_0x3f5bb8;_0x557c2f[_0x4f9012(0x2101)]['delete']({'id':_0x2fce06[_0x4f9012(0x1bd9)]['id']})[_0x4f9012(0x15e7)][_0x4f9012(0x64a)](function(){const _0x22774b=_0x4f9012;return _0x557c2f['squareProject']['getUsers']({'id':_0x2fce06[_0x22774b(0x1bd9)]['id']})[_0x22774b(0x15e7)];})[_0x4f9012(0x64a)](function(_0x244d1f){const _0x2a5c54=_0x4f9012,_0x5ba6f5=[],_0x27df99=_0x244d1f[_0x2a5c54(0x28b8)];for(let _0x57d398=0x0;_0x57d398<_0x27df99['length'];_0x57d398++){_0x5ba6f5[_0x2a5c54(0x1954)](_0x557c2f[_0x2a5c54(0x2e8)][_0x2a5c54(0x2635)]({'id':_0x20c190[_0x2a5c54(0x808)]()['id'],'ids':[_0x2fce06['project']['id']]})[_0x2a5c54(0x15e7)]);}return _0x1bdb9a['all'](_0x5ba6f5);})[_0x4f9012(0x64a)](function(){const _0x23a501=_0x4f9012;_0x28c606()['remove'](_0x2fce06[_0x23a501(0x1d73)],{'id':_0x2fce06[_0x23a501(0x1bd9)]['id']}),_0x36562a[_0x23a501(0x1339)]({'title':'Project\x20properly\x20deleted!','msg':_0x2fce06[_0x23a501(0x1bd9)][_0x23a501(0x2494)]?_0x2fce06[_0x23a501(0x1bd9)][_0x23a501(0x2494)]+_0x23a501(0x1fa8):''}),_0x4c6a52(_0x2fce06[_0x23a501(0x1bd9)]);})['catch'](function(_0x381c1f){const _0x3c237d=_0x4f9012;console['error'](_0x381c1f),_0x2fce06[_0x3c237d(0xbae)]=_0x381c1f['data'][_0x3c237d(0xbae)]||[{'message':_0x381c1f[_0x3c237d(0x2915)](),'type':_0x3c237d(0x4af)}];});},function(){});}function _0x4c6a52(_0x56d002){_0x5b8efb['hide'](_0x56d002);}}const _0x1ccf04=_0x57549f;;_0x3a0b51['$inject']=[_0x49a1e3(0x212a),_0x49a1e3(0xa19),'toasty','ispeechAsrModel',_0x49a1e3(0x25bf),_0x49a1e3(0x15f9),'ispeechTtsLanguage',_0x49a1e3(0xdb0),'googleTtsLanguage',_0x49a1e3(0xff5),_0x49a1e3(0xe23),_0x49a1e3(0x1c06),_0x49a1e3(0x16df),'variables',_0x49a1e3(0x1e59),_0x49a1e3(0x1d73),'contexts',_0x49a1e3(0x15e4),'mailAccounts','templates','lists',_0x49a1e3(0x1a2b),_0x49a1e3(0x1768),_0x49a1e3(0x133b),_0x49a1e3(0xd85),_0x49a1e3(0x205),'pauses',_0x49a1e3(0x2385),'dialogFlowV2Language',_0x49a1e3(0xa84),_0x49a1e3(0xdcf),'crudPermissions'];function _0x3a0b51(_0x358ca2,_0x38cc88,_0x14a6e6,_0x203d13,_0x119003,_0x3e2a61,_0x45e382,_0x1e658e,_0x292dc1,_0x119197,_0x1c534f,_0x26afd6,_0x50523b,_0x3e6312,_0x538dcd,_0xcbe32b,_0x459156,_0x26190e,_0x339eca,_0x237178,_0x1a3f47,_0x4611d3,_0x522d33,_0x1fb157,_0x305ba8,_0x4c9375,_0x24f8ce,_0x1f6803,_0xe74669,_0x140923,_0x4ffcd8,_0x2e4928){const _0x3d9b89=_0x49a1e3,_0x3773ea=this,_0x390fe5={'playback':[_0x3d9b89(0x2252)],'answer':[_0x3d9b89(0x16d)],'menu':[_0x3d9b89(0x2252),_0x3d9b89(0xbe7),_0x3d9b89(0x1187),_0x3d9b89(0xc42)],'getdigits':[_0x3d9b89(0x2252),_0x3d9b89(0x127),_0x3d9b89(0x217d),_0x3d9b89(0xe61),_0x3d9b89(0xc42)],'getsecretdigits':[_0x3d9b89(0x2252),_0x3d9b89(0x127),_0x3d9b89(0x217d),_0x3d9b89(0xe61),'hiddendigitsnum','retry'],'vswitch':[_0x3d9b89(0x127)],'database':[_0x3d9b89(0x1439),'query'],'ext_dial':['trunk_name',_0x3d9b89(0x267a),_0x3d9b89(0x16d)],'set':['variable_id'],'math':[_0x3d9b89(0x127)],'gotoc':[_0x3d9b89(0x139),'extension',_0x3d9b89(0x1095)],'system':[_0x3d9b89(0xf42)],'agi':['command'],'gotoif':[_0x3d9b89(0xeea)],'saydigits':[_0x3d9b89(0x129d)],'saynumber':[_0x3d9b89(0x2113)],'sayphonetic':['text'],'record':[_0x3d9b89(0x10b4),_0x3d9b89(0x16d)],'goal':[_0x3d9b89(0x146d)],'dial':[_0x3d9b89(0x191e),_0x3d9b89(0x16d)],'queue':[_0x3d9b89(0x5dd),_0x3d9b89(0x16d)],'callback':[_0x3d9b89(0x202c),_0x3d9b89(0x2494),_0x3d9b89(0x267a),_0x3d9b89(0xfbc)],'gotoiftime':[_0x3d9b89(0x17d5)],'voicemail':[_0x3d9b89(0x1efa)],'subproject':['project_id'],'sendSMS':[_0x3d9b89(0x20c1),'to',_0x3d9b89(0x1733)],'sendMail':[_0x3d9b89(0x2388),'to'],'sendFax':[_0x3d9b89(0x2388),'to',_0x3d9b89(0xb6a)],'google_cloud_tts':[_0x3d9b89(0x163d),_0x3d9b89(0x1fef),_0x3d9b89(0x39b)],'tts':['text'],'ispeechtts':[_0x3d9b89(0x39b),_0x3d9b89(0x2125),_0x3d9b89(0x1329)],'ispeechasr':['key',_0x3d9b89(0x16d)],'custom_app':['application'],'googleasr':[_0x3d9b89(0x2125),_0x3d9b89(0x16d)],'awspolly':[_0x3d9b89(0x1107),_0x3d9b89(0x2713),_0x3d9b89(0x39b),_0x3d9b89(0x391)],'lumenvoxtts':[_0x3d9b89(0x39b)],'sestektts':[_0x3d9b89(0x39b)],'lumenvoxasr':[_0x3d9b89(0x555)],'sestekasr':[_0x3d9b89(0x555)],'tildeasr':['appid',_0x3d9b89(0x78f),_0x3d9b89(0x2492)],'login':[_0x3d9b89(0xd94)],'pause':['findBy',_0x3d9b89(0x46d)],'unpause':[_0x3d9b89(0xd94)],'logout':[_0x3d9b89(0xd94)],'dialogflow':[_0x3d9b89(0x2125),_0x3d9b89(0x39b),_0x3d9b89(0xf27)],'awslex':[_0x3d9b89(0x1107),_0x3d9b89(0x2713),_0x3d9b89(0x2545),'aws_bot_name',_0x3d9b89(0x39b)],'sesteknda':[_0x3d9b89(0x39b),'ndauth_url',_0x3d9b89(0x10c1),_0x3d9b89(0x441),_0x3d9b89(0x22b2)],'restapi':['url',_0x3d9b89(0x150e)],'mrcpsynth':[_0x3d9b89(0x39b)],'mrcprecog':[_0x3d9b89(0x555)],'dialogflowV2':[_0x3d9b89(0x24c),'client_email','private_key',_0x3d9b89(0x10c5),'text']},_0x199e2={'queue':[_0x3d9b89(0x2252)],'database':[_0x3d9b89(0x127)],'pause':[_0x3d9b89(0x46d)]},_0x572130={'sendMail':['to','cc','bcc'],'voicemail':['mailbox']};_0x3773ea[_0x3d9b89(0x10a8)]=_0x4611d3[_0x3d9b89(0x21cc)],_0x3773ea[_0x3d9b89(0x1f56)]=_0x28c606()['map'](_0x4611d3[_0x3d9b89(0x1f56)],function(_0x389e68){const _0x43719b=_0x3d9b89;return{'name':_0x389e68[_0x43719b(0x2494)],'value':_0x389e68['value'],'defaultValue':_0x199e2[_0x3773ea[_0x43719b(0x10a8)]]&&_0x28c606()['includes'](_0x199e2[_0x3773ea['cellName']],_0x389e68[_0x43719b(0x2494)]),'required':_0x390fe5[_0x3773ea[_0x43719b(0x10a8)]]&&_0x28c606()[_0x43719b(0x68a)](_0x390fe5[_0x3773ea[_0x43719b(0x10a8)]],_0x389e68['name']),'help':_0x572130[_0x3773ea[_0x43719b(0x10a8)]]&&_0x28c606()[_0x43719b(0x68a)](_0x572130[_0x3773ea[_0x43719b(0x10a8)]],_0x389e68[_0x43719b(0x2494)])};}),_0x3773ea[_0x3d9b89(0x2146)]={'authMethod':[{'value':'noauth','option':_0x3d9b89(0x26ae)},{'value':'hmac','option':_0x3d9b89(0x1f42)}],'answer':[{'value':_0x3d9b89(0x1d21),'option':_0x3d9b89(0x307)},{'value':'no','option':'No'}],'ndagenerate_audio':[{'value':0x1,'option':_0x3d9b89(0x307)},{'value':0x0,'option':'No'}],'ndaactivity_type':[{'value':_0x3d9b89(0x18ca),'option':_0x3d9b89(0x149d)},{'value':_0x3d9b89(0xe42),'option':'Conversation\x20Update'},{'value':_0x3d9b89(0x2345),'option':_0x3d9b89(0x4d4)},{'value':_0x3d9b89(0x28b5),'option':_0x3d9b89(0x19cd)}],'hiddendigitspos':[{'value':_0x3d9b89(0x77b),'option':_0x3d9b89(0x8a6)},{'value':'last','option':'Last'}],'recordingFormat':[{'value':_0x3d9b89(0x74b),'option':_0x3d9b89(0x1ada)},{'value':_0x3d9b89(0x8e1),'option':_0x3d9b89(0x22b6)}],'intkey':[{'value':'#','option':'#'},{'value':'*','option':'*'}],'beep':[{'value':_0x3d9b89(0x1144),'option':_0x3d9b89(0x307)},{'value':_0x3d9b89(0x792),'option':'No'}],'model':_0x203d13,'ispeech_asr_language':_0x119003,'ispeech_tts_language':_0x45e382,'languageCode':_0x1e658e,'ssmlGender':[{'value':'FEMALE','option':'Female'},{'value':_0x3d9b89(0x804),'option':_0x3d9b89(0xbfc)}],'google_tts_language':_0x292dc1,'google_asr_language':_0x3e2a61,'google_cloud_tts_text_type':[{'value':_0x3d9b89(0x39b),'option':_0x3d9b89(0x1378)},{'value':_0x3d9b89(0x12b0),'option':_0x3d9b89(0x2012)}],'aws_polly_region':_0x305ba8,'aws_polly_voice':_0x1fb157,'aws_text_type':[{'value':_0x3d9b89(0x39b),'option':_0x3d9b89(0x1378)},{'value':_0x3d9b89(0x12b0),'option':_0x3d9b89(0x2012)}],'callback_priority':[{'option':_0x3d9b89(0x275f),'value':0x4},{'option':_0x3d9b89(0x297d),'value':0x3},{'option':_0x3d9b89(0x4d3),'value':0x2},{'option':'Low','value':0x1},{'option':'Lowest','value':0x0}],'findBy':[{'value':_0x3d9b89(0xe2f),'option':_0x3d9b89(0x7a5)},{'value':_0x3d9b89(0x267a),'option':_0x3d9b89(0x97a)},{'value':_0x3d9b89(0x26ed),'option':_0x3d9b89(0x1248)}],'dialogflow_language':_0x1f6803,'dialogflowV2_language':_0xe74669,'aws_lex_region':_0x140923,'method':[{'value':_0x3d9b89(0x985),'option':_0x3d9b89(0x985)},{'value':_0x3d9b89(0x22dd),'option':_0x3d9b89(0x22dd)},{'value':_0x3d9b89(0x124),'option':_0x3d9b89(0x124)},{'value':_0x3d9b89(0x245e),'option':_0x3d9b89(0x245e)}]},_0x3773ea[_0x3d9b89(0x402)]=_0x2e4928,_0x3773ea['onInit']=_0x46e34f,_0x3773ea[_0x3d9b89(0x16cb)]=_0x2075fc,_0x3773ea[_0x3d9b89(0x2036)]=_0x301e20;function _0x46e34f(){const _0x24696d=_0x3d9b89;_0x4ffcd8['hasRole'](_0x24696d(0x333))?_0x19dcf1():_0x15c4c2();}function _0x301e20(_0x5cfb6a,_0x463f7a,_0x312ea1,_0x5b5688){const _0x4c6485=_0x3d9b89;return _0x28c606()[_0x4c6485(0x1de5)](_0x5cfb6a,function(_0x4eec5b){const _0x2b6f94=_0x4c6485;return{'value':_0x4eec5b[_0x463f7a],'option':_0x4eec5b[_0x312ea1],'group':_0x5b5688?_0x4eec5b[_0x5b5688]:undefined,'canSelect':typeof _0x4eec5b[_0x2b6f94(0xd4f)]!==_0x2b6f94(0x19a1)?_0x4eec5b[_0x2b6f94(0xd4f)]:!![]};});}function _0x33e61a(_0x122db5,_0x88e420,_0x271ed6,_0x52519e){const _0x24b4c2=_0x3d9b89,_0x40ba8b=_0x28c606()[_0x24b4c2(0xcec)](_0x122db5,function(_0x39d3c0){return _0x39d3c0[_0x52519e]===null;}),_0x5f02f4=[];return _0x28c606()[_0x24b4c2(0x1397)](_0x40ba8b,function(_0x2999aa){const _0x8a0140=_0x24b4c2;_0x5f02f4[_0x8a0140(0x1954)]({'value':_0x2999aa[_0x88e420],'option':_0x2999aa[_0x271ed6]});const _0x49d529=_0x28c606()[_0x8a0140(0xcec)](_0x122db5,function(_0x43ac0f){return _0x43ac0f[_0x52519e]===_0x2999aa['id'];});_0x28c606()['forEach'](_0x49d529,function(_0x35f459){const _0x428da7=_0x8a0140;_0x5f02f4[_0x428da7(0x1954)]({'value':_0x35f459[_0x88e420],'option':_0x428da7(0x21db)+_0x35f459[_0x271ed6]});});}),_0x5f02f4;}function _0x19dcf1(){const _0x2d4523=_0x3d9b89,_0x5102db={'sip_id':_0x301e20(_0x119197,'id','fullname','role'),'trunk_name':_0x301e20(_0x1c534f,_0x2d4523(0x2494),_0x2d4523(0x2494)),'trunk_id':_0x301e20(_0x1c534f,'id',_0x2d4523(0x2494)),'queue_id':_0x301e20(_0x26afd6,'id','name'),'file_id':_0x301e20(_0x50523b,'id','name'),'variable_id':_0x301e20(_0x3e6312,'id','name'),'odbc_id':_0x301e20(_0x538dcd,'id','name'),'project_id':_0x301e20(_0xcbe32b,'id',_0x2d4523(0x2494)),'context':_0x301e20(_0x459156,'id',_0x2d4523(0x2494)),'interval_id':_0x33e61a(_0x26190e,'id',_0x2d4523(0x2494),_0x2d4523(0xb71)),'account_id':_0x301e20(_0x339eca,'id','name'),'template_id':_0x301e20(_0x237178,'id',_0x2d4523(0x2494)),'list_id':_0x301e20(_0x1a3f47,'id',_0x2d4523(0x2494)),'sms_account_id':_0x301e20(_0x4c9375,'id',_0x2d4523(0x2494)),'pause_id':_0x301e20(_0x24f8ce,'id',_0x2d4523(0x2494))},_0x28532b=_0x28c606()[_0x2d4523(0x14fe)](_0x3773ea[_0x2d4523(0x2146)],_0x5102db);_0x3773ea[_0x2d4523(0x2146)]=_0x28532b;}function _0x15c4c2(){const _0x28944b=_0x3d9b89,_0x496c32=[_0x28944b(0x191e),'trunk_name',_0x28944b(0x2264),'queue_id','file_id',_0x28944b(0x127),'odbc_id',_0x28944b(0x15b0),'context','interval_id',_0x28944b(0x2388),_0x28944b(0x1877),_0x28944b(0x202c),'sms_account_id',_0x28944b(0x46d)];for(let _0x335415=0x0;_0x335415<_0x3773ea[_0x28944b(0x1f56)][_0x28944b(0x1b9e)];_0x335415++){if(_0x28c606()[_0x28944b(0x68a)](_0x496c32,_0x3773ea[_0x28944b(0x1f56)][_0x335415][_0x28944b(0x2494)]))switch(_0x3773ea['attributes'][_0x335415][_0x28944b(0x2494)]){case _0x28944b(0x191e):_0x39b8cc();break;case _0x28944b(0x1709):_0x1fa1ff();break;case _0x28944b(0x2264):_0x11b0dd();break;case _0x28944b(0x5dd):_0x3b9dee();break;case _0x28944b(0x2252):_0x184323();break;case'variable_id':_0x275548();break;case _0x28944b(0x1439):_0x51c397();break;case _0x28944b(0x15b0):_0xf7b63c();break;case _0x28944b(0x139):_0x1c5a28();break;case _0x28944b(0x17d5):_0x2ddd8f();break;case _0x28944b(0x2388):_0x12dca7();break;case _0x28944b(0x1877):_0x4710df();break;case'list_id':_0x5cd1d3();break;case'sms_account_id':_0x127b9b();break;case'pause_id':_0x5423b9();break;}}}function _0x39b8cc(){const _0x4c0ea6=_0x3d9b89,_0x2ab2fe=Number(_0x28c606()[_0x4c0ea6(0x27bc)](_0x3773ea['attributes'],{'name':_0x4c0ea6(0x191e)})[_0x4c0ea6(0x1096)]),_0xdfdf01=_0x28c606()[_0x4c0ea6(0x25f8)](_0x119197,{'id':_0x2ab2fe});if(!_0xdfdf01&&_0x2ab2fe>0x0)return _0x38cc88[_0x4c0ea6(0x2e8)]['get']({'id':_0x2ab2fe,'fields':_0x4c0ea6(0xe86)})[_0x4c0ea6(0x15e7)][_0x4c0ea6(0x64a)](function(_0x23fbd0){const _0x268043=_0x4c0ea6,_0x74ff70=_0x23fbd0['toJSON']();_0x74ff70['canSelect']=![],_0x119197[_0x268043(0x1954)](_0x74ff70),_0x3773ea['values'][_0x268043(0x191e)]=_0x301e20(_0x119197,'id',_0x268043(0x15c),'role');})[_0x4c0ea6(0x20cd)](function(_0x4b1521){const _0x20877f=_0x4c0ea6;_0x14a6e6['error']({'title':_0x4b1521[_0x20877f(0x10b3)]?_0x20877f(0x575)+_0x4b1521['status']+'\x20-\x20'+_0x4b1521['statusText']:'GET_USER','msg':_0x4b1521['data']?JSON[_0x20877f(0x2317)](_0x4b1521[_0x20877f(0x1c52)][_0x20877f(0x18ca)]):_0x4b1521[_0x20877f(0x2915)]()});});else _0x3773ea[_0x4c0ea6(0x2146)][_0x4c0ea6(0x191e)]=_0x301e20(_0x119197,'id',_0x4c0ea6(0x15c),_0x4c0ea6(0x161a));}function _0x5cd1d3(){const _0x3a24b2=_0x3d9b89,_0x2312d2=Number(_0x28c606()['find'](_0x3773ea['attributes'],{'name':_0x3a24b2(0x202c)})[_0x3a24b2(0x1096)]),_0x505a9e=_0x28c606()[_0x3a24b2(0x25f8)](_0x1a3f47,{'id':_0x2312d2});if(!_0x505a9e&&_0x2312d2>0x0)return _0x38cc88[_0x3a24b2(0x19f8)][_0x3a24b2(0x896)]({'id':_0x2312d2,'fields':_0x3a24b2(0x1427)})[_0x3a24b2(0x15e7)][_0x3a24b2(0x64a)](function(_0xd63c05){const _0x10897d=_0x3a24b2,_0x3f3b0f=_0xd63c05[_0x10897d(0x14f8)]();_0x3f3b0f[_0x10897d(0xd4f)]=![],_0x1a3f47['push'](_0x3f3b0f),_0x3773ea[_0x10897d(0x2146)]['list_id']=_0x301e20(_0x1a3f47,'id',_0x10897d(0x2494));})[_0x3a24b2(0x20cd)](function(_0x50e3b3){const _0x3a7722=_0x3a24b2;_0x14a6e6['error']({'title':_0x50e3b3[_0x3a7722(0x10b3)]?_0x3a7722(0x575)+_0x50e3b3[_0x3a7722(0x10b3)]+_0x3a7722(0x21db)+_0x50e3b3['statusText']:_0x3a7722(0x293e),'msg':_0x50e3b3[_0x3a7722(0x1c52)]?JSON[_0x3a7722(0x2317)](_0x50e3b3[_0x3a7722(0x1c52)][_0x3a7722(0x18ca)]):_0x50e3b3[_0x3a7722(0x2915)]()});});else _0x3773ea['values'][_0x3a24b2(0x202c)]=_0x301e20(_0x1a3f47,'id',_0x3a24b2(0x2494));}function _0x11b0dd(){const _0x2bf45d=_0x3d9b89,_0x410bcc=Number(_0x28c606()[_0x2bf45d(0x27bc)](_0x3773ea[_0x2bf45d(0x1f56)],{'name':'trunk_id'})['value']),_0xa1b5fd=_0x28c606()[_0x2bf45d(0x25f8)](_0x1c534f,{'id':_0x410bcc});if(!_0xa1b5fd&&_0x410bcc>0x0)return _0x38cc88[_0x2bf45d(0x4ef)][_0x2bf45d(0x896)]({'id':_0x410bcc,'fields':_0x2bf45d(0x1427)})[_0x2bf45d(0x15e7)]['then'](function(_0x21def8){const _0x36de05=_0x2bf45d,_0x589eca=_0x21def8['toJSON']();_0x589eca[_0x36de05(0xd4f)]=![],_0x1c534f[_0x36de05(0x1954)](_0x589eca),_0x3773ea['values'][_0x36de05(0x2264)]=_0x301e20(_0x1c534f,'id','name');})[_0x2bf45d(0x20cd)](function(_0x4185c4){const _0x1c9a7c=_0x2bf45d;_0x14a6e6['error']({'title':_0x4185c4[_0x1c9a7c(0x10b3)]?_0x1c9a7c(0x575)+_0x4185c4[_0x1c9a7c(0x10b3)]+_0x1c9a7c(0x21db)+_0x4185c4[_0x1c9a7c(0x2115)]:'GET_TRUNK','msg':_0x4185c4['data']?JSON[_0x1c9a7c(0x2317)](_0x4185c4[_0x1c9a7c(0x1c52)][_0x1c9a7c(0x18ca)]):_0x4185c4['toString']()});});else _0x3773ea['values'][_0x2bf45d(0x2264)]=_0x301e20(_0x1c534f,'id',_0x2bf45d(0x2494));}function _0x1fa1ff(){const _0x29561a=_0x3d9b89,_0x452c2b=_0x28c606()[_0x29561a(0x27bc)](_0x3773ea[_0x29561a(0x1f56)],{'name':_0x29561a(0x1709)})[_0x29561a(0x1096)],_0x33b9db=_0x28c606()[_0x29561a(0x25f8)](_0x1c534f,{'name':_0x452c2b});if(!_0x33b9db&&_0x452c2b)return _0x38cc88[_0x29561a(0x4ef)]['get']({'name':_0x452c2b,'fields':_0x29561a(0x1427)})[_0x29561a(0x15e7)]['then'](function(_0x169b19){const _0x33c201=_0x29561a;if(_0x169b19[_0x33c201(0xb90)]>0x0&&_0x169b19[_0x33c201(0x28b8)]['length']>0x0){const _0x596884=_0x169b19[_0x33c201(0x28b8)][0x0];_0x596884[_0x33c201(0xd4f)]=![],_0x1c534f[_0x33c201(0x1954)](_0x596884),_0x3773ea[_0x33c201(0x2146)][_0x33c201(0x1709)]=_0x301e20(_0x1c534f,_0x33c201(0x2494),_0x33c201(0x2494));}})['catch'](function(_0x494318){const _0x13a0b8=_0x29561a;_0x14a6e6[_0x13a0b8(0x1bd0)]({'title':_0x494318[_0x13a0b8(0x10b3)]?'API:'+_0x494318[_0x13a0b8(0x10b3)]+_0x13a0b8(0x21db)+_0x494318[_0x13a0b8(0x2115)]:_0x13a0b8(0x769),'msg':_0x494318[_0x13a0b8(0x1c52)]?JSON['stringify'](_0x494318[_0x13a0b8(0x1c52)][_0x13a0b8(0x18ca)]):_0x494318[_0x13a0b8(0x2915)]()});});else _0x3773ea['values'][_0x29561a(0x1709)]=_0x301e20(_0x1c534f,_0x29561a(0x2494),_0x29561a(0x2494));}function _0x3b9dee(){const _0x443ac9=_0x3d9b89,_0x5a31bb=Number(_0x28c606()[_0x443ac9(0x27bc)](_0x3773ea[_0x443ac9(0x1f56)],{'name':_0x443ac9(0x5dd)})[_0x443ac9(0x1096)]),_0x48822f=_0x28c606()[_0x443ac9(0x25f8)](_0x26afd6,{'id':_0x5a31bb});if(!_0x48822f&&_0x5a31bb>0x0)return _0x38cc88['voiceQueue'][_0x443ac9(0x896)]({'id':_0x5a31bb,'fields':_0x443ac9(0x1427)})[_0x443ac9(0x15e7)][_0x443ac9(0x64a)](function(_0x32db4b){const _0x45b60e=_0x443ac9,_0x11f2c1=_0x32db4b[_0x45b60e(0x14f8)]();_0x11f2c1['canSelect']=![],_0x26afd6[_0x45b60e(0x1954)](_0x11f2c1),_0x3773ea[_0x45b60e(0x2146)][_0x45b60e(0x5dd)]=_0x301e20(_0x26afd6,'id',_0x45b60e(0x2494));})[_0x443ac9(0x20cd)](function(_0x3a30af){const _0x4adb06=_0x443ac9;_0x14a6e6['error']({'title':_0x3a30af['status']?'API:'+_0x3a30af[_0x4adb06(0x10b3)]+_0x4adb06(0x21db)+_0x3a30af[_0x4adb06(0x2115)]:_0x4adb06(0xd91),'msg':_0x3a30af[_0x4adb06(0x1c52)]?JSON['stringify'](_0x3a30af[_0x4adb06(0x1c52)]['message']):_0x3a30af[_0x4adb06(0x2915)]()});});else _0x3773ea[_0x443ac9(0x2146)][_0x443ac9(0x5dd)]=_0x301e20(_0x26afd6,'id',_0x443ac9(0x2494));}function _0x184323(){const _0x28207d=_0x3d9b89,_0x27c6a7=Number(_0x28c606()[_0x28207d(0x27bc)](_0x3773ea[_0x28207d(0x1f56)],{'name':_0x28207d(0x2252)})[_0x28207d(0x1096)]),_0x2bac9b=_0x28c606()[_0x28207d(0x25f8)](_0x50523b,{'id':_0x27c6a7});if(!_0x2bac9b&&_0x27c6a7>0x0)return _0x38cc88[_0x28207d(0x282b)][_0x28207d(0x896)]({'id':_0x27c6a7,'fields':_0x28207d(0x1427)})[_0x28207d(0x15e7)][_0x28207d(0x64a)](function(_0x114a28){const _0x5d2f24=_0x28207d,_0xa5234f=_0x114a28[_0x5d2f24(0x14f8)]();_0xa5234f[_0x5d2f24(0xd4f)]=![],_0x50523b[_0x5d2f24(0x1954)](_0xa5234f),_0x3773ea[_0x5d2f24(0x2146)][_0x5d2f24(0x2252)]=_0x301e20(_0x50523b,'id',_0x5d2f24(0x2494));})[_0x28207d(0x20cd)](function(_0x3cba91){const _0x22a4f5=_0x28207d;_0x14a6e6['error']({'title':_0x3cba91['status']?'API:'+_0x3cba91[_0x22a4f5(0x10b3)]+_0x22a4f5(0x21db)+_0x3cba91[_0x22a4f5(0x2115)]:_0x22a4f5(0x2106),'msg':_0x3cba91['data']?JSON[_0x22a4f5(0x2317)](_0x3cba91['data'][_0x22a4f5(0x18ca)]):_0x3cba91[_0x22a4f5(0x2915)]()});});else _0x3773ea[_0x28207d(0x2146)]['file_id']=_0x301e20(_0x50523b,'id','name');}function _0x275548(){const _0x493979=_0x3d9b89,_0x5a3756=Number(_0x28c606()['find'](_0x3773ea[_0x493979(0x1f56)],{'name':_0x493979(0x127)})[_0x493979(0x1096)]),_0x3b863a=_0x28c606()[_0x493979(0x25f8)](_0x3e6312,{'id':_0x5a3756});if(!_0x3b863a&&_0x5a3756>0x0)return _0x38cc88[_0x493979(0xefb)][_0x493979(0x896)]({'id':_0x5a3756,'fields':_0x493979(0x1427)})[_0x493979(0x15e7)]['then'](function(_0x41e4d2){const _0x29b0e4=_0x493979,_0x14422c=_0x41e4d2['toJSON']();_0x14422c['canSelect']=![],_0x3e6312[_0x29b0e4(0x1954)](_0x14422c),_0x3773ea[_0x29b0e4(0x2146)][_0x29b0e4(0x127)]=_0x301e20(_0x3e6312,'id','name');})[_0x493979(0x20cd)](function(_0xc3d144){const _0x431d75=_0x493979;_0x14a6e6['error']({'title':_0xc3d144[_0x431d75(0x10b3)]?'API:'+_0xc3d144[_0x431d75(0x10b3)]+_0x431d75(0x21db)+_0xc3d144[_0x431d75(0x2115)]:_0x431d75(0x18a3),'msg':_0xc3d144['data']?JSON[_0x431d75(0x2317)](_0xc3d144[_0x431d75(0x1c52)][_0x431d75(0x18ca)]):_0xc3d144[_0x431d75(0x2915)]()});});else _0x3773ea['values']['variable_id']=_0x301e20(_0x3e6312,'id',_0x493979(0x2494));}function _0x51c397(){const _0x44afc9=_0x3d9b89,_0xcd21f7=Number(_0x28c606()['find'](_0x3773ea[_0x44afc9(0x1f56)],{'name':_0x44afc9(0x1439)})['value']),_0x479213=_0x28c606()[_0x44afc9(0x25f8)](_0x538dcd,{'id':_0xcd21f7});if(!_0x479213&&_0xcd21f7>0x0)return _0x38cc88['squareOdbc'][_0x44afc9(0x896)]({'id':_0xcd21f7,'fields':_0x44afc9(0x1427)})['$promise'][_0x44afc9(0x64a)](function(_0x4551fa){const _0x3303a1=_0x44afc9,_0x5a1b70=_0x4551fa[_0x3303a1(0x14f8)]();_0x5a1b70[_0x3303a1(0xd4f)]=![],_0x538dcd[_0x3303a1(0x1954)](_0x5a1b70),_0x3773ea[_0x3303a1(0x2146)][_0x3303a1(0x1439)]=_0x301e20(_0x538dcd,'id',_0x3303a1(0x2494));})[_0x44afc9(0x20cd)](function(_0x151c76){const _0x5e2e90=_0x44afc9;_0x14a6e6[_0x5e2e90(0x1bd0)]({'title':_0x151c76[_0x5e2e90(0x10b3)]?'API:'+_0x151c76['status']+_0x5e2e90(0x21db)+_0x151c76[_0x5e2e90(0x2115)]:_0x5e2e90(0x18b3),'msg':_0x151c76[_0x5e2e90(0x1c52)]?JSON['stringify'](_0x151c76[_0x5e2e90(0x1c52)][_0x5e2e90(0x18ca)]):_0x151c76['toString']()});});else _0x3773ea[_0x44afc9(0x2146)][_0x44afc9(0x1439)]=_0x301e20(_0x538dcd,'id',_0x44afc9(0x2494));}function _0xf7b63c(){const _0x6e4453=_0x3d9b89,_0x20ff91=Number(_0x28c606()['find'](_0x3773ea[_0x6e4453(0x1f56)],{'name':'project_id'})[_0x6e4453(0x1096)]),_0x3c1361=_0x28c606()[_0x6e4453(0x25f8)](_0xcbe32b,{'id':_0x20ff91});if(!_0x3c1361&&_0x20ff91>0x0)return _0x38cc88[_0x6e4453(0x2101)][_0x6e4453(0x896)]({'id':_0x20ff91,'fields':'id,name'})[_0x6e4453(0x15e7)]['then'](function(_0x122aa5){const _0xde6741=_0x6e4453,_0x122951=_0x122aa5[_0xde6741(0x14f8)]();_0x122951['canSelect']=![],_0xcbe32b['push'](_0x122951),_0x3773ea[_0xde6741(0x2146)][_0xde6741(0x15b0)]=_0x301e20(_0xcbe32b,'id',_0xde6741(0x2494));})[_0x6e4453(0x20cd)](function(_0x1ac743){const _0x1d994b=_0x6e4453;_0x14a6e6['error']({'title':_0x1ac743[_0x1d994b(0x10b3)]?_0x1d994b(0x575)+_0x1ac743['status']+_0x1d994b(0x21db)+_0x1ac743[_0x1d994b(0x2115)]:'GET_PROJECT','msg':_0x1ac743[_0x1d994b(0x1c52)]?JSON['stringify'](_0x1ac743['data'][_0x1d994b(0x18ca)]):_0x1ac743[_0x1d994b(0x2915)]()});});else _0x3773ea['values']['project_id']=_0x301e20(_0xcbe32b,'id',_0x6e4453(0x2494));}function _0x1c5a28(){const _0x3868e5=_0x3d9b89,_0x4c953a=Number(_0x28c606()[_0x3868e5(0x27bc)](_0x3773ea[_0x3868e5(0x1f56)],{'name':_0x3868e5(0x139)})[_0x3868e5(0x1096)]),_0x3d6133=_0x28c606()['some'](_0x459156,{'id':_0x4c953a});if(!_0x3d6133&&_0x4c953a>0x0)return _0x38cc88[_0x3868e5(0x1faa)][_0x3868e5(0x896)]({'id':_0x4c953a,'fields':_0x3868e5(0x1427)})[_0x3868e5(0x15e7)][_0x3868e5(0x64a)](function(_0x77701b){const _0x40ab86=_0x3868e5,_0x12c49d=_0x77701b['toJSON']();_0x12c49d[_0x40ab86(0xd4f)]=![],_0x459156[_0x40ab86(0x1954)](_0x12c49d),_0x3773ea['values'][_0x40ab86(0x139)]=_0x301e20(_0x459156,'id',_0x40ab86(0x2494));})[_0x3868e5(0x20cd)](function(_0x13a4a3){const _0x682ce3=_0x3868e5;_0x14a6e6[_0x682ce3(0x1bd0)]({'title':_0x13a4a3[_0x682ce3(0x10b3)]?'API:'+_0x13a4a3[_0x682ce3(0x10b3)]+_0x682ce3(0x21db)+_0x13a4a3[_0x682ce3(0x2115)]:_0x682ce3(0x217b),'msg':_0x13a4a3[_0x682ce3(0x1c52)]?JSON[_0x682ce3(0x2317)](_0x13a4a3['data'][_0x682ce3(0x18ca)]):_0x13a4a3['toString']()});});else _0x3773ea[_0x3868e5(0x2146)][_0x3868e5(0x139)]=_0x301e20(_0x459156,'id',_0x3868e5(0x2494));}function _0x2ddd8f(){const _0x3b4765=_0x3d9b89,_0x4165ef=Number(_0x28c606()[_0x3b4765(0x27bc)](_0x3773ea[_0x3b4765(0x1f56)],{'name':_0x3b4765(0x17d5)})[_0x3b4765(0x1096)]),_0x2251e4=_0x28c606()['some'](_0x26190e,{'id':_0x4165ef});if(!_0x2251e4&&_0x4165ef>0x0)return _0x38cc88[_0x3b4765(0xcfd)][_0x3b4765(0x896)]({'id':_0x4165ef,'fields':_0x3b4765(0x2471)})[_0x3b4765(0x15e7)][_0x3b4765(0x64a)](function(_0x28909e){const _0x483b99=_0x3b4765,_0x39885b=_0x28909e['toJSON']();_0x39885b[_0x483b99(0xd4f)]=![],_0x26190e[_0x483b99(0x1954)](_0x39885b),_0x3773ea[_0x483b99(0x2146)][_0x483b99(0x17d5)]=_0x301e20(_0x26190e,'id',_0x483b99(0x2494),_0x483b99(0xb71));})[_0x3b4765(0x20cd)](function(_0x493101){const _0x51240f=_0x3b4765;_0x14a6e6[_0x51240f(0x1bd0)]({'title':_0x493101[_0x51240f(0x10b3)]?_0x51240f(0x575)+_0x493101[_0x51240f(0x10b3)]+_0x51240f(0x21db)+_0x493101['statusText']:'GET_INTERVAL','msg':_0x493101[_0x51240f(0x1c52)]?JSON[_0x51240f(0x2317)](_0x493101['data'][_0x51240f(0x18ca)]):_0x493101[_0x51240f(0x2915)]()});});else _0x3773ea['values']['interval_id']=_0x301e20(_0x26190e,'id',_0x3b4765(0x2494),'IntervalId');}function _0x12dca7(){const _0x543629=_0x3d9b89,_0x139388=Number(_0x28c606()[_0x543629(0x27bc)](_0x3773ea[_0x543629(0x1f56)],{'name':'account_id'})[_0x543629(0x1096)]),_0x108412=_0x28c606()[_0x543629(0x25f8)](_0x339eca,{'id':_0x139388});if(!_0x108412&&_0x139388>0x0)return _0x38cc88[_0x543629(0x1b1e)][_0x543629(0x896)]({'id':_0x139388,'fields':_0x543629(0x1427)})[_0x543629(0x15e7)][_0x543629(0x64a)](function(_0x2f6b40){const _0x1487a0=_0x543629,_0xce4c67=_0x2f6b40[_0x1487a0(0x14f8)]();_0xce4c67[_0x1487a0(0xd4f)]=![],_0x339eca['push'](_0xce4c67),_0x3773ea['values'][_0x1487a0(0x2388)]=_0x301e20(_0x339eca,'id','name');})['catch'](function(_0x5aad61){const _0x304c79=_0x543629;_0x14a6e6[_0x304c79(0x1bd0)]({'title':_0x5aad61[_0x304c79(0x10b3)]?_0x304c79(0x575)+_0x5aad61[_0x304c79(0x10b3)]+_0x304c79(0x21db)+_0x5aad61[_0x304c79(0x2115)]:'GET_MAIL_ACCOUNT','msg':_0x5aad61['data']?JSON[_0x304c79(0x2317)](_0x5aad61[_0x304c79(0x1c52)][_0x304c79(0x18ca)]):_0x5aad61[_0x304c79(0x2915)]()});});else _0x3773ea[_0x543629(0x2146)]['account_id']=_0x301e20(_0x339eca,'id','name');}function _0x127b9b(){const _0x186b64=_0x3d9b89,_0x5a1a29=Number(_0x28c606()[_0x186b64(0x27bc)](_0x3773ea['attributes'],{'name':'sms_account_id'})[_0x186b64(0x1096)]),_0x45586a=_0x28c606()['some'](_0x4c9375,{'id':_0x5a1a29});if(!_0x45586a&&_0x5a1a29>0x0)return _0x38cc88['smsAccount']['get']({'id':_0x5a1a29,'fields':_0x186b64(0x1427)})[_0x186b64(0x15e7)][_0x186b64(0x64a)](function(_0xe38445){const _0x20c0d9=_0x186b64,_0x5f03d1=_0xe38445['toJSON']();_0x5f03d1[_0x20c0d9(0xd4f)]=![],_0x4c9375['push'](_0x5f03d1),_0x3773ea['values'][_0x20c0d9(0x20c1)]=_0x301e20(_0x4c9375,'id',_0x20c0d9(0x2494));})[_0x186b64(0x20cd)](function(_0x3ff948){const _0x51159a=_0x186b64;_0x14a6e6[_0x51159a(0x1bd0)]({'title':_0x3ff948[_0x51159a(0x10b3)]?_0x51159a(0x575)+_0x3ff948['status']+_0x51159a(0x21db)+_0x3ff948['statusText']:_0x51159a(0x12f2),'msg':_0x3ff948['data']?JSON[_0x51159a(0x2317)](_0x3ff948[_0x51159a(0x1c52)]['message']):_0x3ff948[_0x51159a(0x2915)]()});});else _0x3773ea[_0x186b64(0x2146)]['sms_account_id']=_0x301e20(_0x4c9375,'id',_0x186b64(0x2494));}function _0x4710df(){const _0x26ab2d=_0x3d9b89,_0x4cad34=Number(_0x28c606()[_0x26ab2d(0x27bc)](_0x3773ea[_0x26ab2d(0x1f56)],{'name':_0x26ab2d(0x1877)})[_0x26ab2d(0x1096)]),_0x5bae2a=_0x28c606()[_0x26ab2d(0x25f8)](_0x237178,{'id':_0x4cad34});if(!_0x5bae2a&&_0x4cad34>0x0)return _0x38cc88['template'][_0x26ab2d(0x896)]({'id':_0x4cad34,'fields':_0x26ab2d(0x1427)})[_0x26ab2d(0x15e7)][_0x26ab2d(0x64a)](function(_0xb9dcb1){const _0x112c94=_0x26ab2d,_0x4cf595=_0xb9dcb1['toJSON']();_0x4cf595[_0x112c94(0xd4f)]=![],_0x237178[_0x112c94(0x1954)](_0x4cf595),_0x3773ea[_0x112c94(0x2146)][_0x112c94(0x1877)]=_0x301e20(_0x237178,'id',_0x112c94(0x2494));})[_0x26ab2d(0x20cd)](function(_0x569d25){const _0x2aa3b8=_0x26ab2d;_0x14a6e6[_0x2aa3b8(0x1bd0)]({'title':_0x569d25[_0x2aa3b8(0x10b3)]?_0x2aa3b8(0x575)+_0x569d25[_0x2aa3b8(0x10b3)]+_0x2aa3b8(0x21db)+_0x569d25[_0x2aa3b8(0x2115)]:_0x2aa3b8(0x2751),'msg':_0x569d25[_0x2aa3b8(0x1c52)]?JSON[_0x2aa3b8(0x2317)](_0x569d25['data'][_0x2aa3b8(0x18ca)]):_0x569d25['toString']()});});else _0x3773ea[_0x26ab2d(0x2146)]['template_id']=_0x301e20(_0x237178,'id','name');}function _0x5423b9(){const _0x380059=_0x3d9b89,_0x4d2b97=Number(_0x28c606()[_0x380059(0x27bc)](_0x3773ea[_0x380059(0x1f56)],{'name':'pause_id'})[_0x380059(0x1096)]),_0x15a672=_0x28c606()['some'](_0x24f8ce,{'id':_0x4d2b97});if(!_0x15a672&&_0x4d2b97>0x0)return _0x38cc88['pause'][_0x380059(0x896)]({'id':_0x4d2b97,'fields':_0x380059(0x1427)})[_0x380059(0x15e7)]['then'](function(_0x5cf36e){const _0x3d41d3=_0x380059,_0xbfe8d5=_0x5cf36e[_0x3d41d3(0x14f8)]();_0xbfe8d5[_0x3d41d3(0xd4f)]=![],_0x24f8ce[_0x3d41d3(0x1954)](_0xbfe8d5),_0x3773ea['values']['pause_id']=_0x301e20(_0x24f8ce,'id',_0x3d41d3(0x2494));})[_0x380059(0x20cd)](function(_0x1ebe33){const _0x5a6775=_0x380059;_0x14a6e6['error']({'title':_0x1ebe33['status']?_0x5a6775(0x575)+_0x1ebe33['status']+'\x20-\x20'+_0x1ebe33[_0x5a6775(0x2115)]:'GET_PAUSE','msg':_0x1ebe33['data']?JSON[_0x5a6775(0x2317)](_0x1ebe33['data']['message']):_0x1ebe33[_0x5a6775(0x2915)]()});});else _0x3773ea[_0x380059(0x2146)][_0x380059(0x46d)]=_0x301e20(_0x24f8ce,'id','name');}function _0x2075fc(_0x40b4f1){const _0x326792=_0x3d9b89;_0x40b4f1&&_0x522d33(_0x3773ea[_0x326792(0x1f56)]),_0x358ca2[_0x326792(0x268e)]();}}const _0x5e9907=_0x3a0b51;;function _0x4a6ddb(){const _0xd6d771=_0x49a1e3;return{'require':_0xd6d771(0x24eb),'link':function(_0x1e37fc,_0x346d12,_0x75b607,_0x47ff67){const _0x13736a=_0xd6d771;_0x47ff67[_0x13736a(0x2683)][_0x13736a(0x1954)](function(_0x1a082c){return''+_0x1a082c;}),_0x47ff67['$formatters']['push'](function(_0x186c40){return parseFloat(_0x186c40);});}};}const _0x2b665d=_0x4a6ddb;;function _0x16c205(){const _0x2af14d=_0x49a1e3;return[{'value':'da','option':_0x2af14d(0x5f1)},{'value':'en','option':_0x2af14d(0x1230)},{'value':'de','option':_0x2af14d(0x10a4)},{'value':'it','option':_0x2af14d(0x28bf)},{'value':'es','option':_0x2af14d(0x656)},{'value':'fr','option':_0x2af14d(0x976)},{'value':'id','option':_0x2af14d(0x2079)},{'value':'ja','option':_0x2af14d(0xf5c)},{'value':'ko','option':_0x2af14d(0x209d)},{'value':'nl','option':_0x2af14d(0x183)},{'value':'no','option':_0x2af14d(0x22d3)},{'value':'pt','option':_0x2af14d(0x1190)},{'value':_0x2af14d(0x34a),'option':'Portuguese\x20(Nrazilian)'},{'value':'ru','option':_0x2af14d(0x21f6)},{'value':'sv','option':_0x2af14d(0xa2d)},{'value':'th','option':_0x2af14d(0x17e8)},{'value':'uk','option':_0x2af14d(0xd44)},{'value':'zh-CN','option':'Chinese\x20(Simplified)'},{'value':_0x2af14d(0x163f),'option':_0x2af14d(0x14aa)},{'value':_0x2af14d(0x147b),'option':'Chinese\x20(Traditional)'}];}function _0x815bba(){const _0x20d36d=_0x49a1e3;return[{'value':'zh-HK','option':'Chinese\x20(Cantonese)'},{'value':_0x20d36d(0x926),'option':_0x20d36d(0x133e)},{'value':_0x20d36d(0x147b),'option':'Chinese\x20(Traditional)'},{'value':'da','option':_0x20d36d(0x5f1)},{'value':'nl','option':_0x20d36d(0x183)},{'value':'en','option':'English'},{'value':_0x20d36d(0x16ae),'option':_0x20d36d(0x1c1f)},{'value':'en-CA','option':_0x20d36d(0x24bc)},{'value':_0x20d36d(0x1298),'option':_0x20d36d(0x201c)},{'value':_0x20d36d(0xe41),'option':_0x20d36d(0x2196)},{'value':_0x20d36d(0x11e3),'option':_0x20d36d(0x1a41)},{'value':'fr','option':_0x20d36d(0x976)},{'value':_0x20d36d(0x1d8c),'option':'French\x20(Canada)'},{'value':'fr-FR','option':_0x20d36d(0x382)},{'value':'de','option':_0x20d36d(0x10a4)},{'value':'hi','option':_0x20d36d(0xb30)},{'value':'id','option':_0x20d36d(0x2079)},{'value':'it','option':_0x20d36d(0x28bf)},{'value':'ja','option':_0x20d36d(0xf5c)},{'value':'ko','option':'Korean'},{'value':'no','option':_0x20d36d(0x22d3)},{'value':'pl','option':_0x20d36d(0x17c4)},{'value':_0x20d36d(0x2857),'option':_0x20d36d(0xb9e)},{'value':_0x20d36d(0x1254),'option':'Portuguese\x20(Portugal)'},{'value':'ru','option':_0x20d36d(0x21f6)},{'value':'es','option':_0x20d36d(0x656)},{'value':_0x20d36d(0x13ff),'option':_0x20d36d(0x523)},{'value':_0x20d36d(0xc9d),'option':_0x20d36d(0xd7e)},{'value':'sw','option':_0x20d36d(0xa2d)},{'value':'th','option':_0x20d36d(0x17e8)},{'value':'tr','option':'Turkish'},{'value':'uk','option':_0x20d36d(0xd44)}];}function _0x1d0273(){const _0x305fad=_0x49a1e3;return[{'value':_0x305fad(0x3b9),'option':_0x305fad(0x2862)},{'value':_0x305fad(0xa72),'option':_0x305fad(0x12da)},{'value':'da-DK','option':_0x305fad(0x1148)},{'value':'de-DE','option':_0x305fad(0x12b6)},{'value':_0x305fad(0x25a8),'option':_0x305fad(0x16cf)},{'value':'en-AU','option':_0x305fad(0x1b29)},{'value':'en-IN','option':_0x305fad(0x2196)},{'value':_0x305fad(0x1298),'option':_0x305fad(0x851)},{'value':_0x305fad(0x11e3),'option':'English\x20(US)'},{'value':_0x305fad(0x897),'option':_0x305fad(0x128d)},{'value':'fil-PH','option':'Filipino\x20(Philippines)'},{'value':_0x305fad(0x1d8c),'option':'French\x20(Canada)'},{'value':_0x305fad(0x2742),'option':_0x305fad(0x248b)},{'value':_0x305fad(0x1b6f),'option':_0x305fad(0x28de)},{'value':'hu-HU','option':'Hungarian\x20(Hungary)'},{'value':_0x305fad(0x3b4),'option':_0x305fad(0x1f1b)},{'value':'it-IT','option':'Italian\x20(Italy)'},{'value':'ja-JP','option':_0x305fad(0x115f)},{'value':_0x305fad(0xa85),'option':_0x305fad(0x209d)},{'value':_0x305fad(0xa02),'option':'Mandarin\x20Chinese'},{'value':_0x305fad(0x1c7f),'option':_0x305fad(0x9f3)},{'value':_0x305fad(0x257a),'option':_0x305fad(0x167d)},{'value':_0x305fad(0x2857),'option':'Portuguese\x20(Brazil)'},{'value':_0x305fad(0x1254),'option':_0x305fad(0x739)},{'value':_0x305fad(0x1788),'option':_0x305fad(0x3fa)},{'value':'sk-SK','option':_0x305fad(0xcbb)},{'value':_0x305fad(0xc9d),'option':'Spanish\x20(Spain)'},{'value':_0x305fad(0xd4b),'option':_0x305fad(0x7c2)},{'value':_0x305fad(0x1fb5),'option':'Turkish\x20(Turkey)'},{'value':_0x305fad(0x1005),'option':_0x305fad(0x1ae1)},{'value':'vi-VN','option':_0x305fad(0x510)}];}function _0x1a61f7(){const _0x305fa1=_0x49a1e3;return[{'value':'af','option':_0x305fa1(0x1601)},{'value':'sq','option':_0x305fa1(0x13c4)},{'value':'am','option':_0x305fa1(0x2902)},{'value':'ar','option':_0x305fa1(0x2862)},{'value':'hy','option':_0x305fa1(0xa5f)},{'value':'az','option':_0x305fa1(0x1bb7)},{'value':'eu','option':_0x305fa1(0x1d6a)},{'value':'be','option':_0x305fa1(0x1bf6)},{'value':'bn','option':'Bengali'},{'value':'bh','option':_0x305fa1(0x355)},{'value':'bs','option':_0x305fa1(0x10de)},{'value':'br','option':_0x305fa1(0x176)},{'value':'bg','option':_0x305fa1(0x17d4)},{'value':'km','option':_0x305fa1(0x78d)},{'value':'ca','option':_0x305fa1(0xace)},{'value':'zh-CN','option':_0x305fa1(0x133e)},{'value':_0x305fa1(0x147b),'option':_0x305fa1(0x263a)},{'value':'co','option':_0x305fa1(0x1b65)},{'value':'hr','option':_0x305fa1(0x824)},{'value':'cs','option':'Czech'},{'value':'da','option':_0x305fa1(0x5f1)},{'value':'nl','option':_0x305fa1(0x183)},{'value':'en','option':_0x305fa1(0x1230)},{'value':'eo','option':_0x305fa1(0xf15)},{'value':'et','option':_0x305fa1(0x1a1e)},{'value':'fo','option':_0x305fa1(0x3e6)},{'value':'tl','option':_0x305fa1(0x136b)},{'value':'fi','option':_0x305fa1(0x11d8)},{'value':'fr','option':_0x305fa1(0x976)},{'value':'fy','option':'Frisian'},{'value':'gl','option':_0x305fa1(0x6b1)},{'value':'ka','option':'Georgian'},{'value':'de','option':_0x305fa1(0x10a4)},{'value':'el','option':_0x305fa1(0x1535)},{'value':'gn','option':_0x305fa1(0x1515)},{'value':'gu','option':_0x305fa1(0x23ff)},{'value':_0x305fa1(0x10af),'option':_0x305fa1(0x1f61)},{'value':'ha','option':_0x305fa1(0x202d)},{'value':'iw','option':'Hebrew'},{'value':'hi','option':_0x305fa1(0xb30)},{'value':'hu','option':_0x305fa1(0xa5a)},{'value':'is','option':_0x305fa1(0x1091)},{'value':'id','option':_0x305fa1(0x2079)},{'value':'ia','option':_0x305fa1(0x152c)},{'value':'ga','option':_0x305fa1(0xfe6)},{'value':'it','option':'Italian'},{'value':'jw','option':_0x305fa1(0x2100)},{'value':'ja','option':_0x305fa1(0xf5c)},{'value':'kn','option':_0x305fa1(0x1448)},{'value':'kk','option':_0x305fa1(0x2550)},{'value':'rw','option':_0x305fa1(0x2377)},{'value':'rn','option':'Kirundi'},{'value':'xx-klingon','option':_0x305fa1(0x178f)},{'value':'ku','option':_0x305fa1(0x1bfe)},{'value':'ko','option':_0x305fa1(0x1ec8)},{'value':'ky','option':_0x305fa1(0x359)},{'value':'lo','option':_0x305fa1(0xd55)},{'value':'la','option':_0x305fa1(0x1b19)},{'value':'lv','option':_0x305fa1(0x13ef)},{'value':'ln','option':'Lingala'},{'value':'lt','option':_0x305fa1(0x209f)},{'value':'mk','option':_0x305fa1(0x1103)},{'value':'mg','option':'Malagasy'},{'value':'ml','option':_0x305fa1(0x1bf9)},{'value':'mt','option':'Maltese'},{'value':'mi','option':_0x305fa1(0x20c8)},{'value':'mr','option':_0x305fa1(0xc8d)},{'value':'mo','option':_0x305fa1(0x1b24)},{'value':'mn','option':_0x305fa1(0x19bb)},{'value':'sr-ME','option':_0x305fa1(0x205d)},{'value':'ne','option':'Nepali'},{'value':'no','option':_0x305fa1(0x22d3)},{'value':'nn','option':_0x305fa1(0x61b)},{'value':'oc','option':'Occitan'},{'value':'or','option':_0x305fa1(0x27c8)},{'value':'om','option':_0x305fa1(0x233b)},{'value':'ps','option':_0x305fa1(0x1447)},{'value':'fa','option':'Persian'},{'value':_0x305fa1(0x771),'option':'Pirate'},{'value':'pl','option':_0x305fa1(0x17c4)},{'value':_0x305fa1(0x2857),'option':'Portuguese\x20(Brazil)'},{'value':_0x305fa1(0x1254),'option':_0x305fa1(0x739)},{'value':'pa','option':'Punjabi'},{'value':'qu','option':'Quechua'},{'value':'ro','option':_0x305fa1(0x88b)},{'value':'rm','option':_0x305fa1(0x404)},{'value':'ru','option':'Russian'},{'value':'gd','option':_0x305fa1(0x1895)},{'value':'sr','option':_0x305fa1(0xdbc)},{'value':'sh','option':_0x305fa1(0x1104)},{'value':'st','option':'Sesotho'},{'value':'sn','option':_0x305fa1(0x25eb)},{'value':'sd','option':_0x305fa1(0x4b5)},{'value':'si','option':_0x305fa1(0x717)},{'value':'sk','option':_0x305fa1(0x306)},{'value':'sl','option':_0x305fa1(0xcd9)},{'value':'so','option':'Somali'},{'value':'es','option':_0x305fa1(0x656)},{'value':'su','option':_0x305fa1(0x1b3)},{'value':'sw','option':_0x305fa1(0xbcf)},{'value':'sv','option':'Swedish'},{'value':'tg','option':_0x305fa1(0x19b7)},{'value':'ta','option':'Tamil'},{'value':'tt','option':'Tatar'},{'value':'te','option':_0x305fa1(0x102e)},{'value':'th','option':_0x305fa1(0x17e8)},{'value':'ti','option':_0x305fa1(0x8b4)},{'value':'to','option':_0x305fa1(0xfbf)},{'value':'tr','option':_0x305fa1(0x2060)},{'value':'tk','option':_0x305fa1(0x214b)},{'value':'tw','option':'Twi'},{'value':'ug','option':_0x305fa1(0x21d2)},{'value':'uk','option':'Ukrainian'},{'value':'ur','option':'Urdu'},{'value':'uz','option':'Uzbek'},{'value':'vi','option':_0x305fa1(0xbaa)},{'value':'cy','option':'Welsh'},{'value':'xh','option':'Xhosa'},{'value':'yi','option':_0x305fa1(0x1246)},{'value':'yo','option':_0x305fa1(0x1b84)},{'value':'zu','option':'Zulu'}];}function _0x268d29(){const _0x42f784=_0x49a1e3;return[{'value':_0x42f784(0x2849),'option':'Afrikaans\x20(South\x20Africa)'},{'value':_0x42f784(0x20d7),'option':_0x42f784(0x75a)},{'value':'hy-AM','option':'Armenian\x20(Armenia)'},{'value':_0x42f784(0x2877),'option':_0x42f784(0x230a)},{'value':_0x42f784(0x3b4),'option':_0x42f784(0x1f1b)},{'value':_0x42f784(0x648),'option':_0x42f784(0x316)},{'value':_0x42f784(0x2658),'option':_0x42f784(0x143f)},{'value':_0x42f784(0xcc1),'option':'Bengali\x20(India)'},{'value':_0x42f784(0x534),'option':_0x42f784(0x25d7)},{'value':'cs-CZ','option':_0x42f784(0x12da)},{'value':'da-DK','option':_0x42f784(0x1148)},{'value':_0x42f784(0x10ab),'option':_0x42f784(0x105f)},{'value':'en-AU','option':_0x42f784(0x1c1f)},{'value':'en-CA','option':'English\x20(Canada)'},{'value':_0x42f784(0x3af),'option':_0x42f784(0x28b7)},{'value':_0x42f784(0x1298),'option':_0x42f784(0x182d)},{'value':_0x42f784(0xe41),'option':_0x42f784(0x2196)},{'value':_0x42f784(0x449),'option':_0x42f784(0x2481)},{'value':'en-KE','option':_0x42f784(0x2420)},{'value':_0x42f784(0x1873),'option':_0x42f784(0x186c)},{'value':_0x42f784(0x24ad),'option':_0x42f784(0x28d4)},{'value':_0x42f784(0x83f),'option':_0x42f784(0xcd5)},{'value':'en-ZA','option':_0x42f784(0x1f7c)},{'value':_0x42f784(0x434),'option':'English\x20(Tanzania)'},{'value':'en-US','option':_0x42f784(0xf4a)},{'value':_0x42f784(0x107a),'option':_0x42f784(0x1ee3)},{'value':_0x42f784(0xf4b),'option':_0x42f784(0x14a4)},{'value':_0x42f784(0x253b),'option':'Spanish\x20(Chile)'},{'value':'es-CO','option':_0x42f784(0x1bf)},{'value':_0x42f784(0x268c),'option':'Spanish\x20(Costa\x20Rica)'},{'value':'es-EC','option':'Spanish\x20(Ecuador)'},{'value':_0x42f784(0x3b1),'option':_0x42f784(0x202)},{'value':_0x42f784(0xc9d),'option':_0x42f784(0xd7e)},{'value':_0x42f784(0x1c8),'option':'Spanish\x20(United\x20States)'},{'value':_0x42f784(0xf0c),'option':'Spanish\x20(Guatemala)'},{'value':'es-HN','option':_0x42f784(0x951)},{'value':'es-MX','option':_0x42f784(0x27d9)},{'value':'es-NI','option':'Spanish\x20(Nicaragua)'},{'value':_0x42f784(0xae4),'option':_0x42f784(0x26cc)},{'value':_0x42f784(0xb26),'option':_0x42f784(0x16c7)},{'value':_0x42f784(0xcc6),'option':_0x42f784(0x198f)},{'value':_0x42f784(0x1a40),'option':'Spanish\x20(Puerto\x20Rico)'},{'value':'es-DO','option':_0x42f784(0x2528)},{'value':'es-UY','option':_0x42f784(0x1e07)},{'value':'es-VE','option':'Spanish\x20(Venezuela)'},{'value':_0x42f784(0x22f3),'option':'Basque\x20(Spain)'},{'value':'fil-PH','option':'Filipino\x20(Philippines)'},{'value':_0x42f784(0x1d8c),'option':'French\x20(Canada)'},{'value':_0x42f784(0x2742),'option':_0x42f784(0x248b)},{'value':_0x42f784(0x373),'option':'Galician\x20(Spain)'},{'value':_0x42f784(0x1c34),'option':_0x42f784(0xafc)},{'value':_0x42f784(0xe5d),'option':_0x42f784(0x1546)},{'value':_0x42f784(0x13bb),'option':_0x42f784(0x26ac)},{'value':_0x42f784(0xc27),'option':_0x42f784(0xda1)},{'value':'is-IS','option':_0x42f784(0x180f)},{'value':_0x42f784(0x1541),'option':'Italian\x20(Italy)'},{'value':_0x42f784(0x196d),'option':'Javanese\x20(Indonesia)'},{'value':_0x42f784(0x11e6),'option':_0x42f784(0x132e)},{'value':_0x42f784(0x990),'option':_0x42f784(0x165)},{'value':'lo-LA','option':_0x42f784(0x283)},{'value':_0x42f784(0x571),'option':_0x42f784(0x10ea)},{'value':'lt-LT','option':_0x42f784(0x146b)},{'value':'hu-HU','option':'Hungarian\x20(Hungary)'},{'value':'ml-IN','option':_0x42f784(0x1e6f)},{'value':_0x42f784(0x15d3),'option':_0x42f784(0x1333)},{'value':_0x42f784(0xd0b),'option':_0x42f784(0x12b6)},{'value':_0x42f784(0x15e0),'option':_0x42f784(0x2273)},{'value':'nb-NO','option':'Norwegian\x20Bokmal\x20(Norway)'},{'value':_0x42f784(0x257a),'option':_0x42f784(0x167d)},{'value':_0x42f784(0x2857),'option':_0x42f784(0xb9e)},{'value':_0x42f784(0x1254),'option':_0x42f784(0x739)},{'value':'ro-RO','option':_0x42f784(0x1dfc)},{'value':_0x42f784(0x3c6),'option':_0x42f784(0x2fc)},{'value':_0x42f784(0x860),'option':_0x42f784(0xcbb)},{'value':_0x42f784(0xb53),'option':_0x42f784(0x439)},{'value':_0x42f784(0x1e7f),'option':_0x42f784(0x25f7)},{'value':'sw-TZ','option':'Swahili\x20(Tanzania)'},{'value':'sw-KE','option':_0x42f784(0x120e)},{'value':_0x42f784(0x897),'option':_0x42f784(0x128d)},{'value':_0x42f784(0xd4b),'option':'Swedish\x20(Sweden)'},{'value':_0x42f784(0x934),'option':_0x42f784(0x1842)},{'value':'ta-SG','option':'Tamil\x20(Singapore)'},{'value':_0x42f784(0x278),'option':'Tamil\x20(Sri\x20Lanka)'},{'value':_0x42f784(0x1b7),'option':_0x42f784(0x187d)},{'value':_0x42f784(0x2500),'option':_0x42f784(0x238f)},{'value':_0x42f784(0x23be),'option':'Vietnamese\x20(Vietnam)'},{'value':'tr-TR','option':_0x42f784(0x293a)},{'value':_0x42f784(0x287d),'option':'Urdu\x20(Pakistan)'},{'value':_0x42f784(0x21b0),'option':_0x42f784(0x1551)},{'value':_0x42f784(0x25a8),'option':_0x42f784(0x16cf)},{'value':'bg-BG','option':_0x42f784(0x1cd)},{'value':_0x42f784(0x1788),'option':_0x42f784(0x3fa)},{'value':_0x42f784(0x1c54),'option':_0x42f784(0x1ec0)},{'value':_0x42f784(0x1005),'option':'Ukrainian\x20(Ukraine)'},{'value':_0x42f784(0x743),'option':_0x42f784(0xf23)},{'value':_0x42f784(0x68e),'option':'Arabic\x20(Israel)'},{'value':'ar-JO','option':_0x42f784(0x2023)},{'value':_0x42f784(0x1259),'option':_0x42f784(0x1b6b)},{'value':_0x42f784(0x287),'option':_0x42f784(0xbf4)},{'value':'ar-DZ','option':'Arabic\x20(Algeria)'},{'value':_0x42f784(0x19f0),'option':_0x42f784(0xd20)},{'value':_0x42f784(0x1790),'option':_0x42f784(0x1c3)},{'value':'ar-KW','option':_0x42f784(0x4a0)},{'value':_0x42f784(0x1be4),'option':'Arabic\x20(Morocco)'},{'value':_0x42f784(0x1352),'option':'Arabic\x20(Tunisia)'},{'value':_0x42f784(0x9c0),'option':'Arabic\x20(Oman)'},{'value':'ar-PS','option':_0x42f784(0x102b)},{'value':_0x42f784(0x236f),'option':_0x42f784(0x1f9b)},{'value':_0x42f784(0x26af),'option':_0x42f784(0x1d63)},{'value':_0x42f784(0x14f6),'option':_0x42f784(0x2250)},{'value':'fa-IR','option':_0x42f784(0x159d)},{'value':_0x42f784(0x1b6f),'option':_0x42f784(0x28de)},{'value':_0x42f784(0x6ca),'option':_0x42f784(0x9b3)},{'value':_0x42f784(0xa85),'option':'Korean\x20(South\x20Korea)'},{'value':_0x42f784(0x5dc),'option':'Chinese,\x20Mandarin\x20(Traditional,\x20Taiwan)'},{'value':_0x42f784(0x1425),'option':_0x42f784(0xa4a)},{'value':_0x42f784(0x1fad),'option':_0x42f784(0x115f)},{'value':_0x42f784(0x696),'option':_0x42f784(0x18e6)},{'value':_0x42f784(0x4c1),'option':_0x42f784(0x745)}];}function _0x5d346e(){const _0x4705fa=_0x49a1e3;return[{'value':_0x4705fa(0x251e),'option':'US\x20English\x20Female'},{'value':_0x4705fa(0x119b),'option':_0x4705fa(0x100c)},{'value':_0x4705fa(0xeb0),'option':_0x4705fa(0x12b2)},{'value':'ukenglishmale','option':_0x4705fa(0x9a7)},{'value':_0x4705fa(0x1fc4),'option':_0x4705fa(0x14e5)},{'value':'usspanishfemale','option':'US\x20Spanish\x20Female'},{'value':_0x4705fa(0x2000),'option':'US\x20Spanish\x20Male'},{'value':_0x4705fa(0x30e),'option':_0x4705fa(0xb79)},{'value':_0x4705fa(0x3ce),'option':_0x4705fa(0x1ac9)},{'value':'hkchinesefemale','option':_0x4705fa(0x1f88)},{'value':_0x4705fa(0x1527),'option':'Taiwan\x20Chinese\x20Female'},{'value':_0x4705fa(0x111c),'option':_0x4705fa(0x26d)},{'value':_0x4705fa(0x1c2d),'option':_0x4705fa(0x41b)},{'value':_0x4705fa(0x1604),'option':_0x4705fa(0x3a9)},{'value':_0x4705fa(0x14f1),'option':_0x4705fa(0x1edd)},{'value':_0x4705fa(0x263d),'option':_0x4705fa(0x1c71)},{'value':_0x4705fa(0x92a),'option':'Hungarian\x20Female'},{'value':_0x4705fa(0x146f),'option':_0x4705fa(0x270e)},{'value':_0x4705fa(0x1b27),'option':_0x4705fa(0x1145)},{'value':_0x4705fa(0xae9),'option':'European\x20Portuguese\x20Male'},{'value':'eurspanishfemale','option':'European\x20Spanish\x20Female'},{'value':_0x4705fa(0x1cad),'option':_0x4705fa(0xb83)},{'value':'eurcatalanfemale','option':_0x4705fa(0x1786)},{'value':_0x4705fa(0xec9),'option':_0x4705fa(0x25f6)},{'value':'eurdanishfemale','option':_0x4705fa(0xcf7)},{'value':_0x4705fa(0x109f),'option':_0x4705fa(0x657)},{'value':_0x4705fa(0x27a8),'option':'European\x20French\x20Female'},{'value':_0x4705fa(0x23a3),'option':'European\x20French\x20Male'},{'value':'eurnorwegianfemale','option':'European\x20Norwegian\x20Female'},{'value':_0x4705fa(0x1ee2),'option':'European\x20Dutch\x20Female'},{'value':_0x4705fa(0x21a6),'option':_0x4705fa(0x2814)},{'value':_0x4705fa(0x14e8),'option':_0x4705fa(0xd11)},{'value':_0x4705fa(0xd13),'option':_0x4705fa(0x1a69)},{'value':_0x4705fa(0x2997),'option':_0x4705fa(0x1872)},{'value':_0x4705fa(0x6cf),'option':'European\x20Turkish\x20Male'},{'value':'eurgermanfemale','option':_0x4705fa(0x25c7)},{'value':_0x4705fa(0x19d6),'option':_0x4705fa(0xfd4)},{'value':_0x4705fa(0xf75),'option':_0x4705fa(0x503)},{'value':_0x4705fa(0x9c4),'option':_0x4705fa(0x908)},{'value':_0x4705fa(0x182f),'option':_0x4705fa(0xec8)},{'value':_0x4705fa(0x26e2),'option':_0x4705fa(0x240a)},{'value':_0x4705fa(0xf9c),'option':_0x4705fa(0x2294)}];}function _0x25e5a6(){const _0x131ebf=_0x49a1e3;return[{'value':_0x131ebf(0x11e3),'option':_0x131ebf(0x1a41)},{'value':_0x131ebf(0xaf7),'option':'English\x20(Canada)'},{'value':_0x131ebf(0x1298),'option':_0x131ebf(0x851)},{'value':_0x131ebf(0x16ae),'option':_0x131ebf(0x1c1f)},{'value':_0x131ebf(0xc9d),'option':_0x131ebf(0xd7e)},{'value':'es-MX','option':_0x131ebf(0x27d9)},{'value':_0x131ebf(0x1541),'option':_0x131ebf(0x1361)},{'value':'fr-FR','option':_0x131ebf(0x105f)},{'value':'fr-CA','option':_0x131ebf(0xee8)},{'value':'pl-PL','option':_0x131ebf(0x167d)},{'value':_0x131ebf(0x1254),'option':'Portuguese\x20(Portugal)'},{'value':_0x131ebf(0x534),'option':'Catalan\x20(Catalan)'},{'value':_0x131ebf(0x147b),'option':_0x131ebf(0xa4f)},{'value':_0x131ebf(0x1562),'option':_0x131ebf(0x1148)},{'value':_0x131ebf(0x1fad),'option':'Japanese\x20(Japan)'},{'value':'ko-KR','option':_0x131ebf(0x1d05)},{'value':_0x131ebf(0xd0b),'option':'Dutch\x20(Netherlands)'},{'value':'nb-NO','option':_0x131ebf(0x9f3)},{'value':_0x131ebf(0x2857),'option':'Portuguese\x20(Brazil)'},{'value':_0x131ebf(0x1788),'option':'Russian\x20(Russia)'},{'value':_0x131ebf(0xd4b),'option':_0x131ebf(0x7c2)},{'value':_0x131ebf(0x926),'option':_0x131ebf(0xf40)},{'value':_0x131ebf(0x163f),'option':_0x131ebf(0x14aa)}];}function _0x3476da(){const _0x3188c2=_0x49a1e3;return[{'value':'0','option':_0x3188c2(0x5bb)},{'value':'date','option':_0x3188c2(0x18f8)},{'value':_0x3188c2(0x1593),'option':_0x3188c2(0x669)},{'value':_0x3188c2(0x6b3),'option':'Numbers\x20to\x209'},{'value':_0x3188c2(0x1d0f),'option':_0x3188c2(0x4bc)},{'value':_0x3188c2(0x223e),'option':_0x3188c2(0x23ae)},{'value':'time','option':_0x3188c2(0x181c)},{'value':'phonenumber','option':_0x3188c2(0x2dd)},{'value':_0x3188c2(0xcce),'option':'Streets'},{'value':_0x3188c2(0x264d),'option':_0x3188c2(0x18c3)}];}function _0x186c6f(){const _0x753731=_0x49a1e3;return[{'value':_0x753731(0x5ea),'option':_0x753731(0x2512)},{'value':_0x753731(0x17e3),'option':_0x753731(0xea7)},{'value':_0x753731(0xa48),'option':_0x753731(0xfc5)},{'value':'Carla','option':'Carla\x20(Italian,\x20Female)'},{'value':_0x753731(0x18f7),'option':'Carmen\x20(Romanian,\x20Female)'},{'value':_0x753731(0x24d0),'option':_0x753731(0x199d)},{'value':_0x753731(0x2050),'option':_0x753731(0x1953)},{'value':_0x753731(0x28d8),'option':_0x753731(0x1194)},{'value':_0x753731(0x24fc),'option':_0x753731(0x1c0d)},{'value':_0x753731(0x207e),'option':_0x753731(0xe8a)},{'value':_0x753731(0x247),'option':'Emma\x20(English,\x20British,\x20Female)'},{'value':'Enrique','option':_0x753731(0xe81)},{'value':'Ewa','option':'Ewa\x20(Polish,\x20Female)'},{'value':_0x753731(0x2860),'option':'Filiz\x20(Turkish,\x20Female)'},{'value':_0x753731(0x10d5),'option':_0x753731(0x715)},{'value':'Giorgio','option':_0x753731(0x1e20)},{'value':'Gwineth','option':_0x753731(0x17f2)},{'value':'Hans','option':'Hans\x20(German,\x20Male)'},{'value':_0x753731(0x312),'option':_0x753731(0x234e)},{'value':_0x753731(0x1759),'option':_0x753731(0x916)},{'value':_0x753731(0xe08),'option':'Jacek\x20(Polish,\x20Male)'},{'value':_0x753731(0x156f),'option':'Jan\x20(Polish,\x20Male)'},{'value':_0x753731(0x1e84),'option':_0x753731(0xbff)},{'value':_0x753731(0xb85),'option':_0x753731(0x276c)},{'value':_0x753731(0x1bc7),'option':'Justin\x20(English,\x20US,\x20Male)'},{'value':_0x753731(0x1495),'option':_0x753731(0x20b7)},{'value':_0x753731(0x3a0),'option':_0x753731(0x20cc)},{'value':'Kimberly','option':_0x753731(0x15dc)},{'value':_0x753731(0x23d7),'option':_0x753731(0x1b56)},{'value':'Lotte','option':'Lotte\x20(Dutch,\x20Female)'},{'value':_0x753731(0x1d09),'option':'Mads\x20(Danish,\x20Male)'},{'value':_0x753731(0xd1a),'option':_0x753731(0xd3b)},{'value':'Marlene','option':_0x753731(0x2063)},{'value':_0x753731(0x1468),'option':_0x753731(0x13c8)},{'value':_0x753731(0x205e),'option':_0x753731(0x259e)},{'value':_0x753731(0x1b93),'option':_0x753731(0x14d2)},{'value':'Mizuki','option':_0x753731(0x1d7d)},{'value':_0x753731(0x4ee),'option':_0x753731(0x2426)},{'value':_0x753731(0x19f4),'option':_0x753731(0x1e60)},{'value':_0x753731(0x1076),'option':_0x753731(0x220)},{'value':_0x753731(0x10a9),'option':_0x753731(0x10ef)},{'value':_0x753731(0x3c3),'option':_0x753731(0x26ad)},{'value':_0x753731(0x1ec7),'option':_0x753731(0x3f4)},{'value':_0x753731(0xe82),'option':_0x753731(0x109c)},{'value':_0x753731(0xd65),'option':'Salli\x20(English,\x20US,\x20Female)'},{'value':_0x753731(0x2754),'option':'Tatyana\x20(Russian,\x20Female)'},{'value':_0x753731(0x7ed),'option':_0x753731(0x232c)}];}function _0x10f318(){const _0x289707=_0x49a1e3;return[{'value':'us-east-1','option':_0x289707(0x3f1)},{'value':_0x289707(0x15ef),'option':_0x289707(0x273a)},{'value':_0x289707(0x1735),'option':'US\x20West\x20(N.\x20California)'},{'value':_0x289707(0xef3),'option':'US\x20West\x20(Oregon)'},{'value':'ca-central-1','option':_0x289707(0xe93)},{'value':'eu-west-1','option':_0x289707(0xdda)},{'value':_0x289707(0x3f2),'option':_0x289707(0xc8b)},{'value':_0x289707(0x43f),'option':'EU\x20(London)'},{'value':_0x289707(0x22a6),'option':'EU\x20(Paris)'},{'value':_0x289707(0x902),'option':_0x289707(0x19e4)},{'value':'ap-southeast-2','option':'Asia\x20Pacific\x20(Sydney)'},{'value':'ap-northeast-2','option':_0x289707(0xed1)},{'value':_0x289707(0x1a3b),'option':_0x289707(0xf33)},{'value':'ap-south-1','option':_0x289707(0x23cd)},{'value':'sa-east-1','option':'South\x20America\x20(São\x20Paulo)'}];}function _0x3cbdfb(){const _0x581b94=_0x49a1e3;return[{'value':_0x581b94(0x211e),'option':_0x581b94(0x3f1)},{'value':_0x581b94(0xef3),'option':_0x581b94(0x528)},{'value':_0x581b94(0x161d),'option':_0x581b94(0xdda)},{'value':_0x581b94(0x1ce3),'option':_0x581b94(0xbb7)}];};_0x2b78b5['$inject']=[_0x49a1e3(0x212a),'toasty',_0x49a1e3(0x22ff),_0x49a1e3(0x1768)];function _0x2b78b5(_0x56e180,_0x14fa58,_0x448f17,_0x1fb098){const _0xd8c037=_0x49a1e3,_0x1151b6=this;_0x1151b6['project']={'preproduction':_0x448f17};function _0x26cbb0(_0x340065){const _0x42cd42=a0_0x4127;_0x340065?(_0x1fb098(_0x1151b6['project'][_0x42cd42(0x12d1)]),_0x56e180['hide'](_0x1151b6[_0x42cd42(0x1bd9)]['preproduction'])):_0x56e180['hide']();}_0x1151b6[_0xd8c037(0x16cb)]=_0x26cbb0;}const _0x422d35=_0x2b78b5;;_0x412137['$inject']=[_0x49a1e3(0x212a),_0x49a1e3(0x1768)];function _0x412137(_0x53c94c,_0x37044a){const _0x2bcde9=_0x49a1e3,_0x192324=this,_0x3077e5=0x5,_0x27caf9=_0x3077e5*0x400*0x400;_0x192324['errors']=[],_0x192324['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x27caf9,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x192324[_0x2bcde9(0x1eec)]={'flow':{}},_0x192324[_0x2bcde9(0x397)]=![],_0x192324[_0x2bcde9(0x16cb)]=_0x3c8e4a,_0x192324[_0x2bcde9(0x25ed)]=_0x15e36f;function _0x15e36f(_0x1ad8d8){const _0x1e3c84=_0x2bcde9;_0x192324[_0x1e3c84(0xbae)]=[];const _0x22c683=[_0x1e3c84(0x1e2b)];!_0x28c606()[_0x1e3c84(0x68a)](_0x22c683,_0x1ad8d8[_0x1e3c84(0xa2f)]())&&_0x192324['errors'][_0x1e3c84(0x1954)]({'message':_0x1e3c84(0xe84)+_0x1ad8d8['getExtension']()+_0x1e3c84(0xda4)});_0x1ad8d8['size']>_0x27caf9&&_0x192324[_0x1e3c84(0xbae)][_0x1e3c84(0x1954)]({'message':_0x1e3c84(0x19db)+_0x3077e5+'MB'});if(!_0x192324['errors']['length']){const _0x5ed378=new FileReader();_0x5ed378['onload']=function(_0x10fb69){const _0x200fd3=_0x1e3c84;_0x3c8e4a(_0x10fb69[_0x200fd3(0x2497)][_0x200fd3(0x5e3)]);},_0x5ed378[_0x1e3c84(0x249d)](_0x1ad8d8[_0x1e3c84(0x10b4)]);}}function _0x3c8e4a(_0x401e2e){const _0x58ef95=_0x2bcde9;_0x401e2e?(_0x37044a(_0x401e2e),_0x53c94c[_0x58ef95(0x268e)](_0x401e2e)):_0x53c94c[_0x58ef95(0x268e)]();}}const _0x29aa24=_0x412137;;_0x464c44[_0x49a1e3(0x1e73)]=['$mdDialog',_0x49a1e3(0x680),'project',_0x49a1e3(0xa19)];function _0x464c44(_0x1ad2b1,_0x164752,_0x169f6b,_0x14f8a3){const _0x174a68=_0x49a1e3,_0x43c4e2=this;_0x43c4e2[_0x174a68(0x1bd9)]=_0x28c606()[_0x174a68(0x24b2)](_0x169f6b);function _0x407da6(){const _0x5d894a=_0x174a68;_0x43c4e2[_0x5d894a(0xbae)]=[],_0x14f8a3[_0x5d894a(0x2101)][_0x5d894a(0x2603)]({'id':_0x43c4e2['project']['id']},{'notes':_0x43c4e2[_0x5d894a(0x1bd9)][_0x5d894a(0x2768)],'description':_0x43c4e2[_0x5d894a(0x1bd9)][_0x5d894a(0x23c3)]})[_0x5d894a(0x15e7)]['then'](function(_0x14e594){const _0x476f19=_0x5d894a;_0x164752['success']({'title':'Project\x20updated!','msg':_0x43c4e2[_0x476f19(0x1bd9)][_0x476f19(0x2494)]?_0x43c4e2['project'][_0x476f19(0x2494)]+_0x476f19(0x2032):''}),_0x1ad2b1[_0x476f19(0x268e)](_0x14e594);})[_0x5d894a(0x20cd)](function(_0x4351ac){const _0x3eccf4=_0x5d894a;console[_0x3eccf4(0x1bd0)](_0x4351ac),_0x43c4e2[_0x3eccf4(0xbae)]=_0x4351ac[_0x3eccf4(0x1c52)][_0x3eccf4(0xbae)]||[{'message':_0x4351ac['toString'](),'type':_0x3eccf4(0x1679)}];});}function _0xf24de(){const _0x521670=_0x174a68;_0x1ad2b1[_0x521670(0x268e)]();}_0x43c4e2[_0x174a68(0x16cb)]=_0xf24de,_0x43c4e2[_0x174a68(0x2479)]=_0x407da6;}const _0x12f6a9=_0x464c44;;_0x261f23[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x680),_0x49a1e3(0x1d73),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f)];function _0x261f23(_0x1daeea,_0x612891,_0x3cd40c,_0x2b1883,_0x56f04c){const _0xf433dc=_0x49a1e3,_0x504a15=this;_0x504a15[_0xf433dc(0x1d73)]=_0x3cd40c,_0x504a15['id']='',_0x504a15[_0xf433dc(0x28f8)]=!![];function _0x88abc4(_0xb0406b){const _0x5935ba=_0xf433dc;_0x504a15[_0x5935ba(0xbae)]=[],_0xb0406b?(_0x1daeea[_0x5935ba(0x268e)](),_0x504a15[_0x5935ba(0x28f8)]?_0x2b1883[_0x5935ba(0x1463)](_0x5935ba(0x18b)+_0x504a15['id'],_0x5935ba(0x235e)):_0x56f04c['go'](_0x5935ba(0x1cea),{'id':_0x504a15['id']})):_0x1daeea[_0x5935ba(0x268e)]();}_0x504a15[_0xf433dc(0x16cb)]=_0x88abc4;}const _0x4f19cc=_0x261f23;;_0x17ab16[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x1bd9),_0x49a1e3(0x1d73),_0x49a1e3(0x298c)];function _0x17ab16(_0x4cdca2,_0x4d3a4e,_0x12998b,_0x3e0eaf,_0x21caa6,_0x5536fd){const _0x2e9053=_0x49a1e3,_0x5476e4=this;_0x5476e4['project']=_0x3e0eaf,_0x5476e4[_0x2e9053(0x70f)]=0x0,_0x5476e4[_0x2e9053(0x23cb)]=[],_0x5476e4[_0x2e9053(0x1f4f)]=[],_0x5476e4[_0x2e9053(0x16cb)]=_0x44e727,_0x5476e4[_0x2e9053(0x1eeb)]={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2e9053(0x2494),'line1':_0x2e9053(0x15c),'line2':[_0x2e9053(0x2494),_0x2e9053(0xe2f)],'line3':_0x2e9053(0x70f),'labelAll':_0x5536fd[_0x2e9053(0x2292)]('APP.ALL_USERS'),'labelSelected':_0x5536fd[_0x2e9053(0x2292)](_0x2e9053(0x1849)),'transferCallback':function(_0x489b38,_0x54a178){const _0x45cbb3=_0x2e9053;_0x12998b[_0x45cbb3(0x2101)][_0x54a178?_0x45cbb3(0x1d50):_0x45cbb3(0xf2f)]({'id':_0x5476e4['project']['id'],'ids':_0x28c606()[_0x45cbb3(0x1de5)](_0x489b38,'id'),'penalty':_0x5476e4[_0x45cbb3(0x70f)]||0x0})[_0x45cbb3(0x15e7)][_0x45cbb3(0x64a)](function(){const _0x4d0681=_0x45cbb3;_0x4d3a4e[_0x4d0681(0x1339)]({'title':_0x4d0681(0x1552)+(_0x54a178?_0x4d0681(0x1ac3):_0x4d0681(0x6f0)),'msg':'Project\x20has\x20been\x20'+(_0x54a178?_0x4d0681(0x1ac3):_0x4d0681(0x6f0))+'!'}),!_0x54a178&&_0xdc5c32();})[_0x45cbb3(0x20cd)](function(_0x4fd392){const _0x254fb9=_0x45cbb3;_0x4d3a4e[_0x254fb9(0x1bd0)]({'title':_0x4fd392[_0x254fb9(0x10b3)]?_0x254fb9(0x575)+_0x4fd392[_0x254fb9(0x10b3)]+_0x254fb9(0x21db)+_0x4fd392[_0x254fb9(0x2115)]:_0x254fb9(0x1119),'msg':_0x4fd392[_0x254fb9(0x10b3)]?JSON[_0x254fb9(0x2317)](_0x4fd392['data']):_0x4fd392['toString']()});});}};function _0xdc5c32(){const _0x22c110=_0x2e9053;return _0x12998b[_0x22c110(0x2101)][_0x22c110(0xdf6)]({'id':_0x5476e4['project']['id'],'fields':_0x22c110(0x124b),'nolimit':!![],'role':_0x22c110(0x2e8)})['$promise'][_0x22c110(0x64a)](function(_0x5b12fa){const _0x7c81ee=_0x22c110;return _0x5476e4[_0x7c81ee(0x1f4f)]=_0x5b12fa[_0x7c81ee(0x28b8)]?_0x28c606()[_0x7c81ee(0x1de5)](_0x5b12fa[_0x7c81ee(0x28b8)],function(_0x2da85e){return _0x2da85e;}):[],_0x5476e4[_0x7c81ee(0x1eeb)]['selectedItems']=_0x5476e4['selectedItems'],_0x12998b['user'][_0x7c81ee(0x896)]({'fields':_0x7c81ee(0xfb6),'role':_0x7c81ee(0x2e8),'nolimit':!![]})[_0x7c81ee(0x15e7)];})[_0x22c110(0x64a)](function(_0x1e9115){const _0x541549=_0x22c110;_0x5476e4[_0x541549(0x23cb)]=_0x1e9115[_0x541549(0x28b8)]?_0x28c606()['map'](_0x1e9115[_0x541549(0x28b8)],function(_0x5e2106){return _0x5e2106;}):[],_0x5476e4[_0x541549(0x1eeb)]['items']=_0x28c606()['differenceBy'](_0x5476e4[_0x541549(0x23cb)],_0x5476e4['selectedItems'],'id');})[_0x22c110(0x20cd)](function(_0x325a0b){const _0x239e60=_0x22c110;_0x4d3a4e[_0x239e60(0x1bd0)]({'title':_0x325a0b[_0x239e60(0x10b3)]?_0x239e60(0x575)+_0x325a0b[_0x239e60(0x10b3)]+_0x239e60(0x21db)+_0x325a0b[_0x239e60(0x2115)]:'SYSTEM:GETUSERS','msg':_0x325a0b[_0x239e60(0x10b3)]?JSON['stringify'](_0x325a0b['data']):_0x325a0b[_0x239e60(0x2915)]()});});}function _0x44e727(){const _0x3a1484=_0x2e9053;_0x4cdca2[_0x3a1484(0x268e)]();}_0xdc5c32();}const _0x54b953=_0x17ab16;;_0x380cb8[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'toasty',_0x49a1e3(0x1bd9),'currentXML',_0x49a1e3(0xa19),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f)];function _0x380cb8(_0x4875c5,_0x4c348d,_0x686611,_0xdc369a,_0x4315a7,_0x1bf33e,_0x11e683){const _0x10a177=_0x49a1e3,_0x38eedf=this;_0x38eedf['project']=angular[_0x10a177(0x289e)](_0x686611),_0x38eedf[_0x10a177(0x1bd9)][_0x10a177(0x2494)]+=_0x10a177(0xaf3),_0x38eedf[_0x10a177(0x1bd9)][_0x10a177(0x12d1)]=_0xdc369a,_0x38eedf[_0x10a177(0x28f8)]=!![];function _0x3e707f(){const _0x185947=_0x10a177;delete _0x38eedf[_0x185947(0x1bd9)]['id'],_0x4315a7[_0x185947(0x2101)][_0x185947(0x2479)](_0x38eedf[_0x185947(0x1bd9)])[_0x185947(0x15e7)]['then'](function(_0x265a9c){const _0x11abc7=_0x185947;_0x4c348d[_0x11abc7(0x1339)]({'title':_0x11abc7(0xa20),'msg':_0x38eedf['project']['name']?_0x38eedf[_0x11abc7(0x1bd9)]['name']+_0x11abc7(0x258d):''}),_0x4875c5[_0x11abc7(0x268e)](_0x265a9c),_0x38eedf['newWindow']?_0x1bf33e[_0x11abc7(0x1463)](_0x11abc7(0x18b)+_0x265a9c['id'],_0x11abc7(0x235e)):_0x11e683['go'](_0x11abc7(0x1cea),{'id':_0x265a9c['id']});})[_0x185947(0x20cd)](function(_0xf1de1b){const _0x362bae=_0x185947;console[_0x362bae(0x1bd0)](_0xf1de1b),_0x38eedf[_0x362bae(0xbae)]=_0xf1de1b['data'][_0x362bae(0xbae)]||[{'message':_0xf1de1b[_0x362bae(0x2915)](),'type':_0x362bae(0x273f)}];});}function _0x408972(){const _0x2c0101=_0x10a177;_0x4875c5[_0x2c0101(0x268e)]();}_0x38eedf[_0x10a177(0x16cb)]=_0x408972,_0x38eedf[_0x10a177(0x2479)]=_0x3e707f;}const _0x445946=_0x380cb8;;const _0x5c68f8=_0x2e4a48['p']+_0x49a1e3(0x186);;const _0x395d11=_0x2e4a48['p']+_0x49a1e3(0x2fa);;const _0x4231d6=_0x2e4a48['p']+_0x49a1e3(0x1ff);;const _0x3f148c=_0x2e4a48['p']+_0x49a1e3(0x234d);;const _0x3826b9=_0x2e4a48['p']+_0x49a1e3(0x2386);;const _0x1d4b44=_0x2e4a48['p']+_0x49a1e3(0x19e7);;const _0x173fa0=_0x2e4a48['p']+'src/js/modules/main/apps/callysquare/views/projects/edit/import/import.html/import.html';;_0x220c55[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x1373),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x1bd9),_0x49a1e3(0xff5),_0x49a1e3(0xe23),'queues',_0x49a1e3(0x16df),'variables',_0x49a1e3(0x1e59),_0x49a1e3(0xad1),'projects',_0x49a1e3(0x15e4),_0x49a1e3(0x2435),_0x49a1e3(0x26c1),_0x49a1e3(0x974),_0x49a1e3(0x205),'pauses','userProfileSection',_0x49a1e3(0xdcf)];const _0x1f43da=window[_0x49a1e3(0x2074)],_0x4b482c=window[_0x49a1e3(0x11b9)];function _0x220c55(_0x1645ec,_0x235577,_0x23ffe5,_0x1b2e65,_0x406d4a,_0x2432e4,_0x2f4757,_0x11b3fc,_0x26a5b0,_0x148601,_0x2f3bfe,_0x2cec0d,_0x98cf79,_0x220b6f,_0x204644,_0x549c05,_0x52bec7,_0x4ff4fc,_0x833525,_0xe2c4a,_0x1559fc,_0x38ea67,_0x34a813,_0x27eb28){const _0x300cd6=_0x49a1e3,_0x2c8996=this;_0x2c8996[_0x300cd6(0x1d3d)]=_0x27eb28['getCurrentUser'](),_0x2c8996[_0x300cd6(0x1bd9)]=_0x11b3fc||{},_0x2c8996[_0x300cd6(0x16b2)]=_0x34a813&&_0x34a813[_0x300cd6(0xb90)]==0x1?_0x34a813[_0x300cd6(0x28b8)][0x0]:null,_0x2c8996[_0x300cd6(0x402)]=_0x27eb28[_0x300cd6(0xa7e)](_0x2c8996[_0x300cd6(0x16b2)]?_0x2c8996['userProfileSection'][_0x300cd6(0x402)]:null),_0x2c8996[_0x300cd6(0x2483)]=_0x9a08,_0x2c8996[_0x300cd6(0x15f7)]=_0x4e8fff,_0x2c8996[_0x300cd6(0x214d)]=_0xf72f79,_0x2c8996['newProject']=_0x46026e,_0x2c8996[_0x300cd6(0x1b17)]=_0x30458b,_0x2c8996[_0x300cd6(0x2953)]=_0xc37c4d,_0x2c8996['newVariable']=_0x56c00a,_0x2c8996['updateInfo']=_0x3aa70a,_0x2c8996[_0x300cd6(0x795)]=_0x5fd6fe,_0x2c8996[_0x300cd6(0x1970)]=_0x566901,_0x2c8996[_0x300cd6(0x1664)]=_0x709726;function _0x9a08(){const _0x54191d=_0x300cd6,_0x1a63a3=new _0x1f43da(_0x2c8996,new _0x4b482c(),document['getElementById']('geEditor'));_0x1a63a3[_0x54191d(0x1356)](_0x2c8996[_0x54191d(0x1bd9)][_0x54191d(0x12d1)],_0x2c8996[_0x54191d(0x1bd9)][_0x54191d(0x2494)],_0x2c8996[_0x54191d(0x1bd9)]);}function _0xf72f79(_0x315368,_0x21352a){const _0x36e6ed=_0x300cd6;_0x23ffe5[_0x36e6ed(0xa60)]({'controller':_0x36e6ed(0x2270),'controllerAs':'vm','templateUrl':_0x5c68f8,'parent':angular[_0x36e6ed(0x1f81)](_0x235577[_0x36e6ed(0xb49)]),'clickOutsideToClose':!![],'locals':{'users':_0x26a5b0[_0x36e6ed(0x28b8)]||[],'trunks':_0x148601[_0x36e6ed(0x28b8)]||[],'queues':_0x2f3bfe['rows']||[],'sounds':_0x2cec0d[_0x36e6ed(0x28b8)]||[],'variables':_0x98cf79[_0x36e6ed(0x28b8)]||[],'databases':_0x220b6f[_0x36e6ed(0x28b8)]||[],'contexts':_0x204644[_0x36e6ed(0x28b8)]||[],'projects':_0x549c05[_0x36e6ed(0x28b8)]||[],'intervals':_0x52bec7[_0x36e6ed(0x28b8)]||[],'mailAccounts':_0x4ff4fc[_0x36e6ed(0x28b8)]||[],'smsAccounts':_0x1559fc[_0x36e6ed(0x28b8)]||[],'pauses':_0x38ea67['rows']||[],'templates':_0x833525['rows']||[],'lists':_0xe2c4a[_0x36e6ed(0x28b8)]||[],'cell':_0x315368,'saveCallback':_0x21352a,'crudPermissions':_0x2c8996[_0x36e6ed(0x402)]}});}function _0x46026e(_0x3a2ec6){const _0xd4187=_0x300cd6;_0x23ffe5[_0xd4187(0xa60)]({'controller':_0xd4187(0x2f9),'controllerAs':'vm','templateUrl':_0x395d11,'parent':angular['element'](_0x235577[_0xd4187(0xb49)]),'clickOutsideToClose':!![],'locals':{'project':_0x3a2ec6,'projects':_0x549c05[_0xd4187(0x28b8)],'openFromEditor':!![],'license':null,'setting':null,'crudPermissions':_0x2c8996[_0xd4187(0x402)]}});}function _0x30458b(){const _0x3a4915=_0x300cd6;_0x23ffe5[_0x3a4915(0xa60)]({'controller':_0x3a4915(0x1f0a),'controllerAs':'vm','templateUrl':_0x4231d6,'parent':angular['element'](_0x235577['body']),'clickOutsideToClose':!![],'locals':{'projects':_0x549c05['rows']||[]}});}function _0xc37c4d(_0x4864fb){const _0x19423c=_0x300cd6;_0x23ffe5[_0x19423c(0xa60)]({'controller':_0x19423c(0x755),'controllerAs':'vm','templateUrl':_0x3f148c,'parent':angular[_0x19423c(0x1f81)](_0x235577[_0x19423c(0xb49)]),'clickOutsideToClose':!![],'locals':{'project':_0x2c8996['project'],'currentXML':_0x4864fb}})['then'](function(_0x79cd45){const _0x1c211d=_0x19423c;_0x79cd45&&_0x549c05[_0x1c211d(0x28b8)]['push'](_0x79cd45);});}function _0x3241d8(){return _0x1b2e65(function(_0x2a6d8e,_0xafb041){const _0x5647fc=a0_0x4127;return _0x2f4757['userProfileSection'][_0x5647fc(0x896)]({'userProfileId':_0x2c8996[_0x5647fc(0x1d3d)]['userProfileId'],'sectionId':0x3f4})['$promise'][_0x5647fc(0x64a)](function(_0xf41f95){const _0x8e82=_0x5647fc,_0x2cadf1=_0xf41f95[_0x8e82(0x28b8)]?_0xf41f95[_0x8e82(0x28b8)][0x0]:null,_0x429d77=_0x27eb28[_0x8e82(0xa7e)](_0x2cadf1?_0x2cadf1[_0x8e82(0x402)]:null);_0x2a6d8e(_0x429d77);})[_0x5647fc(0x20cd)](function(_0x23659d){_0xafb041(_0x23659d);});});}function _0x56c00a(_0x20d0ba){const _0x4ad31d=_0x300cd6;return _0x3241d8()[_0x4ad31d(0x64a)](function(_0x107f8e){const _0x15830a=_0x4ad31d;_0x107f8e[_0x15830a(0xd86)]?_0x23ffe5['show']({'controller':_0x15830a(0x2837),'controllerAs':'vm','templateUrl':_0x2c6a0c,'parent':angular[_0x15830a(0x1f81)](_0x235577['body']),'clickOutsideToClose':!![],'locals':{'variable':_0x20d0ba,'variables':_0x98cf79[_0x15830a(0x28b8)],'license':null,'setting':null,'crudPermissions':_0x107f8e}}):_0x2432e4[_0x15830a(0x772)]({'title':_0x406d4a[_0x15830a(0x2292)](_0x15830a(0x111a)),'msg':_0x406d4a[_0x15830a(0x2292)](_0x15830a(0x19b5))});})['catch'](function(_0x122923){const _0x543e2e=_0x4ad31d;_0x2432e4[_0x543e2e(0x1bd0)]({'title':_0x122923['status']?_0x543e2e(0x575)+_0x122923[_0x543e2e(0x10b3)]+'\x20-\x20'+_0x122923[_0x543e2e(0x2115)]:'API:NEW_VARIABLE','msg':_0x122923[_0x543e2e(0x1c52)]?JSON[_0x543e2e(0x2317)](_0x122923[_0x543e2e(0x1c52)]):_0x122923['toString']()});});}function _0x3aa70a(_0x2bea58){const _0x4936ef=_0x300cd6;_0x23ffe5[_0x4936ef(0xa60)]({'controller':_0x4936ef(0x1516),'controllerAs':'vm','templateUrl':_0x3826b9,'parent':angular['element'](_0x235577[_0x4936ef(0xb49)]),'targetEvent':_0x2bea58,'clickOutsideToClose':!![],'locals':{'project':_0x2c8996[_0x4936ef(0x1bd9)]}})[_0x4936ef(0x64a)](function(_0x149faa){const _0x195059=_0x4936ef;_0x149faa&&_0x28c606()[_0x195059(0x14fe)](_0x2c8996[_0x195059(0x1bd9)],_0x149faa);});}function _0x5fd6fe(_0x17f18a,_0x587ccd){const _0xfd6bea=_0x300cd6;_0x23ffe5[_0xfd6bea(0xa60)]({'controller':'MxGraphEditXMLController','controllerAs':'vm','templateUrl':_0x1d4b44,'parent':angular['element'](_0x235577['body']),'clickOutsideToClose':!![],'locals':{'currentXML':_0x17f18a,'saveCallback':_0x587ccd}})[_0xfd6bea(0x64a)](function(_0x33956){const _0x416674=_0xfd6bea;_0x33956&&(_0x2c8996['project'][_0x416674(0x12d1)]=_0x33956);});}function _0x566901(_0x10005d){const _0x17cec4=_0x300cd6;_0x23ffe5['show']({'controller':'MxGraphImportXMLController','controllerAs':'vm','templateUrl':_0x173fa0,'parent':angular[_0x17cec4(0x1f81)](_0x235577[_0x17cec4(0xb49)]),'clickOutsideToClose':!![],'locals':{'saveCallback':_0x10005d}})[_0x17cec4(0x64a)](function(_0x2d39d4){const _0xd04928=_0x17cec4;_0x2d39d4&&(_0x2c8996[_0xd04928(0x1bd9)][_0xd04928(0x12d1)]=_0x2d39d4);});}function _0x4e8fff(_0x17405c,_0x4427ad){const _0x5d8e5c=_0x300cd6,_0x5ede20={'preproduction':_0x17405c};_0x4427ad&&(_0x5ede20[_0x5d8e5c(0x66f)]=_0x17405c),_0x2f4757[_0x5d8e5c(0x2101)][_0x5d8e5c(0x2603)]({'id':_0x2c8996[_0x5d8e5c(0x1bd9)]['id']},_0x5ede20)[_0x5d8e5c(0x15e7)][_0x5d8e5c(0x64a)](function(_0x2c9416){const _0x362b16=_0x5d8e5c;_0x2432e4['success']({'title':_0x362b16(0xc13)+(_0x4427ad?_0x362b16(0x1cf3):_0x362b16(0x282a))+'!','msg':_0x2c8996['project'][_0x362b16(0x2494)]?_0x2c8996[_0x362b16(0x1bd9)][_0x362b16(0x2494)]+_0x362b16(0x1e51)+(_0x4427ad?_0x362b16(0x1cf3):_0x362b16(0x282a))+'!':''}),_0x2c8996[_0x362b16(0x1bd9)]['preproduction']=_0x2c9416[_0x362b16(0x12d1)];})[_0x5d8e5c(0x20cd)](function(_0x440981){const _0x2f090f=_0x5d8e5c;_0x2432e4[_0x2f090f(0x1bd0)]({'title':_0x440981['status']?'API:'+_0x440981[_0x2f090f(0x10b3)]+_0x2f090f(0x21db)+_0x440981[_0x2f090f(0x2115)]:'SYSTEM:GETsquareProject','msg':_0x440981[_0x2f090f(0x1c52)]?JSON[_0x2f090f(0x2317)](_0x440981[_0x2f090f(0x1c52)]):_0x440981['toString']()});});}function _0x709726(){const _0x5f42a6=_0x300cd6;_0x1645ec['go'](_0x5f42a6(0x364),{},{'reload':_0x5f42a6(0x364)});}}const _0x5a0880=_0x220c55;;_0x8d65e4[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x1d73),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x680),_0x49a1e3(0xdcf)];function _0x8d65e4(_0x339c7b,_0x1d04a6,_0x52edf3,_0x3c1b81,_0x4129b5,_0x24711b,_0x30684f,_0x4bf03a,_0x49169f,_0x138613,_0x4a28ac,_0x2f0777,_0x53e307){const _0x420bcb=_0x49a1e3,_0x534a66=this;_0x534a66[_0x420bcb(0x1d3d)]=_0x53e307['getCurrentUser'](),_0x534a66[_0x420bcb(0x1d73)]=_0x3c1b81||{'count':0x0,'rows':[]},_0x534a66['userProfile']=_0x4129b5,_0x534a66['userProfileSection']=_0x24711b&&_0x24711b[_0x420bcb(0xb90)]==0x1?_0x24711b[_0x420bcb(0x28b8)][0x0]:null,_0x534a66['crudPermissions']=_0x53e307[_0x420bcb(0xa7e)](_0x534a66[_0x420bcb(0x16b2)]?_0x534a66[_0x420bcb(0x16b2)][_0x420bcb(0x402)]:null),_0x534a66['table']=_0x420bcb(0x1d73),_0x534a66[_0x420bcb(0x300)]='',_0x534a66[_0x420bcb(0x2748)]=null,_0x534a66['selectedProjects']=[],_0x534a66[_0x420bcb(0x289a)]={'fields':'id,name,description,notes','sort':_0x420bcb(0x260c),'limit':0xa,'page':0x1},_0x534a66[_0x420bcb(0xff6)]=_0x2c2ba5,_0x534a66[_0x420bcb(0x1262)]=_0x3066d9,_0x534a66[_0x420bcb(0x1339)]=_0x894ab7,_0x534a66[_0x420bcb(0x2938)]=_0x2954f6,_0x534a66[_0x420bcb(0x20ff)]=_0x449b78,_0x534a66[_0x420bcb(0x49c)]=_0x2247b0,_0x534a66['exportSelectedProjects']=_0x371726,_0x534a66[_0x420bcb(0x1793)]=_0x51d5c1,_0x534a66['deselectProjects']=_0x131bf9,_0x534a66['selectAllProjects']=_0x5844f6;function _0x2c2ba5(_0x4fb13c){const _0x2fd772=_0x420bcb;_0x1d04a6['go'](_0x2fd772(0x1cea),{'id':_0x4fb13c['id'],'crudPermissions':_0x534a66[_0x2fd772(0x402)]});}function _0x3066d9(_0x44405a,_0x4f78d5){const _0x4f1d31=_0x420bcb,_0x1dc4c7=_0x49169f[_0x4f1d31(0x856)]()[_0x4f1d31(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20project?')[_0x4f1d31(0x33a)](_0x4f1d31(0x50b)+_0x44405a[_0x4f1d31(0x2494)]+_0x4f1d31(0x26d0)+_0x4f1d31(0x4b8))[_0x4f1d31(0x213e)](_0x4f1d31(0x1754))[_0x4f1d31(0x2283)](_0x4f78d5)['ok']('OK')['cancel'](_0x4f1d31(0x18fd));_0x49169f[_0x4f1d31(0xa60)](_0x1dc4c7)['then'](function(){_0x2247b0(_0x44405a);},function(){const _0x2f624c=_0x4f1d31;console['log'](_0x2f624c(0x18fd));});}let _0x1764c3=!![],_0x309a6f=0x1;_0x339c7b[_0x420bcb(0xc62)](_0x420bcb(0x1cb9),function(_0x11f6f8,_0x47e243){const _0x4478b2=_0x420bcb;_0x1764c3?_0x4a28ac(function(){_0x1764c3=![];}):(!_0x47e243&&(_0x309a6f=_0x534a66['query'][_0x4478b2(0xc72)]),_0x11f6f8!==_0x47e243&&(_0x534a66[_0x4478b2(0x289a)][_0x4478b2(0xc72)]=0x1),!_0x11f6f8&&(_0x534a66[_0x4478b2(0x289a)][_0x4478b2(0xc72)]=_0x309a6f),_0x534a66['getProjects']());});function _0x894ab7(_0x2cd0d7){const _0x4c08bb=_0x420bcb;_0x534a66[_0x4c08bb(0x1d73)]=_0x2cd0d7||{'count':0x0,'rows':[]};}function _0x2954f6(){const _0x5248e6=_0x420bcb;_0x534a66['query'][_0x5248e6(0x24f9)]=(_0x534a66[_0x5248e6(0x289a)]['page']-0x1)*_0x534a66[_0x5248e6(0x289a)]['limit'],_0x53e307[_0x5248e6(0x4de)](_0x5248e6(0x333))?_0x534a66[_0x5248e6(0x1713)]=_0x30684f[_0x5248e6(0x2101)][_0x5248e6(0x896)](_0x534a66[_0x5248e6(0x289a)],_0x894ab7)[_0x5248e6(0x15e7)]:(_0x534a66['query']['id']=_0x534a66[_0x5248e6(0x16a8)]['id'],_0x534a66[_0x5248e6(0x289a)]['section']='SquareProjects',_0x534a66[_0x5248e6(0x1713)]=_0x30684f[_0x5248e6(0x16a8)][_0x5248e6(0x2565)](_0x534a66[_0x5248e6(0x289a)],_0x894ab7)[_0x5248e6(0x15e7)]);}function _0x449b78(_0x5b5671,_0x32dc51){const _0xf737cd=_0x420bcb;_0x49169f['show']({'controller':_0xf737cd(0x2f9),'controllerAs':'vm','templateUrl':_0x395d11,'parent':angular[_0xf737cd(0x1f81)](_0x138613['body']),'targetEvent':_0x5b5671,'clickOutsideToClose':!![],'locals':{'project':_0x32dc51,'projects':_0x534a66['projects'][_0xf737cd(0x28b8)],'openFromEditor':null,'setting':null,'crudPermissions':_0x534a66[_0xf737cd(0x402)]}});}function _0x2247b0(_0x55ac2b){const _0x26ad3c=_0x420bcb;_0x30684f[_0x26ad3c(0x2101)][_0x26ad3c(0xabd)]({'id':_0x55ac2b['id']})[_0x26ad3c(0x15e7)]['then'](function(){const _0x36dbe1=_0x26ad3c;_0x28c606()['remove'](_0x534a66[_0x36dbe1(0x1d73)][_0x36dbe1(0x28b8)],{'id':_0x55ac2b['id']}),_0x534a66[_0x36dbe1(0x1d73)][_0x36dbe1(0xb90)]-=0x1,!_0x534a66[_0x36dbe1(0x1d73)]['rows'][_0x36dbe1(0x1b9e)]&&_0x534a66[_0x36dbe1(0x2938)](),_0x2f0777[_0x36dbe1(0x1339)]({'title':_0x36dbe1(0xe55),'msg':_0x55ac2b[_0x36dbe1(0x2494)]?_0x55ac2b[_0x36dbe1(0x2494)]+_0x36dbe1(0x1fa8):''});})[_0x26ad3c(0x20cd)](function(_0x807d81){const _0x57170b=_0x26ad3c;if(_0x807d81[_0x57170b(0x1c52)]&&_0x807d81[_0x57170b(0x1c52)][_0x57170b(0xbae)]&&_0x807d81['data'][_0x57170b(0xbae)][_0x57170b(0x1b9e)]){_0x534a66['errors']=_0x807d81[_0x57170b(0x1c52)][_0x57170b(0xbae)]||[{'message':_0x807d81[_0x57170b(0x2915)](),'type':_0x57170b(0x13c3)}];for(let _0xd0f6cf=0x0;_0xd0f6cf<_0x807d81[_0x57170b(0x1c52)]['errors']['length'];_0xd0f6cf++){_0x2f0777[_0x57170b(0x1bd0)]({'title':_0x807d81[_0x57170b(0x1c52)][_0x57170b(0xbae)][_0xd0f6cf][_0x57170b(0x2185)],'msg':_0x807d81[_0x57170b(0x1c52)]['errors'][_0xd0f6cf][_0x57170b(0x18ca)]});}}else _0x2f0777[_0x57170b(0x1bd0)]({'title':_0x807d81[_0x57170b(0x10b3)]?_0x57170b(0x575)+_0x807d81[_0x57170b(0x10b3)]+_0x57170b(0x21db)+_0x807d81[_0x57170b(0x2115)]:_0x57170b(0x13c3),'msg':_0x807d81['data']?JSON[_0x57170b(0x2317)](_0x807d81[_0x57170b(0x1c52)][_0x57170b(0x18ca)]):_0x807d81[_0x57170b(0x18ca)]||_0x807d81[_0x57170b(0x2915)]()});});}function _0x371726(){const _0x3eac87=_0x420bcb,_0x258d15=angular[_0x3eac87(0x289e)](_0x534a66[_0x3eac87(0x17c6)]);return _0x534a66[_0x3eac87(0x17c6)]=[],_0x258d15;}function _0x51d5c1(_0x3a04f8){const _0x14a09a=_0x420bcb,_0x40e4b0=_0x49169f['confirm']()[_0x14a09a(0x2021)](_0x14a09a(0x2569))['htmlContent'](''+_0x534a66[_0x14a09a(0x17c6)][_0x14a09a(0x1b9e)]+_0x14a09a(0x163e)+_0x14a09a(0x4b8))[_0x14a09a(0x213e)](_0x14a09a(0x1710))['targetEvent'](_0x3a04f8)['ok']('OK')[_0x14a09a(0x101a)](_0x14a09a(0x18fd));_0x49169f[_0x14a09a(0xa60)](_0x40e4b0)[_0x14a09a(0x64a)](function(){const _0x238db6=_0x14a09a;_0x534a66[_0x238db6(0x17c6)][_0x238db6(0x1397)](function(_0x62a904){_0x2247b0(_0x62a904);}),_0x534a66[_0x238db6(0x17c6)]=[];});}function _0x131bf9(){_0x534a66['selectedProjects']=[];}function _0x5844f6(){const _0x58da23=_0x420bcb;_0x534a66[_0x58da23(0x17c6)]=_0x534a66[_0x58da23(0x1d73)][_0x58da23(0x28b8)];}}const _0x49fee3=_0x8d65e4;;_0x12e912[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad)];function _0x12e912(_0x2c2ce9){const _0x25bd27=_0x49a1e3;_0x2c2ce9[_0x25bd27(0x14f2)](_0x25bd27(0x364),{'url':_0x25bd27(0x2423),'views':{'content@app':{'templateUrl':_0x2268ee,'controller':_0x25bd27(0xe38)}},'resolve':{'projects':[_0x25bd27(0x107c),_0x25bd27(0xdcf),function(_0x4099ba,_0x1c5f63){const _0x29f5d5=_0x25bd27;return _0x1c5f63[_0x29f5d5(0x4de)](_0x29f5d5(0x333))?_0x4099ba['resolve'](_0x29f5d5(0x16c1),{'fields':_0x29f5d5(0x24f2),'sort':_0x29f5d5(0x2494),'limit':0xa,'offset':0x0}):_0x4099ba[_0x29f5d5(0x1268)](_0x29f5d5(0x1758),{'id':_0x1c5f63[_0x29f5d5(0x808)]()[_0x29f5d5(0x21ac)],'section':_0x29f5d5(0x9f4),'fields':_0x29f5d5(0x24f2),'sort':_0x29f5d5(0x2494),'limit':0xa,'offset':0x0});}],'userProfile':[_0x25bd27(0x107c),_0x25bd27(0xdcf),function(_0x58a5bd,_0x55957a){const _0x5e0994=_0x25bd27;return _0x58a5bd[_0x5e0994(0x1268)](_0x5e0994(0x6e3),{'fields':'id,name,crudPermissions','id':_0x55957a[_0x5e0994(0x808)]()[_0x5e0994(0x21ac)]});}],'userProfileSection':[_0x25bd27(0x107c),'Auth',function(_0x33c0bd,_0x3c1460){const _0x1b1cda=_0x25bd27;return _0x33c0bd[_0x1b1cda(0x1268)]('userProfileSection@get',{'fields':_0x1b1cda(0x527),'userProfileId':_0x3c1460[_0x1b1cda(0x808)]()[_0x1b1cda(0x21ac)],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x25bd27(0x268a)})[_0x25bd27(0x14f2)](_0x25bd27(0x1cea),{'url':_0x25bd27(0x144a),'views':{'content@app':{'templateUrl':_0x1f5be7,'controller':'ProjectController\x20as\x20vm'}},'params':{'crudPermissions':undefined},'resolve':{'project':['apiResolver',_0x25bd27(0x1fbb),function(_0x1f67b1,_0x1ada85){const _0xf789e1=_0x25bd27;return _0x1f67b1['resolve'](_0xf789e1(0x16c1),{'id':_0x1ada85['id']});}],'users':[_0x25bd27(0x107c),_0x25bd27(0xdcf),function(_0x2b44eb,_0x24bc44){const _0xc2dee2=_0x25bd27;return _0x24bc44[_0xc2dee2(0x4de)](_0xc2dee2(0x333))?_0x2b44eb[_0xc2dee2(0x1268)]('user@get',{'fields':_0xc2dee2(0xe86),'sort':_0xc2dee2(0x2494),'nolimit':!![]}):_0x2b44eb[_0xc2dee2(0x1268)](_0xc2dee2(0x1758),{'id':_0x24bc44['getCurrentUser']()[_0xc2dee2(0x21ac)],'section':_0xc2dee2(0x25d3),'mergeResources':!![],'fields':_0xc2dee2(0xe86),'sort':'name','nolimit':!![]});}],'trunks':[_0x25bd27(0x107c),'Auth',function(_0x4b918a,_0x45bdd7){const _0xec05f0=_0x25bd27;return _0x45bdd7['hasRole'](_0xec05f0(0x333))?_0x4b918a['resolve'](_0xec05f0(0x1727),{'fields':'id,name','sort':_0xec05f0(0x2494),'nolimit':!![]}):_0x4b918a[_0xec05f0(0x1268)](_0xec05f0(0x1758),{'id':_0x45bdd7[_0xec05f0(0x808)]()[_0xec05f0(0x21ac)],'section':_0xec05f0(0x740),'fields':_0xec05f0(0x1427),'sort':_0xec05f0(0x2494),'nolimit':!![]});}],'queues':[_0x25bd27(0x107c),'Auth',function(_0x4cff9b,_0x5267c5){const _0x12b88f=_0x25bd27;return _0x5267c5[_0x12b88f(0x4de)]('admin')?_0x4cff9b[_0x12b88f(0x1268)](_0x12b88f(0x1c51),{'type':_0x12b88f(0x12a4),'fields':_0x12b88f(0x1427),'sort':'name','nolimit':!![]}):_0x4cff9b[_0x12b88f(0x1268)](_0x12b88f(0x1758),{'id':_0x5267c5[_0x12b88f(0x808)]()[_0x12b88f(0x21ac)],'section':_0x12b88f(0x2110),'type':_0x12b88f(0x12a4),'fields':_0x12b88f(0x1427),'sort':_0x12b88f(0x2494),'nolimit':!![]});}],'sounds':[_0x25bd27(0x107c),_0x25bd27(0xdcf),function(_0x42b25a,_0x23f652){const _0x844bfc=_0x25bd27;return _0x23f652[_0x844bfc(0x4de)]('admin')?_0x42b25a['resolve'](_0x844bfc(0xd10),{'fields':_0x844bfc(0x1427),'sort':'name','nolimit':!![]}):_0x42b25a['resolve'](_0x844bfc(0x1758),{'id':_0x23f652[_0x844bfc(0x808)]()[_0x844bfc(0x21ac)],'section':_0x844bfc(0x28c3),'fields':'id,name','sort':_0x844bfc(0x2494),'nolimit':!![]});}],'variables':[_0x25bd27(0x107c),_0x25bd27(0xdcf),function(_0xf7dd47,_0x4d2fca){const _0x578ba5=_0x25bd27;return _0x4d2fca['hasRole']('admin')?_0xf7dd47[_0x578ba5(0x1268)](_0x578ba5(0x1be8),{'fields':_0x578ba5(0x1427),'sort':_0x578ba5(0x2494),'nolimit':!![]}):_0xf7dd47[_0x578ba5(0x1268)]('userProfile@getResources',{'id':_0x4d2fca[_0x578ba5(0x808)]()[_0x578ba5(0x21ac)],'section':'Variables','fields':_0x578ba5(0x1427),'sort':_0x578ba5(0x2494),'nolimit':!![]});}],'databases':[_0x25bd27(0x107c),_0x25bd27(0xdcf),function(_0xfe0eed,_0xbe5f88){const _0x36d968=_0x25bd27;return _0xbe5f88[_0x36d968(0x4de)](_0x36d968(0x333))?_0xfe0eed[_0x36d968(0x1268)](_0x36d968(0x2715),{'fields':_0x36d968(0x1427),'sort':_0x36d968(0x2494),'nolimit':!![]}):_0xfe0eed[_0x36d968(0x1268)](_0x36d968(0x1758),{'id':_0xbe5f88[_0x36d968(0x808)]()[_0x36d968(0x21ac)],'section':_0x36d968(0xa82),'fields':'id,name','sort':_0x36d968(0x2494),'nolimit':!![]});}],'projects':[_0x25bd27(0x107c),_0x25bd27(0xdcf),function(_0x28494e,_0x2aab2d){const _0x4d611a=_0x25bd27;return _0x2aab2d[_0x4d611a(0x4de)]('admin')?_0x28494e[_0x4d611a(0x1268)](_0x4d611a(0x16c1),{'fields':_0x4d611a(0x1427),'sort':_0x4d611a(0x2494),'nolimit':!![]}):_0x28494e[_0x4d611a(0x1268)](_0x4d611a(0x1758),{'id':_0x2aab2d['getCurrentUser']()[_0x4d611a(0x21ac)],'section':_0x4d611a(0x9f4),'fields':_0x4d611a(0x1427),'sort':'name','nolimit':!![]});}],'contexts':[_0x25bd27(0x107c),_0x25bd27(0xdcf),function(_0x301f90,_0x5e96db){const _0x194770=_0x25bd27;return _0x5e96db[_0x194770(0x4de)](_0x194770(0x333))?_0x301f90[_0x194770(0x1268)](_0x194770(0xdc5),{'fields':_0x194770(0x1427),'sort':_0x194770(0x2494),'nolimit':!![]}):_0x301f90[_0x194770(0x1268)]('userProfile@getResources',{'id':_0x5e96db[_0x194770(0x808)]()['userProfileId'],'section':'Contexts','fields':_0x194770(0x1427),'sort':_0x194770(0x2494),'nolimit':!![]});}],'intervals':[_0x25bd27(0x107c),_0x25bd27(0xdcf),function(_0x180cbf,_0x6cac75){const _0x12cf79=_0x25bd27;return _0x6cac75[_0x12cf79(0x4de)](_0x12cf79(0x333))?_0x180cbf[_0x12cf79(0x1268)](_0x12cf79(0x329),{'fields':_0x12cf79(0x2471),'sort':_0x12cf79(0x2494),'nolimit':!![]}):_0x180cbf[_0x12cf79(0x1268)](_0x12cf79(0x1758),{'id':_0x6cac75[_0x12cf79(0x808)]()[_0x12cf79(0x21ac)],'section':_0x12cf79(0x2288),'fields':'id,name,IntervalId','sort':_0x12cf79(0x2494),'nolimit':!![]});}],'mailAccounts':[_0x25bd27(0x107c),_0x25bd27(0xdcf),function(_0x1ddbbc,_0x477b56){const _0x4156fc=_0x25bd27;return _0x477b56[_0x4156fc(0x4de)](_0x4156fc(0x333))?_0x1ddbbc['resolve'](_0x4156fc(0x1cdb),{'fields':'id,name','sort':_0x4156fc(0x2494),'nolimit':!![]}):_0x1ddbbc[_0x4156fc(0x1268)](_0x4156fc(0x1758),{'id':_0x477b56[_0x4156fc(0x808)]()['userProfileId'],'section':'MailAccounts','fields':_0x4156fc(0x1427),'sort':'name','nolimit':!![]});}],'templates':['apiResolver','Auth',function(_0x6179b,_0x21f879){const _0x5766b1=_0x25bd27;return _0x21f879[_0x5766b1(0x4de)](_0x5766b1(0x333))?_0x6179b[_0x5766b1(0x1268)](_0x5766b1(0x1af5),{'fields':'id,name','sort':_0x5766b1(0x2494),'nolimit':!![]}):_0x6179b[_0x5766b1(0x1268)](_0x5766b1(0x1758),{'id':_0x21f879['getCurrentUser']()['userProfileId'],'section':_0x5766b1(0x1383),'fields':_0x5766b1(0x1427),'sort':_0x5766b1(0x2494),'nolimit':!![]});}],'lists':[_0x25bd27(0x107c),'Auth',function(_0x3c8244,_0x5f3188){const _0x2ab00d=_0x25bd27;return _0x5f3188[_0x2ab00d(0x4de)](_0x2ab00d(0x333))?_0x3c8244['resolve'](_0x2ab00d(0x13d2),{'fields':_0x2ab00d(0x1427),'sort':'name','nolimit':!![]}):_0x3c8244[_0x2ab00d(0x1268)]('userProfile@getResources',{'id':_0x5f3188[_0x2ab00d(0x808)]()[_0x2ab00d(0x21ac)],'section':_0x2ab00d(0x386),'fields':_0x2ab00d(0x1427),'sort':_0x2ab00d(0x2494),'nolimit':!![]});}],'smsAccounts':['apiResolver',_0x25bd27(0xdcf),function(_0x3c66e8,_0x512662){const _0x1ab9e1=_0x25bd27;return _0x512662[_0x1ab9e1(0x4de)](_0x1ab9e1(0x333))?_0x3c66e8[_0x1ab9e1(0x1268)](_0x1ab9e1(0x1c75),{'fields':_0x1ab9e1(0x1427),'sort':'name','nolimit':!![]}):_0x3c66e8[_0x1ab9e1(0x1268)](_0x1ab9e1(0x1758),{'id':_0x512662[_0x1ab9e1(0x808)]()['userProfileId'],'section':_0x1ab9e1(0x29a),'fields':_0x1ab9e1(0x1427),'sort':'name','nolimit':!![]});}],'pauses':[_0x25bd27(0x107c),_0x25bd27(0xdcf),function(_0x2e22a8,_0x4288f9){const _0x3c453f=_0x25bd27;return _0x4288f9[_0x3c453f(0x4de)]('admin')?_0x2e22a8[_0x3c453f(0x1268)](_0x3c453f(0x1fae),{'fields':_0x3c453f(0x1427),'sort':'name','nolimit':!![]}):_0x2e22a8['resolve'](_0x3c453f(0x1758),{'id':_0x4288f9[_0x3c453f(0x808)]()[_0x3c453f(0x21ac)],'section':'Pauses','fields':_0x3c453f(0x1427),'sort':_0x3c453f(0x2494),'nolimit':!![]});}],'userProfileSection':['apiResolver',_0x25bd27(0xdcf),function(_0x106368,_0x55e7c1){const _0x2d7267=_0x25bd27;return _0x106368[_0x2d7267(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x55e7c1[_0x2d7267(0x808)]()[_0x2d7267(0x21ac)],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x25bd27(0x268a)});}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x364),[])[_0x49a1e3(0x3d3)](_0x12e912)[_0x49a1e3(0x38e)](_0x49a1e3(0x2f9),_0x1ccf04)[_0x49a1e3(0x38e)](_0x49a1e3(0x2270),_0x5e9907)[_0x49a1e3(0xb2a)]('stringToNumber',_0x2b665d)[_0x49a1e3(0x646)](_0x49a1e3(0x1b5),_0x3476da)[_0x49a1e3(0x646)]('ispeechAsrLanguage',_0x25e5a6)[_0x49a1e3(0x646)](_0x49a1e3(0x12d3),_0x5d346e)['factory']('googleCloudTtslanguageCode',_0x1d0273)['factory'](_0x49a1e3(0x11b5),_0x1a61f7)['factory']('googleAsrLanguage',_0x268d29)['factory'](_0x49a1e3(0x133b),_0x186c6f)['factory'](_0x49a1e3(0xd85),_0x10f318)[_0x49a1e3(0x646)](_0x49a1e3(0xa84),_0x3cbdfb)['factory'](_0x49a1e3(0x2385),_0x16c205)[_0x49a1e3(0x646)]('dialogFlowV2Language',_0x815bba)[_0x49a1e3(0x38e)](_0x49a1e3(0x1d7a),_0x422d35)['controller'](_0x49a1e3(0x5e2),_0x29aa24)[_0x49a1e3(0x38e)]('MxGraphUpdateInfoController',_0x12f6a9)[_0x49a1e3(0x38e)]('MxGraphOpenProjectController',_0x4f19cc)[_0x49a1e3(0x38e)](_0x49a1e3(0xbb2),_0x54b953)['controller']('MxGraphSaveProjectAsController',_0x445946)[_0x49a1e3(0x38e)](_0x49a1e3(0x2c7),_0x5a0880)['controller'](_0x49a1e3(0x2097),_0x49fee3);;const _0x8e4fc7=_0x2e4a48['p']+_0x49a1e3(0x21af);;const _0x3e5250=_0x2e4a48['p']+_0x49a1e3(0x273b);;_0x511ee4[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location','$mdDialog','$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x24df),_0x49a1e3(0x291e),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6),'crudPermissions'];function _0x511ee4(_0x2f2bca,_0x5ebcbf,_0x28a49b,_0xa75bb3,_0x1fc24d,_0x380df6,_0x3dabae,_0x1ae506,_0x66fe97,_0x31c74b,_0x2d884a,_0x4077d3,_0x238310,_0x4b0b68){const _0x341ee7=_0x49a1e3,_0x361747=this;_0x361747['currentUser']=_0x2d884a[_0x341ee7(0x808)](),_0x361747[_0x341ee7(0xbae)]=[],_0x361747[_0x341ee7(0x28d6)]=_0x238310,_0x361747['license']=_0x4077d3,_0x361747[_0x341ee7(0x402)]=_0x4b0b68,_0x361747['hasModulePermissions']={},_0x361747[_0x341ee7(0xccc)]=_0x361747[_0x341ee7(0x28d6)]&&_0x361747['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x361747['title']=_0x341ee7(0x12ca),_0x361747[_0x341ee7(0x291e)]=angular[_0x341ee7(0x289e)](_0x66fe97),_0x361747[_0x341ee7(0x24df)]=_0x1ae506,_0x361747[_0x341ee7(0x16a1)]=![];!_0x361747['odbc']&&(_0x361747[_0x341ee7(0x291e)]={},_0x361747[_0x341ee7(0x2021)]='CALLYSQUARE.NEW_ODBC',_0x361747[_0x341ee7(0x16a1)]=!![]);_0x361747[_0x341ee7(0x21f7)]=_0x21449f,_0x361747[_0x341ee7(0x10ca)]=_0x379c92,_0x361747[_0x341ee7(0x12ba)]=_0x42afb4,_0x361747[_0x341ee7(0x1605)]=_0x341bfe,_0x361747[_0x341ee7(0x16cb)]=_0x40a8bf;function _0x21449f(){const _0x2c2206=_0x341ee7;_0x361747[_0x2c2206(0xbae)]=[],_0x31c74b[_0x2c2206(0x1886)][_0x2c2206(0x2479)](_0x361747[_0x2c2206(0x291e)])[_0x2c2206(0x15e7)][_0x2c2206(0x64a)](function(_0x5335c1){const _0x555469=_0x2c2206;_0x361747[_0x555469(0x24df)]['unshift'](_0x5335c1[_0x555469(0x14f8)]()),_0x3dabae[_0x555469(0x1339)]({'title':_0x555469(0x1044),'msg':_0x361747['odbc'][_0x555469(0x2494)]?_0x361747[_0x555469(0x291e)][_0x555469(0x2494)]+'\x20has\x20been\x20created!':''}),_0x40a8bf(_0x5335c1);})[_0x2c2206(0x20cd)](function(_0x241d7b){const _0x5bb2cd=_0x2c2206;if(_0x241d7b[_0x5bb2cd(0x1c52)]&&_0x241d7b[_0x5bb2cd(0x1c52)][_0x5bb2cd(0xbae)]&&_0x241d7b[_0x5bb2cd(0x1c52)][_0x5bb2cd(0xbae)][_0x5bb2cd(0x1b9e)]){_0x361747[_0x5bb2cd(0xbae)]=_0x241d7b[_0x5bb2cd(0x1c52)]['errors']||[{'message':_0x241d7b[_0x5bb2cd(0x2915)](),'type':_0x5bb2cd(0x99b)}];for(let _0x2e4265=0x0;_0x2e4265<_0x241d7b['data']['errors'][_0x5bb2cd(0x1b9e)];_0x2e4265+=0x1){_0x3dabae[_0x5bb2cd(0x1bd0)]({'title':_0x241d7b[_0x5bb2cd(0x1c52)][_0x5bb2cd(0xbae)][_0x2e4265]['type'],'msg':_0x241d7b[_0x5bb2cd(0x1c52)]['errors'][_0x2e4265][_0x5bb2cd(0x18ca)]});}}else _0x3dabae[_0x5bb2cd(0x1bd0)]({'title':_0x241d7b[_0x5bb2cd(0x10b3)]?_0x5bb2cd(0x575)+_0x241d7b[_0x5bb2cd(0x10b3)]+'\x20-\x20'+_0x241d7b[_0x5bb2cd(0x2115)]:_0x5bb2cd(0x99b),'msg':_0x241d7b[_0x5bb2cd(0x1c52)]?JSON[_0x5bb2cd(0x2317)](_0x241d7b['data']['message']):_0x241d7b[_0x5bb2cd(0x2915)]()});});}function _0x379c92(){const _0x3c168a=_0x341ee7;_0x361747['errors']=[],_0x31c74b[_0x3c168a(0x1886)]['update']({'id':_0x361747['odbc']['id']},_0x361747[_0x3c168a(0x291e)])[_0x3c168a(0x15e7)]['then'](function(_0x4053c8){const _0x561e61=_0x3c168a,_0x3d351c=_0x28c606()['find'](_0x361747[_0x561e61(0x24df)],{'id':_0x4053c8['id']});_0x3d351c&&_0x28c606()[_0x561e61(0x14fe)](_0x3d351c,_0x28c606()['pick'](_0x4053c8[_0x561e61(0x14f8)](),_0x28c606()['keys'](_0x3d351c))),_0x3dabae['success']({'title':_0x561e61(0x2152),'msg':_0x361747['odbc'][_0x561e61(0x2494)]?_0x361747['odbc']['name']+_0x561e61(0x271):''}),_0x40a8bf(_0x4053c8);})[_0x3c168a(0x20cd)](function(_0x4858cc){const _0x372955=_0x3c168a;if(_0x4858cc[_0x372955(0x1c52)]&&_0x4858cc[_0x372955(0x1c52)][_0x372955(0xbae)]&&_0x4858cc['data'][_0x372955(0xbae)]['length']){_0x361747[_0x372955(0xbae)]=_0x4858cc['data']['errors']||[{'message':_0x4858cc[_0x372955(0x2915)](),'type':_0x372955(0x6b6)}];for(let _0x2fb6f6=0x0;_0x2fb6f6<_0x4858cc['data'][_0x372955(0xbae)][_0x372955(0x1b9e)];_0x2fb6f6++){_0x3dabae[_0x372955(0x1bd0)]({'title':_0x4858cc['data'][_0x372955(0xbae)][_0x2fb6f6][_0x372955(0x2185)],'msg':_0x4858cc[_0x372955(0x1c52)][_0x372955(0xbae)][_0x2fb6f6][_0x372955(0x18ca)]});}}else _0x3dabae[_0x372955(0x1bd0)]({'title':_0x4858cc[_0x372955(0x10b3)]?_0x372955(0x575)+_0x4858cc[_0x372955(0x10b3)]+'\x20-\x20'+_0x4858cc[_0x372955(0x2115)]:'api.squareOdbc.update','msg':_0x4858cc[_0x372955(0x1c52)]?JSON['stringify'](_0x4858cc['data'][_0x372955(0x18ca)]):_0x4858cc[_0x372955(0x2915)]()});});}function _0x42afb4(_0x332f24){const _0x4f9ab7=_0x341ee7;_0x361747[_0x4f9ab7(0xbae)]=[];const _0x1e4300=_0xa75bb3[_0x4f9ab7(0x856)]()[_0x4f9ab7(0x2021)](_0x4f9ab7(0x103a))[_0x4f9ab7(0x12b8)](_0x4f9ab7(0x238a))['ariaLabel'](_0x4f9ab7(0x19ce))['ok'](_0x4f9ab7(0x2664))[_0x4f9ab7(0x101a)](_0x4f9ab7(0x1dc6))[_0x4f9ab7(0x2283)](_0x332f24);_0xa75bb3[_0x4f9ab7(0xa60)](_0x1e4300)[_0x4f9ab7(0x64a)](function(){const _0x4de1be=_0x4f9ab7;_0x31c74b[_0x4de1be(0x1886)][_0x4de1be(0xabd)]({'id':_0x361747[_0x4de1be(0x291e)]['id']})[_0x4de1be(0x15e7)][_0x4de1be(0x64a)](function(){const _0x317213=_0x4de1be;_0x28c606()[_0x317213(0x21c7)](_0x361747[_0x317213(0x24df)],{'id':_0x361747['odbc']['id']}),_0x3dabae[_0x317213(0x1339)]({'title':_0x317213(0xb62),'msg':(_0x361747[_0x317213(0x291e)]['name']||_0x317213(0x291e))+_0x317213(0x1fa8)}),_0x40a8bf(_0x361747[_0x317213(0x291e)]);})[_0x4de1be(0x20cd)](function(_0x3e28fe){const _0x118989=_0x4de1be;if(_0x3e28fe[_0x118989(0x1c52)]&&_0x3e28fe[_0x118989(0x1c52)]['errors']&&_0x3e28fe['data']['errors'][_0x118989(0x1b9e)]){_0x361747['errors']=_0x3e28fe[_0x118989(0x1c52)]['errors']||[{'message':_0x3e28fe[_0x118989(0x2915)](),'type':_0x118989(0xc45)}];for(let _0x110827=0x0;_0x110827<_0x3e28fe[_0x118989(0x1c52)]['errors']['length'];_0x110827++){_0x3dabae[_0x118989(0x1bd0)]({'title':_0x3e28fe[_0x118989(0x1c52)]['errors'][_0x110827]['type'],'msg':_0x3e28fe[_0x118989(0x1c52)][_0x118989(0xbae)][_0x110827]['message']});}}else _0x3dabae['error']({'title':_0x3e28fe[_0x118989(0x10b3)]?_0x118989(0x575)+_0x3e28fe[_0x118989(0x10b3)]+_0x118989(0x21db)+_0x3e28fe[_0x118989(0x2115)]:'api.squareOdbc.delete','msg':_0x3e28fe[_0x118989(0x1c52)]?JSON[_0x118989(0x2317)](_0x3e28fe[_0x118989(0x1c52)][_0x118989(0x18ca)]):_0x3e28fe[_0x118989(0x18ca)]||_0x3e28fe[_0x118989(0x2915)]()});});},function(){});}function _0x341bfe(_0x5e3b51){return _0x5e3b51===null?undefined:new Date(_0x5e3b51);}function _0x40a8bf(_0x39755b){_0xa75bb3['hide'](_0x39755b);}}const _0x4acff6=_0x511ee4;;const _0x970dd8=_0x2e4a48['p']+_0x49a1e3(0x219);;_0x3e5eb8[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x24df),_0x49a1e3(0x16a8),'userProfileSection','api',_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6)];function _0x3e5eb8(_0x1ffd2a,_0x306fbf,_0x1a498c,_0x34ecbe,_0x28717e,_0x698ed5,_0x297ed6,_0x513854,_0x63a660,_0x22b348,_0x15f9e6,_0x38abe2,_0x4637d9,_0x3fdc9b,_0x45c6b8,_0x4ab522,_0x32bda5){const _0x38c64e=_0x49a1e3,_0x469a0e=this;_0x469a0e['license']=_0x4ab522,_0x469a0e[_0x38c64e(0x28d6)]=_0x32bda5,_0x469a0e['currentUser']=_0x45c6b8['getCurrentUser'](),_0x469a0e[_0x38c64e(0x24df)]=_0x63a660||{'count':0x0,'rows':[]},_0x469a0e[_0x38c64e(0x16a8)]=_0x22b348,_0x469a0e[_0x38c64e(0x16b2)]=_0x15f9e6&&_0x15f9e6[_0x38c64e(0xb90)]==0x1?_0x15f9e6[_0x38c64e(0x28b8)][0x0]:null,_0x469a0e[_0x38c64e(0x402)]=_0x45c6b8[_0x38c64e(0xa7e)](_0x469a0e[_0x38c64e(0x16b2)]?_0x469a0e['userProfileSection'][_0x38c64e(0x402)]:null),_0x469a0e[_0x38c64e(0x185d)]=_0x38c64e(0x24df),_0x469a0e[_0x38c64e(0x300)]='',_0x469a0e[_0x38c64e(0x2748)]=null,_0x469a0e['selectedODBC']=[],_0x469a0e[_0x38c64e(0x289a)]={'fields':'createdAt,updatedAt,id,name,dsn,description','sort':'-updatedAt','limit':0xa,'page':0x1},_0x469a0e[_0x38c64e(0x1c42)]=_0x2a9506,_0x469a0e[_0x38c64e(0x1647)]=_0x554b31,_0x469a0e[_0x38c64e(0x1262)]=_0x50c29e,_0x469a0e['success']=_0x22e27d,_0x469a0e[_0x38c64e(0xe25)]=_0x24926f,_0x469a0e[_0x38c64e(0x2170)]=_0x2c4844,_0x469a0e[_0x38c64e(0x12ba)]=_0x11e56e,_0x469a0e[_0x38c64e(0x1882)]=_0x43090a,_0x469a0e[_0x38c64e(0x18d1)]=_0x431421,_0x469a0e[_0x38c64e(0x11b8)]=_0x1a0321,_0x469a0e[_0x38c64e(0x508)]=_0x10cb62;function _0x2a9506(_0x18b1a2,_0x5adf33){const _0x149f0b=_0x38c64e;_0x28717e[_0x149f0b(0xa60)]({'controller':_0x149f0b(0x271d),'controllerAs':'vm','templateUrl':_0x970dd8,'parent':angular[_0x149f0b(0x1f81)](_0x698ed5[_0x149f0b(0xb49)]),'targetEvent':_0x5adf33,'clickOutsideToClose':!![],'locals':{'odbc':_0x18b1a2,'odbcs':_0x469a0e[_0x149f0b(0x24df)]['rows'],'license':_0x469a0e[_0x149f0b(0x1947)],'setting':null,'crudPermissions':_0x469a0e[_0x149f0b(0x402)]}});}function _0x554b31(_0x536baa){const _0x1ad20c=_0x38c64e;return _0x38abe2[_0x1ad20c(0x1886)][_0x1ad20c(0xa33)]({'id':_0x536baa['id']})['$promise'][_0x1ad20c(0x64a)](function(){const _0x4da437=_0x1ad20c;_0x3fdc9b['success']({'title':_0x4da437(0x5ee),'msg':_0x4da437(0x259b)});})[_0x1ad20c(0x20cd)](function(_0x4945d7){const _0x140d08=_0x1ad20c;_0x3fdc9b[_0x140d08(0x1bd0)]({'title':_0x140d08(0x5ee),'msg':_0x4945d7[_0x140d08(0x1c52)]?JSON[_0x140d08(0x2317)](_0x4945d7[_0x140d08(0x1c52)]):_0x4945d7[_0x140d08(0x2915)]()});});}function _0x50c29e(_0x2e9123,_0x40b574){const _0x13ff6b=_0x38c64e,_0x10b69b=_0x28717e['confirm']()[_0x13ff6b(0x2021)](_0x13ff6b(0x1231)+_0x28c606()[_0x13ff6b(0xc01)](_0x13ff6b(0x291e))+'?')['htmlContent'](_0x13ff6b(0x50b)+(_0x2e9123[_0x13ff6b(0x2494)]||_0x13ff6b(0x291e))+''+_0x13ff6b(0x4b8))[_0x13ff6b(0x213e)]('delete\x20odbc')['targetEvent'](_0x40b574)['ok']('OK')[_0x13ff6b(0x101a)](_0x13ff6b(0x18fd));_0x28717e[_0x13ff6b(0xa60)](_0x10b69b)[_0x13ff6b(0x64a)](function(){_0x11e56e(_0x2e9123);},function(){const _0x40270b=_0x13ff6b;console[_0x40270b(0x9b4)](_0x40270b(0x18fd));});}let _0x4f156d=!![],_0x4703c9=0x1;_0x1ffd2a[_0x38c64e(0xc62)](_0x38c64e(0x1cb9),function(_0x79da8a,_0x1a3896){const _0x48b109=_0x38c64e;_0x4f156d?_0x297ed6(function(){_0x4f156d=![];}):(!_0x1a3896&&(_0x4703c9=_0x469a0e['query'][_0x48b109(0xc72)]),_0x79da8a!==_0x1a3896&&(_0x469a0e[_0x48b109(0x289a)]['page']=0x1),!_0x79da8a&&(_0x469a0e[_0x48b109(0x289a)][_0x48b109(0xc72)]=_0x4703c9),_0x469a0e['getODBC']());});function _0x22e27d(_0x121c8b){const _0x40f4d0=_0x38c64e;_0x469a0e[_0x40f4d0(0x24df)]=_0x121c8b||{'count':0x0,'rows':[]};}function _0x24926f(){const _0x2296a8=_0x38c64e;_0x469a0e[_0x2296a8(0x289a)][_0x2296a8(0x24f9)]=(_0x469a0e[_0x2296a8(0x289a)][_0x2296a8(0xc72)]-0x1)*_0x469a0e[_0x2296a8(0x289a)][_0x2296a8(0x25bb)],_0x45c6b8[_0x2296a8(0x4de)](_0x2296a8(0x333))?_0x469a0e[_0x2296a8(0x1713)]=_0x38abe2[_0x2296a8(0x1886)][_0x2296a8(0x896)](_0x469a0e['query'],_0x22e27d)['$promise']:(_0x469a0e['query']['id']=_0x469a0e[_0x2296a8(0x16a8)]['id'],_0x469a0e['query'][_0x2296a8(0xa21)]=_0x2296a8(0xa82),_0x469a0e[_0x2296a8(0x1713)]=_0x38abe2[_0x2296a8(0x16a8)][_0x2296a8(0x2565)](_0x469a0e[_0x2296a8(0x289a)],_0x22e27d)[_0x2296a8(0x15e7)]);}function _0x2c4844(_0x3ff776,_0x3f6dbf){const _0x5b0120=_0x38c64e;_0x28717e[_0x5b0120(0xa60)]({'controller':'CreateOrEditOdbcDialogController','controllerAs':'vm','templateUrl':_0x970dd8,'parent':angular[_0x5b0120(0x1f81)](_0x698ed5[_0x5b0120(0xb49)]),'targetEvent':_0x3ff776,'clickOutsideToClose':!![],'locals':{'odbc':_0x3f6dbf,'odbcs':_0x469a0e[_0x5b0120(0x24df)][_0x5b0120(0x28b8)],'license':_0x469a0e[_0x5b0120(0x1947)],'setting':_0x469a0e[_0x5b0120(0x28d6)],'crudPermissions':_0x469a0e[_0x5b0120(0x402)]}});}function _0x11e56e(_0x4bb73c){const _0x5a5a24=_0x38c64e;_0x38abe2['squareOdbc'][_0x5a5a24(0xabd)]({'id':_0x4bb73c['id']})[_0x5a5a24(0x15e7)]['then'](function(){const _0x48b8c1=_0x5a5a24;_0x28c606()[_0x48b8c1(0x21c7)](_0x469a0e['odbcs']['rows'],{'id':_0x4bb73c['id']}),_0x469a0e[_0x48b8c1(0x24df)][_0x48b8c1(0xb90)]-=0x1,!_0x469a0e[_0x48b8c1(0x24df)]['rows']['length']&&_0x469a0e[_0x48b8c1(0xe25)](),_0x3fdc9b[_0x48b8c1(0x1339)]({'title':_0x28c606()[_0x48b8c1(0xc01)](_0x48b8c1(0x3b2))+_0x48b8c1(0x2502),'msg':_0x4bb73c['name']?_0x4bb73c[_0x48b8c1(0x2494)]+_0x48b8c1(0x1fa8):''});})[_0x5a5a24(0x20cd)](function(_0x5e3267){const _0x50d82a=_0x5a5a24;if(_0x5e3267[_0x50d82a(0x1c52)]&&_0x5e3267[_0x50d82a(0x1c52)]['errors']&&_0x5e3267['data'][_0x50d82a(0xbae)][_0x50d82a(0x1b9e)]){_0x469a0e[_0x50d82a(0xbae)]=_0x5e3267[_0x50d82a(0x1c52)][_0x50d82a(0xbae)]||[{'message':_0x5e3267[_0x50d82a(0x2915)](),'type':_0x50d82a(0x14a0)}];for(let _0x2d28ef=0x0;_0x2d28ef<_0x5e3267[_0x50d82a(0x1c52)][_0x50d82a(0xbae)][_0x50d82a(0x1b9e)];_0x2d28ef++){_0x3fdc9b[_0x50d82a(0x1bd0)]({'title':_0x5e3267[_0x50d82a(0x1c52)][_0x50d82a(0xbae)][_0x2d28ef][_0x50d82a(0x2185)],'msg':_0x5e3267[_0x50d82a(0x1c52)]['errors'][_0x2d28ef][_0x50d82a(0x18ca)]});}}else _0x3fdc9b[_0x50d82a(0x1bd0)]({'title':_0x5e3267[_0x50d82a(0x10b3)]?_0x50d82a(0x575)+_0x5e3267['status']+_0x50d82a(0x21db)+_0x5e3267['statusText']:_0x50d82a(0x14a0),'msg':_0x5e3267[_0x50d82a(0x1c52)]?JSON[_0x50d82a(0x2317)](_0x5e3267[_0x50d82a(0x1c52)][_0x50d82a(0x18ca)]):_0x5e3267['message']||_0x5e3267['toString']()});});}function _0x43090a(){const _0x192bab=_0x38c64e,_0x322596=angular[_0x192bab(0x289e)](_0x469a0e[_0x192bab(0xef1)]);return _0x469a0e[_0x192bab(0xef1)]=[],_0x322596;}function _0x431421(_0x1e1669){const _0x37f68c=_0x38c64e,_0x4b36c7=_0x28717e['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20odbcs?')[_0x37f68c(0x33a)](_0x37f68c(0x50b)+_0x469a0e[_0x37f68c(0xef1)][_0x37f68c(0x1b9e)]+_0x37f68c(0x163e)+_0x37f68c(0x4b8))[_0x37f68c(0x213e)](_0x37f68c(0x1544))[_0x37f68c(0x2283)](_0x1e1669)['ok']('OK')[_0x37f68c(0x101a)](_0x37f68c(0x18fd));_0x28717e['show'](_0x4b36c7)[_0x37f68c(0x64a)](function(){const _0x50ef5c=_0x37f68c;_0x469a0e['selectedODBC'][_0x50ef5c(0x1397)](function(_0x53f00b){_0x11e56e(_0x53f00b);}),_0x469a0e[_0x50ef5c(0xef1)]=[];});}function _0x1a0321(){_0x469a0e['selectedODBC']=[];}function _0x10cb62(){const _0x5b835a=_0x38c64e;_0x469a0e['selectedODBC']=_0x469a0e[_0x5b835a(0x24df)][_0x5b835a(0x28b8)];}}const _0x189834=_0x3e5eb8;;_0x3d6097[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog','$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),'squareRecordings',_0x49a1e3(0x59a),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x3d6097(_0xa7f971,_0x48f097,_0x155e3e,_0x4a0f5b,_0x359366,_0x6edce8,_0x29df98,_0x2a72d0,_0x5d1335,_0x5511ea,_0x1a05e6,_0x59ffca,_0x1401b7,_0x18d888){const _0x6ab59=_0x49a1e3,_0x25643f=this;_0x25643f[_0x6ab59(0x1d3d)]=_0x1a05e6[_0x6ab59(0x808)](),_0x25643f[_0x6ab59(0xbae)]=[],_0x25643f[_0x6ab59(0x28d6)]=_0x1401b7,_0x25643f[_0x6ab59(0x1947)]=_0x59ffca,_0x25643f[_0x6ab59(0x402)]=_0x18d888,_0x25643f[_0x6ab59(0x6c2)]={},_0x25643f[_0x6ab59(0xccc)]=_0x25643f[_0x6ab59(0x28d6)]&&_0x25643f['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x25643f[_0x6ab59(0x2021)]=_0x6ab59(0x1f9c),_0x25643f[_0x6ab59(0x59a)]=angular['copy'](_0x5d1335),_0x25643f[_0x6ab59(0xdbf)]=_0x2a72d0,_0x25643f[_0x6ab59(0x1b47)]=![];!_0x25643f[_0x6ab59(0x59a)]&&(_0x25643f['squareRecording']={},_0x25643f[_0x6ab59(0x2021)]=_0x6ab59(0x480),_0x25643f['newSquareRecording']=!![]);_0x25643f[_0x6ab59(0x1eb5)]=_0x2e7f8b,_0x25643f[_0x6ab59(0x1d93)]=_0x353d4d,_0x25643f[_0x6ab59(0x233)]=_0x1c4c1c,_0x25643f[_0x6ab59(0x1605)]=_0x59a160,_0x25643f['closeDialog']=_0xef9d63;function _0x2e7f8b(){const _0x25b2f0=_0x6ab59;_0x25643f[_0x25b2f0(0xbae)]=[],_0x5511ea['squareRecording'][_0x25b2f0(0x2479)](_0x25643f[_0x25b2f0(0x59a)])[_0x25b2f0(0x15e7)][_0x25b2f0(0x64a)](function(_0x3465e6){const _0x3c49af=_0x25b2f0;_0x25643f[_0x3c49af(0xdbf)][_0x3c49af(0x1891)](_0x3465e6[_0x3c49af(0x14f8)]()),_0x29df98[_0x3c49af(0x1339)]({'title':_0x3c49af(0x1c19),'msg':_0x25643f[_0x3c49af(0x59a)][_0x3c49af(0x2494)]?_0x25643f[_0x3c49af(0x59a)]['name']+_0x3c49af(0x258d):''}),_0xef9d63(_0x3465e6);})[_0x25b2f0(0x20cd)](function(_0x55dc15){const _0x3d4c58=_0x25b2f0;if(_0x55dc15[_0x3d4c58(0x1c52)]&&_0x55dc15[_0x3d4c58(0x1c52)][_0x3d4c58(0xbae)]&&_0x55dc15[_0x3d4c58(0x1c52)][_0x3d4c58(0xbae)][_0x3d4c58(0x1b9e)]){_0x25643f[_0x3d4c58(0xbae)]=_0x55dc15[_0x3d4c58(0x1c52)][_0x3d4c58(0xbae)]||[{'message':_0x55dc15[_0x3d4c58(0x2915)](),'type':_0x3d4c58(0x8a2)}];for(let _0x13ca92=0x0;_0x13ca92<_0x55dc15[_0x3d4c58(0x1c52)][_0x3d4c58(0xbae)][_0x3d4c58(0x1b9e)];_0x13ca92+=0x1){_0x29df98[_0x3d4c58(0x1bd0)]({'title':_0x55dc15['data'][_0x3d4c58(0xbae)][_0x13ca92]['type'],'msg':_0x55dc15[_0x3d4c58(0x1c52)][_0x3d4c58(0xbae)][_0x13ca92][_0x3d4c58(0x18ca)]});}}else _0x29df98[_0x3d4c58(0x1bd0)]({'title':_0x55dc15['status']?'API:'+_0x55dc15[_0x3d4c58(0x10b3)]+_0x3d4c58(0x21db)+_0x55dc15[_0x3d4c58(0x2115)]:_0x3d4c58(0x8a2),'msg':_0x55dc15[_0x3d4c58(0x1c52)]?JSON[_0x3d4c58(0x2317)](_0x55dc15[_0x3d4c58(0x1c52)][_0x3d4c58(0x18ca)]):_0x55dc15[_0x3d4c58(0x2915)]()});});}function _0x353d4d(){const _0x49f38b=_0x6ab59;_0x25643f[_0x49f38b(0xbae)]=[],_0x5511ea[_0x49f38b(0x59a)]['update']({'id':_0x25643f[_0x49f38b(0x59a)]['id']},_0x25643f[_0x49f38b(0x59a)])[_0x49f38b(0x15e7)][_0x49f38b(0x64a)](function(_0x3df31d){const _0x247660=_0x49f38b,_0x479da7=_0x28c606()['find'](_0x25643f[_0x247660(0xdbf)],{'id':_0x3df31d['id']});_0x479da7&&_0x28c606()[_0x247660(0x14fe)](_0x479da7,_0x28c606()[_0x247660(0x27bb)](_0x3df31d[_0x247660(0x14f8)](),_0x28c606()['keys'](_0x479da7))),_0x29df98[_0x247660(0x1339)]({'title':'SquareRecording\x20properly\x20saved!','msg':_0x25643f[_0x247660(0x59a)]['name']?_0x25643f['squareRecording'][_0x247660(0x2494)]+_0x247660(0x271):''}),_0xef9d63(_0x3df31d);})[_0x49f38b(0x20cd)](function(_0x3bec63){const _0x35be34=_0x49f38b;if(_0x3bec63[_0x35be34(0x1c52)]&&_0x3bec63[_0x35be34(0x1c52)]['errors']&&_0x3bec63[_0x35be34(0x1c52)][_0x35be34(0xbae)][_0x35be34(0x1b9e)]){_0x25643f[_0x35be34(0xbae)]=_0x3bec63['data'][_0x35be34(0xbae)]||[{'message':_0x3bec63[_0x35be34(0x2915)](),'type':'api.squareRecording.update'}];for(let _0x31481e=0x0;_0x31481e<_0x3bec63[_0x35be34(0x1c52)]['errors'][_0x35be34(0x1b9e)];_0x31481e++){_0x29df98['error']({'title':_0x3bec63[_0x35be34(0x1c52)]['errors'][_0x31481e][_0x35be34(0x2185)],'msg':_0x3bec63[_0x35be34(0x1c52)][_0x35be34(0xbae)][_0x31481e][_0x35be34(0x18ca)]});}}else _0x29df98['error']({'title':_0x3bec63[_0x35be34(0x10b3)]?'API:'+_0x3bec63[_0x35be34(0x10b3)]+_0x35be34(0x21db)+_0x3bec63[_0x35be34(0x2115)]:'api.squareRecording.update','msg':_0x3bec63[_0x35be34(0x1c52)]?JSON[_0x35be34(0x2317)](_0x3bec63[_0x35be34(0x1c52)]['message']):_0x3bec63[_0x35be34(0x2915)]()});});}function _0x1c4c1c(_0x4515b3){const _0x248190=_0x6ab59;_0x25643f[_0x248190(0xbae)]=[];const _0x7e8dcb=_0x4a0f5b['confirm']()['title']('Are\x20you\x20sure?')[_0x248190(0x12b8)](_0x248190(0xb59))[_0x248190(0x213e)](_0x248190(0x5bd))['ok'](_0x248190(0x2664))[_0x248190(0x101a)](_0x248190(0x1dc6))[_0x248190(0x2283)](_0x4515b3);_0x4a0f5b[_0x248190(0xa60)](_0x7e8dcb)[_0x248190(0x64a)](function(){const _0x523818=_0x248190;_0x5511ea[_0x523818(0x59a)]['delete']({'id':_0x25643f[_0x523818(0x59a)]['id']})[_0x523818(0x15e7)][_0x523818(0x64a)](function(){const _0x4315e0=_0x523818;_0x28c606()[_0x4315e0(0x21c7)](_0x25643f[_0x4315e0(0xdbf)],{'id':_0x25643f[_0x4315e0(0x59a)]['id']}),_0x29df98[_0x4315e0(0x1339)]({'title':_0x4315e0(0x8c6),'msg':(_0x25643f['squareRecording'][_0x4315e0(0x2494)]||_0x4315e0(0x59a))+'\x20has\x20been\x20deleted!'}),_0xef9d63(_0x25643f[_0x4315e0(0x59a)]);})['catch'](function(_0x3213ba){const _0x7ebb35=_0x523818;if(_0x3213ba['data']&&_0x3213ba[_0x7ebb35(0x1c52)]['errors']&&_0x3213ba[_0x7ebb35(0x1c52)][_0x7ebb35(0xbae)][_0x7ebb35(0x1b9e)]){_0x25643f[_0x7ebb35(0xbae)]=_0x3213ba[_0x7ebb35(0x1c52)][_0x7ebb35(0xbae)]||[{'message':_0x3213ba[_0x7ebb35(0x2915)](),'type':'api.squareRecording.delete'}];for(let _0x10adbb=0x0;_0x10adbb<_0x3213ba[_0x7ebb35(0x1c52)][_0x7ebb35(0xbae)][_0x7ebb35(0x1b9e)];_0x10adbb++){_0x29df98[_0x7ebb35(0x1bd0)]({'title':_0x3213ba[_0x7ebb35(0x1c52)][_0x7ebb35(0xbae)][_0x10adbb][_0x7ebb35(0x2185)],'msg':_0x3213ba[_0x7ebb35(0x1c52)][_0x7ebb35(0xbae)][_0x10adbb][_0x7ebb35(0x18ca)]});}}else _0x29df98[_0x7ebb35(0x1bd0)]({'title':_0x3213ba['status']?_0x7ebb35(0x575)+_0x3213ba['status']+_0x7ebb35(0x21db)+_0x3213ba['statusText']:_0x7ebb35(0x299),'msg':_0x3213ba[_0x7ebb35(0x1c52)]?JSON[_0x7ebb35(0x2317)](_0x3213ba[_0x7ebb35(0x1c52)][_0x7ebb35(0x18ca)]):_0x3213ba['message']||_0x3213ba[_0x7ebb35(0x2915)]()});});},function(){});}function _0x59a160(_0x10c9c1){return _0x10c9c1===null?undefined:new Date(_0x10c9c1);}function _0xef9d63(_0x362e9c){_0x4a0f5b['hide'](_0x362e9c);}}const _0x3a0d21=_0x3d6097;;const _0x3f3501=_0x2e4a48['p']+_0x49a1e3(0x1e2c);;_0x3b51a7[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$window',_0x49a1e3(0x77f),'$mdSidenav',_0x49a1e3(0x212a),'$document',_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0xdbf),'userProfile',_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x3b51a7(_0x460d7f,_0x20dc93,_0x23d4f2,_0x2b96ec,_0x1ab6e8,_0x3c66b4,_0x3a384b,_0x25312b,_0xdd8b04,_0x15c176,_0xfcd1b7,_0x5c38c3,_0x16ffe9,_0x54d14d,_0x3b730a,_0x398bc2,_0x19f972){const _0x571eb3=_0x49a1e3,_0x3f945d=this;_0x3f945d[_0x571eb3(0x1947)]=_0x398bc2,_0x3f945d[_0x571eb3(0x28d6)]=_0x19f972,_0x3f945d[_0x571eb3(0x1d3d)]=_0x3b730a[_0x571eb3(0x808)](),_0x3f945d[_0x571eb3(0xdbf)]=_0xdd8b04||{'count':0x0,'rows':[]},_0x3f945d[_0x571eb3(0x16a8)]=_0x15c176,_0x3f945d['userProfileSection']=_0xfcd1b7&&_0xfcd1b7[_0x571eb3(0xb90)]==0x1?_0xfcd1b7[_0x571eb3(0x28b8)][0x0]:null,_0x3f945d['crudPermissions']=_0x3b730a[_0x571eb3(0xa7e)](_0x3f945d['userProfileSection']?_0x3f945d[_0x571eb3(0x16b2)]['crudPermissions']:null),_0x3f945d[_0x571eb3(0x185d)]=_0x571eb3(0xdbf),_0x3f945d[_0x571eb3(0x300)]='',_0x3f945d['listOrderAsc']=null,_0x3f945d[_0x571eb3(0xa53)]=[],_0x3f945d[_0x571eb3(0x289a)]={'fields':'createdAt,updatedAt,id,filename,projectName,uniqueid,callerid,extension,audio,savePath,format','sort':_0x571eb3(0x260c),'limit':0xa,'page':0x1},_0x3f945d['downloadfile2']=_0x2b2b0b,_0x3f945d[_0x571eb3(0x1262)]=_0x40f6f1,_0x3f945d['success']=_0x4d25cb,_0x3f945d[_0x571eb3(0x1bee)]=_0x2c304b,_0x3f945d[_0x571eb3(0xcc8)]=_0x1f21ea,_0x3f945d[_0x571eb3(0x233)]=_0x35993d,_0x3f945d['exportSelectedSquareRecordings']=_0x5a5835,_0x3f945d['deleteSelectedSquareRecordings']=_0x1bb9ca,_0x3f945d[_0x571eb3(0x18c4)]=_0x1fdae5,_0x3f945d[_0x571eb3(0x27e8)]=_0x42634c;function _0x2b2b0b(_0x2a7613){const _0x4e97a4=_0x571eb3;return _0x5c38c3[_0x4e97a4(0x59a)][_0x4e97a4(0x19b3)]({'id':_0x2a7613['id']})[_0x4e97a4(0x15e7)][_0x4e97a4(0x64a)](function(_0x35d4db){const _0x5aface=_0x4e97a4,_0x5aaed7=[_0x35d4db[_0x5aface(0x5a9)]];let _0x415218='download';const _0x2153af=new Blob(_0x5aaed7,{'type':_0x35d4db['type']});_0x415218=_0x2a7613[_0x5aface(0x2947)]+_0x2a7613[_0x5aface(0x1c2c)];const _0x3678a0=window[_0x5aface(0x123f)][_0x5aface(0x2978)]('a');_0x3678a0['setAttribute']('href',URL[_0x5aface(0x206)](_0x2153af)),_0x3678a0[_0x5aface(0x1280)]('download',_0x415218),document[_0x5aface(0xb49)][_0x5aface(0x2661)](_0x3678a0),_0x3678a0[_0x5aface(0x2668)]();})[_0x4e97a4(0x20cd)](function(_0x77422e){const _0x625cf0=_0x4e97a4;if(_0x77422e[_0x625cf0(0x1c52)]&&_0x77422e[_0x625cf0(0x1c52)][_0x625cf0(0xbae)]&&_0x77422e['data'][_0x625cf0(0xbae)]['length'])for(let _0x374d1f=0x0;_0x374d1f<_0x77422e[_0x625cf0(0x1c52)]['errors'][_0x625cf0(0x1b9e)];_0x374d1f++){_0x54d14d[_0x625cf0(0x1bd0)]({'title':_0x77422e['data'][_0x625cf0(0xbae)][_0x374d1f][_0x625cf0(0x2185)],'msg':_0x77422e['data'][_0x625cf0(0xbae)][_0x374d1f][_0x625cf0(0x18ca)]});}else _0x54d14d['error']({'title':_0x77422e[_0x625cf0(0x10b3)]?_0x625cf0(0x575)+_0x77422e[_0x625cf0(0x10b3)]+_0x625cf0(0x21db)+_0x77422e[_0x625cf0(0x2115)]:_0x625cf0(0x8a2),'msg':_0x77422e[_0x625cf0(0x1c52)]?JSON[_0x625cf0(0x2317)](_0x77422e[_0x625cf0(0x1c52)][_0x625cf0(0x18ca)]):_0x77422e['toString']()});});}function _0x40f6f1(_0x3ef2f9,_0x5a79cf){const _0x34ab5e=_0x571eb3,_0x50708b=_0x1ab6e8[_0x34ab5e(0x856)]()[_0x34ab5e(0x2021)](_0x34ab5e(0x1231)+_0x28c606()[_0x34ab5e(0xc01)](_0x34ab5e(0x59a))+'?')[_0x34ab5e(0x33a)](_0x34ab5e(0x50b)+(_0x3ef2f9[_0x34ab5e(0x2494)]||_0x34ab5e(0x59a))+_0x34ab5e(0x26d0)+_0x34ab5e(0x4b8))[_0x34ab5e(0x213e)]('delete\x20squareRecording')[_0x34ab5e(0x2283)](_0x5a79cf)['ok']('OK')[_0x34ab5e(0x101a)](_0x34ab5e(0x18fd));_0x1ab6e8[_0x34ab5e(0xa60)](_0x50708b)[_0x34ab5e(0x64a)](function(){_0x35993d(_0x3ef2f9);},function(){const _0x526abe=_0x34ab5e;console[_0x526abe(0x9b4)]('CANCEL');});}let _0x5a6efc=!![],_0x144bba=0x1;_0x460d7f[_0x571eb3(0xc62)](_0x571eb3(0x1cb9),function(_0x1ed455,_0x8fa2e2){const _0x4e7ffd=_0x571eb3;_0x5a6efc?_0x3a384b(function(){_0x5a6efc=![];}):(!_0x8fa2e2&&(_0x144bba=_0x3f945d['query'][_0x4e7ffd(0xc72)]),_0x1ed455!==_0x8fa2e2&&(_0x3f945d[_0x4e7ffd(0x289a)]['page']=0x1),!_0x1ed455&&(_0x3f945d[_0x4e7ffd(0x289a)][_0x4e7ffd(0xc72)]=_0x144bba),_0x3f945d[_0x4e7ffd(0x1bee)]());});function _0x4d25cb(_0x37ae5d){const _0x18b244=_0x571eb3;_0x3f945d[_0x18b244(0xdbf)]=_0x37ae5d||{'count':0x0,'rows':[]};}function _0x2c304b(){const _0x595f02=_0x571eb3;_0x3f945d[_0x595f02(0x289a)]['offset']=(_0x3f945d[_0x595f02(0x289a)]['page']-0x1)*_0x3f945d[_0x595f02(0x289a)][_0x595f02(0x25bb)],_0x3b730a[_0x595f02(0x4de)]('admin')?_0x3f945d[_0x595f02(0x1713)]=_0x5c38c3[_0x595f02(0x59a)][_0x595f02(0x896)](_0x3f945d['query'],_0x4d25cb)[_0x595f02(0x15e7)]:(_0x3f945d[_0x595f02(0x289a)]['id']=_0x3f945d['userProfile']['id'],_0x3f945d[_0x595f02(0x289a)]['section']=_0x595f02(0x2539),_0x3f945d[_0x595f02(0x1713)]=_0x5c38c3[_0x595f02(0x16a8)][_0x595f02(0x2565)](_0x3f945d[_0x595f02(0x289a)],_0x4d25cb)[_0x595f02(0x15e7)]);}function _0x1f21ea(_0x368ca3,_0x359448){const _0x5e7ca3=_0x571eb3;_0x1ab6e8['show']({'controller':_0x5e7ca3(0x322),'controllerAs':'vm','templateUrl':_0x3f3501,'parent':angular[_0x5e7ca3(0x1f81)](_0x3c66b4[_0x5e7ca3(0xb49)]),'targetEvent':_0x368ca3,'clickOutsideToClose':!![],'locals':{'squareRecording':_0x359448,'squareRecordings':_0x3f945d[_0x5e7ca3(0xdbf)][_0x5e7ca3(0x28b8)],'license':_0x3f945d[_0x5e7ca3(0x1947)],'setting':_0x3f945d[_0x5e7ca3(0x28d6)],'crudPermissions':_0x3f945d[_0x5e7ca3(0x402)]}});}function _0x35993d(_0x4a9b0c){const _0x4c7b35=_0x571eb3;_0x5c38c3['squareRecording'][_0x4c7b35(0xabd)]({'id':_0x4a9b0c['id']})[_0x4c7b35(0x15e7)][_0x4c7b35(0x64a)](function(){const _0x39631a=_0x4c7b35;_0x28c606()[_0x39631a(0x21c7)](_0x3f945d['squareRecordings'][_0x39631a(0x28b8)],{'id':_0x4a9b0c['id']}),_0x3f945d[_0x39631a(0xdbf)][_0x39631a(0xb90)]-=0x1,!_0x3f945d[_0x39631a(0xdbf)][_0x39631a(0x28b8)]['length']&&_0x3f945d[_0x39631a(0x1bee)](),_0x54d14d[_0x39631a(0x1339)]({'title':_0x28c606()[_0x39631a(0xc01)](_0x39631a(0x298))+_0x39631a(0x2502),'msg':_0x4a9b0c[_0x39631a(0x2494)]?_0x4a9b0c['name']+'\x20has\x20been\x20deleted!':''});})[_0x4c7b35(0x20cd)](function(_0x1d17ab){const _0x292bf4=_0x4c7b35;if(_0x1d17ab['data']&&_0x1d17ab[_0x292bf4(0x1c52)][_0x292bf4(0xbae)]&&_0x1d17ab[_0x292bf4(0x1c52)][_0x292bf4(0xbae)][_0x292bf4(0x1b9e)]){_0x3f945d[_0x292bf4(0xbae)]=_0x1d17ab[_0x292bf4(0x1c52)][_0x292bf4(0xbae)]||[{'message':_0x1d17ab[_0x292bf4(0x2915)](),'type':_0x292bf4(0x1646)}];for(let _0x190873=0x0;_0x190873<_0x1d17ab[_0x292bf4(0x1c52)][_0x292bf4(0xbae)]['length'];_0x190873++){_0x54d14d[_0x292bf4(0x1bd0)]({'title':_0x1d17ab[_0x292bf4(0x1c52)]['errors'][_0x190873][_0x292bf4(0x2185)],'msg':_0x1d17ab[_0x292bf4(0x1c52)][_0x292bf4(0xbae)][_0x190873][_0x292bf4(0x18ca)]});}}else _0x54d14d[_0x292bf4(0x1bd0)]({'title':_0x1d17ab[_0x292bf4(0x10b3)]?_0x292bf4(0x575)+_0x1d17ab[_0x292bf4(0x10b3)]+_0x292bf4(0x21db)+_0x1d17ab[_0x292bf4(0x2115)]:_0x292bf4(0x1646),'msg':_0x1d17ab['data']?JSON[_0x292bf4(0x2317)](_0x1d17ab[_0x292bf4(0x1c52)][_0x292bf4(0x18ca)]):_0x1d17ab[_0x292bf4(0x18ca)]||_0x1d17ab[_0x292bf4(0x2915)]()});});}function _0x5a5835(){const _0x509a8a=_0x571eb3,_0x3eb3f4=angular[_0x509a8a(0x289e)](_0x3f945d[_0x509a8a(0xa53)]);return _0x3f945d[_0x509a8a(0xa53)]=[],_0x3eb3f4;}function _0x1bb9ca(_0x5ebb4d){const _0x1dc1dd=_0x571eb3,_0x6c9e41=_0x1ab6e8[_0x1dc1dd(0x856)]()[_0x1dc1dd(0x2021)](_0x1dc1dd(0x1b0))[_0x1dc1dd(0x33a)](_0x1dc1dd(0x50b)+_0x3f945d[_0x1dc1dd(0xa53)]['length']+_0x1dc1dd(0x163e)+_0x1dc1dd(0x4b8))[_0x1dc1dd(0x213e)]('delete\x20SquareRecordings')[_0x1dc1dd(0x2283)](_0x5ebb4d)['ok']('OK')[_0x1dc1dd(0x101a)](_0x1dc1dd(0x18fd));_0x1ab6e8['show'](_0x6c9e41)[_0x1dc1dd(0x64a)](function(){const _0x540ec6=_0x1dc1dd;_0x3f945d[_0x540ec6(0xa53)][_0x540ec6(0x1397)](function(_0x3adf70){_0x35993d(_0x3adf70);}),_0x3f945d[_0x540ec6(0xa53)]=[];});}function _0x1fdae5(){const _0x24f4a3=_0x571eb3;_0x3f945d[_0x24f4a3(0xa53)]=[];}function _0x42634c(){const _0x1eb276=_0x571eb3;_0x3f945d[_0x1eb276(0xa53)]=_0x3f945d[_0x1eb276(0xdbf)]['rows'];}}const _0x216fe3=_0x3b51a7;;_0x28e50d[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad),_0x49a1e3(0x21f8)];function _0x28e50d(_0xf03a7b,_0x1f8965){const _0x397541=_0x49a1e3;_0xf03a7b[_0x397541(0x14f2)](_0x397541(0x12e),{'abstract':!![],'url':_0x397541(0x15d8)})['state'](_0x397541(0x2a6),{'url':_0x397541(0xea3),'views':{'content@app':{'templateUrl':_0x8e4fc7,'controller':'OdbcsController\x20as\x20vm'}},'resolve':{'odbcs':[_0x397541(0x107c),_0x397541(0xdcf),function(_0x2e6333,_0x817a69){const _0x939639=_0x397541;return _0x817a69[_0x939639(0x4de)](_0x939639(0x333))?_0x2e6333['resolve']('squareOdbc@get',{'fields':_0x939639(0xc9c),'sort':_0x939639(0x260c),'limit':0xa,'offset':0x0}):_0x2e6333[_0x939639(0x1268)]('userProfile@getResources',{'id':_0x817a69[_0x939639(0x808)]()['userProfileId'],'section':_0x939639(0xa82),'fields':'createdAt,updatedAt,id,name,dsn,description','sort':_0x939639(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x397541(0x107c),_0x397541(0xdcf),function(_0x58a451,_0x40ed73){const _0x22678f=_0x397541;return _0x40ed73[_0x22678f(0x4de)](_0x22678f(0x333))?null:_0x58a451[_0x22678f(0x1268)](_0x22678f(0x6e3),{'fields':_0x22678f(0x10d2),'id':_0x40ed73[_0x22678f(0x808)]()[_0x22678f(0x21ac)]});}],'userProfileSection':[_0x397541(0x107c),_0x397541(0xdcf),function(_0x584f8,_0x2c83e5){const _0x65c75=_0x397541;return _0x2c83e5[_0x65c75(0x4de)](_0x65c75(0x333))?null:_0x584f8[_0x65c75(0x1268)](_0x65c75(0x2681),{'fields':_0x65c75(0x527),'userProfileId':_0x2c83e5[_0x65c75(0x808)]()['userProfileId'],'sectionId':0x44d});}]},'authenticate':!![],'permissionId':0x44d,'bodyClass':_0x397541(0x268a)})['state'](_0x397541(0xfb2),{'url':'/squareRecordings','views':{'content@app':{'templateUrl':_0x3e5250,'controller':_0x397541(0x1aff)}},'resolve':{'squareRecordings':[_0x397541(0x107c),'Auth',function(_0x15a21e,_0x39aad3){const _0x361e7e=_0x397541;return _0x39aad3['hasRole']('admin')?_0x15a21e[_0x361e7e(0x1268)](_0x361e7e(0x17f8),{'fields':_0x361e7e(0x24de),'sort':_0x361e7e(0x260c),'limit':0xa,'offset':0x0}):_0x15a21e[_0x361e7e(0x1268)](_0x361e7e(0x1758),{'id':_0x39aad3[_0x361e7e(0x808)]()[_0x361e7e(0x21ac)],'section':'SquareRecordings','fields':_0x361e7e(0x24de),'sort':_0x361e7e(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x397541(0x107c),'Auth',function(_0x2f2602,_0x11e2a6){const _0x150b83=_0x397541;return _0x11e2a6[_0x150b83(0x4de)]('admin')?null:_0x2f2602['resolve'](_0x150b83(0x6e3),{'fields':_0x150b83(0x10d2),'id':_0x11e2a6[_0x150b83(0x808)]()[_0x150b83(0x21ac)]});}],'userProfileSection':[_0x397541(0x107c),_0x397541(0xdcf),function(_0x5f6422,_0x1b2e25){const _0x79086c=_0x397541;return _0x1b2e25[_0x79086c(0x4de)](_0x79086c(0x333))?null:_0x5f6422[_0x79086c(0x1268)](_0x79086c(0x2681),{'fields':_0x79086c(0x527),'userProfileId':_0x1b2e25[_0x79086c(0x808)]()['userProfileId'],'sectionId':0x44e});}]},'authenticate':!![],'permissionId':0x44e,'bodyClass':_0x397541(0x268a)}),_0x1f8965[_0x397541(0x1bde)](_0x397541(0x3e8));}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x12e),[_0x49a1e3(0x8d2),_0x49a1e3(0x3c7),_0x49a1e3(0x1fe3),_0x49a1e3(0x891),_0x49a1e3(0x2516),'ckeditor',_0x49a1e3(0x1434),_0x49a1e3(0x1a87),_0x49a1e3(0x1610),_0x49a1e3(0xb19),_0x49a1e3(0x1a59),_0x49a1e3(0x11fd),_0x49a1e3(0x1cfe),'ngclipboard',_0x49a1e3(0x1b5f),_0x49a1e3(0x1cff),_0x49a1e3(0x1046),_0x49a1e3(0x1acd),_0x49a1e3(0xc48),_0x49a1e3(0x28dd),_0x49a1e3(0x364)])['config'](_0x28e50d)[_0x49a1e3(0x38e)](_0x49a1e3(0x271d),_0x4acff6)[_0x49a1e3(0x38e)]('OdbcsController',_0x189834)['controller']('CreateOrEditSquareRecordingDialogController',_0x3a0d21)[_0x49a1e3(0x38e)](_0x49a1e3(0x2631),_0x216fe3);;const _0x418c0f=_0x2e4a48['p']+_0x49a1e3(0x12d7);;const _0x7cda56=_0x2e4a48['p']+_0x49a1e3(0x62e);;const _0x592d1f=_0x2e4a48['p']+_0x49a1e3(0x21eb);;const _0x43494e=_0x2e4a48['p']+'src/js/modules/main/apps/analytics/views/reports/edit/view.html/view.html';var _0x584097=_0x2e4a48(0xd5a);;_0x12b7f6[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x680),_0x49a1e3(0x1565),_0x49a1e3(0xa19),_0x49a1e3(0x1c8e),_0x49a1e3(0x15ad)];function _0x12b7f6(_0x5a4dd4,_0x284d5d,_0x74754,_0x45e9f4,_0x40eb1c,_0x323235,_0x273b11){const _0x517a30=_0x49a1e3,_0x67c98d=this;_0x67c98d['errors']=[],_0x67c98d['report']=angular[_0x517a30(0x289e)](_0x45e9f4),_0x67c98d[_0x517a30(0x1565)]['name']+=_0x517a30(0x419),_0x67c98d['treeCustomData']=_0x273b11,_0x67c98d['treeCustomConfig']={'core':{'multiple':![],'animation':!![],'error':function(_0x2fdb24){const _0x546602=_0x517a30;console[_0x546602(0x1bd0)](_0x546602(0x1c9b)+angular['toJson'](_0x2fdb24));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x517a30(0x13bc)]},_0x67c98d[_0x517a30(0x1152)]={'select_node':_0x2e9301},_0x67c98d[_0x517a30(0x751)]=_0x34f24a,_0x67c98d[_0x517a30(0x16cb)]=_0x2ef52b;function _0x34f24a(){const _0x288c26=_0x517a30;_0x67c98d['errors']=[];let _0x1f74c0;_0x40eb1c[_0x288c26(0x1d97)]['save']({'name':_0x67c98d[_0x288c26(0x1565)][_0x288c26(0x2494)],'description':_0x67c98d[_0x288c26(0x1565)][_0x288c26(0x23c3)],'table':_0x67c98d[_0x288c26(0x1565)]['table'],'conditions':_0x67c98d[_0x288c26(0x1565)][_0x288c26(0xee1)],'joins':_0x67c98d[_0x288c26(0x1565)][_0x288c26(0x288a)],'parent':_0x67c98d[_0x288c26(0x1519)]['id']})[_0x288c26(0x15e7)][_0x288c26(0x64a)](function(_0x161c10){const _0x4e2faa=_0x288c26;_0x1f74c0=_0x161c10,_0x74754[_0x4e2faa(0x1339)]({'title':_0x4e2faa(0x1a3),'msg':_0x67c98d[_0x4e2faa(0x1565)]['name']?_0x67c98d[_0x4e2faa(0x1565)][_0x4e2faa(0x2494)]+'\x20has\x20been\x20copied!':''});const _0x1feb67={'fields':_0x4e2faa(0x1df1),'nolimit':!![]};return _0x1feb67[_0x323235===_0x4e2faa(0x1d97)?'CustomReportId':_0x4e2faa(0x28c)]=_0x67c98d[_0x4e2faa(0x1565)]['id'],_0x40eb1c[_0x4e2faa(0x11d1)]['get'](_0x1feb67)['$promise'];})[_0x288c26(0x64a)](function(_0x23f12e){const _0x2fb9be=_0x288c26,_0x46aa7d=_0x28c606()[_0x2fb9be(0x1de5)](_0x23f12e['rows'],function(_0x5d376c){const _0x43380d=_0x2fb9be;return _0x28c606()[_0x43380d(0x1c69)]({},_0x5d376c,{'CustomReportId':_0x1f74c0['id']});});return _0x40eb1c[_0x2fb9be(0x11d1)][_0x2fb9be(0x1461)](_0x46aa7d)[_0x2fb9be(0x15e7)];})[_0x288c26(0x64a)](function(){const _0x2d2f49=_0x288c26;_0x74754['success']({'title':_0x2d2f49(0x1c1),'msg':_0x2d2f49(0x1dd1)}),_0x2ef52b();})[_0x288c26(0x20cd)](function(_0x2fa0c4){const _0x54c6e5=_0x288c26;_0x74754[_0x54c6e5(0x1bd0)]({'title':_0x2fa0c4['status']?_0x54c6e5(0x575)+_0x2fa0c4[_0x54c6e5(0x10b3)]+'\x20-\x20'+_0x2fa0c4['statusText']:_0x54c6e5(0x1f30),'msg':_0x2fa0c4[_0x54c6e5(0x1c52)]?JSON[_0x54c6e5(0x2317)](_0x2fa0c4[_0x54c6e5(0x1c52)][_0x54c6e5(0x18ca)]):_0x2fa0c4[_0x54c6e5(0x2915)]()});});}function _0x2e9301(_0x2fccbf,_0xcb8c4a){const _0x50e8c2=_0x517a30;_0x67c98d[_0x50e8c2(0x1519)]=_0xcb8c4a[_0x50e8c2(0x1442)];}function _0x2ef52b(){const _0x42cebe=_0x517a30;_0x284d5d[_0x42cebe(0x268e)]();}}const _0x5da862=_0x12b7f6;;_0x1244e2['$inject']=['$location',_0x49a1e3(0x212a),_0x49a1e3(0x680),_0x49a1e3(0x47e),_0x49a1e3(0x1565),_0x49a1e3(0xa19),_0x49a1e3(0x1c8e),_0x49a1e3(0x1519),_0x49a1e3(0x184e),'crudPermissions'];function _0x1244e2(_0x3066cf,_0x225931,_0x1c2884,_0x30b53b,_0x4b8cbf,_0x310331,_0x543cb3,_0x32ef63,_0x3cb807,_0x308813){const _0x52089d=_0x49a1e3,_0x255ce4=this;_0x255ce4[_0x52089d(0xbae)]=[],_0x255ce4[_0x52089d(0x189c)]=[],_0x255ce4[_0x52089d(0x2021)]=_0x52089d(0x64e),_0x255ce4[_0x52089d(0x402)]=_0x308813,_0x255ce4[_0x52089d(0x1565)]=angular[_0x52089d(0x289e)](_0x4b8cbf),_0x255ce4[_0x52089d(0x47e)]=_0x30b53b,_0x255ce4[_0x52089d(0x62b)]=![],_0x255ce4[_0x52089d(0x1fa7)]=_0x3cb807[_0x52089d(0x2036)](),_0x255ce4['joinTypes']=[{'key':_0x52089d(0x9a6),'value':_0x52089d(0x252f)},{'key':_0x52089d(0x1566),'value':_0x52089d(0x277c)},{'key':'right_join','value':_0x52089d(0xad2)},{'key':'cross_join','value':_0x52089d(0x212e)}];!_0x255ce4[_0x52089d(0x1565)]&&(_0x255ce4[_0x52089d(0x1565)]={'name':'','table':_0x52089d(0x184),'description':'','parent':_0x32ef63['id']},_0x255ce4[_0x52089d(0x2021)]=_0x52089d(0x2905),_0x255ce4[_0x52089d(0x62b)]=!![]);_0x255ce4[_0x52089d(0xb39)]=_0x2fd194,_0x255ce4[_0x52089d(0x4f0)]=_0x29369a,_0x255ce4['deleteReport']=_0x485653,_0x255ce4['closeDialog']=_0x5134a5,_0x255ce4['selectedTableChange']=_0x16fb84,_0x255ce4[_0x52089d(0x14af)]=_0x316827,_0x255ce4[_0x52089d(0x5e0)]=_0x1a660f;function _0x316827(_0x43cbd8){const _0x55ebfb=_0x52089d;_0x255ce4['joinTables'][_0x55ebfb(0x18f0)](_0x43cbd8,0x1);}function _0x1a660f(_0x2780fd,_0xc28b07,_0x8e40c9){const _0x2bdf97=_0x52089d,_0x382ef4=_0x28c606()[_0x2bdf97(0x27bc)](_0x255ce4[_0x2bdf97(0x1fa7)],{'name':_0x8e40c9});_0x382ef4&&_0x382ef4[_0x2bdf97(0xa19)]&&_0x310331[_0x382ef4[_0x2bdf97(0xa19)]][_0x2bdf97(0xa81)]()[_0x2bdf97(0x15e7)][_0x2bdf97(0x64a)](function(_0x330c1f){const _0x59c66a=_0x2bdf97;_0x2780fd[_0xc28b07]=_0x28c606()[_0x59c66a(0xde7)](_0x28c606()['keys'](_0x330c1f),[_0x59c66a(0x15e7),_0x59c66a(0x19ba)]);})[_0x2bdf97(0x20cd)](function(_0x48a279){const _0x575e6a=_0x2bdf97;console[_0x575e6a(0x1bd0)](_0x48a279);});}function _0x16fb84(_0x5cd889){const _0x52a755=_0x52089d;_0x5cd889&&(delete _0x255ce4[_0x52a755(0xcdb)],_0x255ce4['joinTables']['push'](_0x5cd889));}function _0x2fd194(){const _0x1033fe=_0x52089d;_0x255ce4['errors']=[],_0x255ce4[_0x1033fe(0x1565)][_0x1033fe(0x288a)]=_0x28c606()['map'](_0x255ce4[_0x1033fe(0x189c)]||[],function(_0x391143){const _0x338a8b=_0x1033fe;return{'parentKey':_0x391143[_0x338a8b(0x16c)],'foreignTable':_0x391143[_0x338a8b(0x2494)],'foreignKey':_0x391143['foreignKey'],'type':_0x391143[_0x338a8b(0x2185)][_0x338a8b(0x2554)]()};}),_0x255ce4[_0x1033fe(0x1565)][_0x1033fe(0x288a)]=JSON[_0x1033fe(0x2317)](_0x255ce4[_0x1033fe(0x1565)]['joins']),_0x310331[_0x543cb3]['save'](_0x255ce4[_0x1033fe(0x1565)])[_0x1033fe(0x15e7)][_0x1033fe(0x64a)](function(_0x4f5e46){const _0x27602d=_0x1033fe;_0x255ce4[_0x27602d(0x47e)][_0x27602d(0x1891)](_0x4f5e46),_0x1c2884[_0x27602d(0x1339)]({'title':_0x27602d(0x1689),'msg':_0x255ce4[_0x27602d(0x1565)][_0x27602d(0x2494)]?_0x255ce4['report'][_0x27602d(0x2494)]+_0x27602d(0x258d):''}),_0x5134a5();})[_0x1033fe(0x20cd)](function(_0x2ed2b0){const _0x35331c=_0x1033fe;if(_0x2ed2b0[_0x35331c(0x1c52)]&&_0x2ed2b0['data'][_0x35331c(0xbae)]&&_0x2ed2b0[_0x35331c(0x1c52)][_0x35331c(0xbae)]['length']){_0x255ce4[_0x35331c(0xbae)]=_0x2ed2b0[_0x35331c(0x1c52)][_0x35331c(0xbae)]||[{'message':_0x2ed2b0[_0x35331c(0x2915)](),'type':_0x35331c(0x214)}];for(let _0x338209=0x0;_0x338209<_0x2ed2b0[_0x35331c(0x1c52)][_0x35331c(0xbae)][_0x35331c(0x1b9e)];_0x338209++){_0x1c2884[_0x35331c(0x1bd0)]({'title':_0x2ed2b0['data'][_0x35331c(0xbae)][_0x338209][_0x35331c(0x2185)],'msg':_0x2ed2b0['data']['errors'][_0x338209][_0x35331c(0x18ca)]});}}else _0x1c2884[_0x35331c(0x1bd0)]({'title':_0x2ed2b0[_0x35331c(0x10b3)]?_0x35331c(0x575)+_0x2ed2b0[_0x35331c(0x10b3)]+_0x35331c(0x21db)+_0x2ed2b0[_0x35331c(0x2115)]:_0x35331c(0x214),'msg':_0x2ed2b0[_0x35331c(0x1c52)]?JSON[_0x35331c(0x2317)](_0x2ed2b0[_0x35331c(0x1c52)][_0x35331c(0x18ca)]):_0x2ed2b0[_0x35331c(0x2915)]()});});}function _0x29369a(){const _0x3f4462=_0x52089d;_0x255ce4['errors']=[],_0x310331[_0x543cb3][_0x3f4462(0x2603)]({'id':_0x255ce4['report']['id']},_0x255ce4[_0x3f4462(0x1565)])['$promise']['then'](function(_0xcf2039){const _0x2262c0=_0x3f4462,_0x222523=_0x28c606()[_0x2262c0(0x27bc)](_0x255ce4[_0x2262c0(0x47e)],{'id':_0xcf2039['id']});_0x222523&&_0x28c606()[_0x2262c0(0x14fe)](_0x222523,_0xcf2039),_0x1c2884[_0x2262c0(0x1339)]({'title':'Report\x20properly\x20saved!','msg':_0x255ce4[_0x2262c0(0x1565)][_0x2262c0(0x2494)]?_0x255ce4[_0x2262c0(0x1565)]['name']+_0x2262c0(0x271):''}),_0x5134a5();})[_0x3f4462(0x20cd)](function(_0x5620f5){const _0x4f41d4=_0x3f4462;if(_0x5620f5['data']&&_0x5620f5[_0x4f41d4(0x1c52)][_0x4f41d4(0xbae)]&&_0x5620f5[_0x4f41d4(0x1c52)]['errors'][_0x4f41d4(0x1b9e)]){_0x255ce4['errors']=_0x5620f5[_0x4f41d4(0x1c52)]['errors']||[{'message':_0x5620f5['toString'](),'type':_0x4f41d4(0x2673)}];for(let _0x586b6b=0x0;_0x586b6b<_0x5620f5['data'][_0x4f41d4(0xbae)][_0x4f41d4(0x1b9e)];_0x586b6b++){_0x1c2884[_0x4f41d4(0x1bd0)]({'title':_0x5620f5['data']['errors'][_0x586b6b][_0x4f41d4(0x2185)],'msg':_0x5620f5[_0x4f41d4(0x1c52)][_0x4f41d4(0xbae)][_0x586b6b]['message']});}}else _0x1c2884[_0x4f41d4(0x1bd0)]({'title':_0x5620f5[_0x4f41d4(0x10b3)]?_0x4f41d4(0x575)+_0x5620f5[_0x4f41d4(0x10b3)]+'\x20-\x20'+_0x5620f5['statusText']:'api.analyticReport.update','msg':_0x5620f5[_0x4f41d4(0x1c52)]?JSON[_0x4f41d4(0x2317)](_0x5620f5['data'][_0x4f41d4(0x18ca)]):_0x5620f5[_0x4f41d4(0x2915)]()});});}function _0x485653(){const _0x4b27cb=_0x52089d;_0x255ce4[_0x4b27cb(0xbae)]=[];const _0x46e3d1=_0x225931[_0x4b27cb(0x856)]()[_0x4b27cb(0x2021)](_0x4b27cb(0x103a))[_0x4b27cb(0x12b8)](_0x4b27cb(0xefc))['ariaLabel'](_0x4b27cb(0x80d))['ok'](_0x4b27cb(0x2664))[_0x4b27cb(0x101a)](_0x4b27cb(0x1dc6))[_0x4b27cb(0x2283)](event);_0x225931[_0x4b27cb(0xa60)](_0x46e3d1)[_0x4b27cb(0x64a)](function(){const _0x57eda7=_0x4b27cb;_0x310331[_0x543cb3][_0x57eda7(0xabd)]({'id':_0x255ce4[_0x57eda7(0x1565)]['id']})['$promise']['then'](function(){const _0x574700=_0x57eda7;_0x28c606()[_0x574700(0x21c7)](_0x255ce4[_0x574700(0x47e)],{'id':_0x255ce4[_0x574700(0x1565)]['id']}),_0x1c2884[_0x574700(0x1339)]({'title':_0x574700(0xec0),'msg':_0x255ce4[_0x574700(0x1565)][_0x574700(0x2494)]?_0x255ce4[_0x574700(0x1565)]['name']+_0x574700(0x1fa8):''}),_0x5134a5();})['catch'](function(_0x5e0a97){const _0x2f81be=_0x57eda7;_0x255ce4[_0x2f81be(0xbae)]=_0x5e0a97[_0x2f81be(0x1c52)]['errors']||[{'message':_0x5e0a97[_0x2f81be(0x2915)](),'type':_0x2f81be(0x2762)}];});},function(){});}function _0x5134a5(){const _0x3d3f96=_0x52089d;_0x225931[_0x3d3f96(0x268e)]();}}const _0x49c223=_0x1244e2;;_0x54b9bf[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x184e),_0x49a1e3(0x680),'sqlUtil'];function _0x54b9bf(_0x8df1ce,_0x443e13,_0x42af27,_0x5a0a51){const _0x414f49=_0x49a1e3,_0x23ccfc=this;_0x23ccfc[_0x414f49(0x1565)]={},_0x23ccfc[_0x414f49(0xee1)]=_0x5a0a51['getConditions'],_0x23ccfc[_0x414f49(0x2354)]=_0x5e9612,_0x23ccfc[_0x414f49(0x25d6)]=_0x52cd31,_0x23ccfc['addGroup']=_0x45f409,_0x23ccfc['deleteConfirm']=_0x55b51e,_0x23ccfc[_0x414f49(0x6ce)]=_0xf94231;function _0x5e9612(_0x1a8f21,_0x418294){const _0x2ce919=_0x414f49;_0x23ccfc['report']=_0x1a8f21,_0x23ccfc[_0x2ce919(0x1565)][_0x2ce919(0xeea)]=angular['fromJson'](_0x1a8f21[_0x2ce919(0xee1)])||{'group':{'operator':_0x2ce919(0x29c),'rules':[]}},_0x23ccfc[_0x2ce919(0x402)]=typeof _0x418294!==_0x2ce919(0x19a1)?_0x418294:{'readOnly':!![],'canEdit':![],'canDelete':![]};for(let _0x3bf0fd=0x0;_0x3bf0fd<_0x23ccfc[_0x2ce919(0x1565)][_0x2ce919(0xeea)][_0x2ce919(0x1dda)]['rules']['length'];_0x3bf0fd++){if(_0x23ccfc[_0x2ce919(0x1565)][_0x2ce919(0xeea)][_0x2ce919(0x1dda)]['rules'][_0x3bf0fd]['field']){const _0x2eff9e=_0x23ccfc[_0x2ce919(0x1565)][_0x2ce919(0xeea)][_0x2ce919(0x1dda)]['rules'][_0x3bf0fd][_0x2ce919(0xc26)][_0x2ce919(0x282c)]('.');_0x2eff9e[_0x2ce919(0x1b9e)]===0x1&&(_0x23ccfc[_0x2ce919(0x1565)]['condition'][_0x2ce919(0x1dda)]['rules'][_0x3bf0fd][_0x2ce919(0xc26)]=_0x23ccfc[_0x2ce919(0x1565)]['table']+'.'+_0x23ccfc[_0x2ce919(0x1565)][_0x2ce919(0xeea)][_0x2ce919(0x1dda)][_0x2ce919(0x1293)][_0x3bf0fd]['field']);}}_0x443e13[_0x2ce919(0x14c8)](_0x23ccfc[_0x2ce919(0x1565)][_0x2ce919(0x185d)])['then'](function(_0x2f009d){const _0x3991aa=_0x2ce919;_0x23ccfc[_0x3991aa(0xb82)]=_0x28c606()[_0x3991aa(0xde7)](_0x28c606()[_0x3991aa(0x1ec6)](_0x2f009d),[_0x3991aa(0x15e7),'$resolved',_0x3991aa(0x2378),_0x3991aa(0x2056)]);})[_0x2ce919(0x20cd)](function(_0x30168b){const _0x1a5401=_0x2ce919;_0x42af27[_0x1a5401(0x1bd0)]({'title':_0x30168b['status']?_0x1a5401(0x575)+_0x30168b[_0x1a5401(0x10b3)]+_0x1a5401(0x21db)+_0x30168b[_0x1a5401(0x2115)]:'SYSTEM:DESCRIBE','msg':_0x30168b[_0x1a5401(0x1c52)]?JSON[_0x1a5401(0x2317)](_0x30168b[_0x1a5401(0x1c52)]):_0x30168b[_0x1a5401(0x2915)]()});});}function _0x52cd31(_0x97377a){_0x97377a['unshift']({'condition':'=','field':'','value':''});}function _0x45f409(_0x3a3344){const _0x2e23ab=_0x414f49;_0x3a3344[_0x2e23ab(0x1954)]({'group':{'operator':'AND','rules':[]}});}function _0x55b51e(_0x3e0f0,_0x233038,_0x2b699e){const _0x1f21a4=_0x414f49,_0x1c2134=_0x8df1ce[_0x1f21a4(0x856)]()['title'](_0x1f21a4(0x673))[_0x1f21a4(0x33a)](_0x1f21a4(0x18c2))[_0x1f21a4(0x213e)](_0x1f21a4(0x22d2))[_0x1f21a4(0x2283)](_0x2b699e)['ok']('OK')[_0x1f21a4(0x101a)](_0x1f21a4(0x18fd));_0x8df1ce[_0x1f21a4(0xa60)](_0x1c2134)['then'](function(){const _0x3aaa50=_0x1f21a4;_0x3e0f0[_0x3aaa50(0x18f0)](_0x233038,0x1);},function(){const _0x11b0e8=_0x1f21a4;console[_0x11b0e8(0x9b4)](_0x11b0e8(0x18fd));});}function _0xf94231(_0x2c047b){const _0x2edc61=_0x414f49;return!_0x28c606()[_0x2edc61(0x68a)]([_0x2edc61(0x19c),_0x2edc61(0xd42),'IS\x20EMPTY','IS\x20NOT\x20EMPTY'],_0x2c047b);}}const _0x35232e=_0x54b9bf;;_0x5bf9a3[_0x49a1e3(0x1e73)]=['api'];function _0x5bf9a3(_0x42487c){const _0x781611=_0x49a1e3,_0x2f7970={'cm_companies':'cmCompany','cm_contacts':'cmContact','cm_hopper':_0x781611(0x232f),'cm_hopper_final':_0x781611(0x711),'cm_hopper_history':_0x781611(0x827),'cm_lists':_0x781611(0x19f8),'chat_websites':'chatWebsite','chat_queues':'chatQueue','chat_interactions':'chatInteraction','chat_messages':_0x781611(0x281a),'chat_offline_messages':_0x781611(0x2812),'report_chat_queue':_0x781611(0x2836),'report_chat_transfer':'chatTransferReport','mail_accounts':_0x781611(0x1b1e),'mail_queues':_0x781611(0x1eb3),'mail_interactions':_0x781611(0x1e03),'mail_messages':_0x781611(0x284),'report_mail_queue':_0x781611(0x36b),'report_mail_transfer':_0x781611(0x1312),'openchannel_accounts':'openchannelAccount','openchannel_queues':_0x781611(0xb4b),'openchannel_interactions':_0x781611(0x1265),'openchannel_messages':_0x781611(0x1177),'report_openchannel_queue':'openchannelQueueReport','report_openchannel_transfer':'openchannelTransferReport','sms_accounts':_0x781611(0x1512),'sms_queues':_0x781611(0x1957),'sms_interactions':'smsInteraction','sms_messages':_0x781611(0x1ce8),'report_sms_queue':_0x781611(0x1864),'report_sms_transfer':_0x781611(0x1d62),'fax_accounts':_0x781611(0x549),'fax_queues':_0x781611(0xf82),'fax_interactions':'faxInteraction','fax_messages':_0x781611(0xcfc),'report_fax_transfer':_0x781611(0x3f9),'report_fax_queue':'faxQueueReport','report_call':'voiceCallReport','report_agent':_0x781611(0x1445),'report_square':'squareReport','report_member':_0x781611(0x1892),'report_queue':'voiceQueueReport','report_square_details':_0x781611(0x1f50),'report_dial':_0x781611(0x1002),'report_jscripty_sessions':_0x781611(0x192),'report_jscripty_questions':_0x781611(0x155a),'report_jscripty_answers':_0x781611(0x73f),'users':_0x781611(0x2e8),'voice_recordings':_0x781611(0x15bd),'cdr':'cdr','whatsapp_accounts':'whatsappAccount','whatsapp_queues':_0x781611(0x296d),'whatsapp_interactions':_0x781611(0x2076),'whatsapp_messages':_0x781611(0xd80),'report_whatsapp_queue':_0x781611(0x1a1a),'report_whatsapp_transfer':_0x781611(0xe30)};return{'getMap':function(){const _0x31f872=_0x781611,_0x3e83d8=[];return _0x28c606()[_0x31f872(0x1789)](_0x2f7970,function(_0x551e36,_0x3e0cb6){const _0x63956a=_0x31f872;_0x3e83d8[_0x63956a(0x1954)]({'name':_0x3e0cb6,'api':_0x551e36});}),_0x3e83d8;},'getColumns':function(_0x363f4c){const _0xdcf3d6=_0x781611,_0x4101e2=_0x2f7970[_0x363f4c];return _0x42487c[_0x4101e2][_0xdcf3d6(0xa81)]()[_0xdcf3d6(0x15e7)];}};}const _0x5c76bb=_0x5bf9a3;;_0x252af3[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1155),'$mdDialog',_0x49a1e3(0x680),'report',_0x49a1e3(0x981),'reportField',_0x49a1e3(0xe60),_0x49a1e3(0xb82),_0x49a1e3(0x1c6e),_0x49a1e3(0xa19),_0x49a1e3(0x402)];function _0x252af3(_0x249bb7,_0x30423d,_0x47427b,_0x2e7ab9,_0x2c612b,_0x496784,_0x2f7896,_0x128d86,_0x45469,_0x5c3621,_0x272d0d,_0x17fa9f){const _0x3e3ade=_0x49a1e3,_0x5525e2=this;_0x5525e2[_0x3e3ade(0xbae)]=[],_0x5525e2[_0x3e3ade(0x2021)]=_0x3e3ade(0x24c0),_0x5525e2[_0x3e3ade(0x1565)]=_0x2c612b,_0x5525e2[_0x3e3ade(0x50d)]=angular[_0x3e3ade(0x289e)](_0x2f7896),_0x5525e2[_0x3e3ade(0x981)]=_0x496784,_0x5525e2[_0x3e3ade(0xe60)]=_0x128d86,_0x5525e2[_0x3e3ade(0xb82)]=_0x45469,_0x5525e2['sqlUtil']=_0x5c3621,_0x5525e2[_0x3e3ade(0xa59)]=![],_0x5525e2[_0x3e3ade(0x402)]=_0x17fa9f;if(!_0x5525e2[_0x3e3ade(0x50d)])_0x5525e2['reportField']={'type':_0x3e3ade(0xacf),'function':null,'format':null,'groupBy':![],'orderBy':null},_0x5525e2['title']=_0x3e3ade(0x6e9),_0x5525e2[_0x3e3ade(0xa59)]=!![];else{_0x5525e2[_0x3e3ade(0x50d)]['type']=_0x5525e2[_0x3e3ade(0x50d)][_0x3e3ade(0x1ad6)]?'custom':_0x5525e2[_0x3e3ade(0x50d)][_0x3e3ade(0x8ee)]?_0x3e3ade(0x900):_0x3e3ade(0xacf);if(_0x5525e2[_0x3e3ade(0x50d)]['field']&&!_0x5525e2[_0x3e3ade(0x50d)][_0x3e3ade(0x1ad6)]&&_0x28c606()[_0x3e3ade(0x28d7)](_0x5525e2[_0x3e3ade(0x50d)][_0x3e3ade(0x8ee)])){const _0x8d5bb=_0x5525e2[_0x3e3ade(0x50d)][_0x3e3ade(0xc26)][_0x3e3ade(0x282c)]('.');_0x8d5bb[_0x3e3ade(0x1b9e)]===0x1&&(_0x5525e2[_0x3e3ade(0x50d)][_0x3e3ade(0xc26)]=_0x5525e2[_0x3e3ade(0x1565)]['table']+'.'+_0x5525e2[_0x3e3ade(0x50d)][_0x3e3ade(0xc26)]);}}_0x5525e2[_0x3e3ade(0x13a3)]=_0x21894f,_0x5525e2[_0x3e3ade(0x7b2)]=_0x167d27,_0x5525e2['deleteReportField']=_0x13e8e4,_0x5525e2[_0x3e3ade(0x16cb)]=_0x44d8f4;function _0x21894f(){const _0x16fec4=_0x3e3ade;_0x5525e2[_0x16fec4(0xbae)]=[],_0x5525e2['reportField']['custom']=_0x5525e2[_0x16fec4(0x50d)][_0x16fec4(0x2185)]===_0x16fec4(0x1ad6),_0x5525e2[_0x16fec4(0x50d)]['MetricId']=_0x5525e2[_0x16fec4(0x50d)][_0x16fec4(0x2185)]===_0x16fec4(0x900)?_0x5525e2['reportField'][_0x16fec4(0x8ee)]:null,_0x5525e2[_0x16fec4(0x50d)]['CustomReportId']=_0x5525e2[_0x16fec4(0x1565)]['id'],_0x272d0d[_0x16fec4(0x11d1)][_0x16fec4(0x2479)](_0x5525e2[_0x16fec4(0x50d)])[_0x16fec4(0x15e7)][_0x16fec4(0x64a)](function(_0x8dca96){const _0x5d0d8d=_0x16fec4;_0x5525e2['reportFields'][_0x5d0d8d(0x1954)](_0x8dca96),_0x2e7ab9[_0x5d0d8d(0x1339)]({'title':_0x5d0d8d(0x591),'msg':_0x5525e2['reportField'][_0x5d0d8d(0xc26)]?_0x5525e2[_0x5d0d8d(0x50d)][_0x5d0d8d(0xc26)]+_0x5d0d8d(0x258d):_0x5525e2[_0x5d0d8d(0x50d)]['type']+_0x5d0d8d(0x258d)}),_0x44d8f4();})['catch'](function(_0xf74d70){const _0x3be236=_0x16fec4;_0x5525e2['errors']=_0xf74d70[_0x3be236(0x1c52)][_0x3be236(0xbae)]||[{'message':_0xf74d70[_0x3be236(0x2915)](),'type':'api.analyticFieldReport.save'}];});}function _0x167d27(){const _0x2f36fc=_0x3e3ade;_0x5525e2[_0x2f36fc(0xbae)]=[],_0x5525e2['reportField']['custom']=_0x5525e2['reportField'][_0x2f36fc(0x2185)]===_0x2f36fc(0x1ad6),_0x5525e2[_0x2f36fc(0x50d)][_0x2f36fc(0x8ee)]=_0x5525e2[_0x2f36fc(0x50d)]['type']===_0x2f36fc(0x900)?_0x5525e2['reportField'][_0x2f36fc(0x8ee)]:null,_0x272d0d[_0x2f36fc(0x11d1)][_0x2f36fc(0x2603)]({'id':_0x5525e2[_0x2f36fc(0x50d)]['id']},_0x5525e2[_0x2f36fc(0x50d)])[_0x2f36fc(0x15e7)][_0x2f36fc(0x64a)](function(_0x4217e1){const _0x5d31ff=_0x2f36fc,_0x4e5c86=_0x28c606()[_0x5d31ff(0x27bc)](_0x5525e2['reportFields'],{'id':_0x4217e1['id']});_0x4e5c86&&_0x28c606()[_0x5d31ff(0x14fe)](_0x4e5c86,_0x4217e1),_0x2e7ab9[_0x5d31ff(0x1339)]({'title':_0x5d31ff(0x23c4),'msg':_0x5525e2['reportField'][_0x5d31ff(0xc26)]?_0x5525e2['reportField'][_0x5d31ff(0xc26)]+_0x5d31ff(0x271):''}),_0x44d8f4();})['catch'](function(_0x28d79c){const _0x3401cf=_0x2f36fc;_0x5525e2[_0x3401cf(0xbae)]=_0x28d79c[_0x3401cf(0x1c52)][_0x3401cf(0xbae)]||[{'message':_0x28d79c[_0x3401cf(0x2915)](),'type':'api.analyticFieldReport.update'}];});}function _0x13e8e4(_0x733df2){const _0x4e4329=_0x3e3ade;_0x5525e2[_0x4e4329(0xbae)]=[];const _0x324ce5=_0x47427b[_0x4e4329(0x856)]()[_0x4e4329(0x2021)](_0x4e4329(0x103a))[_0x4e4329(0x12b8)](_0x4e4329(0x1a2a))[_0x4e4329(0x213e)]('Delete\x20Report')['ok'](_0x4e4329(0x2664))[_0x4e4329(0x101a)]('Cancel')['targetEvent'](_0x733df2);_0x47427b[_0x4e4329(0xa60)](_0x324ce5)[_0x4e4329(0x64a)](function(){const _0x3d4df7=_0x4e4329;_0x272d0d[_0x3d4df7(0x11d1)][_0x3d4df7(0xabd)]({'id':_0x5525e2[_0x3d4df7(0x50d)]['id']})[_0x3d4df7(0x15e7)][_0x3d4df7(0x64a)](function(){const _0x3b3145=_0x3d4df7;_0x28c606()[_0x3b3145(0x21c7)](_0x5525e2[_0x3b3145(0x981)],{'id':_0x5525e2[_0x3b3145(0x50d)]['id']}),_0x2e7ab9['success']({'title':'Report\x20Field\x20properly\x20deleted!','msg':_0x5525e2[_0x3b3145(0x50d)][_0x3b3145(0xc26)]?_0x5525e2[_0x3b3145(0x50d)][_0x3b3145(0xc26)]+_0x3b3145(0x1fa8):''}),_0x44d8f4();})[_0x3d4df7(0x20cd)](function(_0x585c45){const _0x166493=_0x3d4df7;_0x5525e2[_0x166493(0xbae)]=_0x585c45['data'][_0x166493(0xbae)]||[{'message':_0x585c45[_0x166493(0x2915)](),'type':_0x166493(0x17ab)}];});},function(){});}function _0x44d8f4(){_0x47427b['hide']();}}const _0x13e755=_0x252af3;;const _0x83c375=_0x2e4a48['p']+'src/js/modules/main/apps/analytics/views/reports/edit/field/dialog.html/dialog.html';;_0x1c4a4c['$inject']=['$cookies',_0x49a1e3(0x1674),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),'toasty',_0x49a1e3(0xa19),_0x49a1e3(0x184e),_0x49a1e3(0x1c6e),_0x49a1e3(0x298c)];function _0x1c4a4c(_0x5a4859,_0x49bc04,_0x444703,_0x1a4c85,_0x59d65a,_0x509164,_0x1884fe,_0x2b0342,_0x4596f4,_0x42d90c){const _0x40669=_0x49a1e3,_0x1b2999=this;_0x1b2999[_0x40669(0x1565)]={},_0x1b2999[_0x40669(0x981)]={'count':0x0,'rows':[]},_0x1b2999[_0x40669(0x16b0)]=_0x28c606()[_0x40669(0x161e)](_0x4596f4['getFunctions'],_0x40669(0x1096)),_0x1b2999[_0x40669(0x7b5)]=_0x28c606()[_0x40669(0x161e)](_0x4596f4[_0x40669(0xe26)],_0x40669(0x1096)),_0x1b2999[_0x40669(0x156d)]=_0x28c606()[_0x40669(0x161e)](_0x4596f4[_0x40669(0x1bd5)],_0x40669(0x1096)),_0x1b2999[_0x40669(0x288e)]=_0x28c606()[_0x40669(0x161e)](_0x4596f4['getOrderBy'],_0x40669(0x1096)),_0x1b2999[_0x40669(0x263b)]=[],_0x1b2999[_0x40669(0x289a)]={'fields':'createdAt,updatedAt,id,field,alias,function,format,groupBy,orderBy,custom,MetricId','nolimit':!![]},_0x1b2999[_0x40669(0x1094)]={'animation':0x64,'onSort':function(_0x301846){const _0x483c7d=_0x40669;_0x1884fe[_0x483c7d(0x11d1)][_0x483c7d(0x2738)]({'id':_0x1b2999[_0x483c7d(0x1565)]['id']},_0x301846[_0x483c7d(0x264e)])[_0x483c7d(0x15e7)]['then'](function(_0x3fcffa){const _0x10b1b2=_0x483c7d;_0x1b2999['reportFields'][_0x10b1b2(0x28b8)]=_0x3fcffa;})[_0x483c7d(0x20cd)](function(_0x56e9a6){const _0x51dc24=_0x483c7d;_0x509164[_0x51dc24(0x1bd0)]({'title':_0x56e9a6[_0x51dc24(0x10b3)]?_0x51dc24(0x575)+_0x56e9a6[_0x51dc24(0x10b3)]+_0x51dc24(0x21db)+_0x56e9a6[_0x51dc24(0x2115)]:_0x51dc24(0xc34)});});}},_0x1b2999[_0x40669(0x2354)]=_0x3614b2,_0x1b2999[_0x40669(0x217e)]=_0x2ef1bf,_0x1b2999[_0x40669(0x1339)]=_0x3da442,_0x1b2999[_0x40669(0x283e)]=_0x4c70ff,_0x1b2999[_0x40669(0xb93)]=_0x37778e,_0x1b2999[_0x40669(0x1744)]=_0x9b2c5,_0x1b2999['deleteSelectedReportFields']=_0x58945d,_0x1b2999[_0x40669(0x194d)]=_0x441860,_0x1b2999[_0x40669(0x183f)]=_0x12e89c;function _0x3614b2(_0x409902,_0x1e6949){const _0x34ab38=_0x40669;_0x1b2999[_0x34ab38(0x1565)]=_0x409902,_0x1b2999[_0x34ab38(0x289a)]['CustomReportId']=_0x1b2999['report']['id'],_0x1b2999[_0x34ab38(0x402)]=typeof _0x1e6949!==_0x34ab38(0x19a1)?_0x1e6949:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1b2999[_0x34ab38(0x1094)][_0x34ab38(0x1a95)]=!_0x1b2999[_0x34ab38(0x402)][_0x34ab38(0xd86)]?!![]:![],_0x2b0342['getColumns'](_0x1b2999['report'][_0x34ab38(0x185d)])[_0x34ab38(0x64a)](function(_0x9ab5e9){const _0x2e358f=_0x34ab38;return _0x1b2999[_0x2e358f(0xb82)]=_0x28c606()[_0x2e358f(0xde7)](_0x28c606()[_0x2e358f(0x1ec6)](_0x9ab5e9),[_0x2e358f(0x15e7),_0x2e358f(0x19ba)]),_0x1884fe[_0x2e358f(0x1dcf)][_0x2e358f(0x896)]({'fields':'id,name,metric,table','nolimit':!![]})[_0x2e358f(0x15e7)];})[_0x34ab38(0x64a)](function(_0x3dba0d){const _0x56109f=_0x34ab38;_0x1b2999[_0x56109f(0xe60)]=_0x3dba0d[_0x56109f(0x28b8)];})[_0x34ab38(0x20cd)](function(_0x3fc8dc){const _0x37e1bd=_0x34ab38;_0x509164['error']({'title':_0x3fc8dc[_0x37e1bd(0x10b3)]?_0x37e1bd(0x575)+_0x3fc8dc[_0x37e1bd(0x10b3)]+_0x37e1bd(0x21db)+_0x3fc8dc[_0x37e1bd(0x2115)]:_0x37e1bd(0x9de),'msg':_0x3fc8dc[_0x37e1bd(0x1c52)]?JSON[_0x37e1bd(0x2317)](_0x3fc8dc[_0x37e1bd(0x1c52)]):_0x3fc8dc[_0x37e1bd(0x2915)]()});}),_0x1b2999[_0x34ab38(0x283e)]();}function _0x2ef1bf(_0xbee980,_0x25e61a){const _0x541a34=_0x40669,_0x1bc60d=_0x1a4c85[_0x541a34(0x856)]()[_0x541a34(0x2021)](_0x541a34(0x865))[_0x541a34(0x33a)](_0x541a34(0x50b)+_0xbee980[_0x541a34(0xc26)]+_0x541a34(0x26d0)+_0x541a34(0x4b8))[_0x541a34(0x213e)](_0x541a34(0x22d7))[_0x541a34(0x2283)](_0x25e61a)['ok']('OK')[_0x541a34(0x101a)]('CANCEL');_0x1a4c85[_0x541a34(0xa60)](_0x1bc60d)[_0x541a34(0x64a)](function(){_0x9b2c5(_0xbee980);},function(){const _0x41ac36=_0x541a34;console['log'](_0x41ac36(0x18fd));});}let _0x4a2087=!![];_0x49bc04['$watch'](_0x40669(0xe4a),function(){const _0x29cf11=_0x40669;_0x4a2087?_0x444703(function(){_0x4a2087=![];}):_0x1b2999[_0x29cf11(0x283e)]();});function _0x3da442(_0x127203){const _0x2264cc=_0x40669;_0x1b2999[_0x2264cc(0x981)]=_0x127203||{'count':0x0,'rows':[]};}function _0x4c70ff(){const _0x1d03d4=_0x40669;_0x1b2999[_0x1d03d4(0x1713)]=_0x1884fe[_0x1d03d4(0x11d1)][_0x1d03d4(0x896)](_0x1b2999[_0x1d03d4(0x289a)],_0x3da442)['$promise'];}function _0x37778e(_0x5465ec,_0x4733c7){const _0x3a26be=_0x40669;_0x1a4c85[_0x3a26be(0xa60)]({'controller':_0x3a26be(0x284d),'controllerAs':'vm','templateUrl':_0x83c375,'parent':angular[_0x3a26be(0x1f81)](_0x59d65a[_0x3a26be(0xb49)]),'targetEvent':_0x5465ec,'clickOutsideToClose':!![],'locals':{'report':_0x1b2999['report'],'reportField':_0x4733c7,'reportFields':_0x1b2999['reportFields'][_0x3a26be(0x28b8)],'metrics':_0x1b2999[_0x3a26be(0xe60)],'columns':_0x1b2999[_0x3a26be(0xb82)],'setting':null,'crudPermissions':_0x1b2999[_0x3a26be(0x402)]}});}function _0x9b2c5(_0x157510){const _0x59ce35=_0x40669;_0x1884fe[_0x59ce35(0x11d1)][_0x59ce35(0xabd)]({'id':_0x157510['id']})['$promise'][_0x59ce35(0x64a)](function(){const _0x124fd9=_0x59ce35;_0x1b2999[_0x124fd9(0x263b)]=[],_0x28c606()[_0x124fd9(0x21c7)](_0x1b2999[_0x124fd9(0x981)]['rows'],{'id':_0x157510['id']}),_0x1b2999[_0x124fd9(0x981)]['count']-=0x1,!_0x1b2999[_0x124fd9(0x981)]['rows'][_0x124fd9(0x1b9e)]&&_0x1b2999[_0x124fd9(0x283e)](),_0x509164[_0x124fd9(0x1339)]({'title':'Field\x20deleted!','msg':_0x157510[_0x124fd9(0xc26)]?_0x157510[_0x124fd9(0xc26)]+_0x124fd9(0x1fa8):''});})[_0x59ce35(0x20cd)](function(_0x3dcdb7){const _0x4a7853=_0x59ce35;_0x509164[_0x4a7853(0x1bd0)]({'title':_0x3dcdb7['status']?_0x4a7853(0x575)+_0x3dcdb7['status']+_0x4a7853(0x21db)+_0x3dcdb7['statusText']:_0x4a7853(0x498),'msg':_0x3dcdb7[_0x4a7853(0x1c52)]?JSON['stringify'](_0x3dcdb7['data']):_0x3dcdb7[_0x4a7853(0x2915)]()});});}function _0x58945d(_0x31f261){const _0x52347f=_0x40669,_0x22463e=_0x1a4c85['confirm']()[_0x52347f(0x2021)](_0x52347f(0x17bf))[_0x52347f(0x33a)](_0x52347f(0x50b)+_0x1b2999['selectedReportFields']['length']+_0x52347f(0x163e)+_0x52347f(0x4b8))[_0x52347f(0x213e)]('delete\x20fields')[_0x52347f(0x2283)](_0x31f261)['ok']('OK')[_0x52347f(0x101a)](_0x52347f(0x18fd));_0x1a4c85[_0x52347f(0xa60)](_0x22463e)[_0x52347f(0x64a)](function(){const _0x2bc013=_0x52347f;_0x1b2999[_0x2bc013(0x263b)][_0x2bc013(0x1397)](function(_0x35258d){_0x9b2c5(_0x35258d);}),_0x1b2999[_0x2bc013(0x263b)]=[];});}function _0x441860(_0x220b5d){const _0x19b8e4=_0x40669,_0xb6a52b=_0x28c606()[_0x19b8e4(0x27bc)](_0x1b2999[_0x19b8e4(0xe60)],{'id':_0x220b5d});return _0xb6a52b?_0xb6a52b[_0x19b8e4(0x2494)]:_0x42d90c[_0x19b8e4(0x2292)](_0x19b8e4(0x23a9));}function _0x12e89c(_0x1b08fb){const _0x1103c1=_0x40669,_0x14b3e0=_0x28c606()[_0x1103c1(0x27bc)](_0x1b2999[_0x1103c1(0xe60)],{'id':_0x1b08fb});return _0x14b3e0?_0x14b3e0[_0x1103c1(0x900)]:_0x42d90c[_0x1103c1(0x2292)](_0x1103c1(0x23a9));}}const _0x5a584b=_0x1c4a4c;;function _0x111db6(){const _0x49ddde=_0x49a1e3,_0x2d3dc7=[{'value':'SUM','option':function(_0x1b1e9c){const _0x2c8448=a0_0x4127;return _0x2c8448(0x24d5)+_0x1b1e9c+')';}},{'value':_0x49ddde(0x21be),'option':function(_0x9fccb1){const _0x231a59=_0x49ddde;return _0x231a59(0x1d3e)+_0x9fccb1+')';}},{'value':'COUNT\x20DISTINCT','option':function(_0x13afa3){const _0x5e84a0=_0x49ddde;return _0x5e84a0(0x1dcc)+_0x13afa3+')';}},{'value':_0x49ddde(0x1f2d),'option':function(_0xe1acaa){const _0x56a15d=_0x49ddde;return _0x56a15d(0x1cf5)+_0xe1acaa+')';}},{'value':'MIN','option':function(_0x4f6e23){const _0x2f0d56=_0x49ddde;return _0x2f0d56(0x1a00)+_0x4f6e23+')';}},{'value':_0x49ddde(0x2982),'option':function(_0x1eec2d){const _0x4d361d=_0x49ddde;return _0x4d361d(0xf35)+_0x1eec2d+')';}},{'value':'GROUP_CONCAT','option':function(_0x54c00b){const _0x4867ba=_0x49ddde;return _0x4867ba(0xe43)+_0x54c00b+')';}},{'value':'GROUP_CONCAT\x20ASC','option':function(_0x25eff0){const _0xbc0e58=_0x49ddde;return'GROUP_CONCAT\x20('+_0x25eff0+_0xbc0e58(0x229c)+_0x25eff0+_0xbc0e58(0x781);}},{'value':_0x49ddde(0x1d5f),'option':function(_0x287f1){const _0x1b0f6e=_0x49ddde;return'GROUP_CONCAT\x20('+_0x287f1+'\x20ORDER\x20BY\x20'+_0x287f1+_0x1b0f6e(0x789);}}],_0x4563dc=[{'value':_0x49ddde(0x1242),'option':function(_0x366d0d){const _0x34fd95=_0x49ddde;return _0x34fd95(0x25d)+_0x366d0d+')';}},{'value':_0x49ddde(0x127f),'option':function(_0x3ad77d){const _0x3eb1d5=_0x49ddde;return _0x3eb1d5(0x19ea)+_0x3ad77d+')';}},{'value':_0x49ddde(0x1805),'option':function(_0x279cc6){const _0x12d93c=_0x49ddde;return _0x12d93c(0x17e2)+_0x279cc6+')';}},{'value':'ROUND','option':function(_0x3ca63b){const _0x15472b=_0x49ddde;return _0x15472b(0x149f)+_0x3ca63b+')';}},{'value':_0x49ddde(0x282),'option':function(_0x4eb200){const _0x27da79=_0x49ddde;return _0x27da79(0x2820)+_0x4eb200+')';}}],_0xee8795=[{'value':![],'option':function(){return'No';}},{'value':!![],'option':function(_0x224326){const _0x1bdcc0=_0x49ddde;return _0x1bdcc0(0x1f80)+_0x224326;}}],_0x4f9179=[{'value':'ASC','option':function(_0x59c5f9){const _0x4f42c3=_0x49ddde;return _0x4f42c3(0x1618)+_0x59c5f9+_0x4f42c3(0x7cd);}},{'value':'DESC','option':function(_0x256a61){const _0x2e9a7a=_0x49ddde;return _0x2e9a7a(0x1618)+_0x256a61+_0x2e9a7a(0x2376);}}],_0x470b24=['=','!=','<','<=','>','>=',_0x49ddde(0x179d),_0x49ddde(0x20fe),_0x49ddde(0x19c),_0x49ddde(0xd42),_0x49ddde(0x113),_0x49ddde(0x1680)];return{'getFunctions':_0x2d3dc7,'getFormats':_0x4563dc,'getGroupBy':_0xee8795,'getOrderBy':_0x4f9179,'getConditions':_0x470b24};}const _0x149cfb=_0x111db6;;_0x57e087['$inject']=[_0x49a1e3(0x77f),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x1565),_0x49a1e3(0xdcf),_0x49a1e3(0x16b2)];function _0x57e087(_0x327f58,_0x18f817,_0x7ffd07,_0x449a7f,_0x3bea0a,_0xda445){const _0x22447a=_0x49a1e3,_0x43d663=this;_0x43d663[_0x22447a(0x1565)]=_0x449a7f||{},_0x43d663[_0x22447a(0x16b2)]=_0xda445&&_0xda445['count']==0x1?_0xda445[_0x22447a(0x28b8)][0x0]:null,_0x43d663[_0x22447a(0x402)]=_0x3bea0a['parseCrudPermissions'](_0x43d663[_0x22447a(0x16b2)]?_0x43d663[_0x22447a(0x16b2)]['crudPermissions']:null),_0x43d663[_0x22447a(0x197c)]=_0x327f58[_0x22447a(0x1b48)][_0x22447a(0x1222)]||0x0,_0x43d663[_0x22447a(0x46a)]=_0x323ec3,_0x43d663[_0x22447a(0x4f0)]=_0xb77604,_0x43d663['previewReport']=_0x4494d5,_0x43d663[_0x22447a(0x12de)]=_0x5b6b2a,_0x43d663[_0x22447a(0xf7f)]=_0xf200bc,_0x43d663[_0x22447a(0x616)]=_0x11615c,_0x43d663[_0x22447a(0x1e8b)]=_0x5d0019;function _0x323ec3(){const _0x4012d9=_0x22447a;_0x327f58['go'](_0x4012d9(0x1c7b),{},{'reload':_0x4012d9(0x1c7b)});}function _0xb77604(){const _0x300109=_0x22447a;_0x43d663[_0x300109(0x1565)][_0x300109(0xee1)]=angular[_0x300109(0x1b67)](_0x43d663[_0x300109(0x1565)]['condition']),_0x7ffd07[_0x300109(0x1d97)]['update']({'id':_0x43d663[_0x300109(0x1565)]['id']},_0x28c606()[_0x300109(0xd09)](_0x43d663[_0x300109(0x1565)],'joins'))['$promise']['then'](function(){const _0x558d74=_0x300109;_0x18f817[_0x558d74(0x1339)]({'title':_0x558d74(0x2042),'msg':_0x43d663[_0x558d74(0x1565)][_0x558d74(0x2494)]?_0x43d663['report'][_0x558d74(0x2494)]+_0x558d74(0x2032):''});})[_0x300109(0x20cd)](function(_0x595cc1){const _0x30b0ac=_0x300109;_0x18f817[_0x30b0ac(0x1bd0)]({'title':_0x595cc1[_0x30b0ac(0x10b3)]?'API:'+_0x595cc1[_0x30b0ac(0x10b3)]+_0x30b0ac(0x21db)+_0x595cc1[_0x30b0ac(0x2115)]:'SYSTEM:GETreport','msg':_0x595cc1[_0x30b0ac(0x1c52)]?JSON[_0x30b0ac(0x2317)](_0x595cc1[_0x30b0ac(0x1c52)]):_0x595cc1['toString']()});});}function _0x4494d5(){const _0x452d1b=_0x22447a;_0x43d663['columns']=[],_0x43d663[_0x452d1b(0x28b8)]=[],_0x43d663[_0x452d1b(0x1bd0)]=![],_0x7ffd07[_0x452d1b(0x11d1)][_0x452d1b(0x896)]({'fields':'field,alias','nolimit':!![],'CustomReportId':_0x43d663['report']['id']})[_0x452d1b(0x15e7)]['then'](function(_0x283243){const _0x3fdb6a=_0x452d1b;return _0x43d663['columns']=_0x283243?_0x283243[_0x3fdb6a(0x28b8)]:[],_0x7ffd07[_0x3fdb6a(0x1d97)][_0x3fdb6a(0x2842)]({'id':_0x43d663[_0x3fdb6a(0x1565)]['id']})['$promise'];})[_0x452d1b(0x64a)](function(_0x5ce226){_0x43d663['rows']=_0x5ce226;})['catch'](function(_0x1abff0){const _0x263c1b=_0x452d1b;console['log'](_0x1abff0),_0x43d663[_0x263c1b(0x1bd0)]={'title':_0x1abff0['status']?_0x263c1b(0x575)+_0x1abff0[_0x263c1b(0x10b3)]+_0x263c1b(0x21db)+_0x1abff0[_0x263c1b(0x2115)]:'SYSTEM:analyticFieldReport','msg':_0x1abff0[_0x263c1b(0x1c52)]?_0x1abff0[_0x263c1b(0x1c52)]['message']:_0x1abff0[_0x263c1b(0x2915)](),'sql':_0x1abff0[_0x263c1b(0x1c52)]?_0x1abff0[_0x263c1b(0x1c52)][_0x263c1b(0x2854)]?_0x1abff0['data'][_0x263c1b(0x2854)][_0x263c1b(0x658)]:_0x263c1b(0x76e):_0x263c1b(0x76e)},_0x18f817[_0x263c1b(0x1bd0)](_0x43d663[_0x263c1b(0x1bd0)]);});}function _0x5d0019(_0x58d2ac,_0x175a0e){const _0xecfed=_0x22447a;return _0x2ac33a()(_0x175a0e,_0xecfed(0x3f0),!![])[_0xecfed(0x6f9)]()&&(_0x175a0e=_0x2ac33a()(_0x175a0e,'')[_0xecfed(0x1c2c)](_0xecfed(0x5f7))),_0x175a0e;}function _0x5b6b2a(){const _0x450b09=_0x22447a;return _0x43d663[_0x450b09(0x1f44)]=_0x450b09(0x14fa),_0x7ffd07[_0x450b09(0x1d97)][_0x450b09(0x289a)]({'id':_0x43d663[_0x450b09(0x1565)]['id']})[_0x450b09(0x15e7)]['then'](function(_0x294943){const _0x23a164=_0x450b09;_0x43d663[_0x23a164(0x1f44)]=_0x294943['sql'];})[_0x450b09(0x20cd)](function(_0x7fb74d){const _0x5f1e4d=_0x450b09;_0x43d663[_0x5f1e4d(0x1f44)]='',console[_0x5f1e4d(0x9b4)](_0x7fb74d),_0x43d663[_0x5f1e4d(0x1bd0)]={'title':_0x7fb74d[_0x5f1e4d(0x10b3)]?'API:'+_0x7fb74d[_0x5f1e4d(0x10b3)]+'\x20-\x20'+_0x7fb74d[_0x5f1e4d(0x2115)]:_0x5f1e4d(0x1712),'msg':_0x7fb74d[_0x5f1e4d(0x1c52)]?_0x7fb74d[_0x5f1e4d(0x1c52)]['message']:_0x7fb74d[_0x5f1e4d(0x2915)](),'sql':_0x7fb74d['data']?_0x7fb74d[_0x5f1e4d(0x1c52)][_0x5f1e4d(0x2854)]?_0x7fb74d[_0x5f1e4d(0x1c52)][_0x5f1e4d(0x2854)][_0x5f1e4d(0x658)]:_0x5f1e4d(0x76e):_0x5f1e4d(0x76e)},_0x18f817[_0x5f1e4d(0x1bd0)](_0x43d663[_0x5f1e4d(0x1bd0)]);});}function _0xf200bc(_0x242567,_0x489c3d){const _0x2d4187=_0x22447a;if(_0x11615c(_0x242567))return _0x28c606()[_0x2d4187(0x1de5)](_0x242567,_0x489c3d)[_0x2d4187(0x9a6)](',');return'';}function _0x11615c(_0x587226){const _0x2860f4=_0x22447a;return _0x28c606()[_0x2860f4(0x616)](_0x587226);}}const _0x20c865=_0x57e087;;_0x279c72['$inject']=[_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x680),_0x49a1e3(0x1565),_0x49a1e3(0xa19),_0x49a1e3(0x1c8e)];function _0x279c72(_0x20c8a5,_0x86608d,_0x1375c0,_0x5384f6,_0x1d7727,_0x4014a4){const _0x4332f5=_0x49a1e3,_0x5f01df=this;_0x5f01df[_0x4332f5(0xbae)]=[],_0x5f01df[_0x4332f5(0x1565)]=angular[_0x4332f5(0x289e)](_0x5384f6),_0x5f01df[_0x4332f5(0x1e8b)]=_0x3a356c,_0x5f01df[_0x4332f5(0x16cb)]=_0x57b263,_0x74dff();function _0x74dff(){const _0x480906=_0x4332f5;_0x5f01df['columns']=[],_0x5f01df[_0x480906(0x28b8)]=[],_0x5f01df['error']=![];const _0xdadd90={'fields':'field,alias','nolimit':!![]};_0xdadd90[_0x4014a4===_0x480906(0x1d97)?_0x480906(0x27e3):_0x480906(0x28c)]=_0x5f01df[_0x480906(0x1565)]['id'],_0x5f01df[_0x480906(0x1713)]=_0x1d7727[_0x480906(0x11d1)][_0x480906(0x896)](_0xdadd90)[_0x480906(0x15e7)][_0x480906(0x64a)](function(_0x23a1f7){const _0x304742=_0x480906;return _0x5f01df[_0x304742(0xb82)]=_0x23a1f7?_0x23a1f7[_0x304742(0x28b8)]:[],_0x1d7727[_0x4014a4][_0x304742(0x2842)]({'id':_0x5f01df['report']['id']})[_0x304742(0x15e7)];})['then'](function(_0x153279){const _0xd5654d=_0x480906;_0x5f01df[_0xd5654d(0x28b8)]=_0x153279;})[_0x480906(0x20cd)](function(_0x319243){const _0x11b893=_0x480906;console[_0x11b893(0x9b4)](_0x319243),_0x5f01df[_0x11b893(0x1bd0)]={'title':_0x319243[_0x11b893(0x10b3)]?_0x11b893(0x575)+_0x319243[_0x11b893(0x10b3)]+_0x11b893(0x21db)+_0x319243[_0x11b893(0x2115)]:_0x11b893(0x1712),'msg':_0x319243[_0x11b893(0x1c52)]?_0x319243[_0x11b893(0x1c52)]['message']:_0x319243[_0x11b893(0x2915)](),'sql':_0x319243[_0x11b893(0x1c52)]?_0x319243[_0x11b893(0x1c52)][_0x11b893(0x2854)]?_0x319243['data'][_0x11b893(0x2854)][_0x11b893(0x658)]:_0x11b893(0x76e):'NO\x20QUERY'},_0x1375c0[_0x11b893(0x1bd0)](_0x5f01df[_0x11b893(0x1bd0)]);});}function _0x3a356c(_0x8b0fc8,_0x2d8d26){const _0x45bd78=_0x4332f5;return _0x2ac33a()(_0x2d8d26,_0x45bd78(0x3f0),!![])['isValid']()&&(_0x2d8d26=_0x2ac33a()(_0x2d8d26,'')[_0x45bd78(0x1c2c)](_0x45bd78(0x5f7))),_0x2d8d26;}function _0x57b263(){const _0xdf6e2=_0x4332f5;_0x86608d[_0xdf6e2(0x268e)]();}}const _0x33e72b=_0x279c72;;const _0xa01ecd=_0x2e4a48['p']+_0x49a1e3(0x2792);;const _0x40b34c=_0x2e4a48['p']+_0x49a1e3(0x1925);;const _0x440158=_0x2e4a48['p']+_0x49a1e3(0x10d1);;const _0x7e56b0=_0x2e4a48['p']+_0x49a1e3(0x1f51);;_0x4a295d[_0x49a1e3(0x1e73)]=['$scope','$timeout',_0x49a1e3(0x1373),'$mdDialog','$state',_0x49a1e3(0x1fe7),_0x49a1e3(0x298c),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x9e9),_0x49a1e3(0x680),'Auth'];function _0x4a295d(_0x44cbc1,_0x2b5b86,_0x4e87c9,_0x1f9706,_0x185485,_0x1ff1be,_0x3870a7,_0x3cb1d6,_0x22cd7a,_0x32420f,_0x5642c5,_0x1caa0b,_0x1b5a34){const _0x1c5b5b=_0x49a1e3,_0x4bdbc5=this;_0x4bdbc5[_0x1c5b5b(0x1d3d)]=_0x1b5a34[_0x1c5b5b(0x808)](),_0x4bdbc5[_0x1c5b5b(0x47e)]={'count':0x0,'rows':[]},_0x4bdbc5[_0x1c5b5b(0x16a8)]=_0x3cb1d6,_0x4bdbc5[_0x1c5b5b(0x16b2)]=_0x22cd7a&&_0x22cd7a[_0x1c5b5b(0xb90)]==0x1?_0x22cd7a[_0x1c5b5b(0x28b8)][0x0]:null,_0x4bdbc5[_0x1c5b5b(0x402)]=_0x1b5a34['parseCrudPermissions'](_0x4bdbc5[_0x1c5b5b(0x16b2)]?_0x4bdbc5['userProfileSection'][_0x1c5b5b(0x402)]:null),_0x4bdbc5['selectedReports']=[],_0x4bdbc5[_0x1c5b5b(0x289a)]={'fields':_0x1c5b5b(0xe31),'limit':0xa,'page':0x1,'sort':_0x1c5b5b(0x260c)},_0x4bdbc5['apiName']=null,_0x4bdbc5[_0x1c5b5b(0x1907)]='',_0x4bdbc5[_0x1c5b5b(0x208c)]=!![],_0x4bdbc5[_0x1c5b5b(0xff6)]=_0x344c31,_0x4bdbc5[_0x1c5b5b(0x2669)]=_0x46f744,_0x4bdbc5[_0x1c5b5b(0x25ae)]=_0x95fc19,_0x4bdbc5[_0x1c5b5b(0x1725)]=_0x190871,_0x4bdbc5[_0x1c5b5b(0x1db4)]=_0x388610,_0x4bdbc5[_0x1c5b5b(0x1262)]=_0x17fad7,_0x4bdbc5[_0x1c5b5b(0x1339)]=_0x5715d0,_0x4bdbc5[_0x1c5b5b(0x267f)]=_0x2ea005,_0x4bdbc5[_0x1c5b5b(0x13cb)]=_0x23236a,_0x4bdbc5['importReport']=_0x47a199,_0x4bdbc5[_0x1c5b5b(0x2622)]=_0x508af6,_0x4bdbc5[_0x1c5b5b(0x702)]=_0x578dec,_0x4bdbc5[_0x1c5b5b(0x10e2)]=_0x34f3c1,_0x4bdbc5[_0x1c5b5b(0x28ff)]=_0x38afda,_0x4bdbc5[_0x1c5b5b(0x2991)]=_0x2c0dfc,_0x4bdbc5[_0x1c5b5b(0x11de)]=_0x5642c5[_0x1c5b5b(0x28b8)][0x0]?angular[_0x1c5b5b(0x836)](_0x5642c5[_0x1c5b5b(0x28b8)][0x0][_0x1c5b5b(0x547)]):[],_0x4bdbc5[_0x1c5b5b(0x15ad)]=_0x5642c5[_0x1c5b5b(0x28b8)][0x1]?angular[_0x1c5b5b(0x836)](_0x5642c5['rows'][0x1][_0x1c5b5b(0x547)]):[],_0x4bdbc5[_0x1c5b5b(0x1d7f)]=_0x300fb3(![]),_0x4bdbc5[_0x1c5b5b(0x14cc)]=_0x300fb3(!![]),_0x4bdbc5[_0x1c5b5b(0x1af1)]=_0x8cad8a(![]),_0x4bdbc5[_0x1c5b5b(0x1152)]=_0x8cad8a(!![]);function _0x344c31(_0x2c55a2){const _0x21c0d9=_0x1c5b5b;_0x185485['go'](_0x21c0d9(0x1d7),{'id':_0x2c55a2['id'],'crudPermissions':_0x4bdbc5[_0x21c0d9(0x402)]});}function _0x46f744(_0x5de8b5,_0x489d7e){const _0x39d847=_0x1c5b5b;_0x1f9706[_0x39d847(0xa60)]({'controller':_0x39d847(0x1042),'controllerAs':'vm','templateUrl':_0xa01ecd,'parent':angular['element'](_0x4e87c9['body']),'targetEvent':_0x489d7e,'clickOutsideToClose':!![],'locals':{'report':_0x5de8b5,'apiName':_0x4bdbc5[_0x39d847(0x1c8e)],'treeCustomData':_0x4bdbc5['treeCustomInstance']['jstree'](!![])[_0x39d847(0x540)]('#')}})[_0x39d847(0x988)](function(){});}function _0x95fc19(_0x661781,_0x292494){const _0x338862=_0x1c5b5b;_0x1f9706[_0x338862(0xa60)]({'controller':_0x338862(0x1165),'controllerAs':'vm','templateUrl':_0x40b34c,'parent':angular[_0x338862(0x1f81)](_0x4e87c9['body']),'targetEvent':_0x292494,'clickOutsideToClose':!![],'locals':{'report':_0x661781,'apiName':_0x4bdbc5[_0x338862(0x1c8e)]}});}function _0x190871(_0x36e697,_0x138238){const _0x396b4a=_0x1c5b5b;_0x1f9706[_0x396b4a(0xa60)]({'controller':_0x396b4a(0xc3c),'controllerAs':'vm','templateUrl':_0x440158,'parent':angular[_0x396b4a(0x1f81)](_0x4e87c9[_0x396b4a(0xb49)]),'targetEvent':_0x138238,'clickOutsideToClose':!![],'locals':{'report':_0x36e697,'apiName':_0x4bdbc5[_0x396b4a(0x1c8e)],'currentPath':_0x4bdbc5[_0x396b4a(0x1907)]}});}function _0x388610(_0x4541ad){const _0x39f88d=_0x1c5b5b;let _0x685c76;_0x32420f[_0x39f88d(0x1dcf)]['get']({'fields':'id,name,metric,table','nolimit':!![]})[_0x39f88d(0x15e7)][_0x39f88d(0x64a)](function(_0x3f7cdf){const _0x18cfe6=_0x39f88d;_0x685c76=_0x28c606()['keyBy'](_0x3f7cdf[_0x18cfe6(0x28b8)],'id');const _0x3947fb={'fields':_0x18cfe6(0x1df1),'nolimit':!![]};return _0x3947fb[_0x4bdbc5[_0x18cfe6(0x1c8e)]===_0x18cfe6(0x1d97)?_0x18cfe6(0x27e3):_0x18cfe6(0x28c)]=_0x4541ad['id'],_0x32420f[_0x18cfe6(0x11d1)][_0x18cfe6(0x896)](_0x3947fb)[_0x18cfe6(0x15e7)];})[_0x39f88d(0x64a)](function(_0x1fc39a){const _0x4e0e69=_0x39f88d;for(let _0x48fc46=0x0;_0x48fc46<_0x1fc39a[_0x4e0e69(0x28b8)][_0x4e0e69(0x1b9e)];_0x48fc46+=0x1){_0x1fc39a[_0x4e0e69(0x28b8)][_0x48fc46][_0x4e0e69(0x8ee)]&&(_0x1fc39a[_0x4e0e69(0x28b8)][_0x48fc46][_0x4e0e69(0xc26)]=_0x685c76[_0x1fc39a[_0x4e0e69(0x28b8)][_0x48fc46][_0x4e0e69(0x8ee)]][_0x4e0e69(0x900)],_0x1fc39a['rows'][_0x48fc46][_0x4e0e69(0x1ad6)]=!![]),delete _0x1fc39a[_0x4e0e69(0x28b8)][_0x48fc46][_0x4e0e69(0x8ee)];}const _0x1d92f7=_0x1ff1be[_0x4e0e69(0x123f)][_0x4e0e69(0x2978)]('a');_0x1d92f7['href']=_0x4e0e69(0x1090)+_0x1ff1be[_0x4e0e69(0x1692)](angular[_0x4e0e69(0x1b67)]({'name':_0x4541ad[_0x4e0e69(0x2494)],'description':_0x4541ad[_0x4e0e69(0x23c3)],'table':_0x4541ad[_0x4e0e69(0x185d)],'conditions':_0x4541ad['conditions'],'joins':_0x4541ad[_0x4e0e69(0x288a)],'fields':_0x1fc39a[_0x4e0e69(0x28b8)]})),_0x1d92f7[_0x4e0e69(0x19b3)]=_0x4541ad['name']+_0x4e0e69(0x21ef),_0x1d92f7[_0x4e0e69(0x2497)]=_0x4e0e69(0x11fa),_0x1d92f7[_0x4e0e69(0x2668)](),_0x1caa0b['success']({'title':'Report\x20downloaded!','msg':_0x4541ad[_0x4e0e69(0x2494)]?_0x4541ad[_0x4e0e69(0x2494)]+_0x4e0e69(0xe1b):''});})[_0x39f88d(0x20cd)](function(_0x597734){const _0x4a3427=_0x39f88d;_0x1caa0b['error']({'title':_0x597734[_0x4a3427(0x10b3)]?_0x4a3427(0x575)+_0x597734['status']+_0x4a3427(0x21db)+_0x597734[_0x4a3427(0x2115)]:_0x4a3427(0x25a5),'msg':_0x597734[_0x4a3427(0x1c52)]?JSON[_0x4a3427(0x2317)](_0x597734[_0x4a3427(0x1c52)]):_0x597734[_0x4a3427(0x2915)]()});});}function _0x17fad7(_0x5f0d87,_0x4ba231){const _0x5e8ff2=_0x1c5b5b,_0x1694b6=_0x1f9706[_0x5e8ff2(0x856)]()[_0x5e8ff2(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20report?')[_0x5e8ff2(0x33a)](_0x5e8ff2(0x50b)+_0x5f0d87[_0x5e8ff2(0x2494)]+''+_0x5e8ff2(0x4b8))[_0x5e8ff2(0x213e)](_0x5e8ff2(0x23e2))[_0x5e8ff2(0x2283)](_0x4ba231)['ok']('OK')[_0x5e8ff2(0x101a)]('CANCEL');_0x1f9706[_0x5e8ff2(0xa60)](_0x1694b6)[_0x5e8ff2(0x64a)](function(){_0x508af6(_0x5f0d87);},function(){const _0x4a5dc6=_0x5e8ff2;console['log'](_0x4a5dc6(0x18fd));});}let _0x479600=!![],_0x4b00b9=0x1;_0x44cbc1[_0x1c5b5b(0xc62)](_0x1c5b5b(0x1cb9),function(_0x53bd9c,_0x2a595f){const _0x1e28eb=_0x1c5b5b;_0x479600?_0x2b5b86(function(){_0x479600=![];}):(!_0x2a595f&&(_0x4b00b9=_0x4bdbc5[_0x1e28eb(0x289a)][_0x1e28eb(0xc72)]),_0x53bd9c!==_0x2a595f&&(_0x4bdbc5[_0x1e28eb(0x289a)]['page']=0x1),!_0x53bd9c&&(_0x4bdbc5['query']['page']=_0x4b00b9),_0x4bdbc5['getReports']());}),_0x44cbc1[_0x1c5b5b(0xc62)](_0x1c5b5b(0x1539),function(_0x4e983c){const _0x583063=_0x1c5b5b;_0x4bdbc5[_0x583063(0x2609)]&&_0x4bdbc5[_0x583063(0x2609)][_0x583063(0x146e)](!![])[_0x583063(0xb58)](_0x4e983c),_0x4bdbc5[_0x583063(0x2003)]&&_0x4bdbc5[_0x583063(0x2003)]['jstree'](!![])[_0x583063(0xb58)](_0x4e983c);});function _0x5715d0(_0x26001b){const _0x42e7fe=_0x1c5b5b;_0x4bdbc5[_0x42e7fe(0x47e)]=_0x26001b||{'count':0x0,'rows':[]};}function _0x2ea005(){const _0x346952=_0x1c5b5b;_0x4bdbc5['query']['offset']=(_0x4bdbc5[_0x346952(0x289a)]['page']-0x1)*_0x4bdbc5['query'][_0x346952(0x25bb)];if(_0x4bdbc5[_0x346952(0x1c8e)]){if(_0x4bdbc5[_0x346952(0x1d3d)][_0x346952(0x161a)]===_0x346952(0x333)||_0x4bdbc5['userProfileSection']['autoAssociation'])_0x4bdbc5[_0x346952(0x1713)]=_0x32420f[_0x4bdbc5[_0x346952(0x1c8e)]][_0x346952(0x896)](_0x4bdbc5[_0x346952(0x289a)],_0x5715d0)[_0x346952(0x15e7)];else{let _0x1658a2=[];_0x4bdbc5[_0x346952(0x1713)]=_0x32420f[_0x4bdbc5[_0x346952(0x1c8e)]]['get'](_0x4bdbc5[_0x346952(0x289a)])['$promise'][_0x346952(0x64a)](function(_0xcbafeb){const _0x17c56e=_0x346952;return _0x1658a2=_0xcbafeb&&_0xcbafeb[_0x17c56e(0x28b8)]?_0xcbafeb['rows']:[],_0x1658a2['length']>0x0?_0x32420f[_0x17c56e(0x1617)]['get']({'sectionId':_0x4bdbc5[_0x17c56e(0x16b2)]['id'],'type':_0x4bdbc5[_0x17c56e(0x1c8e)]===_0x17c56e(0x254)?_0x17c56e(0x1598):_0x17c56e(0x121)})['$promise'][_0x17c56e(0x64a)](function(_0x198e3e){const _0x4f2fcd=_0x17c56e,_0x1d8dde=_0x198e3e&&_0x198e3e['rows']?_0x198e3e[_0x4f2fcd(0x28b8)]:[];if(_0x1d8dde[_0x4f2fcd(0x1b9e)]>0x0){const _0x26511c=[];return _0x1658a2['forEach'](function(_0x3e578b){const _0x577328=_0x4f2fcd,_0x1ff6d7=_0x28c606()['find'](_0x1d8dde,[_0x577328(0x145),_0x3e578b['id']]);if(_0x1ff6d7)_0x26511c[_0x577328(0x1954)](_0x3e578b);}),_0x5715d0({'count':_0x26511c[_0x4f2fcd(0x1b9e)],'rows':_0x26511c});}else return _0x5715d0(null);}):_0x5715d0(null);});}}}function _0x23236a(_0x40039d,_0x2e3059){const _0x10078b=_0x1c5b5b;_0x1f9706['show']({'controller':_0x10078b(0x215e),'controllerAs':'vm','templateUrl':_0x7e56b0,'parent':angular[_0x10078b(0x1f81)](_0x4e87c9[_0x10078b(0xb49)]),'targetEvent':_0x40039d,'clickOutsideToClose':!![],'locals':{'report':_0x2e3059,'reports':_0x4bdbc5[_0x10078b(0x47e)]['rows'],'apiName':_0x4bdbc5['apiName'],'currentNode':_0x4bdbc5[_0x10078b(0x1519)],'setting':null,'crudPermissions':_0x4bdbc5[_0x10078b(0x402)]}});}function _0x47a199(_0x173d41){const _0x4e1eb2=_0x1c5b5b;if(_0x173d41[_0x4e1eb2(0x10b4)][_0x4e1eb2(0x2185)]==='application/json'){const _0x4e19c7=new FileReader();_0x4e19c7[_0x4e1eb2(0x11c)]=function(_0x3fd23a){const _0x2d2ce1=_0x4e1eb2;console[_0x2d2ce1(0x9b4)](_0x3fd23a[_0x2d2ce1(0x2497)]['result']);try{let _0x5bdfe8=atob(_0x3fd23a[_0x2d2ce1(0x2497)][_0x2d2ce1(0x5e3)][_0x2d2ce1(0x282c)](',')[0x1]);_0x5bdfe8=angular[_0x2d2ce1(0x836)](_0x5bdfe8),_0x32420f[_0x2d2ce1(0x1d97)][_0x2d2ce1(0x2479)]({'name':_0x5bdfe8['name'],'description':_0x5bdfe8[_0x2d2ce1(0x23c3)],'table':_0x5bdfe8[_0x2d2ce1(0x185d)],'conditions':_0x5bdfe8['conditions'],'joins':_0x5bdfe8[_0x2d2ce1(0x288a)],'parent':_0x4bdbc5[_0x2d2ce1(0x1519)]['id']})[_0x2d2ce1(0x15e7)][_0x2d2ce1(0x64a)](function(_0x183705){const _0x1be6ee=_0x2d2ce1;_0x4bdbc5[_0x1be6ee(0x47e)]['rows'][_0x1be6ee(0x1891)](_0x183705),_0x1caa0b['success']({'title':_0x1be6ee(0x1e63),'msg':_0x183705[_0x1be6ee(0x2494)]?_0x183705[_0x1be6ee(0x2494)]+_0x1be6ee(0x271):''});const _0xaea932=_0x28c606()[_0x1be6ee(0x1de5)](_0x5bdfe8[_0x1be6ee(0xf26)],function(_0x466ccf){return _0x28c606()['extend']({},_0x466ccf,{'CustomReportId':_0x183705['id']});});return _0x32420f[_0x1be6ee(0x11d1)][_0x1be6ee(0x1461)](_0xaea932)['$promise'];})[_0x2d2ce1(0x64a)](function(){const _0xc6fe63=_0x2d2ce1;_0x1caa0b[_0xc6fe63(0x1339)]({'title':_0xc6fe63(0x109e),'msg':_0xc6fe63(0x2157)});})[_0x2d2ce1(0x20cd)](function(_0x38be39){const _0x542749=_0x2d2ce1;_0x1caa0b[_0x542749(0x1bd0)]({'title':_0x38be39['status']?_0x542749(0x575)+_0x38be39['status']+_0x542749(0x21db)+_0x38be39[_0x542749(0x2115)]:_0x542749(0xca1),'msg':_0x38be39[_0x542749(0x1c52)]?JSON[_0x542749(0x2317)](_0x38be39['data']):_0x38be39['toString']()});});}catch(_0x4ec023){console['error'](_0x4ec023),_0x1caa0b[_0x2d2ce1(0x1bd0)]({'title':_0x2d2ce1(0x23ec),'msg':_0x4ec023['toString']()});}},_0x4e19c7['readAsDataURL'](_0x173d41[_0x4e1eb2(0x10b4)]);}else _0x1caa0b[_0x4e1eb2(0x1bd0)]({'title':_0x4e1eb2(0x20c9),'msg':'Please\x20use\x20only\x20json\x20files'});}function _0x508af6(_0x5725cb){const _0xb85c5e=_0x1c5b5b;_0x4bdbc5[_0xb85c5e(0x1c8e)]&&_0x32420f[_0x4bdbc5[_0xb85c5e(0x1c8e)]][_0xb85c5e(0xabd)]({'id':_0x5725cb['id']})[_0xb85c5e(0x15e7)][_0xb85c5e(0x64a)](function(){const _0x45289e=_0xb85c5e;_0x28c606()['remove'](_0x4bdbc5[_0x45289e(0x47e)][_0x45289e(0x28b8)],{'id':_0x5725cb['id']}),_0x4bdbc5[_0x45289e(0x47e)][_0x45289e(0xb90)]-=0x1,!_0x4bdbc5[_0x45289e(0x47e)][_0x45289e(0x28b8)][_0x45289e(0x1b9e)]&&_0x4bdbc5[_0x45289e(0x267f)](),_0x1caa0b[_0x45289e(0x1339)]({'title':'Report\x20deleted!','msg':_0x5725cb[_0x45289e(0x2494)]?_0x5725cb[_0x45289e(0x2494)]+'\x20has\x20been\x20deleted!':''});})[_0xb85c5e(0x20cd)](function(_0x194aa3){const _0x21bbe5=_0xb85c5e;if(_0x194aa3[_0x21bbe5(0x1c52)]&&_0x194aa3['data'][_0x21bbe5(0xbae)]&&_0x194aa3[_0x21bbe5(0x1c52)][_0x21bbe5(0xbae)][_0x21bbe5(0x1b9e)]){_0x4bdbc5[_0x21bbe5(0xbae)]=_0x194aa3[_0x21bbe5(0x1c52)][_0x21bbe5(0xbae)]||[{'message':_0x194aa3['toString'](),'type':'api.analyticreport.delete'}];for(let _0x3dc60d=0x0;_0x3dc60d<_0x194aa3[_0x21bbe5(0x1c52)][_0x21bbe5(0xbae)][_0x21bbe5(0x1b9e)];_0x3dc60d++){_0x1caa0b['error']({'title':_0x194aa3[_0x21bbe5(0x1c52)][_0x21bbe5(0xbae)][_0x3dc60d][_0x21bbe5(0x2185)],'msg':_0x194aa3[_0x21bbe5(0x1c52)][_0x21bbe5(0xbae)][_0x3dc60d][_0x21bbe5(0x18ca)]});}}else _0x1caa0b[_0x21bbe5(0x1bd0)]({'title':_0x194aa3[_0x21bbe5(0x10b3)]?'API:'+_0x194aa3[_0x21bbe5(0x10b3)]+_0x21bbe5(0x21db)+_0x194aa3['statusText']:_0x21bbe5(0x1c47),'msg':_0x194aa3['data']?JSON[_0x21bbe5(0x2317)](_0x194aa3[_0x21bbe5(0x1c52)]['message']):_0x194aa3[_0x21bbe5(0x18ca)]||_0x194aa3[_0x21bbe5(0x2915)]()});});}function _0x578dec(){const _0x24192e=_0x1c5b5b,_0x22ff5c=angular['copy'](_0x4bdbc5['selectedReports']);return _0x4bdbc5[_0x24192e(0x2678)]=[],_0x22ff5c;}function _0x34f3c1(_0x55f71d){const _0x48a97d=_0x1c5b5b,_0x3bfd11=_0x1f9706[_0x48a97d(0x856)]()[_0x48a97d(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20reports?')[_0x48a97d(0x33a)](''+_0x4bdbc5[_0x48a97d(0x2678)][_0x48a97d(0x1b9e)]+'\x20selected'+_0x48a97d(0x4b8))[_0x48a97d(0x213e)]('delete\x20Reports')[_0x48a97d(0x2283)](_0x55f71d)['ok']('OK')['cancel'](_0x48a97d(0x18fd));_0x1f9706[_0x48a97d(0xa60)](_0x3bfd11)[_0x48a97d(0x64a)](function(){const _0x4904ad=_0x48a97d;_0x4bdbc5['selectedReports']['forEach'](function(_0xe202bb){_0x508af6(_0xe202bb);}),_0x4bdbc5[_0x4904ad(0x2678)]=[];});}function _0x38afda(){_0x4bdbc5['selectedReports']=[];}function _0x2c0dfc(){const _0x4a3348=_0x1c5b5b;_0x4bdbc5['selectedReports']=_0x4bdbc5[_0x4a3348(0x47e)][_0x4a3348(0x28b8)];}function _0x35c165(_0x585478,_0x1d94ed){const _0x515d65=_0x1c5b5b;_0x4bdbc5[_0x515d65(0x2609)][_0x515d65(0x146e)](!![])[_0x515d65(0x1c5c)](),_0x4bdbc5[_0x515d65(0x2609)]['jstree'](!![])['close_all'](),_0x4bdbc5['currentNode']=_0x1d94ed['node'],_0x4bdbc5[_0x515d65(0x1519)]['custom']=!![],_0x4bdbc5[_0x515d65(0x1907)]=_0x4bdbc5['treeCustomInstance']['jstree'](!![])[_0x515d65(0x215d)](_0x4bdbc5[_0x515d65(0x1519)])[_0x515d65(0x9a6)]('/\x20'),_0x4bdbc5[_0x515d65(0x1c8e)]='analyticCustomReport',_0x4bdbc5['query'][_0x515d65(0x2854)]=_0x1d94ed[_0x515d65(0x1442)]['id'],_0x2ea005();}function _0xe5ca0d(_0x2b23da,_0x31dcd6){const _0x5aa512=_0x1c5b5b;_0x4bdbc5[_0x5aa512(0x2003)][_0x5aa512(0x146e)](!![])[_0x5aa512(0x1c5c)](),_0x4bdbc5[_0x5aa512(0x2003)]['jstree'](!![])[_0x5aa512(0x2366)](),_0x4bdbc5['currentNode']=_0x31dcd6[_0x5aa512(0x1442)],_0x4bdbc5['currentNode'][_0x5aa512(0x1ad6)]=![],_0x4bdbc5[_0x5aa512(0x1907)]=_0x4bdbc5[_0x5aa512(0x2609)][_0x5aa512(0x146e)](!![])[_0x5aa512(0x215d)](_0x4bdbc5[_0x5aa512(0x1519)])[_0x5aa512(0x9a6)]('/\x20'),_0x4bdbc5[_0x5aa512(0x1c8e)]=_0x5aa512(0x254),_0x4bdbc5[_0x5aa512(0x289a)][_0x5aa512(0x2854)]=_0x31dcd6[_0x5aa512(0x1442)]['id'],_0x2ea005();}function _0xa209fb(_0x60c081,_0x3b7c8d){const _0x419c17=_0x1c5b5b,_0x213224=angular[_0x419c17(0x1b67)](_0x4bdbc5['treeCustomInstance'][_0x419c17(0x146e)](!![])['get_json']('#'));_0x32420f[_0x419c17(0x1948)]['update']({'id':0x2,'tree':_0x213224})[_0x419c17(0x15e7)][_0x419c17(0x64a)](function(){const _0x40f4fe=_0x419c17;_0x5642c5[_0x40f4fe(0x28b8)][0x1]&&(_0x5642c5[_0x40f4fe(0x28b8)][0x1][_0x40f4fe(0x547)]=_0x213224),_0x1caa0b['success']({'title':'Node\x20Updated','msg':_0x3b7c8d[_0x40f4fe(0x1442)]['text']?_0x3b7c8d[_0x40f4fe(0x1442)][_0x40f4fe(0x39b)]+_0x40f4fe(0x2032):'Node\x20has\x20been\x20updated!'});})[_0x419c17(0x20cd)](function(_0x5d63e1){const _0x57a336=_0x419c17;_0x1caa0b[_0x57a336(0x1bd0)]({'title':_0x5d63e1[_0x57a336(0x10b3)]?_0x57a336(0x575)+_0x5d63e1['status']+_0x57a336(0x21db)+_0x5d63e1[_0x57a336(0x2115)]:_0x57a336(0x5f3),'msg':_0x5d63e1[_0x57a336(0x1c52)]?JSON[_0x57a336(0x2317)](_0x5d63e1['data']):_0x5d63e1[_0x57a336(0x2915)]()});});}function _0x300fb3(_0x27287d){const _0x58d9e1=_0x1c5b5b;return{'core':{'multiple':![],'animation':!![],'error':function(_0x134fc9){const _0x84d84a=a0_0x4127;console[_0x84d84a(0x1bd0)](_0x84d84a(0x1c9b)+angular[_0x84d84a(0x1b67)](_0x134fc9));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':_0x27287d?[_0x58d9e1(0x873),_0x58d9e1(0x2242),_0x58d9e1(0xb58),_0x58d9e1(0x14f2),_0x58d9e1(0x13bc)]:[_0x58d9e1(0xb58),'state',_0x58d9e1(0x13bc)],'contextmenu':{'items':function(_0xa5110c){const _0x815109=_0x58d9e1,_0x3afe63={};return _0x4bdbc5[_0x815109(0x402)][_0x815109(0xd86)]&&_0x28c606()[_0x815109(0x2a3)](_0x3afe63,{'create':{'label':_0x3870a7[_0x815109(0x2292)]('ANALYTICS.CREATE'),'action':function(){const _0x114d81=_0x815109;_0xa5110c=_0x4bdbc5[_0x114d81(0x2003)][_0x114d81(0x146e)](!![])[_0x114d81(0x3e7)](_0xa5110c),_0x4bdbc5[_0x114d81(0x2003)][_0x114d81(0x146e)](!![])[_0x114d81(0x1ced)](_0xa5110c);}},'rename':{'_disabled':_0xa5110c[_0x815109(0x2854)]==='#','label':_0x3870a7[_0x815109(0x2292)](_0x815109(0x11db)),'action':function(){const _0x1e0419=_0x815109;_0x4bdbc5[_0x1e0419(0x2003)]['jstree'](!![])[_0x1e0419(0x1ced)](_0xa5110c);}}}),_0x4bdbc5[_0x815109(0x402)][_0x815109(0x2586)]&&_0x28c606()[_0x815109(0x2a3)](_0x3afe63,{'remove':{'_disabled':_0xa5110c['parent']==='#','label':_0x3870a7[_0x815109(0x2292)](_0x815109(0x2585)),'action':function(){const _0x481b9f=_0x815109,_0x4783a3=_0x1f9706[_0x481b9f(0x856)]()[_0x481b9f(0x2021)](_0x481b9f(0x128))['htmlContent'](''+(_0xa5110c[_0x481b9f(0x39b)]?_0xa5110c[_0x481b9f(0x39b)]:_0x481b9f(0x139e))+_0x481b9f(0x26d0)+_0x481b9f(0x1f90))['ariaLabel'](_0x481b9f(0x1a9c))['ok']('OK')[_0x481b9f(0x101a)](_0x481b9f(0x18fd));_0x1f9706[_0x481b9f(0xa60)](_0x4783a3)[_0x481b9f(0x64a)](function(){const _0x9483e4=_0x481b9f;let _0x2fc512=_0x4bdbc5[_0x9483e4(0x2003)][_0x9483e4(0x146e)](!![])[_0x9483e4(0x1913)](_0xa5110c);_0x2fc512=_0x4bdbc5[_0x9483e4(0x2003)][_0x9483e4(0x146e)](!![])[_0x9483e4(0x1243)](_0x2fc512),_0x4bdbc5['treeCustomInstance'][_0x9483e4(0x146e)](!![])[_0x9483e4(0x1257)](_0xa5110c),_0xed5f0a([_0xa5110c['id']][_0x9483e4(0x2808)](_0xa5110c[_0x9483e4(0x235)]||[])),_0x4bdbc5[_0x9483e4(0x2003)][_0x9483e4(0x146e)](!![])[_0x9483e4(0x215)](_0x2fc512);});}}}),_0x3afe63;}}};}function _0xed5f0a(_0x46e232){const _0x566e92=_0x1c5b5b;return _0x32420f[_0x566e92(0x1d97)][_0x566e92(0x896)]({'parent':_0x46e232[_0x566e92(0x9a6)](','),'fields':_0x566e92(0x1427)})[_0x566e92(0x15e7)][_0x566e92(0x64a)](function(_0x5c9e76){const _0x219b41=_0x566e92;_0x5c9e76&&_0x5c9e76[_0x219b41(0x28b8)]&&_0x5c9e76[_0x219b41(0x28b8)][_0x219b41(0x1397)](function(_0x3dd586){_0x508af6(_0x3dd586);});})[_0x566e92(0x20cd)](function(_0x71a1c9){const _0x2ca14d=_0x566e92;_0x1caa0b[_0x2ca14d(0x1bd0)]({'title':_0x71a1c9[_0x2ca14d(0x10b3)]?_0x2ca14d(0x575)+_0x71a1c9[_0x2ca14d(0x10b3)]+_0x2ca14d(0x21db)+_0x71a1c9[_0x2ca14d(0x2115)]:_0x2ca14d(0x1eb7),'msg':_0x71a1c9[_0x2ca14d(0x1c52)]?JSON['stringify'](_0x71a1c9[_0x2ca14d(0x1c52)]):_0x71a1c9[_0x2ca14d(0x2915)]()});});}function _0x8cad8a(_0x3c303c){return _0x3c303c?{'create_node':_0xa209fb,'rename_node':_0xa209fb,'move_node':_0xa209fb,'delete_node':_0xa209fb,'select_node':_0x35c165}:{'select_node':_0xe5ca0d};}}const _0x6c5745=_0x4a295d;;const _0x475829=_0x2e4a48['p']+_0x49a1e3(0x1dee);;_0x26dd75[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x680),_0x49a1e3(0x1565),_0x49a1e3(0xa19),'apiName',_0x49a1e3(0x1373),_0x49a1e3(0x1907)];function _0x26dd75(_0x1962c4,_0x4d5f6a,_0x5e984a,_0x32e02b,_0x50d293,_0x33c889,_0x162a7f,_0x4a9d18){const _0x312595=_0x49a1e3,_0x52791b=this;_0x52791b[_0x312595(0xbae)]=[],_0x52791b[_0x312595(0x1565)]=angular[_0x312595(0x289e)](_0x32e02b),_0x52791b[_0x312595(0x19e8)]={},_0x52791b[_0x312595(0x1940)]=_0x32c58f,_0x52791b[_0x312595(0x16cb)]=_0x2f3ef9,_0x52791b[_0x312595(0x2741)]=_0x4fa795,_0x4fa795();function _0x4fa795(){const _0x38ac9f=_0x312595;_0x52791b['export']={'id':_0x52791b['report']['id'],'name':_0x52791b[_0x38ac9f(0x1565)][_0x38ac9f(0x2494)],'startDate':new Date(_0x2ac33a()()[_0x38ac9f(0x246e)](_0x38ac9f(0x2784))),'endDate':new Date(_0x2ac33a()()[_0x38ac9f(0x13af)](_0x38ac9f(0x2784))),'output':_0x38ac9f(0x266c),'fullPath':_0x4a9d18?_0x4a9d18+'/'+_0x52791b[_0x38ac9f(0x1565)][_0x38ac9f(0x2494)]:_0x52791b[_0x38ac9f(0x1565)][_0x38ac9f(0x2494)]};}function _0x32c58f(_0x2b6095){const _0x369a10=_0x312595;_0x52791b['errors']=[],_0x52791b[_0x369a10(0x166d)]=_0x28c606()[_0x369a10(0x2a3)]({},_0x52791b[_0x369a10(0x19e8)],{'startDate':_0x2ac33a()(_0x52791b[_0x369a10(0x19e8)]['startDate'])[_0x369a10(0x1c2c)]('YYYY-MM-DD\x20HH:mm:ss'),'endDate':_0x2ac33a()(_0x52791b[_0x369a10(0x19e8)][_0x369a10(0x1c82)])['format'](_0x369a10(0x5f7))}),_0x50d293[_0x33c889][_0x369a10(0x1a43)](_0x52791b[_0x369a10(0x166d)])['$promise'][_0x369a10(0x64a)](function(_0x330884){const _0x2655a9=_0x369a10;_0x52791b['export'][_0x2655a9(0x2c3)]==='web'?_0x4d5f6a['show']({'controller':'WebReportDialogController','controllerAs':'vm','templateUrl':_0x475829,'parent':angular[_0x2655a9(0x1f81)](_0x162a7f[_0x2655a9(0xb49)]),'targetEvent':_0x2b6095,'skipHide':!![],'locals':{'apiName':_0x33c889,'exportDate':_0x52791b[_0x2655a9(0x166d)],'results':_0x330884},'resolve':{'columns':['apiResolver',function(_0x740bdc){const _0x61bf57=_0x2655a9,_0x4b24e7={'fields':_0x61bf57(0xcb1),'nolimit':!![]};return _0x4b24e7[_0x33c889===_0x61bf57(0x1d97)?_0x61bf57(0x27e3):_0x61bf57(0x28c)]=_0x52791b[_0x61bf57(0x1565)]['id'],_0x740bdc[_0x61bf57(0x1268)]('analyticFieldReport@get',_0x4b24e7);}]}}):(_0x5e984a['success']({'title':'Report\x20properly\x20run!','msg':_0x52791b[_0x2655a9(0x1565)]['name']?_0x52791b[_0x2655a9(0x1565)][_0x2655a9(0x2494)]+_0x2655a9(0x254d):''}),_0x2f3ef9());})[_0x369a10(0x20cd)](function(_0x22020c){const _0xe0485a=_0x369a10;_0x5e984a[_0xe0485a(0x1bd0)]({'title':_0x22020c[_0xe0485a(0x10b3)]?'API:'+_0x22020c[_0xe0485a(0x10b3)]+'\x20-\x20'+_0x22020c[_0xe0485a(0x2115)]:_0xe0485a(0x9de),'msg':_0x22020c[_0xe0485a(0x1c52)]?JSON[_0xe0485a(0x2317)](_0x22020c[_0xe0485a(0x1c52)][_0xe0485a(0x18ca)]):_0x22020c[_0xe0485a(0x2915)]()});});}function _0x2f3ef9(){const _0x209373=_0x312595;_0x4d5f6a[_0x209373(0x268e)]();}}const _0x4f6a8d=_0x26dd75;;_0x221e90[_0x49a1e3(0x1e73)]=['$mdDialog',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0xb82),_0x49a1e3(0x289c),'apiName','exportDate'];function _0x221e90(_0x215ac7,_0xd51f6a,_0x4c53dc,_0x96cbf3,_0x4caf73,_0x3a9212,_0x318f7b){const _0x4bafac=_0x49a1e3,_0x151e96=this;_0x151e96[_0x4bafac(0xbae)]=[],_0x151e96[_0x4bafac(0xb82)]=_0x96cbf3?_0x96cbf3['rows']:[],_0x151e96['results']=_0x4caf73||{'rows':[],'count':0x0},_0x151e96[_0x4bafac(0x289a)]={'limit':0xa,'page':0x1},_0x151e96['closeDialog']=_0x2ee9ed,_0x151e96['getResults']=_0x1bc103,_0x151e96['valueReplacer']=_0x30af8e;function _0x1bc103(){const _0x2032e8=_0x4bafac;_0x318f7b[_0x2032e8(0x24f9)]=(_0x151e96[_0x2032e8(0x289a)][_0x2032e8(0xc72)]-0x1)*_0x151e96[_0x2032e8(0x289a)][_0x2032e8(0x25bb)],_0x318f7b['limit']=_0x151e96[_0x2032e8(0x289a)]['limit'],_0x151e96[_0x2032e8(0x1713)]=_0x4c53dc[_0x3a9212][_0x2032e8(0x1a43)](_0x318f7b,_0x1d5cf0)[_0x2032e8(0x15e7)];}function _0x30af8e(_0x2ebd31,_0x2aede9){const _0x19908d=_0x4bafac;return _0x2ac33a()(_0x2aede9,_0x19908d(0x3f0),!![])['isValid']()&&(_0x2aede9=_0x2ac33a()(_0x2aede9,'')['format']('YYYY-MM-DD\x20HH:mm:ss')),_0x2aede9;}function _0x1d5cf0(_0x5a4358){_0x151e96['results']=_0x5a4358||{'count':0x0,'rows':[]};}function _0x2ee9ed(){_0x215ac7['hide']();}}const _0x5340e5=_0x221e90;;_0x872cc[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad)];function _0x872cc(_0x1c50a0){const _0x3cc198=_0x49a1e3;_0x1c50a0[_0x3cc198(0x14f2)](_0x3cc198(0x1c7b),{'url':_0x3cc198(0x1bc),'views':{'content@app':{'templateUrl':_0x592d1f,'controller':_0x3cc198(0x26c6)}},'resolve':{'treeReports':[_0x3cc198(0x107c),function(_0x97116c){const _0x491ae9=_0x3cc198;return _0x97116c['resolve'](_0x491ae9(0x1cb2),{'fields':_0x491ae9(0x2482),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0xfd8bd8,_0x121b52){const _0x241690=_0x3cc198;return _0xfd8bd8[_0x241690(0x1268)]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x121b52[_0x241690(0x808)]()[_0x241690(0x21ac)]});}],'userProfileSection':['apiResolver',_0x3cc198(0xdcf),function(_0x3cca8b,_0x190e17){const _0x9ae7a7=_0x3cc198;return _0x3cca8b[_0x9ae7a7(0x1268)]('userProfileSection@get',{'fields':_0x9ae7a7(0x527),'userProfileId':_0x190e17['getCurrentUser']()[_0x9ae7a7(0x21ac)],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':'analytics'})[_0x3cc198(0x14f2)]('app.analytics.reports.edit',{'url':'/:id?tab','views':{'content@app':{'templateUrl':_0x43494e,'controller':_0x3cc198(0x187c)}},'resolve':{'report':[_0x3cc198(0x107c),_0x3cc198(0x1fbb),'$q','describeTable',function(_0x1f0f27,_0x202cfe,_0x58f36d,_0x267560){const _0x7644be=_0x3cc198;let _0x3d5d0f;return _0x1f0f27[_0x7644be(0x1268)](_0x7644be(0x1fc6),{'fields':_0x7644be(0x524),'id':_0x202cfe['id']})[_0x7644be(0x64a)](function(_0x4b6ceb){const _0x37a9ad=_0x7644be,_0x7e8f35=[];_0x3d5d0f=_0x4b6ceb;if(_0x3d5d0f[_0x37a9ad(0x288a)])try{_0x3d5d0f['joins']=JSON[_0x37a9ad(0x27f1)](_0x3d5d0f[_0x37a9ad(0x288a)]);for(let _0x3dd533=0x0;_0x3dd533<_0x3d5d0f[_0x37a9ad(0x288a)][_0x37a9ad(0x1b9e)];_0x3dd533+=0x1){_0x7e8f35[_0x37a9ad(0x1954)](_0x267560[_0x37a9ad(0x14c8)](_0x3d5d0f[_0x37a9ad(0x288a)][_0x3dd533][_0x37a9ad(0x1489)]));}}catch(_0x180ae2){console['log'](_0x180ae2);}return _0x58f36d['all'](_0x7e8f35);})[_0x7644be(0x64a)](function(_0xf259ac){const _0x37442d=_0x7644be;for(let _0x38be94=0x0;_0x38be94<_0xf259ac['length'];_0x38be94+=0x1){_0x3d5d0f['joins'][_0x38be94]['foreignTableFields']=_0x28c606()[_0x37442d(0xde7)](_0x28c606()[_0x37442d(0x1ec6)](_0xf259ac[_0x38be94]),[_0x37442d(0x15e7),_0x37442d(0x19ba)]);}return _0x3d5d0f;});}],'userProfileSection':[_0x3cc198(0x107c),_0x3cc198(0xdcf),function(_0x8f56e4,_0x257c43){const _0x1d5e43=_0x3cc198;return _0x8f56e4[_0x1d5e43(0x1268)](_0x1d5e43(0x2681),{'fields':_0x1d5e43(0x527),'userProfileId':_0x257c43[_0x1d5e43(0x808)]()[_0x1d5e43(0x21ac)],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':_0x3cc198(0x1d3b)});}angular['module']('app.analytics.reports',[_0x49a1e3(0x25f2)])[_0x49a1e3(0x3d3)](_0x872cc)[_0x49a1e3(0x38e)](_0x49a1e3(0x1042),_0x5da862)[_0x49a1e3(0x38e)](_0x49a1e3(0x215e),_0x49c223)['controller'](_0x49a1e3(0xd4e),_0x35232e)[_0x49a1e3(0x646)](_0x49a1e3(0x184e),_0x5c76bb)[_0x49a1e3(0x38e)]('CreateOrEditReportFieldDialogController',_0x13e755)['controller']('ReportFieldsController',_0x5a584b)['factory'](_0x49a1e3(0x1c6e),_0x149cfb)[_0x49a1e3(0x38e)](_0x49a1e3(0x191b),_0x20c865)[_0x49a1e3(0x38e)](_0x49a1e3(0x1165),_0x33e72b)['controller']('ReportsController',_0x6c5745)[_0x49a1e3(0x38e)](_0x49a1e3(0xc3c),_0x4f6a8d)['controller'](_0x49a1e3(0x58a),_0x5340e5);;_0x88279e['$inject']=['$scope','$state','$location',_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x17ee),_0x49a1e3(0x11eb),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'crudPermissions'];function _0x88279e(_0x2641f4,_0x439cc1,_0x3c43f0,_0x3d065b,_0x1c1495,_0x57128f,_0x47277e,_0x55a2df,_0x44ba14,_0x222020,_0x5054db,_0x438bc8,_0x5d3615,_0x4f5498){const _0x29775a=_0x49a1e3,_0xf5f596=this;_0xf5f596[_0x29775a(0x1d3d)]=_0x5054db['getCurrentUser'](),_0xf5f596[_0x29775a(0xbae)]=[],_0xf5f596['setting']=_0x5d3615,_0xf5f596[_0x29775a(0x1947)]=_0x438bc8,_0xf5f596['crudPermissions']=_0x4f5498,_0xf5f596['hasModulePermissions']={},_0xf5f596['passwordPattern']=_0xf5f596['setting']&&_0xf5f596[_0x29775a(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xf5f596[_0x29775a(0x2021)]=_0x29775a(0x12a),_0xf5f596[_0x29775a(0x11eb)]=angular[_0x29775a(0x289e)](_0x44ba14),_0xf5f596[_0x29775a(0x17ee)]=_0x55a2df,_0xf5f596[_0x29775a(0x1363)]=![];!_0xf5f596[_0x29775a(0x11eb)]&&(_0xf5f596[_0x29775a(0x11eb)]={},_0xf5f596[_0x29775a(0x2021)]='ANALYTICS.NEW_EXTRACTEDREPORT',_0xf5f596['newExtractedReport']=!![]);_0xf5f596['addNewExtractedReport']=_0x4d4c2e,_0xf5f596[_0x29775a(0x53c)]=_0x37c122,_0xf5f596['deleteExtractedReport']=_0x131be3,_0xf5f596[_0x29775a(0x1605)]=_0x44387b,_0xf5f596['closeDialog']=_0x3ed23f;function _0x4d4c2e(){const _0x5f272=_0x29775a;_0xf5f596[_0x5f272(0xbae)]=[],_0x222020['analyticExtractedReport'][_0x5f272(0x2479)](_0xf5f596['extractedReport'])[_0x5f272(0x15e7)][_0x5f272(0x64a)](function(_0x14dde7){const _0x2f9d04=_0x5f272;_0xf5f596[_0x2f9d04(0x17ee)]['unshift'](_0x14dde7['toJSON']()),_0x47277e[_0x2f9d04(0x1339)]({'title':'ExtractedReport\x20properly\x20created','msg':_0xf5f596[_0x2f9d04(0x11eb)][_0x2f9d04(0x2494)]?_0xf5f596[_0x2f9d04(0x11eb)][_0x2f9d04(0x2494)]+'\x20has\x20been\x20created!':''}),_0x3ed23f(_0x14dde7);})['catch'](function(_0x3b7b57){const _0x2d6c8b=_0x5f272;if(_0x3b7b57[_0x2d6c8b(0x1c52)]&&_0x3b7b57[_0x2d6c8b(0x1c52)][_0x2d6c8b(0xbae)]&&_0x3b7b57[_0x2d6c8b(0x1c52)][_0x2d6c8b(0xbae)][_0x2d6c8b(0x1b9e)]){_0xf5f596[_0x2d6c8b(0xbae)]=_0x3b7b57[_0x2d6c8b(0x1c52)][_0x2d6c8b(0xbae)]||[{'message':_0x3b7b57[_0x2d6c8b(0x2915)](),'type':_0x2d6c8b(0x151a)}];for(let _0x285660=0x0;_0x285660<_0x3b7b57[_0x2d6c8b(0x1c52)][_0x2d6c8b(0xbae)][_0x2d6c8b(0x1b9e)];_0x285660+=0x1){_0x47277e[_0x2d6c8b(0x1bd0)]({'title':_0x3b7b57[_0x2d6c8b(0x1c52)][_0x2d6c8b(0xbae)][_0x285660][_0x2d6c8b(0x2185)],'msg':_0x3b7b57[_0x2d6c8b(0x1c52)]['errors'][_0x285660]['message']});}}else _0x47277e['error']({'title':_0x3b7b57[_0x2d6c8b(0x10b3)]?_0x2d6c8b(0x575)+_0x3b7b57[_0x2d6c8b(0x10b3)]+'\x20-\x20'+_0x3b7b57[_0x2d6c8b(0x2115)]:_0x2d6c8b(0x151a),'msg':_0x3b7b57['data']?JSON[_0x2d6c8b(0x2317)](_0x3b7b57['data'][_0x2d6c8b(0x18ca)]):_0x3b7b57[_0x2d6c8b(0x2915)]()});});}function _0x37c122(){const _0x29fd0c=_0x29775a;_0xf5f596[_0x29fd0c(0xbae)]=[],_0x222020[_0x29fd0c(0x1602)][_0x29fd0c(0x2603)]({'id':_0xf5f596[_0x29fd0c(0x11eb)]['id']},_0xf5f596['extractedReport'])[_0x29fd0c(0x15e7)][_0x29fd0c(0x64a)](function(_0x1fc29e){const _0x33781e=_0x29fd0c,_0x2f856f=_0x28c606()[_0x33781e(0x27bc)](_0xf5f596[_0x33781e(0x17ee)],{'id':_0x1fc29e['id']});_0x2f856f&&_0x28c606()[_0x33781e(0x14fe)](_0x2f856f,_0x28c606()[_0x33781e(0x27bb)](_0x1fc29e[_0x33781e(0x14f8)](),_0x28c606()[_0x33781e(0x1ec6)](_0x2f856f))),_0x47277e['success']({'title':'ExtractedReport\x20properly\x20saved!','msg':_0xf5f596['extractedReport']['name']?_0xf5f596['extractedReport'][_0x33781e(0x2494)]+'\x20has\x20been\x20saved!':''}),_0x3ed23f(_0x1fc29e);})[_0x29fd0c(0x20cd)](function(_0x40a872){const _0x14b405=_0x29fd0c;if(_0x40a872[_0x14b405(0x1c52)]&&_0x40a872[_0x14b405(0x1c52)][_0x14b405(0xbae)]&&_0x40a872['data'][_0x14b405(0xbae)][_0x14b405(0x1b9e)]){_0xf5f596['errors']=_0x40a872['data'][_0x14b405(0xbae)]||[{'message':_0x40a872[_0x14b405(0x2915)](),'type':_0x14b405(0x293c)}];for(let _0x56f06b=0x0;_0x56f06b<_0x40a872[_0x14b405(0x1c52)][_0x14b405(0xbae)]['length'];_0x56f06b++){_0x47277e['error']({'title':_0x40a872[_0x14b405(0x1c52)][_0x14b405(0xbae)][_0x56f06b][_0x14b405(0x2185)],'msg':_0x40a872['data'][_0x14b405(0xbae)][_0x56f06b][_0x14b405(0x18ca)]});}}else _0x47277e[_0x14b405(0x1bd0)]({'title':_0x40a872[_0x14b405(0x10b3)]?_0x14b405(0x575)+_0x40a872['status']+'\x20-\x20'+_0x40a872[_0x14b405(0x2115)]:_0x14b405(0x293c),'msg':_0x40a872[_0x14b405(0x1c52)]?JSON['stringify'](_0x40a872[_0x14b405(0x1c52)][_0x14b405(0x18ca)]):_0x40a872[_0x14b405(0x2915)]()});});}function _0x131be3(_0x382372){const _0x4bceff=_0x29775a;_0xf5f596[_0x4bceff(0xbae)]=[];const _0x3f1e8f=_0x3d065b[_0x4bceff(0x856)]()['title'](_0x4bceff(0x103a))[_0x4bceff(0x12b8)](_0x4bceff(0x245b))[_0x4bceff(0x213e)](_0x4bceff(0x2301))['ok'](_0x4bceff(0x2664))[_0x4bceff(0x101a)]('Cancel')[_0x4bceff(0x2283)](_0x382372);_0x3d065b[_0x4bceff(0xa60)](_0x3f1e8f)[_0x4bceff(0x64a)](function(){const _0x5c1c4e=_0x4bceff;_0x222020[_0x5c1c4e(0x1602)][_0x5c1c4e(0xabd)]({'id':_0xf5f596[_0x5c1c4e(0x11eb)]['id']})[_0x5c1c4e(0x15e7)][_0x5c1c4e(0x64a)](function(){const _0x5012ac=_0x5c1c4e;_0x28c606()['remove'](_0xf5f596[_0x5012ac(0x17ee)],{'id':_0xf5f596[_0x5012ac(0x11eb)]['id']}),_0x47277e[_0x5012ac(0x1339)]({'title':_0x5012ac(0x2653),'msg':(_0xf5f596[_0x5012ac(0x11eb)][_0x5012ac(0x2494)]||'extractedReport')+_0x5012ac(0x1fa8)}),_0x3ed23f(_0xf5f596['extractedReport']);})[_0x5c1c4e(0x20cd)](function(_0x10be71){const _0x1973ae=_0x5c1c4e;if(_0x10be71[_0x1973ae(0x1c52)]&&_0x10be71[_0x1973ae(0x1c52)]['errors']&&_0x10be71[_0x1973ae(0x1c52)][_0x1973ae(0xbae)][_0x1973ae(0x1b9e)]){_0xf5f596[_0x1973ae(0xbae)]=_0x10be71[_0x1973ae(0x1c52)]['errors']||[{'message':_0x10be71[_0x1973ae(0x2915)](),'type':_0x1973ae(0x9ae)}];for(let _0x158a58=0x0;_0x158a58<_0x10be71[_0x1973ae(0x1c52)][_0x1973ae(0xbae)][_0x1973ae(0x1b9e)];_0x158a58++){_0x47277e[_0x1973ae(0x1bd0)]({'title':_0x10be71['data']['errors'][_0x158a58][_0x1973ae(0x2185)],'msg':_0x10be71[_0x1973ae(0x1c52)][_0x1973ae(0xbae)][_0x158a58]['message']});}}else _0x47277e[_0x1973ae(0x1bd0)]({'title':_0x10be71[_0x1973ae(0x10b3)]?'API:'+_0x10be71['status']+_0x1973ae(0x21db)+_0x10be71[_0x1973ae(0x2115)]:_0x1973ae(0x9ae),'msg':_0x10be71[_0x1973ae(0x1c52)]?JSON['stringify'](_0x10be71['data'][_0x1973ae(0x18ca)]):_0x10be71[_0x1973ae(0x18ca)]||_0x10be71[_0x1973ae(0x2915)]()});});},function(){});}function _0x44387b(_0x230b0e){return _0x230b0e===null?undefined:new Date(_0x230b0e);}function _0x3ed23f(_0x50b355){const _0xe78a4=_0x29775a;_0x3d065b[_0xe78a4(0x268e)](_0x50b355);}}const _0x4c26e3=_0x88279e;;const _0x2f63dc=_0x2e4a48['p']+_0x49a1e3(0x1e77);;_0xf4a801['$inject']=['$scope',_0x49a1e3(0x1fe7),'$state',_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x17ee),'userProfile',_0x49a1e3(0x16b2),'api',_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6)];function _0xf4a801(_0x213014,_0x388a06,_0x3448b1,_0x558a2c,_0x7aff58,_0x575200,_0x1d073c,_0x174057,_0x4bf6b7,_0xcc2b40,_0x110f27,_0x3916be,_0x1c62c5,_0x18cc4c,_0x28513c,_0x30c923,_0x3d6588){const _0x4399e2=_0x49a1e3,_0x2e353c=this;_0x2e353c[_0x4399e2(0x1947)]=_0x30c923,_0x2e353c[_0x4399e2(0x28d6)]=_0x3d6588,_0x2e353c['currentUser']=_0x28513c[_0x4399e2(0x808)](),_0x2e353c[_0x4399e2(0x17ee)]=_0x4bf6b7||{'count':0x0,'rows':[]},_0x2e353c['userProfile']=_0xcc2b40,_0x2e353c[_0x4399e2(0x16b2)]=_0x110f27&&_0x110f27[_0x4399e2(0xb90)]==0x1?_0x110f27[_0x4399e2(0x28b8)][0x0]:null,_0x2e353c[_0x4399e2(0x402)]=_0x28513c[_0x4399e2(0xa7e)](_0x2e353c[_0x4399e2(0x16b2)]?_0x2e353c[_0x4399e2(0x16b2)][_0x4399e2(0x402)]:null),_0x2e353c[_0x4399e2(0x185d)]=_0x4399e2(0x17ee),_0x2e353c['listOrder']='',_0x2e353c['listOrderAsc']=null,_0x2e353c[_0x4399e2(0x1279)]=[],_0x2e353c[_0x4399e2(0x289a)]={'fields':_0x4399e2(0x21f5),'sort':_0x4399e2(0x260c),'limit':0xa,'page':0x1},_0x2e353c[_0x4399e2(0x1c42)]=_0x3a0336,_0x2e353c[_0x4399e2(0x1d39)]=_0x333171,_0x2e353c[_0x4399e2(0x1262)]=_0x32e3dc,_0x2e353c['success']=_0x2d22fc,_0x2e353c[_0x4399e2(0x2629)]=_0x4a7818,_0x2e353c[_0x4399e2(0x2723)]=_0x24a474,_0x2e353c[_0x4399e2(0xbe0)]=_0x18c716,_0x2e353c[_0x4399e2(0x9e7)]=_0x4fc1f1,_0x2e353c[_0x4399e2(0xac4)]=_0x4ffddf,_0x2e353c[_0x4399e2(0x794)]=_0x59b7e6,_0x2e353c[_0x4399e2(0x2460)]=_0x3e6681;function _0x3a0336(_0x482954,_0x482ef4){const _0x4b982a=_0x4399e2;_0x7aff58[_0x4b982a(0xa60)]({'controller':_0x4b982a(0xd8f),'controllerAs':'vm','templateUrl':_0x2f63dc,'parent':angular[_0x4b982a(0x1f81)](_0x575200[_0x4b982a(0xb49)]),'targetEvent':_0x482ef4,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x482954,'extractedReports':_0x2e353c[_0x4b982a(0x17ee)][_0x4b982a(0x28b8)],'license':_0x2e353c[_0x4b982a(0x1947)],'setting':null,'crudPermissions':_0x2e353c[_0x4b982a(0x402)]}});}function _0x333171(_0x292cd6){const _0x99b161=_0x4399e2;return _0x3916be[_0x99b161(0x1602)]['download']({'id':_0x292cd6['id']})[_0x99b161(0x15e7)][_0x99b161(0x64a)](function(_0x44babd){const _0x41171b=_0x99b161,_0x26e7c8=[_0x44babd[_0x41171b(0x5a9)]];let _0x45d371=_0x41171b(0x19b3);const _0x1846d4=new Blob(_0x26e7c8,{'type':_0x44babd[_0x41171b(0x2185)]});_0x45d371=_0x292cd6[_0x41171b(0x210c)];const _0x90aab2=window[_0x41171b(0x123f)][_0x41171b(0x2978)]('a');_0x90aab2['setAttribute'](_0x41171b(0x25d0),URL['createObjectURL'](_0x1846d4)),_0x90aab2[_0x41171b(0x1280)](_0x41171b(0x19b3),_0x45d371),document[_0x41171b(0xb49)]['appendChild'](_0x90aab2),_0x90aab2[_0x41171b(0x2668)]();})[_0x99b161(0x20cd)](function(_0x56ec85){const _0x252022=_0x99b161;if(_0x56ec85[_0x252022(0x1c52)]&&_0x56ec85[_0x252022(0x1c52)][_0x252022(0xbae)]&&_0x56ec85['data'][_0x252022(0xbae)][_0x252022(0x1b9e)])for(let _0x576500=0x0;_0x576500<_0x56ec85[_0x252022(0x1c52)][_0x252022(0xbae)][_0x252022(0x1b9e)];_0x576500++){_0x18cc4c['error']({'title':_0x56ec85[_0x252022(0x1c52)][_0x252022(0xbae)][_0x576500][_0x252022(0x2185)],'msg':_0x56ec85[_0x252022(0x1c52)]['errors'][_0x576500][_0x252022(0x18ca)]});}else _0x18cc4c[_0x252022(0x1bd0)]({'title':_0x56ec85['status']?_0x252022(0x575)+_0x56ec85['status']+_0x252022(0x21db)+_0x56ec85[_0x252022(0x2115)]:_0x252022(0x151a),'msg':_0x56ec85[_0x252022(0x1c52)]?JSON[_0x252022(0x2317)](_0x56ec85['data']['message']):_0x56ec85[_0x252022(0x2915)]()});});}function _0x32e3dc(_0x1829ac,_0x13197b){const _0x258b44=_0x4399e2,_0x2a3f38=_0x7aff58['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()[_0x258b44(0xc01)](_0x258b44(0x11eb))+'?')[_0x258b44(0x33a)](_0x258b44(0x50b)+(_0x1829ac[_0x258b44(0x2494)]||_0x258b44(0x11eb))+_0x258b44(0x26d0)+_0x258b44(0x4b8))[_0x258b44(0x213e)](_0x258b44(0x1b8c))[_0x258b44(0x2283)](_0x13197b)['ok']('OK')[_0x258b44(0x101a)](_0x258b44(0x18fd));_0x7aff58['show'](_0x2a3f38)[_0x258b44(0x64a)](function(){_0x18c716(_0x1829ac);},function(){const _0xc40762=_0x258b44;console['log'](_0xc40762(0x18fd));});}let _0x1af419=!![],_0x5aea7a=0x1;_0x213014[_0x4399e2(0xc62)](_0x4399e2(0x1cb9),function(_0x321b6e,_0x426086){const _0x5e18ca=_0x4399e2;_0x1af419?_0x1d073c(function(){_0x1af419=![];}):(!_0x426086&&(_0x5aea7a=_0x2e353c[_0x5e18ca(0x289a)][_0x5e18ca(0xc72)]),_0x321b6e!==_0x426086&&(_0x2e353c[_0x5e18ca(0x289a)][_0x5e18ca(0xc72)]=0x1),!_0x321b6e&&(_0x2e353c['query'][_0x5e18ca(0xc72)]=_0x5aea7a),_0x2e353c[_0x5e18ca(0x2629)]());});function _0x2d22fc(_0x2acdbb){_0x2e353c['extractedReports']=_0x2acdbb||{'count':0x0,'rows':[]};}function _0x4a7818(){const _0xc78c91=_0x4399e2;_0x2e353c[_0xc78c91(0x289a)]['offset']=(_0x2e353c[_0xc78c91(0x289a)]['page']-0x1)*_0x2e353c[_0xc78c91(0x289a)][_0xc78c91(0x25bb)],_0x28513c[_0xc78c91(0x4de)](_0xc78c91(0x333))?_0x2e353c['promise']=_0x3916be['analyticExtractedReport'][_0xc78c91(0x896)](_0x2e353c['query'],_0x2d22fc)[_0xc78c91(0x15e7)]:(_0x2e353c[_0xc78c91(0x289a)]['id']=_0x2e353c[_0xc78c91(0x16a8)]['id'],_0x2e353c[_0xc78c91(0x289a)][_0xc78c91(0xa21)]=_0xc78c91(0x1567),_0x2e353c[_0xc78c91(0x1713)]=_0x3916be[_0xc78c91(0x16a8)][_0xc78c91(0x2565)](_0x2e353c['query'],_0x2d22fc)[_0xc78c91(0x15e7)]);}function _0x24a474(_0x13c586,_0x58a979){const _0x243bba=_0x4399e2;_0x7aff58['show']({'controller':_0x243bba(0xd8f),'controllerAs':'vm','templateUrl':_0x2f63dc,'parent':angular[_0x243bba(0x1f81)](_0x575200[_0x243bba(0xb49)]),'targetEvent':_0x13c586,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x58a979,'extractedReports':_0x2e353c[_0x243bba(0x17ee)][_0x243bba(0x28b8)],'license':_0x2e353c[_0x243bba(0x1947)],'setting':_0x2e353c[_0x243bba(0x28d6)],'crudPermissions':_0x2e353c[_0x243bba(0x402)]}});}function _0x18c716(_0x1a6949){const _0x4fc23c=_0x4399e2;_0x3916be[_0x4fc23c(0x1602)][_0x4fc23c(0xabd)]({'id':_0x1a6949['id']})[_0x4fc23c(0x15e7)][_0x4fc23c(0x64a)](function(){const _0x3b5dac=_0x4fc23c;_0x28c606()['remove'](_0x2e353c[_0x3b5dac(0x17ee)][_0x3b5dac(0x28b8)],{'id':_0x1a6949['id']}),_0x2e353c['extractedReports'][_0x3b5dac(0xb90)]-=0x1,!_0x2e353c['extractedReports'][_0x3b5dac(0x28b8)][_0x3b5dac(0x1b9e)]&&_0x2e353c[_0x3b5dac(0x2629)](),_0x18cc4c[_0x3b5dac(0x1339)]({'title':_0x28c606()[_0x3b5dac(0xc01)]('ExtractedReport')+'\x20deleted!','msg':_0x1a6949[_0x3b5dac(0x2494)]?_0x1a6949['name']+_0x3b5dac(0x1fa8):''});})[_0x4fc23c(0x20cd)](function(_0x386a0b){const _0x40b07f=_0x4fc23c;if(_0x386a0b['data']&&_0x386a0b[_0x40b07f(0x1c52)]['errors']&&_0x386a0b[_0x40b07f(0x1c52)][_0x40b07f(0xbae)][_0x40b07f(0x1b9e)]){_0x2e353c['errors']=_0x386a0b[_0x40b07f(0x1c52)][_0x40b07f(0xbae)]||[{'message':_0x386a0b[_0x40b07f(0x2915)](),'type':'SYSTEM:DELETEanalyticExtractedReport'}];for(let _0xe64997=0x0;_0xe64997<_0x386a0b[_0x40b07f(0x1c52)][_0x40b07f(0xbae)][_0x40b07f(0x1b9e)];_0xe64997++){_0x18cc4c[_0x40b07f(0x1bd0)]({'title':_0x386a0b[_0x40b07f(0x1c52)][_0x40b07f(0xbae)][_0xe64997][_0x40b07f(0x2185)],'msg':_0x386a0b['data']['errors'][_0xe64997][_0x40b07f(0x18ca)]});}}else _0x18cc4c[_0x40b07f(0x1bd0)]({'title':_0x386a0b[_0x40b07f(0x10b3)]?_0x40b07f(0x575)+_0x386a0b[_0x40b07f(0x10b3)]+_0x40b07f(0x21db)+_0x386a0b[_0x40b07f(0x2115)]:_0x40b07f(0x246f),'msg':_0x386a0b[_0x40b07f(0x1c52)]?JSON['stringify'](_0x386a0b[_0x40b07f(0x1c52)][_0x40b07f(0x18ca)]):_0x386a0b['message']||_0x386a0b[_0x40b07f(0x2915)]()});});}function _0x4fc1f1(){const _0x2576ac=_0x4399e2,_0x218df5=angular['copy'](_0x2e353c[_0x2576ac(0x1279)]);return _0x2e353c['selectedExtractedReports']=[],_0x218df5;}function _0x4ffddf(_0x32b4d3){const _0x586a5e=_0x4399e2,_0x108175=_0x7aff58[_0x586a5e(0x856)]()[_0x586a5e(0x2021)](_0x586a5e(0x1d5e))['htmlContent'](_0x586a5e(0x50b)+_0x2e353c[_0x586a5e(0x1279)][_0x586a5e(0x1b9e)]+_0x586a5e(0x163e)+_0x586a5e(0x4b8))['ariaLabel'](_0x586a5e(0x3b5))['targetEvent'](_0x32b4d3)['ok']('OK')[_0x586a5e(0x101a)]('CANCEL');_0x7aff58['show'](_0x108175)[_0x586a5e(0x64a)](function(){const _0x1fd939=_0x586a5e;_0x2e353c[_0x1fd939(0x1279)][_0x1fd939(0x1397)](function(_0x2d1437){_0x18c716(_0x2d1437);}),_0x2e353c['selectedExtractedReports']=[];});}function _0x59b7e6(){const _0x5ca15d=_0x4399e2;_0x2e353c[_0x5ca15d(0x1279)]=[];}function _0x3e6681(){const _0x1aea30=_0x4399e2;_0x2e353c[_0x1aea30(0x1279)]=_0x2e353c[_0x1aea30(0x17ee)][_0x1aea30(0x28b8)];}}const _0x5c29e9=_0xf4a801;;_0x10203c[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0xe60),_0x49a1e3(0x900),_0x49a1e3(0xa19),'Auth','license',_0x49a1e3(0x28d6),'crudPermissions'];function _0x10203c(_0x23caf3,_0x15bc7b,_0x5a3552,_0x1309ea,_0x13d7be,_0x30ddc7,_0x406f4c,_0x1656a1,_0x338496,_0x33aa21,_0x5130a7,_0x16c07c,_0x438cb4,_0x319455){const _0x4e8251=_0x49a1e3,_0x4aec27=this;_0x4aec27[_0x4e8251(0x1d3d)]=_0x5130a7[_0x4e8251(0x808)](),_0x4aec27[_0x4e8251(0xbae)]=[],_0x4aec27[_0x4e8251(0x28d6)]=_0x438cb4,_0x4aec27[_0x4e8251(0x1947)]=_0x16c07c,_0x4aec27[_0x4e8251(0x402)]=_0x319455,_0x4aec27[_0x4e8251(0x6c2)]={},_0x4aec27[_0x4e8251(0xccc)]=_0x4aec27[_0x4e8251(0x28d6)]&&_0x4aec27['setting'][_0x4e8251(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4aec27[_0x4e8251(0x2021)]='ANALYTICS.EDIT_METRIC',_0x4aec27[_0x4e8251(0x900)]=angular[_0x4e8251(0x289e)](_0x338496),_0x4aec27['metrics']=_0x1656a1,_0x4aec27[_0x4e8251(0x253f)]=![];!_0x4aec27[_0x4e8251(0x900)]&&(_0x4aec27['metric']={'table':_0x4e8251(0x184)},_0x4aec27[_0x4e8251(0x2021)]=_0x4e8251(0xe27),_0x4aec27[_0x4e8251(0x253f)]=!![]);_0x4aec27[_0x4e8251(0x9bc)]=_0x374fd5,_0x4aec27[_0x4e8251(0x1d0b)]=_0x299f1b,_0x4aec27[_0x4e8251(0xf98)]=_0x3b9e50,_0x4aec27['getDateFromString']=_0x25e51a,_0x4aec27['closeDialog']=_0x3c9270;function _0x374fd5(){const _0x223d9b=_0x4e8251;_0x4aec27['errors']=[],_0x33aa21[_0x223d9b(0x1dcf)]['save'](_0x4aec27[_0x223d9b(0x900)])[_0x223d9b(0x15e7)][_0x223d9b(0x64a)](function(_0x4f7709){const _0x3aae0d=_0x223d9b;_0x4aec27[_0x3aae0d(0xe60)][_0x3aae0d(0x1891)](_0x4f7709[_0x3aae0d(0x14f8)]()),_0x406f4c[_0x3aae0d(0x1339)]({'title':'Metric\x20properly\x20created','msg':_0x4aec27[_0x3aae0d(0x900)][_0x3aae0d(0x2494)]?_0x4aec27[_0x3aae0d(0x900)][_0x3aae0d(0x2494)]+'\x20has\x20been\x20created!':''}),_0x3c9270(_0x4f7709);})[_0x223d9b(0x20cd)](function(_0x33ad5f){const _0x401c48=_0x223d9b;if(_0x33ad5f[_0x401c48(0x1c52)]&&_0x33ad5f[_0x401c48(0x1c52)][_0x401c48(0xbae)]&&_0x33ad5f['data']['errors'][_0x401c48(0x1b9e)]){_0x4aec27[_0x401c48(0xbae)]=_0x33ad5f['data'][_0x401c48(0xbae)]||[{'message':_0x33ad5f[_0x401c48(0x2915)](),'type':_0x401c48(0x19b8)}];for(let _0x2f73db=0x0;_0x2f73db<_0x33ad5f[_0x401c48(0x1c52)][_0x401c48(0xbae)][_0x401c48(0x1b9e)];_0x2f73db+=0x1){_0x406f4c['error']({'title':_0x33ad5f[_0x401c48(0x1c52)][_0x401c48(0xbae)][_0x2f73db][_0x401c48(0x2185)],'msg':_0x33ad5f[_0x401c48(0x1c52)][_0x401c48(0xbae)][_0x2f73db][_0x401c48(0x18ca)]});}}else _0x406f4c['error']({'title':_0x33ad5f[_0x401c48(0x10b3)]?'API:'+_0x33ad5f['status']+_0x401c48(0x21db)+_0x33ad5f[_0x401c48(0x2115)]:'api.analyticMetric.save','msg':_0x33ad5f['data']?JSON[_0x401c48(0x2317)](_0x33ad5f[_0x401c48(0x1c52)][_0x401c48(0x18ca)]):_0x33ad5f[_0x401c48(0x2915)]()});});}function _0x299f1b(){const _0x1505b6=_0x4e8251;_0x4aec27[_0x1505b6(0xbae)]=[],_0x33aa21[_0x1505b6(0x1dcf)]['update']({'id':_0x4aec27[_0x1505b6(0x900)]['id']},_0x4aec27['metric'])['$promise'][_0x1505b6(0x64a)](function(_0x4e753c){const _0x5a0406=_0x1505b6,_0xa07432=_0x28c606()['find'](_0x4aec27[_0x5a0406(0xe60)],{'id':_0x4e753c['id']});_0xa07432&&_0x28c606()[_0x5a0406(0x14fe)](_0xa07432,_0x28c606()[_0x5a0406(0x27bb)](_0x4e753c['toJSON'](),_0x28c606()[_0x5a0406(0x1ec6)](_0xa07432))),_0x406f4c[_0x5a0406(0x1339)]({'title':_0x5a0406(0x1e7),'msg':_0x4aec27[_0x5a0406(0x900)]['name']?_0x4aec27[_0x5a0406(0x900)][_0x5a0406(0x2494)]+'\x20has\x20been\x20saved!':''}),_0x3c9270(_0x4e753c);})[_0x1505b6(0x20cd)](function(_0x582213){const _0xbf0e35=_0x1505b6;if(_0x582213[_0xbf0e35(0x1c52)]&&_0x582213[_0xbf0e35(0x1c52)][_0xbf0e35(0xbae)]&&_0x582213[_0xbf0e35(0x1c52)]['errors'][_0xbf0e35(0x1b9e)]){_0x4aec27[_0xbf0e35(0xbae)]=_0x582213[_0xbf0e35(0x1c52)][_0xbf0e35(0xbae)]||[{'message':_0x582213[_0xbf0e35(0x2915)](),'type':_0xbf0e35(0x18e5)}];for(let _0x4ff259=0x0;_0x4ff259<_0x582213[_0xbf0e35(0x1c52)]['errors'][_0xbf0e35(0x1b9e)];_0x4ff259++){_0x406f4c[_0xbf0e35(0x1bd0)]({'title':_0x582213['data'][_0xbf0e35(0xbae)][_0x4ff259][_0xbf0e35(0x2185)],'msg':_0x582213['data'][_0xbf0e35(0xbae)][_0x4ff259][_0xbf0e35(0x18ca)]});}}else _0x406f4c['error']({'title':_0x582213[_0xbf0e35(0x10b3)]?_0xbf0e35(0x575)+_0x582213[_0xbf0e35(0x10b3)]+_0xbf0e35(0x21db)+_0x582213[_0xbf0e35(0x2115)]:_0xbf0e35(0x18e5),'msg':_0x582213[_0xbf0e35(0x1c52)]?JSON[_0xbf0e35(0x2317)](_0x582213[_0xbf0e35(0x1c52)][_0xbf0e35(0x18ca)]):_0x582213[_0xbf0e35(0x2915)]()});});}function _0x3b9e50(_0x76d85e){const _0x538cb7=_0x4e8251;_0x4aec27['errors']=[];const _0x248ec9=_0x1309ea[_0x538cb7(0x856)]()[_0x538cb7(0x2021)](_0x538cb7(0x103a))[_0x538cb7(0x12b8)]('The\x20metric\x20will\x20be\x20deleted.')[_0x538cb7(0x213e)](_0x538cb7(0x22b0))['ok'](_0x538cb7(0x2664))[_0x538cb7(0x101a)](_0x538cb7(0x1dc6))[_0x538cb7(0x2283)](_0x76d85e);_0x1309ea[_0x538cb7(0xa60)](_0x248ec9)['then'](function(){const _0x5de329=_0x538cb7;_0x33aa21['analyticMetric'][_0x5de329(0xabd)]({'id':_0x4aec27[_0x5de329(0x900)]['id']})[_0x5de329(0x15e7)][_0x5de329(0x64a)](function(){const _0xcebdb=_0x5de329;_0x28c606()[_0xcebdb(0x21c7)](_0x4aec27[_0xcebdb(0xe60)],{'id':_0x4aec27[_0xcebdb(0x900)]['id']}),_0x406f4c[_0xcebdb(0x1339)]({'title':_0xcebdb(0x3f6),'msg':(_0x4aec27[_0xcebdb(0x900)][_0xcebdb(0x2494)]||_0xcebdb(0x900))+_0xcebdb(0x1fa8)}),_0x3c9270(_0x4aec27['metric']);})[_0x5de329(0x20cd)](function(_0x866cdb){const _0x5bb510=_0x5de329;if(_0x866cdb[_0x5bb510(0x1c52)]&&_0x866cdb[_0x5bb510(0x1c52)][_0x5bb510(0xbae)]&&_0x866cdb[_0x5bb510(0x1c52)]['errors']['length']){_0x4aec27[_0x5bb510(0xbae)]=_0x866cdb[_0x5bb510(0x1c52)][_0x5bb510(0xbae)]||[{'message':_0x866cdb['toString'](),'type':_0x5bb510(0x2140)}];for(let _0x3fe435=0x0;_0x3fe435<_0x866cdb[_0x5bb510(0x1c52)]['errors']['length'];_0x3fe435++){_0x406f4c[_0x5bb510(0x1bd0)]({'title':_0x866cdb[_0x5bb510(0x1c52)][_0x5bb510(0xbae)][_0x3fe435][_0x5bb510(0x2185)],'msg':_0x866cdb[_0x5bb510(0x1c52)][_0x5bb510(0xbae)][_0x3fe435][_0x5bb510(0x18ca)]});}}else _0x406f4c['error']({'title':_0x866cdb[_0x5bb510(0x10b3)]?'API:'+_0x866cdb['status']+_0x5bb510(0x21db)+_0x866cdb[_0x5bb510(0x2115)]:_0x5bb510(0x2140),'msg':_0x866cdb[_0x5bb510(0x1c52)]?JSON[_0x5bb510(0x2317)](_0x866cdb[_0x5bb510(0x1c52)][_0x5bb510(0x18ca)]):_0x866cdb['message']||_0x866cdb[_0x5bb510(0x2915)]()});});},function(){});}function _0x25e51a(_0x59da18){return _0x59da18===null?undefined:new Date(_0x59da18);}function _0x3c9270(_0x55a0b2){const _0x3d6a87=_0x4e8251;_0x1309ea[_0x3d6a87(0x268e)](_0x55a0b2);}}const _0x58b46b=_0x10203c;;const _0x1ecaf4=_0x2e4a48['p']+'src/js/modules/main/apps/analytics/views/metrics/create/dialog.html/dialog.html';;_0x5d20fa['$inject']=[_0x49a1e3(0x1674),'$window',_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),'$timeout',_0x49a1e3(0x298c),_0x49a1e3(0xe60),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),'api',_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x5d20fa(_0x1d8d08,_0x51dc93,_0x42437d,_0x3827ea,_0x18503a,_0x25f916,_0x62222f,_0x526da4,_0x19ad15,_0x2aacfb,_0x513561,_0x2df7eb,_0x1e034c,_0x26873c,_0x4b15ea,_0x4238b6,_0x14a131){const _0x305178=_0x49a1e3,_0x13eee6=this;_0x13eee6[_0x305178(0x1947)]=_0x4238b6,_0x13eee6['setting']=_0x14a131,_0x13eee6[_0x305178(0x1d3d)]=_0x4b15ea[_0x305178(0x808)](),_0x13eee6['metrics']=_0x19ad15||{'count':0x0,'rows':[]},_0x13eee6[_0x305178(0x16a8)]=_0x2aacfb,_0x13eee6[_0x305178(0x16b2)]=_0x513561&&_0x513561[_0x305178(0xb90)]==0x1?_0x513561[_0x305178(0x28b8)][0x0]:null,_0x13eee6[_0x305178(0x402)]=_0x4b15ea[_0x305178(0xa7e)](_0x13eee6[_0x305178(0x16b2)]?_0x13eee6['userProfileSection']['crudPermissions']:null),_0x13eee6[_0x305178(0x185d)]=_0x305178(0xe60),_0x13eee6[_0x305178(0x300)]='',_0x13eee6[_0x305178(0x2748)]=null,_0x13eee6['selectedMetrics']=[],_0x13eee6[_0x305178(0x289a)]={'fields':_0x305178(0x8af),'sort':_0x305178(0x260c),'limit':0xa,'page':0x1},_0x13eee6[_0x305178(0x2122)]=_0x28c606()[_0x305178(0x161e)]([{'option':_0x305178(0x18fb),'value':'\x27report_agent\x27'},{'option':_0x305178(0x11d3),'value':_0x305178(0xee9)},{'option':'CDR','value':_0x305178(0x1a6d)},{'option':_0x305178(0x1d6f),'value':_0x305178(0x1846)},{'option':_0x305178(0x24ab),'value':_0x305178(0x564)},{'option':'Chat\x20Messages','value':_0x305178(0x210)},{'option':_0x305178(0x532),'value':_0x305178(0x147c)},{'option':_0x305178(0x1f65),'value':'\x27chat_queues\x27'},{'option':'Chat\x20Report\x20Queue','value':_0x305178(0x1fc3)},{'option':_0x305178(0x106e),'value':_0x305178(0x235b)},{'option':_0x305178(0x227d),'value':_0x305178(0x1819)},{'option':_0x305178(0x1162),'value':_0x305178(0x18f6)},{'option':_0x305178(0xb9b),'value':_0x305178(0x27ec)},{'option':_0x305178(0x116e),'value':'\x27report_square_details\x27'},{'option':_0x305178(0x11fe),'value':'\x27report_dial\x27'},{'option':_0x305178(0xdec),'value':_0x305178(0xff3)},{'option':_0x305178(0x1d02),'value':_0x305178(0x243c)},{'option':_0x305178(0x2515),'value':_0x305178(0x2730)},{'option':_0x305178(0x160c),'value':_0x305178(0x1917)},{'option':_0x305178(0x16fe),'value':_0x305178(0x2803)},{'option':_0x305178(0x17d8),'value':_0x305178(0x240)},{'option':_0x305178(0x24b),'value':_0x305178(0x138e)},{'option':_0x305178(0x2407),'value':_0x305178(0x15e8)},{'option':_0x305178(0x1dbb),'value':_0x305178(0xebe)},{'option':'Fax\x20Account','value':'\x27fax_accounts\x27'},{'option':_0x305178(0x206e),'value':_0x305178(0x185e)},{'option':'Fax\x20Messages','value':_0x305178(0xcb3)},{'option':_0x305178(0x16ff),'value':_0x305178(0x1f53)},{'option':_0x305178(0x1cce),'value':_0x305178(0x1e0c)},{'option':'Fax\x20Report\x20Transfer','value':_0x305178(0x2f1)},{'option':'Jscripty\x20Sessions','value':_0x305178(0xbdb)},{'option':_0x305178(0x735),'value':_0x305178(0x1994)},{'option':_0x305178(0xfe2),'value':_0x305178(0x1a65)},{'option':_0x305178(0x386),'value':_0x305178(0x1f85)},{'option':_0x305178(0x1dca),'value':_0x305178(0x2662)},{'option':_0x305178(0xfd2),'value':_0x305178(0x15ec)},{'option':_0x305178(0x126c),'value':_0x305178(0x1590)},{'option':_0x305178(0x338),'value':'\x27openchannel_messages\x27'},{'option':_0x305178(0xcf2),'value':_0x305178(0x2809)},{'option':_0x305178(0x14e1),'value':_0x305178(0x13c2)},{'option':_0x305178(0xe4b),'value':_0x305178(0x1af8)},{'option':_0x305178(0x171),'value':_0x305178(0x28e1)},{'option':_0x305178(0x1e1),'value':_0x305178(0xfd0)},{'option':'SMS\x20Interaction','value':_0x305178(0x21a0)},{'option':'SMS\x20Messages','value':_0x305178(0x20bc)},{'option':'SMS\x20Queues','value':'\x27sms_queues\x27'},{'option':_0x305178(0x121b),'value':_0x305178(0x7d4)},{'option':_0x305178(0x1a44),'value':_0x305178(0xbe9)},{'option':_0x305178(0x25d3),'value':'\x27users\x27'},{'option':'Voice\x20Recordings','value':_0x305178(0x4da)},{'option':_0x305178(0x1b46),'value':_0x305178(0x2aa)},{'option':_0x305178(0x19ff),'value':_0x305178(0x1573)},{'option':_0x305178(0x2053),'value':'\x27whatsapp_messages\x27'},{'option':_0x305178(0x2067),'value':_0x305178(0x617)},{'option':_0x305178(0x228e),'value':_0x305178(0xf36)},{'option':_0x305178(0x18a8),'value':'\x27report_whatsapp_transfer\x27'}],function(_0x48358a){const _0x399874=_0x305178;return _0x28c606()[_0x399874(0x1353)](_0x48358a['value'],new RegExp('\x27','g'),'');}),_0x13eee6['editdialog']=_0x23be53,_0x13eee6[_0x305178(0x1262)]=_0xb8833c,_0x13eee6['success']=_0x311ccd,_0x13eee6['getMetrics']=_0x141cbe,_0x13eee6[_0x305178(0x4a8)]=_0x2c6c51,_0x13eee6[_0x305178(0xf98)]=_0x31423e,_0x13eee6[_0x305178(0x349)]=_0x49db4d,_0x13eee6[_0x305178(0x1ac0)]=_0x278c1a,_0x13eee6[_0x305178(0xf79)]=_0x2224b8,_0x13eee6[_0x305178(0x83d)]=_0x118ba9;function _0x23be53(_0x3e4cc4,_0xb4301){const _0x1662fc=_0x305178;_0x18503a['show']({'controller':_0x1662fc(0x15d6),'controllerAs':'vm','templateUrl':_0x1ecaf4,'parent':angular[_0x1662fc(0x1f81)](_0x25f916[_0x1662fc(0xb49)]),'targetEvent':_0xb4301,'clickOutsideToClose':!![],'locals':{'metric':_0x3e4cc4,'metrics':_0x13eee6[_0x1662fc(0xe60)]['rows'],'license':_0x13eee6['license'],'setting':null,'crudPermissions':_0x13eee6[_0x1662fc(0x402)]}});}function _0xb8833c(_0x5a2702,_0x3730ff){const _0x227c64=_0x305178,_0x5e3baf=_0x18503a[_0x227c64(0x856)]()[_0x227c64(0x2021)](_0x227c64(0x1231)+_0x28c606()['startCase'](_0x227c64(0x900))+'?')['htmlContent'](_0x227c64(0x50b)+(_0x5a2702[_0x227c64(0x2494)]||_0x227c64(0x900))+_0x227c64(0x26d0)+_0x227c64(0x4b8))[_0x227c64(0x213e)]('delete\x20metric')[_0x227c64(0x2283)](_0x3730ff)['ok']('OK')[_0x227c64(0x101a)]('CANCEL');_0x18503a['show'](_0x5e3baf)[_0x227c64(0x64a)](function(){_0x31423e(_0x5a2702);},function(){const _0x52f7f0=_0x227c64;console['log'](_0x52f7f0(0x18fd));});}let _0xb50b08=!![],_0x39dcca=0x1;_0x1d8d08['$watch'](_0x305178(0x1cb9),function(_0x58bf3b,_0x9ea6dc){const _0x39535b=_0x305178;_0xb50b08?_0x62222f(function(){_0xb50b08=![];}):(!_0x9ea6dc&&(_0x39dcca=_0x13eee6['query'][_0x39535b(0xc72)]),_0x58bf3b!==_0x9ea6dc&&(_0x13eee6[_0x39535b(0x289a)][_0x39535b(0xc72)]=0x1),!_0x58bf3b&&(_0x13eee6[_0x39535b(0x289a)]['page']=_0x39dcca),_0x13eee6['getMetrics']());});function _0x311ccd(_0xcd768f){const _0x383be0=_0x305178;_0x13eee6[_0x383be0(0xe60)]=_0xcd768f||{'count':0x0,'rows':[]};}function _0x141cbe(){const _0x332287=_0x305178;_0x13eee6[_0x332287(0x289a)][_0x332287(0x24f9)]=(_0x13eee6[_0x332287(0x289a)][_0x332287(0xc72)]-0x1)*_0x13eee6[_0x332287(0x289a)][_0x332287(0x25bb)],_0x4b15ea['hasRole'](_0x332287(0x333))?_0x13eee6[_0x332287(0x1713)]=_0x2df7eb[_0x332287(0x1dcf)][_0x332287(0x896)](_0x13eee6[_0x332287(0x289a)],_0x311ccd)[_0x332287(0x15e7)]:(_0x13eee6[_0x332287(0x289a)]['id']=_0x13eee6[_0x332287(0x16a8)]['id'],_0x13eee6['query'][_0x332287(0xa21)]=_0x332287(0xbda),_0x13eee6['promise']=_0x2df7eb[_0x332287(0x16a8)][_0x332287(0x2565)](_0x13eee6[_0x332287(0x289a)],_0x311ccd)[_0x332287(0x15e7)]);}function _0x2c6c51(_0x4cb1f3,_0x4237db){const _0x817630=_0x305178;_0x18503a[_0x817630(0xa60)]({'controller':_0x817630(0x15d6),'controllerAs':'vm','templateUrl':_0x1ecaf4,'parent':angular[_0x817630(0x1f81)](_0x25f916[_0x817630(0xb49)]),'targetEvent':_0x4cb1f3,'clickOutsideToClose':!![],'locals':{'metric':_0x4237db,'metrics':_0x13eee6[_0x817630(0xe60)][_0x817630(0x28b8)],'license':_0x13eee6[_0x817630(0x1947)],'setting':_0x13eee6[_0x817630(0x28d6)],'crudPermissions':_0x13eee6[_0x817630(0x402)]}});}function _0x31423e(_0x5d6e02){const _0x2ddbb1=_0x305178;_0x2df7eb['analyticMetric']['delete']({'id':_0x5d6e02['id']})[_0x2ddbb1(0x15e7)]['then'](function(){const _0x30a022=_0x2ddbb1;_0x28c606()[_0x30a022(0x21c7)](_0x13eee6[_0x30a022(0xe60)][_0x30a022(0x28b8)],{'id':_0x5d6e02['id']}),_0x13eee6[_0x30a022(0xe60)][_0x30a022(0xb90)]-=0x1,!_0x13eee6[_0x30a022(0xe60)][_0x30a022(0x28b8)][_0x30a022(0x1b9e)]&&_0x13eee6[_0x30a022(0x2711)](),_0x26873c['success']({'title':_0x28c606()[_0x30a022(0xc01)]('Metric')+'\x20deleted!','msg':_0x5d6e02[_0x30a022(0x2494)]?_0x5d6e02[_0x30a022(0x2494)]+'\x20has\x20been\x20deleted!':''});})[_0x2ddbb1(0x20cd)](function(_0x2cf0d9){const _0x5b1053=_0x2ddbb1;if(_0x2cf0d9[_0x5b1053(0x1c52)]&&_0x2cf0d9[_0x5b1053(0x1c52)][_0x5b1053(0xbae)]&&_0x2cf0d9[_0x5b1053(0x1c52)][_0x5b1053(0xbae)]['length']){_0x13eee6[_0x5b1053(0xbae)]=_0x2cf0d9['data'][_0x5b1053(0xbae)]||[{'message':_0x2cf0d9['toString'](),'type':'SYSTEM:DELETEanalyticMetric'}];for(let _0x3fa5d3=0x0;_0x3fa5d3<_0x2cf0d9[_0x5b1053(0x1c52)][_0x5b1053(0xbae)]['length'];_0x3fa5d3++){_0x26873c[_0x5b1053(0x1bd0)]({'title':_0x2cf0d9['data'][_0x5b1053(0xbae)][_0x3fa5d3][_0x5b1053(0x2185)],'msg':_0x2cf0d9[_0x5b1053(0x1c52)][_0x5b1053(0xbae)][_0x3fa5d3][_0x5b1053(0x18ca)]});}}else _0x26873c[_0x5b1053(0x1bd0)]({'title':_0x2cf0d9[_0x5b1053(0x10b3)]?_0x5b1053(0x575)+_0x2cf0d9[_0x5b1053(0x10b3)]+_0x5b1053(0x21db)+_0x2cf0d9[_0x5b1053(0x2115)]:_0x5b1053(0x17c9),'msg':_0x2cf0d9['data']?JSON[_0x5b1053(0x2317)](_0x2cf0d9[_0x5b1053(0x1c52)][_0x5b1053(0x18ca)]):_0x2cf0d9[_0x5b1053(0x18ca)]||_0x2cf0d9[_0x5b1053(0x2915)]()});});}function _0x49db4d(){const _0x33e739=_0x305178,_0x27afd7=angular[_0x33e739(0x289e)](_0x13eee6[_0x33e739(0x1693)]);return _0x13eee6[_0x33e739(0x1693)]=[],_0x27afd7;}function _0x278c1a(_0x2f076a){const _0x264b38=_0x305178,_0xe0df2d=_0x18503a[_0x264b38(0x856)]()['title'](_0x264b38(0x12b4))[_0x264b38(0x33a)](''+_0x13eee6[_0x264b38(0x1693)]['length']+_0x264b38(0x163e)+_0x264b38(0x4b8))[_0x264b38(0x213e)](_0x264b38(0x2e5))[_0x264b38(0x2283)](_0x2f076a)['ok']('OK')[_0x264b38(0x101a)](_0x264b38(0x18fd));_0x18503a['show'](_0xe0df2d)[_0x264b38(0x64a)](function(){const _0x24e272=_0x264b38;_0x13eee6[_0x24e272(0x1693)]['forEach'](function(_0x15ae6f){_0x31423e(_0x15ae6f);}),_0x13eee6[_0x24e272(0x1693)]=[];});}function _0x2224b8(){const _0x407f38=_0x305178;_0x13eee6[_0x407f38(0x1693)]=[];}function _0x118ba9(){const _0x2941f7=_0x305178;_0x13eee6['selectedMetrics']=_0x13eee6[_0x2941f7(0xe60)][_0x2941f7(0x28b8)];}}const _0x38c747=_0x5d20fa;;_0x5eb729['$inject']=[_0x49a1e3(0x20ad),_0x49a1e3(0x21f8)];function _0x5eb729(_0x8d702a,_0x186d08){const _0x35fe17=_0x49a1e3;_0x8d702a[_0x35fe17(0x14f2)]('app.analytics',{'abstract':!![],'url':_0x35fe17(0xec5)})[_0x35fe17(0x14f2)](_0x35fe17(0x163),{'url':_0x35fe17(0xb8f),'views':{'content@app':{'templateUrl':_0x418c0f,'controller':_0x35fe17(0x7c7)}},'resolve':{'metrics':[_0x35fe17(0x107c),_0x35fe17(0xdcf),function(_0x13c787,_0x71330b){const _0x54736e=_0x35fe17;return _0x71330b['hasRole'](_0x54736e(0x333))?_0x13c787['resolve']('analyticMetric@get',{'fields':_0x54736e(0x8af),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x13c787['resolve'](_0x54736e(0x1758),{'id':_0x71330b[_0x54736e(0x808)]()[_0x54736e(0x21ac)],'section':_0x54736e(0xbda),'fields':_0x54736e(0x8af),'sort':_0x54736e(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x35fe17(0x107c),'Auth',function(_0x61a151,_0x403450){const _0x33259f=_0x35fe17;return _0x403450[_0x33259f(0x4de)](_0x33259f(0x333))?null:_0x61a151[_0x33259f(0x1268)]('userProfile@get',{'fields':_0x33259f(0x10d2),'id':_0x403450[_0x33259f(0x808)]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x35fe17(0xdcf),function(_0xc97657,_0x2a4f63){const _0x18e0e5=_0x35fe17;return _0x2a4f63[_0x18e0e5(0x4de)](_0x18e0e5(0x333))?null:_0xc97657['resolve'](_0x18e0e5(0x2681),{'fields':_0x18e0e5(0x527),'userProfileId':_0x2a4f63[_0x18e0e5(0x808)]()[_0x18e0e5(0x21ac)],'sectionId':0x4b1});}]},'authenticate':!![],'permissionId':0x4b1,'bodyClass':_0x35fe17(0x1d3b)})['state']('app.analytics.extractedReports',{'url':'/extractedReports','views':{'content@app':{'templateUrl':_0x7cda56,'controller':'ExtractedReportsController\x20as\x20vm'}},'resolve':{'extractedReports':['apiResolver','Auth',function(_0x49e3b4,_0x57cbb0){const _0x2a45b0=_0x35fe17;return _0x57cbb0[_0x2a45b0(0x4de)](_0x2a45b0(0x333))?_0x49e3b4[_0x2a45b0(0x1268)](_0x2a45b0(0x121d),{'fields':_0x2a45b0(0x21f5),'sort':_0x2a45b0(0x260c),'limit':0xa,'offset':0x0}):_0x49e3b4[_0x2a45b0(0x1268)](_0x2a45b0(0x1758),{'id':_0x57cbb0[_0x2a45b0(0x808)]()[_0x2a45b0(0x21ac)],'section':_0x2a45b0(0x1567),'fields':'createdAt,updatedAt,id,name,basename,savename,type,startDate,endDate,status,output,reportId,reportType','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x35fe17(0xdcf),function(_0x430f13,_0x1caf24){const _0x459343=_0x35fe17;return _0x1caf24['hasRole']('admin')?null:_0x430f13[_0x459343(0x1268)](_0x459343(0x6e3),{'fields':_0x459343(0x10d2),'id':_0x1caf24[_0x459343(0x808)]()['userProfileId']});}],'userProfileSection':[_0x35fe17(0x107c),_0x35fe17(0xdcf),function(_0x54f17c,_0x1712ad){const _0x6026b2=_0x35fe17;return _0x1712ad[_0x6026b2(0x4de)](_0x6026b2(0x333))?null:_0x54f17c[_0x6026b2(0x1268)](_0x6026b2(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1712ad[_0x6026b2(0x808)]()['userProfileId'],'sectionId':0x4b2});}]},'authenticate':!![],'permissionId':0x4b2,'bodyClass':_0x35fe17(0x1d3b)}),_0x186d08[_0x35fe17(0x1bde)]('app/main/apps/analytics');}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x11f8),[_0x49a1e3(0x8d2),_0x49a1e3(0x3c7),_0x49a1e3(0x1fe3),_0x49a1e3(0x891),_0x49a1e3(0x2516),_0x49a1e3(0x1b6c),'ng-sortable',_0x49a1e3(0x1a87),_0x49a1e3(0x1610),_0x49a1e3(0xb19),_0x49a1e3(0x1a59),_0x49a1e3(0x11fd),_0x49a1e3(0x1cfe),_0x49a1e3(0x1bd1),_0x49a1e3(0x1b5f),_0x49a1e3(0x1cff),_0x49a1e3(0x1046),_0x49a1e3(0x1acd),_0x49a1e3(0xc48),_0x49a1e3(0x28dd),_0x49a1e3(0x1c7b)])[_0x49a1e3(0x3d3)](_0x5eb729)[_0x49a1e3(0x38e)](_0x49a1e3(0xd8f),_0x4c26e3)['controller']('ExtractedReportsController',_0x5c29e9)[_0x49a1e3(0x38e)](_0x49a1e3(0x15d6),_0x58b46b)[_0x49a1e3(0x38e)](_0x49a1e3(0xc69),_0x38c747);;const _0x57b4af=_0x2e4a48['p']+_0x49a1e3(0x9db);;const _0x2f0b02=_0x2e4a48['p']+_0x49a1e3(0xc24);;const _0x3f1158=_0x2e4a48['p']+_0x49a1e3(0xb38);;const _0x1bf75a=_0x2e4a48['p']+_0x49a1e3(0x1207);;const _0x1a77f1=_0x2e4a48['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/freshdeskAccounts.html/freshdeskAccounts.html';;const _0x3a1809=_0x2e4a48['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/view.html/view.html';;const _0x36aef7=_0x2e4a48['p']+'src/js/modules/main/apps/integrations/views/sugarcrmAccounts/sugarcrmAccounts.html/sugarcrmAccounts.html';;const _0x2525b1=_0x2e4a48['p']+_0x49a1e3(0x23f4);;const _0x400456=_0x2e4a48['p']+_0x49a1e3(0xcf0);;const _0x2abdb5=_0x2e4a48['p']+_0x49a1e3(0x376);;const _0x5b474e=_0x2e4a48['p']+_0x49a1e3(0x941);;const _0x1510a9=_0x2e4a48['p']+_0x49a1e3(0x2df);;const _0x193d49=_0x2e4a48['p']+_0x49a1e3(0x2135);;const _0xc32b7c=_0x2e4a48['p']+_0x49a1e3(0x400);;const _0x445fe4=_0x2e4a48['p']+'src/js/modules/main/apps/integrations/views/dynamics365Accounts/dynamics365Accounts.html/dynamics365Accounts.html';;const _0x5a144a=_0x2e4a48['p']+_0x49a1e3(0x1274);;const _0x24d8ed=_0x2e4a48['p']+_0x49a1e3(0x6f8);;const _0x365308=_0x2e4a48['p']+_0x49a1e3(0x133f);;const _0x33eebd=_0x2e4a48['p']+_0x49a1e3(0x2913);;const _0x26aa06=_0x2e4a48['p']+_0x49a1e3(0x2628);;_0x4efa95['$inject']=[_0x49a1e3(0x1674),'$state','$location','$mdDialog','$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x1634),_0x49a1e3(0x1033),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'crudPermissions'];function _0x4efa95(_0x383992,_0x1508a8,_0x805d2b,_0x1db9c2,_0x4610ba,_0x5eec59,_0x357880,_0x430636,_0x39cc21,_0x166619,_0x2c9753,_0x405fcf,_0x419ce3,_0x4e1bcb){const _0x2e3c2a=_0x49a1e3,_0x1ad57e=this;_0x1ad57e['currentUser']=_0x2c9753['getCurrentUser'](),_0x1ad57e[_0x2e3c2a(0xbae)]=[],_0x1ad57e['setting']=_0x419ce3,_0x1ad57e[_0x2e3c2a(0x1947)]=_0x405fcf,_0x1ad57e[_0x2e3c2a(0x402)]=_0x4e1bcb,_0x1ad57e['hasModulePermissions']={},_0x1ad57e[_0x2e3c2a(0xccc)]=_0x1ad57e[_0x2e3c2a(0x28d6)]&&_0x1ad57e['setting'][_0x2e3c2a(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1ad57e[_0x2e3c2a(0x2021)]=_0x2e3c2a(0x1015),_0x1ad57e['deskAccount']=angular[_0x2e3c2a(0x289e)](_0x39cc21),_0x1ad57e[_0x2e3c2a(0x1634)]=_0x430636,_0x1ad57e['newDeskAccount']=![];!_0x1ad57e[_0x2e3c2a(0x1033)]&&(_0x1ad57e[_0x2e3c2a(0x1033)]={'type':_0x2e3c2a(0x158d),'authType':_0x2e3c2a(0x645),'serverUrl':_0x805d2b[_0x2e3c2a(0x48e)]()+_0x2e3c2a(0xe1f)+_0x805d2b[_0x2e3c2a(0x1e5d)]()+(_0x805d2b[_0x2e3c2a(0x23f2)]()?':'+_0x805d2b['port']():'')},_0x1ad57e[_0x2e3c2a(0x2021)]=_0x2e3c2a(0xd6b),_0x1ad57e[_0x2e3c2a(0x17cd)]=!![]);_0x1ad57e[_0x2e3c2a(0xd1f)]=_0x4ea813,_0x1ad57e[_0x2e3c2a(0x727)]=_0x5abfef,_0x1ad57e[_0x2e3c2a(0x2a4)]=_0x5764be,_0x1ad57e[_0x2e3c2a(0x1605)]=_0xefd58e,_0x1ad57e[_0x2e3c2a(0x16cb)]=_0x2dc68a;function _0x4ea813(){const _0x1e0e7e=_0x2e3c2a;_0x1ad57e[_0x1e0e7e(0xbae)]=[],_0x166619[_0x1e0e7e(0x1a5e)][_0x1e0e7e(0x2479)](_0x1ad57e[_0x1e0e7e(0x1033)])[_0x1e0e7e(0x15e7)][_0x1e0e7e(0x64a)](function(_0x5a1d54){const _0x1d39b0=_0x1e0e7e;_0x1ad57e['deskAccounts'][_0x1d39b0(0x1891)](_0x5a1d54[_0x1d39b0(0x14f8)]()),_0x357880[_0x1d39b0(0x1339)]({'title':_0x1d39b0(0x12ff),'msg':_0x1ad57e[_0x1d39b0(0x1033)][_0x1d39b0(0x2494)]?_0x1ad57e[_0x1d39b0(0x1033)]['name']+_0x1d39b0(0x258d):''}),_0x2dc68a(_0x5a1d54);})[_0x1e0e7e(0x20cd)](function(_0x3783b6){const _0x18c201=_0x1e0e7e;if(_0x3783b6['data']&&_0x3783b6['data']['errors']&&_0x3783b6[_0x18c201(0x1c52)]['errors'][_0x18c201(0x1b9e)]){_0x1ad57e[_0x18c201(0xbae)]=_0x3783b6[_0x18c201(0x1c52)][_0x18c201(0xbae)]||[{'message':_0x3783b6[_0x18c201(0x2915)](),'type':_0x18c201(0xcbd)}];for(let _0x2509c8=0x0;_0x2509c8<_0x3783b6[_0x18c201(0x1c52)][_0x18c201(0xbae)][_0x18c201(0x1b9e)];_0x2509c8+=0x1){_0x357880[_0x18c201(0x1bd0)]({'title':_0x3783b6[_0x18c201(0x1c52)][_0x18c201(0xbae)][_0x2509c8]['type'],'msg':_0x3783b6[_0x18c201(0x1c52)][_0x18c201(0xbae)][_0x2509c8][_0x18c201(0x18ca)]});}}else _0x357880['error']({'title':_0x3783b6[_0x18c201(0x10b3)]?_0x18c201(0x575)+_0x3783b6[_0x18c201(0x10b3)]+_0x18c201(0x21db)+_0x3783b6[_0x18c201(0x2115)]:_0x18c201(0xcbd),'msg':_0x3783b6['data']?JSON[_0x18c201(0x2317)](_0x3783b6[_0x18c201(0x1c52)][_0x18c201(0x18ca)]):_0x3783b6[_0x18c201(0x2915)]()});});}function _0x5abfef(){const _0x364efd=_0x2e3c2a;_0x1ad57e['errors']=[],_0x166619[_0x364efd(0x1a5e)]['update']({'id':_0x1ad57e[_0x364efd(0x1033)]['id']},_0x1ad57e[_0x364efd(0x1033)])['$promise'][_0x364efd(0x64a)](function(_0x46437e){const _0x292021=_0x364efd,_0x34698d=_0x28c606()[_0x292021(0x27bc)](_0x1ad57e['deskAccounts'],{'id':_0x46437e['id']});_0x34698d&&_0x28c606()['merge'](_0x34698d,_0x28c606()[_0x292021(0x27bb)](_0x46437e[_0x292021(0x14f8)](),_0x28c606()['keys'](_0x34698d))),_0x357880[_0x292021(0x1339)]({'title':_0x292021(0x230d),'msg':_0x1ad57e[_0x292021(0x1033)][_0x292021(0x2494)]?_0x1ad57e['deskAccount']['name']+'\x20has\x20been\x20saved!':''}),_0x2dc68a(_0x46437e);})['catch'](function(_0x24c0e4){const _0x10e069=_0x364efd;if(_0x24c0e4[_0x10e069(0x1c52)]&&_0x24c0e4['data']['errors']&&_0x24c0e4[_0x10e069(0x1c52)]['errors']['length']){_0x1ad57e['errors']=_0x24c0e4[_0x10e069(0x1c52)][_0x10e069(0xbae)]||[{'message':_0x24c0e4[_0x10e069(0x2915)](),'type':_0x10e069(0x1b9a)}];for(let _0x2eacd6=0x0;_0x2eacd6<_0x24c0e4[_0x10e069(0x1c52)][_0x10e069(0xbae)][_0x10e069(0x1b9e)];_0x2eacd6++){_0x357880[_0x10e069(0x1bd0)]({'title':_0x24c0e4[_0x10e069(0x1c52)][_0x10e069(0xbae)][_0x2eacd6][_0x10e069(0x2185)],'msg':_0x24c0e4[_0x10e069(0x1c52)]['errors'][_0x2eacd6][_0x10e069(0x18ca)]});}}else _0x357880[_0x10e069(0x1bd0)]({'title':_0x24c0e4[_0x10e069(0x10b3)]?_0x10e069(0x575)+_0x24c0e4[_0x10e069(0x10b3)]+_0x10e069(0x21db)+_0x24c0e4[_0x10e069(0x2115)]:_0x10e069(0x1b9a),'msg':_0x24c0e4[_0x10e069(0x1c52)]?JSON[_0x10e069(0x2317)](_0x24c0e4[_0x10e069(0x1c52)][_0x10e069(0x18ca)]):_0x24c0e4[_0x10e069(0x2915)]()});});}function _0x5764be(_0x15c10f){const _0x1311a9=_0x2e3c2a;_0x1ad57e[_0x1311a9(0xbae)]=[];const _0x1031bd=_0x1db9c2['confirm']()['title']('Are\x20you\x20sure?')[_0x1311a9(0x12b8)]('The\x20deskAccount\x20will\x20be\x20deleted.')['ariaLabel'](_0x1311a9(0x2506))['ok']('Delete')[_0x1311a9(0x101a)]('Cancel')[_0x1311a9(0x2283)](_0x15c10f);_0x1db9c2[_0x1311a9(0xa60)](_0x1031bd)[_0x1311a9(0x64a)](function(){const _0xb57323=_0x1311a9;_0x166619[_0xb57323(0x1a5e)][_0xb57323(0xabd)]({'id':_0x1ad57e[_0xb57323(0x1033)]['id']})['$promise']['then'](function(){const _0x3104b3=_0xb57323;_0x28c606()['remove'](_0x1ad57e['deskAccounts'],{'id':_0x1ad57e['deskAccount']['id']}),_0x357880['success']({'title':_0x3104b3(0x17d6),'msg':(_0x1ad57e[_0x3104b3(0x1033)][_0x3104b3(0x2494)]||_0x3104b3(0x1033))+_0x3104b3(0x1fa8)}),_0x2dc68a(_0x1ad57e[_0x3104b3(0x1033)]);})[_0xb57323(0x20cd)](function(_0x45e363){const _0x537587=_0xb57323;if(_0x45e363[_0x537587(0x1c52)]&&_0x45e363['data'][_0x537587(0xbae)]&&_0x45e363['data'][_0x537587(0xbae)][_0x537587(0x1b9e)]){_0x1ad57e[_0x537587(0xbae)]=_0x45e363[_0x537587(0x1c52)][_0x537587(0xbae)]||[{'message':_0x45e363[_0x537587(0x2915)](),'type':_0x537587(0x1cda)}];for(let _0x18acd8=0x0;_0x18acd8<_0x45e363[_0x537587(0x1c52)][_0x537587(0xbae)][_0x537587(0x1b9e)];_0x18acd8++){_0x357880[_0x537587(0x1bd0)]({'title':_0x45e363[_0x537587(0x1c52)][_0x537587(0xbae)][_0x18acd8][_0x537587(0x2185)],'msg':_0x45e363[_0x537587(0x1c52)][_0x537587(0xbae)][_0x18acd8]['message']});}}else _0x357880[_0x537587(0x1bd0)]({'title':_0x45e363[_0x537587(0x10b3)]?_0x537587(0x575)+_0x45e363[_0x537587(0x10b3)]+_0x537587(0x21db)+_0x45e363[_0x537587(0x2115)]:_0x537587(0x1cda),'msg':_0x45e363[_0x537587(0x1c52)]?JSON[_0x537587(0x2317)](_0x45e363[_0x537587(0x1c52)]['message']):_0x45e363[_0x537587(0x18ca)]||_0x45e363['toString']()});});},function(){});}function _0xefd58e(_0x9a48fc){return _0x9a48fc===null?undefined:new Date(_0x9a48fc);}function _0x2dc68a(_0x485072){const _0x5b2aa7=_0x2e3c2a;_0x1db9c2[_0x5b2aa7(0x268e)](_0x485072);}}const _0x2909ed=_0x4efa95;;const _0x46502c=_0x2e4a48['p']+_0x49a1e3(0x19b);;_0xd00eb6[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$window','$state',_0x49a1e3(0x2899),'$mdDialog','$document',_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x1634),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),'Auth',_0x49a1e3(0x1947),'setting'];function _0xd00eb6(_0x5aed64,_0x1c7023,_0x2589e3,_0x2bded6,_0x1d2591,_0x17b92c,_0x5bd4ec,_0x5f122a,_0xc89efe,_0x526a12,_0x35e626,_0x22fdd7,_0x2082e4,_0x2e646f,_0x24271d,_0x5caf32,_0x2da257){const _0x132a66=_0x49a1e3,_0x5c0a81=this;_0x5c0a81[_0x132a66(0x1947)]=_0x5caf32,_0x5c0a81[_0x132a66(0x28d6)]=_0x2da257,_0x5c0a81[_0x132a66(0x1d3d)]=_0x24271d[_0x132a66(0x808)](),_0x5c0a81['deskAccounts']=_0xc89efe||{'count':0x0,'rows':[]},_0x5c0a81[_0x132a66(0x16a8)]=_0x526a12,_0x5c0a81[_0x132a66(0x16b2)]=_0x35e626&&_0x35e626[_0x132a66(0xb90)]==0x1?_0x35e626['rows'][0x0]:null,_0x5c0a81[_0x132a66(0x402)]=_0x24271d[_0x132a66(0xa7e)](_0x5c0a81[_0x132a66(0x16b2)]?_0x5c0a81[_0x132a66(0x16b2)][_0x132a66(0x402)]:null),_0x5c0a81[_0x132a66(0x185d)]=_0x132a66(0x1634),_0x5c0a81[_0x132a66(0x300)]='',_0x5c0a81[_0x132a66(0x2748)]=null,_0x5c0a81['selectedDeskAccounts']=[],_0x5c0a81[_0x132a66(0x289a)]={'fields':_0x132a66(0x144),'limit':0xa,'page':0x1},_0x5c0a81[_0x132a66(0x9d4)]=_0x28c606()['keyBy']([{'option':'Integration_Tab','value':_0x132a66(0xfbd)},{'option':_0x132a66(0x1e21),'value':_0x132a66(0x1e4a)}],function(_0x298e4a){const _0x18c0e3=_0x132a66;return _0x28c606()[_0x18c0e3(0x1353)](_0x298e4a[_0x18c0e3(0x1096)],new RegExp('\x27','g'),'');}),_0x5c0a81[_0x132a66(0x2765)]=_0x28c606()[_0x132a66(0x161e)]([{'option':_0x132a66(0x1e26),'value':_0x132a66(0x21bc)}],function(_0x39c18c){const _0xe2affa=_0x132a66;return _0x28c606()[_0xe2affa(0x1353)](_0x39c18c[_0xe2affa(0x1096)],new RegExp('\x27','g'),'');}),_0x5c0a81[_0x132a66(0xff6)]=_0x543b72,_0x5c0a81[_0x132a66(0x1348)]=_0x427994,_0x5c0a81[_0x132a66(0x1262)]=_0x6b7177,_0x5c0a81[_0x132a66(0x1339)]=_0x5600bc,_0x5c0a81[_0x132a66(0x3aa)]=_0x2a4333,_0x5c0a81[_0x132a66(0x1962)]=_0x2bc465,_0x5c0a81[_0x132a66(0x2a4)]=_0x374f3b,_0x5c0a81[_0x132a66(0xcb2)]=_0x29b26f,_0x5c0a81[_0x132a66(0xb73)]=_0x1e9002,_0x5c0a81[_0x132a66(0x2347)]=_0x134644,_0x5c0a81[_0x132a66(0x1e65)]=_0x237b29;function _0x543b72(_0x55cf62){const _0x35e031=_0x132a66;_0x2589e3['go'](_0x35e031(0x2846),{'id':_0x55cf62['id'],'deskAccount':_0x55cf62,'crudPermissions':_0x5c0a81[_0x35e031(0x402)]});}function _0x427994(_0x2003fe){const _0x40ae8d=_0x132a66;return _0x22fdd7[_0x40ae8d(0x1a5e)]['getFields']({'id':_0x2003fe['id'],'test':!![]})[_0x40ae8d(0x15e7)][_0x40ae8d(0x64a)](function(){const _0x580933=_0x40ae8d;_0x2e646f['success']({'title':_0x580933(0xaf2),'msg':_0x580933(0x259b)});})['catch'](function(_0x2ea954){const _0x4bb7dc=_0x40ae8d;_0x2e646f[_0x4bb7dc(0x1bd0)]({'title':_0x4bb7dc(0xaf2),'msg':_0x2ea954[_0x4bb7dc(0x1c52)]?_0x2ea954[_0x4bb7dc(0x1c52)][_0x4bb7dc(0x18ca)]?_0x2ea954[_0x4bb7dc(0x1c52)][_0x4bb7dc(0x18ca)]:JSON[_0x4bb7dc(0x2317)](_0x2ea954['data']):_0x2ea954['toString']()});});}function _0x6b7177(_0x3e01c9,_0x4d515e){const _0x467e53=_0x132a66,_0x1f5dfa=_0x1d2591['confirm']()[_0x467e53(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()[_0x467e53(0xc01)](_0x467e53(0x1033))+'?')['htmlContent'](_0x467e53(0x50b)+(_0x3e01c9[_0x467e53(0x2494)]||_0x467e53(0x1033))+_0x467e53(0x26d0)+_0x467e53(0x4b8))[_0x467e53(0x213e)](_0x467e53(0x18bc))[_0x467e53(0x2283)](_0x4d515e)['ok']('OK')['cancel'](_0x467e53(0x18fd));_0x1d2591[_0x467e53(0xa60)](_0x1f5dfa)[_0x467e53(0x64a)](function(){_0x374f3b(_0x3e01c9);},function(){const _0x2372a8=_0x467e53;console['log'](_0x2372a8(0x18fd));});}let _0x31af14=!![],_0xd32a06=0x1;_0x5aed64[_0x132a66(0xc62)](_0x132a66(0x1cb9),function(_0x1b465f,_0x17b40f){const _0x2dfbc5=_0x132a66;_0x31af14?_0x5bd4ec(function(){_0x31af14=![];}):(!_0x17b40f&&(_0xd32a06=_0x5c0a81[_0x2dfbc5(0x289a)][_0x2dfbc5(0xc72)]),_0x1b465f!==_0x17b40f&&(_0x5c0a81[_0x2dfbc5(0x289a)][_0x2dfbc5(0xc72)]=0x1),!_0x1b465f&&(_0x5c0a81['query'][_0x2dfbc5(0xc72)]=_0xd32a06),_0x5c0a81[_0x2dfbc5(0x3aa)]());});function _0x5600bc(_0x113c43){const _0x3761c4=_0x132a66;_0x5c0a81[_0x3761c4(0x1634)]=_0x113c43||{'count':0x0,'rows':[]};}function _0x2a4333(){const _0x55956e=_0x132a66;_0x5c0a81[_0x55956e(0x289a)][_0x55956e(0x24f9)]=(_0x5c0a81['query'][_0x55956e(0xc72)]-0x1)*_0x5c0a81[_0x55956e(0x289a)][_0x55956e(0x25bb)],_0x24271d[_0x55956e(0x4de)]('admin')?_0x5c0a81[_0x55956e(0x1713)]=_0x22fdd7['intDeskAccount'][_0x55956e(0x896)](_0x5c0a81['query'],_0x5600bc)['$promise']:(_0x5c0a81[_0x55956e(0x289a)]['id']=_0x5c0a81[_0x55956e(0x16a8)]['id'],_0x5c0a81[_0x55956e(0x289a)]['section']='DeskAccounts',_0x5c0a81[_0x55956e(0x1713)]=_0x22fdd7[_0x55956e(0x16a8)][_0x55956e(0x2565)](_0x5c0a81[_0x55956e(0x289a)],_0x5600bc)[_0x55956e(0x15e7)]);}function _0x2bc465(_0x23b73e,_0x2135e6){const _0x39bf54=_0x132a66;_0x1d2591[_0x39bf54(0xa60)]({'controller':_0x39bf54(0x9b9),'controllerAs':'vm','templateUrl':_0x46502c,'parent':angular[_0x39bf54(0x1f81)](_0x17b92c['body']),'targetEvent':_0x23b73e,'clickOutsideToClose':!![],'locals':{'deskAccount':_0x2135e6,'deskAccounts':_0x5c0a81['deskAccounts'][_0x39bf54(0x28b8)],'license':_0x5c0a81['license'],'setting':_0x5c0a81[_0x39bf54(0x28d6)],'crudPermissions':_0x5c0a81[_0x39bf54(0x402)]}});}function _0x374f3b(_0x27d476){const _0x2db53d=_0x132a66;_0x22fdd7[_0x2db53d(0x1a5e)]['delete']({'id':_0x27d476['id']})[_0x2db53d(0x15e7)][_0x2db53d(0x64a)](function(){const _0x4de56d=_0x2db53d;_0x28c606()['remove'](_0x5c0a81[_0x4de56d(0x1634)][_0x4de56d(0x28b8)],{'id':_0x27d476['id']}),_0x5c0a81[_0x4de56d(0x1634)]['count']-=0x1,!_0x5c0a81[_0x4de56d(0x1634)]['rows']['length']&&_0x5c0a81[_0x4de56d(0x3aa)](),_0x2e646f[_0x4de56d(0x1339)]({'title':_0x28c606()['startCase']('DeskAccount')+_0x4de56d(0x2502),'msg':_0x27d476['name']?_0x27d476['name']+_0x4de56d(0x1fa8):''});})[_0x2db53d(0x20cd)](function(_0x172a67){const _0x1d8d4a=_0x2db53d;if(_0x172a67[_0x1d8d4a(0x1c52)]&&_0x172a67[_0x1d8d4a(0x1c52)][_0x1d8d4a(0xbae)]&&_0x172a67[_0x1d8d4a(0x1c52)][_0x1d8d4a(0xbae)]['length']){_0x5c0a81[_0x1d8d4a(0xbae)]=_0x172a67[_0x1d8d4a(0x1c52)][_0x1d8d4a(0xbae)]||[{'message':_0x172a67[_0x1d8d4a(0x2915)](),'type':'SYSTEM:DELETEintDeskAccount'}];for(let _0xaa60ba=0x0;_0xaa60ba<_0x172a67[_0x1d8d4a(0x1c52)]['errors'][_0x1d8d4a(0x1b9e)];_0xaa60ba++){_0x2e646f[_0x1d8d4a(0x1bd0)]({'title':_0x172a67['data'][_0x1d8d4a(0xbae)][_0xaa60ba][_0x1d8d4a(0x2185)],'msg':_0x172a67[_0x1d8d4a(0x1c52)]['errors'][_0xaa60ba][_0x1d8d4a(0x18ca)]});}}else _0x2e646f[_0x1d8d4a(0x1bd0)]({'title':_0x172a67[_0x1d8d4a(0x10b3)]?_0x1d8d4a(0x575)+_0x172a67[_0x1d8d4a(0x10b3)]+'\x20-\x20'+_0x172a67[_0x1d8d4a(0x2115)]:_0x1d8d4a(0x50a),'msg':_0x172a67[_0x1d8d4a(0x1c52)]?JSON[_0x1d8d4a(0x2317)](_0x172a67[_0x1d8d4a(0x1c52)][_0x1d8d4a(0x18ca)]):_0x172a67['message']||_0x172a67[_0x1d8d4a(0x2915)]()});});}function _0x29b26f(){const _0x307d01=_0x132a66,_0x27cc88=angular['copy'](_0x5c0a81[_0x307d01(0x2085)]);return _0x5c0a81[_0x307d01(0x2085)]=[],_0x27cc88;}function _0x1e9002(_0x554c34){const _0x1def82=_0x132a66,_0x28dcd5=_0x1d2591[_0x1def82(0x856)]()[_0x1def82(0x2021)](_0x1def82(0x14b0))[_0x1def82(0x33a)](_0x1def82(0x50b)+_0x5c0a81['selectedDeskAccounts'][_0x1def82(0x1b9e)]+'\x20selected'+_0x1def82(0x4b8))['ariaLabel'](_0x1def82(0x13a6))[_0x1def82(0x2283)](_0x554c34)['ok']('OK')[_0x1def82(0x101a)](_0x1def82(0x18fd));_0x1d2591[_0x1def82(0xa60)](_0x28dcd5)[_0x1def82(0x64a)](function(){const _0x4b513d=_0x1def82;_0x5c0a81['selectedDeskAccounts'][_0x4b513d(0x1397)](function(_0xe1df22){_0x374f3b(_0xe1df22);}),_0x5c0a81[_0x4b513d(0x2085)]=[];});}function _0x134644(){const _0x263fe8=_0x132a66;_0x5c0a81[_0x263fe8(0x2085)]=[];}function _0x237b29(){const _0x423377=_0x132a66;_0x5c0a81[_0x423377(0x2085)]=_0x5c0a81[_0x423377(0x1634)]['rows'];}}const _0x3fb507=_0xd00eb6;;const _0x1ba0f2=_0x2e4a48['p']+_0x49a1e3(0x1d0);;const _0x260369=_0x2e4a48['p']+'src/js/modules/main/apps/integrations/views/deskAccounts/edit/item/dialog.html/dialog.html';;_0x4376bc[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf)];function _0x4376bc(_0xfd1a68,_0x55614e,_0x4d0291,_0x333d3a,_0x18fe10){const _0x412e65=_0x49a1e3,_0x3bbf97=this;_0x3bbf97['currentUser']=_0x18fe10[_0x412e65(0x808)](),_0x3bbf97[_0x412e65(0x1033)]={},_0x3bbf97[_0x412e65(0x1482)]={},_0x3bbf97[_0x412e65(0x23a8)]=[],_0x3bbf97['selectedDeskConfiguration']=-0x1,_0x3bbf97['crudPermissions'],_0x3bbf97['init']=_0x2ac156,_0x3bbf97[_0x412e65(0x1633)]=_0x4cb217,_0x3bbf97['createOrEditDeskConfiguration']=_0xdab690,_0x3bbf97[_0x412e65(0xf67)]=_0x53af42,_0x3bbf97[_0x412e65(0x1677)]=[],_0x3bbf97[_0x412e65(0x193)]=_0x364713,_0x4d0291[_0x412e65(0xac8)][_0x412e65(0x896)]({'nolimit':!![],'sort':'name'})[_0x412e65(0x15e7)]['then'](function(_0x2456ae){const _0x4072ee=_0x412e65;_0x3bbf97[_0x4072ee(0x16a6)]=_0x2456ae[_0x4072ee(0x28b8)]?_0x2456ae[_0x4072ee(0x28b8)]:[];})[_0x412e65(0x20cd)](function(_0x59ca8c){const _0x5b8c7b=_0x412e65;_0x333d3a['error']({'title':_0x59ca8c[_0x5b8c7b(0x10b3)]?_0x5b8c7b(0x575)+_0x59ca8c[_0x5b8c7b(0x10b3)]+_0x5b8c7b(0x21db)+_0x59ca8c['statusText']:_0x5b8c7b(0x1738),'msg':_0x59ca8c['data']?JSON[_0x5b8c7b(0x2317)](_0x59ca8c['data']):_0x59ca8c[_0x5b8c7b(0x2915)]()});});function _0x364713(){const _0x47b45b=_0x412e65;_0x4d0291[_0x47b45b(0x16af)][_0x47b45b(0x1ac6)]({'id':_0x3bbf97[_0x47b45b(0x1482)]['id'],'ids':_0x3bbf97['selectedTags']})['$promise'][_0x47b45b(0x64a)](function(){const _0x12db75=_0x47b45b;_0x333d3a[_0x12db75(0x1339)]({'title':_0x12db75(0x5c0),'msg':_0x12db75(0x22eb)});})[_0x47b45b(0x20cd)](function(_0x45c691){const _0x159449=_0x47b45b;_0x333d3a['error']({'title':_0x45c691[_0x159449(0x10b3)]?'API:'+_0x45c691['status']+'\x20-\x20'+_0x45c691[_0x159449(0x2115)]:_0x159449(0x10e4),'msg':_0x45c691['data']?JSON[_0x159449(0x2317)](_0x45c691[_0x159449(0x1c52)]):_0x45c691[_0x159449(0x2915)]()});});}function _0x2ac156(_0x2c3f4c,_0x1a3fb6){const _0x11c879=_0x412e65;_0x3bbf97[_0x11c879(0x1033)]=_0x2c3f4c,_0x3bbf97[_0x11c879(0x402)]=typeof _0x1a3fb6!==_0x11c879(0x19a1)?_0x1a3fb6:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4d0291[_0x11c879(0x1a5e)][_0x11c879(0x340)]({'id':_0x3bbf97['deskAccount']['id'],'sort':_0x11c879(0x260c)})[_0x11c879(0x15e7)]['then'](function(_0x8e8d99){const _0x4b3f78=_0x11c879;return _0x3bbf97['configurations']=_0x8e8d99[_0x4b3f78(0x28b8)]?_0x8e8d99[_0x4b3f78(0x28b8)]:[],_0x3bbf97[_0x4b3f78(0x23a8)][_0x4b3f78(0x1b9e)]&&_0x3bbf97[_0x4b3f78(0x1633)](0x0),_0x4d0291['variable'][_0x4b3f78(0x896)]({'nolimit':!![],'sort':_0x4b3f78(0x2494)})['$promise'];})[_0x11c879(0x64a)](function(_0x314657){const _0x5a2141=_0x11c879;_0x3bbf97[_0x5a2141(0x145c)]=_0x314657['rows']?_0x314657[_0x5a2141(0x28b8)]:[],_0x3bbf97[_0x5a2141(0x2685)]=_0x28c606()[_0x5a2141(0x161e)](_0x3bbf97['variables'],'id');})[_0x11c879(0x20cd)](function(_0x50092b){const _0x37feb5=_0x11c879;_0x333d3a[_0x37feb5(0x1bd0)]({'title':_0x50092b['status']?_0x37feb5(0x575)+_0x50092b[_0x37feb5(0x10b3)]+_0x37feb5(0x21db)+_0x50092b[_0x37feb5(0x2115)]:_0x37feb5(0x1bdd),'msg':_0x50092b[_0x37feb5(0x1c52)]?JSON[_0x37feb5(0x2317)](_0x50092b[_0x37feb5(0x1c52)]):_0x50092b[_0x37feb5(0x2915)]()});});}function _0x4cb217(_0x520401){const _0x3d8ef2=_0x412e65;_0x3bbf97[_0x3d8ef2(0x1482)]=_0x3bbf97[_0x3d8ef2(0x23a8)][_0x520401],_0x3bbf97['selectedDeskConfiguration']=_0x520401,_0x4d0291['intDeskConfiguration'][_0x3d8ef2(0x241f)]({'id':_0x3bbf97[_0x3d8ef2(0x1482)]['id']})[_0x3d8ef2(0x15e7)][_0x3d8ef2(0x64a)](function(_0xbddaf5){const _0x57f993=_0x3d8ef2;return _0x3bbf97[_0x57f993(0x29b)]=_0xbddaf5[_0x57f993(0x28b8)]?_0xbddaf5[_0x57f993(0x28b8)]:[],_0x4d0291[_0x57f993(0x16af)][_0x57f993(0x1e33)]({'id':_0x3bbf97[_0x57f993(0x1482)]['id']})['$promise'];})[_0x3d8ef2(0x64a)](function(_0x510f0c){const _0x327130=_0x3d8ef2;return _0x3bbf97[_0x327130(0x24b6)]=_0x510f0c[_0x327130(0x28b8)]?_0x510f0c[_0x327130(0x28b8)]:[],_0x4d0291[_0x327130(0x16af)][_0x327130(0x5e0)]({'id':_0x3bbf97[_0x327130(0x1482)]['id']})[_0x327130(0x15e7)];})[_0x3d8ef2(0x64a)](function(_0x1ff5e4){const _0x481534=_0x3d8ef2;_0x3bbf97[_0x481534(0xf26)]=_0x1ff5e4[_0x481534(0x28b8)]?_0x1ff5e4[_0x481534(0x28b8)]:[];})['catch'](function(_0x1c2a91){const _0x38e528=_0x3d8ef2;_0x333d3a[_0x38e528(0x1bd0)]({'title':_0x1c2a91['status']?_0x38e528(0x575)+_0x1c2a91[_0x38e528(0x10b3)]+_0x38e528(0x21db)+_0x1c2a91[_0x38e528(0x2115)]:_0x38e528(0x15c1),'msg':_0x1c2a91[_0x38e528(0x1c52)]?JSON[_0x38e528(0x2317)](_0x1c2a91[_0x38e528(0x1c52)]):_0x1c2a91['toString']()});}),_0x4d0291[_0x3d8ef2(0x16af)]['getTags']({'id':_0x3bbf97[_0x3d8ef2(0x1482)]['id']})['$promise'][_0x3d8ef2(0x64a)](function(_0x11c838){const _0x497205=_0x3d8ef2;_0x3bbf97[_0x497205(0x1677)]=_0x11c838[_0x497205(0x28b8)]?_0x28c606()[_0x497205(0x1de5)](_0x11c838[_0x497205(0x28b8)],'id'):[];})[_0x3d8ef2(0x20cd)](function(_0x41cc83){const _0x3f65be=_0x3d8ef2;_0x333d3a[_0x3f65be(0x1bd0)]({'title':_0x41cc83[_0x3f65be(0x10b3)]?_0x3f65be(0x575)+_0x41cc83['status']+_0x3f65be(0x21db)+_0x41cc83[_0x3f65be(0x2115)]:'SYSTEM:GETTAGS','msg':_0x41cc83[_0x3f65be(0x1c52)]?JSON[_0x3f65be(0x2317)](_0x41cc83['data']):_0x41cc83[_0x3f65be(0x2915)]()});});}function _0xdab690(_0x36a9d2,_0x3e6979){const _0x23aa70=_0x412e65;_0xfd1a68[_0x23aa70(0xa60)]({'controller':_0x23aa70(0x1580),'controllerAs':'vm','templateUrl':_0x1ba0f2,'parent':angular['element'](_0x55614e[_0x23aa70(0xb49)]),'targetEvent':_0x36a9d2,'clickOutsideToClose':!![],'locals':{'deskConfiguration':_0x3e6979,'configurations':_0x3bbf97[_0x23aa70(0x23a8)],'license':null,'setting':null,'crudPermissions':_0x3bbf97[_0x23aa70(0x402)]}})[_0x23aa70(0x988)](function(){const _0x103b1a=_0x23aa70;_0x3bbf97[_0x103b1a(0x1633)](0x0);});}function _0x53af42(_0x547c71,_0x45533f){const _0x20c39a=_0x412e65,_0x308ea3=_0xfd1a68[_0x20c39a(0x856)]()['title'](_0x20c39a(0x214c))[_0x20c39a(0x33a)](''+(_0x45533f[_0x20c39a(0x2494)]||_0x20c39a(0x1482))+''+_0x20c39a(0x4b8))[_0x20c39a(0x213e)](_0x20c39a(0x2254))[_0x20c39a(0x2283)](_0x547c71)['ok']('OK')[_0x20c39a(0x101a)](_0x20c39a(0x18fd));_0xfd1a68[_0x20c39a(0xa60)](_0x308ea3)[_0x20c39a(0x64a)](function(){const _0x19ae00=_0x20c39a;_0x4d0291[_0x19ae00(0x16af)][_0x19ae00(0xabd)]({'id':_0x45533f['id']})[_0x19ae00(0x15e7)][_0x19ae00(0x64a)](function(){const _0x279b7b=_0x19ae00;_0x28c606()[_0x279b7b(0x21c7)](_0x3bbf97[_0x279b7b(0x23a8)],{'id':_0x45533f['id']}),_0x333d3a['success']({'title':'DeskConfiguration\x20deleted!','msg':_0x45533f['name']?_0x45533f[_0x279b7b(0x2494)]+_0x279b7b(0x1fa8):''});})[_0x19ae00(0x20cd)](function(_0x3e2019){const _0x599c46=_0x19ae00;_0x333d3a[_0x599c46(0x1bd0)]({'title':_0x3e2019[_0x599c46(0x10b3)]?_0x599c46(0x575)+_0x3e2019[_0x599c46(0x10b3)]+_0x599c46(0x21db)+_0x3e2019[_0x599c46(0x2115)]:_0x599c46(0x2925),'msg':_0x3e2019[_0x599c46(0x1c52)]?JSON[_0x599c46(0x2317)](_0x3e2019[_0x599c46(0x1c52)]):_0x3e2019[_0x599c46(0x2915)]()});})[_0x19ae00(0x988)](function(){const _0x11905b=_0x19ae00;_0x3bbf97[_0x11905b(0x1633)](0x0);});},function(){const _0xeb9dbc=_0x20c39a;console[_0xeb9dbc(0x9b4)](_0xeb9dbc(0x18fd));});}_0x3bbf97[_0x412e65(0x2639)]=[],_0x3bbf97[_0x412e65(0x22b1)]=_0x36785b,_0x3bbf97[_0x412e65(0xa6a)]=_0x5d6ff2,_0x3bbf97[_0x412e65(0x17fe)]=_0x20248a;function _0x36785b(_0x79c81b,_0x2b3526){const _0x3324e9=_0x412e65;_0xfd1a68['show']({'controller':_0x3324e9(0x72b),'controllerAs':'vm','templateUrl':_0x260369,'parent':angular[_0x3324e9(0x1f81)](_0x55614e['body']),'targetEvent':_0x79c81b,'clickOutsideToClose':!![],'locals':{'type':_0x3324e9(0x25bc),'item':_0x2b3526,'items':_0x3bbf97['subjects'],'configuration':_0x3bbf97[_0x3324e9(0x1482)],'account':_0x3bbf97[_0x3324e9(0x1033)],'license':null,'setting':null,'crudPermissions':_0x3bbf97[_0x3324e9(0x402)]}});}function _0x2a2c52(_0x36e5f2){const _0x3f38f6=_0x412e65;_0x4d0291[_0x3f38f6(0x1d68)]['delete']({'id':_0x36e5f2['id']})[_0x3f38f6(0x15e7)][_0x3f38f6(0x64a)](function(){const _0x3baf92=_0x3f38f6;_0x28c606()[_0x3baf92(0x21c7)](_0x3bbf97[_0x3baf92(0x29b)],{'id':_0x36e5f2['id']}),_0x333d3a[_0x3baf92(0x1339)]({'title':_0x3baf92(0x1d99),'msg':_0x3baf92(0x1a0c)});})['catch'](function(_0x1201a4){const _0x6aaf79=_0x3f38f6;_0x333d3a[_0x6aaf79(0x1bd0)]({'title':_0x1201a4['status']?_0x6aaf79(0x575)+_0x1201a4[_0x6aaf79(0x10b3)]+_0x6aaf79(0x21db)+_0x1201a4[_0x6aaf79(0x2115)]:_0x6aaf79(0x12a9),'msg':_0x1201a4[_0x6aaf79(0x1c52)]?JSON[_0x6aaf79(0x2317)](_0x1201a4['data']):_0x1201a4[_0x6aaf79(0x2915)]()});});}function _0x5d6ff2(_0x136c53,_0x46cb1c){const _0x329141=_0x412e65,_0x28343b=_0xfd1a68[_0x329141(0x856)]()[_0x329141(0x2021)](_0x329141(0x189a))['htmlContent']('Subject'+'\x20will\x20be\x20deleted.')[_0x329141(0x213e)](_0x329141(0x204f))[_0x329141(0x2283)](_0x136c53)['ok']('OK')[_0x329141(0x101a)](_0x329141(0x18fd));_0xfd1a68['show'](_0x28343b)[_0x329141(0x64a)](function(){_0x2a2c52(_0x46cb1c);},function(){const _0x343d9b=_0x329141;console[_0x343d9b(0x9b4)](_0x343d9b(0x18fd));});}function _0x20248a(_0xc0d1d1){const _0x4268f6=_0x412e65,_0x144dc1=_0xfd1a68['confirm']()[_0x4268f6(0x2021)](_0x4268f6(0x1cb4))['htmlContent'](_0x4268f6(0x50b)+_0x3bbf97['selectedSubjects'][_0x4268f6(0x1b9e)]+'\x20selected'+_0x4268f6(0x4b8))['ariaLabel'](_0x4268f6(0x24f6))[_0x4268f6(0x2283)](_0xc0d1d1)['ok']('OK')[_0x4268f6(0x101a)](_0x4268f6(0x18fd));_0xfd1a68[_0x4268f6(0xa60)](_0x144dc1)[_0x4268f6(0x64a)](function(){const _0x22f9a1=_0x4268f6;_0x3bbf97['selectedSubjects'][_0x22f9a1(0x1397)](function(_0x5657c6){_0x2a2c52(_0x5657c6);}),_0x3bbf97['selectedSubjects']=[];});}_0x3bbf97[_0x412e65(0x21c1)]=[],_0x3bbf97['createOrEditDescription']=_0x770aab,_0x3bbf97[_0x412e65(0x183a)]=_0x2289a4,_0x3bbf97['deleteSelectedDescriptions']=_0x252ff6;function _0x770aab(_0x570987,_0x3d1272){const _0x369f35=_0x412e65;_0xfd1a68['show']({'controller':_0x369f35(0x72b),'controllerAs':'vm','templateUrl':_0x260369,'parent':angular[_0x369f35(0x1f81)](_0x55614e[_0x369f35(0xb49)]),'targetEvent':_0x570987,'clickOutsideToClose':!![],'locals':{'type':_0x369f35(0x23c3),'item':_0x3d1272,'items':_0x3bbf97['descriptions'],'configuration':_0x3bbf97[_0x369f35(0x1482)],'account':_0x3bbf97[_0x369f35(0x1033)],'license':null,'setting':null,'crudPermissions':_0x3bbf97[_0x369f35(0x402)]}});}function _0x244fb1(_0x3d914d){const _0xb5d731=_0x412e65;_0x4d0291['intDeskField'][_0xb5d731(0xabd)]({'id':_0x3d914d['id']})[_0xb5d731(0x15e7)][_0xb5d731(0x64a)](function(){const _0x15ef4d=_0xb5d731;_0x28c606()['remove'](_0x3bbf97[_0x15ef4d(0x24b6)],{'id':_0x3d914d['id']}),_0x333d3a[_0x15ef4d(0x1339)]({'title':_0x15ef4d(0x166a),'msg':_0x15ef4d(0x213f)});})[_0xb5d731(0x20cd)](function(_0x46a517){const _0x4061d2=_0xb5d731;_0x333d3a['error']({'title':_0x46a517[_0x4061d2(0x10b3)]?_0x4061d2(0x575)+_0x46a517[_0x4061d2(0x10b3)]+_0x4061d2(0x21db)+_0x46a517[_0x4061d2(0x2115)]:_0x4061d2(0x12a9),'msg':_0x46a517[_0x4061d2(0x1c52)]?JSON[_0x4061d2(0x2317)](_0x46a517['data']):_0x46a517['toString']()});});}function _0x2289a4(_0x29a275,_0x46929){const _0x35eddb=_0x412e65,_0x27a64e=_0xfd1a68['confirm']()['title'](_0x35eddb(0x80e))[_0x35eddb(0x33a)](_0x35eddb(0x1bb6)+'\x20will\x20be\x20deleted.')[_0x35eddb(0x213e)]('delete\x20description')['targetEvent'](_0x29a275)['ok']('OK')['cancel'](_0x35eddb(0x18fd));_0xfd1a68[_0x35eddb(0xa60)](_0x27a64e)[_0x35eddb(0x64a)](function(){_0x244fb1(_0x46929);},function(){const _0x52e5b9=_0x35eddb;console[_0x52e5b9(0x9b4)](_0x52e5b9(0x18fd));});}function _0x252ff6(_0x22934d){const _0x3b2f69=_0x412e65,_0x4bd361=_0xfd1a68[_0x3b2f69(0x856)]()[_0x3b2f69(0x2021)](_0x3b2f69(0xbe4))[_0x3b2f69(0x33a)](_0x3b2f69(0x50b)+_0x3bbf97['selectedDescriptions']['length']+_0x3b2f69(0x163e)+'\x20will\x20be\x20deleted.')[_0x3b2f69(0x213e)](_0x3b2f69(0x531))['targetEvent'](_0x22934d)['ok']('OK')['cancel'](_0x3b2f69(0x18fd));_0xfd1a68[_0x3b2f69(0xa60)](_0x4bd361)[_0x3b2f69(0x64a)](function(){const _0x34d211=_0x3b2f69;_0x3bbf97[_0x34d211(0x21c1)][_0x34d211(0x1397)](function(_0x3d5ee6){_0x244fb1(_0x3d5ee6);}),_0x3bbf97[_0x34d211(0x21c1)]=[];});}_0x3bbf97['selectedFields']=[],_0x3bbf97[_0x412e65(0x569)]=_0x89931b,_0x3bbf97[_0x412e65(0x1436)]=_0x3e3356,_0x3bbf97[_0x412e65(0x1e89)]=_0x44923;function _0x89931b(_0x210e26,_0x30dc06){const _0x431127=_0x412e65;_0xfd1a68[_0x431127(0xa60)]({'controller':_0x431127(0x72b),'controllerAs':'vm','templateUrl':_0x260369,'parent':angular[_0x431127(0x1f81)](_0x55614e['body']),'targetEvent':_0x210e26,'clickOutsideToClose':!![],'locals':{'type':_0x431127(0xc26),'item':_0x30dc06,'items':_0x3bbf97['fields'],'configuration':_0x3bbf97[_0x431127(0x1482)],'account':_0x3bbf97[_0x431127(0x1033)],'license':null,'setting':null,'crudPermissions':_0x3bbf97[_0x431127(0x402)]}});}function _0x134da5(_0x20c26a){const _0x212e93=_0x412e65;_0x4d0291['intDeskField'][_0x212e93(0xabd)]({'id':_0x20c26a['id']})['$promise'][_0x212e93(0x64a)](function(){const _0x198363=_0x212e93;_0x28c606()[_0x198363(0x21c7)](_0x3bbf97[_0x198363(0xf26)],{'id':_0x20c26a['id']}),_0x333d3a['success']({'title':_0x198363(0x13e7),'msg':'Field\x20has\x20been\x20deleted!'});})[_0x212e93(0x20cd)](function(_0x56ac79){const _0x228bf1=_0x212e93;_0x333d3a[_0x228bf1(0x1bd0)]({'title':_0x56ac79[_0x228bf1(0x10b3)]?_0x228bf1(0x575)+_0x56ac79['status']+_0x228bf1(0x21db)+_0x56ac79['statusText']:_0x228bf1(0x12a9),'msg':_0x56ac79['data']?JSON['stringify'](_0x56ac79[_0x228bf1(0x1c52)]):_0x56ac79['toString']()});});}function _0x3e3356(_0x59fda5,_0x1972e7){const _0x1b4337=_0x412e65,_0x3590da=_0xfd1a68['confirm']()[_0x1b4337(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')['htmlContent'](_0x1b4337(0x1a56)+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x1b4337(0x22d7))[_0x1b4337(0x2283)](_0x59fda5)['ok']('OK')[_0x1b4337(0x101a)](_0x1b4337(0x18fd));_0xfd1a68[_0x1b4337(0xa60)](_0x3590da)[_0x1b4337(0x64a)](function(){_0x134da5(_0x1972e7);},function(){const _0x22d865=_0x1b4337;console[_0x22d865(0x9b4)](_0x22d865(0x18fd));});}function _0x44923(_0x1d5a63){const _0x1a31d2=_0x412e65,_0x30a5e8=_0xfd1a68['confirm']()[_0x1a31d2(0x2021)](_0x1a31d2(0x17bf))[_0x1a31d2(0x33a)](_0x1a31d2(0x50b)+_0x3bbf97[_0x1a31d2(0xa3a)][_0x1a31d2(0x1b9e)]+_0x1a31d2(0x163e)+_0x1a31d2(0x4b8))['ariaLabel'](_0x1a31d2(0x11bc))[_0x1a31d2(0x2283)](_0x1d5a63)['ok']('OK')['cancel'](_0x1a31d2(0x18fd));_0xfd1a68['show'](_0x30a5e8)[_0x1a31d2(0x64a)](function(){const _0x5d6d4e=_0x1a31d2;_0x3bbf97[_0x5d6d4e(0xa3a)][_0x5d6d4e(0x1397)](function(_0x324701){_0x134da5(_0x324701);}),_0x3bbf97[_0x5d6d4e(0xa3a)]=[];});}}const _0x5ca288=_0x4376bc;;_0x180fad[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location','$mdDialog','$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),'configurations','deskConfiguration','api',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x180fad(_0x4a3748,_0x114ad6,_0x75dbc,_0x382e46,_0xb4f236,_0x448794,_0x1a5aad,_0x24e84c,_0x55031f,_0x11aceb,_0x59918d,_0x1b8964,_0x7e3dfc,_0x4e9bf5){const _0x14bd6f=_0x49a1e3,_0x22ab50=this;_0x22ab50[_0x14bd6f(0x1d3d)]=_0x59918d[_0x14bd6f(0x808)](),_0x22ab50[_0x14bd6f(0xbae)]=[],_0x22ab50[_0x14bd6f(0x28d6)]=_0x7e3dfc,_0x22ab50['license']=_0x1b8964,_0x22ab50['crudPermissions']=_0x4e9bf5,_0x22ab50[_0x14bd6f(0x6c2)]={},_0x22ab50[_0x14bd6f(0xccc)]=_0x22ab50['setting']&&_0x22ab50['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x22ab50[_0x14bd6f(0x2021)]=_0x14bd6f(0x9df),_0x22ab50[_0x14bd6f(0x1482)]=angular['copy'](_0x55031f),_0x22ab50[_0x14bd6f(0x23a8)]=_0x24e84c,_0x22ab50[_0x14bd6f(0x323)]=![];!_0x22ab50[_0x14bd6f(0x1482)]&&(_0x22ab50[_0x14bd6f(0x1482)]={'channel':_0x14bd6f(0x227c),'type':_0x14bd6f(0x12a4)},_0x22ab50[_0x14bd6f(0x2021)]=_0x14bd6f(0x9cb),_0x22ab50[_0x14bd6f(0x323)]=!![]);_0x22ab50['addNewDeskConfiguration']=_0x42a97e,_0x22ab50[_0x14bd6f(0x224f)]=_0x2271ef,_0x22ab50[_0x14bd6f(0xf67)]=_0x545472,_0x22ab50[_0x14bd6f(0x1605)]=_0x52f8c7,_0x22ab50['closeDialog']=_0x472231;function _0x42a97e(){const _0x53218d=_0x14bd6f;_0x22ab50[_0x53218d(0xbae)]=[],_0x11aceb[_0x53218d(0x1a5e)]['addConfiguration']({'id':_0x114ad6['params']['id']},_0x22ab50[_0x53218d(0x1482)])[_0x53218d(0x15e7)][_0x53218d(0x64a)](function(_0x7790f8){const _0xc45ab7=_0x53218d;_0x22ab50['configurations'][_0xc45ab7(0x1891)](_0x7790f8[_0xc45ab7(0x14f8)]()),_0x1a5aad[_0xc45ab7(0x1339)]({'title':_0xc45ab7(0x36a),'msg':_0x22ab50['deskConfiguration'][_0xc45ab7(0x2494)]?_0x22ab50['deskConfiguration'][_0xc45ab7(0x2494)]+_0xc45ab7(0x258d):''}),_0x472231(_0x7790f8);})[_0x53218d(0x20cd)](function(_0x1cfa2a){const _0x101dbd=_0x53218d;if(_0x1cfa2a[_0x101dbd(0x1c52)]&&_0x1cfa2a[_0x101dbd(0x1c52)]['errors']&&_0x1cfa2a[_0x101dbd(0x1c52)][_0x101dbd(0xbae)][_0x101dbd(0x1b9e)]){_0x22ab50[_0x101dbd(0xbae)]=_0x1cfa2a[_0x101dbd(0x1c52)][_0x101dbd(0xbae)]||[{'message':_0x1cfa2a[_0x101dbd(0x2915)](),'type':_0x101dbd(0x1903)}];for(let _0xfcc237=0x0;_0xfcc237<_0x1cfa2a['data'][_0x101dbd(0xbae)][_0x101dbd(0x1b9e)];_0xfcc237+=0x1){_0x1a5aad[_0x101dbd(0x1bd0)]({'title':_0x1cfa2a['data'][_0x101dbd(0xbae)][_0xfcc237][_0x101dbd(0x2185)],'msg':_0x1cfa2a[_0x101dbd(0x1c52)][_0x101dbd(0xbae)][_0xfcc237][_0x101dbd(0x18ca)]});}}else _0x1a5aad['error']({'title':_0x1cfa2a[_0x101dbd(0x10b3)]?_0x101dbd(0x575)+_0x1cfa2a[_0x101dbd(0x10b3)]+_0x101dbd(0x21db)+_0x1cfa2a[_0x101dbd(0x2115)]:_0x101dbd(0x1903),'msg':_0x1cfa2a[_0x101dbd(0x1c52)]?JSON[_0x101dbd(0x2317)](_0x1cfa2a[_0x101dbd(0x1c52)]['message']):_0x1cfa2a['toString']()});});}function _0x2271ef(){const _0x53e189=_0x14bd6f;_0x22ab50[_0x53e189(0xbae)]=[],_0x11aceb['intDeskConfiguration'][_0x53e189(0x2603)]({'id':_0x22ab50[_0x53e189(0x1482)]['id']},_0x22ab50[_0x53e189(0x1482)])[_0x53e189(0x15e7)][_0x53e189(0x64a)](function(_0x1dccc7){const _0x39287f=_0x53e189,_0x54207f=_0x28c606()[_0x39287f(0x27bc)](_0x22ab50[_0x39287f(0x23a8)],{'id':_0x1dccc7['id']});_0x54207f&&_0x28c606()[_0x39287f(0x14fe)](_0x54207f,_0x28c606()[_0x39287f(0x27bb)](_0x1dccc7[_0x39287f(0x14f8)](),_0x28c606()['keys'](_0x54207f))),_0x1a5aad[_0x39287f(0x1339)]({'title':_0x39287f(0x6d2),'msg':_0x22ab50[_0x39287f(0x1482)][_0x39287f(0x2494)]?_0x22ab50[_0x39287f(0x1482)]['name']+_0x39287f(0x271):''}),_0x472231(_0x1dccc7);})[_0x53e189(0x20cd)](function(_0x3ea083){const _0x5f34e5=_0x53e189;if(_0x3ea083[_0x5f34e5(0x1c52)]&&_0x3ea083[_0x5f34e5(0x1c52)]['errors']&&_0x3ea083[_0x5f34e5(0x1c52)][_0x5f34e5(0xbae)][_0x5f34e5(0x1b9e)]){_0x22ab50[_0x5f34e5(0xbae)]=_0x3ea083['data'][_0x5f34e5(0xbae)]||[{'message':_0x3ea083[_0x5f34e5(0x2915)](),'type':_0x5f34e5(0x23eb)}];for(let _0x1cfa20=0x0;_0x1cfa20<_0x3ea083[_0x5f34e5(0x1c52)]['errors'][_0x5f34e5(0x1b9e)];_0x1cfa20++){_0x1a5aad[_0x5f34e5(0x1bd0)]({'title':_0x3ea083[_0x5f34e5(0x1c52)][_0x5f34e5(0xbae)][_0x1cfa20][_0x5f34e5(0x2185)],'msg':_0x3ea083['data'][_0x5f34e5(0xbae)][_0x1cfa20][_0x5f34e5(0x18ca)]});}}else _0x1a5aad[_0x5f34e5(0x1bd0)]({'title':_0x3ea083[_0x5f34e5(0x10b3)]?_0x5f34e5(0x575)+_0x3ea083[_0x5f34e5(0x10b3)]+_0x5f34e5(0x21db)+_0x3ea083[_0x5f34e5(0x2115)]:_0x5f34e5(0x23eb),'msg':_0x3ea083[_0x5f34e5(0x1c52)]?JSON[_0x5f34e5(0x2317)](_0x3ea083[_0x5f34e5(0x1c52)]['message']):_0x3ea083[_0x5f34e5(0x2915)]()});});}function _0x545472(_0x2ad106){const _0x28b8a2=_0x14bd6f;_0x22ab50['errors']=[];const _0x394656=_0x382e46[_0x28b8a2(0x856)]()['title']('Are\x20you\x20sure?')[_0x28b8a2(0x12b8)](_0x28b8a2(0x2d4))[_0x28b8a2(0x213e)](_0x28b8a2(0x1d08))['ok'](_0x28b8a2(0x2664))[_0x28b8a2(0x101a)](_0x28b8a2(0x1dc6))[_0x28b8a2(0x2283)](_0x2ad106);_0x382e46[_0x28b8a2(0xa60)](_0x394656)[_0x28b8a2(0x64a)](function(){const _0x2da2f7=_0x28b8a2;_0x11aceb[_0x2da2f7(0x16af)][_0x2da2f7(0xabd)]({'id':_0x22ab50['deskConfiguration']['id']})['$promise']['then'](function(){const _0x14c73e=_0x2da2f7;_0x28c606()['remove'](_0x22ab50['configurations'],{'id':_0x22ab50[_0x14c73e(0x1482)]['id']}),_0x1a5aad[_0x14c73e(0x1339)]({'title':_0x14c73e(0xa45),'msg':(_0x22ab50[_0x14c73e(0x1482)]['name']||_0x14c73e(0x1482))+_0x14c73e(0x1fa8)}),_0x472231(_0x22ab50['deskConfiguration']);})[_0x2da2f7(0x20cd)](function(_0x3ca48f){const _0x46a0c3=_0x2da2f7;if(_0x3ca48f[_0x46a0c3(0x1c52)]&&_0x3ca48f[_0x46a0c3(0x1c52)][_0x46a0c3(0xbae)]&&_0x3ca48f['data'][_0x46a0c3(0xbae)]['length']){_0x22ab50[_0x46a0c3(0xbae)]=_0x3ca48f[_0x46a0c3(0x1c52)][_0x46a0c3(0xbae)]||[{'message':_0x3ca48f['toString'](),'type':_0x46a0c3(0x506)}];for(let _0x27f587=0x0;_0x27f587<_0x3ca48f['data']['errors'][_0x46a0c3(0x1b9e)];_0x27f587++){_0x1a5aad[_0x46a0c3(0x1bd0)]({'title':_0x3ca48f[_0x46a0c3(0x1c52)]['errors'][_0x27f587][_0x46a0c3(0x2185)],'msg':_0x3ca48f[_0x46a0c3(0x1c52)]['errors'][_0x27f587]['message']});}}else _0x1a5aad[_0x46a0c3(0x1bd0)]({'title':_0x3ca48f[_0x46a0c3(0x10b3)]?_0x46a0c3(0x575)+_0x3ca48f[_0x46a0c3(0x10b3)]+_0x46a0c3(0x21db)+_0x3ca48f['statusText']:_0x46a0c3(0x506),'msg':_0x3ca48f['data']?JSON[_0x46a0c3(0x2317)](_0x3ca48f[_0x46a0c3(0x1c52)]['message']):_0x3ca48f['message']||_0x3ca48f[_0x46a0c3(0x2915)]()});});},function(){});}function _0x52f8c7(_0x58ddb9){return _0x58ddb9===null?undefined:new Date(_0x58ddb9);}function _0x472231(_0x16f45d){const _0x51fd88=_0x14bd6f;_0x382e46[_0x51fd88(0x268e)](_0x16f45d);}}const _0x13de07=_0x180fad;;_0x5ac1ea[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x680),_0x49a1e3(0x9a4),_0x49a1e3(0x23cb),'item','account','type','api',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x5ac1ea(_0x8e3cd1,_0x1ed6f4,_0xadcf4a,_0x2911c8,_0x58ad53,_0x31f554,_0x3293fe,_0x55c191,_0x20b27d,_0x4ab987,_0x11da68,_0xaba90f,_0x361e36){const _0x253a2e=_0x49a1e3,_0x6d5423=this;_0x6d5423['currentUser']=_0xaba90f[_0x253a2e(0x808)](),_0x6d5423[_0x253a2e(0xbae)]=[],_0x6d5423[_0x253a2e(0x2021)]=_0x253a2e(0x1bfd)+_0x28c606()[_0x253a2e(0x2201)](_0x4ab987),_0x6d5423[_0x253a2e(0x1656)]=angular[_0x253a2e(0x289e)](_0x55c191),_0x6d5423[_0x253a2e(0x23cb)]=_0x3293fe,_0x6d5423[_0x253a2e(0x2185)]=_0x4ab987,_0x6d5423['crudPermissions']=_0x361e36,_0x6d5423[_0x253a2e(0xd33)]=![];!_0x6d5423[_0x253a2e(0x1656)]&&(_0x6d5423['item']={'type':_0x253a2e(0x108c)},_0x6d5423[_0x253a2e(0x1656)][_0x28c606()['capitalize'](_0x4ab987)+'Id']=_0x31f554['id'],_0x6d5423['title']=_0x253a2e(0x1ad9)+_0x28c606()[_0x253a2e(0x2201)](_0x4ab987),_0x6d5423[_0x253a2e(0xd33)]=!![]);_0x6d5423[_0x253a2e(0x2889)]=_0xf890d3,_0x6d5423[_0x253a2e(0x1dbc)]=_0x28d2a0,_0x6d5423[_0x253a2e(0x126d)]=_0x34cc64,_0x6d5423[_0x253a2e(0x14d)]=_0x45392b,_0x6d5423[_0x253a2e(0x16cb)]=_0x5e05d0,_0x11da68['variable'][_0x253a2e(0x896)]({'nolimit':!![]})[_0x253a2e(0x15e7)][_0x253a2e(0x64a)](function(_0xf267e){const _0x975653=_0x253a2e;return _0x6d5423[_0x975653(0x145c)]=_0xf267e['rows']?_0xf267e['rows']:[],_0x11da68[_0x975653(0x1445)][_0x975653(0xa81)]()[_0x975653(0x15e7)];})['then'](function(_0x126d08){const _0x5de17c=_0x253a2e;return _0x6d5423[_0x5de17c(0x109a)]=_0x28c606()['difference'](_0x28c606()['keys'](_0x126d08),['$promise',_0x5de17c(0x19ba),_0x5de17c(0x2378),'updatedAt',_0x5de17c(0x2785)]),_0x6d5423[_0x5de17c(0x109a)]['push'](_0x5de17c(0xdd4)),_0x11da68[_0x5de17c(0x1002)]['describe']()[_0x5de17c(0x15e7)];})['then'](function(_0x4b23cd){const _0x44747b=_0x253a2e;_0x6d5423[_0x44747b(0xdae)]=_0x28c606()[_0x44747b(0xde7)](_0x28c606()[_0x44747b(0x1ec6)](_0x4b23cd),['$promise',_0x44747b(0x19ba),_0x44747b(0x2378),'updatedAt',_0x44747b(0x2785)]),_0x6d5423[_0x44747b(0xdae)][_0x44747b(0x1954)](_0x44747b(0xdd4));})[_0x253a2e(0x20cd)](function(_0x5ab82a){const _0x294ee1=_0x253a2e;_0x58ad53[_0x294ee1(0x1bd0)]({'title':_0x5ab82a['status']?_0x294ee1(0x575)+_0x5ab82a[_0x294ee1(0x10b3)]+_0x294ee1(0x21db)+_0x5ab82a[_0x294ee1(0x2115)]:_0x294ee1(0x195a),'msg':_0x5ab82a[_0x294ee1(0x1c52)]?JSON[_0x294ee1(0x2317)](_0x5ab82a[_0x294ee1(0x1c52)]):_0x5ab82a[_0x294ee1(0x2915)]()});}),_0x11da68[_0x253a2e(0x1a5e)][_0x253a2e(0x5e0)]({'id':_0x20b27d['id'],'ticketType':_0x31f554[_0x253a2e(0x1545)]?_0x31f554['ticketType']:undefined})[_0x253a2e(0x15e7)]['then'](function(_0x310395){const _0x208528=_0x253a2e;_0x6d5423['accountConnected']=!![],_0x6d5423[_0x208528(0xf26)]=_0x310395[_0x208528(0x28b8)]?_0x310395[_0x208528(0x28b8)]:[],_0x6d5423[_0x208528(0x1656)][_0x208528(0x197)]&&(_0x6d5423[_0x208528(0x1753)]=_0x28c606()[_0x208528(0x27bc)](_0x6d5423['fields'],{'id':_0x6d5423[_0x208528(0x1656)]['idField']}));})['catch'](function(_0x53b8b2){const _0x3b766f=_0x253a2e;_0x6d5423[_0x3b766f(0x854)]=![],console[_0x3b766f(0x1bd0)](_0x53b8b2);});function _0xf890d3(){const _0x1cfa12=_0x253a2e;_0x6d5423[_0x1cfa12(0xbae)]=[],_0x6d5423[_0x1cfa12(0x1753)]&&(_0x6d5423[_0x1cfa12(0x1656)]['idField']=_0x6d5423[_0x1cfa12(0x1753)]['id'],_0x6d5423[_0x1cfa12(0x1656)][_0x1cfa12(0x25fc)]=_0x6d5423[_0x1cfa12(0x1753)][_0x1cfa12(0x2494)],_0x6d5423[_0x1cfa12(0x1656)]['customField']=_0x6d5423[_0x1cfa12(0x1753)][_0x1cfa12(0x1ad6)]),_0x11da68[_0x1cfa12(0x1d68)]['save'](_0x6d5423[_0x1cfa12(0x1656)])[_0x1cfa12(0x15e7)][_0x1cfa12(0x64a)](function(_0x170cd7){const _0x244f66=_0x1cfa12;_0x6d5423[_0x244f66(0x23cb)][_0x244f66(0x1891)](_0x170cd7),_0x58ad53[_0x244f66(0x1339)]({'title':_0x28c606()[_0x244f66(0xd56)](_0x4ab987)+_0x244f66(0xe0b),'msg':_0x28c606()[_0x244f66(0xd56)](_0x4ab987)+_0x244f66(0x258d)}),_0x5e05d0();})[_0x1cfa12(0x20cd)](function(_0x3bf23c){const _0x5e3e7=_0x1cfa12;console['error'](_0x3bf23c),_0x6d5423['errors']=_0x3bf23c[_0x5e3e7(0x1c52)][_0x5e3e7(0xbae)]||[{'message':_0x3bf23c[_0x5e3e7(0x2915)](),'type':'api.item.save'}];});}function _0x28d2a0(){const _0x274d9b=_0x253a2e;_0x6d5423[_0x274d9b(0xbae)]=[],_0x6d5423[_0x274d9b(0x1753)]&&(_0x6d5423[_0x274d9b(0x1656)]['idField']=_0x6d5423[_0x274d9b(0x1753)]['id'],_0x6d5423[_0x274d9b(0x1656)][_0x274d9b(0x25fc)]=_0x6d5423['customField']['name'],_0x6d5423[_0x274d9b(0x1656)]['customField']=_0x6d5423[_0x274d9b(0x1753)][_0x274d9b(0x1ad6)]),_0x11da68[_0x274d9b(0x1d68)][_0x274d9b(0x2603)]({'id':_0x6d5423[_0x274d9b(0x1656)]['id']},_0x6d5423[_0x274d9b(0x1656)])['$promise'][_0x274d9b(0x64a)](function(_0x495340){const _0x2a164c=_0x274d9b,_0x3e0227=_0x28c606()['find'](_0x6d5423[_0x2a164c(0x23cb)],{'id':_0x495340['id']});_0x3e0227&&_0x28c606()['merge'](_0x3e0227,_0x495340),_0x58ad53['success']({'title':_0x28c606()['capitalize'](_0x4ab987)+_0x2a164c(0x2776),'msg':_0x28c606()['capitalize'](_0x4ab987)+_0x2a164c(0x271)}),_0x5e05d0();})[_0x274d9b(0x20cd)](function(_0x47d690){const _0x33b3cf=_0x274d9b;console[_0x33b3cf(0x1bd0)](_0x47d690),_0x6d5423['errors']=_0x47d690[_0x33b3cf(0x1c52)][_0x33b3cf(0xbae)]||[{'message':_0x47d690[_0x33b3cf(0x2915)](),'type':'api.intItem.update'}];});}function _0x34cc64(_0xf82ba5){const _0x129601=_0x253a2e;_0x6d5423[_0x129601(0xbae)]=[];const _0x480346=_0x2911c8['confirm']()[_0x129601(0x2021)](_0x129601(0x103a))[_0x129601(0x12b8)]('The\x20'+_0x4ab987+_0x129601(0x4b8))[_0x129601(0x213e)](_0x129601(0x1f2e)+_0x28c606()['capitalize'](_0x4ab987))['ok'](_0x129601(0x2664))[_0x129601(0x101a)]('Cancel')[_0x129601(0x2283)](_0xf82ba5);_0x2911c8[_0x129601(0xa60)](_0x480346)['then'](function(){const _0x18c071=_0x129601;_0x11da68['intDeskField'][_0x18c071(0xabd)]({'id':_0x6d5423['item']['id']})[_0x18c071(0x15e7)][_0x18c071(0x64a)](function(){const _0x442547=_0x18c071;_0x28c606()[_0x442547(0x21c7)](_0x6d5423[_0x442547(0x23cb)],{'id':_0x6d5423[_0x442547(0x1656)]['id']}),_0x58ad53[_0x442547(0x1339)]({'title':_0x28c606()[_0x442547(0xd56)](_0x4ab987)+'\x20properly\x20deleted!','msg':_0x28c606()[_0x442547(0xd56)](_0x4ab987)+_0x442547(0x1fa8)}),_0x5e05d0();})[_0x18c071(0x20cd)](function(_0x40e700){const _0x351bdc=_0x18c071;console['error'](_0x40e700),_0x6d5423[_0x351bdc(0xbae)]=_0x40e700[_0x351bdc(0x1c52)]['errors']||[{'message':_0x40e700[_0x351bdc(0x2915)](),'type':_0x351bdc(0x27aa)}];});},function(){});}function _0x45392b(){const _0x3b201d=_0x253a2e;return _0x6d5423[_0x3b201d(0x1656)][_0x3b201d(0x1299)]!==undefined?_0x6d5423[_0x3b201d(0x1656)][_0x3b201d(0x1299)]:_0x3b201d(0xfae);}function _0x5e05d0(){_0x2911c8['hide']();}}const _0x2c751c=_0x5ac1ea;;_0x456aac['$inject']=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog',_0x49a1e3(0x1373),'$translate',_0x49a1e3(0x1947),'setting',_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1033),'userProfileSection'];function _0x456aac(_0x5cdb10,_0xc9a386,_0x31c06a,_0x142296,_0x43dc24,_0x461f1f,_0x163557,_0x5213e9,_0x25c372,_0x1679c9,_0x5ee214,_0x5de635){const _0x12ffc1=_0x49a1e3,_0x100cd6=this;_0x100cd6[_0x12ffc1(0x1d3d)]=_0x1679c9[_0x12ffc1(0x808)](),_0x100cd6[_0x12ffc1(0x1947)]=_0x461f1f,_0x100cd6['setting']=_0x163557,_0x100cd6[_0x12ffc1(0xccc)]=_0x100cd6[_0x12ffc1(0x28d6)][_0x12ffc1(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x100cd6[_0x12ffc1(0xb36)]=_0xc9a386[_0x12ffc1(0x48e)]()+'://'+_0xc9a386[_0x12ffc1(0x1e5d)](),_0x100cd6['deskAccount']=_0x5ee214||_0x5cdb10[_0x12ffc1(0x1b48)][_0x12ffc1(0x1033)]||{},_0x100cd6['userProfileSection']=_0x5de635&&_0x5de635[_0x12ffc1(0xb90)]==0x1?_0x5de635['rows'][0x0]:null,_0x100cd6[_0x12ffc1(0x402)]=_0x1679c9[_0x12ffc1(0xa7e)](_0x100cd6['userProfileSection']?_0x100cd6[_0x12ffc1(0x16b2)]['crudPermissions']:null),_0x100cd6[_0x12ffc1(0x6c2)]={},_0x100cd6[_0x12ffc1(0x197c)]=_0x5cdb10[_0x12ffc1(0x1b48)]['tab']||0x0,_0x100cd6['alert']=_0x25c372[_0x12ffc1(0x772)],_0x100cd6[_0x12ffc1(0x63c)]=_0x42df79,_0x100cd6['saveDeskAccount']=_0xa86bff;function _0x42df79(){const _0x453324=_0x12ffc1;_0x5cdb10['go'](_0x453324(0x1d22),{},{'reload':_0x453324(0x1d22)});}function _0xa86bff(){const _0x146d33=_0x12ffc1;_0x5213e9[_0x146d33(0x1a5e)][_0x146d33(0x2603)]({'id':_0x100cd6['deskAccount']['id']},_0x100cd6['deskAccount'])['$promise'][_0x146d33(0x64a)](function(){const _0x5390f9=_0x146d33;_0x25c372[_0x5390f9(0x1339)]({'title':'DeskAccount\x20updated!','msg':_0x100cd6['deskAccount'][_0x5390f9(0x2494)]?_0x100cd6[_0x5390f9(0x1033)][_0x5390f9(0x2494)]+_0x5390f9(0x2032):''});})['catch'](function(_0x52200e){const _0xfe29e8=_0x146d33;_0x25c372[_0xfe29e8(0x1bd0)]({'title':_0x52200e[_0xfe29e8(0x10b3)]?'API:'+_0x52200e[_0xfe29e8(0x10b3)]+_0xfe29e8(0x21db)+_0x52200e[_0xfe29e8(0x2115)]:_0xfe29e8(0xad0),'msg':_0x52200e['data']?JSON[_0xfe29e8(0x2317)](_0x52200e[_0xfe29e8(0x1c52)]):_0x52200e[_0xfe29e8(0x2915)]()});});}}const _0x534075=_0x456aac;;_0x2c5677[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0xb1e),'dynamics365Account','api',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting',_0x49a1e3(0x402)];function _0x2c5677(_0x363144,_0x2ef72a,_0x32c3f0,_0x2e5d6a,_0x86a8ce,_0x4c9fe3,_0x1e46e8,_0x1d44e9,_0x3b99be,_0x2108f5,_0x1876f9,_0x47c645,_0x154687,_0x204952){const _0xc0fe1c=_0x49a1e3,_0x4fa993=this;_0x4fa993[_0xc0fe1c(0x1d3d)]=_0x1876f9[_0xc0fe1c(0x808)](),_0x4fa993[_0xc0fe1c(0xbae)]=[],_0x4fa993[_0xc0fe1c(0x28d6)]=_0x154687,_0x4fa993[_0xc0fe1c(0x1947)]=_0x47c645,_0x4fa993['crudPermissions']=_0x204952,_0x4fa993[_0xc0fe1c(0x6c2)]={},_0x4fa993[_0xc0fe1c(0xccc)]=_0x4fa993[_0xc0fe1c(0x28d6)]&&_0x4fa993[_0xc0fe1c(0x28d6)][_0xc0fe1c(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4fa993[_0xc0fe1c(0x2021)]=_0xc0fe1c(0x3fe),_0x4fa993['dynamics365Account']=angular[_0xc0fe1c(0x289e)](_0x3b99be),_0x4fa993[_0xc0fe1c(0xb1e)]=_0x1d44e9,_0x4fa993[_0xc0fe1c(0xbb1)]=![];!_0x4fa993[_0xc0fe1c(0x2015)]&&(_0x4fa993['dynamics365Account']={'serverUrl':_0x32c3f0['protocol']()+_0xc0fe1c(0xe1f)+_0x32c3f0[_0xc0fe1c(0x1e5d)]()+(_0x32c3f0['port']()?':'+_0x32c3f0[_0xc0fe1c(0x23f2)]():'')},_0x4fa993[_0xc0fe1c(0x2021)]=_0xc0fe1c(0xf9e),_0x4fa993[_0xc0fe1c(0xbb1)]=!![]);_0x4fa993['addNewDynamics365Account']=_0x4aeffc,_0x4fa993[_0xc0fe1c(0x159a)]=_0x50235d,_0x4fa993['deleteDynamics365Account']=_0x5a28ef,_0x4fa993[_0xc0fe1c(0x1605)]=_0x3b59cc,_0x4fa993['closeDialog']=_0x1bf3d2;function _0x4aeffc(){const _0x260e25=_0xc0fe1c;_0x4fa993[_0x260e25(0xbae)]=[],_0x2108f5['intDynamics365Account'][_0x260e25(0x2479)](_0x4fa993[_0x260e25(0x2015)])[_0x260e25(0x15e7)][_0x260e25(0x64a)](function(_0x5bfb35){const _0x1b28d8=_0x260e25;_0x4fa993['dynamics365Accounts']['unshift'](_0x5bfb35[_0x1b28d8(0x14f8)]()),_0x1e46e8[_0x1b28d8(0x1339)]({'title':_0x1b28d8(0x2255),'msg':_0x4fa993[_0x1b28d8(0x2015)][_0x1b28d8(0x2494)]?_0x4fa993[_0x1b28d8(0x2015)]['name']+_0x1b28d8(0x258d):''}),_0x1bf3d2(_0x5bfb35);})[_0x260e25(0x20cd)](function(_0x52fd1a){const _0x24ed4f=_0x260e25;if(_0x52fd1a[_0x24ed4f(0x1c52)]&&_0x52fd1a[_0x24ed4f(0x1c52)]['errors']&&_0x52fd1a[_0x24ed4f(0x1c52)][_0x24ed4f(0xbae)][_0x24ed4f(0x1b9e)]){_0x4fa993[_0x24ed4f(0xbae)]=_0x52fd1a['data'][_0x24ed4f(0xbae)]||[{'message':_0x52fd1a[_0x24ed4f(0x2915)](),'type':_0x24ed4f(0x1d61)}];for(let _0x127957=0x0;_0x127957<_0x52fd1a[_0x24ed4f(0x1c52)][_0x24ed4f(0xbae)][_0x24ed4f(0x1b9e)];_0x127957+=0x1){_0x1e46e8[_0x24ed4f(0x1bd0)]({'title':_0x52fd1a[_0x24ed4f(0x1c52)]['errors'][_0x127957][_0x24ed4f(0x2185)],'msg':_0x52fd1a[_0x24ed4f(0x1c52)][_0x24ed4f(0xbae)][_0x127957][_0x24ed4f(0x18ca)]});}}else _0x1e46e8[_0x24ed4f(0x1bd0)]({'title':_0x52fd1a['status']?'API:'+_0x52fd1a['status']+_0x24ed4f(0x21db)+_0x52fd1a[_0x24ed4f(0x2115)]:_0x24ed4f(0x1d61),'msg':_0x52fd1a['data']?JSON['stringify'](_0x52fd1a[_0x24ed4f(0x1c52)]['message']):_0x52fd1a[_0x24ed4f(0x2915)]()});});}function _0x50235d(){const _0x4c5aee=_0xc0fe1c;_0x4fa993[_0x4c5aee(0xbae)]=[],_0x2108f5[_0x4c5aee(0xf5f)][_0x4c5aee(0x2603)]({'id':_0x4fa993[_0x4c5aee(0x2015)]['id']},_0x4fa993[_0x4c5aee(0x2015)])[_0x4c5aee(0x15e7)][_0x4c5aee(0x64a)](function(_0x37709c){const _0x4c15b2=_0x4c5aee,_0x43be20=_0x28c606()[_0x4c15b2(0x27bc)](_0x4fa993[_0x4c15b2(0xb1e)],{'id':_0x37709c['id']});_0x43be20&&_0x28c606()['merge'](_0x43be20,_0x28c606()[_0x4c15b2(0x27bb)](_0x37709c[_0x4c15b2(0x14f8)](),_0x28c606()['keys'](_0x43be20))),_0x1e46e8[_0x4c15b2(0x1339)]({'title':_0x4c15b2(0x632),'msg':_0x4fa993[_0x4c15b2(0x2015)][_0x4c15b2(0x2494)]?_0x4fa993['dynamics365Account']['name']+_0x4c15b2(0x271):''}),_0x1bf3d2(_0x37709c);})['catch'](function(_0xc0142c){const _0x134d5f=_0x4c5aee;if(_0xc0142c['data']&&_0xc0142c['data'][_0x134d5f(0xbae)]&&_0xc0142c[_0x134d5f(0x1c52)][_0x134d5f(0xbae)][_0x134d5f(0x1b9e)]){_0x4fa993['errors']=_0xc0142c['data'][_0x134d5f(0xbae)]||[{'message':_0xc0142c['toString'](),'type':_0x134d5f(0x205b)}];for(let _0x32f735=0x0;_0x32f735<_0xc0142c['data'][_0x134d5f(0xbae)][_0x134d5f(0x1b9e)];_0x32f735++){_0x1e46e8[_0x134d5f(0x1bd0)]({'title':_0xc0142c[_0x134d5f(0x1c52)][_0x134d5f(0xbae)][_0x32f735]['type'],'msg':_0xc0142c[_0x134d5f(0x1c52)][_0x134d5f(0xbae)][_0x32f735][_0x134d5f(0x18ca)]});}}else _0x1e46e8[_0x134d5f(0x1bd0)]({'title':_0xc0142c[_0x134d5f(0x10b3)]?_0x134d5f(0x575)+_0xc0142c['status']+_0x134d5f(0x21db)+_0xc0142c[_0x134d5f(0x2115)]:_0x134d5f(0x205b),'msg':_0xc0142c[_0x134d5f(0x1c52)]?JSON[_0x134d5f(0x2317)](_0xc0142c[_0x134d5f(0x1c52)][_0x134d5f(0x18ca)]):_0xc0142c[_0x134d5f(0x2915)]()});});}function _0x5a28ef(_0x2491f3){const _0x24c924=_0xc0fe1c;_0x4fa993['errors']=[];const _0x5e3026=_0x2e5d6a[_0x24c924(0x856)]()[_0x24c924(0x2021)]('Are\x20you\x20sure?')[_0x24c924(0x12b8)](_0x24c924(0x1431))[_0x24c924(0x213e)]('Delete\x20Dynamics365Account')['ok']('Delete')[_0x24c924(0x101a)](_0x24c924(0x1dc6))[_0x24c924(0x2283)](_0x2491f3);_0x2e5d6a['show'](_0x5e3026)['then'](function(){const _0x200c99=_0x24c924;_0x2108f5[_0x200c99(0xf5f)][_0x200c99(0xabd)]({'id':_0x4fa993['dynamics365Account']['id']})[_0x200c99(0x15e7)][_0x200c99(0x64a)](function(){const _0x6a835f=_0x200c99;_0x28c606()[_0x6a835f(0x21c7)](_0x4fa993[_0x6a835f(0xb1e)],{'id':_0x4fa993[_0x6a835f(0x2015)]['id']}),_0x1e46e8[_0x6a835f(0x1339)]({'title':_0x6a835f(0x76d),'msg':(_0x4fa993['dynamics365Account'][_0x6a835f(0x2494)]||_0x6a835f(0x2015))+_0x6a835f(0x1fa8)}),_0x1bf3d2(_0x4fa993[_0x6a835f(0x2015)]);})['catch'](function(_0x2b3dfe){const _0x71f1cb=_0x200c99;if(_0x2b3dfe[_0x71f1cb(0x1c52)]&&_0x2b3dfe[_0x71f1cb(0x1c52)][_0x71f1cb(0xbae)]&&_0x2b3dfe[_0x71f1cb(0x1c52)]['errors'][_0x71f1cb(0x1b9e)]){_0x4fa993['errors']=_0x2b3dfe[_0x71f1cb(0x1c52)][_0x71f1cb(0xbae)]||[{'message':_0x2b3dfe[_0x71f1cb(0x2915)](),'type':'api.intDynamics365Account.delete'}];for(let _0x47e033=0x0;_0x47e033<_0x2b3dfe[_0x71f1cb(0x1c52)]['errors'][_0x71f1cb(0x1b9e)];_0x47e033++){_0x1e46e8[_0x71f1cb(0x1bd0)]({'title':_0x2b3dfe[_0x71f1cb(0x1c52)][_0x71f1cb(0xbae)][_0x47e033][_0x71f1cb(0x2185)],'msg':_0x2b3dfe[_0x71f1cb(0x1c52)][_0x71f1cb(0xbae)][_0x47e033][_0x71f1cb(0x18ca)]});}}else _0x1e46e8[_0x71f1cb(0x1bd0)]({'title':_0x2b3dfe['status']?_0x71f1cb(0x575)+_0x2b3dfe[_0x71f1cb(0x10b3)]+_0x71f1cb(0x21db)+_0x2b3dfe[_0x71f1cb(0x2115)]:'api.intDynamics365Account.delete','msg':_0x2b3dfe[_0x71f1cb(0x1c52)]?JSON[_0x71f1cb(0x2317)](_0x2b3dfe[_0x71f1cb(0x1c52)][_0x71f1cb(0x18ca)]):_0x2b3dfe['message']||_0x2b3dfe[_0x71f1cb(0x2915)]()});});},function(){});}function _0x3b59cc(_0xce3223){return _0xce3223===null?undefined:new Date(_0xce3223);}function _0x1bf3d2(_0x53e40b){const _0x4bd2c9=_0xc0fe1c;_0x2e5d6a[_0x4bd2c9(0x268e)](_0x53e40b);}}const _0x2a7c26=_0x2c5677;;const _0x32624d=_0x2e4a48['p']+_0x49a1e3(0x2db);;_0x4ad186[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog','$document',_0x49a1e3(0x20d4),'$translate',_0x49a1e3(0xb1e),'userProfile',_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6)];function _0x4ad186(_0x56ac5b,_0x59c50b,_0x30b132,_0x3f6eff,_0x237bea,_0x54bcfc,_0x5d8a5f,_0x4c2b1f,_0x42a309,_0x5b9662,_0x59533a,_0xa2a855,_0x5503eb,_0x39ba12,_0x1ff37c,_0x357a9c,_0x41a4dc){const _0x2bc064=_0x49a1e3,_0x43b43a=this;_0x43b43a[_0x2bc064(0x1947)]=_0x357a9c,_0x43b43a[_0x2bc064(0x28d6)]=_0x41a4dc,_0x43b43a[_0x2bc064(0x1d3d)]=_0x1ff37c[_0x2bc064(0x808)](),_0x43b43a[_0x2bc064(0xb1e)]=_0x42a309||{'count':0x0,'rows':[]},_0x43b43a[_0x2bc064(0x16a8)]=_0x5b9662,_0x43b43a[_0x2bc064(0x16b2)]=_0x59533a&&_0x59533a['count']==0x1?_0x59533a[_0x2bc064(0x28b8)][0x0]:null,_0x43b43a[_0x2bc064(0x402)]=_0x1ff37c[_0x2bc064(0xa7e)](_0x43b43a[_0x2bc064(0x16b2)]?_0x43b43a[_0x2bc064(0x16b2)]['crudPermissions']:null),_0x43b43a[_0x2bc064(0x185d)]=_0x2bc064(0xb1e),_0x43b43a[_0x2bc064(0x300)]='',_0x43b43a['listOrderAsc']=null,_0x43b43a['selectedDynamics365Accounts']=[],_0x43b43a[_0x2bc064(0x289a)]={'fields':_0x2bc064(0x15e1),'limit':0xa,'page':0x1},_0x43b43a[_0x2bc064(0xff6)]=_0xb3cf94,_0x43b43a[_0x2bc064(0x1348)]=_0x266795,_0x43b43a[_0x2bc064(0x1262)]=_0x534448,_0x43b43a[_0x2bc064(0x1339)]=_0x2e08f4,_0x43b43a[_0x2bc064(0x1ae4)]=_0x14ae14,_0x43b43a['createOrEditDynamics365Account']=_0x140d1d,_0x43b43a['deleteDynamics365Account']=_0x4f73f8,_0x43b43a[_0x2bc064(0x1bb9)]=_0x1a72bf,_0x43b43a['deleteSelectedDynamics365Accounts']=_0x3b1a95,_0x43b43a[_0x2bc064(0x12af)]=_0x107ce8,_0x43b43a[_0x2bc064(0xd22)]=_0x4779fc;function _0xb3cf94(_0x1095b1){const _0xceb467=_0x2bc064;_0x30b132['go'](_0xceb467(0x22ae),{'id':_0x1095b1['id'],'dynamics365Account':_0x1095b1,'crudPermissions':_0x43b43a[_0xceb467(0x402)]});}function _0x266795(_0x449fba){const _0x40c363=_0x2bc064;return _0xa2a855['intDynamics365Account'][_0x40c363(0x5e0)]({'id':_0x449fba['id'],'test':!![]})[_0x40c363(0x15e7)][_0x40c363(0x64a)](function(){const _0x266cd3=_0x40c363;_0x39ba12[_0x266cd3(0x1339)]({'title':_0x266cd3(0x2476),'msg':'Connection\x20succeded!'});})[_0x40c363(0x20cd)](function(_0x20492b){const _0x2e2344=_0x40c363;_0x39ba12[_0x2e2344(0x1bd0)]({'title':_0x2e2344(0x2476),'msg':_0x20492b[_0x2e2344(0x1c52)]?_0x20492b[_0x2e2344(0x1c52)][_0x2e2344(0x18ca)]?_0x20492b['data'][_0x2e2344(0x18ca)]:JSON[_0x2e2344(0x2317)](_0x20492b[_0x2e2344(0x1c52)]):_0x20492b[_0x2e2344(0x2915)]()});});}function _0x534448(_0x13585d,_0x1314ca){const _0x3b0c4c=_0x2bc064,_0x28ccdb=_0x237bea[_0x3b0c4c(0x856)]()[_0x3b0c4c(0x2021)](_0x3b0c4c(0x1231)+_0x28c606()['startCase'](_0x3b0c4c(0x2015))+'?')[_0x3b0c4c(0x33a)](''+(_0x13585d['name']||_0x3b0c4c(0x2015))+_0x3b0c4c(0x26d0)+_0x3b0c4c(0x4b8))[_0x3b0c4c(0x213e)](_0x3b0c4c(0xbad))[_0x3b0c4c(0x2283)](_0x1314ca)['ok']('OK')['cancel'](_0x3b0c4c(0x18fd));_0x237bea[_0x3b0c4c(0xa60)](_0x28ccdb)[_0x3b0c4c(0x64a)](function(){_0x4f73f8(_0x13585d);},function(){const _0x32c102=_0x3b0c4c;console[_0x32c102(0x9b4)](_0x32c102(0x18fd));});}let _0xef284e=!![],_0x3958ec=0x1;_0x56ac5b[_0x2bc064(0xc62)]('vm.query.filter',function(_0x596926,_0x5ebf1c){const _0x47442a=_0x2bc064;_0xef284e?_0x5d8a5f(function(){_0xef284e=![];}):(!_0x5ebf1c&&(_0x3958ec=_0x43b43a[_0x47442a(0x289a)][_0x47442a(0xc72)]),_0x596926!==_0x5ebf1c&&(_0x43b43a[_0x47442a(0x289a)][_0x47442a(0xc72)]=0x1),!_0x596926&&(_0x43b43a[_0x47442a(0x289a)]['page']=_0x3958ec),_0x43b43a[_0x47442a(0x1ae4)]());});function _0x2e08f4(_0x5d9794){const _0x1197ea=_0x2bc064;_0x43b43a[_0x1197ea(0xb1e)]=_0x5d9794||{'count':0x0,'rows':[]};}function _0x14ae14(){const _0x1b437c=_0x2bc064;_0x43b43a['query']['offset']=(_0x43b43a['query'][_0x1b437c(0xc72)]-0x1)*_0x43b43a[_0x1b437c(0x289a)][_0x1b437c(0x25bb)],_0x1ff37c[_0x1b437c(0x4de)](_0x1b437c(0x333))?_0x43b43a[_0x1b437c(0x1713)]=_0xa2a855['intDynamics365Account']['get'](_0x43b43a[_0x1b437c(0x289a)],_0x2e08f4)[_0x1b437c(0x15e7)]:(_0x43b43a[_0x1b437c(0x289a)]['id']=_0x43b43a[_0x1b437c(0x16a8)]['id'],_0x43b43a['query'][_0x1b437c(0xa21)]=_0x1b437c(0xd60),_0x43b43a[_0x1b437c(0x1713)]=_0xa2a855[_0x1b437c(0x16a8)][_0x1b437c(0x2565)](_0x43b43a[_0x1b437c(0x289a)],_0x2e08f4)[_0x1b437c(0x15e7)]);}function _0x140d1d(_0x44ca16,_0x43dcea){const _0x11c67f=_0x2bc064;_0x237bea['show']({'controller':'CreateOrEditDynamics365AccountDialogController','controllerAs':'vm','templateUrl':_0x32624d,'parent':angular[_0x11c67f(0x1f81)](_0x54bcfc[_0x11c67f(0xb49)]),'targetEvent':_0x44ca16,'clickOutsideToClose':!![],'locals':{'dynamics365Account':_0x43dcea,'dynamics365Accounts':_0x43b43a[_0x11c67f(0xb1e)][_0x11c67f(0x28b8)],'license':_0x43b43a['license'],'setting':_0x43b43a[_0x11c67f(0x28d6)],'crudPermissions':_0x43b43a[_0x11c67f(0x402)]}});}function _0x4f73f8(_0x30be88){const _0x48a3d7=_0x2bc064;_0xa2a855[_0x48a3d7(0xf5f)][_0x48a3d7(0xabd)]({'id':_0x30be88['id']})[_0x48a3d7(0x15e7)][_0x48a3d7(0x64a)](function(){const _0x1b2575=_0x48a3d7;_0x28c606()[_0x1b2575(0x21c7)](_0x43b43a['dynamics365Accounts'][_0x1b2575(0x28b8)],{'id':_0x30be88['id']}),_0x43b43a[_0x1b2575(0xb1e)][_0x1b2575(0xb90)]-=0x1,!_0x43b43a[_0x1b2575(0xb1e)]['rows']['length']&&_0x43b43a[_0x1b2575(0x1ae4)](),_0x39ba12[_0x1b2575(0x1339)]({'title':_0x28c606()[_0x1b2575(0xc01)](_0x1b2575(0x39e))+_0x1b2575(0x2502),'msg':_0x30be88[_0x1b2575(0x2494)]?_0x30be88[_0x1b2575(0x2494)]+'\x20has\x20been\x20deleted!':''});})[_0x48a3d7(0x20cd)](function(_0x18eb6e){const _0x1af6b9=_0x48a3d7;if(_0x18eb6e['data']&&_0x18eb6e[_0x1af6b9(0x1c52)]['errors']&&_0x18eb6e[_0x1af6b9(0x1c52)][_0x1af6b9(0xbae)][_0x1af6b9(0x1b9e)]){_0x43b43a['errors']=_0x18eb6e[_0x1af6b9(0x1c52)]['errors']||[{'message':_0x18eb6e[_0x1af6b9(0x2915)](),'type':'SYSTEM:DELETEintDynamics365Account'}];for(let _0x4bd5c7=0x0;_0x4bd5c7<_0x18eb6e[_0x1af6b9(0x1c52)][_0x1af6b9(0xbae)]['length'];_0x4bd5c7++){_0x39ba12[_0x1af6b9(0x1bd0)]({'title':_0x18eb6e['data'][_0x1af6b9(0xbae)][_0x4bd5c7][_0x1af6b9(0x2185)],'msg':_0x18eb6e['data'][_0x1af6b9(0xbae)][_0x4bd5c7]['message']});}}else _0x39ba12[_0x1af6b9(0x1bd0)]({'title':_0x18eb6e[_0x1af6b9(0x10b3)]?_0x1af6b9(0x575)+_0x18eb6e[_0x1af6b9(0x10b3)]+_0x1af6b9(0x21db)+_0x18eb6e[_0x1af6b9(0x2115)]:'SYSTEM:DELETEintDynamics365Account','msg':_0x18eb6e['data']?JSON[_0x1af6b9(0x2317)](_0x18eb6e[_0x1af6b9(0x1c52)]['message']):_0x18eb6e['message']||_0x18eb6e[_0x1af6b9(0x2915)]()});});}function _0x1a72bf(){const _0x2610a1=_0x2bc064,_0x219759=angular[_0x2610a1(0x289e)](_0x43b43a[_0x2610a1(0x151f)]);return _0x43b43a[_0x2610a1(0x151f)]=[],_0x219759;}function _0x3b1a95(_0x3e1c02){const _0x5a14e3=_0x2bc064,_0x493162=_0x237bea[_0x5a14e3(0x856)]()[_0x5a14e3(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20dynamics365Accounts?')['htmlContent'](''+_0x43b43a[_0x5a14e3(0x151f)]['length']+_0x5a14e3(0x163e)+_0x5a14e3(0x4b8))[_0x5a14e3(0x213e)](_0x5a14e3(0x829))['targetEvent'](_0x3e1c02)['ok']('OK')[_0x5a14e3(0x101a)]('CANCEL');_0x237bea['show'](_0x493162)[_0x5a14e3(0x64a)](function(){const _0x57d7db=_0x5a14e3;_0x43b43a[_0x57d7db(0x151f)][_0x57d7db(0x1397)](function(_0x1d32e2){_0x4f73f8(_0x1d32e2);}),_0x43b43a[_0x57d7db(0x151f)]=[];});}function _0x107ce8(){_0x43b43a['selectedDynamics365Accounts']=[];}function _0x4779fc(){const _0x4f1b4b=_0x2bc064;_0x43b43a[_0x4f1b4b(0x151f)]=_0x43b43a[_0x4f1b4b(0xb1e)]['rows'];}}const _0x1b1764=_0x4ad186;;const _0x10cf86=_0x2e4a48['p']+_0x49a1e3(0xa5d);;const _0x4dfbc6=_0x2e4a48['p']+_0x49a1e3(0x24da);;_0x49cf7b[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0xa19),'toasty',_0x49a1e3(0xdcf)];function _0x49cf7b(_0x3b4f16,_0x4e9b84,_0x138036,_0x37e46d,_0x43cb16){const _0x5f43a4=_0x49a1e3,_0x32ec24=this;_0x32ec24[_0x5f43a4(0x1d3d)]=_0x43cb16[_0x5f43a4(0x808)](),_0x32ec24['dynamics365Account']={},_0x32ec24['dynamics365Configuration']={},_0x32ec24[_0x5f43a4(0x23a8)]=[],_0x32ec24[_0x5f43a4(0xe32)]=-0x1,_0x32ec24[_0x5f43a4(0x402)],_0x32ec24[_0x5f43a4(0x2354)]=_0x5bcf6d,_0x32ec24[_0x5f43a4(0x2964)]=_0x482cf9,_0x32ec24[_0x5f43a4(0x110c)]=_0x49c167,_0x32ec24['deleteDynamics365Configuration']=_0x1955d0;function _0x5bcf6d(_0x11b849,_0x57efe8){const _0x1a33f1=_0x5f43a4;_0x32ec24[_0x1a33f1(0x2015)]=_0x11b849,_0x32ec24[_0x1a33f1(0x402)]=typeof _0x57efe8!==_0x1a33f1(0x19a1)?_0x57efe8:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x138036[_0x1a33f1(0xf5f)]['getConfigurations']({'id':_0x32ec24[_0x1a33f1(0x2015)]['id'],'sort':'-updatedAt'})[_0x1a33f1(0x15e7)][_0x1a33f1(0x64a)](function(_0x14cfef){const _0x38f52b=_0x1a33f1;return _0x32ec24[_0x38f52b(0x23a8)]=_0x14cfef[_0x38f52b(0x28b8)]?_0x14cfef['rows']:[],_0x32ec24['configurations'][_0x38f52b(0x1b9e)]&&_0x32ec24[_0x38f52b(0x2964)](0x0),_0x138036[_0x38f52b(0xefb)][_0x38f52b(0x896)]({'nolimit':!![],'sort':_0x38f52b(0x2494)})[_0x38f52b(0x15e7)];})[_0x1a33f1(0x64a)](function(_0x981afc){const _0x1c5fa7=_0x1a33f1;_0x32ec24[_0x1c5fa7(0x145c)]=_0x981afc[_0x1c5fa7(0x28b8)]?_0x981afc[_0x1c5fa7(0x28b8)]:[],_0x32ec24[_0x1c5fa7(0x2685)]=_0x28c606()[_0x1c5fa7(0x161e)](_0x32ec24[_0x1c5fa7(0x145c)],'id');})['catch'](function(_0x3f46ae){const _0x5dbd96=_0x1a33f1;_0x37e46d[_0x5dbd96(0x1bd0)]({'title':_0x3f46ae[_0x5dbd96(0x10b3)]?_0x5dbd96(0x575)+_0x3f46ae[_0x5dbd96(0x10b3)]+_0x5dbd96(0x21db)+_0x3f46ae[_0x5dbd96(0x2115)]:_0x5dbd96(0x1bdd),'msg':_0x3f46ae[_0x5dbd96(0x1c52)]?JSON[_0x5dbd96(0x2317)](_0x3f46ae['data']):_0x3f46ae[_0x5dbd96(0x2915)]()});});}function _0x482cf9(_0x24f171){const _0x43761b=_0x5f43a4;_0x32ec24[_0x43761b(0xa39)]=_0x32ec24[_0x43761b(0x23a8)][_0x24f171],_0x32ec24[_0x43761b(0xe32)]=_0x24f171,_0x138036[_0x43761b(0x855)]['getSubjects']({'id':_0x32ec24[_0x43761b(0xa39)]['id']})[_0x43761b(0x15e7)]['then'](function(_0x151bba){const _0x1880a3=_0x43761b;return _0x32ec24['subjects']=_0x151bba[_0x1880a3(0x28b8)]?_0x151bba['rows']:[],_0x138036[_0x1880a3(0x855)][_0x1880a3(0x1e33)]({'id':_0x32ec24['dynamics365Configuration']['id']})[_0x1880a3(0x15e7)];})[_0x43761b(0x64a)](function(_0x3d00d6){const _0x3eb1b2=_0x43761b;return _0x32ec24['descriptions']=_0x3d00d6[_0x3eb1b2(0x28b8)]?_0x3d00d6[_0x3eb1b2(0x28b8)]:[],_0x138036[_0x3eb1b2(0x855)][_0x3eb1b2(0x5e0)]({'id':_0x32ec24[_0x3eb1b2(0xa39)]['id']})[_0x3eb1b2(0x15e7)];})[_0x43761b(0x64a)](function(_0x20b254){const _0x14776e=_0x43761b;_0x32ec24[_0x14776e(0xf26)]=_0x20b254[_0x14776e(0x28b8)]?_0x20b254[_0x14776e(0x28b8)]:[];})[_0x43761b(0x20cd)](function(_0x6bb796){const _0x67b8b2=_0x43761b;_0x37e46d[_0x67b8b2(0x1bd0)]({'title':_0x6bb796[_0x67b8b2(0x10b3)]?_0x67b8b2(0x575)+_0x6bb796[_0x67b8b2(0x10b3)]+_0x67b8b2(0x21db)+_0x6bb796[_0x67b8b2(0x2115)]:_0x67b8b2(0x15c1),'msg':_0x6bb796[_0x67b8b2(0x1c52)]?JSON[_0x67b8b2(0x2317)](_0x6bb796['data']):_0x6bb796[_0x67b8b2(0x2915)]()});});}function _0x49c167(_0x4b6692,_0x5d3a31){const _0x3b327d=_0x5f43a4;_0x3b4f16[_0x3b327d(0xa60)]({'controller':_0x3b327d(0x22a0),'controllerAs':'vm','templateUrl':_0x10cf86,'parent':angular['element'](_0x4e9b84[_0x3b327d(0xb49)]),'targetEvent':_0x4b6692,'clickOutsideToClose':!![],'locals':{'dynamics365Configuration':_0x5d3a31,'configurations':_0x32ec24[_0x3b327d(0x23a8)],'license':null,'setting':null,'crudPermissions':_0x32ec24[_0x3b327d(0x402)]}})[_0x3b327d(0x988)](function(){const _0x322b8a=_0x3b327d;_0x32ec24[_0x322b8a(0x2964)](0x0);});}function _0x1955d0(_0x582505,_0x3db282){const _0x4b8860=_0x5f43a4,_0xe2e64e=_0x3b4f16['confirm']()['title'](_0x4b8860(0xd05))[_0x4b8860(0x33a)](_0x4b8860(0x50b)+(_0x3db282[_0x4b8860(0x2494)]||'dynamics365Configuration')+_0x4b8860(0x26d0)+_0x4b8860(0x4b8))['ariaLabel'](_0x4b8860(0x1de1))[_0x4b8860(0x2283)](_0x582505)['ok']('OK')[_0x4b8860(0x101a)](_0x4b8860(0x18fd));_0x3b4f16['show'](_0xe2e64e)[_0x4b8860(0x64a)](function(){const _0x475c54=_0x4b8860;_0x138036[_0x475c54(0x855)][_0x475c54(0xabd)]({'id':_0x3db282['id']})[_0x475c54(0x15e7)][_0x475c54(0x64a)](function(){const _0x2bea47=_0x475c54;_0x28c606()[_0x2bea47(0x21c7)](_0x32ec24[_0x2bea47(0x23a8)],{'id':_0x3db282['id']}),_0x37e46d[_0x2bea47(0x1339)]({'title':_0x2bea47(0x70d),'msg':_0x3db282[_0x2bea47(0x2494)]?_0x3db282[_0x2bea47(0x2494)]+_0x2bea47(0x1fa8):''});})[_0x475c54(0x20cd)](function(_0xb96e76){const _0x4accb6=_0x475c54;_0x37e46d[_0x4accb6(0x1bd0)]({'title':_0xb96e76['status']?_0x4accb6(0x575)+_0xb96e76['status']+_0x4accb6(0x21db)+_0xb96e76[_0x4accb6(0x2115)]:_0x4accb6(0x2925),'msg':_0xb96e76[_0x4accb6(0x1c52)]?JSON[_0x4accb6(0x2317)](_0xb96e76[_0x4accb6(0x1c52)]):_0xb96e76[_0x4accb6(0x2915)]()});})[_0x475c54(0x988)](function(){_0x32ec24['getDynamics365Configuration'](0x0);});},function(){const _0x33ff9b=_0x4b8860;console[_0x33ff9b(0x9b4)](_0x33ff9b(0x18fd));});}_0x32ec24[_0x5f43a4(0x2639)]=[],_0x32ec24['createOrEditSubject']=_0x50b975,_0x32ec24['deleteSubjectConfirm']=_0x5237d5,_0x32ec24[_0x5f43a4(0x17fe)]=_0x110f04;function _0x50b975(_0x16b9da,_0x3de7b6){const _0x2f77a5=_0x5f43a4;_0x3b4f16[_0x2f77a5(0xa60)]({'controller':'CreateOrEditDynamics365AccountItemDialogController','controllerAs':'vm','templateUrl':_0x4dfbc6,'parent':angular[_0x2f77a5(0x1f81)](_0x4e9b84[_0x2f77a5(0xb49)]),'targetEvent':_0x16b9da,'clickOutsideToClose':!![],'locals':{'type':_0x2f77a5(0x25bc),'item':_0x3de7b6,'items':_0x32ec24[_0x2f77a5(0x29b)],'configuration':_0x32ec24['dynamics365Configuration'],'account':_0x32ec24['dynamics365Account'],'license':null,'setting':null,'crudPermissions':_0x32ec24[_0x2f77a5(0x402)]}});}function _0x18a4dd(_0x44a83d){const _0x297dd9=_0x5f43a4;_0x138036['intDynamics365Field'][_0x297dd9(0xabd)]({'id':_0x44a83d['id']})['$promise'][_0x297dd9(0x64a)](function(){const _0x2ff420=_0x297dd9;_0x28c606()[_0x2ff420(0x21c7)](_0x32ec24[_0x2ff420(0x29b)],{'id':_0x44a83d['id']}),_0x37e46d[_0x2ff420(0x1339)]({'title':_0x2ff420(0x1d99),'msg':_0x2ff420(0x1a0c)});})['catch'](function(_0x590ac7){const _0x5b4e2c=_0x297dd9;_0x37e46d[_0x5b4e2c(0x1bd0)]({'title':_0x590ac7['status']?'API:'+_0x590ac7[_0x5b4e2c(0x10b3)]+_0x5b4e2c(0x21db)+_0x590ac7[_0x5b4e2c(0x2115)]:_0x5b4e2c(0x12a9),'msg':_0x590ac7[_0x5b4e2c(0x1c52)]?JSON[_0x5b4e2c(0x2317)](_0x590ac7[_0x5b4e2c(0x1c52)]):_0x590ac7[_0x5b4e2c(0x2915)]()});});}function _0x5237d5(_0x55ada0,_0x323b2c){const _0x35f5be=_0x5f43a4,_0x37fc7b=_0x3b4f16[_0x35f5be(0x856)]()[_0x35f5be(0x2021)](_0x35f5be(0x189a))[_0x35f5be(0x33a)](_0x35f5be(0x1e6a)+'\x20will\x20be\x20deleted.')[_0x35f5be(0x213e)]('delete\x20subject')[_0x35f5be(0x2283)](_0x55ada0)['ok']('OK')[_0x35f5be(0x101a)](_0x35f5be(0x18fd));_0x3b4f16[_0x35f5be(0xa60)](_0x37fc7b)['then'](function(){_0x18a4dd(_0x323b2c);},function(){const _0x3a144c=_0x35f5be;console[_0x3a144c(0x9b4)](_0x3a144c(0x18fd));});}function _0x110f04(_0x4d6bc7){const _0x328ab2=_0x5f43a4,_0x55fff4=_0x3b4f16[_0x328ab2(0x856)]()[_0x328ab2(0x2021)](_0x328ab2(0x1cb4))[_0x328ab2(0x33a)](''+_0x32ec24[_0x328ab2(0x2639)][_0x328ab2(0x1b9e)]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x328ab2(0x213e)]('delete\x20subjects')[_0x328ab2(0x2283)](_0x4d6bc7)['ok']('OK')['cancel']('CANCEL');_0x3b4f16[_0x328ab2(0xa60)](_0x55fff4)[_0x328ab2(0x64a)](function(){const _0x26879d=_0x328ab2;_0x32ec24[_0x26879d(0x2639)][_0x26879d(0x1397)](function(_0x59d6c6){_0x18a4dd(_0x59d6c6);}),_0x32ec24[_0x26879d(0x2639)]=[];});}_0x32ec24['selectedDescriptions']=[],_0x32ec24['createOrEditDescription']=_0x1d1085,_0x32ec24[_0x5f43a4(0x183a)]=_0x30a31a,_0x32ec24[_0x5f43a4(0x1efc)]=_0x123b98;function _0x1d1085(_0x54656e,_0x2d218e){const _0x4f65ab=_0x5f43a4;_0x3b4f16[_0x4f65ab(0xa60)]({'controller':_0x4f65ab(0x291b),'controllerAs':'vm','templateUrl':_0x4dfbc6,'parent':angular[_0x4f65ab(0x1f81)](_0x4e9b84[_0x4f65ab(0xb49)]),'targetEvent':_0x54656e,'clickOutsideToClose':!![],'locals':{'type':_0x4f65ab(0x23c3),'item':_0x2d218e,'items':_0x32ec24[_0x4f65ab(0x24b6)],'configuration':_0x32ec24[_0x4f65ab(0xa39)],'account':_0x32ec24[_0x4f65ab(0x2015)],'license':null,'setting':null,'crudPermissions':_0x32ec24[_0x4f65ab(0x402)]}});}function _0x489a51(_0x5b841a){const _0xf57476=_0x5f43a4;_0x138036[_0xf57476(0x1201)][_0xf57476(0xabd)]({'id':_0x5b841a['id']})[_0xf57476(0x15e7)][_0xf57476(0x64a)](function(){const _0x403f4f=_0xf57476;_0x28c606()['remove'](_0x32ec24[_0x403f4f(0x24b6)],{'id':_0x5b841a['id']}),_0x37e46d[_0x403f4f(0x1339)]({'title':'Description\x20deleted!','msg':_0x403f4f(0x213f)});})[_0xf57476(0x20cd)](function(_0x1e95d0){const _0x5c0041=_0xf57476;_0x37e46d[_0x5c0041(0x1bd0)]({'title':_0x1e95d0['status']?_0x5c0041(0x575)+_0x1e95d0[_0x5c0041(0x10b3)]+'\x20-\x20'+_0x1e95d0[_0x5c0041(0x2115)]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x1e95d0[_0x5c0041(0x1c52)]?JSON[_0x5c0041(0x2317)](_0x1e95d0[_0x5c0041(0x1c52)]):_0x1e95d0['toString']()});});}function _0x30a31a(_0x392930,_0x2b0b1f){const _0x592c8e=_0x5f43a4,_0x4407f4=_0x3b4f16['confirm']()[_0x592c8e(0x2021)](_0x592c8e(0x80e))['htmlContent'](_0x592c8e(0x1bb6)+_0x592c8e(0x4b8))['ariaLabel']('delete\x20description')['targetEvent'](_0x392930)['ok']('OK')[_0x592c8e(0x101a)](_0x592c8e(0x18fd));_0x3b4f16[_0x592c8e(0xa60)](_0x4407f4)[_0x592c8e(0x64a)](function(){_0x489a51(_0x2b0b1f);},function(){const _0x2d8a74=_0x592c8e;console[_0x2d8a74(0x9b4)](_0x2d8a74(0x18fd));});}function _0x123b98(_0x2cdac5){const _0x54ccd6=_0x5f43a4,_0x4cd251=_0x3b4f16['confirm']()[_0x54ccd6(0x2021)](_0x54ccd6(0xbe4))['htmlContent'](_0x54ccd6(0x50b)+_0x32ec24[_0x54ccd6(0x21c1)][_0x54ccd6(0x1b9e)]+_0x54ccd6(0x163e)+_0x54ccd6(0x4b8))[_0x54ccd6(0x213e)](_0x54ccd6(0x531))['targetEvent'](_0x2cdac5)['ok']('OK')[_0x54ccd6(0x101a)](_0x54ccd6(0x18fd));_0x3b4f16[_0x54ccd6(0xa60)](_0x4cd251)[_0x54ccd6(0x64a)](function(){const _0x1e6fcd=_0x54ccd6;_0x32ec24[_0x1e6fcd(0x21c1)][_0x1e6fcd(0x1397)](function(_0x4e5b3c){_0x489a51(_0x4e5b3c);}),_0x32ec24[_0x1e6fcd(0x21c1)]=[];});}_0x32ec24[_0x5f43a4(0xa3a)]=[],_0x32ec24[_0x5f43a4(0x569)]=_0x3be18f,_0x32ec24[_0x5f43a4(0x1436)]=_0x3b59b7,_0x32ec24[_0x5f43a4(0x1e89)]=_0x5a055a;function _0x3be18f(_0x194bb8,_0x2f1a72){const _0x4b8079=_0x5f43a4;_0x3b4f16[_0x4b8079(0xa60)]({'controller':_0x4b8079(0x291b),'controllerAs':'vm','templateUrl':_0x4dfbc6,'parent':angular[_0x4b8079(0x1f81)](_0x4e9b84[_0x4b8079(0xb49)]),'targetEvent':_0x194bb8,'clickOutsideToClose':!![],'locals':{'type':_0x4b8079(0xc26),'item':_0x2f1a72,'items':_0x32ec24[_0x4b8079(0xf26)],'configuration':_0x32ec24[_0x4b8079(0xa39)],'account':_0x32ec24[_0x4b8079(0x2015)],'license':null,'setting':null,'crudPermissions':_0x32ec24[_0x4b8079(0x402)]}});}function _0x10405b(_0x490659){const _0x46b4b4=_0x5f43a4;_0x138036[_0x46b4b4(0x1201)]['delete']({'id':_0x490659['id']})[_0x46b4b4(0x15e7)]['then'](function(){const _0x4d01a8=_0x46b4b4;_0x28c606()['remove'](_0x32ec24['fields'],{'id':_0x490659['id']}),_0x37e46d[_0x4d01a8(0x1339)]({'title':_0x4d01a8(0x13e7),'msg':_0x4d01a8(0x14b)});})[_0x46b4b4(0x20cd)](function(_0x6b513a){const _0x1fd42c=_0x46b4b4;_0x37e46d[_0x1fd42c(0x1bd0)]({'title':_0x6b513a[_0x1fd42c(0x10b3)]?_0x1fd42c(0x575)+_0x6b513a[_0x1fd42c(0x10b3)]+_0x1fd42c(0x21db)+_0x6b513a[_0x1fd42c(0x2115)]:_0x1fd42c(0x12a9),'msg':_0x6b513a[_0x1fd42c(0x1c52)]?JSON[_0x1fd42c(0x2317)](_0x6b513a[_0x1fd42c(0x1c52)]):_0x6b513a[_0x1fd42c(0x2915)]()});});}function _0x3b59b7(_0x2a08c0,_0x305541){const _0x566633=_0x5f43a4,_0x43424e=_0x3b4f16['confirm']()[_0x566633(0x2021)](_0x566633(0x865))[_0x566633(0x33a)](_0x566633(0x1a56)+'\x20will\x20be\x20deleted.')[_0x566633(0x213e)](_0x566633(0x22d7))[_0x566633(0x2283)](_0x2a08c0)['ok']('OK')[_0x566633(0x101a)](_0x566633(0x18fd));_0x3b4f16[_0x566633(0xa60)](_0x43424e)[_0x566633(0x64a)](function(){_0x10405b(_0x305541);},function(){console['log']('CANCEL');});}function _0x5a055a(_0x5d8ba6){const _0x46ffe3=_0x5f43a4,_0x464ace=_0x3b4f16[_0x46ffe3(0x856)]()[_0x46ffe3(0x2021)](_0x46ffe3(0x17bf))[_0x46ffe3(0x33a)](''+_0x32ec24['selectedFields'][_0x46ffe3(0x1b9e)]+_0x46ffe3(0x163e)+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x46ffe3(0x11bc))[_0x46ffe3(0x2283)](_0x5d8ba6)['ok']('OK')['cancel'](_0x46ffe3(0x18fd));_0x3b4f16[_0x46ffe3(0xa60)](_0x464ace)[_0x46ffe3(0x64a)](function(){const _0x3fb488=_0x46ffe3;_0x32ec24[_0x3fb488(0xa3a)][_0x3fb488(0x1397)](function(_0x148a38){_0x10405b(_0x148a38);}),_0x32ec24[_0x3fb488(0xa3a)]=[];});}}const _0x16a7c6=_0x49cf7b;;_0x2f3b45[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x23a8),_0x49a1e3(0xa39),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x1947),'setting',_0x49a1e3(0x402)];function _0x2f3b45(_0x29a953,_0x35528d,_0x453965,_0x2f7142,_0x1fcd0a,_0x13d76c,_0x3b75ca,_0x383b9f,_0x1ac4a7,_0x221ed4,_0x4ec384,_0x599dcc,_0x316cab,_0x58b0c4){const _0x5bd293=_0x49a1e3,_0x43a696=this;_0x43a696[_0x5bd293(0x1d3d)]=_0x4ec384[_0x5bd293(0x808)](),_0x43a696[_0x5bd293(0xbae)]=[],_0x43a696['setting']=_0x316cab,_0x43a696[_0x5bd293(0x1947)]=_0x599dcc,_0x43a696[_0x5bd293(0x402)]=_0x58b0c4,_0x43a696[_0x5bd293(0x6c2)]={},_0x43a696[_0x5bd293(0xccc)]=_0x43a696[_0x5bd293(0x28d6)]&&_0x43a696[_0x5bd293(0x28d6)][_0x5bd293(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x43a696['title']=_0x5bd293(0x8b8),_0x43a696[_0x5bd293(0xa39)]=angular[_0x5bd293(0x289e)](_0x1ac4a7),_0x43a696[_0x5bd293(0x23a8)]=_0x383b9f,_0x43a696[_0x5bd293(0xa32)]=![];!_0x43a696['dynamics365Configuration']&&(_0x43a696[_0x5bd293(0xa39)]={'channel':_0x5bd293(0x227c),'type':'inbound','ticketType':_0x5bd293(0x27a7)},_0x43a696[_0x5bd293(0x2021)]=_0x5bd293(0xe2b),_0x43a696[_0x5bd293(0xa32)]=!![]);_0x43a696[_0x5bd293(0x27af)]=_0x431cf0,_0x43a696[_0x5bd293(0xc84)]=_0x135e47,_0x43a696['deleteDynamics365Configuration']=_0x33f00d,_0x43a696[_0x5bd293(0x1605)]=_0x287d47,_0x43a696[_0x5bd293(0x16cb)]=_0x5253c9;function _0x431cf0(){const _0x2eb67f=_0x5bd293;_0x43a696[_0x2eb67f(0xbae)]=[],_0x221ed4['intDynamics365Account'][_0x2eb67f(0x1d2d)]({'id':_0x35528d[_0x2eb67f(0x1b48)]['id']},_0x43a696['dynamics365Configuration'])[_0x2eb67f(0x15e7)]['then'](function(_0x54da3e){const _0xdeac31=_0x2eb67f;_0x43a696[_0xdeac31(0x23a8)]['unshift'](_0x54da3e[_0xdeac31(0x14f8)]()),_0x3b75ca[_0xdeac31(0x1339)]({'title':_0xdeac31(0x3df),'msg':_0x43a696[_0xdeac31(0xa39)][_0xdeac31(0x2494)]?_0x43a696[_0xdeac31(0xa39)]['name']+_0xdeac31(0x258d):''}),_0x5253c9(_0x54da3e);})['catch'](function(_0x4ed47e){const _0x51d9e7=_0x2eb67f;if(_0x4ed47e['data']&&_0x4ed47e['data'][_0x51d9e7(0xbae)]&&_0x4ed47e[_0x51d9e7(0x1c52)][_0x51d9e7(0xbae)]['length']){_0x43a696['errors']=_0x4ed47e['data'][_0x51d9e7(0xbae)]||[{'message':_0x4ed47e[_0x51d9e7(0x2915)](),'type':_0x51d9e7(0x692)}];for(let _0x3ecd90=0x0;_0x3ecd90<_0x4ed47e[_0x51d9e7(0x1c52)][_0x51d9e7(0xbae)][_0x51d9e7(0x1b9e)];_0x3ecd90+=0x1){_0x3b75ca[_0x51d9e7(0x1bd0)]({'title':_0x4ed47e[_0x51d9e7(0x1c52)][_0x51d9e7(0xbae)][_0x3ecd90][_0x51d9e7(0x2185)],'msg':_0x4ed47e['data'][_0x51d9e7(0xbae)][_0x3ecd90][_0x51d9e7(0x18ca)]});}}else _0x3b75ca[_0x51d9e7(0x1bd0)]({'title':_0x4ed47e[_0x51d9e7(0x10b3)]?_0x51d9e7(0x575)+_0x4ed47e[_0x51d9e7(0x10b3)]+_0x51d9e7(0x21db)+_0x4ed47e['statusText']:_0x51d9e7(0x692),'msg':_0x4ed47e['data']?JSON[_0x51d9e7(0x2317)](_0x4ed47e[_0x51d9e7(0x1c52)][_0x51d9e7(0x18ca)]):_0x4ed47e[_0x51d9e7(0x2915)]()});});}function _0x135e47(){const _0x19c773=_0x5bd293;_0x43a696[_0x19c773(0xbae)]=[],_0x221ed4['intDynamics365Configuration'][_0x19c773(0x2603)]({'id':_0x43a696[_0x19c773(0xa39)]['id']},_0x43a696[_0x19c773(0xa39)])[_0x19c773(0x15e7)][_0x19c773(0x64a)](function(_0x2020d1){const _0x275348=_0x19c773,_0x6d3969=_0x28c606()[_0x275348(0x27bc)](_0x43a696[_0x275348(0x23a8)],{'id':_0x2020d1['id']});_0x6d3969&&_0x28c606()[_0x275348(0x14fe)](_0x6d3969,_0x28c606()['pick'](_0x2020d1['toJSON'](),_0x28c606()['keys'](_0x6d3969))),_0x3b75ca['success']({'title':_0x275348(0x2807),'msg':_0x43a696[_0x275348(0xa39)][_0x275348(0x2494)]?_0x43a696['dynamics365Configuration'][_0x275348(0x2494)]+'\x20has\x20been\x20saved!':''}),_0x5253c9(_0x2020d1);})['catch'](function(_0x57bf9d){const _0x50a09e=_0x19c773;if(_0x57bf9d[_0x50a09e(0x1c52)]&&_0x57bf9d['data'][_0x50a09e(0xbae)]&&_0x57bf9d[_0x50a09e(0x1c52)][_0x50a09e(0xbae)]['length']){_0x43a696[_0x50a09e(0xbae)]=_0x57bf9d[_0x50a09e(0x1c52)][_0x50a09e(0xbae)]||[{'message':_0x57bf9d[_0x50a09e(0x2915)](),'type':'api.intDynamics365Configuration.update'}];for(let _0x51b6e9=0x0;_0x51b6e9<_0x57bf9d[_0x50a09e(0x1c52)][_0x50a09e(0xbae)][_0x50a09e(0x1b9e)];_0x51b6e9++){_0x3b75ca[_0x50a09e(0x1bd0)]({'title':_0x57bf9d['data'][_0x50a09e(0xbae)][_0x51b6e9][_0x50a09e(0x2185)],'msg':_0x57bf9d[_0x50a09e(0x1c52)]['errors'][_0x51b6e9]['message']});}}else _0x3b75ca[_0x50a09e(0x1bd0)]({'title':_0x57bf9d[_0x50a09e(0x10b3)]?_0x50a09e(0x575)+_0x57bf9d[_0x50a09e(0x10b3)]+_0x50a09e(0x21db)+_0x57bf9d[_0x50a09e(0x2115)]:_0x50a09e(0x979),'msg':_0x57bf9d[_0x50a09e(0x1c52)]?JSON[_0x50a09e(0x2317)](_0x57bf9d['data']['message']):_0x57bf9d[_0x50a09e(0x2915)]()});});}function _0x33f00d(_0xffc1e9){const _0xc528b0=_0x5bd293;_0x43a696[_0xc528b0(0xbae)]=[];const _0x5bd574=_0x2f7142['confirm']()[_0xc528b0(0x2021)](_0xc528b0(0x103a))[_0xc528b0(0x12b8)](_0xc528b0(0x2667))[_0xc528b0(0x213e)](_0xc528b0(0xf0a))['ok'](_0xc528b0(0x2664))[_0xc528b0(0x101a)]('Cancel')[_0xc528b0(0x2283)](_0xffc1e9);_0x2f7142[_0xc528b0(0xa60)](_0x5bd574)[_0xc528b0(0x64a)](function(){const _0x24893a=_0xc528b0;_0x221ed4[_0x24893a(0x855)][_0x24893a(0xabd)]({'id':_0x43a696[_0x24893a(0xa39)]['id']})[_0x24893a(0x15e7)][_0x24893a(0x64a)](function(){const _0x5d02bd=_0x24893a;_0x28c606()[_0x5d02bd(0x21c7)](_0x43a696[_0x5d02bd(0x23a8)],{'id':_0x43a696[_0x5d02bd(0xa39)]['id']}),_0x3b75ca[_0x5d02bd(0x1339)]({'title':'Dynamics365Configuration\x20properly\x20deleted!','msg':(_0x43a696[_0x5d02bd(0xa39)][_0x5d02bd(0x2494)]||_0x5d02bd(0xa39))+'\x20has\x20been\x20deleted!'}),_0x5253c9(_0x43a696['dynamics365Configuration']);})[_0x24893a(0x20cd)](function(_0x4e947e){const _0x40cfad=_0x24893a;if(_0x4e947e[_0x40cfad(0x1c52)]&&_0x4e947e[_0x40cfad(0x1c52)][_0x40cfad(0xbae)]&&_0x4e947e[_0x40cfad(0x1c52)]['errors'][_0x40cfad(0x1b9e)]){_0x43a696['errors']=_0x4e947e[_0x40cfad(0x1c52)][_0x40cfad(0xbae)]||[{'message':_0x4e947e[_0x40cfad(0x2915)](),'type':_0x40cfad(0x1799)}];for(let _0x1260d8=0x0;_0x1260d8<_0x4e947e[_0x40cfad(0x1c52)][_0x40cfad(0xbae)][_0x40cfad(0x1b9e)];_0x1260d8++){_0x3b75ca[_0x40cfad(0x1bd0)]({'title':_0x4e947e[_0x40cfad(0x1c52)][_0x40cfad(0xbae)][_0x1260d8][_0x40cfad(0x2185)],'msg':_0x4e947e[_0x40cfad(0x1c52)][_0x40cfad(0xbae)][_0x1260d8]['message']});}}else _0x3b75ca[_0x40cfad(0x1bd0)]({'title':_0x4e947e['status']?_0x40cfad(0x575)+_0x4e947e[_0x40cfad(0x10b3)]+_0x40cfad(0x21db)+_0x4e947e['statusText']:'api.intDynamics365Configuration.delete','msg':_0x4e947e['data']?JSON[_0x40cfad(0x2317)](_0x4e947e[_0x40cfad(0x1c52)][_0x40cfad(0x18ca)]):_0x4e947e[_0x40cfad(0x18ca)]||_0x4e947e[_0x40cfad(0x2915)]()});});},function(){});}function _0x287d47(_0x1d82f9){return _0x1d82f9===null?undefined:new Date(_0x1d82f9);}function _0x5253c9(_0x18b2a1){_0x2f7142['hide'](_0x18b2a1);}}const _0x5b40aa=_0x2f3b45;;_0x2a84c5[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog','toasty',_0x49a1e3(0x9a4),_0x49a1e3(0x23cb),_0x49a1e3(0x1656),_0x49a1e3(0x3e3),'type',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x2a84c5(_0x18a328,_0x43471e,_0x1f1e38,_0x44b572,_0xe621da,_0x4fb7ca,_0x21e172,_0x3f07e0,_0x4fdae4,_0x85cb31,_0x3f4b91,_0x2bf0fe,_0x397e4d){const _0x53cba8=_0x49a1e3,_0x1730c8=this;_0x1730c8['currentUser']=_0x2bf0fe[_0x53cba8(0x808)](),_0x1730c8[_0x53cba8(0xbae)]=[],_0x1730c8['title']=_0x53cba8(0x1bfd)+_0x28c606()[_0x53cba8(0x2201)](_0x85cb31),_0x1730c8[_0x53cba8(0x1656)]=angular[_0x53cba8(0x289e)](_0x3f07e0),_0x1730c8[_0x53cba8(0x23cb)]=_0x21e172,_0x1730c8[_0x53cba8(0x2185)]=_0x85cb31,_0x1730c8['crudPermissions']=_0x397e4d,_0x1730c8['newItem']=![];!_0x1730c8[_0x53cba8(0x1656)]&&(_0x1730c8[_0x53cba8(0x1656)]={'type':_0x53cba8(0x108c)},_0x1730c8['item'][_0x28c606()[_0x53cba8(0xd56)](_0x85cb31)+'Id']=_0x4fb7ca['id'],_0x1730c8[_0x53cba8(0x2021)]=_0x53cba8(0x1ad9)+_0x28c606()[_0x53cba8(0x2201)](_0x85cb31),_0x1730c8[_0x53cba8(0xd33)]=!![]);_0x1730c8[_0x53cba8(0x2889)]=_0x26d4d4,_0x1730c8[_0x53cba8(0x1dbc)]=_0x3002cf,_0x1730c8['deleteItem']=_0x19982d,_0x1730c8[_0x53cba8(0x14d)]=_0x58392d,_0x1730c8[_0x53cba8(0x16cb)]=_0x5887ab,_0x3f4b91[_0x53cba8(0xefb)][_0x53cba8(0x896)]({'nolimit':!![]})[_0x53cba8(0x15e7)][_0x53cba8(0x64a)](function(_0x5537e3){const _0x2e8836=_0x53cba8;return _0x1730c8[_0x2e8836(0x145c)]=_0x5537e3['rows']?_0x5537e3[_0x2e8836(0x28b8)]:[],_0x3f4b91[_0x2e8836(0x1445)][_0x2e8836(0xa81)]()[_0x2e8836(0x15e7)];})[_0x53cba8(0x64a)](function(_0x5699fd){const _0x169819=_0x53cba8;return _0x1730c8['voiceAgentReportColumns']=_0x28c606()[_0x169819(0xde7)](_0x28c606()[_0x169819(0x1ec6)](_0x5699fd),[_0x169819(0x15e7),_0x169819(0x19ba),_0x169819(0x2378),_0x169819(0x2056),'sourceid']),_0x1730c8[_0x169819(0x109a)][_0x169819(0x1954)](_0x169819(0xdd4)),_0x3f4b91[_0x169819(0x1002)]['describe']()[_0x169819(0x15e7)];})[_0x53cba8(0x64a)](function(_0x318fe9){const _0x55e981=_0x53cba8;_0x1730c8[_0x55e981(0xdae)]=_0x28c606()[_0x55e981(0xde7)](_0x28c606()[_0x55e981(0x1ec6)](_0x318fe9),[_0x55e981(0x15e7),_0x55e981(0x19ba),_0x55e981(0x2378),_0x55e981(0x2056),_0x55e981(0x2785)]),_0x1730c8[_0x55e981(0xdae)]['push'](_0x55e981(0xdd4));})[_0x53cba8(0x20cd)](function(_0x594f73){const _0x371506=_0x53cba8;_0xe621da['error']({'title':_0x594f73[_0x371506(0x10b3)]?_0x371506(0x575)+_0x594f73[_0x371506(0x10b3)]+_0x371506(0x21db)+_0x594f73[_0x371506(0x2115)]:_0x371506(0x195a),'msg':_0x594f73[_0x371506(0x1c52)]?JSON[_0x371506(0x2317)](_0x594f73['data']):_0x594f73['toString']()});}),_0x3f4b91[_0x53cba8(0xf5f)][_0x53cba8(0x5e0)]({'id':_0x4fdae4['id'],'ticketType':_0x4fb7ca[_0x53cba8(0x1545)]?_0x4fb7ca['ticketType']:undefined})['$promise'][_0x53cba8(0x64a)](function(_0x8964a1){const _0x26331d=_0x53cba8;_0x1730c8[_0x26331d(0x854)]=!![],_0x1730c8[_0x26331d(0xf26)]=_0x8964a1['rows']?_0x8964a1[_0x26331d(0x28b8)]:[],_0x1730c8[_0x26331d(0x1656)][_0x26331d(0x197)]&&(_0x1730c8[_0x26331d(0x1753)]=_0x28c606()[_0x26331d(0x27bc)](_0x1730c8[_0x26331d(0xf26)],{'id':_0x1730c8['item'][_0x26331d(0x197)]}));})['catch'](function(_0x38cf40){const _0x1cf0ad=_0x53cba8;_0x1730c8['accountConnected']=![],console[_0x1cf0ad(0x1bd0)](_0x38cf40);});function _0x26d4d4(){const _0x507eac=_0x53cba8;_0x1730c8[_0x507eac(0xbae)]=[],_0x1730c8[_0x507eac(0x1753)]&&(_0x1730c8[_0x507eac(0x1656)][_0x507eac(0x197)]=_0x1730c8[_0x507eac(0x1753)]['id'],_0x1730c8[_0x507eac(0x1656)][_0x507eac(0x25fc)]=_0x1730c8[_0x507eac(0x1753)][_0x507eac(0x2494)],_0x1730c8['item'][_0x507eac(0x1753)]=_0x1730c8[_0x507eac(0x1753)][_0x507eac(0x1ad6)]),_0x3f4b91['intDynamics365Field'][_0x507eac(0x2479)](_0x1730c8['item'])['$promise'][_0x507eac(0x64a)](function(_0x594af1){const _0x1a01f3=_0x507eac;_0x1730c8['items'][_0x1a01f3(0x1891)](_0x594af1),_0xe621da['success']({'title':_0x28c606()[_0x1a01f3(0xd56)](_0x85cb31)+_0x1a01f3(0xe0b),'msg':_0x28c606()['capitalize'](_0x85cb31)+_0x1a01f3(0x258d)}),_0x5887ab();})[_0x507eac(0x20cd)](function(_0x304b9d){const _0x464b97=_0x507eac;console[_0x464b97(0x1bd0)](_0x304b9d),_0x1730c8[_0x464b97(0xbae)]=_0x304b9d[_0x464b97(0x1c52)][_0x464b97(0xbae)]||[{'message':_0x304b9d[_0x464b97(0x2915)](),'type':_0x464b97(0x1675)}];});}function _0x3002cf(){const _0xabcb4=_0x53cba8;_0x1730c8[_0xabcb4(0xbae)]=[],_0x1730c8['customField']&&(_0x1730c8['item']['idField']=_0x1730c8[_0xabcb4(0x1753)]['id'],_0x1730c8[_0xabcb4(0x1656)][_0xabcb4(0x25fc)]=_0x1730c8[_0xabcb4(0x1753)]['name'],_0x1730c8[_0xabcb4(0x1656)][_0xabcb4(0x1753)]=_0x1730c8[_0xabcb4(0x1753)][_0xabcb4(0x1ad6)]),_0x3f4b91[_0xabcb4(0x1201)]['update']({'id':_0x1730c8[_0xabcb4(0x1656)]['id']},_0x1730c8[_0xabcb4(0x1656)])[_0xabcb4(0x15e7)][_0xabcb4(0x64a)](function(_0x30f8c5){const _0x25639f=_0xabcb4,_0x12a3e5=_0x28c606()[_0x25639f(0x27bc)](_0x1730c8[_0x25639f(0x23cb)],{'id':_0x30f8c5['id']});_0x12a3e5&&_0x28c606()['merge'](_0x12a3e5,_0x30f8c5),_0xe621da[_0x25639f(0x1339)]({'title':_0x28c606()[_0x25639f(0xd56)](_0x85cb31)+_0x25639f(0x2776),'msg':_0x28c606()[_0x25639f(0xd56)](_0x85cb31)+_0x25639f(0x271)}),_0x5887ab();})['catch'](function(_0x592d7c){const _0x1cd426=_0xabcb4;console['error'](_0x592d7c),_0x1730c8[_0x1cd426(0xbae)]=_0x592d7c['data']['errors']||[{'message':_0x592d7c[_0x1cd426(0x2915)](),'type':_0x1cd426(0x671)}];});}function _0x19982d(_0x5a45c3){const _0x391eda=_0x53cba8;_0x1730c8[_0x391eda(0xbae)]=[];const _0x4756d2=_0x44b572['confirm']()[_0x391eda(0x2021)](_0x391eda(0x103a))[_0x391eda(0x12b8)](_0x391eda(0x2966)+_0x85cb31+_0x391eda(0x4b8))[_0x391eda(0x213e)]('Delete\x20'+_0x28c606()[_0x391eda(0xd56)](_0x85cb31))['ok']('Delete')['cancel'](_0x391eda(0x1dc6))[_0x391eda(0x2283)](_0x5a45c3);_0x44b572[_0x391eda(0xa60)](_0x4756d2)[_0x391eda(0x64a)](function(){const _0x59300c=_0x391eda;_0x3f4b91['intDynamics365Field']['delete']({'id':_0x1730c8[_0x59300c(0x1656)]['id']})['$promise']['then'](function(){const _0x209782=_0x59300c;_0x28c606()[_0x209782(0x21c7)](_0x1730c8[_0x209782(0x23cb)],{'id':_0x1730c8[_0x209782(0x1656)]['id']}),_0xe621da['success']({'title':_0x28c606()['capitalize'](_0x85cb31)+_0x209782(0x6ec),'msg':_0x28c606()[_0x209782(0xd56)](_0x85cb31)+'\x20has\x20been\x20deleted!'}),_0x5887ab();})['catch'](function(_0x5e3325){const _0x1c6c6c=_0x59300c;console[_0x1c6c6c(0x1bd0)](_0x5e3325),_0x1730c8[_0x1c6c6c(0xbae)]=_0x5e3325[_0x1c6c6c(0x1c52)][_0x1c6c6c(0xbae)]||[{'message':_0x5e3325[_0x1c6c6c(0x2915)](),'type':_0x1c6c6c(0x27aa)}];});},function(){});}function _0x58392d(){const _0x9ae310=_0x53cba8;return _0x1730c8[_0x9ae310(0x1656)][_0x9ae310(0x1299)]!==undefined?_0x1730c8[_0x9ae310(0x1656)][_0x9ae310(0x1299)]:_0x9ae310(0xfae);}function _0x5887ab(){const _0x5c1b21=_0x53cba8;_0x44b572[_0x5c1b21(0x268e)]();}}const _0x2ea418=_0x2a84c5;;_0xbed161[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),'$location','$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x298c),'license','setting',_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),'dynamics365Account','userProfileSection'];function _0xbed161(_0x506cff,_0x210c9f,_0x2808e4,_0x2c18ec,_0x21a3a2,_0x3c513c,_0xd3d273,_0x4ba1ac,_0xf94bb3,_0x139182,_0x4d1290,_0xc05a52){const _0x2b08e5=_0x49a1e3,_0x1295e9=this;_0x1295e9['currentUser']=_0x139182[_0x2b08e5(0x808)](),_0x1295e9[_0x2b08e5(0x1947)]=_0x3c513c,_0x1295e9[_0x2b08e5(0x28d6)]=_0xd3d273,_0x1295e9[_0x2b08e5(0xccc)]=_0x1295e9[_0x2b08e5(0x28d6)][_0x2b08e5(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1295e9[_0x2b08e5(0xb36)]=_0x210c9f[_0x2b08e5(0x48e)]()+_0x2b08e5(0xe1f)+_0x210c9f[_0x2b08e5(0x1e5d)](),_0x1295e9['dynamics365Account']=_0x4d1290||_0x506cff[_0x2b08e5(0x1b48)][_0x2b08e5(0x2015)]||{},_0x1295e9[_0x2b08e5(0x16b2)]=_0xc05a52&&_0xc05a52[_0x2b08e5(0xb90)]==0x1?_0xc05a52[_0x2b08e5(0x28b8)][0x0]:null,_0x1295e9[_0x2b08e5(0x402)]=_0x139182[_0x2b08e5(0xa7e)](_0x1295e9[_0x2b08e5(0x16b2)]?_0x1295e9[_0x2b08e5(0x16b2)]['crudPermissions']:null),_0x1295e9['hasModulePermissions']={},_0x1295e9[_0x2b08e5(0x197c)]=_0x506cff['params']['tab']||0x0,_0x1295e9[_0x2b08e5(0x2540)]=_0xf94bb3[_0x2b08e5(0x772)],_0x1295e9[_0x2b08e5(0xf6d)]=_0x1a7d75,_0x1295e9['saveDynamics365Account']=_0x2cd3b7;function _0x1a7d75(){const _0x590bcd=_0x2b08e5;_0x506cff['go']('app.integrations.dynamics365Accounts',{},{'reload':_0x590bcd(0xa61)});}function _0x2cd3b7(){const _0x450877=_0x2b08e5;_0x4ba1ac['intDynamics365Account'][_0x450877(0x2603)]({'id':_0x1295e9[_0x450877(0x2015)]['id']},_0x1295e9[_0x450877(0x2015)])[_0x450877(0x15e7)][_0x450877(0x64a)](function(){const _0x4763e2=_0x450877;_0xf94bb3[_0x4763e2(0x1339)]({'title':'Dynamics365Account\x20updated!','msg':_0x1295e9[_0x4763e2(0x2015)][_0x4763e2(0x2494)]?_0x1295e9['dynamics365Account']['name']+_0x4763e2(0x2032):''});})[_0x450877(0x20cd)](function(_0x3dde90){const _0x4c881f=_0x450877;_0xf94bb3[_0x4c881f(0x1bd0)]({'title':_0x3dde90[_0x4c881f(0x10b3)]?_0x4c881f(0x575)+_0x3dde90['status']+'\x20-\x20'+_0x3dde90[_0x4c881f(0x2115)]:'SYSTEM:GETintDynamics365Account','msg':_0x3dde90[_0x4c881f(0x1c52)]?JSON[_0x4c881f(0x2317)](_0x3dde90[_0x4c881f(0x1c52)]):_0x3dde90['toString']()});});}}const _0x4b219f=_0xbed161;;_0x2d9c20[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q','$translate',_0x49a1e3(0x680),_0x49a1e3(0xae3),_0x49a1e3(0x1d4b),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x2d9c20(_0x550019,_0x1d9d36,_0x1e5b29,_0x588852,_0x2d1d0f,_0x486a63,_0x13fd63,_0x1b43d2,_0x18ebc4,_0x585b1a,_0x20cf52,_0x2bd71a,_0x343adb,_0x55bfbb){const _0x197a44=_0x49a1e3,_0x404850=this;_0x404850[_0x197a44(0x1d3d)]=_0x20cf52[_0x197a44(0x808)](),_0x404850['errors']=[],_0x404850[_0x197a44(0x28d6)]=_0x343adb,_0x404850[_0x197a44(0x1947)]=_0x2bd71a,_0x404850['crudPermissions']=_0x55bfbb,_0x404850[_0x197a44(0x6c2)]={},_0x404850['passwordPattern']=_0x404850['setting']&&_0x404850[_0x197a44(0x28d6)][_0x197a44(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x404850['title']='INTEGRATIONS.EDIT_FRESHDESKACCOUNT',_0x404850[_0x197a44(0x1d4b)]=angular[_0x197a44(0x289e)](_0x18ebc4),_0x404850[_0x197a44(0xae3)]=_0x1b43d2,_0x404850[_0x197a44(0x1986)]=![];!_0x404850[_0x197a44(0x1d4b)]&&(_0x404850[_0x197a44(0x1d4b)]={'serverUrl':_0x1e5b29[_0x197a44(0x48e)]()+_0x197a44(0xe1f)+_0x1e5b29[_0x197a44(0x1e5d)]()+(_0x1e5b29[_0x197a44(0x23f2)]()?':'+_0x1e5b29[_0x197a44(0x23f2)]():'')},_0x404850[_0x197a44(0x2021)]=_0x197a44(0x7f0),_0x404850[_0x197a44(0x1986)]=!![]);_0x404850[_0x197a44(0xbd5)]=_0x51fc8f,_0x404850['saveFreshdeskAccount']=_0x16c407,_0x404850[_0x197a44(0x171a)]=_0x39dc3e,_0x404850[_0x197a44(0x1605)]=_0x28e1ad,_0x404850['closeDialog']=_0x438674;function _0x51fc8f(){const _0x55c0f2=_0x197a44;_0x404850[_0x55c0f2(0xbae)]=[],_0x585b1a['intFreshdeskAccount'][_0x55c0f2(0x2479)](_0x404850[_0x55c0f2(0x1d4b)])[_0x55c0f2(0x15e7)][_0x55c0f2(0x64a)](function(_0x4e75f2){const _0x3e71e8=_0x55c0f2;_0x404850['freshdeskAccounts']['unshift'](_0x4e75f2[_0x3e71e8(0x14f8)]()),_0x13fd63[_0x3e71e8(0x1339)]({'title':_0x3e71e8(0x279b),'msg':_0x404850[_0x3e71e8(0x1d4b)][_0x3e71e8(0x2494)]?_0x404850[_0x3e71e8(0x1d4b)][_0x3e71e8(0x2494)]+_0x3e71e8(0x258d):''}),_0x438674(_0x4e75f2);})['catch'](function(_0x13cc31){const _0x1d0d8d=_0x55c0f2;if(_0x13cc31[_0x1d0d8d(0x1c52)]&&_0x13cc31['data'][_0x1d0d8d(0xbae)]&&_0x13cc31[_0x1d0d8d(0x1c52)][_0x1d0d8d(0xbae)]['length']){_0x404850[_0x1d0d8d(0xbae)]=_0x13cc31[_0x1d0d8d(0x1c52)][_0x1d0d8d(0xbae)]||[{'message':_0x13cc31[_0x1d0d8d(0x2915)](),'type':'api.intFreshdeskAccount.save'}];for(let _0x156ca2=0x0;_0x156ca2<_0x13cc31[_0x1d0d8d(0x1c52)][_0x1d0d8d(0xbae)][_0x1d0d8d(0x1b9e)];_0x156ca2+=0x1){_0x13fd63[_0x1d0d8d(0x1bd0)]({'title':_0x13cc31[_0x1d0d8d(0x1c52)][_0x1d0d8d(0xbae)][_0x156ca2][_0x1d0d8d(0x2185)],'msg':_0x13cc31['data'][_0x1d0d8d(0xbae)][_0x156ca2][_0x1d0d8d(0x18ca)]});}}else _0x13fd63['error']({'title':_0x13cc31['status']?_0x1d0d8d(0x575)+_0x13cc31['status']+_0x1d0d8d(0x21db)+_0x13cc31[_0x1d0d8d(0x2115)]:_0x1d0d8d(0xb1f),'msg':_0x13cc31['data']?JSON[_0x1d0d8d(0x2317)](_0x13cc31[_0x1d0d8d(0x1c52)][_0x1d0d8d(0x18ca)]):_0x13cc31[_0x1d0d8d(0x2915)]()});});}function _0x16c407(){const _0x569d9d=_0x197a44;_0x404850[_0x569d9d(0xbae)]=[],_0x585b1a[_0x569d9d(0x26ff)][_0x569d9d(0x2603)]({'id':_0x404850[_0x569d9d(0x1d4b)]['id']},_0x404850[_0x569d9d(0x1d4b)])[_0x569d9d(0x15e7)][_0x569d9d(0x64a)](function(_0x26c645){const _0x8d9d36=_0x569d9d,_0x329d93=_0x28c606()[_0x8d9d36(0x27bc)](_0x404850[_0x8d9d36(0xae3)],{'id':_0x26c645['id']});_0x329d93&&_0x28c606()[_0x8d9d36(0x14fe)](_0x329d93,_0x28c606()[_0x8d9d36(0x27bb)](_0x26c645[_0x8d9d36(0x14f8)](),_0x28c606()[_0x8d9d36(0x1ec6)](_0x329d93))),_0x13fd63[_0x8d9d36(0x1339)]({'title':_0x8d9d36(0x139b),'msg':_0x404850[_0x8d9d36(0x1d4b)]['name']?_0x404850['freshdeskAccount'][_0x8d9d36(0x2494)]+_0x8d9d36(0x271):''}),_0x438674(_0x26c645);})[_0x569d9d(0x20cd)](function(_0x35b1a8){const _0x24535d=_0x569d9d;if(_0x35b1a8['data']&&_0x35b1a8[_0x24535d(0x1c52)][_0x24535d(0xbae)]&&_0x35b1a8[_0x24535d(0x1c52)][_0x24535d(0xbae)][_0x24535d(0x1b9e)]){_0x404850[_0x24535d(0xbae)]=_0x35b1a8['data'][_0x24535d(0xbae)]||[{'message':_0x35b1a8[_0x24535d(0x2915)](),'type':_0x24535d(0x978)}];for(let _0x578a98=0x0;_0x578a98<_0x35b1a8[_0x24535d(0x1c52)][_0x24535d(0xbae)][_0x24535d(0x1b9e)];_0x578a98++){_0x13fd63[_0x24535d(0x1bd0)]({'title':_0x35b1a8[_0x24535d(0x1c52)][_0x24535d(0xbae)][_0x578a98][_0x24535d(0x2185)],'msg':_0x35b1a8['data'][_0x24535d(0xbae)][_0x578a98][_0x24535d(0x18ca)]});}}else _0x13fd63[_0x24535d(0x1bd0)]({'title':_0x35b1a8[_0x24535d(0x10b3)]?'API:'+_0x35b1a8[_0x24535d(0x10b3)]+_0x24535d(0x21db)+_0x35b1a8[_0x24535d(0x2115)]:_0x24535d(0x978),'msg':_0x35b1a8[_0x24535d(0x1c52)]?JSON[_0x24535d(0x2317)](_0x35b1a8[_0x24535d(0x1c52)][_0x24535d(0x18ca)]):_0x35b1a8[_0x24535d(0x2915)]()});});}function _0x39dc3e(_0x1b8252){const _0xc837dc=_0x197a44;_0x404850[_0xc837dc(0xbae)]=[];const _0x1a0e68=_0x588852[_0xc837dc(0x856)]()[_0xc837dc(0x2021)]('Are\x20you\x20sure?')[_0xc837dc(0x12b8)](_0xc837dc(0x206c))[_0xc837dc(0x213e)](_0xc837dc(0x31e))['ok'](_0xc837dc(0x2664))[_0xc837dc(0x101a)](_0xc837dc(0x1dc6))[_0xc837dc(0x2283)](_0x1b8252);_0x588852[_0xc837dc(0xa60)](_0x1a0e68)['then'](function(){const _0x587c9c=_0xc837dc;_0x585b1a[_0x587c9c(0x26ff)][_0x587c9c(0xabd)]({'id':_0x404850[_0x587c9c(0x1d4b)]['id']})[_0x587c9c(0x15e7)][_0x587c9c(0x64a)](function(){const _0x3024f5=_0x587c9c;_0x28c606()[_0x3024f5(0x21c7)](_0x404850[_0x3024f5(0xae3)],{'id':_0x404850[_0x3024f5(0x1d4b)]['id']}),_0x13fd63[_0x3024f5(0x1339)]({'title':_0x3024f5(0x788),'msg':(_0x404850[_0x3024f5(0x1d4b)]['name']||_0x3024f5(0x1d4b))+'\x20has\x20been\x20deleted!'}),_0x438674(_0x404850[_0x3024f5(0x1d4b)]);})[_0x587c9c(0x20cd)](function(_0x5d9e8e){const _0xfded5f=_0x587c9c;if(_0x5d9e8e[_0xfded5f(0x1c52)]&&_0x5d9e8e[_0xfded5f(0x1c52)][_0xfded5f(0xbae)]&&_0x5d9e8e['data'][_0xfded5f(0xbae)]['length']){_0x404850[_0xfded5f(0xbae)]=_0x5d9e8e[_0xfded5f(0x1c52)][_0xfded5f(0xbae)]||[{'message':_0x5d9e8e['toString'](),'type':_0xfded5f(0x8b3)}];for(let _0x5d0620=0x0;_0x5d0620<_0x5d9e8e['data'][_0xfded5f(0xbae)]['length'];_0x5d0620++){_0x13fd63['error']({'title':_0x5d9e8e['data']['errors'][_0x5d0620]['type'],'msg':_0x5d9e8e[_0xfded5f(0x1c52)][_0xfded5f(0xbae)][_0x5d0620][_0xfded5f(0x18ca)]});}}else _0x13fd63['error']({'title':_0x5d9e8e[_0xfded5f(0x10b3)]?_0xfded5f(0x575)+_0x5d9e8e[_0xfded5f(0x10b3)]+'\x20-\x20'+_0x5d9e8e[_0xfded5f(0x2115)]:_0xfded5f(0x8b3),'msg':_0x5d9e8e[_0xfded5f(0x1c52)]?JSON[_0xfded5f(0x2317)](_0x5d9e8e['data']['message']):_0x5d9e8e[_0xfded5f(0x18ca)]||_0x5d9e8e[_0xfded5f(0x2915)]()});});},function(){});}function _0x28e1ad(_0x1deda0){return _0x1deda0===null?undefined:new Date(_0x1deda0);}function _0x438674(_0x571af2){_0x588852['hide'](_0x571af2);}}const _0x4518ad=_0x2d9c20;;const _0x38eda3=_0x2e4a48['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/configurations/dialog.html/dialog.html';;const _0x514e24=_0x2e4a48['p']+_0x49a1e3(0x22f2);;_0x72af2b[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf)];function _0x72af2b(_0x69345a,_0x3325b3,_0x359699,_0x23b92b,_0x4cc469){const _0x352164=_0x49a1e3,_0x360b3c=this;_0x360b3c[_0x352164(0x1d3d)]=_0x4cc469[_0x352164(0x808)](),_0x360b3c[_0x352164(0x1d4b)]={},_0x360b3c[_0x352164(0x22f4)]={},_0x360b3c['configurations']=[],_0x360b3c[_0x352164(0x1e0f)]=-0x1,_0x360b3c[_0x352164(0x402)],_0x360b3c['init']=_0x45eb88,_0x360b3c[_0x352164(0x664)]=_0x5dfdd,_0x360b3c[_0x352164(0xfd5)]=_0x3005ce,_0x360b3c[_0x352164(0xb16)]=_0x383dcf,_0x360b3c[_0x352164(0x1677)]=[],_0x360b3c[_0x352164(0x193)]=_0xa0fe25,_0x359699['tag'][_0x352164(0x896)]({'nolimit':!![],'sort':_0x352164(0x2494)})[_0x352164(0x15e7)]['then'](function(_0x2968ee){const _0x245129=_0x352164;_0x360b3c[_0x245129(0x16a6)]=_0x2968ee[_0x245129(0x28b8)]?_0x2968ee[_0x245129(0x28b8)]:[];})['catch'](function(_0x4b61a2){const _0x4c0bc9=_0x352164;_0x23b92b[_0x4c0bc9(0x1bd0)]({'title':_0x4b61a2[_0x4c0bc9(0x10b3)]?_0x4c0bc9(0x575)+_0x4b61a2['status']+'\x20-\x20'+_0x4b61a2['statusText']:_0x4c0bc9(0x1738),'msg':_0x4b61a2[_0x4c0bc9(0x1c52)]?JSON['stringify'](_0x4b61a2[_0x4c0bc9(0x1c52)]):_0x4b61a2[_0x4c0bc9(0x2915)]()});});function _0xa0fe25(){const _0x54b8d3=_0x352164;_0x359699[_0x54b8d3(0x250c)][_0x54b8d3(0x1ac6)]({'id':_0x360b3c[_0x54b8d3(0x22f4)]['id'],'ids':_0x360b3c[_0x54b8d3(0x1677)]})[_0x54b8d3(0x15e7)][_0x54b8d3(0x64a)](function(){const _0x5151e6=_0x54b8d3;_0x23b92b['success']({'title':_0x5151e6(0x5c0),'msg':'Tags\x20has\x20been\x20set!'});})['catch'](function(_0x17351b){const _0x61c9ab=_0x54b8d3;_0x23b92b['error']({'title':_0x17351b['status']?'API:'+_0x17351b[_0x61c9ab(0x10b3)]+_0x61c9ab(0x21db)+_0x17351b[_0x61c9ab(0x2115)]:_0x61c9ab(0x10e4),'msg':_0x17351b[_0x61c9ab(0x1c52)]?JSON[_0x61c9ab(0x2317)](_0x17351b[_0x61c9ab(0x1c52)]):_0x17351b[_0x61c9ab(0x2915)]()});});}function _0x45eb88(_0x10f02b,_0x223e42){const _0x65720c=_0x352164;_0x360b3c[_0x65720c(0x1d4b)]=_0x10f02b,_0x360b3c[_0x65720c(0x402)]=typeof _0x223e42!==_0x65720c(0x19a1)?_0x223e42:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x359699['intFreshdeskAccount'][_0x65720c(0x340)]({'id':_0x360b3c[_0x65720c(0x1d4b)]['id'],'sort':_0x65720c(0x260c)})[_0x65720c(0x15e7)]['then'](function(_0x5c341f){const _0x25e4db=_0x65720c;return _0x360b3c[_0x25e4db(0x23a8)]=_0x5c341f['rows']?_0x5c341f[_0x25e4db(0x28b8)]:[],_0x360b3c['configurations'][_0x25e4db(0x1b9e)]&&_0x360b3c[_0x25e4db(0x664)](0x0),_0x359699[_0x25e4db(0xefb)][_0x25e4db(0x896)]({'nolimit':!![],'sort':'name'})[_0x25e4db(0x15e7)];})[_0x65720c(0x64a)](function(_0x21c77c){const _0x2a412d=_0x65720c;_0x360b3c[_0x2a412d(0x145c)]=_0x21c77c[_0x2a412d(0x28b8)]?_0x21c77c['rows']:[],_0x360b3c['variablesById']=_0x28c606()[_0x2a412d(0x161e)](_0x360b3c[_0x2a412d(0x145c)],'id');})[_0x65720c(0x20cd)](function(_0x5881a1){const _0xe043c5=_0x65720c;_0x23b92b[_0xe043c5(0x1bd0)]({'title':_0x5881a1[_0xe043c5(0x10b3)]?'API:'+_0x5881a1[_0xe043c5(0x10b3)]+_0xe043c5(0x21db)+_0x5881a1[_0xe043c5(0x2115)]:'SYSTEM:GETCONFIGURATION','msg':_0x5881a1[_0xe043c5(0x1c52)]?JSON['stringify'](_0x5881a1[_0xe043c5(0x1c52)]):_0x5881a1[_0xe043c5(0x2915)]()});});}function _0x5dfdd(_0x52c3a8){const _0x20a1a8=_0x352164;_0x360b3c['freshdeskConfiguration']=_0x360b3c['configurations'][_0x52c3a8],_0x360b3c[_0x20a1a8(0x1e0f)]=_0x52c3a8,_0x359699[_0x20a1a8(0x250c)][_0x20a1a8(0x241f)]({'id':_0x360b3c[_0x20a1a8(0x22f4)]['id']})[_0x20a1a8(0x15e7)][_0x20a1a8(0x64a)](function(_0x2d2da0){const _0x1c287a=_0x20a1a8;return _0x360b3c['subjects']=_0x2d2da0[_0x1c287a(0x28b8)]?_0x2d2da0[_0x1c287a(0x28b8)]:[],_0x359699['intFreshdeskConfiguration'][_0x1c287a(0x1e33)]({'id':_0x360b3c[_0x1c287a(0x22f4)]['id']})[_0x1c287a(0x15e7)];})['then'](function(_0x1965d2){const _0x93e634=_0x20a1a8;return _0x360b3c['descriptions']=_0x1965d2[_0x93e634(0x28b8)]?_0x1965d2['rows']:[],_0x359699[_0x93e634(0x250c)][_0x93e634(0x5e0)]({'id':_0x360b3c[_0x93e634(0x22f4)]['id']})['$promise'];})['then'](function(_0x21f976){const _0x2d6659=_0x20a1a8;_0x360b3c[_0x2d6659(0xf26)]=_0x21f976[_0x2d6659(0x28b8)]?_0x21f976['rows']:[];})['catch'](function(_0x380bcb){const _0x5dd644=_0x20a1a8;_0x23b92b[_0x5dd644(0x1bd0)]({'title':_0x380bcb[_0x5dd644(0x10b3)]?_0x5dd644(0x575)+_0x380bcb[_0x5dd644(0x10b3)]+_0x5dd644(0x21db)+_0x380bcb[_0x5dd644(0x2115)]:_0x5dd644(0x15c1),'msg':_0x380bcb[_0x5dd644(0x1c52)]?JSON['stringify'](_0x380bcb[_0x5dd644(0x1c52)]):_0x380bcb[_0x5dd644(0x2915)]()});}),_0x359699[_0x20a1a8(0x250c)][_0x20a1a8(0x11f1)]({'id':_0x360b3c[_0x20a1a8(0x22f4)]['id']})[_0x20a1a8(0x15e7)][_0x20a1a8(0x64a)](function(_0x2b1616){const _0x4b9b79=_0x20a1a8;_0x360b3c[_0x4b9b79(0x1677)]=_0x2b1616[_0x4b9b79(0x28b8)]?_0x28c606()['map'](_0x2b1616[_0x4b9b79(0x28b8)],'id'):[];})[_0x20a1a8(0x20cd)](function(_0x391bca){const _0x73f6b5=_0x20a1a8;_0x23b92b[_0x73f6b5(0x1bd0)]({'title':_0x391bca['status']?'API:'+_0x391bca[_0x73f6b5(0x10b3)]+_0x73f6b5(0x21db)+_0x391bca[_0x73f6b5(0x2115)]:_0x73f6b5(0x1738),'msg':_0x391bca[_0x73f6b5(0x1c52)]?JSON[_0x73f6b5(0x2317)](_0x391bca[_0x73f6b5(0x1c52)]):_0x391bca[_0x73f6b5(0x2915)]()});});}function _0x3005ce(_0x50cc30,_0x3f85e3){const _0x3a04de=_0x352164;_0x69345a[_0x3a04de(0xa60)]({'controller':_0x3a04de(0x60f),'controllerAs':'vm','templateUrl':_0x38eda3,'parent':angular[_0x3a04de(0x1f81)](_0x3325b3[_0x3a04de(0xb49)]),'targetEvent':_0x50cc30,'clickOutsideToClose':!![],'locals':{'freshdeskConfiguration':_0x3f85e3,'configurations':_0x360b3c[_0x3a04de(0x23a8)],'license':null,'setting':null,'crudPermissions':_0x360b3c[_0x3a04de(0x402)]}})[_0x3a04de(0x988)](function(){const _0x2743d0=_0x3a04de;_0x360b3c[_0x2743d0(0x664)](0x0);});}function _0x383dcf(_0x37c2e1,_0xa922de){const _0x19ef68=_0x352164,_0x2ba112=_0x69345a['confirm']()[_0x19ef68(0x2021)](_0x19ef68(0x27a3))[_0x19ef68(0x33a)](_0x19ef68(0x50b)+(_0xa922de[_0x19ef68(0x2494)]||_0x19ef68(0x22f4))+_0x19ef68(0x26d0)+_0x19ef68(0x4b8))[_0x19ef68(0x213e)](_0x19ef68(0x82b))[_0x19ef68(0x2283)](_0x37c2e1)['ok']('OK')[_0x19ef68(0x101a)](_0x19ef68(0x18fd));_0x69345a[_0x19ef68(0xa60)](_0x2ba112)[_0x19ef68(0x64a)](function(){const _0x437a47=_0x19ef68;_0x359699[_0x437a47(0x250c)][_0x437a47(0xabd)]({'id':_0xa922de['id']})[_0x437a47(0x15e7)]['then'](function(){const _0x42579a=_0x437a47;_0x28c606()[_0x42579a(0x21c7)](_0x360b3c[_0x42579a(0x23a8)],{'id':_0xa922de['id']}),_0x23b92b[_0x42579a(0x1339)]({'title':_0x42579a(0x123d),'msg':_0xa922de[_0x42579a(0x2494)]?_0xa922de[_0x42579a(0x2494)]+_0x42579a(0x1fa8):''});})[_0x437a47(0x20cd)](function(_0x1b6289){const _0x4b335a=_0x437a47;_0x23b92b[_0x4b335a(0x1bd0)]({'title':_0x1b6289[_0x4b335a(0x10b3)]?'API:'+_0x1b6289['status']+_0x4b335a(0x21db)+_0x1b6289[_0x4b335a(0x2115)]:_0x4b335a(0x2925),'msg':_0x1b6289[_0x4b335a(0x1c52)]?JSON[_0x4b335a(0x2317)](_0x1b6289['data']):_0x1b6289[_0x4b335a(0x2915)]()});})[_0x437a47(0x988)](function(){const _0x133d80=_0x437a47;_0x360b3c[_0x133d80(0x664)](0x0);});},function(){const _0x1d4d12=_0x19ef68;console[_0x1d4d12(0x9b4)](_0x1d4d12(0x18fd));});}_0x360b3c[_0x352164(0x2639)]=[],_0x360b3c[_0x352164(0x22b1)]=_0x409027,_0x360b3c[_0x352164(0xa6a)]=_0x5ea13a,_0x360b3c['deleteSelectedSubjects']=_0x36d78c;function _0x409027(_0x4c09ab,_0x34610c){const _0x11bd4c=_0x352164;_0x69345a[_0x11bd4c(0xa60)]({'controller':'CreateOrEditFreshdeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x514e24,'parent':angular['element'](_0x3325b3[_0x11bd4c(0xb49)]),'targetEvent':_0x4c09ab,'clickOutsideToClose':!![],'locals':{'type':_0x11bd4c(0x25bc),'item':_0x34610c,'items':_0x360b3c[_0x11bd4c(0x29b)],'configuration':_0x360b3c[_0x11bd4c(0x22f4)],'account':_0x360b3c['freshdeskAccount'],'license':null,'setting':null,'crudPermissions':_0x360b3c['crudPermissions']}});}function _0x4ab067(_0x49e2a8){const _0x1ab4f2=_0x352164;_0x359699[_0x1ab4f2(0x1c9)]['delete']({'id':_0x49e2a8['id']})[_0x1ab4f2(0x15e7)][_0x1ab4f2(0x64a)](function(){const _0x9200be=_0x1ab4f2;_0x28c606()[_0x9200be(0x21c7)](_0x360b3c[_0x9200be(0x29b)],{'id':_0x49e2a8['id']}),_0x23b92b[_0x9200be(0x1339)]({'title':'Subject\x20deleted!','msg':_0x9200be(0x1a0c)});})[_0x1ab4f2(0x20cd)](function(_0x54cf1d){const _0x54c84e=_0x1ab4f2;_0x23b92b[_0x54c84e(0x1bd0)]({'title':_0x54cf1d[_0x54c84e(0x10b3)]?_0x54c84e(0x575)+_0x54cf1d[_0x54c84e(0x10b3)]+_0x54c84e(0x21db)+_0x54cf1d[_0x54c84e(0x2115)]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x54cf1d[_0x54c84e(0x1c52)]?JSON[_0x54c84e(0x2317)](_0x54cf1d[_0x54c84e(0x1c52)]):_0x54cf1d['toString']()});});}function _0x5ea13a(_0xb30030,_0x10b999){const _0x42f473=_0x352164,_0xffe15c=_0x69345a['confirm']()[_0x42f473(0x2021)](_0x42f473(0x189a))['htmlContent'](_0x42f473(0x1e6a)+'\x20will\x20be\x20deleted.')[_0x42f473(0x213e)](_0x42f473(0x204f))[_0x42f473(0x2283)](_0xb30030)['ok']('OK')[_0x42f473(0x101a)]('CANCEL');_0x69345a[_0x42f473(0xa60)](_0xffe15c)['then'](function(){_0x4ab067(_0x10b999);},function(){const _0x5547a6=_0x42f473;console['log'](_0x5547a6(0x18fd));});}function _0x36d78c(_0x923930){const _0x1f1fec=_0x352164,_0x3065be=_0x69345a['confirm']()[_0x1f1fec(0x2021)](_0x1f1fec(0x1cb4))[_0x1f1fec(0x33a)](_0x1f1fec(0x50b)+_0x360b3c['selectedSubjects'][_0x1f1fec(0x1b9e)]+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x1f1fec(0x24f6))[_0x1f1fec(0x2283)](_0x923930)['ok']('OK')[_0x1f1fec(0x101a)](_0x1f1fec(0x18fd));_0x69345a[_0x1f1fec(0xa60)](_0x3065be)[_0x1f1fec(0x64a)](function(){const _0x5812c2=_0x1f1fec;_0x360b3c[_0x5812c2(0x2639)][_0x5812c2(0x1397)](function(_0x54c384){_0x4ab067(_0x54c384);}),_0x360b3c[_0x5812c2(0x2639)]=[];});}_0x360b3c[_0x352164(0x21c1)]=[],_0x360b3c[_0x352164(0x3a2)]=_0x380d58,_0x360b3c[_0x352164(0x183a)]=_0x4131a6,_0x360b3c['deleteSelectedDescriptions']=_0x11513a;function _0x380d58(_0x3ced48,_0x3dbfe4){const _0x494162=_0x352164;_0x69345a['show']({'controller':_0x494162(0x220a),'controllerAs':'vm','templateUrl':_0x514e24,'parent':angular[_0x494162(0x1f81)](_0x3325b3[_0x494162(0xb49)]),'targetEvent':_0x3ced48,'clickOutsideToClose':!![],'locals':{'type':_0x494162(0x23c3),'item':_0x3dbfe4,'items':_0x360b3c[_0x494162(0x24b6)],'configuration':_0x360b3c[_0x494162(0x22f4)],'account':_0x360b3c[_0x494162(0x1d4b)],'license':null,'setting':null,'crudPermissions':_0x360b3c[_0x494162(0x402)]}});}function _0x20638d(_0x8a9113){const _0x6951c7=_0x352164;_0x359699[_0x6951c7(0x1c9)][_0x6951c7(0xabd)]({'id':_0x8a9113['id']})[_0x6951c7(0x15e7)][_0x6951c7(0x64a)](function(){const _0x4c72e1=_0x6951c7;_0x28c606()[_0x4c72e1(0x21c7)](_0x360b3c[_0x4c72e1(0x24b6)],{'id':_0x8a9113['id']}),_0x23b92b[_0x4c72e1(0x1339)]({'title':_0x4c72e1(0x166a),'msg':_0x4c72e1(0x213f)});})[_0x6951c7(0x20cd)](function(_0x5ce8d2){const _0x97dadb=_0x6951c7;_0x23b92b[_0x97dadb(0x1bd0)]({'title':_0x5ce8d2[_0x97dadb(0x10b3)]?'API:'+_0x5ce8d2[_0x97dadb(0x10b3)]+_0x97dadb(0x21db)+_0x5ce8d2['statusText']:_0x97dadb(0x12a9),'msg':_0x5ce8d2[_0x97dadb(0x1c52)]?JSON[_0x97dadb(0x2317)](_0x5ce8d2['data']):_0x5ce8d2['toString']()});});}function _0x4131a6(_0x598cbc,_0x293898){const _0x230a94=_0x352164,_0x85dcaf=_0x69345a[_0x230a94(0x856)]()[_0x230a94(0x2021)](_0x230a94(0x80e))['htmlContent']('Description'+'\x20will\x20be\x20deleted.')[_0x230a94(0x213e)](_0x230a94(0x748))['targetEvent'](_0x598cbc)['ok']('OK')[_0x230a94(0x101a)]('CANCEL');_0x69345a[_0x230a94(0xa60)](_0x85dcaf)[_0x230a94(0x64a)](function(){_0x20638d(_0x293898);},function(){const _0x34f979=_0x230a94;console[_0x34f979(0x9b4)](_0x34f979(0x18fd));});}function _0x11513a(_0x56edf6){const _0x4a9603=_0x352164,_0x2417a6=_0x69345a[_0x4a9603(0x856)]()[_0x4a9603(0x2021)](_0x4a9603(0xbe4))['htmlContent'](_0x4a9603(0x50b)+_0x360b3c['selectedDescriptions'][_0x4a9603(0x1b9e)]+_0x4a9603(0x163e)+_0x4a9603(0x4b8))['ariaLabel'](_0x4a9603(0x531))[_0x4a9603(0x2283)](_0x56edf6)['ok']('OK')[_0x4a9603(0x101a)](_0x4a9603(0x18fd));_0x69345a[_0x4a9603(0xa60)](_0x2417a6)[_0x4a9603(0x64a)](function(){const _0x34833e=_0x4a9603;_0x360b3c[_0x34833e(0x21c1)][_0x34833e(0x1397)](function(_0x42368c){_0x20638d(_0x42368c);}),_0x360b3c[_0x34833e(0x21c1)]=[];});}_0x360b3c['selectedFields']=[],_0x360b3c[_0x352164(0x569)]=_0xdf91da,_0x360b3c[_0x352164(0x1436)]=_0x13ea44,_0x360b3c[_0x352164(0x1e89)]=_0x3f4cc2;function _0xdf91da(_0x4919a3,_0x3490e1){const _0x40c068=_0x352164;_0x69345a[_0x40c068(0xa60)]({'controller':_0x40c068(0x220a),'controllerAs':'vm','templateUrl':_0x514e24,'parent':angular[_0x40c068(0x1f81)](_0x3325b3[_0x40c068(0xb49)]),'targetEvent':_0x4919a3,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x3490e1,'items':_0x360b3c['fields'],'configuration':_0x360b3c[_0x40c068(0x22f4)],'account':_0x360b3c['freshdeskAccount'],'license':null,'setting':null,'crudPermissions':_0x360b3c[_0x40c068(0x402)]}});}function _0x366c2d(_0x22a110){const _0x11e89d=_0x352164;_0x359699['intFreshdeskField'][_0x11e89d(0xabd)]({'id':_0x22a110['id']})[_0x11e89d(0x15e7)][_0x11e89d(0x64a)](function(){const _0x1be92c=_0x11e89d;_0x28c606()[_0x1be92c(0x21c7)](_0x360b3c[_0x1be92c(0xf26)],{'id':_0x22a110['id']}),_0x23b92b[_0x1be92c(0x1339)]({'title':'Field\x20deleted!','msg':_0x1be92c(0x14b)});})[_0x11e89d(0x20cd)](function(_0xf9d4ac){const _0x9e7172=_0x11e89d;_0x23b92b[_0x9e7172(0x1bd0)]({'title':_0xf9d4ac[_0x9e7172(0x10b3)]?_0x9e7172(0x575)+_0xf9d4ac[_0x9e7172(0x10b3)]+_0x9e7172(0x21db)+_0xf9d4ac['statusText']:_0x9e7172(0x12a9),'msg':_0xf9d4ac[_0x9e7172(0x1c52)]?JSON['stringify'](_0xf9d4ac[_0x9e7172(0x1c52)]):_0xf9d4ac[_0x9e7172(0x2915)]()});});}function _0x13ea44(_0x21df17,_0x292f4f){const _0x49e043=_0x352164,_0x2cb496=_0x69345a['confirm']()['title'](_0x49e043(0x865))['htmlContent']('Field'+_0x49e043(0x4b8))[_0x49e043(0x213e)](_0x49e043(0x22d7))[_0x49e043(0x2283)](_0x21df17)['ok']('OK')[_0x49e043(0x101a)](_0x49e043(0x18fd));_0x69345a[_0x49e043(0xa60)](_0x2cb496)['then'](function(){_0x366c2d(_0x292f4f);},function(){const _0x5e84ab=_0x49e043;console[_0x5e84ab(0x9b4)]('CANCEL');});}function _0x3f4cc2(_0xd80710){const _0x3346f3=_0x352164,_0x1a29c6=_0x69345a[_0x3346f3(0x856)]()['title'](_0x3346f3(0x17bf))[_0x3346f3(0x33a)](_0x3346f3(0x50b)+_0x360b3c[_0x3346f3(0xa3a)][_0x3346f3(0x1b9e)]+_0x3346f3(0x163e)+_0x3346f3(0x4b8))[_0x3346f3(0x213e)](_0x3346f3(0x11bc))['targetEvent'](_0xd80710)['ok']('OK')[_0x3346f3(0x101a)](_0x3346f3(0x18fd));_0x69345a[_0x3346f3(0xa60)](_0x1a29c6)[_0x3346f3(0x64a)](function(){const _0x1a0505=_0x3346f3;_0x360b3c[_0x1a0505(0xa3a)][_0x1a0505(0x1397)](function(_0x298387){_0x366c2d(_0x298387);}),_0x360b3c['selectedFields']=[];});}}const _0x54a548=_0x72af2b;;_0x3cf648[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),'$location','$mdDialog','$q',_0x49a1e3(0x298c),'toasty',_0x49a1e3(0x23a8),_0x49a1e3(0x22f4),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x3cf648(_0x2ef219,_0x5edd47,_0x12a429,_0x3f4d06,_0x36b5c8,_0x5e72c9,_0x1fcb16,_0x31e348,_0x439825,_0x41f9ef,_0x594b07,_0x1f0c96,_0x21da83,_0x4924f8){const _0x5cf23f=_0x49a1e3,_0x2dfc79=this;_0x2dfc79['currentUser']=_0x594b07[_0x5cf23f(0x808)](),_0x2dfc79['errors']=[],_0x2dfc79['setting']=_0x21da83,_0x2dfc79[_0x5cf23f(0x1947)]=_0x1f0c96,_0x2dfc79['crudPermissions']=_0x4924f8,_0x2dfc79[_0x5cf23f(0x6c2)]={},_0x2dfc79[_0x5cf23f(0xccc)]=_0x2dfc79[_0x5cf23f(0x28d6)]&&_0x2dfc79[_0x5cf23f(0x28d6)][_0x5cf23f(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2dfc79[_0x5cf23f(0x2021)]=_0x5cf23f(0xa9d),_0x2dfc79[_0x5cf23f(0x22f4)]=angular['copy'](_0x439825),_0x2dfc79[_0x5cf23f(0x23a8)]=_0x31e348,_0x2dfc79[_0x5cf23f(0x1ee6)]=![];!_0x2dfc79[_0x5cf23f(0x22f4)]&&(_0x2dfc79['freshdeskConfiguration']={'channel':_0x5cf23f(0x227c),'type':_0x5cf23f(0x12a4)},_0x2dfc79['title']='INTEGRATIONS.NEW_FRESHDESKCONFIGURATION',_0x2dfc79[_0x5cf23f(0x1ee6)]=!![]);_0x2dfc79[_0x5cf23f(0x1cd2)]=_0x4573f9,_0x2dfc79[_0x5cf23f(0x2875)]=_0x29712d,_0x2dfc79[_0x5cf23f(0xb16)]=_0x16e418,_0x2dfc79[_0x5cf23f(0x1605)]=_0x48f7c4,_0x2dfc79[_0x5cf23f(0x16cb)]=_0x10de65;function _0x4573f9(){const _0x3b37bd=_0x5cf23f;_0x2dfc79['errors']=[],_0x41f9ef[_0x3b37bd(0x26ff)][_0x3b37bd(0x1d2d)]({'id':_0x5edd47['params']['id']},_0x2dfc79['freshdeskConfiguration'])[_0x3b37bd(0x15e7)][_0x3b37bd(0x64a)](function(_0x4f01cd){const _0x146fba=_0x3b37bd;_0x2dfc79[_0x146fba(0x23a8)][_0x146fba(0x1891)](_0x4f01cd['toJSON']()),_0x1fcb16['success']({'title':_0x146fba(0x388),'msg':_0x2dfc79['freshdeskConfiguration'][_0x146fba(0x2494)]?_0x2dfc79[_0x146fba(0x22f4)][_0x146fba(0x2494)]+_0x146fba(0x258d):''}),_0x10de65(_0x4f01cd);})[_0x3b37bd(0x20cd)](function(_0x4344ee){const _0x2c3325=_0x3b37bd;if(_0x4344ee[_0x2c3325(0x1c52)]&&_0x4344ee[_0x2c3325(0x1c52)][_0x2c3325(0xbae)]&&_0x4344ee[_0x2c3325(0x1c52)][_0x2c3325(0xbae)][_0x2c3325(0x1b9e)]){_0x2dfc79[_0x2c3325(0xbae)]=_0x4344ee[_0x2c3325(0x1c52)][_0x2c3325(0xbae)]||[{'message':_0x4344ee[_0x2c3325(0x2915)](),'type':'api.intFreshdeskConfiguration.save'}];for(let _0xc0927a=0x0;_0xc0927a<_0x4344ee[_0x2c3325(0x1c52)]['errors'][_0x2c3325(0x1b9e)];_0xc0927a+=0x1){_0x1fcb16[_0x2c3325(0x1bd0)]({'title':_0x4344ee[_0x2c3325(0x1c52)][_0x2c3325(0xbae)][_0xc0927a][_0x2c3325(0x2185)],'msg':_0x4344ee[_0x2c3325(0x1c52)][_0x2c3325(0xbae)][_0xc0927a][_0x2c3325(0x18ca)]});}}else _0x1fcb16[_0x2c3325(0x1bd0)]({'title':_0x4344ee[_0x2c3325(0x10b3)]?_0x2c3325(0x575)+_0x4344ee['status']+_0x2c3325(0x21db)+_0x4344ee[_0x2c3325(0x2115)]:_0x2c3325(0x132d),'msg':_0x4344ee['data']?JSON[_0x2c3325(0x2317)](_0x4344ee[_0x2c3325(0x1c52)][_0x2c3325(0x18ca)]):_0x4344ee[_0x2c3325(0x2915)]()});});}function _0x29712d(){const _0x22d986=_0x5cf23f;_0x2dfc79['errors']=[],_0x41f9ef['intFreshdeskConfiguration'][_0x22d986(0x2603)]({'id':_0x2dfc79['freshdeskConfiguration']['id']},_0x2dfc79[_0x22d986(0x22f4)])[_0x22d986(0x15e7)][_0x22d986(0x64a)](function(_0x4ea3b3){const _0x119033=_0x22d986,_0x468397=_0x28c606()[_0x119033(0x27bc)](_0x2dfc79[_0x119033(0x23a8)],{'id':_0x4ea3b3['id']});_0x468397&&_0x28c606()[_0x119033(0x14fe)](_0x468397,_0x28c606()[_0x119033(0x27bb)](_0x4ea3b3[_0x119033(0x14f8)](),_0x28c606()['keys'](_0x468397))),_0x1fcb16['success']({'title':_0x119033(0x1bcd),'msg':_0x2dfc79[_0x119033(0x22f4)][_0x119033(0x2494)]?_0x2dfc79[_0x119033(0x22f4)][_0x119033(0x2494)]+'\x20has\x20been\x20saved!':''}),_0x10de65(_0x4ea3b3);})[_0x22d986(0x20cd)](function(_0x1ca133){const _0xabd513=_0x22d986;if(_0x1ca133['data']&&_0x1ca133['data']['errors']&&_0x1ca133[_0xabd513(0x1c52)][_0xabd513(0xbae)]['length']){_0x2dfc79['errors']=_0x1ca133['data'][_0xabd513(0xbae)]||[{'message':_0x1ca133['toString'](),'type':'api.intFreshdeskConfiguration.update'}];for(let _0x5aac65=0x0;_0x5aac65<_0x1ca133[_0xabd513(0x1c52)][_0xabd513(0xbae)]['length'];_0x5aac65++){_0x1fcb16[_0xabd513(0x1bd0)]({'title':_0x1ca133['data'][_0xabd513(0xbae)][_0x5aac65][_0xabd513(0x2185)],'msg':_0x1ca133[_0xabd513(0x1c52)][_0xabd513(0xbae)][_0x5aac65][_0xabd513(0x18ca)]});}}else _0x1fcb16[_0xabd513(0x1bd0)]({'title':_0x1ca133[_0xabd513(0x10b3)]?'API:'+_0x1ca133[_0xabd513(0x10b3)]+_0xabd513(0x21db)+_0x1ca133[_0xabd513(0x2115)]:_0xabd513(0x1c17),'msg':_0x1ca133[_0xabd513(0x1c52)]?JSON[_0xabd513(0x2317)](_0x1ca133['data'][_0xabd513(0x18ca)]):_0x1ca133['toString']()});});}function _0x16e418(_0x1d8e4c){const _0x4050d5=_0x5cf23f;_0x2dfc79['errors']=[];const _0xa6fb00=_0x3f4d06[_0x4050d5(0x856)]()[_0x4050d5(0x2021)](_0x4050d5(0x103a))['content'](_0x4050d5(0xe4d))[_0x4050d5(0x213e)](_0x4050d5(0x22e8))['ok'](_0x4050d5(0x2664))['cancel'](_0x4050d5(0x1dc6))[_0x4050d5(0x2283)](_0x1d8e4c);_0x3f4d06['show'](_0xa6fb00)[_0x4050d5(0x64a)](function(){const _0x3e07b7=_0x4050d5;_0x41f9ef[_0x3e07b7(0x250c)]['delete']({'id':_0x2dfc79['freshdeskConfiguration']['id']})[_0x3e07b7(0x15e7)][_0x3e07b7(0x64a)](function(){const _0x3bb913=_0x3e07b7;_0x28c606()[_0x3bb913(0x21c7)](_0x2dfc79[_0x3bb913(0x23a8)],{'id':_0x2dfc79['freshdeskConfiguration']['id']}),_0x1fcb16[_0x3bb913(0x1339)]({'title':_0x3bb913(0x1da1),'msg':(_0x2dfc79[_0x3bb913(0x22f4)]['name']||_0x3bb913(0x22f4))+_0x3bb913(0x1fa8)}),_0x10de65(_0x2dfc79[_0x3bb913(0x22f4)]);})['catch'](function(_0x5c05cb){const _0x26e9bd=_0x3e07b7;if(_0x5c05cb[_0x26e9bd(0x1c52)]&&_0x5c05cb['data'][_0x26e9bd(0xbae)]&&_0x5c05cb[_0x26e9bd(0x1c52)][_0x26e9bd(0xbae)][_0x26e9bd(0x1b9e)]){_0x2dfc79[_0x26e9bd(0xbae)]=_0x5c05cb['data'][_0x26e9bd(0xbae)]||[{'message':_0x5c05cb[_0x26e9bd(0x2915)](),'type':'api.intFreshdeskConfiguration.delete'}];for(let _0x492046=0x0;_0x492046<_0x5c05cb[_0x26e9bd(0x1c52)][_0x26e9bd(0xbae)][_0x26e9bd(0x1b9e)];_0x492046++){_0x1fcb16[_0x26e9bd(0x1bd0)]({'title':_0x5c05cb[_0x26e9bd(0x1c52)][_0x26e9bd(0xbae)][_0x492046]['type'],'msg':_0x5c05cb[_0x26e9bd(0x1c52)][_0x26e9bd(0xbae)][_0x492046][_0x26e9bd(0x18ca)]});}}else _0x1fcb16[_0x26e9bd(0x1bd0)]({'title':_0x5c05cb['status']?_0x26e9bd(0x575)+_0x5c05cb['status']+'\x20-\x20'+_0x5c05cb[_0x26e9bd(0x2115)]:_0x26e9bd(0x282f),'msg':_0x5c05cb['data']?JSON[_0x26e9bd(0x2317)](_0x5c05cb[_0x26e9bd(0x1c52)]['message']):_0x5c05cb[_0x26e9bd(0x18ca)]||_0x5c05cb['toString']()});});},function(){});}function _0x48f7c4(_0x532830){return _0x532830===null?undefined:new Date(_0x532830);}function _0x10de65(_0x59c1e7){_0x3f4d06['hide'](_0x59c1e7);}}const _0x2740f0=_0x3cf648;;_0x185111[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),_0x49a1e3(0x680),_0x49a1e3(0x9a4),_0x49a1e3(0x23cb),'item','account',_0x49a1e3(0x2185),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x185111(_0x57c698,_0x1628fa,_0x6ec6b7,_0x521535,_0x373082,_0x3514a1,_0x5d6707,_0x2f5b7b,_0x1a2ccc,_0x21de51,_0x2d6a43,_0x3c8eeb,_0x310219){const _0x8b3af1=_0x49a1e3,_0x28c561=this;_0x28c561[_0x8b3af1(0x1d3d)]=_0x3c8eeb[_0x8b3af1(0x808)](),_0x28c561[_0x8b3af1(0xbae)]=[],_0x28c561[_0x8b3af1(0x2021)]=_0x8b3af1(0x1bfd)+_0x28c606()['toUpper'](_0x21de51),_0x28c561[_0x8b3af1(0x1656)]=angular[_0x8b3af1(0x289e)](_0x2f5b7b),_0x28c561['items']=_0x5d6707,_0x28c561['type']=_0x21de51,_0x28c561['crudPermissions']=_0x310219,_0x28c561['newItem']=![];!_0x28c561[_0x8b3af1(0x1656)]&&(_0x28c561[_0x8b3af1(0x1656)]={'type':_0x8b3af1(0x108c)},_0x28c561[_0x8b3af1(0x1656)][_0x28c606()[_0x8b3af1(0xd56)](_0x21de51)+'Id']=_0x3514a1['id'],_0x28c561[_0x8b3af1(0x2021)]=_0x8b3af1(0x1ad9)+_0x28c606()[_0x8b3af1(0x2201)](_0x21de51),_0x28c561['newItem']=!![]);_0x28c561[_0x8b3af1(0x2889)]=_0x1571fb,_0x28c561[_0x8b3af1(0x1dbc)]=_0xbba72,_0x28c561['deleteItem']=_0x21a4aa,_0x28c561[_0x8b3af1(0x14d)]=_0x37b437,_0x28c561[_0x8b3af1(0x16cb)]=_0x5256bf,_0x2d6a43['variable'][_0x8b3af1(0x896)]({'nolimit':!![]})['$promise'][_0x8b3af1(0x64a)](function(_0x4a72d6){const _0x35c7d2=_0x8b3af1;return _0x28c561['variables']=_0x4a72d6[_0x35c7d2(0x28b8)]?_0x4a72d6[_0x35c7d2(0x28b8)]:[],_0x2d6a43['voiceAgentReport'][_0x35c7d2(0xa81)]()[_0x35c7d2(0x15e7)];})[_0x8b3af1(0x64a)](function(_0x22ce54){const _0xd024a3=_0x8b3af1;return _0x28c561[_0xd024a3(0x109a)]=_0x28c606()[_0xd024a3(0xde7)](_0x28c606()[_0xd024a3(0x1ec6)](_0x22ce54),[_0xd024a3(0x15e7),_0xd024a3(0x19ba),'createdAt',_0xd024a3(0x2056),_0xd024a3(0x2785)]),_0x28c561[_0xd024a3(0x109a)][_0xd024a3(0x1954)]('recordingURL'),_0x2d6a43[_0xd024a3(0x1002)][_0xd024a3(0xa81)]()[_0xd024a3(0x15e7)];})[_0x8b3af1(0x64a)](function(_0x5cb0f9){const _0xb615bd=_0x8b3af1;_0x28c561['voiceDialReportColumns']=_0x28c606()[_0xb615bd(0xde7)](_0x28c606()[_0xb615bd(0x1ec6)](_0x5cb0f9),[_0xb615bd(0x15e7),'$resolved',_0xb615bd(0x2378),_0xb615bd(0x2056),_0xb615bd(0x2785)]),_0x28c561[_0xb615bd(0xdae)][_0xb615bd(0x1954)](_0xb615bd(0xdd4));})['catch'](function(_0x331abe){const _0x1a3fdf=_0x8b3af1;_0x373082[_0x1a3fdf(0x1bd0)]({'title':_0x331abe[_0x1a3fdf(0x10b3)]?_0x1a3fdf(0x575)+_0x331abe['status']+_0x1a3fdf(0x21db)+_0x331abe['statusText']:'SYSTEM:GETVARIABLES','msg':_0x331abe['data']?JSON[_0x1a3fdf(0x2317)](_0x331abe[_0x1a3fdf(0x1c52)]):_0x331abe[_0x1a3fdf(0x2915)]()});}),_0x2d6a43[_0x8b3af1(0x26ff)][_0x8b3af1(0x5e0)]({'id':_0x1a2ccc['id'],'ticketType':_0x3514a1[_0x8b3af1(0x1545)]?_0x3514a1['ticketType']:undefined})[_0x8b3af1(0x15e7)][_0x8b3af1(0x64a)](function(_0x82ab29){const _0x393604=_0x8b3af1;_0x28c561['accountConnected']=!![],_0x28c561[_0x393604(0xf26)]=_0x82ab29['rows']?_0x82ab29[_0x393604(0x28b8)]:[],_0x28c561['item'][_0x393604(0x197)]&&(_0x28c561[_0x393604(0x1753)]=_0x28c606()[_0x393604(0x27bc)](_0x28c561[_0x393604(0xf26)],{'id':_0x28c561[_0x393604(0x1656)][_0x393604(0x197)]}));})[_0x8b3af1(0x20cd)](function(_0x40bdd1){const _0x1216d2=_0x8b3af1;_0x28c561[_0x1216d2(0x854)]=![],console[_0x1216d2(0x1bd0)](_0x40bdd1);});function _0x1571fb(){const _0x32e783=_0x8b3af1;_0x28c561[_0x32e783(0xbae)]=[],_0x28c561[_0x32e783(0x1753)]&&(_0x28c561[_0x32e783(0x1656)][_0x32e783(0x197)]=_0x28c561[_0x32e783(0x1753)]['id'],_0x28c561['item'][_0x32e783(0x25fc)]=_0x28c561[_0x32e783(0x1753)][_0x32e783(0x2494)],_0x28c561['item'][_0x32e783(0x1753)]=_0x28c561[_0x32e783(0x1753)]['custom']),_0x2d6a43[_0x32e783(0x1c9)]['save'](_0x28c561[_0x32e783(0x1656)])[_0x32e783(0x15e7)][_0x32e783(0x64a)](function(_0x4567c2){const _0x577570=_0x32e783;_0x28c561['items']['unshift'](_0x4567c2),_0x373082[_0x577570(0x1339)]({'title':_0x28c606()[_0x577570(0xd56)](_0x21de51)+_0x577570(0xe0b),'msg':_0x28c606()['capitalize'](_0x21de51)+_0x577570(0x258d)}),_0x5256bf();})['catch'](function(_0x13cca3){const _0x51b2cf=_0x32e783;console[_0x51b2cf(0x1bd0)](_0x13cca3),_0x28c561[_0x51b2cf(0xbae)]=_0x13cca3[_0x51b2cf(0x1c52)][_0x51b2cf(0xbae)]||[{'message':_0x13cca3[_0x51b2cf(0x2915)](),'type':_0x51b2cf(0x1675)}];});}function _0xbba72(){const _0x33a519=_0x8b3af1;_0x28c561['errors']=[],_0x28c561[_0x33a519(0x1753)]&&(_0x28c561[_0x33a519(0x1656)][_0x33a519(0x197)]=_0x28c561['customField']['id'],_0x28c561[_0x33a519(0x1656)][_0x33a519(0x25fc)]=_0x28c561[_0x33a519(0x1753)][_0x33a519(0x2494)],_0x28c561[_0x33a519(0x1656)][_0x33a519(0x1753)]=_0x28c561[_0x33a519(0x1753)]['custom']),_0x2d6a43[_0x33a519(0x1c9)][_0x33a519(0x2603)]({'id':_0x28c561[_0x33a519(0x1656)]['id']},_0x28c561[_0x33a519(0x1656)])[_0x33a519(0x15e7)][_0x33a519(0x64a)](function(_0x656c31){const _0x20e140=_0x33a519,_0x39fb2f=_0x28c606()['find'](_0x28c561[_0x20e140(0x23cb)],{'id':_0x656c31['id']});_0x39fb2f&&_0x28c606()[_0x20e140(0x14fe)](_0x39fb2f,_0x656c31),_0x373082[_0x20e140(0x1339)]({'title':_0x28c606()[_0x20e140(0xd56)](_0x21de51)+_0x20e140(0x2776),'msg':_0x28c606()[_0x20e140(0xd56)](_0x21de51)+_0x20e140(0x271)}),_0x5256bf();})[_0x33a519(0x20cd)](function(_0x2f8e0d){const _0x1310e1=_0x33a519;console['error'](_0x2f8e0d),_0x28c561[_0x1310e1(0xbae)]=_0x2f8e0d[_0x1310e1(0x1c52)][_0x1310e1(0xbae)]||[{'message':_0x2f8e0d[_0x1310e1(0x2915)](),'type':_0x1310e1(0x671)}];});}function _0x21a4aa(_0x59e24d){const _0xf96462=_0x8b3af1;_0x28c561['errors']=[];const _0x3185fa=_0x521535[_0xf96462(0x856)]()[_0xf96462(0x2021)]('Are\x20you\x20sure?')[_0xf96462(0x12b8)]('The\x20'+_0x21de51+_0xf96462(0x4b8))[_0xf96462(0x213e)](_0xf96462(0x1f2e)+_0x28c606()[_0xf96462(0xd56)](_0x21de51))['ok'](_0xf96462(0x2664))[_0xf96462(0x101a)](_0xf96462(0x1dc6))['targetEvent'](_0x59e24d);_0x521535['show'](_0x3185fa)[_0xf96462(0x64a)](function(){const _0x57b267=_0xf96462;_0x2d6a43['intFreshdeskField'][_0x57b267(0xabd)]({'id':_0x28c561[_0x57b267(0x1656)]['id']})[_0x57b267(0x15e7)]['then'](function(){const _0x427349=_0x57b267;_0x28c606()[_0x427349(0x21c7)](_0x28c561[_0x427349(0x23cb)],{'id':_0x28c561[_0x427349(0x1656)]['id']}),_0x373082[_0x427349(0x1339)]({'title':_0x28c606()[_0x427349(0xd56)](_0x21de51)+_0x427349(0x6ec),'msg':_0x28c606()[_0x427349(0xd56)](_0x21de51)+_0x427349(0x1fa8)}),_0x5256bf();})[_0x57b267(0x20cd)](function(_0xe5e2a5){const _0x567c19=_0x57b267;console[_0x567c19(0x1bd0)](_0xe5e2a5),_0x28c561[_0x567c19(0xbae)]=_0xe5e2a5[_0x567c19(0x1c52)][_0x567c19(0xbae)]||[{'message':_0xe5e2a5['toString'](),'type':_0x567c19(0x27aa)}];});},function(){});}function _0x37b437(){const _0x54f8a0=_0x8b3af1;return _0x28c561[_0x54f8a0(0x1656)]['variableName']!==undefined?_0x28c561[_0x54f8a0(0x1656)][_0x54f8a0(0x1299)]:'Please\x20select\x20a\x20variable';}function _0x5256bf(){_0x521535['hide']();}}const _0x379505=_0x185111;;_0x581c17[_0x49a1e3(0x1e73)]=['$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$document',_0x49a1e3(0x298c),'license',_0x49a1e3(0x28d6),_0x49a1e3(0xa19),'toasty',_0x49a1e3(0xdcf),'freshdeskAccount',_0x49a1e3(0x16b2)];function _0x581c17(_0x555607,_0x325dfd,_0x40b1d2,_0x103cc7,_0x5373b8,_0x5c0635,_0x301138,_0x156aa7,_0x244f8a,_0x5e61e0,_0xe78e7f,_0x136bfb){const _0x4d2904=_0x49a1e3,_0x3f6be8=this;_0x3f6be8[_0x4d2904(0x1d3d)]=_0x5e61e0[_0x4d2904(0x808)](),_0x3f6be8[_0x4d2904(0x1947)]=_0x5c0635,_0x3f6be8[_0x4d2904(0x28d6)]=_0x301138,_0x3f6be8[_0x4d2904(0xccc)]=_0x3f6be8[_0x4d2904(0x28d6)][_0x4d2904(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3f6be8[_0x4d2904(0xb36)]=_0x325dfd[_0x4d2904(0x48e)]()+_0x4d2904(0xe1f)+_0x325dfd[_0x4d2904(0x1e5d)](),_0x3f6be8['freshdeskAccount']=_0xe78e7f||_0x555607[_0x4d2904(0x1b48)][_0x4d2904(0x1d4b)]||{},_0x3f6be8[_0x4d2904(0x16b2)]=_0x136bfb&&_0x136bfb[_0x4d2904(0xb90)]==0x1?_0x136bfb[_0x4d2904(0x28b8)][0x0]:null,_0x3f6be8['crudPermissions']=_0x5e61e0[_0x4d2904(0xa7e)](_0x3f6be8[_0x4d2904(0x16b2)]?_0x3f6be8['userProfileSection'][_0x4d2904(0x402)]:null),_0x3f6be8[_0x4d2904(0x6c2)]={},_0x3f6be8[_0x4d2904(0x197c)]=_0x555607[_0x4d2904(0x1b48)][_0x4d2904(0x1222)]||0x0,_0x3f6be8[_0x4d2904(0x2540)]=_0x244f8a['info'],_0x3f6be8['gotoFreshdeskAccounts']=_0x224fc9,_0x3f6be8[_0x4d2904(0x1bba)]=_0x78219f;function _0x224fc9(){const _0x42f41d=_0x4d2904;_0x555607['go']('app.integrations.freshdeskAccounts',{},{'reload':_0x42f41d(0x53e)});}function _0x78219f(){const _0x4a75d8=_0x4d2904;_0x156aa7['intFreshdeskAccount'][_0x4a75d8(0x2603)]({'id':_0x3f6be8[_0x4a75d8(0x1d4b)]['id']},_0x3f6be8[_0x4a75d8(0x1d4b)])[_0x4a75d8(0x15e7)]['then'](function(){const _0x4d4be9=_0x4a75d8;_0x244f8a['success']({'title':_0x4d4be9(0x806),'msg':_0x3f6be8[_0x4d4be9(0x1d4b)][_0x4d4be9(0x2494)]?_0x3f6be8['freshdeskAccount'][_0x4d4be9(0x2494)]+_0x4d4be9(0x2032):''});})[_0x4a75d8(0x20cd)](function(_0x347796){const _0xd13fc5=_0x4a75d8;_0x244f8a[_0xd13fc5(0x1bd0)]({'title':_0x347796[_0xd13fc5(0x10b3)]?'API:'+_0x347796[_0xd13fc5(0x10b3)]+_0xd13fc5(0x21db)+_0x347796[_0xd13fc5(0x2115)]:_0xd13fc5(0x2530),'msg':_0x347796['data']?JSON[_0xd13fc5(0x2317)](_0x347796[_0xd13fc5(0x1c52)]):_0x347796[_0xd13fc5(0x2915)]()});});}}const _0x2352e8=_0x581c17;;const _0x421ad1=_0x2e4a48['p']+_0x49a1e3(0x148c);;_0x55a38b[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog','$document',_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0xae3),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),'msUtils',_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting'];function _0x55a38b(_0x4701bc,_0x56a40d,_0x39ce21,_0x45d624,_0x37af7f,_0x3da9fc,_0x54f169,_0x7fbd60,_0x2ee2b2,_0x17fc8a,_0x2fe069,_0x42c5cb,_0x3d89c3,_0x3ba5a4,_0x37d353,_0x1718cf,_0x18ddaf){const _0x33eb85=_0x49a1e3,_0x222287=this;_0x222287[_0x33eb85(0x1947)]=_0x1718cf,_0x222287['setting']=_0x18ddaf,_0x222287[_0x33eb85(0x1d3d)]=_0x37d353[_0x33eb85(0x808)](),_0x222287['freshdeskAccounts']=_0x2ee2b2||{'count':0x0,'rows':[]},_0x222287[_0x33eb85(0x16a8)]=_0x17fc8a,_0x222287[_0x33eb85(0x16b2)]=_0x2fe069&&_0x2fe069[_0x33eb85(0xb90)]==0x1?_0x2fe069[_0x33eb85(0x28b8)][0x0]:null,_0x222287[_0x33eb85(0x402)]=_0x37d353['parseCrudPermissions'](_0x222287['userProfileSection']?_0x222287['userProfileSection']['crudPermissions']:null),_0x222287[_0x33eb85(0x185d)]=_0x33eb85(0xae3),_0x222287[_0x33eb85(0x300)]='',_0x222287[_0x33eb85(0x2748)]=null,_0x222287['selectedFreshdeskAccounts']=[],_0x222287[_0x33eb85(0x289a)]={'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','limit':0xa,'page':0x1},_0x222287[_0x33eb85(0xff6)]=_0xb5ced,_0x222287[_0x33eb85(0x1348)]=_0x5320bb,_0x222287[_0x33eb85(0x1262)]=_0x189f87,_0x222287[_0x33eb85(0x1339)]=_0x39a030,_0x222287[_0x33eb85(0x1206)]=_0x431031,_0x222287[_0x33eb85(0x149c)]=_0x237338,_0x222287[_0x33eb85(0x171a)]=_0x17cf45,_0x222287[_0x33eb85(0x8ac)]=_0x5769ee,_0x222287['deleteSelectedFreshdeskAccounts']=_0x1f9d77,_0x222287[_0x33eb85(0x647)]=_0x4dcc4f,_0x222287['selectAllFreshdeskAccounts']=_0x56862a;function _0xb5ced(_0x23b471){const _0x2713b6=_0x33eb85;_0x39ce21['go'](_0x2713b6(0x2968),{'id':_0x23b471['id'],'freshdeskAccount':_0x23b471,'crudPermissions':_0x222287[_0x2713b6(0x402)]});}function _0x5320bb(_0xbf53e1){const _0x4ecd2c=_0x33eb85;return _0x42c5cb[_0x4ecd2c(0x26ff)]['getFields']({'id':_0xbf53e1['id'],'test':!![]})[_0x4ecd2c(0x15e7)][_0x4ecd2c(0x64a)](function(){const _0x3b829d=_0x4ecd2c;_0x3ba5a4[_0x3b829d(0x1339)]({'title':_0x3b829d(0xc83),'msg':'Connection\x20succeded!'});})['catch'](function(_0x40d334){const _0x2bc141=_0x4ecd2c;_0x3ba5a4[_0x2bc141(0x1bd0)]({'title':_0x2bc141(0xc83),'msg':_0x40d334[_0x2bc141(0x1c52)]?_0x40d334[_0x2bc141(0x1c52)]['message']?_0x40d334[_0x2bc141(0x1c52)][_0x2bc141(0x18ca)]:JSON['stringify'](_0x40d334[_0x2bc141(0x1c52)]):_0x40d334[_0x2bc141(0x2915)]()});});}function _0x189f87(_0x5952a8,_0x4171de){const _0x2b82a=_0x33eb85,_0x3c62ce=_0x37af7f[_0x2b82a(0x856)]()['title'](_0x2b82a(0x1231)+_0x28c606()[_0x2b82a(0xc01)](_0x2b82a(0x1d4b))+'?')[_0x2b82a(0x33a)](_0x2b82a(0x50b)+(_0x5952a8[_0x2b82a(0x2494)]||_0x2b82a(0x1d4b))+_0x2b82a(0x26d0)+'\x20will\x20be\x20deleted.')[_0x2b82a(0x213e)](_0x2b82a(0xa30))[_0x2b82a(0x2283)](_0x4171de)['ok']('OK')[_0x2b82a(0x101a)](_0x2b82a(0x18fd));_0x37af7f[_0x2b82a(0xa60)](_0x3c62ce)['then'](function(){_0x17cf45(_0x5952a8);},function(){const _0x3cafb6=_0x2b82a;console[_0x3cafb6(0x9b4)](_0x3cafb6(0x18fd));});}let _0x38b15d=!![],_0x1e1359=0x1;_0x4701bc[_0x33eb85(0xc62)](_0x33eb85(0x1cb9),function(_0x3600ac,_0x18decc){const _0x8dcdc1=_0x33eb85;_0x38b15d?_0x54f169(function(){_0x38b15d=![];}):(!_0x18decc&&(_0x1e1359=_0x222287[_0x8dcdc1(0x289a)][_0x8dcdc1(0xc72)]),_0x3600ac!==_0x18decc&&(_0x222287['query'][_0x8dcdc1(0xc72)]=0x1),!_0x3600ac&&(_0x222287[_0x8dcdc1(0x289a)][_0x8dcdc1(0xc72)]=_0x1e1359),_0x222287[_0x8dcdc1(0x1206)]());});function _0x39a030(_0x109594){const _0x36fa5c=_0x33eb85;_0x222287[_0x36fa5c(0xae3)]=_0x109594||{'count':0x0,'rows':[]};}function _0x431031(){const _0xd2743=_0x33eb85;_0x222287[_0xd2743(0x289a)][_0xd2743(0x24f9)]=(_0x222287['query']['page']-0x1)*_0x222287[_0xd2743(0x289a)][_0xd2743(0x25bb)],_0x37d353[_0xd2743(0x4de)](_0xd2743(0x333))?_0x222287['promise']=_0x42c5cb[_0xd2743(0x26ff)][_0xd2743(0x896)](_0x222287[_0xd2743(0x289a)],_0x39a030)[_0xd2743(0x15e7)]:(_0x222287[_0xd2743(0x289a)]['id']=_0x222287[_0xd2743(0x16a8)]['id'],_0x222287[_0xd2743(0x289a)][_0xd2743(0xa21)]='FreshdeskAccounts',_0x222287[_0xd2743(0x1713)]=_0x42c5cb[_0xd2743(0x16a8)][_0xd2743(0x2565)](_0x222287['query'],_0x39a030)[_0xd2743(0x15e7)]);}function _0x237338(_0x37d883,_0x2226cc){const _0x54c207=_0x33eb85;_0x37af7f['show']({'controller':_0x54c207(0x1051),'controllerAs':'vm','templateUrl':_0x421ad1,'parent':angular[_0x54c207(0x1f81)](_0x3da9fc[_0x54c207(0xb49)]),'targetEvent':_0x37d883,'clickOutsideToClose':!![],'locals':{'freshdeskAccount':_0x2226cc,'freshdeskAccounts':_0x222287[_0x54c207(0xae3)]['rows'],'license':_0x222287[_0x54c207(0x1947)],'setting':_0x222287[_0x54c207(0x28d6)],'crudPermissions':_0x222287[_0x54c207(0x402)]}});}function _0x17cf45(_0x32a47c){const _0x195da9=_0x33eb85;_0x42c5cb[_0x195da9(0x26ff)]['delete']({'id':_0x32a47c['id']})['$promise'][_0x195da9(0x64a)](function(){const _0x216335=_0x195da9;_0x28c606()[_0x216335(0x21c7)](_0x222287[_0x216335(0xae3)][_0x216335(0x28b8)],{'id':_0x32a47c['id']}),_0x222287[_0x216335(0xae3)][_0x216335(0xb90)]-=0x1,!_0x222287[_0x216335(0xae3)]['rows'][_0x216335(0x1b9e)]&&_0x222287[_0x216335(0x1206)](),_0x3ba5a4[_0x216335(0x1339)]({'title':_0x28c606()[_0x216335(0xc01)](_0x216335(0x167))+_0x216335(0x2502),'msg':_0x32a47c['name']?_0x32a47c[_0x216335(0x2494)]+_0x216335(0x1fa8):''});})[_0x195da9(0x20cd)](function(_0x2fb8fe){const _0x3e4429=_0x195da9;if(_0x2fb8fe[_0x3e4429(0x1c52)]&&_0x2fb8fe['data']['errors']&&_0x2fb8fe['data'][_0x3e4429(0xbae)][_0x3e4429(0x1b9e)]){_0x222287[_0x3e4429(0xbae)]=_0x2fb8fe[_0x3e4429(0x1c52)][_0x3e4429(0xbae)]||[{'message':_0x2fb8fe[_0x3e4429(0x2915)](),'type':_0x3e4429(0x119c)}];for(let _0x3f0514=0x0;_0x3f0514<_0x2fb8fe[_0x3e4429(0x1c52)]['errors']['length'];_0x3f0514++){_0x3ba5a4['error']({'title':_0x2fb8fe[_0x3e4429(0x1c52)][_0x3e4429(0xbae)][_0x3f0514][_0x3e4429(0x2185)],'msg':_0x2fb8fe[_0x3e4429(0x1c52)][_0x3e4429(0xbae)][_0x3f0514]['message']});}}else _0x3ba5a4[_0x3e4429(0x1bd0)]({'title':_0x2fb8fe['status']?_0x3e4429(0x575)+_0x2fb8fe[_0x3e4429(0x10b3)]+_0x3e4429(0x21db)+_0x2fb8fe[_0x3e4429(0x2115)]:_0x3e4429(0x119c),'msg':_0x2fb8fe['data']?JSON[_0x3e4429(0x2317)](_0x2fb8fe[_0x3e4429(0x1c52)]['message']):_0x2fb8fe[_0x3e4429(0x18ca)]||_0x2fb8fe[_0x3e4429(0x2915)]()});});}function _0x5769ee(){const _0x37e9e0=_0x33eb85,_0x1a9c80=angular[_0x37e9e0(0x289e)](_0x222287[_0x37e9e0(0x26fd)]);return _0x222287[_0x37e9e0(0x26fd)]=[],_0x1a9c80;}function _0x1f9d77(_0x4649f9){const _0x5e8b33=_0x33eb85,_0x39593c=_0x37af7f[_0x5e8b33(0x856)]()['title'](_0x5e8b33(0x1fe6))['htmlContent'](_0x5e8b33(0x50b)+_0x222287['selectedFreshdeskAccounts'][_0x5e8b33(0x1b9e)]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x5e8b33(0x213e)](_0x5e8b33(0x1c53))['targetEvent'](_0x4649f9)['ok']('OK')['cancel']('CANCEL');_0x37af7f[_0x5e8b33(0xa60)](_0x39593c)[_0x5e8b33(0x64a)](function(){const _0x4d7237=_0x5e8b33;_0x222287[_0x4d7237(0x26fd)][_0x4d7237(0x1397)](function(_0x5b885e){_0x17cf45(_0x5b885e);}),_0x222287[_0x4d7237(0x26fd)]=[];});}function _0x4dcc4f(){const _0x10adfa=_0x33eb85;_0x222287[_0x10adfa(0x26fd)]=[];}function _0x56862a(){const _0x2cacf4=_0x33eb85;_0x222287[_0x2cacf4(0x26fd)]=_0x222287[_0x2cacf4(0xae3)][_0x2cacf4(0x28b8)];}}const _0x321121=_0x55a38b;;_0x4791c0[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location','$mdDialog','$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x1062),_0x49a1e3(0x11f0),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting',_0x49a1e3(0x402)];function _0x4791c0(_0x1ed015,_0x5bcc7c,_0x42cf5c,_0x1eacb9,_0x57460f,_0x5eabad,_0x4d1b50,_0x2e5c79,_0x11158b,_0x13450a,_0x13cc20,_0x427f63,_0x316d10,_0x2ed3d6){const _0x2d4f87=_0x49a1e3,_0x35a821=this;_0x35a821[_0x2d4f87(0x1d3d)]=_0x13cc20['getCurrentUser'](),_0x35a821['errors']=[],_0x35a821[_0x2d4f87(0x28d6)]=_0x316d10,_0x35a821['license']=_0x427f63,_0x35a821[_0x2d4f87(0x402)]=_0x2ed3d6,_0x35a821[_0x2d4f87(0x6c2)]={},_0x35a821[_0x2d4f87(0xccc)]=_0x35a821[_0x2d4f87(0x28d6)]&&_0x35a821[_0x2d4f87(0x28d6)][_0x2d4f87(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x35a821[_0x2d4f87(0x2021)]='INTEGRATIONS.EDIT_FRESHSALESACCOUNT',_0x35a821[_0x2d4f87(0x11f0)]=angular[_0x2d4f87(0x289e)](_0x11158b),_0x35a821[_0x2d4f87(0x1062)]=_0x2e5c79,_0x35a821['newFreshsalesAccount']=![];!_0x35a821[_0x2d4f87(0x11f0)]&&(_0x35a821[_0x2d4f87(0x11f0)]={'serverUrl':_0x42cf5c['protocol']()+_0x2d4f87(0xe1f)+_0x42cf5c[_0x2d4f87(0x1e5d)]()+(_0x42cf5c[_0x2d4f87(0x23f2)]()?':'+_0x42cf5c['port']():'')},_0x35a821[_0x2d4f87(0x2021)]='INTEGRATIONS.NEW_FRESHSALESACCOUNT',_0x35a821[_0x2d4f87(0x23bc)]=!![]);_0x35a821['addNewFreshsalesAccount']=_0x4b1179,_0x35a821[_0x2d4f87(0x18f2)]=_0x32129c,_0x35a821[_0x2d4f87(0x542)]=_0x1b471a,_0x35a821[_0x2d4f87(0x1605)]=_0x5649d2,_0x35a821[_0x2d4f87(0x16cb)]=_0x8c07d0;function _0x4b1179(){const _0x2cf61a=_0x2d4f87;_0x35a821[_0x2cf61a(0xbae)]=[],_0x13450a[_0x2cf61a(0xfac)]['save'](_0x35a821[_0x2cf61a(0x11f0)])['$promise'][_0x2cf61a(0x64a)](function(_0x5198a4){const _0x19f8da=_0x2cf61a;_0x35a821[_0x19f8da(0x1062)][_0x19f8da(0x1891)](_0x5198a4[_0x19f8da(0x14f8)]()),_0x4d1b50[_0x19f8da(0x1339)]({'title':_0x19f8da(0x2914),'msg':_0x35a821[_0x19f8da(0x11f0)][_0x19f8da(0x2494)]?_0x35a821[_0x19f8da(0x11f0)][_0x19f8da(0x2494)]+_0x19f8da(0x258d):''}),_0x8c07d0(_0x5198a4);})[_0x2cf61a(0x20cd)](function(_0x94f29e){const _0x4b1fc5=_0x2cf61a;if(_0x94f29e[_0x4b1fc5(0x1c52)]&&_0x94f29e['data'][_0x4b1fc5(0xbae)]&&_0x94f29e[_0x4b1fc5(0x1c52)]['errors'][_0x4b1fc5(0x1b9e)]){_0x35a821[_0x4b1fc5(0xbae)]=_0x94f29e['data']['errors']||[{'message':_0x94f29e[_0x4b1fc5(0x2915)](),'type':_0x4b1fc5(0x2e3)}];for(let _0x2e1384=0x0;_0x2e1384<_0x94f29e['data'][_0x4b1fc5(0xbae)][_0x4b1fc5(0x1b9e)];_0x2e1384+=0x1){_0x4d1b50['error']({'title':_0x94f29e[_0x4b1fc5(0x1c52)][_0x4b1fc5(0xbae)][_0x2e1384][_0x4b1fc5(0x2185)],'msg':_0x94f29e[_0x4b1fc5(0x1c52)][_0x4b1fc5(0xbae)][_0x2e1384][_0x4b1fc5(0x18ca)]});}}else _0x4d1b50['error']({'title':_0x94f29e[_0x4b1fc5(0x10b3)]?_0x4b1fc5(0x575)+_0x94f29e['status']+_0x4b1fc5(0x21db)+_0x94f29e[_0x4b1fc5(0x2115)]:'api.intFreshsalesAccount.save','msg':_0x94f29e[_0x4b1fc5(0x1c52)]?JSON[_0x4b1fc5(0x2317)](_0x94f29e[_0x4b1fc5(0x1c52)]['message']):_0x94f29e['toString']()});});}function _0x32129c(){const _0x44431b=_0x2d4f87;_0x35a821[_0x44431b(0xbae)]=[],_0x13450a[_0x44431b(0xfac)][_0x44431b(0x2603)]({'id':_0x35a821['freshsalesAccount']['id']},_0x35a821[_0x44431b(0x11f0)])['$promise']['then'](function(_0x3f583d){const _0x41c411=_0x44431b,_0x1eb3c5=_0x28c606()[_0x41c411(0x27bc)](_0x35a821[_0x41c411(0x1062)],{'id':_0x3f583d['id']});_0x1eb3c5&&_0x28c606()[_0x41c411(0x14fe)](_0x1eb3c5,_0x28c606()[_0x41c411(0x27bb)](_0x3f583d[_0x41c411(0x14f8)](),_0x28c606()[_0x41c411(0x1ec6)](_0x1eb3c5))),_0x4d1b50['success']({'title':'FreshsalesAccount\x20properly\x20saved!','msg':_0x35a821[_0x41c411(0x11f0)][_0x41c411(0x2494)]?_0x35a821['freshsalesAccount'][_0x41c411(0x2494)]+_0x41c411(0x271):''}),_0x8c07d0(_0x3f583d);})[_0x44431b(0x20cd)](function(_0x890076){const _0x2a9a81=_0x44431b;if(_0x890076['data']&&_0x890076[_0x2a9a81(0x1c52)]['errors']&&_0x890076[_0x2a9a81(0x1c52)]['errors'][_0x2a9a81(0x1b9e)]){_0x35a821['errors']=_0x890076[_0x2a9a81(0x1c52)][_0x2a9a81(0xbae)]||[{'message':_0x890076[_0x2a9a81(0x2915)](),'type':_0x2a9a81(0x216a)}];for(let _0x8886c0=0x0;_0x8886c0<_0x890076[_0x2a9a81(0x1c52)][_0x2a9a81(0xbae)][_0x2a9a81(0x1b9e)];_0x8886c0++){_0x4d1b50['error']({'title':_0x890076[_0x2a9a81(0x1c52)][_0x2a9a81(0xbae)][_0x8886c0][_0x2a9a81(0x2185)],'msg':_0x890076[_0x2a9a81(0x1c52)][_0x2a9a81(0xbae)][_0x8886c0][_0x2a9a81(0x18ca)]});}}else _0x4d1b50[_0x2a9a81(0x1bd0)]({'title':_0x890076['status']?_0x2a9a81(0x575)+_0x890076[_0x2a9a81(0x10b3)]+_0x2a9a81(0x21db)+_0x890076[_0x2a9a81(0x2115)]:_0x2a9a81(0x216a),'msg':_0x890076[_0x2a9a81(0x1c52)]?JSON[_0x2a9a81(0x2317)](_0x890076['data'][_0x2a9a81(0x18ca)]):_0x890076['toString']()});});}function _0x1b471a(_0xe86e51){const _0x41669e=_0x2d4f87;_0x35a821['errors']=[];const _0x18f77c=_0x1eacb9['confirm']()['title']('Are\x20you\x20sure?')[_0x41669e(0x12b8)]('The\x20freshsalesAccount\x20will\x20be\x20deleted.')[_0x41669e(0x213e)](_0x41669e(0x200b))['ok']('Delete')[_0x41669e(0x101a)](_0x41669e(0x1dc6))['targetEvent'](_0xe86e51);_0x1eacb9[_0x41669e(0xa60)](_0x18f77c)[_0x41669e(0x64a)](function(){const _0x17370d=_0x41669e;_0x13450a[_0x17370d(0xfac)]['delete']({'id':_0x35a821['freshsalesAccount']['id']})['$promise'][_0x17370d(0x64a)](function(){const _0x1dc0c6=_0x17370d;_0x28c606()[_0x1dc0c6(0x21c7)](_0x35a821[_0x1dc0c6(0x1062)],{'id':_0x35a821[_0x1dc0c6(0x11f0)]['id']}),_0x4d1b50[_0x1dc0c6(0x1339)]({'title':_0x1dc0c6(0x1f87),'msg':(_0x35a821[_0x1dc0c6(0x11f0)][_0x1dc0c6(0x2494)]||'freshsalesAccount')+_0x1dc0c6(0x1fa8)}),_0x8c07d0(_0x35a821['freshsalesAccount']);})['catch'](function(_0xd7098){const _0x1b0771=_0x17370d;if(_0xd7098['data']&&_0xd7098[_0x1b0771(0x1c52)][_0x1b0771(0xbae)]&&_0xd7098['data'][_0x1b0771(0xbae)][_0x1b0771(0x1b9e)]){_0x35a821[_0x1b0771(0xbae)]=_0xd7098[_0x1b0771(0x1c52)][_0x1b0771(0xbae)]||[{'message':_0xd7098[_0x1b0771(0x2915)](),'type':'api.intFreshsalesAccount.delete'}];for(let _0x306be1=0x0;_0x306be1<_0xd7098[_0x1b0771(0x1c52)]['errors'][_0x1b0771(0x1b9e)];_0x306be1++){_0x4d1b50[_0x1b0771(0x1bd0)]({'title':_0xd7098[_0x1b0771(0x1c52)][_0x1b0771(0xbae)][_0x306be1][_0x1b0771(0x2185)],'msg':_0xd7098[_0x1b0771(0x1c52)][_0x1b0771(0xbae)][_0x306be1][_0x1b0771(0x18ca)]});}}else _0x4d1b50[_0x1b0771(0x1bd0)]({'title':_0xd7098[_0x1b0771(0x10b3)]?_0x1b0771(0x575)+_0xd7098[_0x1b0771(0x10b3)]+_0x1b0771(0x21db)+_0xd7098[_0x1b0771(0x2115)]:_0x1b0771(0x24cf),'msg':_0xd7098[_0x1b0771(0x1c52)]?JSON[_0x1b0771(0x2317)](_0xd7098[_0x1b0771(0x1c52)][_0x1b0771(0x18ca)]):_0xd7098['message']||_0xd7098[_0x1b0771(0x2915)]()});});},function(){});}function _0x5649d2(_0x5dc211){return _0x5dc211===null?undefined:new Date(_0x5dc211);}function _0x8c07d0(_0x25c85d){const _0x51326d=_0x2d4f87;_0x1eacb9[_0x51326d(0x268e)](_0x25c85d);}}const _0x4dec7c=_0x4791c0;;const _0x2e1fd4=_0x2e4a48['p']+_0x49a1e3(0x5b0);;const _0x30b39e=_0x2e4a48['p']+_0x49a1e3(0xa2c);;_0x2712c0[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x1373),'api',_0x49a1e3(0x680),_0x49a1e3(0xdcf)];function _0x2712c0(_0x291a27,_0x4f48d5,_0x55d152,_0x3d2e7d,_0x4824c3){const _0x5a0cce=_0x49a1e3,_0x2cf444=this;_0x2cf444[_0x5a0cce(0x1d3d)]=_0x4824c3['getCurrentUser'](),_0x2cf444[_0x5a0cce(0x11f0)]={},_0x2cf444['freshsalesConfiguration']={},_0x2cf444[_0x5a0cce(0x23a8)]=[],_0x2cf444[_0x5a0cce(0x179c)]=-0x1,_0x2cf444[_0x5a0cce(0x402)],_0x2cf444[_0x5a0cce(0x2354)]=_0xcea2fc,_0x2cf444['getFreshsalesConfiguration']=_0x28fd4d,_0x2cf444[_0x5a0cce(0x244e)]=_0x148baf,_0x2cf444[_0x5a0cce(0x2949)]=_0x1d19a4;function _0xcea2fc(_0x1c2bac,_0x4836d6){const _0x19d246=_0x5a0cce;_0x2cf444[_0x19d246(0x11f0)]=_0x1c2bac,_0x2cf444['crudPermissions']=typeof _0x4836d6!=='undefined'?_0x4836d6:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x55d152[_0x19d246(0xfac)]['getConfigurations']({'id':_0x2cf444[_0x19d246(0x11f0)]['id'],'sort':_0x19d246(0x260c)})[_0x19d246(0x15e7)][_0x19d246(0x64a)](function(_0x266e02){const _0x288cc2=_0x19d246;return _0x2cf444['configurations']=_0x266e02[_0x288cc2(0x28b8)]?_0x266e02['rows']:[],_0x2cf444[_0x288cc2(0x23a8)][_0x288cc2(0x1b9e)]&&_0x2cf444[_0x288cc2(0x2319)](0x0),_0x55d152[_0x288cc2(0xefb)]['get']({'nolimit':!![],'sort':_0x288cc2(0x2494)})[_0x288cc2(0x15e7)];})[_0x19d246(0x64a)](function(_0x319767){const _0x9922f4=_0x19d246;_0x2cf444[_0x9922f4(0x145c)]=_0x319767['rows']?_0x319767[_0x9922f4(0x28b8)]:[],_0x2cf444[_0x9922f4(0x2685)]=_0x28c606()['keyBy'](_0x2cf444[_0x9922f4(0x145c)],'id');})[_0x19d246(0x20cd)](function(_0x103d26){const _0x1f01d1=_0x19d246;_0x3d2e7d[_0x1f01d1(0x1bd0)]({'title':_0x103d26[_0x1f01d1(0x10b3)]?'API:'+_0x103d26[_0x1f01d1(0x10b3)]+'\x20-\x20'+_0x103d26[_0x1f01d1(0x2115)]:_0x1f01d1(0x1bdd),'msg':_0x103d26['data']?JSON[_0x1f01d1(0x2317)](_0x103d26[_0x1f01d1(0x1c52)]):_0x103d26['toString']()});});}function _0x28fd4d(_0x647c0){const _0x1a97fe=_0x5a0cce;_0x2cf444['freshsalesConfiguration']=_0x2cf444[_0x1a97fe(0x23a8)][_0x647c0],_0x2cf444['selectedFreshsalesConfiguration']=_0x647c0,_0x55d152[_0x1a97fe(0x2172)][_0x1a97fe(0x241f)]({'id':_0x2cf444[_0x1a97fe(0x101b)]['id']})[_0x1a97fe(0x15e7)]['then'](function(_0xed03ec){const _0x3b86d1=_0x1a97fe;return _0x2cf444[_0x3b86d1(0x29b)]=_0xed03ec['rows']?_0xed03ec['rows']:[],_0x55d152[_0x3b86d1(0x2172)][_0x3b86d1(0x1e33)]({'id':_0x2cf444[_0x3b86d1(0x101b)]['id']})[_0x3b86d1(0x15e7)];})['then'](function(_0x5b288e){const _0x5402d4=_0x1a97fe;return _0x2cf444[_0x5402d4(0x24b6)]=_0x5b288e[_0x5402d4(0x28b8)]?_0x5b288e['rows']:[],_0x55d152[_0x5402d4(0x2172)][_0x5402d4(0x5e0)]({'id':_0x2cf444[_0x5402d4(0x101b)]['id']})[_0x5402d4(0x15e7)];})[_0x1a97fe(0x64a)](function(_0x59512b){const _0x165a19=_0x1a97fe;_0x2cf444['fields']=_0x59512b['rows']?_0x59512b[_0x165a19(0x28b8)]:[];})[_0x1a97fe(0x20cd)](function(_0x4502be){const _0x3cae8c=_0x1a97fe;_0x3d2e7d[_0x3cae8c(0x1bd0)]({'title':_0x4502be[_0x3cae8c(0x10b3)]?_0x3cae8c(0x575)+_0x4502be[_0x3cae8c(0x10b3)]+'\x20-\x20'+_0x4502be[_0x3cae8c(0x2115)]:_0x3cae8c(0x15c1),'msg':_0x4502be[_0x3cae8c(0x1c52)]?JSON[_0x3cae8c(0x2317)](_0x4502be['data']):_0x4502be[_0x3cae8c(0x2915)]()});});}function _0x148baf(_0x31b10a,_0x54e86d){const _0x59c15c=_0x5a0cce;_0x291a27[_0x59c15c(0xa60)]({'controller':_0x59c15c(0xf6a),'controllerAs':'vm','templateUrl':_0x2e1fd4,'parent':angular[_0x59c15c(0x1f81)](_0x4f48d5[_0x59c15c(0xb49)]),'targetEvent':_0x31b10a,'clickOutsideToClose':!![],'locals':{'freshsalesConfiguration':_0x54e86d,'configurations':_0x2cf444['configurations'],'license':null,'setting':null,'crudPermissions':_0x2cf444[_0x59c15c(0x402)]}})[_0x59c15c(0x988)](function(){const _0x353a3c=_0x59c15c;_0x2cf444[_0x353a3c(0x2319)](0x0);});}function _0x1d19a4(_0x40c7ab,_0x2353f8){const _0x5d43f7=_0x5a0cce,_0x1e3f00=_0x291a27[_0x5d43f7(0x856)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20freshsalesConfiguration?')[_0x5d43f7(0x33a)](_0x5d43f7(0x50b)+(_0x2353f8[_0x5d43f7(0x2494)]||_0x5d43f7(0x101b))+_0x5d43f7(0x26d0)+_0x5d43f7(0x4b8))['ariaLabel'](_0x5d43f7(0xe3a))[_0x5d43f7(0x2283)](_0x40c7ab)['ok']('OK')[_0x5d43f7(0x101a)]('CANCEL');_0x291a27['show'](_0x1e3f00)[_0x5d43f7(0x64a)](function(){const _0x56300d=_0x5d43f7;_0x55d152[_0x56300d(0x2172)]['delete']({'id':_0x2353f8['id']})[_0x56300d(0x15e7)][_0x56300d(0x64a)](function(){const _0x2688e4=_0x56300d;_0x28c606()[_0x2688e4(0x21c7)](_0x2cf444[_0x2688e4(0x23a8)],{'id':_0x2353f8['id']}),_0x3d2e7d[_0x2688e4(0x1339)]({'title':'FreshsalesConfiguration\x20deleted!','msg':_0x2353f8[_0x2688e4(0x2494)]?_0x2353f8[_0x2688e4(0x2494)]+_0x2688e4(0x1fa8):''});})[_0x56300d(0x20cd)](function(_0x485001){const _0x4e0255=_0x56300d;_0x3d2e7d[_0x4e0255(0x1bd0)]({'title':_0x485001[_0x4e0255(0x10b3)]?'API:'+_0x485001['status']+_0x4e0255(0x21db)+_0x485001[_0x4e0255(0x2115)]:'SYSTEM:DELETECONFIGURATION','msg':_0x485001[_0x4e0255(0x1c52)]?JSON[_0x4e0255(0x2317)](_0x485001[_0x4e0255(0x1c52)]):_0x485001[_0x4e0255(0x2915)]()});})[_0x56300d(0x988)](function(){const _0x8c087a=_0x56300d;_0x2cf444[_0x8c087a(0x2319)](0x0);});},function(){const _0x15d0bd=_0x5d43f7;console['log'](_0x15d0bd(0x18fd));});}_0x2cf444[_0x5a0cce(0x2639)]=[],_0x2cf444[_0x5a0cce(0x22b1)]=_0x4c6423,_0x2cf444[_0x5a0cce(0xa6a)]=_0x504a25,_0x2cf444[_0x5a0cce(0x17fe)]=_0x2fd12c;function _0x4c6423(_0x7a7391,_0x4fce01){const _0x1b138c=_0x5a0cce;_0x291a27[_0x1b138c(0xa60)]({'controller':_0x1b138c(0x15c8),'controllerAs':'vm','templateUrl':_0x30b39e,'parent':angular[_0x1b138c(0x1f81)](_0x4f48d5[_0x1b138c(0xb49)]),'targetEvent':_0x7a7391,'clickOutsideToClose':!![],'locals':{'type':_0x1b138c(0x25bc),'item':_0x4fce01,'items':_0x2cf444[_0x1b138c(0x29b)],'configuration':_0x2cf444[_0x1b138c(0x101b)],'account':_0x2cf444[_0x1b138c(0x11f0)],'license':null,'setting':null,'crudPermissions':_0x2cf444[_0x1b138c(0x402)]}});}function _0x3c068b(_0x46ec31){const _0x1cba9f=_0x5a0cce;_0x55d152[_0x1cba9f(0x1ce0)][_0x1cba9f(0xabd)]({'id':_0x46ec31['id']})[_0x1cba9f(0x15e7)][_0x1cba9f(0x64a)](function(){const _0xf45542=_0x1cba9f;_0x28c606()[_0xf45542(0x21c7)](_0x2cf444['subjects'],{'id':_0x46ec31['id']}),_0x3d2e7d[_0xf45542(0x1339)]({'title':_0xf45542(0x1d99),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0x1cba9f(0x20cd)](function(_0x1dc2d7){const _0x120ed1=_0x1cba9f;_0x3d2e7d[_0x120ed1(0x1bd0)]({'title':_0x1dc2d7[_0x120ed1(0x10b3)]?_0x120ed1(0x575)+_0x1dc2d7['status']+_0x120ed1(0x21db)+_0x1dc2d7[_0x120ed1(0x2115)]:_0x120ed1(0x12a9),'msg':_0x1dc2d7['data']?JSON[_0x120ed1(0x2317)](_0x1dc2d7[_0x120ed1(0x1c52)]):_0x1dc2d7[_0x120ed1(0x2915)]()});});}function _0x504a25(_0x329ce9,_0x5ddc2d){const _0xa93737=_0x5a0cce,_0x509f01=_0x291a27[_0xa93737(0x856)]()[_0xa93737(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0xa93737(0x33a)](_0xa93737(0x1e6a)+'\x20will\x20be\x20deleted.')[_0xa93737(0x213e)](_0xa93737(0x204f))[_0xa93737(0x2283)](_0x329ce9)['ok']('OK')[_0xa93737(0x101a)](_0xa93737(0x18fd));_0x291a27[_0xa93737(0xa60)](_0x509f01)['then'](function(){_0x3c068b(_0x5ddc2d);},function(){const _0x3fa662=_0xa93737;console[_0x3fa662(0x9b4)](_0x3fa662(0x18fd));});}function _0x2fd12c(_0x3c5042){const _0x20fe54=_0x5a0cce,_0x1f0624=_0x291a27[_0x20fe54(0x856)]()[_0x20fe54(0x2021)](_0x20fe54(0x1cb4))[_0x20fe54(0x33a)](_0x20fe54(0x50b)+_0x2cf444[_0x20fe54(0x2639)]['length']+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x20fe54(0x213e)](_0x20fe54(0x24f6))[_0x20fe54(0x2283)](_0x3c5042)['ok']('OK')[_0x20fe54(0x101a)](_0x20fe54(0x18fd));_0x291a27[_0x20fe54(0xa60)](_0x1f0624)[_0x20fe54(0x64a)](function(){const _0x4bb289=_0x20fe54;_0x2cf444[_0x4bb289(0x2639)][_0x4bb289(0x1397)](function(_0x462cc2){_0x3c068b(_0x462cc2);}),_0x2cf444[_0x4bb289(0x2639)]=[];});}_0x2cf444[_0x5a0cce(0x21c1)]=[],_0x2cf444[_0x5a0cce(0x3a2)]=_0x52f87c,_0x2cf444['deleteDescriptionConfirm']=_0xdcdd6f,_0x2cf444[_0x5a0cce(0x1efc)]=_0x1121d0;function _0x52f87c(_0xc1470a,_0x5c46d4){const _0x2e4122=_0x5a0cce;_0x291a27[_0x2e4122(0xa60)]({'controller':_0x2e4122(0x15c8),'controllerAs':'vm','templateUrl':_0x30b39e,'parent':angular[_0x2e4122(0x1f81)](_0x4f48d5['body']),'targetEvent':_0xc1470a,'clickOutsideToClose':!![],'locals':{'type':_0x2e4122(0x23c3),'item':_0x5c46d4,'items':_0x2cf444['descriptions'],'configuration':_0x2cf444[_0x2e4122(0x101b)],'account':_0x2cf444[_0x2e4122(0x11f0)],'license':null,'setting':null,'crudPermissions':_0x2cf444[_0x2e4122(0x402)]}});}function _0x298b3d(_0x3c39c9){const _0x1c92f2=_0x5a0cce;_0x55d152['intFreshsalesField'][_0x1c92f2(0xabd)]({'id':_0x3c39c9['id']})[_0x1c92f2(0x15e7)][_0x1c92f2(0x64a)](function(){const _0x30f6b0=_0x1c92f2;_0x28c606()['remove'](_0x2cf444[_0x30f6b0(0x24b6)],{'id':_0x3c39c9['id']}),_0x3d2e7d[_0x30f6b0(0x1339)]({'title':_0x30f6b0(0x166a),'msg':_0x30f6b0(0x213f)});})[_0x1c92f2(0x20cd)](function(_0x64d12d){const _0x4ff170=_0x1c92f2;_0x3d2e7d['error']({'title':_0x64d12d['status']?'API:'+_0x64d12d['status']+_0x4ff170(0x21db)+_0x64d12d[_0x4ff170(0x2115)]:_0x4ff170(0x12a9),'msg':_0x64d12d[_0x4ff170(0x1c52)]?JSON[_0x4ff170(0x2317)](_0x64d12d[_0x4ff170(0x1c52)]):_0x64d12d[_0x4ff170(0x2915)]()});});}function _0xdcdd6f(_0x12bbc2,_0x24e42e){const _0x4a8bb4=_0x5a0cce,_0x2e16d7=_0x291a27['confirm']()[_0x4a8bb4(0x2021)](_0x4a8bb4(0x80e))[_0x4a8bb4(0x33a)](_0x4a8bb4(0x1bb6)+_0x4a8bb4(0x4b8))[_0x4a8bb4(0x213e)](_0x4a8bb4(0x748))[_0x4a8bb4(0x2283)](_0x12bbc2)['ok']('OK')[_0x4a8bb4(0x101a)](_0x4a8bb4(0x18fd));_0x291a27[_0x4a8bb4(0xa60)](_0x2e16d7)[_0x4a8bb4(0x64a)](function(){_0x298b3d(_0x24e42e);},function(){const _0xfcd48d=_0x4a8bb4;console[_0xfcd48d(0x9b4)](_0xfcd48d(0x18fd));});}function _0x1121d0(_0x5c8cfb){const _0x39facb=_0x5a0cce,_0x12ec25=_0x291a27[_0x39facb(0x856)]()[_0x39facb(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')['htmlContent'](''+_0x2cf444['selectedDescriptions'][_0x39facb(0x1b9e)]+_0x39facb(0x163e)+_0x39facb(0x4b8))[_0x39facb(0x213e)](_0x39facb(0x531))[_0x39facb(0x2283)](_0x5c8cfb)['ok']('OK')[_0x39facb(0x101a)](_0x39facb(0x18fd));_0x291a27[_0x39facb(0xa60)](_0x12ec25)[_0x39facb(0x64a)](function(){const _0x185265=_0x39facb;_0x2cf444[_0x185265(0x21c1)][_0x185265(0x1397)](function(_0x426167){_0x298b3d(_0x426167);}),_0x2cf444[_0x185265(0x21c1)]=[];});}_0x2cf444[_0x5a0cce(0xa3a)]=[],_0x2cf444[_0x5a0cce(0x569)]=_0x276507,_0x2cf444[_0x5a0cce(0x1436)]=_0x3052e1,_0x2cf444[_0x5a0cce(0x1e89)]=_0x476eb8;function _0x276507(_0x356f2a,_0x13aa55){const _0x3c1096=_0x5a0cce;_0x291a27[_0x3c1096(0xa60)]({'controller':'CreateOrEditFreshsalesAccountItemDialogController','controllerAs':'vm','templateUrl':_0x30b39e,'parent':angular[_0x3c1096(0x1f81)](_0x4f48d5[_0x3c1096(0xb49)]),'targetEvent':_0x356f2a,'clickOutsideToClose':!![],'locals':{'type':_0x3c1096(0xc26),'item':_0x13aa55,'items':_0x2cf444[_0x3c1096(0xf26)],'configuration':_0x2cf444[_0x3c1096(0x101b)],'account':_0x2cf444[_0x3c1096(0x11f0)],'license':null,'setting':null,'crudPermissions':_0x2cf444['crudPermissions']}});}function _0x13ed1f(_0x43a0b5){const _0x229c3f=_0x5a0cce;_0x55d152[_0x229c3f(0x1ce0)]['delete']({'id':_0x43a0b5['id']})[_0x229c3f(0x15e7)][_0x229c3f(0x64a)](function(){const _0x28f0e0=_0x229c3f;_0x28c606()[_0x28f0e0(0x21c7)](_0x2cf444[_0x28f0e0(0xf26)],{'id':_0x43a0b5['id']}),_0x3d2e7d['success']({'title':_0x28f0e0(0x13e7),'msg':_0x28f0e0(0x14b)});})[_0x229c3f(0x20cd)](function(_0x199887){const _0x1147ca=_0x229c3f;_0x3d2e7d[_0x1147ca(0x1bd0)]({'title':_0x199887[_0x1147ca(0x10b3)]?'API:'+_0x199887[_0x1147ca(0x10b3)]+'\x20-\x20'+_0x199887[_0x1147ca(0x2115)]:_0x1147ca(0x12a9),'msg':_0x199887[_0x1147ca(0x1c52)]?JSON[_0x1147ca(0x2317)](_0x199887[_0x1147ca(0x1c52)]):_0x199887[_0x1147ca(0x2915)]()});});}function _0x3052e1(_0x391285,_0x3fc097){const _0x271792=_0x5a0cce,_0x5d3d99=_0x291a27[_0x271792(0x856)]()[_0x271792(0x2021)](_0x271792(0x865))['htmlContent']('Field'+_0x271792(0x4b8))[_0x271792(0x213e)]('delete\x20field')[_0x271792(0x2283)](_0x391285)['ok']('OK')[_0x271792(0x101a)](_0x271792(0x18fd));_0x291a27['show'](_0x5d3d99)[_0x271792(0x64a)](function(){_0x13ed1f(_0x3fc097);},function(){const _0x39083b=_0x271792;console['log'](_0x39083b(0x18fd));});}function _0x476eb8(_0x16717a){const _0x404ee2=_0x5a0cce,_0x1e9ae0=_0x291a27[_0x404ee2(0x856)]()[_0x404ee2(0x2021)](_0x404ee2(0x17bf))[_0x404ee2(0x33a)](_0x404ee2(0x50b)+_0x2cf444['selectedFields'][_0x404ee2(0x1b9e)]+_0x404ee2(0x163e)+'\x20will\x20be\x20deleted.')[_0x404ee2(0x213e)](_0x404ee2(0x11bc))[_0x404ee2(0x2283)](_0x16717a)['ok']('OK')[_0x404ee2(0x101a)](_0x404ee2(0x18fd));_0x291a27[_0x404ee2(0xa60)](_0x1e9ae0)['then'](function(){const _0x451634=_0x404ee2;_0x2cf444[_0x451634(0xa3a)][_0x451634(0x1397)](function(_0x1d9568){_0x13ed1f(_0x1d9568);}),_0x2cf444[_0x451634(0xa3a)]=[];});}}const _0xbc83e1=_0x2712c0;;_0x35bcc0[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q','$translate','toasty',_0x49a1e3(0x23a8),_0x49a1e3(0x101b),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'crudPermissions'];function _0x35bcc0(_0xce3bdf,_0x48c961,_0x126cc5,_0xcc4c2c,_0x448b21,_0x2bb61b,_0x337d26,_0x4aac58,_0x854650,_0x2711eb,_0x518908,_0x489b67,_0x3d4f4c,_0x37888a){const _0x4be2c2=_0x49a1e3,_0x351e42=this;_0x351e42['currentUser']=_0x518908[_0x4be2c2(0x808)](),_0x351e42[_0x4be2c2(0xbae)]=[],_0x351e42[_0x4be2c2(0x28d6)]=_0x3d4f4c,_0x351e42['license']=_0x489b67,_0x351e42[_0x4be2c2(0x402)]=_0x37888a,_0x351e42[_0x4be2c2(0x6c2)]={},_0x351e42[_0x4be2c2(0xccc)]=_0x351e42['setting']&&_0x351e42[_0x4be2c2(0x28d6)][_0x4be2c2(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x351e42[_0x4be2c2(0x2021)]='INTEGRATIONS.EDIT_FRESHSALESCONFIGURATION',_0x351e42[_0x4be2c2(0x101b)]=angular[_0x4be2c2(0x289e)](_0x854650),_0x351e42[_0x4be2c2(0x23a8)]=_0x4aac58,_0x351e42['newFreshsalesConfiguration']=![];!_0x351e42[_0x4be2c2(0x101b)]&&(_0x351e42['freshsalesConfiguration']={'channel':_0x4be2c2(0x227c),'type':_0x4be2c2(0x12a4)},_0x351e42[_0x4be2c2(0x2021)]=_0x4be2c2(0x24a8),_0x351e42[_0x4be2c2(0x2663)]=!![]);_0x351e42[_0x4be2c2(0x1c41)]=_0x16cd3d,_0x351e42[_0x4be2c2(0x1d13)]=_0x8ff5b0,_0x351e42[_0x4be2c2(0x2949)]=_0x1b0a4d,_0x351e42[_0x4be2c2(0x1605)]=_0x57749b,_0x351e42[_0x4be2c2(0x16cb)]=_0x2fb086;function _0x16cd3d(){const _0x133e8a=_0x4be2c2;_0x351e42[_0x133e8a(0xbae)]=[],_0x2711eb[_0x133e8a(0xfac)][_0x133e8a(0x1d2d)]({'id':_0x48c961[_0x133e8a(0x1b48)]['id']},_0x351e42[_0x133e8a(0x101b)])['$promise'][_0x133e8a(0x64a)](function(_0x4b041b){const _0x54d5a2=_0x133e8a;_0x351e42[_0x54d5a2(0x23a8)]['unshift'](_0x4b041b[_0x54d5a2(0x14f8)]()),_0x337d26['success']({'title':_0x54d5a2(0x1e78),'msg':_0x351e42['freshsalesConfiguration'][_0x54d5a2(0x2494)]?_0x351e42[_0x54d5a2(0x101b)][_0x54d5a2(0x2494)]+'\x20has\x20been\x20created!':''}),_0x2fb086(_0x4b041b);})[_0x133e8a(0x20cd)](function(_0x5e7fd4){const _0x4f3fe2=_0x133e8a;if(_0x5e7fd4[_0x4f3fe2(0x1c52)]&&_0x5e7fd4[_0x4f3fe2(0x1c52)][_0x4f3fe2(0xbae)]&&_0x5e7fd4[_0x4f3fe2(0x1c52)][_0x4f3fe2(0xbae)][_0x4f3fe2(0x1b9e)]){_0x351e42[_0x4f3fe2(0xbae)]=_0x5e7fd4[_0x4f3fe2(0x1c52)][_0x4f3fe2(0xbae)]||[{'message':_0x5e7fd4[_0x4f3fe2(0x2915)](),'type':_0x4f3fe2(0xc0e)}];for(let _0x14b156=0x0;_0x14b156<_0x5e7fd4['data']['errors'][_0x4f3fe2(0x1b9e)];_0x14b156+=0x1){_0x337d26[_0x4f3fe2(0x1bd0)]({'title':_0x5e7fd4[_0x4f3fe2(0x1c52)][_0x4f3fe2(0xbae)][_0x14b156][_0x4f3fe2(0x2185)],'msg':_0x5e7fd4['data'][_0x4f3fe2(0xbae)][_0x14b156][_0x4f3fe2(0x18ca)]});}}else _0x337d26[_0x4f3fe2(0x1bd0)]({'title':_0x5e7fd4[_0x4f3fe2(0x10b3)]?'API:'+_0x5e7fd4[_0x4f3fe2(0x10b3)]+_0x4f3fe2(0x21db)+_0x5e7fd4[_0x4f3fe2(0x2115)]:_0x4f3fe2(0xc0e),'msg':_0x5e7fd4['data']?JSON[_0x4f3fe2(0x2317)](_0x5e7fd4[_0x4f3fe2(0x1c52)][_0x4f3fe2(0x18ca)]):_0x5e7fd4[_0x4f3fe2(0x2915)]()});});}function _0x8ff5b0(){const _0x3f2207=_0x4be2c2;_0x351e42['errors']=[],_0x2711eb[_0x3f2207(0x2172)][_0x3f2207(0x2603)]({'id':_0x351e42[_0x3f2207(0x101b)]['id']},_0x351e42[_0x3f2207(0x101b)])[_0x3f2207(0x15e7)][_0x3f2207(0x64a)](function(_0x2aa429){const _0x2e9ccc=_0x3f2207,_0x50526a=_0x28c606()[_0x2e9ccc(0x27bc)](_0x351e42['configurations'],{'id':_0x2aa429['id']});_0x50526a&&_0x28c606()['merge'](_0x50526a,_0x28c606()[_0x2e9ccc(0x27bb)](_0x2aa429[_0x2e9ccc(0x14f8)](),_0x28c606()[_0x2e9ccc(0x1ec6)](_0x50526a))),_0x337d26[_0x2e9ccc(0x1339)]({'title':_0x2e9ccc(0xa52),'msg':_0x351e42[_0x2e9ccc(0x101b)][_0x2e9ccc(0x2494)]?_0x351e42['freshsalesConfiguration'][_0x2e9ccc(0x2494)]+'\x20has\x20been\x20saved!':''}),_0x2fb086(_0x2aa429);})[_0x3f2207(0x20cd)](function(_0x5e63ef){const _0x494984=_0x3f2207;if(_0x5e63ef['data']&&_0x5e63ef[_0x494984(0x1c52)]['errors']&&_0x5e63ef[_0x494984(0x1c52)][_0x494984(0xbae)][_0x494984(0x1b9e)]){_0x351e42[_0x494984(0xbae)]=_0x5e63ef[_0x494984(0x1c52)][_0x494984(0xbae)]||[{'message':_0x5e63ef[_0x494984(0x2915)](),'type':_0x494984(0xf72)}];for(let _0x25f69d=0x0;_0x25f69d<_0x5e63ef[_0x494984(0x1c52)]['errors'][_0x494984(0x1b9e)];_0x25f69d++){_0x337d26[_0x494984(0x1bd0)]({'title':_0x5e63ef[_0x494984(0x1c52)][_0x494984(0xbae)][_0x25f69d]['type'],'msg':_0x5e63ef['data'][_0x494984(0xbae)][_0x25f69d][_0x494984(0x18ca)]});}}else _0x337d26[_0x494984(0x1bd0)]({'title':_0x5e63ef[_0x494984(0x10b3)]?_0x494984(0x575)+_0x5e63ef[_0x494984(0x10b3)]+_0x494984(0x21db)+_0x5e63ef[_0x494984(0x2115)]:_0x494984(0xf72),'msg':_0x5e63ef[_0x494984(0x1c52)]?JSON['stringify'](_0x5e63ef[_0x494984(0x1c52)][_0x494984(0x18ca)]):_0x5e63ef[_0x494984(0x2915)]()});});}function _0x1b0a4d(_0x79e9ad){const _0x10a4d8=_0x4be2c2;_0x351e42[_0x10a4d8(0xbae)]=[];const _0x3cebaf=_0xcc4c2c[_0x10a4d8(0x856)]()['title']('Are\x20you\x20sure?')[_0x10a4d8(0x12b8)](_0x10a4d8(0x40d))[_0x10a4d8(0x213e)]('Delete\x20FreshsalesConfiguration')['ok'](_0x10a4d8(0x2664))['cancel'](_0x10a4d8(0x1dc6))[_0x10a4d8(0x2283)](_0x79e9ad);_0xcc4c2c[_0x10a4d8(0xa60)](_0x3cebaf)[_0x10a4d8(0x64a)](function(){const _0x260d54=_0x10a4d8;_0x2711eb[_0x260d54(0x2172)]['delete']({'id':_0x351e42[_0x260d54(0x101b)]['id']})['$promise'][_0x260d54(0x64a)](function(){const _0x35f3c6=_0x260d54;_0x28c606()['remove'](_0x351e42['configurations'],{'id':_0x351e42[_0x35f3c6(0x101b)]['id']}),_0x337d26['success']({'title':_0x35f3c6(0xf3f),'msg':(_0x351e42[_0x35f3c6(0x101b)][_0x35f3c6(0x2494)]||'freshsalesConfiguration')+'\x20has\x20been\x20deleted!'}),_0x2fb086(_0x351e42['freshsalesConfiguration']);})['catch'](function(_0x3f89b8){const _0x5c7a78=_0x260d54;if(_0x3f89b8[_0x5c7a78(0x1c52)]&&_0x3f89b8[_0x5c7a78(0x1c52)][_0x5c7a78(0xbae)]&&_0x3f89b8[_0x5c7a78(0x1c52)][_0x5c7a78(0xbae)][_0x5c7a78(0x1b9e)]){_0x351e42[_0x5c7a78(0xbae)]=_0x3f89b8[_0x5c7a78(0x1c52)][_0x5c7a78(0xbae)]||[{'message':_0x3f89b8[_0x5c7a78(0x2915)](),'type':_0x5c7a78(0xffe)}];for(let _0x387143=0x0;_0x387143<_0x3f89b8[_0x5c7a78(0x1c52)]['errors'][_0x5c7a78(0x1b9e)];_0x387143++){_0x337d26[_0x5c7a78(0x1bd0)]({'title':_0x3f89b8['data'][_0x5c7a78(0xbae)][_0x387143]['type'],'msg':_0x3f89b8[_0x5c7a78(0x1c52)][_0x5c7a78(0xbae)][_0x387143]['message']});}}else _0x337d26[_0x5c7a78(0x1bd0)]({'title':_0x3f89b8[_0x5c7a78(0x10b3)]?'API:'+_0x3f89b8[_0x5c7a78(0x10b3)]+_0x5c7a78(0x21db)+_0x3f89b8['statusText']:_0x5c7a78(0xffe),'msg':_0x3f89b8[_0x5c7a78(0x1c52)]?JSON[_0x5c7a78(0x2317)](_0x3f89b8[_0x5c7a78(0x1c52)][_0x5c7a78(0x18ca)]):_0x3f89b8['message']||_0x3f89b8[_0x5c7a78(0x2915)]()});});},function(){});}function _0x57749b(_0x34803b){return _0x34803b===null?undefined:new Date(_0x34803b);}function _0x2fb086(_0x320508){_0xcc4c2c['hide'](_0x320508);}}const _0x155d78=_0x35bcc0;;_0x1126c8[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'toasty',_0x49a1e3(0x9a4),_0x49a1e3(0x23cb),'item',_0x49a1e3(0x3e3),'type',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'crudPermissions'];function _0x1126c8(_0x5e05d7,_0x234bc6,_0x674fca,_0x512054,_0x3b7319,_0x10904f,_0x78f2d3,_0x5464e1,_0xea2d7e,_0xc338a1,_0x170fb3,_0x17e752,_0x4621ac){const _0xcebafa=_0x49a1e3,_0x4b4ac9=this;_0x4b4ac9[_0xcebafa(0x1d3d)]=_0x17e752[_0xcebafa(0x808)](),_0x4b4ac9['errors']=[],_0x4b4ac9[_0xcebafa(0x2021)]='INTEGRATIONS.EDIT_'+_0x28c606()[_0xcebafa(0x2201)](_0xc338a1),_0x4b4ac9['item']=angular['copy'](_0x5464e1),_0x4b4ac9[_0xcebafa(0x23cb)]=_0x78f2d3,_0x4b4ac9[_0xcebafa(0x2185)]=_0xc338a1,_0x4b4ac9[_0xcebafa(0x402)]=_0x4621ac,_0x4b4ac9['newItem']=![];!_0x4b4ac9['item']&&(_0x4b4ac9[_0xcebafa(0x1656)]={'type':_0xcebafa(0x108c)},_0x4b4ac9[_0xcebafa(0x1656)][_0x28c606()[_0xcebafa(0xd56)](_0xc338a1)+'Id']=_0x10904f['id'],_0x4b4ac9[_0xcebafa(0x2021)]='INTEGRATIONS.NEW_'+_0x28c606()['toUpper'](_0xc338a1),_0x4b4ac9['newItem']=!![]);_0x4b4ac9['addNewItem']=_0x1058ab,_0x4b4ac9[_0xcebafa(0x1dbc)]=_0xd0da95,_0x4b4ac9['deleteItem']=_0x1f0257,_0x4b4ac9[_0xcebafa(0x14d)]=_0x36d132,_0x4b4ac9[_0xcebafa(0x16cb)]=_0x4d6788,_0x170fb3[_0xcebafa(0xefb)]['get']({'nolimit':!![]})[_0xcebafa(0x15e7)]['then'](function(_0x571315){const _0x375f3d=_0xcebafa;return _0x4b4ac9[_0x375f3d(0x145c)]=_0x571315[_0x375f3d(0x28b8)]?_0x571315[_0x375f3d(0x28b8)]:[],_0x170fb3[_0x375f3d(0x1445)][_0x375f3d(0xa81)]()[_0x375f3d(0x15e7)];})[_0xcebafa(0x64a)](function(_0x48234d){const _0x630a9f=_0xcebafa;return _0x4b4ac9[_0x630a9f(0x109a)]=_0x28c606()['difference'](_0x28c606()[_0x630a9f(0x1ec6)](_0x48234d),['$promise',_0x630a9f(0x19ba),_0x630a9f(0x2378),'updatedAt','sourceid']),_0x4b4ac9['voiceAgentReportColumns'][_0x630a9f(0x1954)](_0x630a9f(0xdd4)),_0x170fb3['voiceDialReport'][_0x630a9f(0xa81)]()[_0x630a9f(0x15e7)];})['then'](function(_0x24073a){const _0x11e233=_0xcebafa;_0x4b4ac9[_0x11e233(0xdae)]=_0x28c606()[_0x11e233(0xde7)](_0x28c606()['keys'](_0x24073a),[_0x11e233(0x15e7),'$resolved',_0x11e233(0x2378),_0x11e233(0x2056),_0x11e233(0x2785)]),_0x4b4ac9[_0x11e233(0xdae)][_0x11e233(0x1954)]('recordingURL');})[_0xcebafa(0x20cd)](function(_0x5869cf){const _0x3a4975=_0xcebafa;_0x3b7319[_0x3a4975(0x1bd0)]({'title':_0x5869cf[_0x3a4975(0x10b3)]?_0x3a4975(0x575)+_0x5869cf[_0x3a4975(0x10b3)]+_0x3a4975(0x21db)+_0x5869cf[_0x3a4975(0x2115)]:_0x3a4975(0x195a),'msg':_0x5869cf[_0x3a4975(0x1c52)]?JSON[_0x3a4975(0x2317)](_0x5869cf[_0x3a4975(0x1c52)]):_0x5869cf[_0x3a4975(0x2915)]()});}),_0x170fb3['intFreshsalesAccount'][_0xcebafa(0x5e0)]({'id':_0xea2d7e['id'],'ticketType':_0x10904f[_0xcebafa(0x1545)]?_0x10904f[_0xcebafa(0x1545)]:undefined})[_0xcebafa(0x15e7)][_0xcebafa(0x64a)](function(_0x5e2518){const _0x4a4e80=_0xcebafa;_0x4b4ac9[_0x4a4e80(0x854)]=!![],_0x4b4ac9['fields']=_0x5e2518['rows']?_0x5e2518[_0x4a4e80(0x28b8)]:[],_0x4b4ac9[_0x4a4e80(0x1656)][_0x4a4e80(0x197)]&&(_0x4b4ac9[_0x4a4e80(0x1753)]=_0x28c606()[_0x4a4e80(0x27bc)](_0x4b4ac9[_0x4a4e80(0xf26)],{'id':_0x4b4ac9['item'][_0x4a4e80(0x197)]}));})[_0xcebafa(0x20cd)](function(_0x42de70){const _0x234613=_0xcebafa;_0x4b4ac9['accountConnected']=![],console[_0x234613(0x1bd0)](_0x42de70);});function _0x1058ab(){const _0x41370c=_0xcebafa;_0x4b4ac9['errors']=[],_0x4b4ac9[_0x41370c(0x1753)]&&(_0x4b4ac9[_0x41370c(0x1656)][_0x41370c(0x197)]=_0x4b4ac9[_0x41370c(0x1753)]['id'],_0x4b4ac9[_0x41370c(0x1656)]['nameField']=_0x4b4ac9[_0x41370c(0x1753)][_0x41370c(0x2494)],_0x4b4ac9[_0x41370c(0x1656)]['customField']=_0x4b4ac9[_0x41370c(0x1753)][_0x41370c(0x1ad6)]),_0x170fb3['intFreshsalesField'][_0x41370c(0x2479)](_0x4b4ac9[_0x41370c(0x1656)])['$promise']['then'](function(_0x47e2b6){const _0xad342f=_0x41370c;_0x4b4ac9[_0xad342f(0x23cb)]['unshift'](_0x47e2b6),_0x3b7319[_0xad342f(0x1339)]({'title':_0x28c606()[_0xad342f(0xd56)](_0xc338a1)+_0xad342f(0xe0b),'msg':_0x28c606()[_0xad342f(0xd56)](_0xc338a1)+'\x20has\x20been\x20created!'}),_0x4d6788();})[_0x41370c(0x20cd)](function(_0x1b3596){const _0x2be85=_0x41370c;console['error'](_0x1b3596),_0x4b4ac9['errors']=_0x1b3596[_0x2be85(0x1c52)][_0x2be85(0xbae)]||[{'message':_0x1b3596[_0x2be85(0x2915)](),'type':_0x2be85(0x1675)}];});}function _0xd0da95(){const _0x57dade=_0xcebafa;_0x4b4ac9[_0x57dade(0xbae)]=[],_0x4b4ac9[_0x57dade(0x1753)]&&(_0x4b4ac9[_0x57dade(0x1656)]['idField']=_0x4b4ac9['customField']['id'],_0x4b4ac9[_0x57dade(0x1656)]['nameField']=_0x4b4ac9[_0x57dade(0x1753)][_0x57dade(0x2494)],_0x4b4ac9[_0x57dade(0x1656)][_0x57dade(0x1753)]=_0x4b4ac9[_0x57dade(0x1753)][_0x57dade(0x1ad6)]),_0x170fb3[_0x57dade(0x1ce0)]['update']({'id':_0x4b4ac9[_0x57dade(0x1656)]['id']},_0x4b4ac9[_0x57dade(0x1656)])[_0x57dade(0x15e7)][_0x57dade(0x64a)](function(_0x175f15){const _0x39afee=_0x57dade,_0x4d2b8d=_0x28c606()[_0x39afee(0x27bc)](_0x4b4ac9[_0x39afee(0x23cb)],{'id':_0x175f15['id']});_0x4d2b8d&&_0x28c606()[_0x39afee(0x14fe)](_0x4d2b8d,_0x175f15),_0x3b7319['success']({'title':_0x28c606()[_0x39afee(0xd56)](_0xc338a1)+_0x39afee(0x2776),'msg':_0x28c606()[_0x39afee(0xd56)](_0xc338a1)+_0x39afee(0x271)}),_0x4d6788();})[_0x57dade(0x20cd)](function(_0x8186a7){const _0x471432=_0x57dade;console[_0x471432(0x1bd0)](_0x8186a7),_0x4b4ac9[_0x471432(0xbae)]=_0x8186a7[_0x471432(0x1c52)][_0x471432(0xbae)]||[{'message':_0x8186a7['toString'](),'type':'api.intItem.update'}];});}function _0x1f0257(_0x3b024e){const _0x56755f=_0xcebafa;_0x4b4ac9[_0x56755f(0xbae)]=[];const _0x1519ec=_0x512054[_0x56755f(0x856)]()[_0x56755f(0x2021)](_0x56755f(0x103a))['content'](_0x56755f(0x2966)+_0xc338a1+_0x56755f(0x4b8))[_0x56755f(0x213e)](_0x56755f(0x1f2e)+_0x28c606()[_0x56755f(0xd56)](_0xc338a1))['ok'](_0x56755f(0x2664))[_0x56755f(0x101a)](_0x56755f(0x1dc6))[_0x56755f(0x2283)](_0x3b024e);_0x512054['show'](_0x1519ec)[_0x56755f(0x64a)](function(){const _0x35db80=_0x56755f;_0x170fb3[_0x35db80(0x1ce0)][_0x35db80(0xabd)]({'id':_0x4b4ac9[_0x35db80(0x1656)]['id']})['$promise'][_0x35db80(0x64a)](function(){const _0x3018aa=_0x35db80;_0x28c606()[_0x3018aa(0x21c7)](_0x4b4ac9[_0x3018aa(0x23cb)],{'id':_0x4b4ac9['item']['id']}),_0x3b7319[_0x3018aa(0x1339)]({'title':_0x28c606()[_0x3018aa(0xd56)](_0xc338a1)+_0x3018aa(0x6ec),'msg':_0x28c606()[_0x3018aa(0xd56)](_0xc338a1)+_0x3018aa(0x1fa8)}),_0x4d6788();})[_0x35db80(0x20cd)](function(_0x33d371){const _0x3e0133=_0x35db80;console['error'](_0x33d371),_0x4b4ac9[_0x3e0133(0xbae)]=_0x33d371[_0x3e0133(0x1c52)][_0x3e0133(0xbae)]||[{'message':_0x33d371['toString'](),'type':_0x3e0133(0x27aa)}];});},function(){});}function _0x36d132(){const _0x24bd38=_0xcebafa;return _0x4b4ac9[_0x24bd38(0x1656)][_0x24bd38(0x1299)]!==undefined?_0x4b4ac9[_0x24bd38(0x1656)][_0x24bd38(0x1299)]:_0x24bd38(0xfae);}function _0x4d6788(){const _0x1416e6=_0xcebafa;_0x512054[_0x1416e6(0x268e)]();}}const _0x1b087e=_0x1126c8;;_0x5cac6b[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog','$document',_0x49a1e3(0x298c),'license',_0x49a1e3(0x28d6),'api',_0x49a1e3(0x680),'Auth',_0x49a1e3(0x11f0),_0x49a1e3(0x16b2)];function _0x5cac6b(_0x32576a,_0x1cb872,_0x3724e6,_0x350721,_0x53d84a,_0x24a658,_0x1521ef,_0x49be9b,_0x20e935,_0x33500c,_0x409258,_0x5b13f6){const _0x9249d0=_0x49a1e3,_0x178ea9=this;_0x178ea9[_0x9249d0(0x1d3d)]=_0x33500c[_0x9249d0(0x808)](),_0x178ea9[_0x9249d0(0x1947)]=_0x24a658,_0x178ea9[_0x9249d0(0x28d6)]=_0x1521ef,_0x178ea9[_0x9249d0(0xccc)]=_0x178ea9[_0x9249d0(0x28d6)][_0x9249d0(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x178ea9[_0x9249d0(0xb36)]=_0x1cb872[_0x9249d0(0x48e)]()+'://'+_0x1cb872[_0x9249d0(0x1e5d)](),_0x178ea9['freshsalesAccount']=_0x409258||_0x32576a['params']['freshsalesAccount']||{},_0x178ea9[_0x9249d0(0x16b2)]=_0x5b13f6&&_0x5b13f6[_0x9249d0(0xb90)]==0x1?_0x5b13f6['rows'][0x0]:null,_0x178ea9[_0x9249d0(0x402)]=_0x33500c[_0x9249d0(0xa7e)](_0x178ea9[_0x9249d0(0x16b2)]?_0x178ea9[_0x9249d0(0x16b2)][_0x9249d0(0x402)]:null),_0x178ea9[_0x9249d0(0x6c2)]={},_0x178ea9['selectedTab']=_0x32576a['params'][_0x9249d0(0x1222)]||0x0,_0x178ea9['alert']=_0x20e935['info'],_0x178ea9['gotoFreshsalesAccounts']=_0x4e744a,_0x178ea9['saveFreshsalesAccount']=_0x13ffd3;function _0x4e744a(){const _0x568044=_0x9249d0;_0x32576a['go'](_0x568044(0x9ba),{},{'reload':_0x568044(0x9ba)});}function _0x13ffd3(){const _0x255e04=_0x9249d0;_0x49be9b[_0x255e04(0xfac)]['update']({'id':_0x178ea9['freshsalesAccount']['id']},_0x178ea9['freshsalesAccount'])[_0x255e04(0x15e7)][_0x255e04(0x64a)](function(){const _0x2bf2fd=_0x255e04;_0x20e935[_0x2bf2fd(0x1339)]({'title':_0x2bf2fd(0xde1),'msg':_0x178ea9['freshsalesAccount'][_0x2bf2fd(0x2494)]?_0x178ea9[_0x2bf2fd(0x11f0)][_0x2bf2fd(0x2494)]+_0x2bf2fd(0x2032):''});})['catch'](function(_0x2f2f38){const _0x339f59=_0x255e04;_0x20e935[_0x339f59(0x1bd0)]({'title':_0x2f2f38['status']?_0x339f59(0x575)+_0x2f2f38[_0x339f59(0x10b3)]+'\x20-\x20'+_0x2f2f38[_0x339f59(0x2115)]:_0x339f59(0xa09),'msg':_0x2f2f38[_0x339f59(0x1c52)]?JSON[_0x339f59(0x2317)](_0x2f2f38[_0x339f59(0x1c52)]):_0x2f2f38[_0x339f59(0x2915)]()});});}}const _0x5e107f=_0x5cac6b;;const _0x1e3294=_0x2e4a48['p']+_0x49a1e3(0xdc7);;_0x26d415['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),'$state',_0x49a1e3(0x2899),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x20d4),'$translate',_0x49a1e3(0x1062),_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xa19),_0x49a1e3(0x1214),'toasty',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x26d415(_0x20123d,_0x17570c,_0x132165,_0x5d2cdd,_0xe13af4,_0x11b873,_0x20cd91,_0x4e1925,_0x4a1910,_0x1a64dd,_0x1b6ee8,_0x4176a4,_0xe1428b,_0x53cc12,_0x235513,_0x179c04,_0x4823b2){const _0x5e85e3=_0x49a1e3,_0x2b6c0f=this;_0x2b6c0f['license']=_0x179c04,_0x2b6c0f[_0x5e85e3(0x28d6)]=_0x4823b2,_0x2b6c0f[_0x5e85e3(0x1d3d)]=_0x235513['getCurrentUser'](),_0x2b6c0f[_0x5e85e3(0x1062)]=_0x4a1910||{'count':0x0,'rows':[]},_0x2b6c0f[_0x5e85e3(0x16a8)]=_0x1a64dd,_0x2b6c0f[_0x5e85e3(0x16b2)]=_0x1b6ee8&&_0x1b6ee8['count']==0x1?_0x1b6ee8[_0x5e85e3(0x28b8)][0x0]:null,_0x2b6c0f[_0x5e85e3(0x402)]=_0x235513[_0x5e85e3(0xa7e)](_0x2b6c0f[_0x5e85e3(0x16b2)]?_0x2b6c0f[_0x5e85e3(0x16b2)][_0x5e85e3(0x402)]:null),_0x2b6c0f['table']='freshsalesAccounts',_0x2b6c0f[_0x5e85e3(0x300)]='',_0x2b6c0f['listOrderAsc']=null,_0x2b6c0f[_0x5e85e3(0x105d)]=[],_0x2b6c0f[_0x5e85e3(0x289a)]={'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','limit':0xa,'page':0x1},_0x2b6c0f[_0x5e85e3(0xff6)]=_0x36c2cc,_0x2b6c0f['testtestintegrationaccount']=_0xe74a89,_0x2b6c0f[_0x5e85e3(0x1262)]=_0x322aff,_0x2b6c0f[_0x5e85e3(0x1339)]=_0x164525,_0x2b6c0f[_0x5e85e3(0xf41)]=_0x4ae937,_0x2b6c0f['createOrEditFreshsalesAccount']=_0x4836b8,_0x2b6c0f['deleteFreshsalesAccount']=_0x52b700,_0x2b6c0f[_0x5e85e3(0x1991)]=_0x380b30,_0x2b6c0f[_0x5e85e3(0x1ae0)]=_0x560324,_0x2b6c0f[_0x5e85e3(0x9ff)]=_0x82d2f2,_0x2b6c0f['selectAllFreshsalesAccounts']=_0x750cb8;function _0x36c2cc(_0x583e20){const _0x1e6bc0=_0x5e85e3;_0x132165['go'](_0x1e6bc0(0x8fc),{'id':_0x583e20['id'],'freshsalesAccount':_0x583e20,'crudPermissions':_0x2b6c0f[_0x1e6bc0(0x402)]});}function _0xe74a89(_0x8ba6d2){const _0x58b3c2=_0x5e85e3;return _0x4176a4[_0x58b3c2(0xfac)][_0x58b3c2(0x5e0)]({'id':_0x8ba6d2['id'],'test':!![]})['$promise'][_0x58b3c2(0x64a)](function(){const _0x2be6a0=_0x58b3c2;_0x53cc12['success']({'title':_0x2be6a0(0x222d),'msg':'Connection\x20succeded!'});})['catch'](function(_0x3c65f4){const _0x5b6708=_0x58b3c2;_0x53cc12[_0x5b6708(0x1bd0)]({'title':_0x5b6708(0x222d),'msg':_0x3c65f4[_0x5b6708(0x1c52)]?_0x3c65f4[_0x5b6708(0x1c52)]['message']?_0x3c65f4[_0x5b6708(0x1c52)][_0x5b6708(0x18ca)]:JSON[_0x5b6708(0x2317)](_0x3c65f4['data']):_0x3c65f4['toString']()});});}function _0x322aff(_0x25158b,_0x3eefe5){const _0x4ec512=_0x5e85e3,_0x24fe46=_0xe13af4['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()[_0x4ec512(0xc01)](_0x4ec512(0x11f0))+'?')[_0x4ec512(0x33a)](_0x4ec512(0x50b)+(_0x25158b[_0x4ec512(0x2494)]||_0x4ec512(0x11f0))+_0x4ec512(0x26d0)+_0x4ec512(0x4b8))[_0x4ec512(0x213e)]('delete\x20freshsalesAccount')[_0x4ec512(0x2283)](_0x3eefe5)['ok']('OK')['cancel'](_0x4ec512(0x18fd));_0xe13af4[_0x4ec512(0xa60)](_0x24fe46)[_0x4ec512(0x64a)](function(){_0x52b700(_0x25158b);},function(){const _0xfac024=_0x4ec512;console[_0xfac024(0x9b4)](_0xfac024(0x18fd));});}let _0x1d82e5=!![],_0x1f9797=0x1;_0x20123d[_0x5e85e3(0xc62)](_0x5e85e3(0x1cb9),function(_0x36c936,_0x4ce410){const _0x1e839e=_0x5e85e3;_0x1d82e5?_0x20cd91(function(){_0x1d82e5=![];}):(!_0x4ce410&&(_0x1f9797=_0x2b6c0f['query'][_0x1e839e(0xc72)]),_0x36c936!==_0x4ce410&&(_0x2b6c0f[_0x1e839e(0x289a)][_0x1e839e(0xc72)]=0x1),!_0x36c936&&(_0x2b6c0f['query'][_0x1e839e(0xc72)]=_0x1f9797),_0x2b6c0f['getFreshsalesAccounts']());});function _0x164525(_0x54082e){_0x2b6c0f['freshsalesAccounts']=_0x54082e||{'count':0x0,'rows':[]};}function _0x4ae937(){const _0x779a15=_0x5e85e3;_0x2b6c0f[_0x779a15(0x289a)][_0x779a15(0x24f9)]=(_0x2b6c0f['query'][_0x779a15(0xc72)]-0x1)*_0x2b6c0f['query']['limit'],_0x235513[_0x779a15(0x4de)](_0x779a15(0x333))?_0x2b6c0f[_0x779a15(0x1713)]=_0x4176a4[_0x779a15(0xfac)]['get'](_0x2b6c0f['query'],_0x164525)[_0x779a15(0x15e7)]:(_0x2b6c0f[_0x779a15(0x289a)]['id']=_0x2b6c0f[_0x779a15(0x16a8)]['id'],_0x2b6c0f[_0x779a15(0x289a)][_0x779a15(0xa21)]=_0x779a15(0xd67),_0x2b6c0f[_0x779a15(0x1713)]=_0x4176a4[_0x779a15(0x16a8)][_0x779a15(0x2565)](_0x2b6c0f[_0x779a15(0x289a)],_0x164525)['$promise']);}function _0x4836b8(_0x704999,_0x4bdbb5){const _0x5a9c85=_0x5e85e3;_0xe13af4[_0x5a9c85(0xa60)]({'controller':_0x5a9c85(0xe5e),'controllerAs':'vm','templateUrl':_0x1e3294,'parent':angular[_0x5a9c85(0x1f81)](_0x11b873[_0x5a9c85(0xb49)]),'targetEvent':_0x704999,'clickOutsideToClose':!![],'locals':{'freshsalesAccount':_0x4bdbb5,'freshsalesAccounts':_0x2b6c0f[_0x5a9c85(0x1062)][_0x5a9c85(0x28b8)],'license':_0x2b6c0f[_0x5a9c85(0x1947)],'setting':_0x2b6c0f[_0x5a9c85(0x28d6)],'crudPermissions':_0x2b6c0f[_0x5a9c85(0x402)]}});}function _0x52b700(_0x45cf7e){const _0x309f2e=_0x5e85e3;_0x4176a4[_0x309f2e(0xfac)][_0x309f2e(0xabd)]({'id':_0x45cf7e['id']})[_0x309f2e(0x15e7)]['then'](function(){const _0x5056d5=_0x309f2e;_0x28c606()['remove'](_0x2b6c0f[_0x5056d5(0x1062)][_0x5056d5(0x28b8)],{'id':_0x45cf7e['id']}),_0x2b6c0f[_0x5056d5(0x1062)][_0x5056d5(0xb90)]-=0x1,!_0x2b6c0f[_0x5056d5(0x1062)][_0x5056d5(0x28b8)][_0x5056d5(0x1b9e)]&&_0x2b6c0f[_0x5056d5(0xf41)](),_0x53cc12[_0x5056d5(0x1339)]({'title':_0x28c606()[_0x5056d5(0xc01)](_0x5056d5(0x526))+_0x5056d5(0x2502),'msg':_0x45cf7e[_0x5056d5(0x2494)]?_0x45cf7e[_0x5056d5(0x2494)]+_0x5056d5(0x1fa8):''});})['catch'](function(_0x1b0172){const _0x58aec8=_0x309f2e;if(_0x1b0172['data']&&_0x1b0172[_0x58aec8(0x1c52)][_0x58aec8(0xbae)]&&_0x1b0172[_0x58aec8(0x1c52)][_0x58aec8(0xbae)]['length']){_0x2b6c0f[_0x58aec8(0xbae)]=_0x1b0172['data'][_0x58aec8(0xbae)]||[{'message':_0x1b0172['toString'](),'type':_0x58aec8(0x242c)}];for(let _0x2dbd1f=0x0;_0x2dbd1f<_0x1b0172[_0x58aec8(0x1c52)]['errors'][_0x58aec8(0x1b9e)];_0x2dbd1f++){_0x53cc12['error']({'title':_0x1b0172[_0x58aec8(0x1c52)]['errors'][_0x2dbd1f][_0x58aec8(0x2185)],'msg':_0x1b0172['data'][_0x58aec8(0xbae)][_0x2dbd1f][_0x58aec8(0x18ca)]});}}else _0x53cc12[_0x58aec8(0x1bd0)]({'title':_0x1b0172['status']?'API:'+_0x1b0172['status']+'\x20-\x20'+_0x1b0172[_0x58aec8(0x2115)]:_0x58aec8(0x242c),'msg':_0x1b0172[_0x58aec8(0x1c52)]?JSON['stringify'](_0x1b0172[_0x58aec8(0x1c52)][_0x58aec8(0x18ca)]):_0x1b0172['message']||_0x1b0172[_0x58aec8(0x2915)]()});});}function _0x380b30(){const _0xddaf97=_0x5e85e3,_0x4e081d=angular[_0xddaf97(0x289e)](_0x2b6c0f[_0xddaf97(0x105d)]);return _0x2b6c0f[_0xddaf97(0x105d)]=[],_0x4e081d;}function _0x560324(_0x3e9d3e){const _0x298c0f=_0x5e85e3,_0x34c8c6=_0xe13af4[_0x298c0f(0x856)]()[_0x298c0f(0x2021)](_0x298c0f(0x2406))[_0x298c0f(0x33a)](_0x298c0f(0x50b)+_0x2b6c0f[_0x298c0f(0x105d)][_0x298c0f(0x1b9e)]+_0x298c0f(0x163e)+'\x20will\x20be\x20deleted.')[_0x298c0f(0x213e)](_0x298c0f(0x1b01))[_0x298c0f(0x2283)](_0x3e9d3e)['ok']('OK')[_0x298c0f(0x101a)](_0x298c0f(0x18fd));_0xe13af4[_0x298c0f(0xa60)](_0x34c8c6)[_0x298c0f(0x64a)](function(){const _0x198206=_0x298c0f;_0x2b6c0f['selectedFreshsalesAccounts'][_0x198206(0x1397)](function(_0x2129f7){_0x52b700(_0x2129f7);}),_0x2b6c0f['selectedFreshsalesAccounts']=[];});}function _0x82d2f2(){_0x2b6c0f['selectedFreshsalesAccounts']=[];}function _0x750cb8(){const _0x4a3506=_0x5e85e3;_0x2b6c0f[_0x4a3506(0x105d)]=_0x2b6c0f['freshsalesAccounts'][_0x4a3506(0x28b8)];}}const _0x480a58=_0x26d415;;_0x3c06cd[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$state','$location','$mdDialog','$q','$translate','toasty',_0x49a1e3(0x1f70),'salesforceAccount',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x3c06cd(_0x2bfe74,_0x23ad87,_0x437637,_0x19ee7b,_0x6ce17f,_0x446b50,_0x42c9a1,_0x344aaf,_0x164ee0,_0x4f7a46,_0x159b93,_0x3bf69,_0x362e24,_0x58c607){const _0x2b9bf8=_0x49a1e3,_0x450592=this;_0x450592[_0x2b9bf8(0x1d3d)]=_0x159b93[_0x2b9bf8(0x808)](),_0x450592[_0x2b9bf8(0xbae)]=[],_0x450592['setting']=_0x362e24,_0x450592[_0x2b9bf8(0x1947)]=_0x3bf69,_0x450592[_0x2b9bf8(0x402)]=_0x58c607,_0x450592[_0x2b9bf8(0x6c2)]={},_0x450592['passwordPattern']=_0x450592['setting']&&_0x450592[_0x2b9bf8(0x28d6)][_0x2b9bf8(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x450592[_0x2b9bf8(0x2021)]=_0x2b9bf8(0x236a),_0x450592[_0x2b9bf8(0x1fdb)]=angular[_0x2b9bf8(0x289e)](_0x164ee0),_0x450592[_0x2b9bf8(0x1f70)]=_0x344aaf,_0x450592[_0x2b9bf8(0x1ea1)]=![];!_0x450592[_0x2b9bf8(0x1fdb)]&&(_0x450592['salesforceAccount']={'type':'integrationTab','serverUrl':_0x437637[_0x2b9bf8(0x48e)]()+_0x2b9bf8(0xe1f)+_0x437637[_0x2b9bf8(0x1e5d)]()+(_0x437637['port']()?':'+_0x437637[_0x2b9bf8(0x23f2)]():'')},_0x450592[_0x2b9bf8(0x2021)]=_0x2b9bf8(0x2205),_0x450592['newSalesforceAccount']=!![]);_0x450592['addNewSalesforceAccount']=_0x2ab448,_0x450592[_0x2b9bf8(0x21f3)]=_0x39cfba,_0x450592[_0x2b9bf8(0x2767)]=_0x57b300,_0x450592[_0x2b9bf8(0x1605)]=_0x1b3219,_0x450592[_0x2b9bf8(0x16cb)]=_0x541791;function _0x2ab448(){const _0x376388=_0x2b9bf8;_0x450592['errors']=[],_0x4f7a46['intSalesforceAccount'][_0x376388(0x2479)](_0x450592['salesforceAccount'])[_0x376388(0x15e7)][_0x376388(0x64a)](function(_0x4013cd){const _0x447c4a=_0x376388;_0x450592[_0x447c4a(0x1f70)]['unshift'](_0x4013cd[_0x447c4a(0x14f8)]()),_0x42c9a1['success']({'title':_0x447c4a(0x145e),'msg':_0x450592[_0x447c4a(0x1fdb)][_0x447c4a(0x2494)]?_0x450592[_0x447c4a(0x1fdb)][_0x447c4a(0x2494)]+'\x20has\x20been\x20created!':''}),_0x541791(_0x4013cd);})[_0x376388(0x20cd)](function(_0x1974b6){const _0x30ceea=_0x376388;if(_0x1974b6[_0x30ceea(0x1c52)]&&_0x1974b6[_0x30ceea(0x1c52)]['errors']&&_0x1974b6[_0x30ceea(0x1c52)][_0x30ceea(0xbae)][_0x30ceea(0x1b9e)]){_0x450592[_0x30ceea(0xbae)]=_0x1974b6[_0x30ceea(0x1c52)][_0x30ceea(0xbae)]||[{'message':_0x1974b6[_0x30ceea(0x2915)](),'type':_0x30ceea(0xc21)}];for(let _0x47ea81=0x0;_0x47ea81<_0x1974b6[_0x30ceea(0x1c52)][_0x30ceea(0xbae)][_0x30ceea(0x1b9e)];_0x47ea81+=0x1){_0x42c9a1['error']({'title':_0x1974b6[_0x30ceea(0x1c52)]['errors'][_0x47ea81][_0x30ceea(0x2185)],'msg':_0x1974b6[_0x30ceea(0x1c52)][_0x30ceea(0xbae)][_0x47ea81][_0x30ceea(0x18ca)]});}}else _0x42c9a1[_0x30ceea(0x1bd0)]({'title':_0x1974b6['status']?_0x30ceea(0x575)+_0x1974b6[_0x30ceea(0x10b3)]+'\x20-\x20'+_0x1974b6['statusText']:_0x30ceea(0xc21),'msg':_0x1974b6[_0x30ceea(0x1c52)]?JSON['stringify'](_0x1974b6[_0x30ceea(0x1c52)][_0x30ceea(0x18ca)]):_0x1974b6[_0x30ceea(0x2915)]()});});}function _0x39cfba(){const _0x2bb822=_0x2b9bf8;_0x450592[_0x2bb822(0xbae)]=[],_0x4f7a46['intSalesforceAccount'][_0x2bb822(0x2603)]({'id':_0x450592[_0x2bb822(0x1fdb)]['id']},_0x450592['salesforceAccount'])[_0x2bb822(0x15e7)][_0x2bb822(0x64a)](function(_0x413b35){const _0x3d2499=_0x2bb822,_0x10409d=_0x28c606()[_0x3d2499(0x27bc)](_0x450592['salesforceAccounts'],{'id':_0x413b35['id']});_0x10409d&&_0x28c606()['merge'](_0x10409d,_0x28c606()[_0x3d2499(0x27bb)](_0x413b35[_0x3d2499(0x14f8)](),_0x28c606()[_0x3d2499(0x1ec6)](_0x10409d))),_0x42c9a1['success']({'title':'SalesforceAccount\x20properly\x20saved!','msg':_0x450592[_0x3d2499(0x1fdb)][_0x3d2499(0x2494)]?_0x450592['salesforceAccount'][_0x3d2499(0x2494)]+_0x3d2499(0x271):''}),_0x541791(_0x413b35);})[_0x2bb822(0x20cd)](function(_0x59c76e){const _0x177e42=_0x2bb822;if(_0x59c76e[_0x177e42(0x1c52)]&&_0x59c76e[_0x177e42(0x1c52)][_0x177e42(0xbae)]&&_0x59c76e[_0x177e42(0x1c52)][_0x177e42(0xbae)][_0x177e42(0x1b9e)]){_0x450592['errors']=_0x59c76e[_0x177e42(0x1c52)]['errors']||[{'message':_0x59c76e[_0x177e42(0x2915)](),'type':_0x177e42(0x1cd3)}];for(let _0x38f13f=0x0;_0x38f13f<_0x59c76e[_0x177e42(0x1c52)][_0x177e42(0xbae)][_0x177e42(0x1b9e)];_0x38f13f++){_0x42c9a1[_0x177e42(0x1bd0)]({'title':_0x59c76e[_0x177e42(0x1c52)][_0x177e42(0xbae)][_0x38f13f]['type'],'msg':_0x59c76e[_0x177e42(0x1c52)][_0x177e42(0xbae)][_0x38f13f][_0x177e42(0x18ca)]});}}else _0x42c9a1[_0x177e42(0x1bd0)]({'title':_0x59c76e['status']?'API:'+_0x59c76e[_0x177e42(0x10b3)]+_0x177e42(0x21db)+_0x59c76e[_0x177e42(0x2115)]:_0x177e42(0x1cd3),'msg':_0x59c76e[_0x177e42(0x1c52)]?JSON[_0x177e42(0x2317)](_0x59c76e[_0x177e42(0x1c52)][_0x177e42(0x18ca)]):_0x59c76e[_0x177e42(0x2915)]()});});}function _0x57b300(_0x2ff53e){const _0x55ba6c=_0x2b9bf8;_0x450592[_0x55ba6c(0xbae)]=[];const _0x5d9b62=_0x19ee7b[_0x55ba6c(0x856)]()[_0x55ba6c(0x2021)](_0x55ba6c(0x103a))[_0x55ba6c(0x12b8)]('The\x20salesforceAccount\x20will\x20be\x20deleted.')[_0x55ba6c(0x213e)]('Delete\x20SalesforceAccount')['ok']('Delete')[_0x55ba6c(0x101a)](_0x55ba6c(0x1dc6))['targetEvent'](_0x2ff53e);_0x19ee7b[_0x55ba6c(0xa60)](_0x5d9b62)[_0x55ba6c(0x64a)](function(){const _0x18431e=_0x55ba6c;_0x4f7a46[_0x18431e(0x1ddd)][_0x18431e(0xabd)]({'id':_0x450592[_0x18431e(0x1fdb)]['id']})[_0x18431e(0x15e7)]['then'](function(){const _0x200c1a=_0x18431e;_0x28c606()[_0x200c1a(0x21c7)](_0x450592[_0x200c1a(0x1f70)],{'id':_0x450592['salesforceAccount']['id']}),_0x42c9a1[_0x200c1a(0x1339)]({'title':_0x200c1a(0x9be),'msg':(_0x450592['salesforceAccount'][_0x200c1a(0x2494)]||_0x200c1a(0x1fdb))+_0x200c1a(0x1fa8)}),_0x541791(_0x450592[_0x200c1a(0x1fdb)]);})[_0x18431e(0x20cd)](function(_0x571c19){const _0x4dfb4f=_0x18431e;if(_0x571c19[_0x4dfb4f(0x1c52)]&&_0x571c19[_0x4dfb4f(0x1c52)]['errors']&&_0x571c19[_0x4dfb4f(0x1c52)]['errors'][_0x4dfb4f(0x1b9e)]){_0x450592[_0x4dfb4f(0xbae)]=_0x571c19[_0x4dfb4f(0x1c52)][_0x4dfb4f(0xbae)]||[{'message':_0x571c19[_0x4dfb4f(0x2915)](),'type':_0x4dfb4f(0x1023)}];for(let _0x56bd31=0x0;_0x56bd31<_0x571c19[_0x4dfb4f(0x1c52)]['errors'][_0x4dfb4f(0x1b9e)];_0x56bd31++){_0x42c9a1['error']({'title':_0x571c19['data'][_0x4dfb4f(0xbae)][_0x56bd31]['type'],'msg':_0x571c19[_0x4dfb4f(0x1c52)][_0x4dfb4f(0xbae)][_0x56bd31][_0x4dfb4f(0x18ca)]});}}else _0x42c9a1[_0x4dfb4f(0x1bd0)]({'title':_0x571c19[_0x4dfb4f(0x10b3)]?_0x4dfb4f(0x575)+_0x571c19[_0x4dfb4f(0x10b3)]+'\x20-\x20'+_0x571c19[_0x4dfb4f(0x2115)]:_0x4dfb4f(0x1023),'msg':_0x571c19[_0x4dfb4f(0x1c52)]?JSON[_0x4dfb4f(0x2317)](_0x571c19[_0x4dfb4f(0x1c52)]['message']):_0x571c19[_0x4dfb4f(0x18ca)]||_0x571c19[_0x4dfb4f(0x2915)]()});});},function(){});}function _0x1b3219(_0x16ec35){return _0x16ec35===null?undefined:new Date(_0x16ec35);}function _0x541791(_0x58b18c){const _0x3bf9c4=_0x2b9bf8;_0x19ee7b[_0x3bf9c4(0x268e)](_0x58b18c);}}const _0x2dd2f5=_0x3c06cd;;const _0x4889f6=_0x2e4a48['p']+_0x49a1e3(0x9b6);;const _0x572e25=_0x2e4a48['p']+_0x49a1e3(0xeb5);;_0x24deb6[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf)];function _0x24deb6(_0x1ae433,_0x42ec99,_0x5ca125,_0x114ddd,_0x5d1cbb){const _0x51de62=_0x49a1e3,_0x26544a=this;_0x26544a['currentUser']=_0x5d1cbb[_0x51de62(0x808)](),_0x26544a[_0x51de62(0x1fdb)]={},_0x26544a[_0x51de62(0xe53)]={},_0x26544a[_0x51de62(0x23a8)]=[],_0x26544a[_0x51de62(0x24b9)]=-0x1,_0x26544a['crudPermissions'],_0x26544a['init']=_0x28a513,_0x26544a[_0x51de62(0x8e3)]=_0x5aa9c9,_0x26544a[_0x51de62(0x1f0e)]=_0x267930,_0x26544a[_0x51de62(0x191f)]=_0x473b10,_0x26544a[_0x51de62(0x22f7)]=_0x4f1429;function _0x4f1429(){const _0xc33abc=_0x51de62;return _0x5ca125[_0xc33abc(0x1e42)][_0xc33abc(0x2603)]({'id':_0x26544a['salesforceConfiguration']['id']},_0x26544a['salesforceConfiguration'])['$promise']['then'](function(){const _0x1e598c=_0xc33abc;_0x114ddd[_0x1e598c(0x1339)]({'title':_0x1e598c(0x23bd),'msg':'Module\x20has\x20been\x20updated!'});})['catch'](function(_0x12a0bc){const _0x3708ea=_0xc33abc;_0x114ddd[_0x3708ea(0x1bd0)]({'title':_0x12a0bc[_0x3708ea(0x10b3)]?_0x3708ea(0x575)+_0x12a0bc['status']+_0x3708ea(0x21db)+_0x12a0bc['statusText']:_0x3708ea(0x20b5),'msg':_0x12a0bc[_0x3708ea(0x1c52)]?JSON['stringify'](_0x12a0bc[_0x3708ea(0x1c52)]):_0x12a0bc[_0x3708ea(0x2915)]()});});}function _0x28a513(_0x184d53,_0x292763){const _0x425af9=_0x51de62;_0x26544a[_0x425af9(0x1fdb)]=_0x184d53,_0x26544a[_0x425af9(0x402)]=typeof _0x292763!==_0x425af9(0x19a1)?_0x292763:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5ca125[_0x425af9(0x1ddd)][_0x425af9(0x340)]({'id':_0x26544a[_0x425af9(0x1fdb)]['id'],'sort':'-updatedAt'})['$promise'][_0x425af9(0x64a)](function(_0x4e233c){const _0x3a0dc3=_0x425af9;return _0x26544a[_0x3a0dc3(0x23a8)]=_0x4e233c[_0x3a0dc3(0x28b8)]?_0x4e233c[_0x3a0dc3(0x28b8)]:[],_0x26544a['configurations'][_0x3a0dc3(0x1b9e)]&&_0x26544a[_0x3a0dc3(0x8e3)](0x0),_0x5ca125[_0x3a0dc3(0xefb)][_0x3a0dc3(0x896)]({'nolimit':!![],'sort':'name'})[_0x3a0dc3(0x15e7)];})[_0x425af9(0x64a)](function(_0x4310db){const _0x33d7c7=_0x425af9;_0x26544a[_0x33d7c7(0x145c)]=_0x4310db[_0x33d7c7(0x28b8)]?_0x4310db[_0x33d7c7(0x28b8)]:[],_0x26544a[_0x33d7c7(0x2685)]=_0x28c606()[_0x33d7c7(0x161e)](_0x26544a[_0x33d7c7(0x145c)],'id');})[_0x425af9(0x20cd)](function(_0x2c3096){const _0x429787=_0x425af9;_0x114ddd[_0x429787(0x1bd0)]({'title':_0x2c3096[_0x429787(0x10b3)]?'API:'+_0x2c3096['status']+_0x429787(0x21db)+_0x2c3096[_0x429787(0x2115)]:'SYSTEM:GETCONFIGURATION','msg':_0x2c3096['data']?JSON[_0x429787(0x2317)](_0x2c3096[_0x429787(0x1c52)]):_0x2c3096[_0x429787(0x2915)]()});});}function _0x5aa9c9(_0x2ce8e0){const _0x1f53b9=_0x51de62;_0x26544a[_0x1f53b9(0xe53)]=_0x26544a[_0x1f53b9(0x23a8)][_0x2ce8e0],_0x26544a[_0x1f53b9(0x24b9)]=_0x2ce8e0,_0x5ca125['intSalesforceConfiguration'][_0x1f53b9(0x241f)]({'id':_0x26544a[_0x1f53b9(0xe53)]['id']})[_0x1f53b9(0x15e7)]['then'](function(_0x576f50){const _0x292f18=_0x1f53b9;return _0x26544a['subjects']=_0x576f50['rows']?_0x576f50[_0x292f18(0x28b8)]:[],_0x5ca125[_0x292f18(0x1e42)]['getDescriptions']({'id':_0x26544a[_0x292f18(0xe53)]['id']})[_0x292f18(0x15e7)];})[_0x1f53b9(0x64a)](function(_0x38ef2b){const _0x40274c=_0x1f53b9;return _0x26544a[_0x40274c(0x24b6)]=_0x38ef2b[_0x40274c(0x28b8)]?_0x38ef2b[_0x40274c(0x28b8)]:[],_0x5ca125['intSalesforceConfiguration'][_0x40274c(0x5e0)]({'id':_0x26544a[_0x40274c(0xe53)]['id']})[_0x40274c(0x15e7)];})[_0x1f53b9(0x64a)](function(_0x334c8a){const _0x152de4=_0x1f53b9;_0x26544a[_0x152de4(0xf26)]=_0x334c8a['rows']?_0x334c8a[_0x152de4(0x28b8)]:[];})['catch'](function(_0x2da771){const _0x4579b0=_0x1f53b9;_0x114ddd[_0x4579b0(0x1bd0)]({'title':_0x2da771[_0x4579b0(0x10b3)]?_0x4579b0(0x575)+_0x2da771['status']+'\x20-\x20'+_0x2da771[_0x4579b0(0x2115)]:_0x4579b0(0x15c1),'msg':_0x2da771[_0x4579b0(0x1c52)]?JSON[_0x4579b0(0x2317)](_0x2da771[_0x4579b0(0x1c52)]):_0x2da771[_0x4579b0(0x2915)]()});});}function _0x267930(_0x52ee50,_0x16d875){const _0x58b5e6=_0x51de62;_0x1ae433[_0x58b5e6(0xa60)]({'controller':_0x58b5e6(0x241),'controllerAs':'vm','templateUrl':_0x4889f6,'parent':angular[_0x58b5e6(0x1f81)](_0x42ec99['body']),'targetEvent':_0x52ee50,'clickOutsideToClose':!![],'locals':{'salesforceConfiguration':_0x16d875,'configurations':_0x26544a[_0x58b5e6(0x23a8)],'license':null,'setting':null,'crudPermissions':_0x26544a[_0x58b5e6(0x402)]}})[_0x58b5e6(0x988)](function(){const _0x111884=_0x58b5e6;_0x26544a[_0x111884(0x8e3)](0x0);});}function _0x473b10(_0x285046,_0x5c5660){const _0xd09309=_0x51de62,_0x52551e=_0x1ae433[_0xd09309(0x856)]()[_0xd09309(0x2021)](_0xd09309(0x321))[_0xd09309(0x33a)](_0xd09309(0x50b)+(_0x5c5660['name']||_0xd09309(0xe53))+_0xd09309(0x26d0)+_0xd09309(0x4b8))[_0xd09309(0x213e)](_0xd09309(0x1f3))[_0xd09309(0x2283)](_0x285046)['ok']('OK')[_0xd09309(0x101a)](_0xd09309(0x18fd));_0x1ae433[_0xd09309(0xa60)](_0x52551e)['then'](function(){const _0x238a2a=_0xd09309;_0x5ca125[_0x238a2a(0x1e42)][_0x238a2a(0xabd)]({'id':_0x5c5660['id']})[_0x238a2a(0x15e7)][_0x238a2a(0x64a)](function(){const _0x22bbf7=_0x238a2a;_0x28c606()[_0x22bbf7(0x21c7)](_0x26544a[_0x22bbf7(0x23a8)],{'id':_0x5c5660['id']}),_0x114ddd[_0x22bbf7(0x1339)]({'title':_0x22bbf7(0xbc2),'msg':_0x5c5660[_0x22bbf7(0x2494)]?_0x5c5660[_0x22bbf7(0x2494)]+'\x20has\x20been\x20deleted!':''});})[_0x238a2a(0x20cd)](function(_0x404305){const _0x3ed5d8=_0x238a2a;_0x114ddd[_0x3ed5d8(0x1bd0)]({'title':_0x404305[_0x3ed5d8(0x10b3)]?_0x3ed5d8(0x575)+_0x404305['status']+_0x3ed5d8(0x21db)+_0x404305[_0x3ed5d8(0x2115)]:_0x3ed5d8(0x2925),'msg':_0x404305[_0x3ed5d8(0x1c52)]?JSON[_0x3ed5d8(0x2317)](_0x404305[_0x3ed5d8(0x1c52)]):_0x404305[_0x3ed5d8(0x2915)]()});})['finally'](function(){const _0x320e6c=_0x238a2a;_0x26544a[_0x320e6c(0x8e3)](0x0);});},function(){console['log']('CANCEL');});}_0x26544a[_0x51de62(0x2639)]=[],_0x26544a[_0x51de62(0x22b1)]=_0x81d7a7,_0x26544a[_0x51de62(0xa6a)]=_0x6a1387,_0x26544a[_0x51de62(0x17fe)]=_0x510e1f;function _0x81d7a7(_0x4c684d,_0x42b82e){const _0xc0488b=_0x51de62;_0x1ae433[_0xc0488b(0xa60)]({'controller':_0xc0488b(0x2856),'controllerAs':'vm','templateUrl':_0x572e25,'parent':angular[_0xc0488b(0x1f81)](_0x42ec99[_0xc0488b(0xb49)]),'targetEvent':_0x4c684d,'clickOutsideToClose':!![],'locals':{'type':_0xc0488b(0x25bc),'item':_0x42b82e,'items':_0x26544a[_0xc0488b(0x29b)],'configuration':_0x26544a[_0xc0488b(0xe53)],'account':_0x26544a[_0xc0488b(0x1fdb)],'license':null,'setting':null,'crudPermissions':_0x26544a[_0xc0488b(0x402)]}});}function _0x26b317(_0x3c6c0a){const _0x5f0ac7=_0x51de62;_0x5ca125[_0x5f0ac7(0x290e)][_0x5f0ac7(0xabd)]({'id':_0x3c6c0a['id']})['$promise'][_0x5f0ac7(0x64a)](function(){const _0x487b08=_0x5f0ac7;_0x28c606()['remove'](_0x26544a['subjects'],{'id':_0x3c6c0a['id']}),_0x114ddd[_0x487b08(0x1339)]({'title':_0x487b08(0x1d99),'msg':_0x487b08(0x1a0c)});})[_0x5f0ac7(0x20cd)](function(_0x1f3a80){const _0x52d9e9=_0x5f0ac7;_0x114ddd[_0x52d9e9(0x1bd0)]({'title':_0x1f3a80[_0x52d9e9(0x10b3)]?'API:'+_0x1f3a80[_0x52d9e9(0x10b3)]+'\x20-\x20'+_0x1f3a80[_0x52d9e9(0x2115)]:_0x52d9e9(0x12a9),'msg':_0x1f3a80[_0x52d9e9(0x1c52)]?JSON['stringify'](_0x1f3a80[_0x52d9e9(0x1c52)]):_0x1f3a80['toString']()});});}function _0x6a1387(_0x2539b1,_0x1c7c57){const _0x143810=_0x51de62,_0x2ee084=_0x1ae433['confirm']()[_0x143810(0x2021)](_0x143810(0x189a))['htmlContent']('Subject'+_0x143810(0x4b8))['ariaLabel'](_0x143810(0x204f))[_0x143810(0x2283)](_0x2539b1)['ok']('OK')['cancel'](_0x143810(0x18fd));_0x1ae433[_0x143810(0xa60)](_0x2ee084)['then'](function(){_0x26b317(_0x1c7c57);},function(){const _0x185e43=_0x143810;console['log'](_0x185e43(0x18fd));});}function _0x510e1f(_0x2cfb1b){const _0x336569=_0x51de62,_0x4584ba=_0x1ae433[_0x336569(0x856)]()[_0x336569(0x2021)](_0x336569(0x1cb4))[_0x336569(0x33a)](_0x336569(0x50b)+_0x26544a[_0x336569(0x2639)]['length']+'\x20selected'+_0x336569(0x4b8))[_0x336569(0x213e)](_0x336569(0x24f6))['targetEvent'](_0x2cfb1b)['ok']('OK')[_0x336569(0x101a)]('CANCEL');_0x1ae433[_0x336569(0xa60)](_0x4584ba)['then'](function(){const _0x25629d=_0x336569;_0x26544a['selectedSubjects'][_0x25629d(0x1397)](function(_0x356365){_0x26b317(_0x356365);}),_0x26544a['selectedSubjects']=[];});}_0x26544a[_0x51de62(0x21c1)]=[],_0x26544a[_0x51de62(0x3a2)]=_0xfe9423,_0x26544a['deleteDescriptionConfirm']=_0x2e198f,_0x26544a[_0x51de62(0x1efc)]=_0x334c1c;function _0xfe9423(_0x40cab6,_0x377b0b){const _0x50f352=_0x51de62;_0x1ae433[_0x50f352(0xa60)]({'controller':'CreateOrEditSalesforceAccountItemDialogController','controllerAs':'vm','templateUrl':_0x572e25,'parent':angular[_0x50f352(0x1f81)](_0x42ec99[_0x50f352(0xb49)]),'targetEvent':_0x40cab6,'clickOutsideToClose':!![],'locals':{'type':_0x50f352(0x23c3),'item':_0x377b0b,'items':_0x26544a['descriptions'],'configuration':_0x26544a[_0x50f352(0xe53)],'account':_0x26544a[_0x50f352(0x1fdb)],'license':null,'setting':null,'crudPermissions':_0x26544a[_0x50f352(0x402)]}});}function _0x2ddb68(_0x355f94){_0x5ca125['intSalesforceField']['delete']({'id':_0x355f94['id']})['$promise']['then'](function(){const _0x52eb37=a0_0x4127;_0x28c606()[_0x52eb37(0x21c7)](_0x26544a[_0x52eb37(0x24b6)],{'id':_0x355f94['id']}),_0x114ddd[_0x52eb37(0x1339)]({'title':_0x52eb37(0x166a),'msg':_0x52eb37(0x213f)});})['catch'](function(_0x1231de){const _0x4c3049=a0_0x4127;_0x114ddd[_0x4c3049(0x1bd0)]({'title':_0x1231de['status']?_0x4c3049(0x575)+_0x1231de['status']+'\x20-\x20'+_0x1231de[_0x4c3049(0x2115)]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x1231de['data']?JSON[_0x4c3049(0x2317)](_0x1231de['data']):_0x1231de[_0x4c3049(0x2915)]()});});}function _0x2e198f(_0x14b5d8,_0x4242d7){const _0x448bbb=_0x51de62,_0x366b22=_0x1ae433[_0x448bbb(0x856)]()[_0x448bbb(0x2021)](_0x448bbb(0x80e))[_0x448bbb(0x33a)](_0x448bbb(0x1bb6)+_0x448bbb(0x4b8))[_0x448bbb(0x213e)](_0x448bbb(0x748))[_0x448bbb(0x2283)](_0x14b5d8)['ok']('OK')[_0x448bbb(0x101a)](_0x448bbb(0x18fd));_0x1ae433['show'](_0x366b22)[_0x448bbb(0x64a)](function(){_0x2ddb68(_0x4242d7);},function(){const _0x236205=_0x448bbb;console['log'](_0x236205(0x18fd));});}function _0x334c1c(_0x5d58fb){const _0x499767=_0x51de62,_0x2ce7e3=_0x1ae433[_0x499767(0x856)]()[_0x499767(0x2021)](_0x499767(0xbe4))[_0x499767(0x33a)](_0x499767(0x50b)+_0x26544a[_0x499767(0x21c1)][_0x499767(0x1b9e)]+'\x20selected'+_0x499767(0x4b8))[_0x499767(0x213e)]('delete\x20descriptions')['targetEvent'](_0x5d58fb)['ok']('OK')['cancel']('CANCEL');_0x1ae433[_0x499767(0xa60)](_0x2ce7e3)[_0x499767(0x64a)](function(){const _0x1100b3=_0x499767;_0x26544a[_0x1100b3(0x21c1)]['forEach'](function(_0x5d335f){_0x2ddb68(_0x5d335f);}),_0x26544a['selectedDescriptions']=[];});}_0x26544a[_0x51de62(0xa3a)]=[],_0x26544a[_0x51de62(0x569)]=_0x3f7ade,_0x26544a[_0x51de62(0x1436)]=_0x41c278,_0x26544a['deleteSelectedFields']=_0x23219c;function _0x3f7ade(_0x57a940,_0xa9bdf2){const _0xdeec71=_0x51de62;_0x1ae433['show']({'controller':'CreateOrEditSalesforceAccountItemDialogController','controllerAs':'vm','templateUrl':_0x572e25,'parent':angular[_0xdeec71(0x1f81)](_0x42ec99[_0xdeec71(0xb49)]),'targetEvent':_0x57a940,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0xa9bdf2,'items':_0x26544a['fields'],'configuration':_0x26544a[_0xdeec71(0xe53)],'account':_0x26544a[_0xdeec71(0x1fdb)],'license':null,'setting':null,'crudPermissions':_0x26544a['crudPermissions']}});}function _0xde95f0(_0x20f5a2){const _0x36b2bd=_0x51de62;_0x5ca125['intSalesforceField'][_0x36b2bd(0xabd)]({'id':_0x20f5a2['id']})[_0x36b2bd(0x15e7)][_0x36b2bd(0x64a)](function(){const _0xc5b30b=_0x36b2bd;_0x28c606()[_0xc5b30b(0x21c7)](_0x26544a[_0xc5b30b(0xf26)],{'id':_0x20f5a2['id']}),_0x114ddd[_0xc5b30b(0x1339)]({'title':_0xc5b30b(0x13e7),'msg':_0xc5b30b(0x14b)});})[_0x36b2bd(0x20cd)](function(_0x402125){const _0x312cf3=_0x36b2bd;_0x114ddd[_0x312cf3(0x1bd0)]({'title':_0x402125[_0x312cf3(0x10b3)]?_0x312cf3(0x575)+_0x402125[_0x312cf3(0x10b3)]+_0x312cf3(0x21db)+_0x402125[_0x312cf3(0x2115)]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x402125[_0x312cf3(0x1c52)]?JSON[_0x312cf3(0x2317)](_0x402125['data']):_0x402125[_0x312cf3(0x2915)]()});});}function _0x41c278(_0x559c1c,_0x10ca83){const _0x5197b7=_0x51de62,_0x147fdd=_0x1ae433[_0x5197b7(0x856)]()[_0x5197b7(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')['htmlContent'](_0x5197b7(0x1a56)+_0x5197b7(0x4b8))[_0x5197b7(0x213e)](_0x5197b7(0x22d7))[_0x5197b7(0x2283)](_0x559c1c)['ok']('OK')['cancel'](_0x5197b7(0x18fd));_0x1ae433[_0x5197b7(0xa60)](_0x147fdd)['then'](function(){_0xde95f0(_0x10ca83);},function(){console['log']('CANCEL');});}function _0x23219c(_0x1a779d){const _0x4cbffe=_0x51de62,_0x135fb9=_0x1ae433['confirm']()[_0x4cbffe(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x4cbffe(0x33a)](_0x4cbffe(0x50b)+_0x26544a[_0x4cbffe(0xa3a)][_0x4cbffe(0x1b9e)]+_0x4cbffe(0x163e)+'\x20will\x20be\x20deleted.')[_0x4cbffe(0x213e)](_0x4cbffe(0x11bc))[_0x4cbffe(0x2283)](_0x1a779d)['ok']('OK')[_0x4cbffe(0x101a)](_0x4cbffe(0x18fd));_0x1ae433[_0x4cbffe(0xa60)](_0x135fb9)['then'](function(){const _0x31cb81=_0x4cbffe;_0x26544a[_0x31cb81(0xa3a)][_0x31cb81(0x1397)](function(_0x511ca9){_0xde95f0(_0x511ca9);}),_0x26544a[_0x31cb81(0xa3a)]=[];});}}const _0x6bfabb=_0x24deb6;;_0x5dbad9[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),'toasty','configurations',_0x49a1e3(0xe53),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6),'crudPermissions'];function _0x5dbad9(_0x222795,_0x6a50b8,_0x383597,_0x263401,_0x40a8e7,_0x3ea33f,_0x5d234b,_0x19f9a5,_0x201441,_0x59f2aa,_0x14f3d5,_0x3d06b9,_0x480b47,_0x1d5b7f){const _0x3a8517=_0x49a1e3,_0x484e9e=this;_0x484e9e['currentUser']=_0x14f3d5[_0x3a8517(0x808)](),_0x484e9e[_0x3a8517(0xbae)]=[],_0x484e9e[_0x3a8517(0x28d6)]=_0x480b47,_0x484e9e[_0x3a8517(0x1947)]=_0x3d06b9,_0x484e9e[_0x3a8517(0x402)]=_0x1d5b7f,_0x484e9e[_0x3a8517(0x6c2)]={},_0x484e9e[_0x3a8517(0xccc)]=_0x484e9e['setting']&&_0x484e9e[_0x3a8517(0x28d6)][_0x3a8517(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x484e9e[_0x3a8517(0x2021)]='INTEGRATIONS.EDIT_SALESFORCECONFIGURATION',_0x484e9e['salesforceConfiguration']=angular[_0x3a8517(0x289e)](_0x201441),_0x484e9e['configurations']=_0x19f9a5,_0x484e9e['newSalesforceConfiguration']=![];!_0x484e9e['salesforceConfiguration']&&(_0x484e9e['salesforceConfiguration']={'channel':'voice','type':_0x3a8517(0x12a4),'ticketType':_0x3a8517(0x23da)},_0x484e9e['title']='INTEGRATIONS.NEW_SALESFORCECONFIGURATION',_0x484e9e['newSalesforceConfiguration']=!![]);_0x484e9e['addNewSalesforceConfiguration']=_0x41cb75,_0x484e9e[_0x3a8517(0x627)]=_0x201e72,_0x484e9e['deleteSalesforceConfiguration']=_0x884326,_0x484e9e[_0x3a8517(0x1605)]=_0x2a8503,_0x484e9e[_0x3a8517(0x16cb)]=_0x1d80ed;function _0x41cb75(){const _0x25bda4=_0x3a8517;_0x484e9e['errors']=[],_0x59f2aa[_0x25bda4(0x1ddd)][_0x25bda4(0x1d2d)]({'id':_0x6a50b8['params']['id']},_0x484e9e[_0x25bda4(0xe53)])[_0x25bda4(0x15e7)]['then'](function(_0x159dc2){const _0x44cb49=_0x25bda4;_0x484e9e[_0x44cb49(0x23a8)][_0x44cb49(0x1891)](_0x159dc2[_0x44cb49(0x14f8)]()),_0x5d234b[_0x44cb49(0x1339)]({'title':'SalesforceConfiguration\x20properly\x20created','msg':_0x484e9e[_0x44cb49(0xe53)][_0x44cb49(0x2494)]?_0x484e9e[_0x44cb49(0xe53)]['name']+_0x44cb49(0x258d):''}),_0x1d80ed(_0x159dc2);})[_0x25bda4(0x20cd)](function(_0x2744b9){const _0x2c6daf=_0x25bda4;if(_0x2744b9[_0x2c6daf(0x1c52)]&&_0x2744b9[_0x2c6daf(0x1c52)][_0x2c6daf(0xbae)]&&_0x2744b9[_0x2c6daf(0x1c52)][_0x2c6daf(0xbae)]['length']){_0x484e9e[_0x2c6daf(0xbae)]=_0x2744b9[_0x2c6daf(0x1c52)][_0x2c6daf(0xbae)]||[{'message':_0x2744b9[_0x2c6daf(0x2915)](),'type':'api.intSalesforceConfiguration.save'}];for(let _0xb87e6d=0x0;_0xb87e6d<_0x2744b9[_0x2c6daf(0x1c52)][_0x2c6daf(0xbae)][_0x2c6daf(0x1b9e)];_0xb87e6d+=0x1){_0x5d234b[_0x2c6daf(0x1bd0)]({'title':_0x2744b9[_0x2c6daf(0x1c52)][_0x2c6daf(0xbae)][_0xb87e6d][_0x2c6daf(0x2185)],'msg':_0x2744b9[_0x2c6daf(0x1c52)]['errors'][_0xb87e6d][_0x2c6daf(0x18ca)]});}}else _0x5d234b[_0x2c6daf(0x1bd0)]({'title':_0x2744b9[_0x2c6daf(0x10b3)]?_0x2c6daf(0x575)+_0x2744b9[_0x2c6daf(0x10b3)]+_0x2c6daf(0x21db)+_0x2744b9['statusText']:'api.intSalesforceConfiguration.save','msg':_0x2744b9[_0x2c6daf(0x1c52)]?JSON[_0x2c6daf(0x2317)](_0x2744b9['data'][_0x2c6daf(0x18ca)]):_0x2744b9['toString']()});});}function _0x201e72(){const _0x2ff2dd=_0x3a8517;_0x484e9e[_0x2ff2dd(0xbae)]=[],_0x59f2aa['intSalesforceConfiguration'][_0x2ff2dd(0x2603)]({'id':_0x484e9e['salesforceConfiguration']['id']},_0x484e9e[_0x2ff2dd(0xe53)])[_0x2ff2dd(0x15e7)][_0x2ff2dd(0x64a)](function(_0x234c31){const _0x6405d3=_0x2ff2dd,_0x2a887d=_0x28c606()[_0x6405d3(0x27bc)](_0x484e9e['configurations'],{'id':_0x234c31['id']});_0x2a887d&&_0x28c606()['merge'](_0x2a887d,_0x28c606()[_0x6405d3(0x27bb)](_0x234c31['toJSON'](),_0x28c606()[_0x6405d3(0x1ec6)](_0x2a887d))),_0x5d234b[_0x6405d3(0x1339)]({'title':_0x6405d3(0xe98),'msg':_0x484e9e[_0x6405d3(0xe53)]['name']?_0x484e9e[_0x6405d3(0xe53)][_0x6405d3(0x2494)]+_0x6405d3(0x271):''}),_0x1d80ed(_0x234c31);})['catch'](function(_0x4390f7){const _0x510e91=_0x2ff2dd;if(_0x4390f7['data']&&_0x4390f7[_0x510e91(0x1c52)][_0x510e91(0xbae)]&&_0x4390f7[_0x510e91(0x1c52)][_0x510e91(0xbae)][_0x510e91(0x1b9e)]){_0x484e9e[_0x510e91(0xbae)]=_0x4390f7[_0x510e91(0x1c52)][_0x510e91(0xbae)]||[{'message':_0x4390f7[_0x510e91(0x2915)](),'type':_0x510e91(0x187)}];for(let _0x4fdbfd=0x0;_0x4fdbfd<_0x4390f7[_0x510e91(0x1c52)][_0x510e91(0xbae)]['length'];_0x4fdbfd++){_0x5d234b[_0x510e91(0x1bd0)]({'title':_0x4390f7['data'][_0x510e91(0xbae)][_0x4fdbfd][_0x510e91(0x2185)],'msg':_0x4390f7[_0x510e91(0x1c52)][_0x510e91(0xbae)][_0x4fdbfd][_0x510e91(0x18ca)]});}}else _0x5d234b['error']({'title':_0x4390f7[_0x510e91(0x10b3)]?_0x510e91(0x575)+_0x4390f7[_0x510e91(0x10b3)]+_0x510e91(0x21db)+_0x4390f7[_0x510e91(0x2115)]:_0x510e91(0x187),'msg':_0x4390f7['data']?JSON[_0x510e91(0x2317)](_0x4390f7['data'][_0x510e91(0x18ca)]):_0x4390f7[_0x510e91(0x2915)]()});});}function _0x884326(_0x17438d){const _0x33259e=_0x3a8517;_0x484e9e[_0x33259e(0xbae)]=[];const _0x57d947=_0x263401[_0x33259e(0x856)]()[_0x33259e(0x2021)](_0x33259e(0x103a))[_0x33259e(0x12b8)](_0x33259e(0x25d8))[_0x33259e(0x213e)](_0x33259e(0x2f0))['ok'](_0x33259e(0x2664))['cancel'](_0x33259e(0x1dc6))[_0x33259e(0x2283)](_0x17438d);_0x263401['show'](_0x57d947)[_0x33259e(0x64a)](function(){const _0x2a563e=_0x33259e;_0x59f2aa[_0x2a563e(0x1e42)]['delete']({'id':_0x484e9e[_0x2a563e(0xe53)]['id']})[_0x2a563e(0x15e7)][_0x2a563e(0x64a)](function(){const _0x18177d=_0x2a563e;_0x28c606()['remove'](_0x484e9e[_0x18177d(0x23a8)],{'id':_0x484e9e[_0x18177d(0xe53)]['id']}),_0x5d234b['success']({'title':_0x18177d(0x2670),'msg':(_0x484e9e[_0x18177d(0xe53)][_0x18177d(0x2494)]||'salesforceConfiguration')+'\x20has\x20been\x20deleted!'}),_0x1d80ed(_0x484e9e[_0x18177d(0xe53)]);})[_0x2a563e(0x20cd)](function(_0x444bbb){const _0x4729c9=_0x2a563e;if(_0x444bbb[_0x4729c9(0x1c52)]&&_0x444bbb[_0x4729c9(0x1c52)][_0x4729c9(0xbae)]&&_0x444bbb[_0x4729c9(0x1c52)][_0x4729c9(0xbae)]['length']){_0x484e9e['errors']=_0x444bbb[_0x4729c9(0x1c52)][_0x4729c9(0xbae)]||[{'message':_0x444bbb[_0x4729c9(0x2915)](),'type':_0x4729c9(0x1a6a)}];for(let _0x5f0759=0x0;_0x5f0759<_0x444bbb[_0x4729c9(0x1c52)][_0x4729c9(0xbae)][_0x4729c9(0x1b9e)];_0x5f0759++){_0x5d234b[_0x4729c9(0x1bd0)]({'title':_0x444bbb['data'][_0x4729c9(0xbae)][_0x5f0759]['type'],'msg':_0x444bbb[_0x4729c9(0x1c52)][_0x4729c9(0xbae)][_0x5f0759][_0x4729c9(0x18ca)]});}}else _0x5d234b['error']({'title':_0x444bbb['status']?'API:'+_0x444bbb[_0x4729c9(0x10b3)]+_0x4729c9(0x21db)+_0x444bbb[_0x4729c9(0x2115)]:'api.intSalesforceConfiguration.delete','msg':_0x444bbb[_0x4729c9(0x1c52)]?JSON[_0x4729c9(0x2317)](_0x444bbb[_0x4729c9(0x1c52)][_0x4729c9(0x18ca)]):_0x444bbb['message']||_0x444bbb[_0x4729c9(0x2915)]()});});},function(){});}function _0x2a8503(_0x444f7b){return _0x444f7b===null?undefined:new Date(_0x444f7b);}function _0x1d80ed(_0x23d118){const _0x3b4a6c=_0x3a8517;_0x263401[_0x3b4a6c(0x268e)](_0x23d118);}}const _0x2091df=_0x5dbad9;;_0x2e2aad[_0x49a1e3(0x1e73)]=['$scope','$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),'toasty','configuration','items','item',_0x49a1e3(0x3e3),_0x49a1e3(0x2185),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'crudPermissions'];function _0x2e2aad(_0x5dd042,_0x171894,_0x152899,_0x2647aa,_0x598885,_0x24f20f,_0x13a299,_0x9bf2fa,_0x2019e7,_0x1a1ef8,_0x41e051,_0x541d72,_0x51c0d4){const _0x5de0a0=_0x49a1e3,_0xa452e2=this;_0xa452e2[_0x5de0a0(0x1d3d)]=_0x541d72[_0x5de0a0(0x808)](),_0xa452e2[_0x5de0a0(0xbae)]=[],_0xa452e2['title']=_0x5de0a0(0x1bfd)+_0x28c606()[_0x5de0a0(0x2201)](_0x1a1ef8),_0xa452e2[_0x5de0a0(0x1656)]=angular[_0x5de0a0(0x289e)](_0x9bf2fa),_0xa452e2[_0x5de0a0(0x23cb)]=_0x13a299,_0xa452e2[_0x5de0a0(0x2185)]=_0x1a1ef8,_0xa452e2['crudPermissions']=_0x51c0d4,_0xa452e2[_0x5de0a0(0xd33)]=![];!_0xa452e2[_0x5de0a0(0x1656)]&&(_0xa452e2['item']={'type':'string'},_0xa452e2[_0x5de0a0(0x1656)][_0x28c606()[_0x5de0a0(0xd56)](_0x1a1ef8)+'Id']=_0x24f20f['id'],_0xa452e2[_0x5de0a0(0x2021)]=_0x5de0a0(0x1ad9)+_0x28c606()[_0x5de0a0(0x2201)](_0x1a1ef8),_0xa452e2[_0x5de0a0(0xd33)]=!![]);_0xa452e2['addNewItem']=_0xb9d871,_0xa452e2[_0x5de0a0(0x1dbc)]=_0xf884b9,_0xa452e2[_0x5de0a0(0x126d)]=_0x1b0ddb,_0xa452e2['getSelectedVariable']=_0x55e54c,_0xa452e2[_0x5de0a0(0x16cb)]=_0x549533,_0x41e051['variable'][_0x5de0a0(0x896)]({'nolimit':!![]})[_0x5de0a0(0x15e7)][_0x5de0a0(0x64a)](function(_0x5547ec){const _0x29855a=_0x5de0a0;return _0xa452e2[_0x29855a(0x145c)]=_0x5547ec[_0x29855a(0x28b8)]?_0x5547ec['rows']:[],_0x41e051['voiceAgentReport'][_0x29855a(0xa81)]()[_0x29855a(0x15e7)];})[_0x5de0a0(0x64a)](function(_0x26691b){const _0x5d3bc6=_0x5de0a0;return _0xa452e2['voiceAgentReportColumns']=_0x28c606()[_0x5d3bc6(0xde7)](_0x28c606()['keys'](_0x26691b),['$promise',_0x5d3bc6(0x19ba),'createdAt','updatedAt','sourceid']),_0xa452e2[_0x5d3bc6(0x109a)][_0x5d3bc6(0x1954)](_0x5d3bc6(0xdd4)),_0x41e051[_0x5d3bc6(0x1002)][_0x5d3bc6(0xa81)]()[_0x5d3bc6(0x15e7)];})[_0x5de0a0(0x64a)](function(_0x5a6344){const _0x239d19=_0x5de0a0;_0xa452e2[_0x239d19(0xdae)]=_0x28c606()[_0x239d19(0xde7)](_0x28c606()[_0x239d19(0x1ec6)](_0x5a6344),[_0x239d19(0x15e7),_0x239d19(0x19ba),_0x239d19(0x2378),_0x239d19(0x2056),_0x239d19(0x2785)]),_0xa452e2[_0x239d19(0xdae)][_0x239d19(0x1954)](_0x239d19(0xdd4));})[_0x5de0a0(0x20cd)](function(_0x1f1510){const _0x4278ef=_0x5de0a0;_0x598885[_0x4278ef(0x1bd0)]({'title':_0x1f1510[_0x4278ef(0x10b3)]?_0x4278ef(0x575)+_0x1f1510[_0x4278ef(0x10b3)]+_0x4278ef(0x21db)+_0x1f1510['statusText']:_0x4278ef(0x195a),'msg':_0x1f1510[_0x4278ef(0x1c52)]?JSON[_0x4278ef(0x2317)](_0x1f1510[_0x4278ef(0x1c52)]):_0x1f1510['toString']()});}),_0x41e051['intSalesforceAccount'][_0x5de0a0(0x5e0)]({'id':_0x2019e7['id'],'ticketType':_0x24f20f[_0x5de0a0(0x1545)]?_0x24f20f[_0x5de0a0(0x1545)]:undefined})[_0x5de0a0(0x15e7)][_0x5de0a0(0x64a)](function(_0x47069b){const _0x276caf=_0x5de0a0;_0xa452e2[_0x276caf(0x854)]=!![],_0xa452e2[_0x276caf(0xf26)]=_0x47069b[_0x276caf(0x28b8)]?_0x47069b['rows']:[],_0xa452e2['item']['idField']&&(_0xa452e2[_0x276caf(0x1753)]=_0x28c606()['find'](_0xa452e2[_0x276caf(0xf26)],{'id':_0xa452e2[_0x276caf(0x1656)][_0x276caf(0x197)]}));})[_0x5de0a0(0x20cd)](function(_0x58c8a4){const _0x4373bb=_0x5de0a0;_0xa452e2[_0x4373bb(0x854)]=![],console[_0x4373bb(0x1bd0)](_0x58c8a4);});function _0xb9d871(){const _0x5f1a2c=_0x5de0a0;_0xa452e2[_0x5f1a2c(0xbae)]=[],_0xa452e2['customField']&&(_0xa452e2[_0x5f1a2c(0x1656)][_0x5f1a2c(0x197)]=_0xa452e2[_0x5f1a2c(0x1753)]['id'],_0xa452e2['item'][_0x5f1a2c(0x25fc)]=_0xa452e2[_0x5f1a2c(0x1753)][_0x5f1a2c(0x2494)],_0xa452e2[_0x5f1a2c(0x1656)][_0x5f1a2c(0x1753)]=_0xa452e2[_0x5f1a2c(0x1753)][_0x5f1a2c(0x1ad6)]),_0x41e051['intSalesforceField'][_0x5f1a2c(0x2479)](_0xa452e2[_0x5f1a2c(0x1656)])[_0x5f1a2c(0x15e7)][_0x5f1a2c(0x64a)](function(_0x2c2694){const _0x39f0bb=_0x5f1a2c;_0xa452e2['items'][_0x39f0bb(0x1891)](_0x2c2694),_0x598885['success']({'title':_0x28c606()[_0x39f0bb(0xd56)](_0x1a1ef8)+_0x39f0bb(0xe0b),'msg':_0x28c606()[_0x39f0bb(0xd56)](_0x1a1ef8)+_0x39f0bb(0x258d)}),_0x549533();})[_0x5f1a2c(0x20cd)](function(_0x137cfa){const _0x3fc2d4=_0x5f1a2c;console['error'](_0x137cfa),_0xa452e2[_0x3fc2d4(0xbae)]=_0x137cfa[_0x3fc2d4(0x1c52)][_0x3fc2d4(0xbae)]||[{'message':_0x137cfa['toString'](),'type':_0x3fc2d4(0x1675)}];});}function _0xf884b9(){const _0x4b4f61=_0x5de0a0;_0xa452e2[_0x4b4f61(0xbae)]=[],_0xa452e2[_0x4b4f61(0x1753)]&&(_0xa452e2[_0x4b4f61(0x1656)]['idField']=_0xa452e2[_0x4b4f61(0x1753)]['id'],_0xa452e2[_0x4b4f61(0x1656)][_0x4b4f61(0x25fc)]=_0xa452e2[_0x4b4f61(0x1753)][_0x4b4f61(0x2494)],_0xa452e2[_0x4b4f61(0x1656)][_0x4b4f61(0x1753)]=_0xa452e2[_0x4b4f61(0x1753)]['custom']),_0x41e051[_0x4b4f61(0x290e)]['update']({'id':_0xa452e2[_0x4b4f61(0x1656)]['id']},_0xa452e2[_0x4b4f61(0x1656)])[_0x4b4f61(0x15e7)]['then'](function(_0x332801){const _0x5b8cdc=_0x4b4f61,_0x2e4c6e=_0x28c606()[_0x5b8cdc(0x27bc)](_0xa452e2['items'],{'id':_0x332801['id']});_0x2e4c6e&&_0x28c606()[_0x5b8cdc(0x14fe)](_0x2e4c6e,_0x332801),_0x598885[_0x5b8cdc(0x1339)]({'title':_0x28c606()[_0x5b8cdc(0xd56)](_0x1a1ef8)+_0x5b8cdc(0x2776),'msg':_0x28c606()[_0x5b8cdc(0xd56)](_0x1a1ef8)+_0x5b8cdc(0x271)}),_0x549533();})['catch'](function(_0x492474){const _0x303c98=_0x4b4f61;console[_0x303c98(0x1bd0)](_0x492474),_0xa452e2[_0x303c98(0xbae)]=_0x492474[_0x303c98(0x1c52)][_0x303c98(0xbae)]||[{'message':_0x492474[_0x303c98(0x2915)](),'type':_0x303c98(0x671)}];});}function _0x1b0ddb(_0x4d408f){const _0x54d5eb=_0x5de0a0;_0xa452e2[_0x54d5eb(0xbae)]=[];const _0x5f0326=_0x2647aa[_0x54d5eb(0x856)]()[_0x54d5eb(0x2021)](_0x54d5eb(0x103a))['content'](_0x54d5eb(0x2966)+_0x1a1ef8+_0x54d5eb(0x4b8))[_0x54d5eb(0x213e)](_0x54d5eb(0x1f2e)+_0x28c606()[_0x54d5eb(0xd56)](_0x1a1ef8))['ok']('Delete')[_0x54d5eb(0x101a)](_0x54d5eb(0x1dc6))[_0x54d5eb(0x2283)](_0x4d408f);_0x2647aa[_0x54d5eb(0xa60)](_0x5f0326)[_0x54d5eb(0x64a)](function(){const _0x422ba7=_0x54d5eb;_0x41e051[_0x422ba7(0x290e)][_0x422ba7(0xabd)]({'id':_0xa452e2['item']['id']})[_0x422ba7(0x15e7)][_0x422ba7(0x64a)](function(){const _0x3d89a1=_0x422ba7;_0x28c606()[_0x3d89a1(0x21c7)](_0xa452e2[_0x3d89a1(0x23cb)],{'id':_0xa452e2[_0x3d89a1(0x1656)]['id']}),_0x598885[_0x3d89a1(0x1339)]({'title':_0x28c606()[_0x3d89a1(0xd56)](_0x1a1ef8)+_0x3d89a1(0x6ec),'msg':_0x28c606()[_0x3d89a1(0xd56)](_0x1a1ef8)+_0x3d89a1(0x1fa8)}),_0x549533();})['catch'](function(_0x34cdfe){const _0x5bb51b=_0x422ba7;console['error'](_0x34cdfe),_0xa452e2[_0x5bb51b(0xbae)]=_0x34cdfe['data']['errors']||[{'message':_0x34cdfe[_0x5bb51b(0x2915)](),'type':_0x5bb51b(0x27aa)}];});},function(){});}function _0x55e54c(){const _0x4c9653=_0x5de0a0;return _0xa452e2['item'][_0x4c9653(0x1299)]!==undefined?_0xa452e2[_0x4c9653(0x1656)][_0x4c9653(0x1299)]:_0x4c9653(0xfae);}function _0x549533(){const _0x780e8=_0x5de0a0;_0x2647aa[_0x780e8(0x268e)]();}}const _0x393dae=_0x2e2aad;;_0x4fec46[_0x49a1e3(0x1e73)]=['$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1fdb),_0x49a1e3(0x16b2)];function _0x4fec46(_0x26c6a1,_0x381e9e,_0x3fe0ab,_0x50c253,_0x5ccb9a,_0x5a43e5,_0x2d8be9,_0x1d5420,_0x3ca26e,_0x42e4bd,_0x28b6d2,_0x2d59f6){const _0x463e12=_0x49a1e3,_0x13dc0c=this;_0x13dc0c[_0x463e12(0x1d3d)]=_0x42e4bd[_0x463e12(0x808)](),_0x13dc0c[_0x463e12(0x1947)]=_0x5a43e5,_0x13dc0c['setting']=_0x2d8be9,_0x13dc0c[_0x463e12(0xccc)]=_0x13dc0c[_0x463e12(0x28d6)][_0x463e12(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x13dc0c[_0x463e12(0xb36)]=_0x381e9e[_0x463e12(0x48e)]()+'://'+_0x381e9e[_0x463e12(0x1e5d)](),_0x13dc0c[_0x463e12(0x1fdb)]=_0x28b6d2||_0x26c6a1[_0x463e12(0x1b48)][_0x463e12(0x1fdb)]||{},_0x13dc0c[_0x463e12(0x16b2)]=_0x2d59f6&&_0x2d59f6[_0x463e12(0xb90)]==0x1?_0x2d59f6[_0x463e12(0x28b8)][0x0]:null,_0x13dc0c['crudPermissions']=_0x42e4bd[_0x463e12(0xa7e)](_0x13dc0c[_0x463e12(0x16b2)]?_0x13dc0c[_0x463e12(0x16b2)][_0x463e12(0x402)]:null),_0x13dc0c[_0x463e12(0x6c2)]={},_0x13dc0c[_0x463e12(0x197c)]=_0x26c6a1[_0x463e12(0x1b48)][_0x463e12(0x1222)]||0x0,_0x13dc0c[_0x463e12(0x2540)]=_0x3ca26e[_0x463e12(0x772)],_0x13dc0c['gotoSalesforceAccounts']=_0x1ec6f6,_0x13dc0c['saveSalesforceAccount']=_0x2f7a70;function _0x1ec6f6(){const _0x3ee496=_0x463e12;_0x26c6a1['go'](_0x3ee496(0x2387),{},{'reload':'app.integrations.salesforceAccounts'});}function _0x2f7a70(){const _0x1adbdc=_0x463e12;_0x1d5420[_0x1adbdc(0x1ddd)][_0x1adbdc(0x2603)]({'id':_0x13dc0c['salesforceAccount']['id']},_0x13dc0c[_0x1adbdc(0x1fdb)])[_0x1adbdc(0x15e7)]['then'](function(){const _0x1f492e=_0x1adbdc;_0x3ca26e['success']({'title':'SalesforceAccount\x20updated!','msg':_0x13dc0c['salesforceAccount'][_0x1f492e(0x2494)]?_0x13dc0c[_0x1f492e(0x1fdb)][_0x1f492e(0x2494)]+_0x1f492e(0x2032):''});})['catch'](function(_0x139ec7){const _0x5508e3=_0x1adbdc;_0x3ca26e[_0x5508e3(0x1bd0)]({'title':_0x139ec7[_0x5508e3(0x10b3)]?_0x5508e3(0x575)+_0x139ec7['status']+_0x5508e3(0x21db)+_0x139ec7['statusText']:_0x5508e3(0x17f5),'msg':_0x139ec7[_0x5508e3(0x1c52)]?JSON[_0x5508e3(0x2317)](_0x139ec7['data']):_0x139ec7[_0x5508e3(0x2915)]()});});}}const _0x1cc2fe=_0x4fec46;;const _0x5b1858=_0x2e4a48['p']+'src/js/modules/main/apps/integrations/views/salesforceAccounts/create/dialog.html/dialog.html';;_0x126572[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),'$state','$mdSidenav','$mdDialog',_0x49a1e3(0x1373),'$timeout',_0x49a1e3(0x298c),'salesforceAccounts','userProfile',_0x49a1e3(0x16b2),'api',_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting'];function _0x126572(_0x322dd7,_0x4f284c,_0x4c7a16,_0x29bf98,_0x16ec5e,_0x461c8d,_0x1afc4d,_0x17ab02,_0x30140c,_0x536bd2,_0x2263c2,_0x2919b4,_0xec7cc8,_0x4ea98a,_0xc2484d,_0x11da5b,_0x38cb3c){const _0x1368e7=_0x49a1e3,_0x136d2a=this;_0x136d2a[_0x1368e7(0x1947)]=_0x11da5b,_0x136d2a[_0x1368e7(0x28d6)]=_0x38cb3c,_0x136d2a['currentUser']=_0xc2484d[_0x1368e7(0x808)](),_0x136d2a[_0x1368e7(0x1f70)]=_0x30140c||{'count':0x0,'rows':[]},_0x136d2a['userProfile']=_0x536bd2,_0x136d2a[_0x1368e7(0x16b2)]=_0x2263c2&&_0x2263c2[_0x1368e7(0xb90)]==0x1?_0x2263c2[_0x1368e7(0x28b8)][0x0]:null,_0x136d2a[_0x1368e7(0x402)]=_0xc2484d[_0x1368e7(0xa7e)](_0x136d2a[_0x1368e7(0x16b2)]?_0x136d2a[_0x1368e7(0x16b2)][_0x1368e7(0x402)]:null),_0x136d2a[_0x1368e7(0x185d)]='salesforceAccounts',_0x136d2a[_0x1368e7(0x300)]='',_0x136d2a[_0x1368e7(0x2748)]=null,_0x136d2a['selectedSalesforceAccounts']=[],_0x136d2a[_0x1368e7(0x289a)]={'fields':_0x1368e7(0x800),'limit':0xa,'page':0x1},_0x136d2a['arraytype']=_0x28c606()[_0x1368e7(0x161e)]([{'option':_0x1368e7(0x12ed),'value':_0x1368e7(0xfbd)},{'option':'New_Tab','value':_0x1368e7(0x1e4a)}],function(_0x3e781f){const _0x154819=_0x1368e7;return _0x28c606()[_0x154819(0x1353)](_0x3e781f[_0x154819(0x1096)],new RegExp('\x27','g'),'');}),_0x136d2a[_0x1368e7(0xff6)]=_0x1bf4f1,_0x136d2a['testtestintegrationaccount']=_0x196699,_0x136d2a[_0x1368e7(0x1262)]=_0xb2ed8c,_0x136d2a[_0x1368e7(0x1339)]=_0x1d9d7b,_0x136d2a[_0x1368e7(0x14a8)]=_0x210d13,_0x136d2a['createOrEditSalesforceAccount']=_0x4ed5e2,_0x136d2a[_0x1368e7(0x2767)]=_0x29bd44,_0x136d2a[_0x1368e7(0x1950)]=_0x47feb5,_0x136d2a[_0x1368e7(0x2243)]=_0x30d589,_0x136d2a[_0x1368e7(0x1613)]=_0x135e51,_0x136d2a['selectAllSalesforceAccounts']=_0x4ce489;function _0x1bf4f1(_0x2ea679){const _0x25e41b=_0x1368e7;_0x4c7a16['go'](_0x25e41b(0x2769),{'id':_0x2ea679['id'],'salesforceAccount':_0x2ea679,'crudPermissions':_0x136d2a[_0x25e41b(0x402)]});}function _0x196699(_0x59ee37){const _0x12e0dc=_0x1368e7;return _0x2919b4[_0x12e0dc(0x1ddd)][_0x12e0dc(0x5e0)]({'id':_0x59ee37['id'],'test':!![]})[_0x12e0dc(0x15e7)][_0x12e0dc(0x64a)](function(){const _0x267a57=_0x12e0dc;_0x4ea98a[_0x267a57(0x1339)]({'title':'SalesforceAccount\x20properly\x20tested','msg':_0x267a57(0x259b)});})[_0x12e0dc(0x20cd)](function(_0x40fb8f){const _0x19d69b=_0x12e0dc;_0x4ea98a[_0x19d69b(0x1bd0)]({'title':_0x19d69b(0x20ce),'msg':_0x40fb8f[_0x19d69b(0x1c52)]?_0x40fb8f[_0x19d69b(0x1c52)][_0x19d69b(0x18ca)]?_0x40fb8f[_0x19d69b(0x1c52)]['message']:JSON[_0x19d69b(0x2317)](_0x40fb8f[_0x19d69b(0x1c52)]):_0x40fb8f['toString']()});});}function _0xb2ed8c(_0x555fce,_0x5763c0){const _0x33a5e6=_0x1368e7,_0x4a3d95=_0x16ec5e[_0x33a5e6(0x856)]()[_0x33a5e6(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()[_0x33a5e6(0xc01)]('salesforceAccount')+'?')['htmlContent'](_0x33a5e6(0x50b)+(_0x555fce[_0x33a5e6(0x2494)]||'salesforceAccount')+_0x33a5e6(0x26d0)+_0x33a5e6(0x4b8))[_0x33a5e6(0x213e)](_0x33a5e6(0x12b5))[_0x33a5e6(0x2283)](_0x5763c0)['ok']('OK')[_0x33a5e6(0x101a)]('CANCEL');_0x16ec5e[_0x33a5e6(0xa60)](_0x4a3d95)[_0x33a5e6(0x64a)](function(){_0x29bd44(_0x555fce);},function(){const _0x5b041e=_0x33a5e6;console[_0x5b041e(0x9b4)](_0x5b041e(0x18fd));});}let _0x5c2a42=!![],_0x167bc7=0x1;_0x322dd7[_0x1368e7(0xc62)](_0x1368e7(0x1cb9),function(_0x4bc67,_0x36f547){const _0x604df8=_0x1368e7;_0x5c2a42?_0x1afc4d(function(){_0x5c2a42=![];}):(!_0x36f547&&(_0x167bc7=_0x136d2a[_0x604df8(0x289a)]['page']),_0x4bc67!==_0x36f547&&(_0x136d2a[_0x604df8(0x289a)][_0x604df8(0xc72)]=0x1),!_0x4bc67&&(_0x136d2a[_0x604df8(0x289a)][_0x604df8(0xc72)]=_0x167bc7),_0x136d2a[_0x604df8(0x14a8)]());});function _0x1d9d7b(_0x4502c8){const _0x31fb44=_0x1368e7;_0x136d2a[_0x31fb44(0x1f70)]=_0x4502c8||{'count':0x0,'rows':[]};}function _0x210d13(){const _0x536d5e=_0x1368e7;_0x136d2a[_0x536d5e(0x289a)][_0x536d5e(0x24f9)]=(_0x136d2a[_0x536d5e(0x289a)][_0x536d5e(0xc72)]-0x1)*_0x136d2a[_0x536d5e(0x289a)][_0x536d5e(0x25bb)],_0xc2484d['hasRole'](_0x536d5e(0x333))?_0x136d2a[_0x536d5e(0x1713)]=_0x2919b4[_0x536d5e(0x1ddd)]['get'](_0x136d2a[_0x536d5e(0x289a)],_0x1d9d7b)[_0x536d5e(0x15e7)]:(_0x136d2a[_0x536d5e(0x289a)]['id']=_0x136d2a[_0x536d5e(0x16a8)]['id'],_0x136d2a['query'][_0x536d5e(0xa21)]=_0x536d5e(0x172b),_0x136d2a[_0x536d5e(0x1713)]=_0x2919b4[_0x536d5e(0x16a8)]['getResources'](_0x136d2a[_0x536d5e(0x289a)],_0x1d9d7b)['$promise']);}function _0x4ed5e2(_0x4d04a5,_0x176ed5){const _0x2a5012=_0x1368e7;_0x16ec5e[_0x2a5012(0xa60)]({'controller':_0x2a5012(0x2704),'controllerAs':'vm','templateUrl':_0x5b1858,'parent':angular['element'](_0x461c8d[_0x2a5012(0xb49)]),'targetEvent':_0x4d04a5,'clickOutsideToClose':!![],'locals':{'salesforceAccount':_0x176ed5,'salesforceAccounts':_0x136d2a['salesforceAccounts'][_0x2a5012(0x28b8)],'license':_0x136d2a[_0x2a5012(0x1947)],'setting':_0x136d2a[_0x2a5012(0x28d6)],'crudPermissions':_0x136d2a['crudPermissions']}});}function _0x29bd44(_0x17c343){const _0x31d48f=_0x1368e7;_0x2919b4[_0x31d48f(0x1ddd)]['delete']({'id':_0x17c343['id']})['$promise'][_0x31d48f(0x64a)](function(){const _0x4d0760=_0x31d48f;_0x28c606()[_0x4d0760(0x21c7)](_0x136d2a['salesforceAccounts']['rows'],{'id':_0x17c343['id']}),_0x136d2a[_0x4d0760(0x1f70)][_0x4d0760(0xb90)]-=0x1,!_0x136d2a[_0x4d0760(0x1f70)]['rows']['length']&&_0x136d2a['getSalesforceAccounts'](),_0x4ea98a[_0x4d0760(0x1339)]({'title':_0x28c606()[_0x4d0760(0xc01)](_0x4d0760(0x1430))+'\x20deleted!','msg':_0x17c343[_0x4d0760(0x2494)]?_0x17c343[_0x4d0760(0x2494)]+_0x4d0760(0x1fa8):''});})[_0x31d48f(0x20cd)](function(_0x3e4c7c){const _0x1ea02f=_0x31d48f;if(_0x3e4c7c[_0x1ea02f(0x1c52)]&&_0x3e4c7c[_0x1ea02f(0x1c52)][_0x1ea02f(0xbae)]&&_0x3e4c7c['data'][_0x1ea02f(0xbae)]['length']){_0x136d2a['errors']=_0x3e4c7c[_0x1ea02f(0x1c52)]['errors']||[{'message':_0x3e4c7c[_0x1ea02f(0x2915)](),'type':'SYSTEM:DELETEintSalesforceAccount'}];for(let _0x7a1f09=0x0;_0x7a1f09<_0x3e4c7c[_0x1ea02f(0x1c52)][_0x1ea02f(0xbae)][_0x1ea02f(0x1b9e)];_0x7a1f09++){_0x4ea98a[_0x1ea02f(0x1bd0)]({'title':_0x3e4c7c[_0x1ea02f(0x1c52)][_0x1ea02f(0xbae)][_0x7a1f09][_0x1ea02f(0x2185)],'msg':_0x3e4c7c[_0x1ea02f(0x1c52)][_0x1ea02f(0xbae)][_0x7a1f09][_0x1ea02f(0x18ca)]});}}else _0x4ea98a[_0x1ea02f(0x1bd0)]({'title':_0x3e4c7c[_0x1ea02f(0x10b3)]?_0x1ea02f(0x575)+_0x3e4c7c[_0x1ea02f(0x10b3)]+_0x1ea02f(0x21db)+_0x3e4c7c[_0x1ea02f(0x2115)]:_0x1ea02f(0xc99),'msg':_0x3e4c7c[_0x1ea02f(0x1c52)]?JSON['stringify'](_0x3e4c7c[_0x1ea02f(0x1c52)][_0x1ea02f(0x18ca)]):_0x3e4c7c['message']||_0x3e4c7c[_0x1ea02f(0x2915)]()});});}function _0x47feb5(){const _0x57cd26=_0x1368e7,_0x2fc870=angular[_0x57cd26(0x289e)](_0x136d2a[_0x57cd26(0x1dcd)]);return _0x136d2a[_0x57cd26(0x1dcd)]=[],_0x2fc870;}function _0x30d589(_0x50a2f8){const _0x1c0ce3=_0x1368e7,_0x2b75b9=_0x16ec5e[_0x1c0ce3(0x856)]()[_0x1c0ce3(0x2021)](_0x1c0ce3(0x1855))[_0x1c0ce3(0x33a)](_0x1c0ce3(0x50b)+_0x136d2a['selectedSalesforceAccounts'][_0x1c0ce3(0x1b9e)]+_0x1c0ce3(0x163e)+_0x1c0ce3(0x4b8))[_0x1c0ce3(0x213e)]('delete\x20SalesforceAccounts')[_0x1c0ce3(0x2283)](_0x50a2f8)['ok']('OK')[_0x1c0ce3(0x101a)](_0x1c0ce3(0x18fd));_0x16ec5e[_0x1c0ce3(0xa60)](_0x2b75b9)['then'](function(){const _0x4d4abd=_0x1c0ce3;_0x136d2a['selectedSalesforceAccounts']['forEach'](function(_0x41b751){_0x29bd44(_0x41b751);}),_0x136d2a[_0x4d4abd(0x1dcd)]=[];});}function _0x135e51(){_0x136d2a['selectedSalesforceAccounts']=[];}function _0x4ce489(){const _0x5ad6e5=_0x1368e7;_0x136d2a[_0x5ad6e5(0x1dcd)]=_0x136d2a['salesforceAccounts'][_0x5ad6e5(0x28b8)];}}const _0x1a8df2=_0x126572;;_0x12e0a9[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog','$q',_0x49a1e3(0x298c),'toasty',_0x49a1e3(0xb80),'servicenowAccount',_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x12e0a9(_0xb19e17,_0x1c9add,_0x40d7c0,_0x3dc955,_0x43fc84,_0x4e4f65,_0x5d9ba0,_0x45a455,_0x166ddc,_0x296b1d,_0x4187be,_0x4668ca,_0x348a86,_0xc3fd93){const _0x38e18b=_0x49a1e3,_0x1e15bd=this;_0x1e15bd['currentUser']=_0x4187be['getCurrentUser'](),_0x1e15bd[_0x38e18b(0xbae)]=[],_0x1e15bd[_0x38e18b(0x28d6)]=_0x348a86,_0x1e15bd['license']=_0x4668ca,_0x1e15bd[_0x38e18b(0x402)]=_0xc3fd93,_0x1e15bd[_0x38e18b(0x6c2)]={},_0x1e15bd['passwordPattern']=_0x1e15bd[_0x38e18b(0x28d6)]&&_0x1e15bd[_0x38e18b(0x28d6)][_0x38e18b(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1e15bd[_0x38e18b(0x2021)]=_0x38e18b(0x51a),_0x1e15bd[_0x38e18b(0xd14)]=angular[_0x38e18b(0x289e)](_0x166ddc),_0x1e15bd[_0x38e18b(0xb80)]=_0x45a455,_0x1e15bd[_0x38e18b(0xb6c)]=![];!_0x1e15bd['servicenowAccount']&&(_0x1e15bd[_0x38e18b(0xd14)]={'serverUrl':_0x40d7c0[_0x38e18b(0x48e)]()+_0x38e18b(0xe1f)+_0x40d7c0[_0x38e18b(0x1e5d)]()+(_0x40d7c0[_0x38e18b(0x23f2)]()?':'+_0x40d7c0[_0x38e18b(0x23f2)]():'')},_0x1e15bd[_0x38e18b(0x2021)]=_0x38e18b(0x581),_0x1e15bd['newServicenowAccount']=!![]);_0x1e15bd[_0x38e18b(0x8eb)]=_0x53654e,_0x1e15bd['saveServicenowAccount']=_0x2c20dd,_0x1e15bd['deleteServicenowAccount']=_0x2676e9,_0x1e15bd[_0x38e18b(0x1605)]=_0x2d7dc1,_0x1e15bd[_0x38e18b(0x16cb)]=_0x43b7b4;function _0x53654e(){const _0x513cd6=_0x38e18b;_0x1e15bd[_0x513cd6(0xbae)]=[],_0x296b1d[_0x513cd6(0x2822)][_0x513cd6(0x2479)](_0x1e15bd[_0x513cd6(0xd14)])[_0x513cd6(0x15e7)][_0x513cd6(0x64a)](function(_0x14d586){const _0x7e532e=_0x513cd6;_0x1e15bd[_0x7e532e(0xb80)][_0x7e532e(0x1891)](_0x14d586[_0x7e532e(0x14f8)]()),_0x5d9ba0[_0x7e532e(0x1339)]({'title':_0x7e532e(0x23f),'msg':_0x1e15bd[_0x7e532e(0xd14)][_0x7e532e(0x2494)]?_0x1e15bd[_0x7e532e(0xd14)][_0x7e532e(0x2494)]+_0x7e532e(0x258d):''}),_0x43b7b4(_0x14d586);})[_0x513cd6(0x20cd)](function(_0x2267b2){const _0x226efa=_0x513cd6;if(_0x2267b2['data']&&_0x2267b2[_0x226efa(0x1c52)]['errors']&&_0x2267b2['data'][_0x226efa(0xbae)][_0x226efa(0x1b9e)]){_0x1e15bd[_0x226efa(0xbae)]=_0x2267b2[_0x226efa(0x1c52)][_0x226efa(0xbae)]||[{'message':_0x2267b2['toString'](),'type':'api.intServicenowAccount.save'}];for(let _0xca6332=0x0;_0xca6332<_0x2267b2[_0x226efa(0x1c52)][_0x226efa(0xbae)]['length'];_0xca6332+=0x1){_0x5d9ba0[_0x226efa(0x1bd0)]({'title':_0x2267b2[_0x226efa(0x1c52)][_0x226efa(0xbae)][_0xca6332][_0x226efa(0x2185)],'msg':_0x2267b2[_0x226efa(0x1c52)][_0x226efa(0xbae)][_0xca6332][_0x226efa(0x18ca)]});}}else _0x5d9ba0[_0x226efa(0x1bd0)]({'title':_0x2267b2['status']?_0x226efa(0x575)+_0x2267b2['status']+_0x226efa(0x21db)+_0x2267b2[_0x226efa(0x2115)]:'api.intServicenowAccount.save','msg':_0x2267b2[_0x226efa(0x1c52)]?JSON['stringify'](_0x2267b2['data'][_0x226efa(0x18ca)]):_0x2267b2[_0x226efa(0x2915)]()});});}function _0x2c20dd(){const _0x26344c=_0x38e18b;_0x1e15bd['errors']=[],_0x296b1d[_0x26344c(0x2822)]['update']({'id':_0x1e15bd['servicenowAccount']['id']},_0x1e15bd['servicenowAccount'])[_0x26344c(0x15e7)][_0x26344c(0x64a)](function(_0x38f95a){const _0x50c93a=_0x26344c,_0x3671d4=_0x28c606()[_0x50c93a(0x27bc)](_0x1e15bd[_0x50c93a(0xb80)],{'id':_0x38f95a['id']});_0x3671d4&&_0x28c606()['merge'](_0x3671d4,_0x28c606()['pick'](_0x38f95a[_0x50c93a(0x14f8)](),_0x28c606()['keys'](_0x3671d4))),_0x5d9ba0[_0x50c93a(0x1339)]({'title':_0x50c93a(0xe97),'msg':_0x1e15bd['servicenowAccount'][_0x50c93a(0x2494)]?_0x1e15bd[_0x50c93a(0xd14)][_0x50c93a(0x2494)]+_0x50c93a(0x271):''}),_0x43b7b4(_0x38f95a);})[_0x26344c(0x20cd)](function(_0x2c5f90){const _0x695799=_0x26344c;if(_0x2c5f90[_0x695799(0x1c52)]&&_0x2c5f90[_0x695799(0x1c52)][_0x695799(0xbae)]&&_0x2c5f90[_0x695799(0x1c52)][_0x695799(0xbae)][_0x695799(0x1b9e)]){_0x1e15bd[_0x695799(0xbae)]=_0x2c5f90['data']['errors']||[{'message':_0x2c5f90[_0x695799(0x2915)](),'type':_0x695799(0x801)}];for(let _0x179ca8=0x0;_0x179ca8<_0x2c5f90[_0x695799(0x1c52)][_0x695799(0xbae)][_0x695799(0x1b9e)];_0x179ca8++){_0x5d9ba0[_0x695799(0x1bd0)]({'title':_0x2c5f90[_0x695799(0x1c52)][_0x695799(0xbae)][_0x179ca8][_0x695799(0x2185)],'msg':_0x2c5f90['data']['errors'][_0x179ca8][_0x695799(0x18ca)]});}}else _0x5d9ba0[_0x695799(0x1bd0)]({'title':_0x2c5f90[_0x695799(0x10b3)]?_0x695799(0x575)+_0x2c5f90[_0x695799(0x10b3)]+_0x695799(0x21db)+_0x2c5f90[_0x695799(0x2115)]:'api.intServicenowAccount.update','msg':_0x2c5f90['data']?JSON[_0x695799(0x2317)](_0x2c5f90[_0x695799(0x1c52)][_0x695799(0x18ca)]):_0x2c5f90[_0x695799(0x2915)]()});});}function _0x2676e9(_0xe6fec0){const _0x5453a0=_0x38e18b;_0x1e15bd[_0x5453a0(0xbae)]=[];const _0x1632c1=_0x3dc955[_0x5453a0(0x856)]()[_0x5453a0(0x2021)](_0x5453a0(0x103a))[_0x5453a0(0x12b8)](_0x5453a0(0x26f6))[_0x5453a0(0x213e)](_0x5453a0(0x196c))['ok'](_0x5453a0(0x2664))['cancel'](_0x5453a0(0x1dc6))[_0x5453a0(0x2283)](_0xe6fec0);_0x3dc955[_0x5453a0(0xa60)](_0x1632c1)['then'](function(){const _0x50e41b=_0x5453a0;_0x296b1d[_0x50e41b(0x2822)]['delete']({'id':_0x1e15bd[_0x50e41b(0xd14)]['id']})['$promise']['then'](function(){const _0x12a416=_0x50e41b;_0x28c606()[_0x12a416(0x21c7)](_0x1e15bd['servicenowAccounts'],{'id':_0x1e15bd[_0x12a416(0xd14)]['id']}),_0x5d9ba0['success']({'title':_0x12a416(0x1a76),'msg':(_0x1e15bd[_0x12a416(0xd14)][_0x12a416(0x2494)]||_0x12a416(0xd14))+'\x20has\x20been\x20deleted!'}),_0x43b7b4(_0x1e15bd[_0x12a416(0xd14)]);})[_0x50e41b(0x20cd)](function(_0xce4bd4){const _0x3138b7=_0x50e41b;if(_0xce4bd4[_0x3138b7(0x1c52)]&&_0xce4bd4[_0x3138b7(0x1c52)][_0x3138b7(0xbae)]&&_0xce4bd4[_0x3138b7(0x1c52)]['errors']['length']){_0x1e15bd[_0x3138b7(0xbae)]=_0xce4bd4[_0x3138b7(0x1c52)][_0x3138b7(0xbae)]||[{'message':_0xce4bd4[_0x3138b7(0x2915)](),'type':_0x3138b7(0x1c70)}];for(let _0x5788f8=0x0;_0x5788f8<_0xce4bd4[_0x3138b7(0x1c52)][_0x3138b7(0xbae)][_0x3138b7(0x1b9e)];_0x5788f8++){_0x5d9ba0['error']({'title':_0xce4bd4[_0x3138b7(0x1c52)][_0x3138b7(0xbae)][_0x5788f8][_0x3138b7(0x2185)],'msg':_0xce4bd4[_0x3138b7(0x1c52)][_0x3138b7(0xbae)][_0x5788f8][_0x3138b7(0x18ca)]});}}else _0x5d9ba0[_0x3138b7(0x1bd0)]({'title':_0xce4bd4[_0x3138b7(0x10b3)]?_0x3138b7(0x575)+_0xce4bd4[_0x3138b7(0x10b3)]+'\x20-\x20'+_0xce4bd4[_0x3138b7(0x2115)]:_0x3138b7(0x1c70),'msg':_0xce4bd4['data']?JSON[_0x3138b7(0x2317)](_0xce4bd4[_0x3138b7(0x1c52)][_0x3138b7(0x18ca)]):_0xce4bd4['message']||_0xce4bd4[_0x3138b7(0x2915)]()});});},function(){});}function _0x2d7dc1(_0x566506){return _0x566506===null?undefined:new Date(_0x566506);}function _0x43b7b4(_0x44eb02){const _0x20e02c=_0x38e18b;_0x3dc955[_0x20e02c(0x268e)](_0x44eb02);}}const _0x2ab882=_0x12e0a9;;const _0x1364df=_0x2e4a48['p']+_0x49a1e3(0xda6);;const _0x57539e=_0x2e4a48['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/item/dialog.html/dialog.html';;_0x5dcd6a[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf)];function _0x5dcd6a(_0x38cd5e,_0x111ff3,_0x147b6c,_0x222a04,_0x33abe1){const _0x51c782=_0x49a1e3,_0x132330=this;_0x132330[_0x51c782(0x1d3d)]=_0x33abe1[_0x51c782(0x808)](),_0x132330[_0x51c782(0xd14)]={},_0x132330[_0x51c782(0xa3b)]={},_0x132330[_0x51c782(0x23a8)]=[],_0x132330[_0x51c782(0x25f4)]=-0x1,_0x132330[_0x51c782(0x402)],_0x132330[_0x51c782(0x2354)]=_0x2fc813,_0x132330['getServicenowConfiguration']=_0x4e99b3,_0x132330[_0x51c782(0x57b)]=_0x5d9dbf,_0x132330[_0x51c782(0xfa7)]=_0x14c4f1;function _0x2fc813(_0xbf184c,_0x5903a9){const _0xea463d=_0x51c782;_0x132330[_0xea463d(0xd14)]=_0xbf184c,_0x132330['crudPermissions']=typeof _0x5903a9!==_0xea463d(0x19a1)?_0x5903a9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x147b6c[_0xea463d(0x2822)][_0xea463d(0x340)]({'id':_0x132330[_0xea463d(0xd14)]['id'],'sort':_0xea463d(0x260c)})[_0xea463d(0x15e7)][_0xea463d(0x64a)](function(_0xecf408){const _0x1a5288=_0xea463d;return _0x132330[_0x1a5288(0x23a8)]=_0xecf408[_0x1a5288(0x28b8)]?_0xecf408[_0x1a5288(0x28b8)]:[],_0x132330[_0x1a5288(0x23a8)]['length']&&_0x132330[_0x1a5288(0x1a1)](0x0),_0x147b6c[_0x1a5288(0xefb)][_0x1a5288(0x896)]({'nolimit':!![],'sort':'name'})[_0x1a5288(0x15e7)];})[_0xea463d(0x64a)](function(_0x16a3d6){const _0x35aa30=_0xea463d;_0x132330[_0x35aa30(0x145c)]=_0x16a3d6[_0x35aa30(0x28b8)]?_0x16a3d6[_0x35aa30(0x28b8)]:[],_0x132330[_0x35aa30(0x2685)]=_0x28c606()[_0x35aa30(0x161e)](_0x132330[_0x35aa30(0x145c)],'id');})[_0xea463d(0x20cd)](function(_0x119ed1){const _0x49c2bc=_0xea463d;_0x222a04[_0x49c2bc(0x1bd0)]({'title':_0x119ed1[_0x49c2bc(0x10b3)]?_0x49c2bc(0x575)+_0x119ed1[_0x49c2bc(0x10b3)]+_0x49c2bc(0x21db)+_0x119ed1[_0x49c2bc(0x2115)]:_0x49c2bc(0x1bdd),'msg':_0x119ed1['data']?JSON[_0x49c2bc(0x2317)](_0x119ed1['data']):_0x119ed1[_0x49c2bc(0x2915)]()});});}function _0x4e99b3(_0x351e1f){const _0x1e2edf=_0x51c782;_0x132330[_0x1e2edf(0xa3b)]=_0x132330[_0x1e2edf(0x23a8)][_0x351e1f],_0x132330[_0x1e2edf(0x25f4)]=_0x351e1f,_0x147b6c['intServicenowConfiguration'][_0x1e2edf(0x241f)]({'id':_0x132330[_0x1e2edf(0xa3b)]['id']})[_0x1e2edf(0x15e7)][_0x1e2edf(0x64a)](function(_0x3bd0bb){const _0x34274c=_0x1e2edf;return _0x132330[_0x34274c(0x29b)]=_0x3bd0bb[_0x34274c(0x28b8)]?_0x3bd0bb[_0x34274c(0x28b8)]:[],_0x147b6c[_0x34274c(0x799)]['getDescriptions']({'id':_0x132330[_0x34274c(0xa3b)]['id']})[_0x34274c(0x15e7)];})['then'](function(_0x4eec85){const _0x57ab68=_0x1e2edf;return _0x132330[_0x57ab68(0x24b6)]=_0x4eec85[_0x57ab68(0x28b8)]?_0x4eec85['rows']:[],_0x147b6c[_0x57ab68(0x799)][_0x57ab68(0x5e0)]({'id':_0x132330[_0x57ab68(0xa3b)]['id']})[_0x57ab68(0x15e7)];})[_0x1e2edf(0x64a)](function(_0x90bf98){const _0x19b64a=_0x1e2edf;_0x132330[_0x19b64a(0xf26)]=_0x90bf98[_0x19b64a(0x28b8)]?_0x90bf98['rows']:[];})['catch'](function(_0x599116){const _0x5e44a2=_0x1e2edf;_0x222a04[_0x5e44a2(0x1bd0)]({'title':_0x599116['status']?_0x5e44a2(0x575)+_0x599116[_0x5e44a2(0x10b3)]+_0x5e44a2(0x21db)+_0x599116[_0x5e44a2(0x2115)]:_0x5e44a2(0x15c1),'msg':_0x599116[_0x5e44a2(0x1c52)]?JSON['stringify'](_0x599116[_0x5e44a2(0x1c52)]):_0x599116[_0x5e44a2(0x2915)]()});});}function _0x5d9dbf(_0x4514a6,_0x58fd48){const _0x40e174=_0x51c782;_0x38cd5e['show']({'controller':_0x40e174(0x18d8),'controllerAs':'vm','templateUrl':_0x1364df,'parent':angular[_0x40e174(0x1f81)](_0x111ff3[_0x40e174(0xb49)]),'targetEvent':_0x4514a6,'clickOutsideToClose':!![],'locals':{'servicenowConfiguration':_0x58fd48,'configurations':_0x132330[_0x40e174(0x23a8)],'license':null,'setting':null,'crudPermissions':_0x132330[_0x40e174(0x402)]}})[_0x40e174(0x988)](function(){const _0x237d00=_0x40e174;_0x132330[_0x237d00(0x1a1)](0x0);});}function _0x14c4f1(_0x484929,_0x4f89a3){const _0x29cd7e=_0x51c782,_0x442540=_0x38cd5e[_0x29cd7e(0x856)]()[_0x29cd7e(0x2021)](_0x29cd7e(0x13b0))['htmlContent'](_0x29cd7e(0x50b)+(_0x4f89a3[_0x29cd7e(0x2494)]||_0x29cd7e(0xa3b))+_0x29cd7e(0x26d0)+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20servicenowConfiguration')[_0x29cd7e(0x2283)](_0x484929)['ok']('OK')[_0x29cd7e(0x101a)](_0x29cd7e(0x18fd));_0x38cd5e[_0x29cd7e(0xa60)](_0x442540)[_0x29cd7e(0x64a)](function(){const _0x5515a6=_0x29cd7e;_0x147b6c[_0x5515a6(0x799)][_0x5515a6(0xabd)]({'id':_0x4f89a3['id']})[_0x5515a6(0x15e7)][_0x5515a6(0x64a)](function(){const _0x342e37=_0x5515a6;_0x28c606()['remove'](_0x132330['configurations'],{'id':_0x4f89a3['id']}),_0x222a04['success']({'title':_0x342e37(0xf3e),'msg':_0x4f89a3[_0x342e37(0x2494)]?_0x4f89a3[_0x342e37(0x2494)]+_0x342e37(0x1fa8):''});})['catch'](function(_0x48fc0b){const _0x1cd724=_0x5515a6;_0x222a04['error']({'title':_0x48fc0b['status']?'API:'+_0x48fc0b[_0x1cd724(0x10b3)]+_0x1cd724(0x21db)+_0x48fc0b[_0x1cd724(0x2115)]:'SYSTEM:DELETECONFIGURATION','msg':_0x48fc0b[_0x1cd724(0x1c52)]?JSON[_0x1cd724(0x2317)](_0x48fc0b['data']):_0x48fc0b['toString']()});})[_0x5515a6(0x988)](function(){_0x132330['getServicenowConfiguration'](0x0);});},function(){const _0x45a0de=_0x29cd7e;console[_0x45a0de(0x9b4)](_0x45a0de(0x18fd));});}_0x132330[_0x51c782(0x2639)]=[],_0x132330[_0x51c782(0x22b1)]=_0x44bdd8,_0x132330[_0x51c782(0xa6a)]=_0x5d1912,_0x132330[_0x51c782(0x17fe)]=_0x873a9b;function _0x44bdd8(_0x3c2eeb,_0x5b816f){const _0x39f555=_0x51c782;_0x38cd5e['show']({'controller':_0x39f555(0x2ad),'controllerAs':'vm','templateUrl':_0x57539e,'parent':angular[_0x39f555(0x1f81)](_0x111ff3[_0x39f555(0xb49)]),'targetEvent':_0x3c2eeb,'clickOutsideToClose':!![],'locals':{'type':_0x39f555(0x25bc),'item':_0x5b816f,'items':_0x132330[_0x39f555(0x29b)],'configuration':_0x132330[_0x39f555(0xa3b)],'account':_0x132330[_0x39f555(0xd14)],'license':null,'setting':null,'crudPermissions':_0x132330[_0x39f555(0x402)]}});}function _0x42cf45(_0x17636a){const _0x4af13a=_0x51c782;_0x147b6c['intServicenowField'][_0x4af13a(0xabd)]({'id':_0x17636a['id']})[_0x4af13a(0x15e7)][_0x4af13a(0x64a)](function(){const _0x3b2273=_0x4af13a;_0x28c606()[_0x3b2273(0x21c7)](_0x132330[_0x3b2273(0x29b)],{'id':_0x17636a['id']}),_0x222a04['success']({'title':_0x3b2273(0x1d99),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0x4af13a(0x20cd)](function(_0x25e765){const _0x3c03f2=_0x4af13a;_0x222a04[_0x3c03f2(0x1bd0)]({'title':_0x25e765[_0x3c03f2(0x10b3)]?_0x3c03f2(0x575)+_0x25e765[_0x3c03f2(0x10b3)]+_0x3c03f2(0x21db)+_0x25e765[_0x3c03f2(0x2115)]:_0x3c03f2(0x12a9),'msg':_0x25e765[_0x3c03f2(0x1c52)]?JSON['stringify'](_0x25e765[_0x3c03f2(0x1c52)]):_0x25e765[_0x3c03f2(0x2915)]()});});}function _0x5d1912(_0x6ae273,_0x130be2){const _0x16eb48=_0x51c782,_0x43f35f=_0x38cd5e['confirm']()[_0x16eb48(0x2021)](_0x16eb48(0x189a))[_0x16eb48(0x33a)]('Subject'+_0x16eb48(0x4b8))[_0x16eb48(0x213e)]('delete\x20subject')[_0x16eb48(0x2283)](_0x6ae273)['ok']('OK')[_0x16eb48(0x101a)]('CANCEL');_0x38cd5e[_0x16eb48(0xa60)](_0x43f35f)[_0x16eb48(0x64a)](function(){_0x42cf45(_0x130be2);},function(){const _0x157227=_0x16eb48;console[_0x157227(0x9b4)](_0x157227(0x18fd));});}function _0x873a9b(_0x27afbf){const _0x31f05d=_0x51c782,_0x14a438=_0x38cd5e[_0x31f05d(0x856)]()[_0x31f05d(0x2021)](_0x31f05d(0x1cb4))[_0x31f05d(0x33a)](_0x31f05d(0x50b)+_0x132330[_0x31f05d(0x2639)][_0x31f05d(0x1b9e)]+_0x31f05d(0x163e)+_0x31f05d(0x4b8))['ariaLabel'](_0x31f05d(0x24f6))[_0x31f05d(0x2283)](_0x27afbf)['ok']('OK')['cancel'](_0x31f05d(0x18fd));_0x38cd5e[_0x31f05d(0xa60)](_0x14a438)[_0x31f05d(0x64a)](function(){const _0xee3538=_0x31f05d;_0x132330[_0xee3538(0x2639)][_0xee3538(0x1397)](function(_0xe457be){_0x42cf45(_0xe457be);}),_0x132330['selectedSubjects']=[];});}_0x132330[_0x51c782(0x21c1)]=[],_0x132330[_0x51c782(0x3a2)]=_0xb1f214,_0x132330[_0x51c782(0x183a)]=_0x34af7c,_0x132330[_0x51c782(0x1efc)]=_0x4ea373;function _0xb1f214(_0x260982,_0xec2111){const _0x1613e9=_0x51c782;_0x38cd5e[_0x1613e9(0xa60)]({'controller':_0x1613e9(0x2ad),'controllerAs':'vm','templateUrl':_0x57539e,'parent':angular[_0x1613e9(0x1f81)](_0x111ff3[_0x1613e9(0xb49)]),'targetEvent':_0x260982,'clickOutsideToClose':!![],'locals':{'type':_0x1613e9(0x23c3),'item':_0xec2111,'items':_0x132330[_0x1613e9(0x24b6)],'configuration':_0x132330[_0x1613e9(0xa3b)],'account':_0x132330['servicenowAccount'],'license':null,'setting':null,'crudPermissions':_0x132330[_0x1613e9(0x402)]}});}function _0x541275(_0x5ce835){const _0x24f8c1=_0x51c782;_0x147b6c[_0x24f8c1(0x192d)][_0x24f8c1(0xabd)]({'id':_0x5ce835['id']})[_0x24f8c1(0x15e7)][_0x24f8c1(0x64a)](function(){const _0x4443fb=_0x24f8c1;_0x28c606()[_0x4443fb(0x21c7)](_0x132330[_0x4443fb(0x24b6)],{'id':_0x5ce835['id']}),_0x222a04[_0x4443fb(0x1339)]({'title':_0x4443fb(0x166a),'msg':_0x4443fb(0x213f)});})[_0x24f8c1(0x20cd)](function(_0x40db5e){const _0x1509c6=_0x24f8c1;_0x222a04['error']({'title':_0x40db5e[_0x1509c6(0x10b3)]?_0x1509c6(0x575)+_0x40db5e[_0x1509c6(0x10b3)]+'\x20-\x20'+_0x40db5e[_0x1509c6(0x2115)]:_0x1509c6(0x12a9),'msg':_0x40db5e[_0x1509c6(0x1c52)]?JSON[_0x1509c6(0x2317)](_0x40db5e[_0x1509c6(0x1c52)]):_0x40db5e[_0x1509c6(0x2915)]()});});}function _0x34af7c(_0xaa2e71,_0x425800){const _0x13f383=_0x51c782,_0x28cb2a=_0x38cd5e[_0x13f383(0x856)]()[_0x13f383(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?')[_0x13f383(0x33a)](_0x13f383(0x1bb6)+'\x20will\x20be\x20deleted.')[_0x13f383(0x213e)](_0x13f383(0x748))[_0x13f383(0x2283)](_0xaa2e71)['ok']('OK')[_0x13f383(0x101a)](_0x13f383(0x18fd));_0x38cd5e[_0x13f383(0xa60)](_0x28cb2a)[_0x13f383(0x64a)](function(){_0x541275(_0x425800);},function(){const _0x53dd07=_0x13f383;console[_0x53dd07(0x9b4)](_0x53dd07(0x18fd));});}function _0x4ea373(_0x1f43bc){const _0x9e3b94=_0x51c782,_0x6353c4=_0x38cd5e[_0x9e3b94(0x856)]()[_0x9e3b94(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')['htmlContent'](_0x9e3b94(0x50b)+_0x132330[_0x9e3b94(0x21c1)][_0x9e3b94(0x1b9e)]+_0x9e3b94(0x163e)+_0x9e3b94(0x4b8))[_0x9e3b94(0x213e)](_0x9e3b94(0x531))[_0x9e3b94(0x2283)](_0x1f43bc)['ok']('OK')[_0x9e3b94(0x101a)](_0x9e3b94(0x18fd));_0x38cd5e[_0x9e3b94(0xa60)](_0x6353c4)[_0x9e3b94(0x64a)](function(){const _0xcec824=_0x9e3b94;_0x132330[_0xcec824(0x21c1)][_0xcec824(0x1397)](function(_0x35cdbc){_0x541275(_0x35cdbc);}),_0x132330[_0xcec824(0x21c1)]=[];});}_0x132330[_0x51c782(0xa3a)]=[],_0x132330[_0x51c782(0x569)]=_0x230691,_0x132330[_0x51c782(0x1436)]=_0x372b9c,_0x132330['deleteSelectedFields']=_0x631f78;function _0x230691(_0x1365a0,_0x34a31a){const _0x201178=_0x51c782;_0x38cd5e['show']({'controller':_0x201178(0x2ad),'controllerAs':'vm','templateUrl':_0x57539e,'parent':angular[_0x201178(0x1f81)](_0x111ff3[_0x201178(0xb49)]),'targetEvent':_0x1365a0,'clickOutsideToClose':!![],'locals':{'type':_0x201178(0xc26),'item':_0x34a31a,'items':_0x132330[_0x201178(0xf26)],'configuration':_0x132330[_0x201178(0xa3b)],'account':_0x132330['servicenowAccount'],'license':null,'setting':null,'crudPermissions':_0x132330['crudPermissions']}});}function _0x47bcc2(_0x5319d6){const _0x4cd872=_0x51c782;_0x147b6c[_0x4cd872(0x192d)]['delete']({'id':_0x5319d6['id']})[_0x4cd872(0x15e7)]['then'](function(){const _0x4ddc1f=_0x4cd872;_0x28c606()['remove'](_0x132330[_0x4ddc1f(0xf26)],{'id':_0x5319d6['id']}),_0x222a04[_0x4ddc1f(0x1339)]({'title':_0x4ddc1f(0x13e7),'msg':'Field\x20has\x20been\x20deleted!'});})['catch'](function(_0x5295eb){const _0x2ef06e=_0x4cd872;_0x222a04[_0x2ef06e(0x1bd0)]({'title':_0x5295eb[_0x2ef06e(0x10b3)]?'API:'+_0x5295eb[_0x2ef06e(0x10b3)]+_0x2ef06e(0x21db)+_0x5295eb[_0x2ef06e(0x2115)]:_0x2ef06e(0x12a9),'msg':_0x5295eb[_0x2ef06e(0x1c52)]?JSON[_0x2ef06e(0x2317)](_0x5295eb[_0x2ef06e(0x1c52)]):_0x5295eb[_0x2ef06e(0x2915)]()});});}function _0x372b9c(_0x558840,_0x4f2d80){const _0x2a2bac=_0x51c782,_0x2a67f8=_0x38cd5e['confirm']()[_0x2a2bac(0x2021)](_0x2a2bac(0x865))[_0x2a2bac(0x33a)]('Field'+_0x2a2bac(0x4b8))[_0x2a2bac(0x213e)](_0x2a2bac(0x22d7))[_0x2a2bac(0x2283)](_0x558840)['ok']('OK')[_0x2a2bac(0x101a)](_0x2a2bac(0x18fd));_0x38cd5e[_0x2a2bac(0xa60)](_0x2a67f8)['then'](function(){_0x47bcc2(_0x4f2d80);},function(){const _0x343a7d=_0x2a2bac;console['log'](_0x343a7d(0x18fd));});}function _0x631f78(_0x42212d){const _0x443b24=_0x51c782,_0x28d304=_0x38cd5e[_0x443b24(0x856)]()['title'](_0x443b24(0x17bf))[_0x443b24(0x33a)](_0x443b24(0x50b)+_0x132330[_0x443b24(0xa3a)][_0x443b24(0x1b9e)]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x443b24(0x213e)](_0x443b24(0x11bc))[_0x443b24(0x2283)](_0x42212d)['ok']('OK')['cancel'](_0x443b24(0x18fd));_0x38cd5e[_0x443b24(0xa60)](_0x28d304)[_0x443b24(0x64a)](function(){const _0x48c18b=_0x443b24;_0x132330['selectedFields'][_0x48c18b(0x1397)](function(_0x1ad5b9){_0x47bcc2(_0x1ad5b9);}),_0x132330['selectedFields']=[];});}}const _0x193d6b=_0x5dcd6a;;_0x3959fc['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q','$translate',_0x49a1e3(0x680),_0x49a1e3(0x23a8),_0x49a1e3(0xa3b),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x3959fc(_0x358302,_0x3b6edb,_0x4c3365,_0x2d41aa,_0xfb185,_0x5a52ac,_0x4e7fdc,_0x3bb840,_0x1a683b,_0x16e4b6,_0x55f7b1,_0x4b6f3c,_0x3b061a,_0x1d8e80){const _0x40e8dd=_0x49a1e3,_0x5b8560=this;_0x5b8560[_0x40e8dd(0x1d3d)]=_0x55f7b1['getCurrentUser'](),_0x5b8560[_0x40e8dd(0xbae)]=[],_0x5b8560[_0x40e8dd(0x28d6)]=_0x3b061a,_0x5b8560['license']=_0x4b6f3c,_0x5b8560[_0x40e8dd(0x402)]=_0x1d8e80,_0x5b8560['hasModulePermissions']={},_0x5b8560[_0x40e8dd(0xccc)]=_0x5b8560['setting']&&_0x5b8560[_0x40e8dd(0x28d6)][_0x40e8dd(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5b8560[_0x40e8dd(0x2021)]=_0x40e8dd(0x766),_0x5b8560[_0x40e8dd(0xa3b)]=angular[_0x40e8dd(0x289e)](_0x1a683b),_0x5b8560[_0x40e8dd(0x23a8)]=_0x3bb840,_0x5b8560[_0x40e8dd(0x1961)]=![];!_0x5b8560[_0x40e8dd(0xa3b)]&&(_0x5b8560[_0x40e8dd(0xa3b)]={'channel':_0x40e8dd(0x227c),'type':_0x40e8dd(0x12a4)},_0x5b8560[_0x40e8dd(0x2021)]=_0x40e8dd(0xf1c),_0x5b8560[_0x40e8dd(0x1961)]=!![]);_0x5b8560[_0x40e8dd(0x11a2)]=_0x59dc8e,_0x5b8560[_0x40e8dd(0x634)]=_0x1efcd4,_0x5b8560['deleteServicenowConfiguration']=_0x5908bc,_0x5b8560[_0x40e8dd(0x1605)]=_0x551c83,_0x5b8560[_0x40e8dd(0x16cb)]=_0x7baaf0;function _0x59dc8e(){const _0x107fd6=_0x40e8dd;_0x5b8560[_0x107fd6(0xbae)]=[],_0x16e4b6['intServicenowAccount']['addConfiguration']({'id':_0x3b6edb[_0x107fd6(0x1b48)]['id']},_0x5b8560['servicenowConfiguration'])['$promise']['then'](function(_0x3ff32f){const _0x44251b=_0x107fd6;_0x5b8560[_0x44251b(0x23a8)]['unshift'](_0x3ff32f[_0x44251b(0x14f8)]()),_0x4e7fdc['success']({'title':_0x44251b(0x1695),'msg':_0x5b8560['servicenowConfiguration'][_0x44251b(0x2494)]?_0x5b8560[_0x44251b(0xa3b)]['name']+_0x44251b(0x258d):''}),_0x7baaf0(_0x3ff32f);})[_0x107fd6(0x20cd)](function(_0x13f242){const _0x4f1ae4=_0x107fd6;if(_0x13f242[_0x4f1ae4(0x1c52)]&&_0x13f242[_0x4f1ae4(0x1c52)][_0x4f1ae4(0xbae)]&&_0x13f242[_0x4f1ae4(0x1c52)][_0x4f1ae4(0xbae)][_0x4f1ae4(0x1b9e)]){_0x5b8560[_0x4f1ae4(0xbae)]=_0x13f242[_0x4f1ae4(0x1c52)]['errors']||[{'message':_0x13f242[_0x4f1ae4(0x2915)](),'type':_0x4f1ae4(0xbef)}];for(let _0x15960b=0x0;_0x15960b<_0x13f242['data'][_0x4f1ae4(0xbae)][_0x4f1ae4(0x1b9e)];_0x15960b+=0x1){_0x4e7fdc[_0x4f1ae4(0x1bd0)]({'title':_0x13f242[_0x4f1ae4(0x1c52)][_0x4f1ae4(0xbae)][_0x15960b][_0x4f1ae4(0x2185)],'msg':_0x13f242['data'][_0x4f1ae4(0xbae)][_0x15960b][_0x4f1ae4(0x18ca)]});}}else _0x4e7fdc['error']({'title':_0x13f242['status']?_0x4f1ae4(0x575)+_0x13f242[_0x4f1ae4(0x10b3)]+'\x20-\x20'+_0x13f242['statusText']:'api.intServicenowConfiguration.save','msg':_0x13f242['data']?JSON[_0x4f1ae4(0x2317)](_0x13f242[_0x4f1ae4(0x1c52)]['message']):_0x13f242[_0x4f1ae4(0x2915)]()});});}function _0x1efcd4(){const _0x2a4340=_0x40e8dd;_0x5b8560['errors']=[],_0x16e4b6[_0x2a4340(0x799)]['update']({'id':_0x5b8560[_0x2a4340(0xa3b)]['id']},_0x5b8560[_0x2a4340(0xa3b)])[_0x2a4340(0x15e7)][_0x2a4340(0x64a)](function(_0x17be7e){const _0x38f745=_0x2a4340,_0x13c7a1=_0x28c606()['find'](_0x5b8560[_0x38f745(0x23a8)],{'id':_0x17be7e['id']});_0x13c7a1&&_0x28c606()[_0x38f745(0x14fe)](_0x13c7a1,_0x28c606()[_0x38f745(0x27bb)](_0x17be7e['toJSON'](),_0x28c606()[_0x38f745(0x1ec6)](_0x13c7a1))),_0x4e7fdc[_0x38f745(0x1339)]({'title':_0x38f745(0x1173),'msg':_0x5b8560['servicenowConfiguration']['name']?_0x5b8560[_0x38f745(0xa3b)][_0x38f745(0x2494)]+_0x38f745(0x271):''}),_0x7baaf0(_0x17be7e);})['catch'](function(_0x31c0a8){const _0x1d4793=_0x2a4340;if(_0x31c0a8[_0x1d4793(0x1c52)]&&_0x31c0a8['data'][_0x1d4793(0xbae)]&&_0x31c0a8[_0x1d4793(0x1c52)][_0x1d4793(0xbae)]['length']){_0x5b8560[_0x1d4793(0xbae)]=_0x31c0a8[_0x1d4793(0x1c52)][_0x1d4793(0xbae)]||[{'message':_0x31c0a8[_0x1d4793(0x2915)](),'type':_0x1d4793(0x1e4)}];for(let _0x20e673=0x0;_0x20e673<_0x31c0a8[_0x1d4793(0x1c52)]['errors'][_0x1d4793(0x1b9e)];_0x20e673++){_0x4e7fdc['error']({'title':_0x31c0a8[_0x1d4793(0x1c52)][_0x1d4793(0xbae)][_0x20e673][_0x1d4793(0x2185)],'msg':_0x31c0a8[_0x1d4793(0x1c52)][_0x1d4793(0xbae)][_0x20e673][_0x1d4793(0x18ca)]});}}else _0x4e7fdc[_0x1d4793(0x1bd0)]({'title':_0x31c0a8[_0x1d4793(0x10b3)]?_0x1d4793(0x575)+_0x31c0a8['status']+_0x1d4793(0x21db)+_0x31c0a8['statusText']:_0x1d4793(0x1e4),'msg':_0x31c0a8[_0x1d4793(0x1c52)]?JSON[_0x1d4793(0x2317)](_0x31c0a8[_0x1d4793(0x1c52)][_0x1d4793(0x18ca)]):_0x31c0a8['toString']()});});}function _0x5908bc(_0x1a8c8e){const _0x2c8565=_0x40e8dd;_0x5b8560[_0x2c8565(0xbae)]=[];const _0x9c5743=_0x2d41aa[_0x2c8565(0x856)]()[_0x2c8565(0x2021)](_0x2c8565(0x103a))[_0x2c8565(0x12b8)](_0x2c8565(0x35c))['ariaLabel'](_0x2c8565(0x443))['ok']('Delete')['cancel']('Cancel')[_0x2c8565(0x2283)](_0x1a8c8e);_0x2d41aa[_0x2c8565(0xa60)](_0x9c5743)[_0x2c8565(0x64a)](function(){const _0x38a27d=_0x2c8565;_0x16e4b6[_0x38a27d(0x799)][_0x38a27d(0xabd)]({'id':_0x5b8560['servicenowConfiguration']['id']})[_0x38a27d(0x15e7)]['then'](function(){const _0x3d065f=_0x38a27d;_0x28c606()[_0x3d065f(0x21c7)](_0x5b8560[_0x3d065f(0x23a8)],{'id':_0x5b8560[_0x3d065f(0xa3b)]['id']}),_0x4e7fdc[_0x3d065f(0x1339)]({'title':_0x3d065f(0x12cd),'msg':(_0x5b8560[_0x3d065f(0xa3b)][_0x3d065f(0x2494)]||'servicenowConfiguration')+_0x3d065f(0x1fa8)}),_0x7baaf0(_0x5b8560[_0x3d065f(0xa3b)]);})[_0x38a27d(0x20cd)](function(_0x486091){const _0x5d9721=_0x38a27d;if(_0x486091[_0x5d9721(0x1c52)]&&_0x486091[_0x5d9721(0x1c52)][_0x5d9721(0xbae)]&&_0x486091['data'][_0x5d9721(0xbae)][_0x5d9721(0x1b9e)]){_0x5b8560[_0x5d9721(0xbae)]=_0x486091[_0x5d9721(0x1c52)][_0x5d9721(0xbae)]||[{'message':_0x486091[_0x5d9721(0x2915)](),'type':_0x5d9721(0x2561)}];for(let _0x1bd524=0x0;_0x1bd524<_0x486091['data'][_0x5d9721(0xbae)][_0x5d9721(0x1b9e)];_0x1bd524++){_0x4e7fdc[_0x5d9721(0x1bd0)]({'title':_0x486091[_0x5d9721(0x1c52)][_0x5d9721(0xbae)][_0x1bd524][_0x5d9721(0x2185)],'msg':_0x486091['data'][_0x5d9721(0xbae)][_0x1bd524][_0x5d9721(0x18ca)]});}}else _0x4e7fdc[_0x5d9721(0x1bd0)]({'title':_0x486091['status']?_0x5d9721(0x575)+_0x486091[_0x5d9721(0x10b3)]+'\x20-\x20'+_0x486091[_0x5d9721(0x2115)]:'api.intServicenowConfiguration.delete','msg':_0x486091[_0x5d9721(0x1c52)]?JSON[_0x5d9721(0x2317)](_0x486091[_0x5d9721(0x1c52)][_0x5d9721(0x18ca)]):_0x486091['message']||_0x486091[_0x5d9721(0x2915)]()});});},function(){});}function _0x551c83(_0x546520){return _0x546520===null?undefined:new Date(_0x546520);}function _0x7baaf0(_0x108c70){_0x2d41aa['hide'](_0x108c70);}}const _0xb90100=_0x3959fc;;_0x2ac22d[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x680),'configuration',_0x49a1e3(0x23cb),_0x49a1e3(0x1656),'account',_0x49a1e3(0x2185),'api','Auth',_0x49a1e3(0x402)];function _0x2ac22d(_0x17b6de,_0x20b07c,_0x2c28b6,_0x592e51,_0x56e9c9,_0x539dbf,_0x172b8d,_0x27cb10,_0x2cc499,_0x5cc18a,_0x1d87d8,_0x1e4d9a,_0x261f51){const _0x3540d1=_0x49a1e3,_0x1b77cf=this;_0x1b77cf['currentUser']=_0x1e4d9a['getCurrentUser'](),_0x1b77cf[_0x3540d1(0xbae)]=[],_0x1b77cf[_0x3540d1(0x2021)]=_0x3540d1(0x1bfd)+_0x28c606()[_0x3540d1(0x2201)](_0x5cc18a),_0x1b77cf[_0x3540d1(0x1656)]=angular[_0x3540d1(0x289e)](_0x27cb10),_0x1b77cf[_0x3540d1(0x23cb)]=_0x172b8d,_0x1b77cf[_0x3540d1(0x2185)]=_0x5cc18a,_0x1b77cf['crudPermissions']=_0x261f51,_0x1b77cf[_0x3540d1(0xd33)]=![];!_0x1b77cf[_0x3540d1(0x1656)]&&(_0x1b77cf[_0x3540d1(0x1656)]={'type':_0x3540d1(0x108c)},_0x1b77cf[_0x3540d1(0x1656)][_0x28c606()['capitalize'](_0x5cc18a)+'Id']=_0x539dbf['id'],_0x1b77cf['title']=_0x3540d1(0x1ad9)+_0x28c606()[_0x3540d1(0x2201)](_0x5cc18a),_0x1b77cf['newItem']=!![]);_0x1b77cf[_0x3540d1(0x2889)]=_0x36f710,_0x1b77cf['saveItem']=_0xd356df,_0x1b77cf[_0x3540d1(0x126d)]=_0x3e55c0,_0x1b77cf['getSelectedVariable']=_0x2572ac,_0x1b77cf[_0x3540d1(0x16cb)]=_0x35c8a3,_0x1d87d8[_0x3540d1(0xefb)][_0x3540d1(0x896)]({'nolimit':!![]})[_0x3540d1(0x15e7)][_0x3540d1(0x64a)](function(_0x4306a2){const _0x24e867=_0x3540d1;return _0x1b77cf[_0x24e867(0x145c)]=_0x4306a2[_0x24e867(0x28b8)]?_0x4306a2[_0x24e867(0x28b8)]:[],_0x1d87d8[_0x24e867(0x1445)][_0x24e867(0xa81)]()[_0x24e867(0x15e7)];})['then'](function(_0x336ae0){const _0xc5f495=_0x3540d1;return _0x1b77cf['voiceAgentReportColumns']=_0x28c606()[_0xc5f495(0xde7)](_0x28c606()['keys'](_0x336ae0),[_0xc5f495(0x15e7),_0xc5f495(0x19ba),_0xc5f495(0x2378),_0xc5f495(0x2056),_0xc5f495(0x2785)]),_0x1b77cf['voiceAgentReportColumns']['push']('recordingURL'),_0x1d87d8[_0xc5f495(0x1002)][_0xc5f495(0xa81)]()[_0xc5f495(0x15e7)];})[_0x3540d1(0x64a)](function(_0x1b86c9){const _0x46f301=_0x3540d1;_0x1b77cf['voiceDialReportColumns']=_0x28c606()['difference'](_0x28c606()['keys'](_0x1b86c9),[_0x46f301(0x15e7),_0x46f301(0x19ba),_0x46f301(0x2378),'updatedAt','sourceid']),_0x1b77cf['voiceDialReportColumns'][_0x46f301(0x1954)]('recordingURL');})[_0x3540d1(0x20cd)](function(_0x428152){const _0x798488=_0x3540d1;_0x56e9c9[_0x798488(0x1bd0)]({'title':_0x428152[_0x798488(0x10b3)]?'API:'+_0x428152['status']+_0x798488(0x21db)+_0x428152[_0x798488(0x2115)]:_0x798488(0x195a),'msg':_0x428152[_0x798488(0x1c52)]?JSON[_0x798488(0x2317)](_0x428152['data']):_0x428152['toString']()});}),_0x1d87d8[_0x3540d1(0x2822)][_0x3540d1(0x5e0)]({'id':_0x2cc499['id'],'ticketType':_0x539dbf['ticketType']?_0x539dbf[_0x3540d1(0x1545)]:undefined})[_0x3540d1(0x15e7)][_0x3540d1(0x64a)](function(_0x132bef){const _0x31838f=_0x3540d1;_0x1b77cf['accountConnected']=!![],_0x1b77cf['fields']=_0x132bef['rows']?_0x132bef[_0x31838f(0x28b8)]:[],_0x1b77cf['item'][_0x31838f(0x197)]&&(_0x1b77cf[_0x31838f(0x1753)]=_0x28c606()[_0x31838f(0x27bc)](_0x1b77cf[_0x31838f(0xf26)],{'id':_0x1b77cf[_0x31838f(0x1656)][_0x31838f(0x197)]}));})[_0x3540d1(0x20cd)](function(_0x154372){const _0x550b4a=_0x3540d1;_0x1b77cf[_0x550b4a(0x854)]=![],console[_0x550b4a(0x1bd0)](_0x154372);});function _0x36f710(){const _0x114ba6=_0x3540d1;_0x1b77cf['errors']=[],_0x1b77cf[_0x114ba6(0x1753)]&&(_0x1b77cf[_0x114ba6(0x1656)][_0x114ba6(0x197)]=_0x1b77cf[_0x114ba6(0x1753)]['id'],_0x1b77cf[_0x114ba6(0x1656)][_0x114ba6(0x25fc)]=_0x1b77cf[_0x114ba6(0x1753)]['name'],_0x1b77cf[_0x114ba6(0x1656)]['customField']=_0x1b77cf[_0x114ba6(0x1753)][_0x114ba6(0x1ad6)]),_0x1d87d8['intServicenowField']['save'](_0x1b77cf['item'])[_0x114ba6(0x15e7)][_0x114ba6(0x64a)](function(_0x5160d9){const _0x21b34d=_0x114ba6;_0x1b77cf[_0x21b34d(0x23cb)]['unshift'](_0x5160d9),_0x56e9c9[_0x21b34d(0x1339)]({'title':_0x28c606()['capitalize'](_0x5cc18a)+_0x21b34d(0xe0b),'msg':_0x28c606()[_0x21b34d(0xd56)](_0x5cc18a)+_0x21b34d(0x258d)}),_0x35c8a3();})['catch'](function(_0x4c67fd){const _0x153ee0=_0x114ba6;console['error'](_0x4c67fd),_0x1b77cf[_0x153ee0(0xbae)]=_0x4c67fd[_0x153ee0(0x1c52)][_0x153ee0(0xbae)]||[{'message':_0x4c67fd[_0x153ee0(0x2915)](),'type':_0x153ee0(0x1675)}];});}function _0xd356df(){const _0x394312=_0x3540d1;_0x1b77cf[_0x394312(0xbae)]=[],_0x1b77cf[_0x394312(0x1753)]&&(_0x1b77cf[_0x394312(0x1656)][_0x394312(0x197)]=_0x1b77cf[_0x394312(0x1753)]['id'],_0x1b77cf['item'][_0x394312(0x25fc)]=_0x1b77cf['customField'][_0x394312(0x2494)],_0x1b77cf['item'][_0x394312(0x1753)]=_0x1b77cf[_0x394312(0x1753)][_0x394312(0x1ad6)]),_0x1d87d8[_0x394312(0x192d)][_0x394312(0x2603)]({'id':_0x1b77cf[_0x394312(0x1656)]['id']},_0x1b77cf[_0x394312(0x1656)])[_0x394312(0x15e7)][_0x394312(0x64a)](function(_0x2afa6a){const _0x10d43a=_0x394312,_0x3421be=_0x28c606()['find'](_0x1b77cf[_0x10d43a(0x23cb)],{'id':_0x2afa6a['id']});_0x3421be&&_0x28c606()[_0x10d43a(0x14fe)](_0x3421be,_0x2afa6a),_0x56e9c9[_0x10d43a(0x1339)]({'title':_0x28c606()['capitalize'](_0x5cc18a)+_0x10d43a(0x2776),'msg':_0x28c606()[_0x10d43a(0xd56)](_0x5cc18a)+'\x20has\x20been\x20saved!'}),_0x35c8a3();})[_0x394312(0x20cd)](function(_0x1c6e0f){const _0x53101c=_0x394312;console[_0x53101c(0x1bd0)](_0x1c6e0f),_0x1b77cf[_0x53101c(0xbae)]=_0x1c6e0f[_0x53101c(0x1c52)]['errors']||[{'message':_0x1c6e0f[_0x53101c(0x2915)](),'type':_0x53101c(0x671)}];});}function _0x3e55c0(_0x48b2ba){const _0x32f192=_0x3540d1;_0x1b77cf[_0x32f192(0xbae)]=[];const _0x387ee5=_0x592e51['confirm']()[_0x32f192(0x2021)](_0x32f192(0x103a))[_0x32f192(0x12b8)](_0x32f192(0x2966)+_0x5cc18a+_0x32f192(0x4b8))[_0x32f192(0x213e)](_0x32f192(0x1f2e)+_0x28c606()[_0x32f192(0xd56)](_0x5cc18a))['ok'](_0x32f192(0x2664))['cancel'](_0x32f192(0x1dc6))['targetEvent'](_0x48b2ba);_0x592e51[_0x32f192(0xa60)](_0x387ee5)[_0x32f192(0x64a)](function(){const _0x51e8a4=_0x32f192;_0x1d87d8[_0x51e8a4(0x192d)][_0x51e8a4(0xabd)]({'id':_0x1b77cf[_0x51e8a4(0x1656)]['id']})[_0x51e8a4(0x15e7)][_0x51e8a4(0x64a)](function(){const _0x3f103d=_0x51e8a4;_0x28c606()[_0x3f103d(0x21c7)](_0x1b77cf[_0x3f103d(0x23cb)],{'id':_0x1b77cf['item']['id']}),_0x56e9c9['success']({'title':_0x28c606()['capitalize'](_0x5cc18a)+_0x3f103d(0x6ec),'msg':_0x28c606()[_0x3f103d(0xd56)](_0x5cc18a)+_0x3f103d(0x1fa8)}),_0x35c8a3();})[_0x51e8a4(0x20cd)](function(_0x58fdfb){const _0x12648f=_0x51e8a4;console['error'](_0x58fdfb),_0x1b77cf[_0x12648f(0xbae)]=_0x58fdfb[_0x12648f(0x1c52)][_0x12648f(0xbae)]||[{'message':_0x58fdfb[_0x12648f(0x2915)](),'type':'api.item.delete'}];});},function(){});}function _0x2572ac(){const _0x16e8b6=_0x3540d1;return _0x1b77cf['item']['variableName']!==undefined?_0x1b77cf[_0x16e8b6(0x1656)][_0x16e8b6(0x1299)]:_0x16e8b6(0xfae);}function _0x35c8a3(){const _0x5e3e42=_0x3540d1;_0x592e51[_0x5e3e42(0x268e)]();}}const _0x3dfa0b=_0x2ac22d;;_0x4e698a['$inject']=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x298c),'license',_0x49a1e3(0x28d6),'api','toasty','Auth',_0x49a1e3(0xd14),_0x49a1e3(0x16b2)];function _0x4e698a(_0x3a6d5b,_0x584bf6,_0x2aa0c3,_0x51c336,_0x421580,_0x1ae331,_0x5e0e4d,_0xbc98f9,_0x2a5078,_0x42c731,_0x399d6b,_0x19a05c){const _0x12dbaa=_0x49a1e3,_0x304e39=this;_0x304e39[_0x12dbaa(0x1d3d)]=_0x42c731[_0x12dbaa(0x808)](),_0x304e39[_0x12dbaa(0x1947)]=_0x1ae331,_0x304e39[_0x12dbaa(0x28d6)]=_0x5e0e4d,_0x304e39[_0x12dbaa(0xccc)]=_0x304e39[_0x12dbaa(0x28d6)][_0x12dbaa(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x304e39[_0x12dbaa(0xb36)]=_0x584bf6[_0x12dbaa(0x48e)]()+_0x12dbaa(0xe1f)+_0x584bf6[_0x12dbaa(0x1e5d)](),_0x304e39['servicenowAccount']=_0x399d6b||_0x3a6d5b[_0x12dbaa(0x1b48)][_0x12dbaa(0xd14)]||{},_0x304e39[_0x12dbaa(0x16b2)]=_0x19a05c&&_0x19a05c[_0x12dbaa(0xb90)]==0x1?_0x19a05c[_0x12dbaa(0x28b8)][0x0]:null,_0x304e39['crudPermissions']=_0x42c731[_0x12dbaa(0xa7e)](_0x304e39[_0x12dbaa(0x16b2)]?_0x304e39[_0x12dbaa(0x16b2)]['crudPermissions']:null),_0x304e39[_0x12dbaa(0x6c2)]={},_0x304e39[_0x12dbaa(0x197c)]=_0x3a6d5b['params'][_0x12dbaa(0x1222)]||0x0,_0x304e39[_0x12dbaa(0x2540)]=_0x2a5078['info'],_0x304e39[_0x12dbaa(0x1b2)]=_0x444a1e,_0x304e39[_0x12dbaa(0x173d)]=_0x1756d1;function _0x444a1e(){const _0x48febb=_0x12dbaa;_0x3a6d5b['go'](_0x48febb(0xca3),{},{'reload':_0x48febb(0xca3)});}function _0x1756d1(){const _0x122fb0=_0x12dbaa;_0xbc98f9[_0x122fb0(0x2822)][_0x122fb0(0x2603)]({'id':_0x304e39['servicenowAccount']['id']},_0x304e39['servicenowAccount'])[_0x122fb0(0x15e7)][_0x122fb0(0x64a)](function(){const _0x4cd7a5=_0x122fb0;_0x2a5078[_0x4cd7a5(0x1339)]({'title':_0x4cd7a5(0x1d87),'msg':_0x304e39[_0x4cd7a5(0xd14)][_0x4cd7a5(0x2494)]?_0x304e39['servicenowAccount'][_0x4cd7a5(0x2494)]+_0x4cd7a5(0x2032):''});})['catch'](function(_0x136214){const _0x21e4f8=_0x122fb0;_0x2a5078['error']({'title':_0x136214[_0x21e4f8(0x10b3)]?_0x21e4f8(0x575)+_0x136214[_0x21e4f8(0x10b3)]+_0x21e4f8(0x21db)+_0x136214[_0x21e4f8(0x2115)]:'SYSTEM:GETintServicenowAccount','msg':_0x136214[_0x21e4f8(0x1c52)]?JSON['stringify'](_0x136214['data']):_0x136214[_0x21e4f8(0x2915)]()});});}}const _0x50ab02=_0x4e698a;;const _0x45bb0b=_0x2e4a48['p']+_0x49a1e3(0x1e64);;_0x176f06[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$window',_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),'servicenowAccounts',_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x176f06(_0x20df89,_0x4dd17b,_0x2ad5ad,_0x1a62a8,_0x36c663,_0x2021c6,_0x182977,_0x216798,_0x1ab9b8,_0x53aaa5,_0x3c8c7,_0x1f6484,_0x3c3d58,_0x331791,_0x2d4725,_0x346f10,_0x4ce77d){const _0x2c7837=_0x49a1e3,_0x31eb01=this;_0x31eb01[_0x2c7837(0x1947)]=_0x346f10,_0x31eb01[_0x2c7837(0x28d6)]=_0x4ce77d,_0x31eb01[_0x2c7837(0x1d3d)]=_0x2d4725[_0x2c7837(0x808)](),_0x31eb01['servicenowAccounts']=_0x1ab9b8||{'count':0x0,'rows':[]},_0x31eb01['userProfile']=_0x53aaa5,_0x31eb01[_0x2c7837(0x16b2)]=_0x3c8c7&&_0x3c8c7[_0x2c7837(0xb90)]==0x1?_0x3c8c7[_0x2c7837(0x28b8)][0x0]:null,_0x31eb01[_0x2c7837(0x402)]=_0x2d4725[_0x2c7837(0xa7e)](_0x31eb01[_0x2c7837(0x16b2)]?_0x31eb01[_0x2c7837(0x16b2)][_0x2c7837(0x402)]:null),_0x31eb01[_0x2c7837(0x185d)]=_0x2c7837(0xb80),_0x31eb01['listOrder']='',_0x31eb01[_0x2c7837(0x2748)]=null,_0x31eb01['selectedServicenowAccounts']=[],_0x31eb01[_0x2c7837(0x289a)]={'fields':_0x2c7837(0x1731),'limit':0xa,'page':0x1},_0x31eb01[_0x2c7837(0xff6)]=_0x4bc29a,_0x31eb01[_0x2c7837(0x1348)]=_0xcac93e,_0x31eb01[_0x2c7837(0x1262)]=_0x18a74e,_0x31eb01[_0x2c7837(0x1339)]=_0x38b356,_0x31eb01['getServicenowAccounts']=_0xa3f111,_0x31eb01['createOrEditServicenowAccount']=_0x63a81f,_0x31eb01[_0x2c7837(0x2169)]=_0x4c283c,_0x31eb01[_0x2c7837(0x2eb)]=_0x1eb929,_0x31eb01[_0x2c7837(0x2190)]=_0x2f5961,_0x31eb01[_0x2c7837(0x22d6)]=_0x1f1fe6,_0x31eb01[_0x2c7837(0x293d)]=_0x21152c;function _0x4bc29a(_0x15c6eb){const _0x37c51b=_0x2c7837;_0x2ad5ad['go'](_0x37c51b(0xdee),{'id':_0x15c6eb['id'],'servicenowAccount':_0x15c6eb,'crudPermissions':_0x31eb01[_0x37c51b(0x402)]});}function _0xcac93e(_0x24671a){const _0x378f77=_0x2c7837;return _0x1f6484[_0x378f77(0x2822)][_0x378f77(0x5e0)]({'id':_0x24671a['id'],'test':!![]})[_0x378f77(0x15e7)][_0x378f77(0x64a)](function(){const _0x195ead=_0x378f77;_0x331791[_0x195ead(0x1339)]({'title':'ServicenowAccount\x20properly\x20tested','msg':'Connection\x20succeded!'});})[_0x378f77(0x20cd)](function(_0x5962cd){const _0x17287c=_0x378f77;_0x331791[_0x17287c(0x1bd0)]({'title':_0x17287c(0xcd8),'msg':_0x5962cd['data']?_0x5962cd[_0x17287c(0x1c52)][_0x17287c(0x18ca)]?_0x5962cd[_0x17287c(0x1c52)]['message']:JSON[_0x17287c(0x2317)](_0x5962cd[_0x17287c(0x1c52)]):_0x5962cd[_0x17287c(0x2915)]()});});}function _0x18a74e(_0x19ffb8,_0x1a13cc){const _0x2a4455=_0x2c7837,_0x5dbfc0=_0x36c663[_0x2a4455(0x856)]()[_0x2a4455(0x2021)](_0x2a4455(0x1231)+_0x28c606()[_0x2a4455(0xc01)](_0x2a4455(0xd14))+'?')[_0x2a4455(0x33a)](_0x2a4455(0x50b)+(_0x19ffb8[_0x2a4455(0x2494)]||'servicenowAccount')+_0x2a4455(0x26d0)+_0x2a4455(0x4b8))['ariaLabel'](_0x2a4455(0x252c))['targetEvent'](_0x1a13cc)['ok']('OK')['cancel'](_0x2a4455(0x18fd));_0x36c663[_0x2a4455(0xa60)](_0x5dbfc0)['then'](function(){_0x4c283c(_0x19ffb8);},function(){const _0x5e53ca=_0x2a4455;console[_0x5e53ca(0x9b4)](_0x5e53ca(0x18fd));});}let _0x1a8765=!![],_0x523fca=0x1;_0x20df89[_0x2c7837(0xc62)](_0x2c7837(0x1cb9),function(_0x139963,_0x4dcdf5){const _0x14fdb5=_0x2c7837;_0x1a8765?_0x182977(function(){_0x1a8765=![];}):(!_0x4dcdf5&&(_0x523fca=_0x31eb01[_0x14fdb5(0x289a)][_0x14fdb5(0xc72)]),_0x139963!==_0x4dcdf5&&(_0x31eb01['query'][_0x14fdb5(0xc72)]=0x1),!_0x139963&&(_0x31eb01['query'][_0x14fdb5(0xc72)]=_0x523fca),_0x31eb01[_0x14fdb5(0xf10)]());});function _0x38b356(_0x3398ed){const _0x5736cc=_0x2c7837;_0x31eb01[_0x5736cc(0xb80)]=_0x3398ed||{'count':0x0,'rows':[]};}function _0xa3f111(){const _0x2b2962=_0x2c7837;_0x31eb01[_0x2b2962(0x289a)][_0x2b2962(0x24f9)]=(_0x31eb01[_0x2b2962(0x289a)][_0x2b2962(0xc72)]-0x1)*_0x31eb01[_0x2b2962(0x289a)][_0x2b2962(0x25bb)],_0x2d4725[_0x2b2962(0x4de)](_0x2b2962(0x333))?_0x31eb01[_0x2b2962(0x1713)]=_0x1f6484[_0x2b2962(0x2822)]['get'](_0x31eb01['query'],_0x38b356)[_0x2b2962(0x15e7)]:(_0x31eb01[_0x2b2962(0x289a)]['id']=_0x31eb01['userProfile']['id'],_0x31eb01[_0x2b2962(0x289a)][_0x2b2962(0xa21)]=_0x2b2962(0x12b1),_0x31eb01['promise']=_0x1f6484[_0x2b2962(0x16a8)][_0x2b2962(0x2565)](_0x31eb01[_0x2b2962(0x289a)],_0x38b356)['$promise']);}function _0x63a81f(_0x45cb1b,_0x14ff36){const _0x2b77a0=_0x2c7837;_0x36c663['show']({'controller':_0x2b77a0(0x2109),'controllerAs':'vm','templateUrl':_0x45bb0b,'parent':angular[_0x2b77a0(0x1f81)](_0x2021c6[_0x2b77a0(0xb49)]),'targetEvent':_0x45cb1b,'clickOutsideToClose':!![],'locals':{'servicenowAccount':_0x14ff36,'servicenowAccounts':_0x31eb01[_0x2b77a0(0xb80)][_0x2b77a0(0x28b8)],'license':_0x31eb01['license'],'setting':_0x31eb01[_0x2b77a0(0x28d6)],'crudPermissions':_0x31eb01[_0x2b77a0(0x402)]}});}function _0x4c283c(_0x3770bf){const _0xd889e3=_0x2c7837;_0x1f6484[_0xd889e3(0x2822)][_0xd889e3(0xabd)]({'id':_0x3770bf['id']})[_0xd889e3(0x15e7)][_0xd889e3(0x64a)](function(){const _0xba7a4a=_0xd889e3;_0x28c606()[_0xba7a4a(0x21c7)](_0x31eb01[_0xba7a4a(0xb80)][_0xba7a4a(0x28b8)],{'id':_0x3770bf['id']}),_0x31eb01[_0xba7a4a(0xb80)][_0xba7a4a(0xb90)]-=0x1,!_0x31eb01['servicenowAccounts']['rows']['length']&&_0x31eb01[_0xba7a4a(0xf10)](),_0x331791[_0xba7a4a(0x1339)]({'title':_0x28c606()[_0xba7a4a(0xc01)](_0xba7a4a(0x6a1))+_0xba7a4a(0x2502),'msg':_0x3770bf[_0xba7a4a(0x2494)]?_0x3770bf[_0xba7a4a(0x2494)]+_0xba7a4a(0x1fa8):''});})[_0xd889e3(0x20cd)](function(_0x4b062f){const _0xe957e5=_0xd889e3;if(_0x4b062f[_0xe957e5(0x1c52)]&&_0x4b062f[_0xe957e5(0x1c52)][_0xe957e5(0xbae)]&&_0x4b062f[_0xe957e5(0x1c52)][_0xe957e5(0xbae)]['length']){_0x31eb01[_0xe957e5(0xbae)]=_0x4b062f['data'][_0xe957e5(0xbae)]||[{'message':_0x4b062f[_0xe957e5(0x2915)](),'type':_0xe957e5(0x6ed)}];for(let _0x35c759=0x0;_0x35c759<_0x4b062f[_0xe957e5(0x1c52)][_0xe957e5(0xbae)]['length'];_0x35c759++){_0x331791[_0xe957e5(0x1bd0)]({'title':_0x4b062f[_0xe957e5(0x1c52)][_0xe957e5(0xbae)][_0x35c759][_0xe957e5(0x2185)],'msg':_0x4b062f['data'][_0xe957e5(0xbae)][_0x35c759][_0xe957e5(0x18ca)]});}}else _0x331791['error']({'title':_0x4b062f['status']?_0xe957e5(0x575)+_0x4b062f['status']+_0xe957e5(0x21db)+_0x4b062f[_0xe957e5(0x2115)]:_0xe957e5(0x6ed),'msg':_0x4b062f[_0xe957e5(0x1c52)]?JSON[_0xe957e5(0x2317)](_0x4b062f[_0xe957e5(0x1c52)][_0xe957e5(0x18ca)]):_0x4b062f['message']||_0x4b062f[_0xe957e5(0x2915)]()});});}function _0x1eb929(){const _0x2745a5=_0x2c7837,_0x487802=angular[_0x2745a5(0x289e)](_0x31eb01[_0x2745a5(0x1151)]);return _0x31eb01['selectedServicenowAccounts']=[],_0x487802;}function _0x2f5961(_0x45e326){const _0x30f2a2=_0x2c7837,_0x3020b7=_0x36c663['confirm']()['title'](_0x30f2a2(0xf3c))[_0x30f2a2(0x33a)](_0x30f2a2(0x50b)+_0x31eb01[_0x30f2a2(0x1151)][_0x30f2a2(0x1b9e)]+_0x30f2a2(0x163e)+_0x30f2a2(0x4b8))[_0x30f2a2(0x213e)](_0x30f2a2(0x110b))[_0x30f2a2(0x2283)](_0x45e326)['ok']('OK')[_0x30f2a2(0x101a)](_0x30f2a2(0x18fd));_0x36c663[_0x30f2a2(0xa60)](_0x3020b7)[_0x30f2a2(0x64a)](function(){const _0x1bf470=_0x30f2a2;_0x31eb01[_0x1bf470(0x1151)]['forEach'](function(_0x2c8460){_0x4c283c(_0x2c8460);}),_0x31eb01[_0x1bf470(0x1151)]=[];});}function _0x1f1fe6(){const _0x461eab=_0x2c7837;_0x31eb01[_0x461eab(0x1151)]=[];}function _0x21152c(){const _0x573b63=_0x2c7837;_0x31eb01['selectedServicenowAccounts']=_0x31eb01[_0x573b63(0xb80)][_0x573b63(0x28b8)];}}const _0x15c4e4=_0x176f06;;_0x272b90['$inject']=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x12cb),_0x49a1e3(0x28f2),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x272b90(_0x2f8f87,_0x3cd767,_0x74becd,_0x2dd03b,_0xfc4309,_0x10dc4c,_0x4468ef,_0x53be64,_0x43ca3b,_0x3462a2,_0x5bfc44,_0x31e22e,_0x5e418b,_0x5218ac){const _0x474a2b=_0x49a1e3,_0x450e12=this;_0x450e12['currentUser']=_0x5bfc44['getCurrentUser'](),_0x450e12[_0x474a2b(0xbae)]=[],_0x450e12['setting']=_0x5e418b,_0x450e12['license']=_0x31e22e,_0x450e12['crudPermissions']=_0x5218ac,_0x450e12[_0x474a2b(0x6c2)]={},_0x450e12[_0x474a2b(0xccc)]=_0x450e12[_0x474a2b(0x28d6)]&&_0x450e12[_0x474a2b(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x450e12[_0x474a2b(0x2021)]=_0x474a2b(0x22a5),_0x450e12['sugarcrmAccount']=angular[_0x474a2b(0x289e)](_0x43ca3b),_0x450e12[_0x474a2b(0x12cb)]=_0x53be64,_0x450e12['newSugarcrmAccount']=![];!_0x450e12['sugarcrmAccount']&&(_0x450e12[_0x474a2b(0x28f2)]={'serverUrl':_0x74becd[_0x474a2b(0x48e)]()+_0x474a2b(0xe1f)+_0x74becd['host']()+(_0x74becd[_0x474a2b(0x23f2)]()?':'+_0x74becd['port']():'')},_0x450e12[_0x474a2b(0x2021)]=_0x474a2b(0xa05),_0x450e12['newSugarcrmAccount']=!![]);_0x450e12[_0x474a2b(0x1511)]=_0x3649c1,_0x450e12[_0x474a2b(0x1ab8)]=_0x5ecc2a,_0x450e12[_0x474a2b(0x1004)]=_0x31ef4d,_0x450e12['getDateFromString']=_0x4a8955,_0x450e12[_0x474a2b(0x16cb)]=_0x255e18;function _0x3649c1(){const _0x289a52=_0x474a2b;_0x450e12['errors']=[],_0x3462a2[_0x289a52(0xdaa)]['save'](_0x450e12['sugarcrmAccount'])[_0x289a52(0x15e7)][_0x289a52(0x64a)](function(_0x36a1fb){const _0x41cabd=_0x289a52;_0x450e12[_0x41cabd(0x12cb)]['unshift'](_0x36a1fb['toJSON']()),_0x4468ef['success']({'title':_0x41cabd(0xf64),'msg':_0x450e12[_0x41cabd(0x28f2)][_0x41cabd(0x2494)]?_0x450e12['sugarcrmAccount'][_0x41cabd(0x2494)]+'\x20has\x20been\x20created!':''}),_0x255e18(_0x36a1fb);})['catch'](function(_0x34c75c){const _0x321b62=_0x289a52;if(_0x34c75c[_0x321b62(0x1c52)]&&_0x34c75c[_0x321b62(0x1c52)][_0x321b62(0xbae)]&&_0x34c75c['data'][_0x321b62(0xbae)][_0x321b62(0x1b9e)]){_0x450e12[_0x321b62(0xbae)]=_0x34c75c[_0x321b62(0x1c52)][_0x321b62(0xbae)]||[{'message':_0x34c75c[_0x321b62(0x2915)](),'type':_0x321b62(0x116d)}];for(let _0x58e92f=0x0;_0x58e92f<_0x34c75c[_0x321b62(0x1c52)][_0x321b62(0xbae)]['length'];_0x58e92f+=0x1){_0x4468ef['error']({'title':_0x34c75c[_0x321b62(0x1c52)]['errors'][_0x58e92f]['type'],'msg':_0x34c75c[_0x321b62(0x1c52)][_0x321b62(0xbae)][_0x58e92f][_0x321b62(0x18ca)]});}}else _0x4468ef[_0x321b62(0x1bd0)]({'title':_0x34c75c[_0x321b62(0x10b3)]?_0x321b62(0x575)+_0x34c75c[_0x321b62(0x10b3)]+_0x321b62(0x21db)+_0x34c75c[_0x321b62(0x2115)]:_0x321b62(0x116d),'msg':_0x34c75c[_0x321b62(0x1c52)]?JSON[_0x321b62(0x2317)](_0x34c75c[_0x321b62(0x1c52)]['message']):_0x34c75c[_0x321b62(0x2915)]()});});}function _0x5ecc2a(){const _0x17f853=_0x474a2b;_0x450e12['errors']=[],_0x3462a2[_0x17f853(0xdaa)][_0x17f853(0x2603)]({'id':_0x450e12['sugarcrmAccount']['id']},_0x450e12['sugarcrmAccount'])[_0x17f853(0x15e7)][_0x17f853(0x64a)](function(_0x31c147){const _0x25c272=_0x17f853,_0xb06058=_0x28c606()['find'](_0x450e12[_0x25c272(0x12cb)],{'id':_0x31c147['id']});_0xb06058&&_0x28c606()[_0x25c272(0x14fe)](_0xb06058,_0x28c606()['pick'](_0x31c147[_0x25c272(0x14f8)](),_0x28c606()[_0x25c272(0x1ec6)](_0xb06058))),_0x4468ef[_0x25c272(0x1339)]({'title':_0x25c272(0x1dc0),'msg':_0x450e12[_0x25c272(0x28f2)][_0x25c272(0x2494)]?_0x450e12[_0x25c272(0x28f2)][_0x25c272(0x2494)]+'\x20has\x20been\x20saved!':''}),_0x255e18(_0x31c147);})[_0x17f853(0x20cd)](function(_0x30d0df){const _0x4b3e13=_0x17f853;if(_0x30d0df[_0x4b3e13(0x1c52)]&&_0x30d0df[_0x4b3e13(0x1c52)][_0x4b3e13(0xbae)]&&_0x30d0df['data']['errors'][_0x4b3e13(0x1b9e)]){_0x450e12[_0x4b3e13(0xbae)]=_0x30d0df[_0x4b3e13(0x1c52)][_0x4b3e13(0xbae)]||[{'message':_0x30d0df[_0x4b3e13(0x2915)](),'type':_0x4b3e13(0x193a)}];for(let _0x8cbd77=0x0;_0x8cbd77<_0x30d0df[_0x4b3e13(0x1c52)][_0x4b3e13(0xbae)][_0x4b3e13(0x1b9e)];_0x8cbd77++){_0x4468ef[_0x4b3e13(0x1bd0)]({'title':_0x30d0df[_0x4b3e13(0x1c52)][_0x4b3e13(0xbae)][_0x8cbd77]['type'],'msg':_0x30d0df[_0x4b3e13(0x1c52)]['errors'][_0x8cbd77][_0x4b3e13(0x18ca)]});}}else _0x4468ef[_0x4b3e13(0x1bd0)]({'title':_0x30d0df[_0x4b3e13(0x10b3)]?_0x4b3e13(0x575)+_0x30d0df[_0x4b3e13(0x10b3)]+'\x20-\x20'+_0x30d0df[_0x4b3e13(0x2115)]:_0x4b3e13(0x193a),'msg':_0x30d0df[_0x4b3e13(0x1c52)]?JSON[_0x4b3e13(0x2317)](_0x30d0df[_0x4b3e13(0x1c52)][_0x4b3e13(0x18ca)]):_0x30d0df[_0x4b3e13(0x2915)]()});});}function _0x31ef4d(_0x108170){const _0xbd8c38=_0x474a2b;_0x450e12['errors']=[];const _0x5d9af3=_0x2dd03b[_0xbd8c38(0x856)]()['title'](_0xbd8c38(0x103a))[_0xbd8c38(0x12b8)](_0xbd8c38(0xf83))[_0xbd8c38(0x213e)](_0xbd8c38(0xf61))['ok'](_0xbd8c38(0x2664))[_0xbd8c38(0x101a)]('Cancel')['targetEvent'](_0x108170);_0x2dd03b[_0xbd8c38(0xa60)](_0x5d9af3)[_0xbd8c38(0x64a)](function(){const _0x18d745=_0xbd8c38;_0x3462a2[_0x18d745(0xdaa)][_0x18d745(0xabd)]({'id':_0x450e12['sugarcrmAccount']['id']})[_0x18d745(0x15e7)][_0x18d745(0x64a)](function(){const _0x3fe98c=_0x18d745;_0x28c606()[_0x3fe98c(0x21c7)](_0x450e12[_0x3fe98c(0x12cb)],{'id':_0x450e12[_0x3fe98c(0x28f2)]['id']}),_0x4468ef[_0x3fe98c(0x1339)]({'title':'SugarcrmAccount\x20properly\x20deleted!','msg':(_0x450e12[_0x3fe98c(0x28f2)][_0x3fe98c(0x2494)]||_0x3fe98c(0x28f2))+_0x3fe98c(0x1fa8)}),_0x255e18(_0x450e12[_0x3fe98c(0x28f2)]);})[_0x18d745(0x20cd)](function(_0x131235){const _0x18be43=_0x18d745;if(_0x131235[_0x18be43(0x1c52)]&&_0x131235[_0x18be43(0x1c52)]['errors']&&_0x131235['data'][_0x18be43(0xbae)][_0x18be43(0x1b9e)]){_0x450e12[_0x18be43(0xbae)]=_0x131235[_0x18be43(0x1c52)][_0x18be43(0xbae)]||[{'message':_0x131235['toString'](),'type':_0x18be43(0x2532)}];for(let _0xd5116=0x0;_0xd5116<_0x131235[_0x18be43(0x1c52)][_0x18be43(0xbae)][_0x18be43(0x1b9e)];_0xd5116++){_0x4468ef[_0x18be43(0x1bd0)]({'title':_0x131235['data'][_0x18be43(0xbae)][_0xd5116]['type'],'msg':_0x131235[_0x18be43(0x1c52)]['errors'][_0xd5116][_0x18be43(0x18ca)]});}}else _0x4468ef[_0x18be43(0x1bd0)]({'title':_0x131235['status']?_0x18be43(0x575)+_0x131235['status']+_0x18be43(0x21db)+_0x131235[_0x18be43(0x2115)]:_0x18be43(0x2532),'msg':_0x131235[_0x18be43(0x1c52)]?JSON['stringify'](_0x131235[_0x18be43(0x1c52)][_0x18be43(0x18ca)]):_0x131235['message']||_0x131235[_0x18be43(0x2915)]()});});},function(){});}function _0x4a8955(_0x2d8ced){return _0x2d8ced===null?undefined:new Date(_0x2d8ced);}function _0x255e18(_0x43a0a3){const _0x688d37=_0x474a2b;_0x2dd03b[_0x688d37(0x268e)](_0x43a0a3);}}const _0x4681a2=_0x272b90;;const _0x379fa8=_0x2e4a48['p']+_0x49a1e3(0x192f);;const _0x2a9ce3=_0x2e4a48['p']+_0x49a1e3(0x17e4);;_0x135b74[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf)];function _0x135b74(_0x181553,_0x28028d,_0x34fd88,_0x43aedd,_0x3d2dab){const _0x547543=_0x49a1e3,_0xf17164=this;_0xf17164[_0x547543(0x1d3d)]=_0x3d2dab[_0x547543(0x808)](),_0xf17164[_0x547543(0x28f2)]={},_0xf17164[_0x547543(0x2533)]={},_0xf17164[_0x547543(0x23a8)]=[],_0xf17164[_0x547543(0x1ea7)]=-0x1,_0xf17164['crudPermissions'],_0xf17164[_0x547543(0x2354)]=_0x377e2c,_0xf17164['getSugarcrmConfiguration']=_0x14378d,_0xf17164['createOrEditSugarcrmConfiguration']=_0x1ee296,_0xf17164[_0x547543(0x2338)]=_0x5f4d9b;function _0x377e2c(_0x59c723,_0x34aa47){const _0x1570c0=_0x547543;_0xf17164[_0x1570c0(0x28f2)]=_0x59c723,_0xf17164['crudPermissions']=typeof _0x34aa47!=='undefined'?_0x34aa47:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x34fd88[_0x1570c0(0xdaa)][_0x1570c0(0x340)]({'id':_0xf17164[_0x1570c0(0x28f2)]['id'],'sort':_0x1570c0(0x260c)})[_0x1570c0(0x15e7)][_0x1570c0(0x64a)](function(_0xa37584){const _0x3ae817=_0x1570c0;return _0xf17164[_0x3ae817(0x23a8)]=_0xa37584['rows']?_0xa37584[_0x3ae817(0x28b8)]:[],_0xf17164['configurations']['length']&&_0xf17164['getSugarcrmConfiguration'](0x0),_0x34fd88['variable']['get']({'nolimit':!![],'sort':_0x3ae817(0x2494)})[_0x3ae817(0x15e7)];})[_0x1570c0(0x64a)](function(_0x412ad2){const _0x170596=_0x1570c0;_0xf17164['variables']=_0x412ad2[_0x170596(0x28b8)]?_0x412ad2[_0x170596(0x28b8)]:[],_0xf17164[_0x170596(0x2685)]=_0x28c606()[_0x170596(0x161e)](_0xf17164[_0x170596(0x145c)],'id');})[_0x1570c0(0x20cd)](function(_0x149444){const _0x47b661=_0x1570c0;_0x43aedd[_0x47b661(0x1bd0)]({'title':_0x149444[_0x47b661(0x10b3)]?'API:'+_0x149444[_0x47b661(0x10b3)]+_0x47b661(0x21db)+_0x149444[_0x47b661(0x2115)]:_0x47b661(0x1bdd),'msg':_0x149444['data']?JSON[_0x47b661(0x2317)](_0x149444[_0x47b661(0x1c52)]):_0x149444[_0x47b661(0x2915)]()});});}function _0x14378d(_0x346583){const _0x1a053b=_0x547543;_0xf17164[_0x1a053b(0x2533)]=_0xf17164['configurations'][_0x346583],_0xf17164[_0x1a053b(0x1ea7)]=_0x346583,_0x34fd88[_0x1a053b(0xb5d)][_0x1a053b(0x241f)]({'id':_0xf17164[_0x1a053b(0x2533)]['id']})[_0x1a053b(0x15e7)]['then'](function(_0x49fea0){const _0x11111d=_0x1a053b;return _0xf17164[_0x11111d(0x29b)]=_0x49fea0[_0x11111d(0x28b8)]?_0x49fea0[_0x11111d(0x28b8)]:[],_0x34fd88['intSugarcrmConfiguration'][_0x11111d(0x1e33)]({'id':_0xf17164['sugarcrmConfiguration']['id']})[_0x11111d(0x15e7)];})[_0x1a053b(0x64a)](function(_0x47d158){const _0x4109a0=_0x1a053b;return _0xf17164['descriptions']=_0x47d158['rows']?_0x47d158[_0x4109a0(0x28b8)]:[],_0x34fd88[_0x4109a0(0xb5d)][_0x4109a0(0x5e0)]({'id':_0xf17164[_0x4109a0(0x2533)]['id']})[_0x4109a0(0x15e7)];})['then'](function(_0x3b5999){const _0x8d9235=_0x1a053b;_0xf17164['fields']=_0x3b5999[_0x8d9235(0x28b8)]?_0x3b5999[_0x8d9235(0x28b8)]:[];})[_0x1a053b(0x20cd)](function(_0x3250a1){const _0xe6a450=_0x1a053b;_0x43aedd['error']({'title':_0x3250a1['status']?_0xe6a450(0x575)+_0x3250a1[_0xe6a450(0x10b3)]+'\x20-\x20'+_0x3250a1[_0xe6a450(0x2115)]:_0xe6a450(0x15c1),'msg':_0x3250a1[_0xe6a450(0x1c52)]?JSON['stringify'](_0x3250a1[_0xe6a450(0x1c52)]):_0x3250a1[_0xe6a450(0x2915)]()});});}function _0x1ee296(_0x508730,_0x58b75f){const _0x594639=_0x547543;_0x181553[_0x594639(0xa60)]({'controller':_0x594639(0x2553),'controllerAs':'vm','templateUrl':_0x379fa8,'parent':angular['element'](_0x28028d[_0x594639(0xb49)]),'targetEvent':_0x508730,'clickOutsideToClose':!![],'locals':{'sugarcrmConfiguration':_0x58b75f,'configurations':_0xf17164[_0x594639(0x23a8)],'license':null,'setting':null,'crudPermissions':_0xf17164[_0x594639(0x402)]}})[_0x594639(0x988)](function(){const _0x507db4=_0x594639;_0xf17164[_0x507db4(0x8cd)](0x0);});}function _0x5f4d9b(_0x3fb112,_0x1ddb39){const _0x541be5=_0x547543,_0xc046bf=_0x181553[_0x541be5(0x856)]()[_0x541be5(0x2021)](_0x541be5(0x2b1))[_0x541be5(0x33a)](_0x541be5(0x50b)+(_0x1ddb39['name']||'sugarcrmConfiguration')+_0x541be5(0x26d0)+_0x541be5(0x4b8))[_0x541be5(0x213e)](_0x541be5(0x21e7))[_0x541be5(0x2283)](_0x3fb112)['ok']('OK')[_0x541be5(0x101a)]('CANCEL');_0x181553[_0x541be5(0xa60)](_0xc046bf)['then'](function(){const _0x2a2945=_0x541be5;_0x34fd88[_0x2a2945(0xb5d)][_0x2a2945(0xabd)]({'id':_0x1ddb39['id']})[_0x2a2945(0x15e7)][_0x2a2945(0x64a)](function(){const _0x4ee40f=_0x2a2945;_0x28c606()[_0x4ee40f(0x21c7)](_0xf17164['configurations'],{'id':_0x1ddb39['id']}),_0x43aedd[_0x4ee40f(0x1339)]({'title':_0x4ee40f(0x27df),'msg':_0x1ddb39[_0x4ee40f(0x2494)]?_0x1ddb39[_0x4ee40f(0x2494)]+_0x4ee40f(0x1fa8):''});})[_0x2a2945(0x20cd)](function(_0x2d6ace){const _0x565e3c=_0x2a2945;_0x43aedd[_0x565e3c(0x1bd0)]({'title':_0x2d6ace['status']?_0x565e3c(0x575)+_0x2d6ace[_0x565e3c(0x10b3)]+_0x565e3c(0x21db)+_0x2d6ace[_0x565e3c(0x2115)]:_0x565e3c(0x2925),'msg':_0x2d6ace['data']?JSON[_0x565e3c(0x2317)](_0x2d6ace[_0x565e3c(0x1c52)]):_0x2d6ace[_0x565e3c(0x2915)]()});})['finally'](function(){_0xf17164['getSugarcrmConfiguration'](0x0);});},function(){const _0x45b0ac=_0x541be5;console[_0x45b0ac(0x9b4)](_0x45b0ac(0x18fd));});}_0xf17164['selectedSubjects']=[],_0xf17164[_0x547543(0x22b1)]=_0x5f3a0e,_0xf17164[_0x547543(0xa6a)]=_0x573365,_0xf17164['deleteSelectedSubjects']=_0x47d0cf;function _0x5f3a0e(_0x6ab7c,_0x10f744){const _0x4cd104=_0x547543;_0x181553[_0x4cd104(0xa60)]({'controller':_0x4cd104(0x21f),'controllerAs':'vm','templateUrl':_0x2a9ce3,'parent':angular['element'](_0x28028d[_0x4cd104(0xb49)]),'targetEvent':_0x6ab7c,'clickOutsideToClose':!![],'locals':{'type':_0x4cd104(0x25bc),'item':_0x10f744,'items':_0xf17164[_0x4cd104(0x29b)],'configuration':_0xf17164[_0x4cd104(0x2533)],'account':_0xf17164['sugarcrmAccount'],'license':null,'setting':null,'crudPermissions':_0xf17164[_0x4cd104(0x402)]}});}function _0x249d87(_0x86c4ec){const _0x345fc6=_0x547543;_0x34fd88['intSugarcrmField']['delete']({'id':_0x86c4ec['id']})[_0x345fc6(0x15e7)][_0x345fc6(0x64a)](function(){const _0x2b573f=_0x345fc6;_0x28c606()[_0x2b573f(0x21c7)](_0xf17164[_0x2b573f(0x29b)],{'id':_0x86c4ec['id']}),_0x43aedd[_0x2b573f(0x1339)]({'title':'Subject\x20deleted!','msg':'Subject\x20has\x20been\x20deleted!'});})[_0x345fc6(0x20cd)](function(_0x42a51c){const _0xed96e4=_0x345fc6;_0x43aedd[_0xed96e4(0x1bd0)]({'title':_0x42a51c[_0xed96e4(0x10b3)]?_0xed96e4(0x575)+_0x42a51c[_0xed96e4(0x10b3)]+_0xed96e4(0x21db)+_0x42a51c['statusText']:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x42a51c[_0xed96e4(0x1c52)]?JSON[_0xed96e4(0x2317)](_0x42a51c[_0xed96e4(0x1c52)]):_0x42a51c[_0xed96e4(0x2915)]()});});}function _0x573365(_0x472f52,_0x4943e6){const _0x1659b6=_0x547543,_0x17c3b0=_0x181553[_0x1659b6(0x856)]()[_0x1659b6(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0x1659b6(0x33a)](_0x1659b6(0x1e6a)+'\x20will\x20be\x20deleted.')[_0x1659b6(0x213e)]('delete\x20subject')[_0x1659b6(0x2283)](_0x472f52)['ok']('OK')[_0x1659b6(0x101a)](_0x1659b6(0x18fd));_0x181553[_0x1659b6(0xa60)](_0x17c3b0)['then'](function(){_0x249d87(_0x4943e6);},function(){const _0x308106=_0x1659b6;console[_0x308106(0x9b4)](_0x308106(0x18fd));});}function _0x47d0cf(_0x212bd7){const _0x2e51c7=_0x547543,_0x4ac8bb=_0x181553[_0x2e51c7(0x856)]()[_0x2e51c7(0x2021)](_0x2e51c7(0x1cb4))['htmlContent'](_0x2e51c7(0x50b)+_0xf17164[_0x2e51c7(0x2639)]['length']+_0x2e51c7(0x163e)+_0x2e51c7(0x4b8))[_0x2e51c7(0x213e)]('delete\x20subjects')[_0x2e51c7(0x2283)](_0x212bd7)['ok']('OK')['cancel']('CANCEL');_0x181553[_0x2e51c7(0xa60)](_0x4ac8bb)[_0x2e51c7(0x64a)](function(){const _0x3f630b=_0x2e51c7;_0xf17164[_0x3f630b(0x2639)]['forEach'](function(_0x2e192d){_0x249d87(_0x2e192d);}),_0xf17164[_0x3f630b(0x2639)]=[];});}_0xf17164['selectedDescriptions']=[],_0xf17164[_0x547543(0x3a2)]=_0x36dfef,_0xf17164[_0x547543(0x183a)]=_0x5288d9,_0xf17164[_0x547543(0x1efc)]=_0xc189c8;function _0x36dfef(_0x563b6f,_0x155dea){const _0x34ab5a=_0x547543;_0x181553[_0x34ab5a(0xa60)]({'controller':'CreateOrEditSugarcrmAccountItemDialogController','controllerAs':'vm','templateUrl':_0x2a9ce3,'parent':angular[_0x34ab5a(0x1f81)](_0x28028d[_0x34ab5a(0xb49)]),'targetEvent':_0x563b6f,'clickOutsideToClose':!![],'locals':{'type':_0x34ab5a(0x23c3),'item':_0x155dea,'items':_0xf17164[_0x34ab5a(0x24b6)],'configuration':_0xf17164[_0x34ab5a(0x2533)],'account':_0xf17164[_0x34ab5a(0x28f2)],'license':null,'setting':null,'crudPermissions':_0xf17164['crudPermissions']}});}function _0x51d449(_0x3e0e68){const _0x135fba=_0x547543;_0x34fd88[_0x135fba(0x651)][_0x135fba(0xabd)]({'id':_0x3e0e68['id']})['$promise']['then'](function(){const _0x450156=_0x135fba;_0x28c606()[_0x450156(0x21c7)](_0xf17164[_0x450156(0x24b6)],{'id':_0x3e0e68['id']}),_0x43aedd[_0x450156(0x1339)]({'title':_0x450156(0x166a),'msg':'Description\x20has\x20been\x20deleted!'});})[_0x135fba(0x20cd)](function(_0x16624b){const _0x53fadc=_0x135fba;_0x43aedd[_0x53fadc(0x1bd0)]({'title':_0x16624b[_0x53fadc(0x10b3)]?'API:'+_0x16624b[_0x53fadc(0x10b3)]+_0x53fadc(0x21db)+_0x16624b['statusText']:_0x53fadc(0x12a9),'msg':_0x16624b['data']?JSON[_0x53fadc(0x2317)](_0x16624b[_0x53fadc(0x1c52)]):_0x16624b[_0x53fadc(0x2915)]()});});}function _0x5288d9(_0x33247f,_0x42cd7c){const _0x4d8551=_0x547543,_0x5f056a=_0x181553['confirm']()[_0x4d8551(0x2021)](_0x4d8551(0x80e))[_0x4d8551(0x33a)](_0x4d8551(0x1bb6)+_0x4d8551(0x4b8))[_0x4d8551(0x213e)](_0x4d8551(0x748))['targetEvent'](_0x33247f)['ok']('OK')[_0x4d8551(0x101a)](_0x4d8551(0x18fd));_0x181553[_0x4d8551(0xa60)](_0x5f056a)[_0x4d8551(0x64a)](function(){_0x51d449(_0x42cd7c);},function(){const _0x236f04=_0x4d8551;console[_0x236f04(0x9b4)](_0x236f04(0x18fd));});}function _0xc189c8(_0x3ca045){const _0x28fb4b=_0x547543,_0x2f1715=_0x181553[_0x28fb4b(0x856)]()['title'](_0x28fb4b(0xbe4))[_0x28fb4b(0x33a)](_0x28fb4b(0x50b)+_0xf17164['selectedDescriptions'][_0x28fb4b(0x1b9e)]+_0x28fb4b(0x163e)+_0x28fb4b(0x4b8))[_0x28fb4b(0x213e)](_0x28fb4b(0x531))['targetEvent'](_0x3ca045)['ok']('OK')[_0x28fb4b(0x101a)](_0x28fb4b(0x18fd));_0x181553[_0x28fb4b(0xa60)](_0x2f1715)['then'](function(){const _0x1e2983=_0x28fb4b;_0xf17164['selectedDescriptions'][_0x1e2983(0x1397)](function(_0x30d7f4){_0x51d449(_0x30d7f4);}),_0xf17164['selectedDescriptions']=[];});}_0xf17164[_0x547543(0xa3a)]=[],_0xf17164['createOrEditField']=_0x5cf6ac,_0xf17164[_0x547543(0x1436)]=_0x131559,_0xf17164[_0x547543(0x1e89)]=_0x4d46cf;function _0x5cf6ac(_0x1ff798,_0x19a7a7){const _0x30af6a=_0x547543;_0x181553[_0x30af6a(0xa60)]({'controller':_0x30af6a(0x21f),'controllerAs':'vm','templateUrl':_0x2a9ce3,'parent':angular[_0x30af6a(0x1f81)](_0x28028d['body']),'targetEvent':_0x1ff798,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x19a7a7,'items':_0xf17164[_0x30af6a(0xf26)],'configuration':_0xf17164[_0x30af6a(0x2533)],'account':_0xf17164['sugarcrmAccount'],'license':null,'setting':null,'crudPermissions':_0xf17164[_0x30af6a(0x402)]}});}function _0x4caada(_0x2ab13f){const _0x34ec3f=_0x547543;_0x34fd88[_0x34ec3f(0x651)][_0x34ec3f(0xabd)]({'id':_0x2ab13f['id']})['$promise'][_0x34ec3f(0x64a)](function(){const _0x25bc65=_0x34ec3f;_0x28c606()[_0x25bc65(0x21c7)](_0xf17164[_0x25bc65(0xf26)],{'id':_0x2ab13f['id']}),_0x43aedd[_0x25bc65(0x1339)]({'title':_0x25bc65(0x13e7),'msg':_0x25bc65(0x14b)});})['catch'](function(_0x1ac52c){const _0x461bca=_0x34ec3f;_0x43aedd['error']({'title':_0x1ac52c['status']?_0x461bca(0x575)+_0x1ac52c['status']+_0x461bca(0x21db)+_0x1ac52c[_0x461bca(0x2115)]:_0x461bca(0x12a9),'msg':_0x1ac52c[_0x461bca(0x1c52)]?JSON['stringify'](_0x1ac52c[_0x461bca(0x1c52)]):_0x1ac52c['toString']()});});}function _0x131559(_0x186aa6,_0xcffe8e){const _0x55a864=_0x547543,_0x1abf89=_0x181553[_0x55a864(0x856)]()[_0x55a864(0x2021)](_0x55a864(0x865))[_0x55a864(0x33a)](_0x55a864(0x1a56)+_0x55a864(0x4b8))[_0x55a864(0x213e)](_0x55a864(0x22d7))['targetEvent'](_0x186aa6)['ok']('OK')[_0x55a864(0x101a)](_0x55a864(0x18fd));_0x181553[_0x55a864(0xa60)](_0x1abf89)[_0x55a864(0x64a)](function(){_0x4caada(_0xcffe8e);},function(){const _0x4839f9=_0x55a864;console['log'](_0x4839f9(0x18fd));});}function _0x4d46cf(_0x309d01){const _0x4fdb5f=_0x547543,_0x52f624=_0x181553['confirm']()[_0x4fdb5f(0x2021)](_0x4fdb5f(0x17bf))[_0x4fdb5f(0x33a)](_0x4fdb5f(0x50b)+_0xf17164[_0x4fdb5f(0xa3a)]['length']+_0x4fdb5f(0x163e)+_0x4fdb5f(0x4b8))[_0x4fdb5f(0x213e)]('delete\x20fields')[_0x4fdb5f(0x2283)](_0x309d01)['ok']('OK')['cancel'](_0x4fdb5f(0x18fd));_0x181553[_0x4fdb5f(0xa60)](_0x52f624)['then'](function(){const _0x2c8d36=_0x4fdb5f;_0xf17164[_0x2c8d36(0xa3a)][_0x2c8d36(0x1397)](function(_0x51ba14){_0x4caada(_0x51ba14);}),_0xf17164[_0x2c8d36(0xa3a)]=[];});}}const _0x58a92e=_0x135b74;;_0x3a701e[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog','$q',_0x49a1e3(0x298c),'toasty',_0x49a1e3(0x23a8),_0x49a1e3(0x2533),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x3a701e(_0x40cfbf,_0x503d08,_0x80b4c8,_0x245421,_0x1a274a,_0x564203,_0x4a0d3a,_0x1c30eb,_0x39e26c,_0xf1bc80,_0x3a2aee,_0x3e6ff3,_0x4cfe45,_0x27032f){const _0x3d9224=_0x49a1e3,_0x9c5dd5=this;_0x9c5dd5['currentUser']=_0x3a2aee['getCurrentUser'](),_0x9c5dd5[_0x3d9224(0xbae)]=[],_0x9c5dd5[_0x3d9224(0x28d6)]=_0x4cfe45,_0x9c5dd5['license']=_0x3e6ff3,_0x9c5dd5[_0x3d9224(0x402)]=_0x27032f,_0x9c5dd5[_0x3d9224(0x6c2)]={},_0x9c5dd5[_0x3d9224(0xccc)]=_0x9c5dd5[_0x3d9224(0x28d6)]&&_0x9c5dd5[_0x3d9224(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x9c5dd5[_0x3d9224(0x2021)]='INTEGRATIONS.EDIT_SUGARCRMCONFIGURATION',_0x9c5dd5[_0x3d9224(0x2533)]=angular['copy'](_0x39e26c),_0x9c5dd5[_0x3d9224(0x23a8)]=_0x1c30eb,_0x9c5dd5[_0x3d9224(0x24b3)]=![];!_0x9c5dd5[_0x3d9224(0x2533)]&&(_0x9c5dd5[_0x3d9224(0x2533)]={'channel':'voice','type':_0x3d9224(0x12a4)},_0x9c5dd5['title']=_0x3d9224(0x112c),_0x9c5dd5[_0x3d9224(0x24b3)]=!![]);_0x9c5dd5[_0x3d9224(0x1558)]=_0xb9c331,_0x9c5dd5['saveSugarcrmConfiguration']=_0x371ff6,_0x9c5dd5[_0x3d9224(0x2338)]=_0x213913,_0x9c5dd5[_0x3d9224(0x1605)]=_0x438f6c,_0x9c5dd5[_0x3d9224(0x16cb)]=_0x583a0b;function _0xb9c331(){const _0x383dae=_0x3d9224;_0x9c5dd5[_0x383dae(0xbae)]=[],_0xf1bc80[_0x383dae(0xdaa)][_0x383dae(0x1d2d)]({'id':_0x503d08[_0x383dae(0x1b48)]['id']},_0x9c5dd5[_0x383dae(0x2533)])['$promise'][_0x383dae(0x64a)](function(_0x379c75){const _0xc72f37=_0x383dae;_0x9c5dd5[_0xc72f37(0x23a8)][_0xc72f37(0x1891)](_0x379c75[_0xc72f37(0x14f8)]()),_0x4a0d3a['success']({'title':_0xc72f37(0x372),'msg':_0x9c5dd5[_0xc72f37(0x2533)][_0xc72f37(0x2494)]?_0x9c5dd5['sugarcrmConfiguration'][_0xc72f37(0x2494)]+_0xc72f37(0x258d):''}),_0x583a0b(_0x379c75);})[_0x383dae(0x20cd)](function(_0x5d8313){const _0x4983bb=_0x383dae;if(_0x5d8313[_0x4983bb(0x1c52)]&&_0x5d8313[_0x4983bb(0x1c52)]['errors']&&_0x5d8313[_0x4983bb(0x1c52)]['errors'][_0x4983bb(0x1b9e)]){_0x9c5dd5[_0x4983bb(0xbae)]=_0x5d8313[_0x4983bb(0x1c52)]['errors']||[{'message':_0x5d8313[_0x4983bb(0x2915)](),'type':_0x4983bb(0x1f09)}];for(let _0x1b992d=0x0;_0x1b992d<_0x5d8313[_0x4983bb(0x1c52)][_0x4983bb(0xbae)][_0x4983bb(0x1b9e)];_0x1b992d+=0x1){_0x4a0d3a['error']({'title':_0x5d8313[_0x4983bb(0x1c52)][_0x4983bb(0xbae)][_0x1b992d][_0x4983bb(0x2185)],'msg':_0x5d8313[_0x4983bb(0x1c52)][_0x4983bb(0xbae)][_0x1b992d]['message']});}}else _0x4a0d3a[_0x4983bb(0x1bd0)]({'title':_0x5d8313['status']?_0x4983bb(0x575)+_0x5d8313[_0x4983bb(0x10b3)]+'\x20-\x20'+_0x5d8313[_0x4983bb(0x2115)]:_0x4983bb(0x1f09),'msg':_0x5d8313[_0x4983bb(0x1c52)]?JSON['stringify'](_0x5d8313[_0x4983bb(0x1c52)][_0x4983bb(0x18ca)]):_0x5d8313[_0x4983bb(0x2915)]()});});}function _0x371ff6(){const _0x27b3ff=_0x3d9224;_0x9c5dd5[_0x27b3ff(0xbae)]=[],_0xf1bc80[_0x27b3ff(0xb5d)][_0x27b3ff(0x2603)]({'id':_0x9c5dd5[_0x27b3ff(0x2533)]['id']},_0x9c5dd5[_0x27b3ff(0x2533)])[_0x27b3ff(0x15e7)]['then'](function(_0x47f1cf){const _0x10f1f1=_0x27b3ff,_0x427617=_0x28c606()[_0x10f1f1(0x27bc)](_0x9c5dd5[_0x10f1f1(0x23a8)],{'id':_0x47f1cf['id']});_0x427617&&_0x28c606()[_0x10f1f1(0x14fe)](_0x427617,_0x28c606()['pick'](_0x47f1cf[_0x10f1f1(0x14f8)](),_0x28c606()[_0x10f1f1(0x1ec6)](_0x427617))),_0x4a0d3a[_0x10f1f1(0x1339)]({'title':_0x10f1f1(0x2732),'msg':_0x9c5dd5[_0x10f1f1(0x2533)][_0x10f1f1(0x2494)]?_0x9c5dd5[_0x10f1f1(0x2533)][_0x10f1f1(0x2494)]+_0x10f1f1(0x271):''}),_0x583a0b(_0x47f1cf);})[_0x27b3ff(0x20cd)](function(_0x2b5384){const _0x1bb56d=_0x27b3ff;if(_0x2b5384[_0x1bb56d(0x1c52)]&&_0x2b5384[_0x1bb56d(0x1c52)][_0x1bb56d(0xbae)]&&_0x2b5384[_0x1bb56d(0x1c52)][_0x1bb56d(0xbae)]['length']){_0x9c5dd5[_0x1bb56d(0xbae)]=_0x2b5384[_0x1bb56d(0x1c52)][_0x1bb56d(0xbae)]||[{'message':_0x2b5384['toString'](),'type':_0x1bb56d(0x289f)}];for(let _0x367892=0x0;_0x367892<_0x2b5384[_0x1bb56d(0x1c52)][_0x1bb56d(0xbae)]['length'];_0x367892++){_0x4a0d3a[_0x1bb56d(0x1bd0)]({'title':_0x2b5384['data']['errors'][_0x367892]['type'],'msg':_0x2b5384[_0x1bb56d(0x1c52)][_0x1bb56d(0xbae)][_0x367892][_0x1bb56d(0x18ca)]});}}else _0x4a0d3a[_0x1bb56d(0x1bd0)]({'title':_0x2b5384[_0x1bb56d(0x10b3)]?_0x1bb56d(0x575)+_0x2b5384['status']+_0x1bb56d(0x21db)+_0x2b5384[_0x1bb56d(0x2115)]:_0x1bb56d(0x289f),'msg':_0x2b5384[_0x1bb56d(0x1c52)]?JSON[_0x1bb56d(0x2317)](_0x2b5384[_0x1bb56d(0x1c52)][_0x1bb56d(0x18ca)]):_0x2b5384[_0x1bb56d(0x2915)]()});});}function _0x213913(_0x326a32){const _0x5abebe=_0x3d9224;_0x9c5dd5[_0x5abebe(0xbae)]=[];const _0x56c8bd=_0x245421[_0x5abebe(0x856)]()[_0x5abebe(0x2021)](_0x5abebe(0x103a))[_0x5abebe(0x12b8)](_0x5abebe(0x885))[_0x5abebe(0x213e)](_0x5abebe(0xc12))['ok'](_0x5abebe(0x2664))['cancel'](_0x5abebe(0x1dc6))[_0x5abebe(0x2283)](_0x326a32);_0x245421[_0x5abebe(0xa60)](_0x56c8bd)[_0x5abebe(0x64a)](function(){const _0x3e3e40=_0x5abebe;_0xf1bc80['intSugarcrmConfiguration'][_0x3e3e40(0xabd)]({'id':_0x9c5dd5[_0x3e3e40(0x2533)]['id']})[_0x3e3e40(0x15e7)][_0x3e3e40(0x64a)](function(){const _0x428025=_0x3e3e40;_0x28c606()['remove'](_0x9c5dd5[_0x428025(0x23a8)],{'id':_0x9c5dd5['sugarcrmConfiguration']['id']}),_0x4a0d3a['success']({'title':'SugarcrmConfiguration\x20properly\x20deleted!','msg':(_0x9c5dd5[_0x428025(0x2533)][_0x428025(0x2494)]||_0x428025(0x2533))+_0x428025(0x1fa8)}),_0x583a0b(_0x9c5dd5[_0x428025(0x2533)]);})[_0x3e3e40(0x20cd)](function(_0x594d8a){const _0x379bc4=_0x3e3e40;if(_0x594d8a[_0x379bc4(0x1c52)]&&_0x594d8a['data'][_0x379bc4(0xbae)]&&_0x594d8a[_0x379bc4(0x1c52)]['errors'][_0x379bc4(0x1b9e)]){_0x9c5dd5['errors']=_0x594d8a[_0x379bc4(0x1c52)][_0x379bc4(0xbae)]||[{'message':_0x594d8a[_0x379bc4(0x2915)](),'type':_0x379bc4(0x216e)}];for(let _0x2570fc=0x0;_0x2570fc<_0x594d8a[_0x379bc4(0x1c52)][_0x379bc4(0xbae)][_0x379bc4(0x1b9e)];_0x2570fc++){_0x4a0d3a[_0x379bc4(0x1bd0)]({'title':_0x594d8a[_0x379bc4(0x1c52)][_0x379bc4(0xbae)][_0x2570fc][_0x379bc4(0x2185)],'msg':_0x594d8a['data']['errors'][_0x2570fc][_0x379bc4(0x18ca)]});}}else _0x4a0d3a['error']({'title':_0x594d8a[_0x379bc4(0x10b3)]?_0x379bc4(0x575)+_0x594d8a[_0x379bc4(0x10b3)]+_0x379bc4(0x21db)+_0x594d8a['statusText']:_0x379bc4(0x216e),'msg':_0x594d8a[_0x379bc4(0x1c52)]?JSON[_0x379bc4(0x2317)](_0x594d8a['data']['message']):_0x594d8a[_0x379bc4(0x18ca)]||_0x594d8a[_0x379bc4(0x2915)]()});});},function(){});}function _0x438f6c(_0x58cd34){return _0x58cd34===null?undefined:new Date(_0x58cd34);}function _0x583a0b(_0x30dd05){const _0x18bf2=_0x3d9224;_0x245421[_0x18bf2(0x268e)](_0x30dd05);}}const _0x35e7c6=_0x3a701e;;_0x29b9dd[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x680),_0x49a1e3(0x9a4),'items','item',_0x49a1e3(0x3e3),_0x49a1e3(0x2185),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x29b9dd(_0x553596,_0x2611d8,_0x31b568,_0x22f3a4,_0x559e44,_0xc2ba72,_0x1513a0,_0x462817,_0x18ab68,_0x572f04,_0x19ae87,_0x2889d7,_0x178ae7){const _0x1a2e32=_0x49a1e3,_0x55fcfc=this;_0x55fcfc[_0x1a2e32(0x1d3d)]=_0x2889d7[_0x1a2e32(0x808)](),_0x55fcfc['errors']=[],_0x55fcfc[_0x1a2e32(0x2021)]='INTEGRATIONS.EDIT_'+_0x28c606()[_0x1a2e32(0x2201)](_0x572f04),_0x55fcfc['item']=angular[_0x1a2e32(0x289e)](_0x462817),_0x55fcfc['items']=_0x1513a0,_0x55fcfc[_0x1a2e32(0x2185)]=_0x572f04,_0x55fcfc[_0x1a2e32(0x402)]=_0x178ae7,_0x55fcfc[_0x1a2e32(0xd33)]=![];!_0x55fcfc[_0x1a2e32(0x1656)]&&(_0x55fcfc['item']={'type':_0x1a2e32(0x108c)},_0x55fcfc[_0x1a2e32(0x1656)][_0x28c606()[_0x1a2e32(0xd56)](_0x572f04)+'Id']=_0xc2ba72['id'],_0x55fcfc[_0x1a2e32(0x2021)]=_0x1a2e32(0x1ad9)+_0x28c606()['toUpper'](_0x572f04),_0x55fcfc[_0x1a2e32(0xd33)]=!![]);_0x55fcfc[_0x1a2e32(0x2889)]=_0x13eca6,_0x55fcfc['saveItem']=_0x3499a4,_0x55fcfc[_0x1a2e32(0x126d)]=_0x36fbac,_0x55fcfc[_0x1a2e32(0x14d)]=_0x32bfa0,_0x55fcfc[_0x1a2e32(0x16cb)]=_0x99951a,_0x19ae87[_0x1a2e32(0xefb)][_0x1a2e32(0x896)]({'nolimit':!![]})[_0x1a2e32(0x15e7)]['then'](function(_0x4ee454){const _0x122aa8=_0x1a2e32;return _0x55fcfc[_0x122aa8(0x145c)]=_0x4ee454[_0x122aa8(0x28b8)]?_0x4ee454[_0x122aa8(0x28b8)]:[],_0x19ae87['voiceAgentReport']['describe']()[_0x122aa8(0x15e7)];})[_0x1a2e32(0x64a)](function(_0x50d6e5){const _0x39afcd=_0x1a2e32;return _0x55fcfc[_0x39afcd(0x109a)]=_0x28c606()[_0x39afcd(0xde7)](_0x28c606()[_0x39afcd(0x1ec6)](_0x50d6e5),[_0x39afcd(0x15e7),_0x39afcd(0x19ba),_0x39afcd(0x2378),_0x39afcd(0x2056),_0x39afcd(0x2785)]),_0x55fcfc[_0x39afcd(0x109a)]['push'](_0x39afcd(0xdd4)),_0x19ae87[_0x39afcd(0x1002)][_0x39afcd(0xa81)]()[_0x39afcd(0x15e7)];})['then'](function(_0x55b4ac){const _0x1c4efb=_0x1a2e32;_0x55fcfc[_0x1c4efb(0xdae)]=_0x28c606()[_0x1c4efb(0xde7)](_0x28c606()[_0x1c4efb(0x1ec6)](_0x55b4ac),[_0x1c4efb(0x15e7),_0x1c4efb(0x19ba),'createdAt',_0x1c4efb(0x2056),_0x1c4efb(0x2785)]),_0x55fcfc[_0x1c4efb(0xdae)][_0x1c4efb(0x1954)]('recordingURL');})['catch'](function(_0x51c197){const _0x3d6b1d=_0x1a2e32;_0x559e44[_0x3d6b1d(0x1bd0)]({'title':_0x51c197[_0x3d6b1d(0x10b3)]?_0x3d6b1d(0x575)+_0x51c197[_0x3d6b1d(0x10b3)]+_0x3d6b1d(0x21db)+_0x51c197['statusText']:_0x3d6b1d(0x195a),'msg':_0x51c197[_0x3d6b1d(0x1c52)]?JSON[_0x3d6b1d(0x2317)](_0x51c197[_0x3d6b1d(0x1c52)]):_0x51c197[_0x3d6b1d(0x2915)]()});}),_0x19ae87['intSugarcrmAccount'][_0x1a2e32(0x5e0)]({'id':_0x18ab68['id'],'ticketType':_0xc2ba72[_0x1a2e32(0x1545)]?_0xc2ba72[_0x1a2e32(0x1545)]:undefined})[_0x1a2e32(0x15e7)]['then'](function(_0x4b63c0){const _0x3bda21=_0x1a2e32;_0x55fcfc[_0x3bda21(0x854)]=!![],_0x55fcfc['fields']=_0x4b63c0[_0x3bda21(0x28b8)]?_0x4b63c0['rows']:[],_0x55fcfc[_0x3bda21(0x1656)][_0x3bda21(0x197)]&&(_0x55fcfc['customField']=_0x28c606()[_0x3bda21(0x27bc)](_0x55fcfc['fields'],{'id':_0x55fcfc[_0x3bda21(0x1656)][_0x3bda21(0x197)]}));})['catch'](function(_0x1b5457){_0x55fcfc['accountConnected']=![],console['error'](_0x1b5457);});function _0x13eca6(){const _0x769bc3=_0x1a2e32;_0x55fcfc['errors']=[],_0x55fcfc[_0x769bc3(0x1753)]&&(_0x55fcfc[_0x769bc3(0x1656)][_0x769bc3(0x197)]=_0x55fcfc['customField']['id'],_0x55fcfc['item']['nameField']=_0x55fcfc[_0x769bc3(0x1753)]['name'],_0x55fcfc[_0x769bc3(0x1656)]['customField']=_0x55fcfc[_0x769bc3(0x1753)]['custom']),_0x19ae87[_0x769bc3(0x651)][_0x769bc3(0x2479)](_0x55fcfc[_0x769bc3(0x1656)])[_0x769bc3(0x15e7)]['then'](function(_0x122914){const _0x4df49b=_0x769bc3;_0x55fcfc[_0x4df49b(0x23cb)]['unshift'](_0x122914),_0x559e44['success']({'title':_0x28c606()['capitalize'](_0x572f04)+_0x4df49b(0xe0b),'msg':_0x28c606()[_0x4df49b(0xd56)](_0x572f04)+'\x20has\x20been\x20created!'}),_0x99951a();})[_0x769bc3(0x20cd)](function(_0x260632){const _0x541d09=_0x769bc3;console['error'](_0x260632),_0x55fcfc['errors']=_0x260632[_0x541d09(0x1c52)]['errors']||[{'message':_0x260632[_0x541d09(0x2915)](),'type':_0x541d09(0x1675)}];});}function _0x3499a4(){const _0xef004c=_0x1a2e32;_0x55fcfc[_0xef004c(0xbae)]=[],_0x55fcfc[_0xef004c(0x1753)]&&(_0x55fcfc[_0xef004c(0x1656)][_0xef004c(0x197)]=_0x55fcfc[_0xef004c(0x1753)]['id'],_0x55fcfc[_0xef004c(0x1656)]['nameField']=_0x55fcfc[_0xef004c(0x1753)][_0xef004c(0x2494)],_0x55fcfc[_0xef004c(0x1656)][_0xef004c(0x1753)]=_0x55fcfc[_0xef004c(0x1753)][_0xef004c(0x1ad6)]),_0x19ae87[_0xef004c(0x651)]['update']({'id':_0x55fcfc[_0xef004c(0x1656)]['id']},_0x55fcfc['item'])['$promise'][_0xef004c(0x64a)](function(_0x5afd6e){const _0x220e63=_0xef004c,_0x3c4315=_0x28c606()[_0x220e63(0x27bc)](_0x55fcfc['items'],{'id':_0x5afd6e['id']});_0x3c4315&&_0x28c606()['merge'](_0x3c4315,_0x5afd6e),_0x559e44[_0x220e63(0x1339)]({'title':_0x28c606()[_0x220e63(0xd56)](_0x572f04)+_0x220e63(0x2776),'msg':_0x28c606()[_0x220e63(0xd56)](_0x572f04)+_0x220e63(0x271)}),_0x99951a();})[_0xef004c(0x20cd)](function(_0x4bda83){const _0x109dda=_0xef004c;console[_0x109dda(0x1bd0)](_0x4bda83),_0x55fcfc[_0x109dda(0xbae)]=_0x4bda83['data'][_0x109dda(0xbae)]||[{'message':_0x4bda83[_0x109dda(0x2915)](),'type':'api.intItem.update'}];});}function _0x36fbac(_0x1d085c){const _0xf2413b=_0x1a2e32;_0x55fcfc[_0xf2413b(0xbae)]=[];const _0x100d2b=_0x22f3a4[_0xf2413b(0x856)]()[_0xf2413b(0x2021)](_0xf2413b(0x103a))[_0xf2413b(0x12b8)]('The\x20'+_0x572f04+_0xf2413b(0x4b8))[_0xf2413b(0x213e)](_0xf2413b(0x1f2e)+_0x28c606()['capitalize'](_0x572f04))['ok'](_0xf2413b(0x2664))[_0xf2413b(0x101a)]('Cancel')['targetEvent'](_0x1d085c);_0x22f3a4[_0xf2413b(0xa60)](_0x100d2b)[_0xf2413b(0x64a)](function(){const _0x52b896=_0xf2413b;_0x19ae87['intSugarcrmField'][_0x52b896(0xabd)]({'id':_0x55fcfc['item']['id']})['$promise'][_0x52b896(0x64a)](function(){const _0x375d9a=_0x52b896;_0x28c606()[_0x375d9a(0x21c7)](_0x55fcfc[_0x375d9a(0x23cb)],{'id':_0x55fcfc[_0x375d9a(0x1656)]['id']}),_0x559e44[_0x375d9a(0x1339)]({'title':_0x28c606()[_0x375d9a(0xd56)](_0x572f04)+_0x375d9a(0x6ec),'msg':_0x28c606()[_0x375d9a(0xd56)](_0x572f04)+_0x375d9a(0x1fa8)}),_0x99951a();})[_0x52b896(0x20cd)](function(_0x4bd762){const _0x181041=_0x52b896;console[_0x181041(0x1bd0)](_0x4bd762),_0x55fcfc[_0x181041(0xbae)]=_0x4bd762[_0x181041(0x1c52)][_0x181041(0xbae)]||[{'message':_0x4bd762['toString'](),'type':_0x181041(0x27aa)}];});},function(){});}function _0x32bfa0(){const _0xbb7755=_0x1a2e32;return _0x55fcfc['item']['variableName']!==undefined?_0x55fcfc[_0xbb7755(0x1656)]['variableName']:_0xbb7755(0xfae);}function _0x99951a(){const _0x20c2c3=_0x1a2e32;_0x22f3a4[_0x20c2c3(0x268e)]();}}const _0x3142d6=_0x29b9dd;;_0x3256ba[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'api',_0x49a1e3(0x680),_0x49a1e3(0xdcf),'sugarcrmAccount',_0x49a1e3(0x16b2)];function _0x3256ba(_0x223fc2,_0x461188,_0xdb31e5,_0xe5ab31,_0x44d60f,_0x292a33,_0x572096,_0xa3f508,_0x50a203,_0x5998a8,_0x1bd947,_0x8f3e36){const _0x1952a1=_0x49a1e3,_0x16ad7d=this;_0x16ad7d[_0x1952a1(0x1d3d)]=_0x5998a8['getCurrentUser'](),_0x16ad7d[_0x1952a1(0x1947)]=_0x292a33,_0x16ad7d[_0x1952a1(0x28d6)]=_0x572096,_0x16ad7d[_0x1952a1(0xccc)]=_0x16ad7d[_0x1952a1(0x28d6)][_0x1952a1(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x16ad7d[_0x1952a1(0xb36)]=_0x461188[_0x1952a1(0x48e)]()+_0x1952a1(0xe1f)+_0x461188[_0x1952a1(0x1e5d)](),_0x16ad7d[_0x1952a1(0x28f2)]=_0x1bd947||_0x223fc2[_0x1952a1(0x1b48)][_0x1952a1(0x28f2)]||{},_0x16ad7d[_0x1952a1(0x16b2)]=_0x8f3e36&&_0x8f3e36['count']==0x1?_0x8f3e36[_0x1952a1(0x28b8)][0x0]:null,_0x16ad7d['crudPermissions']=_0x5998a8[_0x1952a1(0xa7e)](_0x16ad7d['userProfileSection']?_0x16ad7d[_0x1952a1(0x16b2)][_0x1952a1(0x402)]:null),_0x16ad7d[_0x1952a1(0x6c2)]={},_0x16ad7d[_0x1952a1(0x197c)]=_0x223fc2[_0x1952a1(0x1b48)][_0x1952a1(0x1222)]||0x0,_0x16ad7d['alert']=_0x50a203[_0x1952a1(0x772)],_0x16ad7d[_0x1952a1(0x483)]=_0x15aaea,_0x16ad7d[_0x1952a1(0x1ab8)]=_0x3f1d83;function _0x15aaea(){_0x223fc2['go']('app.integrations.sugarcrmAccounts',{},{'reload':'app.integrations.sugarcrmAccounts'});}function _0x3f1d83(){const _0x510117=_0x1952a1;_0xa3f508['intSugarcrmAccount'][_0x510117(0x2603)]({'id':_0x16ad7d[_0x510117(0x28f2)]['id']},_0x16ad7d[_0x510117(0x28f2)])[_0x510117(0x15e7)][_0x510117(0x64a)](function(){const _0x40a28c=_0x510117;_0x50a203[_0x40a28c(0x1339)]({'title':_0x40a28c(0x2975),'msg':_0x16ad7d['sugarcrmAccount'][_0x40a28c(0x2494)]?_0x16ad7d[_0x40a28c(0x28f2)][_0x40a28c(0x2494)]+_0x40a28c(0x2032):''});})[_0x510117(0x20cd)](function(_0x439999){const _0x5b8ec4=_0x510117;_0x50a203[_0x5b8ec4(0x1bd0)]({'title':_0x439999[_0x5b8ec4(0x10b3)]?_0x5b8ec4(0x575)+_0x439999[_0x5b8ec4(0x10b3)]+'\x20-\x20'+_0x439999[_0x5b8ec4(0x2115)]:_0x5b8ec4(0x85e),'msg':_0x439999[_0x5b8ec4(0x1c52)]?JSON['stringify'](_0x439999['data']):_0x439999[_0x5b8ec4(0x2915)]()});});}}const _0xe51b37=_0x3256ba;;const _0x44e182=_0x2e4a48['p']+_0x49a1e3(0x1bbb);;_0x2b5613[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x1fe7),'$state','$mdSidenav',_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),'$translate',_0x49a1e3(0x12cb),_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xa19),'msUtils',_0x49a1e3(0x680),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x2b5613(_0x64b72f,_0xa17ee6,_0x596eef,_0x3aff00,_0x36f983,_0x4b9aa0,_0x118791,_0xed9744,_0x435f27,_0x5ac394,_0x43d3b3,_0x8259ad,_0x183df5,_0x2cb0bb,_0x20fae6,_0x3e321b,_0x159220){const _0x33b83a=_0x49a1e3,_0x4cb4e6=this;_0x4cb4e6[_0x33b83a(0x1947)]=_0x3e321b,_0x4cb4e6['setting']=_0x159220,_0x4cb4e6[_0x33b83a(0x1d3d)]=_0x20fae6[_0x33b83a(0x808)](),_0x4cb4e6['sugarcrmAccounts']=_0x435f27||{'count':0x0,'rows':[]},_0x4cb4e6['userProfile']=_0x5ac394,_0x4cb4e6['userProfileSection']=_0x43d3b3&&_0x43d3b3[_0x33b83a(0xb90)]==0x1?_0x43d3b3[_0x33b83a(0x28b8)][0x0]:null,_0x4cb4e6['crudPermissions']=_0x20fae6['parseCrudPermissions'](_0x4cb4e6['userProfileSection']?_0x4cb4e6[_0x33b83a(0x16b2)][_0x33b83a(0x402)]:null),_0x4cb4e6['table']=_0x33b83a(0x12cb),_0x4cb4e6['listOrder']='',_0x4cb4e6[_0x33b83a(0x2748)]=null,_0x4cb4e6[_0x33b83a(0x1690)]=[],_0x4cb4e6[_0x33b83a(0x289a)]={'fields':_0x33b83a(0x2684),'limit':0xa,'page':0x1},_0x4cb4e6[_0x33b83a(0xff6)]=_0xcd9672,_0x4cb4e6['testtestintegrationaccount']=_0x509f46,_0x4cb4e6[_0x33b83a(0x1262)]=_0x3d7706,_0x4cb4e6[_0x33b83a(0x1339)]=_0x4a5179,_0x4cb4e6['getSugarcrmAccounts']=_0x57e616,_0x4cb4e6[_0x33b83a(0x125)]=_0x14d93c,_0x4cb4e6['deleteSugarcrmAccount']=_0x3e7987,_0x4cb4e6[_0x33b83a(0x2075)]=_0x221c3a,_0x4cb4e6[_0x33b83a(0x1eb1)]=_0x37be9b,_0x4cb4e6['deselectSugarcrmAccounts']=_0x5b736c,_0x4cb4e6[_0x33b83a(0x7a6)]=_0x2f7e0;function _0xcd9672(_0x56982d){const _0x553b28=_0x33b83a;_0x596eef['go'](_0x553b28(0xe7e),{'id':_0x56982d['id'],'sugarcrmAccount':_0x56982d,'crudPermissions':_0x4cb4e6['crudPermissions']});}function _0x509f46(_0x59e8f4){const _0x46107d=_0x33b83a;return _0x8259ad[_0x46107d(0xdaa)]['getFields']({'id':_0x59e8f4['id'],'test':!![]})['$promise'][_0x46107d(0x64a)](function(){const _0x381157=_0x46107d;_0x2cb0bb[_0x381157(0x1339)]({'title':'SugarcrmAccount\x20properly\x20tested','msg':_0x381157(0x259b)});})[_0x46107d(0x20cd)](function(_0x52c79a){const _0x324498=_0x46107d;_0x2cb0bb[_0x324498(0x1bd0)]({'title':'SugarcrmAccount\x20properly\x20tested','msg':_0x52c79a[_0x324498(0x1c52)]?_0x52c79a[_0x324498(0x1c52)]['message']?_0x52c79a[_0x324498(0x1c52)][_0x324498(0x18ca)]:JSON[_0x324498(0x2317)](_0x52c79a['data']):_0x52c79a[_0x324498(0x2915)]()});});}function _0x3d7706(_0x1ead85,_0x46d35d){const _0x54fe8d=_0x33b83a,_0x26f0f2=_0x36f983[_0x54fe8d(0x856)]()['title'](_0x54fe8d(0x1231)+_0x28c606()[_0x54fe8d(0xc01)]('sugarcrmAccount')+'?')[_0x54fe8d(0x33a)](''+(_0x1ead85['name']||_0x54fe8d(0x28f2))+_0x54fe8d(0x26d0)+_0x54fe8d(0x4b8))[_0x54fe8d(0x213e)](_0x54fe8d(0x72e))['targetEvent'](_0x46d35d)['ok']('OK')[_0x54fe8d(0x101a)]('CANCEL');_0x36f983[_0x54fe8d(0xa60)](_0x26f0f2)[_0x54fe8d(0x64a)](function(){_0x3e7987(_0x1ead85);},function(){const _0x5d7c4f=_0x54fe8d;console[_0x5d7c4f(0x9b4)]('CANCEL');});}let _0x1bc9b3=!![],_0xa107c1=0x1;_0x64b72f[_0x33b83a(0xc62)](_0x33b83a(0x1cb9),function(_0x48d6cb,_0x234a08){const _0x5424c9=_0x33b83a;_0x1bc9b3?_0x118791(function(){_0x1bc9b3=![];}):(!_0x234a08&&(_0xa107c1=_0x4cb4e6['query'][_0x5424c9(0xc72)]),_0x48d6cb!==_0x234a08&&(_0x4cb4e6[_0x5424c9(0x289a)][_0x5424c9(0xc72)]=0x1),!_0x48d6cb&&(_0x4cb4e6[_0x5424c9(0x289a)]['page']=_0xa107c1),_0x4cb4e6[_0x5424c9(0x1f8b)]());});function _0x4a5179(_0x40a92b){const _0x1d758b=_0x33b83a;_0x4cb4e6[_0x1d758b(0x12cb)]=_0x40a92b||{'count':0x0,'rows':[]};}function _0x57e616(){const _0x36b8e1=_0x33b83a;_0x4cb4e6[_0x36b8e1(0x289a)][_0x36b8e1(0x24f9)]=(_0x4cb4e6[_0x36b8e1(0x289a)][_0x36b8e1(0xc72)]-0x1)*_0x4cb4e6[_0x36b8e1(0x289a)][_0x36b8e1(0x25bb)],_0x20fae6[_0x36b8e1(0x4de)]('admin')?_0x4cb4e6['promise']=_0x8259ad[_0x36b8e1(0xdaa)][_0x36b8e1(0x896)](_0x4cb4e6[_0x36b8e1(0x289a)],_0x4a5179)['$promise']:(_0x4cb4e6[_0x36b8e1(0x289a)]['id']=_0x4cb4e6[_0x36b8e1(0x16a8)]['id'],_0x4cb4e6['query']['section']=_0x36b8e1(0x877),_0x4cb4e6[_0x36b8e1(0x1713)]=_0x8259ad[_0x36b8e1(0x16a8)][_0x36b8e1(0x2565)](_0x4cb4e6[_0x36b8e1(0x289a)],_0x4a5179)['$promise']);}function _0x14d93c(_0x13d012,_0x4ef87e){const _0x575673=_0x33b83a;_0x36f983['show']({'controller':'CreateOrEditSugarcrmAccountDialogController','controllerAs':'vm','templateUrl':_0x44e182,'parent':angular[_0x575673(0x1f81)](_0x4b9aa0[_0x575673(0xb49)]),'targetEvent':_0x13d012,'clickOutsideToClose':!![],'locals':{'sugarcrmAccount':_0x4ef87e,'sugarcrmAccounts':_0x4cb4e6[_0x575673(0x12cb)][_0x575673(0x28b8)],'license':_0x4cb4e6[_0x575673(0x1947)],'setting':_0x4cb4e6[_0x575673(0x28d6)],'crudPermissions':_0x4cb4e6['crudPermissions']}});}function _0x3e7987(_0x5b0187){const _0x23ba9c=_0x33b83a;_0x8259ad['intSugarcrmAccount'][_0x23ba9c(0xabd)]({'id':_0x5b0187['id']})['$promise'][_0x23ba9c(0x64a)](function(){const _0x3ad68c=_0x23ba9c;_0x28c606()[_0x3ad68c(0x21c7)](_0x4cb4e6['sugarcrmAccounts'][_0x3ad68c(0x28b8)],{'id':_0x5b0187['id']}),_0x4cb4e6[_0x3ad68c(0x12cb)][_0x3ad68c(0xb90)]-=0x1,!_0x4cb4e6[_0x3ad68c(0x12cb)]['rows'][_0x3ad68c(0x1b9e)]&&_0x4cb4e6[_0x3ad68c(0x1f8b)](),_0x2cb0bb['success']({'title':_0x28c606()[_0x3ad68c(0xc01)](_0x3ad68c(0xa36))+_0x3ad68c(0x2502),'msg':_0x5b0187[_0x3ad68c(0x2494)]?_0x5b0187['name']+_0x3ad68c(0x1fa8):''});})['catch'](function(_0x3af268){const _0xb01de8=_0x23ba9c;if(_0x3af268[_0xb01de8(0x1c52)]&&_0x3af268['data'][_0xb01de8(0xbae)]&&_0x3af268[_0xb01de8(0x1c52)][_0xb01de8(0xbae)][_0xb01de8(0x1b9e)]){_0x4cb4e6['errors']=_0x3af268[_0xb01de8(0x1c52)][_0xb01de8(0xbae)]||[{'message':_0x3af268['toString'](),'type':_0xb01de8(0x15d9)}];for(let _0x1ae11f=0x0;_0x1ae11f<_0x3af268[_0xb01de8(0x1c52)]['errors'][_0xb01de8(0x1b9e)];_0x1ae11f++){_0x2cb0bb[_0xb01de8(0x1bd0)]({'title':_0x3af268[_0xb01de8(0x1c52)][_0xb01de8(0xbae)][_0x1ae11f][_0xb01de8(0x2185)],'msg':_0x3af268[_0xb01de8(0x1c52)]['errors'][_0x1ae11f][_0xb01de8(0x18ca)]});}}else _0x2cb0bb['error']({'title':_0x3af268[_0xb01de8(0x10b3)]?'API:'+_0x3af268[_0xb01de8(0x10b3)]+_0xb01de8(0x21db)+_0x3af268['statusText']:'SYSTEM:DELETEintSugarcrmAccount','msg':_0x3af268[_0xb01de8(0x1c52)]?JSON[_0xb01de8(0x2317)](_0x3af268['data']['message']):_0x3af268['message']||_0x3af268[_0xb01de8(0x2915)]()});});}function _0x221c3a(){const _0xf82a20=_0x33b83a,_0x534ec9=angular[_0xf82a20(0x289e)](_0x4cb4e6['selectedSugarcrmAccounts']);return _0x4cb4e6[_0xf82a20(0x1690)]=[],_0x534ec9;}function _0x37be9b(_0x247338){const _0x4197ac=_0x33b83a,_0x3dd5f2=_0x36f983[_0x4197ac(0x856)]()[_0x4197ac(0x2021)](_0x4197ac(0xa26))[_0x4197ac(0x33a)](_0x4197ac(0x50b)+_0x4cb4e6[_0x4197ac(0x1690)]['length']+_0x4197ac(0x163e)+_0x4197ac(0x4b8))[_0x4197ac(0x213e)](_0x4197ac(0x1fc9))[_0x4197ac(0x2283)](_0x247338)['ok']('OK')[_0x4197ac(0x101a)](_0x4197ac(0x18fd));_0x36f983[_0x4197ac(0xa60)](_0x3dd5f2)['then'](function(){const _0x45f281=_0x4197ac;_0x4cb4e6[_0x45f281(0x1690)][_0x45f281(0x1397)](function(_0x283ca4){_0x3e7987(_0x283ca4);}),_0x4cb4e6[_0x45f281(0x1690)]=[];});}function _0x5b736c(){const _0x211ae5=_0x33b83a;_0x4cb4e6[_0x211ae5(0x1690)]=[];}function _0x2f7e0(){const _0x5766bb=_0x33b83a;_0x4cb4e6['selectedSugarcrmAccounts']=_0x4cb4e6[_0x5766bb(0x12cb)][_0x5766bb(0x28b8)];}}const _0x45e48e=_0x2b5613;;_0x2e8b8c['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),'toasty',_0x49a1e3(0x18b0),_0x49a1e3(0x1b1c),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting',_0x49a1e3(0x402)];function _0x2e8b8c(_0x42f28f,_0x2558fc,_0x21334b,_0x1c6399,_0x4a8abc,_0x4d4981,_0x1f9b51,_0x2a7411,_0x45ebed,_0x18fe43,_0x5787f5,_0x38aabe,_0x26a0cd,_0x2b2d4c){const _0x223cb5=_0x49a1e3,_0x2a9e3d=this;_0x2a9e3d[_0x223cb5(0x1d3d)]=_0x5787f5['getCurrentUser'](),_0x2a9e3d[_0x223cb5(0xbae)]=[],_0x2a9e3d[_0x223cb5(0x28d6)]=_0x26a0cd,_0x2a9e3d[_0x223cb5(0x1947)]=_0x38aabe,_0x2a9e3d[_0x223cb5(0x402)]=_0x2b2d4c,_0x2a9e3d[_0x223cb5(0x6c2)]={},_0x2a9e3d[_0x223cb5(0xccc)]=_0x2a9e3d[_0x223cb5(0x28d6)]&&_0x2a9e3d['setting'][_0x223cb5(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2a9e3d[_0x223cb5(0x2021)]=_0x223cb5(0x93d),_0x2a9e3d[_0x223cb5(0x1b1c)]=angular[_0x223cb5(0x289e)](_0x45ebed),_0x2a9e3d[_0x223cb5(0x18b0)]=_0x2a7411,_0x2a9e3d[_0x223cb5(0x12f4)]=![];!_0x2a9e3d[_0x223cb5(0x1b1c)]&&(_0x2a9e3d[_0x223cb5(0x1b1c)]={'serverUrl':_0x21334b[_0x223cb5(0x48e)]()+'://'+_0x21334b['host']()+(_0x21334b['port']()?':'+_0x21334b[_0x223cb5(0x23f2)]():'')},_0x2a9e3d[_0x223cb5(0x2021)]=_0x223cb5(0x1ffa),_0x2a9e3d[_0x223cb5(0x12f4)]=!![]);_0x2a9e3d['addNewVtigerAccount']=_0xc310dc,_0x2a9e3d[_0x223cb5(0xbee)]=_0x2e3fed,_0x2a9e3d[_0x223cb5(0x1688)]=_0x54c6d7,_0x2a9e3d[_0x223cb5(0x1605)]=_0x3d5f96,_0x2a9e3d[_0x223cb5(0x16cb)]=_0xf48a37;function _0xc310dc(){const _0x1a9701=_0x223cb5;_0x2a9e3d[_0x1a9701(0xbae)]=[],_0x18fe43['intVtigerAccount'][_0x1a9701(0x2479)](_0x2a9e3d[_0x1a9701(0x1b1c)])[_0x1a9701(0x15e7)][_0x1a9701(0x64a)](function(_0x4912b3){const _0x211f17=_0x1a9701;_0x2a9e3d[_0x211f17(0x18b0)][_0x211f17(0x1891)](_0x4912b3['toJSON']()),_0x1f9b51[_0x211f17(0x1339)]({'title':'VtigerAccount\x20properly\x20created','msg':_0x2a9e3d['vtigerAccount'][_0x211f17(0x2494)]?_0x2a9e3d['vtigerAccount']['name']+'\x20has\x20been\x20created!':''}),_0xf48a37(_0x4912b3);})[_0x1a9701(0x20cd)](function(_0xbb7ee6){const _0x4bff27=_0x1a9701;if(_0xbb7ee6[_0x4bff27(0x1c52)]&&_0xbb7ee6[_0x4bff27(0x1c52)][_0x4bff27(0xbae)]&&_0xbb7ee6['data'][_0x4bff27(0xbae)][_0x4bff27(0x1b9e)]){_0x2a9e3d[_0x4bff27(0xbae)]=_0xbb7ee6['data']['errors']||[{'message':_0xbb7ee6['toString'](),'type':_0x4bff27(0x2939)}];for(let _0x541f3a=0x0;_0x541f3a<_0xbb7ee6[_0x4bff27(0x1c52)][_0x4bff27(0xbae)][_0x4bff27(0x1b9e)];_0x541f3a+=0x1){_0x1f9b51[_0x4bff27(0x1bd0)]({'title':_0xbb7ee6[_0x4bff27(0x1c52)][_0x4bff27(0xbae)][_0x541f3a]['type'],'msg':_0xbb7ee6['data'][_0x4bff27(0xbae)][_0x541f3a][_0x4bff27(0x18ca)]});}}else _0x1f9b51[_0x4bff27(0x1bd0)]({'title':_0xbb7ee6['status']?_0x4bff27(0x575)+_0xbb7ee6[_0x4bff27(0x10b3)]+_0x4bff27(0x21db)+_0xbb7ee6[_0x4bff27(0x2115)]:'api.intVtigerAccount.save','msg':_0xbb7ee6[_0x4bff27(0x1c52)]?JSON[_0x4bff27(0x2317)](_0xbb7ee6[_0x4bff27(0x1c52)][_0x4bff27(0x18ca)]):_0xbb7ee6[_0x4bff27(0x2915)]()});});}function _0x2e3fed(){const _0x2b9440=_0x223cb5;_0x2a9e3d[_0x2b9440(0xbae)]=[],_0x18fe43[_0x2b9440(0xb99)][_0x2b9440(0x2603)]({'id':_0x2a9e3d['vtigerAccount']['id']},_0x2a9e3d[_0x2b9440(0x1b1c)])['$promise']['then'](function(_0x564658){const _0xe9b36=_0x2b9440,_0x35f9aa=_0x28c606()[_0xe9b36(0x27bc)](_0x2a9e3d[_0xe9b36(0x18b0)],{'id':_0x564658['id']});_0x35f9aa&&_0x28c606()[_0xe9b36(0x14fe)](_0x35f9aa,_0x28c606()[_0xe9b36(0x27bb)](_0x564658['toJSON'](),_0x28c606()[_0xe9b36(0x1ec6)](_0x35f9aa))),_0x1f9b51[_0xe9b36(0x1339)]({'title':_0xe9b36(0x1f68),'msg':_0x2a9e3d[_0xe9b36(0x1b1c)][_0xe9b36(0x2494)]?_0x2a9e3d[_0xe9b36(0x1b1c)][_0xe9b36(0x2494)]+_0xe9b36(0x271):''}),_0xf48a37(_0x564658);})[_0x2b9440(0x20cd)](function(_0x30b42e){const _0x4d2da9=_0x2b9440;if(_0x30b42e[_0x4d2da9(0x1c52)]&&_0x30b42e[_0x4d2da9(0x1c52)][_0x4d2da9(0xbae)]&&_0x30b42e[_0x4d2da9(0x1c52)][_0x4d2da9(0xbae)]['length']){_0x2a9e3d[_0x4d2da9(0xbae)]=_0x30b42e[_0x4d2da9(0x1c52)][_0x4d2da9(0xbae)]||[{'message':_0x30b42e[_0x4d2da9(0x2915)](),'type':_0x4d2da9(0x1e41)}];for(let _0x515e80=0x0;_0x515e80<_0x30b42e[_0x4d2da9(0x1c52)][_0x4d2da9(0xbae)]['length'];_0x515e80++){_0x1f9b51[_0x4d2da9(0x1bd0)]({'title':_0x30b42e[_0x4d2da9(0x1c52)][_0x4d2da9(0xbae)][_0x515e80]['type'],'msg':_0x30b42e[_0x4d2da9(0x1c52)]['errors'][_0x515e80][_0x4d2da9(0x18ca)]});}}else _0x1f9b51[_0x4d2da9(0x1bd0)]({'title':_0x30b42e[_0x4d2da9(0x10b3)]?_0x4d2da9(0x575)+_0x30b42e[_0x4d2da9(0x10b3)]+_0x4d2da9(0x21db)+_0x30b42e[_0x4d2da9(0x2115)]:_0x4d2da9(0x1e41),'msg':_0x30b42e[_0x4d2da9(0x1c52)]?JSON[_0x4d2da9(0x2317)](_0x30b42e['data'][_0x4d2da9(0x18ca)]):_0x30b42e[_0x4d2da9(0x2915)]()});});}function _0x54c6d7(_0x3306b8){const _0x223b77=_0x223cb5;_0x2a9e3d[_0x223b77(0xbae)]=[];const _0x16b64a=_0x1c6399['confirm']()['title']('Are\x20you\x20sure?')[_0x223b77(0x12b8)]('The\x20vtigerAccount\x20will\x20be\x20deleted.')[_0x223b77(0x213e)](_0x223b77(0x5b5))['ok'](_0x223b77(0x2664))['cancel'](_0x223b77(0x1dc6))[_0x223b77(0x2283)](_0x3306b8);_0x1c6399[_0x223b77(0xa60)](_0x16b64a)[_0x223b77(0x64a)](function(){const _0x1542f3=_0x223b77;_0x18fe43[_0x1542f3(0xb99)][_0x1542f3(0xabd)]({'id':_0x2a9e3d[_0x1542f3(0x1b1c)]['id']})['$promise'][_0x1542f3(0x64a)](function(){const _0x11ef3e=_0x1542f3;_0x28c606()[_0x11ef3e(0x21c7)](_0x2a9e3d[_0x11ef3e(0x18b0)],{'id':_0x2a9e3d['vtigerAccount']['id']}),_0x1f9b51['success']({'title':_0x11ef3e(0xe45),'msg':(_0x2a9e3d['vtigerAccount']['name']||_0x11ef3e(0x1b1c))+_0x11ef3e(0x1fa8)}),_0xf48a37(_0x2a9e3d[_0x11ef3e(0x1b1c)]);})['catch'](function(_0x52e73a){const _0x29184d=_0x1542f3;if(_0x52e73a[_0x29184d(0x1c52)]&&_0x52e73a['data'][_0x29184d(0xbae)]&&_0x52e73a[_0x29184d(0x1c52)][_0x29184d(0xbae)][_0x29184d(0x1b9e)]){_0x2a9e3d[_0x29184d(0xbae)]=_0x52e73a[_0x29184d(0x1c52)]['errors']||[{'message':_0x52e73a[_0x29184d(0x2915)](),'type':_0x29184d(0x195b)}];for(let _0x23d010=0x0;_0x23d010<_0x52e73a[_0x29184d(0x1c52)][_0x29184d(0xbae)][_0x29184d(0x1b9e)];_0x23d010++){_0x1f9b51[_0x29184d(0x1bd0)]({'title':_0x52e73a[_0x29184d(0x1c52)][_0x29184d(0xbae)][_0x23d010][_0x29184d(0x2185)],'msg':_0x52e73a['data']['errors'][_0x23d010][_0x29184d(0x18ca)]});}}else _0x1f9b51[_0x29184d(0x1bd0)]({'title':_0x52e73a[_0x29184d(0x10b3)]?_0x29184d(0x575)+_0x52e73a[_0x29184d(0x10b3)]+_0x29184d(0x21db)+_0x52e73a['statusText']:_0x29184d(0x195b),'msg':_0x52e73a[_0x29184d(0x1c52)]?JSON[_0x29184d(0x2317)](_0x52e73a['data'][_0x29184d(0x18ca)]):_0x52e73a[_0x29184d(0x18ca)]||_0x52e73a[_0x29184d(0x2915)]()});});},function(){});}function _0x3d5f96(_0x3422de){return _0x3422de===null?undefined:new Date(_0x3422de);}function _0xf48a37(_0x4dab25){_0x1c6399['hide'](_0x4dab25);}}const _0x3a1d0a=_0x2e8b8c;;const _0x27c8a4=_0x2e4a48['p']+_0x49a1e3(0x8dd);;const _0x1ea42c=_0x2e4a48['p']+'src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/item/dialog.html/dialog.html';;_0xab09df[_0x49a1e3(0x1e73)]=['$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf)];function _0xab09df(_0x51e1b9,_0x757305,_0x5c72a1,_0x440d7c,_0x5ce3d7){const _0x164a95=_0x49a1e3,_0x1b4698=this;_0x1b4698[_0x164a95(0x1d3d)]=_0x5ce3d7['getCurrentUser'](),_0x1b4698['vtigerAccount']={},_0x1b4698[_0x164a95(0x3bd)]={},_0x1b4698[_0x164a95(0x23a8)]=[],_0x1b4698[_0x164a95(0xd68)]=-0x1,_0x1b4698[_0x164a95(0x402)],_0x1b4698[_0x164a95(0x2354)]=_0x3b6e11,_0x1b4698[_0x164a95(0x4b9)]=_0x48ff4e,_0x1b4698[_0x164a95(0x2031)]=_0x46a682,_0x1b4698['deleteVtigerConfiguration']=_0x26e765;function _0x3b6e11(_0x40c46b,_0x24e7d7){const _0x53097c=_0x164a95;_0x1b4698['vtigerAccount']=_0x40c46b,_0x1b4698[_0x53097c(0x402)]=typeof _0x24e7d7!==_0x53097c(0x19a1)?_0x24e7d7:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5c72a1[_0x53097c(0xb99)]['getConfigurations']({'id':_0x1b4698[_0x53097c(0x1b1c)]['id'],'sort':_0x53097c(0x260c)})['$promise'][_0x53097c(0x64a)](function(_0x1dff16){const _0x4e3328=_0x53097c;return _0x1b4698['configurations']=_0x1dff16[_0x4e3328(0x28b8)]?_0x1dff16['rows']:[],_0x1b4698['configurations'][_0x4e3328(0x1b9e)]&&_0x1b4698[_0x4e3328(0x4b9)](0x0),_0x5c72a1['variable']['get']({'nolimit':!![],'sort':_0x4e3328(0x2494)})[_0x4e3328(0x15e7)];})[_0x53097c(0x64a)](function(_0x34fd60){const _0xb0c9af=_0x53097c;_0x1b4698['variables']=_0x34fd60[_0xb0c9af(0x28b8)]?_0x34fd60[_0xb0c9af(0x28b8)]:[],_0x1b4698[_0xb0c9af(0x2685)]=_0x28c606()['keyBy'](_0x1b4698['variables'],'id');})[_0x53097c(0x20cd)](function(_0x224b82){const _0x572e71=_0x53097c;_0x440d7c[_0x572e71(0x1bd0)]({'title':_0x224b82[_0x572e71(0x10b3)]?'API:'+_0x224b82['status']+_0x572e71(0x21db)+_0x224b82['statusText']:_0x572e71(0x1bdd),'msg':_0x224b82[_0x572e71(0x1c52)]?JSON['stringify'](_0x224b82[_0x572e71(0x1c52)]):_0x224b82[_0x572e71(0x2915)]()});});}function _0x48ff4e(_0x4d0d36){const _0x58a884=_0x164a95;_0x1b4698['vtigerConfiguration']=_0x1b4698[_0x58a884(0x23a8)][_0x4d0d36],_0x1b4698[_0x58a884(0xd68)]=_0x4d0d36,_0x5c72a1[_0x58a884(0x82c)][_0x58a884(0x241f)]({'id':_0x1b4698[_0x58a884(0x3bd)]['id']})['$promise'][_0x58a884(0x64a)](function(_0x3e8b5b){const _0xe30731=_0x58a884;return _0x1b4698[_0xe30731(0x29b)]=_0x3e8b5b[_0xe30731(0x28b8)]?_0x3e8b5b[_0xe30731(0x28b8)]:[],_0x5c72a1[_0xe30731(0x82c)][_0xe30731(0x1e33)]({'id':_0x1b4698['vtigerConfiguration']['id']})['$promise'];})[_0x58a884(0x64a)](function(_0x41fba5){const _0x10f649=_0x58a884;return _0x1b4698['descriptions']=_0x41fba5[_0x10f649(0x28b8)]?_0x41fba5[_0x10f649(0x28b8)]:[],_0x5c72a1[_0x10f649(0x82c)]['getFields']({'id':_0x1b4698[_0x10f649(0x3bd)]['id']})[_0x10f649(0x15e7)];})[_0x58a884(0x64a)](function(_0x172cb2){const _0x3ac836=_0x58a884;_0x1b4698[_0x3ac836(0xf26)]=_0x172cb2[_0x3ac836(0x28b8)]?_0x172cb2[_0x3ac836(0x28b8)]:[];})[_0x58a884(0x20cd)](function(_0x2dafef){const _0x551c28=_0x58a884;_0x440d7c[_0x551c28(0x1bd0)]({'title':_0x2dafef['status']?'API:'+_0x2dafef['status']+_0x551c28(0x21db)+_0x2dafef[_0x551c28(0x2115)]:'SYSTEM:GETConfigurations','msg':_0x2dafef['data']?JSON[_0x551c28(0x2317)](_0x2dafef['data']):_0x2dafef[_0x551c28(0x2915)]()});});}function _0x46a682(_0x67ae50,_0x40dc73){const _0x1a7125=_0x164a95;_0x51e1b9[_0x1a7125(0xa60)]({'controller':_0x1a7125(0x2179),'controllerAs':'vm','templateUrl':_0x27c8a4,'parent':angular['element'](_0x757305[_0x1a7125(0xb49)]),'targetEvent':_0x67ae50,'clickOutsideToClose':!![],'locals':{'vtigerConfiguration':_0x40dc73,'configurations':_0x1b4698[_0x1a7125(0x23a8)],'license':null,'setting':null,'crudPermissions':_0x1b4698[_0x1a7125(0x402)]}})['finally'](function(){const _0x1d574b=_0x1a7125;_0x1b4698[_0x1d574b(0x4b9)](0x0);});}function _0x26e765(_0x319aa7,_0x51ccf3){const _0x4c02a4=_0x164a95,_0x5dbda7=_0x51e1b9[_0x4c02a4(0x856)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20vtigerConfiguration?')[_0x4c02a4(0x33a)](_0x4c02a4(0x50b)+(_0x51ccf3['name']||'vtigerConfiguration')+_0x4c02a4(0x26d0)+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20vtigerConfiguration')[_0x4c02a4(0x2283)](_0x319aa7)['ok']('OK')[_0x4c02a4(0x101a)](_0x4c02a4(0x18fd));_0x51e1b9[_0x4c02a4(0xa60)](_0x5dbda7)['then'](function(){const _0xf7099a=_0x4c02a4;_0x5c72a1[_0xf7099a(0x82c)][_0xf7099a(0xabd)]({'id':_0x51ccf3['id']})['$promise'][_0xf7099a(0x64a)](function(){const _0x258420=_0xf7099a;_0x28c606()[_0x258420(0x21c7)](_0x1b4698[_0x258420(0x23a8)],{'id':_0x51ccf3['id']}),_0x440d7c[_0x258420(0x1339)]({'title':'VtigerConfiguration\x20deleted!','msg':_0x51ccf3[_0x258420(0x2494)]?_0x51ccf3[_0x258420(0x2494)]+_0x258420(0x1fa8):''});})[_0xf7099a(0x20cd)](function(_0x3312da){const _0x122d8b=_0xf7099a;_0x440d7c[_0x122d8b(0x1bd0)]({'title':_0x3312da[_0x122d8b(0x10b3)]?'API:'+_0x3312da[_0x122d8b(0x10b3)]+_0x122d8b(0x21db)+_0x3312da[_0x122d8b(0x2115)]:'SYSTEM:DELETECONFIGURATION','msg':_0x3312da[_0x122d8b(0x1c52)]?JSON[_0x122d8b(0x2317)](_0x3312da[_0x122d8b(0x1c52)]):_0x3312da['toString']()});})[_0xf7099a(0x988)](function(){_0x1b4698['getVtigerConfiguration'](0x0);});},function(){const _0x49b034=_0x4c02a4;console[_0x49b034(0x9b4)](_0x49b034(0x18fd));});}_0x1b4698[_0x164a95(0x2639)]=[],_0x1b4698[_0x164a95(0x22b1)]=_0x5449b5,_0x1b4698[_0x164a95(0xa6a)]=_0x7cd066,_0x1b4698[_0x164a95(0x17fe)]=_0x8dc3b0;function _0x5449b5(_0x49c383,_0x55bf13){const _0x21e7e7=_0x164a95;_0x51e1b9[_0x21e7e7(0xa60)]({'controller':_0x21e7e7(0x89f),'controllerAs':'vm','templateUrl':_0x1ea42c,'parent':angular[_0x21e7e7(0x1f81)](_0x757305[_0x21e7e7(0xb49)]),'targetEvent':_0x49c383,'clickOutsideToClose':!![],'locals':{'type':_0x21e7e7(0x25bc),'item':_0x55bf13,'items':_0x1b4698[_0x21e7e7(0x29b)],'configuration':_0x1b4698[_0x21e7e7(0x3bd)],'account':_0x1b4698['vtigerAccount'],'license':null,'setting':null,'crudPermissions':_0x1b4698[_0x21e7e7(0x402)]}});}function _0x4ed2e3(_0x31250d){const _0x55ba7f=_0x164a95;_0x5c72a1[_0x55ba7f(0x1919)][_0x55ba7f(0xabd)]({'id':_0x31250d['id']})[_0x55ba7f(0x15e7)][_0x55ba7f(0x64a)](function(){const _0xc3c6d2=_0x55ba7f;_0x28c606()['remove'](_0x1b4698[_0xc3c6d2(0x29b)],{'id':_0x31250d['id']}),_0x440d7c[_0xc3c6d2(0x1339)]({'title':_0xc3c6d2(0x1d99),'msg':_0xc3c6d2(0x1a0c)});})[_0x55ba7f(0x20cd)](function(_0x1ef1ea){const _0x77e327=_0x55ba7f;_0x440d7c['error']({'title':_0x1ef1ea[_0x77e327(0x10b3)]?'API:'+_0x1ef1ea[_0x77e327(0x10b3)]+'\x20-\x20'+_0x1ef1ea[_0x77e327(0x2115)]:_0x77e327(0x12a9),'msg':_0x1ef1ea[_0x77e327(0x1c52)]?JSON[_0x77e327(0x2317)](_0x1ef1ea['data']):_0x1ef1ea['toString']()});});}function _0x7cd066(_0x1ca8ad,_0x3ccb15){const _0x44ceac=_0x164a95,_0x10740b=_0x51e1b9[_0x44ceac(0x856)]()[_0x44ceac(0x2021)](_0x44ceac(0x189a))[_0x44ceac(0x33a)]('Subject'+'\x20will\x20be\x20deleted.')[_0x44ceac(0x213e)](_0x44ceac(0x204f))[_0x44ceac(0x2283)](_0x1ca8ad)['ok']('OK')[_0x44ceac(0x101a)](_0x44ceac(0x18fd));_0x51e1b9[_0x44ceac(0xa60)](_0x10740b)['then'](function(){_0x4ed2e3(_0x3ccb15);},function(){const _0x271119=_0x44ceac;console[_0x271119(0x9b4)]('CANCEL');});}function _0x8dc3b0(_0x49afc3){const _0x16f16f=_0x164a95,_0x4d098f=_0x51e1b9[_0x16f16f(0x856)]()['title'](_0x16f16f(0x1cb4))[_0x16f16f(0x33a)](_0x16f16f(0x50b)+_0x1b4698[_0x16f16f(0x2639)]['length']+_0x16f16f(0x163e)+_0x16f16f(0x4b8))[_0x16f16f(0x213e)](_0x16f16f(0x24f6))[_0x16f16f(0x2283)](_0x49afc3)['ok']('OK')[_0x16f16f(0x101a)](_0x16f16f(0x18fd));_0x51e1b9[_0x16f16f(0xa60)](_0x4d098f)[_0x16f16f(0x64a)](function(){const _0x5146b1=_0x16f16f;_0x1b4698[_0x5146b1(0x2639)][_0x5146b1(0x1397)](function(_0x517bb1){_0x4ed2e3(_0x517bb1);}),_0x1b4698[_0x5146b1(0x2639)]=[];});}_0x1b4698['selectedDescriptions']=[],_0x1b4698[_0x164a95(0x3a2)]=_0x2395b6,_0x1b4698[_0x164a95(0x183a)]=_0x469da3,_0x1b4698[_0x164a95(0x1efc)]=_0x3c4274;function _0x2395b6(_0x3c6aa2,_0xaab933){const _0x4b5e94=_0x164a95;_0x51e1b9[_0x4b5e94(0xa60)]({'controller':_0x4b5e94(0x89f),'controllerAs':'vm','templateUrl':_0x1ea42c,'parent':angular[_0x4b5e94(0x1f81)](_0x757305['body']),'targetEvent':_0x3c6aa2,'clickOutsideToClose':!![],'locals':{'type':_0x4b5e94(0x23c3),'item':_0xaab933,'items':_0x1b4698[_0x4b5e94(0x24b6)],'configuration':_0x1b4698[_0x4b5e94(0x3bd)],'account':_0x1b4698[_0x4b5e94(0x1b1c)],'license':null,'setting':null,'crudPermissions':_0x1b4698['crudPermissions']}});}function _0x480973(_0x40335a){const _0x575e6b=_0x164a95;_0x5c72a1[_0x575e6b(0x1919)][_0x575e6b(0xabd)]({'id':_0x40335a['id']})['$promise'][_0x575e6b(0x64a)](function(){const _0x4fc467=_0x575e6b;_0x28c606()['remove'](_0x1b4698[_0x4fc467(0x24b6)],{'id':_0x40335a['id']}),_0x440d7c['success']({'title':'Description\x20deleted!','msg':_0x4fc467(0x213f)});})['catch'](function(_0x431b8e){const _0x37bacc=_0x575e6b;_0x440d7c['error']({'title':_0x431b8e[_0x37bacc(0x10b3)]?_0x37bacc(0x575)+_0x431b8e[_0x37bacc(0x10b3)]+'\x20-\x20'+_0x431b8e['statusText']:_0x37bacc(0x12a9),'msg':_0x431b8e[_0x37bacc(0x1c52)]?JSON[_0x37bacc(0x2317)](_0x431b8e[_0x37bacc(0x1c52)]):_0x431b8e[_0x37bacc(0x2915)]()});});}function _0x469da3(_0x1e2691,_0x1e1302){const _0x13e294=_0x164a95,_0x4bfb93=_0x51e1b9[_0x13e294(0x856)]()[_0x13e294(0x2021)](_0x13e294(0x80e))[_0x13e294(0x33a)]('Description'+_0x13e294(0x4b8))[_0x13e294(0x213e)](_0x13e294(0x748))[_0x13e294(0x2283)](_0x1e2691)['ok']('OK')[_0x13e294(0x101a)](_0x13e294(0x18fd));_0x51e1b9['show'](_0x4bfb93)[_0x13e294(0x64a)](function(){_0x480973(_0x1e1302);},function(){const _0x244d73=_0x13e294;console[_0x244d73(0x9b4)](_0x244d73(0x18fd));});}function _0x3c4274(_0x1d6d94){const _0x24430b=_0x164a95,_0x590ba8=_0x51e1b9[_0x24430b(0x856)]()[_0x24430b(0x2021)](_0x24430b(0xbe4))[_0x24430b(0x33a)](_0x24430b(0x50b)+_0x1b4698[_0x24430b(0x21c1)][_0x24430b(0x1b9e)]+_0x24430b(0x163e)+'\x20will\x20be\x20deleted.')[_0x24430b(0x213e)]('delete\x20descriptions')[_0x24430b(0x2283)](_0x1d6d94)['ok']('OK')[_0x24430b(0x101a)](_0x24430b(0x18fd));_0x51e1b9[_0x24430b(0xa60)](_0x590ba8)['then'](function(){const _0x1cea6e=_0x24430b;_0x1b4698[_0x1cea6e(0x21c1)][_0x1cea6e(0x1397)](function(_0x46793c){_0x480973(_0x46793c);}),_0x1b4698[_0x1cea6e(0x21c1)]=[];});}_0x1b4698[_0x164a95(0xa3a)]=[],_0x1b4698[_0x164a95(0x569)]=_0x2da96d,_0x1b4698[_0x164a95(0x1436)]=_0x186a50,_0x1b4698['deleteSelectedFields']=_0x341f03;function _0x2da96d(_0x502984,_0x2fbc5c){const _0x5c97ee=_0x164a95;_0x51e1b9[_0x5c97ee(0xa60)]({'controller':_0x5c97ee(0x89f),'controllerAs':'vm','templateUrl':_0x1ea42c,'parent':angular[_0x5c97ee(0x1f81)](_0x757305[_0x5c97ee(0xb49)]),'targetEvent':_0x502984,'clickOutsideToClose':!![],'locals':{'type':_0x5c97ee(0xc26),'item':_0x2fbc5c,'items':_0x1b4698[_0x5c97ee(0xf26)],'configuration':_0x1b4698[_0x5c97ee(0x3bd)],'account':_0x1b4698['vtigerAccount'],'license':null,'setting':null,'crudPermissions':_0x1b4698[_0x5c97ee(0x402)]}});}function _0x33f7de(_0x3a2f9d){const _0x4468af=_0x164a95;_0x5c72a1[_0x4468af(0x1919)]['delete']({'id':_0x3a2f9d['id']})[_0x4468af(0x15e7)][_0x4468af(0x64a)](function(){const _0x39cf0d=_0x4468af;_0x28c606()[_0x39cf0d(0x21c7)](_0x1b4698[_0x39cf0d(0xf26)],{'id':_0x3a2f9d['id']}),_0x440d7c['success']({'title':_0x39cf0d(0x13e7),'msg':_0x39cf0d(0x14b)});})[_0x4468af(0x20cd)](function(_0x1d9448){const _0x4f61fd=_0x4468af;_0x440d7c[_0x4f61fd(0x1bd0)]({'title':_0x1d9448[_0x4f61fd(0x10b3)]?'API:'+_0x1d9448[_0x4f61fd(0x10b3)]+_0x4f61fd(0x21db)+_0x1d9448[_0x4f61fd(0x2115)]:_0x4f61fd(0x12a9),'msg':_0x1d9448[_0x4f61fd(0x1c52)]?JSON[_0x4f61fd(0x2317)](_0x1d9448[_0x4f61fd(0x1c52)]):_0x1d9448[_0x4f61fd(0x2915)]()});});}function _0x186a50(_0x1bc0fb,_0x51400d){const _0x4830af=_0x164a95,_0x27397c=_0x51e1b9['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0x4830af(0x33a)](_0x4830af(0x1a56)+_0x4830af(0x4b8))[_0x4830af(0x213e)]('delete\x20field')[_0x4830af(0x2283)](_0x1bc0fb)['ok']('OK')[_0x4830af(0x101a)](_0x4830af(0x18fd));_0x51e1b9[_0x4830af(0xa60)](_0x27397c)[_0x4830af(0x64a)](function(){_0x33f7de(_0x51400d);},function(){const _0x47ddae=_0x4830af;console[_0x47ddae(0x9b4)](_0x47ddae(0x18fd));});}function _0x341f03(_0x37943a){const _0x2ca572=_0x164a95,_0x3ec21a=_0x51e1b9[_0x2ca572(0x856)]()[_0x2ca572(0x2021)](_0x2ca572(0x17bf))['htmlContent'](''+_0x1b4698[_0x2ca572(0xa3a)][_0x2ca572(0x1b9e)]+'\x20selected'+_0x2ca572(0x4b8))[_0x2ca572(0x213e)](_0x2ca572(0x11bc))[_0x2ca572(0x2283)](_0x37943a)['ok']('OK')[_0x2ca572(0x101a)](_0x2ca572(0x18fd));_0x51e1b9[_0x2ca572(0xa60)](_0x3ec21a)[_0x2ca572(0x64a)](function(){const _0x56f4e3=_0x2ca572;_0x1b4698[_0x56f4e3(0xa3a)][_0x56f4e3(0x1397)](function(_0x5bbb27){_0x33f7de(_0x5bbb27);}),_0x1b4698['selectedFields']=[];});}}const _0x12ab1a=_0xab09df;;_0x3bacde['$inject']=[_0x49a1e3(0x1674),'$state','$location',_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),'configurations',_0x49a1e3(0x3bd),'api',_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x3bacde(_0x3d9645,_0x16c5e4,_0x50d60c,_0x4095e8,_0x212b0b,_0x20edc4,_0x1a00bd,_0x3acc66,_0x3d11c,_0x208185,_0x23ffe9,_0x25f991,_0x495c6c,_0x5ebf61){const _0x12f85e=_0x49a1e3,_0x5acbee=this;_0x5acbee[_0x12f85e(0x1d3d)]=_0x23ffe9[_0x12f85e(0x808)](),_0x5acbee['errors']=[],_0x5acbee[_0x12f85e(0x28d6)]=_0x495c6c,_0x5acbee['license']=_0x25f991,_0x5acbee[_0x12f85e(0x402)]=_0x5ebf61,_0x5acbee[_0x12f85e(0x6c2)]={},_0x5acbee[_0x12f85e(0xccc)]=_0x5acbee[_0x12f85e(0x28d6)]&&_0x5acbee[_0x12f85e(0x28d6)][_0x12f85e(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5acbee[_0x12f85e(0x2021)]=_0x12f85e(0x3fb),_0x5acbee[_0x12f85e(0x3bd)]=angular[_0x12f85e(0x289e)](_0x3d11c),_0x5acbee[_0x12f85e(0x23a8)]=_0x3acc66,_0x5acbee[_0x12f85e(0x185)]=![];!_0x5acbee[_0x12f85e(0x3bd)]&&(_0x5acbee[_0x12f85e(0x3bd)]={'channel':_0x12f85e(0x227c),'type':_0x12f85e(0x12a4)},_0x5acbee['title']=_0x12f85e(0x170d),_0x5acbee[_0x12f85e(0x185)]=!![]);_0x5acbee[_0x12f85e(0x2486)]=_0x463407,_0x5acbee[_0x12f85e(0x113a)]=_0x252caa,_0x5acbee['deleteVtigerConfiguration']=_0x110323,_0x5acbee[_0x12f85e(0x1605)]=_0x4632d0,_0x5acbee[_0x12f85e(0x16cb)]=_0x536588;function _0x463407(){const _0x2a0b49=_0x12f85e;_0x5acbee[_0x2a0b49(0xbae)]=[],_0x208185['intVtigerAccount'][_0x2a0b49(0x1d2d)]({'id':_0x16c5e4[_0x2a0b49(0x1b48)]['id']},_0x5acbee[_0x2a0b49(0x3bd)])[_0x2a0b49(0x15e7)][_0x2a0b49(0x64a)](function(_0x5366a6){const _0x10d6a0=_0x2a0b49;_0x5acbee['configurations'][_0x10d6a0(0x1891)](_0x5366a6[_0x10d6a0(0x14f8)]()),_0x1a00bd[_0x10d6a0(0x1339)]({'title':_0x10d6a0(0xbb0),'msg':_0x5acbee[_0x10d6a0(0x3bd)][_0x10d6a0(0x2494)]?_0x5acbee[_0x10d6a0(0x3bd)][_0x10d6a0(0x2494)]+_0x10d6a0(0x258d):''}),_0x536588(_0x5366a6);})[_0x2a0b49(0x20cd)](function(_0x4ddf81){const _0x50d14c=_0x2a0b49;if(_0x4ddf81[_0x50d14c(0x1c52)]&&_0x4ddf81['data'][_0x50d14c(0xbae)]&&_0x4ddf81['data'][_0x50d14c(0xbae)][_0x50d14c(0x1b9e)]){_0x5acbee['errors']=_0x4ddf81[_0x50d14c(0x1c52)][_0x50d14c(0xbae)]||[{'message':_0x4ddf81[_0x50d14c(0x2915)](),'type':_0x50d14c(0xc57)}];for(let _0x352e04=0x0;_0x352e04<_0x4ddf81[_0x50d14c(0x1c52)]['errors']['length'];_0x352e04+=0x1){_0x1a00bd[_0x50d14c(0x1bd0)]({'title':_0x4ddf81[_0x50d14c(0x1c52)]['errors'][_0x352e04][_0x50d14c(0x2185)],'msg':_0x4ddf81[_0x50d14c(0x1c52)]['errors'][_0x352e04][_0x50d14c(0x18ca)]});}}else _0x1a00bd['error']({'title':_0x4ddf81[_0x50d14c(0x10b3)]?_0x50d14c(0x575)+_0x4ddf81['status']+_0x50d14c(0x21db)+_0x4ddf81[_0x50d14c(0x2115)]:_0x50d14c(0xc57),'msg':_0x4ddf81[_0x50d14c(0x1c52)]?JSON['stringify'](_0x4ddf81[_0x50d14c(0x1c52)][_0x50d14c(0x18ca)]):_0x4ddf81[_0x50d14c(0x2915)]()});});}function _0x252caa(){const _0x552071=_0x12f85e;_0x5acbee[_0x552071(0xbae)]=[],_0x208185['intVtigerConfiguration'][_0x552071(0x2603)]({'id':_0x5acbee['vtigerConfiguration']['id']},_0x5acbee[_0x552071(0x3bd)])[_0x552071(0x15e7)][_0x552071(0x64a)](function(_0x46bacc){const _0x41e461=_0x552071,_0x221639=_0x28c606()[_0x41e461(0x27bc)](_0x5acbee[_0x41e461(0x23a8)],{'id':_0x46bacc['id']});_0x221639&&_0x28c606()[_0x41e461(0x14fe)](_0x221639,_0x28c606()[_0x41e461(0x27bb)](_0x46bacc['toJSON'](),_0x28c606()[_0x41e461(0x1ec6)](_0x221639))),_0x1a00bd[_0x41e461(0x1339)]({'title':_0x41e461(0x3c5),'msg':_0x5acbee[_0x41e461(0x3bd)][_0x41e461(0x2494)]?_0x5acbee[_0x41e461(0x3bd)]['name']+'\x20has\x20been\x20saved!':''}),_0x536588(_0x46bacc);})[_0x552071(0x20cd)](function(_0x3c8b35){const _0x90562d=_0x552071;if(_0x3c8b35[_0x90562d(0x1c52)]&&_0x3c8b35[_0x90562d(0x1c52)]['errors']&&_0x3c8b35[_0x90562d(0x1c52)]['errors'][_0x90562d(0x1b9e)]){_0x5acbee[_0x90562d(0xbae)]=_0x3c8b35[_0x90562d(0x1c52)][_0x90562d(0xbae)]||[{'message':_0x3c8b35[_0x90562d(0x2915)](),'type':_0x90562d(0x286e)}];for(let _0x3bf2c3=0x0;_0x3bf2c3<_0x3c8b35['data'][_0x90562d(0xbae)][_0x90562d(0x1b9e)];_0x3bf2c3++){_0x1a00bd[_0x90562d(0x1bd0)]({'title':_0x3c8b35[_0x90562d(0x1c52)][_0x90562d(0xbae)][_0x3bf2c3][_0x90562d(0x2185)],'msg':_0x3c8b35['data'][_0x90562d(0xbae)][_0x3bf2c3]['message']});}}else _0x1a00bd[_0x90562d(0x1bd0)]({'title':_0x3c8b35['status']?'API:'+_0x3c8b35[_0x90562d(0x10b3)]+_0x90562d(0x21db)+_0x3c8b35[_0x90562d(0x2115)]:'api.intVtigerConfiguration.update','msg':_0x3c8b35['data']?JSON[_0x90562d(0x2317)](_0x3c8b35[_0x90562d(0x1c52)][_0x90562d(0x18ca)]):_0x3c8b35[_0x90562d(0x2915)]()});});}function _0x110323(_0x56ec13){const _0x1568d1=_0x12f85e;_0x5acbee['errors']=[];const _0x59f100=_0x4095e8['confirm']()['title'](_0x1568d1(0x103a))[_0x1568d1(0x12b8)](_0x1568d1(0x410))['ariaLabel']('Delete\x20VtigerConfiguration')['ok'](_0x1568d1(0x2664))['cancel']('Cancel')[_0x1568d1(0x2283)](_0x56ec13);_0x4095e8['show'](_0x59f100)[_0x1568d1(0x64a)](function(){const _0x113a7f=_0x1568d1;_0x208185[_0x113a7f(0x82c)][_0x113a7f(0xabd)]({'id':_0x5acbee[_0x113a7f(0x3bd)]['id']})[_0x113a7f(0x15e7)][_0x113a7f(0x64a)](function(){const _0x865842=_0x113a7f;_0x28c606()[_0x865842(0x21c7)](_0x5acbee[_0x865842(0x23a8)],{'id':_0x5acbee['vtigerConfiguration']['id']}),_0x1a00bd[_0x865842(0x1339)]({'title':_0x865842(0x2843),'msg':(_0x5acbee[_0x865842(0x3bd)][_0x865842(0x2494)]||'vtigerConfiguration')+'\x20has\x20been\x20deleted!'}),_0x536588(_0x5acbee[_0x865842(0x3bd)]);})[_0x113a7f(0x20cd)](function(_0x4626e8){const _0x1cb0fe=_0x113a7f;if(_0x4626e8[_0x1cb0fe(0x1c52)]&&_0x4626e8[_0x1cb0fe(0x1c52)]['errors']&&_0x4626e8[_0x1cb0fe(0x1c52)]['errors'][_0x1cb0fe(0x1b9e)]){_0x5acbee[_0x1cb0fe(0xbae)]=_0x4626e8[_0x1cb0fe(0x1c52)]['errors']||[{'message':_0x4626e8['toString'](),'type':_0x1cb0fe(0xec2)}];for(let _0x2e2cd4=0x0;_0x2e2cd4<_0x4626e8[_0x1cb0fe(0x1c52)]['errors'][_0x1cb0fe(0x1b9e)];_0x2e2cd4++){_0x1a00bd[_0x1cb0fe(0x1bd0)]({'title':_0x4626e8[_0x1cb0fe(0x1c52)]['errors'][_0x2e2cd4]['type'],'msg':_0x4626e8[_0x1cb0fe(0x1c52)][_0x1cb0fe(0xbae)][_0x2e2cd4][_0x1cb0fe(0x18ca)]});}}else _0x1a00bd[_0x1cb0fe(0x1bd0)]({'title':_0x4626e8[_0x1cb0fe(0x10b3)]?_0x1cb0fe(0x575)+_0x4626e8[_0x1cb0fe(0x10b3)]+'\x20-\x20'+_0x4626e8[_0x1cb0fe(0x2115)]:_0x1cb0fe(0xec2),'msg':_0x4626e8[_0x1cb0fe(0x1c52)]?JSON['stringify'](_0x4626e8[_0x1cb0fe(0x1c52)]['message']):_0x4626e8['message']||_0x4626e8[_0x1cb0fe(0x2915)]()});});},function(){});}function _0x4632d0(_0x56c104){return _0x56c104===null?undefined:new Date(_0x56c104);}function _0x536588(_0x1ed93b){const _0x35e45d=_0x12f85e;_0x4095e8[_0x35e45d(0x268e)](_0x1ed93b);}}const _0x4301c3=_0x3bacde;;_0x440835[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),_0x49a1e3(0x680),_0x49a1e3(0x9a4),_0x49a1e3(0x23cb),_0x49a1e3(0x1656),_0x49a1e3(0x3e3),_0x49a1e3(0x2185),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x402)];function _0x440835(_0x3bcc39,_0x3be51f,_0x4bc1ff,_0x407dbb,_0x49aa7d,_0x2547d7,_0x13df1e,_0x56ead6,_0x45f913,_0x39c50e,_0x1c02c7,_0xa215ef,_0x4b7bcc){const _0x5eb9b1=_0x49a1e3,_0x4ba5a3=this;_0x4ba5a3[_0x5eb9b1(0x1d3d)]=_0xa215ef[_0x5eb9b1(0x808)](),_0x4ba5a3[_0x5eb9b1(0xbae)]=[],_0x4ba5a3['title']='INTEGRATIONS.EDIT_'+_0x28c606()['toUpper'](_0x39c50e),_0x4ba5a3[_0x5eb9b1(0x1656)]=angular[_0x5eb9b1(0x289e)](_0x56ead6),_0x4ba5a3[_0x5eb9b1(0x23cb)]=_0x13df1e,_0x4ba5a3['type']=_0x39c50e,_0x4ba5a3['crudPermissions']=_0x4b7bcc,_0x4ba5a3[_0x5eb9b1(0xd33)]=![];!_0x4ba5a3[_0x5eb9b1(0x1656)]&&(_0x4ba5a3[_0x5eb9b1(0x1656)]={'type':_0x5eb9b1(0x108c)},_0x4ba5a3['item'][_0x28c606()['capitalize'](_0x39c50e)+'Id']=_0x2547d7['id'],_0x4ba5a3[_0x5eb9b1(0x2021)]=_0x5eb9b1(0x1ad9)+_0x28c606()['toUpper'](_0x39c50e),_0x4ba5a3[_0x5eb9b1(0xd33)]=!![]);_0x4ba5a3['addNewItem']=_0x41b083,_0x4ba5a3['saveItem']=_0x20d129,_0x4ba5a3['deleteItem']=_0x5699d9,_0x4ba5a3[_0x5eb9b1(0x14d)]=_0x2170df,_0x4ba5a3[_0x5eb9b1(0x16cb)]=_0x45c435,_0x1c02c7[_0x5eb9b1(0xefb)][_0x5eb9b1(0x896)]({'nolimit':!![]})[_0x5eb9b1(0x15e7)][_0x5eb9b1(0x64a)](function(_0x540ecc){const _0x280094=_0x5eb9b1;return _0x4ba5a3['variables']=_0x540ecc[_0x280094(0x28b8)]?_0x540ecc[_0x280094(0x28b8)]:[],_0x1c02c7['voiceAgentReport'][_0x280094(0xa81)]()[_0x280094(0x15e7)];})[_0x5eb9b1(0x64a)](function(_0x35be27){const _0x4668da=_0x5eb9b1;return _0x4ba5a3['voiceAgentReportColumns']=_0x28c606()[_0x4668da(0xde7)](_0x28c606()[_0x4668da(0x1ec6)](_0x35be27),[_0x4668da(0x15e7),'$resolved',_0x4668da(0x2378),_0x4668da(0x2056),_0x4668da(0x2785)]),_0x4ba5a3['voiceAgentReportColumns'][_0x4668da(0x1954)](_0x4668da(0xdd4)),_0x1c02c7['voiceDialReport'][_0x4668da(0xa81)]()[_0x4668da(0x15e7)];})[_0x5eb9b1(0x64a)](function(_0x31b7dc){const _0x1bd73d=_0x5eb9b1;_0x4ba5a3[_0x1bd73d(0xdae)]=_0x28c606()[_0x1bd73d(0xde7)](_0x28c606()[_0x1bd73d(0x1ec6)](_0x31b7dc),[_0x1bd73d(0x15e7),_0x1bd73d(0x19ba),'createdAt',_0x1bd73d(0x2056),_0x1bd73d(0x2785)]),_0x4ba5a3[_0x1bd73d(0xdae)][_0x1bd73d(0x1954)](_0x1bd73d(0xdd4));})['catch'](function(_0x4f2234){const _0x135509=_0x5eb9b1;_0x49aa7d[_0x135509(0x1bd0)]({'title':_0x4f2234['status']?_0x135509(0x575)+_0x4f2234['status']+'\x20-\x20'+_0x4f2234[_0x135509(0x2115)]:_0x135509(0x195a),'msg':_0x4f2234[_0x135509(0x1c52)]?JSON[_0x135509(0x2317)](_0x4f2234['data']):_0x4f2234[_0x135509(0x2915)]()});}),_0x1c02c7[_0x5eb9b1(0xb99)][_0x5eb9b1(0x5e0)]({'id':_0x45f913['id'],'ticketType':_0x2547d7['ticketType']?_0x2547d7[_0x5eb9b1(0x1545)]:undefined})['$promise'][_0x5eb9b1(0x64a)](function(_0x4b4808){const _0x2da003=_0x5eb9b1;_0x4ba5a3['accountConnected']=!![],_0x4ba5a3['fields']=_0x4b4808['rows']?_0x4b4808[_0x2da003(0x28b8)]:[],_0x4ba5a3[_0x2da003(0x1656)][_0x2da003(0x197)]&&(_0x4ba5a3[_0x2da003(0x1753)]=_0x28c606()[_0x2da003(0x27bc)](_0x4ba5a3[_0x2da003(0xf26)],{'id':_0x4ba5a3['item'][_0x2da003(0x197)]}));})[_0x5eb9b1(0x20cd)](function(_0x1b33be){const _0x26cc30=_0x5eb9b1;_0x4ba5a3[_0x26cc30(0x854)]=![],console[_0x26cc30(0x1bd0)](_0x1b33be);});function _0x41b083(){const _0x5b05ab=_0x5eb9b1;_0x4ba5a3[_0x5b05ab(0xbae)]=[],_0x4ba5a3[_0x5b05ab(0x1753)]&&(_0x4ba5a3[_0x5b05ab(0x1656)]['idField']=_0x4ba5a3[_0x5b05ab(0x1753)]['id'],_0x4ba5a3['item'][_0x5b05ab(0x25fc)]=_0x4ba5a3[_0x5b05ab(0x1753)]['name'],_0x4ba5a3[_0x5b05ab(0x1656)][_0x5b05ab(0x1753)]=_0x4ba5a3[_0x5b05ab(0x1753)][_0x5b05ab(0x1ad6)]),_0x1c02c7[_0x5b05ab(0x1919)][_0x5b05ab(0x2479)](_0x4ba5a3[_0x5b05ab(0x1656)])[_0x5b05ab(0x15e7)][_0x5b05ab(0x64a)](function(_0x478dd7){const _0x422bfc=_0x5b05ab;_0x4ba5a3['items'][_0x422bfc(0x1891)](_0x478dd7),_0x49aa7d[_0x422bfc(0x1339)]({'title':_0x28c606()['capitalize'](_0x39c50e)+_0x422bfc(0xe0b),'msg':_0x28c606()[_0x422bfc(0xd56)](_0x39c50e)+_0x422bfc(0x258d)}),_0x45c435();})['catch'](function(_0x380f50){const _0x382d13=_0x5b05ab;console[_0x382d13(0x1bd0)](_0x380f50),_0x4ba5a3['errors']=_0x380f50['data']['errors']||[{'message':_0x380f50[_0x382d13(0x2915)](),'type':_0x382d13(0x1675)}];});}function _0x20d129(){const _0x171d52=_0x5eb9b1;_0x4ba5a3[_0x171d52(0xbae)]=[],_0x4ba5a3[_0x171d52(0x1753)]&&(_0x4ba5a3[_0x171d52(0x1656)]['idField']=_0x4ba5a3[_0x171d52(0x1753)]['id'],_0x4ba5a3[_0x171d52(0x1656)][_0x171d52(0x25fc)]=_0x4ba5a3[_0x171d52(0x1753)][_0x171d52(0x2494)],_0x4ba5a3[_0x171d52(0x1656)][_0x171d52(0x1753)]=_0x4ba5a3[_0x171d52(0x1753)][_0x171d52(0x1ad6)]),_0x1c02c7['intVtigerField'][_0x171d52(0x2603)]({'id':_0x4ba5a3['item']['id']},_0x4ba5a3[_0x171d52(0x1656)])[_0x171d52(0x15e7)][_0x171d52(0x64a)](function(_0x3ac9e1){const _0x50e486=_0x171d52,_0x41eb41=_0x28c606()[_0x50e486(0x27bc)](_0x4ba5a3[_0x50e486(0x23cb)],{'id':_0x3ac9e1['id']});_0x41eb41&&_0x28c606()['merge'](_0x41eb41,_0x3ac9e1),_0x49aa7d['success']({'title':_0x28c606()[_0x50e486(0xd56)](_0x39c50e)+_0x50e486(0x2776),'msg':_0x28c606()[_0x50e486(0xd56)](_0x39c50e)+_0x50e486(0x271)}),_0x45c435();})[_0x171d52(0x20cd)](function(_0x1d5c5e){const _0x59abfc=_0x171d52;console['error'](_0x1d5c5e),_0x4ba5a3[_0x59abfc(0xbae)]=_0x1d5c5e[_0x59abfc(0x1c52)][_0x59abfc(0xbae)]||[{'message':_0x1d5c5e[_0x59abfc(0x2915)](),'type':_0x59abfc(0x671)}];});}function _0x5699d9(_0x57dadc){const _0x478539=_0x5eb9b1;_0x4ba5a3['errors']=[];const _0x578619=_0x407dbb['confirm']()['title'](_0x478539(0x103a))[_0x478539(0x12b8)](_0x478539(0x2966)+_0x39c50e+_0x478539(0x4b8))['ariaLabel']('Delete\x20'+_0x28c606()['capitalize'](_0x39c50e))['ok'](_0x478539(0x2664))['cancel'](_0x478539(0x1dc6))['targetEvent'](_0x57dadc);_0x407dbb[_0x478539(0xa60)](_0x578619)['then'](function(){const _0x361e9d=_0x478539;_0x1c02c7[_0x361e9d(0x1919)][_0x361e9d(0xabd)]({'id':_0x4ba5a3[_0x361e9d(0x1656)]['id']})[_0x361e9d(0x15e7)][_0x361e9d(0x64a)](function(){const _0xaa8fff=_0x361e9d;_0x28c606()[_0xaa8fff(0x21c7)](_0x4ba5a3[_0xaa8fff(0x23cb)],{'id':_0x4ba5a3[_0xaa8fff(0x1656)]['id']}),_0x49aa7d['success']({'title':_0x28c606()[_0xaa8fff(0xd56)](_0x39c50e)+'\x20properly\x20deleted!','msg':_0x28c606()['capitalize'](_0x39c50e)+_0xaa8fff(0x1fa8)}),_0x45c435();})['catch'](function(_0x4a721c){const _0x2078dd=_0x361e9d;console[_0x2078dd(0x1bd0)](_0x4a721c),_0x4ba5a3[_0x2078dd(0xbae)]=_0x4a721c['data'][_0x2078dd(0xbae)]||[{'message':_0x4a721c[_0x2078dd(0x2915)](),'type':_0x2078dd(0x27aa)}];});},function(){});}function _0x2170df(){const _0x37be2a=_0x5eb9b1;return _0x4ba5a3[_0x37be2a(0x1656)][_0x37be2a(0x1299)]!==undefined?_0x4ba5a3[_0x37be2a(0x1656)][_0x37be2a(0x1299)]:_0x37be2a(0xfae);}function _0x45c435(){_0x407dbb['hide']();}}const _0x3e75e=_0x440835;;_0x2132f1[_0x49a1e3(0x1e73)]=['$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),'toasty','Auth',_0x49a1e3(0x1b1c),_0x49a1e3(0x16b2)];function _0x2132f1(_0x5a078f,_0x35df97,_0xf0566d,_0x3ee976,_0x14c5ef,_0x26406e,_0x1c9d44,_0x56e2d9,_0x4688db,_0x8cc1b2,_0x565c6c,_0x51d64f){const _0x13b628=_0x49a1e3,_0x1e9e37=this;_0x1e9e37['currentUser']=_0x8cc1b2[_0x13b628(0x808)](),_0x1e9e37[_0x13b628(0x1947)]=_0x26406e,_0x1e9e37[_0x13b628(0x28d6)]=_0x1c9d44,_0x1e9e37[_0x13b628(0xccc)]=_0x1e9e37[_0x13b628(0x28d6)][_0x13b628(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1e9e37[_0x13b628(0xb36)]=_0x35df97[_0x13b628(0x48e)]()+_0x13b628(0xe1f)+_0x35df97['host'](),_0x1e9e37[_0x13b628(0x1b1c)]=_0x565c6c||_0x5a078f[_0x13b628(0x1b48)]['vtigerAccount']||{},_0x1e9e37['userProfileSection']=_0x51d64f&&_0x51d64f[_0x13b628(0xb90)]==0x1?_0x51d64f['rows'][0x0]:null,_0x1e9e37['crudPermissions']=_0x8cc1b2[_0x13b628(0xa7e)](_0x1e9e37['userProfileSection']?_0x1e9e37[_0x13b628(0x16b2)][_0x13b628(0x402)]:null),_0x1e9e37['hasModulePermissions']={},_0x1e9e37[_0x13b628(0x197c)]=_0x5a078f[_0x13b628(0x1b48)][_0x13b628(0x1222)]||0x0,_0x1e9e37[_0x13b628(0x2540)]=_0x4688db['info'],_0x1e9e37['gotoVtigerAccounts']=_0x54e883,_0x1e9e37['saveVtigerAccount']=_0x3f6730;function _0x54e883(){const _0x3d649a=_0x13b628;_0x5a078f['go'](_0x3d649a(0xb8a),{},{'reload':_0x3d649a(0xb8a)});}function _0x3f6730(){const _0x258dce=_0x13b628;_0x56e2d9[_0x258dce(0xb99)][_0x258dce(0x2603)]({'id':_0x1e9e37['vtigerAccount']['id']},_0x1e9e37[_0x258dce(0x1b1c)])[_0x258dce(0x15e7)][_0x258dce(0x64a)](function(){const _0x176272=_0x258dce;_0x4688db[_0x176272(0x1339)]({'title':'VtigerAccount\x20updated!','msg':_0x1e9e37[_0x176272(0x1b1c)][_0x176272(0x2494)]?_0x1e9e37[_0x176272(0x1b1c)][_0x176272(0x2494)]+'\x20has\x20been\x20updated!':''});})[_0x258dce(0x20cd)](function(_0x17b5e3){const _0x40e1d4=_0x258dce;_0x4688db[_0x40e1d4(0x1bd0)]({'title':_0x17b5e3[_0x40e1d4(0x10b3)]?_0x40e1d4(0x575)+_0x17b5e3[_0x40e1d4(0x10b3)]+_0x40e1d4(0x21db)+_0x17b5e3[_0x40e1d4(0x2115)]:_0x40e1d4(0xf84),'msg':_0x17b5e3[_0x40e1d4(0x1c52)]?JSON[_0x40e1d4(0x2317)](_0x17b5e3[_0x40e1d4(0x1c52)]):_0x17b5e3[_0x40e1d4(0x2915)]()});});}}const _0x3c6392=_0x2132f1;;const _0x92055a=_0x2e4a48['p']+_0x49a1e3(0x103d);;_0x36c4ff['$inject']=['$scope',_0x49a1e3(0x1fe7),'$state',_0x49a1e3(0x2899),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),'vtigerAccounts',_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),'msUtils',_0x49a1e3(0x680),_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6)];function _0x36c4ff(_0x4d5ffb,_0x2efbd1,_0x394920,_0x4810d6,_0x30ef1c,_0xe495a2,_0x1c20ba,_0xeef273,_0xdd966f,_0x36fd01,_0x3c4782,_0x2ba3b5,_0x25bdcd,_0x132bc9,_0x4a90fc,_0x3fe9d2,_0x5efa2f){const _0xd52e5a=_0x49a1e3,_0x3ed4f8=this;_0x3ed4f8[_0xd52e5a(0x1947)]=_0x3fe9d2,_0x3ed4f8[_0xd52e5a(0x28d6)]=_0x5efa2f,_0x3ed4f8[_0xd52e5a(0x1d3d)]=_0x4a90fc[_0xd52e5a(0x808)](),_0x3ed4f8[_0xd52e5a(0x18b0)]=_0xdd966f||{'count':0x0,'rows':[]},_0x3ed4f8[_0xd52e5a(0x16a8)]=_0x36fd01,_0x3ed4f8['userProfileSection']=_0x3c4782&&_0x3c4782[_0xd52e5a(0xb90)]==0x1?_0x3c4782[_0xd52e5a(0x28b8)][0x0]:null,_0x3ed4f8[_0xd52e5a(0x402)]=_0x4a90fc['parseCrudPermissions'](_0x3ed4f8[_0xd52e5a(0x16b2)]?_0x3ed4f8[_0xd52e5a(0x16b2)][_0xd52e5a(0x402)]:null),_0x3ed4f8['table']=_0xd52e5a(0x18b0),_0x3ed4f8[_0xd52e5a(0x300)]='',_0x3ed4f8[_0xd52e5a(0x2748)]=null,_0x3ed4f8[_0xd52e5a(0x21ea)]=[],_0x3ed4f8['query']={'fields':_0xd52e5a(0x1113),'limit':0xa,'page':0x1},_0x3ed4f8[_0xd52e5a(0xff6)]=_0xf9d247,_0x3ed4f8[_0xd52e5a(0x1348)]=_0xd4e87,_0x3ed4f8['deleteconfirm']=_0xa96558,_0x3ed4f8[_0xd52e5a(0x1339)]=_0x5b14d6,_0x3ed4f8[_0xd52e5a(0x1ce2)]=_0x44c661,_0x3ed4f8[_0xd52e5a(0xe5c)]=_0x103ade,_0x3ed4f8[_0xd52e5a(0x1688)]=_0x1cd350,_0x3ed4f8[_0xd52e5a(0x1d41)]=_0x311377,_0x3ed4f8[_0xd52e5a(0xc28)]=_0x19ee4e,_0x3ed4f8['deselectVtigerAccounts']=_0x28cc72,_0x3ed4f8[_0xd52e5a(0xe3f)]=_0x2c80b;function _0xf9d247(_0x46cadb){const _0x2fcdc8=_0xd52e5a;_0x394920['go']('app.integrations.vtigerAccounts.edit',{'id':_0x46cadb['id'],'vtigerAccount':_0x46cadb,'crudPermissions':_0x3ed4f8[_0x2fcdc8(0x402)]});}function _0xd4e87(_0x22ac63){const _0x49aa80=_0xd52e5a;return _0x2ba3b5[_0x49aa80(0xb99)][_0x49aa80(0x5e0)]({'id':_0x22ac63['id'],'test':!![]})[_0x49aa80(0x15e7)]['then'](function(){const _0x59a28d=_0x49aa80;_0x132bc9[_0x59a28d(0x1339)]({'title':_0x59a28d(0x91b),'msg':_0x59a28d(0x259b)});})['catch'](function(_0x242ddb){const _0x32c140=_0x49aa80;_0x132bc9[_0x32c140(0x1bd0)]({'title':'VtigerAccount\x20properly\x20tested','msg':_0x242ddb[_0x32c140(0x1c52)]?_0x242ddb[_0x32c140(0x1c52)][_0x32c140(0x18ca)]?_0x242ddb[_0x32c140(0x1c52)][_0x32c140(0x18ca)]:JSON[_0x32c140(0x2317)](_0x242ddb[_0x32c140(0x1c52)]):_0x242ddb[_0x32c140(0x2915)]()});});}function _0xa96558(_0x25b51f,_0x4c05f1){const _0x29a6f7=_0xd52e5a,_0x17c69f=_0x30ef1c[_0x29a6f7(0x856)]()[_0x29a6f7(0x2021)](_0x29a6f7(0x1231)+_0x28c606()[_0x29a6f7(0xc01)]('vtigerAccount')+'?')['htmlContent'](_0x29a6f7(0x50b)+(_0x25b51f[_0x29a6f7(0x2494)]||'vtigerAccount')+_0x29a6f7(0x26d0)+_0x29a6f7(0x4b8))[_0x29a6f7(0x213e)](_0x29a6f7(0x23bf))[_0x29a6f7(0x2283)](_0x4c05f1)['ok']('OK')['cancel']('CANCEL');_0x30ef1c[_0x29a6f7(0xa60)](_0x17c69f)['then'](function(){_0x1cd350(_0x25b51f);},function(){const _0x76362=_0x29a6f7;console[_0x76362(0x9b4)]('CANCEL');});}let _0x397a0f=!![],_0x348b95=0x1;_0x4d5ffb[_0xd52e5a(0xc62)](_0xd52e5a(0x1cb9),function(_0x50b613,_0x198161){const _0x4b2c0b=_0xd52e5a;_0x397a0f?_0x1c20ba(function(){_0x397a0f=![];}):(!_0x198161&&(_0x348b95=_0x3ed4f8['query'][_0x4b2c0b(0xc72)]),_0x50b613!==_0x198161&&(_0x3ed4f8[_0x4b2c0b(0x289a)][_0x4b2c0b(0xc72)]=0x1),!_0x50b613&&(_0x3ed4f8[_0x4b2c0b(0x289a)][_0x4b2c0b(0xc72)]=_0x348b95),_0x3ed4f8[_0x4b2c0b(0x1ce2)]());});function _0x5b14d6(_0x5696cf){const _0x478b14=_0xd52e5a;_0x3ed4f8[_0x478b14(0x18b0)]=_0x5696cf||{'count':0x0,'rows':[]};}function _0x44c661(){const _0x28bfbe=_0xd52e5a;_0x3ed4f8[_0x28bfbe(0x289a)][_0x28bfbe(0x24f9)]=(_0x3ed4f8['query'][_0x28bfbe(0xc72)]-0x1)*_0x3ed4f8[_0x28bfbe(0x289a)][_0x28bfbe(0x25bb)],_0x4a90fc[_0x28bfbe(0x4de)]('admin')?_0x3ed4f8['promise']=_0x2ba3b5[_0x28bfbe(0xb99)][_0x28bfbe(0x896)](_0x3ed4f8[_0x28bfbe(0x289a)],_0x5b14d6)[_0x28bfbe(0x15e7)]:(_0x3ed4f8[_0x28bfbe(0x289a)]['id']=_0x3ed4f8[_0x28bfbe(0x16a8)]['id'],_0x3ed4f8['query']['section']='VtigerAccounts',_0x3ed4f8[_0x28bfbe(0x1713)]=_0x2ba3b5[_0x28bfbe(0x16a8)]['getResources'](_0x3ed4f8[_0x28bfbe(0x289a)],_0x5b14d6)[_0x28bfbe(0x15e7)]);}function _0x103ade(_0x1939c5,_0x43f558){const _0x4d1650=_0xd52e5a;_0x30ef1c[_0x4d1650(0xa60)]({'controller':_0x4d1650(0x1080),'controllerAs':'vm','templateUrl':_0x92055a,'parent':angular['element'](_0xe495a2[_0x4d1650(0xb49)]),'targetEvent':_0x1939c5,'clickOutsideToClose':!![],'locals':{'vtigerAccount':_0x43f558,'vtigerAccounts':_0x3ed4f8[_0x4d1650(0x18b0)]['rows'],'license':_0x3ed4f8[_0x4d1650(0x1947)],'setting':_0x3ed4f8['setting'],'crudPermissions':_0x3ed4f8[_0x4d1650(0x402)]}});}function _0x1cd350(_0x3fb01c){const _0x473cc9=_0xd52e5a;_0x2ba3b5[_0x473cc9(0xb99)]['delete']({'id':_0x3fb01c['id']})['$promise']['then'](function(){const _0x215d4b=_0x473cc9;_0x28c606()[_0x215d4b(0x21c7)](_0x3ed4f8[_0x215d4b(0x18b0)]['rows'],{'id':_0x3fb01c['id']}),_0x3ed4f8[_0x215d4b(0x18b0)][_0x215d4b(0xb90)]-=0x1,!_0x3ed4f8[_0x215d4b(0x18b0)][_0x215d4b(0x28b8)][_0x215d4b(0x1b9e)]&&_0x3ed4f8['getVtigerAccounts'](),_0x132bc9[_0x215d4b(0x1339)]({'title':_0x28c606()[_0x215d4b(0xc01)](_0x215d4b(0x3bb))+'\x20deleted!','msg':_0x3fb01c[_0x215d4b(0x2494)]?_0x3fb01c[_0x215d4b(0x2494)]+_0x215d4b(0x1fa8):''});})[_0x473cc9(0x20cd)](function(_0x554606){const _0x587cdd=_0x473cc9;if(_0x554606['data']&&_0x554606[_0x587cdd(0x1c52)][_0x587cdd(0xbae)]&&_0x554606[_0x587cdd(0x1c52)][_0x587cdd(0xbae)][_0x587cdd(0x1b9e)]){_0x3ed4f8[_0x587cdd(0xbae)]=_0x554606[_0x587cdd(0x1c52)][_0x587cdd(0xbae)]||[{'message':_0x554606[_0x587cdd(0x2915)](),'type':_0x587cdd(0x19ad)}];for(let _0x271892=0x0;_0x271892<_0x554606[_0x587cdd(0x1c52)]['errors'][_0x587cdd(0x1b9e)];_0x271892++){_0x132bc9[_0x587cdd(0x1bd0)]({'title':_0x554606[_0x587cdd(0x1c52)][_0x587cdd(0xbae)][_0x271892][_0x587cdd(0x2185)],'msg':_0x554606['data']['errors'][_0x271892][_0x587cdd(0x18ca)]});}}else _0x132bc9[_0x587cdd(0x1bd0)]({'title':_0x554606['status']?_0x587cdd(0x575)+_0x554606[_0x587cdd(0x10b3)]+'\x20-\x20'+_0x554606[_0x587cdd(0x2115)]:'SYSTEM:DELETEintVtigerAccount','msg':_0x554606[_0x587cdd(0x1c52)]?JSON[_0x587cdd(0x2317)](_0x554606['data'][_0x587cdd(0x18ca)]):_0x554606['message']||_0x554606['toString']()});});}function _0x311377(){const _0x5c5bdd=_0xd52e5a,_0x193315=angular['copy'](_0x3ed4f8[_0x5c5bdd(0x21ea)]);return _0x3ed4f8[_0x5c5bdd(0x21ea)]=[],_0x193315;}function _0x19ee4e(_0xede71a){const _0x3213dc=_0xd52e5a,_0x31aef4=_0x30ef1c[_0x3213dc(0x856)]()[_0x3213dc(0x2021)](_0x3213dc(0xa65))[_0x3213dc(0x33a)](''+_0x3ed4f8[_0x3213dc(0x21ea)][_0x3213dc(0x1b9e)]+_0x3213dc(0x163e)+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x3213dc(0x1276))[_0x3213dc(0x2283)](_0xede71a)['ok']('OK')[_0x3213dc(0x101a)](_0x3213dc(0x18fd));_0x30ef1c[_0x3213dc(0xa60)](_0x31aef4)[_0x3213dc(0x64a)](function(){const _0x10a8c4=_0x3213dc;_0x3ed4f8[_0x10a8c4(0x21ea)]['forEach'](function(_0x295817){_0x1cd350(_0x295817);}),_0x3ed4f8[_0x10a8c4(0x21ea)]=[];});}function _0x28cc72(){const _0x5911cb=_0xd52e5a;_0x3ed4f8[_0x5911cb(0x21ea)]=[];}function _0x2c80b(){const _0x28f47e=_0xd52e5a;_0x3ed4f8[_0x28f47e(0x21ea)]=_0x3ed4f8[_0x28f47e(0x18b0)][_0x28f47e(0x28b8)];}}const _0x2c76f5=_0x36c4ff;;_0x93ea2[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$state',_0x49a1e3(0x1155),'$mdDialog','$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x96d),_0x49a1e3(0xd72),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'crudPermissions'];function _0x93ea2(_0x2b236b,_0x36d45b,_0x3dc174,_0x1f45bb,_0x283a85,_0x3ef4e9,_0x1b5a7d,_0x7674b8,_0x589da5,_0x5e7915,_0x1dc8ea,_0x44b559,_0x249791,_0x3c92f3){const _0x453d91=_0x49a1e3,_0x1a6768=this;_0x1a6768['currentUser']=_0x1dc8ea[_0x453d91(0x808)](),_0x1a6768[_0x453d91(0xbae)]=[],_0x1a6768[_0x453d91(0x28d6)]=_0x249791,_0x1a6768['license']=_0x44b559,_0x1a6768[_0x453d91(0x402)]=_0x3c92f3,_0x1a6768['hasModulePermissions']={},_0x1a6768[_0x453d91(0xccc)]=_0x1a6768[_0x453d91(0x28d6)]&&_0x1a6768['setting'][_0x453d91(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1a6768['title']=_0x453d91(0x7c5),_0x1a6768[_0x453d91(0xd72)]=angular[_0x453d91(0x289e)](_0x589da5),_0x1a6768[_0x453d91(0x96d)]=_0x7674b8,_0x1a6768['newZendeskAccount']=![];!_0x1a6768['zendeskAccount']&&(_0x1a6768[_0x453d91(0xd72)]={'type':'integrationTab','authType':_0x453d91(0x441),'serverUrl':_0x3dc174[_0x453d91(0x48e)]()+_0x453d91(0xe1f)+_0x3dc174['host']()+(_0x3dc174[_0x453d91(0x23f2)]()?':'+_0x3dc174[_0x453d91(0x23f2)]():'')},_0x1a6768['title']='INTEGRATIONS.NEW_ZENDESKACCOUNT',_0x1a6768[_0x453d91(0x2887)]=!![]);_0x1a6768[_0x453d91(0x240b)]=_0x3b8125,_0x1a6768[_0x453d91(0xa95)]=_0x486e99,_0x1a6768[_0x453d91(0xd84)]=_0x59349b,_0x1a6768[_0x453d91(0x1605)]=_0x40ab90,_0x1a6768[_0x453d91(0x16cb)]=_0x570f78;function _0x3b8125(){const _0x1eca90=_0x453d91;_0x1a6768[_0x1eca90(0xbae)]=[],_0x5e7915[_0x1eca90(0x1da9)][_0x1eca90(0x2479)](_0x1a6768['zendeskAccount'])[_0x1eca90(0x15e7)][_0x1eca90(0x64a)](function(_0x3fcce2){const _0x3553bc=_0x1eca90;_0x1a6768['zendeskAccounts'][_0x3553bc(0x1891)](_0x3fcce2[_0x3553bc(0x14f8)]()),_0x1b5a7d[_0x3553bc(0x1339)]({'title':_0x3553bc(0x732),'msg':_0x1a6768[_0x3553bc(0xd72)][_0x3553bc(0x2494)]?_0x1a6768[_0x3553bc(0xd72)]['name']+_0x3553bc(0x258d):''}),_0x570f78(_0x3fcce2);})[_0x1eca90(0x20cd)](function(_0x3538f6){const _0x11c5c8=_0x1eca90;if(_0x3538f6[_0x11c5c8(0x1c52)]&&_0x3538f6['data'][_0x11c5c8(0xbae)]&&_0x3538f6[_0x11c5c8(0x1c52)][_0x11c5c8(0xbae)][_0x11c5c8(0x1b9e)]){_0x1a6768[_0x11c5c8(0xbae)]=_0x3538f6[_0x11c5c8(0x1c52)][_0x11c5c8(0xbae)]||[{'message':_0x3538f6['toString'](),'type':'api.intZendeskAccount.save'}];for(let _0x504420=0x0;_0x504420<_0x3538f6['data']['errors'][_0x11c5c8(0x1b9e)];_0x504420+=0x1){_0x1b5a7d[_0x11c5c8(0x1bd0)]({'title':_0x3538f6['data'][_0x11c5c8(0xbae)][_0x504420][_0x11c5c8(0x2185)],'msg':_0x3538f6[_0x11c5c8(0x1c52)][_0x11c5c8(0xbae)][_0x504420][_0x11c5c8(0x18ca)]});}}else _0x1b5a7d[_0x11c5c8(0x1bd0)]({'title':_0x3538f6[_0x11c5c8(0x10b3)]?_0x11c5c8(0x575)+_0x3538f6['status']+_0x11c5c8(0x21db)+_0x3538f6[_0x11c5c8(0x2115)]:_0x11c5c8(0x21a4),'msg':_0x3538f6[_0x11c5c8(0x1c52)]?JSON[_0x11c5c8(0x2317)](_0x3538f6[_0x11c5c8(0x1c52)][_0x11c5c8(0x18ca)]):_0x3538f6[_0x11c5c8(0x2915)]()});});}function _0x486e99(){const _0x121d1b=_0x453d91;_0x1a6768['errors']=[],_0x5e7915[_0x121d1b(0x1da9)][_0x121d1b(0x2603)]({'id':_0x1a6768[_0x121d1b(0xd72)]['id']},_0x1a6768[_0x121d1b(0xd72)])['$promise'][_0x121d1b(0x64a)](function(_0x19b09f){const _0x3fda4a=_0x121d1b,_0x1470a8=_0x28c606()[_0x3fda4a(0x27bc)](_0x1a6768['zendeskAccounts'],{'id':_0x19b09f['id']});_0x1470a8&&_0x28c606()[_0x3fda4a(0x14fe)](_0x1470a8,_0x28c606()[_0x3fda4a(0x27bb)](_0x19b09f['toJSON'](),_0x28c606()[_0x3fda4a(0x1ec6)](_0x1470a8))),_0x1b5a7d[_0x3fda4a(0x1339)]({'title':_0x3fda4a(0x986),'msg':_0x1a6768[_0x3fda4a(0xd72)][_0x3fda4a(0x2494)]?_0x1a6768[_0x3fda4a(0xd72)][_0x3fda4a(0x2494)]+_0x3fda4a(0x271):''}),_0x570f78(_0x19b09f);})[_0x121d1b(0x20cd)](function(_0x1e4275){const _0x3567ac=_0x121d1b;if(_0x1e4275['data']&&_0x1e4275['data'][_0x3567ac(0xbae)]&&_0x1e4275['data'][_0x3567ac(0xbae)]['length']){_0x1a6768[_0x3567ac(0xbae)]=_0x1e4275['data'][_0x3567ac(0xbae)]||[{'message':_0x1e4275[_0x3567ac(0x2915)](),'type':_0x3567ac(0x1577)}];for(let _0x4d153a=0x0;_0x4d153a<_0x1e4275['data'][_0x3567ac(0xbae)][_0x3567ac(0x1b9e)];_0x4d153a++){_0x1b5a7d[_0x3567ac(0x1bd0)]({'title':_0x1e4275[_0x3567ac(0x1c52)][_0x3567ac(0xbae)][_0x4d153a][_0x3567ac(0x2185)],'msg':_0x1e4275[_0x3567ac(0x1c52)][_0x3567ac(0xbae)][_0x4d153a][_0x3567ac(0x18ca)]});}}else _0x1b5a7d['error']({'title':_0x1e4275['status']?_0x3567ac(0x575)+_0x1e4275[_0x3567ac(0x10b3)]+_0x3567ac(0x21db)+_0x1e4275[_0x3567ac(0x2115)]:_0x3567ac(0x1577),'msg':_0x1e4275[_0x3567ac(0x1c52)]?JSON['stringify'](_0x1e4275[_0x3567ac(0x1c52)][_0x3567ac(0x18ca)]):_0x1e4275[_0x3567ac(0x2915)]()});});}function _0x59349b(_0x43bee0){const _0x1d8292=_0x453d91;_0x1a6768[_0x1d8292(0xbae)]=[];const _0x5ad011=_0x1f45bb[_0x1d8292(0x856)]()[_0x1d8292(0x2021)](_0x1d8292(0x103a))[_0x1d8292(0x12b8)]('The\x20zendeskAccount\x20will\x20be\x20deleted.')['ariaLabel'](_0x1d8292(0x1830))['ok'](_0x1d8292(0x2664))[_0x1d8292(0x101a)](_0x1d8292(0x1dc6))[_0x1d8292(0x2283)](_0x43bee0);_0x1f45bb[_0x1d8292(0xa60)](_0x5ad011)[_0x1d8292(0x64a)](function(){const _0x3e1eff=_0x1d8292;_0x5e7915[_0x3e1eff(0x1da9)][_0x3e1eff(0xabd)]({'id':_0x1a6768[_0x3e1eff(0xd72)]['id']})[_0x3e1eff(0x15e7)][_0x3e1eff(0x64a)](function(){const _0x219e83=_0x3e1eff;_0x28c606()[_0x219e83(0x21c7)](_0x1a6768[_0x219e83(0x96d)],{'id':_0x1a6768[_0x219e83(0xd72)]['id']}),_0x1b5a7d['success']({'title':'ZendeskAccount\x20properly\x20deleted!','msg':(_0x1a6768['zendeskAccount']['name']||_0x219e83(0xd72))+_0x219e83(0x1fa8)}),_0x570f78(_0x1a6768[_0x219e83(0xd72)]);})[_0x3e1eff(0x20cd)](function(_0x43fc4b){const _0x40a37d=_0x3e1eff;if(_0x43fc4b[_0x40a37d(0x1c52)]&&_0x43fc4b[_0x40a37d(0x1c52)][_0x40a37d(0xbae)]&&_0x43fc4b[_0x40a37d(0x1c52)]['errors'][_0x40a37d(0x1b9e)]){_0x1a6768[_0x40a37d(0xbae)]=_0x43fc4b[_0x40a37d(0x1c52)]['errors']||[{'message':_0x43fc4b[_0x40a37d(0x2915)](),'type':'api.intZendeskAccount.delete'}];for(let _0x516cc1=0x0;_0x516cc1<_0x43fc4b[_0x40a37d(0x1c52)][_0x40a37d(0xbae)][_0x40a37d(0x1b9e)];_0x516cc1++){_0x1b5a7d[_0x40a37d(0x1bd0)]({'title':_0x43fc4b[_0x40a37d(0x1c52)][_0x40a37d(0xbae)][_0x516cc1][_0x40a37d(0x2185)],'msg':_0x43fc4b[_0x40a37d(0x1c52)]['errors'][_0x516cc1][_0x40a37d(0x18ca)]});}}else _0x1b5a7d['error']({'title':_0x43fc4b[_0x40a37d(0x10b3)]?_0x40a37d(0x575)+_0x43fc4b['status']+'\x20-\x20'+_0x43fc4b[_0x40a37d(0x2115)]:_0x40a37d(0x21b5),'msg':_0x43fc4b[_0x40a37d(0x1c52)]?JSON[_0x40a37d(0x2317)](_0x43fc4b[_0x40a37d(0x1c52)][_0x40a37d(0x18ca)]):_0x43fc4b[_0x40a37d(0x18ca)]||_0x43fc4b['toString']()});});},function(){});}function _0x40ab90(_0x25fec0){return _0x25fec0===null?undefined:new Date(_0x25fec0);}function _0x570f78(_0x2fd71d){_0x1f45bb['hide'](_0x2fd71d);}}const _0x244f43=_0x93ea2;;_0x5e7705[_0x49a1e3(0x1e73)]=['$scope','$state',_0x49a1e3(0x1155),'$mdDialog','toasty',_0x49a1e3(0x9a4),_0x49a1e3(0x23cb),_0x49a1e3(0x1656),_0x49a1e3(0x3e3),_0x49a1e3(0x2185),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x5e7705(_0x205b0f,_0x867000,_0x597b21,_0x1510d2,_0x59a7ea,_0x489b71,_0x576c71,_0x5c0ef5,_0x588137,_0x1e6a8a,_0x590f0a,_0x22b5e2,_0x35e57e){const _0x2017d3=_0x49a1e3,_0x208587=this;_0x208587['currentUser']=_0x22b5e2[_0x2017d3(0x808)](),_0x208587[_0x2017d3(0xbae)]=[],_0x208587['title']=_0x2017d3(0x1bfd)+_0x28c606()[_0x2017d3(0x2201)](_0x1e6a8a),_0x208587[_0x2017d3(0x1656)]=angular[_0x2017d3(0x289e)](_0x5c0ef5),_0x208587[_0x2017d3(0x23cb)]=_0x576c71,_0x208587[_0x2017d3(0x2185)]=_0x1e6a8a,_0x208587[_0x2017d3(0x402)]=_0x35e57e,_0x208587[_0x2017d3(0xd33)]=![];!_0x208587[_0x2017d3(0x1656)]&&(_0x208587[_0x2017d3(0x1656)]={'type':_0x2017d3(0x108c)},_0x208587[_0x2017d3(0x1656)][_0x28c606()['capitalize'](_0x1e6a8a)+'Id']=_0x489b71['id'],_0x208587['title']=_0x2017d3(0x1ad9)+_0x28c606()[_0x2017d3(0x2201)](_0x1e6a8a),_0x208587[_0x2017d3(0xd33)]=!![]);_0x208587[_0x2017d3(0x2889)]=_0xe100a1,_0x208587['saveItem']=_0x44d52e,_0x208587['deleteItem']=_0x1bf636,_0x208587['getSelectedVariable']=_0xf3152a,_0x208587[_0x2017d3(0x16cb)]=_0x3f2a21,_0x590f0a[_0x2017d3(0xefb)][_0x2017d3(0x896)]({'nolimit':!![]})[_0x2017d3(0x15e7)][_0x2017d3(0x64a)](function(_0x41b9ea){const _0x4814c6=_0x2017d3;return _0x208587[_0x4814c6(0x145c)]=_0x41b9ea['rows']?_0x41b9ea[_0x4814c6(0x28b8)]:[],_0x590f0a['voiceAgentReport'][_0x4814c6(0xa81)]()['$promise'];})[_0x2017d3(0x64a)](function(_0x542f11){const _0x2efb19=_0x2017d3;return _0x208587[_0x2efb19(0x109a)]=_0x28c606()['difference'](_0x28c606()[_0x2efb19(0x1ec6)](_0x542f11),[_0x2efb19(0x15e7),_0x2efb19(0x19ba),_0x2efb19(0x2378),'updatedAt','sourceid']),_0x208587[_0x2efb19(0x109a)][_0x2efb19(0x1954)](_0x2efb19(0xdd4)),_0x590f0a[_0x2efb19(0x1002)][_0x2efb19(0xa81)]()[_0x2efb19(0x15e7)];})['then'](function(_0x11af9d){const _0x203019=_0x2017d3;_0x208587['voiceDialReportColumns']=_0x28c606()[_0x203019(0xde7)](_0x28c606()[_0x203019(0x1ec6)](_0x11af9d),['$promise',_0x203019(0x19ba),_0x203019(0x2378),_0x203019(0x2056),_0x203019(0x2785)]),_0x208587[_0x203019(0xdae)][_0x203019(0x1954)]('recordingURL');})[_0x2017d3(0x20cd)](function(_0x7777f){const _0x4e24f2=_0x2017d3;_0x59a7ea[_0x4e24f2(0x1bd0)]({'title':_0x7777f[_0x4e24f2(0x10b3)]?_0x4e24f2(0x575)+_0x7777f[_0x4e24f2(0x10b3)]+_0x4e24f2(0x21db)+_0x7777f[_0x4e24f2(0x2115)]:_0x4e24f2(0x195a),'msg':_0x7777f['data']?JSON['stringify'](_0x7777f[_0x4e24f2(0x1c52)]):_0x7777f[_0x4e24f2(0x2915)]()});}),_0x590f0a[_0x2017d3(0x1da9)][_0x2017d3(0x5e0)]({'id':_0x588137['id'],'ticketType':_0x489b71[_0x2017d3(0x1545)]?_0x489b71[_0x2017d3(0x1545)]:undefined})[_0x2017d3(0x15e7)]['then'](function(_0x3a93b6){const _0x5e91dc=_0x2017d3;_0x208587[_0x5e91dc(0x854)]=!![],_0x208587['fields']=_0x3a93b6['rows']?_0x3a93b6[_0x5e91dc(0x28b8)]:[],_0x208587['item'][_0x5e91dc(0x197)]&&(_0x208587[_0x5e91dc(0x1753)]=_0x28c606()[_0x5e91dc(0x27bc)](_0x208587['fields'],{'id':_0x208587['item']['idField']}));})[_0x2017d3(0x20cd)](function(_0x3084ad){const _0x518866=_0x2017d3;_0x208587['accountConnected']=![],console[_0x518866(0x1bd0)](_0x3084ad);});function _0xe100a1(){const _0x307fce=_0x2017d3;_0x208587[_0x307fce(0xbae)]=[],_0x208587[_0x307fce(0x1753)]&&(_0x208587[_0x307fce(0x1656)][_0x307fce(0x197)]=_0x208587['customField']['id'],_0x208587[_0x307fce(0x1656)][_0x307fce(0x25fc)]=_0x208587[_0x307fce(0x1753)][_0x307fce(0x2494)],_0x208587['item']['customField']=_0x208587[_0x307fce(0x1753)]['custom']),_0x590f0a[_0x307fce(0x2a0)]['save'](_0x208587['item'])[_0x307fce(0x15e7)][_0x307fce(0x64a)](function(_0x5c8f1e){const _0x5290e2=_0x307fce;_0x208587[_0x5290e2(0x23cb)]['unshift'](_0x5c8f1e),_0x59a7ea[_0x5290e2(0x1339)]({'title':_0x28c606()[_0x5290e2(0xd56)](_0x1e6a8a)+'\x20properly\x20created','msg':_0x28c606()[_0x5290e2(0xd56)](_0x1e6a8a)+_0x5290e2(0x258d)}),_0x3f2a21();})[_0x307fce(0x20cd)](function(_0x2157c6){const _0x2ebdba=_0x307fce;console[_0x2ebdba(0x1bd0)](_0x2157c6),_0x208587[_0x2ebdba(0xbae)]=_0x2157c6[_0x2ebdba(0x1c52)][_0x2ebdba(0xbae)]||[{'message':_0x2157c6[_0x2ebdba(0x2915)](),'type':_0x2ebdba(0x1675)}];});}function _0x44d52e(){const _0x84a2d3=_0x2017d3;_0x208587[_0x84a2d3(0xbae)]=[],_0x208587['customField']&&(_0x208587[_0x84a2d3(0x1656)][_0x84a2d3(0x197)]=_0x208587[_0x84a2d3(0x1753)]['id'],_0x208587[_0x84a2d3(0x1656)][_0x84a2d3(0x25fc)]=_0x208587['customField'][_0x84a2d3(0x2494)],_0x208587[_0x84a2d3(0x1656)]['customField']=_0x208587[_0x84a2d3(0x1753)][_0x84a2d3(0x1ad6)]),_0x590f0a[_0x84a2d3(0x2a0)][_0x84a2d3(0x2603)]({'id':_0x208587[_0x84a2d3(0x1656)]['id']},_0x208587[_0x84a2d3(0x1656)])[_0x84a2d3(0x15e7)][_0x84a2d3(0x64a)](function(_0x208fd6){const _0x63fee2=_0x84a2d3,_0x3f36c6=_0x28c606()[_0x63fee2(0x27bc)](_0x208587['items'],{'id':_0x208fd6['id']});_0x3f36c6&&_0x28c606()[_0x63fee2(0x14fe)](_0x3f36c6,_0x208fd6),_0x59a7ea[_0x63fee2(0x1339)]({'title':_0x28c606()[_0x63fee2(0xd56)](_0x1e6a8a)+_0x63fee2(0x2776),'msg':_0x28c606()[_0x63fee2(0xd56)](_0x1e6a8a)+_0x63fee2(0x271)}),_0x3f2a21();})[_0x84a2d3(0x20cd)](function(_0x72470a){const _0x1a26e2=_0x84a2d3;console[_0x1a26e2(0x1bd0)](_0x72470a),_0x208587[_0x1a26e2(0xbae)]=_0x72470a[_0x1a26e2(0x1c52)][_0x1a26e2(0xbae)]||[{'message':_0x72470a[_0x1a26e2(0x2915)](),'type':'api.intItem.update'}];});}function _0x1bf636(_0x50d29f){const _0x4b0ee7=_0x2017d3;_0x208587[_0x4b0ee7(0xbae)]=[];const _0x165c65=_0x1510d2[_0x4b0ee7(0x856)]()['title'](_0x4b0ee7(0x103a))[_0x4b0ee7(0x12b8)](_0x4b0ee7(0x2966)+_0x1e6a8a+_0x4b0ee7(0x4b8))[_0x4b0ee7(0x213e)](_0x4b0ee7(0x1f2e)+_0x28c606()[_0x4b0ee7(0xd56)](_0x1e6a8a))['ok'](_0x4b0ee7(0x2664))[_0x4b0ee7(0x101a)](_0x4b0ee7(0x1dc6))[_0x4b0ee7(0x2283)](_0x50d29f);_0x1510d2[_0x4b0ee7(0xa60)](_0x165c65)['then'](function(){const _0x595db9=_0x4b0ee7;_0x590f0a[_0x595db9(0x2a0)][_0x595db9(0xabd)]({'id':_0x208587[_0x595db9(0x1656)]['id']})['$promise'][_0x595db9(0x64a)](function(){const _0x3b5334=_0x595db9;_0x28c606()[_0x3b5334(0x21c7)](_0x208587['items'],{'id':_0x208587['item']['id']}),_0x59a7ea[_0x3b5334(0x1339)]({'title':_0x28c606()['capitalize'](_0x1e6a8a)+_0x3b5334(0x6ec),'msg':_0x28c606()[_0x3b5334(0xd56)](_0x1e6a8a)+_0x3b5334(0x1fa8)}),_0x3f2a21();})['catch'](function(_0x94b505){const _0x35c007=_0x595db9;console[_0x35c007(0x1bd0)](_0x94b505),_0x208587['errors']=_0x94b505[_0x35c007(0x1c52)][_0x35c007(0xbae)]||[{'message':_0x94b505[_0x35c007(0x2915)](),'type':'api.item.delete'}];});},function(){});}function _0xf3152a(){const _0x3d58b4=_0x2017d3;return _0x208587[_0x3d58b4(0x1656)][_0x3d58b4(0x1299)]!==undefined?_0x208587[_0x3d58b4(0x1656)]['variableName']:_0x3d58b4(0xfae);}function _0x3f2a21(){_0x1510d2['hide']();}}const _0x587fad=_0x5e7705;;_0x3245a0[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),'$document',_0x49a1e3(0x298c),'license','setting','api',_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0xd72),_0x49a1e3(0x16b2)];function _0x3245a0(_0x7afcbe,_0x1ae4fd,_0x522781,_0x587ba4,_0xe8c45e,_0x27213e,_0x4934d0,_0x4e2194,_0x7d0af1,_0x32eb18,_0x2ed924,_0x3eb585){const _0x3bb105=_0x49a1e3,_0x4d7762=this;_0x4d7762[_0x3bb105(0x1d3d)]=_0x32eb18[_0x3bb105(0x808)](),_0x4d7762[_0x3bb105(0x1947)]=_0x27213e,_0x4d7762[_0x3bb105(0x28d6)]=_0x4934d0,_0x4d7762[_0x3bb105(0xccc)]=_0x4d7762[_0x3bb105(0x28d6)][_0x3bb105(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4d7762['location']=_0x1ae4fd['protocol']()+'://'+_0x1ae4fd[_0x3bb105(0x1e5d)](),_0x4d7762[_0x3bb105(0xd72)]=_0x2ed924||_0x7afcbe['params'][_0x3bb105(0xd72)]||{},_0x4d7762[_0x3bb105(0x16b2)]=_0x3eb585&&_0x3eb585['count']==0x1?_0x3eb585[_0x3bb105(0x28b8)][0x0]:null,_0x4d7762['crudPermissions']=_0x32eb18[_0x3bb105(0xa7e)](_0x4d7762[_0x3bb105(0x16b2)]?_0x4d7762[_0x3bb105(0x16b2)][_0x3bb105(0x402)]:null),_0x4d7762[_0x3bb105(0x6c2)]={},_0x4d7762[_0x3bb105(0x197c)]=_0x7afcbe[_0x3bb105(0x1b48)]['tab']||0x0,_0x4d7762[_0x3bb105(0x2540)]=_0x7d0af1[_0x3bb105(0x772)],_0x4d7762['gotoZendeskAccounts']=_0xb9d0dd,_0x4d7762[_0x3bb105(0xa95)]=_0x56820e;function _0xb9d0dd(){const _0x270735=_0x3bb105;_0x7afcbe['go']('app.integrations.zendeskAccounts',{},{'reload':_0x270735(0x116b)});}function _0x56820e(){const _0x4eac00=_0x3bb105;_0x4e2194[_0x4eac00(0x1da9)]['update']({'id':_0x4d7762[_0x4eac00(0xd72)]['id']},_0x4d7762[_0x4eac00(0xd72)])[_0x4eac00(0x15e7)][_0x4eac00(0x64a)](function(){const _0x1651ef=_0x4eac00;_0x7d0af1[_0x1651ef(0x1339)]({'title':'ZendeskAccount\x20updated!','msg':_0x4d7762[_0x1651ef(0xd72)][_0x1651ef(0x2494)]?_0x4d7762[_0x1651ef(0xd72)][_0x1651ef(0x2494)]+_0x1651ef(0x2032):''});})[_0x4eac00(0x20cd)](function(_0x49cc9f){const _0x131e90=_0x4eac00;_0x7d0af1[_0x131e90(0x1bd0)]({'title':_0x49cc9f[_0x131e90(0x10b3)]?_0x131e90(0x575)+_0x49cc9f[_0x131e90(0x10b3)]+_0x131e90(0x21db)+_0x49cc9f['statusText']:_0x131e90(0x18e1),'msg':_0x49cc9f['data']?JSON[_0x131e90(0x2317)](_0x49cc9f[_0x131e90(0x1c52)]):_0x49cc9f[_0x131e90(0x2915)]()});});}}const _0x1c7698=_0x3245a0;;const _0x59ce0d=_0x2e4a48['p']+_0x49a1e3(0xc06);;const _0x32b455=_0x2e4a48['p']+_0x49a1e3(0x2858);;_0x42b2e2['$inject']=[_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf)];function _0x42b2e2(_0x20e45e,_0x31fa2e,_0x4a0b93,_0x14d36e,_0x3c96aa){const _0x509b0e=_0x49a1e3,_0x9ef1be=this;_0x9ef1be[_0x509b0e(0x1d3d)]=_0x3c96aa[_0x509b0e(0x808)](),_0x9ef1be[_0x509b0e(0xd72)]={},_0x9ef1be['zendeskConfiguration']={},_0x9ef1be[_0x509b0e(0x10f4)]=[],_0x9ef1be[_0x509b0e(0x1c7a)]=-0x1,_0x9ef1be[_0x509b0e(0x402)],_0x9ef1be[_0x509b0e(0x2354)]=_0x3e72a5,_0x9ef1be['getZendeskConfiguration']=_0x3aed5e,_0x9ef1be[_0x509b0e(0x1134)]=_0x17cc30,_0x9ef1be['deleteZendeskConfiguration']=_0x50b2f,_0x9ef1be['selectedTags']=[],_0x9ef1be[_0x509b0e(0x193)]=_0x327ff6,_0x4a0b93[_0x509b0e(0xac8)][_0x509b0e(0x896)]({'nolimit':!![],'sort':_0x509b0e(0x2494)})[_0x509b0e(0x15e7)][_0x509b0e(0x64a)](function(_0x1b6d8c){const _0x2176a8=_0x509b0e;_0x9ef1be[_0x2176a8(0x16a6)]=_0x1b6d8c['rows']?_0x1b6d8c[_0x2176a8(0x28b8)]:[];})[_0x509b0e(0x20cd)](function(_0x39506c){const _0x1ecf14=_0x509b0e;_0x14d36e['error']({'title':_0x39506c[_0x1ecf14(0x10b3)]?_0x1ecf14(0x575)+_0x39506c[_0x1ecf14(0x10b3)]+_0x1ecf14(0x21db)+_0x39506c[_0x1ecf14(0x2115)]:'SYSTEM:GETTAGS','msg':_0x39506c['data']?JSON['stringify'](_0x39506c[_0x1ecf14(0x1c52)]):_0x39506c['toString']()});});function _0x327ff6(){const _0x297e11=_0x509b0e;_0x4a0b93[_0x297e11(0x22b4)][_0x297e11(0x1ac6)]({'id':_0x9ef1be[_0x297e11(0x1c3b)]['id'],'ids':_0x9ef1be[_0x297e11(0x1677)]})[_0x297e11(0x15e7)]['then'](function(){const _0x2d4b6e=_0x297e11;_0x14d36e['success']({'title':'Tags\x20set!','msg':_0x2d4b6e(0x22eb)});})['catch'](function(_0x40d4d1){const _0x386316=_0x297e11;_0x14d36e['error']({'title':_0x40d4d1['status']?_0x386316(0x575)+_0x40d4d1[_0x386316(0x10b3)]+_0x386316(0x21db)+_0x40d4d1[_0x386316(0x2115)]:'SYSTEM:ADDTAGS','msg':_0x40d4d1[_0x386316(0x1c52)]?JSON[_0x386316(0x2317)](_0x40d4d1['data']):_0x40d4d1['toString']()});});}function _0x3e72a5(_0x57eeec,_0x3624b9){const _0x364977=_0x509b0e;_0x9ef1be[_0x364977(0xd72)]=_0x57eeec,_0x9ef1be[_0x364977(0x402)]=typeof _0x3624b9!==_0x364977(0x19a1)?_0x3624b9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4a0b93[_0x364977(0x1da9)][_0x364977(0x340)]({'id':_0x9ef1be[_0x364977(0xd72)]['id'],'sort':_0x364977(0x260c)})[_0x364977(0x15e7)]['then'](function(_0x4aee53){const _0x5933a0=_0x364977;return _0x9ef1be[_0x5933a0(0x10f4)]=_0x4aee53['rows']?_0x4aee53[_0x5933a0(0x28b8)]:[],_0x9ef1be[_0x5933a0(0x10f4)][_0x5933a0(0x1b9e)]&&_0x9ef1be[_0x5933a0(0x1fbd)](0x0),_0x4a0b93[_0x5933a0(0xefb)][_0x5933a0(0x896)]({'nolimit':!![],'sort':'name'})[_0x5933a0(0x15e7)];})[_0x364977(0x64a)](function(_0x1ae1d7){const _0x402534=_0x364977;_0x9ef1be[_0x402534(0x145c)]=_0x1ae1d7[_0x402534(0x28b8)]?_0x1ae1d7[_0x402534(0x28b8)]:[],_0x9ef1be[_0x402534(0x2685)]=_0x28c606()[_0x402534(0x161e)](_0x9ef1be[_0x402534(0x145c)],'id');})['catch'](function(_0x49a526){const _0x186722=_0x364977;_0x14d36e[_0x186722(0x1bd0)]({'title':_0x49a526[_0x186722(0x10b3)]?_0x186722(0x575)+_0x49a526['status']+_0x186722(0x21db)+_0x49a526[_0x186722(0x2115)]:_0x186722(0x1bdd),'msg':_0x49a526['data']?JSON[_0x186722(0x2317)](_0x49a526['data']):_0x49a526[_0x186722(0x2915)]()});});}function _0x3aed5e(_0x2b8f34){const _0x3aa3e4=_0x509b0e;_0x9ef1be[_0x3aa3e4(0x1c3b)]=_0x9ef1be['zendeskConfigurations'][_0x2b8f34],_0x9ef1be[_0x3aa3e4(0x1c7a)]=_0x2b8f34,_0x4a0b93[_0x3aa3e4(0x22b4)][_0x3aa3e4(0x241f)]({'id':_0x9ef1be['zendeskConfiguration']['id']})[_0x3aa3e4(0x15e7)][_0x3aa3e4(0x64a)](function(_0x4cdb08){const _0x3bb18f=_0x3aa3e4;return _0x9ef1be[_0x3bb18f(0x29b)]=_0x4cdb08[_0x3bb18f(0x28b8)]?_0x4cdb08[_0x3bb18f(0x28b8)]:[],_0x4a0b93[_0x3bb18f(0x22b4)][_0x3bb18f(0x1e33)]({'id':_0x9ef1be[_0x3bb18f(0x1c3b)]['id']})[_0x3bb18f(0x15e7)];})[_0x3aa3e4(0x64a)](function(_0x49fb19){const _0x31bea2=_0x3aa3e4;return _0x9ef1be[_0x31bea2(0x24b6)]=_0x49fb19[_0x31bea2(0x28b8)]?_0x49fb19['rows']:[],_0x4a0b93['intZendeskConfiguration'][_0x31bea2(0x5e0)]({'id':_0x9ef1be[_0x31bea2(0x1c3b)]['id']})[_0x31bea2(0x15e7)];})[_0x3aa3e4(0x64a)](function(_0x125cd3){const _0xfe3148=_0x3aa3e4;_0x9ef1be[_0xfe3148(0xf26)]=_0x125cd3[_0xfe3148(0x28b8)]?_0x125cd3[_0xfe3148(0x28b8)]:[];})[_0x3aa3e4(0x20cd)](function(_0x3192b2){const _0x35eadc=_0x3aa3e4;_0x14d36e[_0x35eadc(0x1bd0)]({'title':_0x3192b2[_0x35eadc(0x10b3)]?_0x35eadc(0x575)+_0x3192b2[_0x35eadc(0x10b3)]+_0x35eadc(0x21db)+_0x3192b2[_0x35eadc(0x2115)]:_0x35eadc(0x15c1),'msg':_0x3192b2['data']?JSON[_0x35eadc(0x2317)](_0x3192b2[_0x35eadc(0x1c52)]):_0x3192b2[_0x35eadc(0x2915)]()});}),_0x4a0b93[_0x3aa3e4(0x22b4)]['getTags']({'id':_0x9ef1be[_0x3aa3e4(0x1c3b)]['id']})[_0x3aa3e4(0x15e7)]['then'](function(_0x594267){const _0x4369ff=_0x3aa3e4;_0x9ef1be[_0x4369ff(0x1677)]=_0x594267[_0x4369ff(0x28b8)]?_0x28c606()[_0x4369ff(0x1de5)](_0x594267[_0x4369ff(0x28b8)],'id'):[];})[_0x3aa3e4(0x20cd)](function(_0x182ba1){const _0x37b6aa=_0x3aa3e4;_0x14d36e[_0x37b6aa(0x1bd0)]({'title':_0x182ba1['status']?_0x37b6aa(0x575)+_0x182ba1[_0x37b6aa(0x10b3)]+'\x20-\x20'+_0x182ba1['statusText']:_0x37b6aa(0x1738),'msg':_0x182ba1['data']?JSON[_0x37b6aa(0x2317)](_0x182ba1[_0x37b6aa(0x1c52)]):_0x182ba1[_0x37b6aa(0x2915)]()});});}function _0x17cc30(_0x25f35d,_0x1141ac){const _0xb9e25a=_0x509b0e;_0x20e45e[_0xb9e25a(0xa60)]({'controller':_0xb9e25a(0x2128),'controllerAs':'vm','templateUrl':_0x59ce0d,'parent':angular[_0xb9e25a(0x1f81)](_0x31fa2e[_0xb9e25a(0xb49)]),'targetEvent':_0x25f35d,'clickOutsideToClose':!![],'locals':{'zendeskConfiguration':_0x1141ac,'zendeskConfigurations':_0x9ef1be['zendeskConfigurations'],'license':null,'setting':null,'crudPermissions':_0x9ef1be[_0xb9e25a(0x402)]}})[_0xb9e25a(0x988)](function(){_0x9ef1be['getZendeskConfiguration'](0x0);});}function _0x50b2f(_0x6219a5,_0x53f33e){const _0x3dc928=_0x509b0e,_0x3a5f16=_0x20e45e[_0x3dc928(0x856)]()[_0x3dc928(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20zendeskConfiguration?')[_0x3dc928(0x33a)](_0x3dc928(0x50b)+(_0x53f33e[_0x3dc928(0x2494)]||'zendeskConfiguration')+_0x3dc928(0x26d0)+_0x3dc928(0x4b8))[_0x3dc928(0x213e)]('delete\x20zendeskConfiguration')[_0x3dc928(0x2283)](_0x6219a5)['ok']('OK')['cancel'](_0x3dc928(0x18fd));_0x20e45e[_0x3dc928(0xa60)](_0x3a5f16)[_0x3dc928(0x64a)](function(){const _0x27b91f=_0x3dc928;_0x4a0b93[_0x27b91f(0x22b4)][_0x27b91f(0xabd)]({'id':_0x53f33e['id']})['$promise']['then'](function(){const _0xb6ea09=_0x27b91f;_0x28c606()[_0xb6ea09(0x21c7)](_0x9ef1be[_0xb6ea09(0x10f4)],{'id':_0x53f33e['id']}),_0x14d36e[_0xb6ea09(0x1339)]({'title':_0xb6ea09(0x28e4),'msg':_0x53f33e[_0xb6ea09(0x2494)]?_0x53f33e[_0xb6ea09(0x2494)]+_0xb6ea09(0x1fa8):''});})[_0x27b91f(0x20cd)](function(_0x1bef51){const _0x365735=_0x27b91f;_0x14d36e[_0x365735(0x1bd0)]({'title':_0x1bef51[_0x365735(0x10b3)]?_0x365735(0x575)+_0x1bef51[_0x365735(0x10b3)]+'\x20-\x20'+_0x1bef51[_0x365735(0x2115)]:'SYSTEM:DELETECONFIGURATION','msg':_0x1bef51[_0x365735(0x1c52)]?JSON[_0x365735(0x2317)](_0x1bef51['data']):_0x1bef51[_0x365735(0x2915)]()});})[_0x27b91f(0x988)](function(){const _0x210385=_0x27b91f;_0x9ef1be[_0x210385(0x1fbd)](0x0);});},function(){const _0x530abf=_0x3dc928;console[_0x530abf(0x9b4)](_0x530abf(0x18fd));});}_0x9ef1be[_0x509b0e(0x2639)]=[],_0x9ef1be[_0x509b0e(0x22b1)]=_0xcfb1cf,_0x9ef1be[_0x509b0e(0xa6a)]=_0xbd5954,_0x9ef1be[_0x509b0e(0x17fe)]=_0x1d46ce;function _0xcfb1cf(_0x55a770,_0x455dc3){const _0x114614=_0x509b0e;_0x20e45e[_0x114614(0xa60)]({'controller':_0x114614(0x574),'controllerAs':'vm','templateUrl':_0x32b455,'parent':angular[_0x114614(0x1f81)](_0x31fa2e['body']),'targetEvent':_0x55a770,'clickOutsideToClose':!![],'locals':{'type':_0x114614(0x25bc),'item':_0x455dc3,'items':_0x9ef1be[_0x114614(0x29b)],'configuration':_0x9ef1be[_0x114614(0x1c3b)],'account':_0x9ef1be['zendeskAccount'],'license':null,'setting':null,'crudPermissions':_0x9ef1be[_0x114614(0x402)]}});}function _0x8651ee(_0x4cbc60){const _0x567ddc=_0x509b0e;_0x4a0b93[_0x567ddc(0x2a0)]['delete']({'id':_0x4cbc60['id']})['$promise'][_0x567ddc(0x64a)](function(){const _0x5d5d0a=_0x567ddc;_0x28c606()[_0x5d5d0a(0x21c7)](_0x9ef1be[_0x5d5d0a(0x29b)],{'id':_0x4cbc60['id']}),_0x14d36e['success']({'title':_0x5d5d0a(0x1d99),'msg':_0x5d5d0a(0x1a0c)});})[_0x567ddc(0x20cd)](function(_0x2c2cf3){const _0x1f7cf9=_0x567ddc;_0x14d36e[_0x1f7cf9(0x1bd0)]({'title':_0x2c2cf3[_0x1f7cf9(0x10b3)]?_0x1f7cf9(0x575)+_0x2c2cf3['status']+_0x1f7cf9(0x21db)+_0x2c2cf3[_0x1f7cf9(0x2115)]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x2c2cf3[_0x1f7cf9(0x1c52)]?JSON[_0x1f7cf9(0x2317)](_0x2c2cf3[_0x1f7cf9(0x1c52)]):_0x2c2cf3[_0x1f7cf9(0x2915)]()});});}function _0xbd5954(_0x2971bb,_0x4661ef){const _0x7afadc=_0x509b0e,_0x2d79fa=_0x20e45e['confirm']()['title'](_0x7afadc(0x189a))[_0x7afadc(0x33a)](_0x7afadc(0x1e6a)+_0x7afadc(0x4b8))[_0x7afadc(0x213e)](_0x7afadc(0x204f))['targetEvent'](_0x2971bb)['ok']('OK')['cancel'](_0x7afadc(0x18fd));_0x20e45e[_0x7afadc(0xa60)](_0x2d79fa)[_0x7afadc(0x64a)](function(){_0x8651ee(_0x4661ef);},function(){const _0x4eca1f=_0x7afadc;console['log'](_0x4eca1f(0x18fd));});}function _0x1d46ce(_0x898f45){const _0x193997=_0x509b0e,_0x46e7a0=_0x20e45e[_0x193997(0x856)]()['title'](_0x193997(0x1cb4))[_0x193997(0x33a)](_0x193997(0x50b)+_0x9ef1be[_0x193997(0x2639)][_0x193997(0x1b9e)]+_0x193997(0x163e)+_0x193997(0x4b8))[_0x193997(0x213e)](_0x193997(0x24f6))['targetEvent'](_0x898f45)['ok']('OK')[_0x193997(0x101a)](_0x193997(0x18fd));_0x20e45e[_0x193997(0xa60)](_0x46e7a0)[_0x193997(0x64a)](function(){const _0x50c619=_0x193997;_0x9ef1be[_0x50c619(0x2639)][_0x50c619(0x1397)](function(_0x3e5a83){_0x8651ee(_0x3e5a83);}),_0x9ef1be['selectedSubjects']=[];});}_0x9ef1be[_0x509b0e(0x21c1)]=[],_0x9ef1be[_0x509b0e(0x3a2)]=_0x1e421e,_0x9ef1be[_0x509b0e(0x183a)]=_0x3a3e2d,_0x9ef1be[_0x509b0e(0x1efc)]=_0xf6556a;function _0x1e421e(_0x4b6de4,_0x4b5115){const _0x5d0497=_0x509b0e;_0x20e45e[_0x5d0497(0xa60)]({'controller':'CreateOrEditZendeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x32b455,'parent':angular[_0x5d0497(0x1f81)](_0x31fa2e[_0x5d0497(0xb49)]),'targetEvent':_0x4b6de4,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x4b5115,'items':_0x9ef1be[_0x5d0497(0x24b6)],'configuration':_0x9ef1be[_0x5d0497(0x1c3b)],'account':_0x9ef1be['zendeskAccount'],'license':null,'setting':null,'crudPermissions':_0x9ef1be[_0x5d0497(0x402)]}});}function _0x258fc5(_0x5b69a2){const _0x19c45a=_0x509b0e;_0x4a0b93[_0x19c45a(0x2a0)][_0x19c45a(0xabd)]({'id':_0x5b69a2['id']})[_0x19c45a(0x15e7)][_0x19c45a(0x64a)](function(){const _0x189fdc=_0x19c45a;_0x28c606()[_0x189fdc(0x21c7)](_0x9ef1be[_0x189fdc(0x24b6)],{'id':_0x5b69a2['id']}),_0x14d36e['success']({'title':'Description\x20deleted!','msg':'Description\x20has\x20been\x20deleted!'});})[_0x19c45a(0x20cd)](function(_0x4a7500){const _0x13acc9=_0x19c45a;_0x14d36e[_0x13acc9(0x1bd0)]({'title':_0x4a7500[_0x13acc9(0x10b3)]?_0x13acc9(0x575)+_0x4a7500[_0x13acc9(0x10b3)]+_0x13acc9(0x21db)+_0x4a7500['statusText']:_0x13acc9(0x12a9),'msg':_0x4a7500['data']?JSON[_0x13acc9(0x2317)](_0x4a7500['data']):_0x4a7500[_0x13acc9(0x2915)]()});});}function _0x3a3e2d(_0x3edaab,_0x588aa5){const _0x27079d=_0x509b0e,_0x555632=_0x20e45e[_0x27079d(0x856)]()[_0x27079d(0x2021)](_0x27079d(0x80e))['htmlContent']('Description'+_0x27079d(0x4b8))['ariaLabel'](_0x27079d(0x748))[_0x27079d(0x2283)](_0x3edaab)['ok']('OK')['cancel'](_0x27079d(0x18fd));_0x20e45e[_0x27079d(0xa60)](_0x555632)[_0x27079d(0x64a)](function(){_0x258fc5(_0x588aa5);},function(){const _0x261886=_0x27079d;console[_0x261886(0x9b4)]('CANCEL');});}function _0xf6556a(_0x157330){const _0x480976=_0x509b0e,_0x4c5153=_0x20e45e[_0x480976(0x856)]()[_0x480976(0x2021)](_0x480976(0xbe4))['htmlContent'](''+_0x9ef1be['selectedDescriptions'][_0x480976(0x1b9e)]+_0x480976(0x163e)+_0x480976(0x4b8))[_0x480976(0x213e)](_0x480976(0x531))[_0x480976(0x2283)](_0x157330)['ok']('OK')[_0x480976(0x101a)](_0x480976(0x18fd));_0x20e45e[_0x480976(0xa60)](_0x4c5153)[_0x480976(0x64a)](function(){const _0x421d48=_0x480976;_0x9ef1be[_0x421d48(0x21c1)][_0x421d48(0x1397)](function(_0x2338cc){_0x258fc5(_0x2338cc);}),_0x9ef1be[_0x421d48(0x21c1)]=[];});}_0x9ef1be['selectedFields']=[],_0x9ef1be['createOrEditField']=_0x5e8354,_0x9ef1be[_0x509b0e(0x1436)]=_0x5287d3,_0x9ef1be[_0x509b0e(0x1e89)]=_0x12ed70;function _0x5e8354(_0x5b8048,_0x1319ae){const _0x29610a=_0x509b0e;_0x20e45e['show']({'controller':_0x29610a(0x574),'controllerAs':'vm','templateUrl':_0x32b455,'parent':angular[_0x29610a(0x1f81)](_0x31fa2e['body']),'targetEvent':_0x5b8048,'clickOutsideToClose':!![],'locals':{'type':_0x29610a(0xc26),'item':_0x1319ae,'items':_0x9ef1be[_0x29610a(0xf26)],'configuration':_0x9ef1be['zendeskConfiguration'],'account':_0x9ef1be[_0x29610a(0xd72)],'license':null,'setting':null,'crudPermissions':_0x9ef1be[_0x29610a(0x402)]}});}function _0x3ca4fb(_0x36b9d1){const _0x287e7c=_0x509b0e;_0x4a0b93[_0x287e7c(0x2a0)][_0x287e7c(0xabd)]({'id':_0x36b9d1['id']})['$promise']['then'](function(){const _0x5b96a6=_0x287e7c;_0x28c606()[_0x5b96a6(0x21c7)](_0x9ef1be[_0x5b96a6(0xf26)],{'id':_0x36b9d1['id']}),_0x14d36e[_0x5b96a6(0x1339)]({'title':_0x5b96a6(0x13e7),'msg':_0x5b96a6(0x14b)});})[_0x287e7c(0x20cd)](function(_0xd20e2a){const _0x66e211=_0x287e7c;_0x14d36e[_0x66e211(0x1bd0)]({'title':_0xd20e2a[_0x66e211(0x10b3)]?_0x66e211(0x575)+_0xd20e2a[_0x66e211(0x10b3)]+_0x66e211(0x21db)+_0xd20e2a[_0x66e211(0x2115)]:_0x66e211(0x12a9),'msg':_0xd20e2a[_0x66e211(0x1c52)]?JSON['stringify'](_0xd20e2a[_0x66e211(0x1c52)]):_0xd20e2a['toString']()});});}function _0x5287d3(_0x5b7704,_0x9e638e){const _0x53369c=_0x509b0e,_0x41bd41=_0x20e45e[_0x53369c(0x856)]()[_0x53369c(0x2021)](_0x53369c(0x865))['htmlContent']('Field'+_0x53369c(0x4b8))[_0x53369c(0x213e)](_0x53369c(0x22d7))['targetEvent'](_0x5b7704)['ok']('OK')[_0x53369c(0x101a)]('CANCEL');_0x20e45e[_0x53369c(0xa60)](_0x41bd41)[_0x53369c(0x64a)](function(){_0x3ca4fb(_0x9e638e);},function(){const _0x1329a2=_0x53369c;console['log'](_0x1329a2(0x18fd));});}function _0x12ed70(_0x2e5e1c){const _0x51b092=_0x509b0e,_0x5c6530=_0x20e45e[_0x51b092(0x856)]()[_0x51b092(0x2021)](_0x51b092(0x17bf))[_0x51b092(0x33a)](''+_0x9ef1be[_0x51b092(0xa3a)][_0x51b092(0x1b9e)]+'\x20selected'+_0x51b092(0x4b8))[_0x51b092(0x213e)](_0x51b092(0x11bc))['targetEvent'](_0x2e5e1c)['ok']('OK')[_0x51b092(0x101a)](_0x51b092(0x18fd));_0x20e45e[_0x51b092(0xa60)](_0x5c6530)[_0x51b092(0x64a)](function(){const _0x1db105=_0x51b092;_0x9ef1be[_0x1db105(0xa3a)][_0x1db105(0x1397)](function(_0x2937d2){_0x3ca4fb(_0x2937d2);}),_0x9ef1be[_0x1db105(0xa3a)]=[];});}}const _0x302b8e=_0x42b2e2;;_0x54acd0['$inject']=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog','$q','$translate',_0x49a1e3(0x680),'zendeskConfigurations','zendeskConfiguration',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting',_0x49a1e3(0x402)];function _0x54acd0(_0x251163,_0x521aa9,_0x318c35,_0x51b807,_0x352379,_0x2ac463,_0x4c5fe1,_0x321f70,_0x19cef7,_0x3260c5,_0x2d38e0,_0x57c417,_0x2cece7,_0x3c3f7b){const _0x3ff38c=_0x49a1e3,_0x27d11b=this;_0x27d11b[_0x3ff38c(0x1d3d)]=_0x2d38e0['getCurrentUser'](),_0x27d11b['errors']=[],_0x27d11b[_0x3ff38c(0x28d6)]=_0x2cece7,_0x27d11b[_0x3ff38c(0x1947)]=_0x57c417,_0x27d11b[_0x3ff38c(0x402)]=_0x3c3f7b,_0x27d11b[_0x3ff38c(0x6c2)]={},_0x27d11b['passwordPattern']=_0x27d11b['setting']&&_0x27d11b[_0x3ff38c(0x28d6)][_0x3ff38c(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x27d11b['title']=_0x3ff38c(0x1310),_0x27d11b[_0x3ff38c(0x1c3b)]=angular[_0x3ff38c(0x289e)](_0x19cef7),_0x27d11b['zendeskConfigurations']=_0x321f70,_0x27d11b[_0x3ff38c(0x1d9a)]=![];!_0x27d11b[_0x3ff38c(0x1c3b)]&&(_0x27d11b['zendeskConfiguration']={'channel':_0x3ff38c(0x227c),'type':'inbound'},_0x27d11b['title']='INTEGRATIONS.NEW_ZENDESKCONFIGURATION',_0x27d11b['newZendeskConfiguration']=!![]);_0x27d11b[_0x3ff38c(0x21cd)]=_0x2094f5,_0x27d11b[_0x3ff38c(0x8f8)]=_0x486af2,_0x27d11b['deleteZendeskConfiguration']=_0x558cc4,_0x27d11b[_0x3ff38c(0x1605)]=_0x1801e7,_0x27d11b[_0x3ff38c(0x16cb)]=_0x2e0651;function _0x2094f5(){const _0x38bf34=_0x3ff38c;_0x27d11b['errors']=[],_0x3260c5[_0x38bf34(0x1da9)][_0x38bf34(0x1d2d)]({'id':_0x521aa9[_0x38bf34(0x1b48)]['id']},_0x27d11b[_0x38bf34(0x1c3b)])['$promise'][_0x38bf34(0x64a)](function(_0x20a1fb){const _0x3825cf=_0x38bf34;_0x27d11b['zendeskConfigurations']['unshift'](_0x20a1fb[_0x3825cf(0x14f8)]()),_0x4c5fe1[_0x3825cf(0x1339)]({'title':_0x3825cf(0x610),'msg':_0x27d11b[_0x3825cf(0x1c3b)][_0x3825cf(0x2494)]?_0x27d11b['zendeskConfiguration']['name']+_0x3825cf(0x258d):''}),_0x2e0651(_0x20a1fb);})[_0x38bf34(0x20cd)](function(_0x125c6f){const _0x1b6e9f=_0x38bf34;if(_0x125c6f['data']&&_0x125c6f[_0x1b6e9f(0x1c52)][_0x1b6e9f(0xbae)]&&_0x125c6f[_0x1b6e9f(0x1c52)][_0x1b6e9f(0xbae)][_0x1b6e9f(0x1b9e)]){_0x27d11b[_0x1b6e9f(0xbae)]=_0x125c6f[_0x1b6e9f(0x1c52)][_0x1b6e9f(0xbae)]||[{'message':_0x125c6f[_0x1b6e9f(0x2915)](),'type':_0x1b6e9f(0x208f)}];for(let _0x555988=0x0;_0x555988<_0x125c6f[_0x1b6e9f(0x1c52)][_0x1b6e9f(0xbae)][_0x1b6e9f(0x1b9e)];_0x555988+=0x1){_0x4c5fe1['error']({'title':_0x125c6f['data'][_0x1b6e9f(0xbae)][_0x555988][_0x1b6e9f(0x2185)],'msg':_0x125c6f['data'][_0x1b6e9f(0xbae)][_0x555988][_0x1b6e9f(0x18ca)]});}}else _0x4c5fe1[_0x1b6e9f(0x1bd0)]({'title':_0x125c6f[_0x1b6e9f(0x10b3)]?_0x1b6e9f(0x575)+_0x125c6f[_0x1b6e9f(0x10b3)]+'\x20-\x20'+_0x125c6f[_0x1b6e9f(0x2115)]:_0x1b6e9f(0x208f),'msg':_0x125c6f[_0x1b6e9f(0x1c52)]?JSON[_0x1b6e9f(0x2317)](_0x125c6f['data'][_0x1b6e9f(0x18ca)]):_0x125c6f[_0x1b6e9f(0x2915)]()});});}function _0x486af2(){const _0x5b391e=_0x3ff38c;_0x27d11b[_0x5b391e(0xbae)]=[],_0x3260c5[_0x5b391e(0x22b4)][_0x5b391e(0x2603)]({'id':_0x27d11b[_0x5b391e(0x1c3b)]['id']},_0x27d11b[_0x5b391e(0x1c3b)])[_0x5b391e(0x15e7)]['then'](function(_0x120ec9){const _0x2b5340=_0x5b391e,_0x3da375=_0x28c606()['find'](_0x27d11b['zendeskConfigurations'],{'id':_0x120ec9['id']});_0x3da375&&_0x28c606()[_0x2b5340(0x14fe)](_0x3da375,_0x28c606()[_0x2b5340(0x27bb)](_0x120ec9[_0x2b5340(0x14f8)](),_0x28c606()['keys'](_0x3da375))),_0x4c5fe1[_0x2b5340(0x1339)]({'title':_0x2b5340(0x90b),'msg':_0x27d11b[_0x2b5340(0x1c3b)][_0x2b5340(0x2494)]?_0x27d11b['zendeskConfiguration'][_0x2b5340(0x2494)]+_0x2b5340(0x271):''}),_0x2e0651(_0x120ec9);})[_0x5b391e(0x20cd)](function(_0x3aaab9){const _0x4adb2b=_0x5b391e;if(_0x3aaab9[_0x4adb2b(0x1c52)]&&_0x3aaab9[_0x4adb2b(0x1c52)][_0x4adb2b(0xbae)]&&_0x3aaab9['data']['errors'][_0x4adb2b(0x1b9e)]){_0x27d11b['errors']=_0x3aaab9[_0x4adb2b(0x1c52)]['errors']||[{'message':_0x3aaab9[_0x4adb2b(0x2915)](),'type':_0x4adb2b(0x137)}];for(let _0x23f911=0x0;_0x23f911<_0x3aaab9[_0x4adb2b(0x1c52)][_0x4adb2b(0xbae)]['length'];_0x23f911++){_0x4c5fe1[_0x4adb2b(0x1bd0)]({'title':_0x3aaab9[_0x4adb2b(0x1c52)][_0x4adb2b(0xbae)][_0x23f911][_0x4adb2b(0x2185)],'msg':_0x3aaab9[_0x4adb2b(0x1c52)][_0x4adb2b(0xbae)][_0x23f911][_0x4adb2b(0x18ca)]});}}else _0x4c5fe1[_0x4adb2b(0x1bd0)]({'title':_0x3aaab9[_0x4adb2b(0x10b3)]?'API:'+_0x3aaab9[_0x4adb2b(0x10b3)]+_0x4adb2b(0x21db)+_0x3aaab9[_0x4adb2b(0x2115)]:_0x4adb2b(0x137),'msg':_0x3aaab9[_0x4adb2b(0x1c52)]?JSON[_0x4adb2b(0x2317)](_0x3aaab9[_0x4adb2b(0x1c52)]['message']):_0x3aaab9[_0x4adb2b(0x2915)]()});});}function _0x558cc4(_0x3540e5){const _0x565c44=_0x3ff38c;_0x27d11b[_0x565c44(0xbae)]=[];const _0x8e749c=_0x51b807[_0x565c44(0x856)]()[_0x565c44(0x2021)](_0x565c44(0x103a))['content'](_0x565c44(0xb29))[_0x565c44(0x213e)](_0x565c44(0x1e50))['ok'](_0x565c44(0x2664))['cancel'](_0x565c44(0x1dc6))[_0x565c44(0x2283)](_0x3540e5);_0x51b807[_0x565c44(0xa60)](_0x8e749c)[_0x565c44(0x64a)](function(){const _0x302300=_0x565c44;_0x3260c5['intZendeskConfiguration']['delete']({'id':_0x27d11b[_0x302300(0x1c3b)]['id']})[_0x302300(0x15e7)][_0x302300(0x64a)](function(){const _0x3c28b0=_0x302300;_0x28c606()[_0x3c28b0(0x21c7)](_0x27d11b[_0x3c28b0(0x10f4)],{'id':_0x27d11b[_0x3c28b0(0x1c3b)]['id']}),_0x4c5fe1[_0x3c28b0(0x1339)]({'title':'ZendeskConfiguration\x20properly\x20deleted!','msg':(_0x27d11b[_0x3c28b0(0x1c3b)][_0x3c28b0(0x2494)]||'zendeskConfiguration')+_0x3c28b0(0x1fa8)}),_0x2e0651(_0x27d11b[_0x3c28b0(0x1c3b)]);})[_0x302300(0x20cd)](function(_0x7ea405){const _0x45ad05=_0x302300;if(_0x7ea405[_0x45ad05(0x1c52)]&&_0x7ea405[_0x45ad05(0x1c52)][_0x45ad05(0xbae)]&&_0x7ea405[_0x45ad05(0x1c52)][_0x45ad05(0xbae)][_0x45ad05(0x1b9e)]){_0x27d11b[_0x45ad05(0xbae)]=_0x7ea405[_0x45ad05(0x1c52)]['errors']||[{'message':_0x7ea405['toString'](),'type':'api.intZendeskConfiguration.delete'}];for(let _0xac01b1=0x0;_0xac01b1<_0x7ea405['data']['errors']['length'];_0xac01b1++){_0x4c5fe1[_0x45ad05(0x1bd0)]({'title':_0x7ea405[_0x45ad05(0x1c52)]['errors'][_0xac01b1]['type'],'msg':_0x7ea405[_0x45ad05(0x1c52)][_0x45ad05(0xbae)][_0xac01b1][_0x45ad05(0x18ca)]});}}else _0x4c5fe1['error']({'title':_0x7ea405[_0x45ad05(0x10b3)]?_0x45ad05(0x575)+_0x7ea405[_0x45ad05(0x10b3)]+_0x45ad05(0x21db)+_0x7ea405['statusText']:_0x45ad05(0x110),'msg':_0x7ea405[_0x45ad05(0x1c52)]?JSON[_0x45ad05(0x2317)](_0x7ea405['data'][_0x45ad05(0x18ca)]):_0x7ea405[_0x45ad05(0x18ca)]||_0x7ea405[_0x45ad05(0x2915)]()});});},function(){});}function _0x1801e7(_0xbf49d4){return _0xbf49d4===null?undefined:new Date(_0xbf49d4);}function _0x2e0651(_0x47ee21){const _0x3d71dd=_0x3ff38c;_0x51b807[_0x3d71dd(0x268e)](_0x47ee21);}}const _0x56f39f=_0x54acd0;;const _0x5b13d2=_0x2e4a48['p']+_0x49a1e3(0x1e7e);;_0x5068f1['$inject']=['$scope',_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),'$mdSidenav',_0x49a1e3(0x212a),'$document',_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x96d),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x5068f1(_0x5dd9b8,_0x1d1d86,_0xf7e3d,_0x43764b,_0x3809a2,_0x2114f0,_0x26facf,_0x48fb56,_0x325f23,_0x4e1798,_0x223bc7,_0x219adf,_0xaeff3,_0x53909e,_0x2060f3,_0x157e84,_0x57db06){const _0xdc5a34=_0x49a1e3,_0x9447a3=this;_0x9447a3[_0xdc5a34(0x1947)]=_0x157e84,_0x9447a3['setting']=_0x57db06,_0x9447a3['currentUser']=_0x2060f3[_0xdc5a34(0x808)](),_0x9447a3['zendeskAccounts']=_0x325f23||{'count':0x0,'rows':[]},_0x9447a3['userProfile']=_0x4e1798,_0x9447a3['userProfileSection']=_0x223bc7&&_0x223bc7['count']==0x1?_0x223bc7[_0xdc5a34(0x28b8)][0x0]:null,_0x9447a3[_0xdc5a34(0x402)]=_0x2060f3[_0xdc5a34(0xa7e)](_0x9447a3[_0xdc5a34(0x16b2)]?_0x9447a3[_0xdc5a34(0x16b2)]['crudPermissions']:null),_0x9447a3[_0xdc5a34(0x185d)]=_0xdc5a34(0x96d),_0x9447a3[_0xdc5a34(0x300)]='',_0x9447a3[_0xdc5a34(0x2748)]=null,_0x9447a3[_0xdc5a34(0x95e)]=[],_0x9447a3[_0xdc5a34(0x289a)]={'fields':_0xdc5a34(0x9ef),'limit':0xa,'page':0x1},_0x9447a3[_0xdc5a34(0x9d4)]=_0x28c606()[_0xdc5a34(0x161e)]([{'option':_0xdc5a34(0x12ed),'value':_0xdc5a34(0xfbd)},{'option':_0xdc5a34(0x1e21),'value':_0xdc5a34(0x1e4a)}],function(_0x41ffbe){return _0x28c606()['replace'](_0x41ffbe['value'],new RegExp('\x27','g'),'');}),_0x9447a3['arrayauthType']=_0x28c606()[_0xdc5a34(0x161e)]([{'option':_0xdc5a34(0x124a),'value':_0xdc5a34(0x16b)},{'option':_0xdc5a34(0x1492),'value':'\x27token\x27'}],function(_0xd1d89a){const _0x512745=_0xdc5a34;return _0x28c606()[_0x512745(0x1353)](_0xd1d89a['value'],new RegExp('\x27','g'),'');}),_0x9447a3[_0xdc5a34(0xff6)]=_0x35a138,_0x9447a3[_0xdc5a34(0x1348)]=_0x268614,_0x9447a3['deleteconfirm']=_0x1aec54,_0x9447a3[_0xdc5a34(0x1339)]=_0x491316,_0x9447a3[_0xdc5a34(0xaca)]=_0x2b5f7c,_0x9447a3['createOrEditZendeskAccount']=_0x37a5ba,_0x9447a3[_0xdc5a34(0xd84)]=_0x24d1f4,_0x9447a3[_0xdc5a34(0x13e9)]=_0x747adc,_0x9447a3['deleteSelectedZendeskAccounts']=_0x4a74b5,_0x9447a3['deselectZendeskAccounts']=_0x537488,_0x9447a3[_0xdc5a34(0x21d7)]=_0x4aff18;function _0x35a138(_0x1d873f){const _0x5e7edd=_0xdc5a34;_0xf7e3d['go'](_0x5e7edd(0x21b3),{'id':_0x1d873f['id'],'zendeskAccount':_0x1d873f,'crudPermissions':_0x9447a3[_0x5e7edd(0x402)]});}function _0x268614(_0x43eb4f){const _0x101708=_0xdc5a34;return _0x219adf[_0x101708(0x1da9)][_0x101708(0x5e0)]({'id':_0x43eb4f['id'],'test':!![]})[_0x101708(0x15e7)][_0x101708(0x64a)](function(){const _0xd14f92=_0x101708;_0x53909e[_0xd14f92(0x1339)]({'title':_0xd14f92(0x21c2),'msg':_0xd14f92(0x259b)});})['catch'](function(_0x5edb86){const _0x1ff1b9=_0x101708;_0x53909e['error']({'title':_0x1ff1b9(0x21c2),'msg':_0x5edb86[_0x1ff1b9(0x1c52)]?_0x5edb86[_0x1ff1b9(0x1c52)][_0x1ff1b9(0x18ca)]?_0x5edb86['data'][_0x1ff1b9(0x18ca)]:JSON[_0x1ff1b9(0x2317)](_0x5edb86[_0x1ff1b9(0x1c52)]):_0x5edb86[_0x1ff1b9(0x2915)]()});});}function _0x1aec54(_0x56a2eb,_0x1fc409){const _0x3b8cca=_0xdc5a34,_0x345b05=_0x3809a2[_0x3b8cca(0x856)]()[_0x3b8cca(0x2021)](_0x3b8cca(0x1231)+_0x28c606()[_0x3b8cca(0xc01)](_0x3b8cca(0xd72))+'?')['htmlContent'](_0x3b8cca(0x50b)+(_0x56a2eb['name']||_0x3b8cca(0xd72))+_0x3b8cca(0x26d0)+_0x3b8cca(0x4b8))[_0x3b8cca(0x213e)](_0x3b8cca(0x74a))[_0x3b8cca(0x2283)](_0x1fc409)['ok']('OK')['cancel'](_0x3b8cca(0x18fd));_0x3809a2[_0x3b8cca(0xa60)](_0x345b05)['then'](function(){_0x24d1f4(_0x56a2eb);},function(){const _0x29c23b=_0x3b8cca;console['log'](_0x29c23b(0x18fd));});}let _0x3d968c=!![],_0x58143e=0x1;_0x5dd9b8['$watch'](_0xdc5a34(0x1cb9),function(_0x56aeac,_0x1fa042){const _0x57a829=_0xdc5a34;_0x3d968c?_0x26facf(function(){_0x3d968c=![];}):(!_0x1fa042&&(_0x58143e=_0x9447a3[_0x57a829(0x289a)][_0x57a829(0xc72)]),_0x56aeac!==_0x1fa042&&(_0x9447a3[_0x57a829(0x289a)][_0x57a829(0xc72)]=0x1),!_0x56aeac&&(_0x9447a3[_0x57a829(0x289a)][_0x57a829(0xc72)]=_0x58143e),_0x9447a3['getZendeskAccounts']());});function _0x491316(_0x1f6ae4){const _0x1d37f6=_0xdc5a34;_0x9447a3[_0x1d37f6(0x96d)]=_0x1f6ae4||{'count':0x0,'rows':[]};}function _0x2b5f7c(){const _0xb5c303=_0xdc5a34;_0x9447a3[_0xb5c303(0x289a)][_0xb5c303(0x24f9)]=(_0x9447a3[_0xb5c303(0x289a)][_0xb5c303(0xc72)]-0x1)*_0x9447a3['query'][_0xb5c303(0x25bb)],_0x2060f3[_0xb5c303(0x4de)](_0xb5c303(0x333))?_0x9447a3[_0xb5c303(0x1713)]=_0x219adf[_0xb5c303(0x1da9)]['get'](_0x9447a3[_0xb5c303(0x289a)],_0x491316)[_0xb5c303(0x15e7)]:(_0x9447a3[_0xb5c303(0x289a)]['id']=_0x9447a3[_0xb5c303(0x16a8)]['id'],_0x9447a3[_0xb5c303(0x289a)][_0xb5c303(0xa21)]=_0xb5c303(0x182a),_0x9447a3['promise']=_0x219adf[_0xb5c303(0x16a8)][_0xb5c303(0x2565)](_0x9447a3[_0xb5c303(0x289a)],_0x491316)[_0xb5c303(0x15e7)]);}function _0x37a5ba(_0x4b676a,_0x1beb33){const _0x38d998=_0xdc5a34;_0x3809a2['show']({'controller':_0x38d998(0x2096),'controllerAs':'vm','templateUrl':_0x5b13d2,'parent':angular['element'](_0x2114f0['body']),'targetEvent':_0x4b676a,'clickOutsideToClose':!![],'locals':{'zendeskAccount':_0x1beb33,'zendeskAccounts':_0x9447a3[_0x38d998(0x96d)]['rows'],'license':_0x9447a3['license'],'setting':_0x9447a3[_0x38d998(0x28d6)],'crudPermissions':_0x9447a3[_0x38d998(0x402)]}});}function _0x24d1f4(_0x3a5800){const _0x491740=_0xdc5a34;_0x219adf[_0x491740(0x1da9)][_0x491740(0xabd)]({'id':_0x3a5800['id']})['$promise'][_0x491740(0x64a)](function(){const _0x24ae74=_0x491740;_0x28c606()['remove'](_0x9447a3[_0x24ae74(0x96d)][_0x24ae74(0x28b8)],{'id':_0x3a5800['id']}),_0x9447a3['zendeskAccounts'][_0x24ae74(0xb90)]-=0x1,!_0x9447a3[_0x24ae74(0x96d)]['rows'][_0x24ae74(0x1b9e)]&&_0x9447a3[_0x24ae74(0xaca)](),_0x53909e['success']({'title':_0x28c606()[_0x24ae74(0xc01)](_0x24ae74(0x2149))+_0x24ae74(0x2502),'msg':_0x3a5800[_0x24ae74(0x2494)]?_0x3a5800[_0x24ae74(0x2494)]+_0x24ae74(0x1fa8):''});})[_0x491740(0x20cd)](function(_0x3f3569){const _0x17e255=_0x491740;if(_0x3f3569['data']&&_0x3f3569['data'][_0x17e255(0xbae)]&&_0x3f3569[_0x17e255(0x1c52)][_0x17e255(0xbae)][_0x17e255(0x1b9e)]){_0x9447a3['errors']=_0x3f3569[_0x17e255(0x1c52)][_0x17e255(0xbae)]||[{'message':_0x3f3569[_0x17e255(0x2915)](),'type':_0x17e255(0xb5f)}];for(let _0x58d527=0x0;_0x58d527<_0x3f3569['data'][_0x17e255(0xbae)][_0x17e255(0x1b9e)];_0x58d527++){_0x53909e[_0x17e255(0x1bd0)]({'title':_0x3f3569['data'][_0x17e255(0xbae)][_0x58d527][_0x17e255(0x2185)],'msg':_0x3f3569[_0x17e255(0x1c52)][_0x17e255(0xbae)][_0x58d527][_0x17e255(0x18ca)]});}}else _0x53909e['error']({'title':_0x3f3569[_0x17e255(0x10b3)]?_0x17e255(0x575)+_0x3f3569[_0x17e255(0x10b3)]+_0x17e255(0x21db)+_0x3f3569['statusText']:_0x17e255(0xb5f),'msg':_0x3f3569[_0x17e255(0x1c52)]?JSON[_0x17e255(0x2317)](_0x3f3569[_0x17e255(0x1c52)][_0x17e255(0x18ca)]):_0x3f3569[_0x17e255(0x18ca)]||_0x3f3569['toString']()});});}function _0x747adc(){const _0x53b705=_0xdc5a34,_0xd4f6e5=angular[_0x53b705(0x289e)](_0x9447a3['selectedZendeskAccounts']);return _0x9447a3[_0x53b705(0x95e)]=[],_0xd4f6e5;}function _0x4a74b5(_0xae6291){const _0x33b650=_0xdc5a34,_0x304c7c=_0x3809a2[_0x33b650(0x856)]()['title'](_0x33b650(0x26e6))['htmlContent'](_0x33b650(0x50b)+_0x9447a3[_0x33b650(0x95e)]['length']+_0x33b650(0x163e)+'\x20will\x20be\x20deleted.')[_0x33b650(0x213e)](_0x33b650(0x16ba))[_0x33b650(0x2283)](_0xae6291)['ok']('OK')['cancel'](_0x33b650(0x18fd));_0x3809a2['show'](_0x304c7c)[_0x33b650(0x64a)](function(){const _0x1814be=_0x33b650;_0x9447a3[_0x1814be(0x95e)][_0x1814be(0x1397)](function(_0x2b080a){_0x24d1f4(_0x2b080a);}),_0x9447a3[_0x1814be(0x95e)]=[];});}function _0x537488(){const _0x527409=_0xdc5a34;_0x9447a3[_0x527409(0x95e)]=[];}function _0x4aff18(){const _0xc79c44=_0xdc5a34;_0x9447a3[_0xc79c44(0x95e)]=_0x9447a3[_0xc79c44(0x96d)][_0xc79c44(0x28b8)];}}const _0x397399=_0x5068f1;;_0x14cf25[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),'zohoAccounts','zohoAccount',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'license','setting',_0x49a1e3(0x402)];function _0x14cf25(_0x3ef890,_0x1f233f,_0xe3454a,_0x64511,_0x242fa5,_0x44b63e,_0x10ea85,_0x5ae175,_0x46c48b,_0x1ef76d,_0x5e85b2,_0x4ea423,_0x2e5ca4,_0x468bd9){const _0x3b70a9=_0x49a1e3,_0x3d6fa8=this;_0x3d6fa8[_0x3b70a9(0x1d3d)]=_0x5e85b2['getCurrentUser'](),_0x3d6fa8[_0x3b70a9(0xbae)]=[],_0x3d6fa8[_0x3b70a9(0x28d6)]=_0x2e5ca4,_0x3d6fa8[_0x3b70a9(0x1947)]=_0x4ea423,_0x3d6fa8[_0x3b70a9(0x402)]=_0x468bd9,_0x3d6fa8[_0x3b70a9(0x6c2)]={},_0x3d6fa8[_0x3b70a9(0xccc)]=_0x3d6fa8['setting']&&_0x3d6fa8[_0x3b70a9(0x28d6)][_0x3b70a9(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3d6fa8[_0x3b70a9(0x2021)]='INTEGRATIONS.EDIT_ZOHOACCOUNT',_0x3d6fa8[_0x3b70a9(0x1e44)]=angular[_0x3b70a9(0x289e)](_0x46c48b),_0x3d6fa8[_0x3b70a9(0x12eb)]=_0x5ae175,_0x3d6fa8['newZohoAccount']=![];!_0x3d6fa8[_0x3b70a9(0x1e44)]&&(_0x3d6fa8[_0x3b70a9(0x1e44)]={'host':_0x3b70a9(0x189b),'zone':'EU','serverUrl':_0xe3454a[_0x3b70a9(0x48e)]()+_0x3b70a9(0xe1f)+_0xe3454a['host']()+(_0xe3454a[_0x3b70a9(0x23f2)]()?':'+_0xe3454a[_0x3b70a9(0x23f2)]():'')},_0x3d6fa8['title']=_0x3b70a9(0x6b5),_0x3d6fa8[_0x3b70a9(0x1723)]=!![]);_0x3d6fa8[_0x3b70a9(0x2353)]=_0x33278e,_0x3d6fa8['saveZohoAccount']=_0x39cc0d,_0x3d6fa8[_0x3b70a9(0x1013)]=_0x1e8b10,_0x3d6fa8[_0x3b70a9(0x1605)]=_0x41be04,_0x3d6fa8[_0x3b70a9(0x16cb)]=_0x2c991f;function _0x33278e(){const _0xbe1f71=_0x3b70a9;_0x3d6fa8[_0xbe1f71(0xbae)]=[],_0x1ef76d['intZohoAccount'][_0xbe1f71(0x2479)](_0x3d6fa8[_0xbe1f71(0x1e44)])[_0xbe1f71(0x15e7)][_0xbe1f71(0x64a)](function(_0x117061){const _0x238968=_0xbe1f71;_0x3d6fa8[_0x238968(0x12eb)][_0x238968(0x1891)](_0x117061[_0x238968(0x14f8)]()),_0x10ea85[_0x238968(0x1339)]({'title':_0x238968(0x1f08),'msg':_0x3d6fa8[_0x238968(0x1e44)][_0x238968(0x2494)]?_0x3d6fa8[_0x238968(0x1e44)][_0x238968(0x2494)]+'\x20has\x20been\x20created!':''}),_0x2c991f(_0x117061);})[_0xbe1f71(0x20cd)](function(_0x340f82){const _0x87e78a=_0xbe1f71;if(_0x340f82['data']&&_0x340f82['data']['errors']&&_0x340f82[_0x87e78a(0x1c52)][_0x87e78a(0xbae)][_0x87e78a(0x1b9e)]){_0x3d6fa8[_0x87e78a(0xbae)]=_0x340f82[_0x87e78a(0x1c52)][_0x87e78a(0xbae)]||[{'message':_0x340f82[_0x87e78a(0x2915)](),'type':_0x87e78a(0x2133)}];for(let _0x26925c=0x0;_0x26925c<_0x340f82[_0x87e78a(0x1c52)][_0x87e78a(0xbae)][_0x87e78a(0x1b9e)];_0x26925c+=0x1){_0x10ea85['error']({'title':_0x340f82['data']['errors'][_0x26925c][_0x87e78a(0x2185)],'msg':_0x340f82[_0x87e78a(0x1c52)][_0x87e78a(0xbae)][_0x26925c][_0x87e78a(0x18ca)]});}}else _0x10ea85[_0x87e78a(0x1bd0)]({'title':_0x340f82[_0x87e78a(0x10b3)]?_0x87e78a(0x575)+_0x340f82[_0x87e78a(0x10b3)]+_0x87e78a(0x21db)+_0x340f82[_0x87e78a(0x2115)]:_0x87e78a(0x2133),'msg':_0x340f82[_0x87e78a(0x1c52)]?JSON[_0x87e78a(0x2317)](_0x340f82[_0x87e78a(0x1c52)]['message']):_0x340f82[_0x87e78a(0x2915)]()});});}function _0x39cc0d(){const _0x5a5e5f=_0x3b70a9;_0x3d6fa8[_0x5a5e5f(0xbae)]=[],_0x1ef76d['intZohoAccount']['update']({'id':_0x3d6fa8[_0x5a5e5f(0x1e44)]['id']},_0x3d6fa8[_0x5a5e5f(0x1e44)])[_0x5a5e5f(0x15e7)][_0x5a5e5f(0x64a)](function(_0x34ddc1){const _0x33b4b5=_0x5a5e5f,_0x126c5c=_0x28c606()[_0x33b4b5(0x27bc)](_0x3d6fa8['zohoAccounts'],{'id':_0x34ddc1['id']});_0x126c5c&&_0x28c606()[_0x33b4b5(0x14fe)](_0x126c5c,_0x28c606()[_0x33b4b5(0x27bb)](_0x34ddc1[_0x33b4b5(0x14f8)](),_0x28c606()[_0x33b4b5(0x1ec6)](_0x126c5c))),_0x10ea85[_0x33b4b5(0x1339)]({'title':_0x33b4b5(0x1973),'msg':_0x3d6fa8[_0x33b4b5(0x1e44)][_0x33b4b5(0x2494)]?_0x3d6fa8[_0x33b4b5(0x1e44)]['name']+_0x33b4b5(0x271):''}),_0x2c991f(_0x34ddc1);})[_0x5a5e5f(0x20cd)](function(_0x5bd2b5){const _0x438784=_0x5a5e5f;if(_0x5bd2b5[_0x438784(0x1c52)]&&_0x5bd2b5['data'][_0x438784(0xbae)]&&_0x5bd2b5[_0x438784(0x1c52)][_0x438784(0xbae)][_0x438784(0x1b9e)]){_0x3d6fa8[_0x438784(0xbae)]=_0x5bd2b5[_0x438784(0x1c52)]['errors']||[{'message':_0x5bd2b5[_0x438784(0x2915)](),'type':_0x438784(0x20ac)}];for(let _0x389210=0x0;_0x389210<_0x5bd2b5[_0x438784(0x1c52)][_0x438784(0xbae)][_0x438784(0x1b9e)];_0x389210++){_0x10ea85[_0x438784(0x1bd0)]({'title':_0x5bd2b5[_0x438784(0x1c52)][_0x438784(0xbae)][_0x389210]['type'],'msg':_0x5bd2b5[_0x438784(0x1c52)][_0x438784(0xbae)][_0x389210][_0x438784(0x18ca)]});}}else _0x10ea85[_0x438784(0x1bd0)]({'title':_0x5bd2b5[_0x438784(0x10b3)]?_0x438784(0x575)+_0x5bd2b5[_0x438784(0x10b3)]+_0x438784(0x21db)+_0x5bd2b5['statusText']:_0x438784(0x20ac),'msg':_0x5bd2b5[_0x438784(0x1c52)]?JSON['stringify'](_0x5bd2b5['data'][_0x438784(0x18ca)]):_0x5bd2b5['toString']()});});}function _0x1e8b10(_0x5e0cee){const _0x4b6c47=_0x3b70a9;_0x3d6fa8[_0x4b6c47(0xbae)]=[];const _0x57695b=_0x64511['confirm']()[_0x4b6c47(0x2021)](_0x4b6c47(0x103a))[_0x4b6c47(0x12b8)](_0x4b6c47(0xf12))[_0x4b6c47(0x213e)](_0x4b6c47(0x2001))['ok'](_0x4b6c47(0x2664))[_0x4b6c47(0x101a)](_0x4b6c47(0x1dc6))[_0x4b6c47(0x2283)](_0x5e0cee);_0x64511['show'](_0x57695b)[_0x4b6c47(0x64a)](function(){const _0xe6eb8=_0x4b6c47;_0x1ef76d[_0xe6eb8(0x1dc7)][_0xe6eb8(0xabd)]({'id':_0x3d6fa8[_0xe6eb8(0x1e44)]['id']})[_0xe6eb8(0x15e7)][_0xe6eb8(0x64a)](function(){const _0x1ca129=_0xe6eb8;_0x28c606()[_0x1ca129(0x21c7)](_0x3d6fa8['zohoAccounts'],{'id':_0x3d6fa8['zohoAccount']['id']}),_0x10ea85['success']({'title':_0x1ca129(0x8a5),'msg':(_0x3d6fa8[_0x1ca129(0x1e44)][_0x1ca129(0x2494)]||_0x1ca129(0x1e44))+_0x1ca129(0x1fa8)}),_0x2c991f(_0x3d6fa8[_0x1ca129(0x1e44)]);})[_0xe6eb8(0x20cd)](function(_0x16d334){const _0x3f2297=_0xe6eb8;if(_0x16d334[_0x3f2297(0x1c52)]&&_0x16d334[_0x3f2297(0x1c52)][_0x3f2297(0xbae)]&&_0x16d334[_0x3f2297(0x1c52)]['errors'][_0x3f2297(0x1b9e)]){_0x3d6fa8[_0x3f2297(0xbae)]=_0x16d334[_0x3f2297(0x1c52)]['errors']||[{'message':_0x16d334['toString'](),'type':_0x3f2297(0x342)}];for(let _0x28e7e2=0x0;_0x28e7e2<_0x16d334[_0x3f2297(0x1c52)]['errors']['length'];_0x28e7e2++){_0x10ea85[_0x3f2297(0x1bd0)]({'title':_0x16d334[_0x3f2297(0x1c52)][_0x3f2297(0xbae)][_0x28e7e2]['type'],'msg':_0x16d334['data']['errors'][_0x28e7e2][_0x3f2297(0x18ca)]});}}else _0x10ea85['error']({'title':_0x16d334['status']?_0x3f2297(0x575)+_0x16d334[_0x3f2297(0x10b3)]+'\x20-\x20'+_0x16d334[_0x3f2297(0x2115)]:_0x3f2297(0x342),'msg':_0x16d334['data']?JSON[_0x3f2297(0x2317)](_0x16d334['data']['message']):_0x16d334[_0x3f2297(0x18ca)]||_0x16d334[_0x3f2297(0x2915)]()});});},function(){});}function _0x41be04(_0x181328){return _0x181328===null?undefined:new Date(_0x181328);}function _0x2c991f(_0x59dff0){const _0x5ddfba=_0x3b70a9;_0x64511[_0x5ddfba(0x268e)](_0x59dff0);}}const _0x4f5efd=_0x14cf25;;const _0x16f0d2=_0x2e4a48['p']+'src/js/modules/main/apps/integrations/views/zohoAccounts/edit/configurations/dialog.html/dialog.html';;const _0x8a2719=_0x2e4a48['p']+_0x49a1e3(0x2739);;_0x2793f6[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x1373),'api',_0x49a1e3(0x680),_0x49a1e3(0xdcf)];function _0x2793f6(_0x4ae3cc,_0x2d94be,_0x1fd7ff,_0x1fae67,_0x8a8c8c){const _0x54fa87=_0x49a1e3,_0x3c2208=this;_0x3c2208[_0x54fa87(0x1d3d)]=_0x8a8c8c[_0x54fa87(0x808)](),_0x3c2208[_0x54fa87(0x1e44)]={},_0x3c2208[_0x54fa87(0x1d34)]={},_0x3c2208[_0x54fa87(0x23a8)]=[],_0x3c2208[_0x54fa87(0x11a)]=-0x1,_0x3c2208[_0x54fa87(0x402)],_0x3c2208[_0x54fa87(0x2354)]=_0x4d82e2,_0x3c2208['getZohoConfiguration']=_0x3ec7b3,_0x3c2208[_0x54fa87(0x18d7)]=_0x16ebd0,_0x3c2208['deleteZohoConfiguration']=_0x589c29,_0x3c2208[_0x54fa87(0x22f7)]=_0x222e79;function _0x222e79(){const _0x382b31=_0x54fa87;return _0x1fd7ff['intZohoConfiguration']['update']({'id':_0x3c2208[_0x382b31(0x1d34)]['id']},_0x3c2208['zohoConfiguration'])[_0x382b31(0x15e7)]['then'](function(){const _0x3465f1=_0x382b31;_0x1fae67[_0x3465f1(0x1339)]({'title':_0x3465f1(0x23bd),'msg':_0x3465f1(0x1372)});})[_0x382b31(0x20cd)](function(_0x5cc53c){const _0x4b875c=_0x382b31;_0x1fae67[_0x4b875c(0x1bd0)]({'title':_0x5cc53c['status']?_0x4b875c(0x575)+_0x5cc53c[_0x4b875c(0x10b3)]+_0x4b875c(0x21db)+_0x5cc53c['statusText']:_0x4b875c(0x20b5),'msg':_0x5cc53c[_0x4b875c(0x1c52)]?JSON['stringify'](_0x5cc53c[_0x4b875c(0x1c52)]):_0x5cc53c[_0x4b875c(0x2915)]()});});}function _0x4d82e2(_0x978c33,_0xc25992){const _0x15f741=_0x54fa87;_0x3c2208[_0x15f741(0x1e44)]=_0x978c33,_0x3c2208['crudPermissions']=typeof _0xc25992!==_0x15f741(0x19a1)?_0xc25992:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1fd7ff['intZohoAccount'][_0x15f741(0x340)]({'id':_0x3c2208[_0x15f741(0x1e44)]['id'],'sort':_0x15f741(0x260c)})['$promise'][_0x15f741(0x64a)](function(_0x42639e){const _0x5f1b1c=_0x15f741;return _0x3c2208[_0x5f1b1c(0x23a8)]=_0x42639e[_0x5f1b1c(0x28b8)]?_0x42639e[_0x5f1b1c(0x28b8)]:[],_0x3c2208[_0x5f1b1c(0x23a8)][_0x5f1b1c(0x1b9e)]&&_0x3c2208[_0x5f1b1c(0x2810)](0x0),_0x1fd7ff[_0x5f1b1c(0xefb)][_0x5f1b1c(0x896)]({'nolimit':!![],'sort':_0x5f1b1c(0x2494)})[_0x5f1b1c(0x15e7)];})[_0x15f741(0x64a)](function(_0x4a0be8){const _0x1273f2=_0x15f741;_0x3c2208['variables']=_0x4a0be8[_0x1273f2(0x28b8)]?_0x4a0be8[_0x1273f2(0x28b8)]:[],_0x3c2208[_0x1273f2(0x2685)]=_0x28c606()[_0x1273f2(0x161e)](_0x3c2208['variables'],'id');})[_0x15f741(0x20cd)](function(_0x141e7b){const _0x578d28=_0x15f741;_0x1fae67['error']({'title':_0x141e7b['status']?_0x578d28(0x575)+_0x141e7b[_0x578d28(0x10b3)]+'\x20-\x20'+_0x141e7b[_0x578d28(0x2115)]:_0x578d28(0x1bdd),'msg':_0x141e7b[_0x578d28(0x1c52)]?JSON[_0x578d28(0x2317)](_0x141e7b['data']):_0x141e7b[_0x578d28(0x2915)]()});});}function _0x3ec7b3(_0x566516){const _0x3f3a4f=_0x54fa87;_0x3c2208[_0x3f3a4f(0x1d34)]=_0x3c2208[_0x3f3a4f(0x23a8)][_0x566516],_0x3c2208[_0x3f3a4f(0x11a)]=_0x566516,_0x1fd7ff[_0x3f3a4f(0x1d7e)][_0x3f3a4f(0x241f)]({'id':_0x3c2208['zohoConfiguration']['id']})[_0x3f3a4f(0x15e7)]['then'](function(_0x4b2f4a){const _0x44028e=_0x3f3a4f;return _0x3c2208[_0x44028e(0x29b)]=_0x4b2f4a[_0x44028e(0x28b8)]?_0x4b2f4a['rows']:[],_0x1fd7ff[_0x44028e(0x1d7e)][_0x44028e(0x1e33)]({'id':_0x3c2208[_0x44028e(0x1d34)]['id']})[_0x44028e(0x15e7)];})['then'](function(_0xadfdc9){const _0x4a5bd9=_0x3f3a4f;return _0x3c2208[_0x4a5bd9(0x24b6)]=_0xadfdc9[_0x4a5bd9(0x28b8)]?_0xadfdc9['rows']:[],_0x1fd7ff[_0x4a5bd9(0x1d7e)][_0x4a5bd9(0x5e0)]({'id':_0x3c2208[_0x4a5bd9(0x1d34)]['id']})[_0x4a5bd9(0x15e7)];})[_0x3f3a4f(0x64a)](function(_0x1166b5){const _0x282ed1=_0x3f3a4f;_0x3c2208[_0x282ed1(0xf26)]=_0x1166b5[_0x282ed1(0x28b8)]?_0x1166b5['rows']:[];})[_0x3f3a4f(0x20cd)](function(_0xb2d754){const _0x1b8842=_0x3f3a4f;_0x1fae67[_0x1b8842(0x1bd0)]({'title':_0xb2d754['status']?_0x1b8842(0x575)+_0xb2d754[_0x1b8842(0x10b3)]+_0x1b8842(0x21db)+_0xb2d754[_0x1b8842(0x2115)]:_0x1b8842(0x15c1),'msg':_0xb2d754[_0x1b8842(0x1c52)]?JSON['stringify'](_0xb2d754['data']):_0xb2d754[_0x1b8842(0x2915)]()});});}function _0x16ebd0(_0x3b82ee,_0x1ea1df){const _0x1bac7d=_0x54fa87;_0x4ae3cc[_0x1bac7d(0xa60)]({'controller':_0x1bac7d(0x262),'controllerAs':'vm','templateUrl':_0x16f0d2,'parent':angular['element'](_0x2d94be['body']),'targetEvent':_0x3b82ee,'clickOutsideToClose':!![],'locals':{'zohoConfiguration':_0x1ea1df,'configurations':_0x3c2208[_0x1bac7d(0x23a8)],'license':null,'setting':null,'crudPermissions':_0x3c2208[_0x1bac7d(0x402)]}})[_0x1bac7d(0x988)](function(){const _0x50ddd2=_0x1bac7d;_0x3c2208[_0x50ddd2(0x2810)](0x0);});}function _0x589c29(_0x4fe361,_0x4464c6){const _0x299eb6=_0x54fa87,_0x2bd0aa=_0x4ae3cc['confirm']()[_0x299eb6(0x2021)](_0x299eb6(0x213c))[_0x299eb6(0x33a)](_0x299eb6(0x50b)+(_0x4464c6[_0x299eb6(0x2494)]||_0x299eb6(0x1d34))+_0x299eb6(0x26d0)+_0x299eb6(0x4b8))[_0x299eb6(0x213e)](_0x299eb6(0x202f))[_0x299eb6(0x2283)](_0x4fe361)['ok']('OK')[_0x299eb6(0x101a)](_0x299eb6(0x18fd));_0x4ae3cc[_0x299eb6(0xa60)](_0x2bd0aa)[_0x299eb6(0x64a)](function(){const _0x5d78d4=_0x299eb6;_0x1fd7ff[_0x5d78d4(0x1d7e)][_0x5d78d4(0xabd)]({'id':_0x4464c6['id']})['$promise']['then'](function(){const _0x1a10a0=_0x5d78d4;_0x28c606()[_0x1a10a0(0x21c7)](_0x3c2208[_0x1a10a0(0x23a8)],{'id':_0x4464c6['id']}),_0x1fae67['success']({'title':_0x1a10a0(0x1e1c),'msg':_0x4464c6[_0x1a10a0(0x2494)]?_0x4464c6['name']+_0x1a10a0(0x1fa8):''});})['catch'](function(_0x4f3b68){const _0x2d770e=_0x5d78d4;_0x1fae67[_0x2d770e(0x1bd0)]({'title':_0x4f3b68[_0x2d770e(0x10b3)]?_0x2d770e(0x575)+_0x4f3b68['status']+_0x2d770e(0x21db)+_0x4f3b68[_0x2d770e(0x2115)]:_0x2d770e(0x2925),'msg':_0x4f3b68[_0x2d770e(0x1c52)]?JSON[_0x2d770e(0x2317)](_0x4f3b68[_0x2d770e(0x1c52)]):_0x4f3b68[_0x2d770e(0x2915)]()});})[_0x5d78d4(0x988)](function(){const _0xe10cc4=_0x5d78d4;_0x3c2208[_0xe10cc4(0x2810)](0x0);});},function(){const _0x369a5b=_0x299eb6;console[_0x369a5b(0x9b4)](_0x369a5b(0x18fd));});}_0x3c2208['selectedSubjects']=[],_0x3c2208[_0x54fa87(0x22b1)]=_0x39d0a8,_0x3c2208[_0x54fa87(0xa6a)]=_0x161ef2,_0x3c2208['deleteSelectedSubjects']=_0x3e7751;function _0x39d0a8(_0x537f91,_0x46fbf6){const _0x1ca3bc=_0x54fa87;_0x4ae3cc[_0x1ca3bc(0xa60)]({'controller':_0x1ca3bc(0x45d),'controllerAs':'vm','templateUrl':_0x8a2719,'parent':angular[_0x1ca3bc(0x1f81)](_0x2d94be[_0x1ca3bc(0xb49)]),'targetEvent':_0x537f91,'clickOutsideToClose':!![],'locals':{'type':_0x1ca3bc(0x25bc),'item':_0x46fbf6,'items':_0x3c2208[_0x1ca3bc(0x29b)],'configuration':_0x3c2208[_0x1ca3bc(0x1d34)],'account':_0x3c2208[_0x1ca3bc(0x1e44)],'license':null,'setting':null,'crudPermissions':_0x3c2208[_0x1ca3bc(0x402)]}});}function _0x1e1802(_0x467d39){const _0x4abec7=_0x54fa87;_0x1fd7ff[_0x4abec7(0xda7)][_0x4abec7(0xabd)]({'id':_0x467d39['id']})[_0x4abec7(0x15e7)][_0x4abec7(0x64a)](function(){const _0x3a6795=_0x4abec7;_0x28c606()[_0x3a6795(0x21c7)](_0x3c2208['subjects'],{'id':_0x467d39['id']}),_0x1fae67[_0x3a6795(0x1339)]({'title':'Subject\x20deleted!','msg':_0x3a6795(0x1a0c)});})['catch'](function(_0x309d7d){const _0x50a0de=_0x4abec7;_0x1fae67[_0x50a0de(0x1bd0)]({'title':_0x309d7d['status']?'API:'+_0x309d7d[_0x50a0de(0x10b3)]+_0x50a0de(0x21db)+_0x309d7d[_0x50a0de(0x2115)]:_0x50a0de(0x12a9),'msg':_0x309d7d[_0x50a0de(0x1c52)]?JSON[_0x50a0de(0x2317)](_0x309d7d[_0x50a0de(0x1c52)]):_0x309d7d['toString']()});});}function _0x161ef2(_0x50592c,_0x31d652){const _0x5d75bf=_0x54fa87,_0x5b700a=_0x4ae3cc[_0x5d75bf(0x856)]()[_0x5d75bf(0x2021)](_0x5d75bf(0x189a))[_0x5d75bf(0x33a)]('Subject'+_0x5d75bf(0x4b8))['ariaLabel']('delete\x20subject')[_0x5d75bf(0x2283)](_0x50592c)['ok']('OK')[_0x5d75bf(0x101a)]('CANCEL');_0x4ae3cc[_0x5d75bf(0xa60)](_0x5b700a)[_0x5d75bf(0x64a)](function(){_0x1e1802(_0x31d652);},function(){const _0x7a7b01=_0x5d75bf;console[_0x7a7b01(0x9b4)](_0x7a7b01(0x18fd));});}function _0x3e7751(_0x58674a){const _0x2f4148=_0x54fa87,_0x5d6591=_0x4ae3cc['confirm']()[_0x2f4148(0x2021)](_0x2f4148(0x1cb4))['htmlContent'](_0x2f4148(0x50b)+_0x3c2208[_0x2f4148(0x2639)]['length']+_0x2f4148(0x163e)+_0x2f4148(0x4b8))[_0x2f4148(0x213e)](_0x2f4148(0x24f6))[_0x2f4148(0x2283)](_0x58674a)['ok']('OK')[_0x2f4148(0x101a)](_0x2f4148(0x18fd));_0x4ae3cc['show'](_0x5d6591)[_0x2f4148(0x64a)](function(){const _0x56f163=_0x2f4148;_0x3c2208[_0x56f163(0x2639)][_0x56f163(0x1397)](function(_0x3c5e03){_0x1e1802(_0x3c5e03);}),_0x3c2208['selectedSubjects']=[];});}_0x3c2208[_0x54fa87(0x21c1)]=[],_0x3c2208[_0x54fa87(0x3a2)]=_0x3c1f0c,_0x3c2208[_0x54fa87(0x183a)]=_0x46d4e4,_0x3c2208[_0x54fa87(0x1efc)]=_0x4cd25d;function _0x3c1f0c(_0x2bbfca,_0x2a9020){const _0x3d30b0=_0x54fa87;_0x4ae3cc['show']({'controller':_0x3d30b0(0x45d),'controllerAs':'vm','templateUrl':_0x8a2719,'parent':angular[_0x3d30b0(0x1f81)](_0x2d94be[_0x3d30b0(0xb49)]),'targetEvent':_0x2bbfca,'clickOutsideToClose':!![],'locals':{'type':_0x3d30b0(0x23c3),'item':_0x2a9020,'items':_0x3c2208[_0x3d30b0(0x24b6)],'configuration':_0x3c2208[_0x3d30b0(0x1d34)],'account':_0x3c2208[_0x3d30b0(0x1e44)],'license':null,'setting':null,'crudPermissions':_0x3c2208['crudPermissions']}});}function _0x468dae(_0x383945){const _0x2490ef=_0x54fa87;_0x1fd7ff[_0x2490ef(0xda7)][_0x2490ef(0xabd)]({'id':_0x383945['id']})[_0x2490ef(0x15e7)][_0x2490ef(0x64a)](function(){const _0x1d891f=_0x2490ef;_0x28c606()[_0x1d891f(0x21c7)](_0x3c2208['descriptions'],{'id':_0x383945['id']}),_0x1fae67[_0x1d891f(0x1339)]({'title':_0x1d891f(0x166a),'msg':'Description\x20has\x20been\x20deleted!'});})[_0x2490ef(0x20cd)](function(_0x19a316){const _0x120ca6=_0x2490ef;_0x1fae67[_0x120ca6(0x1bd0)]({'title':_0x19a316[_0x120ca6(0x10b3)]?'API:'+_0x19a316[_0x120ca6(0x10b3)]+_0x120ca6(0x21db)+_0x19a316[_0x120ca6(0x2115)]:_0x120ca6(0x12a9),'msg':_0x19a316[_0x120ca6(0x1c52)]?JSON['stringify'](_0x19a316[_0x120ca6(0x1c52)]):_0x19a316[_0x120ca6(0x2915)]()});});}function _0x46d4e4(_0x27047f,_0x228faf){const _0x30fbf0=_0x54fa87,_0x299826=_0x4ae3cc['confirm']()[_0x30fbf0(0x2021)](_0x30fbf0(0x80e))['htmlContent']('Description'+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x30fbf0(0x748))[_0x30fbf0(0x2283)](_0x27047f)['ok']('OK')[_0x30fbf0(0x101a)](_0x30fbf0(0x18fd));_0x4ae3cc['show'](_0x299826)[_0x30fbf0(0x64a)](function(){_0x468dae(_0x228faf);},function(){const _0x528ae7=_0x30fbf0;console['log'](_0x528ae7(0x18fd));});}function _0x4cd25d(_0x71c139){const _0x407fe1=_0x54fa87,_0x84eeef=_0x4ae3cc[_0x407fe1(0x856)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')[_0x407fe1(0x33a)](_0x407fe1(0x50b)+_0x3c2208[_0x407fe1(0x21c1)][_0x407fe1(0x1b9e)]+_0x407fe1(0x163e)+_0x407fe1(0x4b8))[_0x407fe1(0x213e)](_0x407fe1(0x531))['targetEvent'](_0x71c139)['ok']('OK')[_0x407fe1(0x101a)](_0x407fe1(0x18fd));_0x4ae3cc['show'](_0x84eeef)[_0x407fe1(0x64a)](function(){const _0x37750a=_0x407fe1;_0x3c2208['selectedDescriptions'][_0x37750a(0x1397)](function(_0x3199b9){_0x468dae(_0x3199b9);}),_0x3c2208[_0x37750a(0x21c1)]=[];});}_0x3c2208[_0x54fa87(0xa3a)]=[],_0x3c2208['createOrEditField']=_0x19dfd5,_0x3c2208['deleteFieldConfirm']=_0x2fa085,_0x3c2208[_0x54fa87(0x1e89)]=_0x44ba2d;function _0x19dfd5(_0x5b79fa,_0x1f3090){const _0x1697ab=_0x54fa87;_0x4ae3cc[_0x1697ab(0xa60)]({'controller':'CreateOrEditZohoAccountItemDialogController','controllerAs':'vm','templateUrl':_0x8a2719,'parent':angular[_0x1697ab(0x1f81)](_0x2d94be[_0x1697ab(0xb49)]),'targetEvent':_0x5b79fa,'clickOutsideToClose':!![],'locals':{'type':_0x1697ab(0xc26),'item':_0x1f3090,'items':_0x3c2208[_0x1697ab(0xf26)],'configuration':_0x3c2208['zohoConfiguration'],'account':_0x3c2208[_0x1697ab(0x1e44)],'license':null,'setting':null,'crudPermissions':_0x3c2208[_0x1697ab(0x402)]}});}function _0x23ad98(_0x250370){const _0x58e989=_0x54fa87;_0x1fd7ff['intZohoField']['delete']({'id':_0x250370['id']})['$promise'][_0x58e989(0x64a)](function(){const _0x12fb7c=_0x58e989;_0x28c606()[_0x12fb7c(0x21c7)](_0x3c2208['fields'],{'id':_0x250370['id']}),_0x1fae67[_0x12fb7c(0x1339)]({'title':_0x12fb7c(0x13e7),'msg':_0x12fb7c(0x14b)});})[_0x58e989(0x20cd)](function(_0x356d94){const _0x4d525a=_0x58e989;_0x1fae67[_0x4d525a(0x1bd0)]({'title':_0x356d94[_0x4d525a(0x10b3)]?_0x4d525a(0x575)+_0x356d94[_0x4d525a(0x10b3)]+_0x4d525a(0x21db)+_0x356d94[_0x4d525a(0x2115)]:_0x4d525a(0x12a9),'msg':_0x356d94[_0x4d525a(0x1c52)]?JSON['stringify'](_0x356d94[_0x4d525a(0x1c52)]):_0x356d94[_0x4d525a(0x2915)]()});});}function _0x2fa085(_0x58ad5f,_0x3356a3){const _0x5cb5e0=_0x54fa87,_0x576e3d=_0x4ae3cc[_0x5cb5e0(0x856)]()[_0x5cb5e0(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0x5cb5e0(0x33a)](_0x5cb5e0(0x1a56)+_0x5cb5e0(0x4b8))[_0x5cb5e0(0x213e)](_0x5cb5e0(0x22d7))[_0x5cb5e0(0x2283)](_0x58ad5f)['ok']('OK')[_0x5cb5e0(0x101a)]('CANCEL');_0x4ae3cc[_0x5cb5e0(0xa60)](_0x576e3d)[_0x5cb5e0(0x64a)](function(){_0x23ad98(_0x3356a3);},function(){const _0x574a14=_0x5cb5e0;console['log'](_0x574a14(0x18fd));});}function _0x44ba2d(_0x58956a){const _0x4e501f=_0x54fa87,_0x307800=_0x4ae3cc[_0x4e501f(0x856)]()[_0x4e501f(0x2021)](_0x4e501f(0x17bf))[_0x4e501f(0x33a)](''+_0x3c2208['selectedFields'][_0x4e501f(0x1b9e)]+'\x20selected'+_0x4e501f(0x4b8))['ariaLabel'](_0x4e501f(0x11bc))[_0x4e501f(0x2283)](_0x58956a)['ok']('OK')[_0x4e501f(0x101a)](_0x4e501f(0x18fd));_0x4ae3cc['show'](_0x307800)[_0x4e501f(0x64a)](function(){const _0x23e3a4=_0x4e501f;_0x3c2208[_0x23e3a4(0xa3a)][_0x23e3a4(0x1397)](function(_0x574da6){_0x23ad98(_0x574da6);}),_0x3c2208[_0x23e3a4(0xa3a)]=[];});}}const _0x23d369=_0x2793f6;;_0x570a62[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x23a8),'zohoConfiguration',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'crudPermissions'];function _0x570a62(_0x442236,_0x46403a,_0xec8d74,_0x2e4085,_0x403c9e,_0x3a5cd3,_0x176e56,_0x4b7dde,_0x3ff903,_0x40d505,_0x58c179,_0x1aec17,_0x504a44,_0x33ecf7){const _0x529cbe=_0x49a1e3,_0xad825f=this;_0xad825f[_0x529cbe(0x1d3d)]=_0x58c179[_0x529cbe(0x808)](),_0xad825f[_0x529cbe(0xbae)]=[],_0xad825f[_0x529cbe(0x28d6)]=_0x504a44,_0xad825f[_0x529cbe(0x1947)]=_0x1aec17,_0xad825f[_0x529cbe(0x402)]=_0x33ecf7,_0xad825f['hasModulePermissions']={},_0xad825f[_0x529cbe(0xccc)]=_0xad825f['setting']&&_0xad825f['setting'][_0x529cbe(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xad825f[_0x529cbe(0x2021)]='INTEGRATIONS.EDIT_ZOHOCONFIGURATION',_0xad825f[_0x529cbe(0x1d34)]=angular['copy'](_0x3ff903),_0xad825f['configurations']=_0x4b7dde,_0xad825f[_0x529cbe(0xbc8)]=![];!_0xad825f[_0x529cbe(0x1d34)]&&(_0xad825f[_0x529cbe(0x1d34)]={'channel':_0x529cbe(0x227c),'type':_0x529cbe(0x12a4)},_0xad825f[_0x529cbe(0x2021)]='INTEGRATIONS.NEW_ZOHOCONFIGURATION',_0xad825f['newZohoConfiguration']=!![]);_0xad825f[_0x529cbe(0x1aa8)]=_0x2ed0bb,_0xad825f[_0x529cbe(0x2442)]=_0x2d98c8,_0xad825f[_0x529cbe(0x6f7)]=_0x93568a,_0xad825f['getDateFromString']=_0x469a14,_0xad825f[_0x529cbe(0x16cb)]=_0x101ce0;function _0x2ed0bb(){const _0x159af0=_0x529cbe;_0xad825f[_0x159af0(0xbae)]=[],_0x40d505['intZohoAccount'][_0x159af0(0x1d2d)]({'id':_0x46403a['params']['id']},_0xad825f[_0x159af0(0x1d34)])[_0x159af0(0x15e7)]['then'](function(_0x2b53d0){const _0x3d2ea8=_0x159af0;_0xad825f[_0x3d2ea8(0x23a8)][_0x3d2ea8(0x1891)](_0x2b53d0[_0x3d2ea8(0x14f8)]()),_0x176e56[_0x3d2ea8(0x1339)]({'title':'ZohoConfiguration\x20properly\x20created','msg':_0xad825f[_0x3d2ea8(0x1d34)][_0x3d2ea8(0x2494)]?_0xad825f[_0x3d2ea8(0x1d34)][_0x3d2ea8(0x2494)]+_0x3d2ea8(0x258d):''}),_0x101ce0(_0x2b53d0);})[_0x159af0(0x20cd)](function(_0x189b83){const _0x5ef65b=_0x159af0;if(_0x189b83[_0x5ef65b(0x1c52)]&&_0x189b83[_0x5ef65b(0x1c52)][_0x5ef65b(0xbae)]&&_0x189b83[_0x5ef65b(0x1c52)][_0x5ef65b(0xbae)][_0x5ef65b(0x1b9e)]){_0xad825f[_0x5ef65b(0xbae)]=_0x189b83[_0x5ef65b(0x1c52)][_0x5ef65b(0xbae)]||[{'message':_0x189b83[_0x5ef65b(0x2915)](),'type':_0x5ef65b(0xffb)}];for(let _0x14b261=0x0;_0x14b261<_0x189b83[_0x5ef65b(0x1c52)]['errors']['length'];_0x14b261+=0x1){_0x176e56[_0x5ef65b(0x1bd0)]({'title':_0x189b83[_0x5ef65b(0x1c52)]['errors'][_0x14b261][_0x5ef65b(0x2185)],'msg':_0x189b83[_0x5ef65b(0x1c52)][_0x5ef65b(0xbae)][_0x14b261][_0x5ef65b(0x18ca)]});}}else _0x176e56[_0x5ef65b(0x1bd0)]({'title':_0x189b83[_0x5ef65b(0x10b3)]?_0x5ef65b(0x575)+_0x189b83[_0x5ef65b(0x10b3)]+_0x5ef65b(0x21db)+_0x189b83[_0x5ef65b(0x2115)]:'api.intZohoConfiguration.save','msg':_0x189b83[_0x5ef65b(0x1c52)]?JSON[_0x5ef65b(0x2317)](_0x189b83[_0x5ef65b(0x1c52)]['message']):_0x189b83[_0x5ef65b(0x2915)]()});});}function _0x2d98c8(){const _0x1e00d7=_0x529cbe;_0xad825f[_0x1e00d7(0xbae)]=[],_0x40d505['intZohoConfiguration']['update']({'id':_0xad825f[_0x1e00d7(0x1d34)]['id']},_0xad825f[_0x1e00d7(0x1d34)])['$promise'][_0x1e00d7(0x64a)](function(_0x218f64){const _0x31c73f=_0x1e00d7,_0x4319a5=_0x28c606()[_0x31c73f(0x27bc)](_0xad825f[_0x31c73f(0x23a8)],{'id':_0x218f64['id']});_0x4319a5&&_0x28c606()[_0x31c73f(0x14fe)](_0x4319a5,_0x28c606()[_0x31c73f(0x27bb)](_0x218f64[_0x31c73f(0x14f8)](),_0x28c606()['keys'](_0x4319a5))),_0x176e56['success']({'title':'ZohoConfiguration\x20properly\x20saved!','msg':_0xad825f[_0x31c73f(0x1d34)][_0x31c73f(0x2494)]?_0xad825f[_0x31c73f(0x1d34)][_0x31c73f(0x2494)]+_0x31c73f(0x271):''}),_0x101ce0(_0x218f64);})[_0x1e00d7(0x20cd)](function(_0x2d038f){const _0x28ffb5=_0x1e00d7;if(_0x2d038f[_0x28ffb5(0x1c52)]&&_0x2d038f[_0x28ffb5(0x1c52)][_0x28ffb5(0xbae)]&&_0x2d038f[_0x28ffb5(0x1c52)][_0x28ffb5(0xbae)]['length']){_0xad825f[_0x28ffb5(0xbae)]=_0x2d038f[_0x28ffb5(0x1c52)]['errors']||[{'message':_0x2d038f['toString'](),'type':_0x28ffb5(0x2323)}];for(let _0x51e2a0=0x0;_0x51e2a0<_0x2d038f[_0x28ffb5(0x1c52)][_0x28ffb5(0xbae)][_0x28ffb5(0x1b9e)];_0x51e2a0++){_0x176e56[_0x28ffb5(0x1bd0)]({'title':_0x2d038f['data']['errors'][_0x51e2a0][_0x28ffb5(0x2185)],'msg':_0x2d038f[_0x28ffb5(0x1c52)][_0x28ffb5(0xbae)][_0x51e2a0][_0x28ffb5(0x18ca)]});}}else _0x176e56[_0x28ffb5(0x1bd0)]({'title':_0x2d038f['status']?'API:'+_0x2d038f[_0x28ffb5(0x10b3)]+'\x20-\x20'+_0x2d038f[_0x28ffb5(0x2115)]:_0x28ffb5(0x2323),'msg':_0x2d038f[_0x28ffb5(0x1c52)]?JSON['stringify'](_0x2d038f['data'][_0x28ffb5(0x18ca)]):_0x2d038f['toString']()});});}function _0x93568a(_0xfa197b){const _0x5ef11e=_0x529cbe;_0xad825f[_0x5ef11e(0xbae)]=[];const _0x19c548=_0x2e4085[_0x5ef11e(0x856)]()[_0x5ef11e(0x2021)](_0x5ef11e(0x103a))[_0x5ef11e(0x12b8)](_0x5ef11e(0x12ae))['ariaLabel'](_0x5ef11e(0x964))['ok'](_0x5ef11e(0x2664))[_0x5ef11e(0x101a)](_0x5ef11e(0x1dc6))['targetEvent'](_0xfa197b);_0x2e4085['show'](_0x19c548)['then'](function(){const _0x3466a5=_0x5ef11e;_0x40d505[_0x3466a5(0x1d7e)]['delete']({'id':_0xad825f['zohoConfiguration']['id']})['$promise'][_0x3466a5(0x64a)](function(){const _0x3b634b=_0x3466a5;_0x28c606()['remove'](_0xad825f['configurations'],{'id':_0xad825f[_0x3b634b(0x1d34)]['id']}),_0x176e56[_0x3b634b(0x1339)]({'title':'ZohoConfiguration\x20properly\x20deleted!','msg':(_0xad825f['zohoConfiguration']['name']||_0x3b634b(0x1d34))+_0x3b634b(0x1fa8)}),_0x101ce0(_0xad825f[_0x3b634b(0x1d34)]);})[_0x3466a5(0x20cd)](function(_0xf84579){const _0x36a87c=_0x3466a5;if(_0xf84579['data']&&_0xf84579['data']['errors']&&_0xf84579['data'][_0x36a87c(0xbae)]['length']){_0xad825f[_0x36a87c(0xbae)]=_0xf84579[_0x36a87c(0x1c52)][_0x36a87c(0xbae)]||[{'message':_0xf84579[_0x36a87c(0x2915)](),'type':'api.intZohoConfiguration.delete'}];for(let _0x20c910=0x0;_0x20c910<_0xf84579['data'][_0x36a87c(0xbae)]['length'];_0x20c910++){_0x176e56['error']({'title':_0xf84579['data'][_0x36a87c(0xbae)][_0x20c910][_0x36a87c(0x2185)],'msg':_0xf84579[_0x36a87c(0x1c52)][_0x36a87c(0xbae)][_0x20c910][_0x36a87c(0x18ca)]});}}else _0x176e56[_0x36a87c(0x1bd0)]({'title':_0xf84579[_0x36a87c(0x10b3)]?_0x36a87c(0x575)+_0xf84579[_0x36a87c(0x10b3)]+_0x36a87c(0x21db)+_0xf84579[_0x36a87c(0x2115)]:'api.intZohoConfiguration.delete','msg':_0xf84579[_0x36a87c(0x1c52)]?JSON['stringify'](_0xf84579['data'][_0x36a87c(0x18ca)]):_0xf84579[_0x36a87c(0x18ca)]||_0xf84579[_0x36a87c(0x2915)]()});});},function(){});}function _0x469a14(_0x171e35){return _0x171e35===null?undefined:new Date(_0x171e35);}function _0x101ce0(_0x222fee){_0x2e4085['hide'](_0x222fee);}}const _0x252978=_0x570a62;;_0xb9b507[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog',_0x49a1e3(0x680),_0x49a1e3(0x9a4),_0x49a1e3(0x23cb),_0x49a1e3(0x1656),'account',_0x49a1e3(0x2185),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0xb9b507(_0x4577cf,_0x3707e5,_0x34e847,_0x373296,_0x44afe5,_0x503412,_0x5c7fa1,_0x24f2ce,_0x476cf5,_0x47c93e,_0x11d483,_0x152811,_0xba2812){const _0x1bf9ed=_0x49a1e3,_0x45850a=this;_0x45850a[_0x1bf9ed(0x1d3d)]=_0x152811[_0x1bf9ed(0x808)](),_0x45850a[_0x1bf9ed(0xbae)]=[],_0x45850a[_0x1bf9ed(0x2021)]='INTEGRATIONS.EDIT_'+_0x28c606()[_0x1bf9ed(0x2201)](_0x47c93e),_0x45850a[_0x1bf9ed(0x1656)]=angular[_0x1bf9ed(0x289e)](_0x24f2ce),_0x45850a[_0x1bf9ed(0x23cb)]=_0x5c7fa1,_0x45850a[_0x1bf9ed(0x2185)]=_0x47c93e,_0x45850a['crudPermissions']=_0xba2812,_0x45850a['newItem']=![];!_0x45850a[_0x1bf9ed(0x1656)]&&(_0x45850a[_0x1bf9ed(0x1656)]={'type':_0x1bf9ed(0x108c)},_0x45850a[_0x1bf9ed(0x1656)][_0x28c606()[_0x1bf9ed(0xd56)](_0x47c93e)+'Id']=_0x503412['id'],_0x45850a['title']=_0x1bf9ed(0x1ad9)+_0x28c606()['toUpper'](_0x47c93e),_0x45850a[_0x1bf9ed(0xd33)]=!![]);_0x45850a[_0x1bf9ed(0x2889)]=_0x432402,_0x45850a[_0x1bf9ed(0x1dbc)]=_0x55481f,_0x45850a[_0x1bf9ed(0x126d)]=_0x2865b6,_0x45850a[_0x1bf9ed(0x14d)]=_0x2999db,_0x45850a[_0x1bf9ed(0x16cb)]=_0x597b24,_0x11d483['variable']['get']({'nolimit':!![]})[_0x1bf9ed(0x15e7)]['then'](function(_0x35a8e0){const _0xba0af3=_0x1bf9ed;return _0x45850a['variables']=_0x35a8e0['rows']?_0x35a8e0[_0xba0af3(0x28b8)]:[],_0x11d483['voiceAgentReport'][_0xba0af3(0xa81)]()[_0xba0af3(0x15e7)];})['then'](function(_0x135eee){const _0x285c7d=_0x1bf9ed;return _0x45850a[_0x285c7d(0x109a)]=_0x28c606()[_0x285c7d(0xde7)](_0x28c606()[_0x285c7d(0x1ec6)](_0x135eee),[_0x285c7d(0x15e7),_0x285c7d(0x19ba),_0x285c7d(0x2378),_0x285c7d(0x2056),_0x285c7d(0x2785)]),_0x45850a[_0x285c7d(0x109a)][_0x285c7d(0x1954)]('recordingURL'),_0x11d483[_0x285c7d(0x1002)][_0x285c7d(0xa81)]()[_0x285c7d(0x15e7)];})[_0x1bf9ed(0x64a)](function(_0x4937e2){const _0xfe3c8e=_0x1bf9ed;_0x45850a['voiceDialReportColumns']=_0x28c606()[_0xfe3c8e(0xde7)](_0x28c606()[_0xfe3c8e(0x1ec6)](_0x4937e2),[_0xfe3c8e(0x15e7),_0xfe3c8e(0x19ba),_0xfe3c8e(0x2378),_0xfe3c8e(0x2056),_0xfe3c8e(0x2785)]),_0x45850a[_0xfe3c8e(0xdae)][_0xfe3c8e(0x1954)](_0xfe3c8e(0xdd4));})[_0x1bf9ed(0x20cd)](function(_0x8eb949){const _0x504b82=_0x1bf9ed;_0x44afe5[_0x504b82(0x1bd0)]({'title':_0x8eb949['status']?_0x504b82(0x575)+_0x8eb949['status']+_0x504b82(0x21db)+_0x8eb949[_0x504b82(0x2115)]:_0x504b82(0x195a),'msg':_0x8eb949[_0x504b82(0x1c52)]?JSON['stringify'](_0x8eb949[_0x504b82(0x1c52)]):_0x8eb949['toString']()});}),_0x11d483['intZohoAccount']['getFields']({'id':_0x476cf5['id'],'ticketType':_0x503412[_0x1bf9ed(0x1545)]?_0x503412['ticketType']:undefined})['$promise'][_0x1bf9ed(0x64a)](function(_0x5c1ab6){const _0x5d0edd=_0x1bf9ed;_0x45850a['accountConnected']=!![],_0x45850a[_0x5d0edd(0xf26)]=_0x5c1ab6[_0x5d0edd(0x28b8)]?_0x5c1ab6[_0x5d0edd(0x28b8)]:[],_0x45850a[_0x5d0edd(0x1656)]['idField']&&(_0x45850a[_0x5d0edd(0x1753)]=_0x28c606()['find'](_0x45850a[_0x5d0edd(0xf26)],{'id':_0x45850a[_0x5d0edd(0x1656)][_0x5d0edd(0x197)]}));})[_0x1bf9ed(0x20cd)](function(_0x54e557){const _0x3814c2=_0x1bf9ed;_0x45850a['accountConnected']=![],console[_0x3814c2(0x1bd0)](_0x54e557);});function _0x432402(){const _0x106b73=_0x1bf9ed;_0x45850a[_0x106b73(0xbae)]=[],_0x45850a[_0x106b73(0x1753)]&&(_0x45850a[_0x106b73(0x1656)][_0x106b73(0x197)]=_0x45850a['customField']['id'],_0x45850a[_0x106b73(0x1656)][_0x106b73(0x25fc)]=_0x45850a[_0x106b73(0x1753)][_0x106b73(0x2494)],_0x45850a[_0x106b73(0x1656)][_0x106b73(0x1753)]=_0x45850a[_0x106b73(0x1753)]['custom']),_0x11d483['intZohoField'][_0x106b73(0x2479)](_0x45850a[_0x106b73(0x1656)])['$promise'][_0x106b73(0x64a)](function(_0x6ca5b1){const _0x101c58=_0x106b73;_0x45850a[_0x101c58(0x23cb)][_0x101c58(0x1891)](_0x6ca5b1),_0x44afe5['success']({'title':_0x28c606()['capitalize'](_0x47c93e)+_0x101c58(0xe0b),'msg':_0x28c606()['capitalize'](_0x47c93e)+'\x20has\x20been\x20created!'}),_0x597b24();})[_0x106b73(0x20cd)](function(_0x301e6b){const _0x2dc36e=_0x106b73;console[_0x2dc36e(0x1bd0)](_0x301e6b),_0x45850a[_0x2dc36e(0xbae)]=_0x301e6b[_0x2dc36e(0x1c52)][_0x2dc36e(0xbae)]||[{'message':_0x301e6b['toString'](),'type':_0x2dc36e(0x1675)}];});}function _0x55481f(){const _0x9deea9=_0x1bf9ed;_0x45850a[_0x9deea9(0xbae)]=[],_0x45850a[_0x9deea9(0x1753)]&&(_0x45850a[_0x9deea9(0x1656)][_0x9deea9(0x197)]=_0x45850a['customField']['id'],_0x45850a[_0x9deea9(0x1656)][_0x9deea9(0x25fc)]=_0x45850a[_0x9deea9(0x1753)][_0x9deea9(0x2494)],_0x45850a[_0x9deea9(0x1656)][_0x9deea9(0x1753)]=_0x45850a[_0x9deea9(0x1753)][_0x9deea9(0x1ad6)]),_0x11d483[_0x9deea9(0xda7)]['update']({'id':_0x45850a['item']['id']},_0x45850a[_0x9deea9(0x1656)])['$promise']['then'](function(_0x317e5d){const _0x53e8a8=_0x9deea9,_0x490147=_0x28c606()[_0x53e8a8(0x27bc)](_0x45850a[_0x53e8a8(0x23cb)],{'id':_0x317e5d['id']});_0x490147&&_0x28c606()[_0x53e8a8(0x14fe)](_0x490147,_0x317e5d),_0x44afe5[_0x53e8a8(0x1339)]({'title':_0x28c606()[_0x53e8a8(0xd56)](_0x47c93e)+_0x53e8a8(0x2776),'msg':_0x28c606()[_0x53e8a8(0xd56)](_0x47c93e)+_0x53e8a8(0x271)}),_0x597b24();})['catch'](function(_0x28ab5b){const _0x4b6524=_0x9deea9;console[_0x4b6524(0x1bd0)](_0x28ab5b),_0x45850a[_0x4b6524(0xbae)]=_0x28ab5b[_0x4b6524(0x1c52)]['errors']||[{'message':_0x28ab5b[_0x4b6524(0x2915)](),'type':'api.intItem.update'}];});}function _0x2865b6(_0x446fce){const _0x4f6a59=_0x1bf9ed;_0x45850a[_0x4f6a59(0xbae)]=[];const _0x12af0d=_0x373296['confirm']()[_0x4f6a59(0x2021)](_0x4f6a59(0x103a))[_0x4f6a59(0x12b8)](_0x4f6a59(0x2966)+_0x47c93e+_0x4f6a59(0x4b8))[_0x4f6a59(0x213e)](_0x4f6a59(0x1f2e)+_0x28c606()[_0x4f6a59(0xd56)](_0x47c93e))['ok'](_0x4f6a59(0x2664))[_0x4f6a59(0x101a)](_0x4f6a59(0x1dc6))[_0x4f6a59(0x2283)](_0x446fce);_0x373296[_0x4f6a59(0xa60)](_0x12af0d)[_0x4f6a59(0x64a)](function(){const _0x4a47b6=_0x4f6a59;_0x11d483[_0x4a47b6(0xda7)][_0x4a47b6(0xabd)]({'id':_0x45850a[_0x4a47b6(0x1656)]['id']})[_0x4a47b6(0x15e7)][_0x4a47b6(0x64a)](function(){const _0x544257=_0x4a47b6;_0x28c606()[_0x544257(0x21c7)](_0x45850a[_0x544257(0x23cb)],{'id':_0x45850a[_0x544257(0x1656)]['id']}),_0x44afe5[_0x544257(0x1339)]({'title':_0x28c606()[_0x544257(0xd56)](_0x47c93e)+_0x544257(0x6ec),'msg':_0x28c606()['capitalize'](_0x47c93e)+_0x544257(0x1fa8)}),_0x597b24();})[_0x4a47b6(0x20cd)](function(_0x4ab9bb){const _0x1f2eb2=_0x4a47b6;console['error'](_0x4ab9bb),_0x45850a['errors']=_0x4ab9bb[_0x1f2eb2(0x1c52)][_0x1f2eb2(0xbae)]||[{'message':_0x4ab9bb[_0x1f2eb2(0x2915)](),'type':_0x1f2eb2(0x27aa)}];});},function(){});}function _0x2999db(){const _0x54902d=_0x1bf9ed;return _0x45850a[_0x54902d(0x1656)][_0x54902d(0x1299)]!==undefined?_0x45850a['item'][_0x54902d(0x1299)]:_0x54902d(0xfae);}function _0x597b24(){_0x373296['hide']();}}const _0x2c02b6=_0xb9b507;;_0x34fafa['$inject']=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),'Auth',_0x49a1e3(0x1e44),_0x49a1e3(0x16b2)];function _0x34fafa(_0x450678,_0x379a21,_0x29b744,_0x456cfe,_0x14bf8b,_0x3fe03a,_0x3c44bb,_0x1870fe,_0x19ad08,_0x1612d7,_0x2078bf,_0x3c1561){const _0x579971=_0x49a1e3,_0x15c3c7=this;_0x15c3c7[_0x579971(0x1d3d)]=_0x1612d7[_0x579971(0x808)](),_0x15c3c7[_0x579971(0x1947)]=_0x3fe03a,_0x15c3c7['setting']=_0x3c44bb,_0x15c3c7[_0x579971(0xccc)]=_0x15c3c7['setting'][_0x579971(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x15c3c7['location']=_0x379a21[_0x579971(0x48e)]()+_0x579971(0xe1f)+_0x379a21[_0x579971(0x1e5d)](),_0x15c3c7[_0x579971(0x1e44)]=_0x2078bf||_0x450678[_0x579971(0x1b48)][_0x579971(0x1e44)]||{},_0x15c3c7[_0x579971(0x16b2)]=_0x3c1561&&_0x3c1561[_0x579971(0xb90)]==0x1?_0x3c1561[_0x579971(0x28b8)][0x0]:null,_0x15c3c7[_0x579971(0x402)]=_0x1612d7[_0x579971(0xa7e)](_0x15c3c7[_0x579971(0x16b2)]?_0x15c3c7[_0x579971(0x16b2)][_0x579971(0x402)]:null),_0x15c3c7['hasModulePermissions']={},_0x15c3c7[_0x579971(0x197c)]=_0x450678['params']['tab']||0x0,_0x15c3c7['alert']=_0x19ad08[_0x579971(0x772)],_0x15c3c7['gotoZohoAccounts']=_0x5075f2,_0x15c3c7[_0x579971(0x11a6)]=_0x37185b;function _0x5075f2(){const _0x3196e6=_0x579971;_0x450678['go'](_0x3196e6(0x1f35),{},{'reload':_0x3196e6(0x1f35)});}function _0x37185b(){const _0x1a133f=_0x579971;_0x1870fe['intZohoAccount'][_0x1a133f(0x2603)]({'id':_0x15c3c7[_0x1a133f(0x1e44)]['id']},_0x15c3c7[_0x1a133f(0x1e44)])[_0x1a133f(0x15e7)][_0x1a133f(0x64a)](function(){const _0x16cd35=_0x1a133f;_0x19ad08['success']({'title':_0x16cd35(0xb3b),'msg':_0x15c3c7[_0x16cd35(0x1e44)]['name']?_0x15c3c7[_0x16cd35(0x1e44)][_0x16cd35(0x2494)]+_0x16cd35(0x2032):''});})['catch'](function(_0x44248c){const _0x3e28f7=_0x1a133f;_0x19ad08[_0x3e28f7(0x1bd0)]({'title':_0x44248c['status']?_0x3e28f7(0x575)+_0x44248c[_0x3e28f7(0x10b3)]+_0x3e28f7(0x21db)+_0x44248c['statusText']:_0x3e28f7(0x839),'msg':_0x44248c[_0x3e28f7(0x1c52)]?JSON[_0x3e28f7(0x2317)](_0x44248c[_0x3e28f7(0x1c52)]):_0x44248c['toString']()});});}}const _0x7cbb5b=_0x34fafa;;const _0x3485d9=_0x2e4a48['p']+'src/js/modules/main/apps/integrations/views/zohoAccounts/create/dialog.html/dialog.html';;_0x1c7781[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$window',_0x49a1e3(0x77f),'$mdSidenav',_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x12eb),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),'api',_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),'license','setting'];function _0x1c7781(_0x14ff97,_0x5e123a,_0x1e0cd9,_0x3f0920,_0x4fe7af,_0x4f1a83,_0x556630,_0x25203c,_0x2cb92d,_0x5bd650,_0x11db2d,_0x49f281,_0x447caf,_0x43c004,_0x3c2014,_0x4c8652,_0x32b1d7){const _0x40090a=_0x49a1e3,_0x40b02e=this;_0x40b02e[_0x40090a(0x1947)]=_0x4c8652,_0x40b02e[_0x40090a(0x28d6)]=_0x32b1d7,_0x40b02e[_0x40090a(0x1d3d)]=_0x3c2014[_0x40090a(0x808)](),_0x40b02e[_0x40090a(0x12eb)]=_0x2cb92d||{'count':0x0,'rows':[]},_0x40b02e[_0x40090a(0x16a8)]=_0x5bd650,_0x40b02e['userProfileSection']=_0x11db2d&&_0x11db2d[_0x40090a(0xb90)]==0x1?_0x11db2d[_0x40090a(0x28b8)][0x0]:null,_0x40b02e['crudPermissions']=_0x3c2014[_0x40090a(0xa7e)](_0x40b02e[_0x40090a(0x16b2)]?_0x40b02e[_0x40090a(0x16b2)][_0x40090a(0x402)]:null),_0x40b02e['table']=_0x40090a(0x12eb),_0x40b02e[_0x40090a(0x300)]='',_0x40b02e[_0x40090a(0x2748)]=null,_0x40b02e[_0x40090a(0x1eff)]=[],_0x40b02e[_0x40090a(0x289a)]={'fields':'createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','limit':0xa,'page':0x1},_0x40b02e['arrayhost']=_0x28c606()[_0x40090a(0x161e)]([{'option':'zoho.com','value':'\x27zoho.com\x27'},{'option':_0x40090a(0x1bcf),'value':_0x40090a(0xd95)}],function(_0x4e1933){const _0x273f4d=_0x40090a;return _0x28c606()[_0x273f4d(0x1353)](_0x4e1933['value'],new RegExp('\x27','g'),'');}),_0x40b02e[_0x40090a(0x227)]=_0x28c606()[_0x40090a(0x161e)]([{'option':'US','value':'\x27US\x27'},{'option':'AU','value':_0x40090a(0xed6)},{'option':'EU','value':'\x27EU\x27'},{'option':'IN','value':_0x40090a(0x1f2b)},{'option':'CN','value':'\x27CN\x27'}],function(_0x45a357){const _0x21e884=_0x40090a;return _0x28c606()['replace'](_0x45a357[_0x21e884(0x1096)],new RegExp('\x27','g'),'');}),_0x40b02e[_0x40090a(0xff6)]=_0x420d22,_0x40b02e['testtestintegrationaccount']=_0x339142,_0x40b02e[_0x40090a(0x1262)]=_0x4ab027,_0x40b02e[_0x40090a(0x1339)]=_0x44be36,_0x40b02e[_0x40090a(0xab3)]=_0x47a810,_0x40b02e[_0x40090a(0x1c67)]=_0x5dc45d,_0x40b02e[_0x40090a(0x1013)]=_0x367086,_0x40b02e[_0x40090a(0x25dd)]=_0x165df3,_0x40b02e[_0x40090a(0x1007)]=_0x33bfe3,_0x40b02e[_0x40090a(0x2695)]=_0x13d127,_0x40b02e[_0x40090a(0x1612)]=_0x5afe26;function _0x420d22(_0x4ed909){const _0x24882c=_0x40090a;_0x1e0cd9['go'](_0x24882c(0x1c1c),{'id':_0x4ed909['id'],'zohoAccount':_0x4ed909,'crudPermissions':_0x40b02e[_0x24882c(0x402)]});}function _0x339142(_0x2d50b9){const _0x3ef820=_0x40090a;return _0x49f281[_0x3ef820(0x1dc7)]['getFields']({'id':_0x2d50b9['id'],'test':!![]})[_0x3ef820(0x15e7)][_0x3ef820(0x64a)](function(){const _0x18fe8b=_0x3ef820;_0x43c004['success']({'title':_0x18fe8b(0x26b7),'msg':'Connection\x20succeded!'});})[_0x3ef820(0x20cd)](function(_0x550bf0){const _0x53a71e=_0x3ef820;_0x43c004[_0x53a71e(0x1bd0)]({'title':_0x53a71e(0x26b7),'msg':_0x550bf0[_0x53a71e(0x1c52)]?_0x550bf0['data'][_0x53a71e(0x18ca)]?_0x550bf0['data'][_0x53a71e(0x18ca)]:JSON[_0x53a71e(0x2317)](_0x550bf0['data']):_0x550bf0['toString']()});});}function _0x4ab027(_0x580d65,_0xd3e378){const _0x1bd694=_0x40090a,_0x2d5576=_0x4fe7af['confirm']()[_0x1bd694(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()[_0x1bd694(0xc01)](_0x1bd694(0x1e44))+'?')['htmlContent'](_0x1bd694(0x50b)+(_0x580d65[_0x1bd694(0x2494)]||_0x1bd694(0x1e44))+''+_0x1bd694(0x4b8))[_0x1bd694(0x213e)]('delete\x20zohoAccount')[_0x1bd694(0x2283)](_0xd3e378)['ok']('OK')[_0x1bd694(0x101a)](_0x1bd694(0x18fd));_0x4fe7af[_0x1bd694(0xa60)](_0x2d5576)[_0x1bd694(0x64a)](function(){_0x367086(_0x580d65);},function(){const _0x32742b=_0x1bd694;console[_0x32742b(0x9b4)](_0x32742b(0x18fd));});}let _0x1f3266=!![],_0x506f08=0x1;_0x14ff97[_0x40090a(0xc62)](_0x40090a(0x1cb9),function(_0x3e6996,_0x47c5f2){const _0xed529a=_0x40090a;_0x1f3266?_0x556630(function(){_0x1f3266=![];}):(!_0x47c5f2&&(_0x506f08=_0x40b02e['query'][_0xed529a(0xc72)]),_0x3e6996!==_0x47c5f2&&(_0x40b02e['query']['page']=0x1),!_0x3e6996&&(_0x40b02e[_0xed529a(0x289a)][_0xed529a(0xc72)]=_0x506f08),_0x40b02e[_0xed529a(0xab3)]());});function _0x44be36(_0xd7ca99){const _0x125372=_0x40090a;_0x40b02e[_0x125372(0x12eb)]=_0xd7ca99||{'count':0x0,'rows':[]};}function _0x47a810(){const _0x2bd51f=_0x40090a;_0x40b02e['query'][_0x2bd51f(0x24f9)]=(_0x40b02e[_0x2bd51f(0x289a)][_0x2bd51f(0xc72)]-0x1)*_0x40b02e[_0x2bd51f(0x289a)][_0x2bd51f(0x25bb)],_0x3c2014[_0x2bd51f(0x4de)](_0x2bd51f(0x333))?_0x40b02e[_0x2bd51f(0x1713)]=_0x49f281[_0x2bd51f(0x1dc7)]['get'](_0x40b02e[_0x2bd51f(0x289a)],_0x44be36)[_0x2bd51f(0x15e7)]:(_0x40b02e['query']['id']=_0x40b02e[_0x2bd51f(0x16a8)]['id'],_0x40b02e[_0x2bd51f(0x289a)][_0x2bd51f(0xa21)]=_0x2bd51f(0x496),_0x40b02e['promise']=_0x49f281[_0x2bd51f(0x16a8)][_0x2bd51f(0x2565)](_0x40b02e[_0x2bd51f(0x289a)],_0x44be36)['$promise']);}function _0x5dc45d(_0x18d096,_0x2817ca){const _0x40c66b=_0x40090a;_0x4fe7af['show']({'controller':'CreateOrEditZohoAccountDialogController','controllerAs':'vm','templateUrl':_0x3485d9,'parent':angular[_0x40c66b(0x1f81)](_0x4f1a83[_0x40c66b(0xb49)]),'targetEvent':_0x18d096,'clickOutsideToClose':!![],'locals':{'zohoAccount':_0x2817ca,'zohoAccounts':_0x40b02e[_0x40c66b(0x12eb)][_0x40c66b(0x28b8)],'license':_0x40b02e[_0x40c66b(0x1947)],'setting':_0x40b02e['setting'],'crudPermissions':_0x40b02e[_0x40c66b(0x402)]}});}function _0x367086(_0x4694bb){const _0x126f80=_0x40090a;_0x49f281[_0x126f80(0x1dc7)][_0x126f80(0xabd)]({'id':_0x4694bb['id']})[_0x126f80(0x15e7)]['then'](function(){const _0x5032f1=_0x126f80;_0x28c606()[_0x5032f1(0x21c7)](_0x40b02e['zohoAccounts'][_0x5032f1(0x28b8)],{'id':_0x4694bb['id']}),_0x40b02e['zohoAccounts'][_0x5032f1(0xb90)]-=0x1,!_0x40b02e[_0x5032f1(0x12eb)]['rows'][_0x5032f1(0x1b9e)]&&_0x40b02e['getZohoAccounts'](),_0x43c004[_0x5032f1(0x1339)]({'title':_0x28c606()[_0x5032f1(0xc01)](_0x5032f1(0xe5f))+_0x5032f1(0x2502),'msg':_0x4694bb[_0x5032f1(0x2494)]?_0x4694bb[_0x5032f1(0x2494)]+_0x5032f1(0x1fa8):''});})[_0x126f80(0x20cd)](function(_0x4e99f4){const _0x4a80e5=_0x126f80;if(_0x4e99f4[_0x4a80e5(0x1c52)]&&_0x4e99f4[_0x4a80e5(0x1c52)][_0x4a80e5(0xbae)]&&_0x4e99f4['data']['errors'][_0x4a80e5(0x1b9e)]){_0x40b02e[_0x4a80e5(0xbae)]=_0x4e99f4[_0x4a80e5(0x1c52)][_0x4a80e5(0xbae)]||[{'message':_0x4e99f4[_0x4a80e5(0x2915)](),'type':_0x4a80e5(0x21ee)}];for(let _0x298e4b=0x0;_0x298e4b<_0x4e99f4[_0x4a80e5(0x1c52)]['errors'][_0x4a80e5(0x1b9e)];_0x298e4b++){_0x43c004['error']({'title':_0x4e99f4[_0x4a80e5(0x1c52)][_0x4a80e5(0xbae)][_0x298e4b][_0x4a80e5(0x2185)],'msg':_0x4e99f4[_0x4a80e5(0x1c52)]['errors'][_0x298e4b][_0x4a80e5(0x18ca)]});}}else _0x43c004[_0x4a80e5(0x1bd0)]({'title':_0x4e99f4[_0x4a80e5(0x10b3)]?_0x4a80e5(0x575)+_0x4e99f4[_0x4a80e5(0x10b3)]+_0x4a80e5(0x21db)+_0x4e99f4[_0x4a80e5(0x2115)]:'SYSTEM:DELETEintZohoAccount','msg':_0x4e99f4[_0x4a80e5(0x1c52)]?JSON[_0x4a80e5(0x2317)](_0x4e99f4['data'][_0x4a80e5(0x18ca)]):_0x4e99f4[_0x4a80e5(0x18ca)]||_0x4e99f4[_0x4a80e5(0x2915)]()});});}function _0x165df3(){const _0x17bcfb=_0x40090a,_0x330879=angular[_0x17bcfb(0x289e)](_0x40b02e[_0x17bcfb(0x1eff)]);return _0x40b02e[_0x17bcfb(0x1eff)]=[],_0x330879;}function _0x33bfe3(_0x4bb8d2){const _0x460d74=_0x40090a,_0x1c6dc8=_0x4fe7af['confirm']()[_0x460d74(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20zohoAccounts?')[_0x460d74(0x33a)](_0x460d74(0x50b)+_0x40b02e['selectedZohoAccounts'][_0x460d74(0x1b9e)]+_0x460d74(0x163e)+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x460d74(0x11f))[_0x460d74(0x2283)](_0x4bb8d2)['ok']('OK')[_0x460d74(0x101a)](_0x460d74(0x18fd));_0x4fe7af[_0x460d74(0xa60)](_0x1c6dc8)[_0x460d74(0x64a)](function(){const _0x31e667=_0x460d74;_0x40b02e[_0x31e667(0x1eff)][_0x31e667(0x1397)](function(_0x5ea960){_0x367086(_0x5ea960);}),_0x40b02e[_0x31e667(0x1eff)]=[];});}function _0x13d127(){const _0x125f3b=_0x40090a;_0x40b02e[_0x125f3b(0x1eff)]=[];}function _0x5afe26(){const _0x167f94=_0x40090a;_0x40b02e[_0x167f94(0x1eff)]=_0x40b02e[_0x167f94(0x12eb)]['rows'];}}const _0x30fd1d=_0x1c7781;;_0x490a46[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad),'$translatePartialLoaderProvider'];function _0x490a46(_0x829258,_0x55f9ef){const _0x3bd599=_0x49a1e3;_0x829258[_0x3bd599(0x14f2)]('app.integrations',{'abstract':!![],'url':_0x3bd599(0x2600)})[_0x3bd599(0x14f2)](_0x3bd599(0x116b),{'url':_0x3bd599(0x1798),'views':{'content@app':{'templateUrl':_0x57b4af,'controller':'ZendeskAccountsController\x20as\x20vm'}},'resolve':{'zendeskAccounts':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x15aaac,_0x49e4a9){const _0x2db6a2=_0x3bd599;return _0x49e4a9['hasRole'](_0x2db6a2(0x333))?_0x15aaac[_0x2db6a2(0x1268)](_0x2db6a2(0x222e),{'fields':_0x2db6a2(0x9ef),'limit':0xa,'offset':0x0}):_0x15aaac['resolve'](_0x2db6a2(0x1758),{'id':_0x49e4a9[_0x2db6a2(0x808)]()[_0x2db6a2(0x21ac)],'section':_0x2db6a2(0x182a),'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0xc6c570,_0x5b656f){const _0x3deade=_0x3bd599;return _0x5b656f[_0x3deade(0x4de)](_0x3deade(0x333))?null:_0xc6c570[_0x3deade(0x1268)]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x5b656f[_0x3deade(0x808)]()['userProfileId']});}],'userProfileSection':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x28a014,_0x30b487){const _0x233fe4=_0x3bd599;return _0x30b487['hasRole']('admin')?null:_0x28a014[_0x233fe4(0x1268)](_0x233fe4(0x2681),{'fields':_0x233fe4(0x527),'userProfileId':_0x30b487[_0x233fe4(0x808)]()[_0x233fe4(0x21ac)],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':'integrations'})['state'](_0x3bd599(0x21b3),{'url':_0x3bd599(0x45b),'params':{'zendeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2f0b02,'controller':_0x3bd599(0x58c)}},'resolve':{'zendeskAccount':[_0x3bd599(0x107c),_0x3bd599(0x1fbb),function(_0x3106c4,_0x49f168){const _0x5916f3=_0x3bd599;return _0x3106c4[_0x5916f3(0x1268)](_0x5916f3(0x222e),{'fields':_0x5916f3(0x9ef),'id':_0x49f168['id']});}],'userProfileSection':[_0x3bd599(0x107c),'Auth',function(_0x3fae41,_0x173540){const _0x4e5194=_0x3bd599;return _0x3fae41[_0x4e5194(0x1268)](_0x4e5194(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x173540[_0x4e5194(0x808)]()['userProfileId'],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':_0x3bd599(0x151e)})[_0x3bd599(0x14f2)](_0x3bd599(0x2387),{'url':'/salesforceAccounts','views':{'content@app':{'templateUrl':_0x3f1158,'controller':'SalesforceAccountsController\x20as\x20vm'}},'resolve':{'salesforceAccounts':[_0x3bd599(0x107c),'Auth',function(_0x5ccddb,_0x478b18){const _0xa51ab2=_0x3bd599;return _0x478b18[_0xa51ab2(0x4de)](_0xa51ab2(0x333))?_0x5ccddb[_0xa51ab2(0x1268)](_0xa51ab2(0x24f1),{'fields':_0xa51ab2(0x800),'limit':0xa,'offset':0x0}):_0x5ccddb[_0xa51ab2(0x1268)](_0xa51ab2(0x1758),{'id':_0x478b18[_0xa51ab2(0x808)]()[_0xa51ab2(0x21ac)],'section':_0xa51ab2(0x172b),'fields':_0xa51ab2(0x800),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3bd599(0x107c),'Auth',function(_0x46c9b1,_0x3a1ded){const _0x4b226c=_0x3bd599;return _0x3a1ded[_0x4b226c(0x4de)]('admin')?null:_0x46c9b1[_0x4b226c(0x1268)]('userProfile@get',{'fields':_0x4b226c(0x10d2),'id':_0x3a1ded[_0x4b226c(0x808)]()[_0x4b226c(0x21ac)]});}],'userProfileSection':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x28a149,_0x1e17f3){const _0x4a2d74=_0x3bd599;return _0x1e17f3[_0x4a2d74(0x4de)](_0x4a2d74(0x333))?null:_0x28a149[_0x4a2d74(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1e17f3['getCurrentUser']()[_0x4a2d74(0x21ac)],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':'integrations'})[_0x3bd599(0x14f2)](_0x3bd599(0x2769),{'url':_0x3bd599(0x45b),'params':{'salesforceAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1bf75a,'controller':_0x3bd599(0x846)}},'resolve':{'salesforceAccount':[_0x3bd599(0x107c),_0x3bd599(0x1fbb),function(_0x55d065,_0x1babb2){const _0x4f4929=_0x3bd599;return _0x55d065['resolve']('intSalesforceAccount@get',{'fields':_0x4f4929(0x800),'id':_0x1babb2['id']});}],'userProfileSection':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x1fb39c,_0x5b6dea){const _0x477cb7=_0x3bd599;return _0x1fb39c[_0x477cb7(0x1268)](_0x477cb7(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5b6dea[_0x477cb7(0x808)]()[_0x477cb7(0x21ac)],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':_0x3bd599(0x151e)})['state'](_0x3bd599(0x53e),{'url':_0x3bd599(0x19c6),'views':{'content@app':{'templateUrl':_0x1a77f1,'controller':_0x3bd599(0x17da)}},'resolve':{'freshdeskAccounts':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x1ab226,_0x5755fc){const _0x5274a9=_0x3bd599;return _0x5755fc['hasRole'](_0x5274a9(0x333))?_0x1ab226[_0x5274a9(0x1268)](_0x5274a9(0x805),{'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','limit':0xa,'offset':0x0}):_0x1ab226[_0x5274a9(0x1268)](_0x5274a9(0x1758),{'id':_0x5755fc[_0x5274a9(0x808)]()['userProfileId'],'section':_0x5274a9(0x124d),'fields':_0x5274a9(0x175b),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3bd599(0x107c),'Auth',function(_0x56decf,_0x479613){const _0x23005b=_0x3bd599;return _0x479613[_0x23005b(0x4de)](_0x23005b(0x333))?null:_0x56decf['resolve']('userProfile@get',{'fields':_0x23005b(0x10d2),'id':_0x479613[_0x23005b(0x808)]()[_0x23005b(0x21ac)]});}],'userProfileSection':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x130a51,_0x2a673a){const _0x30e543=_0x3bd599;return _0x2a673a[_0x30e543(0x4de)](_0x30e543(0x333))?null:_0x130a51['resolve'](_0x30e543(0x2681),{'fields':_0x30e543(0x527),'userProfileId':_0x2a673a[_0x30e543(0x808)]()[_0x30e543(0x21ac)],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':_0x3bd599(0x151e)})['state'](_0x3bd599(0x2968),{'url':_0x3bd599(0x45b),'params':{'freshdeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3a1809,'controller':_0x3bd599(0x1c6b)}},'resolve':{'freshdeskAccount':[_0x3bd599(0x107c),_0x3bd599(0x1fbb),function(_0x52ee07,_0xed2ce){const _0x54714d=_0x3bd599;return _0x52ee07[_0x54714d(0x1268)](_0x54714d(0x805),{'fields':_0x54714d(0x175b),'id':_0xed2ce['id']});}],'userProfileSection':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0xea5f30,_0x51c108){const _0x3b02be=_0x3bd599;return _0xea5f30[_0x3b02be(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x51c108['getCurrentUser']()['userProfileId'],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':_0x3bd599(0x151e)})[_0x3bd599(0x14f2)](_0x3bd599(0x2147),{'url':_0x3bd599(0x734),'views':{'content@app':{'templateUrl':_0x36aef7,'controller':_0x3bd599(0x1ddc)}},'resolve':{'sugarcrmAccounts':['apiResolver',_0x3bd599(0xdcf),function(_0x6af22,_0x1d4165){const _0x4e659e=_0x3bd599;return _0x1d4165[_0x4e659e(0x4de)](_0x4e659e(0x333))?_0x6af22[_0x4e659e(0x1268)](_0x4e659e(0x13f),{'fields':_0x4e659e(0x2684),'limit':0xa,'offset':0x0}):_0x6af22[_0x4e659e(0x1268)](_0x4e659e(0x1758),{'id':_0x1d4165[_0x4e659e(0x808)]()[_0x4e659e(0x21ac)],'section':_0x4e659e(0x877),'fields':_0x4e659e(0x2684),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x2bf43d,_0x1100c0){const _0x4a8f8b=_0x3bd599;return _0x1100c0[_0x4a8f8b(0x4de)]('admin')?null:_0x2bf43d[_0x4a8f8b(0x1268)]('userProfile@get',{'fields':_0x4a8f8b(0x10d2),'id':_0x1100c0[_0x4a8f8b(0x808)]()[_0x4a8f8b(0x21ac)]});}],'userProfileSection':[_0x3bd599(0x107c),'Auth',function(_0x205743,_0x1e6d64){const _0x2a3e44=_0x3bd599;return _0x1e6d64[_0x2a3e44(0x4de)]('admin')?null:_0x205743[_0x2a3e44(0x1268)](_0x2a3e44(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1e6d64[_0x2a3e44(0x808)]()[_0x2a3e44(0x21ac)],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':_0x3bd599(0x151e)})[_0x3bd599(0x14f2)]('app.integrations.sugarcrmAccounts.edit',{'url':_0x3bd599(0x45b),'params':{'sugarcrmAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2525b1,'controller':_0x3bd599(0x1e01)}},'resolve':{'sugarcrmAccount':['apiResolver',_0x3bd599(0x1fbb),function(_0x432914,_0x5d0215){const _0x4b7d64=_0x3bd599;return _0x432914[_0x4b7d64(0x1268)](_0x4b7d64(0x13f),{'fields':_0x4b7d64(0x2684),'id':_0x5d0215['id']});}],'userProfileSection':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x2978cf,_0x26f9e6){const _0x429451=_0x3bd599;return _0x2978cf[_0x429451(0x1268)](_0x429451(0x2681),{'fields':_0x429451(0x527),'userProfileId':_0x26f9e6['getCurrentUser']()[_0x429451(0x21ac)],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':_0x3bd599(0x151e)})[_0x3bd599(0x14f2)](_0x3bd599(0x1d22),{'url':'/deskAccounts','views':{'content@app':{'templateUrl':_0x400456,'controller':_0x3bd599(0x1a8e)}},'resolve':{'deskAccounts':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x1d5576,_0x2e673a){const _0x1e6615=_0x3bd599;return _0x2e673a[_0x1e6615(0x4de)]('admin')?_0x1d5576['resolve'](_0x1e6615(0x1213),{'fields':_0x1e6615(0x144),'limit':0xa,'offset':0x0}):_0x1d5576[_0x1e6615(0x1268)](_0x1e6615(0x1758),{'id':_0x2e673a[_0x1e6615(0x808)]()[_0x1e6615(0x21ac)],'section':_0x1e6615(0x949),'fields':_0x1e6615(0x144),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x3bd599(0xdcf),function(_0x5a8627,_0x2d3ca6){const _0x55bce5=_0x3bd599;return _0x2d3ca6[_0x55bce5(0x4de)](_0x55bce5(0x333))?null:_0x5a8627['resolve']('userProfile@get',{'fields':_0x55bce5(0x10d2),'id':_0x2d3ca6[_0x55bce5(0x808)]()['userProfileId']});}],'userProfileSection':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x7ffc22,_0x287bb6){const _0x4b6b1d=_0x3bd599;return _0x287bb6[_0x4b6b1d(0x4de)](_0x4b6b1d(0x333))?null:_0x7ffc22['resolve'](_0x4b6b1d(0x2681),{'fields':_0x4b6b1d(0x527),'userProfileId':_0x287bb6[_0x4b6b1d(0x808)]()[_0x4b6b1d(0x21ac)],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':_0x3bd599(0x151e)})[_0x3bd599(0x14f2)]('app.integrations.deskAccounts.edit',{'url':_0x3bd599(0x45b),'params':{'deskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2abdb5,'controller':'DeskAccountController\x20as\x20vm'}},'resolve':{'deskAccount':[_0x3bd599(0x107c),_0x3bd599(0x1fbb),function(_0x1525be,_0x1ee1ad){const _0x5673a0=_0x3bd599;return _0x1525be[_0x5673a0(0x1268)](_0x5673a0(0x1213),{'fields':'createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description','id':_0x1ee1ad['id']});}],'userProfileSection':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x237f6c,_0x265c6a){const _0x221c2f=_0x3bd599;return _0x237f6c[_0x221c2f(0x1268)](_0x221c2f(0x2681),{'fields':_0x221c2f(0x527),'userProfileId':_0x265c6a[_0x221c2f(0x808)]()[_0x221c2f(0x21ac)],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':'integrations'})[_0x3bd599(0x14f2)]('app.integrations.zohoAccounts',{'url':_0x3bd599(0x1630),'views':{'content@app':{'templateUrl':_0x5b474e,'controller':_0x3bd599(0x1ec9)}},'resolve':{'zohoAccounts':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x4a5031,_0x2a5245){const _0x163271=_0x3bd599;return _0x2a5245[_0x163271(0x4de)](_0x163271(0x333))?_0x4a5031[_0x163271(0x1268)](_0x163271(0x20d5),{'fields':_0x163271(0x19da),'limit':0xa,'offset':0x0}):_0x4a5031[_0x163271(0x1268)](_0x163271(0x1758),{'id':_0x2a5245[_0x163271(0x808)]()[_0x163271(0x21ac)],'section':_0x163271(0x496),'fields':_0x163271(0x19da),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x3bd599(0xdcf),function(_0x1e04fa,_0x45cf92){const _0x2e7fc8=_0x3bd599;return _0x45cf92[_0x2e7fc8(0x4de)](_0x2e7fc8(0x333))?null:_0x1e04fa[_0x2e7fc8(0x1268)]('userProfile@get',{'fields':_0x2e7fc8(0x10d2),'id':_0x45cf92[_0x2e7fc8(0x808)]()['userProfileId']});}],'userProfileSection':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x385645,_0x1c615d){const _0x1595f8=_0x3bd599;return _0x1c615d[_0x1595f8(0x4de)](_0x1595f8(0x333))?null:_0x385645[_0x1595f8(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1c615d[_0x1595f8(0x808)]()[_0x1595f8(0x21ac)],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0x3bd599(0x151e)})[_0x3bd599(0x14f2)](_0x3bd599(0x1c1c),{'url':_0x3bd599(0x45b),'params':{'zohoAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1510a9,'controller':'ZohoAccountController\x20as\x20vm'}},'resolve':{'zohoAccount':[_0x3bd599(0x107c),_0x3bd599(0x1fbb),function(_0x1f1b5b,_0x552d61){const _0x28e1c8=_0x3bd599;return _0x1f1b5b[_0x28e1c8(0x1268)]('intZohoAccount@get',{'fields':'createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','id':_0x552d61['id']});}],'userProfileSection':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x4c613d,_0x33ff1a){const _0x2e8ac1=_0x3bd599;return _0x4c613d[_0x2e8ac1(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x33ff1a[_0x2e8ac1(0x808)]()['userProfileId'],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0x3bd599(0x151e)})[_0x3bd599(0x14f2)](_0x3bd599(0xb8a),{'url':_0x3bd599(0x26e9),'views':{'content@app':{'templateUrl':_0x193d49,'controller':_0x3bd599(0x1b5d)}},'resolve':{'vtigerAccounts':['apiResolver',_0x3bd599(0xdcf),function(_0x1b9665,_0x238478){const _0xf63efe=_0x3bd599;return _0x238478[_0xf63efe(0x4de)](_0xf63efe(0x333))?_0x1b9665[_0xf63efe(0x1268)]('intVtigerAccount@get',{'fields':_0xf63efe(0x1113),'limit':0xa,'offset':0x0}):_0x1b9665['resolve'](_0xf63efe(0x1758),{'id':_0x238478[_0xf63efe(0x808)]()[_0xf63efe(0x21ac)],'section':_0xf63efe(0xaaf),'fields':'createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl','limit':0xa,'offset':0x0});}],'userProfile':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x2d83c0,_0x1828c0){const _0x478a62=_0x3bd599;return _0x1828c0[_0x478a62(0x4de)](_0x478a62(0x333))?null:_0x2d83c0[_0x478a62(0x1268)](_0x478a62(0x6e3),{'fields':'id,name,crudPermissions','id':_0x1828c0[_0x478a62(0x808)]()['userProfileId']});}],'userProfileSection':[_0x3bd599(0x107c),'Auth',function(_0x37b8c9,_0x34d91c){const _0x374641=_0x3bd599;return _0x34d91c[_0x374641(0x4de)](_0x374641(0x333))?null:_0x37b8c9[_0x374641(0x1268)]('userProfileSection@get',{'fields':_0x374641(0x527),'userProfileId':_0x34d91c['getCurrentUser']()[_0x374641(0x21ac)],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':_0x3bd599(0x151e)})[_0x3bd599(0x14f2)](_0x3bd599(0x26d9),{'url':_0x3bd599(0x45b),'params':{'vtigerAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xc32b7c,'controller':_0x3bd599(0x2cf)}},'resolve':{'vtigerAccount':[_0x3bd599(0x107c),_0x3bd599(0x1fbb),function(_0x2cd47b,_0x5ce535){const _0x5bb7df=_0x3bd599;return _0x2cd47b[_0x5bb7df(0x1268)]('intVtigerAccount@get',{'fields':'createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl','id':_0x5ce535['id']});}],'userProfileSection':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x38cc8b,_0x3db9ed){const _0x443521=_0x3bd599;return _0x38cc8b[_0x443521(0x1268)](_0x443521(0x2681),{'fields':_0x443521(0x527),'userProfileId':_0x3db9ed[_0x443521(0x808)]()[_0x443521(0x21ac)],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':'integrations'})[_0x3bd599(0x14f2)]('app.integrations.dynamics365Accounts',{'url':_0x3bd599(0x597),'views':{'content@app':{'templateUrl':_0x445fe4,'controller':_0x3bd599(0xbb4)}},'resolve':{'dynamics365Accounts':[_0x3bd599(0x107c),'Auth',function(_0x4105cd,_0x5275de){const _0x1deb3f=_0x3bd599;return _0x5275de[_0x1deb3f(0x4de)](_0x1deb3f(0x333))?_0x4105cd[_0x1deb3f(0x1268)](_0x1deb3f(0x843),{'fields':_0x1deb3f(0x15e1),'limit':0xa,'offset':0x0}):_0x4105cd[_0x1deb3f(0x1268)](_0x1deb3f(0x1758),{'id':_0x5275de['getCurrentUser']()[_0x1deb3f(0x21ac)],'section':_0x1deb3f(0xd60),'fields':'createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x407974,_0x35fafc){const _0x51d1ac=_0x3bd599;return _0x35fafc[_0x51d1ac(0x4de)](_0x51d1ac(0x333))?null:_0x407974[_0x51d1ac(0x1268)](_0x51d1ac(0x6e3),{'fields':_0x51d1ac(0x10d2),'id':_0x35fafc[_0x51d1ac(0x808)]()[_0x51d1ac(0x21ac)]});}],'userProfileSection':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x473261,_0x33d812){const _0x39a7bb=_0x3bd599;return _0x33d812[_0x39a7bb(0x4de)](_0x39a7bb(0x333))?null:_0x473261[_0x39a7bb(0x1268)](_0x39a7bb(0x2681),{'fields':_0x39a7bb(0x527),'userProfileId':_0x33d812[_0x39a7bb(0x808)]()[_0x39a7bb(0x21ac)],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':_0x3bd599(0x151e)})[_0x3bd599(0x14f2)]('app.integrations.dynamics365Accounts.edit',{'url':'/:id?tab','params':{'dynamics365Account':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5a144a,'controller':_0x3bd599(0x274)}},'resolve':{'dynamics365Account':['apiResolver',_0x3bd599(0x1fbb),function(_0x1c4fee,_0x222124){const _0x176b4a=_0x3bd599;return _0x1c4fee[_0x176b4a(0x1268)](_0x176b4a(0x843),{'fields':_0x176b4a(0x15e1),'id':_0x222124['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x2a088d,_0x3ccc71){const _0x5ed9c6=_0x3bd599;return _0x2a088d[_0x5ed9c6(0x1268)](_0x5ed9c6(0x2681),{'fields':_0x5ed9c6(0x527),'userProfileId':_0x3ccc71[_0x5ed9c6(0x808)]()[_0x5ed9c6(0x21ac)],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':_0x3bd599(0x151e)})[_0x3bd599(0x14f2)]('app.integrations.servicenowAccounts',{'url':_0x3bd599(0xbbc),'views':{'content@app':{'templateUrl':_0x24d8ed,'controller':_0x3bd599(0x1bc6)}},'resolve':{'servicenowAccounts':['apiResolver','Auth',function(_0x464302,_0x5e2fa9){const _0x32fd06=_0x3bd599;return _0x5e2fa9[_0x32fd06(0x4de)](_0x32fd06(0x333))?_0x464302[_0x32fd06(0x1268)](_0x32fd06(0xeee),{'fields':_0x32fd06(0x1731),'limit':0xa,'offset':0x0}):_0x464302[_0x32fd06(0x1268)]('userProfile@getResources',{'id':_0x5e2fa9['getCurrentUser']()[_0x32fd06(0x21ac)],'section':_0x32fd06(0x12b1),'fields':_0x32fd06(0x1731),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x3bd599(0xdcf),function(_0x13be74,_0x44cb5){const _0x4dee45=_0x3bd599;return _0x44cb5[_0x4dee45(0x4de)](_0x4dee45(0x333))?null:_0x13be74[_0x4dee45(0x1268)](_0x4dee45(0x6e3),{'fields':_0x4dee45(0x10d2),'id':_0x44cb5[_0x4dee45(0x808)]()[_0x4dee45(0x21ac)]});}],'userProfileSection':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x406ecb,_0x4c1f39){const _0x4ad4aa=_0x3bd599;return _0x4c1f39[_0x4ad4aa(0x4de)]('admin')?null:_0x406ecb[_0x4ad4aa(0x1268)](_0x4ad4aa(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4c1f39[_0x4ad4aa(0x808)]()[_0x4ad4aa(0x21ac)],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':_0x3bd599(0x151e)})['state'](_0x3bd599(0xdee),{'url':'/:id?tab','params':{'servicenowAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x365308,'controller':_0x3bd599(0x1e81)}},'resolve':{'servicenowAccount':[_0x3bd599(0x107c),_0x3bd599(0x1fbb),function(_0x24e0a8,_0x1bafb0){const _0x14de03=_0x3bd599;return _0x24e0a8[_0x14de03(0x1268)]('intServicenowAccount@get',{'fields':_0x14de03(0x1731),'id':_0x1bafb0['id']});}],'userProfileSection':[_0x3bd599(0x107c),'Auth',function(_0x1bc318,_0x329106){const _0x4a6232=_0x3bd599;return _0x1bc318[_0x4a6232(0x1268)](_0x4a6232(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x329106[_0x4a6232(0x808)]()[_0x4a6232(0x21ac)],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':_0x3bd599(0x151e)})['state'](_0x3bd599(0x9ba),{'url':_0x3bd599(0x9b8),'views':{'content@app':{'templateUrl':_0x33eebd,'controller':_0x3bd599(0x1a1f)}},'resolve':{'freshsalesAccounts':['apiResolver',_0x3bd599(0xdcf),function(_0xd4ed62,_0x142050){const _0x4376b9=_0x3bd599;return _0x142050[_0x4376b9(0x4de)]('admin')?_0xd4ed62['resolve'](_0x4376b9(0x2626),{'fields':_0x4376b9(0x175b),'limit':0xa,'offset':0x0}):_0xd4ed62[_0x4376b9(0x1268)](_0x4376b9(0x1758),{'id':_0x142050[_0x4376b9(0x808)]()[_0x4376b9(0x21ac)],'section':_0x4376b9(0xd67),'fields':_0x4376b9(0x175b),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x54adfc,_0x2dfdf3){const _0x1cdcd4=_0x3bd599;return _0x2dfdf3[_0x1cdcd4(0x4de)](_0x1cdcd4(0x333))?null:_0x54adfc[_0x1cdcd4(0x1268)](_0x1cdcd4(0x6e3),{'fields':_0x1cdcd4(0x10d2),'id':_0x2dfdf3['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x3bd599(0x107c),'Auth',function(_0x5e9976,_0x49f666){const _0x508d9f=_0x3bd599;return _0x49f666[_0x508d9f(0x4de)](_0x508d9f(0x333))?null:_0x5e9976[_0x508d9f(0x1268)]('userProfileSection@get',{'fields':_0x508d9f(0x527),'userProfileId':_0x49f666[_0x508d9f(0x808)]()[_0x508d9f(0x21ac)],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':_0x3bd599(0x151e)})[_0x3bd599(0x14f2)]('app.integrations.freshsalesAccounts.edit',{'url':_0x3bd599(0x45b),'params':{'freshsalesAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x26aa06,'controller':_0x3bd599(0x1d0d)}},'resolve':{'freshsalesAccount':[_0x3bd599(0x107c),_0x3bd599(0x1fbb),function(_0x29a38b,_0x9d180b){return _0x29a38b['resolve']('intFreshsalesAccount@get',{'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','id':_0x9d180b['id']});}],'userProfileSection':[_0x3bd599(0x107c),_0x3bd599(0xdcf),function(_0x341459,_0x3cf34f){const _0x1d7744=_0x3bd599;return _0x341459[_0x1d7744(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3cf34f[_0x1d7744(0x808)]()[_0x1d7744(0x21ac)],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':_0x3bd599(0x151e)}),_0x55f9ef['addPart'](_0x3bd599(0x20cf));}angular[_0x49a1e3(0x20d2)]('app.integrations',[_0x49a1e3(0x8d2),'ngPassword','md.data.table','flow',_0x49a1e3(0x2516),'ckeditor',_0x49a1e3(0x1434),'ngAria','ngAnimate',_0x49a1e3(0xb19),_0x49a1e3(0x1a59),_0x49a1e3(0x11fd),_0x49a1e3(0x1cfe),'ngclipboard','angular-cron-jobs',_0x49a1e3(0x1cff),_0x49a1e3(0x1046),_0x49a1e3(0x1acd),_0x49a1e3(0xc48),_0x49a1e3(0x28dd)])[_0x49a1e3(0x3d3)](_0x490a46)[_0x49a1e3(0x38e)](_0x49a1e3(0x9b9),_0x2909ed)[_0x49a1e3(0x38e)](_0x49a1e3(0x1287),_0x3fb507)['controller'](_0x49a1e3(0xaa4),_0x5ca288)[_0x49a1e3(0x38e)](_0x49a1e3(0x1580),_0x13de07)[_0x49a1e3(0x38e)](_0x49a1e3(0x72b),_0x2c751c)[_0x49a1e3(0x38e)](_0x49a1e3(0xd27),_0x534075)[_0x49a1e3(0x38e)](_0x49a1e3(0x1d69),_0x2a7c26)[_0x49a1e3(0x38e)](_0x49a1e3(0x2514),_0x1b1764)[_0x49a1e3(0x38e)](_0x49a1e3(0x1d40),_0x16a7c6)['controller'](_0x49a1e3(0x22a0),_0x5b40aa)[_0x49a1e3(0x38e)](_0x49a1e3(0x291b),_0x2ea418)[_0x49a1e3(0x38e)](_0x49a1e3(0x2ff),_0x4b219f)[_0x49a1e3(0x38e)]('CreateOrEditFreshdeskAccountDialogController',_0x4518ad)[_0x49a1e3(0x38e)](_0x49a1e3(0x21f0),_0x54a548)[_0x49a1e3(0x38e)](_0x49a1e3(0x60f),_0x2740f0)[_0x49a1e3(0x38e)]('CreateOrEditFreshdeskAccountItemDialogController',_0x379505)[_0x49a1e3(0x38e)]('FreshdeskAccountController',_0x2352e8)[_0x49a1e3(0x38e)](_0x49a1e3(0x9dd),_0x321121)[_0x49a1e3(0x38e)]('CreateOrEditFreshsalesAccountDialogController',_0x4dec7c)[_0x49a1e3(0x38e)]('FreshsalesAccountConfigurationsController',_0xbc83e1)[_0x49a1e3(0x38e)](_0x49a1e3(0xf6a),_0x155d78)['controller'](_0x49a1e3(0x15c8),_0x1b087e)[_0x49a1e3(0x38e)](_0x49a1e3(0x1acc),_0x5e107f)['controller'](_0x49a1e3(0x218),_0x480a58)[_0x49a1e3(0x38e)](_0x49a1e3(0x2704),_0x2dd2f5)[_0x49a1e3(0x38e)](_0x49a1e3(0x2437),_0x6bfabb)[_0x49a1e3(0x38e)]('CreateOrEditSalesforceConfigurationDialogController',_0x2091df)['controller'](_0x49a1e3(0x2856),_0x393dae)['controller'](_0x49a1e3(0x94f),_0x1cc2fe)['controller'](_0x49a1e3(0x2098),_0x1a8df2)[_0x49a1e3(0x38e)]('CreateOrEditServicenowAccountDialogController',_0x2ab882)[_0x49a1e3(0x38e)](_0x49a1e3(0x1a42),_0x193d6b)['controller'](_0x49a1e3(0x18d8),_0xb90100)[_0x49a1e3(0x38e)](_0x49a1e3(0x2ad),_0x3dfa0b)['controller'](_0x49a1e3(0x899),_0x50ab02)['controller']('ServicenowAccountsController',_0x15c4e4)[_0x49a1e3(0x38e)]('CreateOrEditSugarcrmAccountDialogController',_0x4681a2)['controller'](_0x49a1e3(0x1367),_0x58a92e)[_0x49a1e3(0x38e)]('CreateOrEditSugarcrmConfigurationDialogController',_0x35e7c6)[_0x49a1e3(0x38e)](_0x49a1e3(0x21f),_0x3142d6)['controller'](_0x49a1e3(0x1ca),_0xe51b37)[_0x49a1e3(0x38e)](_0x49a1e3(0x258a),_0x45e48e)[_0x49a1e3(0x38e)]('CreateOrEditVtigerAccountDialogController',_0x3a1d0a)[_0x49a1e3(0x38e)](_0x49a1e3(0x1543),_0x12ab1a)['controller'](_0x49a1e3(0x2179),_0x4301c3)[_0x49a1e3(0x38e)](_0x49a1e3(0x89f),_0x3e75e)[_0x49a1e3(0x38e)](_0x49a1e3(0x45f),_0x3c6392)[_0x49a1e3(0x38e)](_0x49a1e3(0xbd0),_0x2c76f5)['controller'](_0x49a1e3(0x2096),_0x244f43)[_0x49a1e3(0x38e)](_0x49a1e3(0x574),_0x587fad)['controller'](_0x49a1e3(0x450),_0x1c7698)[_0x49a1e3(0x38e)](_0x49a1e3(0xafe),_0x302b8e)['controller']('CreateOrEditZendeskConfigurationDialogController',_0x56f39f)[_0x49a1e3(0x38e)](_0x49a1e3(0xfef),_0x397399)[_0x49a1e3(0x38e)]('CreateOrEditZohoAccountDialogController',_0x4f5efd)[_0x49a1e3(0x38e)](_0x49a1e3(0xb8c),_0x23d369)[_0x49a1e3(0x38e)](_0x49a1e3(0x262),_0x252978)[_0x49a1e3(0x38e)](_0x49a1e3(0x45d),_0x2c02b6)[_0x49a1e3(0x38e)](_0x49a1e3(0x11d5),_0x7cbb5b)['controller'](_0x49a1e3(0x48b),_0x30fd1d);;const _0x37aea0=_0x2e4a48['p']+_0x49a1e3(0xf8b);;const _0x2ba9cf=_0x2e4a48['p']+_0x49a1e3(0x1741);;const _0x7e2f56=_0x2e4a48['p']+_0x49a1e3(0x791);;_0x1cebdb[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1373),'$mdDialog','$state',_0x49a1e3(0x1947),'toasty',_0x49a1e3(0xa19)];function _0x1cebdb(_0x424383,_0x48cd13,_0x3ab10f,_0x52ae0c,_0xaaadd3,_0x24caed){const _0x199321=_0x49a1e3,_0x432925=this;_0x432925[_0x199321(0x1947)]=_0x52ae0c||{},_0x432925['agents']=0x0,_0x432925[_0x199321(0xff5)]=0x0,_0x432925[_0x199321(0xf2e)]=0x0,_0x432925[_0x199321(0x5e5)]=[{'name':_0x199321(0x227c),'icon':_0x199321(0x1ef6)},{'name':_0x199321(0xf52),'icon':_0x199321(0x704)},{'name':'mail','icon':_0x199321(0x1829)},{'name':_0x199321(0x2621),'icon':_0x199321(0x7e8)},{'name':'fax','icon':_0x199321(0x1357)},{'name':_0x199321(0x28ad),'icon':_0x199321(0x1b5c)},{'name':_0x199321(0x1a29),'icon':'icon-whatsapp'}],_0x432925[_0x199321(0x1049)]=[{'name':'cm','icon':_0x199321(0x13d0)},{'name':_0x199321(0x2967),'icon':'icon-crosshairs'},{'name':'jscripty','icon':_0x199321(0x10ad)}],_0x432925[_0x199321(0x4be)]=[{'name':'webrtc','icon':'icon-server-plus'},{'name':_0x199321(0xca6),'icon':'icon-fish'},{'name':_0x199321(0x1ad6),'icon':_0x199321(0x112d)},{'name':_0x199321(0x2921),'icon':_0x199321(0x1564)},{'name':'ai','icon':_0x199321(0x1f23)}],_0x432925[_0x199321(0x10eb)]=[{'name':_0x199321(0x268a),'icon':_0x199321(0x4d5),'restart':!![],'label':_0x199321(0x5e5),'enabled':_0x199321(0x227c)},{'name':_0x199321(0xecf),'icon':'icon-dots-horizontal','restart':![],'label':_0x199321(0x10eb),'enabled':_0x199321(0xf52)}],_0x432925[_0x199321(0xa0b)]=[{'name':'update','icon':_0x199321(0x1982)}],_0x24caed['user'][_0x199321(0x896)]({'fields':'id','role':_0x199321(0x11ae),'online':!![]})[_0x199321(0x15e7)][_0x199321(0x64a)](function(_0x2ab275){const _0x3b0f54=_0x199321;return _0x432925['agents']=_0x2ab275&&_0x2ab275[_0x3b0f54(0xb90)]?_0x2ab275['count']:0x0,_0x24caed[_0x3b0f54(0x2e8)][_0x3b0f54(0x896)]({'fields':'id','role':_0x3b0f54(0x6c4)})[_0x3b0f54(0x15e7)];})['then'](function(_0x2358ff){const _0x2677a4=_0x199321;return _0x432925[_0x2677a4(0xff5)]=_0x2358ff&&_0x2358ff[_0x2677a4(0xb90)]?_0x2358ff['count']:0x0,_0x24caed[_0x2677a4(0x2e8)][_0x2677a4(0x896)]({'fields':'id','role':_0x2677a4(0x1782)})[_0x2677a4(0x15e7)];})[_0x199321(0x64a)](function(_0x4128af){const _0x449997=_0x199321;_0x432925['telephones']=_0x4128af&&_0x4128af[_0x449997(0xb90)]?_0x4128af[_0x449997(0xb90)]:0x0;})[_0x199321(0x20cd)](function(_0x588d58){console['log'](_0x588d58);});function _0x525111(_0x4f177a){const _0x4ab30d=_0x199321;_0x48cd13[_0x4ab30d(0xa60)]({'controller':_0x4ab30d(0x2637),'controllerAs':'vm','templateUrl':_0x2ba9cf,'parent':angular[_0x4ab30d(0x1f81)](_0x424383['body']),'targetEvent':_0x4f177a,'clickOutsideToClose':!![],'locals':{'license':_0x52ae0c}});}function _0x5b8f15(_0xae15e6){const _0x3c825d=_0x199321;_0x48cd13[_0x3c825d(0xa60)]({'controller':_0x3c825d(0x1845),'controllerAs':'vm','templateUrl':_0x7e2f56,'parent':angular[_0x3c825d(0x1f81)](_0x424383[_0x3c825d(0xb49)]),'targetEvent':_0xae15e6,'clickOutsideToClose':!![],'locals':{'license':_0x52ae0c,'channels':_0x432925['channels'],'modules':_0x432925['modules'],'addons':_0x432925[_0x3c825d(0x4be)],'sessions':_0x432925[_0x3c825d(0x10eb)],'others':_0x432925['others']}});}function _0x1d5745(){const _0x2fdb68=_0x199321;_0x3ab10f['go'](_0x2fdb68(0xaad),{'tab':0x1});}_0x432925[_0x199321(0x27f8)]=_0x5b8f15,_0x432925['updateLicense']=_0x525111,_0x432925[_0x199321(0x1640)]=_0x1d5745;}const _0x3e20a4=_0x1cebdb;;_0x322af5[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x680),_0x49a1e3(0x1947),_0x49a1e3(0x5e5),_0x49a1e3(0x1049),_0x49a1e3(0x4be),_0x49a1e3(0x10eb),_0x49a1e3(0xa0b),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x298c)];function _0x322af5(_0x193737,_0xb83279,_0x37a8ba,_0x1bebc7,_0x4be079,_0x3c732d,_0x395baa,_0x5422a7,_0x158809,_0x2bd428,_0x14d41c){const _0x442ec8=_0x49a1e3,_0x4b885c=this;_0x4b885c[_0x442ec8(0xbae)]=[],_0x4b885c[_0x442ec8(0x2e8)]=_0x2bd428[_0x442ec8(0x808)](),_0x4b885c[_0x442ec8(0x1947)]=angular[_0x442ec8(0x289e)](_0x37a8ba),_0x4b885c['channels']=_0x1bebc7,_0x4b885c['modules']=_0x4be079,_0x4b885c[_0x442ec8(0x4be)]=_0x3c732d,_0x4b885c[_0x442ec8(0x10eb)]=_0x395baa,_0x4b885c[_0x442ec8(0xa0b)]=_0x5422a7,_0x4b885c['license'][_0x442ec8(0x2494)]=_0x4b885c[_0x442ec8(0x2e8)][_0x442ec8(0x15c)],_0x4b885c[_0x442ec8(0x1947)][_0x442ec8(0xd47)]=_0x4b885c[_0x442ec8(0x2e8)][_0x442ec8(0xd47)],_0x4b885c[_0x442ec8(0x22c2)]=_0x115445,_0x4b885c[_0x442ec8(0x16cb)]=_0x5069da;function _0x115445(){const _0x2197b2=_0x442ec8;_0x4b885c[_0x2197b2(0xbae)]=[],_0x4b885c[_0x2197b2(0x185d)]=_0x2197b2(0x74d);for(const _0x377127 in _0x4b885c[_0x2197b2(0x1947)]){typeof _0x4b885c['license'][_0x377127]!==_0x2197b2(0x19a1)&&!_0x28c606()[_0x2197b2(0x68a)]([_0x2197b2(0x15e7),_0x2197b2(0x19ba)],_0x377127)&&(_0x37a8ba[_0x377127]===_0x4b885c[_0x2197b2(0x1947)][_0x377127]?_0x4b885c[_0x2197b2(0x185d)]+='|'+_0x377127+'|'+(_0x37a8ba[_0x377127]!==undefined?_0x37a8ba[_0x377127]:'')+'|'+_0x4b885c[_0x2197b2(0x1947)][_0x377127]+'|\x0a':_0x4b885c['table']+='|'+_0x377127+_0x2197b2(0x213a)+(_0x37a8ba[_0x377127]!==undefined?_0x37a8ba[_0x377127]:'')+_0x2197b2(0x240c)+_0x4b885c[_0x2197b2(0x1947)][_0x377127]+_0x2197b2(0x1dae));}_0x158809[_0x2197b2(0x207d)][_0x2197b2(0x2479)]({'key':_0x2197b2(0x1d3c),'summary':_0x2197b2(0x1f0),'description':_0x4b885c['table'],'issuetype':'License\x20Request'})[_0x2197b2(0x15e7)][_0x2197b2(0x64a)](function(){const _0x3c22b7=_0x2197b2;_0xb83279[_0x3c22b7(0x1339)]({'title':_0x3c22b7(0x1ee),'msg':_0x14d41c[_0x3c22b7(0x2292)](_0x3c22b7(0x15f4)),'timeout':0x3a98}),_0x5069da();})['catch'](function(_0x142aeb){const _0x2f604c=_0x2197b2;console[_0x2f604c(0x1bd0)](_0x142aeb),_0x4b885c[_0x2f604c(0xbae)]=[{'message':_0x14d41c['instant'](_0x2f604c(0x21ec)),'type':_0x2f604c(0x1b23)}];});}function _0x5069da(){_0x193737['hide']();}}const _0x4473e5=_0x322af5;;_0x541ef7[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'toasty',_0x49a1e3(0x1947),_0x49a1e3(0xa19)];function _0x541ef7(_0x3f6202,_0xa8c53a,_0x4c469f,_0x181070){const _0x14d7e4=_0x49a1e3,_0x35be8b=this;_0x35be8b[_0x14d7e4(0xbae)]=[],_0x35be8b[_0x14d7e4(0x1947)]=angular['copy'](_0x4c469f),_0x35be8b[_0x14d7e4(0x2304)],_0x35be8b['updateLicense']=_0x45c082,_0x35be8b[_0x14d7e4(0x16cb)]=_0x51fc21;function _0x45c082(){const _0x11996a=_0x14d7e4;return _0x181070[_0x11996a(0x1947)][_0x11996a(0x2603)]({'id':0x1,'key':_0x35be8b[_0x11996a(0x2304)]})[_0x11996a(0x15e7)][_0x11996a(0x64a)](function(_0x39bd07){const _0x2001b1=_0x11996a;_0x39bd07&&(_0x39bd07[_0x2001b1(0x11c3)]?_0xa8c53a[_0x2001b1(0x1bd0)]({'title':'License\x20update\x20failed!','msg':_0x2001b1(0xceb)}):_0xa8c53a[_0x2001b1(0x1339)]({'title':_0x2001b1(0xd73),'msg':_0x2001b1(0x6a2)}));})[_0x11996a(0x20cd)](function(_0x42bd98){const _0xb09ef5=_0x11996a;_0xa8c53a[_0xb09ef5(0x1bd0)]({'title':_0x42bd98['status']?_0xb09ef5(0x575)+_0x42bd98['status']+_0xb09ef5(0x21db)+_0x42bd98['statusText']:_0xb09ef5(0x1a4e),'msg':_0x42bd98[_0xb09ef5(0x1c52)]?JSON[_0xb09ef5(0x2317)](_0x42bd98['data']):_0x42bd98[_0xb09ef5(0x2915)]()});});}function _0x51fc21(){const _0x32828a=_0x14d7e4;_0x3f6202[_0x32828a(0x268e)]();}}const _0xa80b1=_0x541ef7;;_0x24fb8d[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad)];function _0x24fb8d(_0x15fddb){const _0x264365=_0x49a1e3;_0x15fddb[_0x264365(0x14f2)]('app.settings.license',{'url':_0x264365(0x1dd7),'views':{'content@app':{'templateUrl':_0x37aea0,'controller':_0x264365(0x112f)}},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x264365(0x1c89)});}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x27a2),[])[_0x49a1e3(0x3d3)](_0x24fb8d)['controller'](_0x49a1e3(0x9d1),_0x3e20a4)[_0x49a1e3(0x38e)](_0x49a1e3(0x1845),_0x4473e5)[_0x49a1e3(0x38e)]('UpdateLicenseDialogController',_0xa80b1);;const _0x55470b=_0x2e4a48['p']+'src/js/modules/main/apps/settings/views/system/system.html/system.html';;_0x4ca717[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$interval',_0x49a1e3(0x212a),_0x49a1e3(0x77f),'system','processes',_0x49a1e3(0x680),_0x49a1e3(0xa19)];function _0x4ca717(_0xa2e6a6,_0x5e7868,_0x4c0daf,_0x55cc94,_0x3e34e7,_0x530c63,_0x2643bb,_0x560322){const _0x1c2180=_0x49a1e3,_0x5d5a88=this;let _0x179f52=null;_0x5d5a88[_0x1c2180(0x1f06)]=_0x3e34e7||{},_0x5d5a88[_0x1c2180(0x2ed)]=_0x530c63?_0x530c63[_0x1c2180(0x28b8)]:[],_0x5d5a88['processLimit']=0x7,_0x5d5a88[_0x1c2180(0x197c)]=_0x55cc94[_0x1c2180(0x1b48)][_0x1c2180(0x1222)]||0x0,_0x5d5a88[_0x1c2180(0x19af)]=_0x4a57aa,_0x5d5a88['getProcesses']=_0x194bc9,_0x5d5a88[_0x1c2180(0x225e)]=_0x4b3b1b,_0x5d5a88[_0x1c2180(0x318)]=_0x2d954f;function _0x4b3b1b(){const _0x4e95a9=_0x1c2180;_0x5e7868[_0x4e95a9(0x101a)](_0x179f52),_0x179f52=null;}function _0x2d954f(_0x4b43c8,_0x3e98f1,_0x9af385){const _0x5c7061=_0x1c2180,_0x4e7fb3=_0x4c0daf[_0x5c7061(0x856)]()['title'](_0x5c7061(0x375)+_0x3e98f1+'?')[_0x5c7061(0x250d)](_0x5c7061(0x221d)+_0x9af385[_0x5c7061(0xa3c)]())['ariaLabel']('Lucky\x20day')['targetEvent'](_0x4b43c8)['ok']('Ok')[_0x5c7061(0x101a)](_0x5c7061(0x1dc6));_0x4c0daf[_0x5c7061(0xa60)](_0x4e7fb3)[_0x5c7061(0x64a)](function(){const _0x520b91=_0x5c7061;return _0x560322[_0x520b91(0x24ef)][_0x520b91(0x2603)]({'id':_0x3e98f1,'status':_0x9af385});})['then'](function(){const _0x45af49=_0x5c7061;_0x5e7868(_0x5d5a88[_0x45af49(0x25c3)],0x3e8,0x1);})['then'](function(){const _0x4666ee=_0x5c7061;_0x2643bb[_0x4666ee(0x1339)]({'title':_0x4666ee(0x210e),'msg':_0x4666ee(0x5eb)+_0x9af385});});}function _0x4a57aa(){const _0x29e101=_0x1c2180;return _0x560322['system']['get']()[_0x29e101(0x15e7)]['then'](function(_0x75f650){const _0x95c4b1=_0x29e101;_0x28c606()[_0x95c4b1(0x14fe)](_0x5d5a88[_0x95c4b1(0x1f06)],_0x75f650);})['catch'](_0x5d5a88['cancelInterval']);}function _0x194bc9(){const _0x18ba3c=_0x1c2180;return _0x560322['pm2'][_0x18ba3c(0x896)]()[_0x18ba3c(0x15e7)]['then'](function(_0x401ae1){const _0x3f1c90=_0x18ba3c;_0x28c606()['merge'](_0x5d5a88[_0x3f1c90(0x2ed)],_0x401ae1?_0x401ae1[_0x3f1c90(0x28b8)]:[]);})[_0x18ba3c(0x20cd)](_0x5d5a88[_0x18ba3c(0x225e)]);}_0x179f52=_0x5e7868(_0x5d5a88[_0x1c2180(0x19af)],0x1388),_0xa2e6a6[_0x1c2180(0x8c7)](_0x1c2180(0xf28),function(){_0x5d5a88['cancelInterval']();});}const _0x4021c3=_0x4ca717;;_0x9e2feb[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad)];function _0x9e2feb(_0x3949d0){const _0x59fc56=_0x49a1e3;_0x3949d0['state'](_0x59fc56(0xaad),{'url':_0x59fc56(0x681),'views':{'content@app':{'templateUrl':_0x55470b,'controller':'SystemController\x20as\x20vm'}},'resolve':{'system':[_0x59fc56(0x107c),function(_0x28aa3b){return _0x28aa3b['resolve']('system@get');}],'processes':['apiResolver',function(_0x90af4c){const _0x1e1136=_0x59fc56;return _0x90af4c[_0x1e1136(0x1268)](_0x1e1136(0x1fac));}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x59fc56(0x1c89)});}angular[_0x49a1e3(0x20d2)]('app.settings.system',[])[_0x49a1e3(0x3d3)](_0x9e2feb)['controller'](_0x49a1e3(0x22f6),_0x4021c3);;const _0x42718=_0x2e4a48['p']+'src/js/modules/main/apps/settings/views/updates/updates.html/updates.html';;_0x5d4f09[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),_0x49a1e3(0x1239),_0x49a1e3(0x1fe7),_0x49a1e3(0x20d4),_0x49a1e3(0xa19)];function _0x5d4f09(_0x54a67e,_0x119c4d,_0x54c9a8,_0x545a68,_0x4de43e){const _0x593497=_0x49a1e3,_0x4422de=this;_0x4422de[_0x593497(0x2021)]=_0x593497(0xd32),_0x4422de[_0x593497(0xce1)]=0x0,_0x4422de[_0x593497(0xc5a)]=!![],_0x4422de['output']='Waiting...',_0x4422de[_0x593497(0x1339)]=!![],_0x4422de[_0x593497(0xcfd)]=_0x119c4d(function(){const _0x114299=_0x593497;_0x4422de[_0x114299(0xce1)]<0x5a&&(_0x4422de[_0x114299(0xce1)]+=0x1);},0x3e8),_0x4de43e['version'][_0x593497(0x446)]()['$promise'][_0x593497(0x64a)](function(_0x242dab){const _0x2cf1e1=_0x593497;return _0x4422de['output']=_0x242dab[_0x2cf1e1(0x2c3)]+'...',_0x4de43e[_0x2cf1e1(0x12a3)][_0x2cf1e1(0x2839)]()['$promise'];})[_0x593497(0x64a)](function(_0x2cf756){const _0x2f47fc=_0x593497;return _0x4422de[_0x2f47fc(0x2c3)]=_0x2cf756[_0x2f47fc(0x2c3)]+_0x2f47fc(0x1816),_0x4de43e['version'][_0x2f47fc(0xa68)]()[_0x2f47fc(0x15e7)];})['then'](function(_0x209b8a){const _0x379a33=_0x593497;return _0x4422de[_0x379a33(0x2c3)]=_0x209b8a['output']+_0x379a33(0x1816),_0x4de43e[_0x379a33(0x12a3)][_0x379a33(0x18de)]()[_0x379a33(0x15e7)];})[_0x593497(0x64a)](function(_0x2a1b56){const _0x596dd9=_0x593497;return _0x4422de[_0x596dd9(0x2c3)]=_0x2a1b56[_0x596dd9(0x2c3)]+'...',_0x4de43e['version'][_0x596dd9(0xe39)]()[_0x596dd9(0x15e7)];})['then'](function(){const _0x51b452=_0x593497;_0x4422de[_0x51b452(0x2c3)]=_0x51b452(0x5d0),_0x545a68(function(){const _0x4ef190=_0x51b452;_0x4422de[_0x4ef190(0x22a2)]();},0x7530);})[_0x593497(0x20cd)](function(_0x2a92e4){const _0x5cf6a5=_0x593497;_0x4422de['success']=![],_0x4422de[_0x5cf6a5(0x22a2)](),_0x4422de[_0x5cf6a5(0x2c3)]=JSON[_0x5cf6a5(0x2317)](_0x2a92e4);});function _0x39e2e5(){const _0x5a369e=_0x593497;angular[_0x5a369e(0x16ab)](_0x4422de['interval'])&&(_0x119c4d[_0x5a369e(0x101a)](_0x4422de['interval']),_0x4422de[_0x5a369e(0xcfd)]=undefined),_0x4422de['progress']=0x64,_0x4422de[_0x5a369e(0xc5a)]=![];}function _0x25583e(){const _0x51b3a5=_0x593497;_0x54c9a8['location'][_0x51b3a5(0x19f5)]();}function _0x141e9f(){const _0x24639f=_0x593497;_0x54a67e[_0x24639f(0x268e)]();}_0x4422de['closeDialog']=_0x141e9f,_0x4422de['reload']=_0x25583e,_0x4422de[_0x593497(0x22a2)]=_0x39e2e5;}const _0x2b8983=_0x5d4f09;;const _0x12affb=_0x2e4a48['p']+_0x49a1e3(0x1123);;_0x2543ae[_0x49a1e3(0x1e73)]=['$mdDialog',_0x49a1e3(0x1239),_0x49a1e3(0x1373),_0x49a1e3(0x12a3)];function _0x2543ae(_0x25d53c,_0x2676ff,_0x5c61bf,_0x54589a){const _0x342914=_0x49a1e3,_0x275f03=this;_0x275f03[_0x342914(0x12a3)]=_0x54589a||{};function _0x882c77(_0x381de7){const _0x1e72c9=_0x342914,_0x3765fc=_0x25d53c[_0x1e72c9(0x856)]()[_0x1e72c9(0x2021)](_0x1e72c9(0x1bce))[_0x1e72c9(0x33a)](_0x1e72c9(0x15cc))['ariaLabel']('')['targetEvent'](_0x381de7)[_0x1e72c9(0x1945)](!![])[_0x1e72c9(0x2854)](angular[_0x1e72c9(0x1f81)](_0x5c61bf[_0x1e72c9(0xb49)]))['ok'](_0x1e72c9(0xf19))[_0x1e72c9(0x101a)](_0x1e72c9(0xf85));_0x25d53c['show'](_0x3765fc)[_0x1e72c9(0x64a)](function(){const _0xc4e60e=_0x1e72c9;_0x25d53c['show']({'controller':_0xc4e60e(0x17a),'controllerAs':'vm','templateUrl':_0x12affb,'parent':angular[_0xc4e60e(0x1f81)](_0x5c61bf['body']),'targetEvent':_0x381de7,'clickOutsideToClose':![]});});}_0x275f03[_0x342914(0x468)]=_0x882c77;}const _0x234301=_0x2543ae;;_0x22b23c['$inject']=[_0x49a1e3(0x20ad)];function _0x22b23c(_0x1180ef){const _0x56c0e0=_0x49a1e3;_0x1180ef[_0x56c0e0(0x14f2)]('app.settings.updates',{'url':_0x56c0e0(0x476),'views':{'content@app':{'templateUrl':_0x42718,'controller':_0x56c0e0(0x1bca)}},'resolve':{'version':[_0x56c0e0(0x107c),function(_0x4b5c53){const _0x11e93a=_0x56c0e0;return _0x4b5c53[_0x11e93a(0x1268)]('version@get',{'latest':!![]});}],'userProfile':[_0x56c0e0(0x107c),_0x56c0e0(0xdcf),function(_0x257cbf,_0x5d7c5d){const _0x24bac=_0x56c0e0;return _0x257cbf[_0x24bac(0x1268)](_0x24bac(0x6e3),{'fields':'id,name,crudPermissions','id':_0x5d7c5d[_0x24bac(0x808)]()[_0x24bac(0x21ac)]});}],'userProfileSection':[_0x56c0e0(0x107c),_0x56c0e0(0xdcf),function(_0x4cd5f8,_0x704b82){const _0x44a8b9=_0x56c0e0;return _0x4cd5f8[_0x44a8b9(0x1268)](_0x44a8b9(0x2681),{'fields':_0x44a8b9(0x527),'userProfileId':_0x704b82[_0x44a8b9(0x808)]()[_0x44a8b9(0x21ac)],'sectionId':0x578});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x56c0e0(0x1c89)});}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x18e4),[])['config'](_0x22b23c)[_0x49a1e3(0x38e)](_0x49a1e3(0x17a),_0x2b8983)[_0x49a1e3(0x38e)](_0x49a1e3(0xfdc),_0x234301);;const _0x395814=_0x2e4a48['p']+_0x49a1e3(0x1787);;const _0x327dbb=_0x2e4a48['p']+_0x49a1e3(0x218a);;const _0x185940=_0x2e4a48['p']+_0x49a1e3(0xb76);;const _0x4fa74d=_0x2e4a48['p']+_0x49a1e3(0x28cf);;const _0xd32fd3=_0x2e4a48['p']+_0x49a1e3(0x357);;const _0x5cd40b=_0x2e4a48['p']+'src/js/modules/main/apps/settings/views/cloudProviders/create/dialog.html/dialog.html';;_0x313a00[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x20d4),'$translate','cloudProviders',_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x313a00(_0x1e774b,_0xd80838,_0x498db1,_0x2c2d62,_0x42692f,_0x1fbe9b,_0x27bdf3,_0x17eafe,_0xca6ca1,_0x253c0f,_0x58f39c,_0x4c0811,_0x2d7610,_0x3b04c7,_0x55667b){const _0x5811ee=_0x49a1e3,_0x4e7d15=this;_0x4e7d15['license']=_0x3b04c7,_0x4e7d15[_0x5811ee(0x28d6)]=_0x55667b,_0x4e7d15['currentUser']=_0x2d7610['getCurrentUser'](),_0x4e7d15[_0x5811ee(0x730)]=_0xca6ca1||{'count':0x0,'rows':[]},_0x4e7d15[_0x5811ee(0x185d)]=_0x5811ee(0x730),_0x4e7d15[_0x5811ee(0x300)]='',_0x4e7d15[_0x5811ee(0x2748)]=null,_0x4e7d15[_0x5811ee(0x1c7d)]=[],_0x4e7d15[_0x5811ee(0x289a)]={'fields':_0x5811ee(0x1b05),'sort':_0x5811ee(0x260c),'limit':0xa,'page':0x1},_0x4e7d15[_0x5811ee(0x15ba)]=_0x28c606()[_0x5811ee(0x161e)]([{'option':_0x5811ee(0x23d2),'value':_0x5811ee(0x177b)}],function(_0x130396){return _0x28c606()['replace'](_0x130396['value'],new RegExp('\x27','g'),'');}),_0x4e7d15['editdialog']=_0xee6412,_0x4e7d15['deleteconfirm']=_0x907e82,_0x4e7d15[_0x5811ee(0x1339)]=_0x53fdb3,_0x4e7d15[_0x5811ee(0x1221)]=_0x3d3f28,_0x4e7d15[_0x5811ee(0x1ee8)]=_0x39acdf,_0x4e7d15[_0x5811ee(0x3e9)]=_0x6d3b3f,_0x4e7d15[_0x5811ee(0x2782)]=_0x5579ee,_0x4e7d15[_0x5811ee(0x265b)]=_0x5da4d3,_0x4e7d15[_0x5811ee(0x937)]=_0x158146,_0x4e7d15[_0x5811ee(0xa24)]=_0x513dbd;function _0xee6412(_0x374df2,_0x217946){const _0x125f57=_0x5811ee;_0x42692f[_0x125f57(0xa60)]({'controller':'CreateOrEditCloudProviderDialogController','controllerAs':'vm','templateUrl':_0x5cd40b,'parent':angular[_0x125f57(0x1f81)](_0x1fbe9b[_0x125f57(0xb49)]),'targetEvent':_0x217946,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0x374df2,'cloudProviders':_0x4e7d15[_0x125f57(0x730)]['rows'],'license':_0x4e7d15[_0x125f57(0x1947)],'setting':null,'crudPermissions':_0x4e7d15[_0x125f57(0x402)]}});}function _0x907e82(_0x573ede,_0x3aec54){const _0x40bd4a=_0x5811ee,_0x35ad37=_0x42692f[_0x40bd4a(0x856)]()['title'](_0x40bd4a(0x1231)+_0x28c606()[_0x40bd4a(0xc01)](_0x40bd4a(0x12e5))+'?')[_0x40bd4a(0x33a)](_0x40bd4a(0x50b)+(_0x573ede['name']||_0x40bd4a(0x12e5))+_0x40bd4a(0x26d0)+_0x40bd4a(0x4b8))[_0x40bd4a(0x213e)](_0x40bd4a(0x2717))['targetEvent'](_0x3aec54)['ok']('OK')[_0x40bd4a(0x101a)]('CANCEL');_0x42692f[_0x40bd4a(0xa60)](_0x35ad37)[_0x40bd4a(0x64a)](function(){_0x6d3b3f(_0x573ede);},function(){const _0xe6a3ce=_0x40bd4a;console[_0xe6a3ce(0x9b4)](_0xe6a3ce(0x18fd));});}let _0x273f14=!![],_0x10e3eb=0x1;_0x1e774b['$watch'](_0x5811ee(0x1cb9),function(_0x320416,_0x30ed7a){const _0x38f950=_0x5811ee;_0x273f14?_0x27bdf3(function(){_0x273f14=![];}):(!_0x30ed7a&&(_0x10e3eb=_0x4e7d15[_0x38f950(0x289a)][_0x38f950(0xc72)]),_0x320416!==_0x30ed7a&&(_0x4e7d15[_0x38f950(0x289a)][_0x38f950(0xc72)]=0x1),!_0x320416&&(_0x4e7d15[_0x38f950(0x289a)][_0x38f950(0xc72)]=_0x10e3eb),_0x4e7d15[_0x38f950(0x1221)]());});function _0x53fdb3(_0xf410d5){const _0x548579=_0x5811ee;_0x4e7d15[_0x548579(0x730)]=_0xf410d5||{'count':0x0,'rows':[]};}function _0x3d3f28(){const _0x422bc9=_0x5811ee;_0x4e7d15[_0x422bc9(0x289a)]['offset']=(_0x4e7d15[_0x422bc9(0x289a)][_0x422bc9(0xc72)]-0x1)*_0x4e7d15['query'][_0x422bc9(0x25bb)],_0x2d7610['hasRole'](_0x422bc9(0x333))?_0x4e7d15[_0x422bc9(0x1713)]=_0x253c0f[_0x422bc9(0x12e5)]['get'](_0x4e7d15['query'],_0x53fdb3)[_0x422bc9(0x15e7)]:(_0x4e7d15[_0x422bc9(0x289a)]['id']=_0x4e7d15['userProfile']['id'],_0x4e7d15[_0x422bc9(0x289a)]['section']=_0x422bc9(0x250),_0x4e7d15[_0x422bc9(0x1713)]=_0x253c0f[_0x422bc9(0x16a8)][_0x422bc9(0x2565)](_0x4e7d15[_0x422bc9(0x289a)],_0x53fdb3)['$promise']);}function _0x39acdf(_0x215ef9,_0xe3ad67){const _0x248430=_0x5811ee;_0x42692f[_0x248430(0xa60)]({'controller':_0x248430(0x19a),'controllerAs':'vm','templateUrl':_0x5cd40b,'parent':angular[_0x248430(0x1f81)](_0x1fbe9b[_0x248430(0xb49)]),'targetEvent':_0x215ef9,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0xe3ad67,'cloudProviders':_0x4e7d15[_0x248430(0x730)][_0x248430(0x28b8)],'license':_0x4e7d15[_0x248430(0x1947)],'setting':_0x4e7d15['setting'],'crudPermissions':_0x4e7d15['crudPermissions']}});}function _0x6d3b3f(_0x1f2342){const _0x4080f9=_0x5811ee;_0x253c0f['cloudProvider'][_0x4080f9(0xabd)]({'id':_0x1f2342['id']})[_0x4080f9(0x15e7)][_0x4080f9(0x64a)](function(){const _0x574369=_0x4080f9;_0x28c606()[_0x574369(0x21c7)](_0x4e7d15[_0x574369(0x730)][_0x574369(0x28b8)],{'id':_0x1f2342['id']}),_0x4e7d15[_0x574369(0x730)][_0x574369(0xb90)]-=0x1,!_0x4e7d15[_0x574369(0x730)][_0x574369(0x28b8)]['length']&&_0x4e7d15[_0x574369(0x1221)](),_0x4c0811[_0x574369(0x1339)]({'title':_0x28c606()[_0x574369(0xc01)](_0x574369(0x1c56))+'\x20deleted!','msg':_0x1f2342[_0x574369(0x2494)]?_0x1f2342[_0x574369(0x2494)]+_0x574369(0x1fa8):''});})[_0x4080f9(0x20cd)](function(_0x40900f){const _0x27595a=_0x4080f9;if(_0x40900f[_0x27595a(0x1c52)]&&_0x40900f[_0x27595a(0x1c52)]['errors']&&_0x40900f[_0x27595a(0x1c52)][_0x27595a(0xbae)][_0x27595a(0x1b9e)]){_0x4e7d15[_0x27595a(0xbae)]=_0x40900f[_0x27595a(0x1c52)][_0x27595a(0xbae)]||[{'message':_0x40900f[_0x27595a(0x2915)](),'type':'SYSTEM:DELETEcloudProvider'}];for(let _0x21bd5d=0x0;_0x21bd5d<_0x40900f[_0x27595a(0x1c52)][_0x27595a(0xbae)][_0x27595a(0x1b9e)];_0x21bd5d++){_0x4c0811[_0x27595a(0x1bd0)]({'title':_0x40900f[_0x27595a(0x1c52)][_0x27595a(0xbae)][_0x21bd5d]['type'],'msg':_0x40900f[_0x27595a(0x1c52)][_0x27595a(0xbae)][_0x21bd5d][_0x27595a(0x18ca)]});}}else _0x4c0811[_0x27595a(0x1bd0)]({'title':_0x40900f[_0x27595a(0x10b3)]?_0x27595a(0x575)+_0x40900f['status']+_0x27595a(0x21db)+_0x40900f[_0x27595a(0x2115)]:_0x27595a(0x1469),'msg':_0x40900f[_0x27595a(0x1c52)]?JSON[_0x27595a(0x2317)](_0x40900f['data'][_0x27595a(0x18ca)]):_0x40900f['message']||_0x40900f[_0x27595a(0x2915)]()});});}function _0x5579ee(){const _0x1da3ab=_0x5811ee,_0x5a0e38=angular[_0x1da3ab(0x289e)](_0x4e7d15[_0x1da3ab(0x1c7d)]);return _0x4e7d15[_0x1da3ab(0x1c7d)]=[],_0x5a0e38;}function _0x5da4d3(_0x4a590f){const _0x352d33=_0x5811ee,_0x538f7f=_0x42692f['confirm']()['title'](_0x352d33(0xfff))[_0x352d33(0x33a)](''+_0x4e7d15[_0x352d33(0x1c7d)][_0x352d33(0x1b9e)]+_0x352d33(0x163e)+_0x352d33(0x4b8))['ariaLabel']('delete\x20CloudProviders')[_0x352d33(0x2283)](_0x4a590f)['ok']('OK')[_0x352d33(0x101a)](_0x352d33(0x18fd));_0x42692f[_0x352d33(0xa60)](_0x538f7f)['then'](function(){const _0x33bd25=_0x352d33;_0x4e7d15[_0x33bd25(0x1c7d)][_0x33bd25(0x1397)](function(_0x2d8fe5){_0x6d3b3f(_0x2d8fe5);}),_0x4e7d15[_0x33bd25(0x1c7d)]=[];});}function _0x158146(){const _0x393867=_0x5811ee;_0x4e7d15[_0x393867(0x1c7d)]=[];}function _0x513dbd(){const _0x1d9816=_0x5811ee;_0x4e7d15[_0x1d9816(0x1c7d)]=_0x4e7d15['cloudProviders']['rows'];}}const _0x5929b8=_0x313a00;;_0x8f8e4f[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x730),_0x49a1e3(0x12e5),_0x49a1e3(0xa19),'Auth','license',_0x49a1e3(0x28d6)];function _0x8f8e4f(_0xec85be,_0x3a3c,_0x220a97,_0x19cafa,_0x4c57f2,_0x17a1f2,_0x420164,_0x2fed6f,_0x2b1028,_0x3dcf01,_0x50a9af,_0x120501,_0xc1eb50){const _0x333f71=_0x49a1e3,_0x3986fe=this;_0x3986fe['currentUser']=_0x50a9af[_0x333f71(0x808)](),_0x3986fe[_0x333f71(0xbae)]=[],_0x3986fe[_0x333f71(0x28d6)]=_0xc1eb50,_0x3986fe[_0x333f71(0x1947)]=_0x120501,_0x3986fe[_0x333f71(0x6c2)]={},_0x3986fe[_0x333f71(0xccc)]=_0x3986fe[_0x333f71(0x28d6)]&&_0x3986fe[_0x333f71(0x28d6)][_0x333f71(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3986fe[_0x333f71(0x2021)]=_0x333f71(0x55c),_0x3986fe['cloudProvider']=angular[_0x333f71(0x289e)](_0x2b1028),_0x3986fe[_0x333f71(0x730)]=_0x2fed6f,_0x3986fe[_0x333f71(0x8ea)]=![];!_0x3986fe['cloudProvider']&&(_0x3986fe[_0x333f71(0x12e5)]={},_0x3986fe[_0x333f71(0x2021)]='SETTINGS.NEW_CLOUDPROVIDER',_0x3986fe[_0x333f71(0x8ea)]=!![]);_0x3986fe[_0x333f71(0xa23)]=_0x375d99,_0x3986fe[_0x333f71(0xa7f)]=_0x786696,_0x3986fe[_0x333f71(0x3e9)]=_0x5e2c2b,_0x3986fe[_0x333f71(0x1605)]=_0x439945,_0x3986fe[_0x333f71(0x16cb)]=_0x9da180;function _0x375d99(){const _0x30f965=_0x333f71;_0x3986fe[_0x30f965(0xbae)]=[],_0x3dcf01['cloudProvider'][_0x30f965(0x2479)](_0x3986fe['cloudProvider'])[_0x30f965(0x15e7)][_0x30f965(0x64a)](function(_0x512bab){const _0x47c4fa=_0x30f965;_0x3986fe[_0x47c4fa(0x730)][_0x47c4fa(0x1891)](_0x512bab[_0x47c4fa(0x14f8)]()),_0x420164['success']({'title':_0x47c4fa(0x14d9),'msg':_0x3986fe['cloudProvider'][_0x47c4fa(0x2494)]?_0x3986fe[_0x47c4fa(0x12e5)][_0x47c4fa(0x2494)]+'\x20has\x20been\x20created!':''}),_0x9da180(_0x512bab);})[_0x30f965(0x20cd)](function(_0x423da9){const _0x8ab54f=_0x30f965;if(_0x423da9[_0x8ab54f(0x1c52)]&&_0x423da9['data'][_0x8ab54f(0xbae)]&&_0x423da9[_0x8ab54f(0x1c52)][_0x8ab54f(0xbae)][_0x8ab54f(0x1b9e)]){_0x3986fe[_0x8ab54f(0xbae)]=_0x423da9[_0x8ab54f(0x1c52)][_0x8ab54f(0xbae)]||[{'message':_0x423da9[_0x8ab54f(0x2915)](),'type':_0x8ab54f(0x15db)}];for(let _0x1c83ee=0x0;_0x1c83ee<_0x423da9[_0x8ab54f(0x1c52)][_0x8ab54f(0xbae)][_0x8ab54f(0x1b9e)];_0x1c83ee+=0x1){_0x420164[_0x8ab54f(0x1bd0)]({'title':_0x423da9[_0x8ab54f(0x1c52)][_0x8ab54f(0xbae)][_0x1c83ee]['type'],'msg':_0x423da9[_0x8ab54f(0x1c52)][_0x8ab54f(0xbae)][_0x1c83ee][_0x8ab54f(0x18ca)]});}}else _0x420164['error']({'title':_0x423da9['status']?'API:'+_0x423da9['status']+'\x20-\x20'+_0x423da9[_0x8ab54f(0x2115)]:_0x8ab54f(0x15db),'msg':_0x423da9['data']?JSON[_0x8ab54f(0x2317)](_0x423da9[_0x8ab54f(0x1c52)][_0x8ab54f(0x18ca)]):_0x423da9[_0x8ab54f(0x2915)]()});});}function _0x786696(){const _0x178397=_0x333f71;_0x3986fe[_0x178397(0xbae)]=[],_0x3dcf01[_0x178397(0x12e5)][_0x178397(0x2603)]({'id':_0x3986fe[_0x178397(0x12e5)]['id']},_0x3986fe['cloudProvider'])[_0x178397(0x15e7)][_0x178397(0x64a)](function(_0x4484df){const _0x53fd7d=_0x178397,_0x5d604e=_0x28c606()[_0x53fd7d(0x27bc)](_0x3986fe[_0x53fd7d(0x730)],{'id':_0x4484df['id']});_0x5d604e&&_0x28c606()[_0x53fd7d(0x14fe)](_0x5d604e,_0x28c606()[_0x53fd7d(0x27bb)](_0x4484df[_0x53fd7d(0x14f8)](),_0x28c606()[_0x53fd7d(0x1ec6)](_0x5d604e))),_0x420164['success']({'title':_0x53fd7d(0x1499),'msg':_0x3986fe[_0x53fd7d(0x12e5)]['name']?_0x3986fe[_0x53fd7d(0x12e5)][_0x53fd7d(0x2494)]+_0x53fd7d(0x271):''}),_0x9da180(_0x4484df);})[_0x178397(0x20cd)](function(_0x282d2c){const _0x284766=_0x178397;if(_0x282d2c[_0x284766(0x1c52)]&&_0x282d2c[_0x284766(0x1c52)][_0x284766(0xbae)]&&_0x282d2c[_0x284766(0x1c52)][_0x284766(0xbae)][_0x284766(0x1b9e)]){_0x3986fe[_0x284766(0xbae)]=_0x282d2c[_0x284766(0x1c52)][_0x284766(0xbae)]||[{'message':_0x282d2c[_0x284766(0x2915)](),'type':_0x284766(0x1a54)}];for(let _0x59fa16=0x0;_0x59fa16<_0x282d2c[_0x284766(0x1c52)][_0x284766(0xbae)][_0x284766(0x1b9e)];_0x59fa16++){_0x420164['error']({'title':_0x282d2c[_0x284766(0x1c52)]['errors'][_0x59fa16]['type'],'msg':_0x282d2c[_0x284766(0x1c52)]['errors'][_0x59fa16][_0x284766(0x18ca)]});}}else _0x420164[_0x284766(0x1bd0)]({'title':_0x282d2c[_0x284766(0x10b3)]?_0x284766(0x575)+_0x282d2c['status']+_0x284766(0x21db)+_0x282d2c[_0x284766(0x2115)]:_0x284766(0x1a54),'msg':_0x282d2c['data']?JSON[_0x284766(0x2317)](_0x282d2c[_0x284766(0x1c52)]['message']):_0x282d2c[_0x284766(0x2915)]()});});}function _0x5e2c2b(_0x554151){const _0x39a66a=_0x333f71;_0x3986fe['errors']=[];const _0x2cfed0=_0x19cafa[_0x39a66a(0x856)]()['title'](_0x39a66a(0x103a))[_0x39a66a(0x12b8)](_0x39a66a(0x181a))['ariaLabel'](_0x39a66a(0x2380))['ok'](_0x39a66a(0x2664))[_0x39a66a(0x101a)](_0x39a66a(0x1dc6))[_0x39a66a(0x2283)](_0x554151);_0x19cafa[_0x39a66a(0xa60)](_0x2cfed0)[_0x39a66a(0x64a)](function(){const _0x4b1505=_0x39a66a;_0x3dcf01['cloudProvider']['delete']({'id':_0x3986fe['cloudProvider']['id']})[_0x4b1505(0x15e7)][_0x4b1505(0x64a)](function(){const _0x5bcc63=_0x4b1505;_0x28c606()['remove'](_0x3986fe[_0x5bcc63(0x730)],{'id':_0x3986fe[_0x5bcc63(0x12e5)]['id']}),_0x420164[_0x5bcc63(0x1339)]({'title':_0x5bcc63(0x7ef),'msg':(_0x3986fe[_0x5bcc63(0x12e5)][_0x5bcc63(0x2494)]||_0x5bcc63(0x12e5))+_0x5bcc63(0x1fa8)}),_0x9da180(_0x3986fe[_0x5bcc63(0x12e5)]);})['catch'](function(_0x146ba0){const _0x245a79=_0x4b1505;if(_0x146ba0[_0x245a79(0x1c52)]&&_0x146ba0[_0x245a79(0x1c52)][_0x245a79(0xbae)]&&_0x146ba0['data']['errors'][_0x245a79(0x1b9e)]){_0x3986fe[_0x245a79(0xbae)]=_0x146ba0[_0x245a79(0x1c52)][_0x245a79(0xbae)]||[{'message':_0x146ba0[_0x245a79(0x2915)](),'type':_0x245a79(0x1879)}];for(let _0x465b39=0x0;_0x465b39<_0x146ba0[_0x245a79(0x1c52)][_0x245a79(0xbae)]['length'];_0x465b39++){_0x420164[_0x245a79(0x1bd0)]({'title':_0x146ba0[_0x245a79(0x1c52)][_0x245a79(0xbae)][_0x465b39][_0x245a79(0x2185)],'msg':_0x146ba0[_0x245a79(0x1c52)]['errors'][_0x465b39][_0x245a79(0x18ca)]});}}else _0x420164[_0x245a79(0x1bd0)]({'title':_0x146ba0[_0x245a79(0x10b3)]?_0x245a79(0x575)+_0x146ba0[_0x245a79(0x10b3)]+_0x245a79(0x21db)+_0x146ba0[_0x245a79(0x2115)]:_0x245a79(0x1879),'msg':_0x146ba0[_0x245a79(0x1c52)]?JSON[_0x245a79(0x2317)](_0x146ba0['data']['message']):_0x146ba0[_0x245a79(0x18ca)]||_0x146ba0[_0x245a79(0x2915)]()});});},function(){});}function _0x439945(_0x11c0d3){return _0x11c0d3===null?undefined:new Date(_0x11c0d3);}function _0x9da180(_0x4ed771){_0x19cafa['hide'](_0x4ed771);}}const _0x244156=_0x8f8e4f;;_0x59335b[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x1ed1),'customization',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x59335b(_0x2179ff,_0x1823f8,_0x3c6619,_0x20d6f5,_0x231f09,_0x2e7871,_0x413699,_0x47cf92,_0x50262a,_0x1b4011,_0x4542f9,_0x241db2,_0x4f81d4,_0xcadfda){const _0x208ad8=_0x49a1e3,_0x53e3b1=this;_0x53e3b1['currentUser']=_0x4542f9['getCurrentUser'](),_0x53e3b1[_0x208ad8(0xbae)]=[],_0x53e3b1[_0x208ad8(0x28d6)]=_0x4f81d4,_0x53e3b1[_0x208ad8(0x1947)]=_0x241db2,_0x53e3b1[_0x208ad8(0x402)]=_0xcadfda,_0x53e3b1[_0x208ad8(0x6c2)]={},_0x53e3b1['passwordPattern']=_0x53e3b1[_0x208ad8(0x28d6)]&&_0x53e3b1[_0x208ad8(0x28d6)][_0x208ad8(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x53e3b1['title']=_0x208ad8(0x1ae7),_0x53e3b1[_0x208ad8(0x132)]=angular[_0x208ad8(0x289e)](_0x50262a),_0x53e3b1[_0x208ad8(0x1ed1)]=_0x47cf92,_0x53e3b1['newCustomization']=![];!_0x53e3b1[_0x208ad8(0x132)]&&(_0x53e3b1[_0x208ad8(0x132)]={},_0x53e3b1[_0x208ad8(0x2021)]=_0x208ad8(0x273c),_0x53e3b1[_0x208ad8(0x174e)]=!![]);_0x53e3b1[_0x208ad8(0xda0)]=_0x5cb66e,_0x53e3b1[_0x208ad8(0x830)]=_0x1a3f51,_0x53e3b1['deleteCustomization']=_0x3fc944,_0x53e3b1[_0x208ad8(0x1605)]=_0x430a4c,_0x53e3b1[_0x208ad8(0x16cb)]=_0x4f46e7;function _0x5cb66e(){const _0x368a36=_0x208ad8;_0x53e3b1[_0x368a36(0xbae)]=[],_0x1b4011[_0x368a36(0x28d6)][_0x368a36(0x2479)](_0x53e3b1[_0x368a36(0x132)])[_0x368a36(0x15e7)]['then'](function(_0x5135e5){const _0x1836bb=_0x368a36;_0x53e3b1[_0x1836bb(0x1ed1)][_0x1836bb(0x1891)](_0x5135e5['toJSON']()),_0x413699[_0x1836bb(0x1339)]({'title':'Customization\x20properly\x20created','msg':_0x53e3b1[_0x1836bb(0x132)]['name']?_0x53e3b1[_0x1836bb(0x132)][_0x1836bb(0x2494)]+_0x1836bb(0x258d):''}),_0x4f46e7(_0x5135e5);})[_0x368a36(0x20cd)](function(_0x5b648e){const _0x23cc9d=_0x368a36;if(_0x5b648e[_0x23cc9d(0x1c52)]&&_0x5b648e[_0x23cc9d(0x1c52)][_0x23cc9d(0xbae)]&&_0x5b648e['data'][_0x23cc9d(0xbae)][_0x23cc9d(0x1b9e)]){_0x53e3b1[_0x23cc9d(0xbae)]=_0x5b648e[_0x23cc9d(0x1c52)]['errors']||[{'message':_0x5b648e[_0x23cc9d(0x2915)](),'type':'api.setting.save'}];for(let _0x1227c0=0x0;_0x1227c0<_0x5b648e[_0x23cc9d(0x1c52)][_0x23cc9d(0xbae)][_0x23cc9d(0x1b9e)];_0x1227c0+=0x1){_0x413699[_0x23cc9d(0x1bd0)]({'title':_0x5b648e[_0x23cc9d(0x1c52)]['errors'][_0x1227c0]['type'],'msg':_0x5b648e[_0x23cc9d(0x1c52)][_0x23cc9d(0xbae)][_0x1227c0][_0x23cc9d(0x18ca)]});}}else _0x413699[_0x23cc9d(0x1bd0)]({'title':_0x5b648e['status']?'API:'+_0x5b648e[_0x23cc9d(0x10b3)]+_0x23cc9d(0x21db)+_0x5b648e[_0x23cc9d(0x2115)]:_0x23cc9d(0x20a9),'msg':_0x5b648e[_0x23cc9d(0x1c52)]?JSON['stringify'](_0x5b648e['data'][_0x23cc9d(0x18ca)]):_0x5b648e['toString']()});});}function _0x1a3f51(){const _0xb88580=_0x208ad8;_0x53e3b1['errors']=[],_0x1b4011[_0xb88580(0x28d6)]['update']({'id':_0x53e3b1[_0xb88580(0x132)]['id']},_0x53e3b1[_0xb88580(0x132)])[_0xb88580(0x15e7)][_0xb88580(0x64a)](function(_0x591aab){const _0x52e9dd=_0xb88580,_0x3f6f45=_0x28c606()[_0x52e9dd(0x27bc)](_0x53e3b1[_0x52e9dd(0x1ed1)],{'id':_0x591aab['id']});_0x3f6f45&&_0x28c606()[_0x52e9dd(0x14fe)](_0x3f6f45,_0x28c606()['pick'](_0x591aab['toJSON'](),_0x28c606()['keys'](_0x3f6f45))),_0x413699[_0x52e9dd(0x1339)]({'title':_0x52e9dd(0x21c),'msg':_0x53e3b1[_0x52e9dd(0x132)][_0x52e9dd(0x2494)]?_0x53e3b1[_0x52e9dd(0x132)][_0x52e9dd(0x2494)]+_0x52e9dd(0x271):''}),_0x4f46e7(_0x591aab);})['catch'](function(_0x4105a9){const _0x2d9d55=_0xb88580;if(_0x4105a9[_0x2d9d55(0x1c52)]&&_0x4105a9['data'][_0x2d9d55(0xbae)]&&_0x4105a9[_0x2d9d55(0x1c52)][_0x2d9d55(0xbae)][_0x2d9d55(0x1b9e)]){_0x53e3b1[_0x2d9d55(0xbae)]=_0x4105a9[_0x2d9d55(0x1c52)][_0x2d9d55(0xbae)]||[{'message':_0x4105a9[_0x2d9d55(0x2915)](),'type':'api.setting.update'}];for(let _0x4dba9d=0x0;_0x4dba9d<_0x4105a9[_0x2d9d55(0x1c52)][_0x2d9d55(0xbae)][_0x2d9d55(0x1b9e)];_0x4dba9d++){_0x413699[_0x2d9d55(0x1bd0)]({'title':_0x4105a9[_0x2d9d55(0x1c52)]['errors'][_0x4dba9d]['type'],'msg':_0x4105a9[_0x2d9d55(0x1c52)][_0x2d9d55(0xbae)][_0x4dba9d][_0x2d9d55(0x18ca)]});}}else _0x413699[_0x2d9d55(0x1bd0)]({'title':_0x4105a9['status']?_0x2d9d55(0x575)+_0x4105a9['status']+_0x2d9d55(0x21db)+_0x4105a9['statusText']:_0x2d9d55(0x2458),'msg':_0x4105a9['data']?JSON[_0x2d9d55(0x2317)](_0x4105a9[_0x2d9d55(0x1c52)][_0x2d9d55(0x18ca)]):_0x4105a9[_0x2d9d55(0x2915)]()});});}function _0x3fc944(_0x181918){const _0xe193e3=_0x208ad8;_0x53e3b1['errors']=[];const _0x4d9313=_0x20d6f5[_0xe193e3(0x856)]()[_0xe193e3(0x2021)](_0xe193e3(0x103a))['content'](_0xe193e3(0x28eb))[_0xe193e3(0x213e)]('Delete\x20Customization')['ok'](_0xe193e3(0x2664))[_0xe193e3(0x101a)](_0xe193e3(0x1dc6))[_0xe193e3(0x2283)](_0x181918);_0x20d6f5[_0xe193e3(0xa60)](_0x4d9313)['then'](function(){const _0x35bab8=_0xe193e3;_0x1b4011[_0x35bab8(0x28d6)][_0x35bab8(0xabd)]({'id':_0x53e3b1[_0x35bab8(0x132)]['id']})[_0x35bab8(0x15e7)][_0x35bab8(0x64a)](function(){const _0x34ad2d=_0x35bab8;_0x28c606()[_0x34ad2d(0x21c7)](_0x53e3b1[_0x34ad2d(0x1ed1)],{'id':_0x53e3b1[_0x34ad2d(0x132)]['id']}),_0x413699[_0x34ad2d(0x1339)]({'title':_0x34ad2d(0x2328),'msg':(_0x53e3b1[_0x34ad2d(0x132)][_0x34ad2d(0x2494)]||_0x34ad2d(0x132))+_0x34ad2d(0x1fa8)}),_0x4f46e7(_0x53e3b1[_0x34ad2d(0x132)]);})['catch'](function(_0x4557a6){const _0x32deea=_0x35bab8;if(_0x4557a6[_0x32deea(0x1c52)]&&_0x4557a6[_0x32deea(0x1c52)][_0x32deea(0xbae)]&&_0x4557a6[_0x32deea(0x1c52)][_0x32deea(0xbae)][_0x32deea(0x1b9e)]){_0x53e3b1['errors']=_0x4557a6[_0x32deea(0x1c52)][_0x32deea(0xbae)]||[{'message':_0x4557a6[_0x32deea(0x2915)](),'type':'api.setting.delete'}];for(let _0x9ca9d4=0x0;_0x9ca9d4<_0x4557a6[_0x32deea(0x1c52)][_0x32deea(0xbae)][_0x32deea(0x1b9e)];_0x9ca9d4++){_0x413699[_0x32deea(0x1bd0)]({'title':_0x4557a6[_0x32deea(0x1c52)][_0x32deea(0xbae)][_0x9ca9d4][_0x32deea(0x2185)],'msg':_0x4557a6[_0x32deea(0x1c52)][_0x32deea(0xbae)][_0x9ca9d4][_0x32deea(0x18ca)]});}}else _0x413699['error']({'title':_0x4557a6['status']?'API:'+_0x4557a6['status']+'\x20-\x20'+_0x4557a6[_0x32deea(0x2115)]:_0x32deea(0x280),'msg':_0x4557a6[_0x32deea(0x1c52)]?JSON['stringify'](_0x4557a6[_0x32deea(0x1c52)][_0x32deea(0x18ca)]):_0x4557a6[_0x32deea(0x18ca)]||_0x4557a6[_0x32deea(0x2915)]()});});},function(){});}function _0x430a4c(_0x28071e){return _0x28071e===null?undefined:new Date(_0x28071e);}function _0x4f46e7(_0x5873e6){const _0x3cc370=_0x208ad8;_0x20d6f5[_0x3cc370(0x268e)](_0x5873e6);}}const _0x13c4bc=_0x59335b;;_0x2a3a56[_0x49a1e3(0x1e73)]=['customizations',_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0x1947),_0x49a1e3(0xdcf)];function _0x2a3a56(_0x578e2f,_0x1dcb69,_0xe581f0,_0x187251,_0x3b8609){const _0x1ee0e6=_0x49a1e3,_0x4c6f1a=this;_0x4c6f1a[_0x1ee0e6(0x1d3d)]=_0x3b8609[_0x1ee0e6(0x808)](),_0x4c6f1a[_0x1ee0e6(0x1947)]=_0x187251,_0x4c6f1a[_0x1ee0e6(0x1ed1)]=_0x578e2f,_0x4c6f1a['customization']={};_0x4c6f1a[_0x1ee0e6(0x1ed1)]&&_0x4c6f1a[_0x1ee0e6(0x1ed1)][_0x1ee0e6(0x28b8)]&&_0x4c6f1a[_0x1ee0e6(0x1ed1)]['rows']['length']&&(_0x4c6f1a[_0x1ee0e6(0x132)]=_0x4c6f1a['customizations'][_0x1ee0e6(0x28b8)][0x0]);_0x4c6f1a[_0x1ee0e6(0x830)]=_0x301fa1;function _0x301fa1(){const _0x1bb32e=_0x1ee0e6;_0x4c6f1a[_0x1bb32e(0x132)]['id']?_0x1dcb69[_0x1bb32e(0x28d6)][_0x1bb32e(0x2603)]({'id':_0x4c6f1a[_0x1bb32e(0x132)]['id']},_0x4c6f1a[_0x1bb32e(0x132)])[_0x1bb32e(0x15e7)][_0x1bb32e(0x64a)](function(){const _0x47939d=_0x1bb32e;_0xe581f0[_0x47939d(0x1339)]({'title':_0x47939d(0x1d74),'msg':_0x4c6f1a[_0x47939d(0x132)][_0x47939d(0x2494)]?_0x4c6f1a[_0x47939d(0x132)][_0x47939d(0x2494)]+_0x47939d(0x2032):''});})['catch'](function(_0x3580de){const _0x25a94d=_0x1bb32e;_0xe581f0['error']({'title':_0x3580de[_0x25a94d(0x10b3)]?_0x25a94d(0x575)+_0x3580de[_0x25a94d(0x10b3)]+_0x25a94d(0x21db)+_0x3580de[_0x25a94d(0x2115)]:_0x25a94d(0x6bb),'msg':_0x3580de['data']?JSON[_0x25a94d(0x2317)](_0x3580de[_0x25a94d(0x1c52)]):_0x3580de['toString']()});}):_0x1dcb69[_0x1bb32e(0x28d6)][_0x1bb32e(0x2479)](_0x4c6f1a[_0x1bb32e(0x132)])[_0x1bb32e(0x15e7)][_0x1bb32e(0x64a)](function(_0x35f208){const _0x697bbf=_0x1bb32e;_0x28c606()['merge'](_0x4c6f1a[_0x697bbf(0x132)],_0x35f208),_0xe581f0[_0x697bbf(0x1339)]({'title':_0x697bbf(0x1d74),'msg':_0x4c6f1a[_0x697bbf(0x132)]['name']?_0x4c6f1a[_0x697bbf(0x132)][_0x697bbf(0x2494)]+_0x697bbf(0x2032):''});})['catch'](function(_0x194c2a){const _0x5536b8=_0x1bb32e;_0xe581f0['error']({'title':_0x194c2a[_0x5536b8(0x10b3)]?'API:'+_0x194c2a['status']+_0x5536b8(0x21db)+_0x194c2a['statusText']:'SYSTEM:GETsetting','msg':_0x194c2a['data']?JSON[_0x5536b8(0x2317)](_0x194c2a[_0x5536b8(0x1c52)]):_0x194c2a[_0x5536b8(0x2915)]()});});}}const _0x179b05=_0x2a3a56;;_0x2e728b[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x680)];function _0x2e728b(_0x5ae749,_0x4c4ee9){const _0xb6ca1=_0x49a1e3,_0xc45239=this,_0x4a9f30=0x8,_0x5af858=_0x4a9f30*0x400*0x400;_0xc45239[_0xb6ca1(0x132)]={},_0xc45239[_0xb6ca1(0x1026)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x5af858,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0xc45239[_0xb6ca1(0x1eec)]={'flow':{}},_0xc45239[_0xb6ca1(0x397)]=![],_0xc45239[_0xb6ca1(0x25ed)]=_0x34bf36,_0xc45239[_0xb6ca1(0x1c5)]=_0x29b2af,_0xc45239['fileSuccess']=_0x51fb0f,_0xc45239[_0xb6ca1(0x2354)]=_0x2898fa;function _0x2898fa(_0x5a84e5){const _0x36500d=_0xb6ca1;_0xc45239[_0x36500d(0x132)]=angular[_0x36500d(0x289e)](_0x5a84e5),_0xc45239[_0x36500d(0x1026)]['target']='/api/settings/1/favicon'[_0x36500d(0x1353)](_0x36500d(0x201e),_0xc45239['customization']['id']),_0xc45239[_0x36500d(0x132)]['images']=[];}function _0x34bf36(_0x576e54){const _0x28a7a1=_0xb6ca1,_0x2260ef=[_0x28a7a1(0x105e),_0x28a7a1(0xfcc),_0x28a7a1(0x9e0)];if(!_0x28c606()[_0x28a7a1(0x68a)](_0x2260ef,_0x576e54[_0x28a7a1(0xa2f)]()))return _0x4c4ee9[_0x28a7a1(0x1bd0)]({'title':_0x28a7a1(0x1486)+_0x576e54['getExtension'](),'msg':'Supported\x20extension:\x20'+_0x2260ef[_0x28a7a1(0x9a6)]()}),![];if(_0x576e54[_0x28a7a1(0x1c97)]>_0x5af858)return _0x4c4ee9['error']({'title':'File\x20too\x20big','msg':_0x28a7a1(0xbfa)+_0x4a9f30+'MB'}),![];const _0x3bba22={'id':_0x576e54[_0x28a7a1(0x16c4)],'file':_0x576e54,'type':_0x28a7a1(0xffd)};return _0xc45239['customization'][_0x28a7a1(0x21e3)]['unshift'](_0x3bba22),!![];}function _0x29b2af(){const _0x5efb51=_0xb6ca1;_0xc45239[_0x5efb51(0x1eec)][_0x5efb51(0x891)][_0x5efb51(0x2017)][_0x5efb51(0x1de3)]={'X-Requested-With':_0x5efb51(0x15fc),'Authorization':_0x5efb51(0x28cb)+_0x5ae749['get'](_0x5efb51(0x283d))},_0xc45239['ngFlow'][_0x5efb51(0x891)][_0x5efb51(0x1c5)]();}function _0x51fb0f(_0x5c8e78){const _0x505bc1=_0xb6ca1;angular['forEach'](_0xc45239[_0x505bc1(0x132)][_0x505bc1(0x21e3)],function(_0x2ede3f){const _0x11c6a8=_0x505bc1;if(_0x2ede3f['id']===_0x5c8e78[_0x11c6a8(0x16c4)]){const _0x4415b1=new FileReader();_0x4415b1[_0x11c6a8(0x2724)](_0x2ede3f['file'][_0x11c6a8(0x10b4)]),_0x4415b1[_0x11c6a8(0x11c)]=function(_0x5526af){const _0x11e06a=_0x11c6a8;_0x2ede3f[_0x11e06a(0x2761)]=_0x5526af['target']['result'];},_0x2ede3f[_0x11c6a8(0x2185)]=_0x11c6a8(0x1a0);}});}}const _0x427da6=_0x2e728b;;_0x282222[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x680)];function _0x282222(_0x1d4d79,_0x18eaa2){const _0x287a82=_0x49a1e3,_0x54c9cb=this,_0x4e15b6=0x8,_0x3f01fb=_0x4e15b6*0x400*0x400;_0x54c9cb[_0x287a82(0x132)]={},_0x54c9cb[_0x287a82(0x1026)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x3f01fb,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x54c9cb['ngFlow']={'flow':{}},_0x54c9cb[_0x287a82(0x397)]=![],_0x54c9cb[_0x287a82(0x25ed)]=_0x567e99,_0x54c9cb[_0x287a82(0x1c5)]=_0x34c628,_0x54c9cb[_0x287a82(0x1de6)]=_0xdd5536,_0x54c9cb[_0x287a82(0x2354)]=_0x30fdd0;function _0x30fdd0(_0x4beaf6){const _0x38e3e7=_0x287a82;_0x54c9cb[_0x38e3e7(0x132)]=angular[_0x38e3e7(0x289e)](_0x4beaf6),_0x54c9cb['ngFlowOptions'][_0x38e3e7(0x2497)]=_0x38e3e7(0x175d)['replace'](_0x38e3e7(0x201e),_0x54c9cb[_0x38e3e7(0x132)]['id']),_0x54c9cb[_0x38e3e7(0x132)][_0x38e3e7(0x21e3)]=[];}function _0x567e99(_0x121450){const _0x5c85cc=_0x287a82,_0x20db0d=[_0x5c85cc(0x105e),'jpg'];if(!_0x28c606()[_0x5c85cc(0x68a)](_0x20db0d,_0x121450[_0x5c85cc(0xa2f)]()))return _0x18eaa2[_0x5c85cc(0x1bd0)]({'title':_0x5c85cc(0x1486)+_0x121450[_0x5c85cc(0xa2f)](),'msg':_0x5c85cc(0x1b51)+_0x20db0d[_0x5c85cc(0x9a6)]()}),![];if(_0x121450[_0x5c85cc(0x1c97)]>_0x3f01fb)return _0x18eaa2['error']({'title':_0x5c85cc(0x535),'msg':_0x5c85cc(0xbfa)+_0x4e15b6+'MB'}),![];const _0x5dd04a={'id':_0x121450[_0x5c85cc(0x16c4)],'file':_0x121450,'type':_0x5c85cc(0xffd)};return _0x54c9cb[_0x5c85cc(0x132)]['images'][_0x5c85cc(0x1891)](_0x5dd04a),!![];}function _0x34c628(){const _0x3b70f1=_0x287a82;_0x54c9cb[_0x3b70f1(0x1eec)]['flow'][_0x3b70f1(0x2017)][_0x3b70f1(0x1de3)]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x3b70f1(0x28cb)+_0x1d4d79['get'](_0x3b70f1(0x283d))},_0x54c9cb['ngFlow'][_0x3b70f1(0x891)][_0x3b70f1(0x1c5)]();}function _0xdd5536(_0x3fffbe){const _0x3dec57=_0x287a82;angular['forEach'](_0x54c9cb[_0x3dec57(0x132)][_0x3dec57(0x21e3)],function(_0xfa2ab7){const _0x4c365e=_0x3dec57;if(_0xfa2ab7['id']===_0x3fffbe[_0x4c365e(0x16c4)]){const _0xeeeb0=new FileReader();_0xeeeb0[_0x4c365e(0x2724)](_0xfa2ab7[_0x4c365e(0x10b4)][_0x4c365e(0x10b4)]),_0xeeeb0[_0x4c365e(0x11c)]=function(_0x29a83f){const _0x49cbf2=_0x4c365e;_0xfa2ab7['url']=_0x29a83f[_0x49cbf2(0x2497)][_0x49cbf2(0x5e3)];},_0xfa2ab7[_0x4c365e(0x2185)]=_0x4c365e(0x1a0);}});}}const _0x5bc389=_0x282222;;_0x186322[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x680)];function _0x186322(_0x151aa8,_0x28aa0e){const _0x470f97=_0x49a1e3,_0x1b0645=this,_0x2ad37a=0x8,_0x1b7f32=_0x2ad37a*0x400*0x400;_0x1b0645[_0x470f97(0x132)]={},_0x1b0645['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x1b7f32,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x1b0645[_0x470f97(0x1eec)]={'flow':{}},_0x1b0645[_0x470f97(0x397)]=![],_0x1b0645[_0x470f97(0x25ed)]=_0x4838d0,_0x1b0645[_0x470f97(0x1c5)]=_0x152b47,_0x1b0645[_0x470f97(0x1de6)]=_0x39b1a8,_0x1b0645[_0x470f97(0x2354)]=_0x4da645;function _0x4da645(_0x45a150){const _0x255e60=_0x470f97;_0x1b0645['customization']=angular[_0x255e60(0x289e)](_0x45a150),_0x1b0645[_0x255e60(0x1026)][_0x255e60(0x2497)]=_0x255e60(0x2920)[_0x255e60(0x1353)](_0x255e60(0x201e),_0x1b0645[_0x255e60(0x132)]['id']),_0x1b0645[_0x255e60(0x132)][_0x255e60(0x21e3)]=[];}function _0x4838d0(_0x167eee){const _0x49c509=_0x470f97,_0x5d80a0=[_0x49c509(0x105e),_0x49c509(0xfcc)];if(!_0x28c606()[_0x49c509(0x68a)](_0x5d80a0,_0x167eee[_0x49c509(0xa2f)]()))return _0x28aa0e[_0x49c509(0x1bd0)]({'title':_0x49c509(0x1486)+_0x167eee['getExtension'](),'msg':_0x49c509(0x1b51)+_0x5d80a0['join']()}),![];if(_0x167eee['size']>_0x1b7f32)return _0x28aa0e[_0x49c509(0x1bd0)]({'title':'File\x20too\x20big','msg':_0x49c509(0xbfa)+_0x2ad37a+'MB'}),![];const _0x42ceff={'id':_0x167eee['uniqueIdentifier'],'file':_0x167eee,'type':_0x49c509(0xffd)};return _0x1b0645['customization'][_0x49c509(0x21e3)][_0x49c509(0x1891)](_0x42ceff),!![];}function _0x152b47(){const _0x1a4751=_0x470f97;_0x1b0645[_0x1a4751(0x1eec)][_0x1a4751(0x891)]['opts'][_0x1a4751(0x1de3)]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x1a4751(0x28cb)+_0x151aa8['get'](_0x1a4751(0x283d))},_0x1b0645[_0x1a4751(0x1eec)][_0x1a4751(0x891)][_0x1a4751(0x1c5)]();}function _0x39b1a8(_0x4bd7ea){const _0x822746=_0x470f97;angular[_0x822746(0x1397)](_0x1b0645[_0x822746(0x132)][_0x822746(0x21e3)],function(_0x586083){const _0x46b7d8=_0x822746;if(_0x586083['id']===_0x4bd7ea[_0x46b7d8(0x16c4)]){const _0x129bdd=new FileReader();_0x129bdd['readAsDataURL'](_0x586083[_0x46b7d8(0x10b4)]['file']),_0x129bdd['onload']=function(_0x6716df){const _0x1bd25b=_0x46b7d8;_0x586083['url']=_0x6716df['target'][_0x1bd25b(0x5e3)];},_0x586083[_0x46b7d8(0x2185)]=_0x46b7d8(0x1a0);}});}}const _0x22a043=_0x186322;;_0x1bb58b[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x680)];function _0x1bb58b(_0x4de311,_0x408023){const _0x537f1d=_0x49a1e3,_0x5e2498=this,_0x2391ec=0x8,_0x4337a4=_0x2391ec*0x400*0x400;_0x5e2498[_0x537f1d(0x132)]={},_0x5e2498[_0x537f1d(0x1026)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x4337a4,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x5e2498[_0x537f1d(0x1eec)]={'flow':{}},_0x5e2498[_0x537f1d(0x397)]=![],_0x5e2498[_0x537f1d(0x25ed)]=_0x5389b8,_0x5e2498[_0x537f1d(0x1c5)]=_0x37f2c4,_0x5e2498[_0x537f1d(0x1de6)]=_0x3e5c60,_0x5e2498['init']=_0x25400f;function _0x25400f(_0x30d6ea){const _0x368945=_0x537f1d;_0x5e2498['customization']=angular['copy'](_0x30d6ea),_0x5e2498['ngFlowOptions'][_0x368945(0x2497)]='/api/settings/1/preferred'['replace'](_0x368945(0x201e),_0x5e2498[_0x368945(0x132)]['id']),_0x5e2498[_0x368945(0x132)][_0x368945(0x21e3)]=[];}function _0x5389b8(_0xc7b4bd){const _0x91df28=_0x537f1d,_0x2141c0=['png',_0x91df28(0xfcc)];if(!_0x28c606()[_0x91df28(0x68a)](_0x2141c0,_0xc7b4bd[_0x91df28(0xa2f)]()))return _0x408023[_0x91df28(0x1bd0)]({'title':'Invalid\x20extension:\x20'+_0xc7b4bd[_0x91df28(0xa2f)](),'msg':_0x91df28(0x1b51)+_0x2141c0['join']()}),![];if(_0xc7b4bd['size']>_0x4337a4)return _0x408023['error']({'title':_0x91df28(0x535),'msg':_0x91df28(0xbfa)+_0x2391ec+'MB'}),![];const _0x1334a7={'id':_0xc7b4bd[_0x91df28(0x16c4)],'file':_0xc7b4bd,'type':_0x91df28(0xffd)};return _0x5e2498[_0x91df28(0x132)][_0x91df28(0x21e3)][_0x91df28(0x1891)](_0x1334a7),!![];}function _0x37f2c4(){const _0x15bee4=_0x537f1d;_0x5e2498[_0x15bee4(0x1eec)][_0x15bee4(0x891)][_0x15bee4(0x2017)][_0x15bee4(0x1de3)]={'X-Requested-With':_0x15bee4(0x15fc),'Authorization':_0x15bee4(0x28cb)+_0x4de311[_0x15bee4(0x896)](_0x15bee4(0x283d))},_0x5e2498[_0x15bee4(0x1eec)]['flow'][_0x15bee4(0x1c5)]();}function _0x3e5c60(_0x282ce6){const _0x112940=_0x537f1d;angular[_0x112940(0x1397)](_0x5e2498[_0x112940(0x132)][_0x112940(0x21e3)],function(_0xbef06f){const _0x48eae6=_0x112940;if(_0xbef06f['id']===_0x282ce6['uniqueIdentifier']){const _0x33176b=new FileReader();_0x33176b['readAsDataURL'](_0xbef06f[_0x48eae6(0x10b4)][_0x48eae6(0x10b4)]),_0x33176b[_0x48eae6(0x11c)]=function(_0x25fe33){const _0x3a9828=_0x48eae6;_0xbef06f[_0x3a9828(0x2761)]=_0x25fe33[_0x3a9828(0x2497)][_0x3a9828(0x5e3)];},_0xbef06f[_0x48eae6(0x2185)]='image';}});}}const _0x4d7686=_0x1bb58b;;_0x23f54e['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog','$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x296c),_0x49a1e3(0x2965),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x23f54e(_0x33dd58,_0x6e20bb,_0x49907a,_0x47c33a,_0x4823d7,_0x4d00e7,_0x29c15d,_0x3219c6,_0x3a999e,_0x4d5c8d,_0x400c2d,_0x319daf,_0x183722,_0x40d477){const _0x51a189=_0x49a1e3,_0x32d5dc=this;_0x32d5dc[_0x51a189(0x1d3d)]=_0x400c2d[_0x51a189(0x808)](),_0x32d5dc[_0x51a189(0xbae)]=[],_0x32d5dc[_0x51a189(0x28d6)]=_0x183722,_0x32d5dc[_0x51a189(0x1947)]=_0x319daf,_0x32d5dc['crudPermissions']=_0x40d477,_0x32d5dc[_0x51a189(0x6c2)]={},_0x32d5dc[_0x51a189(0xccc)]=_0x32d5dc[_0x51a189(0x28d6)]&&_0x32d5dc[_0x51a189(0x28d6)][_0x51a189(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x32d5dc[_0x51a189(0x2021)]=_0x51a189(0x8aa),_0x32d5dc[_0x51a189(0x2965)]=angular['copy'](_0x3a999e),_0x32d5dc['generals']=_0x3219c6,_0x32d5dc[_0x51a189(0x23ad)]=![];!_0x32d5dc[_0x51a189(0x2965)]&&(_0x32d5dc[_0x51a189(0x2965)]={'min_internal':0x3e8,'chatTimeout':0x1e,'phoneBarAutoUpdater':!![],'phoneBarAutoUpdaterUrl':_0x51a189(0x1509),'splitSizeCsv':0x1388,'splitSizePdf':0x3e8,'splitSizeXlsx':0x1388,'messagesAlignment':_0x51a189(0x28e),'phoneBarRememberMeEnabled':!![],'allowedLoginAttempts':0x5,'blockDuration':0xa,'loginMailFrequency':0xa,'enforcePasswordHistory':!![],'passwordHistoryLimit':0x3},_0x32d5dc['title']=_0x51a189(0x17b5),_0x32d5dc['newGeneral']=!![]);_0x32d5dc['addNewGeneral']=_0x3ea70b,_0x32d5dc[_0x51a189(0x1475)]=_0x27cc17,_0x32d5dc[_0x51a189(0xbc0)]=_0x472636,_0x32d5dc['getDateFromString']=_0x142166,_0x32d5dc[_0x51a189(0x16cb)]=_0x357dbd,_0x4d5c8d[_0x51a189(0x12e5)][_0x51a189(0x896)]({'fields':_0x51a189(0x1427),'sort':_0x51a189(0x2494),'nolimit':_0x51a189(0x1685)})[_0x51a189(0x15e7)][_0x51a189(0x64a)](function(_0x2590a8){const _0x470626=_0x51a189;_0x32d5dc[_0x470626(0x730)]=_0x2590a8[_0x470626(0x28b8)]||[];})[_0x51a189(0x20cd)](function(_0x3e1c69){const _0x58278b=_0x51a189;_0x29c15d[_0x58278b(0x1bd0)]({'title':_0x3e1c69[_0x58278b(0x10b3)]?_0x58278b(0x575)+_0x3e1c69[_0x58278b(0x10b3)]+_0x58278b(0x21db)+_0x3e1c69[_0x58278b(0x2115)]:'SYSTEM:GET_CLOUDPROVIDERS','msg':_0x3e1c69[_0x58278b(0x1c52)]?JSON[_0x58278b(0x2317)](_0x3e1c69['data']):_0x3e1c69[_0x58278b(0x2915)]()});});function _0x3ea70b(){const _0x215d18=_0x51a189;_0x32d5dc[_0x215d18(0xbae)]=[],_0x4d5c8d['setting']['save'](_0x32d5dc['general'])[_0x215d18(0x15e7)]['then'](function(_0x3802ad){const _0xaa973=_0x215d18;_0x32d5dc['generals'][_0xaa973(0x1891)](_0x3802ad[_0xaa973(0x14f8)]()),_0x29c15d[_0xaa973(0x1339)]({'title':_0xaa973(0x2030),'msg':_0x32d5dc[_0xaa973(0x2965)][_0xaa973(0x2494)]?_0x32d5dc[_0xaa973(0x2965)][_0xaa973(0x2494)]+_0xaa973(0x258d):''}),_0x357dbd(_0x3802ad);})[_0x215d18(0x20cd)](function(_0x3ff5b7){const _0x38e61c=_0x215d18;if(_0x3ff5b7[_0x38e61c(0x1c52)]&&_0x3ff5b7[_0x38e61c(0x1c52)]['errors']&&_0x3ff5b7[_0x38e61c(0x1c52)][_0x38e61c(0xbae)]['length']){_0x32d5dc[_0x38e61c(0xbae)]=_0x3ff5b7[_0x38e61c(0x1c52)][_0x38e61c(0xbae)]||[{'message':_0x3ff5b7[_0x38e61c(0x2915)](),'type':_0x38e61c(0x20a9)}];for(let _0x548779=0x0;_0x548779<_0x3ff5b7['data']['errors'][_0x38e61c(0x1b9e)];_0x548779+=0x1){_0x29c15d[_0x38e61c(0x1bd0)]({'title':_0x3ff5b7[_0x38e61c(0x1c52)]['errors'][_0x548779]['type'],'msg':_0x3ff5b7['data'][_0x38e61c(0xbae)][_0x548779][_0x38e61c(0x18ca)]});}}else _0x29c15d['error']({'title':_0x3ff5b7['status']?_0x38e61c(0x575)+_0x3ff5b7[_0x38e61c(0x10b3)]+_0x38e61c(0x21db)+_0x3ff5b7[_0x38e61c(0x2115)]:_0x38e61c(0x20a9),'msg':_0x3ff5b7['data']?JSON[_0x38e61c(0x2317)](_0x3ff5b7[_0x38e61c(0x1c52)][_0x38e61c(0x18ca)]):_0x3ff5b7[_0x38e61c(0x2915)]()});});}function _0x27cc17(){const _0x4e05cc=_0x51a189;_0x32d5dc[_0x4e05cc(0xbae)]=[],_0x4d5c8d[_0x4e05cc(0x28d6)][_0x4e05cc(0x2603)]({'id':_0x32d5dc[_0x4e05cc(0x2965)]['id']},_0x32d5dc['general'])['$promise'][_0x4e05cc(0x64a)](function(_0x2c5f96){const _0x13d7b7=_0x4e05cc,_0x184027=_0x28c606()[_0x13d7b7(0x27bc)](_0x32d5dc[_0x13d7b7(0x296c)],{'id':_0x2c5f96['id']});_0x184027&&_0x28c606()[_0x13d7b7(0x14fe)](_0x184027,_0x28c606()[_0x13d7b7(0x27bb)](_0x2c5f96[_0x13d7b7(0x14f8)](),_0x28c606()[_0x13d7b7(0x1ec6)](_0x184027))),_0x29c15d['success']({'title':_0x13d7b7(0x162e),'msg':_0x32d5dc[_0x13d7b7(0x2965)][_0x13d7b7(0x2494)]?_0x32d5dc[_0x13d7b7(0x2965)]['name']+_0x13d7b7(0x271):''}),_0x357dbd(_0x2c5f96);})[_0x4e05cc(0x20cd)](function(_0x3f11ca){const _0x4e0e90=_0x4e05cc;if(_0x3f11ca[_0x4e0e90(0x1c52)]&&_0x3f11ca[_0x4e0e90(0x1c52)]['errors']&&_0x3f11ca[_0x4e0e90(0x1c52)][_0x4e0e90(0xbae)][_0x4e0e90(0x1b9e)]){_0x32d5dc[_0x4e0e90(0xbae)]=_0x3f11ca[_0x4e0e90(0x1c52)]['errors']||[{'message':_0x3f11ca[_0x4e0e90(0x2915)](),'type':_0x4e0e90(0x2458)}];for(let _0x1546d4=0x0;_0x1546d4<_0x3f11ca['data'][_0x4e0e90(0xbae)][_0x4e0e90(0x1b9e)];_0x1546d4++){_0x29c15d['error']({'title':_0x3f11ca['data']['errors'][_0x1546d4][_0x4e0e90(0x2185)],'msg':_0x3f11ca['data'][_0x4e0e90(0xbae)][_0x1546d4][_0x4e0e90(0x18ca)]});}}else _0x29c15d['error']({'title':_0x3f11ca['status']?_0x4e0e90(0x575)+_0x3f11ca[_0x4e0e90(0x10b3)]+_0x4e0e90(0x21db)+_0x3f11ca['statusText']:_0x4e0e90(0x2458),'msg':_0x3f11ca[_0x4e0e90(0x1c52)]?JSON[_0x4e0e90(0x2317)](_0x3f11ca[_0x4e0e90(0x1c52)][_0x4e0e90(0x18ca)]):_0x3f11ca[_0x4e0e90(0x2915)]()});});}function _0x472636(_0x19b08e){const _0xd19d4a=_0x51a189;_0x32d5dc[_0xd19d4a(0xbae)]=[];const _0x234b52=_0x47c33a['confirm']()[_0xd19d4a(0x2021)](_0xd19d4a(0x103a))[_0xd19d4a(0x12b8)](_0xd19d4a(0x1c5e))[_0xd19d4a(0x213e)](_0xd19d4a(0x1075))['ok']('Delete')['cancel'](_0xd19d4a(0x1dc6))[_0xd19d4a(0x2283)](_0x19b08e);_0x47c33a['show'](_0x234b52)[_0xd19d4a(0x64a)](function(){const _0x250014=_0xd19d4a;_0x4d5c8d['setting'][_0x250014(0xabd)]({'id':_0x32d5dc[_0x250014(0x2965)]['id']})[_0x250014(0x15e7)][_0x250014(0x64a)](function(){const _0x18f27c=_0x250014;_0x28c606()[_0x18f27c(0x21c7)](_0x32d5dc[_0x18f27c(0x296c)],{'id':_0x32d5dc[_0x18f27c(0x2965)]['id']}),_0x29c15d['success']({'title':_0x18f27c(0x1b81),'msg':(_0x32d5dc[_0x18f27c(0x2965)][_0x18f27c(0x2494)]||'general')+_0x18f27c(0x1fa8)}),_0x357dbd(_0x32d5dc[_0x18f27c(0x2965)]);})[_0x250014(0x20cd)](function(_0x4f838d){const _0x251c4e=_0x250014;if(_0x4f838d['data']&&_0x4f838d['data'][_0x251c4e(0xbae)]&&_0x4f838d[_0x251c4e(0x1c52)][_0x251c4e(0xbae)][_0x251c4e(0x1b9e)]){_0x32d5dc[_0x251c4e(0xbae)]=_0x4f838d[_0x251c4e(0x1c52)][_0x251c4e(0xbae)]||[{'message':_0x4f838d[_0x251c4e(0x2915)](),'type':_0x251c4e(0x280)}];for(let _0x154499=0x0;_0x154499<_0x4f838d[_0x251c4e(0x1c52)][_0x251c4e(0xbae)]['length'];_0x154499++){_0x29c15d[_0x251c4e(0x1bd0)]({'title':_0x4f838d[_0x251c4e(0x1c52)][_0x251c4e(0xbae)][_0x154499][_0x251c4e(0x2185)],'msg':_0x4f838d[_0x251c4e(0x1c52)][_0x251c4e(0xbae)][_0x154499][_0x251c4e(0x18ca)]});}}else _0x29c15d['error']({'title':_0x4f838d[_0x251c4e(0x10b3)]?_0x251c4e(0x575)+_0x4f838d[_0x251c4e(0x10b3)]+'\x20-\x20'+_0x4f838d[_0x251c4e(0x2115)]:_0x251c4e(0x280),'msg':_0x4f838d[_0x251c4e(0x1c52)]?JSON[_0x251c4e(0x2317)](_0x4f838d[_0x251c4e(0x1c52)]['message']):_0x4f838d[_0x251c4e(0x18ca)]||_0x4f838d[_0x251c4e(0x2915)]()});});},function(){});}function _0x142166(_0x57dae5){return _0x57dae5===null?undefined:new Date(_0x57dae5);}function _0x357dbd(_0x222051){const _0x1129c5=_0x51a189;_0x47c33a[_0x1129c5(0x268e)](_0x222051);}}const _0x58df8b=_0x23f54e;;_0x2408da[_0x49a1e3(0x1e73)]=['generals',_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0x1947),'Auth'];function _0x2408da(_0x52d1ce,_0x5617af,_0x11fe14,_0x2d0d32,_0x20275d){const _0x4a7ab5=_0x49a1e3,_0x21f2cd=this;_0x21f2cd[_0x4a7ab5(0x1d3d)]=_0x20275d[_0x4a7ab5(0x808)](),_0x21f2cd['license']=_0x2d0d32,_0x21f2cd['generals']=_0x52d1ce,_0x21f2cd[_0x4a7ab5(0x2965)]={};_0x21f2cd[_0x4a7ab5(0x296c)]&&_0x21f2cd[_0x4a7ab5(0x296c)][_0x4a7ab5(0x28b8)]&&_0x21f2cd[_0x4a7ab5(0x296c)]['rows'][_0x4a7ab5(0x1b9e)]&&(_0x21f2cd[_0x4a7ab5(0x2965)]=_0x21f2cd[_0x4a7ab5(0x296c)][_0x4a7ab5(0x28b8)][0x0]);_0x5617af[_0x4a7ab5(0x12e5)][_0x4a7ab5(0x896)]({'fields':'id,name','sort':_0x4a7ab5(0x2494),'nolimit':_0x4a7ab5(0x1685)})[_0x4a7ab5(0x15e7)][_0x4a7ab5(0x64a)](function(_0x1815dd){const _0x47b09c=_0x4a7ab5;_0x21f2cd[_0x47b09c(0x730)]=_0x1815dd[_0x47b09c(0x28b8)]||[];})['catch'](function(_0x412c16){const _0x59a329=_0x4a7ab5;_0x11fe14[_0x59a329(0x1bd0)]({'title':_0x412c16[_0x59a329(0x10b3)]?_0x59a329(0x575)+_0x412c16[_0x59a329(0x10b3)]+_0x59a329(0x21db)+_0x412c16[_0x59a329(0x2115)]:'SYSTEM:GET_CLOUDPROVIDERS','msg':_0x412c16['data']?JSON[_0x59a329(0x2317)](_0x412c16[_0x59a329(0x1c52)]):_0x412c16[_0x59a329(0x2915)]()});}),_0x21f2cd[_0x4a7ab5(0x1475)]=_0x5b0ea2;function _0x5b0ea2(){const _0xbd5e78=_0x4a7ab5;_0x21f2cd['general']['id']?_0x5617af[_0xbd5e78(0x28d6)][_0xbd5e78(0x2603)]({'id':_0x21f2cd[_0xbd5e78(0x2965)]['id']},_0x21f2cd['general'])[_0xbd5e78(0x15e7)]['then'](function(){const _0x4367ce=_0xbd5e78;_0x11fe14[_0x4367ce(0x1339)]({'title':'General\x20updated!','msg':_0x21f2cd[_0x4367ce(0x2965)][_0x4367ce(0x2494)]?_0x21f2cd[_0x4367ce(0x2965)]['name']+_0x4367ce(0x2032):''});})['catch'](function(_0x5cd733){const _0x38023d=_0xbd5e78;_0x11fe14[_0x38023d(0x1bd0)]({'title':_0x5cd733['status']?'API:'+_0x5cd733[_0x38023d(0x10b3)]+_0x38023d(0x21db)+_0x5cd733[_0x38023d(0x2115)]:_0x38023d(0x6bb),'msg':_0x5cd733[_0x38023d(0x1c52)]?JSON[_0x38023d(0x2317)](_0x5cd733[_0x38023d(0x1c52)]):_0x5cd733['toString']()});}):_0x5617af[_0xbd5e78(0x28d6)][_0xbd5e78(0x2479)](_0x21f2cd[_0xbd5e78(0x2965)])['$promise'][_0xbd5e78(0x64a)](function(_0x3f8b2b){const _0x259548=_0xbd5e78;_0x28c606()[_0x259548(0x14fe)](_0x21f2cd[_0x259548(0x2965)],_0x3f8b2b),_0x11fe14[_0x259548(0x1339)]({'title':'General\x20updated!','msg':_0x21f2cd[_0x259548(0x2965)][_0x259548(0x2494)]?_0x21f2cd['general'][_0x259548(0x2494)]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x3580fb){const _0x54a99d=_0xbd5e78;_0x11fe14[_0x54a99d(0x1bd0)]({'title':_0x3580fb[_0x54a99d(0x10b3)]?_0x54a99d(0x575)+_0x3580fb['status']+_0x54a99d(0x21db)+_0x3580fb[_0x54a99d(0x2115)]:'SYSTEM:GETsetting','msg':_0x3580fb[_0x54a99d(0x1c52)]?JSON[_0x54a99d(0x2317)](_0x3580fb[_0x54a99d(0x1c52)]):_0x3580fb[_0x54a99d(0x2915)]()});});}}const _0x4271ed=_0x2408da;;_0x1733b1[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog','$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),'networks',_0x49a1e3(0x14eb),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting'];function _0x1733b1(_0x502240,_0x2ec925,_0x40fba4,_0x4a72d1,_0x141feb,_0x3da63f,_0x16b082,_0x4f1b9b,_0x39a8f1,_0x88164c,_0x4d5b18,_0x5ae080,_0x47995d){const _0xa511e6=_0x49a1e3,_0x40d718=this;_0x40d718[_0xa511e6(0x1d3d)]=_0x4d5b18[_0xa511e6(0x808)](),_0x40d718[_0xa511e6(0xbae)]=[],_0x40d718[_0xa511e6(0x28d6)]=_0x47995d,_0x40d718[_0xa511e6(0x1947)]=_0x5ae080,_0x40d718['hasModulePermissions']={},_0x40d718['passwordPattern']=_0x40d718[_0xa511e6(0x28d6)]&&_0x40d718[_0xa511e6(0x28d6)][_0xa511e6(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x40d718['title']=_0xa511e6(0xd3e),_0x40d718[_0xa511e6(0x14eb)]=angular['copy'](_0x39a8f1),_0x40d718['networks']=_0x4f1b9b,_0x40d718[_0xa511e6(0x1ab4)]=![];!_0x40d718[_0xa511e6(0x14eb)]&&(_0x40d718[_0xa511e6(0x14eb)]={'type':_0xa511e6(0x11be)},_0x40d718['title']='SETTINGS.NEW_NETWORK',_0x40d718['newNetwork']=!![]);_0x40d718['addNewNetwork']=_0x2b52b4,_0x40d718[_0xa511e6(0x2208)]=_0xf1d275,_0x40d718[_0xa511e6(0x1fea)]=_0x34c383,_0x40d718[_0xa511e6(0x1605)]=_0x1e21a0,_0x40d718[_0xa511e6(0x16cb)]=_0x1a77c7;function _0x2b52b4(){const _0x3c0a72=_0xa511e6;_0x40d718[_0x3c0a72(0xbae)]=[],_0x88164c[_0x3c0a72(0x14eb)]['save'](_0x40d718[_0x3c0a72(0x14eb)])['$promise'][_0x3c0a72(0x64a)](function(_0x399038){const _0x13d7c7=_0x3c0a72;_0x40d718['networks']['unshift'](_0x399038[_0x13d7c7(0x14f8)]()),_0x16b082[_0x13d7c7(0x1339)]({'title':_0x13d7c7(0x20dd),'msg':_0x40d718['network'][_0x13d7c7(0x2494)]?_0x40d718[_0x13d7c7(0x14eb)][_0x13d7c7(0x2494)]+_0x13d7c7(0x258d):''}),_0x1a77c7(_0x399038);})[_0x3c0a72(0x20cd)](function(_0x2429b1){const _0x15bde2=_0x3c0a72;if(_0x2429b1[_0x15bde2(0x1c52)]&&_0x2429b1[_0x15bde2(0x1c52)][_0x15bde2(0xbae)]&&_0x2429b1[_0x15bde2(0x1c52)]['errors'][_0x15bde2(0x1b9e)]){_0x40d718[_0x15bde2(0xbae)]=_0x2429b1[_0x15bde2(0x1c52)][_0x15bde2(0xbae)]||[{'message':_0x2429b1[_0x15bde2(0x2915)](),'type':_0x15bde2(0x1041)}];for(let _0x35c15d=0x0;_0x35c15d<_0x2429b1[_0x15bde2(0x1c52)][_0x15bde2(0xbae)][_0x15bde2(0x1b9e)];_0x35c15d+=0x1){_0x16b082[_0x15bde2(0x1bd0)]({'title':_0x2429b1[_0x15bde2(0x1c52)][_0x15bde2(0xbae)][_0x35c15d][_0x15bde2(0x2185)],'msg':_0x2429b1[_0x15bde2(0x1c52)][_0x15bde2(0xbae)][_0x35c15d]['message']});}}else _0x16b082[_0x15bde2(0x1bd0)]({'title':_0x2429b1['status']?'API:'+_0x2429b1[_0x15bde2(0x10b3)]+_0x15bde2(0x21db)+_0x2429b1[_0x15bde2(0x2115)]:_0x15bde2(0x1041),'msg':_0x2429b1[_0x15bde2(0x1c52)]?JSON[_0x15bde2(0x2317)](_0x2429b1['data'][_0x15bde2(0x18ca)]):_0x2429b1[_0x15bde2(0x2915)]()});});}function _0xf1d275(){const _0x312778=_0xa511e6;_0x40d718[_0x312778(0xbae)]=[],_0x88164c[_0x312778(0x14eb)][_0x312778(0x2603)]({'id':_0x40d718['network']['id']},_0x40d718[_0x312778(0x14eb)])[_0x312778(0x15e7)][_0x312778(0x64a)](function(_0x489cc1){const _0x5d016a=_0x312778,_0x4012de=_0x28c606()[_0x5d016a(0x27bc)](_0x40d718[_0x5d016a(0x822)],{'id':_0x489cc1['id']});_0x4012de&&_0x28c606()[_0x5d016a(0x14fe)](_0x4012de,_0x28c606()[_0x5d016a(0x27bb)](_0x489cc1['toJSON'](),_0x28c606()[_0x5d016a(0x1ec6)](_0x4012de))),_0x16b082['success']({'title':_0x5d016a(0x27e7),'msg':_0x40d718[_0x5d016a(0x14eb)]['name']?_0x40d718['network'][_0x5d016a(0x2494)]+'\x20has\x20been\x20saved!':''}),_0x1a77c7(_0x489cc1);})[_0x312778(0x20cd)](function(_0x12df80){const _0x1adee6=_0x312778;if(_0x12df80[_0x1adee6(0x1c52)]&&_0x12df80[_0x1adee6(0x1c52)][_0x1adee6(0xbae)]&&_0x12df80[_0x1adee6(0x1c52)][_0x1adee6(0xbae)][_0x1adee6(0x1b9e)]){_0x40d718[_0x1adee6(0xbae)]=_0x12df80['data'][_0x1adee6(0xbae)]||[{'message':_0x12df80[_0x1adee6(0x2915)](),'type':'api.network.update'}];for(let _0x4464bd=0x0;_0x4464bd<_0x12df80['data'][_0x1adee6(0xbae)]['length'];_0x4464bd++){_0x16b082[_0x1adee6(0x1bd0)]({'title':_0x12df80[_0x1adee6(0x1c52)][_0x1adee6(0xbae)][_0x4464bd][_0x1adee6(0x2185)],'msg':_0x12df80[_0x1adee6(0x1c52)][_0x1adee6(0xbae)][_0x4464bd]['message']});}}else _0x16b082['error']({'title':_0x12df80[_0x1adee6(0x10b3)]?_0x1adee6(0x575)+_0x12df80['status']+'\x20-\x20'+_0x12df80[_0x1adee6(0x2115)]:_0x1adee6(0x221c),'msg':_0x12df80[_0x1adee6(0x1c52)]?JSON[_0x1adee6(0x2317)](_0x12df80['data']['message']):_0x12df80[_0x1adee6(0x2915)]()});});}function _0x34c383(_0xf60e68){const _0x3fad22=_0xa511e6;_0x40d718[_0x3fad22(0xbae)]=[];const _0x271389=_0x4a72d1['confirm']()[_0x3fad22(0x2021)]('Are\x20you\x20sure?')['content']('The\x20network\x20will\x20be\x20deleted.')[_0x3fad22(0x213e)](_0x3fad22(0x88e))['ok'](_0x3fad22(0x2664))[_0x3fad22(0x101a)]('Cancel')[_0x3fad22(0x2283)](_0xf60e68);_0x4a72d1[_0x3fad22(0xa60)](_0x271389)['then'](function(){const _0x308f21=_0x3fad22;_0x88164c[_0x308f21(0x14eb)]['delete']({'id':_0x40d718[_0x308f21(0x14eb)]['id']})['$promise'][_0x308f21(0x64a)](function(){const _0x368d7b=_0x308f21;_0x28c606()[_0x368d7b(0x21c7)](_0x40d718[_0x368d7b(0x822)],{'id':_0x40d718[_0x368d7b(0x14eb)]['id']}),_0x16b082[_0x368d7b(0x1339)]({'title':_0x368d7b(0x56e),'msg':(_0x40d718['network'][_0x368d7b(0x2494)]||'network')+_0x368d7b(0x1fa8)}),_0x1a77c7(_0x40d718['network']);})[_0x308f21(0x20cd)](function(_0x592a39){const _0x2defa9=_0x308f21;if(_0x592a39[_0x2defa9(0x1c52)]&&_0x592a39[_0x2defa9(0x1c52)]['errors']&&_0x592a39[_0x2defa9(0x1c52)]['errors'][_0x2defa9(0x1b9e)]){_0x40d718[_0x2defa9(0xbae)]=_0x592a39[_0x2defa9(0x1c52)][_0x2defa9(0xbae)]||[{'message':_0x592a39[_0x2defa9(0x2915)](),'type':_0x2defa9(0x1b59)}];for(let _0x325747=0x0;_0x325747<_0x592a39[_0x2defa9(0x1c52)][_0x2defa9(0xbae)]['length'];_0x325747++){_0x16b082[_0x2defa9(0x1bd0)]({'title':_0x592a39[_0x2defa9(0x1c52)][_0x2defa9(0xbae)][_0x325747][_0x2defa9(0x2185)],'msg':_0x592a39[_0x2defa9(0x1c52)][_0x2defa9(0xbae)][_0x325747][_0x2defa9(0x18ca)]});}}else _0x16b082[_0x2defa9(0x1bd0)]({'title':_0x592a39[_0x2defa9(0x10b3)]?_0x2defa9(0x575)+_0x592a39[_0x2defa9(0x10b3)]+_0x2defa9(0x21db)+_0x592a39[_0x2defa9(0x2115)]:_0x2defa9(0x1b59),'msg':_0x592a39[_0x2defa9(0x1c52)]?JSON[_0x2defa9(0x2317)](_0x592a39[_0x2defa9(0x1c52)][_0x2defa9(0x18ca)]):_0x592a39[_0x2defa9(0x18ca)]||_0x592a39['toString']()});});},function(){});}function _0x1e21a0(_0x202d41){return _0x202d41===null?undefined:new Date(_0x202d41);}function _0x1a77c7(_0x3f6442){const _0x13a352=_0xa511e6;_0x4a72d1[_0x13a352(0x268e)](_0x3f6442);}}const _0x45e223=_0x1733b1;;const _0xe10e15=_0x2e4a48['p']+_0x49a1e3(0x120);;_0x4558f4[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),'$mdSidenav',_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),'networks',_0x49a1e3(0xa19),'msUtils','toasty',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x4558f4(_0xa3b5f7,_0x319040,_0x329f86,_0x71a49a,_0x1e6c00,_0x55954e,_0x1df08c,_0x13fa63,_0x56411d,_0x15b305,_0x28be24,_0x440a51,_0x31c524,_0x25a978,_0x134870){const _0xad51b6=_0x49a1e3,_0x368c03=this;_0x368c03[_0xad51b6(0x1947)]=_0x25a978,_0x368c03[_0xad51b6(0x28d6)]=_0x134870,_0x368c03[_0xad51b6(0x1d3d)]=_0x31c524[_0xad51b6(0x808)](),_0x368c03[_0xad51b6(0x822)]=_0x56411d||{'count':0x0,'rows':[]},_0x368c03['table']='networks',_0x368c03[_0xad51b6(0x300)]='',_0x368c03[_0xad51b6(0x2748)]=null,_0x368c03[_0xad51b6(0x4dc)]=[],_0x368c03[_0xad51b6(0x289a)]={'fields':_0xad51b6(0x172),'sort':_0xad51b6(0x260c),'limit':0xa,'page':0x1},_0x368c03['arraytype']=_0x28c606()['keyBy']([{'option':'LocalNET','value':_0xad51b6(0x2722)},{'option':'ExternIP','value':_0xad51b6(0x18fc)},{'option':_0xad51b6(0xecd),'value':_0xad51b6(0x21e9)},{'option':_0xad51b6(0x1a5c),'value':_0xad51b6(0x119e)}],function(_0x1f378b){const _0xfe73=_0xad51b6;return _0x28c606()[_0xfe73(0x1353)](_0x1f378b[_0xfe73(0x1096)],new RegExp('\x27','g'),'');}),_0x368c03[_0xad51b6(0x1c42)]=_0x3a9cd7,_0x368c03['deleteconfirm']=_0x49e882,_0x368c03[_0xad51b6(0x1339)]=_0x283c6a,_0x368c03[_0xad51b6(0xe07)]=_0x18a317,_0x368c03[_0xad51b6(0x1696)]=_0x4c624c,_0x368c03[_0xad51b6(0x1fea)]=_0x44fea3,_0x368c03['exportSelectedNetworks']=_0x3d2eb2,_0x368c03[_0xad51b6(0x18a)]=_0x25617a,_0x368c03['deselectNetworks']=_0x4f1001,_0x368c03['selectAllNetworks']=_0x40ea67;function _0x3a9cd7(_0x1460b1,_0xb91676){const _0x2dedbd=_0xad51b6;_0x1e6c00['show']({'controller':_0x2dedbd(0x1347),'controllerAs':'vm','templateUrl':_0xe10e15,'parent':angular[_0x2dedbd(0x1f81)](_0x55954e[_0x2dedbd(0xb49)]),'targetEvent':_0xb91676,'clickOutsideToClose':!![],'locals':{'network':_0x1460b1,'networks':_0x368c03[_0x2dedbd(0x822)]['rows'],'license':_0x368c03[_0x2dedbd(0x1947)],'setting':null,'crudPermissions':_0x368c03[_0x2dedbd(0x402)]}});}function _0x49e882(_0x463f96,_0x1ed388){const _0x7282f1=_0xad51b6,_0x521be2=_0x1e6c00[_0x7282f1(0x856)]()[_0x7282f1(0x2021)](_0x7282f1(0x1231)+_0x28c606()[_0x7282f1(0xc01)]('network')+'?')['htmlContent'](_0x7282f1(0x50b)+(_0x463f96[_0x7282f1(0x2494)]||_0x7282f1(0x14eb))+_0x7282f1(0x26d0)+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20network')[_0x7282f1(0x2283)](_0x1ed388)['ok']('OK')[_0x7282f1(0x101a)](_0x7282f1(0x18fd));_0x1e6c00[_0x7282f1(0xa60)](_0x521be2)['then'](function(){_0x44fea3(_0x463f96);},function(){const _0x197575=_0x7282f1;console['log'](_0x197575(0x18fd));});}let _0x52d599=!![],_0x1ccfd2=0x1;_0xa3b5f7[_0xad51b6(0xc62)]('vm.query.filter',function(_0x5674f3,_0x5a798e){const _0x2070d1=_0xad51b6;_0x52d599?_0x1df08c(function(){_0x52d599=![];}):(!_0x5a798e&&(_0x1ccfd2=_0x368c03['query'][_0x2070d1(0xc72)]),_0x5674f3!==_0x5a798e&&(_0x368c03[_0x2070d1(0x289a)][_0x2070d1(0xc72)]=0x1),!_0x5674f3&&(_0x368c03['query']['page']=_0x1ccfd2),_0x368c03[_0x2070d1(0xe07)]());});function _0x283c6a(_0x4376cf){const _0x1176fc=_0xad51b6;_0x368c03[_0x1176fc(0x822)]=_0x4376cf||{'count':0x0,'rows':[]};}function _0x18a317(){const _0x3c65d0=_0xad51b6;_0x368c03[_0x3c65d0(0x289a)][_0x3c65d0(0x24f9)]=(_0x368c03[_0x3c65d0(0x289a)]['page']-0x1)*_0x368c03[_0x3c65d0(0x289a)][_0x3c65d0(0x25bb)],_0x31c524[_0x3c65d0(0x4de)]('admin')?_0x368c03[_0x3c65d0(0x1713)]=_0x15b305[_0x3c65d0(0x14eb)][_0x3c65d0(0x896)](_0x368c03[_0x3c65d0(0x289a)],_0x283c6a)[_0x3c65d0(0x15e7)]:(_0x368c03[_0x3c65d0(0x289a)]['id']=_0x368c03[_0x3c65d0(0x16a8)]['id'],_0x368c03['query'][_0x3c65d0(0xa21)]='Networks',_0x368c03[_0x3c65d0(0x1713)]=_0x15b305[_0x3c65d0(0x16a8)]['getResources'](_0x368c03['query'],_0x283c6a)[_0x3c65d0(0x15e7)]);}function _0x4c624c(_0x262a61,_0x578231){const _0x403e7c=_0xad51b6;_0x1e6c00['show']({'controller':_0x403e7c(0x1347),'controllerAs':'vm','templateUrl':_0xe10e15,'parent':angular[_0x403e7c(0x1f81)](_0x55954e[_0x403e7c(0xb49)]),'targetEvent':_0x262a61,'clickOutsideToClose':!![],'locals':{'network':_0x578231,'networks':_0x368c03[_0x403e7c(0x822)][_0x403e7c(0x28b8)],'license':_0x368c03[_0x403e7c(0x1947)],'setting':_0x368c03[_0x403e7c(0x28d6)],'crudPermissions':_0x368c03[_0x403e7c(0x402)]}});}function _0x44fea3(_0x53686e){const _0x2fbe9a=_0xad51b6;_0x15b305[_0x2fbe9a(0x14eb)][_0x2fbe9a(0xabd)]({'id':_0x53686e['id']})[_0x2fbe9a(0x15e7)][_0x2fbe9a(0x64a)](function(){const _0x2fe419=_0x2fbe9a;_0x28c606()[_0x2fe419(0x21c7)](_0x368c03[_0x2fe419(0x822)][_0x2fe419(0x28b8)],{'id':_0x53686e['id']}),_0x368c03[_0x2fe419(0x822)][_0x2fe419(0xb90)]-=0x1,!_0x368c03['networks']['rows'][_0x2fe419(0x1b9e)]&&_0x368c03[_0x2fe419(0xe07)](),_0x440a51[_0x2fe419(0x1339)]({'title':_0x28c606()[_0x2fe419(0xc01)](_0x2fe419(0x88f))+'\x20deleted!','msg':_0x53686e[_0x2fe419(0x2494)]?_0x53686e[_0x2fe419(0x2494)]+_0x2fe419(0x1fa8):''});})[_0x2fbe9a(0x20cd)](function(_0x75b241){const _0x3b8e89=_0x2fbe9a;if(_0x75b241[_0x3b8e89(0x1c52)]&&_0x75b241[_0x3b8e89(0x1c52)]['errors']&&_0x75b241[_0x3b8e89(0x1c52)][_0x3b8e89(0xbae)][_0x3b8e89(0x1b9e)]){_0x368c03[_0x3b8e89(0xbae)]=_0x75b241[_0x3b8e89(0x1c52)]['errors']||[{'message':_0x75b241[_0x3b8e89(0x2915)](),'type':_0x3b8e89(0xc16)}];for(let _0x5e2833=0x0;_0x5e2833<_0x75b241[_0x3b8e89(0x1c52)]['errors'][_0x3b8e89(0x1b9e)];_0x5e2833++){_0x440a51[_0x3b8e89(0x1bd0)]({'title':_0x75b241[_0x3b8e89(0x1c52)][_0x3b8e89(0xbae)][_0x5e2833][_0x3b8e89(0x2185)],'msg':_0x75b241[_0x3b8e89(0x1c52)][_0x3b8e89(0xbae)][_0x5e2833][_0x3b8e89(0x18ca)]});}}else _0x440a51[_0x3b8e89(0x1bd0)]({'title':_0x75b241[_0x3b8e89(0x10b3)]?_0x3b8e89(0x575)+_0x75b241[_0x3b8e89(0x10b3)]+'\x20-\x20'+_0x75b241[_0x3b8e89(0x2115)]:_0x3b8e89(0xc16),'msg':_0x75b241['data']?JSON[_0x3b8e89(0x2317)](_0x75b241[_0x3b8e89(0x1c52)][_0x3b8e89(0x18ca)]):_0x75b241['message']||_0x75b241['toString']()});});}function _0x3d2eb2(){const _0x3ba4d4=_0xad51b6,_0x496b3a=angular[_0x3ba4d4(0x289e)](_0x368c03[_0x3ba4d4(0x4dc)]);return _0x368c03['selectedNetworks']=[],_0x496b3a;}function _0x25617a(_0x322693){const _0x2d372f=_0xad51b6,_0x227d5a=_0x1e6c00['confirm']()[_0x2d372f(0x2021)](_0x2d372f(0x23f1))['htmlContent'](_0x2d372f(0x50b)+_0x368c03[_0x2d372f(0x4dc)][_0x2d372f(0x1b9e)]+'\x20selected'+_0x2d372f(0x4b8))['ariaLabel'](_0x2d372f(0x2752))[_0x2d372f(0x2283)](_0x322693)['ok']('OK')[_0x2d372f(0x101a)](_0x2d372f(0x18fd));_0x1e6c00['show'](_0x227d5a)[_0x2d372f(0x64a)](function(){const _0x27b824=_0x2d372f;_0x368c03[_0x27b824(0x4dc)][_0x27b824(0x1397)](function(_0x169124){_0x44fea3(_0x169124);}),_0x368c03[_0x27b824(0x4dc)]=[];});}function _0x4f1001(){const _0x3a6399=_0xad51b6;_0x368c03[_0x3a6399(0x4dc)]=[];}function _0x40ea67(){const _0x29fb95=_0xad51b6;_0x368c03[_0x29fb95(0x4dc)]=_0x368c03[_0x29fb95(0x822)][_0x29fb95(0x28b8)];}}const _0x515c73=_0x4558f4;;_0x72c827['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x1371),'smtp',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x72c827(_0x1dfc25,_0x38a387,_0xbac939,_0x1358ff,_0x147b52,_0x4bab1a,_0x34b205,_0x4f98e2,_0x18bd2c,_0x40874a,_0x5e5dcd,_0x26e936,_0x46c63b,_0x17c39b){const _0x27c812=_0x49a1e3,_0x575487=this;_0x575487[_0x27c812(0x1d3d)]=_0x5e5dcd[_0x27c812(0x808)](),_0x575487[_0x27c812(0xbae)]=[],_0x575487['setting']=_0x46c63b,_0x575487[_0x27c812(0x1947)]=_0x26e936,_0x575487[_0x27c812(0x402)]=_0x17c39b,_0x575487[_0x27c812(0x6c2)]={},_0x575487['passwordPattern']=_0x575487['setting']&&_0x575487['setting'][_0x27c812(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x575487[_0x27c812(0x2021)]=_0x27c812(0xeaf),_0x575487['smtp']=angular['copy'](_0x18bd2c),_0x575487[_0x27c812(0x1371)]=_0x4f98e2,_0x575487[_0x27c812(0x1701)]=![];!_0x575487[_0x27c812(0xbcd)]&&(_0x575487[_0x27c812(0xbcd)]={'service':!![]},_0x575487[_0x27c812(0x2021)]=_0x27c812(0x13b4),_0x575487['newSmtp']=!![]);_0x575487[_0x27c812(0x13ce)]=_0x150ca7,_0x575487[_0x27c812(0x1a21)]=_0xad8ac3,_0x575487[_0x27c812(0x40e)]=_0x490699,_0x575487[_0x27c812(0x1605)]=_0x4046bd,_0x575487[_0x27c812(0x16cb)]=_0x16da0f;function _0x150ca7(){const _0x97b5a7=_0x27c812;_0x575487[_0x97b5a7(0xbae)]=[],_0x40874a[_0x97b5a7(0x1b1e)][_0x97b5a7(0x2479)](_0x575487[_0x97b5a7(0xbcd)])[_0x97b5a7(0x15e7)][_0x97b5a7(0x64a)](function(_0x5bcfe5){const _0x13eaab=_0x97b5a7;_0x575487[_0x13eaab(0x1371)][_0x13eaab(0x1891)](_0x5bcfe5[_0x13eaab(0x14f8)]()),_0x34b205[_0x13eaab(0x1339)]({'title':_0x13eaab(0x1b94),'msg':_0x575487[_0x13eaab(0xbcd)]['name']?_0x575487[_0x13eaab(0xbcd)]['name']+_0x13eaab(0x258d):''}),_0x16da0f(_0x5bcfe5);})['catch'](function(_0x2e859a){const _0x4acf24=_0x97b5a7;if(_0x2e859a[_0x4acf24(0x1c52)]&&_0x2e859a['data'][_0x4acf24(0xbae)]&&_0x2e859a['data'][_0x4acf24(0xbae)]['length']){_0x575487[_0x4acf24(0xbae)]=_0x2e859a['data'][_0x4acf24(0xbae)]||[{'message':_0x2e859a[_0x4acf24(0x2915)](),'type':'api.mailAccount.save'}];for(let _0x444066=0x0;_0x444066<_0x2e859a[_0x4acf24(0x1c52)][_0x4acf24(0xbae)][_0x4acf24(0x1b9e)];_0x444066+=0x1){_0x34b205['error']({'title':_0x2e859a[_0x4acf24(0x1c52)]['errors'][_0x444066][_0x4acf24(0x2185)],'msg':_0x2e859a[_0x4acf24(0x1c52)][_0x4acf24(0xbae)][_0x444066][_0x4acf24(0x18ca)]});}}else _0x34b205[_0x4acf24(0x1bd0)]({'title':_0x2e859a['status']?'API:'+_0x2e859a[_0x4acf24(0x10b3)]+_0x4acf24(0x21db)+_0x2e859a['statusText']:'api.mailAccount.save','msg':_0x2e859a[_0x4acf24(0x1c52)]?JSON['stringify'](_0x2e859a[_0x4acf24(0x1c52)][_0x4acf24(0x18ca)]):_0x2e859a['toString']()});});}function _0xad8ac3(){const _0x5d35a3=_0x27c812;_0x575487['errors']=[],_0x40874a['mailAccount']['update']({'id':_0x575487[_0x5d35a3(0xbcd)]['id']},_0x575487[_0x5d35a3(0xbcd)])[_0x5d35a3(0x15e7)][_0x5d35a3(0x64a)](function(_0x3ab7b8){const _0x1e1d3e=_0x5d35a3,_0x2a0ce7=_0x28c606()[_0x1e1d3e(0x27bc)](_0x575487[_0x1e1d3e(0x1371)],{'id':_0x3ab7b8['id']});_0x2a0ce7&&_0x28c606()[_0x1e1d3e(0x14fe)](_0x2a0ce7,_0x28c606()[_0x1e1d3e(0x27bb)](_0x3ab7b8['toJSON'](),_0x28c606()[_0x1e1d3e(0x1ec6)](_0x2a0ce7))),_0x34b205[_0x1e1d3e(0x1339)]({'title':'Smtp\x20properly\x20saved!','msg':_0x575487[_0x1e1d3e(0xbcd)][_0x1e1d3e(0x2494)]?_0x575487[_0x1e1d3e(0xbcd)][_0x1e1d3e(0x2494)]+_0x1e1d3e(0x271):''}),_0x16da0f(_0x3ab7b8);})[_0x5d35a3(0x20cd)](function(_0x213c7e){const _0x2213f0=_0x5d35a3;if(_0x213c7e[_0x2213f0(0x1c52)]&&_0x213c7e[_0x2213f0(0x1c52)][_0x2213f0(0xbae)]&&_0x213c7e['data'][_0x2213f0(0xbae)][_0x2213f0(0x1b9e)]){_0x575487[_0x2213f0(0xbae)]=_0x213c7e['data']['errors']||[{'message':_0x213c7e[_0x2213f0(0x2915)](),'type':_0x2213f0(0x150)}];for(let _0x2facfe=0x0;_0x2facfe<_0x213c7e[_0x2213f0(0x1c52)][_0x2213f0(0xbae)][_0x2213f0(0x1b9e)];_0x2facfe++){_0x34b205[_0x2213f0(0x1bd0)]({'title':_0x213c7e[_0x2213f0(0x1c52)][_0x2213f0(0xbae)][_0x2facfe][_0x2213f0(0x2185)],'msg':_0x213c7e[_0x2213f0(0x1c52)]['errors'][_0x2facfe]['message']});}}else _0x34b205[_0x2213f0(0x1bd0)]({'title':_0x213c7e[_0x2213f0(0x10b3)]?_0x2213f0(0x575)+_0x213c7e[_0x2213f0(0x10b3)]+_0x2213f0(0x21db)+_0x213c7e[_0x2213f0(0x2115)]:'api.mailAccount.update','msg':_0x213c7e[_0x2213f0(0x1c52)]?JSON[_0x2213f0(0x2317)](_0x213c7e[_0x2213f0(0x1c52)][_0x2213f0(0x18ca)]):_0x213c7e['toString']()});});}function _0x490699(_0xfe8580){const _0x55dbdb=_0x27c812;_0x575487['errors']=[];const _0x347a53=_0x1358ff[_0x55dbdb(0x856)]()[_0x55dbdb(0x2021)](_0x55dbdb(0x103a))[_0x55dbdb(0x12b8)](_0x55dbdb(0xac9))['ariaLabel'](_0x55dbdb(0x845))['ok'](_0x55dbdb(0x2664))[_0x55dbdb(0x101a)](_0x55dbdb(0x1dc6))[_0x55dbdb(0x2283)](_0xfe8580);_0x1358ff['show'](_0x347a53)['then'](function(){const _0xc98bfa=_0x55dbdb;_0x40874a[_0xc98bfa(0x1b1e)][_0xc98bfa(0xabd)]({'id':_0x575487[_0xc98bfa(0xbcd)]['id']})[_0xc98bfa(0x15e7)][_0xc98bfa(0x64a)](function(){const _0x39d56f=_0xc98bfa;_0x28c606()[_0x39d56f(0x21c7)](_0x575487[_0x39d56f(0x1371)],{'id':_0x575487[_0x39d56f(0xbcd)]['id']}),_0x34b205[_0x39d56f(0x1339)]({'title':'Smtp\x20properly\x20deleted!','msg':(_0x575487[_0x39d56f(0xbcd)]['name']||'smtp')+_0x39d56f(0x1fa8)}),_0x16da0f(_0x575487['smtp']);})[_0xc98bfa(0x20cd)](function(_0x449037){const _0x77abf8=_0xc98bfa;if(_0x449037[_0x77abf8(0x1c52)]&&_0x449037[_0x77abf8(0x1c52)][_0x77abf8(0xbae)]&&_0x449037[_0x77abf8(0x1c52)][_0x77abf8(0xbae)][_0x77abf8(0x1b9e)]){_0x575487['errors']=_0x449037[_0x77abf8(0x1c52)][_0x77abf8(0xbae)]||[{'message':_0x449037['toString'](),'type':'api.mailAccount.delete'}];for(let _0x5cf47e=0x0;_0x5cf47e<_0x449037[_0x77abf8(0x1c52)]['errors']['length'];_0x5cf47e++){_0x34b205[_0x77abf8(0x1bd0)]({'title':_0x449037['data'][_0x77abf8(0xbae)][_0x5cf47e]['type'],'msg':_0x449037[_0x77abf8(0x1c52)][_0x77abf8(0xbae)][_0x5cf47e][_0x77abf8(0x18ca)]});}}else _0x34b205[_0x77abf8(0x1bd0)]({'title':_0x449037['status']?_0x77abf8(0x575)+_0x449037['status']+_0x77abf8(0x21db)+_0x449037[_0x77abf8(0x2115)]:_0x77abf8(0x2f7),'msg':_0x449037[_0x77abf8(0x1c52)]?JSON[_0x77abf8(0x2317)](_0x449037[_0x77abf8(0x1c52)]['message']):_0x449037[_0x77abf8(0x18ca)]||_0x449037[_0x77abf8(0x2915)]()});});},function(){});}function _0x4046bd(_0x1db6b9){return _0x1db6b9===null?undefined:new Date(_0x1db6b9);}function _0x16da0f(_0xe5792){const _0x5ab4a3=_0x27c812;_0x1358ff[_0x5ab4a3(0x268e)](_0xe5792);}}const _0x6c6a0d=_0x72c827;;_0x14c6a3[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1371),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0x1947),_0x49a1e3(0xdcf)];function _0x14c6a3(_0xe9bb69,_0x46f2f5,_0xfe6be8,_0x2f7349,_0x586db2){const _0x16d181=_0x49a1e3,_0x42f5ca=this;_0x42f5ca[_0x16d181(0x1d3d)]=_0x586db2[_0x16d181(0x808)](),_0x42f5ca['license']=_0x2f7349,_0x42f5ca[_0x16d181(0x1371)]=_0xe9bb69,_0x42f5ca['smtp']={};_0x42f5ca[_0x16d181(0x1371)]&&_0x42f5ca['smtps'][_0x16d181(0x28b8)]&&_0x42f5ca[_0x16d181(0x1371)][_0x16d181(0x28b8)]['length']?_0x42f5ca[_0x16d181(0xbcd)]=_0x42f5ca[_0x16d181(0x1371)][_0x16d181(0x28b8)][0x0]:_0x42f5ca[_0x16d181(0xbcd)]={'service':!![],'Smtp':{'service':null}};_0x42f5ca[_0x16d181(0x1a21)]=_0x5f045e,_0x42f5ca[_0x16d181(0x4b7)]=_0x557c47;function _0x557c47(){const _0x1d95be=_0x16d181;_0x42f5ca['smtp']['id']&&_0x46f2f5[_0x1d95be(0x1b1e)]['verifySmtp']({'id':_0x42f5ca[_0x1d95be(0xbcd)]['id']})[_0x1d95be(0x15e7)][_0x1d95be(0x64a)](function(){const _0x31c7d5=_0x1d95be;_0xfe6be8[_0x31c7d5(0x1339)]({'title':_0x31c7d5(0xb01),'msg':_0x42f5ca['smtp'][_0x31c7d5(0x2494)]?_0x42f5ca[_0x31c7d5(0xbcd)]['name']+_0x31c7d5(0xcf9):''});})[_0x1d95be(0x20cd)](function(_0x157d57){const _0x43a1ef=_0x1d95be;_0xfe6be8[_0x43a1ef(0x1bd0)]({'title':'Smtp\x20not\x20verified!\x20Remember\x20to\x20save\x20before\x20to\x20verify!','msg':_0x157d57[_0x43a1ef(0x1c52)]?JSON[_0x43a1ef(0x2317)](_0x157d57[_0x43a1ef(0x1c52)]):_0x157d57[_0x43a1ef(0x2915)](),'timeout':0x2710});});}function _0x5f045e(){const _0xa86a82=_0x16d181;_0x42f5ca[_0xa86a82(0xbcd)]['id']?_0x46f2f5[_0xa86a82(0x1b1e)]['update']({'id':_0x42f5ca[_0xa86a82(0xbcd)]['id']},_0x42f5ca['smtp'])[_0xa86a82(0x15e7)]['then'](function(){const _0x57c3c8=_0xa86a82;_0xfe6be8[_0x57c3c8(0x1339)]({'title':_0x57c3c8(0x1734),'msg':_0x42f5ca[_0x57c3c8(0xbcd)][_0x57c3c8(0x2494)]?_0x42f5ca['smtp'][_0x57c3c8(0x2494)]+_0x57c3c8(0x2032):''});})[_0xa86a82(0x20cd)](function(_0x115b55){const _0x5ae157=_0xa86a82;_0xfe6be8[_0x5ae157(0x1bd0)]({'title':_0x115b55['status']?_0x5ae157(0x575)+_0x115b55[_0x5ae157(0x10b3)]+_0x5ae157(0x21db)+_0x115b55[_0x5ae157(0x2115)]:_0x5ae157(0x3d1),'msg':_0x115b55[_0x5ae157(0x1c52)]?JSON['stringify'](_0x115b55[_0x5ae157(0x1c52)]):_0x115b55[_0x5ae157(0x2915)]()});}):_0x46f2f5[_0xa86a82(0x1b1e)][_0xa86a82(0x2479)](_0x42f5ca[_0xa86a82(0xbcd)])[_0xa86a82(0x15e7)][_0xa86a82(0x64a)](function(_0x4f33bb){const _0x270721=_0xa86a82;_0x28c606()[_0x270721(0x14fe)](_0x42f5ca[_0x270721(0xbcd)],_0x4f33bb),_0xfe6be8['success']({'title':_0x270721(0x1734),'msg':_0x42f5ca[_0x270721(0xbcd)][_0x270721(0x2494)]?_0x42f5ca['smtp'][_0x270721(0x2494)]+_0x270721(0x2032):''});})['catch'](function(_0x354ca2){const _0x37bd53=_0xa86a82;_0xfe6be8[_0x37bd53(0x1bd0)]({'title':_0x354ca2[_0x37bd53(0x10b3)]?_0x37bd53(0x575)+_0x354ca2[_0x37bd53(0x10b3)]+_0x37bd53(0x21db)+_0x354ca2[_0x37bd53(0x2115)]:'SYSTEM:GETmailAccount','msg':_0x354ca2['data']?JSON[_0x37bd53(0x2317)](_0x354ca2[_0x37bd53(0x1c52)]):_0x354ca2[_0x37bd53(0x2915)]()});});}}const _0x184d3d=_0x14c6a3;;_0x3f3e48[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad),_0x49a1e3(0x21f8)];function _0x3f3e48(_0x1d249b,_0x554f18){const _0x3129e8=_0x49a1e3;_0x1d249b['state']('app.settings',{'abstract':!![],'url':_0x3129e8(0x200c)})[_0x3129e8(0x14f2)](_0x3129e8(0x803),{'url':_0x3129e8(0x153e),'views':{'content@app':{'templateUrl':_0x395814,'controller':'GeneralsController\x20as\x20vm'}},'resolve':{'generals':[_0x3129e8(0x107c),function(_0x258d3a){const _0x237ccc=_0x3129e8;return _0x258d3a[_0x237ccc(0x1268)](_0x237ccc(0x23fb),{'fields':_0x237ccc(0x5a6),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x3129e8(0x1c89)})[_0x3129e8(0x14f2)](_0x3129e8(0x128c),{'url':_0x3129e8(0x20a2),'views':{'content@app':{'templateUrl':_0x327dbb,'controller':_0x3129e8(0x1d80)}},'resolve':{'smtps':[_0x3129e8(0x107c),function(_0x48631e){const _0x1d7149=_0x3129e8;return _0x48631e['resolve'](_0x1d7149(0x1cdb),{'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':_0x3129e8(0x1c89)})[_0x3129e8(0x14f2)](_0x3129e8(0x10d6),{'url':_0x3129e8(0x1549),'views':{'content@app':{'templateUrl':_0x185940,'controller':_0x3129e8(0x26b4)}},'resolve':{'networks':[_0x3129e8(0x107c),function(_0x177021){const _0x29797f=_0x3129e8;return _0x177021[_0x29797f(0x1268)]('network@get',{'fields':_0x29797f(0x172),'sort':_0x29797f(0x260c),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x3129e8(0x1c89)})[_0x3129e8(0x14f2)]('app.settings.customizations',{'url':_0x3129e8(0x31a),'views':{'content@app':{'templateUrl':_0x4fa74d,'controller':_0x3129e8(0x18f9)}},'resolve':{'customizations':[_0x3129e8(0x107c),function(_0x38d964){const _0x5a085f=_0x3129e8;return _0x38d964[_0x5a085f(0x1268)](_0x5a085f(0x23fb),{'fields':_0x5a085f(0x256f),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x3129e8(0x1c89)})['state'](_0x3129e8(0x883),{'url':_0x3129e8(0x221e),'views':{'content@app':{'templateUrl':_0xd32fd3,'controller':_0x3129e8(0x172e)}},'resolve':{'cloudProviders':['apiResolver',function(_0x157dd1){const _0x5d26be=_0x3129e8;return _0x157dd1['resolve'](_0x5d26be(0xf46),{'fields':_0x5d26be(0x1b05),'sort':_0x5d26be(0x260c),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'}),_0x554f18[_0x3129e8(0x1bde)]('app/main/apps/settings');}angular[_0x49a1e3(0x20d2)]('app.settings',['ngCsv',_0x49a1e3(0x3c7),_0x49a1e3(0x1fe3),_0x49a1e3(0x891),_0x49a1e3(0x2516),'ckeditor',_0x49a1e3(0x1434),'ngAria','ngAnimate',_0x49a1e3(0xb19),_0x49a1e3(0x1a59),'mwFormViewer',_0x49a1e3(0x1cfe),_0x49a1e3(0x1bd1),_0x49a1e3(0x1b5f),_0x49a1e3(0x1cff),_0x49a1e3(0x1046),_0x49a1e3(0x1acd),_0x49a1e3(0xc48),_0x49a1e3(0x28dd),_0x49a1e3(0x18e4),_0x49a1e3(0x27a2),_0x49a1e3(0xaad)])['config'](_0x3f3e48)[_0x49a1e3(0x38e)](_0x49a1e3(0x188),_0x5929b8)['controller']('CreateOrEditCloudProviderDialogController',_0x244156)[_0x49a1e3(0x38e)](_0x49a1e3(0x1d07),_0x13c4bc)[_0x49a1e3(0x38e)](_0x49a1e3(0xebd),_0x179b05)[_0x49a1e3(0x38e)](_0x49a1e3(0x12d),_0x427da6)[_0x49a1e3(0x38e)](_0x49a1e3(0x518),_0x5bc389)['controller'](_0x49a1e3(0x10ae),_0x22a043)[_0x49a1e3(0x38e)]('CustomizationpreferredController',_0x4d7686)[_0x49a1e3(0x38e)]('CreateOrEditGeneralDialogController',_0x58df8b)[_0x49a1e3(0x38e)](_0x49a1e3(0x1ddf),_0x4271ed)[_0x49a1e3(0x38e)]('CreateOrEditNetworkDialogController',_0x45e223)[_0x49a1e3(0x38e)](_0x49a1e3(0x1f41),_0x515c73)[_0x49a1e3(0x38e)](_0x49a1e3(0x2421),_0x6c6a0d)[_0x49a1e3(0x38e)]('SmtpController',_0x184d3d);;const _0x4eec59=_0x2e4a48['p']+_0x49a1e3(0x1f6a);;const _0x16e0e1=_0x2e4a48['p']+_0x49a1e3(0x27ed);;const _0x2a0257=_0x2e4a48['p']+'src/js/modules/main/apps/motiondialer/views/realtime/queues/view.html/view.html';;const _0x18eb38=_0x2e4a48['p']+_0x49a1e3(0x2815);;const _0x3f87bb=_0x2e4a48['p']+'src/js/modules/main/apps/motiondialer/views/realtime/abandonedcalls/view.html/view.html';;const _0x3ef78a=_0x2e4a48['p']+'src/js/modules/main/apps/motiondialer/views/realtime/queue_params/view.html/view.html';;const _0x50fead=_0x2e4a48['p']+_0x49a1e3(0x293b);;const _0x186bcf=_0x2e4a48['p']+_0x49a1e3(0x283a);;_0x41fc30['$inject']=['$scope',_0x49a1e3(0x20d4),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x1fe7),_0x49a1e3(0x298c),_0x49a1e3(0xa19),_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xdcf),_0x49a1e3(0x633),_0x49a1e3(0x680),_0x49a1e3(0xd77),_0x49a1e3(0x16d7)];function _0x41fc30(_0x64cdd8,_0x37938e,_0x12c572,_0x374a66,_0x13b9b5,_0x346c0f,_0xf71728,_0x1100e6,_0x1c2bfd,_0x18e20b,_0x4bd0ea,_0x4e4041,_0x53a28d,_0x3da547){const _0x451085=_0x49a1e3,_0x6854a1=this;_0x6854a1[_0x451085(0x1d3d)]=_0x18e20b[_0x451085(0x808)](),_0x6854a1[_0x451085(0xd77)]=_0x53a28d?_0x53a28d:[],_0x6854a1[_0x451085(0x16d7)]=_0x3da547,_0x6854a1[_0x451085(0x7d3)]={'count':0x0,'rows':[]},_0x6854a1[_0x451085(0x16ea)]=![],_0x6854a1[_0x451085(0x175a)]=!![],_0x6854a1['userProfile']=_0x1100e6,_0x6854a1[_0x451085(0x16b2)]=_0x1c2bfd&&_0x1c2bfd[_0x451085(0xb90)]==0x1?_0x1c2bfd['rows'][0x0]:null,_0x6854a1[_0x451085(0x402)]=_0x18e20b[_0x451085(0xa7e)](_0x6854a1[_0x451085(0x16b2)]?_0x6854a1[_0x451085(0x16b2)]['crudPermissions']:null),_0x6854a1[_0x451085(0x289a)]={'fields':_0x451085(0x1eb4),'type':'outbound','queuecallerexitreason':_0x451085(0x1ece)+','+_0x451085(0x2037),'sort':_0x451085(0x260c),'limit':0xa,'page':0x1},_0x6854a1['getAbandonedCalls']=_0x225b41,_0x6854a1['refreshAbandonedCalls']=_0x1eb613,_0x6854a1[_0x451085(0x281e)]=_0x28d396,_0x6854a1['dispose']=_0x51e8c4,_0x6854a1[_0x451085(0x23d3)]=_0x18dfcb,_0x6854a1[_0x451085(0x139a)]=_0x3c33bd,_0x4bd0ea[_0x451085(0x1939)]('voiceQueueReport:save',_0x6854a1[_0x451085(0x23d3)]),_0x4bd0ea['on'](_0x451085(0x568),_0x6854a1[_0x451085(0x139a)]),_0x467734();function _0x467734(){const _0x39bc8b=_0x451085;let _0x114157=_0x13b9b5[_0x39bc8b(0x294)][_0x39bc8b(0x1ed0)](_0x39bc8b(0x28b3)+_0x6854a1[_0x39bc8b(0x1d3d)]['id']);if(_0x114157)_0x114157=JSON[_0x39bc8b(0x27f1)](_0x114157),_0x114157&&_0x114157['query']&&(_0x6854a1[_0x39bc8b(0x289a)]=_0x28c606()[_0x39bc8b(0x14fe)](_0x114157[_0x39bc8b(0x289a)],_0x28c606()[_0x39bc8b(0xd09)](_0x6854a1[_0x39bc8b(0x289a)],['sort',_0x39bc8b(0x25bb),_0x39bc8b(0xc72)])),_0x6854a1[_0x39bc8b(0x289a)]=_0x28c606()[_0x39bc8b(0xd09)](_0x6854a1[_0x39bc8b(0x289a)],_0x39bc8b(0xcec)));else{const _0x3b59a7={'$gte':_0x2ac33a()()[_0x39bc8b(0x246e)](_0x39bc8b(0x5f5))[_0x39bc8b(0xebc)](0x0,!![])[_0x39bc8b(0x1c2c)](),'$lte':_0x2ac33a()()['endOf'](_0x39bc8b(0x5f5))[_0x39bc8b(0xebc)](0x0,!![])[_0x39bc8b(0x1c2c)]()};_0x6854a1[_0x39bc8b(0x289a)][_0x39bc8b(0x2378)]=_0x3b59a7;}_0x18e20b[_0x39bc8b(0x4de)](_0x39bc8b(0x333))?_0xf71728[_0x39bc8b(0x2e8)]['getQueues']({'id':_0x18e20b[_0x39bc8b(0x808)]()['id'],'fields':'id,name','channel':_0x39bc8b(0x227c),'type':_0x39bc8b(0xbce),'nolimit':!![]})['$promise'][_0x39bc8b(0x64a)](function(_0x3d4d4e){const _0x49bb93=_0x39bc8b;_0x6854a1[_0x49bb93(0x1c06)]=_0x3d4d4e||{'count':0x0,'rows':[]},_0x6854a1[_0x49bb93(0xb03)]=_0x28c606()[_0x49bb93(0x239c)](_0x28c606()[_0x49bb93(0x161e)](_0x6854a1[_0x49bb93(0x1c06)][_0x49bb93(0x28b8)],_0x49bb93(0x2494)),_0x49bb93(0x2494));})[_0x39bc8b(0x20cd)](function(_0x3ac7df){console['error'](_0x3ac7df);})[_0x39bc8b(0x988)](function(){const _0x37a078=_0x39bc8b;_0x6854a1[_0x37a078(0x9fc)]=_0x511af4(),_0x6854a1[_0x37a078(0x2446)]();}):_0xf71728[_0x39bc8b(0x16a8)][_0x39bc8b(0x2565)]({'id':_0x6854a1[_0x39bc8b(0x1d3d)][_0x39bc8b(0x21ac)],'section':'QueueCampaigns','channel':_0x39bc8b(0x227c),'type':_0x39bc8b(0xbce),'sort':_0x39bc8b(0x260c),'nolimit':!![]})['$promise'][_0x39bc8b(0x64a)](function(_0x4841d8){const _0xc320f5=_0x39bc8b;_0x6854a1[_0xc320f5(0x1c06)]=_0x4841d8||{'count':0x0,'rows':[]},_0x6854a1['queuesMap']=_0x28c606()[_0xc320f5(0x239c)](_0x28c606()[_0xc320f5(0x161e)](_0x6854a1[_0xc320f5(0x1c06)][_0xc320f5(0x28b8)],_0xc320f5(0x2494)),_0xc320f5(0x2494));})['catch'](function(_0x284841){console['error'](_0x284841);})[_0x39bc8b(0x988)](function(){const _0x48decf=_0x39bc8b;_0x6854a1['quickFilters']=_0x511af4(),_0x6854a1[_0x48decf(0x2446)]();});}function _0x511af4(){const _0x1682c5=_0x451085;return[{'name':_0x1682c5(0x1967),'key':'createdAt','type':_0x1682c5(0x232e),'label':_0x1682c5(0x2720)},{'name':'Agent','key':_0x1682c5(0x16fa),'type':_0x1682c5(0x2926),'label':_0x1682c5(0x18bf),'options':_0x6854a1['agents'][_0x1682c5(0x28b8)],'customOptions':[{'value':_0x1682c5(0x249f),'translate':_0x1682c5(0x276d)},{'value':undefined,'translate':_0x1682c5(0x2200)}]},{'name':'Campaign','key':_0x1682c5(0x1e4e),'type':_0x1682c5(0x20ae),'label':_0x1682c5(0x1078),'options':_0x6854a1[_0x1682c5(0x1c06)][_0x1682c5(0x28b8)]}];}function _0x225b41(){const _0x32e9f2=_0x451085;_0x6854a1[_0x32e9f2(0x175a)]=![],_0x6854a1[_0x32e9f2(0x1c06)]['count']>0x0?(_0x6854a1[_0x32e9f2(0x289a)][_0x32e9f2(0x1e4e)]=_0x6854a1[_0x32e9f2(0x1c06)][_0x32e9f2(0xb90)]===0x1?_0x6854a1[_0x32e9f2(0x1c06)][_0x32e9f2(0x28b8)][0x0][_0x32e9f2(0x2494)]:_0x6854a1[_0x32e9f2(0x289a)][_0x32e9f2(0x1e4e)],_0x6854a1['query'][_0x32e9f2(0x24f9)]=(_0x6854a1[_0x32e9f2(0x289a)]['page']-0x1)*_0x6854a1[_0x32e9f2(0x289a)][_0x32e9f2(0x25bb)],_0x13b9b5[_0x32e9f2(0x294)][_0x32e9f2(0x15da)]('motion2.realtime.abandoned.bull.abandonedCalls:'+_0x6854a1['currentUser']['id'],JSON[_0x32e9f2(0x2317)]({'query':_0x28c606()[_0x32e9f2(0xd09)](_0x6854a1[_0x32e9f2(0x289a)],_0x32e9f2(0x1e4e))})),_0x6854a1[_0x32e9f2(0x1713)]=_0xf71728['voiceQueueReport']['getVoiceQueuesReport'](_0x6854a1[_0x32e9f2(0x289a)],_0x1a6531)[_0x32e9f2(0x15e7)]):_0x1a6531(null);}function _0x1a6531(_0xd30b40){const _0xa709fb=_0x451085;_0x6854a1['abandonedCalls']=_0xd30b40||{'count':0x0,'rows':[]},_0x6854a1[_0xa709fb(0x175a)]=!![];}function _0x1eb613(){const _0x322b7b=_0x451085;_0x6854a1[_0x322b7b(0x16ea)]=![],_0x6854a1[_0x322b7b(0x2446)]();}function _0x18dfcb(_0x1738c9){const _0x32b39e=_0x451085,_0x1a2828=_0x32b39e(0xbce);_0x1738c9&&_0x6854a1[_0x32b39e(0xb03)]&&_0x1738c9[_0x32b39e(0x1e4e)][_0x32b39e(0x2185)]===_0x1a2828&&_0x6854a1['queuesMap'][_0x1738c9[_0x32b39e(0x1e4e)]]&&(_0x6854a1[_0x32b39e(0x16ea)]=!![]);}function _0x3c33bd(_0x189d7a){const _0x49b4a7=_0x451085;if(_0x189d7a){const _0x5f5ae8=_0x28c606()['findIndex'](_0x6854a1[_0x49b4a7(0x7d3)]['rows'],['id',_0x189d7a['id']]);_0x5f5ae8>=0x0&&_0x28c606()['merge'](_0x6854a1[_0x49b4a7(0x7d3)]['rows'][_0x5f5ae8],_0x189d7a);}}function _0x28d396(_0x41a538,_0x31a504){const _0x468107=_0x451085;_0x41a538&&_0xf71728[_0x468107(0x26cb)][_0x468107(0x2603)]({'id':_0x41a538['id'],'lastAssignedTo':_0x31a504?_0x31a504[_0x468107(0x2494)]:null,'assigned':_0x31a504?!![]:![]})[_0x468107(0x15e7)]['catch'](function(_0x238f0c){console['log'](_0x238f0c);});}function _0x51e8c4(_0x353a9c){const _0x3e6046=_0x451085;_0x12c572[_0x3e6046(0xa60)]({'controller':_0x3e6046(0x1d96),'controllerAs':'vm','templateUrl':_0x186bcf,'parent':angular[_0x3e6046(0x1f81)](_0x374a66[_0x3e6046(0xb49)]),'targetEvent':_0x353a9c,'resolve':{'globalDispositions':['apiResolver',function(_0x3ded0a){const _0x53ae72=_0x3e6046;return _0x3ded0a[_0x53ae72(0x1268)]('disposition@get',{'MailAccountId':_0x53ae72(0x8f1),'FaxAccountId':_0x53ae72(0x8f1),'SmsAccountId':_0x53ae72(0x8f1),'WhatsappAccountId':'null','OpenchannelAccountId':_0x53ae72(0x8f1),'ChatWebsiteId':_0x53ae72(0x8f1),'ListId':_0x53ae72(0x8f1)});}]},'locals':{'dispositions':_0x6854a1[_0x3e6046(0x16d7)],'call':_0x353a9c}})[_0x3e6046(0x64a)](function(_0x4ae245){const _0x115ad3=_0x3e6046;if(_0x4ae245){const _0x29980f={'id':_0x353a9c['id'],'disposition':_0x4ae245['firstLevel']||null,'secondDisposition':_0x4ae245['secondLevel']||null,'thirdDisposition':_0x4ae245[_0x115ad3(0x842)]||null};_0xf71728[_0x115ad3(0x26cb)]['update'](_0x29980f)[_0x115ad3(0x15e7)][_0x115ad3(0x20cd)](function(_0x3dd8f8){const _0x55f669=_0x115ad3;console[_0x55f669(0x9b4)](_0x3dd8f8);});}});}let _0x40e7cb=!![],_0x27e841=0x1;_0x64cdd8[_0x451085(0xc62)](_0x451085(0x1cb9),function(_0x46365c,_0x3797bc){const _0x2fbe68=_0x451085;_0x40e7cb?_0x37938e(function(){_0x40e7cb=![];}):(!_0x3797bc&&(_0x27e841=_0x6854a1[_0x2fbe68(0x289a)][_0x2fbe68(0xc72)]),_0x46365c!==_0x3797bc&&(_0x6854a1[_0x2fbe68(0x289a)]['page']=0x1),!_0x46365c&&(_0x6854a1[_0x2fbe68(0x289a)][_0x2fbe68(0xc72)]=_0x27e841),_0x6854a1['getAbandonedCalls']());}),_0x64cdd8[_0x451085(0x8c7)](_0x451085(0xf28),function(){const _0x4fea91=_0x451085;_0x4bd0ea[_0x4fea91(0x1951)](_0x4fea91(0x5ed)),_0x4bd0ea[_0x4fea91(0x1951)](_0x4fea91(0x568));});}const _0x4b1bea=_0x41fc30;;_0x7e8817['$inject']=[_0x49a1e3(0x1674),'$q','$timeout',_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x1ce1),_0x49a1e3(0x23d1),_0x49a1e3(0xd77),'rpcAgents',_0x49a1e3(0xa19),_0x49a1e3(0x633),_0x49a1e3(0x680),_0x49a1e3(0x1f8c),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x1239)];function _0x7e8817(_0x4dc669,_0x3dc519,_0x116935,_0xcbb5d1,_0x1fd1f5,_0x5735c2,_0x510904,_0xaa9d80,_0x47736a,_0x4e12a2,_0x18263d,_0x6d1b18,_0x1b1585,_0x4198ac,_0x5cd043,_0x27a944,_0x32a372,_0x15c544){const _0x51a0a9=_0x49a1e3,_0x4ab711=this,_0x17b752=[_0x51a0a9(0x1c79),_0x51a0a9(0x1eab),'lastLoginAt',_0x51a0a9(0x2148),'pauseType',_0x51a0a9(0x2148),_0x51a0a9(0xe2f),_0x51a0a9(0x81e),_0x51a0a9(0x2248),_0x51a0a9(0x1451),_0x51a0a9(0x292),_0x51a0a9(0xf2d),_0x51a0a9(0x1f34),'faxPause',_0x51a0a9(0x11a4),_0x51a0a9(0x80a),'openchannelCapacity',_0x51a0a9(0x8cb),_0x51a0a9(0x708),_0x51a0a9(0x12c5),_0x51a0a9(0x1839),_0x51a0a9(0x1b1d),_0x51a0a9(0x1099),_0x51a0a9(0x9ec),'smsCurrentCapacity','whatsappCurrentCapacity','faxCurrentCapacity',_0x51a0a9(0x363),_0x51a0a9(0x11d7),'mailStatus',_0x51a0a9(0x2431),_0x51a0a9(0x22a4),'faxStatus',_0x51a0a9(0x2783),_0x51a0a9(0x2642),_0x51a0a9(0x1857),'mailStatusTime',_0x51a0a9(0x24a3),_0x51a0a9(0x17fb),'faxStatusTime','voiceStatusTime',_0x51a0a9(0x1e4e),_0x51a0a9(0xeae),_0x51a0a9(0x2921),_0x51a0a9(0x52c),_0x51a0a9(0x20d3)],_0x3c1a1a=[_0x51a0a9(0x2248),_0x51a0a9(0x1451),_0x51a0a9(0x292),'smsPause',_0x51a0a9(0x1f34),_0x51a0a9(0x211),_0x51a0a9(0x11a4),_0x51a0a9(0x1eab)];_0x4ab711[_0x51a0a9(0x1d3d)]=_0x27a944[_0x51a0a9(0x808)](),_0x4ab711['availableStates']=[_0x51a0a9(0xf8e),_0x51a0a9(0x7be),'busy',_0x51a0a9(0x8cc),_0x51a0a9(0x181)],_0x4ab711['pauses']=_0x510904||{'count':0x0,'rows':[]},_0x4ab711['license']=_0x32a372,_0x4ab711['userProfile']=_0x4198ac,_0x4ab711[_0x51a0a9(0x16b2)]=_0x5cd043&&_0x5cd043[_0x51a0a9(0xb90)]==0x1?_0x5cd043[_0x51a0a9(0x28b8)][0x0]:null,_0x4ab711[_0x51a0a9(0x402)]=_0x27a944[_0x51a0a9(0xa7e)](_0x4ab711[_0x51a0a9(0x16b2)]?_0x4ab711['userProfileSection'][_0x51a0a9(0x402)]:null),_0x4ab711[_0x51a0a9(0xd77)]=_0xaa9d80?_0x28c606()[_0x51a0a9(0x161e)](_0xaa9d80['rows']?_0xaa9d80['rows']:[],'id'):{},_0x4ab711[_0x51a0a9(0x287f)]=_0x47736a?_0x28c606()[_0x51a0a9(0x161e)](_0x47736a[_0x51a0a9(0x28b8)]?_0x47736a[_0x51a0a9(0x28b8)]:[],'id'):{},_0x4ab711[_0x51a0a9(0x2d8)]={},_0x4ab711[_0x51a0a9(0x2789)]=![],_0x4ab711['order']=[],_0x4ab711[_0x51a0a9(0xf0f)]={};for(const _0x7ed8c9 in _0x4ab711[_0x51a0a9(0xd77)]){typeof _0x4ab711['agents'][_0x7ed8c9]!==_0x51a0a9(0x19a1)&&(_0x4ab711[_0x51a0a9(0xd77)][_0x7ed8c9]['init']=!![]);}_0x4ab711['query']={'limit':0xa,'page':0x1,'order':_0x51a0a9(0x15c),'globalStatusFilter':'','pauseTypeFilter':''},_0x4ab711[_0x51a0a9(0xad9)]=_0x4cd3f0,_0x4ab711[_0x51a0a9(0x279d)]=_0x5a70fc,_0x4ab711[_0x51a0a9(0x2826)]=_0x4364fc,_0x4ab711[_0x51a0a9(0xab9)]=_0x52274a,_0x4ab711['showInfo']=_0x339c43,_0x4ab711[_0x51a0a9(0xb1c)]=_0x234e8d,_0x4ab711[_0x51a0a9(0xba5)]=_0x489e0a,_0x4ab711['isPause']=_0x3567a0,_0x4ab711[_0x51a0a9(0x15d)]=_0x5d900f,_0x4ab711[_0x51a0a9(0x2744)]=_0x331129,_0x4ab711[_0x51a0a9(0x249c)]=_0xe5f536,_0x4ab711[_0x51a0a9(0x2853)]=_0x51ae9a,_0x4ab711['onInit']=_0x5c8e5a,_0x4ab711['onConnect']=_0x4749b4,_0x4ab711[_0x51a0a9(0x125b)]=_0x44fcaf,_0x4ab711[_0x51a0a9(0x24f7)]=_0x354d45,_0x18263d['on'](_0x51a0a9(0x17e9),_0x4ab711[_0x51a0a9(0x249c)]),_0x18263d['on'](_0x51a0a9(0x130f),_0x4ab711[_0x51a0a9(0x2853)]),_0x18263d['on']('user:agentconnect',_0x4ab711[_0x51a0a9(0x1a7c)]),_0x18263d['on'](_0x51a0a9(0x1b7e),_0x4ab711[_0x51a0a9(0x125b)]),_0x5c8e5a();let _0x2ac025=_0x15c544(function(){const _0x1eda03=_0x51a0a9;_0x4ab711[_0x1eda03(0x2789)]&&(_0x4ab711[_0x1eda03(0x2789)]=![],_0x5c8e5a());},0x3e7);function _0x5c8e5a(){const _0xee987a=_0x51a0a9;_0x4ab711[_0xee987a(0x2789)]=![];const _0x3b7e5d=_0x3dc519['defer']();_0x4ab711[_0xee987a(0x1713)]=_0x3b7e5d[_0xee987a(0x1713)],_0x4ab711[_0xee987a(0x2202)]=[],_0x4ab711[_0xee987a(0x1997)]=[],_0x28c606()['forIn'](_0x4ab711[_0xee987a(0xd77)],function(_0xac5871,_0x1355e2){const _0x4bb57a=_0xee987a;_0x4ab711['rpcAgents'][_0x1355e2]&&_0x28c606()[_0x4bb57a(0x14fe)](_0xac5871,_0x28c606()[_0x4bb57a(0x27bb)](_0x28c606()[_0x4bb57a(0xd09)](_0x4ab711[_0x4bb57a(0x287f)][_0x1355e2],_0x3c1a1a),_0x17b752)),_0x489e0a(_0xac5871),_0xac5871[_0x4bb57a(0x1eab)]?(_0x4ab711[_0x4bb57a(0x2202)][_0x4bb57a(0x1954)](_0xac5871),_0x4ab711[_0x4bb57a(0xf0f)][_0xac5871[_0x4bb57a(0xe2f)]]=_0x1355e2):_0xac5871['globalStatusTime']=_0x28c606()[_0x4bb57a(0x1251)](_0x2ac33a()()[_0x4bb57a(0x1c2c)]('x'));});_0x4ab711[_0xee987a(0x289a)][_0xee987a(0x1de8)]&&_0x28c606()['remove'](_0x4ab711[_0xee987a(0x2202)],function(_0x2b82e6){const _0x306c29=_0xee987a;return _0x2b82e6[_0x306c29(0x876)]!==_0x4ab711[_0x306c29(0x289a)][_0x306c29(0x1de8)];});_0x4ab711[_0xee987a(0x289a)][_0xee987a(0x1421)]&&_0x28c606()[_0xee987a(0x21c7)](_0x4ab711['filteredAgents'],function(_0x404d90){const _0x35fcfb=_0xee987a;return _0x404d90[_0x35fcfb(0x84f)]!==_0x4ab711['query'][_0x35fcfb(0x1421)];});_0x4ab711['query'][_0xee987a(0xcec)]&&_0x28c606()[_0xee987a(0x21c7)](_0x4ab711[_0xee987a(0x2202)],function(_0x242e4c){const _0x548c23=_0xee987a;return _0x242e4c[_0x548c23(0x15c)][_0x548c23(0x2554)]()['indexOf'](_0x4ab711[_0x548c23(0x289a)][_0x548c23(0xcec)][_0x548c23(0x2554)]())<0x0;});_0x4ab711[_0xee987a(0x2202)]=_0x218a91(_0x4ab711[_0xee987a(0x2202)]);const _0x19238b=(_0x4ab711[_0xee987a(0x289a)][_0xee987a(0xc72)]-0x1)*_0x4ab711[_0xee987a(0x289a)][_0xee987a(0x25bb)];_0x4ab711[_0xee987a(0x2d8)]=_0x28c606()[_0xee987a(0xfeb)](_0x4ab711[_0xee987a(0x2202)],_0x19238b)['slice'](0x0,_0x4ab711['query'][_0xee987a(0x25bb)]);for(let _0x5e0e38=0x0;_0x5e0e38<_0x4ab711['paginatedAgents']['length'];_0x5e0e38+=0x1){_0x4ab711[_0xee987a(0x1997)][_0xee987a(0x1954)](_0x4ab711['paginatedAgents'][_0x5e0e38]['id']);}_0x3b7e5d[_0xee987a(0x1268)](),_0x4ab711[_0xee987a(0x2789)]=!![];}function _0xe5f536(_0x2d4939){const _0x16df17=_0x51a0a9;_0x4ab711['agents'][_0x2d4939['id']]&&(_0x28c606()[_0x16df17(0x14fe)](_0x4ab711['agents'][_0x2d4939['id']],_0x28c606()[_0x16df17(0x27bb)](_0x28c606()[_0x16df17(0xd09)](_0x2d4939,_0x3c1a1a),_0x17b752)),_0x28c606()[_0x16df17(0x14fe)](_0x4ab711['rpcAgents'][_0x2d4939['id']],_0x28c606()[_0x16df17(0x27bb)](_0x28c606()[_0x16df17(0xd09)](_0x2d4939,_0x3c1a1a),_0x17b752)),_0x489e0a(_0x4ab711['agents'][_0x2d4939['id']]));}function _0x51ae9a(_0x56519d){const _0x33c7d5=_0x51a0a9;_0x4ab711['agents'][_0x56519d['id']]&&(_0x28c606()[_0x33c7d5(0x14fe)](_0x4ab711[_0x33c7d5(0xd77)][_0x56519d['id']],_0x28c606()[_0x33c7d5(0x27bb)](_0x56519d,_0x17b752)),_0x28c606()['merge'](_0x4ab711[_0x33c7d5(0x287f)][_0x56519d['id']],_0x28c606()[_0x33c7d5(0x27bb)](_0x56519d,_0x17b752)),_0x56519d[_0x33c7d5(0x2148)]&&(_0x4ab711[_0x33c7d5(0xd77)][_0x56519d['id']]['globalStatusTime']=_0x56519d[_0x33c7d5(0x2148)],_0x4ab711[_0x33c7d5(0x287f)][_0x56519d['id']][_0x33c7d5(0x14f5)]=_0x56519d[_0x33c7d5(0x2148)]),_0x489e0a(_0x4ab711['agents'][_0x56519d['id']]));}function _0x4749b4(_0x589e0d){const _0x19b533=_0x51a0a9;_0x4ab711['agents'][_0x4ab711[_0x19b533(0xf0f)][_0x589e0d[_0x19b533(0xf65)]]]&&(_0x28c606()[_0x19b533(0x14fe)](_0x4ab711[_0x19b533(0xd77)][_0x4ab711[_0x19b533(0xf0f)][_0x589e0d['destaccountcode']]],_0x28c606()[_0x19b533(0x27bb)](_0x589e0d,[_0x19b533(0x1e4e),_0x19b533(0xeae)])),_0x28c606()[_0x19b533(0x14fe)](_0x4ab711[_0x19b533(0x287f)][_0x4ab711[_0x19b533(0xf0f)][_0x589e0d[_0x19b533(0xf65)]]],_0x28c606()[_0x19b533(0x27bb)](_0x589e0d,[_0x19b533(0x1e4e),_0x19b533(0xeae)])));}function _0x44fcaf(_0x2c6d41){const _0x4d0570=_0x51a0a9;_0x4ab711[_0x4d0570(0xd77)][_0x4ab711['agentInternal'][_0x2c6d41[_0x4d0570(0xf65)]]]&&(_0x4ab711[_0x4d0570(0xd77)][_0x4ab711[_0x4d0570(0xf0f)][_0x2c6d41[_0x4d0570(0xf65)]]]=_0x28c606()[_0x4d0570(0xd09)](_0x4ab711['agents'][_0x4ab711['agentInternal'][_0x2c6d41[_0x4d0570(0xf65)]]],[_0x4d0570(0x1e4e),'destconnectedlinenum']),_0x4ab711[_0x4d0570(0x287f)][_0x4ab711['agentInternal'][_0x2c6d41[_0x4d0570(0xf65)]]]=_0x28c606()['omit'](_0x4ab711[_0x4d0570(0x287f)][_0x4ab711['agentInternal'][_0x2c6d41[_0x4d0570(0xf65)]]],[_0x4d0570(0x1e4e),'destconnectedlinenum']));}function _0x4cd3f0(_0x10f203){const _0x3e9bae=_0x51a0a9;return _0x4e12a2[_0x3e9bae(0x2e8)]['logout']({'id':_0x10f203['id'],'device':_0x3e9bae(0x252e),'agent_id':_0x10f203['id'],'agent_name':_0x10f203[_0x3e9bae(0x2494)]})['$promise'][_0x3e9bae(0x64a)](function(){const _0x40e3fe=_0x3e9bae;_0x6d1b18['success']({'title':'Agent\x20logout','msg':_0x10f203['fullname']+_0x40e3fe(0x236)}),_0x4ab711[_0x40e3fe(0xd77)][_0x10f203['id']]&&(_0x4ab711[_0x40e3fe(0xd77)][_0x10f203['id']][_0x40e3fe(0x1eab)]=![]),_0x4ab711['rpcAgents'][_0x10f203['id']]&&(_0x4ab711['rpcAgents'][_0x10f203['id']][_0x40e3fe(0x1eab)]=![]),_0x5c8e5a();})[_0x3e9bae(0x20cd)](function(_0x19cc53){const _0x194ec9=_0x3e9bae;_0x6d1b18['error']({'title':_0x19cc53[_0x194ec9(0x10b3)]?_0x194ec9(0x575)+_0x19cc53['status']+_0x194ec9(0x21db)+_0x19cc53['statusText']:_0x194ec9(0x180),'msg':_0x19cc53[_0x194ec9(0x1c52)]?JSON[_0x194ec9(0x2317)](_0x19cc53[_0x194ec9(0x1c52)][_0x194ec9(0x18ca)]):_0x19cc53[_0x194ec9(0x2915)]()});});}function _0x4364fc(_0xea5f46,_0x4dcbed){const _0x3b5fb9=_0x51a0a9;return _0x4e12a2['user'][_0x3b5fb9(0x2826)]({'id':_0xea5f46['id'],'type':_0x4dcbed})['$promise'][_0x3b5fb9(0x64a)](function(_0x34bc9d){const _0x1dc642=_0x3b5fb9;_0x4ab711[_0x1dc642(0xd77)][_0xea5f46['id']]&&_0x28c606()[_0x1dc642(0x14fe)](_0x4ab711['agents'][_0xea5f46['id']],_0x28c606()['pick'](_0x34bc9d,_0x17b752)),_0x4ab711['rpcAgents'][_0xea5f46['id']]&&_0x28c606()[_0x1dc642(0x14fe)](_0x4ab711['rpcAgents'][_0xea5f46['id']],_0x28c606()[_0x1dc642(0x27bb)](_0x34bc9d,_0x17b752)),_0x489e0a(_0x4ab711[_0x1dc642(0xd77)][_0xea5f46['id']]);})[_0x3b5fb9(0x20cd)](function(_0x2b5ab6){const _0x34b177=_0x3b5fb9;_0x6d1b18[_0x34b177(0x1bd0)]({'title':_0x2b5ab6[_0x34b177(0x10b3)]?_0x34b177(0x575)+_0x2b5ab6[_0x34b177(0x10b3)]+_0x34b177(0x21db)+_0x2b5ab6[_0x34b177(0x2115)]:_0x34b177(0x180),'msg':_0x2b5ab6[_0x34b177(0x1c52)]?JSON[_0x34b177(0x2317)](_0x2b5ab6[_0x34b177(0x1c52)]['message']):_0x2b5ab6['toString']()});});}function _0x52274a(_0x26f413){const _0x3e1a2a=_0x51a0a9;return _0x4e12a2['user'][_0x3e1a2a(0x818)]({'id':_0x26f413['id']})['$promise'][_0x3e1a2a(0x64a)](function(_0x25e28e){const _0x234464=_0x3e1a2a;_0x4ab711[_0x234464(0xd77)][_0x26f413['id']]&&_0x28c606()[_0x234464(0x14fe)](_0x4ab711[_0x234464(0xd77)][_0x26f413['id']],_0x28c606()['pick'](_0x25e28e,_0x17b752)),_0x4ab711[_0x234464(0x287f)][_0x26f413['id']]&&_0x28c606()['merge'](_0x4ab711[_0x234464(0x287f)][_0x26f413['id']],_0x28c606()[_0x234464(0x27bb)](_0x25e28e,_0x17b752)),_0x489e0a(_0x4ab711[_0x234464(0xd77)][_0x26f413['id']]);})[_0x3e1a2a(0x20cd)](function(_0x3e017e){const _0xcc6a9a=_0x3e1a2a;_0x6d1b18['error']({'title':_0x3e017e[_0xcc6a9a(0x10b3)]?'API:'+_0x3e017e[_0xcc6a9a(0x10b3)]+_0xcc6a9a(0x21db)+_0x3e017e[_0xcc6a9a(0x2115)]:_0xcc6a9a(0x180),'msg':_0x3e017e[_0xcc6a9a(0x1c52)]?JSON[_0xcc6a9a(0x2317)](_0x3e017e[_0xcc6a9a(0x1c52)][_0xcc6a9a(0x18ca)]):_0x3e017e[_0xcc6a9a(0x2915)]()});});}function _0x339c43(_0x376134){const _0x309b1a=_0x51a0a9;_0xcbb5d1[_0x309b1a(0xa60)](_0xcbb5d1[_0x309b1a(0x2540)]()[_0x309b1a(0x1945)](!![])['title'](_0x309b1a(0xe68))[_0x309b1a(0x33a)](_0x309b1a(0x424))['ok']('Ok')['targetEvent'](_0x376134));}function _0x5a70fc(_0x2c7c1d,_0xca15eb){const _0x332faf=_0x51a0a9;_0xcbb5d1[_0x332faf(0xa60)]({'controller':_0x332faf(0x5a7),'controllerAs':'vm','templateUrl':_0x5eb675,'parent':angular[_0x332faf(0x1f81)](_0x1fd1f5[_0x332faf(0xb49)]),'targetEvent':_0xca15eb,'clickOutsideToClose':!![],'locals':{'agent':_0x2c7c1d,'agents':[],'channel':_0x332faf(0x227c),'direction':_0x332faf(0xbce),'crudPermissions':_0x4ab711['crudPermissions']}});}function _0x3567a0(_0x2f2229){const _0xf14d9a=_0x51a0a9;return _0x2f2229===_0xf14d9a(0x2826)||_0x2f2229===_0xf14d9a(0x1bcc);}function _0x5d900f(_0x414fa6){return _0x414fa6==='pause';}function _0x331129(_0x5c4792){const _0x53696b=_0x51a0a9;return _0x5c4792===_0x53696b(0x1bcc);}function _0x180987(_0xe5f265){const _0x1b6c79=_0x51a0a9;return _0xe5f265==='idle'||_0xe5f265==='unknown'||_0xe5f265==='unavailable'||_0xe5f265===_0x1b6c79(0xf8e)||_0x28c606()[_0x1b6c79(0x28d7)](_0xe5f265);}function _0x234e8d(_0x29fee6,_0x334592){const _0x474819=_0x51a0a9;if(_0x334592===_0x474819(0x227c)){if(_0x29fee6[_0x334592+_0x474819(0x2311)]!==_0x474819(0xac6))return _0x29fee6[_0x334592+_0x474819(0x2311)];if(_0x29fee6[_0x334592+_0x474819(0x9d3)])return _0x29fee6[_0x334592+'Status']=_0x474819(0x2826),'pause';return _0x474819(0xac6);}else{if(_0x29fee6[_0x334592+_0x474819(0x9d3)])return _0x29fee6[_0x334592+_0x474819(0x2311)]=_0x474819(0x2826),'pause';return _0x29fee6[_0x334592+_0x474819(0x2311)];}}function _0x489e0a(_0x44d73e){const _0x3ca9e9=_0x51a0a9;let _0x2cb515=_0x3ca9e9(0x1191);if(_0x28c606()[_0x3ca9e9(0x2972)]([_0x234e8d(_0x44d73e,_0x3ca9e9(0x227c)),_0x234e8d(_0x44d73e,'chat'),_0x234e8d(_0x44d73e,'mail'),_0x234e8d(_0x44d73e,_0x3ca9e9(0x28ad)),_0x234e8d(_0x44d73e,_0x3ca9e9(0x10aa)),_0x234e8d(_0x44d73e,_0x3ca9e9(0x1a29)),_0x234e8d(_0x44d73e,_0x3ca9e9(0x1d37))],_0x3567a0))_0x2cb515=_0x3ca9e9(0x2826);else{if(_0x28c606()['some']([_0x234e8d(_0x44d73e,_0x3ca9e9(0x227c)),_0x234e8d(_0x44d73e,'chat'),_0x234e8d(_0x44d73e,_0x3ca9e9(0xc71)),_0x234e8d(_0x44d73e,_0x3ca9e9(0x28ad)),_0x234e8d(_0x44d73e,'sms'),_0x234e8d(_0x44d73e,'whatsapp'),_0x234e8d(_0x44d73e,'fax')],_0x3567a0))_0x2cb515=_0x3ca9e9(0x1bcc);else _0x28c606()[_0x3ca9e9(0x2972)]([_0x234e8d(_0x44d73e,_0x3ca9e9(0x227c)),_0x234e8d(_0x44d73e,_0x3ca9e9(0xf52)),_0x234e8d(_0x44d73e,_0x3ca9e9(0xc71)),_0x234e8d(_0x44d73e,'openchannel'),_0x234e8d(_0x44d73e,_0x3ca9e9(0x10aa)),_0x234e8d(_0x44d73e,_0x3ca9e9(0x1a29)),_0x234e8d(_0x44d73e,_0x3ca9e9(0x1d37))],_0x180987)?_0x2cb515=_0x3ca9e9(0xac6):_0x2cb515='busy';}_0x44d73e[_0x3ca9e9(0x876)]!==_0x2cb515&&(_0x44d73e[_0x3ca9e9(0x876)]=_0x2cb515,_0x44d73e[_0x3ca9e9(0x2354)]?(_0x44d73e[_0x3ca9e9(0x2354)]=![],_0x44d73e[_0x3ca9e9(0x14f5)]=_0x3567a0(_0x2cb515)?_0x28c606()[_0x3ca9e9(0x1251)](_0x2ac33a()(_0x44d73e['lastPauseAt'])['format']('x')):_0x28c606()[_0x3ca9e9(0x2a2)]([_0x44d73e['voiceStatusTime'],_0x44d73e[_0x3ca9e9(0x2642)],_0x44d73e[_0x3ca9e9(0x1f78)],_0x44d73e['smsStatusTime'],_0x44d73e[_0x3ca9e9(0x17fb)],_0x44d73e[_0x3ca9e9(0x1857)],_0x44d73e['faxStatusTime']])):_0x44d73e[_0x3ca9e9(0x14f5)]=_0x28c606()[_0x3ca9e9(0x1251)](_0x2ac33a()()[_0x3ca9e9(0x1c2c)]('x')));}function _0x218a91(_0x2b4163){const _0x1073dd=_0x51a0a9,_0x4eb0ff=_0x28c606()[_0x1073dd(0x1273)](_0x4ab711[_0x1073dd(0x289a)][_0x1073dd(0x1997)],'-')?'desc':_0x1073dd(0x2449);return _0x28c606()[_0x1073dd(0x288e)](_0x2b4163,[_0x4ab711[_0x1073dd(0x289a)][_0x1073dd(0x1997)][_0x1073dd(0x1353)]('-','')],[_0x4eb0ff]);}function _0x3cde04(){_0x2ac025&&(_0x15c544['cancel'](_0x2ac025),_0x2ac025=null);}function _0x354d45(_0x3ca89a,_0x90f42b){const _0x3b59df=_0x51a0a9;return _0x4e12a2[_0x3b59df(0x2e8)][_0x3b59df(0x2603)]({'id':_0x3ca89a['id']},{'screenrecording':_0x90f42b})[_0x3b59df(0x15e7)]['catch'](function(_0x31553a){const _0x534655=_0x3b59df;_0x6d1b18[_0x534655(0x1bd0)]({'title':_0x31553a[_0x534655(0x10b3)]?_0x534655(0x575)+_0x31553a[_0x534655(0x10b3)]+_0x534655(0x21db)+_0x31553a[_0x534655(0x2115)]:_0x534655(0x15e5),'msg':_0x31553a['data']?JSON[_0x534655(0x2317)](_0x31553a[_0x534655(0x1c52)]['message']):_0x31553a[_0x534655(0x2915)]()});});}_0x4dc669[_0x51a0a9(0x8c7)](_0x51a0a9(0xf28),function(){const _0x498f42=_0x51a0a9;_0x18263d['removeAllListeners'](_0x498f42(0x17e9)),_0x18263d[_0x498f42(0x1951)](_0x498f42(0x130f)),_0x18263d['removeAllListeners'](_0x498f42(0x197a)),_0x18263d[_0x498f42(0x1951)]('user:agentcomplete'),_0x3cde04();});}const _0x350bc9=_0x7e8817;;const _0x24210d=_0x2e4a48['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/create/dialog.html/dialog.html';;_0x2a5436['$inject']=[_0x49a1e3(0x1674),'$timeout','$mdDialog','$document','$interval',_0x49a1e3(0x1163),'campaigns','api',_0x49a1e3(0x633),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),'Auth'];function _0x2a5436(_0x5c6f15,_0x18b425,_0x162f19,_0x2d3202,_0x2c294a,_0x3f74a9,_0x41d417,_0x37627e,_0x12d7bf,_0x6f59f3,_0xaaaf6,_0x40a39b){const _0x28ff76=_0x49a1e3,_0x1d0b52=this,_0x5ce8ad=[_0x28ff76(0x2494),_0x28ff76(0xc51),_0x28ff76(0x201a),_0x28ff76(0x18ca),_0x28ff76(0xa1b),_0x28ff76(0xb71),_0x28ff76(0x1e45),_0x28ff76(0x1608),'TrunkId',_0x28ff76(0x1bf5),_0x28ff76(0x22b),_0x28ff76(0x931),_0x28ff76(0x23c3)];_0x1d0b52[_0x28ff76(0x1d3d)]=_0x40a39b['getCurrentUser'](),_0x1d0b52[_0x28ff76(0xb90)]=_0x41d417[_0x28ff76(0xb90)],_0x1d0b52['campaigns']=_0x41d417?_0x28c606()[_0x28ff76(0x161e)](_0x41d417[_0x28ff76(0x28b8)]?_0x41d417[_0x28ff76(0x28b8)]:[],'id'):{},_0x1d0b52[_0x28ff76(0x1163)]=_0x3f74a9?_0x28c606()[_0x28ff76(0x161e)](_0x3f74a9[_0x28ff76(0x28b8)]?_0x3f74a9[_0x28ff76(0x28b8)]:[],'id'):{},_0x1d0b52[_0x28ff76(0x16a8)]=_0x6f59f3,_0x1d0b52[_0x28ff76(0x16b2)]=_0xaaaf6&&_0xaaaf6[_0x28ff76(0xb90)]==0x1?_0xaaaf6[_0x28ff76(0x28b8)][0x0]:null,_0x1d0b52[_0x28ff76(0x402)]=_0x40a39b[_0x28ff76(0xa7e)](_0x1d0b52[_0x28ff76(0x16b2)]?_0x1d0b52[_0x28ff76(0x16b2)][_0x28ff76(0x402)]:null),_0x1d0b52[_0x28ff76(0x289a)]={'sort':'-updatedAt','limit':0xa,'page':0x1},_0x1d0b52['success']=_0x87d038,_0x1d0b52[_0x28ff76(0x22c6)]=_0x3f05be,_0x1d0b52[_0x28ff76(0x249c)]=_0x5e0c83,_0x1d0b52[_0x28ff76(0xea6)]=_0x26921f,_0x1d0b52[_0x28ff76(0x1b76)]=_0x38658e,_0x12d7bf['onWithoutApply']('campaign:save',_0x1d0b52[_0x28ff76(0x249c)]),_0x1d0b52[_0x28ff76(0xcfd)]=_0x2c294a(function(){},0x3e7);function _0x26921f(){const _0x1f8e9=_0x28ff76;_0x28c606()[_0x1f8e9(0x1789)](_0x1d0b52[_0x1f8e9(0x26f0)],function(_0x1f22e5,_0x40e09d){const _0x357773=_0x1f8e9;_0x1d0b52['rpcCampaigns'][_0x40e09d]&&_0x28c606()[_0x357773(0x14fe)](_0x1f22e5,_0x28c606()[_0x357773(0x27bb)](_0x1d0b52[_0x357773(0x1163)][_0x40e09d],_0x5ce8ad));});}function _0x5e0c83(_0x2ecce9){const _0x854e6c=_0x28ff76;_0x1d0b52['campaigns'][_0x2ecce9['id']]&&(_0x28c606()[_0x854e6c(0x14fe)](_0x1d0b52[_0x854e6c(0x26f0)][_0x2ecce9['id']],_0x28c606()[_0x854e6c(0x27bb)](_0x2ecce9,_0x5ce8ad)),_0x28c606()[_0x854e6c(0x14fe)](_0x1d0b52[_0x854e6c(0x1163)][_0x2ecce9['id']],_0x28c606()['pick'](_0x2ecce9,_0x5ce8ad)));}let _0x54cff2=!![],_0x3d15b5=0x1;_0x5c6f15['$watch'](_0x28ff76(0x1cb9),function(_0x353e7a,_0xd3d56f){const _0x9eece6=_0x28ff76;_0x54cff2?_0x18b425(function(){_0x54cff2=![];}):(!_0xd3d56f&&(_0x3d15b5=_0x1d0b52[_0x9eece6(0x289a)][_0x9eece6(0xc72)]),_0x353e7a!==_0xd3d56f&&(_0x1d0b52[_0x9eece6(0x289a)][_0x9eece6(0xc72)]=0x1),!_0x353e7a&&(_0x1d0b52[_0x9eece6(0x289a)][_0x9eece6(0xc72)]=_0x3d15b5),_0x1d0b52[_0x9eece6(0x22c6)]());});function _0x87d038(_0x4a085a){const _0x2c3e5f=_0x28ff76;_0x1d0b52[_0x2c3e5f(0xb90)]=_0x4a085a['count'],_0x1d0b52['campaigns']=_0x4a085a?_0x28c606()['keyBy'](_0x4a085a['rows']?_0x4a085a['rows']:[],'id'):{},_0x26921f();}function _0x3f05be(){const _0x20573a=_0x28ff76;_0x1d0b52['query'][_0x20573a(0x24f9)]=(_0x1d0b52[_0x20573a(0x289a)][_0x20573a(0xc72)]-0x1)*_0x1d0b52[_0x20573a(0x289a)][_0x20573a(0x25bb)],_0x40a39b[_0x20573a(0x4de)]('admin')?_0x1d0b52[_0x20573a(0x1713)]=_0x37627e[_0x20573a(0x1aba)][_0x20573a(0x896)](_0x1d0b52['query'],_0x87d038)['$promise']:(_0x1d0b52[_0x20573a(0x289a)]['id']=_0x1d0b52[_0x20573a(0x16a8)]['id'],_0x1d0b52[_0x20573a(0x289a)]['section']='IvrCampaigns',_0x1d0b52[_0x20573a(0x1713)]=_0x37627e[_0x20573a(0x16a8)][_0x20573a(0x2565)](_0x1d0b52[_0x20573a(0x289a)],_0x87d038)[_0x20573a(0x15e7)]);}function _0x38658e(_0x92d1c9,_0x112153){const _0x188bcc=_0x28ff76;_0x162f19[_0x188bcc(0xa60)]({'controller':_0x188bcc(0x27e6),'controllerAs':'vm','templateUrl':_0x24210d,'parent':angular['element'](_0x2d3202['body']),'targetEvent':_0x92d1c9,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x112153,'ivrCampaigns':_0x28c606()[_0x188bcc(0x2146)](_0x1d0b52[_0x188bcc(0x26f0)]),'license':null,'setting':null,'crudPermissions':_0x1d0b52[_0x188bcc(0x402)]}});}_0x5c6f15[_0x28ff76(0x8c7)](_0x28ff76(0xf28),function(){const _0x221c0c=_0x28ff76;_0x12d7bf[_0x221c0c(0x1951)]('campaign:save'),_0x1d0b52['interval']&&_0x2c294a[_0x221c0c(0x101a)](_0x1d0b52[_0x221c0c(0xcfd)]);});}const _0x4b11aa=_0x2a5436;;_0x539d10['$inject']=['$scope',_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0xd77),_0x49a1e3(0x1c06),'rpcVoiceQueuesChannels',_0x49a1e3(0xa19),'socket',_0x49a1e3(0x1f8c),_0x49a1e3(0x680),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xdcf)];function _0x539d10(_0x3a5c3c,_0x5956af,_0x514111,_0x24ada5,_0x3893a3,_0x4f31a5,_0x31be8a,_0x374e5d,_0x372f30,_0x2287c2,_0x26f110,_0x5666d4,_0x13c5b3){const _0x3bea1f=_0x49a1e3,_0x1752c1=this;_0x1752c1['currentUser']=_0x13c5b3['getCurrentUser'](),_0x1752c1[_0x3bea1f(0xd77)]=_0x24ada5||{'count':0x0,'rows':[]},_0x1752c1[_0x3bea1f(0x1c06)]=_0x3893a3?_0x28c606()[_0x3bea1f(0x161e)](_0x3893a3[_0x3bea1f(0x28b8)]?_0x3893a3[_0x3bea1f(0x28b8)]:[],'name'):{},_0x1752c1['rpcVoiceQueuesChannelsTmp']=_0x4f31a5?_0x28c606()[_0x3bea1f(0x161e)](_0x4f31a5['rows']?_0x28c606()[_0x3bea1f(0xcec)](_0x4f31a5[_0x3bea1f(0x28b8)],{'type':_0x3bea1f(0xbce)}):[],_0x3bea1f(0x2947)):{},_0x1752c1['rpcVoiceQueuesChannels']={},_0x1752c1[_0x3bea1f(0x16a8)]=_0x26f110,_0x1752c1[_0x3bea1f(0x16b2)]=_0x5666d4&&_0x5666d4[_0x3bea1f(0xb90)]==0x1?_0x5666d4[_0x3bea1f(0x28b8)][0x0]:null,_0x1752c1[_0x3bea1f(0x402)]=_0x13c5b3[_0x3bea1f(0xa7e)](_0x1752c1['userProfileSection']?_0x1752c1[_0x3bea1f(0x16b2)][_0x3bea1f(0x402)]:null),_0x1752c1[_0x3bea1f(0x2470)]={'limit':0xa,'page':0x1},_0x1752c1[_0x3bea1f(0x14ae)]=_0x2db7d9,_0x1752c1[_0x3bea1f(0xea6)]=_0x12b57a,_0x1752c1[_0x3bea1f(0x249c)]=_0x119553,_0x1752c1[_0x3bea1f(0x1025)]=_0xcf32ab,_0x1752c1[_0x3bea1f(0x19dc)]=_0x92802d,_0x1752c1[_0x3bea1f(0x17b9)]=_0x499ed4,_0x1752c1['redirectToNumber']=_0xfdea32,_0x374e5d['on'](_0x3bea1f(0xed5),_0x1752c1[_0x3bea1f(0x249c)]),_0x374e5d['on']('voice_queue_channel:remove',_0x1752c1[_0x3bea1f(0x1025)]);function _0x2db7d9(_0x1fea09){return _0x28c606()['size'](_0x1fea09);}function _0x12b57a(){const _0x362eeb=_0x3bea1f;_0x28c606()[_0x362eeb(0x1789)](_0x1752c1[_0x362eeb(0x11bd)],function(_0x54d192,_0x395e11){const _0x4a4b54=_0x362eeb;_0x28c606()[_0x4a4b54(0x27bc)](_0x1752c1[_0x4a4b54(0x1c06)],{'name':_0x54d192[_0x4a4b54(0x2494)]})&&(_0x1752c1[_0x4a4b54(0x832)][_0x395e11]=_0x54d192);});}function _0x119553(_0x483072){const _0x2c03c5=_0x3bea1f;_0x483072['type']===_0x2c03c5(0xbce)&&(_0x28c606()['find'](_0x1752c1[_0x2c03c5(0x1c06)],{'name':_0x483072['name']})&&(_0x1752c1[_0x2c03c5(0x832)][_0x483072['uniqueid']]=_0x483072));}function _0xcf32ab(_0x2dbdfa){const _0x174968=_0x3bea1f;_0x1752c1[_0x174968(0x832)][_0x2dbdfa[_0x174968(0x2947)]]&&delete _0x1752c1[_0x174968(0x832)][_0x2dbdfa[_0x174968(0x2947)]];}function _0x92802d(_0x125254){const _0x382b0b=_0x3bea1f;return _0x31be8a[_0x382b0b(0x19bd)][_0x382b0b(0x14de)]({'uniqueid':_0x125254})[_0x382b0b(0x15e7)][_0x382b0b(0x64a)](function(_0x5ee553){const _0x4c77c6=_0x382b0b;_0x2287c2[_0x4c77c6(0x1339)]({'title':_0x4c77c6(0x27ab)+_0x125254+_0x4c77c6(0x25e),'msg':_0x5ee553[_0x4c77c6(0x18ca)]||''});})['catch'](function(_0x5bdff6){const _0x194dde=_0x382b0b;_0x2287c2['error']({'title':_0x5bdff6[_0x194dde(0x10b3)]+_0x194dde(0x21db)+_0x5bdff6[_0x194dde(0x2115)],'msg':JSON[_0x194dde(0x2317)](_0x5bdff6[_0x194dde(0x1c52)])||_0x5bdff6['message'][_0x194dde(0x9a6)]('\x20')});});}function _0x499ed4(_0x760765,_0x107bc1,_0x382bcd){const _0x38ec70=_0x3bea1f;return _0x31be8a['rpc']['getVoiceQueuesChannelRedirect']({'uniqueid':_0x760765,'exten':_0x107bc1,'context':_0x382bcd})[_0x38ec70(0x15e7)][_0x38ec70(0x64a)](function(_0x187291){const _0x45fb03=_0x38ec70;_0x2287c2[_0x45fb03(0x1339)]({'title':_0x45fb03(0x27ab)+_0x760765+_0x45fb03(0x2477),'msg':_0x187291[_0x45fb03(0x18ca)]||''});})[_0x38ec70(0x20cd)](function(_0x5efbce){const _0x58c2b2=_0x38ec70;_0x2287c2['error']({'title':_0x5efbce[_0x58c2b2(0x10b3)]+_0x58c2b2(0x21db)+_0x5efbce[_0x58c2b2(0x2115)],'msg':JSON['stringify'](_0x5efbce[_0x58c2b2(0x1c52)])||_0x5efbce[_0x58c2b2(0x18ca)][_0x58c2b2(0x9a6)]('\x20')});});}function _0xfdea32(_0x1c532d,_0x37ab95){const _0x136eaa=_0x3bea1f,_0x5d2de8=_0x514111[_0x136eaa(0x1ed2)]()[_0x136eaa(0x2021)](_0x136eaa(0x69c))[_0x136eaa(0x13de)](_0x136eaa(0x7f6))[_0x136eaa(0x2283)](_0x1c532d)['ok']('Ok')['cancel'](_0x136eaa(0x1dc6));return _0x514111[_0x136eaa(0xa60)](_0x5d2de8)[_0x136eaa(0x64a)](function(_0x15ec38){const _0x3ff93e=_0x136eaa;return _0x31be8a[_0x3ff93e(0x19bd)][_0x3ff93e(0x81c)]({'uniqueid':_0x37ab95,'exten':_0x15ec38})[_0x3ff93e(0x15e7)];})['then'](function(_0x43f2c9){const _0x389c89=_0x136eaa;_0x2287c2[_0x389c89(0x1339)]({'title':_0x389c89(0x27ab)+_0x37ab95+_0x389c89(0x2477),'msg':_0x43f2c9[_0x389c89(0x18ca)]||''});})[_0x136eaa(0x20cd)](function(_0xec074f){const _0x516038=_0x136eaa;_0x2287c2[_0x516038(0x1bd0)]({'title':_0xec074f[_0x516038(0x10b3)]+'\x20-\x20'+_0xec074f[_0x516038(0x2115)],'msg':JSON[_0x516038(0x2317)](_0xec074f[_0x516038(0x1c52)])||_0xec074f[_0x516038(0x18ca)]['join']('\x20')});});}_0x3a5c3c[_0x3bea1f(0x8c7)](_0x3bea1f(0xf28),function(){const _0x21abd4=_0x3bea1f;_0x374e5d[_0x21abd4(0x1951)](_0x21abd4(0xed5)),_0x374e5d[_0x21abd4(0x1951)](_0x21abd4(0x6d9));});}const _0x1c7750=_0x539d10;;_0x4778ae['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),'$interval',_0x49a1e3(0x1c06),_0x49a1e3(0x22c7),_0x49a1e3(0xa19),'socket',_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xdcf)];function _0x4778ae(_0x589df6,_0x54ff23,_0x2f2fb3,_0x3d2a27,_0x11f825,_0x3ca3c8,_0x1bb5a9,_0xa229ba,_0x554652,_0x2ecbc1){const _0x3b9025=_0x49a1e3,_0x38f9a0=this,_0x5dfbbd=[_0x3b9025(0x1318),'answered',_0x3b9025(0x292d),'sumDuration',_0x3b9025(0x286),_0x3b9025(0x1f6e),_0x3b9025(0x25a7),_0x3b9025(0x2830),_0x3b9025(0x5b1),_0x3b9025(0x12bc),'outboundDropCallsDayTimeout',_0x3b9025(0x8a4),_0x3b9025(0x236d),_0x3b9025(0xd18),'outboundAnswerAgiCallsDay',_0x3b9025(0xee6),_0x3b9025(0x563)];_0x38f9a0[_0x3b9025(0xb90)]=_0x3d2a27[_0x3b9025(0xb90)],_0x38f9a0[_0x3b9025(0x1c06)]=_0x3d2a27?_0x28c606()[_0x3b9025(0x161e)](_0x3d2a27[_0x3b9025(0x28b8)]?_0x3d2a27[_0x3b9025(0x28b8)]:[],'id'):{},_0x38f9a0[_0x3b9025(0x22c7)]=_0x11f825?_0x28c606()['keyBy'](_0x11f825['rows']?_0x11f825['rows']:[],'id'):{},_0x38f9a0[_0x3b9025(0x16a8)]=_0xa229ba,_0x38f9a0['userProfileSection']=_0x554652&&_0x554652[_0x3b9025(0xb90)]==0x1?_0x554652[_0x3b9025(0x28b8)][0x0]:null,_0x38f9a0['crudPermissions']=_0x2ecbc1[_0x3b9025(0xa7e)](_0x38f9a0[_0x3b9025(0x16b2)]?_0x38f9a0[_0x3b9025(0x16b2)][_0x3b9025(0x402)]:null);_0x2ecbc1[_0x3b9025(0x4de)]('admin')?_0x38f9a0['query']={'type':_0x3b9025(0xbce),'fields':_0x3b9025(0x1427),'sort':_0x3b9025(0x260c),'limit':0xa,'page':0x1}:_0x38f9a0['query']={'id':_0x2ecbc1[_0x3b9025(0x808)]()['id'],'channel':_0x3b9025(0x227c),'type':_0x3b9025(0xbce),'fields':'id,name','sort':'-updatedAt','limit':0xa,'page':0x1};_0x38f9a0[_0x3b9025(0x1339)]=_0x5ef065,_0x38f9a0['getQueues']=_0x954f95,_0x38f9a0[_0x3b9025(0x249c)]=_0x4c574f,_0x38f9a0[_0x3b9025(0xea6)]=_0x702311,_0x1bb5a9[_0x3b9025(0x1939)](_0x3b9025(0xb9c),_0x38f9a0['onSave']),_0x38f9a0[_0x3b9025(0xcfd)]=_0x2f2fb3(function(){},0x3e7);function _0x702311(){const _0x3a6b95=_0x3b9025;_0x28c606()['forIn'](_0x38f9a0[_0x3a6b95(0x1c06)],function(_0xae132,_0x2d4c8b){const _0x3e35f7=_0x3a6b95;_0x38f9a0[_0x3e35f7(0x22c7)][_0x2d4c8b]&&_0x28c606()[_0x3e35f7(0x14fe)](_0xae132,_0x28c606()[_0x3e35f7(0x27bb)](_0x38f9a0[_0x3e35f7(0x22c7)][_0x2d4c8b],_0x5dfbbd));});}function _0x4c574f(_0x1d7a81){const _0x374cd9=_0x3b9025;_0x38f9a0['queues'][_0x1d7a81['id']]&&_0x28c606()[_0x374cd9(0x14fe)](_0x38f9a0['queues'][_0x1d7a81['id']],_0x28c606()[_0x374cd9(0x27bb)](_0x1d7a81,_0x5dfbbd));}let _0x40aa41=!![],_0x58204a=0x1;_0x589df6[_0x3b9025(0xc62)](_0x3b9025(0x1cb9),function(_0x326cdc,_0x530528){const _0x56ad69=_0x3b9025;_0x40aa41?_0x54ff23(function(){_0x40aa41=![];}):(!_0x530528&&(_0x58204a=_0x38f9a0['query'][_0x56ad69(0xc72)]),_0x326cdc!==_0x530528&&(_0x38f9a0['query'][_0x56ad69(0xc72)]=0x1),!_0x326cdc&&(_0x38f9a0['query'][_0x56ad69(0xc72)]=_0x58204a),_0x38f9a0[_0x56ad69(0x1f2c)]());});function _0x5ef065(_0x2c1a44){const _0x643e26=_0x3b9025;_0x38f9a0[_0x643e26(0xb90)]=_0x2c1a44[_0x643e26(0xb90)],_0x38f9a0[_0x643e26(0x1c06)]=_0x2c1a44?_0x28c606()[_0x643e26(0x161e)](_0x2c1a44[_0x643e26(0x28b8)]?_0x2c1a44[_0x643e26(0x28b8)]:[],'id'):{},_0x702311();}function _0x954f95(){const _0x30fd0f=_0x3b9025;_0x38f9a0[_0x30fd0f(0x289a)][_0x30fd0f(0x24f9)]=(_0x38f9a0[_0x30fd0f(0x289a)]['page']-0x1)*_0x38f9a0[_0x30fd0f(0x289a)][_0x30fd0f(0x25bb)],_0x2ecbc1[_0x30fd0f(0x4de)]('admin')?_0x38f9a0[_0x30fd0f(0x1713)]=_0x3ca3c8['voiceQueue'][_0x30fd0f(0x896)](_0x38f9a0[_0x30fd0f(0x289a)],_0x5ef065)['$promise']:(_0x38f9a0[_0x30fd0f(0x289a)]['id']=_0x38f9a0[_0x30fd0f(0x16a8)]['id'],_0x38f9a0[_0x30fd0f(0x289a)][_0x30fd0f(0xa21)]=_0x30fd0f(0x2350),_0x38f9a0['promise']=_0x3ca3c8[_0x30fd0f(0x16a8)][_0x30fd0f(0x2565)](_0x38f9a0[_0x30fd0f(0x289a)],_0x5ef065)[_0x30fd0f(0x15e7)]);}_0x589df6['$on'](_0x3b9025(0xf28),function(){const _0x1404ff=_0x3b9025;_0x1bb5a9[_0x1404ff(0x1951)]('voice_queue:save'),_0x38f9a0[_0x1404ff(0xcfd)]&&_0x2f2fb3[_0x1404ff(0x101a)](_0x38f9a0[_0x1404ff(0xcfd)]);});}const _0x5d6423=_0x4778ae;;const _0x1db34f=_0x2e4a48['p']+_0x49a1e3(0xbdd);;const _0x4bbbb8=_0x2e4a48['p']+_0x49a1e3(0x1e6c);;const _0x22a261=_0x2e4a48['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/agentadd/agentadd.html/agentadd.html';;_0x5cf64b[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),'$mdDialog','$q',_0x49a1e3(0x1373),_0x49a1e3(0x1239),_0x49a1e3(0x1c06),_0x49a1e3(0x22c7),_0x49a1e3(0xa19),'socket',_0x49a1e3(0x680),'userProfile',_0x49a1e3(0x16b2),_0x49a1e3(0xdcf)];function _0x5cf64b(_0x1fe0ac,_0x54fb0b,_0x345828,_0x55e6c5,_0x3f4e24,_0x178f75,_0x44014e,_0x10f615,_0x212086,_0x2a2be7,_0x3b45ca,_0x1649f7,_0x5bcfe0,_0x132bc2){const _0x401763=_0x49a1e3,_0x391734=this,_0x4e33b4=[_0x401763(0x17bc),_0x401763(0x1c58),_0x401763(0x188f),'talking',_0x401763(0xc00),_0x401763(0xa1b),_0x401763(0x18ca),_0x401763(0x11b3),_0x401763(0xa69),_0x401763(0x1608),_0x401763(0x20a7),_0x401763(0x131d),'startProgressive','erlangCalls',_0x401763(0x22e6),'erlangAbandonmentRate',_0x401763(0x260e),'dialPredictiveInterval',_0x401763(0x113b),_0x401763(0xf63),_0x401763(0x595),_0x401763(0x1e68),_0x401763(0xc73),'predictiveIntervalDroppedCallsTimeout',_0x401763(0x2094),'predictiveIntervalAvgHoldtime',_0x401763(0x594)];_0x391734[_0x401763(0x1d3d)]=_0x132bc2[_0x401763(0x808)](),_0x391734['count']=_0x44014e[_0x401763(0xb90)]?_0x44014e['count']:0x0,_0x391734[_0x401763(0x1c06)]=_0x44014e?_0x28c606()[_0x401763(0x161e)](_0x44014e['rows']?_0x44014e['rows']:[],'id'):{},_0x391734[_0x401763(0x22c7)]=_0x10f615?_0x28c606()['keyBy'](_0x10f615[_0x401763(0x28b8)]?_0x10f615['rows']:[],'id'):{},_0x391734[_0x401763(0x16a8)]=_0x1649f7,_0x391734[_0x401763(0x16b2)]=_0x5bcfe0&&_0x5bcfe0['count']==0x1?_0x5bcfe0[_0x401763(0x28b8)][0x0]:null,_0x391734['crudPermissions']=_0x132bc2['parseCrudPermissions'](_0x391734[_0x401763(0x16b2)]?_0x391734['userProfileSection'][_0x401763(0x402)]:null);_0x132bc2[_0x401763(0x4de)]('admin')?_0x391734[_0x401763(0x289a)]={'type':_0x401763(0xbce),'sort':_0x401763(0x260c),'limit':0xa,'page':0x1}:_0x391734[_0x401763(0x289a)]={'id':_0x391734['currentUser']['id'],'channel':_0x401763(0x227c),'type':'outbound','sort':'-updatedAt','limit':0xa,'page':0x1};_0x391734['success']=_0x31ffc7,_0x391734[_0x401763(0x1f2c)]=_0x1c294c,_0x391734[_0x401763(0x115e)]=_0x2f9647,_0x391734['showPredictiveQueueCampaignInfo']=_0x5464d3,_0x391734[_0x401763(0x2241)]=_0x14db2a,_0x391734['updateQueue']=_0xfe4350,_0x391734[_0x401763(0x249c)]=_0x4fc12f,_0x391734[_0x401763(0x28b9)]=_0x2f9d02,_0x391734['onPause']=_0x214385,_0x391734['onLogin']=_0x5f1330,_0x391734['onLogout']=_0x14aea1,_0x391734['$onInit']=_0x52d155,_0x391734[_0x401763(0x1997)]=[],_0x28c606()[_0x401763(0x1789)](_0x391734['queues'],function(_0x16679f){const _0x5c188a=_0x401763;_0x391734[_0x5c188a(0x1997)]['push'](_0x16679f['id']);}),_0x2a2be7[_0x401763(0x1939)](_0x401763(0xb9c),_0x391734[_0x401763(0x249c)]),_0x391734[_0x401763(0xcfd)]=_0x178f75(function(){},0x3e7),_0x2a2be7['on'](_0x401763(0xe8b),_0x391734['onSaveMember']),_0x2a2be7['on'](_0x401763(0x130f),_0x391734['onPause']),_0x2a2be7['on'](_0x401763(0x289d),_0x391734[_0x401763(0x259)]),_0x2a2be7['on']('userVoiceQueue:save',_0x391734[_0x401763(0x4c3)]);function _0x52d155(){const _0x56e7ff=_0x401763,_0x4c398f=[];return _0x28c606()[_0x56e7ff(0x1789)](_0x391734['queues'],function(_0x4dbf1f,_0x18520){const _0x2f47cc=_0x56e7ff;_0x4dbf1f[_0x2f47cc(0x20a7)]=0x0,_0x4dbf1f[_0x2f47cc(0x371)]=0x0,_0x391734[_0x2f47cc(0x1c06)][_0x18520][_0x2f47cc(0xd77)]={},_0x4c398f[_0x2f47cc(0x1954)](_0x212086[_0x2f47cc(0x178b)][_0x2f47cc(0xf49)]({'id':_0x18520})[_0x2f47cc(0x15e7)]),_0x391734[_0x2f47cc(0x22c7)][_0x18520]&&_0x28c606()[_0x2f47cc(0x14fe)](_0x4dbf1f,_0x28c606()[_0x2f47cc(0x27bb)](_0x391734[_0x2f47cc(0x22c7)][_0x18520],_0x4e33b4));}),_0x55e6c5['all'](_0x4c398f)[_0x56e7ff(0x64a)](function(_0x5827be){const _0xa0354=_0x56e7ff;for(let _0x2416a3=0x0;_0x2416a3<_0x5827be[_0xa0354(0x1b9e)];_0x2416a3+=0x1){for(let _0x2a3440=0x0;_0x2a3440<_0x5827be[_0x2416a3][_0xa0354(0x28b8)][_0xa0354(0x1b9e)];_0x2a3440++){_0x5827be[_0x2416a3][_0xa0354(0x28b8)][_0x2a3440][_0xa0354(0x20a7)]&&_0x391734[_0xa0354(0x1c06)][_0x5827be[_0x2416a3][_0xa0354(0x28b8)][_0x2a3440][_0xa0354(0x7c0)]][_0xa0354(0x20a7)]++,_0x391734[_0xa0354(0x1c06)][_0x5827be[_0x2416a3][_0xa0354(0x28b8)][_0x2a3440]['VoiceQueueId']]['loggedInDb']++,_0x391734[_0xa0354(0x1c06)][_0x5827be[_0x2416a3][_0xa0354(0x28b8)][_0x2a3440][_0xa0354(0x7c0)]][_0xa0354(0xd77)][_0x5827be[_0x2416a3][_0xa0354(0x28b8)][_0x2a3440][_0xa0354(0x246c)]]=_0x5827be[_0x2416a3][_0xa0354(0x28b8)][_0x2a3440][_0xa0354(0x7c0)];}}})['catch'](function(_0x110ed1){const _0x3a7440=_0x56e7ff;console[_0x3a7440(0x1bd0)](_0x110ed1);});}function _0x4fc12f(_0x569348){const _0x5ba2fb=_0x401763;_0x391734[_0x5ba2fb(0x1c06)][_0x569348['id']]&&(_0x28c606()[_0x5ba2fb(0x14fe)](_0x391734[_0x5ba2fb(0x1c06)][_0x569348['id']],_0x28c606()[_0x5ba2fb(0x27bb)](_0x569348,_0x4e33b4)),_0x28c606()[_0x5ba2fb(0x28d7)](_0x569348[_0x5ba2fb(0x131d)])&&(_0x391734['queues'][_0x569348['id']][_0x5ba2fb(0x131d)]=undefined));}function _0x2f9d02(_0x4f0595){const _0x3f6c7d=_0x401763;_0x391734[_0x3f6c7d(0x1c06)][_0x4f0595[_0x3f6c7d(0xf4c)]]&&_0x391734[_0x3f6c7d(0x1c06)][_0x4f0595[_0x3f6c7d(0xf4c)]]['loggedInDb']++;}function _0x214385(_0xefb058){const _0x56b8ae=_0x401763;console[_0x56b8ae(0x9b4)](_0x56b8ae(0x2fe),_0xefb058);if(_0xefb058[_0x56b8ae(0x11a4)])_0x28c606()[_0x56b8ae(0x1789)](_0x391734[_0x56b8ae(0x1c06)],function(_0x47f83a){const _0x596709=_0x56b8ae;_0x47f83a[_0x596709(0xd77)][_0xefb058['id']]&&(_0x47f83a[_0x596709(0x20a7)]+=0x1,console['log'](_0x596709(0x2826)));});else!_0xefb058[_0x56b8ae(0x11a4)]&&_0x28c606()[_0x56b8ae(0x1789)](_0x391734[_0x56b8ae(0x1c06)],function(_0x40a1ea){const _0x15eb47=_0x56b8ae;_0x40a1ea[_0x15eb47(0xd77)][_0xefb058['id']]&&(_0x40a1ea[_0x15eb47(0x20a7)]>0x0&&(_0x40a1ea[_0x15eb47(0x20a7)]-=0x1,console[_0x15eb47(0x9b4)](_0x15eb47(0x818))));});}function _0x5f1330(_0x230f1a){const _0x425e74=_0x401763;console[_0x425e74(0x9b4)]('onLogged',_0x230f1a),_0x391734[_0x425e74(0x1c06)][_0x230f1a[_0x425e74(0x7c0)]]&&(_0x391734[_0x425e74(0x1c06)][_0x230f1a[_0x425e74(0x7c0)]][_0x425e74(0x371)]+=0x1,_0x391734[_0x425e74(0x1c06)][_0x230f1a[_0x425e74(0x7c0)]][_0x425e74(0xd77)][_0x230f1a['UserId']]=_0x230f1a[_0x425e74(0x7c0)]);}function _0x14aea1(_0x4faede){const _0x31bf2b=_0x401763;console[_0x31bf2b(0x9b4)](_0x31bf2b(0x259),_0x4faede),_0x391734[_0x31bf2b(0x1c06)][_0x4faede[_0x31bf2b(0x7c0)]]&&_0x391734[_0x31bf2b(0x1c06)][_0x4faede[_0x31bf2b(0x7c0)]][_0x31bf2b(0x371)]>0x0&&(_0x391734[_0x31bf2b(0x1c06)][_0x4faede[_0x31bf2b(0x7c0)]][_0x31bf2b(0x371)]-=0x1,delete _0x391734[_0x31bf2b(0x1c06)][_0x4faede['VoiceQueueId']][_0x31bf2b(0xd77)][_0x4faede[_0x31bf2b(0x246c)]]);}let _0x28d63e=!![],_0xf83760=0x1;_0x1fe0ac['$watch'](_0x401763(0x1cb9),function(_0x7b6265,_0x1398ae){const _0x1c8377=_0x401763;_0x28d63e?_0x54fb0b(function(){_0x28d63e=![];}):(!_0x1398ae&&(_0xf83760=_0x391734[_0x1c8377(0x289a)][_0x1c8377(0xc72)]),_0x7b6265!==_0x1398ae&&(_0x391734[_0x1c8377(0x289a)][_0x1c8377(0xc72)]=0x1),!_0x7b6265&&(_0x391734[_0x1c8377(0x289a)][_0x1c8377(0xc72)]=_0xf83760),_0x391734[_0x1c8377(0x1f2c)]());});function _0x31ffc7(_0x238807){const _0x7110a1=_0x401763;_0x391734[_0x7110a1(0xb90)]=_0x238807['count'],_0x391734[_0x7110a1(0x1c06)]=_0x238807?_0x28c606()[_0x7110a1(0x161e)](_0x238807[_0x7110a1(0x28b8)]?_0x238807[_0x7110a1(0x28b8)]:[],'id'):{};if(_0x238807[_0x7110a1(0x28b8)]){_0x391734['order']=[];for(let _0x2080fe=0x0;_0x2080fe<_0x238807[_0x7110a1(0x28b8)][_0x7110a1(0x1b9e)];_0x2080fe++){_0x391734[_0x7110a1(0x1997)]['push'](_0x238807[_0x7110a1(0x28b8)][_0x2080fe]['id']);}}_0x52d155();}function _0x1c294c(){const _0x17b4e3=_0x401763;_0x391734[_0x17b4e3(0x289a)][_0x17b4e3(0x24f9)]=(_0x391734[_0x17b4e3(0x289a)][_0x17b4e3(0xc72)]-0x1)*_0x391734[_0x17b4e3(0x289a)][_0x17b4e3(0x25bb)],_0x132bc2['hasRole'](_0x17b4e3(0x333))?_0x391734[_0x17b4e3(0x1713)]=_0x212086[_0x17b4e3(0x178b)]['get'](_0x391734[_0x17b4e3(0x289a)],_0x31ffc7)[_0x17b4e3(0x15e7)]:(_0x391734['query']['id']=_0x391734[_0x17b4e3(0x16a8)]['id'],_0x391734[_0x17b4e3(0x289a)][_0x17b4e3(0xa21)]='QueueCampaigns',_0x391734[_0x17b4e3(0x1713)]=_0x212086['userProfile'][_0x17b4e3(0x2565)](_0x391734[_0x17b4e3(0x289a)],_0x31ffc7)[_0x17b4e3(0x15e7)]);}function _0x2f9647(_0x2a19c0,_0x55c3e8){const _0xfc24d=_0x401763;_0x345828[_0xfc24d(0xa60)]({'controller':_0xfc24d(0x14c0),'controllerAs':'vm','templateUrl':_0x1db34f,'parent':angular[_0xfc24d(0x1f81)](_0x3f4e24[_0xfc24d(0xb49)]),'targetEvent':_0x2a19c0,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x55c3e8,'queueCampaigns':_0x28c606()[_0xfc24d(0x2146)](_0x391734[_0xfc24d(0x1c06)]),'license':null,'setting':null,'crudPermissions':_0x391734[_0xfc24d(0x402)]}});}function _0x5464d3(_0x4a894e,_0x4146fc){const _0x2da3e8=_0x401763;_0x345828[_0x2da3e8(0xa60)]({'controller':'PredictiveQueueCampaignDialogController','controllerAs':'vm','templateUrl':_0x4bbbb8,'parent':angular[_0x2da3e8(0x1f81)](_0x3f4e24[_0x2da3e8(0xb49)]),'targetEvent':_0x4a894e,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x4146fc}});}function _0x14db2a(_0x3c36b5,_0x5eb26d){const _0x404c97=_0x401763;_0x345828[_0x404c97(0xa60)]({'controller':_0x404c97(0x2852),'controllerAs':'vm','templateUrl':_0x22a261,'parent':angular[_0x404c97(0x1f81)](_0x3f4e24['body']),'targetEvent':_0x3c36b5,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x5eb26d,'queueCampaigns':_0x391734['queues']?_0x391734[_0x404c97(0x1c06)][_0x404c97(0x28b8)]:[],'realtime':!![],'crudPermissions':_0x391734[_0x404c97(0x402)]}});}function _0xfe4350(_0x163cb8){const _0x41368e=_0x401763;return _0x212086['voiceQueue'][_0x41368e(0x2603)](_0x163cb8)[_0x41368e(0x15e7)][_0x41368e(0x64a)](function(){const _0x2d885a=_0x41368e;_0x3b45ca[_0x2d885a(0x1339)]({'title':_0x2d885a(0x2bf),'msg':_0x163cb8[_0x2d885a(0x2494)]?_0x163cb8[_0x2d885a(0x2494)]+_0x2d885a(0x2032):''});})[_0x41368e(0x20cd)](function(_0x2824ce){const _0x3dc826=_0x41368e;_0x3b45ca[_0x3dc826(0x1bd0)]({'title':_0x3dc826(0x5d4),'msg':_0x2824ce[_0x3dc826(0x18ca)]});});}_0x1fe0ac[_0x401763(0x8c7)]('$destroy',function(){const _0x42d616=_0x401763;_0x2a2be7[_0x42d616(0x1951)]('voice_queue:save'),_0x391734[_0x42d616(0xcfd)]&&_0x178f75[_0x42d616(0x101a)](_0x391734['interval']),_0x2a2be7[_0x42d616(0x1951)](_0x42d616(0xe8b)),_0x2a2be7[_0x42d616(0x1951)]('user:update'),_0x2a2be7[_0x42d616(0x1951)]('userVoiceQueue:remove'),_0x2a2be7[_0x42d616(0x1951)](_0x42d616(0x44b));});}const _0x110f5a=_0x5cf64b;;_0x1d6d48[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$interval',_0x49a1e3(0x279)];function _0x1d6d48(_0x20e3ef,_0x38230e,_0x488804){const _0xf8341c=_0x49a1e3,_0x3cdd8a=this;_0x3cdd8a[_0xf8341c(0x279)]=_0x488804,_0x3cdd8a[_0xf8341c(0x2218)]=_0x27a9c2,_0x3cdd8a['setFormatTime']=_0x54cf1b,_0x3cdd8a[_0xf8341c(0x16cb)]=_0x52df64;function _0x27a9c2(_0x33c725,_0x679b40){const _0x41ff9d=_0xf8341c;return _0x2ac33a()(_0x33c725)[_0x41ff9d(0x25df)]('m',_0x679b40)[_0x41ff9d(0x1c2c)](_0x41ff9d(0x148f));}function _0x54cf1b(_0x5e0640){const _0x4aa35d=_0xf8341c;return _0x2ac33a()(_0x5e0640)['format'](_0x4aa35d(0x148f));}function _0x52df64(){const _0x3a0d3f=_0xf8341c;_0x20e3ef[_0x3a0d3f(0x268e)]();}}const _0x5b2ef9=_0x1d6d48;;function _0x5078b5(){const _0x2078ee=_0x49a1e3;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':_0x2078ee(0x2448),'lagged':_0x2078ee(0x2448),'reachable':_0x2078ee(0x26f8),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x2078ee(0x178c)},'state':{'unknown':_0x2078ee(0x2971),'not_inuse':_0x2078ee(0x14d3),'inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0x2078ee(0xe3e),'invalid':_0x2078ee(0x2971),'unavailable':_0x2078ee(0x2971),'ringing':_0x2078ee(0x15e),'ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':_0x2078ee(0x15e),'up':'green-300-fg\x20icon-phone-in-talk','hangup':'red-300-fg\x20icon-phone-hangup'},'channelStatusOut':{'ring':_0x2078ee(0x170),'up':_0x2078ee(0x5c4),'hangup':'red-300-fg\x20icon-phone-hangup'}};}const _0x4a68cf=_0x5078b5;;_0x119088[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x633)];function _0x119088(_0x5cbd32,_0x33df7e,_0x3008c2){const _0x4b5cc9=_0x49a1e3,_0x447330=this;_0x3008c2['disconnect'](),_0x3008c2[_0x4b5cc9(0x25fa)](),_0x447330[_0x4b5cc9(0x197c)]=0x0;switch(_0x33df7e['current']['name']){case _0x4b5cc9(0x462):_0x447330['selectedTab']=0x0;break;case _0x4b5cc9(0x7bc):_0x447330['selectedTab']=0x1;break;case _0x4b5cc9(0xbd4):_0x447330[_0x4b5cc9(0x197c)]=0x2;break;case _0x4b5cc9(0xc54):_0x447330[_0x4b5cc9(0x197c)]=0x3;break;case _0x4b5cc9(0x17d):_0x447330[_0x4b5cc9(0x197c)]=0x4;break;case _0x4b5cc9(0x5bf):_0x447330[_0x4b5cc9(0x197c)]=0x5;break;default:_0x447330['selectedTab']=0x0,_0x33df7e['go'](_0x4b5cc9(0x462));}_0x5cbd32[_0x4b5cc9(0xc62)](_0x4b5cc9(0x2303),function(_0x2664c3,_0x4184c1){const _0x5cc705=_0x4b5cc9;if(_0x2664c3!==_0x4184c1)switch(_0x2664c3){case 0x0:_0x33df7e['go'](_0x5cc705(0x462));break;case 0x1:_0x33df7e['go'](_0x5cc705(0x7bc));break;case 0x2:_0x33df7e['go']('app.motiondialer.realtime.queue_calls');break;case 0x3:_0x33df7e['go'](_0x5cc705(0xc54));break;case 0x4:_0x33df7e['go']('app.motiondialer.realtime.queue_params');break;case 0x5:_0x33df7e['go'](_0x5cc705(0x5bf));break;default:_0x33df7e['go']('app.motiondialer.realtime.agents');}});}const _0x861e68=_0x119088;;_0x3aa27d[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad)];function _0x3aa27d(_0x34a3a3){const _0x5ac74a=_0x49a1e3;_0x34a3a3[_0x5ac74a(0x14f2)](_0x5ac74a(0x16d5),{'url':_0x5ac74a(0x71d),'views':{'content@app':{'templateUrl':_0x4eec59,'controller':_0x5ac74a(0xd98)}},'resolve':{'userProfile':['apiResolver',_0x5ac74a(0xdcf),function(_0x11e24e,_0x31b634){const _0x518323=_0x5ac74a;return _0x31b634[_0x518323(0x4de)](_0x518323(0x333))?null:_0x11e24e[_0x518323(0x1268)](_0x518323(0x6e3),{'fields':_0x518323(0x10d2),'id':_0x31b634[_0x518323(0x808)]()[_0x518323(0x21ac)]});}],'userProfileSection':[_0x5ac74a(0x107c),_0x5ac74a(0xdcf),function(_0x5d86b5,_0x1baf1f){const _0x4fbfe8=_0x5ac74a;return _0x1baf1f[_0x4fbfe8(0x4de)](_0x4fbfe8(0x333))?null:_0x5d86b5[_0x4fbfe8(0x1268)](_0x4fbfe8(0x2681),{'fields':_0x4fbfe8(0x527),'userProfileId':_0x1baf1f['getCurrentUser']()['userProfileId'],'sectionId':0x5e6});}]},'authenticate':!![],'permissionId':0x5e6})[_0x5ac74a(0x14f2)]('app.motiondialer.realtime.agents',{'url':_0x5ac74a(0x23f8),'controller':_0x5ac74a(0x261f),'templateUrl':_0x16e0e1,'resolve':{'pauses':[_0x5ac74a(0x107c),function(_0x5a13ec){const _0x4116ee=_0x5ac74a;return _0x5a13ec[_0x4116ee(0x1268)]('pause@get',{'nolimit':!![]});}],'agents':[_0x5ac74a(0x107c),_0x5ac74a(0xdcf),function(_0x1f608c,_0x516183){const _0x5963b5=_0x5ac74a;return _0x516183[_0x5963b5(0x4de)](_0x5963b5(0x333))?_0x1f608c['resolve'](_0x5963b5(0x142c),{'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':_0x5963b5(0x15c),'nolimit':!![]}):_0x1f608c['resolve'](_0x5963b5(0x1758),{'id':_0x516183['getCurrentUser']()[_0x5963b5(0x21ac)],'section':_0x5963b5(0x2132),'fields':_0x5963b5(0x1956),'role':_0x5963b5(0x11ae),'sort':_0x5963b5(0x15c),'nolimit':!![]});}],'userProfile':['apiResolver',_0x5ac74a(0xdcf),function(_0x5b62dc,_0x2974b0){const _0x21ec25=_0x5ac74a;return _0x2974b0[_0x21ec25(0x4de)]('admin')?null:_0x5b62dc[_0x21ec25(0x1268)](_0x21ec25(0x6e3),{'fields':_0x21ec25(0x10d2),'id':_0x2974b0[_0x21ec25(0x808)]()[_0x21ec25(0x21ac)]});}],'userProfileSection':[_0x5ac74a(0x107c),'Auth',function(_0x399f65,_0x3b1ab5){const _0x39077a=_0x5ac74a;return _0x3b1ab5['hasRole'](_0x39077a(0x333))?null:_0x399f65[_0x39077a(0x1268)](_0x39077a(0x2681),{'fields':_0x39077a(0x527),'userProfileId':_0x3b1ab5[_0x39077a(0x808)]()[_0x39077a(0x21ac)],'sectionId':0xca});}],'rpcAgents':[_0x5ac74a(0x107c),function(_0x1b143c){const _0x18602a=_0x5ac74a;return _0x1b143c[_0x18602a(0x1268)]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x5e6})[_0x5ac74a(0x14f2)](_0x5ac74a(0x7bc),{'url':_0x5ac74a(0x16ca),'controller':_0x5ac74a(0x1f4c),'templateUrl':_0x2a0257,'resolve':{'queues':[_0x5ac74a(0x107c),_0x5ac74a(0xdcf),function(_0x1763ff,_0xf768c){const _0x237c4d=_0x5ac74a;return _0xf768c[_0x237c4d(0x4de)](_0x237c4d(0x333))?_0x1763ff[_0x237c4d(0x1268)]('voiceQueue@get',{'type':_0x237c4d(0xbce),'sort':_0x237c4d(0x260c),'limit':0xa,'offset':0x0}):_0x1763ff['resolve'](_0x237c4d(0x1758),{'id':_0xf768c[_0x237c4d(0x808)]()[_0x237c4d(0x21ac)],'section':'QueueCampaigns','channel':_0x237c4d(0x227c),'type':'outbound','sort':_0x237c4d(0x260c),'limit':0xa,'page':0x1});}],'userProfile':[_0x5ac74a(0x107c),_0x5ac74a(0xdcf),function(_0x256f44,_0x30a7d0){const _0x24a8dd=_0x5ac74a;return _0x30a7d0[_0x24a8dd(0x4de)](_0x24a8dd(0x333))?null:_0x256f44[_0x24a8dd(0x1268)](_0x24a8dd(0x6e3),{'fields':_0x24a8dd(0x10d2),'id':_0x30a7d0[_0x24a8dd(0x808)]()[_0x24a8dd(0x21ac)]});}],'userProfileSection':[_0x5ac74a(0x107c),_0x5ac74a(0xdcf),function(_0x379d34,_0x5c88e4){const _0x563445=_0x5ac74a;return _0x5c88e4[_0x563445(0x4de)]('admin')?null:_0x379d34[_0x563445(0x1268)](_0x563445(0x2681),{'fields':_0x563445(0x527),'userProfileId':_0x5c88e4[_0x563445(0x808)]()[_0x563445(0x21ac)],'sectionId':0x5dd});}],'rpcQueues':[_0x5ac74a(0x107c),function(_0x2520d4){const _0x4163ab=_0x5ac74a;return _0x2520d4[_0x4163ab(0x1268)](_0x4163ab(0xe70));}]},'authenticate':!![],'permissionId':0x5e6})[_0x5ac74a(0x14f2)](_0x5ac74a(0xbd4),{'url':_0x5ac74a(0x233c),'controller':_0x5ac74a(0x19be),'templateUrl':_0x18eb38,'resolve':{'agents':['apiResolver',_0x5ac74a(0xdcf),function(_0x398408,_0x540d35){const _0x3c6b34=_0x5ac74a;return _0x540d35[_0x3c6b34(0x4de)](_0x3c6b34(0x333))?_0x398408[_0x3c6b34(0x1268)](_0x3c6b34(0x142c),{'fields':_0x3c6b34(0x1c8b),'role':_0x3c6b34(0x11ae),'nolimit':!![]}):_0x398408[_0x3c6b34(0x1268)]('userProfile@getResources',{'id':_0x540d35[_0x3c6b34(0x808)]()[_0x3c6b34(0x21ac)],'section':_0x3c6b34(0x2132),'fields':_0x3c6b34(0x1c8b),'role':_0x3c6b34(0x11ae),'nolimit':!![]});}],'queues':[_0x5ac74a(0x107c),_0x5ac74a(0xdcf),function(_0x1342ea,_0x498a2d){const _0x54806f=_0x5ac74a;return _0x498a2d['hasRole'](_0x54806f(0x333))?_0x1342ea[_0x54806f(0x1268)]('voiceQueue@get',{'type':'outbound','sort':'-updatedAt','nolimit':!![]}):_0x1342ea[_0x54806f(0x1268)]('userProfile@getResources',{'id':_0x498a2d[_0x54806f(0x808)]()['userProfileId'],'section':_0x54806f(0x2350),'channel':'voice','type':_0x54806f(0xbce),'sort':_0x54806f(0x260c),'nolimit':!![]});}],'userProfile':['apiResolver',_0x5ac74a(0xdcf),function(_0x596886,_0x8a270){const _0x290895=_0x5ac74a;return _0x8a270[_0x290895(0x4de)](_0x290895(0x333))?null:_0x596886[_0x290895(0x1268)](_0x290895(0x6e3),{'fields':_0x290895(0x10d2),'id':_0x8a270['getCurrentUser']()[_0x290895(0x21ac)]});}],'userProfileSection':[_0x5ac74a(0x107c),_0x5ac74a(0xdcf),function(_0x1cebb1,_0x338adc){const _0xf174bf=_0x5ac74a;return _0x338adc[_0xf174bf(0x4de)](_0xf174bf(0x333))?null:_0x1cebb1[_0xf174bf(0x1268)](_0xf174bf(0x2681),{'fields':_0xf174bf(0x527),'userProfileId':_0x338adc[_0xf174bf(0x808)]()[_0xf174bf(0x21ac)],'sectionId':0x5dd});}],'rpcVoiceQueuesChannels':[_0x5ac74a(0x107c),function(_0x4af7ef){const _0x270578=_0x5ac74a;return _0x4af7ef['resolve'](_0x270578(0x9a1));}]},'authenticate':!![],'permissionId':0x5e6})['state']('app.motiondialer.realtime.abandonedcalls',{'url':'/abandonedcalls','controller':_0x5ac74a(0x1a63),'templateUrl':_0x3f87bb,'resolve':{'agents':[_0x5ac74a(0x107c),_0x5ac74a(0xdcf),function(_0x3be2bb,_0x192dc0){const _0x168821=_0x5ac74a;return _0x192dc0[_0x168821(0x4de)]('admin')?_0x3be2bb['resolve'](_0x168821(0x142c),{'fields':_0x168821(0x1c8b),'role':_0x168821(0x11ae),'nolimit':!![]}):_0x3be2bb[_0x168821(0x1268)](_0x168821(0x1758),{'id':_0x192dc0['getCurrentUser']()[_0x168821(0x21ac)],'section':_0x168821(0x2132),'fields':'id,name,role,context','role':'agent','nolimit':!![]});}],'queues':['apiResolver',_0x5ac74a(0xdcf),function(_0x17c30e,_0x35c934){const _0x367dd8=_0x5ac74a;return _0x35c934[_0x367dd8(0x4de)]('admin')?_0x17c30e[_0x367dd8(0x1268)](_0x367dd8(0x1c51),{'type':_0x367dd8(0xbce),'sort':_0x367dd8(0x260c),'nolimit':!![]}):_0x17c30e[_0x367dd8(0x1268)]('userProfile@getResources',{'id':_0x35c934[_0x367dd8(0x808)]()[_0x367dd8(0x21ac)],'section':'QueueCampaigns','channel':'voice','type':_0x367dd8(0xbce),'sort':_0x367dd8(0x260c),'nolimit':!![]});}],'dispositions':['apiResolver','Auth',function(_0x1c1dab,_0x2a9ae8){const _0x54d319=_0x5ac74a;return _0x2a9ae8[_0x54d319(0x4de)](_0x54d319(0x333))?_0x1c1dab['resolve'](_0x54d319(0x10c9),{'fields':'createdAt,updatedAt,id,name,level,ParentId','sort':_0x54d319(0x260c),'MailAccountId':'null','FaxAccountId':'null','SmsAccountId':_0x54d319(0x8f1),'WhatsappAccountId':'null','OpenchannelAccountId':_0x54d319(0x8f1),'ChatWebsiteId':_0x54d319(0x8f1),'ListId':_0x54d319(0x8f1),'nolimit':!![]}):_0x1c1dab['resolve']('userProfile@getResources',{'id':_0x2a9ae8[_0x54d319(0x808)]()[_0x54d319(0x21ac)],'section':'Dispositions','fields':_0x54d319(0x2624),'sort':_0x54d319(0x260c),'MailAccountId':_0x54d319(0x8f1),'FaxAccountId':_0x54d319(0x8f1),'SmsAccountId':_0x54d319(0x8f1),'WhatsappAccountId':_0x54d319(0x8f1),'OpenchannelAccountId':_0x54d319(0x8f1),'ChatWebsiteId':_0x54d319(0x8f1),'ListId':_0x54d319(0x8f1),'nolimit':!![]});}],'userProfile':['apiResolver',_0x5ac74a(0xdcf),function(_0x25d927,_0x48fb3c){const _0x4cb17e=_0x5ac74a;return _0x48fb3c['hasRole']('admin')?null:_0x25d927['resolve'](_0x4cb17e(0x6e3),{'fields':'id,name,crudPermissions','id':_0x48fb3c[_0x4cb17e(0x808)]()[_0x4cb17e(0x21ac)]});}],'userProfileSection':[_0x5ac74a(0x107c),_0x5ac74a(0xdcf),function(_0x46a82a,_0x1f9e69){const _0xc69072=_0x5ac74a;return _0x1f9e69[_0xc69072(0x4de)](_0xc69072(0x333))?null:_0x46a82a[_0xc69072(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1f9e69[_0xc69072(0x808)]()['userProfileId'],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5e6})['state'](_0x5ac74a(0x17d),{'url':'/queue_params','controller':_0x5ac74a(0x1f43),'templateUrl':_0x3ef78a,'resolve':{'queues':['apiResolver',_0x5ac74a(0xdcf),function(_0x220008,_0x4f9ec1){const _0xa4e2d7=_0x5ac74a;return _0x4f9ec1[_0xa4e2d7(0x4de)]('admin')?_0x220008[_0xa4e2d7(0x1268)](_0xa4e2d7(0x1c51),{'type':'outbound','fields':_0xa4e2d7(0x1427),'sort':_0xa4e2d7(0x260c),'limit':0xa,'offset':0x0}):_0x220008[_0xa4e2d7(0x1268)](_0xa4e2d7(0x1758),{'id':_0x4f9ec1[_0xa4e2d7(0x808)]()[_0xa4e2d7(0x21ac)],'section':_0xa4e2d7(0x2350),'channel':_0xa4e2d7(0x227c),'type':_0xa4e2d7(0xbce),'sort':_0xa4e2d7(0x260c),'nolimit':!![]});}],'userProfile':[_0x5ac74a(0x107c),'Auth',function(_0x5199d8,_0x116c04){const _0x10bd82=_0x5ac74a;return _0x116c04[_0x10bd82(0x4de)](_0x10bd82(0x333))?null:_0x5199d8[_0x10bd82(0x1268)](_0x10bd82(0x6e3),{'fields':_0x10bd82(0x10d2),'id':_0x116c04[_0x10bd82(0x808)]()[_0x10bd82(0x21ac)]});}],'userProfileSection':[_0x5ac74a(0x107c),_0x5ac74a(0xdcf),function(_0x4d9052,_0x5088d1){const _0xbde301=_0x5ac74a;return _0x5088d1['hasRole']('admin')?null:_0x4d9052['resolve'](_0xbde301(0x2681),{'fields':_0xbde301(0x527),'userProfileId':_0x5088d1[_0xbde301(0x808)]()[_0xbde301(0x21ac)],'sectionId':0x5dd});}],'rpcQueues':[_0x5ac74a(0x107c),function(_0x40b791){const _0x3f6b21=_0x5ac74a;return _0x40b791[_0x3f6b21(0x1268)](_0x3f6b21(0xe70));}]},'authenticate':!![],'permissionId':0x5e6})[_0x5ac74a(0x14f2)](_0x5ac74a(0x5bf),{'url':_0x5ac74a(0x1589),'controller':_0x5ac74a(0xa6b),'templateUrl':_0x50fead,'resolve':{'campaigns':[_0x5ac74a(0x107c),_0x5ac74a(0xdcf),function(_0xf4b779,_0x3eb5b7){const _0x524c0d=_0x5ac74a;return _0x3eb5b7[_0x524c0d(0x4de)](_0x524c0d(0x333))?_0xf4b779[_0x524c0d(0x1268)](_0x524c0d(0x117),{'sort':_0x524c0d(0x260c),'limit':0xa,'offset':0x0}):_0xf4b779['resolve'](_0x524c0d(0x1758),{'id':_0x3eb5b7[_0x524c0d(0x808)]()[_0x524c0d(0x21ac)],'section':_0x524c0d(0x2894),'sort':_0x524c0d(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5ac74a(0x107c),_0x5ac74a(0xdcf),function(_0x553674,_0x5e15b0){const _0x8c08f4=_0x5ac74a;return _0x5e15b0[_0x8c08f4(0x4de)](_0x8c08f4(0x333))?null:_0x553674[_0x8c08f4(0x1268)](_0x8c08f4(0x6e3),{'fields':_0x8c08f4(0x10d2),'id':_0x5e15b0[_0x8c08f4(0x808)]()[_0x8c08f4(0x21ac)]});}],'userProfileSection':[_0x5ac74a(0x107c),_0x5ac74a(0xdcf),function(_0x1760e6,_0x462612){const _0xa395d5=_0x5ac74a;return _0x462612[_0xa395d5(0x4de)](_0xa395d5(0x333))?null:_0x1760e6[_0xa395d5(0x1268)](_0xa395d5(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x462612[_0xa395d5(0x808)]()[_0xa395d5(0x21ac)],'sectionId':0x5de});}],'rpcCampaigns':[_0x5ac74a(0x107c),function(_0x2f6380){const _0x5ec1c8=_0x5ac74a;return _0x2f6380[_0x5ec1c8(0x1268)](_0x5ec1c8(0x879));}]},'authenticate':!![],'permissionId':0x5e6});}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x16d5),[])[_0x49a1e3(0x3d3)](_0x3aa27d)[_0x49a1e3(0x38e)](_0x49a1e3(0x26b0),_0x4b1bea)[_0x49a1e3(0x38e)](_0x49a1e3(0x158c),_0x350bc9)[_0x49a1e3(0x38e)](_0x49a1e3(0x13cc),_0x4b11aa)[_0x49a1e3(0x38e)](_0x49a1e3(0xd6d),_0x1c7750)[_0x49a1e3(0x38e)](_0x49a1e3(0x147),_0x5d6423)[_0x49a1e3(0x38e)]('QueuesMotionDialerRealtimeController',_0x110f5a)[_0x49a1e3(0x38e)](_0x49a1e3(0x12a2),_0x5b2ef9)[_0x49a1e3(0x646)](_0x49a1e3(0x1f8c),_0x4a68cf)[_0x49a1e3(0x38e)](_0x49a1e3(0x180e),_0x861e68);;const _0x29c06d=_0x2e4a48['p']+_0x49a1e3(0x1761);;const _0x1894cd=_0x2e4a48['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/view.html/view.html';;const _0xbc80b7=_0x2e4a48['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/ivrCampaigns.html/ivrCampaigns.html';;const _0x535681=_0x2e4a48['p']+_0x49a1e3(0x18f);;_0x4250cd[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),'ivrCampaigns','ivrCampaign','api',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'crudPermissions'];function _0x4250cd(_0x5ea079,_0x390c5c,_0x15a385,_0x250709,_0x2489e4,_0x5ef958,_0xd93118,_0x3f5dfe,_0x3591b5,_0x217ed4,_0x4af11c,_0xd8607d,_0xad195e,_0x365627){const _0x21d0dd=_0x49a1e3,_0x20400e=this;_0x20400e[_0x21d0dd(0x1d3d)]=_0x4af11c[_0x21d0dd(0x808)](),_0x20400e[_0x21d0dd(0xbae)]=[],_0x20400e['setting']=_0xad195e,_0x20400e['license']=_0xd8607d,_0x20400e['crudPermissions']=_0x365627,_0x20400e[_0x21d0dd(0x6c2)]={},_0x20400e[_0x21d0dd(0xccc)]=_0x20400e['setting']&&_0x20400e[_0x21d0dd(0x28d6)][_0x21d0dd(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x20400e[_0x21d0dd(0x2021)]=_0x21d0dd(0x265c),_0x20400e['ivrCampaign']=angular[_0x21d0dd(0x289e)](_0x3591b5),_0x20400e[_0x21d0dd(0x1fa6)]=_0x3f5dfe,_0x20400e[_0x21d0dd(0x1423)]=![];!_0x20400e[_0x21d0dd(0x15aa)]&&(_0x20400e[_0x21d0dd(0x15aa)]={'active':!![],'type':_0x21d0dd(0x254b),'dialCheckDuplicateType':_0x21d0dd(0xa66),'dialCutDigit':0x0,'limitCalls':0x1e,'dialRandomLastDigitCallerIdNumber':0x0,'dialOriginateTimeout':0x1e,'dialGlobalMaxRetry':0x4,'dialCongestionMaxRetry':0x3,'dialCongestionRetryFrequency':0x96,'dialBusyMaxRetry':0x3,'dialBusyRetryFrequency':0x96,'dialNoAnswerMaxRetry':0x3,'dialNoAnswerRetryFrequency':0x96,'dialNoSuchNumberMaxRetry':0x3,'dialNoSuchNumberRetryFrequency':0x96,'dialDropMaxRetry':0x3,'dialDropRetryFrequency':0x96,'dialAbandonedMaxRetry':0x3,'dialAbandonedRetryFrequency':0x96,'dialMachineMaxRetry':0x3,'dialMachineRetryFrequency':0x96,'dialAgentRejectMaxRetry':0x3,'dialAgentRejectRetryFrequency':0x96,'dialOrderByScheduledAt':'ASC','dialGlobalInterval':_0x21d0dd(0x1847),'dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388},_0x20400e['title']=_0x21d0dd(0x1b88),_0x20400e[_0x21d0dd(0x1423)]=!![]);_0x20400e[_0x21d0dd(0xa0c)]=_0x2d3566,_0x20400e['saveIvrCampaign']=_0x410c21,_0x20400e[_0x21d0dd(0x2564)]=_0x22f7bc,_0x20400e[_0x21d0dd(0x1605)]=_0x53d721,_0x20400e[_0x21d0dd(0x16cb)]=_0x39a455,_0x4af11c['hasRole'](_0x21d0dd(0x333))?_0x217ed4['trunk'][_0x21d0dd(0x896)]({'fields':'id,name','sort':_0x21d0dd(0x2494),'table':_0x21d0dd(0x1685)})['$promise'][_0x21d0dd(0x64a)](function(_0x206e7e){const _0x2bbe68=_0x21d0dd;_0x20400e[_0x2bbe68(0xe23)]=_0x206e7e[_0x2bbe68(0x28b8)]||[];})[_0x21d0dd(0x20cd)](function(_0x2e0991){const _0x1da164=_0x21d0dd;_0xd93118['error']({'title':_0x2e0991[_0x1da164(0x10b3)]?_0x1da164(0x575)+_0x2e0991[_0x1da164(0x10b3)]+_0x1da164(0x21db)+_0x2e0991[_0x1da164(0x2115)]:_0x1da164(0x1d82),'msg':_0x2e0991[_0x1da164(0x1c52)]?JSON['stringify'](_0x2e0991[_0x1da164(0x1c52)]):_0x2e0991['toString']()});}):_0x217ed4['trunk'][_0x21d0dd(0x896)]({'fields':'id,name','sort':_0x21d0dd(0x2494),'table':'true'})[_0x21d0dd(0x15e7)][_0x21d0dd(0x64a)](function(_0x3935a4){_0x20400e['trunks']=_0x3935a4['rows']||[];})[_0x21d0dd(0x64a)](function(){const _0x59d8c5=_0x21d0dd;return _0x217ed4[_0x59d8c5(0x16b2)]['get']({'userProfileId':_0x20400e[_0x59d8c5(0x1d3d)][_0x59d8c5(0x21ac)],'sectionId':0x3f3})[_0x59d8c5(0x15e7)];})['then'](function(_0x4a521a){const _0x56d396=_0x21d0dd,_0xba625=_0x4a521a&&_0x4a521a['rows']?_0x4a521a['rows'][0x0]:null;if(!_0xba625)_0x20400e[_0x56d396(0xe23)]=[];else{if(!_0xba625[_0x56d396(0x11da)])return _0x217ed4['userProfileResource'][_0x56d396(0x896)]({'sectionId':_0xba625['id']})[_0x56d396(0x15e7)][_0x56d396(0x64a)](function(_0x8ac00){const _0x35b333=_0x56d396,_0x46ee5f=_0x28c606()['map'](_0x8ac00[_0x35b333(0x28b8)],function(_0x5b13f5){const _0x5d2722=_0x35b333;return _0x28c606()[_0x5d2722(0x27bc)](_0x20400e[_0x5d2722(0xe23)],{'id':_0x5b13f5[_0x5d2722(0x145)]});});_0x20400e[_0x35b333(0xe23)][_0x35b333(0x1397)](function(_0x12dd73){const _0x4dcd5f=_0x35b333;!_0x28c606()[_0x4dcd5f(0x25f8)](_0x46ee5f,['id',_0x12dd73['id']])&&(_0x12dd73[_0x4dcd5f(0xd4f)]=![]),_0x46ee5f[_0x4dcd5f(0x1954)](_0x12dd73);}),_0x20400e[_0x35b333(0xe23)]=_0x46ee5f;});}})[_0x21d0dd(0x20cd)](function(_0x395500){const _0x591761=_0x21d0dd;_0xd93118[_0x591761(0x1bd0)]({'title':_0x395500[_0x591761(0x10b3)]?_0x591761(0x575)+_0x395500[_0x591761(0x10b3)]+'\x20-\x20'+_0x395500[_0x591761(0x2115)]:_0x591761(0x89a),'msg':_0x395500['data']?JSON[_0x591761(0x2317)](_0x395500[_0x591761(0x1c52)]):_0x395500[_0x591761(0x2915)]()});}),_0x4af11c[_0x21d0dd(0x4de)](_0x21d0dd(0x333))?_0x217ed4[_0x21d0dd(0x2101)][_0x21d0dd(0x896)]({'fields':_0x21d0dd(0x1427),'sort':_0x21d0dd(0x2494)})[_0x21d0dd(0x15e7)][_0x21d0dd(0x64a)](function(_0x2faa4d){const _0x1984cf=_0x21d0dd;_0x20400e[_0x1984cf(0x1d73)]=_0x2faa4d[_0x1984cf(0x28b8)]||[];})['catch'](function(_0x4d2300){const _0x39465e=_0x21d0dd;_0xd93118[_0x39465e(0x1bd0)]({'title':_0x4d2300[_0x39465e(0x10b3)]?_0x39465e(0x575)+_0x4d2300[_0x39465e(0x10b3)]+_0x39465e(0x21db)+_0x4d2300[_0x39465e(0x2115)]:_0x39465e(0x295e),'msg':_0x4d2300[_0x39465e(0x1c52)]?JSON['stringify'](_0x4d2300[_0x39465e(0x1c52)]):_0x4d2300[_0x39465e(0x2915)]()});}):_0x217ed4[_0x21d0dd(0x2101)][_0x21d0dd(0x896)]({'fields':_0x21d0dd(0x1427),'sort':_0x21d0dd(0x2494)})[_0x21d0dd(0x15e7)][_0x21d0dd(0x64a)](function(_0x1ddcbf){_0x20400e['projects']=_0x1ddcbf['rows']||[];})['then'](function(){const _0xf6f2e3=_0x21d0dd;return _0x217ed4[_0xf6f2e3(0x16b2)][_0xf6f2e3(0x896)]({'userProfileId':_0x20400e[_0xf6f2e3(0x1d3d)][_0xf6f2e3(0x21ac)],'sectionId':0x44f})['$promise'];})['then'](function(_0x2e0d10){const _0x9a13ac=_0x21d0dd,_0x3be768=_0x2e0d10&&_0x2e0d10['rows']?_0x2e0d10['rows'][0x0]:null;if(!_0x3be768){const _0x11ae28=[];let _0x8b9072=null;_0x20400e[_0x9a13ac(0x15aa)]&&(_0x8b9072=_0x28c606()[_0x9a13ac(0x27bc)](_0x20400e['projects'],{'id':Number(_0x20400e[_0x9a13ac(0x15aa)]['SquareProjectId'])}));for(let _0x26136e=0x0;_0x26136e<_0x20400e[_0x9a13ac(0x1d73)][_0x9a13ac(0x1b9e)];_0x26136e++){_0x8b9072&&_0x20400e[_0x9a13ac(0x1d73)][_0x26136e]['id']===_0x8b9072['id']&&(_0x20400e['projects'][_0x26136e]['canSelect']=![],_0x11ae28['push'](_0x20400e[_0x9a13ac(0x1d73)][_0x26136e]));}_0x20400e[_0x9a13ac(0x1d73)]=_0x11ae28;}else{if(!_0x3be768['autoAssociation'])return _0x217ed4[_0x9a13ac(0x1617)]['get']({'sectionId':_0x3be768['id']})[_0x9a13ac(0x15e7)]['then'](function(_0x24e1f6){const _0x464a2a=_0x9a13ac,_0x405aa4=_0x28c606()[_0x464a2a(0x1de5)](_0x24e1f6[_0x464a2a(0x28b8)],function(_0x1c47a9){const _0x3115f6=_0x464a2a;return _0x28c606()['find'](_0x20400e['projects'],{'id':_0x1c47a9[_0x3115f6(0x145)]});});let _0x31d1cf=null;_0x20400e[_0x464a2a(0x15aa)]&&(_0x31d1cf=_0x28c606()[_0x464a2a(0x27bc)](_0x20400e[_0x464a2a(0x1d73)],{'id':Number(_0x20400e[_0x464a2a(0x15aa)][_0x464a2a(0x1e45)])}));if(_0x31d1cf&&!_0x28c606()[_0x464a2a(0x25f8)](_0x405aa4,['id',_0x31d1cf['id']])){const _0x1be172=_0x28c606()['find'](_0x20400e[_0x464a2a(0x1d73)],{'id':_0x31d1cf['id']});_0x1be172['canSelect']=![],_0x405aa4['push'](_0x1be172);}_0x20400e['projects']=_0x405aa4;});}})[_0x21d0dd(0x20cd)](function(_0x29b9eb){const _0x1aa1a9=_0x21d0dd;_0xd93118[_0x1aa1a9(0x1bd0)]({'title':_0x29b9eb[_0x1aa1a9(0x10b3)]?_0x1aa1a9(0x575)+_0x29b9eb['status']+_0x1aa1a9(0x21db)+_0x29b9eb[_0x1aa1a9(0x2115)]:_0x1aa1a9(0x2786),'msg':_0x29b9eb['data']?JSON[_0x1aa1a9(0x2317)](_0x29b9eb[_0x1aa1a9(0x1c52)]):_0x29b9eb['toString']()});}),_0x4af11c[_0x21d0dd(0x4de)](_0x21d0dd(0x333))?_0x217ed4[_0x21d0dd(0xcfd)][_0x21d0dd(0x896)]({'fields':'id,name','sort':_0x21d0dd(0x2494),'IntervalId':'null'})[_0x21d0dd(0x15e7)]['then'](function(_0x59de4e){const _0x36e834=_0x21d0dd;_0x20400e[_0x36e834(0xcfd)]=_0x59de4e[_0x36e834(0x28b8)]||[];})[_0x21d0dd(0x20cd)](function(_0x3532e8){const _0x10a097=_0x21d0dd;_0xd93118[_0x10a097(0x1bd0)]({'title':_0x3532e8[_0x10a097(0x10b3)]?'API:'+_0x3532e8['status']+_0x10a097(0x21db)+_0x3532e8['statusText']:_0x10a097(0x2780),'msg':_0x3532e8[_0x10a097(0x1c52)]?JSON['stringify'](_0x3532e8[_0x10a097(0x1c52)]):_0x3532e8[_0x10a097(0x2915)]()});}):_0x217ed4[_0x21d0dd(0xcfd)][_0x21d0dd(0x896)]({'fields':'id,name','sort':_0x21d0dd(0x2494),'IntervalId':'null'})[_0x21d0dd(0x15e7)][_0x21d0dd(0x64a)](function(_0x16080c){const _0x29f537=_0x21d0dd;_0x20400e['interval']=_0x16080c[_0x29f537(0x28b8)]||[];})[_0x21d0dd(0x64a)](function(){const _0x42f954=_0x21d0dd;return _0x217ed4[_0x42f954(0x16b2)]['get']({'userProfileId':_0x20400e[_0x42f954(0x1d3d)][_0x42f954(0x21ac)],'sectionId':0x3ec})[_0x42f954(0x15e7)];})[_0x21d0dd(0x64a)](function(_0x56bd76){const _0x1c2407=_0x21d0dd,_0x304b18=_0x56bd76&&_0x56bd76[_0x1c2407(0x28b8)]?_0x56bd76[_0x1c2407(0x28b8)][0x0]:null;if(!_0x304b18){const _0x472772=[];let _0x31366c=null;_0x20400e['ivrCampaign']&&(_0x31366c=_0x28c606()['find'](_0x20400e[_0x1c2407(0xcfd)],{'id':Number(_0x20400e[_0x1c2407(0x15aa)]['IntervalId'])}));for(let _0x1ed062=0x0;_0x1ed062<_0x20400e[_0x1c2407(0xcfd)][_0x1c2407(0x1b9e)];_0x1ed062++){_0x31366c&&_0x20400e[_0x1c2407(0xcfd)][_0x1ed062]['id']===_0x31366c['id']&&(_0x20400e[_0x1c2407(0xcfd)][_0x1ed062]['canSelect']=![],_0x472772[_0x1c2407(0x1954)](_0x20400e[_0x1c2407(0xcfd)][_0x1ed062]));}_0x20400e['interval']=_0x472772;}else{if(!_0x304b18[_0x1c2407(0x11da)])return _0x217ed4[_0x1c2407(0x1617)][_0x1c2407(0x896)]({'sectionId':_0x304b18['id']})['$promise'][_0x1c2407(0x64a)](function(_0x30c300){const _0xb89f96=_0x1c2407,_0x462b61=_0x28c606()[_0xb89f96(0x1de5)](_0x30c300[_0xb89f96(0x28b8)],function(_0x36cffc){const _0x2c49e0=_0xb89f96;return _0x28c606()[_0x2c49e0(0x27bc)](_0x20400e[_0x2c49e0(0xcfd)],{'id':_0x36cffc[_0x2c49e0(0x145)]});});let _0x1c6157=null;_0x20400e[_0xb89f96(0x15aa)]&&(_0x1c6157=_0x28c606()[_0xb89f96(0x27bc)](_0x20400e['interval'],{'id':Number(_0x20400e[_0xb89f96(0x15aa)][_0xb89f96(0xb71)])}));if(_0x1c6157&&!_0x28c606()['some'](_0x462b61,['id',_0x1c6157['id']])){const _0x3fabad=_0x28c606()[_0xb89f96(0x27bc)](_0x20400e[_0xb89f96(0xcfd)],{'id':_0x1c6157['id']});_0x3fabad[_0xb89f96(0xd4f)]=![],_0x462b61['push'](_0x3fabad);}_0x20400e[_0xb89f96(0xcfd)]=_0x462b61;});}})[_0x21d0dd(0x20cd)](function(_0x340d75){const _0x43b6b8=_0x21d0dd;_0xd93118['error']({'title':_0x340d75[_0x43b6b8(0x10b3)]?_0x43b6b8(0x575)+_0x340d75['status']+_0x43b6b8(0x21db)+_0x340d75[_0x43b6b8(0x2115)]:'SYSTEM:GETinterval','msg':_0x340d75[_0x43b6b8(0x1c52)]?JSON[_0x43b6b8(0x2317)](_0x340d75[_0x43b6b8(0x1c52)]):_0x340d75['toString']()});});function _0x2d3566(){const _0x103552=_0x21d0dd;_0x20400e['errors']=[],_0x217ed4[_0x103552(0x1aba)][_0x103552(0x2479)](_0x20400e[_0x103552(0x15aa)])['$promise']['then'](function(_0x3701bd){const _0x3e21d3=_0x103552;_0x20400e['ivrCampaigns'][_0x3e21d3(0x1891)](_0x3701bd[_0x3e21d3(0x14f8)]()),_0xd93118[_0x3e21d3(0x1339)]({'title':'IvrCampaign\x20properly\x20created','msg':_0x20400e['ivrCampaign'][_0x3e21d3(0x2494)]?_0x20400e[_0x3e21d3(0x15aa)][_0x3e21d3(0x2494)]+_0x3e21d3(0x258d):''}),_0x39a455(_0x3701bd);})[_0x103552(0x20cd)](function(_0xf0cf2b){const _0x4d478d=_0x103552;if(_0xf0cf2b[_0x4d478d(0x1c52)]&&_0xf0cf2b[_0x4d478d(0x1c52)][_0x4d478d(0xbae)]&&_0xf0cf2b['data']['errors']['length']){_0x20400e[_0x4d478d(0xbae)]=_0xf0cf2b['data'][_0x4d478d(0xbae)]||[{'message':_0xf0cf2b['toString'](),'type':_0x4d478d(0x1707)}];for(let _0x3f1f0c=0x0;_0x3f1f0c<_0xf0cf2b['data'][_0x4d478d(0xbae)][_0x4d478d(0x1b9e)];_0x3f1f0c+=0x1){_0xd93118[_0x4d478d(0x1bd0)]({'title':_0xf0cf2b['data'][_0x4d478d(0xbae)][_0x3f1f0c]['type'],'msg':_0xf0cf2b[_0x4d478d(0x1c52)]['errors'][_0x3f1f0c]['message']});}}else _0xd93118[_0x4d478d(0x1bd0)]({'title':_0xf0cf2b[_0x4d478d(0x10b3)]?_0x4d478d(0x575)+_0xf0cf2b['status']+_0x4d478d(0x21db)+_0xf0cf2b[_0x4d478d(0x2115)]:_0x4d478d(0x1707),'msg':_0xf0cf2b[_0x4d478d(0x1c52)]?JSON[_0x4d478d(0x2317)](_0xf0cf2b[_0x4d478d(0x1c52)]['message']):_0xf0cf2b[_0x4d478d(0x2915)]()});});}function _0x410c21(){const _0x59430c=_0x21d0dd;_0x20400e['errors']=[],_0x217ed4[_0x59430c(0x1aba)]['update']({'id':_0x20400e[_0x59430c(0x15aa)]['id']},_0x20400e[_0x59430c(0x15aa)])[_0x59430c(0x15e7)][_0x59430c(0x64a)](function(_0x5ea821){const _0x437fc2=_0x59430c,_0xab1cb3=_0x28c606()[_0x437fc2(0x27bc)](_0x20400e[_0x437fc2(0x1fa6)],{'id':_0x5ea821['id']});_0xab1cb3&&_0x28c606()[_0x437fc2(0x14fe)](_0xab1cb3,_0x28c606()[_0x437fc2(0x27bb)](_0x5ea821[_0x437fc2(0x14f8)](),_0x28c606()[_0x437fc2(0x1ec6)](_0xab1cb3))),_0xd93118[_0x437fc2(0x1339)]({'title':'IvrCampaign\x20properly\x20saved!','msg':_0x20400e['ivrCampaign']['name']?_0x20400e[_0x437fc2(0x15aa)][_0x437fc2(0x2494)]+_0x437fc2(0x271):''}),_0x39a455(_0x5ea821);})['catch'](function(_0x271a40){const _0x26265a=_0x59430c;if(_0x271a40[_0x26265a(0x1c52)]&&_0x271a40[_0x26265a(0x1c52)]['errors']&&_0x271a40[_0x26265a(0x1c52)][_0x26265a(0xbae)]['length']){_0x20400e[_0x26265a(0xbae)]=_0x271a40[_0x26265a(0x1c52)]['errors']||[{'message':_0x271a40[_0x26265a(0x2915)](),'type':_0x26265a(0x1fd6)}];for(let _0xe7c35b=0x0;_0xe7c35b<_0x271a40[_0x26265a(0x1c52)][_0x26265a(0xbae)][_0x26265a(0x1b9e)];_0xe7c35b++){_0xd93118[_0x26265a(0x1bd0)]({'title':_0x271a40[_0x26265a(0x1c52)][_0x26265a(0xbae)][_0xe7c35b][_0x26265a(0x2185)],'msg':_0x271a40['data']['errors'][_0xe7c35b][_0x26265a(0x18ca)]});}}else _0xd93118[_0x26265a(0x1bd0)]({'title':_0x271a40[_0x26265a(0x10b3)]?_0x26265a(0x575)+_0x271a40[_0x26265a(0x10b3)]+_0x26265a(0x21db)+_0x271a40[_0x26265a(0x2115)]:'api.campaign.update','msg':_0x271a40[_0x26265a(0x1c52)]?JSON[_0x26265a(0x2317)](_0x271a40[_0x26265a(0x1c52)][_0x26265a(0x18ca)]):_0x271a40[_0x26265a(0x2915)]()});});}function _0x22f7bc(_0x743080){const _0xc7e057=_0x21d0dd;_0x20400e[_0xc7e057(0xbae)]=[];const _0x361cd7=_0x250709[_0xc7e057(0x856)]()[_0xc7e057(0x2021)](_0xc7e057(0x103a))['content'](_0xc7e057(0x1fd9))['ariaLabel'](_0xc7e057(0x2588))['ok'](_0xc7e057(0x2664))[_0xc7e057(0x101a)](_0xc7e057(0x1dc6))[_0xc7e057(0x2283)](_0x743080);_0x250709['show'](_0x361cd7)[_0xc7e057(0x64a)](function(){const _0x52d73f=_0xc7e057;_0x217ed4[_0x52d73f(0x1aba)][_0x52d73f(0xabd)]({'id':_0x20400e[_0x52d73f(0x15aa)]['id']})[_0x52d73f(0x15e7)]['then'](function(){const _0x47a7ef=_0x52d73f;_0x28c606()['remove'](_0x20400e[_0x47a7ef(0x1fa6)],{'id':_0x20400e[_0x47a7ef(0x15aa)]['id']}),_0xd93118[_0x47a7ef(0x1339)]({'title':'IvrCampaign\x20properly\x20deleted!','msg':(_0x20400e['ivrCampaign']['name']||_0x47a7ef(0x15aa))+'\x20has\x20been\x20deleted!'}),_0x39a455(_0x20400e[_0x47a7ef(0x15aa)]);})[_0x52d73f(0x20cd)](function(_0x3ab350){const _0x5230de=_0x52d73f;if(_0x3ab350[_0x5230de(0x1c52)]&&_0x3ab350[_0x5230de(0x1c52)][_0x5230de(0xbae)]&&_0x3ab350[_0x5230de(0x1c52)]['errors'][_0x5230de(0x1b9e)]){_0x20400e['errors']=_0x3ab350['data']['errors']||[{'message':_0x3ab350[_0x5230de(0x2915)](),'type':_0x5230de(0x25af)}];for(let _0x57adee=0x0;_0x57adee<_0x3ab350[_0x5230de(0x1c52)][_0x5230de(0xbae)][_0x5230de(0x1b9e)];_0x57adee++){_0xd93118['error']({'title':_0x3ab350[_0x5230de(0x1c52)][_0x5230de(0xbae)][_0x57adee][_0x5230de(0x2185)],'msg':_0x3ab350[_0x5230de(0x1c52)][_0x5230de(0xbae)][_0x57adee][_0x5230de(0x18ca)]});}}else _0xd93118[_0x5230de(0x1bd0)]({'title':_0x3ab350[_0x5230de(0x10b3)]?_0x5230de(0x575)+_0x3ab350[_0x5230de(0x10b3)]+_0x5230de(0x21db)+_0x3ab350['statusText']:_0x5230de(0x25af),'msg':_0x3ab350[_0x5230de(0x1c52)]?JSON[_0x5230de(0x2317)](_0x3ab350[_0x5230de(0x1c52)]['message']):_0x3ab350['message']||_0x3ab350[_0x5230de(0x2915)]()});});},function(){});}function _0x53d721(_0x2ad40d){return _0x2ad40d===null?undefined:new Date(_0x2ad40d);}function _0x39a455(_0x231da3){const _0x41fd6d=_0x21d0dd;_0x250709[_0x41fd6d(0x268e)](_0x231da3);}}const _0x1524f4=_0x4250cd;;_0x1f0583[_0x49a1e3(0x1e73)]=['$mdDialog','$q',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x15aa),_0x49a1e3(0x298c),_0x49a1e3(0x20d4),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x1f0583(_0x4709e9,_0x11dffc,_0x296f1a,_0x3fa6e9,_0xf0b3fc,_0x4f9974,_0x251656,_0x510884,_0x4a398b){const _0x1cbed0=_0x49a1e3,_0x271fdc=this;_0x271fdc['currentUser']=_0x510884['getCurrentUser'](),_0x271fdc[_0x1cbed0(0x15aa)]=_0xf0b3fc,_0x271fdc[_0x1cbed0(0x402)]=_0x4a398b,_0x271fdc[_0x1cbed0(0x22b5)]='voiceQueue',_0x271fdc[_0x1cbed0(0x1a35)]='getBlackLists',_0x271fdc[_0x1cbed0(0xd1e)]=_0x1cbed0(0x8f4),_0x271fdc[_0x1cbed0(0x6a5)]=_0x1cbed0(0x1826),_0x271fdc[_0x1cbed0(0x23cb)]=[],_0x271fdc[_0x1cbed0(0x13d1)]=[],_0x271fdc[_0x1cbed0(0x1f4f)]=[],_0x271fdc[_0x1cbed0(0x206b)]=[],_0x271fdc[_0x1cbed0(0x24e1)]=[],_0x271fdc[_0x1cbed0(0xe9e)]=![],_0x271fdc[_0x1cbed0(0x26e5)]=![],_0x271fdc['dualMultiselectOptions']={'readOnly':!_0x271fdc[_0x1cbed0(0x402)][_0x1cbed0(0xd86)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x1cbed0(0x2494),'line1':_0x1cbed0(0x2494),'line2':'','line3':'','labelAll':_0x4f9974[_0x1cbed0(0x2292)](_0x1cbed0(0xf66)),'labelSelected':_0x4f9974[_0x1cbed0(0x2292)](_0x1cbed0(0x136e)),'transferCallback':function(){const _0x5a0f83=_0x1cbed0,_0x2cf630=_0x28c606()[_0x5a0f83(0x1ad)](_0x271fdc[_0x5a0f83(0x24e1)],_0x271fdc['selectedItems'],'id');_0x271fdc[_0x5a0f83(0xe9e)]=_0x28c606()[_0x5a0f83(0x940)](_0x2cf630)?![]:!![];}},_0x271fdc[_0x1cbed0(0x2483)]=_0x27eca7,_0x271fdc[_0x1cbed0(0x26c5)]=_0x4f3b67,_0x271fdc[_0x1cbed0(0x16cb)]=_0x421497;function _0x27eca7(){const _0x3b7954=_0x1cbed0;return _0x510884[_0x3b7954(0x4de)](_0x3b7954(0x333))?_0x496fc0()['catch'](function(_0xafc666){const _0xaa909f=_0x3b7954;_0x296f1a[_0xaa909f(0x1bd0)]({'title':_0xafc666[_0xaa909f(0x10b3)]?_0xaa909f(0x575)+_0xafc666['status']+_0xaa909f(0x21db)+_0xafc666[_0xaa909f(0x2115)]:_0xaa909f(0x2176),'msg':_0xafc666[_0xaa909f(0x10b3)]?JSON[_0xaa909f(0x2317)](_0xafc666[_0xaa909f(0x1c52)]):_0xafc666[_0xaa909f(0x2915)]()});}):_0x114a4f()[_0x3b7954(0x64a)](function(_0xd3d944){return _0x271fdc['section']=_0xd3d944,_0x496fc0();})[_0x3b7954(0x20cd)](function(_0x89621f){const _0x4a8bcc=_0x3b7954;_0x296f1a[_0x4a8bcc(0x1bd0)]({'title':_0x89621f[_0x4a8bcc(0x10b3)]?_0x4a8bcc(0x575)+_0x89621f[_0x4a8bcc(0x10b3)]+_0x4a8bcc(0x21db)+_0x89621f[_0x4a8bcc(0x2115)]:_0x4a8bcc(0x2176),'msg':_0x89621f[_0x4a8bcc(0x10b3)]?JSON['stringify'](_0x89621f[_0x4a8bcc(0x1c52)]):_0x89621f[_0x4a8bcc(0x2915)]()});});}function _0x114a4f(){return _0x11dffc(function(_0x4aa216,_0x5cd8ca){const _0x3bd775=a0_0x4127;_0x3fa6e9[_0x3bd775(0x16b2)][_0x3bd775(0x896)]({'userProfileId':_0x271fdc[_0x3bd775(0x1d3d)][_0x3bd775(0x21ac)],'name':_0x3bd775(0x386)})[_0x3bd775(0x15e7)]['then'](function(_0xd75474){const _0x4831b6=_0x3bd775,_0x48c911=_0xd75474&&_0xd75474[_0x4831b6(0x28b8)]?_0xd75474['rows'][0x0]:null;_0x4aa216(_0x48c911);})[_0x3bd775(0x20cd)](function(_0x3ce5f6){_0x5cd8ca(_0x3ce5f6);});});}function _0x496fc0(){return _0x11dffc(function(_0x4ab6c7,_0x930095){const _0x381a49=a0_0x4127;return _0x5178e9()['then'](function(_0x55b89f){const _0x32cd66=a0_0x4127;return _0x271fdc[_0x32cd66(0x23cb)]=_0x55b89f[_0x32cd66(0x28b8)]?_0x55b89f[_0x32cd66(0x28b8)]:[],_0x510884[_0x32cd66(0x4de)](_0x32cd66(0x333))?_0x55b89f:_0x271fdc[_0x32cd66(0xa21)]?_0x271fdc['section'][_0x32cd66(0x11da)]?_0x55b89f:_0x39c641():null;})['then'](function(_0x34365f){const _0x50eb1c=a0_0x4127,_0x36e021=_0x34365f&&_0x34365f['rows']?_0x34365f[_0x50eb1c(0x28b8)]:[];return _0x271fdc[_0x50eb1c(0x13d1)]=_0x28c606()[_0x50eb1c(0x1de5)](_0x36e021,function(_0x5a8745){const _0x4d0beb=_0x50eb1c;return _0x28c606()['find'](_0x271fdc[_0x4d0beb(0x23cb)],{'id':_0x510884[_0x4d0beb(0x4de)](_0x4d0beb(0x333))||_0x271fdc[_0x4d0beb(0xa21)][_0x4d0beb(0x11da)]?_0x5a8745['id']:_0x5a8745['resourceId']});}),_0x271fdc[_0x50eb1c(0x206b)]=angular['copy'](_0x271fdc[_0x50eb1c(0x13d1)]),_0x271fdc['items'][_0x50eb1c(0x1397)](function(_0x47521f){const _0x23e7bf=_0x50eb1c,_0x1c060b=_0x28c606()[_0x23e7bf(0x27bc)](_0x271fdc['allowedItems'],{'id':_0x47521f['id']});_0x271fdc['currentUser'][_0x23e7bf(0x161a)]===_0x23e7bf(0x333)?_0x47521f[_0x23e7bf(0x6f9)]=!![]:_0x47521f[_0x23e7bf(0x6f9)]=typeof _0x1c060b!==_0x23e7bf(0x19a1)?!![]:![];}),_0x11be2a();})[_0x381a49(0x64a)](function(_0x92e43e){const _0xc6c8d9=_0x381a49,_0x59c8b8=_0x92e43e&&_0x92e43e[_0xc6c8d9(0x28b8)]?_0x92e43e['rows']:[];_0x271fdc[_0xc6c8d9(0x1f4f)]=_0x28c606()[_0xc6c8d9(0x1de5)](_0x59c8b8,function(_0x257e2e){const _0x5712a4=_0xc6c8d9;return _0x28c606()['find'](_0x271fdc[_0x5712a4(0x23cb)],{'id':_0x257e2e['id']});}),_0x271fdc[_0xc6c8d9(0x24e1)]=angular[_0xc6c8d9(0x289e)](_0x271fdc[_0xc6c8d9(0x1f4f)]),_0x271fdc['dualMultiselectOptions'][_0xc6c8d9(0x1f4f)]=_0x271fdc[_0xc6c8d9(0x1f4f)],_0x271fdc[_0xc6c8d9(0x1eeb)][_0xc6c8d9(0x23cb)]=_0x28c606()['differenceBy'](_0x271fdc[_0xc6c8d9(0x13d1)],_0x271fdc['dualMultiselectOptions']['selectedItems'],'id'),_0x4ab6c7();})[_0x381a49(0x20cd)](function(_0x1e469f){_0x930095(_0x1e469f);});});}function _0x39c641(){return _0x11dffc(function(_0x458088,_0x3724b0){const _0x426842=a0_0x4127;return _0x3fa6e9[_0x426842(0x1617)]['get']({'sectionId':_0x271fdc[_0x426842(0xa21)]['id'],'nolimit':!![]})[_0x426842(0x15e7)][_0x426842(0x64a)](function(_0x5985f8){_0x458088(_0x5985f8);})[_0x426842(0x20cd)](function(_0x41e6f5){_0x3724b0(_0x41e6f5);});});}function _0x11be2a(){return _0x11dffc(function(_0x5e5068,_0x1546ff){const _0x3615f8=a0_0x4127,_0x10ddd1=_0x3fa6e9[_0x271fdc['apiRoute']];return _0x10ddd1[_0x271fdc['getApi']]({'id':_0x271fdc[_0x3615f8(0x15aa)]['id'],'fields':'id,name','nolimit':!![]})['$promise'][_0x3615f8(0x64a)](function(_0x15d6fa){_0x5e5068(_0x15d6fa);})[_0x3615f8(0x20cd)](function(_0x35ab73){_0x1546ff(_0x35ab73);});});}function _0x5178e9(){return _0x11dffc(function(_0x2f8b66,_0x2df199){const _0x3cb323=a0_0x4127;return _0x3fa6e9[_0x3cb323(0x19f8)][_0x3cb323(0x896)]({'fields':_0x3cb323(0x1427),'nolimit':!![]})[_0x3cb323(0x15e7)]['then'](function(_0x306aa8){_0x2f8b66(_0x306aa8);})[_0x3cb323(0x20cd)](function(_0x3858ab){_0x2df199(_0x3858ab);});});}function _0x35b537(_0x5c7ac9){return _0x11dffc(function(_0x156834,_0xc249e6){const _0x35ec16=a0_0x4127;if(_0x28c606()[_0x35ec16(0x940)](_0x5c7ac9))_0x156834();else{const _0x1c7fdc=_0x3fa6e9[_0x271fdc[_0x35ec16(0x22b5)]];_0x1c7fdc[_0x271fdc[_0x35ec16(0xd1e)]]({'id':_0x271fdc[_0x35ec16(0x15aa)]['id'],'ids':_0x28c606()[_0x35ec16(0x1de5)](_0x5c7ac9,'id')})[_0x35ec16(0x15e7)][_0x35ec16(0x64a)](function(){_0x156834();})['catch'](function(_0xc47290){_0xc249e6(_0xc47290);});}});}function _0x2e44c3(_0x1581de){return _0x11dffc(function(_0x1b28cd,_0xce7c1e){const _0x3d7554=a0_0x4127;if(_0x28c606()['isEmpty'](_0x1581de))_0x1b28cd();else{const _0x30a248=_0x3fa6e9[_0x271fdc['apiRoute']];_0x30a248[_0x271fdc['removeApi']]({'id':_0x271fdc[_0x3d7554(0x15aa)]['id'],'ids':_0x28c606()[_0x3d7554(0x1de5)](_0x1581de,'id')})[_0x3d7554(0x15e7)][_0x3d7554(0x64a)](function(){_0x1b28cd();})['catch'](function(_0x5179a7){_0xce7c1e(_0x5179a7);});}});}function _0x4f3b67(){const _0x284f11=_0x1cbed0;_0x271fdc[_0x284f11(0x26e5)]=!![];const _0x2639b8=_0x28c606()[_0x284f11(0x23e5)](_0x271fdc['startingSelectedItems'],_0x271fdc['selectedItems'],'id'),_0x2453c8=_0x28c606()[_0x284f11(0x23e5)](_0x271fdc[_0x284f11(0x1f4f)],_0x271fdc[_0x284f11(0x24e1)],'id');return _0x2e44c3(_0x2639b8)[_0x284f11(0x64a)](function(){return _0x35b537(_0x2453c8);})['then'](function(){const _0x57e8ad=_0x284f11;_0x271fdc[_0x57e8ad(0xe9e)]=![],_0x271fdc['startingAllowedItems']=angular['copy'](_0x271fdc[_0x57e8ad(0x13d1)]),_0x271fdc['startingSelectedItems']=angular[_0x57e8ad(0x289e)](_0x271fdc[_0x57e8ad(0x1f4f)]),_0x296f1a[_0x57e8ad(0x1339)]({'title':'SUCCESS','msg':_0x57e8ad(0x1f6)});})[_0x284f11(0x20cd)](function(_0x20fe10){const _0x3f6939=_0x284f11;_0x296f1a['error']({'title':_0x20fe10[_0x3f6939(0x10b3)]?_0x3f6939(0x575)+_0x20fe10[_0x3f6939(0x10b3)]+'\x20-\x20'+_0x20fe10[_0x3f6939(0x2115)]:_0x3f6939(0x1226),'msg':_0x20fe10[_0x3f6939(0x10b3)]?JSON[_0x3f6939(0x2317)](_0x20fe10[_0x3f6939(0x1c52)]):_0x20fe10[_0x3f6939(0x2915)]()});})['finally'](function(){const _0x1f2a18=_0x284f11;_0x271fdc[_0x1f2a18(0x26e5)]=![];});}function _0x421497(){_0x4709e9['hide']();}}const _0x17818b=_0x1f0583;;_0x32f0a2[_0x49a1e3(0x1e73)]=['$mdDialog',_0x49a1e3(0x77f),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x15aa),_0x49a1e3(0x1fa6),_0x49a1e3(0x298c)];function _0x32f0a2(_0x5d7623,_0x297b05,_0x50c8cc,_0x5afe44,_0x2e9448,_0x559d46,_0x382d21){const _0x44efbd=_0x49a1e3,_0x274dbe=this;_0x274dbe['newIvrCampaign']=!![],_0x274dbe[_0x44efbd(0x15aa)]=angular[_0x44efbd(0x289e)](_0x2e9448),_0x274dbe[_0x44efbd(0x1fa6)]=_0x559d46,_0x274dbe[_0x44efbd(0x2021)]=_0x382d21[_0x44efbd(0x2292)](_0x44efbd(0x1659));_0x2e9448&&_0x2e9448['name']&&(_0x274dbe[_0x44efbd(0x2021)]+=':\x20'+_0x2e9448[_0x44efbd(0x2494)]);_0x274dbe[_0x44efbd(0xeab)]=_0x52bc9b,_0x274dbe[_0x44efbd(0x16cb)]=_0x364943;function _0x52bc9b(){const _0x440433=_0x44efbd;return _0x5afe44[_0x440433(0x1aba)][_0x440433(0x24b2)]({'id':_0x2e9448['id']},_0x274dbe[_0x440433(0x15aa)])[_0x440433(0x15e7)][_0x440433(0x64a)](function(_0x41e9e4){const _0x583d14=_0x440433;_0x274dbe['ivrCampaigns'][_0x583d14(0x1891)](_0x41e9e4[_0x583d14(0x14f8)]()),_0x50c8cc[_0x583d14(0x1339)]({'title':_0x583d14(0x96c),'msg':_0x274dbe[_0x583d14(0x15aa)][_0x583d14(0x2494)]?_0x274dbe[_0x583d14(0x15aa)][_0x583d14(0x2494)]+_0x583d14(0x28e7):''}),_0x297b05['go']('app.motiondialer.ivrCampaigns.edit',{'id':_0x41e9e4['id']}),_0x364943(_0x41e9e4);})[_0x440433(0x20cd)](function(_0x20037a){const _0x27d01e=_0x440433;if(_0x20037a[_0x27d01e(0x1c52)]&&_0x20037a['data'][_0x27d01e(0xbae)]&&_0x20037a[_0x27d01e(0x1c52)][_0x27d01e(0xbae)][_0x27d01e(0x1b9e)]){_0x274dbe[_0x27d01e(0xbae)]=_0x20037a[_0x27d01e(0x1c52)][_0x27d01e(0xbae)]||[{'message':_0x20037a[_0x27d01e(0x2915)](),'type':_0x27d01e(0x1881)}];for(let _0x3b8040=0x0;_0x3b8040<_0x20037a[_0x27d01e(0x1c52)][_0x27d01e(0xbae)]['length'];_0x3b8040+=0x1){_0x50c8cc[_0x27d01e(0x1bd0)]({'title':_0x20037a[_0x27d01e(0x1c52)]['errors'][_0x3b8040][_0x27d01e(0x2185)],'msg':_0x20037a[_0x27d01e(0x1c52)][_0x27d01e(0xbae)][_0x3b8040]['message']});}}else _0x50c8cc[_0x27d01e(0x1bd0)]({'title':_0x20037a['status']?'API:'+_0x20037a[_0x27d01e(0x10b3)]+_0x27d01e(0x21db)+_0x20037a['statusText']:_0x27d01e(0x1881),'msg':_0x20037a[_0x27d01e(0x1c52)]?JSON[_0x27d01e(0x2317)](_0x20037a[_0x27d01e(0x1c52)]['message']):_0x20037a[_0x27d01e(0x2915)]()});});}function _0x364943(_0x49fe1c){const _0x3db5a6=_0x44efbd;_0x5d7623[_0x3db5a6(0x268e)](_0x49fe1c);}}const _0x4f8c6c=_0x32f0a2;;_0x8fe974['$inject']=[_0x49a1e3(0x7a7),'$scope','$state','$q','$translate',_0x49a1e3(0x20d4),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x8fe974(_0x12c39c,_0x1162c3,_0x118da5,_0x452007,_0x30a99e,_0x5d77ac,_0x405a4a,_0x1698de,_0x1bcd5a,_0xf1558d,_0x594120){const _0x54fb63=_0x49a1e3,_0x406e9f=this;_0x406e9f[_0x54fb63(0x1d3d)]=_0x594120['getCurrentUser'](),_0x406e9f[_0x54fb63(0x15aa)]={},_0x406e9f[_0x54fb63(0x2296)]={'count':0x0,'rows':[]},_0x406e9f[_0x54fb63(0xd50)]=[],_0x406e9f[_0x54fb63(0x402)],_0x406e9f[_0x54fb63(0x289a)]={'fields':_0x54fb63(0xbbe),'sort':_0x54fb63(0x2778),'limit':0xa,'page':0x1},_0x406e9f[_0x54fb63(0x2354)]=_0x23864e,_0x406e9f[_0x54fb63(0x217e)]=_0x40adad,_0x406e9f['success']=_0x3071c4,_0x406e9f[_0x54fb63(0x1718)]=_0x2d82c1,_0x406e9f['exportSelectedIvrCampaignHopperBlacks']=_0x452665,_0x406e9f[_0x54fb63(0x1a9)]=_0x20fa86,_0x406e9f[_0x54fb63(0x193f)]=_0x338d81;function _0x23864e(_0x2d2f65,_0x183ba9){const _0x12cada=_0x54fb63;_0x406e9f[_0x12cada(0x15aa)]=_0x2d2f65,_0x406e9f[_0x12cada(0x402)]=typeof _0x183ba9!==_0x12cada(0x19a1)?_0x183ba9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x406e9f['query'][_0x12cada(0x1833)]=_0x406e9f[_0x12cada(0x15aa)]['id'],_0x406e9f[_0x12cada(0x289a)]['id']=_0x406e9f[_0x12cada(0x15aa)]['id'],_0x2d82c1();}function _0x40adad(_0x109bf2,_0x38f806){const _0x229507=_0x54fb63,_0x313007=_0x405a4a[_0x229507(0x856)]()['title'](_0x229507(0x1c90))['htmlContent'](_0x229507(0x50b)+(_0x109bf2[_0x229507(0x2494)]||_0x109bf2['id']&&_0x28c606()[_0x229507(0x1766)](_0x229507(0x948))+_0x109bf2['id']||'hopperBlack')+_0x229507(0x26d0)+_0x229507(0x4b8))[_0x229507(0x213e)](_0x229507(0x1ab5))[_0x229507(0x2283)](_0x38f806)['ok']('OK')[_0x229507(0x101a)](_0x229507(0x18fd));_0x405a4a[_0x229507(0xa60)](_0x313007)[_0x229507(0x64a)](function(){_0x20fa86(_0x109bf2);},function(){const _0x3dfa01=_0x229507;console[_0x3dfa01(0x9b4)](_0x3dfa01(0x18fd));});}function _0x3071c4(_0x4b5a86){const _0x592b39=_0x54fb63;_0x406e9f[_0x592b39(0x2296)]=_0x4b5a86||{'count':0x0,'rows':[]};}function _0x2d82c1(){const _0x3394ef=_0x54fb63;_0x406e9f['query'][_0x3394ef(0x24f9)]=(_0x406e9f['query'][_0x3394ef(0xc72)]-0x1)*_0x406e9f[_0x3394ef(0x289a)][_0x3394ef(0x25bb)],_0x406e9f[_0x3394ef(0x1713)]=_0xf1558d[_0x3394ef(0x1aba)]['getHopperBlacks'](_0x406e9f[_0x3394ef(0x289a)],_0x3071c4)[_0x3394ef(0x15e7)];}function _0x20fa86(_0x25ed74){const _0x1627b2=_0x54fb63;_0xf1558d[_0x1627b2(0x2220)][_0x1627b2(0xabd)]({'id':_0x25ed74['id']})[_0x1627b2(0x15e7)][_0x1627b2(0x64a)](function(){const _0x50a22=_0x1627b2;_0x28c606()[_0x50a22(0x21c7)](_0x406e9f[_0x50a22(0x2296)]['rows'],{'id':_0x25ed74['id']}),_0x406e9f[_0x50a22(0x2296)][_0x50a22(0xb90)]-=0x1,!_0x406e9f[_0x50a22(0x2296)][_0x50a22(0x28b8)][_0x50a22(0x1b9e)]&&_0x2d82c1(),_0x1bcd5a[_0x50a22(0x1339)]({'title':_0x50a22(0x2710),'msg':_0x25ed74[_0x50a22(0x2494)]?_0x25ed74[_0x50a22(0x2494)]+_0x50a22(0x1fa8):''});})[_0x1627b2(0x20cd)](function(_0x1e8496){const _0x4dcc82=_0x1627b2;if(_0x1e8496[_0x4dcc82(0x1c52)]&&_0x1e8496[_0x4dcc82(0x1c52)][_0x4dcc82(0xbae)]&&_0x1e8496[_0x4dcc82(0x1c52)]['errors'][_0x4dcc82(0x1b9e)]){_0x406e9f[_0x4dcc82(0xbae)]=_0x1e8496['data'][_0x4dcc82(0xbae)]||[{'message':_0x1e8496[_0x4dcc82(0x2915)](),'type':_0x4dcc82(0xad7)}];for(let _0x53dad5=0x0;_0x53dad5<_0x1e8496[_0x4dcc82(0x1c52)]['errors']['length'];_0x53dad5++){_0x1bcd5a[_0x4dcc82(0x1bd0)]({'title':_0x1e8496[_0x4dcc82(0x1c52)]['errors'][_0x53dad5][_0x4dcc82(0x2185)],'msg':_0x1e8496[_0x4dcc82(0x1c52)][_0x4dcc82(0xbae)][_0x53dad5][_0x4dcc82(0x18ca)]});}}else _0x1bcd5a[_0x4dcc82(0x1bd0)]({'title':_0x1e8496[_0x4dcc82(0x10b3)]?_0x4dcc82(0x575)+_0x1e8496[_0x4dcc82(0x10b3)]+'\x20-\x20'+_0x1e8496[_0x4dcc82(0x2115)]:_0x4dcc82(0xad7),'msg':_0x1e8496['data']?JSON[_0x4dcc82(0x2317)](_0x1e8496[_0x4dcc82(0x1c52)][_0x4dcc82(0x18ca)]):_0x1e8496[_0x4dcc82(0x18ca)]||_0x1e8496[_0x4dcc82(0x2915)]()});});}function _0x452665(){const _0x5d94c5=_0x54fb63,_0x374450=angular['copy'](_0x406e9f[_0x5d94c5(0xd50)]);return _0x406e9f[_0x5d94c5(0xd50)]=[],_0x374450;}function _0x338d81(_0x1f8a8c){const _0x125159=_0x54fb63,_0x5a19fb=_0x405a4a['confirm']()[_0x125159(0x2021)](_0x125159(0x81a))['htmlContent'](_0x125159(0x50b)+_0x406e9f[_0x125159(0xd50)][_0x125159(0x1b9e)]+_0x125159(0x163e)+_0x125159(0x4b8))['ariaLabel'](_0x125159(0x2793))[_0x125159(0x2283)](_0x1f8a8c)['ok']('OK')[_0x125159(0x101a)]('CANCEL');_0x405a4a[_0x125159(0xa60)](_0x5a19fb)[_0x125159(0x64a)](function(){const _0x1489d7=_0x125159;_0x406e9f[_0x1489d7(0xd50)][_0x1489d7(0x1397)](function(_0x35bb14){_0x20fa86(_0x35bb14);}),_0x406e9f[_0x1489d7(0xd50)]=[];});}let _0x26a996=!![],_0x244a82=0x1;_0x1162c3['$watch']('vm_dc.query.filter',function(_0x508f92,_0x306c30){const _0x1de963=_0x54fb63;_0x26a996?_0x5d77ac(function(){_0x26a996=![];}):(!_0x306c30&&(_0x244a82=_0x406e9f['query'][_0x1de963(0xc72)]),_0x508f92!==_0x306c30&&(_0x406e9f[_0x1de963(0x289a)][_0x1de963(0xc72)]=0x1),!_0x508f92&&(_0x406e9f[_0x1de963(0x289a)]['page']=_0x244a82),_0x2d82c1());});}const _0xaf0547=_0x8fe974;;_0x5c3530[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),'$scope',_0x49a1e3(0x77f),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x5c3530(_0x3e8972,_0x1bfc9b,_0x4ea8c1,_0x2fc869,_0x42a9d3,_0x37e5de,_0x589293,_0x97519b,_0xd6d203,_0x408f40,_0x2e05ec){const _0x79c9b7=_0x49a1e3,_0x32be42=this;_0x32be42['currentUser']=_0x2e05ec[_0x79c9b7(0x808)](),_0x32be42['contacts']={},_0x32be42[_0x79c9b7(0x15aa)]={},_0x32be42[_0x79c9b7(0x16d8)]={'count':0x0,'rows':[]},_0x32be42[_0x79c9b7(0x24a2)]=[],_0x32be42[_0x79c9b7(0x402)],_0x32be42[_0x79c9b7(0x289a)]={'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':_0x79c9b7(0x2778),'limit':0xa,'page':0x1},_0x32be42[_0x79c9b7(0x2354)]=_0x191874,_0x32be42[_0x79c9b7(0x217e)]=_0x15e9c5,_0x32be42[_0x79c9b7(0x1339)]=_0x58657a,_0x32be42[_0x79c9b7(0x1394)]=_0x2b4ae9,_0x32be42[_0x79c9b7(0xece)]=_0x32ecf3,_0x32be42['deleteIvrCampaignHopperFinal']=_0x53bf58,_0x32be42[_0x79c9b7(0x32d)]=_0x5126f8,_0x32be42[_0x79c9b7(0x1b7d)]=_0xe3aa98,_0x32be42[_0x79c9b7(0x20f)]=_0x62239f,_0x32be42[_0x79c9b7(0x25b4)]=_0x4a7207,_0x32be42[_0x79c9b7(0xbec)]=_0x3e652e,_0x32be42['moveSelectedIvrCampaignHopperFinals']=_0x3a7f88;function _0x191874(_0x3865b0,_0x2869e5){const _0x44dae2=_0x79c9b7;_0x32be42[_0x44dae2(0x15aa)]=_0x3865b0,_0x32be42[_0x44dae2(0x402)]=typeof _0x2869e5!==_0x44dae2(0x19a1)?_0x2869e5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x32be42[_0x44dae2(0x289a)][_0x44dae2(0x1833)]=_0x32be42['ivrCampaign']['id'],_0x32be42[_0x44dae2(0x289a)]['id']=_0x32be42['ivrCampaign']['id'],_0x2b4ae9();}function _0x15e9c5(_0x106dfd,_0x4dd683){const _0x5444db=_0x79c9b7,_0xbeed61=_0x589293['confirm']()[_0x5444db(0x2021)](_0x5444db(0x1a7a))[_0x5444db(0x33a)](_0x5444db(0x50b)+(_0x106dfd[_0x5444db(0x2494)]||_0x106dfd['id']&&_0x28c606()[_0x5444db(0x1766)](_0x5444db(0x294a))+_0x106dfd['id']||_0x5444db(0x153f))+_0x5444db(0x26d0)+'\x20will\x20be\x20deleted.')[_0x5444db(0x213e)](_0x5444db(0x1622))[_0x5444db(0x2283)](_0x4dd683)['ok']('OK')['cancel'](_0x5444db(0x18fd));_0x589293[_0x5444db(0xa60)](_0xbeed61)[_0x5444db(0x64a)](function(){_0x53bf58(_0x106dfd);},function(){const _0x4f0873=_0x5444db;console['log'](_0x4f0873(0x18fd));});}function _0x58657a(_0x59f388){const _0x1c47bb=_0x79c9b7;_0x32be42[_0x1c47bb(0x16d8)]=_0x59f388||{'count':0x0,'rows':[]};}function _0x2b4ae9(){const _0x6ed89=_0x79c9b7;_0x32be42['query']['offset']=(_0x32be42[_0x6ed89(0x289a)]['page']-0x1)*_0x32be42[_0x6ed89(0x289a)][_0x6ed89(0x25bb)],_0x32be42['promise']=_0x408f40[_0x6ed89(0x1aba)][_0x6ed89(0x29f)](_0x32be42[_0x6ed89(0x289a)],_0x58657a)[_0x6ed89(0x15e7)];}function _0x53bf58(_0x55cbe3){const _0x4478a0=_0x79c9b7;_0x408f40[_0x4478a0(0x153f)][_0x4478a0(0xabd)]({'id':_0x55cbe3['id']})[_0x4478a0(0x15e7)][_0x4478a0(0x64a)](function(){const _0x5e0e9e=_0x4478a0;_0x28c606()[_0x5e0e9e(0x21c7)](_0x32be42[_0x5e0e9e(0x16d8)]['rows'],{'id':_0x55cbe3['id']}),_0x32be42[_0x5e0e9e(0x16d8)][_0x5e0e9e(0xb90)]-=0x1,!_0x32be42[_0x5e0e9e(0x16d8)]['rows'][_0x5e0e9e(0x1b9e)]&&_0x2b4ae9(),_0xd6d203[_0x5e0e9e(0x1339)]({'title':_0x5e0e9e(0x153b),'msg':_0x55cbe3['name']?_0x55cbe3[_0x5e0e9e(0x2494)]+_0x5e0e9e(0x1fa8):''});})[_0x4478a0(0x20cd)](function(_0x12a153){const _0x4e0ce3=_0x4478a0;if(_0x12a153[_0x4e0ce3(0x1c52)]&&_0x12a153[_0x4e0ce3(0x1c52)][_0x4e0ce3(0xbae)]&&_0x12a153[_0x4e0ce3(0x1c52)][_0x4e0ce3(0xbae)][_0x4e0ce3(0x1b9e)]){_0x32be42[_0x4e0ce3(0xbae)]=_0x12a153[_0x4e0ce3(0x1c52)][_0x4e0ce3(0xbae)]||[{'message':_0x12a153[_0x4e0ce3(0x2915)](),'type':_0x4e0ce3(0xad7)}];for(let _0x194c4e=0x0;_0x194c4e<_0x12a153[_0x4e0ce3(0x1c52)]['errors'][_0x4e0ce3(0x1b9e)];_0x194c4e++){_0xd6d203[_0x4e0ce3(0x1bd0)]({'title':_0x12a153[_0x4e0ce3(0x1c52)][_0x4e0ce3(0xbae)][_0x194c4e][_0x4e0ce3(0x2185)],'msg':_0x12a153[_0x4e0ce3(0x1c52)]['errors'][_0x194c4e][_0x4e0ce3(0x18ca)]});}}else _0xd6d203[_0x4e0ce3(0x1bd0)]({'title':_0x12a153['status']?_0x4e0ce3(0x575)+_0x12a153[_0x4e0ce3(0x10b3)]+_0x4e0ce3(0x21db)+_0x12a153[_0x4e0ce3(0x2115)]:_0x4e0ce3(0xad7),'msg':_0x12a153[_0x4e0ce3(0x1c52)]?JSON[_0x4e0ce3(0x2317)](_0x12a153[_0x4e0ce3(0x1c52)][_0x4e0ce3(0x18ca)]):_0x12a153[_0x4e0ce3(0x18ca)]||_0x12a153[_0x4e0ce3(0x2915)]()});});}function _0x32ecf3(){const _0x27efd1=_0x79c9b7,_0x3c3bc1=angular[_0x27efd1(0x289e)](_0x32be42[_0x27efd1(0x24a2)]);return _0x32be42[_0x27efd1(0x24a2)]=[],_0x3c3bc1;}function _0x5126f8(_0x19c6a3){const _0x469644=_0x79c9b7,_0x1d2878=_0x589293['confirm']()['title'](_0x469644(0xe91))[_0x469644(0x33a)](_0x469644(0x50b)+_0x32be42[_0x469644(0x24a2)]['length']+_0x469644(0x163e)+_0x469644(0x4b8))[_0x469644(0x213e)](_0x469644(0xd78))['targetEvent'](_0x19c6a3)['ok']('OK')[_0x469644(0x101a)](_0x469644(0x18fd));_0x589293[_0x469644(0xa60)](_0x1d2878)['then'](function(){const _0x34d9d4=_0x469644;_0x32be42[_0x34d9d4(0x24a2)][_0x34d9d4(0x1397)](function(_0x2708b9){_0x53bf58(_0x2708b9);}),_0x32be42['selectedIvrCampaignHopperFinals']=[];});}function _0x62239f(_0x552d5a){const _0x20c82f=_0x79c9b7;_0x408f40[_0x20c82f(0x711)]['moveContactsIvrCampaignHopperFinal']({'id':_0x32be42[_0x20c82f(0x289a)]['id'],'state':_0x552d5a})[_0x20c82f(0x15e7)]['then'](function(_0x535ff7){const _0x373d5c=_0x20c82f;_0x28c606()[_0x373d5c(0x28d7)](_0x535ff7)&&_0x28c606()[_0x373d5c(0x28d7)](_0x535ff7[0x0])?_0xd6d203['info']({'title':'Restored\x20Contacts','msg':'0'}):_0xd6d203[_0x373d5c(0x772)]({'title':'Restored\x20Contacts','msg':JSON[_0x373d5c(0x2317)](_0x535ff7[0x0][_0x373d5c(0x44c)])});})[_0x20c82f(0x20cd)](function(_0x3b46ed){const _0x536495=_0x20c82f;_0xd6d203['error']({'title':_0x3b46ed[_0x536495(0x10b3)]?_0x536495(0x575)+_0x3b46ed[_0x536495(0x10b3)]+_0x536495(0x21db)+_0x3b46ed[_0x536495(0x2115)]:'SYSTEM:GETvoiceQueue','msg':_0x3b46ed['data']?JSON[_0x536495(0x2317)](_0x3b46ed[_0x536495(0x1c52)]['message']):_0x3b46ed[_0x536495(0x18ca)]||_0x3b46ed['toString']()});});}function _0x4a7207(_0xd112ca){const _0x435a91=_0x79c9b7;_0x408f40[_0x435a91(0x711)][_0x435a91(0x25b4)]({'id':_0xd112ca})[_0x435a91(0x15e7)][_0x435a91(0x64a)](function(_0x358492){const _0x47ff2d=_0x435a91;_0x28c606()[_0x47ff2d(0x14fe)](_0x32be42['contacts'],_0x358492[0x0]);})[_0x435a91(0x20cd)](function(_0x49dd78){const _0x1bfc24=_0x435a91;_0xd6d203[_0x1bfc24(0x1bd0)]({'title':_0x49dd78[_0x1bfc24(0x10b3)]?_0x1bfc24(0x575)+_0x49dd78[_0x1bfc24(0x10b3)]+'\x20-\x20'+_0x49dd78[_0x1bfc24(0x2115)]:_0x1bfc24(0xad7),'msg':_0x49dd78['data']?JSON[_0x1bfc24(0x2317)](_0x49dd78['data'][_0x1bfc24(0x18ca)]):_0x49dd78[_0x1bfc24(0x18ca)]||_0x49dd78[_0x1bfc24(0x2915)]()});});}function _0x3a7f88(_0x783941){const _0x2a7a7b=_0x79c9b7,_0x40c94c=_0x589293['confirm']()[_0x2a7a7b(0x2021)](_0x2a7a7b(0x130b))['htmlContent'](_0x2a7a7b(0xdf4)+_0x2a7a7b(0x16e8))[_0x2a7a7b(0x213e)]('Restore\x20Contacts')[_0x2a7a7b(0x2283)](_0x783941)['ok']('OK')['cancel'](_0x2a7a7b(0x18fd));_0x589293['show'](_0x40c94c)['then'](function(){const _0x151c2f=_0x2a7a7b;_0x32be42[_0x151c2f(0x24a2)][_0x151c2f(0x1397)](function(_0x3d969d){_0xe3aa98(_0x3d969d);}),_0x32be42[_0x151c2f(0x24a2)]=[];});}function _0x3e652e(_0x814c57,_0x21d277){const _0x541b85=_0x79c9b7,_0x4cd226=_0x589293[_0x541b85(0x856)]()[_0x541b85(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20contact?')[_0x541b85(0x33a)](_0x541b85(0x50b)+_0x541b85(0x1c38)+_0x541b85(0x26d0)+'\x20will\x20be\x20restored.')[_0x541b85(0x213e)]('Restore\x20Contact')[_0x541b85(0x2283)](_0x21d277)['ok']('OK')[_0x541b85(0x101a)](_0x541b85(0x18fd));_0x589293['show'](_0x4cd226)['then'](function(){_0xe3aa98(_0x814c57);},function(){const _0x359f2e=_0x541b85;console[_0x359f2e(0x9b4)](_0x359f2e(0x18fd));});}function _0x1cf9d8(_0x1e7de8){const _0x4d0035=_0x79c9b7,_0x40e5a8={};return _0x40e5a8[_0x4d0035(0x267a)]=_0x1e7de8[_0x4d0035(0x225d)],_0x40e5a8[_0x4d0035(0x28f0)]=_0x2ac33a()()['format'](_0x4d0035(0x5f7)),_0x40e5a8[_0x4d0035(0x12e9)]=0x0,_0x40e5a8['countcongestionretry']=0x0,_0x40e5a8[_0x4d0035(0x27ba)]=0x0,_0x40e5a8[_0x4d0035(0x2194)]=0x0,_0x40e5a8[_0x4d0035(0x1c49)]=_0x1e7de8['ContactId'],_0x40e5a8[_0x4d0035(0x869)]=_0x1e7de8[_0x4d0035(0x869)],_0x40e5a8[_0x4d0035(0x246c)]=_0x1e7de8['deleted']?null:_0x1e7de8[_0x4d0035(0x246c)],_0x40e5a8[_0x4d0035(0x7c0)]=_0x1e7de8[_0x4d0035(0x7c0)],_0x40e5a8[_0x4d0035(0x1833)]=_0x1e7de8['CampaignId'],_0x40e5a8['priority']=_0x1e7de8[_0x4d0035(0xbf1)]?0x3:0x2,_0x40e5a8[_0x4d0035(0xbf1)]=_0x1e7de8['recallme']?!![]:![],_0x40e5a8;}function _0x1b4686(_0x13d289){const _0x258f50=_0x79c9b7,_0x3acf89={};return _0x3acf89['calleridnum']=_0x13d289['calleridnum'],_0x3acf89[_0x258f50(0x58f)]=_0x13d289[_0x258f50(0x58f)],_0x3acf89[_0x258f50(0x28f0)]=_0x2ac33a()()[_0x258f50(0x1c2c)]('YYYY-MM-DD\x20HH:mm:ss'),_0x3acf89[_0x258f50(0x12e9)]=_0x13d289[_0x258f50(0x12e9)],_0x3acf89[_0x258f50(0x149b)]=_0x13d289[_0x258f50(0x149b)],_0x3acf89[_0x258f50(0x27ba)]=_0x13d289[_0x258f50(0x27ba)],_0x3acf89[_0x258f50(0x2194)]=_0x13d289['countglobal'],_0x3acf89['ContactId']=_0x13d289['ContactId'],_0x3acf89[_0x258f50(0x869)]=_0x13d289[_0x258f50(0x869)],_0x3acf89[_0x258f50(0x246c)]=_0x2e05ec['getCurrentUser']()['id'],_0x3acf89[_0x258f50(0x7c0)]=_0x13d289[_0x258f50(0x7c0)],_0x3acf89[_0x258f50(0x1833)]=_0x13d289[_0x258f50(0x1833)],_0x3acf89['editedat']=_0x2ac33a()()[_0x258f50(0x1c2c)](_0x258f50(0x5f7)),_0x3acf89[_0x258f50(0x60d)]=!![],_0x3acf89[_0x258f50(0x14f2)]=0x19,_0x3acf89[_0x258f50(0x1ccb)]=_0x258f50(0x5b4),_0x3acf89[_0x258f50(0x1aba)]=_0x13d289[_0x258f50(0x1aba)],_0x3acf89['campaigntype']=_0x13d289[_0x258f50(0x7c0)]?_0x258f50(0x1e4e):_0x258f50(0x254b),_0x3acf89;}function _0xe3aa98(_0x527889){const _0x52e660=_0x79c9b7;_0x408f40['cmHopperFinal'][_0x52e660(0x2779)](_0x527889)['$promise'][_0x52e660(0x64a)](function(_0xe566f4){const _0x3d68ea=_0x52e660;_0xd6d203[_0x3d68ea(0x772)]({'title':_0x3d68ea(0x1e08),'msg':_0x3d68ea(0x1e92)+_0xe566f4['ContactId']});})[_0x52e660(0x20cd)](function(_0x29dc7c){const _0x385883=_0x52e660;_0x29dc7c['data']===_0x385883(0x255c)?_0x408f40['cmHopper'][_0x385883(0x2479)](_0x1cf9d8(_0x527889))['$promise']['then'](function(_0xd583a1){const _0x58a305=_0x385883;_0xd6d203['info']({'title':'Restored\x20Contact','msg':_0x58a305(0x1e92)+_0xd583a1[_0x58a305(0x1c49)]}),_0xd583a1[_0x58a305(0x1c49)]&&_0x408f40[_0x58a305(0x827)][_0x58a305(0x2479)](_0x1b4686(_0x527889));})[_0x385883(0x20cd)](function(_0x39e110){const _0x3ba1a7=_0x385883;!_0x28c606()[_0x3ba1a7(0x28d7)](_0x39e110['data'])&&_0x39e110[_0x3ba1a7(0x1c52)]['message']===_0x3ba1a7(0xca2)?_0xd6d203['info']({'title':_0x3ba1a7(0x1e08),'msg':_0x3ba1a7(0x1e92)+_0x527889[_0x3ba1a7(0x1c49)]}):_0xd6d203['error']({'title':_0x39e110[_0x3ba1a7(0x10b3)]?_0x3ba1a7(0x575)+_0x39e110[_0x3ba1a7(0x10b3)]+_0x3ba1a7(0x21db)+_0x39e110[_0x3ba1a7(0x2115)]:_0x3ba1a7(0x247c),'msg':_0x39e110[_0x3ba1a7(0x1c52)]?JSON['stringify'](_0x39e110[_0x3ba1a7(0x1c52)][_0x3ba1a7(0x18ca)]):_0x39e110[_0x3ba1a7(0x18ca)]||_0x39e110[_0x3ba1a7(0x2915)]()});}):_0xd6d203[_0x385883(0x1bd0)]({'title':_0x29dc7c[_0x385883(0x10b3)]?_0x385883(0x575)+_0x29dc7c['status']+_0x385883(0x21db)+_0x29dc7c[_0x385883(0x2115)]:_0x385883(0x247c),'msg':_0x29dc7c[_0x385883(0x1c52)]?JSON['stringify'](_0x29dc7c[_0x385883(0x1c52)][_0x385883(0x18ca)]):_0x29dc7c[_0x385883(0x18ca)]||_0x29dc7c[_0x385883(0x2915)]()});});}let _0x1deae9=!![],_0x3ff6ab=0x1;_0x1bfc9b[_0x79c9b7(0xc62)](_0x79c9b7(0x1200),function(_0x562629,_0x2df078){const _0x3cb0b6=_0x79c9b7;_0x1deae9?_0x37e5de(function(){_0x1deae9=![];}):(!_0x2df078&&(_0x3ff6ab=_0x32be42[_0x3cb0b6(0x289a)]['page']),_0x562629!==_0x2df078&&(_0x32be42[_0x3cb0b6(0x289a)]['page']=0x1),!_0x562629&&(_0x32be42['query'][_0x3cb0b6(0xc72)]=_0x3ff6ab),_0x2b4ae9());});}const _0x55305c=_0x5c3530;;_0x24d0a8['$inject']=[_0x49a1e3(0x7a7),'$scope',_0x49a1e3(0x77f),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x24d0a8(_0x44459a,_0x2b4231,_0x4386e3,_0x1f3637,_0x1fb107,_0x91f67,_0x5cb632,_0x7bb425,_0x147ba6,_0x3c6273,_0x9f1e04){const _0x533c29=_0x49a1e3,_0xd70ac2=this;_0xd70ac2['currentUser']=_0x9f1e04['getCurrentUser'](),_0xd70ac2[_0x533c29(0x15aa)]={},_0xd70ac2[_0x533c29(0x199c)]={'count':0x0,'rows':[]},_0xd70ac2[_0x533c29(0x1fa0)]=[],_0xd70ac2[_0x533c29(0x402)],_0xd70ac2[_0x533c29(0x289a)]={'fields':_0x533c29(0x9e2),'sort':_0x533c29(0x2778),'limit':0xa,'page':0x1},_0xd70ac2[_0x533c29(0x2354)]=_0x8e8a95,_0xd70ac2[_0x533c29(0x217e)]=_0x53917d,_0xd70ac2[_0x533c29(0x1339)]=_0x5f2d38,_0xd70ac2[_0x533c29(0x2451)]=_0x43ac4e,_0xd70ac2[_0x533c29(0x239e)]=_0xb9ccde,_0xd70ac2['deleteIvrCampaignHopperHistory']=_0x3d236e,_0xd70ac2['deleteSelectedIvrCampaignHopperHistories']=_0x534cff;function _0x8e8a95(_0x3f2860,_0x3f3583){const _0x2b58ce=_0x533c29;_0xd70ac2[_0x2b58ce(0x15aa)]=_0x3f2860,_0xd70ac2[_0x2b58ce(0x402)]=typeof _0x3f3583!=='undefined'?_0x3f3583:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xd70ac2[_0x2b58ce(0x289a)]['CampaignId']=_0xd70ac2['ivrCampaign']['id'],_0xd70ac2[_0x2b58ce(0x289a)]['id']=_0xd70ac2[_0x2b58ce(0x15aa)]['id'],_0x43ac4e();}function _0x53917d(_0x2f9a9e,_0x4c1a5f){const _0x32e6d0=_0x533c29,_0x3ab2d4=_0x5cb632['confirm']()['title'](_0x32e6d0(0xb78))[_0x32e6d0(0x33a)](_0x32e6d0(0x50b)+(_0x2f9a9e[_0x32e6d0(0x2494)]||_0x2f9a9e['id']&&_0x28c606()['upperFirst'](_0x32e6d0(0x2956))+_0x2f9a9e['id']||_0x32e6d0(0x1db0))+_0x32e6d0(0x26d0)+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x32e6d0(0x14c6))[_0x32e6d0(0x2283)](_0x4c1a5f)['ok']('OK')[_0x32e6d0(0x101a)]('CANCEL');_0x5cb632['show'](_0x3ab2d4)[_0x32e6d0(0x64a)](function(){_0x3d236e(_0x2f9a9e);},function(){const _0x123f09=_0x32e6d0;console[_0x123f09(0x9b4)]('CANCEL');});}function _0x5f2d38(_0x21a26e){const _0x50e08d=_0x533c29;_0xd70ac2[_0x50e08d(0x199c)]=_0x21a26e||{'count':0x0,'rows':[]};}function _0x43ac4e(){const _0x55328b=_0x533c29;_0xd70ac2[_0x55328b(0x289a)][_0x55328b(0x24f9)]=(_0xd70ac2[_0x55328b(0x289a)][_0x55328b(0xc72)]-0x1)*_0xd70ac2[_0x55328b(0x289a)][_0x55328b(0x25bb)],_0xd70ac2['promise']=_0x3c6273['campaign'][_0x55328b(0x246d)](_0xd70ac2[_0x55328b(0x289a)],_0x5f2d38)[_0x55328b(0x15e7)];}function _0x3d236e(_0x6eaf6c){const _0x3d7418=_0x533c29;_0x3c6273[_0x3d7418(0x1db0)][_0x3d7418(0xabd)]({'id':_0x6eaf6c['id']})[_0x3d7418(0x15e7)][_0x3d7418(0x64a)](function(){const _0x372e3a=_0x3d7418;_0x28c606()[_0x372e3a(0x21c7)](_0xd70ac2[_0x372e3a(0x199c)][_0x372e3a(0x28b8)],{'id':_0x6eaf6c['id']}),_0xd70ac2['ivrCampaignHopperHistories'][_0x372e3a(0xb90)]-=0x1,!_0xd70ac2['ivrCampaignHopperHistories']['rows']['length']&&_0x43ac4e(),_0x147ba6[_0x372e3a(0x1339)]({'title':_0x372e3a(0x521),'msg':_0x6eaf6c[_0x372e3a(0x2494)]?_0x6eaf6c[_0x372e3a(0x2494)]+_0x372e3a(0x1fa8):''});})['catch'](function(_0x13448c){const _0x4add8b=_0x3d7418;if(_0x13448c[_0x4add8b(0x1c52)]&&_0x13448c['data']['errors']&&_0x13448c[_0x4add8b(0x1c52)]['errors'][_0x4add8b(0x1b9e)]){_0xd70ac2['errors']=_0x13448c['data'][_0x4add8b(0xbae)]||[{'message':_0x13448c[_0x4add8b(0x2915)](),'type':_0x4add8b(0xad7)}];for(let _0x5c6740=0x0;_0x5c6740<_0x13448c[_0x4add8b(0x1c52)][_0x4add8b(0xbae)]['length'];_0x5c6740++){_0x147ba6[_0x4add8b(0x1bd0)]({'title':_0x13448c[_0x4add8b(0x1c52)]['errors'][_0x5c6740][_0x4add8b(0x2185)],'msg':_0x13448c[_0x4add8b(0x1c52)][_0x4add8b(0xbae)][_0x5c6740][_0x4add8b(0x18ca)]});}}else _0x147ba6[_0x4add8b(0x1bd0)]({'title':_0x13448c[_0x4add8b(0x10b3)]?_0x4add8b(0x575)+_0x13448c[_0x4add8b(0x10b3)]+'\x20-\x20'+_0x13448c[_0x4add8b(0x2115)]:_0x4add8b(0xad7),'msg':_0x13448c['data']?JSON[_0x4add8b(0x2317)](_0x13448c[_0x4add8b(0x1c52)][_0x4add8b(0x18ca)]):_0x13448c[_0x4add8b(0x18ca)]||_0x13448c['toString']()});});}function _0xb9ccde(){const _0x4d34db=_0x533c29,_0x2db588=angular[_0x4d34db(0x289e)](_0xd70ac2[_0x4d34db(0x1fa0)]);return _0xd70ac2[_0x4d34db(0x1fa0)]=[],_0x2db588;}function _0x534cff(_0x4fc7ab){const _0x52d14f=_0x533c29,_0x191b30=_0x5cb632['confirm']()[_0x52d14f(0x2021)](_0x52d14f(0x1111))[_0x52d14f(0x33a)](''+_0xd70ac2[_0x52d14f(0x1fa0)][_0x52d14f(0x1b9e)]+_0x52d14f(0x163e)+_0x52d14f(0x4b8))[_0x52d14f(0x213e)](_0x52d14f(0xe8f))[_0x52d14f(0x2283)](_0x4fc7ab)['ok']('OK')[_0x52d14f(0x101a)](_0x52d14f(0x18fd));_0x5cb632['show'](_0x191b30)[_0x52d14f(0x64a)](function(){const _0x5f20ab=_0x52d14f;_0xd70ac2['selectedIvrCampaignHopperHistories'][_0x5f20ab(0x1397)](function(_0xb25480){_0x3d236e(_0xb25480);}),_0xd70ac2[_0x5f20ab(0x1fa0)]=[];});}let _0x133aba=!![],_0x11e8ef=0x1;_0x2b4231['$watch']('vm_dc.query.filter',function(_0x45ead3,_0x2e0ab8){const _0x42c4c6=_0x533c29;_0x133aba?_0x91f67(function(){_0x133aba=![];}):(!_0x2e0ab8&&(_0x11e8ef=_0xd70ac2[_0x42c4c6(0x289a)]['page']),_0x45ead3!==_0x2e0ab8&&(_0xd70ac2['query'][_0x42c4c6(0xc72)]=0x1),!_0x45ead3&&(_0xd70ac2['query'][_0x42c4c6(0xc72)]=_0x11e8ef),_0x43ac4e());});}const _0x138297=_0x24d0a8;;_0x320007[_0x49a1e3(0x1e73)]=['$cookies',_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$q','$translate',_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),'toasty',_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x320007(_0x3ea9c1,_0x4521dd,_0x3ccbcf,_0x95e226,_0x108293,_0x3d6afb,_0x2ee4a0,_0x546790,_0xdccede,_0x1e2286,_0x3d95b3){const _0x310b49=_0x49a1e3,_0x26071c=this;_0x26071c[_0x310b49(0x1d3d)]=_0x3d95b3[_0x310b49(0x808)](),_0x26071c[_0x310b49(0x15aa)]={},_0x26071c[_0x310b49(0x24e4)]={'count':0x0,'rows':[]},_0x26071c['selectedIvrCampaignHoppers']=[],_0x26071c[_0x310b49(0x402)],_0x26071c[_0x310b49(0x289a)]={'fields':_0x310b49(0x26da),'sort':_0x310b49(0x260c),'limit':0xa,'page':0x1},_0x26071c[_0x310b49(0x278f)]=_0x28c606()[_0x310b49(0x161e)]([{'option':_0x310b49(0x275f),'value':'\x274\x27'},{'option':'High','value':_0x310b49(0x274b)},{'option':'Medium','value':_0x310b49(0x2390)},{'option':'Low','value':_0x310b49(0x1755)},{'option':'Lowest','value':'\x270\x27'}],function(_0x1e86d7){const _0xaef153=_0x310b49;return _0x28c606()[_0xaef153(0x1353)](_0x1e86d7['value'],new RegExp('\x27','g'),'');}),_0x26071c['init']=_0x4becea,_0x26071c[_0x310b49(0x217e)]=_0x4ed1f9,_0x26071c[_0x310b49(0x1339)]=_0xdf7adf,_0x26071c[_0x310b49(0x458)]=_0x42c3b8,_0x26071c[_0x310b49(0x1345)]=_0x147f46,_0x26071c[_0x310b49(0x2a1)]=_0x3591cc,_0x26071c[_0x310b49(0x1e25)]=_0x3050f2,_0x26071c[_0x310b49(0x25ca)]=_0x504bec,_0x3d95b3['hasRole']('admin')?_0x1e2286[_0x310b49(0x2e8)][_0x310b49(0x896)]({'fields':'id,name','role':_0x310b49(0x11ae),'sort':'name','nolimit':'true'})['$promise']['then'](function(_0x50dcc0){const _0x5eccc4=_0x310b49;_0x26071c[_0x5eccc4(0xd77)]=_0x50dcc0[_0x5eccc4(0x28b8)]||[];})[_0x310b49(0x20cd)](function(_0x32b903){const _0x470ab=_0x310b49;_0xdccede['error']({'title':_0x32b903[_0x470ab(0x10b3)]?'API:'+_0x32b903[_0x470ab(0x10b3)]+'\x20-\x20'+_0x32b903[_0x470ab(0x2115)]:_0x470ab(0x554),'msg':_0x32b903[_0x470ab(0x1c52)]?JSON[_0x470ab(0x2317)](_0x32b903[_0x470ab(0x1c52)]):_0x32b903[_0x470ab(0x2915)]()});}):_0x1e2286[_0x310b49(0x2e8)]['get']({'fields':_0x310b49(0x1427),'role':_0x310b49(0x11ae),'sort':_0x310b49(0x2494),'nolimit':'true'})[_0x310b49(0x15e7)][_0x310b49(0x64a)](function(_0xe3a82c){const _0x5b7d45=_0x310b49;_0x26071c[_0x5b7d45(0xd77)]=_0xe3a82c[_0x5b7d45(0x28b8)]||[];})[_0x310b49(0x64a)](function(){const _0x593de1=_0x310b49;return _0x1e2286[_0x593de1(0x16b2)][_0x593de1(0x896)]({'userProfileId':_0x26071c[_0x593de1(0x1d3d)]['userProfileId'],'sectionId':0xca})['$promise'];})['then'](function(_0x308b94){const _0x4e9d49=_0x310b49,_0x2ea680=_0x308b94&&_0x308b94[_0x4e9d49(0x28b8)]?_0x308b94['rows'][0x0]:null;if(!_0x2ea680)_0x26071c[_0x4e9d49(0xd77)]=[];else{if(!_0x2ea680['autoAssociation'])return _0x1e2286[_0x4e9d49(0x1617)]['get']({'sectionId':_0x2ea680['id']})['$promise']['then'](function(_0x3f03dc){const _0x1c7ad8=_0x4e9d49,_0x30d94d=_0x28c606()[_0x1c7ad8(0x1de5)](_0x3f03dc['rows'],function(_0x157afb){const _0x3ce2b2=_0x1c7ad8;return _0x28c606()['find'](_0x26071c['agents'],{'id':_0x157afb[_0x3ce2b2(0x145)]});});_0x26071c[_0x1c7ad8(0xd77)][_0x1c7ad8(0x1397)](function(_0x171378){const _0xd9cd4f=_0x1c7ad8;!_0x28c606()[_0xd9cd4f(0x25f8)](_0x30d94d,['id',_0x171378['id']])&&(_0x171378['canSelect']=![]),_0x30d94d[_0xd9cd4f(0x1954)](_0x171378);}),_0x26071c[_0x1c7ad8(0xd77)]=_0x30d94d;});}})['catch'](function(_0x557d31){const _0x313fa2=_0x310b49;_0xdccede[_0x313fa2(0x1bd0)]({'title':_0x557d31[_0x313fa2(0x10b3)]?_0x313fa2(0x575)+_0x557d31[_0x313fa2(0x10b3)]+_0x313fa2(0x21db)+_0x557d31['statusText']:_0x313fa2(0x1ff1),'msg':_0x557d31[_0x313fa2(0x1c52)]?JSON['stringify'](_0x557d31[_0x313fa2(0x1c52)]):_0x557d31[_0x313fa2(0x2915)]()});});function _0x4becea(_0x20546f,_0x453371){const _0x22d44f=_0x310b49;_0x26071c['ivrCampaign']=_0x20546f,_0x26071c['crudPermissions']=typeof _0x453371!==_0x22d44f(0x19a1)?_0x453371:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x26071c[_0x22d44f(0x289a)][_0x22d44f(0x1833)]=_0x26071c['ivrCampaign']['id'],_0x26071c[_0x22d44f(0x289a)]['id']=_0x26071c['ivrCampaign']['id'],_0x42c3b8();}function _0x4ed1f9(_0x1718b8,_0x1dc397){const _0xa74f93=_0x310b49,_0x4bfb29=_0x2ee4a0['confirm']()[_0xa74f93(0x2021)](_0xa74f93(0x4ae))[_0xa74f93(0x33a)](_0xa74f93(0x50b)+(_0x1718b8[_0xa74f93(0x2494)]||_0x1718b8['id']&&_0x28c606()[_0xa74f93(0x1766)](_0xa74f93(0x104f))+_0x1718b8['id']||_0xa74f93(0x7e4))+''+_0xa74f93(0x4b8))[_0xa74f93(0x213e)]('delete\x20hopper')[_0xa74f93(0x2283)](_0x1dc397)['ok']('OK')[_0xa74f93(0x101a)]('CANCEL');_0x2ee4a0['show'](_0x4bfb29)[_0xa74f93(0x64a)](function(){_0x3050f2(_0x1718b8);},function(){const _0x49ba3d=_0xa74f93;console[_0x49ba3d(0x9b4)](_0x49ba3d(0x18fd));});}function _0xdf7adf(_0x51f5e3){_0x26071c['ivrCampaignHoppers']=_0x51f5e3||{'count':0x0,'rows':[]};}function _0x42c3b8(){const _0x1d4584=_0x310b49;_0x26071c['query'][_0x1d4584(0x24f9)]=(_0x26071c[_0x1d4584(0x289a)][_0x1d4584(0xc72)]-0x1)*_0x26071c[_0x1d4584(0x289a)]['limit'],_0x26071c[_0x1d4584(0x1713)]=_0x1e2286[_0x1d4584(0x1aba)]['getHoppers'](_0x26071c[_0x1d4584(0x289a)],_0xdf7adf)['$promise'];}function _0x147f46(_0x2dc3ba,_0x3bf068){const _0x4e3f4d=_0x310b49;_0x2ee4a0[_0x4e3f4d(0xa60)]({'controller':_0x4e3f4d(0x25a),'controllerAs':'vm','templateUrl':_0x3e02dc,'parent':angular[_0x4e3f4d(0x1f81)](_0x546790['body']),'targetEvent':_0x2dc3ba,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x26071c[_0x4e3f4d(0x15aa)],'hopper':_0x3bf068,'hoppers':_0x26071c[_0x4e3f4d(0x24e4)][_0x4e3f4d(0x28b8)],'license':null,'setting':null,'crudPermissions':_0x26071c[_0x4e3f4d(0x402)]}});}function _0x3050f2(_0x4bbc1f){const _0x3b69bb=_0x310b49;_0x1e2286['cmHopper']['delete']({'id':_0x4bbc1f['id']})[_0x3b69bb(0x15e7)][_0x3b69bb(0x64a)](function(){const _0x4840be=_0x3b69bb;_0x28c606()[_0x4840be(0x21c7)](_0x26071c[_0x4840be(0x24e4)][_0x4840be(0x28b8)],{'id':_0x4bbc1f['id']}),_0x26071c[_0x4840be(0x24e4)][_0x4840be(0xb90)]-=0x1,!_0x26071c[_0x4840be(0x24e4)]['rows']['length']&&_0x42c3b8(),_0xdccede[_0x4840be(0x1339)]({'title':_0x4840be(0x2932),'msg':_0x4bbc1f[_0x4840be(0x2494)]?_0x4bbc1f[_0x4840be(0x2494)]+_0x4840be(0x1fa8):''});})[_0x3b69bb(0x20cd)](function(_0x44dd23){const _0x3afc76=_0x3b69bb;if(_0x44dd23[_0x3afc76(0x1c52)]&&_0x44dd23[_0x3afc76(0x1c52)][_0x3afc76(0xbae)]&&_0x44dd23[_0x3afc76(0x1c52)][_0x3afc76(0xbae)][_0x3afc76(0x1b9e)]){_0x26071c[_0x3afc76(0xbae)]=_0x44dd23[_0x3afc76(0x1c52)][_0x3afc76(0xbae)]||[{'message':_0x44dd23['toString'](),'type':_0x3afc76(0xad7)}];for(let _0x1a326c=0x0;_0x1a326c<_0x44dd23[_0x3afc76(0x1c52)][_0x3afc76(0xbae)][_0x3afc76(0x1b9e)];_0x1a326c++){_0xdccede['error']({'title':_0x44dd23[_0x3afc76(0x1c52)][_0x3afc76(0xbae)][_0x1a326c]['type'],'msg':_0x44dd23[_0x3afc76(0x1c52)]['errors'][_0x1a326c][_0x3afc76(0x18ca)]});}}else _0xdccede[_0x3afc76(0x1bd0)]({'title':_0x44dd23[_0x3afc76(0x10b3)]?_0x3afc76(0x575)+_0x44dd23[_0x3afc76(0x10b3)]+_0x3afc76(0x21db)+_0x44dd23['statusText']:_0x3afc76(0xad7),'msg':_0x44dd23[_0x3afc76(0x1c52)]?JSON[_0x3afc76(0x2317)](_0x44dd23[_0x3afc76(0x1c52)]['message']):_0x44dd23['message']||_0x44dd23[_0x3afc76(0x2915)]()});});}function _0x3591cc(){const _0x4ef748=_0x310b49,_0xc305bc=angular[_0x4ef748(0x289e)](_0x26071c[_0x4ef748(0x1eac)]);return _0x26071c['selectedIvrCampaignHoppers']=[],_0xc305bc;}function _0x504bec(_0x165311){const _0x1353c9=_0x310b49,_0x466d07=_0x2ee4a0['confirm']()['title'](_0x1353c9(0x4f1))['htmlContent'](_0x1353c9(0x50b)+_0x26071c[_0x1353c9(0x1eac)][_0x1353c9(0x1b9e)]+_0x1353c9(0x163e)+_0x1353c9(0x4b8))[_0x1353c9(0x213e)]('delete\x20hoppers')[_0x1353c9(0x2283)](_0x165311)['ok']('OK')['cancel'](_0x1353c9(0x18fd));_0x2ee4a0[_0x1353c9(0xa60)](_0x466d07)[_0x1353c9(0x64a)](function(){const _0x58098d=_0x1353c9;_0x26071c[_0x58098d(0x1eac)][_0x58098d(0x1397)](function(_0x56c343){_0x3050f2(_0x56c343);}),_0x26071c[_0x58098d(0x1eac)]=[];});}let _0x1e0eba=!![],_0x2e987f=0x1;_0x4521dd[_0x310b49(0xc62)](_0x310b49(0x1200),function(_0x35e1d9,_0x5897a0){const _0x255272=_0x310b49;_0x1e0eba?_0x3d6afb(function(){_0x1e0eba=![];}):(!_0x5897a0&&(_0x2e987f=_0x26071c['query'][_0x255272(0xc72)]),_0x35e1d9!==_0x5897a0&&(_0x26071c[_0x255272(0x289a)]['page']=0x1),!_0x35e1d9&&(_0x26071c['query']['page']=_0x2e987f),_0x42c3b8());});}const _0x2a4f23=_0x320007;;_0x4d492b[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),'hoppers','hopper',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x4d492b(_0x45e2ed,_0x385228,_0x522043,_0x290b14,_0x3ec3a0,_0x2318a9,_0x2d1870,_0x27fb02,_0xe7c8e,_0x2ddd05,_0x7ffde8,_0x1d3812,_0x14ad89,_0x5a37fc){const _0x1bc1c1=_0x49a1e3,_0x69f5e8=this;_0x69f5e8['currentUser']=_0x7ffde8[_0x1bc1c1(0x808)](),_0x69f5e8['errors']=[],_0x69f5e8['setting']=_0x14ad89,_0x69f5e8['license']=_0x1d3812,_0x69f5e8[_0x1bc1c1(0x402)]=_0x5a37fc,_0x69f5e8[_0x1bc1c1(0x6c2)]={},_0x69f5e8[_0x1bc1c1(0xccc)]=_0x69f5e8[_0x1bc1c1(0x28d6)]&&_0x69f5e8[_0x1bc1c1(0x28d6)][_0x1bc1c1(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x69f5e8['title']=_0x1bc1c1(0x117f),_0x69f5e8[_0x1bc1c1(0x7e4)]=angular[_0x1bc1c1(0x289e)](_0xe7c8e),_0x69f5e8[_0x1bc1c1(0xd52)]=_0x27fb02,_0x69f5e8[_0x1bc1c1(0xd5a)]=![];!_0x69f5e8[_0x1bc1c1(0x7e4)]&&(_0x69f5e8['hopper']={},_0x69f5e8[_0x1bc1c1(0x2021)]=_0x1bc1c1(0x15a9),_0x69f5e8['newHopper']=!![]);_0x385228[_0x1bc1c1(0x1b48)]['id']&&(_0x69f5e8['hopper'][_0x1bc1c1(0x1833)]=_0x385228[_0x1bc1c1(0x1b48)]['id']);_0x69f5e8[_0x1bc1c1(0x13e1)]=_0x177b9c,_0x69f5e8[_0x1bc1c1(0x195e)]=_0x5bb698,_0x69f5e8[_0x1bc1c1(0x11d9)]=_0x2057fd,_0x69f5e8['getDateFromString']=_0x450eb8,_0x69f5e8[_0x1bc1c1(0x16cb)]=_0xf7dc1f,_0x7ffde8['hasRole'](_0x1bc1c1(0x333))?_0x2ddd05[_0x1bc1c1(0x2e8)][_0x1bc1c1(0x896)]({'fields':_0x1bc1c1(0x1427),'role':_0x1bc1c1(0x11ae),'sort':_0x1bc1c1(0x2494),'nolimit':_0x1bc1c1(0x1685)})[_0x1bc1c1(0x15e7)][_0x1bc1c1(0x64a)](function(_0x13d870){const _0x37e360=_0x1bc1c1;_0x69f5e8['agents']=_0x13d870[_0x37e360(0x28b8)]||[];})['catch'](function(_0x2cf165){const _0x5d3b40=_0x1bc1c1;_0x2d1870[_0x5d3b40(0x1bd0)]({'title':_0x2cf165[_0x5d3b40(0x10b3)]?_0x5d3b40(0x575)+_0x2cf165[_0x5d3b40(0x10b3)]+_0x5d3b40(0x21db)+_0x2cf165[_0x5d3b40(0x2115)]:_0x5d3b40(0x554),'msg':_0x2cf165[_0x5d3b40(0x1c52)]?JSON[_0x5d3b40(0x2317)](_0x2cf165[_0x5d3b40(0x1c52)]):_0x2cf165[_0x5d3b40(0x2915)]()});}):_0x2ddd05['user'][_0x1bc1c1(0x896)]({'fields':'id,name','role':_0x1bc1c1(0x11ae),'sort':_0x1bc1c1(0x2494),'nolimit':_0x1bc1c1(0x1685)})[_0x1bc1c1(0x15e7)][_0x1bc1c1(0x64a)](function(_0x3624c5){const _0x30e2af=_0x1bc1c1;_0x69f5e8[_0x30e2af(0xd77)]=_0x3624c5[_0x30e2af(0x28b8)]||[];})[_0x1bc1c1(0x64a)](function(){const _0x344bf7=_0x1bc1c1;return _0x2ddd05[_0x344bf7(0x16b2)][_0x344bf7(0x896)]({'userProfileId':_0x69f5e8['currentUser'][_0x344bf7(0x21ac)],'sectionId':0xca})[_0x344bf7(0x15e7)];})[_0x1bc1c1(0x64a)](function(_0x1aca91){const _0x5ad76d=_0x1bc1c1,_0x2a1a08=_0x1aca91&&_0x1aca91[_0x5ad76d(0x28b8)]?_0x1aca91['rows'][0x0]:null;if(!_0x2a1a08)_0x69f5e8[_0x5ad76d(0xd77)]=[];else{if(!_0x2a1a08[_0x5ad76d(0x11da)])return _0x2ddd05[_0x5ad76d(0x1617)][_0x5ad76d(0x896)]({'sectionId':_0x2a1a08['id']})[_0x5ad76d(0x15e7)][_0x5ad76d(0x64a)](function(_0x589b88){const _0x521fbc=_0x5ad76d,_0x2535ff=_0x28c606()[_0x521fbc(0x1de5)](_0x589b88[_0x521fbc(0x28b8)],function(_0x3f7431){const _0x2bf2b1=_0x521fbc;return _0x28c606()['find'](_0x69f5e8[_0x2bf2b1(0xd77)],{'id':_0x3f7431['resourceId']});});_0x69f5e8[_0x521fbc(0xd77)][_0x521fbc(0x1397)](function(_0x9765ce){const _0x488de9=_0x521fbc;!_0x28c606()['some'](_0x2535ff,['id',_0x9765ce['id']])&&(_0x9765ce[_0x488de9(0xd4f)]=![]),_0x2535ff[_0x488de9(0x1954)](_0x9765ce);}),_0x69f5e8[_0x521fbc(0xd77)]=_0x2535ff;});}})[_0x1bc1c1(0x20cd)](function(_0x524333){const _0x2da0c0=_0x1bc1c1;_0x2d1870['error']({'title':_0x524333[_0x2da0c0(0x10b3)]?_0x2da0c0(0x575)+_0x524333['status']+'\x20-\x20'+_0x524333[_0x2da0c0(0x2115)]:_0x2da0c0(0x1ff1),'msg':_0x524333[_0x2da0c0(0x1c52)]?JSON['stringify'](_0x524333[_0x2da0c0(0x1c52)]):_0x524333[_0x2da0c0(0x2915)]()});});function _0x177b9c(){const _0x4526fa=_0x1bc1c1;_0x69f5e8[_0x4526fa(0xbae)]=[],_0x2ddd05[_0x4526fa(0x232f)][_0x4526fa(0x2479)](_0x69f5e8[_0x4526fa(0x7e4)])['$promise']['then'](function(_0xf07094){const _0x29ef48=_0x4526fa;_0x69f5e8['hoppers'][_0x29ef48(0x1891)](_0xf07094['toJSON']()),_0x2d1870['success']({'title':_0x29ef48(0xc8e),'msg':_0x69f5e8[_0x29ef48(0x7e4)][_0x29ef48(0x2494)]?_0x69f5e8[_0x29ef48(0x7e4)]['name']+_0x29ef48(0x258d):''}),_0xf7dc1f(_0xf07094);})[_0x4526fa(0x20cd)](function(_0x376c0e){const _0x40a2a5=_0x4526fa;if(_0x376c0e[_0x40a2a5(0x1c52)]&&_0x376c0e['data']['errors']&&_0x376c0e[_0x40a2a5(0x1c52)][_0x40a2a5(0xbae)]['length']){_0x69f5e8[_0x40a2a5(0xbae)]=_0x376c0e[_0x40a2a5(0x1c52)][_0x40a2a5(0xbae)]||[{'message':_0x376c0e[_0x40a2a5(0x2915)](),'type':_0x40a2a5(0x1050)}];for(let _0x49aae2=0x0;_0x49aae2<_0x376c0e[_0x40a2a5(0x1c52)]['errors']['length'];_0x49aae2+=0x1){_0x2d1870[_0x40a2a5(0x1bd0)]({'title':_0x376c0e['data'][_0x40a2a5(0xbae)][_0x49aae2]['type'],'msg':_0x376c0e[_0x40a2a5(0x1c52)][_0x40a2a5(0xbae)][_0x49aae2]['message']});}}else _0x2d1870['error']({'title':_0x376c0e[_0x40a2a5(0x10b3)]?_0x40a2a5(0x575)+_0x376c0e[_0x40a2a5(0x10b3)]+_0x40a2a5(0x21db)+_0x376c0e[_0x40a2a5(0x2115)]:_0x40a2a5(0x1050),'msg':_0x376c0e[_0x40a2a5(0x1c52)]?JSON[_0x40a2a5(0x2317)](_0x376c0e['data'][_0x40a2a5(0x18ca)]):_0x376c0e[_0x40a2a5(0x2915)]()});});}function _0x5bb698(){const _0x5976ab=_0x1bc1c1;_0x69f5e8[_0x5976ab(0xbae)]=[];let _0xf06b32,_0x29bdb4,_0x18e778,_0x1364f5;_0x69f5e8[_0x5976ab(0x7e4)][_0x5976ab(0x246c)]=_0x69f5e8[_0x5976ab(0x7e4)][_0x5976ab(0xbf1)]?_0x69f5e8[_0x5976ab(0x7e4)][_0x5976ab(0x246c)]:null,_0x69f5e8['hopper'][_0x5976ab(0x10c3)]=_0x7ffde8[_0x5976ab(0x808)]()['id'],_0x2ddd05[_0x5976ab(0x232f)][_0x5976ab(0x896)]({'id':_0x69f5e8['hopper']['id'],'attributes':[_0x5976ab(0x28f0)]})[_0x5976ab(0x15e7)][_0x5976ab(0x64a)](function(_0x488a37){const _0x2293ff=_0x5976ab;_0x28c606()[_0x2293ff(0x28d7)](_0x488a37)||_0x28c606()['isEmpty'](_0x488a37)?_0xf06b32=_0x2ac33a()()[_0x2293ff(0x1c2c)](_0x2293ff(0x5f7)):_0xf06b32=_0x488a37['scheduledat'];})['finally'](function(){const _0x2c21d9=_0x5976ab;_0x2ddd05['cmHopper'][_0x2c21d9(0x2603)]({'id':_0x69f5e8[_0x2c21d9(0x7e4)]['id']},_0x28c606()[_0x2c21d9(0xd09)](_0x69f5e8['hopper'],['VoiceQueueId',_0x2c21d9(0x1833),'ContactId',_0x2c21d9(0x869)]))[_0x2c21d9(0x15e7)][_0x2c21d9(0x64a)](function(_0x9bd88){const _0x19dfbe=_0x2c21d9;_0x29bdb4=_0x9bd88,_0x2ddd05[_0x19dfbe(0xdf5)]['get']({'id':_0x29bdb4[_0x19dfbe(0x1c49)],'attributes':[_0x19dfbe(0x2518),_0x19dfbe(0x21c4)]})[_0x19dfbe(0x15e7)]['then'](function(_0x54875f){const _0x1138c9=_0x19dfbe;!_0x28c606()[_0x1138c9(0x28d7)](_0x54875f)&&!_0x28c606()[_0x1138c9(0x28d7)](_0x54875f['firstName'])&&(_0x18e778=_0x54875f[_0x1138c9(0x2518)],!_0x28c606()[_0x1138c9(0x28d7)](_0x54875f['lastName'])&&(_0x18e778+='\x20'+_0x54875f[_0x1138c9(0x21c4)]));})[_0x19dfbe(0x20cd)](function(){_0x18e778=undefined;})['finally'](function(){const _0x377e67=_0x19dfbe;_0x2ddd05[_0x377e67(0x1aba)][_0x377e67(0x896)]({'raw':![],'id':_0x29bdb4[_0x377e67(0x1833)],'attributes':['name']})[_0x377e67(0x15e7)][_0x377e67(0x64a)](function(_0x548c4f){_0x1364f5=_0x548c4f['name'];})['catch'](function(){_0x1364f5=undefined;})[_0x377e67(0x988)](function(){const _0x3c5c17=_0x377e67;_0x2ddd05[_0x3c5c17(0x827)][_0x3c5c17(0x2479)]({'state':0x18,'statedesc':'Edited','scheduledat':_0xf06b32,'calleridnum':_0x29bdb4[_0x3c5c17(0x267a)],'calleridname':_0x18e778,'campaigntype':_0x29bdb4[_0x3c5c17(0x7c0)]?_0x3c5c17(0x1e4e):_0x3c5c17(0x254b),'campaign':_0x1364f5,'editedat':_0x2ac33a()()[_0x3c5c17(0x1c2c)](_0x3c5c17(0x5f7)),'edited':!![],'ListId':_0x29bdb4[_0x3c5c17(0x869)],'UserId':_0x7ffde8[_0x3c5c17(0x808)]()['id'],'VoiceQueueId':_0x29bdb4[_0x3c5c17(0x7c0)],'CampaignId':_0x29bdb4['CampaignId'],'ContactId':_0x29bdb4[_0x3c5c17(0x1c49)],'callback':_0x29bdb4[_0x3c5c17(0x2d6)],'callbackuniqueid':_0x29bdb4[_0x3c5c17(0x12cf)],'countbusyretry':_0x29bdb4['countbusyretry'],'countcongestionretry':_0x29bdb4[_0x3c5c17(0x149b)],'countglobal':_0x29bdb4[_0x3c5c17(0x2194)],'countnoanswerretry':_0x29bdb4[_0x3c5c17(0x27ba)],'followuptime':_0x29bdb4[_0x3c5c17(0xdaf)],'recallme':_0x29bdb4[_0x3c5c17(0xbf1)]});});});const _0x4a8673=_0x28c606()[_0x19dfbe(0x27bc)](_0x69f5e8[_0x19dfbe(0xd52)],{'id':_0x9bd88['id']});_0x4a8673&&_0x28c606()[_0x19dfbe(0x14fe)](_0x4a8673,_0x28c606()[_0x19dfbe(0x27bb)](_0x9bd88[_0x19dfbe(0x14f8)](),_0x28c606()['keys'](_0x4a8673))),_0x2d1870[_0x19dfbe(0x1339)]({'title':_0x19dfbe(0x516),'msg':_0x69f5e8[_0x19dfbe(0x7e4)][_0x19dfbe(0x2494)]?_0x69f5e8[_0x19dfbe(0x7e4)][_0x19dfbe(0x2494)]+'\x20has\x20been\x20saved!':''}),_0xf7dc1f(_0x9bd88);})['catch'](function(_0x3506a2){const _0x129e9e=_0x2c21d9;if(_0x3506a2[_0x129e9e(0x1c52)]&&_0x3506a2[_0x129e9e(0x1c52)][_0x129e9e(0xbae)]&&_0x3506a2['data'][_0x129e9e(0xbae)][_0x129e9e(0x1b9e)]){_0x69f5e8['errors']=_0x3506a2[_0x129e9e(0x1c52)]['errors']||[{'message':_0x3506a2[_0x129e9e(0x2915)](),'type':_0x129e9e(0x2825)}];for(let _0x402f2a=0x0;_0x402f2a<_0x3506a2[_0x129e9e(0x1c52)]['errors'][_0x129e9e(0x1b9e)];_0x402f2a++){_0x2d1870[_0x129e9e(0x1bd0)]({'title':_0x3506a2[_0x129e9e(0x1c52)][_0x129e9e(0xbae)][_0x402f2a][_0x129e9e(0x2185)],'msg':_0x3506a2[_0x129e9e(0x1c52)][_0x129e9e(0xbae)][_0x402f2a][_0x129e9e(0x18ca)]});}}else _0x2d1870[_0x129e9e(0x1bd0)]({'title':_0x3506a2[_0x129e9e(0x10b3)]?'API:'+_0x3506a2[_0x129e9e(0x10b3)]+_0x129e9e(0x21db)+_0x3506a2['statusText']:_0x129e9e(0x2825),'msg':_0x3506a2[_0x129e9e(0x1c52)]?JSON['stringify'](_0x3506a2[_0x129e9e(0x1c52)][_0x129e9e(0x18ca)]):_0x3506a2['toString']()});});});}function _0x2057fd(_0x58f2ab){const _0x2f04d3=_0x1bc1c1;_0x69f5e8[_0x2f04d3(0xbae)]=[];const _0x40a323=_0x290b14[_0x2f04d3(0x856)]()['title'](_0x2f04d3(0x103a))[_0x2f04d3(0x12b8)]('The\x20hopper\x20will\x20be\x20deleted.')['ariaLabel'](_0x2f04d3(0xc37))['ok']('Delete')['cancel'](_0x2f04d3(0x1dc6))[_0x2f04d3(0x2283)](_0x58f2ab);_0x290b14[_0x2f04d3(0xa60)](_0x40a323)[_0x2f04d3(0x64a)](function(){const _0x1b3409=_0x2f04d3;_0x2ddd05['cmHopper'][_0x1b3409(0xabd)]({'id':_0x69f5e8[_0x1b3409(0x7e4)]['id']})[_0x1b3409(0x15e7)][_0x1b3409(0x64a)](function(){const _0x1761ca=_0x1b3409;_0x28c606()[_0x1761ca(0x21c7)](_0x69f5e8[_0x1761ca(0xd52)],{'id':_0x69f5e8[_0x1761ca(0x7e4)]['id']}),_0x2d1870[_0x1761ca(0x1339)]({'title':'Hopper\x20properly\x20deleted!','msg':(_0x69f5e8[_0x1761ca(0x7e4)][_0x1761ca(0x2494)]||_0x1761ca(0x7e4))+_0x1761ca(0x1fa8)}),_0xf7dc1f(_0x69f5e8[_0x1761ca(0x7e4)]);})[_0x1b3409(0x20cd)](function(_0xfe7e8){const _0x2fad1b=_0x1b3409;if(_0xfe7e8['data']&&_0xfe7e8['data']['errors']&&_0xfe7e8[_0x2fad1b(0x1c52)][_0x2fad1b(0xbae)][_0x2fad1b(0x1b9e)]){_0x69f5e8['errors']=_0xfe7e8['data']['errors']||[{'message':_0xfe7e8['toString'](),'type':_0x2fad1b(0x2888)}];for(let _0xc73f42=0x0;_0xc73f42<_0xfe7e8[_0x2fad1b(0x1c52)][_0x2fad1b(0xbae)][_0x2fad1b(0x1b9e)];_0xc73f42++){_0x2d1870['error']({'title':_0xfe7e8['data']['errors'][_0xc73f42][_0x2fad1b(0x2185)],'msg':_0xfe7e8['data']['errors'][_0xc73f42][_0x2fad1b(0x18ca)]});}}else _0x2d1870['error']({'title':_0xfe7e8[_0x2fad1b(0x10b3)]?_0x2fad1b(0x575)+_0xfe7e8[_0x2fad1b(0x10b3)]+_0x2fad1b(0x21db)+_0xfe7e8[_0x2fad1b(0x2115)]:_0x2fad1b(0x2888),'msg':_0xfe7e8[_0x2fad1b(0x1c52)]?JSON[_0x2fad1b(0x2317)](_0xfe7e8[_0x2fad1b(0x1c52)][_0x2fad1b(0x18ca)]):_0xfe7e8[_0x2fad1b(0x18ca)]||_0xfe7e8[_0x2fad1b(0x2915)]()});});},function(){});}function _0x450eb8(_0x45022c){return _0x45022c===null?undefined:new Date(_0x45022c);}function _0xf7dc1f(_0x274d2e){const _0x29c337=_0x1bc1c1;_0x290b14[_0x29c337(0x268e)](_0x274d2e);}}const _0x2c9fa3=_0x4d492b;;_0x25e51c[_0x49a1e3(0x1e73)]=[_0x49a1e3(0xa19),_0x49a1e3(0x680)];function _0x25e51c(_0x1123de,_0x52c4b1){const _0x4cd80c=_0x49a1e3,_0x169b3a=this;_0x169b3a[_0x4cd80c(0x15aa)]={},_0x169b3a[_0x4cd80c(0x2354)]=_0x3d1e51;function _0x3d1e51(_0x40e78a){const _0x29bf7b=_0x4cd80c;_0x169b3a[_0x29bf7b(0x15aa)]=_0x40e78a,_0x1123de[_0x29bf7b(0x232f)][_0x29bf7b(0x896)]({'limit':0x0,'CampaignId':_0x40e78a['id']})[_0x29bf7b(0x15e7)]['then'](function(_0x58fa5b){const _0x318d4f=_0x29bf7b;return _0x169b3a[_0x318d4f(0x1318)]=_0x58fa5b[_0x318d4f(0xb90)]||0x0,_0x1123de[_0x318d4f(0x232f)]['get']({'limit':0x0,'CampaignId':_0x40e78a['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})['$promise'];})[_0x29bf7b(0x64a)](function(_0x81473d){const _0xc5f9aa=_0x29bf7b;return _0x169b3a['fresh']=_0x81473d[_0xc5f9aa(0xb90)]||0x0,_0x1123de[_0xc5f9aa(0x711)][_0xc5f9aa(0x896)]({'limit':0x0,'CampaignId':_0x40e78a['id']})[_0xc5f9aa(0x15e7)];})[_0x29bf7b(0x64a)](function(_0x4c2de7){const _0x2a2515=_0x29bf7b;_0x169b3a[_0x2a2515(0x1140)]=_0x4c2de7[_0x2a2515(0xb90)]||0x0;})[_0x29bf7b(0x20cd)](function(_0x1b92be){const _0x196f27=_0x29bf7b;_0x52c4b1['error']({'title':_0x1b92be[_0x196f27(0x10b3)]?_0x196f27(0x575)+_0x1b92be[_0x196f27(0x10b3)]+_0x196f27(0x21db)+_0x1b92be[_0x196f27(0x2115)]:_0x196f27(0x1738),'msg':_0x1b92be[_0x196f27(0x1c52)]?JSON[_0x196f27(0x2317)](_0x1b92be[_0x196f27(0x1c52)]):_0x1b92be[_0x196f27(0x2915)]()});});}}const _0x1670a6=_0x25e51c;;_0x578be7[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x15aa),'$translate',_0x49a1e3(0x20d4),_0x49a1e3(0xdcf),'crudPermissions'];function _0x578be7(_0x1fc571,_0x18b7d8,_0x9ea6ad,_0x1b7b6a,_0x49fb92,_0x29834d,_0x306121,_0x1576c6,_0x23222a){const _0x31cffc=_0x49a1e3,_0x235892=this;_0x235892[_0x31cffc(0x1d3d)]=_0x1576c6['getCurrentUser'](),_0x235892['ivrCampaign']=_0x49fb92,_0x235892[_0x31cffc(0x402)]=_0x23222a,_0x235892[_0x31cffc(0x22b5)]=_0x31cffc(0x1aba),_0x235892['getApi']=_0x31cffc(0x7aa),_0x235892[_0x31cffc(0xd1e)]=_0x31cffc(0x2675),_0x235892[_0x31cffc(0x6a5)]=_0x31cffc(0x2933),_0x235892[_0x31cffc(0x23cb)]=[],_0x235892['allowedItems']=[],_0x235892['selectedItems']=[],_0x235892['startingAllowedItems']=[],_0x235892['startingSelectedItems']=[],_0x235892[_0x31cffc(0xe9e)]=![],_0x235892['loading']=![],_0x235892[_0x31cffc(0x1eeb)]={'readOnly':!_0x235892['crudPermissions'][_0x31cffc(0xd86)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x31cffc(0x2494),'line1':_0x31cffc(0x2494),'line2':'','line3':'','labelAll':_0x29834d[_0x31cffc(0x2292)](_0x31cffc(0xf66)),'labelSelected':_0x29834d[_0x31cffc(0x2292)](_0x31cffc(0x136e)),'transferCallback':function(){const _0x46a88b=_0x31cffc,_0x427d1e=_0x28c606()[_0x46a88b(0x1ad)](_0x235892['startingSelectedItems'],_0x235892[_0x46a88b(0x1f4f)],'id');_0x235892[_0x46a88b(0xe9e)]=_0x28c606()[_0x46a88b(0x940)](_0x427d1e)?![]:!![];}},_0x235892[_0x31cffc(0x2483)]=_0x241b7a,_0x235892[_0x31cffc(0x26c5)]=_0x232834,_0x235892['closeDialog']=_0x1176fd;function _0x241b7a(){const _0x431740=_0x31cffc;return _0x1576c6['hasRole']('admin')?_0x1c6aa3()[_0x431740(0x20cd)](function(_0x15c9e3){const _0x3f48e8=_0x431740;_0x9ea6ad[_0x3f48e8(0x1bd0)]({'title':_0x15c9e3['status']?_0x3f48e8(0x575)+_0x15c9e3['status']+_0x3f48e8(0x21db)+_0x15c9e3[_0x3f48e8(0x2115)]:_0x3f48e8(0x2176),'msg':_0x15c9e3[_0x3f48e8(0x10b3)]?JSON[_0x3f48e8(0x2317)](_0x15c9e3[_0x3f48e8(0x1c52)]):_0x15c9e3['toString']()});}):_0x41c603()[_0x431740(0x64a)](function(_0x369912){const _0x2caa78=_0x431740;return _0x235892[_0x2caa78(0xa21)]=_0x369912,_0x1c6aa3();})['catch'](function(_0x587f2b){const _0x460da9=_0x431740;_0x9ea6ad[_0x460da9(0x1bd0)]({'title':_0x587f2b[_0x460da9(0x10b3)]?_0x460da9(0x575)+_0x587f2b[_0x460da9(0x10b3)]+_0x460da9(0x21db)+_0x587f2b['statusText']:_0x460da9(0x2176),'msg':_0x587f2b[_0x460da9(0x10b3)]?JSON[_0x460da9(0x2317)](_0x587f2b[_0x460da9(0x1c52)]):_0x587f2b[_0x460da9(0x2915)]()});});}function _0x41c603(){return _0x18b7d8(function(_0x2d4e85,_0x2d9849){const _0x484da5=a0_0x4127;_0x1b7b6a['userProfileSection'][_0x484da5(0x896)]({'userProfileId':_0x235892[_0x484da5(0x1d3d)][_0x484da5(0x21ac)],'name':'Lists'})[_0x484da5(0x15e7)][_0x484da5(0x64a)](function(_0x51e3e5){const _0x3f2273=_0x484da5,_0x41b2d5=_0x51e3e5&&_0x51e3e5[_0x3f2273(0x28b8)]?_0x51e3e5[_0x3f2273(0x28b8)][0x0]:null;_0x2d4e85(_0x41b2d5);})[_0x484da5(0x20cd)](function(_0x4c2274){_0x2d9849(_0x4c2274);});});}function _0x1c6aa3(){return _0x18b7d8(function(_0x452e2c,_0x4b3422){const _0x24d7f9=a0_0x4127;return _0x1a4717()[_0x24d7f9(0x64a)](function(_0xcf5374){const _0x49dcaa=_0x24d7f9;return _0x235892[_0x49dcaa(0x23cb)]=_0xcf5374[_0x49dcaa(0x28b8)]?_0xcf5374[_0x49dcaa(0x28b8)]:[],_0x1576c6[_0x49dcaa(0x4de)](_0x49dcaa(0x333))?_0xcf5374:_0x235892[_0x49dcaa(0xa21)]?_0x235892[_0x49dcaa(0xa21)][_0x49dcaa(0x11da)]?_0xcf5374:_0x147f77():null;})[_0x24d7f9(0x64a)](function(_0x35508d){const _0x34ee95=_0x24d7f9,_0x569ccc=_0x35508d&&_0x35508d[_0x34ee95(0x28b8)]?_0x35508d['rows']:[];return _0x235892[_0x34ee95(0x13d1)]=_0x28c606()[_0x34ee95(0x1de5)](_0x569ccc,function(_0x5034eb){const _0x499baf=_0x34ee95;return _0x28c606()[_0x499baf(0x27bc)](_0x235892['items'],{'id':_0x1576c6[_0x499baf(0x4de)]('admin')||_0x235892[_0x499baf(0xa21)][_0x499baf(0x11da)]?_0x5034eb['id']:_0x5034eb[_0x499baf(0x145)]});}),_0x235892['startingAllowedItems']=angular[_0x34ee95(0x289e)](_0x235892[_0x34ee95(0x13d1)]),_0x235892['items'][_0x34ee95(0x1397)](function(_0x6033cf){const _0x1e539d=_0x34ee95,_0xe1c97a=_0x28c606()['find'](_0x235892[_0x1e539d(0x13d1)],{'id':_0x6033cf['id']});_0x235892[_0x1e539d(0x1d3d)]['role']===_0x1e539d(0x333)?_0x6033cf[_0x1e539d(0x6f9)]=!![]:_0x6033cf[_0x1e539d(0x6f9)]=typeof _0xe1c97a!==_0x1e539d(0x19a1)?!![]:![];}),_0x181136();})[_0x24d7f9(0x64a)](function(_0x1d99fa){const _0x575e98=_0x24d7f9,_0x53fcaf=_0x1d99fa&&_0x1d99fa[_0x575e98(0x28b8)]?_0x1d99fa[_0x575e98(0x28b8)]:[];_0x235892[_0x575e98(0x1f4f)]=_0x28c606()['map'](_0x53fcaf,function(_0x38d0a5){const _0x9a0e13=_0x575e98;return _0x28c606()['find'](_0x235892[_0x9a0e13(0x23cb)],{'id':_0x38d0a5['id']});}),_0x235892[_0x575e98(0x24e1)]=angular[_0x575e98(0x289e)](_0x235892[_0x575e98(0x1f4f)]),_0x235892['dualMultiselectOptions'][_0x575e98(0x1f4f)]=_0x235892[_0x575e98(0x1f4f)],_0x235892[_0x575e98(0x1eeb)][_0x575e98(0x23cb)]=_0x28c606()[_0x575e98(0x23e5)](_0x235892[_0x575e98(0x13d1)],_0x235892[_0x575e98(0x1eeb)][_0x575e98(0x1f4f)],'id'),_0x452e2c();})['catch'](function(_0x4063a9){_0x4b3422(_0x4063a9);});});}function _0x147f77(){return _0x18b7d8(function(_0x3ae4bd,_0x911268){const _0x4429db=a0_0x4127;return _0x1b7b6a['userProfileResource'][_0x4429db(0x896)]({'sectionId':_0x235892['section']['id'],'nolimit':!![]})[_0x4429db(0x15e7)][_0x4429db(0x64a)](function(_0x33d6d3){_0x3ae4bd(_0x33d6d3);})['catch'](function(_0x4bcd1b){_0x911268(_0x4bcd1b);});});}function _0x181136(){return _0x18b7d8(function(_0x1c7b69,_0x2882cb){const _0x15972a=a0_0x4127,_0x3e10c7=_0x1b7b6a[_0x235892['apiRoute']];return _0x3e10c7[_0x235892[_0x15972a(0x1a35)]]({'id':_0x235892[_0x15972a(0x15aa)]['id'],'fields':_0x15972a(0x1427),'nolimit':!![]})[_0x15972a(0x15e7)][_0x15972a(0x64a)](function(_0x4ac0e0){_0x1c7b69(_0x4ac0e0);})[_0x15972a(0x20cd)](function(_0x22112c){_0x2882cb(_0x22112c);});});}function _0x1a4717(){return _0x18b7d8(function(_0x30f16f,_0x357efa){const _0x5e7a7d=a0_0x4127;return _0x1b7b6a[_0x5e7a7d(0x19f8)][_0x5e7a7d(0x896)]({'fields':'id,name','nolimit':!![]})[_0x5e7a7d(0x15e7)][_0x5e7a7d(0x64a)](function(_0x3d36b4){_0x30f16f(_0x3d36b4);})[_0x5e7a7d(0x20cd)](function(_0x2a1d9e){_0x357efa(_0x2a1d9e);});});}function _0x57674a(_0x37b054){return _0x18b7d8(function(_0x3ac91c,_0x66eee7){const _0x1147d5=a0_0x4127;if(_0x28c606()[_0x1147d5(0x940)](_0x37b054))_0x3ac91c();else{const _0x462004=_0x1b7b6a[_0x235892[_0x1147d5(0x22b5)]];_0x462004[_0x235892[_0x1147d5(0xd1e)]]({'id':_0x235892['ivrCampaign']['id'],'ids':_0x28c606()['map'](_0x37b054,'id')})[_0x1147d5(0x15e7)]['then'](function(){_0x3ac91c();})[_0x1147d5(0x20cd)](function(_0x390963){_0x66eee7(_0x390963);});}});}function _0xd8cde(_0x3fcf21){return _0x18b7d8(function(_0x39e278,_0xd182eb){const _0x393b1b=a0_0x4127;if(_0x28c606()[_0x393b1b(0x940)](_0x3fcf21))_0x39e278();else{const _0x500919=_0x1b7b6a[_0x235892['apiRoute']];_0x500919[_0x235892['removeApi']]({'id':_0x235892[_0x393b1b(0x15aa)]['id'],'ids':_0x28c606()['map'](_0x3fcf21,'id')})[_0x393b1b(0x15e7)][_0x393b1b(0x64a)](function(){_0x39e278();})['catch'](function(_0x83c0ba){_0xd182eb(_0x83c0ba);});}});}function _0x232834(){const _0x43e16f=_0x31cffc;_0x235892[_0x43e16f(0x26e5)]=!![];const _0x41761f=_0x28c606()[_0x43e16f(0x23e5)](_0x235892[_0x43e16f(0x24e1)],_0x235892['selectedItems'],'id'),_0x323576=_0x28c606()[_0x43e16f(0x23e5)](_0x235892[_0x43e16f(0x1f4f)],_0x235892[_0x43e16f(0x24e1)],'id');return _0xd8cde(_0x41761f)['then'](function(){return _0x57674a(_0x323576);})[_0x43e16f(0x64a)](function(){const _0x5e70ff=_0x43e16f;_0x235892[_0x5e70ff(0xe9e)]=![],_0x235892[_0x5e70ff(0x206b)]=angular[_0x5e70ff(0x289e)](_0x235892[_0x5e70ff(0x13d1)]),_0x235892['startingSelectedItems']=angular['copy'](_0x235892[_0x5e70ff(0x1f4f)]),_0x9ea6ad['success']({'title':'SUCCESS','msg':_0x5e70ff(0x1f6)});})['catch'](function(_0x20510a){const _0xfe4c43=_0x43e16f;_0x9ea6ad['error']({'title':_0x20510a[_0xfe4c43(0x10b3)]?_0xfe4c43(0x575)+_0x20510a[_0xfe4c43(0x10b3)]+_0xfe4c43(0x21db)+_0x20510a[_0xfe4c43(0x2115)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x20510a['status']?JSON[_0xfe4c43(0x2317)](_0x20510a[_0xfe4c43(0x1c52)]):_0x20510a[_0xfe4c43(0x2915)]()});})[_0x43e16f(0x988)](function(){_0x235892['loading']=![];});}function _0x1176fd(){_0x1fc571['hide']();}}const _0x12a8a0=_0x578be7;;_0x5bde9d['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x212a),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x15aa),_0x49a1e3(0x28e8),_0x49a1e3(0x175e),'$q'];function _0x5bde9d(_0xf7ea3f,_0x57a406,_0x42fd6d,_0x5823fb,_0x56fc58,_0x567ce4,_0x26f384,_0x11c897){const _0x1864fb=_0x49a1e3,_0x615299=this;_0x615299[_0x1864fb(0x337)]=[],_0x615299[_0x1864fb(0x23cb)]=_0x567ce4?_0x567ce4:[],_0x615299[_0x1864fb(0x26e5)]=![],_0x615299[_0x1864fb(0x16cb)]=_0x4da9af,_0x615299[_0x1864fb(0xfe3)]=_0x431a0b,_0x615299[_0x1864fb(0x1f94)]=_0x998d84,_0x615299['isIndeterminate']=_0x30883f,_0x615299[_0x1864fb(0x11cd)]=_0x5501a9,_0x615299[_0x1864fb(0x2215)]=_0xa18ddc,_0x615299[_0x1864fb(0x242e)]=_0x96f5b;function _0x998d84(_0x3008b0,_0x4dac0f){const _0x37aa30=_0x1864fb,_0x16739c=_0x4dac0f[_0x37aa30(0x1b28)](_0x3008b0);_0x16739c>-0x1?_0x4dac0f[_0x37aa30(0x18f0)](_0x16739c,0x1):_0x4dac0f['push'](_0x3008b0);}function _0x431a0b(_0x115467,_0x5731c6){const _0x18f46e=_0x1864fb;return _0x5731c6[_0x18f46e(0x1b28)](_0x115467)>-0x1;}function _0x30883f(){const _0x17dec0=_0x1864fb;return _0x615299[_0x17dec0(0x337)][_0x17dec0(0x1b9e)]!==0x0&&_0x615299[_0x17dec0(0x337)][_0x17dec0(0x1b9e)]!==_0x615299[_0x17dec0(0x23cb)][_0x17dec0(0x1b9e)];}function _0x5501a9(){const _0xb803fc=_0x1864fb;return _0x615299['selected'][_0xb803fc(0x1b9e)]===_0x615299['items'][_0xb803fc(0x1b9e)];}function _0xa18ddc(){const _0x25a91f=_0x1864fb;if(_0x615299[_0x25a91f(0x337)][_0x25a91f(0x1b9e)]===_0x615299[_0x25a91f(0x23cb)]['length'])_0x615299[_0x25a91f(0x337)]=[];else(_0x615299[_0x25a91f(0x337)]['length']===0x0||_0x615299[_0x25a91f(0x337)][_0x25a91f(0x1b9e)]>0x0)&&(_0x615299['selected']=_0x615299[_0x25a91f(0x23cb)][_0x25a91f(0x142e)](0x0));}function _0x4da9af(){const _0xdcc338=_0x1864fb;_0x57a406[_0xdcc338(0x268e)]();}function _0x96f5b(){const _0x19e5b2=_0x1864fb;_0x615299[_0x19e5b2(0x26e5)]=!![];const _0x5f263a=_0x23ced();_0x5f263a[_0x19e5b2(0x988)](function(){const _0x44bedb=_0x19e5b2;_0x615299[_0x44bedb(0x26e5)]=![],_0x4da9af();});}function _0x23ced(){return _0x11c897(function(_0x1e5e28){const _0x261384=a0_0x4127;for(let _0x3381b5=0x0;_0x3381b5<_0x615299[_0x261384(0x337)][_0x261384(0x1b9e)];_0x3381b5+=0x1){_0x5e3cc7(_0x56fc58['id'],_0x615299['selected'][_0x3381b5]);}_0x316dbd(_0x1e5e28);});}function _0x5e3cc7(_0x40e0ec,_0x25f1f2){const _0x468f35=_0x1864fb,_0x17fa44=_0x25f1f2['id'];_0x26f384[_0x468f35(0x1f97)](function(){const _0x2c2eb4=_0x468f35;return _0x5823fb[_0x2c2eb4(0x1aba)][_0x2c2eb4(0x2933)]({'id':_0x40e0ec,'ids':_0x17fa44})[_0x2c2eb4(0x15e7)][_0x2c2eb4(0x64a)](function(){const _0x3892cd=_0x2c2eb4;return _0x5823fb[_0x3892cd(0x1aba)][_0x3892cd(0x2675)]({'id':_0x40e0ec,'ids':_0x17fa44,'dialCheckDuplicateType':'never'})['$promise'];})['then'](function(){const _0x4d281f=_0x2c2eb4;_0x42fd6d['success']({'title':_0x4d281f(0x264),'msg':_0x4d281f(0x1dbf)+_0x25f1f2[_0x4d281f(0x2494)]+_0x4d281f(0x5d1)});})['catch'](function(_0x3c6c33){const _0x42924b=_0x2c2eb4;_0x42fd6d[_0x42924b(0x1bd0)]({'title':_0x3c6c33['status']?_0x42924b(0x575)+_0x3c6c33[_0x42924b(0x10b3)]+_0x42924b(0x21db)+_0x3c6c33[_0x42924b(0x2115)]:'SYSTEM:queueCampaign.RESETLIST','msg':_0x3c6c33[_0x42924b(0x10b3)]?JSON[_0x42924b(0x2317)](_0x3c6c33[_0x42924b(0x1c52)]):_0x3c6c33[_0x42924b(0x2915)]()});});});}function _0x316dbd(_0x4ae39b){const _0x546464=_0x1864fb;_0x26f384[_0x546464(0x1f97)](function(){return _0x4ae39b();});}}const _0x5e7e84=_0x5bde9d;;const _0x59d836=_0x2e4a48['p']+_0x49a1e3(0x156b);;const _0x303488=_0x2e4a48['p']+_0x49a1e3(0x1b68);;const _0x5330a1=_0x2e4a48['p']+_0x49a1e3(0x1bf0);;const _0x25ffde=_0x2e4a48['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/resetlist/resetlist.html/resetlist.html';;_0x65b3dd[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),'toasty','Auth',_0x49a1e3(0x15aa),'userProfileSection'];function _0x65b3dd(_0x57795a,_0x5219e1,_0x5c1bf0,_0xb7789d,_0x35bdab,_0x827192,_0x114718,_0x27939b,_0x568750,_0x49f044,_0x481830,_0x9b95ad){const _0x3604c6=_0x49a1e3,_0x3c3b10=this;_0x3c3b10[_0x3604c6(0x1d3d)]=_0x49f044[_0x3604c6(0x808)](),_0x3c3b10['license']=_0x827192,_0x3c3b10[_0x3604c6(0x28d6)]=_0x114718,_0x3c3b10[_0x3604c6(0xccc)]=_0x3c3b10[_0x3604c6(0x28d6)][_0x3604c6(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3c3b10[_0x3604c6(0xb36)]=_0x5219e1[_0x3604c6(0x48e)]()+'://'+_0x5219e1[_0x3604c6(0x1e5d)](),_0x3c3b10[_0x3604c6(0x15aa)]=_0x481830||_0x57795a[_0x3604c6(0x1b48)]['ivrCampaign']||{},_0x3c3b10[_0x3604c6(0x16b2)]=_0x9b95ad&&_0x9b95ad['count']==0x1?_0x9b95ad[_0x3604c6(0x28b8)][0x0]:null,_0x3c3b10['crudPermissions']=_0x49f044[_0x3604c6(0xa7e)](_0x3c3b10[_0x3604c6(0x16b2)]?_0x3c3b10['userProfileSection'][_0x3604c6(0x402)]:null),_0x3c3b10[_0x3604c6(0x6c2)]={},_0x3c3b10['selectedTab']=_0x57795a[_0x3604c6(0x1b48)][_0x3604c6(0x1222)]||0x0,_0x3c3b10[_0x3604c6(0x1676)]=_0x241aba,_0x3c3b10[_0x3604c6(0x1cb0)]=_0xa96a3f,_0x3c3b10[_0x3604c6(0x128b)]=_0x4b9424,_0x3c3b10[_0x3604c6(0x39f)]=_0x51144e,_0x3c3b10[_0x3604c6(0x505)]=_0x436014,_0x3c3b10[_0x3604c6(0x2540)]=_0x568750[_0x3604c6(0x772)],_0x3c3b10[_0x3604c6(0x134b)]=_0xd6932a,_0x3c3b10[_0x3604c6(0x1728)]=_0x313210,_0x49f044[_0x3604c6(0x4de)](_0x3604c6(0x333))?_0x27939b[_0x3604c6(0x4ef)]['get']({'fields':_0x3604c6(0x1427),'sort':_0x3604c6(0x2494)})[_0x3604c6(0x15e7)]['then'](function(_0x22c5ab){const _0x491065=_0x3604c6;_0x3c3b10[_0x491065(0xe23)]=_0x22c5ab[_0x491065(0x28b8)]||[];})['catch'](function(_0x21788a){const _0x173019=_0x3604c6;_0x568750[_0x173019(0x1bd0)]({'title':_0x21788a['status']?_0x173019(0x575)+_0x21788a[_0x173019(0x10b3)]+_0x173019(0x21db)+_0x21788a[_0x173019(0x2115)]:_0x173019(0x1d82),'msg':_0x21788a[_0x173019(0x1c52)]?JSON['stringify'](_0x21788a[_0x173019(0x1c52)]):_0x21788a[_0x173019(0x2915)]()});}):_0x27939b[_0x3604c6(0x4ef)]['get']({'fields':_0x3604c6(0x1427),'sort':_0x3604c6(0x2494)})['$promise']['then'](function(_0x5caf69){const _0x208d45=_0x3604c6;_0x3c3b10['trunks']=_0x5caf69[_0x208d45(0x28b8)]||[];})[_0x3604c6(0x64a)](function(){const _0xe6e2d4=_0x3604c6;return _0x27939b[_0xe6e2d4(0x16b2)][_0xe6e2d4(0x896)]({'userProfileId':_0x3c3b10[_0xe6e2d4(0x1d3d)][_0xe6e2d4(0x21ac)],'sectionId':0x3f3})[_0xe6e2d4(0x15e7)];})['then'](function(_0x160a3b){const _0x3e457d=_0x3604c6,_0x5c7917=_0x160a3b&&_0x160a3b[_0x3e457d(0x28b8)]?_0x160a3b[_0x3e457d(0x28b8)][0x0]:null;if(!_0x5c7917)_0x3c3b10['trunks']=[];else{if(!_0x5c7917[_0x3e457d(0x11da)])return _0x27939b[_0x3e457d(0x1617)][_0x3e457d(0x896)]({'sectionId':_0x5c7917['id']})[_0x3e457d(0x15e7)]['then'](function(_0x52553b){const _0x4686f3=_0x3e457d,_0x3e8a65=_0x28c606()[_0x4686f3(0x1de5)](_0x52553b[_0x4686f3(0x28b8)],function(_0x3ae837){const _0x2a5a26=_0x4686f3;return _0x28c606()['find'](_0x3c3b10[_0x2a5a26(0xe23)],{'id':_0x3ae837[_0x2a5a26(0x145)]});});_0x3c3b10['trunks'][_0x4686f3(0x1397)](function(_0x5eb5ac){const _0x23048e=_0x4686f3;!_0x28c606()[_0x23048e(0x25f8)](_0x3e8a65,['id',_0x5eb5ac['id']])&&(_0x5eb5ac['canSelect']=![]),_0x3e8a65['push'](_0x5eb5ac);}),_0x3c3b10[_0x4686f3(0xe23)]=_0x3e8a65;});}})['catch'](function(_0x35aa7f){const _0x309082=_0x3604c6;_0x568750[_0x309082(0x1bd0)]({'title':_0x35aa7f[_0x309082(0x10b3)]?'API:'+_0x35aa7f[_0x309082(0x10b3)]+_0x309082(0x21db)+_0x35aa7f[_0x309082(0x2115)]:'SYSTEM:GETtrunks','msg':_0x35aa7f['data']?JSON[_0x309082(0x2317)](_0x35aa7f[_0x309082(0x1c52)]):_0x35aa7f['toString']()});}),_0x49f044[_0x3604c6(0x4de)](_0x3604c6(0x333))?_0x27939b['squareProject'][_0x3604c6(0x896)]({'fields':_0x3604c6(0x1427),'sort':_0x3604c6(0x2494)})[_0x3604c6(0x15e7)][_0x3604c6(0x64a)](function(_0x5b97e7){const _0xa691d2=_0x3604c6;_0x3c3b10[_0xa691d2(0x1d73)]=_0x5b97e7[_0xa691d2(0x28b8)]||[];})[_0x3604c6(0x20cd)](function(_0x462f32){const _0x2bf0b6=_0x3604c6;_0x568750[_0x2bf0b6(0x1bd0)]({'title':_0x462f32['status']?_0x2bf0b6(0x575)+_0x462f32[_0x2bf0b6(0x10b3)]+_0x2bf0b6(0x21db)+_0x462f32[_0x2bf0b6(0x2115)]:_0x2bf0b6(0x295e),'msg':_0x462f32['data']?JSON[_0x2bf0b6(0x2317)](_0x462f32['data']):_0x462f32[_0x2bf0b6(0x2915)]()});}):_0x27939b[_0x3604c6(0x2101)][_0x3604c6(0x896)]({'fields':'id,name','sort':_0x3604c6(0x2494)})[_0x3604c6(0x15e7)][_0x3604c6(0x64a)](function(_0x41bef0){const _0x516525=_0x3604c6;_0x3c3b10[_0x516525(0x1d73)]=_0x41bef0[_0x516525(0x28b8)]||[];})['then'](function(){const _0x2aba59=_0x3604c6;return _0x27939b[_0x2aba59(0x16b2)][_0x2aba59(0x896)]({'userProfileId':_0x3c3b10['currentUser']['userProfileId'],'sectionId':0x44f})[_0x2aba59(0x15e7)];})[_0x3604c6(0x64a)](function(_0x50e6c8){const _0x57e91a=_0x3604c6,_0x23a326=_0x50e6c8&&_0x50e6c8[_0x57e91a(0x28b8)]?_0x50e6c8[_0x57e91a(0x28b8)][0x0]:null;if(!_0x23a326){const _0x2f96fb=[];let _0x849354=null;_0x3c3b10[_0x57e91a(0x15aa)]&&(_0x849354=_0x28c606()[_0x57e91a(0x27bc)](_0x3c3b10[_0x57e91a(0x1d73)],{'id':Number(_0x3c3b10['ivrCampaign'][_0x57e91a(0x1e45)])}));for(let _0x4fa85d=0x0;_0x4fa85d<_0x3c3b10['projects']['length'];_0x4fa85d++){_0x849354&&_0x3c3b10['projects'][_0x4fa85d]['id']===_0x849354['id']&&(_0x3c3b10[_0x57e91a(0x1d73)][_0x4fa85d]['canSelect']=![],_0x2f96fb[_0x57e91a(0x1954)](_0x3c3b10[_0x57e91a(0x1d73)][_0x4fa85d]));}_0x3c3b10[_0x57e91a(0x1d73)]=_0x2f96fb;}else{if(!_0x23a326[_0x57e91a(0x11da)])return _0x27939b[_0x57e91a(0x1617)][_0x57e91a(0x896)]({'sectionId':_0x23a326['id']})[_0x57e91a(0x15e7)][_0x57e91a(0x64a)](function(_0x56d5ef){const _0x485893=_0x57e91a,_0x3afbfa=_0x28c606()[_0x485893(0x1de5)](_0x56d5ef[_0x485893(0x28b8)],function(_0xaa2b7){const _0x2c989f=_0x485893;return _0x28c606()[_0x2c989f(0x27bc)](_0x3c3b10[_0x2c989f(0x1d73)],{'id':_0xaa2b7[_0x2c989f(0x145)]});});let _0x153ef6=null;_0x3c3b10['ivrCampaign']&&(_0x153ef6=_0x28c606()[_0x485893(0x27bc)](_0x3c3b10[_0x485893(0x1d73)],{'id':Number(_0x3c3b10[_0x485893(0x15aa)][_0x485893(0x1e45)])}));if(_0x153ef6&&!_0x28c606()[_0x485893(0x25f8)](_0x3afbfa,['id',_0x153ef6['id']])){const _0x618a0=_0x28c606()[_0x485893(0x27bc)](_0x3c3b10['projects'],{'id':_0x153ef6['id']});_0x618a0['canSelect']=![],_0x3afbfa['push'](_0x618a0);}_0x3c3b10[_0x485893(0x1d73)]=_0x3afbfa;});}})[_0x3604c6(0x20cd)](function(_0x2ff577){const _0x3b3de0=_0x3604c6;_0x568750[_0x3b3de0(0x1bd0)]({'title':_0x2ff577['status']?'API:'+_0x2ff577[_0x3b3de0(0x10b3)]+_0x3b3de0(0x21db)+_0x2ff577[_0x3b3de0(0x2115)]:_0x3b3de0(0x2786),'msg':_0x2ff577[_0x3b3de0(0x1c52)]?JSON[_0x3b3de0(0x2317)](_0x2ff577[_0x3b3de0(0x1c52)]):_0x2ff577[_0x3b3de0(0x2915)]()});}),_0x49f044['hasRole'](_0x3604c6(0x333))?_0x27939b[_0x3604c6(0xcfd)][_0x3604c6(0x896)]({'fields':_0x3604c6(0x1427),'sort':_0x3604c6(0x2494),'IntervalId':_0x3604c6(0x8f1)})['$promise'][_0x3604c6(0x64a)](function(_0x4587e9){const _0xf27a79=_0x3604c6;_0x3c3b10[_0xf27a79(0xcfd)]=_0x4587e9[_0xf27a79(0x28b8)]||[];})[_0x3604c6(0x20cd)](function(_0x3e14f4){const _0x2dfbf8=_0x3604c6;_0x568750['error']({'title':_0x3e14f4['status']?'API:'+_0x3e14f4['status']+_0x2dfbf8(0x21db)+_0x3e14f4[_0x2dfbf8(0x2115)]:'SYSTEM:GET_INTERVAL','msg':_0x3e14f4[_0x2dfbf8(0x1c52)]?JSON['stringify'](_0x3e14f4[_0x2dfbf8(0x1c52)]):_0x3e14f4[_0x2dfbf8(0x2915)]()});}):_0x27939b['interval'][_0x3604c6(0x896)]({'fields':'id,name','sort':_0x3604c6(0x2494),'IntervalId':_0x3604c6(0x8f1)})[_0x3604c6(0x15e7)]['then'](function(_0x3e5f15){const _0x315e43=_0x3604c6;_0x3c3b10[_0x315e43(0xcfd)]=_0x3e5f15[_0x315e43(0x28b8)]||[];})[_0x3604c6(0x64a)](function(){const _0x5e5c70=_0x3604c6;return _0x27939b[_0x5e5c70(0x16b2)]['get']({'userProfileId':_0x3c3b10[_0x5e5c70(0x1d3d)]['userProfileId'],'sectionId':0x3ec})[_0x5e5c70(0x15e7)];})[_0x3604c6(0x64a)](function(_0x140855){const _0xb52453=_0x3604c6,_0x1cd649=_0x140855&&_0x140855[_0xb52453(0x28b8)]?_0x140855[_0xb52453(0x28b8)][0x0]:null;if(!_0x1cd649){const _0x153b30=[];let _0x232c59=null;_0x3c3b10[_0xb52453(0x15aa)]&&(_0x232c59=_0x28c606()[_0xb52453(0x27bc)](_0x3c3b10[_0xb52453(0xcfd)],{'id':Number(_0x3c3b10[_0xb52453(0x15aa)][_0xb52453(0xb71)])}));for(let _0x568e6c=0x0;_0x568e6c<_0x3c3b10['interval']['length'];_0x568e6c++){_0x232c59&&_0x3c3b10[_0xb52453(0xcfd)][_0x568e6c]['id']===_0x232c59['id']&&(_0x3c3b10[_0xb52453(0xcfd)][_0x568e6c][_0xb52453(0xd4f)]=![],_0x153b30['push'](_0x3c3b10[_0xb52453(0xcfd)][_0x568e6c]));}_0x3c3b10['interval']=_0x153b30;}else{if(!_0x1cd649['autoAssociation'])return _0x27939b[_0xb52453(0x1617)][_0xb52453(0x896)]({'sectionId':_0x1cd649['id']})[_0xb52453(0x15e7)]['then'](function(_0x5b18ea){const _0x44d3a8=_0xb52453,_0x2b5811=_0x28c606()[_0x44d3a8(0x1de5)](_0x5b18ea['rows'],function(_0x599606){const _0x5da675=_0x44d3a8;return _0x28c606()[_0x5da675(0x27bc)](_0x3c3b10['interval'],{'id':_0x599606['resourceId']});});let _0x1fdd63=null;_0x3c3b10[_0x44d3a8(0x15aa)]&&(_0x1fdd63=_0x28c606()[_0x44d3a8(0x27bc)](_0x3c3b10[_0x44d3a8(0xcfd)],{'id':Number(_0x3c3b10[_0x44d3a8(0x15aa)]['IntervalId'])}));if(_0x1fdd63&&!_0x28c606()[_0x44d3a8(0x25f8)](_0x2b5811,['id',_0x1fdd63['id']])){const _0x1afbf1=_0x28c606()[_0x44d3a8(0x27bc)](_0x3c3b10[_0x44d3a8(0xcfd)],{'id':_0x1fdd63['id']});_0x1afbf1[_0x44d3a8(0xd4f)]=![],_0x2b5811[_0x44d3a8(0x1954)](_0x1afbf1);}_0x3c3b10[_0x44d3a8(0xcfd)]=_0x2b5811;});}})[_0x3604c6(0x20cd)](function(_0x2bc601){const _0x439320=_0x3604c6;_0x568750[_0x439320(0x1bd0)]({'title':_0x2bc601[_0x439320(0x10b3)]?_0x439320(0x575)+_0x2bc601['status']+_0x439320(0x21db)+_0x2bc601['statusText']:_0x439320(0x314),'msg':_0x2bc601[_0x439320(0x1c52)]?JSON[_0x439320(0x2317)](_0x2bc601[_0x439320(0x1c52)]):_0x2bc601['toString']()});});function _0x241aba(_0x1252b6,_0x3d1550){const _0x145604=_0x3604c6;_0x5c1bf0[_0x145604(0xa60)]({'controller':_0x145604(0x15b7),'controllerAs':'vm','templateUrl':_0x59d836,'parent':angular[_0x145604(0x1f81)](_0xb7789d[_0x145604(0xb49)]),'targetEvent':_0x3d1550,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x1252b6,'ivrCampaigns':_0x3c3b10[_0x145604(0x1fa6)]?_0x3c3b10[_0x145604(0x1fa6)]['rows']:[],'crudPermissions':_0x3c3b10[_0x145604(0x402)]}});}function _0xa96a3f(_0x37f84d,_0x50ebbf){const _0x4ef51f=_0x3604c6;_0x5c1bf0[_0x4ef51f(0xa60)]({'controller':_0x4ef51f(0x281c),'controllerAs':'vm','templateUrl':_0x303488,'parent':angular[_0x4ef51f(0x1f81)](_0xb7789d['body']),'targetEvent':_0x50ebbf,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x37f84d,'ivrCampaigns':_0x3c3b10[_0x4ef51f(0x1fa6)]?_0x3c3b10[_0x4ef51f(0x1fa6)][_0x4ef51f(0x28b8)]:[],'crudPermissions':_0x3c3b10[_0x4ef51f(0x402)]}});}function _0x4b9424(_0x507893,_0x4b2511){const _0x4edbd2=_0x3604c6;_0x5c1bf0['show']({'controller':'IvrCampaignblacklistaddController','controllerAs':'vm','templateUrl':_0x5330a1,'parent':angular[_0x4edbd2(0x1f81)](_0xb7789d['body']),'targetEvent':_0x4b2511,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x507893,'ivrCampaigns':_0x3c3b10[_0x4edbd2(0x1fa6)]?_0x3c3b10[_0x4edbd2(0x1fa6)][_0x4edbd2(0x28b8)]:[],'crudPermissions':_0x3c3b10[_0x4edbd2(0x402)]}});}function _0x2239d4(_0x14d745,_0x9f0793){const _0x29b36e=_0x3604c6,_0x10cd53=_0x9f0793['id'];_0x27939b[_0x29b36e(0x1aba)][_0x29b36e(0x2933)]({'id':_0x14d745,'ids':_0x10cd53})[_0x29b36e(0x15e7)][_0x29b36e(0x64a)](function(){const _0x358bba=_0x29b36e;return _0x27939b[_0x358bba(0x1aba)][_0x358bba(0x2675)]({'id':_0x14d745,'ids':_0x10cd53,'dialCheckDuplicateType':_0x358bba(0x233a)})[_0x358bba(0x15e7)];})[_0x29b36e(0x64a)](function(){const _0x1914d1=_0x29b36e;_0x568750[_0x1914d1(0x1339)]({'title':_0x1914d1(0x264),'msg':'List\x20'+_0x9f0793[_0x1914d1(0x2494)]+'\x20has\x20been\x20reset'});})[_0x29b36e(0x20cd)](function(_0x159384){const _0x42ee2b=_0x29b36e;_0x568750[_0x42ee2b(0x1bd0)]({'title':_0x159384[_0x42ee2b(0x10b3)]?_0x42ee2b(0x575)+_0x159384['status']+_0x42ee2b(0x21db)+_0x159384[_0x42ee2b(0x2115)]:_0x42ee2b(0x2401),'msg':_0x159384[_0x42ee2b(0x10b3)]?JSON['stringify'](_0x159384[_0x42ee2b(0x1c52)]):_0x159384[_0x42ee2b(0x2915)]()});});}function _0x51144e(_0x582654,_0x520a25){const _0x2bd9b=_0x3604c6;_0x27939b[_0x2bd9b(0x1aba)][_0x2bd9b(0x7aa)]({'id':_0x582654['id'],'fields':_0x2bd9b(0x1427),'nolimit':!![]})[_0x2bd9b(0x15e7)][_0x2bd9b(0x64a)](function(_0x5ec3ca){const _0x1b5422=_0x2bd9b;if(_0x28c606()['isNil'](_0x5ec3ca[_0x1b5422(0x28b8)])||_0x28c606()[_0x1b5422(0x940)](_0x5ec3ca[_0x1b5422(0x28b8)]))_0x568750[_0x1b5422(0x772)]({'title':_0x1b5422(0x1396)});else{if(_0x5ec3ca[_0x1b5422(0x28b8)][_0x1b5422(0x1b9e)]===0x1){const _0x3aa1cc=_0x5c1bf0[_0x1b5422(0x856)]()[_0x1b5422(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20reset\x20the\x20list\x20'+_0x5ec3ca[_0x1b5422(0x28b8)][0x0][_0x1b5422(0x2494)]+'\x20?')[_0x1b5422(0x33a)](_0x1b5422(0x50b)+_0x5ec3ca['rows'][0x0][_0x1b5422(0x2494)]+_0x1b5422(0x26d0)+_0x1b5422(0x1653))['ariaLabel']('Reset\x20List')[_0x1b5422(0x2283)](_0x520a25)['ok']('OK')[_0x1b5422(0x101a)]('CANCEL');_0x5c1bf0[_0x1b5422(0xa60)](_0x3aa1cc)[_0x1b5422(0x64a)](function(){const _0x503897=_0x1b5422;_0x2239d4(_0x3c3b10[_0x503897(0x15aa)]['id'],_0x5ec3ca[_0x503897(0x28b8)][0x0]);});}else _0x5c1bf0[_0x1b5422(0xa60)]({'controller':_0x1b5422(0x28c5),'controllerAs':'vm','templateUrl':_0x25ffde,'parent':angular[_0x1b5422(0x1f81)](_0xb7789d[_0x1b5422(0xb49)]),'targetEvent':_0x520a25,'clickOutsideToClose':![],'locals':{'ivrCampaign':_0x582654,'listsCampaign':_0x5ec3ca?_0x5ec3ca[_0x1b5422(0x28b8)]:[]}});}})['catch'](function(_0x192576){const _0x171271=_0x2bd9b;_0x568750['error']({'title':_0x192576['status']?_0x171271(0x575)+_0x192576[_0x171271(0x10b3)]+_0x171271(0x21db)+_0x192576['statusText']:'SYSTEM:RESETLIST','msg':_0x192576['status']?JSON[_0x171271(0x2317)](_0x192576[_0x171271(0x1c52)]):_0x192576[_0x171271(0x2915)]()});});}function _0x436014(){const _0x49b246=_0x3604c6;if(_0x49f044['hasRole']('admin'))_0x57795a['go'](_0x49b246(0x5bf),{});else return _0x27939b['userProfileSection'][_0x49b246(0x896)]({'userProfileId':_0x49f044['getCurrentUser']()[_0x49b246(0x21ac)],'sectionId':0x5e6})['$promise'][_0x49b246(0x64a)](function(_0x4c6bb0){const _0x13789a=_0x49b246,_0x18b980=_0x4c6bb0&&_0x4c6bb0[_0x13789a(0x28b8)]?_0x4c6bb0[_0x13789a(0x28b8)][0x0]:null;_0x18b980&&_0x18b980[_0x13789a(0xe49)]?_0x57795a['go'](_0x13789a(0x5bf),{}):_0x568750['info']({'title':_0x35bdab[_0x13789a(0x2292)](_0x13789a(0x111a)),'msg':_0x35bdab[_0x13789a(0x2292)](_0x13789a(0x229))});})['catch'](function(_0x25f683){const _0x197409=_0x49b246;_0x568750[_0x197409(0x1bd0)]({'title':_0x25f683[_0x197409(0x10b3)]?_0x197409(0x575)+_0x25f683[_0x197409(0x10b3)]+_0x197409(0x21db)+_0x25f683[_0x197409(0x2115)]:_0x197409(0x942),'msg':_0x25f683[_0x197409(0x10b3)]?JSON[_0x197409(0x2317)](_0x25f683[_0x197409(0x1c52)]):_0x25f683[_0x197409(0x2915)]()});});}function _0xd6932a(){const _0x46bc96=_0x3604c6;_0x57795a['go'](_0x46bc96(0x116f),{},{'reload':_0x46bc96(0x116f)});}function _0x313210(){const _0x391359=_0x3604c6;_0x27939b[_0x391359(0x1aba)][_0x391359(0x2603)]({'id':_0x3c3b10[_0x391359(0x15aa)]['id']},_0x3c3b10['ivrCampaign'])['$promise'][_0x391359(0x64a)](function(){const _0x1ff272=_0x391359;_0x568750[_0x1ff272(0x1339)]({'title':_0x1ff272(0x2935),'msg':_0x3c3b10['ivrCampaign'][_0x1ff272(0x2494)]?_0x3c3b10[_0x1ff272(0x15aa)][_0x1ff272(0x2494)]+_0x1ff272(0x2032):''});})[_0x391359(0x20cd)](function(_0x16f9ab){const _0x4072d3=_0x391359;_0x568750[_0x4072d3(0x1bd0)]({'title':_0x16f9ab[_0x4072d3(0x10b3)]?'API:'+_0x16f9ab[_0x4072d3(0x10b3)]+_0x4072d3(0x21db)+_0x16f9ab[_0x4072d3(0x2115)]:_0x4072d3(0xad7),'msg':_0x16f9ab[_0x4072d3(0x1c52)]?JSON[_0x4072d3(0x2317)](_0x16f9ab[_0x4072d3(0x1c52)]):_0x16f9ab[_0x4072d3(0x2915)]()});});}}const _0x51a0fb=_0x65b3dd;;_0x577f2f[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x1fa6),_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6)];function _0x577f2f(_0x3fb147,_0x1840f8,_0x37445c,_0x2232c5,_0x531e3e,_0x17429a,_0x8d3153,_0xc1e822,_0x4dc727,_0x5665c2,_0x2cb0a5,_0x242f80,_0x3a4725,_0x5c0ad6,_0x4f72c2,_0xff5a67,_0x4c3b66){const _0x5f3a18=_0x49a1e3,_0x583104=this;_0x583104[_0x5f3a18(0x1947)]=_0xff5a67,_0x583104[_0x5f3a18(0x28d6)]=_0x4c3b66,_0x583104['currentUser']=_0x4f72c2[_0x5f3a18(0x808)](),_0x583104[_0x5f3a18(0x1fa6)]=_0x4dc727||{'count':0x0,'rows':[]},_0x583104[_0x5f3a18(0x16a8)]=_0x5665c2,_0x583104[_0x5f3a18(0x16b2)]=_0x2cb0a5&&_0x2cb0a5[_0x5f3a18(0xb90)]==0x1?_0x2cb0a5[_0x5f3a18(0x28b8)][0x0]:null,_0x583104[_0x5f3a18(0x402)]=_0x4f72c2[_0x5f3a18(0xa7e)](_0x583104[_0x5f3a18(0x16b2)]?_0x583104['userProfileSection'][_0x5f3a18(0x402)]:null),_0x583104[_0x5f3a18(0x185d)]=_0x5f3a18(0x1fa6),_0x583104[_0x5f3a18(0x300)]='',_0x583104['listOrderAsc']=null,_0x583104[_0x5f3a18(0x19c5)]=[],_0x583104[_0x5f3a18(0x289a)]={'fields':_0x5f3a18(0xc92),'type':'ivr','sort':_0x5f3a18(0x260c),'limit':0xa,'page':0x1},_0x583104[_0x5f3a18(0x212)]=_0x28c606()[_0x5f3a18(0x161e)]([{'option':_0x5f3a18(0x1ea0),'value':_0x5f3a18(0x1c55)},{'option':_0x5f3a18(0x2467),'value':'\x27never\x27'},{'option':'ONLY_IF_OPEN','value':_0x5f3a18(0x2432)}],function(_0x5ceb1c){const _0x42bd8b=_0x5f3a18;return _0x28c606()[_0x42bd8b(0x1353)](_0x5ceb1c[_0x42bd8b(0x1096)],new RegExp('\x27','g'),'');}),_0x583104['arraydialOrderByScheduledAt']=_0x28c606()[_0x5f3a18(0x161e)]([{'option':_0x5f3a18(0x3cc),'value':_0x5f3a18(0x1c6f)},{'option':_0x5f3a18(0x9a9),'value':_0x5f3a18(0x1ca4)}],function(_0x15f470){const _0x486147=_0x5f3a18;return _0x28c606()[_0x486147(0x1353)](_0x15f470[_0x486147(0x1096)],new RegExp('\x27','g'),'');}),_0x583104[_0x5f3a18(0xff6)]=_0x34e952,_0x583104[_0x5f3a18(0x1676)]=_0x5bf48f,_0x583104['listadddialog']=_0x1b3f0d,_0x583104[_0x5f3a18(0x128b)]=_0x34e121,_0x583104[_0x5f3a18(0x1262)]=_0x287c63,_0x583104['gotorealtimegoto']=_0x36e299,_0x583104[_0x5f3a18(0x1339)]=_0x1356dc,_0x583104[_0x5f3a18(0x565)]=_0x452b0a,_0x583104[_0x5f3a18(0x1b76)]=_0x5754e9,_0x583104[_0x5f3a18(0x2564)]=_0x1f3190,_0x583104[_0x5f3a18(0xf31)]=_0xfa554a,_0x583104[_0x5f3a18(0x1bb)]=_0x4b2bf8,_0x583104[_0x5f3a18(0x13a2)]=_0x39e04b,_0x583104[_0x5f3a18(0x16f3)]=_0x391149,_0x4f72c2[_0x5f3a18(0x4de)](_0x5f3a18(0x333))?_0x242f80[_0x5f3a18(0x4ef)][_0x5f3a18(0x896)]({'fields':'id,name','sort':_0x5f3a18(0x2494),'table':_0x5f3a18(0x1685)})[_0x5f3a18(0x15e7)][_0x5f3a18(0x64a)](function(_0x298134){const _0x41f8f1=_0x5f3a18;_0x583104[_0x41f8f1(0xe23)]=_0x298134['rows']||[];})[_0x5f3a18(0x20cd)](function(_0x2c6ad7){const _0x4242b2=_0x5f3a18;_0x5c0ad6[_0x4242b2(0x1bd0)]({'title':_0x2c6ad7[_0x4242b2(0x10b3)]?_0x4242b2(0x575)+_0x2c6ad7['status']+_0x4242b2(0x21db)+_0x2c6ad7[_0x4242b2(0x2115)]:_0x4242b2(0x1d82),'msg':_0x2c6ad7[_0x4242b2(0x1c52)]?JSON[_0x4242b2(0x2317)](_0x2c6ad7[_0x4242b2(0x1c52)]):_0x2c6ad7[_0x4242b2(0x2915)]()});}):_0x242f80[_0x5f3a18(0x4ef)][_0x5f3a18(0x896)]({'fields':_0x5f3a18(0x1427),'sort':_0x5f3a18(0x2494),'table':_0x5f3a18(0x1685)})[_0x5f3a18(0x15e7)]['then'](function(_0x5c665a){const _0x2c9f12=_0x5f3a18;_0x583104[_0x2c9f12(0xe23)]=_0x5c665a[_0x2c9f12(0x28b8)]||[];})[_0x5f3a18(0x64a)](function(){const _0x596092=_0x5f3a18;return _0x242f80[_0x596092(0x16b2)][_0x596092(0x896)]({'userProfileId':_0x583104[_0x596092(0x1d3d)][_0x596092(0x21ac)],'sectionId':0x3f3})[_0x596092(0x15e7)];})[_0x5f3a18(0x64a)](function(_0x2c7314){const _0x5bf790=_0x5f3a18,_0xb704c5=_0x2c7314&&_0x2c7314[_0x5bf790(0x28b8)]?_0x2c7314[_0x5bf790(0x28b8)][0x0]:null;if(!_0xb704c5)_0x583104[_0x5bf790(0xe23)]=[];else{if(!_0xb704c5[_0x5bf790(0x11da)])return _0x242f80[_0x5bf790(0x1617)][_0x5bf790(0x896)]({'sectionId':_0xb704c5['id']})[_0x5bf790(0x15e7)][_0x5bf790(0x64a)](function(_0x21e833){const _0x5a795b=_0x5bf790,_0x4b6d5e=_0x28c606()[_0x5a795b(0x1de5)](_0x21e833[_0x5a795b(0x28b8)],function(_0x19ab0f){const _0x39306a=_0x5a795b;return _0x28c606()['find'](_0x583104['trunks'],{'id':_0x19ab0f[_0x39306a(0x145)]});});_0x583104[_0x5a795b(0xe23)][_0x5a795b(0x1397)](function(_0x43b98c){const _0x59a216=_0x5a795b;!_0x28c606()[_0x59a216(0x25f8)](_0x4b6d5e,['id',_0x43b98c['id']])&&(_0x43b98c[_0x59a216(0xd4f)]=![]),_0x4b6d5e[_0x59a216(0x1954)](_0x43b98c);}),_0x583104['trunks']=_0x4b6d5e;});}})[_0x5f3a18(0x20cd)](function(_0x2f5f01){const _0x13a6bc=_0x5f3a18;_0x5c0ad6[_0x13a6bc(0x1bd0)]({'title':_0x2f5f01[_0x13a6bc(0x10b3)]?'API:'+_0x2f5f01[_0x13a6bc(0x10b3)]+_0x13a6bc(0x21db)+_0x2f5f01[_0x13a6bc(0x2115)]:_0x13a6bc(0x89a),'msg':_0x2f5f01[_0x13a6bc(0x1c52)]?JSON[_0x13a6bc(0x2317)](_0x2f5f01[_0x13a6bc(0x1c52)]):_0x2f5f01['toString']()});}),_0x4f72c2[_0x5f3a18(0x4de)](_0x5f3a18(0x333))?_0x242f80[_0x5f3a18(0x2101)][_0x5f3a18(0x896)]({'fields':_0x5f3a18(0x1427),'sort':_0x5f3a18(0x2494)})[_0x5f3a18(0x15e7)][_0x5f3a18(0x64a)](function(_0x488f90){const _0x2c4f43=_0x5f3a18;_0x583104['projects']=_0x488f90[_0x2c4f43(0x28b8)]||[];})[_0x5f3a18(0x20cd)](function(_0x302632){const _0x5a4641=_0x5f3a18;_0x5c0ad6['error']({'title':_0x302632[_0x5a4641(0x10b3)]?_0x5a4641(0x575)+_0x302632[_0x5a4641(0x10b3)]+'\x20-\x20'+_0x302632[_0x5a4641(0x2115)]:_0x5a4641(0x295e),'msg':_0x302632[_0x5a4641(0x1c52)]?JSON['stringify'](_0x302632[_0x5a4641(0x1c52)]):_0x302632['toString']()});}):_0x242f80[_0x5f3a18(0x2101)]['get']({'fields':_0x5f3a18(0x1427),'sort':_0x5f3a18(0x2494)})[_0x5f3a18(0x15e7)]['then'](function(_0x38bb08){const _0x19d4f9=_0x5f3a18;_0x583104['projects']=_0x38bb08[_0x19d4f9(0x28b8)]||[];})[_0x5f3a18(0x64a)](function(){const _0x3290c4=_0x5f3a18;return _0x242f80['userProfileSection'][_0x3290c4(0x896)]({'userProfileId':_0x583104[_0x3290c4(0x1d3d)][_0x3290c4(0x21ac)],'sectionId':0x44f})[_0x3290c4(0x15e7)];})['then'](function(_0x2f6a9f){const _0x205e63=_0x5f3a18,_0x1cfc57=_0x2f6a9f&&_0x2f6a9f[_0x205e63(0x28b8)]?_0x2f6a9f[_0x205e63(0x28b8)][0x0]:null;if(!_0x1cfc57){const _0x270e6b=[],_0xb078d4=[];_0x583104[_0x205e63(0x1fa6)][_0x205e63(0x28b8)][_0x205e63(0x1397)](function(_0x28f1dc){const _0x37134a=_0x205e63,_0x2d8776=_0x28c606()['find'](_0x583104['projects'],{'id':Number(_0x28f1dc[_0x37134a(0x1e45)])});_0xb078d4[_0x37134a(0x1954)](_0x2d8776);});for(let _0x24f6f6=0x0;_0x24f6f6<_0x583104[_0x205e63(0x1d73)][_0x205e63(0x1b9e)];_0x24f6f6++){const _0x29c51b=_0x28c606()[_0x205e63(0x25f8)](_0xb078d4,{'id':_0x583104['projects'][_0x24f6f6]['id']});_0x29c51b&&(_0x583104['projects'][_0x24f6f6][_0x205e63(0xd4f)]=![],_0x270e6b['push'](_0x583104['projects'][_0x24f6f6]));}_0x583104[_0x205e63(0x1d73)]=_0x270e6b;}else{if(!_0x1cfc57[_0x205e63(0x11da)])return _0x242f80['userProfileResource'][_0x205e63(0x896)]({'sectionId':_0x1cfc57['id']})[_0x205e63(0x15e7)][_0x205e63(0x64a)](function(_0x22386e){const _0x375d75=_0x205e63,_0xa45264=_0x28c606()[_0x375d75(0x1de5)](_0x22386e[_0x375d75(0x28b8)],function(_0xc7dcb6){const _0xf074b4=_0x375d75;return _0x28c606()[_0xf074b4(0x27bc)](_0x583104[_0xf074b4(0x1d73)],{'id':_0xc7dcb6[_0xf074b4(0x145)]});});let _0x58a336=null;_0x58a336=[],_0x583104['ivrCampaigns'][_0x375d75(0x28b8)]['forEach'](function(_0x4d732e){const _0x38b448=_0x375d75,_0xbc96cf=_0x28c606()[_0x38b448(0x27bc)](_0x583104[_0x38b448(0x1d73)],{'id':Number(_0x4d732e[_0x38b448(0x1e45)])});_0x58a336[_0x38b448(0x1954)](_0xbc96cf);}),!_0x28c606()['isEmpty'](_0x58a336)&&_0x58a336[_0x375d75(0x1397)](function(_0xab7775){const _0x18e2f6=_0x375d75;if(!_0x28c606()[_0x18e2f6(0x25f8)](_0xa45264,['id',_0xab7775['id']])){const _0x487918=_0x28c606()[_0x18e2f6(0x27bc)](_0x583104['projects'],{'id':_0xab7775['id']});_0x487918['canSelect']=![],_0xa45264[_0x18e2f6(0x1954)](_0x487918);}}),_0x583104[_0x375d75(0x1d73)]=_0xa45264;});}})[_0x5f3a18(0x20cd)](function(_0x1582e7){const _0xd353bd=_0x5f3a18;_0x5c0ad6['error']({'title':_0x1582e7[_0xd353bd(0x10b3)]?'API:'+_0x1582e7['status']+'\x20-\x20'+_0x1582e7[_0xd353bd(0x2115)]:_0xd353bd(0x2786),'msg':_0x1582e7['data']?JSON['stringify'](_0x1582e7['data']):_0x1582e7[_0xd353bd(0x2915)]()});}),_0x4f72c2[_0x5f3a18(0x4de)]('admin')?_0x242f80[_0x5f3a18(0xcfd)][_0x5f3a18(0x896)]({'fields':_0x5f3a18(0x1427),'sort':_0x5f3a18(0x2494),'IntervalId':'null'})[_0x5f3a18(0x15e7)]['then'](function(_0x1f5a59){const _0x2ec75d=_0x5f3a18;_0x583104[_0x2ec75d(0xcfd)]=_0x1f5a59[_0x2ec75d(0x28b8)]||[];})[_0x5f3a18(0x20cd)](function(_0x32ed06){const _0x426ddc=_0x5f3a18;_0x5c0ad6[_0x426ddc(0x1bd0)]({'title':_0x32ed06[_0x426ddc(0x10b3)]?_0x426ddc(0x575)+_0x32ed06[_0x426ddc(0x10b3)]+_0x426ddc(0x21db)+_0x32ed06[_0x426ddc(0x2115)]:'SYSTEM:GET_INTERVAL','msg':_0x32ed06[_0x426ddc(0x1c52)]?JSON['stringify'](_0x32ed06[_0x426ddc(0x1c52)]):_0x32ed06['toString']()});}):_0x242f80[_0x5f3a18(0xcfd)][_0x5f3a18(0x896)]({'fields':'id,name','sort':_0x5f3a18(0x2494),'IntervalId':_0x5f3a18(0x8f1)})['$promise']['then'](function(_0x4927ec){const _0x545c1e=_0x5f3a18;_0x583104[_0x545c1e(0xcfd)]=_0x4927ec[_0x545c1e(0x28b8)]||[];})[_0x5f3a18(0x64a)](function(){const _0x3af85f=_0x5f3a18;return _0x242f80['userProfileSection'][_0x3af85f(0x896)]({'userProfileId':_0x583104[_0x3af85f(0x1d3d)]['userProfileId'],'sectionId':0x3ec})[_0x3af85f(0x15e7)];})[_0x5f3a18(0x64a)](function(_0x58cb44){const _0x4f422c=_0x5f3a18,_0x54e11c=_0x58cb44&&_0x58cb44[_0x4f422c(0x28b8)]?_0x58cb44[_0x4f422c(0x28b8)][0x0]:null;if(!_0x54e11c){const _0x402269=[];let _0x1172f4=null;_0x583104[_0x4f422c(0x15aa)]&&(_0x1172f4=_0x28c606()['find'](_0x583104[_0x4f422c(0xcfd)],{'id':Number(_0x583104[_0x4f422c(0x15aa)][_0x4f422c(0xb71)])}));for(let _0x4a9e5f=0x0;_0x4a9e5f<_0x583104[_0x4f422c(0xcfd)][_0x4f422c(0x1b9e)];_0x4a9e5f++){_0x1172f4&&_0x583104['interval'][_0x4a9e5f]['id']===_0x1172f4['id']&&(_0x583104[_0x4f422c(0xcfd)][_0x4a9e5f][_0x4f422c(0xd4f)]=![],_0x402269['push'](_0x583104[_0x4f422c(0xcfd)][_0x4a9e5f]));}_0x583104[_0x4f422c(0xcfd)]=_0x402269;}else{if(!_0x54e11c[_0x4f422c(0x11da)])return _0x242f80['userProfileResource']['get']({'sectionId':_0x54e11c['id']})['$promise'][_0x4f422c(0x64a)](function(_0x4e9d0c){const _0x328b8e=_0x4f422c,_0x5956a0=_0x28c606()[_0x328b8e(0x1de5)](_0x4e9d0c[_0x328b8e(0x28b8)],function(_0x3c90c0){const _0x5db2e6=_0x328b8e;return _0x28c606()[_0x5db2e6(0x27bc)](_0x583104[_0x5db2e6(0xcfd)],{'id':_0x3c90c0[_0x5db2e6(0x145)]});});let _0x526cb5=null;_0x583104[_0x328b8e(0x15aa)]&&(_0x526cb5=_0x28c606()[_0x328b8e(0x27bc)](_0x583104[_0x328b8e(0xcfd)],{'id':Number(_0x583104[_0x328b8e(0x15aa)]['IntervalId'])}));if(_0x526cb5&&!_0x28c606()[_0x328b8e(0x25f8)](_0x5956a0,['id',_0x526cb5['id']])){const _0x1d9ddb=_0x28c606()[_0x328b8e(0x27bc)](_0x583104[_0x328b8e(0xcfd)],{'id':_0x526cb5['id']});_0x1d9ddb['canSelect']=![],_0x5956a0[_0x328b8e(0x1954)](_0x1d9ddb);}_0x583104[_0x328b8e(0xcfd)]=_0x5956a0;});}})['catch'](function(_0x4592bc){const _0x237309=_0x5f3a18;_0x5c0ad6[_0x237309(0x1bd0)]({'title':_0x4592bc[_0x237309(0x10b3)]?'API:'+_0x4592bc[_0x237309(0x10b3)]+_0x237309(0x21db)+_0x4592bc['statusText']:_0x237309(0x314),'msg':_0x4592bc['data']?JSON[_0x237309(0x2317)](_0x4592bc[_0x237309(0x1c52)]):_0x4592bc[_0x237309(0x2915)]()});});function _0x34e952(_0x1fb147){const _0x3422a9=_0x5f3a18;_0x37445c['go'](_0x3422a9(0x2002),{'id':_0x1fb147['id'],'ivrCampaign':_0x1fb147,'crudPermissions':_0x583104[_0x3422a9(0x402)]});}function _0x5bf48f(_0x69ab85,_0x4ffa76){const _0x51f49f=_0x5f3a18;_0x531e3e[_0x51f49f(0xa60)]({'controller':_0x51f49f(0x15b7),'controllerAs':'vm','templateUrl':_0x59d836,'parent':angular[_0x51f49f(0x1f81)](_0x17429a[_0x51f49f(0xb49)]),'targetEvent':_0x4ffa76,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x69ab85,'ivrCampaigns':_0x583104[_0x51f49f(0x1fa6)]?_0x583104[_0x51f49f(0x1fa6)][_0x51f49f(0x28b8)]:[],'crudPermissions':_0x583104[_0x51f49f(0x402)]}});}function _0x1b3f0d(_0x30615a,_0x59c8fc){const _0x32e627=_0x5f3a18;_0x531e3e[_0x32e627(0xa60)]({'controller':'IvrCampaignlistaddController','controllerAs':'vm','templateUrl':_0x303488,'parent':angular[_0x32e627(0x1f81)](_0x17429a[_0x32e627(0xb49)]),'targetEvent':_0x59c8fc,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x30615a,'ivrCampaigns':_0x583104[_0x32e627(0x1fa6)]?_0x583104[_0x32e627(0x1fa6)][_0x32e627(0x28b8)]:[],'crudPermissions':_0x583104[_0x32e627(0x402)]}});}function _0x34e121(_0x44899e,_0x424e58){const _0x43c275=_0x5f3a18;_0x531e3e[_0x43c275(0xa60)]({'controller':'IvrCampaignblacklistaddController','controllerAs':'vm','templateUrl':_0x5330a1,'parent':angular[_0x43c275(0x1f81)](_0x17429a[_0x43c275(0xb49)]),'targetEvent':_0x424e58,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x44899e,'ivrCampaigns':_0x583104[_0x43c275(0x1fa6)]?_0x583104[_0x43c275(0x1fa6)][_0x43c275(0x28b8)]:[],'crudPermissions':_0x583104[_0x43c275(0x402)]}});}function _0x287c63(_0x5d21b6,_0x4bc9fc){const _0x40ef3d=_0x5f3a18,_0x4199ae=_0x531e3e['confirm']()[_0x40ef3d(0x2021)](_0x40ef3d(0x1231)+_0x28c606()[_0x40ef3d(0xc01)](_0x40ef3d(0x15aa))+'?')[_0x40ef3d(0x33a)](_0x40ef3d(0x50b)+(_0x5d21b6[_0x40ef3d(0x2494)]||_0x40ef3d(0x15aa))+_0x40ef3d(0x26d0)+'\x20will\x20be\x20deleted.')[_0x40ef3d(0x213e)]('delete\x20ivrCampaign')[_0x40ef3d(0x2283)](_0x4bc9fc)['ok']('OK')[_0x40ef3d(0x101a)](_0x40ef3d(0x18fd));_0x531e3e[_0x40ef3d(0xa60)](_0x4199ae)[_0x40ef3d(0x64a)](function(){_0x1f3190(_0x5d21b6);},function(){const _0x21de30=_0x40ef3d;console[_0x21de30(0x9b4)](_0x21de30(0x18fd));});}function _0x36e299(){const _0xf2f7f4=_0x5f3a18;if(_0x4f72c2['hasRole']('admin'))_0x37445c['go'](_0xf2f7f4(0x5bf),{});else return _0x242f80[_0xf2f7f4(0x16b2)][_0xf2f7f4(0x896)]({'userProfileId':_0x4f72c2[_0xf2f7f4(0x808)]()[_0xf2f7f4(0x21ac)],'sectionId':0x5e6})[_0xf2f7f4(0x15e7)][_0xf2f7f4(0x64a)](function(_0x180ba0){const _0x11b3f5=_0xf2f7f4,_0x377434=_0x180ba0&&_0x180ba0['rows']?_0x180ba0[_0x11b3f5(0x28b8)][0x0]:null;_0x377434&&_0x377434['enabled']?_0x37445c['go'](_0x11b3f5(0x5bf),{}):_0x5c0ad6[_0x11b3f5(0x772)]({'title':_0xc1e822[_0x11b3f5(0x2292)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0xc1e822[_0x11b3f5(0x2292)](_0x11b3f5(0x229))});})[_0xf2f7f4(0x20cd)](function(_0xa228cf){const _0x155703=_0xf2f7f4;_0x5c0ad6[_0x155703(0x1bd0)]({'title':_0xa228cf[_0x155703(0x10b3)]?_0x155703(0x575)+_0xa228cf['status']+'\x20-\x20'+_0xa228cf[_0x155703(0x2115)]:_0x155703(0x942),'msg':_0xa228cf[_0x155703(0x10b3)]?JSON[_0x155703(0x2317)](_0xa228cf['data']):_0xa228cf['toString']()});});}let _0x5de8a2=!![],_0x10b5f4=0x1;_0x3fb147['$watch'](_0x5f3a18(0x1cb9),function(_0xde9d07,_0x3fba12){const _0x23def3=_0x5f3a18;_0x5de8a2?_0x8d3153(function(){_0x5de8a2=![];}):(!_0x3fba12&&(_0x10b5f4=_0x583104['query']['page']),_0xde9d07!==_0x3fba12&&(_0x583104[_0x23def3(0x289a)][_0x23def3(0xc72)]=0x1),!_0xde9d07&&(_0x583104[_0x23def3(0x289a)][_0x23def3(0xc72)]=_0x10b5f4),_0x583104[_0x23def3(0x565)]());});function _0x1356dc(_0x2f272e){const _0x2bc999=_0x5f3a18;_0x583104[_0x2bc999(0x1fa6)]=_0x2f272e||{'count':0x0,'rows':[]};}function _0x452b0a(){const _0x242c6b=_0x5f3a18;_0x583104['query']['offset']=(_0x583104[_0x242c6b(0x289a)]['page']-0x1)*_0x583104[_0x242c6b(0x289a)][_0x242c6b(0x25bb)],_0x4f72c2[_0x242c6b(0x4de)]('admin')?_0x583104[_0x242c6b(0x1713)]=_0x242f80[_0x242c6b(0x1aba)][_0x242c6b(0x896)](_0x583104[_0x242c6b(0x289a)],_0x1356dc)[_0x242c6b(0x15e7)]:(_0x583104[_0x242c6b(0x289a)]['id']=_0x583104[_0x242c6b(0x16a8)]['id'],_0x583104['query'][_0x242c6b(0xa21)]=_0x242c6b(0x2894),_0x583104[_0x242c6b(0x1713)]=_0x242f80[_0x242c6b(0x16a8)]['getResources'](_0x583104[_0x242c6b(0x289a)],_0x1356dc)['$promise']);}function _0x5754e9(_0x4d2424,_0x4f78f6){const _0x5ae4=_0x5f3a18;_0x531e3e[_0x5ae4(0xa60)]({'controller':_0x5ae4(0x27e6),'controllerAs':'vm','templateUrl':_0x24210d,'parent':angular[_0x5ae4(0x1f81)](_0x17429a[_0x5ae4(0xb49)]),'targetEvent':_0x4d2424,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x4f78f6,'ivrCampaigns':_0x583104['ivrCampaigns']['rows'],'license':_0x583104[_0x5ae4(0x1947)],'setting':_0x583104[_0x5ae4(0x28d6)],'crudPermissions':_0x583104['crudPermissions']}});}function _0x1f3190(_0xd5b754){const _0x29ac37=_0x5f3a18;_0x242f80[_0x29ac37(0x1aba)][_0x29ac37(0xabd)]({'id':_0xd5b754['id']})[_0x29ac37(0x15e7)]['then'](function(){const _0x4337a3=_0x29ac37;_0x28c606()[_0x4337a3(0x21c7)](_0x583104[_0x4337a3(0x1fa6)][_0x4337a3(0x28b8)],{'id':_0xd5b754['id']}),_0x583104['ivrCampaigns'][_0x4337a3(0xb90)]-=0x1,!_0x583104[_0x4337a3(0x1fa6)][_0x4337a3(0x28b8)][_0x4337a3(0x1b9e)]&&_0x583104['getIvrCampaigns'](),_0x5c0ad6[_0x4337a3(0x1339)]({'title':_0x28c606()['startCase'](_0x4337a3(0x1c9a))+_0x4337a3(0x2502),'msg':_0xd5b754['name']?_0xd5b754[_0x4337a3(0x2494)]+_0x4337a3(0x1fa8):''});})[_0x29ac37(0x20cd)](function(_0x31b6e8){const _0x1bbe38=_0x29ac37;if(_0x31b6e8['data']&&_0x31b6e8[_0x1bbe38(0x1c52)][_0x1bbe38(0xbae)]&&_0x31b6e8['data'][_0x1bbe38(0xbae)][_0x1bbe38(0x1b9e)]){_0x583104['errors']=_0x31b6e8[_0x1bbe38(0x1c52)][_0x1bbe38(0xbae)]||[{'message':_0x31b6e8[_0x1bbe38(0x2915)](),'type':_0x1bbe38(0xfe5)}];for(let _0x1fce6a=0x0;_0x1fce6a<_0x31b6e8['data'][_0x1bbe38(0xbae)]['length'];_0x1fce6a++){_0x5c0ad6['error']({'title':_0x31b6e8[_0x1bbe38(0x1c52)][_0x1bbe38(0xbae)][_0x1fce6a]['type'],'msg':_0x31b6e8[_0x1bbe38(0x1c52)][_0x1bbe38(0xbae)][_0x1fce6a][_0x1bbe38(0x18ca)]});}}else _0x5c0ad6[_0x1bbe38(0x1bd0)]({'title':_0x31b6e8[_0x1bbe38(0x10b3)]?'API:'+_0x31b6e8[_0x1bbe38(0x10b3)]+_0x1bbe38(0x21db)+_0x31b6e8['statusText']:_0x1bbe38(0xfe5),'msg':_0x31b6e8[_0x1bbe38(0x1c52)]?JSON[_0x1bbe38(0x2317)](_0x31b6e8['data'][_0x1bbe38(0x18ca)]):_0x31b6e8[_0x1bbe38(0x18ca)]||_0x31b6e8[_0x1bbe38(0x2915)]()});});}function _0xfa554a(){const _0x2c88af=_0x5f3a18,_0x3194c4=angular[_0x2c88af(0x289e)](_0x583104[_0x2c88af(0x19c5)]);return _0x583104[_0x2c88af(0x19c5)]=[],_0x3194c4;}function _0x4b2bf8(_0x599637){const _0x58011c=_0x5f3a18,_0x332e4b=_0x531e3e['confirm']()[_0x58011c(0x2021)](_0x58011c(0x1b49))[_0x58011c(0x33a)](''+_0x583104[_0x58011c(0x19c5)]['length']+_0x58011c(0x163e)+_0x58011c(0x4b8))[_0x58011c(0x213e)](_0x58011c(0xdef))[_0x58011c(0x2283)](_0x599637)['ok']('OK')[_0x58011c(0x101a)]('CANCEL');_0x531e3e[_0x58011c(0xa60)](_0x332e4b)[_0x58011c(0x64a)](function(){const _0x2ed87d=_0x58011c;_0x583104[_0x2ed87d(0x19c5)][_0x2ed87d(0x1397)](function(_0x175d5a){_0x1f3190(_0x175d5a);}),_0x583104['selectedIvrCampaigns']=[];});}function _0x39e04b(){_0x583104['selectedIvrCampaigns']=[];}function _0x391149(){const _0x4604e5=_0x5f3a18;_0x583104[_0x4604e5(0x19c5)]=_0x583104[_0x4604e5(0x1fa6)]['rows'];}}const _0x1e6c56=_0x577f2f;;_0x3f97fa['$inject']=[_0x49a1e3(0x1674),'$state','$location',_0x49a1e3(0x212a),'$q','$translate',_0x49a1e3(0x680),_0x49a1e3(0x18ae),'queueCampaign',_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x3f97fa(_0xbb3372,_0x5a24ad,_0x2880a8,_0x2ea09e,_0x263e98,_0x29be6f,_0x5eff52,_0x595f7b,_0x41976f,_0x8eb4d5,_0x21021a,_0xf0f5e5,_0x4f20a6,_0x541412){const _0x3ff5ea=_0x49a1e3,_0x1f52c2=this;_0x1f52c2[_0x3ff5ea(0x1d3d)]=_0x21021a[_0x3ff5ea(0x808)](),_0x1f52c2[_0x3ff5ea(0xbae)]=[],_0x1f52c2[_0x3ff5ea(0x28d6)]=_0x4f20a6,_0x1f52c2[_0x3ff5ea(0x1947)]=_0xf0f5e5,_0x1f52c2[_0x3ff5ea(0x402)]=_0x541412,_0x1f52c2[_0x3ff5ea(0x6c2)]={},_0x1f52c2[_0x3ff5ea(0xccc)]=_0x1f52c2[_0x3ff5ea(0x28d6)]&&_0x1f52c2[_0x3ff5ea(0x28d6)][_0x3ff5ea(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1f52c2[_0x3ff5ea(0x2021)]='MOTIONDIALER.EDIT_QUEUECAMPAIGN',_0x1f52c2[_0x3ff5ea(0x279)]=angular['copy'](_0x41976f),_0x1f52c2[_0x3ff5ea(0x18ae)]=_0x595f7b,_0x1f52c2[_0x3ff5ea(0x46b)]=![];!_0x1f52c2[_0x3ff5ea(0x279)]&&(_0x1f52c2[_0x3ff5ea(0x279)]={'dialActive':!![],'type':_0x3ff5ea(0xbce),'dialCheckDuplicateType':'always','dialCutDigit':0x0,'autopause':'no','ringinuse':'no','timeoutrestart':'no','setinterfacevar':'no','setqueuevar':'no','setqueueentryvar':'no','dialOrderByScheduledAt':_0x3ff5ea(0x9a9),'dialGlobalInterval':'07:00-22:00,*,*,*','dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388,'dialMethod':_0x3ff5ea(0x280f),'dialPowerLevel':0x1,'dialPredictiveOptimization':_0x3ff5ea(0x1b45),'dialPredictiveOptimizationPercentage':0x3,'dialPredictiveInterval':0xa,'dialLimitQueue':0x0,'dialRandomLastDigitCallerIdNumber':0x0,'dialOriginateTimeout':0x1e,'dialQueueOptions':_0x3ff5ea(0x455),'dialQueueTimeout':0x3,'strategy':_0x3ff5ea(0x1628),'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},_0x1f52c2[_0x3ff5ea(0x2021)]=_0x3ff5ea(0x24a6),_0x1f52c2['newQueueCampaign']=!![]);_0x1f52c2[_0x3ff5ea(0x153c)]=_0x547412,_0x1f52c2[_0x3ff5ea(0x12dd)]=_0x4917eb,_0x1f52c2[_0x3ff5ea(0x1934)]=_0x1406a4,_0x1f52c2[_0x3ff5ea(0x1605)]=_0x234658,_0x1f52c2[_0x3ff5ea(0x16cb)]=_0x57664e,_0x21021a['hasRole'](_0x3ff5ea(0x333))?_0x8eb4d5['trunk'][_0x3ff5ea(0x896)]({'fields':'id,name','sort':_0x3ff5ea(0x2494)})['$promise'][_0x3ff5ea(0x64a)](function(_0x2285dc){const _0x1d8e18=_0x3ff5ea;_0x1f52c2['trunks']=_0x2285dc[_0x1d8e18(0x28b8)]||[];})[_0x3ff5ea(0x20cd)](function(_0x434e44){const _0x405a9d=_0x3ff5ea;_0x5eff52['error']({'title':_0x434e44[_0x405a9d(0x10b3)]?_0x405a9d(0x575)+_0x434e44[_0x405a9d(0x10b3)]+'\x20-\x20'+_0x434e44[_0x405a9d(0x2115)]:_0x405a9d(0x1d82),'msg':_0x434e44['data']?JSON[_0x405a9d(0x2317)](_0x434e44[_0x405a9d(0x1c52)]):_0x434e44[_0x405a9d(0x2915)]()});}):_0x8eb4d5[_0x3ff5ea(0x4ef)]['get']({'fields':_0x3ff5ea(0x1427),'sort':_0x3ff5ea(0x2494)})[_0x3ff5ea(0x15e7)]['then'](function(_0x43ca2e){const _0x440b98=_0x3ff5ea;_0x1f52c2[_0x440b98(0xe23)]=_0x43ca2e['rows']||[];})[_0x3ff5ea(0x64a)](function(){const _0x39648d=_0x3ff5ea;return _0x8eb4d5[_0x39648d(0x16b2)][_0x39648d(0x896)]({'userProfileId':_0x1f52c2['currentUser'][_0x39648d(0x21ac)],'sectionId':0x3f3})['$promise'];})['then'](function(_0x57efc0){const _0x45496d=_0x3ff5ea,_0x468878=_0x57efc0&&_0x57efc0['rows']?_0x57efc0[_0x45496d(0x28b8)][0x0]:null;if(!_0x468878){const _0x46b6bb=[];let _0x372316=null;_0x1f52c2[_0x45496d(0x279)]&&(_0x372316=_0x28c606()[_0x45496d(0x27bc)](_0x1f52c2['trunks'],{'id':Number(_0x1f52c2[_0x45496d(0x279)][_0x45496d(0x1c2)])}));for(let _0x1c226b=0x0;_0x1c226b<_0x1f52c2[_0x45496d(0xe23)]['length'];_0x1c226b++){_0x372316&&_0x1f52c2[_0x45496d(0xe23)][_0x1c226b]['id']===_0x372316['id']&&(_0x1f52c2[_0x45496d(0xe23)][_0x1c226b]['canSelect']=![],_0x46b6bb[_0x45496d(0x1954)](_0x1f52c2['trunks'][_0x1c226b]));}_0x1f52c2[_0x45496d(0xe23)]=_0x46b6bb;}else{if(!_0x468878[_0x45496d(0x11da)])return _0x8eb4d5['userProfileResource'][_0x45496d(0x896)]({'sectionId':_0x468878['id']})[_0x45496d(0x15e7)][_0x45496d(0x64a)](function(_0x1270d0){const _0x409ddf=_0x45496d,_0x3f669f=_0x28c606()[_0x409ddf(0x1de5)](_0x1270d0[_0x409ddf(0x28b8)],function(_0x308bc8){const _0x2971fa=_0x409ddf;return _0x28c606()[_0x2971fa(0x27bc)](_0x1f52c2[_0x2971fa(0xe23)],{'id':_0x308bc8[_0x2971fa(0x145)]});});let _0x24ba97=null;_0x1f52c2[_0x409ddf(0x279)]&&(_0x24ba97=_0x28c606()['find'](_0x1f52c2[_0x409ddf(0xe23)],{'id':Number(_0x1f52c2[_0x409ddf(0x279)][_0x409ddf(0x1c2)])}));if(_0x24ba97&&!_0x28c606()['some'](_0x3f669f,['id',_0x24ba97['id']])){const _0x439815=_0x28c606()[_0x409ddf(0x27bc)](_0x1f52c2['trunks'],{'id':_0x24ba97['id']});_0x439815[_0x409ddf(0xd4f)]=![],_0x3f669f['push'](_0x439815);}_0x1f52c2[_0x409ddf(0xe23)]=_0x3f669f;});}})[_0x3ff5ea(0x20cd)](function(_0x5eb97f){const _0x536459=_0x3ff5ea;_0x5eff52[_0x536459(0x1bd0)]({'title':_0x5eb97f[_0x536459(0x10b3)]?_0x536459(0x575)+_0x5eb97f[_0x536459(0x10b3)]+_0x536459(0x21db)+_0x5eb97f[_0x536459(0x2115)]:_0x536459(0x89a),'msg':_0x5eb97f[_0x536459(0x1c52)]?JSON[_0x536459(0x2317)](_0x5eb97f[_0x536459(0x1c52)]):_0x5eb97f[_0x536459(0x2915)]()});}),_0x21021a[_0x3ff5ea(0x4de)](_0x3ff5ea(0x333))?_0x8eb4d5[_0x3ff5ea(0xcfd)][_0x3ff5ea(0x896)]({'fields':_0x3ff5ea(0x1427),'sort':_0x3ff5ea(0x2494),'IntervalId':'null'})[_0x3ff5ea(0x15e7)][_0x3ff5ea(0x64a)](function(_0x1e9dd8){const _0x533003=_0x3ff5ea;_0x1f52c2[_0x533003(0xcfd)]=_0x1e9dd8[_0x533003(0x28b8)]||[];})['catch'](function(_0x1ea2d9){const _0x38ab9c=_0x3ff5ea;_0x5eff52[_0x38ab9c(0x1bd0)]({'title':_0x1ea2d9['status']?_0x38ab9c(0x575)+_0x1ea2d9[_0x38ab9c(0x10b3)]+_0x38ab9c(0x21db)+_0x1ea2d9['statusText']:'SYSTEM:GET_INTERVAL','msg':_0x1ea2d9['data']?JSON[_0x38ab9c(0x2317)](_0x1ea2d9[_0x38ab9c(0x1c52)]):_0x1ea2d9[_0x38ab9c(0x2915)]()});}):_0x8eb4d5[_0x3ff5ea(0xcfd)][_0x3ff5ea(0x896)]({'fields':_0x3ff5ea(0x1427),'sort':_0x3ff5ea(0x2494),'IntervalId':_0x3ff5ea(0x8f1)})['$promise'][_0x3ff5ea(0x64a)](function(_0xbb079d){const _0x4b2bff=_0x3ff5ea;_0x1f52c2[_0x4b2bff(0xcfd)]=_0xbb079d[_0x4b2bff(0x28b8)]||[];})[_0x3ff5ea(0x64a)](function(){const _0x2c2540=_0x3ff5ea;return _0x8eb4d5['userProfileSection'][_0x2c2540(0x896)]({'userProfileId':_0x1f52c2[_0x2c2540(0x1d3d)][_0x2c2540(0x21ac)],'sectionId':0x3ec})[_0x2c2540(0x15e7)];})[_0x3ff5ea(0x64a)](function(_0x55883a){const _0x5b27f2=_0x3ff5ea,_0x338f3c=_0x55883a&&_0x55883a[_0x5b27f2(0x28b8)]?_0x55883a[_0x5b27f2(0x28b8)][0x0]:null;if(!_0x338f3c){const _0x51226b=[];let _0x2a2d2f=null;_0x1f52c2[_0x5b27f2(0x279)]&&(_0x2a2d2f=_0x28c606()[_0x5b27f2(0x27bc)](_0x1f52c2['interval'],{'id':Number(_0x1f52c2['queueCampaign']['IntervalId'])}));for(let _0x2d2bf5=0x0;_0x2d2bf5<_0x1f52c2['interval'][_0x5b27f2(0x1b9e)];_0x2d2bf5++){_0x2a2d2f&&_0x1f52c2[_0x5b27f2(0xcfd)][_0x2d2bf5]['id']===_0x2a2d2f['id']&&(_0x1f52c2['interval'][_0x2d2bf5][_0x5b27f2(0xd4f)]=![],_0x51226b[_0x5b27f2(0x1954)](_0x1f52c2['interval'][_0x2d2bf5]));}_0x1f52c2['interval']=_0x51226b;}else{if(!_0x338f3c[_0x5b27f2(0x11da)])return _0x8eb4d5[_0x5b27f2(0x1617)][_0x5b27f2(0x896)]({'sectionId':_0x338f3c['id']})[_0x5b27f2(0x15e7)][_0x5b27f2(0x64a)](function(_0x3f9350){const _0x4730b1=_0x5b27f2,_0x4ca835=_0x28c606()[_0x4730b1(0x1de5)](_0x3f9350[_0x4730b1(0x28b8)],function(_0x10cae3){const _0x3a36cc=_0x4730b1;return _0x28c606()[_0x3a36cc(0x27bc)](_0x1f52c2[_0x3a36cc(0xcfd)],{'id':_0x10cae3[_0x3a36cc(0x145)]});});let _0xf0a729=null;_0x1f52c2['queueCampaign']&&(_0xf0a729=_0x28c606()[_0x4730b1(0x27bc)](_0x1f52c2['interval'],{'id':Number(_0x1f52c2[_0x4730b1(0x279)][_0x4730b1(0xb71)])}));if(_0xf0a729&&!_0x28c606()[_0x4730b1(0x25f8)](_0x4ca835,['id',_0xf0a729['id']])){const _0x3defc2=_0x28c606()[_0x4730b1(0x27bc)](_0x1f52c2[_0x4730b1(0xcfd)],{'id':_0xf0a729['id']});_0x3defc2[_0x4730b1(0xd4f)]=![],_0x4ca835[_0x4730b1(0x1954)](_0x3defc2);}_0x1f52c2['interval']=_0x4ca835;});}})[_0x3ff5ea(0x20cd)](function(_0x3c5086){const _0x17472d=_0x3ff5ea;_0x5eff52[_0x17472d(0x1bd0)]({'title':_0x3c5086[_0x17472d(0x10b3)]?_0x17472d(0x575)+_0x3c5086[_0x17472d(0x10b3)]+'\x20-\x20'+_0x3c5086[_0x17472d(0x2115)]:_0x17472d(0x314),'msg':_0x3c5086['data']?JSON[_0x17472d(0x2317)](_0x3c5086['data']):_0x3c5086[_0x17472d(0x2915)]()});});function _0x547412(){const _0x418f77=_0x3ff5ea;_0x1f52c2[_0x418f77(0xbae)]=[],_0x8eb4d5[_0x418f77(0x178b)][_0x418f77(0x2479)](_0x1f52c2[_0x418f77(0x279)])['$promise'][_0x418f77(0x64a)](function(_0x400106){const _0x1282b1=_0x418f77;_0x1f52c2['queueCampaigns'][_0x1282b1(0x1891)](_0x400106[_0x1282b1(0x14f8)]()),_0x5eff52[_0x1282b1(0x1339)]({'title':_0x1282b1(0x1d10),'msg':_0x1f52c2['queueCampaign'][_0x1282b1(0x2494)]?_0x1f52c2['queueCampaign'][_0x1282b1(0x2494)]+_0x1282b1(0x258d):''}),_0x57664e(_0x400106);})[_0x418f77(0x20cd)](function(_0x1f6d77){const _0x310837=_0x418f77;if(_0x1f6d77['data']&&_0x1f6d77[_0x310837(0x1c52)][_0x310837(0xbae)]&&_0x1f6d77[_0x310837(0x1c52)][_0x310837(0xbae)][_0x310837(0x1b9e)]){_0x1f52c2[_0x310837(0xbae)]=_0x1f6d77[_0x310837(0x1c52)][_0x310837(0xbae)]||[{'message':_0x1f6d77[_0x310837(0x2915)](),'type':_0x310837(0x1bef)}];for(let _0x490295=0x0;_0x490295<_0x1f6d77[_0x310837(0x1c52)]['errors'][_0x310837(0x1b9e)];_0x490295+=0x1){_0x5eff52[_0x310837(0x1bd0)]({'title':_0x1f6d77[_0x310837(0x1c52)][_0x310837(0xbae)][_0x490295][_0x310837(0x2185)],'msg':_0x1f6d77['data']['errors'][_0x490295]['message']});}}else _0x5eff52[_0x310837(0x1bd0)]({'title':_0x1f6d77[_0x310837(0x10b3)]?_0x310837(0x575)+_0x1f6d77[_0x310837(0x10b3)]+_0x310837(0x21db)+_0x1f6d77['statusText']:_0x310837(0x1bef),'msg':_0x1f6d77[_0x310837(0x1c52)]?JSON[_0x310837(0x2317)](_0x1f6d77[_0x310837(0x1c52)][_0x310837(0x18ca)]):_0x1f6d77[_0x310837(0x2915)]()});});}function _0x4917eb(){const _0x53f378=_0x3ff5ea;_0x1f52c2[_0x53f378(0xbae)]=[],_0x8eb4d5['voiceQueue'][_0x53f378(0x2603)]({'id':_0x1f52c2[_0x53f378(0x279)]['id']},_0x1f52c2['queueCampaign'])[_0x53f378(0x15e7)][_0x53f378(0x64a)](function(_0x1d33ff){const _0x18d68c=_0x53f378,_0x30e15f=_0x28c606()[_0x18d68c(0x27bc)](_0x1f52c2[_0x18d68c(0x18ae)],{'id':_0x1d33ff['id']});_0x30e15f&&_0x28c606()[_0x18d68c(0x14fe)](_0x30e15f,_0x28c606()['pick'](_0x1d33ff[_0x18d68c(0x14f8)](),_0x28c606()[_0x18d68c(0x1ec6)](_0x30e15f))),_0x5eff52[_0x18d68c(0x1339)]({'title':'QueueCampaign\x20properly\x20saved!','msg':_0x1f52c2[_0x18d68c(0x279)][_0x18d68c(0x2494)]?_0x1f52c2[_0x18d68c(0x279)][_0x18d68c(0x2494)]+'\x20has\x20been\x20saved!':''}),_0x57664e(_0x1d33ff);})[_0x53f378(0x20cd)](function(_0x11a470){const _0x1a1bf5=_0x53f378;if(_0x11a470[_0x1a1bf5(0x1c52)]&&_0x11a470[_0x1a1bf5(0x1c52)][_0x1a1bf5(0xbae)]&&_0x11a470[_0x1a1bf5(0x1c52)][_0x1a1bf5(0xbae)][_0x1a1bf5(0x1b9e)]){_0x1f52c2['errors']=_0x11a470[_0x1a1bf5(0x1c52)][_0x1a1bf5(0xbae)]||[{'message':_0x11a470[_0x1a1bf5(0x2915)](),'type':'api.voiceQueue.update'}];for(let _0x46389f=0x0;_0x46389f<_0x11a470[_0x1a1bf5(0x1c52)][_0x1a1bf5(0xbae)][_0x1a1bf5(0x1b9e)];_0x46389f++){_0x5eff52[_0x1a1bf5(0x1bd0)]({'title':_0x11a470[_0x1a1bf5(0x1c52)][_0x1a1bf5(0xbae)][_0x46389f][_0x1a1bf5(0x2185)],'msg':_0x11a470[_0x1a1bf5(0x1c52)]['errors'][_0x46389f][_0x1a1bf5(0x18ca)]});}}else _0x5eff52[_0x1a1bf5(0x1bd0)]({'title':_0x11a470['status']?_0x1a1bf5(0x575)+_0x11a470[_0x1a1bf5(0x10b3)]+'\x20-\x20'+_0x11a470[_0x1a1bf5(0x2115)]:'api.voiceQueue.update','msg':_0x11a470[_0x1a1bf5(0x1c52)]?JSON[_0x1a1bf5(0x2317)](_0x11a470[_0x1a1bf5(0x1c52)][_0x1a1bf5(0x18ca)]):_0x11a470['toString']()});});}function _0x1406a4(_0x383feb){const _0x33cb28=_0x3ff5ea;_0x1f52c2[_0x33cb28(0xbae)]=[];const _0x513bb4=_0x2ea09e['confirm']()[_0x33cb28(0x2021)](_0x33cb28(0x103a))[_0x33cb28(0x12b8)](_0x33cb28(0x1045))[_0x33cb28(0x213e)](_0x33cb28(0x1960))['ok'](_0x33cb28(0x2664))[_0x33cb28(0x101a)](_0x33cb28(0x1dc6))['targetEvent'](_0x383feb);_0x2ea09e[_0x33cb28(0xa60)](_0x513bb4)[_0x33cb28(0x64a)](function(){const _0x53ba57=_0x33cb28;_0x8eb4d5[_0x53ba57(0x178b)][_0x53ba57(0xabd)]({'id':_0x1f52c2[_0x53ba57(0x279)]['id']})[_0x53ba57(0x15e7)][_0x53ba57(0x64a)](function(){const _0x590a67=_0x53ba57;_0x28c606()[_0x590a67(0x21c7)](_0x1f52c2['queueCampaigns'],{'id':_0x1f52c2['queueCampaign']['id']}),_0x5eff52['success']({'title':'QueueCampaign\x20properly\x20deleted!','msg':(_0x1f52c2[_0x590a67(0x279)][_0x590a67(0x2494)]||_0x590a67(0x279))+_0x590a67(0x1fa8)}),_0x57664e(_0x1f52c2['queueCampaign']);})[_0x53ba57(0x20cd)](function(_0x22efc4){const _0x4e266c=_0x53ba57;if(_0x22efc4['data']&&_0x22efc4[_0x4e266c(0x1c52)][_0x4e266c(0xbae)]&&_0x22efc4['data'][_0x4e266c(0xbae)][_0x4e266c(0x1b9e)]){_0x1f52c2[_0x4e266c(0xbae)]=_0x22efc4['data'][_0x4e266c(0xbae)]||[{'message':_0x22efc4[_0x4e266c(0x2915)](),'type':_0x4e266c(0x117b)}];for(let _0x413732=0x0;_0x413732<_0x22efc4[_0x4e266c(0x1c52)][_0x4e266c(0xbae)][_0x4e266c(0x1b9e)];_0x413732++){_0x5eff52[_0x4e266c(0x1bd0)]({'title':_0x22efc4[_0x4e266c(0x1c52)][_0x4e266c(0xbae)][_0x413732]['type'],'msg':_0x22efc4['data'][_0x4e266c(0xbae)][_0x413732][_0x4e266c(0x18ca)]});}}else _0x5eff52[_0x4e266c(0x1bd0)]({'title':_0x22efc4[_0x4e266c(0x10b3)]?_0x4e266c(0x575)+_0x22efc4[_0x4e266c(0x10b3)]+'\x20-\x20'+_0x22efc4[_0x4e266c(0x2115)]:_0x4e266c(0x117b),'msg':_0x22efc4[_0x4e266c(0x1c52)]?JSON[_0x4e266c(0x2317)](_0x22efc4[_0x4e266c(0x1c52)][_0x4e266c(0x18ca)]):_0x22efc4[_0x4e266c(0x18ca)]||_0x22efc4[_0x4e266c(0x2915)]()});});},function(){});}function _0x234658(_0x3014a9){return _0x3014a9===null?undefined:new Date(_0x3014a9);}function _0x57664e(_0x467a62){_0x2ea09e['hide'](_0x467a62);}}const _0x1fed6b=_0x3f97fa;;_0x58a5e7[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0xa19),_0x49a1e3(0x279),_0x49a1e3(0x18ae),_0x49a1e3(0x252e),_0x49a1e3(0x298c),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x58a5e7(_0x4c863a,_0x1de3fc,_0x842d2f,_0x29efa7,_0x2c7716,_0x27857a,_0x3c0eeb,_0x52ce32,_0x18558e,_0x426a97){const _0xc09d63=_0x49a1e3,_0x48be19=this;_0x48be19[_0xc09d63(0x1d3d)]=_0x18558e[_0xc09d63(0x808)](),_0x48be19[_0xc09d63(0x279)]=_0x2c7716,_0x48be19['crudPermissions']=_0x426a97,_0x48be19[_0xc09d63(0x70f)]=0x0,_0x48be19['realtime']=_0x3c0eeb,_0x48be19['items']=[],_0x48be19[_0xc09d63(0x13d1)]=[],_0x48be19[_0xc09d63(0x1f4f)]=[],_0x48be19[_0xc09d63(0x206b)]=[],_0x48be19[_0xc09d63(0x24e1)]=[],_0x48be19[_0xc09d63(0xe9e)]=![],_0x48be19[_0xc09d63(0x2483)]=_0x12a513,_0x48be19[_0xc09d63(0x4c4)]=_0x1425dc,_0x48be19[_0xc09d63(0x16cb)]=_0x352082,_0x48be19[_0xc09d63(0x1eeb)]={'readOnly':!_0x48be19[_0xc09d63(0x402)][_0xc09d63(0xd86)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0xc09d63(0x15c),'line2':[_0xc09d63(0x2494),_0xc09d63(0xe2f)],'line3':_0xc09d63(0x70f),'labelAll':_0x52ce32[_0xc09d63(0x2292)]('APP.ALL_AGENTS'),'labelSelected':_0x52ce32[_0xc09d63(0x2292)](_0xc09d63(0xcf8)),'transferCallback':function(_0x3f28d4,_0x738e5){const _0x5f0224=_0xc09d63;_0x738e5?_0x3f28d4[_0x5f0224(0x1397)](function(_0x2a5921){const _0x185eac=_0x5f0224;_0x2a5921[_0x185eac(0x70f)]=undefined;}):_0x3f28d4[_0x5f0224(0x1397)](function(_0x522fcd){const _0x51282f=_0x5f0224;_0x522fcd['penalty']=_0x51282f(0xcff)+_0x48be19[_0x51282f(0x70f)];});const _0x3ff325=_0x28c606()[_0x5f0224(0x9a2)](_0x48be19['startingSelectedItems'],_0x48be19[_0x5f0224(0x1f4f)],function(_0x3d3f16,_0x4bdab4){const _0x57a283=_0x5f0224;return _0x3d3f16['id']===_0x4bdab4['id']&&_0x3d3f16[_0x57a283(0x70f)]===_0x4bdab4['penalty'];});_0x48be19[_0x5f0224(0xe9e)]=_0x28c606()['isEmpty'](_0x3ff325)?![]:!![];}};function _0x12a513(){const _0x4ec3c8=_0xc09d63;return _0x18558e[_0x4ec3c8(0x4de)](_0x4ec3c8(0x333))?_0x173d1e()[_0x4ec3c8(0x20cd)](function(_0x14793a){const _0x2a3216=_0x4ec3c8;_0x842d2f['error']({'title':_0x14793a[_0x2a3216(0x10b3)]?'API:'+_0x14793a[_0x2a3216(0x10b3)]+'\x20-\x20'+_0x14793a['statusText']:_0x2a3216(0x554),'msg':_0x14793a[_0x2a3216(0x10b3)]?JSON['stringify'](_0x14793a[_0x2a3216(0x1c52)]):_0x14793a['toString']()});}):_0x2cdc1d()[_0x4ec3c8(0x64a)](function(_0x103fdf){return _0x48be19['section']=_0x103fdf,_0x173d1e();})[_0x4ec3c8(0x20cd)](function(_0x1fa6c2){const _0x49d26c=_0x4ec3c8;_0x842d2f[_0x49d26c(0x1bd0)]({'title':_0x1fa6c2['status']?_0x49d26c(0x575)+_0x1fa6c2['status']+_0x49d26c(0x21db)+_0x1fa6c2[_0x49d26c(0x2115)]:'SYSTEM:GET_AGENTS','msg':_0x1fa6c2['status']?JSON[_0x49d26c(0x2317)](_0x1fa6c2[_0x49d26c(0x1c52)]):_0x1fa6c2[_0x49d26c(0x2915)]()});});}function _0x2cdc1d(){return _0x1de3fc(function(_0x1e18bb,_0x56cb3f){const _0x2e7d4d=a0_0x4127;_0x29efa7[_0x2e7d4d(0x16b2)][_0x2e7d4d(0x896)]({'userProfileId':_0x48be19[_0x2e7d4d(0x1d3d)]['userProfileId'],'name':_0x2e7d4d(0x2132)})[_0x2e7d4d(0x15e7)][_0x2e7d4d(0x64a)](function(_0x1547d2){const _0x111e3c=_0x2e7d4d,_0x342e97=_0x1547d2&&_0x1547d2[_0x111e3c(0x28b8)]?_0x1547d2['rows'][0x0]:null;_0x1e18bb(_0x342e97);})[_0x2e7d4d(0x20cd)](function(_0x479173){_0x56cb3f(_0x479173);});});}function _0x173d1e(){return _0x1de3fc(function(_0x1514a4,_0x4f93cc){const _0x10c113=a0_0x4127;return _0x5998bf()[_0x10c113(0x64a)](function(_0x1ef377){const _0x4256b2=_0x10c113;return _0x48be19[_0x4256b2(0x23cb)]=_0x1ef377['rows']?_0x1ef377[_0x4256b2(0x28b8)]:[],_0x18558e[_0x4256b2(0x4de)](_0x4256b2(0x333))?_0x1ef377:_0x48be19[_0x4256b2(0xa21)]?_0x48be19[_0x4256b2(0xa21)]['autoAssociation']?_0x1ef377:_0x532292():null;})[_0x10c113(0x64a)](function(_0x10f729){const _0x72c9ee=_0x10c113,_0x364c6e=_0x10f729&&_0x10f729[_0x72c9ee(0x28b8)]?_0x10f729['rows']:[];return _0x48be19['allowedItems']=_0x28c606()[_0x72c9ee(0x1de5)](_0x364c6e,function(_0x4921c2){const _0x229e7e=_0x72c9ee;return _0x28c606()['find'](_0x48be19[_0x229e7e(0x23cb)],{'id':_0x18558e[_0x229e7e(0x4de)](_0x229e7e(0x333))||_0x48be19[_0x229e7e(0xa21)][_0x229e7e(0x11da)]?_0x4921c2['id']:_0x4921c2[_0x229e7e(0x145)]});}),_0x48be19[_0x72c9ee(0x206b)]=angular[_0x72c9ee(0x289e)](_0x48be19['allowedItems']),_0x48be19[_0x72c9ee(0x23cb)][_0x72c9ee(0x1397)](function(_0x1401f4){const _0x1b0c90=_0x72c9ee,_0x3b8d9e=_0x28c606()[_0x1b0c90(0x27bc)](_0x48be19[_0x1b0c90(0x13d1)],{'id':_0x1401f4['id']});_0x18558e[_0x1b0c90(0x4de)](_0x1b0c90(0x333))?_0x1401f4['isValid']=!![]:_0x1401f4[_0x1b0c90(0x6f9)]=typeof _0x3b8d9e!=='undefined'?!![]:![];}),_0x59177e();})['then'](function(_0x34bd87){const _0xf9b7dd=_0x10c113,_0xa4444e=_0x34bd87&&_0x34bd87[_0xf9b7dd(0x28b8)]?_0x34bd87['rows']:[];_0x48be19[_0xf9b7dd(0x1f4f)]=_0x28c606()[_0xf9b7dd(0x1de5)](_0xa4444e,function(_0x63620a){const _0x5c7d1e=_0xf9b7dd,_0x2189d2=_0x28c606()[_0x5c7d1e(0x27bc)](_0x48be19[_0x5c7d1e(0x23cb)],{'id':_0x63620a['id']});return _0x2189d2['penalty']=_0x63620a[_0x5c7d1e(0x5f0)]?_0x5c7d1e(0xcff)+_0x63620a['UserVoiceQueue'][_0x5c7d1e(0x70f)]:'',_0x2189d2[_0x5c7d1e(0xe2f)]=typeof _0x63620a[_0x5c7d1e(0xe2f)]!==_0x5c7d1e(0x19a1)?'<'+_0x63620a[_0x5c7d1e(0xe2f)]+'>':'',_0x2189d2;}),_0x48be19[_0xf9b7dd(0x24e1)]=angular['copy'](_0x48be19[_0xf9b7dd(0x1f4f)]),_0x48be19[_0xf9b7dd(0x1eeb)]['selectedItems']=_0x48be19[_0xf9b7dd(0x1f4f)],_0x48be19[_0xf9b7dd(0x1eeb)][_0xf9b7dd(0x23cb)]=_0x28c606()['differenceBy'](_0x48be19['allowedItems'],_0x48be19[_0xf9b7dd(0x1eeb)]['selectedItems'],'id'),_0x1514a4();})[_0x10c113(0x20cd)](function(_0x57c287){_0x4f93cc(_0x57c287);});});}function _0x532292(){return _0x1de3fc(function(_0x13e559,_0x59f2da){const _0x206f40=a0_0x4127;return _0x29efa7[_0x206f40(0x1617)][_0x206f40(0x896)]({'sectionId':_0x48be19[_0x206f40(0xa21)]['id'],'nolimit':!![]})[_0x206f40(0x15e7)][_0x206f40(0x64a)](function(_0x37d611){_0x13e559(_0x37d611);})['catch'](function(_0x57558b){_0x59f2da(_0x57558b);});});}function _0x59177e(){return _0x1de3fc(function(_0x8d0798,_0x12d196){const _0x1a1f9d=a0_0x4127;return _0x29efa7[_0x1a1f9d(0x178b)]['getAgents']({'id':_0x48be19['queueCampaign']['id'],'fields':_0x1a1f9d(0x2105),'nolimit':!![],'role':_0x1a1f9d(0x11ae)})['$promise'][_0x1a1f9d(0x64a)](function(_0x252ecb){_0x8d0798(_0x252ecb);})[_0x1a1f9d(0x20cd)](function(_0x9b25ae){_0x12d196(_0x9b25ae);});});}function _0x5998bf(){return _0x1de3fc(function(_0x2631f8,_0x4fc7c7){const _0x8d51b9=a0_0x4127;return _0x29efa7['user'][_0x8d51b9(0x896)]({'fields':_0x8d51b9(0x2105),'nolimit':!![],'role':_0x8d51b9(0x11ae)})[_0x8d51b9(0x15e7)]['then'](function(_0x3c46dc){_0x2631f8(_0x3c46dc);})[_0x8d51b9(0x20cd)](function(_0xb3b506){_0x4fc7c7(_0xb3b506);});});}function _0x54bc8f(_0x31c7a5){return _0x1de3fc(function(_0x273a0e,_0x287019){const _0x306f06=a0_0x4127;if(_0x28c606()['isEmpty'](_0x31c7a5))_0x273a0e();else{const _0x1303ad=[],_0x46ea90=_0x28c606()[_0x306f06(0x156d)](_0x31c7a5,_0x306f06(0x70f));for(let _0x33ec2f=0x0;_0x33ec2f'+_0x159fce(0x4b8))['ariaLabel'](_0x159fce(0x1ab5))['targetEvent'](_0x52df3a)['ok']('OK')[_0x159fce(0x101a)]('CANCEL');_0x593f35[_0x159fce(0xa60)](_0x12dcaf)[_0x159fce(0x64a)](function(){_0x5b91eb(_0x4f5316);},function(){const _0x1a950e=_0x159fce;console[_0x1a950e(0x9b4)]('CANCEL');});}function _0x1601d3(_0x539d85){_0x2408cb['queueCampaignHopperBlacks']=_0x539d85||{'count':0x0,'rows':[]};}function _0x4781a0(){const _0x404754=_0x3edecd;_0x2408cb[_0x404754(0x289a)][_0x404754(0x24f9)]=(_0x2408cb[_0x404754(0x289a)][_0x404754(0xc72)]-0x1)*_0x2408cb['query']['limit'],_0x2408cb['promise']=_0x54271d[_0x404754(0x178b)][_0x404754(0x720)](_0x2408cb[_0x404754(0x289a)],_0x1601d3)[_0x404754(0x15e7)];}function _0x5b91eb(_0x3657b9){const _0x3cf1a5=_0x3edecd;_0x54271d[_0x3cf1a5(0x2220)]['delete']({'id':_0x3657b9['id']})[_0x3cf1a5(0x15e7)][_0x3cf1a5(0x64a)](function(){const _0x12a584=_0x3cf1a5;_0x28c606()['remove'](_0x2408cb[_0x12a584(0x1592)][_0x12a584(0x28b8)],{'id':_0x3657b9['id']}),_0x2408cb['queueCampaignHopperBlacks'][_0x12a584(0xb90)]-=0x1,!_0x2408cb[_0x12a584(0x1592)][_0x12a584(0x28b8)][_0x12a584(0x1b9e)]&&_0x4781a0(),_0x28a153[_0x12a584(0x1339)]({'title':_0x12a584(0x2710),'msg':_0x3657b9[_0x12a584(0x2494)]?_0x3657b9[_0x12a584(0x2494)]+_0x12a584(0x1fa8):''});})[_0x3cf1a5(0x20cd)](function(_0x1837d5){const _0x3a9d6e=_0x3cf1a5;if(_0x1837d5[_0x3a9d6e(0x1c52)]&&_0x1837d5[_0x3a9d6e(0x1c52)][_0x3a9d6e(0xbae)]&&_0x1837d5['data'][_0x3a9d6e(0xbae)][_0x3a9d6e(0x1b9e)]){_0x2408cb['errors']=_0x1837d5[_0x3a9d6e(0x1c52)][_0x3a9d6e(0xbae)]||[{'message':_0x1837d5[_0x3a9d6e(0x2915)](),'type':_0x3a9d6e(0x247c)}];for(let _0x2cb449=0x0;_0x2cb449<_0x1837d5['data'][_0x3a9d6e(0xbae)][_0x3a9d6e(0x1b9e)];_0x2cb449++){_0x28a153[_0x3a9d6e(0x1bd0)]({'title':_0x1837d5[_0x3a9d6e(0x1c52)][_0x3a9d6e(0xbae)][_0x2cb449][_0x3a9d6e(0x2185)],'msg':_0x1837d5[_0x3a9d6e(0x1c52)][_0x3a9d6e(0xbae)][_0x2cb449][_0x3a9d6e(0x18ca)]});}}else _0x28a153[_0x3a9d6e(0x1bd0)]({'title':_0x1837d5[_0x3a9d6e(0x10b3)]?_0x3a9d6e(0x575)+_0x1837d5['status']+_0x3a9d6e(0x21db)+_0x1837d5[_0x3a9d6e(0x2115)]:_0x3a9d6e(0x247c),'msg':_0x1837d5[_0x3a9d6e(0x1c52)]?JSON[_0x3a9d6e(0x2317)](_0x1837d5['data'][_0x3a9d6e(0x18ca)]):_0x1837d5['message']||_0x1837d5[_0x3a9d6e(0x2915)]()});});}function _0x14e9d8(){const _0x5b181e=_0x3edecd,_0x588086=angular[_0x5b181e(0x289e)](_0x2408cb[_0x5b181e(0x1eaf)]);return _0x2408cb[_0x5b181e(0x1eaf)]=[],_0x588086;}function _0xef251e(_0x59bc2f){const _0x5ce4b4=_0x3edecd,_0x50fbfb=_0x593f35[_0x5ce4b4(0x856)]()['title'](_0x5ce4b4(0x81a))[_0x5ce4b4(0x33a)](''+_0x2408cb[_0x5ce4b4(0x1eaf)]['length']+_0x5ce4b4(0x163e)+_0x5ce4b4(0x4b8))['ariaLabel'](_0x5ce4b4(0x2793))[_0x5ce4b4(0x2283)](_0x59bc2f)['ok']('OK')[_0x5ce4b4(0x101a)](_0x5ce4b4(0x18fd));_0x593f35['show'](_0x50fbfb)[_0x5ce4b4(0x64a)](function(){const _0xc835c1=_0x5ce4b4;_0x2408cb[_0xc835c1(0x1eaf)][_0xc835c1(0x1397)](function(_0x2c11e7){_0x5b91eb(_0x2c11e7);}),_0x2408cb[_0xc835c1(0x1eaf)]=[];});}let _0x2a81bc=!![],_0x4b8570=0x1;_0x38ea70[_0x3edecd(0xc62)]('vm_dc.query.filter',function(_0x2f668b,_0x2b1e9e){const _0x3ab8fe=_0x3edecd;_0x2a81bc?_0x31319f(function(){_0x2a81bc=![];}):(!_0x2b1e9e&&(_0x4b8570=_0x2408cb[_0x3ab8fe(0x289a)][_0x3ab8fe(0xc72)]),_0x2f668b!==_0x2b1e9e&&(_0x2408cb[_0x3ab8fe(0x289a)][_0x3ab8fe(0xc72)]=0x1),!_0x2f668b&&(_0x2408cb['query'][_0x3ab8fe(0xc72)]=_0x4b8570),_0x4781a0());});}const _0x7d427=_0x489af8;;_0x828acf[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),'$scope','$state','$q',_0x49a1e3(0x298c),'$timeout',_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x680),_0x49a1e3(0xa19),'Auth'];function _0x828acf(_0x3a21bb,_0x2c1c97,_0x5cd895,_0x31e582,_0x217b91,_0x53c409,_0x30a57f,_0x3afffb,_0x4b3c05,_0x2b9dca,_0x3654f4){const _0x18cafd=_0x49a1e3,_0x5e49c4=this;_0x5e49c4[_0x18cafd(0x1d3d)]=_0x3654f4[_0x18cafd(0x808)](),_0x5e49c4[_0x18cafd(0x197e)]={},_0x5e49c4[_0x18cafd(0x279)]={},_0x5e49c4[_0x18cafd(0x7a3)]={'count':0x0,'rows':[]},_0x5e49c4[_0x18cafd(0x208d)]=[],_0x5e49c4['crudPermissions'],_0x5e49c4[_0x18cafd(0x289a)]={'fields':_0x18cafd(0x179e),'sort':_0x18cafd(0x2778),'limit':0xa,'page':0x1},_0x5e49c4[_0x18cafd(0x2354)]=_0x1188f5,_0x5e49c4[_0x18cafd(0x217e)]=_0x1b865d,_0x5e49c4[_0x18cafd(0x1339)]=_0x5b9a68,_0x5e49c4[_0x18cafd(0x274a)]=_0x346831,_0x5e49c4[_0x18cafd(0xfbb)]=_0x1bf80b,_0x5e49c4[_0x18cafd(0x2225)]=_0x43afda,_0x5e49c4[_0x18cafd(0x19fc)]=_0x8d0d18,_0x5e49c4[_0x18cafd(0x2d7)]=_0x596c4c,_0x5e49c4[_0x18cafd(0x2326)]=_0x152ec7,_0x5e49c4['countContactsQueueCampaignHopperFinal']=_0x4755e6,_0x5e49c4[_0x18cafd(0xbec)]=_0x5cf96e,_0x5e49c4[_0x18cafd(0xcf6)]=_0xd45f02;function _0x1188f5(_0x12f80c,_0x3c57d2){const _0x5e1cb1=_0x18cafd;_0x5e49c4[_0x5e1cb1(0x279)]=_0x12f80c,_0x5e49c4[_0x5e1cb1(0x402)]=typeof _0x3c57d2!==_0x5e1cb1(0x19a1)?_0x3c57d2:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5e49c4[_0x5e1cb1(0x289a)][_0x5e1cb1(0x7c0)]=_0x5e49c4[_0x5e1cb1(0x279)]['id'],_0x5e49c4[_0x5e1cb1(0x289a)]['id']=_0x5e49c4[_0x5e1cb1(0x279)]['id'],_0x346831();}function _0x1b865d(_0x286d96,_0x1d1290){const _0x4bff5a=_0x18cafd,_0x27ecd1=_0x30a57f['confirm']()[_0x4bff5a(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperFinal?')[_0x4bff5a(0x33a)](_0x4bff5a(0x50b)+(_0x286d96[_0x4bff5a(0x2494)]||_0x286d96['id']&&_0x28c606()[_0x4bff5a(0x1766)](_0x4bff5a(0x294a))+_0x286d96['id']||_0x4bff5a(0x153f))+_0x4bff5a(0x26d0)+'\x20will\x20be\x20deleted.')[_0x4bff5a(0x213e)](_0x4bff5a(0x1622))[_0x4bff5a(0x2283)](_0x1d1290)['ok']('OK')[_0x4bff5a(0x101a)](_0x4bff5a(0x18fd));_0x30a57f[_0x4bff5a(0xa60)](_0x27ecd1)['then'](function(){_0x43afda(_0x286d96);},function(){console['log']('CANCEL');});}function _0x5b9a68(_0x5ce469){const _0x2a646f=_0x18cafd;_0x5e49c4[_0x2a646f(0x7a3)]=_0x5ce469||{'count':0x0,'rows':[]};}function _0x346831(){const _0x2ae392=_0x18cafd;_0x5e49c4[_0x2ae392(0x289a)][_0x2ae392(0x24f9)]=(_0x5e49c4['query'][_0x2ae392(0xc72)]-0x1)*_0x5e49c4[_0x2ae392(0x289a)][_0x2ae392(0x25bb)],_0x5e49c4[_0x2ae392(0x1713)]=_0x2b9dca[_0x2ae392(0x178b)][_0x2ae392(0x29f)](_0x5e49c4['query'],_0x5b9a68)[_0x2ae392(0x15e7)];}function _0x43afda(_0x125e6f){const _0x509206=_0x18cafd;_0x2b9dca[_0x509206(0x153f)][_0x509206(0xabd)]({'id':_0x125e6f['id']})[_0x509206(0x15e7)]['then'](function(){const _0x2d3f1b=_0x509206;_0x28c606()[_0x2d3f1b(0x21c7)](_0x5e49c4[_0x2d3f1b(0x7a3)][_0x2d3f1b(0x28b8)],{'id':_0x125e6f['id']}),_0x5e49c4[_0x2d3f1b(0x7a3)][_0x2d3f1b(0xb90)]-=0x1,!_0x5e49c4[_0x2d3f1b(0x7a3)]['rows'][_0x2d3f1b(0x1b9e)]&&_0x346831(),_0x4b3c05[_0x2d3f1b(0x1339)]({'title':_0x2d3f1b(0x153b),'msg':_0x125e6f['name']?_0x125e6f['name']+'\x20has\x20been\x20deleted!':''});})[_0x509206(0x20cd)](function(_0x2aca4d){const _0x573633=_0x509206;if(_0x2aca4d['data']&&_0x2aca4d['data'][_0x573633(0xbae)]&&_0x2aca4d['data'][_0x573633(0xbae)][_0x573633(0x1b9e)]){_0x5e49c4['errors']=_0x2aca4d[_0x573633(0x1c52)][_0x573633(0xbae)]||[{'message':_0x2aca4d[_0x573633(0x2915)](),'type':_0x573633(0x247c)}];for(let _0x57a09e=0x0;_0x57a09e<_0x2aca4d[_0x573633(0x1c52)][_0x573633(0xbae)][_0x573633(0x1b9e)];_0x57a09e++){_0x4b3c05['error']({'title':_0x2aca4d[_0x573633(0x1c52)][_0x573633(0xbae)][_0x57a09e][_0x573633(0x2185)],'msg':_0x2aca4d[_0x573633(0x1c52)][_0x573633(0xbae)][_0x57a09e][_0x573633(0x18ca)]});}}else _0x4b3c05[_0x573633(0x1bd0)]({'title':_0x2aca4d['status']?_0x573633(0x575)+_0x2aca4d[_0x573633(0x10b3)]+'\x20-\x20'+_0x2aca4d[_0x573633(0x2115)]:_0x573633(0x247c),'msg':_0x2aca4d[_0x573633(0x1c52)]?JSON[_0x573633(0x2317)](_0x2aca4d['data'][_0x573633(0x18ca)]):_0x2aca4d[_0x573633(0x18ca)]||_0x2aca4d[_0x573633(0x2915)]()});});}function _0x1bf80b(){const _0xbc93b1=_0x18cafd,_0xb70ce8=angular[_0xbc93b1(0x289e)](_0x5e49c4[_0xbc93b1(0x208d)]);return _0x5e49c4[_0xbc93b1(0x208d)]=[],_0xb70ce8;}function _0x8d0d18(_0x4b06af){const _0x389176=_0x18cafd,_0x3468d8=_0x30a57f[_0x389176(0x856)]()[_0x389176(0x2021)](_0x389176(0xe91))['htmlContent'](_0x389176(0x50b)+_0x5e49c4[_0x389176(0x208d)][_0x389176(0x1b9e)]+'\x20selected'+_0x389176(0x4b8))[_0x389176(0x213e)](_0x389176(0xd78))[_0x389176(0x2283)](_0x4b06af)['ok']('OK')[_0x389176(0x101a)]('CANCEL');_0x30a57f[_0x389176(0xa60)](_0x3468d8)[_0x389176(0x64a)](function(){const _0x204a72=_0x389176;_0x5e49c4[_0x204a72(0x208d)][_0x204a72(0x1397)](function(_0x4b5557){_0x43afda(_0x4b5557);}),_0x5e49c4[_0x204a72(0x208d)]=[];});}function _0x152ec7(_0x5089a9){const _0x42ddc4=_0x18cafd;_0x2b9dca[_0x42ddc4(0x711)][_0x42ddc4(0x2326)]({'id':_0x5e49c4['query']['id'],'state':_0x5089a9})['$promise'][_0x42ddc4(0x64a)](function(_0x44293e){const _0x19e412=_0x42ddc4;_0x28c606()[_0x19e412(0x28d7)](_0x44293e)&&_0x28c606()[_0x19e412(0x28d7)](_0x44293e[0x0])?_0x4b3c05[_0x19e412(0x772)]({'title':'Restored\x20Contacts','msg':'0'}):_0x4b3c05['info']({'title':_0x19e412(0x11b4),'msg':JSON[_0x19e412(0x2317)](_0x44293e[0x0][_0x19e412(0x44c)])});})['catch'](function(_0x55f10d){const _0x1756b7=_0x42ddc4;_0x4b3c05[_0x1756b7(0x1bd0)]({'title':_0x55f10d['status']?'API:'+_0x55f10d[_0x1756b7(0x10b3)]+_0x1756b7(0x21db)+_0x55f10d[_0x1756b7(0x2115)]:'SYSTEM:GETvoiceQueue','msg':_0x55f10d[_0x1756b7(0x1c52)]?JSON[_0x1756b7(0x2317)](_0x55f10d['data'][_0x1756b7(0x18ca)]):_0x55f10d[_0x1756b7(0x18ca)]||_0x55f10d[_0x1756b7(0x2915)]()});});}function _0x4755e6(_0x4c7c21){const _0x4c1d21=_0x18cafd;_0x2b9dca['cmHopperFinal']['countContactsQueueCampaignHopperFinal']({'id':_0x4c7c21})['$promise']['then'](function(_0x47f614){_0x28c606()['merge'](_0x5e49c4['contacts'],_0x47f614[0x0]);})[_0x4c1d21(0x20cd)](function(_0x4292e3){const _0x16475f=_0x4c1d21;_0x4b3c05[_0x16475f(0x1bd0)]({'title':_0x4292e3[_0x16475f(0x10b3)]?_0x16475f(0x575)+_0x4292e3[_0x16475f(0x10b3)]+_0x16475f(0x21db)+_0x4292e3['statusText']:_0x16475f(0x247c),'msg':_0x4292e3[_0x16475f(0x1c52)]?JSON[_0x16475f(0x2317)](_0x4292e3['data'][_0x16475f(0x18ca)]):_0x4292e3[_0x16475f(0x18ca)]||_0x4292e3[_0x16475f(0x2915)]()});});}function _0xd45f02(_0x1eb50f){const _0x4f82d0=_0x18cafd,_0x5e6406=_0x30a57f['confirm']()[_0x4f82d0(0x2021)](_0x4f82d0(0x130b))[_0x4f82d0(0x33a)]('\x20Contacts\x20selected'+'\x20will\x20be\x20restored.')[_0x4f82d0(0x213e)](_0x4f82d0(0x17f1))[_0x4f82d0(0x2283)](_0x1eb50f)['ok']('OK')[_0x4f82d0(0x101a)](_0x4f82d0(0x18fd));_0x30a57f[_0x4f82d0(0xa60)](_0x5e6406)[_0x4f82d0(0x64a)](function(){const _0x56649d=_0x4f82d0;_0x5e49c4[_0x56649d(0x208d)][_0x56649d(0x1397)](function(_0x583824){_0x596c4c(_0x583824);}),_0x5e49c4[_0x56649d(0x208d)]=[];});}function _0x5cf96e(_0x547d2e,_0x5e4395){const _0x3286f3=_0x18cafd,_0x1fec51=_0x30a57f['confirm']()[_0x3286f3(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20contact?')['htmlContent'](_0x3286f3(0x50b)+_0x3286f3(0x1c38)+_0x3286f3(0x26d0)+_0x3286f3(0x16e8))[_0x3286f3(0x213e)]('Restore\x20Contact')[_0x3286f3(0x2283)](_0x5e4395)['ok']('OK')['cancel']('CANCEL');_0x30a57f[_0x3286f3(0xa60)](_0x1fec51)[_0x3286f3(0x64a)](function(){_0x596c4c(_0x547d2e);},function(){const _0x2815a1=_0x3286f3;console[_0x2815a1(0x9b4)](_0x2815a1(0x18fd));});}function _0x17b87d(_0x32baab){const _0x68cd62=_0x18cafd,_0x423bb7={};return _0x423bb7[_0x68cd62(0x267a)]=_0x32baab[_0x68cd62(0x225d)],_0x423bb7[_0x68cd62(0x28f0)]=_0x2ac33a()()[_0x68cd62(0x1c2c)](_0x68cd62(0x5f7)),_0x423bb7['countbusyretry']=0x0,_0x423bb7[_0x68cd62(0x149b)]=0x0,_0x423bb7[_0x68cd62(0x27ba)]=0x0,_0x423bb7[_0x68cd62(0x2194)]=0x0,_0x423bb7[_0x68cd62(0x1c49)]=_0x32baab[_0x68cd62(0x1c49)],_0x423bb7[_0x68cd62(0x869)]=_0x32baab['ListId'],_0x423bb7[_0x68cd62(0x246c)]=_0x32baab[_0x68cd62(0x2398)]?null:_0x32baab[_0x68cd62(0x246c)],_0x423bb7['VoiceQueueId']=_0x32baab[_0x68cd62(0x7c0)],_0x423bb7[_0x68cd62(0x1833)]=_0x32baab[_0x68cd62(0x1833)],_0x423bb7[_0x68cd62(0x1095)]=_0x32baab[_0x68cd62(0xbf1)]?0x3:0x2,_0x423bb7[_0x68cd62(0xbf1)]=_0x32baab[_0x68cd62(0xbf1)]?!![]:![],_0x423bb7;}function _0x11fc87(_0x55d611){const _0x1f70d5=_0x18cafd,_0x3ec144={};return _0x3ec144[_0x1f70d5(0x225d)]=_0x55d611['calleridnum'],_0x3ec144[_0x1f70d5(0x58f)]=_0x55d611[_0x1f70d5(0x58f)],_0x3ec144[_0x1f70d5(0x28f0)]=_0x2ac33a()()[_0x1f70d5(0x1c2c)](_0x1f70d5(0x5f7)),_0x3ec144[_0x1f70d5(0x12e9)]=_0x55d611[_0x1f70d5(0x12e9)],_0x3ec144[_0x1f70d5(0x149b)]=_0x55d611[_0x1f70d5(0x149b)],_0x3ec144[_0x1f70d5(0x27ba)]=_0x55d611[_0x1f70d5(0x27ba)],_0x3ec144['countglobal']=_0x55d611[_0x1f70d5(0x2194)],_0x3ec144[_0x1f70d5(0x1c49)]=_0x55d611['ContactId'],_0x3ec144[_0x1f70d5(0x869)]=_0x55d611['ListId'],_0x3ec144[_0x1f70d5(0x246c)]=_0x3654f4[_0x1f70d5(0x808)]()['id'],_0x3ec144[_0x1f70d5(0x7c0)]=_0x55d611[_0x1f70d5(0x7c0)],_0x3ec144['CampaignId']=_0x55d611[_0x1f70d5(0x1833)],_0x3ec144[_0x1f70d5(0x451)]=_0x2ac33a()()[_0x1f70d5(0x1c2c)](_0x1f70d5(0x5f7)),_0x3ec144[_0x1f70d5(0x60d)]=!![],_0x3ec144[_0x1f70d5(0x14f2)]=0x19,_0x3ec144['statedesc']='Restored',_0x3ec144[_0x1f70d5(0x1aba)]=_0x55d611[_0x1f70d5(0x1aba)],_0x3ec144[_0x1f70d5(0x1669)]=_0x55d611[_0x1f70d5(0x7c0)]?_0x1f70d5(0x1e4e):'ivr',_0x3ec144;}function _0x596c4c(_0x9991c){const _0x15321d=_0x18cafd;_0x2b9dca[_0x15321d(0x711)][_0x15321d(0x2779)](_0x9991c)[_0x15321d(0x15e7)][_0x15321d(0x64a)](function(_0x3f4cfe){const _0x2afa39=_0x15321d;_0x4b3c05['info']({'title':_0x2afa39(0x1e08),'msg':_0x2afa39(0x1e92)+_0x3f4cfe[_0x2afa39(0x1c49)]});})[_0x15321d(0x20cd)](function(_0x1670dd){const _0x1a0435=_0x15321d;_0x1670dd['data']==='Not\x20Found'?_0x2b9dca[_0x1a0435(0x232f)]['save'](_0x17b87d(_0x9991c))['$promise'][_0x1a0435(0x64a)](function(_0x75ef8e){const _0x247d4e=_0x1a0435;_0x4b3c05[_0x247d4e(0x772)]({'title':_0x247d4e(0xee3),'msg':_0x247d4e(0x1e92)+_0x75ef8e[_0x247d4e(0x1c49)]}),_0x75ef8e['ContactId']&&_0x2b9dca[_0x247d4e(0x827)]['save'](_0x11fc87(_0x9991c));})[_0x1a0435(0x20cd)](function(_0x7243cc){const _0x5a3d1c=_0x1a0435;!_0x28c606()[_0x5a3d1c(0x28d7)](_0x7243cc[_0x5a3d1c(0x1c52)])&&_0x7243cc[_0x5a3d1c(0x1c52)]['message']===_0x5a3d1c(0xca2)?_0x4b3c05[_0x5a3d1c(0x772)]({'title':_0x5a3d1c(0x1e08),'msg':_0x5a3d1c(0x1e92)+_0x9991c[_0x5a3d1c(0x1c49)]}):_0x4b3c05[_0x5a3d1c(0x1bd0)]({'title':_0x7243cc[_0x5a3d1c(0x10b3)]?_0x5a3d1c(0x575)+_0x7243cc[_0x5a3d1c(0x10b3)]+_0x5a3d1c(0x21db)+_0x7243cc[_0x5a3d1c(0x2115)]:_0x5a3d1c(0x247c),'msg':_0x7243cc['data']?JSON[_0x5a3d1c(0x2317)](_0x7243cc['data'][_0x5a3d1c(0x18ca)]):_0x7243cc[_0x5a3d1c(0x18ca)]||_0x7243cc['toString']()});}):_0x4b3c05[_0x1a0435(0x1bd0)]({'title':_0x1670dd[_0x1a0435(0x10b3)]?_0x1a0435(0x575)+_0x1670dd['status']+_0x1a0435(0x21db)+_0x1670dd[_0x1a0435(0x2115)]:_0x1a0435(0x247c),'msg':_0x1670dd[_0x1a0435(0x1c52)]?JSON[_0x1a0435(0x2317)](_0x1670dd[_0x1a0435(0x1c52)][_0x1a0435(0x18ca)]):_0x1670dd[_0x1a0435(0x18ca)]||_0x1670dd[_0x1a0435(0x2915)]()});});}let _0x19b62b=!![],_0x41e4ce=0x1;_0x2c1c97[_0x18cafd(0xc62)](_0x18cafd(0x1200),function(_0x3e7669,_0x5eefdf){const _0x1fae44=_0x18cafd;_0x19b62b?_0x53c409(function(){_0x19b62b=![];}):(!_0x5eefdf&&(_0x41e4ce=_0x5e49c4[_0x1fae44(0x289a)][_0x1fae44(0xc72)]),_0x3e7669!==_0x5eefdf&&(_0x5e49c4[_0x1fae44(0x289a)][_0x1fae44(0xc72)]=0x1),!_0x3e7669&&(_0x5e49c4['query'][_0x1fae44(0xc72)]=_0x41e4ce),_0x346831());});}const _0x5798c2=_0x828acf;;_0x214118['$inject']=[_0x49a1e3(0x7a7),'$scope',_0x49a1e3(0x77f),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x214118(_0x45c22d,_0x5e96b1,_0x44b5fe,_0x163fba,_0x3cae61,_0x2b05a2,_0x1faa2c,_0x3412a7,_0x534a21,_0x26e6b7,_0x1545d3){const _0x237b02=_0x49a1e3,_0x20b84f=this;_0x20b84f['currentUser']=_0x1545d3[_0x237b02(0x808)](),_0x20b84f['queueCampaign']={},_0x20b84f[_0x237b02(0x1e8c)]={'count':0x0,'rows':[]},_0x20b84f['selectedQueueCampaignHopperHistories']=[],_0x20b84f[_0x237b02(0x402)],_0x20b84f[_0x237b02(0x289a)]={'fields':_0x237b02(0x9e2),'sort':_0x237b02(0x2778),'limit':0xa,'page':0x1},_0x20b84f[_0x237b02(0x2354)]=_0x453fbd,_0x20b84f[_0x237b02(0x217e)]=_0x112595,_0x20b84f[_0x237b02(0x1339)]=_0x5c5a77,_0x20b84f['getQueueCampaignHopperHistories']=_0x280c94,_0x20b84f[_0x237b02(0x2011)]=_0x11fea9,_0x20b84f[_0x237b02(0xade)]=_0x53a85f,_0x20b84f[_0x237b02(0x266e)]=_0x53783f;function _0x453fbd(_0x158d2e,_0x408107){const _0x36508a=_0x237b02;_0x20b84f[_0x36508a(0x279)]=_0x158d2e,_0x20b84f[_0x36508a(0x402)]=typeof _0x408107!==_0x36508a(0x19a1)?_0x408107:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x20b84f['query'][_0x36508a(0x7c0)]=_0x20b84f['queueCampaign']['id'],_0x20b84f[_0x36508a(0x289a)]['id']=_0x20b84f[_0x36508a(0x279)]['id'],_0x280c94();}function _0x112595(_0x2f9afa,_0x13fd00){const _0x55d5ca=_0x237b02,_0x5f2666=_0x1faa2c['confirm']()[_0x55d5ca(0x2021)](_0x55d5ca(0xb78))[_0x55d5ca(0x33a)](_0x55d5ca(0x50b)+(_0x2f9afa[_0x55d5ca(0x2494)]||_0x2f9afa['id']&&_0x28c606()[_0x55d5ca(0x1766)](_0x55d5ca(0x2956))+_0x2f9afa['id']||_0x55d5ca(0x1db0))+_0x55d5ca(0x26d0)+_0x55d5ca(0x4b8))[_0x55d5ca(0x213e)]('delete\x20hopperHistory')[_0x55d5ca(0x2283)](_0x13fd00)['ok']('OK')[_0x55d5ca(0x101a)](_0x55d5ca(0x18fd));_0x1faa2c[_0x55d5ca(0xa60)](_0x5f2666)[_0x55d5ca(0x64a)](function(){_0x53a85f(_0x2f9afa);},function(){const _0x1e5b30=_0x55d5ca;console[_0x1e5b30(0x9b4)](_0x1e5b30(0x18fd));});}function _0x5c5a77(_0xbc70ca){const _0x424542=_0x237b02;_0x20b84f[_0x424542(0x1e8c)]=_0xbc70ca||{'count':0x0,'rows':[]};}function _0x280c94(){const _0x590c26=_0x237b02;_0x20b84f[_0x590c26(0x289a)]['offset']=(_0x20b84f[_0x590c26(0x289a)]['page']-0x1)*_0x20b84f[_0x590c26(0x289a)][_0x590c26(0x25bb)],_0x20b84f['promise']=_0x26e6b7[_0x590c26(0x178b)]['getHopperHistories'](_0x20b84f['query'],_0x5c5a77)['$promise'];}function _0x53a85f(_0x49e22e){const _0x16403b=_0x237b02;_0x26e6b7[_0x16403b(0x1db0)][_0x16403b(0xabd)]({'id':_0x49e22e['id']})[_0x16403b(0x15e7)][_0x16403b(0x64a)](function(){const _0x1de18f=_0x16403b;_0x28c606()['remove'](_0x20b84f[_0x1de18f(0x1e8c)]['rows'],{'id':_0x49e22e['id']}),_0x20b84f[_0x1de18f(0x1e8c)]['count']-=0x1,!_0x20b84f[_0x1de18f(0x1e8c)][_0x1de18f(0x28b8)][_0x1de18f(0x1b9e)]&&_0x280c94(),_0x534a21[_0x1de18f(0x1339)]({'title':_0x1de18f(0x521),'msg':_0x49e22e[_0x1de18f(0x2494)]?_0x49e22e[_0x1de18f(0x2494)]+_0x1de18f(0x1fa8):''});})[_0x16403b(0x20cd)](function(_0x3fa48c){const _0x35f48b=_0x16403b;if(_0x3fa48c[_0x35f48b(0x1c52)]&&_0x3fa48c[_0x35f48b(0x1c52)][_0x35f48b(0xbae)]&&_0x3fa48c[_0x35f48b(0x1c52)][_0x35f48b(0xbae)][_0x35f48b(0x1b9e)]){_0x20b84f[_0x35f48b(0xbae)]=_0x3fa48c[_0x35f48b(0x1c52)]['errors']||[{'message':_0x3fa48c['toString'](),'type':'SYSTEM:GETvoiceQueue'}];for(let _0x4bb811=0x0;_0x4bb811<_0x3fa48c[_0x35f48b(0x1c52)][_0x35f48b(0xbae)]['length'];_0x4bb811++){_0x534a21[_0x35f48b(0x1bd0)]({'title':_0x3fa48c['data'][_0x35f48b(0xbae)][_0x4bb811][_0x35f48b(0x2185)],'msg':_0x3fa48c[_0x35f48b(0x1c52)][_0x35f48b(0xbae)][_0x4bb811][_0x35f48b(0x18ca)]});}}else _0x534a21[_0x35f48b(0x1bd0)]({'title':_0x3fa48c[_0x35f48b(0x10b3)]?_0x35f48b(0x575)+_0x3fa48c[_0x35f48b(0x10b3)]+'\x20-\x20'+_0x3fa48c[_0x35f48b(0x2115)]:_0x35f48b(0x247c),'msg':_0x3fa48c[_0x35f48b(0x1c52)]?JSON['stringify'](_0x3fa48c['data'][_0x35f48b(0x18ca)]):_0x3fa48c[_0x35f48b(0x18ca)]||_0x3fa48c[_0x35f48b(0x2915)]()});});}function _0x11fea9(){const _0x338e5b=_0x237b02,_0x234421=angular[_0x338e5b(0x289e)](_0x20b84f[_0x338e5b(0x7ec)]);return _0x20b84f[_0x338e5b(0x7ec)]=[],_0x234421;}function _0x53783f(_0x16724b){const _0x605950=_0x237b02,_0x27fb27=_0x1faa2c[_0x605950(0x856)]()[_0x605950(0x2021)](_0x605950(0x1111))[_0x605950(0x33a)](''+_0x20b84f[_0x605950(0x7ec)]['length']+_0x605950(0x163e)+'\x20will\x20be\x20deleted.')[_0x605950(0x213e)](_0x605950(0xe8f))[_0x605950(0x2283)](_0x16724b)['ok']('OK')[_0x605950(0x101a)]('CANCEL');_0x1faa2c[_0x605950(0xa60)](_0x27fb27)[_0x605950(0x64a)](function(){const _0x71fc18=_0x605950;_0x20b84f[_0x71fc18(0x7ec)][_0x71fc18(0x1397)](function(_0x523a8b){_0x53a85f(_0x523a8b);}),_0x20b84f[_0x71fc18(0x7ec)]=[];});}let _0x1f017b=!![],_0x170fda=0x1;_0x5e96b1['$watch'](_0x237b02(0x1200),function(_0x51bb31,_0x2103ec){const _0x582d55=_0x237b02;_0x1f017b?_0x2b05a2(function(){_0x1f017b=![];}):(!_0x2103ec&&(_0x170fda=_0x20b84f[_0x582d55(0x289a)][_0x582d55(0xc72)]),_0x51bb31!==_0x2103ec&&(_0x20b84f[_0x582d55(0x289a)]['page']=0x1),!_0x51bb31&&(_0x20b84f['query'][_0x582d55(0xc72)]=_0x170fda),_0x280c94());});}const _0x287761=_0x214118;;_0x525340[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),'$scope',_0x49a1e3(0x77f),'$q','$translate',_0x49a1e3(0x20d4),'$mdDialog','$document',_0x49a1e3(0x680),'api',_0x49a1e3(0xdcf)];function _0x525340(_0x2e8f6a,_0x3ff946,_0x16dfbd,_0xac59e,_0xc28bbe,_0x2565f4,_0xd4b7be,_0x2206e7,_0x373e8b,_0x3a32ea,_0x11c6f9){const _0x2ea2de=_0x49a1e3,_0x33bda8=this;_0x33bda8[_0x2ea2de(0x1d3d)]=_0x11c6f9['getCurrentUser'](),_0x33bda8[_0x2ea2de(0x279)]={},_0x33bda8['queueCampaignHoppers']={'count':0x0,'rows':[]},_0x33bda8[_0x2ea2de(0x1bd4)]=[],_0x33bda8['crudPermissions'],_0x33bda8[_0x2ea2de(0x289a)]={'fields':_0x2ea2de(0x1070),'sort':_0x2ea2de(0x260c),'limit':0xa,'page':0x1},_0x33bda8[_0x2ea2de(0x278f)]=_0x28c606()[_0x2ea2de(0x161e)]([{'option':_0x2ea2de(0x275f),'value':_0x2ea2de(0x2508)},{'option':'High','value':'\x273\x27'},{'option':'Medium','value':_0x2ea2de(0x2390)},{'option':'Low','value':_0x2ea2de(0x1755)},{'option':_0x2ea2de(0x1862),'value':_0x2ea2de(0x3ae)}],function(_0xea934b){const _0x4777f4=_0x2ea2de;return _0x28c606()[_0x4777f4(0x1353)](_0xea934b[_0x4777f4(0x1096)],new RegExp('\x27','g'),'');}),_0x33bda8[_0x2ea2de(0x2354)]=_0xda34b5,_0x33bda8[_0x2ea2de(0x217e)]=_0x3e5ad6,_0x33bda8[_0x2ea2de(0x1339)]=_0xf5e297,_0x33bda8['getQueueCampaignHoppers']=_0x5414ce,_0x33bda8[_0x2ea2de(0x40f)]=_0x1c9f12,_0x33bda8['exportSelectedQueueCampaignHoppers']=_0x7c7c46,_0x33bda8[_0x2ea2de(0x56f)]=_0x284660,_0x33bda8['deleteSelectedQueueCampaignHoppers']=_0x14880a,_0x11c6f9['hasRole'](_0x2ea2de(0x333))?_0x3a32ea[_0x2ea2de(0x2e8)][_0x2ea2de(0x896)]({'fields':_0x2ea2de(0x1427),'role':'agent','sort':_0x2ea2de(0x2494),'nolimit':_0x2ea2de(0x1685)})[_0x2ea2de(0x15e7)][_0x2ea2de(0x64a)](function(_0x4cd7bb){const _0xd3ebb9=_0x2ea2de;_0x33bda8[_0xd3ebb9(0xd77)]=_0x4cd7bb[_0xd3ebb9(0x28b8)]||[];})[_0x2ea2de(0x20cd)](function(_0x365db4){const _0x1251d6=_0x2ea2de;_0x373e8b[_0x1251d6(0x1bd0)]({'title':_0x365db4[_0x1251d6(0x10b3)]?_0x1251d6(0x575)+_0x365db4['status']+_0x1251d6(0x21db)+_0x365db4['statusText']:_0x1251d6(0x554),'msg':_0x365db4[_0x1251d6(0x1c52)]?JSON[_0x1251d6(0x2317)](_0x365db4['data']):_0x365db4['toString']()});}):_0x3a32ea[_0x2ea2de(0x2e8)][_0x2ea2de(0x896)]({'fields':_0x2ea2de(0x1427),'role':_0x2ea2de(0x11ae),'sort':_0x2ea2de(0x2494),'nolimit':'true'})[_0x2ea2de(0x15e7)][_0x2ea2de(0x64a)](function(_0x444805){const _0x4abc05=_0x2ea2de;_0x33bda8['agents']=_0x444805[_0x4abc05(0x28b8)]||[];})[_0x2ea2de(0x64a)](function(){const _0x226f2a=_0x2ea2de;return _0x3a32ea[_0x226f2a(0x16b2)][_0x226f2a(0x896)]({'userProfileId':_0x33bda8['currentUser']['userProfileId'],'sectionId':0xca})['$promise'];})[_0x2ea2de(0x64a)](function(_0x222d6d){const _0x11a234=_0x2ea2de,_0x9b19ea=_0x222d6d&&_0x222d6d['rows']?_0x222d6d[_0x11a234(0x28b8)][0x0]:null;if(!_0x9b19ea){const _0x3a734a=[];let _0x172573=null;_0x33bda8['queueCampaign']&&(_0x172573=_0x28c606()[_0x11a234(0x27bc)](_0x33bda8[_0x11a234(0xd77)],{'id':Number(_0x33bda8['queueCampaign'][_0x11a234(0x246c)])}));for(let _0x5d41fb=0x0;_0x5d41fb<_0x33bda8[_0x11a234(0xd77)][_0x11a234(0x1b9e)];_0x5d41fb++){_0x172573&&_0x33bda8[_0x11a234(0xd77)][_0x5d41fb]['id']===_0x172573['id']&&(_0x33bda8[_0x11a234(0xd77)][_0x5d41fb][_0x11a234(0xd4f)]=![],_0x3a734a[_0x11a234(0x1954)](_0x33bda8[_0x11a234(0xd77)][_0x5d41fb]));}_0x33bda8['agents']=_0x3a734a;}else{if(!_0x9b19ea[_0x11a234(0x11da)])return _0x3a32ea['userProfileResource'][_0x11a234(0x896)]({'sectionId':_0x9b19ea['id']})['$promise'][_0x11a234(0x64a)](function(_0x27503d){const _0x4a0679=_0x11a234,_0x3e449b=_0x28c606()['map'](_0x27503d['rows'],function(_0x1e83af){const _0x5cdb98=a0_0x4127;return _0x28c606()[_0x5cdb98(0x27bc)](_0x33bda8[_0x5cdb98(0xd77)],{'id':_0x1e83af[_0x5cdb98(0x145)]});});let _0x21056a=null;_0x33bda8['queueCampaign']&&(_0x21056a=_0x28c606()[_0x4a0679(0x27bc)](_0x33bda8['agents'],{'id':Number(_0x33bda8['queueCampaign'][_0x4a0679(0x246c)])}));if(_0x21056a&&!_0x28c606()['some'](_0x3e449b,['id',_0x21056a['id']])){const _0x35fb89=_0x28c606()[_0x4a0679(0x27bc)](_0x33bda8[_0x4a0679(0xd77)],{'id':_0x21056a['id']});_0x35fb89[_0x4a0679(0xd4f)]=![],_0x3e449b['push'](_0x35fb89);}_0x33bda8[_0x4a0679(0xd77)]=_0x3e449b;});}})[_0x2ea2de(0x20cd)](function(_0x39ee48){const _0x1eec36=_0x2ea2de;_0x373e8b[_0x1eec36(0x1bd0)]({'title':_0x39ee48['status']?'API:'+_0x39ee48['status']+_0x1eec36(0x21db)+_0x39ee48[_0x1eec36(0x2115)]:_0x1eec36(0x1ff1),'msg':_0x39ee48[_0x1eec36(0x1c52)]?JSON[_0x1eec36(0x2317)](_0x39ee48[_0x1eec36(0x1c52)]):_0x39ee48['toString']()});});function _0xda34b5(_0x2e26fb,_0x1aed43){const _0x45a33c=_0x2ea2de;_0x33bda8['queueCampaign']=_0x2e26fb,_0x33bda8[_0x45a33c(0x402)]=typeof _0x1aed43!==_0x45a33c(0x19a1)?_0x1aed43:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x33bda8[_0x45a33c(0x289a)][_0x45a33c(0x7c0)]=_0x33bda8[_0x45a33c(0x279)]['id'],_0x33bda8['query']['id']=_0x33bda8[_0x45a33c(0x279)]['id'],_0x5414ce();}function _0x3e5ad6(_0x4548b6,_0x416682){const _0x3d694c=_0x2ea2de,_0x135fe4=_0xd4b7be[_0x3d694c(0x856)]()['title'](_0x3d694c(0x4ae))[_0x3d694c(0x33a)](_0x3d694c(0x50b)+(_0x4548b6[_0x3d694c(0x2494)]||_0x4548b6['id']&&_0x28c606()[_0x3d694c(0x1766)](_0x3d694c(0x104f))+_0x4548b6['id']||_0x3d694c(0x7e4))+_0x3d694c(0x26d0)+_0x3d694c(0x4b8))[_0x3d694c(0x213e)]('delete\x20hopper')[_0x3d694c(0x2283)](_0x416682)['ok']('OK')['cancel'](_0x3d694c(0x18fd));_0xd4b7be['show'](_0x135fe4)[_0x3d694c(0x64a)](function(){_0x284660(_0x4548b6);},function(){const _0xe903de=_0x3d694c;console[_0xe903de(0x9b4)](_0xe903de(0x18fd));});}function _0xf5e297(_0x32b417){const _0x4a4184=_0x2ea2de;_0x33bda8[_0x4a4184(0xf86)]=_0x32b417||{'count':0x0,'rows':[]};}function _0x5414ce(){const _0x418f0a=_0x2ea2de;_0x33bda8[_0x418f0a(0x289a)]['offset']=(_0x33bda8['query'][_0x418f0a(0xc72)]-0x1)*_0x33bda8[_0x418f0a(0x289a)][_0x418f0a(0x25bb)],_0x33bda8[_0x418f0a(0x1713)]=_0x3a32ea[_0x418f0a(0x178b)][_0x418f0a(0x24d2)](_0x33bda8[_0x418f0a(0x289a)],_0xf5e297)['$promise'];}function _0x1c9f12(_0x5d38c1,_0x1332c5){const _0x19c034=_0x2ea2de;_0xd4b7be[_0x19c034(0xa60)]({'controller':_0x19c034(0x1224),'controllerAs':'vm','templateUrl':_0x9cd309,'parent':angular[_0x19c034(0x1f81)](_0x2206e7['body']),'targetEvent':_0x5d38c1,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x33bda8[_0x19c034(0x279)],'hopper':_0x1332c5,'hoppers':_0x33bda8[_0x19c034(0xf86)][_0x19c034(0x28b8)],'license':null,'setting':null,'crudPermissions':_0x33bda8[_0x19c034(0x402)]}});}function _0x284660(_0x1ad200){const _0x34096d=_0x2ea2de;_0x3a32ea['cmHopper'][_0x34096d(0xabd)]({'id':_0x1ad200['id']})[_0x34096d(0x15e7)][_0x34096d(0x64a)](function(){const _0x5508d8=_0x34096d;_0x28c606()[_0x5508d8(0x21c7)](_0x33bda8[_0x5508d8(0xf86)][_0x5508d8(0x28b8)],{'id':_0x1ad200['id']}),_0x33bda8[_0x5508d8(0xf86)][_0x5508d8(0xb90)]-=0x1,!_0x33bda8[_0x5508d8(0xf86)][_0x5508d8(0x28b8)][_0x5508d8(0x1b9e)]&&_0x5414ce(),_0x373e8b[_0x5508d8(0x1339)]({'title':_0x5508d8(0x2932),'msg':_0x1ad200[_0x5508d8(0x2494)]?_0x1ad200[_0x5508d8(0x2494)]+_0x5508d8(0x1fa8):''});})['catch'](function(_0x4b4c4b){const _0x2aabd5=_0x34096d;if(_0x4b4c4b[_0x2aabd5(0x1c52)]&&_0x4b4c4b[_0x2aabd5(0x1c52)][_0x2aabd5(0xbae)]&&_0x4b4c4b[_0x2aabd5(0x1c52)][_0x2aabd5(0xbae)][_0x2aabd5(0x1b9e)]){_0x33bda8[_0x2aabd5(0xbae)]=_0x4b4c4b[_0x2aabd5(0x1c52)][_0x2aabd5(0xbae)]||[{'message':_0x4b4c4b[_0x2aabd5(0x2915)](),'type':_0x2aabd5(0x247c)}];for(let _0x67beb7=0x0;_0x67beb7<_0x4b4c4b[_0x2aabd5(0x1c52)]['errors'][_0x2aabd5(0x1b9e)];_0x67beb7++){_0x373e8b[_0x2aabd5(0x1bd0)]({'title':_0x4b4c4b[_0x2aabd5(0x1c52)][_0x2aabd5(0xbae)][_0x67beb7][_0x2aabd5(0x2185)],'msg':_0x4b4c4b[_0x2aabd5(0x1c52)][_0x2aabd5(0xbae)][_0x67beb7][_0x2aabd5(0x18ca)]});}}else _0x373e8b[_0x2aabd5(0x1bd0)]({'title':_0x4b4c4b[_0x2aabd5(0x10b3)]?_0x2aabd5(0x575)+_0x4b4c4b[_0x2aabd5(0x10b3)]+_0x2aabd5(0x21db)+_0x4b4c4b[_0x2aabd5(0x2115)]:'SYSTEM:GETvoiceQueue','msg':_0x4b4c4b[_0x2aabd5(0x1c52)]?JSON[_0x2aabd5(0x2317)](_0x4b4c4b[_0x2aabd5(0x1c52)][_0x2aabd5(0x18ca)]):_0x4b4c4b[_0x2aabd5(0x18ca)]||_0x4b4c4b['toString']()});});}function _0x7c7c46(){const _0x35d658=_0x2ea2de,_0x402154=angular['copy'](_0x33bda8[_0x35d658(0x1bd4)]);return _0x33bda8[_0x35d658(0x1bd4)]=[],_0x402154;}function _0x14880a(_0x14238e){const _0x4ab210=_0x2ea2de,_0x26ec8e=_0xd4b7be[_0x4ab210(0x856)]()['title'](_0x4ab210(0x4f1))[_0x4ab210(0x33a)](_0x4ab210(0x50b)+_0x33bda8[_0x4ab210(0x1bd4)][_0x4ab210(0x1b9e)]+_0x4ab210(0x163e)+_0x4ab210(0x4b8))[_0x4ab210(0x213e)]('delete\x20hoppers')[_0x4ab210(0x2283)](_0x14238e)['ok']('OK')[_0x4ab210(0x101a)](_0x4ab210(0x18fd));_0xd4b7be['show'](_0x26ec8e)[_0x4ab210(0x64a)](function(){const _0x4fb5ac=_0x4ab210;_0x33bda8['selectedQueueCampaignHoppers'][_0x4fb5ac(0x1397)](function(_0x3458d5){_0x284660(_0x3458d5);}),_0x33bda8[_0x4fb5ac(0x1bd4)]=[];});}let _0x44d8e8=!![],_0x5655a8=0x1;_0x3ff946[_0x2ea2de(0xc62)](_0x2ea2de(0x1200),function(_0x2ccfe7,_0x162e0c){const _0x198442=_0x2ea2de;_0x44d8e8?_0x2565f4(function(){_0x44d8e8=![];}):(!_0x162e0c&&(_0x5655a8=_0x33bda8[_0x198442(0x289a)][_0x198442(0xc72)]),_0x2ccfe7!==_0x162e0c&&(_0x33bda8[_0x198442(0x289a)]['page']=0x1),!_0x2ccfe7&&(_0x33bda8[_0x198442(0x289a)][_0x198442(0xc72)]=_0x5655a8),_0x5414ce());});}const _0x3938ee=_0x525340;;_0x353338[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0xd52),_0x49a1e3(0x7e4),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x353338(_0x45659f,_0x1a113f,_0x561460,_0x155ef1,_0x3d4636,_0x25099b,_0x256d91,_0x55a5eb,_0x53eb5b,_0x2ac080,_0x3aff03,_0x4e9fee,_0x491758,_0x50c766){const _0x123113=_0x49a1e3,_0x595055=this;_0x595055[_0x123113(0x1d3d)]=_0x3aff03['getCurrentUser'](),_0x595055[_0x123113(0xbae)]=[],_0x595055[_0x123113(0x28d6)]=_0x491758,_0x595055[_0x123113(0x1947)]=_0x4e9fee,_0x595055['crudPermissions']=_0x50c766,_0x595055['hasModulePermissions']={},_0x595055[_0x123113(0xccc)]=_0x595055['setting']&&_0x595055['setting'][_0x123113(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x595055[_0x123113(0x2021)]=_0x123113(0x117f),_0x595055[_0x123113(0x7e4)]=angular[_0x123113(0x289e)](_0x53eb5b),_0x595055[_0x123113(0xd52)]=_0x55a5eb,_0x595055[_0x123113(0xd5a)]=![];!_0x595055[_0x123113(0x7e4)]&&(_0x595055[_0x123113(0x7e4)]={},_0x595055['title']=_0x123113(0x15a9),_0x595055[_0x123113(0xd5a)]=!![]);_0x1a113f[_0x123113(0x1b48)]['id']&&(_0x595055['hopper'][_0x123113(0x7c0)]=_0x1a113f['params']['id']);_0x595055[_0x123113(0x13e1)]=_0x46ca2e,_0x595055['saveHopper']=_0x1882bc,_0x595055[_0x123113(0x11d9)]=_0x4a96a0,_0x595055[_0x123113(0x1605)]=_0x4a2c29,_0x595055[_0x123113(0x16cb)]=_0x159a0b,_0x3aff03['hasRole'](_0x123113(0x333))?_0x2ac080[_0x123113(0x2e8)][_0x123113(0x896)]({'fields':_0x123113(0x1427),'role':_0x123113(0x11ae),'sort':_0x123113(0x2494),'nolimit':'true'})[_0x123113(0x15e7)][_0x123113(0x64a)](function(_0x44be04){const _0x9222df=_0x123113;_0x595055[_0x9222df(0xd77)]=_0x44be04['rows']||[];})[_0x123113(0x20cd)](function(_0x441341){const _0x15b32d=_0x123113;_0x256d91['error']({'title':_0x441341[_0x15b32d(0x10b3)]?_0x15b32d(0x575)+_0x441341[_0x15b32d(0x10b3)]+_0x15b32d(0x21db)+_0x441341['statusText']:_0x15b32d(0x554),'msg':_0x441341['data']?JSON[_0x15b32d(0x2317)](_0x441341[_0x15b32d(0x1c52)]):_0x441341[_0x15b32d(0x2915)]()});}):_0x2ac080[_0x123113(0x2e8)][_0x123113(0x896)]({'fields':_0x123113(0x1427),'role':_0x123113(0x11ae),'sort':'name','nolimit':'true'})[_0x123113(0x15e7)][_0x123113(0x64a)](function(_0xbd0827){const _0x4d62d6=_0x123113;_0x595055[_0x4d62d6(0xd77)]=_0xbd0827[_0x4d62d6(0x28b8)]||[];})[_0x123113(0x64a)](function(){const _0x353bf5=_0x123113;return _0x2ac080[_0x353bf5(0x16b2)][_0x353bf5(0x896)]({'userProfileId':_0x595055['currentUser'][_0x353bf5(0x21ac)],'sectionId':0xca})[_0x353bf5(0x15e7)];})[_0x123113(0x64a)](function(_0x9fb7b4){const _0x13e855=_0x123113,_0x31b978=_0x9fb7b4&&_0x9fb7b4[_0x13e855(0x28b8)]?_0x9fb7b4[_0x13e855(0x28b8)][0x0]:null;if(!_0x31b978){const _0x31805a=[];let _0x3324d7=null;_0x595055['hopper']&&(_0x3324d7=_0x28c606()[_0x13e855(0x27bc)](_0x595055['agents'],{'id':Number(_0x595055['hopper'][_0x13e855(0x246c)])}));for(let _0x64e562=0x0;_0x64e562<_0x595055['agents'][_0x13e855(0x1b9e)];_0x64e562++){_0x3324d7&&_0x595055[_0x13e855(0xd77)][_0x64e562]['id']===_0x3324d7['id']&&(_0x595055[_0x13e855(0xd77)][_0x64e562]['canSelect']=![],_0x31805a['push'](_0x595055[_0x13e855(0xd77)][_0x64e562]));}_0x595055[_0x13e855(0xd77)]=_0x31805a;}else{if(!_0x31b978['autoAssociation'])return _0x2ac080[_0x13e855(0x1617)][_0x13e855(0x896)]({'sectionId':_0x31b978['id']})[_0x13e855(0x15e7)]['then'](function(_0x334e60){const _0x19d2d0=_0x13e855,_0x1877a2=_0x28c606()['map'](_0x334e60['rows'],function(_0x516713){const _0xd37e16=a0_0x4127;return _0x28c606()[_0xd37e16(0x27bc)](_0x595055[_0xd37e16(0xd77)],{'id':_0x516713[_0xd37e16(0x145)]});});let _0x43bf18=null;_0x595055['hopper']&&(_0x43bf18=_0x28c606()[_0x19d2d0(0x27bc)](_0x595055[_0x19d2d0(0xd77)],{'id':Number(_0x595055[_0x19d2d0(0x7e4)][_0x19d2d0(0x246c)])}));if(_0x43bf18&&!_0x28c606()[_0x19d2d0(0x25f8)](_0x1877a2,['id',_0x43bf18['id']])){const _0x1b369f=_0x28c606()[_0x19d2d0(0x27bc)](_0x595055[_0x19d2d0(0xd77)],{'id':_0x43bf18['id']});_0x1b369f[_0x19d2d0(0xd4f)]=![],_0x1877a2['push'](_0x1b369f);}_0x595055[_0x19d2d0(0xd77)]=_0x1877a2;});}})[_0x123113(0x20cd)](function(_0x1f7d13){const _0x54a007=_0x123113;_0x256d91[_0x54a007(0x1bd0)]({'title':_0x1f7d13[_0x54a007(0x10b3)]?_0x54a007(0x575)+_0x1f7d13['status']+_0x54a007(0x21db)+_0x1f7d13[_0x54a007(0x2115)]:_0x54a007(0x1ff1),'msg':_0x1f7d13['data']?JSON[_0x54a007(0x2317)](_0x1f7d13['data']):_0x1f7d13[_0x54a007(0x2915)]()});});function _0x46ca2e(){const _0x192de7=_0x123113;_0x595055['errors']=[],_0x2ac080[_0x192de7(0x232f)][_0x192de7(0x2479)](_0x595055[_0x192de7(0x7e4)])[_0x192de7(0x15e7)]['then'](function(_0x1eaec9){const _0x2fdce9=_0x192de7;_0x595055[_0x2fdce9(0xd52)]['unshift'](_0x1eaec9[_0x2fdce9(0x14f8)]()),_0x256d91[_0x2fdce9(0x1339)]({'title':_0x2fdce9(0xc8e),'msg':_0x595055[_0x2fdce9(0x7e4)][_0x2fdce9(0x2494)]?_0x595055[_0x2fdce9(0x7e4)][_0x2fdce9(0x2494)]+_0x2fdce9(0x258d):''}),_0x159a0b(_0x1eaec9);})[_0x192de7(0x20cd)](function(_0x41ac29){const _0x38e8f3=_0x192de7;if(_0x41ac29[_0x38e8f3(0x1c52)]&&_0x41ac29[_0x38e8f3(0x1c52)][_0x38e8f3(0xbae)]&&_0x41ac29['data'][_0x38e8f3(0xbae)]['length']){_0x595055[_0x38e8f3(0xbae)]=_0x41ac29[_0x38e8f3(0x1c52)][_0x38e8f3(0xbae)]||[{'message':_0x41ac29['toString'](),'type':_0x38e8f3(0x1050)}];for(let _0xd86c3e=0x0;_0xd86c3e<_0x41ac29[_0x38e8f3(0x1c52)][_0x38e8f3(0xbae)][_0x38e8f3(0x1b9e)];_0xd86c3e+=0x1){_0x256d91[_0x38e8f3(0x1bd0)]({'title':_0x41ac29[_0x38e8f3(0x1c52)][_0x38e8f3(0xbae)][_0xd86c3e]['type'],'msg':_0x41ac29[_0x38e8f3(0x1c52)][_0x38e8f3(0xbae)][_0xd86c3e][_0x38e8f3(0x18ca)]});}}else _0x256d91['error']({'title':_0x41ac29[_0x38e8f3(0x10b3)]?_0x38e8f3(0x575)+_0x41ac29['status']+_0x38e8f3(0x21db)+_0x41ac29[_0x38e8f3(0x2115)]:_0x38e8f3(0x1050),'msg':_0x41ac29['data']?JSON['stringify'](_0x41ac29['data'][_0x38e8f3(0x18ca)]):_0x41ac29[_0x38e8f3(0x2915)]()});});}function _0x1882bc(){const _0x1943e7=_0x123113;_0x595055['errors']=[];let _0xad6d9f,_0x19ecb4,_0x39744f,_0x4038f9;_0x595055[_0x1943e7(0x7e4)][_0x1943e7(0x246c)]=_0x595055['hopper'][_0x1943e7(0xbf1)]?_0x595055[_0x1943e7(0x7e4)][_0x1943e7(0x246c)]:null,_0x595055['hopper']['OwnerId']=_0x3aff03[_0x1943e7(0x808)]()['id'],_0x2ac080[_0x1943e7(0x232f)][_0x1943e7(0x896)]({'id':_0x595055[_0x1943e7(0x7e4)]['id'],'attributes':[_0x1943e7(0x28f0)]})[_0x1943e7(0x15e7)][_0x1943e7(0x64a)](function(_0x5e06a0){const _0xf5c60a=_0x1943e7;_0x28c606()[_0xf5c60a(0x28d7)](_0x5e06a0)||_0x28c606()[_0xf5c60a(0x940)](_0x5e06a0)?_0xad6d9f=_0x2ac33a()()[_0xf5c60a(0x1c2c)](_0xf5c60a(0x5f7)):_0xad6d9f=_0x5e06a0[_0xf5c60a(0x28f0)];})[_0x1943e7(0x988)](function(){const _0x418872=_0x1943e7;_0x2ac080[_0x418872(0x232f)][_0x418872(0x2603)]({'id':_0x595055[_0x418872(0x7e4)]['id']},_0x28c606()['omit'](_0x595055['hopper'],[_0x418872(0x7c0),_0x418872(0x1833),_0x418872(0x1c49),_0x418872(0x869)]))['$promise'][_0x418872(0x64a)](function(_0xe18822){const _0x53c419=_0x418872;_0x19ecb4=_0xe18822,_0x2ac080[_0x53c419(0xdf5)][_0x53c419(0x896)]({'id':_0x19ecb4['ContactId'],'attributes':[_0x53c419(0x2518),_0x53c419(0x21c4)]})[_0x53c419(0x15e7)][_0x53c419(0x64a)](function(_0x5b4e62){const _0x476a50=_0x53c419;!_0x28c606()['isNil'](_0x5b4e62)&&!_0x28c606()[_0x476a50(0x28d7)](_0x5b4e62['firstName'])&&(_0x39744f=_0x5b4e62[_0x476a50(0x2518)],!_0x28c606()[_0x476a50(0x28d7)](_0x5b4e62['lastName'])&&(_0x39744f+='\x20'+_0x5b4e62[_0x476a50(0x21c4)]));})[_0x53c419(0x20cd)](function(){_0x39744f=undefined;})[_0x53c419(0x988)](function(){const _0x481b67=_0x53c419;_0x2ac080['voiceQueue']['get']({'raw':![],'id':_0x19ecb4['VoiceQueueId'],'attributes':[_0x481b67(0x2494)]})[_0x481b67(0x15e7)][_0x481b67(0x64a)](function(_0x78a935){const _0x341656=_0x481b67;_0x4038f9=_0x78a935[_0x341656(0x2494)];})[_0x481b67(0x20cd)](function(){_0x4038f9=undefined;})[_0x481b67(0x988)](function(){const _0x281dca=_0x481b67;_0x2ac080[_0x281dca(0x827)][_0x281dca(0x2479)]({'state':0x18,'statedesc':'Edited','scheduledat':_0xad6d9f,'calleridnum':_0x19ecb4[_0x281dca(0x267a)],'calleridname':_0x39744f,'campaigntype':_0x19ecb4[_0x281dca(0x7c0)]?_0x281dca(0x1e4e):'ivr','campaign':_0x4038f9,'editedat':_0x2ac33a()()[_0x281dca(0x1c2c)](_0x281dca(0x5f7)),'edited':!![],'ListId':_0x19ecb4[_0x281dca(0x869)],'UserId':_0x3aff03[_0x281dca(0x808)]()['id'],'VoiceQueueId':_0x19ecb4[_0x281dca(0x7c0)],'CampaignId':_0x19ecb4[_0x281dca(0x1833)],'ContactId':_0x19ecb4['ContactId'],'callback':_0x19ecb4['callback'],'callbackuniqueid':_0x19ecb4[_0x281dca(0x12cf)],'countbusyretry':_0x19ecb4[_0x281dca(0x12e9)],'countcongestionretry':_0x19ecb4['countcongestionretry'],'countglobal':_0x19ecb4[_0x281dca(0x2194)],'countnoanswerretry':_0x19ecb4[_0x281dca(0x27ba)],'followuptime':_0x19ecb4[_0x281dca(0xdaf)],'recallme':_0x19ecb4['recallme']});});});const _0x5e97af=_0x28c606()[_0x53c419(0x27bc)](_0x595055[_0x53c419(0xd52)],{'id':_0xe18822['id']});_0x5e97af&&_0x28c606()['merge'](_0x5e97af,_0x28c606()[_0x53c419(0x27bb)](_0xe18822['toJSON'](),_0x28c606()[_0x53c419(0x1ec6)](_0x5e97af))),_0x256d91['success']({'title':'Hopper\x20properly\x20saved!','msg':_0x595055[_0x53c419(0x7e4)]['name']?_0x595055[_0x53c419(0x7e4)][_0x53c419(0x2494)]+'\x20has\x20been\x20saved!':''}),_0x159a0b(_0xe18822);})[_0x418872(0x20cd)](function(_0x39c4f3){const _0x9db69e=_0x418872;if(_0x39c4f3[_0x9db69e(0x1c52)]&&_0x39c4f3[_0x9db69e(0x1c52)][_0x9db69e(0xbae)]&&_0x39c4f3['data']['errors'][_0x9db69e(0x1b9e)]){_0x595055['errors']=_0x39c4f3[_0x9db69e(0x1c52)][_0x9db69e(0xbae)]||[{'message':_0x39c4f3[_0x9db69e(0x2915)](),'type':'api.cmHopper.update'}];for(let _0x382850=0x0;_0x382850<_0x39c4f3['data'][_0x9db69e(0xbae)]['length'];_0x382850++){_0x256d91[_0x9db69e(0x1bd0)]({'title':_0x39c4f3[_0x9db69e(0x1c52)]['errors'][_0x382850][_0x9db69e(0x2185)],'msg':_0x39c4f3[_0x9db69e(0x1c52)][_0x9db69e(0xbae)][_0x382850][_0x9db69e(0x18ca)]});}}else _0x256d91['error']({'title':_0x39c4f3[_0x9db69e(0x10b3)]?'API:'+_0x39c4f3[_0x9db69e(0x10b3)]+'\x20-\x20'+_0x39c4f3[_0x9db69e(0x2115)]:_0x9db69e(0x2825),'msg':_0x39c4f3[_0x9db69e(0x1c52)]?JSON['stringify'](_0x39c4f3['data']['message']):_0x39c4f3['toString']()});});});}function _0x4a96a0(_0x14c4d9){const _0x1122c8=_0x123113;_0x595055['errors']=[];const _0x668258=_0x155ef1[_0x1122c8(0x856)]()['title'](_0x1122c8(0x103a))[_0x1122c8(0x12b8)]('The\x20hopper\x20will\x20be\x20deleted.')[_0x1122c8(0x213e)](_0x1122c8(0xc37))['ok'](_0x1122c8(0x2664))['cancel']('Cancel')['targetEvent'](_0x14c4d9);_0x155ef1[_0x1122c8(0xa60)](_0x668258)[_0x1122c8(0x64a)](function(){const _0x522d08=_0x1122c8;_0x2ac080[_0x522d08(0x232f)][_0x522d08(0xabd)]({'id':_0x595055['hopper']['id']})['$promise']['then'](function(){const _0x1c0989=_0x522d08;_0x28c606()[_0x1c0989(0x21c7)](_0x595055[_0x1c0989(0xd52)],{'id':_0x595055['hopper']['id']}),_0x256d91[_0x1c0989(0x1339)]({'title':_0x1c0989(0x27c4),'msg':(_0x595055[_0x1c0989(0x7e4)][_0x1c0989(0x2494)]||_0x1c0989(0x7e4))+_0x1c0989(0x1fa8)}),_0x159a0b(_0x595055[_0x1c0989(0x7e4)]);})[_0x522d08(0x20cd)](function(_0x50a9cf){const _0x23e4c8=_0x522d08;if(_0x50a9cf['data']&&_0x50a9cf['data'][_0x23e4c8(0xbae)]&&_0x50a9cf[_0x23e4c8(0x1c52)][_0x23e4c8(0xbae)][_0x23e4c8(0x1b9e)]){_0x595055['errors']=_0x50a9cf[_0x23e4c8(0x1c52)][_0x23e4c8(0xbae)]||[{'message':_0x50a9cf['toString'](),'type':'api.cmHopper.delete'}];for(let _0x158273=0x0;_0x158273<_0x50a9cf[_0x23e4c8(0x1c52)][_0x23e4c8(0xbae)][_0x23e4c8(0x1b9e)];_0x158273++){_0x256d91['error']({'title':_0x50a9cf[_0x23e4c8(0x1c52)][_0x23e4c8(0xbae)][_0x158273][_0x23e4c8(0x2185)],'msg':_0x50a9cf[_0x23e4c8(0x1c52)]['errors'][_0x158273]['message']});}}else _0x256d91[_0x23e4c8(0x1bd0)]({'title':_0x50a9cf[_0x23e4c8(0x10b3)]?_0x23e4c8(0x575)+_0x50a9cf[_0x23e4c8(0x10b3)]+_0x23e4c8(0x21db)+_0x50a9cf['statusText']:'api.cmHopper.delete','msg':_0x50a9cf[_0x23e4c8(0x1c52)]?JSON[_0x23e4c8(0x2317)](_0x50a9cf[_0x23e4c8(0x1c52)][_0x23e4c8(0x18ca)]):_0x50a9cf['message']||_0x50a9cf['toString']()});});},function(){});}function _0x4a2c29(_0x197a1e){return _0x197a1e===null?undefined:new Date(_0x197a1e);}function _0x159a0b(_0x4c20c5){const _0x436cfc=_0x123113;_0x155ef1[_0x436cfc(0x268e)](_0x4c20c5);}}const _0x30f8c7=_0x353338;;_0x32431b['$inject']=['api',_0x49a1e3(0x680)];function _0x32431b(_0x151751,_0x2d9ce6){const _0x2fe99d=this;_0x2fe99d['queueCampaign']={},_0x2fe99d['init']=_0x417f4f;function _0x417f4f(_0x5766da){const _0x2442b9=a0_0x4127;_0x2fe99d['queueCampaign']=_0x5766da,_0x151751[_0x2442b9(0x232f)]['get']({'limit':0x0,'VoiceQueueId':_0x5766da['id']})[_0x2442b9(0x15e7)]['then'](function(_0x485144){const _0x1721be=_0x2442b9;return _0x2fe99d[_0x1721be(0x1318)]=_0x485144['count']||0x0,_0x151751[_0x1721be(0x232f)][_0x1721be(0x896)]({'limit':0x0,'VoiceQueueId':_0x5766da['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})[_0x1721be(0x15e7)];})[_0x2442b9(0x64a)](function(_0x1bf196){const _0x64eff2=_0x2442b9;return _0x2fe99d[_0x64eff2(0x2605)]=_0x1bf196[_0x64eff2(0xb90)]||0x0,_0x151751[_0x64eff2(0x711)][_0x64eff2(0x896)]({'limit':0x0,'VoiceQueueId':_0x5766da['id']})[_0x64eff2(0x15e7)];})[_0x2442b9(0x64a)](function(_0x1428e5){_0x2fe99d['closed']=_0x1428e5['count']||0x0;})[_0x2442b9(0x20cd)](function(_0x47006d){const _0x269810=_0x2442b9;_0x2d9ce6[_0x269810(0x1bd0)]({'title':_0x47006d[_0x269810(0x10b3)]?_0x269810(0x575)+_0x47006d[_0x269810(0x10b3)]+'\x20-\x20'+_0x47006d[_0x269810(0x2115)]:_0x269810(0x1738),'msg':_0x47006d['data']?JSON[_0x269810(0x2317)](_0x47006d[_0x269810(0x1c52)]):_0x47006d[_0x269810(0x2915)]()});});}}const _0x3f1bd6=_0x32431b;;_0x53be63[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0xa19),'queueCampaign','$translate',_0x49a1e3(0x20d4),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x53be63(_0x1b3437,_0x30e58d,_0x2efd5b,_0x2b4603,_0x5d53de,_0x2bc14f,_0x5ee97f,_0x47d27c,_0x3a18f0){const _0x1d28a5=_0x49a1e3,_0x3f120b=this;_0x3f120b[_0x1d28a5(0x1d3d)]=_0x47d27c['getCurrentUser'](),_0x3f120b[_0x1d28a5(0x279)]=_0x5d53de,_0x3f120b['crudPermissions']=_0x3a18f0,_0x3f120b['apiRoute']=_0x1d28a5(0x178b),_0x3f120b['getApi']=_0x1d28a5(0x7aa),_0x3f120b[_0x1d28a5(0xd1e)]=_0x1d28a5(0x2675),_0x3f120b[_0x1d28a5(0x6a5)]=_0x1d28a5(0x2933),_0x3f120b['items']=[],_0x3f120b[_0x1d28a5(0x13d1)]=[],_0x3f120b['selectedItems']=[],_0x3f120b[_0x1d28a5(0x206b)]=[],_0x3f120b[_0x1d28a5(0x24e1)]=[],_0x3f120b['pendingChanges']=![],_0x3f120b['loading']=![],_0x3f120b['dualMultiselectOptions']={'readOnly':!_0x3f120b['crudPermissions']['canEdit'],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x1d28a5(0x2494),'line1':_0x1d28a5(0x2494),'line2':'','line3':'','labelAll':_0x2bc14f[_0x1d28a5(0x2292)](_0x1d28a5(0xf66)),'labelSelected':_0x2bc14f[_0x1d28a5(0x2292)]('MOTIONDIALER.SELECTED_LISTS'),'transferCallback':function(){const _0x19b0d0=_0x1d28a5,_0x336e2e=_0x28c606()[_0x19b0d0(0x1ad)](_0x3f120b['startingSelectedItems'],_0x3f120b['selectedItems'],'id');_0x3f120b[_0x19b0d0(0xe9e)]=_0x28c606()[_0x19b0d0(0x940)](_0x336e2e)?![]:!![];}},_0x3f120b['onInit']=_0x4f4786,_0x3f120b['saveLists']=_0x4f96b4,_0x3f120b['closeDialog']=_0x433cf6;function _0x4f4786(){const _0x339e5e=_0x1d28a5;return _0x47d27c[_0x339e5e(0x4de)]('admin')?_0x2ef659()[_0x339e5e(0x20cd)](function(_0x3b7126){const _0x5c8834=_0x339e5e;_0x2efd5b[_0x5c8834(0x1bd0)]({'title':_0x3b7126[_0x5c8834(0x10b3)]?_0x5c8834(0x575)+_0x3b7126[_0x5c8834(0x10b3)]+'\x20-\x20'+_0x3b7126[_0x5c8834(0x2115)]:_0x5c8834(0x2176),'msg':_0x3b7126['status']?JSON[_0x5c8834(0x2317)](_0x3b7126[_0x5c8834(0x1c52)]):_0x3b7126[_0x5c8834(0x2915)]()});}):_0x56e96e()[_0x339e5e(0x64a)](function(_0x5ce0ff){const _0x4640d8=_0x339e5e;return _0x3f120b[_0x4640d8(0xa21)]=_0x5ce0ff,_0x2ef659();})[_0x339e5e(0x20cd)](function(_0x5b5aac){const _0x38cee3=_0x339e5e;_0x2efd5b[_0x38cee3(0x1bd0)]({'title':_0x5b5aac[_0x38cee3(0x10b3)]?_0x38cee3(0x575)+_0x5b5aac['status']+_0x38cee3(0x21db)+_0x5b5aac[_0x38cee3(0x2115)]:_0x38cee3(0x2176),'msg':_0x5b5aac['status']?JSON['stringify'](_0x5b5aac['data']):_0x5b5aac[_0x38cee3(0x2915)]()});});}function _0x56e96e(){return _0x30e58d(function(_0x362109,_0x5c0a85){const _0x586627=a0_0x4127;_0x2b4603[_0x586627(0x16b2)][_0x586627(0x896)]({'userProfileId':_0x3f120b['currentUser'][_0x586627(0x21ac)],'name':_0x586627(0x386)})[_0x586627(0x15e7)][_0x586627(0x64a)](function(_0x469df8){const _0x674d65=_0x586627,_0x25a4fd=_0x469df8&&_0x469df8[_0x674d65(0x28b8)]?_0x469df8[_0x674d65(0x28b8)][0x0]:null;_0x362109(_0x25a4fd);})[_0x586627(0x20cd)](function(_0x13531e){_0x5c0a85(_0x13531e);});});}function _0x2ef659(){return _0x30e58d(function(_0x4957f7,_0x106f22){const _0x2d93ef=a0_0x4127;return _0x1eeed6()[_0x2d93ef(0x64a)](function(_0x229477){const _0x56c304=_0x2d93ef;return _0x3f120b['items']=_0x229477[_0x56c304(0x28b8)]?_0x229477['rows']:[],_0x47d27c[_0x56c304(0x4de)](_0x56c304(0x333))?_0x229477:_0x3f120b[_0x56c304(0xa21)]?_0x3f120b[_0x56c304(0xa21)][_0x56c304(0x11da)]?_0x229477:_0x4b122b():null;})[_0x2d93ef(0x64a)](function(_0x117339){const _0x4a4ad5=_0x2d93ef,_0x43ee26=_0x117339&&_0x117339[_0x4a4ad5(0x28b8)]?_0x117339[_0x4a4ad5(0x28b8)]:[];return _0x3f120b[_0x4a4ad5(0x13d1)]=_0x28c606()[_0x4a4ad5(0x1de5)](_0x43ee26,function(_0x3b84de){const _0x55bd64=_0x4a4ad5;return _0x28c606()[_0x55bd64(0x27bc)](_0x3f120b[_0x55bd64(0x23cb)],{'id':_0x47d27c['hasRole'](_0x55bd64(0x333))||_0x3f120b[_0x55bd64(0xa21)]['autoAssociation']?_0x3b84de['id']:_0x3b84de[_0x55bd64(0x145)]});}),_0x3f120b[_0x4a4ad5(0x206b)]=angular[_0x4a4ad5(0x289e)](_0x3f120b[_0x4a4ad5(0x13d1)]),_0x3f120b[_0x4a4ad5(0x23cb)][_0x4a4ad5(0x1397)](function(_0x5ab6dc){const _0x5165a7=_0x4a4ad5,_0x5ce5e7=_0x28c606()[_0x5165a7(0x27bc)](_0x3f120b[_0x5165a7(0x13d1)],{'id':_0x5ab6dc['id']});_0x3f120b[_0x5165a7(0x1d3d)]['role']===_0x5165a7(0x333)?_0x5ab6dc[_0x5165a7(0x6f9)]=!![]:_0x5ab6dc[_0x5165a7(0x6f9)]=typeof _0x5ce5e7!==_0x5165a7(0x19a1)?!![]:![];}),_0x2bbb51();})['then'](function(_0x4ff8ea){const _0x4fc415=_0x2d93ef,_0x587e51=_0x4ff8ea&&_0x4ff8ea[_0x4fc415(0x28b8)]?_0x4ff8ea[_0x4fc415(0x28b8)]:[];_0x3f120b['selectedItems']=_0x28c606()[_0x4fc415(0x1de5)](_0x587e51,function(_0x2ffa8d){const _0x18e85e=_0x4fc415;return _0x28c606()[_0x18e85e(0x27bc)](_0x3f120b[_0x18e85e(0x23cb)],{'id':_0x2ffa8d['id']});}),_0x3f120b[_0x4fc415(0x24e1)]=angular[_0x4fc415(0x289e)](_0x3f120b[_0x4fc415(0x1f4f)]),_0x3f120b[_0x4fc415(0x1eeb)]['selectedItems']=_0x3f120b[_0x4fc415(0x1f4f)],_0x3f120b['dualMultiselectOptions'][_0x4fc415(0x23cb)]=_0x28c606()[_0x4fc415(0x23e5)](_0x3f120b[_0x4fc415(0x13d1)],_0x3f120b[_0x4fc415(0x1eeb)][_0x4fc415(0x1f4f)],'id'),_0x4957f7();})[_0x2d93ef(0x20cd)](function(_0x638181){_0x106f22(_0x638181);});});}function _0x4b122b(){return _0x30e58d(function(_0x2ec079,_0x11e8ed){const _0x54eaf3=a0_0x4127;return _0x2b4603['userProfileResource']['get']({'sectionId':_0x3f120b['section']['id'],'nolimit':!![]})[_0x54eaf3(0x15e7)][_0x54eaf3(0x64a)](function(_0x561434){_0x2ec079(_0x561434);})['catch'](function(_0x1fcc12){_0x11e8ed(_0x1fcc12);});});}function _0x2bbb51(){return _0x30e58d(function(_0x2fba1b,_0x34ced8){const _0x3511ee=a0_0x4127,_0x5b6692=_0x2b4603[_0x3f120b['apiRoute']];return _0x5b6692[_0x3f120b[_0x3511ee(0x1a35)]]({'id':_0x3f120b['queueCampaign']['id'],'fields':_0x3511ee(0x1427),'nolimit':!![]})[_0x3511ee(0x15e7)][_0x3511ee(0x64a)](function(_0x150d41){_0x2fba1b(_0x150d41);})[_0x3511ee(0x20cd)](function(_0x2c9f3d){_0x34ced8(_0x2c9f3d);});});}function _0x1eeed6(){return _0x30e58d(function(_0x1a97ca,_0x51e6bf){const _0x28c9e3=a0_0x4127;return _0x2b4603[_0x28c9e3(0x19f8)]['get']({'fields':_0x28c9e3(0x1427),'nolimit':!![]})[_0x28c9e3(0x15e7)]['then'](function(_0x4c2ccc){_0x1a97ca(_0x4c2ccc);})[_0x28c9e3(0x20cd)](function(_0x5b3945){_0x51e6bf(_0x5b3945);});});}function _0x47ac77(_0x39c5d8){return _0x30e58d(function(_0x2e2325,_0x33e1da){const _0x3b29bc=a0_0x4127;if(_0x28c606()[_0x3b29bc(0x940)](_0x39c5d8))_0x2e2325();else{const _0x503c4b=_0x2b4603[_0x3f120b[_0x3b29bc(0x22b5)]];_0x503c4b[_0x3f120b['addApi']]({'id':_0x3f120b[_0x3b29bc(0x279)]['id'],'ids':_0x28c606()['map'](_0x39c5d8,'id')})[_0x3b29bc(0x15e7)]['then'](function(){_0x2e2325();})[_0x3b29bc(0x20cd)](function(_0x5f41e1){_0x33e1da(_0x5f41e1);});}});}function _0x51fdc6(_0x568e4a){return _0x30e58d(function(_0x4a6ceb,_0x18cdd3){const _0x213617=a0_0x4127;if(_0x28c606()[_0x213617(0x940)](_0x568e4a))_0x4a6ceb();else{const _0x5e78df=_0x2b4603[_0x3f120b[_0x213617(0x22b5)]];_0x5e78df[_0x3f120b[_0x213617(0x6a5)]]({'id':_0x3f120b[_0x213617(0x279)]['id'],'ids':_0x28c606()['map'](_0x568e4a,'id')})[_0x213617(0x15e7)][_0x213617(0x64a)](function(){_0x4a6ceb();})['catch'](function(_0x388a6c){_0x18cdd3(_0x388a6c);});}});}function _0x4f96b4(){const _0x503756=_0x1d28a5;_0x3f120b[_0x503756(0x26e5)]=!![];const _0x7c3427=_0x28c606()['differenceBy'](_0x3f120b[_0x503756(0x24e1)],_0x3f120b[_0x503756(0x1f4f)],'id'),_0x291305=_0x28c606()['differenceBy'](_0x3f120b[_0x503756(0x1f4f)],_0x3f120b[_0x503756(0x24e1)],'id');return _0x51fdc6(_0x7c3427)[_0x503756(0x64a)](function(){return _0x47ac77(_0x291305);})['then'](function(){const _0x5c9635=_0x503756;_0x3f120b[_0x5c9635(0xe9e)]=![],_0x3f120b['startingAllowedItems']=angular[_0x5c9635(0x289e)](_0x3f120b[_0x5c9635(0x13d1)]),_0x3f120b[_0x5c9635(0x24e1)]=angular[_0x5c9635(0x289e)](_0x3f120b['selectedItems']),_0x2efd5b[_0x5c9635(0x1339)]({'title':_0x5c9635(0x24d6),'msg':_0x5c9635(0x1f6)});})[_0x503756(0x20cd)](function(_0x2a2163){const _0x1790e0=_0x503756;_0x2efd5b['error']({'title':_0x2a2163[_0x1790e0(0x10b3)]?'API:'+_0x2a2163[_0x1790e0(0x10b3)]+_0x1790e0(0x21db)+_0x2a2163[_0x1790e0(0x2115)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x2a2163[_0x1790e0(0x10b3)]?JSON[_0x1790e0(0x2317)](_0x2a2163['data']):_0x2a2163[_0x1790e0(0x2915)]()});})[_0x503756(0x988)](function(){_0x3f120b['loading']=![];});}function _0x433cf6(){const _0x1f4fa5=_0x1d28a5;_0x1b3437[_0x1f4fa5(0x268e)]();}}const _0x8f6af1=_0x53be63;;_0x182f3f[_0x49a1e3(0x1e73)]=['$scope',_0x49a1e3(0x212a),'toasty',_0x49a1e3(0xa19),_0x49a1e3(0x279),_0x49a1e3(0x28e8),_0x49a1e3(0x175e),'$q'];function _0x182f3f(_0x18ec60,_0x18cfda,_0x140f2a,_0x2930f8,_0x24f21a,_0xa1ebd5,_0x20b824,_0x169f68){const _0x14ffef=_0x49a1e3,_0x10ea20=this;_0x10ea20[_0x14ffef(0x337)]=[],_0x10ea20[_0x14ffef(0x23cb)]=_0xa1ebd5?_0xa1ebd5:[],_0x10ea20['loading']=![],_0x10ea20['closeDialog']=_0x2ae194,_0x10ea20[_0x14ffef(0xfe3)]=_0x5b1f8c,_0x10ea20[_0x14ffef(0x1f94)]=_0xe293be,_0x10ea20[_0x14ffef(0x1c9e)]=_0x230003,_0x10ea20[_0x14ffef(0x11cd)]=_0x50fe2c,_0x10ea20[_0x14ffef(0x2215)]=_0x166577,_0x10ea20['listSelected']=_0x5a5ff5;function _0xe293be(_0x5767a1,_0x233ad6){const _0x4b22f1=_0x14ffef,_0xdf8dc2=_0x233ad6[_0x4b22f1(0x1b28)](_0x5767a1);_0xdf8dc2>-0x1?_0x233ad6['splice'](_0xdf8dc2,0x1):_0x233ad6[_0x4b22f1(0x1954)](_0x5767a1);}function _0x5b1f8c(_0x20b18f,_0x274962){const _0x29892d=_0x14ffef;return _0x274962[_0x29892d(0x1b28)](_0x20b18f)>-0x1;}function _0x230003(){const _0x40aa1e=_0x14ffef;return _0x10ea20['selected'][_0x40aa1e(0x1b9e)]!==0x0&&_0x10ea20[_0x40aa1e(0x337)][_0x40aa1e(0x1b9e)]!==_0x10ea20[_0x40aa1e(0x23cb)][_0x40aa1e(0x1b9e)];}function _0x50fe2c(){const _0x11cbfd=_0x14ffef;return _0x10ea20['selected'][_0x11cbfd(0x1b9e)]===_0x10ea20[_0x11cbfd(0x23cb)][_0x11cbfd(0x1b9e)];}function _0x166577(){const _0x3c18d2=_0x14ffef;if(_0x10ea20['selected'][_0x3c18d2(0x1b9e)]===_0x10ea20[_0x3c18d2(0x23cb)][_0x3c18d2(0x1b9e)])_0x10ea20[_0x3c18d2(0x337)]=[];else(_0x10ea20[_0x3c18d2(0x337)]['length']===0x0||_0x10ea20[_0x3c18d2(0x337)][_0x3c18d2(0x1b9e)]>0x0)&&(_0x10ea20[_0x3c18d2(0x337)]=_0x10ea20[_0x3c18d2(0x23cb)]['slice'](0x0));}function _0x2ae194(){const _0x5d6ffd=_0x14ffef;_0x18cfda[_0x5d6ffd(0x268e)]();}function _0x5a5ff5(){const _0x15a712=_0x14ffef;_0x10ea20['loading']=!![];const _0x5ca7f4=_0x588e39();_0x5ca7f4[_0x15a712(0x988)](function(){const _0x2fc3f5=_0x15a712;_0x10ea20[_0x2fc3f5(0x26e5)]=![],_0x2ae194();});}function _0x588e39(){return _0x169f68(function(_0x165c71){const _0x5f5364=a0_0x4127;for(let _0x1454bc=0x0;_0x1454bc<_0x10ea20[_0x5f5364(0x337)][_0x5f5364(0x1b9e)];_0x1454bc+=0x1){_0x557722(_0x24f21a['id'],_0x10ea20[_0x5f5364(0x337)][_0x1454bc]);}_0x5d99f7(_0x165c71);});}function _0x557722(_0x306b41,_0x59139d){const _0x4610b8=_0x14ffef,_0x32959c=_0x59139d['id'];_0x20b824[_0x4610b8(0x1f97)](function(){const _0x6cd9f7=_0x4610b8;return _0x2930f8[_0x6cd9f7(0x178b)][_0x6cd9f7(0x2933)]({'id':_0x306b41,'ids':_0x32959c})[_0x6cd9f7(0x15e7)][_0x6cd9f7(0x64a)](function(){const _0x4ce620=_0x6cd9f7;return _0x2930f8[_0x4ce620(0x178b)][_0x4ce620(0x2675)]({'id':_0x306b41,'ids':_0x32959c,'dialCheckDuplicateType':_0x4ce620(0x233a)})[_0x4ce620(0x15e7)];})['then'](function(){const _0x471957=_0x6cd9f7;_0x140f2a[_0x471957(0x1339)]({'title':'Reset\x20Succesfull','msg':'List\x20'+_0x59139d[_0x471957(0x2494)]+_0x471957(0x5d1)});})[_0x6cd9f7(0x20cd)](function(_0x49432f){const _0x4f4005=_0x6cd9f7;_0x140f2a['error']({'title':_0x49432f[_0x4f4005(0x10b3)]?_0x4f4005(0x575)+_0x49432f[_0x4f4005(0x10b3)]+_0x4f4005(0x21db)+_0x49432f[_0x4f4005(0x2115)]:'SYSTEM:queueCampaign.RESETLIST','msg':_0x49432f[_0x4f4005(0x10b3)]?JSON[_0x4f4005(0x2317)](_0x49432f[_0x4f4005(0x1c52)]):_0x49432f[_0x4f4005(0x2915)]()});});});}function _0x5d99f7(_0x1b84e3){const _0x4f28ef=_0x14ffef;_0x20b824[_0x4f28ef(0x1f97)](function(){return _0x1b84e3();});}}const _0x8462e1=_0x182f3f;;_0x545746[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q','toasty','api',_0x49a1e3(0x279),_0x49a1e3(0x298c),'Auth',_0x49a1e3(0x402)];function _0x545746(_0x452699,_0xefa070,_0x199b17,_0x24ba61,_0x1ec667,_0x5d9a70,_0x3d2aeb,_0x12e222){const _0x1a9148=_0x49a1e3,_0x36ac1e=this;_0x36ac1e['currentUser']=_0x3d2aeb['getCurrentUser'](),_0x36ac1e[_0x1a9148(0x279)]=_0x1ec667,_0x36ac1e[_0x1a9148(0x402)]=_0x12e222,_0x36ac1e[_0x1a9148(0x70f)]=0x0,_0x36ac1e[_0x1a9148(0x23cb)]=[],_0x36ac1e['allowedItems']=[],_0x36ac1e[_0x1a9148(0x1f4f)]=[],_0x36ac1e['startingAllowedItems']=[],_0x36ac1e[_0x1a9148(0x24e1)]=[],_0x36ac1e[_0x1a9148(0xe9e)]=![],_0x36ac1e[_0x1a9148(0x1eeb)]={'readOnly':!_0x36ac1e['crudPermissions'][_0x1a9148(0xd86)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x1a9148(0x2494),'line1':_0x1a9148(0x2494),'line2':'','line3':'','labelAll':_0x5d9a70[_0x1a9148(0x2292)]('APP.ALL_TEAMS'),'labelSelected':_0x5d9a70['instant'](_0x1a9148(0x2936)),'transferCallback':function(_0x27c2e5,_0x516557){const _0x13ba24=_0x1a9148;_0x516557?_0x27c2e5[_0x13ba24(0x1397)](function(_0xa31c79){const _0x4b70e8=_0x13ba24;_0xa31c79[_0x4b70e8(0x70f)]=undefined;}):_0x27c2e5['forEach'](function(_0x34eb40){const _0xc49b09=_0x13ba24;_0x34eb40['penalty']=_0xc49b09(0xcff)+_0x36ac1e[_0xc49b09(0x70f)];});const _0x22cab2=_0x28c606()[_0x13ba24(0x1ad)](_0x36ac1e['startingSelectedItems'],_0x36ac1e[_0x13ba24(0x1f4f)],'id');_0x36ac1e[_0x13ba24(0xe9e)]=_0x28c606()[_0x13ba24(0x940)](_0x22cab2)?![]:!![];}},_0x36ac1e['onInit']=_0x2e66f7,_0x36ac1e[_0x1a9148(0x1c8c)]=_0x1b5f04,_0x36ac1e[_0x1a9148(0x16cb)]=_0x8ca69d;function _0x2e66f7(){const _0x2de45c=_0x1a9148;return _0x3d2aeb[_0x2de45c(0x4de)](_0x2de45c(0x333))?_0x43a288()[_0x2de45c(0x20cd)](function(_0x5bdfb9){const _0x23b3e0=_0x2de45c;_0x199b17['error']({'title':_0x5bdfb9[_0x23b3e0(0x10b3)]?_0x23b3e0(0x575)+_0x5bdfb9[_0x23b3e0(0x10b3)]+_0x23b3e0(0x21db)+_0x5bdfb9['statusText']:_0x23b3e0(0x1542),'msg':_0x5bdfb9['status']?JSON[_0x23b3e0(0x2317)](_0x5bdfb9['data']):_0x5bdfb9['toString']()});}):_0x4acb69()[_0x2de45c(0x64a)](function(_0x59965c){return _0x36ac1e['section']=_0x59965c,_0x43a288();})[_0x2de45c(0x20cd)](function(_0x356726){const _0x3102c2=_0x2de45c;_0x199b17['error']({'title':_0x356726[_0x3102c2(0x10b3)]?_0x3102c2(0x575)+_0x356726[_0x3102c2(0x10b3)]+_0x3102c2(0x21db)+_0x356726[_0x3102c2(0x2115)]:_0x3102c2(0x1542),'msg':_0x356726[_0x3102c2(0x10b3)]?JSON[_0x3102c2(0x2317)](_0x356726[_0x3102c2(0x1c52)]):_0x356726['toString']()});});}function _0x4acb69(){return _0xefa070(function(_0x1e23ac,_0x34b1ad){const _0x7de569=a0_0x4127;_0x24ba61[_0x7de569(0x16b2)]['get']({'userProfileId':_0x36ac1e['currentUser'][_0x7de569(0x21ac)],'name':'Teams'})['$promise']['then'](function(_0x3565e5){const _0x2c16e9=_0x7de569,_0x311f9d=_0x3565e5&&_0x3565e5['rows']?_0x3565e5[_0x2c16e9(0x28b8)][0x0]:null;_0x1e23ac(_0x311f9d);})['catch'](function(_0x4c0263){_0x34b1ad(_0x4c0263);});});}function _0x43a288(){return _0xefa070(function(_0x2cdc90,_0x5bf10d){const _0x8d2f1d=a0_0x4127;return _0x46c5b8()[_0x8d2f1d(0x64a)](function(_0x13aa16){const _0x24b2c7=_0x8d2f1d;return _0x36ac1e['items']=_0x13aa16[_0x24b2c7(0x28b8)]?_0x13aa16['rows']:[],_0x3d2aeb[_0x24b2c7(0x4de)](_0x24b2c7(0x333))?_0x13aa16:_0x36ac1e[_0x24b2c7(0xa21)]?_0x36ac1e[_0x24b2c7(0xa21)][_0x24b2c7(0x11da)]?_0x13aa16:_0x309924():null;})[_0x8d2f1d(0x64a)](function(_0x21dd25){const _0x3ef0f0=_0x8d2f1d,_0x459451=_0x21dd25&&_0x21dd25[_0x3ef0f0(0x28b8)]?_0x21dd25['rows']:[];return _0x36ac1e[_0x3ef0f0(0x13d1)]=_0x28c606()[_0x3ef0f0(0x1de5)](_0x459451,function(_0x37b3f0){const _0x481bd4=_0x3ef0f0;return _0x28c606()[_0x481bd4(0x27bc)](_0x36ac1e[_0x481bd4(0x23cb)],{'id':_0x3d2aeb[_0x481bd4(0x4de)](_0x481bd4(0x333))||_0x36ac1e['section'][_0x481bd4(0x11da)]?_0x37b3f0['id']:_0x37b3f0[_0x481bd4(0x145)]});}),_0x36ac1e['items']['forEach'](function(_0x414e29){const _0x415457=_0x3ef0f0,_0x64772f=_0x28c606()['find'](_0x36ac1e[_0x415457(0x13d1)],{'id':_0x414e29['id']});_0x3d2aeb['hasRole']('admin')?_0x414e29[_0x415457(0x6f9)]=!![]:_0x414e29[_0x415457(0x6f9)]=typeof _0x64772f!==_0x415457(0x19a1)?!![]:![];}),_0x33fc32();})['then'](function(_0xd6303e){const _0x24481b=_0x8d2f1d,_0x4e3c50=_0xd6303e&&_0xd6303e[_0x24481b(0x28b8)]?_0xd6303e['rows']:[];_0x36ac1e['selectedItems']=_0x28c606()[_0x24481b(0x1de5)](_0x4e3c50,function(_0xa1110){const _0xb33d3c=_0x24481b;return _0x28c606()[_0xb33d3c(0x27bc)](_0x36ac1e[_0xb33d3c(0x23cb)],{'id':_0xa1110['id']});}),_0x36ac1e[_0x24481b(0x24e1)]=angular[_0x24481b(0x289e)](_0x36ac1e[_0x24481b(0x1f4f)]),_0x36ac1e[_0x24481b(0x1eeb)][_0x24481b(0x1f4f)]=_0x36ac1e[_0x24481b(0x1f4f)],_0x36ac1e['dualMultiselectOptions'][_0x24481b(0x23cb)]=_0x28c606()[_0x24481b(0x23e5)](_0x36ac1e[_0x24481b(0x13d1)],_0x36ac1e['dualMultiselectOptions'][_0x24481b(0x1f4f)],'id'),_0x2cdc90();})['catch'](function(_0x3913d1){_0x5bf10d(_0x3913d1);});});}function _0x309924(){return _0xefa070(function(_0x22754e,_0x1857f8){const _0x259324=a0_0x4127;return _0x24ba61[_0x259324(0x1617)][_0x259324(0x896)]({'sectionId':_0x36ac1e[_0x259324(0xa21)]['id'],'nolimit':!![]})[_0x259324(0x15e7)]['then'](function(_0x2610c3){_0x22754e(_0x2610c3);})[_0x259324(0x20cd)](function(_0x366016){_0x1857f8(_0x366016);});});}function _0x33fc32(){return _0xefa070(function(_0x5e6f1c,_0xcf1adb){const _0xda9f32=a0_0x4127;return _0x24ba61[_0xda9f32(0x178b)][_0xda9f32(0x151d)]({'id':_0x36ac1e[_0xda9f32(0x279)]['id'],'fields':_0xda9f32(0x1427),'nolimit':!![]})[_0xda9f32(0x15e7)][_0xda9f32(0x64a)](function(_0x586366){_0x5e6f1c(_0x586366);})[_0xda9f32(0x20cd)](function(_0x23696f){_0xcf1adb(_0x23696f);});});}function _0x46c5b8(){return _0xefa070(function(_0x5df029,_0x38ba91){const _0x120697=a0_0x4127;return _0x24ba61[_0x120697(0x15ea)]['get']({'fields':_0x120697(0x1427),'nolimit':!![]})[_0x120697(0x15e7)][_0x120697(0x64a)](function(_0x593f4c){_0x5df029(_0x593f4c);})[_0x120697(0x20cd)](function(_0x2a7332){_0x38ba91(_0x2a7332);});});}function _0x43b1da(_0x157ef1){return _0xefa070(function(_0x56a877,_0xb0e22f){const _0x4e48d4=a0_0x4127;if(_0x28c606()[_0x4e48d4(0x940)](_0x157ef1))_0x56a877();else{const _0x27f794=_0x28c606()[_0x4e48d4(0x1de5)](_0x157ef1,function(_0x4feee2){const _0x310943=_0x4e48d4;return{'id':_0x4feee2['id'],'penalty':_0x28c606()[_0x310943(0xd66)](_0x4feee2['penalty'],_0x310943(0xcff))};});return _0x24ba61['voiceQueue'][_0x4e48d4(0x1858)]({'id':_0x36ac1e[_0x4e48d4(0x279)]['id'],'teams':_0x27f794})[_0x4e48d4(0x15e7)]['then'](function(){_0x56a877();})[_0x4e48d4(0x20cd)](function(_0x2b40b6){_0xb0e22f(_0x2b40b6);});}});}function _0xb7bf13(_0x3c3681){return _0xefa070(function(_0x29312e,_0x31c746){const _0x53f8f6=a0_0x4127;_0x28c606()[_0x53f8f6(0x940)](_0x3c3681)?_0x29312e():_0x24ba61[_0x53f8f6(0x178b)][_0x53f8f6(0x6d5)]({'id':_0x36ac1e['queueCampaign']['id'],'ids':_0x28c606()[_0x53f8f6(0x1de5)](_0x3c3681,'id')})[_0x53f8f6(0x15e7)]['then'](function(){_0x29312e();})[_0x53f8f6(0x20cd)](function(_0x107168){_0x31c746(_0x107168);});});}function _0x1b5f04(){const _0x2cd135=_0x1a9148,_0x26bec3=_0x28c606()[_0x2cd135(0x23e5)](_0x36ac1e[_0x2cd135(0x24e1)],_0x36ac1e[_0x2cd135(0x1f4f)],'id'),_0x37a243=_0x28c606()[_0x2cd135(0x23e5)](_0x36ac1e[_0x2cd135(0x1f4f)],_0x36ac1e[_0x2cd135(0x24e1)],'id');return _0xb7bf13(_0x26bec3)[_0x2cd135(0x64a)](function(){return _0x43b1da(_0x37a243);})[_0x2cd135(0x64a)](function(){const _0x1b3fc4=_0x2cd135;_0x36ac1e[_0x1b3fc4(0xe9e)]=![],_0x36ac1e[_0x1b3fc4(0x206b)]=angular[_0x1b3fc4(0x289e)](_0x36ac1e['allowedItems']),_0x36ac1e[_0x1b3fc4(0x24e1)]=angular[_0x1b3fc4(0x289e)](_0x36ac1e['selectedItems']),_0x199b17[_0x1b3fc4(0x1339)]({'title':_0x1b3fc4(0x24d6),'msg':_0x1b3fc4(0x1932)});})[_0x2cd135(0x20cd)](function(_0x27095c){const _0x49b666=_0x2cd135;_0x199b17[_0x49b666(0x1bd0)]({'title':_0x27095c[_0x49b666(0x10b3)]?_0x49b666(0x575)+_0x27095c[_0x49b666(0x10b3)]+_0x49b666(0x21db)+_0x27095c[_0x49b666(0x2115)]:_0x49b666(0x1226),'msg':_0x27095c[_0x49b666(0x10b3)]?JSON[_0x49b666(0x2317)](_0x27095c['data']):_0x27095c[_0x49b666(0x2915)]()});});}function _0x8ca69d(){const _0x5aa49c=_0x1a9148;_0x452699[_0x5aa49c(0x268e)]();}}const _0x34c60b=_0x545746;;const _0x23983f=_0x2e4a48['p']+_0x49a1e3(0x1f75);;const _0x5d0c79=_0x2e4a48['p']+_0x49a1e3(0xbc1);;const _0x515647=_0x2e4a48['p']+_0x49a1e3(0x2372);;const _0x6a5787=_0x2e4a48['p']+_0x49a1e3(0x103c);;const _0x526837=_0x2e4a48['p']+_0x49a1e3(0x2136);;_0x48525d['$inject']=[_0x49a1e3(0x77f),'$location','$mdDialog',_0x49a1e3(0x1373),'$translate',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),'toasty',_0x49a1e3(0xdcf),_0x49a1e3(0x279),'userProfileSection'];function _0x48525d(_0x59a07e,_0x5f3aee,_0x25f70b,_0x170206,_0x598d0f,_0x209f91,_0x1e7baf,_0x5dad31,_0x28e6c9,_0x41d019,_0x3b999b,_0x54d8f1){const _0x357c63=_0x49a1e3,_0x4715e7=this;_0x4715e7[_0x357c63(0x1d3d)]=_0x41d019['getCurrentUser'](),_0x4715e7[_0x357c63(0x1947)]=_0x209f91,_0x4715e7[_0x357c63(0x28d6)]=_0x1e7baf,_0x4715e7[_0x357c63(0xccc)]=_0x4715e7[_0x357c63(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4715e7[_0x357c63(0xb36)]=_0x5f3aee[_0x357c63(0x48e)]()+_0x357c63(0xe1f)+_0x5f3aee[_0x357c63(0x1e5d)](),_0x4715e7[_0x357c63(0x279)]=_0x3b999b||_0x59a07e[_0x357c63(0x1b48)][_0x357c63(0x279)]||{},_0x4715e7[_0x357c63(0x16b2)]=_0x54d8f1&&_0x54d8f1[_0x357c63(0xb90)]==0x1?_0x54d8f1[_0x357c63(0x28b8)][0x0]:null,_0x4715e7[_0x357c63(0x402)]=_0x41d019[_0x357c63(0xa7e)](_0x4715e7[_0x357c63(0x16b2)]?_0x4715e7[_0x357c63(0x16b2)][_0x357c63(0x402)]:null),_0x4715e7['hasModulePermissions']={},_0x4715e7[_0x357c63(0x197c)]=_0x59a07e['params'][_0x357c63(0x1222)]||0x0,_0x4715e7[_0x357c63(0x1676)]=_0x51c48a,_0x4715e7[_0x357c63(0x1cb0)]=_0x60e32c,_0x4715e7['blacklistadddialog']=_0xc475dd,_0x4715e7[_0x357c63(0x1a72)]=_0x1950d9,_0x4715e7[_0x357c63(0x104a)]=_0x5a9e8b,_0x4715e7[_0x357c63(0x39f)]=_0x20a4ec,_0x4715e7[_0x357c63(0x505)]=_0xf04ffa,_0x4715e7[_0x357c63(0x2540)]=_0x28e6c9[_0x357c63(0x772)],_0x4715e7['gotoQueueCampaigns']=_0x37dd0c,_0x4715e7[_0x357c63(0x12dd)]=_0x568498,_0x41d019[_0x357c63(0x4de)](_0x357c63(0x333))?_0x5dad31['voiceMusicOnHold'][_0x357c63(0x896)]({'fields':'id,name','nolimit':'true'})[_0x357c63(0x15e7)][_0x357c63(0x64a)](function(_0x2d0e12){const _0x2f6d7f=_0x357c63;_0x4715e7[_0x2f6d7f(0x9e4)]=_0x2d0e12[_0x2f6d7f(0x28b8)]||[];})[_0x357c63(0x20cd)](function(_0x4a5250){const _0xd7ec94=_0x357c63;_0x28e6c9[_0xd7ec94(0x1bd0)]({'title':_0x4a5250['status']?'API:'+_0x4a5250[_0xd7ec94(0x10b3)]+_0xd7ec94(0x21db)+_0x4a5250[_0xd7ec94(0x2115)]:_0xd7ec94(0x2725),'msg':_0x4a5250[_0xd7ec94(0x1c52)]?JSON[_0xd7ec94(0x2317)](_0x4a5250[_0xd7ec94(0x1c52)]):_0x4a5250[_0xd7ec94(0x2915)]()});}):_0x5dad31[_0x357c63(0x1b55)][_0x357c63(0x896)]({'fields':'id,name','nolimit':'true'})[_0x357c63(0x15e7)][_0x357c63(0x64a)](function(_0x394696){_0x4715e7['musiconholds']=_0x394696['rows']||[];})[_0x357c63(0x64a)](function(){const _0x5490d1=_0x357c63;return _0x5dad31[_0x5490d1(0x16b2)][_0x5490d1(0x896)]({'userProfileId':_0x4715e7['currentUser'][_0x5490d1(0x21ac)],'sectionId':0x197})[_0x5490d1(0x15e7)];})['then'](function(_0xc0f51a){const _0x39977d=_0x357c63,_0x3200a1=_0xc0f51a&&_0xc0f51a[_0x39977d(0x28b8)]?_0xc0f51a[_0x39977d(0x28b8)][0x0]:null;if(!_0x3200a1)return _0x5dad31[_0x39977d(0x1b55)][_0x39977d(0x896)]({'fields':'id,name','nolimit':_0x39977d(0x1685),'defaultEntry':0x1})['$promise']['then'](function(_0x2b9e2e){const _0x13b3df=_0x39977d;_0x4715e7['musiconholds']=_0x2b9e2e[_0x13b3df(0x28b8)]||[];});else{if(!_0x3200a1[_0x39977d(0x11da)])return _0x5dad31[_0x39977d(0x1617)]['get']({'sectionId':_0x3200a1['id']})[_0x39977d(0x15e7)]['then'](function(_0x55c7e9){const _0x4ca9b4=_0x39977d,_0x103af8=_0x28c606()[_0x4ca9b4(0x1de5)](_0x55c7e9[_0x4ca9b4(0x28b8)],function(_0xe9cdd){const _0x205284=_0x4ca9b4;return _0x28c606()[_0x205284(0x27bc)](_0x4715e7[_0x205284(0x9e4)],{'id':_0xe9cdd['resourceId']});});let _0x5b4244=null;_0x4715e7[_0x4ca9b4(0x279)]&&(_0x5b4244=_0x28c606()[_0x4ca9b4(0x27bc)](_0x4715e7[_0x4ca9b4(0x9e4)],{'name':_0x4715e7[_0x4ca9b4(0x279)][_0x4ca9b4(0x2082)]}));if(_0x5b4244&&!_0x28c606()[_0x4ca9b4(0x25f8)](_0x103af8,['id',_0x5b4244['id']])){const _0x283917=_0x28c606()[_0x4ca9b4(0x27bc)](_0x4715e7[_0x4ca9b4(0x9e4)],{'id':_0x5b4244['id']});_0x283917[_0x4ca9b4(0xd4f)]=![],_0x103af8[_0x4ca9b4(0x1954)](_0x283917);}_0x4715e7[_0x4ca9b4(0x9e4)]=_0x103af8;});}})[_0x357c63(0x20cd)](function(_0x540dbf){const _0x15da72=_0x357c63;_0x28e6c9['error']({'title':_0x540dbf['status']?_0x15da72(0x575)+_0x540dbf['status']+_0x15da72(0x21db)+_0x540dbf[_0x15da72(0x2115)]:_0x15da72(0x1dc3),'msg':_0x540dbf[_0x15da72(0x1c52)]?JSON['stringify'](_0x540dbf['data']):_0x540dbf[_0x15da72(0x2915)]()});}),_0x41d019[_0x357c63(0x4de)](_0x357c63(0x333))?_0x5dad31[_0x357c63(0x4ef)][_0x357c63(0x896)]({'fields':_0x357c63(0x1427),'sort':'name'})['$promise']['then'](function(_0x1ae3fe){const _0x4e8425=_0x357c63;_0x4715e7[_0x4e8425(0xe23)]=_0x1ae3fe['rows']||[];})[_0x357c63(0x20cd)](function(_0x311863){const _0xc0db02=_0x357c63;_0x28e6c9['error']({'title':_0x311863[_0xc0db02(0x10b3)]?'API:'+_0x311863[_0xc0db02(0x10b3)]+_0xc0db02(0x21db)+_0x311863['statusText']:_0xc0db02(0x1d82),'msg':_0x311863['data']?JSON[_0xc0db02(0x2317)](_0x311863['data']):_0x311863[_0xc0db02(0x2915)]()});}):_0x5dad31[_0x357c63(0x4ef)][_0x357c63(0x896)]({'fields':_0x357c63(0x1427),'sort':_0x357c63(0x2494)})[_0x357c63(0x15e7)]['then'](function(_0x48c25b){const _0x2e2987=_0x357c63;_0x4715e7[_0x2e2987(0xe23)]=_0x48c25b['rows']||[];})[_0x357c63(0x64a)](function(){const _0x147e22=_0x357c63;return _0x5dad31[_0x147e22(0x16b2)][_0x147e22(0x896)]({'userProfileId':_0x4715e7[_0x147e22(0x1d3d)]['userProfileId'],'sectionId':0x3f3})[_0x147e22(0x15e7)];})[_0x357c63(0x64a)](function(_0x10998e){const _0xfc8674=_0x357c63,_0x765469=_0x10998e&&_0x10998e[_0xfc8674(0x28b8)]?_0x10998e[_0xfc8674(0x28b8)][0x0]:null;if(!_0x765469){const _0x7f200c=[];let _0x173d35=null;_0x4715e7['queueCampaign']&&(_0x173d35=_0x28c606()['find'](_0x4715e7[_0xfc8674(0xe23)],{'id':Number(_0x4715e7[_0xfc8674(0x279)][_0xfc8674(0x1c2)])}));for(let _0x2f165b=0x0;_0x2f165b<_0x4715e7['trunks'][_0xfc8674(0x1b9e)];_0x2f165b++){_0x173d35&&_0x4715e7[_0xfc8674(0xe23)][_0x2f165b]['id']===_0x173d35['id']&&(_0x4715e7['trunks'][_0x2f165b][_0xfc8674(0xd4f)]=![],_0x7f200c[_0xfc8674(0x1954)](_0x4715e7['trunks'][_0x2f165b]));}_0x4715e7[_0xfc8674(0xe23)]=_0x7f200c;}else{if(!_0x765469['autoAssociation'])return _0x5dad31['userProfileResource'][_0xfc8674(0x896)]({'sectionId':_0x765469['id']})[_0xfc8674(0x15e7)]['then'](function(_0x105069){const _0x5a93bc=_0xfc8674,_0xad00ae=_0x28c606()[_0x5a93bc(0x1de5)](_0x105069['rows'],function(_0x3b65d6){const _0x3ff5b5=_0x5a93bc;return _0x28c606()[_0x3ff5b5(0x27bc)](_0x4715e7[_0x3ff5b5(0xe23)],{'id':_0x3b65d6['resourceId']});});let _0x5d861d=null;_0x4715e7[_0x5a93bc(0x279)]&&(_0x5d861d=_0x28c606()[_0x5a93bc(0x27bc)](_0x4715e7[_0x5a93bc(0xe23)],{'id':Number(_0x4715e7[_0x5a93bc(0x279)][_0x5a93bc(0x1c2)])}));if(_0x5d861d&&!_0x28c606()[_0x5a93bc(0x25f8)](_0xad00ae,['id',_0x5d861d['id']])){const _0x294b41=_0x28c606()[_0x5a93bc(0x27bc)](_0x4715e7[_0x5a93bc(0xe23)],{'id':_0x5d861d['id']});_0x294b41[_0x5a93bc(0xd4f)]=![],_0xad00ae[_0x5a93bc(0x1954)](_0x294b41);}_0x4715e7[_0x5a93bc(0xe23)]=_0xad00ae;});}})[_0x357c63(0x20cd)](function(_0x33ad1e){const _0x30b0a5=_0x357c63;_0x28e6c9['error']({'title':_0x33ad1e[_0x30b0a5(0x10b3)]?_0x30b0a5(0x575)+_0x33ad1e[_0x30b0a5(0x10b3)]+_0x30b0a5(0x21db)+_0x33ad1e['statusText']:_0x30b0a5(0x89a),'msg':_0x33ad1e[_0x30b0a5(0x1c52)]?JSON[_0x30b0a5(0x2317)](_0x33ad1e[_0x30b0a5(0x1c52)]):_0x33ad1e[_0x30b0a5(0x2915)]()});}),_0x41d019[_0x357c63(0x4de)](_0x357c63(0x333))?_0x5dad31[_0x357c63(0x2101)][_0x357c63(0x896)]({'fields':_0x357c63(0x1427),'sort':'name'})[_0x357c63(0x15e7)][_0x357c63(0x64a)](function(_0xa5f69){const _0x1dbbe5=_0x357c63;_0x4715e7[_0x1dbbe5(0x1d73)]=_0xa5f69[_0x1dbbe5(0x28b8)]||[];})[_0x357c63(0x20cd)](function(_0x434f95){const _0x181bdd=_0x357c63;_0x28e6c9[_0x181bdd(0x1bd0)]({'title':_0x434f95['status']?_0x181bdd(0x575)+_0x434f95[_0x181bdd(0x10b3)]+_0x181bdd(0x21db)+_0x434f95[_0x181bdd(0x2115)]:'SYSTEM:GET_PROJECTS','msg':_0x434f95[_0x181bdd(0x1c52)]?JSON[_0x181bdd(0x2317)](_0x434f95[_0x181bdd(0x1c52)]):_0x434f95[_0x181bdd(0x2915)]()});}):_0x5dad31['squareProject'][_0x357c63(0x896)]({'fields':_0x357c63(0x1427),'sort':_0x357c63(0x2494)})[_0x357c63(0x15e7)][_0x357c63(0x64a)](function(_0xe466a9){const _0x3e14df=_0x357c63;_0x4715e7[_0x3e14df(0x1d73)]=_0xe466a9[_0x3e14df(0x28b8)]||[];})[_0x357c63(0x64a)](function(){const _0x4cef2f=_0x357c63;return _0x5dad31['userProfileSection'][_0x4cef2f(0x896)]({'userProfileId':_0x4715e7[_0x4cef2f(0x1d3d)][_0x4cef2f(0x21ac)],'sectionId':0x44f})[_0x4cef2f(0x15e7)];})[_0x357c63(0x64a)](function(_0x357efb){const _0x144103=_0x357c63,_0x1bb1d1=_0x357efb&&_0x357efb[_0x144103(0x28b8)]?_0x357efb[_0x144103(0x28b8)][0x0]:null;if(!_0x1bb1d1){const _0x5a4f33=[];let _0xce6a85=null;_0x4715e7[_0x144103(0x279)]&&(_0xce6a85=_0x28c606()[_0x144103(0x27bc)](_0x4715e7[_0x144103(0x1d73)],{'name':_0x4715e7[_0x144103(0x279)][_0x144103(0x22b)]}));for(let _0x2bbeca=0x0;_0x2bbeca<_0x4715e7[_0x144103(0x1d73)][_0x144103(0x1b9e)];_0x2bbeca++){_0xce6a85&&_0x4715e7[_0x144103(0x1d73)][_0x2bbeca]['id']===_0xce6a85['id']&&(_0x4715e7[_0x144103(0x1d73)][_0x2bbeca][_0x144103(0xd4f)]=![],_0x5a4f33[_0x144103(0x1954)](_0x4715e7[_0x144103(0x1d73)][_0x2bbeca]));}_0x4715e7[_0x144103(0x1d73)]=_0x5a4f33;}else{if(!_0x1bb1d1['autoAssociation'])return _0x5dad31[_0x144103(0x1617)][_0x144103(0x896)]({'sectionId':_0x1bb1d1['id']})[_0x144103(0x15e7)][_0x144103(0x64a)](function(_0x4478cd){const _0x343bc0=_0x144103,_0x555430=_0x28c606()['map'](_0x4478cd[_0x343bc0(0x28b8)],function(_0xf40c61){const _0x1b047a=_0x343bc0;return _0x28c606()[_0x1b047a(0x27bc)](_0x4715e7['projects'],{'id':_0xf40c61[_0x1b047a(0x145)]});});let _0x4515a7=null;_0x4715e7[_0x343bc0(0x279)]&&(_0x4515a7=_0x28c606()[_0x343bc0(0x27bc)](_0x4715e7['projects'],{'name':_0x4715e7[_0x343bc0(0x279)][_0x343bc0(0x22b)]}));if(_0x4515a7&&!_0x28c606()[_0x343bc0(0x25f8)](_0x555430,['id',_0x4515a7['id']])){const _0x3075e9=_0x28c606()[_0x343bc0(0x27bc)](_0x4715e7[_0x343bc0(0x1d73)],{'id':_0x4515a7['id']});_0x3075e9[_0x343bc0(0xd4f)]=![],_0x555430[_0x343bc0(0x1954)](_0x3075e9);}_0x4715e7[_0x343bc0(0x1d73)]=_0x555430;});}})[_0x357c63(0x20cd)](function(_0x15549b){const _0x4ed9eb=_0x357c63;_0x28e6c9['error']({'title':_0x15549b[_0x4ed9eb(0x10b3)]?_0x4ed9eb(0x575)+_0x15549b[_0x4ed9eb(0x10b3)]+'\x20-\x20'+_0x15549b[_0x4ed9eb(0x2115)]:_0x4ed9eb(0x2786),'msg':_0x15549b['data']?JSON[_0x4ed9eb(0x2317)](_0x15549b[_0x4ed9eb(0x1c52)]):_0x15549b['toString']()});}),_0x41d019[_0x357c63(0x4de)](_0x357c63(0x333))?_0x5dad31[_0x357c63(0xcfd)][_0x357c63(0x896)]({'fields':_0x357c63(0x1427),'sort':'name','IntervalId':_0x357c63(0x8f1)})['$promise'][_0x357c63(0x64a)](function(_0x21add3){const _0x2b214f=_0x357c63;_0x4715e7[_0x2b214f(0xcfd)]=_0x21add3[_0x2b214f(0x28b8)]||[];})[_0x357c63(0x20cd)](function(_0x448527){const _0xa98b50=_0x357c63;_0x28e6c9['error']({'title':_0x448527[_0xa98b50(0x10b3)]?_0xa98b50(0x575)+_0x448527[_0xa98b50(0x10b3)]+'\x20-\x20'+_0x448527[_0xa98b50(0x2115)]:'SYSTEM:GET_INTERVAL','msg':_0x448527['data']?JSON[_0xa98b50(0x2317)](_0x448527['data']):_0x448527[_0xa98b50(0x2915)]()});}):_0x5dad31[_0x357c63(0xcfd)]['get']({'fields':'id,name','sort':_0x357c63(0x2494),'IntervalId':'null'})[_0x357c63(0x15e7)][_0x357c63(0x64a)](function(_0x198a60){_0x4715e7['interval']=_0x198a60['rows']||[];})[_0x357c63(0x64a)](function(){const _0x1ada68=_0x357c63;return _0x5dad31[_0x1ada68(0x16b2)][_0x1ada68(0x896)]({'userProfileId':_0x4715e7['currentUser'][_0x1ada68(0x21ac)],'sectionId':0x3ec})['$promise'];})[_0x357c63(0x64a)](function(_0x41f6a0){const _0x23da86=_0x357c63,_0x31e9fe=_0x41f6a0&&_0x41f6a0[_0x23da86(0x28b8)]?_0x41f6a0['rows'][0x0]:null;if(!_0x31e9fe){const _0x6f01f8=[];let _0x483cc5=null;_0x4715e7[_0x23da86(0x279)]&&(_0x483cc5=_0x28c606()[_0x23da86(0x27bc)](_0x4715e7[_0x23da86(0xcfd)],{'id':Number(_0x4715e7[_0x23da86(0x279)][_0x23da86(0xb71)])}));for(let _0x370228=0x0;_0x370228<_0x4715e7['interval'][_0x23da86(0x1b9e)];_0x370228++){_0x483cc5&&_0x4715e7['interval'][_0x370228]['id']===_0x483cc5['id']&&(_0x4715e7['interval'][_0x370228][_0x23da86(0xd4f)]=![],_0x6f01f8[_0x23da86(0x1954)](_0x4715e7[_0x23da86(0xcfd)][_0x370228]));}_0x4715e7[_0x23da86(0xcfd)]=_0x6f01f8;}else{if(!_0x31e9fe['autoAssociation'])return _0x5dad31[_0x23da86(0x1617)][_0x23da86(0x896)]({'sectionId':_0x31e9fe['id']})[_0x23da86(0x15e7)][_0x23da86(0x64a)](function(_0x505531){const _0x8e810f=_0x23da86,_0x332a36=_0x28c606()[_0x8e810f(0x1de5)](_0x505531[_0x8e810f(0x28b8)],function(_0x5581fe){const _0x1ca4bd=_0x8e810f;return _0x28c606()['find'](_0x4715e7[_0x1ca4bd(0xcfd)],{'id':_0x5581fe[_0x1ca4bd(0x145)]});});let _0x1a112b=null;_0x4715e7['queueCampaign']&&(_0x1a112b=_0x28c606()['find'](_0x4715e7['interval'],{'id':Number(_0x4715e7[_0x8e810f(0x279)]['IntervalId'])}));if(_0x1a112b&&!_0x28c606()[_0x8e810f(0x25f8)](_0x332a36,['id',_0x1a112b['id']])){const _0xd937a5=_0x28c606()[_0x8e810f(0x27bc)](_0x4715e7['interval'],{'id':_0x1a112b['id']});_0xd937a5['canSelect']=![],_0x332a36[_0x8e810f(0x1954)](_0xd937a5);}_0x4715e7[_0x8e810f(0xcfd)]=_0x332a36;});}})[_0x357c63(0x20cd)](function(_0x4ae329){const _0x36b30e=_0x357c63;_0x28e6c9[_0x36b30e(0x1bd0)]({'title':_0x4ae329['status']?'API:'+_0x4ae329['status']+'\x20-\x20'+_0x4ae329[_0x36b30e(0x2115)]:_0x36b30e(0x314),'msg':_0x4ae329['data']?JSON[_0x36b30e(0x2317)](_0x4ae329['data']):_0x4ae329[_0x36b30e(0x2915)]()});}),_0x41d019[_0x357c63(0x4de)](_0x357c63(0x333))?_0x5dad31[_0x357c63(0x2826)][_0x357c63(0x896)]({'fields':'name,id','sort':_0x357c63(0x2494),'nolimit':_0x357c63(0x1685)})[_0x357c63(0x15e7)]['then'](function(_0x1c4db8){const _0x35f220=_0x357c63;_0x4715e7[_0x35f220(0x23d1)]=_0x1c4db8['rows']||[];})['catch'](function(_0x57b295){const _0x3dfbac=_0x357c63;_0x28e6c9[_0x3dfbac(0x1bd0)]({'title':_0x57b295['status']?_0x3dfbac(0x575)+_0x57b295[_0x3dfbac(0x10b3)]+_0x3dfbac(0x21db)+_0x57b295[_0x3dfbac(0x2115)]:_0x3dfbac(0x1a14),'msg':_0x57b295[_0x3dfbac(0x1c52)]?JSON[_0x3dfbac(0x2317)](_0x57b295[_0x3dfbac(0x1c52)]):_0x57b295['toString']()});}):_0x5dad31['pause'][_0x357c63(0x896)]({'fields':_0x357c63(0x1dfb),'sort':'name','nolimit':'true'})[_0x357c63(0x15e7)][_0x357c63(0x64a)](function(_0x169450){const _0x3a49b2=_0x357c63;_0x4715e7[_0x3a49b2(0x23d1)]=_0x169450[_0x3a49b2(0x28b8)]||[];})[_0x357c63(0x64a)](function(){const _0x6d652e=_0x357c63;return _0x5dad31[_0x6d652e(0x16b2)][_0x6d652e(0x896)]({'userProfileId':_0x4715e7['currentUser'][_0x6d652e(0x21ac)],'sectionId':0x3ed})[_0x6d652e(0x15e7)];})['then'](function(_0x375147){const _0x3ad9fe=_0x357c63,_0x3b7b1d=_0x375147&&_0x375147[_0x3ad9fe(0x28b8)]?_0x375147[_0x3ad9fe(0x28b8)][0x0]:null;if(!_0x3b7b1d)_0x4715e7[_0x3ad9fe(0x23d1)]=[];else{if(!_0x3b7b1d['autoAssociation'])return _0x5dad31[_0x3ad9fe(0x1617)][_0x3ad9fe(0x896)]({'sectionId':_0x3b7b1d['id']})[_0x3ad9fe(0x15e7)][_0x3ad9fe(0x64a)](function(_0x4c8314){const _0x1b63cb=_0x3ad9fe,_0x384048=_0x28c606()['map'](_0x4c8314[_0x1b63cb(0x28b8)],function(_0x1322fb){const _0x48ea7f=_0x1b63cb;return _0x28c606()['find'](_0x4715e7[_0x48ea7f(0x23d1)],{'id':_0x1322fb[_0x48ea7f(0x145)]});});_0x4715e7[_0x1b63cb(0x23d1)][_0x1b63cb(0x1397)](function(_0x33ca5a){const _0x41ea49=_0x1b63cb;!_0x28c606()[_0x41ea49(0x25f8)](_0x384048,['id',_0x33ca5a['id']])&&(_0x33ca5a[_0x41ea49(0xd4f)]=![]),_0x384048[_0x41ea49(0x1954)](_0x33ca5a);}),_0x4715e7[_0x1b63cb(0x23d1)]=_0x384048;});}})[_0x357c63(0x20cd)](function(_0x54115d){const _0x3d5117=_0x357c63;_0x28e6c9[_0x3d5117(0x1bd0)]({'title':_0x54115d[_0x3d5117(0x10b3)]?'API:'+_0x54115d[_0x3d5117(0x10b3)]+_0x3d5117(0x21db)+_0x54115d[_0x3d5117(0x2115)]:'SYSTEM:GETpauses','msg':_0x54115d[_0x3d5117(0x1c52)]?JSON['stringify'](_0x54115d[_0x3d5117(0x1c52)]):_0x54115d[_0x3d5117(0x2915)]()});});function _0x51c48a(_0x26ed94,_0x9277f2){const _0x534be3=_0x357c63;_0x25f70b[_0x534be3(0xa60)]({'controller':'QueueCampaigncloneController','controllerAs':'vm','templateUrl':_0x23983f,'parent':angular[_0x534be3(0x1f81)](_0x170206[_0x534be3(0xb49)]),'targetEvent':_0x9277f2,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x26ed94,'queueCampaigns':_0x4715e7[_0x534be3(0x18ae)]?_0x4715e7[_0x534be3(0x18ae)][_0x534be3(0x28b8)]:[],'crudPermissions':_0x4715e7['crudPermissions']}});}function _0x60e32c(_0x1d22f2,_0x54f0de){const _0x3f71f0=_0x357c63;_0x25f70b['show']({'controller':_0x3f71f0(0xe8d),'controllerAs':'vm','templateUrl':_0x5d0c79,'parent':angular[_0x3f71f0(0x1f81)](_0x170206[_0x3f71f0(0xb49)]),'targetEvent':_0x54f0de,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x1d22f2,'queueCampaigns':_0x4715e7[_0x3f71f0(0x18ae)]?_0x4715e7[_0x3f71f0(0x18ae)]['rows']:[],'crudPermissions':_0x4715e7[_0x3f71f0(0x402)]}});}function _0xc475dd(_0x6132b5,_0x2da8ce){const _0x1e4fcb=_0x357c63;_0x25f70b[_0x1e4fcb(0xa60)]({'controller':_0x1e4fcb(0x271e),'controllerAs':'vm','templateUrl':_0x515647,'parent':angular['element'](_0x170206[_0x1e4fcb(0xb49)]),'targetEvent':_0x2da8ce,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x6132b5,'queueCampaigns':_0x4715e7['queueCampaigns']?_0x4715e7['queueCampaigns'][_0x1e4fcb(0x28b8)]:[],'crudPermissions':_0x4715e7[_0x1e4fcb(0x402)]}});}function _0x1950d9(_0x59ebf5,_0x21bbc0){const _0x4073ba=_0x357c63;_0x25f70b[_0x4073ba(0xa60)]({'controller':_0x4073ba(0x1e2e),'controllerAs':'vm','templateUrl':_0x6a5787,'parent':angular[_0x4073ba(0x1f81)](_0x170206[_0x4073ba(0xb49)]),'targetEvent':_0x21bbc0,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x59ebf5,'queueCampaigns':_0x4715e7[_0x4073ba(0x18ae)]?_0x4715e7[_0x4073ba(0x18ae)][_0x4073ba(0x28b8)]:[],'crudPermissions':_0x4715e7[_0x4073ba(0x402)]}});}function _0x5a9e8b(_0x126a7d,_0x47977b){const _0x39b7a9=_0x357c63;_0x25f70b[_0x39b7a9(0xa60)]({'controller':_0x39b7a9(0x2852),'controllerAs':'vm','templateUrl':_0x22a261,'parent':angular[_0x39b7a9(0x1f81)](_0x170206[_0x39b7a9(0xb49)]),'targetEvent':_0x47977b,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x126a7d,'queueCampaigns':_0x4715e7[_0x39b7a9(0x18ae)]?_0x4715e7[_0x39b7a9(0x18ae)]['rows']:[],'crudPermissions':_0x4715e7['crudPermissions'],'realtime':![]}});}function _0x4cc309(_0x9541ee,_0x7eecad){const _0x3536e8=_0x357c63,_0x43796b=_0x7eecad['id'];_0x5dad31[_0x3536e8(0x178b)][_0x3536e8(0x2933)]({'id':_0x9541ee,'ids':_0x43796b})[_0x3536e8(0x15e7)][_0x3536e8(0x64a)](function(){const _0x966ff0=_0x3536e8;return _0x5dad31[_0x966ff0(0x178b)][_0x966ff0(0x2675)]({'id':_0x9541ee,'ids':_0x43796b,'dialCheckDuplicateType':_0x966ff0(0x233a)})[_0x966ff0(0x15e7)];})['then'](function(){const _0x20f949=_0x3536e8;_0x28e6c9[_0x20f949(0x1339)]({'title':_0x20f949(0x264),'msg':'List\x20'+_0x7eecad[_0x20f949(0x2494)]+_0x20f949(0x5d1)});})[_0x3536e8(0x20cd)](function(_0x1ee803){const _0x2ff045=_0x3536e8;_0x28e6c9['error']({'title':_0x1ee803[_0x2ff045(0x10b3)]?_0x2ff045(0x575)+_0x1ee803['status']+_0x2ff045(0x21db)+_0x1ee803['statusText']:_0x2ff045(0x385),'msg':_0x1ee803[_0x2ff045(0x10b3)]?JSON[_0x2ff045(0x2317)](_0x1ee803['data']):_0x1ee803[_0x2ff045(0x2915)]()});});}function _0x20a4ec(_0x312685,_0x8d8a7){const _0x509ea9=_0x357c63;_0x5dad31[_0x509ea9(0x178b)]['getLists']({'id':_0x312685['id'],'fields':_0x509ea9(0x1427),'nolimit':!![]})['$promise'][_0x509ea9(0x64a)](function(_0x199e4e){const _0x572a1d=_0x509ea9;if(_0x28c606()[_0x572a1d(0x28d7)](_0x199e4e[_0x572a1d(0x28b8)])||_0x28c606()['isEmpty'](_0x199e4e['rows']))_0x28e6c9[_0x572a1d(0x772)]({'title':_0x572a1d(0x1396)});else{if(_0x199e4e['rows'][_0x572a1d(0x1b9e)]===0x1){const _0x50a6ab=_0x25f70b['confirm']()[_0x572a1d(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20reset\x20the\x20list\x20'+_0x199e4e[_0x572a1d(0x28b8)][0x0][_0x572a1d(0x2494)]+'\x20?')['htmlContent'](''+_0x199e4e[_0x572a1d(0x28b8)][0x0][_0x572a1d(0x2494)]+_0x572a1d(0x26d0)+_0x572a1d(0x1653))[_0x572a1d(0x213e)](_0x572a1d(0x1c80))[_0x572a1d(0x2283)](_0x8d8a7)['ok']('OK')['cancel']('CANCEL');_0x25f70b[_0x572a1d(0xa60)](_0x50a6ab)['then'](function(){const _0x52a4fa=_0x572a1d;_0x4cc309(_0x4715e7[_0x52a4fa(0x279)]['id'],_0x199e4e[_0x52a4fa(0x28b8)][0x0]);});}else _0x25f70b[_0x572a1d(0xa60)]({'controller':_0x572a1d(0x1d7c),'controllerAs':'vm','templateUrl':_0x526837,'parent':angular[_0x572a1d(0x1f81)](_0x170206[_0x572a1d(0xb49)]),'targetEvent':_0x8d8a7,'clickOutsideToClose':![],'locals':{'queueCampaign':_0x312685,'listsCampaign':_0x199e4e?_0x199e4e[_0x572a1d(0x28b8)]:[]}});}})[_0x509ea9(0x20cd)](function(_0x2a5e09){const _0x370f2b=_0x509ea9;_0x28e6c9[_0x370f2b(0x1bd0)]({'title':_0x2a5e09[_0x370f2b(0x10b3)]?_0x370f2b(0x575)+_0x2a5e09[_0x370f2b(0x10b3)]+_0x370f2b(0x21db)+_0x2a5e09[_0x370f2b(0x2115)]:'SYSTEM:RESETLIST','msg':_0x2a5e09[_0x370f2b(0x10b3)]?JSON[_0x370f2b(0x2317)](_0x2a5e09['data']):_0x2a5e09[_0x370f2b(0x2915)]()});});}function _0xf04ffa(){const _0x5c05d2=_0x357c63;if(_0x41d019[_0x5c05d2(0x4de)](_0x5c05d2(0x333)))_0x59a07e['go'](_0x5c05d2(0x7bc),{});else return _0x5dad31[_0x5c05d2(0x16b2)][_0x5c05d2(0x896)]({'userProfileId':_0x41d019[_0x5c05d2(0x808)]()[_0x5c05d2(0x21ac)],'sectionId':0x5e6})[_0x5c05d2(0x15e7)]['then'](function(_0x4600ae){const _0x58c5f6=_0x5c05d2,_0x312870=_0x4600ae&&_0x4600ae[_0x58c5f6(0x28b8)]?_0x4600ae['rows'][0x0]:null;_0x312870&&_0x312870[_0x58c5f6(0xe49)]?_0x59a07e['go'](_0x58c5f6(0x7bc),{}):_0x28e6c9['info']({'title':_0x598d0f[_0x58c5f6(0x2292)](_0x58c5f6(0x111a)),'msg':_0x598d0f[_0x58c5f6(0x2292)](_0x58c5f6(0x229))});})[_0x5c05d2(0x20cd)](function(_0x434abc){const _0x217ceb=_0x5c05d2;_0x28e6c9[_0x217ceb(0x1bd0)]({'title':_0x434abc['status']?_0x217ceb(0x575)+_0x434abc[_0x217ceb(0x10b3)]+_0x217ceb(0x21db)+_0x434abc['statusText']:_0x217ceb(0x942),'msg':_0x434abc[_0x217ceb(0x10b3)]?JSON[_0x217ceb(0x2317)](_0x434abc['data']):_0x434abc[_0x217ceb(0x2915)]()});});}function _0x37dd0c(){const _0x2bfe04=_0x357c63;_0x59a07e['go'](_0x2bfe04(0x47d),{},{'reload':_0x2bfe04(0x47d)});}function _0x568498(){const _0x30fe1c=_0x357c63;_0x5dad31[_0x30fe1c(0x178b)][_0x30fe1c(0x2603)]({'id':_0x4715e7[_0x30fe1c(0x279)]['id']},_0x4715e7['queueCampaign'])[_0x30fe1c(0x15e7)][_0x30fe1c(0x64a)](function(){const _0x25089f=_0x30fe1c;_0x28e6c9[_0x25089f(0x1339)]({'title':_0x25089f(0x110f),'msg':_0x4715e7['queueCampaign'][_0x25089f(0x2494)]?_0x4715e7[_0x25089f(0x279)][_0x25089f(0x2494)]+_0x25089f(0x2032):''});})['catch'](function(_0x349598){const _0x1dd21c=_0x30fe1c;_0x28e6c9['error']({'title':_0x349598[_0x1dd21c(0x10b3)]?'API:'+_0x349598[_0x1dd21c(0x10b3)]+_0x1dd21c(0x21db)+_0x349598[_0x1dd21c(0x2115)]:_0x1dd21c(0x247c),'msg':_0x349598[_0x1dd21c(0x1c52)]?JSON[_0x1dd21c(0x2317)](_0x349598[_0x1dd21c(0x1c52)]):_0x349598[_0x1dd21c(0x2915)]()});});}}const _0x5c8f1d=_0x48525d;;_0x3d4d33[_0x49a1e3(0x1e73)]=['$scope','$window',_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),'$document',_0x49a1e3(0x20d4),_0x49a1e3(0x298c),'queueCampaigns','userProfile',_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),'Auth','license',_0x49a1e3(0x28d6)];function _0x3d4d33(_0x3dafc1,_0x51db80,_0x42f812,_0x45cbda,_0x3b1fae,_0x53725d,_0x47789f,_0x4ae7fb,_0x3a6774,_0x3927b0,_0x251572,_0x2ee5a1,_0x410949,_0x418b2e,_0x204fe4,_0x5866bf,_0x56e197){const _0x19ec0c=_0x49a1e3,_0x26caf3=this;_0x26caf3[_0x19ec0c(0x1947)]=_0x5866bf,_0x26caf3[_0x19ec0c(0x28d6)]=_0x56e197,_0x26caf3[_0x19ec0c(0x1d3d)]=_0x204fe4[_0x19ec0c(0x808)](),_0x26caf3['queueCampaigns']=_0x3a6774||{'count':0x0,'rows':[]},_0x26caf3[_0x19ec0c(0x16a8)]=_0x3927b0,_0x26caf3[_0x19ec0c(0x16b2)]=_0x251572&&_0x251572[_0x19ec0c(0xb90)]==0x1?_0x251572['rows'][0x0]:null,_0x26caf3[_0x19ec0c(0x402)]=_0x204fe4['parseCrudPermissions'](_0x26caf3[_0x19ec0c(0x16b2)]?_0x26caf3[_0x19ec0c(0x16b2)][_0x19ec0c(0x402)]:null),_0x26caf3[_0x19ec0c(0x185d)]=_0x19ec0c(0x18ae),_0x26caf3[_0x19ec0c(0x300)]='',_0x26caf3[_0x19ec0c(0x2748)]=null,_0x26caf3[_0x19ec0c(0x12ec)]=[],_0x26caf3['query']={'fields':_0x19ec0c(0xcb9),'type':'outbound','sort':_0x19ec0c(0x260c),'channel':_0x19ec0c(0x227c),'limit':0xa,'page':0x1},_0x26caf3[_0x19ec0c(0x212)]=_0x28c606()['keyBy']([{'option':'ALWAYS','value':'\x27always\x27'},{'option':_0x19ec0c(0x2467),'value':_0x19ec0c(0x466)},{'option':'ONLY_IF_OPEN','value':_0x19ec0c(0x2432)}],function(_0x2c326b){const _0x452c4e=_0x19ec0c;return _0x28c606()[_0x452c4e(0x1353)](_0x2c326b[_0x452c4e(0x1096)],new RegExp('\x27','g'),'');}),_0x26caf3[_0x19ec0c(0x239f)]=_0x28c606()['keyBy']([{'option':_0x19ec0c(0x307),'value':_0x19ec0c(0xbc9)},{'option':'No','value':_0x19ec0c(0x1476)}],function(_0x39046d){const _0x4e4014=_0x19ec0c;return _0x28c606()[_0x4e4014(0x1353)](_0x39046d[_0x4e4014(0x1096)],new RegExp('\x27','g'),'');}),_0x26caf3['arrayringinuse']=_0x28c606()[_0x19ec0c(0x161e)]([{'option':_0x19ec0c(0x307),'value':'\x27yes\x27'},{'option':'No','value':'\x27no\x27'}],function(_0xc9a40b){const _0x55d613=_0x19ec0c;return _0x28c606()[_0x55d613(0x1353)](_0xc9a40b[_0x55d613(0x1096)],new RegExp('\x27','g'),'');}),_0x26caf3[_0x19ec0c(0x1331)]=_0x28c606()[_0x19ec0c(0x161e)]([{'option':'Yes','value':_0x19ec0c(0x726)},{'option':'No','value':_0x19ec0c(0x1476)}],function(_0x1186e7){const _0xe09e01=_0x19ec0c;return _0x28c606()['replace'](_0x1186e7[_0xe09e01(0x1096)],new RegExp('\x27','g'),'');}),_0x26caf3[_0x19ec0c(0x1bc3)]=_0x28c606()[_0x19ec0c(0x161e)]([{'option':_0x19ec0c(0xe71),'value':'\x27\x27'},{'option':_0x19ec0c(0x74b),'value':'\x27wav\x27'},{'option':_0x19ec0c(0x1f92),'value':_0x19ec0c(0x2521)},{'option':_0x19ec0c(0x8e1),'value':_0x19ec0c(0x17cb)}],function(_0x2c9243){const _0x455a8c=_0x19ec0c;return _0x28c606()[_0x455a8c(0x1353)](_0x2c9243[_0x455a8c(0x1096)],new RegExp('\x27','g'),'');}),_0x26caf3['arraysetinterfacevar']=_0x28c606()[_0x19ec0c(0x161e)]([{'option':_0x19ec0c(0x307),'value':_0x19ec0c(0x726)},{'option':'No','value':_0x19ec0c(0x1476)}],function(_0x1e9b56){const _0x3df8b8=_0x19ec0c;return _0x28c606()['replace'](_0x1e9b56[_0x3df8b8(0x1096)],new RegExp('\x27','g'),'');}),_0x26caf3[_0x19ec0c(0xd24)]=_0x28c606()[_0x19ec0c(0x161e)]([{'option':'Yes','value':_0x19ec0c(0x726)},{'option':'No','value':'\x27no\x27'}],function(_0x1a37ac){return _0x28c606()['replace'](_0x1a37ac['value'],new RegExp('\x27','g'),'');}),_0x26caf3['arraysetqueueentryvar']=_0x28c606()[_0x19ec0c(0x161e)]([{'option':_0x19ec0c(0x307),'value':'\x27yes\x27'},{'option':'No','value':_0x19ec0c(0x1476)}],function(_0x8468d1){const _0x42e8a7=_0x19ec0c;return _0x28c606()['replace'](_0x8468d1[_0x42e8a7(0x1096)],new RegExp('\x27','g'),'');}),_0x26caf3['arraydialOrderByScheduledAt']=_0x28c606()[_0x19ec0c(0x161e)]([{'option':_0x19ec0c(0x3cc),'value':_0x19ec0c(0x1c6f)},{'option':_0x19ec0c(0x9a9),'value':_0x19ec0c(0x1ca4)}],function(_0xd8bc74){const _0x1b7600=_0x19ec0c;return _0x28c606()[_0x1b7600(0x1353)](_0xd8bc74[_0x1b7600(0x1096)],new RegExp('\x27','g'),'');}),_0x26caf3[_0x19ec0c(0x1485)]=_0x28c606()[_0x19ec0c(0x161e)]([{'option':_0x19ec0c(0x1c62),'value':_0x19ec0c(0x11ce)},{'option':_0x19ec0c(0xffa),'value':_0x19ec0c(0x1f6f)},{'option':_0x19ec0c(0x665),'value':'\x27predictive\x27'},{'option':_0x19ec0c(0x1ca8),'value':_0x19ec0c(0x22b3)},{'option':'BookedProgressive','value':_0x19ec0c(0x26f9)}],function(_0x47c72e){const _0x597105=_0x19ec0c;return _0x28c606()['replace'](_0x47c72e[_0x597105(0x1096)],new RegExp('\x27','g'),'');}),_0x26caf3[_0x19ec0c(0x215b)]=_0x28c606()[_0x19ec0c(0x161e)]([{'option':_0x19ec0c(0x298d),'value':'\x27agentBusyFactor\x27'},{'option':_0x19ec0c(0x1a04),'value':'\x27dropRate\x27'}],function(_0x1027dc){const _0x3b7a21=_0x19ec0c;return _0x28c606()[_0x3b7a21(0x1353)](_0x1027dc[_0x3b7a21(0x1096)],new RegExp('\x27','g'),'');}),_0x26caf3[_0x19ec0c(0xc25)]=_0x28c606()['keyBy']([{'option':_0x19ec0c(0x7f3),'value':_0x19ec0c(0x1dfa)},{'option':'Round\x20Robin','value':_0x19ec0c(0x27be),'ngIf':_0x19ec0c(0x7dc)},{'option':_0x19ec0c(0x1835),'value':'\x27leastrecent\x27','ngIf':_0x19ec0c(0x1b2c)},{'option':_0x19ec0c(0x289),'value':_0x19ec0c(0x1ead),'ngIf':_0x19ec0c(0x1b2c)},{'option':_0x19ec0c(0xaa5),'value':_0x19ec0c(0x2758),'ngIf':_0x19ec0c(0x1b2c)},{'option':_0x19ec0c(0x1af9),'value':_0x19ec0c(0x1cc),'ngIf':_0x19ec0c(0x1b2c)},{'option':_0x19ec0c(0xe88),'value':'\x27wrandom\x27','ngIf':_0x19ec0c(0x1b2c)}],function(_0x25fb2c){const _0x4e3001=_0x19ec0c;return _0x28c606()[_0x4e3001(0x1353)](_0x25fb2c['value'],new RegExp('\x27','g'),'');}),_0x26caf3[_0x19ec0c(0xff6)]=_0x313dc8,_0x26caf3['clonedialog']=_0x24afe0,_0x26caf3[_0x19ec0c(0x1cb0)]=_0x318469,_0x26caf3[_0x19ec0c(0x128b)]=_0x41c364,_0x26caf3[_0x19ec0c(0x1a72)]=_0x224b99,_0x26caf3[_0x19ec0c(0x104a)]=_0x109712,_0x26caf3['deleteconfirm']=_0x6be27,_0x26caf3[_0x19ec0c(0x93f)]=_0x2c4178,_0x26caf3[_0x19ec0c(0x1339)]=_0x3afbc4,_0x26caf3[_0x19ec0c(0x38d)]=_0x1f3c76,_0x26caf3[_0x19ec0c(0x1581)]=_0x2e440b,_0x26caf3['deleteQueueCampaign']=_0x3eb8d7,_0x26caf3[_0x19ec0c(0x1fbe)]=_0x5d56f2,_0x26caf3['deleteSelectedQueueCampaigns']=_0x45237b,_0x26caf3['deselectQueueCampaigns']=_0x4adc63,_0x26caf3['selectAllQueueCampaigns']=_0x1a8e3c,_0x204fe4[_0x19ec0c(0x4de)](_0x19ec0c(0x333))?_0x2ee5a1['trunk'][_0x19ec0c(0x896)]({'fields':_0x19ec0c(0x1427),'sort':'name'})['$promise'][_0x19ec0c(0x64a)](function(_0x57481d){const _0x313d35=_0x19ec0c;_0x26caf3[_0x313d35(0xe23)]=_0x57481d['rows']||[];})[_0x19ec0c(0x20cd)](function(_0x51f6c9){const _0x58f7ab=_0x19ec0c;_0x418b2e[_0x58f7ab(0x1bd0)]({'title':_0x51f6c9[_0x58f7ab(0x10b3)]?_0x58f7ab(0x575)+_0x51f6c9[_0x58f7ab(0x10b3)]+_0x58f7ab(0x21db)+_0x51f6c9[_0x58f7ab(0x2115)]:_0x58f7ab(0x1d82),'msg':_0x51f6c9[_0x58f7ab(0x1c52)]?JSON[_0x58f7ab(0x2317)](_0x51f6c9['data']):_0x51f6c9[_0x58f7ab(0x2915)]()});}):_0x2ee5a1[_0x19ec0c(0x4ef)]['get']({'fields':'id,name','sort':_0x19ec0c(0x2494)})[_0x19ec0c(0x15e7)][_0x19ec0c(0x64a)](function(_0x5cf954){const _0x28fbfd=_0x19ec0c;_0x26caf3[_0x28fbfd(0xe23)]=_0x5cf954['rows']||[];})['then'](function(){const _0x2cab87=_0x19ec0c;return _0x2ee5a1[_0x2cab87(0x16b2)][_0x2cab87(0x896)]({'userProfileId':_0x26caf3['currentUser']['userProfileId'],'sectionId':0x3f3})[_0x2cab87(0x15e7)];})['then'](function(_0x2dfc9b){const _0x3b24e1=_0x19ec0c,_0x5ab04a=_0x2dfc9b&&_0x2dfc9b[_0x3b24e1(0x28b8)]?_0x2dfc9b[_0x3b24e1(0x28b8)][0x0]:null;if(!_0x5ab04a){const _0xe1e633=[],_0x230503=[];_0x26caf3[_0x3b24e1(0x18ae)]['rows'][_0x3b24e1(0x1397)](function(_0x47bdf1){const _0x214976=_0x3b24e1,_0x29ff4c=_0x28c606()[_0x214976(0x27bc)](_0x26caf3[_0x214976(0xe23)],{'id':Number(_0x47bdf1[_0x214976(0x1c2)])});_0x230503['push'](_0x29ff4c);});for(let _0x1cb8ef=0x0;_0x1cb8ef<_0x26caf3[_0x3b24e1(0xe23)]['length'];_0x1cb8ef++){const _0x382c83=_0x28c606()['some'](_0x230503,{'id':_0x26caf3['trunks'][_0x1cb8ef]['id']});_0x382c83&&(_0x26caf3['trunks'][_0x1cb8ef][_0x3b24e1(0xd4f)]=![],_0xe1e633[_0x3b24e1(0x1954)](_0x26caf3[_0x3b24e1(0xe23)][_0x1cb8ef]));}_0x26caf3[_0x3b24e1(0xe23)]=_0xe1e633;}else{if(!_0x5ab04a[_0x3b24e1(0x11da)])return _0x2ee5a1[_0x3b24e1(0x1617)][_0x3b24e1(0x896)]({'sectionId':_0x5ab04a['id']})[_0x3b24e1(0x15e7)][_0x3b24e1(0x64a)](function(_0xc3ff3c){const _0x33c609=_0x3b24e1,_0x2ea835=_0x28c606()[_0x33c609(0x1de5)](_0xc3ff3c[_0x33c609(0x28b8)],function(_0x32eb84){const _0x28b01d=_0x33c609;return _0x28c606()[_0x28b01d(0x27bc)](_0x26caf3['trunks'],{'id':_0x32eb84[_0x28b01d(0x145)]});});let _0x29be39=null;_0x29be39=[],_0x26caf3[_0x33c609(0x18ae)][_0x33c609(0x28b8)][_0x33c609(0x1397)](function(_0x5ca896){const _0x3e2faa=_0x33c609,_0x28e014=_0x28c606()[_0x3e2faa(0x27bc)](_0x26caf3[_0x3e2faa(0xe23)],{'id':Number(_0x5ca896['TrunkId'])});_0x29be39['push'](_0x28e014);}),!_0x28c606()[_0x33c609(0x940)](_0x29be39)&&_0x29be39[_0x33c609(0x1397)](function(_0x513641){const _0x4000cb=_0x33c609;if(!_0x28c606()[_0x4000cb(0x25f8)](_0x2ea835,['id',_0x513641['id']])){const _0x27e319=_0x28c606()[_0x4000cb(0x27bc)](_0x26caf3[_0x4000cb(0xe23)],{'id':_0x513641['id']});_0x27e319[_0x4000cb(0xd4f)]=![],_0x2ea835[_0x4000cb(0x1954)](_0x27e319);}}),_0x26caf3[_0x33c609(0xe23)]=_0x2ea835;});}})['catch'](function(_0x53cde2){const _0x3a73b1=_0x19ec0c;_0x418b2e[_0x3a73b1(0x1bd0)]({'title':_0x53cde2[_0x3a73b1(0x10b3)]?_0x3a73b1(0x575)+_0x53cde2['status']+_0x3a73b1(0x21db)+_0x53cde2[_0x3a73b1(0x2115)]:_0x3a73b1(0x89a),'msg':_0x53cde2[_0x3a73b1(0x1c52)]?JSON[_0x3a73b1(0x2317)](_0x53cde2[_0x3a73b1(0x1c52)]):_0x53cde2[_0x3a73b1(0x2915)]()});}),_0x204fe4[_0x19ec0c(0x4de)](_0x19ec0c(0x333))?_0x2ee5a1[_0x19ec0c(0xcfd)][_0x19ec0c(0x896)]({'fields':_0x19ec0c(0x1427),'sort':_0x19ec0c(0x2494),'IntervalId':'null'})[_0x19ec0c(0x15e7)][_0x19ec0c(0x64a)](function(_0x5b8caa){const _0x6adb2c=_0x19ec0c;_0x26caf3['interval']=_0x5b8caa[_0x6adb2c(0x28b8)]||[];})[_0x19ec0c(0x20cd)](function(_0x23029e){const _0x242899=_0x19ec0c;_0x418b2e['error']({'title':_0x23029e[_0x242899(0x10b3)]?_0x242899(0x575)+_0x23029e['status']+_0x242899(0x21db)+_0x23029e[_0x242899(0x2115)]:_0x242899(0x2780),'msg':_0x23029e[_0x242899(0x1c52)]?JSON[_0x242899(0x2317)](_0x23029e[_0x242899(0x1c52)]):_0x23029e[_0x242899(0x2915)]()});}):_0x2ee5a1[_0x19ec0c(0xcfd)][_0x19ec0c(0x896)]({'fields':'id,name','sort':_0x19ec0c(0x2494),'IntervalId':_0x19ec0c(0x8f1)})[_0x19ec0c(0x15e7)][_0x19ec0c(0x64a)](function(_0x373b42){const _0x498fc9=_0x19ec0c;_0x26caf3[_0x498fc9(0xcfd)]=_0x373b42[_0x498fc9(0x28b8)]||[];})[_0x19ec0c(0x64a)](function(){const _0x3d5e35=_0x19ec0c;return _0x2ee5a1[_0x3d5e35(0x16b2)][_0x3d5e35(0x896)]({'userProfileId':_0x26caf3['currentUser']['userProfileId'],'sectionId':0x3ec})[_0x3d5e35(0x15e7)];})[_0x19ec0c(0x64a)](function(_0x7a9d99){const _0x9d410f=_0x19ec0c,_0x311172=_0x7a9d99&&_0x7a9d99[_0x9d410f(0x28b8)]?_0x7a9d99['rows'][0x0]:null;if(!_0x311172){const _0x598adb=[];let _0x434d04=null;_0x26caf3[_0x9d410f(0x279)]&&(_0x434d04=_0x28c606()[_0x9d410f(0x27bc)](_0x26caf3[_0x9d410f(0xcfd)],{'id':Number(_0x26caf3['queueCampaign'][_0x9d410f(0xb71)])}));for(let _0x229311=0x0;_0x229311<_0x26caf3['interval'][_0x9d410f(0x1b9e)];_0x229311++){_0x434d04&&_0x26caf3[_0x9d410f(0xcfd)][_0x229311]['id']===_0x434d04['id']&&(_0x26caf3[_0x9d410f(0xcfd)][_0x229311]['canSelect']=![],_0x598adb[_0x9d410f(0x1954)](_0x26caf3[_0x9d410f(0xcfd)][_0x229311]));}_0x26caf3[_0x9d410f(0xcfd)]=_0x598adb;}else{if(!_0x311172['autoAssociation'])return _0x2ee5a1[_0x9d410f(0x1617)]['get']({'sectionId':_0x311172['id']})[_0x9d410f(0x15e7)]['then'](function(_0x2aae51){const _0x46e1fb=_0x9d410f,_0x17dd22=_0x28c606()[_0x46e1fb(0x1de5)](_0x2aae51[_0x46e1fb(0x28b8)],function(_0x36c0f8){const _0x7f93c5=_0x46e1fb;return _0x28c606()[_0x7f93c5(0x27bc)](_0x26caf3[_0x7f93c5(0xcfd)],{'id':_0x36c0f8['resourceId']});});let _0x159409=null;_0x26caf3[_0x46e1fb(0x279)]&&(_0x159409=_0x28c606()[_0x46e1fb(0x27bc)](_0x26caf3[_0x46e1fb(0xcfd)],{'id':Number(_0x26caf3[_0x46e1fb(0x279)][_0x46e1fb(0xb71)])}));if(_0x159409&&!_0x28c606()[_0x46e1fb(0x25f8)](_0x17dd22,['id',_0x159409['id']])){const _0x54ef2a=_0x28c606()[_0x46e1fb(0x27bc)](_0x26caf3[_0x46e1fb(0xcfd)],{'id':_0x159409['id']});_0x54ef2a['canSelect']=![],_0x17dd22[_0x46e1fb(0x1954)](_0x54ef2a);}_0x26caf3[_0x46e1fb(0xcfd)]=_0x17dd22;});}})['catch'](function(_0x4803fc){const _0x288c14=_0x19ec0c;_0x418b2e[_0x288c14(0x1bd0)]({'title':_0x4803fc[_0x288c14(0x10b3)]?_0x288c14(0x575)+_0x4803fc[_0x288c14(0x10b3)]+'\x20-\x20'+_0x4803fc[_0x288c14(0x2115)]:_0x288c14(0x314),'msg':_0x4803fc[_0x288c14(0x1c52)]?JSON[_0x288c14(0x2317)](_0x4803fc[_0x288c14(0x1c52)]):_0x4803fc[_0x288c14(0x2915)]()});});function _0x313dc8(_0x449871){const _0x2c6f21=_0x19ec0c;_0x42f812['go'](_0x2c6f21(0x1904),{'id':_0x449871['id'],'queueCampaign':_0x449871,'crudPermissions':_0x26caf3['crudPermissions']});}function _0x24afe0(_0x149e8d,_0x221964){const _0x535972=_0x19ec0c;_0x3b1fae['show']({'controller':'QueueCampaigncloneController','controllerAs':'vm','templateUrl':_0x23983f,'parent':angular[_0x535972(0x1f81)](_0x53725d[_0x535972(0xb49)]),'targetEvent':_0x221964,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x149e8d,'queueCampaigns':_0x26caf3['queueCampaigns']?_0x26caf3[_0x535972(0x18ae)][_0x535972(0x28b8)]:[],'crudPermissions':_0x26caf3[_0x535972(0x402)]}});}function _0x318469(_0x82e116,_0x2ed4ff){const _0x37e6b5=_0x19ec0c;_0x3b1fae[_0x37e6b5(0xa60)]({'controller':_0x37e6b5(0xe8d),'controllerAs':'vm','templateUrl':_0x5d0c79,'parent':angular[_0x37e6b5(0x1f81)](_0x53725d[_0x37e6b5(0xb49)]),'targetEvent':_0x2ed4ff,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x82e116,'queueCampaigns':_0x26caf3[_0x37e6b5(0x18ae)]?_0x26caf3[_0x37e6b5(0x18ae)][_0x37e6b5(0x28b8)]:[],'crudPermissions':_0x26caf3[_0x37e6b5(0x402)]}});}function _0x41c364(_0x442a7c,_0x50922b){const _0x3894eb=_0x19ec0c;_0x3b1fae[_0x3894eb(0xa60)]({'controller':_0x3894eb(0x271e),'controllerAs':'vm','templateUrl':_0x515647,'parent':angular[_0x3894eb(0x1f81)](_0x53725d['body']),'targetEvent':_0x50922b,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x442a7c,'queueCampaigns':_0x26caf3[_0x3894eb(0x18ae)]?_0x26caf3[_0x3894eb(0x18ae)][_0x3894eb(0x28b8)]:[],'crudPermissions':_0x26caf3[_0x3894eb(0x402)]}});}function _0x224b99(_0x3a442c,_0x2fcdec){const _0x1a5f36=_0x19ec0c;_0x3b1fae[_0x1a5f36(0xa60)]({'controller':'QueueCampaignteamaddController','controllerAs':'vm','templateUrl':_0x6a5787,'parent':angular[_0x1a5f36(0x1f81)](_0x53725d[_0x1a5f36(0xb49)]),'targetEvent':_0x2fcdec,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x3a442c,'queueCampaigns':_0x26caf3[_0x1a5f36(0x18ae)]?_0x26caf3[_0x1a5f36(0x18ae)][_0x1a5f36(0x28b8)]:[],'crudPermissions':_0x26caf3[_0x1a5f36(0x402)]}});}function _0x109712(_0x345251,_0x57bdb1){const _0x20418f=_0x19ec0c;_0x3b1fae['show']({'controller':_0x20418f(0x2852),'controllerAs':'vm','templateUrl':_0x22a261,'parent':angular[_0x20418f(0x1f81)](_0x53725d[_0x20418f(0xb49)]),'targetEvent':_0x57bdb1,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x345251,'queueCampaigns':_0x26caf3[_0x20418f(0x18ae)]?_0x26caf3[_0x20418f(0x18ae)][_0x20418f(0x28b8)]:[],'crudPermissions':_0x26caf3[_0x20418f(0x402)],'realtime':![]}});}function _0x6be27(_0x33c751,_0x36c327){const _0x2673cf=_0x19ec0c,_0x3996ad=_0x3b1fae[_0x2673cf(0x856)]()[_0x2673cf(0x2021)](_0x2673cf(0x1231)+_0x28c606()[_0x2673cf(0xc01)](_0x2673cf(0x279))+'?')['htmlContent'](''+(_0x33c751[_0x2673cf(0x2494)]||'queueCampaign')+''+_0x2673cf(0x4b8))[_0x2673cf(0x213e)](_0x2673cf(0x28ca))[_0x2673cf(0x2283)](_0x36c327)['ok']('OK')['cancel']('CANCEL');_0x3b1fae[_0x2673cf(0xa60)](_0x3996ad)['then'](function(){_0x3eb8d7(_0x33c751);},function(){const _0x3fff48=_0x2673cf;console[_0x3fff48(0x9b4)](_0x3fff48(0x18fd));});}function _0x2c4178(){const _0x57b041=_0x19ec0c;if(_0x204fe4[_0x57b041(0x4de)]('admin'))_0x42f812['go'](_0x57b041(0x7bc),{});else return _0x2ee5a1[_0x57b041(0x16b2)]['get']({'userProfileId':_0x204fe4[_0x57b041(0x808)]()[_0x57b041(0x21ac)],'sectionId':0x5e6})[_0x57b041(0x15e7)][_0x57b041(0x64a)](function(_0x20f67e){const _0xe5932e=_0x57b041,_0x4e165d=_0x20f67e&&_0x20f67e[_0xe5932e(0x28b8)]?_0x20f67e[_0xe5932e(0x28b8)][0x0]:null;_0x4e165d&&_0x4e165d[_0xe5932e(0xe49)]?_0x42f812['go']('app.motiondialer.realtime.queues',{}):_0x418b2e['info']({'title':_0x4ae7fb[_0xe5932e(0x2292)](_0xe5932e(0x111a)),'msg':_0x4ae7fb['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x57b041(0x20cd)](function(_0x123a3e){const _0x3a3bfc=_0x57b041;_0x418b2e[_0x3a3bfc(0x1bd0)]({'title':_0x123a3e[_0x3a3bfc(0x10b3)]?'API:'+_0x123a3e[_0x3a3bfc(0x10b3)]+_0x3a3bfc(0x21db)+_0x123a3e[_0x3a3bfc(0x2115)]:'USERPROFILE:GET_SECTION','msg':_0x123a3e[_0x3a3bfc(0x10b3)]?JSON[_0x3a3bfc(0x2317)](_0x123a3e[_0x3a3bfc(0x1c52)]):_0x123a3e[_0x3a3bfc(0x2915)]()});});}let _0x5ce555=!![],_0x2bd459=0x1;_0x3dafc1[_0x19ec0c(0xc62)](_0x19ec0c(0x1cb9),function(_0x17e3f9,_0x1a9b94){const _0x1be918=_0x19ec0c;_0x5ce555?_0x47789f(function(){_0x5ce555=![];}):(!_0x1a9b94&&(_0x2bd459=_0x26caf3[_0x1be918(0x289a)][_0x1be918(0xc72)]),_0x17e3f9!==_0x1a9b94&&(_0x26caf3[_0x1be918(0x289a)][_0x1be918(0xc72)]=0x1),!_0x17e3f9&&(_0x26caf3[_0x1be918(0x289a)][_0x1be918(0xc72)]=_0x2bd459),_0x26caf3[_0x1be918(0x38d)]());});function _0x3afbc4(_0x437628){const _0x217652=_0x19ec0c;_0x26caf3[_0x217652(0x18ae)]=_0x437628||{'count':0x0,'rows':[]};}function _0x1f3c76(){const _0x19df2a=_0x19ec0c;_0x26caf3[_0x19df2a(0x289a)][_0x19df2a(0x24f9)]=(_0x26caf3[_0x19df2a(0x289a)][_0x19df2a(0xc72)]-0x1)*_0x26caf3[_0x19df2a(0x289a)]['limit'],_0x204fe4[_0x19df2a(0x4de)]('admin')?_0x26caf3['promise']=_0x2ee5a1[_0x19df2a(0x178b)]['get'](_0x26caf3[_0x19df2a(0x289a)],_0x3afbc4)[_0x19df2a(0x15e7)]:(_0x26caf3[_0x19df2a(0x289a)]['id']=_0x26caf3[_0x19df2a(0x16a8)]['id'],_0x26caf3[_0x19df2a(0x289a)]['section']=_0x19df2a(0x2350),_0x26caf3['promise']=_0x2ee5a1['userProfile'][_0x19df2a(0x2565)](_0x26caf3[_0x19df2a(0x289a)],_0x3afbc4)[_0x19df2a(0x15e7)]);}function _0x2e440b(_0xc54e58,_0x2544fa){const _0xda0c7b=_0x19ec0c;_0x3b1fae[_0xda0c7b(0xa60)]({'controller':_0xda0c7b(0x14c0),'controllerAs':'vm','templateUrl':_0x1db34f,'parent':angular[_0xda0c7b(0x1f81)](_0x53725d[_0xda0c7b(0xb49)]),'targetEvent':_0xc54e58,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x2544fa,'queueCampaigns':_0x26caf3[_0xda0c7b(0x18ae)]['rows'],'license':_0x26caf3[_0xda0c7b(0x1947)],'setting':_0x26caf3['setting'],'crudPermissions':_0x26caf3[_0xda0c7b(0x402)]}});}function _0x3eb8d7(_0x59e2e7){const _0x4be28a=_0x19ec0c;_0x2ee5a1['voiceQueue'][_0x4be28a(0xabd)]({'id':_0x59e2e7['id']})[_0x4be28a(0x15e7)]['then'](function(){const _0x4d7759=_0x4be28a;_0x28c606()[_0x4d7759(0x21c7)](_0x26caf3[_0x4d7759(0x18ae)][_0x4d7759(0x28b8)],{'id':_0x59e2e7['id']}),_0x26caf3[_0x4d7759(0x18ae)]['count']-=0x1,!_0x26caf3[_0x4d7759(0x18ae)]['rows'][_0x4d7759(0x1b9e)]&&_0x26caf3[_0x4d7759(0x38d)](),_0x418b2e[_0x4d7759(0x1339)]({'title':_0x28c606()[_0x4d7759(0xc01)](_0x4d7759(0x26bf))+_0x4d7759(0x2502),'msg':_0x59e2e7['name']?_0x59e2e7['name']+_0x4d7759(0x1fa8):''});})[_0x4be28a(0x20cd)](function(_0x354a0e){const _0x23ab41=_0x4be28a;if(_0x354a0e['data']&&_0x354a0e[_0x23ab41(0x1c52)][_0x23ab41(0xbae)]&&_0x354a0e[_0x23ab41(0x1c52)][_0x23ab41(0xbae)][_0x23ab41(0x1b9e)]){_0x26caf3[_0x23ab41(0xbae)]=_0x354a0e[_0x23ab41(0x1c52)][_0x23ab41(0xbae)]||[{'message':_0x354a0e[_0x23ab41(0x2915)](),'type':'SYSTEM:DELETEvoiceQueue'}];for(let _0x5d0679=0x0;_0x5d0679<_0x354a0e[_0x23ab41(0x1c52)]['errors'][_0x23ab41(0x1b9e)];_0x5d0679++){_0x418b2e[_0x23ab41(0x1bd0)]({'title':_0x354a0e[_0x23ab41(0x1c52)]['errors'][_0x5d0679][_0x23ab41(0x2185)],'msg':_0x354a0e[_0x23ab41(0x1c52)][_0x23ab41(0xbae)][_0x5d0679][_0x23ab41(0x18ca)]});}}else _0x418b2e[_0x23ab41(0x1bd0)]({'title':_0x354a0e[_0x23ab41(0x10b3)]?_0x23ab41(0x575)+_0x354a0e['status']+_0x23ab41(0x21db)+_0x354a0e[_0x23ab41(0x2115)]:_0x23ab41(0x9bf),'msg':_0x354a0e[_0x23ab41(0x1c52)]?JSON[_0x23ab41(0x2317)](_0x354a0e['data'][_0x23ab41(0x18ca)]):_0x354a0e[_0x23ab41(0x18ca)]||_0x354a0e['toString']()});});}function _0x5d56f2(){const _0x3155b1=_0x19ec0c,_0x4fe782=angular['copy'](_0x26caf3['selectedQueueCampaigns']);return _0x26caf3[_0x3155b1(0x12ec)]=[],_0x4fe782;}function _0x45237b(_0xd8bb9a){const _0x457e30=_0x19ec0c,_0x49c6f6=_0x3b1fae['confirm']()[_0x457e30(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20queueCampaigns?')[_0x457e30(0x33a)](_0x457e30(0x50b)+_0x26caf3['selectedQueueCampaigns'][_0x457e30(0x1b9e)]+_0x457e30(0x163e)+_0x457e30(0x4b8))['ariaLabel']('delete\x20QueueCampaigns')['targetEvent'](_0xd8bb9a)['ok']('OK')[_0x457e30(0x101a)](_0x457e30(0x18fd));_0x3b1fae[_0x457e30(0xa60)](_0x49c6f6)['then'](function(){const _0x359e2f=_0x457e30;_0x26caf3[_0x359e2f(0x12ec)]['forEach'](function(_0x1f350b){_0x3eb8d7(_0x1f350b);}),_0x26caf3[_0x359e2f(0x12ec)]=[];});}function _0x4adc63(){const _0x721d4e=_0x19ec0c;_0x26caf3[_0x721d4e(0x12ec)]=[];}function _0x1a8e3c(){const _0x330bce=_0x19ec0c;_0x26caf3[_0x330bce(0x12ec)]=_0x26caf3[_0x330bce(0x18ae)][_0x330bce(0x28b8)];}}const _0x1c7990=_0x3d4d33;;_0x35a3de[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad),_0x49a1e3(0x21f8)];function _0x35a3de(_0x2d4aff,_0x3f3a5a){const _0x34ca7c=_0x49a1e3;_0x2d4aff[_0x34ca7c(0x14f2)](_0x34ca7c(0x70e),{'abstract':!![],'url':_0x34ca7c(0xb8e)})['state'](_0x34ca7c(0x47d),{'url':'/queueCampaigns','views':{'content@app':{'templateUrl':_0x29c06d,'controller':'QueueCampaignsController\x20as\x20vm'}},'resolve':{'queueCampaigns':['apiResolver',_0x34ca7c(0xdcf),function(_0x32e9b0,_0xf9a6d9){const _0x145c8f=_0x34ca7c;return _0xf9a6d9['hasRole']('admin')?_0x32e9b0[_0x145c8f(0x1268)](_0x145c8f(0x1c51),{'fields':_0x145c8f(0xcb9),'type':'outbound','sort':_0x145c8f(0x260c),'channel':_0x145c8f(0x227c),'limit':0xa,'offset':0x0}):_0x32e9b0['resolve']('userProfile@getResources',{'id':_0xf9a6d9[_0x145c8f(0x808)]()[_0x145c8f(0x21ac)],'section':_0x145c8f(0x2350),'fields':_0x145c8f(0xcb9),'type':_0x145c8f(0xbce),'sort':_0x145c8f(0x260c),'channel':_0x145c8f(0x227c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x34ca7c(0x107c),_0x34ca7c(0xdcf),function(_0x50d8ca,_0x469268){const _0x551892=_0x34ca7c;return _0x469268[_0x551892(0x4de)]('admin')?null:_0x50d8ca[_0x551892(0x1268)](_0x551892(0x6e3),{'fields':_0x551892(0x10d2),'id':_0x469268['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x34ca7c(0x107c),_0x34ca7c(0xdcf),function(_0x629c0a,_0x2f69b5){const _0x5a27b1=_0x34ca7c;return _0x2f69b5['hasRole'](_0x5a27b1(0x333))?null:_0x629c0a[_0x5a27b1(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2f69b5[_0x5a27b1(0x808)]()[_0x5a27b1(0x21ac)],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0x34ca7c(0x1175)})['state']('app.motiondialer.queueCampaigns.edit',{'url':'/:id?tab','params':{'queueCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1894cd,'controller':'QueueCampaignController\x20as\x20vm'}},'resolve':{'queueCampaign':[_0x34ca7c(0x107c),_0x34ca7c(0x1fbb),function(_0xf15423,_0x2b4f63){const _0x21dc88=_0x34ca7c;return _0xf15423[_0x21dc88(0x1268)](_0x21dc88(0x1c51),{'fields':_0x21dc88(0xcb9),'id':_0x2b4f63['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x8a6266,_0x553626){const _0x2cf774=_0x34ca7c;return _0x8a6266[_0x2cf774(0x1268)](_0x2cf774(0x2681),{'fields':_0x2cf774(0x527),'userProfileId':_0x553626['getCurrentUser']()[_0x2cf774(0x21ac)],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0x34ca7c(0x1175)})[_0x34ca7c(0x14f2)](_0x34ca7c(0x116f),{'url':'/ivrCampaigns','views':{'content@app':{'templateUrl':_0xbc80b7,'controller':_0x34ca7c(0x7e9)}},'resolve':{'ivrCampaigns':['apiResolver','Auth',function(_0x1e73bc,_0x5e12b6){const _0x526cc1=_0x34ca7c;return _0x5e12b6[_0x526cc1(0x4de)](_0x526cc1(0x333))?_0x1e73bc[_0x526cc1(0x1268)](_0x526cc1(0x117),{'fields':'createdAt,updatedAt,id,name,active,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,SquareProjectId,limitCalls,description,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,dialOrderByScheduledAt,dialGlobalInterval,dialTimezone,dialPrefix,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength','type':'ivr','sort':_0x526cc1(0x260c),'limit':0xa,'offset':0x0}):_0x1e73bc[_0x526cc1(0x1268)](_0x526cc1(0x1758),{'id':_0x5e12b6[_0x526cc1(0x808)]()[_0x526cc1(0x21ac)],'section':_0x526cc1(0x2894),'fields':_0x526cc1(0xc92),'type':_0x526cc1(0x254b),'sort':_0x526cc1(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x34ca7c(0x107c),_0x34ca7c(0xdcf),function(_0x180efe,_0x37650d){const _0x30e071=_0x34ca7c;return _0x37650d[_0x30e071(0x4de)](_0x30e071(0x333))?null:_0x180efe[_0x30e071(0x1268)](_0x30e071(0x6e3),{'fields':_0x30e071(0x10d2),'id':_0x37650d['getCurrentUser']()[_0x30e071(0x21ac)]});}],'userProfileSection':[_0x34ca7c(0x107c),'Auth',function(_0x3307dd,_0xbb21b5){const _0x503250=_0x34ca7c;return _0xbb21b5[_0x503250(0x4de)](_0x503250(0x333))?null:_0x3307dd[_0x503250(0x1268)](_0x503250(0x2681),{'fields':_0x503250(0x527),'userProfileId':_0xbb21b5[_0x503250(0x808)]()[_0x503250(0x21ac)],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':_0x34ca7c(0x1175)})[_0x34ca7c(0x14f2)](_0x34ca7c(0x2002),{'url':_0x34ca7c(0x45b),'params':{'ivrCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x535681,'controller':_0x34ca7c(0x1171)}},'resolve':{'ivrCampaign':[_0x34ca7c(0x107c),_0x34ca7c(0x1fbb),function(_0x84db41,_0x32fdab){const _0xfb8013=_0x34ca7c;return _0x84db41['resolve']('campaign@get',{'fields':_0xfb8013(0xc92),'id':_0x32fdab['id']});}],'userProfileSection':[_0x34ca7c(0x107c),_0x34ca7c(0xdcf),function(_0x2665c8,_0x3b915f){const _0x3fba36=_0x34ca7c;return _0x2665c8[_0x3fba36(0x1268)](_0x3fba36(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3b915f[_0x3fba36(0x808)]()[_0x3fba36(0x21ac)],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':_0x34ca7c(0x1175)}),_0x3f3a5a[_0x34ca7c(0x1bde)](_0x34ca7c(0x6fd));}angular['module'](_0x49a1e3(0x70e),[_0x49a1e3(0x8d2),_0x49a1e3(0x3c7),_0x49a1e3(0x1fe3),_0x49a1e3(0x891),_0x49a1e3(0x2516),_0x49a1e3(0x1b6c),_0x49a1e3(0x1434),_0x49a1e3(0x1a87),_0x49a1e3(0x1610),_0x49a1e3(0xb19),_0x49a1e3(0x1a59),'mwFormViewer',_0x49a1e3(0x1cfe),'ngclipboard',_0x49a1e3(0x1b5f),_0x49a1e3(0x1cff),'angularMaterialFormBuilder','material.components.expansionPanels',_0x49a1e3(0xc48),'angular.filter',_0x49a1e3(0x16d5)])['config'](_0x35a3de)[_0x49a1e3(0x38e)](_0x49a1e3(0x27e6),_0x1524f4)[_0x49a1e3(0x38e)]('IvrCampaignblacklistaddController',_0x17818b)[_0x49a1e3(0x38e)](_0x49a1e3(0x15b7),_0x4f8c6c)[_0x49a1e3(0x38e)](_0x49a1e3(0x635),_0xaf0547)[_0x49a1e3(0x38e)]('IvrCampaignHopperFinalsController',_0x55305c)[_0x49a1e3(0x38e)]('IvrCampaignHopperHistoriesController',_0x138297)['controller'](_0x49a1e3(0x1b4c),_0x2a4f23)[_0x49a1e3(0x38e)](_0x49a1e3(0x25a),_0x2c9fa3)[_0x49a1e3(0x38e)](_0x49a1e3(0x1f18),_0x1670a6)[_0x49a1e3(0x38e)](_0x49a1e3(0x281c),_0x12a8a0)[_0x49a1e3(0x38e)](_0x49a1e3(0x28c5),_0x5e7e84)['controller']('IvrCampaignController',_0x51a0fb)[_0x49a1e3(0x38e)](_0x49a1e3(0x236c),_0x1e6c56)[_0x49a1e3(0x38e)]('CreateOrEditQueueCampaignDialogController',_0x1fed6b)[_0x49a1e3(0x38e)](_0x49a1e3(0x2852),_0x401d88)['controller'](_0x49a1e3(0x271e),_0x5d801)['controller'](_0x49a1e3(0x1115),_0x116dcc)[_0x49a1e3(0x38e)](_0x49a1e3(0x135e),_0x7d427)[_0x49a1e3(0x38e)](_0x49a1e3(0x19d8),_0x5798c2)[_0x49a1e3(0x38e)]('QueueCampaignHopperHistoriesController',_0x287761)[_0x49a1e3(0x38e)](_0x49a1e3(0x10d9),_0x3938ee)[_0x49a1e3(0x38e)](_0x49a1e3(0x1224),_0x30f8c7)[_0x49a1e3(0x38e)](_0x49a1e3(0x2584),_0x3f1bd6)[_0x49a1e3(0x38e)](_0x49a1e3(0xe8d),_0x8f6af1)[_0x49a1e3(0x38e)]('QueueCampaignresetlistController',_0x8462e1)[_0x49a1e3(0x38e)](_0x49a1e3(0x1e2e),_0x34c60b)['controller'](_0x49a1e3(0x1e5f),_0x5c8f1d)['controller']('QueueCampaignsController',_0x1c7990);;const _0x273878=_0x2e4a48['p']+_0x49a1e3(0x1322);;_0x5df438[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x772),'license',_0x49a1e3(0xa19)];function _0x30cdbd(_0x3b33ef){const _0x55bfcc=_0x49a1e3,_0x233589=_0x2ac33a()(_0x3b33ef);return _0x233589[_0x55bfcc(0x6f9)]()?_0x233589[_0x55bfcc(0x1c2c)](_0x55bfcc(0xc61)):'';}function _0x5df438(_0x5f1ff6,_0x2c650a,_0x590be6){const _0x39c0c6=_0x49a1e3,_0x5d1d25=this;_0x5d1d25[_0x39c0c6(0xeba)]=_0x590be6['baseUrl'],_0x5d1d25[_0x39c0c6(0x772)]={..._0x5f1ff6,'buildDate':_0x30cdbd(_0x5f1ff6[_0x39c0c6(0x40c)]),'commitDate':_0x30cdbd(_0x5f1ff6[_0x39c0c6(0x86b)]),'client':{'name':_0x39c0c6(0x1ab),'version':_0x39c0c6(0x1496),'shortHash':_0x39c0c6(0x1241),'branch':_0x39c0c6(0x1ac7),'tag':'','committedOn':_0x39c0c6(0x292f),'buildDate':_0x39c0c6(0x13f8)}},_0x5d1d25[_0x39c0c6(0x1947)]=_0x2c650a;}const _0x370780=_0x5df438;;_0x3f598d[_0x49a1e3(0x1e73)]=['$stateProvider'];function _0x3f598d(_0x4876db){const _0x4eda15=_0x49a1e3;_0x4876db[_0x4eda15(0x14f2)](_0x4eda15(0x243a),{'url':_0x4eda15(0x1532),'views':{'content@app':{'templateUrl':_0x273878,'controller':_0x4eda15(0x1443)}},'resolve':{'info':[_0x4eda15(0x107c),function(_0x16da14){const _0x3b7220=_0x4eda15;return _0x16da14[_0x3b7220(0x1268)]('version@get');}]},'authenticate':!![],'permissionId':0x640,'bodyClass':_0x4eda15(0x1729)});}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x243a),[])[_0x49a1e3(0x3d3)](_0x3f598d)[_0x49a1e3(0x38e)]('AboutController',_0x370780);;_0x2211f6[_0x49a1e3(0x1e73)]=['$stateProvider',_0x49a1e3(0x21f8)];function _0x2211f6(_0x5e1956,_0x2dd119){const _0x596737=_0x49a1e3;_0x5e1956['state']('app.help',{'abstract':!![],'url':'/help'}),_0x2dd119[_0x596737(0x1bde)]('app/main/apps/help');}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x1e04),[_0x49a1e3(0x8d2),_0x49a1e3(0x3c7),_0x49a1e3(0x1fe3),_0x49a1e3(0x891),_0x49a1e3(0x2516),_0x49a1e3(0x1b6c),_0x49a1e3(0x1434),_0x49a1e3(0x1a87),_0x49a1e3(0x1610),_0x49a1e3(0xb19),_0x49a1e3(0x1a59),_0x49a1e3(0x11fd),_0x49a1e3(0x1cfe),_0x49a1e3(0x1bd1),_0x49a1e3(0x1b5f),_0x49a1e3(0x1cff),_0x49a1e3(0x1046),_0x49a1e3(0x1acd),_0x49a1e3(0xc48),'angular.filter',_0x49a1e3(0x243a)])[_0x49a1e3(0x3d3)](_0x2211f6);;const _0x376e15=_0x2e4a48['p']+_0x49a1e3(0x858);;const _0x1b5010=_0x2e4a48['p']+_0x49a1e3(0x1a07);;_0x470771[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q','$translate',_0x49a1e3(0x680),'projects',_0x49a1e3(0x1bd9),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x470771(_0x430269,_0x484577,_0x54c9bc,_0x4b3dbe,_0x3fd877,_0x272cc5,_0x14f210,_0x2db370,_0x2f1135,_0x5f6ec2,_0x3421cd,_0x2cd5da,_0x243d57,_0x53e889){const _0x24659f=_0x49a1e3,_0x282442=this;_0x282442[_0x24659f(0x1d3d)]=_0x3421cd[_0x24659f(0x808)](),_0x282442[_0x24659f(0xbae)]=[],_0x282442['setting']=_0x243d57,_0x282442[_0x24659f(0x1947)]=_0x2cd5da,_0x282442[_0x24659f(0x402)]=_0x53e889,_0x282442[_0x24659f(0x6c2)]={},_0x282442[_0x24659f(0xccc)]=_0x282442[_0x24659f(0x28d6)]&&_0x282442[_0x24659f(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x282442[_0x24659f(0x2021)]=_0x24659f(0x1aae),_0x282442['project']=angular[_0x24659f(0x289e)](_0x2f1135),_0x282442[_0x24659f(0x1d73)]=_0x2db370,_0x282442[_0x24659f(0x1ec2)]=![];!_0x282442[_0x24659f(0x1bd9)]&&(_0x282442['project']={'enableUncompleteSave':!![],'sendUnpauseOnSubmit':!![]},_0x282442['title']=_0x24659f(0x1fd3),_0x282442[_0x24659f(0x1ec2)]=!![]);_0x282442[_0x24659f(0x20a)]=_0x41717a,_0x282442[_0x24659f(0x1635)]=_0x319408,_0x282442[_0x24659f(0x49c)]=_0x3c06b8,_0x282442[_0x24659f(0x1605)]=_0x1972cc,_0x282442['closeDialog']=_0x3dc20b;function _0x41717a(){const _0x544d2c=_0x24659f;_0x282442[_0x544d2c(0xbae)]=[],_0x5f6ec2[_0x544d2c(0x1fb9)][_0x544d2c(0x2479)](_0x282442[_0x544d2c(0x1bd9)])[_0x544d2c(0x15e7)][_0x544d2c(0x64a)](function(_0x95f6e8){const _0x29c022=_0x544d2c;_0x282442[_0x29c022(0x1d73)][_0x29c022(0x1891)](_0x95f6e8[_0x29c022(0x14f8)]()),_0x14f210[_0x29c022(0x1339)]({'title':_0x29c022(0xa20),'msg':_0x282442[_0x29c022(0x1bd9)][_0x29c022(0x2494)]?_0x282442['project'][_0x29c022(0x2494)]+_0x29c022(0x258d):''}),_0x3dc20b(_0x95f6e8);})[_0x544d2c(0x20cd)](function(_0x6a1da1){const _0xccd903=_0x544d2c;if(_0x6a1da1[_0xccd903(0x1c52)]&&_0x6a1da1['data'][_0xccd903(0xbae)]&&_0x6a1da1[_0xccd903(0x1c52)]['errors'][_0xccd903(0x1b9e)]){_0x282442['errors']=_0x6a1da1[_0xccd903(0x1c52)]['errors']||[{'message':_0x6a1da1['toString'](),'type':_0xccd903(0x1b14)}];for(let _0x24ac0d=0x0;_0x24ac0d<_0x6a1da1['data'][_0xccd903(0xbae)][_0xccd903(0x1b9e)];_0x24ac0d+=0x1){_0x14f210[_0xccd903(0x1bd0)]({'title':_0x6a1da1[_0xccd903(0x1c52)][_0xccd903(0xbae)][_0x24ac0d]['type'],'msg':_0x6a1da1[_0xccd903(0x1c52)][_0xccd903(0xbae)][_0x24ac0d]['message']});}}else _0x14f210[_0xccd903(0x1bd0)]({'title':_0x6a1da1[_0xccd903(0x10b3)]?_0xccd903(0x575)+_0x6a1da1[_0xccd903(0x10b3)]+'\x20-\x20'+_0x6a1da1['statusText']:_0xccd903(0x1b14),'msg':_0x6a1da1['data']?JSON[_0xccd903(0x2317)](_0x6a1da1[_0xccd903(0x1c52)][_0xccd903(0x18ca)]):_0x6a1da1[_0xccd903(0x2915)]()});});}function _0x319408(){const _0x2a3254=_0x24659f;_0x282442[_0x2a3254(0xbae)]=[],_0x5f6ec2[_0x2a3254(0x1fb9)][_0x2a3254(0x2603)]({'id':_0x282442['project']['id']},_0x282442[_0x2a3254(0x1bd9)])['$promise'][_0x2a3254(0x64a)](function(_0x7ab36a){const _0x6ae61c=_0x2a3254,_0x41f1b5=_0x28c606()[_0x6ae61c(0x27bc)](_0x282442[_0x6ae61c(0x1d73)],{'id':_0x7ab36a['id']});_0x41f1b5&&_0x28c606()[_0x6ae61c(0x14fe)](_0x41f1b5,_0x28c606()[_0x6ae61c(0x27bb)](_0x7ab36a[_0x6ae61c(0x14f8)](),_0x28c606()['keys'](_0x41f1b5))),_0x14f210[_0x6ae61c(0x1339)]({'title':_0x6ae61c(0x1810),'msg':_0x282442[_0x6ae61c(0x1bd9)][_0x6ae61c(0x2494)]?_0x282442[_0x6ae61c(0x1bd9)][_0x6ae61c(0x2494)]+_0x6ae61c(0x271):''}),_0x3dc20b(_0x7ab36a);})[_0x2a3254(0x20cd)](function(_0x11c034){const _0x2168ca=_0x2a3254;if(_0x11c034['data']&&_0x11c034['data']['errors']&&_0x11c034['data']['errors'][_0x2168ca(0x1b9e)]){_0x282442['errors']=_0x11c034[_0x2168ca(0x1c52)][_0x2168ca(0xbae)]||[{'message':_0x11c034[_0x2168ca(0x2915)](),'type':_0x2168ca(0xedc)}];for(let _0x27b6c6=0x0;_0x27b6c6<_0x11c034[_0x2168ca(0x1c52)][_0x2168ca(0xbae)][_0x2168ca(0x1b9e)];_0x27b6c6++){_0x14f210[_0x2168ca(0x1bd0)]({'title':_0x11c034['data'][_0x2168ca(0xbae)][_0x27b6c6][_0x2168ca(0x2185)],'msg':_0x11c034[_0x2168ca(0x1c52)][_0x2168ca(0xbae)][_0x27b6c6][_0x2168ca(0x18ca)]});}}else _0x14f210[_0x2168ca(0x1bd0)]({'title':_0x11c034[_0x2168ca(0x10b3)]?_0x2168ca(0x575)+_0x11c034[_0x2168ca(0x10b3)]+_0x2168ca(0x21db)+_0x11c034['statusText']:_0x2168ca(0xedc),'msg':_0x11c034[_0x2168ca(0x1c52)]?JSON[_0x2168ca(0x2317)](_0x11c034[_0x2168ca(0x1c52)][_0x2168ca(0x18ca)]):_0x11c034[_0x2168ca(0x2915)]()});});}function _0x3c06b8(_0x4913ae){const _0x2703a8=_0x24659f;_0x282442[_0x2703a8(0xbae)]=[];const _0x9f0a6c=_0x4b3dbe[_0x2703a8(0x856)]()['title']('Are\x20you\x20sure?')[_0x2703a8(0x12b8)](_0x2703a8(0x6b8))[_0x2703a8(0x213e)](_0x2703a8(0x15b9))['ok'](_0x2703a8(0x2664))['cancel'](_0x2703a8(0x1dc6))[_0x2703a8(0x2283)](_0x4913ae);_0x4b3dbe[_0x2703a8(0xa60)](_0x9f0a6c)[_0x2703a8(0x64a)](function(){const _0x4b95d8=_0x2703a8;_0x5f6ec2[_0x4b95d8(0x1fb9)]['delete']({'id':_0x282442['project']['id']})[_0x4b95d8(0x15e7)][_0x4b95d8(0x64a)](function(){const _0x4d7856=_0x4b95d8;_0x28c606()[_0x4d7856(0x21c7)](_0x282442[_0x4d7856(0x1d73)],{'id':_0x282442[_0x4d7856(0x1bd9)]['id']}),_0x14f210[_0x4d7856(0x1339)]({'title':_0x4d7856(0x202a),'msg':(_0x282442['project']['name']||_0x4d7856(0x1bd9))+_0x4d7856(0x1fa8)}),_0x3dc20b(_0x282442[_0x4d7856(0x1bd9)]);})[_0x4b95d8(0x20cd)](function(_0x5a91b8){const _0x30a6c3=_0x4b95d8;if(_0x5a91b8[_0x30a6c3(0x1c52)]&&_0x5a91b8[_0x30a6c3(0x1c52)]['errors']&&_0x5a91b8[_0x30a6c3(0x1c52)][_0x30a6c3(0xbae)]['length']){_0x282442[_0x30a6c3(0xbae)]=_0x5a91b8[_0x30a6c3(0x1c52)][_0x30a6c3(0xbae)]||[{'message':_0x5a91b8[_0x30a6c3(0x2915)](),'type':'api.jscriptyProject.delete'}];for(let _0x3dfe7e=0x0;_0x3dfe7e<_0x5a91b8['data'][_0x30a6c3(0xbae)][_0x30a6c3(0x1b9e)];_0x3dfe7e++){_0x14f210[_0x30a6c3(0x1bd0)]({'title':_0x5a91b8['data']['errors'][_0x3dfe7e][_0x30a6c3(0x2185)],'msg':_0x5a91b8[_0x30a6c3(0x1c52)][_0x30a6c3(0xbae)][_0x3dfe7e]['message']});}}else _0x14f210['error']({'title':_0x5a91b8[_0x30a6c3(0x10b3)]?'API:'+_0x5a91b8[_0x30a6c3(0x10b3)]+_0x30a6c3(0x21db)+_0x5a91b8[_0x30a6c3(0x2115)]:_0x30a6c3(0x776),'msg':_0x5a91b8[_0x30a6c3(0x1c52)]?JSON[_0x30a6c3(0x2317)](_0x5a91b8[_0x30a6c3(0x1c52)][_0x30a6c3(0x18ca)]):_0x5a91b8[_0x30a6c3(0x18ca)]||_0x5a91b8[_0x30a6c3(0x2915)]()});});},function(){});}function _0x1972cc(_0x3ada3e){return _0x3ada3e===null?undefined:new Date(_0x3ada3e);}function _0x3dc20b(_0x50af19){_0x4b3dbe['hide'](_0x50af19);}}const _0x43876c=_0x470771;;_0x356cac[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$document',_0x49a1e3(0x1fe7),'api',_0x49a1e3(0x680),_0x49a1e3(0x21ce)];function _0x356cac(_0x2d16c3,_0x4c83a2,_0x103c16,_0x2fa4e4,_0x21a48b,_0x4b58ba){const _0xf35535=_0x49a1e3,_0x169b21=this;_0x169b21['project']={},_0x169b21[_0xf35535(0x1976)]=_0x4b58ba;const _0x260bed=new Date();_0x260bed[_0xf35535(0x260)](0x0,0x0,0x0,0x0),_0x169b21['pickerModel']={'dateStart':new Date(_0x260bed[_0xf35535(0x1856)](),_0x260bed[_0xf35535(0xe10)](),0x1),'dateEnd':new Date(_0x260bed[_0xf35535(0x1856)](),_0x260bed[_0xf35535(0xe10)]()+0x1,0x0),'selectedTemplate':'TM'},_0x169b21[_0xf35535(0x2354)]=_0x45ce85,_0x169b21['getSummary']=_0x33d5af,_0x169b21['getAnswers']=_0x58a228;function _0x58a228(){const _0x2b085b=_0xf35535;return _0x169b21[_0x2b085b(0xdcc)]=![],_0x2fa4e4[_0x2b085b(0x1fb9)][_0x2b085b(0x13db)]({'id':_0x169b21[_0x2b085b(0x1bd9)]['id'],'sort':_0x2b085b(0xa9a),'createdAt':{'$gte':_0x2ac33a()(_0x169b21[_0x2b085b(0xe56)][_0x2b085b(0x1e80)])[_0x2b085b(0x25df)](0x0,_0x2b085b(0x19b1))[_0x2b085b(0x25df)](0x0,_0x2b085b(0xef9))[_0x2b085b(0x25df)](0x0,'seconds')['utcOffset'](0x0,!![])[_0x2b085b(0x1c2c)](),'$lte':_0x2ac33a()(_0x169b21[_0x2b085b(0xe56)]['dateEnd'])[_0x2b085b(0x25df)](0x17,_0x2b085b(0x19b1))['add'](0x3b,_0x2b085b(0xef9))[_0x2b085b(0x25df)](0x3b,_0x2b085b(0x15a2))[_0x2b085b(0xebc)](0x0,!![])['format']()},'nolimit':!![]})[_0x2b085b(0x15e7)]['then'](function(_0x2e1b41){const _0x43b135=_0x2b085b;if(_0x2e1b41&&_0x2e1b41[_0x43b135(0x28b8)]&&typeof _0x2e1b41[_0x43b135(0xb90)]!=='undefined'){_0x169b21[_0x43b135(0x7c9)]={};for(let _0x18f100=0x0,_0x100af7=_0x2e1b41[_0x43b135(0xb90)];_0x18f100<_0x100af7;_0x18f100++){_0x2e1b41[_0x43b135(0x28b8)][_0x18f100][_0x43b135(0x1139)]&&(_0x169b21[_0x43b135(0xdcc)]=!![],typeof _0x169b21[_0x43b135(0x7c9)][_0x2e1b41[_0x43b135(0x28b8)][_0x18f100]['questionId']]===_0x43b135(0x19a1)&&(_0x169b21[_0x43b135(0x7c9)][_0x2e1b41[_0x43b135(0x28b8)][_0x18f100][_0x43b135(0x1139)]]={'question':_0x2e1b41[_0x43b135(0x28b8)][_0x18f100][_0x43b135(0x2598)],'answers':{},'sum':0x0}),_0x2e1b41[_0x43b135(0x28b8)][_0x18f100][_0x43b135(0x122c)]===''&&(_0x2e1b41['rows'][_0x18f100][_0x43b135(0x122c)]='NO_ANSWER'),_0x169b21[_0x43b135(0x7c9)][_0x2e1b41[_0x43b135(0x28b8)][_0x18f100][_0x43b135(0x1139)]]['answers'][_0x2e1b41[_0x43b135(0x28b8)][_0x18f100][_0x43b135(0x122c)]]?_0x169b21[_0x43b135(0x7c9)][_0x2e1b41[_0x43b135(0x28b8)][_0x18f100]['questionId']][_0x43b135(0x7c9)][_0x2e1b41[_0x43b135(0x28b8)][_0x18f100][_0x43b135(0x122c)]]+=0x1:_0x169b21[_0x43b135(0x7c9)][_0x2e1b41[_0x43b135(0x28b8)][_0x18f100][_0x43b135(0x1139)]][_0x43b135(0x7c9)][_0x2e1b41['rows'][_0x18f100][_0x43b135(0x122c)]]=0x1,_0x169b21['answers'][_0x2e1b41[_0x43b135(0x28b8)][_0x18f100]['questionId']][_0x43b135(0x1cd4)]+=0x1);}}})[_0x2b085b(0x20cd)](function(_0x42fe35){const _0x4b9fa2=_0x2b085b;_0x21a48b[_0x4b9fa2(0x1bd0)]({'title':_0x42fe35[_0x4b9fa2(0x10b3)]?_0x4b9fa2(0x575)+_0x42fe35[_0x4b9fa2(0x10b3)]+_0x4b9fa2(0x21db)+_0x42fe35[_0x4b9fa2(0x2115)]:_0x4b9fa2(0x191c),'msg':_0x42fe35[_0x4b9fa2(0x1c52)]?JSON['stringify'](_0x42fe35[_0x4b9fa2(0x1c52)]):_0x42fe35[_0x4b9fa2(0x2915)]()});});}function _0x45ce85(_0x25b211){const _0x4f23e8=_0xf35535;_0x169b21[_0x4f23e8(0x1bd9)]=_0x25b211,_0x169b21[_0x4f23e8(0x13db)]();}function _0x33d5af(){const _0x711ee9=_0xf35535;return _0x2fa4e4[_0x711ee9(0x1fb9)]['getSummary']({'id':_0x169b21[_0x711ee9(0x1bd9)]['id'],'startTime':{'$gte':_0x169b21[_0x711ee9(0xe56)]['dateStart'],'$lte':_0x2ac33a()(_0x169b21[_0x711ee9(0xe56)][_0x711ee9(0x2297)])['add'](0x17,_0x711ee9(0x19b1))['add'](0x3b,_0x711ee9(0xef9))[_0x711ee9(0x25df)](0x3b,_0x711ee9(0x15a2))[_0x711ee9(0x1c2c)]()},'nolimit':!![]})[_0x711ee9(0x15e7)][_0x711ee9(0x64a)](function(_0x4df05d){const _0x2b32db=_0x711ee9;if(typeof _0x4df05d[_0x2b32db(0x1b9e)]!=='undefined'){const _0x3f75aa=[_0x4df05d[_0x2b32db(0x5a9)]],_0x3e872d=new Blob(_0x3f75aa,{'type':_0x4df05d[_0x2b32db(0x2185)]}),_0x35d5d7=window[_0x2b32db(0x123f)][_0x2b32db(0x2978)]('a');_0x35d5d7['setAttribute'](_0x2b32db(0x25d0),URL['createObjectURL'](_0x3e872d)),_0x35d5d7['setAttribute'](_0x2b32db(0x19b3),_0x2b32db(0x1ebf)+_0x169b21[_0x2b32db(0x1bd9)]['id']+_0x2b32db(0x5b7)),_0x35d5d7[_0x2b32db(0x2668)]();}else _0x21a48b['info']({'title':_0x2b32db(0x134a),'msg':'No\x20answers\x20available'});})[_0x711ee9(0x20cd)](function(_0x1fcb25){const _0x177b6e=_0x711ee9;_0x21a48b[_0x177b6e(0x1bd0)]({'title':_0x1fcb25[_0x177b6e(0x10b3)]?_0x177b6e(0x575)+_0x1fcb25[_0x177b6e(0x10b3)]+'\x20-\x20'+_0x1fcb25[_0x177b6e(0x2115)]:_0x177b6e(0x2306),'msg':_0x1fcb25['data']?JSON['stringify'](_0x1fcb25['data']):_0x1fcb25['toString']()});});}}const _0x18c94e=_0x356cac;;function _0x467ebd(){const _0x53566a=_0x49a1e3,_0x29a288=this;_0x29a288['project']={},_0x29a288[_0x53566a(0xa47)]={'questionTypes':[_0x53566a(0x39b),_0x53566a(0x1e3c),'radio','checkbox',_0x53566a(0x2926),_0x53566a(0x2113),'date',_0x53566a(0x939),'email',_0x53566a(0x22dc),_0x53566a(0x2761)],'elementTypes':[_0x53566a(0x2598),'paragraph']},_0x29a288[_0x53566a(0x2354)]=_0x39ae10,_0x29a288[_0x53566a(0x58e)]=_0x9008d7;function _0x9008d7(_0x42a8f3){const _0x7c866a=_0x53566a;if(_0x28c606()[_0x7c866a(0x28d7)](_0x42a8f3))return![];try{JSON[_0x7c866a(0x27f1)](_0x42a8f3);}catch(_0x3edbb7){return![];}return!![];}function _0x39ae10(_0x3c2a3b){const _0x589ec0=_0x53566a;_0x29a288[_0x589ec0(0x1bd9)]=_0x3c2a3b;if(_0x28c606()[_0x589ec0(0x26d1)](_0x3c2a3b[_0x589ec0(0x6b9)]))_0x29a288[_0x589ec0(0x1bd9)][_0x589ec0(0x6b9)]=_0x3c2a3b[_0x589ec0(0x6b9)];else _0x29a288[_0x589ec0(0x58e)](_0x3c2a3b[_0x589ec0(0x6b9)])?_0x29a288['project']['formData']=JSON[_0x589ec0(0x27f1)](_0x3c2a3b[_0x589ec0(0x6b9)]):_0x29a288[_0x589ec0(0x1bd9)][_0x589ec0(0x6b9)]={};}}const _0x832ad5=_0x467ebd;;_0x1bf932[_0x49a1e3(0x1e73)]=['$mdDialog','$state',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x1bd9),_0x49a1e3(0x1d73),_0x49a1e3(0x298c)];function _0x1bf932(_0x5bf1e4,_0x5c006d,_0x1dfded,_0x83993c,_0x52d5a3,_0x1ddf6f,_0x30a0e9){const _0xe13102=_0x49a1e3,_0x24c28c=this;_0x24c28c['newProject']=!![],_0x24c28c[_0xe13102(0x1bd9)]=angular[_0xe13102(0x289e)](_0x52d5a3),_0x24c28c[_0xe13102(0x1d73)]=_0x1ddf6f,_0x24c28c['title']=_0x30a0e9[_0xe13102(0x2292)](_0xe13102(0x1584));_0x52d5a3&&_0x52d5a3['name']&&(_0x24c28c['title']+=':\x20'+_0x52d5a3[_0xe13102(0x2494)]);_0x24c28c[_0xe13102(0x10fc)]=_0x72160f,_0x24c28c[_0xe13102(0x16cb)]=_0xa3025c;function _0x72160f(){const _0x4ff399=_0xe13102;return _0x83993c[_0x4ff399(0x1fb9)][_0x4ff399(0x24b2)]({'id':_0x52d5a3['id']},_0x24c28c[_0x4ff399(0x1bd9)])[_0x4ff399(0x15e7)][_0x4ff399(0x64a)](function(_0x15b0ec){const _0x15fb1d=_0x4ff399;_0x24c28c[_0x15fb1d(0x1d73)][_0x15fb1d(0x1891)](_0x15b0ec[_0x15fb1d(0x14f8)]()),_0x1dfded[_0x15fb1d(0x1339)]({'title':_0x15fb1d(0x13b6),'msg':_0x24c28c[_0x15fb1d(0x1bd9)][_0x15fb1d(0x2494)]?_0x24c28c[_0x15fb1d(0x1bd9)][_0x15fb1d(0x2494)]+_0x15fb1d(0x28e7):''}),_0x5c006d['go'](_0x15fb1d(0x1637),{'id':_0x15b0ec['id']}),_0xa3025c(_0x15b0ec);})[_0x4ff399(0x20cd)](function(_0x4c0ff1){const _0xfab78d=_0x4ff399;if(_0x4c0ff1[_0xfab78d(0x1c52)]&&_0x4c0ff1[_0xfab78d(0x1c52)][_0xfab78d(0xbae)]&&_0x4c0ff1['data'][_0xfab78d(0xbae)]['length']){_0x24c28c['errors']=_0x4c0ff1['data']['errors']||[{'message':_0x4c0ff1['toString'](),'type':'api.jscriptyProject.clone'}];for(let _0x296fb8=0x0;_0x296fb8<_0x4c0ff1[_0xfab78d(0x1c52)][_0xfab78d(0xbae)][_0xfab78d(0x1b9e)];_0x296fb8+=0x1){_0x1dfded[_0xfab78d(0x1bd0)]({'title':_0x4c0ff1[_0xfab78d(0x1c52)][_0xfab78d(0xbae)][_0x296fb8]['type'],'msg':_0x4c0ff1[_0xfab78d(0x1c52)]['errors'][_0x296fb8][_0xfab78d(0x18ca)]});}}else _0x1dfded[_0xfab78d(0x1bd0)]({'title':_0x4c0ff1[_0xfab78d(0x10b3)]?_0xfab78d(0x575)+_0x4c0ff1['status']+_0xfab78d(0x21db)+_0x4c0ff1[_0xfab78d(0x2115)]:_0xfab78d(0xea8),'msg':_0x4c0ff1['data']?JSON[_0xfab78d(0x2317)](_0x4c0ff1[_0xfab78d(0x1c52)]['message']):_0x4c0ff1['toString']()});});}function _0xa3025c(_0x3a7704){const _0x187d0b=_0xe13102;_0x5bf1e4[_0x187d0b(0x268e)](_0x3a7704);}}const _0x2902d7=_0x1bf932;;_0x488d5d[_0x49a1e3(0x1e73)]=['$q',_0x49a1e3(0x212a),_0x49a1e3(0x1674)];function _0x488d5d(_0x3c315c,_0xd46d51,_0x28a69d){const _0x325d43=_0x49a1e3,_0x2d22e4=this;_0x2d22e4['project']={},_0x2d22e4[_0x325d43(0x17db)]={},_0x2d22e4[_0x325d43(0x1464)]={},_0x2d22e4[_0x325d43(0x2354)]=_0x5ab811,_0x2d22e4['onSubmit']=_0x517a36,_0x2d22e4[_0x325d43(0x6ff)]=_0x3caaee;function _0x5ab811(_0x2ea37e){const _0x10ac66=_0x325d43;_0x2d22e4['project']=_0x2ea37e,_0x28a69d[_0x10ac66(0x8c7)](_0x10ac66(0x1402),function(_0x137274,_0x5d42af){const _0x4a5edf=_0x10ac66;if(_0x5d42af[_0x4a5edf(0xa34)]&&_0x2d22e4[_0x4a5edf(0x1bd9)][_0x4a5edf(0x6b9)]&&_0x2d22e4[_0x4a5edf(0x1bd9)][_0x4a5edf(0x6b9)][_0x4a5edf(0x85b)])for(let _0x2ccaaa=0x0,_0x5ebcc1=_0x2d22e4[_0x4a5edf(0x1bd9)][_0x4a5edf(0x6b9)][_0x4a5edf(0x85b)][_0x4a5edf(0x1b9e)];_0x2ccaaa<_0x5ebcc1;_0x2ccaaa++){if(_0x5d42af[_0x4a5edf(0xa34)][_0x4a5edf(0x2113)]<_0x2ccaaa+0x1&&_0x2d22e4['project'][_0x4a5edf(0x6b9)]['pages'][_0x2ccaaa][_0x4a5edf(0xfee)])for(let _0x5622e5=0x0,_0x1ddf78=_0x2d22e4[_0x4a5edf(0x1bd9)][_0x4a5edf(0x6b9)]['pages'][_0x2ccaaa][_0x4a5edf(0xfee)][_0x4a5edf(0x1b9e)];_0x5622e5<_0x1ddf78;_0x5622e5++){_0x2d22e4['project'][_0x4a5edf(0x6b9)][_0x4a5edf(0x85b)][_0x2ccaaa][_0x4a5edf(0xfee)][_0x5622e5][_0x4a5edf(0x2185)]===_0x4a5edf(0x2598)&&_0x2d22e4[_0x4a5edf(0x1bd9)][_0x4a5edf(0x6b9)][_0x4a5edf(0x85b)][_0x2ccaaa][_0x4a5edf(0xfee)][_0x5622e5][_0x4a5edf(0x2598)]&&delete _0x2d22e4[_0x4a5edf(0x17db)][_0x2d22e4['project'][_0x4a5edf(0x6b9)][_0x4a5edf(0x85b)][_0x2ccaaa][_0x4a5edf(0xfee)][_0x5622e5]['question']['id']];}}});}function _0x517a36(_0x111c5f){const _0x3e6472=_0x325d43,_0x3e7e66=_0x3c315c[_0x3e6472(0x122)](),_0xdd0b67=_0xd46d51['confirm']()[_0x3e6472(0x2021)](_0x3e6472(0x24b4))[_0x3e6472(0x250d)]('')[_0x3e6472(0x213e)](_0x3e6472(0x8e6))[_0x3e6472(0x2283)](_0x111c5f)['ok'](_0x3e6472(0x761))[_0x3e6472(0x101a)](_0x3e6472(0x18fd));return _0xd46d51[_0x3e6472(0xa60)](_0xdd0b67)[_0x3e6472(0x64a)](function(){const _0x9de821=_0x3e6472;_0x3e7e66[_0x9de821(0x1268)](!![]);},function(){_0x3e7e66['reject']();}),_0x3e7e66['promise'];}function _0x3caaee(){const _0x4cc3e2=_0x325d43;_0x2d22e4[_0x4cc3e2(0x1464)][_0x4cc3e2(0x2839)]&&_0x2d22e4[_0x4cc3e2(0x1464)][_0x4cc3e2(0x2839)]();}}const _0x584545=_0x488d5d;;const _0x53be08=_0x2e4a48['p']+'src/js/modules/main/apps/jscripty/views/projects/edit/sessions/dialog.html/dialog.html';;_0x27d00a[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),'$scope','$state','$q',_0x49a1e3(0x298c),'$timeout',_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x27d00a(_0xb37a06,_0x2ae904,_0x3cd327,_0x2df4aa,_0x4d0ed3,_0x376a0a,_0x1407f7,_0x1d7ecc,_0xe2c42c,_0x2767ca,_0x54e4a5){const _0x42e532=_0x49a1e3,_0xab226f=this;_0xab226f[_0x42e532(0x1d3d)]=_0x54e4a5[_0x42e532(0x808)](),_0xab226f['project']={},_0xab226f['projectSessions']={'count':0x0,'rows':[]},_0xab226f[_0x42e532(0x1c5f)]=[],_0xab226f[_0x42e532(0x402)],_0xab226f['query']={'fields':'createdAt,updatedAt,id,starttime,endtime,membername,calleridnum,completed','sort':'-starttime','limit':0xa,'page':0x1},_0xab226f[_0x42e532(0x2354)]=_0x7af449,_0xab226f['deleteConfirm']=_0x1a80bb,_0xab226f[_0x42e532(0x1339)]=_0x26381b,_0xab226f['getProjectSessions']=_0x268740,_0xab226f[_0x42e532(0x1147)]=_0x19969b,_0xab226f[_0x42e532(0x1038)]=_0x49f9eb,_0xab226f['exportSelectedProjectSessions']=_0x4a21f6,_0xab226f['deleteProjectSession']=_0x86af45,_0xab226f['deleteSelectedProjectSessions']=_0x509aa4;function _0x7af449(_0x43d6fc,_0x186be3){const _0x26b0e0=_0x42e532;_0xab226f['project']=_0x43d6fc,_0xab226f[_0x26b0e0(0x402)]=typeof _0x186be3!==_0x26b0e0(0x19a1)?_0x186be3:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xab226f[_0x26b0e0(0x289a)]['id']=_0xab226f[_0x26b0e0(0x1bd9)]['id'],_0x268740();}function _0x1a80bb(_0x2eff99,_0x2fa18f){const _0xac7245=_0x42e532,_0x27c6ab=_0x1407f7['confirm']()[_0xac7245(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20session?')[_0xac7245(0x33a)](''+(_0x2eff99[_0xac7245(0x2494)]||_0x2eff99['id']&&_0x28c606()['upperFirst'](_0xac7245(0x347))+_0x2eff99['id']||_0xac7245(0x27fc))+_0xac7245(0x26d0)+'\x20will\x20be\x20deleted.')[_0xac7245(0x213e)](_0xac7245(0x5e7))[_0xac7245(0x2283)](_0x2fa18f)['ok']('OK')[_0xac7245(0x101a)]('CANCEL');_0x1407f7[_0xac7245(0xa60)](_0x27c6ab)[_0xac7245(0x64a)](function(){_0x86af45(_0x2eff99);},function(){const _0xfd74b2=_0xac7245;console[_0xfd74b2(0x9b4)]('CANCEL');});}function _0x26381b(_0x49512f){const _0x550d27=_0x42e532;_0xab226f[_0x550d27(0x2882)]=_0x49512f||{'count':0x0,'rows':[]};}function _0x268740(){const _0x15e5c2=_0x42e532;_0xab226f[_0x15e5c2(0x289a)]['offset']=(_0xab226f[_0x15e5c2(0x289a)][_0x15e5c2(0xc72)]-0x1)*_0xab226f[_0x15e5c2(0x289a)]['limit'],_0xab226f[_0x15e5c2(0x1713)]=_0x2767ca['jscriptyProject'][_0x15e5c2(0x159e)](_0xab226f[_0x15e5c2(0x289a)],_0x26381b)[_0x15e5c2(0x15e7)];}function _0x19969b(_0x43d1ff,_0x4a7856){const _0x43742f=_0x42e532;_0x1407f7[_0x43742f(0xa60)]({'controller':_0x43742f(0x275c),'controllerAs':'vm','templateUrl':_0x53be08,'parent':angular['element'](_0x1d7ecc[_0x43742f(0xb49)]),'targetEvent':_0x43d1ff,'clickOutsideToClose':!![],'locals':{'project':_0xab226f['project'],'session':_0x4a7856,'sessions':_0xab226f[_0x43742f(0x2882)][_0x43742f(0x28b8)],'license':null,'setting':null,'crudPermissions':_0xab226f['crudPermissions']}});}function _0x49f9eb(_0x17177e,_0x342536){const _0x3b85c2=_0x42e532;_0x1407f7['show']({'controller':'ShowQuestionsSessionDialogController','controllerAs':'vm','templateUrl':_0x53be08,'parent':angular[_0x3b85c2(0x1f81)](_0x1d7ecc[_0x3b85c2(0xb49)]),'targetEvent':_0x17177e,'clickOutsideToClose':!![],'resolve':{'questions':[_0x3b85c2(0x107c),function(_0x21f2d4){const _0x446b03=_0x3b85c2;return _0x21f2d4[_0x446b03(0x1268)](_0x446b03(0x18d),{'fields':_0x446b03(0x13f3),'sort':'id','id':_0x342536['id']});}]},'locals':{'project':_0xab226f[_0x3b85c2(0x1bd9)],'session':_0x342536}});}function _0x86af45(_0x17e459){const _0x34fb7f=_0x42e532;_0x2767ca[_0x34fb7f(0x192)][_0x34fb7f(0xabd)]({'id':_0x17e459['id']})[_0x34fb7f(0x15e7)][_0x34fb7f(0x64a)](function(){const _0x308829=_0x34fb7f;_0x28c606()[_0x308829(0x21c7)](_0xab226f[_0x308829(0x2882)][_0x308829(0x28b8)],{'id':_0x17e459['id']}),_0xab226f[_0x308829(0x2882)][_0x308829(0xb90)]-=0x1,!_0xab226f[_0x308829(0x2882)]['rows'][_0x308829(0x1b9e)]&&_0x268740(),_0xe2c42c['success']({'title':_0x308829(0xff9),'msg':_0x17e459[_0x308829(0x2494)]?_0x17e459[_0x308829(0x2494)]+_0x308829(0x1fa8):''});})['catch'](function(_0x47ae54){const _0x19e84f=_0x34fb7f;if(_0x47ae54['data']&&_0x47ae54[_0x19e84f(0x1c52)][_0x19e84f(0xbae)]&&_0x47ae54[_0x19e84f(0x1c52)][_0x19e84f(0xbae)][_0x19e84f(0x1b9e)]){_0xab226f['errors']=_0x47ae54[_0x19e84f(0x1c52)][_0x19e84f(0xbae)]||[{'message':_0x47ae54[_0x19e84f(0x2915)](),'type':_0x19e84f(0x8b1)}];for(let _0x36d11c=0x0;_0x36d11c<_0x47ae54[_0x19e84f(0x1c52)]['errors'][_0x19e84f(0x1b9e)];_0x36d11c++){_0xe2c42c['error']({'title':_0x47ae54[_0x19e84f(0x1c52)][_0x19e84f(0xbae)][_0x36d11c][_0x19e84f(0x2185)],'msg':_0x47ae54[_0x19e84f(0x1c52)][_0x19e84f(0xbae)][_0x36d11c][_0x19e84f(0x18ca)]});}}else _0xe2c42c[_0x19e84f(0x1bd0)]({'title':_0x47ae54['status']?_0x19e84f(0x575)+_0x47ae54[_0x19e84f(0x10b3)]+_0x19e84f(0x21db)+_0x47ae54[_0x19e84f(0x2115)]:_0x19e84f(0x8b1),'msg':_0x47ae54[_0x19e84f(0x1c52)]?JSON[_0x19e84f(0x2317)](_0x47ae54[_0x19e84f(0x1c52)][_0x19e84f(0x18ca)]):_0x47ae54['message']||_0x47ae54[_0x19e84f(0x2915)]()});});}function _0x4a21f6(){const _0x44844b=_0x42e532,_0x239c99=angular[_0x44844b(0x289e)](_0xab226f[_0x44844b(0x1c5f)]);return _0xab226f[_0x44844b(0x1c5f)]=[],_0x239c99;}function _0x509aa4(_0x586cc5){const _0x29ca5b=_0x42e532,_0x291ce8=_0x1407f7[_0x29ca5b(0x856)]()[_0x29ca5b(0x2021)](_0x29ca5b(0xde8))[_0x29ca5b(0x33a)](''+_0xab226f[_0x29ca5b(0x1c5f)][_0x29ca5b(0x1b9e)]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x29ca5b(0x213e)](_0x29ca5b(0x1e17))[_0x29ca5b(0x2283)](_0x586cc5)['ok']('OK')[_0x29ca5b(0x101a)](_0x29ca5b(0x18fd));_0x1407f7[_0x29ca5b(0xa60)](_0x291ce8)[_0x29ca5b(0x64a)](function(){const _0x5ddb98=_0x29ca5b;_0xab226f['selectedProjectSessions'][_0x5ddb98(0x1397)](function(_0x491e20){_0x86af45(_0x491e20);}),_0xab226f[_0x5ddb98(0x1c5f)]=[];});}let _0x1d00c1=!![],_0x111c91=0x1;_0x2ae904['$watch']('vm_dc.query.filter',function(_0x47a296,_0x4360e1){const _0x5bd0b5=_0x42e532;_0x1d00c1?_0x376a0a(function(){_0x1d00c1=![];}):(!_0x4360e1&&(_0x111c91=_0xab226f['query']['page']),_0x47a296!==_0x4360e1&&(_0xab226f[_0x5bd0b5(0x289a)][_0x5bd0b5(0xc72)]=0x1),!_0x47a296&&(_0xab226f['query'][_0x5bd0b5(0xc72)]=_0x111c91),_0x268740());});}const _0x5aaacb=_0x27d00a;;_0x55b89d['$inject']=['$scope',_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'toasty','session',_0x49a1e3(0x1dc9),'project'];function _0x55b89d(_0xfcf777,_0x3efdf1,_0x11344c,_0x3d8b86,_0x2f18db,_0x4c9191,_0x4a3aa5,_0x237b92){const _0x6001e4=_0x49a1e3,_0x3eb3f1=this;_0x3eb3f1[_0x6001e4(0x2021)]='JSCRIPTY.SESSION_RESULTS',_0x3eb3f1[_0x6001e4(0x27fc)]=_0x4c9191,_0x3eb3f1[_0x6001e4(0x1dc9)]=_0x4a3aa5,_0x3eb3f1['project']=_0x237b92;function _0x1c0d73(_0x79973a){const _0x3bf4d7=_0x6001e4;_0x3d8b86[_0x3bf4d7(0x268e)](_0x79973a);}_0x3eb3f1[_0x6001e4(0x16cb)]=_0x1c0d73;}const _0x3bb15c=_0x55b89d;;const _0x3157ed=_0x2e4a48['p']+'src/js/modules/main/apps/jscripty/views/projects/edit/clone/clone.html/clone.html';;_0x5b9c94[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x298c),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),'api',_0x49a1e3(0x680),'Auth','project','userProfileSection'];function _0x5b9c94(_0x167e0d,_0x362b95,_0x5adad1,_0x4cf9c7,_0x1916eb,_0xaa46a9,_0x370227,_0x55383d,_0x3b4f59,_0x437ec2,_0x286cc9,_0x3932b6){const _0x3e9748=_0x49a1e3,_0xaf7ce9=this;_0xaf7ce9[_0x3e9748(0x1d3d)]=_0x437ec2[_0x3e9748(0x808)](),_0xaf7ce9[_0x3e9748(0x1947)]=_0xaa46a9,_0xaf7ce9[_0x3e9748(0x28d6)]=_0x370227,_0xaf7ce9[_0x3e9748(0xccc)]=_0xaf7ce9['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xaf7ce9['location']=_0x362b95[_0x3e9748(0x48e)]()+_0x3e9748(0xe1f)+_0x362b95[_0x3e9748(0x1e5d)](),_0xaf7ce9[_0x3e9748(0x1bd9)]=_0x286cc9||_0x167e0d[_0x3e9748(0x1b48)][_0x3e9748(0x1bd9)]||{},_0xaf7ce9[_0x3e9748(0x16b2)]=_0x3932b6&&_0x3932b6['count']==0x1?_0x3932b6[_0x3e9748(0x28b8)][0x0]:null,_0xaf7ce9[_0x3e9748(0x402)]=_0x437ec2['parseCrudPermissions'](_0xaf7ce9[_0x3e9748(0x16b2)]?_0xaf7ce9['userProfileSection'][_0x3e9748(0x402)]:null),_0xaf7ce9[_0x3e9748(0x6c2)]={},_0xaf7ce9[_0x3e9748(0x197c)]=_0x167e0d['params'][_0x3e9748(0x1222)]||0x0,_0xaf7ce9[_0x3e9748(0x1676)]=_0x328610,_0xaf7ce9[_0x3e9748(0x2540)]=_0x3b4f59[_0x3e9748(0x772)],_0xaf7ce9[_0x3e9748(0x1664)]=_0x1caa6c,_0xaf7ce9['saveProject']=_0x3de9f1;function _0x328610(_0x43c48f,_0x3e5d9a){const _0x551f85=_0x3e9748;_0x5adad1[_0x551f85(0xa60)]({'controller':_0x551f85(0x26a2),'controllerAs':'vm','templateUrl':_0x3157ed,'parent':angular[_0x551f85(0x1f81)](_0x4cf9c7[_0x551f85(0xb49)]),'targetEvent':_0x3e5d9a,'clickOutsideToClose':!![],'locals':{'project':_0x43c48f,'projects':_0xaf7ce9[_0x551f85(0x1d73)]?_0xaf7ce9['projects'][_0x551f85(0x28b8)]:[],'crudPermissions':_0xaf7ce9[_0x551f85(0x402)]}});}function _0x1caa6c(){const _0x4431e2=_0x3e9748;_0x167e0d['go'](_0x4431e2(0x2c4),{},{'reload':'app.jscripty.projects'});}function _0x3de9f1(){const _0x5e81ba=_0x3e9748;_0x55383d[_0x5e81ba(0x1fb9)][_0x5e81ba(0x2603)]({'id':_0xaf7ce9[_0x5e81ba(0x1bd9)]['id']},_0xaf7ce9['project'])[_0x5e81ba(0x15e7)]['then'](function(){const _0x16163b=_0x5e81ba;_0x3b4f59[_0x16163b(0x1339)]({'title':'Project\x20updated!','msg':_0xaf7ce9['project']['name']?_0xaf7ce9[_0x16163b(0x1bd9)][_0x16163b(0x2494)]+'\x20has\x20been\x20updated!':''});})[_0x5e81ba(0x20cd)](function(_0x50d117){const _0x389104=_0x5e81ba;_0x3b4f59[_0x389104(0x1bd0)]({'title':_0x50d117[_0x389104(0x10b3)]?_0x389104(0x575)+_0x50d117[_0x389104(0x10b3)]+'\x20-\x20'+_0x50d117[_0x389104(0x2115)]:_0x389104(0x8b1),'msg':_0x50d117[_0x389104(0x1c52)]?JSON['stringify'](_0x50d117[_0x389104(0x1c52)]):_0x50d117[_0x389104(0x2915)]()});});}}const _0x27c6f7=_0x5b9c94;;const _0x588c4c=_0x2e4a48['p']+_0x49a1e3(0x77e);;_0x13d572['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),'$state','$mdSidenav','$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x1d73),_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x13d572(_0x5d591f,_0x2616e9,_0x11b7b9,_0xd73ba,_0x17aa84,_0x2c5b1d,_0x4ca4be,_0x22f9ea,_0x185168,_0x14f631,_0x5b7378,_0x210cfd,_0x421d75,_0x5255fb,_0x3e5005,_0x3b207e,_0x48f534){const _0x4180dc=_0x49a1e3,_0x4635b2=this;_0x4635b2['license']=_0x3b207e,_0x4635b2[_0x4180dc(0x28d6)]=_0x48f534,_0x4635b2[_0x4180dc(0x1d3d)]=_0x3e5005[_0x4180dc(0x808)](),_0x4635b2['projects']=_0x185168||{'count':0x0,'rows':[]},_0x4635b2[_0x4180dc(0x16a8)]=_0x14f631,_0x4635b2['userProfileSection']=_0x5b7378&&_0x5b7378['count']==0x1?_0x5b7378['rows'][0x0]:null,_0x4635b2[_0x4180dc(0x402)]=_0x3e5005[_0x4180dc(0xa7e)](_0x4635b2[_0x4180dc(0x16b2)]?_0x4635b2['userProfileSection'][_0x4180dc(0x402)]:null),_0x4635b2[_0x4180dc(0x185d)]='projects',_0x4635b2['listOrder']='',_0x4635b2[_0x4180dc(0x2748)]=null,_0x4635b2['selectedProjects']=[],_0x4635b2[_0x4180dc(0x289a)]={'fields':_0x4180dc(0x2847),'sort':_0x4180dc(0x260c),'limit':0xa,'page':0x1},_0x4635b2[_0x4180dc(0xff6)]=_0x44220f,_0x4635b2[_0x4180dc(0x1676)]=_0x3e5c93,_0x4635b2[_0x4180dc(0x1277)]=_0x394190,_0x4635b2[_0x4180dc(0x1262)]=_0x5dbc59,_0x4635b2[_0x4180dc(0x1339)]=_0x37bd3d,_0x4635b2[_0x4180dc(0x2938)]=_0x2a7ade,_0x4635b2[_0x4180dc(0x20ff)]=_0x44ade2,_0x4635b2[_0x4180dc(0x49c)]=_0x5c7536,_0x4635b2[_0x4180dc(0x194f)]=_0x4b01d6,_0x4635b2[_0x4180dc(0x1793)]=_0x3e5173,_0x4635b2['deselectProjects']=_0x5a0cb9,_0x4635b2[_0x4180dc(0x517)]=_0xc183b6;function _0x44220f(_0x4627b8){const _0x55176e=_0x4180dc;_0x11b7b9['go'](_0x55176e(0x1637),{'id':_0x4627b8['id'],'project':_0x4627b8,'crudPermissions':_0x4635b2[_0x55176e(0x402)]});}function _0x3e5c93(_0x4bcfed,_0x1bb3f2){const _0x5352=_0x4180dc;_0x17aa84['show']({'controller':'ProjectcloneController','controllerAs':'vm','templateUrl':_0x3157ed,'parent':angular[_0x5352(0x1f81)](_0x2c5b1d['body']),'targetEvent':_0x1bb3f2,'clickOutsideToClose':!![],'locals':{'project':_0x4bcfed,'projects':_0x4635b2[_0x5352(0x1d73)]?_0x4635b2[_0x5352(0x1d73)][_0x5352(0x28b8)]:[],'crudPermissions':_0x4635b2['crudPermissions']}});}function _0x394190(_0x4aa720){const _0x93edf0=_0x4180dc;_0x11b7b9['go'](_0x93edf0(0x1637),{'id':_0x4aa720['id'],'tab':0x3});}function _0x5dbc59(_0x33e8e2,_0x933af3){const _0x3a407e=_0x4180dc,_0x49a7cd=_0x17aa84[_0x3a407e(0x856)]()[_0x3a407e(0x2021)](_0x3a407e(0x1231)+_0x28c606()[_0x3a407e(0xc01)](_0x3a407e(0x1bd9))+'?')['htmlContent'](_0x3a407e(0x50b)+(_0x33e8e2['name']||_0x3a407e(0x1bd9))+_0x3a407e(0x26d0)+_0x3a407e(0x4b8))[_0x3a407e(0x213e)](_0x3a407e(0x1754))['targetEvent'](_0x933af3)['ok']('OK')[_0x3a407e(0x101a)](_0x3a407e(0x18fd));_0x17aa84['show'](_0x49a7cd)[_0x3a407e(0x64a)](function(){_0x5c7536(_0x33e8e2);},function(){const _0x15ec9f=_0x3a407e;console['log'](_0x15ec9f(0x18fd));});}let _0x5072f4=!![],_0x2076bb=0x1;_0x5d591f['$watch'](_0x4180dc(0x1cb9),function(_0x33cfe3,_0x30856f){const _0x1038be=_0x4180dc;_0x5072f4?_0x4ca4be(function(){_0x5072f4=![];}):(!_0x30856f&&(_0x2076bb=_0x4635b2[_0x1038be(0x289a)]['page']),_0x33cfe3!==_0x30856f&&(_0x4635b2[_0x1038be(0x289a)][_0x1038be(0xc72)]=0x1),!_0x33cfe3&&(_0x4635b2[_0x1038be(0x289a)][_0x1038be(0xc72)]=_0x2076bb),_0x4635b2[_0x1038be(0x2938)]());});function _0x37bd3d(_0x3dfab4){_0x4635b2['projects']=_0x3dfab4||{'count':0x0,'rows':[]};}function _0x2a7ade(){const _0x474269=_0x4180dc;_0x4635b2[_0x474269(0x289a)][_0x474269(0x24f9)]=(_0x4635b2['query'][_0x474269(0xc72)]-0x1)*_0x4635b2['query'][_0x474269(0x25bb)],_0x3e5005[_0x474269(0x4de)](_0x474269(0x333))?_0x4635b2[_0x474269(0x1713)]=_0x210cfd[_0x474269(0x1fb9)][_0x474269(0x896)](_0x4635b2[_0x474269(0x289a)],_0x37bd3d)[_0x474269(0x15e7)]:(_0x4635b2[_0x474269(0x289a)]['id']=_0x4635b2['userProfile']['id'],_0x4635b2['query'][_0x474269(0xa21)]=_0x474269(0x977),_0x4635b2[_0x474269(0x1713)]=_0x210cfd[_0x474269(0x16a8)][_0x474269(0x2565)](_0x4635b2[_0x474269(0x289a)],_0x37bd3d)[_0x474269(0x15e7)]);}function _0x44ade2(_0x550fe5,_0x1999f2){const _0x45391a=_0x4180dc;_0x17aa84[_0x45391a(0xa60)]({'controller':'CreateOrEditProjectDialogController','controllerAs':'vm','templateUrl':_0x588c4c,'parent':angular['element'](_0x2c5b1d[_0x45391a(0xb49)]),'targetEvent':_0x550fe5,'clickOutsideToClose':!![],'locals':{'project':_0x1999f2,'projects':_0x4635b2[_0x45391a(0x1d73)][_0x45391a(0x28b8)],'license':_0x4635b2[_0x45391a(0x1947)],'setting':_0x4635b2['setting'],'crudPermissions':_0x4635b2['crudPermissions']}});}function _0x5c7536(_0x47485c){const _0x74b650=_0x4180dc;_0x210cfd[_0x74b650(0x1fb9)][_0x74b650(0xabd)]({'id':_0x47485c['id']})[_0x74b650(0x15e7)][_0x74b650(0x64a)](function(){const _0x33a919=_0x74b650;_0x28c606()[_0x33a919(0x21c7)](_0x4635b2[_0x33a919(0x1d73)][_0x33a919(0x28b8)],{'id':_0x47485c['id']}),_0x4635b2['projects'][_0x33a919(0xb90)]-=0x1,!_0x4635b2['projects']['rows'][_0x33a919(0x1b9e)]&&_0x4635b2[_0x33a919(0x2938)](),_0x5255fb[_0x33a919(0x1339)]({'title':_0x28c606()[_0x33a919(0xc01)](_0x33a919(0x17e0))+_0x33a919(0x2502),'msg':_0x47485c[_0x33a919(0x2494)]?_0x47485c['name']+_0x33a919(0x1fa8):''});})[_0x74b650(0x20cd)](function(_0x25bd19){const _0x224024=_0x74b650;if(_0x25bd19[_0x224024(0x1c52)]&&_0x25bd19[_0x224024(0x1c52)][_0x224024(0xbae)]&&_0x25bd19[_0x224024(0x1c52)][_0x224024(0xbae)][_0x224024(0x1b9e)]){_0x4635b2[_0x224024(0xbae)]=_0x25bd19[_0x224024(0x1c52)][_0x224024(0xbae)]||[{'message':_0x25bd19['toString'](),'type':'SYSTEM:DELETEjscriptyProject'}];for(let _0x465b90=0x0;_0x465b90<_0x25bd19[_0x224024(0x1c52)][_0x224024(0xbae)][_0x224024(0x1b9e)];_0x465b90++){_0x5255fb['error']({'title':_0x25bd19[_0x224024(0x1c52)][_0x224024(0xbae)][_0x465b90]['type'],'msg':_0x25bd19[_0x224024(0x1c52)][_0x224024(0xbae)][_0x465b90]['message']});}}else _0x5255fb['error']({'title':_0x25bd19[_0x224024(0x10b3)]?_0x224024(0x575)+_0x25bd19['status']+_0x224024(0x21db)+_0x25bd19['statusText']:_0x224024(0xcda),'msg':_0x25bd19['data']?JSON['stringify'](_0x25bd19[_0x224024(0x1c52)][_0x224024(0x18ca)]):_0x25bd19[_0x224024(0x18ca)]||_0x25bd19['toString']()});});}function _0x4b01d6(){const _0x3e8266=_0x4180dc,_0x30ce1f=angular['copy'](_0x4635b2['selectedProjects']);return _0x4635b2[_0x3e8266(0x17c6)]=[],_0x30ce1f;}function _0x3e5173(_0x466617){const _0x5b8b7b=_0x4180dc,_0x1afd5a=_0x17aa84[_0x5b8b7b(0x856)]()[_0x5b8b7b(0x2021)](_0x5b8b7b(0x2569))[_0x5b8b7b(0x33a)](_0x5b8b7b(0x50b)+_0x4635b2[_0x5b8b7b(0x17c6)]['length']+_0x5b8b7b(0x163e)+'\x20will\x20be\x20deleted.')[_0x5b8b7b(0x213e)](_0x5b8b7b(0x1710))[_0x5b8b7b(0x2283)](_0x466617)['ok']('OK')[_0x5b8b7b(0x101a)](_0x5b8b7b(0x18fd));_0x17aa84[_0x5b8b7b(0xa60)](_0x1afd5a)[_0x5b8b7b(0x64a)](function(){const _0x24382a=_0x5b8b7b;_0x4635b2['selectedProjects'][_0x24382a(0x1397)](function(_0x693346){_0x5c7536(_0x693346);}),_0x4635b2[_0x24382a(0x17c6)]=[];});}function _0x5a0cb9(){const _0x36c79d=_0x4180dc;_0x4635b2[_0x36c79d(0x17c6)]=[];}function _0xc183b6(){const _0x418dfa=_0x4180dc;_0x4635b2[_0x418dfa(0x17c6)]=_0x4635b2[_0x418dfa(0x1d73)]['rows'];}}const _0x21fec9=_0x13d572;;_0x118520['$inject']=[_0x49a1e3(0x20ad),_0x49a1e3(0x21f8)];function _0x118520(_0x2b574a,_0x54b8dc){const _0x42ce7f=_0x49a1e3;_0x2b574a[_0x42ce7f(0x14f2)](_0x42ce7f(0x20cb),{'abstract':!![],'url':_0x42ce7f(0x2876)})[_0x42ce7f(0x14f2)](_0x42ce7f(0x2c4),{'url':_0x42ce7f(0x2423),'views':{'content@app':{'templateUrl':_0x376e15,'controller':_0x42ce7f(0x158e)}},'resolve':{'projects':[_0x42ce7f(0x107c),_0x42ce7f(0xdcf),function(_0x5aae02,_0x4ae361){const _0x4685b4=_0x42ce7f;return _0x4ae361[_0x4685b4(0x4de)](_0x4685b4(0x333))?_0x5aae02[_0x4685b4(0x1268)](_0x4685b4(0x1ee1),{'fields':'createdAt,updatedAt,id,name,enableUncompleteSave,sendUnpauseOnSubmit,description,formData','sort':_0x4685b4(0x260c),'limit':0xa,'offset':0x0}):_0x5aae02[_0x4685b4(0x1268)](_0x4685b4(0x1758),{'id':_0x4ae361[_0x4685b4(0x808)]()[_0x4685b4(0x21ac)],'section':_0x4685b4(0x977),'fields':_0x4685b4(0x2847),'sort':_0x4685b4(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x42ce7f(0xdcf),function(_0x1d3b31,_0x18b08d){const _0x16caae=_0x42ce7f;return _0x18b08d[_0x16caae(0x4de)]('admin')?null:_0x1d3b31[_0x16caae(0x1268)]('userProfile@get',{'fields':_0x16caae(0x10d2),'id':_0x18b08d['getCurrentUser']()[_0x16caae(0x21ac)]});}],'userProfileSection':[_0x42ce7f(0x107c),_0x42ce7f(0xdcf),function(_0x199408,_0x42a9d4){const _0x5696e0=_0x42ce7f;return _0x42a9d4['hasRole']('admin')?null:_0x199408[_0x5696e0(0x1268)](_0x5696e0(0x2681),{'fields':_0x5696e0(0x527),'userProfileId':_0x42a9d4[_0x5696e0(0x808)]()[_0x5696e0(0x21ac)],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':'jscripty'})[_0x42ce7f(0x14f2)](_0x42ce7f(0x1637),{'url':_0x42ce7f(0x45b),'params':{'project':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1b5010,'controller':_0x42ce7f(0x1baa)}},'resolve':{'project':[_0x42ce7f(0x107c),_0x42ce7f(0x1fbb),function(_0x16d908,_0x93af11){const _0x235345=_0x42ce7f;return _0x16d908[_0x235345(0x1268)](_0x235345(0x1ee1),{'fields':_0x235345(0x2847),'id':_0x93af11['id']});}],'userProfileSection':['apiResolver',_0x42ce7f(0xdcf),function(_0x44d1b2,_0x366e22){const _0x54813=_0x42ce7f;return _0x44d1b2['resolve'](_0x54813(0x2681),{'fields':_0x54813(0x527),'userProfileId':_0x366e22['getCurrentUser']()[_0x54813(0x21ac)],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':_0x42ce7f(0xd1c)}),_0x54b8dc['addPart']('app/main/apps/jscripty');}angular['module']('app.jscripty',[_0x49a1e3(0x8d2),_0x49a1e3(0x3c7),'md.data.table',_0x49a1e3(0x891),_0x49a1e3(0x2516),_0x49a1e3(0x1b6c),_0x49a1e3(0x1434),_0x49a1e3(0x1a87),_0x49a1e3(0x1610),'mdPickers',_0x49a1e3(0x1a59),_0x49a1e3(0x11fd),_0x49a1e3(0x1cfe),'ngclipboard',_0x49a1e3(0x1b5f),'ngEmbed',_0x49a1e3(0x1046),'material.components.expansionPanels',_0x49a1e3(0xc48),'angular.filter'])[_0x49a1e3(0x3d3)](_0x118520)[_0x49a1e3(0x38e)](_0x49a1e3(0x1501),_0x43876c)['controller'](_0x49a1e3(0x230b),_0x18c94e)[_0x49a1e3(0x38e)](_0x49a1e3(0x18c8),_0x832ad5)[_0x49a1e3(0x38e)](_0x49a1e3(0x26a2),_0x2902d7)['controller'](_0x49a1e3(0x15df),_0x584545)[_0x49a1e3(0x38e)](_0x49a1e3(0x83e),_0x5aaacb)[_0x49a1e3(0x38e)](_0x49a1e3(0x13b3),_0x3bb15c)['controller'](_0x49a1e3(0xf81),_0x27c6f7)[_0x49a1e3(0x38e)]('JscriptyProjectsController',_0x21fec9);;const _0x1f056a=_0x2e4a48['p']+_0x49a1e3(0x58b);;const _0x144ae3=_0x2e4a48['p']+_0x49a1e3(0x2547);;_0x47e4ac['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location','$mdDialog','$q',_0x49a1e3(0x298c),'toasty',_0x49a1e3(0x1426),_0x49a1e3(0x1141),'api','Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x47e4ac(_0x2689a7,_0x3b5a32,_0x177a99,_0x16e627,_0x51ccb4,_0x491350,_0x4b25a9,_0xff10f3,_0x47eef6,_0x2f5df6,_0x31bc03,_0x4a97ec,_0xb3e7c9,_0x1535d9){const _0x209f2c=_0x49a1e3,_0x296b8e=this;_0x296b8e[_0x209f2c(0x1d3d)]=_0x31bc03['getCurrentUser'](),_0x296b8e[_0x209f2c(0xbae)]=[],_0x296b8e[_0x209f2c(0x28d6)]=_0xb3e7c9,_0x296b8e[_0x209f2c(0x1947)]=_0x4a97ec,_0x296b8e[_0x209f2c(0x402)]=_0x1535d9,_0x296b8e[_0x209f2c(0x6c2)]={},_0x296b8e['passwordPattern']=_0x296b8e['setting']&&_0x296b8e[_0x209f2c(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x296b8e[_0x209f2c(0x2021)]=_0x209f2c(0x25e2),_0x296b8e[_0x209f2c(0x1141)]=angular['copy'](_0x47eef6),_0x296b8e['plugins']=_0xff10f3,_0x296b8e['newPlugin']=![];!_0x296b8e[_0x209f2c(0x1141)]&&(_0x296b8e[_0x209f2c(0x1141)]={},_0x296b8e['title']=_0x209f2c(0x28c6),_0x296b8e[_0x209f2c(0x226a)]=!![]);_0x296b8e[_0x209f2c(0x11ab)]=_0x5863f8,_0x296b8e['savePlugin']=_0x4dfe9a,_0x296b8e[_0x209f2c(0x1b9d)]=_0x4e4c6a,_0x296b8e[_0x209f2c(0x1605)]=_0x2e31e9,_0x296b8e['closeDialog']=_0x1c64d7;function _0x5863f8(){const _0x1da152=_0x209f2c;_0x296b8e[_0x1da152(0xbae)]=[],_0x2f5df6[_0x1da152(0x1141)][_0x1da152(0x2479)](_0x296b8e[_0x1da152(0x1141)])[_0x1da152(0x15e7)][_0x1da152(0x64a)](function(_0x52c4c4){const _0x554784=_0x1da152;_0x296b8e[_0x554784(0x1426)][_0x554784(0x1891)](_0x52c4c4['toJSON']()),_0x4b25a9[_0x554784(0x1339)]({'title':'Plugin\x20properly\x20created','msg':_0x296b8e[_0x554784(0x1141)]['name']?_0x296b8e[_0x554784(0x1141)][_0x554784(0x2494)]+_0x554784(0x258d):''}),_0x1c64d7(_0x52c4c4);})['catch'](function(_0x1ae5b1){const _0x42f985=_0x1da152;if(_0x1ae5b1[_0x42f985(0x1c52)]&&_0x1ae5b1[_0x42f985(0x1c52)]['errors']&&_0x1ae5b1[_0x42f985(0x1c52)][_0x42f985(0xbae)][_0x42f985(0x1b9e)]){_0x296b8e['errors']=_0x1ae5b1[_0x42f985(0x1c52)]['errors']||[{'message':_0x1ae5b1['toString'](),'type':_0x42f985(0xaac)}];for(let _0x53c4f7=0x0;_0x53c4f7<_0x1ae5b1[_0x42f985(0x1c52)][_0x42f985(0xbae)][_0x42f985(0x1b9e)];_0x53c4f7+=0x1){_0x4b25a9[_0x42f985(0x1bd0)]({'title':_0x1ae5b1[_0x42f985(0x1c52)]['errors'][_0x53c4f7][_0x42f985(0x2185)],'msg':_0x1ae5b1['data']['errors'][_0x53c4f7][_0x42f985(0x18ca)]});}}else _0x4b25a9['error']({'title':_0x1ae5b1[_0x42f985(0x10b3)]?_0x42f985(0x575)+_0x1ae5b1[_0x42f985(0x10b3)]+_0x42f985(0x21db)+_0x1ae5b1[_0x42f985(0x2115)]:_0x42f985(0xaac),'msg':_0x1ae5b1[_0x42f985(0x1c52)]?JSON[_0x42f985(0x2317)](_0x1ae5b1[_0x42f985(0x1c52)][_0x42f985(0x18ca)]):_0x1ae5b1[_0x42f985(0x2915)]()});});}function _0x4dfe9a(){const _0x59a58a=_0x209f2c;_0x296b8e['errors']=[],_0x2f5df6[_0x59a58a(0x1141)][_0x59a58a(0x2603)]({'id':_0x296b8e[_0x59a58a(0x1141)]['id']},_0x296b8e[_0x59a58a(0x1141)])[_0x59a58a(0x15e7)]['then'](function(_0x44007b){const _0x1d1d87=_0x59a58a,_0x1d3d93=_0x28c606()[_0x1d1d87(0x27bc)](_0x296b8e['plugins'],{'id':_0x44007b['id']});_0x1d3d93&&_0x28c606()[_0x1d1d87(0x14fe)](_0x1d3d93,_0x28c606()[_0x1d1d87(0x27bb)](_0x44007b['toJSON'](),_0x28c606()[_0x1d1d87(0x1ec6)](_0x1d3d93))),_0x4b25a9['success']({'title':_0x1d1d87(0x1132),'msg':_0x296b8e[_0x1d1d87(0x1141)][_0x1d1d87(0x2494)]?_0x296b8e['plugin'][_0x1d1d87(0x2494)]+'\x20has\x20been\x20saved!':''}),_0x1c64d7(_0x44007b);})[_0x59a58a(0x20cd)](function(_0x22afec){const _0x4bc002=_0x59a58a;if(_0x22afec['data']&&_0x22afec[_0x4bc002(0x1c52)][_0x4bc002(0xbae)]&&_0x22afec['data'][_0x4bc002(0xbae)][_0x4bc002(0x1b9e)]){_0x296b8e[_0x4bc002(0xbae)]=_0x22afec[_0x4bc002(0x1c52)][_0x4bc002(0xbae)]||[{'message':_0x22afec[_0x4bc002(0x2915)](),'type':_0x4bc002(0x18ed)}];for(let _0x15bd17=0x0;_0x15bd17<_0x22afec[_0x4bc002(0x1c52)]['errors'][_0x4bc002(0x1b9e)];_0x15bd17++){_0x4b25a9[_0x4bc002(0x1bd0)]({'title':_0x22afec[_0x4bc002(0x1c52)][_0x4bc002(0xbae)][_0x15bd17][_0x4bc002(0x2185)],'msg':_0x22afec[_0x4bc002(0x1c52)][_0x4bc002(0xbae)][_0x15bd17][_0x4bc002(0x18ca)]});}}else _0x4b25a9[_0x4bc002(0x1bd0)]({'title':_0x22afec['status']?_0x4bc002(0x575)+_0x22afec[_0x4bc002(0x10b3)]+_0x4bc002(0x21db)+_0x22afec['statusText']:'api.plugin.update','msg':_0x22afec[_0x4bc002(0x1c52)]?JSON[_0x4bc002(0x2317)](_0x22afec['data']['message']):_0x22afec[_0x4bc002(0x2915)]()});});}function _0x4e4c6a(_0x27d18c){const _0x5a0688=_0x209f2c;_0x296b8e[_0x5a0688(0xbae)]=[];const _0x1d67b0=_0x16e627[_0x5a0688(0x856)]()[_0x5a0688(0x2021)](_0x5a0688(0x103a))['content']('The\x20plugin\x20will\x20be\x20deleted.')[_0x5a0688(0x213e)](_0x5a0688(0x1eb6))['ok'](_0x5a0688(0x2664))['cancel'](_0x5a0688(0x1dc6))[_0x5a0688(0x2283)](_0x27d18c);_0x16e627[_0x5a0688(0xa60)](_0x1d67b0)[_0x5a0688(0x64a)](function(){const _0x40b4e5=_0x5a0688;_0x2f5df6['plugin'][_0x40b4e5(0xabd)]({'id':_0x296b8e['plugin']['id']})[_0x40b4e5(0x15e7)][_0x40b4e5(0x64a)](function(){const _0x777702=_0x40b4e5;_0x28c606()[_0x777702(0x21c7)](_0x296b8e['plugins'],{'id':_0x296b8e[_0x777702(0x1141)]['id']}),_0x4b25a9[_0x777702(0x1339)]({'title':_0x777702(0x586),'msg':(_0x296b8e[_0x777702(0x1141)][_0x777702(0x2494)]||_0x777702(0x1141))+'\x20has\x20been\x20deleted!'}),_0x1c64d7(_0x296b8e['plugin']);})[_0x40b4e5(0x20cd)](function(_0xcb52ad){const _0x36cea3=_0x40b4e5;if(_0xcb52ad[_0x36cea3(0x1c52)]&&_0xcb52ad[_0x36cea3(0x1c52)][_0x36cea3(0xbae)]&&_0xcb52ad['data'][_0x36cea3(0xbae)]['length']){_0x296b8e[_0x36cea3(0xbae)]=_0xcb52ad['data'][_0x36cea3(0xbae)]||[{'message':_0xcb52ad[_0x36cea3(0x2915)](),'type':_0x36cea3(0x3e2)}];for(let _0x1bd033=0x0;_0x1bd033<_0xcb52ad[_0x36cea3(0x1c52)][_0x36cea3(0xbae)][_0x36cea3(0x1b9e)];_0x1bd033++){_0x4b25a9[_0x36cea3(0x1bd0)]({'title':_0xcb52ad[_0x36cea3(0x1c52)]['errors'][_0x1bd033][_0x36cea3(0x2185)],'msg':_0xcb52ad[_0x36cea3(0x1c52)][_0x36cea3(0xbae)][_0x1bd033]['message']});}}else _0x4b25a9[_0x36cea3(0x1bd0)]({'title':_0xcb52ad[_0x36cea3(0x10b3)]?_0x36cea3(0x575)+_0xcb52ad[_0x36cea3(0x10b3)]+_0x36cea3(0x21db)+_0xcb52ad['statusText']:_0x36cea3(0x3e2),'msg':_0xcb52ad[_0x36cea3(0x1c52)]?JSON[_0x36cea3(0x2317)](_0xcb52ad[_0x36cea3(0x1c52)][_0x36cea3(0x18ca)]):_0xcb52ad['message']||_0xcb52ad[_0x36cea3(0x2915)]()});});},function(){});}function _0x2e31e9(_0x53a289){return _0x53a289===null?undefined:new Date(_0x53a289);}function _0x1c64d7(_0x14cf2d){const _0x1ba949=_0x209f2c;_0x16e627[_0x1ba949(0x268e)](_0x14cf2d);}}const _0x9306a3=_0x47e4ac;;_0x38b1d8[_0x49a1e3(0x1e73)]=['$state',_0x49a1e3(0x1155),_0x49a1e3(0x212a),_0x49a1e3(0x1373),'$translate',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),'plugin',_0x49a1e3(0x16b2)];function _0x38b1d8(_0x3f3f4a,_0x405641,_0x2edea6,_0x2387cb,_0x59d8d1,_0x30e07c,_0x259fd4,_0x568248,_0x5570c8,_0x5e5a70,_0x3ca274,_0xc82954){const _0x45ae89=_0x49a1e3,_0x167d1a=this;_0x167d1a[_0x45ae89(0x1d3d)]=_0x5e5a70['getCurrentUser'](),_0x167d1a[_0x45ae89(0x1947)]=_0x30e07c,_0x167d1a['setting']=_0x259fd4,_0x167d1a['passwordPattern']=_0x167d1a['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x167d1a[_0x45ae89(0xb36)]=_0x405641[_0x45ae89(0x48e)]()+_0x45ae89(0xe1f)+_0x405641[_0x45ae89(0x1e5d)](),_0x167d1a[_0x45ae89(0x1141)]=_0x3ca274||_0x3f3f4a[_0x45ae89(0x1b48)][_0x45ae89(0x1141)]||{},_0x167d1a[_0x45ae89(0x16b2)]=_0xc82954&&_0xc82954[_0x45ae89(0xb90)]==0x1?_0xc82954[_0x45ae89(0x28b8)][0x0]:null,_0x167d1a[_0x45ae89(0x402)]=_0x5e5a70[_0x45ae89(0xa7e)](_0x167d1a[_0x45ae89(0x16b2)]?_0x167d1a[_0x45ae89(0x16b2)][_0x45ae89(0x402)]:null),_0x167d1a[_0x45ae89(0x6c2)]={},_0x167d1a[_0x45ae89(0x197c)]=_0x3f3f4a[_0x45ae89(0x1b48)][_0x45ae89(0x1222)]||0x0,_0x167d1a['alert']=_0x5570c8[_0x45ae89(0x772)],_0x167d1a[_0x45ae89(0x22ea)]=_0x1e2011,_0x167d1a[_0x45ae89(0x867)]=_0x28701f;function _0x1e2011(){const _0x393eec=_0x45ae89;_0x3f3f4a['go'](_0x393eec(0x20ec),{},{'reload':_0x393eec(0x20ec)});}function _0x28701f(){const _0x38f9ee=_0x45ae89;_0x568248['plugin']['update']({'id':_0x167d1a[_0x38f9ee(0x1141)]['id']},_0x167d1a['plugin'])[_0x38f9ee(0x15e7)][_0x38f9ee(0x64a)](function(){const _0xde73ca=_0x38f9ee;_0x5570c8['success']({'title':_0xde73ca(0x21df),'msg':_0x167d1a[_0xde73ca(0x1141)][_0xde73ca(0x2494)]?_0x167d1a[_0xde73ca(0x1141)]['name']+_0xde73ca(0x2032):''});})[_0x38f9ee(0x20cd)](function(_0x49318b){const _0x3e263c=_0x38f9ee;_0x5570c8['error']({'title':_0x49318b['status']?_0x3e263c(0x575)+_0x49318b[_0x3e263c(0x10b3)]+_0x3e263c(0x21db)+_0x49318b['statusText']:_0x3e263c(0x1f49),'msg':_0x49318b[_0x3e263c(0x1c52)]?JSON[_0x3e263c(0x2317)](_0x49318b[_0x3e263c(0x1c52)]):_0x49318b[_0x3e263c(0x2915)]()});});}}const _0x27d250=_0x38b1d8;;const _0x541fe6=_0x2e4a48['p']+_0x49a1e3(0x1a8);;const _0x2f0e2d=_0x2e4a48['p']+_0x49a1e3(0x326);;_0xe3bbc[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),'$state',_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x1426),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xa19),_0x49a1e3(0x1214),'toasty','Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0xe3bbc(_0x20033d,_0x385f2e,_0x21b146,_0x47e4d0,_0x1beaed,_0x48f5f6,_0x392467,_0x5ca25d,_0x599fd5,_0x3558c0,_0x5f24ed,_0x5e4141,_0x415fa1,_0x2c6505,_0xcff6e2,_0x33f25d,_0x592f0e){const _0x409c80=_0x49a1e3,_0xbbea42=this;_0xbbea42[_0x409c80(0x1947)]=_0x33f25d,_0xbbea42[_0x409c80(0x28d6)]=_0x592f0e,_0xbbea42[_0x409c80(0x1d3d)]=_0xcff6e2[_0x409c80(0x808)](),_0xbbea42['plugins']=_0x599fd5||{'count':0x0,'rows':[]},_0xbbea42[_0x409c80(0x16a8)]=_0x3558c0,_0xbbea42[_0x409c80(0x16b2)]=_0x5f24ed&&_0x5f24ed[_0x409c80(0xb90)]==0x1?_0x5f24ed[_0x409c80(0x28b8)][0x0]:null,_0xbbea42[_0x409c80(0x402)]=_0xcff6e2['parseCrudPermissions'](_0xbbea42[_0x409c80(0x16b2)]?_0xbbea42[_0x409c80(0x16b2)]['crudPermissions']:null),_0xbbea42['table']=_0x409c80(0x1426),_0xbbea42[_0x409c80(0x300)]='',_0xbbea42[_0x409c80(0x2748)]=null,_0xbbea42[_0x409c80(0x22c3)]=[],_0xbbea42[_0x409c80(0x289a)]={'fields':_0x409c80(0x27bd),'sort':_0x409c80(0x2494),'limit':0xa,'page':0x1},_0xbbea42['installing']=![],_0xbbea42[_0x409c80(0x1665)]=_0x28c606()[_0x409c80(0x161e)]([{'option':_0x409c80(0xfdd),'value':'\x27always\x27'},{'option':_0x409c80(0x258e),'value':_0x409c80(0x1ffc)},{'option':_0x409c80(0x1949),'value':_0x409c80(0x2321)},{'option':_0x409c80(0xf09),'value':_0x409c80(0x466)}],function(_0x324707){const _0x937f4b=_0x409c80;return _0x28c606()[_0x937f4b(0x1353)](_0x324707[_0x937f4b(0x1096)],new RegExp('\x27','g'),'');}),_0xbbea42[_0x409c80(0x245f)]=_0x572f73,_0xbbea42[_0x409c80(0xff6)]=_0x5066b3,_0xbbea42[_0x409c80(0xfaf)]=_0x20311e,_0xbbea42[_0x409c80(0xd97)]=_0x3f1779,_0xbbea42['downloadfile2']=_0x530048,_0xbbea42[_0x409c80(0x2989)]=_0x1faeb5,_0xbbea42[_0x409c80(0x1262)]=_0x301fa7,_0xbbea42[_0x409c80(0x1339)]=_0x531efe,_0xbbea42['getPlugins']=_0x5230b7,_0xbbea42['createOrEditPlugin']=_0x5e7985,_0xbbea42[_0x409c80(0x1b9d)]=_0x5b37b6,_0xbbea42[_0x409c80(0x8d5)]=_0x411a58,_0xbbea42[_0x409c80(0xacd)]=_0x575a29,_0xbbea42[_0x409c80(0x26ba)]=_0x32b243,_0xbbea42['selectAllPlugins']=_0x502392,_0xbbea42['uploadPlugin']=_0x231cf4;function _0x572f73(_0x478d9b){const _0x31e44e=_0x409c80;if(_0x478d9b[_0x31e44e(0x2185)]===_0x31e44e(0x2929))_0xbbea42[_0x31e44e(0x26b1)]=!![],_0x5e4141['pm2'][_0x31e44e(0x2479)]({'name':_0x478d9b['scriptName'],'script':_0x478d9b['path']+'/'+_0x478d9b[_0x31e44e(0x1f91)]})[_0x31e44e(0x15e7)][_0x31e44e(0x64a)](function(){const _0x373aa9=_0x31e44e;return _0x478d9b['active']=!![],_0x5e4141[_0x373aa9(0x1141)][_0x373aa9(0x2603)]({'id':_0x478d9b['id']},_0x478d9b)[_0x373aa9(0x15e7)];})[_0x31e44e(0x64a)](function(){const _0x14bbd5=_0x31e44e;_0xbbea42[_0x14bbd5(0x26b1)]=![],_0x2c6505[_0x14bbd5(0x1339)]({'title':_0x14bbd5(0x18a6),'msg':_0x478d9b[_0x14bbd5(0x2494)]?_0x478d9b[_0x14bbd5(0x2494)]+_0x14bbd5(0xc2f):''});})['catch'](function(_0x140e49){const _0x48f692=_0x31e44e;if(_0x140e49['data']&&_0x140e49['data'][_0x48f692(0xbae)]&&_0x140e49[_0x48f692(0x1c52)][_0x48f692(0xbae)][_0x48f692(0x1b9e)]){_0xbbea42[_0x48f692(0xbae)]=_0x140e49[_0x48f692(0x1c52)][_0x48f692(0xbae)]||[{'message':_0x140e49['toString'](),'type':_0x48f692(0x1126)}];for(let _0x227671=0x0;_0x227671<_0x140e49[_0x48f692(0x1c52)][_0x48f692(0xbae)][_0x48f692(0x1b9e)];_0x227671++){_0x2c6505['error']({'title':_0x140e49['data'][_0x48f692(0xbae)][_0x227671][_0x48f692(0x2185)],'msg':_0x140e49['data']['errors'][_0x227671]['message']});}}else _0x2c6505['error']({'title':_0x140e49[_0x48f692(0x10b3)]?'API:'+_0x140e49['status']+'\x20-\x20'+_0x140e49[_0x48f692(0x2115)]:'api.pm2.save','msg':_0x140e49[_0x48f692(0x1c52)]?JSON[_0x48f692(0x2317)](_0x140e49[_0x48f692(0x1c52)][_0x48f692(0x18ca)]):_0x140e49['message']||_0x140e49[_0x48f692(0x2915)]()});});else return _0x478d9b[_0x31e44e(0xc51)]=!![],_0x5e4141[_0x31e44e(0x1141)][_0x31e44e(0x2603)]({'id':_0x478d9b['id']},_0x478d9b)[_0x31e44e(0x15e7)][_0x31e44e(0x64a)](function(){const _0x3658f8=_0x31e44e;_0x2c6505[_0x3658f8(0x1339)]({'title':_0x3658f8(0x18a6),'msg':_0x478d9b[_0x3658f8(0x2494)]?_0x478d9b[_0x3658f8(0x2494)]+_0x3658f8(0xc2f):''});})[_0x31e44e(0x20cd)](function(_0x4f0eb1){const _0x31c3ce=_0x31e44e;if(_0x4f0eb1[_0x31c3ce(0x1c52)]&&_0x4f0eb1[_0x31c3ce(0x1c52)][_0x31c3ce(0xbae)]&&_0x4f0eb1[_0x31c3ce(0x1c52)][_0x31c3ce(0xbae)][_0x31c3ce(0x1b9e)]){_0xbbea42[_0x31c3ce(0xbae)]=_0x4f0eb1[_0x31c3ce(0x1c52)]['errors']||[{'message':_0x4f0eb1['toString'](),'type':'api.plugin.update'}];for(let _0x4653cd=0x0;_0x4653cd<_0x4f0eb1['data'][_0x31c3ce(0xbae)][_0x31c3ce(0x1b9e)];_0x4653cd++){_0x2c6505['error']({'title':_0x4f0eb1[_0x31c3ce(0x1c52)]['errors'][_0x4653cd][_0x31c3ce(0x2185)],'msg':_0x4f0eb1['data'][_0x31c3ce(0xbae)][_0x4653cd]['message']});}}else _0x2c6505[_0x31c3ce(0x1bd0)]({'title':_0x4f0eb1['status']?'API:'+_0x4f0eb1[_0x31c3ce(0x10b3)]+_0x31c3ce(0x21db)+_0x4f0eb1[_0x31c3ce(0x2115)]:_0x31c3ce(0x18ed),'msg':_0x4f0eb1['data']?JSON[_0x31c3ce(0x2317)](_0x4f0eb1[_0x31c3ce(0x1c52)][_0x31c3ce(0x18ca)]):_0x4f0eb1[_0x31c3ce(0x18ca)]||_0x4f0eb1['toString']()});});}function _0x5066b3(_0x18debe){const _0x468e29=_0x409c80;_0x21b146['go'](_0x468e29(0x1d28),{'id':_0x18debe['id'],'plugin':_0x18debe,'crudPermissions':_0xbbea42[_0x468e29(0x402)]});}function _0x20311e(_0x34aa70,_0x6c828c){const _0x581d8e=_0x409c80,_0x33b26d=_0x1beaed['confirm']()[_0x581d8e(0x2021)](_0x581d8e(0x1824))[_0x581d8e(0x33a)](_0x581d8e(0x50b)+(_0x34aa70[_0x581d8e(0x2494)]||_0x581d8e(0x1141))+_0x581d8e(0x26d0)+_0x581d8e(0x1caf))['ariaLabel'](_0x581d8e(0x5f6))[_0x581d8e(0x2283)](_0x6c828c)['ok']('OK')[_0x581d8e(0x101a)](_0x581d8e(0x18fd));_0x1beaed[_0x581d8e(0xa60)](_0x33b26d)['then'](function(){_0x3b8365(_0x34aa70);},function(){console['log']('CANCEL');});}function _0x3b8365(_0x5d604a){const _0x275e2f=_0x409c80;_0x5e4141['pm2'][_0x275e2f(0x896)]()[_0x275e2f(0x15e7)]['then'](function(_0x4fed9c){const _0x1d9a2b=_0x275e2f;if(!_0x4fed9c||!_0x4fed9c[_0x1d9a2b(0x28b8)])throw new Error(_0x1d9a2b(0x3d7));const _0xd785f2=_0x28c606()[_0x1d9a2b(0x27bc)](_0x4fed9c[_0x1d9a2b(0x28b8)],{'name':_0x5d604a[_0x1d9a2b(0x90a)]});if(!_0xd785f2)throw new Error('No\x20corresponding\x20process\x20found');_0x5e4141['pm2'][_0x1d9a2b(0x2603)]({'id':_0xd785f2[_0x1d9a2b(0x1a18)],'status':_0x1d9a2b(0x536)})[_0x1d9a2b(0x15e7)][_0x1d9a2b(0x64a)](function(){const _0x93b5c9=_0x1d9a2b;_0x2c6505[_0x93b5c9(0x1339)]({'title':'Process\x20stopped!','msg':_0x93b5c9(0x1b96)});});})['catch'](function(_0x29f77e){const _0x1118b1=_0x275e2f;if(_0x29f77e[_0x1118b1(0x1c52)]&&_0x29f77e['data'][_0x1118b1(0xbae)]&&_0x29f77e[_0x1118b1(0x1c52)][_0x1118b1(0xbae)][_0x1118b1(0x1b9e)]){_0xbbea42['errors']=_0x29f77e['data'][_0x1118b1(0xbae)]||[{'message':_0x29f77e[_0x1118b1(0x2915)](),'type':_0x1118b1(0x267d)}];for(let _0x2cb29d=0x0;_0x2cb29d<_0x29f77e[_0x1118b1(0x1c52)][_0x1118b1(0xbae)][_0x1118b1(0x1b9e)];_0x2cb29d++){_0x2c6505[_0x1118b1(0x1bd0)]({'title':_0x29f77e[_0x1118b1(0x1c52)][_0x1118b1(0xbae)][_0x2cb29d][_0x1118b1(0x2185)],'msg':_0x29f77e['data'][_0x1118b1(0xbae)][_0x2cb29d][_0x1118b1(0x18ca)]});}}else _0x2c6505[_0x1118b1(0x1bd0)]({'title':_0x29f77e['status']?_0x1118b1(0x575)+_0x29f77e['status']+_0x1118b1(0x21db)+_0x29f77e[_0x1118b1(0x2115)]:'api.pm2.update','msg':_0x29f77e[_0x1118b1(0x1c52)]?JSON[_0x1118b1(0x2317)](_0x29f77e[_0x1118b1(0x1c52)][_0x1118b1(0x18ca)]):_0x29f77e[_0x1118b1(0x18ca)]||_0x29f77e[_0x1118b1(0x2915)]()});});}function _0x3f1779(_0x491408,_0x5b58ca){const _0x1a7682=_0x409c80,_0x24a65c=_0x1beaed[_0x1a7682(0x856)]()['title']('Are\x20you\x20sure\x20want\x20to\x20restart\x20the\x20plugin\x20attached\x20process?')[_0x1a7682(0x33a)](_0x1a7682(0x50b)+(_0x491408[_0x1a7682(0x2494)]||'plugin')+_0x1a7682(0x26d0)+'\x20attached\x20process\x20will\x20be\x20restarted.')[_0x1a7682(0x213e)]('restart\x20plugin\x20process')[_0x1a7682(0x2283)](_0x5b58ca)['ok']('OK')[_0x1a7682(0x101a)](_0x1a7682(0x18fd));_0x1beaed[_0x1a7682(0xa60)](_0x24a65c)[_0x1a7682(0x64a)](function(){_0x19f72e(_0x491408);},function(){const _0x2d7490=_0x1a7682;console[_0x2d7490(0x9b4)]('CANCEL');});}function _0x19f72e(_0x310e5c){const _0x1c136a=_0x409c80;_0x5e4141['pm2']['get']()['$promise'][_0x1c136a(0x64a)](function(_0x58f759){const _0x4859f3=_0x1c136a;if(!_0x58f759||!_0x58f759[_0x4859f3(0x28b8)])throw new Error('Failed\x20to\x20retrieve\x20pm2\x20processes');const _0x587f65=_0x28c606()[_0x4859f3(0x27bc)](_0x58f759[_0x4859f3(0x28b8)],{'name':_0x310e5c[_0x4859f3(0x90a)]});if(!_0x587f65)throw new Error(_0x4859f3(0x19e6));_0x5e4141[_0x4859f3(0x24ef)][_0x4859f3(0x2603)]({'id':_0x587f65[_0x4859f3(0x1a18)],'status':_0x4859f3(0x1eab)})[_0x4859f3(0x15e7)][_0x4859f3(0x64a)](function(){const _0x1ba105=_0x4859f3;_0x2c6505[_0x1ba105(0x1339)]({'title':_0x1ba105(0x15f),'msg':'Attached\x20pm2\x20process\x20successfully\x20restarted'});});})[_0x1c136a(0x20cd)](function(_0x12726d){const _0x29e537=_0x1c136a;if(_0x12726d[_0x29e537(0x1c52)]&&_0x12726d[_0x29e537(0x1c52)][_0x29e537(0xbae)]&&_0x12726d[_0x29e537(0x1c52)][_0x29e537(0xbae)][_0x29e537(0x1b9e)]){_0xbbea42[_0x29e537(0xbae)]=_0x12726d[_0x29e537(0x1c52)][_0x29e537(0xbae)]||[{'message':_0x12726d['toString'](),'type':_0x29e537(0x267d)}];for(let _0x253b8f=0x0;_0x253b8f<_0x12726d[_0x29e537(0x1c52)][_0x29e537(0xbae)][_0x29e537(0x1b9e)];_0x253b8f++){_0x2c6505['error']({'title':_0x12726d['data']['errors'][_0x253b8f]['type'],'msg':_0x12726d[_0x29e537(0x1c52)][_0x29e537(0xbae)][_0x253b8f][_0x29e537(0x18ca)]});}}else _0x2c6505[_0x29e537(0x1bd0)]({'title':_0x12726d[_0x29e537(0x10b3)]?_0x29e537(0x575)+_0x12726d[_0x29e537(0x10b3)]+_0x29e537(0x21db)+_0x12726d[_0x29e537(0x2115)]:_0x29e537(0x267d),'msg':_0x12726d[_0x29e537(0x1c52)]?JSON['stringify'](_0x12726d[_0x29e537(0x1c52)][_0x29e537(0x18ca)]):_0x12726d[_0x29e537(0x18ca)]||_0x12726d[_0x29e537(0x2915)]()});});}function _0x530048(_0x2fdad1){const _0xb01878=_0x409c80;return _0x5e4141[_0xb01878(0x1141)][_0xb01878(0x19b3)]({'id':_0x2fdad1['id']})[_0xb01878(0x15e7)][_0xb01878(0x64a)](function(_0x13b2fb){const _0x242f2f=_0xb01878,_0x1da150=[_0x13b2fb['buffer']];let _0x46c178=_0x242f2f(0x19b3);const _0x3d286e=new Blob(_0x1da150,{'type':_0x13b2fb[_0x242f2f(0x2185)]});_0x46c178=_0x2fdad1[_0x242f2f(0x2494)]['replace']('\x20','_')[_0x242f2f(0x2554)]()+_0x242f2f(0x2177);const _0x5d8dd6=window['document'][_0x242f2f(0x2978)]('a');_0x5d8dd6[_0x242f2f(0x1280)]('href',URL[_0x242f2f(0x206)](_0x3d286e)),_0x5d8dd6[_0x242f2f(0x1280)](_0x242f2f(0x19b3),_0x46c178),document['body'][_0x242f2f(0x2661)](_0x5d8dd6),_0x5d8dd6[_0x242f2f(0x2668)]();})[_0xb01878(0x20cd)](function(_0x16fc53){const _0x505007=_0xb01878;if(_0x16fc53[_0x505007(0x1c52)]&&_0x16fc53[_0x505007(0x1c52)][_0x505007(0xbae)]&&_0x16fc53[_0x505007(0x1c52)]['errors'][_0x505007(0x1b9e)])for(let _0x5a7f06=0x0;_0x5a7f06<_0x16fc53['data'][_0x505007(0xbae)][_0x505007(0x1b9e)];_0x5a7f06++){_0x2c6505[_0x505007(0x1bd0)]({'title':_0x16fc53[_0x505007(0x1c52)][_0x505007(0xbae)][_0x5a7f06][_0x505007(0x2185)],'msg':_0x16fc53[_0x505007(0x1c52)]['errors'][_0x5a7f06][_0x505007(0x18ca)]});}else _0x2c6505['error']({'title':_0x16fc53[_0x505007(0x10b3)]?'API:'+_0x16fc53[_0x505007(0x10b3)]+_0x505007(0x21db)+_0x16fc53[_0x505007(0x2115)]:_0x505007(0xaac),'msg':_0x16fc53[_0x505007(0x1c52)]?JSON[_0x505007(0x2317)](_0x16fc53[_0x505007(0x1c52)]['message']):_0x16fc53[_0x505007(0x2915)]()});});}function _0x1faeb5(_0x25c2b0,_0xd6428b){const _0xda0d2e=_0x409c80,_0x69a544=_0x1beaed[_0xda0d2e(0x856)]()['title'](_0xda0d2e(0x21dc))[_0xda0d2e(0x33a)](_0xda0d2e(0x50b)+(_0x25c2b0[_0xda0d2e(0x2494)]||_0xda0d2e(0x1141))+_0xda0d2e(0x26d0)+_0xda0d2e(0xcd0))['ariaLabel'](_0xda0d2e(0x13ba))['targetEvent'](_0xd6428b)['ok']('OK')['cancel'](_0xda0d2e(0x18fd));_0x1beaed[_0xda0d2e(0xa60)](_0x69a544)['then'](function(){_0x46073f(_0x25c2b0);},function(){const _0x4c3d86=_0xda0d2e;console[_0x4c3d86(0x9b4)](_0x4c3d86(0x18fd));});}function _0x46073f(_0xbc6c95){const _0x24ccd0=_0x409c80;return _0xbc6c95[_0x24ccd0(0x2185)]==='script'&&_0x5e4141['pm2'][_0x24ccd0(0x896)]()['$promise']['then'](function(_0x5f4e96){const _0x106a2b=_0x24ccd0;if(!_0x5f4e96||!_0x5f4e96[_0x106a2b(0x28b8)])throw new Error(_0x106a2b(0x3d7));const _0x589587=_0x28c606()['find'](_0x5f4e96[_0x106a2b(0x28b8)],{'name':_0xbc6c95['scriptName']});if(!_0x589587)throw new Error(_0x106a2b(0x19e6));_0x5e4141[_0x106a2b(0x24ef)][_0x106a2b(0xabd)]({'id':_0x589587[_0x106a2b(0x1a18)],'name':_0xbc6c95['scriptName']})[_0x106a2b(0x15e7)];})[_0x24ccd0(0x20cd)](function(_0x322ed3){const _0x2c407b=_0x24ccd0;_0x2c6505[_0x2c407b(0x1bd0)]({'title':_0x322ed3['status']?_0x2c407b(0x575)+_0x322ed3[_0x2c407b(0x10b3)]+_0x2c407b(0x21db)+_0x322ed3[_0x2c407b(0x2115)]:_0x2c407b(0x1a7),'msg':_0x322ed3[_0x2c407b(0x1c52)]?JSON[_0x2c407b(0x2317)](_0x322ed3['data'][_0x2c407b(0x18ca)]):_0x322ed3[_0x2c407b(0x18ca)]||_0x322ed3[_0x2c407b(0x2915)]()});}),_0xbc6c95[_0x24ccd0(0xc51)]=![],_0x5e4141['plugin'][_0x24ccd0(0x2603)]({'id':_0xbc6c95['id']},_0xbc6c95)[_0x24ccd0(0x15e7)]['then'](function(){const _0xf2cf23=_0x24ccd0;_0x2c6505[_0xf2cf23(0x1339)]({'title':_0xf2cf23(0x1e66),'msg':_0xbc6c95[_0xf2cf23(0x2494)]?_0xbc6c95[_0xf2cf23(0x2494)]+_0xf2cf23(0x1fb8):''});})[_0x24ccd0(0x20cd)](function(_0x207365){const _0x2afca4=_0x24ccd0;if(_0x207365[_0x2afca4(0x1c52)]&&_0x207365[_0x2afca4(0x1c52)][_0x2afca4(0xbae)]&&_0x207365[_0x2afca4(0x1c52)][_0x2afca4(0xbae)][_0x2afca4(0x1b9e)]){_0xbbea42['errors']=_0x207365[_0x2afca4(0x1c52)][_0x2afca4(0xbae)]||[{'message':_0x207365[_0x2afca4(0x2915)](),'type':_0x2afca4(0x18ed)}];for(let _0x3fc83e=0x0;_0x3fc83e<_0x207365['data'][_0x2afca4(0xbae)][_0x2afca4(0x1b9e)];_0x3fc83e++){_0x2c6505[_0x2afca4(0x1bd0)]({'title':_0x207365[_0x2afca4(0x1c52)][_0x2afca4(0xbae)][_0x3fc83e]['type'],'msg':_0x207365[_0x2afca4(0x1c52)][_0x2afca4(0xbae)][_0x3fc83e][_0x2afca4(0x18ca)]});}}else _0x2c6505[_0x2afca4(0x1bd0)]({'title':_0x207365[_0x2afca4(0x10b3)]?'API:'+_0x207365['status']+'\x20-\x20'+_0x207365[_0x2afca4(0x2115)]:'api.plugin.update','msg':_0x207365[_0x2afca4(0x1c52)]?JSON[_0x2afca4(0x2317)](_0x207365['data'][_0x2afca4(0x18ca)]):_0x207365[_0x2afca4(0x18ca)]||_0x207365['toString']()});});}function _0x301fa7(_0x46486f,_0x1578ee){const _0x4f928e=_0x409c80,_0xc728c1=_0x1beaed[_0x4f928e(0x856)]()[_0x4f928e(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()[_0x4f928e(0xc01)](_0x4f928e(0x1141))+'?')[_0x4f928e(0x33a)](_0x4f928e(0x50b)+(_0x46486f[_0x4f928e(0x2494)]||_0x4f928e(0x1141))+_0x4f928e(0x26d0)+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x4f928e(0x852))[_0x4f928e(0x2283)](_0x1578ee)['ok']('OK')['cancel'](_0x4f928e(0x18fd));_0x1beaed[_0x4f928e(0xa60)](_0xc728c1)[_0x4f928e(0x64a)](function(){_0x5b37b6(_0x46486f);},function(){const _0x35e477=_0x4f928e;console[_0x35e477(0x9b4)](_0x35e477(0x18fd));});}let _0x22294f=!![],_0x54771d=0x1;_0x20033d[_0x409c80(0xc62)](_0x409c80(0x1cb9),function(_0xd49432,_0x29456c){const _0x5a07af=_0x409c80;_0x22294f?_0x392467(function(){_0x22294f=![];}):(!_0x29456c&&(_0x54771d=_0xbbea42[_0x5a07af(0x289a)][_0x5a07af(0xc72)]),_0xd49432!==_0x29456c&&(_0xbbea42[_0x5a07af(0x289a)]['page']=0x1),!_0xd49432&&(_0xbbea42['query']['page']=_0x54771d),_0xbbea42[_0x5a07af(0x1888)]());});function _0x531efe(_0x4efd40){const _0x24f3d5=_0x409c80;_0xbbea42[_0x24f3d5(0x1426)]=_0x4efd40||{'count':0x0,'rows':[]};}function _0x5230b7(){const _0xe2882d=_0x409c80;_0xbbea42['query'][_0xe2882d(0x24f9)]=(_0xbbea42[_0xe2882d(0x289a)][_0xe2882d(0xc72)]-0x1)*_0xbbea42[_0xe2882d(0x289a)]['limit'],_0xcff6e2['hasRole'](_0xe2882d(0x333))?_0xbbea42[_0xe2882d(0x1713)]=_0x5e4141[_0xe2882d(0x1141)]['get'](_0xbbea42['query'],_0x531efe)[_0xe2882d(0x15e7)]:(_0xbbea42[_0xe2882d(0x289a)]['id']=_0xbbea42[_0xe2882d(0x16a8)]['id'],_0xbbea42[_0xe2882d(0x289a)]['section']=_0xe2882d(0x45a),_0xbbea42[_0xe2882d(0x1713)]=_0x5e4141[_0xe2882d(0x16a8)][_0xe2882d(0x2565)](_0xbbea42['query'],_0x531efe)['$promise']);}function _0x5e7985(_0x4484ec,_0x2d3ebe){const _0x30ef35=_0x409c80;_0x1beaed[_0x30ef35(0xa60)]({'controller':_0x30ef35(0x529),'controllerAs':'vm','templateUrl':_0x541fe6,'parent':angular[_0x30ef35(0x1f81)](_0x48f5f6[_0x30ef35(0xb49)]),'targetEvent':_0x4484ec,'clickOutsideToClose':!![],'locals':{'plugin':_0x2d3ebe,'plugins':_0xbbea42[_0x30ef35(0x1426)]['rows'],'license':_0xbbea42[_0x30ef35(0x1947)],'setting':_0xbbea42[_0x30ef35(0x28d6)],'crudPermissions':_0xbbea42[_0x30ef35(0x402)]}});}function _0x5b37b6(_0x29ea6f){const _0x302ff5=_0x409c80;_0x29ea6f['active']&&_0x29ea6f[_0x302ff5(0x2185)]==_0x302ff5(0x2929)&&_0x5e4141[_0x302ff5(0x24ef)][_0x302ff5(0x896)]()[_0x302ff5(0x15e7)][_0x302ff5(0x64a)](function(_0x514907){const _0x9fe835=_0x302ff5;if(!_0x514907||!_0x514907['rows'])return _0x2c6505[_0x9fe835(0x1bd0)]({'title':'Plugin\x20not\x20deleted!','msg':_0x9fe835(0x3d7)});const _0xc9da64=_0x28c606()[_0x9fe835(0x27bc)](_0x514907[_0x9fe835(0x28b8)],{'name':_0x29ea6f['scriptName']});if(!_0xc9da64){console['log'](_0x9fe835(0x259d),_0x29ea6f[_0x9fe835(0x90a)]);return;}_0x5e4141[_0x9fe835(0x24ef)][_0x9fe835(0xabd)]({'id':_0xc9da64['pm_id'],'name':_0x29ea6f[_0x9fe835(0x90a)]})[_0x9fe835(0x15e7)];})['catch'](function(){const _0x4226f8=_0x302ff5;return _0x2c6505[_0x4226f8(0x1bd0)]({'title':_0x4226f8(0x17c),'msg':_0x4226f8(0x1ccf)});}),_0x5e4141['plugin'][_0x302ff5(0xabd)]({'id':_0x29ea6f['id']})[_0x302ff5(0x15e7)][_0x302ff5(0x64a)](function(){const _0x17b44c=_0x302ff5;_0x28c606()['remove'](_0xbbea42[_0x17b44c(0x1426)][_0x17b44c(0x28b8)],{'id':_0x29ea6f['id']}),_0xbbea42[_0x17b44c(0x1426)][_0x17b44c(0xb90)]-=0x1,!_0xbbea42[_0x17b44c(0x1426)][_0x17b44c(0x28b8)][_0x17b44c(0x1b9e)]&&_0xbbea42[_0x17b44c(0x1888)](),_0x2c6505[_0x17b44c(0x1339)]({'title':_0x28c606()[_0x17b44c(0xc01)](_0x17b44c(0x226e))+_0x17b44c(0x2502),'msg':_0x29ea6f['name']?_0x29ea6f[_0x17b44c(0x2494)]+'\x20has\x20been\x20deleted!':''});})[_0x302ff5(0x20cd)](function(_0x12cab1){const _0x17d9fa=_0x302ff5;if(_0x12cab1[_0x17d9fa(0x1c52)]&&_0x12cab1[_0x17d9fa(0x1c52)][_0x17d9fa(0xbae)]&&_0x12cab1['data'][_0x17d9fa(0xbae)][_0x17d9fa(0x1b9e)]){_0xbbea42[_0x17d9fa(0xbae)]=_0x12cab1[_0x17d9fa(0x1c52)][_0x17d9fa(0xbae)]||[{'message':_0x12cab1[_0x17d9fa(0x2915)](),'type':_0x17d9fa(0x1943)}];for(let _0x5133b4=0x0;_0x5133b4<_0x12cab1[_0x17d9fa(0x1c52)][_0x17d9fa(0xbae)][_0x17d9fa(0x1b9e)];_0x5133b4++){_0x2c6505['error']({'title':_0x12cab1[_0x17d9fa(0x1c52)][_0x17d9fa(0xbae)][_0x5133b4]['type'],'msg':_0x12cab1[_0x17d9fa(0x1c52)][_0x17d9fa(0xbae)][_0x5133b4][_0x17d9fa(0x18ca)]});}}else _0x2c6505[_0x17d9fa(0x1bd0)]({'title':_0x12cab1[_0x17d9fa(0x10b3)]?_0x17d9fa(0x575)+_0x12cab1[_0x17d9fa(0x10b3)]+_0x17d9fa(0x21db)+_0x12cab1['statusText']:_0x17d9fa(0x1943),'msg':_0x12cab1[_0x17d9fa(0x1c52)]?JSON[_0x17d9fa(0x2317)](_0x12cab1['data'][_0x17d9fa(0x18ca)]):_0x12cab1[_0x17d9fa(0x18ca)]||_0x12cab1[_0x17d9fa(0x2915)]()});});}function _0x411a58(){const _0xb4d92=_0x409c80,_0x115dac=angular[_0xb4d92(0x289e)](_0xbbea42[_0xb4d92(0x22c3)]);return _0xbbea42['selectedPlugins']=[],_0x115dac;}function _0x575a29(_0x2e6d3b){const _0x5738e2=_0x409c80,_0x269835=_0x1beaed[_0x5738e2(0x856)]()[_0x5738e2(0x2021)](_0x5738e2(0x1852))[_0x5738e2(0x33a)](_0x5738e2(0x50b)+_0xbbea42[_0x5738e2(0x22c3)][_0x5738e2(0x1b9e)]+_0x5738e2(0x163e)+_0x5738e2(0x4b8))[_0x5738e2(0x213e)](_0x5738e2(0x2593))['targetEvent'](_0x2e6d3b)['ok']('OK')[_0x5738e2(0x101a)](_0x5738e2(0x18fd));_0x1beaed[_0x5738e2(0xa60)](_0x269835)[_0x5738e2(0x64a)](function(){const _0x231e4d=_0x5738e2;_0xbbea42[_0x231e4d(0x22c3)][_0x231e4d(0x1397)](function(_0x5a5440){_0x5b37b6(_0x5a5440);}),_0xbbea42[_0x231e4d(0x22c3)]=[];});}function _0x32b243(){_0xbbea42['selectedPlugins']=[];}function _0x502392(){const _0x45ad2d=_0x409c80;_0xbbea42['selectedPlugins']=_0xbbea42[_0x45ad2d(0x1426)][_0x45ad2d(0x28b8)];}function _0x231cf4(_0x21fedc){const _0x5eb3ef=_0x409c80;_0x1beaed[_0x5eb3ef(0xa60)]({'controller':_0x5eb3ef(0x1514),'controllerAs':'vm','templateUrl':_0x2f0e2d,'parent':angular[_0x5eb3ef(0x1f81)](_0x48f5f6[_0x5eb3ef(0xb49)]),'targetEvent':_0x21fedc,'clickOutsideToClose':!![],'locals':{'plugins':_0xbbea42[_0x5eb3ef(0x1426)][_0x5eb3ef(0x28b8)]}});}}const _0x4cc81c=_0xe3bbc;;_0x4765be[_0x49a1e3(0x1e73)]=['$cookies',_0x49a1e3(0x212a),_0x49a1e3(0x680),_0x49a1e3(0x1426),_0x49a1e3(0xa19),_0x49a1e3(0xdcf)];function _0x4765be(_0x319b0a,_0x573807,_0x1d5675,_0x2cd5e7,_0x14f202,_0x466e09){const _0x423494=_0x49a1e3,_0xf0f569=this,_0x1794d1=0x2,_0x5f24f1=_0x1794d1*0x400*0x400;_0xf0f569[_0x423494(0x1d3d)]=_0x466e09[_0x423494(0x808)](),_0xf0f569[_0x423494(0xbae)]=[],_0xf0f569[_0x423494(0x2021)]=_0x423494(0x173a),_0xf0f569['plugins']=_0x2cd5e7,_0xf0f569[_0x423494(0xd82)]=[],_0xf0f569[_0x423494(0x171f)]=_0x423494(0x2507),_0xf0f569['plugin']={},_0xf0f569[_0x423494(0x1026)]={'maxChunkRetries':0x1,'chunkSize':_0x5f24f1,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':'api/plugins'},_0xf0f569[_0x423494(0x1eec)]={'flow':{}},_0xf0f569['dropping']=![],_0xf0f569[_0x423494(0x25ed)]=_0x4f82f0,_0xf0f569[_0x423494(0x1c5)]=_0x2e94ce,_0xf0f569[_0x423494(0x1de6)]=_0x1c7c75,_0xf0f569['uploadError']=_0x167c77,_0xf0f569[_0x423494(0x155d)]=_0x4064e1,_0xf0f569[_0x423494(0x16cb)]=_0x1966b5;function _0x4f82f0(_0x4779ee){const _0xe1f607=_0x423494,_0x48fd57=[_0xe1f607(0x21a8)];if(!_0x28c606()[_0xe1f607(0x68a)](_0x48fd57,_0x4779ee[_0xe1f607(0xa2f)]()))return _0x1d5675[_0xe1f607(0x1bd0)]({'title':_0xe1f607(0x1486)+_0x4779ee[_0xe1f607(0xa2f)](),'msg':_0xe1f607(0x1b51)+_0x48fd57['join']()}),![];if(_0x4779ee[_0xe1f607(0x1c97)]>_0x5f24f1)return _0x1d5675[_0xe1f607(0x1bd0)]({'title':_0xe1f607(0x535),'msg':_0xe1f607(0xbfa)+_0x1794d1+'MB'}),![];return _0xf0f569['plugin']={'id':_0x4779ee[_0xe1f607(0x16c4)],'file':_0x4779ee},_0xf0f569['uploadPlugins'][_0xe1f607(0x1891)](_0xf0f569[_0xe1f607(0x1141)]),!![];}function _0x2e94ce(){const _0x5c46d9=_0x423494;_0xf0f569['uploadState']='uploading',_0xf0f569['ngFlow'][_0x5c46d9(0x891)][_0x5c46d9(0x2017)]['headers']={'X-Requested-With':'XMLHttpRequest','Authorization':_0x5c46d9(0x28cb)+_0x319b0a[_0x5c46d9(0x896)](_0x5c46d9(0x283d))},_0xf0f569[_0x5c46d9(0x1eec)][_0x5c46d9(0x891)][_0x5c46d9(0x2017)][_0x5c46d9(0x289a)]={'role':_0xf0f569[_0x5c46d9(0x1d3d)]['role'],'userProfileId':_0xf0f569[_0x5c46d9(0x1d3d)][_0x5c46d9(0x21ac)]},_0xf0f569[_0x5c46d9(0x1eec)][_0x5c46d9(0x891)]['upload']();}function _0x1c7c75(_0x4e9541,_0x2fda8c){const _0x50a47d=_0x423494;_0xf0f569['plugins'][_0x50a47d(0x1891)](JSON[_0x50a47d(0x27f1)](_0x2fda8c)),angular[_0x50a47d(0x1397)](_0xf0f569[_0x50a47d(0xd82)],function(_0x3250c0){const _0x1d9443=_0x50a47d;if(_0x3250c0['id']===_0x4e9541[_0x1d9443(0x16c4)]){const _0x476d49=new FileReader();_0x476d49[_0x1d9443(0x2724)](_0x3250c0[_0x1d9443(0x10b4)][_0x1d9443(0x10b4)]),_0x476d49[_0x1d9443(0x11c)]=function(_0x3212ff){const _0x7f0388=_0x1d9443;_0x3250c0[_0x7f0388(0x2761)]=_0x3212ff[_0x7f0388(0x2497)][_0x7f0388(0x5e3)];};}});}function _0x167c77(){const _0x153b99=_0x423494;_0xf0f569[_0x153b99(0x1eec)][_0x153b99(0x891)]['cancel'](),_0x1d5675[_0x153b99(0x1bd0)]({'title':_0x153b99(0x8ef),'msg':_0x153b99(0x1595)}),_0xf0f569[_0x153b99(0x171f)]=_0x153b99(0x4a9);}function _0x4064e1(){const _0x292db3=_0x423494;_0xf0f569[_0x292db3(0x171f)]!==_0x292db3(0x4a9)&&(_0xf0f569['uploadState']=_0x292db3(0x125d),_0x1d5675[_0x292db3(0x1339)]({'title':_0x292db3(0x522),'msg':_0xf0f569[_0x292db3(0x1141)][_0x292db3(0x10b4)]['name']+'\x20uploaded\x20successfully'}));}function _0x1966b5(){const _0x1b56f6=_0x423494;_0x573807[_0x1b56f6(0x268e)]();}}const _0x25749a=_0x4765be;;_0x3d6a39['$inject']=['$stateProvider',_0x49a1e3(0x21f8)];function _0x3d6a39(_0x361e20,_0x41fca7){const _0x170627=_0x49a1e3;_0x361e20[_0x170627(0x14f2)](_0x170627(0x20e7),{'abstract':!![],'url':_0x170627(0xc15)})[_0x170627(0x14f2)](_0x170627(0x20ec),{'url':_0x170627(0x1fe5),'views':{'content@app':{'templateUrl':_0x1f056a,'controller':_0x170627(0x1474)}},'resolve':{'plugins':[_0x170627(0x107c),'Auth',function(_0x359362,_0x1a328d){const _0x47fa32=_0x170627;return _0x1a328d[_0x47fa32(0x4de)](_0x47fa32(0x333))?_0x359362[_0x47fa32(0x1268)]('plugin@get',{'fields':'createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version','sort':_0x47fa32(0x2494),'limit':0xa,'offset':0x0}):_0x359362[_0x47fa32(0x1268)](_0x47fa32(0x1758),{'id':_0x1a328d[_0x47fa32(0x808)]()[_0x47fa32(0x21ac)],'section':_0x47fa32(0x45a),'fields':_0x47fa32(0x27bd),'sort':_0x47fa32(0x2494),'limit':0xa,'offset':0x0});}],'userProfile':[_0x170627(0x107c),'Auth',function(_0x3e954b,_0x5eb76f){const _0x1e10fc=_0x170627;return _0x5eb76f[_0x1e10fc(0x4de)]('admin')?null:_0x3e954b['resolve'](_0x1e10fc(0x6e3),{'fields':'id,name,crudPermissions','id':_0x5eb76f[_0x1e10fc(0x808)]()[_0x1e10fc(0x21ac)]});}],'userProfileSection':['apiResolver',_0x170627(0xdcf),function(_0x311d8,_0x164564){const _0x2fda4e=_0x170627;return _0x164564['hasRole']('admin')?null:_0x311d8[_0x2fda4e(0x1268)](_0x2fda4e(0x2681),{'fields':_0x2fda4e(0x527),'userProfileId':_0x164564[_0x2fda4e(0x808)]()[_0x2fda4e(0x21ac)],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':_0x170627(0x93b)})[_0x170627(0x14f2)](_0x170627(0x1d28),{'url':_0x170627(0x45b),'params':{'plugin':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x144ae3,'controller':'MarketplacePluginController\x20as\x20vm'}},'resolve':{'plugin':[_0x170627(0x107c),_0x170627(0x1fbb),function(_0x347737,_0x44181c){const _0x41cb1d=_0x170627;return _0x347737[_0x41cb1d(0x1268)]('plugin@get',{'fields':_0x41cb1d(0x27bd),'id':_0x44181c['id']});}],'userProfileSection':[_0x170627(0x107c),'Auth',function(_0x249254,_0x339038){const _0x3d19f4=_0x170627;return _0x249254[_0x3d19f4(0x1268)](_0x3d19f4(0x2681),{'fields':_0x3d19f4(0x527),'userProfileId':_0x339038['getCurrentUser']()[_0x3d19f4(0x21ac)],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':_0x170627(0x93b)}),_0x41fca7[_0x170627(0x1bde)]('app/main/apps/marketplace');}angular['module'](_0x49a1e3(0x20e7),['ngCsv','ngPassword','md.data.table','flow',_0x49a1e3(0x2516),_0x49a1e3(0x1b6c),_0x49a1e3(0x1434),_0x49a1e3(0x1a87),_0x49a1e3(0x1610),_0x49a1e3(0xb19),'mwFormBuilder',_0x49a1e3(0x11fd),_0x49a1e3(0x1cfe),'ngclipboard','angular-cron-jobs',_0x49a1e3(0x1cff),'angularMaterialFormBuilder',_0x49a1e3(0x1acd),'chart.js',_0x49a1e3(0x28dd)])[_0x49a1e3(0x3d3)](_0x3d6a39)[_0x49a1e3(0x38e)](_0x49a1e3(0x529),_0x9306a3)['controller'](_0x49a1e3(0x6a0),_0x27d250)[_0x49a1e3(0x38e)]('MarketplacePluginsController',_0x4cc81c)[_0x49a1e3(0x38e)](_0x49a1e3(0x1514),_0x25749a);;const _0x237056=_0x2e4a48['p']+'src/js/modules/main/apps/plugins/views/plugin/plugin.html/plugin.html';;_0x1bb886[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x1674),_0x49a1e3(0x186e),'api',_0x49a1e3(0x633),_0x49a1e3(0xdcf)];function _0x1bb886(_0x3e6096,_0x184dd5,_0x3cb773,_0x52850b,_0xaa33ab,_0x27dbe9){const _0x4a7de3=_0x49a1e3,_0x47dce6=this;_0x47dce6['currentUser']=_0x27dbe9[_0x4a7de3(0x808)](),_0x47dce6[_0x4a7de3(0x1141)]={},_0x47dce6['getTrustedURL']=_0x3f5f79,_0x52850b[_0x4a7de3(0x1141)][_0x4a7de3(0x896)]({'id':_0x3e6096[_0x4a7de3(0x1b48)]['id']})[_0x4a7de3(0x15e7)][_0x4a7de3(0x64a)](function(_0x155289){const _0x56075c=_0x4a7de3;if(_0x155289)return _0x47dce6[_0x56075c(0x1141)]=_0x155289,_0x52850b[_0x56075c(0x1141)]['get']({'id':_0x47dce6[_0x56075c(0x1141)]['id']})[_0x56075c(0x15e7)];})[_0x4a7de3(0x20cd)](function(){_0x47dce6['plugin']=undefined;});function _0x3f5f79(){const _0x3b0806=_0x4a7de3;return _0x3cb773[_0x3b0806(0x2119)](_0x47dce6[_0x3b0806(0x1141)][_0x3b0806(0x1382)]);}}const _0x4fcee1=_0x1bb886;;_0x57e4aa[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad)];function _0x57e4aa(_0x1f4b10){const _0x1e12e7=_0x49a1e3;_0x1f4b10['state'](_0x1e12e7(0x1f84),{'url':_0x1e12e7(0x154d),'views':{'content@app':{'templateUrl':_0x237056,'controller':'PluginController\x20as\x20vm'}},'resolve':{},'authenticate':!![],'bodyClass':_0x1e12e7(0x1426)});}angular['module']('app.plugins.plugin',[])['config'](_0x57e4aa)[_0x49a1e3(0x38e)](_0x49a1e3(0x33f),_0x4fcee1);;_0x553e83['$inject']=[_0x49a1e3(0x20ad),_0x49a1e3(0x21f8)];function _0x553e83(_0x583fcf,_0x47eff0){const _0x1f60b4=_0x49a1e3;_0x583fcf[_0x1f60b4(0x14f2)](_0x1f60b4(0x10b5),{'abstract':!![],'url':_0x1f60b4(0x1fe5)}),_0x47eff0['addPart'](_0x1f60b4(0x1d01));}angular['module'](_0x49a1e3(0x10b5),[_0x49a1e3(0x8d2),'ngPassword',_0x49a1e3(0x1fe3),'flow','mdColorPicker',_0x49a1e3(0x1b6c),'ng-sortable',_0x49a1e3(0x1a87),'ngAnimate',_0x49a1e3(0xb19),'mwFormBuilder',_0x49a1e3(0x11fd),'mwFormUtils',_0x49a1e3(0x1bd1),_0x49a1e3(0x1b5f),_0x49a1e3(0x1cff),_0x49a1e3(0x1046),_0x49a1e3(0x1acd),_0x49a1e3(0xc48),_0x49a1e3(0x28dd),_0x49a1e3(0x1f84)])['config'](_0x553e83);;const _0xb8cdda=_0x2e4a48['p']+'src/js/modules/main/apps/video/views/screenRecordings/screenRecordings.html/screenRecordings.html';;_0x55023d[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),'screenRecordings',_0x49a1e3(0x24f7),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x55023d(_0x2db271,_0x55f4ec,_0x387fad,_0x2b147a,_0x2a06a4,_0x299810,_0x1743af,_0x1a8d7d,_0x4f8d24,_0x596826,_0x4ede73,_0x13e776,_0x206068,_0x1ef634){const _0x49b4f5=_0x49a1e3,_0x3137d7=this;_0x3137d7['currentUser']=_0x4ede73[_0x49b4f5(0x808)](),_0x3137d7[_0x49b4f5(0xbae)]=[],_0x3137d7['setting']=_0x206068,_0x3137d7[_0x49b4f5(0x1947)]=_0x13e776,_0x3137d7[_0x49b4f5(0x402)]=_0x1ef634,_0x3137d7[_0x49b4f5(0x6c2)]={},_0x3137d7['passwordPattern']=_0x3137d7[_0x49b4f5(0x28d6)]&&_0x3137d7[_0x49b4f5(0x28d6)][_0x49b4f5(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3137d7[_0x49b4f5(0x2021)]=_0x49b4f5(0x158a),_0x3137d7['screenRecording']=angular['copy'](_0x4f8d24),_0x3137d7['screenRecordings']=_0x1a8d7d,_0x3137d7[_0x49b4f5(0x170b)]=![];!_0x3137d7['screenRecording']&&(_0x3137d7['screenRecording']={},_0x3137d7[_0x49b4f5(0x2021)]=_0x49b4f5(0x27dc),_0x3137d7[_0x49b4f5(0x170b)]=!![]);_0x3137d7[_0x49b4f5(0x520)]=_0x1eb26f,_0x3137d7['savescreenRecording']=_0x2865c3,_0x3137d7[_0x49b4f5(0xae0)]=_0xe21172,_0x3137d7[_0x49b4f5(0x1605)]=_0x58f0ea,_0x3137d7[_0x49b4f5(0x16cb)]=_0x53e8d5,_0x596826[_0x49b4f5(0x2e8)]['get']({'fields':_0x49b4f5(0xd53),'sort':_0x49b4f5(0x2494),'nolimit':'true'})[_0x49b4f5(0x15e7)][_0x49b4f5(0x64a)](function(_0xdcf51e){const _0x28a55a=_0x49b4f5;_0x3137d7[_0x28a55a(0xff5)]=_0xdcf51e['rows']||[];})[_0x49b4f5(0x20cd)](function(_0x5973b0){const _0x5891a4=_0x49b4f5;_0x1743af['error']({'title':_0x5973b0[_0x5891a4(0x10b3)]?_0x5891a4(0x575)+_0x5973b0[_0x5891a4(0x10b3)]+_0x5891a4(0x21db)+_0x5973b0[_0x5891a4(0x2115)]:'SYSTEM:GET_USERS','msg':_0x5973b0[_0x5891a4(0x1c52)]?JSON[_0x5891a4(0x2317)](_0x5973b0[_0x5891a4(0x1c52)]):_0x5973b0[_0x5891a4(0x2915)]()});});function _0x1eb26f(){const _0x31cd83=_0x49b4f5;_0x3137d7[_0x31cd83(0xbae)]=[],_0x596826[_0x31cd83(0x24f7)][_0x31cd83(0x2479)](_0x3137d7[_0x31cd83(0x24f7)])['$promise'][_0x31cd83(0x64a)](function(_0x1743ed){const _0x1f1e31=_0x31cd83;_0x3137d7['screenRecordings'][_0x1f1e31(0x1891)](_0x1743ed[_0x1f1e31(0x14f8)]()),_0x1743af[_0x1f1e31(0x1339)]({'title':_0x1f1e31(0x1055),'msg':_0x3137d7[_0x1f1e31(0x24f7)]['name']?_0x3137d7[_0x1f1e31(0x24f7)][_0x1f1e31(0x2494)]+_0x1f1e31(0x258d):''}),_0x53e8d5(_0x1743ed);})[_0x31cd83(0x20cd)](function(_0x43160f){const _0x3eefaf=_0x31cd83;if(_0x43160f['data']&&_0x43160f[_0x3eefaf(0x1c52)]['errors']&&_0x43160f[_0x3eefaf(0x1c52)][_0x3eefaf(0xbae)]['length']){_0x3137d7[_0x3eefaf(0xbae)]=_0x43160f[_0x3eefaf(0x1c52)]['errors']||[{'message':_0x43160f['toString'](),'type':_0x3eefaf(0x12fd)}];for(let _0x133d7e=0x0;_0x133d7e<_0x43160f[_0x3eefaf(0x1c52)]['errors'][_0x3eefaf(0x1b9e)];_0x133d7e+=0x1){_0x1743af[_0x3eefaf(0x1bd0)]({'title':_0x43160f['data']['errors'][_0x133d7e][_0x3eefaf(0x2185)],'msg':_0x43160f['data'][_0x3eefaf(0xbae)][_0x133d7e]['message']});}}else _0x1743af[_0x3eefaf(0x1bd0)]({'title':_0x43160f['status']?_0x3eefaf(0x575)+_0x43160f['status']+'\x20-\x20'+_0x43160f[_0x3eefaf(0x2115)]:_0x3eefaf(0x12fd),'msg':_0x43160f['data']?JSON['stringify'](_0x43160f[_0x3eefaf(0x1c52)][_0x3eefaf(0x18ca)]):_0x43160f[_0x3eefaf(0x2915)]()});});}function _0x2865c3(){const _0x410faa=_0x49b4f5;_0x3137d7[_0x410faa(0xbae)]=[],_0x596826[_0x410faa(0x24f7)][_0x410faa(0x2603)]({'id':_0x3137d7[_0x410faa(0x24f7)]['id']},_0x3137d7[_0x410faa(0x24f7)])[_0x410faa(0x15e7)][_0x410faa(0x64a)](function(_0x6adb50){const _0x24cf5d=_0x410faa,_0xba8dd=_0x28c606()[_0x24cf5d(0x27bc)](_0x3137d7[_0x24cf5d(0x3f5)],{'id':_0x6adb50['id']});_0xba8dd&&_0x28c606()[_0x24cf5d(0x14fe)](_0xba8dd,_0x28c606()['pick'](_0x6adb50[_0x24cf5d(0x14f8)](),_0x28c606()[_0x24cf5d(0x1ec6)](_0xba8dd))),_0x1743af['success']({'title':_0x24cf5d(0x11dd),'msg':_0x3137d7['screenRecording'][_0x24cf5d(0x2494)]?_0x3137d7['screenRecording'][_0x24cf5d(0x2494)]+_0x24cf5d(0x271):''}),_0x53e8d5(_0x6adb50);})[_0x410faa(0x20cd)](function(_0x3c409c){const _0x1e4e04=_0x410faa;if(_0x3c409c[_0x1e4e04(0x1c52)]&&_0x3c409c[_0x1e4e04(0x1c52)][_0x1e4e04(0xbae)]&&_0x3c409c['data']['errors']['length']){_0x3137d7[_0x1e4e04(0xbae)]=_0x3c409c['data'][_0x1e4e04(0xbae)]||[{'message':_0x3c409c['toString'](),'type':_0x1e4e04(0x2e7)}];for(let _0x283c75=0x0;_0x283c75<_0x3c409c[_0x1e4e04(0x1c52)][_0x1e4e04(0xbae)][_0x1e4e04(0x1b9e)];_0x283c75++){_0x1743af[_0x1e4e04(0x1bd0)]({'title':_0x3c409c['data']['errors'][_0x283c75]['type'],'msg':_0x3c409c[_0x1e4e04(0x1c52)][_0x1e4e04(0xbae)][_0x283c75][_0x1e4e04(0x18ca)]});}}else _0x1743af[_0x1e4e04(0x1bd0)]({'title':_0x3c409c['status']?_0x1e4e04(0x575)+_0x3c409c[_0x1e4e04(0x10b3)]+_0x1e4e04(0x21db)+_0x3c409c['statusText']:_0x1e4e04(0x2e7),'msg':_0x3c409c[_0x1e4e04(0x1c52)]?JSON[_0x1e4e04(0x2317)](_0x3c409c[_0x1e4e04(0x1c52)][_0x1e4e04(0x18ca)]):_0x3c409c[_0x1e4e04(0x2915)]()});});}function _0xe21172(_0x19c459){const _0x3d7f6b=_0x49b4f5;_0x3137d7[_0x3d7f6b(0xbae)]=[];const _0x2fd5dc=_0x2b147a[_0x3d7f6b(0x856)]()[_0x3d7f6b(0x2021)](_0x3d7f6b(0x103a))[_0x3d7f6b(0x12b8)](_0x3d7f6b(0x1a1c))[_0x3d7f6b(0x213e)](_0x3d7f6b(0x112))['ok'](_0x3d7f6b(0x2664))[_0x3d7f6b(0x101a)]('Cancel')['targetEvent'](_0x19c459);_0x2b147a['show'](_0x2fd5dc)[_0x3d7f6b(0x64a)](function(){const _0xddf67a=_0x3d7f6b;_0x596826[_0xddf67a(0x24f7)][_0xddf67a(0xabd)]({'id':_0x3137d7[_0xddf67a(0x24f7)]['id']})[_0xddf67a(0x15e7)][_0xddf67a(0x64a)](function(){const _0x177b17=_0xddf67a;_0x28c606()[_0x177b17(0x21c7)](_0x3137d7[_0x177b17(0x3f5)],{'id':_0x3137d7[_0x177b17(0x24f7)]['id']}),_0x1743af[_0x177b17(0x1339)]({'title':_0x177b17(0x249),'msg':(_0x3137d7[_0x177b17(0x24f7)][_0x177b17(0x2494)]||_0x177b17(0x24f7))+'\x20has\x20been\x20deleted!'}),_0x53e8d5(_0x3137d7[_0x177b17(0x24f7)]);})[_0xddf67a(0x20cd)](function(_0x41a17c){const _0x24c1ea=_0xddf67a;if(_0x41a17c[_0x24c1ea(0x1c52)]&&_0x41a17c[_0x24c1ea(0x1c52)][_0x24c1ea(0xbae)]&&_0x41a17c[_0x24c1ea(0x1c52)][_0x24c1ea(0xbae)]['length']){_0x3137d7[_0x24c1ea(0xbae)]=_0x41a17c[_0x24c1ea(0x1c52)]['errors']||[{'message':_0x41a17c[_0x24c1ea(0x2915)](),'type':_0x24c1ea(0x20bf)}];for(let _0x5a2ea3=0x0;_0x5a2ea3<_0x41a17c[_0x24c1ea(0x1c52)][_0x24c1ea(0xbae)]['length'];_0x5a2ea3++){_0x1743af[_0x24c1ea(0x1bd0)]({'title':_0x41a17c[_0x24c1ea(0x1c52)][_0x24c1ea(0xbae)][_0x5a2ea3][_0x24c1ea(0x2185)],'msg':_0x41a17c[_0x24c1ea(0x1c52)][_0x24c1ea(0xbae)][_0x5a2ea3][_0x24c1ea(0x18ca)]});}}else _0x1743af[_0x24c1ea(0x1bd0)]({'title':_0x41a17c[_0x24c1ea(0x10b3)]?_0x24c1ea(0x575)+_0x41a17c[_0x24c1ea(0x10b3)]+_0x24c1ea(0x21db)+_0x41a17c[_0x24c1ea(0x2115)]:_0x24c1ea(0x20bf),'msg':_0x41a17c[_0x24c1ea(0x1c52)]?JSON[_0x24c1ea(0x2317)](_0x41a17c['data'][_0x24c1ea(0x18ca)]):_0x41a17c[_0x24c1ea(0x18ca)]||_0x41a17c[_0x24c1ea(0x2915)]()});});},function(){});}function _0x58f0ea(_0x3f8419){return _0x3f8419===null?undefined:new Date(_0x3f8419);}function _0x53e8d5(_0x5c39b8){const _0x1b8365=_0x49b4f5;_0x2b147a[_0x1b8365(0x268e)](_0x5c39b8);}}const _0x2df339=_0x55023d;;_0x4a9b84[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x212a),_0x49a1e3(0x680),'api',_0x49a1e3(0x1a25),_0x49a1e3(0x172f),_0x49a1e3(0x2089),'varPath',_0x49a1e3(0x4d1),'$q'];function _0x4a9b84(_0x585f9c,_0x3c2bc1,_0x289ed5,_0x3327da,_0x6bb36f,_0x219ab2,_0x8f7b91,_0xa65a07,_0x4a1264,_0x3d9fd4){const _0x2d343a=_0x49a1e3,_0x2c179a=this;_0x2c179a[_0x2d343a(0x26e5)]=![],_0x2c179a[_0x2d343a(0x1a25)]=Object[_0x2d343a(0x2a3)]({},_0x6bb36f),_0x2c179a[_0x2d343a(0xb5a)]=_0x2d343a(0x24f7),_0x2c179a['element']=_0x4a1264,_0x2c179a['actionOptions']=Object[_0x2d343a(0x2a3)]({},_0x219ab2),_0x2c179a[_0x2d343a(0x1267)]=_0xa65a07,_0x2c179a[_0x2d343a(0x2089)]=_0x8f7b91,_0x2c179a[_0x2d343a(0x16e1)]=_0x2d343a(0x374),_0x2c179a[_0x2d343a(0x1e27)]=_0x2d343a(0x24f7),console['log'](_0x2d343a(0x2756),_0x2c179a['path']),console[_0x2d343a(0x9b4)]('TCL:\x20vm.recording[vm.path]',_0x2c179a[_0x2d343a(0x1a25)][_0x2c179a[_0x2d343a(0x1267)]]),_0x2c179a['filename']=_0x2c179a[_0x2d343a(0x1a25)][_0x2c179a[_0x2d343a(0x1267)]][_0x2d343a(0x1b28)]('/')>-0x1?_0x2c179a[_0x2d343a(0x1a25)][_0x2c179a[_0x2d343a(0x1267)]]['substring'](_0x2c179a[_0x2d343a(0x1a25)][_0x2c179a['path']][_0x2d343a(0x269c)]('/')+0x1):_0x2c179a[_0x2d343a(0x1a25)][_0x2c179a[_0x2d343a(0x1267)]]['indexOf']('\x5c')>-0x1?_0x2c179a[_0x2d343a(0x1a25)][_0x2c179a[_0x2d343a(0x1267)]][_0x2d343a(0x28b2)](_0x2c179a['recording'][_0x2c179a[_0x2d343a(0x1267)]][_0x2d343a(0x269c)]('\x5c')+0x1):_0x2c179a['recording'][_0x2c179a[_0x2d343a(0x1267)]],_0x2c179a[_0x2d343a(0x1c2c)]=![];_0x28c606()[_0x2d343a(0x28d7)](_0x2c179a['recording'][_0x2d343a(0x1c2c)])&&(_0x2c179a['recording'][_0x2d343a(0x1c2c)]=_0x2c179a[_0x2d343a(0x25f5)]['slice'](_0x2c179a[_0x2d343a(0x25f5)]['lastIndexOf']('.')));(_0x2c179a['recording'][_0x2d343a(0x1c2c)]==='.wav'&&_0x2c179a[_0x2d343a(0x1f81)]==='audio'||_0x2c179a[_0x2d343a(0x1a25)][_0x2d343a(0x1c2c)]===_0x2d343a(0x431)&&_0x2c179a[_0x2d343a(0x1f81)]==='video')&&(_0x2c179a[_0x2d343a(0x1c2c)]=!![]);_0x2c179a[_0x2d343a(0x15ae)]=!![];_0x2c179a[_0x2d343a(0x1c2c)]&&_0x2d994f();function _0x2d994f(){const _0x223f55=_0x2d343a,_0x78743f=_0x3d9fd4[_0x223f55(0x122)]();return _0x3327da[_0x223f55(0x24f7)][_0x223f55(0x19b3)]({'id':_0x2c179a[_0x223f55(0x1a25)]['id'],'path':String(_0x2c179a['path'])})[_0x223f55(0x15e7)][_0x223f55(0x64a)](function(){const _0x65ecf2=_0x223f55;_0x2c179a['format']=!![],_0x2c179a[_0x65ecf2(0x15ae)]=!![],_0x78743f[_0x65ecf2(0x1268)]();})[_0x223f55(0x20cd)](function(){const _0x8d03b6=_0x223f55;console[_0x8d03b6(0x9b4)](_0x8d03b6(0x14ea)),_0x2c179a[_0x8d03b6(0x1c2c)]=![],_0x2c179a[_0x8d03b6(0x15ae)]=![],_0x78743f[_0x8d03b6(0x1268)]();}),_0x78743f[_0x223f55(0x1713)];}if(!_0x28c606()[_0x2d343a(0x28d7)](_0x219ab2[_0x2d343a(0x5df)])&&_0x219ab2[_0x2d343a(0x5df)]){_0x2c179a[_0x2d343a(0x5df)]=Object[_0x2d343a(0x2a3)]({},_0x6bb36f);const _0x428d1b=Object['keys'](_0x6bb36f);_0x428d1b[_0x2d343a(0x1397)](function(_0x41c201){const _0x2a6481=_0x2d343a;String(_0x41c201[0x0][_0x2a6481(0xa3c)]())===String(_0x41c201[0x0])&&delete _0x2c179a[_0x2a6481(0x5df)][_0x41c201];}),_0x2c179a[_0x2d343a(0x48f)]={};if(!_0x28c606()[_0x2d343a(0x28d7)](_0x219ab2['propertiesList'])&&_0x219ab2[_0x2d343a(0x1f3b)][_0x2d343a(0x1b9e)]>0x0){_0x2c179a[_0x2d343a(0x48f)]=Object['assign']({},_0x6bb36f);const _0x3b6f5a=_0x219ab2[_0x2d343a(0x1f3b)],_0xfdfe8f=Object[_0x2d343a(0x1ec6)](_0x6bb36f);let _0x54c1d7=!![];_0xfdfe8f['forEach'](function(_0x4a143a){const _0x51257b=_0x2d343a;_0x54c1d7=!![],_0x3b6f5a[_0x51257b(0x1397)](function(_0x66ba8a){String(_0x4a143a)===String(_0x66ba8a)&&(_0x54c1d7=![]);}),_0x54c1d7&&delete _0x2c179a['propertiesDefault'][_0x4a143a];}),_0x2c179a[_0x2d343a(0x5df)]=_0x2c179a[_0x2d343a(0x48f)];}if(!_0x28c606()['isNil'](_0x219ab2[_0x2d343a(0x311)])&&_0x219ab2['extraData']['length']>0x0){_0x2c179a[_0x2d343a(0x10b1)]={};const _0x135e72=_0x219ab2['extraData'];for(let _0x4a4b19=0x0;_0x4a4b19<_0x135e72[_0x2d343a(0x1b9e)];_0x4a4b19++){const _0x9c1b78=_0x135e72[_0x4a4b19][_0x2d343a(0x2146)],_0x6abdac=_0x135e72[_0x4a4b19][_0x2d343a(0x1e27)];for(let _0x516fe8=0x0;_0x516fe8<_0x9c1b78[_0x2d343a(0x1b9e)];_0x516fe8++){_0x2c179a[_0x2d343a(0x10b1)][_0x9c1b78[_0x516fe8][_0x2d343a(0x39b)]]=_0x6bb36f[_0x6abdac][_0x9c1b78[_0x516fe8]['key']];}}_0x2c179a['properties']=Object['assign']({},_0x2c179a['propertiesDefault'],_0x2c179a[_0x2d343a(0x10b1)]);}}_0x2c179a['closeDialog']=_0x4d63e0;function _0x4d63e0(){_0x3c2bc1['hide']();}}const _0x46e647=_0x4a9b84;;const _0xae1d78=_0x2e4a48['p']+'src/js/modules/main/apps/video/views/screenRecordings/create/dialog.html/dialog.html';;const _0x5abe11=_0x2e4a48['p']+'src/js/modules/main/apps/video/views/screenRecordings/partialViews/play.html/play.html';;_0xcb9bd2['$inject']=[_0x49a1e3(0x1674),'$window',_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),'$document',_0x49a1e3(0x20d4),'$translate',_0x49a1e3(0x3f5),_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xa19),_0x49a1e3(0x1214),_0x49a1e3(0x680),_0x49a1e3(0xdcf),'license',_0x49a1e3(0x28d6)];function _0xcb9bd2(_0x159af4,_0x32edbc,_0x46443a,_0xabddf6,_0x350723,_0x1ca871,_0x44dd96,_0xa73b89,_0x227ef5,_0x4b1a21,_0xdc62fb,_0x36ae59,_0x427927,_0x29db82,_0x635d43,_0x2a782a,_0xfba16){const _0x15e022=_0x49a1e3,_0xa551ad=this;_0xa551ad[_0x15e022(0x1947)]=_0x2a782a,_0xa551ad[_0x15e022(0x28d6)]=_0xfba16,_0xa551ad['currentUser']=_0x635d43[_0x15e022(0x808)](),_0xa551ad['screenRecordings']=_0x227ef5||{'count':0x0,'rows':[]},_0xa551ad['userProfile']=_0x4b1a21,_0xa551ad[_0x15e022(0x16b2)]=_0xdc62fb&&_0xdc62fb[_0x15e022(0xb90)]==0x1?_0xdc62fb[_0x15e022(0x28b8)][0x0]:null,_0xa551ad['crudPermissions']=_0x635d43[_0x15e022(0xa7e)](_0xa551ad[_0x15e022(0x16b2)]?_0xa551ad[_0x15e022(0x16b2)][_0x15e022(0x402)]:null),_0xa551ad[_0x15e022(0x185d)]=_0x15e022(0x3f5),_0xa551ad[_0x15e022(0x300)]='',_0xa551ad[_0x15e022(0x2748)]=null,_0xa551ad[_0x15e022(0x10bb)]=[],_0xa551ad[_0x15e022(0x289a)]={'fields':_0x15e022(0x1a70),'createdAt':_0x15e022(0x853),'includeAll':_0x15e022(0x1685),'sort':'-updatedAt','limit':0xa,'page':0x1},_0xa551ad[_0x15e022(0x289a)][_0x15e022(0x2378)]=_0x427927[_0x15e022(0x1b72)](),_0xa551ad[_0x15e022(0x9fc)]=_0x37dcf4();function _0x37dcf4(){const _0x4dde9b=_0x15e022;return[{'name':_0x4dde9b(0x1967),'key':_0x4dde9b(0x2378),'type':_0x4dde9b(0x232e),'label':_0x4dde9b(0x8f3)}];}_0xa551ad[_0x15e022(0x15c7)]=_0x148329,_0xa551ad['downloadfile2']=_0x522106,_0xa551ad[_0x15e022(0x1262)]=_0x158ace,_0xa551ad[_0x15e022(0x1339)]=_0x29f68c,_0xa551ad[_0x15e022(0x92f)]=_0x3e2540,_0xa551ad[_0x15e022(0x1b26)]=_0x53f25e,_0xa551ad[_0x15e022(0xae0)]=_0x5c921f,_0xa551ad['exportSelectedScreenRecordings']=_0x2e7450,_0xa551ad[_0x15e022(0xedf)]=_0x792be6,_0xa551ad['deselectScreenRecordings']=_0x23705f,_0xa551ad[_0x15e022(0x1e39)]=_0x2446ca,_0xa551ad[_0x15e022(0x173c)]=_0x21743c,_0x36ae59['user'][_0x15e022(0x896)]({'fields':_0x15e022(0xd53),'sort':'name','nolimit':'true'})['$promise'][_0x15e022(0x64a)](function(_0x35021c){const _0x353f1b=_0x15e022;_0xa551ad['users']=_0x35021c[_0x353f1b(0x28b8)]||[];})[_0x15e022(0x20cd)](function(_0x48e885){const _0x1dceed=_0x15e022;_0x29db82[_0x1dceed(0x1bd0)]({'title':_0x48e885['status']?'API:'+_0x48e885[_0x1dceed(0x10b3)]+'\x20-\x20'+_0x48e885['statusText']:_0x1dceed(0x112b),'msg':_0x48e885[_0x1dceed(0x1c52)]?JSON['stringify'](_0x48e885['data']):_0x48e885[_0x1dceed(0x2915)]()});});function _0x148329(_0x23c647,_0x2ef4dd,_0x37cffd,_0x2ec433,_0x3035cc){const _0x203d3a=_0x15e022,_0x50e58b={'upperTitle':![],'lowerTitle':!![],'properties':!![],'propertiesIcon':_0x203d3a(0x1564),'propertiesList':['format',_0x203d3a(0x1a91),_0x203d3a(0xb77),_0x203d3a(0xf13),_0x203d3a(0x1df0),_0x203d3a(0x2378)],'extraData':[{'model':'User','values':[{'key':_0x203d3a(0x2494),'text':'agentname'}]}]},_0x4fd376={};_0x4fd376[_0x203d3a(0xb5a)]=_0x203d3a(0x24f7),_0x4fd376[_0x203d3a(0x2494)]=_0x203d3a(0x3f5),_0x4fd376['model']=_0x203d3a(0x24f7),_0x4fd376[_0x203d3a(0x62f)]='screenRecording',_0x2ec433=String(_0x2ec433);const _0xaa5124=String(_0x37cffd);console[_0x203d3a(0x9b4)](_0x203d3a(0x2038),String(_0x37cffd)),_0x350723['show']({'controller':_0x203d3a(0x1920),'controllerAs':'vm','templateUrl':_0x5abe11,'parent':angular[_0x203d3a(0x1f81)](_0x1ca871[_0x203d3a(0xb49)]),'targetEvent':_0x2ef4dd,'clickOutsideToClose':!![],'locals':{'recording':_0x23c647,'recordings':_0xa551ad[_0x203d3a(0x3f5)][_0x203d3a(0x28b8)],'license':_0xa551ad[_0x203d3a(0x1947)],'setting':null,'item':_0x4fd376,'actionOptions':_0x50e58b,'label':_0x2ec433,'varPath':_0xaa5124,'elementTag':String(_0x3035cc)}});}function _0x522106(_0x281481){const _0x41f520=_0x15e022;let _0x3616f2=![];const _0x4894fe=!_0x28c606()[_0x41f520(0x28d7)](_0x281481[_0x41f520(0x1c2c)])?_0x281481[_0x41f520(0x1c2c)]:_0x281481[_0x41f520(0x1096)][_0x41f520(0x28b2)](_0x281481['value'][_0x41f520(0x269c)]('.'));_0x3616f2=_0x4894fe===_0x41f520(0x431)?!![]:![];const _0x2d4d0a=_0x281481[_0x41f520(0x1096)][_0x41f520(0x269c)]('/')>-0x1?_0x281481[_0x41f520(0x1096)][_0x41f520(0x28b2)](_0x281481['value'][_0x41f520(0x269c)]('/')+0x1):_0x281481[_0x41f520(0x1096)][_0x41f520(0x269c)]('\x5c')>-0x1?_0x281481['value'][_0x41f520(0x28b2)](_0x281481[_0x41f520(0x1096)]['lastIndexOf']('\x5c')+0x1):_0x281481['value'];return _0x36ae59[_0x41f520(0x24f7)][_0x41f520(0x19b3)]({'id':_0x281481['id']})[_0x41f520(0x15e7)][_0x41f520(0x64a)](function(_0x510f8d){const _0x1f65a8=_0x41f520,_0x262e35=[_0x510f8d[_0x1f65a8(0x5a9)]];let _0x3446b4='download';const _0xea9dae=new Blob(_0x262e35,{'type':_0x510f8d['type']});_0x3446b4=_0x2d4d0a;const _0x4055f3=window[_0x1f65a8(0x123f)][_0x1f65a8(0x2978)]('a');_0x4055f3[_0x1f65a8(0x1280)](_0x1f65a8(0x25d0),URL['createObjectURL'](_0xea9dae)),_0x4055f3['setAttribute']('download',_0x3446b4),document['body'][_0x1f65a8(0x2661)](_0x4055f3),_0x4055f3['click']();})[_0x41f520(0x20cd)](function(_0x1fd1a0){const _0x46402b=_0x41f520;if(_0x1fd1a0[_0x46402b(0x1c52)]&&_0x1fd1a0['data']['errors']&&_0x1fd1a0[_0x46402b(0x1c52)][_0x46402b(0xbae)][_0x46402b(0x1b9e)])for(let _0x117b2a=0x0;_0x117b2a<_0x1fd1a0[_0x46402b(0x1c52)][_0x46402b(0xbae)][_0x46402b(0x1b9e)];_0x117b2a++){_0x29db82['error']({'title':_0x1fd1a0[_0x46402b(0x1c52)][_0x46402b(0xbae)][_0x117b2a][_0x46402b(0x2185)],'msg':_0x1fd1a0[_0x46402b(0x1c52)][_0x46402b(0xbae)][_0x117b2a][_0x46402b(0x18ca)]});}else{if(String(_0x1fd1a0['status'])===_0x46402b(0xfed)&&_0x3616f2===![])_0x29db82['info']({'title':_0xa73b89[_0x46402b(0x2292)](_0x46402b(0x2735)),'msg':_0xa73b89['instant'](_0x46402b(0x1d77))});else String(_0x1fd1a0['status'])===_0x46402b(0xfed)?_0x29db82[_0x46402b(0x772)]({'title':_0xa73b89[_0x46402b(0x2292)](_0x46402b(0x2735)),'msg':_0xa73b89[_0x46402b(0x2292)]('APP.FILE_NOT_FOUND')}):_0x29db82[_0x46402b(0x1bd0)]({'title':_0x1fd1a0[_0x46402b(0x10b3)]?_0x46402b(0x575)+_0x1fd1a0['status']+'\x20-\x20'+_0x1fd1a0[_0x46402b(0x2115)]:_0x46402b(0x12fd),'msg':_0x1fd1a0[_0x46402b(0x1c52)]?JSON[_0x46402b(0x2317)](_0x1fd1a0['data']['message']):_0x1fd1a0[_0x46402b(0x2915)]()});}});}function _0x158ace(_0x35f4bd,_0x333d8e){const _0x3aaf8b=_0x15e022,_0x21a696=_0x350723[_0x3aaf8b(0x856)]()[_0x3aaf8b(0x2021)](_0x3aaf8b(0x1231)+_0x28c606()[_0x3aaf8b(0xc01)]('screenRecording')+'?')[_0x3aaf8b(0x33a)](_0x3aaf8b(0x50b)+(_0x35f4bd[_0x3aaf8b(0x2494)]||_0x3aaf8b(0x24f7))+_0x3aaf8b(0x26d0)+_0x3aaf8b(0x4b8))['ariaLabel'](_0x3aaf8b(0x1989))[_0x3aaf8b(0x2283)](_0x333d8e)['ok']('OK')[_0x3aaf8b(0x101a)](_0x3aaf8b(0x18fd));_0x350723[_0x3aaf8b(0xa60)](_0x21a696)[_0x3aaf8b(0x64a)](function(){_0x5c921f(_0x35f4bd);},function(){const _0x5e55cc=_0x3aaf8b;console[_0x5e55cc(0x9b4)](_0x5e55cc(0x18fd));});}let _0x3d5c36=!![],_0x15a333=0x1;_0x159af4[_0x15e022(0xc62)](_0x15e022(0x1cb9),function(_0x573cf0,_0x3fda1b){const _0x329aa8=_0x15e022;_0x3d5c36?_0x44dd96(function(){_0x3d5c36=![];}):(!_0x3fda1b&&(_0x15a333=_0xa551ad['query'][_0x329aa8(0xc72)]),_0x573cf0!==_0x3fda1b&&(_0xa551ad['query'][_0x329aa8(0xc72)]=0x1),!_0x573cf0&&(_0xa551ad[_0x329aa8(0x289a)][_0x329aa8(0xc72)]=_0x15a333),_0xa551ad[_0x329aa8(0x92f)]());});function _0x21743c(_0x2f8ff6){const _0x1a57fe=_0x15e022,_0x184182=Math[_0x1a57fe(0x1e0d)](_0x2f8ff6/0x3e8%0x3c),_0x56800d=Math[_0x1a57fe(0x1e0d)](_0x2f8ff6/(0x3e8*0x3c)%0x3c),_0xd721e0=Math[_0x1a57fe(0x1e0d)](_0x2f8ff6/(0x3e8*0x3c*0x3c)%0x18),_0x38441f=_0xd721e0<0xa?'0'+String(_0xd721e0):String(_0xd721e0),_0x2b007e=_0x56800d<0xa?'0'+String(_0x56800d):String(_0x56800d),_0x130624=_0x184182<0xa?'0'+String(_0x184182):String(_0x184182);return _0x38441f+':'+_0x2b007e+':'+_0x130624;}function _0x29f68c(_0x2f151f){_0xa551ad['screenRecordings']=_0x2f151f||{'count':0x0,'rows':[]};}function _0x3e2540(){const _0xa3b022=_0x15e022;_0xa551ad['query'][_0xa3b022(0x24f9)]=(_0xa551ad[_0xa3b022(0x289a)][_0xa3b022(0xc72)]-0x1)*_0xa551ad[_0xa3b022(0x289a)][_0xa3b022(0x25bb)],_0x635d43['hasRole'](_0xa3b022(0x333))?_0xa551ad[_0xa3b022(0x1713)]=_0x36ae59['screenRecording'][_0xa3b022(0x896)](_0xa551ad[_0xa3b022(0x289a)],_0x29f68c)[_0xa3b022(0x15e7)]:(_0xa551ad[_0xa3b022(0x289a)]['id']=_0xa551ad[_0xa3b022(0x16a8)]['id'],_0xa551ad['query'][_0xa3b022(0xa21)]='ScreenRecordings',_0xa551ad[_0xa3b022(0x1713)]=_0x36ae59[_0xa3b022(0x16a8)][_0xa3b022(0x2565)](_0xa551ad[_0xa3b022(0x289a)],_0x29f68c)[_0xa3b022(0x15e7)]);}function _0x53f25e(_0xb52b23,_0x23f9e7){const _0xfe4253=_0x15e022;_0x350723[_0xfe4253(0xa60)]({'controller':_0xfe4253(0x10a5),'controllerAs':'vm','templateUrl':_0xae1d78,'parent':angular[_0xfe4253(0x1f81)](_0x1ca871['body']),'targetEvent':_0xb52b23,'clickOutsideToClose':!![],'locals':{'screenRecording':_0x23f9e7,'screenRecordings':_0xa551ad[_0xfe4253(0x3f5)][_0xfe4253(0x28b8)],'license':_0xa551ad[_0xfe4253(0x1947)],'setting':_0xa551ad[_0xfe4253(0x28d6)],'crudPermissions':_0xa551ad['crudPermissions']}});}function _0x5c921f(_0x371913){const _0x4a2555=_0x15e022;_0x36ae59['screenRecording']['delete']({'id':_0x371913['id']})[_0x4a2555(0x15e7)][_0x4a2555(0x64a)](function(){const _0xa2116=_0x4a2555;_0x28c606()[_0xa2116(0x21c7)](_0xa551ad['screenRecordings'][_0xa2116(0x28b8)],{'id':_0x371913['id']}),_0xa551ad[_0xa2116(0x3f5)][_0xa2116(0xb90)]-=0x1,!_0xa551ad[_0xa2116(0x3f5)][_0xa2116(0x28b8)][_0xa2116(0x1b9e)]&&_0xa551ad[_0xa2116(0x92f)](),_0x29db82[_0xa2116(0x1339)]({'title':_0x28c606()['startCase'](_0xa2116(0x24f7))+'\x20deleted!','msg':_0x371913[_0xa2116(0x2494)]?_0x371913[_0xa2116(0x2494)]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x3f8894){const _0x2502a3=_0x4a2555;if(_0x3f8894[_0x2502a3(0x1c52)]&&_0x3f8894[_0x2502a3(0x1c52)][_0x2502a3(0xbae)]&&_0x3f8894[_0x2502a3(0x1c52)][_0x2502a3(0xbae)][_0x2502a3(0x1b9e)]){_0xa551ad[_0x2502a3(0xbae)]=_0x3f8894[_0x2502a3(0x1c52)][_0x2502a3(0xbae)]||[{'message':_0x3f8894[_0x2502a3(0x2915)](),'type':_0x2502a3(0x200a)}];for(let _0x3f526d=0x0;_0x3f526d<_0x3f8894['data'][_0x2502a3(0xbae)]['length'];_0x3f526d++){_0x29db82[_0x2502a3(0x1bd0)]({'title':_0x3f8894[_0x2502a3(0x1c52)]['errors'][_0x3f526d][_0x2502a3(0x2185)],'msg':_0x3f8894[_0x2502a3(0x1c52)]['errors'][_0x3f526d][_0x2502a3(0x18ca)]});}}else _0x29db82['error']({'title':_0x3f8894[_0x2502a3(0x10b3)]?_0x2502a3(0x575)+_0x3f8894[_0x2502a3(0x10b3)]+_0x2502a3(0x21db)+_0x3f8894[_0x2502a3(0x2115)]:_0x2502a3(0x200a),'msg':_0x3f8894[_0x2502a3(0x1c52)]?JSON[_0x2502a3(0x2317)](_0x3f8894[_0x2502a3(0x1c52)][_0x2502a3(0x18ca)]):_0x3f8894[_0x2502a3(0x18ca)]||_0x3f8894[_0x2502a3(0x2915)]()});});}function _0x2e7450(){const _0x1bf502=_0x15e022,_0x2bafcb=angular[_0x1bf502(0x289e)](_0xa551ad[_0x1bf502(0x10bb)]);return _0xa551ad[_0x1bf502(0x10bb)]=[],_0x2bafcb;}function _0x792be6(_0x1d94a0){const _0x342a32=_0x15e022,_0x51e6fe=_0x350723[_0x342a32(0x856)]()['title'](_0x342a32(0x23dc))[_0x342a32(0x33a)](''+_0xa551ad[_0x342a32(0x10bb)][_0x342a32(0x1b9e)]+_0x342a32(0x163e)+_0x342a32(0x4b8))[_0x342a32(0x213e)](_0x342a32(0xd2a))['targetEvent'](_0x1d94a0)['ok']('OK')[_0x342a32(0x101a)]('CANCEL');_0x350723[_0x342a32(0xa60)](_0x51e6fe)[_0x342a32(0x64a)](function(){const _0xb9fa2d=_0x342a32;_0xa551ad[_0xb9fa2d(0x10bb)][_0xb9fa2d(0x1397)](function(_0xc6165c){_0x5c921f(_0xc6165c);}),_0xa551ad['selectedScreenRecordings']=[];});}function _0x23705f(){const _0x5ece34=_0x15e022;_0xa551ad[_0x5ece34(0x10bb)]=[];}function _0x2446ca(){const _0x21de93=_0x15e022;_0xa551ad['selectedScreenRecordings']=_0xa551ad[_0x21de93(0x3f5)][_0x21de93(0x28b8)];}}const _0x1255d1=_0xcb9bd2;;_0x1e2cea[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad),_0x49a1e3(0x21f8)];function _0x1e2cea(_0x5c6f77,_0x36c468){const _0x50ed56=_0x49a1e3;_0x5c6f77['state'](_0x50ed56(0x2693),{'abstract':!![],'url':_0x50ed56(0x23ce)})['state'](_0x50ed56(0xaa6),{'url':_0x50ed56(0x994),'views':{'content@app':{'templateUrl':_0xb8cdda,'controller':_0x50ed56(0x1ba6)}},'resolve':{'screenRecordings':['apiResolver',_0x50ed56(0xdcf),_0x50ed56(0x1214),function(_0x1e4f1f,_0x5c8492,_0x467531){const _0x5aae7d=_0x50ed56;return _0x5c8492['hasRole'](_0x5aae7d(0x333))?_0x1e4f1f[_0x5aae7d(0x1268)](_0x5aae7d(0x1ba9),{'fields':_0x5aae7d(0x1a70),'createdAt':_0x467531[_0x5aae7d(0x1b72)](),'includeAll':'true','sort':_0x5aae7d(0x260c),'limit':0xa,'offset':0x0}):_0x1e4f1f['resolve'](_0x5aae7d(0x1758),{'id':_0x5c8492[_0x5aae7d(0x808)]()[_0x5aae7d(0x21ac)],'section':'ScreenRecordings','fields':_0x5aae7d(0x1a70),'createdAt':_0x467531[_0x5aae7d(0x1b72)](),'includeAll':_0x5aae7d(0x1685),'sort':_0x5aae7d(0x260c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x50ed56(0x107c),_0x50ed56(0xdcf),function(_0x496cfe,_0x4d5a0b){const _0x393fb8=_0x50ed56;return _0x4d5a0b['hasRole'](_0x393fb8(0x333))?null:_0x496cfe[_0x393fb8(0x1268)](_0x393fb8(0x6e3),{'fields':_0x393fb8(0x10d2),'id':_0x4d5a0b['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x50ed56(0x107c),_0x50ed56(0xdcf),function(_0x54fdb5,_0x267fb4){const _0x242940=_0x50ed56;return _0x267fb4[_0x242940(0x4de)](_0x242940(0x333))?null:_0x54fdb5[_0x242940(0x1268)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x267fb4[_0x242940(0x808)]()[_0x242940(0x21ac)],'sectionId':0x7d1});}]},'authenticate':!![],'permissionId':0x7d1,'bodyClass':_0x50ed56(0x374)}),_0x36c468[_0x50ed56(0x1bde)](_0x50ed56(0x72c));}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x2693),[_0x49a1e3(0x8d2),'ngPassword','md.data.table',_0x49a1e3(0x891),_0x49a1e3(0x2516),_0x49a1e3(0x1b6c),'ng-sortable',_0x49a1e3(0x1a87),_0x49a1e3(0x1610),'mdPickers',_0x49a1e3(0x1a59),'mwFormViewer','mwFormUtils',_0x49a1e3(0x1bd1),_0x49a1e3(0x1b5f),_0x49a1e3(0x1cff),_0x49a1e3(0x1046),_0x49a1e3(0x1acd),_0x49a1e3(0xc48),_0x49a1e3(0x28dd)])[_0x49a1e3(0x3d3)](_0x1e2cea)[_0x49a1e3(0x38e)](_0x49a1e3(0x10a5),_0x2df339)['controller'](_0x49a1e3(0x1920),_0x46e647)[_0x49a1e3(0x38e)]('ScreenRecordingsController',_0x1255d1);;const _0x26f6b5=_0x2e4a48['p']+'src/js/modules/main/apps/whatsapp/views/realtime/realtime.html/realtime.html';;const _0x545e1b=_0x2e4a48['p']+_0x49a1e3(0x22be);;const _0x267624=_0x2e4a48['p']+_0x49a1e3(0x1a6c);;_0x43a7dd['$inject']=[_0x49a1e3(0x1674),'$q',_0x49a1e3(0x20d4),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x1ce1),_0x49a1e3(0x23d1),_0x49a1e3(0xd77),'rpcAgents',_0x49a1e3(0xa19),_0x49a1e3(0x633),'toasty',_0x49a1e3(0x1f8c),_0x49a1e3(0x16a8),'userProfileSection',_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x1239)];function _0x43a7dd(_0x175b72,_0x5a6516,_0x3ac71c,_0x4054e8,_0x484c9e,_0x57da38,_0x2c31db,_0x16dff6,_0x12f0fa,_0x2fa71c,_0x27c9d2,_0x329cbe,_0x1b9793,_0x4a9ae1,_0x44076f,_0x53cc81,_0x2ea130,_0x5c61f1){const _0x3959af=_0x49a1e3,_0x2df9bd=this,_0x5c0150=[_0x3959af(0x1c79),_0x3959af(0x1eab),'lastLoginAt',_0x3959af(0x2148),_0x3959af(0x84f),_0x3959af(0x2148),_0x3959af(0xe2f),_0x3959af(0x81e),_0x3959af(0x2248),_0x3959af(0x1451),_0x3959af(0x292),_0x3959af(0xf2d),_0x3959af(0x1f34),_0x3959af(0x211),_0x3959af(0x11a4),_0x3959af(0x80a),_0x3959af(0x1561),_0x3959af(0x8cb),_0x3959af(0x708),_0x3959af(0x12c5),_0x3959af(0x1839),_0x3959af(0x1b1d),'openchannelCurrentCapacity',_0x3959af(0x9ec),_0x3959af(0x41d),_0x3959af(0x19a8),_0x3959af(0x6eb),_0x3959af(0x363),_0x3959af(0x11d7),'mailStatus',_0x3959af(0x2431),_0x3959af(0x22a4),_0x3959af(0x2014),_0x3959af(0x2783),_0x3959af(0x2642),'openchannelStatusTime',_0x3959af(0x1f78),_0x3959af(0x24a3),_0x3959af(0x17fb),_0x3959af(0x16c8),_0x3959af(0x17f4),_0x3959af(0x1e4e),_0x3959af(0xeae),_0x3959af(0x2921),_0x3959af(0x52c),_0x3959af(0x20d3)],_0x1e73f6=[_0x3959af(0x2248),'openchannelPause',_0x3959af(0x292),_0x3959af(0xf2d),_0x3959af(0x1f34),'faxPause',_0x3959af(0x11a4),'online'];_0x2df9bd[_0x3959af(0x1d3d)]=_0x53cc81['getCurrentUser'](),_0x2df9bd['availableStates']=[_0x3959af(0xf8e),_0x3959af(0x7be),_0x3959af(0x94d),'onhold',_0x3959af(0x181)],_0x2df9bd[_0x3959af(0x23d1)]=_0x2c31db||{'count':0x0,'rows':[]},_0x2df9bd[_0x3959af(0x1947)]=_0x2ea130,_0x2df9bd['userProfile']=_0x4a9ae1,_0x2df9bd[_0x3959af(0x16b2)]=_0x44076f&&_0x44076f[_0x3959af(0xb90)]==0x1?_0x44076f['rows'][0x0]:null,_0x2df9bd[_0x3959af(0x402)]=_0x53cc81[_0x3959af(0xa7e)](_0x2df9bd[_0x3959af(0x16b2)]?_0x2df9bd[_0x3959af(0x16b2)]['crudPermissions']:null),_0x2df9bd['agents']=_0x16dff6?_0x28c606()[_0x3959af(0x161e)](_0x16dff6[_0x3959af(0x28b8)]?_0x16dff6[_0x3959af(0x28b8)]:[],'id'):{},_0x2df9bd[_0x3959af(0x287f)]=_0x12f0fa?_0x28c606()[_0x3959af(0x161e)](_0x12f0fa['rows']?_0x12f0fa[_0x3959af(0x28b8)]:[],'id'):{},_0x2df9bd[_0x3959af(0x2d8)]={},_0x2df9bd[_0x3959af(0x2789)]=![],_0x2df9bd['order']=[],_0x2df9bd['agentInternal']={};for(const _0x1ffb57 in _0x2df9bd[_0x3959af(0xd77)]){typeof _0x2df9bd[_0x3959af(0xd77)][_0x1ffb57]!=='undefined'&&(_0x2df9bd[_0x3959af(0xd77)][_0x1ffb57]['init']=!![]);}_0x2df9bd[_0x3959af(0x289a)]={'limit':0xa,'page':0x1,'order':_0x3959af(0x15c),'globalStatusFilter':'','pauseTypeFilter':''},_0x2df9bd[_0x3959af(0xad9)]=_0x4f76f1,_0x2df9bd['queueAdd']=_0x7c4225,_0x2df9bd[_0x3959af(0x2826)]=_0xdff4eb,_0x2df9bd[_0x3959af(0xab9)]=_0xfb8ba3,_0x2df9bd[_0x3959af(0x1133)]=_0xaccc37,_0x2df9bd[_0x3959af(0xb1c)]=_0x2bde60,_0x2df9bd[_0x3959af(0xba5)]=_0x1c722c,_0x2df9bd[_0x3959af(0x54e)]=_0x5014ab,_0x2df9bd['checkPause']=_0x29bd0c,_0x2df9bd[_0x3959af(0x2744)]=_0x4919fa,_0x2df9bd[_0x3959af(0x249c)]=_0x222f65,_0x2df9bd[_0x3959af(0x2853)]=_0x3b2d48,_0x2df9bd['onInit']=_0x2ab2ee,_0x2df9bd[_0x3959af(0x1a7c)]=_0x5817f1,_0x2df9bd[_0x3959af(0x125b)]=_0x2ffa58,_0x2df9bd[_0x3959af(0x24f7)]=_0x4e2a24,_0x27c9d2['on']('user:save',_0x2df9bd[_0x3959af(0x249c)]),_0x27c9d2['on'](_0x3959af(0x130f),_0x2df9bd[_0x3959af(0x2853)]),_0x27c9d2['on'](_0x3959af(0x197a),_0x2df9bd[_0x3959af(0x1a7c)]),_0x27c9d2['on']('user:agentcomplete',_0x2df9bd['onComplete']),_0x2ab2ee();let _0x69370=_0x5c61f1(function(){const _0x325f33=_0x3959af;_0x2df9bd[_0x325f33(0x2789)]&&(_0x2df9bd[_0x325f33(0x2789)]=![],_0x2ab2ee());},0x3e7);function _0x2ab2ee(){const _0x23ec2c=_0x3959af;_0x2df9bd[_0x23ec2c(0x2789)]=![];const _0x6a786=_0x5a6516[_0x23ec2c(0x122)]();_0x2df9bd[_0x23ec2c(0x1713)]=_0x6a786[_0x23ec2c(0x1713)],_0x2df9bd['filteredAgents']=[],_0x2df9bd[_0x23ec2c(0x1997)]=[],_0x28c606()[_0x23ec2c(0x1789)](_0x2df9bd[_0x23ec2c(0xd77)],function(_0x5dbff5,_0x5e7b0c){const _0x3d9706=_0x23ec2c;_0x2df9bd[_0x3d9706(0x287f)][_0x5e7b0c]&&_0x28c606()['merge'](_0x5dbff5,_0x28c606()[_0x3d9706(0x27bb)](_0x28c606()[_0x3d9706(0xd09)](_0x2df9bd['rpcAgents'][_0x5e7b0c],_0x1e73f6),_0x5c0150)),_0x1c722c(_0x5dbff5),_0x5dbff5[_0x3d9706(0x1eab)]?(_0x2df9bd[_0x3d9706(0x2202)][_0x3d9706(0x1954)](_0x5dbff5),_0x2df9bd['agentInternal'][_0x5dbff5['internal']]=_0x5e7b0c):_0x5dbff5['globalStatusTime']=_0x28c606()[_0x3d9706(0x1251)](_0x2ac33a()()[_0x3d9706(0x1c2c)]('x'));});_0x2df9bd[_0x23ec2c(0x289a)][_0x23ec2c(0x1de8)]&&_0x28c606()[_0x23ec2c(0x21c7)](_0x2df9bd[_0x23ec2c(0x2202)],function(_0x282f17){const _0x5da707=_0x23ec2c;return _0x282f17[_0x5da707(0x876)]!==_0x2df9bd['query']['globalStatusFilter'];});_0x2df9bd['query'][_0x23ec2c(0x1421)]&&_0x28c606()[_0x23ec2c(0x21c7)](_0x2df9bd[_0x23ec2c(0x2202)],function(_0x1dff19){const _0x32a7dc=_0x23ec2c;return _0x1dff19['pauseType']!==_0x2df9bd[_0x32a7dc(0x289a)]['pauseTypeFilter'];});_0x2df9bd[_0x23ec2c(0x289a)]['filter']&&_0x28c606()[_0x23ec2c(0x21c7)](_0x2df9bd[_0x23ec2c(0x2202)],function(_0x489055){const _0x25d94a=_0x23ec2c;return _0x489055['fullname'][_0x25d94a(0x2554)]()[_0x25d94a(0x1b28)](_0x2df9bd['query'][_0x25d94a(0xcec)]['toLowerCase']())<0x0;});_0x2df9bd[_0x23ec2c(0x2202)]=_0x4d23bc(_0x2df9bd[_0x23ec2c(0x2202)]);const _0x4335d4=(_0x2df9bd[_0x23ec2c(0x289a)][_0x23ec2c(0xc72)]-0x1)*_0x2df9bd[_0x23ec2c(0x289a)]['limit'];_0x2df9bd[_0x23ec2c(0x2d8)]=_0x28c606()[_0x23ec2c(0xfeb)](_0x2df9bd[_0x23ec2c(0x2202)],_0x4335d4)[_0x23ec2c(0x142e)](0x0,_0x2df9bd['query'][_0x23ec2c(0x25bb)]);for(let _0xbef912=0x0;_0xbef912<_0x2df9bd[_0x23ec2c(0x2d8)]['length'];_0xbef912+=0x1){_0x2df9bd['order']['push'](_0x2df9bd[_0x23ec2c(0x2d8)][_0xbef912]['id']);}_0x6a786[_0x23ec2c(0x1268)](),_0x2df9bd[_0x23ec2c(0x2789)]=!![];}function _0x222f65(_0x11508d){const _0x1a8cf4=_0x3959af;_0x2df9bd[_0x1a8cf4(0xd77)][_0x11508d['id']]&&(_0x28c606()[_0x1a8cf4(0x14fe)](_0x2df9bd[_0x1a8cf4(0xd77)][_0x11508d['id']],_0x28c606()[_0x1a8cf4(0x27bb)](_0x28c606()[_0x1a8cf4(0xd09)](_0x11508d,_0x1e73f6),_0x5c0150)),_0x28c606()[_0x1a8cf4(0x14fe)](_0x2df9bd['rpcAgents'][_0x11508d['id']],_0x28c606()['pick'](_0x28c606()[_0x1a8cf4(0xd09)](_0x11508d,_0x1e73f6),_0x5c0150)),_0x1c722c(_0x2df9bd[_0x1a8cf4(0xd77)][_0x11508d['id']]));}function _0x3b2d48(_0xdf51d){const _0x257f1f=_0x3959af;_0x2df9bd[_0x257f1f(0xd77)][_0xdf51d['id']]&&(_0x28c606()['merge'](_0x2df9bd['agents'][_0xdf51d['id']],_0x28c606()['pick'](_0xdf51d,_0x5c0150)),_0x28c606()[_0x257f1f(0x14fe)](_0x2df9bd['rpcAgents'][_0xdf51d['id']],_0x28c606()[_0x257f1f(0x27bb)](_0xdf51d,_0x5c0150)),_0xdf51d[_0x257f1f(0x2148)]&&(_0x2df9bd[_0x257f1f(0xd77)][_0xdf51d['id']][_0x257f1f(0x14f5)]=_0xdf51d[_0x257f1f(0x2148)],_0x2df9bd[_0x257f1f(0x287f)][_0xdf51d['id']][_0x257f1f(0x14f5)]=_0xdf51d['lastPauseAt']),_0x1c722c(_0x2df9bd[_0x257f1f(0xd77)][_0xdf51d['id']]));}function _0x5817f1(_0x8582a){const _0x71add5=_0x3959af;_0x2df9bd[_0x71add5(0xd77)][_0x2df9bd['agentInternal'][_0x8582a[_0x71add5(0xf65)]]]&&(_0x28c606()[_0x71add5(0x14fe)](_0x2df9bd[_0x71add5(0xd77)][_0x2df9bd[_0x71add5(0xf0f)][_0x8582a['destaccountcode']]],_0x28c606()[_0x71add5(0x27bb)](_0x8582a,[_0x71add5(0x1e4e),_0x71add5(0xeae)])),_0x28c606()[_0x71add5(0x14fe)](_0x2df9bd[_0x71add5(0x287f)][_0x2df9bd['agentInternal'][_0x8582a['destaccountcode']]],_0x28c606()[_0x71add5(0x27bb)](_0x8582a,[_0x71add5(0x1e4e),_0x71add5(0xeae)])));}function _0x2ffa58(_0x27cecc){const _0x249ddd=_0x3959af;_0x2df9bd[_0x249ddd(0xd77)][_0x2df9bd['agentInternal'][_0x27cecc[_0x249ddd(0xf65)]]]&&(_0x2df9bd[_0x249ddd(0xd77)][_0x2df9bd[_0x249ddd(0xf0f)][_0x27cecc[_0x249ddd(0xf65)]]]=_0x28c606()[_0x249ddd(0xd09)](_0x2df9bd[_0x249ddd(0xd77)][_0x2df9bd['agentInternal'][_0x27cecc[_0x249ddd(0xf65)]]],['queue',_0x249ddd(0xeae)]),_0x2df9bd['rpcAgents'][_0x2df9bd[_0x249ddd(0xf0f)][_0x27cecc[_0x249ddd(0xf65)]]]=_0x28c606()[_0x249ddd(0xd09)](_0x2df9bd[_0x249ddd(0x287f)][_0x2df9bd[_0x249ddd(0xf0f)][_0x27cecc[_0x249ddd(0xf65)]]],[_0x249ddd(0x1e4e),_0x249ddd(0xeae)]));}function _0x4f76f1(_0x2887b4){const _0x155422=_0x3959af;return _0x2fa71c['user']['logout']({'id':_0x2887b4['id'],'device':_0x155422(0x252e),'agent_id':_0x2887b4['id'],'agent_name':_0x2887b4['name']})[_0x155422(0x15e7)][_0x155422(0x64a)](function(){const _0x6f6814=_0x155422;_0x329cbe['success']({'title':_0x6f6814(0x2927),'msg':_0x2887b4['fullname']+'\x20\x20properly\x20logout'}),_0x2df9bd[_0x6f6814(0xd77)][_0x2887b4['id']]&&(_0x2df9bd[_0x6f6814(0xd77)][_0x2887b4['id']][_0x6f6814(0x1eab)]=![]),_0x2df9bd[_0x6f6814(0x287f)][_0x2887b4['id']]&&(_0x2df9bd[_0x6f6814(0x287f)][_0x2887b4['id']][_0x6f6814(0x1eab)]=![]),_0x2ab2ee();})[_0x155422(0x20cd)](function(_0x5e1eda){const _0x44756d=_0x155422;_0x329cbe[_0x44756d(0x1bd0)]({'title':_0x5e1eda['status']?_0x44756d(0x575)+_0x5e1eda[_0x44756d(0x10b3)]+_0x44756d(0x21db)+_0x5e1eda[_0x44756d(0x2115)]:_0x44756d(0x180),'msg':_0x5e1eda[_0x44756d(0x1c52)]?JSON[_0x44756d(0x2317)](_0x5e1eda['data']['message']):_0x5e1eda[_0x44756d(0x2915)]()});});}function _0xdff4eb(_0x4d4fb7,_0xf1da35){const _0x2ca3a0=_0x3959af;return _0x2fa71c[_0x2ca3a0(0x2e8)][_0x2ca3a0(0x2826)]({'id':_0x4d4fb7['id'],'type':_0xf1da35})[_0x2ca3a0(0x15e7)][_0x2ca3a0(0x64a)](function(_0x56ce51){const _0x5a047c=_0x2ca3a0;_0x2df9bd[_0x5a047c(0xd77)][_0x4d4fb7['id']]&&_0x28c606()['merge'](_0x2df9bd['agents'][_0x4d4fb7['id']],_0x28c606()['pick'](_0x56ce51,_0x5c0150)),_0x2df9bd[_0x5a047c(0x287f)][_0x4d4fb7['id']]&&_0x28c606()[_0x5a047c(0x14fe)](_0x2df9bd[_0x5a047c(0x287f)][_0x4d4fb7['id']],_0x28c606()[_0x5a047c(0x27bb)](_0x56ce51,_0x5c0150)),_0x1c722c(_0x2df9bd[_0x5a047c(0xd77)][_0x4d4fb7['id']]);})[_0x2ca3a0(0x20cd)](function(_0x46362f){const _0xdf7d0e=_0x2ca3a0;_0x329cbe[_0xdf7d0e(0x1bd0)]({'title':_0x46362f['status']?_0xdf7d0e(0x575)+_0x46362f['status']+_0xdf7d0e(0x21db)+_0x46362f[_0xdf7d0e(0x2115)]:_0xdf7d0e(0x180),'msg':_0x46362f['data']?JSON['stringify'](_0x46362f[_0xdf7d0e(0x1c52)][_0xdf7d0e(0x18ca)]):_0x46362f[_0xdf7d0e(0x2915)]()});});}function _0xfb8ba3(_0x3b369f){const _0x152a0d=_0x3959af;return _0x2fa71c['user']['unpause']({'id':_0x3b369f['id']})['$promise'][_0x152a0d(0x64a)](function(_0x28f6c4){const _0x41d8fe=_0x152a0d;_0x2df9bd['agents'][_0x3b369f['id']]&&_0x28c606()['merge'](_0x2df9bd[_0x41d8fe(0xd77)][_0x3b369f['id']],_0x28c606()[_0x41d8fe(0x27bb)](_0x28f6c4,_0x5c0150)),_0x2df9bd[_0x41d8fe(0x287f)][_0x3b369f['id']]&&_0x28c606()[_0x41d8fe(0x14fe)](_0x2df9bd[_0x41d8fe(0x287f)][_0x3b369f['id']],_0x28c606()[_0x41d8fe(0x27bb)](_0x28f6c4,_0x5c0150)),_0x1c722c(_0x2df9bd[_0x41d8fe(0xd77)][_0x3b369f['id']]);})[_0x152a0d(0x20cd)](function(_0x50ed5b){const _0x3f7b1b=_0x152a0d;_0x329cbe[_0x3f7b1b(0x1bd0)]({'title':_0x50ed5b[_0x3f7b1b(0x10b3)]?_0x3f7b1b(0x575)+_0x50ed5b[_0x3f7b1b(0x10b3)]+_0x3f7b1b(0x21db)+_0x50ed5b[_0x3f7b1b(0x2115)]:_0x3f7b1b(0x180),'msg':_0x50ed5b[_0x3f7b1b(0x1c52)]?JSON['stringify'](_0x50ed5b[_0x3f7b1b(0x1c52)][_0x3f7b1b(0x18ca)]):_0x50ed5b['toString']()});});}function _0xaccc37(_0x3007e4){const _0x5f7a78=_0x3959af;_0x4054e8[_0x5f7a78(0xa60)](_0x4054e8[_0x5f7a78(0x2540)]()[_0x5f7a78(0x1945)](!![])[_0x5f7a78(0x2021)](_0x5f7a78(0xe68))[_0x5f7a78(0x33a)]('
TODO\x20legend\x20status\x20+\x20state
')['ok']('Ok')[_0x5f7a78(0x2283)](_0x3007e4));}function _0x7c4225(_0x1c49d6,_0x5f264e){const _0x299722=_0x3959af;_0x4054e8[_0x299722(0xa60)]({'controller':_0x299722(0x5a7),'controllerAs':'vm','templateUrl':_0x5eb675,'parent':angular[_0x299722(0x1f81)](_0x484c9e[_0x299722(0xb49)]),'targetEvent':_0x5f264e,'clickOutsideToClose':!![],'locals':{'agent':_0x1c49d6,'agents':[],'channel':_0x299722(0x1a29),'direction':_0x299722(0x12a4),'crudPermissions':_0x2df9bd['crudPermissions']}});}function _0x5014ab(_0x5e50f8){const _0x57070f=_0x3959af;return _0x5e50f8==='pause'||_0x5e50f8===_0x57070f(0x1bcc);}function _0x29bd0c(_0x1be6c7){const _0x47b1e7=_0x3959af;return _0x1be6c7===_0x47b1e7(0x2826);}function _0x4919fa(_0x319755){return _0x319755==='*pause';}function _0x5c8f6a(_0x506315){const _0x48b626=_0x3959af;return _0x506315===_0x48b626(0xac6)||_0x506315==='unknown'||_0x506315===_0x48b626(0x407)||_0x506315===_0x48b626(0xf8e)||_0x28c606()['isNil'](_0x506315);}function _0x2bde60(_0x41bc70,_0x472dbb){const _0x52e7ad=_0x3959af;if(_0x472dbb===_0x52e7ad(0x227c)){if(_0x41bc70[_0x472dbb+_0x52e7ad(0x2311)]!=='idle')return _0x41bc70[_0x472dbb+_0x52e7ad(0x2311)];if(_0x41bc70[_0x472dbb+_0x52e7ad(0x9d3)])return _0x41bc70[_0x472dbb+_0x52e7ad(0x2311)]='pause',_0x52e7ad(0x2826);return _0x52e7ad(0xac6);}else{if(_0x41bc70[_0x472dbb+'Pause'])return _0x41bc70[_0x472dbb+_0x52e7ad(0x2311)]=_0x52e7ad(0x2826),_0x52e7ad(0x2826);return _0x41bc70[_0x472dbb+_0x52e7ad(0x2311)];}}function _0x1c722c(_0x3e4417){const _0x16087a=_0x3959af;let _0x2fb99c=_0x16087a(0x1191);if(_0x28c606()['every']([_0x2bde60(_0x3e4417,_0x16087a(0x227c)),_0x2bde60(_0x3e4417,'chat'),_0x2bde60(_0x3e4417,_0x16087a(0xc71)),_0x2bde60(_0x3e4417,_0x16087a(0x28ad)),_0x2bde60(_0x3e4417,_0x16087a(0x10aa)),_0x2bde60(_0x3e4417,'whatsapp'),_0x2bde60(_0x3e4417,'fax')],_0x5014ab))_0x2fb99c=_0x16087a(0x2826);else{if(_0x28c606()[_0x16087a(0x25f8)]([_0x2bde60(_0x3e4417,_0x16087a(0x227c)),_0x2bde60(_0x3e4417,_0x16087a(0xf52)),_0x2bde60(_0x3e4417,_0x16087a(0xc71)),_0x2bde60(_0x3e4417,_0x16087a(0x28ad)),_0x2bde60(_0x3e4417,'sms'),_0x2bde60(_0x3e4417,'whatsapp'),_0x2bde60(_0x3e4417,_0x16087a(0x1d37))],_0x5014ab))_0x2fb99c=_0x16087a(0x1bcc);else _0x28c606()[_0x16087a(0x2972)]([_0x2bde60(_0x3e4417,_0x16087a(0x227c)),_0x2bde60(_0x3e4417,_0x16087a(0xf52)),_0x2bde60(_0x3e4417,_0x16087a(0xc71)),_0x2bde60(_0x3e4417,'openchannel'),_0x2bde60(_0x3e4417,'sms'),_0x2bde60(_0x3e4417,_0x16087a(0x1a29)),_0x2bde60(_0x3e4417,_0x16087a(0x1d37))],_0x5c8f6a)?_0x2fb99c=_0x16087a(0xac6):_0x2fb99c='busy';}_0x3e4417[_0x16087a(0x876)]!==_0x2fb99c&&(_0x3e4417[_0x16087a(0x876)]=_0x2fb99c,_0x3e4417['init']?(_0x3e4417[_0x16087a(0x2354)]=![],_0x3e4417[_0x16087a(0x14f5)]=_0x5014ab(_0x2fb99c)?_0x28c606()[_0x16087a(0x1251)](_0x2ac33a()(_0x3e4417[_0x16087a(0x2148)])['format']('x')):_0x28c606()[_0x16087a(0x2a2)]([_0x3e4417[_0x16087a(0x17f4)],_0x3e4417[_0x16087a(0x2642)],_0x3e4417[_0x16087a(0x1f78)],_0x3e4417['smsStatusTime'],_0x3e4417[_0x16087a(0x17fb)],_0x3e4417[_0x16087a(0x1857)],_0x3e4417['faxStatusTime']])):_0x3e4417['globalStatusTime']=_0x28c606()[_0x16087a(0x1251)](_0x2ac33a()()[_0x16087a(0x1c2c)]('x')));}function _0x4d23bc(_0x16b5af){const _0xc8d50a=_0x3959af,_0x56f902=_0x28c606()[_0xc8d50a(0x1273)](_0x2df9bd[_0xc8d50a(0x289a)][_0xc8d50a(0x1997)],'-')?_0xc8d50a(0x19d0):_0xc8d50a(0x2449);return _0x28c606()[_0xc8d50a(0x288e)](_0x16b5af,[_0x2df9bd['query'][_0xc8d50a(0x1997)][_0xc8d50a(0x1353)]('-','')],[_0x56f902]);}function _0x163b93(){const _0x29ed26=_0x3959af;_0x69370&&(_0x5c61f1[_0x29ed26(0x101a)](_0x69370),_0x69370=null);}function _0x4e2a24(_0x49e34a,_0xcf29ab){const _0x44c6a0=_0x3959af;return _0x2fa71c['user'][_0x44c6a0(0x2603)]({'id':_0x49e34a['id']},{'screenrecording':_0xcf29ab})[_0x44c6a0(0x15e7)]['catch'](function(_0x5b6b08){const _0x205d21=_0x44c6a0;_0x329cbe[_0x205d21(0x1bd0)]({'title':_0x5b6b08['status']?'API:'+_0x5b6b08[_0x205d21(0x10b3)]+'\x20-\x20'+_0x5b6b08[_0x205d21(0x2115)]:_0x205d21(0x15e5),'msg':_0x5b6b08[_0x205d21(0x1c52)]?JSON[_0x205d21(0x2317)](_0x5b6b08['data']['message']):_0x5b6b08[_0x205d21(0x2915)]()});});}_0x175b72[_0x3959af(0x8c7)](_0x3959af(0xf28),function(){const _0x52b109=_0x3959af;_0x27c9d2['removeAllListeners']('user:save'),_0x27c9d2['removeAllListeners']('user:update'),_0x27c9d2[_0x52b109(0x1951)]('user:agentconnect'),_0x27c9d2['removeAllListeners']('user:agentcomplete'),_0x163b93();});}const _0x488ae1=_0x43a7dd;;const _0x46e13e=_0x2e4a48['p']+_0x49a1e3(0xbcc);;const _0x4a14f7=_0x2e4a48['p']+'src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/agentadd/agentadd.html/agentadd.html';;_0x3fb477['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x20d4),'$mdDialog','$q',_0x49a1e3(0x1373),_0x49a1e3(0x1239),'queues',_0x49a1e3(0x22c7),_0x49a1e3(0xa19),_0x49a1e3(0x633),_0x49a1e3(0x680),_0x49a1e3(0x16a8),_0x49a1e3(0x16b2),_0x49a1e3(0xdcf)];function _0x3fb477(_0x25fbbe,_0x1e854e,_0x1e2563,_0x536f2b,_0x40dff6,_0x30125f,_0x36e2c5,_0x2f2660,_0x22659d,_0x10ede8,_0x37948a,_0x5524ec,_0x4f48e4,_0x38c46f){const _0x56168f=_0x49a1e3,_0xa1d9cb=this,_0x5dc4c6=[_0x56168f(0x17bc),_0x56168f(0x1c58),'waiting',_0x56168f(0x130d),_0x56168f(0xc00),_0x56168f(0xa1b),'message','dialActive',_0x56168f(0xa69),_0x56168f(0x1608),_0x56168f(0x20a7)];_0xa1d9cb['currentUser']=_0x38c46f[_0x56168f(0x808)](),_0xa1d9cb[_0x56168f(0xb90)]=_0x36e2c5[_0x56168f(0xb90)]?_0x36e2c5[_0x56168f(0xb90)]:0x0,_0xa1d9cb[_0x56168f(0x1c06)]=_0x36e2c5?_0x28c606()[_0x56168f(0x161e)](_0x36e2c5['rows']?_0x36e2c5[_0x56168f(0x28b8)]:[],'id'):{},_0xa1d9cb[_0x56168f(0x22c7)]=_0x2f2660?_0x28c606()[_0x56168f(0x161e)](_0x2f2660[_0x56168f(0x28b8)]?_0x2f2660[_0x56168f(0x28b8)]:[],'id'):{},_0xa1d9cb[_0x56168f(0x16a8)]=_0x5524ec,_0xa1d9cb['userProfileSection']=_0x4f48e4&&_0x4f48e4[_0x56168f(0xb90)]==0x1?_0x4f48e4[_0x56168f(0x28b8)][0x0]:null,_0xa1d9cb[_0x56168f(0x402)]=_0x38c46f[_0x56168f(0xa7e)](_0xa1d9cb[_0x56168f(0x16b2)]?_0xa1d9cb[_0x56168f(0x16b2)][_0x56168f(0x402)]:null);_0x38c46f[_0x56168f(0x4de)]('admin')?_0xa1d9cb[_0x56168f(0x289a)]={'type':_0x56168f(0x12a4),'sort':_0x56168f(0x260c),'limit':0xa,'page':0x1}:_0xa1d9cb[_0x56168f(0x289a)]={'id':_0xa1d9cb[_0x56168f(0x1d3d)]['id'],'channel':_0x56168f(0x1a29),'type':_0x56168f(0x12a4),'sort':_0x56168f(0x260c),'limit':0xa,'page':0x1};_0xa1d9cb[_0x56168f(0x1339)]=_0x298653,_0xa1d9cb['getQueues']=_0x313c83,_0xa1d9cb[_0x56168f(0xf7d)]=_0x5a38af,_0xa1d9cb[_0x56168f(0x2241)]=_0x1ff52e,_0xa1d9cb[_0x56168f(0x10f3)]=_0x20b437,_0xa1d9cb['onSave']=_0x32a33a,_0xa1d9cb[_0x56168f(0x28b9)]=_0x3b7a0d,_0xa1d9cb[_0x56168f(0x351)]=_0x24d82b,_0xa1d9cb['onPause']=_0x2fbf5d,_0xa1d9cb[_0x56168f(0x4c3)]=_0x117464,_0xa1d9cb[_0x56168f(0x259)]=_0x5afce5,_0xa1d9cb[_0x56168f(0xea6)]=_0x2c56d7,_0xa1d9cb[_0x56168f(0x1997)]=[],_0x28c606()[_0x56168f(0x1789)](_0xa1d9cb[_0x56168f(0x1c06)],function(_0x103fb8){_0xa1d9cb['order']['push'](_0x103fb8['id']);}),_0x10ede8['on'](_0x56168f(0x1477),_0xa1d9cb[_0x56168f(0x249c)]),_0x10ede8['on'](_0x56168f(0x237f),_0xa1d9cb[_0x56168f(0x28b9)]),_0x10ede8['on'](_0x56168f(0x13bd),_0xa1d9cb[_0x56168f(0x351)]),_0x10ede8['on'](_0x56168f(0x130f),_0xa1d9cb['onPause']),_0x10ede8['on']('userVoiceQueue:remove',_0xa1d9cb[_0x56168f(0x259)]),_0x10ede8['on']('userVoiceQueue:save',_0xa1d9cb['onLogin']);function _0x2c56d7(){const _0x378a42=_0x56168f,_0x5b84f4=[];return _0x28c606()[_0x378a42(0x1789)](_0xa1d9cb['queues'],function(_0x98c843,_0x5c0c25){const _0x5ebff4=_0x378a42;_0x98c843['paused']=0x0,_0x98c843['loggedInDb']=0x0,_0xa1d9cb[_0x5ebff4(0x1c06)][_0x5c0c25][_0x5ebff4(0xd77)]={},_0x5b84f4['push'](_0x22659d[_0x5ebff4(0x296d)][_0x5ebff4(0xf49)]({'id':_0x5c0c25})['$promise']),_0xa1d9cb[_0x5ebff4(0x22c7)][_0x5c0c25]&&_0x28c606()[_0x5ebff4(0x14fe)](_0x98c843,_0x28c606()['pick'](_0xa1d9cb[_0x5ebff4(0x22c7)][_0x5c0c25],_0x5dc4c6));}),_0x536f2b['all'](_0x5b84f4)[_0x378a42(0x64a)](function(_0xbfc69c){const _0x4cbd2a=_0x378a42;for(let _0x137e3f=0x0;_0x137e3f<_0xbfc69c[_0x4cbd2a(0x1b9e)];_0x137e3f+=0x1){for(let _0x45c803=0x0;_0x45c803<_0xbfc69c[_0x137e3f]['rows'][_0x4cbd2a(0x1b9e)];_0x45c803++){_0xbfc69c[_0x137e3f][_0x4cbd2a(0x28b8)][_0x45c803][_0x4cbd2a(0x20a7)]&&_0xa1d9cb[_0x4cbd2a(0x1c06)][_0xbfc69c[_0x137e3f][_0x4cbd2a(0x28b8)][_0x45c803][_0x4cbd2a(0x4d8)]][_0x4cbd2a(0x20a7)]++,_0xa1d9cb[_0x4cbd2a(0x1c06)][_0xbfc69c[_0x137e3f][_0x4cbd2a(0x28b8)][_0x45c803]['WhatsappQueueId']][_0x4cbd2a(0x371)]++,_0xa1d9cb[_0x4cbd2a(0x1c06)][_0xbfc69c[_0x137e3f][_0x4cbd2a(0x28b8)][_0x45c803][_0x4cbd2a(0x4d8)]][_0x4cbd2a(0xd77)][_0xbfc69c[_0x137e3f]['rows'][_0x45c803][_0x4cbd2a(0x246c)]]=_0xbfc69c[_0x137e3f][_0x4cbd2a(0x28b8)][_0x45c803][_0x4cbd2a(0x4d8)];}}})[_0x378a42(0x20cd)](function(_0x578768){console['error'](_0x578768);});}function _0x32a33a(_0x71bf79){const _0x4f80a7=_0x56168f;_0xa1d9cb['queues'][_0x71bf79['id']]&&_0x28c606()[_0x4f80a7(0x14fe)](_0xa1d9cb[_0x4f80a7(0x1c06)][_0x71bf79['id']],_0x28c606()[_0x4f80a7(0x27bb)](_0x71bf79,_0x5dc4c6));}function _0x3b7a0d(_0x4d8634){const _0x179919=_0x56168f;_0xa1d9cb[_0x179919(0x1c06)][_0x4d8634[_0x179919(0x4d8)]]&&_0xa1d9cb[_0x179919(0x1c06)][_0x4d8634[_0x179919(0x4d8)]][_0x179919(0x371)]++;}function _0x24d82b(_0x20232d){const _0x2e40bb=_0x56168f;_0xa1d9cb[_0x2e40bb(0x1c06)][_0x20232d[_0x2e40bb(0x4d8)]]&&_0xa1d9cb[_0x2e40bb(0x1c06)][_0x20232d[_0x2e40bb(0x4d8)]][_0x2e40bb(0x371)]--;}function _0x2fbf5d(_0x7fd3ea){const _0x5b1892=_0x56168f;console[_0x5b1892(0x9b4)](_0x5b1892(0x2fe),_0x7fd3ea);if(_0x7fd3ea['voicePause'])_0x28c606()[_0x5b1892(0x1789)](_0xa1d9cb[_0x5b1892(0x1c06)],function(_0x427eb3){const _0x4749e2=_0x5b1892;_0x427eb3[_0x4749e2(0xd77)][_0x7fd3ea['id']]&&(_0x427eb3[_0x4749e2(0x20a7)]+=0x1,console[_0x4749e2(0x9b4)](_0x4749e2(0x2826)));});else!_0x7fd3ea[_0x5b1892(0x11a4)]&&_0x28c606()[_0x5b1892(0x1789)](_0xa1d9cb[_0x5b1892(0x1c06)],function(_0x1e37c){const _0x4aa0af=_0x5b1892;_0x1e37c[_0x4aa0af(0xd77)][_0x7fd3ea['id']]&&(_0x1e37c['paused']>0x0&&(_0x1e37c[_0x4aa0af(0x20a7)]-=0x1,console[_0x4aa0af(0x9b4)]('unpause')));});}function _0x117464(_0x22326b){const _0x3d5dc8=_0x56168f;console[_0x3d5dc8(0x9b4)](_0x3d5dc8(0x889),_0x22326b),_0xa1d9cb[_0x3d5dc8(0x1c06)][_0x22326b[_0x3d5dc8(0x4d8)]]&&(_0xa1d9cb[_0x3d5dc8(0x1c06)][_0x22326b[_0x3d5dc8(0x4d8)]][_0x3d5dc8(0x371)]+=0x1,_0xa1d9cb['queues'][_0x22326b[_0x3d5dc8(0x4d8)]]['agents'][_0x22326b[_0x3d5dc8(0x246c)]]=_0x22326b['WhatsappQueueId']);}function _0x5afce5(_0x474ef4){const _0x26c0ee=_0x56168f;console[_0x26c0ee(0x9b4)](_0x26c0ee(0x259),_0x474ef4),_0xa1d9cb[_0x26c0ee(0x1c06)][_0x474ef4[_0x26c0ee(0x4d8)]]&&_0xa1d9cb[_0x26c0ee(0x1c06)][_0x474ef4[_0x26c0ee(0x4d8)]][_0x26c0ee(0x371)]>0x0&&(_0xa1d9cb[_0x26c0ee(0x1c06)][_0x474ef4['WhatsappQueueId']][_0x26c0ee(0x371)]-=0x1,delete _0xa1d9cb['queues'][_0x474ef4['WhatsappQueueId']]['agents'][_0x474ef4[_0x26c0ee(0x246c)]]);}let _0x2e93bb=!![],_0x501b45=0x1;_0x25fbbe[_0x56168f(0xc62)](_0x56168f(0x1cb9),function(_0x4c4a6e,_0x4cab96){const _0x3f97fb=_0x56168f;_0x2e93bb?_0x1e854e(function(){_0x2e93bb=![];}):(!_0x4cab96&&(_0x501b45=_0xa1d9cb['query']['page']),_0x4c4a6e!==_0x4cab96&&(_0xa1d9cb[_0x3f97fb(0x289a)]['page']=0x1),!_0x4c4a6e&&(_0xa1d9cb[_0x3f97fb(0x289a)]['page']=_0x501b45),_0xa1d9cb[_0x3f97fb(0x1f2c)]());});function _0x298653(_0x4fb568){const _0x3cb4e2=_0x56168f;_0xa1d9cb[_0x3cb4e2(0xb90)]=_0x4fb568[_0x3cb4e2(0xb90)],_0xa1d9cb[_0x3cb4e2(0x1c06)]=_0x4fb568?_0x28c606()[_0x3cb4e2(0x161e)](_0x4fb568[_0x3cb4e2(0x28b8)]?_0x4fb568[_0x3cb4e2(0x28b8)]:[],'id'):{};if(_0x4fb568[_0x3cb4e2(0x28b8)]){_0xa1d9cb[_0x3cb4e2(0x1997)]=[];for(let _0x1757b6=0x0;_0x1757b6<_0x4fb568[_0x3cb4e2(0x28b8)][_0x3cb4e2(0x1b9e)];_0x1757b6++){_0xa1d9cb[_0x3cb4e2(0x1997)]['push'](_0x4fb568[_0x3cb4e2(0x28b8)][_0x1757b6]['id']);}}_0x2c56d7();}function _0x313c83(){const _0x1fac8c=_0x56168f;_0xa1d9cb['query'][_0x1fac8c(0x24f9)]=(_0xa1d9cb[_0x1fac8c(0x289a)][_0x1fac8c(0xc72)]-0x1)*_0xa1d9cb[_0x1fac8c(0x289a)][_0x1fac8c(0x25bb)],_0x38c46f['hasRole'](_0x1fac8c(0x333))?_0xa1d9cb[_0x1fac8c(0x1713)]=_0x22659d[_0x1fac8c(0x296d)][_0x1fac8c(0x896)](_0xa1d9cb[_0x1fac8c(0x289a)],_0x298653)[_0x1fac8c(0x15e7)]:(_0xa1d9cb[_0x1fac8c(0x289a)]['id']=_0xa1d9cb[_0x1fac8c(0x16a8)]['id'],_0xa1d9cb['query'][_0x1fac8c(0xa21)]='WhatsappQueues',_0xa1d9cb[_0x1fac8c(0x1713)]=_0x22659d[_0x1fac8c(0x16a8)][_0x1fac8c(0x2565)](_0xa1d9cb[_0x1fac8c(0x289a)],_0x298653)[_0x1fac8c(0x15e7)]);}function _0x5a38af(_0x2a9ab3,_0x2a6962){const _0x155a13=_0x56168f;_0x1e2563[_0x155a13(0xa60)]({'controller':'CreateOrEditWhatsappQueueDialogController','controllerAs':'vm','templateUrl':_0x46e13e,'parent':angular[_0x155a13(0x1f81)](_0x40dff6[_0x155a13(0xb49)]),'targetEvent':_0x2a9ab3,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x2a6962,'whatsappQueues':_0x28c606()[_0x155a13(0x2146)](_0xa1d9cb['queues']),'license':null,'setting':null,'crudPermissions':_0xa1d9cb['crudPermissions']}});}function _0x1ff52e(_0x464ca8,_0x2bc176){const _0x54bc6c=_0x56168f;_0x1e2563['show']({'controller':_0x54bc6c(0x3c0),'controllerAs':'vm','templateUrl':_0x4a14f7,'parent':angular[_0x54bc6c(0x1f81)](_0x40dff6[_0x54bc6c(0xb49)]),'targetEvent':_0x464ca8,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x2bc176,'whatsappQueues':_0xa1d9cb[_0x54bc6c(0x1c06)]?_0xa1d9cb[_0x54bc6c(0x1c06)]['rows']:[],'realtime':![],'crudPermissions':_0xa1d9cb['crudPermissions']}});}function _0x20b437(_0x551a4a){const _0x422c3b=_0x56168f;return _0x22659d[_0x422c3b(0x296d)]['update'](_0x551a4a)['$promise'][_0x422c3b(0x64a)](function(){const _0x1e2a39=_0x422c3b;_0x37948a[_0x1e2a39(0x1339)]({'title':_0x1e2a39(0x2bf),'msg':_0x551a4a[_0x1e2a39(0x2494)]?_0x551a4a[_0x1e2a39(0x2494)]+'\x20has\x20been\x20updated!':''});})[_0x422c3b(0x20cd)](function(_0x3f24a6){const _0xd1c25c=_0x422c3b;_0x37948a[_0xd1c25c(0x1bd0)]({'title':_0xd1c25c(0x5d4),'msg':_0x3f24a6[_0xd1c25c(0x18ca)]});});}_0x25fbbe[_0x56168f(0x8c7)]('$destroy',function(){const _0x384046=_0x56168f;_0x10ede8['removeAllListeners'](_0x384046(0x1477)),_0x10ede8['removeAllListeners'](_0x384046(0x13bd)),_0x10ede8[_0x384046(0x1951)](_0x384046(0x237f)),_0x10ede8[_0x384046(0x1951)]('user:update'),_0x10ede8['removeAllListeners'](_0x384046(0x289d)),_0x10ede8[_0x384046(0x1951)](_0x384046(0x44b));});}const _0x4e9985=_0x3fb477;;function _0x948647(){const _0x7b16be=_0x49a1e3;return{'status':{'registered':_0x7b16be(0x26f8),'unregistered':_0x7b16be(0x2448),'lagged':'red-300-fg\x20icon-close-circle','reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':_0x7b16be(0x2448),'unknown':_0x7b16be(0x178c)},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':_0x7b16be(0x14d3),'inuse':_0x7b16be(0xa51),'busy':'red-300-fg\x20icon-phone-locked','invalid':_0x7b16be(0x2971),'unavailable':_0x7b16be(0x2971),'ringing':_0x7b16be(0x15e),'ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':_0x7b16be(0xced)},'channelStatus':{'ring':'blue-300-fg\x20icon-phone-incoming','up':_0x7b16be(0x5c4),'hangup':_0x7b16be(0x2150)},'channelStatusOut':{'ring':_0x7b16be(0x170),'up':_0x7b16be(0x5c4),'hangup':_0x7b16be(0x2150)}};}const _0xc87a58=_0x948647;;_0x17a449[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x633)];function _0x17a449(_0x1aa39e,_0xab9650,_0x2c65ea){const _0x3759b2=_0x49a1e3,_0x4852ec=this;_0x2c65ea[_0x3759b2(0x1c31)](),_0x2c65ea[_0x3759b2(0x25fa)](),_0x4852ec['selectedTab']=0x0;switch(_0xab9650[_0x3759b2(0xa6c)][_0x3759b2(0x2494)]){case'app.whatsapp.realtime.agents':_0x4852ec[_0x3759b2(0x197c)]=0x0;break;case'app.whatsapp.realtime.queues':_0x4852ec[_0x3759b2(0x197c)]=0x1;break;default:_0x4852ec[_0x3759b2(0x197c)]=0x0,_0xab9650['go']('app.whatsapp.realtime.agents');}_0x1aa39e['$watch'](_0x3759b2(0x2303),function(_0x21f7b9,_0x299f0e){const _0xecbaea=_0x3759b2;if(_0x21f7b9!==_0x299f0e)switch(_0x21f7b9){case 0x0:_0xab9650['go']('app.whatsapp.realtime.agents');break;case 0x1:_0xab9650['go'](_0xecbaea(0x2503));break;default:_0xab9650['go']('app.whatsapp.realtime.agents');break;}});}const _0x59cf42=_0x17a449;;_0xc34cec['$inject']=[_0x49a1e3(0x20ad)];function _0xc34cec(_0x332794){const _0x567e91=_0x49a1e3;_0x332794[_0x567e91(0x14f2)]('app.whatsapp.realtime',{'url':_0x567e91(0x71d),'views':{'content@app':{'templateUrl':_0x26f6b5,'controller':_0x567e91(0xaa3)}},'resolve':{'userProfile':['apiResolver','Auth',function(_0x17e412,_0x571bd9){const _0x2e56ea=_0x567e91;return _0x571bd9[_0x2e56ea(0x4de)](_0x2e56ea(0x333))?null:_0x17e412[_0x2e56ea(0x1268)](_0x2e56ea(0x6e3),{'fields':_0x2e56ea(0x10d2),'id':_0x571bd9['getCurrentUser']()[_0x2e56ea(0x21ac)]});}],'userProfileSection':[_0x567e91(0x107c),_0x567e91(0xdcf),function(_0x4b83fc,_0x19f8bb){const _0x29ab49=_0x567e91;return _0x19f8bb[_0x29ab49(0x4de)]('admin')?null:_0x4b83fc['resolve']('userProfileSection@get',{'fields':_0x29ab49(0x527),'userProfileId':_0x19f8bb[_0x29ab49(0x808)]()[_0x29ab49(0x21ac)],'sectionId':0x83e});}]},'authenticate':!![],'permissionId':0x83e})[_0x567e91(0x14f2)](_0x567e91(0x463),{'url':_0x567e91(0x23f8),'controller':_0x567e91(0x1037),'templateUrl':_0x545e1b,'resolve':{'pauses':[_0x567e91(0x107c),function(_0x1ec6fd){const _0xa7ca1d=_0x567e91;return _0x1ec6fd['resolve'](_0xa7ca1d(0x1fae),{'nolimit':!![]});}],'agents':[_0x567e91(0x107c),_0x567e91(0xdcf),function(_0x5098ea,_0x2a313e){const _0x21c2f5=_0x567e91;return _0x2a313e[_0x21c2f5(0x4de)](_0x21c2f5(0x333))?_0x5098ea[_0x21c2f5(0x1268)]('user@get',{'fields':_0x21c2f5(0x1956),'role':'agent','sort':_0x21c2f5(0x15c),'nolimit':!![]}):_0x5098ea[_0x21c2f5(0x1268)]('userProfile@getResources',{'id':_0x2a313e['getCurrentUser']()[_0x21c2f5(0x21ac)],'section':_0x21c2f5(0x2132),'fields':_0x21c2f5(0x1956),'role':_0x21c2f5(0x11ae),'sort':_0x21c2f5(0x15c),'nolimit':!![]});}],'userProfile':[_0x567e91(0x107c),_0x567e91(0xdcf),function(_0x3e58a0,_0x2a75e8){const _0xcf9ead=_0x567e91;return _0x2a75e8[_0xcf9ead(0x4de)]('admin')?null:_0x3e58a0[_0xcf9ead(0x1268)]('userProfile@get',{'fields':_0xcf9ead(0x10d2),'id':_0x2a75e8[_0xcf9ead(0x808)]()[_0xcf9ead(0x21ac)]});}],'userProfileSection':[_0x567e91(0x107c),_0x567e91(0xdcf),function(_0x3f00a9,_0x39d640){const _0x3727dc=_0x567e91;return _0x39d640[_0x3727dc(0x4de)](_0x3727dc(0x333))?null:_0x3f00a9['resolve'](_0x3727dc(0x2681),{'fields':_0x3727dc(0x527),'userProfileId':_0x39d640[_0x3727dc(0x808)]()[_0x3727dc(0x21ac)],'sectionId':0xca});}],'rpcAgents':[_0x567e91(0x107c),function(_0x3cc1c4){const _0x4e04e0=_0x567e91;return _0x3cc1c4[_0x4e04e0(0x1268)]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x83e})[_0x567e91(0x14f2)](_0x567e91(0x2503),{'url':_0x567e91(0x16ca),'controller':'QueuesWhatsappRealtimeController\x20as\x20vm','templateUrl':_0x267624,'resolve':{'queues':[_0x567e91(0x107c),_0x567e91(0xdcf),function(_0x1940ec,_0x162519){const _0x5dbf06=_0x567e91;return _0x162519['hasRole']('admin')?_0x1940ec['resolve'](_0x5dbf06(0x878),{'type':_0x5dbf06(0x12a4),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x1940ec[_0x5dbf06(0x1268)](_0x5dbf06(0x1758),{'id':_0x162519[_0x5dbf06(0x808)]()[_0x5dbf06(0x21ac)],'section':'WhatsappQueues','channel':_0x5dbf06(0x1a29),'type':_0x5dbf06(0x12a4),'sort':_0x5dbf06(0x260c),'limit':0xa,'page':0x1});}],'userProfile':[_0x567e91(0x107c),_0x567e91(0xdcf),function(_0x46b194,_0x723a03){const _0x5c11f3=_0x567e91;return _0x723a03['hasRole'](_0x5c11f3(0x333))?null:_0x46b194[_0x5c11f3(0x1268)](_0x5c11f3(0x6e3),{'fields':_0x5c11f3(0x10d2),'id':_0x723a03[_0x5c11f3(0x808)]()[_0x5c11f3(0x21ac)]});}],'userProfileSection':[_0x567e91(0x107c),_0x567e91(0xdcf),function(_0x1d5121,_0x3a2ca2){const _0x497c96=_0x567e91;return _0x3a2ca2[_0x497c96(0x4de)](_0x497c96(0x333))?null:_0x1d5121[_0x497c96(0x1268)]('userProfileSection@get',{'fields':_0x497c96(0x527),'userProfileId':_0x3a2ca2[_0x497c96(0x808)]()[_0x497c96(0x21ac)],'sectionId':0x835});}],'rpcQueues':[_0x567e91(0x107c),function(_0x2964a8){const _0xcd93d5=_0x567e91;return _0x2964a8[_0xcd93d5(0x1268)]('rpc@getWhatsappQueues');}]},'authenticate':!![],'permissionId':0x83e});}angular[_0x49a1e3(0x20d2)]('app.whatsapp.realtime',[])['config'](_0xc34cec)[_0x49a1e3(0x38e)](_0x49a1e3(0x20c0),_0x488ae1)[_0x49a1e3(0x38e)](_0x49a1e3(0x21ca),_0x4e9985)[_0x49a1e3(0x646)](_0x49a1e3(0x1f8c),_0xc87a58)[_0x49a1e3(0x38e)](_0x49a1e3(0x10a6),_0x59cf42);;const _0x37a2f4=_0x2e4a48['p']+_0x49a1e3(0x6d6);;const _0x25e86f=_0x2e4a48['p']+_0x49a1e3(0xe24);;const _0x1b56d6=_0x2e4a48['p']+_0x49a1e3(0x2256);;const _0x116c50=_0x2e4a48['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/view.html/view.html';;_0x28a60c['$inject']=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$location',_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x21fb),'whatsappAccount',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x28a60c(_0x484afd,_0x55cadf,_0x1bb14c,_0x323aea,_0xd9b30c,_0x469bf5,_0x12555e,_0x4f726e,_0x358900,_0x5669e3,_0x1aacbb,_0x579bb5,_0x632995,_0x51277e){const _0x28705d=_0x49a1e3,_0x1e5de3=this;_0x1e5de3[_0x28705d(0x1d3d)]=_0x1aacbb[_0x28705d(0x808)](),_0x1e5de3[_0x28705d(0xbae)]=[],_0x1e5de3[_0x28705d(0x28d6)]=_0x632995,_0x1e5de3[_0x28705d(0x1947)]=_0x579bb5,_0x1e5de3[_0x28705d(0x402)]=_0x51277e,_0x1e5de3[_0x28705d(0x6c2)]={},_0x1e5de3[_0x28705d(0xccc)]=_0x1e5de3[_0x28705d(0x28d6)]&&_0x1e5de3[_0x28705d(0x28d6)][_0x28705d(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1e5de3[_0x28705d(0x2021)]='WHATSAPP.EDIT_WHATSAPPACCOUNT',_0x1e5de3[_0x28705d(0x217c)]=angular[_0x28705d(0x289e)](_0x358900),_0x1e5de3[_0x28705d(0x21fb)]=_0x4f726e,_0x1e5de3['newWhatsappAccount']=![];!_0x1e5de3[_0x28705d(0x217c)]&&(_0x1e5de3[_0x28705d(0x217c)]={'remote':_0x1bb14c[_0x28705d(0x48e)]()+_0x28705d(0xe1f)+_0x1bb14c[_0x28705d(0x1e5d)]()+(_0x1bb14c[_0x28705d(0x23f2)]()?':'+_0x1bb14c[_0x28705d(0x23f2)]():''),'type':'twilio','notificationSound':!![],'queueTransferTimeout':0x12c,'waitForTheAssignedAgent':0xa,'agentTransferTimeout':0x12c},_0x1e5de3[_0x28705d(0x2021)]='WHATSAPP.NEW_WHATSAPPACCOUNT',_0x1e5de3[_0x28705d(0x270a)]=!![]);_0x55cadf[_0x28705d(0x1b48)]['id']&&(_0x1e5de3[_0x28705d(0x217c)][_0x28705d(0x222)]=_0x55cadf['params']['id']);_0x1e5de3[_0x28705d(0x31c)]=_0x846045,_0x1e5de3[_0x28705d(0x659)]=_0x235880,_0x1e5de3['deleteWhatsappAccount']=_0x41f726,_0x1e5de3[_0x28705d(0x1605)]=_0x31e726,_0x1e5de3[_0x28705d(0x16cb)]=_0x4efc3b,_0x1aacbb['hasRole'](_0x28705d(0x333))?_0x5669e3['cmList'][_0x28705d(0x896)]({'fields':_0x28705d(0x1427),'sort':_0x28705d(0x2494)})['$promise'][_0x28705d(0x64a)](function(_0x98e3ae){const _0x50d80d=_0x28705d;_0x1e5de3[_0x50d80d(0x974)]=_0x98e3ae['rows']||[];})['catch'](function(_0x31a266){const _0x250b0c=_0x28705d;_0x12555e[_0x250b0c(0x1bd0)]({'title':_0x31a266['status']?_0x250b0c(0x575)+_0x31a266[_0x250b0c(0x10b3)]+_0x250b0c(0x21db)+_0x31a266[_0x250b0c(0x2115)]:_0x250b0c(0x1ed6),'msg':_0x31a266[_0x250b0c(0x1c52)]?JSON[_0x250b0c(0x2317)](_0x31a266[_0x250b0c(0x1c52)]):_0x31a266[_0x250b0c(0x2915)]()});}):_0x5669e3[_0x28705d(0x19f8)][_0x28705d(0x896)]({'fields':'id,name','sort':'name'})[_0x28705d(0x15e7)][_0x28705d(0x64a)](function(_0x339b6a){const _0x4a4b4f=_0x28705d;_0x1e5de3[_0x4a4b4f(0x974)]=_0x339b6a[_0x4a4b4f(0x28b8)]||[];})[_0x28705d(0x64a)](function(){const _0x53e396=_0x28705d;return _0x5669e3['userProfileSection'][_0x53e396(0x896)]({'userProfileId':_0x1e5de3['currentUser'][_0x53e396(0x21ac)],'sectionId':0x12d})[_0x53e396(0x15e7)];})[_0x28705d(0x64a)](function(_0x5b96c9){const _0x22cf26=_0x28705d,_0x6999d9=_0x5b96c9&&_0x5b96c9[_0x22cf26(0x28b8)]?_0x5b96c9[_0x22cf26(0x28b8)][0x0]:null;if(!_0x6999d9){const _0x579045=[];let _0x5f1a75=null;_0x1e5de3[_0x22cf26(0x217c)]&&(_0x5f1a75=_0x28c606()[_0x22cf26(0x27bc)](_0x1e5de3[_0x22cf26(0x974)],{'id':Number(_0x1e5de3[_0x22cf26(0x217c)][_0x22cf26(0x869)])}));for(let _0x22e782=0x0;_0x22e782<_0x1e5de3[_0x22cf26(0x974)]['length'];_0x22e782++){_0x5f1a75&&_0x1e5de3[_0x22cf26(0x974)][_0x22e782]['id']===_0x5f1a75['id']&&(_0x1e5de3[_0x22cf26(0x974)][_0x22e782][_0x22cf26(0xd4f)]=![],_0x579045[_0x22cf26(0x1954)](_0x1e5de3[_0x22cf26(0x974)][_0x22e782]));}_0x1e5de3[_0x22cf26(0x974)]=_0x579045;}else{if(!_0x6999d9[_0x22cf26(0x11da)])return _0x5669e3[_0x22cf26(0x1617)][_0x22cf26(0x896)]({'sectionId':_0x6999d9['id']})['$promise'][_0x22cf26(0x64a)](function(_0x5517f3){const _0x3554f3=_0x22cf26,_0x108ed4=_0x28c606()[_0x3554f3(0x1de5)](_0x5517f3[_0x3554f3(0x28b8)],function(_0x2e6695){const _0x4fb542=_0x3554f3;return _0x28c606()[_0x4fb542(0x27bc)](_0x1e5de3[_0x4fb542(0x974)],{'id':_0x2e6695[_0x4fb542(0x145)]});});let _0x226bd9=null;_0x1e5de3['whatsappAccount']&&(_0x226bd9=_0x28c606()[_0x3554f3(0x27bc)](_0x1e5de3['lists'],{'id':Number(_0x1e5de3[_0x3554f3(0x217c)]['ListId'])}));if(_0x226bd9&&!_0x28c606()[_0x3554f3(0x25f8)](_0x108ed4,['id',_0x226bd9['id']])){const _0x13727d=_0x28c606()[_0x3554f3(0x27bc)](_0x1e5de3[_0x3554f3(0x974)],{'id':_0x226bd9['id']});_0x13727d['canSelect']=![],_0x108ed4[_0x3554f3(0x1954)](_0x13727d);}_0x1e5de3[_0x3554f3(0x974)]=_0x108ed4;});}})[_0x28705d(0x20cd)](function(_0x4003c2){const _0x53792b=_0x28705d;_0x12555e['error']({'title':_0x4003c2[_0x53792b(0x10b3)]?_0x53792b(0x575)+_0x4003c2[_0x53792b(0x10b3)]+_0x53792b(0x21db)+_0x4003c2[_0x53792b(0x2115)]:_0x53792b(0x1beb),'msg':_0x4003c2[_0x53792b(0x1c52)]?JSON[_0x53792b(0x2317)](_0x4003c2[_0x53792b(0x1c52)]):_0x4003c2[_0x53792b(0x2915)]()});}),_0x1aacbb[_0x28705d(0x4de)](_0x28705d(0x333))?_0x5669e3[_0x28705d(0x2826)][_0x28705d(0x896)]({'fields':_0x28705d(0x1dfb),'sort':_0x28705d(0x2494),'nolimit':_0x28705d(0x1685)})['$promise'][_0x28705d(0x64a)](function(_0x498648){const _0x279b7d=_0x28705d;_0x1e5de3[_0x279b7d(0x23d1)]=_0x498648[_0x279b7d(0x28b8)]||[];})[_0x28705d(0x20cd)](function(_0x763f18){const _0x51e723=_0x28705d;_0x12555e['error']({'title':_0x763f18['status']?'API:'+_0x763f18['status']+_0x51e723(0x21db)+_0x763f18[_0x51e723(0x2115)]:_0x51e723(0x1a14),'msg':_0x763f18[_0x51e723(0x1c52)]?JSON[_0x51e723(0x2317)](_0x763f18[_0x51e723(0x1c52)]):_0x763f18[_0x51e723(0x2915)]()});}):_0x5669e3['pause'][_0x28705d(0x896)]({'fields':'name,id','sort':'name','nolimit':_0x28705d(0x1685)})[_0x28705d(0x15e7)][_0x28705d(0x64a)](function(_0x4c3c17){const _0xf65baf=_0x28705d;_0x1e5de3[_0xf65baf(0x23d1)]=_0x4c3c17[_0xf65baf(0x28b8)]||[];})['then'](function(){const _0x62b5d7=_0x28705d;return _0x5669e3[_0x62b5d7(0x16b2)][_0x62b5d7(0x896)]({'userProfileId':_0x1e5de3['currentUser'][_0x62b5d7(0x21ac)],'sectionId':0x3ed})['$promise'];})[_0x28705d(0x64a)](function(_0x443d85){const _0x32be5d=_0x28705d,_0x1e4562=_0x443d85&&_0x443d85[_0x32be5d(0x28b8)]?_0x443d85[_0x32be5d(0x28b8)][0x0]:null;if(!_0x1e4562)_0x1e5de3['pauses']=[];else{if(!_0x1e4562['autoAssociation'])return _0x5669e3['userProfileResource'][_0x32be5d(0x896)]({'sectionId':_0x1e4562['id']})[_0x32be5d(0x15e7)][_0x32be5d(0x64a)](function(_0x96d114){const _0x3a876c=_0x32be5d,_0x151962=_0x28c606()[_0x3a876c(0x1de5)](_0x96d114[_0x3a876c(0x28b8)],function(_0x390049){const _0x3be9a0=_0x3a876c;return _0x28c606()[_0x3be9a0(0x27bc)](_0x1e5de3[_0x3be9a0(0x23d1)],{'id':_0x390049[_0x3be9a0(0x145)]});});_0x1e5de3[_0x3a876c(0x23d1)][_0x3a876c(0x1397)](function(_0x381b07){const _0x152bd5=_0x3a876c;!_0x28c606()[_0x152bd5(0x25f8)](_0x151962,['id',_0x381b07['id']])&&(_0x381b07[_0x152bd5(0xd4f)]=![]),_0x151962['push'](_0x381b07);}),_0x1e5de3[_0x3a876c(0x23d1)]=_0x151962;});}})[_0x28705d(0x20cd)](function(_0x44a9a3){const _0x2b2d1a=_0x28705d;_0x12555e[_0x2b2d1a(0x1bd0)]({'title':_0x44a9a3[_0x2b2d1a(0x10b3)]?_0x2b2d1a(0x575)+_0x44a9a3['status']+'\x20-\x20'+_0x44a9a3[_0x2b2d1a(0x2115)]:_0x2b2d1a(0xd4a),'msg':_0x44a9a3[_0x2b2d1a(0x1c52)]?JSON[_0x2b2d1a(0x2317)](_0x44a9a3['data']):_0x44a9a3['toString']()});});function _0x846045(){const _0x2e2012=_0x28705d;_0x1e5de3[_0x2e2012(0xbae)]=[],_0x5669e3[_0x2e2012(0x217c)][_0x2e2012(0x2479)](_0x1e5de3[_0x2e2012(0x217c)])['$promise'][_0x2e2012(0x64a)](function(_0x5a3094){const _0x341f73=_0x2e2012;_0x1e5de3[_0x341f73(0x21fb)]['unshift'](_0x5a3094[_0x341f73(0x14f8)]()),_0x12555e['success']({'title':_0x341f73(0x2520),'msg':_0x1e5de3[_0x341f73(0x217c)][_0x341f73(0x2494)]?_0x1e5de3[_0x341f73(0x217c)][_0x341f73(0x2494)]+'\x20has\x20been\x20created!':''}),_0x4efc3b(_0x5a3094);})['catch'](function(_0x1dedb2){const _0xca883f=_0x2e2012;if(_0x1dedb2[_0xca883f(0x1c52)]&&_0x1dedb2[_0xca883f(0x1c52)][_0xca883f(0xbae)]&&_0x1dedb2[_0xca883f(0x1c52)][_0xca883f(0xbae)][_0xca883f(0x1b9e)]){_0x1e5de3[_0xca883f(0xbae)]=_0x1dedb2['data'][_0xca883f(0xbae)]||[{'message':_0x1dedb2['toString'](),'type':_0xca883f(0x266d)}];for(let _0x1ad4c2=0x0;_0x1ad4c2<_0x1dedb2[_0xca883f(0x1c52)][_0xca883f(0xbae)][_0xca883f(0x1b9e)];_0x1ad4c2+=0x1){_0x12555e['error']({'title':_0x1dedb2['data'][_0xca883f(0xbae)][_0x1ad4c2][_0xca883f(0x2185)],'msg':_0x1dedb2[_0xca883f(0x1c52)][_0xca883f(0xbae)][_0x1ad4c2]['message']});}}else _0x12555e[_0xca883f(0x1bd0)]({'title':_0x1dedb2['status']?_0xca883f(0x575)+_0x1dedb2['status']+_0xca883f(0x21db)+_0x1dedb2[_0xca883f(0x2115)]:_0xca883f(0x266d),'msg':_0x1dedb2[_0xca883f(0x1c52)]?JSON[_0xca883f(0x2317)](_0x1dedb2['data'][_0xca883f(0x18ca)]):_0x1dedb2[_0xca883f(0x2915)]()});});}function _0x235880(){const _0x12464a=_0x28705d;_0x1e5de3[_0x12464a(0xbae)]=[],_0x5669e3['whatsappAccount'][_0x12464a(0x2603)]({'id':_0x1e5de3[_0x12464a(0x217c)]['id']},_0x1e5de3[_0x12464a(0x217c)])[_0x12464a(0x15e7)][_0x12464a(0x64a)](function(_0x33e7d1){const _0x1c527b=_0x12464a,_0x3e4201=_0x28c606()[_0x1c527b(0x27bc)](_0x1e5de3['whatsappAccounts'],{'id':_0x33e7d1['id']});_0x3e4201&&_0x28c606()[_0x1c527b(0x14fe)](_0x3e4201,_0x28c606()['pick'](_0x33e7d1['toJSON'](),_0x28c606()[_0x1c527b(0x1ec6)](_0x3e4201))),_0x12555e['success']({'title':_0x1c527b(0x12b),'msg':_0x1e5de3[_0x1c527b(0x217c)][_0x1c527b(0x2494)]?_0x1e5de3[_0x1c527b(0x217c)][_0x1c527b(0x2494)]+_0x1c527b(0x271):''}),_0x4efc3b(_0x33e7d1);})[_0x12464a(0x20cd)](function(_0xbedf71){const _0x53d051=_0x12464a;if(_0xbedf71['data']&&_0xbedf71[_0x53d051(0x1c52)][_0x53d051(0xbae)]&&_0xbedf71[_0x53d051(0x1c52)][_0x53d051(0xbae)]['length']){_0x1e5de3['errors']=_0xbedf71[_0x53d051(0x1c52)][_0x53d051(0xbae)]||[{'message':_0xbedf71[_0x53d051(0x2915)](),'type':_0x53d051(0x950)}];for(let _0x32c9bd=0x0;_0x32c9bd<_0xbedf71[_0x53d051(0x1c52)][_0x53d051(0xbae)][_0x53d051(0x1b9e)];_0x32c9bd++){_0x12555e[_0x53d051(0x1bd0)]({'title':_0xbedf71[_0x53d051(0x1c52)]['errors'][_0x32c9bd]['type'],'msg':_0xbedf71['data']['errors'][_0x32c9bd][_0x53d051(0x18ca)]});}}else _0x12555e['error']({'title':_0xbedf71[_0x53d051(0x10b3)]?_0x53d051(0x575)+_0xbedf71[_0x53d051(0x10b3)]+_0x53d051(0x21db)+_0xbedf71['statusText']:_0x53d051(0x950),'msg':_0xbedf71[_0x53d051(0x1c52)]?JSON[_0x53d051(0x2317)](_0xbedf71['data']['message']):_0xbedf71['toString']()});});}function _0x41f726(_0x1b7693){const _0x57870c=_0x28705d;_0x1e5de3[_0x57870c(0xbae)]=[];const _0x1f08f4=_0x323aea[_0x57870c(0x856)]()[_0x57870c(0x2021)](_0x57870c(0x103a))[_0x57870c(0x12b8)](_0x57870c(0x5b2))[_0x57870c(0x213e)](_0x57870c(0x1d7b))['ok'](_0x57870c(0x2664))[_0x57870c(0x101a)](_0x57870c(0x1dc6))[_0x57870c(0x2283)](_0x1b7693);_0x323aea[_0x57870c(0xa60)](_0x1f08f4)[_0x57870c(0x64a)](function(){const _0x58d26c=_0x57870c;_0x5669e3['whatsappAccount'][_0x58d26c(0xabd)]({'id':_0x1e5de3[_0x58d26c(0x217c)]['id']})[_0x58d26c(0x15e7)][_0x58d26c(0x64a)](function(){const _0x3b3c9c=_0x58d26c;_0x28c606()[_0x3b3c9c(0x21c7)](_0x1e5de3[_0x3b3c9c(0x21fb)],{'id':_0x1e5de3[_0x3b3c9c(0x217c)]['id']}),_0x12555e[_0x3b3c9c(0x1339)]({'title':_0x3b3c9c(0xdfb),'msg':(_0x1e5de3[_0x3b3c9c(0x217c)][_0x3b3c9c(0x2494)]||_0x3b3c9c(0x217c))+'\x20has\x20been\x20deleted!'}),_0x4efc3b(_0x1e5de3[_0x3b3c9c(0x217c)]);})[_0x58d26c(0x20cd)](function(_0x5c5571){const _0x3975c2=_0x58d26c;if(_0x5c5571[_0x3975c2(0x1c52)]&&_0x5c5571['data']['errors']&&_0x5c5571[_0x3975c2(0x1c52)][_0x3975c2(0xbae)][_0x3975c2(0x1b9e)]){_0x1e5de3[_0x3975c2(0xbae)]=_0x5c5571[_0x3975c2(0x1c52)][_0x3975c2(0xbae)]||[{'message':_0x5c5571[_0x3975c2(0x2915)](),'type':'api.whatsappAccount.delete'}];for(let _0x3179d1=0x0;_0x3179d1<_0x5c5571[_0x3975c2(0x1c52)]['errors'][_0x3975c2(0x1b9e)];_0x3179d1++){_0x12555e['error']({'title':_0x5c5571[_0x3975c2(0x1c52)][_0x3975c2(0xbae)][_0x3179d1][_0x3975c2(0x2185)],'msg':_0x5c5571['data'][_0x3975c2(0xbae)][_0x3179d1]['message']});}}else _0x12555e[_0x3975c2(0x1bd0)]({'title':_0x5c5571[_0x3975c2(0x10b3)]?'API:'+_0x5c5571[_0x3975c2(0x10b3)]+'\x20-\x20'+_0x5c5571[_0x3975c2(0x2115)]:_0x3975c2(0x20e5),'msg':_0x5c5571[_0x3975c2(0x1c52)]?JSON[_0x3975c2(0x2317)](_0x5c5571[_0x3975c2(0x1c52)][_0x3975c2(0x18ca)]):_0x5c5571[_0x3975c2(0x18ca)]||_0x5c5571['toString']()});});},function(){});}function _0x31e726(_0x2b4b59){return _0x2b4b59===null?undefined:new Date(_0x2b4b59);}function _0x4efc3b(_0x5d24a2){const _0x2f7173=_0x28705d;_0x323aea[_0x2f7173(0x268e)](_0x5d24a2);}}const _0x4b050e=_0x28a60c;;const _0xb3e62a=_0x2e4a48['p']+_0x49a1e3(0x75e);;const _0xbacf02=_0x2e4a48['p']+_0x49a1e3(0x1e7a);;const _0x5a6b3f=_0x2e4a48['p']+_0x49a1e3(0xc78);;const _0x10cf4b=_0x2e4a48['p']+_0x49a1e3(0xa1f);;const _0x164012=_0x2e4a48['p']+_0x49a1e3(0x20c4);;const _0x38f7d8=_0x2e4a48['p']+_0x49a1e3(0x50c);;const _0x5d8d97=_0x2e4a48['p']+_0x49a1e3(0xfe8);;const _0x1cfef3=_0x2e4a48['p']+_0x49a1e3(0x22fc);;const _0x5cf536=_0x2e4a48['p']+_0x49a1e3(0x559);;const _0x4d4d0e=_0x2e4a48['p']+_0x49a1e3(0x828);;const _0x54c02c=_0x2e4a48['p']+_0x49a1e3(0xd57);;const _0x22ff42=_0x2e4a48['p']+_0x49a1e3(0xf1b);;_0x5b435b[_0x49a1e3(0x1e73)]=[_0x49a1e3(0xa19),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x680),'Auth'];const _0x272da6={'agent':_0xb3e62a,'amazonlex':_0xbacf02,'autoreply':_0x5a6b3f,'close':_0x10cf4b,'dialogflow':_0x164012,'gotoif':_0x38f7d8,'gotop':_0x5d8d97,'interval':_0x1cfef3,'noop':_0x5cf536,'queue':_0x4d4d0e,'system':_0x54c02c,'tag':_0x22ff42};function _0x5b435b(_0x29111c,_0x5a5c01,_0x4a5873,_0x49cc9c,_0x515284){const _0x536914=_0x49a1e3,_0x9b8760=this;_0x9b8760[_0x536914(0x1d3d)]=_0x515284[_0x536914(0x808)](),_0x9b8760[_0x536914(0x217c)]={},_0x9b8760['whatsappAccountApps']={'count':0x0,'rows':[]},_0x9b8760['selectedWhatsappAccountApps']=[],_0x9b8760[_0x536914(0x402)],_0x9b8760[_0x536914(0x289a)]={'sort':_0x536914(0x1095)},_0x9b8760['apps']=_0x28c606()[_0x536914(0x19d2)](_0x28c606()[_0x536914(0x1643)]([{'app':'Interval','appType':_0x536914(0xcfd),'types':['always',_0x536914(0x1ad6),_0x536914(0x2764)],'fields':[],'isApp':![]},{'app':'noop','appType':'noop','type':_0x536914(0xbb6),'icon':_0x536914(0xd46),'interval':_0x536914(0x2145),'required':!![],'isApp':!![],'fields':[{'title':_0x536914(0x107f),'name':'value','type':'text','param':0x0}]},{'app':_0x536914(0x1f06),'appType':'system','type':_0x536914(0x1f06),'icon':_0x536914(0xd46),'interval':_0x536914(0x2145),'required':!![],'isApp':!![],'extraApi':[{'name':_0x536914(0x145c),'field':{'name':_0x536914(0xefb),'key':_0x536914(0x2494)},'route':_0x536914(0xefb),'filters':{'fields':'id,name','sort':_0x536914(0x2494),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x536914(0x6c7),'name':_0x536914(0xf42),'type':_0x536914(0x39b),'required':!![],'param':0x0},{'title':_0x536914(0x1538),'name':_0x536914(0xefb),'type':_0x536914(0x26e8),'values':_0x536914(0x145c),'value':_0x536914(0x1c5a),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':_0x536914(0x8c8)}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x536914(0x2046),'appType':_0x536914(0x2046),'type':_0x536914(0x1e5a),'icon':_0x536914(0xd46),'interval':_0x536914(0x2145),'isApp':!![],'fields':[{'title':_0x536914(0x27f2),'name':_0x536914(0x1095),'type':'number','required':!![],'min':0x0,'param':0x0}]},{'app':_0x536914(0x614),'appType':_0x536914(0x614),'type':_0x536914(0x614),'icon':_0x536914(0xd46),'interval':_0x536914(0x2145),'isApp':!![],'fields':[{'title':_0x536914(0x82a),'name':_0x536914(0xeea),'type':_0x536914(0x39b),'required':!![],'param':0x0},{'title':'truepriority','name':'truepriority','type':_0x536914(0x2113),'min':0x1,'required':!![],'param':0x1},{'title':_0x536914(0x1d32),'name':'falsepriority','type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':_0x536914(0x1e4e),'appType':'queue','foreignKey':'WhatsappQueueId','type':_0x536914(0x1e4e),'icon':_0x536914(0xd46),'interval':_0x536914(0x2145),'isApp':!![],'extraApi':[{'name':_0x536914(0x1c06),'field':{'name':'queue','key':_0x536914(0x2494)},'route':_0x536914(0x296d),'filters':{'fields':_0x536914(0x2ba),'sort':'name','nolimit':!![]},'permissions':{'section':0x836}}],'fields':[{'title':'Queue','name':_0x536914(0x1e4e),'type':_0x536914(0x26e8),'values':_0x536914(0x1c06),'value':_0x536914(0x5ca),'option':'queue.name','defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x536914(0x66e),'name':_0x536914(0x16d),'type':_0x536914(0x2113),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x536914(0x11ae),'appType':_0x536914(0x11ae),'type':'agent','foreignKey':_0x536914(0x246c),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x536914(0xd77),'field':{'name':_0x536914(0x11ae),'key':_0x536914(0x2494)},'route':'user','filters':{'fields':_0x536914(0x1427),'sort':_0x536914(0x2494),'nolimit':!![],'role':_0x536914(0x11ae)},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':_0x536914(0x11ae),'type':_0x536914(0x26e8),'values':_0x536914(0xd77),'value':'agent.name','option':_0x536914(0x1ddb),'required':!![],'param':0x0},{'title':_0x536914(0x66e),'name':_0x536914(0x16d),'type':_0x536914(0x2113),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':'autoreply','appType':_0x536914(0x21a9),'type':_0x536914(0x21a9),'icon':'icon-apps','interval':_0x536914(0x2145),'isApp':!![],'fields':[{'title':'times','name':'times','type':_0x536914(0x2926),'defaultValue':'1','values':[{'option':_0x536914(0x1abb),'value':'1'},{'option':_0x536914(0xfdd),'value':'0'}],'required':!![],'param':0x0},{'title':'Text','name':'text','type':_0x536914(0x1e3c),'required':!![],'param':0x1}]},{'app':_0x536914(0x67b),'appType':_0x536914(0x67b),'type':'close','icon':_0x536914(0xd46),'interval':_0x536914(0x2145),'isApp':!![],'fields':[{'title':_0x536914(0x217f),'name':'disposition','type':'text','required':!![],'param':0x0}]},{'app':_0x536914(0xac8),'appType':_0x536914(0xac8),'type':_0x536914(0xac8),'foreignKey':_0x536914(0x923),'icon':_0x536914(0xd46),'interval':_0x536914(0x2145),'isApp':!![],'extraApi':[{'name':'tags','field':{'name':_0x536914(0xac8),'key':_0x536914(0x2494)},'route':'tag','filters':{'fields':_0x536914(0x1427),'sort':_0x536914(0x2494),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x536914(0x1e9f),'name':'tag','type':_0x536914(0x26e8),'values':_0x536914(0x16a6),'value':'tag.name','option':_0x536914(0xcef),'required':!![],'param':0x0}]},{'app':_0x536914(0x1084),'appType':_0x536914(0x1084),'type':_0x536914(0x1084),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x536914(0x2367),'name':'key','type':_0x536914(0x39b),'required':!![],'param':0x0},{'title':_0x536914(0x1cbd),'name':_0x536914(0x1cbd),'type':_0x536914(0x2926),'defaultValue':'\x27en\x27','values':[{'option':'Danish','value':_0x536914(0x2287)},{'option':_0x536914(0x1230),'value':_0x536914(0x160)},{'option':_0x536914(0x10a4),'value':_0x536914(0x746)},{'option':_0x536914(0x28bf),'value':_0x536914(0x1517)},{'option':_0x536914(0x656),'value':'\x27es\x27'},{'option':_0x536914(0x976),'value':_0x536914(0x249a)},{'option':_0x536914(0x2079),'value':_0x536914(0xfce)},{'option':_0x536914(0xf5c),'value':_0x536914(0x295)},{'option':_0x536914(0x209d),'value':_0x536914(0x1644)},{'option':'Dutch','value':'\x27nl\x27'},{'option':'Norwegian','value':_0x536914(0x1476)},{'option':_0x536914(0x1190),'value':_0x536914(0x70b)},{'option':'Portuguese\x20(Nrazilian)','value':'\x27pt-br\x27'},{'option':_0x536914(0x21f6),'value':_0x536914(0x86f)},{'option':_0x536914(0xa2d),'value':'\x27sv\x27'},{'option':_0x536914(0x17e8),'value':_0x536914(0x5aa)},{'option':_0x536914(0xd44),'value':'\x27uk\x27'},{'option':_0x536914(0x133e),'value':_0x536914(0x784)},{'option':_0x536914(0x14aa),'value':_0x536914(0x34f)},{'option':_0x536914(0x263a),'value':_0x536914(0x188d)}],'required':!![],'param':0x1},{'title':_0x536914(0x31b),'name':_0x536914(0x31b),'type':_0x536914(0x1e3c),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x536914(0xda3),'appType':_0x536914(0x1b1a),'type':_0x536914(0x1b1a),'icon':_0x536914(0xd46),'interval':_0x536914(0x2145),'isApp':!![],'fields':[{'title':'ProjectID','name':_0x536914(0xbfd),'type':_0x536914(0x39b),'required':!![],'param':0x0},{'title':_0x536914(0x37c),'name':_0x536914(0x4b2),'type':_0x536914(0x39b),'required':!![],'param':0x1},{'title':_0x536914(0xda2),'name':'privateKey','type':'textarea','required':!![],'param':0x2},{'title':'language','name':_0x536914(0x1cbd),'type':'select','defaultValue':_0x536914(0x160),'values':[{'value':_0x536914(0x34f),'option':_0x536914(0x25aa)},{'value':'\x27zh-CN\x27','option':_0x536914(0x133e)},{'value':_0x536914(0x188d),'option':_0x536914(0x263a)},{'value':_0x536914(0x2287),'option':'Danish'},{'value':_0x536914(0x87f),'option':_0x536914(0x183)},{'value':'\x27en\x27','option':_0x536914(0x1230)},{'value':_0x536914(0x2863),'option':_0x536914(0x1c1f)},{'value':_0x536914(0x20a5),'option':_0x536914(0x24bc)},{'value':_0x536914(0x2620),'option':_0x536914(0x201c)},{'value':_0x536914(0x28e0),'option':_0x536914(0x2196)},{'value':'\x27en-US\x27','option':_0x536914(0x1a41)},{'value':_0x536914(0x249a),'option':_0x536914(0x976)},{'value':_0x536914(0x24f3),'option':_0x536914(0xee8)},{'value':_0x536914(0x23f3),'option':_0x536914(0xf9a)},{'value':_0x536914(0x746),'option':'German'},{'value':_0x536914(0x26a7),'option':_0x536914(0xb30)},{'value':_0x536914(0xfce),'option':_0x536914(0x2079)},{'value':_0x536914(0x1517),'option':'Italian'},{'value':_0x536914(0x295),'option':_0x536914(0xf5c)},{'value':_0x536914(0x1644),'option':_0x536914(0x1ec8)},{'value':_0x536914(0x1476),'option':_0x536914(0x22d3)},{'value':_0x536914(0x1f4b),'option':'Polish'},{'value':'\x27pt-BR\x27','option':'Portuguese\x20(Brazil)'},{'value':_0x536914(0x1106),'option':_0x536914(0x739)},{'value':_0x536914(0x86f),'option':_0x536914(0x21f6)},{'value':_0x536914(0x17aa),'option':'Spanish'},{'value':_0x536914(0xc89),'option':'Spanish\x20(Latin\x20America)'},{'value':_0x536914(0xcae),'option':_0x536914(0xd7e)},{'value':_0x536914(0x15f8),'option':_0x536914(0xa2d)},{'value':_0x536914(0x5aa),'option':_0x536914(0x17e8)},{'value':_0x536914(0x551),'option':_0x536914(0x2060)},{'value':'\x27uk\x27','option':'Ukrainian'}],'required':!![],'param':0x3},{'title':_0x536914(0x31b),'name':_0x536914(0x31b),'type':_0x536914(0x1e3c),'maxlength':0xff,'param':0x4,'help':!![]}]},{'app':'amazonlex','appType':_0x536914(0x290d),'type':_0x536914(0x290d),'icon':'icon-apps','interval':_0x536914(0x2145),'isApp':!![],'fields':[{'title':_0x536914(0x1466),'name':_0x536914(0x1466),'type':'text','required':!![],'param':0x0},{'title':_0x536914(0x1b1),'name':'secretaccesskey','type':_0x536914(0x39b),'required':!![],'param':0x1},{'title':_0x536914(0x17a2),'name':_0x536914(0x17a2),'type':_0x536914(0x2926),'defaultValue':_0x536914(0x21de),'values':[{'option':_0x536914(0x3f1),'value':_0x536914(0x21de)},{'option':_0x536914(0x528),'value':_0x536914(0x6cc)},{'option':_0x536914(0xdda),'value':_0x536914(0x28f4)},{'option':_0x536914(0xbb7),'value':_0x536914(0x2504)}],'required':!![],'param':0x2},{'title':_0x536914(0x2797),'name':'botname','type':_0x536914(0x39b),'required':!![],'param':0x3},{'title':_0x536914(0x31b),'name':'welcomemessage','type':_0x536914(0x1e3c),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],[_0x536914(0x16e1)]),{'isApp':![]}),_0x9b8760[_0x536914(0x2764)]={'group':{'name':'opt1','pull':_0x536914(0x24b2)},'animation':0x64,'sort':![]},_0x9b8760[_0x536914(0x221f)]={'group':{'name':_0x536914(0x3a8),'put':_0x536914(0x7f2)},'animation':0x64,'onAdd':function(_0x5df2f4){const _0xc50b03=_0x536914;_0x335e5e(_0x5df2f4,_0x5df2f4[_0xc50b03(0xa3e)]);},'onSort':function(){_0x3a3247();}},_0x9b8760[_0x536914(0x2354)]=_0x413475,_0x9b8760[_0x536914(0x217e)]=_0x1948f6,_0x9b8760[_0x536914(0xcb8)]=_0x252d23,_0x9b8760[_0x536914(0xeac)]=_0x335e5e,_0x9b8760['editInterval']=_0x60d462,_0x9b8760['deleteWhatsappAccountApp']=_0x28397a,_0x9b8760['deleteSelectedWhatsappAccountApps']=_0x48152b,_0x9b8760[_0x536914(0x14d0)]=_0x3a3247,_0x9b8760[_0x536914(0x1039)]=_0x33cc0a;function _0x413475(_0x5be6ac,_0x3fabc7){const _0x1ae2fe=_0x536914;_0x9b8760[_0x1ae2fe(0x217c)]=_0x5be6ac,_0x9b8760[_0x1ae2fe(0x402)]=typeof _0x3fabc7!==_0x1ae2fe(0x19a1)?_0x3fabc7:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x9b8760[_0x1ae2fe(0x221f)][_0x1ae2fe(0x1a95)]=!_0x9b8760['crudPermissions'][_0x1ae2fe(0xd86)]?!![]:![],_0x9b8760[_0x1ae2fe(0x289a)]['id']=_0x5be6ac['id'],_0x9b8760['query'][_0x1ae2fe(0x210d)]=!![],_0x9b8760[_0x1ae2fe(0x289a)]['nolimit']=!![],_0x9b8760[_0x1ae2fe(0xcb8)](),_0x9b8760[_0x1ae2fe(0x1039)]();}function _0x1948f6(_0x57eeab,_0x120ca8,_0x4e603b){const _0x4e374c=_0x536914,_0x1115ec=_0x5a5c01[_0x4e374c(0x856)]()[_0x4e374c(0x2021)](_0x4e374c(0x2041))['htmlContent'](_0x4e374c(0x50b)+_0x57eeab[_0x4e374c(0x16e1)]+_0x4e374c(0x26d0)+_0x4e374c(0x4b8))['ariaLabel'](_0x4e374c(0x1260))[_0x4e374c(0x2283)](_0x4e603b)['ok']('OK')[_0x4e374c(0x101a)]('CANCEL');_0x5a5c01[_0x4e374c(0xa60)](_0x1115ec)[_0x4e374c(0x64a)](function(){const _0x341e79=_0x4e374c;_0x9b8760['whatsappAccountApps']['rows'][_0x341e79(0x18f0)](_0x120ca8,0x1),_0x3a3247();},function(){const _0xc2b31e=_0x4e374c;console[_0xc2b31e(0x9b4)](_0xc2b31e(0x18fd));});}function _0x335e5e(_0x1b2798,_0x2ab3ed){const _0x3b6479=_0x536914;if(_0x9b8760[_0x3b6479(0x1840)][_0x3b6479(0x28b8)][_0x3b6479(0x1b9e)]){const _0x31b422=_0x9b8760[_0x3b6479(0x1840)][_0x3b6479(0x28b8)][_0x2ab3ed]?_0x9b8760[_0x3b6479(0x1840)][_0x3b6479(0x28b8)][_0x2ab3ed]:_0x9b8760[_0x3b6479(0x1840)][_0x3b6479(0x28b8)][0x0],_0x59179d=(_0x31b422[_0x3b6479(0x4f4)]||_0x31b422[_0x3b6479(0x16e1)])[_0x3b6479(0x2554)]();_0x5a5c01[_0x3b6479(0xa60)]({'controller':_0x3b6479(0x19c3)+_0x59179d+_0x3b6479(0x1528),'controllerAs':'vm','templateUrl':_0x272da6[_0x59179d],'parent':angular[_0x3b6479(0x1f81)](_0x4a5873[_0x3b6479(0xb49)]),'targetEvent':_0x1b2798,'clickOutsideToClose':!![],'locals':{'whatsappAccountApp':_0x31b422,'whatsappAccount':_0x9b8760[_0x3b6479(0x217c)],'crudPermissions':_0x9b8760['crudPermissions']}})['then'](function(_0x500dd1){const _0x2d1404=_0x3b6479;_0x500dd1&&(_0x500dd1['id']?_0x9b8760[_0x2d1404(0x1840)][_0x2d1404(0x28b8)][_0x2ab3ed]=_0x500dd1:_0x9b8760['whatsappAccountApps'][_0x2d1404(0x28b8)][_0x2d1404(0x18f0)](_0x2ab3ed,0x0,_0x500dd1),_0x3a3247());})[_0x3b6479(0x20cd)](function(_0x550a0c){const _0x3ad7f8=_0x3b6479;_0x550a0c&&_0x49cc9c['error']({'title':_0x550a0c[_0x3ad7f8(0x10b3)]?'API:'+_0x550a0c[_0x3ad7f8(0x10b3)]+_0x3ad7f8(0x21db)+_0x550a0c['statusText']:_0x3ad7f8(0xd28),'msg':_0x550a0c[_0x3ad7f8(0x1c52)]?JSON['stringify'](_0x550a0c[_0x3ad7f8(0x1c52)]):_0x550a0c[_0x3ad7f8(0x2915)]()});});}}function _0x60d462(_0x4929b6,_0x3fbfa5){const _0x1ec073=_0x536914;if(_0x9b8760[_0x1ec073(0x1840)][_0x1ec073(0x28b8)][_0x1ec073(0x1b9e)]){const _0x2b59dc=_0x9b8760['whatsappAccountApps']['rows'][_0x3fbfa5]?_0x9b8760[_0x1ec073(0x1840)][_0x1ec073(0x28b8)][_0x3fbfa5]:_0x9b8760[_0x1ec073(0x1840)]['rows'][0x0];_0x5a5c01['show']({'controller':_0x1ec073(0x39c),'controllerAs':'vm','templateUrl':_0x1cfef3,'parent':angular[_0x1ec073(0x1f81)](_0x4a5873[_0x1ec073(0xb49)]),'targetEvent':_0x4929b6,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x2b59dc[_0x1ec073(0xcfd)],'IntervalId':_0x2b59dc[_0x1ec073(0xb71)],'application':!![]},'intervals':[],'crudPermissions':_0x9b8760['crudPermissions']}})[_0x1ec073(0x64a)](function(_0x452217){const _0x2d9028=_0x1ec073;_0x452217&&(_0x2b59dc[_0x2d9028(0xcfd)]=_0x452217[_0x2d9028(0xcfd)]||_0x2d9028(0x2145),_0x2b59dc[_0x2d9028(0xb71)]=_0x452217[_0x2d9028(0xb71)]||null,_0x3a3247());});}}function _0x3a3247(){const _0x538cb4=_0x536914;let _0x510a8f=0x1,_0x54caa1=[];for(let _0x1682f4=0x0;_0x1682f4<_0x9b8760[_0x538cb4(0x1840)][_0x538cb4(0x28b8)]['length'];_0x1682f4++){const _0x504296=_0x9b8760['whatsappAccountApps'][_0x538cb4(0x28b8)][_0x1682f4],_0x3b3d9a=[],_0x4bbdfb=[];_0x504296[_0x538cb4(0x15e4)]=_0x504296['interval']!==_0x538cb4(0x2145)?[_0x504296[_0x538cb4(0xcfd)]]:_0x504296[_0x538cb4(0xb71)]?_0x28c606()[_0x538cb4(0x1de5)](_0x28c606()[_0x538cb4(0xcec)](_0x9b8760['intervals'][_0x538cb4(0x28b8)],{'IntervalId':_0x504296[_0x538cb4(0xb71)]}),'interval'):[],_0x504296['context']=_0x9b8760[_0x538cb4(0x217c)][_0x538cb4(0x139)],_0x504296[_0x538cb4(0x19c8)]=_0x9b8760['whatsappAccount'][_0x538cb4(0x19c8)],_0x504296[_0x538cb4(0x2185)]&&(_0x504296[_0x538cb4(0x2185)]=_0x504296['type']['toLowerCase']()),_0x504296[_0x538cb4(0x1095)]=_0x3b3d9a[_0x538cb4(0x1b9e)]?_0x28c606()[_0x538cb4(0xe62)](_0x3b3d9a)[_0x538cb4(0x1095)]+0x1:_0x510a8f,_0x510a8f=(_0x4bbdfb[_0x538cb4(0x1b9e)]?_0x28c606()[_0x538cb4(0xe62)](_0x4bbdfb)[_0x538cb4(0x1095)]:_0x504296[_0x538cb4(0x1095)])+0x1,_0x54caa1=_0x28c606()[_0x538cb4(0x2808)](_0x54caa1,_0x3b3d9a,[_0x504296],_0x4bbdfb);}_0x29111c[_0x538cb4(0x217c)][_0x538cb4(0x1c5d)]({'id':_0x9b8760['whatsappAccount']['id']},_0x28c606()['sortBy'](_0x54caa1,'priority'))[_0x538cb4(0x15e7)]['then'](function(_0x204d7d){const _0x403cb8=_0x538cb4;_0x9b8760[_0x403cb8(0x1840)]['rows']=_0x204d7d[_0x403cb8(0x28b8)];})[_0x538cb4(0x20cd)](function(_0x28ef6a){const _0x4fe130=_0x538cb4;console[_0x4fe130(0x1bd0)](_0x28ef6a);});}function _0x4146a5(_0x5d78a8){const _0x5afb96=_0x536914;_0x9b8760[_0x5afb96(0x1840)]=_0x5d78a8||{'count':0x0,'rows':[]};}function _0x33cc0a(){const _0x581857=_0x536914;return _0x29111c[_0x581857(0xcfd)][_0x581857(0x896)]({'fields':_0x581857(0x1aa)})[_0x581857(0x15e7)][_0x581857(0x64a)](function(_0x401e29){const _0x4f5459=_0x581857;_0x9b8760[_0x4f5459(0x15e4)]=_0x401e29;})[_0x581857(0x20cd)](function(_0x367839){const _0x17ba92=_0x581857;console[_0x17ba92(0x1bd0)](_0x367839);});}function _0x252d23(){const _0x59187e=_0x536914;_0x9b8760[_0x59187e(0x1713)]=_0x29111c[_0x59187e(0x217c)][_0x59187e(0x42f)](_0x9b8760[_0x59187e(0x289a)],_0x4146a5)[_0x59187e(0x15e7)];}function _0x28397a(_0xce29cd){const _0x2413b8=_0x536914;_0x28c606()[_0x2413b8(0x21c7)](_0x9b8760[_0x2413b8(0x1840)]['rows'],{'id':_0xce29cd['id']}),_0x3a3247(),_0x49cc9c['success']({'title':'App\x20deleted!','msg':_0xce29cd['app']?_0xce29cd[_0x2413b8(0x16e1)]+_0x2413b8(0x1fa8):''});}function _0x48152b(_0x3521a2){const _0x4d7ba5=_0x536914,_0xdc11a4=_0x5a5c01['confirm']()[_0x4d7ba5(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')[_0x4d7ba5(0x33a)](_0x4d7ba5(0x50b)+_0x9b8760[_0x4d7ba5(0x336)][_0x4d7ba5(0x1b9e)]+_0x4d7ba5(0x163e)+_0x4d7ba5(0x4b8))[_0x4d7ba5(0x213e)](_0x4d7ba5(0x2180))[_0x4d7ba5(0x2283)](_0x3521a2)['ok']('OK')[_0x4d7ba5(0x101a)](_0x4d7ba5(0x18fd));_0x5a5c01['show'](_0xdc11a4)[_0x4d7ba5(0x64a)](function(){const _0x5e7bcb=_0x4d7ba5;_0x9b8760['selectedWhatsappAccountApps'][_0x5e7bcb(0x1397)](function(_0x15b8b1){const _0x3c4335=_0x5e7bcb;_0x28c606()['remove'](_0x9b8760[_0x3c4335(0x1840)]['rows'],{'id':_0x15b8b1['id']});}),_0x9b8760['selectedWhatsappAccountApps']=[],_0x3a3247();});}}const _0x24f612=_0x5b435b;;_0x577cba[_0x49a1e3(0x1e73)]=['$mdDialog','$q',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x217c),'whatsappAccounts',_0x49a1e3(0x252e),_0x49a1e3(0x298c),_0x49a1e3(0xdcf),'crudPermissions'];function _0x577cba(_0x5e4fb9,_0x2ead68,_0x4f3865,_0x45b056,_0x872a86,_0x51edb7,_0x18c2b2,_0x589768,_0x1fd063,_0x4626df){const _0x586a16=_0x49a1e3,_0x247bdc=this;_0x247bdc[_0x586a16(0x1d3d)]=_0x1fd063[_0x586a16(0x808)](),_0x247bdc[_0x586a16(0x217c)]=_0x872a86,_0x247bdc[_0x586a16(0x402)]=_0x4626df,_0x247bdc[_0x586a16(0x252e)]=_0x18c2b2,_0x247bdc[_0x586a16(0x23cb)]=[],_0x247bdc[_0x586a16(0x13d1)]=[],_0x247bdc[_0x586a16(0x1f4f)]=[],_0x247bdc['startingAllowedItems']=[],_0x247bdc[_0x586a16(0x24e1)]=[],_0x247bdc['pendingChanges']=![],_0x247bdc[_0x586a16(0x2483)]=_0xf0bd82,_0x247bdc[_0x586a16(0x4c4)]=_0x3fd470,_0x247bdc[_0x586a16(0x16cb)]=_0xa007c8,_0x247bdc[_0x586a16(0x1eeb)]={'readOnly':!_0x247bdc['crudPermissions'][_0x586a16(0xd86)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x586a16(0x2494),'line1':'fullname','line2':[_0x586a16(0x2494),_0x586a16(0xe2f)],'line3':'','labelAll':_0x589768[_0x586a16(0x2292)]('APP.ALL_AGENTS'),'labelSelected':_0x589768['instant'](_0x586a16(0xcf8)),'transferCallback':function(){const _0x5369c0=_0x586a16,_0xf02e46=_0x28c606()['xorBy'](_0x247bdc[_0x5369c0(0x24e1)],_0x247bdc[_0x5369c0(0x1f4f)],'id');_0x247bdc[_0x5369c0(0xe9e)]=_0x28c606()['isEmpty'](_0xf02e46)?![]:!![];}};function _0xf0bd82(){const _0x29ee63=_0x586a16;return _0x1fd063['hasRole'](_0x29ee63(0x333))?_0x3b0c2b()[_0x29ee63(0x20cd)](function(_0x3c0989){const _0x165a95=_0x29ee63;_0x4f3865[_0x165a95(0x1bd0)]({'title':_0x3c0989['status']?_0x165a95(0x575)+_0x3c0989['status']+_0x165a95(0x21db)+_0x3c0989[_0x165a95(0x2115)]:_0x165a95(0x554),'msg':_0x3c0989[_0x165a95(0x10b3)]?JSON['stringify'](_0x3c0989[_0x165a95(0x1c52)]):_0x3c0989['toString']()});}):_0xd2c5f6()[_0x29ee63(0x64a)](function(_0x38982a){return _0x247bdc['section']=_0x38982a,_0x3b0c2b();})[_0x29ee63(0x20cd)](function(_0x51e48d){const _0x2d5899=_0x29ee63;_0x4f3865['error']({'title':_0x51e48d[_0x2d5899(0x10b3)]?_0x2d5899(0x575)+_0x51e48d[_0x2d5899(0x10b3)]+_0x2d5899(0x21db)+_0x51e48d['statusText']:'SYSTEM:GET_AGENTS','msg':_0x51e48d['status']?JSON[_0x2d5899(0x2317)](_0x51e48d[_0x2d5899(0x1c52)]):_0x51e48d['toString']()});});}function _0xd2c5f6(){return _0x2ead68(function(_0x13220d,_0x3bf2b0){const _0x4da02b=a0_0x4127;_0x45b056[_0x4da02b(0x16b2)][_0x4da02b(0x896)]({'userProfileId':_0x247bdc['currentUser'][_0x4da02b(0x21ac)],'name':'Agents'})['$promise'][_0x4da02b(0x64a)](function(_0x29473e){const _0x3d3a5d=_0x4da02b,_0x4fc1a4=_0x29473e&&_0x29473e['rows']?_0x29473e[_0x3d3a5d(0x28b8)][0x0]:null;_0x13220d(_0x4fc1a4);})['catch'](function(_0x5d5475){_0x3bf2b0(_0x5d5475);});});}function _0x3b0c2b(){return _0x2ead68(function(_0x3e6f83,_0x571fb8){const _0x48fc3e=a0_0x4127;return _0x4235dc()[_0x48fc3e(0x64a)](function(_0x1ccce4){const _0x470b60=_0x48fc3e;return _0x247bdc[_0x470b60(0x23cb)]=_0x1ccce4[_0x470b60(0x28b8)]?_0x1ccce4[_0x470b60(0x28b8)]:[],_0x1fd063[_0x470b60(0x4de)]('admin')?_0x1ccce4:_0x247bdc[_0x470b60(0xa21)]?_0x247bdc[_0x470b60(0xa21)][_0x470b60(0x11da)]?_0x1ccce4:_0x62e78b():null;})[_0x48fc3e(0x64a)](function(_0x2bab32){const _0x1b202=_0x48fc3e,_0x3d59e8=_0x2bab32&&_0x2bab32[_0x1b202(0x28b8)]?_0x2bab32[_0x1b202(0x28b8)]:[];return _0x247bdc['allowedItems']=_0x28c606()[_0x1b202(0x1de5)](_0x3d59e8,function(_0xf44392){const _0x29b9ff=_0x1b202;return _0x28c606()[_0x29b9ff(0x27bc)](_0x247bdc['items'],{'id':_0x1fd063[_0x29b9ff(0x4de)](_0x29b9ff(0x333))||_0x247bdc[_0x29b9ff(0xa21)][_0x29b9ff(0x11da)]?_0xf44392['id']:_0xf44392[_0x29b9ff(0x145)]});}),_0x247bdc[_0x1b202(0x206b)]=angular['copy'](_0x247bdc[_0x1b202(0x13d1)]),_0x247bdc['items']['forEach'](function(_0xbaa1ff){const _0x19eea4=_0x1b202,_0x3b6aae=_0x28c606()[_0x19eea4(0x27bc)](_0x247bdc[_0x19eea4(0x13d1)],{'id':_0xbaa1ff['id']});_0x1fd063['hasRole'](_0x19eea4(0x333))?_0xbaa1ff[_0x19eea4(0x6f9)]=!![]:_0xbaa1ff[_0x19eea4(0x6f9)]=typeof _0x3b6aae!==_0x19eea4(0x19a1)?!![]:![];}),_0x875851();})[_0x48fc3e(0x64a)](function(_0x63acbe){const _0x176421=_0x48fc3e,_0x29a1cd=_0x63acbe&&_0x63acbe[_0x176421(0x28b8)]?_0x63acbe[_0x176421(0x28b8)]:[];_0x247bdc['selectedItems']=_0x28c606()[_0x176421(0x1de5)](_0x29a1cd,function(_0xb0fcb4){const _0x3df674=_0x176421,_0x54106e=_0x28c606()[_0x3df674(0x27bc)](_0x247bdc[_0x3df674(0x23cb)],{'id':_0xb0fcb4['id']});return _0x54106e[_0x3df674(0x70f)]=_0xb0fcb4['UserWhatsappAccount']?_0x3df674(0xcff)+_0xb0fcb4[_0x3df674(0x1a24)]['penalty']:'',_0x54106e[_0x3df674(0xe2f)]=typeof _0xb0fcb4[_0x3df674(0xe2f)]!==_0x3df674(0x19a1)?'<'+_0xb0fcb4[_0x3df674(0xe2f)]+'>':'',_0x54106e;}),_0x247bdc[_0x176421(0x24e1)]=angular[_0x176421(0x289e)](_0x247bdc[_0x176421(0x1f4f)]),_0x247bdc[_0x176421(0x1eeb)][_0x176421(0x1f4f)]=_0x247bdc[_0x176421(0x1f4f)],_0x247bdc['dualMultiselectOptions']['items']=_0x28c606()['differenceBy'](_0x247bdc[_0x176421(0x13d1)],_0x247bdc['dualMultiselectOptions'][_0x176421(0x1f4f)],'id'),_0x3e6f83();})['catch'](function(_0x4b2acf){_0x571fb8(_0x4b2acf);});});}function _0x62e78b(){return _0x2ead68(function(_0x37c90b,_0xe19fc8){const _0x4359e6=a0_0x4127;return _0x45b056[_0x4359e6(0x1617)][_0x4359e6(0x896)]({'sectionId':_0x247bdc[_0x4359e6(0xa21)]['id'],'nolimit':!![]})[_0x4359e6(0x15e7)][_0x4359e6(0x64a)](function(_0x54e2d3){_0x37c90b(_0x54e2d3);})[_0x4359e6(0x20cd)](function(_0x464655){_0xe19fc8(_0x464655);});});}function _0x875851(){return _0x2ead68(function(_0x148f6c,_0x4cc596){const _0x147f89=a0_0x4127;return _0x45b056['whatsappAccount'][_0x147f89(0xa10)]({'id':_0x247bdc[_0x147f89(0x217c)]['id'],'fields':_0x147f89(0x2105),'nolimit':!![],'role':_0x147f89(0x11ae)})[_0x147f89(0x15e7)][_0x147f89(0x64a)](function(_0x24b691){_0x148f6c(_0x24b691);})[_0x147f89(0x20cd)](function(_0x1b933b){_0x4cc596(_0x1b933b);});});}function _0x4235dc(){return _0x2ead68(function(_0x439f9c,_0x3cd79b){const _0x3a103a=a0_0x4127;return _0x45b056['user'][_0x3a103a(0x896)]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x3a103a(0x11ae)})[_0x3a103a(0x15e7)][_0x3a103a(0x64a)](function(_0x18e1fc){_0x439f9c(_0x18e1fc);})[_0x3a103a(0x20cd)](function(_0x424eba){_0x3cd79b(_0x424eba);});});}function _0x597844(_0x47e7c6){return _0x2ead68(function(_0x4fb9ab,_0x4af388){const _0x2dafa3=a0_0x4127;_0x28c606()[_0x2dafa3(0x940)](_0x47e7c6)?_0x4fb9ab():_0x45b056[_0x2dafa3(0x217c)][_0x2dafa3(0x1575)]({'id':_0x247bdc[_0x2dafa3(0x217c)]['id'],'ids':_0x28c606()[_0x2dafa3(0x1de5)](_0x47e7c6,'id')})[_0x2dafa3(0x15e7)][_0x2dafa3(0x64a)](function(){_0x4fb9ab();})[_0x2dafa3(0x20cd)](function(_0x258d06){_0x4af388(_0x258d06);});});}function _0x258c3f(_0x2b880a){return _0x2ead68(function(_0x406dfc,_0x8ac5e0){const _0x1c8c64=a0_0x4127;_0x28c606()[_0x1c8c64(0x940)](_0x2b880a)?_0x406dfc():_0x45b056[_0x1c8c64(0x217c)][_0x1c8c64(0x251d)]({'id':_0x247bdc[_0x1c8c64(0x217c)]['id'],'ids':_0x28c606()['map'](_0x2b880a,'id')})[_0x1c8c64(0x15e7)][_0x1c8c64(0x64a)](function(){_0x406dfc();})[_0x1c8c64(0x20cd)](function(_0x17a240){_0x8ac5e0(_0x17a240);});});}function _0x3fd470(){const _0x4460cc=_0x586a16,_0x7fd136=_0x28c606()[_0x4460cc(0x23e5)](_0x247bdc[_0x4460cc(0x24e1)],_0x247bdc[_0x4460cc(0x1f4f)],'id'),_0x54153a=_0x28c606()[_0x4460cc(0x23e5)](_0x247bdc[_0x4460cc(0x1f4f)],_0x247bdc[_0x4460cc(0x24e1)],'id');return _0x258c3f(_0x7fd136)[_0x4460cc(0x64a)](function(){return _0x597844(_0x54153a);})[_0x4460cc(0x64a)](function(){const _0x4f0a03=_0x4460cc;_0x247bdc[_0x4f0a03(0xe9e)]=![],_0x247bdc[_0x4f0a03(0x206b)]=angular[_0x4f0a03(0x289e)](_0x247bdc['allowedItems']),_0x247bdc[_0x4f0a03(0x24e1)]=angular[_0x4f0a03(0x289e)](_0x247bdc[_0x4f0a03(0x1f4f)]),_0x4f3865['success']({'title':_0x4f0a03(0x24d6),'msg':_0x4f0a03(0x1db)});})[_0x4460cc(0x20cd)](function(_0xd5a1e2){const _0x44666d=_0x4460cc;_0x4f3865['error']({'title':_0xd5a1e2[_0x44666d(0x10b3)]?_0x44666d(0x575)+_0xd5a1e2[_0x44666d(0x10b3)]+_0x44666d(0x21db)+_0xd5a1e2[_0x44666d(0x2115)]:_0x44666d(0x1226),'msg':_0xd5a1e2[_0x44666d(0x10b3)]?JSON[_0x44666d(0x2317)](_0xd5a1e2[_0x44666d(0x1c52)]):_0xd5a1e2[_0x44666d(0x2915)]()});});}function _0xa007c8(){const _0x42211f=_0x586a16;_0x5e4fb9[_0x42211f(0x268e)]();}}const _0x3207e0=_0x577cba;;_0x4b75d2[_0x49a1e3(0x1e73)]=['$mdDialog','$q',_0x49a1e3(0x680),'whatsappAccountApp','whatsappAccount',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x4b75d2(_0x295c5a,_0xf6f5db,_0x28f4d5,_0x438d65,_0x22fdba,_0x33e40e,_0x55dc67,_0x45517c){const _0x13acad=_0x49a1e3,_0x16b496=this;_0x16b496[_0x13acad(0x1d3d)]=_0x55dc67[_0x13acad(0x808)](),_0x16b496[_0x13acad(0xbae)]=[],_0x16b496[_0x13acad(0x2021)]='WHATSAPP.EDIT_'+(_0x438d65[_0x13acad(0x4f4)]||_0x438d65['app'])[_0x13acad(0xa3c)](),_0x16b496['agent']=angular[_0x13acad(0x289e)](_0x438d65),_0x16b496[_0x13acad(0x402)]=_0x45517c,_0x16b496[_0x13acad(0x6c2)]={};if(_0x16b496[_0x13acad(0x11ae)]['appdata'])switch(_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x4f4)]?_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x4f4)][_0x13acad(0x2554)]():_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x16e1)]['toLowerCase']()){case'custom':break;case _0x13acad(0x1084):{const _0x5f4ff2=_0x16b496[_0x13acad(0x11ae)][_0x13acad(0xacb)][_0x13acad(0x282c)](',');_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x2125)]=_0x5f4ff2[0x0],_0x16b496[_0x13acad(0x11ae)]['language']=_0x5f4ff2[0x1],_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x31b)]=_0x5f4ff2[_0x13acad(0x142e)](0x2,_0x5f4ff2[_0x13acad(0x1b9e)])['join'](',');}break;case'dialogflowv2':{const _0x1f116f=_0x16b496['agent'][_0x13acad(0xacb)][_0x13acad(0x282c)](',');_0x16b496[_0x13acad(0x11ae)]['projectId']=_0x1f116f[0x0],_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x4b2)]=_0x1f116f[0x1],_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x1b1b)]=_0x1f116f[0x2],_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x1cbd)]=_0x1f116f[0x3],_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x31b)]=_0x1f116f['slice'](0x4,_0x1f116f[_0x13acad(0x1b9e)])[_0x13acad(0x9a6)](',');}break;case'amazonlex':{const _0x11c20a=_0x16b496[_0x13acad(0x11ae)]['appdata'][_0x13acad(0x282c)](',');_0x16b496['agent'][_0x13acad(0x1466)]=_0x11c20a[0x0],_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x1b1)]=_0x11c20a[0x1],_0x16b496[_0x13acad(0x11ae)]['lexregion']=_0x11c20a[0x2],_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x2797)]=_0x11c20a[0x3],_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x31b)]=_0x11c20a['slice'](0x4,_0x11c20a[_0x13acad(0x1b9e)])[_0x13acad(0x9a6)](',');}break;case _0x13acad(0x21a9):{const _0x32b953=_0x16b496[_0x13acad(0x11ae)][_0x13acad(0xacb)][_0x13acad(0x282c)](',');_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x95f)]=isNaN(_0x32b953[0x0])?_0x32b953[0x0]:parseInt(_0x32b953[0x0],0xa),_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x39b)]=_0x32b953[_0x13acad(0x142e)](0x1,_0x32b953[_0x13acad(0x1b9e)])[_0x13acad(0x9a6)](',');}break;case _0x13acad(0x18ca):_0x16b496[_0x13acad(0x11ae)]['text']=_0x16b496[_0x13acad(0x11ae)]['appdata'];break;case'set':_0x16b496[_0x13acad(0x11ae)]['name']=_0x16b496[_0x13acad(0x11ae)][_0x13acad(0xacb)][_0x13acad(0x282c)]('=')[0x0],_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x1096)]=_0x16b496['agent'][_0x13acad(0xacb)][_0x13acad(0x282c)]('=')[0x1];break;case _0x13acad(0x1e67):_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x1bd9)]=_0x16b496[_0x13acad(0x11ae)][_0x13acad(0xacb)];break;default:{const _0x505d52=_0x16b496['agent'][_0x13acad(0xacb)][_0x13acad(0x282c)](',');_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x11ae)]=_0x28c606()['isEmpty'](_0x505d52[0x0])?_0x505d52[0x0]:isNaN(_0x505d52[0x0])?_0x505d52[0x0]:parseInt(_0x505d52[0x0],0xa),_0x16b496[_0x13acad(0x11ae)]['timeout']=_0x28c606()['isEmpty'](_0x505d52[0x1])?_0x505d52[0x1]:isNaN(_0x505d52[0x1])?_0x505d52[0x1]:parseInt(_0x505d52[0x1],0xa);}break;}else _0x16b496[_0x13acad(0x11ae)][_0x13acad(0x16d)]=0x1e;_0x16b496['agent'][_0x13acad(0x2185)]&&_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x2185)][_0x13acad(0x2554)]()==='outbound'&&_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x4f4)][_0x13acad(0x2554)]()===_0x13acad(0x20eb)&&(_0x16b496['agent']['prefix']=_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x267a)]?_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x267a)]['split']('$')[0x0]:undefined,_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x1a9b)]=_0x16b496[_0x13acad(0x11ae)][_0x13acad(0x1abe)]?_0x13acad(0x2489)+_0x16b496['agent'][_0x13acad(0x1abe)]:undefined);_0x16b496[_0x13acad(0x276e)]=_0x124cea,_0x16b496['closeDialog']=_0x10e7e6,_0x55dc67['hasRole']('admin')?_0x33e40e[_0x13acad(0x2e8)][_0x13acad(0x896)]({'fields':_0x13acad(0x1427),'sort':_0x13acad(0x2494),'nolimit':_0x13acad(0x1685),'role':_0x13acad(0x11ae)})[_0x13acad(0x15e7)][_0x13acad(0x64a)](function(_0x4654ff){const _0x533af4=_0x13acad;_0x16b496[_0x533af4(0xd77)]=_0x4654ff[_0x533af4(0x28b8)]||[];})[_0x13acad(0x20cd)](function(_0x9f5a7c){const _0x382795=_0x13acad;_0x28f4d5[_0x382795(0x1bd0)]({'title':_0x9f5a7c['status']?_0x382795(0x575)+_0x9f5a7c[_0x382795(0x10b3)]+_0x382795(0x21db)+_0x9f5a7c[_0x382795(0x2115)]:_0x382795(0x554),'msg':_0x9f5a7c[_0x382795(0x1c52)]?JSON[_0x382795(0x2317)](_0x9f5a7c[_0x382795(0x1c52)]):_0x9f5a7c['toString']()});}):_0x33e40e['user']['get']({'fields':_0x13acad(0x1427),'sort':_0x13acad(0x2494),'nolimit':_0x13acad(0x1685),'role':_0x13acad(0x11ae)})[_0x13acad(0x15e7)]['then'](function(_0x3719f0){const _0x58332b=_0x13acad;_0x16b496[_0x58332b(0xd77)]=_0x3719f0['rows']||[];})[_0x13acad(0x64a)](function(){const _0x4f041f=_0x13acad;return _0x33e40e[_0x4f041f(0x16b2)][_0x4f041f(0x896)]({'userProfileId':_0x16b496[_0x4f041f(0x1d3d)]['userProfileId'],'sectionId':0xca})['$promise'];})[_0x13acad(0x64a)](function(_0x3facdc){const _0x3de07a=_0x13acad,_0x221081=_0x3facdc&&_0x3facdc[_0x3de07a(0x28b8)]?_0x3facdc[_0x3de07a(0x28b8)][0x0]:null;if(!_0x221081){const _0x264c1f=[];let _0x3a0ae7=null;_0x16b496[_0x3de07a(0x11ae)]&&(_0x3a0ae7=_0x28c606()[_0x3de07a(0x27bc)](_0x16b496[_0x3de07a(0xd77)],{'name':_0x16b496[_0x3de07a(0x11ae)][_0x3de07a(0x11ae)]}));for(let _0x199163=0x0;_0x199163<_0x16b496[_0x3de07a(0xd77)]['length'];_0x199163++){_0x3a0ae7&&_0x16b496[_0x3de07a(0xd77)][_0x199163]['id']===_0x3a0ae7['id']&&(_0x16b496[_0x3de07a(0xd77)][_0x199163][_0x3de07a(0xd4f)]=![],_0x264c1f[_0x3de07a(0x1954)](_0x16b496[_0x3de07a(0xd77)][_0x199163]));}_0x16b496[_0x3de07a(0xd77)]=_0x264c1f;}else{if(!_0x221081[_0x3de07a(0x11da)])return _0x33e40e[_0x3de07a(0x1617)]['get']({'sectionId':_0x221081['id']})[_0x3de07a(0x15e7)][_0x3de07a(0x64a)](function(_0x1f5b08){const _0x285509=_0x3de07a,_0x4f6747=_0x28c606()[_0x285509(0x1de5)](_0x1f5b08[_0x285509(0x28b8)],function(_0x4e67d2){const _0x3061f7=_0x285509;return _0x28c606()[_0x3061f7(0x27bc)](_0x16b496[_0x3061f7(0xd77)],{'id':_0x4e67d2[_0x3061f7(0x145)]});});let _0xe3cd8c=null;_0x16b496[_0x285509(0x11ae)]&&(_0xe3cd8c=_0x28c606()[_0x285509(0x27bc)](_0x16b496['agents'],{'name':_0x16b496[_0x285509(0x11ae)][_0x285509(0x11ae)]}));if(_0xe3cd8c&&!_0x28c606()[_0x285509(0x25f8)](_0x4f6747,['id',_0xe3cd8c['id']])){const _0x2c05b0=_0x28c606()[_0x285509(0x27bc)](_0x16b496[_0x285509(0xd77)],{'id':_0xe3cd8c['id']});_0x2c05b0[_0x285509(0xd4f)]=![],_0x4f6747[_0x285509(0x1954)](_0x2c05b0);}_0x16b496[_0x285509(0xd77)]=_0x4f6747;});}})[_0x13acad(0x20cd)](function(_0x368809){const _0x502276=_0x13acad;_0x28f4d5[_0x502276(0x1bd0)]({'title':_0x368809[_0x502276(0x10b3)]?_0x502276(0x575)+_0x368809[_0x502276(0x10b3)]+_0x502276(0x21db)+_0x368809[_0x502276(0x2115)]:'SYSTEM:GETagents','msg':_0x368809[_0x502276(0x1c52)]?JSON[_0x502276(0x2317)](_0x368809['data']):_0x368809[_0x502276(0x2915)]()});});function _0x124cea(){const _0x41ccc6=_0x13acad;_0x16b496[_0x41ccc6(0xbae)]=[];const _0x4e0269=[];_0x16b496[_0x41ccc6(0x11ae)][_0x41ccc6(0x2185)]&&_0x16b496['agent'][_0x41ccc6(0x2185)][_0x41ccc6(0x2554)]()===_0x41ccc6(0xbce)&&_0x16b496[_0x41ccc6(0x11ae)]['appType']===_0x41ccc6(0x17b6)&&(_0x16b496['agent']['phone']=_0x22fdba['cutdigits']?(_0x16b496['agent'][_0x41ccc6(0x2524)]||'')+_0x41ccc6(0x1a75)+_0x22fdba[_0x41ccc6(0x242b)]+'}':(_0x16b496['agent']['prefix']||'')+_0x41ccc6(0x5ad),_0x22fdba[_0x41ccc6(0x1097)]!==_0x41ccc6(0x2507)?_0x16b496[_0x41ccc6(0x11ae)][_0x41ccc6(0x59e)][_0x41ccc6(0x1b28)](_0x41ccc6(0x13e0))<0x0&&(_0x16b496[_0x41ccc6(0x11ae)][_0x41ccc6(0x59e)]+=_0x41ccc6(0x13e0)):_0x16b496[_0x41ccc6(0x11ae)][_0x41ccc6(0x59e)]=_0x16b496[_0x41ccc6(0x11ae)][_0x41ccc6(0x59e)][_0x41ccc6(0x1353)](_0x41ccc6(0x13e0),''));const _0xe7dd5f=_0x28c606()[_0x41ccc6(0x27bc)](_0x16b496[_0x41ccc6(0xd77)],{'name':_0x16b496[_0x41ccc6(0x11ae)][_0x41ccc6(0x11ae)]});_0xe7dd5f&&(_0x16b496[_0x41ccc6(0x11ae)][_0x41ccc6(0x246c)]=_0xe7dd5f['id']);if(_0x16b496[_0x41ccc6(0x11ae)][_0x41ccc6(0x4f4)]&&_0x16b496[_0x41ccc6(0x11ae)][_0x41ccc6(0x4f4)]==='custom'){}else switch((_0x16b496['agent'][_0x41ccc6(0x16e1)]||_0x16b496[_0x41ccc6(0x11ae)][_0x41ccc6(0x4f4)])['toLowerCase']()){case'set':_0x16b496[_0x41ccc6(0x11ae)][_0x41ccc6(0xacb)]=_0x16b496[_0x41ccc6(0x11ae)][_0x41ccc6(0x2494)]+'='+_0x16b496[_0x41ccc6(0x11ae)][_0x41ccc6(0x1096)];break;case'custom':break;default:_0x4e0269[0x0]=_0x16b496[_0x41ccc6(0x11ae)][_0x41ccc6(0x11ae)],_0x4e0269[0x1]=_0x16b496['agent'][_0x41ccc6(0x16d)],_0x16b496[_0x41ccc6(0x11ae)][_0x41ccc6(0xacb)]=_0x4e0269['join'](',');}_0x10e7e6(_0x16b496[_0x41ccc6(0x11ae)]);}function _0x10e7e6(_0x2e71a0){const _0x527593=_0x13acad;_0x295c5a[_0x527593(0x268e)](_0x2e71a0);}}const _0x28be78=_0x4b75d2;;_0x1e4aca[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x15ff),'whatsappAccount',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x1e4aca(_0x44454b,_0x3f525d,_0x32812b,_0x49c9f8,_0x4ad8a2,_0x1c4d64,_0x5e159f,_0x364fdb){const _0x19d75b=_0x49a1e3,_0x464c6b=this;_0x464c6b[_0x19d75b(0x1d3d)]=_0x5e159f[_0x19d75b(0x808)](),_0x464c6b[_0x19d75b(0xbae)]=[],_0x464c6b['title']=_0x19d75b(0x584)+(_0x49c9f8[_0x19d75b(0x4f4)]||_0x49c9f8[_0x19d75b(0x16e1)])[_0x19d75b(0xa3c)](),_0x464c6b[_0x19d75b(0x290d)]=angular[_0x19d75b(0x289e)](_0x49c9f8),_0x464c6b[_0x19d75b(0x402)]=_0x364fdb,_0x464c6b[_0x19d75b(0x6c2)]={};if(_0x464c6b['amazonlex'][_0x19d75b(0xacb)])switch(_0x464c6b[_0x19d75b(0x290d)]['appType']?_0x464c6b[_0x19d75b(0x290d)]['appType']['toLowerCase']():_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0x16e1)][_0x19d75b(0x2554)]()){case'custom':break;case _0x19d75b(0x1084):{const _0x77d90c=_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0xacb)][_0x19d75b(0x282c)](',');_0x464c6b[_0x19d75b(0x290d)]['key']=_0x77d90c[0x0],_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0x1cbd)]=_0x77d90c[0x1],_0x464c6b['amazonlex'][_0x19d75b(0x31b)]=_0x77d90c[_0x19d75b(0x142e)](0x2,_0x77d90c[_0x19d75b(0x1b9e)])['join'](',');}break;case'dialogflowv2':{const _0x4c7490=_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0xacb)][_0x19d75b(0x282c)](',');_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0xbfd)]=_0x4c7490[0x0],_0x464c6b[_0x19d75b(0x290d)]['clientEmail']=_0x4c7490[0x1],_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0x1b1b)]=_0x4c7490[0x2],_0x464c6b['amazonlex'][_0x19d75b(0x1cbd)]=_0x4c7490[0x3],_0x464c6b['amazonlex'][_0x19d75b(0x31b)]=_0x4c7490[_0x19d75b(0x142e)](0x4,_0x4c7490['length'])[_0x19d75b(0x9a6)](',');}break;case _0x19d75b(0x290d):{const _0x2a0ec0=_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0xacb)][_0x19d75b(0x282c)](',');_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0x1466)]=_0x2a0ec0[0x0],_0x464c6b[_0x19d75b(0x290d)]['secretaccesskey']=_0x2a0ec0[0x1],_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0x17a2)]=_0x2a0ec0[0x2],_0x464c6b['amazonlex'][_0x19d75b(0x2797)]=_0x2a0ec0[0x3],_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0x31b)]=_0x2a0ec0['slice'](0x4,_0x2a0ec0['length'])[_0x19d75b(0x9a6)](',');}break;case _0x19d75b(0x21a9):{const _0x5cf4e6=_0x464c6b[_0x19d75b(0x290d)]['appdata'][_0x19d75b(0x282c)](',');_0x464c6b['amazonlex'][_0x19d75b(0x95f)]=isNaN(_0x5cf4e6[0x0])?_0x5cf4e6[0x0]:parseInt(_0x5cf4e6[0x0],0xa),_0x464c6b[_0x19d75b(0x290d)]['text']=_0x5cf4e6[_0x19d75b(0x142e)](0x1,_0x5cf4e6[_0x19d75b(0x1b9e)])['join'](',');}break;case _0x19d75b(0x18ca):_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0x39b)]=_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0xacb)];break;case _0x19d75b(0x1979):_0x464c6b[_0x19d75b(0x290d)]['name']=_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0xacb)]['split']('=')[0x0],_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0x1096)]=_0x464c6b['amazonlex'][_0x19d75b(0xacb)][_0x19d75b(0x282c)]('=')[0x1];break;case _0x19d75b(0x1e67):_0x464c6b['amazonlex'][_0x19d75b(0x1bd9)]=_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0xacb)];break;default:{const _0x19b833=_0x464c6b[_0x19d75b(0x290d)]['appdata'][_0x19d75b(0x282c)](',');_0x464c6b[_0x19d75b(0x290d)]['accesskeyid']=_0x28c606()[_0x19d75b(0x940)](_0x19b833[0x0])?_0x19b833[0x0]:isNaN(_0x19b833[0x0])?_0x19b833[0x0]:parseInt(_0x19b833[0x0],0xa),_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0x1b1)]=_0x28c606()['isEmpty'](_0x19b833[0x1])?_0x19b833[0x1]:isNaN(_0x19b833[0x1])?_0x19b833[0x1]:parseInt(_0x19b833[0x1],0xa),_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0x17a2)]=_0x28c606()['isEmpty'](_0x19b833[0x2])?_0x19b833[0x2]:isNaN(_0x19b833[0x2])?_0x19b833[0x2]:parseInt(_0x19b833[0x2],0xa),_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0x2797)]=_0x28c606()[_0x19d75b(0x940)](_0x19b833[0x3])?_0x19b833[0x3]:isNaN(_0x19b833[0x3])?_0x19b833[0x3]:parseInt(_0x19b833[0x3],0xa),_0x464c6b[_0x19d75b(0x290d)]['welcomemessage']=_0x28c606()[_0x19d75b(0x940)](_0x19b833[0x4])?_0x19b833[0x4]:isNaN(_0x19b833[0x4])?_0x19b833[0x4]:parseInt(_0x19b833[0x4],0xa);}break;}else _0x464c6b[_0x19d75b(0x290d)]['lexregion']='us-east-1';_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0x2185)]&&_0x464c6b['amazonlex'][_0x19d75b(0x2185)][_0x19d75b(0x2554)]()==='outbound'&&_0x464c6b[_0x19d75b(0x290d)]['appType']['toLowerCase']()===_0x19d75b(0x20eb)&&(_0x464c6b['amazonlex'][_0x19d75b(0x2524)]=_0x464c6b[_0x19d75b(0x290d)]['phone']?_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0x267a)][_0x19d75b(0x282c)]('$')[0x0]:undefined,_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0x1a9b)]=_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0x1abe)]?_0x19d75b(0x2489)+_0x464c6b[_0x19d75b(0x290d)][_0x19d75b(0x1abe)]:undefined);_0x464c6b['saveWhatsappAccountApp']=_0x4fcf8b,_0x464c6b['closeDialog']=_0x312735;function _0x4fcf8b(){const _0x2cab70=_0x19d75b;_0x464c6b[_0x2cab70(0xbae)]=[];const _0x4332f8=[];_0x464c6b[_0x2cab70(0x290d)][_0x2cab70(0x2185)]&&_0x464c6b[_0x2cab70(0x290d)][_0x2cab70(0x2185)]['toLowerCase']()===_0x2cab70(0xbce)&&_0x464c6b[_0x2cab70(0x290d)]['appType']===_0x2cab70(0x17b6)&&(_0x464c6b['amazonlex'][_0x2cab70(0x267a)]=_0x4ad8a2['cutdigits']?(_0x464c6b[_0x2cab70(0x290d)][_0x2cab70(0x2524)]||'')+_0x2cab70(0x1a75)+_0x4ad8a2['cutdigits']+'}':(_0x464c6b[_0x2cab70(0x290d)][_0x2cab70(0x2524)]||'')+_0x2cab70(0x5ad),_0x4ad8a2['recordingFormat']!==_0x2cab70(0x2507)?_0x464c6b[_0x2cab70(0x290d)]['options'][_0x2cab70(0x1b28)](_0x2cab70(0x13e0))<0x0&&(_0x464c6b[_0x2cab70(0x290d)][_0x2cab70(0x59e)]+=_0x2cab70(0x13e0)):_0x464c6b[_0x2cab70(0x290d)]['options']=_0x464c6b[_0x2cab70(0x290d)][_0x2cab70(0x59e)]['replace']('U(xcally-mixmonitor-context)',''));if(_0x464c6b[_0x2cab70(0x290d)][_0x2cab70(0x4f4)]&&_0x464c6b[_0x2cab70(0x290d)][_0x2cab70(0x4f4)]==='custom'){}else switch((_0x464c6b[_0x2cab70(0x290d)][_0x2cab70(0x16e1)]||_0x464c6b[_0x2cab70(0x290d)][_0x2cab70(0x4f4)])[_0x2cab70(0x2554)]()){case _0x2cab70(0x1979):_0x464c6b[_0x2cab70(0x290d)][_0x2cab70(0xacb)]=_0x464c6b[_0x2cab70(0x290d)][_0x2cab70(0x2494)]+'='+_0x464c6b['amazonlex'][_0x2cab70(0x1096)];break;case _0x2cab70(0x1ad6):break;default:_0x4332f8[0x0]=_0x464c6b['amazonlex'][_0x2cab70(0x1466)],_0x4332f8[0x1]=_0x464c6b[_0x2cab70(0x290d)][_0x2cab70(0x1b1)],_0x4332f8[0x2]=_0x464c6b[_0x2cab70(0x290d)][_0x2cab70(0x17a2)],_0x4332f8[0x3]=_0x464c6b[_0x2cab70(0x290d)][_0x2cab70(0x2797)],_0x4332f8[0x4]=_0x464c6b[_0x2cab70(0x290d)]['welcomemessage'],_0x464c6b[_0x2cab70(0x290d)]['appdata']=_0x4332f8[_0x2cab70(0x9a6)](',');}_0x312735(_0x464c6b['amazonlex']);}function _0x312735(_0x56bb39){const _0x33a651=_0x19d75b;_0x44454b[_0x33a651(0x268e)](_0x56bb39);}}const _0x246649=_0x1e4aca;;_0x443b9f['$inject']=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x15ff),_0x49a1e3(0x217c),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x443b9f(_0x3bbb9d,_0x1cbdc8,_0x385437,_0x177929,_0x207912,_0x27a15e,_0x5ef024,_0x2e612c){const _0x2c9e91=_0x49a1e3,_0x28947a=this;_0x28947a['currentUser']=_0x5ef024[_0x2c9e91(0x808)](),_0x28947a['errors']=[],_0x28947a[_0x2c9e91(0x2021)]=_0x2c9e91(0x584)+(_0x177929[_0x2c9e91(0x4f4)]||_0x177929[_0x2c9e91(0x16e1)])[_0x2c9e91(0xa3c)](),_0x28947a[_0x2c9e91(0x21a9)]=angular[_0x2c9e91(0x289e)](_0x177929),_0x28947a[_0x2c9e91(0x402)]=_0x2e612c,_0x28947a[_0x2c9e91(0x6c2)]={};if(_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0xacb)])switch(_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x4f4)]?_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x4f4)][_0x2c9e91(0x2554)]():_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x16e1)][_0x2c9e91(0x2554)]()){case _0x2c9e91(0x1ad6):break;case _0x2c9e91(0x1084):{const _0x255904=_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0xacb)][_0x2c9e91(0x282c)](',');_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x2125)]=_0x255904[0x0],_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x1cbd)]=_0x255904[0x1],_0x28947a[_0x2c9e91(0x21a9)]['welcomemessage']=_0x255904[_0x2c9e91(0x142e)](0x2,_0x255904[_0x2c9e91(0x1b9e)])[_0x2c9e91(0x9a6)](',');}break;case'dialogflowv2':{const _0x44734e=_0x28947a[_0x2c9e91(0x21a9)]['appdata'][_0x2c9e91(0x282c)](',');_0x28947a['autoreply'][_0x2c9e91(0xbfd)]=_0x44734e[0x0],_0x28947a[_0x2c9e91(0x21a9)]['clientEmail']=_0x44734e[0x1],_0x28947a['autoreply'][_0x2c9e91(0x1b1b)]=_0x44734e[0x2],_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x1cbd)]=_0x44734e[0x3],_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x31b)]=_0x44734e[_0x2c9e91(0x142e)](0x4,_0x44734e[_0x2c9e91(0x1b9e)])['join'](',');}break;case _0x2c9e91(0x290d):{const _0x1f4730=_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0xacb)][_0x2c9e91(0x282c)](',');_0x28947a[_0x2c9e91(0x21a9)]['accesskeyid']=_0x1f4730[0x0],_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x1b1)]=_0x1f4730[0x1],_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x17a2)]=_0x1f4730[0x2],_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x2797)]=_0x1f4730[0x3],_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x31b)]=_0x1f4730[_0x2c9e91(0x142e)](0x4,_0x1f4730['length'])[_0x2c9e91(0x9a6)](',');}break;case'autoreply':{const _0x51984e=_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0xacb)][_0x2c9e91(0x282c)](',');_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x95f)]=isNaN(_0x51984e[0x0])?_0x51984e[0x0]:parseInt(_0x51984e[0x0],0xa),_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x39b)]=_0x51984e[_0x2c9e91(0x142e)](0x1,_0x51984e[_0x2c9e91(0x1b9e)])[_0x2c9e91(0x9a6)](',');}break;case _0x2c9e91(0x18ca):_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x39b)]=_0x28947a['autoreply'][_0x2c9e91(0xacb)];break;case _0x2c9e91(0x1979):_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x2494)]=_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0xacb)][_0x2c9e91(0x282c)]('=')[0x0],_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x1096)]=_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0xacb)][_0x2c9e91(0x282c)]('=')[0x1];break;case'agi':_0x28947a['autoreply'][_0x2c9e91(0x1bd9)]=_0x28947a[_0x2c9e91(0x21a9)]['appdata'];break;default:{const _0x1ef7e4=_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0xacb)][_0x2c9e91(0x282c)](',');_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x95f)]=_0x28c606()[_0x2c9e91(0x940)](_0x1ef7e4[0x0])?_0x1ef7e4[0x0]:isNaN(_0x1ef7e4[0x0])?_0x1ef7e4[0x0]:parseInt(_0x1ef7e4[0x0],0xa),_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x39b)]=_0x28c606()[_0x2c9e91(0x940)](_0x1ef7e4[0x1])?_0x1ef7e4[0x1]:isNaN(_0x1ef7e4[0x1])?_0x1ef7e4[0x1]:parseInt(_0x1ef7e4[0x1],0xa);}break;}else _0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x95f)]=0x1;_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x2185)]&&_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x2185)][_0x2c9e91(0x2554)]()===_0x2c9e91(0xbce)&&_0x28947a['autoreply'][_0x2c9e91(0x4f4)]['toLowerCase']()===_0x2c9e91(0x20eb)&&(_0x28947a['autoreply'][_0x2c9e91(0x2524)]=_0x28947a['autoreply'][_0x2c9e91(0x267a)]?_0x28947a[_0x2c9e91(0x21a9)]['phone']['split']('$')[0x0]:undefined,_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x1a9b)]=_0x28947a[_0x2c9e91(0x21a9)][_0x2c9e91(0x1abe)]?_0x2c9e91(0x2489)+_0x28947a['autoreply'][_0x2c9e91(0x1abe)]:undefined);_0x28947a[_0x2c9e91(0x276e)]=_0x165a56,_0x28947a[_0x2c9e91(0x16cb)]=_0x15eb61;function _0x165a56(){const _0x5cdcce=_0x2c9e91;_0x28947a[_0x5cdcce(0xbae)]=[];const _0x368d0b=[];_0x28947a[_0x5cdcce(0x21a9)][_0x5cdcce(0x2185)]&&_0x28947a['autoreply'][_0x5cdcce(0x2185)][_0x5cdcce(0x2554)]()===_0x5cdcce(0xbce)&&_0x28947a[_0x5cdcce(0x21a9)]['appType']===_0x5cdcce(0x17b6)&&(_0x28947a[_0x5cdcce(0x21a9)]['phone']=_0x207912[_0x5cdcce(0x242b)]?(_0x28947a['autoreply'][_0x5cdcce(0x2524)]||'')+'${EXTEN:'+_0x207912[_0x5cdcce(0x242b)]+'}':(_0x28947a['autoreply'][_0x5cdcce(0x2524)]||'')+_0x5cdcce(0x5ad),_0x207912[_0x5cdcce(0x1097)]!==_0x5cdcce(0x2507)?_0x28947a[_0x5cdcce(0x21a9)]['options']['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x28947a[_0x5cdcce(0x21a9)][_0x5cdcce(0x59e)]+=_0x5cdcce(0x13e0)):_0x28947a[_0x5cdcce(0x21a9)][_0x5cdcce(0x59e)]=_0x28947a[_0x5cdcce(0x21a9)][_0x5cdcce(0x59e)][_0x5cdcce(0x1353)](_0x5cdcce(0x13e0),''));if(_0x28947a['autoreply']['appType']&&_0x28947a[_0x5cdcce(0x21a9)][_0x5cdcce(0x4f4)]===_0x5cdcce(0x1ad6)){}else switch((_0x28947a[_0x5cdcce(0x21a9)][_0x5cdcce(0x16e1)]||_0x28947a[_0x5cdcce(0x21a9)]['appType'])[_0x5cdcce(0x2554)]()){case'set':_0x28947a[_0x5cdcce(0x21a9)]['appdata']=_0x28947a[_0x5cdcce(0x21a9)][_0x5cdcce(0x2494)]+'='+_0x28947a[_0x5cdcce(0x21a9)]['value'];break;case _0x5cdcce(0x1ad6):break;default:_0x368d0b[0x0]=_0x28947a[_0x5cdcce(0x21a9)]['times'],_0x368d0b[0x1]=_0x28947a[_0x5cdcce(0x21a9)][_0x5cdcce(0x39b)],_0x28947a[_0x5cdcce(0x21a9)][_0x5cdcce(0xacb)]=_0x368d0b[_0x5cdcce(0x9a6)](',');}_0x15eb61(_0x28947a[_0x5cdcce(0x21a9)]);}function _0x15eb61(_0x2b64d9){const _0x5853e2=_0x2c9e91;_0x3bbb9d[_0x5853e2(0x268e)](_0x2b64d9);}}const _0x588015=_0x443b9f;;_0x1b31df[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),'whatsappAccountApp','whatsappAccount',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x1b31df(_0x1635b4,_0x34bdad,_0x148e87,_0xc52ca6,_0x56e94d,_0x459ca9,_0x3b52e8,_0x2a2731){const _0x2c6037=_0x49a1e3,_0x36217b=this;_0x36217b['currentUser']=_0x3b52e8[_0x2c6037(0x808)](),_0x36217b[_0x2c6037(0xbae)]=[],_0x36217b['title']='WHATSAPP.EDIT_'+(_0xc52ca6[_0x2c6037(0x4f4)]||_0xc52ca6[_0x2c6037(0x16e1)])[_0x2c6037(0xa3c)](),_0x36217b[_0x2c6037(0x67b)]=angular[_0x2c6037(0x289e)](_0xc52ca6),_0x36217b['crudPermissions']=_0x2a2731,_0x36217b[_0x2c6037(0x6c2)]={};if(_0x36217b['close']['appdata'])switch(_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x4f4)]?_0x36217b[_0x2c6037(0x67b)]['appType'][_0x2c6037(0x2554)]():_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x16e1)][_0x2c6037(0x2554)]()){case'custom':break;case _0x2c6037(0x1084):{const _0x57bae8=_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0xacb)][_0x2c6037(0x282c)](',');_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x2125)]=_0x57bae8[0x0],_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x1cbd)]=_0x57bae8[0x1],_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x31b)]=_0x57bae8[_0x2c6037(0x142e)](0x2,_0x57bae8[_0x2c6037(0x1b9e)])['join'](',');}break;case _0x2c6037(0x1b1a):{const _0x20511b=_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0xacb)]['split'](',');_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0xbfd)]=_0x20511b[0x0],_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x4b2)]=_0x20511b[0x1],_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x1b1b)]=_0x20511b[0x2],_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x1cbd)]=_0x20511b[0x3],_0x36217b[_0x2c6037(0x67b)]['welcomemessage']=_0x20511b[_0x2c6037(0x142e)](0x4,_0x20511b['length'])[_0x2c6037(0x9a6)](',');}break;case _0x2c6037(0x290d):{const _0x4995d8=_0x36217b['close'][_0x2c6037(0xacb)][_0x2c6037(0x282c)](',');_0x36217b['close']['accesskeyid']=_0x4995d8[0x0],_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x1b1)]=_0x4995d8[0x1],_0x36217b[_0x2c6037(0x67b)]['lexregion']=_0x4995d8[0x2],_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x2797)]=_0x4995d8[0x3],_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x31b)]=_0x4995d8[_0x2c6037(0x142e)](0x4,_0x4995d8[_0x2c6037(0x1b9e)])[_0x2c6037(0x9a6)](',');}break;case _0x2c6037(0x21a9):{const _0x3d9bf6=_0x36217b[_0x2c6037(0x67b)]['appdata']['split'](',');_0x36217b[_0x2c6037(0x67b)]['times']=isNaN(_0x3d9bf6[0x0])?_0x3d9bf6[0x0]:parseInt(_0x3d9bf6[0x0],0xa),_0x36217b[_0x2c6037(0x67b)]['text']=_0x3d9bf6[_0x2c6037(0x142e)](0x1,_0x3d9bf6[_0x2c6037(0x1b9e)])[_0x2c6037(0x9a6)](',');}break;case _0x2c6037(0x18ca):_0x36217b['close'][_0x2c6037(0x39b)]=_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0xacb)];break;case'set':_0x36217b['close'][_0x2c6037(0x2494)]=_0x36217b[_0x2c6037(0x67b)]['appdata']['split']('=')[0x0],_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x1096)]=_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0xacb)]['split']('=')[0x1];break;case'agi':_0x36217b['close']['project']=_0x36217b['close'][_0x2c6037(0xacb)];break;default:{const _0x26a7f4=_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0xacb)][_0x2c6037(0x282c)](',');_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x168b)]=_0x28c606()[_0x2c6037(0x940)](_0x26a7f4[0x0])?_0x26a7f4[0x0]:isNaN(_0x26a7f4[0x0])?_0x26a7f4[0x0]:parseInt(_0x26a7f4[0x0],0xa);}break;}else{}_0x36217b[_0x2c6037(0x67b)]['type']&&_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x2185)][_0x2c6037(0x2554)]()==='outbound'&&_0x36217b[_0x2c6037(0x67b)]['appType'][_0x2c6037(0x2554)]()==='outbounddial'&&(_0x36217b['close'][_0x2c6037(0x2524)]=_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x267a)]?_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x267a)][_0x2c6037(0x282c)]('$')[0x0]:undefined,_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x1a9b)]=_0x36217b['close']['callerID']?_0x2c6037(0x2489)+_0x36217b[_0x2c6037(0x67b)][_0x2c6037(0x1abe)]:undefined);_0x36217b['saveWhatsappAccountApp']=_0x153968,_0x36217b['closeDialog']=_0x2891d4;function _0x153968(){const _0x3d06c6=_0x2c6037;_0x36217b[_0x3d06c6(0xbae)]=[];const _0x4cf9e4=[];_0x36217b['close'][_0x3d06c6(0x2185)]&&_0x36217b[_0x3d06c6(0x67b)][_0x3d06c6(0x2185)][_0x3d06c6(0x2554)]()===_0x3d06c6(0xbce)&&_0x36217b[_0x3d06c6(0x67b)]['appType']===_0x3d06c6(0x17b6)&&(_0x36217b[_0x3d06c6(0x67b)]['phone']=_0x56e94d[_0x3d06c6(0x242b)]?(_0x36217b[_0x3d06c6(0x67b)]['prefix']||'')+_0x3d06c6(0x1a75)+_0x56e94d[_0x3d06c6(0x242b)]+'}':(_0x36217b[_0x3d06c6(0x67b)][_0x3d06c6(0x2524)]||'')+_0x3d06c6(0x5ad),_0x56e94d['recordingFormat']!==_0x3d06c6(0x2507)?_0x36217b[_0x3d06c6(0x67b)][_0x3d06c6(0x59e)][_0x3d06c6(0x1b28)](_0x3d06c6(0x13e0))<0x0&&(_0x36217b[_0x3d06c6(0x67b)][_0x3d06c6(0x59e)]+='U(xcally-mixmonitor-context)'):_0x36217b[_0x3d06c6(0x67b)]['options']=_0x36217b[_0x3d06c6(0x67b)][_0x3d06c6(0x59e)][_0x3d06c6(0x1353)](_0x3d06c6(0x13e0),''));if(_0x36217b[_0x3d06c6(0x67b)][_0x3d06c6(0x4f4)]&&_0x36217b[_0x3d06c6(0x67b)][_0x3d06c6(0x4f4)]===_0x3d06c6(0x1ad6)){}else switch((_0x36217b[_0x3d06c6(0x67b)]['app']||_0x36217b[_0x3d06c6(0x67b)][_0x3d06c6(0x4f4)])['toLowerCase']()){case _0x3d06c6(0x1979):_0x36217b['close'][_0x3d06c6(0xacb)]=_0x36217b[_0x3d06c6(0x67b)][_0x3d06c6(0x2494)]+'='+_0x36217b['close'][_0x3d06c6(0x1096)];break;case _0x3d06c6(0x1ad6):break;default:_0x4cf9e4[0x0]=_0x36217b['close'][_0x3d06c6(0x168b)],_0x36217b[_0x3d06c6(0x67b)][_0x3d06c6(0xacb)]=_0x4cf9e4[_0x3d06c6(0x9a6)](',');}_0x2891d4(_0x36217b['close']);}function _0x2891d4(_0x42e17c){const _0x276131=_0x2c6037;_0x1635b4[_0x276131(0x268e)](_0x42e17c);}}const _0x515c40=_0x1b31df;;_0x2fc5d9[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x15ff),_0x49a1e3(0x217c),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'crudPermissions'];function _0x2fc5d9(_0x469e28,_0x563b91,_0x4d6e60,_0x30e6bd,_0x3aa52f,_0x490dd4,_0x2e1a63,_0x3e8d1e){const _0x5204c5=_0x49a1e3,_0x23015c=this;_0x23015c[_0x5204c5(0x1d3d)]=_0x2e1a63[_0x5204c5(0x808)](),_0x23015c[_0x5204c5(0xbae)]=[],_0x23015c[_0x5204c5(0x2021)]=_0x5204c5(0x584)+(_0x30e6bd['appType']||_0x30e6bd['app'])['toUpperCase'](),_0x23015c[_0x5204c5(0x1084)]=angular[_0x5204c5(0x289e)](_0x30e6bd),_0x23015c[_0x5204c5(0x402)]=_0x3e8d1e,_0x23015c[_0x5204c5(0x6c2)]={};if(_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0xacb)])switch(_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x4f4)]?_0x23015c['dialogflow']['appType'][_0x5204c5(0x2554)]():_0x23015c[_0x5204c5(0x1084)]['app'][_0x5204c5(0x2554)]()){case _0x5204c5(0x1ad6):break;case _0x5204c5(0x1084):{const _0x480347=_0x23015c['dialogflow'][_0x5204c5(0xacb)]['split'](',');_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x2125)]=_0x480347[0x0],_0x23015c['dialogflow'][_0x5204c5(0x1cbd)]=_0x480347[0x1],_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x31b)]=_0x480347['slice'](0x2,_0x480347['length'])[_0x5204c5(0x9a6)](',');}break;case'dialogflowv2':{const _0x47c4bf=_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0xacb)][_0x5204c5(0x282c)](',');_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0xbfd)]=_0x47c4bf[0x0],_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x4b2)]=_0x47c4bf[0x1],_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x1b1b)]=_0x47c4bf[0x2],_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x1cbd)]=_0x47c4bf[0x3],_0x23015c['dialogflow'][_0x5204c5(0x31b)]=_0x47c4bf['slice'](0x4,_0x47c4bf[_0x5204c5(0x1b9e)])['join'](',');}break;case _0x5204c5(0x290d):{const _0x22b296=_0x23015c['dialogflow'][_0x5204c5(0xacb)][_0x5204c5(0x282c)](',');_0x23015c['dialogflow'][_0x5204c5(0x1466)]=_0x22b296[0x0],_0x23015c['dialogflow'][_0x5204c5(0x1b1)]=_0x22b296[0x1],_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x17a2)]=_0x22b296[0x2],_0x23015c['dialogflow'][_0x5204c5(0x2797)]=_0x22b296[0x3],_0x23015c['dialogflow'][_0x5204c5(0x31b)]=_0x22b296[_0x5204c5(0x142e)](0x4,_0x22b296[_0x5204c5(0x1b9e)])[_0x5204c5(0x9a6)](',');}break;case _0x5204c5(0x21a9):{const _0x2780cc=_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0xacb)][_0x5204c5(0x282c)](',');_0x23015c[_0x5204c5(0x1084)]['times']=isNaN(_0x2780cc[0x0])?_0x2780cc[0x0]:parseInt(_0x2780cc[0x0],0xa),_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x39b)]=_0x2780cc[_0x5204c5(0x142e)](0x1,_0x2780cc['length'])[_0x5204c5(0x9a6)](',');}break;case _0x5204c5(0x18ca):_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x39b)]=_0x23015c['dialogflow']['appdata'];break;case _0x5204c5(0x1979):_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x2494)]=_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0xacb)][_0x5204c5(0x282c)]('=')[0x0],_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x1096)]=_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0xacb)][_0x5204c5(0x282c)]('=')[0x1];break;case _0x5204c5(0x1e67):_0x23015c['dialogflow'][_0x5204c5(0x1bd9)]=_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0xacb)];break;default:{const _0x3a3ce1=_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0xacb)]['split'](',');_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x2125)]=_0x28c606()[_0x5204c5(0x940)](_0x3a3ce1[0x0])?_0x3a3ce1[0x0]:isNaN(_0x3a3ce1[0x0])?_0x3a3ce1[0x0]:parseInt(_0x3a3ce1[0x0],0xa),_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x1cbd)]=_0x28c606()[_0x5204c5(0x940)](_0x3a3ce1[0x1])?_0x3a3ce1[0x1]:isNaN(_0x3a3ce1[0x1])?_0x3a3ce1[0x1]:parseInt(_0x3a3ce1[0x1],0xa),_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x31b)]=_0x28c606()[_0x5204c5(0x940)](_0x3a3ce1[0x2])?_0x3a3ce1[0x2]:isNaN(_0x3a3ce1[0x2])?_0x3a3ce1[0x2]:parseInt(_0x3a3ce1[0x2],0xa);}break;}else _0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x1cbd)]='en';_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x2185)]&&_0x23015c[_0x5204c5(0x1084)]['type'][_0x5204c5(0x2554)]()===_0x5204c5(0xbce)&&_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x4f4)][_0x5204c5(0x2554)]()===_0x5204c5(0x20eb)&&(_0x23015c['dialogflow'][_0x5204c5(0x2524)]=_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x267a)]?_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x267a)][_0x5204c5(0x282c)]('$')[0x0]:undefined,_0x23015c[_0x5204c5(0x1084)]['callerId']=_0x23015c[_0x5204c5(0x1084)][_0x5204c5(0x1abe)]?_0x5204c5(0x2489)+_0x23015c['dialogflow'][_0x5204c5(0x1abe)]:undefined);_0x23015c[_0x5204c5(0x276e)]=_0x9be486,_0x23015c[_0x5204c5(0x16cb)]=_0x429619;function _0x9be486(){const _0x5e79a7=_0x5204c5;_0x23015c[_0x5e79a7(0xbae)]=[];const _0x137587=[];_0x23015c[_0x5e79a7(0x1084)][_0x5e79a7(0x2185)]&&_0x23015c[_0x5e79a7(0x1084)]['type']['toLowerCase']()===_0x5e79a7(0xbce)&&_0x23015c[_0x5e79a7(0x1084)][_0x5e79a7(0x4f4)]===_0x5e79a7(0x17b6)&&(_0x23015c[_0x5e79a7(0x1084)]['phone']=_0x3aa52f[_0x5e79a7(0x242b)]?(_0x23015c[_0x5e79a7(0x1084)][_0x5e79a7(0x2524)]||'')+_0x5e79a7(0x1a75)+_0x3aa52f['cutdigits']+'}':(_0x23015c['dialogflow'][_0x5e79a7(0x2524)]||'')+_0x5e79a7(0x5ad),_0x3aa52f[_0x5e79a7(0x1097)]!==_0x5e79a7(0x2507)?_0x23015c[_0x5e79a7(0x1084)][_0x5e79a7(0x59e)][_0x5e79a7(0x1b28)](_0x5e79a7(0x13e0))<0x0&&(_0x23015c[_0x5e79a7(0x1084)][_0x5e79a7(0x59e)]+=_0x5e79a7(0x13e0)):_0x23015c[_0x5e79a7(0x1084)][_0x5e79a7(0x59e)]=_0x23015c[_0x5e79a7(0x1084)][_0x5e79a7(0x59e)][_0x5e79a7(0x1353)](_0x5e79a7(0x13e0),''));if(_0x23015c[_0x5e79a7(0x1084)][_0x5e79a7(0x4f4)]&&_0x23015c[_0x5e79a7(0x1084)]['appType']===_0x5e79a7(0x1ad6)){}else switch((_0x23015c[_0x5e79a7(0x1084)][_0x5e79a7(0x16e1)]||_0x23015c[_0x5e79a7(0x1084)][_0x5e79a7(0x4f4)])[_0x5e79a7(0x2554)]()){case _0x5e79a7(0x1979):_0x23015c[_0x5e79a7(0x1084)]['appdata']=_0x23015c[_0x5e79a7(0x1084)]['name']+'='+_0x23015c[_0x5e79a7(0x1084)][_0x5e79a7(0x1096)];break;case'custom':break;default:_0x137587[0x0]=_0x23015c[_0x5e79a7(0x1084)][_0x5e79a7(0x2125)],_0x137587[0x1]=_0x23015c[_0x5e79a7(0x1084)]['language'],_0x137587[0x2]=_0x23015c[_0x5e79a7(0x1084)][_0x5e79a7(0x31b)],_0x23015c[_0x5e79a7(0x1084)][_0x5e79a7(0xacb)]=_0x137587[_0x5e79a7(0x9a6)](',');}_0x429619(_0x23015c[_0x5e79a7(0x1084)]);}function _0x429619(_0x4da443){_0x469e28['hide'](_0x4da443);}}const _0x26cb1b=_0x2fc5d9;;_0xe97125['$inject']=[_0x49a1e3(0x212a),'$q','toasty',_0x49a1e3(0x15ff),_0x49a1e3(0x217c),'api',_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0xe97125(_0x1eb682,_0x34b66c,_0x2c5be2,_0x3c407c,_0x34b2ec,_0x5b0e66,_0x491b37,_0x370352){const _0xacf220=_0x49a1e3,_0x514b7c=this;_0x514b7c['currentUser']=_0x491b37[_0xacf220(0x808)](),_0x514b7c['errors']=[],_0x514b7c[_0xacf220(0x2021)]=_0xacf220(0x584)+(_0x3c407c[_0xacf220(0x4f4)]||_0x3c407c[_0xacf220(0x16e1)])[_0xacf220(0xa3c)](),_0x514b7c[_0xacf220(0x614)]=angular[_0xacf220(0x289e)](_0x3c407c),_0x514b7c[_0xacf220(0x402)]=_0x370352,_0x514b7c[_0xacf220(0x6c2)]={};if(_0x514b7c[_0xacf220(0x614)][_0xacf220(0xacb)])switch(_0x514b7c[_0xacf220(0x614)][_0xacf220(0x4f4)]?_0x514b7c[_0xacf220(0x614)]['appType'][_0xacf220(0x2554)]():_0x514b7c[_0xacf220(0x614)]['app']['toLowerCase']()){case'custom':break;case _0xacf220(0x1084):{const _0x5bcbf0=_0x514b7c['gotoif'][_0xacf220(0xacb)][_0xacf220(0x282c)](',');_0x514b7c[_0xacf220(0x614)]['key']=_0x5bcbf0[0x0],_0x514b7c[_0xacf220(0x614)][_0xacf220(0x1cbd)]=_0x5bcbf0[0x1],_0x514b7c[_0xacf220(0x614)][_0xacf220(0x31b)]=_0x5bcbf0[_0xacf220(0x142e)](0x2,_0x5bcbf0['length'])[_0xacf220(0x9a6)](',');}break;case'dialogflowv2':{const _0x1a81f6=_0x514b7c[_0xacf220(0x614)][_0xacf220(0xacb)][_0xacf220(0x282c)](',');_0x514b7c[_0xacf220(0x614)][_0xacf220(0xbfd)]=_0x1a81f6[0x0],_0x514b7c[_0xacf220(0x614)][_0xacf220(0x4b2)]=_0x1a81f6[0x1],_0x514b7c[_0xacf220(0x614)][_0xacf220(0x1b1b)]=_0x1a81f6[0x2],_0x514b7c[_0xacf220(0x614)]['language']=_0x1a81f6[0x3],_0x514b7c[_0xacf220(0x614)][_0xacf220(0x31b)]=_0x1a81f6[_0xacf220(0x142e)](0x4,_0x1a81f6[_0xacf220(0x1b9e)])[_0xacf220(0x9a6)](',');}break;case'amazonlex':{const _0x244676=_0x514b7c[_0xacf220(0x614)][_0xacf220(0xacb)][_0xacf220(0x282c)](',');_0x514b7c[_0xacf220(0x614)][_0xacf220(0x1466)]=_0x244676[0x0],_0x514b7c[_0xacf220(0x614)][_0xacf220(0x1b1)]=_0x244676[0x1],_0x514b7c[_0xacf220(0x614)]['lexregion']=_0x244676[0x2],_0x514b7c[_0xacf220(0x614)]['botname']=_0x244676[0x3],_0x514b7c['gotoif'][_0xacf220(0x31b)]=_0x244676[_0xacf220(0x142e)](0x4,_0x244676[_0xacf220(0x1b9e)])[_0xacf220(0x9a6)](',');}break;case'autoreply':{const _0x2066fd=_0x514b7c[_0xacf220(0x614)][_0xacf220(0xacb)][_0xacf220(0x282c)](',');_0x514b7c[_0xacf220(0x614)][_0xacf220(0x95f)]=isNaN(_0x2066fd[0x0])?_0x2066fd[0x0]:parseInt(_0x2066fd[0x0],0xa),_0x514b7c[_0xacf220(0x614)][_0xacf220(0x39b)]=_0x2066fd[_0xacf220(0x142e)](0x1,_0x2066fd['length'])[_0xacf220(0x9a6)](',');}break;case'message':_0x514b7c[_0xacf220(0x614)][_0xacf220(0x39b)]=_0x514b7c[_0xacf220(0x614)]['appdata'];break;case _0xacf220(0x1979):_0x514b7c[_0xacf220(0x614)][_0xacf220(0x2494)]=_0x514b7c['gotoif'][_0xacf220(0xacb)]['split']('=')[0x0],_0x514b7c['gotoif'][_0xacf220(0x1096)]=_0x514b7c[_0xacf220(0x614)][_0xacf220(0xacb)][_0xacf220(0x282c)]('=')[0x1];break;case'agi':_0x514b7c[_0xacf220(0x614)]['project']=_0x514b7c[_0xacf220(0x614)][_0xacf220(0xacb)];break;default:{const _0x3bd07f=_0x514b7c[_0xacf220(0x614)]['appdata']['split'](',');_0x514b7c['gotoif'][_0xacf220(0xeea)]=_0x28c606()[_0xacf220(0x940)](_0x3bd07f[0x0])?_0x3bd07f[0x0]:isNaN(_0x3bd07f[0x0])?_0x3bd07f[0x0]:parseInt(_0x3bd07f[0x0],0xa),_0x514b7c[_0xacf220(0x614)][_0xacf220(0x108f)]=_0x28c606()['isEmpty'](_0x3bd07f[0x1])?_0x3bd07f[0x1]:isNaN(_0x3bd07f[0x1])?_0x3bd07f[0x1]:parseInt(_0x3bd07f[0x1],0xa),_0x514b7c[_0xacf220(0x614)][_0xacf220(0x1d32)]=_0x28c606()[_0xacf220(0x940)](_0x3bd07f[0x2])?_0x3bd07f[0x2]:isNaN(_0x3bd07f[0x2])?_0x3bd07f[0x2]:parseInt(_0x3bd07f[0x2],0xa);}break;}else{}_0x514b7c[_0xacf220(0x614)][_0xacf220(0x2185)]&&_0x514b7c['gotoif'][_0xacf220(0x2185)]['toLowerCase']()==='outbound'&&_0x514b7c[_0xacf220(0x614)][_0xacf220(0x4f4)]['toLowerCase']()===_0xacf220(0x20eb)&&(_0x514b7c[_0xacf220(0x614)][_0xacf220(0x2524)]=_0x514b7c[_0xacf220(0x614)][_0xacf220(0x267a)]?_0x514b7c[_0xacf220(0x614)][_0xacf220(0x267a)]['split']('$')[0x0]:undefined,_0x514b7c[_0xacf220(0x614)][_0xacf220(0x1a9b)]=_0x514b7c[_0xacf220(0x614)]['callerID']?_0xacf220(0x2489)+_0x514b7c[_0xacf220(0x614)][_0xacf220(0x1abe)]:undefined);_0x514b7c[_0xacf220(0x276e)]=_0x1c9f56,_0x514b7c['closeDialog']=_0x2943b9;function _0x1c9f56(){const _0xd99090=_0xacf220;_0x514b7c[_0xd99090(0xbae)]=[];const _0x2005f0=[];_0x514b7c[_0xd99090(0x614)][_0xd99090(0x2185)]&&_0x514b7c[_0xd99090(0x614)][_0xd99090(0x2185)][_0xd99090(0x2554)]()==='outbound'&&_0x514b7c[_0xd99090(0x614)]['appType']==='outboundDial'&&(_0x514b7c[_0xd99090(0x614)][_0xd99090(0x267a)]=_0x34b2ec['cutdigits']?(_0x514b7c[_0xd99090(0x614)][_0xd99090(0x2524)]||'')+_0xd99090(0x1a75)+_0x34b2ec['cutdigits']+'}':(_0x514b7c[_0xd99090(0x614)][_0xd99090(0x2524)]||'')+_0xd99090(0x5ad),_0x34b2ec[_0xd99090(0x1097)]!==_0xd99090(0x2507)?_0x514b7c[_0xd99090(0x614)][_0xd99090(0x59e)][_0xd99090(0x1b28)](_0xd99090(0x13e0))<0x0&&(_0x514b7c[_0xd99090(0x614)]['options']+='U(xcally-mixmonitor-context)'):_0x514b7c[_0xd99090(0x614)][_0xd99090(0x59e)]=_0x514b7c[_0xd99090(0x614)][_0xd99090(0x59e)]['replace'](_0xd99090(0x13e0),''));if(_0x514b7c[_0xd99090(0x614)][_0xd99090(0x4f4)]&&_0x514b7c[_0xd99090(0x614)][_0xd99090(0x4f4)]===_0xd99090(0x1ad6)){}else switch((_0x514b7c[_0xd99090(0x614)][_0xd99090(0x16e1)]||_0x514b7c[_0xd99090(0x614)][_0xd99090(0x4f4)])[_0xd99090(0x2554)]()){case _0xd99090(0x1979):_0x514b7c['gotoif'][_0xd99090(0xacb)]=_0x514b7c[_0xd99090(0x614)][_0xd99090(0x2494)]+'='+_0x514b7c[_0xd99090(0x614)][_0xd99090(0x1096)];break;case _0xd99090(0x1ad6):break;default:_0x2005f0[0x0]=_0x514b7c[_0xd99090(0x614)][_0xd99090(0xeea)],_0x2005f0[0x1]=_0x514b7c['gotoif']['truepriority'],_0x2005f0[0x2]=_0x514b7c[_0xd99090(0x614)][_0xd99090(0x1d32)],_0x514b7c[_0xd99090(0x614)][_0xd99090(0xacb)]=_0x2005f0[_0xd99090(0x9a6)](',');}_0x2943b9(_0x514b7c[_0xd99090(0x614)]);}function _0x2943b9(_0x4f166b){const _0x197e5a=_0xacf220;_0x1eb682[_0x197e5a(0x268e)](_0x4f166b);}}const _0x5e58c1=_0xe97125;;_0x5869cc[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x15ff),_0x49a1e3(0x217c),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),'crudPermissions'];function _0x5869cc(_0x3549ce,_0x2f290e,_0x3b258f,_0x22f4a6,_0x165ae6,_0x1ece12,_0x4dd283,_0x372e45){const _0x5a9843=_0x49a1e3,_0xcb0c2f=this;_0xcb0c2f[_0x5a9843(0x1d3d)]=_0x4dd283[_0x5a9843(0x808)](),_0xcb0c2f[_0x5a9843(0xbae)]=[],_0xcb0c2f['title']='WHATSAPP.EDIT_'+(_0x22f4a6[_0x5a9843(0x4f4)]||_0x22f4a6[_0x5a9843(0x16e1)])[_0x5a9843(0xa3c)](),_0xcb0c2f[_0x5a9843(0x2046)]=angular['copy'](_0x22f4a6),_0xcb0c2f[_0x5a9843(0x402)]=_0x372e45,_0xcb0c2f[_0x5a9843(0x6c2)]={};if(_0xcb0c2f[_0x5a9843(0x2046)]['appdata'])switch(_0xcb0c2f[_0x5a9843(0x2046)]['appType']?_0xcb0c2f['gotop'][_0x5a9843(0x4f4)][_0x5a9843(0x2554)]():_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0x16e1)][_0x5a9843(0x2554)]()){case _0x5a9843(0x1ad6):break;case _0x5a9843(0x1084):{const _0xef7b63=_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0xacb)][_0x5a9843(0x282c)](',');_0xcb0c2f[_0x5a9843(0x2046)]['key']=_0xef7b63[0x0],_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0x1cbd)]=_0xef7b63[0x1],_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0x31b)]=_0xef7b63[_0x5a9843(0x142e)](0x2,_0xef7b63['length'])[_0x5a9843(0x9a6)](',');}break;case _0x5a9843(0x1b1a):{const _0x557d3c=_0xcb0c2f['gotop'][_0x5a9843(0xacb)]['split'](',');_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0xbfd)]=_0x557d3c[0x0],_0xcb0c2f[_0x5a9843(0x2046)]['clientEmail']=_0x557d3c[0x1],_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0x1b1b)]=_0x557d3c[0x2],_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0x1cbd)]=_0x557d3c[0x3],_0xcb0c2f['gotop']['welcomemessage']=_0x557d3c[_0x5a9843(0x142e)](0x4,_0x557d3c[_0x5a9843(0x1b9e)])[_0x5a9843(0x9a6)](',');}break;case _0x5a9843(0x290d):{const _0x3ef258=_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0xacb)][_0x5a9843(0x282c)](',');_0xcb0c2f[_0x5a9843(0x2046)]['accesskeyid']=_0x3ef258[0x0],_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0x1b1)]=_0x3ef258[0x1],_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0x17a2)]=_0x3ef258[0x2],_0xcb0c2f['gotop'][_0x5a9843(0x2797)]=_0x3ef258[0x3],_0xcb0c2f['gotop']['welcomemessage']=_0x3ef258[_0x5a9843(0x142e)](0x4,_0x3ef258[_0x5a9843(0x1b9e)])[_0x5a9843(0x9a6)](',');}break;case _0x5a9843(0x21a9):{const _0x41eab7=_0xcb0c2f['gotop'][_0x5a9843(0xacb)][_0x5a9843(0x282c)](',');_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0x95f)]=isNaN(_0x41eab7[0x0])?_0x41eab7[0x0]:parseInt(_0x41eab7[0x0],0xa),_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0x39b)]=_0x41eab7[_0x5a9843(0x142e)](0x1,_0x41eab7[_0x5a9843(0x1b9e)])[_0x5a9843(0x9a6)](',');}break;case _0x5a9843(0x18ca):_0xcb0c2f['gotop'][_0x5a9843(0x39b)]=_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0xacb)];break;case _0x5a9843(0x1979):_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0x2494)]=_0xcb0c2f['gotop']['appdata'][_0x5a9843(0x282c)]('=')[0x0],_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0x1096)]=_0xcb0c2f[_0x5a9843(0x2046)]['appdata'][_0x5a9843(0x282c)]('=')[0x1];break;case _0x5a9843(0x1e67):_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0x1bd9)]=_0xcb0c2f['gotop'][_0x5a9843(0xacb)];break;default:{const _0x200a60=_0xcb0c2f['gotop'][_0x5a9843(0xacb)][_0x5a9843(0x282c)](',');_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0x1095)]=_0x28c606()[_0x5a9843(0x940)](_0x200a60[0x0])?_0x200a60[0x0]:isNaN(_0x200a60[0x0])?_0x200a60[0x0]:parseInt(_0x200a60[0x0],0xa);}break;}else{}_0xcb0c2f['gotop'][_0x5a9843(0x2185)]&&_0xcb0c2f['gotop']['type'][_0x5a9843(0x2554)]()===_0x5a9843(0xbce)&&_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0x4f4)][_0x5a9843(0x2554)]()===_0x5a9843(0x20eb)&&(_0xcb0c2f[_0x5a9843(0x2046)]['prefix']=_0xcb0c2f[_0x5a9843(0x2046)]['phone']?_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0x267a)][_0x5a9843(0x282c)]('$')[0x0]:undefined,_0xcb0c2f[_0x5a9843(0x2046)]['callerId']=_0xcb0c2f['gotop']['callerID']?_0x5a9843(0x2489)+_0xcb0c2f[_0x5a9843(0x2046)][_0x5a9843(0x1abe)]:undefined);_0xcb0c2f[_0x5a9843(0x276e)]=_0x336dce,_0xcb0c2f[_0x5a9843(0x16cb)]=_0x4644dc;function _0x336dce(){const _0x67e7ad=_0x5a9843;_0xcb0c2f[_0x67e7ad(0xbae)]=[];const _0x32d181=[];_0xcb0c2f[_0x67e7ad(0x2046)][_0x67e7ad(0x2185)]&&_0xcb0c2f[_0x67e7ad(0x2046)][_0x67e7ad(0x2185)][_0x67e7ad(0x2554)]()==='outbound'&&_0xcb0c2f[_0x67e7ad(0x2046)][_0x67e7ad(0x4f4)]===_0x67e7ad(0x17b6)&&(_0xcb0c2f[_0x67e7ad(0x2046)]['phone']=_0x165ae6['cutdigits']?(_0xcb0c2f['gotop'][_0x67e7ad(0x2524)]||'')+_0x67e7ad(0x1a75)+_0x165ae6[_0x67e7ad(0x242b)]+'}':(_0xcb0c2f[_0x67e7ad(0x2046)][_0x67e7ad(0x2524)]||'')+_0x67e7ad(0x5ad),_0x165ae6['recordingFormat']!=='none'?_0xcb0c2f['gotop']['options']['indexOf'](_0x67e7ad(0x13e0))<0x0&&(_0xcb0c2f[_0x67e7ad(0x2046)][_0x67e7ad(0x59e)]+=_0x67e7ad(0x13e0)):_0xcb0c2f[_0x67e7ad(0x2046)]['options']=_0xcb0c2f['gotop'][_0x67e7ad(0x59e)]['replace']('U(xcally-mixmonitor-context)',''));if(_0xcb0c2f[_0x67e7ad(0x2046)][_0x67e7ad(0x4f4)]&&_0xcb0c2f[_0x67e7ad(0x2046)][_0x67e7ad(0x4f4)]==='custom'){}else switch((_0xcb0c2f[_0x67e7ad(0x2046)][_0x67e7ad(0x16e1)]||_0xcb0c2f[_0x67e7ad(0x2046)][_0x67e7ad(0x4f4)])[_0x67e7ad(0x2554)]()){case _0x67e7ad(0x1979):_0xcb0c2f[_0x67e7ad(0x2046)][_0x67e7ad(0xacb)]=_0xcb0c2f[_0x67e7ad(0x2046)][_0x67e7ad(0x2494)]+'='+_0xcb0c2f['gotop'][_0x67e7ad(0x1096)];break;case _0x67e7ad(0x1ad6):break;default:_0x32d181[0x0]=_0xcb0c2f[_0x67e7ad(0x2046)]['priority'],_0xcb0c2f[_0x67e7ad(0x2046)][_0x67e7ad(0xacb)]=_0x32d181[_0x67e7ad(0x9a6)](',');}_0x4644dc(_0xcb0c2f[_0x67e7ad(0x2046)]);}function _0x4644dc(_0xc37fd1){_0x3549ce['hide'](_0xc37fd1);}}const _0x3a26f6=_0x5869cc;;_0x820973[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x212a),'$mdToast',_0x49a1e3(0xd48),_0x49a1e3(0xcfd),_0x49a1e3(0x15e4),_0x49a1e3(0x680),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x402)];function _0x820973(_0x5663e8,_0x550941,_0x301b6c,_0x12fcc4,_0x2cc4a9,_0x1ca9ae,_0x400781,_0x4d1c4b,_0x441aff,_0x5e8fe8){const _0x57e46d=_0x49a1e3,_0x548761=this;_0x548761[_0x57e46d(0x1d3d)]=_0x441aff[_0x57e46d(0x808)](),_0x548761['errors']=[],_0x548761['title']=_0x57e46d(0x20a4),_0x548761['interval']=angular[_0x57e46d(0x289e)](_0x2cc4a9),_0x548761[_0x57e46d(0x15e4)]=_0x1ca9ae,_0x548761['newInterval']=![],_0x548761['types']=[_0x57e46d(0xa66),_0x57e46d(0x1ad6),_0x57e46d(0x2764)],_0x548761[_0x57e46d(0x402)]=_0x5e8fe8,_0x548761['daysOfWeek']=_0x12fcc4[_0x57e46d(0x8b9)](),_0x548761['monthNumber']=_0x12fcc4[_0x57e46d(0x17ef)](),_0x548761['monthName']=_0x12fcc4[_0x57e46d(0x273)](),_0x548761[_0x57e46d(0x1e2a)]=_0x12fcc4[_0x57e46d(0xefe)]();if(!_0x548761[_0x57e46d(0xcfd)])_0x548761[_0x57e46d(0xcfd)]={'interval':'*,*,*,*'},_0x548761['type']=_0x57e46d(0xa66),_0x548761[_0x57e46d(0x2021)]=_0x57e46d(0xcbc),_0x548761['newInterval']=!![];else{if(_0x548761[_0x57e46d(0xcfd)][_0x57e46d(0xcfd)]!=='*,*,*,*'){_0x548761[_0x57e46d(0x2185)]='custom';const _0x151adc=_0x548761['interval'][_0x57e46d(0xcfd)][_0x57e46d(0x282c)](','),_0xa234ab=_0x151adc[0x0],_0x21269c=_0x151adc[0x1],_0x21d81b=_0x151adc[0x2],_0x531c3c=_0x151adc[0x3];if(_0xa234ab!=='*'){const _0x5672e8=_0xa234ab[_0x57e46d(0x282c)]('-')[0x0],_0x31eaaf=_0xa234ab[_0x57e46d(0x282c)]('-')[0x1];let _0xd9ee04;_0xd9ee04=new Date(),_0xd9ee04[_0x57e46d(0x260)](Number(_0x5672e8[_0x57e46d(0x282c)](':')[0x0])),_0xd9ee04[_0x57e46d(0x1b10)](Number(_0x5672e8[_0x57e46d(0x282c)](':')[0x1])),_0x548761['timeRangeFrom']=_0xd9ee04,_0xd9ee04=new Date(),_0xd9ee04['setHours'](Number(_0x31eaaf['split'](':')[0x0])),_0xd9ee04['setMinutes'](Number(_0x31eaaf['split'](':')[0x1])),_0x548761[_0x57e46d(0x196a)]=_0xd9ee04;}_0x21269c!=='*'&&(_0x548761['dayOfWeekFrom']=_0x21269c[_0x57e46d(0x282c)]('-')[0x0],_0x548761['dayOfWeekTo']=_0x21269c['split']('-')[0x1]),_0x21d81b!=='*'&&(_0x548761[_0x57e46d(0x1e3)]=_0x21d81b[_0x57e46d(0x282c)]('-')[0x0],_0x548761['monthDayTo']=_0x21d81b['split']('-')[0x1]),_0x531c3c!=='*'&&(_0x548761[_0x57e46d(0x205f)]=_0x531c3c[_0x57e46d(0x282c)]('-')[0x0],_0x548761[_0x57e46d(0x1ea4)]=_0x531c3c['split']('-')[0x1]);}else _0x548761['type']=_0x57e46d(0xa66);}_0x5663e8[_0x57e46d(0x1b48)]['id']&&!_0x548761[_0x57e46d(0xcfd)][_0x57e46d(0x2081)]&&(_0x548761['interval'][_0x57e46d(0xb71)]=_0x5663e8[_0x57e46d(0x1b48)]['id']);_0x548761[_0x57e46d(0xcfd)][_0x57e46d(0xb71)]&&_0x548761[_0x57e46d(0xcfd)][_0x57e46d(0x2081)]&&(_0x548761[_0x57e46d(0x2185)]=_0x57e46d(0x2764));_0x548761[_0x57e46d(0x23c0)]=_0x1651fc,_0x548761[_0x57e46d(0x1f5)]=_0x5c2ab5,_0x548761[_0x57e46d(0x16cb)]=_0xc8a957;_0x548761[_0x57e46d(0xcfd)]['application']&&(_0x441aff[_0x57e46d(0x4de)](_0x57e46d(0x333))?_0x4d1c4b[_0x57e46d(0xcfd)][_0x57e46d(0x896)]({'fields':_0x57e46d(0x530),'IntervalId':_0x57e46d(0x8f1),'nolimit':!![]})[_0x57e46d(0x15e7)][_0x57e46d(0x64a)](function(_0x495c3e){const _0x572cc1=_0x57e46d;_0x548761[_0x572cc1(0x15e4)]=_0x495c3e[_0x572cc1(0x28b8)]||[];})[_0x57e46d(0x20cd)](function(_0x1a60e1){const _0x18f239=_0x57e46d;_0x400781[_0x18f239(0x1bd0)]({'title':_0x1a60e1[_0x18f239(0x10b3)]?_0x18f239(0x575)+_0x1a60e1[_0x18f239(0x10b3)]+_0x18f239(0x21db)+_0x1a60e1[_0x18f239(0x2115)]:_0x18f239(0xbfb),'msg':_0x1a60e1[_0x18f239(0x1c52)]?JSON[_0x18f239(0x2317)](_0x1a60e1[_0x18f239(0x1c52)]):_0x1a60e1[_0x18f239(0x2915)]()});}):_0x4d1c4b['interval'][_0x57e46d(0x896)]({'fields':_0x57e46d(0x530),'IntervalId':'null','nolimit':!![]})[_0x57e46d(0x15e7)][_0x57e46d(0x64a)](function(_0x1f3f3f){const _0x1e1721=_0x57e46d;_0x548761[_0x1e1721(0x15e4)]=_0x1f3f3f['rows']||[];})['then'](function(){const _0x1e5460=_0x57e46d;return _0x4d1c4b[_0x1e5460(0x16b2)][_0x1e5460(0x896)]({'userProfileId':_0x548761[_0x1e5460(0x1d3d)]['userProfileId'],'sectionId':0x3ec})['$promise'];})[_0x57e46d(0x64a)](function(_0xb68514){const _0x508ed9=_0x57e46d,_0x41d2a6=_0xb68514&&_0xb68514[_0x508ed9(0x28b8)]?_0xb68514[_0x508ed9(0x28b8)][0x0]:null;if(!_0x41d2a6)_0x548761['intervals']=[];else{if(!_0x41d2a6[_0x508ed9(0x11da)])return _0x4d1c4b['userProfileResource']['get']({'sectionId':_0x41d2a6['id']})[_0x508ed9(0x15e7)]['then'](function(_0x3b3937){const _0x210d0a=_0x508ed9,_0x5b09c0=_0x3b3937&&_0x3b3937[_0x210d0a(0x28b8)]?_0x3b3937[_0x210d0a(0x28b8)]:[],_0x24a060=[];let _0x5b6db6=null;_0x548761[_0x210d0a(0xcfd)]&&(_0x5b6db6=_0x28c606()[_0x210d0a(0x27bc)](_0x548761[_0x210d0a(0x15e4)],{'name':_0x548761[_0x210d0a(0xcfd)]['IntervalId']})),_0x5b6db6&&!_0x28c606()[_0x210d0a(0x25f8)](_0x5b09c0,[_0x210d0a(0x145),_0x5b6db6['id']])&&_0x548761[_0x210d0a(0x15e4)]['forEach'](function(_0x37545e){const _0x2bb9b4=_0x210d0a;_0x37545e['id']===_0x5b6db6['id']&&(_0x37545e[_0x2bb9b4(0xd4f)]=![],_0x24a060['push'](_0x37545e));}),_0x548761['intervals']=_0x24a060;});}})[_0x57e46d(0x20cd)](function(_0x5a160a){const _0x346215=_0x57e46d;_0x400781[_0x346215(0x1bd0)]({'title':_0x5a160a['status']?_0x346215(0x575)+_0x5a160a[_0x346215(0x10b3)]+_0x346215(0x21db)+_0x5a160a[_0x346215(0x2115)]:'SYSTEM:GET_INTERVALS','msg':_0x5a160a['data']?JSON[_0x346215(0x2317)](_0x5a160a[_0x346215(0x1c52)]):_0x5a160a[_0x346215(0x2915)]()});}));function _0x4e0246(){const _0x2e47b2=_0x57e46d;switch(_0x548761[_0x2e47b2(0x2185)]){case _0x2e47b2(0xa66):case _0x2e47b2(0x2764):return'*,*,*,*';case _0x2e47b2(0x1ad6):{const _0x1b22e8=[];if(_0x548761[_0x2e47b2(0x268d)]!=='*'&&_0x548761['timeRangeFrom']&&_0x548761['timeRangeTo']){const _0x2fbdb6=(_0x548761[_0x2e47b2(0x268d)][_0x2e47b2(0x48a)]()<0xa?'0':'')+_0x548761['timeRangeFrom'][_0x2e47b2(0x48a)]()+':'+((_0x548761[_0x2e47b2(0x268d)]['getMinutes']()<0xa?'0':'')+_0x548761[_0x2e47b2(0x268d)][_0x2e47b2(0x1894)]()),_0x27f873=(_0x548761['timeRangeTo'][_0x2e47b2(0x48a)]()<0xa?'0':'')+_0x548761['timeRangeTo'][_0x2e47b2(0x48a)]()+':'+((_0x548761[_0x2e47b2(0x196a)][_0x2e47b2(0x1894)]()<0xa?'0':'')+_0x548761[_0x2e47b2(0x196a)][_0x2e47b2(0x1894)]());_0x1b22e8[_0x2e47b2(0x1954)](_0x2fbdb6+'-'+_0x27f873);}else _0x1b22e8[_0x2e47b2(0x1954)]('*');return _0x548761['dayOfWeekFrom']?_0x548761[_0x2e47b2(0x1297)]?_0x1b22e8[_0x2e47b2(0x1954)](_0x548761[_0x2e47b2(0xa8e)]+'-'+_0x548761[_0x2e47b2(0x1297)]):_0x1b22e8[_0x2e47b2(0x1954)](_0x548761[_0x2e47b2(0xa8e)]):_0x1b22e8[_0x2e47b2(0x1954)]('*'),_0x548761[_0x2e47b2(0x1e3)]?_0x548761[_0x2e47b2(0x15c4)]?_0x1b22e8[_0x2e47b2(0x1954)](_0x548761[_0x2e47b2(0x1e3)]+'-'+_0x548761[_0x2e47b2(0x15c4)]):_0x1b22e8[_0x2e47b2(0x1954)](_0x548761[_0x2e47b2(0x1e3)]):_0x1b22e8[_0x2e47b2(0x1954)]('*'),_0x548761[_0x2e47b2(0x205f)]?_0x548761[_0x2e47b2(0x1ea4)]?_0x1b22e8[_0x2e47b2(0x1954)](_0x548761[_0x2e47b2(0x205f)]+'-'+_0x548761[_0x2e47b2(0x1ea4)]):_0x1b22e8[_0x2e47b2(0x1954)](_0x548761['monthFrom']):_0x1b22e8['push']('*'),_0x1b22e8[_0x2e47b2(0x9a6)]();}}}function _0x1651fc(){const _0x78c01f=_0x57e46d;_0x548761['errors']=[],_0x548761[_0x78c01f(0xcfd)][_0x78c01f(0xcfd)]=_0x4e0246(),_0x4d1c4b[_0x78c01f(0xcfd)][_0x78c01f(0x2479)](_0x548761[_0x78c01f(0xcfd)])[_0x78c01f(0x15e7)][_0x78c01f(0x64a)](function(_0x2085cc){const _0x293bf6=_0x78c01f;_0x548761[_0x293bf6(0x15e4)]['push'](_0x2085cc),_0x400781[_0x293bf6(0x1339)]({'title':'Interval\x20properly\x20created','msg':_0x548761[_0x293bf6(0xcfd)]['name']?_0x548761[_0x293bf6(0xcfd)][_0x293bf6(0x2494)]+'\x20has\x20been\x20created!':''}),_0xc8a957();})[_0x78c01f(0x20cd)](function(_0x3cb04c){const _0x2a88f1=_0x78c01f;console[_0x2a88f1(0x1bd0)](_0x3cb04c),_0x548761[_0x2a88f1(0xbae)]=_0x3cb04c[_0x2a88f1(0x1c52)]['errors']||[{'message':_0x3cb04c[_0x2a88f1(0x2915)](),'type':_0x2a88f1(0x12a0)}];});}function _0x5c2ab5(){const _0x101985=_0x57e46d;_0x548761[_0x101985(0xbae)]=[],_0x548761[_0x101985(0xcfd)][_0x101985(0xcfd)]=_0x4e0246(),_0x548761[_0x101985(0xcfd)][_0x101985(0x2081)]?(_0x548761[_0x101985(0x2185)]!=='list'&&(_0x548761['interval']['IntervalId']=null),_0xc8a957(_0x548761[_0x101985(0xcfd)])):_0x4d1c4b[_0x101985(0xcfd)][_0x101985(0x2603)]({'id':_0x548761[_0x101985(0xcfd)]['id']},_0x548761[_0x101985(0xcfd)])[_0x101985(0x15e7)]['then'](function(_0x3dba32){const _0x549c74=_0x101985,_0x365c53=_0x28c606()[_0x549c74(0x27bc)](_0x548761[_0x549c74(0x15e4)],{'id':_0x3dba32['id']});_0x365c53&&_0x28c606()[_0x549c74(0x14fe)](_0x365c53,_0x3dba32),_0x400781[_0x549c74(0x1339)]({'title':'Interval\x20properly\x20saved!','msg':'Interval\x20has\x20been\x20saved!'}),_0xc8a957();})['catch'](function(_0x121140){const _0x4298aa=_0x101985;console[_0x4298aa(0x1bd0)](_0x121140),_0x548761[_0x4298aa(0xbae)]=_0x121140['data'][_0x4298aa(0xbae)]||[{'message':_0x121140['toString'](),'type':'api.interval.update'}];});}function _0xc8a957(_0x36c5b3){const _0x213f18=_0x57e46d;_0x550941[_0x213f18(0x268e)](_0x36c5b3);}}const _0x5595c7=_0x820973;;_0x455362[_0x49a1e3(0x1e73)]=['$mdDialog','$q',_0x49a1e3(0x680),'whatsappAccountApp',_0x49a1e3(0x217c),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x455362(_0x326381,_0x554f0c,_0x13f076,_0x932a26,_0x2d46ce,_0x2160c3,_0x342e60,_0x5ef61c){const _0x520b9f=_0x49a1e3,_0x448eae=this;_0x448eae[_0x520b9f(0x1d3d)]=_0x342e60[_0x520b9f(0x808)](),_0x448eae[_0x520b9f(0xbae)]=[],_0x448eae[_0x520b9f(0x2021)]=_0x520b9f(0x584)+(_0x932a26['appType']||_0x932a26[_0x520b9f(0x16e1)])[_0x520b9f(0xa3c)](),_0x448eae['noop']=angular[_0x520b9f(0x289e)](_0x932a26),_0x448eae[_0x520b9f(0x402)]=_0x5ef61c,_0x448eae[_0x520b9f(0x6c2)]={};if(_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0xacb)])switch(_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0x4f4)]?_0x448eae['noop'][_0x520b9f(0x4f4)][_0x520b9f(0x2554)]():_0x448eae[_0x520b9f(0xbb6)]['app']['toLowerCase']()){case _0x520b9f(0x1ad6):break;case'dialogflow':{const _0x5a5409=_0x448eae['noop'][_0x520b9f(0xacb)]['split'](',');_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0x2125)]=_0x5a5409[0x0],_0x448eae[_0x520b9f(0xbb6)]['language']=_0x5a5409[0x1],_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0x31b)]=_0x5a5409['slice'](0x2,_0x5a5409[_0x520b9f(0x1b9e)])[_0x520b9f(0x9a6)](',');}break;case _0x520b9f(0x1b1a):{const _0x45fe86=_0x448eae['noop'][_0x520b9f(0xacb)]['split'](',');_0x448eae['noop']['projectId']=_0x45fe86[0x0],_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0x4b2)]=_0x45fe86[0x1],_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0x1b1b)]=_0x45fe86[0x2],_0x448eae['noop'][_0x520b9f(0x1cbd)]=_0x45fe86[0x3],_0x448eae['noop'][_0x520b9f(0x31b)]=_0x45fe86[_0x520b9f(0x142e)](0x4,_0x45fe86[_0x520b9f(0x1b9e)])[_0x520b9f(0x9a6)](',');}break;case'amazonlex':{const _0x25a507=_0x448eae['noop']['appdata'][_0x520b9f(0x282c)](',');_0x448eae[_0x520b9f(0xbb6)]['accesskeyid']=_0x25a507[0x0],_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0x1b1)]=_0x25a507[0x1],_0x448eae[_0x520b9f(0xbb6)]['lexregion']=_0x25a507[0x2],_0x448eae['noop'][_0x520b9f(0x2797)]=_0x25a507[0x3],_0x448eae['noop']['welcomemessage']=_0x25a507[_0x520b9f(0x142e)](0x4,_0x25a507[_0x520b9f(0x1b9e)])[_0x520b9f(0x9a6)](',');}break;case'autoreply':{const _0x482e80=_0x448eae[_0x520b9f(0xbb6)]['appdata'][_0x520b9f(0x282c)](',');_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0x95f)]=isNaN(_0x482e80[0x0])?_0x482e80[0x0]:parseInt(_0x482e80[0x0],0xa),_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0x39b)]=_0x482e80[_0x520b9f(0x142e)](0x1,_0x482e80[_0x520b9f(0x1b9e)])[_0x520b9f(0x9a6)](',');}break;case _0x520b9f(0x18ca):_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0x39b)]=_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0xacb)];break;case _0x520b9f(0x1979):_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0x2494)]=_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0xacb)][_0x520b9f(0x282c)]('=')[0x0],_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0x1096)]=_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0xacb)][_0x520b9f(0x282c)]('=')[0x1];break;case _0x520b9f(0x1e67):_0x448eae['noop']['project']=_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0xacb)];break;default:{const _0x36c6e4=_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0xacb)][_0x520b9f(0x282c)](',');_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0x1096)]=_0x28c606()['isEmpty'](_0x36c6e4[0x0])?_0x36c6e4[0x0]:isNaN(_0x36c6e4[0x0])?_0x36c6e4[0x0]:parseInt(_0x36c6e4[0x0],0xa);}break;}else{}_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0x2185)]&&_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0x2185)][_0x520b9f(0x2554)]()==='outbound'&&_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0x4f4)][_0x520b9f(0x2554)]()===_0x520b9f(0x20eb)&&(_0x448eae['noop'][_0x520b9f(0x2524)]=_0x448eae['noop'][_0x520b9f(0x267a)]?_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0x267a)]['split']('$')[0x0]:undefined,_0x448eae['noop'][_0x520b9f(0x1a9b)]=_0x448eae[_0x520b9f(0xbb6)][_0x520b9f(0x1abe)]?_0x520b9f(0x2489)+_0x448eae[_0x520b9f(0xbb6)]['callerID']:undefined);_0x448eae[_0x520b9f(0x276e)]=_0x1e8226,_0x448eae[_0x520b9f(0x16cb)]=_0x2813e4;function _0x1e8226(){const _0x4d5a6c=_0x520b9f;_0x448eae['errors']=[];const _0x54b19d=[];_0x448eae[_0x4d5a6c(0xbb6)]['type']&&_0x448eae[_0x4d5a6c(0xbb6)][_0x4d5a6c(0x2185)][_0x4d5a6c(0x2554)]()==='outbound'&&_0x448eae[_0x4d5a6c(0xbb6)][_0x4d5a6c(0x4f4)]===_0x4d5a6c(0x17b6)&&(_0x448eae['noop'][_0x4d5a6c(0x267a)]=_0x2d46ce[_0x4d5a6c(0x242b)]?(_0x448eae[_0x4d5a6c(0xbb6)][_0x4d5a6c(0x2524)]||'')+'${EXTEN:'+_0x2d46ce[_0x4d5a6c(0x242b)]+'}':(_0x448eae[_0x4d5a6c(0xbb6)]['prefix']||'')+'${EXTEN}',_0x2d46ce[_0x4d5a6c(0x1097)]!=='none'?_0x448eae[_0x4d5a6c(0xbb6)][_0x4d5a6c(0x59e)][_0x4d5a6c(0x1b28)](_0x4d5a6c(0x13e0))<0x0&&(_0x448eae[_0x4d5a6c(0xbb6)][_0x4d5a6c(0x59e)]+=_0x4d5a6c(0x13e0)):_0x448eae['noop']['options']=_0x448eae['noop'][_0x4d5a6c(0x59e)][_0x4d5a6c(0x1353)](_0x4d5a6c(0x13e0),''));if(_0x448eae[_0x4d5a6c(0xbb6)][_0x4d5a6c(0x4f4)]&&_0x448eae['noop'][_0x4d5a6c(0x4f4)]===_0x4d5a6c(0x1ad6)){}else switch((_0x448eae[_0x4d5a6c(0xbb6)][_0x4d5a6c(0x16e1)]||_0x448eae[_0x4d5a6c(0xbb6)]['appType'])[_0x4d5a6c(0x2554)]()){case _0x4d5a6c(0x1979):_0x448eae[_0x4d5a6c(0xbb6)][_0x4d5a6c(0xacb)]=_0x448eae['noop']['name']+'='+_0x448eae[_0x4d5a6c(0xbb6)][_0x4d5a6c(0x1096)];break;case _0x4d5a6c(0x1ad6):break;default:_0x54b19d[0x0]=_0x448eae['noop']['value'],_0x448eae[_0x4d5a6c(0xbb6)][_0x4d5a6c(0xacb)]=_0x54b19d[_0x4d5a6c(0x9a6)](',');}_0x2813e4(_0x448eae['noop']);}function _0x2813e4(_0x198862){const _0x2d195c=_0x520b9f;_0x326381[_0x2d195c(0x268e)](_0x198862);}}const _0x1b7f12=_0x455362;;_0x13ca2c[_0x49a1e3(0x1e73)]=['$mdDialog','$q','toasty',_0x49a1e3(0x15ff),_0x49a1e3(0x217c),_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x402)];function _0x13ca2c(_0x5ddcee,_0x36e8e5,_0x4174dc,_0x69054d,_0x54fbf2,_0x30afc2,_0x79afb8,_0x4c21fc){const _0x2adca6=_0x49a1e3,_0x4db3e5=this;_0x4db3e5[_0x2adca6(0x1d3d)]=_0x79afb8[_0x2adca6(0x808)](),_0x4db3e5[_0x2adca6(0xbae)]=[],_0x4db3e5[_0x2adca6(0x2021)]=_0x2adca6(0x584)+(_0x69054d[_0x2adca6(0x4f4)]||_0x69054d[_0x2adca6(0x16e1)])['toUpperCase'](),_0x4db3e5[_0x2adca6(0x1e4e)]=angular['copy'](_0x69054d),_0x4db3e5[_0x2adca6(0x402)]=_0x4c21fc,_0x4db3e5[_0x2adca6(0x6c2)]={};if(_0x4db3e5['queue'][_0x2adca6(0xacb)])switch(_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0x4f4)]?_0x4db3e5[_0x2adca6(0x1e4e)]['appType']['toLowerCase']():_0x4db3e5[_0x2adca6(0x1e4e)]['app']['toLowerCase']()){case'custom':break;case'dialogflow':{const _0x12efcf=_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0xacb)][_0x2adca6(0x282c)](',');_0x4db3e5[_0x2adca6(0x1e4e)]['key']=_0x12efcf[0x0],_0x4db3e5[_0x2adca6(0x1e4e)]['language']=_0x12efcf[0x1],_0x4db3e5['queue'][_0x2adca6(0x31b)]=_0x12efcf[_0x2adca6(0x142e)](0x2,_0x12efcf[_0x2adca6(0x1b9e)])[_0x2adca6(0x9a6)](',');}break;case _0x2adca6(0x1b1a):{const _0x5dfa62=_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0xacb)][_0x2adca6(0x282c)](',');_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0xbfd)]=_0x5dfa62[0x0],_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0x4b2)]=_0x5dfa62[0x1],_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0x1b1b)]=_0x5dfa62[0x2],_0x4db3e5[_0x2adca6(0x1e4e)]['language']=_0x5dfa62[0x3],_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0x31b)]=_0x5dfa62['slice'](0x4,_0x5dfa62[_0x2adca6(0x1b9e)])[_0x2adca6(0x9a6)](',');}break;case _0x2adca6(0x290d):{const _0x3aaa18=_0x4db3e5[_0x2adca6(0x1e4e)]['appdata'][_0x2adca6(0x282c)](',');_0x4db3e5['queue'][_0x2adca6(0x1466)]=_0x3aaa18[0x0],_0x4db3e5['queue'][_0x2adca6(0x1b1)]=_0x3aaa18[0x1],_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0x17a2)]=_0x3aaa18[0x2],_0x4db3e5['queue'][_0x2adca6(0x2797)]=_0x3aaa18[0x3],_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0x31b)]=_0x3aaa18[_0x2adca6(0x142e)](0x4,_0x3aaa18[_0x2adca6(0x1b9e)])['join'](',');}break;case _0x2adca6(0x21a9):{const _0x11a102=_0x4db3e5['queue']['appdata'][_0x2adca6(0x282c)](',');_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0x95f)]=isNaN(_0x11a102[0x0])?_0x11a102[0x0]:parseInt(_0x11a102[0x0],0xa),_0x4db3e5[_0x2adca6(0x1e4e)]['text']=_0x11a102[_0x2adca6(0x142e)](0x1,_0x11a102[_0x2adca6(0x1b9e)])[_0x2adca6(0x9a6)](',');}break;case'message':_0x4db3e5['queue'][_0x2adca6(0x39b)]=_0x4db3e5['queue']['appdata'];break;case _0x2adca6(0x1979):_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0x2494)]=_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0xacb)]['split']('=')[0x0],_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0x1096)]=_0x4db3e5['queue'][_0x2adca6(0xacb)][_0x2adca6(0x282c)]('=')[0x1];break;case _0x2adca6(0x1e67):_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0x1bd9)]=_0x4db3e5[_0x2adca6(0x1e4e)]['appdata'];break;default:{const _0x19922d=_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0xacb)]['split'](',');_0x4db3e5['queue'][_0x2adca6(0x1e4e)]=_0x28c606()[_0x2adca6(0x940)](_0x19922d[0x0])?_0x19922d[0x0]:isNaN(_0x19922d[0x0])?_0x19922d[0x0]:parseInt(_0x19922d[0x0],0xa),_0x4db3e5['queue'][_0x2adca6(0x16d)]=_0x28c606()[_0x2adca6(0x940)](_0x19922d[0x1])?_0x19922d[0x1]:isNaN(_0x19922d[0x1])?_0x19922d[0x1]:parseInt(_0x19922d[0x1],0xa);}break;}else _0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0x1e4e)]=0x12c,_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0x16d)]=0x12c;_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0x2185)]&&_0x4db3e5[_0x2adca6(0x1e4e)]['type'][_0x2adca6(0x2554)]()==='outbound'&&_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0x4f4)][_0x2adca6(0x2554)]()===_0x2adca6(0x20eb)&&(_0x4db3e5['queue'][_0x2adca6(0x2524)]=_0x4db3e5['queue'][_0x2adca6(0x267a)]?_0x4db3e5[_0x2adca6(0x1e4e)]['phone']['split']('$')[0x0]:undefined,_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0x1a9b)]=_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0x1abe)]?_0x2adca6(0x2489)+_0x4db3e5[_0x2adca6(0x1e4e)][_0x2adca6(0x1abe)]:undefined);_0x4db3e5[_0x2adca6(0x276e)]=_0x2996e4,_0x4db3e5['closeDialog']=_0x5cab64,_0x79afb8[_0x2adca6(0x4de)](_0x2adca6(0x333))?_0x30afc2['whatsappQueue'][_0x2adca6(0x896)]({'fields':_0x2adca6(0x2ba),'sort':_0x2adca6(0x2494),'nolimit':_0x2adca6(0x1685)})[_0x2adca6(0x15e7)][_0x2adca6(0x64a)](function(_0x17584c){const _0x40533c=_0x2adca6;_0x4db3e5['queues']=_0x17584c[_0x40533c(0x28b8)]||[];})['catch'](function(_0xa2f6ce){const _0x1d38a7=_0x2adca6;_0x4174dc[_0x1d38a7(0x1bd0)]({'title':_0xa2f6ce[_0x1d38a7(0x10b3)]?_0x1d38a7(0x575)+_0xa2f6ce[_0x1d38a7(0x10b3)]+_0x1d38a7(0x21db)+_0xa2f6ce['statusText']:_0x1d38a7(0xe03),'msg':_0xa2f6ce['data']?JSON[_0x1d38a7(0x2317)](_0xa2f6ce[_0x1d38a7(0x1c52)]):_0xa2f6ce[_0x1d38a7(0x2915)]()});}):_0x30afc2[_0x2adca6(0x296d)]['get']({'fields':_0x2adca6(0x2ba),'sort':_0x2adca6(0x2494),'nolimit':_0x2adca6(0x1685)})[_0x2adca6(0x15e7)][_0x2adca6(0x64a)](function(_0x5c8f14){_0x4db3e5['queues']=_0x5c8f14['rows']||[];})['then'](function(){const _0x553c49=_0x2adca6;return _0x30afc2[_0x553c49(0x16b2)][_0x553c49(0x896)]({'userProfileId':_0x4db3e5[_0x553c49(0x1d3d)][_0x553c49(0x21ac)],'sectionId':0x836})['$promise'];})[_0x2adca6(0x64a)](function(_0x1589c9){const _0x536e5f=_0x2adca6,_0xcf725e=_0x1589c9&&_0x1589c9[_0x536e5f(0x28b8)]?_0x1589c9[_0x536e5f(0x28b8)][0x0]:null;if(!_0xcf725e){const _0x3f4b4d=[];let _0x177cd5=null;_0x4db3e5[_0x536e5f(0x1e4e)]&&(_0x177cd5=_0x28c606()[_0x536e5f(0x27bc)](_0x4db3e5[_0x536e5f(0x1c06)],{'name':_0x4db3e5['queue']['queue']}));for(let _0x34a980=0x0;_0x34a980<_0x4db3e5[_0x536e5f(0x1c06)][_0x536e5f(0x1b9e)];_0x34a980++){_0x177cd5&&_0x4db3e5['queues'][_0x34a980]['id']===_0x177cd5['id']&&(_0x4db3e5[_0x536e5f(0x1c06)][_0x34a980][_0x536e5f(0xd4f)]=![],_0x3f4b4d['push'](_0x4db3e5[_0x536e5f(0x1c06)][_0x34a980]));}_0x4db3e5[_0x536e5f(0x1c06)]=_0x3f4b4d;}else{if(!_0xcf725e[_0x536e5f(0x11da)])return _0x30afc2[_0x536e5f(0x1617)]['get']({'sectionId':_0xcf725e['id']})[_0x536e5f(0x15e7)][_0x536e5f(0x64a)](function(_0x3bd020){const _0x5b305d=_0x536e5f,_0x7e5e66=_0x28c606()[_0x5b305d(0x1de5)](_0x3bd020[_0x5b305d(0x28b8)],function(_0x4613b6){const _0x50e6dd=_0x5b305d;return _0x28c606()[_0x50e6dd(0x27bc)](_0x4db3e5[_0x50e6dd(0x1c06)],{'id':_0x4613b6[_0x50e6dd(0x145)]});});let _0x4bd54a=null;_0x4db3e5['queue']&&(_0x4bd54a=_0x28c606()[_0x5b305d(0x27bc)](_0x4db3e5['queues'],{'name':_0x4db3e5['queue'][_0x5b305d(0x1e4e)]}));if(_0x4bd54a&&!_0x28c606()[_0x5b305d(0x25f8)](_0x7e5e66,['id',_0x4bd54a['id']])){const _0xaf522a=_0x28c606()[_0x5b305d(0x27bc)](_0x4db3e5[_0x5b305d(0x1c06)],{'id':_0x4bd54a['id']});_0xaf522a[_0x5b305d(0xd4f)]=![],_0x7e5e66[_0x5b305d(0x1954)](_0xaf522a);}_0x4db3e5[_0x5b305d(0x1c06)]=_0x7e5e66;});}})[_0x2adca6(0x20cd)](function(_0x4367ab){const _0x14f0ef=_0x2adca6;_0x4174dc[_0x14f0ef(0x1bd0)]({'title':_0x4367ab[_0x14f0ef(0x10b3)]?_0x14f0ef(0x575)+_0x4367ab[_0x14f0ef(0x10b3)]+_0x14f0ef(0x21db)+_0x4367ab[_0x14f0ef(0x2115)]:_0x14f0ef(0x1238),'msg':_0x4367ab[_0x14f0ef(0x1c52)]?JSON[_0x14f0ef(0x2317)](_0x4367ab[_0x14f0ef(0x1c52)]):_0x4367ab[_0x14f0ef(0x2915)]()});});function _0x2996e4(){const _0x2fa9f7=_0x2adca6;_0x4db3e5[_0x2fa9f7(0xbae)]=[];const _0x33914f=[];_0x4db3e5[_0x2fa9f7(0x1e4e)][_0x2fa9f7(0x2185)]&&_0x4db3e5[_0x2fa9f7(0x1e4e)][_0x2fa9f7(0x2185)][_0x2fa9f7(0x2554)]()===_0x2fa9f7(0xbce)&&_0x4db3e5['queue'][_0x2fa9f7(0x4f4)]===_0x2fa9f7(0x17b6)&&(_0x4db3e5[_0x2fa9f7(0x1e4e)][_0x2fa9f7(0x267a)]=_0x54fbf2[_0x2fa9f7(0x242b)]?(_0x4db3e5[_0x2fa9f7(0x1e4e)]['prefix']||'')+_0x2fa9f7(0x1a75)+_0x54fbf2[_0x2fa9f7(0x242b)]+'}':(_0x4db3e5['queue'][_0x2fa9f7(0x2524)]||'')+_0x2fa9f7(0x5ad),_0x54fbf2[_0x2fa9f7(0x1097)]!==_0x2fa9f7(0x2507)?_0x4db3e5['queue'][_0x2fa9f7(0x59e)][_0x2fa9f7(0x1b28)](_0x2fa9f7(0x13e0))<0x0&&(_0x4db3e5[_0x2fa9f7(0x1e4e)][_0x2fa9f7(0x59e)]+=_0x2fa9f7(0x13e0)):_0x4db3e5[_0x2fa9f7(0x1e4e)][_0x2fa9f7(0x59e)]=_0x4db3e5['queue'][_0x2fa9f7(0x59e)][_0x2fa9f7(0x1353)]('U(xcally-mixmonitor-context)',''));const _0x4998f1=_0x28c606()['find'](_0x4db3e5[_0x2fa9f7(0x1c06)],{'name':_0x4db3e5['queue']['queue']});_0x4998f1&&(_0x4db3e5[_0x2fa9f7(0x1e4e)][_0x28c606()['capitalize'](_0x2fa9f7(0x1a29))+_0x2fa9f7(0x1fe9)]=_0x4998f1['id']);if(_0x4db3e5[_0x2fa9f7(0x1e4e)]['appType']&&_0x4db3e5[_0x2fa9f7(0x1e4e)][_0x2fa9f7(0x4f4)]===_0x2fa9f7(0x1ad6)){}else switch((_0x4db3e5[_0x2fa9f7(0x1e4e)][_0x2fa9f7(0x16e1)]||_0x4db3e5[_0x2fa9f7(0x1e4e)][_0x2fa9f7(0x4f4)])[_0x2fa9f7(0x2554)]()){case _0x2fa9f7(0x1979):_0x4db3e5[_0x2fa9f7(0x1e4e)][_0x2fa9f7(0xacb)]=_0x4db3e5[_0x2fa9f7(0x1e4e)][_0x2fa9f7(0x2494)]+'='+_0x4db3e5[_0x2fa9f7(0x1e4e)][_0x2fa9f7(0x1096)];break;case _0x2fa9f7(0x1ad6):break;default:_0x33914f[0x0]=_0x4db3e5[_0x2fa9f7(0x1e4e)][_0x2fa9f7(0x1e4e)],_0x33914f[0x1]=_0x4db3e5[_0x2fa9f7(0x1e4e)][_0x2fa9f7(0x16d)],_0x4db3e5[_0x2fa9f7(0x1e4e)][_0x2fa9f7(0xacb)]=_0x33914f[_0x2fa9f7(0x9a6)](',');}_0x5cab64(_0x4db3e5[_0x2fa9f7(0x1e4e)]);}function _0x5cab64(_0x48714c){_0x5ddcee['hide'](_0x48714c);}}const _0x3aeef7=_0x13ca2c;;_0x3d75e9[_0x49a1e3(0x1e73)]=['$mdDialog','$q',_0x49a1e3(0x680),_0x49a1e3(0x15ff),'whatsappAccount',_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x3d75e9(_0x4235e7,_0x42d7cb,_0x5300fe,_0x44c230,_0x179a7e,_0x19b80b,_0x3818b2,_0x1232b7){const _0x352498=_0x49a1e3,_0x1a58fa=this;_0x1a58fa['currentUser']=_0x3818b2[_0x352498(0x808)](),_0x1a58fa[_0x352498(0xbae)]=[],_0x1a58fa[_0x352498(0x2021)]='WHATSAPP.EDIT_'+(_0x44c230[_0x352498(0x4f4)]||_0x44c230[_0x352498(0x16e1)])[_0x352498(0xa3c)](),_0x1a58fa[_0x352498(0x1f06)]=angular[_0x352498(0x289e)](_0x44c230),_0x1a58fa[_0x352498(0x402)]=_0x1232b7,_0x1a58fa[_0x352498(0x6c2)]={};if(_0x1a58fa[_0x352498(0x1f06)]['appdata'])switch(_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x4f4)]?_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x4f4)][_0x352498(0x2554)]():_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x16e1)][_0x352498(0x2554)]()){case'custom':break;case _0x352498(0x1084):{const _0x166ded=_0x1a58fa[_0x352498(0x1f06)]['appdata'][_0x352498(0x282c)](',');_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x2125)]=_0x166ded[0x0],_0x1a58fa['system'][_0x352498(0x1cbd)]=_0x166ded[0x1],_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x31b)]=_0x166ded['slice'](0x2,_0x166ded['length'])[_0x352498(0x9a6)](',');}break;case'dialogflowv2':{const _0x22d00a=_0x1a58fa['system'][_0x352498(0xacb)][_0x352498(0x282c)](',');_0x1a58fa[_0x352498(0x1f06)][_0x352498(0xbfd)]=_0x22d00a[0x0],_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x4b2)]=_0x22d00a[0x1],_0x1a58fa['system']['privateKey']=_0x22d00a[0x2],_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x1cbd)]=_0x22d00a[0x3],_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x31b)]=_0x22d00a[_0x352498(0x142e)](0x4,_0x22d00a[_0x352498(0x1b9e)])[_0x352498(0x9a6)](',');}break;case'amazonlex':{const _0x4d9642=_0x1a58fa[_0x352498(0x1f06)][_0x352498(0xacb)]['split'](',');_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x1466)]=_0x4d9642[0x0],_0x1a58fa[_0x352498(0x1f06)]['secretaccesskey']=_0x4d9642[0x1],_0x1a58fa[_0x352498(0x1f06)]['lexregion']=_0x4d9642[0x2],_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x2797)]=_0x4d9642[0x3],_0x1a58fa[_0x352498(0x1f06)]['welcomemessage']=_0x4d9642[_0x352498(0x142e)](0x4,_0x4d9642[_0x352498(0x1b9e)])['join'](',');}break;case _0x352498(0x21a9):{const _0x23266e=_0x1a58fa[_0x352498(0x1f06)][_0x352498(0xacb)]['split'](',');_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x95f)]=isNaN(_0x23266e[0x0])?_0x23266e[0x0]:parseInt(_0x23266e[0x0],0xa),_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x39b)]=_0x23266e[_0x352498(0x142e)](0x1,_0x23266e[_0x352498(0x1b9e)])[_0x352498(0x9a6)](',');}break;case _0x352498(0x18ca):_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x39b)]=_0x1a58fa['system'][_0x352498(0xacb)];break;case'set':_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x2494)]=_0x1a58fa[_0x352498(0x1f06)][_0x352498(0xacb)][_0x352498(0x282c)]('=')[0x0],_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x1096)]=_0x1a58fa[_0x352498(0x1f06)][_0x352498(0xacb)][_0x352498(0x282c)]('=')[0x1];break;case'agi':_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x1bd9)]=_0x1a58fa[_0x352498(0x1f06)][_0x352498(0xacb)];break;default:{const _0x38acb3=_0x1a58fa[_0x352498(0x1f06)][_0x352498(0xacb)][_0x352498(0x282c)](',');_0x1a58fa[_0x352498(0x1f06)][_0x352498(0xf42)]=_0x28c606()[_0x352498(0x940)](_0x38acb3[0x0])?_0x38acb3[0x0]:isNaN(_0x38acb3[0x0])?_0x38acb3[0x0]:parseInt(_0x38acb3[0x0],0xa),_0x1a58fa['system'][_0x352498(0xefb)]=_0x28c606()['isEmpty'](_0x38acb3[0x1])?_0x38acb3[0x1]:isNaN(_0x38acb3[0x1])?_0x38acb3[0x1]:parseInt(_0x38acb3[0x1],0xa);}break;}else _0x1a58fa[_0x352498(0x1f06)][_0x352498(0xefb)]='';_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x2185)]&&_0x1a58fa['system'][_0x352498(0x2185)][_0x352498(0x2554)]()===_0x352498(0xbce)&&_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x4f4)][_0x352498(0x2554)]()===_0x352498(0x20eb)&&(_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x2524)]=_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x267a)]?_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x267a)][_0x352498(0x282c)]('$')[0x0]:undefined,_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x1a9b)]=_0x1a58fa['system'][_0x352498(0x1abe)]?_0x352498(0x2489)+_0x1a58fa[_0x352498(0x1f06)][_0x352498(0x1abe)]:undefined);_0x1a58fa[_0x352498(0x276e)]=_0x35e3af,_0x1a58fa[_0x352498(0x16cb)]=_0x35e2ac,_0x3818b2['hasRole'](_0x352498(0x333))?_0x19b80b['variable'][_0x352498(0x896)]({'fields':_0x352498(0x1427),'sort':_0x352498(0x2494),'nolimit':_0x352498(0x1685)})[_0x352498(0x15e7)][_0x352498(0x64a)](function(_0xb33fe){const _0x245ebf=_0x352498;_0x1a58fa['variables']=_0xb33fe[_0x245ebf(0x28b8)]||[];})[_0x352498(0x20cd)](function(_0x2f52c0){const _0x2c337f=_0x352498;_0x5300fe[_0x2c337f(0x1bd0)]({'title':_0x2f52c0[_0x2c337f(0x10b3)]?_0x2c337f(0x575)+_0x2f52c0['status']+'\x20-\x20'+_0x2f52c0[_0x2c337f(0x2115)]:'SYSTEM:GET_VARIABLES','msg':_0x2f52c0[_0x2c337f(0x1c52)]?JSON[_0x2c337f(0x2317)](_0x2f52c0[_0x2c337f(0x1c52)]):_0x2f52c0[_0x2c337f(0x2915)]()});}):_0x19b80b[_0x352498(0xefb)][_0x352498(0x896)]({'fields':_0x352498(0x1427),'sort':_0x352498(0x2494),'nolimit':_0x352498(0x1685)})[_0x352498(0x15e7)]['then'](function(_0x30d73a){const _0x4cd99a=_0x352498;_0x1a58fa['variables']=_0x30d73a[_0x4cd99a(0x28b8)]||[];})['then'](function(){const _0x181e2d=_0x352498;return _0x19b80b['userProfileSection']['get']({'userProfileId':_0x1a58fa['currentUser'][_0x181e2d(0x21ac)],'sectionId':0x3f4})['$promise'];})[_0x352498(0x64a)](function(_0x1d5c0f){const _0x23dcef=_0x352498,_0x5d46db=_0x1d5c0f&&_0x1d5c0f[_0x23dcef(0x28b8)]?_0x1d5c0f[_0x23dcef(0x28b8)][0x0]:null;if(!_0x5d46db){const _0x6e5e6e=[];let _0xcc3690=null;_0x1a58fa[_0x23dcef(0x1f06)]&&(_0xcc3690=_0x28c606()[_0x23dcef(0x27bc)](_0x1a58fa['variables'],{'name':_0x1a58fa[_0x23dcef(0x1f06)]['variable']}));for(let _0x108bd7=0x0;_0x108bd7<_0x1a58fa[_0x23dcef(0x145c)]['length'];_0x108bd7++){_0xcc3690&&_0x1a58fa[_0x23dcef(0x145c)][_0x108bd7]['id']===_0xcc3690['id']&&(_0x1a58fa[_0x23dcef(0x145c)][_0x108bd7]['canSelect']=![],_0x6e5e6e[_0x23dcef(0x1954)](_0x1a58fa[_0x23dcef(0x145c)][_0x108bd7]));}_0x1a58fa['variables']=_0x6e5e6e;}else{if(!_0x5d46db[_0x23dcef(0x11da)])return _0x19b80b['userProfileResource'][_0x23dcef(0x896)]({'sectionId':_0x5d46db['id']})[_0x23dcef(0x15e7)][_0x23dcef(0x64a)](function(_0x240291){const _0x132d84=_0x23dcef,_0x3c2d71=_0x28c606()[_0x132d84(0x1de5)](_0x240291[_0x132d84(0x28b8)],function(_0x1f50ab){const _0x48e959=_0x132d84;return _0x28c606()[_0x48e959(0x27bc)](_0x1a58fa[_0x48e959(0x145c)],{'id':_0x1f50ab[_0x48e959(0x145)]});});let _0x1ddc69=null;_0x1a58fa['system']&&(_0x1ddc69=_0x28c606()[_0x132d84(0x27bc)](_0x1a58fa[_0x132d84(0x145c)],{'name':_0x1a58fa[_0x132d84(0x1f06)][_0x132d84(0xefb)]}));if(_0x1ddc69&&!_0x28c606()[_0x132d84(0x25f8)](_0x3c2d71,['id',_0x1ddc69['id']])){const _0xfe0ab8=_0x28c606()['find'](_0x1a58fa[_0x132d84(0x145c)],{'id':_0x1ddc69['id']});_0xfe0ab8['canSelect']=![],_0x3c2d71[_0x132d84(0x1954)](_0xfe0ab8);}_0x1a58fa[_0x132d84(0x145c)]=_0x3c2d71;});}})['catch'](function(_0xc1c70a){const _0x513a06=_0x352498;_0x5300fe[_0x513a06(0x1bd0)]({'title':_0xc1c70a[_0x513a06(0x10b3)]?'API:'+_0xc1c70a['status']+'\x20-\x20'+_0xc1c70a['statusText']:'SYSTEM:GETvariables','msg':_0xc1c70a[_0x513a06(0x1c52)]?JSON[_0x513a06(0x2317)](_0xc1c70a[_0x513a06(0x1c52)]):_0xc1c70a['toString']()});});function _0x35e3af(){const _0xe5b5d8=_0x352498;_0x1a58fa['errors']=[];const _0x4cea2d=[];_0x1a58fa[_0xe5b5d8(0x1f06)][_0xe5b5d8(0x2185)]&&_0x1a58fa[_0xe5b5d8(0x1f06)][_0xe5b5d8(0x2185)][_0xe5b5d8(0x2554)]()===_0xe5b5d8(0xbce)&&_0x1a58fa[_0xe5b5d8(0x1f06)][_0xe5b5d8(0x4f4)]===_0xe5b5d8(0x17b6)&&(_0x1a58fa['system'][_0xe5b5d8(0x267a)]=_0x179a7e[_0xe5b5d8(0x242b)]?(_0x1a58fa[_0xe5b5d8(0x1f06)][_0xe5b5d8(0x2524)]||'')+_0xe5b5d8(0x1a75)+_0x179a7e[_0xe5b5d8(0x242b)]+'}':(_0x1a58fa[_0xe5b5d8(0x1f06)][_0xe5b5d8(0x2524)]||'')+'${EXTEN}',_0x179a7e['recordingFormat']!==_0xe5b5d8(0x2507)?_0x1a58fa['system'][_0xe5b5d8(0x59e)][_0xe5b5d8(0x1b28)](_0xe5b5d8(0x13e0))<0x0&&(_0x1a58fa[_0xe5b5d8(0x1f06)]['options']+=_0xe5b5d8(0x13e0)):_0x1a58fa[_0xe5b5d8(0x1f06)]['options']=_0x1a58fa[_0xe5b5d8(0x1f06)][_0xe5b5d8(0x59e)]['replace'](_0xe5b5d8(0x13e0),''));if(_0x1a58fa['system'][_0xe5b5d8(0x4f4)]&&_0x1a58fa[_0xe5b5d8(0x1f06)][_0xe5b5d8(0x4f4)]==='custom'){}else switch((_0x1a58fa[_0xe5b5d8(0x1f06)]['app']||_0x1a58fa[_0xe5b5d8(0x1f06)][_0xe5b5d8(0x4f4)])[_0xe5b5d8(0x2554)]()){case _0xe5b5d8(0x1979):_0x1a58fa['system'][_0xe5b5d8(0xacb)]=_0x1a58fa[_0xe5b5d8(0x1f06)]['name']+'='+_0x1a58fa['system'][_0xe5b5d8(0x1096)];break;case _0xe5b5d8(0x1ad6):break;default:_0x4cea2d[0x0]=_0x1a58fa[_0xe5b5d8(0x1f06)]['command'],_0x4cea2d[0x1]=_0x1a58fa[_0xe5b5d8(0x1f06)][_0xe5b5d8(0xefb)],_0x1a58fa[_0xe5b5d8(0x1f06)][_0xe5b5d8(0xacb)]=_0x4cea2d[_0xe5b5d8(0x9a6)](',');}_0x35e2ac(_0x1a58fa[_0xe5b5d8(0x1f06)]);}function _0x35e2ac(_0x5488d7){const _0x45f9d0=_0x352498;_0x4235e7[_0x45f9d0(0x268e)](_0x5488d7);}}const _0x29c2a2=_0x3d75e9;;_0x28e2da[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0x15ff),_0x49a1e3(0x217c),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x28e2da(_0x3fe3a7,_0x4375fa,_0x5078d6,_0x47336d,_0x43f9c1,_0x320fe2,_0x2b054d,_0x44fcef){const _0x58a2ba=_0x49a1e3,_0x52b8c9=this;_0x52b8c9['currentUser']=_0x2b054d[_0x58a2ba(0x808)](),_0x52b8c9['errors']=[],_0x52b8c9[_0x58a2ba(0x2021)]=_0x58a2ba(0x584)+(_0x47336d['appType']||_0x47336d['app'])[_0x58a2ba(0xa3c)](),_0x52b8c9['tag']=angular[_0x58a2ba(0x289e)](_0x47336d),_0x52b8c9['crudPermissions']=_0x44fcef,_0x52b8c9[_0x58a2ba(0x6c2)]={};if(_0x52b8c9['tag'][_0x58a2ba(0xacb)])switch(_0x52b8c9['tag']['appType']?_0x52b8c9['tag'][_0x58a2ba(0x4f4)][_0x58a2ba(0x2554)]():_0x52b8c9[_0x58a2ba(0xac8)]['app']['toLowerCase']()){case'custom':break;case _0x58a2ba(0x1084):{const _0x23b5ec=_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0xacb)][_0x58a2ba(0x282c)](',');_0x52b8c9['tag'][_0x58a2ba(0x2125)]=_0x23b5ec[0x0],_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0x1cbd)]=_0x23b5ec[0x1],_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0x31b)]=_0x23b5ec['slice'](0x2,_0x23b5ec[_0x58a2ba(0x1b9e)])[_0x58a2ba(0x9a6)](',');}break;case'dialogflowv2':{const _0x22ed18=_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0xacb)]['split'](',');_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0xbfd)]=_0x22ed18[0x0],_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0x4b2)]=_0x22ed18[0x1],_0x52b8c9[_0x58a2ba(0xac8)]['privateKey']=_0x22ed18[0x2],_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0x1cbd)]=_0x22ed18[0x3],_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0x31b)]=_0x22ed18[_0x58a2ba(0x142e)](0x4,_0x22ed18[_0x58a2ba(0x1b9e)])['join'](',');}break;case _0x58a2ba(0x290d):{const _0x941254=_0x52b8c9['tag']['appdata'][_0x58a2ba(0x282c)](',');_0x52b8c9['tag']['accesskeyid']=_0x941254[0x0],_0x52b8c9[_0x58a2ba(0xac8)]['secretaccesskey']=_0x941254[0x1],_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0x17a2)]=_0x941254[0x2],_0x52b8c9[_0x58a2ba(0xac8)]['botname']=_0x941254[0x3],_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0x31b)]=_0x941254[_0x58a2ba(0x142e)](0x4,_0x941254[_0x58a2ba(0x1b9e)])[_0x58a2ba(0x9a6)](',');}break;case _0x58a2ba(0x21a9):{const _0x2c002a=_0x52b8c9[_0x58a2ba(0xac8)]['appdata']['split'](',');_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0x95f)]=isNaN(_0x2c002a[0x0])?_0x2c002a[0x0]:parseInt(_0x2c002a[0x0],0xa),_0x52b8c9['tag'][_0x58a2ba(0x39b)]=_0x2c002a['slice'](0x1,_0x2c002a[_0x58a2ba(0x1b9e)])[_0x58a2ba(0x9a6)](',');}break;case _0x58a2ba(0x18ca):_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0x39b)]=_0x52b8c9['tag']['appdata'];break;case _0x58a2ba(0x1979):_0x52b8c9['tag']['name']=_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0xacb)][_0x58a2ba(0x282c)]('=')[0x0],_0x52b8c9[_0x58a2ba(0xac8)]['value']=_0x52b8c9['tag'][_0x58a2ba(0xacb)]['split']('=')[0x1];break;case _0x58a2ba(0x1e67):_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0x1bd9)]=_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0xacb)];break;default:{const _0x4680a4=_0x52b8c9[_0x58a2ba(0xac8)]['appdata'][_0x58a2ba(0x282c)](',');_0x52b8c9['tag']['tag']=_0x28c606()[_0x58a2ba(0x940)](_0x4680a4[0x0])?_0x4680a4[0x0]:isNaN(_0x4680a4[0x0])?_0x4680a4[0x0]:parseInt(_0x4680a4[0x0],0xa);}break;}else{}_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0x2185)]&&_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0x2185)][_0x58a2ba(0x2554)]()===_0x58a2ba(0xbce)&&_0x52b8c9['tag'][_0x58a2ba(0x4f4)][_0x58a2ba(0x2554)]()===_0x58a2ba(0x20eb)&&(_0x52b8c9[_0x58a2ba(0xac8)]['prefix']=_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0x267a)]?_0x52b8c9['tag']['phone']['split']('$')[0x0]:undefined,_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0x1a9b)]=_0x52b8c9[_0x58a2ba(0xac8)][_0x58a2ba(0x1abe)]?_0x58a2ba(0x2489)+_0x52b8c9[_0x58a2ba(0xac8)]['callerID']:undefined);_0x52b8c9[_0x58a2ba(0x276e)]=_0x53d6da,_0x52b8c9['closeDialog']=_0x4b244b,_0x2b054d[_0x58a2ba(0x4de)](_0x58a2ba(0x333))?_0x320fe2['tag'][_0x58a2ba(0x896)]({'fields':_0x58a2ba(0x1427),'sort':_0x58a2ba(0x2494),'nolimit':_0x58a2ba(0x1685)})[_0x58a2ba(0x15e7)][_0x58a2ba(0x64a)](function(_0x5d10f6){const _0x500619=_0x58a2ba;_0x52b8c9[_0x500619(0x16a6)]=_0x5d10f6[_0x500619(0x28b8)]||[];})[_0x58a2ba(0x20cd)](function(_0x2c5139){const _0x246bd2=_0x58a2ba;_0x5078d6['error']({'title':_0x2c5139[_0x246bd2(0x10b3)]?_0x246bd2(0x575)+_0x2c5139['status']+'\x20-\x20'+_0x2c5139['statusText']:_0x246bd2(0x28be),'msg':_0x2c5139['data']?JSON[_0x246bd2(0x2317)](_0x2c5139[_0x246bd2(0x1c52)]):_0x2c5139['toString']()});}):_0x320fe2['tag']['get']({'fields':_0x58a2ba(0x1427),'sort':_0x58a2ba(0x2494),'nolimit':'true'})[_0x58a2ba(0x15e7)]['then'](function(_0x2440bf){const _0x15bd89=_0x58a2ba;_0x52b8c9[_0x15bd89(0x16a6)]=_0x2440bf[_0x15bd89(0x28b8)]||[];})[_0x58a2ba(0x64a)](function(){const _0x494c0c=_0x58a2ba;return _0x320fe2['userProfileSection'][_0x494c0c(0x896)]({'userProfileId':_0x52b8c9[_0x494c0c(0x1d3d)]['userProfileId'],'sectionId':0x3f0})['$promise'];})[_0x58a2ba(0x64a)](function(_0x42d1c){const _0x51800d=_0x58a2ba,_0x31e830=_0x42d1c&&_0x42d1c[_0x51800d(0x28b8)]?_0x42d1c[_0x51800d(0x28b8)][0x0]:null;if(!_0x31e830){const _0x3c6538=[];let _0x4919a5=null;_0x52b8c9['tag']&&(_0x4919a5=_0x28c606()[_0x51800d(0x27bc)](_0x52b8c9[_0x51800d(0x16a6)],{'name':_0x52b8c9[_0x51800d(0xac8)][_0x51800d(0xac8)]}));for(let _0x49b8ef=0x0;_0x49b8ef<_0x52b8c9[_0x51800d(0x16a6)][_0x51800d(0x1b9e)];_0x49b8ef++){_0x4919a5&&_0x52b8c9[_0x51800d(0x16a6)][_0x49b8ef]['id']===_0x4919a5['id']&&(_0x52b8c9[_0x51800d(0x16a6)][_0x49b8ef][_0x51800d(0xd4f)]=![],_0x3c6538['push'](_0x52b8c9[_0x51800d(0x16a6)][_0x49b8ef]));}_0x52b8c9['tags']=_0x3c6538;}else{if(!_0x31e830[_0x51800d(0x11da)])return _0x320fe2['userProfileResource'][_0x51800d(0x896)]({'sectionId':_0x31e830['id']})[_0x51800d(0x15e7)]['then'](function(_0x1e9222){const _0x49075f=_0x51800d,_0x455814=_0x28c606()['map'](_0x1e9222[_0x49075f(0x28b8)],function(_0x26503e){const _0x4f3d7c=_0x49075f;return _0x28c606()['find'](_0x52b8c9['tags'],{'id':_0x26503e[_0x4f3d7c(0x145)]});});let _0x4ea41b=null;_0x52b8c9[_0x49075f(0xac8)]&&(_0x4ea41b=_0x28c606()[_0x49075f(0x27bc)](_0x52b8c9[_0x49075f(0x16a6)],{'name':_0x52b8c9[_0x49075f(0xac8)][_0x49075f(0xac8)]}));if(_0x4ea41b&&!_0x28c606()['some'](_0x455814,['id',_0x4ea41b['id']])){const _0x22f9fe=_0x28c606()[_0x49075f(0x27bc)](_0x52b8c9[_0x49075f(0x16a6)],{'id':_0x4ea41b['id']});_0x22f9fe[_0x49075f(0xd4f)]=![],_0x455814[_0x49075f(0x1954)](_0x22f9fe);}_0x52b8c9[_0x49075f(0x16a6)]=_0x455814;});}})['catch'](function(_0x3edf93){const _0x302a9d=_0x58a2ba;_0x5078d6[_0x302a9d(0x1bd0)]({'title':_0x3edf93['status']?_0x302a9d(0x575)+_0x3edf93[_0x302a9d(0x10b3)]+_0x302a9d(0x21db)+_0x3edf93['statusText']:_0x302a9d(0x14a7),'msg':_0x3edf93[_0x302a9d(0x1c52)]?JSON[_0x302a9d(0x2317)](_0x3edf93['data']):_0x3edf93['toString']()});});function _0x53d6da(){const _0x5b8c96=_0x58a2ba;_0x52b8c9[_0x5b8c96(0xbae)]=[];const _0x2e40c2=[];_0x52b8c9['tag'][_0x5b8c96(0x2185)]&&_0x52b8c9[_0x5b8c96(0xac8)][_0x5b8c96(0x2185)][_0x5b8c96(0x2554)]()===_0x5b8c96(0xbce)&&_0x52b8c9[_0x5b8c96(0xac8)][_0x5b8c96(0x4f4)]===_0x5b8c96(0x17b6)&&(_0x52b8c9[_0x5b8c96(0xac8)]['phone']=_0x43f9c1[_0x5b8c96(0x242b)]?(_0x52b8c9['tag'][_0x5b8c96(0x2524)]||'')+'${EXTEN:'+_0x43f9c1[_0x5b8c96(0x242b)]+'}':(_0x52b8c9[_0x5b8c96(0xac8)][_0x5b8c96(0x2524)]||'')+_0x5b8c96(0x5ad),_0x43f9c1[_0x5b8c96(0x1097)]!==_0x5b8c96(0x2507)?_0x52b8c9['tag'][_0x5b8c96(0x59e)][_0x5b8c96(0x1b28)](_0x5b8c96(0x13e0))<0x0&&(_0x52b8c9['tag'][_0x5b8c96(0x59e)]+=_0x5b8c96(0x13e0)):_0x52b8c9['tag'][_0x5b8c96(0x59e)]=_0x52b8c9[_0x5b8c96(0xac8)][_0x5b8c96(0x59e)][_0x5b8c96(0x1353)](_0x5b8c96(0x13e0),''));const _0x4eac37=_0x28c606()['find'](_0x52b8c9['tags'],{'name':_0x52b8c9[_0x5b8c96(0xac8)][_0x5b8c96(0xac8)]});_0x4eac37&&(_0x52b8c9[_0x5b8c96(0xac8)][_0x5b8c96(0x923)]=_0x4eac37['id']);if(_0x52b8c9['tag'][_0x5b8c96(0x4f4)]&&_0x52b8c9[_0x5b8c96(0xac8)][_0x5b8c96(0x4f4)]===_0x5b8c96(0x1ad6)){}else switch((_0x52b8c9[_0x5b8c96(0xac8)][_0x5b8c96(0x16e1)]||_0x52b8c9[_0x5b8c96(0xac8)][_0x5b8c96(0x4f4)])[_0x5b8c96(0x2554)]()){case _0x5b8c96(0x1979):_0x52b8c9[_0x5b8c96(0xac8)][_0x5b8c96(0xacb)]=_0x52b8c9[_0x5b8c96(0xac8)]['name']+'='+_0x52b8c9[_0x5b8c96(0xac8)][_0x5b8c96(0x1096)];break;case _0x5b8c96(0x1ad6):break;default:_0x2e40c2[0x0]=_0x52b8c9['tag']['tag'],_0x52b8c9[_0x5b8c96(0xac8)][_0x5b8c96(0xacb)]=_0x2e40c2['join'](',');}_0x4b244b(_0x52b8c9[_0x5b8c96(0xac8)]);}function _0x4b244b(_0x2a9c8d){_0x3fe3a7['hide'](_0x2a9c8d);}}const _0x49ffc6=_0x28e2da;;_0x40b8ed[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x1674),_0x49a1e3(0x77f),'$q',_0x49a1e3(0x298c),'$timeout','$mdDialog',_0x49a1e3(0x1373),'toasty',_0x49a1e3(0xa19),'Auth'];function _0x40b8ed(_0x2c40d3,_0x2a82d1,_0x26b6fb,_0x53cabf,_0x4649a0,_0x5fd7a1,_0x3c0384,_0x38d8ec,_0x43603f,_0x2c168b,_0x3277b7){const _0x5ae613=_0x49a1e3,_0x782caa=this;_0x782caa['currentUser']=_0x3277b7['getCurrentUser'](),_0x782caa[_0x5ae613(0x217c)]={},_0x782caa['whatsappAccountInteractions']={'count':0x0,'rows':[]},_0x782caa['selectedWhatsappAccountInteractions']=[],_0x782caa[_0x5ae613(0x402)],_0x782caa[_0x5ae613(0x289a)]={'read':_0x5ae613(0x8f1),'closed':_0x5ae613(0x8f1),'sort':_0x5ae613(0x1b35),'includeAll':'true','limit':0xa,'page':0x1},_0x782caa[_0x5ae613(0x2354)]=_0x216af3,_0x782caa[_0x5ae613(0x217e)]=_0x381783,_0x782caa[_0x5ae613(0x12f9)]=_0x8a1ec,_0x782caa[_0x5ae613(0x1339)]=_0x132e3c,_0x782caa['getWhatsappAccountInteractions']=_0x48af2a,_0x782caa[_0x5ae613(0x1b07)]=_0x2a8b4c,_0x782caa[_0x5ae613(0x114f)]=_0x5a45ef,_0x782caa[_0x5ae613(0x6db)]=_0x13d041,_0x782caa[_0x5ae613(0xa77)]=_0x36f56c,_0x782caa[_0x5ae613(0xe69)]=_0x479bd9;function _0x216af3(_0xe398fb,_0xbc5cef){const _0xfe2b3c=_0x5ae613;_0x782caa['whatsappAccount']=_0xe398fb,_0x782caa[_0xfe2b3c(0x402)]=typeof _0xbc5cef!==_0xfe2b3c(0x19a1)?_0xbc5cef:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x782caa[_0xfe2b3c(0x289a)]['WhatsappAccountId']=_0x782caa['whatsappAccount']['id'],_0x782caa['advancedSearch']={'fields':_0x1c31f1()},_0x79a680();}function _0x79a680(){const _0x3fc3d3=_0x5ae613;return _0x2c168b['tag'][_0x3fc3d3(0x896)]()['$promise'][_0x3fc3d3(0x64a)](function(_0x119725){const _0x2ee7ee=_0x3fc3d3;_0x782caa[_0x2ee7ee(0x16a6)]=_0x119725||{'count':0x0,'rows':[]};})[_0x3fc3d3(0x64a)](function(){const _0x2990a4=_0x3fc3d3;_0x782caa[_0x2990a4(0x9fc)]=_0x266476();});}function _0x266476(){const _0x4cd715=_0x5ae613;return[{'name':_0x4cd715(0x1967),'key':'createdAt','type':_0x4cd715(0x232e),'label':_0x4cd715(0x2720)},{'name':_0x4cd715(0x17af),'key':'read','type':_0x4cd715(0x2926),'label':_0x4cd715(0x23f7),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x4cd715(0x1889)},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x4cd715(0x2311),'key':_0x4cd715(0x1140),'type':_0x4cd715(0x2926),'label':_0x4cd715(0x110d),'customOptions':[{'value':0x0,'translate':_0x4cd715(0x1313)},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0x4cd715(0x2200)}]},{'name':_0x4cd715(0x12ad),'key':'UserId','type':_0x4cd715(0x2926),'label':_0x4cd715(0x18bf),'customOptions':[{'value':_0x4cd715(0x8f1),'translate':_0x4cd715(0x276d)},{'value':undefined,'translate':_0x4cd715(0x2200)}]},{'name':'Tag','key':_0x4cd715(0xac8),'type':_0x4cd715(0x20ae),'label':_0x4cd715(0x1208),'options':_0x782caa[_0x4cd715(0x16a6)]['rows'],'placeholder':_0x4cd715(0x6a6)}];}function _0x1c31f1(){const _0x11eec0=_0x5ae613;return[{'name':'Id','column':'id','type':_0x11eec0(0x2113)},{'name':_0x11eec0(0x1c38),'column':_0x11eec0(0x1c38),'type':_0x11eec0(0x21b7),'options':{'searchFields':[_0x11eec0(0x2518),_0x11eec0(0x21c4),_0x11eec0(0xd47)],'route':{'model':_0x11eec0(0xdf5),'action':'get','params':{'fields':_0x11eec0(0x3ef),'Contact':_0x11eec0(0xb96),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':['$ne']}},{'name':_0x11eec0(0x1cd9),'column':'subject','type':_0x11eec0(0x39b),'options':{'excludedOperators':['$eq',_0x11eec0(0x14b5)]}},{'name':_0x11eec0(0x19fb),'column':'plainBody','type':_0x11eec0(0x39b),'options':{'excludedOperators':['$eq',_0x11eec0(0x14b5)]}},{'name':_0x11eec0(0x2311),'column':'closed','type':'select','values':[{'id':0x0,'translate':_0x11eec0(0x1313)},{'id':0x1,'translate':_0x11eec0(0x5cd)}],'options':{'excludedOperators':[_0x11eec0(0x14b5)]}},{'name':_0x11eec0(0x12ad),'column':_0x11eec0(0x1098),'type':_0x11eec0(0x21b7),'options':{'table':'i','route':{'model':_0x11eec0(0x2e8),'action':'get','params':{'role':_0x11eec0(0x11ae),'fields':_0x11eec0(0xd53),'nolimit':!![]}},'searchFields':[_0x11eec0(0x15c),_0x11eec0(0x2494)],'extraOperators':['$substring'],'excludedOperators':['$ne']}},{'name':_0x11eec0(0x1178),'column':_0x11eec0(0x1e9f),'type':'multiselect','options':{'route':{'model':'tag','action':_0x11eec0(0x896),'params':{'nolimit':!![]}},'excludedOperators':[_0x11eec0(0x9eb)]}},{'name':_0x11eec0(0x1967),'column':_0x11eec0(0x2378),'type':'date','options':{'excludedOperators':[_0x11eec0(0x14b5)]}},{'name':_0x11eec0(0xff4),'column':_0x11eec0(0x18d3),'type':_0x11eec0(0x2926),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x11eec0(0x13be)}],'options':{'excludedOperators':['$ne']}}];}function _0x5a45ef(){const _0x5ae3b3=_0x5ae613;_0x3c0384[_0x5ae3b3(0xa60)]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x46e7cb,'parent':angular[_0x5ae3b3(0x1f81)](_0x38d8ec[_0x5ae3b3(0xb49)]),'clickOutsideToClose':![],'locals':{'fields':_0x782caa[_0x5ae3b3(0x1b2f)][_0x5ae3b3(0xf26)],'color':undefined,'storagePath':_0x5ae3b3(0x1a3c)},'fullscreen':!![]})['then'](function(_0x58812b){const _0x3583fa=_0x5ae3b3;_0x782caa['query'][_0x3583fa(0xb58)]=_0x58812b===![]?undefined:_0x58812b;if(_0x782caa[_0x3583fa(0x289a)][_0x3583fa(0xb58)])_0x48af2a();else _0x58812b===![]&&_0x48af2a();})[_0x5ae3b3(0x20cd)](function(_0x3e3bcd){const _0x17c8ab=_0x5ae3b3;_0x43603f[_0x17c8ab(0x1bd0)]({'title':_0x17c8ab(0x2440),'msg':_0x3e3bcd[_0x17c8ab(0x1c52)]?JSON[_0x17c8ab(0x2317)](_0x3e3bcd[_0x17c8ab(0x1c52)][_0x17c8ab(0x18ca)]):_0x3e3bcd[_0x17c8ab(0x2915)]()});});}function _0x8a1ec(_0x72de8d,_0x2a7c08,_0x295d7d){const _0x31eb1b=_0x5ae613;return _0x2c168b[_0x31eb1b(0x2076)]['download']({'id':_0x72de8d['id'],'exists':!![],'attachments':_0x295d7d})[_0x31eb1b(0x15e7)][_0x31eb1b(0x64a)](function(_0x2259ef){const _0x246d30=_0x31eb1b,_0x39c972=[_0x2259ef[_0x246d30(0x5a9)]];let _0x181278=_0x246d30(0x73a)+_0x72de8d['id'];const _0xa88c65=new Blob(_0x39c972,{'type':_0x2259ef[_0x246d30(0x2185)]});_0x181278=_0x246d30(0xf4d)+_0x72de8d['id']+'.zip';const _0x1524d7=window[_0x246d30(0x123f)]['createElement']('a');_0x1524d7['setAttribute'](_0x246d30(0x25d0),URL[_0x246d30(0x206)](_0xa88c65)),_0x1524d7[_0x246d30(0x1280)](_0x246d30(0x19b3),_0x181278),document['body'][_0x246d30(0x2661)](_0x1524d7),_0x1524d7['click']();})[_0x31eb1b(0x20cd)](function(_0x4c0cfc){const _0x46c947=_0x31eb1b;if(_0x4c0cfc['data']&&_0x4c0cfc[_0x46c947(0x1c52)][_0x46c947(0xbae)]&&_0x4c0cfc[_0x46c947(0x1c52)]['errors'][_0x46c947(0x1b9e)])for(let _0x153225=0x0;_0x153225<_0x4c0cfc[_0x46c947(0x1c52)]['errors'][_0x46c947(0x1b9e)];_0x153225+=0x1){_0x43603f[_0x46c947(0x1bd0)]({'title':_0x4c0cfc[_0x46c947(0x1c52)][_0x46c947(0xbae)][_0x153225][_0x46c947(0x2185)],'msg':_0x4c0cfc[_0x46c947(0x1c52)][_0x46c947(0xbae)][_0x153225]['message']});}else _0x43603f[_0x46c947(0x1bd0)]({'title':_0x4c0cfc['status']?_0x46c947(0x575)+_0x4c0cfc[_0x46c947(0x10b3)]+'\x20-\x20'+_0x4c0cfc[_0x46c947(0x2115)]:_0x46c947(0x266d),'msg':_0x4c0cfc[_0x46c947(0x1c52)]?JSON[_0x46c947(0x2317)](_0x4c0cfc['data']['message']):_0x4c0cfc[_0x46c947(0x2915)]()});});}function _0x381783(_0x168f9d,_0x157156){const _0x35330d=_0x5ae613,_0x42d74e=_0x3c0384[_0x35330d(0x856)]()[_0x35330d(0x2021)](_0x35330d(0x686))['htmlContent'](_0x35330d(0x50b)+(_0x168f9d['name']||_0x168f9d['id']&&_0x28c606()[_0x35330d(0x1766)](_0x35330d(0x1302))+_0x168f9d['id']||'interaction')+_0x35330d(0x26d0)+'\x20will\x20be\x20deleted.')[_0x35330d(0x213e)](_0x35330d(0x1e54))[_0x35330d(0x2283)](_0x157156)['ok']('OK')[_0x35330d(0x101a)](_0x35330d(0x18fd));_0x3c0384[_0x35330d(0xa60)](_0x42d74e)['then'](function(){_0x36f56c(_0x168f9d);},function(){const _0x1308ed=_0x35330d;console[_0x1308ed(0x9b4)]('CANCEL');});}function _0x132e3c(_0x19abe2){const _0x369e8e=_0x5ae613;_0x782caa[_0x369e8e(0x1b36)]=_0x19abe2||{'count':0x0,'rows':[]};for(let _0x5906a5=0x0;_0x5906a5<_0x782caa[_0x369e8e(0x1b36)][_0x369e8e(0x28b8)][_0x369e8e(0x1b9e)];_0x5906a5+=0x1){const _0x5efef4=_0x782caa[_0x369e8e(0x1b36)][_0x369e8e(0x28b8)][_0x5906a5];_0x75af2a(_0x5efef4),_0x5efef4[_0x369e8e(0x1b06)]['name']=_0x566095(_0x5efef4);}}function _0x48af2a(){const _0x1adff9=_0x5ae613;_0x782caa[_0x1adff9(0x289a)][_0x1adff9(0x24f9)]=(_0x782caa[_0x1adff9(0x289a)][_0x1adff9(0xc72)]-0x1)*_0x782caa[_0x1adff9(0x289a)][_0x1adff9(0x25bb)],_0x782caa['promise']=_0x2c168b[_0x1adff9(0x2076)][_0x1adff9(0x896)](_0x782caa[_0x1adff9(0x289a)],_0x132e3c)[_0x1adff9(0x15e7)];}function _0x2a8b4c(_0x250278,_0x51aeb7){const _0x228726=_0x5ae613;_0x3c0384['show']({'controller':_0x228726(0x1836),'controllerAs':'vm','templateUrl':_0x27e3ee,'parent':angular[_0x228726(0x1f81)](_0x38d8ec['body']),'targetEvent':_0x250278,'clickOutsideToClose':!![],'onShowing':function(_0x4db0b7){const _0x1728ae=_0x228726;_0x4db0b7['vm']['init']({'id':0x1,'channel':_0x1728ae(0x1a29),'interaction':_0x51aeb7,'spy':!![]},_0x2a82d1[_0x1728ae(0x4e3)]['vm'][_0x1728ae(0x28d6)]);}});}function _0x36f56c(_0x4d5149){const _0x57a916=_0x5ae613;_0x2c168b[_0x57a916(0x2076)][_0x57a916(0xabd)]({'id':_0x4d5149['id']})[_0x57a916(0x15e7)][_0x57a916(0x64a)](function(){const _0x5e7cd0=_0x57a916;_0x28c606()[_0x5e7cd0(0x21c7)](_0x782caa[_0x5e7cd0(0x1b36)][_0x5e7cd0(0x28b8)],{'id':_0x4d5149['id']}),_0x782caa[_0x5e7cd0(0x1b36)][_0x5e7cd0(0xb90)]-=0x1,!_0x782caa[_0x5e7cd0(0x1b36)][_0x5e7cd0(0x28b8)][_0x5e7cd0(0x1b9e)]&&_0x48af2a(),_0x43603f['success']({'title':_0x5e7cd0(0xa06),'msg':_0x4d5149[_0x5e7cd0(0x2494)]?_0x4d5149[_0x5e7cd0(0x2494)]+_0x5e7cd0(0x1fa8):''});})[_0x57a916(0x20cd)](function(_0x3f61a3){const _0x39370b=_0x57a916;if(_0x3f61a3[_0x39370b(0x1c52)]&&_0x3f61a3[_0x39370b(0x1c52)]['errors']&&_0x3f61a3['data']['errors'][_0x39370b(0x1b9e)]){_0x782caa[_0x39370b(0xbae)]=_0x3f61a3[_0x39370b(0x1c52)][_0x39370b(0xbae)]||[{'message':_0x3f61a3[_0x39370b(0x2915)](),'type':_0x39370b(0x12bd)}];for(let _0x43de5a=0x0;_0x43de5a<_0x3f61a3[_0x39370b(0x1c52)][_0x39370b(0xbae)][_0x39370b(0x1b9e)];_0x43de5a++){_0x43603f[_0x39370b(0x1bd0)]({'title':_0x3f61a3[_0x39370b(0x1c52)][_0x39370b(0xbae)][_0x43de5a][_0x39370b(0x2185)],'msg':_0x3f61a3[_0x39370b(0x1c52)][_0x39370b(0xbae)][_0x43de5a][_0x39370b(0x18ca)]});}}else _0x43603f[_0x39370b(0x1bd0)]({'title':_0x3f61a3['status']?_0x39370b(0x575)+_0x3f61a3['status']+_0x39370b(0x21db)+_0x3f61a3[_0x39370b(0x2115)]:_0x39370b(0x12bd),'msg':_0x3f61a3[_0x39370b(0x1c52)]?JSON['stringify'](_0x3f61a3[_0x39370b(0x1c52)][_0x39370b(0x18ca)]):_0x3f61a3['message']||_0x3f61a3['toString']()});});}function _0x13d041(){const _0xb955c=_0x5ae613,_0x4de233=angular[_0xb955c(0x289e)](_0x782caa[_0xb955c(0x1fd8)]);return _0x782caa[_0xb955c(0x1fd8)]=[],_0x4de233;}function _0x479bd9(_0x3e2102){const _0x54654b=_0x5ae613,_0x45c0b9=_0x3c0384['confirm']()[_0x54654b(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?')['htmlContent'](_0x54654b(0x50b)+_0x782caa['selectedWhatsappAccountInteractions'][_0x54654b(0x1b9e)]+'\x20selected
'+_0x54654b(0x4b8))[_0x54654b(0x213e)](_0x54654b(0xb35))['targetEvent'](_0x3e2102)['ok']('OK')[_0x54654b(0x101a)](_0x54654b(0x18fd));_0x3c0384[_0x54654b(0xa60)](_0x45c0b9)[_0x54654b(0x64a)](function(){const _0x45a0ae=_0x54654b;_0x782caa[_0x45a0ae(0x1fd8)]['forEach'](function(_0x507738){_0x36f56c(_0x507738);}),_0x782caa[_0x45a0ae(0x1fd8)]=[];});}function _0x75af2a(_0x46a1d6){const _0x48793b=_0x5ae613;_0x46a1d6[_0x48793b(0x1c38)]?_0x46a1d6[_0x48793b(0xfd7)]=(_0x46a1d6[_0x48793b(0x1c38)][_0x48793b(0x2518)]||'')+'\x20'+(_0x46a1d6[_0x48793b(0x1c38)][_0x48793b(0x21c4)]||''):_0x46a1d6['contactName']=_0x4649a0[_0x48793b(0x2292)](_0x48793b(0x1c8d));}function _0x566095(_0x1f6a53){const _0x1275aa=_0x5ae613;if(_0x1f6a53[_0x1275aa(0x246c)])return _0x1f6a53[_0x1275aa(0x246c)]===_0x782caa['currentUser']['id']?_0x4649a0[_0x1275aa(0x2292)](_0x1275aa(0x2368)):_0x1f6a53[_0x1275aa(0x1b06)][_0x1275aa(0x15c)]+'\x20<'+_0x1f6a53[_0x1275aa(0x1b06)][_0x1275aa(0xe2f)]+'>';return _0x4649a0[_0x1275aa(0x2292)]('DASHBOARDS.NOT_ASSIGNED');}let _0x3c1bc9=!![],_0x20ca01=0x1;_0x2a82d1[_0x5ae613(0xc62)](_0x5ae613(0x1200),function(_0x14a541,_0x308f4c){const _0x4e2026=_0x5ae613;_0x3c1bc9?_0x5fd7a1(function(){_0x3c1bc9=![];}):(!_0x308f4c&&(_0x20ca01=_0x782caa[_0x4e2026(0x289a)]['page']),_0x14a541!==_0x308f4c&&(_0x782caa['query'][_0x4e2026(0xc72)]=0x1),!_0x14a541&&(_0x782caa[_0x4e2026(0x289a)][_0x4e2026(0xc72)]=_0x20ca01),_0x48af2a());});}const _0x38ef3b=_0x40b8ed;;const _0x20015a=_0x2e4a48['p']+_0x49a1e3(0x1f2a);;_0x209721[_0x49a1e3(0x1e73)]=['$state','$location',_0x49a1e3(0x212a),'$document',_0x49a1e3(0x298c),_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x217c),'userProfileSection'];function _0x209721(_0x215168,_0x1f8e24,_0x21c673,_0x4b44ba,_0x28d0b4,_0x3ca676,_0xbcc3da,_0x1410a8,_0xc73fbb,_0x205b89,_0x1f103d,_0xebde1){const _0x592079=_0x49a1e3,_0x2eb788=this;_0x2eb788['currentUser']=_0x205b89[_0x592079(0x808)](),_0x2eb788[_0x592079(0x1947)]=_0x3ca676,_0x2eb788[_0x592079(0x28d6)]=_0xbcc3da,_0x2eb788[_0x592079(0xccc)]=_0x2eb788['setting'][_0x592079(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2eb788[_0x592079(0xb36)]=_0x1f8e24[_0x592079(0x48e)]()+_0x592079(0xe1f)+_0x1f8e24[_0x592079(0x1e5d)](),_0x2eb788['whatsappAccount']=_0x1f103d||_0x215168['params'][_0x592079(0x217c)]||{},_0x2eb788[_0x592079(0x16b2)]=_0xebde1&&_0xebde1[_0x592079(0xb90)]==0x1?_0xebde1[_0x592079(0x28b8)][0x0]:null,_0x2eb788['crudPermissions']=_0x205b89[_0x592079(0xa7e)](_0x2eb788[_0x592079(0x16b2)]?_0x2eb788['userProfileSection'][_0x592079(0x402)]:null),_0x2eb788[_0x592079(0x6c2)]={},_0x2eb788[_0x592079(0x197c)]=_0x215168[_0x592079(0x1b48)]['tab']||0x0,_0x2eb788[_0x592079(0x104a)]=_0x8b4a1d,_0x2eb788[_0x592079(0x2540)]=_0xc73fbb[_0x592079(0x772)],_0x2eb788[_0x592079(0x2672)]=_0x282ddb,_0x2eb788[_0x592079(0x659)]=_0x4825bc,_0x205b89[_0x592079(0x4de)]('admin')?_0x1410a8[_0x592079(0x19f8)][_0x592079(0x896)]({'fields':_0x592079(0x1427),'sort':'name'})[_0x592079(0x15e7)]['then'](function(_0x11ceea){const _0x52628d=_0x592079;_0x2eb788['lists']=_0x11ceea[_0x52628d(0x28b8)]||[];})['catch'](function(_0x1d8888){const _0x599054=_0x592079;_0xc73fbb['error']({'title':_0x1d8888[_0x599054(0x10b3)]?_0x599054(0x575)+_0x1d8888[_0x599054(0x10b3)]+'\x20-\x20'+_0x1d8888[_0x599054(0x2115)]:_0x599054(0x1ed6),'msg':_0x1d8888[_0x599054(0x1c52)]?JSON[_0x599054(0x2317)](_0x1d8888[_0x599054(0x1c52)]):_0x1d8888[_0x599054(0x2915)]()});}):_0x1410a8[_0x592079(0x19f8)][_0x592079(0x896)]({'fields':_0x592079(0x1427),'sort':'name'})[_0x592079(0x15e7)][_0x592079(0x64a)](function(_0x1bd74f){_0x2eb788['lists']=_0x1bd74f['rows']||[];})[_0x592079(0x64a)](function(){const _0x33988b=_0x592079;return _0x1410a8[_0x33988b(0x16b2)][_0x33988b(0x896)]({'userProfileId':_0x2eb788[_0x33988b(0x1d3d)][_0x33988b(0x21ac)],'sectionId':0x12d})[_0x33988b(0x15e7)];})[_0x592079(0x64a)](function(_0x4732ed){const _0x5cc610=_0x592079,_0x5624cd=_0x4732ed&&_0x4732ed[_0x5cc610(0x28b8)]?_0x4732ed[_0x5cc610(0x28b8)][0x0]:null;if(!_0x5624cd){const _0x185f27=[];let _0x5208c5=null;_0x2eb788['whatsappAccount']&&(_0x5208c5=_0x28c606()['find'](_0x2eb788['lists'],{'id':Number(_0x2eb788[_0x5cc610(0x217c)]['ListId'])}));for(let _0x1257eb=0x0;_0x1257eb<_0x2eb788[_0x5cc610(0x974)]['length'];_0x1257eb++){_0x5208c5&&_0x2eb788[_0x5cc610(0x974)][_0x1257eb]['id']===_0x5208c5['id']&&(_0x2eb788[_0x5cc610(0x974)][_0x1257eb][_0x5cc610(0xd4f)]=![],_0x185f27['push'](_0x2eb788[_0x5cc610(0x974)][_0x1257eb]));}_0x2eb788['lists']=_0x185f27;}else{if(!_0x5624cd['autoAssociation'])return _0x1410a8['userProfileResource'][_0x5cc610(0x896)]({'sectionId':_0x5624cd['id']})[_0x5cc610(0x15e7)][_0x5cc610(0x64a)](function(_0xb3cb77){const _0xe920f7=_0x5cc610,_0x250d04=_0x28c606()['map'](_0xb3cb77[_0xe920f7(0x28b8)],function(_0x2564f2){const _0x475fe2=_0xe920f7;return _0x28c606()[_0x475fe2(0x27bc)](_0x2eb788[_0x475fe2(0x974)],{'id':_0x2564f2[_0x475fe2(0x145)]});});let _0x127535=null;_0x2eb788['whatsappAccount']&&(_0x127535=_0x28c606()['find'](_0x2eb788['lists'],{'id':Number(_0x2eb788[_0xe920f7(0x217c)][_0xe920f7(0x869)])}));if(_0x127535&&!_0x28c606()['some'](_0x250d04,['id',_0x127535['id']])){const _0x17e79d=_0x28c606()[_0xe920f7(0x27bc)](_0x2eb788[_0xe920f7(0x974)],{'id':_0x127535['id']});_0x17e79d[_0xe920f7(0xd4f)]=![],_0x250d04['push'](_0x17e79d);}_0x2eb788[_0xe920f7(0x974)]=_0x250d04;});}})[_0x592079(0x20cd)](function(_0x3705a7){const _0x152254=_0x592079;_0xc73fbb[_0x152254(0x1bd0)]({'title':_0x3705a7[_0x152254(0x10b3)]?_0x152254(0x575)+_0x3705a7[_0x152254(0x10b3)]+_0x152254(0x21db)+_0x3705a7[_0x152254(0x2115)]:'SYSTEM:GETlists','msg':_0x3705a7[_0x152254(0x1c52)]?JSON[_0x152254(0x2317)](_0x3705a7['data']):_0x3705a7[_0x152254(0x2915)]()});}),_0x205b89[_0x592079(0x4de)](_0x592079(0x333))?_0x1410a8['pause'][_0x592079(0x896)]({'fields':_0x592079(0x1dfb),'sort':_0x592079(0x2494),'nolimit':'true'})[_0x592079(0x15e7)][_0x592079(0x64a)](function(_0x1c5d6e){const _0x250811=_0x592079;_0x2eb788['pauses']=_0x1c5d6e[_0x250811(0x28b8)]||[];})[_0x592079(0x20cd)](function(_0x1e5864){const _0x187c72=_0x592079;_0xc73fbb[_0x187c72(0x1bd0)]({'title':_0x1e5864[_0x187c72(0x10b3)]?_0x187c72(0x575)+_0x1e5864['status']+_0x187c72(0x21db)+_0x1e5864['statusText']:_0x187c72(0x1a14),'msg':_0x1e5864[_0x187c72(0x1c52)]?JSON[_0x187c72(0x2317)](_0x1e5864[_0x187c72(0x1c52)]):_0x1e5864[_0x187c72(0x2915)]()});}):_0x1410a8[_0x592079(0x2826)][_0x592079(0x896)]({'fields':_0x592079(0x1dfb),'sort':_0x592079(0x2494),'nolimit':'true'})[_0x592079(0x15e7)][_0x592079(0x64a)](function(_0x4a0740){const _0x528ed9=_0x592079;_0x2eb788[_0x528ed9(0x23d1)]=_0x4a0740[_0x528ed9(0x28b8)]||[];})[_0x592079(0x64a)](function(){const _0x492895=_0x592079;return _0x1410a8['userProfileSection'][_0x492895(0x896)]({'userProfileId':_0x2eb788['currentUser'][_0x492895(0x21ac)],'sectionId':0x3ed})[_0x492895(0x15e7)];})[_0x592079(0x64a)](function(_0x4967b3){const _0x1d790c=_0x592079,_0x29b409=_0x4967b3&&_0x4967b3[_0x1d790c(0x28b8)]?_0x4967b3['rows'][0x0]:null;if(!_0x29b409)_0x2eb788[_0x1d790c(0x23d1)]=[];else{if(!_0x29b409[_0x1d790c(0x11da)])return _0x1410a8[_0x1d790c(0x1617)][_0x1d790c(0x896)]({'sectionId':_0x29b409['id']})[_0x1d790c(0x15e7)]['then'](function(_0x135ccb){const _0x3e5551=_0x1d790c,_0x2ba3ea=_0x28c606()[_0x3e5551(0x1de5)](_0x135ccb['rows'],function(_0x3742b8){const _0x4a9515=_0x3e5551;return _0x28c606()[_0x4a9515(0x27bc)](_0x2eb788[_0x4a9515(0x23d1)],{'id':_0x3742b8['resourceId']});});_0x2eb788['pauses'][_0x3e5551(0x1397)](function(_0x2aa57e){const _0x10c5e2=_0x3e5551;!_0x28c606()['some'](_0x2ba3ea,['id',_0x2aa57e['id']])&&(_0x2aa57e['canSelect']=![]),_0x2ba3ea[_0x10c5e2(0x1954)](_0x2aa57e);}),_0x2eb788['pauses']=_0x2ba3ea;});}})[_0x592079(0x20cd)](function(_0xf40fd8){const _0x40d0df=_0x592079;_0xc73fbb['error']({'title':_0xf40fd8['status']?_0x40d0df(0x575)+_0xf40fd8[_0x40d0df(0x10b3)]+_0x40d0df(0x21db)+_0xf40fd8[_0x40d0df(0x2115)]:_0x40d0df(0xd4a),'msg':_0xf40fd8[_0x40d0df(0x1c52)]?JSON['stringify'](_0xf40fd8[_0x40d0df(0x1c52)]):_0xf40fd8['toString']()});});function _0x8b4a1d(_0x12e284,_0x186c3f){const _0x2eb366=_0x592079;_0x21c673[_0x2eb366(0xa60)]({'controller':_0x2eb366(0x154b),'controllerAs':'vm','templateUrl':_0x20015a,'parent':angular[_0x2eb366(0x1f81)](_0x4b44ba[_0x2eb366(0xb49)]),'targetEvent':_0x186c3f,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x12e284,'whatsappAccounts':_0x2eb788[_0x2eb366(0x21fb)]?_0x2eb788['whatsappAccounts'][_0x2eb366(0x28b8)]:[],'crudPermissions':_0x2eb788['crudPermissions'],'realtime':![]}});}function _0x282ddb(){const _0x45816c=_0x592079;_0x215168['go'](_0x45816c(0x1fee),{},{'reload':_0x45816c(0x1fee)});}function _0x4825bc(){const _0x3e56e5=_0x592079;_0x1410a8[_0x3e56e5(0x217c)][_0x3e56e5(0x2603)]({'id':_0x2eb788[_0x3e56e5(0x217c)]['id']},_0x2eb788['whatsappAccount'])[_0x3e56e5(0x15e7)][_0x3e56e5(0x64a)](function(){const _0x1e3a77=_0x3e56e5;_0xc73fbb['success']({'title':'WhatsappAccount\x20updated!','msg':_0x2eb788[_0x1e3a77(0x217c)][_0x1e3a77(0x2494)]?_0x2eb788[_0x1e3a77(0x217c)][_0x1e3a77(0x2494)]+_0x1e3a77(0x2032):''});})[_0x3e56e5(0x20cd)](function(_0x3ef4ae){const _0x290c5d=_0x3e56e5;_0xc73fbb[_0x290c5d(0x1bd0)]({'title':_0x3ef4ae[_0x290c5d(0x10b3)]?'API:'+_0x3ef4ae[_0x290c5d(0x10b3)]+_0x290c5d(0x21db)+_0x3ef4ae[_0x290c5d(0x2115)]:'SYSTEM:GETwhatsappAccount','msg':_0x3ef4ae[_0x290c5d(0x1c52)]?JSON[_0x290c5d(0x2317)](_0x3ef4ae[_0x290c5d(0x1c52)]):_0x3ef4ae['toString']()});});}}const _0x4dca1c=_0x209721;;const _0x2e8673=_0x2e4a48['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/whatsappCannedAnswers/dialog.html/dialog.html';;_0x543664[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x7a7),_0x49a1e3(0x1674),'$state','$q',_0x49a1e3(0x298c),'$timeout',_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x680),'api',_0x49a1e3(0xdcf)];function _0x543664(_0x58634f,_0x443173,_0x421fe6,_0x1f080f,_0x478e69,_0x166cd0,_0x35f4fa,_0x3889d7,_0x4a17d4,_0x423a8b,_0x262c3e){const _0x398443=_0x49a1e3,_0x4da2ff=this;_0x4da2ff[_0x398443(0x1d3d)]=_0x262c3e['getCurrentUser'](),_0x4da2ff[_0x398443(0x217c)]={},_0x4da2ff['whatsappAccountWhatsappCannedAnswers']={'count':0x0,'rows':[]},_0x4da2ff[_0x398443(0x25c1)]=[],_0x4da2ff[_0x398443(0x402)],_0x4da2ff[_0x398443(0x289a)]={'fields':'createdAt,updatedAt,id,key,value,description','limit':0xa,'page':0x1},_0x4da2ff['init']=_0x596ed,_0x4da2ff[_0x398443(0x217e)]=_0x116ccf,_0x4da2ff[_0x398443(0x1339)]=_0x2aa185,_0x4da2ff[_0x398443(0x1192)]=_0x41c414,_0x4da2ff[_0x398443(0x1e8e)]=_0x13758f,_0x4da2ff[_0x398443(0x4cb)]=_0x519a87,_0x4da2ff[_0x398443(0x12c2)]=_0x3e1aff,_0x4da2ff[_0x398443(0x3f7)]=_0x42c006;function _0x596ed(_0x20a2f2,_0x3424d5){const _0x15babd=_0x398443;_0x4da2ff[_0x15babd(0x217c)]=_0x20a2f2,_0x4da2ff[_0x15babd(0x402)]=typeof _0x3424d5!==_0x15babd(0x19a1)?_0x3424d5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4da2ff[_0x15babd(0x289a)]['WhatsappAccountId']=_0x4da2ff[_0x15babd(0x217c)]['id'],_0x4da2ff[_0x15babd(0x289a)]['id']=_0x4da2ff[_0x15babd(0x217c)]['id'],_0x41c414();}function _0x116ccf(_0x111fc6,_0x51d8ec){const _0x40a347=_0x398443,_0x2f1e48=_0x35f4fa['confirm']()[_0x40a347(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20whatsappCannedAnswer?')[_0x40a347(0x33a)](_0x40a347(0x50b)+(_0x111fc6[_0x40a347(0x2494)]||_0x111fc6['id']&&_0x28c606()['upperFirst']('whatsappCannedAnswer\x20#')+_0x111fc6['id']||_0x40a347(0xdf2))+_0x40a347(0x26d0)+'\x20will\x20be\x20deleted.')[_0x40a347(0x213e)](_0x40a347(0x1bd2))[_0x40a347(0x2283)](_0x51d8ec)['ok']('OK')[_0x40a347(0x101a)]('CANCEL');_0x35f4fa['show'](_0x2f1e48)[_0x40a347(0x64a)](function(){_0x3e1aff(_0x111fc6);},function(){const _0x48804c=_0x40a347;console[_0x48804c(0x9b4)](_0x48804c(0x18fd));});}function _0x2aa185(_0x2697d7){const _0x56f65c=_0x398443;_0x4da2ff[_0x56f65c(0xddb)]=_0x2697d7||{'count':0x0,'rows':[]};}function _0x41c414(){const _0x537652=_0x398443;_0x4da2ff[_0x537652(0x289a)][_0x537652(0x24f9)]=(_0x4da2ff[_0x537652(0x289a)][_0x537652(0xc72)]-0x1)*_0x4da2ff[_0x537652(0x289a)][_0x537652(0x25bb)],_0x4da2ff[_0x537652(0x1713)]=_0x423a8b[_0x537652(0x217c)][_0x537652(0x13db)](_0x4da2ff[_0x537652(0x289a)],_0x2aa185)['$promise'];}function _0x13758f(_0x3d1fe3,_0x237a56){const _0x485aeb=_0x398443;_0x35f4fa['show']({'controller':'CreateOrEditWhatsappCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x2e8673,'parent':angular[_0x485aeb(0x1f81)](_0x3889d7[_0x485aeb(0xb49)]),'targetEvent':_0x3d1fe3,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x4da2ff[_0x485aeb(0x217c)],'whatsappCannedAnswer':_0x237a56,'whatsappCannedAnswers':_0x4da2ff[_0x485aeb(0xddb)]['rows'],'license':null,'setting':null,'crudPermissions':_0x4da2ff[_0x485aeb(0x402)]}});}function _0x3e1aff(_0x3e5dd6){const _0x4d3d8f=_0x398443;_0x423a8b[_0x4d3d8f(0x14c4)][_0x4d3d8f(0xabd)]({'id':_0x3e5dd6['id']})[_0x4d3d8f(0x15e7)]['then'](function(){const _0x14b12c=_0x4d3d8f;_0x28c606()[_0x14b12c(0x21c7)](_0x4da2ff[_0x14b12c(0xddb)][_0x14b12c(0x28b8)],{'id':_0x3e5dd6['id']}),_0x4da2ff[_0x14b12c(0xddb)][_0x14b12c(0xb90)]-=0x1,!_0x4da2ff['whatsappAccountWhatsappCannedAnswers'][_0x14b12c(0x28b8)][_0x14b12c(0x1b9e)]&&_0x41c414(),_0x4a17d4[_0x14b12c(0x1339)]({'title':_0x14b12c(0x152b),'msg':_0x3e5dd6[_0x14b12c(0x2494)]?_0x3e5dd6[_0x14b12c(0x2494)]+_0x14b12c(0x1fa8):''});})[_0x4d3d8f(0x20cd)](function(_0x4c49b7){const _0x5d49e9=_0x4d3d8f;if(_0x4c49b7[_0x5d49e9(0x1c52)]&&_0x4c49b7[_0x5d49e9(0x1c52)][_0x5d49e9(0xbae)]&&_0x4c49b7['data'][_0x5d49e9(0xbae)][_0x5d49e9(0x1b9e)]){_0x4da2ff['errors']=_0x4c49b7[_0x5d49e9(0x1c52)]['errors']||[{'message':_0x4c49b7[_0x5d49e9(0x2915)](),'type':_0x5d49e9(0x12bd)}];for(let _0x5b3960=0x0;_0x5b3960<_0x4c49b7[_0x5d49e9(0x1c52)][_0x5d49e9(0xbae)][_0x5d49e9(0x1b9e)];_0x5b3960++){_0x4a17d4['error']({'title':_0x4c49b7[_0x5d49e9(0x1c52)][_0x5d49e9(0xbae)][_0x5b3960][_0x5d49e9(0x2185)],'msg':_0x4c49b7['data'][_0x5d49e9(0xbae)][_0x5b3960]['message']});}}else _0x4a17d4['error']({'title':_0x4c49b7[_0x5d49e9(0x10b3)]?'API:'+_0x4c49b7[_0x5d49e9(0x10b3)]+'\x20-\x20'+_0x4c49b7[_0x5d49e9(0x2115)]:_0x5d49e9(0x12bd),'msg':_0x4c49b7[_0x5d49e9(0x1c52)]?JSON[_0x5d49e9(0x2317)](_0x4c49b7[_0x5d49e9(0x1c52)][_0x5d49e9(0x18ca)]):_0x4c49b7[_0x5d49e9(0x18ca)]||_0x4c49b7[_0x5d49e9(0x2915)]()});});}function _0x519a87(){const _0x1c0d6f=_0x398443,_0x14923d=angular[_0x1c0d6f(0x289e)](_0x4da2ff[_0x1c0d6f(0x25c1)]);return _0x4da2ff[_0x1c0d6f(0x25c1)]=[],_0x14923d;}function _0x42c006(_0x1e8dc7){const _0x27b2ad=_0x398443,_0x15c16f=_0x35f4fa[_0x27b2ad(0x856)]()[_0x27b2ad(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappCannedAnswers?')[_0x27b2ad(0x33a)](''+_0x4da2ff['selectedWhatsappAccountWhatsappCannedAnswers'][_0x27b2ad(0x1b9e)]+_0x27b2ad(0x163e)+_0x27b2ad(0x4b8))['ariaLabel'](_0x27b2ad(0x1752))[_0x27b2ad(0x2283)](_0x1e8dc7)['ok']('OK')[_0x27b2ad(0x101a)]('CANCEL');_0x35f4fa['show'](_0x15c16f)[_0x27b2ad(0x64a)](function(){const _0x2a85ea=_0x27b2ad;_0x4da2ff[_0x2a85ea(0x25c1)][_0x2a85ea(0x1397)](function(_0x360f7c){_0x3e1aff(_0x360f7c);}),_0x4da2ff['selectedWhatsappAccountWhatsappCannedAnswers']=[];});}let _0x45adf0=!![],_0x541f2c=0x1;_0x443173[_0x398443(0xc62)](_0x398443(0x1200),function(_0x3afb9b,_0x16384a){const _0x56feff=_0x398443;_0x45adf0?_0x166cd0(function(){_0x45adf0=![];}):(!_0x16384a&&(_0x541f2c=_0x4da2ff[_0x56feff(0x289a)][_0x56feff(0xc72)]),_0x3afb9b!==_0x16384a&&(_0x4da2ff[_0x56feff(0x289a)]['page']=0x1),!_0x3afb9b&&(_0x4da2ff[_0x56feff(0x289a)][_0x56feff(0xc72)]=_0x541f2c),_0x41c414());});}const _0x594b2a=_0x543664;;_0x1a0366[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x77f),_0x49a1e3(0x1155),_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x53f),'whatsappCannedAnswer',_0x49a1e3(0xa19),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0x402)];function _0x1a0366(_0x82b346,_0xbb5d70,_0x13a686,_0x3965ba,_0x4380ec,_0x24361d,_0x3aa50a,_0x4b0720,_0x4dd7bd,_0x1a3198,_0x315f79,_0x550604,_0x455498,_0x2e0179){const _0x1ce49c=_0x49a1e3,_0x52385e=this;_0x52385e[_0x1ce49c(0x1d3d)]=_0x315f79[_0x1ce49c(0x808)](),_0x52385e[_0x1ce49c(0xbae)]=[],_0x52385e[_0x1ce49c(0x28d6)]=_0x455498,_0x52385e['license']=_0x550604,_0x52385e[_0x1ce49c(0x402)]=_0x2e0179,_0x52385e[_0x1ce49c(0x6c2)]={},_0x52385e[_0x1ce49c(0xccc)]=_0x52385e[_0x1ce49c(0x28d6)]&&_0x52385e['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x52385e[_0x1ce49c(0x2021)]=_0x1ce49c(0x67f),_0x52385e[_0x1ce49c(0xdf2)]=angular[_0x1ce49c(0x289e)](_0x4dd7bd),_0x52385e[_0x1ce49c(0x53f)]=_0x4b0720,_0x52385e['newWhatsappCannedAnswer']=![];!_0x52385e['whatsappCannedAnswer']&&(_0x52385e[_0x1ce49c(0xdf2)]={},_0x52385e[_0x1ce49c(0x2021)]=_0x1ce49c(0x1d20),_0x52385e[_0x1ce49c(0x2475)]=!![]);_0xbb5d70[_0x1ce49c(0x1b48)]['id']&&(_0x52385e[_0x1ce49c(0xdf2)][_0x1ce49c(0x222)]=_0xbb5d70[_0x1ce49c(0x1b48)]['id']);_0x52385e[_0x1ce49c(0x19a2)]=_0x114dd2,_0x52385e[_0x1ce49c(0x131b)]=_0xa99136,_0x52385e['deleteWhatsappCannedAnswer']=_0x3c750d,_0x52385e[_0x1ce49c(0x1605)]=_0x4d50ff,_0x52385e[_0x1ce49c(0x16cb)]=_0x169ab8;function _0x114dd2(){const _0x236ede=_0x1ce49c;_0x52385e['errors']=[],_0x1a3198[_0x236ede(0x14c4)]['save'](_0x52385e[_0x236ede(0xdf2)])[_0x236ede(0x15e7)][_0x236ede(0x64a)](function(_0x38a6c3){const _0x5baccc=_0x236ede;_0x52385e['whatsappCannedAnswers']['unshift'](_0x38a6c3['toJSON']()),_0x3aa50a[_0x5baccc(0x1339)]({'title':_0x5baccc(0x637),'msg':_0x52385e[_0x5baccc(0xdf2)]['name']?_0x52385e['whatsappCannedAnswer'][_0x5baccc(0x2494)]+'\x20has\x20been\x20created!':''}),_0x169ab8(_0x38a6c3);})['catch'](function(_0x4c635c){const _0x499193=_0x236ede;if(_0x4c635c[_0x499193(0x1c52)]&&_0x4c635c[_0x499193(0x1c52)][_0x499193(0xbae)]&&_0x4c635c[_0x499193(0x1c52)][_0x499193(0xbae)][_0x499193(0x1b9e)]){_0x52385e[_0x499193(0xbae)]=_0x4c635c[_0x499193(0x1c52)][_0x499193(0xbae)]||[{'message':_0x4c635c[_0x499193(0x2915)](),'type':'api.cannedAnswer.save'}];for(let _0x18690=0x0;_0x18690<_0x4c635c['data'][_0x499193(0xbae)][_0x499193(0x1b9e)];_0x18690+=0x1){_0x3aa50a[_0x499193(0x1bd0)]({'title':_0x4c635c[_0x499193(0x1c52)][_0x499193(0xbae)][_0x18690][_0x499193(0x2185)],'msg':_0x4c635c[_0x499193(0x1c52)][_0x499193(0xbae)][_0x18690]['message']});}}else _0x3aa50a[_0x499193(0x1bd0)]({'title':_0x4c635c[_0x499193(0x10b3)]?'API:'+_0x4c635c[_0x499193(0x10b3)]+'\x20-\x20'+_0x4c635c['statusText']:'api.cannedAnswer.save','msg':_0x4c635c['data']?JSON[_0x499193(0x2317)](_0x4c635c['data'][_0x499193(0x18ca)]):_0x4c635c[_0x499193(0x2915)]()});});}function _0xa99136(){const _0x58e61c=_0x1ce49c;_0x52385e[_0x58e61c(0xbae)]=[],_0x1a3198[_0x58e61c(0x14c4)][_0x58e61c(0x2603)]({'id':_0x52385e[_0x58e61c(0xdf2)]['id']},_0x52385e[_0x58e61c(0xdf2)])[_0x58e61c(0x15e7)][_0x58e61c(0x64a)](function(_0x106f8a){const _0x1d935f=_0x58e61c,_0x2d5724=_0x28c606()[_0x1d935f(0x27bc)](_0x52385e[_0x1d935f(0x53f)],{'id':_0x106f8a['id']});_0x2d5724&&_0x28c606()[_0x1d935f(0x14fe)](_0x2d5724,_0x28c606()[_0x1d935f(0x27bb)](_0x106f8a['toJSON'](),_0x28c606()[_0x1d935f(0x1ec6)](_0x2d5724))),_0x3aa50a[_0x1d935f(0x1339)]({'title':_0x1d935f(0x2510),'msg':_0x52385e[_0x1d935f(0xdf2)]['name']?_0x52385e[_0x1d935f(0xdf2)][_0x1d935f(0x2494)]+_0x1d935f(0x271):''}),_0x169ab8(_0x106f8a);})['catch'](function(_0x7c217c){const _0x1d3ef2=_0x58e61c;if(_0x7c217c[_0x1d3ef2(0x1c52)]&&_0x7c217c[_0x1d3ef2(0x1c52)][_0x1d3ef2(0xbae)]&&_0x7c217c[_0x1d3ef2(0x1c52)][_0x1d3ef2(0xbae)]['length']){_0x52385e[_0x1d3ef2(0xbae)]=_0x7c217c[_0x1d3ef2(0x1c52)][_0x1d3ef2(0xbae)]||[{'message':_0x7c217c[_0x1d3ef2(0x2915)](),'type':'api.cannedAnswer.update'}];for(let _0x2a63c2=0x0;_0x2a63c2<_0x7c217c[_0x1d3ef2(0x1c52)][_0x1d3ef2(0xbae)][_0x1d3ef2(0x1b9e)];_0x2a63c2++){_0x3aa50a[_0x1d3ef2(0x1bd0)]({'title':_0x7c217c[_0x1d3ef2(0x1c52)]['errors'][_0x2a63c2][_0x1d3ef2(0x2185)],'msg':_0x7c217c[_0x1d3ef2(0x1c52)][_0x1d3ef2(0xbae)][_0x2a63c2]['message']});}}else _0x3aa50a[_0x1d3ef2(0x1bd0)]({'title':_0x7c217c[_0x1d3ef2(0x10b3)]?'API:'+_0x7c217c[_0x1d3ef2(0x10b3)]+_0x1d3ef2(0x21db)+_0x7c217c['statusText']:_0x1d3ef2(0xab6),'msg':_0x7c217c[_0x1d3ef2(0x1c52)]?JSON[_0x1d3ef2(0x2317)](_0x7c217c[_0x1d3ef2(0x1c52)][_0x1d3ef2(0x18ca)]):_0x7c217c[_0x1d3ef2(0x2915)]()});});}function _0x3c750d(_0x224505){const _0x30fabb=_0x1ce49c;_0x52385e[_0x30fabb(0xbae)]=[];const _0x737700=_0x3965ba['confirm']()[_0x30fabb(0x2021)](_0x30fabb(0x103a))[_0x30fabb(0x12b8)]('The\x20whatsappCannedAnswer\x20will\x20be\x20deleted.')[_0x30fabb(0x213e)](_0x30fabb(0x3cf))['ok']('Delete')['cancel']('Cancel')[_0x30fabb(0x2283)](_0x224505);_0x3965ba[_0x30fabb(0xa60)](_0x737700)[_0x30fabb(0x64a)](function(){const _0x3c5dde=_0x30fabb;_0x1a3198[_0x3c5dde(0x14c4)][_0x3c5dde(0xabd)]({'id':_0x52385e['whatsappCannedAnswer']['id']})['$promise'][_0x3c5dde(0x64a)](function(){const _0x2f0e5f=_0x3c5dde;_0x28c606()[_0x2f0e5f(0x21c7)](_0x52385e[_0x2f0e5f(0x53f)],{'id':_0x52385e[_0x2f0e5f(0xdf2)]['id']}),_0x3aa50a[_0x2f0e5f(0x1339)]({'title':_0x2f0e5f(0xf76),'msg':(_0x52385e[_0x2f0e5f(0xdf2)][_0x2f0e5f(0x2494)]||'whatsappCannedAnswer')+_0x2f0e5f(0x1fa8)}),_0x169ab8(_0x52385e[_0x2f0e5f(0xdf2)]);})[_0x3c5dde(0x20cd)](function(_0x25a3d){const _0x4e62f5=_0x3c5dde;if(_0x25a3d[_0x4e62f5(0x1c52)]&&_0x25a3d['data'][_0x4e62f5(0xbae)]&&_0x25a3d[_0x4e62f5(0x1c52)][_0x4e62f5(0xbae)][_0x4e62f5(0x1b9e)]){_0x52385e['errors']=_0x25a3d[_0x4e62f5(0x1c52)][_0x4e62f5(0xbae)]||[{'message':_0x25a3d[_0x4e62f5(0x2915)](),'type':_0x4e62f5(0x1ed3)}];for(let _0x3d67d2=0x0;_0x3d67d2<_0x25a3d[_0x4e62f5(0x1c52)][_0x4e62f5(0xbae)][_0x4e62f5(0x1b9e)];_0x3d67d2++){_0x3aa50a[_0x4e62f5(0x1bd0)]({'title':_0x25a3d['data'][_0x4e62f5(0xbae)][_0x3d67d2]['type'],'msg':_0x25a3d[_0x4e62f5(0x1c52)][_0x4e62f5(0xbae)][_0x3d67d2][_0x4e62f5(0x18ca)]});}}else _0x3aa50a[_0x4e62f5(0x1bd0)]({'title':_0x25a3d[_0x4e62f5(0x10b3)]?_0x4e62f5(0x575)+_0x25a3d[_0x4e62f5(0x10b3)]+'\x20-\x20'+_0x25a3d[_0x4e62f5(0x2115)]:_0x4e62f5(0x1ed3),'msg':_0x25a3d['data']?JSON[_0x4e62f5(0x2317)](_0x25a3d[_0x4e62f5(0x1c52)][_0x4e62f5(0x18ca)]):_0x25a3d[_0x4e62f5(0x18ca)]||_0x25a3d[_0x4e62f5(0x2915)]()});});},function(){});}function _0x4d50ff(_0x5d0ad1){return _0x5d0ad1===null?undefined:new Date(_0x5d0ad1);}function _0x169ab8(_0x26f7fe){const _0x3116ae=_0x1ce49c;_0x3965ba[_0x3116ae(0x268e)](_0x26f7fe);}}const _0x26d622=_0x1a0366;;_0x428bd3[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$window',_0x49a1e3(0x77f),_0x49a1e3(0x2899),_0x49a1e3(0x212a),_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),'api','toasty',_0x49a1e3(0xdcf)];function _0x428bd3(_0x5d7fa8,_0x3282b4,_0x524037,_0x2b5f4c,_0x1001ad,_0x1f7444,_0x3e2b50,_0x5984c1,_0xb0de5e,_0x122703,_0xbc4942){const _0x444a66=_0x49a1e3,_0x321dcf=this;_0x321dcf['currentUser']=_0xbc4942[_0x444a66(0x808)](),_0x321dcf['dispositions']={'count':0x0,'rows':[]},_0x321dcf[_0x444a66(0x1403)]=[],_0x321dcf['crudPermissions'],_0x321dcf[_0x444a66(0x20c7)]={'first':'1st','second':_0x444a66(0x255e),'third':'3rd'},_0x321dcf[_0x444a66(0x289a)]={'fields':_0x444a66(0x12ce),'sort':_0x444a66(0x260c),'limit':0xa,'page':0x1},_0x321dcf['init']=_0x27814c,_0x321dcf[_0x444a66(0x217e)]=_0x3c8f70,_0x321dcf[_0x444a66(0x1339)]=_0x2455ad,_0x321dcf['getDispositions']=_0x1eb257,_0x321dcf[_0x444a66(0x22cb)]=_0x3366c2,_0x321dcf['deleteDisposition']=_0x1a9cf4,_0x321dcf[_0x444a66(0x28e3)]=_0x500305,_0x321dcf['deleteSelectedDispositions']=_0x373222,_0x321dcf['deselectDispositions']=_0x1c9977,_0x321dcf[_0x444a66(0x2984)]=_0x5d202e;function _0x27814c(_0x37415a,_0x2ad6d6){const _0x462ef1=_0x444a66;_0x321dcf[_0x462ef1(0x217c)]=_0x37415a||{},_0x321dcf[_0x462ef1(0x402)]=typeof _0x2ad6d6!==_0x462ef1(0x19a1)?_0x2ad6d6:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x321dcf[_0x462ef1(0x289a)]['WhatsappAccountId']=_0x321dcf['whatsappAccount']['id'],_0x321dcf['query']['id']=_0x321dcf['whatsappAccount']['id'],_0x1eb257();}function _0x3366c2(_0x1ec87a,_0x1201e4){const _0x1c947b=_0x444a66;_0x1001ad[_0x1c947b(0xa60)]({'controller':_0x1c947b(0xf48),'controllerAs':'vm','templateUrl':_0x482291,'parent':angular[_0x1c947b(0x1f81)](_0x1f7444[_0x1c947b(0xb49)]),'targetEvent':_0x1ec87a,'clickOutsideToClose':!![],'locals':{'disposition':_0x1201e4,'model':{'id':_0x321dcf['whatsappAccount']['id'],'field':_0x1c947b(0x222),'route':_0x1c947b(0x217c)},'license':null,'setting':null,'crudPermissions':_0x321dcf[_0x1c947b(0x402)]}})['then'](function(_0x132c5a){if(_0x132c5a)_0x1eb257();});}function _0x3c8f70(_0x2a0816,_0x14b3dc){const _0x651daa=_0x444a66,_0xde2638=_0x28c606()['some'](_0x321dcf['dispositions']['rows'],[_0x651daa(0xbb9),_0x2a0816['id']]),_0x10c53f=_0x1001ad['confirm']()[_0x651daa(0x2021)](_0x5984c1[_0x651daa(0x2292)](_0x651daa(0x13a7)))[_0x651daa(0x12b8)](_0x5984c1['instant'](_0x651daa(0x2213)+(_0xde2638?_0x651daa(0x1be):_0x651daa(0x1942)),{'name':_0x2a0816[_0x651daa(0x2494)]}))[_0x651daa(0x213e)](_0x651daa(0xc2c))[_0x651daa(0x2283)](_0x14b3dc)['ok']('OK')[_0x651daa(0x101a)](_0x5984c1['instant'](_0x651daa(0x4f5)));_0x1001ad[_0x651daa(0xa60)](_0x10c53f)['then'](function(){_0x1a9cf4(_0x2a0816);});}function _0x2455ad(_0x41e71e){const _0x591c14=_0x444a66;_0x321dcf[_0x591c14(0x16d7)]=_0x41e71e||{'count':0x0,'rows':[]};}function _0x1eb257(){const _0x19c650=_0x444a66;_0x321dcf[_0x19c650(0x289a)]['offset']=(_0x321dcf[_0x19c650(0x289a)][_0x19c650(0xc72)]-0x1)*_0x321dcf[_0x19c650(0x289a)][_0x19c650(0x25bb)],_0x321dcf['promise']=_0xb0de5e[_0x19c650(0x217c)][_0x19c650(0xe50)](_0x321dcf['query'],_0x2455ad)[_0x19c650(0x15e7)];}function _0x1a9cf4(_0x167386){const _0x3b236d=_0x444a66;_0xb0de5e[_0x3b236d(0x168b)][_0x3b236d(0xabd)]({'id':_0x167386['id']})['$promise'][_0x3b236d(0x64a)](function(){const _0x212983=_0x3b236d;_0x1eb257(),_0x122703['success']({'title':_0x5984c1[_0x212983(0x2292)]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')});})['catch'](function(_0x45d282){const _0x189ff1=_0x3b236d;if(_0x45d282[_0x189ff1(0x1c52)]&&_0x45d282[_0x189ff1(0x1c52)][_0x189ff1(0xbae)]&&_0x45d282['data']['errors'][_0x189ff1(0x1b9e)]){_0x321dcf[_0x189ff1(0xbae)]=_0x45d282[_0x189ff1(0x1c52)][_0x189ff1(0xbae)]||[{'message':_0x45d282['toString'](),'type':_0x189ff1(0x1c37)}];for(let _0x3d1113=0x0;_0x3d1113<_0x45d282['data'][_0x189ff1(0xbae)][_0x189ff1(0x1b9e)];_0x3d1113++){_0x122703[_0x189ff1(0x1bd0)]({'title':_0x45d282[_0x189ff1(0x1c52)][_0x189ff1(0xbae)][_0x3d1113][_0x189ff1(0x2185)],'msg':_0x45d282[_0x189ff1(0x1c52)][_0x189ff1(0xbae)][_0x3d1113][_0x189ff1(0x18ca)]});}}else _0x122703[_0x189ff1(0x1bd0)]({'title':_0x45d282['status']?_0x189ff1(0x575)+_0x45d282[_0x189ff1(0x10b3)]+_0x189ff1(0x21db)+_0x45d282['statusText']:_0x189ff1(0x1c37),'msg':_0x45d282[_0x189ff1(0x1c52)]?JSON[_0x189ff1(0x2317)](_0x45d282[_0x189ff1(0x1c52)][_0x189ff1(0x18ca)]):_0x45d282['message']||_0x45d282[_0x189ff1(0x2915)]()});});}function _0x500305(){const _0x4597d4=_0x444a66,_0x2c3316=angular['copy'](_0x321dcf[_0x4597d4(0x1403)]);return _0x321dcf[_0x4597d4(0x1403)]=[],_0x2c3316;}function _0x373222(_0x5c3d7a){const _0x39a5ae=_0x444a66,_0x5ae659=_0x1001ad[_0x39a5ae(0x856)]()['title'](_0x5984c1[_0x39a5ae(0x2292)](_0x39a5ae(0x10a1)))[_0x39a5ae(0x12b8)](_0x5984c1[_0x39a5ae(0x2292)](_0x39a5ae(0x2563),{'total':_0x321dcf['selectedDispositions'][_0x39a5ae(0x1b9e)]}))['ariaLabel']('Delete\x20dispositions')['targetEvent'](_0x5c3d7a)['ok']('OK')['cancel'](_0x5984c1[_0x39a5ae(0x2292)](_0x39a5ae(0x4f5)));_0x1001ad['show'](_0x5ae659)[_0x39a5ae(0x64a)](function(){const _0x286a3d=_0x39a5ae;_0x321dcf['selectedDispositions']['forEach'](function(_0x203092){_0x1a9cf4(_0x203092);}),_0x321dcf[_0x286a3d(0x1403)]=[];});}function _0x1c9977(){const _0x59eaa0=_0x444a66;_0x321dcf[_0x59eaa0(0x1403)]=[];}function _0x5d202e(){const _0x335ad7=_0x444a66;_0x321dcf[_0x335ad7(0x1403)]=_0x321dcf[_0x335ad7(0x16d7)][_0x335ad7(0x28b8)];}let _0x2634d8=!![],_0x2496ae=0x1;_0x5d7fa8[_0x444a66(0xc62)](_0x444a66(0x1200),function(_0x23d68f,_0x31ef1b){const _0x1a2ca4=_0x444a66;_0x2634d8?_0x3e2b50(function(){_0x2634d8=![];}):(!_0x31ef1b&&(_0x2496ae=_0x321dcf[_0x1a2ca4(0x289a)][_0x1a2ca4(0xc72)]),_0x23d68f!==_0x31ef1b&&(_0x321dcf[_0x1a2ca4(0x289a)][_0x1a2ca4(0xc72)]=0x1),!_0x23d68f&&(_0x321dcf[_0x1a2ca4(0x289a)][_0x1a2ca4(0xc72)]=_0x2496ae),_0x1eb257());});}const _0x33ffd5=_0x428bd3;;const _0x3c6b84=_0x2e4a48['p']+_0x49a1e3(0x1f8d);;_0x348dc3[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),_0x49a1e3(0x1fe7),_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog',_0x49a1e3(0x1373),_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x21fb),_0x49a1e3(0x16a8),'userProfileSection','api','msUtils',_0x49a1e3(0x680),'Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x348dc3(_0x3411d5,_0x1ae2ad,_0x59455c,_0x55b270,_0x5c2cff,_0x24d24d,_0x35f0e0,_0x5940a2,_0x5d7475,_0x155f55,_0x5892e0,_0x234a7a,_0x4219bc,_0x54414f,_0x213fc9,_0x42c89f,_0x42377c){const _0x5efb6e=_0x49a1e3,_0x1f906d=this;_0x1f906d[_0x5efb6e(0x1947)]=_0x42c89f,_0x1f906d['setting']=_0x42377c,_0x1f906d[_0x5efb6e(0x1d3d)]=_0x213fc9[_0x5efb6e(0x808)](),_0x1f906d[_0x5efb6e(0x21fb)]=_0x5d7475||{'count':0x0,'rows':[]},_0x1f906d['userProfile']=_0x155f55,_0x1f906d[_0x5efb6e(0x16b2)]=_0x5892e0&&_0x5892e0[_0x5efb6e(0xb90)]==0x1?_0x5892e0[_0x5efb6e(0x28b8)][0x0]:null,_0x1f906d['crudPermissions']=_0x213fc9[_0x5efb6e(0xa7e)](_0x1f906d[_0x5efb6e(0x16b2)]?_0x1f906d['userProfileSection']['crudPermissions']:null),_0x1f906d[_0x5efb6e(0x185d)]=_0x5efb6e(0x21fb),_0x1f906d[_0x5efb6e(0x300)]='',_0x1f906d[_0x5efb6e(0x2748)]=null,_0x1f906d[_0x5efb6e(0x2594)]=[],_0x1f906d['query']={'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':_0x5efb6e(0x260c),'limit':0xa,'page':0x1},_0x1f906d['arraytype']=_0x28c606()[_0x5efb6e(0x161e)]([{'option':_0x5efb6e(0x907),'value':'\x27twilio\x27'}],function(_0x4241a7){const _0x2d02ca=_0x5efb6e;return _0x28c606()[_0x2d02ca(0x1353)](_0x4241a7[_0x2d02ca(0x1096)],new RegExp('\x27','g'),'');}),_0x1f906d[_0x5efb6e(0xff6)]=_0x1b27da,_0x1f906d[_0x5efb6e(0x1531)]=_0x3f99e4,_0x1f906d[_0x5efb6e(0x104a)]=_0x1b9c36,_0x1f906d['deleteconfirm']=_0x5f19e9,_0x1f906d[_0x5efb6e(0x1339)]=_0x1aeaf1,_0x1f906d[_0x5efb6e(0x33b)]=_0x111ad4,_0x1f906d[_0x5efb6e(0x13e4)]=_0x573f5d,_0x1f906d[_0x5efb6e(0x1ab7)]=_0xd4564d,_0x1f906d['exportSelectedWhatsappAccounts']=_0x522965,_0x1f906d[_0x5efb6e(0xcac)]=_0x1b88e4,_0x1f906d[_0x5efb6e(0x238b)]=_0xd2a085,_0x1f906d[_0x5efb6e(0x27f6)]=_0x479c04,_0x213fc9[_0x5efb6e(0x4de)]('admin')?_0x234a7a[_0x5efb6e(0x19f8)][_0x5efb6e(0x896)]({'fields':_0x5efb6e(0x1427),'sort':_0x5efb6e(0x2494)})[_0x5efb6e(0x15e7)][_0x5efb6e(0x64a)](function(_0x13ef54){_0x1f906d['lists']=_0x13ef54['rows']||[];})[_0x5efb6e(0x20cd)](function(_0x2a27fd){const _0x430802=_0x5efb6e;_0x54414f[_0x430802(0x1bd0)]({'title':_0x2a27fd['status']?_0x430802(0x575)+_0x2a27fd['status']+_0x430802(0x21db)+_0x2a27fd[_0x430802(0x2115)]:_0x430802(0x1ed6),'msg':_0x2a27fd[_0x430802(0x1c52)]?JSON[_0x430802(0x2317)](_0x2a27fd[_0x430802(0x1c52)]):_0x2a27fd[_0x430802(0x2915)]()});}):_0x234a7a['cmList'][_0x5efb6e(0x896)]({'fields':_0x5efb6e(0x1427),'sort':_0x5efb6e(0x2494)})[_0x5efb6e(0x15e7)]['then'](function(_0xe04a3d){const _0x59630c=_0x5efb6e;_0x1f906d[_0x59630c(0x974)]=_0xe04a3d[_0x59630c(0x28b8)]||[];})[_0x5efb6e(0x64a)](function(){const _0x582b4c=_0x5efb6e;return _0x234a7a['userProfileSection'][_0x582b4c(0x896)]({'userProfileId':_0x1f906d[_0x582b4c(0x1d3d)][_0x582b4c(0x21ac)],'sectionId':0x12d})[_0x582b4c(0x15e7)];})[_0x5efb6e(0x64a)](function(_0x3cb5bd){const _0x40536c=_0x5efb6e,_0x2a4fe2=_0x3cb5bd&&_0x3cb5bd[_0x40536c(0x28b8)]?_0x3cb5bd[_0x40536c(0x28b8)][0x0]:null;if(!_0x2a4fe2){const _0x59b906=[];let _0x331e35=null;_0x1f906d[_0x40536c(0x217c)]&&(_0x331e35=_0x28c606()[_0x40536c(0x27bc)](_0x1f906d[_0x40536c(0x974)],{'id':Number(_0x1f906d[_0x40536c(0x217c)][_0x40536c(0x869)])}));for(let _0x44f6cc=0x0;_0x44f6cc<_0x1f906d[_0x40536c(0x974)][_0x40536c(0x1b9e)];_0x44f6cc++){_0x331e35&&_0x1f906d[_0x40536c(0x974)][_0x44f6cc]['id']===_0x331e35['id']&&(_0x1f906d[_0x40536c(0x974)][_0x44f6cc][_0x40536c(0xd4f)]=![],_0x59b906[_0x40536c(0x1954)](_0x1f906d[_0x40536c(0x974)][_0x44f6cc]));}_0x1f906d[_0x40536c(0x974)]=_0x59b906;}else{if(!_0x2a4fe2[_0x40536c(0x11da)])return _0x234a7a[_0x40536c(0x1617)][_0x40536c(0x896)]({'sectionId':_0x2a4fe2['id']})[_0x40536c(0x15e7)][_0x40536c(0x64a)](function(_0x3eea22){const _0x2fdc8d=_0x40536c,_0x103aa5=_0x28c606()[_0x2fdc8d(0x1de5)](_0x3eea22[_0x2fdc8d(0x28b8)],function(_0x1e8553){const _0x21a23e=_0x2fdc8d;return _0x28c606()[_0x21a23e(0x27bc)](_0x1f906d[_0x21a23e(0x974)],{'id':_0x1e8553['resourceId']});});let _0xedcccc=null;_0x1f906d[_0x2fdc8d(0x217c)]&&(_0xedcccc=_0x28c606()[_0x2fdc8d(0x27bc)](_0x1f906d[_0x2fdc8d(0x974)],{'id':Number(_0x1f906d[_0x2fdc8d(0x217c)]['ListId'])}));if(_0xedcccc&&!_0x28c606()[_0x2fdc8d(0x25f8)](_0x103aa5,['id',_0xedcccc['id']])){const _0x3d73e0=_0x28c606()[_0x2fdc8d(0x27bc)](_0x1f906d[_0x2fdc8d(0x974)],{'id':_0xedcccc['id']});_0x3d73e0[_0x2fdc8d(0xd4f)]=![],_0x103aa5[_0x2fdc8d(0x1954)](_0x3d73e0);}_0x1f906d[_0x2fdc8d(0x974)]=_0x103aa5;});}})['catch'](function(_0x2dc0f5){const _0x58be43=_0x5efb6e;_0x54414f[_0x58be43(0x1bd0)]({'title':_0x2dc0f5[_0x58be43(0x10b3)]?'API:'+_0x2dc0f5[_0x58be43(0x10b3)]+_0x58be43(0x21db)+_0x2dc0f5[_0x58be43(0x2115)]:'SYSTEM:GETlists','msg':_0x2dc0f5[_0x58be43(0x1c52)]?JSON['stringify'](_0x2dc0f5['data']):_0x2dc0f5[_0x58be43(0x2915)]()});}),_0x213fc9[_0x5efb6e(0x4de)](_0x5efb6e(0x333))?_0x234a7a[_0x5efb6e(0x2826)][_0x5efb6e(0x896)]({'fields':_0x5efb6e(0x1dfb),'sort':'name','nolimit':_0x5efb6e(0x1685)})[_0x5efb6e(0x15e7)]['then'](function(_0x5d8315){const _0x2e3a8d=_0x5efb6e;_0x1f906d[_0x2e3a8d(0x23d1)]=_0x5d8315[_0x2e3a8d(0x28b8)]||[];})[_0x5efb6e(0x20cd)](function(_0x513736){const _0x2b58e7=_0x5efb6e;_0x54414f[_0x2b58e7(0x1bd0)]({'title':_0x513736[_0x2b58e7(0x10b3)]?_0x2b58e7(0x575)+_0x513736[_0x2b58e7(0x10b3)]+_0x2b58e7(0x21db)+_0x513736['statusText']:_0x2b58e7(0x1a14),'msg':_0x513736['data']?JSON[_0x2b58e7(0x2317)](_0x513736[_0x2b58e7(0x1c52)]):_0x513736[_0x2b58e7(0x2915)]()});}):_0x234a7a[_0x5efb6e(0x2826)][_0x5efb6e(0x896)]({'fields':_0x5efb6e(0x1dfb),'sort':_0x5efb6e(0x2494),'nolimit':'true'})[_0x5efb6e(0x15e7)][_0x5efb6e(0x64a)](function(_0x5dd100){const _0x2d6aff=_0x5efb6e;_0x1f906d[_0x2d6aff(0x23d1)]=_0x5dd100[_0x2d6aff(0x28b8)]||[];})[_0x5efb6e(0x64a)](function(){const _0x5f206a=_0x5efb6e;return _0x234a7a[_0x5f206a(0x16b2)][_0x5f206a(0x896)]({'userProfileId':_0x1f906d['currentUser'][_0x5f206a(0x21ac)],'sectionId':0x3ed})[_0x5f206a(0x15e7)];})[_0x5efb6e(0x64a)](function(_0x4f0d06){const _0x3cb448=_0x5efb6e,_0x5855f5=_0x4f0d06&&_0x4f0d06[_0x3cb448(0x28b8)]?_0x4f0d06[_0x3cb448(0x28b8)][0x0]:null;if(!_0x5855f5)_0x1f906d[_0x3cb448(0x23d1)]=[];else{if(!_0x5855f5[_0x3cb448(0x11da)])return _0x234a7a[_0x3cb448(0x1617)]['get']({'sectionId':_0x5855f5['id']})['$promise'][_0x3cb448(0x64a)](function(_0x1c4319){const _0xba62f5=_0x3cb448,_0x1b456c=_0x28c606()[_0xba62f5(0x1de5)](_0x1c4319[_0xba62f5(0x28b8)],function(_0x39f16d){const _0x3bb401=_0xba62f5;return _0x28c606()['find'](_0x1f906d['pauses'],{'id':_0x39f16d[_0x3bb401(0x145)]});});_0x1f906d[_0xba62f5(0x23d1)][_0xba62f5(0x1397)](function(_0x1d8b1e){const _0x3600eb=_0xba62f5;!_0x28c606()[_0x3600eb(0x25f8)](_0x1b456c,['id',_0x1d8b1e['id']])&&(_0x1d8b1e[_0x3600eb(0xd4f)]=![]),_0x1b456c[_0x3600eb(0x1954)](_0x1d8b1e);}),_0x1f906d[_0xba62f5(0x23d1)]=_0x1b456c;});}})['catch'](function(_0x5807f8){const _0x5e9bcd=_0x5efb6e;_0x54414f[_0x5e9bcd(0x1bd0)]({'title':_0x5807f8[_0x5e9bcd(0x10b3)]?_0x5e9bcd(0x575)+_0x5807f8['status']+_0x5e9bcd(0x21db)+_0x5807f8['statusText']:_0x5e9bcd(0xd4a),'msg':_0x5807f8[_0x5e9bcd(0x1c52)]?JSON[_0x5e9bcd(0x2317)](_0x5807f8[_0x5e9bcd(0x1c52)]):_0x5807f8[_0x5e9bcd(0x2915)]()});});function _0x1b27da(_0x169ddc){const _0x3a4853=_0x5efb6e;_0x59455c['go'](_0x3a4853(0x18c9),{'id':_0x169ddc['id'],'whatsappAccount':_0x169ddc,'crudPermissions':_0x1f906d[_0x3a4853(0x402)]});}function _0x3f99e4(_0x2c2717){_0x59455c['go']('app.whatsapp.whatsappAccounts.edit',{'id':_0x2c2717['id'],'tab':0x5});}function _0x1b9c36(_0x2ee19d,_0x2441ab){const _0x4d64ae=_0x5efb6e;_0x5c2cff['show']({'controller':_0x4d64ae(0x154b),'controllerAs':'vm','templateUrl':_0x20015a,'parent':angular['element'](_0x24d24d['body']),'targetEvent':_0x2441ab,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x2ee19d,'whatsappAccounts':_0x1f906d['whatsappAccounts']?_0x1f906d[_0x4d64ae(0x21fb)]['rows']:[],'crudPermissions':_0x1f906d['crudPermissions'],'realtime':![]}});}function _0x5f19e9(_0x5a1954,_0x15e4a0){const _0x2de149=_0x5efb6e,_0x20311c=_0x5c2cff[_0x2de149(0x856)]()[_0x2de149(0x2021)](_0x2de149(0x1231)+_0x28c606()[_0x2de149(0xc01)]('whatsappAccount')+'?')['htmlContent'](_0x2de149(0x50b)+(_0x5a1954[_0x2de149(0x2494)]||_0x2de149(0x217c))+_0x2de149(0x26d0)+'\x20will\x20be\x20deleted.')[_0x2de149(0x213e)]('delete\x20whatsappAccount')['targetEvent'](_0x15e4a0)['ok']('OK')['cancel'](_0x2de149(0x18fd));_0x5c2cff[_0x2de149(0xa60)](_0x20311c)[_0x2de149(0x64a)](function(){_0xd4564d(_0x5a1954);},function(){const _0x4b51cf=_0x2de149;console[_0x4b51cf(0x9b4)](_0x4b51cf(0x18fd));});}let _0x3c8d47=!![],_0x33a2ae=0x1;_0x3411d5[_0x5efb6e(0xc62)]('vm.query.filter',function(_0x3d1526,_0x343f54){const _0x5f1be8=_0x5efb6e;_0x3c8d47?_0x35f0e0(function(){_0x3c8d47=![];}):(!_0x343f54&&(_0x33a2ae=_0x1f906d[_0x5f1be8(0x289a)][_0x5f1be8(0xc72)]),_0x3d1526!==_0x343f54&&(_0x1f906d['query']['page']=0x1),!_0x3d1526&&(_0x1f906d[_0x5f1be8(0x289a)][_0x5f1be8(0xc72)]=_0x33a2ae),_0x1f906d[_0x5f1be8(0x33b)]());});function _0x1aeaf1(_0x521490){const _0x44a1d0=_0x5efb6e;_0x1f906d[_0x44a1d0(0x21fb)]=_0x521490||{'count':0x0,'rows':[]};}function _0x111ad4(){const _0x468196=_0x5efb6e;_0x1f906d['query'][_0x468196(0x24f9)]=(_0x1f906d[_0x468196(0x289a)]['page']-0x1)*_0x1f906d[_0x468196(0x289a)][_0x468196(0x25bb)],_0x213fc9['hasRole']('admin')?_0x1f906d['promise']=_0x234a7a['whatsappAccount'][_0x468196(0x896)](_0x1f906d[_0x468196(0x289a)],_0x1aeaf1)['$promise']:(_0x1f906d[_0x468196(0x289a)]['id']=_0x1f906d[_0x468196(0x16a8)]['id'],_0x1f906d[_0x468196(0x289a)]['section']=_0x468196(0xfa8),_0x1f906d[_0x468196(0x1713)]=_0x234a7a[_0x468196(0x16a8)][_0x468196(0x2565)](_0x1f906d[_0x468196(0x289a)],_0x1aeaf1)['$promise']);}function _0x573f5d(_0x507090,_0x468d4b){const _0x2ddd6d=_0x5efb6e;_0x5c2cff['show']({'controller':_0x2ddd6d(0x1ba2),'controllerAs':'vm','templateUrl':_0x3c6b84,'parent':angular[_0x2ddd6d(0x1f81)](_0x24d24d[_0x2ddd6d(0xb49)]),'targetEvent':_0x507090,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x468d4b,'whatsappAccounts':_0x1f906d[_0x2ddd6d(0x21fb)]['rows'],'license':_0x1f906d[_0x2ddd6d(0x1947)],'setting':_0x1f906d[_0x2ddd6d(0x28d6)],'crudPermissions':_0x1f906d[_0x2ddd6d(0x402)]}});}function _0xd4564d(_0x6bc603){const _0x24986f=_0x5efb6e;_0x234a7a[_0x24986f(0x217c)][_0x24986f(0xabd)]({'id':_0x6bc603['id']})[_0x24986f(0x15e7)][_0x24986f(0x64a)](function(){const _0x170ad4=_0x24986f;_0x28c606()[_0x170ad4(0x21c7)](_0x1f906d[_0x170ad4(0x21fb)][_0x170ad4(0x28b8)],{'id':_0x6bc603['id']}),_0x1f906d[_0x170ad4(0x21fb)][_0x170ad4(0xb90)]-=0x1,!_0x1f906d[_0x170ad4(0x21fb)]['rows']['length']&&_0x1f906d[_0x170ad4(0x33b)](),_0x54414f['success']({'title':_0x28c606()[_0x170ad4(0xc01)](_0x170ad4(0xfe0))+_0x170ad4(0x2502),'msg':_0x6bc603[_0x170ad4(0x2494)]?_0x6bc603['name']+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x499b9a){const _0x500fdc=_0x24986f;if(_0x499b9a[_0x500fdc(0x1c52)]&&_0x499b9a[_0x500fdc(0x1c52)][_0x500fdc(0xbae)]&&_0x499b9a['data'][_0x500fdc(0xbae)][_0x500fdc(0x1b9e)]){_0x1f906d[_0x500fdc(0xbae)]=_0x499b9a['data'][_0x500fdc(0xbae)]||[{'message':_0x499b9a[_0x500fdc(0x2915)](),'type':'SYSTEM:DELETEwhatsappAccount'}];for(let _0x38a92b=0x0;_0x38a92b<_0x499b9a[_0x500fdc(0x1c52)][_0x500fdc(0xbae)][_0x500fdc(0x1b9e)];_0x38a92b++){_0x54414f[_0x500fdc(0x1bd0)]({'title':_0x499b9a[_0x500fdc(0x1c52)][_0x500fdc(0xbae)][_0x38a92b]['type'],'msg':_0x499b9a[_0x500fdc(0x1c52)][_0x500fdc(0xbae)][_0x38a92b]['message']});}}else _0x54414f[_0x500fdc(0x1bd0)]({'title':_0x499b9a['status']?'API:'+_0x499b9a['status']+_0x500fdc(0x21db)+_0x499b9a[_0x500fdc(0x2115)]:_0x500fdc(0x965),'msg':_0x499b9a[_0x500fdc(0x1c52)]?JSON[_0x500fdc(0x2317)](_0x499b9a[_0x500fdc(0x1c52)][_0x500fdc(0x18ca)]):_0x499b9a[_0x500fdc(0x18ca)]||_0x499b9a['toString']()});});}function _0x522965(){const _0x31cd1d=_0x5efb6e,_0x8bc856=angular['copy'](_0x1f906d[_0x31cd1d(0x2594)]);return _0x1f906d[_0x31cd1d(0x2594)]=[],_0x8bc856;}function _0x1b88e4(_0x107ffe){const _0x1eff4a=_0x5efb6e,_0x4fad2a=_0x5c2cff[_0x1eff4a(0x856)]()[_0x1eff4a(0x2021)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappAccounts?')[_0x1eff4a(0x33a)](_0x1eff4a(0x50b)+_0x1f906d[_0x1eff4a(0x2594)][_0x1eff4a(0x1b9e)]+_0x1eff4a(0x163e)+_0x1eff4a(0x4b8))[_0x1eff4a(0x213e)](_0x1eff4a(0x30d))[_0x1eff4a(0x2283)](_0x107ffe)['ok']('OK')['cancel'](_0x1eff4a(0x18fd));_0x5c2cff[_0x1eff4a(0xa60)](_0x4fad2a)[_0x1eff4a(0x64a)](function(){const _0x5d9294=_0x1eff4a;_0x1f906d[_0x5d9294(0x2594)]['forEach'](function(_0x345195){_0xd4564d(_0x345195);}),_0x1f906d[_0x5d9294(0x2594)]=[];});}function _0xd2a085(){const _0x5a4a83=_0x5efb6e;_0x1f906d[_0x5a4a83(0x2594)]=[];}function _0x479c04(){const _0x5379a7=_0x5efb6e;_0x1f906d[_0x5379a7(0x2594)]=_0x1f906d[_0x5379a7(0x21fb)][_0x5379a7(0x28b8)];}}const _0xf5dc1b=_0x348dc3;;_0xdfc8a4[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$state','$location',_0x49a1e3(0x212a),'$q',_0x49a1e3(0x298c),_0x49a1e3(0x680),_0x49a1e3(0x1cf1),_0x49a1e3(0x296d),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x1947),'setting',_0x49a1e3(0x402)];function _0xdfc8a4(_0x41f12c,_0x3cf5cc,_0x2be732,_0x5608c7,_0x4d9da0,_0x254b8c,_0x33926a,_0x7a0749,_0x24ea5c,_0x590121,_0x146e70,_0x3c837f,_0x10ca70,_0x681d86){const _0x5b9f1e=_0x49a1e3,_0x5c3f69=this;_0x5c3f69[_0x5b9f1e(0x1d3d)]=_0x146e70[_0x5b9f1e(0x808)](),_0x5c3f69['errors']=[],_0x5c3f69[_0x5b9f1e(0x28d6)]=_0x10ca70,_0x5c3f69[_0x5b9f1e(0x1947)]=_0x3c837f,_0x5c3f69[_0x5b9f1e(0x402)]=_0x681d86,_0x5c3f69[_0x5b9f1e(0x6c2)]={},_0x5c3f69[_0x5b9f1e(0xccc)]=_0x5c3f69['setting']&&_0x5c3f69[_0x5b9f1e(0x28d6)][_0x5b9f1e(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5c3f69[_0x5b9f1e(0x2021)]='WHATSAPP.EDIT_WHATSAPPQUEUE',_0x5c3f69[_0x5b9f1e(0x296d)]=angular[_0x5b9f1e(0x289e)](_0x24ea5c),_0x5c3f69['whatsappQueues']=_0x7a0749,_0x5c3f69[_0x5b9f1e(0x2527)]=![];!_0x5c3f69[_0x5b9f1e(0x296d)]&&(_0x5c3f69[_0x5b9f1e(0x296d)]={'strategy':_0x5b9f1e(0x24e2),'timeout':0xa},_0x5c3f69[_0x5b9f1e(0x2021)]='WHATSAPP.NEW_WHATSAPPQUEUE',_0x5c3f69[_0x5b9f1e(0x2527)]=!![]);_0x5c3f69[_0x5b9f1e(0x11c1)]=_0x11eb87,_0x5c3f69['saveWhatsappQueue']=_0x28d743,_0x5c3f69['deleteWhatsappQueue']=_0x3d98db,_0x5c3f69[_0x5b9f1e(0x1605)]=_0x160c9d,_0x5c3f69[_0x5b9f1e(0x16cb)]=_0x5beeca;function _0x11eb87(){const _0x46813b=_0x5b9f1e;_0x5c3f69['errors']=[],_0x590121[_0x46813b(0x296d)][_0x46813b(0x2479)](_0x5c3f69[_0x46813b(0x296d)])['$promise']['then'](function(_0xad7d44){const _0x12a35d=_0x46813b;_0x5c3f69[_0x12a35d(0x1cf1)][_0x12a35d(0x1891)](_0xad7d44['toJSON']()),_0x33926a[_0x12a35d(0x1339)]({'title':_0x12a35d(0x2650),'msg':_0x5c3f69[_0x12a35d(0x296d)]['name']?_0x5c3f69[_0x12a35d(0x296d)][_0x12a35d(0x2494)]+'\x20has\x20been\x20created!':''}),_0x5beeca(_0xad7d44);})[_0x46813b(0x20cd)](function(_0x174311){const _0x143327=_0x46813b;if(_0x174311[_0x143327(0x1c52)]&&_0x174311['data'][_0x143327(0xbae)]&&_0x174311[_0x143327(0x1c52)][_0x143327(0xbae)][_0x143327(0x1b9e)]){_0x5c3f69['errors']=_0x174311[_0x143327(0x1c52)]['errors']||[{'message':_0x174311['toString'](),'type':'api.whatsappQueue.save'}];for(let _0xfbcf15=0x0;_0xfbcf15<_0x174311[_0x143327(0x1c52)][_0x143327(0xbae)][_0x143327(0x1b9e)];_0xfbcf15+=0x1){_0x33926a[_0x143327(0x1bd0)]({'title':_0x174311['data'][_0x143327(0xbae)][_0xfbcf15]['type'],'msg':_0x174311[_0x143327(0x1c52)]['errors'][_0xfbcf15][_0x143327(0x18ca)]});}}else _0x33926a[_0x143327(0x1bd0)]({'title':_0x174311[_0x143327(0x10b3)]?_0x143327(0x575)+_0x174311['status']+'\x20-\x20'+_0x174311['statusText']:_0x143327(0xf56),'msg':_0x174311[_0x143327(0x1c52)]?JSON[_0x143327(0x2317)](_0x174311['data'][_0x143327(0x18ca)]):_0x174311['toString']()});});}function _0x28d743(){const _0x386cff=_0x5b9f1e;_0x5c3f69[_0x386cff(0xbae)]=[],_0x590121['whatsappQueue'][_0x386cff(0x2603)]({'id':_0x5c3f69['whatsappQueue']['id']},_0x5c3f69[_0x386cff(0x296d)])['$promise'][_0x386cff(0x64a)](function(_0x2efba5){const _0x2e1d0b=_0x386cff,_0x19c35f=_0x28c606()[_0x2e1d0b(0x27bc)](_0x5c3f69[_0x2e1d0b(0x1cf1)],{'id':_0x2efba5['id']});_0x19c35f&&_0x28c606()['merge'](_0x19c35f,_0x28c606()[_0x2e1d0b(0x27bb)](_0x2efba5['toJSON'](),_0x28c606()[_0x2e1d0b(0x1ec6)](_0x19c35f))),_0x33926a['success']({'title':_0x2e1d0b(0x25e3),'msg':_0x5c3f69[_0x2e1d0b(0x296d)][_0x2e1d0b(0x2494)]?_0x5c3f69[_0x2e1d0b(0x296d)][_0x2e1d0b(0x2494)]+_0x2e1d0b(0x271):''}),_0x5beeca(_0x2efba5);})[_0x386cff(0x20cd)](function(_0x4c995f){const _0x2ec7d0=_0x386cff;if(_0x4c995f[_0x2ec7d0(0x1c52)]&&_0x4c995f[_0x2ec7d0(0x1c52)][_0x2ec7d0(0xbae)]&&_0x4c995f[_0x2ec7d0(0x1c52)]['errors'][_0x2ec7d0(0x1b9e)]){_0x5c3f69[_0x2ec7d0(0xbae)]=_0x4c995f[_0x2ec7d0(0x1c52)][_0x2ec7d0(0xbae)]||[{'message':_0x4c995f[_0x2ec7d0(0x2915)](),'type':_0x2ec7d0(0x20ee)}];for(let _0x49c6f0=0x0;_0x49c6f0<_0x4c995f['data'][_0x2ec7d0(0xbae)][_0x2ec7d0(0x1b9e)];_0x49c6f0++){_0x33926a[_0x2ec7d0(0x1bd0)]({'title':_0x4c995f['data'][_0x2ec7d0(0xbae)][_0x49c6f0]['type'],'msg':_0x4c995f[_0x2ec7d0(0x1c52)][_0x2ec7d0(0xbae)][_0x49c6f0][_0x2ec7d0(0x18ca)]});}}else _0x33926a[_0x2ec7d0(0x1bd0)]({'title':_0x4c995f[_0x2ec7d0(0x10b3)]?_0x2ec7d0(0x575)+_0x4c995f[_0x2ec7d0(0x10b3)]+'\x20-\x20'+_0x4c995f[_0x2ec7d0(0x2115)]:_0x2ec7d0(0x20ee),'msg':_0x4c995f['data']?JSON[_0x2ec7d0(0x2317)](_0x4c995f[_0x2ec7d0(0x1c52)][_0x2ec7d0(0x18ca)]):_0x4c995f[_0x2ec7d0(0x2915)]()});});}function _0x3d98db(_0x918131){const _0x7c659=_0x5b9f1e;_0x5c3f69[_0x7c659(0xbae)]=[];const _0xd02af3=_0x5608c7['confirm']()[_0x7c659(0x2021)](_0x7c659(0x103a))['content'](_0x7c659(0x1505))['ariaLabel'](_0x7c659(0x2509))['ok'](_0x7c659(0x2664))[_0x7c659(0x101a)](_0x7c659(0x1dc6))[_0x7c659(0x2283)](_0x918131);_0x5608c7[_0x7c659(0xa60)](_0xd02af3)[_0x7c659(0x64a)](function(){const _0x2ba607=_0x7c659;_0x590121['whatsappQueue'][_0x2ba607(0xabd)]({'id':_0x5c3f69[_0x2ba607(0x296d)]['id']})[_0x2ba607(0x15e7)][_0x2ba607(0x64a)](function(){const _0x1890a6=_0x2ba607;_0x28c606()[_0x1890a6(0x21c7)](_0x5c3f69[_0x1890a6(0x1cf1)],{'id':_0x5c3f69[_0x1890a6(0x296d)]['id']}),_0x33926a['success']({'title':_0x1890a6(0x19d4),'msg':(_0x5c3f69['whatsappQueue'][_0x1890a6(0x2494)]||'whatsappQueue')+_0x1890a6(0x1fa8)}),_0x5beeca(_0x5c3f69[_0x1890a6(0x296d)]);})['catch'](function(_0x4bd0df){const _0xe03ba6=_0x2ba607;if(_0x4bd0df[_0xe03ba6(0x1c52)]&&_0x4bd0df[_0xe03ba6(0x1c52)][_0xe03ba6(0xbae)]&&_0x4bd0df[_0xe03ba6(0x1c52)][_0xe03ba6(0xbae)]['length']){_0x5c3f69[_0xe03ba6(0xbae)]=_0x4bd0df[_0xe03ba6(0x1c52)][_0xe03ba6(0xbae)]||[{'message':_0x4bd0df['toString'](),'type':'api.whatsappQueue.delete'}];for(let _0x45a48e=0x0;_0x45a48e<_0x4bd0df[_0xe03ba6(0x1c52)][_0xe03ba6(0xbae)][_0xe03ba6(0x1b9e)];_0x45a48e++){_0x33926a[_0xe03ba6(0x1bd0)]({'title':_0x4bd0df['data'][_0xe03ba6(0xbae)][_0x45a48e][_0xe03ba6(0x2185)],'msg':_0x4bd0df['data']['errors'][_0x45a48e][_0xe03ba6(0x18ca)]});}}else _0x33926a['error']({'title':_0x4bd0df[_0xe03ba6(0x10b3)]?'API:'+_0x4bd0df[_0xe03ba6(0x10b3)]+'\x20-\x20'+_0x4bd0df[_0xe03ba6(0x2115)]:_0xe03ba6(0x18b1),'msg':_0x4bd0df[_0xe03ba6(0x1c52)]?JSON[_0xe03ba6(0x2317)](_0x4bd0df['data']['message']):_0x4bd0df['message']||_0x4bd0df[_0xe03ba6(0x2915)]()});});},function(){});}function _0x160c9d(_0x5ab5e1){return _0x5ab5e1===null?undefined:new Date(_0x5ab5e1);}function _0x5beeca(_0x18b0cb){const _0x4b042c=_0x5b9f1e;_0x5608c7[_0x4b042c(0x268e)](_0x18b0cb);}}const _0x27a74c=_0xdfc8a4;;_0x514dba['$inject']=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x296d),'whatsappQueues',_0x49a1e3(0x252e),_0x49a1e3(0x298c),_0x49a1e3(0xdcf),'crudPermissions'];function _0x514dba(_0x323bfe,_0x8466e6,_0x6e4621,_0x52fa13,_0x502afa,_0x30623b,_0x3f9f23,_0x4172ef,_0xe5ec62,_0x56eafb){const _0x573f27=_0x49a1e3,_0x38924b=this;_0x38924b[_0x573f27(0x1d3d)]=_0xe5ec62['getCurrentUser'](),_0x38924b[_0x573f27(0x296d)]=_0x502afa,_0x38924b[_0x573f27(0x402)]=_0x56eafb,_0x38924b[_0x573f27(0x252e)]=_0x3f9f23,_0x38924b[_0x573f27(0x23cb)]=[],_0x38924b[_0x573f27(0x13d1)]=[],_0x38924b[_0x573f27(0x1f4f)]=[],_0x38924b[_0x573f27(0x206b)]=[],_0x38924b[_0x573f27(0x24e1)]=[],_0x38924b[_0x573f27(0xe9e)]=![],_0x38924b['onInit']=_0x31f6f5,_0x38924b[_0x573f27(0x4c4)]=_0x5b4d9d,_0x38924b[_0x573f27(0x16cb)]=_0x4dc072,_0x38924b[_0x573f27(0x1eeb)]={'readOnly':!_0x38924b[_0x573f27(0x402)]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x573f27(0x2494),'line1':_0x573f27(0x15c),'line2':[_0x573f27(0x2494),_0x573f27(0xe2f)],'line3':'','labelAll':_0x4172ef[_0x573f27(0x2292)](_0x573f27(0x1da4)),'labelSelected':_0x4172ef['instant']('APP.SELECTED_AGENTS'),'transferCallback':function(){const _0xf4c77c=_0x573f27,_0x209dbb=_0x28c606()[_0xf4c77c(0x1ad)](_0x38924b['startingSelectedItems'],_0x38924b[_0xf4c77c(0x1f4f)],'id');_0x38924b[_0xf4c77c(0xe9e)]=_0x28c606()[_0xf4c77c(0x940)](_0x209dbb)?![]:!![];}};function _0x31f6f5(){const _0x12f8fa=_0x573f27;return _0xe5ec62[_0x12f8fa(0x4de)](_0x12f8fa(0x333))?_0x142224()[_0x12f8fa(0x20cd)](function(_0x572bc8){const _0x3ea41c=_0x12f8fa;_0x6e4621['error']({'title':_0x572bc8[_0x3ea41c(0x10b3)]?'API:'+_0x572bc8[_0x3ea41c(0x10b3)]+_0x3ea41c(0x21db)+_0x572bc8[_0x3ea41c(0x2115)]:_0x3ea41c(0x554),'msg':_0x572bc8[_0x3ea41c(0x10b3)]?JSON['stringify'](_0x572bc8['data']):_0x572bc8[_0x3ea41c(0x2915)]()});}):_0x12e840()[_0x12f8fa(0x64a)](function(_0x34481e){return _0x38924b['section']=_0x34481e,_0x142224();})[_0x12f8fa(0x20cd)](function(_0x18cc74){const _0x1b12b8=_0x12f8fa;_0x6e4621[_0x1b12b8(0x1bd0)]({'title':_0x18cc74['status']?_0x1b12b8(0x575)+_0x18cc74['status']+_0x1b12b8(0x21db)+_0x18cc74[_0x1b12b8(0x2115)]:'SYSTEM:GET_AGENTS','msg':_0x18cc74['status']?JSON[_0x1b12b8(0x2317)](_0x18cc74[_0x1b12b8(0x1c52)]):_0x18cc74[_0x1b12b8(0x2915)]()});});}function _0x12e840(){return _0x8466e6(function(_0x48b68a,_0x5aabc5){const _0x465936=a0_0x4127;_0x52fa13[_0x465936(0x16b2)][_0x465936(0x896)]({'userProfileId':_0x38924b['currentUser']['userProfileId'],'name':_0x465936(0x2132)})[_0x465936(0x15e7)][_0x465936(0x64a)](function(_0x4352b6){const _0x418787=_0x465936,_0x28305a=_0x4352b6&&_0x4352b6[_0x418787(0x28b8)]?_0x4352b6[_0x418787(0x28b8)][0x0]:null;_0x48b68a(_0x28305a);})['catch'](function(_0x4d3543){_0x5aabc5(_0x4d3543);});});}function _0x142224(){return _0x8466e6(function(_0x475f22,_0x28b63b){const _0x4b9c2d=a0_0x4127;return _0xb5378a()['then'](function(_0x7e046e){const _0x212c5e=a0_0x4127;return _0x38924b[_0x212c5e(0x23cb)]=_0x7e046e[_0x212c5e(0x28b8)]?_0x7e046e['rows']:[],_0xe5ec62['hasRole'](_0x212c5e(0x333))?_0x7e046e:_0x38924b['section']?_0x38924b['section'][_0x212c5e(0x11da)]?_0x7e046e:_0x2a388a():null;})[_0x4b9c2d(0x64a)](function(_0x599e70){const _0x268c6b=_0x4b9c2d,_0x248128=_0x599e70&&_0x599e70[_0x268c6b(0x28b8)]?_0x599e70['rows']:[];return _0x38924b['allowedItems']=_0x28c606()['map'](_0x248128,function(_0x420d15){const _0x5f1e02=_0x268c6b;return _0x28c606()['find'](_0x38924b[_0x5f1e02(0x23cb)],{'id':_0xe5ec62[_0x5f1e02(0x4de)](_0x5f1e02(0x333))||_0x38924b[_0x5f1e02(0xa21)][_0x5f1e02(0x11da)]?_0x420d15['id']:_0x420d15['resourceId']});}),_0x38924b[_0x268c6b(0x206b)]=angular[_0x268c6b(0x289e)](_0x38924b[_0x268c6b(0x13d1)]),_0x38924b[_0x268c6b(0x23cb)][_0x268c6b(0x1397)](function(_0x56ec5b){const _0x3dd272=_0x268c6b,_0x4a3c2e=_0x28c606()[_0x3dd272(0x27bc)](_0x38924b[_0x3dd272(0x13d1)],{'id':_0x56ec5b['id']});_0xe5ec62[_0x3dd272(0x4de)](_0x3dd272(0x333))?_0x56ec5b['isValid']=!![]:_0x56ec5b[_0x3dd272(0x6f9)]=typeof _0x4a3c2e!==_0x3dd272(0x19a1)?!![]:![];}),_0x46955d();})[_0x4b9c2d(0x64a)](function(_0x98a21d){const _0x413ed7=_0x4b9c2d,_0xce8727=_0x98a21d&&_0x98a21d[_0x413ed7(0x28b8)]?_0x98a21d[_0x413ed7(0x28b8)]:[];_0x38924b['selectedItems']=_0x28c606()[_0x413ed7(0x1de5)](_0xce8727,function(_0x3725a6){const _0x3bf636=_0x413ed7,_0x351e54=_0x28c606()[_0x3bf636(0x27bc)](_0x38924b[_0x3bf636(0x23cb)],{'id':_0x3725a6['id']});return _0x351e54['penalty']=_0x3725a6[_0x3bf636(0x2403)]?_0x3bf636(0xcff)+_0x3725a6[_0x3bf636(0x2403)][_0x3bf636(0x70f)]:'',_0x351e54[_0x3bf636(0xe2f)]=typeof _0x3725a6[_0x3bf636(0xe2f)]!==_0x3bf636(0x19a1)?'<'+_0x3725a6[_0x3bf636(0xe2f)]+'>':'',_0x351e54;}),_0x38924b['startingSelectedItems']=angular[_0x413ed7(0x289e)](_0x38924b[_0x413ed7(0x1f4f)]),_0x38924b[_0x413ed7(0x1eeb)][_0x413ed7(0x1f4f)]=_0x38924b['selectedItems'],_0x38924b[_0x413ed7(0x1eeb)]['items']=_0x28c606()[_0x413ed7(0x23e5)](_0x38924b['allowedItems'],_0x38924b[_0x413ed7(0x1eeb)]['selectedItems'],'id'),_0x475f22();})[_0x4b9c2d(0x20cd)](function(_0xd5a2a9){_0x28b63b(_0xd5a2a9);});});}function _0x2a388a(){return _0x8466e6(function(_0x430148,_0x5cd45f){const _0x47bd68=a0_0x4127;return _0x52fa13[_0x47bd68(0x1617)]['get']({'sectionId':_0x38924b['section']['id'],'nolimit':!![]})['$promise'][_0x47bd68(0x64a)](function(_0x4682b2){_0x430148(_0x4682b2);})[_0x47bd68(0x20cd)](function(_0x40e652){_0x5cd45f(_0x40e652);});});}function _0x46955d(){return _0x8466e6(function(_0x2f9c06,_0x26c4cb){const _0x2c8136=a0_0x4127;return _0x52fa13[_0x2c8136(0x296d)][_0x2c8136(0xa10)]({'id':_0x38924b[_0x2c8136(0x296d)]['id'],'fields':_0x2c8136(0x2105),'nolimit':!![],'role':_0x2c8136(0x11ae)})[_0x2c8136(0x15e7)][_0x2c8136(0x64a)](function(_0x36fa8d){_0x2f9c06(_0x36fa8d);})[_0x2c8136(0x20cd)](function(_0x2a6c04){_0x26c4cb(_0x2a6c04);});});}function _0xb5378a(){return _0x8466e6(function(_0x4f1a37,_0x3018d7){const _0x26d5df=a0_0x4127;return _0x52fa13[_0x26d5df(0x2e8)]['get']({'fields':_0x26d5df(0x2105),'nolimit':!![],'role':_0x26d5df(0x11ae)})[_0x26d5df(0x15e7)][_0x26d5df(0x64a)](function(_0x4e46ed){_0x4f1a37(_0x4e46ed);})[_0x26d5df(0x20cd)](function(_0x49f43f){_0x3018d7(_0x49f43f);});});}function _0xc6d7bf(_0x2e72eb){return _0x8466e6(function(_0x40dbb7,_0x395109){const _0x5e9152=a0_0x4127;_0x28c606()[_0x5e9152(0x940)](_0x2e72eb)?_0x40dbb7():_0x52fa13[_0x5e9152(0x296d)][_0x5e9152(0x1575)]({'id':_0x38924b[_0x5e9152(0x296d)]['id'],'ids':_0x28c606()[_0x5e9152(0x1de5)](_0x2e72eb,'id')})[_0x5e9152(0x15e7)]['then'](function(){_0x40dbb7();})[_0x5e9152(0x20cd)](function(_0x1a5aaa){_0x395109(_0x1a5aaa);});});}function _0x3a4f00(_0x52ba2a){return _0x8466e6(function(_0x42b183,_0xc8cc9c){const _0x1ccae8=a0_0x4127;_0x28c606()[_0x1ccae8(0x940)](_0x52ba2a)?_0x42b183():_0x52fa13[_0x1ccae8(0x296d)]['removeAgents']({'id':_0x38924b[_0x1ccae8(0x296d)]['id'],'ids':_0x28c606()[_0x1ccae8(0x1de5)](_0x52ba2a,'id')})[_0x1ccae8(0x15e7)][_0x1ccae8(0x64a)](function(){_0x42b183();})['catch'](function(_0x2643ba){_0xc8cc9c(_0x2643ba);});});}function _0x5b4d9d(){const _0x487088=_0x573f27,_0x40abfa=_0x28c606()[_0x487088(0x23e5)](_0x38924b[_0x487088(0x24e1)],_0x38924b[_0x487088(0x1f4f)],'id'),_0x59e97b=_0x28c606()[_0x487088(0x23e5)](_0x38924b[_0x487088(0x1f4f)],_0x38924b[_0x487088(0x24e1)],'id');return _0x3a4f00(_0x40abfa)['then'](function(){return _0xc6d7bf(_0x59e97b);})[_0x487088(0x64a)](function(){const _0x5a5727=_0x487088;_0x38924b[_0x5a5727(0xe9e)]=![],_0x38924b['startingAllowedItems']=angular[_0x5a5727(0x289e)](_0x38924b['allowedItems']),_0x38924b['startingSelectedItems']=angular[_0x5a5727(0x289e)](_0x38924b['selectedItems']),_0x6e4621['success']({'title':_0x5a5727(0x24d6),'msg':_0x5a5727(0x1db)});})['catch'](function(_0x3585fe){const _0x30027d=_0x487088;_0x6e4621[_0x30027d(0x1bd0)]({'title':_0x3585fe['status']?_0x30027d(0x575)+_0x3585fe[_0x30027d(0x10b3)]+'\x20-\x20'+_0x3585fe[_0x30027d(0x2115)]:_0x30027d(0x1226),'msg':_0x3585fe[_0x30027d(0x10b3)]?JSON['stringify'](_0x3585fe['data']):_0x3585fe[_0x30027d(0x2915)]()});});}function _0x4dc072(){const _0x10eba0=_0x573f27;_0x323bfe[_0x10eba0(0x268e)]();}}const _0x22db8c=_0x514dba;;_0x1459a7[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x212a),'$q',_0x49a1e3(0x680),_0x49a1e3(0xa19),_0x49a1e3(0x296d),_0x49a1e3(0x298c),_0x49a1e3(0xdcf),_0x49a1e3(0x402)];function _0x1459a7(_0x4913a8,_0x33ecfc,_0x48dc14,_0x5b19cb,_0x4b2254,_0x3e58c0,_0x2351d1,_0x180345){const _0x235356=_0x49a1e3,_0x18e2cf=this;_0x18e2cf[_0x235356(0x1d3d)]=_0x2351d1[_0x235356(0x808)](),_0x18e2cf[_0x235356(0x296d)]=_0x4b2254,_0x18e2cf[_0x235356(0x402)]=_0x180345,_0x18e2cf['items']=[],_0x18e2cf[_0x235356(0x13d1)]=[],_0x18e2cf[_0x235356(0x1f4f)]=[],_0x18e2cf[_0x235356(0x206b)]=[],_0x18e2cf['startingSelectedItems']=[],_0x18e2cf[_0x235356(0xe9e)]=![],_0x18e2cf[_0x235356(0x1eeb)]={'readOnly':!_0x18e2cf[_0x235356(0x402)][_0x235356(0xd86)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x235356(0x2494),'line1':'name','line2':'','line3':'','labelAll':_0x3e58c0[_0x235356(0x2292)](_0x235356(0x1ef1)),'labelSelected':_0x3e58c0[_0x235356(0x2292)]('APP.SELECTED_TEAMS'),'transferCallback':function(){const _0x5db894=_0x235356,_0x24cfb5=_0x28c606()[_0x5db894(0x1ad)](_0x18e2cf[_0x5db894(0x24e1)],_0x18e2cf['selectedItems'],'id');_0x18e2cf[_0x5db894(0xe9e)]=_0x28c606()[_0x5db894(0x940)](_0x24cfb5)?![]:!![];}},_0x18e2cf[_0x235356(0x2483)]=_0x2ced98,_0x18e2cf['saveTeams']=_0x478056,_0x18e2cf['closeDialog']=_0x223f26;function _0x2ced98(){const _0x4f2634=_0x235356;return _0x2351d1['hasRole'](_0x4f2634(0x333))?_0x2fa1af()[_0x4f2634(0x20cd)](function(_0x259ba4){const _0x5ecd65=_0x4f2634;_0x48dc14[_0x5ecd65(0x1bd0)]({'title':_0x259ba4[_0x5ecd65(0x10b3)]?_0x5ecd65(0x575)+_0x259ba4[_0x5ecd65(0x10b3)]+_0x5ecd65(0x21db)+_0x259ba4[_0x5ecd65(0x2115)]:_0x5ecd65(0x1542),'msg':_0x259ba4[_0x5ecd65(0x10b3)]?JSON['stringify'](_0x259ba4[_0x5ecd65(0x1c52)]):_0x259ba4['toString']()});}):_0x5e5744()['then'](function(_0x22d92b){return _0x18e2cf['section']=_0x22d92b,_0x2fa1af();})['catch'](function(_0x216b13){const _0x23e1e9=_0x4f2634;_0x48dc14[_0x23e1e9(0x1bd0)]({'title':_0x216b13['status']?_0x23e1e9(0x575)+_0x216b13[_0x23e1e9(0x10b3)]+_0x23e1e9(0x21db)+_0x216b13[_0x23e1e9(0x2115)]:'SYSTEM:GET_TEAMS','msg':_0x216b13[_0x23e1e9(0x10b3)]?JSON[_0x23e1e9(0x2317)](_0x216b13[_0x23e1e9(0x1c52)]):_0x216b13[_0x23e1e9(0x2915)]()});});}function _0x5e5744(){return _0x33ecfc(function(_0x25a7ee,_0x4e7a2e){const _0x19bf27=a0_0x4127;_0x5b19cb[_0x19bf27(0x16b2)][_0x19bf27(0x896)]({'userProfileId':_0x18e2cf[_0x19bf27(0x1d3d)][_0x19bf27(0x21ac)],'name':'Teams'})['$promise'][_0x19bf27(0x64a)](function(_0x4ece34){const _0x46d294=_0x19bf27,_0x8389e6=_0x4ece34&&_0x4ece34['rows']?_0x4ece34[_0x46d294(0x28b8)][0x0]:null;_0x25a7ee(_0x8389e6);})[_0x19bf27(0x20cd)](function(_0x10b98c){_0x4e7a2e(_0x10b98c);});});}function _0x2fa1af(){return _0x33ecfc(function(_0x6e2554,_0x247b83){const _0x3a2579=a0_0x4127;return _0xfffd2c()[_0x3a2579(0x64a)](function(_0xda20fe){const _0x2d23ad=_0x3a2579;return _0x18e2cf[_0x2d23ad(0x23cb)]=_0xda20fe[_0x2d23ad(0x28b8)]?_0xda20fe[_0x2d23ad(0x28b8)]:[],_0x2351d1[_0x2d23ad(0x4de)](_0x2d23ad(0x333))?_0xda20fe:_0x18e2cf[_0x2d23ad(0xa21)]?_0x18e2cf[_0x2d23ad(0xa21)][_0x2d23ad(0x11da)]?_0xda20fe:_0x4d34df():null;})[_0x3a2579(0x64a)](function(_0xec2597){const _0x390518=_0x3a2579,_0x2a468c=_0xec2597&&_0xec2597[_0x390518(0x28b8)]?_0xec2597[_0x390518(0x28b8)]:[];return _0x18e2cf[_0x390518(0x13d1)]=_0x28c606()['map'](_0x2a468c,function(_0x1e4383){const _0x1ecd0c=_0x390518;return _0x28c606()['find'](_0x18e2cf[_0x1ecd0c(0x23cb)],{'id':_0x2351d1['hasRole'](_0x1ecd0c(0x333))||_0x18e2cf[_0x1ecd0c(0xa21)][_0x1ecd0c(0x11da)]?_0x1e4383['id']:_0x1e4383[_0x1ecd0c(0x145)]});}),_0x18e2cf[_0x390518(0x23cb)][_0x390518(0x1397)](function(_0x4843d4){const _0x3690c5=_0x390518,_0x5060fd=_0x28c606()[_0x3690c5(0x27bc)](_0x18e2cf[_0x3690c5(0x13d1)],{'id':_0x4843d4['id']});_0x2351d1[_0x3690c5(0x4de)](_0x3690c5(0x333))?_0x4843d4[_0x3690c5(0x6f9)]=!![]:_0x4843d4[_0x3690c5(0x6f9)]=typeof _0x5060fd!==_0x3690c5(0x19a1)?!![]:![];}),_0x232428();})[_0x3a2579(0x64a)](function(_0x581202){const _0x12fe59=_0x3a2579,_0x12de53=_0x581202&&_0x581202[_0x12fe59(0x28b8)]?_0x581202['rows']:[];_0x18e2cf[_0x12fe59(0x1f4f)]=_0x28c606()[_0x12fe59(0x1de5)](_0x12de53,function(_0x1abd22){const _0x594e0e=_0x12fe59;return _0x28c606()[_0x594e0e(0x27bc)](_0x18e2cf[_0x594e0e(0x23cb)],{'id':_0x1abd22['id']});}),_0x18e2cf['startingSelectedItems']=angular[_0x12fe59(0x289e)](_0x18e2cf[_0x12fe59(0x1f4f)]),_0x18e2cf['dualMultiselectOptions'][_0x12fe59(0x1f4f)]=_0x18e2cf[_0x12fe59(0x1f4f)],_0x18e2cf[_0x12fe59(0x1eeb)][_0x12fe59(0x23cb)]=_0x28c606()[_0x12fe59(0x23e5)](_0x18e2cf[_0x12fe59(0x13d1)],_0x18e2cf[_0x12fe59(0x1eeb)][_0x12fe59(0x1f4f)],'id'),_0x6e2554();})[_0x3a2579(0x20cd)](function(_0x4333c6){_0x247b83(_0x4333c6);});});}function _0x4d34df(){return _0x33ecfc(function(_0x47dd69,_0x28eb62){const _0x22c64e=a0_0x4127;return _0x5b19cb[_0x22c64e(0x1617)][_0x22c64e(0x896)]({'sectionId':_0x18e2cf[_0x22c64e(0xa21)]['id'],'nolimit':!![]})[_0x22c64e(0x15e7)][_0x22c64e(0x64a)](function(_0x172cc8){_0x47dd69(_0x172cc8);})[_0x22c64e(0x20cd)](function(_0x534469){_0x28eb62(_0x534469);});});}function _0x232428(){return _0x33ecfc(function(_0x2b4201,_0x532d8d){const _0x377b7e=a0_0x4127;return _0x5b19cb[_0x377b7e(0x296d)][_0x377b7e(0x151d)]({'id':_0x18e2cf['whatsappQueue']['id'],'fields':'id,name','nolimit':!![]})['$promise']['then'](function(_0x1b2a45){_0x2b4201(_0x1b2a45);})[_0x377b7e(0x20cd)](function(_0x3019b1){_0x532d8d(_0x3019b1);});});}function _0xfffd2c(){return _0x33ecfc(function(_0x180aea,_0x369371){const _0x57fd0e=a0_0x4127;return _0x5b19cb[_0x57fd0e(0x15ea)][_0x57fd0e(0x896)]({'fields':'id,name','nolimit':!![]})[_0x57fd0e(0x15e7)][_0x57fd0e(0x64a)](function(_0xbcd06a){_0x180aea(_0xbcd06a);})[_0x57fd0e(0x20cd)](function(_0xe5d2b0){_0x369371(_0xe5d2b0);});});}function _0xc0bb(_0x1407cb){return _0x33ecfc(function(_0x46423a,_0x189762){const _0x357ebc=a0_0x4127;_0x28c606()[_0x357ebc(0x940)](_0x1407cb)?_0x46423a():_0x5b19cb[_0x357ebc(0x296d)][_0x357ebc(0x1858)]({'id':_0x18e2cf['whatsappQueue']['id'],'ids':_0x28c606()['map'](_0x1407cb,'id')})[_0x357ebc(0x15e7)][_0x357ebc(0x64a)](function(){_0x46423a();})[_0x357ebc(0x20cd)](function(_0x55ad4a){_0x189762(_0x55ad4a);});});}function _0x424196(_0x3d0ab9){return _0x33ecfc(function(_0x31b283,_0x1e1ec4){const _0xcab00b=a0_0x4127;_0x28c606()[_0xcab00b(0x940)](_0x3d0ab9)?_0x31b283():_0x5b19cb[_0xcab00b(0x296d)][_0xcab00b(0x6d5)]({'id':_0x18e2cf[_0xcab00b(0x296d)]['id'],'ids':_0x28c606()[_0xcab00b(0x1de5)](_0x3d0ab9,'id')})[_0xcab00b(0x15e7)][_0xcab00b(0x64a)](function(){_0x31b283();})[_0xcab00b(0x20cd)](function(_0x19a6a5){_0x1e1ec4(_0x19a6a5);});});}function _0x478056(){const _0x3222de=_0x235356,_0x187bc7=_0x28c606()['differenceBy'](_0x18e2cf[_0x3222de(0x24e1)],_0x18e2cf[_0x3222de(0x1f4f)],'id'),_0x2f34ed=_0x28c606()['differenceBy'](_0x18e2cf[_0x3222de(0x1f4f)],_0x18e2cf[_0x3222de(0x24e1)],'id');return _0x424196(_0x187bc7)[_0x3222de(0x64a)](function(){return _0xc0bb(_0x2f34ed);})['then'](function(){const _0x1c17e3=_0x3222de;_0x18e2cf['pendingChanges']=![],_0x18e2cf['startingAllowedItems']=angular['copy'](_0x18e2cf[_0x1c17e3(0x13d1)]),_0x18e2cf[_0x1c17e3(0x24e1)]=angular[_0x1c17e3(0x289e)](_0x18e2cf[_0x1c17e3(0x1f4f)]),_0x48dc14[_0x1c17e3(0x1339)]({'title':'SUCCESS','msg':_0x1c17e3(0x1932)});})[_0x3222de(0x20cd)](function(_0x59f323){const _0x4a0b80=_0x3222de;_0x48dc14[_0x4a0b80(0x1bd0)]({'title':_0x59f323[_0x4a0b80(0x10b3)]?'API:'+_0x59f323[_0x4a0b80(0x10b3)]+_0x4a0b80(0x21db)+_0x59f323[_0x4a0b80(0x2115)]:_0x4a0b80(0x1226),'msg':_0x59f323['status']?JSON[_0x4a0b80(0x2317)](_0x59f323[_0x4a0b80(0x1c52)]):_0x59f323[_0x4a0b80(0x2915)]()});});}function _0x223f26(){const _0x281e3e=_0x235356;_0x4913a8[_0x281e3e(0x268e)]();}}const _0x1d1fd1=_0x1459a7;;const _0x1d3b6d=_0x2e4a48['p']+'src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/teamadd/teamadd.html/teamadd.html';;_0xf366f6[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0x1155),'$mdDialog',_0x49a1e3(0x1373),'$translate',_0x49a1e3(0x1947),_0x49a1e3(0x28d6),_0x49a1e3(0xa19),_0x49a1e3(0x680),_0x49a1e3(0xdcf),_0x49a1e3(0x296d),_0x49a1e3(0x16b2)];function _0xf366f6(_0x299f,_0x4e8963,_0x4219db,_0x5ecfc9,_0x4dc303,_0x24df1f,_0x50d7b9,_0x13f086,_0x274d06,_0x4f19fe,_0x26d1ff,_0x26f238){const _0x39c306=_0x49a1e3,_0x177d5b=this;_0x177d5b[_0x39c306(0x1d3d)]=_0x4f19fe[_0x39c306(0x808)](),_0x177d5b[_0x39c306(0x1947)]=_0x24df1f,_0x177d5b['setting']=_0x50d7b9,_0x177d5b[_0x39c306(0xccc)]=_0x177d5b[_0x39c306(0x28d6)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x177d5b[_0x39c306(0xb36)]=_0x4e8963[_0x39c306(0x48e)]()+'://'+_0x4e8963[_0x39c306(0x1e5d)](),_0x177d5b['whatsappQueue']=_0x26d1ff||_0x299f[_0x39c306(0x1b48)]['whatsappQueue']||{},_0x177d5b[_0x39c306(0x16b2)]=_0x26f238&&_0x26f238[_0x39c306(0xb90)]==0x1?_0x26f238['rows'][0x0]:null,_0x177d5b[_0x39c306(0x402)]=_0x4f19fe['parseCrudPermissions'](_0x177d5b['userProfileSection']?_0x177d5b[_0x39c306(0x16b2)]['crudPermissions']:null),_0x177d5b[_0x39c306(0x6c2)]={},_0x177d5b[_0x39c306(0x197c)]=_0x299f[_0x39c306(0x1b48)][_0x39c306(0x1222)]||0x0,_0x177d5b[_0x39c306(0x1a72)]=_0x470db0,_0x177d5b[_0x39c306(0x104a)]=_0x290313,_0x177d5b['alert']=_0x274d06[_0x39c306(0x772)],_0x177d5b[_0x39c306(0x8bd)]=_0x43db68,_0x177d5b[_0x39c306(0x1fc8)]=_0x57fa30;function _0x470db0(_0x33c9f5,_0x1be397){const _0x31974c=_0x39c306;_0x4219db['show']({'controller':_0x31974c(0xca9),'controllerAs':'vm','templateUrl':_0x1d3b6d,'parent':angular['element'](_0x5ecfc9[_0x31974c(0xb49)]),'targetEvent':_0x1be397,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x33c9f5,'whatsappQueues':_0x177d5b['whatsappQueues']?_0x177d5b['whatsappQueues']['rows']:[],'crudPermissions':_0x177d5b[_0x31974c(0x402)]}});}function _0x290313(_0x355954,_0x1e329d){const _0x431ba2=_0x39c306;_0x4219db[_0x431ba2(0xa60)]({'controller':'WhatsappQueueagentaddController','controllerAs':'vm','templateUrl':_0x4a14f7,'parent':angular[_0x431ba2(0x1f81)](_0x5ecfc9[_0x431ba2(0xb49)]),'targetEvent':_0x1e329d,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x355954,'whatsappQueues':_0x177d5b[_0x431ba2(0x1cf1)]?_0x177d5b[_0x431ba2(0x1cf1)][_0x431ba2(0x28b8)]:[],'crudPermissions':_0x177d5b[_0x431ba2(0x402)],'realtime':![]}});}function _0x43db68(){const _0x9b4a0b=_0x39c306;_0x299f['go']('app.whatsapp.whatsappQueues',{},{'reload':_0x9b4a0b(0x199b)});}function _0x57fa30(){const _0x92db88=_0x39c306;_0x13f086[_0x92db88(0x296d)][_0x92db88(0x2603)]({'id':_0x177d5b[_0x92db88(0x296d)]['id']},_0x177d5b[_0x92db88(0x296d)])[_0x92db88(0x15e7)][_0x92db88(0x64a)](function(){const _0x2b55d2=_0x92db88;_0x274d06['success']({'title':_0x2b55d2(0x16a9),'msg':_0x177d5b[_0x2b55d2(0x296d)][_0x2b55d2(0x2494)]?_0x177d5b[_0x2b55d2(0x296d)][_0x2b55d2(0x2494)]+_0x2b55d2(0x2032):''});})[_0x92db88(0x20cd)](function(_0x5d9afb){const _0x4bdbf0=_0x92db88;_0x274d06[_0x4bdbf0(0x1bd0)]({'title':_0x5d9afb[_0x4bdbf0(0x10b3)]?_0x4bdbf0(0x575)+_0x5d9afb[_0x4bdbf0(0x10b3)]+'\x20-\x20'+_0x5d9afb[_0x4bdbf0(0x2115)]:_0x4bdbf0(0x1a71),'msg':_0x5d9afb[_0x4bdbf0(0x1c52)]?JSON[_0x4bdbf0(0x2317)](_0x5d9afb[_0x4bdbf0(0x1c52)]):_0x5d9afb[_0x4bdbf0(0x2915)]()});});}}const _0x2d659d=_0xf366f6;;_0x2e1e6b[_0x49a1e3(0x1e73)]=['$scope','$window',_0x49a1e3(0x77f),_0x49a1e3(0x2899),'$mdDialog','$document',_0x49a1e3(0x20d4),_0x49a1e3(0x298c),_0x49a1e3(0x1cf1),'userProfile',_0x49a1e3(0x16b2),'api',_0x49a1e3(0x1214),'toasty','Auth',_0x49a1e3(0x1947),_0x49a1e3(0x28d6)];function _0x2e1e6b(_0x2cba62,_0x4bbd17,_0x4758b4,_0x3a8d0a,_0x27fedc,_0x5598b1,_0x1020b6,_0x5dadec,_0x2a0113,_0x4e23a1,_0x2307a6,_0x20a1e2,_0xa59b48,_0x46aaae,_0x32f412,_0x747ec2,_0x47a775){const _0x4f93d9=_0x49a1e3,_0x2b646e=this;_0x2b646e[_0x4f93d9(0x1947)]=_0x747ec2,_0x2b646e[_0x4f93d9(0x28d6)]=_0x47a775,_0x2b646e[_0x4f93d9(0x1d3d)]=_0x32f412[_0x4f93d9(0x808)](),_0x2b646e[_0x4f93d9(0x1cf1)]=_0x2a0113||{'count':0x0,'rows':[]},_0x2b646e[_0x4f93d9(0x16a8)]=_0x4e23a1,_0x2b646e[_0x4f93d9(0x16b2)]=_0x2307a6&&_0x2307a6[_0x4f93d9(0xb90)]==0x1?_0x2307a6['rows'][0x0]:null,_0x2b646e[_0x4f93d9(0x402)]=_0x32f412[_0x4f93d9(0xa7e)](_0x2b646e[_0x4f93d9(0x16b2)]?_0x2b646e[_0x4f93d9(0x16b2)][_0x4f93d9(0x402)]:null),_0x2b646e[_0x4f93d9(0x185d)]=_0x4f93d9(0x1cf1),_0x2b646e[_0x4f93d9(0x300)]='',_0x2b646e[_0x4f93d9(0x2748)]=null,_0x2b646e[_0x4f93d9(0xadc)]=[],_0x2b646e['query']={'fields':_0x4f93d9(0x1649),'sort':'-updatedAt','channel':'whatsapp','limit':0xa,'page':0x1},_0x2b646e[_0x4f93d9(0xc25)]=_0x28c606()[_0x4f93d9(0x161e)]([{'option':_0x4f93d9(0x618),'value':_0x4f93d9(0x2342)},{'option':_0x4f93d9(0x773),'value':_0x4f93d9(0x1dfa)}],function(_0x2ba5de){const _0x41b8ec=_0x4f93d9;return _0x28c606()[_0x41b8ec(0x1353)](_0x2ba5de['value'],new RegExp('\x27','g'),'');}),_0x2b646e['editstate']=_0x58a5a7,_0x2b646e[_0x4f93d9(0x1a72)]=_0x37742e,_0x2b646e[_0x4f93d9(0x104a)]=_0x41c814,_0x2b646e[_0x4f93d9(0x1262)]=_0x3c4e61,_0x2b646e[_0x4f93d9(0x93f)]=_0x48f9e2,_0x2b646e['success']=_0x3f7199,_0x2b646e[_0x4f93d9(0x243b)]=_0x4bae1b,_0x2b646e[_0x4f93d9(0xf7d)]=_0x174634,_0x2b646e['deleteWhatsappQueue']=_0x13eb27,_0x2b646e[_0x4f93d9(0x1afe)]=_0xea5e98,_0x2b646e[_0x4f93d9(0x28d2)]=_0x4ff35c,_0x2b646e[_0x4f93d9(0x2c2)]=_0x17af70,_0x2b646e[_0x4f93d9(0x22b8)]=_0x227bae;function _0x58a5a7(_0x15a15c){const _0x1cbcf=_0x4f93d9;_0x4758b4['go'](_0x1cbcf(0x26a),{'id':_0x15a15c['id'],'whatsappQueue':_0x15a15c,'crudPermissions':_0x2b646e[_0x1cbcf(0x402)]});}function _0x37742e(_0x3bd219,_0x1b0c89){const _0x371106=_0x4f93d9;_0x27fedc[_0x371106(0xa60)]({'controller':_0x371106(0xca9),'controllerAs':'vm','templateUrl':_0x1d3b6d,'parent':angular[_0x371106(0x1f81)](_0x5598b1[_0x371106(0xb49)]),'targetEvent':_0x1b0c89,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x3bd219,'whatsappQueues':_0x2b646e[_0x371106(0x1cf1)]?_0x2b646e['whatsappQueues']['rows']:[],'crudPermissions':_0x2b646e[_0x371106(0x402)]}});}function _0x41c814(_0x376a64,_0x1e14b2){const _0x4e09d0=_0x4f93d9;_0x27fedc[_0x4e09d0(0xa60)]({'controller':_0x4e09d0(0x3c0),'controllerAs':'vm','templateUrl':_0x4a14f7,'parent':angular['element'](_0x5598b1['body']),'targetEvent':_0x1e14b2,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x376a64,'whatsappQueues':_0x2b646e['whatsappQueues']?_0x2b646e['whatsappQueues'][_0x4e09d0(0x28b8)]:[],'crudPermissions':_0x2b646e[_0x4e09d0(0x402)],'realtime':![]}});}function _0x3c4e61(_0xdb45be,_0x263b4b){const _0x299305=_0x4f93d9,_0x412dd5=_0x27fedc[_0x299305(0x856)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x28c606()['startCase'](_0x299305(0x296d))+'?')['htmlContent'](_0x299305(0x50b)+(_0xdb45be[_0x299305(0x2494)]||'whatsappQueue')+_0x299305(0x26d0)+'\x20will\x20be\x20deleted.')[_0x299305(0x213e)](_0x299305(0x6e1))['targetEvent'](_0x263b4b)['ok']('OK')['cancel'](_0x299305(0x18fd));_0x27fedc[_0x299305(0xa60)](_0x412dd5)[_0x299305(0x64a)](function(){_0x13eb27(_0xdb45be);},function(){const _0x523f84=_0x299305;console[_0x523f84(0x9b4)]('CANCEL');});}function _0x48f9e2(){const _0x51e673=_0x4f93d9;if(_0x32f412['hasRole'](_0x51e673(0x333)))_0x4758b4['go']('app.whatsapp.realtime.queues',{});else return _0x20a1e2[_0x51e673(0x16b2)][_0x51e673(0x896)]({'userProfileId':_0x32f412[_0x51e673(0x808)]()[_0x51e673(0x21ac)],'sectionId':0x83e})[_0x51e673(0x15e7)][_0x51e673(0x64a)](function(_0x14387a){const _0x1f4da1=_0x51e673,_0x3e3863=_0x14387a&&_0x14387a[_0x1f4da1(0x28b8)]?_0x14387a[_0x1f4da1(0x28b8)][0x0]:null;_0x3e3863&&_0x3e3863[_0x1f4da1(0xe49)]?_0x4758b4['go']('app.whatsapp.realtime.queues',{}):_0x46aaae[_0x1f4da1(0x772)]({'title':_0x5dadec[_0x1f4da1(0x2292)](_0x1f4da1(0x111a)),'msg':_0x5dadec[_0x1f4da1(0x2292)](_0x1f4da1(0x229))});})[_0x51e673(0x20cd)](function(_0x30cbb6){const _0x2ae9ac=_0x51e673;_0x46aaae[_0x2ae9ac(0x1bd0)]({'title':_0x30cbb6[_0x2ae9ac(0x10b3)]?_0x2ae9ac(0x575)+_0x30cbb6['status']+_0x2ae9ac(0x21db)+_0x30cbb6[_0x2ae9ac(0x2115)]:_0x2ae9ac(0x942),'msg':_0x30cbb6[_0x2ae9ac(0x10b3)]?JSON['stringify'](_0x30cbb6[_0x2ae9ac(0x1c52)]):_0x30cbb6['toString']()});});}let _0x5a2d8b=!![],_0x12d241=0x1;_0x2cba62[_0x4f93d9(0xc62)](_0x4f93d9(0x1cb9),function(_0x307817,_0xfcc177){const _0x27b58b=_0x4f93d9;_0x5a2d8b?_0x1020b6(function(){_0x5a2d8b=![];}):(!_0xfcc177&&(_0x12d241=_0x2b646e[_0x27b58b(0x289a)]['page']),_0x307817!==_0xfcc177&&(_0x2b646e['query'][_0x27b58b(0xc72)]=0x1),!_0x307817&&(_0x2b646e['query'][_0x27b58b(0xc72)]=_0x12d241),_0x2b646e[_0x27b58b(0x243b)]());});function _0x3f7199(_0x4af35c){const _0x2c9f80=_0x4f93d9;_0x2b646e[_0x2c9f80(0x1cf1)]=_0x4af35c||{'count':0x0,'rows':[]};}function _0x4bae1b(){const _0x3683b3=_0x4f93d9;_0x2b646e[_0x3683b3(0x289a)]['offset']=(_0x2b646e['query'][_0x3683b3(0xc72)]-0x1)*_0x2b646e[_0x3683b3(0x289a)][_0x3683b3(0x25bb)],_0x32f412[_0x3683b3(0x4de)](_0x3683b3(0x333))?_0x2b646e[_0x3683b3(0x1713)]=_0x20a1e2[_0x3683b3(0x296d)][_0x3683b3(0x896)](_0x2b646e['query'],_0x3f7199)[_0x3683b3(0x15e7)]:(_0x2b646e[_0x3683b3(0x289a)]['id']=_0x2b646e[_0x3683b3(0x16a8)]['id'],_0x2b646e[_0x3683b3(0x289a)][_0x3683b3(0xa21)]=_0x3683b3(0xd29),_0x2b646e[_0x3683b3(0x1713)]=_0x20a1e2[_0x3683b3(0x16a8)]['getResources'](_0x2b646e[_0x3683b3(0x289a)],_0x3f7199)[_0x3683b3(0x15e7)]);}function _0x174634(_0xfbcda1,_0x459b6c){const _0x32ec50=_0x4f93d9;_0x27fedc[_0x32ec50(0xa60)]({'controller':_0x32ec50(0x2027),'controllerAs':'vm','templateUrl':_0x46e13e,'parent':angular[_0x32ec50(0x1f81)](_0x5598b1[_0x32ec50(0xb49)]),'targetEvent':_0xfbcda1,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x459b6c,'whatsappQueues':_0x2b646e[_0x32ec50(0x1cf1)][_0x32ec50(0x28b8)],'license':_0x2b646e[_0x32ec50(0x1947)],'setting':_0x2b646e['setting'],'crudPermissions':_0x2b646e['crudPermissions']}});}function _0x13eb27(_0x954230){const _0x6b10af=_0x4f93d9;_0x20a1e2[_0x6b10af(0x296d)][_0x6b10af(0xabd)]({'id':_0x954230['id']})[_0x6b10af(0x15e7)][_0x6b10af(0x64a)](function(){const _0x227a82=_0x6b10af;_0x28c606()[_0x227a82(0x21c7)](_0x2b646e[_0x227a82(0x1cf1)][_0x227a82(0x28b8)],{'id':_0x954230['id']}),_0x2b646e['whatsappQueues'][_0x227a82(0xb90)]-=0x1,!_0x2b646e['whatsappQueues'][_0x227a82(0x28b8)][_0x227a82(0x1b9e)]&&_0x2b646e[_0x227a82(0x243b)](),_0x46aaae[_0x227a82(0x1339)]({'title':_0x28c606()['startCase'](_0x227a82(0x1d25))+_0x227a82(0x2502),'msg':_0x954230[_0x227a82(0x2494)]?_0x954230['name']+_0x227a82(0x1fa8):''});})['catch'](function(_0x287403){const _0x15593e=_0x6b10af;if(_0x287403[_0x15593e(0x1c52)]&&_0x287403[_0x15593e(0x1c52)][_0x15593e(0xbae)]&&_0x287403[_0x15593e(0x1c52)][_0x15593e(0xbae)][_0x15593e(0x1b9e)]){_0x2b646e[_0x15593e(0xbae)]=_0x287403[_0x15593e(0x1c52)][_0x15593e(0xbae)]||[{'message':_0x287403[_0x15593e(0x2915)](),'type':_0x15593e(0x1036)}];for(let _0x568bf2=0x0;_0x568bf2<_0x287403[_0x15593e(0x1c52)][_0x15593e(0xbae)]['length'];_0x568bf2++){_0x46aaae[_0x15593e(0x1bd0)]({'title':_0x287403[_0x15593e(0x1c52)]['errors'][_0x568bf2][_0x15593e(0x2185)],'msg':_0x287403[_0x15593e(0x1c52)][_0x15593e(0xbae)][_0x568bf2]['message']});}}else _0x46aaae[_0x15593e(0x1bd0)]({'title':_0x287403['status']?_0x15593e(0x575)+_0x287403[_0x15593e(0x10b3)]+'\x20-\x20'+_0x287403[_0x15593e(0x2115)]:_0x15593e(0x1036),'msg':_0x287403[_0x15593e(0x1c52)]?JSON[_0x15593e(0x2317)](_0x287403['data']['message']):_0x287403[_0x15593e(0x18ca)]||_0x287403[_0x15593e(0x2915)]()});});}function _0xea5e98(){const _0x32ed68=_0x4f93d9,_0x5ee8d1=angular['copy'](_0x2b646e['selectedWhatsappQueues']);return _0x2b646e[_0x32ed68(0xadc)]=[],_0x5ee8d1;}function _0x4ff35c(_0xebd3bf){const _0x203960=_0x4f93d9,_0xdc94e=_0x27fedc['confirm']()[_0x203960(0x2021)](_0x203960(0x4a6))[_0x203960(0x33a)](''+_0x2b646e[_0x203960(0xadc)][_0x203960(0x1b9e)]+_0x203960(0x163e)+_0x203960(0x4b8))['ariaLabel']('delete\x20WhatsappQueues')[_0x203960(0x2283)](_0xebd3bf)['ok']('OK')[_0x203960(0x101a)](_0x203960(0x18fd));_0x27fedc[_0x203960(0xa60)](_0xdc94e)['then'](function(){const _0xc619b1=_0x203960;_0x2b646e['selectedWhatsappQueues'][_0xc619b1(0x1397)](function(_0xfac5e9){_0x13eb27(_0xfac5e9);}),_0x2b646e['selectedWhatsappQueues']=[];});}function _0x17af70(){const _0x476906=_0x4f93d9;_0x2b646e[_0x476906(0xadc)]=[];}function _0x227bae(){const _0xa47bf0=_0x4f93d9;_0x2b646e['selectedWhatsappQueues']=_0x2b646e[_0xa47bf0(0x1cf1)]['rows'];}}const _0x2ceb59=_0x2e1e6b;;_0x3dc398[_0x49a1e3(0x1e73)]=['$stateProvider',_0x49a1e3(0x21f8)];function _0x3dc398(_0xf9439c,_0x5de891){const _0x47595b=_0x49a1e3;_0xf9439c[_0x47595b(0x14f2)](_0x47595b(0x1e06),{'abstract':!![],'url':'/whatsapp'})[_0x47595b(0x14f2)]('app.whatsapp.whatsappQueues',{'url':_0x47595b(0x1678),'views':{'content@app':{'templateUrl':_0x37a2f4,'controller':_0x47595b(0x1058)}},'resolve':{'whatsappQueues':[_0x47595b(0x107c),_0x47595b(0xdcf),function(_0x678ed3,_0x111858){const _0x478676=_0x47595b;return _0x111858[_0x478676(0x4de)](_0x478676(0x333))?_0x678ed3['resolve']('whatsappQueue@get',{'fields':_0x478676(0x1649),'sort':'-updatedAt','channel':'whatsapp','limit':0xa,'offset':0x0}):_0x678ed3[_0x478676(0x1268)](_0x478676(0x1758),{'id':_0x111858[_0x478676(0x808)]()[_0x478676(0x21ac)],'section':'WhatsappQueues','fields':_0x478676(0x1649),'sort':'-updatedAt','channel':_0x478676(0x1a29),'limit':0xa,'offset':0x0});}],'userProfile':[_0x47595b(0x107c),'Auth',function(_0x5cfa6a,_0xcdde5b){const _0x59b19e=_0x47595b;return _0xcdde5b[_0x59b19e(0x4de)](_0x59b19e(0x333))?null:_0x5cfa6a[_0x59b19e(0x1268)]('userProfile@get',{'fields':_0x59b19e(0x10d2),'id':_0xcdde5b[_0x59b19e(0x808)]()[_0x59b19e(0x21ac)]});}],'userProfileSection':[_0x47595b(0x107c),'Auth',function(_0x1145dc,_0x5bfa29){const _0x2ca5e2=_0x47595b;return _0x5bfa29['hasRole'](_0x2ca5e2(0x333))?null:_0x1145dc[_0x2ca5e2(0x1268)](_0x2ca5e2(0x2681),{'fields':_0x2ca5e2(0x527),'userProfileId':_0x5bfa29['getCurrentUser']()[_0x2ca5e2(0x21ac)],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':_0x47595b(0x1a29)})[_0x47595b(0x14f2)](_0x47595b(0x26a),{'url':'/:id?tab','params':{'whatsappQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x25e86f,'controller':'WhatsappQueueController\x20as\x20vm'}},'resolve':{'whatsappQueue':[_0x47595b(0x107c),_0x47595b(0x1fbb),function(_0x4f7901,_0x2b36c2){const _0x39c2da=_0x47595b;return _0x4f7901[_0x39c2da(0x1268)]('whatsappQueue@get',{'fields':_0x39c2da(0x1649),'id':_0x2b36c2['id']});}],'userProfileSection':['apiResolver',_0x47595b(0xdcf),function(_0x5456ec,_0x365667){const _0x360b1b=_0x47595b;return _0x5456ec['resolve'](_0x360b1b(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x365667[_0x360b1b(0x808)]()['userProfileId'],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':'whatsapp'})[_0x47595b(0x14f2)](_0x47595b(0x1fee),{'url':_0x47595b(0x826),'views':{'content@app':{'templateUrl':_0x1b56d6,'controller':_0x47595b(0x1b69)}},'resolve':{'whatsappAccounts':[_0x47595b(0x107c),_0x47595b(0xdcf),function(_0x1b2478,_0x282db4){const _0x4147d7=_0x47595b;return _0x282db4[_0x4147d7(0x4de)](_0x4147d7(0x333))?_0x1b2478[_0x4147d7(0x1268)](_0x4147d7(0x16d0),{'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':_0x4147d7(0x260c),'limit':0xa,'offset':0x0}):_0x1b2478[_0x4147d7(0x1268)](_0x4147d7(0x1758),{'id':_0x282db4['getCurrentUser']()[_0x4147d7(0x21ac)],'section':_0x4147d7(0xfa8),'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':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x47595b(0x107c),_0x47595b(0xdcf),function(_0x21ec52,_0x35eb35){const _0x499839=_0x47595b;return _0x35eb35[_0x499839(0x4de)](_0x499839(0x333))?null:_0x21ec52[_0x499839(0x1268)]('userProfile@get',{'fields':_0x499839(0x10d2),'id':_0x35eb35['getCurrentUser']()[_0x499839(0x21ac)]});}],'userProfileSection':[_0x47595b(0x107c),'Auth',function(_0x30a8f0,_0xf9a0aa){const _0x50faf9=_0x47595b;return _0xf9a0aa[_0x50faf9(0x4de)](_0x50faf9(0x333))?null:_0x30a8f0['resolve'](_0x50faf9(0x2681),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xf9a0aa['getCurrentUser']()[_0x50faf9(0x21ac)],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':_0x47595b(0x1a29)})[_0x47595b(0x14f2)](_0x47595b(0x18c9),{'url':'/:id?tab','params':{'whatsappAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x116c50,'controller':_0x47595b(0xdc4)}},'resolve':{'whatsappAccount':[_0x47595b(0x107c),_0x47595b(0x1fbb),function(_0x464ec7,_0x37789d){const _0x10982e=_0x47595b;return _0x464ec7[_0x10982e(0x1268)](_0x10982e(0x16d0),{'fields':_0x10982e(0x1503),'id':_0x37789d['id']});}],'userProfileSection':[_0x47595b(0x107c),_0x47595b(0xdcf),function(_0x3ba2cf,_0x80f34){const _0x28444d=_0x47595b;return _0x3ba2cf[_0x28444d(0x1268)](_0x28444d(0x2681),{'fields':_0x28444d(0x527),'userProfileId':_0x80f34['getCurrentUser']()['userProfileId'],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':_0x47595b(0x1a29)}),_0x5de891[_0x47595b(0x1bde)](_0x47595b(0x276f));}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x1e06),['ngCsv','ngPassword',_0x49a1e3(0x1fe3),_0x49a1e3(0x891),'mdColorPicker','ckeditor','ng-sortable',_0x49a1e3(0x1a87),'ngAnimate',_0x49a1e3(0xb19),'mwFormBuilder',_0x49a1e3(0x11fd),'mwFormUtils',_0x49a1e3(0x1bd1),_0x49a1e3(0x1b5f),_0x49a1e3(0x1cff),_0x49a1e3(0x1046),_0x49a1e3(0x1acd),_0x49a1e3(0xc48),'angular.filter',_0x49a1e3(0x1441)])[_0x49a1e3(0x3d3)](_0x3dc398)[_0x49a1e3(0x38e)]('CreateOrEditWhatsappAccountDialogController',_0x4b050e)[_0x49a1e3(0x38e)](_0x49a1e3(0x1f39),_0x24f612)[_0x49a1e3(0x38e)]('WhatsappAccountagentaddController',_0x3207e0)[_0x49a1e3(0x38e)](_0x49a1e3(0x13c7),_0x28be78)['controller'](_0x49a1e3(0x2641),_0x246649)['controller'](_0x49a1e3(0x27e0),_0x588015)[_0x49a1e3(0x38e)](_0x49a1e3(0xe9f),_0x515c40)[_0x49a1e3(0x38e)](_0x49a1e3(0x3fc),_0x26cb1b)['controller'](_0x49a1e3(0x2884),_0x5e58c1)['controller'](_0x49a1e3(0xbde),_0x3a26f6)[_0x49a1e3(0x38e)]('EditWhatsappAccountAppintervalDialogController',_0x5595c7)['controller']('EditWhatsappAccountAppnoopDialogController',_0x1b7f12)['controller'](_0x49a1e3(0x1294),_0x3aeef7)[_0x49a1e3(0x38e)](_0x49a1e3(0x1708),_0x29c2a2)['controller']('EditWhatsappAccountApptagDialogController',_0x49ffc6)[_0x49a1e3(0x38e)](_0x49a1e3(0xc80),_0x38ef3b)['controller'](_0x49a1e3(0x1bf8),_0x4dca1c)[_0x49a1e3(0x38e)](_0x49a1e3(0x27b0),_0x594b2a)[_0x49a1e3(0x38e)](_0x49a1e3(0x205a),_0x26d622)[_0x49a1e3(0x38e)](_0x49a1e3(0x10f6),_0x33ffd5)[_0x49a1e3(0x38e)]('WhatsappAccountsController',_0xf5dc1b)[_0x49a1e3(0x38e)]('CreateOrEditWhatsappQueueDialogController',_0x27a74c)[_0x49a1e3(0x38e)](_0x49a1e3(0x3c0),_0x22db8c)[_0x49a1e3(0x38e)](_0x49a1e3(0xca9),_0x1d1fd1)[_0x49a1e3(0x38e)]('WhatsappQueueController',_0x2d659d)['controller'](_0x49a1e3(0x28c4),_0x2ceb59);;const _0x2f644c=_0x2e4a48['p']+_0x49a1e3(0x2103);;const _0x3c2567=_0x2e4a48['p']+_0x49a1e3(0x623);;const _0x4aebe9=_0x2e4a48['p']+_0x49a1e3(0x689);;const _0xb2e37=_0x2e4a48['p']+'src/js/modules/core/layouts/horizontal-navigation.html/horizontal-navigation.html';;const _0x50ac25=_0x2e4a48['p']+_0x49a1e3(0x1f3f);;const _0x1e3984=_0x2e4a48['p']+'src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar.html/vertical-navigation-fullwidth-toolbar.html';;const _0x46bdf5=_0x2e4a48['p']+'src/js/modules/core/layouts/vertical-navigation.html/vertical-navigation.html';;;_0x48685d['$inject']=[_0x49a1e3(0x77f),_0x49a1e3(0x1fe7),_0x49a1e3(0x7a7),_0x49a1e3(0x20d4),_0x49a1e3(0xa19),_0x49a1e3(0xdcf),_0x49a1e3(0x28d6)];function _0x48685d(_0x332f39,_0x14dddb,_0x7214b9,_0x3a523e,_0x38d0ef,_0x36ccc5,_0x412f4f){const _0x5d5fa5=_0x49a1e3,_0x5e6fa3=this;_0x5e6fa3[_0x5d5fa5(0x23dd)]=![],_0x5e6fa3[_0x5d5fa5(0x1e72)]=![],_0x5e6fa3[_0x5d5fa5(0xeba)]=_0x38d0ef[_0x5d5fa5(0xeba)];function _0x15e03b(){const _0x32a573=_0x5d5fa5;if(_0x332f39[_0x32a573(0x1b48)][_0x32a573(0x1e13)]&&_0x332f39[_0x32a573(0x1b48)][_0x32a573(0x1719)])return _0x36ccc5[_0x32a573(0x757)](),_0x5e6fa3['progresslogin']=!![],_0x7214b9['put'](_0x32a573(0x283d),_0x332f39[_0x32a573(0x1b48)][_0x32a573(0x1e13)]),_0x38d0ef['user'][_0x32a573(0x896)]({'id':_0x332f39[_0x32a573(0x1b48)][_0x32a573(0x1719)]})['$promise'][_0x32a573(0x64a)](function(_0x2994f9){_0x2994f9&&(_0x36ccc5['setCurrentUser'](_0x2994f9),_0x332f39['go']('app.dashboards.general'));})[_0x32a573(0x988)](function(){_0x5e6fa3['progresslogin']=![];});else _0x36ccc5[_0x32a573(0xa9f)]()&&_0x332f39['go'](_0x32a573(0x11c8));_0x5e6fa3[_0x32a573(0x1e72)]=_0x412f4f[_0x32a573(0x1e72)];}function _0x3586b2(){const _0xd5e0c2=_0x5d5fa5;return _0x5e6fa3['progresslogin']=!![],_0x5e6fa3[_0xd5e0c2(0x18ca)]='',_0x36ccc5[_0xd5e0c2(0x269e)](_0x5e6fa3[_0xd5e0c2(0x14e6)])['then'](function(){const _0x4b3d0b=_0xd5e0c2;return _0x332f39['go'](_0x4b3d0b(0x11c8));})[_0xd5e0c2(0x20cd)](function(_0x11a255){const _0x5d5e19=_0xd5e0c2;_0x5e6fa3[_0x5d5e19(0x18ca)]=_0x11a255['data']?_0x11a255['data'][_0x5d5e19(0x18ca)]:_0x11a255['message'];})[_0xd5e0c2(0x988)](function(){_0x5e6fa3['progresslogin']=![];});}function _0x3b0d5b(_0x3cfb4b){const _0x2de1e4=_0x5d5fa5;_0x5e6fa3[_0x2de1e4(0x18ca)]='',_0x14dddb['location'][_0x2de1e4(0x25d0)]=_0x36ccc5['loginSSO'](_0x3cfb4b);}_0x5e6fa3['login']=_0x3586b2,_0x5e6fa3[_0x5d5fa5(0x960)]=_0x3b0d5b,_0x5e6fa3[_0x5d5fa5(0x2483)]=_0x15e03b,_0x5e6fa3[_0x5d5fa5(0x2483)]();}const _0x25336e=_0x48685d;;_0xe510e0[_0x49a1e3(0x1e73)]=['$stateProvider',_0x49a1e3(0x21f8)];function _0xe510e0(_0x333ca5,_0x1be2c0){const _0x410bbb=_0x49a1e3;_0x333ca5['state'](_0x410bbb(0x354),{'url':_0x410bbb(0x22fb),'views':{'main@':{'templateUrl':_0x3c2567,'controller':_0x410bbb(0x25b9)},'content@app.login':{'templateUrl':_0x2f644c,'controller':_0x410bbb(0x1579)}},'bodyClass':_0x410bbb(0x269e)}),_0x1be2c0[_0x410bbb(0x1bde)]('app/login');}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x354),[])[_0x49a1e3(0x3d3)](_0xe510e0)['controller'](_0x49a1e3(0xfc4),_0x25336e);;const _0x254a6a=_0x2e4a48['p']+_0x49a1e3(0x1b12);;_0x1cf872['$inject']=[_0x49a1e3(0xdcf),_0x49a1e3(0x680),_0x49a1e3(0x298c),_0x49a1e3(0x77f),'api'];function _0x1cf872(_0x57248e,_0x3d047a,_0x256956,_0x23824d,_0x4e7a90){const _0x1e7160=_0x49a1e3,_0x3cfb2d=this;_0x3cfb2d[_0x1e7160(0x14e6)]={},_0x3cfb2d[_0x1e7160(0xeba)]=_0x4e7a90['baseUrl'];function _0x14c37c(){const _0x26cd23=_0x1e7160;_0x57248e['isLoggedIn']()&&_0x23824d['go'](_0x26cd23(0x11c8));}function _0x244fe8(){const _0x3e303d=_0x1e7160;return _0x4e7a90[_0x3e303d(0x1927)][_0x3e303d(0x22e3)](_0x3cfb2d[_0x3e303d(0x14e6)])[_0x3e303d(0x15e7)]['then'](function(){const _0x4e66eb=_0x3e303d;_0x3d047a[_0x4e66eb(0x1339)]({'title':_0x256956[_0x4e66eb(0x2292)](_0x4e66eb(0xd9d)),'msg':_0x256956[_0x4e66eb(0x2292)](_0x4e66eb(0x1915))});})['catch'](function(_0x5365db){const _0x5748cc=_0x3e303d;_0x5365db&&_0x3d047a[_0x5748cc(0x1bd0)]({'title':_0x256956[_0x5748cc(0x2292)](_0x5748cc(0x1ee5)),'msg':_0x5365db[_0x5748cc(0x1c52)]?_0x5365db[_0x5748cc(0x1c52)]['message']||_0x5365db['message']||_0x5365db:_0x5365db[_0x5748cc(0x18ca)]||_0x5365db});});}_0x3cfb2d[_0x1e7160(0xfc9)]=_0x244fe8,_0x3cfb2d[_0x1e7160(0x2483)]=_0x14c37c;}const _0xa20a61=_0x1cf872;;_0x409c53[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad),_0x49a1e3(0x21f8)];function _0x409c53(_0x309284,_0x2d8b6e){const _0xaac373=_0x49a1e3;_0x309284[_0xaac373(0x14f2)](_0xaac373(0x17ae),{'url':_0xaac373(0x98c),'views':{'main@':{'templateUrl':_0x3c2567,'controller':_0xaac373(0x25b9)},'content@app.forgot':{'templateUrl':_0x254a6a,'controller':_0xaac373(0xa8c)}},'bodyClass':'forgot'}),_0x2d8b6e[_0xaac373(0x1bde)](_0xaac373(0xfaa));}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x17ae),[])[_0x49a1e3(0x3d3)](_0x409c53)[_0x49a1e3(0x38e)](_0x49a1e3(0xb97),_0xa20a61);;const _0x1d36a1=_0x2e4a48['p']+_0x49a1e3(0x24be);;_0x54e41f['$inject']=[_0x49a1e3(0xdcf),'toasty',_0x49a1e3(0x298c),_0x49a1e3(0x77f),'api',_0x49a1e3(0x1fbb)];function _0x54e41f(_0x63fa22,_0x4d9fc7,_0x4de35c,_0x4bc292,_0x1f1613,_0x1029bc){const _0x49356a=_0x49a1e3,_0x2c4709=this;_0x2c4709['form']={'token':_0x1029bc[_0x49356a(0x1e13)]},_0x2c4709[_0x49356a(0x28d6)]={},_0x2c4709[_0x49356a(0xeba)]=_0x1f1613[_0x49356a(0xeba)];function _0x455c51(){const _0x4b5d07=_0x49356a;return _0x63fa22[_0x4b5d07(0xa9f)]()&&_0x4bc292['go']('app.dashboards.general'),_0x1f1613[_0x4b5d07(0x28d6)][_0x4b5d07(0x1ea8)]({'id':0x1})[_0x4b5d07(0x15e7)]['then'](function(_0x3fa1dc){const _0x37cfc3=_0x4b5d07;_0x2c4709['setting']=_0x3fa1dc,_0x2c4709['passwordPattern']=_0x2c4709[_0x37cfc3(0x28d6)][_0x37cfc3(0x263c)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'';})[_0x4b5d07(0x20cd)](function(_0x4d3a2c){const _0x443bb0=_0x4b5d07;_0x4d3a2c&&_0x4d9fc7[_0x443bb0(0x1bd0)]({'title':_0x443bb0(0x1683),'msg':_0x4d3a2c[_0x443bb0(0x1c52)]?_0x4d3a2c[_0x443bb0(0x1c52)][_0x443bb0(0x18ca)]||_0x4d3a2c[_0x443bb0(0x18ca)]||_0x4d3a2c:_0x4d3a2c[_0x443bb0(0x18ca)]||_0x4d3a2c});});}function _0xc508ab(){const _0x1723f9=_0x49356a;return _0x1f1613[_0x1723f9(0x1927)]['reset'](_0x2c4709[_0x1723f9(0x14e6)])['$promise'][_0x1723f9(0x64a)](function(){const _0x13139d=_0x1723f9;_0x4d9fc7[_0x13139d(0x1339)]({'title':_0x4de35c[_0x13139d(0x2292)](_0x13139d(0x7e2)),'msg':_0x4de35c['instant'](_0x13139d(0x2714))}),_0x4bc292['go'](_0x13139d(0x354));})[_0x1723f9(0x20cd)](function(_0x74bac0){const _0x5bb062=_0x1723f9;_0x74bac0&&_0x4d9fc7['error']({'title':_0x4de35c[_0x5bb062(0x2292)](_0x5bb062(0xb7a)),'msg':_0x74bac0['data']?_0x74bac0['data']['message']||_0x74bac0['message']||_0x74bac0:_0x74bac0[_0x5bb062(0x18ca)]||_0x74bac0});});}_0x2c4709[_0x49356a(0xcdc)]=_0xc508ab,_0x2c4709[_0x49356a(0x2483)]=_0x455c51;}const _0x4efc67=_0x54e41f;;_0x11582a['$inject']=[_0x49a1e3(0x20ad),_0x49a1e3(0x21f8)];function _0x11582a(_0x1818e0,_0x2f95ac){const _0x2f59fb=_0x49a1e3;_0x1818e0[_0x2f59fb(0x14f2)](_0x2f59fb(0x239d),{'url':_0x2f59fb(0x353),'views':{'main@':{'templateUrl':_0x3c2567,'controller':_0x2f59fb(0x25b9)},'content@app.reset':{'templateUrl':_0x1d36a1,'controller':_0x2f59fb(0xde5)}},'bodyClass':_0x2f59fb(0x2839)}),_0x2f95ac['addPart'](_0x2f59fb(0xbc6));}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x239d),[])[_0x49a1e3(0x3d3)](_0x11582a)['controller'](_0x49a1e3(0x20af),_0x4efc67);;const _0x302410=_0x2e4a48['p']+'src/js/modules/errors/404/error-404.html/error-404.html';;_0x5e6032[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),'$timeout','$q','msNavigationService'];function _0x5e6032(_0x591cc5,_0x1596c2,_0x29c7b1,_0x42170e){const _0x1b4b61=_0x49a1e3,_0x151047=this;function _0x12f567(_0x3f0471){const _0x459976=a0_0x4127;let _0x358dba=[];const _0x140e40=_0x42170e[_0x459976(0xaee)](),_0x5e9b4d=_0x29c7b1['defer']();for(let _0x421c6f=0x0;_0x421c6f<_0x140e40['length'];_0x421c6f+=0x1){_0x140e40[_0x421c6f][_0x459976(0x1181)]&&_0x358dba[_0x459976(0x1954)](_0x140e40[_0x421c6f]);}return _0x3f0471&&(_0x358dba=_0x358dba[_0x459976(0xcec)](function(_0x435db3){const _0xc969f7=_0x459976;if(_0x435db3['title'][_0xc969f7(0x2554)]()[_0xc969f7(0x68a)](_0x3f0471[_0xc969f7(0x2554)]()))return!![];})),_0x1596c2(function(){const _0x32a0b9=_0x459976;_0x5e9b4d[_0x32a0b9(0x1268)](_0x358dba);},0x3e8),_0x5e9b4d[_0x459976(0x1713)];}function _0x4d835b(_0x2cf4e2){const _0x4da8a3=a0_0x4127;_0x2cf4e2[_0x4da8a3(0x1181)]&&(_0x2cf4e2[_0x4da8a3(0x1f21)]?_0x591cc5['go'](_0x2cf4e2['state'],_0x2cf4e2[_0x4da8a3(0x1f21)]):_0x591cc5['go'](_0x2cf4e2[_0x4da8a3(0x14f2)]));}_0x151047['search']=_0x12f567,_0x151047[_0x1b4b61(0x182)]=_0x4d835b;}const _0x435c55=_0x5e6032;;_0x2b5d6f[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad),_0x49a1e3(0x21f8)];function _0x2b5d6f(_0x49c34d,_0x42198c){const _0xac27a2=_0x49a1e3;_0x49c34d[_0xac27a2(0x14f2)]('app.errors_error-404',{'url':_0xac27a2(0x118),'views':{'main@':{'templateUrl':_0x3c2567,'controller':_0xac27a2(0x25b9)},'content@app.errors_error-404':{'templateUrl':_0x302410,'controller':_0xac27a2(0x2687)}},'params':{'status':0x194,'statusText':'','data':{},'config':{}},'bodyClass':_0xac27a2(0x22ab)}),_0x42198c['addPart'](_0xac27a2(0x1c5b));}angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x2771),[])['config'](_0x2b5d6f)[_0x49a1e3(0x38e)](_0x49a1e3(0x84b),_0x435c55);;const _0x5baf54=_0x2e4a48['p']+_0x49a1e3(0x1f8f);;_0x26eba0[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x77f),_0x49a1e3(0xb74)];function _0x26eba0(_0x1490ec,_0x2f741a){const _0x25ce15=_0x49a1e3,_0x2efd23=this;function _0x4a4e0f(){const _0x5558e6=a0_0x4127;_0x2f741a['post'](_0x5558e6(0x1fa2),_0x2efd23['error'])['then'](function(_0x26de4e){const _0x7cb33d=_0x5558e6;_0x2efd23[_0x7cb33d(0xc10)]=!![],_0x26de4e[_0x7cb33d(0x1c52)]&&(_0x2efd23['code']=_0x26de4e['data']['id']);},function(){const _0x4dd91a=_0x5558e6;_0x2efd23[_0x4dd91a(0xc10)]=![];});}_0x2efd23[_0x25ce15(0x741)]='',_0x2efd23['send']=![],_0x2efd23['error']=_0x1490ec[_0x25ce15(0x1b48)],_0x2efd23[_0x25ce15(0x1fe8)]=_0x4a4e0f;}const _0x5334d0=_0x26eba0;;_0x5235e5[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad),'$translatePartialLoaderProvider'];function _0x5235e5(_0x5e9022,_0x1abe1e){const _0x25f417=_0x49a1e3;_0x5e9022[_0x25f417(0x14f2)](_0x25f417(0x15ce),{'url':_0x25f417(0x3ad),'views':{'main@':{'templateUrl':_0x3c2567,'controller':_0x25f417(0x25b9)},'content@app.errors_error-500':{'templateUrl':_0x5baf54,'controller':'Error500Controller\x20as\x20vm'}},'params':{'status':0x1f4,'statusText':'','data':{},'config':{}},'bodyClass':_0x25f417(0x1837)}),_0x1abe1e['addPart'](_0x25f417(0x8c1));}angular['module'](_0x49a1e3(0x487),[])['config'](_0x5235e5)['controller'](_0x49a1e3(0xb54),_0x5334d0);;angular[_0x49a1e3(0x20d2)](_0x49a1e3(0x1056),[_0x49a1e3(0x2771),'app.errors.error-500']);;_0x30695f['$inject']=[_0x49a1e3(0x159f)];function _0x30695f(_0x28b6c1){const _0x4612cb=_0x49a1e3,_0x5a527b={};return _0x5a527b[_0x4612cb(0xeba)]=!![]?'/':0x0,_0x5a527b['auth']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/auth/local',{},{'local':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/auth/local'},'forgot':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0xf06)},'reset':{'method':'post','url':_0x5a527b['baseUrl']+'api/auth/local/reset/:token','params':{'token':_0x4612cb(0x19bf)}},'user':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1736),'params':{'token':_0x4612cb(0x19bf)}},'google':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/auth/google'}}),_0x5a527b[_0x4612cb(0x207d)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x252)),_0x5a527b['rpc']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/rpc',{},{'startMonitor':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2444),'params':{'uniqueid':_0x4612cb(0x1d85)}},'stopMonitor':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1965),'params':{'uniqueid':_0x4612cb(0x1d85)}},'getVoiceChannels':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x26be)},'getVoiceQueues':{'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x1bc4)},'getChatQueues':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x966)},'getMailQueues':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1452)},'getSmsQueues':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x60e)},'getWhatsappQueues':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x60e)},'getOpenchannelQueues':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1703)},'getFaxQueues':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x4a5)},'getVoiceQueuesPreview':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x20fa)},'getVoiceQueuesChannels':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/rpc/voice/queues/channels'},'getVoiceQueuesChannel':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x45e)},'getVoiceQueuesChannelHangup':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2f8)},'getVoiceQueuesChannelRedirect':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x162f)},'getOutbound':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xf2a)},'getOutboundChannels':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/rpc/outbound/channels'},'getAgents':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x120a)},'setAgentCapacity':{'method':'put','url':_0x5a527b['baseUrl']+_0x4612cb(0x1cb7),'params':{'id':_0x4612cb(0x15dd)}},'getTelephones':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+'api/rpc/telephones'},'getTrunks':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x20d6)},'getCampaigns':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/rpc/campaigns'},'getMailAccounts':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x3be)},'getFaxAccounts':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x10d0)},'getChatQueuesWaitingInteractions':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1d5d)},'getMailQueuesWaitingInteractions':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/rpc/mail/queues/waitinginteractions'},'getOpenchannelQueuesWaitingInteractions':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1c65)},'getOpenchannelQueuesIdWaitingInteractions':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/rpc/openchannel/queues/:id/waitinginteractions'},'getSmsQueuesWaitingInteractions':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1603)},'getFaxQueuesWaitingInteractions':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x129e)},'getWhatsappQueuesWaitingInteractions':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1146)},'mailQueueNotify':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1c4f),'params':{'id':'@id'}},'chatQueueNotify':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x114b),'params':{'id':_0x4612cb(0x15dd)}},'faxQueueNotify':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/rpc/fax/queues/:id/notify','params':{'id':_0x4612cb(0x15dd)}},'smsQueueNotify':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/rpc/sms/queues/:id/notify','params':{'id':_0x4612cb(0x15dd)}},'openchannelQueueNotify':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x2666),'params':{'id':_0x4612cb(0x15dd)}},'agentNotify':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1bf1),'params':{'id':_0x4612cb(0x15dd)}}}),_0x5a527b['version']=_0x28b6c1(_0x5a527b['baseUrl']+'api/version',{},{'fetch':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x8b0)},'reset':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/version/reset'},'pull':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/version/pull'},'restart':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x107b)},'migrations':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xe9d)}}),_0x5a527b['system']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/system',{},{'killProcess':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x16ac),'params':{'pid':_0x4612cb(0x2e9)}}}),_0x5a527b[_0x4612cb(0x24ef)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/pm2/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358),'isArray':!![]}}),_0x5a527b[_0x4612cb(0x2e8)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x28ec),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2188)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x13ac),'params':{'includeAll':_0x4612cb(0x251f)}},'bulkCreate':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x3eb),'isArray':!![]},'addContacts':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x15e2)},'changePassword':{'isArray':![],'method':_0x4612cb(0x2358),'url':_0x5a527b['baseUrl']+_0x4612cb(0x2ab)},'addQueues':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0xe9b)},'removeQueues':{'isArray':![],'method':'delete','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xe9b)},'addAvatar':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/users/:id/avatar'},'getAvatar':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/users/:id/avatar'},'getContacts':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+'api/users/:id/contacts'},'getQueues':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/users/:id/queues'},'getVoiceQueuesRt':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/users/:id/queues_rt'},'getGroups':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/users/:id/groups'},'getRecordings':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2b0)},'getScreenRecordings':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1e19)},'getChatInteractions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+'api/users/:id/chat/interactions'},'getOpenchannelInteractions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x218d)},'getMailInteractions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1059)},'getSmsInteractions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1aa7)},'getFaxInteractions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x667)},'getWhatsappInteractions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xf88)},'login':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/users/:id/login'},'logout':{'isArray':![],'method':'post','url':_0x5a527b['baseUrl']+_0x4612cb(0x1b13)},'pause':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x203)},'unpause':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/users/:id/unpause'},'getTeams':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xce3)},'addTeams':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xce3)},'removeTeams':{'isArray':![],'method':'delete','url':_0x5a527b['baseUrl']+_0x4612cb(0xce3)},'getLists':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x28ac)},'getAgents':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1ed7)},'addChatInteractions':{'isArray':!![],'method':'post','url':_0x5a527b['baseUrl']+'api/users/:id/chat_interactions'},'removeChatInteractions':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/users/:id/chat_interactions'},'addMailInteractions':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/users/:id/mail_interactions'},'removeMailInteractions':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x297a)},'addFaxInteractions':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xc6a)},'removeFaxInteractions':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+_0x4612cb(0xc6a)},'addSmsInteractions':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xc1f)},'removeSmsInteractions':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+'api/users/:id/sms_interactions'},'addOpenchannelInteractions':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x54d)},'removeOpenchannelInteractions':{'isArray':![],'method':'delete','url':_0x5a527b[_0x4612cb(0xeba)]+'api/users/:id/openchannel_interactions'},'addWhatsappInteractions':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x650)},'removeWhatsappInteractions':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x650)},'getVoicePrefixes':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2286)},'getFaxAccounts':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/users/:id/fax_accounts'},'addFaxAccounts':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1c92)},'removeFaxAccounts':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1c92)},'getMailAccounts':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/users/:id/mail_accounts'},'addMailAccounts':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1f3c)},'removeMailAccounts':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1f3c)},'getOpenchannelAccounts':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/users/:id/openchannel_accounts'},'addOpenchannelAccounts':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/users/:id/openchannel_accounts'},'removeOpenchannelAccounts':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x2433)},'getSmsAccounts':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x127c)},'addSmsAccounts':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x127c)},'removeSmsAccounts':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x127c)},'getChatWebsites':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/users/:id/chat_websites'},'addChatWebsites':{'isArray':!![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1efb)},'removeChatWebsites':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1efb)},'getWhatsappAccounts':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x274f)},'addWhatsappAccounts':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x274f)},'removeWhatsappAccounts':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x274f)},'getSquareProjects':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1d94)},'addSquareProjects':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1d94)},'removeSquareProjects':{'isArray':![],'method':'delete','url':_0x5a527b[_0x4612cb(0xeba)]+'api/users/:id/square_projects'},'getScheduledCalls':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1620)},'getApiKey':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0xd96)},'createApiKey':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xd96)},'removeApiKey':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+_0x4612cb(0xd96)},'whoami':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+'api/users/whoami'}}),_0x5a527b[_0x4612cb(0xa80)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x14df),{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xe4c)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x172a),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x1faa)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x111d),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xea2)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x7cc),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b['voiceExtension']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x27ae),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x3d4)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1218),'params':{'includeAll':'@includeAll'}},'addApplications':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/voice/extensions/:id/applications'}}),_0x5a527b[_0x4612cb(0x1b55)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/voice/mohs/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x132b)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x793),'params':{'includeAll':'@includeAll'}},'addSound':{'isArray':![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1c61)},'removeSound':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1498)},'getSounds':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1c61)}}),_0x5a527b['voiceQueue']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/voice/queues/:id',{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/voice/queues/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/voice/queues/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'getHoppers':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x18e3)},'getHopperHistories':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x23ed)},'getHopperFinals':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x268)},'getHopperBlacks':{'isArray':![],'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x15c3)},'getTeams':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/voice/queues/:id/teams'},'addTeams':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/voice/queues/:id/teams'},'removeTeams':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x4f8)},'addAgents':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x26dc)},'removeAgents':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x26dc)},'getAgents':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x26dc)},'getMembers':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1d55)},'getLists':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x180d)},'addLists':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x180d)},'removeLists':{'isArray':!![],'method':'delete','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x180d)},'getBlackLists':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x228a)},'addBlackLists':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x228a)},'removeBlackLists':{'isArray':!![],'method':'delete','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x228a)}}),_0x5a527b[_0x4612cb(0x15bd)]=_0x28b6c1(_0x5a527b['baseUrl']+'api/voice/recordings/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xce8)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x20e4),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':'get','url':_0x5a527b['baseUrl']+'api/voice/recordings/:id/download','responseType':_0x4612cb(0x1063),'cache':![],'transformResponse':function(_0x273f09,_0x49bb2d){const _0x2a9346=_0x4612cb,_0x437203=_0x49bb2d();return{'type':_0x437203[_0x2a9346(0xab8)],'length':_0x437203[_0x2a9346(0x2983)],'buffer':_0x273f09};}},'downloads':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1da2)},'runTranscribe':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x112a)},'downloadTranscribe':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/voice/recordings/:id/transcribe','responseType':'arraybuffer','cache':![],'transformResponse':function(_0xa73220,_0x2aba58){const _0xa705c5=_0x4612cb,_0x390f1e=_0x2aba58();return{'type':_0x390f1e[_0xa705c5(0xab8)],'length':_0x390f1e[_0xa705c5(0x2983)],'buffer':_0xa73220};}}}),_0x5a527b[_0x4612cb(0x24f7)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/screen/recordings/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b['baseUrl']+'api/screen/recordings/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x28c2),'params':{'includeAll':_0x4612cb(0x251f)}},'download':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1627),'responseType':_0x4612cb(0x1063),'cache':![],'transformResponse':function(_0x53c5bb,_0x58145e){const _0x19f375=_0x4612cb,_0x1ec547=_0x58145e();return{'type':_0x1ec547[_0x19f375(0xab8)],'length':_0x1ec547[_0x19f375(0x2983)],'buffer':_0x53c5bb};}}}),_0x5a527b[_0x4612cb(0x1e43)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/voice/mails/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/voice/mails/describe'},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x19ef),'params':{'includeAll':'@includeAll'}},'getMessages':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1686)}}),_0x5a527b[_0x4612cb(0xd0e)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x3cd),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1d6c)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/voice/mails/messages/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'download':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x17c3),'responseType':_0x4612cb(0x1063),'cache':![],'transformResponse':function(_0x315ef2,_0x3e2c4f){const _0x3a55af=_0x4612cb,_0x3553c6=_0x3e2c4f();return{'type':_0x3553c6[_0x3a55af(0xab8)],'length':_0x3553c6[_0x3a55af(0x2983)],'buffer':_0x315ef2};}}}),_0x5a527b[_0x4612cb(0x642)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1b58),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x27d7)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/voice/calls/reports/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x5a527b[_0x4612cb(0x1002)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1a6e),{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x1c25)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/voice/dials/reports/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x1445)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x7e6),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/voice/agents/reports/describe'},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xaa9),'params':{'includeAll':'@includeAll'}}}),_0x5a527b[_0x4612cb(0x26cb)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0xe52),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/voice/queues/reports/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/voice/queues/reports/:id/clone','params':{'includeAll':'@includeAll'}},'getVoiceQueuesReport':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/voice/queues/reports/index'}}),_0x5a527b[_0x4612cb(0x1892)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1521),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x280d)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/members/reports/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b['trunk']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/trunks/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x141e)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x133d),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0xf97)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x802),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2916)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x175c),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x1a8c)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xb88),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x281d)},'clone':{'method':'post','url':_0x5a527b['baseUrl']+_0x4612cb(0xb75),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b['mailAccount']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x103f),{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/mail/accounts/describe'},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+'api/mail/accounts/:id/clone','params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1f1d)},'getDispositions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1f1d)},'removeDispositions':{'isArray':![],'method':'delete','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1f1d)},'addAnswer':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/mail/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x99a)},'removeAnswers':{'isArray':![],'method':'delete','url':_0x5a527b['baseUrl']+_0x4612cb(0x99a)},'getImap':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x86c)},'addImap':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x86c)},'removeImap':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/mail/accounts/:id/in_servers'},'getSmtp':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/mail/accounts/:id/out_servers'},'addSmtp':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1f67)},'removeSmtp':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1f67)},'addInteraction':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xbd3)},'getInteractions':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xbd3)},'addApplications':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1d52)},'getApplications':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1d52)},'getMessages':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/mail/accounts/:id/messages'},'send':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x28df)},'verifySmtp':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1253)},'addAgents':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1158)},'removeAgents':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+'api/mail/accounts/:id/users'},'getAgents':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1158)}}),_0x5a527b[_0x4612cb(0x1eb3)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x16be),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/mail/queues/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/mail/queues/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'getMembers':{'isArray':![],'method':'get','url':_0x5a527b['baseUrl']+'api/mail/queues/:id/members'},'getTeams':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x957)},'addTeams':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x957)},'removeTeams':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/mail/queues/:id/teams'},'addAgents':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/mail/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+_0x4612cb(0xdfd)},'getAgents':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+'api/mail/queues/:id/users'}}),_0x5a527b['mailSubstatus']=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x1ba5),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x56b)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/mail/substatuses/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x1e03)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x248e),{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xdeb)},'clone':{'method':'post','url':_0x5a527b['baseUrl']+_0x4612cb(0x23bb),'params':{'includeAll':_0x4612cb(0x251f)}},'addMessage':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/mail/interactions/:id/messages'},'getMessages':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x11cf)},'addTags':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/mail/interactions/:id/tags'},'removeTags':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x2799)},'download':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xb04),'responseType':_0x4612cb(0x1063),'cache':![],'transformResponse':function(_0x56c49d,_0x59c65d){const _0x123f8d=_0x59c65d();return{'type':_0x123f8d['content-type'],'length':_0x123f8d['content-length'],'buffer':_0x56c49d};}}}),_0x5a527b[_0x4612cb(0x284)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/mail/messages/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x7ae)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/mail/messages/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'accept':{'isArray':![],'method':_0x4612cb(0x2358),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x5af)},'reject':{'isArray':![],'method':'put','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1f26)},'download':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xba4),'responseType':_0x4612cb(0x1063),'cache':![],'transformResponse':function(_0xcd430d,_0x2df93d){const _0x2434de=_0x4612cb,_0x1a37f6=_0x2df93d();return{'type':_0x1a37f6[_0x2434de(0xab8)],'length':_0x1a37f6[_0x2434de(0x2983)],'buffer':_0xcd430d};}}}),_0x5a527b[_0x4612cb(0x1885)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/mail/applications/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x5c5)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1a86),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x36b)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x898),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x218b)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1a0b),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b['dashboard']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2574),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/dashboards/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x901),'params':{'includeAll':_0x4612cb(0x251f)}},'addItem':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/dashboards/:id/items'},'getItems':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0xe36)}}),_0x5a527b[_0x4612cb(0x1681)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x1a11),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1661)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1e3b),'params':{'includeAll':'@includeAll'}}}),_0x5a527b[_0x4612cb(0x549)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1edc),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x425)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x816),'params':{'includeAll':_0x4612cb(0x251f)}},'addDisposition':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1d65)},'getDispositions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1d65)},'removeDispositions':{'isArray':![],'method':'delete','url':_0x5a527b['baseUrl']+_0x4612cb(0x1d65)},'addAnswer':{'isArray':![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x38c)},'getAnswers':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/fax/accounts/:id/canned_answers'},'removeAnswers':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x38c)},'addInteraction':{'isArray':![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1570)},'getInteractions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/fax/accounts/:id/interactions'},'addApplications':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1548)},'getApplications':{'isArray':![],'method':'get','url':_0x5a527b['baseUrl']+'api/fax/accounts/:id/applications'},'addAccountApplications':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/fax/accounts/addaccountapplications'},'updateAccountApplications':{'isArray':![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1ba7)},'getMessages':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x19fd)},'send':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1413)},'addAgents':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x11e8)},'removeAgents':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x11e8)},'getAgents':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x11e8)}}),_0x5a527b[_0x4612cb(0x1fa5)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0xfc2),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x361)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x62d),'params':{'includeAll':'@includeAll'}}}),_0x5a527b['faxInteraction']=_0x28b6c1(_0x5a527b['baseUrl']+'api/fax/interactions/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xbd7)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1c32),'params':{'includeAll':_0x4612cb(0x251f)}},'addMessage':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1bab)},'getMessages':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/fax/interactions/:id/messages'},'addTags':{'isArray':![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1157)},'removeTags':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1157)},'download':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1fc),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0x188780,_0xc577ee){const _0xcadc08=_0x4612cb,_0x57c4a7=_0xc577ee();return{'type':_0x57c4a7[_0xcadc08(0xab8)],'length':_0x57c4a7[_0xcadc08(0x2983)],'buffer':_0x188780};}}}),_0x5a527b['faxMessage']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x20d8),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xde4)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1be9),'params':{'includeAll':_0x4612cb(0x251f)}},'accept':{'isArray':![],'method':'put','url':_0x5a527b[_0x4612cb(0xeba)]+'api/fax/messages/:id/accept'},'reject':{'isArray':![],'method':'put','url':_0x5a527b['baseUrl']+'api/fax/messages/:id/reject'},'download':{'isArray':![],'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x1ace),'responseType':_0x4612cb(0x1063),'cache':![],'transformResponse':function(_0x45fac9,_0x2c0d12){const _0x45eebb=_0x4612cb,_0x29dc12=_0x2c0d12();return{'type':_0x29dc12['content-type'],'length':_0x29dc12[_0x45eebb(0x2983)],'buffer':_0x45fac9};}}}),_0x5a527b['faxQueue']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/fax/queues/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x17d3)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/fax/queues/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'getMembers':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1428)},'getTeams':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/fax/queues/:id/teams'},'addTeams':{'isArray':!![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1176)},'removeTeams':{'isArray':![],'method':'delete','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1176)},'addAgents':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/fax/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/fax/queues/:id/users'},'getAgents':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xd5b)}}),_0x5a527b[_0x4612cb(0x7ba)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/fax/reports/queue/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x18b4)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x119a),'params':{'includeAll':'@includeAll'}}}),_0x5a527b[_0x4612cb(0x1512)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/sms/accounts/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/sms/accounts/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x20b8),'params':{'includeAll':_0x4612cb(0x251f)}},'addDisposition':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x22c0)},'getDispositions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x22c0)},'removeDispositions':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x22c0)},'addAnswer':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x227b)},'getAnswers':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x227b)},'removeAnswers':{'isArray':![],'method':'delete','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x227b)},'notify':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/sms/accounts/:id/notify'},'addApplications':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/sms/accounts/:id/applications'},'getApplications':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1b41)},'getInteractions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x16aa)},'send':{'isArray':![],'method':'post','url':_0x5a527b['baseUrl']+'api/sms/accounts/:id/send'},'status':{'isArray':![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+'api/sms/accounts/:id/status'},'statusGet':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x41a)},'addAgents':{'isArray':!![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+'api/sms/accounts/:id/users'},'removeAgents':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/sms/accounts/:id/users'},'getAgents':{'isArray':![],'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x238d)}}),_0x5a527b[_0x4612cb(0x14ab)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x1185),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2548)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2816),'params':{'includeAll':'@includeAll'}}}),_0x5a527b[_0x4612cb(0x1c74)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/sms/interactions/:id',{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x16f0)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x72a),'params':{'includeAll':_0x4612cb(0x251f)}},'addMessage':{'isArray':![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+'api/sms/interactions/:id/messages'},'getMessages':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x27b)},'addTags':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xb63)},'removeTags':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/sms/interactions/:id/tags'},'download':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x3cb),'responseType':_0x4612cb(0x1063),'cache':![],'transformResponse':function(_0x1dd2af,_0x53f246){const _0x45bf66=_0x4612cb,_0x89d8=_0x53f246();return{'type':_0x89d8[_0x45bf66(0xab8)],'length':_0x89d8[_0x45bf66(0x2983)],'buffer':_0x1dd2af};}}}),_0x5a527b[_0x4612cb(0x1ce8)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x1a02),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1f4e)},'clone':{'method':'post','url':_0x5a527b['baseUrl']+'api/sms/messages/:id/clone','params':{'includeAll':'@includeAll'}},'accept':{'isArray':![],'method':_0x4612cb(0x2358),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1f20)},'reject':{'isArray':![],'method':_0x4612cb(0x2358),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x118a)},'status':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x22c8)}}),_0x5a527b[_0x4612cb(0x1957)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x1c4d),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/sms/queues/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/sms/queues/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'getMembers':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/sms/queues/:id/members'},'getTeams':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xfc0)},'addTeams':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xfc0)},'removeTeams':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xfc0)},'addAgents':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/sms/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x15a5)},'getAgents':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+'api/sms/queues/:id/users'}}),_0x5a527b[_0x4612cb(0x880)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x1ac1),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x23c5)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x26ee),'params':{'includeAll':_0x4612cb(0x251f)}},'addDisposition':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x19bc)},'getDispositions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x19bc)},'removeDispositions':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/openchannel/accounts/:id/dispositions'},'addAnswer':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x649)},'getAnswers':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x649)},'removeAnswers':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x649)},'notify':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1e3e)},'addApplications':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/openchannel/accounts/:id/applications'},'getApplications':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x168f)},'getInteractions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x341)},'addAgents':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/openchannel/accounts/:id/users'},'removeAgents':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/openchannel/accounts/:id/users'},'getAgents':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xf57)},'send':{'isArray':![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+'api/openchannel/accounts/:id/send'}}),_0x5a527b[_0x4612cb(0x1b79)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x8be),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1e99)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x219d),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x1265)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x148),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1419)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1d19),'params':{'includeAll':'@includeAll'}},'addMessage':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x394)},'getMessages':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x394)},'addTags':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1c43)},'removeTags':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1c43)},'download':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/openchannel/interactions/:id/download','responseType':_0x4612cb(0x1063),'cache':![],'transformResponse':function(_0x14b7de,_0x45262f){const _0x24587c=_0x4612cb,_0x12478b=_0x45262f();return{'type':_0x12478b[_0x24587c(0xab8)],'length':_0x12478b[_0x24587c(0x2983)],'buffer':_0x14b7de};}}}),_0x5a527b['openchannelMessage']=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x25f1),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x204e)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x14bb),'params':{'includeAll':'@includeAll'}},'accept':{'isArray':![],'method':_0x4612cb(0x2358),'url':_0x5a527b['baseUrl']+_0x4612cb(0x11fb)},'reject':{'isArray':![],'method':_0x4612cb(0x2358),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/openchannel/messages/:id/reject'}}),_0x5a527b['openchannelQueue']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x7df),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/openchannel/queues/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1283),'params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1a6f)},'getTeams':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x18ba)},'addTeams':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/openchannel/queues/:id/teams'},'removeTeams':{'isArray':![],'method':'delete','url':_0x5a527b['baseUrl']+_0x4612cb(0x18ba)},'addAgents':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/openchannel/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1adb)},'getAgents':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1adb)}}),_0x5a527b['chatWebsite']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1dc5),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1a67)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x84c),'params':{'includeAll':_0x4612cb(0x251f)}},'addDisposition':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x6ee)},'getDispositions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/websites/:id/dispositions'},'removeDispositions':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/websites/:id/dispositions'},'addAnswer':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2716)},'getAnswers':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2716)},'removeAnswers':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/websites/:id/canned_answers'},'addLogo':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x18fe)},'addAvatar':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x25fe)},'addCustomerAvatar':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x409)},'addSystemAvatar':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x13f2)},'getLogo':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x18fe)},'getAvatar':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x25fe)},'getCustomerAvatar':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x409)},'getSystemAvatar':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/websites/:id/system_avatar'},'notify':{'isArray':![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x155)},'offline':{'isArray':![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x16db)},'addInteraction':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/websites/:id/interactions'},'getInteractions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x26d2)},'getSnippet':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/websites/:id/snippet'},'addApplications':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/websites/:id/applications'},'getApplications':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1c05)},'addProactiveActions':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xc70)},'getProactiveActions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/websites/:id/proactive_actions'},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xaa8)},'getOfflineMessages':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x9cf)},'addAgents':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x233d)},'removeAgents':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x233d)},'getAgents':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x233d)}}),_0x5a527b[_0x4612cb(0x1082)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x26e3),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/openchannel/reports/queue/describe'},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x12c1),'params':{'includeAll':'@includeAll'}}}),_0x5a527b['chatApplication']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/chat/applications/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1817)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/applications/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x180c)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/chat/interactions/:id',{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1585)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/interactions/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'createVidaooSession':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x23b5)},'customUpdate':{'isArray':![],'method':_0x4612cb(0x2358),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1bf4)},'abandon':{'isArray':![],'method':'put','url':_0x5a527b['baseUrl']+'api/chat/interactions/:id/abandon'},'attachmentUpload':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xe16)},'attachmentDownload':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x12a5)},'close':{'isArray':![],'method':_0x4612cb(0x2358),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/interactions/:id/close'},'addMessage':{'isArray':![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xf43)},'getMessages':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/interactions/:id/messages'},'getMyMessages':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/interactions/:id/my_messages'},'addTags':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1bd8)},'removeTags':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1bd8)},'download':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x285c),'responseType':_0x4612cb(0x1063),'cache':![],'transformResponse':function(_0x30a69d,_0x400b92){const _0x70dda2=_0x4612cb,_0x5f39fb=_0x400b92();return{'type':_0x5f39fb[_0x70dda2(0xab8)],'length':_0x5f39fb['content-length'],'buffer':_0x30a69d};}}}),_0x5a527b[_0x4612cb(0x281a)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x427),{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1c81)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x27f),'params':{'includeAll':'@includeAll'}},'accept':{'isArray':![],'method':_0x4612cb(0x2358),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x114d)},'reject':{'isArray':![],'method':_0x4612cb(0x2358),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/messages/:id/reject'}}),_0x5a527b[_0x4612cb(0x2812)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2327),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2791)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/offline_messages/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x5a527b[_0x4612cb(0x10b0)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x8a1),{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xddf)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x11d0),'params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1270)},'getTeams':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1a9e)},'addTeams':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/chat/queues/:id/teams'},'removeTeams':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+'api/chat/queues/:id/teams'},'addAgents':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/queues/:id/users'},'getAgents':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/queues/:id/users'}}),_0x5a527b['chatGroup']=_0x28b6c1(_0x5a527b['baseUrl']+'api/chat/groups/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+'api/chat/groups/describe'},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1afb),'params':{'includeAll':'@includeAll'}},'getUnread':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1a74)},'addMembers':{'isArray':!![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/groups/:id/members'},'getMembers':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x21e1)},'removeMembers':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+'api/chat/groups/:id/members'},'addMessage':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/chat/groups/:id/messages'},'getMessages':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+'api/chat/groups/:id/messages'}}),_0x5a527b[_0x4612cb(0x1f7d)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2845),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/proactive_actions/describe'},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/proactive_actions/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x2625)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/cm/companies/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x134f)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/cm/companies/:id/clone','params':{'includeAll':'@includeAll'}},'addContacts':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x10c8)},'getContacts':{'isArray':![],'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x10c8)}}),_0x5a527b['cmContact']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x251a),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/cm/contacts/describe'},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1b4b),'params':{'includeAll':'@includeAll'}},'merge':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/cm/contacts/merge'},'bulkCreate':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0xebb)},'getTags':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x11b1)},'setTags':{'isArray':!![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x11b1)},'getHoppers':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1b33)},'getHopperHistories':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xd61)},'getHopperFinals':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x16e0)},'getJscriptySessions':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/cm/contacts/:id/jscripty_sessions'},'upload':{'isArray':![],'method':'post','url':_0x5a527b['baseUrl']+_0x4612cb(0xf45)},'import':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1e74)}}),_0x5a527b[_0x4612cb(0x232f)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x193d),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1f83)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1284),'params':{'includeAll':'@includeAll'}},'getPreview':{'isArray':![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+'api/cm/hopper/preview'},'getOpenContacts':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/cm/hopper/opencontacts'}}),_0x5a527b[_0x4612cb(0x25c6)]=_0x28b6c1(_0x5a527b['baseUrl']+'api/cm/hopper_black/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x2728)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/cm/hopper_black/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x711)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x26d5),{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+'api/cm/hopper_final/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/cm/hopper_final/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'countContactsQueueCampaignHopperFinal':{'isArray':!![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/cm/hopper_final/voice/queue/countAttributes/:id'},'countContactsIvrCampaignHopperFinal':{'isArray':!![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x57e)},'moveContactsQueueCampaignHopperFinal':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0xfca)},'moveContactsIvrCampaignHopperFinal':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1af0)},'checkContactHopper':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x26e1)}}),_0x5a527b['cmHopperHistory']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1d04),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/cm/hopper_history/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/cm/hopper_history/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x27ca)]=_0x28b6c1(_0x5a527b['baseUrl']+'api/cm/custom_fields/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2102)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1027),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x798)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x259a),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x17fd)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1652),'params':{'includeAll':'@includeAll'}}}),_0x5a527b['automation']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1eb8),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x14ed)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x148a),'params':{'includeAll':'@includeAll'}},'addConditions':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2472)},'getConditions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2472)},'addActions':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/automations/:id/actions'},'getActions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/automations/:id/actions'}}),_0x5a527b[_0x4612cb(0x14c4)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x2616),{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1cee)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x380),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x168b)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x52e),{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/dispositions/describe'},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x117c),'params':{'includeAll':'@includeAll'}}}),_0x5a527b[_0x4612cb(0xeea)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x3f8),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/conditions/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/conditions/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x5a527b[_0x4612cb(0xcfd)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x444),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x9e6)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/intervals/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'addInterval':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xe79)},'getIntervals':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xe79)},'addIntervals':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0xa3d)}}),_0x5a527b[_0x4612cb(0x2826)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2940),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x10ff)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x28f6),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x4a3)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xd00),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x223c)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1de0),'params':{'includeAll':'@includeAll'}}}),_0x5a527b[_0x4612cb(0x14b9)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/voiceQueuesLog/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/voiceQueuesLog/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1a15),'params':{'includeAll':'@includeAll'}}}),_0x5a527b['schedule']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xa96),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x27b8)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+'api/schedules/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'run':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1034)}}),_0x5a527b[_0x4612cb(0x282b)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xb43),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/sounds/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2592),'params':{'includeAll':_0x4612cb(0x251f)}},'download':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1a26),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0x3c5b3c,_0x5d5657){const _0x5aa824=_0x4612cb,_0x53256d=_0x5d5657();return{'type':_0x53256d['content-type'],'length':_0x53256d[_0x5aa824(0x2983)],'buffer':_0x3c5b3c};}},'delete':{'isArray':![],'method':'delete','url':_0x5a527b['baseUrl']+'api/sounds/:id'}}),_0x5a527b[_0x4612cb(0xac8)]=_0x28b6c1(_0x5a527b['baseUrl']+'api/tags/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2652)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/tags/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x5a527b['template']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2229),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0xbac)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x120f),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x1e8f)]=_0x28b6c1(_0x5a527b['baseUrl']+'api/triggers/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xc68)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0xaef),'params':{'includeAll':_0x4612cb(0x251f)}},'addAllCondition':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1c35)},'addAnyCondition':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x16d9)},'getAllConditions':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/triggers/:id/all_conditions'},'getAnyConditions':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x16d9)},'addAction':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1e02)},'getActions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1e02)}}),_0x5a527b[_0x4612cb(0xefb)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/variables/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+'api/variables/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x239),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x4b1)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x28d),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1823)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x509),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x2969)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x2536),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x28a7)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1e22),'params':{'includeAll':'@includeAll'}}}),_0x5a527b[_0x4612cb(0x1d97)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/analytics/custom_reports/:id',{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x138b)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+'api/analytics/custom_reports/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'preview':{'isArray':!![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/analytics/custom_reports/:id/preview'},'run':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1e2d)},'query':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1861)}}),_0x5a527b[_0x4612cb(0x254)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x2763),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x141c)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1cd6),'params':{'includeAll':_0x4612cb(0x251f)}},'preview':{'isArray':!![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x250a)},'run':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+'api/analytics/default_reports/:id/run'},'query':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x566)}}),_0x5a527b[_0x4612cb(0x1602)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0xe47),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2d2)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/analytics/extracted_reports/:id/clone','params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x442),'responseType':_0x4612cb(0x1063),'cache':![],'transformResponse':function(_0x4131f2,_0x32afad){const _0x46ed7a=_0x4612cb,_0x4d062f=_0x32afad();return{'type':_0x4d062f['content-type'],'length':_0x4d062f[_0x46ed7a(0x2983)],'buffer':_0x4131f2};}}}),_0x5a527b['analyticMetric']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x533),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0xca4)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1291),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x11d1)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x24e5),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0xcc2)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1166),'params':{'includeAll':'@includeAll'}},'bulkCreate':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+'api/analytics/field_reports/create_many','isArray':!![]},'bulkDestroy':{'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x32f),'isArray':!![]},'addFields':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2775)}}),_0x5a527b[_0x4612cb(0x1948)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/analytics/tree_reports/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x108d)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/analytics/tree_reports/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x5a527b['intSalesforceAccount']=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x6e0),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x91a)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1306),'params':{'includeAll':_0x4612cb(0x251f)}},'getConfigurations':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/salesforce/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x392)},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x16f7)}}),_0x5a527b[_0x4612cb(0x1e42)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/salesforce/configurations/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1682)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/salesforce/configurations/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1f24)},'getSubjects':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xc3d)},'getDescriptions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1ef8)}}),_0x5a527b[_0x4612cb(0x290e)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x182b),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xb00)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0xd15),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0xdaa)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xa97),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2275)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2295),'params':{'includeAll':_0x4612cb(0x251f)}},'getConfigurations':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/sugarcrm/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x26b6)},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x158f)}}),_0x5a527b[_0x4612cb(0xb5d)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0xed4),{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x459)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xf7a),'params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/sugarcrm/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/sugarcrm/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/sugarcrm/configurations/:id/descriptions'}}),_0x5a527b[_0x4612cb(0x651)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x6ad),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/sugarcrm/fields/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x9b7),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x1a5e)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x1776),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xef8)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1f7a),'params':{'includeAll':_0x4612cb(0x251f)}},'getConfigurations':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xb46)},'addConfiguration':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/desk/accounts/:id/configurations'},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x119f)}}),_0x5a527b[_0x4612cb(0x16af)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1156),{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xb9d)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/desk/configurations/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xa40)},'getSubjects':{'isArray':![],'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x5ef)},'getDescriptions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x195f)},'getTags':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x17ce)},'setTags':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/desk/configurations/:id/tags'}}),_0x5a527b[_0x4612cb(0x1d68)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x993),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x716)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0xde0),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x1dc7)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2974),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x780)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1c57),'params':{'includeAll':_0x4612cb(0x251f)}},'getConfigurations':{'isArray':![],'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0xd45)},'addConfiguration':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xd45)},'getFields':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x892)}}),_0x5a527b[_0x4612cb(0x1d7e)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x24cb),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x272c)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xf96),'params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1e09)},'getSubjects':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1cf)},'getDescriptions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xcd6)}}),_0x5a527b[_0x4612cb(0xda7)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/zoho/fields/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x253)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2559),'params':{'includeAll':'@includeAll'}}}),_0x5a527b[_0x4612cb(0x1da9)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2bb),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x366)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xaf1),'params':{'includeAll':_0x4612cb(0x251f)}},'getConfigurations':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0xe3b)},'addConfiguration':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xe3b)},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x14db)}}),_0x5a527b['intZendeskConfiguration']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/zendesk/configurations/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/zendesk/configurations/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1229),'params':{'includeAll':_0x4612cb(0x251f)}},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x24dd)},'getSubjects':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/zendesk/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1c9f)},'getTags':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x179b)},'setTags':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x179b)}}),_0x5a527b[_0x4612cb(0x2a0)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2010),{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x1217)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x191d),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x26ff)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1149),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1aea)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x6aa),'params':{'includeAll':_0x4612cb(0x251f)}},'getConfigurations':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1321)},'addConfiguration':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/freshdesk/accounts/:id/configurations'},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1b6d)}}),_0x5a527b[_0x4612cb(0x250c)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1ed4),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x7d8)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x592),'params':{'includeAll':_0x4612cb(0x251f)}},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x28a8)},'getSubjects':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/freshdesk/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x138)},'getTags':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x5fe)},'setTags':{'isArray':!![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x5fe)}}),_0x5a527b[_0x4612cb(0x1c9)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1b3d),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/freshdesk/fields/describe'},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2269),'params':{'includeAll':'@includeAll'}}}),_0x5a527b[_0x4612cb(0xb99)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/vtiger/accounts/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x21bf)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/vtiger/accounts/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'getConfigurations':{'isArray':![],'method':'get','url':_0x5a527b['baseUrl']+'api/integrations/vtiger/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2878)},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1a46)}}),_0x5a527b[_0x4612cb(0x82c)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x454),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x14b8)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1906),'params':{'includeAll':_0x4612cb(0x251f)}},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x7d2)},'getSubjects':{'isArray':![],'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x1da)},'getDescriptions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x8bb)}}),_0x5a527b['intVtigerField']=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x199f),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x256c)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x868),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x2822)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xe7d),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1e2)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x202e),'params':{'includeAll':_0x4612cb(0x251f)}},'getConfigurations':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x150a)},'addConfiguration':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x150a)},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xdd9)}}),_0x5a527b[_0x4612cb(0x799)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2332),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0xbd8)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x906),'params':{'includeAll':_0x4612cb(0x251f)}},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2907)},'getSubjects':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0xcf4)},'getDescriptions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1028)}}),_0x5a527b['intServicenowField']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xa89),{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2158)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x12ab),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0xf5f)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x21b4),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xc20)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/integrations/dynamics365/accounts/:id/clone','params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/dynamics365/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':'post','url':_0x5a527b['baseUrl']+_0x4612cb(0xb40)},'getFields':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1b7c)}}),_0x5a527b[_0x4612cb(0x855)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x1cdc),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/dynamics365/configurations/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x9ed),'params':{'includeAll':_0x4612cb(0x251f)}},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/dynamics365/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+'api/integrations/dynamics365/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x787)}}),_0x5a527b[_0x4612cb(0x1201)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/dynamics365/fields/:id',{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x21e6)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x662),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0xfac)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/freshsales/accounts/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x95d)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x3ba),'params':{'includeAll':_0x4612cb(0x251f)}},'getConfigurations':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2260)},'addConfiguration':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2260)},'getFields':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x13e)}}),_0x5a527b[_0x4612cb(0x2172)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/freshsales/configurations/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+'api/integrations/freshsales/configurations/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/freshsales/configurations/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'getSubjects':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1db8)},'getDescriptions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x18cc)},'getFields':{'isArray':![],'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x1b77)}}),_0x5a527b[_0x4612cb(0x1ce0)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x16a3),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/integrations/freshsales/fields/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x327),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b['network']=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x2204),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1c87)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1b2b),'params':{'includeAll':'@includeAll'}}}),_0x5a527b['chatQueueReport']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1b2e),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/chat/reports/queue/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1e96),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x72d)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x9b2),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x26ca)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x436),'params':{'includeAll':_0x4612cb(0x251f)}},'getUsers':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x177e)}}),_0x5a527b[_0x4612cb(0x73f)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1be3),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x697)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x25c5),'params':{'includeAll':'@includeAll'}}}),_0x5a527b[_0x4612cb(0x155a)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xa91),{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x8b7)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1255),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x192)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x11ea),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1811)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/jscripty/sessions/reports/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'getQuestions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x10d7)}}),_0x5a527b[_0x4612cb(0x1864)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x1210),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/sms/reports/queue/describe'},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xb17),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x1959)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x154a),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xc04)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x44f),'params':{'includeAll':'@includeAll'}}}),_0x5a527b[_0x4612cb(0x1f50)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/square/details/reports/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1b5b)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x578),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x1fb9)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1f66),{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+'api/jscripty/projects/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0xdb3),'params':{'includeAll':_0x4612cb(0x251f)}},'getSessions':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x4fa)},'getAnswers':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1e37)},'getSummary':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x12a7),'responseType':_0x4612cb(0x1063),'cache':![],'transformResponse':function(_0x4125d6,_0x164227){const _0x254475=_0x4612cb,_0x375010=_0x164227();return{'type':_0x375010[_0x254475(0xab8)],'length':_0x375010['content-length'],'buffer':_0x4125d6};}}}),_0x5a527b[_0x4612cb(0x28d6)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x100f),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x22bd)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1d54),'params':{'includeAll':_0x4612cb(0x251f)}},'addLogo':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/settings/:id/logo'},'addLogoLogin':{'isArray':![],'method':'post','url':_0x5a527b['baseUrl']+'api/settings/:id/logo_login'},'getLogo':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/settings/:id/logo'},'getLogoLogin':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x8ba)},'gdpr':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2903)},'addPreferred':{'isArray':![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1820)},'getPreferred':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1820)},'addFavicon':{'isArray':![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+'api/settings/:id/favicon'},'getFavicon':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/settings/:id/favicon'},'getDate':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xcc0)}}),_0x5a527b[_0x4612cb(0x1886)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/square/odbc/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x914)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/square/odbc/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'test':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0xa6e)}}),_0x5a527b[_0x4612cb(0x2101)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x123a),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x25f3)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/square/projects/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}},'addUsers':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x20ea)},'removeUsers':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x20ea)},'getUsers':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/square/projects/:id/users'}}),_0x5a527b[_0x4612cb(0x59a)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/square/recordings/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/square/recordings/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x26a4),'params':{'includeAll':_0x4612cb(0x251f)}},'download':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x275e),'responseType':_0x4612cb(0x1063),'cache':![],'transformResponse':function(_0x991931,_0x1bc33d){const _0x24f425=_0x4612cb,_0x16682c=_0x1bc33d();return{'type':_0x16682c[_0x24f425(0xab8)],'length':_0x16682c[_0x24f425(0x2983)],'buffer':_0x991931};}}}),_0x5a527b['squareMessage']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x857),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xee2)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1897),'params':{'includeAll':'@includeAll'}}}),_0x5a527b[_0x4612cb(0x15ea)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xfd3),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0xc4b)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1cab),'params':{'includeAll':_0x4612cb(0x251f)}},'getQueues':{'isArray':!![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+'api/teams/:id/queues'},'addQueues':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x16f1)},'removeQueues':{'isArray':![],'method':'delete','url':_0x5a527b[_0x4612cb(0xeba)]+'api/teams/:id/queues'},'addAgents':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1714)},'removeAgents':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1714)},'getAgents':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1714)}}),_0x5a527b[_0x4612cb(0x1947)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x26fc),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x15fd)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2c9),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x1aba)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x5ba),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xf70)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x4ba),'params':{'includeAll':'@includeAll'}},'getHoppers':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1ad2)},'getHopperHistories':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x17e5)},'getHopperFinals':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/campaigns/:id/hopper_finals'},'getHopperBlacks':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x4c5)},'getLists':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1699)},'addLists':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1699)},'removeLists':{'isArray':!![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1699)},'getBlackLists':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xf8f)},'addBlackLists':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/campaigns/:id/blacklists'},'removeBlackLists':{'isArray':!![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xf8f)}}),_0x5a527b[_0x4612cb(0x25e8)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x148e),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x4c7)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x24c9),'params':{'includeAll':'@includeAll'}}}),_0x5a527b['attachment']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1e2f),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1f63)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1c3a),'params':{'includeAll':_0x4612cb(0x251f)}},'download':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2601),'responseType':_0x4612cb(0x1063),'cache':![],'transformResponse':function(_0x53df4b,_0x23aba4){const _0x5f5427=_0x4612cb,_0x32e344=_0x23aba4();return{'type':_0x32e344[_0x5f5427(0xab8)],'length':_0x32e344[_0x5f5427(0x2983)],'buffer':_0x53df4b};}}}),_0x5a527b[_0x4612cb(0x1141)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x24a5),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/plugins/describe'},'clone':{'method':'post','url':_0x5a527b['baseUrl']+_0x4612cb(0x145b),'params':{'includeAll':_0x4612cb(0x251f)}},'download':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x291),'responseType':_0x4612cb(0x1063),'cache':![],'transformResponse':function(_0x54d593,_0x2a03f8){const _0x4879e6=_0x4612cb,_0x30d970=_0x2a03f8();return{'type':_0x30d970[_0x4879e6(0xab8)],'length':_0x30d970['content-length'],'buffer':_0x54d593};}},'upload':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x278e)},'delete':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x24a5)},'webhookGet':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1caa)},'webhookPost':{'isArray':![],'method':'post','url':_0x5a527b['baseUrl']+'api/plugins/webhook'}}),_0x5a527b[_0x4612cb(0x1312)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x17ed),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x17a1)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xfb4),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x2d3)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/chat/reports/transfer/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x2314)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x108),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x3f9)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xa6f),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x266)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2168),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x256d)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/openchannel/reports/transfer/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x82f)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+'api/openchannel/reports/transfer/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x1d62)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/sms/reports/transfer/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2214)},'clone':{'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x421),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b['cmList']=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x1dc1),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x152e)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x21d9),'params':{'includeAll':_0x4612cb(0x251f)}},'addDisposition':{'isArray':![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x18dd)},'getDispositions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x18dd)},'removeDispositions':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x18dd)},'addContacts':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/cm/lists/:id/contacts'},'getContacts':{'isArray':!![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x23d4)},'getContactsCsv':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x608),'responseType':_0x4612cb(0x1063),'cache':![],'transformResponse':function(_0x5a95f9,_0x407020){const _0x34256f=_0x4612cb,_0x459ddb=_0x407020();return{'type':_0x459ddb[_0x34256f(0xab8)],'length':_0x459ddb[_0x34256f(0x2983)],'buffer':_0x5a95f9};}},'addCustomField':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x27d)},'getCustomFields':{'isArray':![],'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x27d)},'addAgents':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1326)},'removeAgents':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1326)},'getAgents':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1326)}}),_0x5a527b['voicePrefix']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+'api/voice/prefixes/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1da8)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xd17),'params':{'includeAll':_0x4612cb(0x251f)}},'addAgents':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x24d1)},'removeAgents':{'isArray':![],'method':'delete','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x24d1)},'getAgents':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x24d1)}}),_0x5a527b[_0x4612cb(0x16a8)]=_0x28b6c1(_0x5a527b['baseUrl']+'api/userProfiles/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/userProfiles/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x46e),'params':{'includeAll':_0x4612cb(0x251f)}},'addSections':{'isArray':!![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x6fc)},'removeSections':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x6fc)},'getSections':{'isArray':!![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x6fc)},'addResources':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x16b3)},'removeResources':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/userProfiles/:id/resources'},'getResources':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x16b3)}}),_0x5a527b[_0x4612cb(0x16b2)]=_0x28b6c1(_0x5a527b['baseUrl']+'api/userProfile/sections/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xea0)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/userProfile/sections/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b['userProfileResource']=_0x28b6c1(_0x5a527b['baseUrl']+'api/userProfile/resources/:id',{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x23b2)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1c6),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x1df9)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x6d7),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x5ce)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1d11),'params':{'includeAll':_0x4612cb(0x251f)}},'sendNotification':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xf58)}}),_0x5a527b[_0x4612cb(0x217c)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x1523),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0xbe2)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x168c),'params':{'includeAll':_0x4612cb(0x251f)}},'addDisposition':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/whatsapp/accounts/:id/dispositions'},'getDispositions':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1079)},'removeDispositions':{'isArray':![],'method':'delete','url':_0x5a527b[_0x4612cb(0xeba)]+'api/whatsapp/accounts/:id/dispositions'},'addAnswer':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+'api/whatsapp/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2636)},'removeAnswers':{'isArray':![],'method':'delete','url':_0x5a527b[_0x4612cb(0xeba)]+'api/whatsapp/accounts/:id/canned_answers'},'addAgents':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2285)},'removeAgents':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x2285)},'getAgents':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2285)},'addApplications':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x14fb)},'getApplications':{'isArray':![],'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x14fb)},'notify':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/whatsapp/accounts/:id/notify'},'send':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/whatsapp/accounts/:id/send'}}),_0x5a527b[_0x4612cb(0x1563)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x3a6),{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x847)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x17ea),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x2076)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1170),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1928)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1c77),'params':{'includeAll':'@includeAll'}},'addMessage':{'isArray':![],'method':'post','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x21cb)},'getMessages':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x21cb)},'addTags':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x17c8)},'removeTags':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x17c8)},'download':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/whatsapp/interactions/:id/download','responseType':_0x4612cb(0x1063),'cache':![],'transformResponse':function(_0x1c2012,_0x1a586c){const _0x367e06=_0x4612cb,_0x4305f0=_0x1a586c();return{'type':_0x4305f0[_0x367e06(0xab8)],'length':_0x4305f0[_0x367e06(0x2983)],'buffer':_0x1c2012};}}}),_0x5a527b['whatsappMessage']=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x12e7),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1a5b)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x8cf),'params':{'includeAll':_0x4612cb(0x251f)}},'accept':{'isArray':![],'method':_0x4612cb(0x2358),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1ff8)},'reject':{'isArray':![],'method':_0x4612cb(0x2358),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1266)},'status':{'isArray':![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/whatsapp/messages/:id/status'}}),_0x5a527b[_0x4612cb(0x1a1a)]=_0x28b6c1(_0x5a527b['baseUrl']+_0x4612cb(0x91d),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b['baseUrl']+_0x4612cb(0x1fbc)},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1dab),'params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0xe30)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x157c),{'id':'@id'},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+'api/whatsapp/reports/transfer/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/whatsapp/reports/transfer/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b[_0x4612cb(0x296d)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x12c3),{'id':_0x4612cb(0x15dd)},{'update':{'method':_0x4612cb(0x2358)},'describe':{'method':'get','url':_0x5a527b['baseUrl']+'api/whatsapp/queues/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b['baseUrl']+_0x4612cb(0x26fa),'params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':'get','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x16bc)},'getTeams':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b['baseUrl']+_0x4612cb(0x1c40)},'addTeams':{'isArray':!![],'method':'post','url':_0x5a527b['baseUrl']+_0x4612cb(0x1c40)},'removeTeams':{'isArray':![],'method':'delete','url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x1c40)},'addAgents':{'isArray':!![],'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x4fc)},'removeAgents':{'isArray':![],'method':_0x4612cb(0xabd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/whatsapp/queues/:id/users'},'getAgents':{'isArray':![],'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x4fc)}}),_0x5a527b[_0x4612cb(0x12e5)]=_0x28b6c1(_0x5a527b[_0x4612cb(0xeba)]+_0x4612cb(0x2057),{'id':_0x4612cb(0x15dd)},{'update':{'method':'put'},'describe':{'method':_0x4612cb(0x896),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/cloudProviders/describe'},'clone':{'method':_0x4612cb(0x24cd),'url':_0x5a527b[_0x4612cb(0xeba)]+'api/cloudProviders/:id/clone','params':{'includeAll':_0x4612cb(0x251f)}}}),_0x5a527b;}const _0x353117=_0x30695f;;_0x4e17cd['$inject']=['$translateProvider',_0x49a1e3(0x21f8),_0x49a1e3(0x1012)];function _0x4e17cd(_0x2865c2,_0x377ac7,_0x2b60a3){const _0x52bdca=_0x49a1e3;_0x2b60a3[_0x52bdca(0x116)]({'position':_0x52bdca(0x19b4),'sound':![],'html':!![],'theme':'material'}),_0x2865c2[_0x52bdca(0x1fd5)](_0x52bdca(0x1daa),{'urlTemplate':'{part}/i18n/{lang}.json'}),_0x2865c2[_0x52bdca(0x1b80)]('en'),_0x377ac7[_0x52bdca(0x1bde)](_0x52bdca(0xd3d)),_0x2865c2[_0x52bdca(0x2790)](null);}const _0x18825e=_0x4e17cd;;_0x3b5a86[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x2207),_0x49a1e3(0x298c),_0x49a1e3(0x7a7),_0x49a1e3(0xa19),_0x49a1e3(0x680)];function _0x3b5a86(_0x254cea,_0x4da003,_0x4d4fec,_0x43e726,_0x5cb729){const _0x485f5f=_0x49a1e3,_0x50bd2=this;_0x50bd2[_0x485f5f(0x41f)]=_0x254cea[_0x485f5f(0x41f)],_0x50bd2['direction']=_0x485f5f(0x142a);const _0x358d6a=['ar','fa','he'],_0x1bf552=_0x4d4fec['get']('motion.language');_0x1bf552&&(_0x4da003[_0x485f5f(0x50e)](_0x1bf552),_0x358d6a[_0x485f5f(0x1b28)](_0x1bf552)>=0x0&&_0x43e726[_0x485f5f(0x28d6)][_0x485f5f(0x896)]({'id':0x1})[_0x485f5f(0x15e7)][_0x485f5f(0x64a)](function(_0x4f1731){const _0x9ab9dc=_0x485f5f;_0x4f1731&&_0x4f1731[_0x9ab9dc(0x243)]&&(_0x50bd2[_0x9ab9dc(0x484)]='rtl');})[_0x485f5f(0x20cd)](function(_0x4efd42){const _0x45bc84=_0x485f5f;_0x4efd42&&_0x5cb729[_0x45bc84(0x1bd0)]({'title':'Error','msg':_0x4efd42[_0x45bc84(0x1c52)]?_0x4efd42[_0x45bc84(0x1c52)][_0x45bc84(0x18ca)]||_0x4efd42[_0x45bc84(0x18ca)]||_0x4efd42:_0x4efd42['message']||_0x4efd42});}));}const _0x2bc842=_0x3b5a86;;_0x3eb7ad[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x298c)],_0xed1669[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1ce1),_0x49a1e3(0x298c)];function _0xed1669(_0x3543b8,_0x54a74e){return function(_0x18d656){const _0x436548=a0_0x4127,_0x2d138f=new Date(),_0x4c72a6=new Date(_0x18d656);if(_0x4c72a6[_0x436548(0x24e)]()===_0x2d138f[_0x436548(0x24e)]()&&_0x4c72a6['getMonth']()===_0x2d138f['getMonth']()&&_0x4c72a6[_0x436548(0x1856)]()===_0x2d138f[_0x436548(0x1856)]())return _0x3543b8(_0x436548(0x232e))(_0x4c72a6['getTime'](),_0x436548(0x1ceb));if(_0x4c72a6[_0x436548(0x24e)]()===_0x2d138f[_0x436548(0x24e)]()-0x1&&_0x4c72a6[_0x436548(0xe10)]()===_0x2d138f[_0x436548(0xe10)]()&&_0x4c72a6[_0x436548(0x1856)]()===_0x2d138f[_0x436548(0x1856)]())return _0x54a74e[_0x436548(0x2292)]('DASHBOARDS.YESTERDAY')+'\x20'+_0x3543b8(_0x436548(0x232e))(_0x4c72a6['getTime'](),_0x436548(0x1ceb));return _0x3543b8(_0x436548(0x232e))(_0x4c72a6[_0x436548(0x184c)](),_0x436548(0x420));};}function _0x2e01cf(){return function(_0x337b80,_0x55ea36,_0x3df145){const _0x160401={};let _0x16bc9d=0x0,_0x4c1cf8;for(_0x4c1cf8 in _0x337b80){_0x16bc9d>=_0x3df145&&(_0x160401[_0x4c1cf8]=_0x337b80[_0x4c1cf8]);if(++_0x16bc9d===_0x3df145+_0x55ea36)break;}return _0x160401;};}function _0x577512(){const _0x1c7de7=_0x49a1e3,_0x5ddab7=[{'value':_0x1c7de7(0x1473)},{'value':_0x1c7de7(0x183c)},{'value':_0x1c7de7(0x2211)},{'value':_0x1c7de7(0x2009)},{'value':'may'},{'value':'jun'},{'value':_0x1c7de7(0xc94)},{'value':_0x1c7de7(0x33d)},{'value':_0x1c7de7(0x13d)},{'value':_0x1c7de7(0x301)},{'value':_0x1c7de7(0x223)},{'value':_0x1c7de7(0xdea)}],_0x5ced67=[{'value':'1'},{'value':'2'},{'value':'3'},{'value':'4'},{'value':'5'},{'value':'6'},{'value':'7'},{'value':'8'},{'value':'9'},{'value':'10'},{'value':'11'},{'value':'12'}],_0x52873c=[{'value':_0x1c7de7(0x1e58)},{'value':'tue'},{'value':'wed'},{'value':_0x1c7de7(0x135c)},{'value':_0x1c7de7(0x5c3)},{'value':_0x1c7de7(0xbe3)},{'value':_0x1c7de7(0x278c)}],_0x40367a=[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 _0x5ddab7;},'getMonthNumber':function(){return _0x5ced67;},'getDaysOfWeek':function(){return _0x52873c;},'getDaysOfMonth':function(){return _0x40367a;}};}function _0x3eb7ad(_0x28d452){const _0x1fde85=_0x49a1e3;return{'Today':_0x28d452[_0x1fde85(0x2292)](_0x1fde85(0x1576)),'Yesterday':_0x28d452[_0x1fde85(0x2292)]('DASHBOARDS.YESTERDAY'),'This\x20Week':_0x28d452[_0x1fde85(0x2292)](_0x1fde85(0xb92)),'Last\x20Week':_0x28d452[_0x1fde85(0x2292)]('DASHBOARDS.LAST_WEEK'),'This\x20Month':_0x28d452[_0x1fde85(0x2292)](_0x1fde85(0x209c)),'Last\x20Month':_0x28d452[_0x1fde85(0x2292)]('DASHBOARDS.LAST_MONTH'),'This\x20Year':_0x28d452['instant'](_0x1fde85(0x2363)),'Last\x20Year':_0x28d452[_0x1fde85(0x2292)]('DASHBOARDS.LAST_YEAR'),'January':_0x28d452['instant'](_0x1fde85(0x22f8)),'February':_0x28d452[_0x1fde85(0x2292)](_0x1fde85(0x1444)),'March':_0x28d452[_0x1fde85(0x2292)](_0x1fde85(0x1fc5)),'April':_0x28d452[_0x1fde85(0x2292)](_0x1fde85(0xb56)),'May':_0x28d452[_0x1fde85(0x2292)](_0x1fde85(0x606)),'June':_0x28d452[_0x1fde85(0x2292)](_0x1fde85(0xbcb)),'July':_0x28d452[_0x1fde85(0x2292)](_0x1fde85(0x115b)),'August':_0x28d452['instant'](_0x1fde85(0x1bb2)),'September':_0x28d452[_0x1fde85(0x2292)](_0x1fde85(0x5c6)),'October':_0x28d452[_0x1fde85(0x2292)](_0x1fde85(0x25a4)),'November':_0x28d452[_0x1fde85(0x2292)](_0x1fde85(0x204b)),'December':_0x28d452[_0x1fde85(0x2292)](_0x1fde85(0x21b6)),'Mon':_0x28d452['instant'](_0x1fde85(0x262e)),'Tue':_0x28d452[_0x1fde85(0x2292)](_0x1fde85(0x1f37)),'Wed':_0x28d452[_0x1fde85(0x2292)](_0x1fde85(0x1359)),'Thu':_0x28d452[_0x1fde85(0x2292)](_0x1fde85(0x2408)),'Fri':_0x28d452['instant'](_0x1fde85(0x5a0)),'Sat':_0x28d452[_0x1fde85(0x2292)](_0x1fde85(0x219a)),'Sun':_0x28d452[_0x1fde85(0x2292)]('DASHBOARDS.SUN')};}function _0x284edb(){return{'enqueue':function(_0x442854){const _0x354b40=a0_0x4127;this[_0x354b40(0x992)]=this[_0x354b40(0x992)]?this['tail']['finally'](_0x442854):_0x442854();}};};const _0xb10e8=_0x2e4a48['p']+_0x49a1e3(0x90e);;;const _0x322101=_0x2e4a48['p']+_0x49a1e3(0x2590);;const _0x36f0b7=_0x2e4a48['p']+_0x49a1e3(0x2800);;const _0x446f92=_0x2e4a48['p']+_0x49a1e3(0xf25);;;const _0x1c4e94=_0x2e4a48['p']+_0x49a1e3(0x26ce);;;const _0x5d125d=_0x2e4a48['p']+_0x49a1e3(0x2942);;;const _0x482c57=_0x2e4a48['p']+_0x49a1e3(0x1d1a);;_0x328d4b[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x20ad),'$urlServiceProvider',_0x49a1e3(0xc14)];function _0x328d4b(_0x492ef6,_0x1a3df6,_0x22f4aa){const _0x4d1ed8=_0x49a1e3;_0x22f4aa[_0x4d1ed8(0xb94)](!![]),_0x1a3df6['rules'][_0x4d1ed8(0x224c)](_0x4d1ed8(0x1aa6));let _0x4a5dbb;angular[_0x4d1ed8(0xd16)]([_0x4d1ed8(0xb3e)])[_0x4d1ed8(0x15d5)]([_0x4d1ed8(0x7a7),function(_0x3813c3){_0x4a5dbb=_0x3813c3;}]);const _0x472bc5=_0x4a5dbb['get'](_0x4d1ed8(0x27fe))||_0x4d1ed8(0x14a6),_0x3e088b={'verticalNavigation':{'main':_0x46bdf5,'toolbar':_0xb10e8,'navigation':_0x36f0b7,'header':_0x1c4e94,'footer':_0x5d125d},'verticalNavigationFullwidthToolbar':{'main':_0x1e3984,'toolbar':'','navigation':_0x36f0b7},'verticalNavigationFullwidthToolbar2':{'main':_0x50ac25,'toolbar':'','navigation':_0x446f92},'horizontalNavigation':{'main':_0xb2e37,'toolbar':'','navigation':_0x322101},'contentOnly':{'main':_0x3c2567,'toolbar':'','navigation':''},'contentWithToolbar':{'main':_0x4aebe9,'toolbar':'','navigation':''}};_0x492ef6[_0x4d1ed8(0x14f2)](_0x4d1ed8(0x16e1),{'abstract':!![],'views':{'main@':{'templateUrl':_0x3e088b[_0x472bc5][_0x4d1ed8(0x1f17)],'controller':'MainController\x20as\x20vm'},'toolbar@app':{'templateUrl':_0x3e088b[_0x472bc5]['toolbar'],'controller':_0x4d1ed8(0x1c20)},'navigation@app':{'templateUrl':_0x3e088b[_0x472bc5][_0x4d1ed8(0x190b)],'controller':'NavigationController\x20as\x20vm'},'quickPanel@app':{'templateUrl':_0x482c57,'controller':_0x4d1ed8(0x2706)},'header@app':{'templateUrl':_0x3e088b[_0x472bc5][_0x4d1ed8(0x1b0b)],'controller':_0x4d1ed8(0x23e3)},'footer@app':{'templateUrl':_0x3e088b[_0x472bc5][_0x4d1ed8(0x90c)],'controller':_0x4d1ed8(0x370)}},'resolve':{'license':['apiResolver',function(_0xbd49b7){return _0xbd49b7['resolve']('license@get');}],'setting':['apiResolver',function(_0x2b3c9b){const _0x478f62=_0x4d1ed8;return _0x2b3c9b[_0x478f62(0x1268)](_0x478f62(0x23fb),{'id':0x1});}]}});}const _0x10cc7c=_0x328d4b;;_0x5565a3[_0x49a1e3(0x1e73)]=[_0x49a1e3(0xd71),_0x49a1e3(0x1081)];function _0x5565a3(_0x4387fe,_0x5ab2c0){const _0x5038cc=_0x49a1e3;_0x4387fe[_0x5038cc(0xc4a)]({},_0x5ab2c0[_0x5038cc(0x259c)]),_0x4387fe[_0x5038cc(0x1a7d)]({},_0x5ab2c0[_0x5038cc(0x198a)]);}const _0x15e1bf=_0x5565a3;var _0x5ac842=_0x2e4a48(0x15ef);;_0x58739e['$inject']=[_0x49a1e3(0x2159),_0x49a1e3(0xdcf)];function _0x58739e(_0x212cae,_0x13d561){let _0x1302b7;function _0x13d74e(){const _0x1e6d87=a0_0x4127,_0x1b04b5=!![]?window['io']:0x0,_0x6c1fed={'query':_0x1e6d87(0xd99)+_0x13d561['getCurrentUser']()['id'],'transports':[_0x1e6d87(0xc03),_0x1e6d87(0x1cf9)]};_0x1302b7=!![]?_0x1b04b5(_0x6c1fed):0x0;}return{'connect':_0x13d74e,'on':function(_0x5cf1be,_0x521f32){const _0x46d281=a0_0x4127;_0x521f32=_0x521f32||angular[_0x46d281(0xbb6)],!_0x1302b7&&_0x13d74e(),_0x1302b7['on'](_0x5cf1be,function(){const _0x2d8879=_0x46d281,_0x37cf61=arguments;_0x212cae[_0x2d8879(0x961)](function(){const _0x28a6d9=_0x2d8879;_0x521f32[_0x28a6d9(0x759)](_0x1302b7,_0x37cf61);});});},'onWithoutApply':function(_0x2d9aac,_0x531226){const _0x228ae3=a0_0x4127;_0x531226=_0x531226||angular[_0x228ae3(0xbb6)],!_0x1302b7&&_0x13d74e(),_0x1302b7['on'](_0x2d9aac,function(){const _0x508ddb=_0x228ae3;_0x531226[_0x508ddb(0x759)](_0x1302b7,arguments);});},'emit':function(_0x5bebc5,_0x41b762,_0x3b3e2a){const _0x45f95c=a0_0x4127;_0x3b3e2a=_0x3b3e2a||angular[_0x45f95c(0xbb6)],!_0x1302b7&&_0x13d74e(),_0x1302b7[_0x45f95c(0x2871)](_0x5bebc5,_0x41b762,function(){const _0x598452=_0x45f95c,_0x1c412c=arguments;_0x212cae[_0x598452(0x961)](function(){const _0x1bbc1a=_0x598452;_0x3b3e2a[_0x1bbc1a(0x759)](_0x1302b7,_0x1c412c);});});},'removeAllListeners':function(_0x318a0e){const _0x5370ba=a0_0x4127;!_0x1302b7&&_0x13d74e(),_0x1302b7[_0x5370ba(0x1951)](_0x318a0e);},'removeListener':function(_0x42b77e,_0x4ffe1c){!_0x1302b7&&_0x13d74e(),_0x1302b7['removeListener'](_0x42b77e,_0x4ffe1c);},'disconnect':function(){!_0x1302b7&&_0x13d74e(),_0x1302b7['disconnect']();}};}const _0x3d7e79=_0x58739e;;_0x4a2d86[_0x49a1e3(0x1e73)]=[_0x49a1e3(0x1674),'$rootScope',_0x49a1e3(0x298c),_0x49a1e3(0xbe5),_0x49a1e3(0x753),'Auth',_0x49a1e3(0x680),_0x49a1e3(0x1947),_0x49a1e3(0xa19),_0x49a1e3(0x28d6)];function _0x4a2d86(_0x34e193,_0x524b41,_0x225fd2,_0x492d45,_0x311fab,_0x2e1b2c,_0x207a9f,_0x5664b3,_0x1bfa14,_0x53736c){const _0x2818ba=_0x49a1e3,_0x3a00c2=this;_0x207a9f[_0x2818ba(0x54c)]();function _0x38a16d(){const _0xb3ede6=_0x2818ba;return _0x2e1b2c[_0xb3ede6(0x808)]()&&_0x2e1b2c['hasRole'](_0xb3ede6(0x11ae));}_0x3a00c2[_0x2818ba(0x11f4)]=_0x38a16d;function _0x300c8d(_0x3f6bab,_0x23a9b9){const _0x532b4f=_0x2818ba;return{'id':_0x3f6bab,'title':_0x23a9b9[_0x532b4f(0x2494)]||_0x532b4f(0x23af),'state':_0x532b4f(0x1088),'stateParams':_0x23a9b9,'weight':0x2,'hidden':function(){const _0x4e5bc0=_0x532b4f;return _0x2e1b2c['hasRole'](_0x4e5bc0(0x11ae))||!_0x2e1b2c['hasPermission'](_0x3f6bab)&&!_0x2e1b2c[_0x4e5bc0(0x4de)](_0x4e5bc0(0x333));}};}function _0x1ac357(_0x28e013,_0x4ac509){const _0x28a427=_0x2818ba;return{'id':_0x28e013,'title':_0x4ac509[_0x28a427(0x2494)]||_0x28a427(0x23af),'state':_0x28a427(0x1f84),'stateParams':_0x4ac509,'weight':0x2,'hidden':function(){const _0x487a25=_0x28a427;return _0x2e1b2c[_0x487a25(0x4de)](_0x487a25(0x11ae))||!_0x2e1b2c[_0x487a25(0x1244)](_0x28e013)&&!_0x2e1b2c[_0x487a25(0x4de)](_0x487a25(0x333));}};}function _0x51f9db(_0xeb1b52,_0x922ecf){const _0x1a2fa2=_0x2818ba,_0x5dd1bf={'user':_0x28c606()[_0x1a2fa2(0x27bb)](_0x2e1b2c[_0x1a2fa2(0x808)](),['id','name','fullname',_0x1a2fa2(0xd47),'role',_0x1a2fa2(0xe2f),'interface'])};_0x922ecf[_0x1a2fa2(0x69a)]=_0x47f9c8()[_0x1a2fa2(0x226c)](_0x922ecf[_0x1a2fa2(0x69a)],_0x5dd1bf),_0x311fab[_0x1a2fa2(0x1dbc)](_0x1a2fa2(0x28bd)+_0xeb1b52,{'id':_0xeb1b52,'title':_0x922ecf['name'],'translate':_0x922ecf[_0x1a2fa2(0x2494)],'state':'plugin_'+_0x922ecf['id'],'stateParams':_0x922ecf,'view':_0x1a2fa2(0x1141),'icon':_0x922ecf[_0x1a2fa2(0x1cde)],'weight':0xc,'hidden':function(){const _0x21be8f=_0x1a2fa2;return!_0x2e1b2c[_0x21be8f(0x1244)](_0xeb1b52);}});}_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x1018),{'title':_0x2818ba(0xac5),'group':!![],'weight':0x1,'hidden':function(){const _0x17b5ff=_0x2818ba;return _0x2e1b2c[_0x17b5ff(0x4de)](_0x17b5ff(0x11ae));}}),_0x1bfa14[_0x2818ba(0x12a3)][_0x2818ba(0x896)]()[_0x2818ba(0x15e7)][_0x2818ba(0x64a)](function(_0x2daad0){const _0x37cca3=_0x2818ba;_0x3a00c2[_0x37cca3(0x12a3)]=_0x2daad0&&_0x2daad0['current']?_0x2daad0['current']:'UNKNOWN';})[_0x2818ba(0x20cd)](function(){const _0x546630=_0x2818ba;_0x3a00c2[_0x546630(0x12a3)]=_0x546630(0x2004);})[_0x2818ba(0x988)](function(){const _0x1f288e=_0x2818ba;_0x492d45[_0x1f288e(0x1dbc)]('version',{'title':_0x1f288e(0x250b)+_0x3a00c2[_0x1f288e(0x12a3)],'group':!![],'weight':0x2,'hidden':function(){const _0x13d94e=_0x1f288e;return _0x2e1b2c['hasRole'](_0x13d94e(0x11ae));}});});function _0x5f200d(_0x5111a6){const _0x73ef74=_0x2818ba;return _0x28c606()[_0x73ef74(0x1de5)](_0x5111a6['children'],function(_0x15024f){return _0x15024f['id'];});}_0x2e1b2c[_0x2818ba(0xa9f)]()&&(_0x5664b3[_0x2818ba(0x11c6)]&&_0x207a9f['warning']({'msg':_0x225fd2[_0x2818ba(0x2292)](_0x2818ba(0x18aa)),'showClose':!![],'timeout':![]}),_0x1bfa14['dashboard'][_0x2818ba(0x896)]()[_0x2818ba(0x15e7)][_0x2818ba(0x64a)](function(_0x12fd9c){const _0x1bb2f=_0x2818ba;let _0x352bb9=0x0;for(let _0x405306=0x0;_0x405306<_0x12fd9c[_0x1bb2f(0x28b8)][_0x1bb2f(0x1b9e)];_0x405306+=0x1){_0x352bb9=0x1869f+_0x12fd9c[_0x1bb2f(0x28b8)][_0x405306]['id'],_0x492d45['saveItem'](_0x1bb2f(0xaf0)+_0x352bb9,_0x300c8d(_0x352bb9,_0x12fd9c[_0x1bb2f(0x28b8)][_0x405306]));}}),_0x1bfa14[_0x2818ba(0x1141)]['get']({'active':!![]})['$promise'][_0x2818ba(0x64a)](function(_0x122885){const _0x38df97=_0x2818ba;let _0x339dcb=0x0;if(_0x122885['count']){const _0x4bfa97=_0x28c606()[_0x38df97(0xcec)](_0x122885[_0x38df97(0x28b8)],function(_0x22caad){const _0x4f28ff=_0x38df97;return _0x22caad[_0x4f28ff(0x14b7)]!=_0x4f28ff(0x233a)&&_0x22caad['sidebar']!='agentOnly';});if(_0x4bfa97[_0x38df97(0x1b9e)]>0x0){_0x492d45[_0x38df97(0x1dbc)](_0x38df97(0x13c),{'id':0x76c,'title':'Plugins','translate':_0x38df97(0x1a88),'icon':_0x38df97(0xd46),'permissions':{'hidden':!![]},'weight':0x11,'hidden':function(){const _0x246187=_0x38df97;return _0x2e1b2c[_0x246187(0x4de)](_0x246187(0x11ae))||!_0x2e1b2c[_0x246187(0xc41)](_0x5f200d(this))&&!_0x2e1b2c[_0x246187(0x4de)](_0x246187(0x333));}});for(let _0x3d23a2=0x0;_0x3d23a2<_0x4bfa97['length'];_0x3d23a2+=0x1){_0x339dcb=0x15b38+_0x4bfa97[_0x3d23a2]['id'],_0x492d45[_0x38df97(0x1dbc)](_0x38df97(0x164d)+_0x339dcb,_0x1ac357(_0x339dcb,_0x4bfa97[_0x3d23a2]));}_0x492d45[_0x38df97(0x768)]();}const _0x28d276=_0x28c606()['filter'](_0x122885[_0x38df97(0x28b8)],function(_0x255a9a){const _0x3abab5=_0x38df97;return _0x255a9a['sidebar']!=_0x3abab5(0x233a)&&_0x255a9a[_0x3abab5(0x14b7)]!=_0x3abab5(0x4b6);});if(_0x28d276[_0x38df97(0x1b9e)]>0x0)for(let _0x1d82ff=0x0;_0x1d82ff<_0x28d276['length'];_0x1d82ff+=0x1){_0x339dcb=0x15b38+_0x28d276[_0x1d82ff]['id'],_0x51f9db(_0x339dcb,_0x28d276[_0x1d82ff]);}}})),_0x5664b3[_0x2818ba(0x1ad6)]&&!_0x53736c[_0x2818ba(0xe2d)]&&_0x53736c['pageTitle']&&angular['element'](_0x2818ba(0x51f))[_0x2818ba(0x1dd2)](_0x53736c['pageTitle']),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0xf5e),{'id':0x64,'title':_0x2818ba(0x1825),'translate':_0x2818ba(0x28fe),'icon':_0x2818ba(0x271b),'weight':0x2,'hidden':function(){const _0x19c257=_0x2818ba;return _0x2e1b2c[_0x19c257(0x4de)](_0x19c257(0x11ae))||!_0x2e1b2c[_0x19c257(0xc41)](_0x5f200d(this))&&!_0x2e1b2c[_0x19c257(0x4de)](_0x19c257(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x256b),{'id':0x65,'title':'General','route':'','translate':_0x2818ba(0xa31),'state':'app.dashboards.general','weight':0x1,'hidden':function(){const _0x57c78a=_0x2818ba;return _0x2e1b2c[_0x57c78a(0x4de)](_0x57c78a(0x11ae))||!_0x2e1b2c[_0x57c78a(0x1244)](0x65)&&!_0x2e1b2c['hasRole'](_0x57c78a(0x333));}}),_0x492d45['saveItem'](_0x2818ba(0x260a),{'id':0xc8,'title':_0x2818ba(0x943),'translate':'APP.STAFF','icon':'icon-account-multiple','weight':0x3,'hidden':function(){const _0x4e9293=_0x2818ba;return _0x2e1b2c['hasRole'](_0x4e9293(0x11ae))||!_0x2e1b2c[_0x4e9293(0xc41)](_0x5f200d(this))&&!_0x2e1b2c[_0x4e9293(0x4de)](_0x4e9293(0x333));}}),_0x492d45['saveItem']('apps.staff.users',{'id':0xc9,'title':_0x2818ba(0x25d3),'route':'user','translate':_0x2818ba(0xe83),'state':_0x2818ba(0x57f),'weight':0x1,'permissions':{'hidden':!![]},'hidden':function(){const _0x153f75=_0x2818ba;return _0x2e1b2c[_0x153f75(0x4de)]('agent')||_0x2e1b2c['hasRole'](_0x153f75(0x2e8))||!_0x2e1b2c['hasPermission'](0xc9)&&!_0x2e1b2c[_0x153f75(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x2851),{'id':0xca,'title':'Agents','route':_0x2818ba(0x2e8),'translate':_0x2818ba(0x605),'state':_0x2818ba(0x1379),'weight':0x1,'hidden':function(){const _0xafccec=_0x2818ba;return _0x2e1b2c[_0xafccec(0x4de)](_0xafccec(0x11ae))||!_0x2e1b2c[_0xafccec(0x1244)](0xca)&&!_0x2e1b2c[_0xafccec(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x76c),{'id':0xcb,'title':_0x2818ba(0xc44),'route':_0x2818ba(0x2e8),'translate':_0x2818ba(0xdfe),'state':_0x2818ba(0x2703),'weight':0x1,'hidden':function(){const _0x36c839=_0x2818ba;return _0x2e1b2c[_0x36c839(0x4de)](_0x36c839(0x11ae))||!_0x2e1b2c['hasPermission'](0xcb)&&!_0x2e1b2c[_0x36c839(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0xdc9),{'id':0xcc,'title':_0x2818ba(0x286d),'route':_0x2818ba(0x15ea),'translate':_0x2818ba(0xde3),'state':_0x2818ba(0x1afd),'weight':0x1,'hidden':function(){const _0x452235=_0x2818ba;return _0x2e1b2c[_0x452235(0x4de)](_0x452235(0x11ae))||!_0x2e1b2c[_0x452235(0x1244)](0xcc)&&!_0x2e1b2c[_0x452235(0x4de)](_0x452235(0x333));}}),_0x492d45['saveItem'](_0x2818ba(0xf24),{'id':0xcd,'title':_0x2818ba(0x9c3),'route':'userProfile','translate':'STAFF.USERPROFILES','state':_0x2818ba(0x14bf),'weight':0x1,'permissions':{'hidden':!![]},'hidden':function(){const _0x5c6ed4=_0x2818ba;return _0x2e1b2c[_0x5c6ed4(0x4de)]('agent')||!_0x2e1b2c[_0x5c6ed4(0x1244)](0xcd)&&!_0x2e1b2c[_0x5c6ed4(0x4de)](_0x5c6ed4(0x333));}}),_0x492d45['saveItem'](_0x2818ba(0x295d),{'id':0x12c,'title':_0x2818ba(0x1ec3),'translate':_0x2818ba(0x1b0f),'icon':_0x2818ba(0x13d0),'weight':0x4,'license':'cm','hidden':function(){const _0xc3b80f=_0x2818ba;return!_0x5664b3['cm']||_0x2e1b2c['hasRole'](_0xc3b80f(0x11ae))||!_0x2e1b2c[_0xc3b80f(0xc41)](_0x5f200d(this))&&!_0x2e1b2c[_0xc3b80f(0x4de)](_0xc3b80f(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x189e),{'id':0x12d,'title':'Lists','route':'cmList','translate':'CONTACTMANAGER.LISTS','state':_0x2818ba(0x148d),'weight':0x2,'hidden':function(){const _0x52d878=_0x2818ba;return _0x2e1b2c[_0x52d878(0x4de)](_0x52d878(0x11ae))||!_0x2e1b2c[_0x52d878(0x1244)](0x12d)&&!_0x2e1b2c[_0x52d878(0x4de)](_0x52d878(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x1520),{'id':0x12e,'title':_0x2818ba(0x227d),'route':_0x2818ba(0x2625),'translate':_0x2818ba(0x1bdc),'state':'app.contactmanager.companies','weight':0x3,'hidden':function(){const _0x3cc746=_0x2818ba;return _0x2e1b2c[_0x3cc746(0x4de)](_0x3cc746(0x11ae))||!_0x2e1b2c['hasPermission'](0x12e)&&!_0x2e1b2c[_0x3cc746(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0xdf9),{'id':0x130,'title':_0x2818ba(0x15d1),'route':_0x2818ba(0x27ca),'translate':_0x2818ba(0x1596),'state':'app.contactmanager.globalCustomFields','weight':0x4,'permissions':{'association':![]},'hidden':function(){const _0x17e081=_0x2818ba;return _0x2e1b2c[_0x17e081(0x4de)](_0x17e081(0x11ae))||!_0x2e1b2c[_0x17e081(0x1244)](0x130)&&!_0x2e1b2c[_0x17e081(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.contactmanager.contacts',{'id':0x12f,'title':'Contacts','route':'','translate':_0x2818ba(0x19c0),'state':_0x2818ba(0x88d),'weight':0x1,'permissions':{'association':![]},'hidden':function(){const _0x12e01a=_0x2818ba;return _0x2e1b2c['hasRole']('agent')||!_0x2e1b2c[_0x12e01a(0x1244)](0x12f)&&!_0x2e1b2c[_0x12e01a(0x4de)](_0x12e01a(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x27c9),{'id':0x190,'title':_0x2818ba(0xa35),'translate':_0x2818ba(0x10c4),'icon':'icon-phone','weight':0x5,'license':_0x2818ba(0x227c),'hidden':function(){const _0x17109a=_0x2818ba;return!_0x5664b3[_0x17109a(0x227c)]||_0x2e1b2c['hasRole']('agent')||!_0x2e1b2c[_0x17109a(0xc41)](_0x5f200d(this))&&!_0x2e1b2c['hasRole'](_0x17109a(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x1211),{'id':0x191,'title':_0x2818ba(0x2110),'route':_0x2818ba(0x178b),'translate':'VOICE.VOICEQUEUES','state':_0x2818ba(0x10cc),'weight':0x1,'channel':_0x2818ba(0x227c),'hidden':function(){const _0x4fba4f=_0x2818ba;return _0x2e1b2c[_0x4fba4f(0x4de)]('agent')||!_0x2e1b2c['hasPermission'](0x191)&&!_0x2e1b2c[_0x4fba4f(0x4de)](_0x4fba4f(0x333));}}),_0x492d45['saveItem'](_0x2818ba(0x9dc),{'id':0x192,'title':_0x2818ba(0xbbd),'route':_0x2818ba(0x1438),'translate':_0x2818ba(0x229a),'state':'app.voice.inboundroutes','weight':0x1,'hidden':function(){const _0x394676=_0x2818ba;return _0x2e1b2c['hasRole'](_0x394676(0x11ae))||!_0x2e1b2c[_0x394676(0x1244)](0x192)&&!_0x2e1b2c['hasRole']('admin');}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x1a78),{'id':0x193,'title':_0x2818ba(0x1035),'route':_0x2818ba(0x1438),'translate':'VOICE.OUTBOUNDROUTES','state':_0x2818ba(0x59c),'weight':0x1,'hidden':function(){const _0x27cfea=_0x2818ba;return _0x2e1b2c['hasRole'](_0x27cfea(0x11ae))||!_0x2e1b2c[_0x27cfea(0x1244)](0x193)&&!_0x2e1b2c['hasRole'](_0x27cfea(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x16e4),{'id':0x194,'title':_0x2818ba(0x18d2),'route':_0x2818ba(0x1438),'translate':_0x2818ba(0x513),'state':_0x2818ba(0x1eba),'weight':0x1,'hidden':function(){const _0x30a40b=_0x2818ba;return _0x2e1b2c[_0x30a40b(0x4de)](_0x30a40b(0x11ae))||!_0x2e1b2c['hasPermission'](0x194)&&!_0x2e1b2c['hasRole']('admin');}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.voice.contexts',{'id':0x195,'title':_0x2818ba(0xcfe),'route':_0x2818ba(0x1faa),'translate':'VOICE.CONTEXTS','state':_0x2818ba(0x2a8),'weight':0x1,'hidden':function(){const _0x173fe7=_0x2818ba;return _0x2e1b2c[_0x173fe7(0x4de)](_0x173fe7(0x11ae))||!_0x2e1b2c[_0x173fe7(0x1244)](0x195)&&!_0x2e1b2c[_0x173fe7(0x4de)](_0x173fe7(0x333));}}),_0x492d45['saveItem'](_0x2818ba(0x1459),{'id':0x196,'title':_0x2818ba(0x1370),'route':_0x2818ba(0x1e43),'translate':_0x2818ba(0x15ee),'state':_0x2818ba(0x1d5a),'weight':0x1,'hidden':function(){const _0x181761=_0x2818ba;return _0x2e1b2c[_0x181761(0x4de)](_0x181761(0x11ae))||!_0x2e1b2c['hasPermission'](0x196)&&!_0x2e1b2c['hasRole'](_0x181761(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x208),{'id':0x197,'title':'MusicOnHolds','route':_0x2818ba(0x1b55),'translate':'VOICE.MUSICONHOLDS','state':_0x2818ba(0x126a),'weight':0x1,'hidden':function(){const _0xccfd8=_0x2818ba;return _0x2e1b2c['hasRole'](_0xccfd8(0x11ae))||!_0x2e1b2c[_0xccfd8(0x1244)](0x197)&&!_0x2e1b2c[_0xccfd8(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x1508),{'id':0x198,'title':_0x2818ba(0x9fd),'route':'voiceRecording','translate':_0x2818ba(0x26f1),'state':_0x2818ba(0x200d),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x5fda5=_0x2818ba;return _0x2e1b2c[_0x5fda5(0x4de)](_0x5fda5(0x11ae))||!_0x2e1b2c[_0x5fda5(0x1244)](0x198)&&!_0x2e1b2c[_0x5fda5(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.voice.chanSpies',{'id':0x199,'title':'ChanSpies','route':_0x2818ba(0xa80),'translate':_0x2818ba(0xce6),'state':_0x2818ba(0x23e),'weight':0x1,'hidden':function(){const _0x5bab59=_0x2818ba;return _0x2e1b2c['hasRole']('agent')||!_0x2e1b2c[_0x5bab59(0x1244)](0x199)&&!_0x2e1b2c['hasRole']('admin');}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.voice.voicePrefixes',{'id':0x19a,'title':_0x2818ba(0x91e),'route':'voicePrefix','translate':_0x2818ba(0xff8),'state':_0x2818ba(0x56c),'weight':0x1,'hidden':function(){const _0xc7f254=_0x2818ba;return _0x2e1b2c[_0xc7f254(0x4de)](_0xc7f254(0x11ae))||!_0x2e1b2c[_0xc7f254(0x1244)](0x19a)&&!_0x2e1b2c['hasRole'](_0xc7f254(0x333));}}),_0x492d45['saveItem'](_0x2818ba(0x1cd1),{'id':0x19b,'title':'Realtime','route':'','translate':'VOICE.REALTIME','state':_0x2818ba(0x18cd),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x359276=_0x2818ba;return _0x2e1b2c[_0x359276(0x4de)](_0x359276(0x11ae))||!_0x2e1b2c[_0x359276(0x1244)](0x19b)&&!_0x2e1b2c[_0x359276(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.chat',{'id':0x1f4,'title':'Chat','translate':_0x2818ba(0x179),'icon':_0x2818ba(0x704),'weight':0x6,'license':_0x2818ba(0xf52),'hidden':function(){const _0x30ce10=_0x2818ba;return!_0x5664b3[_0x30ce10(0xf52)]||_0x2e1b2c[_0x30ce10(0x4de)](_0x30ce10(0x11ae))||!_0x2e1b2c[_0x30ce10(0xc41)](_0x5f200d(this))&&!_0x2e1b2c['hasRole']('admin');}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x16a2),{'id':0x1f5,'title':_0x2818ba(0xaa7),'route':_0x2818ba(0x10b0),'translate':_0x2818ba(0x237d),'state':_0x2818ba(0x393),'weight':0x1,'channel':'chat','hidden':function(){const _0x5f2efa=_0x2818ba;return _0x2e1b2c[_0x5f2efa(0x4de)]('agent')||!_0x2e1b2c['hasPermission'](0x1f5)&&!_0x2e1b2c['hasRole'](_0x5f2efa(0x333));}}),_0x492d45['saveItem'](_0x2818ba(0x20fc),{'id':0x1f6,'title':_0x2818ba(0x241a),'route':_0x2818ba(0x26c3),'translate':_0x2818ba(0x67c),'state':_0x2818ba(0x2924),'weight':0x1,'channel':_0x2818ba(0xf52),'hidden':function(){const _0x5f17f2=_0x2818ba;return _0x2e1b2c[_0x5f17f2(0x4de)](_0x5f17f2(0x11ae))||!_0x2e1b2c['hasPermission'](0x1f6)&&!_0x2e1b2c[_0x5f17f2(0x4de)](_0x5f17f2(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x910),{'id':0x1fe,'title':'Realtime','route':'','translate':_0x2818ba(0x10f5),'state':_0x2818ba(0xf01),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x59b07f=_0x2818ba;return _0x2e1b2c[_0x59b07f(0x4de)](_0x59b07f(0x11ae))||!_0x2e1b2c[_0x59b07f(0x1244)](0x1fe)&&!_0x2e1b2c['hasRole'](_0x59b07f(0x333));}}),_0x492d45['saveItem'](_0x2818ba(0x2018),{'id':0x258,'title':_0x2818ba(0x1504),'translate':_0x2818ba(0x19e9),'icon':_0x2818ba(0x1829),'weight':0x7,'license':'mail','hidden':function(){const _0x733018=_0x2818ba;return!_0x5664b3['mail']||_0x2e1b2c[_0x733018(0x4de)](_0x733018(0x11ae))||!_0x2e1b2c[_0x733018(0xc41)](_0x5f200d(this))&&!_0x2e1b2c[_0x733018(0x4de)](_0x733018(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x1c7),{'id':0x259,'title':_0x2818ba(0x138c),'route':_0x2818ba(0x1eb3),'translate':_0x2818ba(0x1b70),'state':_0x2818ba(0xfe1),'weight':0x1,'channel':'mail','hidden':function(){const _0x205fc3=_0x2818ba;return _0x2e1b2c['hasRole'](_0x205fc3(0x11ae))||!_0x2e1b2c['hasPermission'](0x259)&&!_0x2e1b2c[_0x205fc3(0x4de)](_0x205fc3(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x19de),{'id':0x25a,'title':_0x2818ba(0x1941),'route':'mailAccount','translate':_0x2818ba(0x24bf),'state':'app.mail.mailAccounts','weight':0x1,'channel':_0x2818ba(0xc71),'hidden':function(){const _0xa9c962=_0x2818ba;return _0x2e1b2c[_0xa9c962(0x4de)]('agent')||!_0x2e1b2c[_0xa9c962(0x1244)](0x25a)&&!_0x2e1b2c[_0xa9c962(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.mail.mailSubtatuses',{'id':0x25b,'title':_0x2818ba(0x20f8),'route':'mailSubstatus','translate':_0x2818ba(0x8d4),'state':'app.mail.mailSubtatuses','weight':0x1,'channel':_0x2818ba(0xc71),'permissions':{'association':![]},'hidden':function(){const _0x40b871=_0x2818ba;return _0x2e1b2c[_0x40b871(0x4de)](_0x40b871(0x11ae))||!_0x2e1b2c[_0x40b871(0x1244)](0x25b)&&!_0x2e1b2c[_0x40b871(0x4de)](_0x40b871(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x8e9),{'id':0x262,'title':'Realtime','route':'','translate':'MAIL.REALTIME','state':_0x2818ba(0x1ebe),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x439c18=_0x2818ba;return _0x2e1b2c['hasRole'](_0x439c18(0x11ae))||!_0x2e1b2c[_0x439c18(0x1244)](0x262)&&!_0x2e1b2c[_0x439c18(0x4de)](_0x439c18(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0xe67),{'id':0x2bc,'title':_0x2818ba(0x5e1),'translate':_0x2818ba(0x140e),'icon':_0x2818ba(0x7e8),'weight':0x8,'license':_0x2818ba(0x2621),'hidden':function(){const _0x4b221f=_0x2818ba;return!_0x5664b3[_0x4b221f(0x2621)]||_0x2e1b2c[_0x4b221f(0x4de)]('agent')||!_0x2e1b2c[_0x4b221f(0xc41)](_0x5f200d(this))&&!_0x2e1b2c['hasRole'](_0x4b221f(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x1a4),{'id':0x2bd,'title':_0x2818ba(0x1272),'route':_0x2818ba(0x1957),'translate':_0x2818ba(0x2498),'state':_0x2818ba(0x1ede),'weight':0x1,'channel':'sms','hidden':function(){const _0x348f8a=_0x2818ba;return _0x2e1b2c[_0x348f8a(0x4de)](_0x348f8a(0x11ae))||!_0x2e1b2c[_0x348f8a(0x1244)](0x2bd)&&!_0x2e1b2c[_0x348f8a(0x4de)](_0x348f8a(0x333));}}),_0x492d45['saveItem'](_0x2818ba(0x1b52),{'id':0x2be,'title':_0x2818ba(0x29a),'route':'smsAccount','translate':_0x2818ba(0xb98),'state':_0x2818ba(0x1abc),'weight':0x1,'channel':_0x2818ba(0x10aa),'hidden':function(){const _0x86d114=_0x2818ba;return _0x2e1b2c['hasRole']('agent')||!_0x2e1b2c[_0x86d114(0x1244)](0x2be)&&!_0x2e1b2c[_0x86d114(0x4de)](_0x86d114(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x4dd),{'id':0x2c6,'title':_0x2818ba(0x1aab),'route':'','translate':_0x2818ba(0x186b),'state':_0x2818ba(0x956),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0xf4f8d=_0x2818ba;return _0x2e1b2c[_0xf4f8d(0x4de)](_0xf4f8d(0x11ae))||!_0x2e1b2c[_0xf4f8d(0x1244)](0x2c6)&&!_0x2e1b2c[_0xf4f8d(0x4de)](_0xf4f8d(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x232a),{'id':0x320,'title':_0x2818ba(0x1f0b),'translate':_0x2818ba(0x1052),'icon':_0x2818ba(0x1b5c),'weight':0x9,'license':_0x2818ba(0x28ad),'hidden':function(){const _0x15f1c3=_0x2818ba;return!_0x5664b3[_0x15f1c3(0x28ad)]||_0x2e1b2c[_0x15f1c3(0x4de)](_0x15f1c3(0x11ae))||!_0x2e1b2c['hasChildrenPermissions'](_0x5f200d(this))&&!_0x2e1b2c[_0x15f1c3(0x4de)](_0x15f1c3(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.openchannel.openchannelQueues',{'id':0x321,'title':_0x2818ba(0x1b75),'route':'openchannelQueue','translate':_0x2818ba(0x636),'state':'app.openchannel.openchannelQueues','weight':0x1,'channel':'openChannel','hidden':function(){const _0x40e93d=_0x2818ba;return _0x2e1b2c[_0x40e93d(0x4de)]('agent')||!_0x2e1b2c[_0x40e93d(0x1244)](0x321)&&!_0x2e1b2c[_0x40e93d(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x248d),{'id':0x322,'title':_0x2818ba(0x141b),'route':_0x2818ba(0x880),'translate':'OPENCHANNEL.OPENCHANNELACCOUNTS','state':_0x2818ba(0x1129),'weight':0x1,'channel':'openChannel','hidden':function(){const _0x59e4ab=_0x2818ba;return _0x2e1b2c[_0x59e4ab(0x4de)](_0x59e4ab(0x11ae))||!_0x2e1b2c[_0x59e4ab(0x1244)](0x322)&&!_0x2e1b2c[_0x59e4ab(0x4de)](_0x59e4ab(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0xa11),{'id':0x32a,'title':_0x2818ba(0x1aab),'route':'','translate':_0x2818ba(0x9e3),'state':_0x2818ba(0x2469),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x27f1c1=_0x2818ba;return _0x2e1b2c[_0x27f1c1(0x4de)](_0x27f1c1(0x11ae))||!_0x2e1b2c['hasPermission'](0x32a)&&!_0x2e1b2c[_0x27f1c1(0x4de)](_0x27f1c1(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.fax',{'id':0x384,'title':'Fax','translate':_0x2818ba(0x2746),'icon':_0x2818ba(0x1357),'weight':0xa,'license':_0x2818ba(0x1d37),'hidden':function(){const _0x3cec8b=_0x2818ba;return!_0x5664b3[_0x3cec8b(0x1d37)]||_0x2e1b2c['hasRole']('agent')||!_0x2e1b2c[_0x3cec8b(0xc41)](_0x5f200d(this))&&!_0x2e1b2c['hasRole'](_0x3cec8b(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x1fe4),{'id':0x385,'title':'FaxQueues','route':_0x2818ba(0xf82),'translate':_0x2818ba(0x162b),'state':_0x2818ba(0x1995),'weight':0x1,'channel':_0x2818ba(0x1d37),'hidden':function(){const _0x39cc52=_0x2818ba;return _0x2e1b2c[_0x39cc52(0x4de)](_0x39cc52(0x11ae))||!_0x2e1b2c[_0x39cc52(0x1244)](0x385)&&!_0x2e1b2c[_0x39cc52(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x1958),{'id':0x386,'title':'FaxAccounts','route':_0x2818ba(0x549),'translate':_0x2818ba(0x1a77),'state':_0x2818ba(0x1a9f),'weight':0x1,'channel':_0x2818ba(0x1d37),'hidden':function(){const _0xca0032=_0x2818ba;return _0x2e1b2c[_0xca0032(0x4de)](_0xca0032(0x11ae))||!_0x2e1b2c[_0xca0032(0x1244)](0x386)&&!_0x2e1b2c[_0xca0032(0x4de)](_0xca0032(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x243e),{'id':0x38e,'title':'Realtime','route':'','translate':_0x2818ba(0x2251),'state':'app.fax.realtime','weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x1eb2bf=_0x2818ba;return _0x2e1b2c[_0x1eb2bf(0x4de)](_0x1eb2bf(0x11ae))||!_0x2e1b2c[_0x1eb2bf(0x1244)](0x38e)&&!_0x2e1b2c[_0x1eb2bf(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.tools',{'id':0x3e8,'title':_0x2818ba(0x3b6),'translate':_0x2818ba(0x27b6),'icon':_0x2818ba(0x26c),'weight':0xf,'hidden':function(){const _0x385df0=_0x2818ba;return _0x2e1b2c['hasRole'](_0x385df0(0x11ae))||!_0x2e1b2c[_0x385df0(0xc41)](_0x5f200d(this))&&!_0x2e1b2c[_0x385df0(0x4de)](_0x385df0(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x143a),{'id':0x3e9,'title':_0x2818ba(0x2671),'route':_0x2818ba(0x14c4),'translate':_0x2818ba(0xd39),'state':_0x2818ba(0x43a),'weight':0x1,'hidden':function(){const _0x5ca007=_0x2818ba;return _0x2e1b2c[_0x5ca007(0x4de)](_0x5ca007(0x11ae))||!_0x2e1b2c['hasPermission'](0x3e9)&&!_0x2e1b2c[_0x5ca007(0x4de)](_0x5ca007(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.tools.customDashboards',{'id':0x3eb,'title':_0x2818ba(0x12d6),'route':_0x2818ba(0x26df),'translate':_0x2818ba(0x10e3),'state':_0x2818ba(0x2310),'weight':0x3,'hidden':function(){const _0x394499=_0x2818ba;return _0x2e1b2c[_0x394499(0x4de)](_0x394499(0x11ae))||!_0x2e1b2c[_0x394499(0x1244)](0x3eb)&&!_0x2e1b2c[_0x394499(0x4de)](_0x394499(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.tools.intervals',{'id':0x3ec,'title':_0x2818ba(0x2288),'route':'interval','translate':_0x2818ba(0x70a),'state':_0x2818ba(0x1410),'weight':0x4,'hidden':function(){const _0x542806=_0x2818ba;return _0x2e1b2c[_0x542806(0x4de)](_0x542806(0x11ae))||!_0x2e1b2c[_0x542806(0x1244)](0x3ec)&&!_0x2e1b2c[_0x542806(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x284e),{'id':0x3ed,'title':'Pauses','route':'pause','translate':_0x2818ba(0x1a39),'state':'app.tools.pauses','weight':0x5,'hidden':function(){const _0x50e835=_0x2818ba;return _0x2e1b2c[_0x50e835(0x4de)](_0x50e835(0x11ae))||!_0x2e1b2c[_0x50e835(0x1244)](0x3ed)&&!_0x2e1b2c['hasRole'](_0x50e835(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.tools.schedules',{'id':0x3ee,'title':_0x2818ba(0xb55),'route':'schedule','translate':_0x2818ba(0x162a),'state':_0x2818ba(0x2365),'weight':0x6,'hidden':function(){const _0xa918b=_0x2818ba;return _0x2e1b2c['hasRole'](_0xa918b(0x11ae))||!_0x2e1b2c[_0xa918b(0x1244)](0x3ee)&&!_0x2e1b2c[_0xa918b(0x4de)](_0xa918b(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.tools.sounds',{'id':0x3ef,'title':_0x2818ba(0x28c3),'route':_0x2818ba(0x282b),'translate':_0x2818ba(0x16ad),'state':_0x2818ba(0x2375),'weight':0x7,'hidden':function(){const _0x28d23c=_0x2818ba;return _0x2e1b2c['hasRole'](_0x28d23c(0x11ae))||!_0x2e1b2c[_0x28d23c(0x1244)](0x3ef)&&!_0x2e1b2c[_0x28d23c(0x4de)](_0x28d23c(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x2080),{'id':0x3f0,'title':_0x2818ba(0x1178),'route':_0x2818ba(0xac8),'translate':_0x2818ba(0xbe6),'state':'app.tools.tags','weight':0x8,'hidden':function(){const _0xa03ae2=_0x2818ba;return _0x2e1b2c[_0xa03ae2(0x4de)](_0xa03ae2(0x11ae))||!_0x2e1b2c[_0xa03ae2(0x1244)](0x3f0)&&!_0x2e1b2c[_0xa03ae2(0x4de)](_0xa03ae2(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x1462),{'id':0x3f1,'title':'Templates','route':_0x2818ba(0x2788),'translate':'TOOLS.TEMPLATES','state':_0x2818ba(0x4eb),'weight':0x9,'hidden':function(){const _0x2fc833=_0x2818ba;return _0x2e1b2c[_0x2fc833(0x4de)](_0x2fc833(0x11ae))||!_0x2e1b2c['hasPermission'](0x3f1)&&!_0x2e1b2c[_0x2fc833(0x4de)]('admin');}}),_0x492d45['saveItem'](_0x2818ba(0x292b),{'id':0x3f3,'title':_0x2818ba(0x740),'route':_0x2818ba(0x4ef),'translate':_0x2818ba(0x1384),'state':_0x2818ba(0x1870),'weight':0xb,'hidden':function(){const _0xddcae5=_0x2818ba;return _0x2e1b2c[_0xddcae5(0x4de)](_0xddcae5(0x11ae))||!_0x2e1b2c[_0xddcae5(0x1244)](0x3f3)&&!_0x2e1b2c[_0xddcae5(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x25ab),{'id':0x3f4,'title':_0x2818ba(0x1ffe),'route':_0x2818ba(0xefb),'translate':_0x2818ba(0x28d9),'state':_0x2818ba(0x1cac),'weight':0xc,'hidden':function(){const _0x1b5c7e=_0x2818ba;return _0x2e1b2c['hasRole'](_0x1b5c7e(0x11ae))||!_0x2e1b2c[_0x1b5c7e(0x1244)](0x3f4)&&!_0x2e1b2c[_0x1b5c7e(0x4de)](_0x1b5c7e(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x2374),{'id':0x3ea,'title':_0x2818ba(0x1772),'route':_0x2818ba(0x168b),'translate':_0x2818ba(0x1cc9),'state':_0x2818ba(0xff1),'weight':0x2,'hidden':function(){const _0x19a326=_0x2818ba;return _0x2e1b2c[_0x19a326(0x4de)](_0x19a326(0x11ae))||!_0x2e1b2c[_0x19a326(0x1244)](0x3ea)&&!_0x2e1b2c[_0x19a326(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.tools.triggers',{'id':0x3f2,'title':'Triggers','route':'','translate':_0x2818ba(0x7ea),'state':_0x2818ba(0x1b22),'weight':0xa,'hidden':function(){const _0x5b7f7c=_0x2818ba;return _0x2e1b2c['hasRole'](_0x5b7f7c(0x11ae))||!_0x2e1b2c['hasPermission'](0x3f2)&&!_0x2e1b2c[_0x5b7f7c(0x4de)](_0x5b7f7c(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.callysquare',{'id':0x44c,'title':_0x2818ba(0xab1),'translate':_0x2818ba(0x199e),'icon':'icon-sitemap','weight':0xd,'license':_0x2818ba(0x227c),'hidden':function(){const _0x2b346c=_0x2818ba;return!_0x5664b3[_0x2b346c(0x227c)]||_0x2e1b2c['hasRole'](_0x2b346c(0x11ae))||!_0x2e1b2c['hasChildrenPermissions'](_0x5f200d(this))&&!_0x2e1b2c['hasRole']('admin');}}),_0x492d45['saveItem']('apps.callysquare.odbcs',{'id':0x44d,'title':_0x2818ba(0xa82),'route':'squareOdbc','translate':_0x2818ba(0x23fa),'state':_0x2818ba(0x2a6),'weight':0x2,'hidden':function(){const _0x20a5d4=_0x2818ba;return _0x2e1b2c[_0x20a5d4(0x4de)]('agent')||!_0x2e1b2c[_0x20a5d4(0x1244)](0x44d)&&!_0x2e1b2c['hasRole'](_0x20a5d4(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x1016),{'id':0x44e,'title':_0x2818ba(0x2539),'route':_0x2818ba(0x59a),'translate':_0x2818ba(0x12f),'state':'app.callysquare.squareRecordings','weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x32e65a=_0x2818ba;return _0x2e1b2c['hasRole']('agent')||!_0x2e1b2c[_0x32e65a(0x1244)](0x44e)&&!_0x2e1b2c[_0x32e65a(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x1b04),{'id':0x44f,'title':_0x2818ba(0x977),'route':'squareProject','translate':'CALLYSQUARE.PROJECTS','state':'app.callysquare.projects','weight':0x1,'hidden':function(){const _0x2b0412=_0x2818ba;return _0x2e1b2c[_0x2b0412(0x4de)](_0x2b0412(0x11ae))||!_0x2e1b2c[_0x2b0412(0x1244)](0x44f)&&!_0x2e1b2c[_0x2b0412(0x4de)](_0x2b0412(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x570),{'id':0x4b0,'title':_0x2818ba(0x12d5),'translate':_0x2818ba(0x1746),'icon':_0x2818ba(0x181b),'weight':0x10,'hidden':function(){const _0x57708b=_0x2818ba;return _0x2e1b2c['hasRole'](_0x57708b(0x11ae))||!_0x2e1b2c[_0x57708b(0xc41)](_0x5f200d(this))&&!_0x2e1b2c['hasRole'](_0x57708b(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x413),{'id':0x4b1,'title':_0x2818ba(0xbda),'route':_0x2818ba(0x1dcf),'translate':_0x2818ba(0x1524),'state':'app.analytics.metrics','weight':0x3,'hidden':function(){const _0x36b783=_0x2818ba;return _0x2e1b2c[_0x36b783(0x4de)](_0x36b783(0x11ae))||!_0x2e1b2c[_0x36b783(0x1244)](0x4b1)&&!_0x2e1b2c[_0x36b783(0x4de)](_0x36b783(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x28e2),{'id':0x4b2,'title':_0x2818ba(0x1567),'route':_0x2818ba(0x1602),'translate':_0x2818ba(0x16b1),'state':_0x2818ba(0x19cf),'weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x4da4c2=_0x2818ba;return _0x2e1b2c[_0x4da4c2(0x4de)](_0x4da4c2(0x11ae))||!_0x2e1b2c['hasPermission'](0x4b2)&&!_0x2e1b2c['hasRole'](_0x4da4c2(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0xfd6),{'id':0x4b3,'title':_0x2818ba(0x2973),'route':'','translate':_0x2818ba(0x2948),'state':_0x2818ba(0x1c7b),'weight':0x1,'hidden':function(){const _0x3570ec=_0x2818ba;return _0x2e1b2c[_0x3570ec(0x4de)](_0x3570ec(0x11ae))||!_0x2e1b2c[_0x3570ec(0x1244)](0x4b3)&&!_0x2e1b2c[_0x3570ec(0x4de)](_0x3570ec(0x333));}}),_0x492d45['saveItem'](_0x2818ba(0x1783),{'id':0x514,'title':'Integrations','translate':_0x2818ba(0x11b),'icon':_0x2818ba(0x1053),'weight':0x11,'hidden':function(){const _0x336623=_0x2818ba;return _0x2e1b2c[_0x336623(0x4de)](_0x336623(0x11ae))||!_0x2e1b2c[_0x336623(0xc41)](_0x5f200d(this))&&!_0x2e1b2c['hasRole'](_0x336623(0x333));}}),_0x492d45['saveItem'](_0x2818ba(0xb3f),{'id':0x515,'title':_0x2818ba(0x182a),'route':_0x2818ba(0x1da9),'translate':_0x2818ba(0x2c6),'state':'app.integrations.zendeskAccounts','weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x5a0b06=_0x2818ba;return _0x2e1b2c['hasRole'](_0x5a0b06(0x11ae))||!_0x2e1b2c[_0x5a0b06(0x1244)](0x515)&&!_0x2e1b2c[_0x5a0b06(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x1c23),{'id':0x516,'title':_0x2818ba(0x172b),'route':_0x2818ba(0x1ddd),'translate':_0x2818ba(0x212d),'state':'app.integrations.salesforceAccounts','weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x341b23=_0x2818ba;return _0x2e1b2c['hasRole']('agent')||!_0x2e1b2c['hasPermission'](0x516)&&!_0x2e1b2c[_0x341b23(0x4de)](_0x341b23(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.integrations.freshdeskAccounts',{'id':0x517,'title':'FreshdeskAccounts','route':_0x2818ba(0x26ff),'translate':_0x2818ba(0x1fc0),'state':_0x2818ba(0x53e),'weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x148d81=_0x2818ba;return _0x2e1b2c[_0x148d81(0x4de)](_0x148d81(0x11ae))||!_0x2e1b2c['hasPermission'](0x517)&&!_0x2e1b2c[_0x148d81(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x1d14),{'id':0x519,'title':_0x2818ba(0x877),'route':_0x2818ba(0xdaa),'translate':_0x2818ba(0x2189),'state':'app.integrations.sugarcrmAccounts','weight':0x4,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x345096=_0x2818ba;return _0x2e1b2c[_0x345096(0x4de)](_0x345096(0x11ae))||!_0x2e1b2c[_0x345096(0x1244)](0x519)&&!_0x2e1b2c['hasRole'](_0x345096(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.integrations.deskAccounts',{'id':0x51a,'title':_0x2818ba(0x949),'route':_0x2818ba(0x1a5e),'translate':_0x2818ba(0x10bf),'state':_0x2818ba(0x1d22),'weight':0x5,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x26a7e7=_0x2818ba;return _0x2e1b2c[_0x26a7e7(0x4de)]('agent')||!_0x2e1b2c['hasPermission'](0x51a)&&!_0x2e1b2c[_0x26a7e7(0x4de)](_0x26a7e7(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x1667),{'id':0x51b,'title':'ZohoAccounts','route':_0x2818ba(0x1dc7),'translate':_0x2818ba(0xc3f),'state':_0x2818ba(0x1f35),'weight':0x6,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x2ea018=_0x2818ba;return _0x2e1b2c['hasRole'](_0x2ea018(0x11ae))||!_0x2e1b2c[_0x2ea018(0x1244)](0x51b)&&!_0x2e1b2c['hasRole']('admin');}}),_0x492d45['saveItem'](_0x2818ba(0x2566),{'id':0x51c,'title':'VtigerAccounts','route':_0x2818ba(0xb99),'translate':'INTEGRATIONS.VTIGERACCOUNTS','state':_0x2818ba(0xb8a),'weight':0x7,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0xdd8b31=_0x2818ba;return _0x2e1b2c[_0xdd8b31(0x4de)](_0xdd8b31(0x11ae))||!_0x2e1b2c[_0xdd8b31(0x1244)](0x51c)&&!_0x2e1b2c['hasRole'](_0xdd8b31(0x333));}}),_0x492d45['saveItem']('apps.integrations.dynamics365Accounts',{'id':0x51d,'title':_0x2818ba(0xd60),'route':_0x2818ba(0xf5f),'translate':'INTEGRATIONS.DYNAMICS365ACCOUNTS','state':_0x2818ba(0xa61),'weight':0x8,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x1be7a8=_0x2818ba;return _0x2e1b2c[_0x1be7a8(0x4de)]('agent')||!_0x2e1b2c[_0x1be7a8(0x1244)](0x51d)&&!_0x2e1b2c[_0x1be7a8(0x4de)](_0x1be7a8(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0xbb5),{'id':0x51e,'title':_0x2818ba(0x12b1),'route':_0x2818ba(0x2822),'translate':'INTEGRATIONS.SERVICENOWACCOUNTS','state':_0x2818ba(0xca3),'weight':0x9,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x3ede8c=_0x2818ba;return _0x2e1b2c[_0x3ede8c(0x4de)](_0x3ede8c(0x11ae))||!_0x2e1b2c[_0x3ede8c(0x1244)](0x51e)&&!_0x2e1b2c[_0x3ede8c(0x4de)](_0x3ede8c(0x333));}}),_0x492d45['saveItem'](_0x2818ba(0xaba),{'id':0x518,'title':_0x2818ba(0xd67),'route':_0x2818ba(0xfac),'translate':'INTEGRATIONS.FRESHSALESACCOUNTS','state':_0x2818ba(0x9ba),'weight':0xa,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x243737=_0x2818ba;return _0x2e1b2c['hasRole'](_0x243737(0x11ae))||!_0x2e1b2c[_0x243737(0x1244)](0x518)&&!_0x2e1b2c[_0x243737(0x4de)](_0x243737(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x2656),{'id':0x578,'title':_0x2818ba(0x1c2f),'translate':_0x2818ba(0x16a4),'icon':_0x2818ba(0x73d),'weight':0x14,'permissions':{'hidden':!![]},'hidden':function(){const _0x3060d7=_0x2818ba;return _0x2e1b2c[_0x3060d7(0x4de)](_0x3060d7(0x11ae))||!_0x2e1b2c['hasPermission'](0x578)&&!_0x2e1b2c['hasRole'](_0x3060d7(0x333))||_0x2e1b2c[_0x3060d7(0x4de)](_0x3060d7(0x333))&&!_0x2e1b2c['getCurrentUser']()[_0x3060d7(0xba1)];}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.settings.generals',{'id':0x579,'title':_0x2818ba(0x1645),'route':_0x2818ba(0x28d6),'translate':_0x2818ba(0xe2c),'state':_0x2818ba(0x803),'weight':0x1,'hidden':function(){const _0x3ae64b=_0x2818ba;return _0x2e1b2c['hasRole']('agent')||!_0x2e1b2c[_0x3ae64b(0x1244)](0x578)&&!_0x2e1b2c[_0x3ae64b(0x4de)](_0x3ae64b(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x27fd),{'id':0x57a,'title':_0x2818ba(0x1dbe),'route':_0x2818ba(0x1b1e),'translate':_0x2818ba(0x4a7),'state':_0x2818ba(0x128c),'weight':0x1,'hidden':function(){const _0xcf49eb=_0x2818ba;return _0x2e1b2c[_0xcf49eb(0x4de)]('agent')||!_0x2e1b2c[_0xcf49eb(0x1244)](0x578)&&!_0x2e1b2c[_0xcf49eb(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.settings.networks',{'id':0x57b,'title':_0x2818ba(0x2112),'route':_0x2818ba(0x14eb),'translate':_0x2818ba(0x14f9),'state':_0x2818ba(0x10d6),'weight':0x1,'hidden':function(){const _0xf3468d=_0x2818ba;return _0x2e1b2c['hasRole'](_0xf3468d(0x11ae))||!_0x2e1b2c[_0xf3468d(0x1244)](0x578)&&!_0x2e1b2c['hasRole'](_0xf3468d(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x26a9),{'id':0x57f,'title':_0x2818ba(0x294c),'route':_0x2818ba(0x28d6),'translate':'SETTINGS.CUSTOMIZATIONS','state':_0x2818ba(0x17a6),'weight':0x1,'hidden':function(){const _0x36c6f4=_0x2818ba;return!_0x5664b3[_0x36c6f4(0x1ad6)]||_0x2e1b2c['hasRole'](_0x36c6f4(0x11ae))||!_0x2e1b2c[_0x36c6f4(0x1244)](0x578)&&!_0x2e1b2c[_0x36c6f4(0x4de)]('admin');}}),_0x492d45['saveItem']('apps.settings.cloudProviders',{'id':0x580,'title':_0x2818ba(0x250),'route':_0x2818ba(0x12e5),'translate':'SETTINGS.AITOOLS','state':_0x2818ba(0x883),'weight':0x1,'hidden':function(){const _0x4701de=_0x2818ba;return!_0x5664b3['ai']||_0x2e1b2c['hasRole'](_0x4701de(0x11ae))||!_0x2e1b2c[_0x4701de(0x1244)](0x578)&&!_0x2e1b2c['hasRole']('admin');}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0xfc6),{'id':0x57c,'title':_0x2818ba(0x1cb),'route':'','translate':_0x2818ba(0x21d3),'state':_0x2818ba(0x18e4),'weight':0x1,'hidden':function(){const _0x445ab8=_0x2818ba;return!_0x5664b3[_0x445ab8(0x2603)]||_0x2e1b2c['hasRole']('agent')||!_0x2e1b2c[_0x445ab8(0x1244)](0x578)&&!_0x2e1b2c[_0x445ab8(0x4de)](_0x445ab8(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x2895),{'id':0x57d,'title':_0x2818ba(0xf5b),'route':'','translate':_0x2818ba(0x1de),'state':'app.settings.license','weight':0x1,'hidden':function(){const _0x53bbec=_0x2818ba;return _0x2e1b2c[_0x53bbec(0x4de)](_0x53bbec(0x11ae))||!_0x2e1b2c[_0x53bbec(0x1244)](0x578)&&!_0x2e1b2c[_0x53bbec(0x4de)](_0x53bbec(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.settings.system',{'id':0x57e,'title':_0x2818ba(0x1711),'route':'','translate':_0x2818ba(0x850),'state':_0x2818ba(0xaad),'weight':0x1,'hidden':function(){const _0x4b77ed=_0x2818ba;return _0x2e1b2c['hasRole'](_0x4b77ed(0x11ae))||!_0x2e1b2c['hasPermission'](0x578)&&!_0x2e1b2c[_0x4b77ed(0x4de)](_0x4b77ed(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.motiondialer',{'id':0x5dc,'title':_0x2818ba(0x10e1),'translate':_0x2818ba(0x688),'icon':_0x2818ba(0xe3c),'weight':0x5,'license':_0x2818ba(0x2967),'hidden':function(){const _0x1e225d=_0x2818ba;return!_0x5664b3[_0x1e225d(0x2967)]||_0x2e1b2c['hasRole'](_0x1e225d(0x11ae))||!_0x2e1b2c[_0x1e225d(0xc41)](_0x5f200d(this))&&!_0x2e1b2c['hasRole'](_0x1e225d(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0xdd7),{'id':0x5dd,'title':_0x2818ba(0x2350),'route':_0x2818ba(0x178b),'translate':_0x2818ba(0xc07),'state':_0x2818ba(0x47d),'weight':0x1,'channel':_0x2818ba(0x7e0),'hidden':function(){const _0x263882=_0x2818ba;return _0x2e1b2c['hasRole']('agent')||!_0x2e1b2c[_0x263882(0x1244)](0x5dd)&&!_0x2e1b2c['hasRole']('admin');}}),_0x492d45['saveItem'](_0x2818ba(0x8f0),{'id':0x5de,'title':_0x2818ba(0x2894),'route':'campaign','translate':'MOTIONDIALER.IVRCAMPAIGNS','state':_0x2818ba(0x116f),'weight':0x1,'hidden':function(){const _0x234d07=_0x2818ba;return _0x2e1b2c[_0x234d07(0x4de)](_0x234d07(0x11ae))||!_0x2e1b2c[_0x234d07(0x1244)](0x5de)&&!_0x2e1b2c[_0x234d07(0x4de)](_0x234d07(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.motiondialer.realtime',{'id':0x5e6,'title':_0x2818ba(0x1aab),'route':'','translate':'MOTIONDIALER.REALTIME','state':_0x2818ba(0x16d5),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x31cd81=_0x2818ba;return _0x2e1b2c[_0x31cd81(0x4de)]('agent')||!_0x2e1b2c[_0x31cd81(0x1244)](0x5e6)&&!_0x2e1b2c['hasRole'](_0x31cd81(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.help',{'id':0x640,'title':_0x2818ba(0x22aa),'translate':_0x2818ba(0x77c),'icon':_0x2818ba(0x2727),'weight':0x15,'permissions':{'association':![]},'hidden':function(){const _0x1cb39e=_0x2818ba;return _0x2e1b2c[_0x1cb39e(0x4de)](_0x1cb39e(0x11ae))||!_0x2e1b2c[_0x1cb39e(0x1244)](0x640)&&!_0x2e1b2c['hasRole'](_0x1cb39e(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.help.about',{'id':0x641,'title':_0x2818ba(0x9fb),'route':'','translate':_0x2818ba(0x25b2),'state':_0x2818ba(0x243a),'weight':0x1,'hidden':function(){const _0x51633d=_0x2818ba;return _0x2e1b2c[_0x51633d(0x4de)]('agent')||!_0x2e1b2c[_0x51633d(0x1244)](0x640)&&!_0x2e1b2c['hasRole']('admin');}}),_0x492d45['saveItem']('apps.jscripty',{'id':0x6a4,'title':'jscripty','translate':'JSCRIPTY.JSCRIPTY','icon':'icon-script','weight':0xe,'license':_0x2818ba(0xd1c),'hidden':function(){const _0x3bc038=_0x2818ba;return!_0x5664b3[_0x3bc038(0xd1c)]||_0x2e1b2c['hasRole']('agent')||!_0x2e1b2c[_0x3bc038(0xc41)](_0x5f200d(this))&&!_0x2e1b2c[_0x3bc038(0x4de)](_0x3bc038(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0xc9f),{'id':0x6a5,'title':_0x2818ba(0x977),'route':'jscriptyProject','translate':_0x2818ba(0x862),'state':_0x2818ba(0x2c4),'weight':0x1,'hidden':function(){const _0x18c698=_0x2818ba;return _0x2e1b2c[_0x18c698(0x4de)](_0x18c698(0x11ae))||!_0x2e1b2c[_0x18c698(0x1244)](0x6a5)&&!_0x2e1b2c['hasRole'](_0x18c698(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x1865),{'id':0x708,'title':_0x2818ba(0xad3),'translate':'MARKETPLACE.MARKETPLACE','icon':_0x2818ba(0x1ff3),'weight':0x12,'hidden':function(){const _0x2bd2cc=_0x2818ba;return _0x2e1b2c['hasRole'](_0x2bd2cc(0x11ae))||!_0x2e1b2c[_0x2bd2cc(0xc41)](_0x5f200d(this))&&!_0x2e1b2c[_0x2bd2cc(0x4de)]('admin');}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x996),{'id':0x709,'title':'Plugins','route':_0x2818ba(0x1141),'translate':_0x2818ba(0x1120),'state':'app.marketplace.plugins','weight':0x1,'hidden':function(){const _0x44e954=_0x2818ba;return _0x2e1b2c[_0x44e954(0x4de)](_0x44e954(0x11ae))||!_0x2e1b2c[_0x44e954(0x1244)](0x709)&&!_0x2e1b2c[_0x44e954(0x4de)](_0x44e954(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x1eb),{'id':0x7d0,'title':_0x2818ba(0x2f2),'translate':_0x2818ba(0x1785),'icon':_0x2818ba(0x1564),'weight':0xc,'license':_0x2818ba(0x2921),'hidden':function(){const _0x459f49=_0x2818ba;return!_0x5664b3['screenrecording']||_0x2e1b2c[_0x459f49(0x4de)](_0x459f49(0x11ae))||!_0x2e1b2c[_0x459f49(0xc41)](_0x5f200d(this))&&!_0x2e1b2c[_0x459f49(0x4de)](_0x459f49(0x333));}}),_0x492d45['saveItem'](_0x2818ba(0x164a),{'id':0x7d1,'title':_0x2818ba(0xb6e),'route':_0x2818ba(0x24f7),'translate':_0x2818ba(0x1878),'state':_0x2818ba(0xaa6),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x295ee5=_0x2818ba;return _0x2e1b2c[_0x295ee5(0x4de)]('agent')||!_0x2e1b2c['hasPermission'](0x7d1)&&!_0x2e1b2c[_0x295ee5(0x4de)](_0x295ee5(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)](_0x2818ba(0x2055),{'id':0x834,'title':'Whatsapp','translate':_0x2818ba(0xeed),'icon':'icon-whatsapp','weight':0xb,'license':_0x2818ba(0x1a29),'hidden':function(){const _0x1b7173=_0x2818ba;return!_0x5664b3['whatsapp']||_0x2e1b2c['hasRole'](_0x1b7173(0x11ae))||!_0x2e1b2c[_0x1b7173(0xc41)](_0x5f200d(this))&&!_0x2e1b2c[_0x1b7173(0x4de)](_0x1b7173(0x333));}}),_0x492d45['saveItem'](_0x2818ba(0x863),{'id':0x835,'title':'WhatsappQueues','route':_0x2818ba(0x296d),'translate':_0x2818ba(0x25a6),'state':_0x2818ba(0x199b),'weight':0x1,'channel':'whatsapp','hidden':function(){const _0x39c24f=_0x2818ba;return _0x2e1b2c[_0x39c24f(0x4de)](_0x39c24f(0x11ae))||!_0x2e1b2c[_0x39c24f(0x1244)](0x835)&&!_0x2e1b2c[_0x39c24f(0x4de)](_0x39c24f(0x333));}}),_0x492d45[_0x2818ba(0x1dbc)]('apps.whatsapp.whatsappAccounts',{'id':0x836,'title':_0x2818ba(0xfa8),'route':_0x2818ba(0x217c),'translate':_0x2818ba(0x22e),'state':_0x2818ba(0x1fee),'weight':0x1,'channel':'whatsapp','hidden':function(){const _0x15638c=_0x2818ba;return _0x2e1b2c[_0x15638c(0x4de)](_0x15638c(0x11ae))||!_0x2e1b2c[_0x15638c(0x1244)](0x836)&&!_0x2e1b2c['hasRole'](_0x15638c(0x333));}}),_0x492d45['saveItem'](_0x2818ba(0x14e0),{'id':0x83e,'title':'Realtime','route':'','translate':_0x2818ba(0xb7d),'state':_0x2818ba(0x1441),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x13c0ed=_0x2818ba;return _0x2e1b2c[_0x13c0ed(0x4de)](_0x13c0ed(0x11ae))||!_0x2e1b2c[_0x13c0ed(0x1244)](0x83e)&&!_0x2e1b2c[_0x13c0ed(0x4de)](_0x13c0ed(0x333));}}),_0x492d45[_0x2818ba(0x768)](),_0x311fab[_0x2818ba(0x1dbc)](_0x2818ba(0x1018),{'title':'APPS','group':!![],'weight':0x1}),_0x311fab[_0x2818ba(0x1dbc)](_0x2818ba(0x16d4),{'id':0x64,'title':'Home','translate':_0x2818ba(0xeeb),'icon':_0x2818ba(0x3d0),'weight':0x1}),_0x311fab[_0x2818ba(0x1dbc)]('apps.home.dashboard',{'id':0x65,'title':_0x2818ba(0xd5e),'translate':_0x2818ba(0x165a),'state':'dashboard','view':_0x2818ba(0x26df),'icon':_0x2818ba(0x271b),'iconClass':_0x2818ba(0x1029),'weight':0x1,'hidden':function(){return!_0x2e1b2c['hasPermission'](0x65);}}),_0x311fab[_0x2818ba(0x1dbc)](_0x2818ba(0xcde),{'id':0x66,'title':_0x2818ba(0x1162),'translate':_0x2818ba(0x1af6),'state':_0x2818ba(0x197e),'view':'contacts','icon':_0x2818ba(0x13d0),'iconClass':_0x2818ba(0xc6d),'weight':0x2,'hidden':function(){return!_0x5664b3['cm']||!_0x2e1b2c['hasPermission'](0x66);}}),_0x311fab['saveItem'](_0x2818ba(0x18a9),{'id':0x67,'title':_0x2818ba(0x1162),'translate':_0x2818ba(0x16a0),'state':_0x2818ba(0x7a1),'view':_0x2818ba(0x7a1),'icon':'icon-account-multiple','iconClass':_0x2818ba(0xc6d),'weight':0x3,'hidden':function(){return!_0x5664b3['cm']||!_0x2e1b2c['hasPermission'](0x67);}}),_0x311fab[_0x2818ba(0x1dbc)]('apps.home.scheduled',{'id':0x71,'title':_0x2818ba(0x8ca),'translate':_0x2818ba(0x23b3),'state':_0x2818ba(0x779),'view':_0x2818ba(0x779),'icon':'icon-calendar-clock','iconClass':_0x2818ba(0x1916),'weight':0x3,'hidden':function(){const _0xb16328=_0x2818ba;return!_0x5664b3[_0xb16328(0x2967)]||!_0x2e1b2c[_0xb16328(0x1244)](0x71);}}),_0x311fab[_0x2818ba(0x1dbc)](_0x2818ba(0xe21),{'id':0x6e,'title':_0x2818ba(0xa35),'translate':'DASHBOARDS.VOICE','state':_0x2818ba(0x227c),'view':'voice','icon':_0x2818ba(0x1ef6),'iconClass':_0x2818ba(0xd8b),'weight':0x4,'hidden':function(){const _0x4af27f=_0x2818ba;return!_0x5664b3[_0x4af27f(0x227c)]||!_0x2e1b2c[_0x4af27f(0x1244)](0x6e);}}),_0x311fab[_0x2818ba(0x1dbc)](_0x2818ba(0x34b),{'id':0x6f,'title':_0x2818ba(0x25ad),'translate':'DASHBOARDS.ABANDONED','state':_0x2818ba(0x10f0),'view':_0x2818ba(0x10f0),'icon':'icon-phone-missed','iconClass':_0x2818ba(0x1196),'weight':0x5,'hidden':function(){const _0x16a14b=_0x2818ba;return!_0x5664b3['voice']||!_0x2e1b2c[_0x16a14b(0x1244)](0x6f);}}),_0x311fab['saveItem'](_0x2818ba(0x22cd),{'id':0x68,'title':'Recordings','translate':_0x2818ba(0xbbf),'state':_0x2818ba(0xdf1),'view':_0x2818ba(0xdf1),'icon':'icon-audiobook','iconClass':_0x2818ba(0x296),'weight':0x6,'hidden':function(){const _0x32e91f=_0x2818ba;return!_0x5664b3[_0x32e91f(0x227c)]||!_0x2e1b2c[_0x32e91f(0x1244)](0x68);}}),_0x311fab[_0x2818ba(0x1dbc)](_0x2818ba(0x3a7),{'id':0x69,'title':'Chat','translate':_0x2818ba(0x1ea),'state':_0x2818ba(0xf52),'view':_0x2818ba(0xf52),'icon':'icon-hangouts','iconClass':'green-A700-fg','weight':0x7,'hidden':function(){const _0x3d1877=_0x2818ba;return!_0x5664b3['chat']||!_0x2e1b2c[_0x3d1877(0x1244)](0x69);}}),_0x311fab[_0x2818ba(0x1dbc)](_0x2818ba(0x1f25),{'id':0x6a,'title':_0x2818ba(0x1504),'translate':_0x2818ba(0x477),'state':_0x2818ba(0xc71),'view':_0x2818ba(0xc71),'icon':_0x2818ba(0x1829),'iconClass':_0x2818ba(0x37f),'weight':0x8,'hidden':function(){const _0x5907c3=_0x2818ba;return!_0x5664b3[_0x5907c3(0xc71)]||!_0x2e1b2c[_0x5907c3(0x1244)](0x6a);}}),_0x311fab[_0x2818ba(0x1dbc)]('apps.home.sms',{'id':0x6b,'title':_0x2818ba(0x5e1),'translate':_0x2818ba(0x2ee),'state':_0x2818ba(0x10aa),'view':_0x2818ba(0x10aa),'icon':_0x2818ba(0x7e8),'iconClass':_0x2818ba(0x11af),'weight':0x9,'hidden':function(){const _0x56f0d6=_0x2818ba;return!_0x5664b3['messaging']||!_0x2e1b2c[_0x56f0d6(0x1244)](0x6b);}}),_0x311fab['saveItem'](_0x2818ba(0x1e69),{'id':0x6c,'title':_0x2818ba(0x1f0b),'translate':_0x2818ba(0xeb7),'state':_0x2818ba(0x28ad),'view':'openchannel','icon':_0x2818ba(0x1b5c),'iconClass':_0x2818ba(0x21ab),'weight':0xa,'hidden':function(){const _0x5a8f52=_0x2818ba;return!_0x5664b3[_0x5a8f52(0x28ad)]||!_0x2e1b2c['hasPermission'](0x6c);}}),_0x311fab[_0x2818ba(0x1dbc)]('apps.home.fax',{'id':0x6d,'title':_0x2818ba(0x132c),'translate':'DASHBOARDS.FAX','state':_0x2818ba(0x1d37),'view':'fax','icon':_0x2818ba(0x1357),'iconClass':_0x2818ba(0x21b1),'weight':0xb,'hidden':function(){const _0x8fd419=_0x2818ba;return!_0x5664b3['fax']||!_0x2e1b2c[_0x8fd419(0x1244)](0x6d);}}),_0x311fab['saveItem']('apps.home.whatsapp',{'id':0x72,'title':_0x2818ba(0xede),'translate':_0x2818ba(0x1dd5),'state':'whatsapp','view':_0x2818ba(0x1a29),'icon':'icon-whatsapp','iconClass':_0x2818ba(0x1946),'weight':0xc,'hidden':function(){return!_0x5664b3['whatsapp']||!_0x2e1b2c['hasPermission'](0x72);}}),_0x34e193[_0x2818ba(0x8c7)](_0x2818ba(0x1dd8),function(_0x5c7d55){const _0x3a0a1d=_0x2818ba;_0x5c7d55['targetScope'][_0x3a0a1d(0x99e)]===_0x34e193[_0x3a0a1d(0x99e)]&&_0x524b41['$broadcast']('msSplashScreen::remove');});}const _0x4ea9e7=_0x4a2d86;;const _0x4c93da=['angular-toasty','app.core',_0x49a1e3(0xb12),_0x49a1e3(0x1bad),_0x49a1e3(0x5e6),_0x49a1e3(0xba8),_0x49a1e3(0x2154),_0x49a1e3(0x28af),_0x49a1e3(0x1697),_0x49a1e3(0x1e0),_0x49a1e3(0x25cd),'app.voice',_0x49a1e3(0x44a),_0x49a1e3(0x1202),_0x49a1e3(0x1471),_0x49a1e3(0xe6b),_0x49a1e3(0x320),'app.tools','app.callysquare',_0x49a1e3(0x11f8),_0x49a1e3(0xbfe),'app.settings',_0x49a1e3(0x70e),_0x49a1e3(0x1e04),_0x49a1e3(0x20cb),_0x49a1e3(0x20e7),_0x49a1e3(0x10b5),_0x49a1e3(0x2693),'app.whatsapp',_0x49a1e3(0x354),_0x49a1e3(0x17ae),_0x49a1e3(0x239d),'app.errors'];angular[_0x49a1e3(0x20d2)]('motion',_0x4c93da)[_0x49a1e3(0x646)](_0x49a1e3(0xa19),_0x353117)['config'](_0x18825e)[_0x49a1e3(0x38e)]('IndexController',_0x2bc842)[_0x49a1e3(0xcec)]('limitObjectFromTo',_0x2e01cf)['filter']('formatdate',_0xed1669)[_0x49a1e3(0x646)](_0x49a1e3(0xd48),_0x577512)[_0x49a1e3(0x646)](_0x49a1e3(0x21ce),_0x3eb7ad)[_0x49a1e3(0x646)](_0x49a1e3(0x175e),_0x284edb)['config'](_0x10cc7c)['run'](_0x15e1bf)[_0x49a1e3(0x646)](_0x49a1e3(0x633),_0x3d7e79)[_0x49a1e3(0x38e)](_0x49a1e3(0x3ab),_0x4ea9e7);},0x1a2c:(_0x50f243,_0x1de526,_0x463b4c)=>{const _0x350312=a0_0xe5efb4;var _0x466e6b={'./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 _0x52c1d7(_0x50ac70){var _0x19004e=_0xa44c3a(_0x50ac70);return _0x463b4c(_0x19004e);}function _0xa44c3a(_0x3f9c41){const _0x3a6554=a0_0x4127;if(!_0x463b4c['o'](_0x466e6b,_0x3f9c41)){var _0x449b44=new Error(_0x3a6554(0xdd6)+_0x3f9c41+'\x27');_0x449b44[_0x3a6554(0x741)]=_0x3a6554(0x2087);throw _0x449b44;}return _0x466e6b[_0x3f9c41];}_0x52c1d7[_0x350312(0x1ec6)]=function _0x525944(){return Object['keys'](_0x466e6b);},_0x52c1d7[_0x350312(0x1268)]=_0xa44c3a,_0x50f243[_0x350312(0x18c)]=_0x52c1d7,_0x52c1d7['id']=0x1a2c;},0x1666:_0x3f2eeb=>{const _0x1ba437=a0_0xe5efb4;'use strict';_0x3f2eeb[_0x1ba437(0x18c)]=angular;}},0x0,[[0x2069,0x29a,0x301]]]); \ No newline at end of file diff --git a/public/app-865e7f24c58986c08fdf.js b/public/app-865e7f24c58986c08fdf.js deleted file mode 100644 index 67b4f49..0000000 --- a/public/app-865e7f24c58986c08fdf.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_0x10c6=['api/integrations/freshdesk/accounts/:id/clone','saveMailSubstatus','newAllCondition','newCloudProvider','100','downloadMailInteraction','INTEGRATIONS.DYNAMICS365ACCOUNTS','off','Arabic\x20(Jordan)','voiceMailMessage','/api/chat/interactions/','contactInfo','delete\x20whatsappCannedAnswers','color','delete\x20hoppers','apps.marketplace.plugins','Team\x20properly\x20saved!','VOICE.NEW_VOICEPREFIX','Gujarati','NavigationController\x20as\x20vm','uninstall\x20plugin','\x27nonat\x27','apps.mail.realtime','clearFilter','\x27csv\x27','thirdLevel','

\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','exportSelectedUserProfiles','info','api.intSalesforceAccount.update','api/fax/accounts/:id/dispositions','\x27g722\x27','onTransferCallback\x20->\x20session,\x20textContent,\x20position,\x20delay','api/chat/interactions/:id/clone','Delete\x20IvrCampaign','app.contactmanager','Help','app/core/directives/ms-phonebar/sounds/dialpad/','api.dashboard.save','ZohoConfiguration\x20properly\x20created','QueueCampaign\x20properly\x20saved!','src/js/modules/main/apps/staff/views/telephones/create/dialog.html/dialog.html','reset','api/chat/proactive_actions/:id/clone','getSquareRecordings','Serbian\x20(Serbia)','addTeams','deleteReportField','dayOfWeekTo','Giorgio','SalesforceConfiguration\x20deleted!','\x27en-US\x27','appdata','ms-stepper','Lucky\x20day','isString','addGroup','deleteUserProfile','ZohoAccountsController\x20as\x20vm','joinTypes','src/js/modules/main/apps/tools/views/trunks/edit/clone/clone.html/clone.html','src/js/modules/main/apps/analytics/views/metrics/metrics.html/metrics.html','Would\x20you\x20like\x20to\x20change\x20the\x20status\x20of\x20the\x20process\x20#','Maxim\x20(Russian,\x20Male)','English\x20(Great\x20Britain)','UserVoiceDashboardGeneralController','user_has_','NO\x20QUERY','es-BO','app.mail.realtime.agents','getSmsAccountSmsCannedAnswers','Last\x20Month','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/hangup/dialog.html/dialog.html','api/fax/applications/:id','Condition','hold\x20->\x20session','\x27very\x27','\x27token\x27','IS_LESS_THAN','delete\x20variable','500','chatProactiveAction','Bengali\x20(India)','api/fax/accounts/:id/interactions','Gwineth','newWindow','api/userProfile/resources/describe','TOOLS.EDIT_TRUNK','WhatsappAccountagentaddController','id,name,IntervalId','deletePlugin','app.settings.networks','deselectFreshsalesAccounts','FreshsalesAccount','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20freshsalesConfiguration?','Delete\x20OpenchannelAccount','RR\x20Memory','downloadInteraction','app/main/apps/tools','status_code','api/chat/groups/:id/members','Asia/Dushanbe','Session\x20save\x20error','killProcess','savechanSpy','Salli\x20(English,\x20US,\x20Female)','xCALLY\x20Motion','api.cm.lists','BLACKLIST','Karl','Asia/Yakutsk','OpenchannelQueue\x20properly\x20created','ExternIP','$destroy','app.callysquare.projects.edit','tab','api/voice/mails/messages/:id/download','es-UY','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/view.html/view.html','telephone','App\x20deleted!','es-PA','apps.video','404','saveChatGroup','PowerDialing','getContactLabel','api/whatsapp/interactions/:id/download','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20ivrCampaigns?','Openchannel\x20Report\x20Queue','icon-keyboard','blue-A700','abandonedCalls','MAIL.NEW_MAILQUEUE','deleteSelectedDescriptions','14400','isFirstStep','api/sms/accounts/:id/send','/updates','message\x20#','Message:save','countContactsQueueCampaignHopperFinal','unix','ms-widget-back','deleteSelectedQueueCampaignHopperFinals','src/js/modules/main/apps/staff/views/users/create/dialog.html/dialog.html','scheduled','SquareRecording\x20properly\x20saved!','apps.integrations.zohoAccounts','deleteSelectedTriggers','Sequence','zohoConfiguration','joinAt','isStepOptional','FreshsalesConfiguration\x20properly\x20created','deleteSelectedFreshdeskAccounts','mailCurrentCapacity','onProgress\x20->\x20session,\x20data','required','Ines\x20(Portuguese,\x20Female)','turn:','onSave','Email\x20field\x20is\x20not\x20valid','api/integrations/dynamics365/accounts/:id/fields','motion2.home.mail:','motionConfigProvider','api.intDeskConfiguration.update','America/Whitehorse','Europe/Copenhagen','integrations/salesforce/configurations/:id/descriptions','exportSelectedOpenchannelAccountOpenchannelCannedAnswers','fromKey','api/integrations/desk/fields/:id','editChatWebsiteApp','Customization\x20updated!','CreateOrEditCannedAnswerDialogController','app/main/apps/voice','AppZone','create_node','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperHistories?','af-ZA','Polish','Xhosa','WhatsappQueues','YYYY-MM-DDTHH:mm:ssZ','onClose','newDisposition','APP.DELETE','rgba','api.cmList.delete','api/chat/websites/:id/offline','There\x20has\x20been\x20an\x20error\x20while\x20trying\x20to\x20save\x20your\x20survey\x20session!','deleteChatWebsiteApp','userStatus','delete\x20musiconhold','Arabic\x20(Morocco)','vi-VN','SYSTEM:DELETEwhatsappQueue','QueueCampaign\x20properly\x20deleted!','SYSTEM:GET_TREE_REPORT_STRUCTURE','Asia/Dubai','VOICE.CONTEXTS','deselectFreshdeskAccounts','TelephonechangepasswordController','DASHBOARDS.OVERWRITE','jscriptyProjects','api/cm/contacts/create_many','mailQueue:save','Allowing\x20disposition\x20for\x20call\x20%s','api/cm/lists/:id/fields','audio','AgentController','motion-paleblue','originalMessage','projects','resourceId','red-fg','SmsAccountDispositionsController','\x2741\x27','Default','SYSTEM:GETuserProfile','api.intSugarcrmConfiguration.delete','uploading','concat','field,alias,function,format,groupBy,orderBy,custom,MetricId','src/js/modules/main/apps/integrations/views/deskAccounts/edit/item/dialog.html/dialog.html','CreateOrEditDeskAccountItemDialogController','TOOLS.NOTIFICATIONS.DISPOSITION_CREATED_SUCCESS_TITLE','SETTINGS.CUSTOMIZATIONS','intVtigerAccount@get','gotoSalesforceAccounts','/dispositions','https://','Interval\x20has\x20been\x20saved!','api/integrations/sugarcrm/accounts/describe','+08:00','installing','delete\x20application','id,name,level,ParentId','newFreshdeskAccount','appType','apps.settings.cloudProviders','handleKeydown','trigger:bot','ar-AE','1st','VoiceRecording\x20properly\x20saved!','loggedInDb','red-300-fg\x20icon-close-circle','SYSTEM:queueCampaign.REMOVELIST','app.callysquare.squareRecordings','queryFinal.filter','$mdColorPalette','Tamil\x20(Singapore)','src/js/modules/main/apps/staff/views/userProfiles/edit/view.html/view.html','api.intDeskConfiguration.save','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/playback/dialog.html/dialog.html','delete\x20cannedAnswer','api/integrations/sugarcrm/configurations/:id/descriptions','baseUrl','id,mailbox','getSenders','mailQueuesTotal','safari','transfer','LoginController\x20as\x20vm','MailQueuesController\x20as\x20vm','app.reset','app.fax','src/js/modules/main/apps/staff/views/agents/agents.html/agents.html','deleteTeam','ds.clock','app.voice','Conchita','telephone:save','Icelandic\x20(Iceland)','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperBlacks?','chatQueue@get','\x279600\x27','intFreshdeskConfiguration','WhatsappQueueagentaddController','getOpenchannelAccounts','selectAllPlugins','styles','SugarcrmConfiguration\x20properly\x20deleted!','without','stream','addNewContact','intZohoAccount@get','api/jscripty/projects/:id/sessions','delete\x20MailQueues','salesforceConfiguration','delete\x20inboundroute','Last\x20Year','Uighur','CreateOrEditDeskConfigurationDialogController','deselectCustomDashboards','inboundrouteApp','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/close/dialog.html/dialog.html','privateKey','onRemoveWhatsappQueueChannel','src/js/modules/main/apps/voice/views/inboundroutes/inboundroutes.html/inboundroutes.html','arrayannounce_holdtime','api/voice/transfers/reports/:id','us-west-1','Save\x20draft','newZendeskAccount','faxAccounts','app.tools.sounds','onSaveUserChatQueue','/internalroutes','Logout','SmsQueue\x20properly\x20deleted!','app.sms.realtime.agents','\x27SIP/{{user.name}}\x27','selectedIvrCampaignHopperBlacks','ticketType','SYSTEM:GETpauses','home.whatsapp','uploadSound','Voice','CDR(prefix)=${EXTEN:0:','src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/view.html/view.html','CustomDashboardcloneController','Asia/Ust-Nera','subStatuses','DESC','api.analyticFieldReport.update','api/mail/accounts/describe','ar-JO','api/openchannel/interactions/describe','getMetricValue','dialPredictiveIntervalMinThreshold','api/square/projects/:id/clone','$cookies','app.marketplace.plugins','800','usersMap','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20globalCustomFields?','FAX.NEW_FAXQUEUE','QueueParamsMotionDialerRealtimeController','EditInboundAppexternaldialDialogController','VOICE.NEW_VOICEQUEUE','European\x20Turkish\x20Male','falsepriority','Thai\x20(Thailand)','MsStepperController','CustomField\x20properly\x20deleted!','grey-fg\x20icon-phone-hangup','IS\x20NULL','APP.STAFF','temporarilyIgnoreMouseEvents','displayValue','The\x20freshdeskAccount\x20will\x20be\x20deleted.','Mathieu','api/integrations/servicenow/fields/:id','Chat\x20Offline\x20Messages','newPause','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/voicemail/dialog.html/dialog.html','Pacific/Marquesas','api.voicePrefix.save','composeMailInteraction','selectedScheduler','Tags','selectedCustomDashboards','src/js/modules/main/apps/motiondialer/views/realtime/queue_calls/view.html/view.html','ChatProactiveAction\x20properly\x20created','api/fax/queues/:id/members','getListCustomFields','/faxQueues','onSaveSmsQueue','apps.contactmanager.globalCustomFields','rrmemory','French','The\x20company\x20will\x20be\x20deleted.','AgentHomeFaxController','delete\x20project','api.cmCustomField.update','api/mail/queues/:id','delete\x20OutboundRoutes','groups','SmsAccountId','voiceExtension@get','INTEGRATIONS.NEW_ZENDESKACCOUNT','day','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hoppers?','newOpenchannelAccount','src/js/modules/main/apps/staff/views/teams/edit/agentadd/agentadd.html/agentadd.html','src/js/modules/main/apps/fax/views/realtime/realtime.html/realtime.html','api.openchannelAccount.delete','commitDate','smsAccounts','delete\x20InboundRoutes','$translate','UserSmsAccount','arraysubtractUnit','columns','IndexFactory','intersection','endOf','Contact\x20properly\x20updated!','\x20will\x20be\x20deleted.','close_all','motion.shortcuts','Command','api/square/recordings/:id/download','api.voiceQueue.save','exportSelectedMusicOnHoldMohSounds','tree','faxQueueReport','TOOLS.NOTIFICATIONS.DISPOSITION_SAVED_SUCCESS_TITLE','app.settings.cloudProviders','msChipColor','enable','CreateOrEditQueueCampaignDialogController','catch','#262933','smsQueue:remove','exportSelectedGlobalCustomFields','CreateOrEditSalesforceAccountItemDialogController','TriggerActionsController','api/voice/contexts/describe','unregistered','apps.help','JSCRIPTY.PROJECTS','faxPause','rpc@getMailAccounts','Schedule\x20properly\x20saved!','cell','Occitan','api.cmCustomField.delete','googleAsrLanguage','TagsController\x20as\x20vm','$on','isStepDisabled','freshsalesAccounts','analyticMetric@get','Ewa\x20(Polish,\x20Female)','mapValues','Sundanese','app.mail.realtime.accounts','delete\x20Odbcs','api/jscripty/answers/reports/:id','xAnswerMode','firstLevel','/voicemails','filterByIds','onSaveSmsInteraction','CreateOrEditVoicemailDialogController','apps.settings.system','container','saveServicenowConfiguration','sound','api/rpc/voice/channels/:uniqueid/mixmonitor','MAIL.MAILSUBSTATUSES','Low','smsAccountInteractions','deselectDynamics365Accounts','filtered','brportuguesefemale','tag@get','GET_COMPANY','APP.ALL_TEAMS','SugarCRM','Classic+','updateCondition','Danish','app/main/apps/jscripty','RESCHEDULE','Pacific/Kiritimati','moveSelectedQueueCampaignHopperFinals','\x200]?Goto(','English\x20(UK)','delete\x20openchannelQueue','Antarctica/DumontDUrville','Trunk\x20properly\x20saved!','CONTACTS\x20NOT\x20AVAILABLE','ZendeskConfiguration\x20properly\x20deleted!','apps.home.chat','Ivy\x20(English,\x20US,\x20Female)','app.chat.realtime.queues','JSCRIPTY.NEW_PROJECT','Odbc\x20properly\x20saved!','QueuesOpenchannelRealtimeController\x20as\x20vm','ACCOUNTS','smsCannedAnswer','dashboardItem','getNavigation','closeOnClick','SYSTEM:GET_OPENCHANNELACCOUNTS','api.cannedAnswer.save','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappAccounts?','getInternalRoutes','retrieveUser','\x27report_mail_transfer\x27','Fields\x20has\x20been\x20saved!','isEqual','icon-account-multiple','src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar-2.html/vertical-navigation-fullwidth-toolbar-2.html','minutes','newIndex','src','interface','intDeskConfiguration','selectedTriggers','api/voice/queues/:id/hopper_finals','SYSTEM:DELETEintZohoAccount','Nicole','limit','api/users/:id/fax_accounts','setConfig','delete\x20interval','ngJsTree','QueuesSmsRealtimeController','api.intZendeskConfiguration.save','Delete\x20FaxQueue','vtigerAccounts','GlobalCustomField\x20properly\x20deleted!','list','America/Nassau','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27paused\x27','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/set/dialog.html/dialog.html','api.intServicenowConfiguration.update','ChatQueue','api/userProfile/sections/:id/clone','destconnectedlinenum','apps.home.scheduled','pl-PL','gotocontactsgoto','Delete\x20SalesforceAccount','Schedule\x20properly\x20created','America/Argentina/Buenos_Aires','api.contact.delete','Invalid\x20number\x20of\x20arguments\x20supplied\x20in\x20the\x20color\x20array:\x20','deleteExtractedReport','$emit','prev','-07:00','api/users/','Hopper\x20properly\x20created','setConditionStatus','chain','api/cm/contacts/upload','setupSteps','openchannelAccountInteractions','Basic','data','Attachment\x20is\x20mandatory','app.footer','denied','getTemplates','Azerbaijani','apps.chat','elements','$lt','getSize','deleteWhatsappQueue','CAMPAIGN\x20NOT\x20ACTIVE','src/js/modules/main/apps/staff/views/teams/create/dialog.html/dialog.html','app.contactmanager.globalCustomFields','
TODO\x20legend\x20status\x20+\x20state
','Dynamics365AccountController\x20as\x20vm','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20node?','globalCustomFields','EditorUi','arraytimeoutrestart','endRangeValue','Minutes','emojioneArea','enqueue','src/js/modules/main/apps/voice/views/voicemails/edit/view.html/view.html','savedAsDraft','icon-format-text','upperFirst','createdAt,updatedAt,id,name','id,name,crudPermissions','/teams','ServicenowAccountConfigurationsController','now','/dashboards/general','getFlatNavigation','waitImagesLoaded','scrollLeft','Astrid','-updatedAt','/assets/images/theme-options/content-with-toolbar.jpg','STAFF.EDIT_TEAM','addLists','SYSTEM:GET_FAXACCOUNTS','MsShortcuts.query','deleteSelectedOpenchannelAccountApps','api/mail/accounts/:id/interactions','addNewUserProfile','deleteSelectedIvrCampaigns','STAFF.NOTIFICATIONS.PERMISSIONS_SAVED_SUCCESS_MESSAGE','userAgent','keyCode','voiceContext@get','wrapup','status','.ms-stepper-step-content','Chinese,\x20Cantonese\x20(Traditional,\x20Hong\x20Kong)','WHATSAPP.EDIT_WHATSAPPQUEUE','formsIncomplete','getColorByItem','VOICE.EDIT_VOICEMAIL','src/js/modules/main/apps/settings/views/networks/networks.html/networks.html','apps.home.openchannel','api/templates/:id/clone','tooltipVisible','absolute','deleteSelectedInboundRouteApps','Delete_permission','Upload\x20error','EditOpenchannelAccountAppautoreplyDialogController','goToTrunk','\x27always\x27','getHeaderErrors','voiceQueuesTotal','setBaseUrl','addSections','api_key','onInternalMessageUpdate','newSugarcrmConfiguration','getClass','src/js/modules/main/apps/staff/views/agents/create/dialog.html/dialog.html','msApi::requestError','Telephone\x20updated!','TOOLBAR.WARNING','src/js/modules/main/apps/chat/views/chatWebsites/edit/offlineMessages/dialog.html/dialog.html','DASHBOARDS.DECEMBER','Telephone\x20properly\x20deleted!','/mailSubtatuses','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/playback/dialog.html/dialog.html','api/license/:id','ANALYTICS.REMOVE','selectedSmsAccountSmsCannedAnswers','Abandon','deleteOpenchannelQueuesWaitingInteractions','APP.UNKNOWN','api/cm/lists/describe','api/voice/queues/:id/clone','api.squareRecording.delete','MsShortcutsController','Delete\x20ChatWebsite','next','VIDEO.EDIT_SCREENRECORDING','description','adminUrl','CreateOrEditZendeskConfigurationDialogController','getDateFromString','api/whatsapp/messages/:id/status','createOrEditProjectSession','deselectWhatsappAccounts','onReadyEditor','arraytrustrpid','CreateOrEditFreshdeskAccountDialogController','/callysquare/projects/','Tatyana\x20(Russian,\x20Female)','EditOpenchannelAccountAppnoopDialogController','VoiceRecordings','onSelectListSuccess','IS\x20NOT\x20NULL','api/userProfiles/:id/resources','msSearchBar','_path','post','pid','Delete\x20Company','MailCannedAnswer\x20deleted!','Australia/Currie','webrtc::settings','OPENCHANNEL.OPENCHANNELQUEUES','Asia/Krasnoyarsk','Delete\x20SmsQueue','hi-IN','voiceStatus','getNetworks','finally','CreateOrEditOdbcDialogController','readOnly','tabs','api.cmHopper.save','InboundRoute\x20properly\x20saved!','FaxQueue','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?','YYYY-MM-DD\x20HH:mm:ss','OfflineMessage\x20deleted!','\x27--\x27','Asia/Kamchatka','ngAria','browserName','America/Indiana/Vevay','api/openchannel/messages/:id/reject','\x272400\x27','America/Blanc-Sablon','SYSTEM:GET_USERPROFILES','saveUserProfile','SugarcrmAccountConfigurationsController','\x27fax_messages\x27','getSelectedVariable','WhatsappRealtimeController\x20as\x20vm','saveVtigerAccount','ComposeMailInteractionDialogController','ODBC','exports','Openchannel\x20Report\x20Transfer','defaultQueues','deselectTeams','api/userProfile/resources/:id','chatInteraction:update','createdAt,updatedAt,id,type,value,username,password','agent.name','exportSelectedFreshsalesAccounts','createOrEditVtigerAccount','faxAccountInteractions','src/js/modules/main/apps/staff/views/users/users.html/users.html','sugarcrmAccounts','innerHeight','api/integrations/zoho/accounts/describe','/queue_calls','home.openchannel','id,uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','ATTACHMENTS:GET','Agent','user_has_chat_interactions:remove','descriptions','apps.openchannel.openchannelAccounts','addNewContext','api/members/reports/describe','src/js/modules/main/apps/tools/views/schedules/partialViews/reports/treeReports.html/treeReports.html','Indian/Kerguelen','src/js/modules/main/apps/integrations/views/dynamics365Accounts/dynamics365Accounts.html/dynamics365Accounts.html','Voicemails','The\x20contact\x20will\x20be\x20deleted.','api/sms/messages/:id/clone','odbc_id','apps.motiondialer.realtime','addNewSugarcrmConfiguration','Georgian\x20(Georgia)','America/Argentina/Rio_Gallegos','restart\x20plugin\x20process','addNewCloudProvider','macro','QueueParamsVoiceRealtimeController','app.staff','onSaveUserSmsQueue','cutdigits','CONTACTMANAGER.EDIT_COMPANY','value','$selectedColor','deleteMailCannedAnswer','deleteSmtp','America/Cuiaba','Message\x20properly\x20rejected!','app.mail.mailSubtatuses','VOICE.INBOUND','createOrEditMusicOnHoldMohSound','api/integrations/vtiger/configurations/:id/descriptions','VoiceRecordingsController','api/voice/chanspy/:id','Zendesk','DASHBOARDS.NO_DISPOSITION_SET','ANALYTICS.EDIT_EXTRACTEDREPORT','addNewOdbc','api/pauses/:id','voice_queue_channel:save','mouseenter\x20mouseleave','STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE','createOrEditZendeskAccount','between','agentForm','icon-apps','api/integrations/zendesk/accounts/:id/fields','ServicenowAccounts','SYSTEM:GET_MUSICONHOLDS','Amy\x20(English,\x20British,\x20Female)','api/chat/interactions/:id/my_messages','develop','api.schedule.save','src/js/modules/core/directives/ms-phonebar/settings/settings.html/settings.html','dec','api/users/:id/sms_accounts','api/integrations/servicenow/configurations/:id/subjects','delete\x20Metrics','EditFaxAccountApptagDialogController','instances','/odbcs','PrefixDialogController','columnName','addNewCustomField','CreateOrEditAllConditionDialogController','ms-tab-scroll','src/js/modules/main/apps/settings/views/updates/update/dialog.html/dialog.html','$resource','fields','api/teams/:id/queues','\x27inuse\x27','Never','trimStart','stopUpload','red-300-fg\x20icon-phone-locked','MusicOnHoldController','Delete\x20disposition','credential','getReportFields','Penelope\x20(Spanish,\x20US,\x20Female)','api/integrations/vtiger/configurations/describe','APP.USERS','api/voice/queues/:id/teams','newSmsQueue','onRemoveMember','debounce','api.trigger.delete','Galician\x20(Spain)','createdAt,updatedAt,id,defaultLogo,defaultLoginLogo,defaultFavicon,defaultHeaderWhiteLabel,headerWhiteLabel,defaultPageTitle,pageTitle,defaultPreferred','src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/zendeskConfigurations/dialog.html/dialog.html','createOrEditOpenchannelQueue','CreateOrEditVtigerConfigurationDialogController','Kendra\x20(English,\x20US,\x20Female)','ContactsController\x20as\x20vm','SYSTEM:GETvoiceMusicOnHold','STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE','America/Indiana/Indianapolis','api.agent.save','deleteFaxAccount','ChatCannedAnswer\x20properly\x20saved!','deselectContacts','Hungarian','\x27r\x27','\x27udp\x27','disabled','published','src/js/modules/main/apps/integrations/views/zendeskAccounts/zendeskAccounts.html/zendeskAccounts.html','api/rpc/sms/queues/:id/notify','APP.SELECTED_USERS','motion2.home.chat:','api/openchannel/accounts/describe','EditSmsAccountAppagentDialogController','password','never','SYSTEM:GET','/integrations','dialogflowV2','notes','GET_PAUSE','clonedialog','QueueCampaignblacklistaddController','api/chat/interactions/:id/close','voicePrefix\x20properly\x20saved!','enumerateDevices','INTEGRATIONS.NEW_DESKACCOUNT','FreshdeskConfiguration\x20deleted!','VOICE.VOICERECORDINGS','api/rpc/mail/accounts','openchannelCapacity','deleteChatQueue','toJson','acceptedMessages','squareProject@get','SYSTEM:DELETEmailAccount','XCALLY-MOTION-PROGRESS=1','userVoiceQueueRt:save','timeoutId','createdAt,updatedAt,id,name,type,selector,timeout','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/interval/dialog.html/dialog.html','AVG','ScreenRecordingsController','hasPermission','api/openchannel/reports/transfer/describe','SYSTEM:GETsounds','.results','deleteVtigerAccount','userStatusOptions','newOutboundRoute','api/integrations/desk/configurations/:id','he-IL','ms-shortcuts','/zohoAccounts','openchannelQueue','floor','CreateOrEditContextDialogController','AgentHomeDashboardMultiChannelMailController','The\x20network\x20will\x20be\x20deleted.','months','internalroute','api/mail/accounts/:id/applications','HANGUPCAUSE_38','UsersController','Pacific/Fiji','CALLYSQUARE.PROJECTS','Trunk\x20updated!','NoAnswer','deselectServicenowAccounts','QUEUE_NAME','ngclipboard','paragraph','UserSmsDashboardGeneralController','Calibri,\x20Verdana,\x20Geneva,\x20sans-serif','api.smsAccount.update','onLogout','deselect_all','IvrCampaign','createOrEditWidget','findIndex','DASHBOARDS.SELECT_TAG','plugin:save','$setViewValue','api.voiceChanSpy.update','msApi::requestSuccess','ExtractedReport\x20properly\x20saved!','level','api/campaigns/:id','debugEnabled','api/fax/interactions/:id/download','\x27openchannel_queues\x27','extractedReport','Europe/Oslo','smsCapacity','application/json','SYSTEM:GETPAUSES','delete\x20chatProactiveAction','api/integrations/desk/configurations/:id/fields','\x22\x20err:','/api/settings/1/logo','SYSTEM:GET_MAILACCOUNTS','mailAccountApp','AboutController\x20as\x20vm','goto','hopperHistory','UserMailDashboardGeneralController\x20as\x20vm','QueueCampaign\x20properly\x20cloned','getHopperBlacks','msDialogRecording','app.tools.pauses','Asia/Singapore','app.auth','startDate','api/sms/reports/transfer/:id','agentNotify','uniqueid,calleridnum,statedesc,starttime,disposition,secondDisposition,thirdDisposition','CreateOrEditTeamDialogController','api/users/:id/contacts','Tags\x20set!','api/jscripty/projects/:id/answers','ChatGroupController','newFaxQueue','TOOLBAR.WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE','SYSTEM:GETTAGS','api/integrations/zoho/configurations/:id','delete\x20customDashboard','isStepValid','Freshdesk','variable.name','onExpand','\x20has\x20been\x20deleted!','Delete\x20QueueCampaign','\x27random\x27','hidden','exportSelectedChanSpies','intSugarcrmAccount','MyTitle','apps.integrations.freshdeskAccounts','Europe/Rome','addNewHopper','newvoicePrefix','Europe/Vilnius','deselectSalesforceAccounts','addContacts','#ebf1fa','delete\x20Companys','src/js/modules/main/apps/sms/views/smsQueues/smsQueues.html/smsQueues.html','$state','VoicemailController\x20as\x20vm','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsAccounts?','chooseFromList','api/auth/local/user/:token','$ariaProvider','app.whatsapp.whatsappAccounts.edit','lo-LA','arrayoutput','\x27bottom_right\x27','api/integrations/vtiger/configurations/:id/clone','Smtp\x20verified!','icon-phone','accesskeyid','Project\x20deleted!','/customizations','onForceLogout\x20->\x20data','$mdSidenav','HANGUPCAUSE_41','api/voice/queues/:id/hopper_black','VOICE.NEW_CONTEXT','German','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/dial/dialog.html/dialog.html','fontSize','ERROR\x20OPEN\x20CONTACT','exportSelectedScheduler','getCampaigns','app.integrations.zohoAccounts','chatWebsiteApp','SYSTEM:DELETEcmCompany','\x27S\x27','jscriptySessionReport','queryHopper.filter','createdAt,updatedAt,id,name,dsn,description','api/integrations/salesforce/fields/:id/clone','Spanish\x20(Chile)','/abandonedcalls','VOICE.MUSICONHOLDS','blue-fg','Fax\x20','AgentGeneralHomeController','deleteQueueCampaign','Campaign\x20Without\x20Lists','One\x20Time','capitalize','You\x20can\x27t\x20remove\x20service\x20account','DASHBOARDS.CALL_DISPOSED','iPhone','/userProfiles','toggleHorizontalMobileMenu','America/Noronha','AgentsOpenchannelRealtimeController\x20as\x20vm','\x27limit\x27','Home','id,name','/openchannelQueues','selectedVoiceRecordings','Squared','Nepali\x20(Nepal)','cmContact@getHopperHistories','chanSpy\x20properly\x20saved!','English\x20(South\x20Africa)','ngResource','delete\x20whatsappQueue','ringingVolume','America/Argentina/Cordoba','statedesc','api/square/odbc/describe','userProfile','VtigerAccountsController\x20as\x20vm','ng-sortable','true','voiceRecordings','Asia/Beirut','CALLYSQUARE.NEW_SQUARERECORDING','SYSTEM:DELETEnetwork','onRemoveOpenchannelQueueChannel','en-CA','Error\x20creating\x20queue!','penalty\x20','US\x20Money','CreateOrEditDeskAccountDialogController','lv-LV','agi://127.0.0.1/square,','addApi','DASHBOARDS.LAST_YEAR','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/noop/dialog.html/dialog.html','response','This\x20Week','deleteMailAccountMailCannedAnswer','IvrCampaignHopperHistoriesController','customDashboards','Emma\x20(English,\x20British,\x20Female)','rewriteRouting','Last\x20Week','INTEGRATIONS.EDIT_ZOHOACCOUNT','uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','NotFoundError','usmoney','','currentPage','Whatsapp\x20Report\x20Queue','availableStates','unknown\x20device','IndexController','ms-search-bar','\x20has\x20been\x20created!','newMail','VoiceRealtimeController','mapAgentsId','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voicePrefixes?','\x27minutes\x27','layoutStyle','port','TOOLS.NOTIFICATIONS.ACTION_SAVED_SUCCESS_TITLE','seconds','\x27penalty\x27','Jacek\x20(Polish,\x20Male)','setNavigationScope','gotogoto','api/sounds','random','isBetween','Indonesian\x20(Indonesia)','api/rpc/openchannel/queues/:id/notify','OpenchannelQueueId','mouseEventIgnoreTimeout','arraydialMethod','resizable','\x27timeout\x27','motionConfig','ANALYTICS.REPORTS','SalesforceConfiguration\x20properly\x20deleted!','app.motiondialer.realtime.queue_calls','api/voice/mohs/:id','api/fax/messages/describe','Ivy','saveMailAccount','MailAccount\x20updated!','deleteSelectedMailAccounts','Teams','disposeInteraction','alert','enter','createOrEditCustomDashboard','trigger','api.user.update','image','interval\x20#','expandAnimation','Canadian\x20French\x20Male','\x27wss\x27','htmlContent','rgba(','SMSACCOUNT:SEND','Tag\x20properly\x20created!','English\x20(Australia)','intVtigerField','g723','TriggerAllId','voice_outbound_channel:remove','changeLanguage','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/set/dialog.html/dialog.html','MOTIONDIALER.CLONE_QUEUECAMPAIGN','IvrCampaign\x20properly\x20created','api/triggers/:id/all_conditions','selectedQueueCampaignHopperHistories','api/jira','id,name,save_name','encodeURIComponent','deleteSelectedWhatsappAccountWhatsappCannedAnswers','rpcVoiceQueuesChannels','AgentGeneralInteractionController','Trasfer\x20properly\x20done!','agi','MxGraphSaveProjectAsController','globalCustomField','FreshsalesAccountConfigurationsController','MailQueue\x20properly\x20deleted!','api/voice/calls/reports/describe','MONITOR_OPTIONS=ab','\x27voice\x27','FreshdeskAccount\x20properly\x20deleted!','newIvrCampaign','currentConferenceSessions','SYSTEM:DELETEjscriptyProject','Hungarian\x20Female','InternalRoute','vm_pb','delete\x20openchannelCannedAnswer','America/Panama','deselectPlugins','isBefore','IS_NOT_EQUAL','api/users/:id/lists','MAIL.MAILQUEUES','Image\x20is\x20loaded','NONAME','api.screenRecording.delete','CreateOrEditNetworkDialogController','vm_voice.query.filter','api.voiceContext.save','createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','exportSelectedMailAccountMailCannedAnswers','$mdTheming','\x274\x27','Supported\x20extension:\x20','src/js/modules/main/apps/jscripty/views/projects/edit/view.html/view.html','responsive','passwordResetAt','faxInteractions','deleteOpenchannelCannedAnswer','src/js/modules/main/apps/dashboards/views/general/user/voice/user.general.voice.html/user.general.voice.html','rpcCampaigns','api/rpc/chat/queues/waitinginteractions','skype','+03:00','selectedSubjects','addNewIvrCampaign','\x0a','CreateOrEditChatWebsiteDialogController','app.mail.realtime','openchannelInteractionTags:save','api/chat/reports/transfer/describe','initDeviceInProgress','addPart','onUpdateFaxInteraction','Delete\x20Team','Slovak\x20(Slovakia)','api/integrations/reports/describe','Italian\x20(Italy)','gotoVoiceRecordings','French\x20(France)','api/voice/recordings/:id/transcribe','onMessageUpdate','sv-SE','WhatsappQueueId','MailAccountagentaddController','','&token=','Join','@token','api/rpc/voice/channels/:uniqueid/stopmixmonitor','saveChatCannedAnswer','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20chatProactiveAction?','UserProfilecloneController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20inboundroutes?','hasShortcut','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','gotoZohoAccounts','Module\x20has\x20been\x20updated!','selectAllVariables','integration','removed','The\x20zohoConfiguration\x20will\x20be\x20deleted.','moveConfirm','$urlServiceProvider','callStatuses','api/integrations/:id','ap-northeast-1','api/cm/custom_fields/describe','deleteZohoConfiguration','pendingChanges','addNewSmsQueue','orange-bg','microphoneVolume','Unlicensed','navigation','us-east-1','9600','pendingCondition','sendDTMF','src/js/modules/main/apps/chat/views/chatWebsites/edit/chatCannedAnswers/dialog.html/dialog.html','zh-TW','exportSelectedQueueCampaignHopperBlacks','DASHBOARDS.SELECT_CAMPAIGN','motion2.home.fax:','\x27WAV\x27','createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description','SugarcrmAccount\x20updated!','apps.fax.realtime','realm','mindigit','priority','wholerow','voiceQueuesLog','\x27rfc2833\x27','app.voice.internalroutes','Ukrainian','createOrEditChatWebsiteOfflineMessage','Maja\x20(Polish,\x20Female)','msHorizontalStepperStep','tag.name','selectedSmsAccounts','FreshsalesAccount\x20properly\x20saved!','Catalan\x20(Catalan)','AgentHomeAbandonedVoiceController','src/js/modules/main/apps/analytics/views/reports/preview/dialog.html/dialog.html','src/js/modules/forgot/forgot.html/forgot.html','delete\x20applications','INTEGRATIONS.EDIT_SALESFORCEACCOUNT','^msWidget','MsNavigationHorizontalNodeController\x20as\x20vm','Plugin\x20uninstalled!','open','-createdAt,questionId','trigger:contactmanager','Pacific/Chatham','List\x20properly\x20saved!','openchannelAccountApps','blue-300-fg\x20icon-phone-outgoing','addTrack','CreateOrEditMusicOnHoldDialogController','exportSelectedZohoAccounts','screenRecordings','selectedVoicePrefixes','faxStatus','SYSTEM:DELETECONFIGURATION','The\x20status\x20will\x20be\x20changed\x20to:\x20','DASHBOARDS.CALL_SAVED','onMultiselectSelection','deleteSound','apps.home.dashboard','collapse-animation','ms-target-wrap','Away','api.intFreshdeskConfiguration.save','faxQueue','home.fax','take','parentKey','mouseOver','addNewDeskConfiguration','convertDuration','api.intFreshsalesAccount.update','whatsappInteractionTags:save','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','SYSTEM:UPDATEVOICERECORDING','PreviewReportDialogController','Australia/Eucla','/pauses','smsAccount@get','SYSTEM:GETreport','SETTINGS.LICENSE_REQUEST_SENT','ParentId','facebook','selectedDynamics365Configuration','serviceWorker','squareRecording','id,name,description,notes','selectedTableChange','Plivo','\x27localnet\x27','MOTIONDIALER.QUEUECAMPAIGNS','mailStatusTime','Chantal\x20(French,\x20Canadian,\x20Female)','apps.home.fax','Amy','deleteSelectedSmsAccounts','createOrEditMotionDialerQueue','mailApplication','saveTrunk','pdf','arraynat','api.intFreshdeskConfiguration.delete','savePlugin','$setUntouched','whatsappQueuesTotal','refresh','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27unknown\x27','delete\x20hopperFinals','onTypeSelection','Oriya','English\x20(India)','Europe/Helsinki','-01:00','saveVoiceRecording','Croatian','Romansh','Customer\x20Ip','cookieAlertHide','item','faxInteraction:save','api/integrations/salesforce/accounts/:id/configurations','prefix','createOrEditContext','queryFinal','app.tools.templates','getBaseUrl','api/intervals/describe','CannedAnswersController','Europe/Luxembourg','Swedish\x20(Sweden)','CreateOrEditDynamics365ConfigurationDialogController','TOOLBAR.JAPANESE','Spanish\x20(El\x20Salvador)','SYSTEM:GETvoiceRecording','voiceDialReport','api/voice/extensions/:id/clone','STARTS_WITH','selectAllTelephones','apps.contactmanager.companies','api/cm/lists/:id/contacts','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','\x27DESC\x27','getWhatsappAccountLabel','America/Metlakatla','\x27mouseOver\x27','deleteAllCondition','Email\x20Interaction','European\x20Portuguese\x20Male','name.name','createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,rating,audio,transcribeStatus,UserId','saveMusicOnHold','chatMessage','rule','GET_PROJECT','The\x20report\x20will\x20be\x20deleted.','dateEnd','OpenchannelAccount\x20properly\x20created','api/openchannel/interactions/:id','msResponsiveTable','SYSTEM:GETcontexts','TOOLS.NOTIFICATIONS.TRIGGER_DELETE_TITLE','getMessagesAlignment','faxAccountApp','Token','absorbEvent','busy','Report\x20downloaded!','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/internaldial/dialog.html/dialog.html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20freshsalesAccounts?','INTEGRATIONS.EDIT_ZOHOCONFIGURATION','api/triggers/:id/actions','api/sms/messages/:id/accept','reload','Edited','^msFormWizard','SYSTEM:DELETEcmCustomField','exportSelectedODBC','ANALYTICS.EDIT_METRIC','ms-card','AgentHomeScheduledCallsController','mailAccount@get','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','showConfirm','country','\x27ja\x27','Hausa','onUpdateVoiceQueueReport','wasUserInPause','src/js/modules/main/apps/tools/views/tags/create/dialog.html/dialog.html','api/voice/calls/reports/:id/clone','selectedOutboundRoutes','America/Denver','api.faxQueue.delete','currentStepNumber','api.intDeskAccount.delete','Slovak','Dispositions','addNewCustomDashboard','exportSelectedSmsAccountSmsCannedAnswers','mailInteraction:save','SYSTEM:GETchatWebsite','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperHistory?','counter','exportSelectedCustomDashboards','DeskConfiguration\x20deleted!','Scheduled\x20call','webrtc::logout','removeColor','\x27TI\x27','FAX.FAXACCOUNTS','api/voice/agents/reports/describe','Lucida\x20Sans\x20Unicode','IvrCampaign\x20updated!','src/js/modules/main/apps/contactmanager/views/lists/edit/agentadd/agentadd.html/agentadd.html','calendar','standardDate','contactRelationUpdate','Intelepeer','headers','Atlantic/Reykjavik','createOrEditField','remotePlayer','api/integrations/desk/configurations/:id/clone','deviceId','Call\x20Report','CreateOrEditFaxAccountDialogController','deleteFreshdeskConfiguration','$mdConstant','localHold','deselectIntervals','America/Argentina/Ushuaia','api/chat/websites/:id/applications','polling','isChecked','delete\x20zohoAccount','telephones','src/js/modules/main/apps/openchannel/views/openchannelAccounts/openchannelAccounts.html/openchannelAccounts.html','selectedItem','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voiceQueues?','dateStart','msTimezone','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/hangup/dialog.html/dialog.html','onVoiceQueue','Indonesian','Begin\x20forwarded\x20message:

From:\x20{{\x20from\x20}}
Subject:\x20{{\x20subject\x20}}
Date:\x20{{\x20date\x20}},\x20at\x20{{\x20time\x20}}
To:\x20{{\x20to\x20}}','ms-stepper-step','Europe/Tallinn','VoiceQueueteamaddController','MARKETPLACE.MARKETPLACE','Cristiano\x20(Portuguese,\x20Male)','hour','No\x20answers\x20available','selectAllVtigerAccounts','CreateOrEditOpenchannelCannedAnswerDialogController','Tag\x20properly\x20saved!','selectedInternalRouteApps','cmCompany@get','\x27report_whatsapp_queue\x27','STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_TITLE','EditoutboundApp','ms-timeline','api/settings/:id/logo_login','style','$watch','Contact\x20ID\x20','getAgentStatus','UserWhatsappDashboardGeneralController','getConfigurations','selectedIvrCampaigns','runReport','CALLYSQUARE.CALLYSQUARE','\x27report_square\x27','dashboard@get','delete\x20chatQueue','activateHueSelection','Text','api/fax/queues/:id','currentNode','Pacific/Apia','openchannelMessage:save','AiTools','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20agent?','WHATSAPP.WHATSAPPQUEUES','goTo','whatsappInteractionDownload','api.analyticExtractedReport.delete','DASHBOARDS.TAGS','MailCannedAnswer\x20properly\x20deleted!','$notIn','smsQueue','api.openchannel.account','CreateOrEditGlobalCustomFieldDialogController','api/whatsapp/queues/describe','HOUR','jabraClicked','congestion','mapKey','VoiceQueuesController\x20as\x20vm','delete\x20voicemail','APP.CANT_DOWNLOAD_THIS_FILE','Asia/Brunei','saveInboundRoute','Asia/Tashkent','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20servicenowConfiguration?','api/fax/accounts/:id/clone','Europe/Warsaw','api/openchannel/reports/queue/describe','getDispositions','api/version','deleteSelectedWhatsappQueues','getDeskConfiguration','api/voice/extensions/:id','#interaction-content','autoCreate','duplicatedRows','onDateRangeSelection','gotorealtimegoto','timeRangeTo','DASHBOARDS.SUN','Sound\x20properly\x20deleted!','api.jscriptyProject.save','getHopperFinals','browser','OPENCHANNEL.NEW_OPENCHANNELACCOUNT','customFieldsMap','$apply','variable@get','app/main/apps/settings','DashboardCustomController','method','setting@get','smsAccount','voicePrefix\x20properly\x20deleted!','api.whatsappAccount.delete','saveDialog','isFormValid','Report\x20saved!','src/js/modules/main/apps/contactmanager/views/contacts/merge/dialog.html/dialog.html','delete\x20plugin','FEMALE','outboundBlacklistCallsDay','smsCannedAnswers','api.mailSubstatus.delete','contrast','ReportsController','TOOLS.NOTIFICATIONS.TRIGGER_DELETE_MESSAGE','api/chat/messages/:id','allconditions','varPath','type','id,type,calleridnum,calleridname,queue,queuecallerabandonAt,queuecallerexitAt,queuecallerexitreason,assigned,lastAssignedTo,updatedAt,disposition,secondDisposition,thirdDisposition','permission','gotoInboundRoutes','saveCompany','phoneBarAutoAnswerDelay','ro-RO','deleteCustomDashboard','apps.settings.license','openchannelInteraction:save','$eval','||FIELD||OLD||NEW||\x0a','id,fullname,internal','api/jscripty/projects/:id','getExtractedReports','downloadOpenchannelInteraction','DASHBOARDS.FRI','servicenow','ChatWebsiteId','SYSTEM:UPDATEanalyticTreeReport','deleteSelectedLists','ngMessages','alreadyExistsTab','CreateOrEditSmsAccountDialogController','autoSelectOperator','src/js/modules/main/apps/voice/views/internalroutes/internalroutes.html/internalroutes.html','The\x20freshsalesAccount\x20will\x20be\x20deleted.','Interaction\x20properly\x20tagged!','+09:30','update','isValidCondition','sms','DASHBOARDS.JUNE','int','api/schedules/:id/clone','Start\x20Date','MsTabScrollController','DASHBOARDS.NOT_ASSIGNED','error-404','\x27gmail\x27','$broadcast','What\x20would\x20you\x20name\x20your\x20list?','icon-google-earth','INTEGRATIONS.EDIT_VTIGERCONFIGURATION','cancel','onCollapse','api/mail/applications/describe','The\x20theme\x20\x22','CreateOrEditChatGroupDialogController','src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/item/dialog.html/dialog.html','deleteServicenowAccount','WHATSAPP.WHATSAPPACCOUNTS','api.voiceContext.delete','getReceivers','DashboardItem\x20properly\x20deleted!','Message\x20deleted!','CHAT.NEW_CHATWEBSITE','app.sms.realtime','ChatWebsitesController\x20as\x20vm','Dashboards','\x27it\x27','pm_id','Updates','The\x20system\x20request\x20time\x20for\x20the\x20update\x20should\x20be\x20below\x201\x20minute.

Do\x20you\x20agree\x20the\x20terms\x20of\x20this\x20End\x20User\x20License\x20Agreement?','icon-home','Group\x20properly\x20saved!','/whatsappAccounts','queueAdd','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/agentadd/agentadd.html/agentadd.html','api/integrations/servicenow/accounts/:id/configurations','License\x20update\x20failed!','testtestintegrationaccount','get_node','getSmsQueues','api/plugins/:id/download','getJscriptySessions','speakerMute','TrunksVoiceRealtimeController\x20as\x20vm','Asia/Bangkok','NEVER','app.chat.chatWebsites','\x22\x20is\x20not\x20defined!','api/automations/:id','Context\x20properly\x20deleted!','addNewTrigger','Europe/Belgrade','bn-IN','DATE','<%3B','SYSTEM:UPDATEVOICECALLREPORT','msScrollConfigProvider','deleteIvrCampaign','\x27loose\x27','Europe/Brussels','saveZohoAccount','SYSTEM:GETintDynamics365Account','api/fax/interactions/describe','api/whatsapp/applications/:id/clone','api/userProfile/resources/:id/clone','ChatWebsiteInteractionsController','deleteInterval','AgentGeneralJscriptyController','app.sms','delete\x20sugarcrmAccount','getJscriptyProjects','headerWhiteLabel','sessions','src/js/modules/main/apps/tools/views/tags/tags.html/tags.html','Vitoria','TOOLBAR.ENGLISH','whatsappQueues','delete\x20intervals','Email\x20Account','newList','#pageTitle','ChatQueueagentaddController','deleteChatQueuesWaitingInteractions','api/integrations/sugarcrm/accounts/:id/clone','Kannada','deleteTrunk','newDeskConfiguration','updateProcess','selectAllWhatsappQueues','controller','apps.contactmanager.contacts','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','arraycallcounter','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20cloudProviders?','IS_GREATER_THAN_OR_EQUAL_TO','rurussianfemale','Skebby','api/users/:id/whatsapp/interactions','Hopper\x20properly\x20deleted!','permissions','webtransfer','Asia/Qyzylorda','AllCondition\x20properly\x20created','api/cm/hopper_history/describe','isJabraEnabled','Indian/Maldives','api/square/details/reports/:id/clone','getFaxAccountApps','api.intFreshdeskAccount.update','reduce','Atlantic/Bermuda','Type','InternalRoutes','No\x20corresponding\x20process\x20found','deleteSelectedOpenchannelAccountOpenchannelCannedAnswers','VOICE.EDIT_MUSICONHOLD','whatsappCurrentCapacity','src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/view.html/view.html','app.fax.realtime.trunks','selectAllTemplates','app/header','quick-panel','deselectProjects','agentCapacity','contactmanager','/plugins','userpic','flipped','deleteSelectedOpenchannelQueues','api/users/:id/sms_interactions','saveQueueCampaign','$pristine','ShowOfflineMessageOfflineMessageDialogController','dialogflow','app.motiondialer.ivrCampaigns','toggleClass','openSettings','unPause','group','delete\x20mailCannedAnswer','timeRangeFrom','api.trunk.update','stateRegistry','alwaysWatchTheme','AgentHomeVoiceDetailsController','selectedVoicemails','Message\x20has\x20been\x20sent!','getMultiBarChart','src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/item/dialog.html/dialog.html','Swedish\x20Female','Phone','SmsAccount\x20properly\x20created','SYSTEM:DELETEpause','userProfileForm','api/whatsapp/queues/:id/users','some','targetEvent','JscriptyProjectController','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/system/dialog.html/dialog.html','FAX.EDIT_FAXQUEUE','api/analytics/field_reports/describe','$between','delete\x20hopperBlacks','src/js/modules/main/apps/sms/views/smsAccounts/edit/smsCannedAnswers/dialog.html/dialog.html','getChatQueues','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/queue/dialog.html/dialog.html','America/Monterrey','api/chat/interactions/:id','app.fax.realtime.queues','jstree','getInboundRouteApps','dialActive','aug','intServicenowConfiguration','src/js/modules/main/apps/tools/views/trunks/create/dialog.html/dialog.html','UpdateDialogController','api/screen/recordings/describe','$interpolate','api/integrations/reports/:id','saveReschedule','onFaxMessageSave','\x27pt-br\x27','updateView','api/rpc/fax/queues/:id/notify','Metric\x20properly\x20created','accounts','AgentsWhatsappRealtimeController','CDR(tag)=','externaldial','America/North_Dakota/Center','createOrEditVoiceQueue','src/js/modules/main/apps/mail/views/realtime/queues/view.html/view.html','deleteInternalRoute','TOOLS.EDIT_CANNEDANSWER','Swahili\x20(Kenya)','app.callysquare.projects','delete\x20squareRecording','Geraint\x20(English,\x20Welsh,\x20Male)','refreshContacts','=viewModel','faxQueues','ChatWebsite\x20properly\x20created','api/voice/queues/:id/users','selectedServicenowConfiguration','newUserProfile',';font-size:','msNavigationHorizontalNode','SmsQueueteamaddController','#616161','api/campaigns/:id/hopper_black','You\x20are\x20not\x20the\x20owner\x20of\x20the\x20last\x20message!','isHiddenField','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20mailCannedAnswer?','msClickToCall','OpenchannelAccountDispositionsController','addNewDeskAccount','api/mail/accounts/:id/messages','VOICE.RUNSENTIMENT_VOICERECORDING','left','createdAt,updatedAt,id,name,description,dialPrefix','GROUP_CONCAT\x20(','faxMessage:save','APP.GENERAL','Technology/Resource','MOTLICENSE','TOOLBAR.BRAZILIAN','api/cm/lists/:id/clone','disableGetContact','ms-navigation-folded-open','SETTINGS.EDIT_SMTP','api/cm/contacts/:id/tags','\x22resource\x22\x20must\x20be\x20an\x20array\x20and\x20it\x20must\x20follow\x20$resource\x20definition','MIN\x20(','intFreshsalesField','id,name,type,dialMethod,dialActive','Africa/Maputo','api/rpc/agents/:id/notify','exportSelectedVoicePrefixes','newOpenchannelQueue','replyTemplate','app.whatsapp.whatsappQueues','Node','Plugin\x20properly\x20deleted!','CreateOrEditSugarcrmAccountItemDialogController','quickFilterManager','api/chat/websites/:id/canned_answers','mr-IN','SYSTEM:GETvoiceExtension','SYSTEM:DELETEintSalesforceAccount','pause','CreateOrEditvoicePrefixDialogController','api.whatsappAccount.save','delete\x20Schedules','quickFilters','jun','SYSTEM:GETopenchannelAccount','InboundRoutesController','firstName,lastName,mobile','apps.chat.realtime','TOOLS.NOTIFICATIONS.TRIGGERS_DELETE_TITLE','/avatar','name,id','jscriptyProject@get','\x27datetime\x27','api/jscripty/answers/reports/:id/clone','smsAccountApp','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/goto/dialog.html/dialog.html','api/voice/calls/reports/:id','MsNavigationController','SYSTEM:GET_AGENTS','Ricardo\x20(Portuguese,\x20Brazilian,\x20Male)','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/dialogflow/dialog.html/dialog.html','Justin\x20(English,\x20US,\x20Male)','America/Detroit','UpdatesController','scriptName','Trident/7','Restore\x20Contact','Australia/Lindeman','app.staff.telephones','addNewInternalRoute','deleteOpenchannelAccountInteraction','$mdThemingProvider','America/Thunder_Bay','hopperHistory\x20#','setActiveTheme','QueuesSmsRealtimeController\x20as\x20vm','TrunkId','ar-IL','deleteSelectedOpenchannelAccountInteractions','app.dashboards.custom','addNewSalesforceConfiguration','api/cm/contacts/:id/hopper_finals','Pacific/Funafuti','api/integrations/salesforce/configurations/:id/subjects','saveChatWebsiteApp','api/integrations/desk/accounts/:id/clone','green-A700','WhatsappAccount\x20updated!','getChannelByItem','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/agent/dialog.html/dialog.html','EditOpenchannelAccountApptagDialogController','app.motiondialer.realtime.queues','DASHBOARDS.SELECT_AGENT','question,answer','getFirstAvailableContact','system','expanded','Faroese','Interaction\x20has\x20been\x20closed!','loop','api/integrations/sugarcrm/configurations/:id/clone','ServicenowAccount\x20properly\x20deleted!','\x20or\x20','getUserProfiles','icon-playlist-plus','Please\x20select\x20a\x20variable','angular-cron-jobs','addNewInboundRoute','api/integrations/desk/fields/:id/clone','getMonthName','app.motiondialer.ivrCampaigns.edit','getMailAccountLabel','QueueParamsMotionDialerRealtimeController\x20as\x20vm','-id','demo','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?','API:ERROR','whatsappAccountApps','citystate','exportSelectedLists','api/integrations/servicenow/fields/describe','addNewServicenowAccount','composeWhatsappInteraction','api/users/:id/groups','api/voice/dials/reports/:id','getVoiceQueuesReport','cmContact@getJscriptySessions','TelephoneController\x20as\x20vm','ctrlMethods','English\x20(Tanzania)','src/js/modules/main/apps/voice/views/voiceRecordings/edit/view.html/view.html','isIntegrationDisabled','mediaDevices','api/users/:id/queues','Korean\x20Female','AgentqueueaddController','chanSpy\x20properly\x20created','deleteAgent','STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_MESSAGE','destaccountcode','contacts','$digest','Europe/Budapest','selectedCannedAnswers','Delete\x20MailAccount','Delete\x20Plugin','','black','api.squareOdbc.delete','phoneBarAutoAnswer','IvrCampaignHopperStatisticsController','src/js/modules/main/apps/sms/views/smsQueues/edit/agentadd/agentadd.html/agentadd.html','FreshdeskAccounts','saveFaxAccount','src/js/modules/main/apps/openchannel/views/openchannelQueues/create/dialog.html/dialog.html','Delete\x20Report','SYSTEM:DELETEsquareRecording','Delete\x20Customization','Camino','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/noop/dialog.html/dialog.html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelAccounts?','app.chat','src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/custom/dialog.html/dialog.html','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','vm.query','si-LK','CreateOrEditDashboardItemDialogController','arraysmsMethod','MarketplacePluginController\x20as\x20vm','SYSTEM:GETtags','mar','inboundroute','palette','src/js/modules/main/apps/jscripty/views/projects/edit/sessions/dialog.html/dialog.html','Group\x20properly\x20deleted!','openchannelAccount','EditInternalAppintervalDialogController','data3','addJscriptyTab','deleteFaxQueuesWaitingInteractions','AgentsFaxRealtimeController\x20as\x20vm','api/analytics/extracted_reports/:id/download','openchannelApplication','api/conditions/:id/clone','Jscripty\x20Sessions','Asia/Tokyo','/lists','vm.password','api/openchannel/messages/:id/accept','api/settings/:id','ServicenowAccount\x20properly\x20created','openInteraction','API\x20reject\x20message\x20not\x20found:\x20','selectedVtigerConfiguration','totalSteps','\x27shortinfo\x27','src/js/modules/main/apps/whatsapp/views/realtime/queues/view.html/view.html','SYSTEM:DELETEintServicenowAccount','CannedAnswers','app.fax.faxQueues','deleteSelectedSquareRecordings','userVoiceQueue:save','success','voice_queue:save','app.help','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopper?','getVoiceRecordings','callbackuniqueid','pause_id','Yiddish','sortableTable','smsQueuesTotal','ui.router.state.events','OpenchannelAccount\x20updated!','selectedLists','apps.dashboards','subString','usspanishfemale','api/cm/hopper_final/checkContactHopper','whatsappAccount','Smtp\x20properly\x20deleted!','\x27peer\x27','number','shiftKey','GlobalCustomFields','src/js/modules/main/apps/tools/views/intervals/create/dialog.html/dialog.html','EditInboundAppqueueDialogController','OPENCHANNEL.NEW_OPENCHANNELQUEUE','Hans\x20(German,\x20Male)','png','gu-IN','api/whatsapp/accounts/:id/notify','Input','api.jscriptyProject.clone','app.integrations.freshsalesAccounts.edit','mohSound\x20#','sessionId','SugarcrmAccount\x20properly\x20deleted!','EditInboundAppagiDialogController','selectAllMailQueues','mediaConstraints','System','getMinutes','api.intZohoAccount.delete','delete\x20freshdeskAccount','delete\x20faxQueue','Hebrew\x20(Israel)','getSmsAccounts','app.integrations.deskAccounts','US\x20Spanish\x20Female','mainForm','api/rpc/campaigns','400','msVerticalStepperStep','\x27pl\x27','removeTab','openedAt','selectedDisposition','webrtc::transfer','content','Asia/Yerevan','api.whatsappAccount.update','goToFaxAccount','America/Chicago','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/autoreply/dialog.html/dialog.html','id,action,contact,data1,data2,data3,data4,data5,data6,data7,createdAt,updatedAt','APP.FILE_NOT_FOUND','TOOLS.SCHEDULER','apply','getSounds','api/mail/messages/describe','api/notifications/:id','testtestOdbc','Dynamics365AccountConfigurationsController','Projects','id,name,interval,IntervalId','src/js/modules/main/apps/fax/views/faxAccounts/create/dialog.html/dialog.html','api/integrations/desk/configurations/:id/subjects','progressive','/squareRecordings','Please\x20use\x20only\x20json\x20files','QueuesMotionDialerRealtimeController','getColorByChannel','VOICE.EDIT_CONTEXT','VtigerAccount','assets/images/business/queueCampaigns.jpg','msMasonryItem:startReLayout','htmlToPlaintext','api.template.save','QueueCallsMotionDialerRealtimeController','closed\x20===\x200','\x27mail_messages\x27','Delete\x20SmsAccount','SYSTEM:DELETEtemplate','src/js/modules/main/apps/chat/views/realtime/agents/view.html/view.html','eu-west-1','EditSmsAccountAppdialogflowDialogController','delete\x20DeskAccounts','EditOpenchannelAccountAppgotopDialogController','The\x20queueCampaign\x20will\x20be\x20deleted.','onAddstream\x20->\x20data','startedAt','api/settings/:id/clone','Dynamics365Accounts','ProjectSessionsController','api/campaigns/describe','0.54','$and','api/openchannel/accounts/:id/applications','createOrEditVariable','outbound','OutboundRouteActionsController','deselectInternalRoutes','api/integrations/dynamics365/configurations/:id','mailMessage:update','Tools','DASHBOARDS.LAST_WEEK','src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/view.html/view.html','sms-interaction','api.intFreshdeskAccount.save','unmanaged','X-Answer-Mode','mailAccountApps','getVariables','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/ringgroup/dialog.html/dialog.html','api/voice/dials/reports/describe','license','chatWebsiteChatCannedAnswers','selectAllTags','getWhatsappAccountWhatsappCannedAnswers','deleteFaxQueue','freshdeskAccounts','globalDispositions','maxDateRange','api/chat/interactions/:id/tags','List\x20','treeStructure','connect','contact','Australia/Broken_Hill','localnet','app.tools.dispositions','api/sms/accounts/:id/users','getOpenchannelAccountInteractions','getByInteraction','q:\x20Don\x27t\x20play\x20a\x20beep\x20when\x20beginning\x20to\x20spy\x20on\x20a\x20channel,\x20or\x20speak\x20the\x20selected\x20channel\x20name.','api\x20preview','firstLevelDisposition','api/whatsapp/reports/transfer/:id/clone','api.whatsapp.account','medium','+02:00','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/listadd/listadd.html/listadd.html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailSubtatuses?','ChatWebsiteController','api/cm/contacts/:id','isLoggedIn','IS_BETWEEN','delete\x20messages','createElement','deleteQueueCampaignHopperHistory','saveChatWebsite','Userchange_avatarController','delete\x20interactions','America/Martinique','api.project.delete','delete\x20whatsappAccount','api.campaign.update','delete\x20MailSubstatuss','queryReport','mail.mailAccounts','inuse','Contact','saveAction','FromId','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappCannedAnswers?','from-voip-provider','flippable','OpenchannelAccountsController\x20as\x20vm','deselectSounds','SMS.SMS','apps.settings.smtps','ContactController\x20as\x20vm','pauses','idle','app/main/apps/integrations','getChatInteractions','getFaxAccounts','api/fax/accounts/:id/canned_answers','isSupported','jul','QueueCampaigncloneController','getUsers','city','mailInteraction','Brazilian\x20Portuguese\x20Female','\x22\x20target=\x22_self\x22>','selectedTab','\x27clickatell\x27','License\x20properly\x20updated!','api/license/describe','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatQueues?','user_has_openchannel_interactions:save','VoiceRecordingController','Africa/Tripoli','MOTIONDIALER.SELECTED_LISTS','app/main/apps/staff','Pacific/Enderbury','api/mail/reports/transfer/:id','Lotte','CreateOrEditchanSpyDialogController','Asia/Hong_Kong','ProjectsController','isReschedule','getNotification\x20->\x20session','delete\x20scheduled\x20call','cdr','Hacker','intServicenowAccount','toolbarColor','getReports','prefixes','app.integrations.freshdeskAccounts','SEC_TO_TIME\x20(','folded','Group\x20','AND','exportSelectedServicenowAccounts','\x27sms_messages\x27','src/js/modules/main/apps/jscripty/views/projects/edit/clone/clone.html/clone.html','Fields\x20has\x20been\x20copied!','Clickatell','OPENCHANNEL.EDIT_OPENCHANNELCANNEDANSWER','gotoProcess','delete\x20FaxQueues','Joanna','arraytable','mail-interaction','api/rpc/voice/queues/preview/:id','selectedReports','src/js/modules/main/apps/dashboards/views/general/agent/contact/dispose/dialog.html/dialog.html','ZohoAccountController\x20as\x20vm','ckEditorInstance','FreshsalesConfiguration\x20deleted!','cellName','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27loose\x27','ZendeskAccount','finals','difference','deselectFaxQueues','selectedMailAccountInteractions','api.cannedAnswer.update','src/js/modules/main/apps/marketplace/views/plugins/create/dialog.html/dialog.html','userWhatsappQueue:remove','\x27sms_accounts\x27','CreateOrEditMailSubstatusDialogController','white-bg','multipleUsers.name','Asia/Dili','Delete\x20FreshsalesAccount','matchType','Delete\x20triggers','SYSTEM:GETintFreshsalesAccount','UsersController\x20as\x20vm','$setValidity','getApplications','app.errors_error-500','createOrEditDisposition','api/chat/websites/:id/avatar','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/create/dialog.html/dialog.html','addNewWhatsappAccount','Delete\x20trigger','DeskAccounts','Status','hopperBlack','processLimit','app/main/apps/contactmanager','triggerActions','msMaterialColorPickerController\x20as\x20vm','src/js/modules/main/apps/staff/views/telephones/edit/changepassword/changepassword.html/changepassword.html','CONTACTMANAGER.COMPANIES','api/mail/queues/describe','createdAt,','openchannel_queue_waiting_interaction:remove','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperFinals?','onSaveSmsQueueChannel','EDIT_PERMISSION','Read','deletescreenRecording','isLockedOpen','css','deleteZendeskAccount','param','Europe/Istanbul','Reports','api.cmCustomField.save','EditChatWebsiteAppgotoifDialogController','squareReportDetail','Reject','stepNumber','ContactManager','Astrid\x20(Swedish,\x20Female)','SquareRecording','src/js/modules/main/apps/contactmanager/views/lists/create/dialog.html/dialog.html','vm.query.filter','isNil','webkitNotification','api.intSugarcrmConfiguration.update','xAnswerAfterSec','addNewOpenchannelCannedAnswer','apps.tools.pauses','motion2.home.sms:','smsInteractionDownload','api/voice/prefixes/:id/users','api/chat/websites/:id/notify','api/fax/queues/describe','Companies','en-KE','*,*,*,*','Danish\x20(Denmark)','Portuguese\x20(Portugal)','auto','TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE','CreateOrEditSugarcrmConfigurationDialogController','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27unavailable\x27','api/schedules/describe','TOOLS.CLONE_CUSTOMDASHBOARD','play','api/fax/interactions/:id/tags','api.squareRecording.save','queues','\x277200\x27','MusicOnHold','CustomDashboardController','\x27report_agent\x27','Agents\x20association\x20has\x20been\x20updated!','api.faxAccount.save','app.voice.realtime.telephones','direction','agentreject','odbcs','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','DASHBOARDS.OPENCHANNEL','Schedule','startTime','contactSearch','Spanish\x20(Costa\x20Rica)','SYSTEM:DELETEvoiceMail','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?','America/Indiana/Petersburg','incoming','deselectNetworks','AgentGeneralContactController','reject','unhold\x20->\x20session','Delete\x20GlobalCustomField','America/Barbados','moveContactsIvrCampaignHopperFinal','modules','America/Caracas','onSaveUserFaxQueue','SYSTEM:DELETEplugin','UserProfilePermissionsController','SYSTEM:GETcmCompany','palettes','savevoicePrefix','googleSsoEnabled','arraydelete','load','XCALLY-MOTION-ANSWER=1','empty','api.chatWebsite.update','Klingon','US\x20Spanish\x20Male','trunk@get','api/jscripty/projects/:id/summary','SYSTEM:GETdashboard','api.contact.save','EditSmsAccountAppcloseDialogController','src/js/modules/main/apps/voice/views/musiconholds/musiconholds.html/musiconholds.html','src/js/modules/main/apps/sms/views/realtime/realtime.html/realtime.html','IAX','SalesforceAccounts','openchannelAccountOpenchannelCannedAnswers','ACCOUNT:SEND','getZohoConfiguration','variables','faxAccount:update','module','#5c616f','\x20attached\x20process\x20will\x20be\x20restarted.','userProfile@get','selectedList','id,firstName,lastName,email','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27invalid\x27','selectedFields','ringgroup','templates','blacklist','QueueCampaignlistaddController','FAX.REALTIME','getCount','exportSelectedWhatsappAccounts','getZendeskConfiguration','/api/chat/websites/','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interaction?','CreateOrEditSugarcrmAccountDialogController','MARKETPLACE.EDIT_PLUGIN','toasty','onHook','merge','api/schedules/:id/run','clipboard','id,fullname,userpic,internal','Delete\x20Agent','SmsAccount\x20properly\x20deleted!','DELETE','app.tools.variables','MailAccounts','setting','EditChatWebsiteApptagDialogController','motion2.home.scheduled:','whatsappCapacity','Restored\x20Contacts','selectedTriggerAllConditions','chatInteractions','strict','TOOLS.NEW_SCHEDULE','createdAt,updatedAt,id,name,CustomReportId,DefaultReportId,output,active,startAt,endAt,cron,subtractNumber,subtractUnit,sendMail,MailAccountId,email,cc,bcc,sendIfEmpty,description','api/license/:id/clone','ERROR\x20REMOVE\x20TAB','multiBarChart','LicenseController\x20as\x20vm','EditInboundApp','api/sms/interactions/:id/messages','deselectOpenchannelAccounts','excludedOperators','getTracks','Websites','deleteListCustomField','MsWidgetEngineWebReportController','ClientEmail','sessionId\x20required','InteractionId','getResponseSheet','QueuesMailRealtimeController\x20as\x20vm','DASHBOARDS.SELECT_READ_UNREAD','browserVersion','faxTransferReport','api/voice/recordings/describe','invite','src/js/modules/quick-panel/tabs/groups/create/dialog.html/dialog.html','smsStatusTime','FaxQueueteamaddController','\x27en-CA\x27','createOrEditFreshsalesConfiguration','Afrikaans\x20(South\x20Africa)','Content\x20with\x20Toolbar','SmsAccountSmsCannedAnswersController','id,uniqueid,calleridnum,statedesc,starttime,disposition','removeApi','da-DK','\x27integrationTab\x27','SYSTEM:GETANSWERS','app.tools.cannedAnswers','sumDuration','selectedMailAccountApps','Dynamics365Account\x20properly\x20tested','Delete\x20Metric','CustomizationsController\x20as\x20vm','api.cmHopper.delete','translate','getScheduledCalls','gotoInternalRoutes','api/chat/interactions/:id/attachment_download','api/voice/queues/reports/:id','deleteSmsQueuesWaitingInteractions','createOrEditTriggerAnyCondition','api.analyticMetric.delete','configurations','UNIX_TIMESTAMP\x20(','arrayencryption','_id','motion.language','uri','api/jscripty/sessions/reports/:id','defaultEntry','WebRTC\x20Popup','Portuguese\x20(Brazil)','msNav::collapse','Delete\x20ZohoAccount','md-toolbar','src/js/modules/main/apps/tools/views/customDashboards/edit/view.html/view.html','\x27zoho.com\x27','Macro','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20templates?','SYSTEM:GETUSERS','src/js/modules/main/apps/tools/views/intervals/intervals.html/intervals.html','OPENCHANNEL.EDIT_OPENCHANNELQUEUE','trigger:browser:url','src/js/modules/main/apps/dashboards/views/general/user/fax/user.general.fax.html/user.general.fax.html','years','\x27chat_websites\x27','firstLastDayMonth','SmsAccount','addNewExtractedReport','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/interval/dialog.html/dialog.html','InternalRoute\x20properly\x20deleted!','pageTitle','msMaterialColorPicker','CHAT.CHATWEBSITES','JscriptyProjectController\x20as\x20vm','versionSearch','online','UserProfileController','cloneIvrCampaign','api.pm2.delete','Spanish\x20(Argentina)','America/New_York','chatTransferReport','CONTACTMANAGER.GLOBALCUSTOMFIELDS','Offline','complete','saveServicenowAccount','Team','applyTo','app.header','getZohoAccounts','selectedIntervalIntervals','apps.voice.inboundroutes','DASHBOARDS.YESTERDAY','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/externaldial/dialog.html/dialog.html','getHistories','X-CID:\x20','toTrusted','whatsappInteraction:save','SalesforceAccountController','id,name,role,context','md-hue-3','Europe/Uzhgorod','delete\x20Users','The\x20cannedAnswer\x20will\x20be\x20deleted.','Delete\x20Network','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hoppers/dialog.html/dialog.html','\x27agent_fullname\x27','createOrEditServicenowConfiguration','mailCannedAnswer','eurportuguesemale','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20teams?','DASHBOARDS.ABANDONED','arrayrecordingFormat','iCab','\x27xlsx\x27','SalesforceAccount\x20properly\x20tested','chatCannedAnswers','centered','appid','chatWebsiteApps','onRemoveUserOpenchannelQueue','digit','exportSelectedMailSubstatuses','src/js/modules/main/apps/contactmanager/views/contacts/contacts.html/contacts.html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?','api/chat/interactions/:id/abandon','\x27whatsapp_interactions\x27',',${EXTEN},','onRemoveUserFaxQueue','api/analytics/extracted_reports/describe','mute','config','api.voiceRecording.delete','-05:00','addNewAction','Delete\x20Tag','api.whatsappQueue.save','msWidgetFront','muted','monthTo','
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Extra:\x20','Version','EditOpenchannelAccountAppagentDialogController','api/cm/companies/:id/contacts','saveSquareRecording','app.openchannel.openchannelQueues.edit','union','selectedProjectSessions','smsInteraction','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/close/dialog.html/dialog.html','detailForm','whatsappAccount@get','startCase','getMonthNumber','saveSmsQueue','exportSelectedDeskAccounts','app.jscripty.projects','Rounded','TOOLBAR.WEBRTC_LICENSE_NOT_ENABELD','ap-south-1','ChatWebsiteagentAvatarController','arraystrategy','smsCannedAnswer\x20#','queryOptions','src/js/modules/main/apps/jscripty/views/projects/create/dialog.html/dialog.html','rpcMailQueuesWaitingInteractions','Asia/Colombo','Notification\x20API\x20not\x20supported','Pacific/Chuuk','ZohoAccountConfigurationsController','apps.tools.customDashboards','MotionDialerRealtimeController','Russian\x20(Russia)','ChatQueuesController\x20as\x20vm','delete\x20vtigerConfiguration','exportSelectedAgents','newDynamics365Account','api/openchannel/messages/describe','deleteSelectedTeams','deleteWhatsappCannedAnswer','es-DO','AGI','orientation','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27invalid\x27','DASHBOARDS.FEBRUARY','EditInboundAppplaybackDialogController','home.contacts','Smtp\x20properly\x20created','dropRate','Carmen\x20(Romanian,\x20Female)','Asia/Kuala_Lumpur','column','udp','CreateOrEditSquareProjectDialogController','app.sms.smsAccounts','voiceQueueReport:save','The\x20vtigerConfiguration\x20will\x20be\x20deleted.','TOOLS.EDIT_DASHBOARDITEM','delete\x20session','selectedVoicemailMessages','caenglishfemale','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsCannedAnswers?','en-NZ','\x27turn\x27','moveIvrCampaignHopperFinal','delete\x20smsCannedAnswer','height','ms-scroll','thu','allReportsSelected','src/js/modules/core/directives/ms-stepper/templates/horizontal/horizontal.html/horizontal.html','getChanSpies','Company\x20properly\x20created','messages','saveContact','Incoming','openchannelCannedAnswers','authInterceptor','getTime','SYSTEM:GETintFreshdeskAccount','Delete\x20SmsCannedAnswer','ulaw','America/Curacao','api.cmList.get','cyan-500-fg','app.sms.realtime.queues','\x27progressive\x27','+11:00','api.intVtigerConfiguration.delete','api.cmCompany.update','HANGUPCAUSE_16','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/tag/dialog.html/dialog.html','src/js/modules/main/apps/tools/views/dispositions/create/dialog.html/dialog.html','selectedDescriptions','Asia/Samarkand','api.chatProactiveAction.save','OpenchannelAccountagentaddController','America/Regina','apps.home.plugin_','TOOLS.CUSTOMDASHBOARDS','api.intSalesforceConfiguration.update','countglobal','flow','permissionId','api/sms/accounts/describe','America/Halifax','pop','https','chatWebsite@get','Asia/Dhaka','getAuthenticationType','Key','\x27zh-TW\x27','md-no-ink','SIP/','\x27fax_queues\x27','selectedScreenRecordings','onEnded\x20->\x20session,\x20data','deleteSelectedMailSubstatuses','converted_format','api/chat/messages/:id/accept','query','token','getOfflineMessages','createdAt,updatedAt,id,name,basename,savename,type,startDate,endDate,status,output,reportId,reportType','CreateOrEditMailQueueDialogController','endOfConversation','TransferMessageDialogController','Mail\x20Account\x20not\x20deleted!','onInternalMessageSave',',height=','JscriptyProjectsController\x20as\x20vm','src/js/modules/main/apps/voice/views/realtime/queues/view.html/view.html','sectionColor','setSinkId','addSound','forward','delete\x20zendeskConfiguration','Round\x20Robin\x20Memory','Delete\x20DeskConfiguration','Right\x20Join','\x20properly\x20saved!','openchannelInteraction:update','/outboundroutes','delete\x20smsAccount','Asia/Chita','delete\x20GlobalCustomFields','ForgotPasswordController\x20as\x20vm','api/chat/websites/:id/proactive_actions','fresh','createdAt,updatedAt,uniqueid,ContactId,calleridnum,calleridname,statedesc,scheduledat,starttime,responsetime,endtime','api/sms/queues/:id/teams','api/sms/interactions/describe','app.sms.smsQueues','saveCustomDashboard','/zendeskAccounts','queryJscriptySession','whatsappCannedAnswer','Target','Filipino\x20(Philippines)','src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/teamadd/teamadd.html/teamadd.html','TOOLBAR.ITALIAN','api/integrations/servicenow/accounts/:id','ivrCampaignHoppers','msMasonry','InboundRoute\x20updated!','FAX.FAX','openDraft','delete\x20contact','es-CL','\x27outlook365\x27','file_id','src/js/modules/main/apps/sms/views/realtime/agents/view.html/view.html','queuesMap','addNewSquareRecording','api/whatsapp/applications/describe','app.voice.realtime','onUserUpdate','showOpenchannelInteraction','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voicemails?','magicline','ms-nav-folded\x20ms-nav-folded-open','MOTIONDIALER.REALTIME','when','European\x20Portuguese\x20Female','saveProjectAs','bull','truepriority','deleteConfirm','deleteMailQueuesWaitingInteractions','api/whatsapp/reports/queue/describe','America/Jamaica','campaign@get','bulkCreate','/*\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}','webbar:hold','AgentsVoiceRealtimeController\x20as\x20vm','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?','Urdu\x20(Pakistan)','api/chat/queues/:id','ap-southeast-2','api/trunks/:id','max','Campaign','AgentHomeMyContactsController','UserProfilesController','gotoLastStep','Supported\x20extensions:\x20','TOOLS.NEW_SOUND','openchannelCannedAnswer','saveInternalRouteApp','TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE','canEdit','EditSmsAccountAppnoopDialogController','vm.customFieldsForm.$pristine','deleteSelectedSmsAccountInteractions','createOrEditchanSpy','SETTINGS.EDIT_NETWORK','api/integrations/freshsales/accounts/:id','toggleMobileBar','MouseOver','getHoppers','deleteSelectedMetrics','deleteSchedule','api.voiceExtension.delete','intervals','api/attachments/describe','General\x20properly\x20saved!','gotoUserProfiles','Chinese\x20(Simplified)','getInfo','voiceQueue:remove','$mdMedia','apiselect','animate','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/queue/dialog.html/dialog.html','MOTIONDIALER.IVRCAMPAIGNS','MailRealtimeController\x20as\x20vm','api.intSugarcrmAccount.save','unmute','Description\x20has\x20been\x20deleted!','vm.queueCampaign.dialMethod\x20===\x20\x27booked\x27','deleteSmsCannedAnswer','Delete\x20FreshdeskConfiguration','Asia/Kathmandu','src/js/modules/main/apps/tools/views/triggers/triggers.html/triggers.html','delete\x20screenRecordings','accept','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/interval/dialog.html/dialog.html','api/automations/:id/clone','api.downloadMessage.get','Util','api/intervals/:id/sub_intervals/create_many','aws_access_key_id','api.chatGroup.delete','-09:00','
','deleteFreshsalesConfiguration','CreateOrEditExtractedReportDialogController','md-scale','getDescriptions','JSCRIPTY.CLONE_PROJECT','team@get','CustomDashboard\x20properly\x20deleted!','0.87','DASHBOARDS.MARCH','CreateOrEditUserProfileDialogController','grey-fg\x20icon-minus-circle','saveSmsAccount','updateLayoutStyle','session','UserProfiles','voiceMusicOnHoldDownload','Sundanese\x20(Indonesia)','api/whatsapp/messages/:id/clone','api/integrations/zoho/accounts/:id','onSaveMailInteraction','Congestion','ha1','listadddialog','mailQueue:remove','eu-ES','createdAt,updatedAt,id,name,level,ParentId','questions','createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,rating,audio,transcribestatus,UserId','isSameOrigin','\x27es\x27','dateTime','Validation\x20error','minDateRange','Twilio','removeSquareProjects','IntervalsController\x20as\x20vm','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotoif/dialog.html/dialog.html','deleteSalesforceConfiguration','\x27fax_accounts\x27','faxAccount','transferLastMessage','Pirate','UploadPluginDialogController','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','ContactId','jpg','allResourcesEnabled','api/integrations/vtiger/accounts/:id/configurations','Authorization\x20error','TrunksFaxRealtimeController','selectedTriggerAnyConditions','api.intZendeskAccount.delete','src/js/modules/main/apps/integrations/views/dynamics365Accounts/create/dialog.html/dialog.html','app.motiondialer.realtime.queue_params','multipleChoices','deleteDeskAccount','api/fax/accounts/:id','The\x20smsCannedAnswer\x20will\x20be\x20deleted.','newCompany','api/chat/websites/:id/users','deleteQueueCampaignHopperBlack','deselectMailAccounts','Liv\x20(Norwegian,\x20Female)','CreateOrEditOfflineMessageDialogController','\x20DESC)','Miguel','OpenchannelInteractionId','selectAllFreshsalesAccounts','intSalesforceConfiguration','createdAt,updatedAt,id,name,enableUncompleteSave,sendUnpauseOnSubmit,description,formData','showNotification','src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/view.html/view.html','onRemoveWhatsappQueue','whatsappAccounts','src/js/modules/main/apps/settings/views/networks/create/dialog.html/dialog.html','calleridname','Infobip','exportSelectedMailAccounts','deleteHopper','startingTime','ChatCannedAnswer\x20properly\x20deleted!','\x270\x27','outboundQueues','api/tags/:id/clone','RECALLME','chatWebsiteOfflineMessages','UserProfilepermissionsmanageController','UserController','api/integrations/salesforce/fields/describe','delete\x20subject','allowedStandardFields','deleteSelectedSalesforceAccounts','getChatWebsiteApps','smsMessage:save','apps.contactmanager','removeShortcut','addNewVariable','queueMethod','Timeout','app.mail.mailAccounts.edit','survey','user@getLists','SYSTEM:GETintZohoAccount','resultsLoading','closeReason','src/js/modules/main/apps/chat/views/realtime/queues/view.html/view.html','SYSTEM:ADDFIELDS','startingAllowedItems','$stateProvider','WhatsappAccount\x20properly\x20created','deleteSquareRecording','soundPlayer','onInteractionSave','msMasonryController','boxed','apps.fax','SYSTEM:DELETEvariable','UserProfile\x20properly\x20saved!','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hoppers/dialog.html/dialog.html','split','note','api/cm/hopper_final/campaign/countAttributes/:id','ZohoConfiguration\x20properly\x20saved!','api.intDynamics365Configuration.save','app.tools.trunks.edit','cmContact','global','delete\x20QueueCampaigns','User\x20properly\x20saved!','content-length','unreadTotalMessages','internalDial','Agent\x20Only','{{\x20vm.timer\x20}}
','.draggable','voiceAgentReportColumns','app/reset','functions','Comic\x20Sans\x20MS','debug','Arial','get','apps.home.sms','/mailAccounts','api/trunks/:id/clone','parent','api.intSugarcrmAccount.delete','focus','WebSocketInterface','AccountId','api/fax/applications/describe','Pacific/Pago_Pago','MAIL.REALTIME','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd.html','api.intSalesforceAccount.delete','createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType','selectedVoiceQueues','SETTINGS.NEW_CUSTOMIZATION','\x27/var/opt/motion2/server/files/sounds/converted/{{appdata.save_name}}\x27','deleteDescriptionConfirm','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/amazonlex/dialog.html/dialog.html','SYSTEM:DELETEmailSubstatus','Pacific/Wallis','Date','deletevoicePrefix','#5688d3','QueueCampaignagentaddController','HANGUPCAUSE_18','agents','FAX.EDIT_','Europe/Lisbon','CHAT.EDIT_CHATPROACTIVEACTION','delete\x20odbc','Please\x20enable\x20browser\x20notifications!','VOICE.SELECT_TYPE','clearDate','getIntervalIntervals','hotdesk','apps.jscripty','api/whatsapp/accounts/:id/canned_answers','getDaysOfMonth','nameField','weeks','Indian/Chagos','statusText','INTEGRATIONS.EDIT_VTIGERACCOUNT','opera','apps.contactmanager.lists','The\x20musiconhold\x20will\x20be\x20deleted.','addNewZendeskConfiguration','Project\x20properly\x20created','Project\x20updated!','listFields','api/cm/contacts/:id/hopper_histories','app.analytics.reports.edit','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20projects?','api/chat/websites/:id/snippet','America/Argentina/San_Luis','selectAllTrunks','/about','src/js/modules/core/layouts/content-only.html/content-only.html','EditMailAccountApp','$filter','clearLockedItems','cmCustomField','getDynamics365Configuration','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20intervals?','intZendeskConfiguration','Extension','IvrCampaignblacklistaddController','incident','FreshdeskAccount\x20updated!','removeItem','saveSmsAccountApp','NoSuchNumber','getQueueCampaignHopperBlacks','AllCondition\x20properly\x20deleted!','deselectExtractedReports','ko-KR','newServicenowAccount','addSquareProjects','project_id','Asia/Damascus','Chat\x20Interaction','icon-audiobook','getMailInteractions','deleteVoicemailMessage','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20proactive?','newWhatsappCannedAnswer','\x27E\x27','rpcFaxQueues','sms_queue:save','listCustomFields','ComposeWhatsappInteractionDialogController','telephoneForm','selectAllAgents','createdAt,updatedAt,id,name,description,crudPermissions','arraysidebar','getVoiceQueuesChannelRedirect','CSV','api/whatsapp/messages/describe','\x20MMM','getWhatsappQueues','mailInteraction:update','TCL:\x20\x20path','selectedWhatsappAccountApps','HopperFinal\x20deleted!','msPhonebar','api/rpc/sms/queues','faxAccount:save','saveTemplate','allowDelete','squareRecordings','compact','Voice\x20Recordings','Intervals','DASHBOARDS.AUGUST','authenticate','Highest','America/Recife','scroll','voiceQueueReport','sl-SI','fa-IR','Teams\x20association\x20has\x20been\x20updated!','DuplicateContactDialogController','stateClass','columnWidth','interval_id','Delete\x20FaxAccount','openchannel_queue:save','src/js/modules/main/apps/contactmanager/views/companies/companies.html/companies.html','America/Costa_Rica','CreateOrEditMailCannedAnswerDialogController','apps.analytics','collapsed','api/mail/accounts/:id/in_servers','templateSettings','getMap','FaxQueue\x20properly\x20created','api/openchannel/accounts/:id/send','table','getFields','app.integrations.servicenowAccounts','src/js/modules/main/apps/voice/views/realtime/realtime.html/realtime.html','EditoutboundAppintervalDialogController','onSaveMember','bodyEl','intFreshsalesAccount','English','onSaveOpenchannelQueueChannel','delete\x20ServicenowAccounts','Fax\x20Queues','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotoif/dialog.html/dialog.html','faxQueue:remove','api/voice/prefixes/:id/clone','treeCustomData','editdialog','app/main/apps/motiondialer','removeCondition','chatMessage:update','scheduleForm','api.voiceQueue.getBlackLists','exportSelectedInternalRoutes','src/js/modules/main/apps/staff/views/userProfiles/edit/permissionsmanage/permissionsmanage.html/permissionsmanage.html','CopyReportDialogController','voiceStatusTime','Type\x20the\x20file\x20name.','ms-info-bar-active','src/js/modules/main/apps/integrations/views/vtigerAccounts/vtigerAccounts.html/vtigerAccounts.html','nosuchnumber','verifysmtpverifysmtp','api/jscripty/questions/reports/:id/clone','runsentimentSelectedVoiceRecordings','$in','Filipino','SYSTEM:GETwhatsappAccount','selectedTelephones','participants','\x27report_mail_queue\x27','pluginUpdated','wav','api/chat/groups/:id/unread','changePassword','api/fax/accounts/:id/users','NetworksController\x20as\x20vm','trunk.name','src/js/modules/main/apps/integrations/views/freshsalesAccounts/freshsalesAccounts.html/freshsalesAccounts.html','editCondition','isNumber','selectAllCustomDashboards','Ines','assigned','src/js/modules/main/apps/voice/views/outboundroutes/create/dialog.html/dialog.html','HELP.HELP','$mdDialog','onValueChange','INTEGRATIONS.NEW_FRESHDESKACCOUNT','api/square/recordings/describe','cafrenchfemale','apps.jscripty.projects','membername','ProjectcloneController','src/js/modules/main/apps/tools/views/schedules/create/dialog.html/dialog.html','ExtractedReportsController\x20as\x20vm','deleteMohSound','TOOLS.TRUNKS','api/users/:id/openchannel/interactions','FreshsalesConfiguration\x20properly\x20deleted!','api/plugins/describe','api.condition.delete','uploadState','TriggerAnyId','\x27wrapup\x27','api.mailSubstatus.save','uploadComplete','AgentsController','evt','Resource\x20\x22','api/conditions/:id','drafts','SYSTEM:UPDATECMHOPPERFINAL','getIvrCampaignHopperBlacks','TAB','api.staff.save','playrecording','useLoader','src/js/modules/main/apps/contactmanager/views/contacts/create/dialog.html/dialog.html','humanizeDoc','apps.sms.smsQueues','rpc@getTrunks','${EXTEN}','duplicate','apps.integrations.salesforceAccounts','generateApiKey','exportSelectedSugarcrmAccounts','/api/transfer?number=','Asia/Tehran','/inboundroutes','EditInternalAppringgroupDialogController','api/cm/hopper_final/voice/campaign/moveContacts/:id','api/voice/queues/:id/lists','CreateOrEditCustomizationDialogController','isEmpty','api/fax/interactions/:id/clone','0.7','SYSTEM:DELETEuser','src/js/modules/main/apps/voice/views/realtime/agents/view.html/view.html','az-AZ','/tags','delete\x20hopper','\x27beepall\x27','api/square/projects/:id','delete\x20chanSpys','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20dynamics365Configuration?','isStepHidden','api/campaigns/:id/hopper_histories','selectedQueueCampaignHoppers','FreshdeskAccount\x20properly\x20created','Reset\x20Succesfull','src/js/modules/main/apps/integrations/views/vtigerAccounts/create/dialog.html/dialog.html','webbar:transfer','api/integrations/zendesk/configurations/:id/descriptions','deleteSelectedIntervals','api/integrations/desk/accounts/:id/fields','EditInternalApp','api/users/:id/whatsapp_interactions','angular.filter','exportSelectedWhatsappQueues','app/main/apps/plugins','QUICKPANEL.EDIT_CHATGROUP','DASHBOARDS.CHOOSE','/extractedReports','WhatsappCannedAnswer\x20properly\x20created','TrunkController','sw-KE','api/mail/messages/:id/reject','VOICE.INBOUNDROUTES','DASHBOARDS.JULY','command','uploadCsv','ChatQueueId','api/analytics/field_reports/:id/create_many','bcc','deleteSelectedNetworks','data:text/json;charset=utf-8,','newSchedule','Abandoned','api/users/:id/clone','api/fax/interactions/:id/messages','INTEGRATIONS.NEW_ZENDESKCONFIGURATION','ckeditor','api.intVtigerAccount.save','Hours','NONE','hold','admin,user','Corsican','QueuesFaxRealtimeController\x20as\x20vm','createOrEditIvrCampaign','ms-widget-front','api.variable.update','newZohoConfiguration','SmsAccountController\x20as\x20vm','America/Port_of_Spain','deleteSelectedContexts','api.user.changePassword','apps.home.whatsapp','deselectScheduler','CustomField\x20properly\x20created','badges','Jabra\x20library\x20correctly\x20initialized\x20and\x20device\x20correctly\x20installed','setFolded','transferNumber\x20required','ivrAnswerCallsDay','localizationMap','ltr','\x27star\x27','isDraft','TOOLS.NEW_ALLCONDITION','createOrEditDeskConfiguration','showIncompleteSubmitButton','null','ru-RU','apps.voice.voicePrefixes','You\x20can\x27t\x20reply\x20or\x20send\x20an\x20email.\x20Please\x20contact\x20the\x20administrator!','\x274800\x27','selectedQueueCampaigns','app.contactmanager.contacts.edit','phoneBarRemoteControlPort','showMessageInfo','dashboards','diff','deleteSelectedMailAccountApps','EditSmsAccountApptagDialogController','Edge','api.intFreshsalesAccount.save','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd.html','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)=','\x27stun\x27','api.sound.update','apiAccountRoute','The\x20','\x20has\x20been\x20uninstalled!','TOOLBAR.PORTUGUESE','whatsapp_queue_waiting_interaction:save','lexregion','whatsappApplication','extension','api/square/messages/:id/clone','img','src/js/modules/main/apps/voice/views/voiceRecordings/voiceRecordings.html/voiceRecordings.html','opts','red-300-fg\x20icon-phone-in-talk','iPad','newTrigger','Record','campaigns','\x22>','SYSTEM:analyticFieldReport','faxInteraction:update','fromUrl','icecandidate','VIDEO.NEW_SCREENRECORDING','onClick','HANGUPCAUSE_27','app.motiondialer','CustomDashboardsController','voicemail','msRandomClass','contactManager','w:\x20Enable\x20whisper\x20mode,\x20so\x20the\x20spying\x20channel\x20can\x20talk\x20to\x20the\x20spied-on\x20channel.','MsNavigationController\x20as\x20vm','Field\x20deleted!','api/cm/contacts/upload/:id','Not\x20Found','cmn-Hans-HK','monthDayFrom','rpc@getVoiceQueuesChannels','force_rport','src/js/modules/main/apps/tools/views/pauses/pauses.html/pauses.html','CreateOrEditTemplateDialogController','/var/opt/motion2/server/files/sounds/converted/','exportSelectedFaxAccountInteractions','\x27tcp\x27','ms-navigation-item','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/openchannelCannedAnswers/dialog.html/dialog.html','disable','Europe/Sofia','app.voice.realtime.outbound_calls','addNewProject','getChatWebsiteProactiveActions','addNewCustomization','squareOdbc','jabra','Pacific/Palau','icon-phone-missed','api.dashboardItem.delete','light','getPreview','faxQueue:save','api.intSalesforceConfiguration.delete','display_name','downloadChatInteraction','indexOf','expanding','chat_queue:save','fr-CA','outboundroute','mohSounds','getOpenchannelInteractions','focusOn','api/voice/mohs/:id/sounds/:id2','Safari','INTEGRATIONS.EDIT_ZENDESKACCOUNT','SYSTEM:EDITMODALSHOW','eurturkishfemale','screenRecording','\x22path\x22\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)','SYSTEM:SORTABLETABLE','Interactions','ChineseSimplified','rpcCalls','Trebuchet\x20MS,Helvetica,sans-serif','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20contacts?','api/cm/hopper/describe','closeDialog','EditFaxAccountAppagentDialogController','TOOLBAR.HINDI','TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_TITLE','Urdu\x20(India)','SYSTEM:GETvariables','contentWithToolbar','postalCode','dialMethod','Celine','showDialpad','Internal','SYSTEM:GET_INTERVALS','pow','/errors/error-404','chatGroup:remove','deselectPauses','pending','predictiveIntervalAnsweredCalls','/ivr_campaigns','intZohoAccount','TOOLS.EDIT_ALLCONDITION','Chrome','app.fax.realtime.agents','id-ID','globalStatusTime','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20customField?','selectColor','intFreshdeskAccount@get','internal','mailSubstatus','MohSound\x20properly\x20saved!','deleteSelectedCannedAnswers','service','INTEGRATIONS.EDIT_DYNAMICS365ACCOUNT','Tamil\x20(Sri\x20Lanka)','DashboardItem\x20properly\x20created','AboutController','ivrCampaignHopperHistories','user_has_mail_interactions:save','selectedMailShowSystemMessage','newProject','CloudProvidersController','motion2.home.recordings:','openchannelQueue:save','api/mail/substatuses/describe','cloudProvider@get','exportSelectedWhatsappAccountInteractions','EditMailAccountAppgotoifDialogController','api/whatsapp/interactions/:id/messages','SETTINGS.EDIT_CUSTOMIZATION','deleteSelectedAgents','api.dashboard.update','The\x20sugarcrmAccount\x20will\x20be\x20deleted.','UservoicePrefix','/settings','dial','icon-account-circle','dateOfBirth','src/js/modules/main/apps/dashboards/views/general/agent/interaction/tag/dialog.html/dialog.html','createOrEditListCustomField','servicenowConfiguration','data2','callNumber','msWidget','Cancel','tagInteraction','WHATSAPP.NEW_WHATSAPPQUEUE','EditWhatsappAccountAppcloseDialogController','+00:00','api.network.update','exportSelectedListCustomFields','msUtils','api.intSalesforceAccount.save','AgentsFaxRealtimeController','\x20uploaded\x20successfully','false','\x27chat_interactions\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatCannedAnswers?','rtl','selectedIvrCampaignHopperHistories','IvrCampaign\x20properly\x20deleted!','dispositions','app/main/apps/chat','deleteFaxAccountApp','basicstyles','addNewWhatsappCannedAnswer','onUserCalled','msNavigationHorizontalItem','Georgia,serif','usenglishfemale','WhatsappQueueController\x20as\x20vm','trustAsHtml','team','Anonymous','createOrEditTelephone','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sounds?','/api/settings/1/logo_login','ensureSelectedResultIsVisible','vm_bull.query.filter','SYSTEM:GET_VARIABLES','/smsAccounts','VOICE.CHANSPIES','is-mobile','interpolate','edit','SYSTEM:DELETEscreenRecording','newVtigerConfiguration','openchannelInteraction@get','intVtigerAccount','filteredAgents','VariablesController\x20as\x20vm','arraymonitor_format','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/tag/dialog.html/dialog.html','sendRequest','DASHBOARDS.','app.staff.telephones.edit','onUpdateFaxQueue','src/js/modules/main/apps/integrations/views/deskAccounts/edit/configurations/dialog.html/dialog.html','api/rpc/outbound','callysquare','mixmonitorid','companies','CSV\x20stop\x20import\x20process\x20failed!','dispose','\x27openchannel_messages\x27','GROUP_CONCAT\x20ASC','saveGlobalCustomField','userOpenchannelQueue:save','SMS\x20Account','api/sms/accounts/:id','SMS.NEW_SMSACCOUNT','Smtp\x20properly\x20verified','api.voiceExtension.save','CONTACTMANAGER.EDIT_LIST','show','sounds','api/whatsapp/interactions/:id/clone','smsAccountApps','AmazonAWS','createOrEditInboundRoute','Georgian','icon-tile-four','\x27user\x27','','spymailInteraction','selectedNetworks','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/agent/dialog.html/dialog.html','\x27France\x20(France)','delete\x20mailCannedAnswers','flip','api/integrations/freshsales/configurations/:id/clone','\x27AU\x27','exportSelectedWhatsappAccountWhatsappCannedAnswers','hopper\x20#','shortinfo','hoppers','2020-12-04T18:26:59.000Z','saveOpenchannelQueue','icon','deleteSelectedFields','The\x20faxAccount\x20will\x20be\x20deleted.','searchTerm','Voicemail\x20properly\x20deleted!','CustomReports','Dialer\x20Hopper\x20Logs','api/userProfile/sections/describe','toggleAll','ms-nav-toggle','icon-fish','Africa/Abidjan','getIvrCampaigns','onInteractionClose','\x27all\x27','selectAllFaxAccounts','api/jscripty/sessions/reports/describe','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20message?','user_has_whatsapp_interactions:remove','STAFF.','setTags','CHAT.OFFLINE_MESSAGE','CSquare\x20Details\x20Report','queuecallerleaveAt','outboundRoutes','src/js/modules/main/apps/voice/views/voiceRecordings/create/dialog.html/dialog.html','US\x20East\x20(N.\x20Virginia)','getResponseSheetHeaders','HopperHistory\x20deleted!','openchannelAccounts','delete\x20dynamics365Account','FaxQueueagentaddController','company','FaxAccount\x20updated!','The\x20max\x20allowed\x20size\x20is\x20','isJsonString','a..','app/footer','toggleCollapsed','api.disposition.delete','red-300-fg\x20icon-phone-hangup','ms-form-wizard','Contact\x20properly\x20created','SYSTEM:DELETE_HOPPER','\x27report_jscripty_answers\x27','The\x20salesforceAccount\x20will\x20be\x20deleted.','rpc@getVoiceQueues','deleteSelectedWhatsappAccounts','SAVE','Asia/Taipei','analyticMetric','Once','assignTo','apps.sms.realtime','onRemoveVoiceQueue','currentUser','getTrunks','msSplashScreen','es-NI','SYSTEM:DELETEinterval','Kyrgyz','ringingMute','en-GB','delete\x20dynamics365Configuration','disableMdInkRippleOnMobile','api/users/:id/mail_accounts','INTEGRATIONS.EDIT_FRESHDESKCONFIGURATION','smsStatus','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/close/dialog.html/dialog.html','AbandonedCallsVoiceRealtimeController\x20as\x20vm','motion.newsAlertHide:','Message\x20has\x20been\x20rejected!','ZendeskAccount\x20updated!','partial','WhatsappAccount\x20properly\x20saved!','EditWhatsappAccountAppdialogflowDialogController','Female','hiddenCC','api.intVtigerAccount.delete','arraydialCheckDuplicateType','src/js/modules/main/apps/dashboards/views/general/user/dialer/user.general.dialer.html/user.general.dialer.html','delete\x20customField','api/pm2/:id','delete\x20list','getBlackLists','MusicOnHoldMohSoundsController','+05:00','getMailAccounts','TOOLS.EDIT_CUSTOMDASHBOARD','ChatWebsitelogoController','pt\x22>

','ReportsController\x20as\x20vm','Pacific/Tarawa','Left\x20Join','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20servicenowAccounts?','position','campaign:save','paramDefaults','\x27select\x27','api/actions/:id/clone','internalrouteApps','saveTag','SYSTEM:RESETLIST','sortByWeight','Import\x20process\x20failed!','whatsappQueue','selectAllNetworks','MailSubstatus','INTEGRATIONS.NEW_DESKCONFIGURATION','api.intServicenowAccount.save','isApp','steps','api/mail/interactions/:id/tags','arraymessagesAlignment','webpackChunkmotion_client','+10:00','saveProject','deleteInboundRoute','ngEmbed','vm_dc.query.filter','gotoTriggers','OpenchannelAccountOpenchannelCannedAnswersController','API:','api/settings/now','\x27months\x27','lastIn','Call_Status','user','filterSingleByTags','INTEGRATIONS.EDIT_DESKCONFIGURATION','HH:mm:ss','api/users/:id/mail_interactions','stopInterval','app.callysquare','Are\x20you\x20sure\x20want\x20to\x20restart\x20the\x20plugin\x20attached\x20process?','sectionId','Czech','queueNotifyMethod','America/Bahia_Banderas','getQueueCampaignHopperHistories','newWhatsappAccount','Chat\x20Report\x20Transfer','closedAt','dialogflowv2','America/Nipigon','deleteSelectedCompanies','WebRTC','selectedOperator','saveVtigerConfiguration','api/migrations/describe','\x27GP\x27','@autocomplete','otherwise','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','showWebBar','treeDefaultData','\x20has\x20been\x20saved!','motionThemes','app/main/apps/help','America/North_Dakota/New_Salem','routeId','QuickPanelController\x20as\x20vm','Your\x20password\x20properly\x20updated','getTrustedURL','EditoutboundAppoutbounddialDialogController','3.0.0-alpha.2','Unable\x20to\x20create\x20session!','Session\x20deleted!','msg','key','omniChannels','CreateOrEditFaxQueueDialogController','pause@get','CreateOrEditCompanyDialogController','Prefix','MsThemeOptionsController\x20as\x20vm','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voiceRecordings?','buffer','Pacific/Wake','getFreshsalesConfiguration','isMobile','European\x20Danish\x20Female','api/openchannel/queues/:id/teams','motion2.home:','definePalette','user_has_fax_interactions:save','teams','KEY_CODE','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27strict\x27','/agents','api/sms/messages/:id','parse','Message\x20properly\x20accepted!','src/js/modules/main/apps/analytics/views/reports/run/dialog.html/dialog.html','selectedAiTools','Portuguese\x20(European)','leave','msMasonryItem','selectedWhatsappQueues','ms-MY','first','INTEGRATIONS.EDIT_','api.smsQueue.delete','deleteChatWebsiteChatProactiveAction','English\x20(Philippines)','chatPause','disableCustomScrollbarsOnMobile','api/fax/messages/:id','oldPassword','onUpdateChatInteraction','local','deleteSelectedSubjects','delete\x20SquareRecordings','src/js/modules/main/apps/voice/views/outboundroutes/edit/view.html/view.html','SYSTEM:GETcmList','eu-central-1','affectedRows','INTEGRATIONS.NEW_SALESFORCECONFIGURATION','BookedProgressive','reLayoutDebounce','warn','SYSTEM:DELETEFIELD','Field','notification:send','SYSTEM:GETfaxAccounts','XCALLY-MOTION-ANSWER=0','addNewVoicemail','rec','CDR(type)=internal','api/triggers/:id/any_conditions','saveSound','TOOLS.NEW_DASHBOARDITEM','hasBlackLists','addNewFaxQueue','TOOLS.NOTIFICATIONS.TRIGGER_DELETED_SUCCESS_TITLE','selectedTeams','statusClass','Project\x20properly\x20saved!','Tag','app.login','api/integrations/salesforce/configurations/describe','UpdatesController\x20as\x20vm','matchingField','src/js/modules/main/apps/integrations/views/zohoAccounts/zohoAccounts.html/zohoAccounts.html','AgentDashboardGeneralController','unreadMessage','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?','$watchGroup','\x273\x27','Marlene','valueReplacer','lime-A700-bg','close','exportSelectedIvrCampaigns','src/js/modules/main/apps/analytics/views/extractedReports/create/dialog.html/dialog.html','getScheduler','The\x20zendeskAccount\x20will\x20be\x20deleted.','WhatsappRealtimeController','SYSTEM:DELETEintSugarcrmAccount','delete\x20CannedAnswers','AgentHomeSmsController','microphone','api/chat/queues/describe','voicePrefixes','es-PE','SETTINGS.SETTINGS','whatsappInteractions','attrReport','getPauses','hasModulePermissions','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/whatsappCannedAnswers/dialog.html/dialog.html','formViewer','Are\x20you\x20sure\x20want\x20to\x20reset\x20the\x20list\x20','api.voiceQueue.clone','start','Outgoing','app.tools.triggers','isActiveTab','SYSTEM:DELETEintDeskAccount','api/pauses/:id/clone','VoiceRecordingsController\x20as\x20vm','MusicOnHold\x20updated!','addMembers','SETTINGS.EDIT_GENERAL','SYSTEM:DELETEsquareOdbc','Chinese\x20(Hong\x20Kong)','unpause','DASHBOARDS.SELECT_DATE','SYSTEM:DELETEanalyticExtractedReport','\x27comedia\x27','squareProject','newZendeskConfiguration','unshift','whatsappQueueReport','api.contact.update','PUT','Trunk','VoiceQueueController\x20as\x20vm','deleteWhatsappQueuesWaitingInteractions','InternalRouteController','Spanish\x20(Colombia)','xmd-contactid','sqlUtil','Guarani','api/rpc/mail/queues/waitinginteractions','\x27unavailable\x27','api.openchannelAccount.save','model','ExtractedReport\x20properly\x20deleted!','Warning','deleteVoicemail','interactions','remotePlayerId','exportSelectedTelephones','CreateOrEditOpenchannelQueueDialogController','arraycrudPermissions','theme','Armenian\x20(Armenia)','apps.staff.agents','api/whatsapp/queues/:id/teams','api.jscriptyProject.getSummary','MailQueueController\x20as\x20vm','src/js/modules/main/apps/voice/views/contexts/contexts.html/contexts.html','interaction\x20#','\x27cm_hopper_history\x27','ChatCannedAnswer\x20properly\x20created','es-ES','DASHBOARDS.SELECT_ACCOUNT','addNewGlobalCustomField','\x27externip\x27','FORGOTPASSWORD.PASSWORD_RESET_ERROR','outboundrouteApp','deleteOpenchannelAccount','arrayservice','recordingFormat','api/integrations/dynamics365/accounts/:id','MsNavigationHorizontalNodeController','forEach','selectedFaxAccounts','CannedAnswersController\x20as\x20vm','/fax','ngMaterialDateRangePicker','downloadFaxInteraction','@uniqueid','','getTriggers','TOOLS.NEW_PAUSE','redirectToAgent','+12:00','\x20succeded!','+06:00','/forgot','CSV\x20import\x20process\x20stopped!','ANALYTICS.EDIT_REPORT','\x27agi://127.0.0.1/square,{{project.name}}\x27','monitors','api.trigger.save','allConditions','SYSTEM:GETLISTS','Playback','icon-checkbox-marked-outline','ProjectAnswersController',':id','api.squareProject.save','sidenav-open','\x27ilbc\x27','assign','selectedTags','FreshdeskAccountsController','exportSelectedIvrCampaignHoppers','alias','pTalking','api/users/:id/pause','has','apps.mail','findBy','getAiTools','removeAllListeners','selectedOpenchannelAccountOpenchannelCannedAnswers','mobileBarActive','isAgent','notifications','icon-email','3rd','tags','originalObject','read','describeTable','edited','dashboarditem','savePause','deleteReport','AgentHomeDashboardBullController','WhatsappAccountId','delete\x20MusicOnHolds','app.jscripty','OpenchannelQueue\x20properly\x20saved!','removeTeams','treeDefaultInstance','ListagentaddController','align','length','TOOLS.','plugin','createOrEditFreshdeskConfiguration','api/cm/hopper_history/:id','triggers','chatInteraction@get','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27yes\x27','Delete\x20actions','Beepall','Fwd:','America/Pangnirtung','cloudProviders','EditOpenchannelAccountAppcloseDialogController','arrayshowWebBar','EditChatWebsiteAppqueueDialogController','dashboarditemForm','migrations','asterisk','ngCookies','DEFAULT','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeFax/dialog.html/dialog.html','Pacific/Tahiti','getAgentGlobalStatus','TOOLS.NOTIFICATIONS.ACTIONS_DELETE_TITLE','Alphabetical','createOrEditscreenRecording','selectedMode','api.cmHopper.update','User\x20API\x20key\x20updated!','\x20session,\x20data','PhoneBar\x20API\x20Error','Antarctica/Syowa','securePassword','userChatQueue:remove','voiceMailMessageDownload','secret','onActionInit','createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','Asia/Nicosia','CHAT.EDIT_CHATCANNEDANSWER','Odbc\x20properly\x20created','paginatedInteractions','webrtc','api/members/reports/:id/clone','SYSTEM:DELETEchatWebsite','saveMailAccountApp','delete\x20chatCannedAnswer','onClickTab','Vertical\x20Navigation\x20with\x20Fullwidth\x20Toolbar\x202','getFreshdeskConfiguration','previewReport','DASHBOARDS.UNREAD','VoiceQueueId','registered','Variable\x20properly\x20saved!','deselectZendeskAccounts','gotoSmsQueues','VoicePrefixes','selectAllPauses','delete','TOOLS.NOTIFICATIONS.CONDITION_CREATED_SUCCESS_TITLE','arraymode','api/analytics/default_reports/:id/run','sugarcrm','America/Hermosillo','Delete\x20CustomField','dynamics365Account','isEstablished','delete\x20trunk','0px','\x27none\x27','LoginController','report_agent','api.intDynamics365Account.delete','The\x20chatCannedAnswer\x20will\x20be\x20deleted.','src/js/modules/core/directives/ms-phonebar/prefix/dialog.html/dialog.html','selectedWhatsappAccounts','home.mail','Fax\x20Interaction','api.cmList.save','duplicates','trigger:browser:popup','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20sugarcrmConfiguration?','Africa/Casablanca','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27ringing\x27','closeReportDialog','Whatsapp\x20Report\x20Transfer','blue-grey','CONTACTMANAGER.LISTS','FaxAccountsRealtimeController','SYSTEM:GETlists','Message\x20properly\x20sent!','.txt','DASHBOARDS.SCHEDULED_CALLS','mailQueue@get','fi-FI','selectAllScreenRecordings','formatdate','\x20is\x20not\x20valid','FORGOTPASSWORD.LINK_SENT','src/js/modules/main/apps/tools/views/triggers/edit/view.html/view.html','VoicePrefixesController','apps.integrations.vtigerAccounts','SMS.EDIT_','getTelephones','whatsappQueue:save','api/campaigns/:id/lists','api/chat/groups/:id/clone','DASHBOARDS.SAT','SYSTEM:GETintServicenowAccount','addNewWhatsappQueue','Giorgio\x20(Italian,\x20Male)','textContent','Australia/Adelaide','/snippet?token=','differenceWith','api/sms/reports/queue/describe','md-content[name*=\x27interaction-content-','src/js/modules/main/apps/motiondialer/views/realtime/abandonedcalls/view.html/view.html','-02:00','api/mail/accounts/:id/send','chatInteraction','deleteSelectedMusicOnHoldMohSounds','onRemoveUserSmsQueue','app.tools.intervals','remote','onSubmit','DASHBOARDS.APRIL','DASHBOARDS.HOME','customTree','isValueByCondition','SquareProjects','app.voice.internalroutes.edit','/sms','isNavFoldedOpen','getHours','getHopperHistories','msFormWizard','Catalan\x20(Spain)','treeDefaultConfig','api/integrations/vtiger/configurations/:id/subjects','delete\x20interaction','green-300-fg\x20icon-checkbox-marked-circle','models','pullAllBy','High','src/js/modules/main/apps/callysquare/views/squareRecordings/create/dialog.html/dialog.html','answered','selectedContact','deleteItem','onRemoveFaxQueueChannel','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/queue/dialog.html/dialog.html','MsThemeOptionsController','Network','QUICKPANEL.INFO','UploadSoundDialogController','SalesforceAccountController\x20as\x20vm','The\x20tag\x20will\x20be\x20deleted.','vm.search','api.openchannelQueue.update','vm.queryFinal.filter','openchannelAccount@get','deleteMailAccount','app.tools.customDashboards','intSalesforceAccount','$setPristine','The\x20hopper\x20will\x20be\x20deleted.','findSessionBySessionId\x20->\x20sessionId,\x20vm_pb.sessions','selectedSalesforceConfiguration','STAFF.PERMISSIONS_ALL_RESOURCES','UserWhatsappDashboardGeneralController\x20as\x20vm','newChatGroup','The\x20customField\x20will\x20be\x20deleted.','api/sms/reports/queue/:id','searchTextChange','unknown-os','EditMailAccountAppqueueDialogController','onAutocreateSelection','src/js/modules/main/apps/callysquare/views/projects/edit/dialog/dialog.html/dialog.html','Asia/Baku','$rootScope','src/js/modules/main/apps/voice/views/voicemails/create/dialog.html/dialog.html','userProfileResource','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/agentadd/agentadd.html/agentadd.html','addNewMailCannedAnswer','Bulgarian','api/notifications/describe','api/canned_answers/describe','contact:import:','currentconferenceSessions','reportFields','deselectMetrics','modelCtrl','Metric\x20properly\x20saved!','America/Manaus','CreateOrEditServicenowConfigurationDialogController','arrayheader_shape','journey','ListController\x20as\x20vm','app.staff.userProfiles','Website','icon-video','MailAccountDispositionsController','Chat\x20Website','EditMailAccountAppcloseDialogController','allowEdit','width:\x20265px;','zip','mailStatus','api.intServicenowAccount.update','src/js/modules/main/apps/analytics/views/reports/copy/dialog.html/dialog.html','motion.cookieAlertHide:','selectedReport','ChatWebsiteProactiveActionsController','deleteSelectedScreenRecordings','LOCAL_LOGIN','MainController\x20as\x20vm','VIDEO.VIDEO','clone','Romanian\x20(Romania)','TagsController','notification:save','UNIX_TIMESTAMP','EditInternalAppexternaldialDialogController','secondLevel','Set','Agent\x20properly\x20created','src/js/modules/main/apps/marketplace/views/plugins/plugins.html/plugins.html','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27paused\x27','delete\x20Pauses','ispeechTtsLanguage','Zulu','arraySmtp.service','addNewPause','Tatar','moveContactsQueueCampaignHopperFinal','MusicOnHold\x20properly\x20deleted!','queue','Start\x20new\x20recording','createOrEditFreshsalesAccount','SMS\x20Interaction','General\x20properly\x20deleted!','Would\x20you\x20like\x20to\x20delete\x20','PreviewDialogController','ndassistant_url','America/Menominee','us-east-2','addInteractionTab','Russian\x20Female','Dynamics365Account\x20updated!','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/dial/dialog.html/dialog.html','getMembers','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotop/dialog.html/dialog.html','Delete\x20OpenchannelCannedAnswer','onOperatorChange','apps.openchannel.openchannelQueues','\x27skebby\x27','\x27wrandom\x27','\x271\x27','getAgentLabel','api/openchannel/applications/describe','api/templates/:id','SYSTEM:QUEUES_ASSOCIATION','api.team.delete','Email\x20Report\x20Transfer','app.settings.generals','','EditInternalAppgotoDialogController','newItem','selectedMetrics','api/chat/groups/describe','result','SYSTEM:DELETEcmList','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/queue/dialog.html/dialog.html','userIsNotPhonebar','TOOLBAR.SOMEONE_LOGGED_YOU_OUT','\x27mail_accounts\x27','id,phone,scheduledat,recallme,priority,UserId,OwnerId','app.settings.license','Delete\x20Odbc','COUNT\x20(','Spanish\x20(Dominican\x20Republic)','addNewMetric','scrollEl','America/Havana','Fax\x20Report\x20Queue','Delete\x20ChatCannedAnswer','api/voice/extensions/:id/applications','api.tag.save','trustedHtml','ivrCampaign','openDialog','$animate','Position','addAccountApplications','selectedReportFields','userWhatsappQueue:save','video','gotoPlugins','SYSTEM:LISTS_ASSOCIATION','newPlugin','','fromNow','treeCustomConfig','api.intSalesforceConfiguration.save','\x27whatsapp_accounts\x27','CONTAINS','xm-mail-content-','selectedDispositions','msNavButton','openContact','deleteSelectedSmsAccountApps','vm.detailForm.$pristine','items','GROUP\x20BY\x20','VOICE.EDIT_MOHSOUND','api/integrations/desk/configurations/:id/tags','intervalIntervals','noop','hmac','src/js/modules/main/apps/tools/views/customDashboards/create/dialog.html/dialog.html','aws_secret_access_key','newVtigerAccount','app.motiondialer.realtime','amazonlex','\x27more\x27','api/integrations/vtiger/fields/describe','api/openchannel/reports/transfer/:id','src/js/modules/main/apps/contactmanager/views/lists/edit/customFields/dialog.html/dialog.html','api/version/migrations','Priority','ms-nav-folded-open','CreateOrEditWhatsappAccountDialogController','id,alias','deskAccount','timelineOptions','ChineseTraditional','COMMA','requestPermission','CreateOrEditPauseDialogController','VoiceRecording','range','api.voiceContext.update','src/js/modules/main/apps/analytics/views/reports/edit/view.html/view.html','dialPredictiveIntervalMaxThreshold','SYSTEM:GET_USERS','api/voice/queues/describe','getOrderBy','Failed\x20to\x20retrieve\x20pm2\x20processes','America/Managua','api/square/messages/:id','OutboundCallsVoiceRealtimeController\x20as\x20vm','dashboard:save','Czech\x20(Czech\x20Republic)','enableSettings','EditInternalAppinternaldialDialogController','ngFlow','Asia/Ashgabat','helperClasses','Slovenian','voiceQueueReport:update','saveCustomField','md.data.table','zh-CN','api/chat/messages/:id/reject','api/integrations/vtiger/accounts/:id/clone','Error\x20initializing\x20Jabra\x20integration','Hindi','SalesforceAccountsController','createOrEditSubject','Plugin\x20installed!','cmList@getCustomFields','delete\x20Telephones','\x27rounded\x27','POST','api/square/reports/:id/clone','agentOnly','SYSTEM:DELETEintFreshsalesAccount','api/fax/reports/transfer/describe','api.setting.save','members','api/integrations/zoho/fields/:id','completed','daysOfWeek','stopping','Hopper\x20properly\x20saved!','selectAllVoicemails','Mailbox@Context','DispositionsController\x20as\x20vm','Jscripty\x20Questions','extraOperators','MOTIONDIALER.EDIT_IVRCAMPAIGN','limitCalls','Waiting...','getChatWebsiteOfflineMessages','msWidgetEngine','api.squareOdbc.update','FAX.EDIT_FAXACCOUNT','zoho','MailAccountId','addNewItem','SmsQueueController\x20as\x20vm','Always','en-TZ','Delete\x20Dynamics365Account','getTags','outboundroutes','alaw','api/openchannel/applications/:id/clone','Thumb','Delete\x20SugarcrmConfiguration','api/voice/mails/messages/:id/clone','Apple','MsStepperController\x20as\x20MsStepper','Integrations','new','Galician','onSaveFaxInteraction','\x27nl\x27','api/rpc/voice/channels','#c2d4ef','createOrEditMusicOnHold','$onInit','user_has_sms_interactions:save','avgTalkTime','Spanish\x20(United\x20States)','mandatoryDispositionPause','chat_queue_waiting_interaction:remove','sun','Openchannel\x20Account','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','changePasswordForm','app.voice.voiceQueues','project','Norwegian','transferNumber','category','provider','stepInfo','onChangeVisibility','\x20ASC','SYSTEM:DELETEvoiceQueue','phoneBarEnableSettings','','IvrCampaignsMotionDialerRealtimeController\x20as\x20vm','Phonebar','language','You\x20can\x27t\x20remove\x20yourself','cannedAnswer@get','export','delete\x20chanSpy','onUpdateOpenchannelQueue','SYSTEM:GETuser','No\x20resources\x20enabled','servicenowAccount','constant','America/Belize','clientEmail','rpc@getAgents','newReport','DEFAULT\x20PAUSE','SmsCannedAnswer\x20deleted!','exportSelectedFaxQueues','CreateOrEditChatQueueDialogController','globalTags','exportDate','deleteSugarcrmAccount','MMM\x20d,\x20y\x20h:mm\x20a','rpc@getMailQueues','/jscripty','api/chat/reports/queue/:id/clone','Explorer','checkboxes','SugarcrmConfiguration\x20properly\x20created','The\x20telephone\x20will\x20be\x20deleted.','api/integrations/vtiger/fields/:id/clone','ChatWebsiteChatCannedAnswersController','saveMailCannedAnswer','apps.integrations','err','ResetPasswordController','showInteraction','Cannot\x20find\x20module\x20\x27','squareReport','userProfile@getResources','src/js/modules/main/apps/tools/views/dispositions/dispositions.html/dispositions.html','Sinhalese','deleteVtigerConfiguration','APP.TELEPHONES','currentReport','The\x20project\x20will\x20be\x20deleted.','The\x20chatQueue\x20will\x20be\x20deleted.','api/users/:id/queues_rt','prop','api/chat/reports/transfer/:id','create','delete\x20offlineMessages','getOpenContacts','createdAt,updatedAt,id,name,description','src/js/modules/main/apps/staff/views/agents/edit/view.html/view.html','delete\x20SalesforceAccounts','write','lll\x20Z','HANGUPCAUSE_17','src/js/modules/main/apps/settings/views/customizations/customizations.html/customizations.html','DASHBOARDS.ACCEPT_ELSEWHERE','European\x20Italian\x20Female','Restored','Attached\x20pm2\x20process\x20successfully\x20stopped','\x20will\x20be\x20overwritten\x20by\x20the\x20fields\x20of\x20the\x20contact\x20#','autoAssociation','api/sms/applications/:id','SugarcrmAccountController\x20as\x20vm','/callysquare','+13:00','SYSTEM:GET_TAGS','/chanSpies','unhold','api/auth/local/reset/:token','jpjapanesemale','light-blue','createOrEditFaxQueue','Project\x20properly\x20deleted!','intVtigerConfiguration','processing','src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/configurations/dialog.html/dialog.html','delete\x20ChatWebsites','English\x20(Ghana)','Spanish\x20(Guatemala)','delete\x20CloudProviders','EditFaxAccountAppcloseDialogController','hasMicrophone','src/js/modules/main/apps/fax/views/realtime/queues/view.html/view.html','\x27website_alias\x27','selectedMailSubstatuses','SYSTEM:GETopenchannelQueue','api.sound.save','smsMessage','inboundroutes','api.trigger.update','dashboard','src/js/modules/main/apps/voice/views/realtime/telephones/view.html/view.html','VoiceQueueController','Hungarian\x20(Hungary)','Quarters','src/js/modules/toolbar/changepassword/changepassword.html/changepassword.html','msFormWizardForm','app.dashboards.general.openchannel','\x27clicksend\x27','CreateOrEditServicenowAccountDialogController','mailAccount','isAfter','Emma','ReferAttendedDialogController','api/cm/lists/:id/users','api/integrations/zoho/configurations/:id/fields','EQUALS','MAILACCOUNT:SEND','freshsalesConfiguration','contactName','openchannel_queue_waiting_interaction:save','deselectVoicePrefixes','api/integrations/freshdesk/accounts/describe','voiceMail.mailbox','onDateRangeInit','VOICE.EDIT_','tls','chatCurrentCapacity','America/Rainy_River','\x27b\x27','src/js/modules/main/apps/callysquare/views/projects/edit/open/open.html/open.html','Spanish\x20(Peru)','newsAlertOnClose','treeCustomEvents','singular','/video','undo','VOICE.EDIT_VOICEQUEUE','api/fax/messages/:id/download','app.video.screenRecordings','Outlook365','html-area','First','arrayrole','getVoiceCalls','Dynamics365Configuration\x20properly\x20created','phone','whatsappMessage:save','ukenglishfemale','The\x20chatProactiveAction\x20will\x20be\x20deleted.','createdAt,updatedAt,id,callerid,duration,audio,stamp,msg_id','blacklistadddialog','../../../../../../../assets/images/avatars/customer.png','WhatsappQueueteamaddController','delete\x20ZendeskAccounts','stateParams','\x27de\x27','IntervalIntervalsController','full-height','handleResultClick','reply','intSalesforceAccount@get','Zoho','deleteSelectedIvrCampaignHopperHistories','id,name,color','api/cm/hopper/opencontacts','Spanish\x20(Mexico)','Naja','src/js/modules/main/apps/dashboards/views/general/agent/contact/selection/dialog.html/dialog.html','api/mail/accounts/:id/clone','ContactController','STAFF.CONFIRM','chatInternalMessage:update','url','IvrCampaignController','Owner','src/js/modules/main/apps/chat/views/chatWebsites/edit/view.html/view.html','put','api.analyticMetric.update','zohoAccounts','SYSTEM:GET_TEMPLATES','trunks','CustomizationpreferredController','setFormatTime','logout','Atlantic/Madeira','putOtherCallsOnHold','app.motiondialer.realtime.ivr_campaigns','Esperanto','CKEDITOR','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20messages?','customization','CreateOrEditZendeskAccountItemDialogController','src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/interval/dialog.html/dialog.html','INTEGRATIONS.NEW_ZOHOACCOUNT','#9ab8e5','allowedItems','orange','groupBy','WhatsappAccountInteractionsController','SquareRecordings','\x27paused\x27','rurussianmale','agentadddialog','CannedAnswer','selectedAgents','Delete\x20WhatsappCannedAnswer','terminate','inboundrouteApps','src/js/modules/main/apps/tools/views/sounds/sounds.html/sounds.html','adminOnly','sort','deselectVoiceRecordings','selectedCompany','getChatQueuesWaitingInteractions','src/js/modules/main/apps/callysquare/views/projects/projects.html/projects.html','title','getContexts','TelephonesVoiceRealtimeController','deleteChatProactiveAction','TriggersController','://','TrunksVoiceRealtimeController','ChatWebsiteActionsController','el-GR','api/users/:id/chat_websites','addClass','api.openchannelQueue.save','goalname','\x27tls\x27','Chat','api.plugin.delete','EditChatWebsiteApp','getODBC','api/integrations/zoho/accounts/:id/configurations','api.cannedAnswer.delete','src/js/modules/footer/layouts/vertical-navigation/footer.html/footer.html','deviceInfo','paused','addNewChatProactiveAction','ZendeskAccountsController','api/cm/contacts/:id/hoppers','gotoif','api/sms/accounts/:id/dispositions','unavailable','addBlackLists','histories','QueueNotify','app.fax.realtime','newReportField','setItem','CreateOrEditDynamics365AccountDialogController','ActionId','InboundRoute\x20properly\x20deleted!','motiondialer','createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version','Asia\x20Pacific\x20(Mumbai)','triggerAllConditions','America/Ojinaga','none','Company\x20properly\x20saved!','delete\x20deskConfiguration','find','MxGraphImportXMLController','material.components.expansionPanels','\x27chat_queues\x27','isDefined','SmtpController\x20as\x20vm','icon-dots-horizontal','','removeByInteraction','openFolded','Gmail','delete\x20SmsAccounts','contactFields','userProfileId','\x27roundrobin\x27','DASHBOARDS.RESCHEDULE','Asia\x20Pacific\x20(Tokyo)','TOOLS.TEMPLATES','arraydialPredictiveOptimization','General','dialogFlowV2Language','Rule','phoneBarExpires','DISPOSITION_DELETE_MESSAGE_CHILDREN','HeaderController','motion.selectedTheme','id,field,operator,value,createdAt,updatedAt','America/Santarem','9888','called','addNewChatCannedAnswer','languages','deletechanSpy','app.callysquare.odbcs','allowmessenger','binding','What\x20would\x20you\x20name\x20your\x20tag?','ScreenRecordingplayController','#content','CDR(type)=outbound','SYSTEM:GET_CLOUDPROVIDERS','freshsales','gotoFaxAccounts','chatQueue:remove','deleteChatCannedAnswer','rounded','calls','E:\x20Exit\x20when\x20the\x20spied-on\x20channel\x20hangs\x20up.','exportSelectedUsers','SYSTEM:DELETECONFIGURATIONFIELD','The\x20voicemail\x20will\x20be\x20deleted.','onUpdate','ListDispositionsController','getQueues','TrunksController\x20as\x20vm','InternalRouteController\x20as\x20vm','MailAccount','ar-PS','/system?tab','lastOut','America/Argentina/Tucuman','Cross\x20Join','composeSmsInteraction','selectedMailAccountMailCannedAnswers','attrs','preload','src/js/modules/main/apps/tools/views/customDashboards/partialViews/reports/treeReports.html/treeReports.html','api.telephone.save','root','api/fax/queues/:id/clone','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotoif/dialog.html/dialog.html','Africa/Tunis','US\x20West\x20(Oregon)','CustomDashboard\x20properly\x20cloned','INTEGRATIONS.NEW_SUGARCRMCONFIGURATION','selectAllDispositions','INTEGRATIONS.NEW_VTIGERACCOUNT','api/sms/accounts/:id/interactions','Unable\x20to\x20answer\x20the\x20call','createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description','src/js/modules/main/apps/tools/views/intervals/edit/view.html/view.html','insertHtml','TOOLS.NOTIFICATIONS.ACTION_DELETED_SUCCESS_TITLE','getTeams','eurspanishfemale','OutboundRoute\x20properly\x20deleted!','tue','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20','api.disposition.save','Mobile\x20','chatQueue:update','\x2712000\x27','The\x20chatWebsite\x20will\x20be\x20deleted.','DASHBOARDS.THU','app.settings.customizations','api/userProfiles/:id','createdAt,updatedAt,id,name,service,data2,data1','saveChatProactiveAction','@pid','Europe/Prague','\x27AmazonAWS\x27','apps.voice.voiceQueues','DASHBOARDS.LAST_MONTH','America/Port-au-Prince','CreateOrEditZohoAccountItemDialogController','delete\x20message','RecordDialogController','saveSection','Delete\x20OpenchannelQueue','Raveena\x20(English,\x20Indian,\x20Female)','motion.layoutStyle','xorBy','api/analytics/field_reports/:id/clone','uniqueid','hide','Busy','$destroy\x20event\x20fired','ENTER_BR','-name','api','lastIndexOf','The\x20freshsalesConfiguration\x20will\x20be\x20deleted.','Phone\x20number','green-300-fg\x20icon-phone-in-talk','onMultiselectInit','gotoVoicemails','src/js/modules/main/apps/marketplace/views/plugins/upload/dialog.html/dialog.html','SYSTEM:GETjscriptyProject','api/whatsapp/accounts/:id/clone','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','saveSugarcrmConfiguration','onSaveChatQueue','SalesforceAccount\x20properly\x20saved!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20offlineMessage?','Service\x20worker\x20registration\x20failed','TrunkcloneController','src/js/modules/main/apps/contactmanager/views/contacts/import/import.html/import.html','DASHBOARDS.SELECT_SUBSTATUS','getCompanies','isIndeterminate','draft','Scheduler','src/js/modules/main/apps/tools/views/cannedAnswers/create/dialog.html/dialog.html','motion2.home.openchannel:','ReportConditionsController','api/cdr/:id/clone','openchannelStatus','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/view.html/view.html','EditInboundAppgotoDialogController','onRemoveFaxQueue','answerRate','setActiveItem','save_name','OutboundRoute\x20properly\x20saved!','MailCannedAnswer\x20properly\x20saved!','ispeechAsrModel','whatsappAccountInteractions','amaflags','selectAllMetrics','AgentHomeMailController','app.whatsapp.whatsappAccounts','Delete\x20voicePrefix','startingSelectedItems','Delete\x20InboundRoute','legend','msScroll','rpcChatQueues','N/A','api.intDeskAccount.update','Subject\x20has\x20been\x20deleted!','SYSTEM:DELETEopenchannelQueue','cmHopperFinal','failed','','arrayallow','$scope','SYSTEM:DELETEwhatsappAccount','MOTIONDIALER.NEW_IVRCAMPAIGN','editWhatsappAccountApp','app.motiondialer.queueCampaigns.edit','addNewSchedule','deleteServicenowConfiguration','US\x20West\x20(N.\x20California)','English\x20(US)','#78a0dc','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20plugins?','DeskAccount','SYSTEM:GETvoiceMails','onSaveCampaign','saveDisposition','interactionid','populateResults','cmCustomField@get','selectedFreshsalesAccounts','$injector','api.cloudProvider.update','deleteSelectedChatWebsiteInteractions','MAIL.MAILACCOUNTS','conf','deleteMusicOnHoldMohSound','motionPalettes','get_path','addNote','toString','faxInteraction','faxInteraction@get','api/chat/websites/:id/logo','=template','app.marketplace','apps.fax.faxQueues','SmsQueue\x20properly\x20created','voicemails','EditChatWebsiteAppamazonlexDialogController','/dialer','/users','src/js/modules/main/apps/staff/views/agents/edit/changepassword/changepassword.html/changepassword.html','newDeskAccount','newMohSound','Lingala','VoiceQueueagentaddController','SYSTEM:GETsquareProject','firstName','VoicemailsController','apps.settings','newGlobalCustomField','toDate','api/voiceQueuesLog/:id','api.userProfile.delete','Interval\x20properly\x20saved!','app.fax.faxQueues.edit','delete\x20WhatsappQueues','trustAsResourceUrl','integrations/dynamics365/configurations/:id/descriptions','newMetric','SYSTEM:GET_LISTS','The\x20deskAccount\x20will\x20be\x20deleted.','o:\x20Only\x20listen\x20to\x20audio\x20coming\x20from\x20this\x20channel.','English\x20(United\x20States)','Georgia','uriLocation','delete\x20ZohoAccounts','HELP.ABOUT','proactive','uploadSounds','Pacific/Guadalcanal','api/openchannel/interactions/:id/download','arrayalignment','Justin','CreateOrEditSmsCannedAnswerDialogController','SmsQueues','\x27US\x27','CreateOrEditscreenRecordingDialogController','saveFreshsalesConfiguration','data4','api/square/reports/:id','integrationReport','|{color:red}','api.mailQueue.save','chatInteraction:save','FaxAccount','MAX\x20(','OutboundRouteController','api/openchannel/messages/:id','America/Atikokan','uniq','onIcecandidate\x20->\x20session,\x20data','onSaveVoiceQueueReport','toggleFolded','exportSelectedOpenchannelQueues','getProjectSessions','VoiceQueue','onRemoveSmsQueueChannel','selectedFaxAccountApps','OpenchannelAccountActionsController','user:update','createOrEditDescription','analyticFieldReport','orange-fg','EU\x20(Ireland)','slice','opus','INTEGRATIONS.EDIT_SERVICENOWCONFIGURATION','dd\x20MMM\x20yyyy','api/integrations/dynamics365/configurations/:id/clone','series','QueueId','UserProfileController\x20as\x20vm','getSummary','Invalid\x20extension:\x20','holdHook\x20->\x20payload','outboundOriginateFailureCallsDay','deleteSelectedPlugins','api/voice/recordings/:id','Refer\x20Attended','home.mycontacts','selectedField','conditions','api.intZohoConfiguration.update','onIntegrationAccountSelection','Pacific/Nauru','plugins','\x27alpha\x27','deleteTemplate','OutboundRoute\x20properly\x20created','api/integrations/zendesk/configurations/:id/tags','Chat\x20Report\x20Queue','ms-nav-toggle-items','getRegisteredThemes','src/js/modules/main/apps/voice/views/inboundroutes/edit/view.html/view.html','Error404Controller\x20as\x20vm','parseCrudPermissions','api.plugin.save','Scheduled\x20Calls','grey-A400-bg','Subject','Sesotho','src/js/modules/main/apps/contactmanager/views/companies/create/dialog.html/dialog.html','src/js/modules/core/directives/ms-tab-scroll/ms-tab-scroll.html/ms-tab-scroll.html','ms-nav','Korean','es-US','$[${XCALLY-MOTION-ANSWER}=0]?Answer','contexts','dialer','cookieAlertOnClose','src/js/modules/main/apps/chat/views/chatQueues/edit/teamadd/teamadd.html/teamadd.html','Context','hasResourcePermission','SYSTEM:GET_TRUNKS','$formatters','createOrEditMailAccount','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20project?','scope','getValues','onSaveWhatsappQueue','FaxQueuesController\x20as\x20vm','triggerallConditions','nov','\x2727\x27','I\x20agree','msNavigationItem','api.schedule.delete','getVtigerConfiguration','placed','AgentsWhatsappRealtimeController\x20as\x20vm','yes','Portuguese','Round\x20Robin','app/main/apps/sms','MailSubstatus\x20properly\x20saved!','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/interval/dialog.html/dialog.html','America/La_Paz','CustomizationlogoController','\x27password\x27','createOrEditChatQueue','api/analytics/metrics/:id/clone','string','DASHBOARDS.UNTITLED','ChatQueueteamaddController','CALLYSQUARE.SQUARERECORDINGS','America/Nome','getCannedAnswers','EditFaxAccountAppgotopDialogController','width=','horizontalNavigation','api/cm/hopper_final/voice/queue/countAttributes/:id','api/voice/agents/reports/:id','api/integrations/zoho/fields/describe','selectedChatWebsiteChatCannedAnswers','servicenowAccounts','api/sms/reports/transfer/:id/clone','delete\x20UserProfiles','deleteSelectedTemplates','newTeam','remove','transcribeStatus','voicePrefix','mailInteractionTags:save','Asia/Pyongyang','web','hh:mm:ss','faxApplication','EditoutboundAppcustomDialogController','smsQueueReport','monthName','+=400','collapsing','WHATSAPP.EDIT_','app.tools.intervals.edit','account','getFaxAccountInteractions','src/js/modules/main/apps/sms/views/smsQueues/create/dialog.html/dialog.html','sidebar','CloudProvider\x20properly\x20deleted!','userMailQueue:save','ServicenowConfiguration\x20properly\x20deleted!','\x20\x20properly\x20logout','operator','Would\x20you\x20like\x20to\x20save\x20your\x20survey?','Turkish','SquareProjectId','Asia/Makassar','Unable\x20to\x20init\x20media\x20devices','deleteList','\x27en-AU\x27','api.dashboard.delete','delete\x20cloudProvider','src/js/modules/main/apps/voice/views/internalroutes/create/dialog.html/dialog.html','setCurrentStep','updateLayoutMode','addNewFreshdeskAccount','AgentGeneralBotController','api/mail/out_servers/describe','confirm','interactionsgoto','api.openchannelQueue.delete','unreadMessages','src/js/modules/main/apps/integrations/views/zohoAccounts/edit/item/dialog.html/dialog.html','EditWhatsappAccountAppautoreplyDialogController','apps.help.about','delete\x20node','createOrEditProject','CreateOrEditTagDialogController','userLists','canScroll','deleteDynamics365Account','message','removeQueues','dialstatus','QueuesChatRealtimeController\x20as\x20vm','\x27hi\x27','ANALYTICS.NEW_EXTRACTEDREPORT','deleteSelectedMailAccountInteractions','api/userProfiles/describe','Mac','SSO_LOGIN','selectedWhatsappAccountInteractions','xmd-voicequeueid','app.voice.musiconholds','get_parent','.json','CSCTelecom','Conversation\x20Update','from-sip','canDelete','TOOLS.EDIT_INTERVAL','replaceWith','api/integrations/zendesk/configurations/:id/fields','SETTINGS.NEW_GENERAL','\x20will\x20be\x20reset.','Telephone\x20password\x20properly\x20updated!','sms_text','OpenchannelRealtimeController\x20as\x20vm','addNewZohoConfiguration','MsTimelineController','removeLists','simple','voiceMusicOnHold','selectedChatWebsites','delete\x20Dynamics365Accounts','#main','ngValue','ENTER','navigator','SYSTEM:DELETEintDynamics365Account','ar-TN','getContacts','HANGUPCAUSE_21','DASHBOARDS.JANUARY','SYSTEM:GET_PAUSES','msApi','saveTeam','newQueueCampaign','WebReportDialogController','FaxAccountsRealtimeController\x20as\x20vm','api/integrations/zendesk/fields/:id/clone','America/Argentina/Jujuy','api/mail/interactions/:id','External','Yesterday','isInConference','api/cm/companies/:id','/queues','User','extractedReports','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','SYSTEM:DELETEvoicePrefix','ms-navigation-horizontal-node','splice','Queues\x20association\x20has\x20been\x20updated!','getServicenowAccounts','smsInteraction:update','CreateOrEditFreshdeskAccountItemDialogController','onNewRTCSession\x20->\x20data','extravar','Years','savePassword','icon-chart-line','api.analyticreport.delete','api.userProfile.update','pcConfig','#1a3865','Realtime','MailSubstatus\x20properly\x20created','erlangCallToSecond','ariaLabel','musiconhold','deselectAgents','apps.settings.updates','Interval\x20deleted!','VoiceRecordingSentimentStatisticsController','onUpdateMailInteraction','secondDisposition','\x27rrmemory\x27','$inject','Persian\x20(Iran)','SYSTEM:DELETEintZendeskAccount','\x27no\x27','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/autoreply/dialog.html/dialog.html','lastDayMonth','Limit','gotoWhatsappAccounts','src/js/modules/main/apps/tools/views/customDashboards/edit/dashboard/dialog.html/dialog.html','SmsQueue','/sugarcrmAccounts','MsWidgetEngineMultibarChartController','fileAdded','api/integrations/freshsales/accounts/:id/clone','userSmsQueue:remove','SYSTEM:GEToutboundRoutes','EditOpenchannelAccountApp','gridster','Atlantic/Cape_Verde','api/integrations/salesforce/accounts/:id','rpc@getOpenchannelQueues','onSaveUserOpenchannelQueue','MxGraphOpenProjectController','messagesAlignment','$ne','OutboundRoute','route','km-KH','right','&?msTimelineLoadMore','sat','America/Winnipeg','lastMessage','embedOptions','enableDtmfTone','api/cm/custom_fields/:id','canSelect','addNewGeneral','WhatsappAccountWhatsappCannedAnswersController','INTEGRATIONS.NEW_','addNewAllCondition','SugarcrmAccountsController','openchannel','MohSound\x20properly\x20created','CreateOrEditVariableDialogController','hangup','addShortcut','newFreshsalesAccount','VoiceRealtimeController\x20as\x20vm','SYSTEM:GETtrigger','ngFlowOptions','CreateOrEditSalesforceAccountDialogController','\x27fr-FR\x27','Russell\x20(English,\x20Austrialian,\x20Male)','CreateOrEditVoiceRecordingDialogController','toInteger','#3470ca','plugin:remove','userFaxQueue:save','Pauses','teal','layoutMode','app.staff.userProfiles.edit','api.intFreshsalesConfiguration.update','api.squareRecording.update','AdvancedSearchController','onFailed\x20->\x20session,\x20data','exportSelectedTriggers','deselectWhatsappQueues','zendeskAccount','^msTimeline','api.intDeskConfiguration.delete','Swedish','outboundrouteApps','boolean','CreateOrEditHopperCampaignIdDialogController','Mizuki','gotoFaxQueues','Asia/Vladivostok','campaigntype','userProfiles','Report\x20deleted!','/whatsappQueues','The\x20whatsappCannedAnswer\x20will\x20be\x20deleted.','addNewVoiceQueue','app.voice.realtime.agents','Ruben','api/users/:id/agents','saveDraft','currentTab','downloadfile2','America/Tegucigalpa','requestFailed','content-type','Pacific/Guam','Dynamics365','allDispositions','deleteSelectedChanSpies','Are\x20you\x20sure\x20want\x20to\x20close\x20the\x20','Error','time','','hasChildren','motion2.realtime.abandoned.bull.abandonedCalls:','getFreshdeskAccounts','placeholder','screenRecording\x20properly\x20created','\x20properly\x20deleted!','setMinutes','Maori','added','/realtime','deleteSelectedDispositions','America/Merida','deleteSelectedVtigerAccounts','MailSubstatuses','ar-SA','resume','whatsappMessage','Contact\x20not\x20available','Variable\x20properly\x20deleted!','api/whatsapp/queues/:id','The\x20item\x20will\x20be\x20deleted.','api.tag.update','app.tools.customDashboards.edit','gotoFirstStep','MAIL.EDIT_MAILSUBSTATUS','selectedGlobalCustomFields','hasSpeakers','analyticCustomReport@get','DASHBOARDS.NOTAVAILABLE','voiceDialReportColumns','GET','Dialer\x20Hopper\x20Final','notification','Admin','createOrEditWhatsappQueue','queueCampaignHopperBlacks','src/js/modules/main/apps/dashboards/views/general/agent/home/voice/details/dialog.html/dialog.html','src/js/modules/main/apps/tools/views/pauses/create/dialog.html/dialog.html','api/analytics/field_reports/create_many','api/integrations/dynamics365/configurations/:id/subjects','Arabic\x20(Algeria)','Chinese\x20Female','CreateOrEditVtigerAccountItemDialogController','app.dashboards.general','api.analyticReport.update','Account','07:00-22:00,*,*,*','GET_TEMPLATE','ChatCannedAnswer\x20deleted!','conversationUpdate','=>%3B=','api/voiceQueuesLog/describe','deleteSalesforceAccount','getMailAccountApps','OdbcsController\x20as\x20vm','externalDial','saveInboundRouteApp','searchText','editDraft','\x20-\x20','api/analytics/custom_reports/:id','MARKETPLACE.NEW_PLUGIN','Delete\x20DeskAccount','api/voice/extensions/describe','contrast4','addTab','nodeType','delete\x20smsCannedAnswers','nl-NL','initializeRealtimeCampaign','saveCannedAnswer','apps.sms','src/js/modules/main/apps/integrations/views/zohoAccounts/edit/view.html/view.html','api/whatsapp/accounts/:id/send','isOpen','onListSelection','APP.YES','setOrientation','selectedProjects','The\x20file\x20is\x20too\x20big.\x20The\x20max\x20allowed\x20size\x20is\x20','condition','rpc@getOutbound','US\x20English\x20Female','src/js/modules/main/apps/contactmanager/views/globalCustomFields/globalCustomFields.html/globalCustomFields.html','closeTab','Punjabi','createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','-11:00','Turkmen','apps.integrations.servicenowAccounts','chchinesemale','arrayextensionMonitor','Dynamics365AccountsController\x20as\x20vm','deleteSelectedContacts','whatsapp-interaction','NOT\x20LIKE','CreateOrEditUserDialogController','mdPickers','GlobalCustomField','saved','toLowerCase','msScrollOptions','api/voice/queues/:id/members','api/attachments/:id/download','selectAllOpenchannelQueues','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27strict\x27','\x27basic\x27','Cambodian','addNewTemplate','TOOLBAR.USER_FORCE_LOGOUT','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20trunks?','OpenchannelQueueagentaddController','getVtigerAccounts','SUM\x20(','The\x20squareRecording\x20will\x20be\x20deleted.','app.tools.tags','api/teams/describe','Linux','Inbound','TemplatesController','VOICE.VOICEPREFIXES','resetPassword','Error500Controller','dynamics365Accounts','availableOperators','toolbar','The\x20voiceQueue\x20will\x20be\x20deleted.','pick','input','DASHBOARDS.TUE','addNewUser','getFormats','US\x20English\x20Male','deletedAt','ShowQuestionsSessionDialogController','api/analytics/default_reports/:id/clone','Mobile','src/js/modules/main/apps/fax/views/realtime/trunks/view.html/view.html','English\x20(United\x20Kingdom)','/tools','Successful\x20call','chatOfflineMessage','address','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20reports?','onSaveOpenchannelQueue','advancedSearch','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','Maltese','DASHBOARDS.THIS_WEEK','onFieldSelection','apps.voice.musiconholds','integrations/servicenow/configurations/:id/descriptions','Serbian','undefined','name','onWithoutApply','STAFF.ALL_QUEUES_','gotoFreshsalesAccounts','api/cm/companies/describe','fax.faxAccounts','DashboardCustomController\x20as\x20vm','deleteSelectedVoiceQueues','TemplatesController\x20as\x20vm','report','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20telephones?','deleteTelephone','Unable\x20to\x20retrieve\x20voice\x20channels','collapsable','Gwineth\x20(Welsh,\x20Female)','delete\x20deskAccount','delete\x20telephone','app.chat.chatQueues.edit','selectedInboundRouteApps','America/Moncton','arrayactionType','searchInProgress','src/js/modules/main/apps/marketplace/views/plugins/edit/view.html/view.html','selectedSugarcrmAccounts','sessionTarget','api/voice/recordings/:id/downloads','app.analytics.metrics','Telephones','faxQueue@get','icon-deskphone','deselectOutboundRoutes','ANALYTICS.NEW_REPORT','Module\x20updated!','delete\x20ExtractedReports','isValidRange','delete\x20hopperHistory','countBy','\x27pt\x27','api/integrations/freshdesk/configurations/:id/tags','ANSWERED','TOOLS.NOTIFICATIONS.CONDITION_DELETED_SUCCESS_TITLE','app.errors.error-404','Task','mailQueue','cardTemplateLoaded','deselectChanSpies','selectAllDynamics365Accounts','CHAT.NEW_CHATCANNEDANSWER','pauseType','ProjectViewerController','api.chatProactiveAction.delete','api.voiceMusicOnHold.delete','VoiceQueue\x20properly\x20deleted!','createOrEditWhatsappAccount','Europe/Amsterdam','src/js/modules/main/apps/callysquare/views/projects/create/dialog.html/dialog.html','src/js/modules/main/apps/voice/views/chanSpies/chanSpies.html/chanSpies.html','unionBy','UserTeam','The\x20pause\x20will\x20be\x20deleted.','cancelInterval','Report\x20properly\x20deleted!','app.jscripty.projects.edit','removeApiKey','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20freshdeskConfiguration?','gotoFreshdeskAccounts','apps.settings.generals','Pause\x20properly\x20saved!','apps.tools.cannedAnswers','Read_permission','CompaniesController','Norwegian\x20(Norway)','showTooltip','Delete\x20CannedAnswer','AEC','+01:00','createdAt,updatedAt,id,starttime,endtime,membername,calleridnum,completed','selectedODBC','icon-text-to-speech','getFaxQueuesWaitingInteractions','rpc@getChatQueues','JSCRIPTY.DO_YOU_WANT_TO_RESET_SESSION','SmsCannedAnswer\x20properly\x20saved!','deleteCloudProvider','flipWidget','addAllCondition','createOrEditReport','Accounts','app.voice.voiceRecordings.edit','SYSTEM:DELETEcloudProvider','editFaxAccountApp','-04:00','The\x20mailAccount\x20will\x20be\x20deleted.','unknown-browser','$interval','line','exportSelectedOutboundRoutes','Delete\x20InternalRoute','deleteSelectedZohoAccounts','timeout','api/chat/queues/:id/clone','application','deleteSelectedWhatsappAccountInteractions','/templates','es-PY','Delete\x20User','VOICE.INTERNAL','getVoiceChannels','DeskAccount\x20properly\x20deleted!','onResultClick','uniqBy','api/integrations/zendesk/accounts/:id/configurations','TagInteractionDialogController','MAIL.NEW_MAILACCOUNT','Contact\x20updated!','vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27','hostname','getVoiceQueues','dispositionsValues','src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/item/dialog.html/dialog.html','Telugu\x20(India)','getQuestionWithResponseList','trim','api.analyticReport.save','The\x20dynamics365Account\x20will\x20be\x20deleted.','rpc@getFaxAccounts','mailSubtatuses','arrayminrate','SmsInteractionId','icon-console','accountProperty','addNewPlugin','welcomemessage','staff','Plugin\x20not\x20deleted!','Delete\x20UserProfile','JSCRIPTY.ALL_SURVEY_DATA_WILL_BE_LOST','ChatProactiveAction\x20deleted!','SYSTEM:GETsetting','msDatepickerFixConfig','en-NG','VOICE.ALL','EditChatWebsiteAppautoreplyDialogController','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/autoreply/dialog.html/dialog.html','disposition','api/fax/accounts/describe','api.openchannelAccount.update','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27inuse\x27','preferredLanguage','Norwegian\x20(Nynorsk)','chat','from','api.setting.delete','Delete\x20VoiceRecording','Delete\x20DashboardItem','AgentsMotionDialerRealtimeController','warning','src/js/modules/main/apps/fax/views/faxAccounts/faxAccounts.html/faxAccounts.html','TagId','/api/chat/websites/:id/system_avatar','monthFrom','Attached\x20pm2\x20process\x20successfully\x20restarted','getWhatsappAccounts','previousStepInvalid','app.motiondialer.realtime.agents','Joey','ZendeskAccount\x20properly\x20saved!','api/whatsapp/interactions/:id','api/templates/describe','Node\x20has\x20been\x20updated!','api/integrations/desk/accounts/:id/configurations','Arabic\x20(Saudi\x20Arabia)','SYSTEM:DELETEsound','\x27pt-PT\x27','api/whatsapp/queues/:id/members','OpenchannelQueues','api/square/projects/:id/users','*pause','onRemoveUserMailQueue','stepTitleTranslate','msNav::forceCollapse','timer','app.voice.voicemails.edit','SYSTEM:GET_REPORTS','The\x20customDashboard\x20will\x20be\x20deleted.','COUNT\x20(DISTINCT\x20','app.whatsapp','America/Grand_Turk','removeAttachment','saveSalesforceAccount','Auth','/license','Odbc','api.schedule.update','render','CreateOrEditSquareRecordingDialogController','onSaveUserMailQueue','\x27sms_queues\x27','Delete\x20Smtp','src/js/modules/main/apps/voice/views/musiconholds/create/dialog.html/dialog.html','DeskAccountsController\x20as\x20vm','api/sms/accounts/:id/clone','granted','XCALLY-MOTION-PROGRESS=0','whatsappQueue:update','Delete\x20ChatQueue','Chinese\x20(Traditional)','read1stAt','MOTIONDIALER.SELECT_CAMPAIGN','exportSelectedIntervals','Antarctica/Macquarie','The\x20odbc\x20will\x20be\x20deleted.','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/queue/dialog.html/dialog.html','\x27SIP/{{multipleUsers.name}}\x27','sr-ME','hiddenBCC','America/Maceio','getCustomFields','altDate','endValue','$gt','Project\x20properly\x20cloned','smsInteractionTags:save','app.toolbar','Bosnian','sms_queue_waiting_interaction:remove','INTEGRATIONS.EDIT_FRESHSALESACCOUNT','VoicemailsController\x20as\x20vm','filename','Uzbek','voiceExtension:update','api.analyticMetric.save','deselectMailSubstatuses','APP.AGENTS','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20userProfiles?','add','showResetButton','api/integrations/servicenow/configurations/:id','dashboard:remove','MailQueueId','onVoiceExtensionUpdate','api/whatsapp/accounts/:id/applications','intZendeskAccount','Pacific/Noumea','mailMessage','SmsAccountagentaddController','YYYY-MM-DD','newsAlertHide','isStepCurrent','Call\x20properly\x20handled!','chrome','Delete\x20General','Configuration','deleteSelectedMailAccountMailCannedAnswers','EditFaxAccountAppintervalDialogController','getScreenRecordings','app.openchannel.openchannelQueues','America/Indiana/Knox','queueCampaign','\x27report_dial\x27','USERPROFILE:GET_SECTION','CONTACTMANAGER.NEW_HOPPER','$parent','newSound','$templateFactory','api.campaign.save','EditMailAccountAppintervalDialogController','app.voice.realtime.queues','registerMainForm','onSearchBarCollapse','getZendeskAccounts','MALE','CDR','OPENCHANNEL.EDIT_','Compose','Pacific/Fakaofo','orderBy','CONTACTMANAGER.COPY_CONTACT','smsQueue:update','deletePause','id,name,role','api.intDynamics365Configuration.delete','\x27en-IN\x27','\x27twilio\x27','uploadPlugin','calleridnum','queryMessage','selectAllIvrCampaigns','year','apiKey','host','utcOffset','deleteWhatsappAccountInteraction','\x27SI\x27','icon-table-edit','SYSTEM:DELETEvoiceExtension','Delete\x20action','app.errors.error-500','Options','-06:00','English\x20(New\x20Zealand)','arrayinsecure','DASHBOARDS.WED','700','MsFormWizardController\x20as\x20msWizard','msMasonryItem:finishReLayout','registerForm','selectedUsers','lastMessageAt','api.intDynamics365Configuration.update','src/js/modules/main/apps/whatsapp/views/realtime/agents/view.html/view.html','msNav::expandMatchingToggles','chatQueuesTotal','runconfirm','src/js/modules/main/apps/staff/views/userProfiles/create/dialog.html/dialog.html','startMonitor','America/Tijuana','selectedZendeskAccounts','CustomDashboards','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20deskAccounts?','Tamil\x20(Malaysia)','api/campaigns/:id/hopper_finals','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20chatCannedAnswer?','CreateOrEditCloudProviderDialogController','Albanian','propertiesList','icon-tablet','highlight','copy','SYSTEM:DELETEtrunk','src/js/modules/main/apps/mail/views/mailAccounts/edit/view.html/view.html','width','app.voice.inboundroutes','Vitoria\x20(Portuguese,\x20Brazilian,\x20Female)','VOICE.NEW_OUTBOUNDROUTE','Ring','\x27cm_contacts\x27','associatedReports','api/analytics/custom_reports/:id/preview','America/Bahia','api.user.delete','ar-XA','api.cloudProvider.save','MohSound\x20deleted!','api.cmCompany.save','ProjectBuilderController','getResources','newTrunk','minimize','size','api/users/:id/scheduled_calls','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20customFields?','Polish\x20(Poland)','Pacific/Tongatapu','src/js/modules/core/layouts/content-with-toolbar.html/content-with-toolbar.html','deleteInboundRouteApp','AgentsOpenchannelRealtimeController','AgentteamaddController','total','TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_MESSAGE','Interlingua','EditOpenchannelAccountAppintervalDialogController','CustomDashboardsController\x20as\x20vm','deselectSmsQueues','variable','vm.customField.type','English\x20(Kenya)','blue-300-fg\x20icon-phone-paused','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/interval/dialog.html/dialog.html','The\x20vtigerAccount\x20will\x20be\x20deleted.','delete\x20descriptions','dialogFlowLanguage','VOICE.REALTIME','app.openchannel','autoClose','rpcVoiceQueuesChannelsTmp','Dora\x20(Icelandic,\x20Female)','api.faxAccount.update','intFreshdeskField','field,alias','STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_MESSAGE','deleteChatWebsiteInteraction','getAssignedCompanies','allCondition','initDevice','labels','EditInboundAppintervalDialogController','addNewDashboardItem','#chat-group-dialog','/freshsalesAccounts','urlParse','tr-TR','createOrEditSugarcrmAccount','pt-BR','predictiveIntervalDroppedCallsTimeout','NavigationController','Interaction:save','createOrEditSalesforceConfiguration','src/js/modules/main/apps/staff/views/users/edit/changepassword/changepassword.html/changepassword.html','app/main','apps.plugins','QueuesOpenchannelRealtimeController','api/fax/reports/transfer/:id/clone','\x27custom\x27','createOrEditSugarcrmConfiguration','offset','api.setting.update','count','src/js/modules/main/apps/mail/views/mailAccounts/edit/mailCannedAnswers/dialog.html/dialog.html','gotoIntervals','=ngModel','elapsed','/api/originate/','element','rgb(','selectAllSquareRecordings','api/openchannel/accounts/:id/clone','UserWhatsappAccount','recallme','grammar','UserMailQueue','gotoTrunks','Mads\x20(Danish,\x20Male)','America/Yellowknife','app.integrations.sugarcrmAccounts','app/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html','FaxAccount\x20properly\x20created','api/fax/interactions/:id','api/whatsapp/accounts/describe','smsQueues','OpenchannelAccounts','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.','rpcWhatsappQueuesWaitingInteractions','sourceid','createOrEditSquareRecording','src/js/modules/main/apps/analytics/views/reports/reports.html/reports.html','ScreenRecordingsController\x20as\x20vm','customFieldForm','List\x20properly\x20created!','src/js/modules/toolbar/preview/dialog.html/dialog.html','api.jscripty.account','RescheduleCallDialogController','api/sms/messages/:id/status','treeReports','api/mail/accounts/:id/canned_answers','CONTACTMANAGER.ERRORS.PHONEBAR_API','cmContact@getHopperFinals','STAFF.USERPROFILES','api.item.save','-08:00','CustomizationlogologinController','getContact','api.chatWebsite.delete','api/integrations/freshsales/fields/:id/clone','api.inteactionMessage.get','\x27zoho.eu\x27','apps.whatsapp.whatsappAccounts','MxGraphUpdateInfoController','$logProvider','extraData','EditInternalApphangupDialogController','src/js/modules/core/directives/ms-widget-engine/ms-widget-engine.html/ms-widget-engine.html','mailInteractions','stop','hasClass','api/cloudProviders/describe','America/Cayman','European\x20Turkish\x20Female','twchinesefemale','\x27mail_queues\x27','ChatRealtimeController','selectedOpenchannelQueues','limitObjectFromTo','shutdown','ngAnimate','saveInterval','onActionSelection','app.tools.schedules','EditWhatsappAccountAppnoopDialogController','respectItemOrder','id,name,type','Excel','delete\x20Group','foreignTableFields','api/sounds/:id/download','OwnerId','gray','xlsx','CONTACTMANAGER.NEW_GLOBALCUSTOMFIELD','getVoiceQueuesPreview','deleteVoiceQueuesChannels','api/integrations/zendesk/accounts/:id','Breton','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20openchannelCannedAnswer?','googleTtsLanguage','times','b:\x20Only\x20spy\x20on\x20channels\x20involved\x20in\x20a\x20bridged\x20call.','America/Los_Angeles','Fully\x20Enabled','HANGUPCAUSE_22','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27no\x27','\x2716\x27','QueuesFaxRealtimeController','Arabic','initialValue','newInternalRoute','src/js/modules/main/apps/sms/views/realtime/queues/view.html/view.html','List\x20name','id,interval,IntervalId','addNewInterval','Metric','API:GET_COMPANY_SECTION','/"(.*)"\x5cs<(.*?)>$/','Europe/Bucharest','Description','utc','virtual','GET_VARIABLE','\x27hours\x27','openchannelCannedAnswer\x20#','faxQueuesTotal','header','dualMultiselectOptions','newInterval','Delete\x20Pause','windowHeight','src/js/modules/core/directives/ms-timezone/ms-timezone.html/ms-timezone.html','America/Lima','motion-client','comedia','onRemove','/assets/images/theme-options/vertical-nav.jpg','MsSearchBarController','#c5c6cb','api/fax/reports/queue/:id','America/Cancun','VtigerAccountController','icon-sitemap','session\x20#','api.pause.delete','Turkish\x20(Turkey)','found','voiceMail','msEmojiArea','addNewReport','selectedMailQueues','millis','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20queueCampaigns?','newFreshsalesConfiguration','api.mailQueue.update','dropping','EditSmsAccountApp','selectedOpenchannelAccountInteractions','FaxInteractionId','Authorization','updating','ap-northeast-2','saveZendeskAccount','onPause','SYSTEM:GETchatAccounts','zu-ZA','tTxX','voiceQueue:update','FaxAccountId','chatOfflineMessage@get','onRemoveSmsQueue','date','COUNT\x20DISTINCT','deleteSelectedCustomDashboards','TOOLS.EDIT_TAG','CreateOrEditFreshsalesAccountItemDialogController','\x27zh-CN\x27','capacity','apps.home','api.voicePrefix.delete','attrSerie','mdColorPicker','voice_queue_channel:remove','Dial','apps.tools.dispositions','hue-2','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotoif/dialog.html/dialog.html','ar-QA','optionalStep','anySecondLevelDisposition','createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','exportSelectedTeams','Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20contact?','\x27admin\x27','app.mail.realtime.queues','FaxRealtimeController','src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/item/dialog.html/dialog.html','/:id','integrations','SYSTEM:GETopenchannelAccounts','addNewVtigerAccount','Agent\x20password\x20properly\x20updated!','getOutboundRoutes','api.intDynamics365Account.save','api.variable.save','pickerModels','$gte','installplugin','api/users/describe','VoiceRecording\x20properly\x20created','createOrEditMailAccountMailCannedAnswer','^msNavigationNode','api.faxQueue.update','UNKNOWN','SYSTEM:GET_INTERVAL','Arabic\x20(Bahrain)','api/teams/:id/clone','showInfo','DASHBOARDS.CLOSED','$locationProvider','canGoInConference','placeholders','Lists','icon-crosshairs','addNewOpenchannelQueue','addons','Bearer\x20','api.fax.account','TOOLS.DISPOSITIONS','api/networks/describe','globalLists','ui-sref','+10:30','talking','Chantal','.ms-nav-button','user_has_chat_interactions:save','getNotifications','saveShortcuts','app.mail.mailQueues.edit','FORGOTPASSWORD.LINNK_SENT_MESSAGE','Schedule\x20properly\x20deleted!','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/configurations/dialog.html/dialog.html','deleteFreshdeskAccount','mandatoryDisposition','/voice','SETTINGS.UPDATES','src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/agentadd/agentadd.html/agentadd.html','api/campaigns/:id/blacklists','endDate','forwardTemplate','api/plugins/:id','VERSION\x20','app.staff.users.edit','ListsController','apps.staff.userProfiles','src/js/modules/main/apps/tools/views/schedules/schedules.html/schedules.html','referAttended','Voicemail\x20properly\x20saved!','fax','shift','FaxQueue\x20properly\x20deleted!','api.whatsappQueue.delete','chanSpy','connection','api/fax/messages/:id/clone','Japanese\x20Male','PDF','monthDayTo','downloadTranscribe','Europe/Chisinau','api.plugin.update','voiceMails','CreateOrEditZohoConfigurationDialogController','EditInternalAppagiDialogController','tagName','ended','eurfrenchmale','SYSTEM:DELETEtrigger','ngBindHtmlUnsafe','ComposeSmsInteractionDialogController','SYSTEM:GETvoiceMail','selectedChatQueues','\x20has\x20been\x20','id,body','Whatsapp','metric','0.12','app.dashboards.general.sms','America/Guayaquil','api.pause.save','arraysetqueuevar','Android','QueueCallsMotionDialerRealtimeController\x20as\x20vm','GeneralsController','rpc@getFaxQueues','countbusyretry','ZendeskConfiguration\x20properly\x20saved!','api/settings/:id/favicon','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20zohoAccounts?','bottom-right','angucomplete-alt:clearInput','apps','current','snakecase','FaxQueues','Error404Controller','loading...','api/integrations/freshdesk/configurations/describe','Content\x20Only','FreshsalesAccount\x20properly\x20deleted!','onConnect','ms-color-picker-button','whatsappInteraction','-=400','custom','*|\x0a','api.intItem.update','INTEGRATIONS.NEW_SUGARCRMACCOUNT','removeBlackLists','src/js/modules/main/apps/whatsapp/views/whatsappQueues/create/dialog.html/dialog.html','ms-navigation-horizontal-mobile-menu-active','api/openchannel/reports/queue/:id/clone','usenglishmale','Fax','socket','CONTACTMANAGER.CONTACTMANAGER','FreshsalesAccounts','multipleUsers','currentSidebarTab','mailMessage:save','fontFamily','onload','Pacific/Galapagos','DialogController','src/js/modules/main/apps/staff/views/agents/edit/teamadd/teamadd.html/teamadd.html','ExecIf','app.voice.inboundroutes.edit','apps.staff.telephones','ta-SG','lime-A700','smsAccountSmsCannedAnswers','faxStatusTime','private_key','rpcSmsQueuesWaitingInteractions','The\x20component\x20will\x20be\x20deleted.','createOrEditSmsAccountSmsCannedAnswer','\x27uk\x27','delete\x20fields','loadMore','send','delete\x20Contacts','app.help.about','src/js/modules/main/apps/voice/views/outboundroutes/outboundroutes.html/outboundroutes.html','resolve','newNetwork','background','TOOLBAR.DUTCH','src/js/modules/errors/500/error-500.html/error-500.html','OpenchannelQueue\x20properly\x20deleted!','src/js/modules/main/apps/voice/views/realtime/abandonedcalls/view.html/view.html','You\x20can\x27t\x20remove\x20an\x20outbound\x20route\x20associated\x20to\x20an\x20out\x20prefix','\x22\x20does\x20not\x20exist!\x20Falling\x20back\x20to\x20the\x20\x22default\x22\x20theme.','TOOLBAR.PERSIAN','saveFaxAccountApp','PALETTES','internaldial','EditInternalAppsetDialogController','gt-md','toJSON','queue.name','createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,description,receiveUri,notificationSound,notificationShake,notificationTemplate','deleteIvrCampaignHopperFinal','\x27{{voiceMail.mailbox}}@from-voicemail\x27','General\x20updated!','Arguments','The\x20field\x20will\x20be\x20deleted.','api/sms/accounts/:id/status','/networks','APP.WRONG_EXTENSION','Delete\x20AllCondition','Emojis','beepall','Latvian','Triggers','createOrEditIvrCampaignHopper','uisref','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/noop/dialog.html/dialog.html','motionGenerator','deselectGlobalCustomFields','Moldavian','Nepali','FreshsalesAccount\x20properly\x20created','api.mailAccount.delete','SmsAccountsController\x20as\x20vm','deleteSelectedIvrCampaignHopperBlacks','selectAllProjects','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20dynamics365Accounts?','composeOpenchannelInteraction','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsQueues?','set','src/js/modules/core/layouts/horizontal-navigation.html/horizontal-navigation.html','text','saveContext','exportSelectedTriggerAnyConditions','createOrEditContact','APP.RECALLME','New\x20Report\x20Field','api/integrations/freshdesk/configurations/:id','EditChatWebsiteAppnoopDialogController','saveZohoConfiguration','/voiceQueues','Afrikaans','SYSTEM:DELETEtag','ondevicechange','autocomplete','api.user.removeApiKey','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelCannedAnswers?','msNavFoldService','${EXTEN:','api.intZohoConfiguration.save','createOrEditInterval','CreateOrEditSmsQueueDialogController','api/square/odbc/:id/test','ChatWebsiteofflineFormController','src/js/modules/main/apps/analytics/views/reports/edit/field/dialog.html/dialog.html','nextStep','Yoruba','chat-interaction','ms-target','openchannelTransferReport','EXPORT','Malayalam\x20(India)','getVoiceQueuesChannels','America/Indiana/Winamac','\x20attached\x20process\x20will\x20be\x20stoppped.','Sounds','msApi.resolve\x20requires\x20correct\x20action\x20parameter\x20(resourceName@methodName)','api.voiceChanSpy.delete','dashboardSections','app.openchannel.realtime','$stateChangeSuccess','Transfer\x20','onReply','run','api/integrations/dynamics365/fields/describe','/contactmanager','rpc','api/integrations/zoho/configurations/:id/subjects','motion2.realtime.abandoned.voice.abandonedCalls:','Lists\x20association\x20has\x20been\x20updated!','MsNavController','gotoSugarcrmAccounts','AgentHomeDashboardMultiChannelOpenchannelController','eurturkishmale','Interaction:update','hideStep','removeSound','VOICE.OUTBOUND','\x27predictive\x27','csv','SalesforceAccount\x20properly\x20created','src/js/modules/main/apps/voice/views/realtime/outbound_calls/view.html/view.html','api/mail/interactions/:id/messages','QueueCallsVoiceRealtimeController\x20as\x20vm','QueueCampaignsController','api/rpc/telephones','selectedDynamics365Accounts','Node\x20Updated','smsInteraction:save','intZohoConfiguration','exportSelectedProjects','EditChatWebsiteAppintervalDialogController','selectedSection','IS_LESS_THAN_OR_EQUAL_TO','Asia/Urumqi','treeConfig','phoneBarPrefixRequired','ms-navigation-folded\x20ms-navigation-folded-open','delete\x20freshdeskConfiguration','$log','schedules','src/js/modules/main/apps/motiondialer/views/realtime/queue_params/view.html/view.html','tab-container','Carmen','ui.router','chanSpies','accountConnected','apps.home.mail','Files','api/sounds/:id','api/intervals/:id/sub_intervals','Please\x20retry\x20with\x20a\x20new\x20file','Are\x20you\x20sure?','deleteSugarcrmConfiguration','containerPos','Are\x20you\x20sure\x20want\x20to\x20run\x20the\x20schedule?','selectedQueueCampaignHopperBlacks','newChatQueue','onInit','Email\x20Report\x20Queue','Resource\x20part\x20\x22','saveDeskConfiguration','app.integrations','api.chatWebsite.save','setPermission','msFontFamily','variablesById','src/js/modules/main/apps/dashboards/views/custom/custom.html/custom.html','ar-LB','webcall','gotoDeskAccounts','FaxQueuesController','createMediaStreamSource','#21467e','CreateOrEditMailAccountDialogController','Portuguese\x20(Nrazilian)','pound','intSalesforceField','ProjectId','clearDispositionSelection','/api/settings/1/favicon','active','onlineForm','msNavIsFolded','EditSmsAccountAppqueueDialogController','isValid','deleteSelectedChatQueues','Upload\x20completed','ASC','app.analytics.reports','src/js/modules/main/apps/settings/views/cloudProviders/cloudProviders.html/cloudProviders.html','Least\x20Recent','cross_join','src/js/modules/main/apps/callysquare/views/odbcs/odbcs.html/odbcs.html','firstDayMonth','CreateOrEditReportFieldDialogController','ServicenowConfiguration\x20properly\x20created','Delete\x20MusicOnHold','getMusicOnHolds','ringingId','de-DE','addNewQueueCampaign','IntervalId','api.squareProject.update','motionTheming','gotoAgents','deselectTelephones','app.analytics.extractedReports','SystemController\x20as\x20vm','delete\x20openchannelCannedAnswers','CreateOrEditAgentDialogController','app.openchannel.realtime.agents','Sms','STAFF.NOTIFICATIONS.PERMISSIONS_SAVED_SUCCESS_TITLE','vm.queryHistory.filter','Agent\x20properly\x20saved!','+07:00','Raveena','msApi::resolveSuccess','api/openchannel/reports/transfer/:id/clone','red','fil-PH','countDown','apps.dashboards.custom_','white','Template\x20properly\x20deleted!','saveItem','\x27switch\x27','exportSelectedSalesforceAccounts','Vertical\x20Navigation','errors','Chinese,\x20Mandarin\x20(Simplified,\x20Hong\x20Kong)','Europe/Gibraltar','Jscripty\x20Answers','deleteSelectedVoicemails','trunk_name','api/users/:id/logout','ScreenRecordings','ruri','app.marketplace.plugins.edit','app.errors','No\x20\x27%s\x27\x20process\x20found','arraytransport','pieChart','createOrEditSmsAccount','#1e2129','createOrEditVoicemail','collapse','init','Contact\x20properly\x20saved!','MOTIONDIALER.ALL_LISTS','api/settings/:id/logo','g729','loadNextPage','PERMISSIONS','autoAnswerDelay','getTriggerActions','api/version/fetch','newZohoAccount','FaxQueueId','MusicOnHoldController\x20as\x20vm','selected','eurdanishfemale','SugarcrmAccountsController\x20as\x20vm','#2e62b1','deleteSelectedTelephones','OPENCHANNEL.OPENCHANNELACCOUNTS','arrayecm','QUICKPANEL.WARNING','every','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20faxQueues?','chatProactiveAction\x20#','getAttachment','deleteMusicOnHold','RunReportDialogController','webbar:originate','Hopper\x20deleted!','voice_outbound:save','deleteSelectedOutboundRoutes','Tag\x20properly\x20created','getDaysOfWeek','initializeRealtimeQueue','TOOLS.NOTIFICATIONS.TRIGGER_CREATED_SUCCESS_TITLE','web-report','getHeader','\x27ringing\x27','identity','selectContact','CSquare\x20Report','Error\x20updating\x20locally\x20stored\x20tabs','Yes','Europe/Riga','WHATSAPP.NEW_WHATSAPPCANNEDANSWER','attachments','rpcVoiceQueues','not_inuse','AgentHomeWhatsappController','api/chat/internal/messages/:id/clone','Arabic\x20(Israel)','display','api/teams/:id/users','saveQueues','file','arrayImap.service','msNavigation','TOOLBAR.POLISH','interval','app.dashboards.general.fax','SugarcrmAccounts','deselectZohoAccounts','CreateOrEditHopperVoiceQueueIdDialogController','mozHidden','License','InternalRoute\x20updated!','/generals','chatAccounts','The\x20zohoAccount\x20will\x20be\x20deleted.','api.rpc.notify','TOTAL','MAIL.MAIL','md-amber-200-bg','api/canned_answers/:id/clone','FreshdeskAccountConfigurationsController','\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!','Antarctica/Troll','ANALYTICS.RENAME','TelephoneController','selectAllAiTools','Slovenian\x20(Slovenia)','selectedcrudPermissions','trunk','actions','api.intDynamics365Account.update','ChatWebsite\x20properly\x20deleted!','AgentReject','ms-search-bar-expanded','AgentDashboardGeneralController\x20as\x20vm','ExtractedReport\x20properly\x20created','ivrCampaignHopperFinals','\x27report_queue\x27','delete\x20Intervals','secondLevelDisposition','createdAt,updatedAt,id,appdata,type,exten,context,description','api/integrations/salesforce/accounts/describe','chatCapacity','Boxed','finish','Agreement','SYSTEM:GETqueues','$mdMenu','controlsList','saveUser','previousStep','Europe/London','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/internaldial/dialog.html/dialog.html','musiconholdMohSounds','api/cm/hopper_black/:id','xxxxxxxx','QUICKPANEL.MESSENGER_DISABLED','communications','Variables','getProjects','selectAllScheduler','accent','Variable','src/js/modules/main/apps/callysquare/views/projects/edit/edit/edit.html/edit.html','api/mail/messages/:id/download','onRemoveOpenchannelQueue','deleteChatWebsiteChatCannedAnswer','selectedPauses','timezone','deleteCannedAnswer','userOpenchannelQueue:remove','addQueues','passwordPattern','rpcTelephones','-interaction','SYSTEM:GETCONFIGURATION','$translateProvider','chatStatusTime','agentname','amber-A200-bg','/dashboards','Japanese\x20(Japan)','.zip','showLastMessage','SquareRecording\x20properly\x20created','api.faxAccount.delete','crudPermissions','src/js/modules/main/apps/chat/views/chatQueues/create/dialog.html/dialog.html','patchConference','apps.voice.contexts','cmHopperBlack','cmList@get','api/rpc/openchannel/queues/waitinginteractions','exportSelectedCannedAnswers','intFreshsalesAccount@get','Pacific/Kosrae','CreateOrEditTrunkDialogController','getBoundingClientRect','motion.token','createOrEditMailSubstatus','FaxAccountController\x20as\x20vm','America/Edmonton','krkoreanfemale','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotop/dialog.html/dialog.html','||MailAccountId:=$eq[','exportSelectedTrunks','TOOLS.NEW_CANNEDANSWER','Asia/Almaty','Datetime','app.motiondialer.realtime.abandonedcalls','$startsWith','deleteSelectedSounds','api/mail/accounts/:id/out_servers','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20customDashboards?','TOOLBAR.ARABIC','TOOLS.NOTIFICATIONS.TRIGGER_SAVED_SUCCESS_TITLE','AgentHomeDashboardMultiChannelWhatsappController','app.voice.voiceRecordings','America/Scoresbysund','SETTINGS.LICENSE','Tag\x20name','newSmsAccount','Times\x20New\x20Roman,Times,serif','SmsAccounts','Canadian\x20French\x20Female','api/sms/queues/:id/clone','src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/item/dialog.html/dialog.html','Star','api.intSugarcrmAccount.update','appsecret','Dynamics365Configuration\x20properly\x20deleted!','_new','EditSmsAccountAppgotopDialogController','apps.chat.chatWebsites','onComplete','OpenchannelQueuesController\x20as\x20vm','Africa/Algiers','api/integrations/sugarcrm/configurations/:id/subjects','America/Santo_Domingo','log','exportcsvcontactsexport','src/js/modules/main/apps/motiondialer/views/queueCampaigns/queueCampaigns.html/queueCampaigns.html','Outbound','license@get','api/userProfiles/:id/clone','integrationTab','\x27report_call\x27','blur','SYSTEM:GETinterval','loadedSection','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20networks?','fax-interaction','isObject','Asia/Ulaanbaatar','selectAllFaxQueues','APP.SELECTED_TEAMS','newVoicemail','Dialer\x20Hopper\x20Processing','assignIn','chatWebsiteInteractions','QueueCampaignHopperFinalsController','mwFormViewer','SETTINGS.NETWORKS','Basque\x20(Spain)','draftManager','ChatQueue\x20properly\x20saved!','outboundDropRate','selectedInboundRoutes','openchannelQueuesTotal','Malayalam','getSmsAccountApps','recording','pt-br','Error\x20retrieving\x20user\x20profile\x20permissions','saveWhatsappAccount','setSelectedDate','newServicenowConfiguration','\x27g729\x27','onBefore','Transfer','webbar:unhold','arrayvideosupport','mailbox','CreateOrEditChatCannedAnswerDialogController','MailSubstatus\x20properly\x20deleted!','isHidden','OpenchannelAccountController','match','motion2.','src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/view.html/view.html','','localStorage','app.settings','whatsappInteraction:update','api/integrations/freshdesk/configurations/:id/fields','startPredictive','The\x20openchannelAccount\x20will\x20be\x20deleted.','openchannelQueue@get','selectAllChatQueues','SmsAccountController','formData','api/analytics/default_reports/:id','ZendeskAccountsController\x20as\x20vm','deleteSelectedFaxAccounts','userMailQueue:remove','Password','arraybuffer','exportSelectedIvrCampaignHopperHistories','wait','exportSelectedFaxAccounts','Asia/Oral','msHorizontalStepper','stopped','INTEGRATIONS.EDIT_FRESHDESKACCOUNT','api/chat/queues/:id/teams','deleteGeneral','ignoreMouseEvents','fax_queue_waiting_interaction:save','SYSTEM:GET_SOUNDS','eu-west-3','.UNKNOWN','dragging','app.dashboards.general.mail','delete\x20queueCampaign','SYSTEM:GETintZendeskAccount','stringToNumber','app.dashboards.general.dialer','username','#3c4252','#7d818c','mail_queue:save','licenseKey','addContactTab','SYSTEM:GET_APIKEY','onSaveOpenchannelInteraction','SYSTEM:DELETEchatQueue','api/voice/mails/:id','SYSTEM:DELETEschedule','app.voice.realtime.trunks','replaceTrack','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailAccounts?','delete\x20hopperHistories','The\x20smsQueue\x20will\x20be\x20deleted.','arraysetinterfacevar','selectAllExtractedReports','SchedulesController\x20as\x20vm','queryHistory.filter','ticks','invoke','DASHBOARDS.OPENED','delete\x20proactive','src/js/modules/navigation/layouts/vertical-navigation/navigation.html/navigation.html','loose','Legend','app.whatsapp.whatsappQueues.edit','\x27cm_companies\x27','isPartialPause','vtigerAccount','api/screen/recordings/:id/clone','disposedAt','The\x20allCondition\x20will\x20be\x20deleted.','delete\x20ivrCampaign','Connection\x20succeded!','importContacts','automation','VtigerAccounts','api/cm/hopper_final/voice/queue/moveContacts/:id','EU\x20(Frankfurt)','network@get','hasIntegrationsPermissions','musiconholds','InternalRoute\x20properly\x20saved!','\x27hotmail\x27','The\x20servicenowConfiguration\x20will\x20be\x20deleted.','api/dispositions/:id/clone','MAIL.EDIT_','omit','api/triggers/describe','Indian/Christmas','TOOLBAR.SPANISH','apps.analytics.extractedReports','api/integrations/sugarcrm/fields/:id/clone','odbc','api/openchannel/messages/:id/clone','startOf','smsInteraction@get','Decode\x20File\x20Error','app.whatsapp.realtime.agents','createdAt,updatedAt,ContactId,phone','keys','saveVoicemail','agentAdd','createOrEditOpenchannelAccount','msApi::requestStart','/faxAccounts','arrayautopause','cannedAnswers','AgentGeneralIframeController','Marathi','Enrique','fri','delete\x20chatWebsite','/:id?tab','api.smsQueue.update','SquareRecordingsController\x20as\x20vm','api/settings/describe','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/autoreply/dialog.html/dialog.html','saveMohSound','/api/chat/websites/:id/logo','api/userProfile/sections/:id','sumHoldTime','api/fax/reports/queue/:id/clone','app/main/apps/fax','newchanSpy','UserChatWebsite','/api/chat/websites/:id/customer_avatar','selectedListCustomFields','deleteContext','selectedSmsAccountApps','Delete\x20Project','primaryPalette','toggleMsNavigationFolded','mailTransferReport','deleteSelectedAiTools','agentUrl','delete\x20FaxAccounts','MailAccount\x20properly\x20created','SmsQueueController','getFolded','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20cannedAnswers?','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20companies?','api.intVtigerAccount.update','Last','DisposeAbandonedCallDialogController','mailQueueReport','twitter','api.analyticReportField.delete','getItems','msMasonry:relayout','delete\x20userProfile','joins','forgotPassword','/trunks','WhatsappQueue\x20properly\x20created','deleteGroup','bot','app.voice.voiceQueues.edit','SYSTEM:DOWNLOADJSON','MotionDialerRealtimeController\x20as\x20vm','jscriptyProject','$get','CreateOrEditMohSoundDialogController','arraydialOrderByScheduledAt','cannedAnswer','app/errors/404','src/js/modules/main/apps/mail/views/mailQueues/edit/teamadd/teamadd.html/teamadd.html','expand','\x20payload','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','en-IN','angular-toasty','ar-BH','Delete\x20conditions','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20whatsappCannedAnswer?','src/js/modules/main/apps/integrations/views/freshdeskAccounts/create/dialog.html/dialog.html','\x27alternate\x27','user_has_openchannel_interactions:remove','Subject\x20deleted!',':8089/ws','api/voice/chanspy/describe','fullname','$id','\x27agent_alias\x27','Error\x20creating\x20list!','src/js/modules/core/directives/ms-stepper/templates/vertical/step/vertical-step.html/vertical-step.html','0\x200\x20*\x20*\x20*','OutboundRoutesController','CHAT.CHATQUEUES','Lowest','selectedIvrCampaignHopperFinals','OpenchannelAccountId','api/openchannel/interactions/:id/messages','listOrder','\x20ASC)','api/settings/:id/gdpr','integrations/freshsales/configurations/:id/descriptions','outerHeight','CannedAnswer\x20properly\x20deleted!','deleteOpenchannelAccountOpenchannelCannedAnswer','addNewSalesforceAccount','THEMES','api.screenRecording.save','SYSTEM:GETmailAccount','audioinput','\x27never\x27','INTEGRATIONS.EDIT_SUGARCRMACCOUNT','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20salesforceConfiguration?','Smtp\x20updated!','src/js/modules/main/apps/callysquare/views/projects/edit/saveAs/saveAs.html/saveAs.html','SmsAccountActionsController','INTEGRATIONS.FRESHSALESACCOUNTS','sortBy','id,name,fullname','html','delete\x20VtigerAccounts','api/whatsapp/accounts/:id/dispositions','SYSTEM:USERPROFILE.REMOVESECTIONS','autoAnswer','IS_NOT_AMONG','PREVIOUS\x20CONTACTS\x20NOT\x20AVAILABLE','smtp','defaultHeaderWhiteLabel','motion2.home.contacts:','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/noop/dialog.html/dialog.html','createOrEditTriggerAllCondition','#353a48','gotoDynamics365Accounts','ChatInternalController','id,type,uniqueid,tag,starttime,endtime,source,destination,userDisposition,userSecondDisposition,userThirdDisposition,note,duration,billableseconds,answertime','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20tags?','selectAllZendeskAccounts','Report\x20properly\x20created','newChatWebsite','pull','alternate','Customer\x20Journey\x20can\x27t\x20open\x20the\x20interaction','European\x20French\x20Male','src/js/modules/quick-panel/quick-panel.html/quick-panel.html','Interval\x20properly\x20created','agreement','multiselect','TOOLS.SOUNDS','ar-KW','User\x20updated!','delete\x20voiceQueue','saveAgent','Whatsapp\x20Account','getFreshsalesAccounts','api.intFreshdeskAccount.delete','jscriptyAnswerReport','customField','PREVIEW','excludeFrom','app.contactmanager.companies.edit','Report\x20properly\x20run!','msNavigationService','rules','GET_QUEUE','Armenian','teamadddialog','TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE','vtigerConfiguration','/ms-widget-engine.','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/queue/dialog.html/dialog.html','createdAt,updatedAt,id,key,value,description','$lte','voiceChanSpy@get','FAX.FAXQUEUES','\x20selected
','RESETPASSWORD.PASSWORD_RESET','Delete\x20Variable','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/custom/dialog.html/dialog.html','America/Dawson_Creek','motion2.home.whatsapp:','DeskAccountConfigurationsController','toggleFold','api/integrations/sugarcrm/accounts/:id','deleteVoiceQueue','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20smsCannedAnswer?','$promise','getResponseSheetRow','addCustomField','Opera','createdAt,updatedAt,id,filename,projectName,uniqueid,callerid,extension,audio,savePath,format','delete\x20sugarcrmConfiguration','ServicenowAccount\x20properly\x20saved!','OdbcsController','TOOLBAR.CHANGE_LANGUAGE_MESSAGE','Edit\x20Report\x20Field','Interval','AgentHomeRecordingsController','Vietnamese\x20(Vietnam)','getOpenchannelAccountOpenchannelCannedAnswers','delete\x20offlineMessage','api/cloudProviders/:id/clone','api/integrations/freshsales/fields/describe','Zulu\x20(South\x20Africa)','uninstallplugin','MusicOnHoldsController','HANGUPCAUSE_1','RequestLicenseDialogController','\x27w\x27','queueCampaignHopperHistories','','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotop/dialog.html/dialog.html','openchannelMessage:update','addEventListener','selectedSmsAccountInteractions','rfc2833','bottom_right','The\x20whatsappQueue\x20will\x20be\x20deleted.','webbar:hangup','anyThirdLevelDisposition','dialerCall','MetricId','newSalesforceConfiguration','ZendeskAccount\x20properly\x20tested','_interactions:save','api/openchannel/queues/:id/members','_self','src/js/modules/main/apps/contactmanager/views/lists/edit/view.html/view.html','selectChangedAdvanced','\x2722\x27','saveSmsCannedAnswer','delete\x20VoiceQueues','voiceContext','templateUrl','injector','msMasonry:relayoutStarted','Africa/El_Aaiun','microphoneId','toggleDialpad','\x27da\x27','hues','createdAt,updatedAt,id,name,VoiceExtensionId,callerIdAll,description','src/js/modules/main/apps/chat/views/realtime/realtime.html/realtime.html','app.voice.voicePrefixes','id,fullname,role','originator','MsWidgetEnginePieChartController','onRemoveMailQueue','internalControl','SMS.REALTIME','listsMap','document','ChatWebsiteagentaddController','api/dashboards/items/:id','srcObject','pai','bind','src/js/modules/main/apps/tools/views/intervals/edit/apps/interval/dialog.html/dialog.html','/help','primary','phoneBarRemoteControl','Hebrew','deskAccounts','Brian','Pacific/Norfolk','Laothian','addCondition','savescreenRecording','replyAll','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/sugarcrmAccounts.html/sugarcrmAccounts.html','Africa/Johannesburg','editCompany','AgentHomeDashboardVoiceController','\x27sv\x27','DispositionsController','third','getWhatsappAccountApps','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/create/dialog.html/dialog.html','confirmed','deleteVariable','saveAgents','src/js/modules/main/apps/tools/views/triggers/edit/actions/create/dialog.html/dialog.html','max-width:\x20500px;','EditSmsAccountAppsystemDialogController','selectedHues','firstName,lastName,phone,mobile','opt2','api.pm2.update','use','msNavigationNode','AgentsChatRealtimeController\x20as\x20vm','hours','src/js/modules/main/apps/callysquare/views/projects/edit/view.html/view.html','map','sound@get','arrayenvelope','onUpdateVoiceQueue','currentStepInvalid','DeskAccount\x20properly\x20saved!','/api/settings/1/preferred','rpcFaxQueuesWaitingInteractions','API:NEW_VARIABLE','INTEGRATIONS.EDIT_SERVICENOWACCOUNT','Russian','predictiveIntervalAvgHoldtime','createOrEditUserProfile','AgentsVoiceRealtimeController','deleteSmsAccountInteraction','sms_account_id','analyticTreeReport','onSaveFaxQueueChannel','searchOptions','Asia/Sakhalin','app.integrations.freshdeskAccounts.edit','\x2721\x27','Chinese\x20Male','@from-voicemail','g722','goToEditState','tail','nb-NO','params','GlobalCustomFieldsController','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/tag/dialog.html/dialog.html','src/js/modules/main/apps/integrations/views/salesforceAccounts/salesforceAccounts.html/salesforceAccounts.html','animateHeightClass','ChatWebsiteChatDispositionsController','\x27wav49\x27','ERROR\x20OPENING\x20JSCRIPTY\x20PROJECT','listsCampaign','\x20has\x20been\x20reset','themes','Pause','newOdbc','apiResolver','ProjectspermissionaddController','STAFF.TEAMS','block','HopperBlack\x20deleted!','Value','A100','notification:remove','oldPasswordMatch','wss','cmHopperHistory','Pacific/Auckland','api/triggers/:id','api.voiceMusicOnHold.save','email','faxAccount@get','removeListener','Delete\x20dispositions','eurgermanfemale','spy','AgentHomePluginsController','Hindi\x20(India)','nextContact','Notification','sum','VoiceRecording\x20updated!','DASHBOARDS.OCTOBER','TOOLS.TRIGGERS','cmContact@getHoppers','QueueCampaigns','MSIE','SYSTEM:DELETEfaxAccount','src/js/modules/main/apps/mail/views/mailAccounts/create/dialog.html/dialog.html','isFunction','gotoIvrCampaigns','delete\x20agent','api/analytics/tree_reports/:id/clone','users','createOrEditSound','analyticCustomReport','CreateOrEditZendeskAccountDialogController','setText','api/whatsapp/accounts/:id/users','CONTACTMANAGER.EDIT_CUSTOMFIELD','maxdigit','EditInboundApphangupDialogController','delete_node','SYSTEM:GET_VOICEMAILS','webkitHidden','DASHBOARDS.WHATSAPP','selectedServicenowAccounts','transferHook\x20->\x20payload','toISOString','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailCannedAnswers?','Arial,Helvetica,sans-serif','api.intFreshdeskConfiguration.update','Asia/Aqtobe','SYSTEM:GETplugin','api.squareProject.delete','getPieChart','deselectIvrCampaigns','messaging','ComposeFaxInteractionDialogController','SYSTEM:GETintSugarcrmAccount','cf_','deleteSelectedListCustomFields','optionsBuilder','recordings','isOnHold','idField','SETTINGS.AITOOLS','deleteSelectedExtractedReports','/freshdeskAccounts','src/js/modules/main/apps/tools/views/triggers/edit/allconditions/create/dialog.html/dialog.html','removeClass','attachment_path','describe','America/Mexico_City','CHAT.EDIT_','apps.motiondialer','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interval?','createdAt,updatedAt,id,name,table,metric,description','subject','Delete\x20OutboundRoute','SYSTEM:GETConfigurations','Asia/Hovd','Odbc\x20properly\x20deleted!','api/members/reports/:id','Quechua','createdAt,updatedAt,id,name,mode,directory,application,format,sort','mailAccountInteractions','deleteProject','getMusicOnHoldMohSounds','\x27cm_lists\x27','The\x20sugarcrmConfiguration\x20will\x20be\x20deleted.','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/system/dialog.html/dialog.html','setScrollEl','isSearchBarVisible','src/js/modules/main/apps/integrations/views/freshdeskAccounts/freshdeskAccounts.html/freshdeskAccounts.html','KHOMP','onhold','api/integrations/salesforce/configurations/:id/fields','variableName','src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/configurations/dialog.html/dialog.html','Indian/Mauritius','createMediaStreamDestination','rpcMailQueues','ProjectID','...','deleteSelectedProjects','ms-navigation-folded','api/version/reset','hasChildrenPermissions','callerId','SYSTEM:UPDATEBLACKLIST','originateHook\x20->\x20payload','deleteOutboundRoute','src/js/modules/main/apps/voice/views/realtime/queue_params/view.html/view.html','api/integrations/dynamics365/fields/:id','second','Tamil','api/rpc/agents/:id/capacity','Asia/Karachi','chatQueue','api.intDeskAccount.save','#ms-shortcut-add-menu','Motion\x20WebRTC\x20Bar\x200.2.0','nodownload','ShowMessageInfoDialogController','animate-height','numbersto99','/analytics','\x27fewestcalls\x27','api/whatsapp/messages/:id/reject','api.variable.delete','userChatQueue:save','rpc@getTelephones','SYSTEM:GETusers','Today','Template\x20properly\x20saved!','addNewOutboundRoute','jscripty','America/Inuvik','ms-nav-title','api/chat/interactions/:id/messages','openchannelInteractions','America/Juneau','To\x20is\x20mandatory','IS\x20EMPTY','+04:00','responseData','addNewvoicePrefix','apps.staff.teams','Project\x20properly\x20','UserProfile\x20properly\x20cloned','DASHBOARDS.ME','app.integrations.sugarcrmAccounts.edit','handleMouseenter','FaxAccountActionsController','ms-navigation-horizontal','app.integrations.zendeskAccounts','CreateOrEditSoundDialogController','LicenseController','Asia\x20Pacific\x20(Sydney)','The\x20servicenowAccount\x20will\x20be\x20deleted.','api/cm/hopper/:id','src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/view.html/view.html','foreground','deleteSelectedTriggerAnyConditions','getOpenchannelAccountApps','New_Tab','selectedSalesforceAccounts','DASHBOARDS.SMS','Campaigns','stopplugin','saveSalesforceConfiguration','CreateOrEditInboundRouteDialogController','src/js/modules/core/directives/ms-shortcuts/ms-shortcuts.html/ms-shortcuts.html','forIn','src/js/modules/core/layouts/vertical-navigation.html/vertical-navigation.html','exportSelectedDispositions','gotoOpenchannelQueues','id=','Chinese\x20(Taiwan)','it-IT','AgentGeneralPopupController','getAnswers','src/js/modules/main/apps/staff/views/userProfiles/edit/clone/clone.html/clone.html','addNewList','api.smsQueue.save','^msHorizontalStepper','stop\x20plugin\x20process','Loading...','mergeContact','isoWeek','\x27).style.display=\x27block\x27;\x20this.parentNode.removeChild(this)\x22>See\x20More
\x20sessionToHangup','Telephone','api.intVtigerConfiguration.update','api.template.update','api/tags/:id','Australia/Perth','api/dispositions/describe','whatsappQueue@get','exportSelectedChatWebsiteChatCannedAnswers','OpenchannelCannedAnswer\x20properly\x20saved!','app.integrations.dynamics365Accounts','chatInteractionDownload','api/whatsapp/messages/:id/accept','cloudProvider','databases','MainController','SugarcrmConfiguration\x20properly\x20saved!','General\x20properly\x20created','monitor','app.integrations.servicenowAccounts.edit','saveHopper','api/cm/hopper_final/:id/clone','api.team.update','id,level,name,description,ParentId,createdAt,updatedAt','deleteSelectedODBC','7200','EU\x20(Paris)','VoiceRecordingController\x20as\x20vm','Delete\x20WhatsappAccount','onSaveChannel','user_has_whatsapp_interactions:save','selectedContacts','GotoIfTime','\x27inband\x27','Chat\x20Queues','listSelected','refer','addNewDisposition','All\x20resources\x20enabled','openchannelInteraction','api/square/reports/describe','DefaultReports','restart','id,name,enabled,includeAll,autoAssociation,crudPermissions','isSame','America/Creston','CreateOrEditVtigerAccountDialogController','wav49','\x27force_rport\x27','queueCampaigns','join','phoneBarEnableRecording','MsWidgetController','Internal\x20Call','Delete\x20','Select','plugin_','-stamp','FreshsalesAccount\x20properly\x20tested','DASHBOARDS.NONE','es-PR','autoreply','STAFF.PERMISSIONS_PLACEHOLDER_SEARCH','#9ea1a9','section','createOrEditSmsQueue','api/integrations/freshdesk/accounts/:id/fields','api/chat/websites/:id/dispositions','\x27port\x27','ngMaterial','America/Resolute','INTEGRATIONS.NEW_VTIGERCONFIGURATION','Mongolian','SmsQueuesController','SMS.NEW_SMSCANNEDANSWER','newChatCannedAnswer','api/plugins/','2020-12-04T18:45:54.286Z','/smsQueues','\x27q\x27','createOrEditGlobalCustomField','newContext','savename','selectedWhatsappAccountWhatsappCannedAnswers','left_join','ANALYTICS.EXTRACTEDREPORTS','getSmsAccountInteractions','User\x20API\x20key\x20removed!','uselessFields','\x272\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?','ListController','api/integrations/freshdesk/accounts/:id','50\x20100\x20200\x20A100','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/close/dialog.html/dialog.html','Template','targetSelected','rpcTrunks','TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE','hasSectionPermissions','selectedChatWebsiteOfflineMessages','Company','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','collapseOnBlur','getLockedItems','api.analyticExtractedReport.save','last','SETTINGS.NEW_CLOUDPROVIDER','EditChatWebsiteAppsystemDialogController','Asia/Riyadh','api/rpc/voice/queues/channels/:uniqueid/redirect/:exten','amber-fg','apps.analytics.reports','Bengali\x20(Bangladesh)','Hangup_Cause','getLists','SugarcrmAccount\x20properly\x20tested','ONLY_IF_OPEN','Switch','Sindhi','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailQueues?','CreateOrEditActionDialogController','Delete\x20List','voiceRecording@get','DASHBOARDS.VOICE','$substring','pickerModel','saveCallback','UserOpenchannelQueue','ChatGroupId','rejected','checkContactHopper','src/js/modules/main/apps/mail/views/mailAccounts/mailAccounts.html/mailAccounts.html','home.sms','/assets/images/theme-options/horizontal-nav.jpg','lastName','globalUserLists','preventDefault','globalStatus','record\x20->\x20session','Smtp\x20not\x20verified!\x20Remember\x20to\x20save\x20before\x20to\x20verify!','saveChatQueue','storagePath','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20vtigerAccounts?','Jacek','unreadGroupMessages','api.analyticExtractedReport.update','font,colorbutton,autogrow,autoembed,autocorrect,googlethisterm,pastebase64','exportSelectedVariables','attr','HeaderController\x20as\x20vm','delete\x20Templates','\x27route\x27','gotoProjects','src/js/modules/main/apps/dashboards/views/general/agent/interaction/dispose/dialog.html/dialog.html','down','selectedDeskAccounts','ERROR\x20OPEN\x20INTERACTION','

','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/externaldial/dialog.html/dialog.html','voice','\x27thumb\x27','AgentHomeContactsController','Do\x20not\x20Disturb','Settings','Tajik','ivrCampaigns','exportContacts_','selectedOpenchannelAccountApps','agentInternal','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20report?','vertical','VtigerAccount\x20properly\x20saved!','api/integrations/zoho/accounts/:id/clone','selectedCompanies','voiceQueue:save','router','api/integrations/freshdesk/fields/:id','ChatQueueController','addNewFreshsalesAccount','script','TOOLBAR.LATVIAN','api/screen/recordings/:id/download','reportRoute','row','src/js/modules/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html/dialog.html','hu-HU','Number','VOICE.RUNTRANSCRIBESENTIMENT_VOICERECORDING','closeFolded','France\x20(France)','CallySquare','gotoMusicOnHolds','call_id','apps.voice.voiceRecordings','\x27es-419\x27','/api/auth/','CreateOrEditIntervalDialogController','app.integrations.freshsalesAccounts','MARKETPLACE.PLUGINS','\x27en\x27','reportType','FaxAccounts','api/mail/interactions/:id/download','targetChanged','None','Plugin','api.mail.account','deleteMetric','America/Godthab','.mp4','querySearch','callbackurl:\x22','delete\x20hopperBlack','data1','delete\x20FreshsalesAccounts','Horizontal\x20Navigation','$mdToast','America/Phoenix','fileSuccess','updateLicense','exportSelectedQueueCampaignHopperHistories','Delete\x20Dynamics365Configuration','node','ServicenowAccount','globalCustomFieldForm','INTEGRATIONS.EDIT_DYNAMICS365CONFIGURATION','always','setCurrentUser','Metrics','DASHBOARDS.THIS_YEAR','setHours','TOOLBAR.GERMAN','CreateOrEditDispositionDialogController','userVoiceQueue:remove','api/rpc/openchannel/queues/:id/waitinginteractions','Substatus','TIMEOUT','flash','STAFF.PERMISSIONS_SELECTED_RESOURCES','Re:\x20','types','api/fax/queues/:id/teams','Dutch','substr','extraHeaders','WEBSITES','src/js/modules/main/apps/openchannel/views/openchannelQueues/openchannelQueues.html/openchannelQueues.html','Incoming\x20call\x20from:\x20','daysOfMonth','sumBillable','SYSTEM:DELETEintVtigerAccount','CONTACTMANAGER.NEW_CONTACT','InboundRoute\x20properly\x20created','sa-east-1','ZohoAccountsController','hy-AM','mailPause','hue-3','\x27preview\x27','getMailQueues','user.name','transformContact','User\x20password\x20properly\x20updated!','selectedFreshdeskAccounts','createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','destroy','horizontal','SYSTEM:GETtrunks','getResults','voiceAccounts','Disabled','saveFaxQueue','\x27whatsapp_queues\x27','chatQueueReport','getIvrCampaignHoppers','createdAt,updatedAt,id,name,interval','SYSTEM:GETcampaign','300','apps.analytics.metrics','getGroups','','European\x20Norwegian\x20Female','America/Rankin_Inlet','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotoif/dialog.html/dialog.html','isUndefined','answertime','contextmenu','cloneProject','monthNumber','context','addAgents','Asia/Amman','api/analytics/extracted_reports/:id/clone','Delete\x20chanSpy','INTEGRATIONS.EDIT_FRESHSALESCONFIGURATION','SMS\x20Report\x20Queue','call','apps.chat.chatQueues','src/js/modules/main/apps/chat/views/chatQueues/edit/agentadd/agentadd.html/agentadd.html','onVoiceChannelRemove\x20->\x20\x20key,\x20tab,\x20tab.calls','promise','app.voice.musiconholds.edit','mail_queue_waiting_interaction:remove','whatsappStatusTime','freshdeskAccount','Team\x20properly\x20created','ndauth_url','SYSTEM:GETwhatsappQueue','Trunk\x20properly\x20deleted!','squareOdbc@get','SugarcrmAccount','JSCRIPTY.SESSION_RESULTS','SEC_TO_TIME','editedat','America/Puerto_Rico','saveVariable','UserVoiceQueue','SYSTEM:GET_CONTEXTS','Whatsapp\x20Messages','FaxAccountInteractionsController','Interval\x20properly\x20deleted!','context.name','Konqueror','gotoVoiceQueues','\x27ulaw\x27','ListCustomFieldsController','TelephonesController\x20as\x20vm','faxMessage:update','motion2.home.abandoned.bull.calls:','QuickPanelController','The\x20plugin\x20will\x20be\x20deleted.','blue-grey-A200','CustomField\x20deleted!','preproduction','head','analytics','intFreshsalesConfiguration','$element','Unknown','delete\x20pause','desktopNotification','Contexts','\x27squared\x27','\x20properly\x20redirect!','\x27eu-west-1\x27','Invalid\x20company\x20name.','mwFormBuilder','saveMailQueue','getItem','EditInboundAppvoicemailDialogController','api/chat/websites/:id/fields','America/Matamoros','api/sms/interactions/:id/tags','gotoReports','api.voicePrefix.update','app.voice.voicemails','msNav','jv-ID','api.user.createApiKey','TOOLS.TAGS','DisposeInteractionDialogController','isMyAccount','MailAccountMailCannedAnswersController','clear','SYSTEM:DELETEcampaign','erlangAbandonmentRate','onEnableAutomaticScreenRecordingSelection','Contacts','desc','ListId','api.voiceRecording.update','Network\x20properly\x20created','msNavigation::stateMatched','path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)','\x27IAX\x27','getVoiceChannels\x20->\x20session','numbersto999','GET_LIST','escape','The\x20user\x20will\x20be\x20deleted.','mohSound','deselectSmsAccounts','deleteDisposition','app.whatsapp.realtime','createOrEditTrigger','AgentchangepasswordController','onUserVoiceQueue','click','STAFF.QUEUEADD_AGENT_','+08:30','selectedItems','createOrEditMetric','es-419','treeCustomInstance','googleCloudTtslanguageCode','UserOpenchannelAccount','Europe/Malta','Mail','smsQueue@get','resetlistdialog','deselectUsers','agent\x20updated!','Label','msTabScroll','deleteSelectedVariables','mailCannedAnswers','Project\x20has\x20been\x20','dialogflowV2_language','deleteCustomField','api/integrations/salesforce/configurations/:id/clone','thirdLevelDisposition','addNewMusicOnHold','scrollTop','secToTime','NetworksController','Times\x20New\x20Roman','blue-grey-A200-bg','src/js/modules/main/apps/fax/views/realtime/accounts/view.html/view.html','IvrCampaignsController\x20as\x20vm','Message\x20not\x20found!','\x27report_square_details\x27','chatGroup','intZendeskAccount@get','intSugarcrmConfiguration','hopperFinal','app.dashboards.general.voice','Dynamics365AccountController','selectAllChanSpies','src/js/modules/main/apps/integrations/views/zendeskAccounts/create/dialog.html/dialog.html','South\x20America\x20(São\x20Paulo)','api.trunk.delete','ToId','api/mail/messages/:id','outboundNoSuchCallsDay','MailInteractionId','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotop/dialog.html/dialog.html','WHATSAPP.EDIT_WHATSAPPCANNEDANSWER','Agentchange_avatarController','api/integrations/freshsales/configurations/describe','showPredictiveQueueCampaignInfo','substatus','red-A700-bg','selectAllIntervals','chatMessage:save','onSaveOutbound','SYSTEM:GETmailAccounts','Carla\x20(Italian,\x20Female)','Tahoma','\x20DESC','OPENCHANNELACCOUNT:SEND','exportSelectedOpenchannelAccountInteractions','manageResources','src/js/modules/main/apps/mail/views/realtime/realtime.html/realtime.html','CannedAnswer\x20properly\x20saved!','gosub','#2196f3','cancelUpdateCondition','abandoned','outbounddial','devices','SYSTEM:GETprojects','eurcatalanfemale','SYSTEM:GET_CHATACCOUNTS','Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20selected\x20contacts?','app/login','fromTemplate','SYSTEM:GETfaxQueue','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20contact?','smsQueue:save','America/Goose_Bay','Inactive','STAFF.PERMISSIONS_WARNING_CLOSE','\x20Contacts\x20selected','select_node','ar-DZ','recordingURL','api/integrations/freshsales/accounts/describe','Telephone\x20properly\x20created','selectedChanSpies','src/js/modules/main/apps/voice/views/voicePrefixes/create/dialog.html/dialog.html','CreateOrEditSalesforceConfigurationDialogController','exportSelectedQueueCampaignHopperFinals','Norwegian\x20Bokmal\x20(Norway)','\x27info\x27','Enrique\x20(Spanish,\x20Castilian,\x20Male)','duplicateContact','zoho.com','.wav','api/mail/accounts/:id/verify','EditSmsAccountAppintervalDialogController','Europe/Madrid','msInfoBar','WhatsappQueuesController','FreshdeskConfiguration\x20properly\x20deleted!','ta-MY','ENDS_WITH','setThemesList','whatsappMessage:update','\x27ws\x27','differenceBy','CreateOrEditWhatsappCannedAnswerDialogController','mailQueue:update','chatInternalMessage','SYSTEM:DELETEfaxQueue','rpcAgents','weight','ispeechAsrLanguage','resetViewer','areaText','api.team.save','unreadTotalGroupMessages','endtime','ngPassword','AgentHomeDashboardMultiChannelSmsController','chatWebsites','443','ChatWebsitesController','apps.whatsapp.realtime','api/sms/queues/:id/members','4800','icon-whatsapp','You\x20are\x20selecting\x20the\x20list\x20number:\x20','Delete\x20condition','FreshdeskAccountController\x20as\x20vm','INTEGRATIONS.NEW_DYNAMICS365CONFIGURATION','api.dashboardItem.save','app.voice.outboundroutes','onChangeVoiceQueues','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/system/dialog.html/dialog.html','api/integrations/vtiger/accounts/:id/fields','arrayusereqphone','app.analytics','ca-ES','speaker','removeCookies','SYSTEM:GET_PROJECTS','addVoiceQueuesChannels','Fax\x20Messages','/chat','apps.voice.internalroutes','hopper','selectedLanguage','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','300\x20400','getFunctions','createOrEditSchedule','app.integrations.deskAccounts.edit','onIntegrationSelection','SYSTEM:GETagents','app.openchannel.realtime.queues','Asia/Seoul','UserFaxAccount','CDR(destination)=','webbar:answer','template@get','FAX.NEW_FAXACCOUNT','api/actions/describe','FreshsalesConfiguration\x20properly\x20saved!','selectedTriggerActions','GlobalCustomField\x20properly\x20created','osVersion','mwFormUtils','api/chat/offline_messages/:id/clone','$timeout','icon-server-plus','Spanish\x20(Uruguay)','isArray','European\x20Spanish\x20Female','selectAllQueueCampaigns','angucomplete-alt','createOrEditAgent','callback','resources','api/fax/accounts/:id/send','SugarcrmAccount\x20properly\x20created','Asia/Kabul','createOrEditvoicePrefix','Recordings','api/integrations/salesforce/accounts/:id/fields','Romanian','api/rpc/whatsapp/queues/waitinginteractions','\x27alaw\x27','realtime','\x27agentBusyFactor\x27','apiName','predictiveIntervalDroppedCallsCallersExit','fax_queue_waiting_interaction:remove','api/integrations/vtiger/fields/:id','icon-hangouts','userProfileSection@get','Urdu','cmn-Hans-CN','onReferCallback\x20->\x20session,\x20textContent,\x20position,\x20delay','DASHBOARDS.SELECT_DATE_RANGE','api/openchannel/accounts/:id/dispositions','src/js/modules/main/apps/fax/views/faxQueues/edit/agentadd/agentadd.html/agentadd.html','Swahili\x20(Tanzania)','xorWith','app.voice.realtime.queue_calls','campaign','EditWhatsappAccountAppamazonlexDialogController','error','app.forgot','chatCannedAnswer','Hong\x20Kong\x20Cantonese\x20Female','selectTagsChanged','Somali','Verdana','Templates','America/Argentina/La_Rioja','api/rpc/sms/queues/waitinginteractions','field','userProfileSection','^msVerticalStepper','SmsRealtimeController','motNotification','Europe/Vienna','zh-HK','MergeContactDialogController','/companies','GROUP_CONCAT','selectedSugarcrmConfiguration','Attachments','api/integrations/reports/:id/clone','Please\x20save\x20the\x20contact\x20before\x20disposing!','whatsappAccountWhatsappCannedAnswers','api.network.delete','\x27en-GB\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?','contrast2','UserId','searchReport','getSugarcrmConfiguration','intSugarcrmAccount@get','onSaveWhatsappInteraction','src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/teamadd/teamadd.html/teamadd.html','api/users/:id/recordings','trunk:save','resetForm','Australia/Hobart','rpcChatQueuesWaitingInteractions','inboundQueues','chatCannedAnswer\x20#','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20offlineMessages?','detectBrowser','CreateOrEditContactDialogController','intDeskAccount@get','api/cm/lists/:id','getActiveTheme','Pacific/Honolulu','downloadWhatsappInteraction','X-callback-url:\x20','CampaignId','src/js/modules/main/apps/motiondialer/views/realtime/ivr_campaigns/view.html/view.html','Asia/Srednekolymsk','src/js/modules/core/directives/ms-navigation/templates/vertical.html/vertical.html','Invalid\x20license\x20key','MusicOnHoldsController\x20as\x20vm','\x27sw\x27','$location','/servicenowAccounts','reserved','inband','network','\x27tr\x27','NO_ANSWER','ar-IQ','api/users/:id/openchannel_interactions','The\x20dashboarditem\x20will\x20be\x20deleted.','app.openchannel.openchannelAccounts','saveWhatsappQueue','newOpenchannelCannedAnswer','api/square/details/reports/describe','SETTINGS.GENERAL','attachment','addNewZohoAccount','secretaccesskey','analyticTreeReport@get','TOOLBAR.CHANGE_LANGUAGE_TITLE','SmsAccountsController','hasDashboardPermissions','\x27null\x27','SYSTEM:GET_','api/mail/messages/:id/accept','$parsers','api/voice/mails/messages/describe','INTEGRATIONS.ZENDESKACCOUNTS','downloadMessage','You\x20can\x27t\x20mark\x20as\x20unread','Yahoo','APP.ALL_AGENTS','getCurrentUser','eurnorwegianfemale','version@get','getApi','/reset/:token','Video','delete\x20field','src/js/modules/main/apps/mail/views/realtime/accounts/view.html/view.html','GoSub','register','api/rpc/mail/queues','faxInteractionDownload','The\x20chanSpy\x20will\x20be\x20deleted.','arrayagentIdentifier','Kimberly','api/rpc/voice/queues','deleteWhatsappAccount','api/plugins/:id/clone','plugin@get','en-US','chatInteractionTags:save','api/rpc/fax/queues','api/dashboards/:id/items','api.intZendeskConfiguration.delete','arrayringinuse','UpdateLicenseDialogController','INTEGRATIONS.FRESHDESKACCOUNTS','deleteSelectedChatWebsiteApps','\x20has\x20been\x20cloned!','sql','SYSTEM:GET_TEAMS','French\x20(Canada)','chatStatus','ChatInteractionId','intDeskField','src/js/modules/main/apps/whatsapp/views/realtime/realtime.html/realtime.html','\x20properly\x20created','api/integrations/zendesk/accounts/describe','SMS.NEW_SMSQUEUE','select','api/integrations/salesforce/accounts/:id/clone','app.tools.trunks','AgentAlias','api/mail/messages/:id/clone','rows','Days','Invalid\x20transfer','exportSelectedQueueCampaigns','app.sms.smsQueues.edit','CannedAnswer\x20properly\x20created','out-left-aligned','copyReport','DeskAccount\x20properly\x20tested','src/js/modules/main/apps/tools/views/customDashboards/edit/clone/clone.html/clone.html','WhatsappAccountsController','Rejected','getMailSubstatuses','isLastStep','Marketplace','ms-theme-options','options','ChatProactiveAction\x20properly\x20deleted!','APP.CLOSE','api/cm/hopper_history/:id/clone','Context\x20properly\x20saved!','ServicenowAccountsController\x20as\x20vm','','Win','api/tags/describe','Agi','delete\x20subjects','GET_TRUNK','parentDisposition','queryChannels','motion','formats','/musiconholds','createOrEditDynamics365Account','newTelephone','deleteSelectedQueueCampaignHopperBlacks','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','getOpenchannelQueues','src/js/modules/core/directives/ms-stepper/templates/vertical/vertical.html/vertical.html','all','Messages','originateInProgress','customerIp','removeAgents','MotionDialerQueueId','addNewDynamics365Configuration','customFields','intDynamics365Configuration','selectedItemChange','api/attachments/:id','Process\x20stopped!','createObjectURL','google_cloud_tts_text_type','ZohoAccount\x20properly\x20tested','selectedFaxAccountInteractions','Unable\x20to\x20shutdown\x20Jabra\x20library','putOtherCallsOnHold\x20->\x20session','Cannot\x20upload\x20the\x20sound','\x27agentOnly\x27','app.chat.realtime.agents','icon-heart','scheduledat','newCannedAnswer','HMAC','selectAllZohoAccounts','rpcQueues','call\x20with\x20session\x20Id\x20','Italian','api.mailAccount.save','SYSTEM:UPDATECMHOPPERHISTORY','tables','src/js/modules/main/apps/voice/views/voiceQueues/edit/teamadd/teamadd.html/teamadd.html','$stateParams','api/chat/websites/:id/interactions','checkPause','api/mail/accounts/:id/users','ERROR','VtigerAccount\x20properly\x20tested','MailMessageId','deleteGlobalCustomField','bg-BG','Europe/Kiev','api/mail/queues/:id/teams','api/whatsapp/interactions/:id/tags','src/js/modules/main/apps/jscripty/views/projects/projects.html/projects.html','src/js/modules/main/apps/settings/views/generals/generals.html/generals.html','getConfig','ms-masonry-item','chatWebsite','app.mail.mailAccounts','Call\x20%s\x20not\x20found\x20or\x20already\x20completed','createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description','Africa/Nairobi','addNewCompany','SYSTEM:DESCRIBE_CM_CONTACT','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/amazonlex/dialog.html/dialog.html','DropRate','LoadingIndicatorService','protocol','UserMailDashboardGeneralController','Mozilla','loading','ms-navigation','filterByTags','addNewVoiceRecording','mouseenter\x20touchstart','api/integrations/zoho/configurations/describe','gotoTelephones','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/queue/dialog.html/dialog.html','editMailAccountApp','nolimit','deleteSmsAccountSmsCannedAnswer','removeUsers','MOTIONDIALER.EDIT_HOPPER','src/js/modules/main/apps/tools/views/trunks/trunks.html/trunks.html','api/screen/recordings/:id','selectedColor','CreateOrEditOutboundRouteDialogController','icon-clock','\x20has\x20been\x20installed!','Subject','deleteSelectedGlobalCustomFields','mailAccounts','msModelType','user:agentconnect','platform','VtigerConfiguration\x20properly\x20saved!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20vtigerConfiguration?','foreignKey','moveSelectedIvrCampaignHopperFinals','Africa/Accra','api/mail/queues/:id/users','Indian/Mahe','InternalRoutesController\x20as\x20vm','zendeskConfigurations','','#F44336','api.jscriptyProject.delete','addNewMailQueue','api.condition.update','DefaultReportId','selectedVtigerAccounts','Century\x20Gothic,Futura,Didact\x20Gothic,san-serif','getOutboundRouteApps','delete\x20openchannelAccount','EditInternalAppvoicemailDialogController','openchannelStatusTime','\x27unknown\x27','File\x20name','buttons','closed','MusicOnHolds','_blank','app.core','DASHBOARDS.MYCONTACTS','Networks','getMetricName','tag','dateRangeManager','addNewDynamics365Account','Delete\x20ChatProactiveAction','originatePreview','hasRole','api/sms/queues/:id/users','getQueueCampaignHoppers','api/mail/accounts/:id/dispositions','api.voiceMail.delete','Company\x20name','colors','onDispositionChange','Delete\x20CloudProvider','$document','src/js/modules/main/apps/dashboards/views/general/user/sms/user.general.sms.html/user.general.sms.html','src/js/modules/errors/404/error-404.html/error-404.html','api/openchannel/accounts/:id/users','Popup','login','selectAllSounds','Hotmail','pickerPosition','api.cloudProvider.delete','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/close/dialog.html/dialog.html','WhatsappAccountDispositionsController','selectAllOpenchannelAccounts','Mathieu\x20(French,\x20Male)','userForm','0.3','api/openchannel/queues/:id/clone','sipcalluniqueid','Delete\x20WhatsappQueue','dashboard:update','smsPause','Outbound\x20route\x20not\x20deleted!','cs-CZ','Status\x20properly\x20changed\x20to:\x20','The\x20inboundroute\x20will\x20be\x20deleted.','SmsQueueId','progress','CDR(routeid)=','spywhatsappInteraction','loggedIn','getLabelByMessage','src/js/modules/main/apps/integrations/views/zohoAccounts/create/dialog.html/dialog.html','starttime','Asia\x20Pacific\x20(Singapore)','app','JSCRIPTY.JSCRIPTY','sip_id','motion2.home.mycontacts:','selectedFreshdeskConfiguration','retry','es-MX','disconnect','msSplashScreen::remove','European\x20Dutch\x20Female','addNewCannedAnswer','FreshsalesAccountsController','\x27es-ES\x27','SMS.SMSACCOUNTS','volume','src/js/modules/main/apps/voice/views/voiceQueues/create/dialog.html/dialog.html','importReport','cmList','createdAt,updatedAt,id,name,strategy,timeout,description','Fax\x20Account','Process\x20updated!','fontSize_sizes','api/square/odbc/:id/clone','SYSTEM:UPDATECONFIGURATIONFIELD','onSearchFieldsInit','Would\x20you\x20like\x20to\x20update\x20your\x20system?','@id','getIntervals','addMinutes','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/resetlist/resetlist.html/resetlist.html','newVoiceRecording','newSalesforceAccount','Europe/Zurich','UserProfile\x20properly\x20deleted!','queue_id','\x20not\x20found','SETTINGS.SMTP','Plugin\x20properly\x20saved!','selectedUserProfiles','createdAt,updatedAt,id,name,description,table,parent,conditions,joins','app.voice.chanSpies','getMetrics','\x27linear\x27','ContextsController','api/chat/internal/messages/:id','saveInternalRoute','offsetHeight','actionOptions','api.smsAccount.save','newscreenRecording','api.cmCompany.delete','Finnish\x20(Finland)','originated','ico','intFreshdeskAccount','reports','addNewReportField','Spanish\x20(Honduras)','toggleSidenav','The\x20general\x20will\x20be\x20deleted.','exportSelectedContexts','getInstallInfo','jira','gotoMailAccounts','EditMailAccountAppgotopDialogController','toggle','api.intZendeskAccount.update','user:forcelogout','W:\x20Enable\x20private\x20whisper\x20mode,\x20so\x20the\x20spying\x20channel\x20can\x20talk\x20to\x20the\x20spied-on\x20channel\x20but\x20cannot\x20listen\x20to\x20that\x20channel.','hue-1','api/jscripty/projects/describe','account_id','\x27wav\x27','apps.settings.networks','deleteMailQueue','Integration_Tab','/custom/:id','.ogg','rpcWhatsappQueues','template','gsm','api/integrations/sugarcrm/accounts/:id/fields','WhatsappInteractionId','api/fax/queues/:id/users','toUpperCase','faxCurrentCapacity','createOrEditOpenchannelAccountOpenchannelCannedAnswer','smsMessage:update','app.integrations.vtigerAccounts','delete\x20freshsalesConfiguration','getSmsQueuesWaitingInteractions','MarketplacePluginsController','ChangePasswordController','intServicenowAccount@get','reportField','FaxAccountagentaddController','AgentHomeDashboardMultiChannelFaxController','Naja\x20(Danish,\x20Female)','localstationid','prompt','msDualMultiselect','api/sms/queues/describe','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/create/dialog.html/dialog.html','getAgents','NOBEEP','factory','arraypriority','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/tag/dialog.html/dialog.html','CHAT.REALTIME','createOrEditTeam','isWebRTCSupported','STAFF.PERMISSIONS_SECTION_TITLE','icon-radiobox-marked','getVoiceQueuesChannelHangup','Custom','Arabic\x20(Egypt)','mon','onUpdateWhatsappInteraction','saveWhatsappAccountApp','api/voice/dials/reports/:id/clone','isExtra','selectedPlugins','findLast','inline','editstate','queueaddchannel','createdAt,updatedAt,id,role,fullname,name,email,password,description,autointernal,internal,voicemail,transport,nat,allow,callerid,context,callgroup,pickupgroup,videosupport,encryption,phone,mobile','src/js/modules/core/theme-options/theme-options.html/theme-options.html','api.template.delete','mycontacts','Scheduled\x20call\x20has\x20been\x20deleted!','selectAllCannedAnswers','CreateOrEditCustomFieldDialogController','newGeneral','apps.tools.triggers','outboundReCallsDay','src/js/modules/main/apps/openchannel/views/realtime/realtime.html/realtime.html','salesforce','SYSTEM:DELETEmailQueue','Delete\x20ZendeskAccount','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatWebsites?','SYSTEM:MERGE_CONTACT','statusList','clearSelection','substring','Invalid\x20list\x20name.','chat_queue_waiting_interaction:save','EditWhatsappAccountApptagDialogController','enableUncompleteSave','levels','api/integrations/dynamics365/accounts/:id/configurations','Trebuchet\x20MS','INTEGRATIONS.NEW_SALESFORCEACCOUNT','INTEGRATIONS.NEW_FRESHSALESCONFIGURATION','api.voiceExtension.update','Url','CloudProvidersController\x20as\x20vm','URL','order','\x27ringall\x27','Asia/Kuching','VoiceQueues','api/openchannel/queues/:id/users','The\x20mailQueue\x20will\x20be\x20deleted.','Indian/Cocos','+05:30','Email\x20Queues','subjects','isDateBeforeToday','Bulgarian\x20(Bulgaria)','properties','ChatQueue\x20properly\x20deleted!','whoami','newCustomization','ChatWebsitecustomerAvatarController','dialogflowV2_project_id','saveList','\x27years\x27','PrivateKey','SYSTEM:GETvoiceQueues','am-ET','api.voiceQueue.update','getDynamics365Accounts','deleteFieldConfirm','delete\x20Projects','selectedDeskConfiguration','VOICE.NEW_INTERNALROUTE','SYSTEM:squareProjects.ADDUSERS','TOOLS.EDIT_SOUND','deleteSelectedSugarcrmAccounts','className','Your\x20survey\x20session\x20has\x20been\x20properly\x20saved!','/openchannel','removeSections','api.condition.save','ChatQueues','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperBlack?','Europe/Athens','ContextsController\x20as\x20vm','getAbandonedCalls','VIDEO.SCREENRECORDINGS','WhatsappQueue\x20properly\x20saved!','app.staff.agents','SugarcrmAccountController','openchannelAccountApp','code','Agent\x20logout','List','internalrouteApp','exists','days','NO\x20AUTH','newChatProactiveAction','Plugin\x20updated!','IS\x20NOT\x20EMPTY','TOOLBAR.NORWEGIAN','setAttribute','countnoanswerretry','zendeskConfiguration','icon-checkbox-blank-circle-outline','.result','api/mail/reports/queue/describe','IvrCampaignHopperBlacksController','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeMail/dialog.html/dialog.html','src/js/modules/main/apps/video/views/screenRecordings/screenRecordings.html/screenRecordings.html','src/js/modules/main/apps/help/views/about/about.html/about.html','applyFilter','getCustomDashboards','trunk_id','-03:30','newInboundRoute','saveOdbc','Pacific/Pitcairn','ExtractedReports','onFinish','version','\x27openchannel_interactions\x27','triggerAnyConditions','+05:45','api/analytics/default_reports/:id/query','voiceRecording','widgets','/telephones','messageStatuses','SYSTEM:DELETEvoiceContext','md-background-bg\x20md-hue-3','FAX:SEND','Hans','Vietnamese','currentXML','^msMasonry','step','newFaxAccount','appendChild','faxAccountApps','delete\x20servicenowConfiguration','\x27newTab\x27','InboundRoutes','MIN','CONTACTMANAGER.CONTACTS','EditInboundAppinternaldialDialogController','/outbound_calls','api.voiceMusicOnHold.update','api/chat/applications/describe','app/core/directives/ms-phonebar/sounds/incoming-call.ogg','getServicenowConfiguration','\x27report_openchannel_queue\x27','Project','loadShortcuts','onChangeList','CONTACTMANAGER.EDIT_GLOBALCUSTOMFIELD','apr','id,name,mapAgentsId,waiting','tech','Months','Start\x20Video\x20Call','InternalRoute\x20properly\x20created','en-AU','deleteSelectedChatWebsiteOfflineMessages','Europe/Minsk','src/js/modules/main/apps/integrations/views/servicenowAccounts/servicenowAccounts.html/servicenowAccounts.html','AllCondition\x20properly\x20saved!','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/ringgroup/dialog.html/dialog.html','icon-calendar-clock','replyMessage','voiceCalls','DASHBOARDS.MAY','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/teamadd/teamadd.html/teamadd.html','api/users/:id/openchannel_accounts','Asia/Novosibirsk','faxQueue:update','location','src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/outbounddial/dialog.html/dialog.html','mouseenter','MOTIONDIALER.NEW_HOPPER','selectedChatWebsiteApps','speakerId','dateFilterLocalizationFactory','app.fax.faxAccounts.edit','ne-NP','whatsapp.whatsappAccounts','SYSTEM:DELETEdashboard','src/js/modules/core/directives/ms-info-bar/ms-info-bar.html/ms-info-bar.html','progresslogin','msNavigation::clearActive','More','api/openchannel/accounts/:id/canned_answers','selectedFaxQueues','spysmsInteraction','app.staff.users','PausesController\x20as\x20vm','Delete\x20Template','Pause\x20properly\x20created','-10:00','SYSTEM:SENDMESSAGE','OpenchannelCannedAnswer\x20properly\x20created','Asia/Jakarta','api/rpc/voice/queues/channels/:uniqueid/hangup','CALLYSQUARE.EDIT_PROJECT','smsTransferReport','api.action.update','CreateOrEditFreshsalesConfigurationDialogController','onUpdateChatQueue','textarea','api.chatQueue.update','app.mail','CreateOrEditZohoAccountDialogController','msShortcuts','TOOLS.UPLOAD_SOUND','api/chat/interactions/:id/vidaoo','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20zendeskAccounts?','createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt','controls','ivr','selectedQueueCampaignHopperFinals','DASHBOARDS.DISABLED','/assets/images/theme-options/content-only.jpg','jscriptySessionReport@getQuestions','QueueCampaign','deleteFreshsalesAccount','Asia/Tbilisi','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?','MusicOnHold\x20properly\x20saved!','questionId','YES','getSubjects','Africa/Cairo','mail_queue_waiting_interaction:save','APP.WHATSAPP','GRANTED','Japanese','Europe/Tirane','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20extractedReports?','apps.home.contacts','\x27invite\x27','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','refreshDate','MailCannedAnswer\x20properly\x20created','Streets','English\x20(Nigeria)','deleteSelectedWhatsappAccountApps','apps.voice.voicemails','CHAT.NEW_CHATQUEUE','app.integrations.dynamics365Accounts.edit','Email\x20Messages','Kannada\x20(India)','selectedOpenchannelAccounts','outboundDropCallsDayTimeout','faxCapacity','Latvian\x20(Latvia)','whatsappStatus','en-PH','QUICKPANEL.NEW_CHATGROUP','xAxes','remote-audio','followuptime','SYSTEM:DELETE.customDashboard','api.screenRecording.update','getWhatsappAccountInteractions','SYSTEM:GETintDeskAccount','readAsDataURL','SETTINGS.UPDATE','Salli','OpenchannelQueue\x20updated!','saveTelephone','\x27/var/opt/motion2/server/files/sounds/converted/{{sound.save_name}}\x27','Arabic\x20(Lebanon)','user:save','MsShortcutsController\x20as\x20MsShortcuts','apps.tools.schedules','OpenchannelQueueteamaddController','app.chat.realtime','initialize','voiceQueuesSelected','src/js/modules/main/apps/contactmanager/views/contacts/edit/view.html/view.html','endcall','openChannel','api/userProfiles/:id/sections','Antarctica/Palmer','UserProfile','api/analytics/metrics/describe','smsCurrentCapacity','TOOLS.NOTIFICATIONS.CONDITION_DELETE_TITLE','api.trunk.save','api.chatQueue.save','whatsapp','SYSTEM:GETmusiconholds','voicePause','api/square/recordings/:id/clone','voiceAgentReport','api/integrations/zendesk/accounts/:id/clone','onSelectList','Asia\x20Pacific\x20(Seoul)','STAFF.PERMISSIONS_UNAUTHORIZED_CREATION_MESSAGE','TOOLS.EDIT_PAUSE','.ms-search-bar-results','deleteSelectedFaxAccountApps','Smtp','duration','SYSTEM:DELETEvoiceRecording','CreateOrEditReportDialogController','\x20ORDER\x20BY\x20','AgentHomeVoiceController','api.intFreshsalesConfiguration.save','apikeymanagerdialog','ms-widget','vm.voiceQueue.joinempty.length\x20===\x201\x20\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27no\x27','app.integrations.salesforceAccounts.edit','api.dashboardItem.update','$resolved','chatInternalMessage:save','Wide','groupId','You\x20must\x20have\x20at\x20least\x20one\x20theme\x20named\x20\x22default\x22','newCustomDashboard','chatWebsiteProactiveActions','grey','ja-JP','bar-container','createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description','saveDynamics365Account','arrayjoinempty','exportSelectedSmsAccounts','api.squareOdbc.save','MotionDialer','\x27days\x27','{part}/i18n/{lang}.json','api/voice/queues/:id/hoppers','getFaxAccountLabel','lastLoginAt','FreshdeskAccount\x20properly\x20tested','intDynamics365Account','radio','src/js/modules/main/apps/callysquare/views/projects/edit/import/import.html/import.html','America/Kentucky/Louisville','+13:45','\x27o\x27','FaxAccount\x20properly\x20deleted!','getIconByChannel','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappQueues?','registerStep','VtigerConfiguration\x20properly\x20created','ServicenowConfiguration\x20properly\x20saved!','view','whatsappInteraction@get','api.smsAccount.delete','WHATSAPPACCOUNT:SEND','Fields\x20copied!','ceil','DASHBOARDS.SELECT_STATUS','isCompatibleBrowser','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/agent/dialog.html/dialog.html','onStart','CANCEL','/schedules','selectedMailAccounts','Spanish\x20(Spain)','search','Queue\x20Report','Description\x20deleted!','getSalesforceAccounts','motion2.home.abandoned.voice.calls:','ar-MA','fax_queue:save','screenrecording','src/js/modules/core/dialogs/advanced-search/dialog.html/dialog.html','Inbound\x20Call','default','CreateOrEditFreshdeskConfigurationDialogController','teal-bg','createdAt','asc','intZendeskField','\x27gsm\x27','CreateOrEditScheduleDialogController','msAdvancedSearch','mwForm.pageEvents.changePage','MailQueueagentaddController','api/cm/hopper_black/describe','deleteOpenchannelAccountApp','answer','src/js/modules/core/directives/ms-material-color-picker/ms-material-color-picker.html/ms-material-color-picker.html','in-right-aligned','SalesforceConfiguration\x20properly\x20created','predictiveIntervalAvailable','CustomizationsController','+04:30','CHAT.EDIT_CHATWEBSITE','','phoneBarDnd','CreateOrEditAnyConditionDialogController','/api/chat/websites/:id/avatar','api/integrations/servicenow/configurations/describe','https://www.xcally.com/bar/phonebar/autoupdater.xml','internalroutes','offlineMessage','browserGroupId','Canadian\x20English\x20Female','api/chat/websites/describe','Unable\x20to\x20open\x20the\x20contact','msScrollConfig','onclick','FaxAccount\x20properly\x20saved!','getInboundRoutes','New\x20Item','rpcOpenchannelQueues','Marathi\x20(India)','globalCompanies','channels','api/integrations/desk/configurations/:id/descriptions','toggleOptionsSidenav','Asia/Thimphu','onSaveQueue','voicemailMessages','api.interval.save','saveLists','api/square/odbc/:id','\x27KHOMP\x27','src/js/modules/main/apps/dashboards/views/general/user/chat/user.general.chat.html/user.general.chat.html','thirdDisposition','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20zendeskConfiguration?','SYSTEM:PAUSEUSER','whatsappPause','out','iPod','saveReport','ChanSpiesController\x20as\x20vm','attributes','api.interval.update','saveIvrCampaign','Predictive','awsPollyVoice','callbackQueue','includes','TOOLS.NOTIFICATIONS.','import','grey-A700-bg','motionbar','\x27yahoo\x27','unit','AgentHomeDashboardController','#2d323e','SalesforceConfiguration\x20properly\x20saved!','src/js/modules/main/apps/integrations/views/zohoAccounts/edit/configurations/dialog.html/dialog.html','VtigerAccount\x20updated!','getFullYear','MailRealtimeController','api/fax/accounts/updateaccountapplications','getMailAccountMailCannedAnswers','CustomReportId','api/variables/describe','Delete\x20MohSound','target','id,name,internal,fullname','EditWhatsappAccountAppgotopDialogController','ChatWebsiteScriptController','0.26','European\x20German\x20Female','opt1','FreshsalesAccountController','IvrCampaigns','.resizable','\x27pai\x27','delete\x20mailSubstatus','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/system/dialog.html/dialog.html','selectedMusicOnHoldMohSounds','hopperFinal\x20#','verticalNavigationFullwidthToolbar','Canada\x20(Central)','Which\x20number\x20do\x20you\x20want\x20transfer\x20the\x20call\x20to?','createOrEditZendeskConfiguration','queryHistory','exportSelectedProjectSessions','api/chat/messages/:id/clone','Spanish\x20(Ecuador)','memberReport','arrayauthType','Agents','apps.mail.mailAccounts','intDynamics365Account@get','Delete\x20Contact','apps.callysquare.squareRecordings','api.campaign.clone','D\x20MMM\x20YYYY','api/users/:id/api_key','deselectChatQueues','The\x20agent\x20will\x20be\x20deleted.','newExtractedReport','src/js/modules/main/apps/dashboards/views/general/user/user.general.html/user.general.html','Disposition','deleteChatWebsiteOfflineMessage','api/users/:id/mail/interactions','scrollWidth','TOOLBAR.WEBRTC_MICROPHONE_NOT_AVAILABLE','pink','isDisabled','hkchinesefemale','isInProgress','displayName','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/tag/dialog.html/dialog.html','ContactSelectionController','ExtractedReport','$sce','phonenumber','src/js/modules/header/layouts/vertical-navigation/header.html/header.html','CreateOrEditCustomDashboardDialogController','On\x20{{\x20date\x20}},\x20at\x20{{\x20time\x20}},\x20{{\x20from\x20}}\x20wrote:','onUpdateWhatsappQueue','Lithuanian\x20(Lithuania)','app.motiondialer.queueCampaigns','onLogged','Salesforce','intDeskAccount','myQueues','delete\x20company','GET_SOUND','api/integrations/dynamics365/accounts/describe','salesforceAccounts','selectedChatWebsiteInteractions','TOOLBAR.RUSSIAN','data5','exportSelectedChatWebsites','Application_Name','onFieldChange','deselectTrunks','toggleChat','TOOLS.PAUSES','$evalAsync','phoneBarEnableScreenRecordingByAgent','exportSelectedMetrics','\x2717\x27','searchFields','STAFF.NEW_TELEPHONE','Australian\x20English','FaxQueueController\x20as\x20vm','PausesController','CALLYSQUARE.NEW_PROJECT','selectedIndex','The\x20mohSound\x20will\x20be\x20deleted.','CONTACTMANAGER.MERGE_CONTACT','+09:00','ZohoAccount\x20properly\x20saved!','Australia/Sydney','Import\x20has\x20been\x20stopped!','predictiveIntervalAvgTalktime','newVariable','Europe/Monaco','OutboundRoutes','onHold\x20->\x20session,\x20data','DASHBOARDS.TODAY','Report\x20Field\x20properly\x20deleted!','playback','Delete\x20MailQueue','The\x20trunk\x20will\x20be\x20deleted.','api/analytics/field_reports/destroy_many','turn','ml-IN','TOOLBAR.TURKISH','SYSTEM:queueCampaign.RESETLIST','closest','Openchannel','Delete\x20Trunk','\x27ru\x27','Africa/Windhoek','getOpenchannelQueuesWaitingInteractions','onIntegrationInit','delete\x20customFields','api/fax/accounts/:id/applications','microphoneMute','Announce_Overrides','AgentsMailRealtimeController\x20as\x20vm','Delete','deleteDynamics365Configuration','motion-blue','api/chat/interactions/:id/custom_update','addApplications','draggable','hopperIds','src/js/modules/main/apps/analytics/views/reports/run/web/dialog.html/dialog.html','output','Spanish\x20(Nicaragua)','deleteSubjectConfirm','openProject','/accounts','Irish','api.voiceRecording.save','api/cm/hopper_final/describe','exportSelectedVoiceQueues','smsInteractions','mailQueues','sender','PredictiveQueueCampaignDialogController','sugarcrmConfiguration','UserSmsQueue','isJabraInitialized','src/js/modules/main/apps/openchannel/views/realtime/queues/view.html/view.html','addItem','src/js/modules/main/apps/voice/views/voiceQueues/edit/view.html/view.html','Channel\x20','\x27text\x27','EditWhatsappAccountAppintervalDialogController','Close\x20Contact','Variable\x20properly\x20created','addNewVtigerConfiguration','QueueCampaignHopperStatisticsController','/variables','src/js/modules/main/apps/openchannel/views/openchannelAccounts/create/dialog.html/dialog.html','integrations/freshdesk/configurations/:id/descriptions','SmsQueue\x20updated!','dialogflow_language','both','selectedInternalRoutes','voiceMusicOnHold@get','delete\x20SmsQueues','api/fax/reports/queue/describe','/metrics','Pacific/Niue','green-300-fg\x20icon-phone-hangup','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/view.html/view.html','exportSelectedIvrCampaignHopperBlacks','/queue_params','addNewNetwork','getVoicemailMessages','America/Glace_Bay','onSaveUserWhatsappQueue','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/whatsappAccounts.html/whatsappAccounts.html','STAFF.PERMISSIONS_WARNING_ENABLE_ALL','instant','chatQueues','exportSelectedVoiceRecordings','moveQueueCampaignHopperFinal','Dynamics365Configuration\x20deleted!','SYSTEM:GET_SECTIONS_PERMISSIONS','InboundRouteController\x20as\x20vm','api/rpc/agents','ur-IN','separatorKeys','api.userProfile.clone','sugarcrmAccount','delete\x20hopperFinal','Member\x20Report','SmsQueuesController\x20as\x20vm','lastPauseAt','rpcOpenchannelQueuesWaitingInteractions','SYSTEM:GETtrunk','http://127.0.0.1:','GlobalCustomField\x20properly\x20saved!','DASHBOARDS.SEPTEMBER','queueCampaignHoppers','stateService','Javanese','IvrCampaign\x20properly\x20cloned','desk','api.faxQueue.save','api.voiceMail.save','vm.queryHopper.filter','Message\x20has\x20been\x20accepted!','SYSTEM:GET_OUTBOUNDROUTES','request','deselectDispositions','angucomplete-alt:changeInput','apps.tools.tags','getLogo','newHopper','ROUND\x20(','SYSTEM:GET_VOICEQUEUES','FreshsalesAccount\x20updated!','outboundDial','CONTACTMANAGER.EDIT_HOPPER','updateQueue','app.integrations.salesforceAccounts','Chinese,\x20Mandarin\x20(Simplified,\x20China)','CALLERID(all)=','eurgermanmale','api/version/restart','MailQueues','onSaveFaxQueue','TOOLS.NOTIFICATIONS.CONDITIONS_DELETED_SUCCESS_TITLE','pauseTypeFilter','$to','geEditor','ServicenowAccountsController','contact_import_error','/login?token&userId','api/chat/reports/queue/describe','addRecording','dashboardItems','apps.integrations.freshsalesAccounts','Miguel\x20(Spanish,\x20US,\x20Male)','paginatedAgents','MailAccountsController\x20as\x20vm','Serbo-Croatian','selectedOutboundRouteApps','READ_PERMISSION','UserOpenchannelDashboardGeneralController\x20as\x20vm','rundialog','deleteSmsAccount','api/automations/:id/actions','showFooter','api/voice/queues/:id/blacklists','selectAllInternalRoutes','\x27report_jscripty_sessions\x27','newContact','SYSTEM:DELETEdisposition','ANALYTICS.NO_METRIC_FOUND','\x27SIP\x27','deleteSelectedQueueCampaigns','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/goto/dialog.html/dialog.html','general','Chinese\x20(Cantonese)','selectedMusicOnHolds','\x27update\x27','ZohoAccount\x20properly\x20created','INTEGRATIONS.SALESFORCEACCOUNTS','TOOLBAR.FINNISH','api/auth/local','INTEGRATIONS.VTIGERACCOUNTS','WhatsappCannedAnswer\x20properly\x20deleted!','Filiz','exportSelectedNetworks','getUserMedia','api.sound.delete','createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country','aws_text_type','webrtc::call','SYSTEM:GETVARIABLES','/queueCampaigns','Widget\x20deleted!','keyBy','European\x20French\x20Female','SYSTEM:GETfaxAccount','Voicemail\x20updated!','Numbers\x20to\x2099','Asia/Khandyga','icon-fire','Pacific/Gambier','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','saveAllCondition','src/js/modules/main/apps/voice/views/voicePrefixes/voicePrefixes.html/voicePrefixes.html','schedule','api/variables/:id/clone','arrayannounce_position','api.intFreshsalesConfiguration.delete','src/js/modules/main/apps/settings/views/license/update/dialog.html/dialog.html','api.intZohoAccount.update','api/rpc/mail/queues/:id/notify','NotificationController','delete\x20VoiceRecordings','/ivrCampaigns','\x27us-west-2\x27','apps.marketplace','websocket','LocalNET','showSmsInteraction','api.intZendeskConfiguration.update','Queue\x20properly\x20updated!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperFinal?','runTranscribe','api/integrations/zendesk/configurations/describe','VOICE.RUNTRANSCRIBE_VOICERECORDING','mail','telegram','Users','CreateOrEditWhatsappQueueDialogController','delete\x20vtigerAccount','user:called','saveSchedule','\x27ASC\x27','Fields\x20saved!','newSmtp','gotop','onUpdateSmsInteraction','Answer','avgHoldTime','gotoUsers','api/whatsapp/reports/queue/:id/clone','AbandonedCallsMotionDialerRealtimeController\x20as\x20vm','TOOLS.NEW_CUSTOMDASHBOARD','\x20deleted!','-message','getText','WhatsappAccount\x20properly\x20deleted!','TOOLBAR.NOTIFICATION_TITLE_RECIPIENT','voiceChanSpy','deselectUserProfiles','api/mail/out_servers/:id','Chinese\x20(China)','api/voice/prefixes/:id','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20musiconholds?','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/agent/dialog.html/dialog.html','delete\x20Sounds','src/js/modules/auth/services/hotdesk/dialog.html/dialog.html','selectAllLists','Spanish','api/attachments/:id/clone','api/integrations/freshsales/configurations/:id/subjects','icon-cog','api/migrations/:id','src/js/modules/main/apps/tools/views/triggers/edit/anyconditions/create/dialog.html/dialog.html','deselectTemplates','Fewest\x20Calls','Cannot\x20upload\x20the\x20plugin','ReportController','\x27leastrecent\x27','DASHBOARDS.ENABLED','id,name,strategy,type','voice_outbound_channel:save','api.intZohoAccount.save','delete\x20servicenowAccount','whatsapp_queue:save','deleteUser','selectedContexts','','QueuesWhatsappRealtimeController','DASHBOARDS.READ','children','intZohoField','TCL:\x20vm.recording[vm.path]','scales','selectedChatWebsiteProactiveActions','values','SYSTEM:GETmailQueue','CompanyId','\x27power\x27','arrayrandom_periodic_announce','angularMaterialFormBuilder','getColumns','metrics','CreateOrEditTriggerDialogController','api/voice/mohs/describe','VariablesController','ivrCampaignHopperBlacks','SYSTEM:DELETEanalyticMetric','ANALYTICS.METRICS','isActive','api.chatAccounts.account','updatedAt','onChangeSection','selectAllInboundRoutes','ZendeskAccountController','SmsQueue\x20properly\x20saved!','id,firstName,lastName,phone,email','The\x20whatsappAccount\x20will\x20be\x20deleted.','audiooutput','uniqueIdentifier','\x27voice_recordings\x27','Malay\x20(Malaysia)','EditInternalAppqueueDialogController','src/js/modules/main/apps/integrations/views/deskAccounts/create/dialog.html/dialog.html','+14:00','createdAt,updatedAt,id,service,name,email,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,description','newDynamics365Configuration','/dynamics365Accounts','outboundDropCallsDayCallersExit','api/fax/applications/:id/clone','getFinals','STAFF.EDIT_TELEPHONE','selectSession\x20->\x20session','api/whatsapp/reports/transfer/describe','AgentsMotionDialerRealtimeController\x20as\x20vm','getAttachments','createOrEditChatWebsiteChatCannedAnswer','ContactsController','deselectOpenchannelQueues','TOOLS.CANNEDANSWERS','TOOLS.NOTIFICATIONS.TRIGGERS_DELETE_MESSAGE','api.action.delete','Some\x20resources\x20enabled','emit','sound.name','api/sms/messages/:id/reject','api.pm2.save','voicePrefixagentaddController','Message','state','clickOutsideToClose','api/integrations/servicenow/configurations/:id/clone','EU\x20(London)','\x27yes\x27','app.voice.outboundroutes.edit','Plugins','terminate\x20->\x20session','Liv','api/chat/proactive_actions/describe','newMailCannedAnswer','exportSelectedQueueCampaignHoppers','editXML','paginate','STAFF.SELECTED_QUEUES_','motion2.home.','Asia/Pontianak','ChatWebsiteonlineFormController','noauth','Brazilian','onInteractionOpen','defaultPageTitle','countContactsIvrCampaignHopperFinal','delete\x20InternalRoutes','Dashboard','wechat','CustomDashboardController\x20as\x20vm','Twi','api.mailSubstatus.update','api/sms/accounts/:id/applications','deleteconfirm','app.contactmanager.contacts','class','Penelope','api/users/:id/password','available','api/openchannel/accounts/:id/interactions','Delete\x20Interval','forms','api/mail/interactions/:id/clone','app.fax.faxAccounts','ServicenowAccount\x20properly\x20tested','gotoPreviousStep','app.sms.smsAccounts.edit','Asia/Jerusalem','_options','addNewSmsAccount','api/migrations/:id/clone','Peer','app.staff.teams','api/fax/accounts/addaccountapplications','createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg','answers','priorities','callerID','jscriptySessions','removeItems','selectAllSmsAccounts','api.network.save','WHATSAPP.NEW_WHATSAPPACCOUNT','enabled','PLUGINS.PLUGINS','apps.motiondialer.ivrCampaigns','Square\x20ODBC\x20properly\x20tested','CreateOrEditInternalRouteDialogController','customDashboard','api/users/:id','question','createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl','Persian','escapeToClose','SmsAccount\x20properly\x20saved!','tcp','hiddendigitsnum','cm_contacts','ZohoAccounts','id,name,dialActive','awsPollyRegion','/triggers','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/noop/dialog.html/dialog.html','api.trunk.clone','IvrCampaignController\x20as\x20vm','SIP','/chatQueues','refreshAbandonedCalls','SETTINGS.EDIT_CLOUDPROVIDER','TOOLS.EDIT_TEMPLATE','api/rpc/openchannel/queues','directive','deleteContact','onSaveVoiceQueue','INTEGRATIONS.SERVICENOWACCOUNTS','COUNT','The\x20mailCannedAnswer\x20will\x20be\x20deleted.','Arabic\x20(Iraq)','AgentBusyFactor','selectAllUsers','shortTime','onMessageSave','serverDateOffset','Verdana,Geneva,sans-serif','hasSectionsPermissions','newDashboardItem','apiRoute','src/js/modules/main/apps/fax/views/faxQueues/faxQueues.html/faxQueues.html','cloneTrunk','onSaveMailQueueChannel','Interaction\x20properly\x20closed!','fromJson','selectedZohoAccounts','America/Fort_Nelson','newMusicOnHold','Europe/Dublin','UserWhatsappQueue','UserProfile\x20properly\x20created','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20pauses?','projectId','ChatInternalMessageId','The\x20context\x20will\x20be\x20deleted.','smtps','squareMessage','treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20','settings','ms-form-wizard-form','.csv','msNavigation::collapse','ivrTotalCallsDays','whatsapp_queue_waiting_interaction:remove','hasIdAnswers','
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Queue:\x20','app/core/directives/ms-widget-engine/ms-widget-engine-','recentEmojis',',xX,,,300,,,,,','createOrEditTrunk','mailInteraction@get','osName','indigo-A100-fg','onRemoveUserWhatsappQueue','/projects','QuickFilterManager::setPlaceholder','Network\x20properly\x20saved!','deleteSmsQueue','createOrEditServicenowAccount','id,exten','getUserDeviceMediaExt','getSmsAccountLabel','results','EditFaxAccountAppgotoifDialogController','deselectMailQueues','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeWhatsapp/dialog.html/dialog.html','id,phone,scheduledat,priority,recallme,VoiceQueueId,CampaignId,UserId','createdAt,updatedAt,id,save_name,converted_format,name,audio,description','api.whatsappQueue.update','api.pause.update','saveOutboundRoute','TOOLS.NEW_INTERVAL','What\x20would\x20you\x20name\x20your\x20company?','getActiveItem','api/whatsapp/reports/queue/:id','queueLogin','addNewscreenRecording','getDeskAccounts','AgentsMailRealtimeController','icon-checkbox-multiple-marked-outline','QueueCampaignteamaddController','saveOpenchannelCannedAnswer','parser','api.intServicenowConfiguration.delete','TCL:\x20vm.path','api/integrations/zoho/fields/:id/clone','getVoicemails','+06:30','newCustomField','api/users/:id/teams','No\x20images','replace','EditWhatsappAccountAppgotoifDialogController','Re:','OpenchannelQueue','CreateOrEditMetricDialogController','scheduledCalls','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20zohoConfiguration?','api/chat/groups/:id/messages','pm2','propertiesDefault','getProcesses','Delete\x20CustomDashboard','deleteZohoAccount','deskConfiguration','QueuesMailRealtimeController','sep','api.chatProactiveAction.update','api/cm/lists/:id/contacts/csv','SMS.SMSQUEUES','Are\x20you\x20sure\x20want\x20to\x20stop\x20the\x20plugin\x20attached\x20process?','numbersto9','Asia/Irkutsk','rpcSmsQueues','dayOfWeekFrom','VoiceMusicOnHoldId','onSearchBarExpand','zohoAccount','changepassworddialog'];(function(_0x204061,_0x4ceba9){const _0x10c680=function(_0x5cbd5e){while(--_0x5cbd5e){_0x204061['push'](_0x204061['shift']());}};_0x10c680(++_0x4ceba9);}(a0_0x10c6,0x139));const a0_0x5cbd=function(_0x204061,_0x4ceba9){_0x204061=_0x204061-0x15e;let _0x10c680=a0_0x10c6[_0x204061];return _0x10c680;};const a0_0x1c5fe4=a0_0x5cbd;(self[a0_0x1c5fe4(0xeb1)]=self[a0_0x1c5fe4(0xeb1)]||[])[a0_0x1c5fe4(0x2785)]([[0x8f],{0x2069:(_0x3a5bc0,_0x53d47d,_0x5074a3)=>{const _0x5537c6=a0_0x1c5fe4;'use strict';var _0x1eff64=_0x5074a3(0x304);;_0x412fcf['$inject']=[_0x5537c6(0x26d0)];function _0x412fcf(_0x2a6bfe){const _0x27fed1=_0x5537c6;_0x2a6bfe['interceptors'][_0x27fed1(0x2785)](_0x27fed1(0xab6));}const _0x438af2=_0x412fcf;;_0x22f002[_0x5537c6(0x15b6)]=[_0x5537c6(0x108a)];function _0x22f002(_0x2ccdc7){const _0x5c30ba=_0x5537c6,_0x4dca1d={'to':function(_0x326139){const _0x57aab9=a0_0x5cbd;return _0x326139[_0x57aab9(0xc6b)]===!![];}},_0x25965b={'to':function(_0x4be23d){const _0x3443f1=a0_0x5cbd;return _0x4be23d[_0x3443f1(0x16b6)]!=='app.login';}},_0x176ef={'to':function(_0x3ec6cb){const _0x380841=a0_0x5cbd;return _0x3ec6cb[_0x380841(0xad0)];}},_0x642bcc={'to':function(_0x3b4c64){const _0xaad309=a0_0x5cbd;return _0x3b4c64['parent'][_0xaad309(0x16b6)]===_0xaad309(0x1647);}},_0x353656=function(_0x312742){const _0x34606d=a0_0x5cbd,_0x11344d=_0x312742[_0x34606d(0x1da7)]()['get'](_0x34606d(0x1774)),_0x27242b=_0x312742[_0x34606d(0x1fe4)][_0x34606d(0x25e2)];return!_0x11344d[_0x34606d(0x8c3)]()?_0x27242b[_0x34606d(0x251d)](_0x34606d(0xf2e),undefined,{'reload':!![]}):_0x11344d[_0x34606d(0x227)]()[_0x34606d(0x1c4)](function(){const _0x32c04a=_0x34606d;return _0x27242b[_0x32c04a(0x251d)](_0x32c04a(0xf2e),undefined,{'reload':!![]});});},_0x3b5dd0=function(_0x16924f){const _0x2e2e80=a0_0x5cbd,_0x5256c3=_0x16924f[_0x2e2e80(0x1da7)]()[_0x2e2e80(0xbf7)](_0x2e2e80(0x1774)),_0x7dc828=_0x16924f['router'][_0x2e2e80(0x25e2)],_0x557ea9=_0x16924f[_0x2e2e80(0x2600)]();if(_0x5256c3[_0x2e2e80(0x22b6)]('agent')&&_0x557ea9[_0x2e2e80(0x16b6)]!='app.dashboards.general')return _0x7dc828['target'](_0x2e2e80(0x1647),{'redirect':![]},{'reload':!![]});},_0x2f3009=function(_0xd2c1e){const _0x2d17d4=a0_0x5cbd,_0x1894df=_0xd2c1e[_0x2d17d4(0x1da7)]()[_0x2d17d4(0xbf7)]('Auth'),_0xc44730=_0xd2c1e['router'][_0x2d17d4(0x25e2)],_0x3ab114=_0xd2c1e[_0x2d17d4(0x2600)]();if(_0x1894df['hasRole'](_0x2d17d4(0xebe))){if(!_0x1894df[_0x2d17d4(0x39e)](_0x3ab114[_0x2d17d4(0xad0)]))return _0xc44730['target']('app.dashboards.general',{'redirect':![]},{'reload':!![]});else{const _0x3db2fb=_0xd2c1e[_0x2d17d4(0x1dfe)]()['id']?Number(_0xd2c1e[_0x2d17d4(0x1dfe)]()['id']):undefined;if(_0x3db2fb)return _0x1894df[_0x2d17d4(0x14fb)](_0x3ab114['permissionId'],_0x3db2fb)['catch'](function(){const _0x4af18f=_0x2d17d4;return _0xc44730['target'](_0x3ab114[_0x4af18f(0xbfb)]['name'],{'redirect':![]},{'reload':!![]});});}}},_0x431c41=function(_0x5d7661){const _0x3ac4c4=a0_0x5cbd,_0x55497a=_0x5d7661[_0x3ac4c4(0x1da7)]()[_0x3ac4c4(0xbf7)](_0x3ac4c4(0x1774)),_0x552bcd=_0x5d7661['router']['stateService'];if(_0x55497a['hasRole'](_0x3ac4c4(0xebe))&&!_0x55497a['hasPermission'](0x64))return _0x552bcd[_0x3ac4c4(0x251d)](_0x3ac4c4(0x1647),{'redirect':![]},{'reload':!![]});};_0x2ccdc7[_0x5c30ba(0x1b76)](_0x4dca1d,_0x353656),_0x2ccdc7[_0x5c30ba(0x24b9)](_0x25965b,_0x3b5dd0),_0x2ccdc7[_0x5c30ba(0x23cb)](_0x176ef,_0x2f3009),_0x2ccdc7[_0x5c30ba(0x23cb)](_0x642bcc,_0x431c41);}const _0x34bac1=_0x22f002;var _0x5d5d4a=_0x5074a3(0x1956),_0x39641b=_0x5074a3['n'](_0x5d5d4a),_0x1f49e9=_0x5074a3(0x17d),_0x543b5a=_0x5074a3['n'](_0x1f49e9);;const _0xa32ae9=_0x5074a3['p']+_0x5537c6(0x2670);;_0x54228d['$inject']=['$mdDialog',_0x5537c6(0x173),'$q',_0x5537c6(0x142b),_0x5537c6(0x1f10),_0x5537c6(0x22bf)];function _0x54228d(_0x1d01f9,_0x2e0030,_0x24b8eb,_0x47a19d,_0x544342,_0x56bdda){let _0x25a1ce;const _0x387a13={'getToken':_0x4c619b,'getCurrentUser':_0xf73c37,'getPermissions':_0x306b4e,'hasChildrenPermissions':_0x13bc8c,'hasModulePermissions':_0x4d3fcc,'hasModulesPermissions':_0x1f3e97,'hasRole':_0x5b332c,'hasPermission':_0x466534,'hasResourcePermission':_0x2442d1,'hasSectionPermissions':_0x22d55f,'hasSectionsPermissions':_0x8d4cb4,'isAgent':_0x24cd69,'isAdmin':_0xb384dd,'isLoggedIn':_0x52b3d6,'isTelephone':_0x4dab37,'isUser':_0x45cae2,'login':_0x4d5e2a,'logout':_0x1993f6,'parseCrudPermissions':_0x5476ca,'queueLogin':_0x3f164c,'reloadPermissions':_0x2fe419,'removeCookies':_0x10d00c,'retrieveUser':_0x2151f0,'setCurrentUser':_0xfa22dc,'getAuthenticationType':_0x1f49bf,'loginSSO':_0x3d87db};return _0x387a13;function _0x4c619b(){const _0x460608=a0_0x5cbd;return _0x2e0030['get'](_0x460608(0x1b26));}function _0xf73c37(){return _0x25a1ce;}function _0xfa22dc(_0x53f758){const _0x5b3f26=a0_0x5cbd;_0x25a1ce=_0x39641b()[_0x5b3f26(0x9c1)](_0x25a1ce,_0x53f758);}function _0x3f164c(_0x41fff9){return _0x24b8eb(function(_0x37f3f4,_0x2e40c4){const _0x35a41e=a0_0x5cbd;_0x47a19d['user'][_0x35a41e(0x22c4)]({'id':_0x25a1ce['id'],'device':_0x35a41e(0x152f),'intrf':_0x41fff9})[_0x35a41e(0x1d77)][_0x35a41e(0x1cb0)](function(_0x3a2a4d){_0x37f3f4(_0x3a2a4d);})[_0x35a41e(0x1c4)](function(_0x2db83b){_0x2e40c4(_0x2db83b);});});}function _0x532be2(){return _0x24b8eb(function(_0x2ed853,_0x47f4fd){const _0xcea1a8=a0_0x5cbd;_0x47a19d[_0xcea1a8(0xebe)][_0xcea1a8(0x1366)]({'id':_0x25a1ce['id'],'device':_0xcea1a8(0x152f)})['$promise'][_0xcea1a8(0x1cb0)](function(){_0x2ed853();})['catch'](function(_0x4a6ca1){_0x47f4fd(_0x4a6ca1);});});}function _0x357a20(_0x170c66){return _0x24b8eb(function(_0x1ca559,_0x1e1478){const _0x4c01b1=a0_0x5cbd,_0x4702f8={'online':_0x170c66,'lastLoginAt':_0x170c66?_0x543b5a()()[_0x4c01b1(0x1f31)](_0x4c01b1(0x2e8)):undefined};_0x47a19d['user'][_0x4c01b1(0x687)]({'id':_0x25a1ce['id']},_0x4702f8)[_0x4c01b1(0x1d77)][_0x4c01b1(0x1cb0)](function(_0x54b9bd){_0x1ca559(_0x54b9bd);})[_0x4c01b1(0x1c4)](function(_0x392c4b){_0x1e1478(_0x392c4b);});});}function _0x4d5e2a(_0x55badf){return _0x24b8eb(function(_0x2d399f,_0xb9ef9){const _0xae3eaf=a0_0x5cbd;_0x47a19d[_0xae3eaf(0x2759)][_0xae3eaf(0xf11)](_0x55badf)[_0xae3eaf(0x1d77)][_0xae3eaf(0x1cb0)](function(_0xe48353){const _0x1d015a=_0xae3eaf;return _0x2e0030[_0x1d015a(0x135f)](_0x1d015a(0x1b26),_0xe48353['token']),_0x47a19d['user'][_0x1d015a(0xbf7)]({'id':_0xe48353['id']})[_0x1d015a(0x1d77)];})[_0xae3eaf(0x1cb0)](function(_0x159018){const _0x197e9e=_0xae3eaf;_0x25a1ce=_0x159018,_0x25a1ce[_0x197e9e(0x24a2)]=_0x543b5a()()[_0x197e9e(0x1f31)](_0x197e9e(0x2e8)),_0x5e9266('LOCAL_LOGIN');})[_0xae3eaf(0x1cb0)](function(){const _0x51fdea=_0xae3eaf;if(_0x24cd69()&&_0x25a1ce[_0x51fdea(0xed9)]===0x1&&_0x25a1ce[_0x51fdea(0xc1b)])return _0x1d01f9[_0x51fdea(0xe27)]({'controller':_0x51fdea(0x1c9c),'controllerAs':'vm','templateUrl':_0xa32ae9,'parent':angular['element'](_0x56bdda[_0x51fdea(0x1ed9)]),'clickOutsideToClose':![],'resolve':{'telephones':[_0x51fdea(0x1e0b),function(_0x1f0419){const _0x4365a0=_0x51fdea;return _0x1f0419[_0x4365a0(0x19a3)](_0x4365a0(0x1c86),{'fields':'id,fullname,name,internal','role':_0x4365a0(0x2922),'nolimit':!![]});}]}});})[_0xae3eaf(0x1cb0)](function(_0x51bf0b){const _0x3f49cc=_0xae3eaf;if(_0x24cd69()&&_0x25a1ce[_0x3f49cc(0xed9)]!==0x0)return _0x3f164c(_0x51bf0b);else{if(_0xb384dd()||_0x45cae2())return _0x357a20(!![]);else return;}})[_0xae3eaf(0x1cb0)](function(_0x15e77d){_0x25a1ce=_0x39641b()['assign'](_0x25a1ce,_0x15e77d),_0x2d399f();})[_0xae3eaf(0x1c4)](function(_0x4acf84){_0xb9ef9(_0x4acf84);});});}function _0x10d00c(){const _0xb798aa=a0_0x5cbd;_0x2e0030[_0xb798aa(0x152a)](_0xb798aa(0x1b26)),_0x25a1ce&&(_0x544342[_0xb798aa(0x1b83)][_0xb798aa(0xc3e)](_0xb798aa(0xff8)+_0x25a1ce['id']),_0x544342[_0xb798aa(0x1b83)][_0xb798aa(0xc3e)](_0xb798aa(0x1071)),_0x25a1ce=null);}function _0x1993f6(_0x11ebc3){return _0x24b8eb(function(_0x3ba20f,_0x3d6e21){const _0xc7a75e=a0_0x5cbd;_0x11ebc3?(_0x10d00c(),_0x3ba20f()):_0x24b8eb[_0xc7a75e(0x19a3)]()[_0xc7a75e(0x1cb0)](function(){const _0x1d89f5=_0xc7a75e;if(_0x24cd69()&&_0x25a1ce[_0x1d89f5(0xed9)]!==0x0)return _0x532be2();else{if(_0xb384dd()||_0x45cae2())return _0x357a20(![]);else return;}})[_0xc7a75e(0x1cb0)](function(){_0x10d00c(),_0x3ba20f();})['catch'](function(_0x4e80af){_0x3d6e21(_0x4e80af);});});}function _0x52b3d6(){return _0x4c619b()?!![]:![];}function _0x24cd69(){const _0x2efa1d=a0_0x5cbd;return _0x25a1ce[_0x2efa1d(0x26e6)]===_0x2efa1d(0x1eff);}function _0xb384dd(){const _0x1be1df=a0_0x5cbd;return _0x25a1ce['role']===_0x1be1df(0x1c60);}function _0x45cae2(){const _0x5acafb=a0_0x5cbd;return _0x25a1ce[_0x5acafb(0x26e6)]===_0x5acafb(0xebe);}function _0x4dab37(){const _0x20ef4f=a0_0x5cbd;return _0x25a1ce[_0x20ef4f(0x26e6)]===_0x20ef4f(0x2922);}function _0x2151f0(){return _0x24b8eb(function(_0x3a1c11,_0x41805c){const _0x1713ff=a0_0x5cbd;_0x47a19d[_0x1713ff(0xebe)][_0x1713ff(0x238d)]()[_0x1713ff(0x1d77)][_0x1713ff(0x1cb0)](function(_0x3b165f){const _0x5b4eb0=_0x1713ff;return _0x3b165f[_0x5b4eb0(0x26e6)]==='user'?_0x306b4e(_0x3b165f['userProfileId'])[_0x5b4eb0(0x1cb0)](function(_0x5e9409){const _0x17c0e8=_0x5b4eb0;return _0x3b165f[_0x17c0e8(0x6ef)]=_0x5e9409,_0x3b165f;}):_0x3b165f;})['then'](function(_0x4ac8da){_0x25a1ce=_0x4ac8da,_0x3a1c11(_0x25a1ce);})[_0x1713ff(0x1c4)](function(_0x2dfe5f){_0x41805c(_0x2dfe5f);});});}function _0x5b332c(_0x186c90){const _0xd4158f=a0_0x5cbd;return _0x25a1ce?_0x25a1ce[_0xd4158f(0x26e6)]===_0x186c90:![];}function _0x466534(_0x56cb70){const _0x5ba7a2=a0_0x5cbd;return _0x25a1ce?_0x39641b()[_0x5ba7a2(0x250a)](_0x25a1ce[_0x5ba7a2(0x6ef)],_0x56cb70):![];}function _0x306b4e(_0x2bf5cb){let _0x26a5c2=[];return _0x24b8eb(function(_0x1bfa0e,_0x519f98){const _0x1c09e1=a0_0x5cbd;return!_0x2bf5cb&&_0x1bfa0e(_0x26a5c2),_0x47a19d[_0x1c09e1(0x44a)][_0x1c09e1(0x10b2)]({'id':_0x2bf5cb})[_0x1c09e1(0x1d77)][_0x1c09e1(0x1cb0)](function(_0x2bbb9f){const _0x58d9d7=_0x1c09e1;for(let _0x3b57d1=0x0;_0x3b57d1<_0x2bbb9f[_0x58d9d7(0xfd0)];_0x3b57d1++){const _0x1ef2f6=_0x2bbb9f[_0x3b57d1];_0x26a5c2[_0x58d9d7(0x2785)](_0x1ef2f6[_0x58d9d7(0xec6)]),_0x1ef2f6[_0x58d9d7(0x26fd)]&&(_0x26a5c2=_0x39641b()[_0x58d9d7(0x298a)](_0x26a5c2,_0x1ef2f6['subsections']));}return _0x26a5c2;})['then'](function(_0x500d71){_0x1bfa0e(_0x500d71);})['catch'](function(_0x51c14d){const _0x30b11a=_0x1c09e1;_0x519f98(_0x30b11a(0x1b71),_0x51c14d);});});}function _0x13bc8c(_0x2aac0a){const _0x1a867b=a0_0x5cbd;if(!_0x2aac0a)return![];return _0x39641b()[_0x1a867b(0x727)](_0x2aac0a,function(_0x16101b){return _0x466534(_0x16101b);});}function _0x2fe419(){return _0x24b8eb(function(_0x90c3be,_0x38c506){const _0x155985=a0_0x5cbd;_0x306b4e(_0x25a1ce[_0x155985(0x13c1)])[_0x155985(0x1cb0)](function(_0x1b1eac){const _0x116b3d=_0x155985;_0x25a1ce[_0x116b3d(0x6ef)]=_0x1b1eac,_0x90c3be();})[_0x155985(0x1c4)](function(_0x2bbb4b){_0x38c506(_0x2bbb4b);});});}function _0x5476ca(_0x4a9bf3){const _0x1ecec1=a0_0x5cbd;return _0xb384dd()?{'readOnly':![],'canEdit':!![],'canDelete':!![]}:!_0x4a9bf3?{'readOnly':!![],'canEdit':![],'canDelete':![]}:{'readOnly':_0x39641b()[_0x1ecec1(0x250a)](_0x4a9bf3,'r')&&_0x4a9bf3[_0x1ecec1(0xfd0)]===0x1?!![]:![],'canEdit':_0x39641b()[_0x1ecec1(0x250a)](_0x4a9bf3,'e')?!![]:![],'canDelete':_0x39641b()[_0x1ecec1(0x250a)](_0x4a9bf3,'d')?!![]:![]};}function _0x2442d1(_0x5eb1ed,_0x4037b5){return _0x24b8eb(function(_0x386964,_0x1efba4){const _0x43b94d=a0_0x5cbd;return _0x47a19d['userProfileSection'][_0x43b94d(0xbf7)]({'userProfileId':_0x25a1ce[_0x43b94d(0x13c1)],'sectionId':_0x5eb1ed})[_0x43b94d(0x1d77)][_0x43b94d(0x1cb0)](function(_0x142990){const _0x165172=_0x43b94d,_0x46f516=_0x142990[_0x165172(0x2214)][0x0];if(_0x46f516[_0x165172(0x12f4)])_0x386964();else return _0x47a19d[_0x165172(0x1198)][_0x165172(0xbf7)]({'sectionId':_0x46f516['id'],'nolimit':!![]})[_0x165172(0x1d77)]['then'](function(_0x127b86){const _0x3f8008=_0x165172,_0x3c1dd2=_0x127b86[_0x3f8008(0x2214)];_0x39641b()[_0x3f8008(0x727)](_0x3c1dd2,[_0x3f8008(0x2982),_0x4037b5])?_0x386964():_0x1efba4();});})[_0x43b94d(0x1c4)](function(_0x3d9402){const _0x201a0e=_0x43b94d;_0x1efba4(_0x201a0e(0x1b71),_0x3d9402);});});}function _0x22d55f(_0x2b8314){return _0x24b8eb(function(_0x326cb2,_0x15e1c7){const _0x16eda8=a0_0x5cbd,_0x2223f1={};return _0x2fe419()[_0x16eda8(0x1cb0)](function(){const _0xe3300c=_0x16eda8;_0x39641b()[_0xe3300c(0x250a)](_0x25a1ce[_0xe3300c(0x6ef)],_0x2b8314)&&(_0x2223f1[_0x2b8314]=!![]),_0x326cb2(_0x2223f1);})[_0x16eda8(0x1c4)](function(_0x1c2ff9){_0x15e1c7(_0x1c2ff9);});});}function _0x8d4cb4(_0x35f177){return _0x24b8eb(function(_0x475a58,_0x2f3f93){const _0x4f5ea7=a0_0x5cbd,_0x18a346={};if(_0xb384dd())_0x35f177[_0x4f5ea7(0xf90)](function(_0x1f257a){_0x18a346[_0x1f257a]=!![];}),_0x475a58(_0x18a346);else return _0x2fe419()[_0x4f5ea7(0x1cb0)](function(){const _0xb811a9=_0x4f5ea7;_0x35f177[_0xb811a9(0xf90)](function(_0x158833){const _0x232fd7=_0xb811a9;_0x39641b()[_0x232fd7(0x250a)](_0x25a1ce['permissions'],_0x158833)&&(_0x18a346[_0x158833]=!![]);}),_0x475a58(_0x18a346);})['catch'](function(_0x365254){_0x2f3f93(_0x365254);});});}function _0x4d3fcc(_0x38d8ed){return _0x24b8eb(function(_0x53f5b1,_0x5a8f9c){const _0x52e033=a0_0x5cbd;_0xb384dd()?_0x53f5b1(!![]):_0x47a19d[_0x52e033(0x2199)][_0x52e033(0xbf7)]({'userProfileId':_0x25a1ce[_0x52e033(0x13c1)]})[_0x52e033(0x1d77)][_0x52e033(0x1cb0)](function(_0x37e621){const _0x579665=_0x52e033,_0x272380=_0x37e621&&_0x37e621['rows']?_0x37e621['rows']:[];if(!_0x39641b()[_0x579665(0xce9)](_0x272380)){const _0x464256=_0x39641b()[_0x579665(0x1c99)](_0x272380,function(_0x1e0a55){const _0x3c96fd=_0x579665;return _0x1e0a55[_0x3c96fd(0x281c)];});_0x53f5b1(_0x39641b()[_0x579665(0x727)](_0x464256,['category',_0x38d8ed]));}else _0x53f5b1(![]);})[_0x52e033(0x1c4)](function(_0x3ff0e5){_0x5a8f9c(_0x3ff0e5);});});}function _0x1f3e97(_0x42e0a8){return _0x24b8eb(function(_0x92e7ef,_0x53c99a){const _0x3b065f=a0_0x5cbd,_0x24f11c={};_0xb384dd()?(_0x42e0a8[_0x3b065f(0xf90)](function(_0x1ec8de){_0x24f11c[_0x1ec8de]=!![];}),_0x92e7ef(_0x24f11c)):_0x47a19d[_0x3b065f(0x2199)]['get']({'userProfileId':_0x25a1ce[_0x3b065f(0x13c1)]})['$promise'][_0x3b065f(0x1cb0)](function(_0x562651){const _0x36be6e=_0x3b065f,_0xf1ac9d=_0x562651&&_0x562651[_0x36be6e(0x2214)]?_0x562651[_0x36be6e(0x2214)]:[];if(!_0x39641b()[_0x36be6e(0xce9)](_0xf1ac9d)){const _0x5725dd=_0x39641b()(_0xf1ac9d)[_0x36be6e(0x1c99)](function(_0x27ff36){const _0xc00b7=_0x36be6e;return _0x27ff36['enabled']&&_0x39641b()[_0xc00b7(0x250a)](_0x42e0a8,_0x27ff36[_0xc00b7(0x12aa)]);})['uniqBy'](function(_0x409815){const _0x22c11a=_0x36be6e;return _0x409815[_0x22c11a(0x12aa)];})['map'](function(_0x55bc61){const _0x8d9cd6=_0x36be6e;return _0x55bc61[_0x8d9cd6(0x12aa)];})[_0x36be6e(0x327)]();_0x5725dd[_0x36be6e(0xf90)](function(_0x5e4d0a){_0x24f11c[_0x5e4d0a]=!![];}),_0x92e7ef(_0x24f11c);}else _0x92e7ef({});})[_0x3b065f(0x1c4)](function(_0x1a7441){_0x53c99a(_0x1a7441);});});}function _0x1f49bf(){const _0x548b83=a0_0x5cbd;return _0x544342[_0x548b83(0x1b83)][_0x548b83(0x1071)]||_0x548b83(0xd1c);}function _0x5e9266(_0x357edd){const _0x7dedea=a0_0x5cbd;_0x544342[_0x7dedea(0x1b83)][_0x7dedea(0x1071)]=_0x357edd;}function _0x3d87db(_0xcdc8e9){const _0x7f871c=a0_0x5cbd;return _0x5e9266(_0x7f871c(0x1567)),_0x7f871c(0x1ff8)+_0xcdc8e9;}}const _0x6726b8=_0x54228d;;_0x4671d[_0x5537c6(0x15b6)]=['$mdDialog',_0x5537c6(0x5f8)];function _0x4671d(_0x5d606a,_0x3786ac){const _0x5d79a6=_0x5537c6,_0x1be790=this;function _0x2e1225(_0x32e9d0){const _0x271df7=a0_0x5cbd;_0x5d606a[_0x271df7(0x1426)](_0x32e9d0);}_0x1be790[_0x5d79a6(0x5f8)]=_0x3786ac,_0x1be790[_0x5d79a6(0xda0)]=_0x2e1225,_0x3786ac['count']&&(_0x1be790['name']=_0x3786ac[_0x5d79a6(0x2214)][0x0][_0x5d79a6(0x16b6)]);}const _0x43d701=_0x4671d;;_0x12fedf[_0x5537c6(0x15b6)]=['$rootScope','$q',_0x5537c6(0x173),_0x5537c6(0x1476),'Util'];function _0x12fedf(_0x50e0e0,_0x2c7f91,_0x500583,_0x4cf6a2,_0x139f46){let _0x1c7cf7;return{'request':function(_0x2e828a){const _0x588d7c=a0_0x5cbd,_0x584ba6=_0x500583['get'](_0x588d7c(0x1b26));return _0x2e828a[_0x588d7c(0x5e7)]=_0x2e828a['headers']||{},(![]||_0x139f46[_0x588d7c(0xb86)](_0x2e828a[_0x588d7c(0x135b)]))&&_0x584ba6&&(_0x2e828a[_0x588d7c(0x5e7)][_0x588d7c(0x18e0)]=_0x588d7c(0x1923)+_0x584ba6),_0x2e828a;},'responseError':function(_0x2aba5d){const _0x622b2e=a0_0x5cbd;switch(_0x2aba5d[_0x622b2e(0x291)]){case 0x191:_0x500583[_0x622b2e(0x152a)](_0x622b2e(0x1b26)),(_0x1c7cf7||(_0x1c7cf7=_0x4cf6a2['get'](_0x622b2e(0x406))))['go'](_0x622b2e(0xf2e));break;case 0x194:break;default:break;}return _0x2c7f91[_0x622b2e(0x988)](_0x2aba5d);}};}const _0x119b3d=_0x12fedf;;_0xf58513[_0x5537c6(0x15b6)]=['$window'];function _0xf58513(_0x127b91){const _0x1d5ae4={'safeCb':function(_0x55a6db){const _0xda321c=a0_0x5cbd;return angular[_0xda321c(0x1e2c)](_0x55a6db)?_0x55a6db:angular[_0xda321c(0x1234)];},'urlParse':function(_0x3042ef){const _0x4ff43f=a0_0x5cbd,_0x17b216=document['createElement']('a');return _0x17b216[_0x4ff43f(0x105b)]=_0x3042ef,_0x17b216[_0x4ff43f(0x17d8)]===''&&(_0x17b216['href']=_0x17b216[_0x4ff43f(0x105b)]),_0x17b216;},'isSameOrigin':function(_0x4a5cb6,_0x19e096){const _0x23fe3c=a0_0x5cbd;return _0x4a5cb6=_0x1d5ae4[_0x23fe3c(0x183c)](_0x4a5cb6),_0x19e096=_0x19e096&&[][_0x23fe3c(0x298a)](_0x19e096)||[],_0x19e096=_0x19e096[_0x23fe3c(0x1de2)](_0x1d5ae4[_0x23fe3c(0x183c)]),_0x19e096[_0x23fe3c(0x2785)](_0x127b91[_0x23fe3c(0x2404)]),_0x19e096=_0x19e096[_0x23fe3c(0x1c99)](function(_0x13acf1){const _0x3dc49a=_0x23fe3c,_0x2df95a=_0x4a5cb6[_0x3dc49a(0x172a)]===_0x13acf1[_0x3dc49a(0x172a)],_0x2c28dc=_0x4a5cb6[_0x3dc49a(0x2276)]===_0x13acf1[_0x3dc49a(0x2276)],_0x3f9459=_0x4a5cb6['port']===_0x13acf1[_0x3dc49a(0x477)]||_0x13acf1['port']===''&&(_0x4a5cb6['port']==='80'||_0x4a5cb6[_0x3dc49a(0x477)]===_0x3dc49a(0x2138));return _0x2df95a&&_0x2c28dc&&_0x3f9459;}),_0x19e096[_0x23fe3c(0xfd0)]>=0x1;}};return _0x1d5ae4;}const _0x3a7106=_0xf58513;;angular[_0x5537c6(0x9ab)]('app.auth',[])['config'](_0x438af2)[_0x5537c6(0x19fd)](_0x34bac1)[_0x5537c6(0x234a)](_0x5537c6(0x1774),_0x6726b8)[_0x5537c6(0x6e5)]('HotDeskDialogController',_0x43d701)['factory'](_0x5537c6(0xab6),_0x119b3d)[_0x5537c6(0x234a)](_0x5537c6(0xb64),_0x3a7106);var _0x466db3=_0x5074a3(0xca2),_0x5a67ab=_0x5074a3(0x1e94),_0x2f5c13=_0x5074a3(0x1e80),_0x3d253b=_0x5074a3(0x11ee),_0x5b7dab=_0x5074a3(0x36e),_0x2fa6fd=_0x5074a3(0x1bdb),_0x1704b8=_0x5074a3(0x1c17),_0x3e1c1a=_0x5074a3(0x813),_0x122f80=_0x5074a3(0xdff),_0x36dcea=_0x5074a3(0x251),_0x289af0=_0x5074a3(0xdf),_0x194361=_0x5074a3(0x1299),_0x1850b3=_0x5074a3(0x177),_0x1401c0=_0x5074a3(0x573);;function _0x26f349(){const _0x54fc45=_0x5537c6;let _0x300d8b={'disableCustomScrollbars':![],'disableMdInkRippleOnMobile':!![],'disableCustomScrollbarsOnMobile':!![]};function _0x232820(_0x4946d2){const _0x16cf37=a0_0x5cbd;_0x300d8b=angular[_0x16cf37(0x2765)]({},_0x300d8b,_0x4946d2);}function _0x2505cb(_0x5d036d){const _0x57b1ee=a0_0x5cbd;if(angular[_0x57b1ee(0x2051)](_0x300d8b[_0x5d036d]))return![];return _0x300d8b[_0x5d036d];}function _0x4f7073(_0x3fbf1f,_0x2897f1){_0x300d8b[_0x3fbf1f]=_0x2897f1;}this[_0x54fc45(0x1c22)]=function(){const _0x42e10f={'getConfig':_0x2505cb,'setConfig':_0x4f7073};return _0x42e10f;},this[_0x54fc45(0xa60)]=_0x232820;}const _0x1670b3=_0x26f349;;_0x538d1b[_0x5537c6(0x15b6)]=[_0x5537c6(0x40b),_0x5537c6(0x1880),_0x5537c6(0x6c4),_0x5537c6(0x2950)];function _0x538d1b(_0x3ef7f5,_0x596972,_0x2b27ed,_0x2646d7){const _0xfcad4f=_0x5537c6;_0x596972[_0xfcad4f(0x3cb)](!![]),_0x3ef7f5[_0xfcad4f(0xa60)]({'tabindex':![]}),_0x2646d7[_0xfcad4f(0xa60)]({'disableCustomScrollbars':![],'disableCustomScrollbarsOnMobile':!![],'disableMdInkRippleOnMobile':!![]}),_0x2b27ed[_0xfcad4f(0xa60)]({'wheelPropagation':!![]});}const _0x4fd259=_0x538d1b;;_0x10a6ba[_0x5537c6(0x15b6)]=['msUtils','motionGenerator','motionConfig'];function _0x10a6ba(_0x7dc062,_0x4b23f0,_0x24ddd1){const _0x4fb522=_0x5537c6;_0x4b23f0['generate']();if(_0x24ddd1[_0x4fb522(0x226a)](_0x4fb522(0xe7f))&&_0x7dc062[_0x4fb522(0xef3)]()){const _0x33087c=angular['element'](_0x4fb522(0x1ed9));_0x33087c[_0x4fb522(0x1fc9)](_0x4fb522(0xada),!![]);}_0x7dc062[_0x4fb522(0xef3)]()&&angular[_0x4fb522(0x1853)]('html')[_0x4fb522(0x1390)](_0x4fb522(0xe07));const _0xc29e9b=_0x7dc062[_0x4fb522(0x21b9)]();if(_0xc29e9b){const _0xa74d3e=_0xc29e9b[_0x4fb522(0x64f)]+'\x20'+_0xc29e9b[_0x4fb522(0x23cc)]+'\x20'+_0xc29e9b['os'];angular[_0x4fb522(0x1853)](_0x4fb522(0x1d35))[_0x4fb522(0x1390)](_0xa74d3e);}}const _0x5b3e40=_0x10a6ba;;_0x293f83[_0x5537c6(0x15b6)]=[_0x5537c6(0x1f10),_0x5537c6(0xcb9),_0x5537c6(0x1774),_0x5537c6(0x28b8),'fields',_0x5537c6(0x1fc2)];function _0x293f83(_0x575c45,_0x2b1353,_0x378852,_0x4ee6db,_0x3f8cc7,_0x1a79d1){const _0x41f28a=_0x5537c6,_0x2f715a=this;_0x2f715a[_0x41f28a(0xe76)]=_0x378852[_0x41f28a(0x21e8)](),_0x2f715a[_0x41f28a(0x1df4)]={'matchType':_0x41f28a(0x892),'conditions':[],'fields':_0x3f8cc7},_0x2f715a[_0x41f28a(0x902)]=_0x4ee6db,_0x2f715a[_0x41f28a(0x1a34)]=_0x171f5c,_0x2f715a[_0x41f28a(0x23c3)]=_0x35d0c4,_0x2f715a['clearConditions']=_0x44dc5c,_0x2f715a[_0x41f28a(0x1812)]=_0x1952d1,_0x2f715a[_0x41f28a(0xf3b)]=_0x4aeff5;function _0x171f5c(){const _0x5c3a09=_0x41f28a;if(_0x1a79d1){const _0x1c84a8=_0x23694d();typeof _0x1c84a8[_0x5c3a09(0x16ad)]!==_0x5c3a09(0x16b5)&&(_0x2f715a[_0x5c3a09(0x1df4)]=_0x39641b()[_0x5c3a09(0x9c1)](_0x2f715a[_0x5c3a09(0x1df4)],_0x1c84a8[_0x5c3a09(0x16ad)]));}}function _0x35d0c4(){const _0x1b9390=_0x41f28a,_0x2bb2fa=_0x39641b()[_0x1b9390(0x1c99)](_0x2f715a[_0x1b9390(0x1df4)][_0x1b9390(0x14dc)],[_0x1b9390(0x379),![]]);let _0x5742ba='['+_0x2f715a['searchOptions'][_0x1b9390(0x92b)]+']';const _0x26aa65=[];let _0xbfb10d='';_0x39641b()(_0x2bb2fa)[_0x1b9390(0x1374)]('name')[_0x1b9390(0xf90)](function(_0x3a9ccd){const _0x2502bb=_0x1b9390,_0x43c793=_0x3a9ccd[0x0],_0x2adcd5=_0x3a9ccd[_0x2502bb(0xfd0)]>0x1?!![]:![],_0x510894=_0x43c793[_0x2502bb(0xae2)][_0x2502bb(0xa9c)];if(_0x2adcd5){const _0x1ceed5=_0x39641b()(_0x3a9ccd)['groupBy'](function(_0x12eef8){const _0x171901=_0x2502bb;return _0x12eef8[_0x171901(0xae2)][_0x171901(0x1541)];})[_0x2502bb(0x1db)](function(_0x49346b){const _0x11c156=_0x2502bb;return _0x39641b()[_0x11c156(0x257)](_0x49346b)[_0x11c156(0x1de2)](function(_0x1a9c9b){const _0x4d7615=_0x11c156;return _0x1a9c9b[_0x4d7615(0xae2)]['value'];})['flattenDeep']()[_0x11c156(0x327)]();})[_0x2502bb(0x327)](),_0x8f7438=[];_0x39641b()[_0x2502bb(0x1be5)](_0x1ceed5)[_0x2502bb(0xf90)](function(_0x53c08a){const _0x3ccfb7=_0x2502bb,_0x38a326=_0x1ceed5[_0x53c08a];let _0xd4ad36=_0x53c08a;_0x39641b()['includes']([_0x3ccfb7(0x72d),'$in','$notIn'],_0x53c08a)?_0xd4ad36+='['+_0x38a326+']':_0x38a326[_0x3ccfb7(0xf90)](function(_0x3884dd){_0xd4ad36+='['+_0x3884dd+']';}),_0x8f7438['push'](_0xd4ad36);}),_0xbfb10d+=_0x510894+':='+_0x8f7438[_0x2502bb(0x1f66)](':=');}else _0xbfb10d=_0x510894+':='+_0x43c793[_0x2502bb(0xae2)]['operator']+'['+_0x43c793[_0x2502bb(0xae2)][_0x2502bb(0x327)]+']';_0x26aa65['push'](_0xbfb10d);}),_0x5742ba+=_0x26aa65[_0x1b9390(0x1f66)]('||'),_0x5b36c2(),_0x2b1353[_0x1b9390(0x1426)](_0x5742ba);}function _0x44dc5c(){const _0x2f317d=_0x41f28a;_0x2f715a[_0x2f317d(0x1df4)][_0x2f317d(0x14dc)]=[],_0x227a36();}function _0x1952d1(){_0x5b36c2(),_0x2b1353['hide']();}function _0x4aeff5(){const _0x4c9362=_0x41f28a;_0x2b1353[_0x4c9362(0x1426)](![]);}function _0x23694d(){const _0xea98=_0x41f28a,_0x4c63d7=_0x575c45[_0xea98(0x1b83)][_0xea98(0x2091)](_0xea98(0x1b80)+_0x1a79d1+':'+_0x2f715a['currentUser']['id']);return _0x4c63d7?JSON['parse'](_0x4c63d7):{};}function _0x48aaca(_0x4a6f04){const _0x3f131a=_0x41f28a;_0x575c45[_0x3f131a(0x1b83)][_0x3f131a(0x13a8)](_0x3f131a(0x1b80)+_0x1a79d1+':'+_0x2f715a[_0x3f131a(0xe76)]['id'],JSON[_0x3f131a(0x2701)](_0x4a6f04));}function _0x5b36c2(){const _0xe70be3=_0x41f28a;if(_0x1a79d1){const _0x2c36e7=_0x23694d();_0x2c36e7[_0xe70be3(0x16ad)]=_0x39641b()['omit'](_0x2f715a[_0xe70be3(0x1df4)],_0xe70be3(0x355)),_0x48aaca(_0x2c36e7);}}function _0x227a36(){const _0x56f874=_0x41f28a;if(_0x1a79d1){const _0x245bca=_0x23694d();delete _0x245bca['advancedSearch'];if(_0x245bca['query'])delete _0x245bca[_0x56f874(0xae2)]['search'];_0x48aaca(_0x245bca);}}}const _0x1d878c=_0x293f83;;_0x20c500['$inject']=[_0x5537c6(0x2168)];function _0x20c500(_0x2d003f){return{'restrict':'A','link':function(_0x1c8d29,_0x38263c,_0x4a073a){const _0x2de7ba=a0_0x5cbd;_0x1c8d29['$watch'](_0x4a073a[_0x2de7ba(0xd91)],function(_0x3bd1f4){_0x2d003f(function(){const _0x31691f=a0_0x5cbd;_0x3bd1f4?_0x38263c[0x0][_0x31691f(0xbfd)]():_0x38263c[0x0][_0x31691f(0x1b57)]();});});}};}const _0x4efee2=_0x20c500;var _0x86b41d=_0x5074a3(0x1433),_0xa64f92=_0x5074a3['n'](_0x86b41d);;_0x2be9e6[_0x5537c6(0x15b6)]=[_0x5537c6(0x2168),'$q',_0x5537c6(0x73d)];function _0x2be9e6(_0x21113f,_0x56b6b5,_0x38a016){return{'restrict':'E','compile':function(_0x234f67,_0x132dc0){const _0x5c0f4c=a0_0x5cbd;let _0x66add0;return!_0x132dc0[_0x5c0f4c(0x23ae)]&&(_0x66add0=_0x234f67[_0x5c0f4c(0x1d35)](),_0x234f67[_0x5c0f4c(0x999)]()),function(_0x147352,_0x279718,_0x2f139e){const _0x25a329=_0x5c0f4c;_0x2f139e[_0x25a329(0x23ae)]&&(_0x66add0=_0x147352[_0x25a329(0x674)](_0x2f139e[_0x25a329(0x23ae)]));const _0x4822b8=_0x147352[_0x25a329(0x674)](_0x2f139e['shouldInterpolate']);_0x56b6b5[_0x25a329(0xb20)](_0x66add0)[_0x25a329(0x1cb0)](function(_0x4f56dc){const _0x30fc37=_0x25a329;if(_0x4f56dc){_0x4822b8&&(_0x4f56dc=_0x38a016(_0x4f56dc)(_0x147352));const _0x3bda72=angular[_0x30fc37(0x1853)](_0x30fc37(0xb69));_0x279718[_0x30fc37(0x207)](_0x3bda72),_0x21113f(function(){_0x27e31b(_0x4f56dc,_0x3bda72);},0x22,![]);}});function _0x27e31b(_0x14beef,_0x22a78a){const _0x2c2e9e=_0x25a329,_0x4b1cc2=_0x22a78a[_0x2c2e9e(0x13b4)](_0x2c2e9e(0x23ae));let _0x1930a0=_0x14beef['split']('\x0a');_0x1930a0=_0x1930a0[_0x2c2e9e(0x1c99)](function(_0xc49ad9){const _0x3c260b=_0x2c2e9e;return _0xc49ad9[_0x3c260b(0x1730)]()[_0x3c260b(0xfd0)];});const _0x39f9ab=_0x1930a0[0x0][_0x2c2e9e(0x1b7f)](/^\s*/)[0x0],_0x1b990a=new RegExp('^'+_0x39f9ab);_0x1930a0=_0x1930a0['map'](function(_0x3f2302){const _0x2ae6c9=_0x2c2e9e;return _0x3f2302[_0x2ae6c9(0x288f)](_0x1b990a,'')[_0x2ae6c9(0x288f)](/\s+$/,'');});const _0x3b8d1d=_0xa64f92()[_0x2c2e9e(0x17fd)](_0x2f139e['language']||_0x2f139e['lang'],_0x1930a0[_0x2c2e9e(0x1f66)]('\x0a'),!![]);_0x3b8d1d[_0x2c2e9e(0x327)]=_0x3b8d1d[_0x2c2e9e(0x327)]['replace'](/=""<\/span>/gi,'')[_0x2c2e9e(0x288f)](_0x2c2e9e(0xe30),'')['replace'](_0x2c2e9e(0xf97),''),_0x4b1cc2['append'](_0x3b8d1d[_0x2c2e9e(0x327)])[_0x2c2e9e(0x1390)](_0x2c2e9e(0x17fd));}};}};}const _0x3ec407=_0x2be9e6;;const _0x16977e=_0x5074a3['p']+'src/js/modules/core/directives/ms-advanced-search/ms-advanced-search.html/ms-advanced-search.html';;_0x34db0e[_0x5537c6(0x15b6)]=[_0x5537c6(0x1ae),'$q',_0x5537c6(0x142b),'toasty'];function _0x49e4b1(){return{'restrict':'E','scope':{'options':'=','clearFilter':'&'},'controller':_0x34db0e,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x16977e};}function _0x34db0e(_0x1b6ea8,_0x4409f4,_0x16fda4,_0x442409){const _0x360381=_0x5537c6,_0x4fba66=this;_0x4fba66[_0x360381(0x1698)]=[{'type':_0x360381(0x1c5e),'symbol':'=','translate':_0x360381(0x1322),'excludeFrom':[_0x360381(0x1d50)]},{'type':_0x360381(0x15ce),'symbol':'≠','translate':_0x360381(0x4c7),'excludeFrom':[_0x360381(0x1d50)]},{'type':_0x360381(0xca4),'symbol':'∈','translate':'IS_AMONG','applyTo':[_0x360381(0x1d50)]},{'type':_0x360381(0x62d),'symbol':'∉','translate':_0x360381(0x1d3a),'applyTo':[_0x360381(0x1d50)]},{'type':_0x360381(0x1fb1),'symbol':'⊃','translate':_0x360381(0x1228),'applyTo':[_0x360381(0x19d3)]},{'type':_0x360381(0x1b32),'symbol':_0x360381(0xe63),'translate':_0x360381(0x595),'applyTo':[_0x360381(0x19d3)]},{'type':'$endsWith','symbol':'..a','translate':_0x360381(0x2124),'applyTo':[_0x360381(0x19d3)]},{'type':_0x360381(0x264),'symbol':'<','translate':_0x360381(0x28f9),'applyTo':[_0x360381(0x18ec),_0x360381(0x83d)]},{'type':_0x360381(0x1792),'symbol':'>','translate':'IS_GREATER_THAN','applyTo':[_0x360381(0x18ec),'number']},{'type':'$lte','symbol':'≤','translate':_0x360381(0x1a1b),'applyTo':[_0x360381(0x18ec),_0x360381(0x83d)]},{'type':_0x360381(0x190f),'symbol':'≥','translate':_0x360381(0x6ea),'applyTo':[_0x360381(0x18ec),_0x360381(0x83d)]},{'type':_0x360381(0x72d),'symbol':'≬','translate':_0x360381(0x8c4),'applyTo':[_0x360381(0x18ec),_0x360381(0x83d)]}],_0x4fba66[_0x360381(0x1037)]=_0x4fba66[_0x360381(0x1698)],_0x4fba66[_0x360381(0x1dc7)]=_0xfd749b,_0x4fba66[_0x360381(0xcb2)]=_0x2ca777,_0x4fba66[_0x360381(0x1f6)]=_0x290160,_0x4fba66[_0x360381(0x20fd)]=_0x25c411,_0x4fba66[_0x360381(0x256)]=_0x2b654a,_0x4fba66[_0x360381(0xc95)]=_0x30f24e,_0x4fba66[_0x360381(0x1501)]=_0x4e694e,_0x4fba66[_0x360381(0x2564)]=_0x215100,_0x4fba66[_0x360381(0x11e0)]=_0x3401c1,_0x4fba66[_0x360381(0xcba)]=_0x4d50e1,_0x4fba66['checkRange']=_0x48c460,_0x4fba66['handleKeyboardAction']=_0x59aeb4;function _0x215100(){const _0x4760ef=_0x360381;_0x4fba66[_0x4760ef(0x327)]=undefined,_0x4fba66[_0x4760ef(0x270)]=undefined,_0x4fba66['searchText']=undefined,_0x4fba66[_0x4760ef(0x688)]=![],_0x4531a5(),_0x4fba66['autoSelectOperator']=_0x4fba66[_0x4760ef(0x1698)][_0x4760ef(0xfd0)]===0x1?!![]:![];if(!_0x4fba66[_0x4760ef(0x682)])_0x4fba66['selectedOperator']=undefined;}function _0x3401c1(_0x6c4f4){const _0x10efc9=_0x360381;_0x4fba66[_0x10efc9(0x16d8)]=!![],_0x4fba66['selectedOperator']&&(_0x6c4f4?_0x6c4f4[_0x10efc9(0xa34)]?_0x39641b()['difference'](_0x4fba66[_0x10efc9(0xed2)][_0x10efc9(0xa34)],_0x6c4f4['applyTo'])[_0x10efc9(0xfd0)]>0x0&&(_0x4fba66[_0x10efc9(0x327)]=null):_0x4fba66['selectedOperator']['applyTo']&&(_0x4fba66[_0x10efc9(0x327)]=null):_0x4fba66[_0x10efc9(0x327)]=null,_0x4fba66[_0x10efc9(0xed2)]['type']!=_0x10efc9(0x33c)&&(_0x4fba66[_0x10efc9(0x270)]=null),_0x4fba66[_0x10efc9(0x14db)]['options']&&!_0x39641b()[_0x10efc9(0xce9)](_0x4fba66[_0x10efc9(0x14db)][_0x10efc9(0x2224)][_0x10efc9(0x127c)])&&(_0x4fba66[_0x10efc9(0xed2)][_0x10efc9(0x2359)]=_0x39641b()['some'](_0x4fba66[_0x10efc9(0x14db)]['options'][_0x10efc9(0x127c)],function(_0x58c410){const _0x2c275c=_0x10efc9;return _0x58c410===_0x4fba66[_0x2c275c(0xed2)][_0x2c275c(0x66a)];}))),_0x5b6207();}function _0x4d50e1(){const _0x3dd7ff=_0x360381;if(_0x4fba66['selectedOperator']&&_0x4fba66[_0x3dd7ff(0xed2)][_0x3dd7ff(0x66a)]===_0x3dd7ff(0x72d)){if(_0x4fba66[_0x3dd7ff(0x14db)][_0x3dd7ff(0x66a)]===_0x3dd7ff(0x83d))_0x48c460();else _0x4fba66[_0x3dd7ff(0x14db)][_0x3dd7ff(0x66a)]===_0x3dd7ff(0x18ec)&&(_0x4fba66['minDateRange']=_0x543b5a()(_0x4fba66[_0x3dd7ff(0x327)])['add'](0x1,_0x3dd7ff(0x1a5)),_0x5b6207());}else _0x5b6207();}function _0x4531a5(){const _0x2537b4=_0x360381,_0x38b878=_0x4fba66[_0x2537b4(0x14db)]['options']&&!_0x39641b()[_0x2537b4(0xce9)](_0x4fba66[_0x2537b4(0x14db)][_0x2537b4(0x2224)]['extraOperators']),_0x487e0b=_0x4fba66[_0x2537b4(0x14db)][_0x2537b4(0x2224)]&&!_0x39641b()[_0x2537b4(0xce9)](_0x4fba66['selectedField']['options'][_0x2537b4(0x9db)]);_0x4fba66[_0x2537b4(0x1698)]=_0x39641b()['filter'](_0x4fba66[_0x2537b4(0x1037)],function(_0x3e18f8){const _0x23bfd5=_0x2537b4,_0x3f2478=!_0x3e18f8[_0x23bfd5(0xa34)]||_0x39641b()[_0x23bfd5(0x250a)](_0x3e18f8[_0x23bfd5(0xa34)],_0x4fba66[_0x23bfd5(0x14db)][_0x23bfd5(0x66a)]);_0x3e18f8[_0x23bfd5(0x2359)]=_0x38b878&&_0x39641b()[_0x23bfd5(0x727)](_0x4fba66[_0x23bfd5(0x14db)]['options']['extraOperators'],function(_0x194dd7){const _0x5e76c9=_0x23bfd5;return _0x194dd7===_0x3e18f8[_0x5e76c9(0x66a)];});const _0x36f191=_0x39641b()['includes'](_0x3e18f8[_0x23bfd5(0x1d5c)],_0x4fba66[_0x23bfd5(0x14db)]['type'])||_0x487e0b&&_0x39641b()[_0x23bfd5(0x250a)](_0x4fba66[_0x23bfd5(0x14db)][_0x23bfd5(0x2224)][_0x23bfd5(0x9db)],_0x3e18f8[_0x23bfd5(0x66a)]);if((_0x3f2478||_0x3e18f8[_0x23bfd5(0x2359)])&&!_0x36f191)return _0x3e18f8;});}function _0x4e694e(){const _0x4b5650=_0x360381,_0x1e67ef=angular['copy'](_0x4fba66['selectedField'][_0x4b5650(0x2224)][_0x4b5650(0x15d0)]);if(_0x4fba66[_0x4b5650(0x14db)][_0x4b5650(0x66a)]===_0x4b5650(0x19e0))for(let _0x610a2=0x0;_0x610a2Number(_0x4fba66[_0x360910(0x327)])?!![]:![]:_0x4fba66[_0x360910(0x16d8)]=!![];else _0x4fba66['selectedField'][_0x360910(0x66a)]===_0x360910(0x18ec)&&(_0x4fba66[_0x360910(0x8ac)]=_0x543b5a()(_0x4fba66['endRangeValue'])[_0x360910(0x1030)](0x1,_0x360910(0x1a5)),_0x4fba66[_0x360910(0x16d8)]=!![]);_0x5b6207();}function _0xfd749b(){const _0x1448a1=_0x360381,_0x511883=_0x4f65ca();_0x4fba66[_0x1448a1(0x2224)][_0x1448a1(0x14dc)][_0x1448a1(0x2785)](_0x511883),_0x47ee32();}function _0x2ca777(_0x84e2b1){const _0x133344=_0x360381;_0x4fba66[_0x133344(0x514)]=_0x84e2b1,_0x4fba66['pendingCondition'][_0x133344(0x613)]=_0x133344(0x1ad6),_0x4fba66['selectedField']=_0x39641b()[_0x133344(0x13b4)](_0x4fba66['options'][_0x133344(0x355)],[_0x133344(0x16b6),_0x4fba66['pendingCondition'][_0x133344(0x16b6)]]),_0x4531a5(),_0x4fba66['selectedOperator']=_0x39641b()[_0x133344(0x13b4)](_0x4fba66[_0x133344(0x1698)],['type',_0x4fba66['pendingCondition'][_0x133344(0xae2)][_0x133344(0x1541)]]),_0x4fba66[_0x133344(0x14db)][_0x133344(0x66a)]==='date'&&typeof _0x4fba66[_0x133344(0x514)][_0x133344(0x327)]===_0x133344(0x1518)?(_0x4fba66[_0x133344(0x327)]=new Date(_0x4fba66[_0x133344(0x514)][_0x133344(0x327)]),_0x4fba66[_0x133344(0xb8a)]=_0x543b5a()(_0x4fba66['value'])[_0x133344(0x17a1)](0x1,'day'),_0x4fba66[_0x133344(0x270)]=_0x4fba66[_0x133344(0x514)]['endValue']?new Date(_0x4fba66[_0x133344(0x514)][_0x133344(0x1791)]):undefined):(_0x4fba66[_0x133344(0x327)]=_0x4fba66[_0x133344(0x514)][_0x133344(0x327)],_0x4fba66['endRangeValue']=_0x4fba66[_0x133344(0x514)][_0x133344(0x1791)]),_0x4fba66[_0x133344(0x16d8)]=!![],_0x4fba66['isValidCondition']=!![];}function _0x290160(){const _0x3bcf89=_0x360381,_0x47fad0=_0x4f65ca(),_0x447bb6=_0x39641b()['findIndex'](_0x4fba66['options'][_0x3bcf89(0x14dc)],_0x3bcf89(0x613));_0x4fba66[_0x3bcf89(0x2224)][_0x3bcf89(0x14dc)]['splice'](_0x447bb6,0x1,_0x47fad0),_0x47ee32(),_0x4fba66[_0x3bcf89(0x514)][_0x3bcf89(0x613)]=null,_0x4fba66[_0x3bcf89(0x514)]=undefined;}function _0x25c411(){const _0x2a3b30=_0x360381;_0x4fba66[_0x2a3b30(0x514)][_0x2a3b30(0x613)]=null,_0x4fba66[_0x2a3b30(0x514)]=undefined;}function _0x2b654a(_0x2bb56b){const _0x303205=_0x360381;_0x2bb56b[_0x303205(0x613)]=_0x2bb56b[_0x303205(0x379)]?undefined:'chip-disabled',_0x2bb56b[_0x303205(0x379)]=!_0x2bb56b[_0x303205(0x379)];}function _0x30f24e(){const _0x4934b5=_0x360381;if(_0x39641b()[_0x4934b5(0xce9)](_0x4fba66[_0x4934b5(0x2224)][_0x4934b5(0x14dc)]))_0x4fba66[_0x4934b5(0x28c2)]();}function _0x59aeb4(){const _0x8ca29c=_0x360381;_0x4fba66[_0x8ca29c(0x514)]?_0x290160():_0xfd749b();}function _0x4f65ca(){const _0x446ec1=_0x360381;return{'name':_0x4fba66[_0x446ec1(0x14db)][_0x446ec1(0x16b6)],'operator':_0x1b6ea8[_0x446ec1(0x25cc)](_0x446ec1(0xe13)+_0x4fba66['selectedOperator'][_0x446ec1(0x9fe)]),'value':_0x4fba66[_0x446ec1(0x327)],'endValue':_0x4fba66[_0x446ec1(0x270)],'displayValue':_0x5b92b9(_0x4fba66[_0x446ec1(0x327)]),'displayEndValue':_0x5b92b9(_0x4fba66[_0x446ec1(0x270)]),'query':{'column':_0x4fba66['selectedField'][_0x446ec1(0xa9c)],'operator':_0x4fba66[_0x446ec1(0xed2)][_0x446ec1(0x66a)],'value':_0x29c59c()},'disabled':![]};}function _0x5b92b9(_0x7d24e7){const _0x157792=_0x360381;let _0x4ebc0b;if(!_0x7d24e7)return undefined;switch(_0x4fba66['selectedField']['type']){case _0x157792(0x18ec):_0x4ebc0b=_0x543b5a()(_0x7d24e7)['format'](_0x157792(0x17ac));break;case _0x157792(0x1d50):{const _0x5d08f4=_0x39641b()[_0x157792(0x1de2)](_0x7d24e7,function(_0x7336fb){return _0x7336fb['name'];});_0x4ebc0b=_0x4fba66['selectedOperator']['type']===_0x157792(0x1c5e)?_0x5d08f4[_0x157792(0x1f66)](_0x157792(0x7c5)):_0x5d08f4[_0x157792(0x1f66)]('\x20and\x20');}break;case'select':_0x4ebc0b=_0x7d24e7[_0x157792(0x16b6)];break;case _0x157792(0x19e0):_0x4ebc0b=_0x4fba66[_0x157792(0xed2)][_0x157792(0x2359)]?_0x7d24e7:_0x7d24e7['displayValue'];break;default:_0x4ebc0b=_0x7d24e7;break;}return _0x4ebc0b;}function _0x29c59c(){const _0x2aa2a7=_0x360381,_0x1c3ab8=_0x4fba66[_0x2aa2a7(0x327)],_0x524d46=_0x4fba66[_0x2aa2a7(0x270)];let _0x21dcee;switch(_0x4fba66[_0x2aa2a7(0x14db)]['type']){case'date':{const _0x12bdfd=_0x543b5a()(_0x1c3ab8)[_0x2aa2a7(0x17d9)](0x0,!![])[_0x2aa2a7(0x1f31)](_0x2aa2a7(0x17ac));if(_0x4fba66[_0x2aa2a7(0xed2)][_0x2aa2a7(0x66a)]===_0x2aa2a7(0x72d)){const _0x202964=_0x543b5a()(_0x524d46)[_0x2aa2a7(0x17d9)](0x0,!![])['format'](_0x2aa2a7(0x17ac));_0x21dcee=[_0x12bdfd,_0x202964];}else _0x21dcee=_0x12bdfd;}break;case _0x2aa2a7(0x83d):_0x21dcee=_0x4fba66['selectedOperator']['type']==='$between'?[_0x1c3ab8,_0x524d46]:_0x1c3ab8;break;case'multiselect':{const _0x1c17a0=_0x4fba66[_0x2aa2a7(0x14db)][_0x2aa2a7(0x2224)]['field']||'id';_0x21dcee=_0x39641b()[_0x2aa2a7(0x1de2)](_0x1c3ab8,_0x1c17a0);}break;case _0x2aa2a7(0x220f):_0x21dcee=_0x1c3ab8['id'];break;case _0x2aa2a7(0x19e0):_0x21dcee=_0x4fba66[_0x2aa2a7(0xed2)]['isExtra']?_0x1c3ab8:_0x1c3ab8['id'];break;default:_0x21dcee=_0x1c3ab8;break;}return _0x21dcee;}function _0x47ee32(){const _0x33ed55=_0x360381;_0x4fba66[_0x33ed55(0x327)]=null,_0x4fba66['endRangeValue']=null,_0x4fba66[_0x33ed55(0xb8a)]=null,_0x4fba66[_0x33ed55(0x8ac)]=null,_0x4fba66[_0x33ed55(0x688)]=![];}}const _0x456434=_0x49e4b1;;function _0x54a19f(){const _0x1808c9=_0x5537c6;return{'restrict':'E','scope':{'templatePath':_0x1808c9(0x1483),'card':_0x1808c9(0x1850),'vm':_0x1808c9(0x753)},'template':'','compile':function(_0xb54d60){return _0xb54d60['addClass']('ms-card'),function _0x4a2928(_0x524cf3,_0x4c5742){const _0xd46944=a0_0x5cbd;function _0x24a6b7(){const _0x154458=a0_0x5cbd;_0x524cf3[_0x154458(0x251)](_0x154458(0x10c0),_0x4c5742);}_0x524cf3[_0xd46944(0x16e2)]=_0x24a6b7;};}};}const _0x14d377=_0x54a19f;;function _0x77d0c4(){return{'restrict':'A','link':function(_0x50558d,_0x2d02cb,_0xc76f47){_0xc76f47['$observe']('msChipColor',function(_0x1c46fc){const _0x278c6e=a0_0x5cbd,_0x88da5a=_0x2d02cb[_0x278c6e(0xbfb)]()[_0x278c6e(0xbfb)]();!_0x88da5a[_0x278c6e(0x1886)](_0x278c6e(0x23d6))&&_0x88da5a[_0x278c6e(0x1390)](_0x278c6e(0x23d6));if(!_0x39641b()[_0x278c6e(0xce9)](_0x1c46fc))_0x88da5a['addClass'](_0x1c46fc);else{const _0x231538=_0x88da5a[0x0][_0x278c6e(0x239f)]['split']('\x20'),_0x63a5a6=_0x231538[_0x278c6e(0xd8a)](_0x278c6e(0xa41));_0x231538[_0x278c6e(0xfd0)]=_0x63a5a6+0x1,_0x88da5a[0x0][_0x278c6e(0x239f)]=_0x231538[_0x278c6e(0x1f66)]('\x20');}});}};}const _0x548aa5=_0x77d0c4;;const _0x1b7da3=_0x5074a3['p']+'src/js/modules/core/directives/ms-click-to-call/ms-click-to-call.html/ms-click-to-call.html';;const _0x53552d=_0x5074a3['p']+_0x5537c6(0x112d);;function _0x2aec4(){const _0xc4511f=_0x5537c6;return{'restrict':'E','scope':{'type':'=','disabled':'=','target':'=','prefix':'=','license':'='},'controller':[_0xc4511f(0x1463),_0xc4511f(0x1196),'$http',_0xc4511f(0x1ae),_0xc4511f(0x22bf),_0xc4511f(0xcb9),'Auth',_0xc4511f(0x9bf),_0xc4511f(0x142b),function(_0x2e513c,_0x14e51c,_0xa8c3e2,_0x39021a,_0x3160b8,_0x54b2ca,_0x5d4ebe,_0x15d996,_0xd6ca40){const _0x5d15da=_0xc4511f;_0x2e513c['currentUser']=_0x5d4ebe[_0x5d15da(0x21e8)](),_0x2e513c['showMenu']=function(){const _0x56b66a=_0x5d15da;return _0x2e513c[_0x56b66a(0x251d)]&&_0x2e513c[_0x56b66a(0x251d)][_0x56b66a(0xd8a)]('@')<0x0&&_0x2e513c[_0x56b66a(0x251d)]!=_0x2e513c[_0x56b66a(0xe76)]['internal']&&_0x2e513c[_0x56b66a(0x251d)]!=_0x2e513c[_0x56b66a(0xe76)]['name']&&(_0x2e513c[_0x56b66a(0xe76)][_0x56b66a(0xed9)]==0x0&&_0x2e513c[_0x56b66a(0xe76)][_0x56b66a(0x1dc1)]||_0x2e513c['currentUser'][_0x56b66a(0xed9)]==0x2&&_0x2e513c[_0x56b66a(0x8a5)][_0x56b66a(0x110c)])&&!_0x2e513c[_0x56b66a(0x379)];};function _0xebc68d(_0x58390d){const _0x5945c9=_0x5d15da;return _0xd6ca40['user'][_0x5945c9(0x26de)]({'id':_0x2e513c[_0x5945c9(0xe76)]['id']})['$promise'][_0x5945c9(0x1cb0)](function(_0x5f4969){const _0x55daba=_0x5945c9;if(_0x5f4969[_0x55daba(0x184d)])return _0x54b2ca['show']({'controller':_0x55daba(0x34e),'controllerAs':'vm','templateUrl':_0x53552d,'parent':angular[_0x55daba(0x1853)](_0x3160b8[_0x55daba(0x1ed9)]),'clickOutsideToClose':!![],'locals':{'prefixes':_0x5f4969,'required':_0x2e513c[_0x55daba(0xe76)][_0x55daba(0x1a1e)]}});})[_0x5945c9(0x1cb0)](function(_0x4711ff){const _0x1be738=_0x5945c9;if(!_0x2e513c[_0x1be738(0xe76)][_0x1be738(0x1a1e)]){if(_0x4711ff&&_0x4711ff!==-0x1)_0x555911(_0x4711ff+_0x58390d);else!_0x4711ff&&_0x555911(_0x58390d);}else _0x4711ff&&_0x4711ff!==-0x1&&_0x555911(_0x4711ff+_0x58390d);});}function _0x555911(_0x5af39c){const _0x48a358=_0x5d15da;switch(_0x2e513c[_0x48a358(0xe76)]['showWebBar']){case 0x0:return _0x24f6fe('http://127.0.0.1:'+(_0x2e513c[_0x48a358(0xe76)][_0x48a358(0xd3f)]||_0x48a358(0x13d0))+_0x48a358(0x1852)+_0xe7c733(_0x5af39c));case 0x2:return _0x14e51c['$broadcast']('webrtc::call',{'target':_0xe7c733(_0x5af39c)});default:break;}}_0x2e513c[_0x5d15da(0x205d)]=function(_0x1d5f97){const _0xb9c07=_0x5d15da;return _0x2e513c['currentUser'][_0xb9c07(0xed9)]!==0x2?_0xebc68d(_0x1d5f97):_0x555911(_0x1d5f97);},_0x2e513c[_0x5d15da(0x29b3)]=function(_0x54e726){const _0xdb49be=_0x5d15da;switch(_0x2e513c['currentUser']['showWebBar']){case 0x0:return _0x24f6fe(_0xdb49be(0x25de)+(_0x2e513c[_0xdb49be(0xe76)][_0xdb49be(0xd3f)]||_0xdb49be(0x13d0))+_0xdb49be(0xce2)+_0xe7c733(_0x54e726));case 0x2:_0x14e51c['$broadcast'](_0xdb49be(0x861),{'target':_0xe7c733(_0x54e726)});break;default:break;}};function _0xe7c733(_0x4398d5){const _0x30f31a=_0x5d15da;return!_0x39641b()[_0x30f31a(0x958)](_0x4398d5)?_0x4398d5['replace'](/[^\w.+#*-]+/g,''):'';}function _0x24f6fe(_0x43b265){const _0x117a3b=_0x5d15da;return _0xa8c3e2[_0x117a3b(0xbf7)](_0x43b265)[_0x117a3b(0x829)](function(){const _0x66e148=_0x117a3b;_0x15d996[_0x66e148(0x829)]({'title':_0x66e148(0x16a8),'msg':_0x66e148(0x17af)});})[_0x117a3b(0x218e)](function(){const _0x2d809e=_0x117a3b;_0x15d996[_0x2d809e(0x218e)]({'title':_0x2d809e(0x1100),'msg':_0x39021a[_0x2d809e(0x25cc)](_0x2d809e(0x1873))});});}}],'templateUrl':_0x1b7da3};}const _0x2fd365=_0x2aec4;;_0x57daa2[_0x5537c6(0x15b6)]=[_0x5537c6(0x1741)];function _0x409d80(){const _0x47732d=_0x5537c6;_0x2674c2['$inject']=['configuration'];const _0x568da2=this;let _0x146ed4={'formatter':function(_0xf70071){if(!_0xf70071)return'';return _0xf70071===''?_0xf70071:new Date(_0xf70071);},'parser':function(_0x9c6d05){const _0x437c83=a0_0x5cbd;if(!_0x9c6d05)return'';return _0x543b5a()(_0x9c6d05)[_0x437c83(0x17a1)](_0x543b5a()(_0x9c6d05)[_0x437c83(0x17d9)](),'m')[_0x437c83(0x1495)]();}};function _0x2674c2(_0x1ce423){_0x146ed4=angular['extend']({},_0x146ed4,_0x1ce423);}_0x568da2[_0x47732d(0xa60)]=_0x2674c2,_0x568da2[_0x47732d(0x1c22)]=function(){return _0x146ed4;};}function _0x57daa2(_0x1c9ffd){return{'require':'ngModel','priority':0x1,'link':function(_0x553d13,_0x1195f4,_0x1056e3,_0x23a385){const _0x49709=a0_0x5cbd;_0x23a385['$formatters']['push'](_0x1c9ffd['formatter']),_0x23a385[_0x49709(0x21e1)][_0x49709(0x2785)](_0x1c9ffd[_0x49709(0x2886)]);}};};_0x1b39a4['$inject']=[_0x5537c6(0x142b)];function _0x1b39a4(_0x28ca18){return{'restrict':'E','scope':{'id':'=','model':'=','element':'=','title':'=','path':'='},'replace':!![],'link':function(_0x759466,_0xc9d79e){const _0x57ee5d=a0_0x5cbd;let _0x2315a5=![];const _0x3a927d={};_0x3a927d['id']=_0x759466['id'];!_0x39641b()[_0x57ee5d(0x958)](_0x759466['path'])&&(_0x3a927d[_0x57ee5d(0x1fe)]=_0x759466[_0x57ee5d(0x1fe)]);const _0x47d613=document[_0x57ee5d(0x8c6)](_0x759466['element']);_0x47d613['setAttribute']('preload',_0x57ee5d(0x13b1)),_0x47d613['setAttribute'](_0x57ee5d(0x242d),_0x57ee5d(0x44d)),_0x759466[_0x57ee5d(0x1853)]===_0x57ee5d(0x297d)&&_0x47d613[_0x57ee5d(0x23b9)](_0x57ee5d(0x613),_0x57ee5d(0x11b0)),_0x759466[_0x57ee5d(0x1853)]===_0x57ee5d(0x121f)&&_0x47d613[_0x57ee5d(0x23b9)](_0x57ee5d(0x613),_0x57ee5d(0x1dd7)),_0x47d613['setAttribute'](_0x57ee5d(0x1386),_0x759466[_0x57ee5d(0x1386)]),_0x47d613[_0x57ee5d(0x23b9)]('src','\x20'),_0x47d613['onplay']=function(_0x4a791c){const _0x361151=_0x57ee5d;!_0x2315a5&&(_0x2315a5=!![],_0x4a791c[_0x361151(0x1fbd)](),_0x28ca18[_0x759466['model']][_0x361151(0x26ec)](_0x3a927d)['$promise'][_0x361151(0x1cb0)](function(_0x281e94){const _0x9a71f0=_0x361151,_0x4cdf72=[_0x281e94['buffer']],_0x12f76e=new Blob(_0x4cdf72,{'type':_0x281e94[_0x9a71f0(0x66a)]});_0x47d613['setAttribute']('type',_0x281e94[_0x9a71f0(0x66a)]),_0x47d613[_0x9a71f0(0x23b9)](_0x9a71f0(0x22f),URL[_0x9a71f0(0x2247)](_0x12f76e)),_0x47d613[_0x9a71f0(0x96e)]();})[_0x361151(0x1c4)](function(_0x5806c2){const _0x176035=_0x361151;console[_0x176035(0x218e)](_0x5806c2);}));},_0xc9d79e['append'](_0x47d613);}};}const _0x46b5e5=_0x1b39a4;;const _0x4d6bb2=_0x5074a3['p']+'src/js/modules/core/directives/ms-dual-multiselect/ms-dual-multiselect.html/ms-dual-multiselect.html';;function _0x2de16a(){const _0x2aa7d3=_0x5537c6;return{'restrict':'E','scope':{'options':'='},'controller':[_0x2aa7d3(0x1463),function(_0x2a870d){const _0x3b3d59=_0x2aa7d3;_0x2a870d[_0x3b3d59(0x1eef)]=function(_0x38ef42,_0x6cef6,_0x5bef12){const _0x2c081c=_0x3b3d59;if(_0x6cef6['readOnly'])return;else{if(typeof _0x38ef42[_0x2c081c(0x1a4f)]!==_0x2c081c(0x16b5)&&_0x38ef42[_0x2c081c(0x1a4f)])return _0x5bef12?_0x2a870d[_0x2c081c(0x29b3)](_0x6cef6[_0x2c081c(0x20bb)],_0x6cef6[_0x2c081c(0x122f)],_0x6cef6[_0x2c081c(0x20bb)]['indexOf'](_0x38ef42),_0x5bef12):_0x2a870d[_0x2c081c(0x29b3)](_0x6cef6[_0x2c081c(0x122f)],_0x6cef6[_0x2c081c(0x20bb)],_0x6cef6[_0x2c081c(0x122f)][_0x2c081c(0xd8a)](_0x38ef42),_0x5bef12);}},_0x2a870d['transfer']=function(_0x4e43d9,_0x2847ce,_0x270519,_0x2071c4){const _0x598558=_0x3b3d59;let _0x3aa7be=[];if(_0x270519>=0x0)_0x3aa7be[_0x598558(0x2785)](_0x4e43d9[_0x270519]),_0x2847ce['push'](_0x4e43d9[_0x270519]),_0x4e43d9[_0x598558(0x159c)](_0x270519,0x1);else{for(let _0x13af37=0x0;_0x13af37<_0x4e43d9['length'];_0x13af37++){typeof _0x4e43d9[_0x13af37][_0x598558(0x1a4f)]!==_0x598558(0x16b5)&&_0x4e43d9[_0x13af37]['isValid']&&_0x2847ce[_0x598558(0x2785)](_0x4e43d9[_0x13af37]);}for(let _0x5b7d35=_0x4e43d9[_0x598558(0xfd0)]-0x1;_0x5b7d35>=0x0;_0x5b7d35--){_0x4e43d9[_0x5b7d35][_0x598558(0x1a4f)]&&_0x4e43d9[_0x598558(0x159c)](_0x5b7d35,0x1);}_0x3aa7be=_0x2847ce;}_0x2a870d[_0x598558(0x2224)][_0x598558(0x2741)]&&_0x2a870d[_0x598558(0x2224)][_0x598558(0x2741)](_0x3aa7be,_0x2071c4);},_0x2a870d['getLine']=function(_0x4ace0a,_0xd6476b){const _0x2d5963=_0x3b3d59;let _0x5d9763='';if(_0x39641b()[_0x2d5963(0x958)](_0xd6476b))return _0x5d9763;if(_0x39641b()[_0x2d5963(0x216b)](_0xd6476b)){for(let _0x23637f=0x0;_0x23637f<_0xd6476b[_0x2d5963(0xfd0)];_0x23637f++){_0x5d9763+='\x20'+(_0x4ace0a[_0xd6476b[_0x23637f]]?_0x4ace0a[_0xd6476b[_0x23637f]]:'');}return _0x5d9763;}else return _0x4ace0a[_0xd6476b]?_0x4ace0a[_0xd6476b]:'';};}],'templateUrl':_0x4d6bb2};}const _0x13cb50=_0x2de16a;;_0x3c3d22[_0x5537c6(0x15b6)]=[_0x5537c6(0x1ae)];function _0x3c3d22(_0x32e875){const _0xa4f03=_0x5537c6;return{'restrict':'E','replace':!![],'scope':{'onReply':'&','ngModel':'=','ctrlMethods':'=','pickerPosition':'=','search':'=','recentEmojis':'=','placeholder':'='},'template':_0xa4f03(0x222a),'link':function(_0x5b0bb6,_0x29ab14){const _0x462185=_0xa4f03,_0x35a777=_0x29ab14[_0x462185(0x272)]({'pickerPosition':_0x5b0bb6[_0x462185(0x22c7)],'search':_0x5b0bb6[_0x462185(0x24be)],'recentEmojis':_0x5b0bb6[_0x462185(0x2863)],'placeholder':_0x32e875[_0x462185(0x25cc)](_0x5b0bb6[_0x462185(0x161f)]||'Type\x20a\x20message'),'attributes':{'spellcheck':!![]},'events':{'keypress':function(_0x53f9b3,_0x4b111e){const _0x1f80b6=_0x462185;_0x5b0bb6['ngModel']=this['getText'](),_0x5b0bb6[_0x1f80b6(0x19fc)]({'event':_0x4b111e,'body':this[_0x1f80b6(0x2665)]()});},'emojibtn_click':function(){_0x5b0bb6['ngModel']=this['getText']();}}});_0x5b0bb6[_0x462185(0x26c1)]&&_0x35a777[0x0]['emojioneArea']['setText'](_0x5b0bb6['ngModel']),_0x5b0bb6[_0x462185(0x1db5)]=_0x5b0bb6[_0x462185(0x7df)]||{},_0x5b0bb6['internalControl'][_0x462185(0x1e34)]=function(_0xe8a282){const _0x1aa1e2=_0x462185;_0x35a777[0x0][_0x1aa1e2(0x272)][_0x1aa1e2(0x1e34)](_0xe8a282);},_0x5b0bb6[_0x462185(0x1db5)]['getText']=function(){const _0x59761f=_0x462185;return _0x35a777[0x0][_0x59761f(0x272)]['getText']();},_0x5b0bb6[_0x462185(0x614)](_0x462185(0x26c1),function(_0x539262){const _0x162e6e=_0x462185;!_0x539262&&_0x35a777[0x0][_0x162e6e(0x272)][_0x162e6e(0x1e34)]('');});}};}const _0x16b45c=_0x3c3d22;;const _0x3f4d46=_0x5074a3['p']+'src/js/modules/core/directives/ms-font-family/ms-font-family.html/ms-font-family.html';;function _0x522a01(){const _0x1f1cea=_0x5537c6;return{'restrict':'E','scope':{'ngModel':'='},'controller':[_0x1f1cea(0x1463),function(_0x13a3e6){const _0x5135e4=_0x1f1cea;_0x13a3e6[_0x5135e4(0x1c87)]=[{'option':_0x5135e4(0xbf6),'value':_0x5135e4(0x1e41)},{'option':_0x5135e4(0x1087),'value':_0x5135e4(0x22a2)},{'option':_0x5135e4(0x1cfd),'value':_0x5135e4(0x3bc)},{'option':_0x5135e4(0xbf4),'value':_0x5135e4(0x1c3c)},{'option':'Courier\x20New','value':'Courier\x20New,Courier,monospace'},{'option':_0x5135e4(0x14a2),'value':_0x5135e4(0xdf9)},{'option':_0x5135e4(0x5e0),'value':'Lucida\x20Sans\x20Unicode,Lucida\x20Grande,sans-serif'},{'option':_0x5135e4(0x20f4),'value':'Tahoma,Geneva,sans-serif'},{'option':_0x5135e4(0x20d4),'value':_0x5135e4(0x1b3e)},{'option':_0x5135e4(0x2378),'value':_0x5135e4(0xd9d)},{'option':_0x5135e4(0x2194),'value':_0x5135e4(0x2844)}];}],'templateUrl':_0x3f4d46};}const _0x208d4f=_0x522a01;;function _0x4cfc03(){const _0x4bdf63=_0x5537c6,_0x1f9b75=this;_0x1f9b75[_0x4bdf63(0x2806)]=[],_0x1f9b75['selectedIndex']=0x0,_0x1f9b75[_0x4bdf63(0x17e8)]=_0xa1c6db,_0x1f9b75[_0x4bdf63(0x1af6)]=_0x495947,_0x1f9b75[_0x4bdf63(0x19eb)]=_0x4519ba,_0x1f9b75[_0x4bdf63(0x204)]=_0x1b83fa,_0x1f9b75['lastStep']=_0x62e056,_0x1f9b75[_0x4bdf63(0x821)]=_0x312a93,_0x1f9b75['isFirstStep']=_0x4e5473,_0x1f9b75[_0x4bdf63(0x2221)]=_0x178a2b,_0x1f9b75[_0x4bdf63(0x1de6)]=_0xe14a02,_0x1f9b75[_0x4bdf63(0x1759)]=_0x4b3d63,_0x1f9b75[_0x4bdf63(0x295)]=_0xf0b7a4,_0x1f9b75[_0x4bdf63(0x21b3)]=_0x3afead;function _0xa1c6db(_0x252d18){const _0x5a09cd=_0x4bdf63;_0x1f9b75[_0x5a09cd(0x2806)][_0x5a09cd(0x2785)](_0x252d18);}function _0x495947(){if(_0x4e5473())return;_0x1f9b75['selectedIndex']--;}function _0x4519ba(){const _0x2cbc8d=_0x4bdf63;if(_0x178a2b())return;_0x1f9b75[_0x2cbc8d(0x2572)]++;}function _0x1b83fa(){const _0x451f62=_0x4bdf63;_0x1f9b75[_0x451f62(0x2572)]=0x0;}function _0x62e056(){const _0x1c43c4=_0x4bdf63;_0x1f9b75[_0x1c43c4(0x2572)]=_0x312a93()-0x1;}function _0x312a93(){const _0x3b0e06=_0x4bdf63;return _0x1f9b75[_0x3b0e06(0x2806)][_0x3b0e06(0xfd0)];}function _0x4e5473(){return _0x1f9b75['selectedIndex']===0x0;}function _0x178a2b(){return _0x1f9b75['selectedIndex']===_0x312a93()-0x1;}function _0xe14a02(){const _0x3e537b=_0x4bdf63;return angular[_0x3e537b(0x13b8)](_0x1f9b75[_0x3e537b(0x2806)][_0x1f9b75['selectedIndex']])&&_0x1f9b75['forms'][_0x1f9b75[_0x3e537b(0x2572)]][_0x3e537b(0x10b9)];}function _0x4b3d63(){const _0x4487c2=_0x4bdf63;return _0x1f9b75['selectedIndex']>0x0&&angular[_0x4487c2(0x13b8)](_0x1f9b75[_0x4487c2(0x2806)][_0x1f9b75[_0x4487c2(0x2572)]-0x1])&&_0x1f9b75['forms'][_0x1f9b75[_0x4487c2(0x2572)]-0x1][_0x4487c2(0x10b9)];}function _0xf0b7a4(){const _0xbfaacc=_0x4bdf63;for(let _0x587953=0x0;_0x587953<_0x1f9b75['forms']['length'];_0x587953++){if(_0x1f9b75['forms'][_0x587953][_0xbfaacc(0x10b9)])return!![];}return![];}function _0x3afead(){const _0x27764d=_0x4bdf63;_0x1f9b75[_0x27764d(0x2572)]=0x0;for(let _0x35332b=0x0;_0x35332b<_0x1f9b75[_0x27764d(0x2806)][_0x27764d(0xfd0)];_0x35332b++){_0x1f9b75[_0x27764d(0x2806)][_0x35332b][_0x27764d(0x1187)](),_0x1f9b75['forms'][_0x35332b][_0x27764d(0x574)]();}}}function _0x175461(){const _0x16a2cd=_0x5537c6;return{'restrict':'E','scope':!![],'controller':_0x16a2cd(0x17e6),'compile':function(_0x2cd056){const _0x1cb0e4=_0x16a2cd;return _0x2cd056[_0x1cb0e4(0x1390)](_0x1cb0e4(0xe68)),function _0x44157c(){};}};}function _0x2502d5(){const _0x2ed194=_0x5537c6;return{'restrict':'A','require':[_0x2ed194(0x2699),_0x2ed194(0x5bb)],'compile':function(_0x23ab94){const _0x341454=_0x2ed194;return _0x23ab94[_0x341454(0x1390)](_0x341454(0x285b)),function _0xe377d0(_0x2f24cd,_0x825bb3,_0x4ec7c1,_0x266a7f){const _0x3c9a41=_0x341454,_0x1feb90=_0x266a7f[0x0],_0x18f8f7=_0x266a7f[0x1];_0x18f8f7[_0x3c9a41(0x17e8)](_0x1feb90);};}};};const _0x11776d=_0x5074a3['p']+_0x5537c6(0x240f);;_0x48f1f5['$inject']=[_0x5537c6(0x22bf)];function _0x48f1f5(_0x42b214){return{'restrict':'E','scope':{'onClose':'&'},'transclude':!![],'templateUrl':_0x11776d,'link':function(_0x44078e,_0x1a5d5d){const _0x46f33d=a0_0x5cbd,_0x2cfe92=_0x42b214[_0x46f33d(0x13b4)](_0x46f33d(0xc9e)),_0x1a8bef='ms-info-bar-active';_0x2cfe92[_0x46f33d(0x1390)](_0x1a8bef);function _0x495152(){const _0x2738f4=_0x46f33d;_0x2cfe92['removeClass'](_0x1a8bef),_0x1a5d5d['remove'](),_0x44078e[_0x2738f4(0x2964)]&&_0x44078e['onClose'](),_0x44078e['$destroy']();}_0x44078e['removeInfoBar']=_0x495152;}};}const _0xd73a71=_0x48f1f5;;_0x16844a[_0x5537c6(0x15b6)]=['$timeout'],_0x269382[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),'$mdMedia','$timeout'];function _0x269382(_0x1d28ba,_0x5da639,_0x57f6fd,_0x2a57c5){const _0x4068db=_0x5537c6,_0x4d3715=this,_0x108234={'columnCount':0x5,'respectItemOrder':![],'reLayoutDebounce':0x190,'responsive':{'md':0x3,'sm':0x2,'xs':0x1}};let _0x2ebcc9=!![];_0x4d3715[_0x4068db(0x2224)]=null,_0x4d3715[_0x4068db(0x1e7)]=[],_0x4d3715[_0x4068db(0x1a30)]='',_0x4d3715['columnWidth']='',_0x4d3715[_0x4068db(0x122f)]=[],_0x4d3715['reLayout']=_0x1f65ac,_0x4d3715['initialize']=_0x151eef,_0x4d3715['waitImagesLoaded']=_0x5171e8;function _0x151eef(){const _0x857d33=_0x4068db;_0x4d3715[_0x857d33(0x2224)]=!_0x4d3715[_0x857d33(0x2224)]?_0x108234:angular[_0x857d33(0x2765)](_0x108234,_0x4d3715[_0x857d33(0x2224)]),_0x12214a();}_0x1d28ba[_0x4068db(0x1d6)](_0x4068db(0x1c16),function(){_0x1f65ac();});function _0x5171e8(_0x86a6ac,_0x389c25){const _0x4736ee=_0x4068db;if(typeof imagesLoaded!==_0x4736ee(0x16b5)){const _0x523abe=_0x5da639['imagesLoaded'](_0x86a6ac);_0x523abe['on']('done',function(){_0x389c25();});}else _0x389c25();}function _0x12214a(){const _0x3aee7a=_0x4068db;_0x1d28ba[_0x3aee7a(0x614)](function(){const _0x1a146e=_0x3aee7a;return _0x4d3715[_0x1a146e(0x1e7)][_0x1a146e(0x1801)]();},function(_0x5a9dfe,_0x5b4a53){_0x5a9dfe!==_0x5b4a53&&_0x1f65ac();});}function _0x1f65ac(){const _0x2cd44b=_0x4068db;_0x2ebcc9&&_0x2a57c5[_0x2cd44b(0x696)](_0x2ebcc9);_0x2ebcc9=_0x2a57c5(function(){const _0x580c5c=_0x2cd44b;_0x35db32(),_0x1d28ba[_0x580c5c(0x692)]('msMasonry:relayoutFinished');},_0x4d3715[_0x2cd44b(0x2224)][_0x2cd44b(0xf1a)]);function _0x35db32(){const _0x23a079=_0x2cd44b;_0x4d3715[_0x23a079(0x1a30)]=_0x4d3715[_0x23a079(0x1e7)][0x0][_0x23a079(0x1b25)](),_0x2bdf75(),_0x1d28ba[_0x23a079(0x692)](_0x23a079(0x1da8)),_0x4d3715[_0x23a079(0x122f)]=_0x4d3715['container']['find'](_0x23a079(0x226b));const _0x36aa6e=Array['apply'](null,new Array(_0x4d3715['columnCount']))[_0x23a079(0x1de2)](function(){return 0x0;});for(let _0x5e2c66=0x0;_0x5e2c66<_0x4d3715['items'][_0x23a079(0xfd0)];_0x5e2c66++){let _0x88e974=_0x4d3715['items'][_0x5e2c66],_0x25362f,_0x1b930a;_0x88e974=angular[_0x23a079(0x1853)](_0x88e974);_0x88e974['scope']()&&_0x88e974[_0x23a079(0x1500)]()['$broadcast'](_0x23a079(0x87d));_0x88e974[_0x23a079(0x949)]({'width':_0x4d3715['columnWidth']});_0x4d3715[_0x23a079(0x2224)][_0x23a079(0x1895)]?(_0x25362f=_0x5e2c66%_0x4d3715[_0x23a079(0x1cb9)],_0x1b930a=_0x36aa6e[_0x25362f]):(_0x1b930a=Math['min'][_0x23a079(0x86b)](Math,_0x36aa6e),_0x25362f=_0x36aa6e[_0x23a079(0xd8a)](_0x1b930a));_0x36aa6e[_0x25362f]=_0x1b930a+_0x88e974[0x0][_0x23a079(0x1b25)]()[_0x23a079(0xaab)];const _0x161cdf=Math['round'](_0x25362f*_0x4d3715[_0x23a079(0xc75)]),_0x2bcc65=_0x1b930a;_0x88e974[_0x23a079(0x949)]({'transform':'translate3d('+_0x161cdf+'px,'+_0x2bcc65+'px,0px)'}),_0x88e974['addClass'](_0x23a079(0x150b)),_0x88e974[_0x23a079(0x1500)]()&&_0x88e974['scope']()[_0x23a079(0x692)](_0x23a079(0x17e7));}}}function _0x2bdf75(){const _0x53df10=_0x4068db;_0x4d3715['columnCount']=_0x4d3715['options'][_0x53df10(0x1cb9)];if(_0x57f6fd(_0x53df10(0x19b1)))_0x4d3715[_0x53df10(0x1cb9)]=_0x4d3715[_0x53df10(0x2224)]['columnCount'];else{if(_0x57f6fd('md'))_0x4d3715[_0x53df10(0x1cb9)]=_0x4d3715[_0x53df10(0x1cb9)]>_0x4d3715[_0x53df10(0x2224)][_0x53df10(0x4d6)]['md']?_0x4d3715[_0x53df10(0x2224)][_0x53df10(0x4d6)]['md']:_0x4d3715['columnCount'];else _0x57f6fd('sm')?_0x4d3715['columnCount']=_0x4d3715['columnCount']>_0x4d3715['options'][_0x53df10(0x4d6)]['sm']?_0x4d3715[_0x53df10(0x2224)][_0x53df10(0x4d6)]['sm']:_0x4d3715['columnCount']:_0x4d3715[_0x53df10(0x1cb9)]=_0x4d3715[_0x53df10(0x2224)][_0x53df10(0x4d6)]['xs'];}_0x4d3715[_0x53df10(0xc75)]=_0x4d3715['containerPos'][_0x53df10(0x1801)]/_0x4d3715[_0x53df10(0x1cb9)];}}function _0x16844a(_0x17c1cb){return{'restrict':'AEC','controller':'msMasonryController','compile':_0x34137c};function _0x34137c(_0x2dbe98,_0x2abaca){return{'pre':function _0x39400b(_0x5d8072,_0x1cbd49,_0x2e8c24,_0x331bf4){const _0x3cd46a=a0_0x5cbd;_0x331bf4[_0x3cd46a(0x2224)]=angular[_0x3cd46a(0x284c)](_0x2abaca[_0x3cd46a(0x2224)]||'{}'),_0x331bf4[_0x3cd46a(0x1e7)]=_0x2dbe98;},'post':function _0x3796b8(_0x504748,_0x3d2bba,_0x3b2aaa,_0x13dcdb){_0x17c1cb(function(){const _0x256273=a0_0x5cbd;_0x13dcdb[_0x256273(0x2469)]();});}};}}function _0x586a62(){const _0x5d3212=_0x5537c6;return{'restrict':_0x5d3212(0x1700),'require':_0x5d3212(0x23db),'priority':0x1,'link':_0x57fc70};function _0x57fc70(_0x543025,_0x2d571f,_0x2ab7bf,_0x49a3eb){const _0x62e537=_0x5d3212;_0x49a3eb[_0x62e537(0x27f)](_0x2d571f,function(){const _0x5cdb6a=_0x62e537;_0x49a3eb[_0x5cdb6a(0x10fb)]();}),_0x543025['$on'](_0x62e537(0x17e7),function(){_0x543025['$watch'](function(){const _0x1c9e44=a0_0x5cbd;return _0x2d571f[_0x1c9e44(0xaab)]();},function(_0x1836c7,_0x48273b){_0x1836c7!==_0x48273b&&_0x49a3eb['reLayout']();});}),_0x2d571f['on'](_0x62e537(0x291c),function(){_0x49a3eb['reLayout']();});}};const _0x4a5723=_0x5074a3['p']+_0x5537c6(0x24d6);;_0x507ef3[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x29a7),_0x5537c6(0x1af3),_0x5537c6(0x19c5)];function _0x507ef3(_0x301da8,_0x42d8b7,_0x42203c,_0x20158e){const _0x1a4612=_0x5537c6,_0x2dd4f0=this;_0x2dd4f0[_0x1a4612(0x993)]=_0x42d8b7,_0x2dd4f0['selectedPalette']=![],_0x2dd4f0['selectedHues']=![],_0x301da8['$selectedColor']={},_0x2dd4f0[_0x1a4612(0x61f)]=_0x1d353e,_0x2dd4f0[_0x1a4612(0xdbb)]=_0x3d745a,_0x2dd4f0[_0x1a4612(0x5dc)]=_0x50308e,_0x301da8[_0x1a4612(0x614)](_0x1a4612(0x26c1),_0x3921d2);function _0x1d353e(_0x2de279,_0x339198){const _0x20c573=_0x1a4612;_0x2dd4f0[_0x20c573(0x2707)]=_0x2de279,_0x2dd4f0[_0x20c573(0x1dd9)]=_0x339198;}function _0x3d745a(_0x13f1ca,_0x10df0b){_0x49a1ff(_0x13f1ca,_0x10df0b),_0x2203ec(),_0x42203c['hide']();}function _0x50308e(){const _0x515f00=_0x1a4612;_0x2dd4f0[_0x515f00(0x2288)]={'palette':'','hue':'','class':''},_0x1d353e(![],![]),_0x2203ec();}function _0x3921d2(){const _0x4f960c=_0x1a4612;if(!_0x2dd4f0[_0x4f960c(0x11a2)]['$viewValue']||_0x2dd4f0[_0x4f960c(0x11a2)]['$viewValue']===''){_0x50308e();return;}let _0x44ae6f,_0x386060;if(_0x2dd4f0[_0x4f960c(0x228f)]==='class'){const _0x2c0c49=_0x2dd4f0[_0x4f960c(0x11a2)][_0x4f960c(0x272c)][_0x4f960c(0xbe1)]('-');_0x2c0c49[_0x4f960c(0xfd0)]>=0x5?(_0x44ae6f=_0x2c0c49[0x1]+'-'+_0x2c0c49[0x2],_0x386060=_0x2c0c49[0x3]):(_0x44ae6f=_0x2c0c49[0x1],_0x386060=_0x2c0c49[0x2]);}else _0x2dd4f0['msModelType']==='obj'&&(_0x44ae6f=_0x2dd4f0[_0x4f960c(0x11a2)][_0x4f960c(0x272c)][_0x4f960c(0x80b)],_0x386060=_0x2dd4f0[_0x4f960c(0x11a2)][_0x4f960c(0x272c)][_0x4f960c(0x205)]||0x1f4);_0x49a1ff(_0x44ae6f,_0x386060);}function _0x49a1ff(_0x5607b9,_0x325b40){const _0x4a70e7=_0x1a4612;_0x2dd4f0[_0x4a70e7(0x2288)]={'palette':_0x5607b9,'hue':_0x325b40,'class':_0x4a70e7(0x1f0f)+_0x5607b9+'-'+_0x325b40+'-bg','bgColorValue':_0x20158e[_0x4a70e7(0x2967)](_0x2dd4f0['palettes'][_0x5607b9][_0x325b40][_0x4a70e7(0x327)]),'fgColorValue':_0x20158e[_0x4a70e7(0x2967)](_0x2dd4f0[_0x4a70e7(0x993)][_0x5607b9][_0x325b40][_0x4a70e7(0x664)])},_0x2dd4f0[_0x4a70e7(0x228f)]===_0x4a70e7(0x271f)&&!angular['equals'](_0x2dd4f0[_0x4a70e7(0x2288)],_0x2dd4f0['modelCtrl'][_0x4a70e7(0x272c)])&&_0x2203ec(),_0x1d353e(_0x5607b9,_0x2dd4f0[_0x4a70e7(0x993)][_0x5607b9]),_0x301da8[_0x4a70e7(0x328)]=_0x2dd4f0[_0x4a70e7(0x2288)];}function _0x2203ec(){const _0x50e404=_0x1a4612;if(_0x2dd4f0[_0x50e404(0x228f)]==='class')_0x2dd4f0[_0x50e404(0x11a2)][_0x50e404(0x3c5)](_0x2dd4f0[_0x50e404(0x2288)][_0x50e404(0x2800)]);else _0x2dd4f0[_0x50e404(0x228f)]===_0x50e404(0x271f)&&_0x2dd4f0['modelCtrl']['$setViewValue'](_0x2dd4f0[_0x50e404(0x2288)]);}}function _0xdfcbe(){const _0x550c8c=_0x5537c6;return{'require':[_0x550c8c(0xa24),_0x550c8c(0x26c1)],'restrict':'E','scope':{'ngModel':'=','msModelType':'@?'},'controller':_0x550c8c(0x93d),'transclude':!![],'templateUrl':_0x4a5723,'link':function(_0x2a77e4,_0xf25d4c,_0x2bd947,_0x5064af,_0x2fff62){const _0x44db7f=_0x550c8c,_0x25398b=_0x5064af[0x0];_0x25398b[_0x44db7f(0x11a2)]=_0x5064af[0x1],_0x25398b['msModelType']=_0x2a77e4[_0x44db7f(0x228f)]||_0x44db7f(0x2800),_0x2fff62(_0x2a77e4,function(_0x59c7de){const _0x367f81=_0x44db7f;_0x59c7de=_0x59c7de[_0x367f81(0x1c99)](function(_0x32f997,_0x21d3e5){const _0x150d2b=_0x367f81;return _0x21d3e5[_0x150d2b(0x165e)]===0x1?!![]:![];}),_0x59c7de[_0x367f81(0xfd0)]&&_0xf25d4c['find'](_0x367f81(0x1979))[_0x367f81(0x1572)](_0x59c7de);});}};};_0x1f475c[_0x5537c6(0x15b6)]=[_0x5537c6(0x1196),'$q','$animate',_0x5537c6(0x406)],_0x218766[_0x5537c6(0x15b6)]=[_0x5537c6(0x1196),'$mdComponentRegistry',_0x5537c6(0x19e3)],_0x106bf5[_0x5537c6(0x15b6)]=[_0x5537c6(0x22bf),_0x5537c6(0x1196),'msNavFoldService'];function _0xfb5a53(){let _0x2ed24e={};const _0x2273f2={'setFoldable':_0x33a3f2,'isNavFoldedOpen':_0x222776,'toggleFold':_0x17613a,'openFolded':_0x278694,'closeFolded':_0x1d5482};return _0x2273f2;function _0x33a3f2(_0x63e006,_0x31b8c4){_0x2ed24e={'scope':_0x63e006,'element':_0x31b8c4};}function _0x222776(){const _0xb789d9=a0_0x5cbd;return _0x2ed24e[_0xb789d9(0x1500)][_0xb789d9(0x1168)]();}function _0x17613a(){const _0x5213ef=a0_0x5cbd;_0x2ed24e[_0x5213ef(0x1500)]['toggleFold']();}function _0x278694(){const _0xfe6d3a=a0_0x5cbd;_0x2ed24e['scope'][_0xfe6d3a(0x13bd)]();}function _0x1d5482(){const _0x29ac9d=a0_0x5cbd;_0x2ed24e[_0x29ac9d(0x1500)][_0x29ac9d(0x1ff1)]();}}function _0x106bf5(_0x379bda,_0x55e392,_0x3dca2e){return{'restrict':'A','link':function(_0x363064,_0x4d22fe,_0x41f05e){const _0x494869=a0_0x5cbd;let _0x3b6c5a=_0x41f05e[_0x494869(0x1a4d)]===_0x494869(0x44d),_0x322c97=![];const _0x187542=angular[_0x494869(0x1853)](_0x379bda[0x0][_0x494869(0x1ed9)]),_0x1c9008=angular['element'](_0x494869(0x4f4)),_0x31f134=angular[_0x494869(0x1853)](_0x494869(0x161b)),_0x114265=_0x4d22fe[_0x494869(0xbfb)]();_0x3dca2e['setFoldable'](_0x363064,_0x4d22fe,_0x3b6c5a);_0x3b6c5a?_0xfee339():_0x301fed();function _0x53547d(){return _0x322c97;}function _0x1131c3(){_0x3b6c5a=!_0x3b6c5a,_0x3b6c5a?_0xfee339():_0x301fed();}function _0xfee339(){const _0x6b2226=_0x494869;_0x187542[_0x6b2226(0x1390)]('ms-nav-folded'),_0x55e392[_0x6b2226(0x692)](_0x6b2226(0x176a)),_0x4d22fe['scrollTop'](0x0),_0x114265[_0x6b2226(0x207)](_0x1c9008),_0x1c9008['on'](_0x6b2226(0x227d),function(_0x858d07){_0x54f2a4(_0x858d07),_0x322c97=!![];});}function _0x54f2a4(_0x5a3872){const _0x1a88b0=_0x494869;angular[_0x1a88b0(0x13b8)](_0x5a3872)&&_0x5a3872[_0x1a88b0(0x1fbd)](),_0x187542[_0x1a88b0(0x1390)](_0x1a88b0(0x1241)),_0x55e392[_0x1a88b0(0x692)](_0x1a88b0(0x17ed)),_0x114265[_0x1a88b0(0x13b4)](_0x1c9008)[_0x1a88b0(0x152a)](),_0x114265['parent']()[_0x1a88b0(0x207)](_0x31f134),_0x31f134['on'](_0x1a88b0(0x227d),function(_0x34d9b2){_0x384723(_0x34d9b2),_0x322c97=![];});}function _0x384723(_0x158e85){const _0x2b969a=_0x494869;angular[_0x2b969a(0x13b8)](_0x158e85)&&_0x158e85[_0x2b969a(0x1fbd)](),_0x55e392[_0x2b969a(0x692)](_0x2b969a(0x176a)),_0x4d22fe[_0x2b969a(0x20d1)](0x0),_0x187542['removeClass'](_0x2b969a(0x1241)),_0x114265[_0x2b969a(0xbfb)]()[_0x2b969a(0x13b4)](_0x31f134)[_0x2b969a(0x152a)](),_0x114265[_0x2b969a(0x207)](_0x1c9008),_0x1c9008['on']('mouseenter\x20touchstart',function(_0x43cf69){_0x54f2a4(_0x43cf69),_0x322c97=!![];});}function _0x301fed(){const _0x1e375d=_0x494869;_0x187542[_0x1e375d(0x1e55)](_0x1e375d(0xb1e)),_0x55e392[_0x1e375d(0x692)]('msNav::expandMatchingToggles'),_0x4d22fe[_0x1e375d(0x28b2)](_0x1e375d(0x339));}_0x363064[_0x494869(0x1d73)]=_0x1131c3,_0x363064[_0x494869(0x13bd)]=_0x54f2a4,_0x363064[_0x494869(0x1ff1)]=_0x384723,_0x363064[_0x494869(0x1168)]=_0x53547d,_0x363064[_0x494869(0x1d6)](_0x494869(0x291c),function(){const _0xcf1aae=_0x494869;_0x1c9008[_0xcf1aae(0x28b2)]('mouseenter\x20touchstart'),_0x31f134[_0xcf1aae(0x28b2)]('mouseenter\x20touchstart'),_0x4d22fe[_0xcf1aae(0x28b2)](_0xcf1aae(0x339));});}};}function _0x1ad03f(){const _0x3b36c1=_0x5537c6,_0x1b944c=this;let _0xd3cf35=![];const _0x2df3df=[];let _0x117c4c=[];_0x1b944c[_0x3b36c1(0x2548)]=_0x3af940,_0x1b944c[_0x3b36c1(0x1c2)]=_0x1ffcd6,_0x1b944c[_0x3b36c1(0xd79)]=_0x3551f3,_0x1b944c[_0x3b36c1(0x1f33)]=_0x1715e5,_0x1b944c[_0x3b36c1(0x1f9c)]=_0x25df3c,_0x1b944c['setLockedItem']=_0x52f255,_0x1b944c['clearLockedItems']=_0x47908a;function _0x3af940(){return _0xd3cf35;}function _0x3551f3(){_0xd3cf35=!![];}function _0x1ffcd6(){_0xd3cf35=![];}function _0x1715e5(_0x2bb1bb,_0x442ded){const _0x42beb2=_0x3b36c1;_0x2df3df[_0x42beb2(0x2785)]({'element':_0x2bb1bb,'scope':_0x442ded});}function _0x25df3c(){return _0x117c4c;}function _0x52f255(_0x17f726,_0x2886c6){const _0x50cf6a=_0x3b36c1;_0x117c4c[_0x50cf6a(0x2785)]({'element':_0x17f726,'scope':_0x2886c6});}function _0x47908a(){_0x117c4c=[];}}function _0x218766(_0x23dfcb,_0x2cba60,_0x4c2389){const _0x4d8ab0=_0x5537c6;return{'restrict':'E','scope':{},'controller':_0x4d8ab0(0x1a04),'compile':function(_0x7505a8){const _0x31edae=_0x4d8ab0;return _0x7505a8[_0x31edae(0x1390)](_0x31edae(0x14f2)),function _0x2ffaf7(_0x1326f8){const _0x282a22=_0x31edae;_0x23dfcb[_0x282a22(0x692)](_0x282a22(0x17ed));const _0x54fa94=_0x23dfcb[_0x282a22(0x1d6)](_0x282a22(0x19fa),function(){const _0x44c9f4=_0x282a22;_0x23dfcb[_0x44c9f4(0x692)](_0x44c9f4(0x17ed)),_0x2cba60[_0x44c9f4(0xb20)]('navigation')[_0x44c9f4(0x1cb0)](function(_0x4f5162){const _0x5eb64e=_0x44c9f4;_0x4f5162['close'](),_0x4c2389[_0x5eb64e(0x1168)]()&&_0x4c2389[_0x5eb64e(0x1ff1)]();});});_0x1326f8['$on'](_0x282a22(0x291c),function(){_0x54fa94();});};}};}function _0x54f830(){return{'restrict':'A','compile':function(_0x111218){const _0x12e2e4=a0_0x5cbd;return _0x111218[_0x12e2e4(0x1390)](_0x12e2e4(0x1e9a)),function _0x2de462(){};}};}function _0x5080b5(){return{'restrict':'AE','compile':function(_0x341e1f){return _0x341e1f['addClass']('ms-nav-button'),function _0x5cd784(){};}};}function _0x1f475c(_0x16980b,_0x45d549,_0xb3b5,_0x51a97d){return{'restrict':'A','require':'^msNav','scope':!![],'compile':function(_0x8e7a41,_0x3e3734){const _0x1131a9=a0_0x5cbd;return _0x8e7a41[_0x1131a9(0x1390)](_0x1131a9(0xe48)),angular[_0x1131a9(0x2051)](_0x3e3734[_0x1131a9(0xc7d)])&&(_0x3e3734[_0x1131a9(0xc7d)]=!![]),_0x8e7a41[_0x1131a9(0x1fc9)](_0x1131a9(0xc7d),_0x3e3734[_0x1131a9(0xc7d)]),function _0x164d42(_0x2a3238,_0x31b935,_0x53b9b9,_0x5d0323){const _0x40c5ad=_0x1131a9,_0x31f369={'expanded':_0x40c5ad(0x7bf),'expandAnimation':'expand-animation','collapseAnimation':_0x40c5ad(0x549)},_0x1d799d=_0x31b935[_0x40c5ad(0x13b4)]('a'),_0x33a6e3=[],_0x5c7fd6=/\(.*\)/g;angular[_0x40c5ad(0xf90)](_0x1d799d,function(_0x41f527){const _0x2e87db=_0x40c5ad;let _0x1f2b9f=angular[_0x2e87db(0x1853)](_0x41f527)[_0x2e87db(0x1fc9)](_0x2e87db(0x1928));if(angular[_0x2e87db(0x2051)](_0x1f2b9f))return;_0x1f2b9f=_0x1f2b9f[_0x2e87db(0x288f)](_0x5c7fd6,''),_0x33a6e3['push'](_0x1f2b9f);}),_0x5d0323[_0x40c5ad(0x1f33)](_0x31b935,_0x2a3238),_0x31b935[_0x40c5ad(0x27a5)](_0x40c5ad(0x192c))['on'](_0x40c5ad(0x20b8),_0xe1bcca);function _0xe1bcca(){const _0xc9549a=_0x40c5ad;if(_0x5d0323[_0xc9549a(0x2548)]())return;_0x5d0323[_0xc9549a(0xd79)](),_0x3f678e()?(_0x5d0323[_0xc9549a(0xc35)](),_0x2a3238[_0xc9549a(0x251)]('msNav::pushToLockedList'),_0x16980b[_0xc9549a(0x692)](_0xc9549a(0xa10)),_0x46f197()['then'](function(){const _0x26360b=_0xc9549a;_0x5d0323[_0x26360b(0x1c2)]();})):_0x2a3238[_0xc9549a(0x692)](_0xc9549a(0x176a));}_0x2a3238[_0x40c5ad(0x1d6)](_0x40c5ad(0x291c),function(){const _0xe953e8=_0x40c5ad;_0x31b935[_0xe953e8(0x27a5)](_0xe953e8(0x192c))[_0xe953e8(0x28b2)](_0xe953e8(0x20b8));}),_0x2a3238[_0x40c5ad(0x1d6)]('msNav::collapse',function(){const _0x514e74=_0x40c5ad,_0x10660f=_0x5d0323[_0x514e74(0x1f9c)]();let _0x103fbb=![];angular['forEach'](_0x10660f,function(_0x346f85){const _0xe01678=_0x514e74;angular[_0xe01678(0x1c53)](_0x346f85[_0xe01678(0x1500)],_0x2a3238)&&(_0x103fbb=!![]);});if(_0x103fbb)return;_0xf3c9ac()[_0x514e74(0x1cb0)](function(){const _0x18cbdf=_0x514e74;_0x5d0323[_0x18cbdf(0x1c2)]();});}),_0x2a3238[_0x40c5ad(0x1d6)](_0x40c5ad(0x176a),function(){const _0x35b4b9=_0x40c5ad;_0xf3c9ac()[_0x35b4b9(0x1cb0)](function(){_0x5d0323['enable']();});}),_0x2a3238['$on'](_0x40c5ad(0x17ed),function(){const _0x1418d7=_0x40c5ad,_0x19e9db=_0x51a97d[_0x1418d7(0x1970)][_0x1418d7(0x16b6)];let _0x515216=![];angular['forEach'](_0x33a6e3,function(_0x613c38){_0x19e9db===_0x613c38&&(_0x515216=!![]);}),_0x515216?_0x46f197():_0xf3c9ac();}),_0x2a3238[_0x40c5ad(0x1d6)]('msNav::pushToLockedList',function(){_0x5d0323['setLockedItem'](_0x31b935,_0x2a3238);});function _0x3f678e(){const _0x19cebe=_0x40c5ad;return _0x31b935[_0x19cebe(0x1fc9)](_0x19cebe(0xc7d))===_0x19cebe(0x44d);}function _0x2ce9a9(){return!_0x3f678e();}function _0x46f197(){const _0x29a88d=_0x40c5ad,_0x1240a0=_0x45d549[_0x29a88d(0x11f4)]();if(_0x2ce9a9())return _0x1240a0[_0x29a88d(0x988)]({'error':!![]}),_0x1240a0[_0x29a88d(0x2061)];_0x31b935[_0x29a88d(0x1fc9)]('collapsed',![]);const _0xdbd25a=angular[_0x29a88d(0x1853)](_0x31b935['find'](_0x29a88d(0x14e6))[0x0]);_0xdbd25a[_0x29a88d(0x949)]({'position':'absolute','visibility':_0x29a88d(0x3f8),'display':'block','height':_0x29a88d(0x968)});const _0x4b6f3b=_0xdbd25a[0x0]['offsetHeight'];return _0xdbd25a[_0x29a88d(0x949)]({'position':'','visibility':'','display':'','height':''}),_0x2a3238[_0x29a88d(0x2568)](function(){const _0x36be29=_0x29a88d;_0xb3b5[_0x36be29(0xb53)](_0xdbd25a,{'display':_0x36be29(0x1e0e),'height':'0px'},{'height':_0x4b6f3b+'px'},_0x31f369[_0x36be29(0x49b)])[_0x36be29(0x1cb0)](function(){const _0x29347e=_0x36be29;_0xdbd25a['addClass'](_0x31f369[_0x29347e(0x7bf)]),_0xdbd25a[_0x29347e(0x949)]({'height':''}),_0x1240a0[_0x29347e(0x19a3)]({'success':!![]});});}),_0x1240a0['promise'];}function _0xf3c9ac(){const _0x25fac2=_0x40c5ad,_0xfbe282=_0x45d549[_0x25fac2(0x11f4)]();if(_0x3f678e())return _0xfbe282[_0x25fac2(0x988)]({'error':!![]}),_0xfbe282[_0x25fac2(0x2061)];_0x31b935[_0x25fac2(0x1fc9)]('collapsed',!![]);const _0x17c363=angular[_0x25fac2(0x1853)](_0x31b935[_0x25fac2(0x13b4)](_0x25fac2(0x14e6))[0x0]),_0xb4aa26=_0x17c363[0x0]['offsetHeight'];return _0x2a3238[_0x25fac2(0x2568)](function(){const _0xbcac80=_0x25fac2;_0xb3b5[_0xbcac80(0xb53)](_0x17c363,{'height':_0xb4aa26+'px'},{'height':_0xbcac80(0x1127)},_0x31f369['collapseAnimation'])['then'](function(){const _0x56986d=_0xbcac80;_0x17c363[_0x56986d(0x1e55)](_0x31f369[_0x56986d(0x7bf)]),_0x17c363['css']({'display':'','height':''}),_0xfbe282['resolve']({'success':!![]});});}),_0xfbe282['promise'];}};}};};const _0x243d9f=_0x5074a3['p']+'src/js/modules/core/directives/ms-navigation/templates/horizontal.html/horizontal.html';;const _0x512bb2=_0x5074a3['p']+_0x5537c6(0x21c4);;_0x55043b['$inject']=[_0x5537c6(0xb51)],_0xd43ca7[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2086),_0x5537c6(0x1196),_0x5537c6(0x406),'msNavigationService'],_0x2e8f96[_0x5537c6(0x15b6)]=['msNavigationService'],_0x4ecc2c[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2086),_0x5537c6(0x1196),'$animate',_0x5537c6(0x406),_0x5537c6(0x1d5f)],_0x12da17['$inject']=[_0x5537c6(0x1196),_0x5537c6(0x2168),'$mdSidenav','msNavigationService'],_0x47987c['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x1d5f)];function _0x18cedb(){const _0x2b2f64=_0x5537c6,_0xba0431=angular['injector'](['ng'])[_0x2b2f64(0xbf7)](_0x2b2f64(0x1a21));let _0x4ee48d=[];const _0x1d2695=this;_0x1d2695[_0x2b2f64(0x1a78)]=_0x3c9156,_0x1d2695['deleteItem']=_0x5723a0,_0x1d2695[_0x2b2f64(0xea6)]=_0x10542f;function _0x3c9156(_0x27b256,_0x5e985c){const _0x318a28=_0x2b2f64;if(!angular['isString'](_0x27b256)){_0xba0431[_0x318a28(0x218e)]('path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)');return;}const _0x352003=_0x27b256['split']('.'),_0x4b1328=_0x352003[_0x352003[_0x318a28(0xfd0)]-0x1],_0x33b85f=_0x19444a(_0x352003);let _0x198fc0=![];for(let _0x120158=0x0;_0x120158<_0x33b85f[_0x318a28(0xfd0)];_0x120158++){if(_0x33b85f[_0x120158][_0x318a28(0xa09)]===_0x4b1328){_0x198fc0=_0x33b85f[_0x120158];break;}}_0x198fc0?(angular[_0x318a28(0x2765)](_0x198fc0,_0x5e985c),_0x198fc0[_0x318a28(0x19c3)]=_0x3a19cb(_0x198fc0)):(_0x5e985c[_0x318a28(0x27a5)]=[],(angular[_0x318a28(0x2051)](_0x5e985c['weight'])||!angular[_0x318a28(0xcb3)](_0x5e985c[_0x318a28(0x212e)]))&&(_0x5e985c[_0x318a28(0x212e)]=0x1),_0x5e985c[_0x318a28(0xa09)]=_0x4b1328,_0x5e985c[_0x318a28(0x2d3)]=_0x27b256,_0x5e985c[_0x318a28(0x19c3)]=_0x3a19cb(_0x5e985c),_0x33b85f[_0x318a28(0x2785)](_0x5e985c));}function _0x5723a0(_0x2cece7){const _0x269fe1=_0x2b2f64;if(!angular[_0x269fe1(0x28e2)](_0x2cece7)){_0xba0431['error'](_0x269fe1(0x20aa));return;}let _0xc7b916=_0x4ee48d;const _0x507b5e=_0x2cece7[_0x269fe1(0xbe1)]('.');for(let _0x485a95=0x0;_0x485a95<_0x507b5e[_0x269fe1(0xfd0)];_0x485a95++){const _0x3aba43=_0x507b5e[_0x485a95];for(let _0x4ac53e=0x0;_0x4ac53e<_0xc7b916[_0x269fe1(0xfd0)];_0x4ac53e++){if(_0xc7b916[_0x4ac53e][_0x269fe1(0xa09)]===_0x3aba43){if(_0xc7b916[_0x4ac53e][_0x269fe1(0x2d3)]===_0x2cece7)return _0xc7b916[_0x269fe1(0x159c)](_0x4ac53e,0x1),!![];_0xc7b916=_0xc7b916[_0x4ac53e][_0x269fe1(0x27a5)];break;}}}return![];}function _0x10542f(_0x2848f0){const _0x5aa762=_0x2b2f64;!_0x2848f0&&(_0x2848f0=_0x4ee48d,_0x2848f0[_0x5aa762(0x1381)](_0x4f50c6));for(let _0x4e5bbb=0x0;_0x4e5bbb<_0x2848f0[_0x5aa762(0xfd0)];_0x4e5bbb++){const _0x2778be=_0x2848f0[_0x4e5bbb][_0x5aa762(0x27a5)];_0x2778be['length']>0x1&&_0x2778be['sort'](_0x4f50c6),_0x2778be['length']>0x0&&_0x10542f(_0x2778be);}}function _0x19444a(_0x47727d){const _0x23ef21=_0x2b2f64;let _0x527054=_0x4ee48d;if(_0x47727d[_0x23ef21(0xfd0)]===0x1)return _0x527054;_0x47727d['pop']();for(let _0x265beb=0x0;_0x265beb<_0x47727d['length'];_0x265beb++){const _0x4f96ed=_0x47727d[_0x265beb];let _0xbc91a7=!![];for(let _0x4f38d5=0x0;_0x4f38d5<_0x527054['length'];_0x4f38d5++){if(_0x527054[_0x4f38d5][_0x23ef21(0xa09)]===_0x4f96ed){_0x527054=_0x527054[_0x4f38d5][_0x23ef21(0x27a5)],_0xbc91a7=![];break;}}if(_0xbc91a7){const _0xf72f7e={'_id':_0x4f96ed,'_path':_0x47727d[_0x23ef21(0x1f66)]('.'),'title':_0x4f96ed,'weight':0x1,'children':[]};_0x527054['push'](_0xf72f7e),_0x527054=_0xf72f7e[_0x23ef21(0x27a5)];}}return _0x527054;}function _0x4f50c6(_0x4e01a5,_0x4b18bc){const _0x483817=_0x2b2f64;return parseInt(_0x4e01a5['weight'])-parseInt(_0x4b18bc[_0x483817(0x212e)]);}function _0x3a19cb(_0x4af88c){const _0x371fcd=_0x2b2f64;let _0xbe5956='';return angular[_0x371fcd(0x13b8)](_0x4af88c[_0x371fcd(0x27e0)])&&(_0xbe5956=_0x4af88c[_0x371fcd(0x27e0)],angular['isDefined'](_0x4af88c['stateParams'])&&angular[_0x371fcd(0x1b5c)](_0x4af88c[_0x371fcd(0x1349)])&&(_0xbe5956=_0xbe5956+'('+angular[_0x371fcd(0x393)](_0x4af88c[_0x371fcd(0x1349)])+')')),_0xbe5956;}this['$get']=function(){let _0xb11534=null,_0x14ffb6=null,_0x4adb62=null,_0xd93ff6=null;const _0x4de504={'saveItem':_0x3c9156,'deleteItem':_0x5723a0,'sort':_0x10542f,'clearNavigation':_0x4c1245,'setActiveItem':_0x601ed2,'getActiveItem':_0x44464b,'getNavigation':_0x242780,'getFlatNavigation':_0x3ed5a4,'setNavigationScope':_0x4dab82,'setFolded':_0x2abc92,'getFolded':_0xe78a11,'setFoldedOpen':_0x3b8adc,'getFoldedOpen':_0x1d1eb4,'toggleFolded':_0x526441};return _0x4de504;function _0x4c1245(){const _0x5bcdc7=a0_0x5cbd;_0x4ee48d=[],_0x14ffb6&&(_0x14ffb6['vm'][_0x5bcdc7(0x511)]=_0x4ee48d);}function _0x601ed2(_0x5c1d27,_0x2a1b00){_0xb11534={'node':_0x5c1d27,'scope':_0x2a1b00};}function _0x44464b(){return _0xb11534;}function _0x242780(_0x42bbf5){const _0x25fdcd=a0_0x5cbd;if(_0x42bbf5){for(let _0x705f29=0x0;_0x705f29<_0x4ee48d[_0x25fdcd(0xfd0)];_0x705f29++){if(_0x4ee48d[_0x705f29]['_id']===_0x42bbf5)return[_0x4ee48d[_0x705f29]];}return null;}return _0x4ee48d;}function _0x3ed5a4(_0x584097){const _0x32397b=_0x242780(_0x584097);return _0x3e6a6b(_0x32397b);}function _0x4dab82(_0x4e1509){_0x14ffb6=_0x4e1509;}function _0x2abc92(_0x1e7b1f){_0x4adb62=_0x1e7b1f;}function _0xe78a11(){return _0x4adb62;}function _0x3b8adc(_0x4b2a10){_0xd93ff6=_0x4b2a10;}function _0x1d1eb4(){return _0xd93ff6;}function _0x526441(){const _0x301113=a0_0x5cbd;_0x14ffb6[_0x301113(0x14bf)]();}function _0x3e6a6b(_0xe84298){const _0x303f56=a0_0x5cbd;let _0x385aa6=[];for(let _0x1505d4=0x0;_0x1505d4<_0xe84298[_0x303f56(0xfd0)];_0x1505d4++){const _0x3ea3fe=angular[_0x303f56(0x17fe)](_0xe84298[_0x1505d4]);_0x3ea3fe[_0x303f56(0x27a5)]=[],_0x385aa6[_0x303f56(0x2785)](_0x3ea3fe),_0xe84298[_0x1505d4][_0x303f56(0x27a5)][_0x303f56(0xfd0)]>0x0&&(_0x385aa6=_0x385aa6[_0x303f56(0x298a)](_0x3e6a6b(_0xe84298[_0x1505d4][_0x303f56(0x27a5)])));}return _0x385aa6;}};}function _0x47987c(_0x707061,_0x39508f){const _0x57389a=_0x5537c6,_0x475190=this;_0x707061[_0x57389a(0x13f8)]?_0x475190[_0x57389a(0x511)]=_0x39508f[_0x57389a(0x221)](_0x707061[_0x57389a(0x13f8)]):_0x475190['navigation']=_0x39508f['getNavigation']();_0x475190[_0x57389a(0x437)]=_0x225a31,_0x45ad1f();function _0x45ad1f(){const _0xf3e33b=_0x57389a;_0x39508f[_0xf3e33b(0x1381)]();}function _0x225a31(){const _0xd6797f=_0x57389a;angular[_0xd6797f(0x1853)](_0xd6797f(0x1ed9))[_0xd6797f(0x713)](_0xd6797f(0x1982));}}function _0x12da17(_0x44100c,_0x5796f8,_0x5badf6,_0x446af6){const _0x7c5e3a=_0x5537c6;return{'restrict':'E','scope':{'folded':'=','root':'@'},'controller':_0x7c5e3a(0xd6a),'templateUrl':_0x512bb2,'transclude':!![],'compile':function(_0x188055){const _0x9d7b0b=_0x7c5e3a;return _0x188055[_0x9d7b0b(0x1390)](_0x9d7b0b(0x227a)),function _0x2932be(_0x4abfdf,_0x53b2dc){const _0x370dbd=_0x9d7b0b,_0x50daa9=angular['element'](_0x370dbd(0x1ed9)),_0x14e0c7=angular['element'](''),_0x5a2daf=angular[_0x370dbd(0x1853)](_0x370dbd(0x1d8f)),_0x5b01bb=_0x5badf6(_0x370dbd(0x511));_0x446af6[_0x370dbd(0x47c)](_0x4abfdf),_0x437691();function _0x437691(){const _0x3ec3e7=_0x370dbd;_0x446af6[_0x3ec3e7(0x1c0c)]()===null&&_0x446af6[_0x3ec3e7(0xd2e)](_0x4abfdf[_0x3ec3e7(0x907)]),_0x446af6[_0x3ec3e7(0x1c0c)]()&&(_0x5796f8(function(){const _0x196de0=_0x3ec3e7;_0x44100c[_0x196de0(0x692)]('msNavigation::collapse');}),_0x50daa9['addClass'](_0x3ec3e7(0x1e79)),_0x4502f4());}_0x4abfdf[_0x370dbd(0x614)](function(){const _0x23fea0=_0x370dbd;return _0x5b01bb[_0x23fea0(0x948)]();},function(_0x5bbeeb,_0x5eb393){const _0x3d9e6f=_0x370dbd;if(angular[_0x3d9e6f(0x2051)](_0x5bbeeb)||angular[_0x3d9e6f(0x1c53)](_0x5bbeeb,_0x5eb393))return;const _0x59aa42=_0x446af6['getFolded']();if(_0x59aa42){if(_0x5bbeeb)_0x44100c[_0x3d9e6f(0x692)](_0x3d9e6f(0x285d));else{const _0x1ecd64=_0x446af6['getActiveItem']();_0x1ecd64&&_0x1ecd64[_0x3d9e6f(0x1500)]['$emit']('msNavigation::stateMatched');}}}),_0x4abfdf[_0x370dbd(0x614)]('folded',function(_0x4999a4,_0x4737c6){const _0x29384e=_0x370dbd;if(angular[_0x29384e(0x2051)](_0x4999a4)||angular[_0x29384e(0x1c53)](_0x4999a4,_0x4737c6))return;_0x4a77f9(_0x4999a4);});function _0x4a77f9(_0x300da4){const _0x46561b=_0x370dbd;_0x446af6['setFolded'](_0x300da4);if(_0x300da4)_0x44100c['$broadcast'](_0x46561b(0x285d)),_0x50daa9[_0x46561b(0x1390)](_0x46561b(0x1e79)),_0x4502f4();else{const _0x213f92=_0x446af6[_0x46561b(0x287d)]();_0x213f92&&_0x213f92[_0x46561b(0x1500)][_0x46561b(0x251)](_0x46561b(0x20a9)),_0x50daa9['removeClass'](_0x46561b(0x1a1f)),_0x1064b5();}}function _0x4502f4(){const _0x200d77=_0x370dbd;_0x53b2dc[_0x200d77(0xbfb)]()[_0x200d77(0x207)](_0x14e0c7),_0x5796f8(function(){_0x14e0c7['on']('mouseenter\x20touchstart',_0x456d7b);});}function _0xf0c1f0(){const _0x1491ff=_0x370dbd;_0x50daa9[_0x1491ff(0x13b4)](_0x1491ff(0x1580))[_0x1491ff(0x207)](_0x5a2daf),_0x5a2daf['on'](_0x1491ff(0x227d),_0x1020b4);}function _0x1064b5(){const _0x26dbee=_0x370dbd;_0x5a2daf[_0x26dbee(0x152a)]();}function _0x456d7b(_0x4ddb84){const _0xf3dfb4=_0x370dbd;_0x4ddb84&&_0x4ddb84[_0xf3dfb4(0x1fbd)]();_0x446af6[_0xf3dfb4(0x1081)](!![]);const _0x4569a5=_0x446af6[_0xf3dfb4(0x287d)]();_0x4569a5&&_0x4569a5[_0xf3dfb4(0x1500)][_0xf3dfb4(0x251)](_0xf3dfb4(0x20a9)),_0x50daa9[_0xf3dfb4(0x1390)](_0xf3dfb4(0x770)),_0x14e0c7[_0xf3dfb4(0x152a)](),_0xf0c1f0();}function _0x1020b4(_0x5bf83d){const _0x5a201c=_0x370dbd;_0x5bf83d&&_0x5bf83d[_0x5a201c(0x1fbd)](),_0x446af6[_0x5a201c(0x1081)](![]),_0x44100c[_0x5a201c(0x692)]('msNavigation::collapse'),_0x50daa9[_0x5a201c(0x1e55)](_0x5a201c(0x770)),_0x5a2daf[_0x5a201c(0x152a)](),_0x4502f4();}_0x4abfdf['toggleFolded']=function(){const _0x11aac2=_0x370dbd,_0x27afd6=_0x446af6[_0x11aac2(0x1c0c)]();_0x4a77f9(!_0x27afd6);},_0x4abfdf[_0x370dbd(0x1d6)]('$stateChangeStart',function(){const _0x57ab81=_0x370dbd;_0x5b01bb[_0x57ab81(0xf3b)]();}),_0x4abfdf[_0x370dbd(0x1d6)](_0x370dbd(0x291c),function(){const _0x121b1b=_0x370dbd;_0x5a2daf[_0x121b1b(0x28b2)](_0x121b1b(0x227d)),_0x14e0c7[_0x121b1b(0x28b2)]('mouseenter\x20touchstart');});};}};}function _0x4ecc2c(_0x485c9c,_0x49740f,_0x2522c9,_0x502d01,_0x1bc9f7,_0x5b2b69){const _0x26410c=_0x5537c6,_0x1950bb=this;_0x1950bb[_0x26410c(0x1853)]=_0x49740f,_0x1950bb[_0x26410c(0x2013)]=_0x485c9c[_0x26410c(0x2013)],_0x1950bb[_0x26410c(0x161c)]=undefined,_0x1950bb['collapsed']=undefined,_0x1950bb[_0x26410c(0x16c3)]=undefined,_0x1950bb['group']=undefined,_0x1950bb['animateHeightClass']=_0x26410c(0x1e8c),_0x1950bb[_0x26410c(0xe65)]=_0x51acec,_0x1950bb[_0x26410c(0x1a8d)]=_0x24cb25,_0x1950bb['expand']=_0x8e4fe1,_0x1950bb[_0x26410c(0x2aa)]=_0x3a482e,_0x1950bb[_0x26410c(0x1b7d)]=_0x351210,_0x5070b3();function _0x5070b3(){const _0x4dc2d9=_0x26410c;_0x1950bb[_0x4dc2d9(0x161c)]=_0x1950bb[_0x4dc2d9(0x2013)][_0x4dc2d9(0x27a5)][_0x4dc2d9(0xfd0)]>0x0,_0x1950bb[_0x4dc2d9(0x716)]=!!(angular[_0x4dc2d9(0x13b8)](_0x1950bb[_0x4dc2d9(0x2013)]['group'])&&_0x1950bb[_0x4dc2d9(0x2013)][_0x4dc2d9(0x716)]===!![]);!_0x1950bb[_0x4dc2d9(0x161c)]||_0x1950bb[_0x4dc2d9(0x716)]?_0x1950bb[_0x4dc2d9(0x16c3)]=![]:_0x1950bb[_0x4dc2d9(0x16c3)]=!!(angular['isUndefined'](_0x1950bb['node'][_0x4dc2d9(0x16c3)])||typeof _0x1950bb[_0x4dc2d9(0x2013)]['collapsable']!==_0x4dc2d9(0x1600)||_0x1950bb['node'][_0x4dc2d9(0x16c3)]===!![]);!_0x1950bb['collapsable']?_0x1950bb[_0x4dc2d9(0xc7d)]=![]:_0x1950bb[_0x4dc2d9(0xc7d)]=!!(angular[_0x4dc2d9(0x2051)](_0x1950bb[_0x4dc2d9(0x2013)][_0x4dc2d9(0xc7d)])||typeof _0x1950bb['node']['collapsed']!==_0x4dc2d9(0x1600)||_0x1950bb[_0x4dc2d9(0x2013)][_0x4dc2d9(0xc7d)]===!![]);if(_0x1950bb[_0x4dc2d9(0x2013)][_0x4dc2d9(0x27e0)]===_0x1bc9f7['current'][_0x4dc2d9(0x16b6)]||_0x1bc9f7[_0x4dc2d9(0x250a)](_0x1950bb[_0x4dc2d9(0x2013)][_0x4dc2d9(0x27e0)])){if(angular[_0x4dc2d9(0x13b8)](_0x1950bb[_0x4dc2d9(0x2013)]['stateParams'])&&angular[_0x4dc2d9(0x13b8)](_0x1bc9f7[_0x4dc2d9(0x1dfe)])&&!angular['equals'](_0x1950bb[_0x4dc2d9(0x2013)]['stateParams'],_0x1bc9f7['params']))return;_0x485c9c[_0x4dc2d9(0x251)](_0x4dc2d9(0x20a9)),_0x5b2b69[_0x4dc2d9(0x144b)](_0x1950bb[_0x4dc2d9(0x2013)],_0x485c9c);}_0x485c9c['$on'](_0x4dc2d9(0x20a9),function(){const _0x5e65fb=_0x4dc2d9;_0x1950bb['collapsable']&&_0x1950bb[_0x5e65fb(0xc7d)]&&_0x485c9c[_0x5e65fb(0x2568)](function(){const _0x29795d=_0x5e65fb;_0x1950bb[_0x29795d(0xc7d)]=![];});}),_0x485c9c[_0x4dc2d9(0x1d6)](_0x4dc2d9(0x285d),function(_0x39478a,_0x404386){const _0xef015c=_0x4dc2d9;if(_0x1950bb['collapsed']||!_0x1950bb[_0xef015c(0x16c3)])return;if(angular[_0xef015c(0x2051)](_0x404386))_0x1950bb[_0xef015c(0x1a8d)]();else{const _0x5ad7c4=_0x404386[_0xef015c(0xbe1)]('.');let _0xa5cf2=[];const _0x503318=_0x5b2b69[_0xef015c(0x287d)]();_0x503318&&(_0xa5cf2=_0x503318[_0xef015c(0x2013)]['_path']['split']('.'));if(_0x5ad7c4[_0xef015c(0xd8a)](_0x1950bb[_0xef015c(0x2013)]['_id'])>-0x1)return;if(_0xa5cf2[_0xef015c(0xd8a)](_0x1950bb[_0xef015c(0x2013)][_0xef015c(0xa09)])>-0x1)return;_0x1950bb[_0xef015c(0x1a8d)]();}}),_0x485c9c[_0x4dc2d9(0x1d6)](_0x4dc2d9(0x19fa),function(){const _0xc883d5=_0x4dc2d9;if(_0x1950bb[_0xc883d5(0x2013)]['state']===_0x1bc9f7['current'][_0xc883d5(0x16b6)]){if(angular[_0xc883d5(0x13b8)](_0x1950bb[_0xc883d5(0x2013)][_0xc883d5(0x1349)])&&angular[_0xc883d5(0x13b8)](_0x1bc9f7[_0xc883d5(0x1dfe)])&&!angular[_0xc883d5(0x1c53)](_0x1950bb[_0xc883d5(0x2013)][_0xc883d5(0x1349)],_0x1bc9f7['params']))return;_0x5b2b69['setActiveItem'](_0x1950bb[_0xc883d5(0x2013)],_0x485c9c),_0x2522c9[_0xc883d5(0x692)]('msNavigation::collapse',_0x1950bb[_0xc883d5(0x2013)][_0xc883d5(0x2d3)]);}if(_0x1bc9f7[_0xc883d5(0x250a)](_0x1950bb['node'][_0xc883d5(0x27e0)])){if(angular[_0xc883d5(0x13b8)](_0x1950bb[_0xc883d5(0x2013)][_0xc883d5(0x1349)])&&angular['isDefined'](_0x1bc9f7['params'])&&!angular[_0xc883d5(0x1c53)](_0x1950bb['node'][_0xc883d5(0x1349)],_0x1bc9f7[_0xc883d5(0x1dfe)]))return;_0x485c9c['$emit']('msNavigation::stateMatched');}});}function _0x51acec(){const _0x4c6ad2=_0x26410c;_0x1950bb['collapsed']?_0x1950bb[_0x4c6ad2(0x1c28)]():_0x1950bb[_0x4c6ad2(0x1a8d)]();}function _0x24cb25(){const _0xed2e3b=_0x26410c,_0x58b91a=_0x1950bb[_0xed2e3b(0x1853)][_0xed2e3b(0x27a5)]('ul'),_0x449be1=_0x58b91a[0x0]['offsetHeight'];_0x485c9c['$evalAsync'](function(){const _0x20e335=_0xed2e3b;_0x1950bb['collapsed']=!![],_0x1950bb[_0x20e335(0x1853)][_0x20e335(0x1390)](_0x20e335(0x1536)),_0x502d01[_0x20e335(0xb53)](_0x58b91a,{'display':_0x20e335(0x1e0e),'height':_0x449be1+'px'},{'height':_0x20e335(0x1127)},_0x1950bb[_0x20e335(0x1e02)])['then'](function(){const _0x2da99f=_0x20e335;_0x58b91a[_0x2da99f(0x949)]({'display':'','height':''}),_0x1950bb[_0x2da99f(0x1853)][_0x2da99f(0x1e55)](_0x2da99f(0x1536));}),_0x485c9c['$broadcast'](_0x20e335(0x285d));});}function _0x8e4fe1(){const _0x5af205=_0x26410c,_0x5dfee6=_0x1950bb[_0x5af205(0x1853)]['children']('ul');_0x5dfee6[_0x5af205(0x949)]({'position':_0x5af205(0x29c),'visibility':_0x5af205(0x3f8),'display':_0x5af205(0x1e0e),'height':_0x5af205(0x968)});const _0x4b0eab=_0x5dfee6[0x0][_0x5af205(0x230f)];_0x5dfee6[_0x5af205(0x949)]({'position':'','visibility':'','display':'','height':''}),_0x485c9c[_0x5af205(0x2568)](function(){const _0x43a701=_0x5af205;_0x1950bb[_0x43a701(0xc7d)]=![],_0x1950bb['element'][_0x43a701(0x1390)](_0x43a701(0xd8b)),_0x502d01[_0x43a701(0xb53)](_0x5dfee6,{'display':_0x43a701(0x1e0e),'height':_0x43a701(0x1127)},{'height':_0x4b0eab+'px'},_0x1950bb[_0x43a701(0x1e02)])['then'](function(){const _0x5dcccf=_0x43a701;_0x5dfee6[_0x5dcccf(0x949)]({'height':''}),_0x1950bb[_0x5dcccf(0x1853)][_0x5dcccf(0x1e55)](_0x5dcccf(0xd8b));}),_0x2522c9['$broadcast'](_0x43a701(0x285d),_0x1950bb['node'][_0x43a701(0x2d3)]);});}function _0x3a482e(){const _0x4df086=_0x26410c;return _0x1950bb[_0x4df086(0x2013)][_0x4df086(0x2800)];}function _0x351210(){const _0x911aa0=_0x26410c;if(angular[_0x911aa0(0x13b8)](_0x1950bb[_0x911aa0(0x2013)]['hidden'])&&angular[_0x911aa0(0x1e2c)](_0x1950bb['node'][_0x911aa0(0x3f8)]))return _0x1950bb[_0x911aa0(0x2013)][_0x911aa0(0x3f8)]();return![];}}function _0x1312ec(){return{'restrict':'A','bindToController':{'node':'=msNavigationNode'},'controller':'MsNavigationNodeController\x20as\x20vm','compile':function(_0x46abb0){const _0x4fdacf=a0_0x5cbd;return _0x46abb0[_0x4fdacf(0x1390)](_0x4fdacf(0x2740)),function _0x29bab3(_0x4fbc6c,_0x47690a,_0x1ed9f8,_0x159d72){const _0x117f08=_0x4fdacf;_0x47690a['addClass'](_0x159d72[_0x117f08(0x2aa)]()),_0x159d72[_0x117f08(0x716)]&&_0x47690a[_0x117f08(0x1390)](_0x117f08(0x716));};}};}function _0xefa6b9(){const _0xad14e6=_0x5537c6;return{'restrict':'A','require':_0xad14e6(0x1914),'compile':function(_0x4e3004){const _0x3ee8e1=_0xad14e6;return _0x4e3004[_0x3ee8e1(0x1390)](_0x3ee8e1(0xd77)),function _0x6646aa(_0x1cf4d3,_0x51d980,_0x1d39f1,_0x417297){const _0x1784e0=_0x3ee8e1;_0x417297[_0x1784e0(0x16c3)]&&_0x51d980['on']('click',_0x417297[_0x1784e0(0xe65)]),_0x1cf4d3[_0x1784e0(0x1d6)](_0x1784e0(0x291c),function(){const _0x8cf4cd=_0x1784e0;_0x51d980[_0x8cf4cd(0x28b2)](_0x8cf4cd(0x20b8));});};}};}function _0x2e8f96(_0x1797bd){const _0x3e5a53=_0x5537c6;return{'restrict':'E','scope':{'root':'@'},'controller':_0x3e5a53(0xd6a),'templateUrl':_0x243d9f,'transclude':!![],'compile':function(_0x3af97d){const _0x13c3b4=_0x3e5a53;return _0x3af97d[_0x13c3b4(0x1390)](_0x13c3b4(0x1eaa)),function _0x592f1f(_0x3a75df){_0x1797bd['setNavigationScope'](_0x3a75df);};}};}function _0xd43ca7(_0x4ce7b0,_0x42f615,_0x4c0b27,_0x391f65,_0x46f7ec){const _0x1eace6=_0x5537c6,_0x117f02=this;_0x117f02[_0x1eace6(0x1853)]=_0x42f615,_0x117f02[_0x1eace6(0x2013)]=_0x4ce7b0[_0x1eace6(0x2013)],_0x117f02[_0x1eace6(0x161c)]=undefined,_0x117f02['group']=undefined,_0x117f02[_0x1eace6(0x2aa)]=_0x5476d1,_0x9a39c2();function _0x9a39c2(){const _0x107e65=_0x1eace6;_0x117f02['isActive']=![],_0x117f02[_0x107e65(0x161c)]=_0x117f02[_0x107e65(0x2013)][_0x107e65(0x27a5)][_0x107e65(0xfd0)]>0x0,_0x117f02[_0x107e65(0x716)]=!!(angular[_0x107e65(0x13b8)](_0x117f02['node']['group'])&&_0x117f02['node'][_0x107e65(0x716)]===!![]);if(_0x117f02[_0x107e65(0x2013)]['state']===_0x391f65[_0x107e65(0x1970)][_0x107e65(0x16b6)]||_0x391f65['includes'](_0x117f02['node'][_0x107e65(0x27e0)])){if(angular[_0x107e65(0x13b8)](_0x117f02[_0x107e65(0x2013)][_0x107e65(0x1349)])&&angular[_0x107e65(0x13b8)](_0x391f65[_0x107e65(0x1dfe)])&&!angular[_0x107e65(0x1c53)](_0x117f02[_0x107e65(0x2013)]['stateParams'],_0x391f65[_0x107e65(0x1dfe)]))return;_0x4ce7b0[_0x107e65(0x251)]('msNavigation::stateMatched'),_0x46f7ec[_0x107e65(0x144b)](_0x117f02[_0x107e65(0x2013)],_0x4ce7b0);}_0x4ce7b0[_0x107e65(0x1d6)](_0x107e65(0x20a9),function(){const _0x265612=_0x107e65;_0x117f02['hasChildren']&&_0x4ce7b0[_0x265612(0x2568)](function(){const _0x5f37b6=_0x265612;_0x117f02[_0x5f37b6(0x27b8)]=!![];});}),_0x4ce7b0[_0x107e65(0x1d6)](_0x107e65(0x2411),function(){const _0x62b5b9=_0x107e65;if(!_0x117f02['hasChildren'])return;let _0x4f6b96=[];const _0x26d99b=_0x46f7ec['getActiveItem']();_0x26d99b&&(_0x4f6b96=_0x26d99b[_0x62b5b9(0x2013)][_0x62b5b9(0x2d3)]['split']('.')),_0x4f6b96[_0x62b5b9(0xd8a)](_0x117f02['node'][_0x62b5b9(0xa09)])>-0x1?_0x4ce7b0[_0x62b5b9(0x2568)](function(){const _0x116f8f=_0x62b5b9;_0x117f02[_0x116f8f(0x27b8)]=!![];}):_0x4ce7b0['$evalAsync'](function(){const _0x35ed75=_0x62b5b9;_0x117f02[_0x35ed75(0x27b8)]=![];});}),_0x4ce7b0['$on']('$stateChangeSuccess',function(){const _0x4c3f87=_0x107e65;if(_0x117f02[_0x4c3f87(0x2013)][_0x4c3f87(0x27e0)]===_0x391f65['current']['name']||_0x391f65[_0x4c3f87(0x250a)](_0x117f02['node'][_0x4c3f87(0x27e0)])){if(angular[_0x4c3f87(0x13b8)](_0x117f02[_0x4c3f87(0x2013)][_0x4c3f87(0x1349)])&&angular[_0x4c3f87(0x13b8)](_0x391f65['params'])&&!angular[_0x4c3f87(0x1c53)](_0x117f02[_0x4c3f87(0x2013)]['stateParams'],_0x391f65[_0x4c3f87(0x1dfe)]))return;_0x46f7ec[_0x4c3f87(0x144b)](_0x117f02[_0x4c3f87(0x2013)],_0x4ce7b0),_0x4c0b27[_0x4c3f87(0x692)](_0x4c3f87(0x2411));}});}function _0x5476d1(){const _0x1f11a8=_0x1eace6;return _0x117f02['node'][_0x1f11a8(0x2800)];}}function _0x52f023(){const _0xc4ff09=_0x5537c6;return{'restrict':'A','bindToController':{'node':'=msNavigationHorizontalNode'},'controller':_0xc4ff09(0x534),'compile':function(_0x31281f){const _0x151349=_0xc4ff09;return _0x31281f[_0x151349(0x1390)](_0x151349(0x159b)),function _0x5eda9d(_0x38d1d9,_0x1f6fc5,_0x336b38,_0x3acf0c){const _0x1205e2=_0x151349;_0x1f6fc5[_0x1205e2(0x1390)](_0x3acf0c[_0x1205e2(0x2aa)]()),_0x3acf0c[_0x1205e2(0x716)]&&_0x1f6fc5['addClass'](_0x1205e2(0x716));};}};}function _0x55043b(_0x37f9be){return{'restrict':'A','require':'^msNavigationHorizontalNode','compile':function(_0x7cd483){const _0x27eeb9=a0_0x5cbd;return _0x7cd483[_0x27eeb9(0x1390)]('ms-navigation-horizontal-item'),function _0x528608(_0x49fdb2,_0xb0109e,_0x459caf,_0x5dfbfc){const _0xc4ffc0=_0x27eeb9;_0xb0109e['on']('click',_0x29fef1);function _0x29fef1(){const _0x5918b5=a0_0x5cbd;if(!_0x5dfbfc[_0x5918b5(0x161c)]||_0x37f9be('gt-md'))return;_0xb0109e[_0x5918b5(0x713)](_0x5918b5(0x7bf));}_0x49fdb2[_0xc4ffc0(0x1d6)](_0xc4ffc0(0x291c),function(){const _0x367e97=_0xc4ffc0;_0xb0109e['off'](_0x367e97(0x20b8));});};}};};const _0x3650c2=_0x5074a3['p']+'src/js/modules/core/directives/ms-phonebar/record/dialog.html/dialog.html';;const _0x9edc83=_0x5074a3['p']+_0x5537c6(0x1ca9);;const _0x12560f=_0x5074a3['p']+_0x5537c6(0x346);;const _0x1bfba1=_0x5074a3['p']+'src/js/modules/core/directives/ms-phonebar/ms-phonebar.html/ms-phonebar.html';var _0x247e73=_0x5074a3(0x175b),_0x3d27e7=_0x5074a3['n'](_0x247e73),_0x397290=_0x5074a3(0x26ba),_0x30dee9=_0x5074a3['n'](_0x397290);;_0x5071e2[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1714),_0x5537c6(0xcb9),'$mdToast',_0x5537c6(0x1f10),_0x5537c6(0x1ae),_0x5537c6(0x2704),'toasty',_0x5537c6(0x142b),'motNotification',_0x5537c6(0x1774),'socket'];function _0x5071e2(_0x406458,_0x32cede,_0x2a6f9a,_0x5a6310,_0x56c7ab,_0x3024ad,_0x1fc706,_0x4f8f8b,_0x46f676,_0x297786,_0xfb0203,_0x2147f3,_0x6b352,_0x15f0c6){const _0x5e13a1=_0x5537c6,_0x10008f=this,_0x35e729=window[_0x5e13a1(0xd80)];_0x10008f['baseUrl']=_0xfb0203[_0x5e13a1(0x29ae)],_0x10008f[_0x5e13a1(0x147a)]=_0x406458['$parent']['vm'][_0x5e13a1(0x147a)];const _0x5a9ca3=[_0x5e13a1(0x1a5d),_0x5e13a1(0x2409),'microphoneId',_0x5e13a1(0x446),_0x5e13a1(0x107f),_0x5e13a1(0x50f),_0x5e13a1(0xe7c),'speakerMute','microphoneMute'],_0x428d08=_0x10008f[_0x5e13a1(0x147a)]&&JSON[_0x5e13a1(0xefe)](_0x1fc706[_0x5e13a1(0x1b83)][_0x5e13a1(0x2091)]('motion2.user:'+_0x10008f[_0x5e13a1(0x147a)]['id']))||{'webrtc':{'ringingVolume':0.5,'speakerVolume':0.5,'microphoneVolume':0x1,'ringingMute':![],'speakerMute':![],'microphoneMute':![]}};_0x5a6310(function(){},0x3e7),_0x10008f['direction']='right',_0x10008f[_0x5e13a1(0xfeb)]=_0x5e13a1(0xb6c),_0x10008f['target']='',_0x10008f[_0x5e13a1(0xdaa)]=![],_0x10008f[_0x5e13a1(0xbd9)]=document[_0x5e13a1(0x8c6)](_0x5e13a1(0x297d)),_0x10008f[_0x5e13a1(0x5ea)]=document[_0x5e13a1(0x26ee)](_0x10008f[_0x5e13a1(0x147a)][_0x5e13a1(0xf77)]),_0x10008f[_0x5e13a1(0xbd9)][_0x5e13a1(0x22ef)]=0x1,_0x10008f[_0x5e13a1(0x1cea)]={'mediaConstraints':{'audio':!![],'video':![]},'pcConfig':{'iceServers':[]}},_0x10008f['sessions']=[],_0x10008f['calls']=[],_0x10008f[_0x5e13a1(0x2509)]=[],_0x10008f[_0x5e13a1(0x191d)]=![],_0x10008f[_0x5e13a1(0x1594)]=![],_0x10008f[_0x5e13a1(0x4be)]=[],_0x10008f['ua']=new(_0x3d27e7())['UA']({'sockets':[new(_0x3d27e7())[(_0x5e13a1(0xbfe))](_0x5e13a1(0x273c)+_0x10008f[_0x5e13a1(0x147a)]['host']+_0x5e13a1(0x1d12))],'uri':new(_0x3d27e7())[(_0x5e13a1(0x1c4f))](_0x5e13a1(0x11f7),_0x10008f[_0x5e13a1(0x147a)]['name'],_0x10008f['conf'][_0x5e13a1(0x17d8)],0x13c4,null,null)[_0x5e13a1(0x147f)](),'authorization_user':_0x10008f[_0x5e13a1(0x147a)]['name'],'ha1':_0x10008f['conf']['ha1'],'realm':_0x10008f[_0x5e13a1(0x147a)][_0x5e13a1(0x51f)],'user_agent':_0x10008f[_0x5e13a1(0x147a)]['ua'],'session_timers_refresh_method':_0x5e13a1(0x9e9),'register_expires':_0x10008f[_0x5e13a1(0x147a)]['phoneBarExpires']||0x3c,'register':!![]}),_0x10008f[_0x5e13a1(0x147a)]=_0x39641b()[_0x5e13a1(0x9c1)](_0x428d08[_0x5e13a1(0x110c)],_0x10008f[_0x5e13a1(0x147a)]),_0x10008f[_0x5e13a1(0x4e6)]=![],_0x10008f[_0x5e13a1(0x6f4)]=![],_0x10008f['isJabraInitialized']=![],_0x10008f['jabraSession']=null,_0x10008f[_0x5e13a1(0x633)]=![],_0x10008f[_0x5e13a1(0x1c9f)]=![],_0x10008f[_0x5e13a1(0x223d)]=![];function _0x4d0dd1(){const _0x4e8c42=_0x5e13a1;_0x34c3da(![]),navigator[_0x4e8c42(0x7e3)][_0x4e8c42(0x19df)]=function(){const _0x109a9e=_0x4e8c42;!_0x10008f[_0x109a9e(0x4e6)]&&(_0x10008f[_0x109a9e(0x4e6)]=!![],_0x35e729&&_0x10008f[_0x109a9e(0x25ab)]?_0x35e729[_0x109a9e(0x188f)]()['then'](function(){const _0x1b5386=_0x109a9e;_0x10008f[_0x1b5386(0x25ab)]=![],_0x10008f[_0x1b5386(0x6f4)]=![],_0x34c3da(!![]);})[_0x109a9e(0x1c4)](function(_0x500dc4){const _0x56184b=_0x109a9e;console['error'](_0x56184b(0x224b),_0x500dc4);}):_0x34c3da(!![]));};const _0x5d5d0e=[_0xfb0203[_0x4e8c42(0x21cc)][_0x4e8c42(0xbf7)]({'type':_0x4e8c42(0x2584),'nolimit':!![]})['$promise'],_0xfb0203[_0x4e8c42(0x21cc)][_0x4e8c42(0xbf7)]({'type':'stun','nolimit':!![]})[_0x4e8c42(0x1d77)]];Promise[_0x4e8c42(0x223b)](_0x5d5d0e)[_0x4e8c42(0x1cb0)](function(_0x5174a0){const _0x5617e5=_0x4e8c42,_0x289674=_0x5174a0[0x0][_0x5617e5(0x2214)],_0x5acbb7=_0x5174a0[0x1]['rows'],_0x3c17c8=[],_0x222ad2=[];_0x5acbb7[_0x5617e5(0xf90)](function(_0x2cf0ff){_0x222ad2['push']('stun:'+_0x2cf0ff['value']);}),_0x3c17c8[_0x5617e5(0x2785)]({'urls':_0x222ad2}),_0x289674[_0x5617e5(0xf90)](function(_0x31657f){const _0x1aaaf7=_0x5617e5,_0x56833f={'urls':_0x1aaaf7(0x294b)+_0x31657f[_0x1aaaf7(0x327)]};_0x31657f[_0x1aaaf7(0x1ba7)]&&(_0x56833f[_0x1aaaf7(0x1ba7)]=_0x31657f[_0x1aaaf7(0x1ba7)]),_0x31657f[_0x1aaaf7(0x381)]&&(_0x56833f[_0x1aaaf7(0x35e)]=_0x31657f[_0x1aaaf7(0x381)]),_0x3c17c8['push'](_0x56833f);}),_0x10008f[_0x5617e5(0x1cea)][_0x5617e5(0x15a8)]={'iceServers':_0x3c17c8};}),this['ua']['on'](_0x4e8c42(0x1117),_0x1a1c67[_0x4e8c42(0x1dbd)](this)),this['ua']['on'](_0x4e8c42(0x1cb),_0x554005['bind'](this)),this['ua']['on'](_0x4e8c42(0x1cd4),_0x29f9d1[_0x4e8c42(0x1dbd)](this)),_0x15f0c6['on'](_0x4e8c42(0x1aa9),_0x1a40f5[_0x4e8c42(0x1dbd)](this)),_0x15f0c6['on'](_0x4e8c42(0x1d97),_0x32fd12['bind'](this)),_0x15f0c6['on'](_0x4e8c42(0x215e),_0x5d651d[_0x4e8c42(0x1dbd)](this)),_0x15f0c6['on']('webbar:hold',_0x69539c[_0x4e8c42(0x1dbd)](this)),_0x15f0c6['on'](_0x4e8c42(0x1b78),_0x3d466a[_0x4e8c42(0x1dbd)](this)),_0x15f0c6['on']('webbar:transfer',_0x5b1f5b[_0x4e8c42(0x1dbd)](this));}function _0x34c3da(_0x240e40){const _0x1c5e92=_0x5e13a1;let _0x3e7fc1,_0x2b2729,_0x5c8cb6;return _0x10008f['initDeviceInProgress']=!![],navigator[_0x1c5e92(0x7e3)][_0x1c5e92(0x2629)]({'audio':!![]})['then'](function(_0x39c5c1){const _0x6cf9da=_0x1c5e92;return _0x39c5c1[_0x6cf9da(0x9dc)]()[_0x6cf9da(0xf90)](function(_0x409140){_0x409140['stop']();}),navigator['mediaDevices'][_0x6cf9da(0x38c)]();})['then'](function(_0x33a238){const _0x4154fb=_0x1c5e92,_0x517dbf=_0x39641b()[_0x4154fb(0x1c99)](_0x33a238,function(_0x4319cc){const _0x35084f=_0x4154fb;return _0x4319cc['kind']===_0x35084f(0x1d2b)&&_0x4319cc['deviceId']!==_0x35084f(0x24c8)&&_0x4319cc[_0x35084f(0x5ec)]!==_0x35084f(0x1afd);});if(_0x517dbf['length']>0x0){const _0x39fd42=_0x39641b()['find'](_0x33a238,function(_0x431b9f){const _0x4194ed=_0x4154fb;return _0x431b9f[_0x4194ed(0x5ec)]===_0x4194ed(0x24c8)&&_0x431b9f['kind']==='audioinput';});_0x5c8cb6=_0x39641b()[_0x4154fb(0x13b4)](_0x517dbf,function(_0x1bbd41){const _0x4e8368=_0x4154fb;return _0x1bbd41['groupId']===_0x39fd42[_0x4e8368(0x2491)];});if(_0x10008f[_0x4154fb(0x147a)][_0x4154fb(0x1daa)]&&!_0x240e40){const _0x4de38f=_0x39641b()['find'](_0x517dbf,function(_0x5be0e7){const _0x3ee32e=_0x4154fb;return _0x5be0e7[_0x3ee32e(0x5ec)]===_0x10008f[_0x3ee32e(0x147a)][_0x3ee32e(0x1daa)];});_0x4de38f&&(_0x5c8cb6=_0x4de38f);}_0x10008f['conf']['microphoneId']=_0x5c8cb6[_0x4154fb(0x5ec)];}else _0x297786[_0x4154fb(0x1752)]({'title':_0x4f8f8b['instant']('TOOLBAR.WARNING'),'msg':_0x4f8f8b[_0x4154fb(0x25cc)](_0x4154fb(0x2546)),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x4154fb(0x196d)});_0x10008f['conf'][_0x4154fb(0x1daa)]?_0x10008f[_0x4154fb(0x1cea)]['mediaConstraints'][_0x4154fb(0x297d)]={'deviceId':_0x10008f[_0x4154fb(0x147a)]['microphoneId']}:_0x10008f[_0x4154fb(0x1cea)][_0x4154fb(0x84f)][_0x4154fb(0x297d)]=!![];_0x104e2e(_0x4154fb(0xf44),![]);const _0x5ad82b=_0x39641b()[_0x4154fb(0x1c99)](_0x33a238,function(_0x113b57){const _0x3a3949=_0x4154fb;return _0x113b57[_0x3a3949(0xffc)]==='audiooutput'&&_0x113b57[_0x3a3949(0x5ec)]!==_0x3a3949(0x24c8)&&_0x113b57[_0x3a3949(0x5ec)]!==_0x3a3949(0x1afd);});if(_0x5ad82b[_0x4154fb(0xfd0)]>0x0){const _0x2b391e=_0x39641b()[_0x4154fb(0x13b4)](_0x33a238,function(_0x3cfa4a){const _0x280b06=_0x4154fb;return _0x3cfa4a[_0x280b06(0x5ec)]==='default'&&_0x3cfa4a[_0x280b06(0xffc)]===_0x280b06(0x27c1);});_0x3e7fc1=_0x39641b()[_0x4154fb(0x13b4)](_0x5ad82b,function(_0x32a152){const _0x54786c=_0x4154fb;return _0x32a152[_0x54786c(0x2491)]===_0x2b391e['groupId'];}),_0x2b2729=_0x3e7fc1;if(_0x10008f[_0x4154fb(0x147a)][_0x4154fb(0x2409)]&&!_0x240e40){const _0xbeba71=_0x39641b()[_0x4154fb(0x13b4)](_0x5ad82b,function(_0x5ad0c4){const _0x5102ed=_0x4154fb;return _0x5ad0c4[_0x5102ed(0x5ec)]===_0x10008f['conf'][_0x5102ed(0x2409)];});_0xbeba71&&(_0x2b2729=_0xbeba71);}_0x10008f['conf']['speakerId']=_0x2b2729['deviceId'];if(_0x10008f['conf'][_0x4154fb(0x1a5d)]&&!_0x240e40){const _0x38ea22=_0x39641b()[_0x4154fb(0x13b4)](_0x5ad82b,function(_0x3d9e9e){const _0xbfb996=_0x4154fb;return _0x3d9e9e['deviceId']===_0x10008f[_0xbfb996(0x147a)]['ringingId'];});_0x38ea22&&(_0x3e7fc1=_0x38ea22);}_0x10008f[_0x4154fb(0x147a)]['ringingId']=_0x3e7fc1['deviceId'];}else _0x297786[_0x4154fb(0x1752)]({'title':_0x4f8f8b['instant'](_0x4154fb(0x2ae)),'msg':_0x4f8f8b[_0x4154fb(0x25cc)]('TOOLBAR.WEBRTC_SPEAKER_NOT_AVAILABLE'),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x4154fb(0x196d)});return _0x104e2e(_0x4154fb(0x214a),![]);})[_0x1c5e92(0x1cb0)](function(){const _0x1fd649=_0x1c5e92;return _0x104e2e(_0x1fd649(0x1c7e),![]);})[_0x1c5e92(0x1cb0)](function(){const _0x1fb9e0=_0x1c5e92;if(_0x35e729)return _0x35e729[_0x1fb9e0(0x1a8e)]()[_0x1fb9e0(0x1cb0)](function(){const _0x3d80e2=_0x1fb9e0;return _0x10008f[_0x3d80e2(0x25ab)]=!![],_0x35e729[_0x3d80e2(0x231e)]();})[_0x1fb9e0(0x1cb0)](function(){const _0x412723=_0x1fb9e0;return _0x35e729[_0x412723(0x2870)]();})[_0x1fb9e0(0x1cb0)](function(_0x244266){const _0x4e1922=_0x1fb9e0;_0x5c8cb6&&_0x2b2729&&_0x3e7fc1&&_0x244266&&(_0x39641b()[_0x4e1922(0x250a)]([_0x5c8cb6[_0x4e1922(0x2491)],_0x2b2729[_0x4e1922(0x2491)],_0x3e7fc1[_0x4e1922(0x2491)]],_0x244266[_0x4e1922(0x139b)][_0x4e1922(0x24e5)])&&(console['log'](_0x4e1922(0xd2d)),_0x10008f[_0x4e1922(0x6f4)]=!![],_0x35e729['onHook'](),_0x35e729['addEventListener'](_0x4e1922(0x109c),_0x5f04b3[_0x4e1922(0x1dbd)](this)),_0x35e729[_0x4e1922(0x1d92)](_0x4e1922(0xa5f),_0x540d7c['bind'](this)),_0x35e729[_0x4e1922(0x1d92)](_0x4e1922(0xb58),_0x8844fc[_0x4e1922(0x1dbd)](this)),_0x35e729[_0x4e1922(0x1d92)](_0x4e1922(0x2022),_0x9bc45c[_0x4e1922(0x1dbd)](this)),_0x35e729[_0x4e1922(0x1d92)](_0x4e1922(0x246c),_0x27a3d9['bind'](this))));})[_0x1fb9e0(0x1c4)](function(_0x6675ac){const _0x3d5449=_0x1fb9e0;console['warn'](_0x3d5449(0x1264),_0x6675ac);});})['catch'](function(_0x269434){const _0x493e79=_0x1c5e92;console[_0x493e79(0x218e)](_0x493e79(0x1546),_0x269434),_0x269434[_0x493e79(0x16b6)]===_0x493e79(0x467)&&_0x297786[_0x493e79(0x1752)]({'title':_0x4f8f8b[_0x493e79(0x25cc)](_0x493e79(0x2ae)),'msg':_0x4f8f8b[_0x493e79(0x25cc)](_0x493e79(0x3ed)),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x493e79(0x196d)});})[_0x1c5e92(0x2e0)](function(){const _0x48d878=_0x1c5e92;_0x10008f['initDeviceInProgress']=![],_0x16173e(),_0x30dee9()[_0x48d878(0x997)](_0x4403d4['bind'](this));});}function _0x5f04b3(_0x53c497){const _0x2615da=_0x5e13a1,_0x52b649=_0x39641b()['last'](_0x10008f[_0x2615da(0x6d4)]);_0x52b649?_0x52b649[_0x2615da(0x979)]==='incoming'&&_0x52b649[_0x2615da(0x254a)]()?_0x10008f[_0x2615da(0x24d5)](_0x52b649):console[_0x2615da(0x218e)]('Unable\x20to\x20find\x20a\x20valid\x20call\x20to\x20answer',_0x53c497):console[_0x2615da(0x218e)](_0x2615da(0x1402),_0x53c497);}function _0x540d7c(){const _0x46c4f7=_0x5e13a1;_0x10008f[_0x46c4f7(0x147a)][_0x46c4f7(0x2591)]=!![],_0x104e2e('microphone',!![]);}function _0x8844fc(){const _0x391e50=_0x5e13a1;_0x10008f[_0x391e50(0x147a)][_0x391e50(0x2591)]=![],_0x104e2e(_0x391e50(0xf44),!![]);}function _0x9bc45c(){const _0x4e6e2d=_0x5e13a1;_0x10008f[_0x4e6e2d(0x1cca)][_0x4e6e2d(0x5f1)]?_0x10008f[_0x4e6e2d(0x12fb)](_0x10008f[_0x4e6e2d(0x1cca)]):_0x10008f['hold'](_0x10008f[_0x4e6e2d(0x1cca)]);}function _0x27a3d9(){const _0x2d8720=_0x5e13a1;_0xf5bca()[_0x2d8720(0x1cb0)](function(_0x39bcde){const _0x396102=_0x2d8720;_0x39bcde!==null&&_0x10008f[_0x396102(0x137d)](_0x39bcde);});}function _0x16173e(){const _0x309ed7=_0x5e13a1;_0x428d08['webrtc']=_0x39641b()[_0x309ed7(0x169b)](_0x10008f[_0x309ed7(0x147a)],_0x5a9ca3),_0x1fc706[_0x309ed7(0x1b83)]['setItem'](_0x309ed7(0x2743)+_0x10008f[_0x309ed7(0x147a)]['id'],JSON[_0x309ed7(0x2701)](_0x428d08));}function _0x1a1c67(){const _0x41170b=_0x5e13a1;this[_0x41170b(0x1117)]=!![];}function _0x554005(){const _0x597310=_0x5e13a1;this[_0x597310(0x1117)]=![];}function _0x4403d4(){const _0x1721e6=_0x5e13a1;_0x10008f[_0x1721e6(0x147a)][_0x1721e6(0x1309)]=_0x30dee9()[_0x1721e6(0x1309)],_0x10008f['conf'][_0x1721e6(0x1636)]=_0x30dee9()[_0x1721e6(0x64f)][_0x1721e6(0x16b6)]===_0x1721e6(0xdb6)||_0x30dee9()[_0x1721e6(0x64f)][_0x1721e6(0x16b6)]===_0x1721e6(0xd45)||_0x30dee9()[_0x1721e6(0x64f)][_0x1721e6(0x16b6)]==='Opera'?_0x30dee9()[_0x1721e6(0x1636)]:!![],_0x10008f[_0x1721e6(0x147a)][_0x1721e6(0x234f)]=_0x30dee9()[_0x1721e6(0x234f)],_0x10008f['conf'][_0x1721e6(0x2867)]=_0x30dee9()[_0x1721e6(0x2867)],_0x10008f[_0x1721e6(0x147a)][_0x1721e6(0x2165)]=_0x30dee9()[_0x1721e6(0x2165)],_0x10008f[_0x1721e6(0x147a)][_0x1721e6(0x2ed)]=_0x30dee9()[_0x1721e6(0x64f)]['name'],_0x10008f[_0x1721e6(0x147a)][_0x1721e6(0x9e6)]=_0x30dee9()[_0x1721e6(0x64f)][_0x1721e6(0x23cc)];if(_0x522dd7())!_0x10008f['register']&&_0x10008f['ua'][_0x1721e6(0xf51)]();else!_0x10008f[_0x1721e6(0x147a)][_0x1721e6(0x8a5)]&&_0x297786['warning']({'title':_0x4f8f8b['instant'](_0x1721e6(0x2ae)),'msg':_0x4f8f8b[_0x1721e6(0x25cc)](_0x1721e6(0xa7b)),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x1721e6(0x196d)});}function _0x522dd7(){const _0x394847=_0x5e13a1;return _0x10008f[_0x394847(0x147a)][_0x394847(0x8a5)]&&_0x10008f['conf'][_0x394847(0x234f)]&&_0x10008f[_0x394847(0x147a)][_0x394847(0x1309)]&&_0x10008f['conf'][_0x394847(0x1636)]&&_0x10008f[_0x394847(0x147a)]['protocol']===_0x394847(0xad4)&&_0x4b700e();}function _0x4b700e(){const _0x4f75d4=_0x5e13a1;return _0x10008f[_0x4f75d4(0x147a)]['browserName'][_0x4f75d4(0x1680)]()==='chrome'||_0x10008f[_0x4f75d4(0x147a)][_0x4f75d4(0x2ed)][_0x4f75d4(0x1680)]()===_0x4f75d4(0xc24)||_0x10008f['conf'][_0x4f75d4(0x2ed)][_0x4f75d4(0x1680)]()==='safari';}function _0x29f9d1(_0x141417){const _0x36755c=_0x5e13a1;console[_0x36755c(0xbf5)](_0x36755c(0x15a1),_0x141417);const _0x32e230=_0x141417['session'];let _0x2e52ba=!![],_0x4341e8='',_0x24a61d=0x0,_0x41ed09;switch(_0x141417[_0x36755c(0x1db2)]){case _0x36755c(0xf11):{_0x32e230['outgoing']=!![],_0x32e230[_0x36755c(0x16b6)]=_0x141417[_0x36755c(0x25eb)][_0x36755c(0x1a84)][_0x36755c(0xebe)],_0x32e230[_0x36755c(0xebe)]=_0x141417['request']['ruri']['user'],_0x48a9df(_0x32e230[_0x36755c(0xebe)],![]);const _0x581a27='X-callback-url';_0x41ed09=_0x4080fa(_0x141417[_0x36755c(0x25eb)][_0x36755c(0x2029)],_0x581a27),_0x10008f[_0x36755c(0x6f4)]&&(_0x10008f['jabraSession']&&_0x35e729['resume'](),_0x10008f[_0x36755c(0x1cca)]=_0x32e230,_0x35e729['offHook']());}break;case'remote':{const _0x59ad51=_0x6b352[_0x36755c(0x21e8)]();if(_0x59ad51[_0x36755c(0x2478)]&&_0x59ad51[_0x36755c(0x24de)]||_0x10008f[_0x36755c(0x223d)])_0x2e52ba=![];else{_0x32e230[_0x36755c(0x985)]=!![],_0x32e230[_0x36755c(0x16b6)]=_0x141417['request']['from'][_0x36755c(0xd88)],_0x32e230[_0x36755c(0xebe)]=_0x141417[_0x36755c(0x25eb)][_0x36755c(0x174d)][_0x36755c(0xa0b)][_0x36755c(0xebe)],_0x4341e8=_0x141417[_0x36755c(0x25eb)][_0x36755c(0x1ab2)](_0x36755c(0x8a0))||'',_0x24a61d=_0x141417['request'][_0x36755c(0x1ab2)]('X-Answer-After')||0x0,_0x22cbe5(_0x141417[_0x36755c(0xb77)]),_0x48a9df(_0x141417[_0x36755c(0xb77)][_0x36755c(0xebe)],!![]);_0x10008f[_0x36755c(0x6f4)]&&_0x35e729['ring']();_0x10008f[_0x36755c(0x147a)][_0x36755c(0x1d39)]&&_0x2a6f9a(function(){const _0x13883d=_0x36755c;_0x32e230[_0x13883d(0x254a)]()&&(_0x32e230[_0x13883d(0x1d39)]=!![],_0x3abb73(_0x32e230));},_0x10008f[_0x36755c(0x147a)]['autoAnswerDelay']?_0x10008f[_0x36755c(0x147a)][_0x36755c(0x1a95)]*0x3e8:0x0);console['debug'](_0x36755c(0x1e0),_0x4341e8),console[_0x36755c(0xbf5)](_0x36755c(0x95b),_0x24a61d);if(_0x4341e8[_0x36755c(0x1680)]()==_0x36755c(0x968)){const _0x51ade0=_0x24a61d==0x0?0x1f4:_0x24a61d*0x3e8;console[_0x36755c(0xbf5)](_0x36755c(0x1093)+_0x51ade0+'\x20ms'),_0x2a6f9a(function(){const _0x371322=_0x36755c;_0x32e230['isInProgress']()&&(_0x32e230[_0x371322(0x1d39)]=!![],_0x3abb73(_0x32e230));},_0x51ade0);}}break;}default:}_0x2e52ba?(_0x32e230[_0x36755c(0x1ff5)]=_0x141417[_0x36755c(0x25eb)][_0x36755c(0x1ff5)],_0x41ed09&&(_0x10008f[_0x36755c(0x2509)][_0x32e230[_0x36755c(0x1ff5)]]=_0x41ed09,_0x831994(_0x41ed09,{'call_id':_0x32e230[_0x36755c(0x1ff5)]})[_0x36755c(0x1cb0)](function(){const _0xf12549=_0x36755c;console[_0xf12549(0x1b4f)](_0xf12549(0x2008)+_0x41ed09+_0xf12549(0x1cc9));})['catch'](function(_0x20e9d6){const _0x4badd3=_0x36755c;console['log'](_0x4badd3(0x1024)+_0x41ed09+'\x22\x20err:',_0x20e9d6);})),_0x32e230[_0x36755c(0x1949)]&&(_0x32e230[_0x36755c(0x1949)][_0x36755c(0x1ca7)]=_0x5f3f8c[_0x36755c(0x1dbd)](this)),_0x32e230['iceCandidateTimeout']=null,_0x32e230['on'](_0x36755c(0x22d9),_0x666aff[_0x36755c(0x1dbd)](this,_0x32e230)),_0x32e230['on'](_0x36755c(0x1dd3),_0x52d908[_0x36755c(0x1dbd)](this,_0x32e230)),_0x32e230['on'](_0x36755c(0xd1d),_0x4e6c97['bind'](this,_0x32e230)),_0x32e230['on']('unhold',_0x1b438c[_0x36755c(0x1dbd)](this,_0x32e230)),_0x32e230['on'](_0x36755c(0x1955),_0x4cc066[_0x36755c(0x1dbd)](this,_0x32e230)),_0x32e230['on'](_0x36755c(0x1460),_0x529566[_0x36755c(0x1dbd)](this,_0x32e230)),_0x32e230['on'](_0x36755c(0xd60),_0x3b1fa3['bind'](this,_0x32e230)),_0x10008f[_0x36755c(0x6d4)][_0x36755c(0x2785)](_0x32e230),_0x2a6f9a(function(){const _0x2e5765=_0x36755c;_0x406458[_0x2e5765(0x652)](),console['debug']('onNewRTCSession\x20->\x20vm_pb.sessions',_0x10008f['sessions']);})):_0x877b19(_0x32e230,0x1e6);}function _0x48a9df(_0xa0c6cc,_0x3831a6,_0xdc86b1){const _0x35b61b=_0x5e13a1;console[_0x35b61b(0xbf5)]('addCall\x20->\x20target,\x20inbound,\x20fullname',_0xa0c6cc,_0x3831a6,_0xdc86b1),_0x10008f['calls'][_0x35b61b(0xf63)]({'target':_0xa0c6cc,'fullname':_0xdc86b1||_0xa0c6cc,'inbound':_0x3831a6,'time':_0x543b5a()()[_0x35b61b(0x1f31)]('HH:mm')}),_0x10008f['calls'][_0x35b61b(0xfd0)]>0x32&&_0x10008f[_0x35b61b(0x13e2)][_0x35b61b(0xad3)]();}function _0x22cbe5(_0x51b885){const _0x5cb94d=_0x5e13a1;console[_0x5cb94d(0xbf5)](_0x5cb94d(0x8fd),_0x51b885);const _0x357b84=_0x51b885[_0x5cb94d(0x16b6)]?_0x51b885[_0x5cb94d(0x16b6)]+'\x20<'+_0x51b885[_0x5cb94d(0xebe)]+'>':_0x51b885['user'];_0x2147f3[_0x5cb94d(0x12e5)](_0x5cb94d(0x202c),_0x357b84,null,function(){_0x3abb73(_0x51b885);},function(){_0x877b19(_0x51b885);})[_0x5cb94d(0x1cb0)](function(_0x3c7399){const _0x3c9439=_0x5cb94d;_0x51b885[_0x3c9439(0x163c)]=_0x3c7399;})['catch'](function(_0xe1b9dd){const _0x123bb7=_0x5cb94d;console[_0x123bb7(0x218e)](_0x123bb7(0x1ce4),_0xe1b9dd);});}function _0x3abb73(_0x28330d){const _0x4c7c1d=_0x5e13a1;console[_0x4c7c1d(0xbf5)]('answer\x20->\x20session',_0x28330d),_0x10008f[_0x4c7c1d(0x147a)][_0x4c7c1d(0x1daa)]?_0x10008f[_0x4c7c1d(0x1cea)][_0x4c7c1d(0x84f)][_0x4c7c1d(0x297d)]={'deviceId':_0x10008f['conf'][_0x4c7c1d(0x1daa)]}:_0x10008f[_0x4c7c1d(0x1cea)][_0x4c7c1d(0x84f)][_0x4c7c1d(0x297d)]=!![],_0x28330d[_0x4c7c1d(0x24d5)](_0x10008f[_0x4c7c1d(0x1cea)]),_0x10008f['isJabraEnabled']&&(_0x35e729[_0x4c7c1d(0x1ca1)](),_0x10008f['jabraSession']=_0x28330d);}function _0x877b19(_0x8fe032,_0x5c7fed){const _0x4fae49=_0x5e13a1;console['debug'](_0x4fae49(0x27e7),_0x8fe032);const _0x5c5336={};if(_0x5c7fed)_0x5c5336[_0x4fae49(0x290e)]=_0x5c7fed;else!_0x8fe032[_0x4fae49(0x1125)]()&&(_0x5c5336['status_code']=0x25b);_0x8fe032[_0x4fae49(0x137d)](_0x5c5336);if(_0x10008f[_0x4fae49(0x6f4)]){if(_0x10008f[_0x4fae49(0x6d4)][_0x4fae49(0xfd0)]===0x0)_0x8fe032[_0x4fae49(0x5f1)]&&_0x35e729[_0x4fae49(0x162b)](),_0x35e729[_0x4fae49(0x9c0)](),_0x10008f[_0x4fae49(0x1cca)]=null;else{const _0x4134ca=_0x39641b()[_0x4fae49(0x1f9e)](_0x10008f[_0x4fae49(0x6d4)]);_0x4134ca[_0x4fae49(0x5f1)]?(_0x35e729[_0x4fae49(0x9c0)](),_0x35e729[_0x4fae49(0xd1d)](),_0x10008f[_0x4fae49(0x1cca)]=_0x4134ca):_0x35e729[_0x4fae49(0x1ca1)]();}}}function _0x666aff(_0x46a2b2,_0xd712a1){const _0xb1b990=_0x5e13a1;console[_0xb1b990(0xbf5)](_0xb1b990(0x2948),_0x46a2b2,_0xd712a1);let _0x53f692=![];switch(_0xd712a1[_0xb1b990(0x1db2)]){case'local':!this[_0xb1b990(0x147a)][_0xb1b990(0xe7c)]&&(this[_0xb1b990(0xbd9)]['setAttribute'](_0xb1b990(0x22f),_0xb1b990(0x23e9)),_0x53f692=!![]);break;case _0xb1b990(0x115f):this[_0xb1b990(0x1368)](_0x46a2b2),this[_0xb1b990(0xbd9)]['setAttribute'](_0xb1b990(0x22f),'app/core/directives/ms-phonebar/sounds/outgoing-call.ogg'),_0x53f692=!![];break;}_0x10008f[_0xb1b990(0x223d)]&&(_0x10008f['originateInProgress']=![]),_0x53f692&&(this[_0xb1b990(0xbd9)][_0xb1b990(0x7c2)]=_0xb1b990(0x7c2),this['soundPlayer'][_0xb1b990(0x96e)]()[_0xb1b990(0x1c4)](function(_0x25bdbf){console['log'](_0x25bdbf['message']);})),_0x4d881b(_0x46a2b2)[_0xb1b990(0x1cb0)](function(){const _0x1a18be=_0xb1b990,_0x1c8929=_0x10008f[_0x1a18be(0x2509)][_0x46a2b2[_0x1a18be(0x1ff5)]];_0x1c8929&&_0x831994(_0x1c8929,{'uniqueid':_0x46a2b2['uniqueid'],'call_id':_0x46a2b2['call_id'],'number_called':_0x46a2b2['user']})[_0x1a18be(0x1cb0)](function(){const _0x1a1722=_0x1a18be;console[_0x1a1722(0x1b4f)](_0x1a1722(0x2008)+_0x1c8929+_0x1a1722(0x1cc9));})[_0x1a18be(0x1c4)](function(_0x196177){const _0x5424e2=_0x1a18be;console[_0x5424e2(0x1b4f)](_0x5424e2(0x1024)+_0x1c8929+_0x5424e2(0x3d5),_0x196177);})[_0x1a18be(0x2e0)](function(){const _0x357b26=_0x1a18be;delete _0x10008f[_0x357b26(0x2509)][_0x46a2b2['call_id']];});})[_0xb1b990(0x1c4)](function(_0x2b1b87){const _0xf06de5=_0xb1b990;console[_0xf06de5(0x218e)]('Unable\x20to\x20retrieve\x20voice\x20channels',_0x2b1b87);});}function _0x4d881b(_0xbc2a98){const _0x486049=_0x5e13a1;return console[_0x486049(0xbf5)](_0x486049(0x20ac),_0xbc2a98),_0xfb0203['rpc'][_0x486049(0x1721)]()[_0x486049(0x1d77)][_0x486049(0x1cb0)](function(_0x5c2dad){const _0x3b7394=_0x486049,_0x568116=_0x39641b()[_0x3b7394(0x13b4)](_0x5c2dad['rows'],function(_0x23bbf4){const _0x8097a0=_0x3b7394;if(_0x23bbf4['sipcalllinkedid']===_0xbc2a98[_0x8097a0(0x1ff5)])return _0x23bbf4;if(_0x23bbf4[_0x8097a0(0x22d0)]===_0xbc2a98['call_id'])return _0x23bbf4;return null;});_0x568116&&(_0xbc2a98['monitor']=_0x568116[_0x3b7394(0x1f46)],_0xbc2a98['uniqueid']=_0x568116['uniqueid'],_0xbc2a98[_0x3b7394(0xfa2)]=_0x568116['monitors']);return;});}function _0x52d908(_0x32a18d,_0x5a4ce6){const _0x2a4764=_0x5e13a1;console[_0x2a4764(0xbf5)]('onConfirmed\x20->\x20session,\x20data',_0x32a18d,_0x5a4ce6);const _0x285611=document[_0x2a4764(0x26ee)](_0x2a4764(0x10ac)+_0x32a18d['id'][_0x2a4764(0x2028)](0x0,0x20));_0x285611&&$(_0x285611)[_0x2a4764(0x1500)]()[_0x2a4764(0x692)]('timer-start'),_0x32a18d[_0x2a4764(0x1dd3)]=!![],_0x5a4ce6[_0x2a4764(0x1db2)]===_0x2a4764(0x115f)&&_0x32a18d['connection']&&(_0x32a18d['connection'][_0x2a4764(0x1ca7)]=_0x5f3f8c[_0x2a4764(0x1dbd)](this),_0x39641b()[_0x2a4764(0x2083)](_0x32a18d[_0x2a4764(0x1949)][_0x2a4764(0x26f5)]())&&(this[_0x2a4764(0x5ea)]['srcObject']=_0x39641b()['head'](_0x32a18d[_0x2a4764(0x1949)]['getRemoteStreams']()),this[_0x2a4764(0x5ea)][_0x2a4764(0x96e)]())),this[_0x2a4764(0xbd9)][_0x2a4764(0x785)](),this['soundPlayer']['loop']=null,this[_0x2a4764(0x1368)](_0x32a18d),_0x32a18d[_0x2a4764(0x1d39)]&&(this['soundPlayer'][_0x2a4764(0x23b9)]('src','app/core/directives/ms-phonebar/sounds/beep.ogg'),this['soundPlayer'][_0x2a4764(0x96e)]()[_0x2a4764(0x1c4)](function(_0x28bd05){const _0x2fc931=_0x2a4764;console[_0x2fc931(0x1b4f)]('Unable\x20to\x20play\x20autoAnswer\x20notification',_0x28bd05);})),_0x10008f['canGoInConference']=_0x10008f[_0x2a4764(0x6d4)][_0x2a4764(0xfd0)]==0x2,_0x4d881b(_0x32a18d)[_0x2a4764(0x1c4)](function(_0x211762){const _0x32e833=_0x2a4764;console[_0x32e833(0x218e)](_0x32e833(0x16c2),_0x211762);});}function _0x5f3f8c(_0x316f97){const _0x593a43=_0x5e13a1;console[_0x593a43(0xbf5)](_0x593a43(0x88b),_0x316f97),this[_0x593a43(0x5ea)]['srcObject']=_0x316f97[_0x593a43(0x29c9)],this['remotePlayer'][_0x593a43(0x96e)]();}function _0x4e6c97(_0x2df431,_0x4855fa){const _0x5a53eb=_0x5e13a1;console[_0x5a53eb(0xbf5)](_0x5a53eb(0x257d),_0x2df431,_0x4855fa),_0x4855fa[_0x5a53eb(0x1db2)]===_0x5a53eb(0xf11)&&(_0x2df431[_0x5a53eb(0x5f1)]=!![]);}function _0x1b438c(_0xbf7d8c,_0x414640){const _0x1ca1d3=_0x5e13a1;console[_0x1ca1d3(0xbf5)](_0x1ca1d3(0x10ff),_0xbf7d8c,_0x414640),_0x414640[_0x1ca1d3(0x1db2)]===_0x1ca1d3(0xf11)&&(_0xbf7d8c[_0x1ca1d3(0x5f1)]=![]);}function _0x4cc066(_0x3ddb7e,_0x163ca1){const _0x2930f2=_0x5e13a1;console[_0x2930f2(0xbf5)](_0x2930f2(0xade),_0x3ddb7e,_0x163ca1);_0x10008f[_0x2930f2(0x1594)]&&(_0x39641b()['includes'](_0x10008f['currentConferenceSessions'],_0x3ddb7e['id'])&&(_0x3329b8(),_0x10008f[_0x2930f2(0x1c9f)]=!![]));_0x39641b()[_0x2930f2(0x152a)](this[_0x2930f2(0x6d4)],{'id':_0x3ddb7e['id']});_0x10008f[_0x2930f2(0x6d4)]['length']!==0x2&&(_0x10008f[_0x2930f2(0x191d)]=![]);if(_0x10008f[_0x2930f2(0x6f4)]){if(_0x10008f['sessions'][_0x2930f2(0xfd0)]===0x0)_0x3ddb7e['localHold']&&_0x35e729[_0x2930f2(0x162b)](),_0x35e729[_0x2930f2(0x9c0)](),_0x10008f[_0x2930f2(0x1cca)]=null;else{const _0x17c94b=_0x39641b()[_0x2930f2(0x1f9e)](_0x10008f[_0x2930f2(0x6d4)]);_0x17c94b['localHold']?(_0x35e729['onHook'](),_0x35e729[_0x2930f2(0xd1d)](),_0x10008f[_0x2930f2(0x1cca)]=_0x17c94b):_0x35e729[_0x2930f2(0x1ca1)]();}}}function _0x3329b8(){const _0x22d33c=_0x5e13a1;_0x10008f[_0x22d33c(0x191d)]=![],_0x10008f['isInConference']=![],_0x10008f[_0x22d33c(0x119f)]=[];}function _0x529566(_0x358ba8,_0x1945de){const _0x3c2b8e=_0x5e13a1;console[_0x3c2b8e(0xbf5)](_0x3c2b8e(0x15f8),_0x358ba8,_0x1945de),this['soundPlayer'][_0x3c2b8e(0x785)](),this['soundPlayer'][_0x3c2b8e(0x7c2)]=null;_0x358ba8[_0x3c2b8e(0x163c)]&&_0x358ba8[_0x3c2b8e(0x163c)][_0x3c2b8e(0xf3b)]();_0x10008f['isInConference']&&(_0x39641b()['includes'](_0x10008f[_0x3c2b8e(0x4be)],_0x358ba8['id'])&&_0x3329b8());_0x10008f[_0x3c2b8e(0x223d)]&&(_0x10008f[_0x3c2b8e(0x223d)]=![]);_0x39641b()[_0x3c2b8e(0x152a)](this[_0x3c2b8e(0x6d4)],{'id':_0x358ba8['id']});_0x10008f[_0x3c2b8e(0x6d4)][_0x3c2b8e(0xfd0)]!==0x2&&(_0x10008f[_0x3c2b8e(0x191d)]=![]);if(_0x10008f[_0x3c2b8e(0x6f4)]){if(_0x10008f[_0x3c2b8e(0x6d4)][_0x3c2b8e(0xfd0)]===0x0)_0x358ba8['localHold']&&_0x35e729[_0x3c2b8e(0x162b)](),_0x35e729[_0x3c2b8e(0x9c0)](),_0x10008f[_0x3c2b8e(0x1cca)]=null;else{const _0x4d1939=_0x39641b()['last'](_0x10008f[_0x3c2b8e(0x6d4)]);_0x4d1939[_0x3c2b8e(0x5f1)]?(_0x35e729[_0x3c2b8e(0x9c0)](),_0x35e729[_0x3c2b8e(0xd1d)](),_0x10008f['jabraSession']=_0x4d1939):_0x35e729['offHook']();}}}function _0x3b1fa3(_0x24cd48,_0x3c683d){const _0x56848d=_0x5e13a1;console[_0x56848d(0xbf5)](_0x56848d(0x14bd),_0x24cd48,_0x3c683d),_0x24cd48['iceCandidateTimeout']!==null&&clearTimeout(_0x24cd48[_0x56848d(0x1f11)]),_0x24cd48[_0x56848d(0x1f11)]=setTimeout(_0x3c683d[_0x56848d(0x26cf)],0x1*0x3e8);}function _0x999fb2(){const _0xdfb368=_0x5e13a1;_0x10008f[_0xdfb368(0xdaa)]=![];}function _0x52713d(_0xc15f52,_0x372796){const _0x21c614=_0x5e13a1;let _0x2070f9=_0xc15f52;!_0x10008f[_0x21c614(0x251d)]&&(_0x10008f[_0x21c614(0x251d)]='');_0x372796&&(_0x10008f[_0x21c614(0x251d)]+=_0xc15f52,_0x406458['$broadcast'](_0x21c614(0x25ed),_0x21c614(0x54a),_0x10008f[_0x21c614(0x251d)]));switch(_0xc15f52){case'*':_0x2070f9=_0x21c614(0xfe2);break;case'#':_0x2070f9=_0x21c614(0x1a46);break;default:}_0x10008f['conf'][_0x21c614(0x15d8)]&&(_0x10008f[_0x21c614(0xbd9)][_0x21c614(0x23b9)](_0x21c614(0x22f),_0x21c614(0x28d0)+_0x2070f9+_0x21c614(0x232e)),_0x10008f[_0x21c614(0xbd9)][_0x21c614(0x96e)]()[_0x21c614(0x1c4)](function(_0x41df98){const _0x17424c=_0x21c614;console['log'](_0x41df98[_0x17424c(0x155e)]);}));for(let _0x55e5e3=0x0;_0x55e5e3<_0x10008f[_0x21c614(0x6d4)][_0x21c614(0xfd0)];_0x55e5e3+=0x1){_0x10008f['sessions'][_0x55e5e3][_0x21c614(0x1125)]()&&!_0x10008f[_0x21c614(0x6d4)][_0x55e5e3]['isOnHold']()['local']&&_0x10008f[_0x21c614(0x6d4)][_0x55e5e3][_0x21c614(0x515)](_0xc15f52);}}function _0x104e2e(_0x4017d0,_0x3ca4bd){const _0x1bc5c7=_0x5e13a1;switch(_0x4017d0){case _0x1bc5c7(0x1c7e):_0x10008f['soundPlayer'][_0x1bc5c7(0xa67)]=_0x10008f[_0x1bc5c7(0x147a)][_0x1bc5c7(0xe7c)];_0x10008f['conf']['ringingId']&&_0x10008f[_0x1bc5c7(0xbd9)][_0x1bc5c7(0xaef)](_0x10008f[_0x1bc5c7(0x147a)][_0x1bc5c7(0x1a5d)])[_0x1bc5c7(0x1cb0)](function(){const _0x5cad0d=_0x1bc5c7;_0x10008f[_0x5cad0d(0xbd9)][_0x5cad0d(0x22ef)]=_0x10008f[_0x5cad0d(0x147a)][_0x5cad0d(0x446)];})[_0x1bc5c7(0x1cb0)](function(){_0x3ca4bd&&_0x16173e();})[_0x1bc5c7(0x1c4)](function(_0x55bfbd){const _0x33f55b=_0x1bc5c7;console[_0x33f55b(0x28c7)](_0x55bfbd[_0x33f55b(0x155e)],_0x10008f[_0x33f55b(0x147a)][_0x33f55b(0x1a5d)]);});break;case _0x1bc5c7(0x214a):_0x10008f['remotePlayer'][_0x1bc5c7(0xa67)]=_0x10008f['conf'][_0x1bc5c7(0x6b6)];_0x10008f[_0x1bc5c7(0x147a)][_0x1bc5c7(0x2409)]&&_0x10008f[_0x1bc5c7(0x5ea)][_0x1bc5c7(0xaef)](_0x10008f[_0x1bc5c7(0x147a)][_0x1bc5c7(0x2409)])[_0x1bc5c7(0x1cb0)](function(){const _0x23ae5d=_0x1bc5c7;_0x10008f['remotePlayer']['volume']=_0x10008f[_0x23ae5d(0x147a)][_0x23ae5d(0x107f)];})[_0x1bc5c7(0x1cb0)](function(){_0x3ca4bd&&_0x16173e();})[_0x1bc5c7(0x1c4)](function(_0x270fce){const _0x2e0e2c=_0x1bc5c7;console[_0x2e0e2c(0x28c7)](_0x270fce[_0x2e0e2c(0x155e)],_0x10008f[_0x2e0e2c(0x147a)][_0x2e0e2c(0x2409)]);});break;case _0x1bc5c7(0xf44):for(let _0x5eab5e=0x0;_0x5eab5e<_0x10008f[_0x1bc5c7(0x6d4)]['length'];_0x5eab5e+=0x1){_0x10008f[_0x1bc5c7(0x147a)][_0x1bc5c7(0x2591)]?_0x10008f[_0x1bc5c7(0x6d4)][_0x5eab5e][_0x1bc5c7(0xa5f)]():_0x10008f['sessions'][_0x5eab5e][_0x1bc5c7(0xb58)]();}_0x35e729&&_0x10008f[_0x1bc5c7(0x6f4)]&&(_0x10008f['conf'][_0x1bc5c7(0x2591)]?_0x35e729[_0x1bc5c7(0xa5f)]():_0x35e729[_0x1bc5c7(0xb58)]());_0x3ca4bd&&_0x16173e();break;default:console[_0x1bc5c7(0x1b4f)](_0x1bc5c7(0x46d));}}function _0x54b893(_0x5e29e6){const _0x34aa27=_0x5e13a1;if(!_0x5e29e6)_0x85fa45();else/^(\w|\.|\+|#|\*|\(|\)|\s|-)*$/[_0x34aa27(0x26a1)](_0x5e29e6)?(_0x10008f[_0x34aa27(0x251d)]=_0x5e29e6,_0x406458[_0x34aa27(0x692)](_0x34aa27(0x25ed),_0x34aa27(0x54a),_0x10008f['target'])):_0x10008f[_0x34aa27(0x251d)]?_0x406458[_0x34aa27(0x692)](_0x34aa27(0x25ed),_0x34aa27(0x54a),_0x10008f[_0x34aa27(0x251d)]):_0x85fa45();}function _0x85fa45(){const _0x4861ea=_0x5e13a1;_0x10008f['target']='',document[_0x4861ea(0x26ee)]('ms-target')[_0x4861ea(0x1b57)](),document[_0x4861ea(0x26ee)](_0x4861ea(0x19ee))['value']='',_0x406458[_0x4861ea(0x692)](_0x4861ea(0x196e),_0x4861ea(0x54a));}function _0x346ab1(_0x4ccbd9){const _0x5cd783=_0x5e13a1;_0x4ccbd9&&(_0x10008f['target']=_0x4ccbd9[_0x5cd783(0xfc0)][_0x5cd783(0x251d)],_0x10008f[_0x5cd783(0x205d)](),_0x85fa45());}function _0x108364(){const _0x43274f=_0x5e13a1;if(_0x10008f[_0x43274f(0x251d)]&&_0x10008f[_0x43274f(0x251d)]!==_0x10008f['conf'][_0x43274f(0x16b6)]&&_0x10008f[_0x43274f(0x251d)]!==_0x10008f[_0x43274f(0x147a)][_0x43274f(0xdbd)]){_0x10008f[_0x43274f(0x147a)][_0x43274f(0x1daa)]?_0x10008f[_0x43274f(0x1cea)][_0x43274f(0x84f)]['audio']={'deviceId':_0x10008f[_0x43274f(0x147a)][_0x43274f(0x1daa)]}:_0x10008f['sessionConf'][_0x43274f(0x84f)][_0x43274f(0x297d)]=!![];let _0x39a6cf=_0x10008f[_0x43274f(0x251d)]['replace'](/ /g,'');return _0x39a6cf=_0x39a6cf[_0x43274f(0x288f)](/\(/g,''),_0x39a6cf=_0x39a6cf[_0x43274f(0x288f)](/\)/g,''),_0x4993c6(_0x39a6cf)[_0x43274f(0x1cb0)](function(_0x4c6d06){const _0x29b4a4=_0x43274f;_0x4c6d06&&_0x10008f['ua']['call'](_0x4c6d06,_0x10008f[_0x29b4a4(0x1cea)]);})['then'](function(){_0x85fa45();});}}function _0x4993c6(_0x32ad51){const _0x56ceeb=_0x5e13a1;return _0xfb0203['user'][_0x56ceeb(0x26de)]({'id':_0x10008f[_0x56ceeb(0x147a)]['id']})[_0x56ceeb(0x1d77)][_0x56ceeb(0x1cb0)](function(_0x1862a7){const _0x28ecbe=_0x56ceeb;if(_0x1862a7['count'])return _0x56c7ab[_0x28ecbe(0xe27)]({'controller':_0x28ecbe(0x34e),'controllerAs':'vm','templateUrl':_0x53552d,'parent':angular[_0x28ecbe(0x1853)](_0x32cede[_0x28ecbe(0x1ed9)]),'clickOutsideToClose':!![],'locals':{'prefixes':_0x1862a7,'required':_0x10008f[_0x28ecbe(0x147a)]['phoneBarPrefixRequired']}});})[_0x56ceeb(0x1cb0)](function(_0x4bc00d){const _0x342491=_0x56ceeb;if(!_0x10008f[_0x342491(0x147a)][_0x342491(0x1a1e)]){if(_0x4bc00d&&_0x4bc00d!==-0x1)return _0x4bc00d+_0x32ad51;else{if(!_0x4bc00d)return _0x32ad51;}}else{if(_0x4bc00d&&_0x4bc00d!==-0x1)return _0x4bc00d+_0x32ad51;}});}function _0x19f1ea(_0xba2434){const _0x4478c0=_0x5e13a1;switch(_0xba2434['key'][_0x4478c0(0x1680)]()){case'0':case'1':case'2':case'3':case'4':case'5':case'6':case'7':case'8':case'9':case'*':case'#':_0x10008f['type'](_0xba2434[_0x4478c0(0xee8)]);break;case _0x4478c0(0x495):_0x10008f[_0x4478c0(0x205d)]();break;default:}}function _0x2df29c(){const _0x593b5e=_0x5e13a1;_0x10008f['showDialpad']=!_0x10008f[_0x593b5e(0xdaa)];}_0x32cede[_0x5e13a1(0x1dbd)]('keyup',function(_0x5db842){switch(_0x5db842['keyCode']){case 0x1b:_0x2a6f9a(function(){const _0x6670ee=a0_0x5cbd;_0x10008f[_0x6670ee(0xdaa)]=![];});break;default:}});function _0x4cd0ee(){const _0x4514e0=_0x5e13a1;_0x10008f['isInConference']=!![],_0x10008f[_0x4514e0(0x191d)]=![],_0x10008f[_0x4514e0(0x4be)]['push'](_0x10008f[_0x4514e0(0x6d4)][0x0]['id']),_0x10008f[_0x4514e0(0x4be)][_0x4514e0(0x2785)](_0x10008f[_0x4514e0(0x6d4)][0x1]['id']);const _0xf41d5=_0x10008f[_0x4514e0(0x6d4)][0x0][_0x4514e0(0x1949)]['getSenders']()[0x0],_0x3519aa=_0x10008f['sessions'][0x0][_0x4514e0(0x1949)]['getReceivers']()[0x0];_0x3519aa[_0x4514e0(0x2782)][_0x4514e0(0x1d92)](_0x4514e0(0xb58),function(){setTimeout(function(){_0x33b8cb();},0x3e8);},![]);const _0x441168=_0x10008f[_0x4514e0(0x6d4)][0x1][_0x4514e0(0x1949)][_0x4514e0(0x29b0)]()[0x0],_0x306dda=_0x10008f[_0x4514e0(0x6d4)][0x1][_0x4514e0(0x1949)][_0x4514e0(0x69f)]()[0x0];_0x306dda[_0x4514e0(0x2782)][_0x4514e0(0x1d92)](_0x4514e0(0xb58),function(){setTimeout(function(){_0x33b8cb();},0x3e8);},![]),_0x10008f[_0x4514e0(0x6d4)][0x0]['unhold']({'useUpdate':![]}),_0x10008f[_0x4514e0(0x6d4)][0x1]['unhold']({'useUpdate':![]}),_0x3519aa[_0x4514e0(0x2782)]['enabled']=!![],_0x306dda[_0x4514e0(0x2782)][_0x4514e0(0x281c)]=!![];const _0x238f45=new MediaStream(),_0x18c9a4=new AudioContext();let _0x517b72=_0x18c9a4[_0x4514e0(0x1e74)](),_0x17721a=_0x18c9a4[_0x4514e0(0x1a42)](new MediaStream([_0x306dda['track']]));_0x17721a[_0x4514e0(0x8b0)](_0x517b72),_0x17721a=_0x18c9a4['createMediaStreamSource'](new MediaStream([_0xf41d5[_0x4514e0(0x2782)]])),_0x17721a[_0x4514e0(0x8b0)](_0x517b72),_0xf41d5[_0x4514e0(0x1bb3)](_0x517b72['stream'][_0x4514e0(0x9dc)]()[0x0])[_0x4514e0(0x1cb0)](function(){}),_0x517b72=_0x18c9a4['createMediaStreamDestination'](),_0x17721a=_0x18c9a4[_0x4514e0(0x1a42)](new MediaStream([_0x3519aa[_0x4514e0(0x2782)]])),_0x17721a[_0x4514e0(0x8b0)](_0x517b72),_0x17721a=_0x18c9a4[_0x4514e0(0x1a42)](new MediaStream([_0x441168['track']])),_0x17721a[_0x4514e0(0x8b0)](_0x517b72),_0x441168[_0x4514e0(0x1bb3)](_0x517b72[_0x4514e0(0x29c9)][_0x4514e0(0x9dc)]()[0x0])[_0x4514e0(0x1cb0)](function(){const _0x410d29=_0x4514e0;_0x238f45[_0x410d29(0x53d)](_0x3519aa[_0x410d29(0x2782)]),_0x238f45[_0x410d29(0x53d)](_0x306dda[_0x410d29(0x2782)]);const _0x1ad413=document[_0x410d29(0x26ee)](_0x410d29(0x2457));_0x1ad413['srcObject']=_0x238f45;const _0x40ffe3=_0x1ad413['play']();_0x40ffe3!==undefined&&_0x40ffe3[_0x410d29(0x1cb0)](function(){})[_0x410d29(0x1c4)](function(_0x586a25){const _0x2303d3=_0x410d29;console[_0x2303d3(0x1b4f)](_0x586a25);});});}function _0x33b8cb(){const _0x1d8253=_0x5e13a1;if(_0x10008f[_0x1d8253(0x1594)]){const _0x34ad16=_0x10008f['sessions'][0x0]['connection'][_0x1d8253(0x69f)]()[0x0],_0x1f8dc0=_0x10008f[_0x1d8253(0x6d4)][0x1]['connection']['getReceivers']()[0x0],_0x173138=new MediaStream();_0x173138['addTrack'](_0x34ad16[_0x1d8253(0x2782)]),_0x173138[_0x1d8253(0x53d)](_0x1f8dc0[_0x1d8253(0x2782)]);const _0x5162c6=document[_0x1d8253(0x26ee)](_0x1d8253(0x2457));_0x5162c6[_0x1d8253(0x1dbb)]=_0x173138;const _0xcd920b=_0x5162c6['play']();_0xcd920b!==undefined&&_0xcd920b[_0x1d8253(0x1cb0)](function(){})['catch'](function(_0x2b824f){const _0x495d33=_0x1d8253;console[_0x495d33(0x1b4f)](_0x2b824f);});}}function _0x50ae7a(_0xe0ea8c){const _0x28df70=_0x5e13a1;console[_0x28df70(0xbf5)](_0x28df70(0x27cf),_0xe0ea8c),_0x10008f[_0x28df70(0x12fb)](_0xe0ea8c);}function _0x4b4202(_0x56a0bf){const _0x3d82ad=_0x5e13a1;console['debug'](_0x3d82ad(0x989),_0x56a0bf),_0x56a0bf['unhold']({'useUpdate':![]}),_0x10008f['putOtherCallsOnHold'](_0x56a0bf),_0x10008f[_0x3d82ad(0x6f4)]&&(_0x35e729['offHook'](),_0x35e729[_0x3d82ad(0x162b)]());}function _0x4fc1ff(_0x4ff7ff){const _0x4ed363=_0x5e13a1;console[_0x4ed363(0xbf5)](_0x4ed363(0x1fbf),_0x4ff7ff),_0x56c7ab['show']({'controller':_0x4ed363(0x141e),'controllerAs':'vm','templateUrl':_0x3650c2,'parent':angular['element'](_0x32cede['body']),'clickOutsideToClose':!![],'locals':{'session':_0x4ff7ff,'sessions':_0x10008f[_0x4ed363(0x6d4)]}});}function _0x5a0e90(_0x24059e){const _0x3e3bc9=_0x5e13a1;console['debug'](_0x3e3bc9(0x28f6),_0x24059e),_0x24059e['hold']({'useUpdate':![]}),_0x10008f[_0x3e3bc9(0x6f4)]&&(_0x35e729[_0x3e3bc9(0xd1d)](),_0x35e729[_0x3e3bc9(0x9c0)]());}function _0xa6d3c4(_0x550ebc){const _0x380429=_0x5e13a1;console[_0x380429(0xbf5)]('refer\x20->\x20session',_0x550ebc);const _0x382047=_0x56c7ab[_0x380429(0x2344)]()['title'](_0x380429(0x1b77))['textContent']('Type\x20the\x20target')['placeholder'](_0x380429(0xb07))['ariaLabel'](_0x380429(0xb07))['ok'](_0x380429(0x1b77))[_0x380429(0x696)]('Cancel');_0x56c7ab['show'](_0x382047)[_0x380429(0x1cb0)](function(_0x5e98c6){return _0x4993c6(_0x5e98c6);})[_0x380429(0x1cb0)](function(_0x96eb0d){const _0x5320d8=_0x380429;_0x550ebc[_0x5320d8(0x1f58)](_0x96eb0d,{'eventHandlers':{'requestSucceeded':_0x16b117(_0x550ebc,'requestSucceeded','top\x20right',0xbb8),'requestFailed':_0x16b117(_0x550ebc,_0x5320d8(0x1612),_0x5320d8(0x2730),0xbb8)}});});}function _0x16b117(_0x45e7cf,_0x2f99d5,_0x2caa97,_0x22f717){const _0x47d92b=_0x5e13a1;return console['debug'](_0x47d92b(0x2185),_0x45e7cf,_0x2f99d5,_0x2caa97,_0x22f717),function(){const _0xc5c96c=_0x47d92b;_0x3024ad['show'](_0x3024ad[_0xc5c96c(0x157c)]()[_0xc5c96c(0x1152)](_0x2f99d5)['position'](_0x2caa97)[_0xc5c96c(0x10fa)](_0x22f717)),_0x877b19(_0x45e7cf);};}function _0x1b53c4(_0x406e50){const _0x54a437=_0x5e13a1;console[_0x54a437(0xbf5)]('referAttended\x20->\x20session',_0x406e50),_0x56c7ab['show']({'controller':'ReferAttendedDialogController','controllerAs':'vm','templateUrl':_0x9edc83,'parent':angular['element'](_0x32cede['body']),'clickOutsideToClose':!![],'locals':{'session':_0x406e50,'sessions':_0x39641b()[_0x54a437(0x988)](_0x10008f[_0x54a437(0x6d4)],{'id':_0x406e50['id']}),'isJabraEnabled':_0x10008f[_0x54a437(0x6f4)]}});}function _0x570eab(_0x1d4111){const _0x58be0e=_0x5e13a1;console[_0x58be0e(0xbf5)](_0x58be0e(0x224c),_0x1d4111);if(_0x10008f[_0x58be0e(0x6d4)][_0x58be0e(0xfd0)]>0x1)for(let _0x3cb197=0x0;_0x3cb197<_0x10008f['sessions'][_0x58be0e(0xfd0)];_0x3cb197+=0x1){_0x10008f[_0x58be0e(0x6d4)][_0x3cb197]['id']!==_0x1d4111['id']&&!_0x10008f[_0x58be0e(0x6d4)][_0x3cb197][_0x58be0e(0x1e4f)]()[_0x58be0e(0x115f)]&&_0x10008f[_0x58be0e(0x6d4)][_0x3cb197]['hold']({'useUpdate':![]});}}function _0x5915ae(_0x5b38bf){const _0x48f930=_0x5e13a1;_0x56c7ab[_0x48f930(0xe27)]({'controller':_0x48f930(0x2726),'controllerAs':'vm','templateUrl':_0x12560f,'parent':angular[_0x48f930(0x1853)](_0x32cede[_0x48f930(0x1ed9)]),'targetEvent':_0x5b38bf,'clickOutsideToClose':!![],'resolve':{'devices':function(){const _0x4fe9b1=_0x48f930;return navigator[_0x4fe9b1(0x7e3)][_0x4fe9b1(0x38c)]();}},'locals':{'conf':_0x10008f[_0x48f930(0x147a)]}})[_0x48f930(0x1cb0)](function(_0x5b5e65){const _0xe6190d=_0x48f930;_0x5b5e65&&(_0x10008f[_0xe6190d(0x147a)]=_0x5b5e65,!_0x10008f['initDeviceInProgress']&&(_0x10008f[_0xe6190d(0x4e6)]=!![],_0x35e729&&_0x10008f[_0xe6190d(0x25ab)]?_0x35e729['shutdown']()[_0xe6190d(0x1cb0)](function(){const _0x266e9c=_0xe6190d;_0x10008f[_0x266e9c(0x25ab)]=![],_0x10008f[_0x266e9c(0x6f4)]=![],_0x34c3da(![]);})['catch'](function(_0x437b3c){const _0xcdb3c2=_0xe6190d;console[_0xcdb3c2(0x218e)]('Unable\x20to\x20shutdown\x20Jabra\x20library',_0x437b3c);}):_0x34c3da(![])));});}function _0x4b1f98(){const _0x4c302f=_0x5e13a1;_0x10008f['ua'][_0x4c302f(0x1885)](),_0x35e729&&_0x10008f[_0x4c302f(0x25ab)]&&_0x35e729[_0x4c302f(0x188f)](),navigator['mediaDevices'][_0x4c302f(0x19df)]=function(){};}function _0x1990f2(_0x428e09,_0x2ee92e){const _0x25e040=_0x5e13a1;console[_0x25e040(0xbf5)]('onRemoteCall\x20->\x20evt,\x20data',_0x428e09,_0x2ee92e),_0x2ee92e[_0x25e040(0x251d)]&&(_0x10008f[_0x25e040(0x251d)]=_0x2ee92e[_0x25e040(0x251d)],_0x10008f[_0x25e040(0x205d)]());}function _0x131095(_0x5ddb75,_0x364eef){const _0x465336=_0x5e13a1;console['debug']('onRemoteTransfer\x20->\x20evt,\x20data',_0x5ddb75,_0x364eef);if(_0x364eef[_0x465336(0x251d)])for(let _0x253047=0x0;_0x253047<_0x10008f[_0x465336(0x6d4)][_0x465336(0xfd0)];_0x253047+=0x1){if(_0x10008f[_0x465336(0x6d4)][_0x253047][_0x465336(0x1125)]()&&!_0x10008f[_0x465336(0x6d4)][_0x253047][_0x465336(0x1e4f)]()['local'])return _0x4993c6(_0x364eef['target'])['then'](function(_0x41d9fc){const _0x5d72eb=_0x465336;_0x41d9fc&&_0x10008f['sessions'][_0x253047][_0x5d72eb(0x1f58)](_0x41d9fc,{'eventHandlers':{'requestSucceeded':_0x16b117(_0x10008f['sessions'][_0x253047],_0x5d72eb(0x1ceb),_0x5d72eb(0x2730),0xbb8),'requestFailed':_0x16b117(_0x10008f[_0x5d72eb(0x6d4)][_0x253047],_0x5d72eb(0x1612),_0x5d72eb(0x2730),0xbb8)}});});}}function _0xf5bca(){return new Promise(function(_0x2e3c6a){const _0x55ec7a=a0_0x5cbd;let _0x4a8b0e=null;for(let _0x23826d=0x0;_0x23826d<_0x10008f[_0x55ec7a(0x6d4)][_0x55ec7a(0xfd0)];_0x23826d++){!_0x39641b()[_0x55ec7a(0xfb4)](_0x10008f[_0x55ec7a(0x6d4)][_0x23826d],_0x55ec7a(0x5f1))?_0x4a8b0e=_0x10008f['sessions'][_0x23826d]:!_0x10008f[_0x55ec7a(0x6d4)][_0x23826d]['localHold']&&(_0x4a8b0e=_0x10008f[_0x55ec7a(0x6d4)][_0x23826d]);}_0x2e3c6a(_0x4a8b0e);});}function _0x1a40f5(_0x45b7b2){const _0x3ab307=_0x5e13a1;console['debug'](_0x3ab307(0x1e7e),_0x45b7b2);const _0x1d0951=_0x45b7b2[_0x3ab307(0xddf)],_0x1edb45=_0x45b7b2['callerId'],_0x2610c1=_0x45b7b2['callbackUrl'];_0x10008f[_0x3ab307(0x147a)][_0x3ab307(0x1daa)]?_0x10008f['sessionConf'][_0x3ab307(0x84f)][_0x3ab307(0x297d)]={'deviceId':_0x10008f['conf'][_0x3ab307(0x1daa)]}:_0x10008f[_0x3ab307(0x1cea)][_0x3ab307(0x84f)][_0x3ab307(0x297d)]=!![];let _0x11e38d=_0x1d0951['replace'](/ /g,'');_0x11e38d=_0x11e38d[_0x3ab307(0x288f)](/\(/g,''),_0x11e38d=_0x11e38d['replace'](/\)/g,'');if(_0x11e38d){const _0x93852b=angular[_0x3ab307(0x17fe)](_0x10008f[_0x3ab307(0x1cea)]);_0x93852b[_0x3ab307(0x2029)]=[],_0x1edb45&&_0x93852b[_0x3ab307(0x2029)]['push'](_0x3ab307(0xa3c)+_0x1edb45),_0x2610c1&&_0x93852b[_0x3ab307(0x2029)]['push'](_0x3ab307(0x21c0)+_0x2610c1),_0x10008f['originateInProgress']=!![],_0x10008f['ua'][_0x3ab307(0x205d)](_0x11e38d,_0x93852b);}}function _0x32fd12(_0x233741){const _0x3c36f1=_0x5e13a1;console[_0x3c36f1(0xbf5)](_0x3c36f1(0x1d07),_0x233741);let _0x245902=_0x10008f[_0x3c36f1(0x6d4)];if(_0x233741[_0x3c36f1(0x84b)]){_0x245902=[];const _0x4215f4=_0x233741['sessionId'];_0x245902['push'](_0x5b511c(_0x233741['sessionId']));if(_0x245902[_0x3c36f1(0xfd0)]==0x0){console[_0x3c36f1(0xf1b)]('call\x20with\x20session\x20Id\x20'+_0x4215f4+_0x3c36f1(0x2304));return;}}for(let _0x18a98c=0x0;_0x18a98c<_0x245902[_0x3c36f1(0xfd0)];_0x18a98c++){const _0x11667a=_0x245902[_0x18a98c];console[_0x3c36f1(0x1b4f)](_0x3c36f1(0x1f34),_0x11667a),_0x10008f['terminate'](_0x11667a);}}function _0x5d651d(_0x5bc733){const _0x1e0a12=_0x5e13a1;console[_0x1e0a12(0xbf5)]('answerHook\x20->\x20payload',_0x5bc733);let _0x30a244;_0x5bc733[_0x1e0a12(0x84b)]?_0x30a244=_0x5b511c(_0x5bc733[_0x1e0a12(0x84b)]):_0x30a244=_0x3f9e12(),_0x5bc733[_0x1e0a12(0x84b)]&&!_0x30a244&&console['warn']('call\x20with\x20session\x20Id\x20'+_0x5bc733[_0x1e0a12(0x84b)]+_0x1e0a12(0x2304)),_0x30a244&&_0x10008f['answer'](_0x30a244);}function _0x3f9e12(){const _0x3025f2=_0x5e13a1,_0x3c504e=_0x39641b()['find'](_0x10008f[_0x3025f2(0x6d4)],function(_0x42aecf){const _0x3f5889=_0x3025f2;return _0x42aecf[_0x3f5889(0x985)]&&!_0x42aecf[_0x3f5889(0x1dd3)];});return _0x3c504e;}function _0x69539c(_0x5d1d26){const _0x4c042=_0x5e13a1;console['debug'](_0x4c042(0x14d5),_0x5d1d26);let _0xa0501c=_0x10008f[_0x4c042(0x6d4)];if(_0x5d1d26[_0x4c042(0x84b)]){_0xa0501c=[],_0xa0501c[_0x4c042(0x2785)](_0x5b511c(_0x5d1d26[_0x4c042(0x84b)]));const _0x17a3fb=_0x5d1d26[_0x4c042(0x84b)];if(_0xa0501c[_0x4c042(0xfd0)]==0x0){console[_0x4c042(0xf1b)](_0x4c042(0x2256)+_0x17a3fb+_0x4c042(0x2304));return;}}for(let _0x1be5c8=0x0;_0x1be5c8<_0xa0501c[_0x4c042(0xfd0)];_0x1be5c8++){const _0xb259d=_0xa0501c[_0x1be5c8];_0x10008f[_0x4c042(0xd1d)](_0xb259d);}}function _0x3d466a(_0x3c4af7){const _0x111fd6=_0x5e13a1;console['debug']('holdHook\x20->\x20payload',_0x3c4af7);if(!_0x3c4af7['sessionId']){console[_0x111fd6(0x218e)](_0x111fd6(0x9e1));return;}const _0x42a180=_0x5b511c(_0x3c4af7[_0x111fd6(0x84b)]);if(!_0x42a180){const _0x230d04=_0x3c4af7[_0x111fd6(0x84b)];console[_0x111fd6(0xf1b)](_0x111fd6(0x2256)+_0x230d04+'\x20not\x20found');return;}_0x10008f[_0x111fd6(0x12fb)](_0x42a180);}function _0x5b1f5b(_0xad97f7){const _0x221517=_0x5e13a1;console[_0x221517(0xbf5)](_0x221517(0x1e3e),_0xad97f7);if(!_0xad97f7[_0x221517(0x84b)]){console[_0x221517(0x218e)](_0x221517(0x9e1));return;}if(!_0xad97f7[_0x221517(0x12a9)]){console[_0x221517(0x218e)](_0x221517(0xd2f));return;}const _0x48402f=_0x5b511c(_0xad97f7['sessionId']);if(!_0x48402f){const _0x37244a=_0xad97f7[_0x221517(0x84b)];console['warn'](_0x221517(0x2256)+_0x37244a+_0x221517(0x2304));return;}_0x48402f[_0x221517(0x1f58)](_0xad97f7['transferNumber'],{'eventHandlers':{'requestSucceeded':_0x16b117(_0x48402f,'requestSucceeded',_0x221517(0x2730),0xbb8),'requestFailed':_0x16b117(_0x48402f,_0x221517(0x1612),_0x221517(0x2730),0xbb8)}});}function _0x5b511c(_0x190b22){const _0x161288=_0x5e13a1;console[_0x161288(0xbf5)](_0x161288(0x1189),_0x190b22,_0x10008f['sessions']);const _0x256a44=_0x39641b()[_0x161288(0x13b4)](_0x10008f['sessions'],function(_0x1aaa2b){const _0x43797b=_0x161288;return _0x1aaa2b[_0x43797b(0x1ff5)]==_0x190b22;});return _0x256a44;}function _0x831994(_0x490a9a,_0x57f389){const _0x550295=_0x5e13a1;return console['debug']('callCallback\x20->\x20url,\x20params',_0x490a9a,_0x57f389),_0x46f676({'url':_0x490a9a,'method':_0x550295(0x163a),'params':_0x57f389});}function _0x4080fa(_0x2ad63d,_0x21a3fe,_0x47f256){const _0xaef810=_0x5e13a1,_0x4d82ae=_0x39641b()['find'](_0x2ad63d,function(_0x1445ed){return _0x39641b()['startsWith'](_0x1445ed,_0x21a3fe);});if(_0x4d82ae)return _0x39641b()[_0xaef810(0x1730)](_0x4d82ae[_0xaef810(0x288f)](_0x21a3fe,'')[_0xaef810(0x288f)](_0x47f256||':',''));return![];}_0x10008f[_0x5e13a1(0x129c)]=_0x4d0dd1[_0x5e13a1(0x1dbd)](this),_0x10008f['type']=_0x52713d,_0x10008f['call']=_0x108364,_0x10008f[_0x5e13a1(0xd1d)]=_0x5a0e90,_0x10008f[_0x5e13a1(0x1f58)]=_0xa6d3c4,_0x10008f['record']=_0x4fc1ff,_0x10008f['unhold']=_0x4b4202,_0x10008f[_0x5e13a1(0x24d5)]=_0x3abb73,_0x10008f[_0x5e13a1(0x137d)]=_0x877b19,_0x10008f['selectSession']=_0x50ae7a,_0x10008f['typeWrapper']=_0x19f1ea,_0x10008f[_0x5e13a1(0x1dab)]=_0x2df29c,_0x10008f[_0x5e13a1(0x1942)]=_0x1b53c4,_0x10008f[_0x5e13a1(0x1c84)]=_0x999fb2,_0x10008f[_0x5e13a1(0x1836)]=_0x104e2e,_0x10008f[_0x5e13a1(0x1368)]=_0x570eab,_0x10008f[_0x5e13a1(0x2000)]=_0x54b893,_0x10008f[_0x5e13a1(0x1f94)]=_0x346ab1,_0x10008f['start3WayConf']=_0x4cd0ee,_0x10008f[_0x5e13a1(0x1b1c)]=_0x33b8cb,_0x406458[_0x5e13a1(0x1d6)]('webrtc::settings',_0x5915ae),_0x406458['$on']('webrtc::logout',_0x4b1f98),_0x406458['$on'](_0x5e13a1(0x262d),_0x1990f2),_0x406458[_0x5e13a1(0x1d6)](_0x5e13a1(0x861),_0x131095),_0x406458[_0x5e13a1(0x1d6)](_0x5e13a1(0x291c),function(){const _0x8edbb4=_0x5e13a1;console[_0x8edbb4(0xbf5)](_0x8edbb4(0x1428)),_0x15f0c6[_0x8edbb4(0xfb8)]('webbar:originate'),_0x15f0c6[_0x8edbb4(0xfb8)](_0x8edbb4(0x1d97)),_0x15f0c6[_0x8edbb4(0xfb8)](_0x8edbb4(0x215e)),_0x15f0c6[_0x8edbb4(0xfb8)](_0x8edbb4(0xb2c)),_0x15f0c6['removeAllListeners'](_0x8edbb4(0x1b78)),_0x15f0c6['removeAllListeners'](_0x8edbb4(0xcfb));});}function _0x1281b0(){const _0x1adf45=_0x5537c6;return{'restrict':'E','scope':{'conf':'='},'require':_0x1adf45(0xc61),'controller':'MsPhonebarController','controllerAs':_0x1adf45(0x4c2),'bindToController':!![],'templateUrl':_0x1bfba1};};_0xc54bf5[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x904),'required'];function _0xc54bf5(_0x18c5fd,_0x415838,_0x55177f){const _0x2ddb1d=_0x5537c6,_0x1cb276=this;function _0x59786e(){const _0x314372=a0_0x5cbd;_0x18c5fd[_0x314372(0x1426)](_0x1cb276[_0x314372(0x586)]);}function _0x1f3d13(_0x321025){const _0x588989=a0_0x5cbd;_0x18c5fd[_0x588989(0x1426)](_0x321025);}_0x1cb276[_0x2ddb1d(0x904)]=_0x415838,_0x1cb276[_0x2ddb1d(0x2949)]=_0x55177f,_0x1cb276['closeDialog']=_0x1f3d13,_0x1cb276[_0x2ddb1d(0x205d)]=_0x59786e;}const _0x16c60d=_0xc54bf5;;_0x48a7ac['$inject']=['$mdDialog','$q',_0x5537c6(0x142b),_0x5537c6(0x6d4),_0x5537c6(0xb77)],_0x46e2f1[_0x5537c6(0x15b6)]=[_0x5537c6(0x2168)];function _0x46e2f1(_0xdb7c6){const _0x2fdeb4=_0x5537c6;return{'restrict':'C','controller':['$scope',_0x2fdeb4(0x2086),function(_0x256978,_0x23b3b7){function _0x84dca(){const _0x2ed991=a0_0x5cbd;_0x23b3b7['css'](_0x2ed991(0x1ac1),_0x2ed991(0x235c)),_0xdb7c6(_0x216343,0x3e8);}function _0x216343(){const _0x3d3390=a0_0x5cbd;_0x23b3b7[_0x3d3390(0x949)](_0x3d3390(0x1ac1),_0x3d3390(0x13b1)),_0xdb7c6(_0x84dca,0x3e8);}_0x84dca();}],'replace':!![]};}function _0x48a7ac(_0x5497f1,_0x50ce30,_0x538199,_0x4f5efa,_0x3108a9){const _0x4d3f0a=_0x5537c6,_0x360537=this;_0x360537[_0x4d3f0a(0x1386)]=_0x4d3f0a(0xd5a),_0x360537[_0x4d3f0a(0x6d4)]=_0x4f5efa,_0x360537['session']=_0x3108a9,_0x360537[_0x4d3f0a(0xda0)]=_0x3237b4,_0x360537[_0x4d3f0a(0x2606)]=_0x4f3a04,_0x360537[_0x4d3f0a(0x1885)]=_0x187052,_0x360537['start']=_0x8e25f0;function _0x3c358c(){function _0x257dbc(){const _0x1c0b19=a0_0x5cbd;return Math[_0x1c0b19(0x3aa)]((0x1+Math['random']())*0x10000)[_0x1c0b19(0x147f)](0x10)['substring'](0x1);}return _0x257dbc()+_0x257dbc()+'-'+_0x257dbc()+'-'+_0x257dbc()+'-'+_0x257dbc()+'-'+_0x257dbc()+_0x257dbc()+_0x257dbc();}function _0x8e25f0(_0x321551,_0x208ce8){const _0x59c7d2=_0x4d3f0a;console[_0x59c7d2(0x1b4f)](_0x59c7d2(0x17f1));const _0x2ea3a0=_0x50ce30[_0x59c7d2(0x11f4)](),_0x4b8c28=_0x208ce8||_0x321551[_0x59c7d2(0x179a)][_0x59c7d2(0x288f)](/^.*[\\/]/,''),_0x120062=_0x4b8c28[_0x59c7d2(0xbe1)]('.')[0x0];return _0x538199[_0x59c7d2(0x1a00)][_0x59c7d2(0x17f1)]({'uniqueid':_0x360537[_0x59c7d2(0xb77)]['uniqueid'],'filename':_0x120062,'format':_0x59c7d2(0xcab)})['$promise'][_0x59c7d2(0x1cb0)](function(_0x28e249){const _0x4e57dd=_0x59c7d2;_0x321551['filename']=_0x120062+_0x4e57dd(0x211c),_0x321551[_0x4e57dd(0xe19)]=_0x28e249[_0x4e57dd(0xe19)],_0x321551['status']=_0x4e57dd(0xf22),_0x360537['session'][_0x4e57dd(0x1f46)]=!![],_0x2ea3a0[_0x4e57dd(0x19a3)](_0x321551);})['catch'](function(_0x4aed02){const _0x457b0f=_0x59c7d2;_0x2ea3a0[_0x457b0f(0x988)](_0x4aed02);}),_0x2ea3a0[_0x59c7d2(0x2061)];}function _0x187052(_0x15bc72){const _0x22926=_0x4d3f0a;return console[_0x22926(0x1b4f)]('stopMonitor'),_0x538199[_0x22926(0x1a00)][_0x22926(0x1019)]({'uniqueid':_0x360537[_0x22926(0xb77)][_0x22926(0x1425)],'mixmonitorid':_0x15bc72[_0x22926(0xe19)]})[_0x22926(0x1d77)][_0x22926(0x1cb0)](function(){const _0x28ac51=_0x22926;_0x15bc72[_0x28ac51(0x291)]=_0x28ac51(0x785),_0x360537[_0x28ac51(0xb77)]['monitor']=_0x39641b()[_0x28ac51(0x250a)](_0x360537[_0x28ac51(0xb77)][_0x28ac51(0xfa2)],{'status':_0x28ac51(0xf22)});})[_0x22926(0x1c4)](function(_0x469fc3){const _0x512f82=_0x22926;console[_0x512f82(0x218e)](_0x469fc3);});}function _0x4f3a04(){const _0x40c37f=_0x4d3f0a,_0x1d0d8c=_0x5497f1[_0x40c37f(0x2344)]({'skipHide':!![]})[_0x40c37f(0x1386)](_0x40c37f(0x11d0))['textContent'](_0x40c37f(0xc9d))[_0x40c37f(0x161f)](_0x40c37f(0x22a8))[_0x40c37f(0x15ad)](_0x40c37f(0x22a8))[_0x40c37f(0x18ae)](_0x3c358c())['ok'](_0x40c37f(0x1c9a))[_0x40c37f(0x696)]('Cancel');_0x5497f1[_0x40c37f(0xe27)](_0x1d0d8c)[_0x40c37f(0x1cb0)](function(_0x2dd118){return _0x8e25f0({},_0x2dd118);})[_0x40c37f(0x1cb0)](function(_0x1356ad){const _0x203ba3=_0x40c37f;_0x360537[_0x203ba3(0xb77)][_0x203ba3(0xfa2)]['push'](_0x1356ad);});}function _0x3237b4(){_0x5497f1['hide']();}};_0x11b59b[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x200d),_0x5537c6(0x6d4),'session',_0x5537c6(0x6f4)];function _0x11b59b(_0x28c845,_0x506ee7,_0x133de8,_0xc2bc04,_0x3a8f30){const _0x3b3a38=_0x5537c6,_0x1502e5=this,_0x282572=window[_0x3b3a38(0xd80)];_0x1502e5[_0x3b3a38(0x1386)]=_0x3b3a38(0x14d9),_0x1502e5[_0x3b3a38(0x6d4)]=_0x133de8,_0x1502e5[_0x3b3a38(0xb77)]=_0xc2bc04,_0x1502e5[_0x3b3a38(0x6f4)]=_0x3a8f30,_0x1502e5[_0x3b3a38(0x16ce)]=null;_0x133de8['length']&&(_0x1502e5['target']=_0x133de8[0x0][_0x3b3a38(0xebe)]);_0x1502e5[_0x3b3a38(0xda0)]=_0x2d3562,_0x1502e5['transfer']=_0x33803e;function _0x33803e(){const _0x2e5fa0=_0x3b3a38;let _0x19f1ee,_0x1f0412;const _0x2a1cbc=_0x39641b()['find'](_0x133de8,function(_0x147929){const _0x4389d6=a0_0x5cbd;if(_0x147929['user']===_0x1502e5[_0x4389d6(0x251d)])return _0x147929;});_0x2a1cbc['outgoing']?(_0x19f1ee=_0x2a1cbc,_0x1f0412=_0x1502e5[_0x2e5fa0(0xb77)]):(_0x19f1ee=_0x1502e5[_0x2e5fa0(0xb77)],_0x1f0412=_0x2a1cbc),_0x1f0412[_0x2e5fa0(0x1f58)](_0x19f1ee[_0x2e5fa0(0xebe)],{'replaces':_0x19f1ee,'eventHandlers':{'requestSucceeded':_0x235043(_0xc2bc04,_0x2e5fa0(0x1ceb),_0x2e5fa0(0x2730),0xbb8,_0x1502e5[_0x2e5fa0(0x6f4)]),'requestFailed':_0x235043(_0xc2bc04,_0x2e5fa0(0x1612),_0x2e5fa0(0x2730),0xbb8,_0x1502e5['isJabraEnabled'])}});}function _0x235043(_0x586148,_0x575998,_0x15c664,_0x1103bb,_0x150d07){const _0x9fd910=_0x3b3a38;return console[_0x9fd910(0xbf5)](_0x9fd910(0x28cb),_0x586148,_0x575998,_0x15c664,_0x1103bb),function(){const _0x3ebe78=_0x9fd910;_0x506ee7[_0x3ebe78(0xe27)](_0x506ee7[_0x3ebe78(0x157c)]()[_0x3ebe78(0x1152)](_0x575998)[_0x3ebe78(0xe9e)](_0x15c664)[_0x3ebe78(0x10fa)](_0x1103bb)),_0x586148[_0x3ebe78(0x137d)](),_0x282572&&_0x150d07&&_0x282572['onHook'](),_0x2d3562();};}function _0x2d3562(_0x22fe5a){const _0x47aba4=_0x3b3a38;_0x28c845[_0x47aba4(0x1426)](_0x22fe5a);}}const _0x4f9b81=_0x11b59b;;_0x2efb8d[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x147a),_0x5537c6(0x2100)];function _0x2efb8d(_0x5944c0,_0x5d720b,_0x4f4532){const _0x16b0a2=_0x5537c6,_0x1299f4=this;_0x39641b()['remove'](_0x4f4532,function(_0x5c3632){const _0xb660d2=a0_0x5cbd;return _0x5c3632[_0xb660d2(0xffc)]===_0xb660d2(0x1d2b)&&(_0x5c3632[_0xb660d2(0x5ec)]==='default'||_0x5c3632['deviceId']==='communications')||_0x5c3632['kind']===_0xb660d2(0x27c1)&&(_0x5c3632[_0xb660d2(0x5ec)]===_0xb660d2(0x24c8)||_0x5c3632['deviceId']==='communications');}),_0x5d720b[_0x16b0a2(0x1a5d)]=_0x52d341(_0x4f4532,'audiooutput','ringingId'),_0x5d720b[_0x16b0a2(0x2409)]=_0x52d341(_0x4f4532,_0x16b0a2(0x27c1),_0x16b0a2(0x2409)),_0x5d720b[_0x16b0a2(0x1daa)]=_0x52d341(_0x4f4532,'audioinput',_0x16b0a2(0x1daa)),_0x5d720b[_0x16b0a2(0x446)]=_0x5d720b[_0x16b0a2(0x446)]||0.5,_0x5d720b[_0x16b0a2(0x107f)]=_0x5d720b[_0x16b0a2(0x107f)]||0.5,_0x5d720b['microphoneVolume']=_0x5d720b['microphoneVolume']||0x1,_0x5d720b[_0x16b0a2(0xe7c)]=_0x5d720b['ringingMute']||![],_0x5d720b['speakerMute']=_0x5d720b[_0x16b0a2(0x6b6)]||![],_0x5d720b['microphoneMute']=_0x5d720b['microphoneMute']||![],_0x1299f4[_0x16b0a2(0x147a)]=angular[_0x16b0a2(0x17fe)](_0x5d720b),_0x1299f4[_0x16b0a2(0x2100)]=_0x4f4532,_0x1299f4[_0x16b0a2(0x11ff)]=_0xffb0f3,_0x1299f4[_0x16b0a2(0xda0)]=_0x28c81b,_0x1299f4[_0x16b0a2(0x24b7)]=_0x595afc;function _0x595afc(){const _0x1ee019=_0x16b0a2;return _0x1299f4[_0x1ee019(0x147a)]['browserName']['toLowerCase']()===_0x1ee019(0x17b0)||_0x1299f4[_0x1ee019(0x147a)][_0x1ee019(0x2ed)]['toLowerCase']()==='opera'||_0x1299f4['conf'][_0x1ee019(0x2ed)][_0x1ee019(0x1680)]()===_0x1ee019(0x29b2);}function _0x52d341(_0x49531b,_0x5aaebf,_0x506f73){const _0x20419d=_0x16b0a2;let _0x16369f;if(!_0x5d720b[_0x506f73])_0x16369f=_0x39641b()[_0x20419d(0x13b4)](_0x49531b,function(_0x91ae1c){const _0x22cede=_0x20419d;return _0x91ae1c[_0x22cede(0xffc)]===_0x5aaebf;}),_0x16369f&&(_0x5d720b[_0x506f73]=_0x16369f[_0x20419d(0x5ec)]);else{_0x16369f=_0x39641b()['find'](_0x49531b,function(_0x3ad78e){const _0x596ce2=_0x20419d;return _0x3ad78e[_0x596ce2(0x5ec)]===_0x5d720b[_0x506f73];});if(_0x16369f)return _0x16369f['deviceId'];const _0x565f4e=_0x39641b()[_0x20419d(0x3c2)](_0x49531b,function(_0x2e70f5){return _0x2e70f5['kind']===_0x5aaebf;});if(_0x565f4e>=0x0)return _0x49531b[_0x565f4e]['deviceId'];}return _0x5d720b[_0x506f73]||null;}function _0xffb0f3(){const _0x30981a=_0x16b0a2;_0x5944c0[_0x30981a(0x1426)](_0x1299f4['conf']);}function _0x28c81b(){const _0x458521=_0x16b0a2;_0x5944c0[_0x458521(0x1426)]();}}const _0x1f55eb=_0x2efb8d;;const _0x4a65c9=_0x5074a3['p']+'src/js/modules/core/directives/ms-quick-filter/ms-quick-filter.html/ms-quick-filter.html';;_0x2e61e6[_0x5537c6(0x15b6)]=[_0x5537c6(0xc34),_0x5537c6(0x240a)],_0x430ec0[_0x5537c6(0x15b6)]=[_0x5537c6(0x22b2),_0x5537c6(0x780)];function _0x865f24(){return{'restrict':'E','scope':{'query':'=','filters':'=','search':'&'},'controller':_0x430ec0,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x4a65c9};}function _0x430ec0(_0x13a9bd,_0x32b12e){const _0x1ca510=_0x5537c6,_0x134df0=this;_0x134df0['pickerModels']={},_0x134df0[_0x1ca510(0x191e)]={},_0x134df0['localizationMap']=_0x13a9bd[_0x1ca510(0xd31)],_0x134df0[_0x1ca510(0x1430)]=_0x120b3c,_0x134df0[_0x1ca510(0x132a)]=_0xe74d04,_0x134df0[_0x1ca510(0x546)]=_0xc0d1ec,_0x134df0[_0x1ca510(0x648)]=_0x4a6b22,_0x134df0[_0x1ca510(0xc19)]=_0x50d519,_0x134df0[_0x1ca510(0x2370)]=_0x4b8503,_0x134df0['selectAll']=_0x47b8f2;function _0x120b3c(_0xe79b27){_0x259493(_0xe79b27);}function _0xe74d04(_0x325875){const _0x2e673d=_0x1ca510,_0x582332=_0x325875['key'];_0x134df0[_0x2e673d(0xae2)][_0x582332]?_0x134df0[_0x2e673d(0x190e)][_0x582332]=_0x13a9bd[_0x2e673d(0x1b73)](_0x134df0[_0x2e673d(0xae2)][_0x582332]):_0x134df0[_0x2e673d(0x190e)][_0x582332]={'dateStart':null};}function _0xc0d1ec(_0x3cc281,_0x39ab8f){const _0x4ad01a=_0x1ca510;_0x39ab8f&&(_0x259493(_0x3cc281),_0x134df0[_0x4ad01a(0x24be)]());}function _0x4a6b22(_0x300cf4){const _0x22b82a=_0x1ca510,_0x10854f=_0x300cf4['key'];_0x134df0['pickerModels'][_0x10854f][_0x22b82a(0x5fc)]?_0x134df0[_0x22b82a(0xae2)][_0x10854f]={'$gte':_0x543b5a()(_0x134df0[_0x22b82a(0x190e)][_0x10854f][_0x22b82a(0x5fc)])[_0x22b82a(0x17d9)](0x0,!![])[_0x22b82a(0x1f31)](),'$lte':_0x543b5a()(_0x134df0[_0x22b82a(0x190e)][_0x10854f]['dateEnd'])[_0x22b82a(0x17d9)](0x0,!![])[_0x22b82a(0x17a1)](0x17,_0x22b82a(0x1de0))['add'](0x3b,_0x22b82a(0x22d))[_0x22b82a(0x17a1)](0x3b,_0x22b82a(0x479))[_0x22b82a(0x1f31)]()}:_0x134df0['query'][_0x10854f]=undefined,_0x134df0[_0x22b82a(0x24be)]();}function _0x50d519(_0x197467){const _0x34f3b6=_0x1ca510,_0x1c9ead=_0x197467[_0x34f3b6(0xee8)];_0x134df0['pickerModels'][_0x1c9ead]={'dateStart':null},delete _0x134df0['query'][_0x1c9ead],_0x134df0[_0x34f3b6(0x24be)]();}function _0x47b8f2(_0x8c5e8d){const _0x353868=_0x1ca510,_0x550c28=_0x8c5e8d[_0x353868(0xee8)],_0x3ab056=_0x8c5e8d[_0x353868(0x1581)]||'id';_0x134df0[_0x353868(0xae2)][_0x550c28]=_0x39641b()[_0x353868(0x1de2)](_0x8c5e8d[_0x353868(0x2224)],_0x3ab056),_0x259493(_0x8c5e8d),_0x134df0[_0x353868(0x24be)]();}function _0x4b8503(_0x444c91){const _0x38a920=_0x1ca510,_0x5f48ea=_0x444c91['key'],_0x4f4f61=_0x444c91[_0x38a920(0x1581)]||'id';_0x134df0[_0x38a920(0xae2)][_0x5f48ea]=_0x444c91[_0x38a920(0x1ed0)]===![]?[_0x39641b()['head'](_0x444c91[_0x38a920(0x2224)])[_0x4f4f61]]:[],_0x259493(_0x444c91),_0x134df0[_0x38a920(0x24be)]();}function _0x259493(_0x485f72){const _0x3810fc=_0x1ca510,_0x4841a7=_0x485f72['key'],_0x3f6a57={'param':_0x134df0[_0x3810fc(0xae2)][_0x4841a7],'resources':_0x485f72[_0x3810fc(0x2224)],'placeholder':_0x485f72['placeholder'],'ngValue':_0x485f72['ngValue']};_0x32b12e['setPlaceholder'](_0x3f6a57)[_0x3810fc(0x1cb0)](function(_0x204353){const _0x32283d=_0x3810fc;_0x134df0[_0x32283d(0x191e)][_0x4841a7]=_0x204353;});}}function _0x2e61e6(_0xfda46c,_0x428586){const _0x21b9ec={'localizationMap':_0x428586,'setSelectedDate':_0x344055};function _0x344055(_0x218b7c){const _0x538711=a0_0x5cbd,_0x38e3a0=new Date(_0x543b5a()[_0x538711(0x18b9)](_0x218b7c['$gte'])[_0x538711(0x1f31)]('YYYY-MM-DD')),_0x2ee9fc=new Date(_0x543b5a()[_0x538711(0x18b9)](_0x218b7c[_0x538711(0x1d69)])[_0x538711(0x1f31)](_0x538711(0x17ac))),_0x41877b={'dateStart':new Date(_0x38e3a0[_0x538711(0x2516)](),_0x38e3a0[_0x538711(0x1c4c)](),_0x38e3a0['getDate']()),'dateEnd':new Date(_0x2ee9fc[_0x538711(0x2516)](),_0x2ee9fc['getMonth'](),_0x2ee9fc[_0x538711(0x1ccc)]())};return _0x41877b['selectedTemplateName']=_0x5b149d(_0x41877b),_0x41877b;}function _0x5b149d(_0x57bf8e){const _0x45d9fe=a0_0x5cbd;if(_0x543b5a()(_0x57bf8e[_0x45d9fe(0x5fc)])[_0x45d9fe(0x1f60)](_0x57bf8e[_0x45d9fe(0x5a8)])){if(_0x425edc(_0x57bf8e))return _0x21b9ec['localizationMap'][_0x45d9fe(0x1e95)];else return _0x37e7f8(_0x57bf8e)?_0x21b9ec[_0x45d9fe(0xd31)][_0x45d9fe(0x1593)]:_0xfda46c(_0x45d9fe(0x18ec))(_0x57bf8e[_0x45d9fe(0x5fc)],_0x45d9fe(0x14ce));}else{if(_0x4efc60(_0x57bf8e))return _0x21b9ec[_0x45d9fe(0xd31)][_0x45d9fe(0x45e)];else{if(_0x467043(_0x57bf8e))return _0x21b9ec[_0x45d9fe(0xd31)][_0x45d9fe(0x464)];else{if(_0x2ffa56(_0x57bf8e))return _0x21b9ec['localizationMap']['This\x20Month'];else{if(_0x2ab588(_0x57bf8e))return _0x21b9ec[_0x45d9fe(0xd31)][_0x45d9fe(0x28f2)];else{if(_0x2e028b(_0x57bf8e))return _0x21b9ec[_0x45d9fe(0xd31)]['This\x20Year'];else return _0x2a9d7b(_0x57bf8e)?_0x21b9ec[_0x45d9fe(0xd31)][_0x45d9fe(0x29d0)]:_0xfda46c('date')(_0x57bf8e[_0x45d9fe(0x5fc)],'dd'+(_0x57bf8e['dateStart'][_0x45d9fe(0x1c4c)]()!==_0x57bf8e['dateEnd'][_0x45d9fe(0x1c4c)]()||_0x57bf8e['dateStart']['getFullYear']()!==_0x57bf8e[_0x45d9fe(0x5a8)][_0x45d9fe(0x2516)]()?_0x45d9fe(0xc5b):'')+(_0x57bf8e[_0x45d9fe(0x5fc)][_0x45d9fe(0x2516)]()!==_0x57bf8e['dateEnd'][_0x45d9fe(0x2516)]()?'\x20yyyy':''))+_0x45d9fe(0x1657)+_0xfda46c(_0x45d9fe(0x18ec))(_0x57bf8e[_0x45d9fe(0x5a8)],_0x45d9fe(0x14ce));}}}}}}function _0x425edc(_0xe78206){const _0x1c5012=a0_0x5cbd;return _0x543b5a()()['startOf'](_0x1c5012(0x1a5))[_0x1c5012(0x1f60)](_0xe78206[_0x1c5012(0x5fc)]);}function _0x37e7f8(_0x35cb02){const _0x16ad51=a0_0x5cbd;return _0x543b5a()()[_0x16ad51(0x1030)](0x1,_0x16ad51(0x23b3))['startOf'](_0x16ad51(0x1a5))[_0x16ad51(0x1f60)](_0x35cb02[_0x16ad51(0x5fc)]);}function _0x4efc60(_0x104b4c){const _0x64f8=a0_0x5cbd;return _0x543b5a()()[_0x64f8(0x1be0)](_0x64f8(0x1ecd))[_0x64f8(0x1f60)](_0x104b4c[_0x64f8(0x5fc)],_0x64f8(0x1a5))&&_0x543b5a()()[_0x64f8(0x1b4)]('isoWeek')['isSame'](_0x104b4c['dateEnd'],_0x64f8(0x1a5));}function _0x467043(_0x3eb743){const _0x366914=a0_0x5cbd;return _0x543b5a()()[_0x366914(0x1030)](0x1,_0x366914(0xc20))[_0x366914(0x1be0)](_0x366914(0x1ecd))['isSame'](_0x3eb743[_0x366914(0x5fc)],_0x366914(0x1a5))&&_0x543b5a()()['subtract'](0x1,_0x366914(0xc20))[_0x366914(0x1b4)](_0x366914(0x1ecd))[_0x366914(0x1f60)](_0x3eb743[_0x366914(0x5a8)],'day');}function _0x2ffa56(_0x226da2){const _0x30d5f4=a0_0x5cbd;return _0x543b5a()()['startOf'](_0x30d5f4(0x26ae))[_0x30d5f4(0x1f60)](_0x226da2[_0x30d5f4(0x5fc)],'day')&&_0x543b5a()()[_0x30d5f4(0x1b4)]('month')[_0x30d5f4(0x1f60)](_0x226da2[_0x30d5f4(0x5a8)],_0x30d5f4(0x1a5));}function _0x2ab588(_0x40591e){const _0x1b76bd=a0_0x5cbd;return _0x543b5a()()[_0x1b76bd(0x1030)](0x1,_0x1b76bd(0x3ae))['startOf']('month')[_0x1b76bd(0x1f60)](_0x40591e[_0x1b76bd(0x5fc)],_0x1b76bd(0x1a5))&&_0x543b5a()()['subtract'](0x1,_0x1b76bd(0x3ae))[_0x1b76bd(0x1b4)](_0x1b76bd(0x26ae))['isSame'](_0x40591e[_0x1b76bd(0x5a8)],_0x1b76bd(0x1a5));}function _0x2e028b(_0x707946){const _0x1aad91=a0_0x5cbd;return _0x543b5a()()[_0x1aad91(0x1be0)](_0x1aad91(0x17d6))['isSame'](_0x707946['dateStart'],_0x1aad91(0x1a5))&&_0x543b5a()()[_0x1aad91(0x1b4)](_0x1aad91(0x17d6))[_0x1aad91(0x1f60)](_0x707946[_0x1aad91(0x5a8)],'day');}function _0x2a9d7b(_0x1dc22f){const _0x2a60e8=a0_0x5cbd;return _0x543b5a()()[_0x2a60e8(0x1030)](0x1,_0x2a60e8(0xa1c))['startOf']('year')[_0x2a60e8(0x1f60)](_0x1dc22f['dateStart'],_0x2a60e8(0x1a5))&&_0x543b5a()()[_0x2a60e8(0x1030)](0x1,_0x2a60e8(0xa1c))[_0x2a60e8(0x1b4)](_0x2a60e8(0x17d6))[_0x2a60e8(0x1f60)](_0x1dc22f['dateEnd'],_0x2a60e8(0x1a5));}return _0x21b9ec;};function _0x28a108(){return{'restrict':'A','scope':{'msRandomClass':'='},'link':function(_0x55fe88,_0x3aac24){const _0x3adbe4=a0_0x5cbd,_0x1a63dc=_0x55fe88['msRandomClass'][Math[_0x3adbe4(0x3aa)](Math[_0x3adbe4(0x47f)]()*_0x55fe88[_0x3adbe4(0xd67)][_0x3adbe4(0xfd0)])];_0x3aac24[_0x3adbe4(0x1390)](_0x1a63dc);}};}const _0x2005a5=_0x28a108;;_0xb9cc5d[_0x5537c6(0x15b6)]=['api'];function _0xb9cc5d(_0x1bd898){return{'restrict':'E','scope':{'id':'=','model':'=','download':'='},'replace':!![],'link':function(_0x3f2aab,_0x1dd4ba){const _0x142f85=a0_0x5cbd;let _0x1d0443=![];const _0x169575=document[_0x142f85(0x8c6)]('audio');!_0x3f2aab[_0x142f85(0x26ec)]&&_0x169575[_0x142f85(0x23b9)](_0x142f85(0x1af4),_0x142f85(0x1e8a)),_0x169575['setAttribute'](_0x142f85(0x13f5),'none'),_0x169575['setAttribute']('controls',''),_0x169575['setAttribute'](_0x142f85(0x613),_0x142f85(0x11b0)),_0x169575[_0x142f85(0x23b9)](_0x142f85(0x22f),'\x20'),_0x169575['onplay']=function(_0x100ab7){const _0x17c05b=_0x142f85;!_0x1d0443&&(_0x1d0443=!![],_0x100ab7[_0x17c05b(0x1fbd)](),_0x1bd898[_0x3f2aab['model']||_0x17c05b(0x23d1)]['download']({'id':_0x3f2aab['id']})[_0x17c05b(0x1d77)][_0x17c05b(0x1cb0)](function(_0x5dc8f5){const _0x3b1898=_0x17c05b,_0x3b8740=[_0x5dc8f5['buffer']],_0x3b9b5c=new Blob(_0x3b8740,{'type':_0x5dc8f5[_0x3b1898(0x66a)]});_0x169575['setAttribute'](_0x3b1898(0x66a),_0x5dc8f5[_0x3b1898(0x66a)]),_0x169575[_0x3b1898(0x23b9)]('src',URL[_0x3b1898(0x2247)](_0x3b9b5c)),_0x169575[_0x3b1898(0x96e)]();})[_0x17c05b(0x1c4)](function(_0x335b49){const _0x2fca7e=_0x17c05b;console[_0x2fca7e(0x218e)](_0x335b49);}));},_0x1dd4ba['append'](_0x169575);}};}const _0x4edd0e=_0xb9cc5d;;function _0xfc9e54(){return{'restrict':'A','link':function(_0x5e4049,_0x450d11){const _0x34443a=a0_0x5cbd,_0x3ca012=angular[_0x34443a(0x1853)](_0x34443a(0x229b));_0x450d11['after'](_0x3ca012),_0x3ca012[_0x34443a(0x207)](_0x450d11);}};}const _0xee8a18=_0xfc9e54;var _0x126fc5=_0x5074a3(0x1703),_0x278ac4=_0x5074a3['n'](_0x126fc5);;_0x4da3b8[_0x5537c6(0x15b6)]=['$timeout',_0x5537c6(0x24e9),_0x5537c6(0xde8),_0x5537c6(0x488)];function _0x9ea280(){const _0x42eb13=_0x5537c6;let _0x21f73c={'wheelSpeed':0x1,'wheelPropagation':![],'swipePropagation':!![],'minScrollbarLength':null,'maxScrollbarLength':null,'useBothWheelAxes':![],'useKeyboard':!![],'suppressScrollX':![],'suppressScrollY':![],'scrollXMarginOffset':0x0,'scrollYMarginOffset':0x0,'stopPropagationOnClick':!![]};this[_0x42eb13(0x1c22)]=function(){function _0x596308(){return _0x21f73c;}const _0x476b78={'getConfig':_0x596308};return _0x476b78;};function _0x268a4d(_0x1bdad9){const _0x18d4fa=_0x42eb13;_0x21f73c=angular[_0x18d4fa(0x2765)]({},_0x21f73c,_0x1bdad9);}this[_0x42eb13(0xa60)]=_0x268a4d;}function _0x4da3b8(_0x4ce263,_0x2a97f8,_0x1504b9,_0x3b4f58){return{'restrict':'AE','compile':function(_0x417cc5){const _0x21aafb=a0_0x5cbd;if(_0x3b4f58[_0x21aafb(0x226a)](_0x21aafb(0x1ef0)))return;if(_0x3b4f58[_0x21aafb(0x226a)](_0x21aafb(0xf0d))&&_0x1504b9[_0x21aafb(0xef3)]())return;return _0x417cc5[_0x21aafb(0x1390)](_0x21aafb(0xaac)),function _0xaa6e36(_0x526887,_0x2f17e1,_0x72a1b4){const _0x174992=_0x21aafb;let _0x3836ae={};_0x72a1b4[_0x174992(0x1459)]&&(_0x3836ae=_0x526887[_0x174992(0x674)](_0x72a1b4[_0x174992(0x1459)]));_0x3836ae=angular['extend']({},_0x2a97f8['getConfig'](),_0x3836ae),_0x278ac4()[_0x174992(0x2469)](_0x2f17e1[0x0],_0x3836ae);function _0x3a0792(){const _0x35f45a=_0x174992;_0x278ac4()[_0x35f45a(0x687)](_0x2f17e1[0x0]);}_0x2f17e1['on'](_0x174992(0x2406),_0x3a0792),_0x526887[_0x174992(0x614)](function(){const _0x1d348c=_0x174992;return _0x2f17e1[_0x1d348c(0x12e3)]('scrollHeight');},function(_0x256fdb,_0x455804){const _0x30a82b=_0x174992;if(angular[_0x30a82b(0x2051)](_0x256fdb)||angular[_0x30a82b(0x1c53)](_0x256fdb,_0x455804))return;_0x3a0792();}),_0x526887[_0x174992(0x614)](function(){const _0x784427=_0x174992;return _0x2f17e1[_0x784427(0x12e3)](_0x784427(0x2545));},function(_0x4b89f0,_0x1aba5f){const _0x5d448f=_0x174992;if(angular[_0x5d448f(0x2051)](_0x4b89f0)||angular[_0x5d448f(0x1c53)](_0x4b89f0,_0x1aba5f))return;_0x3a0792();}),_0x526887['$on'](_0x174992(0x291c),function(){const _0x4dc7b7=_0x174992;_0x2f17e1[_0x4dc7b7(0x28b2)](_0x4dc7b7(0x2406)),_0x278ac4()[_0x4dc7b7(0x203e)](_0x2f17e1[0x0]);});};}};};const _0x5cae3c=_0x5074a3['p']+'src/js/modules/core/directives/ms-search-bar/ms-search-bar.html/ms-search-bar.html';;_0x42bda6[_0x5537c6(0x15b6)]=['$document'],_0x40f09c[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2086),_0x5537c6(0x2168)];function _0x40f09c(_0x4465ba,_0x48c2da,_0x5352a9){const _0x1a1cb9=_0x5537c6,_0x4ce4a7=this;_0x4ce4a7[_0x1a1cb9(0xc7d)]=!![],_0x4ce4a7[_0x1a1cb9(0xae2)]=undefined,_0x4ce4a7[_0x1a1cb9(0xa80)]={'debounce':_0x4ce4a7[_0x1a1cb9(0x366)]||0x0};const _0xbf398=_0x4ce4a7[_0x1a1cb9(0x1f9b)]&&_0x4ce4a7['collapseOnBlur']==_0x1a1cb9(0x44d)?!![]:![];_0x4ce4a7[_0x1a1cb9(0xbd1)]=![],_0x4ce4a7[_0x1a1cb9(0x2872)]=null,_0x4ce4a7[_0x1a1cb9(0x26e0)]=0x0,_0x4ce4a7[_0x1a1cb9(0x1b9c)]=![],_0x4ce4a7[_0x1a1cb9(0x1a34)]=_0x5a1bda,_0x4ce4a7[_0x1a1cb9(0x1473)]=_0x51e81d,_0x4ce4a7[_0x1a1cb9(0x1c28)]=_0x569ee9,_0x4ce4a7['collapse']=_0x24180c,_0x4ce4a7[_0x1a1cb9(0x10cf)]=_0xb6052a,_0x4ce4a7[_0x1a1cb9(0x5b1)]=_0x10a24d,_0x4ce4a7[_0x1a1cb9(0x299d)]=_0x5d1478,_0x4ce4a7[_0x1a1cb9(0x1ea8)]=_0x10f633,_0x4ce4a7[_0x1a1cb9(0x184)]=_0x162376,_0x4ce4a7['handleResultClick']=_0xf095d6,_0x4ce4a7['ensureSelectedResultIsVisible']=_0x498b49;function _0x5a1bda(){const _0x2d5218=_0x1a1cb9;_0x4465ba[_0x2d5218(0x614)](_0x2d5218(0x803),function(_0x44a4e8,_0x4173e0){const _0x108985=_0x2d5218;if(angular[_0x108985(0x2051)](_0x44a4e8))return;if(angular[_0x108985(0x1c53)](_0x44a4e8,_0x4173e0))return;if(_0x4ce4a7['collapsed']){if(_0x44a4e8)_0x4465ba[_0x108985(0x1c28)]();else return;}const _0x18adbc=_0x4465ba[_0x108985(0x17bc)]['$eval'](_0x4ce4a7['onSearch'],{'query':_0x44a4e8}),_0x12d28e=angular['isArray'](_0x18adbc),_0x45e8a1=_0x18adbc&&!!_0x18adbc[_0x108985(0x1cb0)];_0x12d28e&&_0x4ce4a7[_0x108985(0x1473)](_0x18adbc),_0x45e8a1&&(_0x4ce4a7['resultsLoading']=!![],_0x18adbc[_0x108985(0x1cb0)](function(_0x1c9621){const _0x2bc5db=_0x108985;_0x4ce4a7[_0x2bc5db(0x1473)](_0x1c9621);},function(){_0x4ce4a7['populateResults']([]);})['finally'](function(){_0x4ce4a7['resultsLoading']=![];}));});}function _0x51e81d(_0x475622){const _0x26d3ec=_0x1a1cb9;if(_0x4ce4a7[_0x26d3ec(0xc7d)])return;const _0x413273=angular[_0x26d3ec(0x216b)](_0x475622),_0x4c9368=_0x475622===null;if(!_0x413273&&!_0x4c9368)return;_0x4ce4a7[_0x26d3ec(0x26e0)]=0x0,_0x4ce4a7[_0x26d3ec(0x2872)]=_0x475622;}function _0x569ee9(){const _0x4fd84e=_0x1a1cb9;_0x4ce4a7[_0x4fd84e(0xc7d)]=![],_0x4465ba[_0x4fd84e(0x1c28)](),_0x4ce4a7[_0x4fd84e(0x3f4)]&&angular['isFunction'](_0x4ce4a7['onExpand'])&&_0x4ce4a7['onExpand']();}function _0x24180c(){const _0x404789=_0x1a1cb9;_0x4ce4a7['query']='',_0x4ce4a7[_0x404789(0x1473)](null),_0x4ce4a7['collapsed']=!![],_0x4465ba[_0x404789(0x1a8d)](),_0x4ce4a7[_0x404789(0x697)]&&angular[_0x404789(0x1e2c)](_0x4ce4a7[_0x404789(0x697)])&&_0x4ce4a7['onCollapse']();}function _0xb6052a(){const _0x5676e3=_0x1a1cb9;if(!_0xbf398)return;_0x4ce4a7[_0x5676e3(0x1a8d)]();}function _0x10a24d(_0x4725f4){const _0x2cb956=_0x1a1cb9;_0x4725f4[_0x2cb956(0x1fbd)]();}function _0x5d1478(_0x538cf7){const _0x5d52a0=_0x1a1cb9,_0x235311=_0x538cf7[_0x5d52a0(0x28e)],_0x126811=[0x1b,0x26,0x28];_0x126811[_0x5d52a0(0xd8a)](_0x235311)>-0x1&&_0x538cf7['preventDefault']();switch(_0x235311){case 0xd:if(!_0x4ce4a7['results'])return;_0x4ce4a7[_0x5d52a0(0x134d)](_0x4ce4a7[_0x5d52a0(0x2872)][_0x4ce4a7[_0x5d52a0(0x26e0)]]);break;case 0x1b:_0x4ce4a7[_0x5d52a0(0x1a8d)]();break;case 0x26:_0x4ce4a7['selectedResultIndex']-0x1>=0x0&&(_0x4ce4a7['selectedResultIndex']--,_0x4ce4a7[_0x5d52a0(0xe02)]());break;case 0x28:if(!_0x4ce4a7[_0x5d52a0(0x2872)])return;_0x4ce4a7[_0x5d52a0(0x26e0)]+0x1<_0x4ce4a7[_0x5d52a0(0x2872)]['length']&&(_0x4ce4a7[_0x5d52a0(0x26e0)]++,_0x4ce4a7['ensureSelectedResultIsVisible']());break;default:break;}}function _0x10f633(_0x4dfd5f){if(_0x4ce4a7['ignoreMouseEvents'])return;_0x4ce4a7['selectedResultIndex']=_0x4dfd5f;}function _0x162376(){const _0x2f80bc=_0x1a1cb9;_0x4ce4a7[_0x2f80bc(0x1b9c)]=!![],_0x5352a9[_0x2f80bc(0x696)](_0x4ce4a7[_0x2f80bc(0x484)]),_0x4ce4a7[_0x2f80bc(0x484)]=_0x5352a9(function(){const _0x3d86c9=_0x2f80bc;_0x4ce4a7[_0x3d86c9(0x1b9c)]=![];},0xfa);}function _0xf095d6(_0x163b07){const _0xc9900=_0x1a1cb9;_0x4ce4a7[_0xc9900(0x1723)]&&_0x4ce4a7[_0xc9900(0x1723)]({'item':_0x163b07}),_0x4ce4a7['collapse']();}function _0x498b49(){const _0x5aa05c=_0x1a1cb9,_0x5ac68d=_0x48c2da['find'](_0x5aa05c(0x2480)),_0x3d578e=angular['element'](_0x5ac68d['find'](_0x5aa05c(0x23bd))[_0x4ce4a7[_0x5aa05c(0x26e0)]]);if(_0x5ac68d&&_0x3d578e){const _0x2ad7db=_0x3d578e['position']()[_0x5aa05c(0x20d)]-0x8,_0x20e57d=_0x3d578e[_0x5aa05c(0xe9e)]()[_0x5aa05c(0x20d)]+_0x3d578e[_0x5aa05c(0x1d24)]()+0x8;_0x4ce4a7[_0x5aa05c(0x184)](),_0x5ac68d[_0x5aa05c(0x20d1)]()>_0x2ad7db&&_0x5ac68d[_0x5aa05c(0x20d1)](_0x2ad7db),_0x20e57d>_0x5ac68d[_0x5aa05c(0xaab)]()+_0x5ac68d[_0x5aa05c(0x20d1)]()&&_0x5ac68d[_0x5aa05c(0x20d1)](_0x20e57d-_0x5ac68d[_0x5aa05c(0xaab)]());}}}function _0x42bda6(_0x2f3d2a){const _0x302a2f=_0x5537c6;return{'restrict':'E','scope':{},'require':_0x302a2f(0x2d2),'controller':'MsSearchBarController\x20as\x20vm','bindToController':{'query':'=?','debounce':'=?','direction':'@','iconColor':'@','onSearch':'@','onResultClick':'&?','onExpand':'&?','onCollapse':'&?','collapseOnBlur':'@'},'templateUrl':_0x5cae3c,'compile':function(_0x35d5a2){const _0x3d2fd0=_0x302a2f;return _0x35d5a2[_0x3d2fd0(0x1390)](_0x3d2fd0(0x46f)),function _0x2538b6(_0x1adb6d,_0x3196b4){const _0x23db3a=_0x3d2fd0,_0x485f7a=_0x2f3d2a[_0x23db3a(0x13b4)](_0x23db3a(0x1ed9));function _0x2acbc0(){const _0x39dff5=_0x23db3a;_0x3196b4['addClass']('expanded');if(_0x1adb6d['vm'][_0x39dff5(0x979)]===_0x39dff5(0x1fcf)){_0x3196b4[_0x39dff5(0x1390)](_0x39dff5(0x1fcf));const _0x250115=_0x3196b4[_0x39dff5(0x2588)](_0x39dff5(0xa12));if(_0x250115)_0x250115[_0x39dff5(0x1390)](_0x39dff5(0x106c));}_0x485f7a[_0x39dff5(0x1390)]('ms-search-bar-expanded');}function _0xac57b5(){const _0x32396d=_0x23db3a;_0x3196b4[_0x32396d(0x1e55)](_0x32396d(0x7bf));if(_0x1adb6d['vm']['direction']===_0x32396d(0x1fcf)){_0x3196b4[_0x32396d(0x1e55)](_0x32396d(0x1fcf));const _0x36e26a=_0x3196b4[_0x32396d(0x2588)]('md-toolbar');if(_0x36e26a)_0x36e26a[_0x32396d(0x1e55)](_0x32396d(0x106c));}_0x485f7a['removeClass'](_0x32396d(0x1ae5));}_0x1adb6d[_0x23db3a(0x1a8d)]=_0xac57b5,_0x1adb6d[_0x23db3a(0x1c28)]=_0x2acbc0;};}};};const _0x56f5c0=_0x5074a3['p']+_0x5537c6(0x1ebc);;_0x1d41f6[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x173),_0x5537c6(0x22bf),_0x5537c6(0x2168),'$q','msNavigationService'];function _0x1d41f6(_0xffb09a,_0xbe78e0,_0x578868,_0x17b6fe,_0x5926f2,_0x5d6493){const _0x3ab2b5=_0x5537c6,_0x52dc90=this;_0x52dc90[_0x3ab2b5(0xae2)]='',_0x52dc90[_0x3ab2b5(0xa80)]={'debounce':0x12c},_0x52dc90[_0x3ab2b5(0xbd1)]=![],_0x52dc90['selectedResultIndex']=0x0,_0x52dc90[_0x3ab2b5(0x1b9c)]=![],_0x52dc90[_0x3ab2b5(0xfba)]=![],_0x52dc90[_0x3ab2b5(0x2872)]=null,_0x52dc90[_0x3ab2b5(0x1056)]=[],_0x52dc90[_0x3ab2b5(0x10d7)]={'ghostClass':_0x3ab2b5(0x1ecf),'forceFallback':!![],'fallbackClass':_0x3ab2b5(0x1ba1),'onSort':function(){const _0x5ae1ee=_0x3ab2b5;_0x52dc90[_0x5ae1ee(0x192f)]();}};function _0x269a59(){const _0x3235e7=_0x3ab2b5;_0x52dc90[_0x3235e7(0x23ed)]()[_0x3235e7(0x1cb0)](function(_0x398e4a){const _0x12aba4=_0x3235e7;_0x52dc90[_0x12aba4(0x1056)]=_0x398e4a,_0x52dc90[_0x12aba4(0x1056)][_0x12aba4(0xfd0)]>0x0&&(_0x52dc90[_0x12aba4(0x2872)]=_0x398e4a);}),_0xffb09a[_0x3235e7(0x614)](_0x3235e7(0x287),function(_0x40a554,_0x5c19ca){const _0x3c2b28=_0x3235e7;if(angular[_0x3c2b28(0x2051)](_0x40a554))return;if(angular['equals'](_0x40a554,_0x5c19ca))return;_0x52dc90[_0x3c2b28(0xbd1)]=!![],_0x52dc90[_0x3c2b28(0x1473)]()['then'](function(_0x14caa1){_0x52dc90['results']=_0x14caa1;},function(){const _0x18c77e=_0x3c2b28;_0x52dc90[_0x18c77e(0x2872)]=[];})[_0x3c2b28(0x2e0)](function(){_0x52dc90['resultsLoading']=![];});});}function _0x30eda8(){const _0x2dd492=_0x3ab2b5;let _0x48bbdc=[];const _0x3662f5=_0x5d6493['getFlatNavigation'](),_0x440e48=_0x5926f2[_0x2dd492(0x11f4)]();for(let _0x6b65e=0x0;_0x6b65e<_0x3662f5['length'];_0x6b65e++){_0x3662f5[_0x6b65e]['uisref']&&_0x48bbdc[_0x2dd492(0x2785)](_0x3662f5[_0x6b65e]);}if(_0x52dc90['query']){_0x48bbdc=_0x48bbdc[_0x2dd492(0x1c99)](function(_0x387a0e){const _0x6f1fee=_0x2dd492;if(_0x387a0e[_0x6f1fee(0x1386)][_0x6f1fee(0x1680)]()[_0x6f1fee(0x250a)](_0x52dc90[_0x6f1fee(0xae2)][_0x6f1fee(0x1680)]()))return!![];});for(let _0xd5b6c6=0x0;_0xd5b6c6<_0x48bbdc[_0x2dd492(0xfd0)];_0xd5b6c6++){_0x48bbdc[_0xd5b6c6][_0x2dd492(0x4fd)]=![];for(let _0x5d2ab7=0x0;_0x5d2ab7<_0x52dc90[_0x2dd492(0x1056)][_0x2dd492(0xfd0)];_0x5d2ab7++){if(_0x52dc90[_0x2dd492(0x1056)][_0x5d2ab7][_0x2dd492(0xa09)]===_0x48bbdc[_0xd5b6c6][_0x2dd492(0xa09)]){_0x48bbdc[_0xd5b6c6]['hasShortcut']=!![];break;}}}}else _0x52dc90[_0x2dd492(0x1056)][_0x2dd492(0xfd0)]>0x0&&(_0x48bbdc=_0x52dc90[_0x2dd492(0x1056)]);return _0x52dc90[_0x2dd492(0x26e0)]=0x0,_0x17b6fe(function(){const _0x29ba51=_0x2dd492;_0x440e48[_0x29ba51(0x19a3)](_0x48bbdc);},0xfa),_0x440e48[_0x2dd492(0x2061)];}function _0x3a1b7c(){const _0x5078c5=_0x3ab2b5,_0x12dcae=_0x5926f2[_0x5078c5(0x11f4)]();let _0x54164a=angular[_0x5078c5(0x284c)](_0xbe78e0[_0x5078c5(0xbf7)](_0x5078c5(0x1b8)));return angular[_0x5078c5(0x2051)](_0x54164a)&&(_0x54164a=[{'title':_0x5078c5(0x2536),'icon':_0x5078c5(0x22b),'state':_0x5078c5(0x23ab),'weight':0x5,'children':[],'uisref':'app.staff.agents','hasShortcut':!![]},{'title':_0x5078c5(0x1ace),'icon':_0x5078c5(0x2675),'state':_0x5078c5(0x120c),'weight':0xa,'children':[],'uisref':'app.settings.license','hasShortcut':!![]}],_0xbe78e0['put'](_0x5078c5(0x1b8),angular['toJson'](_0x54164a))),_0x12dcae[_0x5078c5(0x19a3)](_0x54164a),_0x12dcae[_0x5078c5(0x2061)];}function _0x1a07b8(){const _0x54a878=_0x3ab2b5,_0x3ba99c=_0x5926f2[_0x54a878(0x11f4)]();return _0xbe78e0[_0x54a878(0x135f)]('motion.shortcuts',angular['toJson'](_0x52dc90[_0x54a878(0x1056)])),_0x17b6fe(function(){const _0x3bee0e=_0x54a878;_0x3ba99c[_0x3bee0e(0x19a3)]({'success':!![]});},0xfa),_0x3ba99c[_0x54a878(0x2061)];}function _0x2600ba(_0x352c0d){const _0x5d62cf=_0x3ab2b5;_0x352c0d[_0x5d62cf(0x4fd)]=!![],_0x52dc90[_0x5d62cf(0x1056)][_0x5d62cf(0x2785)](_0x352c0d),_0x52dc90[_0x5d62cf(0x192f)]();}function _0x22fe13(_0x30c99d){const _0xaf8ad7=_0x3ab2b5;_0x30c99d[_0xaf8ad7(0x4fd)]=![];for(let _0x58a4be=0x0;_0x58a4be<_0x52dc90['shortcuts']['length'];_0x58a4be++){_0x52dc90[_0xaf8ad7(0x1056)][_0x58a4be][_0xaf8ad7(0xa09)]===_0x30c99d[_0xaf8ad7(0xa09)]&&(_0x52dc90[_0xaf8ad7(0x1056)]['splice'](_0x58a4be,0x1),!_0x52dc90[_0xaf8ad7(0xae2)]&&(_0x52dc90['shortcuts'][_0xaf8ad7(0xfd0)]===0x0?_0x52dc90[_0xaf8ad7(0x2872)]=null:_0x58a4be>=_0x52dc90['shortcuts'][_0xaf8ad7(0xfd0)]&&(_0x52dc90[_0xaf8ad7(0x26e0)]=_0x52dc90['shortcuts'][_0xaf8ad7(0xfd0)]-0x1)));}_0x52dc90['saveShortcuts']();}function _0x31b8ff(_0x2cffd5){const _0x320874=_0x3ab2b5;_0x2cffd5[_0x320874(0x4fd)]?_0x52dc90['removeShortcut'](_0x2cffd5):_0x52dc90[_0x320874(0x15e4)](_0x2cffd5);}function _0x19dff3(_0x4742a5){const _0x4fb73a=_0x3ab2b5;_0x4742a5[_0x4fb73a(0x1fbd)]();}function _0x4933a3(_0x47e89f){const _0x429897=_0x3ab2b5,_0x4baddb=_0x47e89f['keyCode'],_0x47ddc3=[0x26,0x28];_0x47ddc3['indexOf'](_0x4baddb)>-0x1&&_0x47e89f['preventDefault']();switch(_0x4baddb){case 0xd:_0x52dc90[_0x429897(0x134d)](_0x52dc90[_0x429897(0x2872)][_0x52dc90[_0x429897(0x26e0)]]);break;case 0x26:_0x52dc90['selectedResultIndex']-0x1>=0x0&&(_0x52dc90[_0x429897(0x26e0)]--,_0x52dc90[_0x429897(0xe02)]());break;case 0x28:_0x52dc90['selectedResultIndex']+0x1<_0x52dc90[_0x429897(0x2872)][_0x429897(0xfd0)]&&(_0x52dc90[_0x429897(0x26e0)]++,_0x52dc90['ensureSelectedResultIsVisible']());break;default:break;}}function _0x1c3c0f(_0x1857fa){const _0x268bd2=_0x3ab2b5;if(_0x52dc90['ignoreMouseEvents'])return;_0x52dc90[_0x268bd2(0x26e0)]=_0x1857fa;}function _0xccacfb(){const _0x3625de=_0x3ab2b5;_0x52dc90['ignoreMouseEvents']=!![],_0x17b6fe[_0x3625de(0x696)](_0x52dc90[_0x3625de(0x484)]),_0x52dc90[_0x3625de(0x484)]=_0x17b6fe(function(){_0x52dc90['ignoreMouseEvents']=![];},0xfa);}function _0x4e4ff8(){const _0x3daaf6=_0x3ab2b5,_0x37140e=_0x578868['find'](_0x3daaf6(0x1e88))[_0x3daaf6(0x13b4)](_0x3daaf6(0x3a1)),_0x2d875e=angular[_0x3daaf6(0x1853)](_0x37140e[_0x3daaf6(0x13b4)]('.result')[_0x52dc90[_0x3daaf6(0x26e0)]]);if(_0x37140e&&_0x2d875e){const _0x1b6918=_0x2d875e[_0x3daaf6(0xe9e)]()[_0x3daaf6(0x20d)]-0x8,_0x225f2c=_0x2d875e['position']()[_0x3daaf6(0x20d)]+_0x2d875e[_0x3daaf6(0x1d24)]()+0x8;_0x52dc90[_0x3daaf6(0x184)](),_0x37140e[_0x3daaf6(0x20d1)]()>_0x1b6918&&_0x37140e[_0x3daaf6(0x20d1)](_0x1b6918),_0x225f2c>_0x37140e['height']()+_0x37140e[_0x3daaf6(0x20d1)]()&&_0x37140e[_0x3daaf6(0x20d1)](_0x225f2c-_0x37140e[_0x3daaf6(0xaab)]());}}function _0x64695f(){const _0x540d5c=_0x3ab2b5;_0x52dc90[_0x540d5c(0xfba)]=!_0x52dc90['mobileBarActive'];}_0x52dc90['populateResults']=_0x30eda8,_0x52dc90[_0x3ab2b5(0x23ed)]=_0x3a1b7c,_0x52dc90['saveShortcuts']=_0x1a07b8,_0x52dc90['addShortcut']=_0x2600ba,_0x52dc90[_0x3ab2b5(0xbc9)]=_0x22fe13,_0x52dc90[_0x3ab2b5(0x134d)]=_0x31b8ff,_0x52dc90[_0x3ab2b5(0x5b1)]=_0x19dff3,_0x52dc90['handleKeydown']=_0x4933a3,_0x52dc90[_0x3ab2b5(0x1ea8)]=_0x1c3c0f,_0x52dc90[_0x3ab2b5(0x184)]=_0xccacfb,_0x52dc90[_0x3ab2b5(0xe02)]=_0x4e4ff8,_0x52dc90[_0x3ab2b5(0xb44)]=_0x64695f,_0x269a59();}function _0x381089(){const _0x308b45=_0x5537c6;return{'restrict':'E','scope':{},'require':'msShortcuts','controller':_0x308b45(0x2465),'bindToController':{},'templateUrl':_0x56f5c0,'compile':function(_0x3822b6){const _0x17595f=_0x308b45;return _0x3822b6[_0x17595f(0x1390)](_0x17595f(0x3a7)),function _0x47d83f(){};}};};function _0x4675ea(){return{'restrict':'A','require':'^mdSidenav','link':function(_0xd8de51,_0x56dcd9,_0x4668ed,_0x10d608){const _0x2488f9=a0_0x5cbd;_0xd8de51[_0x2488f9(0x614)](function(){const _0x2d08c6=_0x2488f9;return _0x10d608[_0x2d08c6(0x1666)]()&&!_0x10d608[_0x2d08c6(0x948)]();},function(_0x6b4bce){const _0x168dc2=_0x2488f9;if(angular[_0x168dc2(0x2051)](_0x6b4bce))return;_0x56dcd9[_0x168dc2(0xbfb)]()[_0x168dc2(0x713)](_0x168dc2(0x134c),_0x6b4bce),angular[_0x168dc2(0x1853)](_0x168dc2(0x1d35))['toggleClass'](_0x168dc2(0xfab),_0x6b4bce);});}};}const _0xfa7d65=_0x4675ea;;_0x49a550[_0x5537c6(0x15b6)]=[_0x5537c6(0x121a)];function _0x49a550(_0x479e4f){return{'restrict':'E','link':function(_0x3d7aa9,_0x268044){const _0x37ac7b=a0_0x5cbd,_0x51c995=_0x3d7aa9[_0x37ac7b(0x1d6)]('msSplashScreen::remove',function(){const _0x32111e=_0x37ac7b;_0x479e4f[_0x32111e(0xf03)](_0x268044)[_0x32111e(0x1cb0)](function(){_0x51c995(),_0x3d7aa9=null,_0x268044=null;});});}};}const _0x5bd385=_0x49a550;;const _0x2b57f6=_0x5074a3['p']+_0x5537c6(0xaaf);;const _0x1fcd3a=_0x5074a3['p']+_0x5537c6(0x223a);;const _0x1b2b16=_0x5074a3['p']+_0x5537c6(0x1d18);;_0x534b53[_0x5537c6(0x15b6)]=[_0x5537c6(0x2168)],_0x4f81b6[_0x5537c6(0x15b6)]=[_0x5537c6(0x2168)];function _0x4f81b6(_0x5e2ef3){const _0x216aca=_0x5537c6,_0x558093=this;_0x558093[_0x216aca(0x859)]=undefined,_0x558093['orientation']='horizontal',_0x558093[_0x216aca(0xeae)]=[],_0x558093['currentStep']=undefined,_0x558093[_0x216aca(0x5ce)]=0x1;function _0x1cca91(_0x2419b4){return!(angular['isUndefined'](_0x2419b4)||_0x2419b4<0x1||_0x2419b4>_0x558093['steps']['length']);}function _0x237398(_0x4900ea){const _0x38fed1=_0x216aca;_0x558093[_0x38fed1(0xa93)]=_0x4900ea||_0x38fed1(0x203f);}function _0x2188fd(_0xcc5dfe){const _0xc1ef9f=_0x216aca;_0x558093[_0xc1ef9f(0x859)]=_0xcc5dfe;}function _0x11be3e(){const _0x36740e=_0x216aca;_0x558093[_0x36740e(0x154c)](0x1);}function _0x13b42a(_0x20bca2){const _0x36e747=_0x216aca;if(!_0x1cca91(_0x20bca2))return null;return!!_0x558093[_0x36e747(0xeae)][_0x20bca2-0x1][_0x36e747(0x1500)][_0x36e747(0x1a09)];}function _0x5526c5(_0x1bc45a,_0x4b82fb,_0x671197){const _0x496403=_0x216aca,_0x48ac28={'element':_0x1bc45a,'scope':_0x4b82fb,'form':_0x671197,'stepNumber':_0x4b82fb[_0x496403(0x23dc)]||_0x558093[_0x496403(0xeae)]['length']+0x1,'stepTitle':_0x4b82fb['stepTitle'],'stepTitleTranslate':_0x4b82fb[_0x496403(0x1769)]};return _0x558093[_0x496403(0xeae)][_0x496403(0x2785)](_0x48ac28),_0x558093[_0x496403(0xeae)][_0x496403(0x1381)](function(_0x1ef466,_0x35b522){const _0x17f6ec=_0x496403;return _0x1ef466[_0x17f6ec(0x952)]-_0x35b522[_0x17f6ec(0x952)];}),_0x48ac28;}function _0x7f71d8(){const _0x121530=_0x216aca;_0x558093['setCurrentStep'](_0x558093[_0x121530(0x5ce)]);}function _0xa8b332(){_0x5e2ef3(function(){const _0x2af257=a0_0x5cbd;for(let _0x13044e=0x0;_0x13044e<_0x558093[_0x2af257(0xeae)][_0x2af257(0xfd0)];_0x13044e++){_0x558093['steps'][_0x13044e][_0x2af257(0x2699)][_0x2af257(0x1187)](),_0x558093[_0x2af257(0xeae)][_0x13044e]['form'][_0x2af257(0x574)]();}_0x558093[_0x2af257(0x859)][_0x2af257(0x1187)](),_0x558093[_0x2af257(0x859)]['$setUntouched'](),_0x11be3e();});}function _0x399d6c(_0xf7b761){const _0x46656=_0x216aca;if(!_0x1cca91(_0xf7b761))return;_0x558093[_0x46656(0x5ce)]=_0xf7b761;if(_0x558093[_0x46656(0xa93)]===_0x46656(0x203f)){for(let _0x4a382e=0x0;_0x4a382e<_0x558093[_0x46656(0xeae)][_0x46656(0xfd0)];_0x4a382e++){_0x558093[_0x46656(0xeae)][_0x4a382e][_0x46656(0x1853)]['hide']();}_0x558093[_0x46656(0xeae)][_0x558093['currentStepNumber']-0x1][_0x46656(0x1853)][_0x46656(0xe27)]();}else{if(_0x558093['orientation']===_0x46656(0x1fdf)){for(let _0x3acf40=0x0;_0x3acf40<_0x558093[_0x46656(0xeae)][_0x46656(0xfd0)];_0x3acf40++){_0x558093[_0x46656(0xeae)][_0x3acf40]['element']['find']('.ms-stepper-step-content')['hide']();}_0x558093[_0x46656(0xeae)][_0x558093['currentStepNumber']-0x1][_0x46656(0x1853)]['find'](_0x46656(0x292))[_0x46656(0xe27)]();}}}function _0x406b0a(_0x32978e){const _0x397ef5=_0x216aca;if(_0x13b42a(_0x32978e))return;_0x558093[_0x397ef5(0x154c)](_0x32978e);}function _0x1421d8(){const _0x4ef5d7=_0x216aca;let _0x14e1d6=_0x558093[_0x4ef5d7(0x5ce)]-0x1;for(let _0x4c5393=_0x14e1d6;_0x4c5393>=0x1;_0x4c5393--){if(!_0x13b42a(_0x4c5393)){_0x14e1d6=_0x4c5393;break;}}_0x558093[_0x4ef5d7(0x154c)](_0x14e1d6);}function _0x372a01(){const _0x3e924c=_0x216aca;let _0x49277d=_0x558093[_0x3e924c(0x5ce)]+0x1;for(let _0x2409ef=_0x49277d;_0x2409ef<=_0x558093[_0x3e924c(0xeae)][_0x3e924c(0xfd0)];_0x2409ef++){if(!_0x13b42a(_0x2409ef)){_0x49277d=_0x2409ef;break;}}_0x558093['setCurrentStep'](_0x49277d);}function _0x4b088d(){const _0x52aaaf=_0x216aca;_0x558093[_0x52aaaf(0x154c)](_0x558093[_0x52aaaf(0xeae)][_0x52aaaf(0xfd0)]);}function _0x39bf73(){return _0x558093['currentStepNumber']===0x1;}function _0x27b192(){const _0x4c8c8c=_0x216aca;return _0x558093[_0x4c8c8c(0x5ce)]===_0x558093['steps'][_0x4c8c8c(0xfd0)];}function _0x50b118(_0x5ad60c){const _0x340abc=_0x216aca;if(!_0x1cca91(_0x5ad60c))return null;return _0x558093[_0x340abc(0x5ce)]===_0x5ad60c;}function _0x54ca5a(_0x32de74){const _0x5f3237=_0x216aca;if(!_0x1cca91(_0x32de74))return null;return _0x558093[_0x5f3237(0xeae)][_0x32de74-0x1][_0x5f3237(0x1500)][_0x5f3237(0x18fd)];}function _0x132a6e(_0x19253f){const _0x177fd0=_0x216aca;if(!_0x1cca91(_0x19253f))return null;if(_0x54ca5a(_0x19253f))return!![];return _0x558093['steps'][_0x19253f-0x1][_0x177fd0(0x2699)][_0x177fd0(0x2736)];}function _0x303fa9(_0x499f9a){if(!_0x1cca91(_0x499f9a))return null;let _0x59fc13=![];for(let _0x55966f=0x1;_0x55966f<_0x499f9a;_0x55966f++){if(!_0x132a6e(_0x55966f)){_0x59fc13=!![];break;}}return _0x59fc13;}function _0xeda047(_0x3afc8a){const _0x5d85a3=_0x216aca;return!_0x13b42a(_0x3afc8a[_0x5d85a3(0x952)]);}function _0x4eab20(){const _0xfc7f55=_0x216aca;return _0x558093[_0xfc7f55(0x859)]['$valid'];}_0x558093[_0x216aca(0x1669)]=_0x237398,_0x558093[_0x216aca(0x17c2)]=_0x2188fd,_0x558093[_0x216aca(0x24ad)]=_0x5526c5,_0x558093['setupSteps']=_0x7f71d8,_0x558093[_0x216aca(0x21b3)]=_0xa8b332,_0x558093[_0x216aca(0x154c)]=_0x399d6c,_0x558093['gotoStep']=_0x406b0a,_0x558093[_0x216aca(0x280a)]=_0x1421d8,_0x558093['gotoNextStep']=_0x372a01,_0x558093[_0x216aca(0x1633)]=_0x11be3e,_0x558093[_0x216aca(0xb37)]=_0x4b088d,_0x558093[_0x216aca(0x2933)]=_0x39bf73,_0x558093[_0x216aca(0x2221)]=_0x27b192,_0x558093[_0x216aca(0x17ae)]=_0x50b118,_0x558093[_0x216aca(0x1d7)]=_0x303fa9,_0x558093[_0x216aca(0x2944)]=_0x54ca5a,_0x558093[_0x216aca(0xcf5)]=_0x13b42a,_0x558093['filterHiddenStep']=_0xeda047,_0x558093[_0x216aca(0x3f1)]=_0x132a6e,_0x558093['isStepNumberValid']=_0x1cca91,_0x558093[_0x216aca(0x65c)]=_0x4eab20;}function _0x140e79(){const _0x2814bb=_0x5537c6;return{'restrict':'A','scope':{},'require':[_0x2814bb(0x2699),_0x2814bb(0x1b97)],'priority':0x3e9,'controller':_0x2814bb(0x1293),'bindToController':{'model':_0x2814bb(0x1850)},'transclude':!![],'templateUrl':_0x2b57f6,'compile':function(_0x82a51a){const _0x5bebf9=_0x2814bb;return _0x82a51a['addClass'](_0x5bebf9(0x28e0)),function _0x5a85ad(_0x2ac1eb,_0xcdffbd,_0x1a74d9,_0x2562f0){const _0x53d21e=_0x5bebf9,_0x166528=_0x2562f0[0x0],_0x30fd1a=_0x2562f0[0x1];_0x30fd1a[_0x53d21e(0x1669)](_0x53d21e(0x203f)),_0x30fd1a[_0x53d21e(0x17c2)](_0x166528),_0x30fd1a[_0x53d21e(0x259)]();};}};}function _0x5f03da(){const _0x3c4f61=_0x5537c6;return{'restrict':'E','require':[_0x3c4f61(0x2699),_0x3c4f61(0x1ec9)],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'compile':function(_0x28ce01){const _0x4b5394=_0x3c4f61;return _0x28ce01[_0x4b5394(0x1390)]('ms-stepper-step'),function _0xc8347a(_0x1fd610,_0x113ed5,_0x41eca9,_0x5d0c09){const _0x18c993=_0x4b5394,_0x4f30ca=_0x5d0c09[0x0],_0x474c66=_0x5d0c09[0x1];_0x1fd610[_0x18c993(0x18fd)]=angular['isDefined'](_0x41eca9[_0x18c993(0x18fd)]),_0x474c66['registerStep'](_0x113ed5,_0x1fd610,_0x4f30ca),_0x113ed5['hide']();};}};}function _0x534b53(_0x41337){const _0x41b590=_0x5537c6;return{'restrict':'A','scope':{},'require':[_0x41b590(0x2699),'msVerticalStepper'],'priority':0x3e9,'controller':'MsStepperController\x20as\x20MsStepper','bindToController':{'model':'=ngModel'},'transclude':!![],'templateUrl':_0x1fcd3a,'compile':function(_0x302444){const _0x191641=_0x41b590;return _0x302444['addClass'](_0x191641(0x28e0)),function _0x62a560(_0x4bc8cb,_0x1b2a89,_0x382543,_0x963b0f){const _0x48910a=_0x963b0f[0x0],_0x34927a=_0x963b0f[0x1];_0x41337(function(){const _0x19993a=a0_0x5cbd;_0x34927a[_0x19993a(0x1669)](_0x19993a(0x1fdf)),_0x34927a[_0x19993a(0x17c2)](_0x48910a),_0x34927a['setupSteps']();});};}};}function _0x2acdd8(){const _0x25c535=_0x5537c6;return{'restrict':'E','require':[_0x25c535(0x2699),_0x25c535(0x219a)],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'transclude':!![],'templateUrl':-_0x1b2b16,'compile':function(_0x3f0ed5){const _0x475280=_0x25c535;return _0x3f0ed5[_0x475280(0x1390)](_0x475280(0x602)),function _0x40635b(_0x520329,_0x338037,_0x401f1e,_0x50f0aa){const _0x2d41e9=_0x475280,_0xc14af9=_0x50f0aa[0x0],_0x2e950d=_0x50f0aa[0x1];_0x520329[_0x2d41e9(0x18fd)]=angular[_0x2d41e9(0x13b8)](_0x401f1e[_0x2d41e9(0x18fd)]),_0x520329[_0x2d41e9(0x12ac)]=_0x2e950d[_0x2d41e9(0x24ad)](_0x338037,_0x520329,_0xc14af9),_0x520329['MsStepper']=_0x2e950d,_0x338037['find'](_0x2d41e9(0x292))['hide']();};}};};const _0x358e75=_0x5074a3['p']+_0x5537c6(0x14f1);;function _0x39dfc9(){const _0x35816a=_0x5537c6,_0x29a415=this;_0x29a415['onTabScroll']=_0x4dc578,_0x29a415[_0x35816a(0x155c)]=_0x59586f;function _0x4dc578(_0x5ee05a){const _0x37f30b=_0x35816a;_0x5ee05a==_0x37f30b(0x766)?$('#tab-container')[_0x37f30b(0x1885)]()[_0x37f30b(0xb53)]({'scrollLeft':_0x37f30b(0x197b)},0x3e8):$('#tab-container')[_0x37f30b(0x1885)]()[_0x37f30b(0xb53)]({'scrollLeft':_0x37f30b(0x1535)},0x3e8);}function _0x59586f(_0xc8c710){const _0x13dfe6=_0x35816a;switch(_0x42cf48()){case'both':return!![];case'left':return _0xc8c710==_0x13dfe6(0x766)?!![]:![];case'right':return _0xc8c710==_0x13dfe6(0x15d2)?!![]:![];case _0x13dfe6(0x13b1):return![];default:return![];}}function _0x42cf48(){const _0x47da54=_0x35816a,_0x214e9c=document[_0x47da54(0x26ee)](_0x47da54(0x2497)),_0x241dce=document[_0x47da54(0x26ee)](_0x47da54(0x1a24));if(_0x241dce[_0x47da54(0x2545)]>_0x214e9c[_0x47da54(0x2545)]&&_0x214e9c[_0x47da54(0x280)]==0x0&&_0x241dce[_0x47da54(0x280)]==0x0)return _0x47da54(0x15d2);else{if(_0x241dce[_0x47da54(0x2545)]>_0x214e9c['scrollWidth']&&_0x241dce[_0x47da54(0x280)]>_0x214e9c['scrollLeft']&&_0x214e9c['scrollWidth']+_0x241dce[_0x47da54(0x280)]>=_0x241dce[_0x47da54(0x2545)])return _0x47da54(0x766);else return _0x241dce[_0x47da54(0x2545)]>_0x214e9c[_0x47da54(0x2545)]&&_0x241dce[_0x47da54(0x280)]>_0x214e9c[_0x47da54(0x280)]&&_0x214e9c['scrollWidth']+_0x241dce[_0x47da54(0x280)]<_0x241dce[_0x47da54(0x2545)]?_0x47da54(0x25bb):_0x47da54(0x13b1);}}}function _0x253fbd(){return{'restrict':'E','scope':{},'transclude':!![],'controller':'MsTabScrollController','controllerAs':'vm','bindToController':!![],'templateUrl':_0x358e75,'compile':function(_0x11be57){const _0x4594b3=a0_0x5cbd;return _0x11be57[_0x4594b3(0x1390)](_0x4594b3(0x352)),function _0x2516f1(){};}};};_0x1f2ccf['$inject']=[_0x5537c6(0x2168),'$q'];function _0x1e610f(){const _0x40ae66=_0x5537c6,_0x41ac79=this;_0x41ac79[_0x40ae66(0x1211)]=undefined,_0x41ac79[_0x40ae66(0x1e6b)]=_0x2e1d67,_0x41ac79['getScrollEl']=_0x1e13a9;function _0x2e1d67(_0x580a7a){const _0x2a0b42=_0x40ae66;_0x41ac79[_0x2a0b42(0x1211)]=_0x580a7a;}function _0x1e13a9(){const _0x2a36c6=_0x40ae66;return _0x41ac79[_0x2a36c6(0x1211)];}}function _0x2b81d6(){const _0x8ae34f=_0x5537c6;return{'scope':{'msTimeline':'=?','loadMore':_0x8ae34f(0x15d3)},'controller':_0x8ae34f(0x157a),'compile':function(_0x3b6c5d){const _0x226088=_0x8ae34f;return _0x3b6c5d[_0x226088(0x1390)](_0x226088(0x611)),function _0x50a1af(_0xa4ba3c,_0x453111,_0x4a8248,_0x3b00bd){const _0x11169c=_0x226088,_0x29b2e6=angular[_0x11169c(0x1853)](_0x11169c(0x1223));_0x453111[_0x11169c(0x207)](_0x29b2e6);let _0x58b222={'scrollEl':'#content'};_0x58b222=angular[_0x11169c(0x2765)](_0x58b222,_0xa4ba3c['msTimeline'],{});const _0x8d77b8=angular['element'](_0x58b222['scrollEl']);_0x3b00bd['setScrollEl'](_0x8d77b8);const _0x3521ef=0x90;_0x299ce0();function _0x2b51a4(){const _0x44b34e=_0x11169c;_0x8d77b8[_0x44b34e(0x20d1)]()+_0x8d77b8[_0x44b34e(0xaab)]()+_0x3521ef>_0x29b2e6['position']()[_0x44b34e(0x20d)]&&(_0x29b2e6[_0x44b34e(0x1390)](_0x44b34e(0xe27)),_0x32910b(),_0xa4ba3c[_0x44b34e(0x199e)]()['then'](function(){const _0xd902ed=_0x44b34e;_0x29b2e6[_0xd902ed(0x1e55)](_0xd902ed(0xe27)),_0x299ce0();},function(){const _0x1fc12d=_0x44b34e;_0x29b2e6[_0x1fc12d(0x152a)]();}));}function _0x299ce0(){const _0x5e7334=_0x11169c;_0x8d77b8['on'](_0x5e7334(0xc6e),_0x2b51a4);}function _0x32910b(){const _0x468158=_0x11169c;_0x8d77b8['off'](_0x468158(0xc6e),_0x2b51a4);}_0xa4ba3c[_0x11169c(0x1d6)](_0x11169c(0x291c),function(){_0x32910b();});};}};}function _0x1f2ccf(_0x36c94d,_0x3c6d46){const _0x53f3f1=_0x5537c6;return{'scope':!![],'require':_0x53f3f1(0x15fc),'compile':function(_0x4339bc){const _0x465675=_0x53f3f1;return _0x4339bc[_0x465675(0x1390)]('ms-timeline-item')[_0x465675(0x1390)]('hidden'),function _0x317d70(_0x3f9439,_0x7f2de,_0xcdfa71,_0x12e021){const _0x40b275=_0x465675,_0x4d20c6=0x48;let _0x37d678=![],_0xb33f78=![];const _0x3db0f7=_0x12e021['getScrollEl']();_0x5a3c97();function _0x5a3c97(){const _0x2517c4=a0_0x5cbd;_0x7f2de['find'](_0x2517c4(0x5bf))?_0x3f9439[_0x2517c4(0x1d6)](_0x2517c4(0x10c0),function(_0x2389c7,_0x1a6246){const _0xe36537=_0x2517c4,_0x26e5ee=angular[_0xe36537(0x1853)](_0x1a6246[0x0]);_0x566c4c(_0x26e5ee)[_0xe36537(0x1cb0)](function(){_0x36c94d(function(){_0x37d678=!![];});});}):_0x566c4c(_0x7f2de)[_0x2517c4(0x1cb0)](function(){_0x36c94d(function(){_0x37d678=!![];});}),_0x3db0f7['on'](_0x2517c4(0xc6e),_0x2ffe33),_0x2ffe33();}const _0x2d5dc9=_0x3f9439[_0x40b275(0x614)](function(){return _0x37d678&&_0xb33f78;},function(_0x543914,_0x6b54fe){const _0x2c47cf=_0x40b275;if(angular[_0x2c47cf(0x1c53)](_0x543914,_0x6b54fe))return;_0x543914&&(_0x7f2de[_0x2c47cf(0x1e55)](_0x2c47cf(0x3f8))[_0x2c47cf(0x1390)]('animate'),_0x2d5dc9());},!![]);function _0x566c4c(_0x2010a0){const _0x594403=_0x40b275,_0x2295b3=_0x3c6d46[_0x594403(0x11f4)](),_0x2d659f=_0x2010a0['find'](_0x594403(0xd54));return _0x2d659f[_0x594403(0xfd0)]>0x0?_0x2d659f['on'](_0x594403(0x997),function(){const _0x28a2b5=_0x594403;_0x2295b3[_0x28a2b5(0x19a3)](_0x28a2b5(0x4ca));}):_0x2295b3[_0x594403(0x19a3)](_0x594403(0x288e)),_0x2295b3[_0x594403(0x2061)];}function _0x2ffe33(){const _0x33d8d8=_0x40b275;_0x3db0f7[_0x33d8d8(0x20d1)]()+_0x3db0f7['height']()>_0x7f2de['position']()['top']+_0x4d20c6&&(_0x36c94d(function(){_0xb33f78=!![];}),_0x3db0f7['off'](_0x33d8d8(0xc6e),_0x2ffe33));}};}};};_0x31c84d[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2086),'$q',_0x5537c6(0x142b),_0x5537c6(0x9bf)];function _0x31c84d(_0x886b74,_0x22ac1c,_0x52ce63,_0x52dabd,_0x45ec1a){const _0x5eb200=_0x5537c6,_0x4478db=this;function _0xe1b02c(){const _0x3bc96e=a0_0x5cbd;_0x4478db[_0x3bc96e(0x18d8)]=_0xfb0bd5()[_0x3bc96e(0xd42)](_0x543b5a()(_0x4478db[_0x3bc96e(0xbb9)]));const _0x59cc7f=_0x543b5a()['duration'](_0x4478db['millis']),_0x1b39f7=_0x59cc7f[_0x3bc96e(0x479)](),_0x5085ad=_0x59cc7f['minutes'](),_0x3419d3=_0x59cc7f['hours'](),_0x53542a=_0x59cc7f[_0x3bc96e(0x23b3)](),_0x5cf8b0=_0x59cc7f['months'](),_0x7f4499=_0x59cc7f[_0x3bc96e(0xa1c)]();_0x4478db[_0x3bc96e(0x479)]=_0x1b39f7<0xa?'0'+_0x1b39f7:_0x1b39f7,_0x4478db[_0x3bc96e(0x22d)]=_0x5085ad<0xa?'0'+_0x5085ad:_0x5085ad,_0x4478db[_0x3bc96e(0x1de0)]=_0x3419d3<0xa?'0'+_0x3419d3:_0x3419d3,_0x4478db[_0x3bc96e(0x23b3)]=_0x53542a<0xa?'0'+_0x53542a:_0x53542a,_0x4478db[_0x3bc96e(0x3ae)]=_0x5cf8b0<0xa?'0'+_0x5cf8b0:_0x5cf8b0,_0x4478db[_0x3bc96e(0xa1c)]=_0x7f4499<0xa?'0'+_0x7f4499:_0x7f4499,_0x4478db[_0x3bc96e(0x176b)]=_0x4478db[_0x3bc96e(0x23b3)]>0x0?_0x4478db[_0x3bc96e(0x23b3)]+'d\x20':''+_0x4478db[_0x3bc96e(0x1de0)]+':'+_0x4478db[_0x3bc96e(0x22d)]+':'+_0x4478db[_0x3bc96e(0x479)];}function _0xe89f4(){const _0x141cdf=a0_0x5cbd;_0xe1b02c(),_0x4478db[_0x141cdf(0x399)]=setTimeout(function(){const _0x1c3bbd=_0x141cdf;_0xe89f4(),_0x886b74[_0x1c3bbd(0x7ec)]();},_0x4478db[_0x141cdf(0x1ac8)]);}function _0xfb0bd5(_0x26d663){const _0x1d49f6=a0_0x5cbd,_0x242d33=_0x26d663||_0x543b5a()(),_0x1dd2b2=_0x242d33[_0x1d49f6(0x17d9)](_0x886b74['serverDateOffset'])['format']('YYYY-MM-DD\x20HH:mm:ss');return _0x543b5a()(_0x1dd2b2);}function _0x58092e(){return _0x52ce63(function(_0x1890fd,_0x404bba){const _0x46a60e=a0_0x5cbd;try{if(_0x886b74['serverDateOffset']){_0x1890fd(_0xfb0bd5());return;}_0x52dabd[_0x46a60e(0x9ca)][_0x46a60e(0x1ccc)]()[_0x46a60e(0x1d77)][_0x46a60e(0x1cb0)](function(_0x5934a3){const _0x43d4f4=_0x46a60e;_0x886b74[_0x43d4f4(0x2843)]=_0x5934a3[_0x43d4f4(0x184b)],_0x1890fd(_0x543b5a()(_0x5934a3[_0x43d4f4(0x27c)]));return;});}catch(_0x547ad9){_0x404bba(_0x547ad9);}});}function _0x49eef4(){const _0x474554=a0_0x5cbd;_0x58092e()[_0x474554(0x1cb0)](function(_0x2f94cd){const _0x3578eb=_0x474554,_0x17594b=_0x4478db['startTime']?_0x543b5a()(_0x4478db['startTime']):undefined;if(!_0x4478db[_0x3578eb(0x97f)])_0x4478db[_0x3578eb(0xbb9)]=_0x2f94cd;else _0x17594b[_0x3578eb(0x131d)](_0x2f94cd,_0x3578eb(0x607))||_0x17594b[_0x3578eb(0x4c6)](_0x2f94cd,_0x3578eb(0x607))?_0x4478db[_0x3578eb(0xbb9)]=_0xfb0bd5(_0x17594b):_0x4478db['startingTime']=_0x17594b;_0xe89f4();})[_0x474554(0x1c4)](function(_0x28a081){const _0x256062=_0x474554;_0x45ec1a[_0x256062(0x218e)]({'title':_0x28a081[_0x256062(0x291)]?_0x256062(0xeb9)+_0x28a081['status']+_0x256062(0x1657)+_0x28a081[_0x256062(0xc22)]:'api.setting.getDate','msg':_0x28a081[_0x256062(0x25c)]?JSON['stringify'](_0x28a081[_0x256062(0x25c)][_0x256062(0x155e)]):_0x28a081[_0x256062(0x147f)]()});});}_0x49eef4(),_0x886b74[_0x5eb200(0x1d6)]('timer-start',function(){const _0x25ffad=_0x5eb200;_0x4478db[_0x25ffad(0x97f)]=undefined,_0x49eef4();}),_0x22ac1c['bind'](_0x5eb200(0x291c),function(){const _0x6fcc0e=_0x5eb200;if(_0x4478db[_0x6fcc0e(0x399)])clearTimeout(_0x4478db[_0x6fcc0e(0x399)]);});}function _0x2c7ac9(){const _0x2ace80=_0x5537c6;return{'restrict':'EA','replace':![],'scope':{'startTime':'=?','interval':'=?'},'template':_0x2ace80(0xbef),'compile':function(){return{'pre':function(_0x16dddb,_0x35dfc7,_0x592b9e){const _0x52ec8b=a0_0x5cbd;_0x16dddb[_0x52ec8b(0x1ac8)]=_0x592b9e['interval']||0x3e8;}};},'controller':_0x31c84d,'controllerAs':'vm','bindToController':!![]};};const _0x1bb52b=_0x5074a3['p']+_0x5537c6(0x18c4);;function _0x32c9d8(){const _0x142fc9=_0x5537c6;return{'restrict':'E','scope':{'ngModel':'='},'controller':[_0x142fc9(0x1463),function(_0x592758){const _0x13a8b6=_0x142fc9;_0x592758[_0x13a8b6(0x1b08)]=[{'name':_0x13a8b6(0x1012),'utcOffset':0x3c,'offsetStr':_0x13a8b6(0x1701),'countries':['AD']},{'name':_0x13a8b6(0x2973),'utcOffset':0xf0,'offsetStr':_0x13a8b6(0x1ea0),'countries':['AE','OM']},{'name':_0x13a8b6(0x2174),'utcOffset':0x10e,'offsetStr':_0x13a8b6(0x24db),'countries':['AF']},{'name':_0x13a8b6(0x2440),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['AL']},{'name':_0x13a8b6(0x863),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['AM']},{'name':'Antarctica/Rothera','utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['AQ']},{'name':_0x13a8b6(0x246f),'utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['AQ']},{'name':_0x13a8b6(0x279d),'utcOffset':0x12c,'offsetStr':_0x13a8b6(0xe95),'countries':['AQ']},{'name':'Antarctica/Davis','utcOffset':0x1a4,'offsetStr':_0x13a8b6(0x1a6e),'countries':['AQ']},{'name':'Antarctica/Casey','utcOffset':0x1e0,'offsetStr':_0x13a8b6(0x2996),'countries':['AQ']},{'name':'Antarctica/Vostok','utcOffset':0x168,'offsetStr':_0x13a8b6(0xf9d),'countries':['AQ']},{'name':_0x13a8b6(0x214),'utcOffset':0x258,'offsetStr':_0x13a8b6(0xeb2),'countries':['AQ']},{'name':_0x13a8b6(0x1101),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['AQ']},{'name':_0x13a8b6(0x1ada),'utcOffset':0x0,'offsetStr':_0x13a8b6(0xde5),'countries':['AQ']},{'name':_0x13a8b6(0x24d),'utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['AR']},{'name':_0x13a8b6(0x447),'utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['AR']},{'name':_0x13a8b6(0x108c),'utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['AR']},{'name':_0x13a8b6(0x1590),'utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['AR']},{'name':_0x13a8b6(0x13f0),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':'America/Argentina/Catamarca','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0x13a8b6(0x2196),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':'America/Argentina/San_Juan','utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['AR']},{'name':_0x13a8b6(0x1ce0),'utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['AR']},{'name':_0x13a8b6(0xc2f),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0x13a8b6(0x31e),'utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['AR']},{'name':_0x13a8b6(0x5f3),'utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['AR']},{'name':_0x13a8b6(0xc01),'utcOffset':-0x294,'offsetStr':_0x13a8b6(0x1673),'countries':['AS','UM']},{'name':_0x13a8b6(0x219d),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['AT']},{'name':'Australia/Lord_Howe','utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},{'name':_0x13a8b6(0x1788),'utcOffset':0x294,'offsetStr':_0x13a8b6(0xac0),'countries':['AU']},{'name':_0x13a8b6(0x21b4),'utcOffset':0x294,'offsetStr':_0x13a8b6(0xac0),'countries':['AU']},{'name':_0x13a8b6(0x2d8),'utcOffset':0x294,'offsetStr':_0x13a8b6(0xac0),'countries':['AU']},{'name':'Australia/Melbourne','utcOffset':0x294,'offsetStr':_0x13a8b6(0xac0),'countries':['AU']},{'name':_0x13a8b6(0x2577),'utcOffset':0x294,'offsetStr':_0x13a8b6(0xac0),'countries':['AU']},{'name':_0x13a8b6(0x8b2),'utcOffset':0x276,'offsetStr':_0x13a8b6(0x1929),'countries':['AU']},{'name':'Australia/Brisbane','utcOffset':0x258,'offsetStr':_0x13a8b6(0xeb2),'countries':['AU']},{'name':_0x13a8b6(0x7a2),'utcOffset':0x258,'offsetStr':_0x13a8b6(0xeb2),'countries':['AU']},{'name':_0x13a8b6(0x1153),'utcOffset':0x276,'offsetStr':_0x13a8b6(0x1929),'countries':['AU']},{'name':'Australia/Darwin','utcOffset':0x23a,'offsetStr':_0x13a8b6(0x686),'countries':['AU']},{'name':_0x13a8b6(0x1f39),'utcOffset':0x1e0,'offsetStr':_0x13a8b6(0x2996),'countries':['AU']},{'name':_0x13a8b6(0x559),'utcOffset':0x20d,'offsetStr':_0x13a8b6(0x102b),'countries':['AU']},{'name':_0x13a8b6(0x1195),'utcOffset':0xf0,'offsetStr':_0x13a8b6(0x1ea0),'countries':['AZ']},{'name':_0x13a8b6(0x98b),'utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['BB']},{'name':_0x13a8b6(0xad6),'utcOffset':0x168,'offsetStr':_0x13a8b6(0xf9d),'countries':['BD']},{'name':_0x13a8b6(0x6c7),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['BE']},{'name':_0x13a8b6(0xd7a),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['BG']},{'name':_0x13a8b6(0x6fa),'utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['BM']},{'name':_0x13a8b6(0x639),'utcOffset':0x1e0,'offsetStr':_0x13a8b6(0x2996),'countries':['BN']},{'name':_0x13a8b6(0x1513),'utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['BO']},{'name':_0x13a8b6(0x438),'utcOffset':-0x78,'offsetStr':_0x13a8b6(0x1159),'countries':['BR']},{'name':'America/Belem','utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['BR']},{'name':'America/Fortaleza','utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['BR']},{'name':_0x13a8b6(0xc6d),'utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['BR']},{'name':'America/Araguaina','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0x13a8b6(0x178e),'utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['BR']},{'name':_0x13a8b6(0x1809),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':'America/Sao_Paulo','utcOffset':-0x78,'offsetStr':_0x13a8b6(0x1159),'countries':['BR']},{'name':_0x13a8b6(0x1edc),'utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['BR']},{'name':_0x13a8b6(0x32b),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0x13a8b6(0x13cf),'utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['BR']},{'name':'America/Porto_Velho','utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['BR']},{'name':'America/Boa_Vista','utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['BR']},{'name':_0x13a8b6(0x11a4),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BR']},{'name':'America/Eirunepe','utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['BR']},{'name':'America/Rio_Branco','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BR']},{'name':_0x13a8b6(0x241),'utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['BS']},{'name':_0x13a8b6(0x24f4),'utcOffset':0x168,'offsetStr':_0x13a8b6(0xf9d),'countries':['BT']},{'name':_0x13a8b6(0x23f8),'utcOffset':0xb4,'offsetStr':_0x13a8b6(0x4de),'countries':['BY']},{'name':_0x13a8b6(0x12be),'utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['BZ']},{'name':'America/St_Johns','utcOffset':-0xd2,'offsetStr':_0x13a8b6(0x23c6),'countries':['CA']},{'name':_0x13a8b6(0xad2),'utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['CA']},{'name':_0x13a8b6(0x25c8),'utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['CA']},{'name':_0x13a8b6(0x16c9),'utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['CA']},{'name':_0x13a8b6(0x210a),'utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['CA']},{'name':_0x13a8b6(0x2f1),'utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['CA']},{'name':'America/Toronto','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},{'name':_0x13a8b6(0xecf),'utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['CA']},{'name':_0x13a8b6(0x7a7),'utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['CA']},{'name':'America/Iqaluit','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},{'name':_0x13a8b6(0xfdb),'utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['CA']},{'name':_0x13a8b6(0x1f7a),'utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['CA']},{'name':_0x13a8b6(0x14bb),'utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['CA']},{'name':_0x13a8b6(0x204f),'utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['CA']},{'name':_0x13a8b6(0x15d5),'utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['CA']},{'name':_0x13a8b6(0x132e),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},{'name':_0x13a8b6(0xaca),'utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['CA']},{'name':'America/Swift_Current','utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['CA']},{'name':_0x13a8b6(0x1b29),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},{'name':'America/Cambridge_Bay','utcOffset':-0x1a4,'offsetStr':_0x13a8b6(0x253),'countries':['CA']},{'name':_0x13a8b6(0x185d),'utcOffset':-0x1a4,'offsetStr':_0x13a8b6(0x253),'countries':['CA']},{'name':_0x13a8b6(0x1e99),'utcOffset':-0x1a4,'offsetStr':_0x13a8b6(0x253),'countries':['CA']},{'name':_0x13a8b6(0x1f61),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},{'name':_0x13a8b6(0x1d70),'utcOffset':-0x1a4,'offsetStr':_0x13a8b6(0x253),'countries':['CA']},{'name':_0x13a8b6(0x284e),'utcOffset':-0x1a4,'offsetStr':_0x13a8b6(0x253),'countries':['CA']},{'name':'America/Vancouver','utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['CA']},{'name':_0x13a8b6(0x2952),'utcOffset':-0x1e0,'offsetStr':_0x13a8b6(0x1877),'countries':['CA']},{'name':_0x13a8b6(0x1cfa),'utcOffset':-0x1e0,'offsetStr':_0x13a8b6(0x1877),'countries':['CA']},{'name':_0x13a8b6(0x2385),'utcOffset':0x186,'offsetStr':_0x13a8b6(0x288b),'countries':['CC']},{'name':_0x13a8b6(0x2301),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['CH','DE','LI']},{'name':_0x13a8b6(0xe4a),'utcOffset':0x0,'offsetStr':_0x13a8b6(0xde5),'countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},{'name':'Pacific/Rarotonga','utcOffset':-0x258,'offsetStr':_0x13a8b6(0x241a),'countries':['CK']},{'name':'America/Santiago','utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['CL']},{'name':'Pacific/Easter','utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['CL']},{'name':'Asia/Shanghai','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['CN']},{'name':_0x13a8b6(0x1a1c),'utcOffset':0x168,'offsetStr':_0x13a8b6(0xf9d),'countries':['CN']},{'name':'America/Bogota','utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['CO']},{'name':_0x13a8b6(0xc7a),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CR']},{'name':_0x13a8b6(0x1212),'utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['CU']},{'name':_0x13a8b6(0x15c8),'utcOffset':-0x3c,'offsetStr':'-01:00','countries':['CV']},{'name':_0x13a8b6(0xabb),'utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['CW','AW','BQ','SX']},{'name':_0x13a8b6(0x1bda),'utcOffset':0x1a4,'offsetStr':_0x13a8b6(0x1a6e),'countries':['CX']},{'name':_0x13a8b6(0x1108),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['CY']},{'name':_0x13a8b6(0x1417),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['CZ','SK']},{'name':'Europe/Berlin','utcOffset':0x3c,'offsetStr':'+01:00','countries':['DE']},{'name':_0x13a8b6(0x2953),'utcOffset':0x3c,'offsetStr':_0x13a8b6(0x1701),'countries':['DK']},{'name':_0x13a8b6(0x1b4e),'utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['DO']},{'name':_0x13a8b6(0x1b4c),'utcOffset':0x3c,'offsetStr':_0x13a8b6(0x1701),'countries':['DZ']},{'name':_0x13a8b6(0x1962),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['EC']},{'name':_0x13a8b6(0x198e),'utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['EC']},{'name':_0x13a8b6(0x603),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['EE']},{'name':_0x13a8b6(0x243b),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['EG']},{'name':_0x13a8b6(0x1da9),'utcOffset':0x0,'offsetStr':_0x13a8b6(0xde5),'countries':['EH']},{'name':_0x13a8b6(0x211f),'utcOffset':0x3c,'offsetStr':_0x13a8b6(0x1701),'countries':['ES']},{'name':'Africa/Ceuta','utcOffset':0x3c,'offsetStr':_0x13a8b6(0x1701),'countries':['ES']},{'name':'Atlantic/Canary','utcOffset':0x0,'offsetStr':'+00:00','countries':['ES']},{'name':_0x13a8b6(0x57c),'utcOffset':0x78,'offsetStr':'+02:00','countries':['FI','AX']},{'name':_0x13a8b6(0x3b3),'utcOffset':0x2d0,'offsetStr':_0x13a8b6(0xf9b),'countries':['FJ']},{'name':'Atlantic/Stanley','utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['FK']},{'name':_0x13a8b6(0xa85),'utcOffset':0x258,'offsetStr':'+10:00','countries':['FM']},{'name':'Pacific/Pohnpei','utcOffset':0x294,'offsetStr':_0x13a8b6(0xac0),'countries':['FM']},{'name':_0x13a8b6(0x1b23),'utcOffset':0x294,'offsetStr':_0x13a8b6(0xac0),'countries':['FM']},{'name':_0x13a8b6(0x1c67),'utcOffset':0x0,'offsetStr':_0x13a8b6(0xde5),'countries':['FO']},{'name':'Europe/Paris','utcOffset':0x3c,'offsetStr':_0x13a8b6(0x1701),'countries':['FR']},{'name':_0x13a8b6(0x1af7),'utcOffset':0x0,'offsetStr':'+00:00','countries':['GB','GG','IM','JE']},{'name':_0x13a8b6(0x2435),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['GE']},{'name':'America/Cayenne','utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['GF']},{'name':_0x13a8b6(0x2296),'utcOffset':0x0,'offsetStr':_0x13a8b6(0xde5),'countries':['GH']},{'name':_0x13a8b6(0x1a7e),'utcOffset':0x3c,'offsetStr':_0x13a8b6(0x1701),'countries':['GI']},{'name':_0x13a8b6(0x2005),'utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['GL']},{'name':_0x13a8b6(0x274d),'utcOffset':0x0,'offsetStr':_0x13a8b6(0xde5),'countries':['GL']},{'name':_0x13a8b6(0x1b3a),'utcOffset':-0x3c,'offsetStr':_0x13a8b6(0x57d),'countries':['GL']},{'name':'America/Thule','utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['GL']},{'name':_0x13a8b6(0x23a6),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['GR']},{'name':'Atlantic/South_Georgia','utcOffset':-0x78,'offsetStr':_0x13a8b6(0x1159),'countries':['GS']},{'name':'America/Guatemala','utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['GT']},{'name':_0x13a8b6(0x1614),'utcOffset':0x258,'offsetStr':_0x13a8b6(0xeb2),'countries':['GU','MP']},{'name':'Africa/Bissau','utcOffset':0x0,'offsetStr':_0x13a8b6(0xde5),'countries':['GW']},{'name':'America/Guyana','utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['GY']},{'name':_0x13a8b6(0x8fa),'utcOffset':0x1e0,'offsetStr':_0x13a8b6(0x2996),'countries':['HK']},{'name':_0x13a8b6(0x1611),'utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['HN']},{'name':_0x13a8b6(0x141b),'utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['HT']},{'name':_0x13a8b6(0x7ed),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['HU']},{'name':_0x13a8b6(0x241d),'utcOffset':0x1a4,'offsetStr':_0x13a8b6(0x1a6e),'countries':['ID']},{'name':_0x13a8b6(0x27f0),'utcOffset':0x1a4,'offsetStr':_0x13a8b6(0x1a6e),'countries':['ID']},{'name':_0x13a8b6(0x1545),'utcOffset':0x1e0,'offsetStr':_0x13a8b6(0x2996),'countries':['ID']},{'name':'Asia/Jayapura','utcOffset':0x21c,'offsetStr':_0x13a8b6(0x2575),'countries':['ID']},{'name':_0x13a8b6(0x2850),'utcOffset':0x0,'offsetStr':'+00:00','countries':['IE']},{'name':_0x13a8b6(0x280c),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['IL']},{'name':'Asia/Kolkata','utcOffset':0x14a,'offsetStr':_0x13a8b6(0x2386),'countries':['IN']},{'name':_0x13a8b6(0xc21),'utcOffset':0x168,'offsetStr':_0x13a8b6(0xf9d),'countries':['IO']},{'name':_0x13a8b6(0x26e8),'utcOffset':0xb4,'offsetStr':_0x13a8b6(0x4de),'countries':['IQ']},{'name':_0x13a8b6(0xce3),'utcOffset':0xd2,'offsetStr':'+03:30','countries':['IR']},{'name':_0x13a8b6(0x5e8),'utcOffset':0x0,'offsetStr':'+00:00','countries':['IS']},{'name':_0x13a8b6(0x3fd),'utcOffset':0x3c,'offsetStr':_0x13a8b6(0x1701),'countries':['IT','SM','VA']},{'name':_0x13a8b6(0xb28),'utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['JM']},{'name':_0x13a8b6(0x2058),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['JO']},{'name':_0x13a8b6(0x818),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['JP']},{'name':_0x13a8b6(0x2270),'utcOffset':0xb4,'offsetStr':_0x13a8b6(0x4de),'countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},{'name':'Asia/Bishkek','utcOffset':0x168,'offsetStr':'+06:00','countries':['KG']},{'name':_0x13a8b6(0xe9b),'utcOffset':0x2d0,'offsetStr':_0x13a8b6(0xf9b),'countries':['KI']},{'name':_0x13a8b6(0x8f6),'utcOffset':0x30c,'offsetStr':_0x13a8b6(0x12f8),'countries':['KI']},{'name':_0x13a8b6(0x1fa),'utcOffset':0x348,'offsetStr':_0x13a8b6(0x27c7),'countries':['KI']},{'name':_0x13a8b6(0x152e),'utcOffset':0x1fe,'offsetStr':_0x13a8b6(0x20ba),'countries':['KP']},{'name':_0x13a8b6(0x215b),'utcOffset':0x21c,'offsetStr':_0x13a8b6(0x2575),'countries':['KR']},{'name':_0x13a8b6(0x1888),'utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['KY']},{'name':_0x13a8b6(0x1b2f),'utcOffset':0x168,'offsetStr':_0x13a8b6(0xf9d),'countries':['KZ']},{'name':_0x13a8b6(0x6f1),'utcOffset':0x168,'offsetStr':_0x13a8b6(0xf9d),'countries':['KZ']},{'name':_0x13a8b6(0x1e43),'utcOffset':0x12c,'offsetStr':_0x13a8b6(0xe95),'countries':['KZ']},{'name':_0x13a8b6(0x2713),'utcOffset':0x12c,'offsetStr':_0x13a8b6(0xe95),'countries':['KZ']},{'name':_0x13a8b6(0x1b96),'utcOffset':0x12c,'offsetStr':_0x13a8b6(0xe95),'countries':['KZ']},{'name':_0x13a8b6(0x44f),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['LB']},{'name':_0x13a8b6(0xa83),'utcOffset':0x14a,'offsetStr':_0x13a8b6(0x2386),'countries':['LK']},{'name':'Africa/Monrovia','utcOffset':0x0,'offsetStr':'+00:00','countries':['LR']},{'name':_0x13a8b6(0x400),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['LT']},{'name':_0x13a8b6(0x58d),'utcOffset':0x3c,'offsetStr':_0x13a8b6(0x1701),'countries':['LU']},{'name':_0x13a8b6(0x1ab9),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['LV']},{'name':_0x13a8b6(0x8f3),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['LY']},{'name':_0x13a8b6(0x1135),'utcOffset':0x0,'offsetStr':_0x13a8b6(0xde5),'countries':['MA']},{'name':_0x13a8b6(0x257b),'utcOffset':0x3c,'offsetStr':_0x13a8b6(0x1701),'countries':['MC']},{'name':_0x13a8b6(0x194f),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['MD']},{'name':'Pacific/Majuro','utcOffset':0x2d0,'offsetStr':_0x13a8b6(0xf9b),'countries':['MH']},{'name':_0x13a8b6(0x26c7),'utcOffset':0x2d0,'offsetStr':_0x13a8b6(0xf9b),'countries':['MH']},{'name':'Asia/Rangoon','utcOffset':0x186,'offsetStr':_0x13a8b6(0x288b),'countries':['MM']},{'name':_0x13a8b6(0x1b5d),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MN']},{'name':_0x13a8b6(0x1e60),'utcOffset':0x1a4,'offsetStr':_0x13a8b6(0x1a6e),'countries':['MN']},{'name':'Asia/Choibalsan','utcOffset':0x1e0,'offsetStr':_0x13a8b6(0x2996),'countries':['MN']},{'name':_0x13a8b6(0x1c6b),'utcOffset':0x1e0,'offsetStr':_0x13a8b6(0x2996),'countries':['MO']},{'name':_0x13a8b6(0x8cb),'utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['MQ']},{'name':_0x13a8b6(0x20c1),'utcOffset':0x3c,'offsetStr':_0x13a8b6(0x1701),'countries':['MT']},{'name':_0x13a8b6(0x1e73),'utcOffset':0xf0,'offsetStr':_0x13a8b6(0x1ea0),'countries':['MU']},{'name':_0x13a8b6(0x6f5),'utcOffset':0x12c,'offsetStr':_0x13a8b6(0xe95),'countries':['MV']},{'name':_0x13a8b6(0x1e58),'utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['MX']},{'name':_0x13a8b6(0x18cd),'utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['MX']},{'name':_0x13a8b6(0x1627),'utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['MX']},{'name':_0x13a8b6(0x732),'utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['MX']},{'name':_0x13a8b6(0x2094),'utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['MX']},{'name':'America/Mazatlan','utcOffset':-0x1a4,'offsetStr':_0x13a8b6(0x253),'countries':['MX']},{'name':'America/Chihuahua','utcOffset':-0x1a4,'offsetStr':_0x13a8b6(0x253),'countries':['MX']},{'name':_0x13a8b6(0x13b0),'utcOffset':-0x1a4,'offsetStr':_0x13a8b6(0x253),'countries':['MX']},{'name':_0x13a8b6(0x1122),'utcOffset':-0x1a4,'offsetStr':_0x13a8b6(0x253),'countries':['MX']},{'name':_0x13a8b6(0x17f2),'utcOffset':-0x1e0,'offsetStr':_0x13a8b6(0x1877),'countries':['MX']},{'name':'America/Santa_Isabel','utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['MX']},{'name':_0x13a8b6(0xec9),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},{'name':_0x13a8b6(0xa9b),'utcOffset':0x1e0,'offsetStr':_0x13a8b6(0x2996),'countries':['MY']},{'name':_0x13a8b6(0x2381),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MY']},{'name':_0x13a8b6(0x777),'utcOffset':0x78,'offsetStr':'+02:00','countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},{'name':_0x13a8b6(0x258c),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['NA']},{'name':_0x13a8b6(0x17a9),'utcOffset':0x294,'offsetStr':_0x13a8b6(0xac0),'countries':['NC']},{'name':_0x13a8b6(0x1dc5),'utcOffset':0x294,'offsetStr':'+11:00','countries':['NF']},{'name':'Africa/Lagos','utcOffset':0x3c,'offsetStr':_0x13a8b6(0x1701),'countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},{'name':_0x13a8b6(0x1253),'utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['NI']},{'name':_0x13a8b6(0x16ec),'utcOffset':0x3c,'offsetStr':_0x13a8b6(0x1701),'countries':['NL']},{'name':_0x13a8b6(0x3cf),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['NO','SJ']},{'name':_0x13a8b6(0xb5d),'utcOffset':0x159,'offsetStr':_0x13a8b6(0x23cf),'countries':['NP']},{'name':_0x13a8b6(0x14df),'utcOffset':0x2d0,'offsetStr':_0x13a8b6(0xf9b),'countries':['NR']},{'name':_0x13a8b6(0x25c1),'utcOffset':-0x294,'offsetStr':_0x13a8b6(0x1673),'countries':['NU']},{'name':_0x13a8b6(0x1e16),'utcOffset':0x30c,'offsetStr':'+13:00','countries':['NZ','AQ']},{'name':_0x13a8b6(0x539),'utcOffset':0x339,'offsetStr':_0x13a8b6(0x24a8),'countries':['NZ']},{'name':_0x13a8b6(0x4c4),'utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['PA']},{'name':_0x13a8b6(0x18c5),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['PE']},{'name':_0x13a8b6(0xfe6),'utcOffset':-0x258,'offsetStr':_0x13a8b6(0x241a),'countries':['PF']},{'name':_0x13a8b6(0x18c),'utcOffset':-0x23a,'offsetStr':'-09:30','countries':['PF']},{'name':_0x13a8b6(0x2638),'utcOffset':-0x21c,'offsetStr':_0x13a8b6(0xb68),'countries':['PF']},{'name':_0x13a8b6(0x10f0),'utcOffset':0x258,'offsetStr':'+10:00','countries':['PG']},{'name':'Pacific/Bougainville','utcOffset':0x294,'offsetStr':_0x13a8b6(0xac0),'countries':['PG']},{'name':'Asia/Manila','utcOffset':0x1e0,'offsetStr':_0x13a8b6(0x2996),'countries':['PH']},{'name':_0x13a8b6(0x1e85),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['PK']},{'name':_0x13a8b6(0x63e),'utcOffset':0x3c,'offsetStr':_0x13a8b6(0x1701),'countries':['PL']},{'name':'America/Miquelon','utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['PM']},{'name':_0x13a8b6(0x23c9),'utcOffset':-0x1e0,'offsetStr':_0x13a8b6(0x1877),'countries':['PN']},{'name':_0x13a8b6(0x206f),'utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['PR']},{'name':'Asia/Gaza','utcOffset':0x78,'offsetStr':'+02:00','countries':['PS']},{'name':'Asia/Hebron','utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['PS']},{'name':_0x13a8b6(0xc14),'utcOffset':0x0,'offsetStr':'+00:00','countries':['PT']},{'name':_0x13a8b6(0x1367),'utcOffset':0x0,'offsetStr':_0x13a8b6(0xde5),'countries':['PT']},{'name':'Atlantic/Azores','utcOffset':-0x3c,'offsetStr':_0x13a8b6(0x57d),'countries':['PT']},{'name':_0x13a8b6(0xd81),'utcOffset':0x21c,'offsetStr':_0x13a8b6(0x2575),'countries':['PW']},{'name':'America/Asuncion','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['PY']},{'name':'Asia/Qatar','utcOffset':0xb4,'offsetStr':_0x13a8b6(0x4de),'countries':['QA','BH']},{'name':_0x13a8b6(0x1073),'utcOffset':0xf0,'offsetStr':_0x13a8b6(0x1ea0),'countries':['RE','TF']},{'name':_0x13a8b6(0x18b7),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['RO']},{'name':_0x13a8b6(0x6bf),'utcOffset':0x3c,'offsetStr':_0x13a8b6(0x1701),'countries':['RS','BA','HR','ME','MK','SI']},{'name':'Europe/Kaliningrad','utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['RU']},{'name':'Europe/Moscow','utcOffset':0xb4,'offsetStr':_0x13a8b6(0x4de),'countries':['RU']},{'name':'Europe/Simferopol','utcOffset':0xb4,'offsetStr':_0x13a8b6(0x4de),'countries':['RU']},{'name':_0x13a8b6(0x1036),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},{'name':_0x13a8b6(0x268d),'utcOffset':0xf0,'offsetStr':_0x13a8b6(0x1ea0),'countries':['RU']},{'name':'Asia/Yekaterinburg','utcOffset':0x12c,'offsetStr':_0x13a8b6(0xe95),'countries':['RU']},{'name':_0x13a8b6(0x26a3),'utcOffset':0x168,'offsetStr':'+06:00','countries':['RU']},{'name':_0x13a8b6(0x2402),'utcOffset':0x168,'offsetStr':'+06:00','countries':['RU']},{'name':'Asia/Novokuznetsk','utcOffset':0x1a4,'offsetStr':_0x13a8b6(0x1a6e),'countries':['RU']},{'name':_0x13a8b6(0x2db),'utcOffset':0x1a4,'offsetStr':_0x13a8b6(0x1a6e),'countries':['RU']},{'name':_0x13a8b6(0x28a4),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['RU']},{'name':_0x13a8b6(0xafa),'utcOffset':0x1e0,'offsetStr':_0x13a8b6(0x2996),'countries':['RU']},{'name':_0x13a8b6(0x2919),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['RU']},{'name':_0x13a8b6(0x2636),'utcOffset':0x21c,'offsetStr':_0x13a8b6(0x2575),'countries':['RU']},{'name':_0x13a8b6(0x1604),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},{'name':_0x13a8b6(0x1df5),'utcOffset':0x258,'offsetStr':_0x13a8b6(0xeb2),'countries':['RU']},{'name':_0x13a8b6(0x169),'utcOffset':0x258,'offsetStr':_0x13a8b6(0xeb2),'countries':['RU']},{'name':_0x13a8b6(0x10db),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},{'name':_0x13a8b6(0x21c3),'utcOffset':0x294,'offsetStr':_0x13a8b6(0xac0),'countries':['RU']},{'name':_0x13a8b6(0x2eb),'utcOffset':0x2d0,'offsetStr':_0x13a8b6(0xf9b),'countries':['RU']},{'name':_0x13a8b6(0x10ee),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['RU']},{'name':_0x13a8b6(0x1fa1),'utcOffset':0xb4,'offsetStr':_0x13a8b6(0x4de),'countries':['SA','KW','YE']},{'name':_0x13a8b6(0x14a8),'utcOffset':0x294,'offsetStr':_0x13a8b6(0xac0),'countries':['SB']},{'name':_0x13a8b6(0x2298),'utcOffset':0xf0,'offsetStr':_0x13a8b6(0x1ea0),'countries':['SC']},{'name':'Africa/Khartoum','utcOffset':0xb4,'offsetStr':_0x13a8b6(0x4de),'countries':['SD','SS']},{'name':'Europe/Stockholm','utcOffset':0x3c,'offsetStr':_0x13a8b6(0x1701),'countries':['SE']},{'name':_0x13a8b6(0x3e1),'utcOffset':0x1e0,'offsetStr':_0x13a8b6(0x2996),'countries':['SG']},{'name':'America/Paramaribo','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['SR']},{'name':'America/El_Salvador','utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['SV']},{'name':_0x13a8b6(0xc48),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['SY']},{'name':_0x13a8b6(0x1771),'utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['TC']},{'name':_0x13a8b6(0x1f12),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['TD']},{'name':_0x13a8b6(0x315),'utcOffset':0x12c,'offsetStr':_0x13a8b6(0xe95),'countries':['TF']},{'name':_0x13a8b6(0x6b8),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['TH','KH','LA','VN']},{'name':_0x13a8b6(0x2910),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['TJ']},{'name':_0x13a8b6(0x17c9),'utcOffset':0x30c,'offsetStr':_0x13a8b6(0x12f8),'countries':['TK']},{'name':_0x13a8b6(0x929),'utcOffset':0x21c,'offsetStr':_0x13a8b6(0x2575),'countries':['TL']},{'name':_0x13a8b6(0x125b),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['TM']},{'name':_0x13a8b6(0x13fb),'utcOffset':0x3c,'offsetStr':_0x13a8b6(0x1701),'countries':['TN']},{'name':_0x13a8b6(0x1817),'utcOffset':0x30c,'offsetStr':'+13:00','countries':['TO']},{'name':_0x13a8b6(0x94c),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['TR']},{'name':_0x13a8b6(0xd26),'utcOffset':-0xf0,'offsetStr':_0x13a8b6(0x1711),'countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},{'name':_0x13a8b6(0x7b1),'utcOffset':0x2d0,'offsetStr':_0x13a8b6(0xf9b),'countries':['TV']},{'name':_0x13a8b6(0xe70),'utcOffset':0x1e0,'offsetStr':_0x13a8b6(0x2996),'countries':['TW']},{'name':_0x13a8b6(0x2265),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['UA']},{'name':_0x13a8b6(0xa42),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['UA']},{'name':'Europe/Zaporozhye','utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},{'name':_0x13a8b6(0xef1),'utcOffset':0x2d0,'offsetStr':_0x13a8b6(0xf9b),'countries':['UM']},{'name':_0x13a8b6(0xa2d),'utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['US']},{'name':_0x13a8b6(0x79d),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0x13a8b6(0x24a7),'utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['US']},{'name':'America/Kentucky/Monticello','utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['US']},{'name':_0x13a8b6(0x371),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':'America/Indiana/Vincennes','utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['US']},{'name':_0x13a8b6(0x19f3),'utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['US']},{'name':'America/Indiana/Marengo','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0x13a8b6(0x984),'utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['US']},{'name':_0x13a8b6(0x2ee),'utcOffset':-0x12c,'offsetStr':_0x13a8b6(0xa62),'countries':['US']},{'name':_0x13a8b6(0x866),'utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['US']},{'name':'America/Indiana/Tell_City','utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0x13a8b6(0x17b7),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0x13a8b6(0x11d7),'utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['US']},{'name':_0x13a8b6(0x749),'utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['US']},{'name':_0x13a8b6(0xede),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':'America/North_Dakota/Beulah','utcOffset':-0x168,'offsetStr':_0x13a8b6(0x17e1),'countries':['US']},{'name':_0x13a8b6(0x5cc),'utcOffset':-0x1a4,'offsetStr':_0x13a8b6(0x253),'countries':['US']},{'name':'America/Boise','utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},{'name':_0x13a8b6(0x200e),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},{'name':_0x13a8b6(0x18a7),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['US']},{'name':_0x13a8b6(0x59c),'utcOffset':-0x1e0,'offsetStr':_0x13a8b6(0x1877),'countries':['US']},{'name':'America/Anchorage','utcOffset':-0x21c,'offsetStr':_0x13a8b6(0xb68),'countries':['US']},{'name':_0x13a8b6(0x1e9d),'utcOffset':-0x21c,'offsetStr':_0x13a8b6(0xb68),'countries':['US']},{'name':_0x13a8b6(0x1065),'utcOffset':-0x21c,'offsetStr':_0x13a8b6(0xb68),'countries':['US']},{'name':_0x13a8b6(0x1cd8),'utcOffset':-0x21c,'offsetStr':_0x13a8b6(0xb68),'countries':['US']},{'name':_0x13a8b6(0x151c),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},{'name':'America/Adak','utcOffset':-0x258,'offsetStr':'-10:00','countries':['US']},{'name':_0x13a8b6(0x21be),'utcOffset':-0x258,'offsetStr':_0x13a8b6(0x241a),'countries':['US','UM']},{'name':'America/Montevideo','utcOffset':-0xb4,'offsetStr':_0x13a8b6(0x1c9b),'countries':['UY']},{'name':_0x13a8b6(0xac7),'utcOffset':0x12c,'offsetStr':_0x13a8b6(0xe95),'countries':['UZ']},{'name':_0x13a8b6(0x63b),'utcOffset':0x12c,'offsetStr':_0x13a8b6(0xe95),'countries':['UZ']},{'name':_0x13a8b6(0x98e),'utcOffset':-0x10e,'offsetStr':'-04:30','countries':['VE']},{'name':_0x13a8b6(0x278e),'utcOffset':0x1a4,'offsetStr':_0x13a8b6(0x1a6e),'countries':['VN']},{'name':'Pacific/Efate','utcOffset':0x294,'offsetStr':_0x13a8b6(0xac0),'countries':['VU']},{'name':_0x13a8b6(0xc0c),'utcOffset':0x2d0,'offsetStr':_0x13a8b6(0xf9b),'countries':['WF']},{'name':_0x13a8b6(0x623),'utcOffset':0x348,'offsetStr':_0x13a8b6(0x27c7),'countries':['WS']},{'name':_0x13a8b6(0x1dcb),'utcOffset':0x78,'offsetStr':_0x13a8b6(0x8be),'countries':['ZA','LS','SZ']}];}],'templateUrl':_0x1bb52b};}const _0x5d8cf2=_0x32c9d8;;function _0x4c0298(){const _0x59515c=_0x5537c6,_0x4f3e2d=this;_0x4f3e2d[_0x59515c(0x1c99)]=[],_0x4f3e2d[_0x59515c(0x1ef)]=![],_0x4f3e2d[_0x59515c(0x41d)]=0x14;function _0x244ce6(_0xa936e){const _0x5447d0=_0x59515c;let _0x150859=0x0;if(_0xa936e){_0x4f3e2d['fontSize']=_0xa936e[_0x5447d0(0x13f4)][0x2]&&_0xa936e[_0x5447d0(0x13f4)][0x2][_0x5447d0(0x327)]?parseInt(_0xa936e[_0x5447d0(0x13f4)][0x2][_0x5447d0(0x327)])-parseInt(_0xa936e[_0x5447d0(0x13f4)][0x2][_0x5447d0(0x327)])%0x2:0x14;_0xa936e['attrs'][0x1][_0x5447d0(0x327)]&&_0xa936e[_0x5447d0(0x13f4)][0x1][_0x5447d0(0x327)][_0x5447d0(0xfd0)]?(_0x4f3e2d[_0x5447d0(0x1ef)]=!![],_0x4f3e2d[_0x5447d0(0x1c99)]=_0x39641b()[_0x5447d0(0x1b3)](_0xa936e[_0x5447d0(0x246a)],_0xa936e[_0x5447d0(0x13f4)][0x1][_0x5447d0(0x327)])):(_0x4f3e2d[_0x5447d0(0x1ef)]=![],_0x4f3e2d[_0x5447d0(0x1c99)]=_0xa936e[_0x5447d0(0x246a)]);for(let _0x78223c=0x0;_0x78223c<_0xa936e[_0x5447d0(0x278a)][_0x5447d0(0x2214)][_0x5447d0(0xfd0)];_0x78223c+=0x1){_0x39641b()[_0x5447d0(0x250a)](_0x4f3e2d[_0x5447d0(0x1c99)],_0xa936e[_0x5447d0(0x278a)]['rows'][_0x78223c]['id'])&&(_0x150859+=_0xa936e['voiceQueues'][_0x5447d0(0x2214)][_0x78223c][_0xa936e[_0x5447d0(0x13f4)][0x0][_0x5447d0(0x327)]]?parseInt(_0xa936e['voiceQueues'][_0x5447d0(0x2214)][_0x78223c][_0xa936e[_0x5447d0(0x13f4)][0x0][_0x5447d0(0x327)]]):0x0);}}return _0x150859;}_0x4f3e2d[_0x59515c(0x9b8)]=_0x244ce6;}const _0x1feb78=_0x4c0298;;_0x25a582[_0x5537c6(0x15b6)]=['$translate'];function _0x25a582(_0x1b35e1){const _0x40e10d=_0x5537c6,_0x15ea2b=this;_0x15ea2b[_0x40e10d(0x1c99)]=[],_0x15ea2b[_0x40e10d(0x1ef)]=![],_0x15ea2b[_0x40e10d(0x238b)]=[],_0x15ea2b[_0x40e10d(0x9d6)]={'labels':[_0x40e10d(0x3b8)],'series':[_0x40e10d(0x1ad4)],'data':[[0x32]],'options':{'responsive':!![],'legend':{'display':!![],'fontColor':_0x40e10d(0x20fc)},'scales':{'xAxes':[{'gridLines':{'display':!![]},'ticks':{'fontColor':_0x40e10d(0x20fc),'stepSize':0x1,'beginAtZero':!![]}}],'yAxes':[{'gridLines':{'display':![]},'ticks':{'fontColor':'#2196f3'}}]}}};function _0x7c4ae5(_0xa0f5bc){const _0x44ade4=_0x40e10d;_0x15ea2b[_0x44ade4(0x238b)]=_0x39641b()[_0x44ade4(0x1de2)](_0x39641b()[_0x44ade4(0x1c99)](_0xa0f5bc[_0x44ade4(0x13f4)],function(_0x43a626){const _0x338d7f=_0x44ade4;return _0x43a626[_0x338d7f(0x16b6)]&&_0x43a626[_0x338d7f(0x16b6)]['indexOf'](_0x338d7f(0x18f5))>=0x0&&_0x43a626[_0x338d7f(0x327)]&&_0x43a626['value']!==_0x338d7f(0xd38);}),_0x44ade4(0x327));_0xa0f5bc[_0x44ade4(0x13f4)][0x3][_0x44ade4(0x327)]&&_0xa0f5bc[_0x44ade4(0x13f4)][0x3]['value'][_0x44ade4(0xfd0)]?(_0x15ea2b['filtered']=!![],_0x15ea2b[_0x44ade4(0x1c99)]=_0x39641b()[_0x44ade4(0x1b3)](_0xa0f5bc[_0x44ade4(0x246a)],_0xa0f5bc[_0x44ade4(0x13f4)][0x3][_0x44ade4(0x327)])):(_0x15ea2b[_0x44ade4(0x1ef)]=![],_0x15ea2b[_0x44ade4(0x1c99)]=_0xa0f5bc['voiceQueuesSelected']);if(_0x15ea2b[_0x44ade4(0x9d6)][_0x44ade4(0x14d0)][_0x44ade4(0xfd0)]>_0x15ea2b[_0x44ade4(0x238b)][_0x44ade4(0xfd0)]){const _0x1497bc=_0x15ea2b[_0x44ade4(0x9d6)][_0x44ade4(0x14d0)][_0x44ade4(0xfd0)]-_0x15ea2b[_0x44ade4(0x238b)]['length'];_0x15ea2b[_0x44ade4(0x9d6)][_0x44ade4(0x14d0)]['splice'](0x0,_0x1497bc),_0x15ea2b['multiBarChart']['data']['splice'](0x0,_0x1497bc);}for(let _0x494ad5=0x0;_0x494ad5<_0x15ea2b['properties'][_0x44ade4(0xfd0)];_0x494ad5+=0x1){_0x15ea2b[_0x44ade4(0x9d6)]['series'][_0x494ad5]=_0x1b35e1[_0x44ade4(0x25cc)]('TOOLS.'+_0x15ea2b[_0x44ade4(0x238b)][_0x494ad5][_0x44ade4(0x2335)]());_0x39641b()[_0x44ade4(0x958)](_0x15ea2b[_0x44ade4(0x9d6)][_0x44ade4(0x25c)][_0x494ad5])&&(_0x15ea2b['multiBarChart']['data'][_0x494ad5]=[]);if(_0x15ea2b['multiBarChart'][_0x44ade4(0x1837)][_0x44ade4(0xfd0)]>_0x15ea2b[_0x44ade4(0x1c99)][_0x44ade4(0xfd0)]){const _0x10633d=_0x15ea2b[_0x44ade4(0x9d6)][_0x44ade4(0x1837)][_0x44ade4(0xfd0)]-_0x15ea2b[_0x44ade4(0x1c99)][_0x44ade4(0xfd0)];_0x15ea2b[_0x44ade4(0x9d6)][_0x44ade4(0x1837)][_0x44ade4(0x159c)](0x0,_0x10633d),_0x15ea2b[_0x44ade4(0x9d6)][_0x44ade4(0x25c)][_0x494ad5][_0x44ade4(0x159c)](0x0,_0x10633d);}for(let _0x30a977=0x0,_0x801c60=0x0;_0x30a977<_0xa0f5bc[_0x44ade4(0x278a)][_0x44ade4(0x2214)][_0x44ade4(0xfd0)];_0x30a977+=0x1){_0x39641b()[_0x44ade4(0x250a)](_0x15ea2b['filter'],_0xa0f5bc[_0x44ade4(0x278a)][_0x44ade4(0x2214)][_0x30a977]['id'])&&(_0x15ea2b[_0x44ade4(0x9d6)][_0x44ade4(0x1837)][_0x801c60]=_0xa0f5bc[_0x44ade4(0x278a)][_0x44ade4(0x2214)][_0x30a977][_0x44ade4(0x16b6)],_0x15ea2b[_0x44ade4(0x9d6)][_0x44ade4(0x25c)][_0x494ad5][_0x801c60]=_0xa0f5bc[_0x44ade4(0x278a)][_0x44ade4(0x2214)][_0x30a977][_0x15ea2b[_0x44ade4(0x238b)][_0x494ad5]]?parseInt(_0xa0f5bc[_0x44ade4(0x278a)]['rows'][_0x30a977][_0x15ea2b[_0x44ade4(0x238b)][_0x494ad5]]):0x0,_0x801c60+=0x1);}}}function _0x3cef3e(_0x122694){const _0x2b2d1d=_0x40e10d;_0x15ea2b[_0x2b2d1d(0x9d6)][_0x2b2d1d(0x2224)][_0x2b2d1d(0x1458)]['fontColor']=_0x122694[_0x2b2d1d(0x1eb2)];for(let _0x1a7c88=0x0;_0x1a7c88<_0x15ea2b[_0x2b2d1d(0x9d6)][_0x2b2d1d(0x2224)][_0x2b2d1d(0x27a8)][_0x2b2d1d(0x2456)][_0x2b2d1d(0xfd0)];_0x1a7c88+=0x1){_0x15ea2b[_0x2b2d1d(0x9d6)]['options']['scales']['xAxes'][_0x1a7c88][_0x2b2d1d(0x1bbb)][_0x2b2d1d(0x26fb)]=_0x122694['foreground'];}for(let _0x50a8a2=0x0;_0x50a8a2<_0x15ea2b[_0x2b2d1d(0x9d6)]['options']['scales']['yAxes'][_0x2b2d1d(0xfd0)];_0x50a8a2+=0x1){_0x15ea2b[_0x2b2d1d(0x9d6)][_0x2b2d1d(0x2224)][_0x2b2d1d(0x27a8)]['yAxes'][_0x50a8a2][_0x2b2d1d(0x1bbb)]['fontColor']=_0x122694['foreground'];}}function _0x19fdce(_0x10b57c){const _0x3eec1c=_0x40e10d;_0x10b57c&&(_0x10b57c['attrs']&&_0x7c4ae5(_0x10b57c),_0x10b57c[_0x3eec1c(0x1eb2)]&&_0x3cef3e(_0x10b57c));}_0x15ea2b[_0x40e10d(0x71f)]=_0x19fdce;}const _0x2602ac=_0x25a582;;_0xa61b49[_0x5537c6(0x15b6)]=[_0x5537c6(0x1ae)];function _0xa61b49(_0x532bcf){const _0xa6faeb=_0x5537c6,_0x4b65a0=this;_0x4b65a0['filter']=[],_0x4b65a0[_0xa6faeb(0x1ef)]=![],_0x4b65a0[_0xa6faeb(0x238b)]=[],_0x4b65a0[_0xa6faeb(0x1a89)]={'labels':[_0xa6faeb(0x16dd)],'data':[0x1e],'options':{'responsive':!![],'legend':{'display':!![]}}};function _0x212421(_0xcd22c6){const _0x3346d9=_0xa6faeb;_0x4b65a0['properties']=_0x39641b()[_0x3346d9(0x1de2)](_0x39641b()['filter'](_0xcd22c6[_0x3346d9(0x13f4)],function(_0x3c9b31){const _0x10c890=_0x3346d9;return _0x3c9b31['name']&&_0x3c9b31[_0x10c890(0x16b6)][_0x10c890(0xd8a)]('attrSerie')>=0x0&&_0x3c9b31[_0x10c890(0x327)]&&_0x3c9b31[_0x10c890(0x327)]!==_0x10c890(0xd38);}),_0x3346d9(0x327));_0xcd22c6[_0x3346d9(0x13f4)][0x3][_0x3346d9(0x327)]&&_0xcd22c6[_0x3346d9(0x13f4)][0x3][_0x3346d9(0x327)][_0x3346d9(0xfd0)]?(_0x4b65a0['filtered']=!![],_0x4b65a0[_0x3346d9(0x1c99)]=_0x39641b()['intersection'](_0xcd22c6['voiceQueuesSelected'],_0xcd22c6[_0x3346d9(0x13f4)][0x3][_0x3346d9(0x327)])):(_0x4b65a0[_0x3346d9(0x1ef)]=![],_0x4b65a0[_0x3346d9(0x1c99)]=_0xcd22c6['voiceQueuesSelected']);if(_0x4b65a0['pieChart'][_0x3346d9(0x1837)]['length']>_0x4b65a0[_0x3346d9(0x238b)][_0x3346d9(0xfd0)]){const _0x196e17=_0x4b65a0[_0x3346d9(0x1a89)][_0x3346d9(0x1837)][_0x3346d9(0xfd0)]-_0x4b65a0[_0x3346d9(0x238b)][_0x3346d9(0xfd0)];_0x4b65a0[_0x3346d9(0x1a89)][_0x3346d9(0x1837)][_0x3346d9(0x159c)](0x0,_0x196e17),_0x4b65a0[_0x3346d9(0x1a89)][_0x3346d9(0x25c)][_0x3346d9(0x159c)](0x0,_0x196e17);}for(let _0x33837a=0x0,_0x47344b=0x0;_0x33837a<_0x4b65a0[_0x3346d9(0x238b)]['length'];_0x33837a+=0x1){_0x4b65a0['pieChart'][_0x3346d9(0x1837)][_0x33837a]=_0x532bcf[_0x3346d9(0x25cc)](_0x3346d9(0xfd1)+_0x4b65a0['properties'][_0x33837a][_0x3346d9(0x2335)]());for(let _0x2840e8=0x0;_0x2840e8<_0xcd22c6[_0x3346d9(0x278a)][_0x3346d9(0x2214)][_0x3346d9(0xfd0)];_0x2840e8+=0x1){_0x39641b()[_0x3346d9(0x250a)](_0x4b65a0[_0x3346d9(0x1c99)],_0xcd22c6[_0x3346d9(0x278a)]['rows'][_0x2840e8]['id'])&&(_0x47344b+=_0xcd22c6[_0x3346d9(0x278a)][_0x3346d9(0x2214)][_0x2840e8][_0x4b65a0[_0x3346d9(0x238b)][_0x33837a]]?parseInt(_0xcd22c6[_0x3346d9(0x278a)][_0x3346d9(0x2214)][_0x2840e8][_0x4b65a0['properties'][_0x33837a]]):0x0);}_0x4b65a0[_0x3346d9(0x1a89)][_0x3346d9(0x25c)][_0x33837a]=_0x47344b,_0x47344b=0x0;}}function _0x3fee62(_0x54155a){const _0x51cfe9=_0xa6faeb;_0x4b65a0[_0x51cfe9(0x1a89)]['options'][_0x51cfe9(0x1458)][_0x51cfe9(0x26fb)]=_0x54155a[_0x51cfe9(0x1eb2)];}function _0x18bbe8(_0x109cc6){const _0x1a2b92=_0xa6faeb;_0x109cc6&&(_0x109cc6[_0x1a2b92(0x13f4)]&&_0x212421(_0x109cc6),_0x109cc6[_0x1a2b92(0x1eb2)]&&_0x3fee62(_0x109cc6));}_0x4b65a0[_0xa6faeb(0x1e46)]=_0x18bbe8;}const _0x4b8278=_0xa61b49;;_0x9a70b2[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2168),_0x5537c6(0x1714),_0x5537c6(0x142b)];function _0x9a70b2(_0x14fb21,_0x1a855b,_0x4575da,_0x353bc9){const _0x347d28=_0x5537c6,_0x2c6824=this;_0x2c6824[_0x347d28(0x1a74)]=0x0,_0x2c6824[_0x347d28(0x576)]=0x0,_0x2c6824[_0x347d28(0x1386)]='',_0x2c6824[_0x347d28(0x1b1)]=[],_0x2c6824[_0x347d28(0x2872)]={'rows':[],'count':0x0},_0x2c6824[_0x347d28(0xae2)]={'limit':0xa,'page':0x1,'startDate':_0x543b5a()()[_0x347d28(0x1be0)]('day')[_0x347d28(0x1f31)]('YYYY-MM-DD\x20HH:mm:ss'),'endDate':_0x543b5a()()['endOf']('day')[_0x347d28(0x1f31)](_0x347d28(0x2e8)),'output':_0x347d28(0x152f)},_0x2c6824[_0x347d28(0x1a34)]=_0x35d559,_0x2c6824[_0x347d28(0x2041)]=_0x2abdb9,_0x2c6824['valueReplacer']=_0x5de978;function _0x35d559(_0x2d90e1){const _0x554e01=_0x347d28;_0x2d90e1&&(_0x2d90e1[_0x554e01(0x13f4)]&&(_0x2d90e1['attrs'][0x0]&&_0x2d90e1[_0x554e01(0x13f4)][0x0][_0x554e01(0x327)]&&(_0x2c6824[_0x554e01(0xae2)]['id']=_0x2d90e1[_0x554e01(0x13f4)][0x0][_0x554e01(0x327)],_0x353bc9['analyticFieldReport']['get']({'fields':_0x554e01(0x1831),'nolimit':!![],'DefaultReportId':_0x2d90e1[_0x554e01(0x13f4)][0x0][_0x554e01(0x66a)]===_0x554e01(0x24c8)?_0x2d90e1[_0x554e01(0x13f4)][0x0][_0x554e01(0x327)]:undefined,'CustomReportId':_0x2d90e1[_0x554e01(0x13f4)][0x0][_0x554e01(0x66a)]==='custom'?_0x2d90e1['attrs'][0x0]['value']:undefined})[_0x554e01(0x1d77)][_0x554e01(0x1cb0)](function(_0x21054c){const _0x5aafa6=_0x554e01;_0x21054c&&_0x21054c[_0x5aafa6(0x2214)]&&(_0x2c6824['columns']=_0x21054c[_0x5aafa6(0x2214)]);switch(_0x2d90e1[_0x5aafa6(0x13f4)][0x0][_0x5aafa6(0x66a)]){case _0x5aafa6(0x24c8):_0x2c6824['reportRoute']=_0x5aafa6(0x1f0c);break;case _0x5aafa6(0x197c):_0x2c6824[_0x5aafa6(0x1feb)]=_0x5aafa6(0x1e32);break;}return _0x353bc9[_0x2c6824['reportRoute']][_0x5aafa6(0xbf7)]({'id':_0x2d90e1['attrs'][0x0][_0x5aafa6(0x327)],'fields':_0x5aafa6(0x43c)})[_0x5aafa6(0x1d77)];})[_0x554e01(0x1cb0)](function(_0xe1c51e){const _0x59e78e=_0x554e01;_0xe1c51e&&_0xe1c51e['name']&&(_0x2c6824[_0x59e78e(0x1386)]=_0xe1c51e[_0x59e78e(0x16b6)]),_0x2abdb9();})['catch'](function(_0x5265d0){const _0x329d15=_0x554e01;console[_0x329d15(0x1b4f)](_0x5265d0);})),_0x2d90e1[_0x554e01(0x13f4)][0x1]&&_0x2d90e1[_0x554e01(0x13f4)][0x1]['value']&&(_0x2c6824[_0x554e01(0x576)]=parseInt(_0x2d90e1['attrs'][0x1][_0x554e01(0x327)]),!_0x39641b()['isNaN'](_0x2c6824['refresh'])&&_0x2c6824[_0x554e01(0x576)]>0x0?(_0x2c6824[_0x554e01(0x1a74)]=parseInt(_0x2d90e1[_0x554e01(0x13f4)][0x1][_0x554e01(0x327)]),_0x2c6824['interval']=_0x4575da(function(){_0x2c6824['countDown']-=0x1;},0x3e8,0x0),_0x2c6824[_0x554e01(0x1719)]=_0x1a855b(function(){const _0x2f76a7=_0x554e01;_0x2c6824['interval']&&_0x4575da[_0x2f76a7(0x696)](_0x2c6824[_0x2f76a7(0x1ac8)]),_0x35d559(_0x2d90e1);},_0x2c6824['refresh']*0x3e8)):(_0x2c6824[_0x554e01(0x1ac8)]&&_0x4575da['cancel'](_0x2c6824['interval']),_0x2c6824[_0x554e01(0x1719)]&&_0x1a855b['cancel'](_0x2c6824[_0x554e01(0x1719)])))));}function _0x309315(_0x43f145){const _0x5dd0c4=_0x347d28;_0x2c6824[_0x5dd0c4(0x2872)]=_0x43f145||{'count':0x0,'rows':[]};}function _0x2abdb9(){const _0x38727e=_0x347d28;_0x2c6824[_0x38727e(0xae2)][_0x38727e(0x184b)]=(_0x2c6824['query'][_0x38727e(0x1c7b)]-0x1)*_0x2c6824[_0x38727e(0xae2)]['limit'],_0x2c6824['promise']=_0x353bc9[_0x2c6824[_0x38727e(0x1feb)]]['run'](_0x2c6824[_0x38727e(0xae2)],_0x309315)['$promise'];}function _0x5de978(_0x160a0d,_0x4e744c){const _0x149307=_0x347d28;return _0x543b5a()(_0x4e744c,_0x149307(0x2963),!![])[_0x149307(0x1a4f)]()&&(_0x4e744c=_0x543b5a()(_0x4e744c,'')[_0x149307(0x1f31)](_0x149307(0x2e8))),_0x4e744c;}_0x14fb21[_0x347d28(0x1d6)](_0x347d28(0x291c),function(){const _0x3e1c47=_0x347d28;_0x2c6824[_0x3e1c47(0x1ac8)]&&_0x4575da[_0x3e1c47(0x696)](_0x2c6824[_0x3e1c47(0x1ac8)]),_0x2c6824[_0x3e1c47(0x1719)]&&_0x1a855b['cancel'](_0x2c6824[_0x3e1c47(0x1719)]);});}const _0x35403c=_0x9a70b2;;const _0x2d4f0b=_0x5074a3['p']+_0x5537c6(0x1883);;_0x41ee88[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$sce'];function _0x41ee88(_0x3c785d,_0x377135){const _0x433dd9=_0x5537c6,_0x52863a=this;function _0x27b58a(_0x58d1dc){return _0x377135['trustAsResourceUrl'](_0x58d1dc);}_0x52863a[_0x433dd9(0xee2)]=_0x27b58a;}function _0x322e8f(){const _0x2a8d78=_0x5537c6;return{'restrict':'E','scope':{'config':'=?','onEdit':'&?','onDelete':'&?'},'require':_0x2a8d78(0x1281),'controller':_0x2a8d78(0x1c66),'controllerAs':'vm','bindToController':!![],'templateUrl':_0x2d4f0b};};_0x2481e8[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2086)];function _0x2481e8(_0x16e4be,_0x3d97f6){const _0x1e4e5f=this;_0x1e4e5f['flipped']=![];function _0x29d1ef(){const _0x4d8269=a0_0x5cbd;return angular[_0x4d8269(0x13b8)](_0x16e4be[_0x4d8269(0x8d8)])&&_0x16e4be[_0x4d8269(0x8d8)]===!![];}function _0x3d4584(){const _0x4915d1=a0_0x5cbd;if(!_0x29d1ef())return;_0x1e4e5f[_0x4915d1(0x70b)]=!_0x1e4e5f[_0x4915d1(0x70b)],_0x3d97f6['toggleClass'](_0x4915d1(0x70b),_0x1e4e5f[_0x4915d1(0x70b)]);}_0x1e4e5f['flip']=_0x3d4584;}function _0x53a558(){const _0x4d5c46=_0x5537c6;return{'restrict':'E','scope':{'flippable':'=?'},'controller':_0x4d5c46(0x1f68),'transclude':!![],'compile':function(_0x5c4244){const _0x431516=_0x4d5c46;return _0x5c4244[_0x431516(0x1390)](_0x431516(0x248a)),function _0x5bdd7b(_0x4f82d3,_0x4848ae,_0x12d6e8,_0x407779,_0x2feb4c){_0x2feb4c(function(_0x31f4f3){const _0xa70adb=a0_0x5cbd;_0x4848ae['empty'](),_0x4848ae[_0xa70adb(0x207)](_0x31f4f3);});};}};}function _0x4337a6(){return{'restrict':'E','require':'^msWidget','transclude':!![],'compile':function(_0x48a2e7){const _0x5294eb=a0_0x5cbd;return _0x48a2e7[_0x5294eb(0x1390)](_0x5294eb(0xd22)),function _0x5d3cfc(_0x20d771,_0x18bce5,_0x524423,_0x21a63b,_0x211f85){const _0x231c3a=_0x5294eb;_0x211f85(function(_0x1cfa8d){const _0x5d6d15=a0_0x5cbd;_0x18bce5[_0x5d6d15(0x999)](),_0x18bce5[_0x5d6d15(0x207)](_0x1cfa8d);}),_0x20d771['flipWidget']=_0x21a63b[_0x231c3a(0xe36)];};}};}function _0x3bf636(){const _0x2f234c=_0x5537c6;return{'restrict':'E','require':_0x2f234c(0x533),'transclude':!![],'compile':function(_0x3bc074){const _0x33c5bf=_0x2f234c;return _0x3bc074[_0x33c5bf(0x1390)](_0x33c5bf(0x293a)),function _0x22b9d2(_0x1f8d14,_0x420ecb,_0x573413,_0x10b112,_0x43a514){const _0xb08935=_0x33c5bf;_0x43a514(function(_0xaa7322){const _0x48656b=a0_0x5cbd;_0x420ecb[_0x48656b(0x999)](),_0x420ecb[_0x48656b(0x207)](_0xaa7322);}),_0x1f8d14[_0xb08935(0x170a)]=_0x10b112[_0xb08935(0xe36)];};}};};const _0x16d575=[[_0x5537c6(0xd91),_0x4efee2,_0x5537c6(0x2838)],[_0x5537c6(0x2744),_0x3ec407,_0x5537c6(0x2838)],[_0x5537c6(0x24d0),_0x456434,_0x5537c6(0x2838)],['msCard',_0x14d377,_0x5537c6(0x2838)],[_0x5537c6(0x1c1),_0x548aa5,_0x5537c6(0x2838)],[_0x5537c6(0x761),_0x2fd365,'directive'],[_0x5537c6(0x1741),_0x409d80,_0x5537c6(0x12ab)],[_0x5537c6(0x1066),_0x57daa2,_0x5537c6(0x2838)],[_0x5537c6(0x3df),_0x46b5e5,_0x5537c6(0x2838)],[_0x5537c6(0x2345),_0x13cb50,_0x5537c6(0x2838)],[_0x5537c6(0x18d5),_0x16b45c,_0x5537c6(0x2838)],[_0x5537c6(0x1a3b),_0x208d4f,_0x5537c6(0x2838)],['MsFormWizardController',_0x4cfc03,'controller'],[_0x5537c6(0x116b),_0x175461,_0x5537c6(0x2838)],[_0x5537c6(0x1318),_0x2502d5,_0x5537c6(0x2838)],[_0x5537c6(0x2120),_0xd73a71,_0x5537c6(0x2838)],[_0x5537c6(0xbdb),_0x269382,'controller'],[_0x5537c6(0xb0d),_0x16844a,_0x5537c6(0x2838)],[_0x5537c6(0xf04),_0x586a62,'directive'],[_0x5537c6(0x1ed7),_0x507ef3,_0x5537c6(0x6e5)],[_0x5537c6(0xa24),_0xdfcbe,_0x5537c6(0x2838)],[_0x5537c6(0x19e3),_0xfb5a53,_0x5537c6(0x234a)],[_0x5537c6(0x1a4d),_0x106bf5,_0x5537c6(0x2838)],[_0x5537c6(0x1a04),_0x1ad03f,_0x5537c6(0x6e5)],[_0x5537c6(0x2099),_0x218766,_0x5537c6(0x2838)],['msNavTitle',_0x54f830,'directive'],[_0x5537c6(0x122b),_0x5080b5,_0x5537c6(0x2838)],[_0x5537c6(0x1cb6),_0x1f475c,'directive'],['msNavigationService',_0x18cedb,_0x5537c6(0x12ab)],[_0x5537c6(0x798),_0x47987c,'controller'],[_0x5537c6(0x1ac6),_0x12da17,_0x5537c6(0x2838)],['MsNavigationNodeController',_0x4ecc2c,_0x5537c6(0x6e5)],[_0x5537c6(0x1dde),_0x1312ec,_0x5537c6(0x2838)],[_0x5537c6(0x1508),_0xefa6b9,_0x5537c6(0x2838)],['msNavigationHorizontal',_0x2e8f96,_0x5537c6(0x2838)],[_0x5537c6(0xf8f),_0xd43ca7,_0x5537c6(0x6e5)],[_0x5537c6(0x75a),_0x52f023,_0x5537c6(0x2838)],[_0x5537c6(0xdf8),_0x55043b,_0x5537c6(0x2838)],[_0x5537c6(0x26c8),_0x5071e2,_0x5537c6(0x6e5)],['msPhonebar',_0x1281b0,_0x5537c6(0x2838)],['PrefixDialogController',_0x16c60d,'controller'],['msBlink',_0x46e2f1,_0x5537c6(0x2838)],['RecordDialogController',_0x48a7ac,_0x5537c6(0x6e5)],[_0x5537c6(0x131f),_0x4f9b81,_0x5537c6(0x6e5)],[_0x5537c6(0x2726),_0x1f55eb,_0x5537c6(0x6e5)],['msQuickFilter',_0x865f24,_0x5537c6(0x2838)],[_0x5537c6(0x22b2),_0x2e61e6,'factory'],[_0x5537c6(0xd67),_0x2005a5,_0x5537c6(0x2838)],['msRecording',_0x4edd0e,_0x5537c6(0x2838)],[_0x5537c6(0x5ab),_0xee8a18,_0x5537c6(0x2838)],[_0x5537c6(0x24e9),_0x9ea280,_0x5537c6(0x12ab)],[_0x5537c6(0x1459),_0x4da3b8,_0x5537c6(0x2838)],[_0x5537c6(0x18ca),_0x40f09c,_0x5537c6(0x6e5)],[_0x5537c6(0x2d2),_0x42bda6,_0x5537c6(0x2838)],[_0x5537c6(0x2bd),_0x1d41f6,_0x5537c6(0x6e5)],[_0x5537c6(0x2428),_0x381089,_0x5537c6(0x2838)],[_0x5537c6(0x278b),_0xfa7d65,'directive'],[_0x5537c6(0xe78),_0x5bd385,_0x5537c6(0x2838)],[_0x5537c6(0x17f),_0x4f81b6,_0x5537c6(0x6e5)],[_0x5537c6(0x1b97),_0x140e79,'directive'],[_0x5537c6(0x529),_0x5f03da,_0x5537c6(0x2838)],[_0x5537c6(0x275f),_0x534b53,_0x5537c6(0x2838)],[_0x5537c6(0x85c),_0x2acdd8,_0x5537c6(0x2838)],[_0x5537c6(0x68e),_0x39dfc9,_0x5537c6(0x6e5)],[_0x5537c6(0x20c8),_0x253fbd,_0x5537c6(0x2838)],[_0x5537c6(0x157a),_0x1e610f,'controller'],['msTimeline',_0x2b81d6,_0x5537c6(0x2838)],['msTimelineItem',_0x1f2ccf,_0x5537c6(0x2838)],[_0x5537c6(0x176b),_0x2c7ac9,_0x5537c6(0x2838)],[_0x5537c6(0x5fd),_0x5d8cf2,_0x5537c6(0x2838)],['MsWidgetEngineCounterController',_0x1feb78,_0x5537c6(0x6e5)],[_0x5537c6(0x15c1),_0x2602ac,'controller'],[_0x5537c6(0x1db3),_0x4b8278,'controller'],[_0x5537c6(0x9df),_0x35403c,_0x5537c6(0x6e5)],[_0x5537c6(0x1c66),_0x41ee88,_0x5537c6(0x6e5)],['msWidgetEngine',_0x322e8f,'directive'],[_0x5537c6(0x1f68),_0x2481e8,'controller'],[_0x5537c6(0xde0),_0x53a558,_0x5537c6(0x2838)],[_0x5537c6(0xa66),_0x4337a6,'directive'],[_0x5537c6(0x10d8),_0x3bf636,_0x5537c6(0x2838)]],_0x1c74f0=_0x16d575;;_0x1666e2[_0x5537c6(0x15b6)]=['$q','$translate'];function _0x1666e2(_0x312772,_0x4c5cf7){function _0x421e8b(_0x94a33a){let _0x20736f;return _0x312772(function(_0x50dbef){const _0x47bd4c=a0_0x5cbd;try{if(_0x39641b()['isEmpty'](_0x94a33a[_0x47bd4c(0x2171)]))_0x20736f=_0x4c5cf7[_0x47bd4c(0x25cc)]('DASHBOARDS.NONE');else{if(_0x39641b()[_0x47bd4c(0xce9)](_0x94a33a[_0x47bd4c(0x94b)]))_0x20736f=_0x94a33a[_0x47bd4c(0x161f)]?_0x4c5cf7[_0x47bd4c(0x25cc)](_0x94a33a['placeholder']):_0x4c5cf7[_0x47bd4c(0x25cc)](_0x47bd4c(0xd05));else{if(_0x94a33a[_0x47bd4c(0x94b)]['length']===_0x94a33a[_0x47bd4c(0x2171)][_0x47bd4c(0xfd0)])_0x20736f=_0x4c5cf7[_0x47bd4c(0x25cc)](_0x47bd4c(0x2706));else{const _0xf49823=_0x94a33a[_0x47bd4c(0x1581)]||'id';_0x20736f=_0x39641b()(_0x94a33a[_0x47bd4c(0x2171)])[_0x47bd4c(0x1c99)](function(_0x423630){const _0x15eb34=_0x47bd4c;return _0x39641b()[_0x15eb34(0x250a)](_0x94a33a[_0x15eb34(0x94b)],_0x423630[_0xf49823]);})['map'](_0x47bd4c(0x16b6))[_0x47bd4c(0x327)]()[_0x47bd4c(0x1f66)](',\x20');}}}_0x50dbef(_0x20736f);}catch(_0x1bcebd){console[_0x47bd4c(0x1b4f)](_0x47bd4c(0x286b),_0x1bcebd),_0x50dbef(null);}});}const _0x4308ab={'setPlaceholder':_0x421e8b};return _0x4308ab;}const _0x5ac8b0=_0x1666e2;;function _0x323768(){return function(_0x2c959b){const _0x2b19ad=a0_0x5cbd,_0x334dc7=Date[_0x2b19ad(0x27c)]()-new Date(_0x2c959b);if(_0x334dc7<0x3c*0x3c*0x3e8)return _0x543b5a()(_0x2c959b)[_0x2b19ad(0x1224)]();else{if(_0x334dc7<0x3c*0x3c*0x18*0x3e8)return _0x543b5a()(_0x2c959b)['format'](_0x2b19ad(0x1ed6));else return _0x334dc7<0x3c*0x3c*0x18*0x7*0x3e8?_0x543b5a()(_0x2c959b)[_0x2b19ad(0x1f31)]('dddd'):_0x543b5a()(_0x2c959b)[_0x2b19ad(0x5e3)]();}};}const _0xba8f6c=_0x323768;;_0x53f8c5[_0x5537c6(0x15b6)]=[_0x5537c6(0x254f)];function _0x53f8c5(_0x4eef89){return function(_0x3d2090){const _0x3800e0=a0_0x5cbd;return _0x4eef89[_0x3800e0(0xdfc)](_0x3d2090);};}function _0x2ae272(){return function(_0xba532){return String(_0xba532)['replace'](/<[^>]+>/gm,'');};}function _0x227ac6(){return function(_0x365fed){return!_0x365fed?'':_0x365fed['replace'](/ /g,'');};}function _0x3bd467(){return function(_0x46654a){const _0x376618=a0_0x5cbd;if(!_0x46654a)return;if(_0x46654a['type']==='directive')return _0x46654a[_0x376618(0x16b6)][_0x376618(0x288f)](/([A-Z])/g,function(_0x14b0ea){const _0x4be8cf=_0x376618;return'-'+_0x14b0ea[_0x4be8cf(0x1680)]();});return _0x46654a[_0x376618(0x10f8)]||_0x46654a[_0x376618(0x16b6)];};};function _0x2a8941(){return function(_0x403e08){const _0x5b1751=a0_0x5cbd;if(!_0x403e08)return'';return _0x39641b()[_0x5b1751(0x432)](_0x403e08);};}const _0x396905=_0x2a8941;;function _0x3e36be(){return function(_0x7e2dec,_0x56790e){const _0x479e89=a0_0x5cbd;if(_0x7e2dec[_0x479e89(0xfd0)]===0x0||!_0x56790e)return _0x7e2dec;if(_0x56790e['length']===0x0)return[];const _0x309446=[];for(let _0x27ca7e=0x0;_0x27ca7e<_0x7e2dec[_0x479e89(0xfd0)];_0x27ca7e++){const _0x1f52b5=_0x7e2dec[_0x27ca7e];let _0x4ac9f9=![];for(let _0x298dc4=0x0;_0x298dc4<_0x56790e[_0x479e89(0xfd0)];_0x298dc4++){const _0x36e2f4=_0x56790e[_0x298dc4];if(_0x1f52b5['id']===_0x36e2f4){_0x4ac9f9=!![];break;}}_0x4ac9f9&&_0x309446['push'](_0x1f52b5);}return _0x309446;};}const _0x51f5d9=_0x3e36be;;function _0x3fecdb(){return function(_0x88f42e,_0x40246f,_0x266fda){const _0x3e636e=a0_0x5cbd;if(_0x88f42e[_0x3e636e(0xfd0)]===0x0||!_0x266fda||_0x266fda[_0x3e636e(0xfd0)]===0x0)return _0x88f42e;const _0x1aa62a=[];for(let _0xdc11b0=0x0;_0xdc11b0<_0x88f42e[_0x3e636e(0xfd0)];_0xdc11b0++){const _0x283fbb=_0x88f42e[_0xdc11b0];let _0x478403=![];for(let _0x3c7983=0x0;_0x3c7983<_0x266fda[_0x3e636e(0xfd0)];_0x3c7983++){const _0x35feed=_0x266fda[_0x3c7983];if(_0x283fbb[_0x40246f][_0x3e636e(0xd8a)](_0x35feed)>-0x1){_0x478403=!![];break;}}_0x478403&&_0x1aa62a['push'](_0x283fbb);}return _0x1aa62a;};}const _0x6b0ce7=_0x3fecdb;;function _0x6dfd52(){return function(_0xf4dfa0){const _0x5bb2b8=a0_0x5cbd;if(!_0xf4dfa0)return'';return _0x39641b()[_0x5bb2b8(0x1097)](_0xf4dfa0);};}const _0x12f0e0=_0x6dfd52;;function _0xdfd0f0(){return function(_0x4daa86){if(!_0x4daa86)return'';return _0x39641b()['startCase'](_0x4daa86);};}const _0xa5603f=_0xdfd0f0;;function _0x65840f(){return function(_0x4c83f5,_0x59d34b){const _0x1a0234=a0_0x5cbd;if(_0x4c83f5[_0x1a0234(0xfd0)]===0x0||_0x59d34b[_0x1a0234(0xfd0)]===0x0)return _0x4c83f5;const _0x3ae530=[];return _0x4c83f5[_0x1a0234(0xf90)](function(_0x3788fa){const _0x235fd3=_0x1a0234,_0x2749a2=_0x59d34b['every'](function(_0x16e2a1){const _0xf1f81b=a0_0x5cbd;let _0x499953=![];return _0x3788fa[_0xf1f81b(0xfbf)][_0xf1f81b(0xf90)](function(_0x2c7ca3){if(_0x2c7ca3['name']===_0x16e2a1['name']){_0x499953=!![];return;}}),_0x499953;});_0x2749a2&&_0x3ae530[_0x235fd3(0x2785)](_0x3788fa);}),_0x3ae530;};}function _0xe460d7(){return function(_0x502a57,_0x1713b9){const _0x1b2198=a0_0x5cbd;if(_0x502a57[_0x1b2198(0xfd0)]===0x0||_0x1713b9[_0x1b2198(0xfd0)]===0x0)return;if(_0x502a57[_0x1b2198(0xfd0)]<_0x1713b9[_0x1b2198(0xfd0)])return[];const _0x1d5005=[],_0x4ccecb=_0x1713b9['every'](function(_0x1ed4f7){const _0x1c72cf=_0x1b2198;let _0x359d7c=![];return _0x502a57[_0x1c72cf(0xf90)](function(_0x48729f){const _0x12d7b3=_0x1c72cf;if(_0x48729f['name']===_0x1ed4f7[_0x12d7b3(0x16b6)]){_0x359d7c=!![];return;}}),_0x359d7c;});return _0x4ccecb&&_0x1d5005[_0x1b2198(0x2785)](_0x502a57),_0x1d5005;};};class _0x212475{constructor(_0x3ff2cc,_0x2429e7,_0xd4da31,_0x2b1602){const _0xa740fc=_0x5537c6;this['id']=Math[_0xa740fc(0x47f)]()[_0xa740fc(0x147f)](0x24)[_0xa740fc(0x2371)](0x2,0xf)+Math['random']()['toString'](0x24)[_0xa740fc(0x2371)](0x2,0xf),this[_0xa740fc(0x1386)]=_0x3ff2cc,this[_0xa740fc(0x1ed9)]=_0x2429e7,this[_0xa740fc(0xb60)]=_0xd4da31,this[_0xa740fc(0x988)]=_0x2b1602,this[_0xa740fc(0xf3b)]=_0x13594f;}}function _0x44247c(){const _0x21d874=_0x5537c6;return!(window[_0x21d874(0x1db8)][_0x21d874(0x3f8)]||window[_0x21d874(0x1db8)]['mozHidden']||window['document'][_0x21d874(0x1e3b)]);}function _0x449a14(){const _0x3cd732=_0x5537c6;return/Chrome/[_0x3cd732(0x26a1)](navigator[_0x3cd732(0x28d)])&&/Google Inc/[_0x3cd732(0x26a1)](navigator[_0x3cd732(0x1c2f)]);}function _0x13594f(){const _0x2dee7c=_0x5537c6,_0xd362fc=this;navigator[_0x2dee7c(0x561)][_0x2dee7c(0x26cf)][_0x2dee7c(0x1cb0)](function(_0x4c35a3){const _0x58b60d=_0x2dee7c;_0x4c35a3[_0x58b60d(0x192e)]()[_0x58b60d(0x1cb0)](function(_0x19b999){const _0x14ddec=_0x58b60d,_0x3e3fcd=_0x39641b()['find'](_0x19b999,function(_0x243cf0){const _0x34bd7a=a0_0x5cbd;return _0x243cf0[_0x34bd7a(0x25c)]['id']===_0xd362fc['id'];});_0x3e3fcd&&_0x3e3fcd[_0x14ddec(0xf3b)]();});});}function _0x10e26c(){return{'$get':[_0x51b87a]};function _0x51b87a(){const _0x34ff11=a0_0x5cbd,_0x2dfd93=[];let _0x184af9,_0x1f4d31;return _0x34ff11(0x561)in navigator&&_0x449a14()?navigator['serviceWorker'][_0x34ff11(0x21f1)]('service-worker.js')[_0x34ff11(0x1cb0)](function(_0x338736){const _0x3c1cd6=_0x34ff11;_0x184af9=_0x338736,_0x184af9['update']();if(_0x184af9['installing'])_0x1f4d31=_0x184af9[_0x3c1cd6(0x2997)];else{if(_0x184af9[_0x3c1cd6(0x26b6)])_0x1f4d31=_0x184af9['waiting'];else _0x184af9[_0x3c1cd6(0x1a4b)]&&(_0x1f4d31=_0x184af9[_0x3c1cd6(0x1a4b)]);}})[_0x34ff11(0x1c4)](function(_0x45a189){const _0x3e541f=_0x34ff11;console[_0x3e541f(0x218e)](_0x3e541f(0x143a),_0x45a189);}):console[_0x34ff11(0x218e)]('Service\x20Worker\x20is\x20not\x20supported'),navigator[_0x34ff11(0x561)]['addEventListener'](_0x34ff11(0x155e),function(_0x40ef07){const _0x3175f9=_0x34ff11;if(_0x40ef07['source']!==_0x1f4d31)return;const _0x1350f5=_0x39641b()[_0x3175f9(0x13b4)](_0x2dfd93,{'id':_0x40ef07[_0x3175f9(0x25c)]['id']});if(_0x1350f5)switch(_0x40ef07[_0x3175f9(0x25c)][_0x3175f9(0x269a)]){case'accept':_0x1350f5[_0x3175f9(0xb60)]&&_0x1350f5[_0x3175f9(0xb60)]();break;case _0x3175f9(0x988):_0x1350f5[_0x3175f9(0x988)]&&_0x1350f5[_0x3175f9(0x988)]();break;default:}}),{'create':function(_0x1a9016,_0x57524b,_0x2d320b,_0x1905b5,_0x2bec66){return new Promise(function(_0x27eae0,_0x4aa325){const _0x2a3ee5=a0_0x5cbd;let _0x198182;_0x449a14()&&!_0x44247c()?(_0x198182=new _0x212475(_0x1a9016||_0x2a3ee5(0x3fb),_0x57524b||'MyBody',_0x1905b5,_0x2bec66),_0x2dfd93[_0x2a3ee5(0x2785)](_0x198182),_0x198182?window[_0x2a3ee5(0x1e22)][_0x2a3ee5(0x1248)]()[_0x2a3ee5(0x1cb0)](function(_0x5b9a50){const _0x2b2191=_0x2a3ee5;if(_0x5b9a50===_0x2b2191(0x1780))return _0x184af9[_0x2b2191(0xbb0)](_0x198182[_0x2b2191(0x1386)],{'body':_0x198182[_0x2b2191(0x1ed9)],'requireInteraction':!![],'icon':_0x2d320b||_0x2b2191(0x87c),'data':{'id':_0x198182['id']},'actions':[{'action':_0x2b2191(0xb60),'title':'Accept'},{'action':_0x2b2191(0x988),'title':_0x2b2191(0x951)}]});})['then'](function(){_0x27eae0(_0x198182);})['catch'](function(_0x5b974d){_0x4aa325(_0x5b974d);}):_0x4aa325(new Error('Notification\x20creating\x20error'))):_0x27eae0();});}};}}const _0x584ad6=_0x10e26c;;_0x51589d[_0x5537c6(0x15b6)]=['$q',_0x5537c6(0x1a21),_0x5537c6(0x142b)];function _0x51589d(_0xdf4776,_0x39dd93,_0x4fcce8){const _0x128198={'resolve':_0x2a173e};return _0x128198;function _0x2a173e(_0x33a824,_0xa007fa){const _0x495dd4=a0_0x5cbd,_0x38a1e4=_0x33a824['split']('@'),_0x47a8a2=_0x38a1e4[0x0],_0x1df081=_0x38a1e4[0x1],_0x48b164=_0xa007fa||{};if(!_0x47a8a2||!_0x1df081)return _0x39dd93[_0x495dd4(0x218e)]('apiResolver.resolve\x20requires\x20correct\x20action\x20parameter\x20(ResourceName@methodName)'),![];const _0x3d9897=_0xdf4776['defer'](),_0x172a92=_0x31799f(_0x47a8a2);return!_0x172a92?(_0x39dd93[_0x495dd4(0x218e)](_0x495dd4(0xcd0)+_0x47a8a2+_0x495dd4(0x1ad9)),_0x3d9897[_0x495dd4(0x988)]('Resource\x20\x22'+_0x47a8a2+_0x495dd4(0x1ad9))):_0x172a92[_0x1df081](_0x48b164,function(_0x21f3ce){_0x3d9897['resolve'](_0x21f3ce);},function(_0x1cb5e3){const _0xfe35dc=_0x495dd4;_0x3d9897[_0xfe35dc(0x988)](_0x1cb5e3);}),_0x3d9897[_0x495dd4(0x2061)];}function _0x31799f(_0x289c3f){const _0x379895=a0_0x5cbd,_0x53f42f=_0x289c3f[_0x379895(0xbe1)]('.');let _0x391f5c=_0x4fcce8;for(let _0x1974a7=0x0;_0x1974a7<_0x53f42f['length'];_0x1974a7++){if(angular['isUndefined'](_0x391f5c[_0x53f42f[_0x1974a7]])){_0x39dd93['error'](_0x379895(0x1a36)+_0x53f42f[_0x1974a7]+_0x379895(0x6bb)),_0x391f5c=![];break;}_0x391f5c=_0x391f5c[_0x53f42f[_0x1974a7]];}if(!_0x391f5c)return![];return _0x391f5c;}}const _0x51139b=_0x51589d;;_0x102d65[_0x5537c6(0x15b6)]=[_0x5537c6(0x1196)];function _0x102d65(_0x277fd1){function _0x764233(){const _0x1a48c7=a0_0x5cbd;_0x277fd1[_0x1a48c7(0x1055)]=!![];}function _0x441cdc(){const _0x18ad55=a0_0x5cbd;_0x277fd1[_0x18ad55(0x1055)]=![];}const _0x3debb5={'showLoadingIndicator':_0x764233,'hideLoadingIndicator':_0x441cdc};return _0x3debb5;}const _0x452b06=_0x102d65;;function _0x47b8c9(){const _0xc9dd1a=_0x5537c6,_0x1eedcb=this,_0x226fc1=angular[_0xc9dd1a(0x1da7)](['ng'])[_0xc9dd1a(0xbf7)](_0xc9dd1a(0x1a21));let _0x5187ce='';const _0x25e955=[];_0x1eedcb[_0xc9dd1a(0x2a5)]=_0x3cdb7c,_0x1eedcb[_0xc9dd1a(0x58a)]=_0x411609,_0x1eedcb['getApiObject']=_0x312944,_0x1eedcb[_0xc9dd1a(0x21f1)]=_0x1f083c;function _0x3cdb7c(_0x1ebf31){_0x5187ce=_0x1ebf31;}function _0x411609(){return _0x5187ce;}function _0x312944(){return _0x25e955;}function _0x1f083c(_0x5b45bd,_0x362a75){const _0x25cfbd=_0xc9dd1a;if(!angular[_0x25cfbd(0x28e2)](_0x5b45bd)){_0x226fc1[_0x25cfbd(0x218e)](_0x25cfbd(0xd98));return;}if(!angular[_0x25cfbd(0x216b)](_0x362a75)){_0x226fc1['error'](_0x25cfbd(0x773));return;}_0x25e955[_0x5b45bd]={'url':_0x5187ce+(_0x362a75[0x0]||''),'paramDefaults':_0x362a75[0x1]||[],'actions':_0x362a75[0x2]||[],'options':_0x362a75[0x3]||{}};}this['$get']=function(_0xe5fc8,_0x16d108,_0x47a188,_0x29406d){const _0x43cdaa={'setBaseUrl':_0x3cdb7c,'getBaseUrl':_0x411609,'register':_0x1f083c,'resolve':_0x3493f4,'request':_0x4b2bdb};return _0x43cdaa;function _0x3493f4(_0x153b7b,_0x4a1887){const _0x3bd564=a0_0x5cbd;_0x29406d[_0x3bd564(0x692)]('msApi::resolveStart');const _0x2c6911=_0x153b7b[_0x3bd564(0xbe1)]('@'),_0x2c48cf=_0x2c6911[0x0],_0x2d2dad=_0x2c6911[0x1],_0x23d3f7=_0x4a1887||{};if(!_0x2c48cf||!_0x2d2dad)return _0xe5fc8[_0x3bd564(0x218e)]('msApi.resolve\x20requires\x20correct\x20action\x20parameter\x20(resourceName@methodName)'),![];const _0x4263d3=_0x16d108[_0x3bd564(0x11f4)](),_0x343cc7=_0x25e955[_0x2c48cf];if(!_0x343cc7)_0xe5fc8[_0x3bd564(0x218e)](_0x3bd564(0xcd0)+_0x2c48cf+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!'),_0x4263d3[_0x3bd564(0x988)](_0x3bd564(0xcd0)+_0x2c48cf+_0x3bd564(0x1ad9));else{const _0x3110d0=_0x47a188(_0x343cc7[_0x3bd564(0x135b)],_0x343cc7[_0x3bd564(0xea0)],_0x343cc7[_0x3bd564(0x1ae1)],_0x343cc7[_0x3bd564(0x2224)]);_0x3110d0[_0x2d2dad](_0x23d3f7,function(_0x3f9114){const _0x496c41=_0x3bd564;_0x4263d3[_0x496c41(0x19a3)](_0x3f9114),_0x29406d['$broadcast'](_0x496c41(0x1a70));},function(_0x19fffa){const _0x5cabf=_0x3bd564;_0x4263d3[_0x5cabf(0x988)](_0x19fffa),_0x29406d['$broadcast']('msApi::resolveError');});}return _0x4263d3[_0x3bd564(0x2061)];}function _0x4b2bdb(_0x5f02c6,_0x42b41f,_0x1e7edc,_0x3b518e){const _0x3daa11=a0_0x5cbd;_0x29406d[_0x3daa11(0x692)](_0x3daa11(0x1be9));const _0x425910=_0x5f02c6[_0x3daa11(0xbe1)]('@'),_0x3a77c5=_0x425910[0x0],_0x4c1737=_0x425910[0x1],_0x394af1=_0x42b41f||{};if(!_0x3a77c5||!_0x4c1737)return _0xe5fc8[_0x3daa11(0x218e)](_0x3daa11(0x19f6)),![];const _0x1648de=_0x16d108[_0x3daa11(0x11f4)](),_0x44c9cb=_0x25e955[_0x3a77c5];if(!_0x44c9cb)_0xe5fc8[_0x3daa11(0x218e)](_0x3daa11(0xcd0)+_0x3a77c5+_0x3daa11(0x1ad9)),_0x1648de[_0x3daa11(0x988)](_0x3daa11(0xcd0)+_0x3a77c5+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!');else{const _0x7540ad=_0x47a188(_0x44c9cb[_0x3daa11(0x135b)],_0x44c9cb[_0x3daa11(0xea0)],_0x44c9cb[_0x3daa11(0x1ae1)],_0x44c9cb['options']);_0x7540ad[_0x4c1737](_0x394af1,function(_0x1c5e3e){const _0x6772e6=_0x3daa11;_0x29406d['$broadcast'](_0x6772e6(0x3c7)),_0x1648de[_0x6772e6(0x19a3)](_0x1c5e3e),angular['isDefined'](_0x1e7edc)&&angular[_0x6772e6(0x1e2c)](_0x1e7edc)&&_0x1e7edc(_0x1c5e3e);},function(_0x7eca5f){const _0x404f93=_0x3daa11;_0x29406d[_0x404f93(0x692)](_0x404f93(0x2ac)),_0x1648de[_0x404f93(0x988)](_0x7eca5f),angular[_0x404f93(0x13b8)](_0x3b518e)&&angular[_0x404f93(0x1e2c)](_0x3b518e)&&_0x3b518e(_0x7eca5f);});}return _0x1648de[_0x3daa11(0x2061)];}};}const _0x461f3b=_0x47b8c9;var _0x2fa1fb=_0x5074a3(0x985),_0x14752f=_0x5074a3['n'](_0x2fa1fb);;_0xc78b1e[_0x5537c6(0x15b6)]=['$window'];function _0xc78b1e(_0x502a1b){const _0x3a3a5f=new(_0x14752f())(_0x502a1b['navigator']['userAgent']);let _0x11e988=null;const _0x11effd={'exists':_0xe7cc1,'detectBrowser':_0x12c2a5,'guidGenerator':_0x14bafb,'isMobile':_0x2ed043,'toggleInArray':_0x25e188,'firstLastDayMonth':_0x2e1a25};return _0x11effd;function _0xe7cc1(_0x29b7e0,_0x537109){const _0x59b9c0=a0_0x5cbd;return _0x537109[_0x59b9c0(0xd8a)](_0x29b7e0)>-0x1;}function _0x12c2a5(){const _0x7efd85=a0_0x5cbd;if(_0x11e988)return _0x11e988;const _0x40b172=[{'string':_0x502a1b[_0x7efd85(0x1583)]['userAgent'],'subString':_0x7efd85(0xd45),'versionSearch':_0x7efd85(0xd45),'identity':'Edge'},{'string':_0x502a1b['navigator'][_0x7efd85(0x28d)],'subString':_0x7efd85(0xdb6),'identity':_0x7efd85(0xdb6)},{'string':_0x502a1b['navigator'][_0x7efd85(0x28d)],'subString':_0x7efd85(0x1cc6),'versionSearch':_0x7efd85(0x1cde),'identity':_0x7efd85(0x1cc6)},{'string':_0x502a1b[_0x7efd85(0x1583)]['vendor'],'subString':_0x7efd85(0x1292),'versionSearch':_0x7efd85(0xa6a),'identity':_0x7efd85(0xd93)},{'prop':_0x502a1b[_0x7efd85(0xc24)],'identity':_0x7efd85(0x1d7a)},{'string':_0x502a1b[_0x7efd85(0x1583)][_0x7efd85(0x1c2f)],'subString':_0x7efd85(0xa4e),'identity':_0x7efd85(0xa4e)},{'string':_0x502a1b[_0x7efd85(0x1583)]['vendor'],'subString':'KDE','identity':_0x7efd85(0x2077)},{'string':_0x502a1b['navigator'][_0x7efd85(0x28d)],'subString':'Firefox','identity':'Firefox'},{'string':_0x502a1b[_0x7efd85(0x1583)]['vendor'],'subString':_0x7efd85(0x7fd),'identity':_0x7efd85(0x7fd)},{'string':_0x502a1b[_0x7efd85(0x1583)][_0x7efd85(0x28d)],'subString':_0x7efd85(0x274f),'identity':'Netscape'},{'string':_0x502a1b[_0x7efd85(0x1583)][_0x7efd85(0x28d)],'subString':_0x7efd85(0x1e29),'identity':_0x7efd85(0x12cd),'versionSearch':'MSIE'},{'string':_0x502a1b[_0x7efd85(0x1583)]['userAgent'],'subString':_0x7efd85(0x7a0),'identity':_0x7efd85(0x12cd),'versionSearch':'rv'},{'string':_0x502a1b['navigator'][_0x7efd85(0x28d)],'subString':'Gecko','identity':_0x7efd85(0x2278),'versionSearch':'rv'},{'string':_0x502a1b[_0x7efd85(0x1583)][_0x7efd85(0x28d)],'subString':_0x7efd85(0x2278),'identity':_0x7efd85(0x274f),'versionSearch':_0x7efd85(0x2278)}],_0x143c31=[{'string':_0x502a1b[_0x7efd85(0x1583)][_0x7efd85(0x2291)],'subString':_0x7efd85(0x222b),'identity':'Windows'},{'string':_0x502a1b[_0x7efd85(0x1583)][_0x7efd85(0x2291)],'subString':_0x7efd85(0x1566),'identity':'Mac'},{'string':_0x502a1b['navigator']['platform'],'subString':_0x7efd85(0x1691),'identity':_0x7efd85(0x1691)},{'string':_0x502a1b['navigator'][_0x7efd85(0x2291)],'subString':_0x7efd85(0x435),'identity':_0x7efd85(0x435)},{'string':_0x502a1b[_0x7efd85(0x1583)][_0x7efd85(0x2291)],'subString':_0x7efd85(0x2501),'identity':_0x7efd85(0x2501)},{'string':_0x502a1b[_0x7efd85(0x1583)][_0x7efd85(0x2291)],'subString':_0x7efd85(0xd58),'identity':_0x7efd85(0xd58)},{'string':_0x502a1b[_0x7efd85(0x1583)][_0x7efd85(0x2291)],'subString':_0x7efd85(0x1965),'identity':_0x7efd85(0x1965)}];let _0xc6e108='';function _0x1bcee3(_0x1a85bf){const _0x49b2ee=_0x7efd85;for(let _0x4c2601=0x0;_0x4c2601<_0x1a85bf[_0x49b2ee(0xfd0)];_0x4c2601++){const _0x2a3414=_0x1a85bf[_0x4c2601]['string'],_0x22c5a4=_0x1a85bf[_0x4c2601][_0x49b2ee(0x12e3)];_0xc6e108=_0x1a85bf[_0x4c2601][_0x49b2ee(0xa27)]||_0x1a85bf[_0x4c2601][_0x49b2ee(0x1ab4)];if(_0x2a3414){if(_0x2a3414[_0x49b2ee(0xd8a)](_0x1a85bf[_0x4c2601][_0x49b2ee(0x837)])!==-0x1)return _0x1a85bf[_0x4c2601][_0x49b2ee(0x1ab4)];}else{if(_0x22c5a4)return _0x1a85bf[_0x4c2601]['identity'];}}}function _0x29a640(_0x1baa55){const _0x7ecc31=_0x7efd85,_0x3a0b7d=_0x1baa55[_0x7ecc31(0xd8a)](_0xc6e108);if(_0x3a0b7d===-0x1)return;return parseInt(_0x1baa55[_0x7ecc31(0x2371)](_0x3a0b7d+_0xc6e108[_0x7ecc31(0xfd0)]+0x1));}let _0x383a52=_0x1bcee3(_0x40b172)||_0x7efd85(0x1713),_0x55dbf1=_0x29a640(_0x502a1b[_0x7efd85(0x1583)][_0x7efd85(0x28d)])||_0x29a640(_0x502a1b['navigator']['appVersion'])||'unknown-version',_0x3aef4d=_0x1bcee3(_0x143c31)||_0x7efd85(0x1191);return _0x383a52=_0x383a52[_0x7efd85(0x1680)](),_0x55dbf1=_0x383a52+'-'+_0x55dbf1,_0x3aef4d=_0x3aef4d[_0x7efd85(0x1680)](),_0x11e988={'browser':_0x383a52,'version':_0x55dbf1,'os':_0x3aef4d},_0x11e988;}function _0x14bafb(){const _0x406d4a=function(){const _0x2f7ac1=a0_0x5cbd;return((0x1+Math[_0x2f7ac1(0x47f)]())*0x10000||0x0)[_0x2f7ac1(0x147f)](0x10)[_0x2f7ac1(0x2371)](0x1);};return _0x406d4a()+_0x406d4a()+_0x406d4a()+_0x406d4a()+_0x406d4a()+_0x406d4a();}function _0x2ed043(){const _0x2e5803=a0_0x5cbd;return _0x3a3a5f[_0x2e5803(0x1ce6)]();}function _0x25e188(_0x30d7f9,_0x1e4983){const _0x541399=a0_0x5cbd;_0x1e4983[_0x541399(0xd8a)](_0x30d7f9)===-0x1?_0x1e4983['push'](_0x30d7f9):_0x1e4983[_0x541399(0x159c)](_0x1e4983['indexOf'](_0x30d7f9),0x1);}function _0x2e1a25(){const _0x2c5fff=a0_0x5cbd;return{'$gte':_0x543b5a()()[_0x2c5fff(0x1be0)](_0x2c5fff(0x26ae))['utcOffset'](0x0,!![])['format'](),'$lte':_0x543b5a()()[_0x2c5fff(0x1b4)](_0x2c5fff(0x26ae))[_0x2c5fff(0x17d9)](0x0,!![])['format']()};}}const _0x2e4c82=_0xc78b1e;;const _0x5da100=_0x5074a3['p']+_0x5537c6(0x2360);;_0x155487[_0x5537c6(0x15b6)]=['$mdSidenav'],_0x176f23['$inject']=[_0x5537c6(0x173),_0x5537c6(0x1a62)];function _0x176f23(_0x23c24d,_0x431992){const _0x411b48=_0x5537c6,_0x1805ed=this;_0x1805ed['themes']=_0x431992[_0x411b48(0x1e08)],_0x1805ed['layoutModes']=[{'label':_0x411b48(0x1aef),'value':'boxed'},{'label':_0x411b48(0x2490),'value':'wide'}],_0x1805ed['layoutStyles']=[{'label':_0x411b48(0x1a7b),'value':'verticalNavigation','figure':_0x411b48(0x18c9)},{'label':'Vertical\x20Navigation\x20with\x20Fullwidth\x20Toolbar','value':_0x411b48(0x252c),'figure':'/assets/images/theme-options/vertical-nav-with-full-toolbar.jpg'},{'label':_0x411b48(0x1112),'value':'verticalNavigationFullwidthToolbar2','figure':_0x411b48(0x1ee4)},{'label':_0x411b48(0x200c),'value':_0x411b48(0x1520),'figure':_0x411b48(0x1fba)},{'label':_0x411b48(0x9f0),'value':_0x411b48(0xda6),'figure':_0x411b48(0x283)},{'label':_0x411b48(0x1976),'value':_0x411b48(0x26a4),'figure':_0x411b48(0x2431)}],_0x1805ed[_0x411b48(0x15f3)]=_0x411b48(0x271b),_0x1805ed[_0x411b48(0x476)]=_0x23c24d['get'](_0x411b48(0x1422))||'verticalNavigation',_0x1805ed[_0x411b48(0x7a9)]=_0x550758,_0x1805ed[_0x411b48(0x21bd)]=_0x46446f,_0x1805ed[_0x411b48(0x154d)]=_0x2acd3e,_0x1805ed[_0x411b48(0xb76)]=_0x5eaf79;function _0x550758(_0x4bd099){const _0x386a5a=_0x411b48;_0x431992[_0x386a5a(0x7a9)](_0x4bd099);}function _0x46446f(){const _0x188ae8=_0x411b48;return _0x431992[_0x188ae8(0x1e08)]['active'];}function _0x2acd3e(){const _0x3e1c6a=_0x411b48,_0x45543d=angular[_0x3e1c6a(0x1853)](_0x3e1c6a(0x1ed9));_0x45543d[_0x3e1c6a(0x713)](_0x3e1c6a(0xbdc),_0x1805ed[_0x3e1c6a(0x15f3)]===_0x3e1c6a(0xbdc));}function _0x5eaf79(){const _0x28ec67=_0x411b48;_0x23c24d[_0x28ec67(0x135f)](_0x28ec67(0x1422),_0x1805ed['layoutStyle']),location['reload']();}}function _0x155487(_0x44f69b){const _0x5bd04b=_0x5537c6;return{'restrict':'E','scope':{},'controller':_0x5bd04b(0xeee),'templateUrl':_0x5da100,'compile':function(_0x457753){const _0x274fe3=_0x5bd04b;return _0x457753[_0x274fe3(0x1390)](_0x274fe3(0x2223)),function _0x1e945c(_0x596cdb){const _0x24b96b=_0x274fe3;function _0x387ea0(){const _0xee6a42=a0_0x5cbd;_0x44f69b('motion-theme-options')[_0xee6a42(0x2322)]();}_0x596cdb[_0x24b96b(0x24f3)]=_0x387ea0;};}};};_0xceb377[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x1a21),'motionTheming'];function _0xceb377(_0x5c7d9a,_0xb5ae66,_0x5ded58){const _0x23b129={},_0x2f3b91={'generate':_0x53cdba,'rgba':_0x1051f9};return _0x2f3b91;function _0x53cdba(){const _0x20aa12=a0_0x5cbd,_0x1f9bdd=angular[_0x20aa12(0x17fe)](_0x5ded58[_0x20aa12(0x14e7)]()),_0x442c90=angular[_0x20aa12(0x17fe)](_0x5ded58[_0x20aa12(0x1ed5)]());angular['forEach'](_0x1f9bdd,function(_0x283bbc){const _0x144924=_0x20aa12;_0x23b129[_0x283bbc[_0x144924(0x16b6)]]={},angular[_0x144924(0xf90)](_0x283bbc[_0x144924(0x22bc)],function(_0x51afb4,_0x4496f7){const _0x192d4d=_0x144924;_0x23b129[_0x283bbc['name']][_0x4496f7]={'name':_0x51afb4['name'],'levels':{'default':{'color':_0x1051f9(_0x442c90[_0x51afb4[_0x192d4d(0x16b6)]][_0x51afb4[_0x192d4d(0x1dad)][_0x192d4d(0x24c8)]][_0x192d4d(0x327)]),'contrast1':_0x1051f9(_0x442c90[_0x51afb4[_0x192d4d(0x16b6)]][_0x51afb4[_0x192d4d(0x1dad)][_0x192d4d(0x24c8)]][_0x192d4d(0x664)],0x1),'contrast2':_0x1051f9(_0x442c90[_0x51afb4[_0x192d4d(0x16b6)]][_0x51afb4['hues']['default']][_0x192d4d(0x664)],0x2),'contrast3':_0x1051f9(_0x442c90[_0x51afb4[_0x192d4d(0x16b6)]][_0x51afb4[_0x192d4d(0x1dad)][_0x192d4d(0x24c8)]][_0x192d4d(0x664)],0x3),'contrast4':_0x1051f9(_0x442c90[_0x51afb4['name']][_0x51afb4[_0x192d4d(0x1dad)][_0x192d4d(0x24c8)]]['contrast'],0x4)},'hue1':{'color':_0x1051f9(_0x442c90[_0x51afb4['name']][_0x51afb4['hues'][_0x192d4d(0x2326)]][_0x192d4d(0x327)]),'contrast1':_0x1051f9(_0x442c90[_0x51afb4[_0x192d4d(0x16b6)]][_0x51afb4['hues'][_0x192d4d(0x2326)]][_0x192d4d(0x664)],0x1),'contrast2':_0x1051f9(_0x442c90[_0x51afb4[_0x192d4d(0x16b6)]][_0x51afb4[_0x192d4d(0x1dad)][_0x192d4d(0x2326)]][_0x192d4d(0x664)],0x2),'contrast3':_0x1051f9(_0x442c90[_0x51afb4[_0x192d4d(0x16b6)]][_0x51afb4['hues'][_0x192d4d(0x2326)]][_0x192d4d(0x664)],0x3),'contrast4':_0x1051f9(_0x442c90[_0x51afb4[_0x192d4d(0x16b6)]][_0x51afb4[_0x192d4d(0x1dad)][_0x192d4d(0x2326)]][_0x192d4d(0x664)],0x4)},'hue2':{'color':_0x1051f9(_0x442c90[_0x51afb4['name']][_0x51afb4[_0x192d4d(0x1dad)][_0x192d4d(0x18fa)]][_0x192d4d(0x327)]),'contrast1':_0x1051f9(_0x442c90[_0x51afb4[_0x192d4d(0x16b6)]][_0x51afb4[_0x192d4d(0x1dad)][_0x192d4d(0x18fa)]][_0x192d4d(0x664)],0x1),'contrast2':_0x1051f9(_0x442c90[_0x51afb4['name']][_0x51afb4[_0x192d4d(0x1dad)][_0x192d4d(0x18fa)]][_0x192d4d(0x664)],0x2),'contrast3':_0x1051f9(_0x442c90[_0x51afb4[_0x192d4d(0x16b6)]][_0x51afb4[_0x192d4d(0x1dad)][_0x192d4d(0x18fa)]][_0x192d4d(0x664)],0x3),'contrast4':_0x1051f9(_0x442c90[_0x51afb4['name']][_0x51afb4[_0x192d4d(0x1dad)]['hue-2']][_0x192d4d(0x664)],0x4)},'hue3':{'color':_0x1051f9(_0x442c90[_0x51afb4[_0x192d4d(0x16b6)]][_0x51afb4[_0x192d4d(0x1dad)][_0x192d4d(0x2036)]][_0x192d4d(0x327)]),'contrast1':_0x1051f9(_0x442c90[_0x51afb4[_0x192d4d(0x16b6)]][_0x51afb4['hues']['hue-3']][_0x192d4d(0x664)],0x1),'contrast2':_0x1051f9(_0x442c90[_0x51afb4[_0x192d4d(0x16b6)]][_0x51afb4[_0x192d4d(0x1dad)][_0x192d4d(0x2036)]][_0x192d4d(0x664)],0x2),'contrast3':_0x1051f9(_0x442c90[_0x51afb4[_0x192d4d(0x16b6)]][_0x51afb4['hues'][_0x192d4d(0x2036)]][_0x192d4d(0x664)],0x3),'contrast4':_0x1051f9(_0x442c90[_0x51afb4['name']][_0x51afb4[_0x192d4d(0x1dad)][_0x192d4d(0x2036)]][_0x192d4d(0x664)],0x4)}}};});}),_0xde62a1(_0x23b129);let _0x124d05={};angular[_0x20aa12(0xf90)](_0x23b129,function(_0x41119e,_0x476592){const _0x2c8a13=_0x20aa12;_0x124d05={},_0x124d05[_0x2c8a13(0x1f1e)]=_0x476592,angular[_0x2c8a13(0xf90)](_0x41119e,function(_0x53a84d,_0x12fd8d){const _0x15cd27=_0x2c8a13;angular[_0x15cd27(0xf90)](_0x53a84d[_0x15cd27(0x2376)],function(_0x26355a,_0xe151b7){angular['forEach'](_0x26355a,function(_0x5cd5da,_0x59823c){_0x124d05['@'+_0x12fd8d+_0x173103(_0xe151b7)+_0x173103(_0x59823c)]=_0x5cd5da;});});}),_0x174c3a(_0x124d05);});}function _0xde62a1(_0x38c8a5){const _0x5e024f=a0_0x5cbd,_0x1ffc23=angular[_0x5e024f(0x17fe)](_0x38c8a5);angular[_0x5e024f(0xf90)](_0x1ffc23,function(_0x3bbfb0){const _0x50cca7=_0x5e024f;angular[_0x50cca7(0xf90)](_0x3bbfb0,function(_0x2e1b4e,_0x3a2e63){const _0x1ae617=_0x50cca7;_0x3bbfb0[_0x3a2e63]=_0x2e1b4e[_0x1ae617(0x2376)],_0x3bbfb0[_0x3a2e63][_0x1ae617(0x28b8)]=_0x2e1b4e[_0x1ae617(0x2376)]['default'][_0x1ae617(0x28b8)],_0x3bbfb0[_0x3a2e63][_0x1ae617(0x26fc)]=_0x2e1b4e[_0x1ae617(0x2376)][_0x1ae617(0x24c8)][_0x1ae617(0x26fc)],_0x3bbfb0[_0x3a2e63][_0x1ae617(0x21aa)]=_0x2e1b4e['levels'][_0x1ae617(0x24c8)]['contrast2'],_0x3bbfb0[_0x3a2e63]['contrast3']=_0x2e1b4e[_0x1ae617(0x2376)][_0x1ae617(0x24c8)]['contrast3'],_0x3bbfb0[_0x3a2e63][_0x1ae617(0x165c)]=_0x2e1b4e[_0x1ae617(0x2376)]['default']['contrast4'],delete _0x3bbfb0[_0x3a2e63][_0x1ae617(0x24c8)];});}),_0x5ded58[_0x5e024f(0x2125)](_0x1ffc23);const _0xa5b653=_0x5c7d9a[_0x5e024f(0xbf7)](_0x5e024f(0x13cd));_0xa5b653?_0x5ded58[_0x5e024f(0x7a9)](_0xa5b653):_0x5ded58[_0x5e024f(0x7a9)](_0x5e024f(0x24c8));}function _0x174c3a(_0x645dde){const _0x51da59=a0_0x5cbd,_0x713dbb=_0x51da59(0xb2b),_0x286d31=new RegExp(Object[_0x51da59(0x1be5)](_0x645dde)['join']('|'),'gi'),_0x238e37=_0x713dbb[_0x51da59(0x288f)](_0x286d31,function(_0x5b177e){return _0x645dde[_0x5b177e];}),_0x1f6f33=angular[_0x51da59(0x1853)](_0x51da59(0x2083)),_0xff4584=angular[_0x51da59(0x1853)](_0x51da59(0x12b1));_0xff4584[_0x51da59(0x1d35)](_0x238e37),_0x1f6f33['append'](_0xff4584);}function _0x1051f9(_0x537680,_0x2846b5){const _0x3078c4=a0_0x5cbd,_0x5a2208=_0x2846b5||![];_0x537680['length']===0x4&&_0x537680[0x0]===0xff&&_0x537680[0x1]===0xff&&_0x537680[0x2]===0xff&&_0x537680[_0x3078c4(0x159c)](0x3,0x4);_0x5a2208&&(_0x537680=_0x34749c(_0x537680,_0x5a2208));if(_0x537680['length']===0x3)return _0x3078c4(0x1854)+_0x537680[_0x3078c4(0x1f66)](',')+')';else{if(_0x537680['length']===0x4)return _0x3078c4(0x49f)+_0x537680['join'](',')+')';else _0xb5ae66[_0x3078c4(0x218e)](_0x3078c4(0x24f)+_0x537680[_0x3078c4(0xfd0)]+'\x0a'+'The\x20array\x20must\x20have\x203\x20or\x204\x20colors.');}}function _0x34749c(_0x2639fc,_0xc9e6ab){const _0x267e0b=a0_0x5cbd,_0x1c23bb={'white':{0x1:'1',0x2:_0x267e0b(0xceb),0x3:_0x267e0b(0x22ce),0x4:_0x267e0b(0x1960)},'black':{0x1:_0x267e0b(0xb71),0x2:_0x267e0b(0x891),0x3:_0x267e0b(0x2521),0x4:_0x267e0b(0x1960)}};if(_0x2639fc[0x0]===0xff&&_0x2639fc[0x1]===0xff&&_0x2639fc[0x2]===0xff)_0x2639fc[0x3]=_0x1c23bb[_0x267e0b(0x1a76)][_0xc9e6ab];else _0x2639fc[0x0]===0x0&&_0x2639fc[0x1]===0x0&&_0x2639fc[0x2]===0x0&&(_0x2639fc[0x3]=_0x1c23bb[_0x267e0b(0x7f2)][_0xc9e6ab]);return _0x2639fc;}function _0x173103(_0x884688){return _0x884688['charAt'](0x0)['toUpperCase']()+_0x884688['slice'](0x1);}}const _0x2bf071=_0xceb377;;const _0x2cc786=[{'name':_0x5537c6(0x2596),'options':{0x32:_0x5537c6(0x403),0x64:_0x5537c6(0x129a),0xc8:_0x5537c6(0x1371),0x12c:_0x5537c6(0x146c),0x190:_0x5537c6(0xc0f),0x1f4:_0x5537c6(0x15ee),0x258:_0x5537c6(0x1a9e),0x2bc:_0x5537c6(0x268c),0x320:_0x5537c6(0x1a43),0x384:_0x5537c6(0x15a9),'A100':_0x5537c6(0x129a),'A200':_0x5537c6(0x1371),'A400':_0x5537c6(0xc0f),'A700':_0x5537c6(0x268c),'contrastDefaultColor':_0x5537c6(0xd84),'contrastDarkColors':_0x5537c6(0x1f91),'contrastStrongLightColors':'300\x20400'}},{'name':'motion-paleblue','options':{0x32:'#ececee',0x64:_0x5537c6(0x18cb),0xc8:_0x5537c6(0x1f73),0x12c:_0x5537c6(0x1ba9),0x190:_0x5537c6(0x9ac),0x1f4:_0x5537c6(0x1ba8),0x258:_0x5537c6(0x1d41),0x2bc:'#2d323e',0x320:_0x5537c6(0x1c5),0x384:_0x5537c6(0x1a8b),'A100':_0x5537c6(0x18cb),'A200':_0x5537c6(0x1f73),'A400':_0x5537c6(0x9ac),'A700':_0x5537c6(0x2512),'contrastDefaultColor':_0x5537c6(0xd84),'contrastDarkColors':_0x5537c6(0x1f91),'contrastStrongLightColors':_0x5537c6(0x2154)}}],_0x3704e8=_0x2cc786;;const _0x367f1e={'default':{'primary':{'name':_0x5537c6(0x297f),'hues':{'default':_0x5537c6(0x17e5),'hue-1':_0x5537c6(0x28fb),'hue-2':_0x5537c6(0x1029),'hue-3':'400'}},'accent':{'name':_0x5537c6(0x12fe),'hues':{'default':_0x5537c6(0x1029),'hue-1':_0x5537c6(0x85b),'hue-2':_0x5537c6(0x17e5),'hue-3':'A100'}},'warn':{'name':_0x5537c6(0x1a72)},'background':{'name':_0x5537c6(0x2495),'hues':{'default':_0x5537c6(0x1e11),'hue-1':_0x5537c6(0x1e11),'hue-2':'100','hue-3':_0x5537c6(0x204a)}}},'pinkTheme':{'primary':{'name':_0x5537c6(0x1139),'hues':{'default':_0x5537c6(0x175),'hue-1':'600','hue-2':'400','hue-3':'A100'}},'accent':{'name':_0x5537c6(0x2547),'hues':{'default':'400','hue-1':_0x5537c6(0x204a),'hue-2':_0x5537c6(0x1029),'hue-3':_0x5537c6(0x1e11)}},'warn':{'name':_0x5537c6(0x1025)},'background':{'name':_0x5537c6(0x2495),'hues':{'default':'A100','hue-1':_0x5537c6(0x1e11),'hue-2':_0x5537c6(0x28af),'hue-3':'300'}}},'tealTheme':{'primary':{'name':'motion-blue','hues':{'default':'900','hue-1':_0x5537c6(0x1029),'hue-2':_0x5537c6(0x28fb),'hue-3':_0x5537c6(0x1e11)}},'accent':{'name':_0x5537c6(0x15f2),'hues':{'default':_0x5537c6(0x28fb),'hue-1':_0x5537c6(0x85b),'hue-2':_0x5537c6(0x1029),'hue-3':_0x5537c6(0x1e11)}},'warn':{'name':'deep-orange'},'background':{'name':_0x5537c6(0x2495),'hues':{'default':_0x5537c6(0x1e11),'hue-1':_0x5537c6(0x1e11),'hue-2':_0x5537c6(0x28af),'hue-3':_0x5537c6(0x204a)}}}},_0x38f050=_0x367f1e;;_0x397b1f[_0x5537c6(0x15b6)]=[_0x5537c6(0x7a6),_0x5537c6(0x147c),_0x5537c6(0xedc)];function _0x397b1f(_0x4e6358,_0xcba0e5,_0x1e9122){const _0xd878d2=_0x5537c6;let _0x49fd9c;angular[_0xd878d2(0x1da7)]([_0xd878d2(0xfe3)])[_0xd878d2(0x1bbc)]([_0xd878d2(0x173),function(_0x168c5f){_0x49fd9c=_0x168c5f;}]);const _0x4ce91a=_0x49fd9c['getObject']('motion.customTheme');_0x4ce91a&&(_0x1e9122[_0xd878d2(0x197c)]=_0x4ce91a),_0x4e6358[_0xd878d2(0x71b)](!![]),angular['forEach'](_0xcba0e5,function(_0x2fa69d){const _0x455670=_0xd878d2;_0x4e6358[_0x455670(0xef7)](_0x2fa69d[_0x455670(0x16b6)],_0x2fa69d[_0x455670(0x2224)]);}),angular[_0xd878d2(0xf90)](_0x1e9122,function(_0x32b964,_0x418a57){const _0x5eda63=_0xd878d2;_0x4e6358[_0x5eda63(0xf7b)](_0x418a57)[_0x5eda63(0x1c04)](_0x32b964[_0x5eda63(0x1dc0)][_0x5eda63(0x16b6)],_0x32b964['primary'][_0x5eda63(0x1dad)])['accentPalette'](_0x32b964[_0x5eda63(0x1b01)][_0x5eda63(0x16b6)],_0x32b964[_0x5eda63(0x1b01)]['hues'])['warnPalette'](_0x32b964[_0x5eda63(0xf1b)][_0x5eda63(0x16b6)],_0x32b964[_0x5eda63(0xf1b)]['hues'])['backgroundPalette'](_0x32b964[_0x5eda63(0x19a5)][_0x5eda63(0x16b6)],_0x32b964['background'][_0x5eda63(0x1dad)]);});}const _0x22772f=_0x397b1f;;_0x896732[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x1a21),_0x5537c6(0x4d2)];function _0x896732(_0x296af6,_0x2b9657,_0x4d9c74){const _0x67e3ab={'getRegisteredPalettes':_0x890678,'getRegisteredThemes':_0x2fef87,'setActiveTheme':_0x4e4a7c,'setThemesList':_0x2ed3cf,'themes':{'list':{},'active':{'name':'','theme':{}}}};return _0x67e3ab;function _0x890678(){const _0x1141a3=a0_0x5cbd;return _0x4d9c74[_0x1141a3(0x19ae)];}function _0x2fef87(){const _0xe490f2=a0_0x5cbd;return _0x4d9c74[_0xe490f2(0x1d28)];}function _0x4e4a7c(_0x4deb87){const _0x584623=a0_0x5cbd;if(angular['isUndefined'](_0x67e3ab[_0x584623(0x1e08)]['list'][_0x4deb87])){if(angular[_0x584623(0x2051)](_0x67e3ab[_0x584623(0x1e08)][_0x584623(0x240)][_0x584623(0x24c8)])){_0x2b9657[_0x584623(0x218e)](_0x584623(0x2492));return;}_0x2b9657['warn'](_0x584623(0x699)+_0x4deb87+_0x584623(0x19ab)),_0x67e3ab[_0x584623(0x1e08)][_0x584623(0x1a4b)][_0x584623(0x16b6)]=_0x584623(0x24c8),_0x67e3ab[_0x584623(0x1e08)]['active'][_0x584623(0xf7b)]=_0x67e3ab['themes'][_0x584623(0x240)][_0x584623(0x24c8)],_0x296af6[_0x584623(0x135f)](_0x584623(0x13cd),_0x67e3ab['themes'][_0x584623(0x1a4b)]['name']);return;}_0x67e3ab['themes'][_0x584623(0x1a4b)][_0x584623(0x16b6)]=_0x4deb87,_0x67e3ab[_0x584623(0x1e08)]['active'][_0x584623(0xf7b)]=_0x67e3ab[_0x584623(0x1e08)][_0x584623(0x240)][_0x4deb87],_0x296af6['put']('motion.selectedTheme',_0x4deb87);}function _0x2ed3cf(_0x198fb1){const _0x48f20f=a0_0x5cbd;_0x67e3ab['themes'][_0x48f20f(0x240)]=_0x198fb1;}}const _0x1b2978=_0x896732;;let _0x270d66=angular[_0x5537c6(0x9ab)](_0x5537c6(0x22ad),['ngAnimate',_0x5537c6(0x2ec),_0x5537c6(0xfe3),_0x5537c6(0x67f),_0x5537c6(0x444),_0x5537c6(0x273d),_0x5537c6(0x1f79),'pascalprecht.translate',_0x5537c6(0x1a26),_0x5537c6(0x833),_0x5537c6(0x15c7),_0x5537c6(0x29ba),_0x5537c6(0x216e)])[_0x5537c6(0x12ab)](_0x5537c6(0x488),_0x1670b3)[_0x5537c6(0xa60)](_0x4fd259)['run'](_0x5b3e40)[_0x5537c6(0x6e5)](_0x5537c6(0x15f7),_0x1d878c);_0x270d66=_0x1c74f0[_0x5537c6(0x6f9)]((_0x2e3e36,[_0x4d236c,_0x17be51,_0x29891f])=>{const _0x1660e6=_0x5537c6;switch(_0x29891f){case'directive':_0x2e3e36[_0x1660e6(0x2838)](_0x4d236c,_0x17be51);break;case'provider':_0x2e3e36['provider'](_0x4d236c,_0x17be51);break;case _0x1660e6(0x6e5):_0x2e3e36['controller'](_0x4d236c,_0x17be51);break;case _0x1660e6(0x234a):_0x2e3e36[_0x1660e6(0x234a)](_0x4d236c,_0x17be51);break;default:break;}return _0x2e3e36;},_0x270d66),_0x270d66[_0x5537c6(0x234a)]('quickFilterManager',_0x5ac8b0)['filter'](_0x5537c6(0x1790),_0xba8f6c)[_0x5537c6(0x1c99)](_0x5537c6(0xa3d),_0x53f8c5)[_0x5537c6(0x1c99)](_0x5537c6(0x87e),_0x2ae272)[_0x5537c6(0x1c99)]('nospace',_0x227ac6)[_0x5537c6(0x1c99)](_0x5537c6(0xcda),_0x3bd467)[_0x5537c6(0x1c99)]('capitalize',_0x396905)[_0x5537c6(0x1c99)](_0x5537c6(0x1e3),_0x51f5d9)[_0x5537c6(0x1c99)](_0x5537c6(0x2767),_0x6b0ce7)[_0x5537c6(0x1c99)](_0x5537c6(0x1971),_0x12f0e0)[_0x5537c6(0x1c99)]('startcase',_0xa5603f)[_0x5537c6(0x1c99)](_0x5537c6(0x227b),_0x65840f)[_0x5537c6(0x1c99)](_0x5537c6(0xebf),_0xe460d7)[_0x5537c6(0x12ab)](_0x5537c6(0x219c),_0x584ad6)[_0x5537c6(0x234a)](_0x5537c6(0x1e0b),_0x51139b)[_0x5537c6(0x234a)](_0x5537c6(0x2275),_0x452b06)[_0x5537c6(0x12ab)](_0x5537c6(0x158a),_0x461f3b)[_0x5537c6(0x234a)](_0x5537c6(0xde8),_0x2e4c82)['controller'](_0x5537c6(0x117a),_0x176f23)[_0x5537c6(0x2838)]('msThemeOptions',_0x155487)[_0x5537c6(0x234a)](_0x5537c6(0x19c5),_0x2bf071)[_0x5537c6(0x12bd)](_0x5537c6(0x147c),_0x3704e8)[_0x5537c6(0x12bd)](_0x5537c6(0xedc),_0x38f050)[_0x5537c6(0xa60)](_0x22772f)[_0x5537c6(0xdc1)](_0x5537c6(0x1a62),_0x1b2978);;_0x1670f9[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x173),_0x5537c6(0x9ca),_0x5537c6(0x1986),_0x5537c6(0x1d5f),_0x5537c6(0x1774),'api'];function _0x1670f9(_0x1ca7e3,_0x4df8a7,_0x2a8f72,_0x577488,_0x815172,_0x1dec98,_0x3aa2fe){const _0x14acd2=_0x5537c6,_0x38d32a=this;_0x38d32a[_0x14acd2(0xc89)]=angular[_0x14acd2(0x1853)]('body'),_0x38d32a[_0x14acd2(0x1681)]={'suppressScrollX':!![]},_0x38d32a[_0x14acd2(0x9ca)]=_0x2a8f72,_0x38d32a[_0x14acd2(0x29ae)]=_0x3aa2fe['baseUrl'],_0x38d32a['$onInit']=_0x4b42d6,_0x38d32a['toggleMsNavigationFolded']=_0x4169fb,_0x38d32a[_0x14acd2(0x25ef)]=_0x29fc1c,_0x577488['on'](_0x14acd2(0x1256),_0x1be3bc),_0x577488['on'](_0x14acd2(0x22d2),_0x1be3bc),_0x577488['on'](_0x14acd2(0x17a4),_0x57448e),_0x577488['on'](_0x14acd2(0x3c4),_0xf8081),_0x577488['on'](_0x14acd2(0x26b2),_0xf8081),_0x577488['on'](_0x14acd2(0x15ef),_0x5d4e4b);function _0x4b42d6(){const _0x50b11d=_0x14acd2;_0x38d32a[_0x50b11d(0x907)]=_0x4df8a7[_0x50b11d(0xbf7)]('motion.folded')===_0x50b11d(0x44d)||![];}function _0x4169fb(){const _0x4c6db7=_0x14acd2;_0x38d32a['folded']=!_0x38d32a[_0x4c6db7(0x907)],_0x4df8a7[_0x4c6db7(0x135f)]('motion.folded',_0x38d32a[_0x4c6db7(0x907)]);}function _0x29fc1c(){const _0x453f17=_0x14acd2;return _0x38d32a[_0x453f17(0x9ca)][_0x453f17(0x1d3d)]?_0x453f17(0x2915):_0x38d32a[_0x453f17(0x9ca)][_0x453f17(0x6d3)];}function _0x1be3bc(_0x1249eb){const _0x476aa5=_0x14acd2;if(_0x1249eb&&_0x1249eb['id']){const _0x195c74=0x1869f+_0x1249eb['id'];_0x815172[_0x476aa5(0x1a78)](_0x476aa5(0x1a75)+_0x195c74,{'id':_0x195c74,'title':_0x1249eb['name']||_0x476aa5(0x4cb),'state':_0x476aa5(0x7ae),'stateParams':_0x1249eb,'weight':0x2,'hidden':function(){const _0x48c39e=_0x476aa5;return _0x1dec98[_0x48c39e(0x22b6)](_0x48c39e(0x1eff))||!_0x1dec98['hasPermission'](_0x195c74)&&!_0x1dec98[_0x48c39e(0x22b6)]('admin');}});}}function _0x57448e(_0x34c213){const _0x44ec11=_0x14acd2;if(_0x34c213&&_0x34c213['id']){const _0x5d9168=0x1869f+_0x34c213['id'];_0x815172[_0x44ec11(0x1177)](_0x44ec11(0x1a75)+_0x5d9168);}}function _0xf8081(_0x52e4bf){const _0x1c20d7=_0x14acd2;if(_0x52e4bf&&_0x52e4bf['id']&&_0x52e4bf[_0x1c20d7(0x153c)]!='never'){if(_0x52e4bf[_0x1c20d7(0x1a4b)]){if(_0x52e4bf['sidebar']=='always'||_0x52e4bf['sidebar']==_0x1c20d7(0x1380)){_0x815172[_0x1c20d7(0x1a78)](_0x1c20d7(0x1846),{'id':0x76c,'title':'Plugins','translate':_0x1c20d7(0x281d),'icon':'icon-apps','weight':0x11,'hidden':function(){const _0x5c80a5=_0x1c20d7;return _0x1dec98[_0x5c80a5(0x22b6)](_0x5c80a5(0x1eff))||!_0x1dec98['hasPermission'](0x76c)&&!_0x1dec98['hasRole']('admin');}});const _0x26e084=0x15b38+_0x52e4bf['id'];_0x815172[_0x1c20d7(0x1a78)](_0x1c20d7(0x2694)+_0x26e084,{'id':_0x26e084,'title':_0x52e4bf[_0x1c20d7(0x16b6)]||_0x1c20d7(0x4cb),'state':_0x1c20d7(0x26b5),'stateParams':_0x52e4bf,'weight':0x2,'hidden':function(){const _0x16f7fd=_0x1c20d7;return _0x1dec98[_0x16f7fd(0x22b6)]('agent')||!_0x1dec98['hasPermission'](_0x26e084)&&!_0x1dec98[_0x16f7fd(0x22b6)](_0x16f7fd(0x1c60));}}),_0x815172[_0x1c20d7(0x1381)]();}}else{const _0x27a23a=0x15b38+_0x52e4bf['id'];_0x43499c(0x76c,_0x27a23a)&&(_0x52e4bf['sidebar']==_0x1c20d7(0x2017)||_0x52e4bf[_0x1c20d7(0x153c)]==_0x1c20d7(0x1380))&&(_0x815172[_0x1c20d7(0x1177)](_0x1c20d7(0x2694)+_0x27a23a),!_0x228d65(0x76c)&&_0x815172[_0x1c20d7(0x1a78)](_0x1c20d7(0x1846),{'id':0x76c,'title':_0x1c20d7(0x27e6),'translate':_0x1c20d7(0x281d),'icon':_0x1c20d7(0x33e),'weight':0x11,'hidden':function(){return!![];}}));}}}function _0x5d4e4b(_0x593fc5){const _0x11a09d=_0x14acd2;if(_0x593fc5&&_0x593fc5['id']&&_0x593fc5[_0x11a09d(0x153c)]!='never'){const _0x34bf46=0x15b38+_0x593fc5['id'];(_0x593fc5['sidebar']==_0x11a09d(0x2017)||_0x593fc5[_0x11a09d(0x153c)]==_0x11a09d(0x1380))&&(_0x815172[_0x11a09d(0x1177)](_0x11a09d(0x2694)+_0x34bf46),!_0x228d65(0x76c)&&_0x815172[_0x11a09d(0x1a78)]('apps.plugins',{'id':0x76c,'title':'Plugins','translate':'PLUGINS.PLUGINS','icon':'icon-apps','weight':0x11,'hidden':function(){return!![];}}));}}function _0x228d65(_0x3715b0){const _0x17bba9=_0x14acd2,_0x508b5e=_0x815172[_0x17bba9(0x221)](),_0x4281df=_0x39641b()[_0x17bba9(0x13b4)](_0x508b5e[0x0][_0x17bba9(0x27a5)],{'id':_0x3715b0});return _0x4281df&&_0x4281df[_0x17bba9(0x27a5)][_0x17bba9(0xfd0)]>0x0?!![]:![];}function _0x43499c(_0x42da04,_0x59948f){const _0x576e8a=_0x14acd2,_0x2328cd=_0x815172[_0x576e8a(0x221)](),_0x4cd714=_0x39641b()[_0x576e8a(0x13b4)](_0x2328cd[0x0][_0x576e8a(0x27a5)],{'id':_0x42da04});if(!_0x4cd714)return![];return _0x39641b()[_0x576e8a(0x727)](_0x4cd714[_0x576e8a(0x27a5)],{'id':_0x59948f});}_0x1ca7e3[_0x14acd2(0x1d6)](_0x14acd2(0x19fa),function(){const _0x259665=_0x14acd2;_0x38d32a['bodyEl'][_0x259665(0x1e55)](_0x259665(0x1982));});}const _0x13b90a=_0x1670f9;;function _0x170333(){}angular[_0x5537c6(0x9ab)](_0x5537c6(0x1f2b),[])[_0x5537c6(0xa60)](_0x170333)[_0x5537c6(0x6e5)](_0x5537c6(0x1841),_0x13b90a);;_0x45c237[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0xcb9),_0x5537c6(0x200d),_0x5537c6(0x142b),_0x5537c6(0xebe),'setting',_0x5537c6(0x28d5)];function _0x45c237(_0x367045,_0x348d60,_0x2ab069,_0x422db1,_0x2d9770,_0x53802a,_0x26dda2){const _0x1d661a=_0x5537c6,_0x3fbd34=this;_0x3fbd34[_0x1d661a(0x1a7c)]=[],_0x3fbd34[_0x1d661a(0xebe)]=_0x2d9770,_0x3fbd34[_0x1d661a(0x9ca)]=_0x53802a,_0x3fbd34['reset']=_0x26dda2,_0x3fbd34[_0x1d661a(0x1b0c)]=_0x3fbd34['setting'][_0x1d661a(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3fbd34[_0x1d661a(0x15a4)]=_0x7921ed,_0x3fbd34[_0x1d661a(0xda0)]=_0x349e45,_0x367045[_0x1d661a(0x614)](_0x1d661a(0x81a),function(_0x110306){const _0x3a3b96=_0x1d661a;!_0x39641b()[_0x3a3b96(0x958)](_0x3fbd34[_0x3a3b96(0xf0f)])&&(_0x110306===_0x3fbd34[_0x3a3b96(0xf0f)]?_0x367045[_0x3a3b96(0x12a5)][_0x3a3b96(0x381)][_0x3a3b96(0x92f)](_0x3a3b96(0x1e13),![]):_0x367045[_0x3a3b96(0x12a5)][_0x3a3b96(0x381)][_0x3a3b96(0x92f)](_0x3a3b96(0x1e13),!![]));});function _0x7921ed(){const _0x3d0be4=_0x1d661a;_0x3fbd34[_0x3d0be4(0x1a7c)]=[],_0x422db1[_0x3d0be4(0xebe)][_0x3d0be4(0xcad)]({'id':_0x3fbd34[_0x3d0be4(0xebe)]['id']},{'oldPassword':_0x3fbd34[_0x3d0be4(0xf0f)],'newPassword':_0x3fbd34[_0x3d0be4(0x381)]})[_0x3d0be4(0x1d77)][_0x3d0be4(0x1cb0)](function(){const _0x5ad4c7=_0x3d0be4;_0x2ab069[_0x5ad4c7(0xe27)](_0x2ab069[_0x5ad4c7(0x157c)]()[_0x5ad4c7(0x1152)](_0x5ad4c7(0xee1))[_0x5ad4c7(0xe9e)]('top\x20right')['hideDelay'](0x1388)),_0x349e45();})['catch'](function(_0x116e81){const _0x595fae=_0x3d0be4;console['error'](_0x116e81),_0x3fbd34[_0x595fae(0x1a7c)]=_0x116e81[_0x595fae(0x25c)][_0x595fae(0x1a7c)]&&_0x116e81[_0x595fae(0x25c)]['errors'][_0x595fae(0xfd0)]?_0x116e81[_0x595fae(0x25c)]['errors']:[{'message':_0x116e81[_0x595fae(0x25c)][_0x595fae(0x155e)]||_0x595fae(0xb9a),'type':'api.user.changePassword'}];});}function _0x349e45(){const _0x2f2982=_0x1d661a;_0x348d60[_0x2f2982(0x1426)]();}}const _0x697786=_0x45c237;;_0x5d6b67[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog',_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x2772),_0x5537c6(0x2242)];function _0x5d6b67(_0x3e827c,_0x4d31e2,_0x1437a1,_0x240cb6,_0xe89e48,_0x4128ae,_0x3e8045,_0x302435){const _0x4c9c5a=_0x5537c6,_0x28dad1=this;_0x28dad1[_0x4c9c5a(0x651)]=_0x302435&&_0x302435[_0x4c9c5a(0x2214)]?_0x39641b()[_0x4c9c5a(0x1db)](_0x39641b()[_0x4c9c5a(0x2631)](_0x302435[_0x4c9c5a(0x2214)],function(_0x3ad6ab){const _0x398c4d=_0x4c9c5a;return _0x398c4d(0x1e4b)+_0x3ad6ab['id'];}),_0x4c9c5a(0x16b6)):{},_0x28dad1[_0x4c9c5a(0x1a7c)]=[],_0x28dad1['hopperIds']=[],_0x28dad1[_0x4c9c5a(0x2772)]=_0x3e8045,_0x28dad1[_0x4c9c5a(0x2315)]=![],_0x28dad1[_0x4c9c5a(0xd79)]=![],_0x28dad1['disableGetContact']=![],_0x28dad1['hopperIds']['push'](_0x28dad1[_0x4c9c5a(0x2772)]['id']),_0x28dad1[_0x4c9c5a(0x22b5)]=_0x4f804a,_0x28dad1[_0x4c9c5a(0xda0)]=_0x20ce80,_0x28dad1[_0x4c9c5a(0x1e21)]=_0x3df87b,_0x28dad1[_0x4c9c5a(0x1050)]=_0x16b80e,_0x28dad1[_0x4c9c5a(0x7bd)]=_0x823f41,_0x28dad1['isCustomField']=_0x9a6c04,_0x28dad1[_0x4c9c5a(0x75f)]=_0x79f9b7,_0x28dad1[_0x4c9c5a(0x958)]=_0x17f9fe;function _0x17f9fe(_0x53ad49){const _0x326a46=_0x4c9c5a;return _0x39641b()[_0x326a46(0x958)](_0x53ad49);}function _0x9a6c04(_0x3096e6){const _0x227ab1=_0x4c9c5a;return _0x39641b()[_0x227ab1(0x1f2c)](_0x3096e6,_0x227ab1(0x1e4b));}function _0x79f9b7(_0x4a3d11){const _0x31f77c=_0x4c9c5a;return _0x39641b()['includes'](['Company','CompanyId',_0x31f77c(0x20a6),_0x31f77c(0x21ab),_0x31f77c(0x24cb),'deletedAt','id',_0x31f77c(0x521),'scheduledat',_0x31f77c(0xfbf),_0x31f77c(0x27ba),_0x31f77c(0x55f),_0x31f77c(0x1c13),_0x31f77c(0x4dd),_0x31f77c(0x27f9),_0x31f77c(0xef9),'viber',_0x31f77c(0x1715),_0x31f77c(0x2652)],_0x4a3d11);}function _0x4f804a(){const _0x21f0a3=_0x4c9c5a;_0x28dad1[_0x21f0a3(0x2315)]=!![],_0x28dad1[_0x21f0a3(0xd79)]=!![],_0x39641b()[_0x21f0a3(0xce9)](_0x28dad1['preview'])?(_0xe89e48[_0x21f0a3(0x218e)]({'title':_0x21f0a3(0x27df),'msg':_0x21f0a3(0x162d)}),_0x28dad1['disable']=![],_0x28dad1['hopperIds']=[],_0x20ce80(!![])):_0x4128ae['rpc'][_0x21f0a3(0x189f)]({'id':_0x28dad1[_0x21f0a3(0x2772)]['id']})[_0x21f0a3(0x1d77)][_0x21f0a3(0x1cb0)](function(){_0x20ce80(!![]);})[_0x21f0a3(0x1c4)](function(_0x2d37e6){const _0x5e8ad6=_0x21f0a3;_0xe89e48['error']({'title':_0x5e8ad6(0x27df),'msg':_0x2d37e6[_0x5e8ad6(0x25c)]}),_0x20ce80(!![]);})[_0x21f0a3(0x2e0)](function(){const _0x5a068b=_0x21f0a3;_0x28dad1[_0x5a068b(0xd79)]=![],_0x28dad1[_0x5a068b(0x259a)]=[];});}function _0x20ce80(_0x4a37fa){const _0x3e5188=_0x4c9c5a;_0x39641b()['isNil'](_0x4a37fa)&&_0x4128ae[_0x3e5188(0x26bc)]['update']({'id':_0x28dad1[_0x3e5188(0x2772)]['id'],'UserId':null}),_0x240cb6[_0x3e5188(0x1426)]();}_0x3e827c[_0x4c9c5a(0x1d6)](_0x4c9c5a(0x291c),function(){const _0xac890f=_0x4c9c5a;!_0x28dad1[_0xac890f(0x2315)]&&_0x4128ae[_0xac890f(0x26bc)][_0xac890f(0x687)]({'id':_0x28dad1[_0xac890f(0x2772)]['id'],'UserId':null});});function _0x3df87b(){const _0x4414ce=_0x4c9c5a;return _0x28dad1['disableGetContact']=!![],_0x4128ae[_0x4414ce(0x26bc)][_0x4414ce(0xd85)]({'hopperIds':_0x28dad1[_0x4414ce(0x259a)],'direction':_0x4414ce(0x2bf)})[_0x4414ce(0x1d77)][_0x4414ce(0x1cb0)](function(_0x558ad6){const _0x17a6be=_0x4414ce;_0x28dad1[_0x17a6be(0x76f)]=![],!_0x39641b()[_0x17a6be(0x958)](_0x558ad6)&&!_0x39641b()[_0x17a6be(0x958)](_0x558ad6[_0x17a6be(0x2687)])&&_0x558ad6[_0x17a6be(0x2687)][_0x17a6be(0x737)]?(!_0x28dad1[_0x17a6be(0x2315)]&&_0x4128ae[_0x17a6be(0x26bc)][_0x17a6be(0x687)]({'id':_0x28dad1[_0x17a6be(0x2772)]['id'],'UserId':null}),_0x28dad1[_0x17a6be(0x2772)]=_0x558ad6,_0x28dad1[_0x17a6be(0x259a)][_0x17a6be(0x2785)](_0x28dad1[_0x17a6be(0x2772)]['id'])):(_0x28dad1[_0x17a6be(0x259a)]=[],_0x240cb6['hide'](),_0xe89e48['info']({'title':'PREVIEW','msg':_0x17a6be(0x267)}));})['catch'](function(_0x588b17){const _0x1e1264=_0x4414ce;_0x28dad1[_0x1e1264(0x76f)]=![],_0x28dad1[_0x1e1264(0x259a)]=[];if(_0x588b17[_0x1e1264(0x291)]===0x194)_0x28dad1['getFirstAvailableContact']();else{if(_0x588b17['data']&&_0x588b17[_0x1e1264(0x25c)][_0x1e1264(0x1a7c)]&&_0x588b17[_0x1e1264(0x25c)]['errors'][_0x1e1264(0xfd0)]){_0x240cb6[_0x1e1264(0x1426)]();for(let _0x66b665=0x0;_0x66b665<_0x588b17[_0x1e1264(0x25c)][_0x1e1264(0x1a7c)][_0x1e1264(0xfd0)];_0x66b665+=0x1){_0xe89e48['error']({'title':_0x588b17[_0x1e1264(0x25c)][_0x1e1264(0x1a7c)][_0x66b665][_0x1e1264(0x66a)],'msg':_0x588b17[_0x1e1264(0x25c)]['errors'][_0x66b665][_0x1e1264(0x155e)]});}}else _0x240cb6[_0x1e1264(0x1426)](),_0xe89e48[_0x1e1264(0x218e)]({'title':_0x588b17[_0x1e1264(0x291)]?_0x1e1264(0xeb9)+_0x588b17['status']+_0x1e1264(0x1657)+_0x588b17['statusText']:_0x1e1264(0x8b9),'msg':_0x588b17[_0x1e1264(0x25c)]?JSON[_0x1e1264(0x2701)](_0x588b17[_0x1e1264(0x25c)][_0x1e1264(0x155e)]):_0x588b17['toString']()});}});}function _0x16b80e(){const _0x4538ac=_0x4c9c5a;_0x28dad1[_0x4538ac(0x76f)]=!![];if(_0x28dad1['hopperIds'][_0x4538ac(0xfd0)]>0x1){const _0x1fcecf=_0x39641b()[_0x4538ac(0x29c8)](_0x28dad1[_0x4538ac(0x259a)],_0x28dad1[_0x4538ac(0x2772)]['id']);return _0x4128ae['cmHopper'][_0x4538ac(0xd85)]({'hopperIds':_0x1fcecf,'direction':_0x4538ac(0x252)})[_0x4538ac(0x1d77)][_0x4538ac(0x1cb0)](function(_0x1eb7ef){const _0x25797f=_0x4538ac;_0x28dad1[_0x25797f(0x76f)]=![],!_0x39641b()[_0x25797f(0x958)](_0x1eb7ef)&&!_0x39641b()[_0x25797f(0x958)](_0x1eb7ef[_0x25797f(0x2687)])&&_0x1eb7ef[_0x25797f(0x2687)][_0x25797f(0x737)]?(_0x39641b()[_0x25797f(0x152a)](_0x28dad1[_0x25797f(0x259a)],function(_0x21e147){const _0x2bff66=_0x25797f;return _0x21e147==_0x28dad1[_0x2bff66(0x2772)]['id'];}),!_0x28dad1[_0x25797f(0x2315)]&&_0x4128ae[_0x25797f(0x26bc)][_0x25797f(0x687)]({'id':_0x28dad1[_0x25797f(0x2772)]['id'],'UserId':null}),_0x28dad1[_0x25797f(0x2772)]=_0x1eb7ef):(_0x28dad1['hopperIds']=[],_0x240cb6[_0x25797f(0x1426)](),_0xe89e48['info']({'title':_0x25797f(0x1d5b),'msg':_0x25797f(0x267)}));})[_0x4538ac(0x1c4)](function(_0x19a313){const _0x260f16=_0x4538ac;if(_0x19a313[_0x260f16(0x291)]===0x194)_0x28dad1[_0x260f16(0x259a)]=[_0x28dad1['preview']['id']],_0xe89e48[_0x260f16(0x28c7)]({'title':_0x260f16(0x1d5b),'msg':_0x260f16(0x1d3b)});else{if(_0x19a313[_0x260f16(0x25c)]&&_0x19a313[_0x260f16(0x25c)][_0x260f16(0x1a7c)]&&_0x19a313['data']['errors'][_0x260f16(0xfd0)]){_0x28dad1[_0x260f16(0x259a)]=[],_0x240cb6[_0x260f16(0x1426)]();for(let _0x38671b=0x0;_0x38671b<_0x19a313[_0x260f16(0x25c)]['errors'][_0x260f16(0xfd0)];_0x38671b+=0x1){_0xe89e48['error']({'title':_0x19a313['data'][_0x260f16(0x1a7c)][_0x38671b]['type'],'msg':_0x19a313[_0x260f16(0x25c)]['errors'][_0x38671b][_0x260f16(0x155e)]});}}else _0x28dad1[_0x260f16(0x259a)]=[],_0x240cb6['hide'](),_0xe89e48[_0x260f16(0x218e)]({'title':_0x19a313['status']?'API:'+_0x19a313[_0x260f16(0x291)]+_0x260f16(0x1657)+_0x19a313[_0x260f16(0xc22)]:_0x260f16(0x8b9),'msg':_0x19a313['data']?JSON['stringify'](_0x19a313[_0x260f16(0x25c)]['message']):_0x19a313[_0x260f16(0x147f)]()});}});}}function _0x823f41(){const _0x3657b8=_0x4c9c5a;return _0x28dad1[_0x3657b8(0x76f)]=!![],_0xe89e48[_0x3657b8(0x28c7)]({'title':'PREVIEW','msg':'CONTACTS\x20NOT\x20AVAILABLE.\x20REWINDING\x20THE\x20LIST'}),_0x4128ae[_0x3657b8(0x26bc)][_0x3657b8(0xd85)]({'hopperIds':[_0x28dad1[_0x3657b8(0x2772)]['id']],'direction':_0x3657b8(0x2bf)})['$promise']['then'](function(_0x217047){const _0x20ecce=_0x3657b8;!_0x39641b()[_0x20ecce(0x958)](_0x217047)&&!_0x39641b()[_0x20ecce(0x958)](_0x217047['Queue'])&&_0x217047[_0x20ecce(0x2687)][_0x20ecce(0x737)]?(!_0x28dad1[_0x20ecce(0x2315)]&&_0x4128ae['cmHopper'][_0x20ecce(0x687)]({'id':_0x28dad1[_0x20ecce(0x2772)]['id'],'UserId':null}),_0x28dad1[_0x20ecce(0x2772)]=_0x217047,_0x28dad1[_0x20ecce(0x259a)][_0x20ecce(0x2785)](_0x28dad1[_0x20ecce(0x2772)]['id'])):(_0x240cb6[_0x20ecce(0x1426)](),_0xe89e48[_0x20ecce(0x28c7)]({'title':_0x20ecce(0x1d5b),'msg':'CAMPAIGN\x20NOT\x20ACTIVE'}));})[_0x3657b8(0x1c4)](function(_0x8ecd13){const _0x5bbd65=_0x3657b8;_0x240cb6[_0x5bbd65(0x1426)]();if(_0x8ecd13[_0x5bbd65(0x291)]===0x194)_0xe89e48['info']({'title':_0x5bbd65(0x1d5b),'msg':_0x5bbd65(0x216)});else{if(_0x8ecd13[_0x5bbd65(0x25c)]&&_0x8ecd13['data'][_0x5bbd65(0x1a7c)]&&_0x8ecd13['data'][_0x5bbd65(0x1a7c)][_0x5bbd65(0xfd0)])for(let _0x1c132f=0x0;_0x1c132f<_0x8ecd13[_0x5bbd65(0x25c)][_0x5bbd65(0x1a7c)][_0x5bbd65(0xfd0)];_0x1c132f+=0x1){_0xe89e48['error']({'title':_0x8ecd13[_0x5bbd65(0x25c)][_0x5bbd65(0x1a7c)][_0x1c132f][_0x5bbd65(0x66a)],'msg':_0x8ecd13[_0x5bbd65(0x25c)]['errors'][_0x1c132f][_0x5bbd65(0x155e)]});}else _0xe89e48[_0x5bbd65(0x218e)]({'title':_0x8ecd13[_0x5bbd65(0x291)]?_0x5bbd65(0xeb9)+_0x8ecd13[_0x5bbd65(0x291)]+'\x20-\x20'+_0x8ecd13[_0x5bbd65(0xc22)]:_0x5bbd65(0x8b9),'msg':_0x8ecd13[_0x5bbd65(0x25c)]?JSON[_0x5bbd65(0x2701)](_0x8ecd13[_0x5bbd65(0x25c)][_0x5bbd65(0x155e)]):_0x8ecd13[_0x5bbd65(0x147f)]()});}})[_0x3657b8(0x2e0)](function(){const _0x53a86b=_0x3657b8;_0x28dad1[_0x53a86b(0x76f)]=![];});}}const _0xf5a4dd=_0x5d6b67;;const _0x1926bd=_0x5074a3['p']+_0x5537c6(0x186d);;const _0x3f74ae=_0x5074a3['p']+_0x5537c6(0x1317);;_0x5b2ed0[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1196),'$q',_0x5537c6(0x406),_0x5537c6(0x2168),_0x5537c6(0x21c8),_0x5537c6(0x417),_0x5537c6(0x1ae),'$mdToast',_0x5537c6(0x1f10),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x173),_0x5537c6(0x9bf),_0x5537c6(0x1d5f),_0x5537c6(0x1774),_0x5537c6(0x1986),_0x5537c6(0x142b),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1714)];function _0x5b2ed0(_0x486a4e,_0x393758,_0x322d41,_0x2664ce,_0x176e53,_0x50f076,_0x5a9f81,_0x47675c,_0x8a8e97,_0x2f4c77,_0x25d1b3,_0x1ab054,_0x559705,_0xd1a5a6,_0x40e03b,_0x36da2d,_0x5e1e59,_0x5858c5,_0x4e7cb4,_0x2eb8e9,_0x1c97c3){const _0x55040a=_0x5537c6,_0x52d51d=this;_0x52d51d[_0x55040a(0x278a)]={},_0x52d51d['polling']=!![],_0x52d51d['baseUrl']=_0x5858c5[_0x55040a(0x29ae)];let _0x367394;_0x393758[_0x55040a(0xbe8)]={'search':''},_0x52d51d[_0x55040a(0x8de)]=[],_0x52d51d[_0x55040a(0x8a5)]=_0x4e7cb4,_0x52d51d['currentUser']=_0x36da2d[_0x55040a(0x21e8)](),_0x52d51d[_0x55040a(0xbec)]=0x0,_0x52d51d[_0x55040a(0x2133)]=0x0,_0x52d51d['contcts']=0x0;_0x52d51d[_0x55040a(0xe76)]['role']===_0x55040a(0x1eff)&&(_0x367394=_0x1c97c3(_0x4d6f1e,0x3a97));_0x52d51d['setting']=_0x2eb8e9,_0x52d51d[_0x55040a(0xc89)]=angular[_0x55040a(0x1853)](_0x55040a(0x1ed9)),_0x52d51d[_0x55040a(0x147a)]={'realm':_0x55040a(0xfe2),'host':_0x50f076[_0x55040a(0x17d8)](),'protocol':_0x50f076['protocol'](),'remotePlayerId':_0x55040a(0x2457),'ua':_0x55040a(0x1e89),'license':_0x52d51d[_0x55040a(0x8a5)][_0x55040a(0x110c)],'phoneBarExpires':_0x52d51d[_0x55040a(0xe76)][_0x55040a(0x13ca)],'phoneBarPrefixRequired':_0x52d51d[_0x55040a(0xe76)][_0x55040a(0x1a1e)]},_0x52d51d[_0x55040a(0xae2)]={'id':_0x36da2d[_0x55040a(0x21e8)]()['id'],'fields':_0x55040a(0x776),'channel':_0x55040a(0x1fd4),'nolimit':!![]},_0x52d51d[_0x55040a(0x3a3)]=[{'title':'Online','icon':'icon-checkbox-marked-circle','color':'#4CAF50'},{'title':_0x55040a(0x54b),'icon':_0x55040a(0x228a),'color':'#FFC107'},{'title':_0x55040a(0x1fd7),'icon':'icon-minus-circle','color':_0x55040a(0x229c)},{'title':'Invisible','icon':_0x55040a(0x23bc),'color':'#BDBDBD'},{'title':_0x55040a(0xa30),'icon':'icon-checkbox-blank-circle-outline','color':_0x55040a(0x75c)}],_0x52d51d['languages']={'ar':{'title':_0x55040a(0x18ad),'translation':_0x55040a(0x1b36),'code':'ar','flag':'ar'},'da':{'title':'Danish','translation':_0x55040a(0x1c73),'code':'da','flag':'da'},'de':{'title':_0x55040a(0x41b),'translation':_0x55040a(0x201c),'code':'de','flag':'de'},'en':{'title':_0x55040a(0xc8b),'translation':_0x55040a(0x6d7),'code':'en','flag':'us'},'es':{'title':_0x55040a(0x2672),'translation':_0x55040a(0x1bdb),'code':'es','flag':'es'},'fa':{'title':_0x55040a(0x2825),'translation':_0x55040a(0x19ac),'code':'fa','flag':'fa'},'fi':{'title':_0x55040a(0x1c65),'translation':_0x55040a(0x2623),'code':'fi','flag':'fi'},'fr':{'title':_0x55040a(0x19a),'translation':_0x55040a(0xff1),'code':'fr','flag':'fr'},'he':{'title':_0x55040a(0x1dc2),'translation':'TOOLBAR.HEBREW','code':'he','flag':'he'},'hi':{'title':_0x55040a(0x1265),'translation':_0x55040a(0xda2),'code':'hi','flag':'hi'},'id':{'title':_0x55040a(0x600),'translation':'TOOLBAR.INDONESIAN','code':'id','flag':'id'},'it':{'title':'Italian','translation':_0x55040a(0xb0a),'code':'it','flag':'it'},'ja':{'title':_0x55040a(0x243f),'translation':_0x55040a(0x590),'code':'ja','flag':'ja'},'ko':{'title':_0x55040a(0x14f3),'translation':'TOOLBAR.KOREAN','code':'ko','flag':'ko'},'lv':{'title':'Latvian','translation':_0x55040a(0x1fe9),'code':'lv','flag':'lv'},'nl':{'title':_0x55040a(0x2027),'translation':_0x55040a(0x19a6),'code':'nl','flag':'nl'},'no':{'title':'Norwegian','translation':_0x55040a(0x23b8),'code':'no','flag':'no'},'pl':{'title':_0x55040a(0x2960),'translation':_0x55040a(0x1ac7),'code':'pl','flag':'pl'},'pt-BR':{'title':_0x55040a(0x27f3),'translation':_0x55040a(0x76d),'code':'pt-BR','flag':_0x55040a(0x183f)},'pt-PT':{'title':_0x55040a(0x150e),'translation':_0x55040a(0xd4e),'code':_0x55040a(0x272f),'flag':_0x55040a(0x272f)},'ru':{'title':_0x55040a(0x1dec),'translation':_0x55040a(0x2560),'code':'ru','flag':'ru'},'sv':{'title':'Swedish','translation':'TOOLBAR.SWEDISH','code':'sv','flag':'sv'},'tr':{'title':_0x55040a(0x1543),'translation':_0x55040a(0x2586),'code':'tr','flag':'tr'},'zh-CN':{'title':_0x55040a(0xd9b),'translation':'TOOLBAR.CHINESESIMPLIFIED','code':_0x55040a(0x1261),'flag':_0x55040a(0x1261)},'zh-TW':{'title':_0x55040a(0x1246),'translation':'TOOLBAR.CHINESETRADITIONAL','code':_0x55040a(0x517),'flag':_0x55040a(0x517)}};const _0x3d4375=['ar','fa','he'];_0x52d51d[_0x55040a(0x231b)]=_0x3c57f6,_0x52d51d['logout']=_0x109cd2,_0x52d51d[_0x55040a(0x4a7)]=_0xa01ee2,_0x52d51d['setUserStatus']=_0x526a5f,_0x52d51d[_0x55040a(0x437)]=_0x1bb268,_0x52d51d[_0x55040a(0x1c05)]=_0x30e556,_0x52d51d[_0x55040a(0x24be)]=_0x9140e2,_0x52d51d[_0x55040a(0x1c6d)]=_0x157cc8,_0x52d51d[_0x55040a(0x714)]=_0x17c788,_0x52d51d[_0x55040a(0xcad)]=_0x4ae753,_0x52d51d['isAgent']=_0x1ce9ef,_0x52d51d[_0x55040a(0xb1a)]=_0x4f281d,_0x52d51d[_0x55040a(0xdf7)]=_0x203229,_0x52d51d[_0x55040a(0x785)]=_0x2f4f44,_0x52d51d[_0x55040a(0xf5d)]=_0x1e4f6e,_0x52d51d['preview']=_0x13de6d,_0x52d51d['getLogo']=_0xfde436,_0x52d51d[_0x55040a(0x1208)]=_0x3fdde7,_0x52d51d['onInternalMessageSave']=_0x1716ce,_0x52d51d[_0x55040a(0x2a8)]=_0x3e1e02,_0x52d51d[_0x55040a(0x20b7)]=_0x369ba8,_0x52d51d[_0x55040a(0x5ff)]=_0x379844,_0x58cf15(),_0x2b5c9a(),_0x482617();function _0x58cf15(){const _0x6d1e5a=_0x55040a;_0x52d51d[_0x6d1e5a(0xebe)]=_0x36da2d[_0x6d1e5a(0x21e8)](),_0x52d51d[_0x6d1e5a(0x147a)][_0x6d1e5a(0xb7f)]=_0x52d51d['user']['md5secret'],_0x52d51d[_0x6d1e5a(0x147a)]['id']=_0x52d51d[_0x6d1e5a(0xebe)]['id'],_0x52d51d['conf']['name']=_0x52d51d['user'][_0x6d1e5a(0x16b6)],_0x52d51d[_0x6d1e5a(0x147a)]['fullname']=_0x52d51d['user'][_0x6d1e5a(0x1d14)],_0x52d51d[_0x6d1e5a(0x147a)]['internal']=_0x52d51d[_0x6d1e5a(0xebe)][_0x6d1e5a(0xdbd)],_0x52d51d['conf'][_0x6d1e5a(0x1b6f)]=_0x52d51d[_0x6d1e5a(0xebe)][_0x6d1e5a(0x1f67)],_0x52d51d[_0x6d1e5a(0x147a)][_0x6d1e5a(0x1d39)]=_0x52d51d[_0x6d1e5a(0xebe)][_0x6d1e5a(0x7f4)],_0x52d51d[_0x6d1e5a(0x147a)][_0x6d1e5a(0x1258)]=_0x52d51d[_0x6d1e5a(0xebe)][_0x6d1e5a(0x12b0)],_0x52d51d[_0x6d1e5a(0x147a)][_0x6d1e5a(0x15d8)]=_0x52d51d[_0x6d1e5a(0xebe)]['phoneBarEnableDtmfTone'],_0x52d51d[_0x6d1e5a(0x147a)][_0x6d1e5a(0x1a95)]=_0x52d51d['user'][_0x6d1e5a(0x66f)],_0x52d51d[_0x6d1e5a(0x296c)]=_0x52d51d[_0x6d1e5a(0x3a3)][0x0];const _0x39b720=_0x559705[_0x6d1e5a(0xbf7)](_0x6d1e5a(0xa0a));_0x39b720&&typeof _0x52d51d['languages'][_0x39b720]!==_0x6d1e5a(0x16b5)?_0x52d51d[_0x6d1e5a(0x2152)]=_0x52d51d[_0x6d1e5a(0x13d3)][_0x39b720]:_0x52d51d[_0x6d1e5a(0x2152)]=_0x52d51d[_0x6d1e5a(0x13d3)][_0x47675c[_0x6d1e5a(0x174a)]()];_0x5858c5[_0x6d1e5a(0x785)][_0x6d1e5a(0xbf7)]({'fields':_0x6d1e5a(0x16b6),'nolimit':!![]})[_0x6d1e5a(0x1d77)]['then'](function(_0x31b914){const _0x33d4cf=_0x6d1e5a;_0x52d51d[_0x33d4cf(0x8de)]=_0x31b914[_0x33d4cf(0x2214)]?_0x31b914[_0x33d4cf(0x2214)]:[];})[_0x6d1e5a(0x1c4)](function(_0x5e5540){const _0x254d92=_0x6d1e5a;_0xd1a5a6[_0x254d92(0x218e)]({'title':_0x5e5540[_0x254d92(0x291)]?_0x254d92(0xeb9)+_0x5e5540[_0x254d92(0x291)]+_0x254d92(0x1657)+_0x5e5540[_0x254d92(0xc22)]:_0x254d92(0x3d2),'msg':_0x5e5540['status']?JSON['stringify'](_0x5e5540[_0x254d92(0x25c)]):_0x5e5540[_0x254d92(0x147f)]()});});if(_0x36da2d[_0x6d1e5a(0xad7)]()==_0x6d1e5a(0x11b9)){if(_0x52d51d['setting'][_0x6d1e5a(0x1102)]){if(!_0x52d51d[_0x6d1e5a(0xebe)][_0x6d1e5a(0x4d7)])_0x4ae753(null,!![]);else{const _0x1529e4=_0x543b5a()(_0x52d51d['user'][_0x6d1e5a(0x4d7)])['add'](_0x52d51d[_0x6d1e5a(0x9ca)]['passwordExpiresDays']||0x5a,_0x6d1e5a(0x1a5));if(_0x543b5a()()[_0x6d1e5a(0x131d)](_0x1529e4))_0x4ae753(null,!![]);else _0x543b5a()()[_0x6d1e5a(0x17a1)](0xf,_0x6d1e5a(0x1a5))['isAfter'](_0x1529e4)&&_0xd1a5a6[_0x6d1e5a(0x1752)]({'title':_0x47675c[_0x6d1e5a(0x25cc)](_0x6d1e5a(0x2ae))+'!','msg':_0x47675c[_0x6d1e5a(0x25cc)]('TOOLBAR.PASSWORD_EXPIRE_REMAINING_DAYS')+':\x20'+Math[_0x6d1e5a(0x24b5)](_0x1529e4[_0x6d1e5a(0xd42)](_0x543b5a()(),_0x6d1e5a(0x23b3),!![])),'timeout':0x4e20});}}}}function _0x482617(){const _0x13c570=_0x55040a;_0x5e1e59[_0x13c570(0x8b0)](),_0x5e1e59['on']('user:update',_0x52d51d[_0x13c570(0xb1a)]),_0x5e1e59['on'](_0x13c570(0x2656),_0x52d51d[_0x13c570(0xdf7)]),_0x5e1e59['on'](_0x13c570(0x248f),_0x52d51d[_0x13c570(0xaea)]),_0x5e1e59['on'](_0x13c570(0x135a),_0x52d51d['onInternalMessageUpdate']),_0x5e1e59['on']('userVoiceQueue:save',_0x52d51d[_0x13c570(0x20b7)]),_0x5e1e59['on'](_0x13c570(0x1fe3),_0x52d51d[_0x13c570(0x5ff)]),_0x5e1e59['on']('userVoiceQueue:remove',_0x52d51d[_0x13c570(0x20b7)]),_0x5e1e59['on'](_0x13c570(0xb50),_0x52d51d['onVoiceQueue']),_0x5e1e59['on'](_0x13c570(0x18e8),_0x52d51d[_0x13c570(0x5ff)]),_0x5e1e59['on'](_0x13c570(0x2324),_0x1cbf42),_0x5e1e59['on'](_0x13c570(0xf1e),_0x499e25);}function _0x6bac0f(){const _0x45e0bf=_0x55040a;_0x5e1e59[_0x45e0bf(0xfb8)](_0x45e0bf(0x2656)),_0x5e1e59['removeAllListeners']('user:update'),_0x5e1e59['removeAllListeners'](_0x45e0bf(0x248f)),_0x5e1e59[_0x45e0bf(0xfb8)](_0x45e0bf(0x135a)),_0x5e1e59['removeAllListeners']('userVoiceQueue:save'),_0x5e1e59[_0x45e0bf(0xfb8)]('voiceQueue:save'),_0x5e1e59[_0x45e0bf(0xfb8)](_0x45e0bf(0x201e)),_0x5e1e59[_0x45e0bf(0xfb8)](_0x45e0bf(0xb50)),_0x5e1e59['removeAllListeners'](_0x45e0bf(0x18e8)),_0x5e1e59[_0x45e0bf(0xfb8)]('user:forcelogout'),_0x5e1e59['removeAllListeners'](_0x45e0bf(0xf1e)),_0x5e1e59[_0x45e0bf(0x22e8)]();}function _0x4fb3c7(_0x283501){const _0x1ee0e4=_0x55040a;_0x52d51d[_0x1ee0e4(0x278a)]=_0x283501?_0x39641b()[_0x1ee0e4(0x2631)](_0x283501[_0x1ee0e4(0x2214)]?_0x283501[_0x1ee0e4(0x2214)]:[],'id'):{};}function _0x2b5c9a(){const _0x5e7cca=_0x55040a;_0x52d51d[_0x5e7cca(0x2061)]=_0x5858c5[_0x5e7cca(0xebe)][_0x5e7cca(0x13e9)](_0x52d51d[_0x5e7cca(0xae2)],_0x4fb3c7)[_0x5e7cca(0x1d77)];}function _0x379844(){_0x2b5c9a();}function _0x369ba8(_0x297328){const _0x9feca9=_0x55040a;_0x39641b()['toInteger'](_0x297328[_0x9feca9(0x21ab)])===_0x36da2d[_0x9feca9(0x21e8)]()['id']&&_0x2b5c9a();}function _0x2f4f44(_0x343be0){const _0x59643a=_0x55040a;return _0x5858c5[_0x59643a(0xebe)]['pause']({'id':_0x52d51d[_0x59643a(0xebe)]['id'],'type':_0x343be0||_0x59643a(0x12c2)})[_0x59643a(0x1d77)][_0x59643a(0x1c4)](function(_0x1b89e7){const _0x3d7caa=_0x59643a;_0xd1a5a6[_0x3d7caa(0x218e)]({'title':_0x1b89e7[_0x3d7caa(0x291)]?_0x3d7caa(0xeb9)+_0x1b89e7[_0x3d7caa(0x291)]+_0x3d7caa(0x1657)+_0x1b89e7[_0x3d7caa(0xc22)]:_0x3d7caa(0x24fe),'msg':_0x1b89e7[_0x3d7caa(0x291)]?JSON[_0x3d7caa(0x2701)](_0x1b89e7['data']):_0x1b89e7[_0x3d7caa(0x147f)]()});});}function _0x1e4f6e(){const _0x1a5f8a=_0x55040a;return _0x5858c5[_0x1a5f8a(0xebe)][_0x1a5f8a(0xf5d)]({'id':_0x52d51d[_0x1a5f8a(0xebe)]['id']})[_0x1a5f8a(0x1d77)][_0x1a5f8a(0x1c4)](function(_0x53b6c0){const _0x51b983=_0x1a5f8a;_0xd1a5a6[_0x51b983(0x218e)]({'title':_0x53b6c0[_0x51b983(0x291)]?_0x51b983(0xeb9)+_0x53b6c0[_0x51b983(0x291)]+'\x20-\x20'+_0x53b6c0['statusText']:'SYSTEM:UNPAUSEUSER','msg':_0x53b6c0['status']?JSON[_0x51b983(0x2701)](_0x53b6c0[_0x51b983(0x25c)]):_0x53b6c0[_0x51b983(0x147f)]()});});}function _0x13de6d(_0x3ff55e){const _0x1bcd8c=_0x55040a;return _0x52d51d[_0x1bcd8c(0xd79)]=!![],_0x5858c5[_0x1bcd8c(0x26bc)][_0x1bcd8c(0xd85)]()[_0x1bcd8c(0x1d77)][_0x1bcd8c(0x1cb0)](function(_0x5dcbe9){const _0x660ce=_0x1bcd8c;!_0x39641b()[_0x660ce(0x958)](_0x5dcbe9)&&!_0x39641b()['isNil'](_0x5dcbe9[_0x660ce(0x2687)])&&_0x5dcbe9[_0x660ce(0x2687)][_0x660ce(0x737)]?_0x25d1b3[_0x660ce(0xe27)]({'controller':'PreviewDialogController','controllerAs':'vm','templateUrl':_0x1926bd,'parent':angular[_0x660ce(0x1853)](_0x1ab054[_0x660ce(0x1ed9)]),'targetEvent':_0x3ff55e,'clickOutsideToClose':!![],'locals':{'preview':_0x5dcbe9},'resolve':{'customFields':[_0x660ce(0x1e0b),function(_0x2506b5){const _0x1ea93b=_0x660ce;return _0x2506b5[_0x1ea93b(0x19a3)](_0x1ea93b(0x1474),{'nolimit':!![]});}]}}):_0xd1a5a6[_0x660ce(0x28c7)]({'title':_0x660ce(0x1d5b),'msg':_0x660ce(0x267)});})[_0x1bcd8c(0x1c4)](function(_0x577d3c){const _0x3efb0e=_0x1bcd8c;if(_0x577d3c[_0x3efb0e(0x291)]===0x194)_0xd1a5a6[_0x3efb0e(0x28c7)]({'title':_0x3efb0e(0x1d5b),'msg':'CONTACT\x20NOT\x20AVAILABLE'});else{if(_0x577d3c['data']&&_0x577d3c[_0x3efb0e(0x25c)]['errors']&&_0x577d3c['data'][_0x3efb0e(0x1a7c)]['length']){_0x52d51d['errors']=_0x577d3c[_0x3efb0e(0x25c)][_0x3efb0e(0x1a7c)]||[{'message':_0x577d3c[_0x3efb0e(0x147f)](),'type':_0x3efb0e(0x10ed)}];for(let _0x477504=0x0;_0x477504<_0x577d3c['data']['errors'][_0x3efb0e(0xfd0)];_0x477504+=0x1){_0xd1a5a6[_0x3efb0e(0x218e)]({'title':_0x577d3c[_0x3efb0e(0x25c)]['errors'][_0x477504]['type'],'msg':_0x577d3c[_0x3efb0e(0x25c)]['errors'][_0x477504][_0x3efb0e(0x155e)]});}}else _0xd1a5a6[_0x3efb0e(0x218e)]({'title':_0x577d3c['status']?_0x3efb0e(0xeb9)+_0x577d3c[_0x3efb0e(0x291)]+'\x20-\x20'+_0x577d3c['statusText']:_0x3efb0e(0x10ed),'msg':_0x577d3c['data']?JSON[_0x3efb0e(0x2701)](_0x577d3c[_0x3efb0e(0x25c)][_0x3efb0e(0x155e)]):_0x577d3c[_0x3efb0e(0x147f)]()});}})['finally'](function(){const _0x4d97e1=_0x1bcd8c;_0x52d51d[_0x4d97e1(0xd79)]=![];});}function _0x3c57f6(_0x11c738){_0x5a9f81(_0x11c738)['toggle']();}function _0x3fdde7(){const _0x5b8e31=_0x55040a;return _0x52d51d[_0x5b8e31(0xe76)][_0x5b8e31(0x26e6)]===_0x5b8e31(0x1c60)||_0x52d51d[_0x5b8e31(0xe76)][_0x5b8e31(0x26e6)]===_0x5b8e31(0xebe)||_0x52d51d[_0x5b8e31(0xe76)][_0x5b8e31(0x26e6)]===_0x5b8e31(0x1eff)&&_0x52d51d[_0x5b8e31(0xe76)][_0x5b8e31(0xed9)]!==0x0;}_0x5858c5['chatInternalMessage'][_0x55040a(0xbf7)]({'fields':_0x55040a(0x8d5),'ToId':_0x52d51d[_0x55040a(0xe76)]['id'],'read':![],'nolimit':!![]})['$promise'][_0x55040a(0x1cb0)](function(_0x29c51d){const _0x560e5d=_0x55040a;_0x52d51d['unreadTotalMessages']=_0x29c51d[_0x560e5d(0x2214)][_0x560e5d(0xfd0)];});function _0x1716ce(_0x1f87a8){const _0x117c87=_0x55040a;_0x1f87a8[_0x117c87(0x20e4)]===_0x52d51d['currentUser']['id']&&!_0x1f87a8['ChatGroupId']&&(_0x52d51d[_0x117c87(0xbec)]+=0x1),_0x1f87a8[_0x117c87(0x20e4)]===_0x52d51d[_0x117c87(0xe76)]['id']&&_0x1f87a8[_0x117c87(0x8d5)]!==_0x52d51d[_0x117c87(0xe76)]['id']&&!_0x1f87a8['read']&&_0x1f87a8['ChatGroupId']&&_0x52d51d[_0x117c87(0x2133)]++;}function _0x3e1e02(_0x5c1317){const _0x16c5fa=_0x55040a;_0x5c1317[_0x16c5fa(0x20e4)]===_0x52d51d[_0x16c5fa(0xe76)]['id']&&_0x5c1317[_0x16c5fa(0xfc1)]&&_0x52d51d[_0x16c5fa(0xbec)]>0x0&&!_0x5c1317[_0x16c5fa(0x1fb5)]&&(_0x52d51d['unreadTotalMessages']-=0x1),_0x5c1317[_0x16c5fa(0x20e4)]===_0x52d51d['currentUser']['id']&&_0x5c1317[_0x16c5fa(0xfc1)]&&_0x5c1317[_0x16c5fa(0x1fb5)]&&_0x52d51d[_0x16c5fa(0x2133)]>0x0&&_0x52d51d[_0x16c5fa(0x2133)]--;}function _0x526a5f(_0x56cf62){const _0x171672=_0x55040a;_0x52d51d[_0x171672(0x296c)]=_0x56cf62;}function _0x109cd2(_0x179a90){const _0x5cc54b=_0x55040a;return _0x6bac0f(),_0x36da2d[_0x5cc54b(0x1366)](_0x179a90)[_0x5cc54b(0x1cb0)](function(){const _0x216313=_0x5cc54b;return _0x393758[_0x216313(0x692)](_0x216313(0x5db)),_0x2664ce['go']('app.login');})[_0x5cc54b(0x1c4)](function(_0x5264c5){const _0x507f04=_0x5cc54b;console[_0x507f04(0x218e)](_0x5264c5);});}function _0xa01ee2(_0x13280d){const _0x293274=_0x55040a;if(typeof _0x52d51d[_0x293274(0x13d3)][_0x13280d['code']]=='undefined'){const _0x2b9688=_0x293274(0x1865);_0x8a8e97[_0x293274(0xe27)]({'template':''+_0x2b9688+_0x293274(0x13bb),'hideDelay':0x1b58,'position':_0x293274(0x2730),'parent':_0x293274(0x13da)});return;}_0x52d51d['selectedLanguage']=_0x13280d,_0x559705[_0x293274(0x135f)](_0x293274(0xa0a),_0x13280d[_0x293274(0x23ae)]),_0x47675c[_0x293274(0x1ddd)](_0x13280d[_0x293274(0x23ae)]),_0x2664ce[_0x293274(0x1970)][_0x293274(0x16b6)]==='app.callysquare.projects.edit'&&_0x2f4c77['location'][_0x293274(0x5b9)](),_0x3d4375[_0x293274(0xd8a)](_0x13280d[_0x293274(0x23ae)])>=0x0?_0xd1a5a6['info']({'title':_0x47675c['instant'](_0x293274(0x21db)),'msg':_0x47675c[_0x293274(0x25cc)](_0x293274(0x1d7f))}):_0x486a4e['$parent'][_0x293274(0x17bc)]['vm'][_0x293274(0x979)]=_0x293274(0xd32);}function _0x1bb268(){const _0xacb29e=_0x55040a;_0x52d51d[_0xacb29e(0xc89)][_0xacb29e(0x713)](_0xacb29e(0x1982));}function _0x30e556(){const _0x4e5174=_0x55040a;_0x40e03b[_0x4e5174(0x14bf)]();}function _0x9140e2(_0x3fd65e){const _0x4b1d37=_0x55040a;let _0x153d07=[];const _0x35a870=_0x40e03b[_0x4b1d37(0x27e)](),_0x1d57aa=_0x322d41[_0x4b1d37(0x11f4)]();for(let _0x4fce85=0x0;_0x4fce85<_0x35a870[_0x4b1d37(0xfd0)];_0x4fce85++){_0x35a870[_0x4fce85][_0x4b1d37(0x19c3)]&&_0x153d07['push'](_0x35a870[_0x4fce85]);}return _0x3fd65e&&(_0x153d07=_0x153d07[_0x4b1d37(0x1c99)](function(_0x35a8fa){const _0x2c5985=_0x4b1d37;if(_0x35a8fa[_0x2c5985(0x1386)][_0x2c5985(0x1680)]()[_0x2c5985(0x250a)](_0x3fd65e[_0x2c5985(0x1680)]()))return!![];})),_0x176e53(function(){const _0x39248d=_0x4b1d37;_0x1d57aa[_0x39248d(0x19a3)](_0x153d07);},0x3e8),_0x1d57aa[_0x4b1d37(0x2061)];}function _0x157cc8(_0x1eec33){const _0x40de5e=_0x55040a;_0x1eec33[_0x40de5e(0x19c3)]&&(_0x1eec33[_0x40de5e(0x1349)]?_0x2664ce['go'](_0x1eec33[_0x40de5e(0x27e0)],_0x1eec33[_0x40de5e(0x1349)]):_0x2664ce['go'](_0x1eec33['state']));}function _0x17c788(){const _0x3d1bd7=_0x55040a;_0x393758['$broadcast'](_0x3d1bd7(0x2d9));}function _0x4ae753(_0x43fce5,_0x5a3ea2){const _0x5354fe=_0x55040a;_0x25d1b3[_0x5354fe(0xe27)]({'controller':_0x5354fe(0x233d),'controllerAs':'vm','templateUrl':_0x3f74ae,'parent':angular[_0x5354fe(0x1853)](_0x1ab054[_0x5354fe(0x1ed9)]),'targetEvent':_0x43fce5,'clickOutsideToClose':_0x5a3ea2?![]:!![],'escapeToClose':_0x5a3ea2?![]:!![],'locals':{'user':_0x52d51d[_0x5354fe(0xebe)],'setting':_0x2eb8e9,'reset':_0x5a3ea2}});}function _0x1ce9ef(){const _0x53c8b9=_0x55040a;return _0x36da2d['getCurrentUser']()&&_0x36da2d[_0x53c8b9(0x22b6)](_0x53c8b9(0x1eff));}function _0x4f281d(_0x5e4afa){const _0x3f11cc=_0x55040a;if(_0x5e4afa['id']===_0x52d51d[_0x3f11cc(0xebe)]['id']){if(_0x5e4afa['role']==='agent'&&_0x39641b()[_0x3f11cc(0x2714)](_0x5e4afa['online'])&&!_0x5e4afa[_0x3f11cc(0xa28)]){if(_0x52d51d['user']['showWebBar']!==0x0){_0x6bac0f();const _0x96e888=_0x25d1b3[_0x3f11cc(0x1551)]()[_0x3f11cc(0x1386)](_0x47675c['instant'](_0x3f11cc(0x2ae))+'!')['textContent'](_0x47675c[_0x3f11cc(0x25cc)](_0x3f11cc(0x1209)))[_0x3f11cc(0x15ad)](_0x47675c['instant'](_0x3f11cc(0x2ae))+'!')['ok'](_0x47675c['instant'](_0x3f11cc(0x103e)))['cancel'](_0x3f11cc(0x29e2));_0x25d1b3[_0x3f11cc(0xe27)](_0x96e888)[_0x3f11cc(0x1cb0)](function(){const _0x459cc6=_0x3f11cc;return _0x36da2d[_0x459cc6(0x287f)]()['then'](function(){const _0x131a69=_0x459cc6;_0x482617(),_0x39641b()['merge'](_0x52d51d[_0x131a69(0xebe)],_0x5e4afa),_0x36da2d[_0x131a69(0x2018)](_0x52d51d[_0x131a69(0xebe)]);});})[_0x3f11cc(0x1c4)](function(){_0x109cd2(!![]);});}else _0x109cd2(!![]);}else _0x39641b()[_0x3f11cc(0x9c1)](_0x52d51d[_0x3f11cc(0xebe)],_0x5e4afa),_0x36da2d[_0x3f11cc(0x2018)](_0x52d51d[_0x3f11cc(0xebe)]);}}function _0x203229(_0x1deeb1){const _0x32f4c8=_0x55040a;_0x52d51d['currentUser'][_0x32f4c8(0xed9)]===0x2&&_0x52d51d[_0x32f4c8(0xe76)]['role']===_0x32f4c8(0x1eff)&&_0x52d51d['currentUser'][_0x32f4c8(0x16b6)]===_0x1deeb1['membername']&&_0xd1a5a6[_0x32f4c8(0x28c7)]({'title':_0x32f4c8(0xa0e),'msg':'
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Call\x20from:\x20'+_0x1deeb1[_0x32f4c8(0x17d3)]+_0x32f4c8(0x2861)+_0x1deeb1[_0x32f4c8(0x11cf)]+_0x32f4c8(0xa69)+(_0x1deeb1[_0x32f4c8(0x9a9)]&&_0x1deeb1[_0x32f4c8(0x9a9)][_0x32f4c8(0x15a2)]?_0x1deeb1[_0x32f4c8(0x9a9)][_0x32f4c8(0x15a2)]:'Not\x20defined')+_0x32f4c8(0x28c5),'showClose':!![],'timeout':0x2710,'html':!![]});}function _0xfde436(){const _0x4ff6a0=_0x55040a;return _0x52d51d[_0x4ff6a0(0x9ca)][_0x4ff6a0(0x1d3d)]?_0x4ff6a0(0x2915):_0x52d51d['setting'][_0x4ff6a0(0x6d3)];}function _0x4d6f1e(){const _0x540c61=_0x55040a;_0x39641b()[_0x540c61(0x727)](_0x52d51d['voiceQueues'],{'dialMethod':'preview','dialActive':!![]})&&_0x52d51d[_0x540c61(0x8a5)]['dialer']&&_0x52d51d[_0x540c61(0x5f5)]?(_0x52d51d[_0x540c61(0x5f5)]=![],_0x5858c5['cmHopper'][_0x540c61(0x12e7)]()[_0x540c61(0x1d77)][_0x540c61(0x1cb0)](function(_0x49f213){const _0x272703=_0x540c61;_0x49f213&&_0x39641b()[_0x272703(0xcb3)](_0x49f213[_0x272703(0x7eb)])&&(_0x52d51d[_0x272703(0x7eb)]=_0x49f213['contacts']);})[_0x540c61(0x2e0)](function(){const _0x2684ef=_0x540c61;_0x52d51d[_0x2684ef(0x5f5)]=!![];})):_0x52d51d['contacts']=0x0;}function _0x11ed7c(){const _0x27ba4c=_0x55040a;_0x367394&&(_0x1c97c3[_0x27ba4c(0x696)](_0x367394),_0x367394=null);}function _0x1cbf42(_0x8dadcf){const _0x13e953=_0x55040a;console[_0x13e953(0xbf5)](_0x13e953(0x416),_0x8dadcf);if(_0x52d51d[_0x13e953(0xebe)][_0x13e953(0xed9)]!==0x0)return _0x6bac0f(),_0x36da2d['logout'](!![])['then'](function(){const _0x575fc3=_0x13e953;_0x393758[_0x575fc3(0x692)](_0x575fc3(0x5db)),_0x25d1b3[_0x575fc3(0xe27)](_0x25d1b3['alert']()[_0x575fc3(0xbfb)](angular[_0x575fc3(0x1853)](_0x1ab054['body']))[_0x575fc3(0x27e1)](![])[_0x575fc3(0x2826)](![])['title'](_0x47675c[_0x575fc3(0x25cc)](_0x575fc3(0x2ae)))['textContent'](_0x47675c['instant'](_0x575fc3(0x1689),{'ip':_0x8dadcf['ip']}))['ok']('OK'))[_0x575fc3(0x1cb0)](function(){const _0x53874d=_0x575fc3;return _0x2664ce['go'](_0x53874d(0xf2e));});})['catch'](function(_0x56de1a){const _0xb7b673=_0x13e953;console[_0xb7b673(0x218e)](_0x56de1a);});}function _0x499e25(_0x2bc622){const _0x287af0=_0x55040a,_0x570ff5=_0x2bc622;if(_0x52d51d[_0x287af0(0xe76)]['id']===_0x570ff5[_0x287af0(0x2703)]){const _0x4994fb=_0x47675c[_0x287af0(0x25cc)](_0x287af0(0x2750),{'sender':_0x570ff5[_0x287af0(0x25a7)]}),_0x5800bd=_0x570ff5[_0x287af0(0x2c1)]?_0x47675c['instant'](_0x287af0(0x2667),{'recipient':_0x570ff5[_0x287af0(0x2c1)]}):null;_0xd1a5a6[_0x287af0(0x1b94)]({'title':_0x5800bd?_0x4994fb+'\x20'+_0x5800bd:_0x4994fb,'msg':_0x570ff5[_0x287af0(0x862)],'clickToClose':![],'timeout':![],'sound':_0x570ff5['beep'],'html':!![]});}}_0x486a4e[_0x55040a(0x1d6)](_0x55040a(0x291c),function(){const _0x3fc3af=_0x55040a;_0x5e1e59[_0x3fc3af(0xfb8)]('user:called'),_0x5e1e59[_0x3fc3af(0xfb8)]('user:update'),_0x5e1e59['removeAllListeners']('chatInternalMessage:save'),_0x5e1e59['removeAllListeners'](_0x3fc3af(0x135a)),_0x5e1e59[_0x3fc3af(0xfb8)](_0x3fc3af(0x828)),_0x5e1e59[_0x3fc3af(0xfb8)](_0x3fc3af(0x1fe3)),_0x5e1e59[_0x3fc3af(0xfb8)](_0x3fc3af(0x201e)),_0x5e1e59[_0x3fc3af(0xfb8)](_0x3fc3af(0xb50)),_0x5e1e59[_0x3fc3af(0xfb8)](_0x3fc3af(0x18e8)),_0x5e1e59['removeAllListeners'](_0x3fc3af(0x2324)),_0x5e1e59[_0x3fc3af(0xfb8)]('notification:send'),_0x11ed7c();});}const _0x558df2=_0x5b2ed0;;_0x6e820b[_0x5537c6(0x15b6)]=[_0x5537c6(0x1f2a)];function _0x6e820b(_0x5da746){_0x5da746['addPart']('app/toolbar');}angular[_0x5537c6(0x9ab)](_0x5537c6(0x1795),[])[_0x5537c6(0xa60)](_0x6e820b)['controller']('ChangePasswordController',_0x697786)[_0x5537c6(0x6e5)](_0x5537c6(0x11d5),_0xf5a4dd)[_0x5537c6(0x6e5)](_0x5537c6(0x2737),_0x558df2);;_0x2e96d0['$inject']=[_0x5537c6(0x1463),'$translate','$q',_0x5537c6(0x1774),_0x5537c6(0x1986),_0x5537c6(0x142b),_0x5537c6(0x2089),'license'];function _0x2e96d0(_0x3cd37d,_0x45726f,_0x12144c,_0x3ac1b1,_0x34979a,_0x1f2e5b,_0x749a2d,_0x17a5b7){const _0x8cab5b=_0x5537c6,_0x44bce8=this;_0x44bce8[_0x8cab5b(0x18ec)]=_0x543b5a()()[_0x8cab5b(0x1f31)](),_0x44bce8[_0x8cab5b(0xe76)]=_0x3ac1b1[_0x8cab5b(0x21e8)](),_0x44bce8[_0x8cab5b(0x8a5)]=_0x17a5b7,_0x44bce8[_0x8cab5b(0xbec)]=0x0,_0x44bce8[_0x8cab5b(0x2133)]=0x0,_0x44bce8[_0x8cab5b(0x1208)]=_0x4b1201,_0x44bce8['onMessageSave']=_0x622323,_0x44bce8['onMessageUpdate']=_0x4969b9,_0x34979a['on'](_0x8cab5b(0x248f),_0x44bce8['onMessageSave']),_0x34979a['on'](_0x8cab5b(0x135a),_0x44bce8[_0x8cab5b(0x4f0)]),_0x1f2e5b[_0x8cab5b(0x212b)]['get']({'fields':_0x8cab5b(0x8d5),'ToId':_0x44bce8[_0x8cab5b(0xe76)]['id'],'read':![],'nolimit':!![],'ChatGroupId':_0x8cab5b(0xd38)})[_0x8cab5b(0x1d77)][_0x8cab5b(0x1cb0)](function(_0x49aecd){const _0x2dbb7d=_0x8cab5b;return _0x49aecd&&_0x49aecd[_0x2dbb7d(0x184d)]&&(_0x44bce8[_0x2dbb7d(0xbec)]=_0x49aecd['count']),_0x1f2e5b[_0x2dbb7d(0xebe)][_0x2dbb7d(0x204c)]({'id':_0x44bce8[_0x2dbb7d(0xe76)]['id']})[_0x2dbb7d(0x1d77)];})[_0x8cab5b(0x1cb0)](function(_0x30320b){const _0x3fad94=_0x8cab5b,_0x1f4180=[],_0xb9f396=_0x30320b[_0x3fad94(0x2214)];for(let _0x446325=0x0;_0x446325<_0xb9f396['length'];_0x446325++){_0x1f4180[_0x3fad94(0x2785)](_0x1f2e5b[_0x3fad94(0x20da)]['getUnread']({'id':_0xb9f396[_0x446325]['id']})['$promise']);}return _0x12144c[_0x3fad94(0x223b)](_0x1f4180);})['then'](function(_0x255bac){const _0x5e146d=_0x8cab5b;for(let _0x101bd2=0x0;_0x101bd2<_0x255bac[_0x5e146d(0xfd0)];_0x101bd2++){_0x44bce8[_0x5e146d(0x2133)]+=_0x255bac[_0x101bd2][_0x5e146d(0x184d)];}})[_0x8cab5b(0x1c4)](function(_0x6c33ce){console['error'](_0x6c33ce);});function _0x13c00a(_0x2bbd8d){const _0x43c17c=_0x8cab5b,_0x38d255={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x43c17c(0x254)+_0x2bbd8d[_0x43c17c(0x8d5)]+_0x43c17c(0x790),'body':_0x2bbd8d[_0x43c17c(0x1ed9)]||'','focusOnclick':!![],'closeOnClick':!![]};_0x749a2d['show'](_0x45726f[_0x43c17c(0x25cc)]('QUICKPANEL.NEW_INTERNAL_MESSAGE'),_0x38d255);}function _0x3e6807(_0x508ef3){const _0x45c630=_0x8cab5b;_0x749a2d[_0x45c630(0x8e4)]()?_0x749a2d[_0x45c630(0x1248)]()[_0x45c630(0x1cb0)](function(){_0x13c00a(_0x508ef3);},function(_0x239c0f){const _0x31f983=_0x45c630;console[_0x31f983(0x218e)](_0x31f983(0xc17),_0x239c0f);}):console[_0x45c630(0x218e)](_0x45c630(0x276a));}function _0x4b1201(){const _0x47a078=_0x8cab5b;return _0x44bce8[_0x47a078(0xe76)]['role']===_0x47a078(0x1c60)||_0x44bce8[_0x47a078(0xe76)][_0x47a078(0x26e6)]===_0x47a078(0xebe)||_0x44bce8['currentUser'][_0x47a078(0x26e6)]===_0x47a078(0x1eff)&&_0x44bce8[_0x47a078(0xe76)]['showWebBar']!==0x0;}function _0x622323(_0x89d6e0){const _0x32683f=_0x8cab5b;_0x89d6e0[_0x32683f(0x20e4)]===_0x44bce8['currentUser']['id']&&_0x89d6e0[_0x32683f(0x8d5)]!==_0x44bce8['currentUser']['id']&&!_0x89d6e0[_0x32683f(0xfc1)]&&_0x89d6e0['ChatGroupId']&&(_0x44bce8[_0x32683f(0x2133)]++,_0x3e6807(_0x89d6e0)),_0x89d6e0[_0x32683f(0x20e4)]===_0x44bce8['currentUser']['id']&&!_0x89d6e0[_0x32683f(0x1fb5)]&&(_0x44bce8[_0x32683f(0xbec)]+=0x1,_0x3e6807(_0x89d6e0));}function _0x4969b9(_0x4661ab){const _0x4ee209=_0x8cab5b;_0x4661ab['ToId']===_0x44bce8['currentUser']['id']&&_0x4661ab[_0x4ee209(0xfc1)]&&_0x44bce8['unreadTotalMessages']>0x0&&!_0x4661ab[_0x4ee209(0x1fb5)]&&(_0x44bce8['unreadTotalMessages']-=0x1),_0x4661ab[_0x4ee209(0x20e4)]==_0x44bce8[_0x4ee209(0xe76)]['id']&&_0x4661ab['FromId']!==_0x44bce8[_0x4ee209(0xe76)]['id']&&_0x4661ab['ChatGroupId']&&_0x4661ab[_0x4ee209(0xfc1)]&&(_0x44bce8[_0x4ee209(0x2133)]>0x0&&_0x44bce8[_0x4ee209(0x2133)]--);}_0x3cd37d[_0x8cab5b(0x1d6)]('$destroy',function(){const _0x5c1995=_0x8cab5b;_0x34979a[_0x5c1995(0xfb8)](_0x5c1995(0x248f)),_0x34979a[_0x5c1995(0xfb8)]('chatInternalMessage:update');});}const _0x3f3c2b=_0x2e96d0;;_0xa29877['$inject']=['$scope',_0x5537c6(0x9bf),_0x5537c6(0x142b),'$timeout',_0x5537c6(0x1774),_0x5537c6(0x1986),'$mdSidenav','$q',_0x5537c6(0x1714),_0x5537c6(0x1ae),_0x5537c6(0x1196),_0x5537c6(0x2704)];function _0xa29877(_0xa26fc9,_0xe5bcac,_0x305989,_0xd62d1e,_0x5cf11d,_0x4951c9,_0x5bc7f7,_0x509ad4,_0x11f081,_0x568f4a,_0x42d0f3,_0x4bbde4){const _0x38917b=_0x5537c6,_0x5f144d=this;_0x5f144d[_0x38917b(0xe76)]=_0x5cf11d['getCurrentUser'](),_0x5f144d['user']=undefined,_0x5f144d[_0x38917b(0x1e30)]={'count':0x0,'rows':[]},_0x5f144d[_0x38917b(0x5e4)]=_0x543b5a()(0x0)[_0x38917b(0x1f31)](_0x38917b(0x2e8)),_0x5f144d[_0x38917b(0xf34)]={},_0x5f144d[_0x38917b(0x23fd)]='',_0x5f144d['disabled']=![],_0x5f144d[_0x38917b(0x1a8e)]=_0x351455,_0x5f144d[_0x38917b(0x2566)]=_0x357d3d,_0x5f144d[_0x38917b(0x134e)]=_0x36e937,_0x5f144d[_0x38917b(0x2842)]=_0x5d54d3,_0x5f144d['onMessageUpdate']=_0x17569b,_0x5f144d[_0x38917b(0xb1a)]=_0x2f9df7,_0x5f144d['webcall']=_0x24d386,_0x5f144d[_0x38917b(0x205d)]=_0x30f922,_0x5f144d[_0x38917b(0x29b3)]=_0x35a8b2,_0x4951c9['on'](_0x38917b(0x248f),_0x5f144d[_0x38917b(0x2842)]),_0x4951c9['on'](_0x38917b(0x135a),_0x5f144d['onMessageUpdate']),_0x4951c9['on'](_0x38917b(0x14c6),_0x5f144d[_0x38917b(0xb1a)]),_0x5bc7f7(_0x38917b(0x705))['onClose'](function(){const _0x18506c=_0x38917b;_0x5f144d[_0x18506c(0xebe)]=undefined;}),_0x305989[_0x38917b(0x212b)]['get']({'fields':'FromId','ToId':_0x5f144d[_0x38917b(0xe76)]['id'],'read':![],'nolimit':!![],'ChatGroupId':_0x38917b(0xd38)})[_0x38917b(0x1d77)][_0x38917b(0x1cb0)](function(_0x374b14){const _0x46345b=_0x38917b;_0x5f144d[_0x46345b(0xf34)]=_0x39641b()[_0x46345b(0x16da)](_0x374b14[_0x46345b(0x2214)],_0x46345b(0x8d5));})[_0x38917b(0x1c4)](function(){}),_0x305989[_0x38917b(0x212b)][_0x38917b(0x8e7)]()[_0x38917b(0x1d77)][_0x38917b(0x1cb0)](function(_0xd5b530){const _0x15a4ac=_0x38917b;_0x5f144d[_0x15a4ac(0x1e30)]=_0xd5b530;})[_0x38917b(0x1c4)](function(_0x568ff8){const _0x37d6da=_0x38917b;console[_0x37d6da(0x218e)](_0x568ff8);});function _0x351455(_0x212417){const _0x578d71=_0x38917b;_0x5f144d[_0x578d71(0x8a5)]=_0x212417;}function _0x5d54d3(_0x12584f){const _0x354c6c=_0x38917b;if(_0x12584f[_0x354c6c(0x20e4)]===_0x5f144d[_0x354c6c(0xe76)]['id']&&!_0x12584f[_0x354c6c(0x1fb5)]){_0x5f144d['user']&&_0x5f144d['user']['id']===_0x12584f[_0x354c6c(0x8d5)]?(_0x5f144d[_0x354c6c(0xebe)]['messages'][_0x354c6c(0x2214)]['push'](_0x12584f),_0x345dae(0x0),_0x305989[_0x354c6c(0x212b)]['update']({'id':_0x12584f['id'],'read':!![]})):_0x5f144d[_0x354c6c(0xf34)][_0x12584f[_0x354c6c(0x8d5)]]=_0x5f144d[_0x354c6c(0xf34)][_0x12584f[_0x354c6c(0x8d5)]]?_0x5f144d[_0x354c6c(0xf34)][_0x12584f['FromId']]+0x1:0x1;const _0x3eea91=_0x39641b()[_0x354c6c(0x13b4)](_0x5f144d[_0x354c6c(0x1e30)][_0x354c6c(0x2214)],{'id':_0x12584f[_0x354c6c(0x8d5)]});_0x3eea91&&(_0x3eea91[_0x354c6c(0x17ea)]=_0x12584f[_0x354c6c(0x24cb)],_0x3eea91[_0x354c6c(0x15d6)]=_0x12584f);}}function _0x17569b(_0x245b0f){const _0x1c733e=_0x38917b;if((_0x245b0f['FromId']===_0x5f144d[_0x1c733e(0xe76)]['id']||_0x245b0f[_0x1c733e(0x20e4)]===_0x5f144d[_0x1c733e(0xe76)]['id'])&&!_0x245b0f[_0x1c733e(0x1fb5)]){if(_0x5f144d[_0x1c733e(0xebe)]){const _0x3c0e76=_0x39641b()[_0x1c733e(0x13b4)](_0x5f144d[_0x1c733e(0xebe)][_0x1c733e(0xab2)]['rows'],{'id':_0x245b0f['id']});_0x3c0e76&&_0x39641b()[_0x1c733e(0x9c1)](_0x3c0e76,_0x245b0f);}const _0x6dfe20=_0x39641b()[_0x1c733e(0x13b4)](_0x5f144d[_0x1c733e(0x1e30)][_0x1c733e(0x2214)],{'id':_0x5f144d[_0x1c733e(0xe76)]['id']===_0x245b0f[_0x1c733e(0x8d5)]?_0x245b0f[_0x1c733e(0x20e4)]:_0x245b0f[_0x1c733e(0x8d5)]});_0x6dfe20&&_0x6dfe20[_0x1c733e(0x15d6)]&&_0x39641b()[_0x1c733e(0x9c1)](_0x6dfe20[_0x1c733e(0x15d6)],_0x245b0f),_0x245b0f[_0x1c733e(0x20e4)]===_0x5f144d[_0x1c733e(0xe76)]['id']&&(_0x245b0f[_0x1c733e(0xfc1)]&&_0x5f144d[_0x1c733e(0xf34)][_0x245b0f[_0x1c733e(0x8d5)]]>0x0&&(_0x5f144d[_0x1c733e(0xf34)][_0x245b0f[_0x1c733e(0x8d5)]]-=0x1));}}function _0x2f9df7(_0x5b0f51){const _0x15ac22=_0x38917b,_0x96ecfe=_0x39641b()[_0x15ac22(0x13b4)](_0x5f144d[_0x15ac22(0x1e30)][_0x15ac22(0x2214)],{'id':_0x5b0f51['id']});_0x96ecfe&&(!_0x39641b()[_0x15ac22(0x958)](_0x5b0f51[_0x15ac22(0xa28)])&&_0x96ecfe[_0x15ac22(0xa28)]!==_0x5b0f51['online']&&(_0x96ecfe['online']=_0x5b0f51[_0x15ac22(0xa28)]),!_0x39641b()[_0x15ac22(0x958)](_0x5b0f51[_0x15ac22(0x13d6)])&&_0x96ecfe['allowmessenger']!==_0x5b0f51[_0x15ac22(0x13d6)]&&(_0x96ecfe[_0x15ac22(0x13d6)]=_0x5b0f51[_0x15ac22(0x13d6)]));}function _0x357d3d(_0x37c8e5){const _0x2221b9=_0x38917b;if(_0x37c8e5){if(!_0x37c8e5[_0x2221b9(0x13d6)]&&_0x37c8e5[_0x2221b9(0x26e6)]===_0x2221b9(0x1eff)){_0xe5bcac['warning']({'title':_0x568f4a['instant'](_0x2221b9(0x1aa2)),'msg':_0x568f4a[_0x2221b9(0x25cc)](_0x2221b9(0x1afc))}),_0x5f144d['user']=undefined;return;}_0x5f144d['user']=_0x37c8e5,_0x5f144d[_0x2221b9(0x23fd)]='',_0x305989['chatInternalMessage'][_0x2221b9(0xbf7)]({'sort':'createdAt','FromId':_0x5f144d['currentUser']['id']+','+_0x37c8e5['id'],'ToId':_0x5f144d[_0x2221b9(0xe76)]['id']+','+_0x37c8e5['id'],'ChatGroupId':_0x2221b9(0xd38)})['$promise'][_0x2221b9(0x1cb0)](function(_0x55f7a8){const _0x262a30=_0x2221b9;if(_0x55f7a8&&_0x55f7a8['rows']){_0x5f144d[_0x262a30(0xebe)][_0x262a30(0xab2)]=_0x55f7a8;for(let _0x51b01e=0x0;_0x51b01e<_0x5f144d[_0x262a30(0xebe)][_0x262a30(0xab2)][_0x262a30(0x2214)][_0x262a30(0xfd0)];_0x51b01e+=0x1){_0x5f144d['user'][_0x262a30(0xab2)][_0x262a30(0x2214)][_0x51b01e][_0x262a30(0xfc1)]===![]&&_0x5f144d['user'][_0x262a30(0xab2)][_0x262a30(0x2214)][_0x51b01e][_0x262a30(0x20e4)]===_0x5f144d[_0x262a30(0xe76)]['id']&&_0x305989[_0x262a30(0x212b)][_0x262a30(0x687)]({'id':_0x5f144d[_0x262a30(0xebe)][_0x262a30(0xab2)][_0x262a30(0x2214)][_0x51b01e]['id'],'read':!![]});}}})[_0x2221b9(0x2e0)](function(){_0x345dae(0x0);});}else _0x5f144d[_0x2221b9(0xebe)]=undefined;}function _0x36e937(){const _0x41b47a=_0x38917b;_0x5f144d[_0x41b47a(0x379)]=!![];if(_0x5f144d[_0x41b47a(0x23fd)]===''){_0x5f144d[_0x41b47a(0x379)]=![];return;}const _0x4ff382={'FromId':_0x5f144d[_0x41b47a(0xe76)]['id'],'ToId':_0x5f144d[_0x41b47a(0xebe)]['id'],'body':_0x5f144d[_0x41b47a(0x23fd)],'read':![]};_0x5f144d['replyMessage']='',_0x305989[_0x41b47a(0x212b)][_0x41b47a(0x1c3f)](_0x4ff382)[_0x41b47a(0x1d77)][_0x41b47a(0x1cb0)](function(_0x2fa91a){const _0x2200c2=_0x41b47a;_0x5f144d[_0x2200c2(0xebe)][_0x2200c2(0xab2)][_0x2200c2(0x2214)]['push'](_0x2fa91a),_0x5f144d[_0x2200c2(0xebe)][_0x2200c2(0x17ea)]=_0x2fa91a[_0x2200c2(0x24cb)],_0x5f144d[_0x2200c2(0xebe)][_0x2200c2(0x15d6)]=_0x2fa91a,_0x345dae(0x190);})[_0x41b47a(0x1c4)](function(){})[_0x41b47a(0x2e0)](function(){const _0xb934a6=_0x41b47a;_0x5f144d[_0xb934a6(0x379)]=![];});}function _0x345dae(_0x5a49c9){const _0x390f7b=_0x38917b,_0x5f2ede=angular[_0x390f7b(0x1853)]('#chat-dialog');_0xd62d1e(function(){_0x5f2ede['animate']({'scrollTop':_0x5f2ede[0x0]['scrollHeight']},_0x5a49c9);},0x0);}function _0x51ebdf(_0x24cadc){const _0x258209=_0x38917b;return!_0x39641b()[_0x258209(0x958)](_0x24cadc)?_0x24cadc[_0x258209(0x288f)](/[^\w.+#*-]+/g,''):'';}function _0x24d386(_0x4bdc4c){const _0x1c569f=_0x38917b;_0x42d0f3[_0x1c569f(0x692)]('webrtc::call',{'target':_0x51ebdf(_0x4bdc4c)});}function _0x30f922(_0x2987b3){const _0x541fe3=_0x38917b;return _0x462c65(_0x541fe3(0x25de)+(_0x5f144d[_0x541fe3(0xebe)][_0x541fe3(0xd3f)]||_0x541fe3(0x13d0))+_0x541fe3(0x1852)+_0x51ebdf(_0x2987b3));}function _0x35a8b2(_0x2e0f7f){const _0x1a1e77=_0x38917b;return _0x462c65(_0x1a1e77(0x25de)+(_0x5f144d[_0x1a1e77(0xebe)]['phoneBarRemoteControlPort']||'9888')+_0x1a1e77(0xce2)+_0x51ebdf(_0x2e0f7f));}function _0x462c65(_0x53d9dd){const _0x34a9d0=_0x38917b;return _0x4bbde4[_0x34a9d0(0xbf7)](_0x53d9dd)['success'](function(){const _0x5f23ad=_0x34a9d0;_0xe5bcac[_0x5f23ad(0x829)]({'title':_0x5f23ad(0x16a8),'msg':_0x5f23ad(0x17af)});})[_0x34a9d0(0x218e)](function(){const _0xb23e00=_0x34a9d0;_0xe5bcac[_0xb23e00(0x218e)]({'title':_0xb23e00(0x1100),'msg':_0x568f4a[_0xb23e00(0x25cc)](_0xb23e00(0x1873))});});}_0xa26fc9[_0x38917b(0x1d6)](_0x38917b(0x291c),function(){const _0x769185=_0x38917b;_0x4951c9[_0x769185(0xfb8)](_0x769185(0x248f)),_0x4951c9[_0x769185(0xfb8)](_0x769185(0x135a)),_0x4951c9[_0x769185(0xfb8)](_0x769185(0x14c6));});}const _0x59086b=_0xa29877;;_0x3e87d6['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x406),'$location',_0x5537c6(0xcb9),'toasty',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x716),_0x5537c6(0x1272)];function _0x3e87d6(_0x228a96,_0x1b616a,_0x2e5221,_0xf2bfcb,_0x41ff7a,_0x271dbe,_0x5f128f,_0x338c79,_0x400aa4){const _0x453aaa=_0x5537c6,_0x69501a=this;_0x69501a[_0x453aaa(0x1a7c)]=[],_0x69501a[_0x453aaa(0x1386)]=_0x453aaa(0xd04),_0x69501a[_0x453aaa(0x716)]=angular['copy'](_0x338c79),_0x69501a[_0x453aaa(0xe76)]=_0x5f128f[_0x453aaa(0x21e8)](),_0x69501a[_0x453aaa(0x1272)]=_0x400aa4,_0x69501a[_0x453aaa(0x118d)]=!![];!_0x69501a[_0x453aaa(0x716)]&&(_0x69501a['group']={'write':!![],'members':[]},_0x69501a['title']=_0x453aaa(0x2455));_0x69501a[_0x453aaa(0x2927)]=_0xa2264,_0x69501a[_0x453aaa(0xda0)]=_0x53e3ec,_0x69501a[_0x453aaa(0x2007)]=_0x58f173;function _0x31e3eb(_0x2672b7){const _0x4eab9e=_0x453aaa,_0x3865bd=_0x2672b7[_0x4eab9e(0x1680)]();return function _0x19562e(_0x1092ea){const _0x388179=_0x4eab9e,_0x340987=_0x1092ea[_0x388179(0x16b6)][_0x388179(0x1680)]();return _0x340987[_0x388179(0xd8a)](_0x3865bd)!=-0x1;};}function _0x58f173(_0x1afa3b){const _0x55452a=_0x453aaa;return _0x1afa3b?_0x69501a[_0x55452a(0x1272)][_0x55452a(0x2214)][_0x55452a(0x1c99)](_0x31e3eb(_0x1afa3b)):[];}function _0xa2264(){const _0x1dd03c=_0x453aaa;let _0x1a9ad6;return _0x69501a['errors']=[],_0x271dbe['chatGroup']['save']({'name':_0x69501a[_0x1dd03c(0x716)][_0x1dd03c(0x16b6)],'write':_0x69501a[_0x1dd03c(0x716)][_0x1dd03c(0x12eb)]})[_0x1dd03c(0x1d77)][_0x1dd03c(0x1cb0)](function(_0x1ed376){const _0x538ebf=_0x1dd03c,_0x159d83=_0x39641b()[_0x538ebf(0x1de2)](_0x69501a[_0x538ebf(0x716)][_0x538ebf(0x1272)],'id');return _0x159d83[_0x538ebf(0xf63)](_0x69501a[_0x538ebf(0xe76)]['id']),_0x1a9ad6=_0x1ed376,_0x271dbe[_0x538ebf(0x20da)][_0x538ebf(0xf59)]({'id':_0x1a9ad6['id'],'ids':_0x159d83})[_0x538ebf(0x1d77)];})['then'](function(){const _0x4d3e89=_0x1dd03c;_0x41ff7a[_0x4d3e89(0x829)]({'title':_0x4d3e89(0x6ab),'msg':_0x1a9ad6[_0x4d3e89(0x16b6)]+'\x20has\x20been\x20saved!'}),_0x53e3ec(_0x1a9ad6);})['catch'](function(_0x511208){const _0x1eb35e=_0x1dd03c;_0x41ff7a[_0x1eb35e(0x218e)]({'title':_0x511208['status']?_0x1eb35e(0xeb9)+_0x511208[_0x1eb35e(0x291)]+'\x20-\x20'+_0x511208['statusText']:'api.chatQueue.update','msg':_0x511208[_0x1eb35e(0x25c)]?JSON[_0x1eb35e(0x2701)](_0x511208['data'][_0x1eb35e(0x155e)]):_0x511208['toString']()});});}function _0x53e3ec(_0x231f11){const _0xdab340=_0x453aaa;_0xf2bfcb[_0xdab340(0x1426)](_0x231f11);}}const _0x3f2dc7=_0x3e87d6;;const _0x28be6d=_0x5074a3['p']+_0x5537c6(0x9ea);;const _0x60c7=_0x5074a3['p']+'src/js/modules/quick-panel/tabs/groups/info/dialog.html/dialog.html';;_0x98d107[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x22bf),_0x5537c6(0x2168),'$mdDialog',_0x5537c6(0x417),'$q',_0x5537c6(0x1774),_0x5537c6(0x142b),'socket','toasty'];function _0x98d107(_0x5f38d0,_0x3c97c9,_0x30e2ff,_0x8fd5c,_0xbb60ab,_0x474b8c,_0x143b67,_0x41f311,_0x404dab,_0x10fcb7){const _0x245d23=_0x5537c6,_0x4e4514=this;_0x4e4514[_0x245d23(0xe76)]=_0x143b67['getCurrentUser'](),_0x4e4514[_0x245d23(0x1fc5)]={},_0x4e4514[_0x245d23(0x1a1)]={},_0x4e4514[_0x245d23(0xca8)],_0x4e4514['group'],_0x4e4514['init']=_0x558b67,_0x4e4514['back']=_0x56c635,_0x4e4514['addGroup']=_0xf8b758,_0x4e4514[_0x245d23(0x1c1c)]=_0x30a870,_0x4e4514[_0x245d23(0x100b)]=_0x1d74fc,_0x4e4514[_0x245d23(0xd40)]=_0x33d4cc,_0x4e4514['toggleChat']=_0x10466e,_0x4e4514['reply']=_0x399169,_0x404dab['on'](_0x245d23(0x248f),_0xefb95b),_0x404dab['on'](_0x245d23(0x135a),_0x415c20),_0x404dab['on'](_0x245d23(0xdaf),_0x5a75d3),_0xbb60ab(_0x245d23(0x705))['onClose'](_0x56c635);function _0x5a75d3(_0x22a355){const _0x3031bb=_0x245d23;_0x4e4514[_0x3031bb(0x1a1)][_0x22a355['id']]&&delete _0x4e4514[_0x3031bb(0x1a1)][_0x22a355['id']];}function _0x415c20(_0x3e1415){const _0x1cc88c=_0x245d23;_0x3e1415['ToId']==_0x4e4514[_0x1cc88c(0xe76)]['id']&&_0x3e1415['FromId']!==_0x4e4514[_0x1cc88c(0xe76)]['id']&&_0x3e1415[_0x1cc88c(0x1fb5)]&&_0x3e1415[_0x1cc88c(0xfc1)]&&(_0x4e4514[_0x1cc88c(0x1a1)][_0x3e1415['ChatGroupId']]['unreadGroupMessages']>0x0&&_0x4e4514['groups'][_0x3e1415['ChatGroupId']]['unreadGroupMessages']--,_0x4e4514[_0x1cc88c(0x716)]['messages'][_0x3e1415['id']]&&(_0x4e4514[_0x1cc88c(0x716)][_0x1cc88c(0xab2)][_0x3e1415['id']][_0x1cc88c(0xfc1)]=!![]));}function _0xefb95b(_0x24ed98){const _0x4f8114=_0x245d23;if(!_0x4e4514[_0x4f8114(0x716)]&&_0x24ed98[_0x4f8114(0x20e4)]===_0x4e4514[_0x4f8114(0xe76)]['id']&&_0x24ed98['FromId']!==_0x4e4514['currentUser']['id']&&!_0x24ed98[_0x4f8114(0xfc1)]&&_0x24ed98[_0x4f8114(0x1fb5)]){const _0x34d29c=_0x4e4514[_0x4f8114(0x1a1)][_0x24ed98[_0x4f8114(0x1fb5)]];if(_0x34d29c)!_0x34d29c[_0x4f8114(0x1fc5)]&&(_0x34d29c['unreadGroupMessages']=0x0),_0x34d29c[_0x4f8114(0x1fc5)]++;else return _0x41f311['chatGroup'][_0x4f8114(0xbf7)]({'id':_0x24ed98[_0x4f8114(0x1fb5)]})['$promise'][_0x4f8114(0x1cb0)](function(_0x158d0d){const _0x29fcaa=_0x4f8114;_0x158d0d[_0x29fcaa(0x1fc5)]=0x1,_0x4e4514[_0x29fcaa(0x1a1)][_0x158d0d['id']]=_0x158d0d;});}_0x4e4514[_0x4f8114(0x716)]&&_0x24ed98[_0x4f8114(0x1fb5)]===_0x4e4514['group']['id']&&_0x24ed98['ToId']===_0x4e4514[_0x4f8114(0xe76)]['id']&&_0x41f311[_0x4f8114(0x212b)][_0x4f8114(0x687)]({'id':_0x24ed98['id'],'read':!![]})['$promise'][_0x4f8114(0x1cb0)](function(){_0x5e54db(_0x24ed98);});}function _0x558b67(_0x193f10){const _0x321e63=_0x245d23;return _0x4e4514[_0x321e63(0x8a5)]=_0x193f10,_0x41f311[_0x321e63(0xebe)][_0x321e63(0x204c)]({'id':_0x4e4514[_0x321e63(0xe76)]['id']})['$promise'][_0x321e63(0x1cb0)](function(_0x2fffb7){const _0x27ee2b=_0x321e63,_0x3e27ab=[];for(let _0x1a64ee=0x0;_0x1a64ee<_0x2fffb7[_0x27ee2b(0x2214)][_0x27ee2b(0xfd0)];_0x1a64ee++){_0x2fffb7[_0x27ee2b(0x2214)][_0x1a64ee][_0x27ee2b(0x1fc5)]=0x0,_0x4e4514[_0x27ee2b(0x1a1)][_0x2fffb7[_0x27ee2b(0x2214)][_0x1a64ee]['id']]=_0x2fffb7[_0x27ee2b(0x2214)][_0x1a64ee],_0x3e27ab[_0x27ee2b(0x2785)](_0x41f311[_0x27ee2b(0x20da)]['getUnread']({'id':_0x2fffb7['rows'][_0x1a64ee]['id']})[_0x27ee2b(0x1d77)]);}return _0x474b8c['all'](_0x3e27ab);})[_0x321e63(0x1cb0)](function(_0x2dfea9){const _0x3f6aba=_0x321e63;for(let _0x415164=0x0;_0x415164<_0x2dfea9[_0x3f6aba(0xfd0)];_0x415164++){_0x4e4514[_0x3f6aba(0x1a1)][_0x2dfea9[_0x415164]['id']]['unreadGroupMessages']+=_0x2dfea9[_0x415164][_0x3f6aba(0x184d)];}})[_0x321e63(0x1c4)](function(_0xf550f6){const _0x3061a9=_0x321e63;console[_0x3061a9(0x218e)](_0xf550f6);});}function _0x1d74fc(){const _0x2debd9=_0x245d23;return _0x39641b()[_0x2debd9(0x27aa)](_0x4e4514[_0x2debd9(0x1a1)]);}function _0x33d4cc(_0x6e6917,_0x3440ac){const _0xa6312e=_0x245d23;_0x8fd5c[_0xa6312e(0xe27)]({'controller':'ShowMessageInfoDialogController','controllerAs':'vm','templateUrl':_0x60c7,'parent':angular['element'](_0x3c97c9[_0xa6312e(0x1ed9)]),'targetEvent':_0x6e6917,'clickOutsideToClose':!![],'locals':{'message':_0x3440ac},'resolve':{'data':function(){const _0x396b65=_0xa6312e,_0x132f73={'messages':[]};return _0x41f311['chatInternalMessage'][_0x396b65(0xbf7)]({'ChatInternalMessageId':_0x3440ac['id']})[_0x396b65(0x1d77)][_0x396b65(0x1cb0)](function(_0xb487aa){const _0x4c0b56=_0x396b65,_0x5d6875=[];_0x132f73[_0x4c0b56(0xab2)]=_0xb487aa[_0x4c0b56(0x2214)],_0x132f73[_0x4c0b56(0xab2)][_0x4c0b56(0xf63)](_0x3440ac);for(let _0x2e64ba=0x0;_0x2e64ba<_0x132f73[_0x4c0b56(0xab2)][_0x4c0b56(0xfd0)];_0x2e64ba++){_0x5d6875[_0x4c0b56(0x2785)](_0x41f311[_0x4c0b56(0xebe)]['get']({'id':_0x132f73[_0x4c0b56(0xab2)][_0x2e64ba]['ToId'],'fields':'id,name,fullname,userpic'})[_0x4c0b56(0x1d77)]);}return _0x474b8c['all'](_0x5d6875);})['then'](function(_0x4bfe59){const _0x2b37c7=_0x396b65;return _0x132f73[_0x2b37c7(0x1e30)]=_0x4bfe59,_0x132f73;})[_0x396b65(0x1c4)](function(_0x236a16){const _0x2314c6=_0x396b65;_0x236a16&&console[_0x2314c6(0x218e)](_0x236a16);});}}})[_0xa6312e(0x1cb0)](function(){})['catch'](function(_0x95925c){const _0x2bbaeb=_0xa6312e;_0x95925c&&console[_0x2bbaeb(0x218e)](_0x95925c['message']);});}function _0x399169(){const _0x2901e3=_0x245d23;if(!_0x4e4514[_0x2901e3(0x23fd)])return;const _0x771eba={'id':_0x4e4514[_0x2901e3(0x716)]['id'],'FromId':_0x4e4514[_0x2901e3(0xe76)]['id'],'ToId':_0x4e4514['currentUser']['id'],'body':_0x4e4514[_0x2901e3(0x23fd)],'read':!![]},_0x295329=[];_0x4e4514['replyMessage']='',_0x41f311[_0x2901e3(0x20da)]['addMessage'](_0x771eba)[_0x2901e3(0x1d77)]['then'](function(_0x9e81d6){const _0x5337bc=_0x2901e3;_0x771eba[_0x5337bc(0xfc1)]=![],_0x771eba[_0x5337bc(0x2855)]=_0x9e81d6['id'];for(let _0x54af33=0x0;_0x54af33<_0x4e4514[_0x5337bc(0x716)][_0x5337bc(0x1272)][_0x5337bc(0xfd0)];_0x54af33++){_0x4e4514['group'][_0x5337bc(0x1272)][_0x54af33]['id']!==_0x4e4514[_0x5337bc(0xe76)]['id']&&(_0x771eba['ToId']=_0x4e4514[_0x5337bc(0x716)]['members'][_0x54af33]['id'],_0x295329['push'](_0x41f311['chatGroup']['addMessage'](angular[_0x5337bc(0x17fe)](_0x771eba))['$promise']));}return _0x474b8c[_0x5337bc(0x223b)](_0x295329);})[_0x2901e3(0x1c4)](function(_0x562773){const _0x460aa4=_0x2901e3;console[_0x460aa4(0x1b4f)](_0x562773);});}function _0x5e54db(_0x1ac200){const _0x370ebf=_0x245d23;_0x4e4514[_0x370ebf(0x716)][_0x370ebf(0xab2)][_0x1ac200['id']]=_0x1ac200,_0x23f4ae(0x190);}function _0x56c635(){const _0x4996e8=_0x245d23;delete _0x4e4514[_0x4996e8(0x716)];}function _0x23f4ae(_0x2ef29f){const _0x4370fa=_0x245d23,_0x4d9166=angular['element'](_0x4370fa(0x183a));_0x30e2ff(function(){const _0x3bea4d=_0x4370fa;_0x4d9166[_0x3bea4d(0xb53)]({'scrollTop':_0x4d9166[0x0]['scrollHeight']},_0x2ef29f);},0x0);}function _0x10466e(_0x271408){const _0xc5c5a6=_0x245d23;_0x4e4514[_0xc5c5a6(0x716)]={'id':_0x271408['id'],'write':_0x271408[_0xc5c5a6(0x12eb)],'messages':{}},_0x41f311[_0xc5c5a6(0x20da)]['getMembers']({'id':_0x271408['id'],'fields':_0xc5c5a6(0x1d34)})[_0xc5c5a6(0x1d77)]['then'](function(_0x4a2e11){const _0x1df423=_0xc5c5a6;return _0x4e4514['group']['membersByKeys']=_0x39641b()[_0x1df423(0x2631)](_0x4a2e11['rows'],'id'),_0x4e4514[_0x1df423(0x716)]['members']=_0x39641b()[_0x1df423(0x2128)](_0x4a2e11['rows'],[{'id':_0x4e4514[_0x1df423(0xe76)]['id']}],'id'),_0x4e4514[_0x1df423(0xca8)]=_0x39641b()[_0x1df423(0x1de2)](_0x4e4514[_0x1df423(0x716)]['members'],_0x1df423(0x1d14))[_0x1df423(0x1f66)](',\x20'),_0x41f311[_0x1df423(0x20da)]['getMessages']({'id':_0x271408['id'],'nolimit':!![]})['$promise'];})['then'](function(_0x3d9e45){const _0x47bf1d=_0xc5c5a6,_0x57971b=[];let _0x266c78;for(let _0xa1b53b=0x0;_0xa1b53b<_0x3d9e45[_0x47bf1d(0x184d)];_0xa1b53b++){_0x3d9e45[_0x47bf1d(0x2214)][_0xa1b53b][_0x47bf1d(0x20e4)]===_0x4e4514[_0x47bf1d(0xe76)]['id']&&(_0x266c78=_0x3d9e45['rows'][_0xa1b53b],_0x4e4514['group'][_0x47bf1d(0xab2)][_0x266c78['id']]=_0x266c78,_0x3d9e45[_0x47bf1d(0x2214)][_0xa1b53b]['ToId']==_0x4e4514['currentUser']['id']&&_0x3d9e45[_0x47bf1d(0x2214)][_0xa1b53b][_0x47bf1d(0x8d5)]!==_0x4e4514[_0x47bf1d(0xe76)]['id']&&!_0x266c78[_0x47bf1d(0xfc1)]&&_0x57971b[_0x47bf1d(0x2785)](_0x41f311[_0x47bf1d(0x212b)]['update']({'id':_0x266c78['id'],'read':!![]})));}return _0x474b8c[_0x47bf1d(0x223b)](_0x57971b);})[_0xc5c5a6(0x1cb0)](function(){_0x23f4ae(0x190);})['catch'](function(_0x40a1be){const _0x51fa71=_0xc5c5a6;console[_0x51fa71(0x218e)](_0x40a1be['message']);});}function _0x30a870(_0x393bb3,_0x413841){const _0x27027e=_0x245d23,_0x5df4e0=_0x8fd5c[_0x27027e(0x1551)]()[_0x27027e(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20group?')[_0x27027e(0x49e)](_0x27027e(0x908)+_0x393bb3[_0x27027e(0x16b6)]+_0x27027e(0x1200)+_0x27027e(0x1b6))[_0x27027e(0x15ad)](_0x27027e(0x1898))[_0x27027e(0x728)](_0x413841)['ok']('OK')[_0x27027e(0x696)](_0x27027e(0x24ba));_0x8fd5c[_0x27027e(0xe27)](_0x5df4e0)[_0x27027e(0x1cb0)](function(){const _0x546624=_0x27027e;return _0x41f311[_0x546624(0x20da)]['delete']({'id':_0x393bb3['id']})['$promise'];})[_0x27027e(0x1cb0)](function(){const _0x189355=_0x27027e;delete _0x4e4514[_0x189355(0x1a1)][_0x393bb3['id']],_0x10fcb7[_0x189355(0x829)]({'title':_0x189355(0x80d),'msg':_0x393bb3[_0x189355(0x16b6)]+_0x189355(0x3f5)});})['catch'](function(_0x1d81d3){const _0x23786b=_0x27027e;_0x1d81d3&&_0x10fcb7[_0x23786b(0x218e)]({'title':_0x1d81d3[_0x23786b(0x291)]?_0x23786b(0xeb9)+_0x1d81d3[_0x23786b(0x291)]+_0x23786b(0x1657)+_0x1d81d3[_0x23786b(0xc22)]:_0x23786b(0xb67),'msg':_0x1d81d3['data']?JSON[_0x23786b(0x2701)](_0x1d81d3['data'][_0x23786b(0x155e)]):_0x1d81d3[_0x23786b(0x147f)]()});});}function _0xf8b758(_0x47270b,_0x32ba86){const _0xa67320=_0x245d23;_0x8fd5c[_0xa67320(0xe27)]({'controller':_0xa67320(0x69a),'controllerAs':'vm','templateUrl':_0x28be6d,'parent':angular[_0xa67320(0x1853)](_0x3c97c9['body']),'targetEvent':_0x32ba86,'clickOutsideToClose':!![],'locals':{'group':_0x47270b,'me':_0x4e4514[_0xa67320(0xe76)],'license':null,'setting':null},'resolve':{'members':function(){const _0x23d563=_0xa67320;return _0x143b67['hasRole'](_0x23d563(0x1c60))?_0x41f311[_0x23d563(0xebe)][_0x23d563(0xbf7)]({'role':_0x23d563(0x1eff)})['$promise']:_0x41f311['userProfile']['getResources']({'id':_0x143b67[_0x23d563(0x21e8)]()[_0x23d563(0x13c1)],'section':_0x23d563(0x2536),'role':'agent'})['$promise'];}}})[_0xa67320(0x1cb0)](function(_0x8fe00d){const _0x345601=_0xa67320;_0x8fe00d&&(_0x4e4514[_0x345601(0x1a1)][_0x8fe00d['id']]=_0x8fe00d);})[_0xa67320(0x1c4)](function(_0x1d589e){const _0x4304e5=_0xa67320;_0x1d589e&&console[_0x4304e5(0x218e)](_0x1d589e[_0x4304e5(0x155e)]);});}_0x5f38d0['$on'](_0x245d23(0x291c),function(){const _0x57bd40=_0x245d23;_0x404dab[_0x57bd40(0xfb8)](_0x57bd40(0x248f)),_0x404dab[_0x57bd40(0xfb8)](_0x57bd40(0x135a)),_0x404dab[_0x57bd40(0xfb8)](_0x57bd40(0xdaf));});}const _0x429cf5=_0x98d107;;_0x3ce301[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0x142b),'Auth','data'];function _0x3ce301(_0x2288e4,_0x360e55,_0x12fd2d,_0x370554,_0x2cf77a,_0x49b909,_0x1ce5e8,_0x47e627){const _0x13476d=_0x5537c6,_0x1238a3=this;_0x1238a3[_0x13476d(0x25c)]=_0x47e627,_0x1238a3[_0x13476d(0x1386)]=_0x13476d(0x117c);function _0xe0c453(){_0x370554['hide']();}_0x1238a3['closeDialog']=_0xe0c453;}const _0x1cf0b9=_0x3ce301;;_0x18eb66['$inject']=[_0x5537c6(0x1f2a)];function _0x18eb66(_0x40f73a){const _0x2d9f85=_0x5537c6;_0x40f73a[_0x2d9f85(0x4e7)]('app/quick-panel');}angular['module'](_0x5537c6(0x10bd),[])[_0x5537c6(0xa60)](_0x18eb66)['controller'](_0x5537c6(0x207e),_0x3f3c2b)[_0x5537c6(0x6e5)](_0x5537c6(0x1d43),_0x59086b)['controller']('CreateOrEditChatGroupDialogController',_0x3f2dc7)['controller'](_0x5537c6(0x3eb),_0x429cf5)[_0x5537c6(0x6e5)](_0x5537c6(0x1e8b),_0x1cf0b9);;_0x16f2d4[_0x5537c6(0x15b6)]=[_0x5537c6(0x1774),'$cookies'];function _0x16f2d4(_0x1dbfe9,_0x1b39e1){const _0x5f555e=_0x5537c6,_0x2e5aa7=this;function _0x47df66(){const _0x4ae4b2=a0_0x5cbd;_0x1b39e1[_0x4ae4b2(0x135f)](_0x4ae4b2(0xe85)+_0x2e5aa7[_0x4ae4b2(0xe76)]['id'],!![]);}_0x2e5aa7[_0x5f555e(0xe76)]=_0x1dbfe9[_0x5f555e(0x21e8)](),_0x2e5aa7[_0x5f555e(0x17ad)]=_0x1b39e1[_0x5f555e(0xbf7)](_0x5f555e(0xe85)+_0x2e5aa7[_0x5f555e(0xe76)]['id'])||![],_0x2e5aa7[_0x5f555e(0x1332)]=_0x47df66;}const _0xe7d7ab=_0x16f2d4;;_0x13fefe[_0x5537c6(0x15b6)]=[_0x5537c6(0x1f2a)];function _0x13fefe(_0x4c2187){const _0x2743ed=_0x5537c6;_0x4c2187[_0x2743ed(0x4e7)](_0x2743ed(0x704));}angular[_0x5537c6(0x9ab)]('app.header',[])[_0x5537c6(0xa60)](_0x13fefe)[_0x5537c6(0x6e5)](_0x5537c6(0x13cc),_0xe7d7ab);;_0x4e8c4a[_0x5537c6(0x15b6)]=[_0x5537c6(0x1774),'$cookies'];function _0x4e8c4a(_0x15c77a,_0x2d5427){const _0x9318f5=_0x5537c6,_0x1fdec3=this;function _0x4f7851(){const _0x154d56=a0_0x5cbd;_0x2d5427[_0x154d56(0x135f)](_0x154d56(0x11b5)+_0x1fdec3['currentUser']['id'],!![]);}_0x1fdec3['currentUser']=_0x15c77a[_0x9318f5(0x21e8)](),_0x1fdec3[_0x9318f5(0x582)]=_0x2d5427[_0x9318f5(0xbf7)](_0x9318f5(0x11b5)+_0x1fdec3[_0x9318f5(0xe76)]['id'])||![],_0x1fdec3[_0x9318f5(0x14f8)]=_0x4f7851;}const _0x519c31=_0x4e8c4a;;_0x3e135f[_0x5537c6(0x15b6)]=[_0x5537c6(0x1f2a)];function _0x3e135f(_0x24fab1){const _0x2a24ee=_0x5537c6;_0x24fab1[_0x2a24ee(0x4e7)](_0x2a24ee(0xe64));}angular[_0x5537c6(0x9ab)]('app.footer',[])[_0x5537c6(0xa60)](_0x3e135f)['controller']('FooterController',_0x519c31);var _0x3415aa=_0x5074a3(0x1cbe),_0x248e16=_0x5074a3(0x2303),_0x259cd1=_0x5074a3(0xde6),_0x1c7728=_0x5074a3(0x321),_0xaaa869=_0x5074a3(0x1c92),_0x5d7320=_0x5074a3(0x2361),_0x1621d1=_0x5074a3(0xdd5),_0x4ed8e9=_0x5074a3(0x9d6),_0x29b99f=_0x5074a3(0x20aa),_0x2e0b83=_0x5074a3(0x1ac1),_0x4739be=_0x5074a3(0x15c3),_0x59e041=_0x5074a3(0x154a),_0x5e2af0=_0x5074a3(0x2154),_0x2072ef=_0x5074a3(0x23a1),_0x223c06=_0x5074a3(0xa7c),_0x52814e=_0x5074a3(0x1eaf),_0x57be31=_0x5074a3(0x444),_0x5b0989=_0x5074a3(0x1c4),_0x1eef8d=_0x5074a3(0x121a),_0x7f9815=_0x5074a3(0x1be),_0xc2aa15=_0x5074a3(0xd3e);;const _0x581555=_0x5074a3['p']+_0x5537c6(0x4da);;const _0x3dee78=_0x5074a3['p']+_0x5537c6(0xe8f);;const _0x2da774=_0x5074a3['p']+_0x5537c6(0x24fb);;const _0x34d5a4=_0x5074a3['p']+'src/js/modules/main/apps/dashboards/views/general/user/mail/user.general.mail.html/user.general.mail.html';;const _0x11cc88=_0x5074a3['p']+_0x5537c6(0x22c0);;const _0x2d8f78=_0x5074a3['p']+'src/js/modules/main/apps/dashboards/views/general/user/openchannel/user.general.openchannel.html/user.general.openchannel.html';;const _0x6d35e7=_0x5074a3['p']+_0x5537c6(0xa1b);;const _0xead538=_0x5074a3['p']+'src/js/modules/main/apps/dashboards/views/general/user/whatsapp/user.general.whatsapp.html/user.general.whatsapp.html';;_0x4c3d3c[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1986),_0x5537c6(0x9d0),_0x5537c6(0x2137)];function _0x4c3d3c(_0x36adcb,_0x470452,_0x178b77,_0x531858){const _0x18b5aa=_0x5537c6,_0x505250=this,_0x3f5645=[];_0x505250[_0x18b5aa(0xa60)]={'format':_0x18b5aa(0x1530),'unit':_0x18b5aa(0x479),'trim':![]},_0x505250['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x18b5aa(0x1c61),'avgTalkTime':_0x18b5aa(0x1c61),'answerRate':0x0,'abandonRate':0x0},_0x505250['chatWebsites']=_0x531858?_0x39641b()['keyBy'](_0x531858[_0x18b5aa(0x2214)]?_0x531858['rows']:[],'id'):{},_0x505250['onSaveChatInteraction']=_0x56f2ca,_0x505250[_0x18b5aa(0xf10)]=_0x15fa49,_0x470452['on'](_0x18b5aa(0x14b6),_0x505250[_0x18b5aa(0x1ce7)]),_0x470452['on'](_0x18b5aa(0x300),_0x505250[_0x18b5aa(0xf10)]),_0x5a940b();function _0x5ec2bb(_0x3a8244,_0x4678e8){const _0x232c82=_0x18b5aa;!_0x3a8244['closed']&&!_0x3a8244[_0x232c82(0x21ab)]&&_0x4678e8&&(_0x505250[_0x232c82(0x26c0)][_0x232c82(0x26b6)]+=0x1);!_0x3a8244[_0x232c82(0x22aa)]&&_0x3a8244[_0x232c82(0x21ab)]&&!_0x39641b()[_0x232c82(0x250a)](_0x3f5645,_0x3a8244['id'])&&(_0x505250[_0x232c82(0x26c0)]['talking']+=0x1,_0x3f5645[_0x232c82(0x2785)](_0x3a8244['id']),!_0x4678e8&&_0x505250['inbound'][_0x232c82(0x26b6)]&&(_0x505250['inbound'][_0x232c82(0x26b6)]-=0x1));if(_0x3a8244[_0x232c82(0x22aa)]&&_0x3a8244[_0x232c82(0x1746)]===_0x232c82(0x20fe))_0x505250[_0x232c82(0x26c0)][_0x232c82(0x20fe)]+=0x1,!_0x4678e8&&_0x505250[_0x232c82(0x26c0)][_0x232c82(0x26b6)]&&(_0x505250[_0x232c82(0x26c0)][_0x232c82(0x26b6)]-=0x1);else{if(_0x3a8244[_0x232c82(0x22aa)]&&!_0x3a8244[_0x232c82(0x21ab)]&&_0x3a8244[_0x232c82(0x1746)])_0x505250[_0x232c82(0x26c0)]['unmanaged']+=0x1,!_0x4678e8&&_0x505250[_0x232c82(0x26c0)][_0x232c82(0x26b6)]&&(_0x505250[_0x232c82(0x26c0)]['waiting']-=0x1);else _0x3a8244[_0x232c82(0x22aa)]&&_0x3a8244['UserId']&&(_0x505250['inbound']['sumBillable']+=_0x543b5a()(_0x3a8244['closedAt'])[_0x232c82(0xd42)](_0x543b5a()(_0x3a8244['read1stAt']),_0x505250['config'][_0x232c82(0x2510)]),_0x505250['inbound'][_0x232c82(0x1bfa)]+=_0x543b5a()(_0x3a8244[_0x232c82(0x1785)])['diff'](_0x543b5a()(_0x3a8244[_0x232c82(0x24cb)]),_0x505250[_0x232c82(0xa60)][_0x232c82(0x2510)]),_0x505250['inbound'][_0x232c82(0x1175)]+=0x1,!_0x4678e8&&_0x505250[_0x232c82(0x26c0)][_0x232c82(0x192a)]&&(_0x505250[_0x232c82(0x26c0)]['talking']-=0x1));}_0x4678e8&&(_0x505250['inbound']['total']+=0x1);}function _0x4a1fb9(){const _0x50521f=_0x18b5aa;_0x505250[_0x50521f(0x26c0)][_0x50521f(0x102a)]=Math['round']((_0x505250['inbound'][_0x50521f(0x20fe)]+_0x505250[_0x50521f(0x26c0)][_0x50521f(0x89f)])/(_0x505250[_0x50521f(0x26c0)][_0x50521f(0x181c)]-_0x505250[_0x50521f(0x26c0)][_0x50521f(0x192a)]-_0x505250[_0x50521f(0x26c0)][_0x50521f(0x26b6)])*0x64,-0x2),_0x505250['inbound'][_0x50521f(0x144a)]=Math[_0x50521f(0x1eed)](_0x505250[_0x50521f(0x26c0)][_0x50521f(0x1175)]/(_0x505250[_0x50521f(0x26c0)]['total']-_0x505250[_0x50521f(0x26c0)]['talking']-_0x505250[_0x50521f(0x26c0)][_0x50521f(0x26b6)])*0x64,-0x2),_0x505250[_0x50521f(0x26c0)]['avgHoldTime']=_0x543b5a()[_0x50521f(0x2483)](Math['round'](_0x505250[_0x50521f(0x26c0)]['sumHoldTime']/_0x505250['inbound']['answered']),_0x505250[_0x50521f(0xa60)][_0x50521f(0x2510)])['format'](_0x505250['config'][_0x50521f(0x1f31)],_0x505250['config']),_0x505250[_0x50521f(0x26c0)]['avgTalkTime']=_0x543b5a()['duration'](Math['round'](_0x505250[_0x50521f(0x26c0)]['sumBillable']/_0x505250[_0x50521f(0x26c0)][_0x50521f(0x1175)]),_0x505250[_0x50521f(0xa60)][_0x50521f(0x2510)])[_0x50521f(0x1f31)](_0x505250['config'][_0x50521f(0x1f31)],_0x505250['config']);}function _0x5a940b(){const _0x3dd04c=_0x18b5aa;if(Object[_0x3dd04c(0x1be5)](_0x505250[_0x3dd04c(0x2137)])[_0x3dd04c(0xfd0)]>0x0)for(let _0x2ec90e=0x0;_0x2ec90e<_0x178b77[_0x3dd04c(0x2214)][_0x3dd04c(0xfd0)];_0x2ec90e+=0x1){if(_0xb70936(_0x178b77[_0x3dd04c(0x2214)][_0x2ec90e])){const _0xf2f01e=_0x178b77[_0x3dd04c(0x2214)][_0x2ec90e];_0x5ec2bb(_0xf2f01e,!![]),_0x4a1fb9();}}}function _0xb70936(_0x12bba5){const _0x142e0c=_0x18b5aa;if(_0x39641b()[_0x142e0c(0x727)](_0x505250[_0x142e0c(0x2137)],{'id':_0x39641b()[_0x142e0c(0x106d)](_0x12bba5[_0x142e0c(0x67c)])}))return!![];return![];}function _0x44b53a(_0x1483b8){const _0x294459=_0x18b5aa,_0x579cf3=_0x543b5a()()['utcOffset'](0x0,!![])[_0x294459(0x1be0)](_0x294459(0x1a5)),_0x2d075d=_0x543b5a()()[_0x294459(0x17d9)](0x0,!![])[_0x294459(0x1b4)]('day');return _0x543b5a()(_0x1483b8)[_0x294459(0x17d9)](0x0,!![])['isBetween'](_0x579cf3,_0x2d075d);}function _0x56f2ca(_0x31ceb4){const _0x1092e5=_0x18b5aa;_0xb70936(_0x31ceb4)&&_0x44b53a(_0x31ceb4[_0x1092e5(0x24cb)])&&(_0x5ec2bb(_0x31ceb4,!![]),_0x4a1fb9());}function _0x15fa49(_0x13f964){const _0x2799d3=_0x18b5aa;_0xb70936(_0x13f964)&&_0x44b53a(_0x13f964[_0x2799d3(0x24cb)])&&(_0x5ec2bb(_0x13f964,![]),_0x4a1fb9());}_0x36adcb[_0x18b5aa(0x1d6)](_0x18b5aa(0x291c),function(){const _0x28f0d9=_0x18b5aa;_0x470452['removeAllListeners'](_0x28f0d9(0x14b6)),_0x470452[_0x28f0d9(0xfb8)](_0x28f0d9(0x300));});}const _0x4f26fe=_0x4c3d3c;;_0x5c1c6d[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1714),_0x5537c6(0x1986),'outboundQueues',_0x5537c6(0x2255),_0x5537c6(0x1aaf),_0x5537c6(0x1661),_0x5537c6(0x4db)];function _0x5c1c6d(_0xe58b80,_0x1c38cb,_0x22be5c,_0xaeafb6,_0x33c758,_0x1cb38d,_0x517af8,_0x53cd31){const _0x3f2ba6=_0x5537c6,_0x3d0a21=this;_0x3d0a21['outboundQueues']=_0xaeafb6?_0x39641b()[_0x3f2ba6(0x2631)](_0xaeafb6[_0x3f2ba6(0x2214)]?_0xaeafb6[_0x3f2ba6(0x2214)]:[],'id'):{},_0x3d0a21[_0x3f2ba6(0x2255)]=_0x33c758?_0x39641b()[_0x3f2ba6(0x2631)](_0x33c758[_0x3f2ba6(0x2214)]?_0x33c758['rows']:[],'id'):{},_0x3d0a21[_0x3f2ba6(0x4db)]=_0x53cd31?_0x39641b()[_0x3f2ba6(0x2631)](_0x53cd31[_0x3f2ba6(0x2214)]?_0x53cd31['rows']:[],'id'):{},_0x3d0a21[_0x3f2ba6(0x242e)]={'originated':0x0,'limitCalls':0x0},_0x3d0a21['inbound']={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x3f2ba6(0x1c61),'avgTalkTime':_0x3f2ba6(0x1c61),'answerRate':0x0,'abandonRate':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0},_0x3d0a21[_0x3f2ba6(0x24f5)]=_0x2a4c94,_0x3d0a21['onSaveCampaign']=_0x5a49cd,_0x22be5c[_0x3f2ba6(0x16b7)](_0x3f2ba6(0x82a),_0x3d0a21[_0x3f2ba6(0x24f5)]),_0x3d0a21[_0x3f2ba6(0x1ac8)]=_0x1c38cb(function(){_0x2f1d9c(),_0x228b57();},0x3e7),_0x22be5c['onWithoutApply'](_0x3f2ba6(0xe9f),_0x3d0a21[_0x3f2ba6(0x1470)]),_0x2f1d9c(),_0x228b57();function _0x2f1d9c(){const _0x549b5e=_0x3f2ba6;_0x1cb38d({'queues':_0x3d0a21[_0x549b5e(0xbbc)],'rpcQueues':_0x3d0a21[_0x549b5e(0x2255)]})[_0x549b5e(0x1cb0)](function(_0x45343b){const _0x126b10=_0x549b5e;_0x3d0a21[_0x126b10(0x26c0)]=_0x45343b;});}function _0x228b57(){const _0x44ba38=_0x3f2ba6;_0x517af8({'rpcCampaigns':_0x3d0a21['rpcCampaigns']})[_0x44ba38(0x1cb0)](function(_0x5818e9){const _0x57f1be=_0x44ba38;_0x3d0a21[_0x57f1be(0x242e)]=_0x5818e9;});}function _0x2a4c94(_0x1ca09c){const _0x2d3e49=_0x3f2ba6;_0x3d0a21['outboundQueues'][_0x1ca09c['id']]&&(_0x3d0a21[_0x2d3e49(0x2255)][_0x1ca09c['id']]&&(_0x3d0a21[_0x2d3e49(0x2255)][_0x1ca09c['id']]=_0x1ca09c));}function _0x5a49cd(_0x399c14){const _0x147f3a=_0x3f2ba6;_0x3d0a21[_0x147f3a(0x4db)][_0x399c14['id']]&&(_0x3d0a21[_0x147f3a(0x4db)][_0x399c14['id']]=_0x399c14);}_0xe58b80[_0x3f2ba6(0x1d6)](_0x3f2ba6(0x291c),function(){const _0x31325f=_0x3f2ba6;_0x22be5c['removeAllListeners'](_0x31325f(0x82a)),_0x22be5c['removeAllListeners'](_0x31325f(0xe9f)),_0x3d0a21['interval']&&_0x1c38cb[_0x31325f(0x696)](_0x3d0a21[_0x31325f(0x1ac8)]);});}const _0x422e3c=_0x5c1c6d;;_0x5700d5['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x1986),_0x5537c6(0x4d8),_0x5537c6(0x29de)];function _0x5700d5(_0x9ee8e5,_0x3f7c66,_0xa7ef31,_0x5b9d85){const _0x5f08d0=_0x5537c6,_0x1726e8=this,_0x130c14=[];_0x1726e8[_0x5f08d0(0xa60)]={'format':'hh:mm:ss','unit':_0x5f08d0(0x479),'trim':![]},_0x1726e8['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x5f08d0(0x1c61),'avgTalkTime':_0x5f08d0(0x1c61),'answerRate':0x0,'abandonRate':0x0},_0x1726e8[_0x5f08d0(0x29de)]=_0x5b9d85?_0x39641b()[_0x5f08d0(0x2631)](_0x5b9d85[_0x5f08d0(0x2214)]?_0x5b9d85['rows']:[],'id'):{},_0x1726e8[_0x5f08d0(0x1297)]=_0x110c48,_0x1726e8[_0x5f08d0(0x4e8)]=_0x15848a,_0x3f7c66['on']('faxInteraction:save',_0x1726e8[_0x5f08d0(0x1297)]),_0x3f7c66['on']('faxInteraction:update',_0x1726e8[_0x5f08d0(0x4e8)]),_0x3e7c67();function _0x58c9df(_0x13a7c0,_0x315e0e){const _0x14ceae=_0x5f08d0;!_0x13a7c0['closed']&&!_0x13a7c0[_0x14ceae(0x21ab)]&&_0x315e0e&&(_0x1726e8['inbound'][_0x14ceae(0x26b6)]+=0x1),!_0x13a7c0[_0x14ceae(0x22aa)]&&_0x13a7c0['UserId']&&!_0x39641b()[_0x14ceae(0x250a)](_0x130c14,_0x13a7c0['id'])&&(_0x1726e8[_0x14ceae(0x26c0)][_0x14ceae(0x192a)]+=0x1,_0x130c14[_0x14ceae(0x2785)](_0x13a7c0['id']),!_0x315e0e&&_0x1726e8['inbound']['waiting']&&(_0x1726e8[_0x14ceae(0x26c0)][_0x14ceae(0x26b6)]-=0x1)),_0x13a7c0[_0x14ceae(0x22aa)]&&_0x13a7c0[_0x14ceae(0x21ab)]&&(_0x1726e8[_0x14ceae(0x26c0)][_0x14ceae(0x202e)]+=_0x543b5a()(_0x13a7c0['closedAt'])[_0x14ceae(0xd42)](_0x543b5a()(_0x13a7c0['read1stAt']),_0x1726e8[_0x14ceae(0xa60)][_0x14ceae(0x2510)]),_0x1726e8[_0x14ceae(0x26c0)]['sumHoldTime']+=_0x543b5a()(_0x13a7c0[_0x14ceae(0x1785)])[_0x14ceae(0xd42)](_0x543b5a()(_0x13a7c0['createdAt']),_0x1726e8[_0x14ceae(0xa60)][_0x14ceae(0x2510)]),_0x1726e8[_0x14ceae(0x26c0)][_0x14ceae(0x1175)]+=0x1,!_0x315e0e&&_0x1726e8[_0x14ceae(0x26c0)]['talking']&&(_0x1726e8[_0x14ceae(0x26c0)]['talking']-=0x1)),_0x13a7c0[_0x14ceae(0x22aa)]&&!_0x13a7c0[_0x14ceae(0x21ab)]&&(_0x1726e8[_0x14ceae(0x26c0)][_0x14ceae(0x89f)]+=0x1,!_0x315e0e&&_0x1726e8[_0x14ceae(0x26c0)][_0x14ceae(0x26b6)]&&(_0x1726e8[_0x14ceae(0x26c0)][_0x14ceae(0x26b6)]-=0x1)),_0x315e0e&&(_0x1726e8[_0x14ceae(0x26c0)]['total']+=0x1);}function _0x5e2f19(){const _0x4ce73c=_0x5f08d0;_0x1726e8['inbound'][_0x4ce73c(0x102a)]=Math[_0x4ce73c(0x1eed)]((_0x1726e8[_0x4ce73c(0x26c0)]['abandoned']+_0x1726e8[_0x4ce73c(0x26c0)][_0x4ce73c(0x89f)])/(_0x1726e8[_0x4ce73c(0x26c0)][_0x4ce73c(0x181c)]-_0x1726e8[_0x4ce73c(0x26c0)][_0x4ce73c(0x192a)]-_0x1726e8[_0x4ce73c(0x26c0)][_0x4ce73c(0x26b6)])*0x64,-0x2),_0x1726e8[_0x4ce73c(0x26c0)][_0x4ce73c(0x144a)]=Math[_0x4ce73c(0x1eed)](_0x1726e8[_0x4ce73c(0x26c0)]['answered']/(_0x1726e8['inbound'][_0x4ce73c(0x181c)]-_0x1726e8[_0x4ce73c(0x26c0)][_0x4ce73c(0x192a)]-_0x1726e8[_0x4ce73c(0x26c0)]['waiting'])*0x64,-0x2),_0x1726e8[_0x4ce73c(0x26c0)]['avgHoldTime']=_0x543b5a()['duration'](Math['round'](_0x1726e8[_0x4ce73c(0x26c0)][_0x4ce73c(0x1bfa)]/_0x1726e8[_0x4ce73c(0x26c0)]['answered']),_0x1726e8['config'][_0x4ce73c(0x2510)])['format'](_0x1726e8[_0x4ce73c(0xa60)][_0x4ce73c(0x1f31)],_0x1726e8['config']),_0x1726e8[_0x4ce73c(0x26c0)][_0x4ce73c(0x129e)]=_0x543b5a()[_0x4ce73c(0x2483)](Math[_0x4ce73c(0x1eed)](_0x1726e8['inbound'][_0x4ce73c(0x202e)]/_0x1726e8[_0x4ce73c(0x26c0)]['answered']),_0x1726e8[_0x4ce73c(0xa60)]['unit'])[_0x4ce73c(0x1f31)](_0x1726e8['config'][_0x4ce73c(0x1f31)],_0x1726e8[_0x4ce73c(0xa60)]);}function _0x3e7c67(){const _0x434eab=_0x5f08d0;if(Object[_0x434eab(0x1be5)](_0x1726e8[_0x434eab(0x29de)])[_0x434eab(0xfd0)]>0x0)for(let _0x1f234c=0x0;_0x1f234c<_0xa7ef31[_0x434eab(0x2214)]['length'];_0x1f234c+=0x1){if(_0x27c71e(_0xa7ef31[_0x434eab(0x2214)][_0x1f234c])){const _0x2f0c7c=_0xa7ef31[_0x434eab(0x2214)][_0x1f234c];_0x58c9df(_0x2f0c7c,!![]),_0x5e2f19();}}}function _0x27c71e(_0x52d96c){const _0x29bfbc=_0x5f08d0;if(_0x39641b()[_0x29bfbc(0x727)](_0x1726e8['faxAccounts'],{'id':_0x39641b()['toNumber'](_0x52d96c[_0x29bfbc(0x18e9)])}))return!![];return![];}function _0x3c221e(_0x5a3c99){const _0x460b40=_0x5f08d0,_0x3fca4e=_0x543b5a()()[_0x460b40(0x17d9)](0x0,!![])[_0x460b40(0x1be0)]('day'),_0x1e0455=_0x543b5a()()[_0x460b40(0x17d9)](0x0,!![])['endOf'](_0x460b40(0x1a5));return _0x543b5a()(_0x5a3c99)[_0x460b40(0x17d9)](0x0,!![])[_0x460b40(0x480)](_0x3fca4e,_0x1e0455);}function _0x110c48(_0xec49e0){const _0x4844e7=_0x5f08d0;_0x27c71e(_0xec49e0)&&_0x3c221e(_0xec49e0[_0x4844e7(0x24cb)])&&(_0x58c9df(_0xec49e0,!![]),_0x5e2f19());}function _0x15848a(_0x2dc534){const _0xd30a42=_0x5f08d0;_0x27c71e(_0x2dc534)&&_0x3c221e(_0x2dc534[_0xd30a42(0x24cb)])&&(_0x58c9df(_0x2dc534,![]),_0x5e2f19());}_0x9ee8e5[_0x5f08d0(0x1d6)](_0x5f08d0(0x291c),function(){const _0x5d47f8=_0x5f08d0;_0x3f7c66[_0x5d47f8(0xfb8)](_0x5d47f8(0x584)),_0x3f7c66['removeAllListeners'](_0x5d47f8(0xd5e));});}const _0x408c44=_0x5700d5;;_0x5131f2[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1986),'mailInteractions','mailAccounts'];function _0x5131f2(_0x126de5,_0x5dc12d,_0x3bc3d,_0xd41d33){const _0xb74a2=_0x5537c6,_0x3223d5=this,_0x1a0d1f=[];_0x3223d5[_0xb74a2(0xa60)]={'format':'hh:mm:ss','unit':_0xb74a2(0x479),'trim':![]},_0x3223d5[_0xb74a2(0x26c0)]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':_0xb74a2(0x1c61),'answerRate':0x0,'abandonRate':0x0},_0x3223d5[_0xb74a2(0x228e)]=_0xd41d33?_0x39641b()[_0xb74a2(0x2631)](_0xd41d33[_0xb74a2(0x2214)]?_0xd41d33['rows']:[],'id'):{},_0x3223d5[_0xb74a2(0xb7d)]=_0x5320c3,_0x3223d5[_0xb74a2(0x15b3)]=_0x29f6aa,_0x5dc12d['on']('mailInteraction:save',_0x3223d5['onSaveMailInteraction']),_0x5dc12d['on'](_0xb74a2(0xc5d),_0x3223d5['onUpdateMailInteraction']),_0x5a9213();function _0x4552ab(_0xb3e900,_0x5a081e){const _0x1975a2=_0xb74a2;!_0xb3e900[_0x1975a2(0x22aa)]&&!_0xb3e900[_0x1975a2(0x21ab)]&&_0x5a081e&&(_0x3223d5[_0x1975a2(0x26c0)]['waiting']+=0x1),!_0xb3e900[_0x1975a2(0x22aa)]&&_0xb3e900[_0x1975a2(0x21ab)]&&!_0x39641b()[_0x1975a2(0x250a)](_0x1a0d1f,_0xb3e900['id'])&&(_0x3223d5[_0x1975a2(0x26c0)]['talking']+=0x1,_0x1a0d1f[_0x1975a2(0x2785)](_0xb3e900['id']),!_0x5a081e&&_0x3223d5[_0x1975a2(0x26c0)][_0x1975a2(0x26b6)]&&(_0x3223d5[_0x1975a2(0x26c0)]['waiting']-=0x1)),_0xb3e900[_0x1975a2(0x22aa)]&&_0xb3e900[_0x1975a2(0x21ab)]&&(_0x3223d5[_0x1975a2(0x26c0)][_0x1975a2(0x202e)]+=_0x543b5a()(_0xb3e900[_0x1975a2(0xecd)])[_0x1975a2(0xd42)](_0x543b5a()(_0xb3e900['read1stAt']),_0x3223d5['config'][_0x1975a2(0x2510)]),_0x3223d5[_0x1975a2(0x26c0)][_0x1975a2(0x1bfa)]+=_0x543b5a()(_0xb3e900[_0x1975a2(0x1785)])[_0x1975a2(0xd42)](_0x543b5a()(_0xb3e900[_0x1975a2(0x24cb)]),_0x3223d5[_0x1975a2(0xa60)][_0x1975a2(0x2510)]),_0x3223d5[_0x1975a2(0x26c0)][_0x1975a2(0x1175)]+=0x1,!_0x5a081e&&_0x3223d5['inbound'][_0x1975a2(0x192a)]&&(_0x3223d5[_0x1975a2(0x26c0)][_0x1975a2(0x192a)]-=0x1)),_0xb3e900['closed']&&!_0xb3e900['UserId']&&(_0x3223d5[_0x1975a2(0x26c0)][_0x1975a2(0x89f)]+=0x1,!_0x5a081e&&_0x3223d5[_0x1975a2(0x26c0)][_0x1975a2(0x26b6)]&&(_0x3223d5[_0x1975a2(0x26c0)][_0x1975a2(0x26b6)]-=0x1)),_0x5a081e&&(_0x3223d5[_0x1975a2(0x26c0)]['total']+=0x1);}function _0x3891d8(){const _0x22a8c0=_0xb74a2;_0x3223d5[_0x22a8c0(0x26c0)][_0x22a8c0(0x102a)]=Math[_0x22a8c0(0x1eed)]((_0x3223d5[_0x22a8c0(0x26c0)][_0x22a8c0(0x20fe)]+_0x3223d5[_0x22a8c0(0x26c0)][_0x22a8c0(0x89f)])/(_0x3223d5[_0x22a8c0(0x26c0)][_0x22a8c0(0x181c)]-_0x3223d5[_0x22a8c0(0x26c0)][_0x22a8c0(0x192a)]-_0x3223d5['inbound'][_0x22a8c0(0x26b6)])*0x64,-0x2),_0x3223d5['inbound']['answerRate']=Math[_0x22a8c0(0x1eed)](_0x3223d5['inbound'][_0x22a8c0(0x1175)]/(_0x3223d5['inbound']['total']-_0x3223d5[_0x22a8c0(0x26c0)][_0x22a8c0(0x192a)]-_0x3223d5[_0x22a8c0(0x26c0)][_0x22a8c0(0x26b6)])*0x64,-0x2),_0x3223d5[_0x22a8c0(0x26c0)][_0x22a8c0(0x265e)]=_0x543b5a()[_0x22a8c0(0x2483)](Math[_0x22a8c0(0x1eed)](_0x3223d5[_0x22a8c0(0x26c0)]['sumHoldTime']/_0x3223d5['inbound'][_0x22a8c0(0x1175)]),_0x3223d5['config'][_0x22a8c0(0x2510)])[_0x22a8c0(0x1f31)](_0x3223d5['config'][_0x22a8c0(0x1f31)],_0x3223d5[_0x22a8c0(0xa60)]),_0x3223d5[_0x22a8c0(0x26c0)][_0x22a8c0(0x129e)]=_0x543b5a()['duration'](Math['round'](_0x3223d5[_0x22a8c0(0x26c0)][_0x22a8c0(0x202e)]/_0x3223d5[_0x22a8c0(0x26c0)][_0x22a8c0(0x1175)]),_0x3223d5[_0x22a8c0(0xa60)][_0x22a8c0(0x2510)])['format'](_0x3223d5[_0x22a8c0(0xa60)][_0x22a8c0(0x1f31)],_0x3223d5['config']);}function _0x5a9213(){const _0x5538ed=_0xb74a2;if(Object['keys'](_0x3223d5[_0x5538ed(0x228e)])['length']>0x0)for(let _0x2c7d1f=0x0;_0x2c7d1f<_0x3bc3d[_0x5538ed(0x2214)]['length'];_0x2c7d1f+=0x1){if(_0x4d7c64(_0x3bc3d[_0x5538ed(0x2214)][_0x2c7d1f])){const _0xa5cdb4=_0x3bc3d[_0x5538ed(0x2214)][_0x2c7d1f];_0x4552ab(_0xa5cdb4,!![]),_0x3891d8();}}}function _0x4d7c64(_0xd03671){const _0x3d3299=_0xb74a2;if(_0x39641b()[_0x3d3299(0x727)](_0x3223d5[_0x3d3299(0x228e)],{'id':_0x39641b()[_0x3d3299(0x106d)](_0xd03671['MailAccountId'])}))return!![];return![];}function _0x288f53(_0x3ec501){const _0x359d75=_0xb74a2,_0x36f749=_0x543b5a()()['utcOffset'](0x0,!![])[_0x359d75(0x1be0)](_0x359d75(0x1a5)),_0x4dc192=_0x543b5a()()[_0x359d75(0x17d9)](0x0,!![])[_0x359d75(0x1b4)](_0x359d75(0x1a5));return _0x543b5a()(_0x3ec501)[_0x359d75(0x17d9)](0x0,!![])[_0x359d75(0x480)](_0x36f749,_0x4dc192);}function _0x5320c3(_0x100e59){const _0xa3211e=_0xb74a2;_0x4d7c64(_0x100e59)&&_0x288f53(_0x100e59[_0xa3211e(0x24cb)])&&(_0x4552ab(_0x100e59,!![]),_0x3891d8());}function _0x29f6aa(_0x17152d){const _0x192153=_0xb74a2;_0x4d7c64(_0x17152d)&&_0x288f53(_0x17152d[_0x192153(0x24cb)])&&(_0x4552ab(_0x17152d,![]),_0x3891d8());}_0x126de5[_0xb74a2(0x1d6)]('$destroy',function(){const _0x1ff8a1=_0xb74a2;_0x5dc12d[_0x1ff8a1(0xfb8)](_0x1ff8a1(0x5d4)),_0x5dc12d['removeAllListeners'](_0x1ff8a1(0xc5d));});}const _0x509590=_0x5131f2;;_0x2b6255[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x1986),_0x5537c6(0x1e9c),_0x5537c6(0xe5c)];function _0x2b6255(_0x553c05,_0x50f0c8,_0x1dd1ab,_0xb96b08){const _0x4263cd=_0x5537c6,_0x53645b=this,_0x201acc=[];_0x53645b[_0x4263cd(0xa60)]={'format':_0x4263cd(0x1530),'unit':_0x4263cd(0x479),'trim':![]},_0x53645b[_0x4263cd(0x26c0)]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x4263cd(0x1c61),'avgTalkTime':_0x4263cd(0x1c61),'answerRate':0x0,'abandonRate':0x0},_0x53645b[_0x4263cd(0xe5c)]=_0xb96b08?_0x39641b()['keyBy'](_0xb96b08['rows']?_0xb96b08['rows']:[],'id'):{},_0x53645b[_0x4263cd(0x1bae)]=_0x32fd9e,_0x53645b['onUpdateOpenchannelInteraction']=_0x6f37df,_0x50f0c8['on'](_0x4263cd(0x673),_0x53645b['onSaveOpenchannelInteraction']),_0x50f0c8['on'](_0x4263cd(0xaf7),_0x53645b[_0x4263cd(0x273a)]),_0x852a41();function _0x398a0f(_0x5e18f6,_0x259ef3){const _0x3161bc=_0x4263cd;!_0x5e18f6[_0x3161bc(0x22aa)]&&!_0x5e18f6['UserId']&&_0x259ef3&&(_0x53645b['inbound']['waiting']+=0x1),!_0x5e18f6['closed']&&_0x5e18f6[_0x3161bc(0x21ab)]&&!_0x39641b()[_0x3161bc(0x250a)](_0x201acc,_0x5e18f6['id'])&&(_0x53645b[_0x3161bc(0x26c0)][_0x3161bc(0x192a)]+=0x1,_0x201acc[_0x3161bc(0x2785)](_0x5e18f6['id']),!_0x259ef3&&_0x53645b['inbound'][_0x3161bc(0x26b6)]&&(_0x53645b['inbound']['waiting']-=0x1)),_0x5e18f6[_0x3161bc(0x22aa)]&&_0x5e18f6[_0x3161bc(0x21ab)]&&(_0x53645b[_0x3161bc(0x26c0)][_0x3161bc(0x202e)]+=_0x543b5a()(_0x5e18f6[_0x3161bc(0xecd)])[_0x3161bc(0xd42)](_0x543b5a()(_0x5e18f6[_0x3161bc(0x1785)]),_0x53645b[_0x3161bc(0xa60)][_0x3161bc(0x2510)]),_0x53645b[_0x3161bc(0x26c0)][_0x3161bc(0x1bfa)]+=_0x543b5a()(_0x5e18f6[_0x3161bc(0x1785)])['diff'](_0x543b5a()(_0x5e18f6[_0x3161bc(0x24cb)]),_0x53645b[_0x3161bc(0xa60)][_0x3161bc(0x2510)]),_0x53645b[_0x3161bc(0x26c0)][_0x3161bc(0x1175)]+=0x1,!_0x259ef3&&_0x53645b[_0x3161bc(0x26c0)][_0x3161bc(0x192a)]&&(_0x53645b[_0x3161bc(0x26c0)][_0x3161bc(0x192a)]-=0x1)),_0x5e18f6[_0x3161bc(0x22aa)]&&!_0x5e18f6[_0x3161bc(0x21ab)]&&(_0x53645b['inbound'][_0x3161bc(0x89f)]+=0x1,!_0x259ef3&&_0x53645b[_0x3161bc(0x26c0)][_0x3161bc(0x26b6)]&&(_0x53645b[_0x3161bc(0x26c0)][_0x3161bc(0x26b6)]-=0x1)),_0x259ef3&&(_0x53645b['inbound']['total']+=0x1);}function _0x354a08(){const _0x95d681=_0x4263cd;_0x53645b[_0x95d681(0x26c0)][_0x95d681(0x102a)]=Math[_0x95d681(0x1eed)]((_0x53645b[_0x95d681(0x26c0)][_0x95d681(0x20fe)]+_0x53645b[_0x95d681(0x26c0)][_0x95d681(0x89f)])/(_0x53645b[_0x95d681(0x26c0)]['total']-_0x53645b['inbound']['talking']-_0x53645b[_0x95d681(0x26c0)][_0x95d681(0x26b6)])*0x64,-0x2),_0x53645b[_0x95d681(0x26c0)][_0x95d681(0x144a)]=Math[_0x95d681(0x1eed)](_0x53645b['inbound']['answered']/(_0x53645b[_0x95d681(0x26c0)][_0x95d681(0x181c)]-_0x53645b[_0x95d681(0x26c0)][_0x95d681(0x192a)]-_0x53645b[_0x95d681(0x26c0)][_0x95d681(0x26b6)])*0x64,-0x2),_0x53645b[_0x95d681(0x26c0)][_0x95d681(0x265e)]=_0x543b5a()['duration'](Math[_0x95d681(0x1eed)](_0x53645b[_0x95d681(0x26c0)][_0x95d681(0x1bfa)]/_0x53645b[_0x95d681(0x26c0)]['answered']),_0x53645b[_0x95d681(0xa60)]['unit'])[_0x95d681(0x1f31)](_0x53645b[_0x95d681(0xa60)]['format'],_0x53645b[_0x95d681(0xa60)]),_0x53645b[_0x95d681(0x26c0)][_0x95d681(0x129e)]=_0x543b5a()[_0x95d681(0x2483)](Math[_0x95d681(0x1eed)](_0x53645b[_0x95d681(0x26c0)][_0x95d681(0x202e)]/_0x53645b['inbound'][_0x95d681(0x1175)]),_0x53645b['config'][_0x95d681(0x2510)])[_0x95d681(0x1f31)](_0x53645b[_0x95d681(0xa60)][_0x95d681(0x1f31)],_0x53645b[_0x95d681(0xa60)]);}function _0x852a41(){const _0x19a3bc=_0x4263cd;if(Object[_0x19a3bc(0x1be5)](_0x53645b[_0x19a3bc(0xe5c)])['length']>0x0)for(let _0x32b150=0x0;_0x32b150<_0x1dd1ab[_0x19a3bc(0x2214)][_0x19a3bc(0xfd0)];_0x32b150+=0x1){if(_0x4164a8(_0x1dd1ab['rows'][_0x32b150])){const _0x202899=_0x1dd1ab[_0x19a3bc(0x2214)][_0x32b150];_0x398a0f(_0x202899,!![]),_0x354a08();}}}function _0x4164a8(_0x3686c7){const _0x3768d4=_0x4263cd;if(_0x39641b()[_0x3768d4(0x727)](_0x53645b[_0x3768d4(0xe5c)],{'id':_0x39641b()[_0x3768d4(0x106d)](_0x3686c7[_0x3768d4(0x1d1e)])}))return!![];return![];}function _0xe848cb(_0x38e713){const _0x2dfdd6=_0x4263cd,_0x12e1bd=_0x543b5a()()[_0x2dfdd6(0x17d9)](0x0,!![])[_0x2dfdd6(0x1be0)](_0x2dfdd6(0x1a5)),_0x2314e9=_0x543b5a()()['utcOffset'](0x0,!![])[_0x2dfdd6(0x1b4)](_0x2dfdd6(0x1a5));return _0x543b5a()(_0x38e713)[_0x2dfdd6(0x17d9)](0x0,!![])[_0x2dfdd6(0x480)](_0x12e1bd,_0x2314e9);}function _0x32fd9e(_0x3d1a97){const _0x530a02=_0x4263cd;_0x4164a8(_0x3d1a97)&&_0xe848cb(_0x3d1a97[_0x530a02(0x24cb)])&&(_0x398a0f(_0x3d1a97,!![]),_0x354a08());}function _0x6f37df(_0x2cda6e){_0x4164a8(_0x2cda6e)&&_0xe848cb(_0x2cda6e['createdAt'])&&(_0x398a0f(_0x2cda6e,![]),_0x354a08());}_0x553c05['$on'](_0x4263cd(0x291c),function(){const _0x5e8a59=_0x4263cd;_0x50f0c8[_0x5e8a59(0xfb8)](_0x5e8a59(0x673)),_0x50f0c8[_0x5e8a59(0xfb8)](_0x5e8a59(0xaf7));});}const _0x1795e0=_0x2b6255;;_0x404a8a[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x1986),_0x5537c6(0x25a5),'smsAccounts'];function _0x404a8a(_0x34374b,_0x1e8cf7,_0x1e1ad9,_0x35e47d){const _0x2af27c=_0x5537c6,_0x183c18=this,_0x1b544c=[];_0x183c18['config']={'format':_0x2af27c(0x1530),'unit':_0x2af27c(0x479),'trim':![]},_0x183c18[_0x2af27c(0x26c0)]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x2af27c(0x1c61),'avgTalkTime':_0x2af27c(0x1c61),'answerRate':0x0,'abandonRate':0x0},_0x183c18[_0x2af27c(0x1ac)]=_0x35e47d?_0x39641b()[_0x2af27c(0x2631)](_0x35e47d[_0x2af27c(0x2214)]?_0x35e47d[_0x2af27c(0x2214)]:[],'id'):{},_0x183c18[_0x2af27c(0x1e4)]=_0x1c502c,_0x183c18['onUpdateSmsInteraction']=_0x5d6d3d,_0x1e8cf7['on'](_0x2af27c(0x1a16),_0x183c18[_0x2af27c(0x1e4)]),_0x1e8cf7['on'](_0x2af27c(0x159f),_0x183c18[_0x2af27c(0x265c)]),_0x151b0d();function _0xf81ad7(_0x27c908,_0x1e4ea6){const _0x424b2b=_0x2af27c;!_0x27c908[_0x424b2b(0x22aa)]&&!_0x27c908[_0x424b2b(0x21ab)]&&_0x1e4ea6&&(_0x183c18['inbound'][_0x424b2b(0x26b6)]+=0x1),!_0x27c908[_0x424b2b(0x22aa)]&&_0x27c908[_0x424b2b(0x21ab)]&&!_0x39641b()['includes'](_0x1b544c,_0x27c908['id'])&&(_0x183c18['inbound'][_0x424b2b(0x192a)]+=0x1,_0x1b544c[_0x424b2b(0x2785)](_0x27c908['id']),!_0x1e4ea6&&_0x183c18[_0x424b2b(0x26c0)][_0x424b2b(0x26b6)]&&(_0x183c18[_0x424b2b(0x26c0)][_0x424b2b(0x26b6)]-=0x1)),_0x27c908[_0x424b2b(0x22aa)]&&_0x27c908[_0x424b2b(0x21ab)]&&(_0x183c18[_0x424b2b(0x26c0)][_0x424b2b(0x202e)]+=_0x543b5a()(_0x27c908['closedAt'])['diff'](_0x543b5a()(_0x27c908[_0x424b2b(0x1785)]),_0x183c18['config'][_0x424b2b(0x2510)]),_0x183c18[_0x424b2b(0x26c0)]['sumHoldTime']+=_0x543b5a()(_0x27c908[_0x424b2b(0x1785)])[_0x424b2b(0xd42)](_0x543b5a()(_0x27c908['createdAt']),_0x183c18[_0x424b2b(0xa60)][_0x424b2b(0x2510)]),_0x183c18[_0x424b2b(0x26c0)]['answered']+=0x1,!_0x1e4ea6&&_0x183c18[_0x424b2b(0x26c0)][_0x424b2b(0x192a)]&&(_0x183c18[_0x424b2b(0x26c0)][_0x424b2b(0x192a)]-=0x1)),_0x27c908[_0x424b2b(0x22aa)]&&!_0x27c908[_0x424b2b(0x21ab)]&&(_0x183c18[_0x424b2b(0x26c0)][_0x424b2b(0x89f)]+=0x1,!_0x1e4ea6&&_0x183c18[_0x424b2b(0x26c0)]['waiting']&&(_0x183c18[_0x424b2b(0x26c0)][_0x424b2b(0x26b6)]-=0x1)),_0x1e4ea6&&(_0x183c18['inbound']['total']+=0x1);}function _0x39b6ee(){const _0x2928b8=_0x2af27c;_0x183c18[_0x2928b8(0x26c0)][_0x2928b8(0x102a)]=Math[_0x2928b8(0x1eed)]((_0x183c18['inbound'][_0x2928b8(0x20fe)]+_0x183c18['inbound']['unmanaged'])/(_0x183c18['inbound'][_0x2928b8(0x181c)]-_0x183c18[_0x2928b8(0x26c0)][_0x2928b8(0x192a)]-_0x183c18[_0x2928b8(0x26c0)][_0x2928b8(0x26b6)])*0x64,-0x2),_0x183c18['inbound'][_0x2928b8(0x144a)]=Math['round'](_0x183c18[_0x2928b8(0x26c0)][_0x2928b8(0x1175)]/(_0x183c18[_0x2928b8(0x26c0)][_0x2928b8(0x181c)]-_0x183c18[_0x2928b8(0x26c0)][_0x2928b8(0x192a)]-_0x183c18[_0x2928b8(0x26c0)]['waiting'])*0x64,-0x2),_0x183c18[_0x2928b8(0x26c0)][_0x2928b8(0x265e)]=_0x543b5a()[_0x2928b8(0x2483)](Math[_0x2928b8(0x1eed)](_0x183c18[_0x2928b8(0x26c0)][_0x2928b8(0x1bfa)]/_0x183c18['inbound']['answered']),_0x183c18[_0x2928b8(0xa60)][_0x2928b8(0x2510)])[_0x2928b8(0x1f31)](_0x183c18[_0x2928b8(0xa60)][_0x2928b8(0x1f31)],_0x183c18[_0x2928b8(0xa60)]),_0x183c18[_0x2928b8(0x26c0)][_0x2928b8(0x129e)]=_0x543b5a()[_0x2928b8(0x2483)](Math[_0x2928b8(0x1eed)](_0x183c18['inbound']['sumBillable']/_0x183c18[_0x2928b8(0x26c0)][_0x2928b8(0x1175)]),_0x183c18[_0x2928b8(0xa60)]['unit'])[_0x2928b8(0x1f31)](_0x183c18[_0x2928b8(0xa60)][_0x2928b8(0x1f31)],_0x183c18[_0x2928b8(0xa60)]);}function _0x151b0d(){const _0x21bfc9=_0x2af27c;if(Object[_0x21bfc9(0x1be5)](_0x183c18[_0x21bfc9(0x1ac)])['length']>0x0)for(let _0x260e1e=0x0;_0x260e1e<_0x1e1ad9['rows'][_0x21bfc9(0xfd0)];_0x260e1e+=0x1){if(_0x549dd2(_0x1e1ad9['rows'][_0x260e1e])){const _0x43c249=_0x1e1ad9[_0x21bfc9(0x2214)][_0x260e1e];_0xf81ad7(_0x43c249,!![]),_0x39b6ee();}}}function _0x549dd2(_0x12250f){const _0xbc24c6=_0x2af27c;if(_0x39641b()[_0xbc24c6(0x727)](_0x183c18[_0xbc24c6(0x1ac)],{'id':_0x39641b()[_0xbc24c6(0x106d)](_0x12250f['SmsAccountId'])}))return!![];return![];}function _0x183d64(_0x42e207){const _0x145a9d=_0x2af27c,_0x1c5380=_0x543b5a()()[_0x145a9d(0x17d9)](0x0,!![])[_0x145a9d(0x1be0)](_0x145a9d(0x1a5)),_0x30deb6=_0x543b5a()()[_0x145a9d(0x17d9)](0x0,!![])[_0x145a9d(0x1b4)](_0x145a9d(0x1a5));return _0x543b5a()(_0x42e207)[_0x145a9d(0x17d9)](0x0,!![])[_0x145a9d(0x480)](_0x1c5380,_0x30deb6);}function _0x1c502c(_0x134803){const _0x137e13=_0x2af27c;_0x549dd2(_0x134803)&&_0x183d64(_0x134803[_0x137e13(0x24cb)])&&(_0xf81ad7(_0x134803,!![]),_0x39b6ee());}function _0x5d6d3d(_0x4da65c){const _0x19e272=_0x2af27c;_0x549dd2(_0x4da65c)&&_0x183d64(_0x4da65c[_0x19e272(0x24cb)])&&(_0xf81ad7(_0x4da65c,![]),_0x39b6ee());}_0x34374b[_0x2af27c(0x1d6)](_0x2af27c(0x291c),function(){const _0x5ac7cc=_0x2af27c;_0x1e8cf7[_0x5ac7cc(0xfb8)](_0x5ac7cc(0x1a16)),_0x1e8cf7['removeAllListeners']('smsInteraction:update');});}const _0x47b9ca=_0x404a8a;;_0xa32479['$inject']=[_0x5537c6(0x406),_0x5537c6(0x1774),_0x5537c6(0x8a5)],_0x9a195f[_0x5537c6(0x15b6)]=['$q'],_0x1c8025[_0x5537c6(0x15b6)]=['$q'];function _0x1c8025(_0x10110e){const _0x5f2c12=[],_0x14d6fd=function(){const _0x2fb61e=a0_0x5cbd,_0x23304e=_0x5f2c12[0x0],_0x2ef0c={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x2fb61e(0x1c61),'avgTalkTime':_0x2fb61e(0x1c61),'answerRate':0x0,'abandonRate':0x0,'originated':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0};_0x39641b()[_0x2fb61e(0x1ebd)](_0x23304e[_0x2fb61e(0x971)],function(_0x5a6557,_0x47a359){const _0x2bf13b=_0x2fb61e;_0x23304e[_0x2bf13b(0x2255)][_0x47a359]&&(_0x2ef0c[_0x2bf13b(0x26b6)]+=_0x23304e[_0x2bf13b(0x2255)][_0x47a359]['waiting']||0x0,_0x2ef0c[_0x2bf13b(0x192a)]+=(_0x23304e[_0x2bf13b(0x2255)][_0x47a359][_0x2bf13b(0x192a)]||0x0)+(_0x23304e[_0x2bf13b(0x2255)][_0x47a359][_0x2bf13b(0xfb2)]||0x0),_0x2ef0c[_0x2bf13b(0x1175)]+=_0x23304e['rpcQueues'][_0x47a359]['answered']||0x0,_0x2ef0c['abandoned']+=_0x23304e[_0x2bf13b(0x2255)][_0x47a359][_0x2bf13b(0x20fe)]||0x0,_0x2ef0c['sumHoldTime']+=_0x23304e[_0x2bf13b(0x2255)][_0x47a359][_0x2bf13b(0x1bfa)]||0x0,_0x2ef0c[_0x2bf13b(0x202e)]+=_0x23304e[_0x2bf13b(0x2255)][_0x47a359][_0x2bf13b(0x202e)]||0x0,_0x2ef0c[_0x2bf13b(0x181c)]+=_0x23304e[_0x2bf13b(0x2255)][_0x47a359][_0x2bf13b(0x181c)]||0x0,_0x2ef0c['originated']+=_0x23304e[_0x2bf13b(0x2255)][_0x47a359][_0x2bf13b(0x2315)]||0x0,_0x2ef0c[_0x2bf13b(0x27cb)]+=_0x23304e[_0x2bf13b(0x2255)][_0x47a359]['outboundDropCallsDayCallersExit']||0x0,_0x2ef0c[_0x2bf13b(0x2450)]+=_0x23304e['rpcQueues'][_0x47a359][_0x2bf13b(0x2450)]||0x0);});const _0x213c4b=_0x2ef0c[_0x2fb61e(0x181c)]-_0x2ef0c[_0x2fb61e(0x1175)]-_0x2ef0c[_0x2fb61e(0x20fe)];_0x2ef0c[_0x2fb61e(0x89f)]=_0x213c4b>0x0?_0x213c4b:0x0,_0x2ef0c['avgHoldTime']=Math[_0x2fb61e(0x1eed)](_0x2ef0c[_0x2fb61e(0x181c)]>0x0?_0x2ef0c[_0x2fb61e(0x1bfa)]/_0x2ef0c['total']:0x0),_0x2ef0c[_0x2fb61e(0x265e)]=new Date(_0x2ef0c[_0x2fb61e(0x265e)]*0x3e8)['toISOString']()[_0x2fb61e(0x2028)](0xb,0x8),_0x2ef0c[_0x2fb61e(0x129e)]=Math[_0x2fb61e(0x1eed)](_0x2ef0c[_0x2fb61e(0x1175)]>0x0?_0x2ef0c[_0x2fb61e(0x202e)]/_0x2ef0c[_0x2fb61e(0x1175)]:0x0),_0x2ef0c[_0x2fb61e(0x129e)]=new Date(_0x2ef0c[_0x2fb61e(0x129e)]*0x3e8)[_0x2fb61e(0x1e3f)]()[_0x2fb61e(0x2028)](0xb,0x8),_0x2ef0c[_0x2fb61e(0x144a)]=Math[_0x2fb61e(0x1eed)]((_0x2ef0c[_0x2fb61e(0x181c)]>0x0?_0x2ef0c['answered']/_0x2ef0c[_0x2fb61e(0x181c)]*0x64:0x0)*Math['pow'](0xa,0x1))/Math[_0x2fb61e(0xdad)](0xa,0x1),_0x2ef0c['abandonRate']=Math['round']((_0x2ef0c[_0x2fb61e(0x181c)]>0x0?_0x2ef0c[_0x2fb61e(0x20fe)]/_0x2ef0c['total']*0x64:0x0)*Math[_0x2fb61e(0xdad)](0xa,0x1))/Math[_0x2fb61e(0xdad)](0xa,0x1),_0x2ef0c['outboundDropRate']=Math[_0x2fb61e(0x1eed)]((_0x2ef0c['total']>0x0?_0x2ef0c[_0x2fb61e(0x2450)]/_0x2ef0c[_0x2fb61e(0x181c)]*0x64:0x0)*Math[_0x2fb61e(0xdad)](0xa,0x1))/Math[_0x2fb61e(0xdad)](0xa,0x1),_0x2ef0c['outboundAbandonRate']=Math[_0x2fb61e(0x1eed)]((_0x2ef0c[_0x2fb61e(0x181c)]>0x0?_0x2ef0c[_0x2fb61e(0x27cb)]/_0x2ef0c[_0x2fb61e(0x181c)]*0x64:0x0)*Math['pow'](0xa,0x1))/Math[_0x2fb61e(0xdad)](0xa,0x1),_0x2ef0c['outboundanswerRate']=0x64-_0x2ef0c[_0x2fb61e(0x1b6a)]-_0x2ef0c['outboundAbandonRate']>0x0&&(_0x2ef0c['total']||0x0>0x0)?0x64-_0x2ef0c[_0x2fb61e(0x1b6a)]-_0x2ef0c['outboundAbandonRate']:0x0,_0x5f2c12[_0x2fb61e(0x1945)](),_0x23304e[_0x2fb61e(0x11f4)][_0x2fb61e(0x19a3)](_0x2ef0c),_0x5f2c12[_0x2fb61e(0xfd0)]>0x0&&_0x14d6fd();};return function(_0xb759ed){const _0x2e2b77=a0_0x5cbd,_0x307262=_0x10110e[_0x2e2b77(0x11f4)]();return _0x5f2c12[_0x2e2b77(0x2785)]({'queues':_0xb759ed['queues'],'rpcQueues':_0xb759ed[_0x2e2b77(0x2255)],'defer':_0x307262}),_0x5f2c12[_0x2e2b77(0xfd0)]===0x1&&_0x14d6fd(),_0x307262[_0x2e2b77(0x2061)];};}function _0x9a195f(_0x2cace7){const _0x74db6=[],_0x28b8ad=function(){const _0x3f1aad=a0_0x5cbd,_0x59fe2a=_0x74db6[0x0],_0x55d725={'originated':0x0,'limitCalls':0x0};_0x39641b()[_0x3f1aad(0x1ebd)](_0x59fe2a[_0x3f1aad(0x4db)],function(_0x2f0bf7,_0x50500c){const _0x45ecad=_0x3f1aad;_0x59fe2a[_0x45ecad(0x4db)][_0x50500c]&&(_0x55d725['originated']+=_0x59fe2a[_0x45ecad(0x4db)][_0x50500c][_0x45ecad(0x2315)]||0x0,_0x55d725[_0x45ecad(0x127e)]+=_0x59fe2a[_0x45ecad(0x4db)][_0x50500c]['limitCalls']||0x0);}),_0x74db6[_0x3f1aad(0x1945)](),_0x59fe2a[_0x3f1aad(0x11f4)]['resolve'](_0x55d725),_0x74db6[_0x3f1aad(0xfd0)]>0x0&&_0x28b8ad();};return function(_0x2e646c){const _0xf1e12f=a0_0x5cbd,_0x3d1c8e=_0x2cace7['defer']();return _0x74db6[_0xf1e12f(0x2785)]({'rpcCampaigns':_0x2e646c['rpcCampaigns'],'defer':_0x3d1c8e}),_0x74db6[_0xf1e12f(0xfd0)]===0x1&&_0x28b8ad(),_0x3d1c8e[_0xf1e12f(0x2061)];};}function _0x8db984(){return function(_0x393969){const _0xa5715c=a0_0x5cbd;return new Date(_0x393969*0x3e8)[_0xa5715c(0x1e3f)]()[_0xa5715c(0x2028)](0xb,0x8);};}function _0xa32479(_0x556862,_0x256121,_0x4da289){const _0x29e11b=this;_0x29e11b['license']=_0x4da289,_0x29e11b['onInit']=_0x26e1c7;function _0x26e1c7(){const _0x2a3ac9=a0_0x5cbd;_0x29e11b[_0x2a3ac9(0x21dd)]=_0x256121[_0x2a3ac9(0x22b6)](_0x2a3ac9(0xebe))?_0x256121[_0x2a3ac9(0x39e)](0x65):!![];if(_0x29e11b[_0x2a3ac9(0x21dd)]){const _0x11bea0=_0x556862[_0x2a3ac9(0x1970)][_0x2a3ac9(0x16b6)];switch(_0x11bea0){case _0x2a3ac9(0x1647):_0x1d3223();break;case _0x2a3ac9(0x20de):_0x29e11b[_0x2a3ac9(0x8ec)]=0x0;break;case _0x2a3ac9(0x1ba6):_0x29e11b['selectedTab']=0x1;break;case'app.dashboards.general.chat':_0x29e11b[_0x2a3ac9(0x8ec)]=0x2;break;case _0x2a3ac9(0x1ba2):_0x29e11b[_0x2a3ac9(0x8ec)]=0x3;break;case _0x2a3ac9(0x1961):_0x29e11b[_0x2a3ac9(0x8ec)]=0x4;break;case _0x2a3ac9(0x1319):_0x29e11b[_0x2a3ac9(0x8ec)]=0x5;break;case _0x2a3ac9(0x1ac9):_0x29e11b[_0x2a3ac9(0x8ec)]=0x6;break;case _0x2a3ac9(0x270f):_0x29e11b[_0x2a3ac9(0x8ec)]=0x7;break;}}}function _0x1d3223(){const _0xc0c60a=a0_0x5cbd,_0x49a4ec=[];_0x29e11b['license'][_0xc0c60a(0x1fd4)]&&_0x49a4ec['push']('app.dashboards.general.voice'),_0x29e11b['license'][_0xc0c60a(0x14f7)]&&_0x49a4ec[_0xc0c60a(0x2785)](_0xc0c60a(0x1ba6)),_0x29e11b['license'][_0xc0c60a(0x174c)]&&_0x49a4ec[_0xc0c60a(0x2785)](_0xc0c60a(0x2784)),_0x29e11b['license']['mail']&&_0x49a4ec[_0xc0c60a(0x2785)](_0xc0c60a(0x1ba2)),_0x29e11b[_0xc0c60a(0x8a5)][_0xc0c60a(0x1e48)]&&_0x49a4ec['push']('app.dashboards.general.sms'),_0x29e11b[_0xc0c60a(0x8a5)][_0xc0c60a(0x15e0)]&&_0x49a4ec[_0xc0c60a(0x2785)]('app.dashboards.general.openchannel'),_0x29e11b['license'][_0xc0c60a(0x1944)]&&_0x49a4ec[_0xc0c60a(0x2785)](_0xc0c60a(0x1ac9)),_0x29e11b[_0xc0c60a(0x8a5)]['whatsapp']&&_0x49a4ec['push'](_0xc0c60a(0x270f));if(_0x49a4ec['length']>0x0)_0x556862['go'](_0x39641b()[_0xc0c60a(0xf07)](_0x49a4ec));}};_0x39dc14[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'socket','inboundQueues',_0x5537c6(0x2255),_0x5537c6(0x895),_0x5537c6(0x1aaf)];function _0x39dc14(_0x1c2519,_0x497b1a,_0x3ad43e,_0x387c0c,_0x53b666,_0x2673bb){const _0x162f0d=_0x5537c6,_0x29557c=this;_0x29557c[_0x162f0d(0x21b6)]=_0x3ad43e?_0x39641b()[_0x162f0d(0x2631)](_0x3ad43e[_0x162f0d(0x2214)]?_0x3ad43e['rows']:[],'id'):{},_0x29557c[_0x162f0d(0x2255)]=_0x387c0c?_0x39641b()[_0x162f0d(0x2631)](_0x387c0c['rows']?_0x387c0c[_0x162f0d(0x2214)]:[],'id'):{},_0x29557c['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x162f0d(0x1c61),'avgTalkTime':_0x162f0d(0x1c61),'answerRate':0x0,'abandonRate':0x0},_0x29557c[_0x162f0d(0x895)]=_0x53b666||{'answered':0x0,'sumBillable':0x0,'sumDuration':0x0,'sumHoldTime':0x0,'total':0x0},_0x29557c[_0x162f0d(0x24f5)]=_0x520f2d,_0x29557c[_0x162f0d(0x20f1)]=_0xbf5d29,_0x497b1a['on'](_0x162f0d(0x82a),_0x29557c['onSaveQueue']),_0x497b1a['on'](_0x162f0d(0x1aab),_0x29557c[_0x162f0d(0x20f1)]),_0x77e016();function _0x77e016(){const _0x5e8363=_0x162f0d;_0x2673bb({'queues':_0x29557c[_0x5e8363(0x21b6)],'rpcQueues':_0x29557c['rpcQueues']})[_0x5e8363(0x1cb0)](function(_0x46a9b0){_0x29557c['inbound']=_0x46a9b0;});}function _0x520f2d(_0x4a1080){const _0x2231db=_0x162f0d;_0x29557c[_0x2231db(0x21b6)][_0x4a1080['id']]&&(_0x29557c[_0x2231db(0x2255)][_0x4a1080['id']]&&(_0x29557c[_0x2231db(0x2255)][_0x4a1080['id']]=_0x4a1080,_0x77e016()));}function _0xbf5d29(_0x28d4ab){const _0x3dd0a0=_0x162f0d;_0x29557c[_0x3dd0a0(0x895)]=_0x28d4ab;}_0x1c2519[_0x162f0d(0x1d6)](_0x162f0d(0x291c),function(){const _0x3f168d=_0x162f0d;_0x497b1a[_0x3f168d(0xfb8)](_0x3f168d(0x82a)),_0x497b1a[_0x3f168d(0xfb8)](_0x3f168d(0x1aab));});}const _0x1f6b99=_0x39dc14;;_0x301a8f[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1986),_0x5537c6(0xf49),_0x5537c6(0xbb3)];function _0x301a8f(_0x577ab6,_0x586313,_0x56f5b9,_0xbf315f){const _0x5aa181=_0x5537c6,_0xdacbe4=this,_0x67878f=[];_0xdacbe4[_0x5aa181(0xa60)]={'format':_0x5aa181(0x1530),'unit':_0x5aa181(0x479),'trim':![]},_0xdacbe4[_0x5aa181(0x26c0)]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x5aa181(0x1c61),'avgTalkTime':_0x5aa181(0x1c61),'answerRate':0x0,'abandonRate':0x0},_0xdacbe4[_0x5aa181(0xbb3)]=_0xbf315f?_0x39641b()['keyBy'](_0xbf315f[_0x5aa181(0x2214)]?_0xbf315f[_0x5aa181(0x2214)]:[],'id'):{},_0xdacbe4['onSaveWhatsappInteraction']=_0x580a3e,_0xdacbe4['onUpdateWhatsappInteraction']=_0x677de0,_0x586313['on'](_0x5aa181(0xa3e),_0xdacbe4[_0x5aa181(0x21af)]),_0x586313['on'](_0x5aa181(0x1b85),_0xdacbe4[_0x5aa181(0x2356)]),_0xf748c7();function _0xf6697e(_0x23e932,_0x1bcc72){const _0x5a0bc9=_0x5aa181;!_0x23e932[_0x5a0bc9(0x22aa)]&&!_0x23e932[_0x5a0bc9(0x21ab)]&&_0x1bcc72&&(_0xdacbe4['inbound'][_0x5a0bc9(0x26b6)]+=0x1),!_0x23e932[_0x5a0bc9(0x22aa)]&&_0x23e932[_0x5a0bc9(0x21ab)]&&!_0x39641b()[_0x5a0bc9(0x250a)](_0x67878f,_0x23e932['id'])&&(_0xdacbe4[_0x5a0bc9(0x26c0)][_0x5a0bc9(0x192a)]+=0x1,_0x67878f['push'](_0x23e932['id']),!_0x1bcc72&&_0xdacbe4['inbound'][_0x5a0bc9(0x26b6)]&&(_0xdacbe4[_0x5a0bc9(0x26c0)][_0x5a0bc9(0x26b6)]-=0x1)),_0x23e932[_0x5a0bc9(0x22aa)]&&_0x23e932['UserId']&&(_0xdacbe4['inbound']['sumBillable']+=_0x543b5a()(_0x23e932[_0x5a0bc9(0xecd)])[_0x5a0bc9(0xd42)](_0x543b5a()(_0x23e932['read1stAt']),_0xdacbe4[_0x5a0bc9(0xa60)][_0x5a0bc9(0x2510)]),_0xdacbe4[_0x5a0bc9(0x26c0)][_0x5a0bc9(0x1bfa)]+=_0x543b5a()(_0x23e932[_0x5a0bc9(0x1785)])['diff'](_0x543b5a()(_0x23e932[_0x5a0bc9(0x24cb)]),_0xdacbe4['config']['unit']),_0xdacbe4[_0x5a0bc9(0x26c0)][_0x5a0bc9(0x1175)]+=0x1,!_0x1bcc72&&_0xdacbe4[_0x5a0bc9(0x26c0)][_0x5a0bc9(0x192a)]&&(_0xdacbe4[_0x5a0bc9(0x26c0)][_0x5a0bc9(0x192a)]-=0x1)),_0x23e932[_0x5a0bc9(0x22aa)]&&!_0x23e932[_0x5a0bc9(0x21ab)]&&(_0xdacbe4['inbound']['unmanaged']+=0x1,!_0x1bcc72&&_0xdacbe4[_0x5a0bc9(0x26c0)][_0x5a0bc9(0x26b6)]&&(_0xdacbe4['inbound']['waiting']-=0x1)),_0x1bcc72&&(_0xdacbe4[_0x5a0bc9(0x26c0)][_0x5a0bc9(0x181c)]+=0x1);}function _0x271b7b(){const _0x4cfbdf=_0x5aa181;_0xdacbe4['inbound'][_0x4cfbdf(0x102a)]=Math['round']((_0xdacbe4['inbound'][_0x4cfbdf(0x20fe)]+_0xdacbe4[_0x4cfbdf(0x26c0)]['unmanaged'])/(_0xdacbe4['inbound'][_0x4cfbdf(0x181c)]-_0xdacbe4[_0x4cfbdf(0x26c0)][_0x4cfbdf(0x192a)]-_0xdacbe4[_0x4cfbdf(0x26c0)]['waiting'])*0x64,-0x2),_0xdacbe4[_0x4cfbdf(0x26c0)][_0x4cfbdf(0x144a)]=Math[_0x4cfbdf(0x1eed)](_0xdacbe4[_0x4cfbdf(0x26c0)][_0x4cfbdf(0x1175)]/(_0xdacbe4[_0x4cfbdf(0x26c0)][_0x4cfbdf(0x181c)]-_0xdacbe4[_0x4cfbdf(0x26c0)]['talking']-_0xdacbe4[_0x4cfbdf(0x26c0)][_0x4cfbdf(0x26b6)])*0x64,-0x2),_0xdacbe4[_0x4cfbdf(0x26c0)][_0x4cfbdf(0x265e)]=_0x543b5a()[_0x4cfbdf(0x2483)](Math['round'](_0xdacbe4['inbound'][_0x4cfbdf(0x1bfa)]/_0xdacbe4[_0x4cfbdf(0x26c0)]['answered']),_0xdacbe4[_0x4cfbdf(0xa60)][_0x4cfbdf(0x2510)])[_0x4cfbdf(0x1f31)](_0xdacbe4[_0x4cfbdf(0xa60)][_0x4cfbdf(0x1f31)],_0xdacbe4[_0x4cfbdf(0xa60)]),_0xdacbe4[_0x4cfbdf(0x26c0)]['avgTalkTime']=_0x543b5a()[_0x4cfbdf(0x2483)](Math[_0x4cfbdf(0x1eed)](_0xdacbe4[_0x4cfbdf(0x26c0)][_0x4cfbdf(0x202e)]/_0xdacbe4[_0x4cfbdf(0x26c0)][_0x4cfbdf(0x1175)]),_0xdacbe4[_0x4cfbdf(0xa60)][_0x4cfbdf(0x2510)])[_0x4cfbdf(0x1f31)](_0xdacbe4['config'][_0x4cfbdf(0x1f31)],_0xdacbe4['config']);}function _0xf748c7(){const _0x3c2775=_0x5aa181;if(Object[_0x3c2775(0x1be5)](_0xdacbe4['whatsappAccounts'])[_0x3c2775(0xfd0)]>0x0)for(let _0x1f92ba=0x0;_0x1f92ba<_0x56f5b9['rows'][_0x3c2775(0xfd0)];_0x1f92ba+=0x1){if(_0xb4315e(_0x56f5b9[_0x3c2775(0x2214)][_0x1f92ba])){const _0x17ca00=_0x56f5b9[_0x3c2775(0x2214)][_0x1f92ba];_0xf6697e(_0x17ca00,!![]),_0x271b7b();}}}function _0xb4315e(_0x2b4fa9){const _0x59b557=_0x5aa181;if(_0x39641b()['some'](_0xdacbe4[_0x59b557(0xbb3)],{'id':_0x39641b()[_0x59b557(0x106d)](_0x2b4fa9[_0x59b557(0xfc8)])}))return!![];return![];}function _0x207721(_0x4fdca7){const _0x5afc7e=_0x5aa181,_0x2e4d0f=_0x543b5a()()['utcOffset'](0x0,!![])['startOf'](_0x5afc7e(0x1a5)),_0x3a1719=_0x543b5a()()[_0x5afc7e(0x17d9)](0x0,!![])[_0x5afc7e(0x1b4)](_0x5afc7e(0x1a5));return _0x543b5a()(_0x4fdca7)[_0x5afc7e(0x17d9)](0x0,!![])[_0x5afc7e(0x480)](_0x2e4d0f,_0x3a1719);}function _0x580a3e(_0x31845b){const _0x55882d=_0x5aa181;_0xb4315e(_0x31845b)&&_0x207721(_0x31845b[_0x55882d(0x24cb)])&&(_0xf6697e(_0x31845b,!![]),_0x271b7b());}function _0x677de0(_0x6e58c4){_0xb4315e(_0x6e58c4)&&_0x207721(_0x6e58c4['createdAt'])&&(_0xf6697e(_0x6e58c4,![]),_0x271b7b());}_0x577ab6[_0x5aa181(0x1d6)](_0x5aa181(0x291c),function(){const _0x37aeb1=_0x5aa181;_0x586313[_0x37aeb1(0xfb8)](_0x37aeb1(0xa3e)),_0x586313['removeAllListeners'](_0x37aeb1(0x1b85));});}const _0x1242aa=_0x301a8f;;_0x21c30c[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6)];function _0x21c30c(_0x21751d){const _0x42ea77=_0x5537c6;_0x21751d['state']('app.dashboards.general.voice',{'url':_0x42ea77(0x1936),'data':{'selectedTab':0x0},'views':{'voice':{'templateUrl':_0x581555,'controller':'UserVoiceDashboardGeneralController\x20as\x20vm'}},'resolve':{'rpcQueues':[_0x42ea77(0x1e0b),function(_0x5a2b63){const _0x2cfccb=_0x42ea77;return _0x5a2b63[_0x2cfccb(0x19a3)](_0x2cfccb(0xe6d));}],'inboundQueues':['apiResolver',_0x42ea77(0x1774),function(_0x337b5b,_0x170ba5){const _0x22e384=_0x42ea77;return _0x170ba5[_0x22e384(0x22b6)]('admin')?_0x337b5b['resolve'](_0x22e384(0x1c4d),{'fields':_0x22e384(0x43c),'type':_0x22e384(0x26c0),'nolimit':!![]}):_0x337b5b['resolve'](_0x22e384(0x12da),{'id':_0x170ba5['getCurrentUser']()[_0x22e384(0x13c1)],'section':_0x22e384(0x2382),'fields':'id,name','type':_0x22e384(0x26c0),'channel':'voice','nolimit':!![]});}],'outbound':['apiResolver',function(_0x1b3914){const _0x466244=_0x42ea77;return _0x1b3914[_0x466244(0x19a3)](_0x466244(0x166d));}]},'authenticate':!![],'bodyClass':'dashboards'})['state'](_0x42ea77(0x1ba6),{'url':_0x42ea77(0x1489),'data':{'selectedTab':0x1},'views':{'dialer':{'templateUrl':_0x3dee78,'controller':'UserVoiceDashboardDialerController\x20as\x20vm'}},'resolve':{'rpcQueues':['apiResolver',function(_0xa40599){const _0x373eda=_0x42ea77;return _0xa40599['resolve'](_0x373eda(0xe6d));}],'outboundQueues':[_0x42ea77(0x1e0b),_0x42ea77(0x1774),function(_0x265655,_0x679830){const _0x50090e=_0x42ea77;return _0x679830[_0x50090e(0x22b6)]('admin')?_0x265655['resolve'](_0x50090e(0x1c4d),{'fields':'id,name','type':_0x50090e(0x895),'nolimit':!![]}):_0x265655[_0x50090e(0x19a3)](_0x50090e(0x12da),{'id':_0x679830[_0x50090e(0x21e8)]()[_0x50090e(0x13c1)],'section':'QueueCampaigns','fields':'id,name','type':_0x50090e(0x895),'channel':_0x50090e(0x1fd4),'nolimit':!![]});}],'rpcCampaigns':[_0x42ea77(0x1e0b),function(_0x4f3b52){const _0x53da52=_0x42ea77;return _0x4f3b52[_0x53da52(0x19a3)]('rpc@getCampaigns');}]},'authenticate':!![],'bodyClass':'dashboards'})[_0x42ea77(0x27e0)](_0x42ea77(0x2784),{'url':_0x42ea77(0x214f),'data':{'selectedTab':0x2},'views':{'chat':{'templateUrl':_0x2da774,'controller':'UserChatDashboardGeneralController\x20as\x20vm'}},'resolve':{'chatInteractions':[_0x42ea77(0x1e0b),function(_0x17c88d){const _0x549065=_0x42ea77;return _0x17c88d[_0x549065(0x19a3)](_0x549065(0xfd6),{'createdAt':{'$gte':_0x543b5a()()['startOf'](_0x549065(0x1a5))[_0x549065(0x17d9)](0x0,!![])[_0x549065(0x1f31)](),'$lte':_0x543b5a()()[_0x549065(0x1b4)]('day')[_0x549065(0x17d9)](0x0,!![])[_0x549065(0x1f31)]()},'nolimit':!![]});}],'chatWebsites':[_0x42ea77(0x1e0b),_0x42ea77(0x1774),function(_0x36d758,_0x49bb1a){const _0x56edee=_0x42ea77;return _0x49bb1a[_0x56edee(0x22b6)](_0x56edee(0x1c60))?_0x36d758['resolve'](_0x56edee(0xad5),{'fields':_0x56edee(0x802),'sort':_0x56edee(0x282),'limit':0xa,'offset':0x0}):_0x36d758['resolve'](_0x56edee(0x12da),{'id':_0x49bb1a[_0x56edee(0x21e8)]()[_0x56edee(0x13c1)],'section':'ChatWebsites','fields':_0x56edee(0x802),'sort':_0x56edee(0x282),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x42ea77(0xd41)})['state'](_0x42ea77(0x1ba2),{'url':'/mail','data':{'selectedTab':0x3},'views':{'mail':{'templateUrl':_0x34d5a4,'controller':_0x42ea77(0x3dc)}},'resolve':{'mailInteractions':[_0x42ea77(0x1e0b),function(_0x172cf0){const _0x22923e=_0x42ea77;return _0x172cf0[_0x22923e(0x19a3)](_0x22923e(0x2866),{'createdAt':{'$gte':_0x543b5a()()['startOf'](_0x22923e(0x1a5))[_0x22923e(0x17d9)](0x0,!![])[_0x22923e(0x1f31)](),'$lte':_0x543b5a()()['endOf'](_0x22923e(0x1a5))[_0x22923e(0x17d9)](0x0,!![])['format']()},'nolimit':!![]});}],'mailAccounts':[_0x42ea77(0x1e0b),_0x42ea77(0x1774),function(_0x2a0056,_0x86e035){const _0x201515=_0x42ea77;return _0x86e035[_0x201515(0x22b6)](_0x201515(0x1c60))?_0x2a0056[_0x201515(0x19a3)](_0x201515(0x5c1),{'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':_0x201515(0x282),'limit':0xa,'offset':0x0}):_0x2a0056['resolve'](_0x201515(0x12da),{'id':_0x86e035['getCurrentUser']()['userProfileId'],'section':_0x201515(0x9c9),'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':_0x201515(0x282),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':'dashboards'})['state']('app.dashboards.general.sms',{'url':_0x42ea77(0x1167),'data':{'selectedTab':0x4},'views':{'sms':{'templateUrl':_0x11cc88,'controller':'UserSmsDashboardGeneralController\x20as\x20vm'}},'resolve':{'smsInteractions':[_0x42ea77(0x1e0b),function(_0xddc3a5){const _0x438379=_0x42ea77;return _0xddc3a5[_0x438379(0x19a3)](_0x438379(0x1be1),{'createdAt':{'$gte':_0x543b5a()()[_0x438379(0x1be0)](_0x438379(0x1a5))[_0x438379(0x17d9)](0x0,!![])['format'](),'$lte':_0x543b5a()()[_0x438379(0x1b4)](_0x438379(0x1a5))[_0x438379(0x17d9)](0x0,!![])[_0x438379(0x1f31)]()},'nolimit':!![]});}],'smsAccounts':[_0x42ea77(0x1e0b),_0x42ea77(0x1774),function(_0x5636d5,_0x5a5218){const _0x4fa055=_0x42ea77;return _0x5a5218['hasRole'](_0x4fa055(0x1c60))?_0x5636d5['resolve'](_0x4fa055(0x55b),{'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':_0x4fa055(0x282),'limit':0xa,'offset':0x0}):_0x5636d5[_0x4fa055(0x19a3)](_0x4fa055(0x12da),{'id':_0x5a5218[_0x4fa055(0x21e8)]()[_0x4fa055(0x13c1)],'section':_0x4fa055(0x1b3f),'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':_0x4fa055(0x282),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x42ea77(0xd41)})[_0x42ea77(0x27e0)](_0x42ea77(0x1319),{'url':_0x42ea77(0x23a1),'data':{'selectedTab':0x5},'views':{'openchannel':{'templateUrl':_0x2d8f78,'controller':_0x42ea77(0x260f)}},'resolve':{'openchannelInteractions':['apiResolver',function(_0x4fcc86){const _0x2674ae=_0x42ea77;return _0x4fcc86['resolve'](_0x2674ae(0xe0c),{'createdAt':{'$gte':_0x543b5a()()['startOf'](_0x2674ae(0x1a5))[_0x2674ae(0x17d9)](0x0,!![])['format'](),'$lte':_0x543b5a()()['endOf']('day')['utcOffset'](0x0,!![])[_0x2674ae(0x1f31)]()},'nolimit':!![]});}],'openchannelAccounts':[_0x42ea77(0x1e0b),'Auth',function(_0x119935,_0x165e9f){const _0x162eb4=_0x42ea77;return _0x165e9f[_0x162eb4(0x22b6)](_0x162eb4(0x1c60))?_0x119935[_0x162eb4(0x19a3)](_0x162eb4(0x1183),{'fields':_0x162eb4(0x19b4),'sort':_0x162eb4(0x282),'nolimit':!![]}):_0x119935[_0x162eb4(0x19a3)](_0x162eb4(0x12da),{'id':_0x165e9f['getCurrentUser']()[_0x162eb4(0x13c1)],'section':'OpenchannelAccounts','fields':_0x162eb4(0x19b4),'sort':'-updatedAt','nolimit':!![]});}]},'authenticate':!![],'bodyClass':_0x42ea77(0xd41)})[_0x42ea77(0x27e0)]('app.dashboards.general.fax',{'url':_0x42ea77(0xf93),'data':{'selectedTab':0x6},'views':{'fax':{'templateUrl':_0x6d35e7,'controller':_0x42ea77(0x2693)}},'resolve':{'faxInteractions':[_0x42ea77(0x1e0b),function(_0x46125c){const _0x1a8ac7=_0x42ea77;return _0x46125c[_0x1a8ac7(0x19a3)](_0x1a8ac7(0x1481),{'createdAt':{'$gte':_0x543b5a()()[_0x1a8ac7(0x1be0)](_0x1a8ac7(0x1a5))[_0x1a8ac7(0x17d9)](0x0,!![])[_0x1a8ac7(0x1f31)](),'$lte':_0x543b5a()()[_0x1a8ac7(0x1b4)](_0x1a8ac7(0x1a5))['utcOffset'](0x0,!![])[_0x1a8ac7(0x1f31)]()},'nolimit':!![]});}],'faxAccounts':[_0x42ea77(0x1e0b),'Auth',function(_0x2f4202,_0x3a28b1){const _0x5a7046=_0x42ea77;return _0x3a28b1[_0x5a7046(0x22b6)](_0x5a7046(0x1c60))?_0x2f4202[_0x5a7046(0x19a3)](_0x5a7046(0x1e1a),{'fields':_0x5a7046(0x2639),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x2f4202[_0x5a7046(0x19a3)](_0x5a7046(0x12da),{'id':_0x3a28b1[_0x5a7046(0x21e8)]()[_0x5a7046(0x13c1)],'section':_0x5a7046(0x1ffe),'fields':'createdAt,updatedAt,id,name,key,headerinfo,TrunkId,localstationid,ListId,waitForTheAssignedAgent,description,ecm,minrate,maxrate,modem,gateway,faxdetect,t38timeout,tech,acceptMethod,acceptUrl,rejectMethod,rejectUrl,closeMethod,closeUrl,notificationSound,notificationShake,notificationTemplate','sort':_0x5a7046(0x282),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x42ea77(0xd41)})[_0x42ea77(0x27e0)](_0x42ea77(0x270f),{'url':'/whatsapp','data':{'selectedTab':0x7},'views':{'whatsapp':{'templateUrl':_0xead538,'controller':_0x42ea77(0x118c)}},'resolve':{'whatsappInteractions':[_0x42ea77(0x1e0b),function(_0x4b4832){const _0x1bff2a=_0x42ea77;return _0x4b4832[_0x1bff2a(0x19a3)](_0x1bff2a(0x24b1),{'createdAt':{'$gte':_0x543b5a()()[_0x1bff2a(0x1be0)]('day')[_0x1bff2a(0x17d9)](0x0,!![])[_0x1bff2a(0x1f31)](),'$lte':_0x543b5a()()[_0x1bff2a(0x1b4)](_0x1bff2a(0x1a5))[_0x1bff2a(0x17d9)](0x0,!![])['format']()},'nolimit':!![]});}],'whatsappAccounts':[_0x42ea77(0x1e0b),'Auth',function(_0x255880,_0x1706a3){const _0x205a32=_0x42ea77;return _0x1706a3[_0x205a32(0x22b6)](_0x205a32(0x1c60))?_0x255880[_0x205a32(0x19a3)](_0x205a32(0xa74),{'fields':_0x205a32(0x556),'sort':_0x205a32(0x282),'limit':0xa,'offset':0x0}):_0x255880['resolve'](_0x205a32(0x12da),{'id':_0x1706a3[_0x205a32(0x21e8)]()['userProfileId'],'section':'WhatsappAccounts','fields':_0x205a32(0x556),'sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':'dashboards'});}angular[_0x5537c6(0x9ab)]('app.dashboards.general.user',[])[_0x5537c6(0xa60)](_0x21c30c)[_0x5537c6(0x6e5)]('UserChatDashboardGeneralController',_0x4f26fe)['controller']('UserVoiceDashboardDialerController',_0x422e3c)[_0x5537c6(0x6e5)](_0x5537c6(0x1c30),_0x408c44)['controller'](_0x5537c6(0x2277),_0x509590)[_0x5537c6(0x6e5)](_0x5537c6(0x26cd),_0x1795e0)[_0x5537c6(0x6e5)](_0x5537c6(0x3bb),_0x47b9ca)[_0x5537c6(0x1c99)](_0x5537c6(0x20d2),_0x8db984)['factory'](_0x5537c6(0x1aaf),_0x1c8025)[_0x5537c6(0x234a)](_0x5537c6(0x1661),_0x9a195f)[_0x5537c6(0x6e5)]('UserDashboardGeneralController',_0xa32479)['controller'](_0x5537c6(0x28ec),_0x1f6b99)[_0x5537c6(0x6e5)](_0x5537c6(0x617),_0x1242aa);;const _0x3769c1=_0x5074a3['p']+_0x5537c6(0x1fce);;const _0x1e8e26=_0x5074a3['p']+_0x5537c6(0x1356);var _0x5082e6=_0x5074a3(0x1d2),_0x32329f=_0x5074a3['n'](_0x5082e6);;_0x1447cc[_0x5537c6(0x15b6)]=[_0x5537c6(0x1196),'$translate','$window',_0x5537c6(0x1774)],_0x152a73[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$timeout',_0x5537c6(0xcb9),'$window','$translate',_0x5537c6(0x22bf),_0x5537c6(0x1774),_0x5537c6(0x142b),'socket',_0x5537c6(0x9bf),_0x5537c6(0x1fbc),_0x5537c6(0x1927),_0x5537c6(0x24f0),_0x5537c6(0x12c6),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x2089),'msUtils'];function _0x152a73(_0x524f33,_0x5bbdb8,_0x9922d4,_0x39d4af,_0x1f8969,_0x216f30,_0x3f2f7a,_0x48746c,_0x13f33d,_0x51ff93,_0x3478dc,_0x541abd,_0x53f995,_0x1b5b93,_0x1d9683,_0x3afe34,_0x25f297,_0x4efaaf){const _0x2d0807=_0x5537c6,_0x31866f=this;_0x31866f[_0x2d0807(0x8a5)]=_0x1d9683,_0x31866f[_0x2d0807(0x9ca)]=_0x3afe34,_0x31866f[_0x2d0807(0x21b9)]=_0x4efaaf[_0x2d0807(0x21b9)](),_0x31866f[_0x2d0807(0xebe)]=_0x3f2f7a[_0x2d0807(0x21e8)](),_0x31866f['currentTab']=0x0,_0x31866f['notifications']={},_0x31866f[_0x2d0807(0x2e3)]={},_0x31866f[_0x2d0807(0x707)]={},_0x31866f['globalUserLists']=_0x3478dc||{'count':0x0,'rows':[]},_0x31866f[_0x2d0807(0x1927)]=_0x541abd||{'count':0x0,'rows':[]},_0x31866f['globalCompanies']=_0x53f995||{'count':0x0,'rows':[]},_0x31866f[_0x2d0807(0x12c6)]=_0x1b5b93||{'count':0x0,'rows':[]},_0x31866f[_0x2d0807(0x1111)]=_0x53d9d8,_0x31866f[_0x2d0807(0xf54)]=_0x4c0c1b,_0x31866f[_0x2d0807(0x680)]=_0x1574a3,_0x31866f[_0x2d0807(0x1bac)]=_0x4afabc,_0x31866f['addInteractionTab']=_0x2fe095,_0x31866f['addTab']=_0x3a03ed,_0x31866f['removeTab']=_0x52c9f5,_0x31866f[_0x2d0807(0x1c7c)]=_0x2701c7,_0x31866f['closeTab']=_0x311b98,_0x13f33d['on'](_0x2d0807(0x538),_0x1216d6),_0x13f33d['on']('trigger:jscripty',_0x8ed138),_0x13f33d['on'](_0x2d0807(0x299e),_0x24dea6),_0x13f33d['on'](_0x2d0807(0xa1a),_0x49f983),_0x13f33d['on'](_0x2d0807(0x1133),_0x43c52a),_0x13f33d['on']('notification:save',_0x55b783),_0x13f33d['on'](_0x2d0807(0x1e12),_0x17a8f3),_0x13f33d['on']('voice_queue_channel:remove',_0x4b7e07),_0x13f33d['on'](_0x2d0807(0x4a6),_0x4b7e07),_0x564cc0();function _0x564cc0(){const _0x530d42=_0x2d0807;let _0x1e4cf8=_0x39d4af[_0x530d42(0x1b83)][_0x530d42(0x2091)](_0x530d42(0x2743)+_0x31866f['user']['id']);if(_0x1e4cf8)try{_0x1e4cf8=JSON[_0x530d42(0xefe)](_0x1e4cf8),_0x31866f[_0x530d42(0x2e3)]=_0x1e4cf8['tabs']?_0x1e4cf8['tabs']:{},_0x31866f[_0x530d42(0x160f)]=_0x1e4cf8['currentTab']?_0x1e4cf8[_0x530d42(0x160f)]:0x0,_0x1eb407(_0x31866f[_0x530d42(0x2e3)][_0x31866f['currentTab']]);}catch(_0x5e46ad){console[_0x530d42(0x218e)](_0x5e46ad);}}function _0x2701c7(_0x5291ef){const _0x5aea8d=_0x2d0807,_0x1729d9={};for(const _0x3033fd in _0x31866f['tabs']){typeof _0x31866f[_0x5aea8d(0x2e3)][_0x3033fd]!==_0x5aea8d(0x16b5)&&(_0x1729d9[_0x3033fd]=_0x39641b()['pick'](_0x31866f[_0x5aea8d(0x2e3)][_0x3033fd],[_0x5aea8d(0x66a),_0x5aea8d(0x1386),_0x5aea8d(0x1072),'icon',_0x5aea8d(0x28b8),_0x5aea8d(0x646),'id',_0x5aea8d(0x167f),'badges']),!_0x39641b()['isNil'](_0x31866f[_0x5aea8d(0x2e3)][_0x3033fd][_0x5aea8d(0x8b1)])&&(_0x1729d9[_0x3033fd][_0x5aea8d(0x8b1)]=_0x39641b()['pick'](_0x31866f[_0x5aea8d(0x2e3)][_0x3033fd][_0x5aea8d(0x8b1)],['id',_0x5aea8d(0x20a6)])),!_0x39641b()['isNil'](_0x31866f['tabs'][_0x3033fd][_0x5aea8d(0x13e2)])&&(_0x1729d9[_0x3033fd][_0x5aea8d(0x13e2)]=_0x31866f['tabs'][_0x3033fd]['calls']),_0x31866f[_0x5aea8d(0x2e3)][_0x3033fd]['interaction']&&(_0x1729d9[_0x3033fd][_0x5aea8d(0x10e4)]=_0x39641b()[_0x5aea8d(0x169b)](_0x31866f[_0x5aea8d(0x2e3)][_0x3033fd][_0x5aea8d(0x10e4)],['id',_0x5aea8d(0x1d1e),_0x5aea8d(0x1285),_0x5aea8d(0x67c),_0x5aea8d(0x18e9),_0x5aea8d(0x1a2),_0x5aea8d(0xfc8),'closed','draft'])));}let _0x1feaaa=JSON[_0x5aea8d(0xefe)](_0x39d4af[_0x5aea8d(0x1b83)]['getItem']('motion2.user:'+_0x31866f[_0x5aea8d(0xebe)]['id']));_0x1feaaa?(_0x1feaaa[_0x5aea8d(0x2e3)]=_0x1729d9,_0x1feaaa[_0x5aea8d(0x160f)]=_0x31866f['currentTab']):_0x1feaaa={'tabs':_0x1729d9,'currentTab':_0x31866f[_0x5aea8d(0x160f)]},_0x39d4af[_0x5aea8d(0x1b83)][_0x5aea8d(0x13a8)]('motion2.user:'+_0x31866f[_0x5aea8d(0xebe)]['id'],JSON[_0x5aea8d(0x2701)](_0x1feaaa)),_0x5291ef&&_0x1eb407(_0x5291ef);}function _0x1eb407(_0x1e9681){const _0xa0b758=_0x2d0807;if(_0x39641b()[_0xa0b758(0x958)](_0x1e9681)||_0x1e9681&&_0x1e9681[_0xa0b758(0x66a)]===_0xa0b758(0x10e4)){const _0x1d73b8={'id':_0x31866f[_0xa0b758(0xebe)]['id'],'online':!![],'capacity':{'mail':0x0,'fax':0x0,'sms':0x0,'whatsapp':0x0,'openchannel':0x0,'chat':0x0},'interaction':{'mail':[],'fax':[],'sms':[],'whatsapp':[],'openchannel':[],'chat':[]}};for(const _0x1a0632 in _0x31866f[_0xa0b758(0x2e3)]){typeof _0x31866f['tabs'][_0x1a0632]!==_0xa0b758(0x16b5)&&(typeof _0x1d73b8['capacity'][_0x31866f['tabs'][_0x1a0632][_0xa0b758(0x1072)]]!==_0xa0b758(0x16b5)&&_0x31866f['tabs'][_0x1a0632][_0xa0b758(0x10e4)]&&!_0x31866f[_0xa0b758(0x2e3)][_0x1a0632][_0xa0b758(0x10e4)]['closed']&&(_0x1d73b8['capacity'][_0x31866f[_0xa0b758(0x2e3)][_0x1a0632][_0xa0b758(0x1072)]]+=0x1,_0x1d73b8['interaction'][_0x31866f[_0xa0b758(0x2e3)][_0x1a0632]['channel']][_0xa0b758(0x2785)](_0x31866f[_0xa0b758(0x2e3)][_0x1a0632][_0xa0b758(0x10e4)]['id'])));}if(!_0x39641b()[_0xa0b758(0x22a)](_0x31866f['agentCapacity'],_0x1d73b8[_0xa0b758(0x18f2)]))return _0x31866f[_0xa0b758(0x707)]=_0x1d73b8[_0xa0b758(0x18f2)],_0x48746c['rpc']['setAgentCapacity'](_0x1d73b8);}}function _0x311b98(_0x129116){const _0x1d1eea=_0x2d0807;let _0x164947=![];const _0x4a475f=_0x9922d4[_0x1d1eea(0x1551)]()[_0x1d1eea(0x1386)](_0x129116[_0x1d1eea(0x66a)]===_0x1d1eea(0x10e4)?_0x1d1eea(0x1435):_0x1d1eea(0x1618)+_0x129116[_0x1d1eea(0x66a)]+'?')[_0x1d1eea(0x1152)](_0x129116[_0x1d1eea(0x66a)]===_0x1d1eea(0x10e4)?'':_0x1d1eea(0xd4c)+_0x129116['type']+'\x20has\x20been\x20modified.\x20Closing\x20will\x20lose\x20all\x20changes!')[_0x1d1eea(0x15ad)](_0x1d1eea(0x25b2))['ok'](_0x129116[_0x1d1eea(0x66a)]==='interaction'?_0x1d1eea(0x2439):'OK')[_0x1d1eea(0x696)](_0x129116[_0x1d1eea(0x66a)]===_0x1d1eea(0x10e4)?'NO':'CANCEL');if(_0x129116[_0x1d1eea(0x167f)]){let _0x42a00e=![];_0x39641b()[_0x1d1eea(0xf90)](_0x129116[_0x1d1eea(0x13e2)],function(_0x578115){const _0x150b8d=_0x1d1eea;_0x578115[_0x150b8d(0x1935)]&&(_0x42a00e=!![]);});if(_0x129116['type']===_0x1d1eea(0x8b1)&&_0x129116['calls'][_0x1d1eea(0xfd0)]>0x0){let _0x45dca=undefined;if(_0x42a00e)_0x45dca=_0x9922d4[_0x1d1eea(0x494)]()[_0x1d1eea(0x1386)](_0x1d1eea(0xf74))[_0x1d1eea(0x1152)]('There\x20is\x20a\x20call\x20that\x20hasn\x27t\x20been\x20disposed\x20yet.')['ok']('OK'),_0x9922d4['show'](_0x45dca)[_0x1d1eea(0x2e0)](function(){_0x45dca=undefined;});else return _0x4a475f[_0x1d1eea(0x280d)][_0x1d1eea(0x1152)]='There\x20is\x20a\x20call\x20that\x20hasn\x27t\x20been\x20disposed\x20yet.',_0x9922d4[_0x1d1eea(0xe27)](_0x4a475f)['then'](function(){_0x52c9f5(_0x129116);});}else _0x52c9f5(_0x129116);}else{const _0x488f52=_0x31866f[_0x1d1eea(0xebe)][_0x1d1eea(0x2478)]||_0x31866f['user']['chatPause']||_0x31866f[_0x1d1eea(0xebe)][_0x1d1eea(0x2035)]||_0x31866f['user']['openchannelPause']||_0x31866f[_0x1d1eea(0xebe)][_0x1d1eea(0x1ce)];return _0x164947=![],_0x129116['type']===_0x1d1eea(0x10e4)&&(_0x164947=_0x129116['interaction'][_0x1d1eea(0x1649)][_0x1d1eea(0x1935)]),_0x9922d4['show'](_0x4a475f)[_0x1d1eea(0x1cb0)](function(){const _0x3d5407=_0x1d1eea;_0x129116[_0x3d5407(0x66a)]==='interaction'&&_0x9922d4[_0x3d5407(0xe27)]({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x3769c1,'parent':angular[_0x3d5407(0x1853)](_0x216f30[_0x3d5407(0x1ed9)]),'onRemoving':function(){const _0x49d462=_0x3d5407;_0x31866f[_0x49d462(0xebe)]&&_0x164947&&!_0x488f52&&_0x48746c[_0x49d462(0xebe)][_0x49d462(0xf5d)]({'id':_0x31866f[_0x49d462(0xebe)]['id']})[_0x49d462(0x1d77)][_0x49d462(0x1c4)](function(_0x193da1){const _0x5237f0=_0x49d462;console[_0x5237f0(0x218e)](_0x193da1);});},'clickOutsideToClose':!_0x164947,'escapeToClose':!_0x164947,'locals':{'user':_0x31866f[_0x3d5407(0xebe)],'channel':_0x129116['channel'],'interaction':_0x129116['interaction']}}),_0x52c9f5(_0x129116);})[_0x1d1eea(0x1c4)](function(){const _0x24c75c=_0x1d1eea;_0x129116[_0x24c75c(0x66a)]==='interaction'&&_0x52c9f5(_0x129116);});}}function _0x2fa0fb(_0xaa7f88){const _0x22f853=_0x2d0807;if(_0xaa7f88['channel']&&_0xaa7f88['interaction'])return _0x48746c[_0x22f853(0xebe)][_0x22f853(0x152a)+_0x39641b()[_0x22f853(0x277)](_0xaa7f88['channel'])+_0x22f853(0xd9a)]({'id':_0x31866f[_0x22f853(0xebe)]['id'],'ids':[_0xaa7f88[_0x22f853(0x10e4)]['id']]})[_0x22f853(0x1d77)]['catch'](function(_0x1bb694){console['error'](_0x1bb694);});}function _0x52c9f5(_0x25e704){const _0x146df2=_0x2d0807;if(_0x31866f[_0x146df2(0x2e3)][_0x25e704['id']]){_0x2fa0fb(_0x31866f[_0x146df2(0x2e3)][_0x25e704['id']]),delete _0x31866f[_0x146df2(0x2e3)][_0x25e704['id']],_0x31866f['currentTab']=0x0,_0x2701c7(_0x25e704);if(_0x25e704[_0x146df2(0x66a)]===_0x146df2(0x10e4))return _0x48746c[_0x25e704[_0x146df2(0x1072)]+_0x146df2(0x2735)]['get']({'id':_0x25e704[_0x146df2(0x10e4)]['id']})['$promise'][_0x146df2(0x1cb0)](function(_0x46d000){const _0x24008e=_0x146df2;return _0x48746c[_0x24008e(0xebe)][_0x24008e(0x152a)+_0x39641b()[_0x24008e(0x277)](_0x25e704[_0x24008e(0x1072)])+'Interactions']({'id':_0x31866f[_0x24008e(0xebe)]['id'],'ids':[_0x46d000['id']]})[_0x24008e(0x1d77)];})[_0x146df2(0x1c4)](function(_0x396e2a){const _0x38382a=_0x146df2;console[_0x38382a(0x218e)](_0x396e2a);});}}function _0x3a03ed(_0x41998f){const _0x3715e6=_0x2d0807;_0x41998f['id']=_0x39641b()['random'](0x2540be400),_0x41998f['openedAt']=new Date(),_0x41998f['saved']=![],_0x41998f['badges']=0x0,_0x31866f[_0x3715e6(0x2e3)][_0x41998f['id']]=_0x41998f,_0x31866f[_0x3715e6(0x160f)]=_0x41998f['id'],_0x2701c7(_0x41998f);}function _0x4c0c1b(_0x2fdc8d){return _0x2fdc8d===_0x31866f['currentTab'];}function _0x53d9d8(_0x3c7f76){const _0x21ab7d=_0x2d0807;_0x31866f[_0x21ab7d(0x160f)]=_0x3c7f76,_0x2701c7(_0x31866f[_0x21ab7d(0x2e3)][_0x3c7f76]);}function _0x1574a3(_0x5fef6){const _0x10f942=_0x2d0807;return _0x39641b()[_0x10f942(0x13b4)](_0x31866f[_0x10f942(0x2e3)],function(_0x10a54c){const _0x52ce0f=_0x10f942;return _0x10a54c[_0x52ce0f(0x66a)]===_0x52ce0f(0x10e4)&&_0x10a54c[_0x52ce0f(0x10e4)]&&_0x10a54c[_0x52ce0f(0x10e4)]['id']==_0x5fef6['interactionId']&&_0x10a54c[_0x52ce0f(0x1072)]==_0x5fef6['channel'];});}function _0x36bc04(_0xcd2fe8){const _0xaaa41c=_0x2d0807;let _0x17547e='';if(_0xcd2fe8){if(_0xcd2fe8[_0xaaa41c(0x1491)]||_0xcd2fe8[_0xaaa41c(0x1fbb)])_0xcd2fe8[_0xaaa41c(0x1491)]&&(_0x17547e+=_0xcd2fe8[_0xaaa41c(0x1491)]+'\x20'),_0xcd2fe8[_0xaaa41c(0x1fbb)]&&(_0x17547e+=_0xcd2fe8['lastName']);else _0xcd2fe8[_0xaaa41c(0x1340)]&&(_0x17547e=_0xcd2fe8[_0xaaa41c(0x1340)]);}return _0x17547e;}function _0x5af15d(_0x388d4e){const _0x4935c5=_0x2d0807;switch(_0x388d4e){case _0x4935c5(0x174c):return _0x4935c5(0x2181);case _0x4935c5(0x2651):return _0x4935c5(0xfbd);case _0x4935c5(0x689):return'icon-message-text';case _0x4935c5(0x15e0):return _0x4935c5(0x694);case'fax':return _0x4935c5(0x16d3);case _0x4935c5(0x2476):return'icon-whatsapp';default:return _0x4935c5(0x2181);}}function _0x2de27a(_0x3d30cd){const _0x4f1913=_0x2d0807;switch(_0x3d30cd){case _0x4f1913(0x174c):return _0x4f1913(0x7b5);case'mail':return _0x4f1913(0x15f2);case'sms':return _0x4f1913(0x1373);case _0x4f1913(0x15e0):return _0x4f1913(0x1f1f);case _0x4f1913(0x1944):return'blue-grey-A200';case _0x4f1913(0x2476):return _0x4f1913(0x1995);default:return _0x4f1913(0x2495);}}function _0x4afabc(_0xaea701,_0x11a43e){const _0x7df94c=_0x2d0807,_0x55d654={'type':_0x7df94c(0x8b1),'title':_0xaea701?_0x36bc04(_0xaea701):_0x1f8969['instant']('APP.NEW_CONTACT'),'icon':_0x7df94c(0xdd9),'color':_0x7df94c(0x1a72),'contact':_0xaea701,'calls':_0x11a43e?[_0x11a43e]:[],'autoCreate':_0x11a43e?_0x11a43e['autoCreate']:0x0};_0x11a43e&&(!_0x11a43e[_0x7df94c(0x2052)]&&(_0x11a43e[_0x7df94c(0x2052)]=_0x11a43e[_0x7df94c(0x2708)]),(_0x11a43e[_0x7df94c(0x1027)]||_0x11a43e[_0x7df94c(0x2134)])&&_0x1c194a(_0x11a43e));if(_0xaea701){const _0x1b8e9b=_0x39641b()[_0x7df94c(0x13b4)](_0x31866f[_0x7df94c(0x2e3)],function(_0x11b837){const _0x1b4d96=_0x7df94c;if(_0x11b837['contact']&&_0x11b837['contact']['id'])return _0x11b837['type']===_0x1b4d96(0x8b1)&&_0x11b837['contact']&&_0x11b837[_0x1b4d96(0x8b1)]['id']==_0xaea701['id'];return _0x11b837[_0x1b4d96(0x66a)]==='contact'&&_0x11b837[_0x1b4d96(0x8b1)]&&_0x11b837[_0x1b4d96(0x8b1)][_0x1b4d96(0x1340)]==_0xaea701[_0x1b4d96(0x1340)];});if(_0x1b8e9b){if(_0x11a43e)return _0x48746c[_0x7df94c(0x11f2)][_0x7df94c(0xbf7)]({'uniqueid':_0x11a43e[_0x7df94c(0x1425)]})['$promise'][_0x7df94c(0x1cb0)](function(_0x4948f9){const _0x315944=_0x7df94c;_0x4948f9&&_0x4948f9[_0x315944(0x2214)][_0x315944(0xfd0)]>0x0&&(_0x11a43e[_0x315944(0x1bc7)]=_0x39641b()['first'](_0x4948f9[_0x315944(0x2214)])['endtime']);if(_0x1b8e9b[_0x315944(0x13e2)]){const _0x44a0ee=_0x39641b()[_0x315944(0x13b4)](_0x1b8e9b['calls'],function(_0x28f0e4){const _0x20f211=_0x315944;return _0x28f0e4[_0x20f211(0x1425)]===_0x11a43e[_0x20f211(0x1425)];});!_0x44a0ee&&_0x1b8e9b[_0x315944(0x13e2)][_0x315944(0x2785)](_0x11a43e);}else _0x1b8e9b[_0x315944(0x13e2)]=[_0x11a43e];_0x31866f[_0x315944(0x160f)]=_0x1b8e9b['id'];});}else{if(_0xaea701[_0x7df94c(0x20a6)])return _0x48746c[_0x7df94c(0x1746)][_0x7df94c(0xbf7)]({'ListId':_0xaea701[_0x7df94c(0x20a6)]})['$promise'][_0x7df94c(0x1cb0)](function(_0x24aac1){const _0x1ee701=_0x7df94c;return _0x55d654[_0x1ee701(0xdf2)]=_0x24aac1,_0x48746c['cmList'][_0x1ee701(0x178f)]({'id':_0xaea701[_0x1ee701(0x20a6)]})[_0x1ee701(0x1d77)];})[_0x7df94c(0x1cb0)](function(_0x2b3bea){const _0xbc1ac0=_0x7df94c;_0x55d654[_0xbc1ac0(0x2242)]=_0x2b3bea;})['catch'](_0x439e21())[_0x7df94c(0x2e0)](function(){_0x3a03ed(_0x55d654);});else _0x3a03ed(_0x55d654);}}else _0x3a03ed(_0x55d654);}function _0x2fe095(_0x17184b,_0x44f110){const _0x26f890=_0x2d0807;let _0x51cfa1=_0x39641b()['find'](_0x31866f[_0x26f890(0x2e3)],function(_0x2fb90c){const _0x3dc88b=_0x26f890;return _0x2fb90c['type']===_0x3dc88b(0x10e4)&&_0x2fb90c[_0x3dc88b(0x10e4)]&&_0x2fb90c['interaction']['id']===_0x44f110['id']&&_0x2fb90c[_0x3dc88b(0x1072)]===_0x17184b;});_0x51cfa1?(_0x51cfa1[_0x26f890(0xd34)]=_0x44f110[_0x26f890(0xd34)]||![],_0x31866f['currentTab']=_0x51cfa1['id']):(_0x51cfa1={'type':_0x26f890(0x10e4),'title':_0x17184b?_0x17184b[_0x26f890(0x2335)]():_0x26f890(0x15e0),'icon':_0x5af15d(_0x17184b),'color':_0x2de27a(_0x17184b),'channel':_0x17184b,'interaction':_0x44f110,'isDraft':_0x44f110[_0x26f890(0xd34)]||![]},_0x3a03ed(_0x51cfa1));}function _0x2a3200(_0x691f4){const _0x2f60a5=_0x2d0807,_0x47e6e0={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x2f60a5(0x1346),'body':_0x691f4[_0x2f60a5(0x11cf)]?'Queue:\x20'+_0x691f4['queue']:'','focusOnclick':!![],'closeOnClick':!![]};_0x25f297[_0x2f60a5(0xe27)](_0x691f4[_0x2f60a5(0x1386)],_0x47e6e0);}function _0x3b8430(_0x17fe7e){const _0x87a902=_0x2d0807;_0x25f297[_0x87a902(0x8e4)]()?_0x25f297[_0x87a902(0x1248)]()['then'](function(){_0x2a3200(_0x17fe7e);},function(_0x4c5ec1){const _0x3a7a28=_0x87a902;console[_0x3a7a28(0x218e)](_0x3a7a28(0xc17),_0x4c5ec1);}):console[_0x87a902(0x218e)](_0x87a902(0x276a));}function _0x55b783(_0x4c5344){const _0x2c6e2f=_0x2d0807;if(_0x4c5344&&_0x4c5344[_0x2c6e2f(0x1425)]){_0x3b8430(_0x4c5344);const _0xa67c5b=_0x1574a3(_0x4c5344);if(_0xa67c5b){if(_0x48746c[_0x4c5344[_0x2c6e2f(0x1072)]+_0x2c6e2f(0x27df)])return _0x31866f[_0x2c6e2f(0x160f)]!==_0xa67c5b['id']&&(_0xa67c5b['badges']+=0x1),_0x48746c[_0x4c5344[_0x2c6e2f(0x1072)]+_0x2c6e2f(0x27df)]['accept']({'id':_0x4c5344['id'],'UserId':_0x31866f['user']['id']})[_0x2c6e2f(0x1d77)]['catch'](_0x439e21());}else _0x51ff93[_0x2c6e2f(0x1b94)]({'title':_0x4c5344[_0x2c6e2f(0x1386)],'msg':_0x4c5344[_0x2c6e2f(0xee7)]||'','showClose':![],'clickToClose':![],'timeout':![],'sound':_0x4c5344['sound'],'html':!![],'shake':_0x4c5344['shake']||![],'onAdd':function(){const _0x654f14=_0x2c6e2f;_0x31866f[_0x654f14(0xfbc)][_0x4c5344[_0x654f14(0x1425)]]=this['id'];},'onAccept':function(){const _0x296efc=_0x2c6e2f;_0x17a8f3(_0x4c5344);if(_0x48746c[_0x4c5344[_0x296efc(0x1072)]+_0x296efc(0x27df)])return _0x48746c[_0x4c5344[_0x296efc(0x1072)]+_0x296efc(0x27df)]['accept']({'id':_0x4c5344['id'],'UserId':_0x31866f[_0x296efc(0xebe)]['id'],'manual':!![]})['$promise'][_0x296efc(0x1cb0)](function(_0x430d9d){const _0x5ccec7=_0x296efc;_0x2fe095(_0x430d9d[_0x5ccec7(0x1072)],_0x430d9d[_0x5ccec7(0x10e4)]),_0x51ff93[_0x5ccec7(0x829)]({'title':'Message\x20properly\x20accepted!','msg':_0x5ccec7(0x25e9)});})['catch'](_0x439e21());},'onReject':function(){const _0x33e81e=_0x2c6e2f;_0x17a8f3(_0x4c5344);if(_0x48746c[_0x4c5344['channel']+_0x33e81e(0x27df)])return _0x48746c[_0x4c5344['channel']+_0x33e81e(0x27df)][_0x33e81e(0x988)]({'id':_0x4c5344['id'],'UserId':_0x31866f['user']['id']})[_0x33e81e(0x1d77)][_0x33e81e(0x1cb0)](function(){const _0x4e4b6f=_0x33e81e;_0x51ff93[_0x4e4b6f(0x829)]({'title':_0x4e4b6f(0x32c),'msg':_0x4e4b6f(0xe86)});})[_0x33e81e(0x1c4)](_0x439e21());}});}}function _0x17a8f3(_0x1ea7fd){const _0x16c01f=_0x2d0807;_0x1ea7fd&&_0x1ea7fd['uniqueid']&&(_0x31866f[_0x16c01f(0xfbc)][_0x1ea7fd[_0x16c01f(0x1425)]]&&(_0x51ff93[_0x16c01f(0x20a0)](_0x31866f[_0x16c01f(0xfbc)][_0x1ea7fd[_0x16c01f(0x1425)]]),delete _0x31866f[_0x16c01f(0xfbc)][_0x1ea7fd[_0x16c01f(0x1425)]]));}function _0x1216d6(_0x4fb894){const _0x3f4a87=_0x2d0807;if(!_0x4fb894[_0x3f4a87(0x7eb)]){_0x4afabc(_0x4fb894['contact'],_0x4fb894[_0x3f4a87(0xccf)]);return;}_0x9922d4[_0x3f4a87(0xe27)]({'controller':_0x3f4a87(0x254d),'controllerAs':'vm','templateUrl':_0x1e8e26,'parent':angular['element'](_0x216f30['body']),'locals':{'contacts':_0x4fb894[_0x3f4a87(0x7eb)],'callNumber':_0x4fb894['evt'][_0x3f4a87(0xedf)]?_0x4fb894[_0x3f4a87(0xccf)]['destcalleridnum']:_0x4fb894[_0x3f4a87(0xccf)][_0x3f4a87(0x17d3)]}})[_0x3f4a87(0x1cb0)](function(_0x637174){_0x4afabc(_0x637174,_0x4fb894['evt']);});}function _0x8ed138(_0x19b0e1){const _0x27987d=_0x2d0807;return _0x48746c['jscriptyProject'][_0x27987d(0xbf7)]({'id':_0x19b0e1[_0x27987d(0x1a48)]})[_0x27987d(0x1d77)][_0x27987d(0x1cb0)](function(_0x1b72ad){const _0x311125=_0x27987d;if(_0x1b72ad){if(_0x39641b()['isUndefined'](_0x19b0e1[_0x311125(0xf6c)])){try{_0x1b72ad[_0x311125(0x1b8c)]=_0x32329f()[_0x311125(0x1778)](_0x1b72ad[_0x311125(0x1b8c)],_0x39641b()[_0x311125(0x9c1)](_0x19b0e1,{'user':_0x31866f[_0x311125(0xebe)]}));}catch(_0x396194){console[_0x311125(0x218e)](_0x396194);}_0x3a03ed({'type':'jscripty','title':_0x1b72ad['name'],'icon':'icon-script','color':'grey','project':_0x1b72ad,'call':_0x19b0e1});}else return _0x48746c[_0x311125(0xbe7)][_0x311125(0xbf7)]({'id':_0x19b0e1['xmd-contactid']})[_0x311125(0x1d77)][_0x311125(0x1cb0)](function(_0x1841d1){const _0xc586f7=_0x311125;try{_0x1b72ad[_0xc586f7(0x1b8c)]=_0x32329f()[_0xc586f7(0x1778)](_0x1b72ad['formData'],_0x39641b()[_0xc586f7(0x9c1)](_0x19b0e1,{'user':_0x31866f[_0xc586f7(0xebe)],'contact':_0x1841d1}));}catch(_0x1a9cdb){console[_0xc586f7(0x218e)](_0x1a9cdb);}_0x3a03ed({'type':'jscripty','title':_0x1b72ad['name'],'icon':'icon-script','color':_0xc586f7(0x2495),'project':_0x1b72ad,'call':_0x19b0e1,'contact':_0x1841d1});})[_0x311125(0x1c4)](_0x439e21());}})[_0x27987d(0x1c4)](_0x439e21());}function _0x49f983(_0x31fff6){const _0x23b6cd=_0x2d0807;if(_0x31fff6&&_0x31fff6[_0x23b6cd(0xa0b)]){_0x31fff6[_0x23b6cd(0xa0b)]=_0x39641b()[_0x23b6cd(0x288f)](_0x31fff6[_0x23b6cd(0xa0b)],_0x23b6cd(0x6c2),''),_0x31fff6['uri']=_0x39641b()['replace'](_0x31fff6[_0x23b6cd(0xa0b)],_0x23b6cd(0x164e),'');if(_0x31fff6[_0x23b6cd(0x14a3)])switch(_0x31fff6[_0x23b6cd(0x14a3)]){case'0':_0x39d4af[_0x23b6cd(0x536)](_0x31fff6['uri']);break;case'1':_0x39d4af[_0x23b6cd(0x536)](_0x31fff6['uri'],_0x23b6cd(0x22ac),_0x23b6cd(0x151f)+(_0x31fff6['windowWidth']||_0x23b6cd(0x175))+_0x23b6cd(0xaeb)+_0x31fff6[_0x23b6cd(0x18c3)]||0x0);break;case'2':{const _0x3d22f8={'type':'iframe','title':_0x31fff6[_0x23b6cd(0xa0b)],'icon':_0x23b6cd(0x694),'color':'blue','src':_0x31fff6[_0x23b6cd(0xa0b)]};_0x3a03ed(_0x3d22f8);}break;default:_0x39d4af['open'](_0x31fff6[_0x23b6cd(0xa0b)]);}else _0x39d4af['open'](_0x31fff6[_0x23b6cd(0xa0b)]);}}function _0x43c52a(_0x1b9c73){const _0x3dc932=_0x2d0807;_0x1b9c73&&_0x1b9c73[_0x3dc932(0x1d35)]&&_0x3a03ed({'type':_0x3dc932(0x10f4),'title':_0x1b9c73['calleridnum']||_0x3dc932(0x10f4),'icon':_0x3dc932(0x17fc),'color':'grey','html':_0x1b9c73[_0x3dc932(0x1d35)]});}function _0x24dea6(_0xe03325){const _0x4ea77f=_0x2d0807,_0x2858f3=_0xe03325[_0x4ea77f(0xbb5)]&&_0xe03325[_0x4ea77f(0xbb5)]!==''?_0xe03325[_0x4ea77f(0xbb5)]:_0xe03325['calleridnum'],_0x509bc8=_0xe03325['calleridnum'];return _0x48746c[_0x4ea77f(0x2858)][_0x4ea77f(0xbf7)]({'fields':'id','limit':0x1,'offset':0x0,'uniqueid':_0xe03325[_0x4ea77f(0x1425)]})[_0x4ea77f(0x1d77)][_0x4ea77f(0x1cb0)](function(_0x5e4af4){const _0x3ea60b=_0x4ea77f;_0x5e4af4['count']&&_0x3a03ed({'type':_0x3ea60b(0x1c1d),'title':_0x2858f3+'\x20<'+_0x509bc8+'>','icon':'fas\x20fa-robot','color':_0x3ea60b(0x2547),'data':{'uniqueid':_0xe03325[_0x3ea60b(0x1425)]}});});}function _0x4b7e07(_0x537bbc){const _0x8f4a8c=_0x2d0807;console[_0x8f4a8c(0xbf5)]('onVoiceChannelRemove\x20->\x20evt',_0x537bbc);for(const _0x4756e2 in _0x31866f[_0x8f4a8c(0x2e3)]){if(typeof _0x31866f[_0x8f4a8c(0x2e3)][_0x4756e2]!==_0x8f4a8c(0x16b5)){const _0x3ea419=_0x31866f[_0x8f4a8c(0x2e3)][_0x4756e2];if(_0x3ea419[_0x8f4a8c(0x13e2)]){console[_0x8f4a8c(0xbf5)](_0x8f4a8c(0x2060),_0x4756e2,_0x3ea419,_0x3ea419[_0x8f4a8c(0x13e2)]);const _0x210fc6=_0x39641b()[_0x8f4a8c(0x3c2)](_0x3ea419['calls'],function(_0x243c8d){const _0x90cb51=_0x8f4a8c;return _0x243c8d[_0x90cb51(0x1425)]===_0x537bbc['uniqueid'];});_0x210fc6>=0x0&&!_0x3ea419[_0x8f4a8c(0x13e2)][_0x210fc6][_0x8f4a8c(0x1bc7)]?(console['debug'](_0x8f4a8c(0x297b),_0x537bbc[_0x8f4a8c(0x1425)]),_0x1c194a(_0x3ea419[_0x8f4a8c(0x13e2)][_0x210fc6])):console[_0x8f4a8c(0xbf5)](_0x8f4a8c(0x226e),_0x537bbc[_0x8f4a8c(0x1425)]),_0x31866f['contact']&&_0x31866f['contact']['id']&&_0x5bbdb8(_0x2968d6(_0x537bbc[_0x8f4a8c(0x1425)],_0x31866f['contact']['id'],_0x3ea419),0x3e8);}}}_0x2701c7();}function _0x2968d6(_0x529b21,_0x1d53a0,_0x9d822b){return function(){const _0x576f69=a0_0x5cbd,_0x3edf66=_0x39641b()[_0x576f69(0x13b4)](_0x9d822b['calls'],function(_0x31dbdf){const _0x5619ce=_0x576f69;return _0x31dbdf[_0x5619ce(0x1425)]===_0x529b21;});if(_0x3edf66)return _0x48746c[_0x576f69(0x11f2)][_0x576f69(0x687)]({'id':_0x529b21,'ContactId':_0x1d53a0})[_0x576f69(0x1d77)][_0x576f69(0x1c4)](function(_0x5d9ce2){const _0x168e25=_0x576f69;console[_0x168e25(0x218e)](_0x5d9ce2);});};}function _0x1c194a(_0x3ea0f9){const _0x2f2cd3=_0x2d0807;_0x3ea0f9[_0x2f2cd3(0x1bc7)]=new Date();}function _0x439e21(){return function(_0x3cc77c){const _0x147dbd=a0_0x5cbd;if(_0x3cc77c['status']===0x194)_0x51ff93[_0x147dbd(0x1752)]({'title':_0x1f8969[_0x147dbd(0x25cc)](_0x147dbd(0x108f)),'msg':_0x1f8969['instant'](_0x147dbd(0x12ef))});else{if(_0x3cc77c[_0x147dbd(0x25c)]&&_0x3cc77c[_0x147dbd(0x25c)][_0x147dbd(0x1a7c)]&&_0x3cc77c['data']['errors']['length']){_0x31866f[_0x147dbd(0x1a7c)]=_0x3cc77c['data']['errors']||[{'message':_0x3cc77c[_0x147dbd(0x147f)](),'type':_0x147dbd(0x10ed)}];for(let _0x332dd5=0x0;_0x332dd5<_0x3cc77c['data'][_0x147dbd(0x1a7c)]['length'];_0x332dd5+=0x1){_0x51ff93[_0x147dbd(0x218e)]({'title':_0x3cc77c[_0x147dbd(0x25c)][_0x147dbd(0x1a7c)][_0x332dd5]['type'],'msg':_0x3cc77c['data'][_0x147dbd(0x1a7c)][_0x332dd5][_0x147dbd(0x155e)]});}}else _0x51ff93[_0x147dbd(0x218e)]({'title':_0x3cc77c[_0x147dbd(0x291)]?_0x147dbd(0xeb9)+_0x3cc77c[_0x147dbd(0x291)]+_0x147dbd(0x1657)+_0x3cc77c[_0x147dbd(0xc22)]:_0x147dbd(0x10ed),'msg':_0x3cc77c[_0x147dbd(0x25c)]?JSON[_0x147dbd(0x2701)](_0x3cc77c[_0x147dbd(0x25c)][_0x147dbd(0x155e)]):_0x3cc77c[_0x147dbd(0x147f)]()});}};}_0x524f33['$on'](_0x2d0807(0x291c),function(){const _0x47733e=_0x2d0807;for(const _0x193ef4 in _0x31866f['notifications']){typeof _0x31866f[_0x47733e(0xfbc)][_0x193ef4]!=='undefined'&&_0x17a8f3({'uniqueid':_0x193ef4});}_0x13f33d[_0x47733e(0xfb8)]('trigger:contactmanager'),_0x13f33d[_0x47733e(0xfb8)]('trigger:jscripty'),_0x13f33d[_0x47733e(0xfb8)](_0x47733e(0xa1a)),_0x13f33d['removeAllListeners'](_0x47733e(0x1133)),_0x13f33d[_0x47733e(0xfb8)](_0x47733e(0x11bf)),_0x13f33d[_0x47733e(0xfb8)]('notification:remove'),_0x13f33d['removeAllListeners'](_0x47733e(0x18f7)),_0x13f33d[_0x47733e(0xfb8)]('voice_outbound_channel:remove');});}function _0x1447cc(_0x479272,_0xb801b3,_0x4e1f71,_0x3842db){const _0x291247=_0x5537c6,_0x3e7a84={};let _0x34a98a={},_0x10a254={},_0x2dc3c5={};_0x3e7a84[_0x291247(0x1a8e)]=function(){const _0x123f3a=_0x291247;_0x3e7a84[_0x123f3a(0xcd2)]=_0x5c6a3d();},_0x3e7a84['getByInteraction']=function(_0x30022a){const _0x249378=_0x291247;return _0x3e7a84['drafts']=_0x5c6a3d(),_0x39641b()[_0x249378(0x13b4)](_0x39641b()[_0x249378(0x27aa)](_0x3e7a84[_0x249378(0xcd2)]),function(_0x342608){const _0x4a841a=_0x249378;return _0x342608[_0x4a841a(0x10e4)]&&_0x342608['interaction']['id']===_0x30022a;});},_0x3e7a84[_0x291247(0x13bc)]=function(_0x3a5493){const _0x44f0ec=_0x291247;_0x3e7a84[_0x44f0ec(0xcd2)]=_0x5c6a3d();const _0x5aa778=_0x39641b()['find'](_0x39641b()[_0x44f0ec(0x27aa)](_0x3e7a84['drafts']),function(_0x4d9d7a){const _0x5792fc=_0x44f0ec;return _0x4d9d7a[_0x5792fc(0x10e4)]&&_0x4d9d7a[_0x5792fc(0x10e4)]['id']===_0x3a5493;});_0x5aa778&&(delete _0x3e7a84[_0x44f0ec(0xcd2)][_0x5aa778['id']],_0x129fea());},_0x3e7a84[_0x291247(0x17a1)]=function(_0x5dffb6){const _0x39aea1=_0x291247;_0x3e7a84[_0x39aea1(0xcd2)]=_0x5c6a3d();let _0x4be8e5=_0xb801b3[_0x39aea1(0x25cc)](_0x39aea1(0x1519));if(_0x5dffb6[_0x39aea1(0x8b1)])_0x4be8e5=_0x5dffb6[_0x39aea1(0x8b1)][_0x39aea1(0x1491)]||_0x5dffb6['contact'][_0x39aea1(0x1e19)];else!_0x39641b()['isEmpty'](_0x5dffb6['message'][_0x39aea1(0x1e5d)])&&(_0x4be8e5=_0x5dffb6[_0x39aea1(0x155e)][_0x39aea1(0x1e5d)]);const _0x3e9611={'type':'draft','title':_0x5dffb6[_0x39aea1(0x1539)][_0x39aea1(0xee8)]+_0x39aea1(0x1657)+_0x4be8e5,'channel':_0x5dffb6[_0x39aea1(0x1072)],'content':_0x5dffb6['message'],'account':_0x5dffb6['account'],'interaction':_0x5dffb6[_0x39aea1(0x10e4)],'id':_0x39641b()['random'](0x2540be400),'openedAt':new Date(),'saved':![]};_0x3e7a84['drafts'][_0x3e9611['id']]=_0x3e9611,_0x129fea();},_0x3e7a84[_0x291247(0x687)]=function(_0x4e2b84){const _0x35313e=_0x291247;_0x3e7a84[_0x35313e(0xcd2)]=_0x5c6a3d();const _0x2fae8c=_0x3e7a84[_0x35313e(0xcd2)][_0x4e2b84['id']];_0x2fae8c&&(_0x2fae8c[_0x35313e(0x862)]=_0x4e2b84[_0x35313e(0x155e)],_0x3e7a84[_0x35313e(0xcd2)][_0x4e2b84['id']]=_0x2fae8c,_0x129fea());},_0x3e7a84[_0x291247(0x536)]=function(_0x52c8ba){const _0x4dbdbb=_0x291247;_0x3e7a84['drafts']=_0x5c6a3d();const _0x5068b4=_0x3e7a84[_0x4dbdbb(0xcd2)][_0x52c8ba];_0x5068b4&&_0x479272[_0x4dbdbb(0x692)]('open'+_0x39641b()[_0x4dbdbb(0xa75)](_0x10a254)+_0x4dbdbb(0x26e7),_0x5068b4);},_0x3e7a84[_0x291247(0x152a)]=function(_0x4ba39f){const _0x359d21=_0x291247;_0x3e7a84[_0x359d21(0xcd2)]=_0x5c6a3d(),_0x3e7a84[_0x359d21(0xcd2)][_0x4ba39f]&&(delete _0x3e7a84[_0x359d21(0xcd2)][_0x4ba39f],_0x129fea());};function _0x5c6a3d(){const _0x2840e2=_0x291247;_0x34a98a=_0x3842db[_0x2840e2(0x21e8)]();const _0x4f4b46=_0x4e1f71[_0x2840e2(0x1b83)]['getItem'](_0x2840e2(0xef6)+_0x34a98a['id']);_0x4f4b46?_0x10a254=JSON[_0x2840e2(0xefe)](_0x4f4b46)[_0x2840e2(0x198a)]:_0x10a254=_0x2840e2(0x1312);_0x2dc3c5=_0x4e1f71[_0x2840e2(0x1b83)][_0x2840e2(0x2091)]('motion2.home.'+_0x10a254+':'+_0x34a98a['id']);if(_0x2dc3c5){const _0x1265dd=JSON[_0x2840e2(0xefe)](_0x2dc3c5);!_0x1265dd[_0x2840e2(0xcd2)]&&(_0x1265dd[_0x2840e2(0xcd2)]={}),_0x2dc3c5=_0x1265dd;}else _0x2dc3c5={'drafts':{}};return _0x2dc3c5[_0x2840e2(0xcd2)];}function _0x129fea(){const _0x261883=_0x291247;_0x39641b()[_0x261883(0xce9)](_0x3e7a84[_0x261883(0xcd2)])?delete _0x2dc3c5[_0x261883(0xcd2)]:_0x2dc3c5[_0x261883(0xcd2)]=_0x3e7a84[_0x261883(0xcd2)],_0x4e1f71[_0x261883(0x1b83)][_0x261883(0x13a8)](_0x261883(0x27ef)+_0x10a254+':'+_0x34a98a['id'],JSON['stringify'](_0x2dc3c5));}return _0x3e7a84;};function _0x5a0917(){const _0x436b3a=_0x5537c6,_0x5059c8={'autoClose':!![],'duration':0x5,'showOnPageHidden':![]};return{'config':_0x1d04ef,'$get':['$q',_0x436b3a(0x2168),_0x436b3a(0x1f10),_0x436b3a(0x1a94),_0x3008f9]};function _0x1d04ef(_0x7c2ef2){const _0x26ce94=_0x436b3a;for(const _0x3cd3c3 in _0x7c2ef2){typeof _0x5059c8[_0x3cd3c3]!==_0x26ce94(0x16b5)&&typeof _0x7c2ef2[_0x3cd3c3]!==_0x26ce94(0x16b5)&&(_0x5059c8[_0x3cd3c3]=_0x7c2ef2[_0x3cd3c3]);}}function _0x3008f9(_0x57013b,_0x3609e8,_0x379b2c,_0x4720ef){const _0x41cd2a=_0x436b3a,_0x4d11db=_0x379b2c[_0x41cd2a(0x1e22)]||_0x379b2c['mozNotification']||_0x379b2c[_0x41cd2a(0x959)],_0x312c23={'isSupported':_0x20185b,'currentPermission':_0x37d17f,'requestPermission':_0x3fc6d7,'show':_0x183b06,'permissions':{'default':_0x4720ef[_0x41cd2a(0xfe4)],'granted':_0x4720ef['GRANTED'],'denied':_0x4720ef['DENIED']}};return _0x312c23;function _0x20185b(){const _0x3d7329=_0x41cd2a;return!(typeof _0x4d11db===_0x3d7329(0x16b5));}function _0x37d17f(){const _0x10d33f=_0x41cd2a;return(_0x4d11db||{})[_0x10d33f(0x66c)];}function _0x3fc6d7(){const _0x5ae554=_0x41cd2a;if(!_0x20185b())return _0x57013b['reject'](_0x5ae554(0xa84));const _0x1c3179=_0x57013b[_0x5ae554(0x11f4)]();return Promise[_0x5ae554(0x19a3)](_0x4d11db[_0x5ae554(0x1248)])==_0x4d11db[_0x5ae554(0x1248)]?_0x4d11db[_0x5ae554(0x1248)]()[_0x5ae554(0x1cb0)](function(_0x10dcaa){const _0x1987b7=_0x5ae554;_0x4720ef[_0x1987b7(0x243e)]===_0x10dcaa?_0x1c3179[_0x1987b7(0x19a3)](_0x10dcaa):_0x1c3179[_0x1987b7(0x988)](_0x10dcaa);}):_0x4d11db[_0x5ae554(0x1248)](function(_0x14df5b){const _0x2adb6f=_0x5ae554;_0x4720ef[_0x2adb6f(0x243e)]===_0x14df5b?_0x1c3179[_0x2adb6f(0x19a3)](_0x14df5b):_0x1c3179[_0x2adb6f(0x988)](_0x14df5b);}),_0x1c3179[_0x5ae554(0x2061)];}function _0x183b06(_0x19ed90,_0x550017){const _0x50278a=_0x41cd2a;_0x550017=_0x550017||{};if(!_0x20185b()||!_0x531996(_0x19ed90,_0x550017)||_0x41e95c(_0x550017['showOnPageHidden'])||_0x37d17f()!==_0x4720ef[_0x50278a(0x243e)])return;const _0x2d459d=new _0x4d11db(_0x19ed90,_0x550017),_0x39aeb7=_0x550017[_0x50278a(0x2483)]||_0x5059c8['duration'],_0x5955ab=_0x550017[_0x50278a(0x182c)]===undefined?_0x5059c8[_0x50278a(0x182c)]:_0x550017[_0x50278a(0x182c)];_0x2d459d[_0x50278a(0x24ea)]=function(){const _0x299d64=_0x50278a;_0x550017[_0x299d64(0xd62)]&&_0x550017[_0x299d64(0xd62)](),_0x550017[_0x299d64(0x1f26)]&&window[_0x299d64(0xbfd)](),_0x550017[_0x299d64(0x222)]&&_0x2d459d[_0x299d64(0xf3b)]();};if(_0x5955ab)_0x3f63ac(_0x2d459d,_0x39aeb7);return _0x2d459d;}function _0x531996(_0x21f935,_0x503a7d){const _0x253bcc=_0x41cd2a,_0x1f4550=angular['isString'](_0x21f935),_0x4799c8=!_0x503a7d['onClick']||angular[_0x253bcc(0x1e2c)](_0x503a7d[_0x253bcc(0xd62)]);return _0x1f4550&&_0x4799c8;}function _0x41e95c(_0x2409be){const _0x519858=_0x41cd2a;if(!_0x2409be&&!_0x5059c8['showOnPageHidden'])return;return!(window[_0x519858(0x1db8)][_0x519858(0x3f8)]||window['document'][_0x519858(0x1acd)]||window[_0x519858(0x1db8)]['webkitHidden']);}function _0x3f63ac(_0x41273d,_0x43ff86){const _0x73cee5=_0x41cd2a,_0x493cb5=_0x43ff86*0x3e8;_0x3609e8(_0x41273d[_0x73cee5(0xf3b)]['bind'](_0x41273d),_0x493cb5,![]);}}}function _0x1f67c9(){const _0x7d74dc=_0x5537c6,_0x4224a1=angular['injector'](['ng'])[_0x7d74dc(0xbf7)]('$log'),_0x2ceb3b=[],_0x18e9b6=this;_0x18e9b6[_0x7d74dc(0x1a78)]=_0x139c96,_0x18e9b6['deleteItem']=_0x45af0c;function _0x139c96(_0x4544d7,_0xfeea7b){const _0x3a32f4=_0x7d74dc;if(!angular[_0x3a32f4(0x28e2)](_0x4544d7)){_0x4224a1[_0x3a32f4(0x218e)]('path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)');return;}const _0x28c2fd=_0x4544d7['split']('.'),_0x1cfff7=_0x28c2fd[_0x28c2fd[_0x3a32f4(0xfd0)]-0x1],_0x50119b=_0x2a9003(_0x28c2fd);let _0x290a9a=![];for(let _0x4d6a5b=0x0;_0x4d6a5b<_0x50119b[_0x3a32f4(0xfd0)];_0x4d6a5b++){if(_0x50119b[_0x4d6a5b]['_id']===_0x1cfff7){_0x290a9a=_0x50119b[_0x4d6a5b];break;}}_0x290a9a?(angular[_0x3a32f4(0x2765)](_0x290a9a,_0xfeea7b),_0x290a9a[_0x3a32f4(0x19c3)]=_0x2e97d5(_0x290a9a)):(_0xfeea7b[_0x3a32f4(0x27a5)]=[],(angular[_0x3a32f4(0x2051)](_0xfeea7b[_0x3a32f4(0x212e)])||!angular['isNumber'](_0xfeea7b[_0x3a32f4(0x212e)]))&&(_0xfeea7b['weight']=0x1),_0xfeea7b['_id']=_0x1cfff7,_0xfeea7b['_path']=_0x4544d7,_0xfeea7b[_0x3a32f4(0x19c3)]=_0x2e97d5(_0xfeea7b),_0x50119b['push'](_0xfeea7b));}function _0x45af0c(_0x4cb559){const _0x79b4a4=_0x7d74dc;if(!angular[_0x79b4a4(0x28e2)](_0x4cb559)){_0x4224a1[_0x79b4a4(0x218e)](_0x79b4a4(0x20aa));return;}let _0x4502be=_0x2ceb3b;const _0x104826=_0x4cb559[_0x79b4a4(0xbe1)]('.');for(let _0x1c7624=0x0;_0x1c7624<_0x104826[_0x79b4a4(0xfd0)];_0x1c7624++){const _0x363653=_0x104826[_0x1c7624];for(let _0x31d973=0x0;_0x31d973<_0x4502be[_0x79b4a4(0xfd0)];_0x31d973++){if(_0x4502be[_0x31d973][_0x79b4a4(0xa09)]===_0x363653){if(_0x4502be[_0x31d973][_0x79b4a4(0x2d3)]===_0x4cb559)return _0x4502be[_0x79b4a4(0x159c)](_0x31d973,0x1),!![];_0x4502be=_0x4502be[_0x31d973][_0x79b4a4(0x27a5)];break;}}}return![];}function _0x2a9003(_0x557312){const _0x3d5b64=_0x7d74dc;let _0x4044a3=_0x2ceb3b;if(_0x557312[_0x3d5b64(0xfd0)]===0x1)return _0x4044a3;_0x557312[_0x3d5b64(0xad3)]();for(let _0x2f652d=0x0;_0x2f652d<_0x557312[_0x3d5b64(0xfd0)];_0x2f652d++){const _0x3fe2c2=_0x557312[_0x2f652d];let _0x1fb09b=!![];for(let _0x40f11c=0x0;_0x40f11c<_0x4044a3[_0x3d5b64(0xfd0)];_0x40f11c++){if(_0x4044a3[_0x40f11c][_0x3d5b64(0xa09)]===_0x3fe2c2){_0x4044a3=_0x4044a3[_0x40f11c]['children'],_0x1fb09b=![];break;}}if(_0x1fb09b){const _0x9e75ec={'_id':_0x3fe2c2,'_path':_0x557312[_0x3d5b64(0x1f66)]('.'),'title':_0x3fe2c2,'weight':0x1,'children':[]};_0x4044a3[_0x3d5b64(0x2785)](_0x9e75ec),_0x4044a3=_0x9e75ec[_0x3d5b64(0x27a5)];}}return _0x4044a3;}function _0x2e97d5(_0x57b59a){const _0x30004a=_0x7d74dc;let _0xfc3d42='';return angular[_0x30004a(0x13b8)](_0x57b59a[_0x30004a(0x27e0)])&&(_0xfc3d42=_0x57b59a[_0x30004a(0x27e0)],angular[_0x30004a(0x13b8)](_0x57b59a['stateParams'])&&angular[_0x30004a(0x1b5c)](_0x57b59a['stateParams'])&&(_0xfc3d42=_0xfc3d42+'('+angular[_0x30004a(0x393)](_0x57b59a[_0x30004a(0x1349)])+')')),_0xfc3d42;}this['$get']=function(){const _0x23ad3b={'saveItem':_0x139c96,'getNavigation':_0x367e9b};return _0x23ad3b;function _0x367e9b(_0xb0c1f9){const _0x327fd2=a0_0x5cbd;if(_0xb0c1f9){for(let _0x51c585=0x0;_0x51c585<_0x2ceb3b[_0x327fd2(0xfd0)];_0x51c585++){if(_0x2ceb3b[_0x51c585][_0x327fd2(0xa09)]===_0xb0c1f9)return[_0x2ceb3b[_0x51c585]];}return null;}return _0x2ceb3b;}};}const _0x53dcfb={'DEFAULT':_0x5537c6(0x24c8),'GRANTED':_0x5537c6(0x1780),'DENIED':_0x5537c6(0x25f)};;_0xb8a184['$inject']=['api'];function _0xb8a184(_0x49fffa){const _0x304d02=_0x5537c6,_0x3d6d1e=this;_0x3d6d1e[_0x304d02(0x9ca)]={},_0x3d6d1e[_0x304d02(0xab2)]={'count':0x0,'rows':[]},_0x3d6d1e['showInteraction']=![];function _0x1954e8(_0x1f9022,_0x279261){const _0x6f2f81=_0x304d02;_0x3d6d1e[_0x6f2f81(0x9ca)]=_0x279261,_0x3d6d1e[_0x6f2f81(0x291e)]=_0x1f9022,_0x3d6d1e[_0x6f2f81(0x291e)][_0x6f2f81(0x167f)]=!![];if(_0x3d6d1e[_0x6f2f81(0x291e)]&&_0x3d6d1e['tab'][_0x6f2f81(0x25c)]&&_0x3d6d1e[_0x6f2f81(0x291e)][_0x6f2f81(0x25c)]['uniqueid'])return _0x49fffa[_0x6f2f81(0x2858)][_0x6f2f81(0xbf7)]({'uniqueid':_0x3d6d1e[_0x6f2f81(0x291e)][_0x6f2f81(0x25c)][_0x6f2f81(0x1425)]})[_0x6f2f81(0x1d77)][_0x6f2f81(0x1cb0)](function(_0x226bce){const _0x489210=_0x6f2f81;_0x3d6d1e[_0x489210(0xab2)]=_0x226bce;})[_0x6f2f81(0x2e0)](function(){const _0x1ffb24=_0x6f2f81;_0x3d6d1e[_0x1ffb24(0x12d7)]=!![];});else _0x3d6d1e[_0x6f2f81(0x12d7)]=!![];}function _0x11adc9(_0x2f19f5){const _0x35b775=_0x304d02;switch(_0x3d6d1e['setting'][_0x35b775(0x15cd)]){case _0x35b775(0x766):if(_0x2f19f5[_0x35b775(0x979)]=='in')return _0x2f19f5['direction'];return _0x35b775(0x221a);case'right':if(_0x2f19f5[_0x35b775(0x979)]=='in')return _0x35b775(0x24d7);return _0x2f19f5[_0x35b775(0x979)];default:return _0x2f19f5[_0x35b775(0x979)];}}_0x3d6d1e['init']=_0x1954e8,_0x3d6d1e[_0x304d02(0x5ae)]=_0x11adc9;}const _0x2fa412=_0xb8a184;;const _0x4e0982=_0x5074a3['p']+'src/js/modules/main/apps/contactmanager/views/contacts/duplicate/dialog.html/dialog.html';;const _0x860e6c=_0x5074a3['p']+_0x5537c6(0x65e);;const _0x192db3=_0x5074a3['p']+_0x5537c6(0x917);;const _0x993bbb=_0x5074a3['p']+_0x5537c6(0xfe5);;const _0x1c8a4d=_0x5074a3['p']+_0x5537c6(0x23c0);;const _0x199694=_0x5074a3['p']+_0x5537c6(0x1c2e);;const _0x11d871=_0x5074a3['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeSms/dialog.html/dialog.html';;const _0x2dd24c=_0x5074a3['p']+_0x5537c6(0x2875);;_0x1f77c6[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$document',_0x5537c6(0x2168),_0x5537c6(0x1463),'$q',_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x1ae),'msUtils'];const _0x38c006={'fax':_0x993bbb,'mail':_0x1c8a4d,'openchannel':_0x199694,'sms':_0x11d871,'whatsapp':_0x2dd24c};function _0x1f77c6(_0x11a8fa,_0x44d07e,_0x393bd5,_0x1ea601,_0x12c09d,_0x3c2c98,_0x12fa66,_0x111315,_0x788ae7,_0xa1e7c1){const _0x10fdf0=_0x5537c6,_0x188473=this;_0x188473[_0x10fdf0(0xebe)]=_0x111315['getCurrentUser'](),_0x188473[_0x10fdf0(0x21b9)]=_0xa1e7c1['detectBrowser'](),_0x188473[_0x10fdf0(0x11a7)]=[],_0x188473[_0x10fdf0(0x103b)]={'fields':'id,phone,scheduledat','sort':_0x10fdf0(0x282),'limit':0xa,'page':0x1},_0x188473[_0x10fdf0(0x588)]={'fields':_0x10fdf0(0x3e6),'sort':_0x10fdf0(0x282),'limit':0xa,'page':0x1},_0x188473['queryHistory']={'fields':_0x10fdf0(0x466),'sort':_0x10fdf0(0x282),'limit':0xa,'page':0x1},_0x188473[_0x10fdf0(0xe3c)]={'rows':[],'count':0x0},_0x188473['finals']={'rows':[],'count':0x0},_0x188473[_0x10fdf0(0x13a4)]={'rows':[],'count':0x0},_0x188473[_0x10fdf0(0x1a58)]=new Date(_0x543b5a()()['startOf']('month')[_0x10fdf0(0x1030)](0x1,_0x10fdf0(0x479))[_0x10fdf0(0x17d9)](0x0,!![])[_0x10fdf0(0x1f31)]()),_0x188473[_0x10fdf0(0x15bb)]=new Date(_0x543b5a()()[_0x10fdf0(0x1b4)](_0x10fdf0(0x26ae))[_0x10fdf0(0x1030)](0x1,'day')[_0x10fdf0(0x17d9)](0x0,!![])[_0x10fdf0(0x1f31)]()),_0x188473['addNewContact']=_0x50cd61,_0x188473['saveContact']=_0x29d1dc,_0x188473['getCustomFields']=_0x27bb1a,_0x188473[_0x10fdf0(0x205d)]=_0x1ea601[_0x10fdf0(0x17bc)]['vm'][_0x10fdf0(0x205d)],_0x188473['disposeCall']=_0x233a6c,_0x188473[_0x10fdf0(0x211a)]=_0x1a741b,_0x188473[_0x10fdf0(0x1ecc)]=_0x46b96b,_0x188473[_0x10fdf0(0x2c4)]=_0x28a495,_0x188473[_0x10fdf0(0x811)]=_0x82a560,_0x188473[_0x10fdf0(0xb46)]=_0x24b27a,_0x188473[_0x10fdf0(0x27cd)]=_0x1c1e90,_0x188473[_0x10fdf0(0xa3b)]=_0x833ca9,_0x188473[_0x10fdf0(0x6d2)]=_0xb4e54b,_0x188473[_0x10fdf0(0xe96)]=_0x1e9b28,_0x188473[_0x10fdf0(0x8e2)]=_0x1bf3ff,_0x188473[_0x10fdf0(0x856)]=_0x4b0585,_0x188473['getWhatsappAccounts']=_0x2bbde1,_0x188473[_0x10fdf0(0x29c4)]=_0x56f615,_0x188473[_0x10fdf0(0x1cb7)]=_0x3925d3,_0x188473['getLists']=_0x2a3a5c,_0x188473['composeInteraction']=_0xc2ec4e,_0x188473['init']=_0x4fb4bf,_0x188473[_0x10fdf0(0x39e)]=_0x5d1641,_0x188473[_0x10fdf0(0x81e)]=_0x3916d5,_0x188473['getColorByItem']=_0x321562,_0x188473[_0x10fdf0(0x209e)]=_0x10dbc8,_0x188473['getJscriptyProjects']();function _0x10dbc8(_0x1efcad){const _0x2ac751=_0x10fdf0;if(_0x1efcad[_0x2ac751(0x18e9)])return _0x39641b()[_0x2ac751(0x250a)](_0x39641b()['map'](_0x188473[_0x2ac751(0x29de)]?_0x188473[_0x2ac751(0x29de)][_0x2ac751(0x2214)]:[],'id'),_0x1efcad[_0x2ac751(0x18e9)]);else{if(_0x1efcad['OpenchannelAccountId'])return _0x39641b()[_0x2ac751(0x250a)](_0x39641b()[_0x2ac751(0x1de2)](_0x188473['openchannelAccounts']?_0x188473[_0x2ac751(0xe5c)][_0x2ac751(0x2214)]:[],'id'),_0x1efcad[_0x2ac751(0x1d1e)]);else{if(_0x1efcad[_0x2ac751(0x1a2)])return _0x39641b()[_0x2ac751(0x250a)](_0x39641b()[_0x2ac751(0x1de2)](_0x188473[_0x2ac751(0x1ac)]?_0x188473['smsAccounts'][_0x2ac751(0x2214)]:[],'id'),_0x1efcad[_0x2ac751(0x1a2)]);else{if(_0x1efcad[_0x2ac751(0xfc8)])return _0x39641b()[_0x2ac751(0x250a)](_0x39641b()[_0x2ac751(0x1de2)](_0x188473[_0x2ac751(0xbb3)]?_0x188473['whatsappAccounts'][_0x2ac751(0x2214)]:[],'id'),_0x1efcad[_0x2ac751(0xfc8)]);else{if(_0x1efcad[_0x2ac751(0x1285)])return _0x39641b()[_0x2ac751(0x250a)](_0x39641b()['map'](_0x188473[_0x2ac751(0x228e)]?_0x188473[_0x2ac751(0x228e)][_0x2ac751(0x2214)]:[],'id'),_0x1efcad[_0x2ac751(0x1285)]);else{if(_0x1efcad[_0x2ac751(0x67c)])return _0x39641b()[_0x2ac751(0x250a)](_0x39641b()[_0x2ac751(0x1de2)](_0x188473[_0x2ac751(0x1ad1)]?_0x188473[_0x2ac751(0x1ad1)][_0x2ac751(0x2214)]:[],'id'),_0x1efcad[_0x2ac751(0x67c)]);else{if(_0x1efcad[_0x2ac751(0x1451)])return!![];}}}}}}return![];}function _0x3916d5(_0x187500,_0x525d97){const _0x1cd84e=_0x10fdf0;try{if(_0x525d97[_0x1cd84e(0x1285)])return _0x1ea601[_0x1cd84e(0x17bc)][_0x1cd84e(0x17bc)][_0x1cd84e(0x17bc)]['vm'][_0x1cd84e(0x11d9)](_0x1cd84e(0x2651),_0x525d97);else{if(_0x525d97[_0x1cd84e(0x67c)])return _0x1ea601['$parent'][_0x1cd84e(0x17bc)]['$parent']['vm']['addInteractionTab'](_0x1cd84e(0x174c),_0x525d97);else{if(_0x525d97[_0x1cd84e(0x1a2)])return _0x1ea601[_0x1cd84e(0x17bc)][_0x1cd84e(0x17bc)][_0x1cd84e(0x17bc)]['vm']['addInteractionTab'](_0x1cd84e(0x689),_0x525d97);else{if(_0x525d97[_0x1cd84e(0xfc8)])return _0x1ea601[_0x1cd84e(0x17bc)]['$parent']['$parent']['vm'][_0x1cd84e(0x11d9)](_0x1cd84e(0x2476),_0x525d97);else{if(_0x525d97[_0x1cd84e(0x1d1e)])return _0x1ea601['$parent'][_0x1cd84e(0x17bc)][_0x1cd84e(0x17bc)]['vm'][_0x1cd84e(0x11d9)](_0x1cd84e(0x15e0),_0x525d97);else{if(_0x525d97[_0x1cd84e(0x18e9)])return _0x1ea601[_0x1cd84e(0x17bc)][_0x1cd84e(0x17bc)][_0x1cd84e(0x17bc)]['vm'][_0x1cd84e(0x11d9)]('fax',_0x525d97);}}}}}}catch(_0x371436){_0x12fa66[_0x1cd84e(0x218e)]({'title':_0x1cd84e(0x1fd1),'msg':'Customer\x20Journey\x20can\x27t\x20open\x20the\x20interaction'});}}function _0x31b459(_0x589f65){const _0x1c23ec=_0x10fdf0;if(!_0x589f65[_0x1c23ec(0x1746)])return'('+_0x788ae7[_0x1c23ec(0x25cc)](_0x1c23ec(0x334))+')';const _0x1b4efa=_0x39641b()[_0x1c23ec(0xc67)]([_0x589f65[_0x1c23ec(0x1746)],_0x589f65[_0x1c23ec(0x15b4)],_0x589f65['thirdDisposition']]);return'('+_0x1b4efa[_0x1c23ec(0x1f66)](_0x1c23ec(0x1657))+')';}function _0x4a587a(_0xf8bc6){const _0x29768a=_0x10fdf0;_0xf8bc6&&_0xf8bc6[_0x29768a(0x184d)]&&_0xf8bc6[_0x29768a(0x2214)][_0x29768a(0xfd0)]&&(_0x188473[_0x29768a(0x11a7)]=_0x39641b()[_0x29768a(0x298a)](_0x188473[_0x29768a(0x11a7)],_0xf8bc6[_0x29768a(0x2214)]),_0x188473[_0x29768a(0x11a7)][_0x29768a(0xf90)](function(_0x5a5feb){_0x5a5feb['dispositionsValues']=_0x31b459(_0x5a5feb);}));}function _0x5bcf48(_0x15c599){const _0x4eb2cc=_0x10fdf0,_0xaf2144=[_0x4eb2cc(0x2651),_0x4eb2cc(0x174c),_0x4eb2cc(0x689),_0x4eb2cc(0x15e0),_0x4eb2cc(0x1944),_0x4eb2cc(0x2476)];if(_0x15c599&&_0x15c599['id']){for(let _0x3436cf=0x0;_0x3436cf<_0xaf2144[_0x4eb2cc(0xfd0)];_0x3436cf++){_0x3c2c98[_0xaf2144[_0x3436cf]+_0x4eb2cc(0x2735)][_0x4eb2cc(0xbf7)]({'ContactId':_0x15c599['id'],'journey':!![],'includeAll':!![]})['$promise'][_0x4eb2cc(0x1cb0)](_0x4a587a);}_0x3c2c98[_0x4eb2cc(0x11f2)][_0x4eb2cc(0xbf7)]({'ContactId':_0x15c599['id'],'includeAll':!![]})[_0x4eb2cc(0x1d77)][_0x4eb2cc(0x1cb0)](_0x4a587a)['catch'](function(_0x27dbe7){const _0x24b46f=_0x4eb2cc;console[_0x24b46f(0x218e)](_0x27dbe7);});}}function _0x2fc16a(_0x29c07b){const _0x32c161=_0x10fdf0;switch(_0x29c07b){case _0x32c161(0x174c):return _0x32c161(0x7b5);case _0x32c161(0x2651):return _0x32c161(0x15f2);case _0x32c161(0x689):return _0x32c161(0x1373);case _0x32c161(0x15e0):return _0x32c161(0x1f1f);case _0x32c161(0x1944):return'blue-grey-A200';case _0x32c161(0x2476):return _0x32c161(0x1995);default:return _0x32c161(0x292e);}}function _0x321562(_0x38714f){const _0xd2ecd2=_0x10fdf0;let _0x49f0c5='';if(_0x38714f[_0xd2ecd2(0x18e9)])_0x49f0c5=_0xd2ecd2(0x1944);else{if(_0x38714f[_0xd2ecd2(0x1d1e)])_0x49f0c5=_0xd2ecd2(0x15e0);else{if(_0x38714f['SmsAccountId'])_0x49f0c5=_0xd2ecd2(0x689);else{if(_0x38714f[_0xd2ecd2(0xfc8)])_0x49f0c5=_0xd2ecd2(0x2476);else{if(_0x38714f[_0xd2ecd2(0x1285)])_0x49f0c5=_0xd2ecd2(0x2651);else{if(_0x38714f[_0xd2ecd2(0x67c)])_0x49f0c5=_0xd2ecd2(0x174c);else _0x38714f[_0xd2ecd2(0x1451)]&&(_0x49f0c5=_0xd2ecd2(0x1fd4));}}}}}return _0x2fc16a(_0x49f0c5);}function _0x4fb4bf(_0x132782,_0x43683a){const _0x2abd6c=_0x10fdf0;return _0x188473['tab']=_0x132782,_0x1ea601[_0x2abd6c(0xf36)]([_0x2abd6c(0x122e),_0x2abd6c(0xb3f)],function(_0xc13d61){const _0x2630d2=_0x2abd6c;_0x188473[_0x2630d2(0x291e)][_0x2630d2(0x167f)]=_0xc13d61[0x0]&&_0xc13d61[0x1];}),_0x188473[_0x2abd6c(0x8a5)]=_0x43683a,_0x188473[_0x2abd6c(0x8b1)]=_0x188473[_0x2abd6c(0x291e)][_0x2abd6c(0x8b1)],_0x188473[_0x2abd6c(0x2617)]=![],_0x188473['currentTab']=0x0,_0x3c2c98['user'][_0x2abd6c(0xbf7)]({'fields':_0x2abd6c(0x1cc4),'nolimit':!![]})[_0x2abd6c(0x1d77)][_0x2abd6c(0x1cb0)](function(_0x580c15){const _0x3c75f0=_0x2abd6c;_0x188473[_0x3c75f0(0x1e30)]=_0x580c15||{'count':0x0,'rows':[]},_0x188473[_0x3c75f0(0x176)]=_0x39641b()[_0x3c75f0(0x1db)](_0x39641b()[_0x3c75f0(0x2631)](_0x188473[_0x3c75f0(0x1e30)][_0x3c75f0(0x2214)],'id'),_0x3c75f0(0x1d14));return;})[_0x2abd6c(0x1cb0)](function(){const _0x58cf45=_0x2abd6c,_0x34de63=[];for(let _0x274b35=0x0;_0x274b35<_0x188473['tab'][_0x58cf45(0x13e2)][_0x58cf45(0xfd0)];_0x274b35++){const _0x320502=_0x188473[_0x58cf45(0x291e)]['calls'][_0x274b35];_0x34de63[_0x58cf45(0x2785)](_0x3c2c98[_0x58cf45(0x11f2)][_0x58cf45(0xbf7)]({'uniqueid':_0x320502[_0x58cf45(0x1425)]})[_0x58cf45(0x1d77)][_0x58cf45(0x1cb0)](function(_0x3a322a){const _0x264f36=_0x58cf45;_0x3a322a&&_0x3a322a[_0x264f36(0x2214)]['length']>0x0&&(_0x320502[_0x264f36(0x1bc7)]=_0x39641b()[_0x264f36(0xf07)](_0x3a322a[_0x264f36(0x2214)])[_0x264f36(0x2134)]);return;}));}return _0x12c09d['all'](_0x34de63);})[_0x2abd6c(0x1cb0)](function(){const _0x5cac16=_0x2abd6c;if(_0x188473[_0x5cac16(0x8b1)]&&_0x188473[_0x5cac16(0x8b1)]['id']){const _0x275445={'id':_0x188473['contact']['id'],'ListId':_0x188473[_0x5cac16(0x8b1)][_0x5cac16(0x20a6)],'limit':0x1,'offset':0x0,'sort':'-updatedAt'};return _0x3c2c98[_0x5cac16(0xbe7)][_0x5cac16(0xbf7)](_0x275445)[_0x5cac16(0x1d77)][_0x5cac16(0x1cb0)](function(_0x4054ed){const _0x4e4ee6=_0x5cac16;return _0x188473[_0x4e4ee6(0x8b1)]=_0x4054ed,_0x188473['tab'][_0x4e4ee6(0x8b1)]=_0x4054ed,_0x3c2c98[_0x4e4ee6(0xebe)][_0x4e4ee6(0x402)]({'id':_0x188473[_0x4e4ee6(0xebe)]['id'],'ids':[_0x188473[_0x4e4ee6(0x8b1)]['id']]});})[_0x5cac16(0x1cb0)](function(){const _0x4370e4=_0x5cac16;if(_0x188473[_0x4370e4(0x8b1)][_0x4370e4(0x20a6)])return _0x3c2c98[_0x4370e4(0x1746)][_0x4370e4(0xbf7)]({'ListId':_0x188473[_0x4370e4(0x8b1)][_0x4370e4(0x20a6)]})[_0x4370e4(0x1d77)]['then'](function(_0x4cb327){const _0x4c5e54=_0x4370e4;return _0x188473[_0x4c5e54(0x291e)][_0x4c5e54(0xdf2)]=_0x4cb327,_0x3c2c98[_0x4c5e54(0x22f2)][_0x4c5e54(0x178f)]({'id':_0x188473[_0x4c5e54(0x8b1)]['ListId']})['$promise'];})[_0x4370e4(0x1cb0)](function(_0x1beaff){const _0x2d8449=_0x4370e4;_0x188473[_0x2d8449(0x291e)]['customFields']=_0x1beaff;return;});return;})[_0x5cac16(0x1cb0)](function(){const _0x169f51=_0x5cac16;try{_0x188473[_0x169f51(0x291e)]['userLists']=_0x1ea601[_0x169f51(0x17bc)][_0x169f51(0x17bc)][_0x169f51(0x17bc)]['vm'][_0x169f51(0x1fbc)],_0x188473[_0x169f51(0x291e)][_0x169f51(0x1046)]=_0x1ea601['$parent'][_0x169f51(0x17bc)]['$parent']['vm'][_0x169f51(0x1927)],_0x188473[_0x169f51(0x291e)][_0x169f51(0xe1a)]=_0x1ea601[_0x169f51(0x17bc)][_0x169f51(0x17bc)][_0x169f51(0x17bc)]['vm'][_0x169f51(0x24f0)],_0x188473['tab'][_0x169f51(0xfbf)]=_0x1ea601[_0x169f51(0x17bc)][_0x169f51(0x17bc)]['$parent']['vm'][_0x169f51(0x12c6)],_0x188473[_0x169f51(0x291e)]['autoCreate']=0x0,_0x188473[_0x169f51(0x8b1)][_0x169f51(0x20a6)]&&(_0x188473[_0x169f51(0x291e)][_0x169f51(0x155b)][_0x169f51(0x2214)]=_0x39641b()[_0x169f51(0x16ef)](_0x188473[_0x169f51(0x291e)][_0x169f51(0x155b)]['rows'],_0x39641b()['filter'](_0x188473[_0x169f51(0x291e)][_0x169f51(0x1046)]['rows'],{'id':_0x188473[_0x169f51(0x8b1)][_0x169f51(0x20a6)]}),'id'),_0x188473['list']=_0x39641b()['find'](_0x188473[_0x169f51(0x291e)][_0x169f51(0x155b)][_0x169f51(0x2214)],{'id':_0x188473[_0x169f51(0x8b1)][_0x169f51(0x20a6)]}));}catch(_0x301636){}_0x188473[_0x169f51(0xb46)](),_0x188473[_0x169f51(0x27cd)](),_0x188473[_0x169f51(0xa3b)](),_0x188473[_0x169f51(0xe96)](),_0x188473['getFaxAccounts'](),_0x188473[_0x169f51(0x856)](),_0x188473[_0x169f51(0x1758)](),_0x188473[_0x169f51(0x29c4)](),_0x188473[_0x169f51(0x1cb7)](),_0x188473[_0x169f51(0x1fa7)]();return;})[_0x5cac16(0x1cb0)](function(){const _0x3c2c02=_0x5cac16;return _0x3c2c98['cmContact'][_0x3c2c02(0x128b)]({'id':_0x188473[_0x3c2c02(0x8b1)]['id']})[_0x3c2c02(0x1d77)][_0x3c2c02(0x1cb0)](function(_0xc21bfb){const _0x247d61=_0x3c2c02;_0x188473[_0x247d61(0x291e)][_0x247d61(0x190)]=_0x39641b()[_0x247d61(0x1de2)](_0xc21bfb[_0x247d61(0x2214)],'id');return;});});}else{_0x188473[_0x5cac16(0x2617)]=!![];if(_0x132782[_0x5cac16(0x646)])return console[_0x5cac16(0x1b4f)]('autoCreate'),_0x188473[_0x5cac16(0x29ca)]();return;}})[_0x2abd6c(0x1cb0)](_0x5bcf48(_0x188473[_0x2abd6c(0x8b1)]));}function _0xc2ec4e(_0x588147,_0x32142f,_0x5d07c1,_0x5ea9b3){const _0x10d630=_0x10fdf0,_0x387431=_0x32142f['toLowerCase']();_0x11a8fa[_0x10d630(0xe27)]({'controller':_0x10d630(0x17c8)+_0x32142f+_0x10d630(0x1eeb),'controllerAs':'vm','templateUrl':_0x38c006[_0x387431],'parent':angular[_0x10d630(0x1853)](_0x44d07e[_0x10d630(0x1ed9)]),'clickOutsideToClose':![],'locals':{'account':_0x5d07c1,'message':{'to':_0x387431==_0x10d630(0x2651)?_0x5ea9b3:_0x5ea9b3['split'](',')},'type':_0x10d630(0x1295),'interaction':{'Contact':_0x188473[_0x10d630(0x8b1)]}},'fullscreen':!![]})[_0x10d630(0x1cb0)](function(_0x134369){const _0x477640=_0x10d630;return _0x3c2c98[_0x387431+_0x477640(0x1649)][_0x477640(0x199f)]({'id':_0x5d07c1['id']},_0x134369)[_0x477640(0x1d77)][_0x477640(0x1cb0)](function(_0x2b5e10){const _0x3775ab=_0x477640;if(_0x32142f===_0x3775ab(0x20c2)){const _0x21088b=_0x2b5e10;if(_0x21088b&&_0x21088b[_0x3775ab(0x223c)]&&_0x21088b[_0x3775ab(0x223c)]['length']){if(_0x134369[_0x3775ab(0x1abb)]&&_0x134369[_0x3775ab(0x1abb)][_0x3775ab(0xfd0)])for(let _0x5c31ae=0x0;_0x5c31ae<_0x134369[_0x3775ab(0x1abb)][_0x3775ab(0xfd0)];_0x5c31ae+=0x1){_0x3c2c98[_0x3775ab(0x21d7)][_0x3775ab(0x687)]({'id':_0x134369[_0x3775ab(0x1abb)][_0x5c31ae]['id']},{'MailMessageId':_0x39641b()[_0x3775ab(0x2083)](_0x21088b[_0x3775ab(0x223c)])['id']});}_0x12fa66[_0x3775ab(0x829)]({'title':'Message\x20properly\x20sent!','msg':_0x3775ab(0x71e)});if(_0x21088b[_0x3775ab(0x22aa)]){_0x21088b['disposition']=null;const _0xc372a6=!_0x5d07c1[_0x3775ab(0x1935)],_0x54c1f2=_0x188473[_0x3775ab(0xebe)]['voicePause']||_0x188473['user'][_0x3775ab(0xf0c)]||_0x188473['user'][_0x3775ab(0x2035)]||_0x188473[_0x3775ab(0xebe)][_0x3775ab(0x1c7d)]||_0x188473[_0x3775ab(0xebe)][_0x3775ab(0x1ce)];_0x11a8fa[_0x3775ab(0xe27)]({'controller':_0x3775ab(0x209d),'controllerAs':'vm','templateUrl':_0x3769c1,'parent':angular[_0x3775ab(0x1853)](_0x44d07e[_0x3775ab(0x1ed9)]),'onRemoving':function(){const _0x5b911b=_0x3775ab;_0x188473[_0x5b911b(0xebe)]&&_0x5d07c1['mandatoryDisposition']&&!_0x54c1f2&&_0x3c2c98[_0x5b911b(0xebe)]['unpause']({'id':_0x188473[_0x5b911b(0xebe)]['id']})[_0x5b911b(0x1d77)][_0x5b911b(0x1c4)](function(_0x33d051){const _0x5b1e37=_0x5b911b;console[_0x5b1e37(0x218e)](_0x33d051);});},'clickOutsideToClose':_0xc372a6,'escapeToClose':_0xc372a6,'locals':{'user':_0x188473[_0x3775ab(0xebe)],'channel':_0x3775ab(0x2651),'interaction':_0x21088b}});}else _0x1ea601[_0x3775ab(0x17bc)]['vm'][_0x3775ab(0x11d9)](_0x3775ab(0x2651),_0x21088b);}}else _0x12fa66[_0x3775ab(0x829)]({'title':_0x3775ab(0x113d),'msg':'Message\x20has\x20been\x20sent!'}),_0x1ea601[_0x3775ab(0x17bc)]['vm'][_0x3775ab(0x11d9)](_0x387431,_0x2b5e10);})[_0x477640(0x1c4)](function(_0x3797e0){const _0x49d24e=_0x477640;if(_0x3797e0[_0x49d24e(0x25c)]&&_0x3797e0[_0x49d24e(0x25c)]['errors']&&_0x3797e0[_0x49d24e(0x25c)][_0x49d24e(0x1a7c)][_0x49d24e(0xfd0)])for(let _0x30c71a=0x0;_0x30c71a<_0x3797e0[_0x49d24e(0x25c)][_0x49d24e(0x1a7c)][_0x49d24e(0xfd0)];_0x30c71a+=0x1){_0x12fa66[_0x49d24e(0x218e)]({'title':_0x3797e0['data']['errors'][_0x30c71a]['type'],'msg':_0x3797e0['data']['errors'][_0x30c71a][_0x49d24e(0x155e)]});}else _0x387431===_0x49d24e(0x1944)?_0x12fa66[_0x49d24e(0x218e)]({'title':_0x49d24e(0x23d7),'msg':_0x3797e0[_0x49d24e(0x25c)]?JSON['stringify'](_0x3797e0[_0x49d24e(0x25c)]):_0x3797e0[_0x49d24e(0x155e)]||_0x3797e0[_0x49d24e(0x147f)]()}):_0x12fa66[_0x49d24e(0x218e)]({'title':_0x3797e0[_0x49d24e(0x291)]?_0x49d24e(0xeb9)+_0x3797e0['status']+_0x49d24e(0x1657)+_0x3797e0[_0x49d24e(0xc22)]:_0x32142f[_0x49d24e(0x2335)]()+_0x49d24e(0x9a7),'msg':_0x3797e0[_0x49d24e(0x25c)]?JSON[_0x49d24e(0x2701)](_0x3797e0['data'][_0x49d24e(0x155e)]):_0x3797e0[_0x49d24e(0x155e)]||_0x3797e0['toString']()});});});}function _0x50cd61(){const _0x2d54ab=_0x10fdf0;_0x188473['errors']=[],_0x3c2c98[_0x2d54ab(0xbe7)][_0x2d54ab(0x1c3f)](_0x188473['contact'])['$promise']['then'](function(_0x321d82){const _0x1e583e=_0x2d54ab;return _0x188473[_0x1e583e(0x8b1)]['id']=_0x321d82['id'],_0x188473['newContact']=![],_0x188473[_0x1e583e(0x291e)][_0x1e583e(0x1386)]=_0x321d82[_0x1e583e(0x1491)]||_0x321d82[_0x1e583e(0x1340)],_0x188473[_0x1e583e(0x291e)][_0x1e583e(0x8b1)]=_0x188473[_0x1e583e(0x8b1)],_0x3c2c98[_0x1e583e(0xebe)]['addContacts']({'id':_0x111315[_0x1e583e(0x21e8)]()['id'],'ids':[_0x321d82['id']]});})[_0x2d54ab(0x1cb0)](function(){const _0x498a61=_0x2d54ab;_0x188473[_0x498a61(0xa73)]['$pristine']=!![],_0x188473['customFieldsForm'][_0x498a61(0x70f)]=!![],_0x12fa66[_0x498a61(0x829)]({'title':_0x498a61(0xe69),'msg':_0x188473['contact']['firstName']?_0x188473[_0x498a61(0x8b1)][_0x498a61(0x1491)]+_0x498a61(0x470):''});})[_0x2d54ab(0x1cb0)](function(){const _0x726e30=_0x2d54ab;return _0x3c2c98[_0x726e30(0xbe7)][_0x726e30(0xe53)]({'id':_0x188473[_0x726e30(0x8b1)]['id'],'ids':_0x188473['tab']['Tags']})['$promise'];})[_0x2d54ab(0x1c4)](function(_0x21751a){const _0x32052e=_0x2d54ab;if(_0x21751a[_0x32052e(0x25c)]&&_0x21751a['data']['errors']&&_0x21751a[_0x32052e(0x25c)]['errors']['length']){_0x188473[_0x32052e(0x1a7c)]=_0x21751a[_0x32052e(0x25c)][_0x32052e(0x1a7c)]||[{'message':_0x21751a[_0x32052e(0x147f)](),'type':_0x32052e(0x9a0)}];for(let _0x3ef5db=0x0;_0x3ef5db<_0x21751a[_0x32052e(0x25c)][_0x32052e(0x1a7c)][_0x32052e(0xfd0)];_0x3ef5db+=0x1){_0x12fa66[_0x32052e(0x218e)]({'title':_0x21751a[_0x32052e(0x25c)]['errors'][_0x3ef5db][_0x32052e(0x66a)],'msg':_0x21751a[_0x32052e(0x25c)][_0x32052e(0x1a7c)][_0x3ef5db][_0x32052e(0x155e)]});}}else _0x12fa66[_0x32052e(0x218e)]({'title':_0x21751a['status']?_0x32052e(0xeb9)+_0x21751a[_0x32052e(0x291)]+_0x32052e(0x1657)+_0x21751a[_0x32052e(0xc22)]:_0x32052e(0x9a0),'msg':_0x21751a[_0x32052e(0x25c)]?JSON[_0x32052e(0x2701)](_0x21751a['data']['message']):_0x21751a[_0x32052e(0x147f)]()});});}function _0x29d1dc(){const _0x24d56d=_0x10fdf0;_0x188473['errors']=[],_0x3c2c98[_0x24d56d(0xbe7)][_0x24d56d(0x687)]({'id':_0x188473['contact']['id']},_0x188473[_0x24d56d(0x8b1)])['$promise']['then'](function(_0xbed2c4){const _0x2873a9=_0x24d56d;return _0x188473[_0x2873a9(0x291e)][_0x2873a9(0x1386)]=_0xbed2c4[_0x2873a9(0x1491)]||_0xbed2c4[_0x2873a9(0x1340)],_0x188473[_0x2873a9(0x291e)][_0x2873a9(0x8b1)]=_0x188473[_0x2873a9(0x8b1)],_0x1ea601[_0x2873a9(0x17bc)]['vm'][_0x2873a9(0x1c7c)](),_0x3c2c98[_0x2873a9(0xebe)][_0x2873a9(0x402)]({'id':_0x111315[_0x2873a9(0x21e8)]()['id'],'ids':[_0xbed2c4['id']]});})[_0x24d56d(0x1cb0)](function(){const _0x4b3c94=_0x24d56d;return _0x3c2c98['cmContact'][_0x4b3c94(0xe53)]({'id':_0x188473[_0x4b3c94(0x8b1)]['id'],'ids':_0x188473[_0x4b3c94(0x291e)][_0x4b3c94(0x190)]})[_0x4b3c94(0x1d77)];})[_0x24d56d(0x1cb0)](function(){const _0x18d7c2=_0x24d56d;_0x188473[_0x18d7c2(0xa73)]['$pristine']=!![],_0x188473['customFieldsForm'][_0x18d7c2(0x70f)]=!![],_0x12fa66[_0x18d7c2(0x829)]({'title':_0x18d7c2(0x1b5),'msg':_0x188473['contact'][_0x18d7c2(0x16b6)]?_0x188473[_0x18d7c2(0x8b1)][_0x18d7c2(0x16b6)]+'\x20has\x20been\x20updated!':''});})[_0x24d56d(0x1c4)](function(_0x922784){const _0xe8d682=_0x24d56d;if(_0x922784[_0xe8d682(0x25c)]&&_0x922784[_0xe8d682(0x25c)]['errors']&&_0x922784[_0xe8d682(0x25c)]['errors'][_0xe8d682(0xfd0)]){_0x188473[_0xe8d682(0x1a7c)]=_0x922784['data']['errors']||[{'message':_0x922784['toString'](),'type':'api.contact.save'}];for(let _0x437e9c=0x0;_0x437e9c<_0x922784[_0xe8d682(0x25c)][_0xe8d682(0x1a7c)][_0xe8d682(0xfd0)];_0x437e9c+=0x1){_0x12fa66[_0xe8d682(0x218e)]({'title':_0x922784[_0xe8d682(0x25c)]['errors'][_0x437e9c][_0xe8d682(0x66a)],'msg':_0x922784[_0xe8d682(0x25c)][_0xe8d682(0x1a7c)][_0x437e9c]['message']});}}else _0x12fa66[_0xe8d682(0x218e)]({'title':_0x922784['status']?_0xe8d682(0xeb9)+_0x922784[_0xe8d682(0x291)]+'\x20-\x20'+_0x922784[_0xe8d682(0xc22)]:_0xe8d682(0x9a0),'msg':_0x922784['data']?JSON[_0xe8d682(0x2701)](_0x922784['data'][_0xe8d682(0x155e)]):_0x922784['toString']()});});}_0x1ea601[_0x10fdf0(0x614)](_0x10fdf0(0x160f),function(){const _0x2fc471=_0x10fdf0;_0x188473[_0x2fc471(0x160f)]===0x1&&(_0x188473['getHoppers'](),_0x188473[_0x2fc471(0x27cd)](),_0x188473[_0x2fc471(0xa3b)]());});let _0x5ecb9b=!![],_0x58bf7a=0x1;_0x1ea601[_0x10fdf0(0x614)](_0x10fdf0(0x426),function(_0x193c4a,_0x210ea9){const _0x105063=_0x10fdf0;_0x5ecb9b?_0x393bd5(function(){_0x5ecb9b=![];}):(!_0x210ea9&&(_0x58bf7a=_0x188473[_0x105063(0x103b)]['page']),_0x193c4a!==_0x210ea9&&(_0x188473[_0x105063(0x103b)]['page']=0x1),!_0x193c4a&&(_0x188473[_0x105063(0x103b)][_0x105063(0x1c7b)]=_0x58bf7a),_0x188473[_0x105063(0xb46)]());}),_0x1ea601['$watch'](_0x10fdf0(0x29a6),function(_0x917ac6,_0x47cb7a){const _0x30a3ec=_0x10fdf0;_0x5ecb9b?_0x393bd5(function(){_0x5ecb9b=![];}):(!_0x47cb7a&&(_0x58bf7a=_0x188473[_0x30a3ec(0x588)][_0x30a3ec(0x1c7b)]),_0x917ac6!==_0x47cb7a&&(_0x188473['queryFinal']['page']=0x1),!_0x917ac6&&(_0x188473['queryFinal'][_0x30a3ec(0x1c7b)]=_0x58bf7a),_0x188473[_0x30a3ec(0x27cd)]());}),_0x1ea601[_0x10fdf0(0x614)](_0x10fdf0(0x1bba),function(_0x3b198e,_0x3be620){const _0x4cda27=_0x10fdf0;_0x5ecb9b?_0x393bd5(function(){_0x5ecb9b=![];}):(!_0x3be620&&(_0x58bf7a=_0x188473[_0x4cda27(0x2530)][_0x4cda27(0x1c7b)]),_0x3b198e!==_0x3be620&&(_0x188473[_0x4cda27(0x2530)][_0x4cda27(0x1c7b)]=0x1),!_0x3b198e&&(_0x188473[_0x4cda27(0x2530)][_0x4cda27(0x1c7b)]=_0x58bf7a),_0x188473[_0x4cda27(0xa3b)]());});function _0x4ee452(_0x3c686f){return function(_0x887d37){_0x188473[_0x3c686f]=_0x887d37||{'count':0x0,'rows':[]};};}function _0x24b27a(){const _0x5b3865=_0x10fdf0;_0x188473[_0x5b3865(0x8b1)]&&_0x188473[_0x5b3865(0x8b1)]['id']&&(_0x188473['queryHopper']['ContactId']=_0x188473[_0x5b3865(0x8b1)]['id'],_0x188473[_0x5b3865(0x103b)][_0x5b3865(0x184b)]=(_0x188473['queryHopper'][_0x5b3865(0x1c7b)]-0x1)*_0x188473['queryHopper'][_0x5b3865(0x236)],_0x188473['promise']=_0x3c2c98[_0x5b3865(0x26bc)]['get'](_0x188473[_0x5b3865(0x103b)],_0x4ee452(_0x5b3865(0xe3c)))[_0x5b3865(0x1d77)]);}function _0x1c1e90(){const _0x3e5155=_0x10fdf0;_0x188473[_0x3e5155(0x8b1)]&&_0x188473[_0x3e5155(0x8b1)]['id']&&(_0x188473['queryFinal'][_0x3e5155(0xb96)]=_0x188473[_0x3e5155(0x8b1)]['id'],_0x188473['queryFinal'][_0x3e5155(0x184b)]=(_0x188473[_0x3e5155(0x588)][_0x3e5155(0x1c7b)]-0x1)*_0x188473['queryFinal'][_0x3e5155(0x236)],_0x188473[_0x3e5155(0x2061)]=_0x3c2c98[_0x3e5155(0x145f)][_0x3e5155(0xbf7)](_0x188473[_0x3e5155(0x588)],_0x4ee452(_0x3e5155(0x91e)))[_0x3e5155(0x1d77)]);}function _0x833ca9(){const _0x16e1b7=_0x10fdf0;_0x188473['contact']&&_0x188473[_0x16e1b7(0x8b1)]['id']&&(_0x188473[_0x16e1b7(0x2530)]['ContactId']=_0x188473[_0x16e1b7(0x8b1)]['id'],_0x188473[_0x16e1b7(0x2530)][_0x16e1b7(0x184b)]=(_0x188473[_0x16e1b7(0x2530)][_0x16e1b7(0x1c7b)]-0x1)*_0x188473['queryHistory'][_0x16e1b7(0x236)],_0x188473[_0x16e1b7(0x2061)]=_0x3c2c98[_0x16e1b7(0x1e15)][_0x16e1b7(0xbf7)](_0x188473['queryHistory'],_0x4ee452(_0x16e1b7(0x13a4)))[_0x16e1b7(0x1d77)]);}function _0xb4e54b(){const _0xad634e=_0x10fdf0;_0x3c2c98[_0xad634e(0x1c21)][_0xad634e(0xbf7)]({'fields':'createdAt,updatedAt,id,name,description,createdAt,formData,enableUncompleteSave','sort':_0xad634e(0x282),'nolimit':!![]})['$promise']['then'](function(_0x5b37da){const _0x3b583b=_0xad634e;_0x188473[_0x3b583b(0x2978)]=_0x5b37da||{'count':0x0,'rows':[]};})[_0xad634e(0x1c4)](function(_0x10614c){const _0x515402=_0xad634e;if(_0x10614c[_0x515402(0x25c)]&&_0x10614c['data'][_0x515402(0x1a7c)]&&_0x10614c[_0x515402(0x25c)][_0x515402(0x1a7c)]['length']){_0x188473[_0x515402(0x1a7c)]=_0x10614c['data'][_0x515402(0x1a7c)]||[{'message':_0x10614c[_0x515402(0x147f)](),'type':_0x515402(0x186e)}];for(let _0x43c598=0x0;_0x43c598<_0x10614c[_0x515402(0x25c)]['errors']['length'];_0x43c598+=0x1){_0x12fa66[_0x515402(0x218e)]({'title':_0x10614c['data'][_0x515402(0x1a7c)][_0x43c598]['type'],'msg':_0x10614c[_0x515402(0x25c)][_0x515402(0x1a7c)][_0x43c598]['message']});}}else _0x12fa66[_0x515402(0x218e)]({'title':_0x10614c[_0x515402(0x291)]?_0x515402(0xeb9)+_0x10614c['status']+'\x20-\x20'+_0x10614c['statusText']:_0x515402(0x186e),'msg':_0x10614c['data']?JSON[_0x515402(0x2701)](_0x10614c[_0x515402(0x25c)]['message']):_0x10614c['toString']()});});}function _0x1e9b28(){const _0x3129d0=_0x10fdf0;_0x3c2c98[_0x3129d0(0xebe)][_0x3129d0(0xe96)]({'id':_0x188473[_0x3129d0(0xebe)]['id'],'nolimit':!![]})['$promise'][_0x3129d0(0x1cb0)](function(_0x5ec80e){_0x188473['mailAccounts']=_0x5ec80e||{'count':0x0,'rows':[]};})[_0x3129d0(0x1c4)](function(_0x7cdae7){const _0x57280a=_0x3129d0;if(_0x7cdae7[_0x57280a(0x25c)]&&_0x7cdae7[_0x57280a(0x25c)]['errors']&&_0x7cdae7[_0x57280a(0x25c)][_0x57280a(0x1a7c)]['length']){_0x188473['errors']=_0x7cdae7[_0x57280a(0x25c)][_0x57280a(0x1a7c)]||[{'message':_0x7cdae7['toString'](),'type':'api.mail.account'}];for(let _0x380009=0x0;_0x380009<_0x7cdae7[_0x57280a(0x25c)][_0x57280a(0x1a7c)][_0x57280a(0xfd0)];_0x380009+=0x1){_0x12fa66['error']({'title':_0x7cdae7[_0x57280a(0x25c)]['errors'][_0x380009][_0x57280a(0x66a)],'msg':_0x7cdae7[_0x57280a(0x25c)]['errors'][_0x380009][_0x57280a(0x155e)]});}}else _0x12fa66[_0x57280a(0x218e)]({'title':_0x7cdae7['status']?_0x57280a(0xeb9)+_0x7cdae7[_0x57280a(0x291)]+_0x57280a(0x1657)+_0x7cdae7[_0x57280a(0xc22)]:'api.mail.account','msg':_0x7cdae7[_0x57280a(0x25c)]?JSON['stringify'](_0x7cdae7[_0x57280a(0x25c)][_0x57280a(0x155e)]):_0x7cdae7[_0x57280a(0x147f)]()});});}function _0x1bf3ff(){const _0xe9dabc=_0x10fdf0;_0x3c2c98['user'][_0xe9dabc(0x8e2)]({'id':_0x188473[_0xe9dabc(0xebe)]['id'],'nolimit':!![]})[_0xe9dabc(0x1d77)][_0xe9dabc(0x1cb0)](function(_0x33538a){_0x188473['faxAccounts']=_0x33538a||{'count':0x0,'rows':[]};})[_0xe9dabc(0x1c4)](function(_0x3b2c4a){const _0x2c942e=_0xe9dabc;if(_0x3b2c4a[_0x2c942e(0x25c)]&&_0x3b2c4a[_0x2c942e(0x25c)][_0x2c942e(0x1a7c)]&&_0x3b2c4a[_0x2c942e(0x25c)][_0x2c942e(0x1a7c)][_0x2c942e(0xfd0)]){_0x188473[_0x2c942e(0x1a7c)]=_0x3b2c4a[_0x2c942e(0x25c)]['errors']||[{'message':_0x3b2c4a['toString'](),'type':_0x2c942e(0x1924)}];for(let _0x397997=0x0;_0x397997<_0x3b2c4a[_0x2c942e(0x25c)][_0x2c942e(0x1a7c)]['length'];_0x397997+=0x1){_0x12fa66[_0x2c942e(0x218e)]({'title':_0x3b2c4a[_0x2c942e(0x25c)]['errors'][_0x397997][_0x2c942e(0x66a)],'msg':_0x3b2c4a[_0x2c942e(0x25c)]['errors'][_0x397997][_0x2c942e(0x155e)]});}}else _0x12fa66[_0x2c942e(0x218e)]({'title':_0x3b2c4a[_0x2c942e(0x291)]?_0x2c942e(0xeb9)+_0x3b2c4a[_0x2c942e(0x291)]+'\x20-\x20'+_0x3b2c4a[_0x2c942e(0xc22)]:_0x2c942e(0x1924),'msg':_0x3b2c4a['data']?JSON['stringify'](_0x3b2c4a[_0x2c942e(0x25c)][_0x2c942e(0x155e)]):_0x3b2c4a['toString']()});});}function _0x4b0585(){const _0x30c08c=_0x10fdf0;_0x3c2c98['user'][_0x30c08c(0x856)]({'id':_0x188473[_0x30c08c(0xebe)]['id'],'nolimit':!![]})[_0x30c08c(0x1d77)][_0x30c08c(0x1cb0)](function(_0x42fbb9){_0x188473['smsAccounts']=_0x42fbb9||{'count':0x0,'rows':[]};})[_0x30c08c(0x1c4)](function(_0x143d40){const _0x49fcc0=_0x30c08c;if(_0x143d40[_0x49fcc0(0x25c)]&&_0x143d40[_0x49fcc0(0x25c)][_0x49fcc0(0x1a7c)]&&_0x143d40['data']['errors'][_0x49fcc0(0xfd0)]){_0x188473[_0x49fcc0(0x1a7c)]=_0x143d40[_0x49fcc0(0x25c)]['errors']||[{'message':_0x143d40[_0x49fcc0(0x147f)](),'type':'api.sms.account'}];for(let _0x4e5c54=0x0;_0x4e5c54<_0x143d40[_0x49fcc0(0x25c)][_0x49fcc0(0x1a7c)][_0x49fcc0(0xfd0)];_0x4e5c54+=0x1){_0x12fa66['error']({'title':_0x143d40[_0x49fcc0(0x25c)]['errors'][_0x4e5c54]['type'],'msg':_0x143d40[_0x49fcc0(0x25c)]['errors'][_0x4e5c54]['message']});}}else _0x12fa66['error']({'title':_0x143d40['status']?_0x49fcc0(0xeb9)+_0x143d40[_0x49fcc0(0x291)]+_0x49fcc0(0x1657)+_0x143d40[_0x49fcc0(0xc22)]:'api.sms.account','msg':_0x143d40['data']?JSON[_0x49fcc0(0x2701)](_0x143d40[_0x49fcc0(0x25c)]['message']):_0x143d40[_0x49fcc0(0x147f)]()});});}function _0x2bbde1(){const _0x21f9f0=_0x10fdf0;_0x3c2c98['user'][_0x21f9f0(0x1758)]({'id':_0x188473[_0x21f9f0(0xebe)]['id'],'nolimit':!![]})['$promise']['then'](function(_0xf5ac98){const _0x4c38aa=_0x21f9f0;_0x188473[_0x4c38aa(0xbb3)]=_0xf5ac98||{'count':0x0,'rows':[]};})[_0x21f9f0(0x1c4)](function(_0x17927f){const _0x39b569=_0x21f9f0;if(_0x17927f[_0x39b569(0x25c)]&&_0x17927f[_0x39b569(0x25c)]['errors']&&_0x17927f[_0x39b569(0x25c)]['errors'][_0x39b569(0xfd0)]){_0x188473[_0x39b569(0x1a7c)]=_0x17927f['data'][_0x39b569(0x1a7c)]||[{'message':_0x17927f[_0x39b569(0x147f)](),'type':_0x39b569(0x8bc)}];for(let _0x2f2fd3=0x0;_0x2f2fd3<_0x17927f[_0x39b569(0x25c)][_0x39b569(0x1a7c)]['length'];_0x2f2fd3+=0x1){_0x12fa66[_0x39b569(0x218e)]({'title':_0x17927f['data'][_0x39b569(0x1a7c)][_0x2f2fd3][_0x39b569(0x66a)],'msg':_0x17927f[_0x39b569(0x25c)][_0x39b569(0x1a7c)][_0x2f2fd3][_0x39b569(0x155e)]});}}else _0x12fa66[_0x39b569(0x218e)]({'title':_0x17927f['status']?_0x39b569(0xeb9)+_0x17927f['status']+_0x39b569(0x1657)+_0x17927f['statusText']:'api.whatsapp.account','msg':_0x17927f['data']?JSON[_0x39b569(0x2701)](_0x17927f[_0x39b569(0x25c)]['message']):_0x17927f[_0x39b569(0x147f)]()});});}function _0x56f615(){const _0x2e77f5=_0x10fdf0;_0x3c2c98[_0x2e77f5(0xebe)][_0x2e77f5(0x29c4)]({'id':_0x188473[_0x2e77f5(0xebe)]['id'],'nolimit':!![]})[_0x2e77f5(0x1d77)][_0x2e77f5(0x1cb0)](function(_0x2b7c2e){const _0x6f0787=_0x2e77f5;_0x188473[_0x6f0787(0xe5c)]=_0x2b7c2e||{'count':0x0,'rows':[]};})['catch'](function(_0x595e61){const _0x4d6380=_0x2e77f5;if(_0x595e61[_0x4d6380(0x25c)]&&_0x595e61[_0x4d6380(0x25c)][_0x4d6380(0x1a7c)]&&_0x595e61[_0x4d6380(0x25c)][_0x4d6380(0x1a7c)][_0x4d6380(0xfd0)]){_0x188473[_0x4d6380(0x1a7c)]=_0x595e61['data'][_0x4d6380(0x1a7c)]||[{'message':_0x595e61[_0x4d6380(0x147f)](),'type':_0x4d6380(0x62f)}];for(let _0x467573=0x0;_0x467573<_0x595e61[_0x4d6380(0x25c)][_0x4d6380(0x1a7c)][_0x4d6380(0xfd0)];_0x467573+=0x1){_0x12fa66['error']({'title':_0x595e61[_0x4d6380(0x25c)][_0x4d6380(0x1a7c)][_0x467573][_0x4d6380(0x66a)],'msg':_0x595e61['data'][_0x4d6380(0x1a7c)][_0x467573]['message']});}}else _0x12fa66[_0x4d6380(0x218e)]({'title':_0x595e61[_0x4d6380(0x291)]?_0x4d6380(0xeb9)+_0x595e61[_0x4d6380(0x291)]+_0x4d6380(0x1657)+_0x595e61['statusText']:'api.openchannel.account','msg':_0x595e61[_0x4d6380(0x25c)]?JSON[_0x4d6380(0x2701)](_0x595e61[_0x4d6380(0x25c)][_0x4d6380(0x155e)]):_0x595e61[_0x4d6380(0x147f)]()});});}function _0x3925d3(){const _0x2fba7b=_0x10fdf0;_0x3c2c98['user'][_0x2fba7b(0x1cb7)]({'id':_0x188473[_0x2fba7b(0xebe)]['id'],'nolimit':!![]})['$promise']['then'](function(_0x11801d){_0x188473['chatAccounts']=_0x11801d||{'count':0x0,'rows':[]};})['catch'](function(_0x295d70){const _0x4588bb=_0x2fba7b;if(_0x295d70[_0x4588bb(0x25c)]&&_0x295d70['data'][_0x4588bb(0x1a7c)]&&_0x295d70[_0x4588bb(0x25c)][_0x4588bb(0x1a7c)][_0x4588bb(0xfd0)]){_0x188473['errors']=_0x295d70[_0x4588bb(0x25c)][_0x4588bb(0x1a7c)]||[{'message':_0x295d70[_0x4588bb(0x147f)](),'type':'api.chatAccounts.account'}];for(let _0x1bf076=0x0;_0x1bf076<_0x295d70[_0x4588bb(0x25c)][_0x4588bb(0x1a7c)][_0x4588bb(0xfd0)];_0x1bf076+=0x1){_0x12fa66['error']({'title':_0x295d70[_0x4588bb(0x25c)][_0x4588bb(0x1a7c)][_0x1bf076][_0x4588bb(0x66a)],'msg':_0x295d70[_0x4588bb(0x25c)]['errors'][_0x1bf076][_0x4588bb(0x155e)]});}}else _0x12fa66[_0x4588bb(0x218e)]({'title':_0x295d70[_0x4588bb(0x291)]?_0x4588bb(0xeb9)+_0x295d70[_0x4588bb(0x291)]+'\x20-\x20'+_0x295d70[_0x4588bb(0xc22)]:_0x4588bb(0x27b9),'msg':_0x295d70[_0x4588bb(0x25c)]?JSON[_0x4588bb(0x2701)](_0x295d70[_0x4588bb(0x25c)][_0x4588bb(0x155e)]):_0x295d70[_0x4588bb(0x147f)]()});});}function _0x2a3a5c(){const _0x3018fe=_0x10fdf0;_0x3c2c98[_0x3018fe(0xebe)][_0x3018fe(0x1fa7)]({'id':_0x188473['user']['id'],'nolimit':!![]})['$promise'][_0x3018fe(0x1cb0)](function(_0x3186b0){const _0x4ca908=_0x3018fe;_0x188473[_0x4ca908(0x1046)]=_0x3186b0||{'count':0x0,'rows':[]};})[_0x3018fe(0x1c4)](function(_0x493bcc){const _0x3b1715=_0x3018fe;if(_0x493bcc[_0x3b1715(0x25c)]&&_0x493bcc[_0x3b1715(0x25c)][_0x3b1715(0x1a7c)]&&_0x493bcc[_0x3b1715(0x25c)][_0x3b1715(0x1a7c)][_0x3b1715(0xfd0)]){_0x188473[_0x3b1715(0x1a7c)]=_0x493bcc[_0x3b1715(0x25c)][_0x3b1715(0x1a7c)]||[{'message':_0x493bcc['toString'](),'type':'api.cm.lists'}];for(let _0x347434=0x0;_0x347434<_0x493bcc['data'][_0x3b1715(0x1a7c)][_0x3b1715(0xfd0)];_0x347434+=0x1){_0x12fa66['error']({'title':_0x493bcc[_0x3b1715(0x25c)][_0x3b1715(0x1a7c)][_0x347434][_0x3b1715(0x66a)],'msg':_0x493bcc['data'][_0x3b1715(0x1a7c)][_0x347434][_0x3b1715(0x155e)]});}}else _0x12fa66['error']({'title':_0x493bcc[_0x3b1715(0x291)]?'API:'+_0x493bcc[_0x3b1715(0x291)]+_0x3b1715(0x1657)+_0x493bcc[_0x3b1715(0xc22)]:_0x3b1715(0x2916),'msg':_0x493bcc[_0x3b1715(0x25c)]?JSON['stringify'](_0x493bcc[_0x3b1715(0x25c)][_0x3b1715(0x155e)]):_0x493bcc[_0x3b1715(0x147f)]()});});}function _0x1a741b(_0x4f8f1b){const _0x1a7632=_0x10fdf0;_0x11a8fa[_0x1a7632(0xe27)]({'controller':'DuplicateContactDialogController','controllerAs':'vm','templateUrl':_0x4e0982,'parent':angular[_0x1a7632(0x1853)](_0x44d07e[_0x1a7632(0x1ed9)]),'targetEvent':_0x4f8f1b,'clickOutsideToClose':!![],'resolve':{'contact':[_0x1a7632(0x1e0b),function(_0x4df29d){const _0x160707=_0x1a7632;return _0x4df29d['resolve'](_0x160707(0x1095),{'id':_0x188473[_0x160707(0x8b1)]['id']});}],'lists':[_0x1a7632(0x1e0b),function(_0x1f0602){const _0x1ee89a=_0x1a7632;return _0x1f0602[_0x1ee89a(0x19a3)](_0x1ee89a(0xbcf),{'id':_0x111315['getCurrentUser']()['id'],'fields':_0x1ee89a(0x43c)});}]},'locals':{'contacts':[]}});}function _0x46b96b(_0x1816c0){const _0x1ec35a=_0x10fdf0;_0x11a8fa['show']({'controller':_0x1ec35a(0x219f),'controllerAs':'vm','templateUrl':_0x860e6c,'parent':angular['element'](_0x44d07e['body']),'targetEvent':_0x1816c0,'clickOutsideToClose':!![],'resolve':{'contact':[_0x1ec35a(0x1e0b),function(_0x5d2616){const _0x8ec3af=_0x1ec35a;return _0x5d2616[_0x8ec3af(0x19a3)](_0x8ec3af(0x1095),{'id':_0x188473['contact']['id']});}],'lists':[_0x1ec35a(0x1e0b),function(_0x355835){const _0x5a5026=_0x1ec35a;return _0x355835[_0x5a5026(0x19a3)](_0x5a5026(0xbcf),{'id':_0x111315[_0x5a5026(0x21e8)]()['id'],'fields':_0x5a5026(0x43c)});}]},'locals':{'contacts':[]}})[_0x1ec35a(0x1cb0)](function(_0x9ce4ec){const _0x32c848=_0x1ec35a;if(_0x9ce4ec){for(const _0x30d7e8 in _0x1ea601[_0x32c848(0x17bc)]['$parent'][_0x32c848(0x17bc)]['vm']['tabs']){if(typeof _0x1ea601[_0x32c848(0x17bc)][_0x32c848(0x17bc)][_0x32c848(0x17bc)]['vm']['tabs'][_0x30d7e8]!==_0x32c848(0x16b5)){const _0x8e6062=_0x1ea601[_0x32c848(0x17bc)][_0x32c848(0x17bc)][_0x32c848(0x17bc)]['vm'][_0x32c848(0x2e3)][_0x30d7e8];_0x8e6062&&_0x8e6062['contact']&&(_0x9ce4ec[_0x32c848(0x174d)]&&_0x9ce4ec[_0x32c848(0x174d)]['id']&&_0x9ce4ec[_0x32c848(0x174d)]['id']===_0x8e6062[_0x32c848(0x8b1)]['id']&&_0x1ea601['$parent'][_0x32c848(0x17bc)][_0x32c848(0x17bc)]['vm'][_0x32c848(0x85e)](_0x8e6062),_0x9ce4ec['to']&&_0x9ce4ec['to']['id']&&_0x9ce4ec['to']['id']===_0x8e6062['contact']['id']&&_0x1ea601[_0x32c848(0x17bc)]['$parent']['$parent']['vm'][_0x32c848(0x85e)](_0x8e6062));}}_0x9ce4ec[_0x32c848(0x1295)]&&_0x1ea601[_0x32c848(0x17bc)][_0x32c848(0x17bc)][_0x32c848(0x17bc)]['vm'][_0x32c848(0x1bac)](_0x9ce4ec[_0x32c848(0x1295)]);}});}function _0x233a6c(_0x3ba353,_0x218ceb){const _0x2857c0=_0x10fdf0;if(_0x188473[_0x2857c0(0x2617)]){_0x12fa66[_0x2857c0(0x218e)]({'title':'ATTENTION','msg':_0x2857c0(0x21a5)});return;}_0x11a8fa[_0x2857c0(0xe27)]({'controller':'DisposeCallDialogController','controllerAs':'vm','templateUrl':_0x192db3,'parent':angular[_0x2857c0(0x1853)](_0x44d07e[_0x2857c0(0x1ed9)]),'targetEvent':_0x218ceb,'clickOutsideToClose':!_0x218ceb['mandatoryDisposition'],'escapeToClose':!_0x218ceb[_0x2857c0(0x1935)],'resolve':{'globalDispositions':[_0x2857c0(0x1e0b),function(_0x3df387){const _0x3e0967=_0x2857c0;return _0x3df387[_0x3e0967(0x19a3)](_0x3e0967(0x1c6f),{'MailAccountId':_0x3e0967(0xd38),'FaxAccountId':'null','SmsAccountId':_0x3e0967(0xd38),'WhatsappAccountId':_0x3e0967(0xd38),'OpenchannelAccountId':'null','ChatWebsiteId':_0x3e0967(0xd38),'ListId':_0x3e0967(0xd38)});}]},'onRemoving':function(){const _0xd75cf3=_0x2857c0;_0x188473[_0xd75cf3(0xebe)]&&_0x218ceb[_0xd75cf3(0x1935)]&&_0x3c2c98[_0xd75cf3(0xebe)]['unpause']({'id':_0x188473['user']['id']})[_0xd75cf3(0x1d77)][_0xd75cf3(0x1c4)](function(_0x25f879){const _0x40dd3f=_0xd75cf3;console[_0x40dd3f(0x218e)](_0x25f879);});},'locals':{'dispositions':_0x188473['tab'][_0x2857c0(0xdf2)],'contact':_0x188473[_0x2857c0(0x8b1)],'call':_0x218ceb}})['then'](function(_0x7fbcb9){const _0x3a250b=_0x2857c0;if(_0x7fbcb9){if(_0x7fbcb9===_0x3a250b(0x2917))_0x12fa66[_0x3a250b(0x829)]({'title':_0x788ae7['instant'](_0x3a250b(0x1f19)),'msg':_0x788ae7[_0x3a250b(0x25cc)]('DASHBOARDS.CALL_DISPOSED')+'\x20'+_0x7fbcb9});else{if(_0x7fbcb9===_0x3a250b(0xbbe)||_0x7fbcb9===_0x3a250b(0x1f9)){}else _0x12fa66[_0x3a250b(0x829)]({'title':_0x788ae7[_0x3a250b(0x25cc)](_0x3a250b(0x1f19)),'msg':_0x788ae7['instant'](_0x3a250b(0x545))});}}for(const _0x4f1cb6 in _0x1ea601[_0x3a250b(0x17bc)][_0x3a250b(0x17bc)]['$parent']['vm'][_0x3a250b(0x2e3)]){if(typeof _0x1ea601[_0x3a250b(0x17bc)][_0x3a250b(0x17bc)][_0x3a250b(0x17bc)]['vm'][_0x3a250b(0x2e3)][_0x4f1cb6]!=='undefined'){const _0x1053f3=_0x1ea601[_0x3a250b(0x17bc)][_0x3a250b(0x17bc)][_0x3a250b(0x17bc)]['vm'][_0x3a250b(0x2e3)][_0x4f1cb6];_0x39641b()['remove'](_0x1053f3['calls'],function(_0x4c027b){const _0x27ba8b=_0x3a250b;return _0x4c027b[_0x27ba8b(0x1425)]===_0x218ceb[_0x27ba8b(0x1425)];});}}_0x1ea601[_0x3a250b(0x17bc)]['vm'][_0x3a250b(0x1c7c)]();});}function _0x27bb1a(_0xe28c43){const _0x1ad721=_0x10fdf0;return _0x3c2c98[_0x1ad721(0x22f2)][_0x1ad721(0x178f)]({'id':_0xe28c43})[_0x1ad721(0x1d77)][_0x1ad721(0x1cb0)](function(_0x1d4d8d){const _0x4d7879=_0x1ad721;_0x188473[_0x4d7879(0x291e)][_0x4d7879(0x2242)]=_0x1d4d8d;})[_0x1ad721(0x1c4)](function(_0x2ac5f1){const _0x55d11d=_0x1ad721;_0x12fa66[_0x55d11d(0x218e)]({'title':_0x2ac5f1[_0x55d11d(0x291)]?'API:'+_0x2ac5f1['status']+'\x20-\x20'+_0x2ac5f1[_0x55d11d(0xc22)]:'LIST:GETCustomFields','msg':_0x2ac5f1[_0x55d11d(0x25c)]?JSON[_0x55d11d(0x2701)](_0x2ac5f1['data']):_0x2ac5f1[_0x55d11d(0x147f)]()});});}function _0x28a495(_0x1c2d2c){return _0x1c2d2c===null?undefined:new Date(_0x1c2d2c);}function _0x82a560(_0x340f56){const _0x567af9=_0x10fdf0;try{_0x340f56[_0x567af9(0x1b8c)]=_0x32329f()[_0x567af9(0x1778)](_0x340f56[_0x567af9(0x1b8c)],{'contact':_0x188473['contact'],'user':_0x188473['user']});}catch(_0x127648){console['error'](_0x127648);}try{_0x1ea601[_0x567af9(0x17bc)][_0x567af9(0x17bc)][_0x567af9(0x17bc)]['vm'][_0x567af9(0x165d)]({'type':_0x567af9(0x1e98),'title':_0x340f56[_0x567af9(0x16b6)],'icon':'icon-script','color':'grey','project':_0x340f56,'contact':_0x188473[_0x567af9(0x8b1)]});}catch(_0x2b51b4){_0x12fa66[_0x567af9(0x218e)]({'title':_0x567af9(0x1e05),'msg':'The\x20project\x20cannot\x20be\x20started'+JSON[_0x567af9(0x2701)](_0x2b51b4)});}}function _0x5d1641(_0x24a9d8){return _0x111315['hasPermission'](_0x24a9d8);}_0x1ea601[_0x10fdf0(0x1d6)](_0x10fdf0(0x291c),function(){});}const _0x1c7030=_0x1f77c6;;_0x12f9ee['$inject']=[_0x5537c6(0xcb9),'$q','toasty',_0x5537c6(0x142b),_0x5537c6(0xdf2),'globalDispositions',_0x5537c6(0x205d),_0x5537c6(0x8b1),_0x5537c6(0x1774),_0x5537c6(0x1ae)];function _0x12f9ee(_0x1a5ba1,_0x30a406,_0x1f128d,_0x55257f,_0x4160d8,_0x4f0ae0,_0x1bb2e7,_0x5c9e6e,_0x37e3ce,_0x2b8492){const _0x5c8b9d=_0x5537c6,_0x198a69=this;_0x198a69[_0x5c8b9d(0x8fc)]=![],_0x198a69[_0x5c8b9d(0x1858)]=![],_0x198a69['queueCampaign']=undefined,_0x198a69[_0x5c8b9d(0x1f65)]={'count':0x0,'rows':[]},_0x198a69[_0x5c8b9d(0xdf2)]=_0x4160d8[_0x5c8b9d(0x2214)],_0x198a69[_0x5c8b9d(0x8ab)]=_0x4f0ae0['rows'],_0x198a69['contact']=_0x5c9e6e,_0x198a69[_0x5c8b9d(0x205d)]=_0x1bb2e7,_0x198a69[_0x5c8b9d(0xbe2)]=_0x198a69['call'][_0x5c8b9d(0xbe2)]||undefined,_0x198a69[_0x5c8b9d(0x1d99)]=![],_0x198a69['hasBlackLists']=![],_0x198a69[_0x5c8b9d(0x2151)]={'minDate':new Date(),'dateTime':new Date()};_0x198a69[_0x5c8b9d(0x205d)]&&_0x198a69[_0x5c8b9d(0x205d)][_0x5c8b9d(0x9a9)]&&_0x198a69['call'][_0x5c8b9d(0x9a9)]['xmd-voicequeueid']?(_0x198a69['dialerCall']=!![],_0x55257f[_0x5c8b9d(0x26b3)][_0x5c8b9d(0xe93)]({'id':_0x198a69[_0x5c8b9d(0x205d)]['variables'][_0x5c8b9d(0x1569)]})[_0x5c8b9d(0x1d77)][_0x5c8b9d(0x1cb0)](function(_0x30fbf2){const _0x3bd5f1=_0x5c8b9d;_0x30fbf2&&_0x30fbf2[_0x3bd5f1(0x2214)]&&_0x30fbf2[_0x3bd5f1(0x2214)][_0x3bd5f1(0xfd0)]>0x0&&(_0x198a69[_0x3bd5f1(0xf27)]=!![]);})[_0x5c8b9d(0x1c4)](function(_0x239c2f){const _0x2d18fe=_0x5c8b9d;_0x1f128d[_0x2d18fe(0x218e)]({'title':_0x239c2f[_0x2d18fe(0x291)]?_0x2d18fe(0xeb9)+_0x239c2f[_0x2d18fe(0x291)]+_0x2d18fe(0x1657)+_0x239c2f[_0x2d18fe(0xc22)]:_0x2d18fe(0xc98),'msg':_0x239c2f[_0x2d18fe(0x25c)]?JSON[_0x2d18fe(0x2701)](_0x239c2f['data']):_0x239c2f[_0x2d18fe(0x147f)]()});})):_0x55257f['user'][_0x5c8b9d(0x13e9)]({'id':_0x37e3ce['getCurrentUser']()['id'],'fields':_0x5c8b9d(0x282c),'channel':_0x5c8b9d(0x1fd4),'type':'outbound','nolimit':!![]})[_0x5c8b9d(0x1d77)]['then'](function(_0x363dc7){const _0x3cf7b9=_0x5c8b9d;_0x198a69[_0x3cf7b9(0x1f65)]=_0x363dc7||{'count':0x0,'rows':[]};})[_0x5c8b9d(0x1c4)](function(_0x2cbbce){const _0x1877ed=_0x5c8b9d;console[_0x1877ed(0x218e)](_0x2cbbce);});_0x198a69[_0x5c8b9d(0x22bd)]=_0x46c5ea,_0x198a69[_0x5c8b9d(0x1a49)]=_0x21499c,_0x198a69['saveDisposition']=_0x5f01b6,_0x198a69[_0x5c8b9d(0xda0)]=_0x2e03a8,_0x198a69[_0x5c8b9d(0x73f)]=_0xc3fffb;function _0x46c5ea(_0x20374d){const _0x3e1824=_0x5c8b9d,_0x57391d=_0x39641b()[_0x3e1824(0x16ef)](_0x198a69[_0x3e1824(0xdf2)],_0x198a69[_0x3e1824(0x8ab)],'id');switch(_0x20374d){case _0x3e1824(0xf07):_0x198a69[_0x3e1824(0x860)]=_0x198a69[_0x3e1824(0x8ba)],_0x198a69['anySecondLevelDisposition']=_0x39641b()['some'](_0x57391d,['ParentId',_0x198a69[_0x3e1824(0x8ba)]['id']]),_0x198a69[_0x3e1824(0x1aeb)]=undefined,_0x198a69[_0x3e1824(0x20cf)]=undefined,_0x198a69[_0x3e1824(0x1d98)]=![];break;case _0x3e1824(0x1e82):_0x198a69['selectedDisposition']=_0x198a69['secondLevelDisposition'],_0x198a69['anyThirdLevelDisposition']=_0x39641b()[_0x3e1824(0x727)](_0x57391d,[_0x3e1824(0x55e),_0x198a69[_0x3e1824(0x1aeb)]['id']]);break;case _0x3e1824(0x1dd0):_0x198a69[_0x3e1824(0x860)]=_0x198a69[_0x3e1824(0x20cf)];break;}}function _0x21499c(_0x137a54){const _0x1eb847=_0x5c8b9d;if(_0x137a54===_0x1eb847(0x1e82))_0x198a69[_0x1eb847(0x1aeb)]=undefined,_0x198a69[_0x1eb847(0x20cf)]=undefined,_0x198a69[_0x1eb847(0x860)]=_0x198a69['firstLevelDisposition'];else _0x137a54===_0x1eb847(0x1dd0)&&(_0x198a69[_0x1eb847(0x20cf)]=undefined,_0x198a69[_0x1eb847(0x860)]=_0x198a69[_0x1eb847(0x1aeb)]);}function _0x47f6dc(){const _0x3e5fe2=_0x5c8b9d,_0x2492b1=_0x198a69[_0x3e5fe2(0x860)]?_0x198a69['selectedDisposition'][_0x3e5fe2(0x16b6)][_0x3e5fe2(0x1680)]():undefined;return{'id':_0x198a69[_0x3e5fe2(0x205d)][_0x3e5fe2(0x1425)],'disposition':_0x198a69[_0x3e5fe2(0x8ba)]?_0x198a69['firstLevelDisposition'][_0x3e5fe2(0x16b6)]:null,'secondDisposition':_0x198a69[_0x3e5fe2(0x1aeb)]?_0x198a69['secondLevelDisposition'][_0x3e5fe2(0x16b6)]:null,'thirdDisposition':_0x198a69[_0x3e5fe2(0x20cf)]?_0x198a69[_0x3e5fe2(0x20cf)][_0x3e5fe2(0x16b6)]:null,'dispositionat':_0x543b5a()(),'amd':_0x2492b1===_0x3e5fe2(0x1cf4),'fax':_0x2492b1===_0x3e5fe2(0x1944),'blacklist':_0x2492b1===_0x3e5fe2(0x9b5),'recallme':_0x2492b1===_0x3e5fe2(0x1858),'UserId':_0x2492b1===_0x3e5fe2(0x1858)?_0x37e3ce['getCurrentUser']()['id']:null,'OwnerId':_0x37e3ce[_0x3e5fe2(0x21e8)]()['id']};}function _0x27f97c(){const _0x159d1a=_0x5c8b9d;return _0x55257f[_0x159d1a(0x11f2)][_0x159d1a(0x687)]({'id':_0x198a69['call']['uniqueid'],'userDisposition':_0x198a69[_0x159d1a(0x8ba)]?_0x198a69[_0x159d1a(0x8ba)][_0x159d1a(0x16b6)]:null,'userSecondDisposition':_0x198a69[_0x159d1a(0x1aeb)]?_0x198a69[_0x159d1a(0x1aeb)][_0x159d1a(0x16b6)]:null,'userThirdDisposition':_0x198a69['thirdLevelDisposition']?_0x198a69[_0x159d1a(0x20cf)]['name']:null,'note':_0x198a69[_0x159d1a(0xbe2)],'UserId':_0x37e3ce[_0x159d1a(0x21e8)]()['id'],'ContactId':_0x198a69[_0x159d1a(0x8b1)]['id']})[_0x159d1a(0x1d77)][_0x159d1a(0x1c4)](function(_0x128ada){const _0x25eb47=_0x159d1a;_0x1f128d[_0x25eb47(0x218e)]({'title':_0x128ada[_0x25eb47(0x291)]?'API:'+_0x128ada[_0x25eb47(0x291)]+'\x20-\x20'+_0x128ada[_0x25eb47(0xc22)]:_0x25eb47(0x6c3),'msg':_0x128ada[_0x25eb47(0x25c)]?JSON['stringify'](_0x128ada['data']):_0x128ada[_0x25eb47(0x147f)]()});});}function _0x5f4642(){const _0x2f9225=_0x5c8b9d;return _0x55257f['voiceRecording'][_0x2f9225(0xbf7)]({'uniqueid':_0x198a69['call'][_0x2f9225(0x1425)]})[_0x2f9225(0x1d77)][_0x2f9225(0x1cb0)](function(_0x171959){const _0x16b59d=_0x2f9225;if(_0x171959)for(let _0xb1f56d=0x0;_0xb1f56d<_0x171959[_0x16b59d(0x2214)][_0x16b59d(0xfd0)];_0xb1f56d+=0x1){_0x55257f[_0x16b59d(0x23d1)][_0x16b59d(0x687)]({'id':_0x171959[_0x16b59d(0x2214)][_0xb1f56d]['id'],'userDisposition':_0x198a69[_0x16b59d(0x8ba)]?_0x198a69[_0x16b59d(0x8ba)]['name']:null,'userSecondDisposition':_0x198a69[_0x16b59d(0x1aeb)]?_0x198a69[_0x16b59d(0x1aeb)]['name']:null,'userThirdDisposition':_0x198a69['thirdLevelDisposition']?_0x198a69[_0x16b59d(0x20cf)][_0x16b59d(0x16b6)]:null})[_0x16b59d(0x1d77)]['catch'](function(_0x5bcc3d){const _0x1d309e=_0x16b59d;_0x1f128d[_0x1d309e(0x218e)]({'title':_0x5bcc3d[_0x1d309e(0x291)]?'API:'+_0x5bcc3d[_0x1d309e(0x291)]+'\x20-\x20'+_0x5bcc3d[_0x1d309e(0xc22)]:_0x1d309e(0x557),'msg':_0x5bcc3d[_0x1d309e(0x25c)]?JSON[_0x1d309e(0x2701)](_0x5bcc3d[_0x1d309e(0x25c)]):_0x5bcc3d[_0x1d309e(0x147f)]()});});}})[_0x2f9225(0x1c4)](function(_0x54d3a9){const _0x3dc4ec=_0x2f9225;_0x1f128d[_0x3dc4ec(0x218e)]({'title':_0x54d3a9[_0x3dc4ec(0x291)]?_0x3dc4ec(0xeb9)+_0x54d3a9[_0x3dc4ec(0x291)]+_0x3dc4ec(0x1657)+_0x54d3a9[_0x3dc4ec(0xc22)]:'SYSTEM:UPDATEVOICERECORDING','msg':_0x54d3a9[_0x3dc4ec(0x25c)]?JSON[_0x3dc4ec(0x2701)](_0x54d3a9['data']):_0x54d3a9[_0x3dc4ec(0x147f)]()});});}function _0x5aa2f3(){const _0xdb8e69=_0x5c8b9d;return _0x55257f[_0xdb8e69(0x145f)]['update'](_0x47f6dc())[_0xdb8e69(0x1d77)][_0xdb8e69(0x1c4)](function(_0x349161){const _0xe54b89=_0xdb8e69;_0x1f128d[_0xe54b89(0x218e)]({'title':_0x349161['status']?_0xe54b89(0xeb9)+_0x349161[_0xe54b89(0x291)]+_0xe54b89(0x1657)+_0x349161['statusText']:_0xe54b89(0xcd3),'msg':_0x349161[_0xe54b89(0x25c)]?JSON[_0xe54b89(0x2701)](_0x349161[_0xe54b89(0x25c)]):_0x349161[_0xe54b89(0x147f)]()});});}function _0x453a51(){const _0x3b4571=_0x5c8b9d;return _0x55257f[_0x3b4571(0x1e15)][_0x3b4571(0x687)](_0x47f6dc())[_0x3b4571(0x1d77)][_0x3b4571(0x1c4)](function(_0x3feb58){const _0x4acefd=_0x3b4571;_0x1f128d[_0x4acefd(0x218e)]({'title':_0x3feb58['status']?'API:'+_0x3feb58[_0x4acefd(0x291)]+_0x4acefd(0x1657)+_0x3feb58['statusText']:_0x4acefd(0x2259),'msg':_0x3feb58['data']?JSON[_0x4acefd(0x2701)](_0x3feb58[_0x4acefd(0x25c)]):_0x3feb58[_0x4acefd(0x147f)]()});});}function _0x4ec050(_0x5d9288){const _0x564a4a=_0x5c8b9d;if(_0x5d9288)return _0x55257f[_0x564a4a(0x26b3)][_0x564a4a(0xe93)]({'id':_0x5d9288,'type':_0x564a4a(0x895),'fields':'id'})[_0x564a4a(0x1d77)]['then'](function(_0x19abfa){const _0x550b8c=_0x564a4a,_0x5a5642=[];if(_0x19abfa&&_0x19abfa[_0x550b8c(0x184d)]>0x0){for(let _0x216aea=0x0;_0x216aea<_0x19abfa[_0x550b8c(0x2214)][_0x550b8c(0xfd0)];_0x216aea+=0x1){const _0x357fc8=angular[_0x550b8c(0x17fe)](_0x198a69['contact']);delete _0x357fc8['id'],_0x357fc8[_0x550b8c(0x20a6)]=_0x19abfa['rows'][_0x216aea]['id'],_0x5a5642['push'](_0x55257f[_0x550b8c(0xbe7)][_0x550b8c(0x1c3f)](_0x357fc8)[_0x550b8c(0x1d77)]);}return _0x30a406[_0x550b8c(0x223b)](_0x5a5642);}_0x1f128d[_0x550b8c(0x829)]({'title':_0x2b8492['instant'](_0x550b8c(0x1f19)),'msg':_0x2b8492[_0x550b8c(0x25cc)](_0x550b8c(0x1638))+'\x20'+_0x198a69[_0x550b8c(0x860)]}),_0x198a69[_0x550b8c(0x860)]=undefined;return;})['then'](function(_0x53562b){const _0xefdbe1=_0x564a4a;_0x53562b&&_0x1a5ba1[_0xefdbe1(0x1426)](_0x198a69[_0xefdbe1(0x860)]?_0x198a69['selectedDisposition'][_0xefdbe1(0x16b6)][_0xefdbe1(0x2335)]():'');})['catch'](function(_0x3b9a56){const _0x563d03=_0x564a4a;_0x1f128d[_0x563d03(0x218e)]({'title':_0x3b9a56[_0x563d03(0x291)]?'API:'+_0x3b9a56['status']+_0x563d03(0x1657)+_0x3b9a56[_0x563d03(0xc22)]:_0x563d03(0x1e7d),'msg':_0x3b9a56[_0x563d03(0x25c)]?JSON[_0x563d03(0x2701)](_0x3b9a56[_0x563d03(0x25c)]):_0x3b9a56[_0x563d03(0x147f)]()}),_0x1a5ba1['hide'](_0x198a69[_0x563d03(0x860)]?_0x198a69[_0x563d03(0x860)]['name'][_0x563d03(0x2335)]():'');});}function _0x5f01b6(_0x5c2265){const _0x5ea3b1=_0x5c8b9d;_0x198a69['selectedDisposition']=_0x39641b()['isNil'](_0x5c2265)?_0x198a69[_0x5ea3b1(0x860)]:{'name':_0x5c2265};_0x5c2265&&(_0x198a69[_0x5ea3b1(0x8ba)]=_0x198a69[_0x5ea3b1(0x860)]);_0x198a69[_0x5ea3b1(0x205d)]['note']=_0x198a69[_0x5ea3b1(0xbe2)],_0x27f97c(),_0x5f4642();_0x198a69[_0x5ea3b1(0x1d99)]&&(_0x5aa2f3(),_0x453a51());if(!_0x39641b()['isNil'](_0x198a69[_0x5ea3b1(0x860)]))switch(_0x198a69[_0x5ea3b1(0x860)][_0x5ea3b1(0x16b6)][_0x5ea3b1(0x1680)]()){case _0x5ea3b1(0x9b5):_0x198a69['call']&&_0x198a69[_0x5ea3b1(0x205d)][_0x5ea3b1(0x9a9)]&&_0x198a69['call']['variables'][_0x5ea3b1(0x1569)]&&_0x4ec050(_0x198a69[_0x5ea3b1(0x205d)]['variables'][_0x5ea3b1(0x1569)]);break;case _0x5ea3b1(0x1c3b):_0x198a69[_0x5ea3b1(0x8fc)]=!![],_0x198a69[_0x5ea3b1(0x1858)]=![];break;case'recallme':_0x198a69[_0x5ea3b1(0x8fc)]=!![],_0x198a69[_0x5ea3b1(0x1858)]=!![];break;default:_0x1a5ba1[_0x5ea3b1(0x1426)](_0x198a69['selectedDisposition']?_0x198a69['selectedDisposition']['name'][_0x5ea3b1(0x2335)]():'');}else _0x1a5ba1[_0x5ea3b1(0x1426)](_0x198a69[_0x5ea3b1(0x860)]?_0x198a69['selectedDisposition'][_0x5ea3b1(0x16b6)][_0x5ea3b1(0x2335)]():'');}function _0x2e03a8(){const _0x5b2ff5=_0x5c8b9d;_0x1a5ba1[_0x5b2ff5(0x696)]();}function _0xc3fffb(){const _0x4076e2=_0x5c8b9d;return _0x198a69[_0x4076e2(0xd79)]=!![],_0x55257f[_0x4076e2(0x26bc)][_0x4076e2(0x1c3f)]({'phone':_0x198a69['contact'][_0x4076e2(0x1340)],'UserId':_0x198a69[_0x4076e2(0x1858)]?_0x37e3ce[_0x4076e2(0x21e8)]()['id']:null,'ContactId':_0x198a69[_0x4076e2(0x8b1)]['id'],'ListId':_0x198a69['contact'][_0x4076e2(0x20a6)],'VoiceQueueId':_0x198a69[_0x4076e2(0x1d99)]?Number(_0x198a69[_0x4076e2(0x205d)]['xmd-voicequeueid']):_0x198a69['queueCampaign']?_0x198a69[_0x4076e2(0x17b8)]['id']:null,'scheduledat':_0x543b5a()(_0x198a69[_0x4076e2(0x2151)][_0x4076e2(0xb88)])[_0x4076e2(0x1f31)](_0x4076e2(0x2e8)),'priority':0x3,'recallme':_0x198a69['recallme'],'OwnerId':_0x37e3ce[_0x4076e2(0x21e8)]()['id']})[_0x4076e2(0x1d77)]['then'](function(){const _0x2ec5b3=_0x4076e2;_0x198a69[_0x2ec5b3(0x1d99)]&&_0x55257f[_0x2ec5b3(0x145f)][_0x2ec5b3(0x687)]({'id':_0x198a69[_0x2ec5b3(0x205d)][_0x2ec5b3(0x1425)],'rescheduled':!![],'rescheduledat':_0x543b5a()(_0x198a69[_0x2ec5b3(0x2151)]['dateTime'])['format'](_0x2ec5b3(0x2e8)),'recallme':_0x198a69['recallme']})[_0x2ec5b3(0x1d77)][_0x2ec5b3(0x1c4)](function(_0x3d81ff){console['log'](_0x3d81ff);});})['then'](function(){const _0x3930eb=_0x4076e2;_0x1f128d[_0x3930eb(0x829)]({'title':_0x2b8492[_0x3930eb(0x25cc)](_0x3930eb(0x1f19)),'msg':_0x2b8492[_0x3930eb(0x25cc)]('DASHBOARDS.CALL_DISPOSED')+'\x20'+(_0x198a69[_0x3930eb(0x1858)]?_0x2b8492['instant'](_0x3930eb(0x19d7)):_0x2b8492['instant'](_0x3930eb(0x13c3)))});})[_0x4076e2(0x1c4)](function(){const _0x2bff99=_0x4076e2;_0x1a5ba1[_0x2bff99(0x1426)](_0x198a69[_0x2bff99(0x860)]?_0x198a69[_0x2bff99(0x860)][_0x2bff99(0x16b6)][_0x2bff99(0x2335)]():'');})['finally'](function(){const _0x3f1a1c=_0x4076e2;_0x198a69['disable']=![],_0x1a5ba1[_0x3f1a1c(0x1426)](_0x198a69[_0x3f1a1c(0x860)]?_0x198a69['selectedDisposition'][_0x3f1a1c(0x16b6)]['toUpperCase']():'');});}}const _0x578aff=_0x12f9ee;;_0x9097a0[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x2168),'toasty','api',_0x5537c6(0x8b1),_0x5537c6(0x205d),_0x5537c6(0x1774),'recallme','$translate'];function _0x9097a0(_0x3c8790,_0x3c5f94,_0x4d9146,_0x1d9071,_0x1c9d6a,_0x3d436e,_0x5323a2,_0x3ddac3,_0x515afd,_0x12ceed,_0x248cdb,_0x35de92){const _0x54c189=_0x5537c6,_0x5a92dd=this;_0x5a92dd['call']=_0x515afd,_0x5a92dd[_0x54c189(0x8b1)]=_0x3ddac3,_0x5a92dd[_0x54c189(0x2151)]={'minDate':new Date(),'dateTime':new Date()};function _0x303d66(){const _0x4f6892=_0x54c189;return _0x5a92dd['disable']=!![],_0x5323a2['cmHopper'][_0x4f6892(0x1c3f)]({'phone':_0x5a92dd[_0x4f6892(0x8b1)][_0x4f6892(0x1340)],'UserId':_0x248cdb?_0x12ceed['getCurrentUser']()['id']:null,'ContactId':_0x5a92dd['contact']['id'],'ListId':_0x5a92dd[_0x4f6892(0x8b1)]['ListId'],'VoiceQueueId':Number(_0x5a92dd[_0x4f6892(0x205d)][_0x4f6892(0x1569)]),'scheduledat':_0x543b5a()(_0x5a92dd[_0x4f6892(0x2151)]['dateTime'])[_0x4f6892(0x1f31)](_0x4f6892(0x2e8)),'priority':0x3,'recallme':_0x248cdb,'OwnerId':_0x12ceed[_0x4f6892(0x21e8)]()['id']})[_0x4f6892(0x1d77)][_0x4f6892(0x1cb0)](function(){const _0x507aa9=_0x4f6892;_0x5323a2['cmHopperFinal'][_0x507aa9(0x687)]({'id':_0x5a92dd[_0x507aa9(0x205d)][_0x507aa9(0x1425)],'rescheduled':!![],'rescheduledat':_0x543b5a()(_0x5a92dd[_0x507aa9(0x2151)][_0x507aa9(0xb88)])['format'](_0x507aa9(0x2e8)),'recallme':_0x248cdb})['$promise'];})[_0x4f6892(0x1cb0)](function(){const _0x200941=_0x4f6892;_0x3d436e[_0x200941(0x829)]({'title':_0x35de92[_0x200941(0x25cc)](_0x200941(0x1f19)),'msg':_0x35de92[_0x200941(0x25cc)](_0x200941(0x434))+'\x20'+(_0x248cdb?_0x35de92[_0x200941(0x25cc)](_0x200941(0x19d7)):_0x35de92[_0x200941(0x25cc)](_0x200941(0x13c3)))}),_0x1d9071[_0x200941(0x1426)]();})['catch'](function(_0x51532b){const _0x395076=_0x4f6892;_0x1d9071[_0x395076(0x696)](_0x51532b);})[_0x4f6892(0x2e0)](function(){const _0x27aaf9=_0x4f6892;_0x5a92dd[_0x27aaf9(0xd79)]=![];});}function _0xaa3802(){const _0x4becf9=_0x54c189;_0x1d9071[_0x4becf9(0x696)]();}_0x5a92dd[_0x54c189(0xda0)]=_0xaa3802,_0x5a92dd[_0x54c189(0x65b)]=_0x303d66;}const _0x189289=_0x9097a0;;_0x99668f[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x1ae),_0x5537c6(0x142b),'contacts',_0x5537c6(0xddf),_0x5537c6(0x9bf)];function _0x99668f(_0xdace96,_0x352063,_0x504f13,_0x574308,_0x2f9846,_0x590e96){const _0x2cdead=_0x5537c6,_0x5260c6=this;_0x5260c6[_0x2cdead(0xddf)]=_0x2f9846,_0x5260c6[_0x2cdead(0x1c7b)]=0x1;function _0x24d513(){const _0x7c3f60=_0x2cdead;_0x504f13[_0x7c3f60(0x22f2)][_0x7c3f60(0xbf7)]({'fields':_0x7c3f60(0x43c),'nolimit':!![]})['$promise']['then'](function(_0x1da579){const _0x49f8f7=_0x7c3f60;_0x5260c6[_0x49f8f7(0x1046)]=_0x39641b()[_0x49f8f7(0x257)](_0x1da579[_0x49f8f7(0x2214)])['keyBy']('id')['mapValues']('name')[_0x49f8f7(0x327)](),_0x504f13[_0x49f8f7(0xc36)][_0x49f8f7(0xbf7)]({'fields':_0x49f8f7(0x1243),'nolimit':!![]})['$promise'][_0x49f8f7(0x1cb0)](function(_0x4a6032){const _0x45cfb1=_0x49f8f7;_0x5260c6['customFields']=_0x4a6032['rows'],_0x5260c6[_0x45cfb1(0x7eb)]=_0x39641b()[_0x45cfb1(0x1de2)](_0x574308,function(_0x527753){const _0x254aa3=_0x45cfb1;return Object[_0x254aa3(0x1be5)](_0x527753)[_0x254aa3(0xf90)](function(_0x291357){const _0x24e9f0=_0x254aa3;if(Number(_0x527753[_0x291357])===Number(_0x5260c6['callNumber'])){if(_0x291357[_0x24e9f0(0x1f2c)]('cf_')){const _0x51c1d4=_0x39641b()[_0x24e9f0(0x13b4)](_0x5260c6[_0x24e9f0(0x2242)],['id',Number(_0x39641b()[_0x24e9f0(0x359)](_0x291357,_0x24e9f0(0x1e4b)))]);_0x527753[_0x24e9f0(0xf31)]=_0x51c1d4?_0x51c1d4['alias']:_0x352063[_0x24e9f0(0x25cc)](_0x24e9f0(0x2b9));}else _0x527753[_0x24e9f0(0xf31)]=_0x291357;}}),_0x527753;});});})['then'](function(){const _0x33fd68=_0x7c3f60;_0x5260c6['paginatedContacts']=_0x39641b()[_0x33fd68(0x275b)](_0x574308,0x4);})[_0x7c3f60(0x1c4)](function(_0x414fa4){const _0x197703=_0x7c3f60;_0x590e96['error']({'title':_0x414fa4[_0x197703(0x291)]?_0x197703(0xeb9)+_0x414fa4[_0x197703(0x291)]+_0x197703(0x1657)+_0x414fa4[_0x197703(0xc22)]:_0x197703(0xabc),'msg':_0x414fa4[_0x197703(0x25c)]?JSON[_0x197703(0x2701)](_0x414fa4[_0x197703(0x25c)][_0x197703(0x155e)]):_0x414fa4[_0x197703(0x147f)]()});});}function _0x15ed40(){const _0x1c6e53=_0x2cdead;_0xdace96['hide'](_0x5260c6[_0x1c6e53(0x1176)]);}_0x5260c6[_0x2cdead(0x1a34)]=_0x24d513,_0x5260c6[_0x2cdead(0x1ab5)]=_0x15ed40;}const _0x55c586=_0x99668f;;_0x44f297[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1714)];function _0x44f297(_0x4e51cf,_0x55f9bd){const _0x595968=_0x5537c6;let _0x6ec49=_0x55f9bd(function(){},0x3e7);_0x4e51cf[_0x595968(0x1d6)](_0x595968(0x291c),function(){const _0x142d62=_0x595968;_0x6ec49&&(_0x55f9bd[_0x142d62(0x696)](_0x6ec49),_0x6ec49=null);});}const _0x29904c=_0x44f297;;_0x3b5ebe[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x2168),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x1f10),_0x5537c6(0x1ae),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1986)];function _0x3b5ebe(_0x59985b,_0x76639e,_0x566c7f,_0x3d81e3,_0xe9db06,_0x2a89ad,_0x278977,_0x1c585f,_0x19bc8f){const _0x2b7b50=_0x5537c6,_0x506ff8=this;_0x506ff8[_0x2b7b50(0x16fe)]=![],_0x506ff8[_0x2b7b50(0x576)]=!![],_0x506ff8[_0x2b7b50(0xd79)]=[],_0x506ff8[_0x2b7b50(0xdf2)]={'count':0x0,'rows':[]},_0x506ff8[_0x2b7b50(0xe76)]=_0x1c585f[_0x2b7b50(0x21e8)](),_0x506ff8[_0x2b7b50(0x971)]={},_0x506ff8[_0x2b7b50(0x292f)]={'count':0x0,'rows':[]},_0x506ff8[_0x2b7b50(0xae2)]={'fields':_0x2b7b50(0x66b),'type':_0x2b7b50(0x895),'queuecallerexitreason':_0x2b7b50(0x2021)+','+_0x2b7b50(0x2778),'sort':_0x2b7b50(0x282),'limit':0xa,'page':0x1},_0x506ff8[_0x2b7b50(0x23a8)]=_0x17a911,_0x506ff8[_0x2b7b50(0x2834)]=_0x5f4788,_0x506ff8[_0x2b7b50(0x1a34)]=_0x4a0437,_0x506ff8['reserved']=_0x543b21,_0x506ff8[_0x2b7b50(0xe1c)]=_0x3a4a3d,_0x506ff8[_0x2b7b50(0x205d)]=_0x59985b[_0x2b7b50(0x17bc)][_0x2b7b50(0x17bc)][_0x2b7b50(0x17bc)][_0x2b7b50(0x17bc)]['vm']['call'],_0x506ff8[_0x2b7b50(0x29b3)]=_0x59985b[_0x2b7b50(0x17bc)][_0x2b7b50(0x17bc)][_0x2b7b50(0x17bc)][_0x2b7b50(0x17bc)]['vm'][_0x2b7b50(0x29b3)],_0x506ff8['webcall']=_0x59985b['$parent'][_0x2b7b50(0x17bc)][_0x2b7b50(0x17bc)][_0x2b7b50(0x17bc)]['vm'][_0x2b7b50(0x1a3f)],_0x506ff8['webtransfer']=_0x59985b[_0x2b7b50(0x17bc)][_0x2b7b50(0x17bc)][_0x2b7b50(0x17bc)]['$parent']['vm'][_0x2b7b50(0x6f0)],_0x506ff8[_0x2b7b50(0x17c3)]=_0x743b18,_0x506ff8[_0x2b7b50(0x28a8)]=_0xded342,_0x19bc8f[_0x2b7b50(0x16b7)](_0x2b7b50(0xaa0),_0x1d1382),_0x19bc8f[_0x2b7b50(0x16b7)](_0x2b7b50(0x125e),_0x5c038f),_0x4a0437();function _0x4a0437(){const _0x4e5c86=_0x2b7b50;return _0x278977[_0x4e5c86(0x1746)]['get']({'MailAccountId':'null','FaxAccountId':'null','SmsAccountId':_0x4e5c86(0xd38),'WhatsappAccountId':'null','OpenchannelAccountId':_0x4e5c86(0xd38),'ChatWebsiteId':_0x4e5c86(0xd38)})[_0x4e5c86(0x1d77)][_0x4e5c86(0x1cb0)](function(_0x3d5333){const _0x2f7bb4=_0x4e5c86;return _0x506ff8[_0x2f7bb4(0xdf2)]=_0x3d5333?_0x3d5333[_0x2f7bb4(0x2214)]:[],_0x278977[_0x2f7bb4(0xebe)]['getQueues']({'id':_0x1c585f['getCurrentUser']()['id'],'fields':_0x2f7bb4(0x43c),'channel':_0x2f7bb4(0x1fd4),'type':_0x2f7bb4(0x895),'nolimit':!![]})[_0x2f7bb4(0x1d77)];})['then'](function(_0x2d0ad0){const _0x3cc58d=_0x4e5c86;_0x506ff8[_0x3cc58d(0x971)]=_0x2d0ad0||{'count':0x0,'rows':[]},_0x506ff8[_0x3cc58d(0xb16)]=_0x39641b()[_0x3cc58d(0x1db)](_0x39641b()[_0x3cc58d(0x2631)](_0x506ff8[_0x3cc58d(0x971)][_0x3cc58d(0x2214)],'name'),'name'),_0x506ff8['defaultQueues']=_0x506ff8[_0x3cc58d(0x971)][_0x3cc58d(0x2214)]?_0x39641b()[_0x3cc58d(0x1de2)](_0x506ff8[_0x3cc58d(0x971)][_0x3cc58d(0x2214)],_0x3cc58d(0x16b6))[_0x3cc58d(0x1f66)](','):undefined;})[_0x4e5c86(0x1cb0)](function(){const _0x4137b3=_0x4e5c86;_0x506ff8[_0x4137b3(0x789)]=_0x48772f();})[_0x4e5c86(0x1c4)](function(_0x21f82f){const _0x1b886d=_0x4e5c86;console[_0x1b886d(0x1b4f)](_0x21f82f);})[_0x4e5c86(0x2e0)](function(){const _0x9fd5ca=_0x4e5c86;let _0x1ecff5=_0xe9db06[_0x9fd5ca(0x1b83)][_0x9fd5ca(0x2091)](_0x9fd5ca(0x207d)+_0x506ff8[_0x9fd5ca(0xe76)]['id']);if(_0x1ecff5)_0x1ecff5=JSON[_0x9fd5ca(0xefe)](_0x1ecff5),_0x1ecff5['query']&&(_0x506ff8[_0x9fd5ca(0xae2)]=_0x39641b()[_0x9fd5ca(0x9c1)](_0x1ecff5[_0x9fd5ca(0xae2)],_0x39641b()[_0x9fd5ca(0x1bd8)](_0x506ff8['query'],[_0x9fd5ca(0x1381),'limit',_0x9fd5ca(0x1c7b)])),_0x506ff8[_0x9fd5ca(0xae2)]=_0x39641b()[_0x9fd5ca(0x1bd8)](_0x506ff8[_0x9fd5ca(0xae2)],_0x9fd5ca(0x1c99)));else{const _0x12aa5b={'$gte':_0x543b5a()()[_0x9fd5ca(0x1be0)](_0x9fd5ca(0x26ae))[_0x9fd5ca(0x17d9)](0x0,!![])[_0x9fd5ca(0x1f31)](),'$lte':_0x543b5a()()[_0x9fd5ca(0x1b4)](_0x9fd5ca(0x26ae))[_0x9fd5ca(0x17d9)](0x0,!![])[_0x9fd5ca(0x1f31)]()};_0x506ff8[_0x9fd5ca(0xae2)][_0x9fd5ca(0x24cb)]=_0x12aa5b;}_0x506ff8['isSearchBarVisible']=_0x506ff8[_0x9fd5ca(0xae2)][_0x9fd5ca(0x1c99)]?!![]:![],_0x506ff8['getAbandonedCalls']();});}function _0x48772f(){const _0x3d6cfa=_0x2b7b50;return[{'name':_0x3d6cfa(0x68d),'key':_0x3d6cfa(0x24cb),'type':_0x3d6cfa(0x18ec),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x3d6cfa(0x30e),'key':'UserId','type':_0x3d6cfa(0x220f),'label':_0x3d6cfa(0x7bb),'customOptions':[{'value':_0x506ff8['currentUser']['id'],'translate':_0x3d6cfa(0x1ea6)},{'value':_0x3d6cfa(0x21de),'translate':_0x3d6cfa(0x68f)},{'value':undefined,'translate':_0x3d6cfa(0x2706)}]},{'name':_0x3d6cfa(0xb34),'key':_0x3d6cfa(0x11cf),'type':_0x3d6cfa(0x1d50),'label':_0x3d6cfa(0x519),'options':_0x506ff8['queues'][_0x3d6cfa(0x2214)],'ngValue':_0x3d6cfa(0x16b6),'clearAll':![]}];}function _0x17a911(){const _0x449044=_0x2b7b50;_0x506ff8[_0x449044(0xae2)][_0x449044(0x11cf)]=_0x506ff8[_0x449044(0xae2)][_0x449044(0x11cf)]||_0x506ff8[_0x449044(0x2fd)][_0x449044(0xbe1)](','),_0x506ff8[_0x449044(0xae2)]['offset']=(_0x506ff8[_0x449044(0xae2)][_0x449044(0x1c7b)]-0x1)*_0x506ff8[_0x449044(0xae2)]['limit'];const _0x1c55a0={'query':_0x506ff8[_0x449044(0xae2)]};_0xe9db06[_0x449044(0x1b83)][_0x449044(0x13a8)](_0x449044(0x207d)+_0x506ff8[_0x449044(0xe76)]['id'],JSON['stringify'](_0x1c55a0)),_0x506ff8[_0x449044(0x2061)]=_0x278977[_0x449044(0xc6f)]['getVoiceQueuesReport'](_0x506ff8['query'],_0xd6a75c)[_0x449044(0x1d77)];}function _0xd6a75c(_0x580a23){const _0xf803ea=_0x2b7b50;_0x506ff8[_0xf803ea(0x292f)]=_0x580a23||{'count':0x0,'rows':[]},_0x506ff8[_0xf803ea(0x576)]=!![];}function _0x3a4a3d(_0xcf98c4){const _0x5b9c82=_0x2b7b50;_0x566c7f[_0x5b9c82(0xe27)]({'controller':_0x5b9c82(0x1c11),'controllerAs':'vm','templateUrl':_0x5b9c82(0x185f),'parent':angular[_0x5b9c82(0x1853)](_0x3d81e3['body']),'targetEvent':_0xcf98c4,'resolve':{'globalDispositions':[_0x5b9c82(0x1e0b),function(_0x624b20){const _0x3afaed=_0x5b9c82;return _0x624b20['resolve'](_0x3afaed(0x1c6f),{'MailAccountId':'null','FaxAccountId':_0x3afaed(0xd38),'SmsAccountId':_0x3afaed(0xd38),'WhatsappAccountId':_0x3afaed(0xd38),'OpenchannelAccountId':'null','ChatWebsiteId':'null','ListId':_0x3afaed(0xd38)});}]},'locals':{'dispositions':_0x506ff8[_0x5b9c82(0xdf2)],'call':_0xcf98c4}})[_0x5b9c82(0x1cb0)](function(_0x3aebf8){const _0x32b616=_0x5b9c82;if(_0x3aebf8){_0x506ff8[_0x32b616(0xd79)][_0xcf98c4['id']]=!![];const _0x3ab06e={'id':_0xcf98c4['id'],'lastAssignedTo':_0xcf98c4[_0x32b616(0xcb6)]?_0x506ff8['currentUser']['name']:null,'assigned':_0xcf98c4[_0x32b616(0xcb6)],'disposition':_0x3aebf8[_0x32b616(0x1e1)]||null,'secondDisposition':_0x3aebf8[_0x32b616(0x11c2)]||null,'thirdDisposition':_0x3aebf8[_0x32b616(0x28c4)]||null};_0x278977[_0x32b616(0xc6f)][_0x32b616(0x687)](_0x3ab06e)['$promise'][_0x32b616(0x1c4)](function(_0x579af5){const _0x263d08=_0x32b616;console[_0x263d08(0x1b4f)](_0x579af5);})['finally'](function(){_0x506ff8['disable'][_0xcf98c4['id']]=![];});}});}function _0x743b18(){const _0x454fbc=_0x2b7b50;_0x506ff8[_0x454fbc(0xae2)][_0x454fbc(0x1c99)]=undefined,_0x506ff8['isSearchBarVisible']=![];}function _0xded342(){const _0x3adc21=_0x2b7b50;_0x506ff8[_0x3adc21(0x1e6c)]=!![];}let _0x4fa832=!![],_0x5733dc=0x1;_0x59985b['$watch'](_0x2b7b50(0xe03),function(_0x4c2650,_0x1eec78){const _0x86221d=_0x2b7b50;_0x4fa832?_0x76639e(function(){_0x4fa832=![];}):(!_0x1eec78&&(_0x5733dc=_0x506ff8[_0x86221d(0xae2)][_0x86221d(0x1c7b)]),_0x4c2650!==_0x1eec78&&(_0x506ff8['query'][_0x86221d(0x1c7b)]=0x1),!_0x4c2650&&(_0x506ff8[_0x86221d(0xae2)][_0x86221d(0x1c7b)]=_0x5733dc),_0x506ff8[_0x86221d(0x23a8)]());});function _0x5f4788(){const _0x5232ef=_0x2b7b50;_0x506ff8[_0x5232ef(0x16fe)]=![],_0x506ff8['getAbandonedCalls']();}function _0x543b21(_0x37812f){const _0x2fed1b=_0x2b7b50;_0x37812f&&(_0x506ff8[_0x2fed1b(0xd79)][_0x37812f['id']]=!![],_0x278977[_0x2fed1b(0xc6f)]['update']({'id':_0x37812f['id'],'lastAssignedTo':_0x37812f[_0x2fed1b(0xcb6)]?_0x506ff8[_0x2fed1b(0xe76)][_0x2fed1b(0x16b6)]:null,'assigned':_0x37812f[_0x2fed1b(0xcb6)]})['$promise'][_0x2fed1b(0x1c4)](function(_0xee186e){console['log'](_0xee186e);})[_0x2fed1b(0x2e0)](function(){const _0x3a0f2e=_0x2fed1b;_0x506ff8[_0x3a0f2e(0xd79)][_0x37812f['id']]=![];}));}function _0x1d1382(_0x29f1f4){const _0x309c02=_0x2b7b50;_0x506ff8[_0x309c02(0xb16)]&&_0x29f1f4[_0x309c02(0x66a)]===_0x309c02(0x895)&&_0x506ff8[_0x309c02(0xb16)][_0x29f1f4[_0x309c02(0x11cf)]]&&(_0x506ff8['showTooltip']=!![]);}function _0x5c038f(_0x4ee225){const _0x17e7ca=_0x2b7b50;if(_0x4ee225){const _0x37a8c2=_0x39641b()['findIndex'](_0x506ff8[_0x17e7ca(0x292f)]['rows'],['id',_0x4ee225['id']]);_0x37a8c2>=0x0&&_0x39641b()['merge'](_0x506ff8[_0x17e7ca(0x292f)][_0x17e7ca(0x2214)][_0x37a8c2],_0x4ee225);}}_0x59985b['$on'](_0x2b7b50(0x291c),function(){const _0x3e8b92=_0x2b7b50;_0x19bc8f[_0x3e8b92(0xfb8)](_0x3e8b92(0xaa0)),_0x19bc8f['removeAllListeners']('voiceQueueReport:update');});}const _0x32440b=_0x3b5ebe;;_0x4da9b5[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0xdf2),_0x5537c6(0x8ab),_0x5537c6(0x205d)];function _0x4da9b5(_0x1ca182,_0x5f6242,_0x335245,_0x29d15c){const _0x18479c=_0x5537c6,_0x1158b6=this;_0x1158b6[_0x18479c(0xdf2)]=_0x5f6242[_0x18479c(0x2214)],_0x1158b6['globalDispositions']=_0x335245[_0x18479c(0x2214)],_0x1158b6[_0x18479c(0x205d)]=_0x29d15c,_0x1158b6[_0x18479c(0xbe2)]=_0x1158b6[_0x18479c(0x205d)][_0x18479c(0xbe2)]||undefined,_0x1158b6[_0x18479c(0x22bd)]=_0x5aff06,_0x1158b6[_0x18479c(0x1a49)]=_0x1c855f,_0x1158b6['saveDisposition']=_0x2b247a,_0x1158b6[_0x18479c(0xda0)]=_0x1613fb;function _0x5aff06(_0x12e5bb){const _0x2c138d=_0x18479c,_0x55e657=_0x39641b()[_0x2c138d(0x16ef)](_0x1158b6['dispositions'],_0x1158b6['globalDispositions'],'id');switch(_0x12e5bb){case'first':_0x1158b6[_0x2c138d(0x860)]=_0x1158b6[_0x2c138d(0x8ba)],_0x1158b6[_0x2c138d(0x18fe)]=_0x39641b()[_0x2c138d(0x727)](_0x55e657,[_0x2c138d(0x55e),_0x1158b6['firstLevelDisposition']['id']]),_0x1158b6[_0x2c138d(0x1aeb)]=undefined,_0x1158b6['thirdLevelDisposition']=undefined,_0x1158b6[_0x2c138d(0x1d98)]=![];break;case _0x2c138d(0x1e82):_0x1158b6['selectedDisposition']=_0x1158b6[_0x2c138d(0x1aeb)],_0x1158b6['anyThirdLevelDisposition']=_0x39641b()[_0x2c138d(0x727)](_0x55e657,[_0x2c138d(0x55e),_0x1158b6[_0x2c138d(0x1aeb)]['id']]);break;case _0x2c138d(0x1dd0):_0x1158b6['selectedDisposition']=_0x1158b6[_0x2c138d(0x20cf)];break;}}function _0x1c855f(_0x400c87){const _0x12f90b=_0x18479c;if(_0x400c87===_0x12f90b(0x1e82))_0x1158b6[_0x12f90b(0x1aeb)]=undefined,_0x1158b6[_0x12f90b(0x20cf)]=undefined,_0x1158b6[_0x12f90b(0x860)]=_0x1158b6[_0x12f90b(0x8ba)];else _0x400c87==='third'&&(_0x1158b6[_0x12f90b(0x20cf)]=undefined,_0x1158b6[_0x12f90b(0x860)]=_0x1158b6['secondLevelDisposition']);}function _0x2b247a(){const _0x4f4923=_0x18479c;_0x1158b6[_0x4f4923(0x205d)][_0x4f4923(0xbe2)]=_0x1158b6[_0x4f4923(0xbe2)];const _0x139905={'firstLevel':_0x1158b6['firstLevelDisposition']?_0x1158b6[_0x4f4923(0x8ba)][_0x4f4923(0x16b6)]:undefined,'secondLevel':_0x1158b6['secondLevelDisposition']?_0x1158b6[_0x4f4923(0x1aeb)][_0x4f4923(0x16b6)]:undefined,'thirdLevel':_0x1158b6['thirdLevelDisposition']?_0x1158b6['thirdLevelDisposition'][_0x4f4923(0x16b6)]:undefined};_0x1ca182[_0x4f4923(0x1426)](_0x139905);}function _0x1613fb(){const _0x1461c6=_0x18479c;_0x1ca182[_0x1461c6(0x696)]();}}const _0x2bc6c0=_0x4da9b5;;_0x1fe9a7['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1f10),'$translate',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1986)];function _0x1fe9a7(_0x3b3bd0,_0x1e5855,_0x30f40e,_0x25ecb9,_0x436562,_0x52c8e1,_0x2e2d79,_0x40a4f6,_0x27eb2c){const _0xd9b867=_0x5537c6,_0x2947b0=this;_0x2947b0[_0xd9b867(0x16fe)]=![],_0x2947b0['refresh']=!![],_0x2947b0[_0xd9b867(0xd79)]=[],_0x2947b0[_0xd9b867(0xdf2)]={'count':0x0,'rows':[]},_0x2947b0[_0xd9b867(0xe76)]=_0x40a4f6[_0xd9b867(0x21e8)](),_0x2947b0[_0xd9b867(0x971)]={},_0x2947b0[_0xd9b867(0x292f)]={'count':0x0,'rows':[]},_0x2947b0[_0xd9b867(0xae2)]={'fields':_0xd9b867(0x66b),'type':_0xd9b867(0x26c0),'queuecallerexitreason':_0xd9b867(0x2021)+','+_0xd9b867(0x2778),'sort':_0xd9b867(0x282),'limit':0xa,'page':0x1},_0x2947b0[_0xd9b867(0x23a8)]=_0xdfa55a,_0x2947b0[_0xd9b867(0x2834)]=_0x382dfa,_0x2947b0[_0xd9b867(0x1a34)]=_0x38ab95,_0x2947b0[_0xd9b867(0x21ca)]=_0x3c0bc1,_0x2947b0[_0xd9b867(0xe1c)]=_0x46b038,_0x2947b0[_0xd9b867(0x205d)]=_0x3b3bd0['$parent'][_0xd9b867(0x17bc)][_0xd9b867(0x17bc)][_0xd9b867(0x17bc)]['vm'][_0xd9b867(0x205d)],_0x2947b0['transfer']=_0x3b3bd0['$parent'][_0xd9b867(0x17bc)][_0xd9b867(0x17bc)][_0xd9b867(0x17bc)]['vm'][_0xd9b867(0x29b3)],_0x2947b0[_0xd9b867(0x1a3f)]=_0x3b3bd0['$parent'][_0xd9b867(0x17bc)][_0xd9b867(0x17bc)][_0xd9b867(0x17bc)]['vm'][_0xd9b867(0x1a3f)],_0x2947b0[_0xd9b867(0x6f0)]=_0x3b3bd0[_0xd9b867(0x17bc)][_0xd9b867(0x17bc)][_0xd9b867(0x17bc)][_0xd9b867(0x17bc)]['vm'][_0xd9b867(0x6f0)],_0x2947b0['onSearchBarCollapse']=_0x15e191,_0x2947b0[_0xd9b867(0x28a8)]=_0x1583d0,_0x27eb2c[_0xd9b867(0x16b7)]('voiceQueueReport:save',_0xd067b),_0x27eb2c[_0xd9b867(0x16b7)](_0xd9b867(0x125e),_0x28a56c),_0x38ab95();function _0x38ab95(){const _0x26a317=_0xd9b867;return _0x2e2d79[_0x26a317(0x1746)][_0x26a317(0xbf7)]({'MailAccountId':_0x26a317(0xd38),'FaxAccountId':_0x26a317(0xd38),'SmsAccountId':_0x26a317(0xd38),'WhatsappAccountId':_0x26a317(0xd38),'OpenchannelAccountId':_0x26a317(0xd38),'ChatWebsiteId':_0x26a317(0xd38)})['$promise'][_0x26a317(0x1cb0)](function(_0x608486){const _0x3cf566=_0x26a317;return _0x2947b0[_0x3cf566(0xdf2)]=_0x608486?_0x608486['rows']:[],_0x2e2d79[_0x3cf566(0xebe)][_0x3cf566(0x13e9)]({'id':_0x40a4f6[_0x3cf566(0x21e8)]()['id'],'fields':_0x3cf566(0x43c),'channel':_0x3cf566(0x1fd4),'type':_0x3cf566(0x26c0),'nolimit':!![]})[_0x3cf566(0x1d77)];})[_0x26a317(0x1cb0)](function(_0x159917){const _0x3aa77e=_0x26a317;_0x2947b0[_0x3aa77e(0x971)]=_0x159917||{'count':0x0,'rows':[]},_0x2947b0['queuesMap']=_0x39641b()[_0x3aa77e(0x1db)](_0x39641b()['keyBy'](_0x2947b0[_0x3aa77e(0x971)][_0x3aa77e(0x2214)],_0x3aa77e(0x16b6)),_0x3aa77e(0x16b6)),_0x2947b0[_0x3aa77e(0x2fd)]=_0x2947b0['queues'][_0x3aa77e(0x2214)]?_0x39641b()[_0x3aa77e(0x1de2)](_0x2947b0[_0x3aa77e(0x971)][_0x3aa77e(0x2214)],_0x3aa77e(0x16b6))[_0x3aa77e(0x1f66)](','):undefined;})[_0x26a317(0x1cb0)](function(){const _0x5eedd6=_0x26a317;_0x2947b0[_0x5eedd6(0x789)]=_0x19670f();})[_0x26a317(0x1c4)](function(_0x296e6a){const _0x157fa7=_0x26a317;console[_0x157fa7(0x1b4f)](_0x296e6a);})[_0x26a317(0x2e0)](function(){const _0x58b00e=_0x26a317;let _0x238db7=_0x436562[_0x58b00e(0x1b83)][_0x58b00e(0x2091)]('motion2.home.abandoned.voice.calls:'+_0x2947b0[_0x58b00e(0xe76)]['id']);if(_0x238db7)_0x238db7=JSON[_0x58b00e(0xefe)](_0x238db7),_0x238db7[_0x58b00e(0xae2)]&&(_0x2947b0['query']=_0x39641b()[_0x58b00e(0x9c1)](_0x238db7[_0x58b00e(0xae2)],_0x39641b()[_0x58b00e(0x1bd8)](_0x2947b0['query'],[_0x58b00e(0x1381),'limit',_0x58b00e(0x1c7b)])),_0x2947b0['query']=_0x39641b()['omit'](_0x2947b0[_0x58b00e(0xae2)],_0x58b00e(0x1c99)));else{const _0x5558d3={'$gte':_0x543b5a()()[_0x58b00e(0x1be0)](_0x58b00e(0x26ae))['utcOffset'](0x0,!![])[_0x58b00e(0x1f31)](),'$lte':_0x543b5a()()[_0x58b00e(0x1b4)](_0x58b00e(0x26ae))[_0x58b00e(0x17d9)](0x0,!![])['format']()};_0x2947b0[_0x58b00e(0xae2)][_0x58b00e(0x24cb)]=_0x5558d3;}_0x2947b0[_0x58b00e(0x1e6c)]=_0x2947b0[_0x58b00e(0xae2)][_0x58b00e(0x1c99)]?!![]:![],_0x2947b0[_0x58b00e(0x23a8)]();});}function _0x19670f(){const _0x5ab3ba=_0xd9b867;return[{'name':'Start\x20Date','key':'createdAt','type':_0x5ab3ba(0x18ec),'label':_0x5ab3ba(0xf5e)},{'name':'Agent','key':'UserId','type':_0x5ab3ba(0x220f),'label':_0x5ab3ba(0x7bb),'customOptions':[{'value':_0x2947b0[_0x5ab3ba(0xe76)]['id'],'translate':'DASHBOARDS.ME'},{'value':_0x5ab3ba(0x21de),'translate':_0x5ab3ba(0x68f)},{'value':undefined,'translate':_0x5ab3ba(0x2706)}]},{'name':_0x5ab3ba(0xb34),'key':_0x5ab3ba(0x11cf),'type':_0x5ab3ba(0x1d50),'label':'DASHBOARDS.SELECT_QUEUE','options':_0x2947b0[_0x5ab3ba(0x971)][_0x5ab3ba(0x2214)],'ngValue':'name','clearAll':![]}];}function _0xdfa55a(){const _0x443157=_0xd9b867;_0x2947b0[_0x443157(0xae2)][_0x443157(0x11cf)]=_0x2947b0['query'][_0x443157(0x11cf)]||_0x2947b0[_0x443157(0x2fd)][_0x443157(0xbe1)](','),_0x2947b0[_0x443157(0xae2)]['offset']=(_0x2947b0[_0x443157(0xae2)][_0x443157(0x1c7b)]-0x1)*_0x2947b0[_0x443157(0xae2)][_0x443157(0x236)];const _0x26079f={'query':_0x2947b0[_0x443157(0xae2)]};_0x436562[_0x443157(0x1b83)]['setItem'](_0x443157(0x24c2)+_0x2947b0[_0x443157(0xe76)]['id'],JSON[_0x443157(0x2701)](_0x26079f)),_0x2947b0[_0x443157(0x2061)]=_0x2e2d79['voiceQueueReport'][_0x443157(0x7dc)](_0x2947b0[_0x443157(0xae2)],_0x198756)[_0x443157(0x1d77)];}function _0x198756(_0x3d8510){const _0x3a6c44=_0xd9b867;_0x2947b0[_0x3a6c44(0x292f)]=_0x3d8510||{'count':0x0,'rows':[]},_0x2947b0[_0x3a6c44(0x576)]=!![];}function _0x46b038(_0x53249f){const _0x53ac91=_0xd9b867;_0x30f40e['show']({'controller':_0x53ac91(0x1c11),'controllerAs':'vm','templateUrl':_0x53ac91(0x185f),'parent':angular[_0x53ac91(0x1853)](_0x25ecb9['body']),'targetEvent':_0x53249f,'resolve':{'globalDispositions':['apiResolver',function(_0x3d86f0){const _0x2ff05c=_0x53ac91;return _0x3d86f0['resolve'](_0x2ff05c(0x1c6f),{'MailAccountId':_0x2ff05c(0xd38),'FaxAccountId':_0x2ff05c(0xd38),'SmsAccountId':'null','WhatsappAccountId':_0x2ff05c(0xd38),'OpenchannelAccountId':_0x2ff05c(0xd38),'ChatWebsiteId':_0x2ff05c(0xd38),'ListId':'null'});}]},'locals':{'dispositions':_0x2947b0[_0x53ac91(0xdf2)],'call':_0x53249f}})[_0x53ac91(0x1cb0)](function(_0x2ca73e){const _0x25ca3e=_0x53ac91;if(_0x2ca73e){_0x2947b0[_0x25ca3e(0xd79)][_0x53249f['id']]=!![];const _0x1bd45b={'id':_0x53249f['id'],'lastAssignedTo':_0x53249f[_0x25ca3e(0xcb6)]?_0x2947b0['currentUser']['name']:null,'assigned':_0x53249f[_0x25ca3e(0xcb6)],'disposition':_0x2ca73e[_0x25ca3e(0x1e1)]||null,'secondDisposition':_0x2ca73e[_0x25ca3e(0x11c2)]||null,'thirdDisposition':_0x2ca73e['thirdLevel']||null};_0x2e2d79[_0x25ca3e(0xc6f)][_0x25ca3e(0x687)](_0x1bd45b)['$promise'][_0x25ca3e(0x1c4)](function(_0x2b4b30){console['log'](_0x2b4b30);})[_0x25ca3e(0x2e0)](function(){const _0x3f8eeb=_0x25ca3e;_0x2947b0[_0x3f8eeb(0xd79)][_0x53249f['id']]=![];});}});}function _0x15e191(){const _0x3fd681=_0xd9b867;_0x2947b0[_0x3fd681(0xae2)]['filter']=undefined,_0x2947b0[_0x3fd681(0x1e6c)]=![];}function _0x1583d0(){_0x2947b0['isSearchBarVisible']=!![];}let _0x15f639=!![],_0x31a1a6=0x1;_0x3b3bd0[_0xd9b867(0x614)](_0xd9b867(0x4ce),function(_0x3e5815,_0x5dd40b){const _0x25cc28=_0xd9b867;_0x15f639?_0x1e5855(function(){_0x15f639=![];}):(!_0x5dd40b&&(_0x31a1a6=_0x2947b0[_0x25cc28(0xae2)][_0x25cc28(0x1c7b)]),_0x3e5815!==_0x5dd40b&&(_0x2947b0[_0x25cc28(0xae2)][_0x25cc28(0x1c7b)]=0x1),!_0x3e5815&&(_0x2947b0[_0x25cc28(0xae2)][_0x25cc28(0x1c7b)]=_0x31a1a6),_0x2947b0[_0x25cc28(0x23a8)]());});function _0x382dfa(){const _0x569793=_0xd9b867;_0x2947b0[_0x569793(0x16fe)]=![],_0x2947b0[_0x569793(0x23a8)]();}function _0x3c0bc1(_0x48575c){const _0x3315b4=_0xd9b867;_0x48575c&&(_0x2947b0[_0x3315b4(0xd79)][_0x48575c['id']]=!![],_0x2e2d79[_0x3315b4(0xc6f)][_0x3315b4(0x687)]({'id':_0x48575c['id'],'lastAssignedTo':_0x48575c[_0x3315b4(0xcb6)]?_0x2947b0[_0x3315b4(0xe76)][_0x3315b4(0x16b6)]:null,'assigned':_0x48575c['assigned']})[_0x3315b4(0x1d77)][_0x3315b4(0x1c4)](function(_0x3e30a8){console['log'](_0x3e30a8);})['finally'](function(){const _0x1764f9=_0x3315b4;_0x2947b0[_0x1764f9(0xd79)][_0x48575c['id']]=![];}));}function _0xd067b(_0xeed110){const _0x421e44=_0xd9b867;_0x2947b0[_0x421e44(0xb16)]&&_0xeed110[_0x421e44(0x66a)]===_0x421e44(0x26c0)&&_0x2947b0[_0x421e44(0xb16)][_0xeed110[_0x421e44(0x11cf)]]&&(_0x2947b0[_0x421e44(0x16fe)]=!![]);}function _0x28a56c(_0x1aaeae){const _0x192aaf=_0xd9b867;if(_0x1aaeae){const _0x8368db=_0x39641b()[_0x192aaf(0x3c2)](_0x2947b0[_0x192aaf(0x292f)]['rows'],['id',_0x1aaeae['id']]);_0x8368db>=0x0&&_0x39641b()['merge'](_0x2947b0[_0x192aaf(0x292f)]['rows'][_0x8368db],_0x1aaeae);}}_0x3b3bd0[_0xd9b867(0x1d6)](_0xd9b867(0x291c),function(){const _0xf4fe32=_0xd9b867;_0x27eb2c[_0xf4fe32(0xfb8)](_0xf4fe32(0xaa0)),_0x27eb2c[_0xf4fe32(0xfb8)](_0xf4fe32(0x125e));});}const _0x14c980=_0x1fe9a7;;_0xa4940b[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),'Auth',_0x5537c6(0x1014),_0x5537c6(0x1b68)];function _0xa4940b(_0x383361,_0x515304,_0x54e5cb,_0x4e5788,_0x141710){const _0x1cdf94=_0x5537c6,_0x1f4542=this;_0x1f4542[_0x1cdf94(0xebe)]=_0x54e5cb[_0x1cdf94(0x21e8)](),_0x1f4542[_0x1cdf94(0x8a5)]={},_0x1f4542['plugin']={},_0x1f4542[_0x1cdf94(0x9ca)]={},_0x1f4542[_0x1cdf94(0x153c)]=_0x1cdf94(0x1312),_0x1f4542['draftManager']=_0x141710,_0x1f4542[_0x1cdf94(0x511)]=_0x4e5788['getNavigation'](),_0x1f4542[_0x1cdf94(0x1bac)]=_0x383361['$parent']['vm'][_0x1cdf94(0x1bac)],_0x1f4542[_0x1cdf94(0x11d9)]=_0x383361[_0x1cdf94(0x17bc)]['vm']['addInteractionTab'],_0x1f4542[_0x1cdf94(0x1a8e)]=_0x575610,_0x1f4542['changeSidebarTab']=_0x22e3bc,_0x1f4542['hasPermission']=_0x349570;function _0x575610(_0x509f59,_0x42071c){const _0x5c8c24=_0x1cdf94;_0x1f4542[_0x5c8c24(0x8a5)]=_0x509f59,_0x1f4542[_0x5c8c24(0x9ca)]=_0x42071c;let _0x5ef5f4=_0x515304[_0x5c8c24(0x1b83)][_0x5c8c24(0x2091)](_0x5c8c24(0xef6)+_0x1f4542['user']['id']);if(_0x5ef5f4){try{_0x5ef5f4=JSON[_0x5c8c24(0xefe)](_0x5ef5f4),_0x1f4542[_0x5c8c24(0x153c)]=_0x5ef5f4[_0x5c8c24(0x198a)]?_0x5ef5f4[_0x5c8c24(0x198a)]:_0x5c8c24(0x1312);}catch(_0xd97c4c){console['error'](_0xd97c4c),_0x1f4542[_0x5c8c24(0x153c)]=_0x5c8c24(0x1312);}_0x1f4542[_0x5c8c24(0x153c)]===_0x5c8c24(0x2651)&&_0x1f4542[_0x5c8c24(0x1b68)][_0x5c8c24(0x1a8e)]();}}function _0x349570(_0x4099fb){const _0x1684a6=_0x1cdf94;return _0x54e5cb[_0x1684a6(0x39e)](_0x4099fb);}function _0x22e3bc(_0x520062){const _0x5c110f=_0x1cdf94;_0x1f4542[_0x5c110f(0x153c)]=_0x520062[_0x5c110f(0x24b0)],_0x1f4542[_0x5c110f(0x153c)]===_0x5c110f(0xfd2)&&(_0x1f4542['plugin']=_0x520062['stateParams'],_0x1f4542['pluginId']=_0x520062['id'],_0x383361[_0x5c110f(0x692)]('pluginUpdated',{'plugin':_0x1f4542[_0x5c110f(0xfd2)]})),_0x515304[_0x5c110f(0x1b83)][_0x5c110f(0x13a8)](_0x5c110f(0xef6)+_0x1f4542[_0x5c110f(0xebe)]['id'],JSON['stringify']({'currentSidebarTab':_0x520062[_0x5c110f(0x24b0)]}));}_0x383361[_0x1cdf94(0x614)]('vm_home.sidebar',function(_0x4f794d){const _0x29dc9b=_0x1cdf94;_0x4f794d===_0x29dc9b(0x2651)?_0x1f4542['draftManager'][_0x29dc9b(0x1a8e)]():_0x1f4542[_0x29dc9b(0x1b68)][_0x29dc9b(0xcd2)]={};});}const _0x15c1fb=_0xa4940b;;const _0x3530d6=_0x5074a3['p']+_0x5537c6(0x24c6);;_0x432da2['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x2168),_0x5537c6(0xcb9),'$document','$window',_0x5537c6(0x1ae),_0x5537c6(0x142b),'Auth',_0x5537c6(0x1986),_0x5537c6(0x9bf)];function _0x432da2(_0x510ca0,_0x21cc72,_0x429c90,_0x138a81,_0x413aa8,_0x1da458,_0x58f885,_0x5801ce,_0x326299,_0x2a5aea){const _0x3e9cf7=_0x5537c6,_0x2f343c=this;_0x2f343c[_0x3e9cf7(0xebe)]=_0x5801ce[_0x3e9cf7(0x21e8)](),_0x2f343c[_0x3e9cf7(0x8a5)]={},_0x2f343c['setting']={},_0x2f343c[_0x3e9cf7(0xfbf)]={'count':0x0,'rows':[]},_0x2f343c[_0x3e9cf7(0x9d0)]={'count':0x0,'rows':[]},_0x2f343c[_0x3e9cf7(0xae2)]={'includeAll':!![],'sort':'-updatedAt','limit':0xa,'page':0x1,'read':null,'closed':null},_0x2f343c['advancedSearch']={'fields':[{'name':'Id','column':'id','type':_0x3e9cf7(0x83d)},{'name':_0x3e9cf7(0x8d3),'column':_0x3e9cf7(0x8d3),'type':_0x3e9cf7(0x19e0),'options':{'searchFields':[_0x3e9cf7(0x1491),'lastName',_0x3e9cf7(0x1e19)],'route':{'model':_0x3e9cf7(0xbe7),'action':_0x3e9cf7(0xbf7),'params':{'fields':_0x3e9cf7(0x9b0),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x3e9cf7(0x1fb1)],'excludedOperators':[_0x3e9cf7(0x15ce)]}},{'name':'Body','column':_0x3e9cf7(0x1ed9),'type':_0x3e9cf7(0x19d3),'options':{'excludedOperators':[_0x3e9cf7(0x1c5e),'$ne']}},{'name':_0x3e9cf7(0x938),'column':_0x3e9cf7(0x22aa),'type':_0x3e9cf7(0x220f),'values':[{'id':0x0,'translate':_0x3e9cf7(0x1bbd)},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x3e9cf7(0x15ce)]}},{'name':_0x3e9cf7(0x581),'column':_0x3e9cf7(0x223e),'type':'text','options':{'excludedOperators':[_0x3e9cf7(0x1c5e),_0x3e9cf7(0x15ce),_0x3e9cf7(0x1b32),'$endsWith']}},{'name':_0x3e9cf7(0x30e),'column':_0x3e9cf7(0x1597),'type':_0x3e9cf7(0x19e0),'options':{'table':'i','route':{'model':_0x3e9cf7(0xebe),'action':_0x3e9cf7(0xbf7),'params':{'role':_0x3e9cf7(0x1eff),'fields':_0x3e9cf7(0x1d34),'nolimit':!![]}},'searchFields':[_0x3e9cf7(0x1d14),_0x3e9cf7(0x16b6)],'extraOperators':['$substring'],'excludedOperators':['$ne']}},{'name':_0x3e9cf7(0x11aa),'column':_0x3e9cf7(0x67c),'type':_0x3e9cf7(0x1d50),'options':{'route':{'model':'user','action':_0x3e9cf7(0x1cb7),'params':{'id':_0x2f343c[_0x3e9cf7(0xebe)]['id'],'nolimit':!![]}}}},{'name':_0x3e9cf7(0x190),'column':_0x3e9cf7(0xf2d),'type':_0x3e9cf7(0x1d50),'options':{'route':{'model':_0x3e9cf7(0x22b1),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x3e9cf7(0x62d)]}},{'name':_0x3e9cf7(0x68d),'column':_0x3e9cf7(0x24cb),'type':_0x3e9cf7(0x18ec),'options':{'excludedOperators':[_0x3e9cf7(0x15ce)]}},{'name':_0x3e9cf7(0x946),'column':_0x3e9cf7(0x1554),'type':'select','values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x3e9cf7(0x1115)}],'options':{'excludedOperators':['$ne']}}]},_0x2f343c['sectionColor']=_0x3e9cf7(0x7b5),_0x2f343c[_0x3e9cf7(0x1a34)]=_0x162d54,_0x2f343c[_0x3e9cf7(0x829)]=_0x1e17ec,_0x2f343c[_0x3e9cf7(0x8e1)]=_0xa06a57,_0x2f343c['showChatInteraction']=_0x5be95d,_0x2f343c[_0x3e9cf7(0xd89)]=_0x17df49,_0x2f343c['disposeInteraction']=_0x16fc97,_0x2f343c[_0x3e9cf7(0x2929)]=_0x322433,_0x2f343c[_0x3e9cf7(0x11e5)]=_0x5922b3,_0x2f343c['getChatWebsiteLabel']=_0x16f490,_0x2f343c[_0x3e9cf7(0x17c3)]=_0x3fc2d5,_0x2f343c[_0x3e9cf7(0x28a8)]=_0x1b2109,_0x2f343c[_0x3e9cf7(0x1ede)]=_0x8da2f4;function _0x162d54(_0xef5025,_0x315702){const _0x3f85e7=_0x3e9cf7;return _0x2f343c[_0x3f85e7(0x8a5)]=_0xef5025,_0x2f343c['setting']=_0x315702,_0x58f885[_0x3f85e7(0xebe)][_0x3f85e7(0xbf7)+_0x39641b()[_0x3f85e7(0x277)](_0x3f85e7(0x1c4a))]({'id':_0x2f343c[_0x3f85e7(0xebe)]['id'],'nolimit':!![]})['$promise'][_0x3f85e7(0x1cb0)](function(_0x231143){const _0x34838e=_0x3f85e7;return _0x2f343c['chatAccounts']=_0x231143||{'count':0x0,'rows':[]},_0x58f885[_0x34838e(0x22b1)][_0x34838e(0xbf7)]()['$promise'];})['then'](function(_0x5e63aa){_0x2f343c['tags']=_0x5e63aa||{'count':0x0,'rows':[]};})[_0x3f85e7(0x1cb0)](function(){const _0x64b5a7=_0x3f85e7;_0x2f343c[_0x64b5a7(0x789)]=_0x40597a();})[_0x3f85e7(0x1c4)](function(_0x184bc6){console['error'](_0x184bc6);})[_0x3f85e7(0x2e0)](function(){const _0x3ff5e0=_0x3f85e7;let _0x2adba3=_0x413aa8[_0x3ff5e0(0x1b83)][_0x3ff5e0(0x2091)](_0x3ff5e0(0x37e)+_0x2f343c['user']['id']);if(_0x2adba3)try{_0x2adba3=JSON[_0x3ff5e0(0xefe)](_0x2adba3);if(_0x2adba3['query']){_0x2f343c['query']=_0x39641b()[_0x3ff5e0(0x9c1)](_0x2f343c[_0x3ff5e0(0xae2)],_0x2adba3[_0x3ff5e0(0xae2)]);if(_0x39641b()[_0x3ff5e0(0xce9)](_0x2f343c[_0x3ff5e0(0x1ad1)][_0x3ff5e0(0x2214)]))_0x2f343c[_0x3ff5e0(0xae2)][_0x3ff5e0(0x67c)]=[];else _0x39641b()[_0x3ff5e0(0xce9)](_0x2f343c[_0x3ff5e0(0xae2)][_0x3ff5e0(0x67c)])&&(_0x2f343c['query'][_0x3ff5e0(0x67c)]=_0x39641b()(_0x2f343c[_0x3ff5e0(0x1ad1)][_0x3ff5e0(0x2214)])['map']('id')[_0x3ff5e0(0x54f)]()[_0x3ff5e0(0x327)]());_0x2f343c['query']['sort']&&_0x2f343c['query'][_0x3ff5e0(0x1381)][_0x3ff5e0(0xd8a)](_0x3ff5e0(0x15d6))>=0x0&&(_0x2f343c[_0x3ff5e0(0xae2)]=_0x39641b()[_0x3ff5e0(0x1bd8)](_0x2f343c[_0x3ff5e0(0xae2)],_0x3ff5e0(0x1381))),_0x2f343c['query'][_0x3ff5e0(0x11f0)]=!![],_0x2f343c['isSearchBarVisible']=_0x2f343c['query']['filter']?!![]:![];}}catch(_0x5f316e){console[_0x3ff5e0(0x218e)](_0x5f316e);}else{const _0x34271f={'$gte':_0x543b5a()()[_0x3ff5e0(0x1be0)]('month')['utcOffset'](0x0,!![])[_0x3ff5e0(0x1f31)](),'$lte':_0x543b5a()()[_0x3ff5e0(0x1b4)](_0x3ff5e0(0x26ae))[_0x3ff5e0(0x17d9)](0x0,!![])[_0x3ff5e0(0x1f31)]()},_0x329e1c={'ChatWebsiteId':_0x39641b()[_0x3ff5e0(0x1de2)](_0x2f343c[_0x3ff5e0(0x1ad1)][_0x3ff5e0(0x2214)],'id'),'createdAt':_0x34271f};_0x2f343c[_0x3ff5e0(0xae2)]=_0x39641b()[_0x3ff5e0(0x9c1)](_0x2f343c['query'],_0x329e1c);}_0x326299['on'](_0x3ff5e0(0x14b6),_0x509ca4),_0x326299['on'](_0x3ff5e0(0x300),_0x509ca4),_0x326299['on'](_0x3ff5e0(0x21fc),_0x4fe57a),_0x326299['on']('chatMessage:save',_0x2b3c5b),_0x326299['on']('chatMessage:update',_0x2b3c5b),_0x326299['on'](_0x3ff5e0(0x192d),_0x3ee570),_0x326299['on'](_0x3ff5e0(0x30f),_0x2e4aa4),_0xa06a57(_0x2f343c['query'][_0x3ff5e0(0x1c7b)]);});}function _0x40597a(){const _0x408aa6=_0x3e9cf7;return[{'name':_0x408aa6(0x68d),'key':_0x408aa6(0x24cb),'type':_0x408aa6(0x18ec),'label':_0x408aa6(0xf5e)},{'name':_0x408aa6(0x223c),'key':_0x408aa6(0xfc1),'type':_0x408aa6(0x220f),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x408aa6(0x27a4)},{'value':null,'translate':_0x408aa6(0x2706)}]},{'name':_0x408aa6(0x938),'key':_0x408aa6(0x22aa),'type':'select','label':_0x408aa6(0x24b6),'customOptions':[{'value':0x0,'translate':_0x408aa6(0x1bbd)},{'value':0x1,'translate':_0x408aa6(0x191b)},{'value':null,'translate':_0x408aa6(0x2706)}]},{'name':_0x408aa6(0x11aa),'key':_0x408aa6(0x67c),'type':_0x408aa6(0x1d50),'label':_0x408aa6(0xf86),'options':_0x2f343c['chatAccounts']['rows'],'clearAll':![]},{'name':_0x408aa6(0x30e),'key':_0x408aa6(0x21ab),'type':'select','label':_0x408aa6(0x7bb),'customOptions':[{'value':_0x2f343c[_0x408aa6(0xebe)]['id'],'translate':_0x408aa6(0x1ea6)},{'value':_0x408aa6(0xd38),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x408aa6(0xf2d),'key':_0x408aa6(0x22b1),'type':_0x408aa6(0x1d50),'label':_0x408aa6(0x3c3),'options':_0x2f343c[_0x408aa6(0xfbf)]['rows'],'placeholder':_0x408aa6(0x62b)}];}function _0x1e17ec(_0x15f140){const _0x4a8c8f=_0x3e9cf7;_0x2f343c[_0x4a8c8f(0x16cb)]=![],_0x2f343c[_0x4a8c8f(0x9d0)]=_0x15f140||{'count':0x0,'rows':[]};for(let _0x17baec=0x0;_0x17baec<_0x2f343c[_0x4a8c8f(0x9d0)][_0x4a8c8f(0x2214)][_0x4a8c8f(0xfd0)];_0x17baec+=0x1){_0x322433(_0x2f343c[_0x4a8c8f(0x9d0)][_0x4a8c8f(0x2214)][_0x17baec]);}}function _0xa06a57(_0x4db764){const _0x3ab80a=_0x3e9cf7;_0x2f343c[_0x3ab80a(0x16cb)]=!![];!_0x4db764&&(_0x2f343c['query'][_0x3ab80a(0x1c7b)]=0x1);_0x2f343c[_0x3ab80a(0xae2)][_0x3ab80a(0x184b)]=(_0x2f343c['query'][_0x3ab80a(0x1c7b)]-0x1)*_0x2f343c[_0x3ab80a(0xae2)][_0x3ab80a(0x236)];let _0x1c9d3d=_0x413aa8[_0x3ab80a(0x1b83)][_0x3ab80a(0x2091)](_0x3ab80a(0x37e)+_0x2f343c['user']['id']);_0x1c9d3d=_0x1c9d3d?JSON[_0x3ab80a(0xefe)](_0x1c9d3d):{},_0x1c9d3d[_0x3ab80a(0xae2)]=_0x2f343c[_0x3ab80a(0xae2)],_0x413aa8[_0x3ab80a(0x1b83)]['setItem']('motion2.home.chat:'+_0x2f343c[_0x3ab80a(0xebe)]['id'],JSON[_0x3ab80a(0x2701)](_0x1c9d3d)),_0x2f343c[_0x3ab80a(0x2061)]=_0x58f885[_0x3ab80a(0x115b)][_0x3ab80a(0xbf7)](_0x2f343c[_0x3ab80a(0xae2)],_0x1e17ec)[_0x3ab80a(0x1d77)];}function _0x5be95d(_0x40ac1c,_0x213ff2){const _0x25c090=_0x3e9cf7;_0x510ca0[_0x25c090(0x17bc)]['vm'][_0x25c090(0x11d9)](_0x25c090(0x174c),_0x213ff2);}function _0x17df49(_0x2cbdd7,_0x683b87,_0xc14a15){const _0x16dba1=_0x3e9cf7;_0x58f885[_0x16dba1(0x115b)][_0x16dba1(0x26ec)]({'id':_0x683b87['id'],'attachments':_0xc14a15})[_0x16dba1(0x1d77)][_0x16dba1(0x1cb0)](function(_0x5a9055){const _0x26a81e=_0x16dba1,_0x3ea4f3=[_0x5a9055['buffer']],_0x4f8e4f='chat-interaction'+_0x683b87['id']+'.zip',_0x409f85=new Blob(_0x3ea4f3,{'type':_0x5a9055[_0x26a81e(0x66a)]}),_0x1f617f=window['document'][_0x26a81e(0x8c6)]('a');_0x1f617f[_0x26a81e(0x23b9)]('href',URL['createObjectURL'](_0x409f85)),_0x1f617f[_0x26a81e(0x23b9)](_0x26a81e(0x26ec),_0x4f8e4f),document[_0x26a81e(0x1ed9)][_0x26a81e(0x23de)](_0x1f617f),_0x1f617f[_0x26a81e(0x20b8)]();})['catch'](function(_0x364ddb){const _0x1d9a3c=_0x16dba1;if(_0x364ddb[_0x1d9a3c(0x25c)]&&_0x364ddb[_0x1d9a3c(0x25c)][_0x1d9a3c(0x1a7c)]&&_0x364ddb[_0x1d9a3c(0x25c)][_0x1d9a3c(0x1a7c)][_0x1d9a3c(0xfd0)])for(let _0x4516c6=0x0;_0x4516c6<_0x364ddb[_0x1d9a3c(0x25c)][_0x1d9a3c(0x1a7c)][_0x1d9a3c(0xfd0)];_0x4516c6+=0x1){_0x2a5aea[_0x1d9a3c(0x218e)]({'title':_0x364ddb['data']['errors'][_0x4516c6][_0x1d9a3c(0x66a)],'msg':_0x364ddb[_0x1d9a3c(0x25c)][_0x1d9a3c(0x1a7c)][_0x4516c6][_0x1d9a3c(0x155e)]});}else _0x2a5aea[_0x1d9a3c(0x218e)]({'title':_0x364ddb[_0x1d9a3c(0x291)]?_0x1d9a3c(0xeb9)+_0x364ddb[_0x1d9a3c(0x291)]+_0x1d9a3c(0x1657)+_0x364ddb[_0x1d9a3c(0xc22)]:_0x1d9a3c(0xd89),'msg':_0x364ddb[_0x1d9a3c(0x25c)]?JSON[_0x1d9a3c(0x2701)](_0x364ddb['data'][_0x1d9a3c(0x155e)]):_0x364ddb[_0x1d9a3c(0x147f)]()});});}function _0x16fc97(_0x58cf40,_0x7b513a){const _0xd18c12=_0x3e9cf7,_0x18d578=_0x2f343c[_0xd18c12(0xebe)][_0xd18c12(0x2478)]||_0x2f343c[_0xd18c12(0xebe)][_0xd18c12(0xf0c)]||_0x2f343c['user']['mailPause']||_0x2f343c[_0xd18c12(0xebe)]['openchannelPause']||_0x2f343c[_0xd18c12(0xebe)]['faxPause'],_0xc60a60=!_0x7b513a[_0xd18c12(0x1649)]['mandatoryDisposition'];_0x429c90[_0xd18c12(0xe27)]({'controller':_0xd18c12(0x209d),'controllerAs':'vm','templateUrl':_0x3769c1,'parent':angular[_0xd18c12(0x1853)](_0x138a81['body']),'clickOutsideToClose':_0xc60a60,'escapeToClose':_0xc60a60,'onRemoving':function(){const _0x125fdf=_0xd18c12;_0x2f343c['user']&&_0x7b513a['Account']['mandatoryDisposition']&&!_0x18d578&&_0x58f885[_0x125fdf(0xebe)][_0x125fdf(0xf5d)]({'id':_0x2f343c[_0x125fdf(0xebe)]['id']})[_0x125fdf(0x1d77)][_0x125fdf(0x1c4)](function(_0x34c762){const _0x3e2877=_0x125fdf;console[_0x3e2877(0x218e)](_0x34c762);});},'locals':{'user':_0x2f343c['user'],'channel':'chat','interaction':_0x7b513a}});}function _0x322433(_0x502a37){const _0x347838=_0x3e9cf7;_0x502a37[_0x347838(0x1325)]===_0x347838(0x2087)&&(_0x502a37[_0x347838(0x1325)]=_0x1da458['instant'](_0x347838(0x2b9)));}function _0x5922b3(_0x448fd5){const _0x1137af=_0x3e9cf7;if(_0x448fd5[_0x1137af(0x21ab)])return _0x448fd5['UserId']===_0x2f343c[_0x1137af(0xebe)]['id']?_0x1da458[_0x1137af(0x25cc)](_0x1137af(0x1ea6)):_0x448fd5[_0x1137af(0x135d)][_0x1137af(0x1d14)]+'\x20<'+_0x448fd5[_0x1137af(0x135d)]['internal']+'>';return _0x1da458[_0x1137af(0x25cc)](_0x1137af(0x68f));}function _0x16f490(_0x3fd2bf){const _0xe1895d=_0x3e9cf7;if(_0x3fd2bf[_0xe1895d(0x1649)])return _0x3fd2bf['Account']['key'];return _0x1da458['instant'](_0xe1895d(0x2b9));}function _0x3ee570(_0x303329){const _0x4bba0f=_0x3e9cf7;let _0x4c7d42;const _0x433034=_0x39641b()[_0x4bba0f(0x13b4)](_0x2f343c[_0x4bba0f(0x9d0)][_0x4bba0f(0x2214)],{'id':_0x303329['ChatInteractionId']});_0x433034&&_0x433034[_0x4bba0f(0x2653)]&&(_0x4c7d42=_0x39641b()[_0x4bba0f(0x13b4)](_0x433034[_0x4bba0f(0x2653)],{'id':_0x303329[_0x4bba0f(0x21ab)]}),!_0x4c7d42&&_0x433034['Users'][_0x4bba0f(0x2785)]({'id':_0x303329[_0x4bba0f(0x21ab)]}));}function _0x2e4aa4(_0x5bb550){const _0x3ff952=_0x3e9cf7,_0x442d02=_0x39641b()[_0x3ff952(0x13b4)](_0x2f343c[_0x3ff952(0x9d0)][_0x3ff952(0x2214)],{'id':_0x5bb550['ChatInteractionId']});_0x442d02&&_0x442d02[_0x3ff952(0x2653)]&&_0x39641b()[_0x3ff952(0x152a)](_0x442d02[_0x3ff952(0x2653)],{'id':_0x5bb550[_0x3ff952(0x21ab)]});}function _0x509ca4(_0x534e0d){const _0x1f65af=_0x3e9cf7;if(_0x534e0d){const _0x72e541=_0x39641b()[_0x1f65af(0x13b4)](_0x2f343c[_0x1f65af(0x9d0)][_0x1f65af(0x2214)],{'id':_0x534e0d['id']});if(_0x72e541){_0x72e541[_0x1f65af(0x2653)]=[];_0x534e0d['closed']&&(_0x72e541[_0x1f65af(0x1554)]=0x0);if(_0x2f343c[_0x1f65af(0xae2)]['sort']){const _0x39a3a9=_0x39641b()[_0x1f65af(0x1f2c)](_0x2f343c[_0x1f65af(0xae2)][_0x1f65af(0x1381)],'-')?_0x1f65af(0x20a5):_0x1f65af(0x24cc);_0x2f343c[_0x1f65af(0x9d0)][_0x1f65af(0x2214)]=_0x39641b()[_0x1f65af(0x17ca)](_0x2f343c[_0x1f65af(0x9d0)][_0x1f65af(0x2214)],_0x39641b()[_0x1f65af(0x359)](_0x2f343c[_0x1f65af(0xae2)][_0x1f65af(0x1381)],'-'),_0x39a3a9);}_0x39641b()[_0x1f65af(0x9c1)](_0x72e541,_0x39641b()[_0x1f65af(0x169b)](_0x534e0d,_0x39641b()[_0x1f65af(0x1be5)](_0x72e541)));}else _0xa06a57(_0x2f343c['query'][_0x1f65af(0x1c7b)]);}}function _0x4fe57a(_0x2ebafa){const _0x49775b=_0x3e9cf7;if(_0x2ebafa){const _0x184d5d=_0x39641b()[_0x49775b(0x13b4)](_0x2f343c[_0x49775b(0x9d0)][_0x49775b(0x2214)],{'id':_0x2ebafa['id']});_0x184d5d&&(_0x184d5d[_0x49775b(0x190)]=_0x2ebafa[_0x49775b(0xfbf)]||[],_0x39641b()['merge'](_0x184d5d,_0x39641b()['pick'](_0x2ebafa,_0x39641b()['keys'](_0x184d5d))));}}function _0x2b3c5b(_0x2a0cbf){const _0x114b00=_0x3e9cf7;if(_0x2a0cbf&&!_0x2a0cbf[_0x114b00(0x1105)]){const _0x5391a2=_0x39641b()[_0x114b00(0x13b4)](_0x2f343c[_0x114b00(0x9d0)][_0x114b00(0x2214)],{'id':_0x2a0cbf[_0x114b00(0x2209)]});if(_0x5391a2){const _0x706e7b=_0x39641b()[_0x114b00(0x13b4)](_0x5391a2[_0x114b00(0x223c)],{'id':_0x2a0cbf['id']});_0x706e7b?_0x39641b()[_0x114b00(0x9c1)](_0x706e7b,_0x39641b()[_0x114b00(0x169b)](_0x2a0cbf,_0x39641b()[_0x114b00(0x1be5)](_0x706e7b))):(_0x39641b()[_0x114b00(0x958)](_0x5391a2[_0x114b00(0x223c)])&&(_0x5391a2[_0x114b00(0x223c)]={'count':0x0}),!_0x2a0cbf[_0x114b00(0xfc1)]&&(_0x5391a2['Messages'][_0x114b00(0x184d)]+=0x1));}}}function _0x3fc2d5(){const _0x1cb00b=_0x3e9cf7;_0x2f343c[_0x1cb00b(0x1e6c)]=![];}function _0x1b2109(){const _0x431c7f=_0x3e9cf7;_0x2f343c[_0x431c7f(0x1e6c)]=!![];}function _0x8da2f4(){const _0x150b98=_0x3e9cf7;_0x2f343c[_0x150b98(0x1e6c)]=![],_0x429c90[_0x150b98(0xe27)]({'controller':_0x150b98(0x15f7),'controllerAs':'vm','templateUrl':_0x3530d6,'parent':angular[_0x150b98(0x1853)](_0x138a81[_0x150b98(0x1ed9)]),'clickOutsideToClose':![],'locals':{'color':_0x2f343c[_0x150b98(0xaee)],'fields':_0x2f343c[_0x150b98(0x16ad)][_0x150b98(0x355)],'storagePath':'home.chat'},'fullscreen':!![]})['then'](function(_0x4f7ca8){const _0x11cc14=_0x150b98;_0x2f343c[_0x11cc14(0xae2)]['search']=_0x4f7ca8===![]?undefined:_0x4f7ca8;if(_0x2f343c[_0x11cc14(0xae2)][_0x11cc14(0x24be)]||_0x4f7ca8===![])_0xa06a57();})[_0x150b98(0x1c4)](function(_0x55deca){const _0x246753=_0x150b98;_0x2a5aea['error']({'title':_0x246753(0x2260),'msg':_0x55deca[_0x246753(0x25c)]?JSON['stringify'](_0x55deca[_0x246753(0x25c)][_0x246753(0x155e)]):_0x55deca['toString']()});});}let _0x5877a4=!![],_0xe8caee=0x1;_0x510ca0[_0x3e9cf7(0x614)]('vm.query.filter',function(_0x1d0cd1,_0x49273a){const _0x2f598c=_0x3e9cf7;_0x5877a4?_0x21cc72(function(){_0x5877a4=![];}):(!_0x49273a&&(_0xe8caee=_0x2f343c['query'][_0x2f598c(0x1c7b)]),_0x1d0cd1!==_0x49273a&&(_0x2f343c[_0x2f598c(0xae2)][_0x2f598c(0x1c7b)]=0x1),!_0x1d0cd1&&(_0x2f343c[_0x2f598c(0xae2)]['page']=_0xe8caee),_0xa06a57(_0x2f343c[_0x2f598c(0xae2)][_0x2f598c(0x1c7b)]));}),_0x510ca0[_0x3e9cf7(0x1d6)](_0x3e9cf7(0x291c),function(){const _0x2b3acf=_0x3e9cf7;_0x326299[_0x2b3acf(0xfb8)](_0x2b3acf(0x20f0)),_0x326299[_0x2b3acf(0xfb8)](_0x2b3acf(0xc96)),_0x326299[_0x2b3acf(0xfb8)](_0x2b3acf(0x14b6)),_0x326299[_0x2b3acf(0xfb8)](_0x2b3acf(0x21fc)),_0x326299[_0x2b3acf(0xfb8)]('chatInteraction:update'),_0x326299['removeAllListeners'](_0x2b3acf(0x192d)),_0x326299[_0x2b3acf(0xfb8)](_0x2b3acf(0x30f));});}const _0x15b912=_0x432da2;;_0x1a0eb2[_0x5537c6(0x15b6)]=[_0x5537c6(0x22bf),_0x5537c6(0x1463),'$timeout','$mdDialog',_0x5537c6(0x1f10),_0x5537c6(0x1774),_0x5537c6(0x142b),_0x5537c6(0x9bf)];function _0x1a0eb2(_0x264329,_0x267b54,_0x4b1b52,_0x5cfc33,_0x5f170f,_0x4cae7b,_0x4a6eaa,_0x4b55fa){const _0x43cbcb=_0x5537c6,_0x5b5f6a=this;_0x5b5f6a['currentUser']=_0x4cae7b[_0x43cbcb(0x21e8)](),_0x5b5f6a[_0x43cbcb(0x1046)]={},_0x5b5f6a['contacts']={'count':0x0,'rows':[]},_0x5b5f6a[_0x43cbcb(0xfbf)]={'count':0x0,'rows':[]},_0x5b5f6a['query']={'includeAll':!![],'sort':_0x43cbcb(0x282),'limit':0xa,'page':0x1},_0x5b5f6a[_0x43cbcb(0x16ad)]={'fields':[]},_0x5b5f6a[_0x43cbcb(0xaee)]=_0x43cbcb(0x1a72),_0x5b5f6a[_0x43cbcb(0x1586)]=_0x236b8c,_0x5b5f6a[_0x43cbcb(0x752)]=_0x2ee3b3,_0x5b5f6a[_0x43cbcb(0x1ecc)]=_0xd90457,_0x5b5f6a[_0x43cbcb(0x211a)]=_0x50bdc1,_0x5b5f6a[_0x43cbcb(0x122c)]=_0x1dc6f6,_0x5b5f6a['call']=_0x267b54[_0x43cbcb(0x17bc)]['vm'][_0x43cbcb(0x205d)],_0x5b5f6a['onInit']=_0x122bc0,_0x5b5f6a[_0x43cbcb(0x17c3)]=_0x52f5ba,_0x5b5f6a[_0x43cbcb(0x28a8)]=_0x23813c,_0x5b5f6a[_0x43cbcb(0x1ede)]=_0x24aaef;function _0x122bc0(){const _0x350db3=_0x43cbcb;_0x4a6eaa[_0x350db3(0xebe)]['getLists']({'id':_0x5b5f6a[_0x350db3(0xe76)]['id'],'fields':'id,name,dialPrefix','sort':_0x350db3(0x16b6),'nolimit':!![]})['$promise']['then'](function(_0x11598c){const _0x4886bf=_0x350db3;return _0x5b5f6a['lists']=_0x11598c||{'count':0x0,'rows':[]},_0x5b5f6a['listsMap']=_0x39641b()[_0x4886bf(0x2631)](_0x5b5f6a[_0x4886bf(0x1046)]['rows'],'id'),_0x4a6eaa[_0x4886bf(0x22b1)][_0x4886bf(0xbf7)]()[_0x4886bf(0x1d77)];})[_0x350db3(0x1cb0)](function(_0x265ae5){const _0xc44a09=_0x350db3;_0x5b5f6a[_0xc44a09(0xfbf)]=_0x265ae5||{'count':0x0,'rows':[]};})[_0x350db3(0x1cb0)](function(){_0x5b5f6a['quickFilters']=_0x31bca6();})[_0x350db3(0x1c4)](function(_0x53800c){const _0x5e966f=_0x350db3;console[_0x5e966f(0x218e)](_0x53800c);})['finally'](function(){const _0x44fca1=_0x350db3;let _0x407d93=_0x5f170f[_0x44fca1(0x1b83)]['getItem'](_0x44fca1(0x1d3e)+_0x5b5f6a[_0x44fca1(0xe76)]['id']);if(_0x407d93)try{_0x407d93=JSON[_0x44fca1(0xefe)](_0x407d93);if(_0x407d93['query']){_0x5b5f6a[_0x44fca1(0xae2)]=_0x39641b()[_0x44fca1(0x9c1)](_0x5b5f6a[_0x44fca1(0xae2)],_0x407d93[_0x44fca1(0xae2)]);if(_0x39641b()[_0x44fca1(0xce9)](_0x5b5f6a[_0x44fca1(0x1046)][_0x44fca1(0x2214)]))_0x5b5f6a['query']['ListId']=[];else _0x39641b()[_0x44fca1(0xce9)](_0x5b5f6a['query']['ListId'])&&(_0x5b5f6a[_0x44fca1(0xae2)][_0x44fca1(0x20a6)]=_0x39641b()(_0x5b5f6a[_0x44fca1(0x1046)]['rows'])[_0x44fca1(0x1de2)]('id')[_0x44fca1(0x54f)]()[_0x44fca1(0x327)]());}}catch(_0xae5f26){console[_0x44fca1(0x1b4f)](_0xae5f26);}else _0x5b5f6a[_0x44fca1(0xae2)][_0x44fca1(0x20a6)]=_0x39641b()['map'](_0x5b5f6a[_0x44fca1(0x1046)]['rows'],'id');_0x5b5f6a[_0x44fca1(0x1e6c)]=_0x5b5f6a[_0x44fca1(0xae2)][_0x44fca1(0x1c99)]?!![]:![],_0x236b8c();});}function _0x31bca6(){const _0xa61acd=_0x43cbcb;return[{'name':_0xa61acd(0x23b0),'key':_0xa61acd(0x20a6),'type':_0xa61acd(0x1d50),'label':'CONTACTMANAGER.SELECT_LIST','options':_0x5b5f6a[_0xa61acd(0x1046)][_0xa61acd(0x2214)],'clearAll':![]},{'name':_0xa61acd(0xf2d),'key':_0xa61acd(0x22b1),'type':'multiselect','label':_0xa61acd(0x3c3),'options':_0x5b5f6a[_0xa61acd(0xfbf)]['rows'],'placeholder':_0xa61acd(0x62b)}];}function _0xc1a930(_0x329f0a){const _0x13f077=_0x43cbcb;_0x5b5f6a['searchInProgress']=![],_0x5b5f6a[_0x13f077(0x7eb)]=_0x329f0a||{'count':0x0,'rows':[]};}function _0x236b8c(_0x1a68e1){const _0x1cbe79=_0x43cbcb;_0x5b5f6a[_0x1cbe79(0x16cb)]=!![],_0x1e75e0();!_0x1a68e1&&(_0x5b5f6a[_0x1cbe79(0xae2)][_0x1cbe79(0x1c7b)]=0x1);_0x5b5f6a[_0x1cbe79(0xae2)]['offset']=(_0x5b5f6a['query'][_0x1cbe79(0x1c7b)]-0x1)*_0x5b5f6a[_0x1cbe79(0xae2)][_0x1cbe79(0x236)];let _0x4378f8=_0x5f170f['localStorage'][_0x1cbe79(0x2091)](_0x1cbe79(0x1d3e)+_0x5b5f6a[_0x1cbe79(0xe76)]['id']);_0x4378f8=_0x4378f8?JSON[_0x1cbe79(0xefe)](_0x4378f8):{},_0x4378f8[_0x1cbe79(0xae2)]=_0x5b5f6a[_0x1cbe79(0xae2)],_0x5f170f[_0x1cbe79(0x1b83)][_0x1cbe79(0x13a8)](_0x1cbe79(0x1d3e)+_0x5b5f6a['currentUser']['id'],JSON[_0x1cbe79(0x2701)](_0x4378f8)),_0x5b5f6a[_0x1cbe79(0x2061)]=_0x4a6eaa[_0x1cbe79(0xbe7)][_0x1cbe79(0xbf7)](_0x5b5f6a[_0x1cbe79(0xae2)],_0xc1a930)[_0x1cbe79(0x1d77)];}function _0x1dc6f6(_0x1e158a){const _0x4e9500=_0x43cbcb;return _0x4a6eaa[_0x4e9500(0xbe7)][_0x4e9500(0xbf7)]({'id':_0x1e158a})[_0x4e9500(0x1d77)][_0x4e9500(0x1cb0)](function(_0x19aafc){const _0x185437=_0x4e9500;_0x267b54[_0x185437(0x17bc)]['vm']['addContactTab'](_0x19aafc);});}function _0x2ee3b3(){_0x236b8c();}function _0x50bdc1(_0x1d88a7,_0x1ec466){const _0x3ec2b5=_0x43cbcb;_0x5cfc33['show']({'controller':_0x3ec2b5(0xc73),'controllerAs':'vm','templateUrl':_0x4e0982,'parent':angular[_0x3ec2b5(0x1853)](_0x264329[_0x3ec2b5(0x1ed9)]),'targetEvent':_0x1d88a7,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function(_0x574c44){const _0x51364e=_0x3ec2b5;return _0x574c44[_0x51364e(0x19a3)](_0x51364e(0x1095),{'id':_0x1ec466['id']});}],'lists':['apiResolver',function(_0x194353){const _0x33d009=_0x3ec2b5;return _0x194353['resolve'](_0x33d009(0xbcf),{'id':_0x5b5f6a[_0x33d009(0xe76)]['id'],'fields':_0x33d009(0x43c)});}]},'locals':{'contacts':_0x5b5f6a['contacts'][_0x3ec2b5(0x2214)]}});}function _0xd90457(_0x23543c,_0x5b4749){const _0x297e67=_0x43cbcb;_0x5cfc33[_0x297e67(0xe27)]({'controller':_0x297e67(0x219f),'controllerAs':'vm','templateUrl':_0x860e6c,'parent':angular[_0x297e67(0x1853)](_0x264329[_0x297e67(0x1ed9)]),'targetEvent':_0x23543c,'clickOutsideToClose':!![],'resolve':{'contact':[_0x297e67(0x1e0b),function(_0x5ebe20){const _0x35e036=_0x297e67;return _0x5ebe20['resolve'](_0x35e036(0x1095),{'id':_0x5b4749['id']});}],'lists':[_0x297e67(0x1e0b),function(_0x2c7652){const _0xf21ef4=_0x297e67;return _0x2c7652[_0xf21ef4(0x19a3)](_0xf21ef4(0xbcf),{'id':_0x5b5f6a[_0xf21ef4(0xe76)]['id'],'fields':_0xf21ef4(0x43c)});}]},'locals':{'contacts':_0x5b5f6a[_0x297e67(0x7eb)][_0x297e67(0x2214)]}});}function _0x52f5ba(){const _0x2c55e5=_0x43cbcb;_0x5b5f6a[_0x2c55e5(0x1e6c)]=![];}function _0x23813c(){const _0xe3b8d0=_0x43cbcb;_0x5b5f6a[_0xe3b8d0(0x1e6c)]=!![];}function _0x1e75e0(){const _0x5bae5c=_0x43cbcb;return _0x4a6eaa[_0x5bae5c(0xbe7)][_0x5bae5c(0x1e57)]({'id':_0x5b5f6a[_0x5bae5c(0xae2)][_0x5bae5c(0x20a6)]})[_0x5bae5c(0x1d77)][_0x5bae5c(0x1cb0)](function(_0x4c53a4){const _0x2e772b=_0x5bae5c;return _0x39641b()(_0x4c53a4[_0x2e772b(0x19b2)]())[_0x2e772b(0x1bd8)]('UserId')['values']()['map'](function(_0x29a3c7){return _0x157c6e(_0x29a3c7);})[_0x2e772b(0x327)]();})[_0x5bae5c(0x1cb0)](function(_0x5812d6){const _0x5e8968=_0x5bae5c;_0x5b5f6a['advancedSearch'][_0x5e8968(0x355)]=_0x5812d6;const _0x8a9597={'name':'Tags','column':_0x5e8968(0xf2d),'type':'multiselect','options':{'route':{'model':_0x5e8968(0x22b1),'action':_0x5e8968(0xbf7),'params':{'nolimit':!![]}},'excludedOperators':[_0x5e8968(0x62d)]}};let _0x446f24=_0x39641b()[_0x5e8968(0x3c2)](_0x5812d6,function(_0x544549){const _0x2f4804=_0x5e8968;return _0x39641b()[_0x2f4804(0x1f2c)](_0x544549['column'],'cf_');})||_0x5812d6[_0x5e8968(0xfd0)]-0x1;if(_0x446f24<0x0)_0x446f24=_0x5812d6[_0x5e8968(0xfd0)];_0x5b5f6a[_0x5e8968(0x16ad)][_0x5e8968(0x355)][_0x5e8968(0x159c)](_0x446f24,0x0,_0x8a9597);})['catch'](function(_0x98fcd2){const _0x4b6879=_0x5bae5c;_0x4b55fa['error']({'title':_0x98fcd2['status']?_0x4b6879(0xeb9)+_0x98fcd2['status']+'\x20-\x20'+_0x98fcd2[_0x4b6879(0xc22)]:_0x4b6879(0x2795),'msg':_0x98fcd2[_0x4b6879(0x25c)]?JSON[_0x4b6879(0x2701)](_0x98fcd2[_0x4b6879(0x25c)][_0x4b6879(0x155e)]):_0x98fcd2['toString']()});});}function _0x157c6e(_0x54bb85){const _0xc565e5=_0x43cbcb,_0x2353e2={'name':_0x39641b()[_0xc565e5(0xa75)](_0x54bb85[_0xc565e5(0x254b)]),'column':_0x54bb85['columnName'],'options':{}};if(_0x54bb85[_0xc565e5(0x197c)])switch(_0x54bb85[_0xc565e5(0x197c)][_0xc565e5(0x66a)]){case _0xc565e5(0x19d3):_0x2353e2[_0xc565e5(0x66a)]=_0xc565e5(0x19d3);break;case _0xc565e5(0x220f):_0x2353e2[_0xc565e5(0x66a)]='multiselect',_0x2353e2['values']=_0x39641b()[_0xc565e5(0x1de2)](JSON[_0xc565e5(0xefe)](_0x54bb85['custom'][_0xc565e5(0x27aa)]),function(_0x17b348,_0x3e16e5){const _0x5b1022=_0xc565e5;return{'id':_0x3e16e5,'name':_0x17b348[_0x5b1022(0x327)],'value':_0x17b348['value']};}),_0x2353e2[_0xc565e5(0x2224)][_0xc565e5(0x2198)]='name';break;case _0xc565e5(0x1f0e):_0x2353e2[_0xc565e5(0x66a)]=_0xc565e5(0x220f),_0x2353e2[_0xc565e5(0x27aa)]=[{'id':0x1,'translate':'DASHBOARDS.ENABLED'},{'id':0x0,'translate':_0xc565e5(0x2430)}],_0x2353e2[_0xc565e5(0x2224)]['excludedOperators']=[_0xc565e5(0x15ce)];break;case _0xc565e5(0x83d):_0x2353e2['type']='number';break;case'datetime':_0x2353e2['type']=_0xc565e5(0x18ec);break;}else switch(_0x54bb85[_0xc565e5(0x34f)]){case _0xc565e5(0xdda):_0x2353e2[_0xc565e5(0x66a)]=_0xc565e5(0x18ec);break;case _0xc565e5(0x27ac):_0x2353e2[_0xc565e5(0x16b6)]='Company',_0x2353e2[_0xc565e5(0x66a)]=_0xc565e5(0x19e0),_0x2353e2[_0xc565e5(0x2224)][_0xc565e5(0x15d0)]={'model':_0xc565e5(0x107a),'action':_0xc565e5(0xbf7),'params':{'fields':_0xc565e5(0x43c),'nolimit':!![]}},_0x2353e2[_0xc565e5(0x2224)][_0xc565e5(0x256c)]=[_0xc565e5(0x16b6)],_0x2353e2[_0xc565e5(0x2224)][_0xc565e5(0x9db)]=['$ne'];break;case'ListId':_0x2353e2[_0xc565e5(0x16b6)]=_0xc565e5(0x23b0),_0x2353e2[_0xc565e5(0x66a)]=_0xc565e5(0x19e0),_0x2353e2[_0xc565e5(0x2224)][_0xc565e5(0x15d0)]={'model':_0xc565e5(0xebe),'action':_0xc565e5(0x1fa7),'params':{'id':_0x5b5f6a[_0xc565e5(0xe76)]['id'],'fields':'id,name','nolimit':!![]}},_0x2353e2['options']['searchFields']=[_0xc565e5(0x16b6)],_0x2353e2[_0xc565e5(0x2224)]['excludedOperators']=['$ne'];break;default:if(_0x39641b()[_0xc565e5(0x250a)](_0x54bb85[_0xc565e5(0x66a)][_0xc565e5(0x1680)](),'int'))_0x2353e2[_0xc565e5(0x66a)]='number';else _0x39641b()[_0xc565e5(0x250a)](_0x54bb85[_0xc565e5(0x66a)]['toLowerCase'](),_0xc565e5(0x18ec))?_0x2353e2['type']=_0xc565e5(0x18ec):_0x2353e2[_0xc565e5(0x66a)]=_0xc565e5(0x19d3);break;}return _0x2353e2;}function _0x24aaef(){const _0xe48b0=_0x43cbcb;_0x5b5f6a[_0xe48b0(0x1e6c)]=![],_0x5cfc33[_0xe48b0(0xe27)]({'controller':_0xe48b0(0x15f7),'controllerAs':'vm','templateUrl':_0x3530d6,'parent':angular[_0xe48b0(0x1853)](_0x264329[_0xe48b0(0x1ed9)]),'clickOutsideToClose':![],'locals':{'color':_0x5b5f6a[_0xe48b0(0xaee)],'fields':_0x5b5f6a[_0xe48b0(0x16ad)][_0xe48b0(0x355)],'storagePath':_0xe48b0(0xa97)},'fullscreen':!![]})[_0xe48b0(0x1cb0)](function(_0x3b85c5){const _0x4ccd8e=_0xe48b0;_0x5b5f6a[_0x4ccd8e(0xae2)][_0x4ccd8e(0x24be)]=_0x3b85c5===![]?undefined:_0x3b85c5;if(_0x5b5f6a[_0x4ccd8e(0xae2)][_0x4ccd8e(0x24be)]||_0x3b85c5===![])_0x236b8c();})[_0xe48b0(0x1c4)](function(_0x29f188){const _0x3a87ca=_0xe48b0;_0x4b55fa[_0x3a87ca(0x218e)]({'title':'ERROR','msg':_0x29f188[_0x3a87ca(0x25c)]?JSON[_0x3a87ca(0x2701)](_0x29f188[_0x3a87ca(0x25c)]['message']):_0x29f188['toString']()});});}let _0x5c4641=!![],_0x11a1e3=0x1;_0x267b54['$watch'](_0x43cbcb(0x957),function(_0x3211fb,_0x33f983){const _0x25291b=_0x43cbcb;_0x5c4641?_0x4b1b52(function(){_0x5c4641=![];}):(!_0x33f983&&(_0x11a1e3=_0x5b5f6a['query'][_0x25291b(0x1c7b)]),_0x3211fb!==_0x33f983&&(_0x5b5f6a[_0x25291b(0xae2)][_0x25291b(0x1c7b)]=0x1),!_0x3211fb&&(_0x5b5f6a[_0x25291b(0xae2)][_0x25291b(0x1c7b)]=_0x11a1e3),_0x236b8c());});}const _0x270056=_0x1a0eb2;;_0xf185af['$inject']=['$scope',_0x5537c6(0x1714)];function _0xf185af(_0x1bc08b,_0x2c74d3){const _0x451b22=_0x5537c6;let _0x4013db=_0x2c74d3(function(){},0x3e7);_0x1bc08b['$on'](_0x451b22(0x291c),function(){_0x4013db&&(_0x2c74d3['cancel'](_0x4013db),_0x4013db=null);});}const _0x13d566=_0xf185af;;_0x5418de['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x2168),_0x5537c6(0xcb9),'$document','$window','$translate','api','Auth',_0x5537c6(0x1986)];function _0x5418de(_0x40fde2,_0x226d85,_0x34e908,_0x133779,_0x3b8127,_0x543be4,_0x317621,_0x2b9972,_0x1d244a){const _0x3745a2=_0x5537c6,_0x53f372=this,_0x1e7416=['type',_0x3745a2(0x26b6),'dialMethod','dialActive'];_0x53f372['voiceQueues']={},_0x53f372[_0x3745a2(0x2a4)]=0x0,_0x53f372[_0x3745a2(0x1abc)]={},_0x53f372[_0x3745a2(0x172b)]={},_0x53f372['rpcVoiceQueuesChannels']={},_0x53f372[_0x3745a2(0x214d)]={},_0x53f372[_0x3745a2(0x18a0)]=[],_0x53f372[_0x3745a2(0x997)]=!![],_0x53f372[_0x3745a2(0xae2)]={'id':_0x2b9972[_0x3745a2(0x21e8)]()['id'],'fields':_0x3745a2(0x776),'channel':_0x3745a2(0x1fd4),'type':'outbound','limit':0xa,'page':0x1},_0x53f372[_0x3745a2(0x2231)]={'limit':0xa,'page':0x1},_0x53f372[_0x3745a2(0x829)]=_0x1f7181,_0x53f372[_0x3745a2(0x172b)]=_0x4715cf,_0x53f372['getSize']=_0x3fb41a,_0x53f372['onSaveQueue']=_0x2a319c,_0x53f372[_0x3745a2(0x1f51)]=_0x34355c,_0x53f372['onUserVoiceQueue']=_0x9c3a04,_0x53f372[_0x3745a2(0x283a)]=_0x3548a8,_0x53f372[_0x3745a2(0x1de5)]=_0x1e41a3,_0x53f372['onRemoveVoiceQueue']=_0x36002e,_0x1d244a[_0x3745a2(0x16b7)](_0x3745a2(0x82a),_0x53f372[_0x3745a2(0x24f5)]),_0x1d244a[_0x3745a2(0x16b7)](_0x3745a2(0x338),_0x53f372['onSaveChannel']),_0x1d244a['onWithoutApply'](_0x3745a2(0x828),_0x53f372['onUserVoiceQueue']),_0x1d244a[_0x3745a2(0x16b7)]('userVoiceQueue:remove',_0x53f372[_0x3745a2(0x20b7)]),_0x1d244a[_0x3745a2(0x16b7)](_0x3745a2(0x1fe3),_0x53f372[_0x3745a2(0x283a)]),_0x1d244a[_0x3745a2(0x16b7)]('voiceQueue:remove',_0x53f372[_0x3745a2(0xe75)]),_0x1d244a[_0x3745a2(0x16b7)](_0x3745a2(0x18e8),_0x53f372[_0x3745a2(0x1de5)]),_0x317621['rpc']['getVoiceQueues']()[_0x3745a2(0x1d77)]['then'](function(_0x815c75){const _0x28ac74=_0x3745a2;return _0x53f372[_0x28ac74(0x1abc)]=_0x815c75?_0x39641b()[_0x28ac74(0x2631)](_0x815c75[_0x28ac74(0x2214)]?_0x815c75[_0x28ac74(0x2214)]:[],'id'):{},_0x317621['rpc'][_0x28ac74(0x19f2)]()[_0x28ac74(0x1d77)];})[_0x3745a2(0x1cb0)](function(_0x2dbbdc){const _0x4480aa=_0x3745a2;_0x53f372[_0x4480aa(0x4b1)]=_0x2dbbdc?_0x39641b()[_0x4480aa(0x2631)](_0x2dbbdc['rows']?_0x39641b()['filter'](_0x2dbbdc['rows'],{'type':_0x4480aa(0x895),'queuecallerleaveAt':null}):[],_0x4480aa(0x1425)):{};})[_0x3745a2(0x1c4)](function(_0x3259dd){console['error'](_0x3259dd);})['finally'](function(){const _0x2a4b16=_0x3745a2;_0x39641b()[_0x2a4b16(0x9c1)](_0x53f372[_0x2a4b16(0x4b1)],_0x53f372['addVoiceQueuesChannels']);for(let _0x33677a=0x0;_0x33677a<_0x53f372['deleteVoiceQueuesChannels'][_0x2a4b16(0xfd0)];_0x33677a+=0x1){delete _0x53f372[_0x2a4b16(0x4b1)][_0x53f372[_0x2a4b16(0x18a0)][_0x33677a]];}_0x53f372[_0x2a4b16(0x997)]=![],_0x53f372[_0x2a4b16(0x214d)]={},_0x53f372['deleteVoiceQueuesChannels']=[],_0x53f372[_0x2a4b16(0x172b)]();});function _0x1f7181(_0x27bfab){const _0x5e47f7=_0x3745a2;_0x53f372[_0x5e47f7(0x2a4)]=_0x27bfab[_0x5e47f7(0x184d)]?_0x27bfab['count']:0x0,_0x53f372['voiceQueues']=_0x27bfab?_0x39641b()[_0x5e47f7(0x2631)](_0x27bfab[_0x5e47f7(0x2214)]?_0x27bfab[_0x5e47f7(0x2214)]:[],'id'):{},_0x19bc12();}function _0x4715cf(){const _0xf13ac=_0x3745a2;_0x53f372['query'][_0xf13ac(0x184b)]=(_0x53f372['query'][_0xf13ac(0x1c7b)]-0x1)*_0x53f372[_0xf13ac(0xae2)][_0xf13ac(0x236)],_0x53f372[_0xf13ac(0x2061)]=_0x317621['user'][_0xf13ac(0x13e9)](_0x53f372['query'],_0x1f7181)[_0xf13ac(0x1d77)];}let _0x3e5f97=!![],_0x2e5ec2=0x1;_0x40fde2[_0x3745a2(0x614)]('vm_dc.query.filter',function(_0x4ff060,_0x29c1ba){const _0x3783d8=_0x3745a2;_0x3e5f97?_0x226d85(function(){_0x3e5f97=![];}):(!_0x29c1ba&&(_0x2e5ec2=_0x53f372[_0x3783d8(0xae2)][_0x3783d8(0x1c7b)]),_0x4ff060!==_0x29c1ba&&(_0x53f372['query']['page']=0x1),!_0x4ff060&&(_0x53f372[_0x3783d8(0xae2)][_0x3783d8(0x1c7b)]=_0x2e5ec2),_0x53f372['getVoiceQueues']());});function _0x3fb41a(_0x141b32){const _0x544aaf=_0x3745a2;return _0x39641b()[_0x544aaf(0x1813)](_0x141b32);}function _0x19bc12(){_0x39641b()['forIn'](_0x53f372['voiceQueues'],function(_0x56d74f,_0x4f113b){const _0x5c59fc=a0_0x5cbd;_0x53f372[_0x5c59fc(0x1abc)][_0x4f113b]&&(_0x53f372[_0x5c59fc(0x278a)][_0x4f113b][_0x5c59fc(0x26b6)]=_0x53f372[_0x5c59fc(0x1abc)][_0x4f113b][_0x5c59fc(0x26b6)]||0x0);});}function _0x2a319c(_0x51fd14){const _0x4d7dc9=_0x3745a2;_0x53f372[_0x4d7dc9(0x278a)][_0x51fd14['id']]&&(_0x53f372[_0x4d7dc9(0x1abc)][_0x51fd14['id']]&&(_0x53f372[_0x4d7dc9(0x1abc)][_0x51fd14['id']]=_0x51fd14,_0x39641b()[_0x4d7dc9(0x9c1)](_0x53f372['voiceQueues'][_0x51fd14['id']],_0x39641b()[_0x4d7dc9(0x169b)](_0x51fd14,_0x1e7416))));}function _0x34355c(_0x382b31){const _0x2f3328=_0x3745a2;_0x382b31['type']===_0x2f3328(0x895)&&(_0x382b31['queuecallerleaveAt']?(delete _0x53f372[_0x2f3328(0x4b1)][_0x382b31[_0x2f3328(0x1425)]],_0x53f372[_0x2f3328(0x997)]&&_0x53f372['deleteVoiceQueuesChannels']['push'](_0x382b31[_0x2f3328(0x1425)])):(_0x53f372[_0x2f3328(0x4b1)][_0x382b31[_0x2f3328(0x1425)]]=_0x382b31,_0x53f372['load']&&(_0x53f372[_0x2f3328(0x214d)][_0x382b31[_0x2f3328(0x1425)]]=_0x382b31)));}function _0x3548a8(_0x55f4e8){const _0x20f8bd=_0x3745a2;!_0x39641b()[_0x20f8bd(0x958)](_0x55f4e8)&&(_0x53f372['rpcVoiceQueues'][_0x55f4e8['id']]=_0x39641b()[_0x20f8bd(0x169b)](_0x55f4e8,_0x1e7416));}function _0x1e41a3(_0x39c245){const _0x51531=_0x3745a2;!_0x39641b()[_0x51531(0x958)](_0x39c245)&&(_0x53f372[_0x51531(0x1abc)][_0x39c245['id']]&&_0x39641b()[_0x51531(0x9c1)](_0x53f372[_0x51531(0x1abc)][_0x39c245['id']],_0x39641b()[_0x51531(0x169b)](_0x39c245,_0x1e7416)),_0x53f372[_0x51531(0x278a)][_0x39c245['id']]&&_0x39641b()[_0x51531(0x9c1)](_0x53f372[_0x51531(0x278a)][_0x39c245['id']],_0x39641b()['pick'](_0x39c245,_0x1e7416)));}function _0x36002e(_0x558464){const _0x53b364=_0x3745a2;!_0x39641b()[_0x53b364(0x958)](_0x558464)&&(delete _0x53f372[_0x53b364(0x1abc)][_0x558464['id']],delete _0x53f372[_0x53b364(0x278a)][_0x558464['id']]);}function _0x9c3a04(_0x4d6925){const _0x7b11ef=_0x3745a2;_0x39641b()['toInteger'](_0x4d6925[_0x7b11ef(0x21ab)])===_0x2b9972[_0x7b11ef(0x21e8)]()['id']&&_0x53f372[_0x7b11ef(0x172b)]();}_0x40fde2['$on'](_0x3745a2(0x291c),function(){const _0x2c4907=_0x3745a2;_0x1d244a[_0x2c4907(0xfb8)](_0x2c4907(0x82a)),_0x1d244a['removeAllListeners'](_0x2c4907(0x338)),_0x1d244a[_0x2c4907(0xfb8)]('userVoiceQueue:save'),_0x1d244a['removeAllListeners'](_0x2c4907(0x201e)),_0x1d244a[_0x2c4907(0xfb8)](_0x2c4907(0x1fe3)),_0x1d244a[_0x2c4907(0xfb8)](_0x2c4907(0x18e8)),_0x1d244a[_0x2c4907(0xfb8)](_0x2c4907(0xb50));});}const _0x1553dd=_0x5418de;;_0xd2fca4[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x2168),_0x5537c6(0xcb9),'$document','$window',_0x5537c6(0x1ae),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1986)];function _0xd2fca4(_0xcecef3,_0x3f83ec,_0xa1d2fd,_0x3556f8,_0x3a6f90,_0x4fbfb9,_0x14f5c5,_0x96a8fe,_0x101bfc){const _0x3c3a5b=_0x5537c6,_0x4a8dfd=this,_0x39eb91=['id',_0x3c3a5b(0x16b6),_0x3c3a5b(0x473),_0x3c3a5b(0x26b6)];let _0x1c2772=!![];_0x4a8dfd[_0x3c3a5b(0x25cd)]={},_0x4a8dfd[_0x3c3a5b(0x17ee)]=0x0,_0x4a8dfd['rpcChatQueues']={},_0x4a8dfd[_0x3c3a5b(0x110b)]=[],_0x4a8dfd[_0x3c3a5b(0x6de)]=[],_0x4a8dfd[_0x3c3a5b(0x21b5)]={},_0x4a8dfd[_0x3c3a5b(0xae2)]={'id':_0x96a8fe['getCurrentUser']()['id'],'channel':_0x3c3a5b(0x174c),'fields':_0x3c3a5b(0x23f1),'limit':0xa,'page':0x1},_0x4a8dfd[_0x3c3a5b(0x2231)]={'limit':0xa,'page':0x1},_0x4a8dfd[_0x3c3a5b(0x829)]=_0x26d48e,_0x4a8dfd[_0x3c3a5b(0x730)]=_0x2ff99c,_0x4a8dfd[_0x3c3a5b(0x265)]=_0x43b424,_0x4a8dfd['getColorByChannel']=_0x5ca10d,_0x4a8dfd[_0x3c3a5b(0x27ed)]=_0x39e20d,_0x4a8dfd[_0x3c3a5b(0x24f5)]=_0x385bf5,_0x4a8dfd[_0x3c3a5b(0x1437)]=_0x40865e,_0x4a8dfd[_0x3c3a5b(0x2423)]=_0x26ce63,_0x4a8dfd[_0x3c3a5b(0x11f8)]=_0x2063ec,_0x4a8dfd[_0x3c3a5b(0x29e0)]=_0x13eb2e,_0x4a8dfd[_0x3c3a5b(0x26ff)]=_0x228325,_0x4a8dfd[_0x3c3a5b(0x11f1)]=_0x3723fd,_0x4a8dfd[_0x3c3a5b(0x1f1a)]=_0xdafc48,_0x101bfc[_0x3c3a5b(0x16b7)]('chat_queue:save',_0x4a8dfd['onSaveQueue']),_0x101bfc[_0x3c3a5b(0x16b7)]('chatQueue:save',_0x4a8dfd[_0x3c3a5b(0x1437)]),_0x101bfc[_0x3c3a5b(0x16b7)](_0x3c3a5b(0x140e),_0x4a8dfd[_0x3c3a5b(0x2423)]),_0x101bfc['onWithoutApply'](_0x3c3a5b(0x13df),_0x4a8dfd[_0x3c3a5b(0x11f8)]),_0x101bfc[_0x3c3a5b(0x16b7)](_0x3c3a5b(0x1e92),_0x4a8dfd['onSaveUserChatQueue']),_0x101bfc[_0x3c3a5b(0x16b7)](_0x3c3a5b(0x1103),_0x4a8dfd[_0x3c3a5b(0x26ff)]),_0x101bfc[_0x3c3a5b(0x16b7)](_0x3c3a5b(0x2373),_0x4a8dfd[_0x3c3a5b(0x11f1)]),_0x101bfc[_0x3c3a5b(0x16b7)]('chat_queue_waiting_interaction:remove',_0x4a8dfd[_0x3c3a5b(0x1f1a)]),_0x14f5c5[_0x3c3a5b(0x1a00)][_0x3c3a5b(0x730)]()['$promise']['then'](function(_0x2553c7){const _0x34d18f=_0x3c3a5b;_0x4a8dfd['rpcChatQueues']=_0x2553c7?_0x39641b()[_0x34d18f(0x2631)](_0x2553c7['rows']?_0x2553c7[_0x34d18f(0x2214)]:[],'id'):{};})[_0x3c3a5b(0x1cb0)](function(){const _0x626a1c=_0x3c3a5b;return _0x14f5c5[_0x626a1c(0xebe)][_0x626a1c(0x13e9)]({'id':_0x96a8fe['getCurrentUser']()['id'],'channel':_0x626a1c(0x174c)})['$promise'];})[_0x3c3a5b(0x1cb0)](function(_0x855180){const _0x79cc8f=_0x3c3a5b;return _0x4a8dfd[_0x79cc8f(0x255a)]=_0x855180[_0x79cc8f(0x2214)],_0x14f5c5['rpc'][_0x79cc8f(0x1384)]()[_0x79cc8f(0x1d77)];})[_0x3c3a5b(0x1cb0)](function(_0x2f7092){const _0x4612ec=_0x3c3a5b,_0x32889a=_0x39641b()[_0x4612ec(0x1c99)](_0x2f7092['rows'],function(_0x2b9dbe){const _0x2fff24=_0x4612ec;return _0x39641b()[_0x2fff24(0x250a)](_0x4a8dfd[_0x2fff24(0x255a)],{'id':_0x2b9dbe[_0x2fff24(0x2303)]});});_0x2f7092[_0x4612ec(0x2214)]=_0x32889a,_0x2f7092[_0x4612ec(0x184d)]=_0x32889a[_0x4612ec(0xfd0)],_0x39641b()['merge'](_0x4a8dfd[_0x4612ec(0x21b5)],_0x2f7092?_0x39641b()[_0x4612ec(0x2631)](_0x2f7092['rows']?_0x2f7092[_0x4612ec(0x2214)]:[],'id'):{});})['catch'](function(_0x28a48d){console['error'](_0x28a48d);})[_0x3c3a5b(0x2e0)](function(){const _0x2802ba=_0x3c3a5b;for(let _0x45a506=0x0;_0x45a506<_0x4a8dfd['deleteChatQueuesWaitingInteractions'][_0x2802ba(0xfd0)];_0x45a506+=0x1){delete _0x4a8dfd[_0x2802ba(0x21b5)][_0x4a8dfd[_0x2802ba(0x6de)][_0x45a506]];}_0x1c2772=![],_0x4a8dfd['deleteChatQueuesWaitingInteractions']=[],_0x2ff99c(),_0x39e20d();});function _0x39e20d(){const _0x2a91bf=_0x3c3a5b,_0x1e66ab=(_0x4a8dfd[_0x2a91bf(0x2231)][_0x2a91bf(0x1c7b)]-0x1)*_0x4a8dfd[_0x2a91bf(0x2231)][_0x2a91bf(0x236)];_0x4a8dfd[_0x2a91bf(0x110b)]=_0x39641b()['orderBy'](_0x4a8dfd[_0x2a91bf(0x21b5)],[_0x2a91bf(0x2943)],['desc']),_0x4a8dfd[_0x2a91bf(0xf76)]=_0x39641b()[_0x2a91bf(0x276f)](_0x4a8dfd[_0x2a91bf(0x110b)],_0x1e66ab)[_0x2a91bf(0x14cb)](0x0,_0x4a8dfd[_0x2a91bf(0x2231)][_0x2a91bf(0x236)]);}function _0x26d48e(_0x39411d){const _0x4ac095=_0x3c3a5b;_0x4a8dfd[_0x4ac095(0x17ee)]=_0x39411d['count']?_0x39411d[_0x4ac095(0x184d)]:0x0,_0x4a8dfd[_0x4ac095(0x25cd)]=_0x39411d?_0x39641b()[_0x4ac095(0x2631)](_0x39411d['rows']?_0x39411d['rows']:[],'id'):{},_0x108fe2();}function _0x2ff99c(){const _0xf7c0f1=_0x3c3a5b;_0x4a8dfd[_0xf7c0f1(0xae2)]['offset']=(_0x4a8dfd[_0xf7c0f1(0xae2)][_0xf7c0f1(0x1c7b)]-0x1)*_0x4a8dfd[_0xf7c0f1(0xae2)]['limit'],_0x4a8dfd[_0xf7c0f1(0x2061)]=_0x14f5c5['user'][_0xf7c0f1(0x13e9)](_0x4a8dfd['query'],_0x26d48e)[_0xf7c0f1(0x1d77)];}let _0x553722=!![],_0x380f95=0x1;_0xcecef3[_0x3c3a5b(0x614)](_0x3c3a5b(0xeb6),function(_0x41ece6,_0x19181c){const _0x3cf8c4=_0x3c3a5b;_0x553722?_0x3f83ec(function(){_0x553722=![];}):(!_0x19181c&&(_0x380f95=_0x4a8dfd[_0x3cf8c4(0xae2)][_0x3cf8c4(0x1c7b)]),_0x41ece6!==_0x19181c&&(_0x4a8dfd[_0x3cf8c4(0xae2)]['page']=0x1),!_0x41ece6&&(_0x4a8dfd[_0x3cf8c4(0xae2)][_0x3cf8c4(0x1c7b)]=_0x380f95),_0x4a8dfd[_0x3cf8c4(0x730)]());});function _0x43b424(_0x63427d){const _0x284ca5=_0x3c3a5b;return _0x39641b()[_0x284ca5(0x1813)](_0x63427d);}function _0x108fe2(){const _0x1a77b9=_0x3c3a5b;_0x39641b()[_0x1a77b9(0x1ebd)](_0x4a8dfd[_0x1a77b9(0x25cd)],function(_0x1e5dc0,_0x442ca3){const _0x23e726=_0x1a77b9;_0x4a8dfd['rpcChatQueues'][_0x442ca3]&&(_0x4a8dfd[_0x23e726(0x25cd)][_0x442ca3][_0x23e726(0x26b6)]=_0x4a8dfd[_0x23e726(0x145a)][_0x442ca3][_0x23e726(0x26b6)]||0x0);});}function _0x385bf5(_0x509d20){const _0x4f4c24=_0x3c3a5b;_0x4a8dfd[_0x4f4c24(0x25cd)][_0x509d20['id']]&&(_0x4a8dfd[_0x4f4c24(0x145a)][_0x509d20['id']]&&(_0x39641b()['merge'](_0x4a8dfd[_0x4f4c24(0x145a)][_0x509d20['id']],_0x39641b()[_0x4f4c24(0x169b)](_0x509d20,_0x39eb91)),_0x39641b()[_0x4f4c24(0x9c1)](_0x4a8dfd[_0x4f4c24(0x25cd)][_0x509d20['id']],_0x39641b()[_0x4f4c24(0x169b)](_0x509d20,_0x39eb91))));}function _0x40865e(_0x57ce3f){const _0x5c9000=_0x3c3a5b;!_0x39641b()[_0x5c9000(0x958)](_0x57ce3f)&&(_0x4a8dfd['rpcChatQueues'][_0x57ce3f['id']]=_0x39641b()['pick'](_0x57ce3f,_0x39eb91));}function _0x26ce63(_0x59e618){const _0x4004b8=_0x3c3a5b;!_0x39641b()[_0x4004b8(0x958)](_0x59e618)&&(_0x4a8dfd[_0x4004b8(0x145a)][_0x59e618['id']]&&_0x39641b()[_0x4004b8(0x9c1)](_0x4a8dfd[_0x4004b8(0x145a)][_0x59e618['id']],_0x39641b()[_0x4004b8(0x169b)](_0x59e618,_0x39eb91)),_0x4a8dfd['chatQueues'][_0x59e618['id']]&&_0x39641b()[_0x4004b8(0x9c1)](_0x4a8dfd[_0x4004b8(0x25cd)][_0x59e618['id']],_0x39641b()[_0x4004b8(0x169b)](_0x59e618,_0x39eb91)));}function _0x2063ec(_0x2ff680){const _0xac8f15=_0x3c3a5b;!_0x39641b()[_0xac8f15(0x958)](_0x2ff680)&&(delete _0x4a8dfd[_0xac8f15(0x145a)][_0x2ff680['id']],delete _0x4a8dfd[_0xac8f15(0x25cd)][_0x2ff680['id']]);}function _0x13eb2e(_0x122b64){const _0x16e96f=_0x3c3a5b;_0x39641b()['toInteger'](_0x122b64[_0x16e96f(0x21ab)])===_0x96a8fe[_0x16e96f(0x21e8)]()['id']&&_0x4a8dfd['getChatQueues']();}function _0x228325(_0x5938c3){const _0x32a43e=_0x3c3a5b;_0x39641b()[_0x32a43e(0x15ed)](_0x5938c3[_0x32a43e(0x21ab)])===_0x96a8fe[_0x32a43e(0x21e8)]()['id']&&_0x4a8dfd[_0x32a43e(0x730)]();}function _0x3723fd(_0x3a193b){const _0x1eb1e1=_0x3c3a5b;_0x4a8dfd['chatQueues'][_0x3a193b[_0x1eb1e1(0x2303)]]&&(_0x4a8dfd[_0x1eb1e1(0x21b5)][_0x3a193b['id']]=_0x3a193b,_0x39e20d());}function _0xdafc48(_0x48e7d0){const _0x26c6e7=_0x3c3a5b;delete _0x4a8dfd['rpcChatQueuesWaitingInteractions'][_0x48e7d0['id']],_0x1c2772&&_0x4a8dfd[_0x26c6e7(0x6de)][_0x26c6e7(0x2785)](_0x48e7d0['id']),_0x39e20d();}function _0x5ca10d(_0x5c47df){const _0x7def79=_0x3c3a5b;switch(_0x5c47df){case _0x7def79(0x174c):return _0x7def79(0x10a7);case'mail':return _0x7def79(0x24ca);case _0x7def79(0x689):return _0x7def79(0x50e);case _0x7def79(0x2476):return _0x7def79(0xf3a);case _0x7def79(0x15e0):return _0x7def79(0x1b13);case'fax':return'blue-grey-A200-bg';default:return'white-bg';}}_0xcecef3[_0x3c3a5b(0x1d6)](_0x3c3a5b(0x291c),function(){const _0xd7bf9a=_0x3c3a5b;_0x101bfc[_0xd7bf9a(0xfb8)]('chat_queue:save'),_0x101bfc[_0xd7bf9a(0xfb8)]('chatQueue:save'),_0x101bfc[_0xd7bf9a(0xfb8)](_0xd7bf9a(0x140e)),_0x101bfc[_0xd7bf9a(0xfb8)](_0xd7bf9a(0x13df)),_0x101bfc[_0xd7bf9a(0xfb8)]('userChatQueue:save'),_0x101bfc[_0xd7bf9a(0xfb8)](_0xd7bf9a(0x1103)),_0x101bfc[_0xd7bf9a(0xfb8)](_0xd7bf9a(0x2373)),_0x101bfc[_0xd7bf9a(0xfb8)](_0xd7bf9a(0x12a1));});}const _0x5b0315=_0xd2fca4;;_0xaa8f2a[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2168),_0x5537c6(0xcb9),'$document',_0x5537c6(0x1f10),_0x5537c6(0x1ae),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1986)];function _0xaa8f2a(_0x4e479f,_0x5de33b,_0x1ec500,_0x2853be,_0x3fc233,_0x17f286,_0x106c8e,_0x500986,_0x4a5e5e){const _0x142246=_0x5537c6,_0x5258e2=this,_0x5a651c=['id',_0x142246(0x16b6),'mapAgentsId',_0x142246(0x26b6)];let _0x19358b=!![];_0x5258e2[_0x142246(0x754)]={},_0x5258e2[_0x142246(0x18be)]=0x0,_0x5258e2[_0x142246(0xc50)]={},_0x5258e2[_0x142246(0x110b)]=[],_0x5258e2[_0x142246(0x812)]=[],_0x5258e2['rpcFaxQueuesWaitingInteractions']={},_0x5258e2['query']={'id':_0x500986[_0x142246(0x21e8)]()['id'],'channel':_0x142246(0x1944),'fields':_0x142246(0x23f1),'limit':0xa,'page':0x1},_0x5258e2[_0x142246(0x2231)]={'limit':0xa,'page':0x1},_0x5258e2[_0x142246(0x829)]=_0x445be5,_0x5258e2['getFaxQueues']=_0x30cbc9,_0x5258e2[_0x142246(0x265)]=_0x431362,_0x5258e2[_0x142246(0x879)]=_0x15c581,_0x5258e2[_0x142246(0x27ed)]=_0x1d0d9f,_0x5258e2[_0x142246(0x24f5)]=_0x510f00,_0x5258e2[_0x142246(0x25fd)]=_0x2f8877,_0x5258e2[_0x142246(0xe15)]=_0x5d6ec6,_0x5258e2[_0x142246(0x1449)]=_0x45588a,_0x5258e2[_0x142246(0x98f)]=_0x25918e,_0x5258e2[_0x142246(0xa5d)]=_0x14e8e0,_0x5258e2[_0x142246(0x1df3)]=_0x142b0f,_0x5258e2[_0x142246(0x1178)]=_0x3468d9,_0x4a5e5e[_0x142246(0x16b7)]('fax_queue:save',_0x5258e2[_0x142246(0x24f5)]),_0x4a5e5e[_0x142246(0x16b7)]('faxQueue:save',_0x5258e2['onSaveFaxQueue']),_0x4a5e5e[_0x142246(0x16b7)](_0x142246(0x2403),_0x5258e2[_0x142246(0xe15)]),_0x4a5e5e[_0x142246(0x16b7)](_0x142246(0xc90),_0x5258e2[_0x142246(0x1449)]),_0x4a5e5e[_0x142246(0x16b7)]('userFaxQueue:save',_0x5258e2[_0x142246(0x98f)]),_0x4a5e5e[_0x142246(0x16b7)](_0x142246(0x1c5c),_0x5258e2[_0x142246(0xa5d)]),_0x4a5e5e[_0x142246(0x16b7)](_0x142246(0x1b9d),_0x5258e2[_0x142246(0x1df3)]),_0x4a5e5e[_0x142246(0x16b7)](_0x142246(0x217f),_0x5258e2['onRemoveFaxQueueChannel']),_0x106c8e[_0x142246(0x1a00)][_0x142246(0x10b8)]()[_0x142246(0x1d77)][_0x142246(0x1cb0)](function(_0x321389){const _0x208607=_0x142246;_0x5258e2[_0x208607(0xc50)]=_0x321389?_0x39641b()[_0x208607(0x2631)](_0x321389['rows']?_0x321389[_0x208607(0x2214)]:[],'id'):{};})[_0x142246(0x1cb0)](function(){const _0x24404b=_0x142246;return _0x106c8e['user'][_0x24404b(0x13e9)]({'id':_0x500986[_0x24404b(0x21e8)]()['id'],'channel':_0x24404b(0x1944)})[_0x24404b(0x1d77)];})[_0x142246(0x1cb0)](function(_0x1163fe){const _0x25654b=_0x142246;return _0x5258e2[_0x25654b(0x255a)]=_0x1163fe[_0x25654b(0x2214)],_0x106c8e[_0x25654b(0x1a00)][_0x25654b(0x1705)]()[_0x25654b(0x1d77)];})[_0x142246(0x1cb0)](function(_0x42984a){const _0x50013d=_0x142246,_0x35700c=_0x39641b()[_0x50013d(0x1c99)](_0x42984a['rows'],function(_0x1837f8){const _0x183f85=_0x50013d;return _0x39641b()[_0x183f85(0x250a)](_0x5258e2[_0x183f85(0x255a)],{'id':_0x1837f8['queue_id']});});_0x42984a[_0x50013d(0x2214)]=_0x35700c,_0x42984a[_0x50013d(0x184d)]=_0x35700c[_0x50013d(0xfd0)],_0x39641b()[_0x50013d(0x9c1)](_0x5258e2[_0x50013d(0x1de9)],_0x42984a?_0x39641b()[_0x50013d(0x2631)](_0x42984a['rows']?_0x42984a['rows']:[],'id'):{});})[_0x142246(0x1c4)](function(_0x447b6d){const _0x2b4273=_0x142246;console[_0x2b4273(0x218e)](_0x447b6d);})['finally'](function(){const _0x286f41=_0x142246;for(let _0x3b9fe3=0x0;_0x3b9fe3<_0x5258e2['deleteFaxQueuesWaitingInteractions'][_0x286f41(0xfd0)];_0x3b9fe3+=0x1){delete _0x5258e2['rpcFaxQueuesWaitingInteractions'][_0x5258e2[_0x286f41(0x812)][_0x3b9fe3]];}_0x19358b=![],_0x5258e2[_0x286f41(0x812)]=[],_0x30cbc9(),_0x1d0d9f();});function _0x1d0d9f(){const _0x1b921a=_0x142246,_0x5a97d1=(_0x5258e2[_0x1b921a(0x2231)][_0x1b921a(0x1c7b)]-0x1)*_0x5258e2[_0x1b921a(0x2231)]['limit'];_0x5258e2['paginatedInteractions']=_0x39641b()['orderBy'](_0x5258e2['rpcFaxQueuesWaitingInteractions'],[_0x1b921a(0x2943)],[_0x1b921a(0x20a5)]),_0x5258e2[_0x1b921a(0xf76)]=_0x39641b()[_0x1b921a(0x276f)](_0x5258e2['paginatedInteractions'],_0x5a97d1)[_0x1b921a(0x14cb)](0x0,_0x5258e2[_0x1b921a(0x2231)]['limit']);}function _0x445be5(_0x1777c3){const _0x5ea422=_0x142246;_0x5258e2[_0x5ea422(0x18be)]=_0x1777c3[_0x5ea422(0x184d)]?_0x1777c3[_0x5ea422(0x184d)]:0x0,_0x5258e2[_0x5ea422(0x754)]=_0x1777c3?_0x39641b()['keyBy'](_0x1777c3[_0x5ea422(0x2214)]?_0x1777c3[_0x5ea422(0x2214)]:[],'id'):{},_0x1fc193();}function _0x30cbc9(){const _0x38f439=_0x142246;_0x5258e2[_0x38f439(0xae2)][_0x38f439(0x184b)]=(_0x5258e2[_0x38f439(0xae2)][_0x38f439(0x1c7b)]-0x1)*_0x5258e2[_0x38f439(0xae2)][_0x38f439(0x236)],_0x5258e2[_0x38f439(0x2061)]=_0x106c8e['user']['getQueues'](_0x5258e2['query'],_0x445be5)[_0x38f439(0x1d77)];}let _0x4c3111=!![],_0x11e250=0x1;_0x4e479f[_0x142246(0x614)](_0x142246(0xeb6),function(_0xf521c1,_0x42c29e){const _0x379962=_0x142246;_0x4c3111?_0x5de33b(function(){_0x4c3111=![];}):(!_0x42c29e&&(_0x11e250=_0x5258e2['query'][_0x379962(0x1c7b)]),_0xf521c1!==_0x42c29e&&(_0x5258e2[_0x379962(0xae2)][_0x379962(0x1c7b)]=0x1),!_0xf521c1&&(_0x5258e2['query'][_0x379962(0x1c7b)]=_0x11e250),_0x5258e2[_0x379962(0x10b8)]());});function _0x431362(_0x597e8f){const _0x4189fc=_0x142246;return _0x39641b()[_0x4189fc(0x1813)](_0x597e8f);}function _0x1fc193(){const _0x48f3d5=_0x142246;_0x39641b()['forIn'](_0x5258e2[_0x48f3d5(0x754)],function(_0x6258f3,_0x24766d){const _0x109b83=_0x48f3d5;_0x5258e2[_0x109b83(0xc50)][_0x24766d]&&(_0x5258e2[_0x109b83(0x754)][_0x24766d][_0x109b83(0x26b6)]=_0x5258e2['rpcFaxQueues'][_0x24766d][_0x109b83(0x26b6)]||0x0);});}function _0x510f00(_0x21b5e5){const _0x3ccaf0=_0x142246;_0x5258e2['faxQueues'][_0x21b5e5['id']]&&(_0x5258e2[_0x3ccaf0(0xc50)][_0x21b5e5['id']]&&(_0x39641b()[_0x3ccaf0(0x9c1)](_0x5258e2[_0x3ccaf0(0xc50)][_0x21b5e5['id']],_0x39641b()[_0x3ccaf0(0x169b)](_0x21b5e5,_0x5a651c)),_0x39641b()[_0x3ccaf0(0x9c1)](_0x5258e2[_0x3ccaf0(0x754)][_0x21b5e5['id']],_0x39641b()[_0x3ccaf0(0x169b)](_0x21b5e5,_0x5a651c))));}function _0x2f8877(_0x40d0cb){const _0x417e59=_0x142246;!_0x39641b()[_0x417e59(0x958)](_0x40d0cb)&&(_0x5258e2[_0x417e59(0xc50)][_0x40d0cb['id']]=_0x39641b()['pick'](_0x40d0cb,_0x5a651c));}function _0x5d6ec6(_0x11d125){const _0x406b77=_0x142246;!_0x39641b()[_0x406b77(0x958)](_0x11d125)&&(_0x5258e2[_0x406b77(0xc50)][_0x11d125['id']]&&_0x39641b()[_0x406b77(0x9c1)](_0x5258e2['rpcFaxQueues'][_0x11d125['id']],_0x39641b()[_0x406b77(0x169b)](_0x11d125,_0x5a651c)),_0x5258e2[_0x406b77(0x754)][_0x11d125['id']]&&_0x39641b()[_0x406b77(0x9c1)](_0x5258e2[_0x406b77(0x754)][_0x11d125['id']],_0x39641b()[_0x406b77(0x169b)](_0x11d125,_0x5a651c)));}function _0x45588a(_0x2d6c2c){const _0x56965a=_0x142246;!_0x39641b()[_0x56965a(0x958)](_0x2d6c2c)&&(delete _0x5258e2[_0x56965a(0xc50)][_0x2d6c2c['id']],delete _0x5258e2[_0x56965a(0x754)][_0x2d6c2c['id']]);}function _0x25918e(_0x5410c1){const _0x2bbe25=_0x142246;_0x39641b()[_0x2bbe25(0x15ed)](_0x5410c1[_0x2bbe25(0x21ab)])===_0x500986[_0x2bbe25(0x21e8)]()['id']&&_0x5258e2[_0x2bbe25(0x10b8)]();}function _0x14e8e0(_0x2a06bf){const _0x3905d4=_0x142246;_0x39641b()['toInteger'](_0x2a06bf[_0x3905d4(0x21ab)])===_0x500986[_0x3905d4(0x21e8)]()['id']&&_0x5258e2[_0x3905d4(0x10b8)]();}function _0x142b0f(_0x5055d3){const _0x15cc8b=_0x142246;_0x5258e2['faxQueues'][_0x5055d3[_0x15cc8b(0x2303)]]&&(_0x5258e2['rpcFaxQueuesWaitingInteractions'][_0x5055d3['id']]=_0x5055d3,_0x1d0d9f());}function _0x3468d9(_0x214709){const _0x45ccc6=_0x142246;delete _0x5258e2[_0x45ccc6(0x1de9)][_0x214709['id']],_0x19358b&&_0x5258e2[_0x45ccc6(0x812)][_0x45ccc6(0x2785)](_0x214709['id']),_0x1d0d9f();}function _0x15c581(_0x3eb9fa){const _0x1d3a6c=_0x142246;switch(_0x3eb9fa){case _0x1d3a6c(0x174c):return'green-A700-bg';case _0x1d3a6c(0x2651):return'teal-bg';case _0x1d3a6c(0x689):return'orange-bg';case _0x1d3a6c(0x2476):return _0x1d3a6c(0xf3a);case _0x1d3a6c(0x15e0):return _0x1d3a6c(0x1b13);case _0x1d3a6c(0x1944):return _0x1d3a6c(0x20d5);default:return _0x1d3a6c(0x927);}}_0x4e479f[_0x142246(0x1d6)](_0x142246(0x291c),function(){const _0xbe0100=_0x142246;_0x4a5e5e[_0xbe0100(0xfb8)](_0xbe0100(0x24c4)),_0x4a5e5e['removeAllListeners'](_0xbe0100(0xd86)),_0x4a5e5e[_0xbe0100(0xfb8)](_0xbe0100(0x2403)),_0x4a5e5e[_0xbe0100(0xfb8)]('faxQueue:remove'),_0x4a5e5e[_0xbe0100(0xfb8)](_0xbe0100(0x15f0)),_0x4a5e5e['removeAllListeners'](_0xbe0100(0x1c5c)),_0x4a5e5e[_0xbe0100(0xfb8)](_0xbe0100(0x1b9d)),_0x4a5e5e[_0xbe0100(0xfb8)](_0xbe0100(0x217f));});}const _0x5d5e2c=_0xaa8f2a;;_0x58e034[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1f10),_0x5537c6(0x1ae),'api',_0x5537c6(0x1774),'socket'];function _0x58e034(_0x24da7b,_0x24e9c6,_0x206888,_0x4188ee,_0x2113b4,_0x5d9594,_0x2c2d44,_0x52ec53,_0x111c8b){const _0x2df9d4=_0x5537c6,_0x169cd7=this,_0x5d122a=['id',_0x2df9d4(0x16b6),_0x2df9d4(0x473),_0x2df9d4(0x26b6)];let _0x25a991=!![];_0x169cd7[_0x2df9d4(0x25a6)]={},_0x169cd7[_0x2df9d4(0x29b1)]=0x0,_0x169cd7[_0x2df9d4(0x1e75)]={},_0x169cd7[_0x2df9d4(0x110b)]=[],_0x169cd7['deleteMailQueuesWaitingInteractions']=[],_0x169cd7[_0x2df9d4(0xa82)]={},_0x169cd7[_0x2df9d4(0xae2)]={'id':_0x52ec53[_0x2df9d4(0x21e8)]()['id'],'channel':_0x2df9d4(0x2651),'fields':_0x2df9d4(0x23f1),'limit':0xa,'page':0x1},_0x169cd7[_0x2df9d4(0x2231)]={'limit':0xa,'page':0x1},_0x169cd7[_0x2df9d4(0x829)]=_0x34b0b4,_0x169cd7[_0x2df9d4(0x2038)]=_0x438119,_0x169cd7['getSize']=_0x503bc3,_0x169cd7[_0x2df9d4(0x879)]=_0x220d86,_0x169cd7['paginate']=_0x51c737,_0x169cd7['onSaveQueue']=_0x12ae7a,_0x169cd7['onSaveMailQueue']=_0x384c79,_0x169cd7['onUpdateMailQueue']=_0x41a054,_0x169cd7[_0x2df9d4(0x1db4)]=_0x5c967e,_0x169cd7['onSaveUserMailQueue']=_0x5b779f,_0x169cd7[_0x2df9d4(0x1768)]=_0x199218,_0x169cd7[_0x2df9d4(0x284a)]=_0x578ce6,_0x169cd7[_0x2df9d4(0x26ef)]=_0x769f72,_0x111c8b[_0x2df9d4(0x16b7)](_0x2df9d4(0x1baa),_0x169cd7[_0x2df9d4(0x24f5)]),_0x111c8b[_0x2df9d4(0x16b7)]('mailQueue:save',_0x169cd7['onSaveMailQueue']),_0x111c8b[_0x2df9d4(0x16b7)](_0x2df9d4(0x212a),_0x169cd7['onUpdateMailQueue']),_0x111c8b[_0x2df9d4(0x16b7)](_0x2df9d4(0xb81),_0x169cd7[_0x2df9d4(0x1db4)]),_0x111c8b['onWithoutApply']('userMailQueue:save',_0x169cd7[_0x2df9d4(0x177a)]),_0x111c8b[_0x2df9d4(0x16b7)]('userMailQueue:remove',_0x169cd7['onRemoveUserMailQueue']),_0x111c8b[_0x2df9d4(0x16b7)]('mail_queue_waiting_interaction:save',_0x169cd7[_0x2df9d4(0x284a)]),_0x111c8b[_0x2df9d4(0x16b7)](_0x2df9d4(0x2063),_0x169cd7[_0x2df9d4(0x26ef)]),_0x2c2d44[_0x2df9d4(0x1a00)][_0x2df9d4(0x2038)]()[_0x2df9d4(0x1d77)][_0x2df9d4(0x1cb0)](function(_0x273f8e){const _0x2b610b=_0x2df9d4;_0x169cd7[_0x2b610b(0x1e75)]=_0x273f8e?_0x39641b()[_0x2b610b(0x2631)](_0x273f8e[_0x2b610b(0x2214)]?_0x273f8e[_0x2b610b(0x2214)]:[],'id'):{};})[_0x2df9d4(0x1cb0)](function(){const _0x13b443=_0x2df9d4;return _0x2c2d44[_0x13b443(0xebe)][_0x13b443(0x13e9)]({'id':_0x52ec53['getCurrentUser']()['id'],'channel':'mail'})[_0x13b443(0x1d77)];})['then'](function(_0xc0b3f9){const _0x3a2aa9=_0x2df9d4;return _0x169cd7['myQueues']=_0xc0b3f9[_0x3a2aa9(0x2214)],_0x2c2d44[_0x3a2aa9(0x1a00)]['getMailQueuesWaitingInteractions']()['$promise'];})[_0x2df9d4(0x1cb0)](function(_0xa7f1ff){const _0x3a2b2c=_0x2df9d4,_0x17cd6d=_0x39641b()['filter'](_0xa7f1ff[_0x3a2b2c(0x2214)],function(_0x4d67be){const _0xac5b64=_0x3a2b2c;return _0x39641b()['includes'](_0x169cd7[_0xac5b64(0x255a)],{'id':_0x4d67be[_0xac5b64(0x2303)]});});_0xa7f1ff[_0x3a2b2c(0x2214)]=_0x17cd6d,_0xa7f1ff[_0x3a2b2c(0x184d)]=_0x17cd6d['length'],_0x39641b()[_0x3a2b2c(0x9c1)](_0x169cd7[_0x3a2b2c(0xa82)],_0xa7f1ff?_0x39641b()[_0x3a2b2c(0x2631)](_0xa7f1ff['rows']?_0xa7f1ff[_0x3a2b2c(0x2214)]:[],'id'):{});})[_0x2df9d4(0x1c4)](function(_0x4e7592){const _0x20646c=_0x2df9d4;console[_0x20646c(0x218e)](_0x4e7592);})['finally'](function(){const _0x33433c=_0x2df9d4;for(let _0xd88d08=0x0;_0xd88d08<_0x169cd7['deleteMailQueuesWaitingInteractions'][_0x33433c(0xfd0)];_0xd88d08+=0x1){delete _0x169cd7[_0x33433c(0xa82)][_0x169cd7[_0x33433c(0xb26)][_0xd88d08]];}_0x25a991=![],_0x169cd7['deleteMailQueuesWaitingInteractions']=[],_0x438119(),_0x51c737();});function _0x51c737(){const _0x625272=_0x2df9d4,_0x137a8f=(_0x169cd7[_0x625272(0x2231)][_0x625272(0x1c7b)]-0x1)*_0x169cd7['queryChannels']['limit'];_0x169cd7[_0x625272(0x110b)]=_0x39641b()[_0x625272(0x17ca)](_0x169cd7[_0x625272(0xa82)],['joinAt'],[_0x625272(0x20a5)]),_0x169cd7[_0x625272(0xf76)]=_0x39641b()['drop'](_0x169cd7[_0x625272(0x110b)],_0x137a8f)['slice'](0x0,_0x169cd7[_0x625272(0x2231)][_0x625272(0x236)]);}function _0x34b0b4(_0x1cd7bf){const _0x599df9=_0x2df9d4;_0x169cd7[_0x599df9(0x29b1)]=_0x1cd7bf[_0x599df9(0x184d)]?_0x1cd7bf[_0x599df9(0x184d)]:0x0,_0x169cd7[_0x599df9(0x25a6)]=_0x1cd7bf?_0x39641b()['keyBy'](_0x1cd7bf[_0x599df9(0x2214)]?_0x1cd7bf[_0x599df9(0x2214)]:[],'id'):{},_0x1ee346();}function _0x438119(){const _0x2442a3=_0x2df9d4;_0x169cd7['query']['offset']=(_0x169cd7['query'][_0x2442a3(0x1c7b)]-0x1)*_0x169cd7[_0x2442a3(0xae2)][_0x2442a3(0x236)],_0x169cd7['promise']=_0x2c2d44[_0x2442a3(0xebe)][_0x2442a3(0x13e9)](_0x169cd7[_0x2442a3(0xae2)],_0x34b0b4)['$promise'];}let _0x4b87b5=!![],_0x3bcba4=0x1;_0x24da7b['$watch'](_0x2df9d4(0xeb6),function(_0x14b777,_0x5d7f3a){const _0x4f0966=_0x2df9d4;_0x4b87b5?_0x24e9c6(function(){_0x4b87b5=![];}):(!_0x5d7f3a&&(_0x3bcba4=_0x169cd7[_0x4f0966(0xae2)]['page']),_0x14b777!==_0x5d7f3a&&(_0x169cd7['query'][_0x4f0966(0x1c7b)]=0x1),!_0x14b777&&(_0x169cd7[_0x4f0966(0xae2)][_0x4f0966(0x1c7b)]=_0x3bcba4),_0x169cd7[_0x4f0966(0x2038)]());});function _0x503bc3(_0x53afd9){const _0x19cad0=_0x2df9d4;return _0x39641b()[_0x19cad0(0x1813)](_0x53afd9);}function _0x1ee346(){const _0x29b171=_0x2df9d4;_0x39641b()[_0x29b171(0x1ebd)](_0x169cd7[_0x29b171(0x25a6)],function(_0x462c81,_0x67bf2c){const _0x12024a=_0x29b171;_0x169cd7[_0x12024a(0x1e75)][_0x67bf2c]&&(_0x169cd7['mailQueues'][_0x67bf2c][_0x12024a(0x26b6)]=_0x169cd7[_0x12024a(0x1e75)][_0x67bf2c][_0x12024a(0x26b6)]||0x0);});}function _0x12ae7a(_0x617f53){const _0xec9907=_0x2df9d4;_0x169cd7[_0xec9907(0x25a6)][_0x617f53['id']]&&(_0x169cd7[_0xec9907(0x1e75)][_0x617f53['id']]&&(_0x39641b()[_0xec9907(0x9c1)](_0x169cd7[_0xec9907(0x1e75)][_0x617f53['id']],_0x39641b()[_0xec9907(0x169b)](_0x617f53,_0x5d122a)),_0x39641b()[_0xec9907(0x9c1)](_0x169cd7[_0xec9907(0x25a6)][_0x617f53['id']],_0x39641b()[_0xec9907(0x169b)](_0x617f53,_0x5d122a))));}function _0x384c79(_0x16a83c){const _0x5c0852=_0x2df9d4;!_0x39641b()[_0x5c0852(0x958)](_0x16a83c)&&(_0x169cd7[_0x5c0852(0x1e75)][_0x16a83c['id']]=_0x39641b()[_0x5c0852(0x169b)](_0x16a83c,_0x5d122a));}function _0x41a054(_0x32b39a){const _0x51730d=_0x2df9d4;!_0x39641b()[_0x51730d(0x958)](_0x32b39a)&&(_0x169cd7[_0x51730d(0x1e75)][_0x32b39a['id']]&&_0x39641b()[_0x51730d(0x9c1)](_0x169cd7['rpcMailQueues'][_0x32b39a['id']],_0x39641b()[_0x51730d(0x169b)](_0x32b39a,_0x5d122a)),_0x169cd7[_0x51730d(0x25a6)][_0x32b39a['id']]&&_0x39641b()['merge'](_0x169cd7[_0x51730d(0x25a6)][_0x32b39a['id']],_0x39641b()[_0x51730d(0x169b)](_0x32b39a,_0x5d122a)));}function _0x5c967e(_0x1013b7){const _0x52df37=_0x2df9d4;!_0x39641b()['isNil'](_0x1013b7)&&(delete _0x169cd7[_0x52df37(0x1e75)][_0x1013b7['id']],delete _0x169cd7['mailQueues'][_0x1013b7['id']]);}function _0x5b779f(_0xa5c464){const _0x1c957d=_0x2df9d4;_0x39641b()[_0x1c957d(0x15ed)](_0xa5c464[_0x1c957d(0x21ab)])===_0x52ec53['getCurrentUser']()['id']&&_0x169cd7['getMailQueues']();}function _0x199218(_0x5b65e3){const _0x42f5ee=_0x2df9d4;_0x39641b()[_0x42f5ee(0x15ed)](_0x5b65e3[_0x42f5ee(0x21ab)])===_0x52ec53[_0x42f5ee(0x21e8)]()['id']&&_0x169cd7[_0x42f5ee(0x2038)]();}function _0x578ce6(_0x16dbcb){const _0x42064d=_0x2df9d4;_0x169cd7[_0x42064d(0x25a6)][_0x16dbcb[_0x42064d(0x2303)]]&&(_0x169cd7[_0x42064d(0xa82)][_0x16dbcb['id']]=_0x16dbcb,_0x51c737());}function _0x769f72(_0x391118){const _0x1ae504=_0x2df9d4;delete _0x169cd7['rpcMailQueuesWaitingInteractions'][_0x391118['id']],_0x25a991&&_0x169cd7[_0x1ae504(0xb26)][_0x1ae504(0x2785)](_0x391118['id']),_0x51c737();}function _0x220d86(_0x20cf5c){const _0x2d5e46=_0x2df9d4;switch(_0x20cf5c){case'chat':return _0x2d5e46(0x10a7);case _0x2d5e46(0x2651):return _0x2d5e46(0x24ca);case'sms':return'orange-bg';case _0x2d5e46(0x2476):return'lime-A700-bg';case _0x2d5e46(0x15e0):return _0x2d5e46(0x1b13);case _0x2d5e46(0x1944):return _0x2d5e46(0x20d5);default:return _0x2d5e46(0x927);}}_0x24da7b[_0x2df9d4(0x1d6)](_0x2df9d4(0x291c),function(){const _0x680061=_0x2df9d4;_0x111c8b['removeAllListeners'](_0x680061(0x1baa)),_0x111c8b[_0x680061(0xfb8)](_0x680061(0x297a)),_0x111c8b[_0x680061(0xfb8)](_0x680061(0x212a)),_0x111c8b['removeAllListeners'](_0x680061(0xb81)),_0x111c8b[_0x680061(0xfb8)](_0x680061(0x153e)),_0x111c8b[_0x680061(0xfb8)]('userMailQueue:remove'),_0x111c8b[_0x680061(0xfb8)](_0x680061(0x243c)),_0x111c8b[_0x680061(0xfb8)](_0x680061(0x2063));});}const _0x48d5ee=_0x58e034;;_0x569f36[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x2168),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x1f10),_0x5537c6(0x1ae),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1986)];function _0x569f36(_0x113ccb,_0x3a03f1,_0x3b0630,_0x2c5329,_0x69f5b6,_0x40d78d,_0x369952,_0x94b0f5,_0x552a1e){const _0x17f0a4=_0x5537c6,_0x12bbd7=this,_0x814b62=['id',_0x17f0a4(0x16b6),_0x17f0a4(0x473),_0x17f0a4(0x26b6)];let _0x494085=!![];_0x12bbd7['openchannelQueues']={},_0x12bbd7['openchannelQueuesTotal']=0x0,_0x12bbd7[_0x17f0a4(0x24ee)]={},_0x12bbd7[_0x17f0a4(0x110b)]=[],_0x12bbd7[_0x17f0a4(0x2b8)]=[],_0x12bbd7['rpcOpenchannelQueuesWaitingInteractions']={},_0x12bbd7[_0x17f0a4(0xae2)]={'id':_0x94b0f5[_0x17f0a4(0x21e8)]()['id'],'channel':_0x17f0a4(0x15e0),'fields':_0x17f0a4(0x23f1),'limit':0xa,'page':0x1},_0x12bbd7['queryChannels']={'limit':0xa,'page':0x1},_0x12bbd7[_0x17f0a4(0x829)]=_0x4c0fc0,_0x12bbd7[_0x17f0a4(0x2239)]=_0x3e15da,_0x12bbd7[_0x17f0a4(0x265)]=_0x4bce3f,_0x12bbd7[_0x17f0a4(0x879)]=_0x49e6a3,_0x12bbd7[_0x17f0a4(0x27ed)]=_0x60e206,_0x12bbd7[_0x17f0a4(0x24f5)]=_0x5b6834,_0x12bbd7['onSaveOpenchannelQueue']=_0x1f2216,_0x12bbd7[_0x17f0a4(0x12b9)]=_0xe1756,_0x12bbd7['onRemoveOpenchannelQueue']=_0x2707ff,_0x12bbd7[_0x17f0a4(0x15cb)]=_0xa4e7b,_0x12bbd7[_0x17f0a4(0xa55)]=_0x264357,_0x12bbd7[_0x17f0a4(0xc8c)]=_0x50f9ab,_0x12bbd7[_0x17f0a4(0x452)]=_0x12e157,_0x552a1e[_0x17f0a4(0x16b7)](_0x17f0a4(0xc78),_0x12bbd7['onSaveQueue']),_0x552a1e[_0x17f0a4(0x16b7)](_0x17f0a4(0xdcc),_0x12bbd7[_0x17f0a4(0x16ac)]),_0x552a1e['onWithoutApply'](_0x17f0a4(0x105d),_0x12bbd7[_0x17f0a4(0x12b9)]),_0x552a1e['onWithoutApply'](_0x17f0a4(0x1cab),_0x12bbd7[_0x17f0a4(0x1b05)]),_0x552a1e[_0x17f0a4(0x16b7)](_0x17f0a4(0xe20),_0x12bbd7[_0x17f0a4(0x15cb)]),_0x552a1e[_0x17f0a4(0x16b7)](_0x17f0a4(0x1b0a),_0x12bbd7[_0x17f0a4(0xa55)]),_0x552a1e[_0x17f0a4(0x16b7)]('openchannel_queue_waiting_interaction:save',_0x12bbd7[_0x17f0a4(0xc8c)]),_0x552a1e[_0x17f0a4(0x16b7)](_0x17f0a4(0x942),_0x12bbd7['onRemoveOpenchannelQueueChannel']),_0x369952[_0x17f0a4(0x1a00)][_0x17f0a4(0x2239)]()[_0x17f0a4(0x1d77)][_0x17f0a4(0x1cb0)](function(_0x5c250a){const _0x1955a2=_0x17f0a4;_0x12bbd7['rpcOpenchannelQueues']=_0x5c250a?_0x39641b()['keyBy'](_0x5c250a['rows']?_0x5c250a[_0x1955a2(0x2214)]:[],'id'):{};})['then'](function(){const _0x1d4796=_0x17f0a4;return _0x369952[_0x1d4796(0xebe)][_0x1d4796(0x13e9)]({'id':_0x94b0f5[_0x1d4796(0x21e8)]()['id'],'channel':_0x1d4796(0x15e0)})[_0x1d4796(0x1d77)];})[_0x17f0a4(0x1cb0)](function(_0x25fd8e){const _0x59aa93=_0x17f0a4;return _0x12bbd7[_0x59aa93(0x255a)]=_0x25fd8e[_0x59aa93(0x2214)],_0x369952[_0x59aa93(0x1a00)][_0x59aa93(0x258d)]()[_0x59aa93(0x1d77)];})[_0x17f0a4(0x1cb0)](function(_0x1ed588){const _0x13167e=_0x17f0a4,_0x426a85=_0x39641b()[_0x13167e(0x1c99)](_0x1ed588['rows'],function(_0x35ff71){const _0x15391e=_0x13167e;return _0x39641b()[_0x15391e(0x250a)](_0x12bbd7[_0x15391e(0x255a)],{'id':_0x35ff71[_0x15391e(0x2303)]});});_0x1ed588['rows']=_0x426a85,_0x1ed588[_0x13167e(0x184d)]=_0x426a85[_0x13167e(0xfd0)],_0x39641b()['merge'](_0x12bbd7[_0x13167e(0x25dc)],_0x1ed588?_0x39641b()[_0x13167e(0x2631)](_0x1ed588[_0x13167e(0x2214)]?_0x1ed588[_0x13167e(0x2214)]:[],'id'):{});})[_0x17f0a4(0x1c4)](function(_0x277415){const _0x406b9a=_0x17f0a4;console[_0x406b9a(0x218e)](_0x277415);})[_0x17f0a4(0x2e0)](function(){const _0x341eb7=_0x17f0a4;for(let _0x3ee044=0x0;_0x3ee044<_0x12bbd7[_0x341eb7(0x2b8)][_0x341eb7(0xfd0)];_0x3ee044+=0x1){delete _0x12bbd7['rpcOpenchannelQueuesWaitingInteractions'][_0x12bbd7[_0x341eb7(0x2b8)][_0x3ee044]];}_0x494085=![],_0x12bbd7[_0x341eb7(0x2b8)]=[],_0x3e15da(),_0x60e206();});function _0x60e206(){const _0xa86825=_0x17f0a4,_0x266196=(_0x12bbd7[_0xa86825(0x2231)][_0xa86825(0x1c7b)]-0x1)*_0x12bbd7[_0xa86825(0x2231)]['limit'];_0x12bbd7[_0xa86825(0x110b)]=_0x39641b()[_0xa86825(0x17ca)](_0x12bbd7['rpcOpenchannelQueuesWaitingInteractions'],[_0xa86825(0x2943)],[_0xa86825(0x20a5)]),_0x12bbd7[_0xa86825(0xf76)]=_0x39641b()[_0xa86825(0x276f)](_0x12bbd7[_0xa86825(0x110b)],_0x266196)['slice'](0x0,_0x12bbd7[_0xa86825(0x2231)]['limit']);}function _0x4c0fc0(_0x2c639f){const _0x42ddf7=_0x17f0a4;_0x12bbd7[_0x42ddf7(0x1b6c)]=_0x2c639f['count']?_0x2c639f[_0x42ddf7(0x184d)]:0x0,_0x12bbd7[_0x42ddf7(0x1c95)]=_0x2c639f?_0x39641b()[_0x42ddf7(0x2631)](_0x2c639f[_0x42ddf7(0x2214)]?_0x2c639f[_0x42ddf7(0x2214)]:[],'id'):{},_0x3164c0();}function _0x3e15da(){const _0x1a017e=_0x17f0a4;_0x12bbd7[_0x1a017e(0xae2)][_0x1a017e(0x184b)]=(_0x12bbd7[_0x1a017e(0xae2)][_0x1a017e(0x1c7b)]-0x1)*_0x12bbd7[_0x1a017e(0xae2)]['limit'],_0x12bbd7[_0x1a017e(0x2061)]=_0x369952['user'][_0x1a017e(0x13e9)](_0x12bbd7[_0x1a017e(0xae2)],_0x4c0fc0)[_0x1a017e(0x1d77)];}let _0x4b4aef=!![],_0x10cdab=0x1;_0x113ccb[_0x17f0a4(0x614)](_0x17f0a4(0xeb6),function(_0x211671,_0xe25621){const _0x460ba1=_0x17f0a4;_0x4b4aef?_0x3a03f1(function(){_0x4b4aef=![];}):(!_0xe25621&&(_0x10cdab=_0x12bbd7[_0x460ba1(0xae2)]['page']),_0x211671!==_0xe25621&&(_0x12bbd7['query'][_0x460ba1(0x1c7b)]=0x1),!_0x211671&&(_0x12bbd7[_0x460ba1(0xae2)][_0x460ba1(0x1c7b)]=_0x10cdab),_0x12bbd7[_0x460ba1(0x2239)]());});function _0x4bce3f(_0x39a543){const _0x1176d4=_0x17f0a4;return _0x39641b()[_0x1176d4(0x1813)](_0x39a543);}function _0x3164c0(){const _0x24719c=_0x17f0a4;_0x39641b()[_0x24719c(0x1ebd)](_0x12bbd7[_0x24719c(0x1c95)],function(_0x4ef5ec,_0x4adcb1){const _0x3b9ac5=_0x24719c;_0x12bbd7['rpcOpenchannelQueues'][_0x4adcb1]&&(_0x12bbd7[_0x3b9ac5(0x1c95)][_0x4adcb1][_0x3b9ac5(0x26b6)]=_0x12bbd7[_0x3b9ac5(0x24ee)][_0x4adcb1][_0x3b9ac5(0x26b6)]||0x0);});}function _0x5b6834(_0xbfd3e4){const _0x3040de=_0x17f0a4;_0x12bbd7[_0x3040de(0x1c95)][_0xbfd3e4['id']]&&(_0x12bbd7['rpcOpenchannelQueues'][_0xbfd3e4['id']]&&(_0x39641b()[_0x3040de(0x9c1)](_0x12bbd7[_0x3040de(0x24ee)][_0xbfd3e4['id']],_0x39641b()[_0x3040de(0x169b)](_0xbfd3e4,_0x814b62)),_0x39641b()[_0x3040de(0x9c1)](_0x12bbd7[_0x3040de(0x1c95)][_0xbfd3e4['id']],_0x39641b()[_0x3040de(0x169b)](_0xbfd3e4,_0x814b62))));}function _0x1f2216(_0x1f2940){const _0x587885=_0x17f0a4;!_0x39641b()['isNil'](_0x1f2940)&&(_0x12bbd7[_0x587885(0x24ee)][_0x1f2940['id']]=_0x39641b()[_0x587885(0x169b)](_0x1f2940,_0x814b62));}function _0xe1756(_0x2b49ca){const _0x17a50d=_0x17f0a4;!_0x39641b()[_0x17a50d(0x958)](_0x2b49ca)&&(_0x12bbd7['rpcOpenchannelQueues'][_0x2b49ca['id']]&&_0x39641b()[_0x17a50d(0x9c1)](_0x12bbd7[_0x17a50d(0x24ee)][_0x2b49ca['id']],_0x39641b()['pick'](_0x2b49ca,_0x814b62)),_0x12bbd7[_0x17a50d(0x1c95)][_0x2b49ca['id']]&&_0x39641b()[_0x17a50d(0x9c1)](_0x12bbd7['openchannelQueues'][_0x2b49ca['id']],_0x39641b()[_0x17a50d(0x169b)](_0x2b49ca,_0x814b62)));}function _0x2707ff(_0x4429a1){const _0x58df10=_0x17f0a4;!_0x39641b()[_0x58df10(0x958)](_0x4429a1)&&(delete _0x12bbd7['rpcOpenchannelQueues'][_0x4429a1['id']],delete _0x12bbd7[_0x58df10(0x1c95)][_0x4429a1['id']]);}function _0xa4e7b(_0x5e0ab1){const _0x3dd78d=_0x17f0a4;_0x39641b()[_0x3dd78d(0x15ed)](_0x5e0ab1[_0x3dd78d(0x21ab)])===_0x94b0f5[_0x3dd78d(0x21e8)]()['id']&&_0x12bbd7[_0x3dd78d(0x2239)]();}function _0x264357(_0x3b110f){const _0xa426ba=_0x17f0a4;_0x39641b()['toInteger'](_0x3b110f[_0xa426ba(0x21ab)])===_0x94b0f5['getCurrentUser']()['id']&&_0x12bbd7[_0xa426ba(0x2239)]();}function _0x50f9ab(_0x428d73){const _0x38657b=_0x17f0a4;_0x12bbd7[_0x38657b(0x1c95)][_0x428d73[_0x38657b(0x2303)]]&&(_0x12bbd7[_0x38657b(0x25dc)][_0x428d73['id']]=_0x428d73,_0x60e206());}function _0x12e157(_0x3f8741){const _0x3f31d5=_0x17f0a4;delete _0x12bbd7['rpcOpenchannelQueuesWaitingInteractions'][_0x3f8741['id']],_0x494085&&_0x12bbd7[_0x3f31d5(0x2b8)][_0x3f31d5(0x2785)](_0x3f8741['id']),_0x60e206();}function _0x49e6a3(_0x3b4c71){const _0x4368b6=_0x17f0a4;switch(_0x3b4c71){case'chat':return _0x4368b6(0x10a7);case _0x4368b6(0x2651):return _0x4368b6(0x24ca);case _0x4368b6(0x689):return _0x4368b6(0x50e);case'whatsapp':return _0x4368b6(0xf3a);case'openchannel':return _0x4368b6(0x1b13);case _0x4368b6(0x1944):return _0x4368b6(0x20d5);default:return _0x4368b6(0x927);}}_0x113ccb[_0x17f0a4(0x1d6)](_0x17f0a4(0x291c),function(){const _0x128011=_0x17f0a4;_0x552a1e[_0x128011(0xfb8)](_0x128011(0xc78)),_0x552a1e[_0x128011(0xfb8)](_0x128011(0xdcc)),_0x552a1e[_0x128011(0xfb8)](_0x128011(0x105d)),_0x552a1e[_0x128011(0xfb8)](_0x128011(0x1cab)),_0x552a1e[_0x128011(0xfb8)](_0x128011(0xe20)),_0x552a1e[_0x128011(0xfb8)](_0x128011(0x1b0a)),_0x552a1e['removeAllListeners'](_0x128011(0x1326)),_0x552a1e[_0x128011(0xfb8)]('openchannel_queue_waiting_interaction:remove');});}const _0x234344=_0x569f36;;_0x3ab1eb[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x2168),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x1f10),_0x5537c6(0x1ae),'api',_0x5537c6(0x1774),_0x5537c6(0x1986)];function _0x3ab1eb(_0x439c85,_0x534fc2,_0x273cdf,_0x343a5c,_0x3c559b,_0x469255,_0xcbc055,_0x3439ee,_0x265443){const _0x148c7b=_0x5537c6,_0x169017=this,_0x4c69c3=['id',_0x148c7b(0x16b6),_0x148c7b(0x473),_0x148c7b(0x26b6)];let _0x469d99=!![];_0x169017[_0x148c7b(0x1863)]={},_0x169017['smsQueuesTotal']=0x0,_0x169017[_0x148c7b(0x28a5)]={},_0x169017[_0x148c7b(0x110b)]=[],_0x169017[_0x148c7b(0xa03)]=[],_0x169017[_0x148c7b(0x1999)]={},_0x169017['query']={'id':_0x3439ee[_0x148c7b(0x21e8)]()['id'],'channel':_0x148c7b(0x689),'fields':_0x148c7b(0x23f1),'limit':0xa,'page':0x1},_0x169017[_0x148c7b(0x2231)]={'limit':0xa,'page':0x1},_0x169017[_0x148c7b(0x829)]=_0x594ff3,_0x169017[_0x148c7b(0x6b3)]=_0x11ee12,_0x169017[_0x148c7b(0x265)]=_0x1e7c60,_0x169017[_0x148c7b(0x879)]=_0x48bc3e,_0x169017[_0x148c7b(0x27ed)]=_0x55312c,_0x169017[_0x148c7b(0x24f5)]=_0x3fbb3b,_0x169017[_0x148c7b(0x197)]=_0x371c17,_0x169017[_0x148c7b(0x1cf5)]=_0x4ab58f,_0x169017['onRemoveSmsQueue']=_0x150a20,_0x169017[_0x148c7b(0x324)]=_0x35fa78,_0x169017[_0x148c7b(0x115d)]=_0x593e6e,_0x169017[_0x148c7b(0x944)]=_0x426280,_0x169017[_0x148c7b(0x14c3)]=_0x46098d,_0x265443[_0x148c7b(0x16b7)](_0x148c7b(0xc51),_0x169017['onSaveQueue']),_0x265443[_0x148c7b(0x16b7)](_0x148c7b(0x2109),_0x169017[_0x148c7b(0x197)]),_0x265443[_0x148c7b(0x16b7)](_0x148c7b(0x17cc),_0x169017[_0x148c7b(0x1cf5)]),_0x265443[_0x148c7b(0x16b7)](_0x148c7b(0x1c6),_0x169017[_0x148c7b(0x18eb)]),_0x265443[_0x148c7b(0x16b7)](_0x148c7b(0x10e0),_0x169017[_0x148c7b(0x324)]),_0x265443[_0x148c7b(0x16b7)](_0x148c7b(0x15c4),_0x169017[_0x148c7b(0x115d)]),_0x265443[_0x148c7b(0x16b7)](_0x148c7b(0x1063),_0x169017[_0x148c7b(0x944)]),_0x265443['onWithoutApply'](_0x148c7b(0x1797),_0x169017[_0x148c7b(0x14c3)]),_0xcbc055[_0x148c7b(0x1a00)][_0x148c7b(0x6b3)]()[_0x148c7b(0x1d77)][_0x148c7b(0x1cb0)](function(_0x3f31b1){const _0x4f37bc=_0x148c7b;_0x169017[_0x4f37bc(0x28a5)]=_0x3f31b1?_0x39641b()[_0x4f37bc(0x2631)](_0x3f31b1['rows']?_0x3f31b1[_0x4f37bc(0x2214)]:[],'id'):{};})['then'](function(){const _0x5d8a81=_0x148c7b;return _0xcbc055[_0x5d8a81(0xebe)]['getQueues']({'id':_0x3439ee['getCurrentUser']()['id'],'channel':_0x5d8a81(0x689)})[_0x5d8a81(0x1d77)];})[_0x148c7b(0x1cb0)](function(_0x2def99){const _0x28b336=_0x148c7b;return _0x169017[_0x28b336(0x255a)]=_0x2def99[_0x28b336(0x2214)],_0xcbc055[_0x28b336(0x1a00)][_0x28b336(0x233b)]()['$promise'];})[_0x148c7b(0x1cb0)](function(_0x25eeb1){const _0x17034d=_0x148c7b,_0xdefc0e=_0x39641b()[_0x17034d(0x1c99)](_0x25eeb1['rows'],function(_0x4c9bf2){const _0x29f7c1=_0x17034d;return _0x39641b()[_0x29f7c1(0x250a)](_0x169017['myQueues'],{'id':_0x4c9bf2['queue_id']});});_0x25eeb1[_0x17034d(0x2214)]=_0xdefc0e,_0x25eeb1[_0x17034d(0x184d)]=_0xdefc0e[_0x17034d(0xfd0)],_0x39641b()[_0x17034d(0x9c1)](_0x169017[_0x17034d(0x1999)],_0x25eeb1?_0x39641b()['keyBy'](_0x25eeb1[_0x17034d(0x2214)]?_0x25eeb1[_0x17034d(0x2214)]:[],'id'):{});})[_0x148c7b(0x1c4)](function(_0x5c83f7){const _0x34f874=_0x148c7b;console[_0x34f874(0x218e)](_0x5c83f7);})[_0x148c7b(0x2e0)](function(){const _0x55f4df=_0x148c7b;for(let _0x1ecf63=0x0;_0x1ecf63<_0x169017['deleteSmsQueuesWaitingInteractions'][_0x55f4df(0xfd0)];_0x1ecf63+=0x1){delete _0x169017['rpcSmsQueuesWaitingInteractions'][_0x169017[_0x55f4df(0xa03)][_0x1ecf63]];}_0x469d99=![],_0x169017[_0x55f4df(0xa03)]=[],_0x11ee12(),_0x55312c();});function _0x55312c(){const _0xaa4db9=_0x148c7b,_0x396f9f=(_0x169017[_0xaa4db9(0x2231)][_0xaa4db9(0x1c7b)]-0x1)*_0x169017[_0xaa4db9(0x2231)][_0xaa4db9(0x236)];_0x169017[_0xaa4db9(0x110b)]=_0x39641b()['orderBy'](_0x169017[_0xaa4db9(0x1999)],[_0xaa4db9(0x2943)],[_0xaa4db9(0x20a5)]),_0x169017[_0xaa4db9(0xf76)]=_0x39641b()[_0xaa4db9(0x276f)](_0x169017[_0xaa4db9(0x110b)],_0x396f9f)[_0xaa4db9(0x14cb)](0x0,_0x169017[_0xaa4db9(0x2231)][_0xaa4db9(0x236)]);}function _0x594ff3(_0x5ad272){const _0x5c11ce=_0x148c7b;_0x169017[_0x5c11ce(0x832)]=_0x5ad272[_0x5c11ce(0x184d)]?_0x5ad272[_0x5c11ce(0x184d)]:0x0,_0x169017[_0x5c11ce(0x1863)]=_0x5ad272?_0x39641b()['keyBy'](_0x5ad272[_0x5c11ce(0x2214)]?_0x5ad272['rows']:[],'id'):{},_0x390894();}function _0x11ee12(){const _0x77a5c5=_0x148c7b;_0x169017['query'][_0x77a5c5(0x184b)]=(_0x169017['query'][_0x77a5c5(0x1c7b)]-0x1)*_0x169017['query'][_0x77a5c5(0x236)],_0x169017[_0x77a5c5(0x2061)]=_0xcbc055[_0x77a5c5(0xebe)][_0x77a5c5(0x13e9)](_0x169017['query'],_0x594ff3)['$promise'];}let _0x3dc04d=!![],_0x34c0ab=0x1;_0x439c85[_0x148c7b(0x614)](_0x148c7b(0xeb6),function(_0x492d94,_0x131c65){const _0x1ad16d=_0x148c7b;_0x3dc04d?_0x534fc2(function(){_0x3dc04d=![];}):(!_0x131c65&&(_0x34c0ab=_0x169017[_0x1ad16d(0xae2)][_0x1ad16d(0x1c7b)]),_0x492d94!==_0x131c65&&(_0x169017[_0x1ad16d(0xae2)][_0x1ad16d(0x1c7b)]=0x1),!_0x492d94&&(_0x169017['query'][_0x1ad16d(0x1c7b)]=_0x34c0ab),_0x169017[_0x1ad16d(0x6b3)]());});function _0x1e7c60(_0xc944e2){const _0x4855a2=_0x148c7b;return _0x39641b()[_0x4855a2(0x1813)](_0xc944e2);}function _0x390894(){const _0x1091ed=_0x148c7b;_0x39641b()[_0x1091ed(0x1ebd)](_0x169017['smsQueues'],function(_0x56cbc6,_0x23d91e){const _0xa133e4=_0x1091ed;_0x169017[_0xa133e4(0x28a5)][_0x23d91e]&&(_0x169017[_0xa133e4(0x1863)][_0x23d91e][_0xa133e4(0x26b6)]=_0x169017['rpcSmsQueues'][_0x23d91e]['waiting']||0x0);});}function _0x3fbb3b(_0x4566da){const _0x872a00=_0x148c7b;_0x169017[_0x872a00(0x1863)][_0x4566da['id']]&&(_0x169017['rpcSmsQueues'][_0x4566da['id']]&&(_0x39641b()[_0x872a00(0x9c1)](_0x169017[_0x872a00(0x28a5)][_0x4566da['id']],_0x39641b()['pick'](_0x4566da,_0x4c69c3)),_0x39641b()[_0x872a00(0x9c1)](_0x169017[_0x872a00(0x1863)][_0x4566da['id']],_0x39641b()[_0x872a00(0x169b)](_0x4566da,_0x4c69c3))));}function _0x371c17(_0x36d77a){const _0x3fb79f=_0x148c7b;!_0x39641b()['isNil'](_0x36d77a)&&(_0x169017[_0x3fb79f(0x28a5)][_0x36d77a['id']]=_0x39641b()[_0x3fb79f(0x169b)](_0x36d77a,_0x4c69c3));}function _0x4ab58f(_0x8849eb){const _0x51c748=_0x148c7b;!_0x39641b()[_0x51c748(0x958)](_0x8849eb)&&(_0x169017[_0x51c748(0x28a5)][_0x8849eb['id']]&&_0x39641b()['merge'](_0x169017[_0x51c748(0x28a5)][_0x8849eb['id']],_0x39641b()[_0x51c748(0x169b)](_0x8849eb,_0x4c69c3)),_0x169017[_0x51c748(0x1863)][_0x8849eb['id']]&&_0x39641b()[_0x51c748(0x9c1)](_0x169017['smsQueues'][_0x8849eb['id']],_0x39641b()[_0x51c748(0x169b)](_0x8849eb,_0x4c69c3)));}function _0x150a20(_0x2eea72){const _0x12ce40=_0x148c7b;!_0x39641b()[_0x12ce40(0x958)](_0x2eea72)&&(delete _0x169017[_0x12ce40(0x28a5)][_0x2eea72['id']],delete _0x169017[_0x12ce40(0x1863)][_0x2eea72['id']]);}function _0x35fa78(_0x14fc1a){const _0x46c929=_0x148c7b;_0x39641b()[_0x46c929(0x15ed)](_0x14fc1a[_0x46c929(0x21ab)])===_0x3439ee[_0x46c929(0x21e8)]()['id']&&_0x169017['getSmsQueues']();}function _0x593e6e(_0x49da8e){const _0x423aa0=_0x148c7b;_0x39641b()[_0x423aa0(0x15ed)](_0x49da8e[_0x423aa0(0x21ab)])===_0x3439ee[_0x423aa0(0x21e8)]()['id']&&_0x169017[_0x423aa0(0x6b3)]();}function _0x426280(_0x59bde3){const _0x292704=_0x148c7b;_0x169017[_0x292704(0x1863)][_0x59bde3[_0x292704(0x2303)]]&&(_0x169017[_0x292704(0x1999)][_0x59bde3['id']]=_0x59bde3,_0x55312c());}function _0x46098d(_0x109978){const _0xe865ea=_0x148c7b;delete _0x169017[_0xe865ea(0x1999)][_0x109978['id']],_0x469d99&&_0x169017[_0xe865ea(0xa03)]['push'](_0x109978['id']),_0x55312c();}function _0x48bc3e(_0x5f37d6){const _0x2cf6d7=_0x148c7b;switch(_0x5f37d6){case'chat':return _0x2cf6d7(0x10a7);case'mail':return _0x2cf6d7(0x24ca);case _0x2cf6d7(0x689):return _0x2cf6d7(0x50e);case'whatsapp':return _0x2cf6d7(0xf3a);case _0x2cf6d7(0x15e0):return _0x2cf6d7(0x1b13);case'fax':return _0x2cf6d7(0x20d5);default:return _0x2cf6d7(0x927);}}_0x439c85[_0x148c7b(0x1d6)](_0x148c7b(0x291c),function(){const _0x5c2bbf=_0x148c7b;_0x265443[_0x5c2bbf(0xfb8)](_0x5c2bbf(0xc51)),_0x265443[_0x5c2bbf(0xfb8)](_0x5c2bbf(0x2109)),_0x265443[_0x5c2bbf(0xfb8)]('smsQueue:update'),_0x265443[_0x5c2bbf(0xfb8)](_0x5c2bbf(0x1c6)),_0x265443[_0x5c2bbf(0xfb8)](_0x5c2bbf(0x10e0)),_0x265443[_0x5c2bbf(0xfb8)]('userSmsQueue:remove'),_0x265443[_0x5c2bbf(0xfb8)](_0x5c2bbf(0x1063)),_0x265443[_0x5c2bbf(0xfb8)](_0x5c2bbf(0x1797));});}const _0x3c2e99=_0x3ab1eb;;_0x3f4b0f['$inject']=[_0x5537c6(0x1463),'$timeout','$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x1f10),_0x5537c6(0x1ae),_0x5537c6(0x142b),'Auth','socket'];function _0x3f4b0f(_0x553130,_0x1c9c80,_0x43291c,_0x38304b,_0x55e194,_0x523e2b,_0x4c607c,_0x215fa9,_0x1faddd){const _0x585c86=_0x5537c6,_0x35eb92=this,_0x1d2894=[_0x585c86(0x66a),_0x585c86(0x26b6),_0x585c86(0xda8),_0x585c86(0x737)];_0x35eb92[_0x585c86(0x278a)]={},_0x35eb92[_0x585c86(0x2a4)]=0x0,_0x35eb92['rpcVoiceQueues']={},_0x35eb92[_0x585c86(0x172b)]={},_0x35eb92[_0x585c86(0x4b1)]={},_0x35eb92[_0x585c86(0x214d)]={},_0x35eb92[_0x585c86(0x18a0)]=[],_0x35eb92[_0x585c86(0x997)]=!![],_0x35eb92[_0x585c86(0xae2)]={'id':_0x215fa9[_0x585c86(0x21e8)]()['id'],'fields':_0x585c86(0x776),'channel':_0x585c86(0x1fd4),'type':_0x585c86(0x26c0),'limit':0xa,'page':0x1},_0x35eb92[_0x585c86(0x2231)]={'limit':0xa,'page':0x1},_0x35eb92[_0x585c86(0x829)]=_0x199a05,_0x35eb92[_0x585c86(0x172b)]=_0x8d2a4b,_0x35eb92[_0x585c86(0x265)]=_0xc3db4b,_0x35eb92[_0x585c86(0x24f5)]=_0x5ccc00,_0x35eb92[_0x585c86(0x1f51)]=_0x3eb818,_0x35eb92['onUserVoiceQueue']=_0x1ff3e6,_0x35eb92[_0x585c86(0x283a)]=_0x68d257,_0x35eb92[_0x585c86(0x1de5)]=_0x2e5cb5,_0x35eb92[_0x585c86(0xe75)]=_0x1f4f2b,_0x1faddd[_0x585c86(0x16b7)](_0x585c86(0x82a),_0x35eb92[_0x585c86(0x24f5)]),_0x1faddd[_0x585c86(0x16b7)](_0x585c86(0x338),_0x35eb92[_0x585c86(0x1f51)]),_0x1faddd[_0x585c86(0x16b7)]('userVoiceQueue:save',_0x35eb92[_0x585c86(0x20b7)]),_0x1faddd['onWithoutApply'](_0x585c86(0x201e),_0x35eb92['onUserVoiceQueue']),_0x1faddd[_0x585c86(0x16b7)](_0x585c86(0x1fe3),_0x35eb92[_0x585c86(0x283a)]),_0x1faddd['onWithoutApply'](_0x585c86(0xb50),_0x35eb92[_0x585c86(0xe75)]),_0x1faddd[_0x585c86(0x16b7)](_0x585c86(0x18e8),_0x35eb92[_0x585c86(0x1de5)]),_0x4c607c[_0x585c86(0xebe)][_0x585c86(0x13e9)](_0x35eb92['query'])[_0x585c86(0x1d77)][_0x585c86(0x1cb0)](function(_0x15abdb){const _0x455341=_0x585c86;return _0x35eb92['myQueues']=_0x15abdb,_0x4c607c[_0x455341(0x1a00)][_0x455341(0x172b)]()[_0x455341(0x1d77)];})['then'](function(_0x2a50c0){const _0x576e31=_0x585c86,_0x5605c1=_0x2a50c0[_0x576e31(0x2214)],_0x169407=_0x39641b()[_0x576e31(0x2631)](_0x5605c1,'id');for(let _0x10e701=0x0;_0x10e701<_0x35eb92[_0x576e31(0x255a)]['count'];_0x10e701++){const _0x992572=_0x35eb92[_0x576e31(0x255a)][_0x576e31(0x2214)][_0x10e701];_0x35eb92[_0x576e31(0x1abc)][_0x992572['id']]=_0x169407[_0x992572['id']];}return _0x4c607c[_0x576e31(0x1a00)][_0x576e31(0x19f2)]()[_0x576e31(0x1d77)];})['then'](function(_0x16baed){const _0x46f662=_0x585c86;_0x35eb92[_0x46f662(0x4b1)]=_0x16baed?_0x39641b()[_0x46f662(0x2631)](_0x16baed[_0x46f662(0x2214)]?_0x39641b()['filter'](_0x16baed['rows'],function(_0x33e921){const _0x3d8dee=_0x46f662;if(_0x33e921[_0x3d8dee(0x66a)]===_0x3d8dee(0x26c0)&&!_0x33e921[_0x3d8dee(0xe56)]&&_0x39641b()[_0x3d8dee(0x13b4)](_0x35eb92[_0x3d8dee(0x255a)][_0x3d8dee(0x2214)],{'name':_0x33e921['queue']}))return!![];return![];}):[],_0x46f662(0x1425)):{};})['catch'](function(_0x36e333){const _0x4bade2=_0x585c86;console[_0x4bade2(0x218e)](_0x36e333);})['finally'](function(){const _0x4de9ca=_0x585c86;_0x39641b()[_0x4de9ca(0x9c1)](_0x35eb92[_0x4de9ca(0x4b1)],_0x35eb92[_0x4de9ca(0x214d)]);for(let _0x243759=0x0;_0x243759<_0x35eb92['deleteVoiceQueuesChannels'][_0x4de9ca(0xfd0)];_0x243759+=0x1){delete _0x35eb92[_0x4de9ca(0x4b1)][_0x35eb92[_0x4de9ca(0x18a0)][_0x243759]];}_0x35eb92[_0x4de9ca(0x997)]=![],_0x35eb92[_0x4de9ca(0x214d)]={},_0x35eb92[_0x4de9ca(0x18a0)]=[],_0x35eb92[_0x4de9ca(0x172b)]();});function _0x199a05(_0x23bfde){const _0x593eb0=_0x585c86;_0x35eb92[_0x593eb0(0x2a4)]=_0x23bfde[_0x593eb0(0x184d)]?_0x23bfde[_0x593eb0(0x184d)]:0x0,_0x35eb92['voiceQueues']=_0x23bfde?_0x39641b()[_0x593eb0(0x2631)](_0x23bfde[_0x593eb0(0x2214)]?_0x23bfde[_0x593eb0(0x2214)]:[],'id'):{},_0x21482b();}function _0x8d2a4b(){const _0x22205f=_0x585c86;_0x35eb92[_0x22205f(0xae2)][_0x22205f(0x184b)]=(_0x35eb92[_0x22205f(0xae2)][_0x22205f(0x1c7b)]-0x1)*_0x35eb92[_0x22205f(0xae2)]['limit'],_0x35eb92[_0x22205f(0x2061)]=_0x4c607c['user'][_0x22205f(0x13e9)](_0x35eb92['query'],_0x199a05)[_0x22205f(0x1d77)];}let _0x2d5991=!![],_0xa894d=0x1;_0x553130[_0x585c86(0x614)]('vm_dc.query.filter',function(_0x5ae87a,_0x44af90){const _0x400e17=_0x585c86;_0x2d5991?_0x1c9c80(function(){_0x2d5991=![];}):(!_0x44af90&&(_0xa894d=_0x35eb92[_0x400e17(0xae2)][_0x400e17(0x1c7b)]),_0x5ae87a!==_0x44af90&&(_0x35eb92['query'][_0x400e17(0x1c7b)]=0x1),!_0x5ae87a&&(_0x35eb92['query']['page']=_0xa894d),_0x35eb92[_0x400e17(0x172b)]());});function _0xc3db4b(_0x5b5585){const _0x153d9c=_0x585c86;return _0x39641b()[_0x153d9c(0x1813)](_0x5b5585);}function _0x21482b(){const _0x34caeb=_0x585c86;_0x39641b()[_0x34caeb(0x1ebd)](_0x35eb92[_0x34caeb(0x278a)],function(_0x3bab74,_0x553fb1){const _0xad3dcd=_0x34caeb;_0x35eb92[_0xad3dcd(0x1abc)][_0x553fb1]&&(_0x35eb92[_0xad3dcd(0x278a)][_0x553fb1][_0xad3dcd(0x26b6)]=_0x35eb92[_0xad3dcd(0x1abc)][_0x553fb1][_0xad3dcd(0x26b6)]||0x0);});}function _0x5ccc00(_0x30d4a1){const _0x16fe4a=_0x585c86;_0x35eb92[_0x16fe4a(0x278a)][_0x30d4a1['id']]&&(_0x35eb92[_0x16fe4a(0x1abc)][_0x30d4a1['id']]&&(_0x35eb92[_0x16fe4a(0x1abc)][_0x30d4a1['id']]=_0x30d4a1,_0x39641b()['merge'](_0x35eb92['voiceQueues'][_0x30d4a1['id']],_0x39641b()[_0x16fe4a(0x169b)](_0x30d4a1,_0x1d2894))));}function _0x3eb818(_0x34146d){const _0x1f928d=_0x585c86;_0x34146d[_0x1f928d(0x66a)]===_0x1f928d(0x26c0)&&(_0x34146d[_0x1f928d(0xe56)]?(delete _0x35eb92[_0x1f928d(0x4b1)][_0x34146d['uniqueid']],_0x35eb92[_0x1f928d(0x997)]&&_0x35eb92[_0x1f928d(0x18a0)]['push'](_0x34146d['uniqueid'])):(_0x35eb92[_0x1f928d(0x4b1)][_0x34146d[_0x1f928d(0x1425)]]=_0x34146d,_0x35eb92[_0x1f928d(0x997)]&&(_0x35eb92[_0x1f928d(0x214d)][_0x34146d[_0x1f928d(0x1425)]]=_0x34146d)));}function _0x68d257(_0x264ca1){const _0x324bf4=_0x585c86;!_0x39641b()[_0x324bf4(0x958)](_0x264ca1)&&(_0x35eb92[_0x324bf4(0x1abc)][_0x264ca1['id']]=_0x39641b()[_0x324bf4(0x169b)](_0x264ca1,_0x1d2894));}function _0x2e5cb5(_0x584124){const _0x427144=_0x585c86;!_0x39641b()[_0x427144(0x958)](_0x584124)&&(_0x35eb92[_0x427144(0x1abc)][_0x584124['id']]&&_0x39641b()[_0x427144(0x9c1)](_0x35eb92[_0x427144(0x1abc)][_0x584124['id']],_0x39641b()[_0x427144(0x169b)](_0x584124,_0x1d2894)),_0x35eb92['voiceQueues'][_0x584124['id']]&&_0x39641b()['merge'](_0x35eb92[_0x427144(0x278a)][_0x584124['id']],_0x39641b()[_0x427144(0x169b)](_0x584124,_0x1d2894)));}function _0x1f4f2b(_0x381079){const _0x1b7794=_0x585c86;!_0x39641b()[_0x1b7794(0x958)](_0x381079)&&(delete _0x35eb92['rpcVoiceQueues'][_0x381079['id']],delete _0x35eb92[_0x1b7794(0x278a)][_0x381079['id']]);}function _0x1ff3e6(_0x570f7e){const _0x1d7c8b=_0x585c86;_0x39641b()['toInteger'](_0x570f7e[_0x1d7c8b(0x21ab)])===_0x215fa9[_0x1d7c8b(0x21e8)]()['id']&&_0x35eb92[_0x1d7c8b(0x172b)]();}_0x553130[_0x585c86(0x1d6)](_0x585c86(0x291c),function(){const _0x30f6b8=_0x585c86;_0x1faddd[_0x30f6b8(0xfb8)](_0x30f6b8(0x82a)),_0x1faddd['removeAllListeners'](_0x30f6b8(0x338)),_0x1faddd[_0x30f6b8(0xfb8)](_0x30f6b8(0x828)),_0x1faddd[_0x30f6b8(0xfb8)](_0x30f6b8(0x201e)),_0x1faddd[_0x30f6b8(0xfb8)](_0x30f6b8(0x1fe3)),_0x1faddd[_0x30f6b8(0xfb8)](_0x30f6b8(0x18e8)),_0x1faddd['removeAllListeners']('voiceQueue:remove');});}const _0x48a4c6=_0x3f4b0f;;_0x34ca91['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1f10),_0x5537c6(0x1ae),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1986)];function _0x34ca91(_0x43a836,_0x372be2,_0x3fdcf0,_0xa8b196,_0x47b6d2,_0x198e85,_0xe4d465,_0x59152b,_0x3ad211){const _0x55ad81=_0x5537c6,_0x1e23f1=this,_0x1519a8=['id',_0x55ad81(0x16b6),'mapAgentsId',_0x55ad81(0x26b6)];let _0x56dacc=!![];_0x1e23f1[_0x55ad81(0x6d8)]={},_0x1e23f1[_0x55ad81(0x575)]=0x0,_0x1e23f1[_0x55ad81(0x232f)]={},_0x1e23f1[_0x55ad81(0x110b)]=[],_0x1e23f1[_0x55ad81(0xf69)]=[],_0x1e23f1[_0x55ad81(0x1866)]={},_0x1e23f1[_0x55ad81(0xae2)]={'id':_0x59152b[_0x55ad81(0x21e8)]()['id'],'channel':_0x55ad81(0x2476),'fields':'id,name,mapAgentsId,waiting','limit':0xa,'page':0x1},_0x1e23f1[_0x55ad81(0x2231)]={'limit':0xa,'page':0x1},_0x1e23f1[_0x55ad81(0x829)]=_0x2cac57,_0x1e23f1[_0x55ad81(0xc5c)]=_0x4a734a,_0x1e23f1[_0x55ad81(0x265)]=_0xec025b,_0x1e23f1['getColorByChannel']=_0x5beb1c,_0x1e23f1['paginate']=_0x5b8214,_0x1e23f1['onSaveQueue']=_0x224b58,_0x1e23f1[_0x55ad81(0x1502)]=_0x42db0a,_0x1e23f1['onUpdateWhatsappQueue']=_0x3e77a9,_0x1e23f1['onRemoveWhatsappQueue']=_0x3bf5ee,_0x1e23f1[_0x55ad81(0x25c9)]=_0x25c9fb,_0x1e23f1[_0x55ad81(0x2869)]=_0x512655,_0x1e23f1['onSaveWhatsappQueueChannel']=_0x22cc60,_0x1e23f1[_0x55ad81(0x29d7)]=_0x391f71,_0x3ad211['onWithoutApply'](_0x55ad81(0x2682),_0x1e23f1['onSaveQueue']),_0x3ad211[_0x55ad81(0x16b7)](_0x55ad81(0x114b),_0x1e23f1[_0x55ad81(0x1502)]),_0x3ad211[_0x55ad81(0x16b7)](_0x55ad81(0x1782),_0x1e23f1[_0x55ad81(0x2554)]),_0x3ad211['onWithoutApply']('whatsappQueue:remove',_0x1e23f1[_0x55ad81(0xbb2)]),_0x3ad211[_0x55ad81(0x16b7)](_0x55ad81(0x121e),_0x1e23f1[_0x55ad81(0x25c9)]),_0x3ad211[_0x55ad81(0x16b7)]('userWhatsappQueue:remove',_0x1e23f1[_0x55ad81(0x2869)]),_0x3ad211[_0x55ad81(0x16b7)]('whatsapp_queue_waiting_interaction:save',_0x1e23f1[_0x55ad81(0x1ef5)]),_0x3ad211[_0x55ad81(0x16b7)](_0x55ad81(0x285f),_0x1e23f1[_0x55ad81(0x29d7)]),_0xe4d465[_0x55ad81(0x1a00)][_0x55ad81(0xc5c)]()[_0x55ad81(0x1d77)]['then'](function(_0x3cfedd){const _0x554bc1=_0x55ad81;_0x1e23f1['rpcWhatsappQueues']=_0x3cfedd?_0x39641b()[_0x554bc1(0x2631)](_0x3cfedd[_0x554bc1(0x2214)]?_0x3cfedd[_0x554bc1(0x2214)]:[],'id'):{};})[_0x55ad81(0x1cb0)](function(){const _0x168b58=_0x55ad81;return _0xe4d465[_0x168b58(0xebe)][_0x168b58(0x13e9)]({'id':_0x59152b['getCurrentUser']()['id'],'channel':_0x168b58(0x2476)})[_0x168b58(0x1d77)];})[_0x55ad81(0x1cb0)](function(_0x3e745b){const _0x2db40e=_0x55ad81;return _0x1e23f1[_0x2db40e(0x255a)]=_0x3e745b[_0x2db40e(0x2214)],_0xe4d465[_0x2db40e(0x1a00)][_0x2db40e(0x1ed4)]()[_0x2db40e(0x1d77)];})['then'](function(_0xab484){const _0x227e2a=_0x55ad81,_0x12b448=_0x39641b()[_0x227e2a(0x1c99)](_0xab484[_0x227e2a(0x2214)],function(_0xe3b2a2){const _0x585022=_0x227e2a;return _0x39641b()['includes'](_0x1e23f1[_0x585022(0x255a)],{'id':_0xe3b2a2[_0x585022(0x2303)]});});_0xab484[_0x227e2a(0x2214)]=_0x12b448,_0xab484[_0x227e2a(0x184d)]=_0x12b448['length'],_0x39641b()[_0x227e2a(0x9c1)](_0x1e23f1[_0x227e2a(0x1866)],_0xab484?_0x39641b()[_0x227e2a(0x2631)](_0xab484[_0x227e2a(0x2214)]?_0xab484[_0x227e2a(0x2214)]:[],'id'):{});})[_0x55ad81(0x1c4)](function(_0x200db4){console['error'](_0x200db4);})[_0x55ad81(0x2e0)](function(){const _0x25229c=_0x55ad81;for(let _0x5c9b73=0x0;_0x5c9b73<_0x1e23f1[_0x25229c(0xf69)][_0x25229c(0xfd0)];_0x5c9b73+=0x1){delete _0x1e23f1[_0x25229c(0x1866)][_0x1e23f1[_0x25229c(0xf69)][_0x5c9b73]];}_0x56dacc=![],_0x1e23f1['deleteWhatsappQueuesWaitingInteractions']=[],_0x4a734a(),_0x5b8214();});function _0x5b8214(){const _0x34cf18=_0x55ad81,_0x52cf80=(_0x1e23f1['queryChannels'][_0x34cf18(0x1c7b)]-0x1)*_0x1e23f1[_0x34cf18(0x2231)][_0x34cf18(0x236)];_0x1e23f1['paginatedInteractions']=_0x39641b()[_0x34cf18(0x17ca)](_0x1e23f1['rpcWhatsappQueuesWaitingInteractions'],[_0x34cf18(0x2943)],[_0x34cf18(0x20a5)]),_0x1e23f1[_0x34cf18(0xf76)]=_0x39641b()['drop'](_0x1e23f1[_0x34cf18(0x110b)],_0x52cf80)[_0x34cf18(0x14cb)](0x0,_0x1e23f1['queryChannels'][_0x34cf18(0x236)]);}function _0x2cac57(_0x1a6289){const _0x2f8a64=_0x55ad81;_0x1e23f1[_0x2f8a64(0x575)]=_0x1a6289[_0x2f8a64(0x184d)]?_0x1a6289[_0x2f8a64(0x184d)]:0x0,_0x1e23f1[_0x2f8a64(0x6d8)]=_0x1a6289?_0x39641b()[_0x2f8a64(0x2631)](_0x1a6289[_0x2f8a64(0x2214)]?_0x1a6289[_0x2f8a64(0x2214)]:[],'id'):{},_0x5cbc76();}function _0x4a734a(){const _0x374323=_0x55ad81;_0x1e23f1[_0x374323(0xae2)][_0x374323(0x184b)]=(_0x1e23f1[_0x374323(0xae2)][_0x374323(0x1c7b)]-0x1)*_0x1e23f1[_0x374323(0xae2)][_0x374323(0x236)],_0x1e23f1[_0x374323(0x2061)]=_0xe4d465[_0x374323(0xebe)][_0x374323(0x13e9)](_0x1e23f1[_0x374323(0xae2)],_0x2cac57)[_0x374323(0x1d77)];}let _0x3bfbdc=!![],_0x233539=0x1;_0x43a836[_0x55ad81(0x614)](_0x55ad81(0xeb6),function(_0x3664f4,_0x22bc50){const _0x1276d9=_0x55ad81;_0x3bfbdc?_0x372be2(function(){_0x3bfbdc=![];}):(!_0x22bc50&&(_0x233539=_0x1e23f1[_0x1276d9(0xae2)][_0x1276d9(0x1c7b)]),_0x3664f4!==_0x22bc50&&(_0x1e23f1[_0x1276d9(0xae2)][_0x1276d9(0x1c7b)]=0x1),!_0x3664f4&&(_0x1e23f1[_0x1276d9(0xae2)][_0x1276d9(0x1c7b)]=_0x233539),_0x1e23f1['getWhatsappQueues']());});function _0xec025b(_0x249d91){const _0x6928e9=_0x55ad81;return _0x39641b()[_0x6928e9(0x1813)](_0x249d91);}function _0x5cbc76(){const _0x52e214=_0x55ad81;_0x39641b()[_0x52e214(0x1ebd)](_0x1e23f1[_0x52e214(0x6d8)],function(_0xe6fbb2,_0x48152d){const _0x17a362=_0x52e214;_0x1e23f1[_0x17a362(0x232f)][_0x48152d]&&(_0x1e23f1[_0x17a362(0x6d8)][_0x48152d][_0x17a362(0x26b6)]=_0x1e23f1[_0x17a362(0x232f)][_0x48152d]['waiting']||0x0);});}function _0x224b58(_0x4fb0dd){const _0x416c4d=_0x55ad81;_0x1e23f1[_0x416c4d(0x6d8)][_0x4fb0dd['id']]&&(_0x1e23f1[_0x416c4d(0x232f)][_0x4fb0dd['id']]&&(_0x39641b()['merge'](_0x1e23f1['rpcWhatsappQueues'][_0x4fb0dd['id']],_0x39641b()['pick'](_0x4fb0dd,_0x1519a8)),_0x39641b()[_0x416c4d(0x9c1)](_0x1e23f1[_0x416c4d(0x6d8)][_0x4fb0dd['id']],_0x39641b()[_0x416c4d(0x169b)](_0x4fb0dd,_0x1519a8))));}function _0x42db0a(_0x481dae){const _0x251560=_0x55ad81;!_0x39641b()[_0x251560(0x958)](_0x481dae)&&(_0x1e23f1[_0x251560(0x232f)][_0x481dae['id']]=_0x39641b()['pick'](_0x481dae,_0x1519a8));}function _0x3e77a9(_0x91863){const _0x19f39f=_0x55ad81;!_0x39641b()[_0x19f39f(0x958)](_0x91863)&&(_0x1e23f1['rpcWhatsappQueues'][_0x91863['id']]&&_0x39641b()['merge'](_0x1e23f1[_0x19f39f(0x232f)][_0x91863['id']],_0x39641b()[_0x19f39f(0x169b)](_0x91863,_0x1519a8)),_0x1e23f1['whatsappQueues'][_0x91863['id']]&&_0x39641b()['merge'](_0x1e23f1[_0x19f39f(0x6d8)][_0x91863['id']],_0x39641b()[_0x19f39f(0x169b)](_0x91863,_0x1519a8)));}function _0x3bf5ee(_0x4ff6cf){const _0x3fd646=_0x55ad81;!_0x39641b()[_0x3fd646(0x958)](_0x4ff6cf)&&(delete _0x1e23f1[_0x3fd646(0x232f)][_0x4ff6cf['id']],delete _0x1e23f1[_0x3fd646(0x6d8)][_0x4ff6cf['id']]);}function _0x25c9fb(_0x3b614e){const _0x505420=_0x55ad81;_0x39641b()['toInteger'](_0x3b614e['UserId'])===_0x59152b['getCurrentUser']()['id']&&_0x1e23f1[_0x505420(0xc5c)]();}function _0x512655(_0x103220){const _0x19e56e=_0x55ad81;_0x39641b()[_0x19e56e(0x15ed)](_0x103220[_0x19e56e(0x21ab)])===_0x59152b[_0x19e56e(0x21e8)]()['id']&&_0x1e23f1[_0x19e56e(0xc5c)]();}function _0x22cc60(_0x5d5619){const _0x1027d0=_0x55ad81;_0x1e23f1[_0x1027d0(0x6d8)][_0x5d5619[_0x1027d0(0x2303)]]&&(_0x1e23f1[_0x1027d0(0x1866)][_0x5d5619['id']]=_0x5d5619,_0x5b8214());}function _0x391f71(_0x1b2364){const _0xaa4308=_0x55ad81;delete _0x1e23f1[_0xaa4308(0x1866)][_0x1b2364['id']],_0x56dacc&&_0x1e23f1[_0xaa4308(0xf69)][_0xaa4308(0x2785)](_0x1b2364['id']),_0x5b8214();}function _0x5beb1c(_0x45ef39){const _0x346ca6=_0x55ad81;switch(_0x45ef39){case'chat':return'green-A700-bg';case _0x346ca6(0x2651):return'teal-bg';case'sms':return _0x346ca6(0x50e);case'whatsapp':return _0x346ca6(0xf3a);case'openchannel':return'amber-A200-bg';case'fax':return _0x346ca6(0x20d5);default:return _0x346ca6(0x927);}}_0x43a836[_0x55ad81(0x1d6)]('$destroy',function(){const _0x272a7a=_0x55ad81;_0x3ad211[_0x272a7a(0xfb8)](_0x272a7a(0x2682)),_0x3ad211[_0x272a7a(0xfb8)](_0x272a7a(0x114b)),_0x3ad211[_0x272a7a(0xfb8)]('whatsappQueue:update'),_0x3ad211['removeAllListeners']('whatsappQueue:remove'),_0x3ad211[_0x272a7a(0xfb8)]('userWhatsappQueue:save'),_0x3ad211[_0x272a7a(0xfb8)](_0x272a7a(0x924)),_0x3ad211[_0x272a7a(0xfb8)](_0x272a7a(0xd4f)),_0x3ad211['removeAllListeners'](_0x272a7a(0x285f));});}const _0x2d0a6c=_0x34ca91;;_0x1df2c0[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'$window','$translate',_0x5537c6(0x142b),'Auth',_0x5537c6(0x1986),_0x5537c6(0x9bf),_0x5537c6(0x1b68)];function _0x1df2c0(_0x53873c,_0x3638f6,_0x5d9132,_0x2d396e,_0x3bfa7f,_0x2d171b,_0xd668c3,_0x4b74bc,_0x10ca78,_0x2d2c02,_0xb52e31){const _0x3d3caf=_0x5537c6,_0x407c16=this;_0x407c16[_0x3d3caf(0xebe)]=_0x4b74bc[_0x3d3caf(0x21e8)](),_0x407c16['license']={},_0x407c16[_0x3d3caf(0x9ca)]={},_0x407c16[_0x3d3caf(0xfbf)]={'count':0x0,'rows':[]},_0x407c16[_0x3d3caf(0x4d8)]={'count':0x0,'rows':[]},_0x407c16[_0x3d3caf(0xae2)]={'includeAll':!![],'sort':'-updatedAt','limit':0xa,'page':0x1,'read':null,'closed':null},_0x407c16[_0x3d3caf(0x16ad)]={'fields':[{'name':'Id','column':'id','type':_0x3d3caf(0x83d)},{'name':'Contact','column':'Contact','type':'autocomplete','options':{'searchFields':[_0x3d3caf(0x1491),'lastName','email'],'route':{'model':'cmContact','action':'get','params':{'fields':_0x3d3caf(0x9b0),'Contact':_0x3d3caf(0xed6),'nolimit':!![]}},'extraOperators':[_0x3d3caf(0x1fb1)],'excludedOperators':[_0x3d3caf(0x15ce)]}},{'name':_0x3d3caf(0x269b),'column':_0x3d3caf(0x1ed9),'type':'text','options':{'excludedOperators':['$eq',_0x3d3caf(0x15ce)]}},{'name':'Status','column':_0x3d3caf(0x22aa),'type':_0x3d3caf(0x220f),'values':[{'id':0x0,'translate':_0x3d3caf(0x1bbd)},{'id':0x1,'translate':_0x3d3caf(0x191b)}],'options':{'excludedOperators':['$ne']}},{'name':'Agent','column':_0x3d3caf(0x1597),'type':_0x3d3caf(0x19e0),'options':{'table':'i','route':{'model':_0x3d3caf(0xebe),'action':'get','params':{'role':_0x3d3caf(0x1eff),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':[_0x3d3caf(0x1d14),_0x3d3caf(0x16b6)],'extraOperators':[_0x3d3caf(0x1fb1)],'excludedOperators':[_0x3d3caf(0x15ce)]}},{'name':_0x3d3caf(0x1649),'column':_0x3d3caf(0x18e9),'type':_0x3d3caf(0x1d50),'options':{'route':{'model':_0x3d3caf(0xebe),'action':_0x3d3caf(0x8e2),'params':{'id':_0x407c16[_0x3d3caf(0xebe)]['id'],'nolimit':!![]}}}},{'name':_0x3d3caf(0x190),'column':_0x3d3caf(0xf2d),'type':'multiselect','options':{'route':{'model':_0x3d3caf(0x22b1),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x3d3caf(0x62d)]}},{'name':_0x3d3caf(0x68d),'column':'createdAt','type':_0x3d3caf(0x18ec),'options':{'excludedOperators':['$ne']}},{'name':'Read','column':'unreadMessages','type':'select','values':[{'id':0x1,'translate':_0x3d3caf(0x27a4)},{'id':0x0,'translate':_0x3d3caf(0x1115)}],'options':{'excludedOperators':[_0x3d3caf(0x15ce)]}}]},_0x407c16[_0x3d3caf(0xaee)]=_0x3d3caf(0x1139),_0x407c16['onInit']=_0x2e693f,_0x407c16['success']=_0x300f27,_0x407c16['getFaxInteractions']=_0x104e99,_0x407c16['showFaxInteraction']=_0x451c0a,_0x407c16[_0x3d3caf(0xf95)]=_0x5ea6e2,_0x407c16[_0x3d3caf(0x493)]=_0x43208d,_0x407c16['getContactLabel']=_0x42150e,_0x407c16[_0x3d3caf(0x11e5)]=_0x70974f,_0x407c16[_0x3d3caf(0x24a1)]=_0x332d72,_0x407c16['composeFaxInteraction']=_0x2069e6,_0x407c16[_0x3d3caf(0x17c3)]=_0x42a61a,_0x407c16[_0x3d3caf(0x28a8)]=_0x51a09f,_0x407c16[_0x3d3caf(0x1ede)]=_0x5b53fd;function _0x2e693f(_0x1c6136,_0xed9dd0){const _0x29ae68=_0x3d3caf;return _0x407c16[_0x29ae68(0x8a5)]=_0x1c6136,_0x407c16['setting']=_0xed9dd0,_0xd668c3[_0x29ae68(0xebe)][_0x29ae68(0xbf7)+_0x39641b()['upperFirst'](_0x29ae68(0x29de))]({'id':_0x407c16[_0x29ae68(0xebe)]['id'],'nolimit':!![]})[_0x29ae68(0x1d77)][_0x29ae68(0x1cb0)](function(_0x225889){const _0x44ddb0=_0x29ae68;return _0x407c16['faxAccounts']=_0x225889||{'count':0x0,'rows':[]},_0xd668c3['tag'][_0x44ddb0(0xbf7)]()[_0x44ddb0(0x1d77)];})[_0x29ae68(0x1cb0)](function(_0x1e8794){_0x407c16['tags']=_0x1e8794||{'count':0x0,'rows':[]};})[_0x29ae68(0x1cb0)](function(){const _0x153ed5=_0x29ae68;_0x407c16[_0x153ed5(0x789)]=_0x56c7d5();})['catch'](function(_0x463516){console['error'](_0x463516);})['finally'](function(){const _0x14ad4e=_0x29ae68;let _0xc5e7fc=_0x3bfa7f['localStorage']['getItem'](_0x14ad4e(0x51a)+_0x407c16['user']['id']);if(_0xc5e7fc)try{_0xc5e7fc=JSON['parse'](_0xc5e7fc);if(_0xc5e7fc[_0x14ad4e(0xae2)]){_0x407c16['query']=_0x39641b()['merge'](_0x407c16[_0x14ad4e(0xae2)],_0xc5e7fc[_0x14ad4e(0xae2)]);if(_0x39641b()[_0x14ad4e(0xce9)](_0x407c16['faxAccounts']['rows']))_0x407c16[_0x14ad4e(0xae2)][_0x14ad4e(0x18e9)]=[];else _0x39641b()[_0x14ad4e(0xce9)](_0x407c16[_0x14ad4e(0xae2)]['FaxAccountId'])&&(_0x407c16[_0x14ad4e(0xae2)][_0x14ad4e(0x18e9)]=_0x39641b()(_0x407c16['faxAccounts'][_0x14ad4e(0x2214)])[_0x14ad4e(0x1de2)]('id')[_0x14ad4e(0x54f)]()[_0x14ad4e(0x327)]());_0x407c16['query'][_0x14ad4e(0x1381)]&&_0x407c16[_0x14ad4e(0xae2)]['sort'][_0x14ad4e(0xd8a)](_0x14ad4e(0x15d6))>=0x0&&(_0x407c16[_0x14ad4e(0xae2)]=_0x39641b()['omit'](_0x407c16[_0x14ad4e(0xae2)],_0x14ad4e(0x1381))),_0x407c16[_0x14ad4e(0xae2)][_0x14ad4e(0x11f0)]=!![],_0x407c16[_0x14ad4e(0x1e6c)]=_0x407c16[_0x14ad4e(0xae2)][_0x14ad4e(0x1c99)]?!![]:![];}}catch(_0x123060){console[_0x14ad4e(0x218e)](_0x123060);}else{const _0x3ec478={'$gte':_0x543b5a()()[_0x14ad4e(0x1be0)](_0x14ad4e(0x26ae))[_0x14ad4e(0x17d9)](0x0,!![])[_0x14ad4e(0x1f31)](),'$lte':_0x543b5a()()['endOf'](_0x14ad4e(0x26ae))[_0x14ad4e(0x17d9)](0x0,!![])[_0x14ad4e(0x1f31)]()},_0x2ebe5c={'FaxAccountId':_0x39641b()['map'](_0x407c16[_0x14ad4e(0x29de)]['rows'],'id'),'createdAt':_0x3ec478};_0x407c16[_0x14ad4e(0xae2)]=_0x39641b()[_0x14ad4e(0x9c1)](_0x407c16['query'],_0x2ebe5c);}_0x10ca78['on'](_0x14ad4e(0x584),_0x1413fd),_0x10ca78['on'](_0x14ad4e(0xd5e),_0x1413fd),_0x10ca78['on']('faxInteractionTags:save',_0x488e56),_0x10ca78['on']('faxMessage:save',_0x16da14),_0x10ca78['on']('faxMessage:update',_0x16da14),_0x10ca78['on'](_0x14ad4e(0xef8),_0x2cce80),_0x10ca78['on'](_0x14ad4e(0x1c90),_0x2cfe2d),_0x104e99(_0x407c16[_0x14ad4e(0xae2)]['page']);});}function _0x56c7d5(){const _0x51d682=_0x3d3caf;return[{'name':_0x51d682(0x68d),'key':_0x51d682(0x24cb),'type':'date','label':_0x51d682(0xf5e)},{'name':_0x51d682(0x223c),'key':_0x51d682(0xfc1),'type':'select','label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x51d682(0x1115)},{'value':0x1,'translate':_0x51d682(0x27a4)},{'value':null,'translate':_0x51d682(0x2706)}]},{'name':_0x51d682(0x938),'key':_0x51d682(0x22aa),'type':_0x51d682(0x220f),'label':_0x51d682(0x24b6),'customOptions':[{'value':0x0,'translate':_0x51d682(0x1bbd)},{'value':0x1,'translate':_0x51d682(0x191b)},{'value':null,'translate':_0x51d682(0x2706)}]},{'name':_0x51d682(0x1649),'key':_0x51d682(0x18e9),'type':'multiselect','label':_0x51d682(0xf86),'options':_0x407c16[_0x51d682(0x29de)]['rows'],'clearAll':![]},{'name':_0x51d682(0x30e),'key':'UserId','type':_0x51d682(0x220f),'label':_0x51d682(0x7bb),'customOptions':[{'value':_0x407c16[_0x51d682(0xebe)]['id'],'translate':_0x51d682(0x1ea6)},{'value':_0x51d682(0xd38),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x51d682(0x2706)}]},{'name':_0x51d682(0xf2d),'key':_0x51d682(0x22b1),'type':_0x51d682(0x1d50),'label':_0x51d682(0x3c3),'options':_0x407c16[_0x51d682(0xfbf)][_0x51d682(0x2214)],'placeholder':_0x51d682(0x62b)}];}function _0x300f27(_0x4a6e2d){const _0x4f00dd=_0x3d3caf;_0x407c16['searchInProgress']=![],_0x407c16['faxInteractions']=_0x4a6e2d||{'count':0x0,'rows':[]};for(let _0x46414d=0x0;_0x46414d<_0x407c16[_0x4f00dd(0x4d8)]['rows'][_0x4f00dd(0xfd0)];_0x46414d+=0x1){_0x42150e(_0x407c16[_0x4f00dd(0x4d8)]['rows'][_0x46414d]);}}function _0x104e99(_0x5b16e4){const _0x419b75=_0x3d3caf;_0x407c16[_0x419b75(0x16cb)]=!![];!_0x5b16e4&&(_0x407c16[_0x419b75(0xae2)][_0x419b75(0x1c7b)]=0x1);_0x407c16['query'][_0x419b75(0x184b)]=(_0x407c16['query'][_0x419b75(0x1c7b)]-0x1)*_0x407c16['query'][_0x419b75(0x236)];let _0x312f00=_0x3bfa7f['localStorage'][_0x419b75(0x2091)](_0x419b75(0x51a)+_0x407c16[_0x419b75(0xebe)]['id']);_0x312f00=_0x312f00?JSON[_0x419b75(0xefe)](_0x312f00):{},_0x312f00[_0x419b75(0xae2)]=_0x407c16['query'],_0x3bfa7f['localStorage']['setItem'](_0x419b75(0x51a)+_0x407c16[_0x419b75(0xebe)]['id'],JSON[_0x419b75(0x2701)](_0x312f00)),_0x407c16[_0x419b75(0x2061)]=_0xd668c3[_0x419b75(0x1480)]['get'](_0x407c16[_0x419b75(0xae2)],_0x300f27)['$promise'];}function _0x451c0a(_0x56291d,_0x115ebf){const _0x856d8d=_0x3d3caf;_0x53873c[_0x856d8d(0x17bc)]['vm'][_0x856d8d(0x11d9)](_0x856d8d(0x1944),_0x115ebf);}function _0x5ea6e2(_0x2f7dbc,_0xc887c0,_0x122a42){const _0x2734c2=_0x3d3caf;_0xd668c3['faxInteraction'][_0x2734c2(0x26ec)]({'id':_0xc887c0['id'],'attachments':_0x122a42})[_0x2734c2(0x1d77)][_0x2734c2(0x1cb0)](function(_0x4d0c29){const _0xfd4ede=_0x2734c2,_0x1fee62=[_0x4d0c29[_0xfd4ede(0xef0)]],_0x1e16a5=_0xfd4ede(0x1b5b)+_0xc887c0['id']+_0xfd4ede(0x1b16),_0x299009=new Blob(_0x1fee62,{'type':_0x4d0c29['type']}),_0x1e2b29=window['document'][_0xfd4ede(0x8c6)]('a');_0x1e2b29[_0xfd4ede(0x23b9)](_0xfd4ede(0x105b),URL['createObjectURL'](_0x299009)),_0x1e2b29[_0xfd4ede(0x23b9)](_0xfd4ede(0x26ec),_0x1e16a5),document[_0xfd4ede(0x1ed9)][_0xfd4ede(0x23de)](_0x1e2b29),_0x1e2b29['click']();})[_0x2734c2(0x1c4)](function(_0x132653){const _0x5c86cc=_0x2734c2;if(_0x132653[_0x5c86cc(0x25c)]&&_0x132653['data'][_0x5c86cc(0x1a7c)]&&_0x132653[_0x5c86cc(0x25c)]['errors'][_0x5c86cc(0xfd0)])for(let _0x4a7370=0x0;_0x4a7370<_0x132653[_0x5c86cc(0x25c)]['errors'][_0x5c86cc(0xfd0)];_0x4a7370+=0x1){_0x2d2c02[_0x5c86cc(0x218e)]({'title':_0x132653[_0x5c86cc(0x25c)][_0x5c86cc(0x1a7c)][_0x4a7370][_0x5c86cc(0x66a)],'msg':_0x132653['data']['errors'][_0x4a7370][_0x5c86cc(0x155e)]});}else _0x2d2c02[_0x5c86cc(0x218e)]({'title':_0x132653[_0x5c86cc(0x291)]?_0x5c86cc(0xeb9)+_0x132653['status']+_0x5c86cc(0x1657)+_0x132653['statusText']:_0x5c86cc(0xf95),'msg':_0x132653[_0x5c86cc(0x25c)]?JSON[_0x5c86cc(0x2701)](_0x132653['data'][_0x5c86cc(0x155e)]):_0x132653[_0x5c86cc(0x147f)]()});});}function _0x43208d(_0xbccfb1,_0x4ed405){const _0x30ffe6=_0x3d3caf,_0x37d32a=_0x407c16['user'][_0x30ffe6(0x2478)]||_0x407c16[_0x30ffe6(0xebe)][_0x30ffe6(0xf0c)]||_0x407c16[_0x30ffe6(0xebe)][_0x30ffe6(0x2035)]||_0x407c16[_0x30ffe6(0xebe)]['openchannelPause']||_0x407c16[_0x30ffe6(0xebe)]['faxPause'],_0x5434e6=!_0x4ed405[_0x30ffe6(0x1649)][_0x30ffe6(0x1935)];_0x5d9132[_0x30ffe6(0xe27)]({'controller':_0x30ffe6(0x209d),'controllerAs':'vm','templateUrl':_0x3769c1,'parent':angular['element'](_0x2d396e[_0x30ffe6(0x1ed9)]),'clickOutsideToClose':_0x5434e6,'escapeToClose':_0x5434e6,'onRemoving':function(){const _0x45565f=_0x30ffe6;_0x407c16['user']&&_0x4ed405[_0x45565f(0x1649)][_0x45565f(0x1935)]&&!_0x37d32a&&_0xd668c3['user'][_0x45565f(0xf5d)]({'id':_0x407c16[_0x45565f(0xebe)]['id']})[_0x45565f(0x1d77)]['catch'](function(_0x187076){console['error'](_0x187076);});},'locals':{'user':_0x407c16['user'],'channel':_0x30ffe6(0x1944),'interaction':_0x4ed405}});}function _0x42150e(_0x413b09){const _0x39cc52=_0x3d3caf;_0x413b09['contactInfo']=_0x413b09[_0x39cc52(0x8d3)]?_0x413b09['Contact'][_0x39cc52(0x1944)]:undefined,_0x413b09[_0x39cc52(0x1325)]===_0x39cc52(0x2087)&&(_0x413b09['contactName']=_0x2d171b[_0x39cc52(0x25cc)]('APP.UNKNOWN'));}function _0x70974f(_0x5ec132){const _0x5ab256=_0x3d3caf;if(_0x5ec132[_0x5ab256(0x21ab)])return _0x5ec132[_0x5ab256(0x21ab)]===_0x407c16[_0x5ab256(0xebe)]['id']?_0x2d171b[_0x5ab256(0x25cc)]('DASHBOARDS.ME'):_0x5ec132['Owner'][_0x5ab256(0x1d14)]+'\x20<'+_0x5ec132[_0x5ab256(0x135d)][_0x5ab256(0xdbd)]+'>';return _0x2d171b['instant'](_0x5ab256(0x68f));}function _0x332d72(_0x31572c){const _0x265039=_0x3d3caf;if(_0x31572c[_0x265039(0x1649)])return _0x31572c[_0x265039(0x1649)][_0x265039(0xee8)];return _0x2d171b[_0x265039(0x25cc)]('APP.UNKNOWN');}function _0x2069e6(_0x4308a9,_0x461746){const _0x3a12f1=_0x3d3caf;_0x5d9132['show']({'controller':_0x3a12f1(0x1e49),'controllerAs':'vm','templateUrl':_0x993bbb,'parent':angular[_0x3a12f1(0x1853)](_0x2d396e['body']),'clickOutsideToClose':![],'locals':{'account':_0x461746,'message':{},'type':'new','interaction':{}},'fullscreen':!![]})['then'](function(_0x4a40af){const _0x3fe742=_0x3a12f1;if(_0x4a40af){if(_0x4a40af[_0x3fe742(0x155e)]&&_0x4a40af['message'][_0x3fe742(0x275)]){const _0x3324f2={'channel':_0x3fe742(0x1944),'account':_0x461746,'message':_0x4a40af[_0x3fe742(0x155e)],'contact':_0x4a40af[_0x3fe742(0x8b1)]};_0xb52e31[_0x3fe742(0x17a1)](_0x3324f2);}else{const _0xe78c44=_0x4a40af;return _0xd668c3[_0x3fe742(0xb91)]['send']({'id':_0x461746['id']},_0xe78c44)[_0x3fe742(0x1d77)][_0x3fe742(0x1cb0)](function(_0x5deea3){const _0x1a7386=_0x3fe742;_0x2d2c02[_0x1a7386(0x829)]({'title':_0x1a7386(0x113d),'msg':'Message\x20has\x20been\x20sent!'}),_0x53873c[_0x1a7386(0x17bc)]['vm'][_0x1a7386(0x11d9)](_0x1a7386(0x1944),_0x5deea3);})[_0x3fe742(0x1c4)](function(_0x510ee4){const _0x36a731=_0x3fe742;if(_0x510ee4['data']&&_0x510ee4['data']['errors']&&_0x510ee4[_0x36a731(0x25c)]['errors'][_0x36a731(0xfd0)])for(let _0x4144e3=0x0;_0x4144e3<_0x510ee4[_0x36a731(0x25c)][_0x36a731(0x1a7c)]['length'];_0x4144e3++){_0x2d2c02['error']({'title':_0x510ee4[_0x36a731(0x25c)][_0x36a731(0x1a7c)][_0x4144e3][_0x36a731(0x66a)],'msg':_0x510ee4[_0x36a731(0x25c)][_0x36a731(0x1a7c)][_0x4144e3][_0x36a731(0x155e)]});}else _0x2d2c02['error']({'title':_0x36a731(0x23d7),'msg':_0x510ee4[_0x36a731(0x25c)]?JSON['stringify'](_0x510ee4['data']):_0x510ee4[_0x36a731(0x155e)]||_0x510ee4['toString']()});});}}});}function _0x2cce80(_0x30db64){const _0x1bc232=_0x3d3caf;let _0x1b0b30;const _0x1ca121=_0x39641b()[_0x1bc232(0x13b4)](_0x407c16['faxInteractions'][_0x1bc232(0x2214)],{'id':_0x30db64[_0x1bc232(0x18df)]});_0x1ca121&&_0x1ca121[_0x1bc232(0x2653)]&&(_0x1b0b30=_0x39641b()['find'](_0x1ca121[_0x1bc232(0x2653)],{'id':_0x30db64['UserId']}),!_0x1b0b30&&_0x1ca121['Users'][_0x1bc232(0x2785)]({'id':_0x30db64[_0x1bc232(0x21ab)]}));}function _0x2cfe2d(_0xaba327){const _0x161488=_0x3d3caf,_0x415005=_0x39641b()[_0x161488(0x13b4)](_0x407c16[_0x161488(0x4d8)][_0x161488(0x2214)],{'id':_0xaba327[_0x161488(0x18df)]});_0x415005&&_0x415005[_0x161488(0x2653)]&&_0x39641b()['remove'](_0x415005[_0x161488(0x2653)],{'id':_0xaba327['UserId']});}function _0x1413fd(_0x4edd41){const _0x29b4cc=_0x3d3caf;if(_0x4edd41){const _0x3d49fa=_0x39641b()[_0x29b4cc(0x13b4)](_0x407c16[_0x29b4cc(0x4d8)][_0x29b4cc(0x2214)],{'id':_0x4edd41['id']});if(_0x3d49fa){_0x3d49fa[_0x29b4cc(0x2653)]=[];_0x4edd41['closed']&&(_0x3d49fa['unreadMessages']=0x0);if(_0x407c16[_0x29b4cc(0xae2)]['sort']){const _0x12fd77=_0x39641b()[_0x29b4cc(0x1f2c)](_0x407c16[_0x29b4cc(0xae2)]['sort'],'-')?_0x29b4cc(0x20a5):_0x29b4cc(0x24cc);_0x407c16[_0x29b4cc(0x4d8)][_0x29b4cc(0x2214)]=_0x39641b()[_0x29b4cc(0x17ca)](_0x407c16[_0x29b4cc(0x4d8)]['rows'],_0x39641b()[_0x29b4cc(0x359)](_0x407c16[_0x29b4cc(0xae2)][_0x29b4cc(0x1381)],'-'),_0x12fd77);}_0x39641b()['merge'](_0x3d49fa,_0x39641b()['pick'](_0x4edd41,_0x39641b()['keys'](_0x3d49fa)));}else _0x104e99(_0x407c16[_0x29b4cc(0xae2)][_0x29b4cc(0x1c7b)]);}}function _0x488e56(_0x10bc8f){const _0x2465ec=_0x3d3caf;if(_0x10bc8f){const _0x10ed7d=_0x39641b()[_0x2465ec(0x13b4)](_0x407c16[_0x2465ec(0x4d8)][_0x2465ec(0x2214)],{'id':_0x10bc8f['id']});_0x10ed7d&&(_0x10ed7d[_0x2465ec(0x190)]=_0x10bc8f[_0x2465ec(0xfbf)]||[],_0x39641b()[_0x2465ec(0x9c1)](_0x10ed7d,_0x39641b()[_0x2465ec(0x169b)](_0x10bc8f,_0x39641b()[_0x2465ec(0x1be5)](_0x10ed7d))));}}function _0x16da14(_0x46d52e){const _0x5692c4=_0x3d3caf;if(_0x46d52e&&!_0x46d52e[_0x5692c4(0x1105)]){const _0x186996=_0x39641b()[_0x5692c4(0x13b4)](_0x407c16[_0x5692c4(0x4d8)][_0x5692c4(0x2214)],{'id':_0x46d52e[_0x5692c4(0x18df)]});if(_0x186996){const _0xc1dc1=_0x39641b()[_0x5692c4(0x13b4)](_0x186996[_0x5692c4(0x223c)],{'id':_0x46d52e['id']});_0xc1dc1?_0x39641b()[_0x5692c4(0x9c1)](_0xc1dc1,_0x39641b()[_0x5692c4(0x169b)](_0x46d52e,_0x39641b()['keys'](_0xc1dc1))):(_0x39641b()['isNil'](_0x186996[_0x5692c4(0x223c)])&&(_0x186996[_0x5692c4(0x223c)]={'count':0x0}),!_0x46d52e[_0x5692c4(0xfc1)]&&(_0x186996[_0x5692c4(0x223c)][_0x5692c4(0x184d)]+=0x1));}}}function _0x42a61a(){const _0x1100c6=_0x3d3caf;_0x407c16[_0x1100c6(0x1e6c)]=![];}function _0x51a09f(){_0x407c16['isSearchBarVisible']=!![];}function _0x5b53fd(){const _0x12e492=_0x3d3caf;_0x407c16[_0x12e492(0x1e6c)]=![],_0x5d9132[_0x12e492(0xe27)]({'controller':_0x12e492(0x15f7),'controllerAs':'vm','templateUrl':_0x3530d6,'parent':angular['element'](_0x2d396e[_0x12e492(0x1ed9)]),'clickOutsideToClose':![],'locals':{'color':_0x407c16[_0x12e492(0xaee)],'fields':_0x407c16[_0x12e492(0x16ad)][_0x12e492(0x355)],'storagePath':_0x12e492(0x54e)},'fullscreen':!![]})['then'](function(_0x14d9cb){const _0x54c72c=_0x12e492;_0x407c16[_0x54c72c(0xae2)]['search']=_0x14d9cb===![]?undefined:_0x14d9cb;if(_0x407c16['query'][_0x54c72c(0x24be)]||_0x14d9cb===![])_0x104e99();})['catch'](function(_0x5045f9){const _0x3b994a=_0x12e492;_0x2d2c02[_0x3b994a(0x218e)]({'title':_0x3b994a(0x2260),'msg':_0x5045f9['data']?JSON['stringify'](_0x5045f9['data']['message']):_0x5045f9[_0x3b994a(0x147f)]()});});}let _0x25c60e=!![],_0x359a58=0x1;_0x53873c[_0x3d3caf(0x614)](_0x3d3caf(0x957),function(_0x392e0e,_0x1ed494){const _0xb96b54=_0x3d3caf;_0x25c60e?_0x3638f6(function(){_0x25c60e=![];}):(!_0x1ed494&&(_0x359a58=_0x407c16[_0xb96b54(0xae2)]['page']),_0x392e0e!==_0x1ed494&&(_0x407c16[_0xb96b54(0xae2)]['page']=0x1),!_0x392e0e&&(_0x407c16[_0xb96b54(0xae2)][_0xb96b54(0x1c7b)]=_0x359a58),_0x104e99(_0x407c16[_0xb96b54(0xae2)][_0xb96b54(0x1c7b)]));}),_0x53873c[_0x3d3caf(0x1d6)](_0x3d3caf(0x291c),function(){const _0x58c6db=_0x3d3caf;_0x10ca78[_0x58c6db(0xfb8)](_0x58c6db(0x769)),_0x10ca78['removeAllListeners'](_0x58c6db(0x207c)),_0x10ca78[_0x58c6db(0xfb8)](_0x58c6db(0x584)),_0x10ca78['removeAllListeners'](_0x58c6db(0x105f)),_0x10ca78['removeAllListeners']('faxInteraction:update'),_0x10ca78[_0x58c6db(0xfb8)](_0x58c6db(0xef8)),_0x10ca78[_0x58c6db(0xfb8)]('user_has_fax_interactions:remove');});}const _0x241c44=_0x1df2c0;;_0x84d13f['$inject']=['$scope',_0x5537c6(0x2168),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x1f10),'$translate','api',_0x5537c6(0x1774),_0x5537c6(0x1986),_0x5537c6(0x9bf),_0x5537c6(0x1b68)];function _0x84d13f(_0x5e3b52,_0x18ac0e,_0x3d84bc,_0x91d69e,_0x29d1c2,_0x3a4175,_0xdb0c75,_0x53527d,_0x3252d8,_0x24f435,_0x5231ac){const _0x24c8c2=_0x5537c6,_0x38953d=this;_0x38953d[_0x24c8c2(0xebe)]=_0x53527d['getCurrentUser'](),_0x38953d[_0x24c8c2(0x8a5)]={},_0x38953d[_0x24c8c2(0x9ca)]={},_0x38953d[_0x24c8c2(0xfbf)]={'count':0x0,'rows':[]},_0x38953d[_0x24c8c2(0x1884)]={'count':0x0,'rows':[]},_0x38953d[_0x24c8c2(0xae2)]={'includeAll':!![],'sort':_0x24c8c2(0x282),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x38953d[_0x24c8c2(0x16ad)]={'fields':[{'name':'Id','column':'id','type':_0x24c8c2(0x83d)},{'name':_0x24c8c2(0x8d3),'column':_0x24c8c2(0x8d3),'type':_0x24c8c2(0x19e0),'options':{'searchFields':[_0x24c8c2(0x1491),'lastName','email'],'route':{'model':_0x24c8c2(0xbe7),'action':_0x24c8c2(0xbf7),'params':{'fields':_0x24c8c2(0x9b0),'Contact':_0x24c8c2(0xed6),'nolimit':!![]}},'extraOperators':[_0x24c8c2(0x1fb1)],'excludedOperators':[_0x24c8c2(0x15ce)]}},{'name':_0x24c8c2(0x228c),'column':'subject','type':_0x24c8c2(0x19d3),'options':{'excludedOperators':[_0x24c8c2(0x1c5e),_0x24c8c2(0x15ce)]}},{'name':'Body','column':'plainBody','type':_0x24c8c2(0x19d3),'options':{'excludedOperators':['$eq',_0x24c8c2(0x15ce)]}},{'name':_0x24c8c2(0x938),'column':'closed','type':_0x24c8c2(0x220f),'values':[{'id':0x0,'translate':_0x24c8c2(0x1bbd)},{'id':0x1,'translate':_0x24c8c2(0x191b)}],'options':{'excludedOperators':[_0x24c8c2(0x15ce)]}},{'name':_0x24c8c2(0x2020),'column':_0x24c8c2(0x20ed),'type':_0x24c8c2(0x1d50),'options':{'field':_0x24c8c2(0x16b6),'route':{'model':_0x24c8c2(0xdbe),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x24c8c2(0x62d)]}},{'name':_0x24c8c2(0x30e),'column':_0x24c8c2(0x1597),'type':_0x24c8c2(0x19e0),'options':{'table':'i','route':{'model':_0x24c8c2(0xebe),'action':_0x24c8c2(0xbf7),'params':{'role':_0x24c8c2(0x1eff),'fields':_0x24c8c2(0x1d34),'nolimit':!![]}},'searchFields':['fullname','name'],'extraOperators':[_0x24c8c2(0x1fb1)],'excludedOperators':[_0x24c8c2(0x15ce)]}},{'name':_0x24c8c2(0x1649),'column':_0x24c8c2(0x1285),'type':'multiselect','options':{'route':{'model':_0x24c8c2(0xebe),'action':_0x24c8c2(0xe96),'params':{'id':_0x38953d['user']['id'],'nolimit':!![]}}}},{'name':_0x24c8c2(0x190),'column':_0x24c8c2(0xf2d),'type':'multiselect','options':{'route':{'model':_0x24c8c2(0x22b1),'action':_0x24c8c2(0xbf7),'params':{'nolimit':!![]}},'excludedOperators':[_0x24c8c2(0x62d)]}},{'name':_0x24c8c2(0x68d),'column':'createdAt','type':_0x24c8c2(0x18ec),'options':{'excludedOperators':[_0x24c8c2(0x15ce)]}},{'name':_0x24c8c2(0x946),'column':_0x24c8c2(0x1554),'type':_0x24c8c2(0x220f),'values':[{'id':0x1,'translate':_0x24c8c2(0x27a4)},{'id':0x0,'translate':_0x24c8c2(0x1115)}],'options':{'excludedOperators':[_0x24c8c2(0x15ce)]}}]},_0x38953d[_0x24c8c2(0xaee)]=_0x24c8c2(0x15f2),_0x38953d[_0x24c8c2(0x1a34)]=_0x391574,_0x38953d[_0x24c8c2(0x829)]=_0x510492,_0x38953d[_0x24c8c2(0xc4b)]=_0x61ace,_0x38953d['showMailInteraction']=_0x2600a6,_0x38953d[_0x24c8c2(0x28b0)]=_0x434129,_0x38953d[_0x24c8c2(0x493)]=_0x596a34,_0x38953d['getContactLabel']=_0x10b839,_0x38953d['getAgentLabel']=_0xfbb0c,_0x38953d[_0x24c8c2(0x7ce)]=_0x5a5571,_0x38953d['composeMailInteraction']=_0x472b1f,_0x38953d[_0x24c8c2(0x17c3)]=_0x12eb0b,_0x38953d[_0x24c8c2(0x28a8)]=_0x32122,_0x38953d['openAdvancedSearch']=_0x561cb1,_0x5e3b52[_0x24c8c2(0x1d6)]('openMailDraft',_0xf02aaf);function _0x391574(_0x20533c,_0x150c5f){const _0xcefee0=_0x24c8c2;return _0x38953d[_0xcefee0(0x8a5)]=_0x20533c,_0x38953d['setting']=_0x150c5f,_0xdb0c75['user'][_0xcefee0(0xbf7)+_0x39641b()[_0xcefee0(0x277)](_0xcefee0(0x228e))]({'id':_0x38953d[_0xcefee0(0xebe)]['id'],'nolimit':!![]})['$promise']['then'](function(_0x21ead8){const _0x455954=_0xcefee0;return _0x38953d[_0x455954(0x228e)]=_0x21ead8||{'count':0x0,'rows':[]},_0xdb0c75['tag'][_0x455954(0xbf7)]()['$promise'];})['then'](function(_0x5e6b1a){const _0xb613b9=_0xcefee0;_0x38953d[_0xb613b9(0xfbf)]=_0x5e6b1a||{'count':0x0,'rows':[]};})[_0xcefee0(0x1cb0)](function(){const _0x5ed037=_0xcefee0;return _0xdb0c75['mailSubstatus'][_0x5ed037(0xbf7)]({'nolimit':!![]})['$promise'];})['then'](function(_0x2024d3){_0x38953d['subStatuses']=_0x2024d3||{'count':0x0,'rows':[]};})[_0xcefee0(0x1cb0)](function(){const _0x3262a8=_0xcefee0;_0x38953d[_0x3262a8(0x789)]=_0x203f14();})[_0xcefee0(0x1c4)](function(_0x76da6c){const _0x5d2726=_0xcefee0;console[_0x5d2726(0x218e)](_0x76da6c);})[_0xcefee0(0x2e0)](function(){const _0x2cb1cd=_0xcefee0;let _0x5c8419=_0x29d1c2[_0x2cb1cd(0x1b83)]['getItem'](_0x2cb1cd(0x294f)+_0x38953d[_0x2cb1cd(0xebe)]['id']);if(_0x5c8419)try{_0x5c8419=JSON[_0x2cb1cd(0xefe)](_0x5c8419);if(_0x5c8419[_0x2cb1cd(0xae2)]){_0x38953d['query']=_0x39641b()[_0x2cb1cd(0x9c1)](_0x38953d['query'],_0x5c8419[_0x2cb1cd(0xae2)]);if(_0x39641b()[_0x2cb1cd(0xce9)](_0x38953d[_0x2cb1cd(0x228e)][_0x2cb1cd(0x2214)]))_0x38953d[_0x2cb1cd(0xae2)][_0x2cb1cd(0x1285)]=[];else _0x39641b()[_0x2cb1cd(0xce9)](_0x38953d['query']['MailAccountId'])&&(_0x38953d['query'][_0x2cb1cd(0x1285)]=_0x39641b()(_0x38953d['mailAccounts'][_0x2cb1cd(0x2214)])[_0x2cb1cd(0x1de2)]('id')['take']()['value']());_0x38953d['query']['sort']&&_0x38953d['query'][_0x2cb1cd(0x1381)]['indexOf'](_0x2cb1cd(0x15d6))>=0x0&&(_0x38953d['query']=_0x39641b()[_0x2cb1cd(0x1bd8)](_0x38953d[_0x2cb1cd(0xae2)],_0x2cb1cd(0x1381))),_0x38953d['query'][_0x2cb1cd(0x11f0)]=!![],_0x38953d[_0x2cb1cd(0x1e6c)]=_0x38953d[_0x2cb1cd(0xae2)][_0x2cb1cd(0x1c99)]?!![]:![];}}catch(_0x275a66){console[_0x2cb1cd(0x218e)](_0x275a66);}else{const _0x12637e={'$gte':_0x543b5a()()[_0x2cb1cd(0x1be0)]('month')[_0x2cb1cd(0x17d9)](0x0,!![])[_0x2cb1cd(0x1f31)](),'$lte':_0x543b5a()()[_0x2cb1cd(0x1b4)](_0x2cb1cd(0x26ae))['utcOffset'](0x0,!![])[_0x2cb1cd(0x1f31)]()},_0x5b8aff={'MailAccountId':_0x39641b()[_0x2cb1cd(0x1de2)](_0x38953d[_0x2cb1cd(0x228e)]['rows'],'id'),'createdAt':_0x12637e};_0x38953d['query']=_0x39641b()[_0x2cb1cd(0x9c1)](_0x38953d[_0x2cb1cd(0xae2)],_0x5b8aff);}_0x3252d8['on']('mailInteraction:save',_0x39dfb9),_0x3252d8['on']('mailInteraction:update',_0x39dfb9),_0x3252d8['on']('mailInteractionTags:save',_0x11cb12),_0x3252d8['on'](_0x2cb1cd(0x198b),_0x3833cf),_0x3252d8['on']('mailMessage:update',_0x3833cf),_0x3252d8['on'](_0x2cb1cd(0xdc7),_0xb74072),_0x3252d8['on'](_0x2cb1cd(0x26f9),_0x391316),_0x61ace(_0x38953d[_0x2cb1cd(0xae2)][_0x2cb1cd(0x1c7b)]);});}function _0x203f14(){const _0x27221a=_0x24c8c2;return[{'name':_0x27221a(0x68d),'key':_0x27221a(0x24cb),'type':_0x27221a(0x18ec),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x27221a(0x223c),'key':_0x27221a(0xfc1),'type':_0x27221a(0x220f),'label':_0x27221a(0x9e5),'customOptions':[{'value':0x0,'translate':_0x27221a(0x1115)},{'value':0x1,'translate':_0x27221a(0x27a4)},{'value':null,'translate':_0x27221a(0x2706)}]},{'name':_0x27221a(0x938),'key':_0x27221a(0x22aa),'type':_0x27221a(0x220f),'label':_0x27221a(0x24b6),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x27221a(0x191b)},{'value':null,'translate':_0x27221a(0x2706)}]},{'name':_0x27221a(0x2020),'key':_0x27221a(0x20ed),'type':_0x27221a(0x220f),'label':_0x27221a(0x143d),'options':_0x38953d[_0x27221a(0x16a)]['rows'],'customOptions':[{'value':'null','translate':'DASHBOARDS.NONE'},{'value':undefined,'translate':'DASHBOARDS.ALL'}],'ngValue':_0x27221a(0x16b6),'ngIf':'closed\x20===\x200'},{'name':_0x27221a(0x1649),'key':_0x27221a(0x1285),'type':_0x27221a(0x1d50),'label':_0x27221a(0xf86),'options':_0x38953d['mailAccounts'][_0x27221a(0x2214)],'clearAll':![]},{'name':'Agent','key':'UserId','type':_0x27221a(0x220f),'label':_0x27221a(0x7bb),'customOptions':[{'value':_0x38953d[_0x27221a(0xebe)]['id'],'translate':_0x27221a(0x1ea6)},{'value':'null','translate':_0x27221a(0x68f)},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x27221a(0xf2d),'key':'tag','type':'multiselect','label':_0x27221a(0x3c3),'options':_0x38953d[_0x27221a(0xfbf)]['rows'],'placeholder':_0x27221a(0x62b)}];}function _0x510492(_0x20e6b8){const _0x5bb390=_0x24c8c2;_0x38953d[_0x5bb390(0x16cb)]=![],_0x38953d[_0x5bb390(0x1884)]=_0x20e6b8||{'count':0x0,'rows':[]};for(let _0x1867f7=0x0;_0x1867f7<_0x38953d[_0x5bb390(0x1884)][_0x5bb390(0x2214)][_0x5bb390(0xfd0)];_0x1867f7+=0x1){_0x10b839(_0x38953d[_0x5bb390(0x1884)]['rows'][_0x1867f7]);}}function _0x61ace(_0x129739){const _0x36556d=_0x24c8c2;_0x38953d[_0x36556d(0x16cb)]=!![];!_0x129739&&(_0x38953d['query'][_0x36556d(0x1c7b)]=0x1);_0x38953d[_0x36556d(0xae2)]['offset']=(_0x38953d[_0x36556d(0xae2)][_0x36556d(0x1c7b)]-0x1)*_0x38953d[_0x36556d(0xae2)][_0x36556d(0x236)];let _0x30a159=_0x29d1c2[_0x36556d(0x1b83)][_0x36556d(0x2091)](_0x36556d(0x294f)+_0x38953d[_0x36556d(0xebe)]['id']);_0x30a159=_0x30a159?JSON[_0x36556d(0xefe)](_0x30a159):{},_0x30a159[_0x36556d(0xae2)]=_0x38953d[_0x36556d(0xae2)],_0x29d1c2[_0x36556d(0x1b83)][_0x36556d(0x13a8)](_0x36556d(0x294f)+_0x38953d['user']['id'],JSON['stringify'](_0x30a159)),_0x38953d['promise']=_0xdb0c75['mailInteraction'][_0x36556d(0xbf7)](_0x38953d[_0x36556d(0xae2)],_0x510492)[_0x36556d(0x1d77)];}function _0x2600a6(_0x57fb7,_0x44d7c1){const _0x440dc3=_0x24c8c2;_0x5e3b52['$parent']['vm']['addInteractionTab'](_0x440dc3(0x2651),_0x44d7c1);}function _0x434129(_0x14d046,_0x15dc37,_0x458e7b){const _0x49a4fa=_0x24c8c2;_0xdb0c75[_0x49a4fa(0x8e9)][_0x49a4fa(0x26ec)]({'id':_0x15dc37['id'],'attachments':_0x458e7b})[_0x49a4fa(0x1d77)][_0x49a4fa(0x1cb0)](function(_0x3fd98b){const _0x17853f=_0x49a4fa,_0x52eab6=[_0x3fd98b['buffer']],_0x42821a=_0x17853f(0x914)+_0x15dc37['id']+_0x17853f(0x1b16),_0x5ad846=new Blob(_0x52eab6,{'type':_0x3fd98b['type']}),_0x3560ee=window['document']['createElement']('a');_0x3560ee[_0x17853f(0x23b9)](_0x17853f(0x105b),URL[_0x17853f(0x2247)](_0x5ad846)),_0x3560ee[_0x17853f(0x23b9)](_0x17853f(0x26ec),_0x42821a),document[_0x17853f(0x1ed9)][_0x17853f(0x23de)](_0x3560ee),_0x3560ee[_0x17853f(0x20b8)]();})[_0x49a4fa(0x1c4)](function(_0x4f688f){const _0x32485b=_0x49a4fa;if(_0x4f688f[_0x32485b(0x25c)]&&_0x4f688f[_0x32485b(0x25c)][_0x32485b(0x1a7c)]&&_0x4f688f[_0x32485b(0x25c)][_0x32485b(0x1a7c)][_0x32485b(0xfd0)])for(let _0x2e44b9=0x0;_0x2e44b9<_0x4f688f[_0x32485b(0x25c)][_0x32485b(0x1a7c)]['length'];_0x2e44b9+=0x1){_0x24f435[_0x32485b(0x218e)]({'title':_0x4f688f[_0x32485b(0x25c)][_0x32485b(0x1a7c)][_0x2e44b9][_0x32485b(0x66a)],'msg':_0x4f688f[_0x32485b(0x25c)][_0x32485b(0x1a7c)][_0x2e44b9]['message']});}else _0x24f435[_0x32485b(0x218e)]({'title':_0x4f688f[_0x32485b(0x291)]?_0x32485b(0xeb9)+_0x4f688f[_0x32485b(0x291)]+'\x20-\x20'+_0x4f688f[_0x32485b(0xc22)]:'downloadMailInteraction','msg':_0x4f688f[_0x32485b(0x25c)]?JSON[_0x32485b(0x2701)](_0x4f688f['data']['message']):_0x4f688f[_0x32485b(0x147f)]()});});}function _0x596a34(_0x1b3f00,_0x2b6f00){const _0xaade82=_0x24c8c2,_0xfc0e34=_0x38953d[_0xaade82(0xebe)][_0xaade82(0x2478)]||_0x38953d['user'][_0xaade82(0xf0c)]||_0x38953d[_0xaade82(0xebe)][_0xaade82(0x2035)]||_0x38953d[_0xaade82(0xebe)][_0xaade82(0x1c7d)]||_0x38953d[_0xaade82(0xebe)][_0xaade82(0x1ce)],_0x3ffbda=!_0x2b6f00[_0xaade82(0x1649)]['mandatoryDisposition'];_0x3d84bc['show']({'controller':_0xaade82(0x209d),'controllerAs':'vm','templateUrl':_0x3769c1,'parent':angular[_0xaade82(0x1853)](_0x91d69e['body']),'clickOutsideToClose':_0x3ffbda,'escapeToClose':_0x3ffbda,'onRemoving':function(){const _0x997bc4=_0xaade82;_0x38953d['user']&&_0x2b6f00['Account']['mandatoryDisposition']&&!_0xfc0e34&&_0xdb0c75[_0x997bc4(0xebe)][_0x997bc4(0xf5d)]({'id':_0x38953d[_0x997bc4(0xebe)]['id']})[_0x997bc4(0x1d77)][_0x997bc4(0x1c4)](function(_0x37d03d){const _0x1802c3=_0x997bc4;console[_0x1802c3(0x218e)](_0x37d03d);});},'locals':{'user':_0x38953d[_0xaade82(0xebe)],'channel':_0xaade82(0x2651),'interaction':_0x2b6f00}});}function _0x10b839(_0x180ce7){const _0x40c24c=_0x24c8c2;!_0x39641b()['isEmpty'](_0x180ce7['to'])&&_0x180ce7['Account']&&!_0x39641b()[_0x40c24c(0x250a)](_0x180ce7['to'],_0x180ce7[_0x40c24c(0x1649)][_0x40c24c(0x1e19)])?_0x180ce7[_0x40c24c(0x28b6)]=_0x180ce7['to'][_0x40c24c(0xbe1)]('<')[_0x40c24c(0xad3)]()['split']('>')[0x0]:_0x180ce7[_0x40c24c(0x28b6)]=_0x180ce7['Contact']?_0x180ce7[_0x40c24c(0x8d3)][_0x40c24c(0x1e19)]:undefined,_0x180ce7['contactName']===_0x40c24c(0x2087)&&(_0x180ce7[_0x40c24c(0x1325)]=_0x3a4175[_0x40c24c(0x25cc)]('APP.UNKNOWN'));}function _0xfbb0c(_0x38dc06){const _0x397a5c=_0x24c8c2;if(_0x38dc06[_0x397a5c(0x21ab)])return _0x38dc06[_0x397a5c(0x21ab)]===_0x38953d[_0x397a5c(0xebe)]['id']?_0x3a4175[_0x397a5c(0x25cc)](_0x397a5c(0x1ea6)):_0x38dc06[_0x397a5c(0x135d)][_0x397a5c(0x1d14)]+'\x20<'+_0x38dc06[_0x397a5c(0x135d)][_0x397a5c(0xdbd)]+'>';return _0x3a4175[_0x397a5c(0x25cc)](_0x397a5c(0x68f));}function _0x5a5571(_0x3c9f8b){const _0x52616f=_0x24c8c2;if(_0x3c9f8b[_0x52616f(0x1649)])return _0x3c9f8b[_0x52616f(0x1649)][_0x52616f(0xee8)];return _0x3a4175['instant']('APP.UNKNOWN');}function _0xf02aaf(_0x473f8b,_0x21c72e){const _0x4e6d56=_0x24c8c2;_0x21c72e['interaction']?(_0x21c72e['interaction']['isDraft']=!![],_0x2600a6(null,_0x21c72e['interaction'])):_0x3d84bc[_0x4e6d56(0xe27)]({'controller':'ComposeMailInteractionDialogController','controllerAs':'vm','templateUrl':_0x1c8a4d,'parent':angular['element'](_0x91d69e[_0x4e6d56(0x1ed9)]),'clickOutsideToClose':![],'locals':{'account':_0x21c72e['account'],'message':_0x21c72e[_0x4e6d56(0x862)],'type':'draft','interaction':{}},'fullscreen':!![]})[_0x4e6d56(0x1cb0)](function(_0x5d7a60){const _0x686031=_0x4e6d56;if(_0x5d7a60){if(_0x5d7a60[_0x686031(0x155e)]&&_0x5d7a60[_0x686031(0x155e)][_0x686031(0x275)]){const _0x511951={'id':_0x21c72e['id'],'channel':_0x686031(0x2651),'account':_0x5d7a60['account'],'message':_0x5d7a60[_0x686031(0x155e)]};_0x5231ac[_0x686031(0x687)](_0x511951);}else{const _0x43aaa3=_0x5d7a60;return _0xdb0c75[_0x686031(0x131c)][_0x686031(0x199f)]({'id':_0x21c72e[_0x686031(0x1539)]['id']},_0x43aaa3)['$promise']['then'](function(_0x1b8bd7){const _0xc583c3=_0x686031;_0x5231ac[_0xc583c3(0x152a)](_0x21c72e['id']);if(_0x1b8bd7&&_0x1b8bd7[_0xc583c3(0x223c)]&&_0x1b8bd7[_0xc583c3(0x223c)][_0xc583c3(0xfd0)]){if(_0x43aaa3[_0xc583c3(0x1abb)]&&_0x43aaa3['attachments'][_0xc583c3(0xfd0)])for(let _0x139665=0x0;_0x139665<_0x43aaa3[_0xc583c3(0x1abb)][_0xc583c3(0xfd0)];_0x139665+=0x1){_0xdb0c75[_0xc583c3(0x21d7)][_0xc583c3(0x687)]({'id':_0x43aaa3[_0xc583c3(0x1abb)][_0x139665]['id']},{'MailMessageId':_0x39641b()[_0xc583c3(0x2083)](_0x1b8bd7['Messages'])['id']});}_0x24f435[_0xc583c3(0x829)]({'title':_0xc583c3(0x113d),'msg':_0xc583c3(0x71e)});if(_0x1b8bd7[_0xc583c3(0x22aa)]){_0x1b8bd7[_0xc583c3(0x1746)]=null;const _0x1a613a=!_0x21c72e['account']['mandatoryDisposition'],_0x35e1c9=_0x38953d[_0xc583c3(0xebe)][_0xc583c3(0x2478)]||_0x38953d[_0xc583c3(0xebe)][_0xc583c3(0xf0c)]||_0x38953d['user'][_0xc583c3(0x2035)]||_0x38953d[_0xc583c3(0xebe)]['openchannelPause']||_0x38953d[_0xc583c3(0xebe)]['faxPause'];_0x3d84bc[_0xc583c3(0xe27)]({'controller':_0xc583c3(0x209d),'controllerAs':'vm','templateUrl':_0x3769c1,'parent':angular[_0xc583c3(0x1853)](_0x91d69e[_0xc583c3(0x1ed9)]),'onRemoving':function(){const _0x571da1=_0xc583c3;_0x38953d[_0x571da1(0xebe)]&&_0x21c72e[_0x571da1(0x1539)]['mandatoryDisposition']&&!_0x35e1c9&&_0xdb0c75['user'][_0x571da1(0xf5d)]({'id':_0x38953d[_0x571da1(0xebe)]['id']})[_0x571da1(0x1d77)][_0x571da1(0x1c4)](function(_0x45ba40){const _0x1aa2f7=_0x571da1;console[_0x1aa2f7(0x218e)](_0x45ba40);});},'clickOutsideToClose':_0x1a613a,'escapeToClose':_0x1a613a,'locals':{'user':_0x38953d[_0xc583c3(0xebe)],'channel':_0xc583c3(0x2651),'interaction':_0x1b8bd7}});}else _0x5e3b52[_0xc583c3(0x17bc)]['vm']['addInteractionTab'](_0xc583c3(0x2651),_0x1b8bd7);}})[_0x686031(0x1c4)](function(_0x413415){const _0x32c873=_0x686031;if(_0x413415[_0x32c873(0x25c)]&&_0x413415[_0x32c873(0x25c)][_0x32c873(0x1a7c)]&&_0x413415[_0x32c873(0x25c)][_0x32c873(0x1a7c)]['length'])for(let _0x4251d2=0x0;_0x4251d2<_0x413415['data']['errors'][_0x32c873(0xfd0)];_0x4251d2++){_0x24f435['error']({'title':_0x413415['data']['errors'][_0x4251d2][_0x32c873(0x66a)],'msg':_0x413415[_0x32c873(0x25c)][_0x32c873(0x1a7c)][_0x4251d2][_0x32c873(0x155e)]});}else _0x24f435[_0x32c873(0x218e)]({'title':_0x413415['status']?_0x32c873(0xeb9)+_0x413415['status']+'\x20-\x20'+_0x413415[_0x32c873(0xc22)]:_0x32c873(0x1323),'msg':_0x413415[_0x32c873(0x25c)]?JSON[_0x32c873(0x2701)](_0x413415[_0x32c873(0x25c)][_0x32c873(0x155e)]):_0x413415[_0x32c873(0x155e)]||_0x413415[_0x32c873(0x147f)]()});});}}});}function _0x472b1f(_0x35fc72,_0x4cf816){const _0x57085b=_0x24c8c2;_0x3d84bc[_0x57085b(0xe27)]({'controller':_0x57085b(0x2f9),'controllerAs':'vm','templateUrl':_0x1c8a4d,'parent':angular[_0x57085b(0x1853)](_0x91d69e[_0x57085b(0x1ed9)]),'clickOutsideToClose':![],'locals':{'account':_0x4cf816,'message':{},'type':_0x57085b(0x1295),'interaction':{}},'fullscreen':!![]})[_0x57085b(0x1cb0)](function(_0x4b92cc){const _0x3351e4=_0x57085b;if(_0x4b92cc){if(_0x4b92cc[_0x3351e4(0x155e)]&&_0x4b92cc['message'][_0x3351e4(0x275)]){const _0x2cf16d={'channel':_0x3351e4(0x2651),'account':_0x4cf816,'message':_0x4b92cc[_0x3351e4(0x155e)],'contact':_0x4b92cc[_0x3351e4(0x8b1)]};_0x5231ac[_0x3351e4(0x17a1)](_0x2cf16d);}else{const _0x41d1fd=_0x4b92cc;return _0xdb0c75[_0x3351e4(0x131c)][_0x3351e4(0x199f)]({'id':_0x4cf816['id']},_0x41d1fd)[_0x3351e4(0x1d77)]['then'](function(_0xcbfad9){const _0x4a999a=_0x3351e4;if(_0xcbfad9&&_0xcbfad9['Messages']&&_0xcbfad9[_0x4a999a(0x223c)][_0x4a999a(0xfd0)]){if(_0x41d1fd[_0x4a999a(0x1abb)]&&_0x41d1fd[_0x4a999a(0x1abb)][_0x4a999a(0xfd0)])for(let _0x518287=0x0;_0x518287<_0x41d1fd[_0x4a999a(0x1abb)]['length'];_0x518287+=0x1){_0xdb0c75['attachment'][_0x4a999a(0x687)]({'id':_0x41d1fd[_0x4a999a(0x1abb)][_0x518287]['id']},{'MailMessageId':_0x39641b()[_0x4a999a(0x2083)](_0xcbfad9[_0x4a999a(0x223c)])['id']});}_0x24f435[_0x4a999a(0x829)]({'title':_0x4a999a(0x113d),'msg':_0x4a999a(0x71e)});if(_0xcbfad9[_0x4a999a(0x22aa)]){_0xcbfad9['disposition']=null;const _0xceda47=!_0x4cf816[_0x4a999a(0x1935)],_0x20edde=_0x38953d[_0x4a999a(0xebe)]['voicePause']||_0x38953d[_0x4a999a(0xebe)]['chatPause']||_0x38953d[_0x4a999a(0xebe)][_0x4a999a(0x2035)]||_0x38953d['user']['openchannelPause']||_0x38953d['user'][_0x4a999a(0x1ce)];_0x3d84bc[_0x4a999a(0xe27)]({'controller':_0x4a999a(0x209d),'controllerAs':'vm','templateUrl':_0x3769c1,'parent':angular[_0x4a999a(0x1853)](_0x91d69e[_0x4a999a(0x1ed9)]),'onRemoving':function(){const _0x2b4e5c=_0x4a999a;_0x38953d['user']&&_0x4cf816['mandatoryDisposition']&&!_0x20edde&&_0xdb0c75[_0x2b4e5c(0xebe)]['unpause']({'id':_0x38953d[_0x2b4e5c(0xebe)]['id']})[_0x2b4e5c(0x1d77)][_0x2b4e5c(0x1c4)](function(_0x37db3e){const _0x37c522=_0x2b4e5c;console[_0x37c522(0x218e)](_0x37db3e);});},'clickOutsideToClose':_0xceda47,'escapeToClose':_0xceda47,'locals':{'user':_0x38953d[_0x4a999a(0xebe)],'channel':_0x4a999a(0x2651),'interaction':_0xcbfad9}});}else _0x5e3b52[_0x4a999a(0x17bc)]['vm']['addInteractionTab'](_0x4a999a(0x2651),_0xcbfad9);}})['catch'](function(_0x39bc28){const _0x485d39=_0x3351e4;if(_0x39bc28[_0x485d39(0x25c)]&&_0x39bc28[_0x485d39(0x25c)]['errors']&&_0x39bc28[_0x485d39(0x25c)]['errors']['length'])for(let _0x58581e=0x0;_0x58581e<_0x39bc28['data']['errors'][_0x485d39(0xfd0)];_0x58581e++){_0x24f435[_0x485d39(0x218e)]({'title':_0x39bc28[_0x485d39(0x25c)][_0x485d39(0x1a7c)][_0x58581e]['type'],'msg':_0x39bc28[_0x485d39(0x25c)]['errors'][_0x58581e][_0x485d39(0x155e)]});}else _0x24f435[_0x485d39(0x218e)]({'title':_0x39bc28[_0x485d39(0x291)]?_0x485d39(0xeb9)+_0x39bc28[_0x485d39(0x291)]+'\x20-\x20'+_0x39bc28[_0x485d39(0xc22)]:_0x485d39(0x1323),'msg':_0x39bc28['data']?JSON[_0x485d39(0x2701)](_0x39bc28[_0x485d39(0x25c)][_0x485d39(0x155e)]):_0x39bc28[_0x485d39(0x155e)]||_0x39bc28[_0x485d39(0x147f)]()});});}}});}function _0xb74072(_0x676777){const _0x1289cf=_0x24c8c2;let _0x545752;const _0x36a9b0=_0x39641b()[_0x1289cf(0x13b4)](_0x38953d[_0x1289cf(0x1884)][_0x1289cf(0x2214)],{'id':_0x676777[_0x1289cf(0x20e7)]});_0x36a9b0&&_0x36a9b0['Users']&&(_0x545752=_0x39641b()[_0x1289cf(0x13b4)](_0x36a9b0[_0x1289cf(0x2653)],{'id':_0x676777['UserId']}),!_0x545752&&_0x36a9b0[_0x1289cf(0x2653)]['push']({'id':_0x676777['UserId']}));}function _0x391316(_0x137122){const _0x98d55f=_0x24c8c2,_0xf40a8f=_0x39641b()[_0x98d55f(0x13b4)](_0x38953d[_0x98d55f(0x1884)]['rows'],{'id':_0x137122[_0x98d55f(0x20e7)]});_0xf40a8f&&_0xf40a8f[_0x98d55f(0x2653)]&&_0x39641b()[_0x98d55f(0x152a)](_0xf40a8f[_0x98d55f(0x2653)],{'id':_0x137122[_0x98d55f(0x21ab)]});}function _0x39dfb9(_0x3ef834){const _0x2c7c63=_0x24c8c2;if(_0x3ef834){const _0x35fe8e=_0x39641b()[_0x2c7c63(0x13b4)](_0x38953d[_0x2c7c63(0x1884)][_0x2c7c63(0x2214)],{'id':_0x3ef834['id']});if(_0x35fe8e){_0x35fe8e[_0x2c7c63(0x2653)]=[];_0x3ef834[_0x2c7c63(0x22aa)]&&(_0x35fe8e[_0x2c7c63(0x1554)]=0x0);if(_0x38953d[_0x2c7c63(0xae2)][_0x2c7c63(0x1381)]){const _0x399968=_0x39641b()[_0x2c7c63(0x1f2c)](_0x38953d[_0x2c7c63(0xae2)][_0x2c7c63(0x1381)],'-')?_0x2c7c63(0x20a5):_0x2c7c63(0x24cc);_0x38953d[_0x2c7c63(0x1884)][_0x2c7c63(0x2214)]=_0x39641b()[_0x2c7c63(0x17ca)](_0x38953d[_0x2c7c63(0x1884)][_0x2c7c63(0x2214)],_0x39641b()[_0x2c7c63(0x359)](_0x38953d[_0x2c7c63(0xae2)][_0x2c7c63(0x1381)],'-'),_0x399968);}_0x39641b()[_0x2c7c63(0x9c1)](_0x35fe8e,_0x39641b()['pick'](_0x3ef834,_0x39641b()['keys'](_0x35fe8e)));}else _0x61ace(_0x38953d[_0x2c7c63(0xae2)][_0x2c7c63(0x1c7b)]);}}function _0x11cb12(_0x32598c){const _0x7932fe=_0x24c8c2;if(_0x32598c){const _0x257348=_0x39641b()[_0x7932fe(0x13b4)](_0x38953d['mailInteractions'][_0x7932fe(0x2214)],{'id':_0x32598c['id']});_0x257348&&(_0x257348[_0x7932fe(0x190)]=_0x32598c['tags']||[],_0x39641b()[_0x7932fe(0x9c1)](_0x257348,_0x39641b()[_0x7932fe(0x169b)](_0x32598c,_0x39641b()[_0x7932fe(0x1be5)](_0x257348))));}}function _0x3833cf(_0x500037){const _0x16dc08=_0x24c8c2;if(_0x500037&&!_0x500037[_0x16dc08(0x1105)]){const _0x2c26cc=_0x39641b()[_0x16dc08(0x13b4)](_0x38953d[_0x16dc08(0x1884)][_0x16dc08(0x2214)],{'id':_0x500037[_0x16dc08(0x20e7)]});if(_0x2c26cc){const _0x33f959=_0x39641b()[_0x16dc08(0x13b4)](_0x2c26cc[_0x16dc08(0x223c)],{'id':_0x500037['id']});_0x33f959?_0x39641b()['merge'](_0x33f959,_0x39641b()['pick'](_0x500037,_0x39641b()['keys'](_0x33f959))):(_0x39641b()[_0x16dc08(0x958)](_0x2c26cc[_0x16dc08(0x223c)])&&(_0x2c26cc[_0x16dc08(0x223c)]={'count':0x0}),!_0x500037[_0x16dc08(0xfc1)]&&(_0x2c26cc['Messages'][_0x16dc08(0x184d)]+=0x1));}}}function _0x12eb0b(){const _0xd3bcf0=_0x24c8c2;_0x38953d[_0xd3bcf0(0x1e6c)]=![];}function _0x32122(){const _0x1f9460=_0x24c8c2;_0x38953d[_0x1f9460(0x1e6c)]=!![];}function _0x561cb1(){const _0x2e608b=_0x24c8c2;_0x38953d['isSearchBarVisible']=![],_0x3d84bc['show']({'controller':_0x2e608b(0x15f7),'controllerAs':'vm','templateUrl':_0x3530d6,'parent':angular[_0x2e608b(0x1853)](_0x91d69e['body']),'clickOutsideToClose':![],'locals':{'color':_0x38953d[_0x2e608b(0xaee)],'fields':_0x38953d['advancedSearch'][_0x2e608b(0x355)],'storagePath':_0x2e608b(0x112f)},'fullscreen':!![]})['then'](function(_0x4dbcf1){const _0x336b10=_0x2e608b;_0x38953d[_0x336b10(0xae2)]['search']=_0x4dbcf1===![]?undefined:_0x4dbcf1;if(_0x38953d[_0x336b10(0xae2)]['search']||_0x4dbcf1===![])_0x61ace();})[_0x2e608b(0x1c4)](function(_0x1f7c89){const _0x2483f6=_0x2e608b;_0x24f435['error']({'title':_0x2483f6(0x2260),'msg':_0x1f7c89['data']?JSON['stringify'](_0x1f7c89[_0x2483f6(0x25c)][_0x2483f6(0x155e)]):_0x1f7c89[_0x2483f6(0x147f)]()});});}let _0x10adfb=!![],_0x3f050e=0x1;_0x5e3b52[_0x24c8c2(0x614)](_0x24c8c2(0x957),function(_0x3b0f85,_0x55642d){const _0x5774fe=_0x24c8c2;_0x10adfb?_0x18ac0e(function(){_0x10adfb=![];}):(!_0x55642d&&(_0x3f050e=_0x38953d[_0x5774fe(0xae2)]['page']),_0x3b0f85!==_0x55642d&&(_0x38953d[_0x5774fe(0xae2)][_0x5774fe(0x1c7b)]=0x1),!_0x3b0f85&&(_0x38953d[_0x5774fe(0xae2)][_0x5774fe(0x1c7b)]=_0x3f050e),_0x61ace(_0x38953d['query'][_0x5774fe(0x1c7b)]));}),_0x5e3b52[_0x24c8c2(0x1d6)](_0x24c8c2(0x291c),function(){const _0x454881=_0x24c8c2;_0x3252d8[_0x454881(0xfb8)]('mailMessage:save'),_0x3252d8[_0x454881(0xfb8)](_0x454881(0x899)),_0x3252d8['removeAllListeners'](_0x454881(0x5d4)),_0x3252d8[_0x454881(0xfb8)](_0x454881(0x152d)),_0x3252d8[_0x454881(0xfb8)](_0x454881(0xc5d)),_0x3252d8[_0x454881(0xfb8)](_0x454881(0xdc7)),_0x3252d8['removeAllListeners'](_0x454881(0x26f9));});}const _0x4d2313=_0x84d13f;;_0x105e77['$inject']=[_0x5537c6(0x22bf),'$scope',_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x1774),'api',_0x5537c6(0x1f10),_0x5537c6(0x9bf)];function _0x105e77(_0x21b1d7,_0x14f710,_0x598c91,_0x4b7dbc,_0x57c7c3,_0x549195,_0x205c75,_0xdb2aa2){const _0x28a658=_0x5537c6,_0x54cbe8=this;_0x54cbe8[_0x28a658(0xe76)]=_0x57c7c3[_0x28a658(0x21e8)](),_0x54cbe8[_0x28a658(0x1046)]={},_0x54cbe8[_0x28a658(0x7eb)]={'count':0x0,'rows':[]},_0x54cbe8['tags']={'count':0x0,'rows':[]},_0x54cbe8[_0x28a658(0xae2)]={'includeAll':!![],'id':_0x54cbe8[_0x28a658(0xe76)]['id'],'sort':_0x28a658(0x282),'limit':0xa,'page':0x1},_0x54cbe8[_0x28a658(0x16ad)]={'fields':[]},_0x54cbe8[_0x28a658(0xaee)]='red',_0x54cbe8['getContacts']=_0x305e91,_0x54cbe8[_0x28a658(0x752)]=_0x1a94e0,_0x54cbe8[_0x28a658(0x1ecc)]=_0x212bd5,_0x54cbe8[_0x28a658(0x211a)]=_0x45e81a,_0x54cbe8[_0x28a658(0x122c)]=_0x439390,_0x54cbe8[_0x28a658(0x205d)]=_0x14f710['$parent']['vm'][_0x28a658(0x205d)],_0x54cbe8[_0x28a658(0x1a34)]=_0x4b2f98,_0x54cbe8['onSearchBarCollapse']=_0x14744e,_0x54cbe8[_0x28a658(0x28a8)]=_0x3b3b9f,_0x54cbe8[_0x28a658(0x1ede)]=_0x8a8cbf;function _0x4b2f98(){const _0x431d9a=_0x28a658;_0x549195[_0x431d9a(0x22f2)][_0x431d9a(0xbf7)]({'fields':'id,name,dialPrefix','sort':_0x431d9a(0x16b6),'nolimit':!![]})[_0x431d9a(0x1d77)][_0x431d9a(0x1cb0)](function(_0x3d99fc){const _0x287c25=_0x431d9a;return _0x54cbe8[_0x287c25(0x1046)]=_0x3d99fc||{'count':0x0,'rows':[]},_0x54cbe8['listsMap']=_0x39641b()[_0x287c25(0x2631)](_0x54cbe8[_0x287c25(0x1046)]['rows'],'id'),_0x549195[_0x287c25(0x22b1)][_0x287c25(0xbf7)]()['$promise'];})[_0x431d9a(0x1cb0)](function(_0xa2b0c5){const _0x197b21=_0x431d9a;_0x54cbe8[_0x197b21(0xfbf)]=_0xa2b0c5||{'count':0x0,'rows':[]};})[_0x431d9a(0x1cb0)](function(){const _0x3493df=_0x431d9a;_0x54cbe8[_0x3493df(0x789)]=_0x145664();})[_0x431d9a(0x1c4)](function(_0x3655b0){const _0x114488=_0x431d9a;console[_0x114488(0x218e)](_0x3655b0);})[_0x431d9a(0x2e0)](function(){const _0x5e2b11=_0x431d9a;let _0x191a22=_0x205c75[_0x5e2b11(0x1b83)][_0x5e2b11(0x2091)]('motion2.home.mycontacts:'+_0x54cbe8['currentUser']['id']);if(_0x191a22)try{_0x191a22=JSON[_0x5e2b11(0xefe)](_0x191a22);if(_0x191a22[_0x5e2b11(0xae2)]){_0x54cbe8[_0x5e2b11(0xae2)]=_0x39641b()[_0x5e2b11(0x9c1)](_0x54cbe8[_0x5e2b11(0xae2)],_0x191a22[_0x5e2b11(0xae2)]);if(_0x39641b()[_0x5e2b11(0xce9)](_0x54cbe8[_0x5e2b11(0x1046)][_0x5e2b11(0x2214)]))_0x54cbe8[_0x5e2b11(0xae2)][_0x5e2b11(0x20a6)]=[];else _0x39641b()[_0x5e2b11(0xce9)](_0x54cbe8[_0x5e2b11(0xae2)]['ListId'])&&(_0x54cbe8[_0x5e2b11(0xae2)][_0x5e2b11(0x20a6)]=_0x39641b()(_0x54cbe8[_0x5e2b11(0x1046)][_0x5e2b11(0x2214)])[_0x5e2b11(0x1de2)]('id')[_0x5e2b11(0x54f)]()[_0x5e2b11(0x327)]());}}catch(_0x2dad5a){console[_0x5e2b11(0x218e)](_0x2dad5a);}else _0x54cbe8['query'][_0x5e2b11(0x20a6)]=_0x39641b()[_0x5e2b11(0x1de2)](_0x54cbe8['lists']['rows'],'id');_0x54cbe8[_0x5e2b11(0x1e6c)]=_0x54cbe8[_0x5e2b11(0xae2)][_0x5e2b11(0x1c99)]?!![]:![],_0x305e91();});}function _0x145664(){const _0x1ad6e9=_0x28a658;return[{'name':_0x1ad6e9(0x23b0),'key':_0x1ad6e9(0x20a6),'type':_0x1ad6e9(0x1d50),'label':'CONTACTMANAGER.SELECT_LIST','options':_0x54cbe8[_0x1ad6e9(0x1046)]['rows'],'clearAll':![]},{'name':'Tag','key':'tag','type':_0x1ad6e9(0x1d50),'label':_0x1ad6e9(0x3c3),'options':_0x54cbe8['tags']['rows'],'placeholder':_0x1ad6e9(0x62b)}];}function _0x5a7f20(_0x36db6d){const _0x54db57=_0x28a658;_0x54cbe8[_0x54db57(0x16cb)]=![],_0x54cbe8[_0x54db57(0x7eb)]=_0x36db6d||{'count':0x0,'rows':[]};}function _0x305e91(_0x178e9d){const _0x8e6025=_0x28a658;_0x54cbe8['searchInProgress']=!![],_0x3c9bad();!_0x178e9d&&(_0x54cbe8[_0x8e6025(0xae2)][_0x8e6025(0x1c7b)]=0x1);_0x54cbe8[_0x8e6025(0xae2)][_0x8e6025(0x184b)]=(_0x54cbe8[_0x8e6025(0xae2)][_0x8e6025(0x1c7b)]-0x1)*_0x54cbe8[_0x8e6025(0xae2)][_0x8e6025(0x236)];let _0x417365=_0x205c75[_0x8e6025(0x1b83)][_0x8e6025(0x2091)]('motion2.home.mycontacts:'+_0x54cbe8[_0x8e6025(0xe76)]['id']);_0x417365=_0x417365?JSON[_0x8e6025(0xefe)](_0x417365):{},_0x417365[_0x8e6025(0xae2)]=_0x54cbe8[_0x8e6025(0xae2)],_0x205c75['localStorage'][_0x8e6025(0x13a8)](_0x8e6025(0x22e4)+_0x54cbe8['currentUser']['id'],JSON['stringify'](_0x417365));if(_0x54cbe8[_0x8e6025(0xae2)][_0x8e6025(0x24be)])_0x54cbe8['advancedQuery']=_0x39641b()[_0x8e6025(0x1bd8)](_0x54cbe8[_0x8e6025(0xae2)],'id');_0x54cbe8[_0x8e6025(0x2061)]=_0x54cbe8[_0x8e6025(0xae2)][_0x8e6025(0x24be)]?_0x549195[_0x8e6025(0xbe7)][_0x8e6025(0xbf7)](_0x54cbe8['advancedQuery'],_0x5a7f20)[_0x8e6025(0x1d77)]:_0x549195[_0x8e6025(0xebe)][_0x8e6025(0x1586)](_0x54cbe8[_0x8e6025(0xae2)],_0x5a7f20)[_0x8e6025(0x1d77)];}function _0x439390(_0x1821b5,_0x14b903){const _0x529980=_0x28a658;_0x14f710[_0x529980(0x17bc)]['vm'][_0x529980(0x1bac)](_0x14b903);}function _0x1a94e0(){_0x305e91();}function _0x45e81a(_0x24c21c,_0x195118){const _0x417bdc=_0x28a658;_0x4b7dbc[_0x417bdc(0xe27)]({'controller':_0x417bdc(0xc73),'controllerAs':'vm','templateUrl':_0x4e0982,'parent':angular['element'](_0x21b1d7['body']),'targetEvent':_0x24c21c,'clickOutsideToClose':!![],'resolve':{'contact':[_0x417bdc(0x1e0b),function(_0x493d9d){const _0x3b00fe=_0x417bdc;return _0x493d9d[_0x3b00fe(0x19a3)](_0x3b00fe(0x1095),{'id':_0x195118['id']});}],'lists':[_0x417bdc(0x1e0b),function(_0x442747){const _0x2e3576=_0x417bdc;return _0x442747[_0x2e3576(0x19a3)](_0x2e3576(0xbcf),{'id':_0x54cbe8['currentUser']['id'],'fields':_0x2e3576(0x43c)});}]},'locals':{'contacts':_0x54cbe8[_0x417bdc(0x7eb)][_0x417bdc(0x2214)]}});}function _0x212bd5(_0x44f7fd,_0x3cb1dc){const _0x5a4a8b=_0x28a658;_0x4b7dbc[_0x5a4a8b(0xe27)]({'controller':_0x5a4a8b(0x219f),'controllerAs':'vm','templateUrl':_0x860e6c,'parent':angular[_0x5a4a8b(0x1853)](_0x21b1d7[_0x5a4a8b(0x1ed9)]),'targetEvent':_0x44f7fd,'clickOutsideToClose':!![],'resolve':{'contact':[_0x5a4a8b(0x1e0b),function(_0x1d3a3c){const _0x179a5a=_0x5a4a8b;return _0x1d3a3c[_0x179a5a(0x19a3)](_0x179a5a(0x1095),{'id':_0x3cb1dc['id']});}],'lists':[_0x5a4a8b(0x1e0b),function(_0x4b295d){const _0x4b1dc3=_0x5a4a8b;return _0x4b295d[_0x4b1dc3(0x19a3)](_0x4b1dc3(0xbcf),{'id':_0x54cbe8[_0x4b1dc3(0xe76)]['id'],'fields':_0x4b1dc3(0x43c)});}]},'locals':{'contacts':_0x54cbe8[_0x5a4a8b(0x7eb)][_0x5a4a8b(0x2214)]}});}function _0x14744e(){const _0x431302=_0x28a658;_0x54cbe8[_0x431302(0x1e6c)]=![];}function _0x3b3b9f(){_0x54cbe8['isSearchBarVisible']=!![];}function _0x3c9bad(){const _0x1b906f=_0x28a658;return _0x549195[_0x1b906f(0xbe7)][_0x1b906f(0x1e57)]({'id':_0x54cbe8[_0x1b906f(0xae2)]['ListId']})['$promise']['then'](function(_0x248fdb){const _0x206528=_0x1b906f;return _0x39641b()(_0x248fdb[_0x206528(0x19b2)]())[_0x206528(0x1bd8)](_0x206528(0x21ab))['values']()[_0x206528(0x1de2)](function(_0x1d3296){return _0x4fbbb2(_0x1d3296);})[_0x206528(0x327)]();})[_0x1b906f(0x1cb0)](function(_0x65a303){const _0x157b3f=_0x1b906f;_0x54cbe8[_0x157b3f(0x16ad)]['fields']=_0x65a303;const _0x12845b={'name':_0x157b3f(0x190),'column':_0x157b3f(0xf2d),'type':_0x157b3f(0x1d50),'options':{'route':{'model':'tag','action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x157b3f(0x62d)]}};let _0x52f934=_0x39641b()[_0x157b3f(0x3c2)](_0x65a303,function(_0x192d72){const _0x25c784=_0x157b3f;return _0x39641b()['startsWith'](_0x192d72[_0x25c784(0xa9c)],_0x25c784(0x1e4b));})||_0x65a303[_0x157b3f(0xfd0)]-0x1;if(_0x52f934<0x0)_0x52f934=_0x65a303[_0x157b3f(0xfd0)];_0x54cbe8[_0x157b3f(0x16ad)][_0x157b3f(0x355)][_0x157b3f(0x159c)](_0x52f934,0x0,_0x12845b);})['catch'](function(_0x55ff1f){const _0xda4b5e=_0x1b906f;_0xdb2aa2[_0xda4b5e(0x218e)]({'title':_0x55ff1f[_0xda4b5e(0x291)]?_0xda4b5e(0xeb9)+_0x55ff1f['status']+_0xda4b5e(0x1657)+_0x55ff1f['statusText']:_0xda4b5e(0x2795),'msg':_0x55ff1f[_0xda4b5e(0x25c)]?JSON['stringify'](_0x55ff1f[_0xda4b5e(0x25c)]['message']):_0x55ff1f[_0xda4b5e(0x147f)]()});});}function _0x4fbbb2(_0x260e83){const _0x3b40b1=_0x28a658,_0x38a6ad={'name':_0x39641b()['startCase'](_0x260e83[_0x3b40b1(0x254b)]),'column':_0x260e83[_0x3b40b1(0x34f)],'options':{}};if(_0x260e83[_0x3b40b1(0x197c)])switch(_0x260e83['custom']['type']){case'text':_0x38a6ad[_0x3b40b1(0x66a)]='text';break;case _0x3b40b1(0x220f):_0x38a6ad['type']=_0x3b40b1(0x1d50),_0x38a6ad[_0x3b40b1(0x27aa)]=_0x39641b()[_0x3b40b1(0x1de2)](JSON[_0x3b40b1(0xefe)](_0x260e83[_0x3b40b1(0x197c)][_0x3b40b1(0x27aa)]),function(_0x59483a,_0x64e3ac){const _0x1717d5=_0x3b40b1;return{'id':_0x64e3ac,'name':_0x59483a[_0x1717d5(0x327)],'value':_0x59483a[_0x1717d5(0x327)]};}),_0x38a6ad[_0x3b40b1(0x2224)][_0x3b40b1(0x2198)]=_0x3b40b1(0x16b6);break;case _0x3b40b1(0x1f0e):_0x38a6ad[_0x3b40b1(0x66a)]=_0x3b40b1(0x220f),_0x38a6ad[_0x3b40b1(0x27aa)]=[{'id':0x1,'translate':_0x3b40b1(0x267d)},{'id':0x0,'translate':_0x3b40b1(0x2430)}],_0x38a6ad['options']['excludedOperators']=[_0x3b40b1(0x15ce)];break;case'number':_0x38a6ad[_0x3b40b1(0x66a)]=_0x3b40b1(0x83d);break;case'datetime':_0x38a6ad[_0x3b40b1(0x66a)]=_0x3b40b1(0x18ec);break;}else switch(_0x260e83[_0x3b40b1(0x34f)]){case _0x3b40b1(0xdda):_0x38a6ad['type']=_0x3b40b1(0x18ec);break;case _0x3b40b1(0x27ac):_0x38a6ad[_0x3b40b1(0x16b6)]=_0x3b40b1(0x1f99),_0x38a6ad[_0x3b40b1(0x66a)]=_0x3b40b1(0x19e0),_0x38a6ad[_0x3b40b1(0x2224)][_0x3b40b1(0x15d0)]={'model':'cmCompany','action':'get','params':{'fields':_0x3b40b1(0x43c),'nolimit':!![]}},_0x38a6ad[_0x3b40b1(0x2224)][_0x3b40b1(0x256c)]=['name'],_0x38a6ad[_0x3b40b1(0x2224)]['excludedOperators']=['$ne'];break;case _0x3b40b1(0x20a6):_0x38a6ad['name']='List',_0x38a6ad[_0x3b40b1(0x66a)]='autocomplete',_0x38a6ad['options'][_0x3b40b1(0x15d0)]={'model':_0x3b40b1(0xebe),'action':'getLists','params':{'id':_0x54cbe8[_0x3b40b1(0xe76)]['id'],'fields':_0x3b40b1(0x43c),'nolimit':!![]}},_0x38a6ad['options'][_0x3b40b1(0x256c)]=[_0x3b40b1(0x16b6)],_0x38a6ad[_0x3b40b1(0x2224)][_0x3b40b1(0x9db)]=['$ne'];break;default:if(_0x39641b()[_0x3b40b1(0x250a)](_0x260e83['type'][_0x3b40b1(0x1680)](),_0x3b40b1(0x68b)))_0x38a6ad[_0x3b40b1(0x66a)]='number';else _0x39641b()[_0x3b40b1(0x250a)](_0x260e83[_0x3b40b1(0x66a)][_0x3b40b1(0x1680)](),_0x3b40b1(0x18ec))?_0x38a6ad[_0x3b40b1(0x66a)]=_0x3b40b1(0x18ec):_0x38a6ad[_0x3b40b1(0x66a)]=_0x3b40b1(0x19d3);break;}return _0x38a6ad;}function _0x8a8cbf(){const _0x2435a1=_0x28a658;_0x54cbe8[_0x2435a1(0x1e6c)]=![],_0x4b7dbc[_0x2435a1(0xe27)]({'controller':_0x2435a1(0x15f7),'controllerAs':'vm','templateUrl':_0x3530d6,'parent':angular['element'](_0x21b1d7['body']),'clickOutsideToClose':![],'locals':{'color':_0x54cbe8['sectionColor'],'fields':_0x54cbe8[_0x2435a1(0x16ad)][_0x2435a1(0x355)],'storagePath':_0x2435a1(0x14da)},'fullscreen':!![]})[_0x2435a1(0x1cb0)](function(_0x39f730){const _0x48182e=_0x2435a1;_0x54cbe8[_0x48182e(0xae2)]['search']=_0x39f730===![]?undefined:_0x39f730;if(_0x39f730===![])_0x305e91();else _0x54cbe8[_0x48182e(0xae2)][_0x48182e(0x24be)]&&(_0x54cbe8['query'][_0x48182e(0x24be)]+='||User:=$eq['+_0x54cbe8[_0x48182e(0xe76)]['id']+']',_0x305e91());})['catch'](function(_0x1447ab){const _0x2a0e47=_0x2435a1;_0xdb2aa2[_0x2a0e47(0x218e)]({'title':_0x2a0e47(0x2260),'msg':_0x1447ab[_0x2a0e47(0x25c)]?JSON[_0x2a0e47(0x2701)](_0x1447ab[_0x2a0e47(0x25c)]['message']):_0x1447ab[_0x2a0e47(0x147f)]()});});}let _0x2511aa=!![],_0x5df94b=0x1;_0x14f710[_0x28a658(0x614)]('vm.query.filter',function(_0x4e56a1,_0x2946a0){const _0x357786=_0x28a658;_0x2511aa?_0x598c91(function(){_0x2511aa=![];}):(!_0x2946a0&&(_0x5df94b=_0x54cbe8[_0x357786(0xae2)]['page']),_0x4e56a1!==_0x2946a0&&(_0x54cbe8[_0x357786(0xae2)]['page']=0x1),!_0x4e56a1&&(_0x54cbe8[_0x357786(0xae2)][_0x357786(0x1c7b)]=_0x5df94b),_0x305e91());});}const _0x41df01=_0x105e77;;_0x4c33f8['$inject']=[_0x5537c6(0x1463),'$timeout',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1f10),_0x5537c6(0x1ae),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1986),'toasty',_0x5537c6(0x1b68)];function _0x4c33f8(_0x27d430,_0x2aa1b9,_0x1e0428,_0x330e19,_0x5608f7,_0x2849cf,_0x163c95,_0xab883d,_0x2f88f4,_0x1beb0a,_0x10a08a){const _0x474d70=_0x5537c6,_0x2b0b66=this;_0x2b0b66['user']=_0xab883d[_0x474d70(0x21e8)](),_0x2b0b66[_0x474d70(0x8a5)]={},_0x2b0b66[_0x474d70(0x9ca)]={},_0x2b0b66[_0x474d70(0xfbf)]={'count':0x0,'rows':[]},_0x2b0b66[_0x474d70(0x1e9c)]={'count':0x0,'rows':[]},_0x2b0b66['query']={'includeAll':!![],'sort':_0x474d70(0x282),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x2b0b66[_0x474d70(0x16ad)]={'fields':[{'name':'Id','column':'id','type':'number'},{'name':_0x474d70(0x8d3),'column':_0x474d70(0x8d3),'type':'autocomplete','options':{'searchFields':['firstName',_0x474d70(0x1fbb),_0x474d70(0x1e19)],'route':{'model':_0x474d70(0xbe7),'action':_0x474d70(0xbf7),'params':{'fields':'id,firstName,lastName,email','Contact':_0x474d70(0xed6),'nolimit':!![]}},'extraOperators':[_0x474d70(0x1fb1)],'excludedOperators':['$ne']}},{'name':_0x474d70(0x269b),'column':_0x474d70(0x1ed9),'type':'text','options':{'excludedOperators':[_0x474d70(0x1c5e),'$ne']}},{'name':_0x474d70(0x938),'column':_0x474d70(0x22aa),'type':_0x474d70(0x220f),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x474d70(0x191b)}],'options':{'excludedOperators':['$ne']}},{'name':_0x474d70(0x30e),'column':_0x474d70(0x1597),'type':_0x474d70(0x19e0),'options':{'table':'i','route':{'model':'user','action':_0x474d70(0xbf7),'params':{'role':_0x474d70(0x1eff),'fields':_0x474d70(0x1d34),'nolimit':!![]}},'searchFields':[_0x474d70(0x1d14),_0x474d70(0x16b6)],'extraOperators':[_0x474d70(0x1fb1)],'excludedOperators':['$ne']}},{'name':_0x474d70(0x1649),'column':_0x474d70(0x1d1e),'type':_0x474d70(0x1d50),'options':{'route':{'model':_0x474d70(0xebe),'action':_0x474d70(0x29c4),'params':{'id':_0x2b0b66[_0x474d70(0xebe)]['id'],'nolimit':!![]}}}},{'name':_0x474d70(0x190),'column':'Tag','type':'multiselect','options':{'route':{'model':'tag','action':_0x474d70(0xbf7),'params':{'nolimit':!![]}},'excludedOperators':[_0x474d70(0x62d)]}},{'name':_0x474d70(0x68d),'column':_0x474d70(0x24cb),'type':_0x474d70(0x18ec),'options':{'excludedOperators':['$ne']}},{'name':'Read','column':_0x474d70(0x1554),'type':_0x474d70(0x220f),'values':[{'id':0x1,'translate':_0x474d70(0x27a4)},{'id':0x0,'translate':_0x474d70(0x1115)}],'options':{'excludedOperators':['$ne']}}]},_0x2b0b66[_0x474d70(0xaee)]='amber',_0x2b0b66[_0x474d70(0x1a34)]=_0x374c78,_0x2b0b66[_0x474d70(0x829)]=_0x151668,_0x2b0b66[_0x474d70(0xd90)]=_0x342b98,_0x2b0b66[_0x474d70(0xb1b)]=_0x2268b7,_0x2b0b66[_0x474d70(0x679)]=_0x2870d5,_0x2b0b66['disposeInteraction']=_0x20383b,_0x2b0b66[_0x474d70(0x2929)]=_0x27297e,_0x2b0b66[_0x474d70(0x11e5)]=_0x32973d,_0x2b0b66[_0x474d70(0x2762)]=_0x5450b8,_0x2b0b66[_0x474d70(0x19cf)]=_0x4cba34,_0x2b0b66['onSearchBarCollapse']=_0x46fbb6,_0x2b0b66[_0x474d70(0x28a8)]=_0x3c7bc6,_0x2b0b66['openAdvancedSearch']=_0x44b81c;function _0x374c78(_0x125080,_0x378541){const _0x3fcdf9=_0x474d70;return _0x2b0b66[_0x3fcdf9(0x8a5)]=_0x125080,_0x2b0b66['setting']=_0x378541,_0x163c95[_0x3fcdf9(0xebe)][_0x3fcdf9(0xbf7)+_0x39641b()[_0x3fcdf9(0x277)](_0x3fcdf9(0xe5c))]({'id':_0x2b0b66[_0x3fcdf9(0xebe)]['id'],'nolimit':!![]})['$promise'][_0x3fcdf9(0x1cb0)](function(_0x7ace39){const _0xa92fc7=_0x3fcdf9;return _0x2b0b66[_0xa92fc7(0xe5c)]=_0x7ace39||{'count':0x0,'rows':[]},_0x163c95[_0xa92fc7(0x22b1)][_0xa92fc7(0xbf7)]()[_0xa92fc7(0x1d77)];})[_0x3fcdf9(0x1cb0)](function(_0x2ab138){const _0x48890b=_0x3fcdf9;_0x2b0b66[_0x48890b(0xfbf)]=_0x2ab138||{'count':0x0,'rows':[]};})['then'](function(){const _0x3e4680=_0x3fcdf9;_0x2b0b66[_0x3e4680(0x789)]=_0x5cfeed();})[_0x3fcdf9(0x1c4)](function(_0x41b066){const _0x28a62c=_0x3fcdf9;console[_0x28a62c(0x218e)](_0x41b066);})[_0x3fcdf9(0x2e0)](function(){const _0x30cd8d=_0x3fcdf9;let _0x1b497f=_0x5608f7[_0x30cd8d(0x1b83)]['getItem'](_0x30cd8d(0x1443)+_0x2b0b66['user']['id']);if(_0x1b497f)try{_0x1b497f=JSON[_0x30cd8d(0xefe)](_0x1b497f);if(_0x1b497f[_0x30cd8d(0xae2)]){_0x2b0b66[_0x30cd8d(0xae2)]=_0x39641b()[_0x30cd8d(0x9c1)](_0x2b0b66['query'],_0x1b497f['query']);if(_0x39641b()[_0x30cd8d(0xce9)](_0x2b0b66[_0x30cd8d(0xe5c)]['rows']))_0x2b0b66[_0x30cd8d(0xae2)]['OpenchannelAccountId']=[];else _0x39641b()[_0x30cd8d(0xce9)](_0x2b0b66[_0x30cd8d(0xae2)]['OpenchannelAccountId'])&&(_0x2b0b66[_0x30cd8d(0xae2)][_0x30cd8d(0x1d1e)]=_0x39641b()(_0x2b0b66['openchannelAccounts'][_0x30cd8d(0x2214)])[_0x30cd8d(0x1de2)]('id')['take']()['value']());_0x2b0b66[_0x30cd8d(0xae2)][_0x30cd8d(0x1381)]&&_0x2b0b66[_0x30cd8d(0xae2)][_0x30cd8d(0x1381)][_0x30cd8d(0xd8a)](_0x30cd8d(0x15d6))>=0x0&&(_0x2b0b66[_0x30cd8d(0xae2)]=_0x39641b()['omit'](_0x2b0b66['query'],_0x30cd8d(0x1381))),_0x2b0b66[_0x30cd8d(0xae2)]['includeAll']=!![],_0x2b0b66[_0x30cd8d(0x1e6c)]=_0x2b0b66[_0x30cd8d(0xae2)][_0x30cd8d(0x1c99)]?!![]:![];}}catch(_0x5ae5a4){console[_0x30cd8d(0x218e)](_0x5ae5a4);}else{const _0x4d165c={'$gte':_0x543b5a()()[_0x30cd8d(0x1be0)](_0x30cd8d(0x26ae))[_0x30cd8d(0x17d9)](0x0,!![])[_0x30cd8d(0x1f31)](),'$lte':_0x543b5a()()[_0x30cd8d(0x1b4)](_0x30cd8d(0x26ae))[_0x30cd8d(0x17d9)](0x0,!![])[_0x30cd8d(0x1f31)]()},_0x1ae82e={'OpenchannelAccountId':_0x39641b()[_0x30cd8d(0x1de2)](_0x2b0b66[_0x30cd8d(0xe5c)][_0x30cd8d(0x2214)],'id'),'createdAt':_0x4d165c};_0x2b0b66[_0x30cd8d(0xae2)]=_0x39641b()[_0x30cd8d(0x9c1)](_0x2b0b66[_0x30cd8d(0xae2)],_0x1ae82e);}_0x2f88f4['on']('openchannelInteraction:save',_0x169c98),_0x2f88f4['on'](_0x30cd8d(0xaf7),_0x169c98),_0x2f88f4['on'](_0x30cd8d(0x4e4),_0x345308),_0x2f88f4['on'](_0x30cd8d(0x624),_0x53f034),_0x2f88f4['on'](_0x30cd8d(0x1d91),_0x53f034),_0x2f88f4['on'](_0x30cd8d(0x8f1),_0x4da0c8),_0x2f88f4['on'](_0x30cd8d(0x1d10),_0x2c171d),_0x342b98(_0x2b0b66[_0x30cd8d(0xae2)][_0x30cd8d(0x1c7b)]);});}function _0x5cfeed(){const _0x3bfd1d=_0x474d70;return[{'name':_0x3bfd1d(0x68d),'key':_0x3bfd1d(0x24cb),'type':_0x3bfd1d(0x18ec),'label':_0x3bfd1d(0xf5e)},{'name':_0x3bfd1d(0x223c),'key':_0x3bfd1d(0xfc1),'type':_0x3bfd1d(0x220f),'label':_0x3bfd1d(0x9e5),'customOptions':[{'value':0x0,'translate':_0x3bfd1d(0x1115)},{'value':0x1,'translate':_0x3bfd1d(0x27a4)},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':'Status','key':'closed','type':'select','label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x3bfd1d(0x1bbd)},{'value':0x1,'translate':_0x3bfd1d(0x191b)},{'value':null,'translate':_0x3bfd1d(0x2706)}]},{'name':_0x3bfd1d(0x1649),'key':_0x3bfd1d(0x1d1e),'type':_0x3bfd1d(0x1d50),'label':_0x3bfd1d(0xf86),'options':_0x2b0b66[_0x3bfd1d(0xe5c)]['rows'],'clearAll':![]},{'name':_0x3bfd1d(0x30e),'key':_0x3bfd1d(0x21ab),'type':_0x3bfd1d(0x220f),'label':_0x3bfd1d(0x7bb),'customOptions':[{'value':_0x2b0b66['user']['id'],'translate':_0x3bfd1d(0x1ea6)},{'value':_0x3bfd1d(0xd38),'translate':_0x3bfd1d(0x68f)},{'value':undefined,'translate':_0x3bfd1d(0x2706)}]},{'name':'Tag','key':_0x3bfd1d(0x22b1),'type':_0x3bfd1d(0x1d50),'label':_0x3bfd1d(0x3c3),'options':_0x2b0b66['tags'][_0x3bfd1d(0x2214)],'placeholder':_0x3bfd1d(0x62b)}];}function _0x151668(_0x5bb647){const _0x45850b=_0x474d70;_0x2b0b66[_0x45850b(0x16cb)]=![],_0x2b0b66[_0x45850b(0x1e9c)]=_0x5bb647||{'count':0x0,'rows':[]};for(let _0x1a4894=0x0;_0x1a4894<_0x2b0b66[_0x45850b(0x1e9c)][_0x45850b(0x2214)][_0x45850b(0xfd0)];_0x1a4894+=0x1){_0x27297e(_0x2b0b66['openchannelInteractions'][_0x45850b(0x2214)][_0x1a4894]);}}function _0x342b98(_0xbf932){const _0x724e9=_0x474d70;_0x2b0b66[_0x724e9(0x16cb)]=!![];!_0xbf932&&(_0x2b0b66[_0x724e9(0xae2)][_0x724e9(0x1c7b)]=0x1);_0x2b0b66[_0x724e9(0xae2)]['offset']=(_0x2b0b66['query'][_0x724e9(0x1c7b)]-0x1)*_0x2b0b66['query']['limit'];let _0x32cf5e=_0x5608f7[_0x724e9(0x1b83)]['getItem'](_0x724e9(0x1443)+_0x2b0b66[_0x724e9(0xebe)]['id']);_0x32cf5e=_0x32cf5e?JSON[_0x724e9(0xefe)](_0x32cf5e):{},_0x32cf5e[_0x724e9(0xae2)]=_0x2b0b66[_0x724e9(0xae2)],_0x5608f7['localStorage'][_0x724e9(0x13a8)]('motion2.home.openchannel:'+_0x2b0b66[_0x724e9(0xebe)]['id'],JSON[_0x724e9(0x2701)](_0x32cf5e)),_0x2b0b66[_0x724e9(0x2061)]=_0x163c95['openchannelInteraction'][_0x724e9(0xbf7)](_0x2b0b66[_0x724e9(0xae2)],_0x151668)[_0x724e9(0x1d77)];}function _0x2268b7(_0x353729,_0x2a7a21){const _0x46a02c=_0x474d70;_0x27d430[_0x46a02c(0x17bc)]['vm'][_0x46a02c(0x11d9)](_0x46a02c(0x15e0),_0x2a7a21);}function _0x2870d5(_0x53e74d,_0x2d87d1,_0x3a98cf){const _0x51fd04=_0x474d70;_0x163c95[_0x51fd04(0x1f5b)][_0x51fd04(0x26ec)]({'id':_0x2d87d1['id'],'attachments':_0x3a98cf})[_0x51fd04(0x1d77)][_0x51fd04(0x1cb0)](function(_0x59956a){const _0x2deb0c=_0x51fd04,_0x349184=[_0x59956a[_0x2deb0c(0xef0)]],_0x36d6c6='openchannel-interaction'+_0x2d87d1['id']+_0x2deb0c(0x1b16),_0xe0b857=new Blob(_0x349184,{'type':_0x59956a['type']}),_0x3f83e6=window[_0x2deb0c(0x1db8)][_0x2deb0c(0x8c6)]('a');_0x3f83e6[_0x2deb0c(0x23b9)](_0x2deb0c(0x105b),URL[_0x2deb0c(0x2247)](_0xe0b857)),_0x3f83e6['setAttribute']('download',_0x36d6c6),document['body'][_0x2deb0c(0x23de)](_0x3f83e6),_0x3f83e6[_0x2deb0c(0x20b8)]();})[_0x51fd04(0x1c4)](function(_0x52247a){const _0x175021=_0x51fd04;if(_0x52247a[_0x175021(0x25c)]&&_0x52247a[_0x175021(0x25c)][_0x175021(0x1a7c)]&&_0x52247a[_0x175021(0x25c)][_0x175021(0x1a7c)][_0x175021(0xfd0)])for(let _0x1bd6db=0x0;_0x1bd6db<_0x52247a[_0x175021(0x25c)][_0x175021(0x1a7c)][_0x175021(0xfd0)];_0x1bd6db+=0x1){_0x1beb0a[_0x175021(0x218e)]({'title':_0x52247a['data'][_0x175021(0x1a7c)][_0x1bd6db]['type'],'msg':_0x52247a[_0x175021(0x25c)][_0x175021(0x1a7c)][_0x1bd6db]['message']});}else _0x1beb0a['error']({'title':_0x52247a[_0x175021(0x291)]?_0x175021(0xeb9)+_0x52247a[_0x175021(0x291)]+'\x20-\x20'+_0x52247a[_0x175021(0xc22)]:_0x175021(0x679),'msg':_0x52247a['data']?JSON[_0x175021(0x2701)](_0x52247a['data'][_0x175021(0x155e)]):_0x52247a[_0x175021(0x147f)]()});});}function _0x20383b(_0x1dc0f2,_0xfccdd7){const _0x2f18be=_0x474d70,_0x4a4425=_0x2b0b66[_0x2f18be(0xebe)][_0x2f18be(0x2478)]||_0x2b0b66[_0x2f18be(0xebe)][_0x2f18be(0xf0c)]||_0x2b0b66[_0x2f18be(0xebe)][_0x2f18be(0x2035)]||_0x2b0b66['user']['openchannelPause']||_0x2b0b66[_0x2f18be(0xebe)]['faxPause'],_0x49d170=!_0xfccdd7['Account'][_0x2f18be(0x1935)];_0x1e0428[_0x2f18be(0xe27)]({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x3769c1,'parent':angular[_0x2f18be(0x1853)](_0x330e19[_0x2f18be(0x1ed9)]),'clickOutsideToClose':_0x49d170,'escapeToClose':_0x49d170,'onRemoving':function(){const _0xb4d66f=_0x2f18be;_0x2b0b66['user']&&_0xfccdd7[_0xb4d66f(0x1649)][_0xb4d66f(0x1935)]&&!_0x4a4425&&_0x163c95['user'][_0xb4d66f(0xf5d)]({'id':_0x2b0b66[_0xb4d66f(0xebe)]['id']})['$promise'][_0xb4d66f(0x1c4)](function(_0x29eedd){const _0x94189b=_0xb4d66f;console[_0x94189b(0x218e)](_0x29eedd);});},'locals':{'user':_0x2b0b66[_0x2f18be(0xebe)],'channel':'openchannel','interaction':_0xfccdd7}});}function _0x27297e(_0x84ae7e){const _0x5027ed=_0x474d70;_0x84ae7e['contactName']===_0x5027ed(0x2087)&&(_0x84ae7e[_0x5027ed(0x1325)]=_0x2849cf[_0x5027ed(0x25cc)](_0x5027ed(0x2b9)));}function _0x32973d(_0x55c943){const _0x5f43b9=_0x474d70;if(_0x55c943['UserId'])return _0x55c943[_0x5f43b9(0x21ab)]===_0x2b0b66['user']['id']?_0x2849cf['instant']('DASHBOARDS.ME'):_0x55c943[_0x5f43b9(0x135d)]['fullname']+'\x20<'+_0x55c943[_0x5f43b9(0x135d)][_0x5f43b9(0xdbd)]+'>';return _0x2849cf[_0x5f43b9(0x25cc)](_0x5f43b9(0x68f));}function _0x5450b8(_0x4501cb){const _0x3da163=_0x474d70;if(_0x4501cb[_0x3da163(0x1649)])return _0x4501cb[_0x3da163(0x1649)][_0x3da163(0xee8)];return _0x2849cf[_0x3da163(0x25cc)](_0x3da163(0x2b9));}function _0x4cba34(_0x30a769,_0x3eaef6){const _0x3c5e92=_0x474d70;_0x1e0428['show']({'controller':'ComposeOpenchannelInteractionDialogController','controllerAs':'vm','templateUrl':_0x199694,'parent':angular[_0x3c5e92(0x1853)](_0x330e19['body']),'clickOutsideToClose':![],'locals':{'account':_0x3eaef6,'message':{},'type':_0x3c5e92(0x1295),'interaction':{}},'fullscreen':!![]})[_0x3c5e92(0x1cb0)](function(_0x1aeb60){const _0x1df786=_0x3c5e92;if(_0x1aeb60){if(_0x1aeb60[_0x1df786(0x155e)]&&_0x1aeb60[_0x1df786(0x155e)][_0x1df786(0x275)]){const _0x3463a1={'channel':_0x1df786(0x15e0),'account':_0x3eaef6,'message':_0x1aeb60[_0x1df786(0x155e)],'contact':_0x1aeb60[_0x1df786(0x8b1)]};_0x10a08a[_0x1df786(0x17a1)](_0x3463a1);}else{const _0x5943df=_0x1aeb60;return _0x163c95[_0x1df786(0x80e)][_0x1df786(0x199f)]({'id':_0x3eaef6['id']},_0x5943df)[_0x1df786(0x1d77)][_0x1df786(0x1cb0)](function(_0x9d0a4d){const _0x728d4=_0x1df786;_0x1beb0a['success']({'title':_0x728d4(0x113d),'msg':_0x728d4(0x71e)}),_0x27d430[_0x728d4(0x17bc)]['vm'][_0x728d4(0x11d9)]('openchannel',_0x9d0a4d);})[_0x1df786(0x1c4)](function(_0x38c72b){const _0x33c582=_0x1df786;if(_0x38c72b[_0x33c582(0x25c)]&&_0x38c72b[_0x33c582(0x25c)][_0x33c582(0x1a7c)]&&_0x38c72b[_0x33c582(0x25c)][_0x33c582(0x1a7c)][_0x33c582(0xfd0)])for(let _0x2c808e=0x0;_0x2c808e<_0x38c72b[_0x33c582(0x25c)]['errors'][_0x33c582(0xfd0)];_0x2c808e++){_0x1beb0a[_0x33c582(0x218e)]({'title':_0x38c72b[_0x33c582(0x25c)][_0x33c582(0x1a7c)][_0x2c808e]['type'],'msg':_0x38c72b[_0x33c582(0x25c)][_0x33c582(0x1a7c)][_0x2c808e]['message']});}else _0x1beb0a[_0x33c582(0x218e)]({'title':_0x38c72b['status']?_0x33c582(0xeb9)+_0x38c72b[_0x33c582(0x291)]+_0x33c582(0x1657)+_0x38c72b[_0x33c582(0xc22)]:_0x33c582(0x20f6),'msg':_0x38c72b['data']?JSON['stringify'](_0x38c72b[_0x33c582(0x25c)]['message']):_0x38c72b[_0x33c582(0x155e)]||_0x38c72b['toString']()});});}}});}function _0x4da0c8(_0x3be01f){const _0x538fe8=_0x474d70;let _0x1f8d61;const _0x1d45a6=_0x39641b()['find'](_0x2b0b66[_0x538fe8(0x1e9c)]['rows'],{'id':_0x3be01f[_0x538fe8(0xbac)]});_0x1d45a6&&_0x1d45a6[_0x538fe8(0x2653)]&&(_0x1f8d61=_0x39641b()['find'](_0x1d45a6['Users'],{'id':_0x3be01f['UserId']}),!_0x1f8d61&&_0x1d45a6['Users'][_0x538fe8(0x2785)]({'id':_0x3be01f[_0x538fe8(0x21ab)]}));}function _0x2c171d(_0x3ff45e){const _0x5a8f85=_0x474d70,_0x5d9803=_0x39641b()[_0x5a8f85(0x13b4)](_0x2b0b66[_0x5a8f85(0x1e9c)][_0x5a8f85(0x2214)],{'id':_0x3ff45e[_0x5a8f85(0xbac)]});_0x5d9803&&_0x5d9803['Users']&&_0x39641b()['remove'](_0x5d9803[_0x5a8f85(0x2653)],{'id':_0x3ff45e[_0x5a8f85(0x21ab)]});}function _0x169c98(_0x1c6f98){const _0x4496fe=_0x474d70;if(_0x1c6f98){const _0x4505b2=_0x39641b()[_0x4496fe(0x13b4)](_0x2b0b66['openchannelInteractions']['rows'],{'id':_0x1c6f98['id']});if(_0x4505b2){_0x4505b2['Users']=[];_0x1c6f98['closed']&&(_0x4505b2[_0x4496fe(0x1554)]=0x0);if(_0x2b0b66['query']['sort']){const _0x59cdba=_0x39641b()[_0x4496fe(0x1f2c)](_0x2b0b66['query'][_0x4496fe(0x1381)],'-')?_0x4496fe(0x20a5):_0x4496fe(0x24cc);_0x2b0b66[_0x4496fe(0x1e9c)][_0x4496fe(0x2214)]=_0x39641b()[_0x4496fe(0x17ca)](_0x2b0b66[_0x4496fe(0x1e9c)]['rows'],_0x39641b()['trimStart'](_0x2b0b66['query'][_0x4496fe(0x1381)],'-'),_0x59cdba);}_0x39641b()[_0x4496fe(0x9c1)](_0x4505b2,_0x39641b()[_0x4496fe(0x169b)](_0x1c6f98,_0x39641b()[_0x4496fe(0x1be5)](_0x4505b2)));}else _0x342b98(_0x2b0b66['query'][_0x4496fe(0x1c7b)]);}}function _0x345308(_0x6fb35){const _0x10d795=_0x474d70;if(_0x6fb35){const _0x3be74=_0x39641b()[_0x10d795(0x13b4)](_0x2b0b66[_0x10d795(0x1e9c)]['rows'],{'id':_0x6fb35['id']});_0x3be74&&(_0x3be74[_0x10d795(0x190)]=_0x6fb35[_0x10d795(0xfbf)]||[],_0x39641b()['merge'](_0x3be74,_0x39641b()[_0x10d795(0x169b)](_0x6fb35,_0x39641b()['keys'](_0x3be74))));}}function _0x53f034(_0x401e54){const _0x253fb7=_0x474d70;if(_0x401e54&&!_0x401e54[_0x253fb7(0x1105)]){const _0x4cf16a=_0x39641b()[_0x253fb7(0x13b4)](_0x2b0b66[_0x253fb7(0x1e9c)]['rows'],{'id':_0x401e54['OpenchannelInteractionId']});if(_0x4cf16a){const _0x14cc4f=_0x39641b()['find'](_0x4cf16a[_0x253fb7(0x223c)],{'id':_0x401e54['id']});_0x14cc4f?_0x39641b()[_0x253fb7(0x9c1)](_0x14cc4f,_0x39641b()[_0x253fb7(0x169b)](_0x401e54,_0x39641b()[_0x253fb7(0x1be5)](_0x14cc4f))):(_0x39641b()['isNil'](_0x4cf16a[_0x253fb7(0x223c)])&&(_0x4cf16a[_0x253fb7(0x223c)]={'count':0x0}),!_0x401e54['read']&&(_0x4cf16a[_0x253fb7(0x223c)][_0x253fb7(0x184d)]+=0x1));}}}function _0x46fbb6(){const _0x5acd72=_0x474d70;_0x2b0b66[_0x5acd72(0x1e6c)]=![];}function _0x3c7bc6(){_0x2b0b66['isSearchBarVisible']=!![];}function _0x44b81c(){const _0x341c24=_0x474d70;_0x2b0b66[_0x341c24(0x1e6c)]=![],_0x1e0428['show']({'controller':_0x341c24(0x15f7),'controllerAs':'vm','templateUrl':_0x3530d6,'parent':angular['element'](_0x330e19[_0x341c24(0x1ed9)]),'clickOutsideToClose':![],'locals':{'color':_0x2b0b66['sectionColor'],'fields':_0x2b0b66[_0x341c24(0x16ad)][_0x341c24(0x355)],'storagePath':_0x341c24(0x30b)},'fullscreen':!![]})[_0x341c24(0x1cb0)](function(_0xf28d73){const _0x5ca762=_0x341c24;_0x2b0b66[_0x5ca762(0xae2)][_0x5ca762(0x24be)]=_0xf28d73===![]?undefined:_0xf28d73;if(_0x2b0b66[_0x5ca762(0xae2)][_0x5ca762(0x24be)]||_0xf28d73===![])_0x342b98();})[_0x341c24(0x1c4)](function(_0x3d7a93){const _0x320468=_0x341c24;_0x1beb0a[_0x320468(0x218e)]({'title':_0x320468(0x2260),'msg':_0x3d7a93['data']?JSON[_0x320468(0x2701)](_0x3d7a93[_0x320468(0x25c)]['message']):_0x3d7a93[_0x320468(0x147f)]()});});}let _0x37cb8d=!![],_0xec4a27=0x1;_0x27d430[_0x474d70(0x614)](_0x474d70(0x957),function(_0x4b29cd,_0x2f02a5){const _0x29a0fe=_0x474d70;_0x37cb8d?_0x2aa1b9(function(){_0x37cb8d=![];}):(!_0x2f02a5&&(_0xec4a27=_0x2b0b66[_0x29a0fe(0xae2)]['page']),_0x4b29cd!==_0x2f02a5&&(_0x2b0b66[_0x29a0fe(0xae2)][_0x29a0fe(0x1c7b)]=0x1),!_0x4b29cd&&(_0x2b0b66['query'][_0x29a0fe(0x1c7b)]=_0xec4a27),_0x342b98(_0x2b0b66[_0x29a0fe(0xae2)][_0x29a0fe(0x1c7b)]));}),_0x27d430[_0x474d70(0x1d6)](_0x474d70(0x291c),function(){const _0xe02555=_0x474d70;_0x2f88f4[_0xe02555(0xfb8)](_0xe02555(0x624)),_0x2f88f4[_0xe02555(0xfb8)]('openchannelMessage:update'),_0x2f88f4[_0xe02555(0xfb8)](_0xe02555(0x673)),_0x2f88f4[_0xe02555(0xfb8)]('openchannelInteractionTags:save'),_0x2f88f4[_0xe02555(0xfb8)](_0xe02555(0xaf7)),_0x2f88f4[_0xe02555(0xfb8)](_0xe02555(0x8f1)),_0x2f88f4[_0xe02555(0xfb8)](_0xe02555(0x1d10));});}const _0x264dcc=_0x4c33f8;;_0x19bf7[_0x5537c6(0x15b6)]=['$document',_0x5537c6(0x1463),'$timeout',_0x5537c6(0xcb9),_0x5537c6(0x225c),_0x5537c6(0x254f),_0x5537c6(0x1774)];function _0x19bf7(_0x1c9913,_0x5a514b,_0x610c8,_0x2dd50a,_0x1a2e96,_0x318302,_0x1aa0cf){const _0x38550a=_0x5537c6,_0x32e941=this;_0x32e941[_0x38550a(0xe76)]=_0x1aa0cf[_0x38550a(0x21e8)](),_0x32e941[_0x38550a(0xfd2)]={};function _0x176ff2(_0x5a9f80,_0x5a7d72,_0x24a457){const _0x1d91e9=_0x38550a;_0x32e941[_0x1d91e9(0x8a5)]=_0x5a9f80,_0x32e941['setting']=_0x5a7d72,_0x32e941[_0x1d91e9(0xfd2)]=_0x24a457;}function _0x450638(){const _0xf65740=_0x38550a;return _0x318302['trustAsResourceUrl'](_0x32e941[_0xf65740(0xfd2)]['agentUrl']);}_0x5a514b[_0x38550a(0x1d6)](_0x38550a(0xcaa),function(_0x3aee2e,_0x56eec0){const _0x26bcef=_0x38550a;_0x32e941[_0x26bcef(0xfd2)]=_0x56eec0[_0x26bcef(0xfd2)];}),_0x32e941[_0x38550a(0x1a34)]=_0x176ff2,_0x32e941[_0x38550a(0xee2)]=_0x450638,_0x176ff2();}const _0x301d1e=_0x19bf7;;_0x5d7f8d['$inject']=['$scope','$window','$timeout','api','toasty','Auth'];function _0x5d7f8d(_0x43c905,_0x3954be,_0x156c7f,_0x2c9837,_0x3ccf2f,_0x48827b){const _0x10ebf8=_0x5537c6,_0x5378f3=this;_0x5378f3[_0x10ebf8(0xe76)]=_0x48827b[_0x10ebf8(0x21e8)](),_0x5378f3[_0x10ebf8(0x44e)]={},_0x5378f3[_0x10ebf8(0xc83)]=_0x10ebf8(0x44e),_0x5378f3[_0x10ebf8(0xae2)]={'UserId':_0x5378f3['currentUser']['id'],'fields':_0x10ebf8(0x5a2),'sort':_0x10ebf8(0x282),'limit':0xa,'page':0x1,'type':null},_0x5378f3['downloadfile']=_0x38d8d1,_0x5378f3['downloadtranscribe']=_0x43e02e,_0x5378f3[_0x10ebf8(0x829)]=_0x51de37,_0x5378f3[_0x10ebf8(0x82d)]=_0x6c3890,_0x5378f3[_0x10ebf8(0x1a34)]=_0x276bd1,_0x5378f3[_0x10ebf8(0x17c3)]=_0x87e70b,_0x5378f3[_0x10ebf8(0x28a8)]=_0x12345a;function _0x276bd1(){const _0x2e8465=_0x10ebf8;_0x5378f3[_0x2e8465(0x789)]=_0x2719e3();let _0x5da41f=_0x3954be['localStorage']['getItem'](_0x2e8465(0xdcb)+_0x5378f3[_0x2e8465(0xe76)]['id']);if(_0x5da41f)try{_0x5da41f=JSON[_0x2e8465(0xefe)](_0x5da41f),_0x5da41f['query']&&(_0x5378f3[_0x2e8465(0xae2)]=_0x39641b()[_0x2e8465(0x1bd8)](_0x5da41f['query'],[_0x2e8465(0x1c99),'id']),_0x5378f3[_0x2e8465(0xae2)][_0x2e8465(0x355)]=_0x2e8465(0xb85),_0x5378f3[_0x2e8465(0xae2)][_0x2e8465(0x21ab)]=_0x5378f3[_0x2e8465(0xe76)]['id']);}catch(_0x5354cd){console[_0x2e8465(0x218e)](_0x5354cd);}else{const _0x4c6ff9={'$gte':_0x543b5a()()[_0x2e8465(0x1be0)]('month')[_0x2e8465(0x17d9)](0x0,!![])[_0x2e8465(0x1f31)](),'$lte':_0x543b5a()()[_0x2e8465(0x1b4)](_0x2e8465(0x26ae))[_0x2e8465(0x17d9)](0x0,!![])[_0x2e8465(0x1f31)]()};_0x5378f3['query'][_0x2e8465(0x24cb)]=_0x4c6ff9;}_0x5378f3[_0x2e8465(0x1e6c)]=_0x5378f3[_0x2e8465(0xae2)][_0x2e8465(0x1c99)]?!![]:![],_0x5378f3[_0x2e8465(0x82d)]();}function _0x38d8d1(_0x2353f4){const _0x21eaa3=_0x10ebf8;return _0x2c9837[_0x21eaa3(0x23d1)][_0x21eaa3(0x26ec)]({'id':_0x2353f4['id'],'exists':!![]})[_0x21eaa3(0x1d77)][_0x21eaa3(0x1cb0)](function(_0x36e43e){const _0x4a2bb4=_0x21eaa3,_0x186bfb=[_0x36e43e[_0x4a2bb4(0xef0)]],_0x96163a=new Blob(_0x186bfb,{'type':_0x36e43e[_0x4a2bb4(0x66a)]}),_0x55fc35=window['document'][_0x4a2bb4(0x8c6)]('a');_0x55fc35[_0x4a2bb4(0x23b9)](_0x4a2bb4(0x105b),URL[_0x4a2bb4(0x2247)](_0x96163a)),_0x55fc35[_0x4a2bb4(0x23b9)](_0x4a2bb4(0x26ec),_0x2353f4[_0x4a2bb4(0x1425)]+_0x2353f4['format']),_0x55fc35[_0x4a2bb4(0x20b8)]();})[_0x21eaa3(0x1c4)](function(_0x5e3eee){const _0x95beda=_0x21eaa3;_0x3ccf2f[_0x95beda(0x218e)]({'title':_0x5e3eee[_0x95beda(0x291)]?_0x95beda(0xeb9)+_0x5e3eee[_0x95beda(0x291)]+_0x95beda(0x1657)+_0x5e3eee[_0x95beda(0xc22)]:_0x95beda(0x592),'msg':_0x5e3eee[_0x95beda(0x25c)]?JSON[_0x95beda(0x2701)](_0x5e3eee[_0x95beda(0x25c)]):_0x5e3eee[_0x95beda(0x147f)]()});});}function _0x43e02e(_0xbabf13){const _0x3d6668=_0x10ebf8;return _0x2c9837[_0x3d6668(0x23d1)][_0x3d6668(0x194e)]({'id':_0xbabf13['id']})[_0x3d6668(0x1d77)][_0x3d6668(0x1cb0)](function(_0x2a9ce9){const _0x2137ec=_0x3d6668,_0x3bad58=[_0x2a9ce9[_0x2137ec(0xef0)]];let _0x10d1a5='download';const _0x11b02d=new Blob(_0x3bad58,{'type':_0x2a9ce9[_0x2137ec(0x66a)]});_0x10d1a5=_0xbabf13[_0x2137ec(0x1425)];const _0x22e5f9=window[_0x2137ec(0x1db8)][_0x2137ec(0x8c6)]('a');_0x22e5f9[_0x2137ec(0x23b9)](_0x2137ec(0x105b),URL[_0x2137ec(0x2247)](_0x11b02d)),_0x22e5f9[_0x2137ec(0x23b9)]('download',_0x10d1a5),document[_0x2137ec(0x1ed9)][_0x2137ec(0x23de)](_0x22e5f9),_0x22e5f9[_0x2137ec(0x20b8)]();})[_0x3d6668(0x1c4)](function(_0x1ce3c6){const _0x473b55=_0x3d6668;_0x3ccf2f[_0x473b55(0x218e)]({'title':_0x1ce3c6[_0x473b55(0x291)]?_0x473b55(0xeb9)+_0x1ce3c6[_0x473b55(0x291)]+_0x473b55(0x1657)+_0x1ce3c6[_0x473b55(0xc22)]:'SYSTEM:GETvoiceRecording','msg':_0x1ce3c6[_0x473b55(0x25c)]?JSON['stringify'](_0x1ce3c6['data']):_0x1ce3c6[_0x473b55(0x147f)]()});});}function _0x2719e3(){const _0x5e5485=_0x10ebf8;return[{'name':_0x5e5485(0x68d),'key':_0x5e5485(0x24cb),'type':_0x5e5485(0x18ec),'label':_0x5e5485(0xf5e)},{'name':_0x5e5485(0x6fb),'key':_0x5e5485(0x66a),'type':_0x5e5485(0x220f),'label':_0x5e5485(0xc18),'customOptions':[{'value':_0x5e5485(0xdbd),'translate':'VOICE.INTERNAL'},{'value':_0x5e5485(0x26c0),'translate':_0x5e5485(0x32e)},{'value':_0x5e5485(0x895),'translate':_0x5e5485(0x1a0b)},{'value':_0x5e5485(0x14f7),'translate':'VOICE.DIALER'},{'value':null,'translate':_0x5e5485(0x1743)}]}];}function _0x51de37(_0x2f9ff4){const _0x121de6=_0x10ebf8;_0x5378f3[_0x121de6(0x16cb)]=![],_0x5378f3[_0x121de6(0x44e)]=_0x2f9ff4||{'count':0x0,'rows':[]};}function _0x6c3890(){const _0x3bbde7=_0x10ebf8;_0x5378f3[_0x3bbde7(0x16cb)]=!![],_0x5378f3[_0x3bbde7(0xae2)][_0x3bbde7(0x184b)]=(_0x5378f3[_0x3bbde7(0xae2)][_0x3bbde7(0x1c7b)]-0x1)*_0x5378f3['query']['limit'];const _0x54e3eb={'query':_0x5378f3['query']};_0x3954be[_0x3bbde7(0x1b83)][_0x3bbde7(0x13a8)](_0x3bbde7(0xdcb)+_0x5378f3[_0x3bbde7(0xe76)]['id'],JSON[_0x3bbde7(0x2701)](_0x54e3eb)),_0x5378f3[_0x3bbde7(0x2061)]=_0x2c9837['voiceRecording'][_0x3bbde7(0xbf7)](_0x5378f3[_0x3bbde7(0xae2)],_0x51de37)[_0x3bbde7(0x1d77)];}function _0x87e70b(){const _0x5dc1c2=_0x10ebf8;_0x5378f3[_0x5dc1c2(0xae2)][_0x5dc1c2(0x1c99)]=undefined,_0x5378f3['isSearchBarVisible']=![];}function _0x12345a(){const _0x45bb39=_0x10ebf8;_0x5378f3[_0x45bb39(0x1e6c)]=!![];}let _0x396cd8=!![],_0x12dd86=0x1;_0x43c905[_0x10ebf8(0x614)]('vm.query.filter',function(_0x1b4754,_0x5b5f3f){const _0x59c38d=_0x10ebf8;_0x396cd8?_0x156c7f(function(){_0x396cd8=![];}):(!_0x5b5f3f&&(_0x12dd86=_0x5378f3[_0x59c38d(0xae2)][_0x59c38d(0x1c7b)]),_0x1b4754!==_0x5b5f3f&&(_0x5378f3[_0x59c38d(0xae2)][_0x59c38d(0x1c7b)]=0x1),!_0x1b4754&&(_0x5378f3[_0x59c38d(0xae2)][_0x59c38d(0x1c7b)]=_0x12dd86),_0x5378f3['getVoiceRecordings']());});}const _0x2d5d32=_0x5d7f8d;;const _0x30626d=_0x5074a3['p']+_0x5537c6(0xa46);;_0x1e266b[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x1f10),'$timeout',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1774)];function _0x1e266b(_0x5842ca,_0x386ea8,_0x47bcb8,_0x2a170f,_0x1a1533,_0x52a635,_0x126b94,_0x575ed5){const _0x2d4a9e=_0x5537c6,_0x517241=this;_0x517241[_0x2d4a9e(0xe76)]=_0x575ed5[_0x2d4a9e(0x21e8)](),_0x517241[_0x2d4a9e(0x2815)]=[_0x2d4a9e(0x1d1c),_0x2d4a9e(0x1ec),_0x2d4a9e(0x274b),_0x2d4a9e(0x1173),_0x2d4a9e(0xc6c)],_0x517241[_0x2d4a9e(0x1b1a)]={'readOnly':![],'canEdit':!![],'canDelete':!![]},_0x517241[_0x2d4a9e(0x2894)]={},_0x517241['query']={'id':_0x517241['currentUser']['id'],'fields':_0x2d4a9e(0x120b),'sort':_0x2d4a9e(0x2251),'limit':0xa,'page':0x1},_0x517241[_0x2d4a9e(0x1f65)]={'rows':[],'count':0x0},_0x517241[_0x2d4a9e(0x829)]=_0x29a088,_0x517241['getScheduledCalls']=_0x4ec167,_0x517241[_0x2d4a9e(0x1a34)]=_0x3c9a67,_0x517241[_0x2d4a9e(0x2389)]=_0x393a75,_0x517241[_0x2d4a9e(0x26fa)]=_0x4c5555,_0x517241[_0x2d4a9e(0xb25)]=_0x4ef9c5;function _0x3c9a67(){const _0x28c1e8=_0x2d4a9e;_0x126b94[_0x28c1e8(0xebe)][_0x28c1e8(0x13e9)]({'id':_0x575ed5['getCurrentUser']()['id'],'fields':'id,name','channel':_0x28c1e8(0x1fd4),'type':_0x28c1e8(0x895),'nolimit':!![]})[_0x28c1e8(0x1d77)][_0x28c1e8(0x1cb0)](function(_0x506456){const _0x2605b1=_0x28c1e8;_0x517241[_0x2605b1(0x1f65)]=_0x506456||{'count':0x0,'rows':[]};})[_0x28c1e8(0x1cb0)](function(){_0x517241['quickFilters']=_0x44219e();})[_0x28c1e8(0x1c4)](function(_0x5a3339){const _0x2fe9ee=_0x28c1e8;console[_0x2fe9ee(0x218e)](_0x5a3339);})[_0x28c1e8(0x2e0)](function(){const _0x48c0a7=_0x28c1e8;let _0x479b60=_0x386ea8['localStorage'][_0x48c0a7(0x2091)]('motion2.home.scheduled:'+_0x517241[_0x48c0a7(0xe76)]['id']);if(_0x479b60)try{_0x479b60=JSON['parse'](_0x479b60),_0x479b60[_0x48c0a7(0xae2)]&&(_0x517241[_0x48c0a7(0xae2)]=_0x39641b()[_0x48c0a7(0x1bd8)](_0x479b60['query'],[_0x48c0a7(0x1c99)]));}catch(_0x3f3ec6){console[_0x48c0a7(0x218e)](_0x3f3ec6);}else{const _0x52f8bc={'$gte':_0x543b5a()()[_0x48c0a7(0x1be0)](_0x48c0a7(0x26ae))[_0x48c0a7(0x17d9)](0x0,!![])[_0x48c0a7(0x1f31)](),'$lte':_0x543b5a()()[_0x48c0a7(0x1b4)](_0x48c0a7(0x26ae))[_0x48c0a7(0x17d9)](0x0,!![])[_0x48c0a7(0x1f31)]()};_0x517241['query'][_0x48c0a7(0x24cb)]=_0x52f8bc;}_0x517241[_0x48c0a7(0x9ff)]();});}function _0x29a088(_0x31b11b){const _0x13232c=_0x2d4a9e;_0x517241[_0x13232c(0x16cb)]=![],_0x517241[_0x13232c(0x2894)]=_0x31b11b||{'count':0x0,'rows':[]};}function _0x44219e(){const _0x6d74ad=_0x2d4a9e;return[{'name':_0x6d74ad(0x68d),'key':_0x6d74ad(0x24cb),'type':'date','label':_0x6d74ad(0xf5e)},{'name':_0x6d74ad(0x1eb8),'key':_0x6d74ad(0x1116),'type':'multiselect','label':_0x6d74ad(0x1786),'options':_0x517241[_0x6d74ad(0x1f65)]['rows']}];}function _0x4ec167(){const _0x16b367=_0x2d4a9e;_0x517241['searchInProgress']=!![],_0x517241[_0x16b367(0xae2)]['id']=_0x517241[_0x16b367(0xe76)]['id'],_0x517241[_0x16b367(0xae2)][_0x16b367(0x11f0)]=!![],_0x517241[_0x16b367(0xae2)][_0x16b367(0x184b)]=(_0x517241[_0x16b367(0xae2)][_0x16b367(0x1c7b)]-0x1)*_0x517241['query']['limit'];const _0x51538c={'query':_0x517241[_0x16b367(0xae2)]};_0x386ea8[_0x16b367(0x1b83)]['setItem'](_0x16b367(0x9cc)+_0x517241['currentUser']['id'],JSON['stringify'](_0x51538c)),_0x517241[_0x16b367(0x2061)]=_0x126b94[_0x16b367(0xebe)][_0x16b367(0x9ff)](_0x517241['query'],_0x29a088)[_0x16b367(0x1d77)];}function _0x4c5555(_0x2c8ace,_0x49fe7c){const _0x3cd4de=_0x2d4a9e;_0x2a170f[_0x3cd4de(0xe27)]({'controller':_0x3cd4de(0x1acc),'controllerAs':'vm','templateUrl':_0x30626d,'parent':angular['element'](_0x1a1533['body']),'targetEvent':_0x2c8ace,'clickOutsideToClose':!![],'locals':{'queueCampaign':null,'hopper':_0x49fe7c,'hoppers':_0x517241[_0x3cd4de(0x2894)][_0x3cd4de(0x2214)],'license':null,'setting':null,'crudPermissions':_0x517241[_0x3cd4de(0x1b1a)]}});}function _0x5e4d02(_0x32614c){const _0x3af42b=_0x2d4a9e;_0x126b94[_0x3af42b(0x26bc)][_0x3af42b(0x111d)]({'id':_0x32614c['id']})[_0x3af42b(0x1d77)]['then'](function(){const _0x5271b0=_0x3af42b;_0x39641b()['remove'](_0x517241[_0x5271b0(0x2894)][_0x5271b0(0x2214)],{'id':_0x32614c['id']}),_0x517241[_0x5271b0(0x2894)][_0x5271b0(0x184d)]-=0x1,!_0x517241[_0x5271b0(0x2894)]['rows'][_0x5271b0(0xfd0)]&&_0x517241['getScheduledCalls'](),_0x52a635[_0x5271b0(0x829)]({'title':'Scheduled\x20call\x20deleted!','msg':_0x32614c['name']?_0x5271b0(0x2363):''});})['catch'](function(_0x1fa493){const _0x5c4298=_0x3af42b;if(_0x1fa493[_0x5c4298(0x25c)]&&_0x1fa493[_0x5c4298(0x25c)][_0x5c4298(0x1a7c)]&&_0x1fa493[_0x5c4298(0x25c)]['errors']['length']){_0x517241['errors']=_0x1fa493['data']['errors']||[{'message':_0x1fa493[_0x5c4298(0x147f)](),'type':_0x5c4298(0xe6a)}];for(let _0x257155=0x0;_0x257155<_0x1fa493[_0x5c4298(0x25c)][_0x5c4298(0x1a7c)][_0x5c4298(0xfd0)];_0x257155++){_0x52a635[_0x5c4298(0x218e)]({'title':_0x1fa493[_0x5c4298(0x25c)][_0x5c4298(0x1a7c)][_0x257155]['type'],'msg':_0x1fa493[_0x5c4298(0x25c)][_0x5c4298(0x1a7c)][_0x257155][_0x5c4298(0x155e)]});}}else _0x52a635['error']({'title':_0x1fa493[_0x5c4298(0x291)]?_0x5c4298(0xeb9)+_0x1fa493[_0x5c4298(0x291)]+_0x5c4298(0x1657)+_0x1fa493['statusText']:_0x5c4298(0xe6a),'msg':_0x1fa493[_0x5c4298(0x25c)]?JSON[_0x5c4298(0x2701)](_0x1fa493[_0x5c4298(0x25c)][_0x5c4298(0x155e)]):_0x1fa493[_0x5c4298(0x155e)]||_0x1fa493[_0x5c4298(0x147f)]()});});}function _0x4ef9c5(_0x4a317c,_0x5ae438){const _0x57da55=_0x2d4a9e,_0x338482=_0x2a170f[_0x57da55(0x1551)]()[_0x57da55(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20scheduled\x20call?')['htmlContent'](_0x57da55(0x5da)+_0x57da55(0x1b6))[_0x57da55(0x15ad)](_0x57da55(0x8fe))[_0x57da55(0x728)](_0x5ae438)['ok']('OK')['cancel'](_0x57da55(0x24ba));_0x2a170f[_0x57da55(0xe27)](_0x338482)[_0x57da55(0x1cb0)](function(){_0x5e4d02(_0x4a317c);},function(){const _0x198cae=_0x57da55;console[_0x198cae(0x1b4f)](_0x198cae(0x24ba));});}function _0x393a75(_0x1bfc84){return _0x543b5a()(_0x1bfc84)['isBefore'](_0x543b5a()());}let _0x2e3623=!![],_0x132adf=0x1;_0x5842ca[_0x2d4a9e(0x614)](_0x2d4a9e(0x957),function(_0x4c3581,_0x59e7c7){const _0x36d5b5=_0x2d4a9e;_0x2e3623?_0x47bcb8(function(){_0x2e3623=![];}):(!_0x59e7c7&&(_0x132adf=_0x517241[_0x36d5b5(0xae2)][_0x36d5b5(0x1c7b)]),_0x4c3581!==_0x59e7c7&&(_0x517241[_0x36d5b5(0xae2)][_0x36d5b5(0x1c7b)]=0x1),!_0x4c3581&&(_0x517241['query']['page']=_0x132adf),_0x517241[_0x36d5b5(0x9ff)]());});}const _0x5be5e7=_0x1e266b;;_0x341271['$inject']=['$scope','$timeout',_0x5537c6(0xcb9),'$document','$window','$translate','api',_0x5537c6(0x1774),_0x5537c6(0x1986),_0x5537c6(0x9bf),_0x5537c6(0x1b68)];function _0x341271(_0x418420,_0x3aa199,_0x5e878c,_0x2c45de,_0x27c4f0,_0x3dad64,_0x55f2a9,_0x473a75,_0x5c0c4a,_0x2420ba,_0x1b450e){const _0x599d03=_0x5537c6,_0x269cb=this;_0x269cb[_0x599d03(0xebe)]=_0x473a75[_0x599d03(0x21e8)](),_0x269cb[_0x599d03(0x8a5)]={},_0x269cb[_0x599d03(0x9ca)]={},_0x269cb[_0x599d03(0xfbf)]={'count':0x0,'rows':[]},_0x269cb[_0x599d03(0x25a5)]={'count':0x0,'rows':[]},_0x269cb[_0x599d03(0xae2)]={'includeAll':!![],'sort':_0x599d03(0x282),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x269cb[_0x599d03(0x16ad)]={'fields':[{'name':'Id','column':'id','type':_0x599d03(0x83d)},{'name':_0x599d03(0x8d3),'column':_0x599d03(0x8d3),'type':_0x599d03(0x19e0),'options':{'searchFields':[_0x599d03(0x1491),_0x599d03(0x1fbb),_0x599d03(0x1e19)],'route':{'model':'cmContact','action':_0x599d03(0xbf7),'params':{'fields':_0x599d03(0x9b0),'Contact':_0x599d03(0xed6),'nolimit':!![]}},'extraOperators':[_0x599d03(0x1fb1)],'excludedOperators':[_0x599d03(0x15ce)]}},{'name':_0x599d03(0x269b),'column':_0x599d03(0x1ed9),'type':_0x599d03(0x19d3),'options':{'excludedOperators':[_0x599d03(0x1c5e),_0x599d03(0x15ce)]}},{'name':_0x599d03(0x938),'column':'closed','type':_0x599d03(0x220f),'values':[{'id':0x0,'translate':_0x599d03(0x1bbd)},{'id':0x1,'translate':_0x599d03(0x191b)}],'options':{'excludedOperators':[_0x599d03(0x15ce)]}},{'name':_0x599d03(0x30e),'column':_0x599d03(0x1597),'type':_0x599d03(0x19e0),'options':{'table':'i','route':{'model':_0x599d03(0xebe),'action':_0x599d03(0xbf7),'params':{'role':_0x599d03(0x1eff),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':[_0x599d03(0x1d14),'name'],'extraOperators':[_0x599d03(0x1fb1)],'excludedOperators':[_0x599d03(0x15ce)]}},{'name':_0x599d03(0x1649),'column':_0x599d03(0x1a2),'type':_0x599d03(0x1d50),'options':{'route':{'model':'user','action':'getSmsAccounts','params':{'id':_0x269cb[_0x599d03(0xebe)]['id'],'nolimit':!![]}}}},{'name':_0x599d03(0x190),'column':'Tag','type':_0x599d03(0x1d50),'options':{'route':{'model':_0x599d03(0x22b1),'action':_0x599d03(0xbf7),'params':{'nolimit':!![]}},'excludedOperators':[_0x599d03(0x62d)]}},{'name':_0x599d03(0x68d),'column':_0x599d03(0x24cb),'type':_0x599d03(0x18ec),'options':{'excludedOperators':[_0x599d03(0x15ce)]}},{'name':_0x599d03(0x946),'column':'unreadMessages','type':_0x599d03(0x220f),'values':[{'id':0x1,'translate':_0x599d03(0x27a4)},{'id':0x0,'translate':_0x599d03(0x1115)}],'options':{'excludedOperators':[_0x599d03(0x15ce)]}}]},_0x269cb['sectionColor']='orange',_0x269cb[_0x599d03(0x1a34)]=_0x1c3bdf,_0x269cb['success']=_0x4d31ac,_0x269cb['getSmsInteractions']=_0x584461,_0x269cb[_0x599d03(0x264a)]=_0x2b8aec,_0x269cb[_0x599d03(0x10f5)]=_0x1b8680,_0x269cb[_0x599d03(0x493)]=_0xdbd260,_0x269cb[_0x599d03(0x2929)]=_0x199b8c,_0x269cb[_0x599d03(0x11e5)]=_0x3cfda3,_0x269cb[_0x599d03(0x2871)]=_0x432caf,_0x269cb[_0x599d03(0x13f2)]=_0xeee7e9,_0x269cb[_0x599d03(0x17c3)]=_0x2fd438,_0x269cb['onSearchBarExpand']=_0x267ba6,_0x269cb[_0x599d03(0x1ede)]=_0x3b9960;function _0x1c3bdf(_0x5c7ae1,_0x2fd053){const _0x29087d=_0x599d03;return _0x269cb[_0x29087d(0x8a5)]=_0x5c7ae1,_0x269cb['setting']=_0x2fd053,_0x55f2a9['user'][_0x29087d(0xbf7)+_0x39641b()[_0x29087d(0x277)]('smsAccounts')]({'id':_0x269cb[_0x29087d(0xebe)]['id'],'nolimit':!![]})[_0x29087d(0x1d77)][_0x29087d(0x1cb0)](function(_0x372f6a){const _0x2c8881=_0x29087d;return _0x269cb[_0x2c8881(0x1ac)]=_0x372f6a||{'count':0x0,'rows':[]},_0x55f2a9[_0x2c8881(0x22b1)][_0x2c8881(0xbf7)]()['$promise'];})[_0x29087d(0x1cb0)](function(_0x498f77){const _0x5c9934=_0x29087d;_0x269cb[_0x5c9934(0xfbf)]=_0x498f77||{'count':0x0,'rows':[]};})[_0x29087d(0x1cb0)](function(){const _0x37a1a1=_0x29087d;_0x269cb[_0x37a1a1(0x789)]=_0x121d0a();})[_0x29087d(0x1c4)](function(_0x41022e){const _0x529c71=_0x29087d;console[_0x529c71(0x218e)](_0x41022e);})[_0x29087d(0x2e0)](function(){const _0x5e0ebe=_0x29087d;let _0x4c66d1=_0x27c4f0[_0x5e0ebe(0x1b83)][_0x5e0ebe(0x2091)]('motion2.home.sms:'+_0x269cb[_0x5e0ebe(0xebe)]['id']);if(_0x4c66d1)try{_0x4c66d1=JSON[_0x5e0ebe(0xefe)](_0x4c66d1);if(_0x4c66d1['query']){_0x269cb[_0x5e0ebe(0xae2)]=_0x39641b()[_0x5e0ebe(0x9c1)](_0x269cb['query'],_0x4c66d1[_0x5e0ebe(0xae2)]);if(_0x39641b()[_0x5e0ebe(0xce9)](_0x269cb[_0x5e0ebe(0x1ac)]['rows']))_0x269cb['query']['SmsAccountId']=[];else _0x39641b()['isEmpty'](_0x269cb['query']['SmsAccountId'])&&(_0x269cb[_0x5e0ebe(0xae2)][_0x5e0ebe(0x1a2)]=_0x39641b()(_0x269cb[_0x5e0ebe(0x1ac)][_0x5e0ebe(0x2214)])[_0x5e0ebe(0x1de2)]('id')[_0x5e0ebe(0x54f)]()['value']());_0x269cb[_0x5e0ebe(0xae2)][_0x5e0ebe(0x1381)]&&_0x269cb['query'][_0x5e0ebe(0x1381)]['indexOf'](_0x5e0ebe(0x15d6))>=0x0&&(_0x269cb[_0x5e0ebe(0xae2)]=_0x39641b()[_0x5e0ebe(0x1bd8)](_0x269cb['query'],'sort')),_0x269cb[_0x5e0ebe(0xae2)][_0x5e0ebe(0x11f0)]=!![],_0x269cb['isSearchBarVisible']=_0x269cb[_0x5e0ebe(0xae2)][_0x5e0ebe(0x1c99)]?!![]:![];}}catch(_0x74fa99){console[_0x5e0ebe(0x218e)](_0x74fa99);}else{const _0xf4d9b0={'$gte':_0x543b5a()()[_0x5e0ebe(0x1be0)](_0x5e0ebe(0x26ae))[_0x5e0ebe(0x17d9)](0x0,!![])[_0x5e0ebe(0x1f31)](),'$lte':_0x543b5a()()['endOf'](_0x5e0ebe(0x26ae))[_0x5e0ebe(0x17d9)](0x0,!![])['format']()},_0x2d3c78={'SmsAccountId':_0x39641b()[_0x5e0ebe(0x1de2)](_0x269cb[_0x5e0ebe(0x1ac)][_0x5e0ebe(0x2214)],'id'),'createdAt':_0xf4d9b0};_0x269cb[_0x5e0ebe(0xae2)]=_0x39641b()[_0x5e0ebe(0x9c1)](_0x269cb[_0x5e0ebe(0xae2)],_0x2d3c78);}_0x5c0c4a['on']('smsInteraction:save',_0x4ee05a),_0x5c0c4a['on'](_0x5e0ebe(0x159f),_0x4ee05a),_0x5c0c4a['on'](_0x5e0ebe(0x1794),_0x241185),_0x5c0c4a['on']('smsMessage:save',_0x524228),_0x5c0c4a['on']('smsMessage:update',_0x524228),_0x5c0c4a['on'](_0x5e0ebe(0x129d),_0x23d003),_0x5c0c4a['on']('user_has_sms_interactions:remove',_0x2c5bcb),_0x584461(_0x269cb[_0x5e0ebe(0xae2)][_0x5e0ebe(0x1c7b)]);});}function _0x121d0a(){const _0x2df344=_0x599d03;return[{'name':_0x2df344(0x68d),'key':_0x2df344(0x24cb),'type':_0x2df344(0x18ec),'label':_0x2df344(0xf5e)},{'name':'Messages','key':_0x2df344(0xfc1),'type':_0x2df344(0x220f),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x2df344(0x1115)},{'value':0x1,'translate':_0x2df344(0x27a4)},{'value':null,'translate':_0x2df344(0x2706)}]},{'name':_0x2df344(0x938),'key':'closed','type':_0x2df344(0x220f),'label':_0x2df344(0x24b6),'customOptions':[{'value':0x0,'translate':_0x2df344(0x1bbd)},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0x2df344(0x2706)}]},{'name':_0x2df344(0x1649),'key':_0x2df344(0x1a2),'type':'multiselect','label':_0x2df344(0xf86),'options':_0x269cb[_0x2df344(0x1ac)][_0x2df344(0x2214)],'clearAll':![]},{'name':_0x2df344(0x30e),'key':_0x2df344(0x21ab),'type':'select','label':_0x2df344(0x7bb),'customOptions':[{'value':_0x269cb['user']['id'],'translate':_0x2df344(0x1ea6)},{'value':'null','translate':_0x2df344(0x68f)},{'value':undefined,'translate':_0x2df344(0x2706)}]},{'name':_0x2df344(0xf2d),'key':_0x2df344(0x22b1),'type':_0x2df344(0x1d50),'label':_0x2df344(0x3c3),'options':_0x269cb[_0x2df344(0xfbf)][_0x2df344(0x2214)],'placeholder':_0x2df344(0x62b)}];}function _0x4d31ac(_0x53d40d){const _0x46b346=_0x599d03;_0x269cb[_0x46b346(0x16cb)]=![],_0x269cb[_0x46b346(0x25a5)]=_0x53d40d||{'count':0x0,'rows':[]};for(let _0x2bb362=0x0;_0x2bb362<_0x269cb[_0x46b346(0x25a5)][_0x46b346(0x2214)][_0x46b346(0xfd0)];_0x2bb362+=0x1){_0x199b8c(_0x269cb[_0x46b346(0x25a5)][_0x46b346(0x2214)][_0x2bb362]);}}function _0x584461(_0x129aa2){const _0x1ef8f3=_0x599d03;_0x269cb[_0x1ef8f3(0x16cb)]=!![];!_0x129aa2&&(_0x269cb[_0x1ef8f3(0xae2)][_0x1ef8f3(0x1c7b)]=0x1);_0x269cb[_0x1ef8f3(0xae2)]['offset']=(_0x269cb[_0x1ef8f3(0xae2)][_0x1ef8f3(0x1c7b)]-0x1)*_0x269cb['query']['limit'];let _0x14329d=_0x27c4f0[_0x1ef8f3(0x1b83)][_0x1ef8f3(0x2091)]('motion2.home.sms:'+_0x269cb['user']['id']);_0x14329d=_0x14329d?JSON[_0x1ef8f3(0xefe)](_0x14329d):{},_0x14329d[_0x1ef8f3(0xae2)]=_0x269cb[_0x1ef8f3(0xae2)],_0x27c4f0[_0x1ef8f3(0x1b83)]['setItem'](_0x1ef8f3(0x95e)+_0x269cb[_0x1ef8f3(0xebe)]['id'],JSON[_0x1ef8f3(0x2701)](_0x14329d)),_0x269cb['promise']=_0x55f2a9[_0x1ef8f3(0xa71)][_0x1ef8f3(0xbf7)](_0x269cb[_0x1ef8f3(0xae2)],_0x4d31ac)[_0x1ef8f3(0x1d77)];}function _0x2b8aec(_0x272caf,_0x3b3905){const _0x38aa45=_0x599d03;_0x418420[_0x38aa45(0x17bc)]['vm'][_0x38aa45(0x11d9)](_0x38aa45(0x689),_0x3b3905);}function _0x1b8680(_0x1a04e9,_0x342cc9,_0x3d7e8b){const _0x3f8d12=_0x599d03;_0x55f2a9[_0x3f8d12(0xa71)][_0x3f8d12(0x26ec)]({'id':_0x342cc9['id'],'attachments':_0x3d7e8b})[_0x3f8d12(0x1d77)][_0x3f8d12(0x1cb0)](function(_0x375a86){const _0x3f1a90=_0x3f8d12,_0x4cf7e1=[_0x375a86[_0x3f1a90(0xef0)]],_0x1b4c87=_0x3f1a90(0x89d)+_0x342cc9['id']+'.zip',_0x4e8ca2=new Blob(_0x4cf7e1,{'type':_0x375a86[_0x3f1a90(0x66a)]}),_0x4ae234=window[_0x3f1a90(0x1db8)][_0x3f1a90(0x8c6)]('a');_0x4ae234[_0x3f1a90(0x23b9)](_0x3f1a90(0x105b),URL['createObjectURL'](_0x4e8ca2)),_0x4ae234['setAttribute'](_0x3f1a90(0x26ec),_0x1b4c87),document['body'][_0x3f1a90(0x23de)](_0x4ae234),_0x4ae234['click']();})[_0x3f8d12(0x1c4)](function(_0x762377){const _0x45bbb2=_0x3f8d12;if(_0x762377[_0x45bbb2(0x25c)]&&_0x762377['data'][_0x45bbb2(0x1a7c)]&&_0x762377[_0x45bbb2(0x25c)][_0x45bbb2(0x1a7c)][_0x45bbb2(0xfd0)])for(let _0x39b0b2=0x0;_0x39b0b2<_0x762377[_0x45bbb2(0x25c)][_0x45bbb2(0x1a7c)][_0x45bbb2(0xfd0)];_0x39b0b2+=0x1){_0x2420ba[_0x45bbb2(0x218e)]({'title':_0x762377[_0x45bbb2(0x25c)][_0x45bbb2(0x1a7c)][_0x39b0b2][_0x45bbb2(0x66a)],'msg':_0x762377[_0x45bbb2(0x25c)][_0x45bbb2(0x1a7c)][_0x39b0b2][_0x45bbb2(0x155e)]});}else _0x2420ba['error']({'title':_0x762377[_0x45bbb2(0x291)]?_0x45bbb2(0xeb9)+_0x762377[_0x45bbb2(0x291)]+'\x20-\x20'+_0x762377['statusText']:_0x45bbb2(0x10f5),'msg':_0x762377[_0x45bbb2(0x25c)]?JSON[_0x45bbb2(0x2701)](_0x762377[_0x45bbb2(0x25c)]['message']):_0x762377[_0x45bbb2(0x147f)]()});});}function _0xdbd260(_0x2733ba,_0x53b090){const _0x3ec9d8=_0x599d03,_0x529185=_0x269cb[_0x3ec9d8(0xebe)][_0x3ec9d8(0x2478)]||_0x269cb['user'][_0x3ec9d8(0xf0c)]||_0x269cb['user'][_0x3ec9d8(0x2035)]||_0x269cb['user']['openchannelPause']||_0x269cb[_0x3ec9d8(0xebe)]['faxPause'],_0x4d1073=!_0x53b090[_0x3ec9d8(0x1649)][_0x3ec9d8(0x1935)];_0x5e878c['show']({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x3769c1,'parent':angular[_0x3ec9d8(0x1853)](_0x2c45de[_0x3ec9d8(0x1ed9)]),'clickOutsideToClose':_0x4d1073,'escapeToClose':_0x4d1073,'onRemoving':function(){const _0xbda905=_0x3ec9d8;_0x269cb['user']&&_0x53b090['Account']['mandatoryDisposition']&&!_0x529185&&_0x55f2a9[_0xbda905(0xebe)][_0xbda905(0xf5d)]({'id':_0x269cb['user']['id']})[_0xbda905(0x1d77)][_0xbda905(0x1c4)](function(_0x2af1a9){console['error'](_0x2af1a9);});},'locals':{'user':_0x269cb['user'],'channel':'sms','interaction':_0x53b090}});}function _0x199b8c(_0x2c6e09){const _0x17df5d=_0x599d03;_0x2c6e09[_0x17df5d(0x28b6)]=_0x2c6e09[_0x17df5d(0x8d3)]?_0x2c6e09[_0x17df5d(0x8d3)][_0x17df5d(0x1ce6)]:undefined,_0x2c6e09[_0x17df5d(0x1325)]===_0x17df5d(0x2087)&&(_0x2c6e09[_0x17df5d(0x1325)]=_0x3dad64[_0x17df5d(0x25cc)](_0x17df5d(0x2b9)));}function _0x3cfda3(_0x3da34e){const _0x2a67c6=_0x599d03;if(_0x3da34e['UserId'])return _0x3da34e[_0x2a67c6(0x21ab)]===_0x269cb[_0x2a67c6(0xebe)]['id']?_0x3dad64['instant'](_0x2a67c6(0x1ea6)):_0x3da34e[_0x2a67c6(0x135d)][_0x2a67c6(0x1d14)]+'\x20<'+_0x3da34e[_0x2a67c6(0x135d)][_0x2a67c6(0xdbd)]+'>';return _0x3dad64['instant'](_0x2a67c6(0x68f));}function _0x432caf(_0x90a2ed){const _0x10667c=_0x599d03;if(_0x90a2ed[_0x10667c(0x1649)])return _0x90a2ed[_0x10667c(0x1649)][_0x10667c(0xee8)];return _0x3dad64[_0x10667c(0x25cc)]('APP.UNKNOWN');}function _0xeee7e9(_0x2d2dc7,_0x5c2f66){const _0x2e2bab=_0x599d03;_0x5e878c[_0x2e2bab(0xe27)]({'controller':'ComposeSmsInteractionDialogController','controllerAs':'vm','templateUrl':_0x11d871,'parent':angular[_0x2e2bab(0x1853)](_0x2c45de['body']),'clickOutsideToClose':![],'locals':{'account':_0x5c2f66,'message':{},'type':_0x2e2bab(0x1295),'interaction':{}},'fullscreen':!![]})['then'](function(_0x3027b3){const _0x84e987=_0x2e2bab;if(_0x3027b3){if(_0x3027b3['message']&&_0x3027b3[_0x84e987(0x155e)][_0x84e987(0x275)]){const _0x5d4577={'channel':_0x84e987(0x689),'account':_0x5c2f66,'message':_0x3027b3[_0x84e987(0x155e)],'contact':_0x3027b3['contact']};_0x1b450e[_0x84e987(0x17a1)](_0x5d4577);}else{const _0x393aae=_0x3027b3;return _0x55f2a9['smsAccount']['send']({'id':_0x5c2f66['id']},_0x393aae)[_0x84e987(0x1d77)][_0x84e987(0x1cb0)](function(_0x241728){const _0x16e657=_0x84e987;_0x2420ba[_0x16e657(0x829)]({'title':_0x16e657(0x113d),'msg':'Message\x20has\x20been\x20sent!'}),_0x418420['$parent']['vm'][_0x16e657(0x11d9)](_0x16e657(0x689),_0x241728);})[_0x84e987(0x1c4)](function(_0x5382aa){const _0x2ae0a7=_0x84e987;if(_0x5382aa[_0x2ae0a7(0x25c)]&&_0x5382aa[_0x2ae0a7(0x25c)][_0x2ae0a7(0x1a7c)]&&_0x5382aa[_0x2ae0a7(0x25c)][_0x2ae0a7(0x1a7c)][_0x2ae0a7(0xfd0)])for(let _0x2791c2=0x0;_0x2791c2<_0x5382aa[_0x2ae0a7(0x25c)][_0x2ae0a7(0x1a7c)][_0x2ae0a7(0xfd0)];_0x2791c2++){_0x2420ba['error']({'title':_0x5382aa[_0x2ae0a7(0x25c)][_0x2ae0a7(0x1a7c)][_0x2791c2]['type'],'msg':_0x5382aa[_0x2ae0a7(0x25c)]['errors'][_0x2791c2][_0x2ae0a7(0x155e)]});}else _0x2420ba[_0x2ae0a7(0x218e)]({'title':_0x5382aa[_0x2ae0a7(0x291)]?_0x2ae0a7(0xeb9)+_0x5382aa[_0x2ae0a7(0x291)]+'\x20-\x20'+_0x5382aa[_0x2ae0a7(0xc22)]:_0x2ae0a7(0x4a0),'msg':_0x5382aa[_0x2ae0a7(0x25c)]?JSON['stringify'](_0x5382aa[_0x2ae0a7(0x25c)][_0x2ae0a7(0x155e)]):_0x5382aa['message']||_0x5382aa[_0x2ae0a7(0x147f)]()});});}}});}function _0x23d003(_0x567a86){const _0x1afc96=_0x599d03;let _0x54e55b;const _0x349624=_0x39641b()[_0x1afc96(0x13b4)](_0x269cb['smsInteractions'][_0x1afc96(0x2214)],{'id':_0x567a86[_0x1afc96(0x1736)]});_0x349624&&_0x349624[_0x1afc96(0x2653)]&&(_0x54e55b=_0x39641b()[_0x1afc96(0x13b4)](_0x349624[_0x1afc96(0x2653)],{'id':_0x567a86['UserId']}),!_0x54e55b&&_0x349624[_0x1afc96(0x2653)][_0x1afc96(0x2785)]({'id':_0x567a86['UserId']}));}function _0x2c5bcb(_0x1a0a28){const _0x2b0201=_0x599d03,_0x29275c=_0x39641b()[_0x2b0201(0x13b4)](_0x269cb[_0x2b0201(0x25a5)]['rows'],{'id':_0x1a0a28[_0x2b0201(0x1736)]});_0x29275c&&_0x29275c['Users']&&_0x39641b()[_0x2b0201(0x152a)](_0x29275c[_0x2b0201(0x2653)],{'id':_0x1a0a28[_0x2b0201(0x21ab)]});}function _0x4ee05a(_0x51ab78){const _0x17c4d4=_0x599d03;if(_0x51ab78){const _0x2efcac=_0x39641b()[_0x17c4d4(0x13b4)](_0x269cb[_0x17c4d4(0x25a5)][_0x17c4d4(0x2214)],{'id':_0x51ab78['id']});if(_0x2efcac){_0x2efcac[_0x17c4d4(0x2653)]=[];_0x51ab78[_0x17c4d4(0x22aa)]&&(_0x2efcac[_0x17c4d4(0x1554)]=0x0);if(_0x269cb[_0x17c4d4(0xae2)]['sort']){const _0x5d9fe3=_0x39641b()[_0x17c4d4(0x1f2c)](_0x269cb[_0x17c4d4(0xae2)][_0x17c4d4(0x1381)],'-')?'desc':'asc';_0x269cb[_0x17c4d4(0x25a5)][_0x17c4d4(0x2214)]=_0x39641b()['orderBy'](_0x269cb['smsInteractions'][_0x17c4d4(0x2214)],_0x39641b()[_0x17c4d4(0x359)](_0x269cb[_0x17c4d4(0xae2)][_0x17c4d4(0x1381)],'-'),_0x5d9fe3);}_0x39641b()[_0x17c4d4(0x9c1)](_0x2efcac,_0x39641b()['pick'](_0x51ab78,_0x39641b()[_0x17c4d4(0x1be5)](_0x2efcac)));}else _0x584461(_0x269cb['query'][_0x17c4d4(0x1c7b)]);}}function _0x241185(_0x2f0c12){const _0x1c31cb=_0x599d03;if(_0x2f0c12){const _0x4934ff=_0x39641b()[_0x1c31cb(0x13b4)](_0x269cb[_0x1c31cb(0x25a5)]['rows'],{'id':_0x2f0c12['id']});_0x4934ff&&(_0x4934ff[_0x1c31cb(0x190)]=_0x2f0c12[_0x1c31cb(0xfbf)]||[],_0x39641b()['merge'](_0x4934ff,_0x39641b()[_0x1c31cb(0x169b)](_0x2f0c12,_0x39641b()[_0x1c31cb(0x1be5)](_0x4934ff))));}}function _0x524228(_0xddfc40){const _0x384584=_0x599d03;if(_0xddfc40&&!_0xddfc40[_0x384584(0x1105)]){const _0x3ddff4=_0x39641b()['find'](_0x269cb[_0x384584(0x25a5)]['rows'],{'id':_0xddfc40[_0x384584(0x1736)]});if(_0x3ddff4){const _0x4540b0=_0x39641b()[_0x384584(0x13b4)](_0x3ddff4[_0x384584(0x223c)],{'id':_0xddfc40['id']});_0x4540b0?_0x39641b()[_0x384584(0x9c1)](_0x4540b0,_0x39641b()[_0x384584(0x169b)](_0xddfc40,_0x39641b()[_0x384584(0x1be5)](_0x4540b0))):(_0x39641b()[_0x384584(0x958)](_0x3ddff4['Messages'])&&(_0x3ddff4[_0x384584(0x223c)]={'count':0x0}),!_0xddfc40[_0x384584(0xfc1)]&&(_0x3ddff4[_0x384584(0x223c)][_0x384584(0x184d)]+=0x1));}}}function _0x2fd438(){_0x269cb['isSearchBarVisible']=![];}function _0x267ba6(){const _0xc189ae=_0x599d03;_0x269cb[_0xc189ae(0x1e6c)]=!![];}function _0x3b9960(){const _0x38849f=_0x599d03;_0x269cb[_0x38849f(0x1e6c)]=![],_0x5e878c[_0x38849f(0xe27)]({'controller':_0x38849f(0x15f7),'controllerAs':'vm','templateUrl':_0x3530d6,'parent':angular[_0x38849f(0x1853)](_0x2c45de[_0x38849f(0x1ed9)]),'clickOutsideToClose':![],'locals':{'color':_0x269cb[_0x38849f(0xaee)],'fields':_0x269cb[_0x38849f(0x16ad)][_0x38849f(0x355)],'storagePath':_0x38849f(0x1fb9)},'fullscreen':!![]})[_0x38849f(0x1cb0)](function(_0x475b41){const _0x43f35a=_0x38849f;_0x269cb[_0x43f35a(0xae2)][_0x43f35a(0x24be)]=_0x475b41===![]?undefined:_0x475b41;if(_0x269cb[_0x43f35a(0xae2)][_0x43f35a(0x24be)]||_0x475b41===![])_0x584461();})[_0x38849f(0x1c4)](function(_0xb94f6e){const _0x38ee03=_0x38849f;_0x2420ba[_0x38ee03(0x218e)]({'title':_0x38ee03(0x2260),'msg':_0xb94f6e[_0x38ee03(0x25c)]?JSON[_0x38ee03(0x2701)](_0xb94f6e['data'][_0x38ee03(0x155e)]):_0xb94f6e[_0x38ee03(0x147f)]()});});}let _0x2c79c4=!![],_0x5bc679=0x1;_0x418420['$watch'](_0x599d03(0x957),function(_0x34f623,_0x3b5c04){const _0x5d17e8=_0x599d03;_0x2c79c4?_0x3aa199(function(){_0x2c79c4=![];}):(!_0x3b5c04&&(_0x5bc679=_0x269cb[_0x5d17e8(0xae2)][_0x5d17e8(0x1c7b)]),_0x34f623!==_0x3b5c04&&(_0x269cb[_0x5d17e8(0xae2)]['page']=0x1),!_0x34f623&&(_0x269cb[_0x5d17e8(0xae2)][_0x5d17e8(0x1c7b)]=_0x5bc679),_0x584461(_0x269cb['query'][_0x5d17e8(0x1c7b)]));}),_0x418420['$on'](_0x599d03(0x291c),function(){const _0x36ea7b=_0x599d03;_0x5c0c4a['removeAllListeners'](_0x36ea7b(0xbc7)),_0x5c0c4a[_0x36ea7b(0xfb8)](_0x36ea7b(0x2338)),_0x5c0c4a['removeAllListeners'](_0x36ea7b(0x1a16)),_0x5c0c4a['removeAllListeners']('smsInteractionTags:save'),_0x5c0c4a[_0x36ea7b(0xfb8)](_0x36ea7b(0x159f)),_0x5c0c4a['removeAllListeners'](_0x36ea7b(0x129d)),_0x5c0c4a['removeAllListeners']('user_has_sms_interactions:remove');});}const _0x5b9a44=_0x341271;;const _0x4e72a4=_0x5074a3['p']+_0x5537c6(0x1640);;_0x31a9b3[_0x5537c6(0x15b6)]=['$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x142b),_0x5537c6(0x9bf),'Auth',_0x5537c6(0x1f10),'$scope',_0x5537c6(0x2168)];function _0x31a9b3(_0x598fe5,_0x49c0da,_0x43d2fa,_0x5be40e,_0x10c468,_0x44b9d1,_0x213c9a,_0x34df53){const _0x428307=_0x5537c6,_0x3e9890=this;_0x3e9890[_0x428307(0xe76)]=_0x10c468['getCurrentUser'](),_0x3e9890[_0x428307(0x23fe)]={},_0x3e9890[_0x428307(0xc83)]=_0x428307(0x23fe),_0x3e9890[_0x428307(0xae2)]={'UserId':_0x3e9890[_0x428307(0xe76)]['id'],'fields':_0x428307(0x1d44),'sort':_0x428307(0x282),'limit':0xa,'page':0x1,'type':null},_0x3e9890['success']=_0x2c4a01,_0x3e9890['getVoiceCalls']=_0x148d57,_0x3e9890['onInit']=_0x5d09fe,_0x3e9890['showDetails']=_0x32514a,_0x3e9890['onSearchBarCollapse']=_0x377008,_0x3e9890['onSearchBarExpand']=_0x57f86b;function _0x5d09fe(){const _0x30990a=_0x428307;return _0x43d2fa[_0x30990a(0x22b1)][_0x30990a(0xbf7)]()['$promise'][_0x30990a(0x1cb0)](function(_0x3cc48c){const _0x51493d=_0x30990a;_0x3e9890[_0x51493d(0xfbf)]=_0x3cc48c||{'count':0x0,'rows':[]};})[_0x30990a(0x1cb0)](function(){_0x3e9890['quickFilters']=_0x396b07();})['catch'](function(_0x4ed111){const _0x16b28e=_0x30990a;_0x5be40e[_0x16b28e(0x218e)]({'title':'Init\x20error','msg':_0x4ed111['data']?JSON[_0x16b28e(0x2701)](_0x4ed111['data'][_0x16b28e(0x155e)]):_0x4ed111[_0x16b28e(0x155e)]||_0x4ed111[_0x16b28e(0x147f)]()}),_0x3e9890[_0x16b28e(0xfbf)]={'count':0x0,'rows':[]};})[_0x30990a(0x2e0)](function(){const _0x5b9077=_0x30990a;let _0xa1777b=_0x44b9d1[_0x5b9077(0x1b83)][_0x5b9077(0x2091)]('motion2.home.voice:'+_0x3e9890[_0x5b9077(0xe76)]['id']);if(_0xa1777b)try{_0xa1777b=JSON['parse'](_0xa1777b),_0xa1777b[_0x5b9077(0xae2)]&&(_0x3e9890[_0x5b9077(0xae2)]=_0x39641b()[_0x5b9077(0x1bd8)](_0xa1777b['query'],_0x5b9077(0x1c99)));}catch(_0x5efc54){console[_0x5b9077(0x218e)](_0x5efc54);}else{const _0x312d89={'$gte':_0x543b5a()()[_0x5b9077(0x1be0)]('month')[_0x5b9077(0x17d9)](0x0,!![])[_0x5b9077(0x1f31)](),'$lte':_0x543b5a()()[_0x5b9077(0x1b4)](_0x5b9077(0x26ae))['utcOffset'](0x0,!![])[_0x5b9077(0x1f31)]()};_0x3e9890['query'][_0x5b9077(0x24cb)]=_0x312d89;}_0x148d57();});}function _0x396b07(){const _0x186112=_0x428307;return[{'name':_0x186112(0x68d),'key':'createdAt','type':_0x186112(0x18ec),'label':_0x186112(0xf5e)},{'name':_0x186112(0x6fb),'key':_0x186112(0x66a),'type':'select','label':_0x186112(0xc18),'customOptions':[{'value':'internal','translate':_0x186112(0x1720)},{'value':_0x186112(0x26c0),'translate':'VOICE.INBOUND'},{'value':_0x186112(0x895),'translate':_0x186112(0x1a0b)},{'value':_0x186112(0x14f7),'translate':'VOICE.DIALER'},{'value':null,'translate':_0x186112(0x1743)}]}];}function _0x2c4a01(_0x44573c){const _0x7f077d=_0x428307;_0x3e9890[_0x7f077d(0x16cb)]=![],_0x3e9890[_0x7f077d(0x23fe)]=_0x44573c||{'count':0x0,'rows':[]};}function _0x148d57(){const _0xb1d0d4=_0x428307;_0x3e9890['searchInProgress']=!![],_0x3e9890[_0xb1d0d4(0xae2)][_0xb1d0d4(0x184b)]=(_0x3e9890[_0xb1d0d4(0xae2)][_0xb1d0d4(0x1c7b)]-0x1)*_0x3e9890['query'][_0xb1d0d4(0x236)];const _0x343bc7={'query':_0x3e9890[_0xb1d0d4(0xae2)]};_0x44b9d1[_0xb1d0d4(0x1b83)][_0xb1d0d4(0x13a8)](_0xb1d0d4(0x2764)+_0x3e9890[_0xb1d0d4(0xe76)]['id'],JSON['stringify'](_0x343bc7)),_0x3e9890[_0xb1d0d4(0x2061)]=_0x43d2fa['voiceCallReport'][_0xb1d0d4(0xbf7)](_0x3e9890[_0xb1d0d4(0xae2)],_0x2c4a01)['$promise'];}function _0x32514a(_0x362baf){const _0x1ea97e=_0x428307;_0x598fe5['show']({'controller':_0x1ea97e(0x71c),'controllerAs':'vm','templateUrl':_0x4e72a4,'parent':angular[_0x1ea97e(0x1853)](_0x49c0da[_0x1ea97e(0x1ed9)]),'clickOutsideToClose':!![],'locals':{'call':_0x362baf}});}function _0x377008(){const _0x248566=_0x428307;_0x3e9890['query']['filter']=undefined,_0x3e9890[_0x248566(0x1e6c)]=![];}function _0x57f86b(){_0x3e9890['isSearchBarVisible']=!![];}let _0x8f5db7=!![],_0x301efc=0x1;_0x213c9a[_0x428307(0x614)]('vm.query.filter',function(_0x5b4871,_0x3b186c){const _0x37bd4e=_0x428307;_0x8f5db7?_0x34df53(function(){_0x8f5db7=![];}):(!_0x3b186c&&(_0x301efc=_0x3e9890['query'][_0x37bd4e(0x1c7b)]),_0x5b4871!==_0x3b186c&&(_0x3e9890['query'][_0x37bd4e(0x1c7b)]=0x1),!_0x5b4871&&(_0x3e9890[_0x37bd4e(0xae2)][_0x37bd4e(0x1c7b)]=_0x301efc),_0x3e9890[_0x37bd4e(0x133e)]());});}const _0xdea51=_0x31a9b3;;_0xefad5c[_0x5537c6(0x15b6)]=['$mdDialog','call'];function _0xefad5c(_0x5bde4a,_0x3d4907){const _0x5d45e9=_0x5537c6,_0x35e79e=this;_0x35e79e[_0x5d45e9(0x205d)]=_0x3d4907;function _0x113691(){const _0x48bd5f=_0x5d45e9;_0x5bde4a[_0x48bd5f(0x1426)]();}_0x35e79e['closeDialog']=_0x113691;}const _0x29687f=_0xefad5c;;_0x125f2a[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2168),'$mdDialog','$document',_0x5537c6(0x1f10),_0x5537c6(0x1ae),_0x5537c6(0x142b),'Auth',_0x5537c6(0x1986),'toasty',_0x5537c6(0x1b68)];function _0x125f2a(_0x4390ca,_0x2d08f3,_0x54b814,_0x114549,_0x2be0aa,_0xf03d99,_0xa84725,_0x457ef5,_0xdab09,_0x4151d8,_0x25c59f){const _0xde4151=_0x5537c6,_0x5b4af6=this;_0x5b4af6['user']=_0x457ef5[_0xde4151(0x21e8)](),_0x5b4af6['license']={},_0x5b4af6['setting']={},_0x5b4af6[_0xde4151(0xfbf)]={'count':0x0,'rows':[]},_0x5b4af6[_0xde4151(0xf49)]={'count':0x0,'rows':[]},_0x5b4af6[_0xde4151(0xae2)]={'includeAll':!![],'sort':_0xde4151(0x282),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x5b4af6[_0xde4151(0x16ad)]={'fields':[{'name':'Id','column':'id','type':_0xde4151(0x83d)},{'name':_0xde4151(0x8d3),'column':_0xde4151(0x8d3),'type':_0xde4151(0x19e0),'options':{'searchFields':['firstName',_0xde4151(0x1fbb),'email'],'route':{'model':'cmContact','action':'get','params':{'fields':_0xde4151(0x9b0),'Contact':_0xde4151(0xed6),'nolimit':!![]}},'extraOperators':[_0xde4151(0x1fb1)],'excludedOperators':[_0xde4151(0x15ce)]}},{'name':_0xde4151(0x269b),'column':_0xde4151(0x1ed9),'type':_0xde4151(0x19d3),'options':{'excludedOperators':[_0xde4151(0x1c5e),'$ne']}},{'name':'Status','column':_0xde4151(0x22aa),'type':_0xde4151(0x220f),'values':[{'id':0x0,'translate':_0xde4151(0x1bbd)},{'id':0x1,'translate':_0xde4151(0x191b)}],'options':{'excludedOperators':[_0xde4151(0x15ce)]}},{'name':_0xde4151(0x30e),'column':_0xde4151(0x1597),'type':'autocomplete','options':{'table':'i','route':{'model':_0xde4151(0xebe),'action':'get','params':{'role':_0xde4151(0x1eff),'fields':_0xde4151(0x1d34),'nolimit':!![]}},'searchFields':[_0xde4151(0x1d14),_0xde4151(0x16b6)],'extraOperators':[_0xde4151(0x1fb1)],'excludedOperators':[_0xde4151(0x15ce)]}},{'name':_0xde4151(0x1649),'column':_0xde4151(0xfc8),'type':_0xde4151(0x1d50),'options':{'route':{'model':_0xde4151(0xebe),'action':_0xde4151(0x1758),'params':{'id':_0x5b4af6[_0xde4151(0xebe)]['id'],'nolimit':!![]}}}},{'name':_0xde4151(0x190),'column':'Tag','type':'multiselect','options':{'route':{'model':_0xde4151(0x22b1),'action':_0xde4151(0xbf7),'params':{'nolimit':!![]}},'excludedOperators':[_0xde4151(0x62d)]}},{'name':'Start\x20Date','column':_0xde4151(0x24cb),'type':'date','options':{'excludedOperators':[_0xde4151(0x15ce)]}},{'name':'Read','column':_0xde4151(0x1554),'type':'select','values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':['$ne']}}]},_0x5b4af6['sectionColor']=_0xde4151(0x1995),_0x5b4af6['onInit']=_0x4dc8c4,_0x5b4af6['success']=_0x233fa5,_0x5b4af6[_0xde4151(0x268e)]=_0x221a22,_0x5b4af6['showWhatsappInteraction']=_0x482f04,_0x5b4af6[_0xde4151(0x21bf)]=_0x8fc449,_0x5b4af6[_0xde4151(0x493)]=_0xde68ee,_0x5b4af6['getContactLabel']=_0x8fad65,_0x5b4af6['getAgentLabel']=_0x30bf27,_0x5b4af6[_0xde4151(0x59b)]=_0x140e9b,_0x5b4af6['composeWhatsappInteraction']=_0x16298d,_0x5b4af6[_0xde4151(0x17c3)]=_0x23794,_0x5b4af6['onSearchBarExpand']=_0x1deb05,_0x5b4af6[_0xde4151(0x1ede)]=_0x11c49c;function _0x4dc8c4(_0x5d80b8,_0x563ac6){const _0xb2d204=_0xde4151;return _0x5b4af6[_0xb2d204(0x8a5)]=_0x5d80b8,_0x5b4af6[_0xb2d204(0x9ca)]=_0x563ac6,_0xa84725[_0xb2d204(0xebe)][_0xb2d204(0xbf7)+_0x39641b()[_0xb2d204(0x277)](_0xb2d204(0xbb3))]({'id':_0x5b4af6[_0xb2d204(0xebe)]['id'],'nolimit':!![]})['$promise']['then'](function(_0x3ec656){const _0x2234ae=_0xb2d204;return _0x5b4af6[_0x2234ae(0xbb3)]=_0x3ec656||{'count':0x0,'rows':[]},_0xa84725[_0x2234ae(0x22b1)]['get']()[_0x2234ae(0x1d77)];})[_0xb2d204(0x1cb0)](function(_0x47e84e){_0x5b4af6['tags']=_0x47e84e||{'count':0x0,'rows':[]};})[_0xb2d204(0x1cb0)](function(){_0x5b4af6['quickFilters']=_0x53621e();})[_0xb2d204(0x1c4)](function(_0x6c481d){const _0x1ccd0a=_0xb2d204;console[_0x1ccd0a(0x218e)](_0x6c481d);})['finally'](function(){const _0x5e5dc7=_0xb2d204;let _0x3a718d=_0x2be0aa[_0x5e5dc7(0x1b83)]['getItem']('motion2.home.whatsapp:'+_0x5b4af6['user']['id']);if(_0x3a718d)try{_0x3a718d=JSON['parse'](_0x3a718d);if(_0x3a718d['query']){_0x5b4af6[_0x5e5dc7(0xae2)]=_0x39641b()['merge'](_0x5b4af6['query'],_0x3a718d[_0x5e5dc7(0xae2)]);if(_0x39641b()[_0x5e5dc7(0xce9)](_0x5b4af6['whatsappAccounts']['rows']))_0x5b4af6[_0x5e5dc7(0xae2)][_0x5e5dc7(0xfc8)]=[];else _0x39641b()[_0x5e5dc7(0xce9)](_0x5b4af6[_0x5e5dc7(0xae2)][_0x5e5dc7(0xfc8)])&&(_0x5b4af6[_0x5e5dc7(0xae2)][_0x5e5dc7(0xfc8)]=_0x39641b()(_0x5b4af6[_0x5e5dc7(0xbb3)][_0x5e5dc7(0x2214)])[_0x5e5dc7(0x1de2)]('id')[_0x5e5dc7(0x54f)]()[_0x5e5dc7(0x327)]());_0x5b4af6[_0x5e5dc7(0xae2)][_0x5e5dc7(0x1381)]&&_0x5b4af6[_0x5e5dc7(0xae2)][_0x5e5dc7(0x1381)][_0x5e5dc7(0xd8a)](_0x5e5dc7(0x15d6))>=0x0&&(_0x5b4af6[_0x5e5dc7(0xae2)]=_0x39641b()[_0x5e5dc7(0x1bd8)](_0x5b4af6['query'],'sort')),_0x5b4af6[_0x5e5dc7(0xae2)][_0x5e5dc7(0x11f0)]=!![],_0x5b4af6['isSearchBarVisible']=_0x5b4af6[_0x5e5dc7(0xae2)]['filter']?!![]:![];}}catch(_0x36ea89){console[_0x5e5dc7(0x218e)](_0x36ea89);}else{const _0x4e952f={'$gte':_0x543b5a()()[_0x5e5dc7(0x1be0)](_0x5e5dc7(0x26ae))[_0x5e5dc7(0x17d9)](0x0,!![])[_0x5e5dc7(0x1f31)](),'$lte':_0x543b5a()()[_0x5e5dc7(0x1b4)](_0x5e5dc7(0x26ae))[_0x5e5dc7(0x17d9)](0x0,!![])[_0x5e5dc7(0x1f31)]()},_0x4cdb67={'WhatsappAccountId':_0x39641b()[_0x5e5dc7(0x1de2)](_0x5b4af6[_0x5e5dc7(0xbb3)][_0x5e5dc7(0x2214)],'id'),'createdAt':_0x4e952f};_0x5b4af6['query']=_0x39641b()[_0x5e5dc7(0x9c1)](_0x5b4af6['query'],_0x4cdb67);}_0xdab09['on'](_0x5e5dc7(0xa3e),_0x5c6bb4),_0xdab09['on'](_0x5e5dc7(0x1b85),_0x5c6bb4),_0xdab09['on'](_0x5e5dc7(0x555),_0x23e97d),_0xdab09['on']('whatsappMessage:save',_0x18e4be),_0xdab09['on'](_0x5e5dc7(0x2126),_0x18e4be),_0xdab09['on'](_0x5e5dc7(0x1f52),_0x312239),_0xdab09['on'](_0x5e5dc7(0xe51),_0xff33f2),_0x221a22(_0x5b4af6['query'][_0x5e5dc7(0x1c7b)]);});}function _0x53621e(){const _0x3e6ffa=_0xde4151;return[{'name':_0x3e6ffa(0x68d),'key':_0x3e6ffa(0x24cb),'type':'date','label':_0x3e6ffa(0xf5e)},{'name':_0x3e6ffa(0x223c),'key':_0x3e6ffa(0xfc1),'type':_0x3e6ffa(0x220f),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x3e6ffa(0x1115)},{'value':0x1,'translate':_0x3e6ffa(0x27a4)},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':'Status','key':_0x3e6ffa(0x22aa),'type':_0x3e6ffa(0x220f),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x3e6ffa(0x1bbd)},{'value':0x1,'translate':_0x3e6ffa(0x191b)},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x3e6ffa(0x1649),'key':_0x3e6ffa(0xfc8),'type':_0x3e6ffa(0x1d50),'label':_0x3e6ffa(0xf86),'options':_0x5b4af6[_0x3e6ffa(0xbb3)]['rows'],'clearAll':![]},{'name':_0x3e6ffa(0x30e),'key':'UserId','type':'select','label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x5b4af6[_0x3e6ffa(0xebe)]['id'],'translate':_0x3e6ffa(0x1ea6)},{'value':_0x3e6ffa(0xd38),'translate':_0x3e6ffa(0x68f)},{'value':undefined,'translate':_0x3e6ffa(0x2706)}]},{'name':_0x3e6ffa(0xf2d),'key':_0x3e6ffa(0x22b1),'type':'multiselect','label':_0x3e6ffa(0x3c3),'options':_0x5b4af6[_0x3e6ffa(0xfbf)][_0x3e6ffa(0x2214)],'placeholder':_0x3e6ffa(0x62b)}];}function _0x233fa5(_0x74b4fe){const _0x13b9b9=_0xde4151;_0x5b4af6[_0x13b9b9(0x16cb)]=![],_0x5b4af6[_0x13b9b9(0xf49)]=_0x74b4fe||{'count':0x0,'rows':[]};for(let _0x165bce=0x0;_0x165bce<_0x5b4af6['whatsappInteractions'][_0x13b9b9(0x2214)]['length'];_0x165bce+=0x1){_0x8fad65(_0x5b4af6[_0x13b9b9(0xf49)]['rows'][_0x165bce]);}}function _0x221a22(_0x311e1f){const _0x1f0db4=_0xde4151;_0x5b4af6[_0x1f0db4(0x16cb)]=!![];!_0x311e1f&&(_0x5b4af6[_0x1f0db4(0xae2)][_0x1f0db4(0x1c7b)]=0x1);_0x5b4af6[_0x1f0db4(0xae2)][_0x1f0db4(0x184b)]=(_0x5b4af6[_0x1f0db4(0xae2)][_0x1f0db4(0x1c7b)]-0x1)*_0x5b4af6[_0x1f0db4(0xae2)][_0x1f0db4(0x236)];let _0x54ee7f=_0x2be0aa[_0x1f0db4(0x1b83)][_0x1f0db4(0x2091)](_0x1f0db4(0x1d71)+_0x5b4af6['user']['id']);_0x54ee7f=_0x54ee7f?JSON['parse'](_0x54ee7f):{},_0x54ee7f[_0x1f0db4(0xae2)]=_0x5b4af6[_0x1f0db4(0xae2)],_0x2be0aa[_0x1f0db4(0x1b83)][_0x1f0db4(0x13a8)](_0x1f0db4(0x1d71)+_0x5b4af6[_0x1f0db4(0xebe)]['id'],JSON['stringify'](_0x54ee7f)),_0x5b4af6[_0x1f0db4(0x2061)]=_0xa84725[_0x1f0db4(0x197a)][_0x1f0db4(0xbf7)](_0x5b4af6[_0x1f0db4(0xae2)],_0x233fa5)[_0x1f0db4(0x1d77)];}function _0x482f04(_0xd1136c,_0x170bb5){const _0xf05971=_0xde4151;_0x4390ca[_0xf05971(0x17bc)]['vm'][_0xf05971(0x11d9)](_0xf05971(0x2476),_0x170bb5);}function _0x8fc449(_0x1b87eb,_0x6ebb2b,_0x440cc2){const _0x5837c3=_0xde4151;_0xa84725['whatsappInteraction'][_0x5837c3(0x26ec)]({'id':_0x6ebb2b['id'],'attachments':_0x440cc2})[_0x5837c3(0x1d77)]['then'](function(_0x26546b){const _0x564971=_0x5837c3,_0x2e1444=[_0x26546b[_0x564971(0xef0)]],_0x336955=_0x564971(0x167a)+_0x6ebb2b['id']+_0x564971(0x1b16),_0x4a309e=new Blob(_0x2e1444,{'type':_0x26546b[_0x564971(0x66a)]}),_0x57c5=window[_0x564971(0x1db8)][_0x564971(0x8c6)]('a');_0x57c5[_0x564971(0x23b9)](_0x564971(0x105b),URL[_0x564971(0x2247)](_0x4a309e)),_0x57c5[_0x564971(0x23b9)](_0x564971(0x26ec),_0x336955),document[_0x564971(0x1ed9)][_0x564971(0x23de)](_0x57c5),_0x57c5[_0x564971(0x20b8)]();})[_0x5837c3(0x1c4)](function(_0x3b5391){const _0x31e548=_0x5837c3;if(_0x3b5391[_0x31e548(0x25c)]&&_0x3b5391[_0x31e548(0x25c)][_0x31e548(0x1a7c)]&&_0x3b5391[_0x31e548(0x25c)][_0x31e548(0x1a7c)]['length'])for(let _0x2a1c3c=0x0;_0x2a1c3c<_0x3b5391[_0x31e548(0x25c)][_0x31e548(0x1a7c)][_0x31e548(0xfd0)];_0x2a1c3c+=0x1){_0x4151d8[_0x31e548(0x218e)]({'title':_0x3b5391[_0x31e548(0x25c)][_0x31e548(0x1a7c)][_0x2a1c3c][_0x31e548(0x66a)],'msg':_0x3b5391['data'][_0x31e548(0x1a7c)][_0x2a1c3c][_0x31e548(0x155e)]});}else _0x4151d8[_0x31e548(0x218e)]({'title':_0x3b5391[_0x31e548(0x291)]?_0x31e548(0xeb9)+_0x3b5391[_0x31e548(0x291)]+'\x20-\x20'+_0x3b5391[_0x31e548(0xc22)]:_0x31e548(0x21bf),'msg':_0x3b5391['data']?JSON[_0x31e548(0x2701)](_0x3b5391[_0x31e548(0x25c)]['message']):_0x3b5391[_0x31e548(0x147f)]()});});}function _0xde68ee(_0x32441c,_0x65823a){const _0x3dbe57=_0xde4151,_0x359b4b=_0x5b4af6[_0x3dbe57(0xebe)][_0x3dbe57(0x2478)]||_0x5b4af6[_0x3dbe57(0xebe)][_0x3dbe57(0xf0c)]||_0x5b4af6[_0x3dbe57(0xebe)][_0x3dbe57(0x2035)]||_0x5b4af6[_0x3dbe57(0xebe)][_0x3dbe57(0x1c7d)]||_0x5b4af6['user'][_0x3dbe57(0x1ce)],_0xe92b9f=!_0x65823a[_0x3dbe57(0x1649)]['mandatoryDisposition'];_0x54b814['show']({'controller':_0x3dbe57(0x209d),'controllerAs':'vm','templateUrl':_0x3769c1,'parent':angular['element'](_0x114549[_0x3dbe57(0x1ed9)]),'clickOutsideToClose':_0xe92b9f,'escapeToClose':_0xe92b9f,'onRemoving':function(){const _0x42611c=_0x3dbe57;_0x5b4af6['user']&&_0x65823a[_0x42611c(0x1649)][_0x42611c(0x1935)]&&!_0x359b4b&&_0xa84725[_0x42611c(0xebe)][_0x42611c(0xf5d)]({'id':_0x5b4af6['user']['id']})[_0x42611c(0x1d77)][_0x42611c(0x1c4)](function(_0x5a0641){const _0x13960e=_0x42611c;console[_0x13960e(0x218e)](_0x5a0641);});},'locals':{'user':_0x5b4af6[_0x3dbe57(0xebe)],'channel':_0x3dbe57(0x2476),'interaction':_0x65823a}});}function _0x8fad65(_0x3ccb97){const _0x39957b=_0xde4151;_0x3ccb97[_0x39957b(0x28b6)]=_0x3ccb97[_0x39957b(0x8d3)]?_0x3ccb97[_0x39957b(0x8d3)][_0x39957b(0x1ce6)]:undefined,_0x3ccb97[_0x39957b(0x1325)]===_0x39957b(0x2087)&&(_0x3ccb97[_0x39957b(0x1325)]=_0xf03d99['instant'](_0x39957b(0x2b9)));}function _0x30bf27(_0x3f0ebe){const _0x3a9134=_0xde4151;if(_0x3f0ebe['UserId'])return _0x3f0ebe['UserId']===_0x5b4af6[_0x3a9134(0xebe)]['id']?_0xf03d99['instant'](_0x3a9134(0x1ea6)):_0x3f0ebe[_0x3a9134(0x135d)][_0x3a9134(0x1d14)]+'\x20<'+_0x3f0ebe[_0x3a9134(0x135d)][_0x3a9134(0xdbd)]+'>';return _0xf03d99[_0x3a9134(0x25cc)](_0x3a9134(0x68f));}function _0x140e9b(_0x32a0e7){const _0x4164f0=_0xde4151;if(_0x32a0e7['Account'])return _0x32a0e7[_0x4164f0(0x1649)]['key'];return _0xf03d99[_0x4164f0(0x25cc)](_0x4164f0(0x2b9));}function _0x16298d(_0xcda268,_0x50bb92){const _0x18a714=_0xde4151;_0x54b814[_0x18a714(0xe27)]({'controller':_0x18a714(0xc53),'controllerAs':'vm','templateUrl':_0x2dd24c,'parent':angular[_0x18a714(0x1853)](_0x114549['body']),'clickOutsideToClose':![],'locals':{'account':_0x50bb92,'message':{},'type':_0x18a714(0x1295),'interaction':{}},'fullscreen':!![]})['then'](function(_0x22637d){const _0x513839=_0x18a714;if(_0x22637d){if(_0x22637d[_0x513839(0x155e)]&&_0x22637d['message'][_0x513839(0x275)]){const _0x51c845={'channel':_0x513839(0x2476),'account':_0x50bb92,'message':_0x22637d['message'],'contact':_0x22637d[_0x513839(0x8b1)]};_0x25c59f[_0x513839(0x17a1)](_0x51c845);}else{const _0x47675f=_0x22637d;return _0xa84725[_0x513839(0x83a)][_0x513839(0x199f)]({'id':_0x50bb92['id']},_0x47675f)[_0x513839(0x1d77)][_0x513839(0x1cb0)](function(_0x97fb7e){const _0x7a51d0=_0x513839;_0x4151d8[_0x7a51d0(0x829)]({'title':_0x7a51d0(0x113d),'msg':'Message\x20has\x20been\x20sent!'}),_0x4390ca['$parent']['vm'][_0x7a51d0(0x11d9)](_0x7a51d0(0x2476),_0x97fb7e);})[_0x513839(0x1c4)](function(_0x38d2c5){const _0x4633cc=_0x513839;if(_0x38d2c5[_0x4633cc(0x25c)]&&_0x38d2c5[_0x4633cc(0x25c)][_0x4633cc(0x1a7c)]&&_0x38d2c5[_0x4633cc(0x25c)][_0x4633cc(0x1a7c)][_0x4633cc(0xfd0)])for(let _0x26534e=0x0;_0x26534e<_0x38d2c5[_0x4633cc(0x25c)][_0x4633cc(0x1a7c)][_0x4633cc(0xfd0)];_0x26534e++){_0x4151d8['error']({'title':_0x38d2c5[_0x4633cc(0x25c)]['errors'][_0x26534e][_0x4633cc(0x66a)],'msg':_0x38d2c5[_0x4633cc(0x25c)][_0x4633cc(0x1a7c)][_0x26534e][_0x4633cc(0x155e)]});}else _0x4151d8['error']({'title':_0x38d2c5[_0x4633cc(0x291)]?_0x4633cc(0xeb9)+_0x38d2c5[_0x4633cc(0x291)]+_0x4633cc(0x1657)+_0x38d2c5[_0x4633cc(0xc22)]:_0x4633cc(0x24b3),'msg':_0x38d2c5['data']?JSON['stringify'](_0x38d2c5[_0x4633cc(0x25c)][_0x4633cc(0x155e)]):_0x38d2c5[_0x4633cc(0x155e)]||_0x38d2c5[_0x4633cc(0x147f)]()});});}}});}function _0x312239(_0x6cefe7){const _0x74cc4e=_0xde4151;let _0x208323;const _0x482a40=_0x39641b()[_0x74cc4e(0x13b4)](_0x5b4af6['whatsappInteractions'][_0x74cc4e(0x2214)],{'id':_0x6cefe7[_0x74cc4e(0x2333)]});_0x482a40&&_0x482a40[_0x74cc4e(0x2653)]&&(_0x208323=_0x39641b()[_0x74cc4e(0x13b4)](_0x482a40[_0x74cc4e(0x2653)],{'id':_0x6cefe7[_0x74cc4e(0x21ab)]}),!_0x208323&&_0x482a40['Users'][_0x74cc4e(0x2785)]({'id':_0x6cefe7[_0x74cc4e(0x21ab)]}));}function _0xff33f2(_0x5cbc39){const _0x10b2fd=_0xde4151,_0x455d62=_0x39641b()[_0x10b2fd(0x13b4)](_0x5b4af6[_0x10b2fd(0xf49)][_0x10b2fd(0x2214)],{'id':_0x5cbc39['WhatsappInteractionId']});_0x455d62&&_0x455d62[_0x10b2fd(0x2653)]&&_0x39641b()[_0x10b2fd(0x152a)](_0x455d62[_0x10b2fd(0x2653)],{'id':_0x5cbc39[_0x10b2fd(0x21ab)]});}function _0x5c6bb4(_0x21b051){const _0x4a8dd3=_0xde4151;if(_0x21b051){const _0x20e71c=_0x39641b()[_0x4a8dd3(0x13b4)](_0x5b4af6[_0x4a8dd3(0xf49)][_0x4a8dd3(0x2214)],{'id':_0x21b051['id']});if(_0x20e71c){_0x20e71c['Users']=[];_0x21b051[_0x4a8dd3(0x22aa)]&&(_0x20e71c[_0x4a8dd3(0x1554)]=0x0);if(_0x5b4af6[_0x4a8dd3(0xae2)]['sort']){const _0x2681ff=_0x39641b()[_0x4a8dd3(0x1f2c)](_0x5b4af6[_0x4a8dd3(0xae2)][_0x4a8dd3(0x1381)],'-')?_0x4a8dd3(0x20a5):'asc';_0x5b4af6['whatsappInteractions'][_0x4a8dd3(0x2214)]=_0x39641b()[_0x4a8dd3(0x17ca)](_0x5b4af6[_0x4a8dd3(0xf49)]['rows'],_0x39641b()[_0x4a8dd3(0x359)](_0x5b4af6[_0x4a8dd3(0xae2)]['sort'],'-'),_0x2681ff);}_0x39641b()[_0x4a8dd3(0x9c1)](_0x20e71c,_0x39641b()[_0x4a8dd3(0x169b)](_0x21b051,_0x39641b()[_0x4a8dd3(0x1be5)](_0x20e71c)));}else _0x221a22(_0x5b4af6['query'][_0x4a8dd3(0x1c7b)]);}}function _0x23e97d(_0x3d98a0){const _0x130e96=_0xde4151;if(_0x3d98a0){const _0x40ab36=_0x39641b()[_0x130e96(0x13b4)](_0x5b4af6['whatsappInteractions'][_0x130e96(0x2214)],{'id':_0x3d98a0['id']});_0x40ab36&&(_0x40ab36[_0x130e96(0x190)]=_0x3d98a0[_0x130e96(0xfbf)]||[],_0x39641b()[_0x130e96(0x9c1)](_0x40ab36,_0x39641b()[_0x130e96(0x169b)](_0x3d98a0,_0x39641b()[_0x130e96(0x1be5)](_0x40ab36))));}}function _0x18e4be(_0xbaf7f){const _0x1a4018=_0xde4151;if(_0xbaf7f&&!_0xbaf7f[_0x1a4018(0x1105)]){const _0x44c695=_0x39641b()[_0x1a4018(0x13b4)](_0x5b4af6[_0x1a4018(0xf49)][_0x1a4018(0x2214)],{'id':_0xbaf7f[_0x1a4018(0x2333)]});if(_0x44c695){const _0x1fa037=_0x39641b()['find'](_0x44c695[_0x1a4018(0x223c)],{'id':_0xbaf7f['id']});_0x1fa037?_0x39641b()[_0x1a4018(0x9c1)](_0x1fa037,_0x39641b()[_0x1a4018(0x169b)](_0xbaf7f,_0x39641b()[_0x1a4018(0x1be5)](_0x1fa037))):(_0x39641b()[_0x1a4018(0x958)](_0x44c695[_0x1a4018(0x223c)])&&(_0x44c695[_0x1a4018(0x223c)]={'count':0x0}),!_0xbaf7f[_0x1a4018(0xfc1)]&&(_0x44c695[_0x1a4018(0x223c)][_0x1a4018(0x184d)]+=0x1));}}}function _0x23794(){const _0x46cd6d=_0xde4151;_0x5b4af6[_0x46cd6d(0x1e6c)]=![];}function _0x1deb05(){_0x5b4af6['isSearchBarVisible']=!![];}function _0x11c49c(){const _0x416fe2=_0xde4151;_0x5b4af6[_0x416fe2(0x1e6c)]=![],_0x54b814[_0x416fe2(0xe27)]({'controller':_0x416fe2(0x15f7),'controllerAs':'vm','templateUrl':_0x3530d6,'parent':angular[_0x416fe2(0x1853)](_0x114549[_0x416fe2(0x1ed9)]),'clickOutsideToClose':![],'locals':{'color':_0x5b4af6['sectionColor'],'fields':_0x5b4af6[_0x416fe2(0x16ad)][_0x416fe2(0x355)],'storagePath':_0x416fe2(0x163)},'fullscreen':!![]})[_0x416fe2(0x1cb0)](function(_0x5a8c4d){const _0x83de25=_0x416fe2;_0x5b4af6[_0x83de25(0xae2)][_0x83de25(0x24be)]=_0x5a8c4d===![]?undefined:_0x5a8c4d;if(_0x5b4af6['query'][_0x83de25(0x24be)]||_0x5a8c4d===![])_0x221a22();})[_0x416fe2(0x1c4)](function(_0x1ff9ab){const _0x5c1aac=_0x416fe2;_0x4151d8[_0x5c1aac(0x218e)]({'title':_0x5c1aac(0x2260),'msg':_0x1ff9ab['data']?JSON[_0x5c1aac(0x2701)](_0x1ff9ab[_0x5c1aac(0x25c)][_0x5c1aac(0x155e)]):_0x1ff9ab[_0x5c1aac(0x147f)]()});});}let _0x329ba6=!![],_0x48c59d=0x1;_0x4390ca[_0xde4151(0x614)]('vm.query.filter',function(_0x573b4c,_0x34d838){const _0x41d050=_0xde4151;_0x329ba6?_0x2d08f3(function(){_0x329ba6=![];}):(!_0x34d838&&(_0x48c59d=_0x5b4af6['query'][_0x41d050(0x1c7b)]),_0x573b4c!==_0x34d838&&(_0x5b4af6[_0x41d050(0xae2)]['page']=0x1),!_0x573b4c&&(_0x5b4af6[_0x41d050(0xae2)][_0x41d050(0x1c7b)]=_0x48c59d),_0x221a22(_0x5b4af6[_0x41d050(0xae2)][_0x41d050(0x1c7b)]));}),_0x4390ca['$on']('$destroy',function(){const _0x41665f=_0xde4151;_0xdab09['removeAllListeners'](_0x41665f(0x1341)),_0xdab09['removeAllListeners']('whatsappMessage:update'),_0xdab09[_0x41665f(0xfb8)]('whatsappInteraction:save'),_0xdab09[_0x41665f(0xfb8)](_0x41665f(0x555)),_0xdab09['removeAllListeners'](_0x41665f(0x1b85)),_0xdab09[_0x41665f(0xfb8)](_0x41665f(0x1f52)),_0xdab09[_0x41665f(0xfb8)](_0x41665f(0xe51));});}const _0x321fa8=_0x125f2a;;_0x14cd32['$inject']=[_0x5537c6(0x1463),'$sce'];function _0x14cd32(_0x394bb5,_0x49407e){const _0xd2f875=_0x5537c6,_0x1f0556=this;_0x1f0556['setting']={},_0x1f0556[_0xd2f875(0xab2)]={'count':0x0,'rows':[]},_0x1f0556['showInteraction']=![];function _0x45eec4(_0x32826f,_0x23f40c){const _0x4f0539=_0xd2f875;_0x1f0556[_0x4f0539(0x9ca)]=_0x23f40c,_0x1f0556[_0x4f0539(0x291e)]=_0x32826f,_0x1f0556['tab'][_0x4f0539(0x167f)]=!![];}function _0x1df4e3(){const _0x3ad091=_0xd2f875;return _0x49407e[_0x3ad091(0x149b)](_0x1f0556[_0x3ad091(0x291e)]['src']);}_0x1f0556[_0xd2f875(0x1a8e)]=_0x45eec4,_0x1f0556[_0xd2f875(0xee2)]=_0x1df4e3;}const _0x18a89c=_0x14cd32;;const _0x387b31=_0x5074a3['p']+_0x5537c6(0xddb);;const _0x16aba3=_0x5074a3['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/transfer/dialog.html/dialog.html';;_0x1fc5fa[_0x5537c6(0x15b6)]=['$sce'],_0x3ac7a5[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x2168),'$document',_0x5537c6(0x1463),_0x5537c6(0xcb9),'$q','$location',_0x5537c6(0x1ae),_0x5537c6(0x142b),_0x5537c6(0x9bf),'Auth',_0x5537c6(0x1986),'msUtils',_0x5537c6(0x1b68)];function _0x3ac7a5(_0x301b37,_0x3851db,_0x5f2a3a,_0x573418,_0x259122,_0x26b39e,_0x3453f7,_0xff3f48,_0x12162a,_0x26e195,_0xb55dea,_0x125029,_0x4a8f56,_0x99560){const _0x2df477=_0x5537c6,_0x21b89d=this,_0x4f9506=0x19,_0x28f096=_0x4f9506*0x400*0x400;_0x21b89d[_0x2df477(0x2613)]=![],_0x21b89d[_0x2df477(0x12d7)]=![],_0x21b89d[_0x2df477(0xebe)]=_0xb55dea[_0x2df477(0x21e8)](),_0x21b89d[_0x2df477(0x21b9)]=_0x4a8f56['detectBrowser'](),_0x21b89d['journey']=[],_0x21b89d[_0x2df477(0x394)]=[],_0x21b89d[_0x2df477(0xee9)]=[_0x2df477(0x2651),_0x2df477(0x174c),_0x2df477(0x689),_0x2df477(0x15e0),_0x2df477(0x1944),_0x2df477(0x2476)],_0x21b89d[_0x2df477(0x15e8)]={'target':'api/attachments','singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x28f096,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x21b89d[_0x2df477(0x125a)]={'flow':{}},_0x21b89d['selectedMailShowDetails']={},_0x21b89d[_0x2df477(0xdc8)]={},_0x21b89d[_0x2df477(0x9ca)]={},_0x21b89d[_0x2df477(0x7df)]={},_0x21b89d[_0x2df477(0x15d7)]={'fontSmiley':!![],'sanitizeHtml':!![],'emoji':!![],'link':!![],'linkTarget':_0x2df477(0x22ac)},_0x21b89d[_0x2df477(0x1a58)]=new Date(_0x543b5a()()[_0x2df477(0x1be0)](_0x2df477(0x26ae))[_0x2df477(0x1030)](0x1,_0x2df477(0x479))[_0x2df477(0x17d9)](0x0,!![])[_0x2df477(0x1f31)]()),_0x21b89d['lastDayMonth']=new Date(_0x543b5a()()[_0x2df477(0x1b4)](_0x2df477(0x26ae))['subtract'](0x1,'day')[_0x2df477(0x17d9)](0x0,!![])[_0x2df477(0x1f31)]()),_0x21b89d[_0x2df477(0x1a8e)]=_0x25e578,_0x21b89d[_0x2df477(0x22dd)]=_0x5d7279,_0x21b89d[_0x2df477(0x122c)]=_0x5580c8,_0x21b89d[_0x2df477(0x81e)]=_0x1f9b7f,_0x21b89d['disposeInteraction']=_0x5f4093,_0x21b89d[_0x2df477(0xde2)]=_0x2076b6,_0x21b89d[_0x2df477(0x18e)]=_0x261bc9,_0x21b89d['composeFaxInteraction']=_0x5a4bdd,_0x21b89d[_0x2df477(0x13f2)]=_0x259421,_0x21b89d[_0x2df477(0x7d9)]=_0x54934e,_0x21b89d[_0x2df477(0xb92)]=_0x20349e,_0x21b89d[_0x2df477(0x21e4)]=_0x5a2780,_0x21b89d[_0x2df477(0x290c)]=_0x2fbd8f,_0x21b89d[_0x2df477(0xb10)]=_0x508d93,_0x21b89d['createVidaooSession']=_0xd7468d,_0x21b89d['getMailAccounts']=_0xf9e0c0,_0x21b89d[_0x2df477(0x8e2)]=_0x314691,_0x21b89d[_0x2df477(0x856)]=_0x52b43d,_0x21b89d[_0x2df477(0x1758)]=_0x1beb01,_0x21b89d[_0x2df477(0x29c4)]=_0x3d0fd6,_0x21b89d[_0x2df477(0x1cb7)]=_0x5b9820,_0x21b89d[_0x2df477(0x1fa7)]=_0x26b2dd,_0x21b89d[_0x2df477(0x134e)]=_0x43a57d,_0x21b89d[_0x2df477(0x1c97)]=_0x35dcce,_0x21b89d[_0x2df477(0x15c2)]=_0x5e9a20,_0x21b89d[_0x2df477(0x200f)]=_0xd8733f,_0x21b89d[_0x2df477(0x2842)]=_0x321ebc,_0x21b89d['onInteractionSave']=_0xff2b1,_0x21b89d[_0x2df477(0x1190)]=_0x19322c,_0x21b89d[_0x2df477(0x2244)]=_0x4fd955,_0x21b89d[_0x2df477(0x24ab)]=_0xcd0a66,_0x21b89d[_0x2df477(0x879)]=_0x4d2d8d,_0x21b89d['getColorByItem']=_0x7738aa,_0x21b89d[_0x2df477(0x5ae)]=_0x24f757,_0x21b89d[_0x2df477(0x1043)]=![],_0x21b89d['changeDisplayCannedAnswerInputValue']=_0x302c9c,_0x21b89d['setAs']=_0x93f965,_0x21b89d['markAsUnread']=_0x349bc4,_0x21b89d[_0x2df477(0x209e)]=_0x33e4ed,_0x21b89d[_0x2df477(0x27d2)]=_0x2687ae,_0x21b89d[_0x2df477(0x1aa6)]=_0xa1f3b7,_0x21b89d[_0x2df477(0x87e)]=_0xfd4c1e,_0x21b89d[_0x2df477(0x27f4)]=_0x2410ff,_0x21b89d[_0x2df477(0xe4c)]=_0x41c10d,_0x21b89d[_0x2df477(0x1a93)]=_0x43a734,_0x21b89d[_0x2df477(0x1245)]={'scrollEl':_0x2df477(0x645)};function _0x5b9820(){const _0x5bb866=_0x2df477;_0x12162a[_0x5bb866(0xebe)][_0x5bb866(0x1cb7)]({'id':_0x21b89d['user']['id'],'nolimit':!![]})['$promise'][_0x5bb866(0x1cb0)](function(_0x250530){_0x21b89d['chatAccounts']=_0x250530||{'count':0x0,'rows':[]};});}function _0x26b2dd(){const _0x38ffe4=_0x2df477;_0x12162a[_0x38ffe4(0xebe)][_0x38ffe4(0x1fa7)]({'id':_0x21b89d[_0x38ffe4(0xebe)]['id'],'nolimit':!![]})[_0x38ffe4(0x1d77)][_0x38ffe4(0x1cb0)](function(_0x21662c){const _0x52d714=_0x38ffe4;_0x21b89d[_0x52d714(0x2042)]=_0x21662c||{'count':0x0,'rows':[]};});}function _0x3d0fd6(){const _0x240a85=_0x2df477;_0x12162a[_0x240a85(0xebe)][_0x240a85(0x29c4)]({'id':_0x21b89d[_0x240a85(0xebe)]['id'],'nolimit':!![]})[_0x240a85(0x1d77)][_0x240a85(0x1cb0)](function(_0x523f9e){const _0xf9411b=_0x240a85;_0x21b89d[_0xf9411b(0xe5c)]=_0x523f9e||{'count':0x0,'rows':[]};})[_0x240a85(0x1c4)](function(_0x4f7156){const _0x345ae9=_0x240a85;if(_0x4f7156[_0x345ae9(0x25c)]&&_0x4f7156['data'][_0x345ae9(0x1a7c)]&&_0x4f7156['data'][_0x345ae9(0x1a7c)]['length']){_0x21b89d[_0x345ae9(0x1a7c)]=_0x4f7156['data'][_0x345ae9(0x1a7c)]||[{'message':_0x4f7156['toString'](),'type':'api.mail.account'}];for(let _0x534205=0x0;_0x534205<_0x4f7156[_0x345ae9(0x25c)][_0x345ae9(0x1a7c)][_0x345ae9(0xfd0)];_0x534205+=0x1){_0x26e195[_0x345ae9(0x218e)]({'title':_0x4f7156[_0x345ae9(0x25c)][_0x345ae9(0x1a7c)][_0x534205]['type'],'msg':_0x4f7156['data'][_0x345ae9(0x1a7c)][_0x534205][_0x345ae9(0x155e)]});}}else _0x26e195[_0x345ae9(0x218e)]({'title':_0x4f7156[_0x345ae9(0x291)]?_0x345ae9(0xeb9)+_0x4f7156[_0x345ae9(0x291)]+_0x345ae9(0x1657)+_0x4f7156[_0x345ae9(0xc22)]:_0x345ae9(0x2003),'msg':_0x4f7156[_0x345ae9(0x25c)]?JSON[_0x345ae9(0x2701)](_0x4f7156[_0x345ae9(0x25c)][_0x345ae9(0x155e)]):_0x4f7156['toString']()});});}function _0xf9e0c0(){const _0x4c6536=_0x2df477;_0x12162a[_0x4c6536(0xebe)][_0x4c6536(0xe96)]({'id':_0x21b89d['user']['id'],'nolimit':!![]})[_0x4c6536(0x1d77)][_0x4c6536(0x1cb0)](function(_0x525dfc){const _0x2d4c9b=_0x4c6536;_0x21b89d[_0x2d4c9b(0x228e)]=_0x525dfc||{'count':0x0,'rows':[]};});}function _0x314691(){const _0x466e9d=_0x2df477;_0x12162a[_0x466e9d(0xebe)][_0x466e9d(0x8e2)]({'id':_0x21b89d[_0x466e9d(0xebe)]['id'],'nolimit':!![]})[_0x466e9d(0x1d77)][_0x466e9d(0x1cb0)](function(_0x10b61a){_0x21b89d['faxAccounts']=_0x10b61a||{'count':0x0,'rows':[]};});}function _0x52b43d(){const _0x361ca4=_0x2df477;_0x12162a[_0x361ca4(0xebe)][_0x361ca4(0x856)]({'id':_0x21b89d[_0x361ca4(0xebe)]['id'],'nolimit':!![]})[_0x361ca4(0x1d77)][_0x361ca4(0x1cb0)](function(_0x49cad1){const _0x54ea51=_0x361ca4;_0x21b89d[_0x54ea51(0x1ac)]=_0x49cad1||{'count':0x0,'rows':[]};});}function _0x1beb01(){const _0x2f6912=_0x2df477;_0x12162a['user'][_0x2f6912(0x1758)]({'id':_0x21b89d[_0x2f6912(0xebe)]['id'],'nolimit':!![]})[_0x2f6912(0x1d77)][_0x2f6912(0x1cb0)](function(_0x48823a){_0x21b89d['whatsappAccounts']=_0x48823a||{'count':0x0,'rows':[]};});}function _0x43a734(){const _0x3a2f12=_0x2df477,_0x343daa=_0x26b39e['defer']();if(_0x21b89d['queryMessage'])return _0x21b89d[_0x3a2f12(0x17d4)][_0x3a2f12(0x184b)]=_0x21b89d['messages'][_0x3a2f12(0x2214)][_0x3a2f12(0xfd0)],_0x12162a[_0x21b89d[_0x3a2f12(0x291e)][_0x3a2f12(0x1072)]+_0x3a2f12(0x2735)]['getMessages'](_0x21b89d[_0x3a2f12(0x17d4)])[_0x3a2f12(0x1d77)][_0x3a2f12(0x1cb0)](function(_0x46e2dd){const _0x29b0bd=_0x3a2f12;for(let _0x5e43e1=0x0;_0x5e43e1<_0x46e2dd[_0x29b0bd(0x2214)][_0x29b0bd(0xfd0)];_0x5e43e1+=0x1){_0x21b89d[_0x29b0bd(0xab2)][_0x29b0bd(0x2214)][_0x29b0bd(0x2785)](_0x46e2dd[_0x29b0bd(0x2214)][_0x5e43e1]),!_0x21b89d[_0x29b0bd(0x10e4)][_0x29b0bd(0x22aa)]&&_0x46e2dd[_0x29b0bd(0x2214)][_0x5e43e1][_0x29b0bd(0x979)]==='in'&&!_0x46e2dd['rows'][_0x5e43e1][_0x29b0bd(0xfc1)]&&(_0x12162a[_0x21b89d['tab'][_0x29b0bd(0x1072)]+_0x29b0bd(0x27df)]['accept']({'id':_0x46e2dd['rows'][_0x5e43e1]['id'],'UserId':_0x21b89d['user']['id']}),_0x21b89d[_0x29b0bd(0x394)]['push'](_0x46e2dd['rows'][_0x5e43e1]['id']));}return _0x343daa[_0x29b0bd(0x19a3)](_0x46e2dd);})[_0x3a2f12(0x1c4)](function(_0x1920e7){const _0x46a747=_0x3a2f12;return _0x343daa[_0x46a747(0x988)](_0x1920e7);});return _0x343daa['reject']();}function _0x25e578(_0x5ba29e,_0x2b9268){const _0x1055fc=_0x2df477;_0x21b89d['tab']=_0x5ba29e,_0x21b89d['tab']['saved']=!![],_0x21b89d['tab'][_0x1055fc(0xd2c)]=0x0,_0x21b89d[_0x1055fc(0x9ca)]=_0x2b9268||{},_0x21b89d[_0x1055fc(0x291e)]&&_0x21b89d[_0x1055fc(0x291e)][_0x1055fc(0x1072)]&&_0x21b89d[_0x1055fc(0x291e)]['interaction']&&(_0x21b89d['interaction']=_0x21b89d['tab'][_0x1055fc(0x10e4)],_0x12162a[_0x21b89d[_0x1055fc(0x291e)][_0x1055fc(0x1072)]+_0x1055fc(0x2735)][_0x1055fc(0xbf7)]({'id':_0x21b89d[_0x1055fc(0x291e)]['interaction']['id'],'includeAll':!![]})[_0x1055fc(0x1d77)][_0x1055fc(0x1cb0)](function(_0x4f9910){const _0x4f6b65=_0x1055fc;return _0x4f9910&&(_0x21b89d[_0x4f6b65(0x10e4)]=_0x4f9910,_0x21b89d[_0x4f6b65(0x291e)][_0x4f6b65(0x10e4)]=_0x4f9910),_0x21b89d[_0x4f6b65(0x291e)][_0x4f6b65(0x167f)]=_0x21b89d[_0x4f6b65(0x10e4)][_0x4f6b65(0x22aa)],_0x21b89d[_0x4f6b65(0x17d4)]={'id':_0x21b89d[_0x4f6b65(0x10e4)]['id'],'includeAll':!![]},_0x21b89d[_0x4f6b65(0x291e)][_0x4f6b65(0x1072)]==='mail'?(_0x21b89d[_0x4f6b65(0x17d4)]['sort']=_0x4f6b65(0x7d0),_0x21b89d['queryMessage'][_0x4f6b65(0x184b)]=0x0,_0x21b89d[_0x4f6b65(0x17d4)][_0x4f6b65(0x236)]=0x3):(_0x21b89d['queryMessage'][_0x4f6b65(0x1381)]='id',_0x21b89d[_0x4f6b65(0x17d4)][_0x4f6b65(0x2282)]=!![]),_0x12162a[_0x21b89d[_0x4f6b65(0x291e)][_0x4f6b65(0x1072)]+_0x4f6b65(0x2735)][_0x4f6b65(0x10d6)](_0x21b89d['queryMessage'])[_0x4f6b65(0x1d77)];})[_0x1055fc(0x1cb0)](function(_0x42a0f9){const _0x520a30=_0x1055fc;return _0x21b89d['messages']=_0x42a0f9||{'count':0x0,'rows':[]},_0x12162a[_0x21b89d[_0x520a30(0x291e)][_0x520a30(0x1072)]===_0x520a30(0x174c)?_0x520a30(0x226c):_0x21b89d[_0x520a30(0x291e)]['channel']+'Account']['get']({'id':_0x21b89d[_0x520a30(0x10e4)][_0x21b89d[_0x520a30(0x291e)][_0x520a30(0x1072)]===_0x520a30(0x174c)?_0x520a30(0x67c):_0x39641b()[_0x520a30(0x432)](_0x21b89d[_0x520a30(0x291e)][_0x520a30(0x1072)])+'AccountId']})[_0x520a30(0x1d77)];})[_0x1055fc(0x1cb0)](function(_0x301875){const _0x2067ae=_0x1055fc;_0x21b89d[_0x2067ae(0x1539)]=_0x301875,_0x21b89d[_0x2067ae(0x291e)]['title']=_0x21b89d[_0x2067ae(0x1539)]['key']||_0x21b89d[_0x2067ae(0x1539)][_0x2067ae(0x16b6)];if(_0x21b89d[_0x2067ae(0x10e4)][_0x2067ae(0xb96)])return _0x12162a[_0x2067ae(0xbe7)][_0x2067ae(0xbf7)]({'id':_0x21b89d[_0x2067ae(0x10e4)]['ContactId']})[_0x2067ae(0x1d77)];})[_0x1055fc(0x1cb0)](function(_0x260af9){const _0x2b1ef5=_0x1055fc;return _0x260af9&&(_0x21b89d['contact']=_0x260af9),_0x21b89d[_0x2b1ef5(0x12d7)]=!![],_0x21b89d[_0x2b1ef5(0x8b1)]?(_0x2e45bd(_0x21b89d[_0x2b1ef5(0x8b1)]),_0x21b89d[_0x2b1ef5(0x291e)][_0x2b1ef5(0x1386)]+=_0x2b1ef5(0x1657)+_0x21b89d['contact'][_0x2b1ef5(0x1491)]):_0x21b89d[_0x2b1ef5(0x291e)][_0x2b1ef5(0x1386)]+=_0x2b1ef5(0x1657)+_0xff3f48[_0x2b1ef5(0x25cc)](_0x21b89d[_0x2b1ef5(0x291e)][_0x2b1ef5(0x1072)]['toUpperCase']()+_0x2b1ef5(0x1ba0)),_0x12162a[_0x2b1ef5(0xebe)][_0x2b1ef5(0xbf7)]({'fields':_0x2b1ef5(0x1cc4),'nolimit':!![]})[_0x2b1ef5(0x1d77)];})[_0x1055fc(0x1cb0)](function(_0x591d41){const _0x483e87=_0x1055fc;_0x21b89d['users']=_0x591d41||{'count':0x0,'rows':[]},_0x21b89d['usersMap']=_0x39641b()[_0x483e87(0x1db)](_0x39641b()[_0x483e87(0x2631)](_0x21b89d[_0x483e87(0x1e30)][_0x483e87(0x2214)],'id'),_0x483e87(0x1d14));})[_0x1055fc(0x1cb0)](function(){const _0x45f806=_0x1055fc;if(_0x21b89d[_0x45f806(0x291e)][_0x45f806(0x1072)]&&_0x21b89d[_0x45f806(0x10e4)])return _0x12162a[_0x45f806(0xebe)][_0x45f806(0x17a1)+_0x39641b()[_0x45f806(0x277)](_0x21b89d[_0x45f806(0x291e)][_0x45f806(0x1072)])+_0x45f806(0xd9a)]({'id':_0x21b89d[_0x45f806(0xebe)]['id'],'ids':[_0x21b89d[_0x45f806(0x10e4)]['id']]});})[_0x1055fc(0x1cb0)](function(){const _0x3cc295=_0x1055fc;return _0x12162a[_0x3cc295(0xdbe)][_0x3cc295(0xbf7)]({'sort':_0x3cc295(0x16b6),'nolimit':!![]})[_0x3cc295(0x1d77)];})[_0x1055fc(0x1cb0)](function(_0x3f1b50){const _0x2ec8bb=_0x1055fc;_0x21b89d[_0x2ec8bb(0x16a)]=_0x3f1b50||{'count':0x0,'rows':[]};})['then'](function(){const _0x109ef0=_0x1055fc;return _0x21b89d[_0x109ef0(0xe96)]();})[_0x1055fc(0x1cb0)](function(){const _0x4b4ab8=_0x1055fc;return _0x21b89d[_0x4b4ab8(0x8e2)]();})[_0x1055fc(0x1cb0)](function(){const _0x5a6062=_0x1055fc;return _0x21b89d[_0x5a6062(0x856)]();})['then'](function(){return _0x21b89d['getWhatsappAccounts']();})[_0x1055fc(0x1cb0)](function(){const _0x1840ba=_0x1055fc;return _0x21b89d[_0x1840ba(0x29c4)]();})['then'](function(){const _0x36703c=_0x1055fc;return _0x21b89d[_0x36703c(0x1cb7)]();})['then'](function(){const _0x3e8a3b=_0x1055fc;return _0x21b89d[_0x3e8a3b(0x1fa7)]();})[_0x1055fc(0x1c4)](function(){const _0x11c73e=_0x1055fc;_0x21b89d[_0x11c73e(0x12d7)]=!![];})[_0x1055fc(0x2e0)](function(){const _0x389d3a=_0x1055fc;_0x3603a5(),_0x433b24(),_0x125029['on'](_0x21b89d[_0x389d3a(0x291e)][_0x389d3a(0x1072)]+_0x389d3a(0x2937),_0x21b89d[_0x389d3a(0x2842)]),_0x125029['on'](_0x21b89d[_0x389d3a(0x291e)][_0x389d3a(0x1072)]+'Message:update',_0x21b89d[_0x389d3a(0x2842)]),_0x125029['on'](_0x21b89d['tab'][_0x389d3a(0x1072)]+_0x389d3a(0x1842),_0x21b89d[_0x389d3a(0xbda)]),_0x125029['on'](_0x21b89d['tab'][_0x389d3a(0x1072)]+'Interaction:update',_0x21b89d['onInteractionSave']),_0x125029['on'](_0x389d3a(0x28ed)+_0x21b89d['tab']['channel']+_0x389d3a(0x1d9d),_0x21b89d[_0x389d3a(0x27f4)]),_0x125029['on'](_0x389d3a(0x28ed)+_0x21b89d[_0x389d3a(0x291e)][_0x389d3a(0x1072)]+_0x389d3a(0x1ef7),_0x21b89d['onInteractionClose']),_0x21b89d[_0x389d3a(0x291e)]['areaText']=_0x21b89d[_0x389d3a(0x291e)][_0x389d3a(0x2131)]?_0x21b89d[_0x389d3a(0x291e)][_0x389d3a(0x2131)]:'',_0x21b89d['showFooter']=!![],_0x21b89d[_0x389d3a(0x291e)][_0x389d3a(0x1072)]===_0x389d3a(0x2651)&&(_0x21b89d['draft']=_0x99560[_0x389d3a(0x8b7)](_0x21b89d[_0x389d3a(0x291e)]['interaction']['id']),_0x21b89d[_0x389d3a(0x291e)][_0x389d3a(0xd34)]&&(_0x21b89d[_0x389d3a(0x291e)][_0x389d3a(0x10e4)]['closed']?(_0x99560['removeByInteraction'](_0x21b89d[_0x389d3a(0x291e)][_0x389d3a(0x10e4)]['id']),_0x21b89d[_0x389d3a(0x1440)]=null):_0x508d93()));}));}function _0x33e4ed(_0xd12686){const _0x2a7811=_0x2df477;if(_0xd12686['FaxAccountId'])return _0x39641b()[_0x2a7811(0x250a)](_0x39641b()['map'](_0x21b89d[_0x2a7811(0x29de)]?_0x21b89d['faxAccounts'][_0x2a7811(0x2214)]:[],'id'),_0xd12686[_0x2a7811(0x18e9)]);else{if(_0xd12686['OpenchannelAccountId'])return _0x39641b()[_0x2a7811(0x250a)](_0x39641b()[_0x2a7811(0x1de2)](_0x21b89d[_0x2a7811(0xe5c)]?_0x21b89d[_0x2a7811(0xe5c)][_0x2a7811(0x2214)]:[],'id'),_0xd12686[_0x2a7811(0x1d1e)]);else{if(_0xd12686[_0x2a7811(0x1a2)])return _0x39641b()[_0x2a7811(0x250a)](_0x39641b()['map'](_0x21b89d[_0x2a7811(0x1ac)]?_0x21b89d[_0x2a7811(0x1ac)][_0x2a7811(0x2214)]:[],'id'),_0xd12686[_0x2a7811(0x1a2)]);else{if(_0xd12686['WhatsappAccountId'])return _0x39641b()[_0x2a7811(0x250a)](_0x39641b()[_0x2a7811(0x1de2)](_0x21b89d[_0x2a7811(0xbb3)]?_0x21b89d[_0x2a7811(0xbb3)]['rows']:[],'id'),_0xd12686['WhatsappAccountId']);else{if(_0xd12686[_0x2a7811(0x1285)])return _0x39641b()[_0x2a7811(0x250a)](_0x39641b()['map'](_0x21b89d['mailAccounts']?_0x21b89d[_0x2a7811(0x228e)][_0x2a7811(0x2214)]:[],'id'),_0xd12686[_0x2a7811(0x1285)]);else{if(_0xd12686[_0x2a7811(0x67c)])return _0x39641b()[_0x2a7811(0x250a)](_0x39641b()[_0x2a7811(0x1de2)](_0x21b89d[_0x2a7811(0x1ad1)]?_0x21b89d[_0x2a7811(0x1ad1)][_0x2a7811(0x2214)]:[],'id'),_0xd12686[_0x2a7811(0x67c)]);else{if(_0xd12686[_0x2a7811(0x1451)])return!![];}}}}}}return![];}function _0x2410ff(_0x1be78e){const _0x24328e=_0x2df477;let _0x54ec4b;_0x21b89d[_0x24328e(0x10e4)]['id']==_0x1be78e[_0x39641b()['upperFirst'](_0x21b89d[_0x24328e(0x291e)][_0x24328e(0x1072)])+_0x24328e(0x9e2)]&&(_0x21b89d[_0x24328e(0x10e4)][_0x24328e(0x2653)]&&(_0x54ec4b=_0x39641b()[_0x24328e(0x13b4)](_0x21b89d['interaction']['Users'],{'id':_0x1be78e[_0x24328e(0x21ab)]})),!_0x54ec4b&&_0x21b89d['interaction'][_0x24328e(0x2653)][_0x24328e(0x2785)]({'id':_0x1be78e[_0x24328e(0x21ab)]}));}function _0x41c10d(_0x1d26b0){const _0x12520a=_0x2df477;_0x21b89d[_0x12520a(0x10e4)]['id']==_0x1d26b0[_0x39641b()[_0x12520a(0x277)](_0x21b89d[_0x12520a(0x291e)][_0x12520a(0x1072)])+_0x12520a(0x9e2)]&&(_0x21b89d[_0x12520a(0x10e4)][_0x12520a(0x2653)]&&_0x39641b()[_0x12520a(0x152a)](_0x21b89d[_0x12520a(0x10e4)][_0x12520a(0x2653)],{'id':_0x1d26b0[_0x12520a(0x21ab)]}));}function _0x4fd955(_0x24ebd7){const _0x588233=_0x2df477;if(_0x24ebd7){try{_0x39641b()[_0x588233(0xc7f)][_0x588233(0xe08)]=/{{([\s\S]+?)}}/g;const _0x358aca=_0x39641b()[_0x588233(0x2330)](_0x24ebd7[_0x588233(0x327)]),_0x252b06={'user':_0x21b89d[_0x588233(0xebe)],'account':_0x21b89d['account'],'interaction':_0x21b89d[_0x588233(0x10e4)],'contact':_0x21b89d[_0x588233(0x10e4)]&&_0x21b89d[_0x588233(0x10e4)]['Contact']?_0x21b89d['interaction'][_0x588233(0x8d3)]:{}};_0x21b89d[_0x588233(0x291e)]['areaText']+='\x20'+_0x358aca(_0x252b06),_0x21b89d[_0x588233(0x7df)]['setText'](_0x21b89d[_0x588233(0x291e)][_0x588233(0x2131)]);}catch(_0x342ebc){_0x21b89d[_0x588233(0x291e)][_0x588233(0x2131)]+='\x20'+_0x24ebd7[_0x588233(0x327)],_0x21b89d[_0x588233(0x7df)][_0x588233(0x1e34)](_0x21b89d['tab'][_0x588233(0x2131)]);}_0x21b89d['selectedItem']=null,_0x21b89d['changeDisplayCannedAnswerInputValue']();}}function _0x19322c(_0xf0b1ce){const _0x28d44d=_0x2df477,_0x403e84=_0x26b39e[_0x28d44d(0x11f4)]();let _0x122e97=[];const _0x7a93ee={},_0x2f4e24=_0x21b89d[_0x28d44d(0x291e)]['channel']===_0x28d44d(0x174c)?_0x28d44d(0x67c):_0x39641b()[_0x28d44d(0x432)](_0x21b89d[_0x28d44d(0x291e)][_0x28d44d(0x1072)])+'AccountId';return _0x7a93ee[_0x28d44d(0x1c99)]=_0xf0b1ce,_0x7a93ee[_0x2f4e24]=_0x21b89d[_0x28d44d(0x1539)]['id'],_0x12162a[_0x28d44d(0x1c25)][_0x28d44d(0xbf7)](_0x7a93ee)[_0x28d44d(0x1d77)]['then'](function(_0x489e40){const _0x39bd9b=_0x28d44d;return _0x122e97=_0x39641b()[_0x39bd9b(0x298a)](_0x122e97,_0x489e40[_0x39bd9b(0x2214)]),_0x12162a[_0x39bd9b(0x1c25)][_0x39bd9b(0xbf7)]({'filter':_0xf0b1ce})['$promise'];})[_0x28d44d(0x1cb0)](function(_0x1ae5a4){const _0x123391=_0x28d44d;_0x122e97=_0x39641b()['concat'](_0x122e97,_0x39641b()[_0x123391(0x1c99)](_0x1ae5a4[_0x123391(0x2214)],function(_0x5535f4){const _0x522beb=_0x123391;return!_0x5535f4[_0x522beb(0x1285)]&&!_0x5535f4['FaxAccountId']&&!_0x5535f4[_0x522beb(0x1a2)]&&!_0x5535f4[_0x522beb(0xfc8)]&&!_0x5535f4[_0x522beb(0x1d1e)]&&!_0x5535f4[_0x522beb(0x67c)];})),_0x403e84[_0x123391(0x19a3)](_0x122e97);})[_0x28d44d(0x1c4)](function(_0x5d7d74){const _0x583f64=_0x28d44d;_0x403e84[_0x583f64(0x988)](_0x5d7d74);}),_0x403e84[_0x28d44d(0x2061)];}function _0x5580c8(_0x1aefed,_0x5f4174){const _0x274794=_0x2df477;try{_0x21b89d[_0x274794(0x291e)]&&!_0x21b89d['tab']['spy']&&_0x573418[_0x274794(0x17bc)][_0x274794(0x17bc)][_0x274794(0x17bc)]['vm']['addContactTab'](_0x5f4174||_0x21b89d[_0x274794(0x8b1)]);}catch(_0x3ce6ac){_0x26e195[_0x274794(0x218e)]({'title':_0x274794(0x41e),'msg':_0x274794(0x24e8)});}}function _0x1f9b7f(_0x11ba64,_0x3e72eb){const _0x54016d=_0x2df477;try{if(_0x3e72eb[_0x54016d(0x1285)])return _0x573418[_0x54016d(0x17bc)][_0x54016d(0x17bc)][_0x54016d(0x17bc)]['vm'][_0x54016d(0x11d9)](_0x54016d(0x2651),_0x3e72eb);else{if(_0x3e72eb[_0x54016d(0x67c)])return _0x573418[_0x54016d(0x17bc)][_0x54016d(0x17bc)][_0x54016d(0x17bc)]['vm'][_0x54016d(0x11d9)](_0x54016d(0x174c),_0x3e72eb);else{if(_0x3e72eb[_0x54016d(0x1a2)])return _0x573418[_0x54016d(0x17bc)][_0x54016d(0x17bc)]['$parent']['vm'][_0x54016d(0x11d9)](_0x54016d(0x689),_0x3e72eb);else{if(_0x3e72eb[_0x54016d(0xfc8)])return _0x573418['$parent'][_0x54016d(0x17bc)]['$parent']['vm'][_0x54016d(0x11d9)](_0x54016d(0x2476),_0x3e72eb);else{if(_0x3e72eb[_0x54016d(0x1d1e)])return _0x573418['$parent'][_0x54016d(0x17bc)][_0x54016d(0x17bc)]['vm'][_0x54016d(0x11d9)](_0x54016d(0x15e0),_0x3e72eb);else{if(_0x3e72eb[_0x54016d(0x18e9)])return _0x573418['$parent'][_0x54016d(0x17bc)]['$parent']['vm'][_0x54016d(0x11d9)](_0x54016d(0x1944),_0x3e72eb);}}}}}}catch(_0x5d5194){_0x26e195[_0x54016d(0x218e)]({'title':_0x54016d(0x1fd1),'msg':_0x54016d(0x1d4b)});}}function _0x2076b6(){const _0x14f56b=_0x2df477;_0x259122[_0x14f56b(0xe27)]({'controller':_0x14f56b(0x1726),'controllerAs':'vm','templateUrl':_0x387b31,'parent':angular[_0x14f56b(0x1853)](_0x5f2a3a[_0x14f56b(0x1ed9)]),'clickOutsideToClose':!![],'skipHide':Boolean(_0x21b89d[_0x14f56b(0x291e)][_0x14f56b(0x1e1e)]),'resolve':{'tags':[_0x14f56b(0x1e0b),function(_0x45efa5){const _0x39356b=_0x14f56b;return _0x45efa5['resolve'](_0x39356b(0x1f1),{'sort':_0x39356b(0x16b6),'nolimit':!![],'fields':_0x39356b(0x1352)});}]},'locals':{'channel':_0x21b89d[_0x14f56b(0x291e)][_0x14f56b(0x1072)],'interaction':_0x21b89d[_0x14f56b(0x291e)][_0x14f56b(0x10e4)]}});}function _0x5f4093(){const _0x3794b3=_0x2df477,_0x2e2e05=_0x21b89d[_0x3794b3(0xebe)][_0x3794b3(0x2478)]||_0x21b89d['user']['chatPause']||_0x21b89d['user'][_0x3794b3(0x2035)]||_0x21b89d[_0x3794b3(0xebe)]['openchannelPause']||_0x21b89d[_0x3794b3(0xebe)][_0x3794b3(0x1ce)],_0x103485=!_0x21b89d[_0x3794b3(0x291e)]['interaction'][_0x3794b3(0x1649)][_0x3794b3(0x1935)];_0x259122[_0x3794b3(0xe27)]({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x3769c1,'parent':angular[_0x3794b3(0x1853)](_0x5f2a3a[_0x3794b3(0x1ed9)]),'clickOutsideToClose':_0x103485,'escapeToClose':_0x103485,'onRemoving':function(){const _0x3c029f=_0x3794b3;_0x21b89d[_0x3c029f(0xebe)]&&_0x21b89d[_0x3c029f(0x10e4)][_0x3c029f(0x1649)][_0x3c029f(0x1935)]&&!_0x2e2e05&&_0x12162a[_0x3c029f(0xebe)][_0x3c029f(0xf5d)]({'id':_0x21b89d[_0x3c029f(0xebe)]['id']})['$promise'][_0x3c029f(0x1c4)](function(_0x3599cb){const _0x47d418=_0x3c029f;console[_0x47d418(0x218e)](_0x3599cb);});},'locals':{'user':_0x21b89d[_0x3794b3(0xebe)],'channel':_0x21b89d[_0x3794b3(0x291e)][_0x3794b3(0x1072)],'interaction':_0x21b89d['tab'][_0x3794b3(0x10e4)]}})[_0x3794b3(0x1cb0)](function(_0x29923c){const _0x188904=_0x3794b3;_0x21b89d[_0x188904(0x291e)][_0x188904(0x167f)]=Boolean(_0x29923c),_0x29923c&&_0x573418['$parent'][_0x188904(0x17bc)][_0x188904(0x17bc)]['vm']['closeTab'](_0x21b89d[_0x188904(0x291e)]);});}function _0x212d0c(_0x13f46f,_0x3c0873){const _0xbf0380=_0x2df477;_0x21b89d[_0xbf0380(0x291e)][_0xbf0380(0x155e)]=_0x3c0873,_0x259122[_0xbf0380(0xe27)]({'controller':_0xbf0380(0x2f9),'controllerAs':'vm','templateUrl':_0x1c8a4d,'parent':angular[_0xbf0380(0x1853)](_0x5f2a3a['body']),'clickOutsideToClose':![],'locals':{'account':_0x21b89d[_0xbf0380(0x1539)],'message':_0x21b89d['tab'][_0xbf0380(0x155e)],'type':_0x13f46f,'interaction':_0x21b89d[_0xbf0380(0x10e4)]},'fullscreen':!![],'skipHide':Boolean(_0x21b89d['tab'][_0xbf0380(0x1e1e)])})[_0xbf0380(0x1cb0)](function(_0xec9114){const _0x13cf6d=_0xbf0380;if(_0xec9114){if(_0xec9114['message']&&_0xec9114[_0x13cf6d(0x155e)][_0x13cf6d(0x275)])_0x21b89d['draft']?_0x99560['update']({'id':_0x21b89d[_0x13cf6d(0x1440)]['id'],'channel':_0x13cf6d(0x2651),'account':_0x21b89d[_0x13cf6d(0x1539)],'message':_0xec9114['message'],'contact':_0x21b89d[_0x13cf6d(0x8b1)],'interaction':_0x21b89d['interaction']}):_0x99560[_0x13cf6d(0x17a1)]({'channel':_0x13cf6d(0x2651),'account':_0x21b89d['account'],'message':_0xec9114[_0x13cf6d(0x155e)],'contact':_0x21b89d[_0x13cf6d(0x8b1)],'interaction':_0x21b89d[_0x13cf6d(0x10e4)]}),_0x21b89d[_0x13cf6d(0x1440)]=_0x99560[_0x13cf6d(0x8b7)](_0x21b89d[_0x13cf6d(0x291e)][_0x13cf6d(0x10e4)]['id']);else{const _0x3f08f0=_0xec9114;_0x3f08f0&&_0x2f5afd(_0x3f08f0),_0x3f08f0[_0x13cf6d(0x2735)]&&_0x21b89d['interaction']&&_0x21b89d[_0x13cf6d(0x10e4)]['id']&&(_0x3f08f0['Interaction']['id']=_0x21b89d[_0x13cf6d(0x10e4)]['id'],_0x12162a[_0x13cf6d(0x8e9)]['update'](_0x3f08f0[_0x13cf6d(0x2735)])['$promise'][_0x13cf6d(0x1cb0)](function(_0x280b49){const _0x17fcb9=_0x13cf6d;if(_0x280b49&&_0x280b49[_0x17fcb9(0x22aa)])_0x21b89d[_0x17fcb9(0x291e)]['saved']=!![],_0x21b89d['interaction']['closed']=!![],_0x5f4093();else _0x3f08f0[_0x17fcb9(0x2735)][_0x17fcb9(0x20ed)]!==null&&(_0x21b89d[_0x17fcb9(0x291e)]['saved']=!![],_0x21b89d[_0x17fcb9(0x291e)][_0x17fcb9(0x10e4)][_0x17fcb9(0x20ed)]=_0x3f08f0[_0x17fcb9(0x2735)][_0x17fcb9(0x20ed)],_0x573418[_0x17fcb9(0x17bc)][_0x17fcb9(0x17bc)][_0x17fcb9(0x17bc)]['vm']['closeTab'](_0x21b89d['tab']));})[_0x13cf6d(0x1c4)](function(_0x5f3af3){const _0x282bd7=_0x13cf6d;console[_0x282bd7(0x218e)](_0x5f3af3);}));}}})[_0xbf0380(0x2e0)](function(){const _0x4d1096=_0xbf0380;_0x21b89d[_0x4d1096(0x291e)][_0x4d1096(0xd34)]=![];});}function _0x261bc9(_0x52f93f,_0x59cd24){const _0x6ef754=_0x2df477;if(_0x59cd24[_0x6ef754(0x26da)]){const _0x19cd11=_0x39641b()[_0x6ef754(0x13b4)](_0x21b89d['messages'][_0x6ef754(0x2214)],{'messageId':_0x59cd24[_0x6ef754(0x26da)]});if(_0x19cd11)_0x212d0c(_0x52f93f,_0x19cd11);else return _0x12162a[_0x6ef754(0x17aa)][_0x6ef754(0xbf7)]({'messageId':_0x59cd24[_0x6ef754(0x26da)]})['$promise'][_0x6ef754(0x1cb0)](function(_0x2b6502){const _0x3719dc=_0x6ef754;_0x212d0c(_0x52f93f,_0x2b6502&&_0x2b6502[_0x3719dc(0x184d)]?_0x2b6502[_0x3719dc(0x2214)][0x0]:undefined);})['catch'](function(_0x3e15f9){const _0x28df0c=_0x6ef754;console[_0x28df0c(0x218e)](_0x3e15f9),_0x212d0c(_0x52f93f,undefined);});}else _0x212d0c(_0x52f93f,_0x59cd24);}function _0x5a4bdd(_0x4afff0){const _0xd54d06=_0x2df477,_0x3e648f={'to':[]};_0x3e648f['to'][_0xd54d06(0x2785)](_0x21b89d['contact'][_0xd54d06(0x1944)]),_0x259122['show']({'controller':_0xd54d06(0x1e49),'controllerAs':'vm','templateUrl':_0x993bbb,'parent':angular[_0xd54d06(0x1853)](_0x5f2a3a[_0xd54d06(0x1ed9)]),'clickOutsideToClose':![],'locals':{'account':_0x21b89d[_0xd54d06(0x1539)],'message':_0x3e648f,'type':_0x4afff0},'fullscreen':!![]})['then'](function(_0x5e5a56){const _0x5e5ecd=_0xd54d06;return _0x12162a[_0x5e5ecd(0xb91)][_0x5e5ecd(0x199f)]({'id':_0x21b89d['account']['id']},_0x5e5a56)[_0x5e5ecd(0x1d77)]['then'](function(_0x4b0924){const _0x3e6867=_0x5e5ecd;_0x26e195[_0x3e6867(0x829)]({'title':_0x3e6867(0x113d),'msg':_0x3e6867(0x71e)}),_0x573418[_0x3e6867(0x17bc)]['vm'][_0x3e6867(0x11d9)](_0x3e6867(0x1944),_0x4b0924);})[_0x5e5ecd(0x1c4)](function(_0x214d95){const _0x1d75c5=_0x5e5ecd;if(_0x214d95['data']&&_0x214d95[_0x1d75c5(0x25c)]['errors']&&_0x214d95[_0x1d75c5(0x25c)][_0x1d75c5(0x1a7c)][_0x1d75c5(0xfd0)])for(let _0x3415ae=0x0;_0x3415ae<_0x214d95[_0x1d75c5(0x25c)]['errors'][_0x1d75c5(0xfd0)];_0x3415ae++){_0x26e195[_0x1d75c5(0x218e)]({'title':_0x214d95[_0x1d75c5(0x25c)][_0x1d75c5(0x1a7c)][_0x3415ae][_0x1d75c5(0x66a)],'msg':_0x214d95[_0x1d75c5(0x25c)][_0x1d75c5(0x1a7c)][_0x3415ae]['message']});}else _0x26e195[_0x1d75c5(0x218e)]({'title':_0x1d75c5(0x23d7),'msg':_0x214d95[_0x1d75c5(0x25c)]?JSON[_0x1d75c5(0x2701)](_0x214d95['data']):_0x214d95[_0x1d75c5(0x155e)]||_0x214d95[_0x1d75c5(0x147f)]()});});});}function _0x259421(_0x2de12d,_0x2d475c){const _0x50b210=_0x2df477;_0x259122[_0x50b210(0xe27)]({'controller':'ComposeSmsInteractionDialogController','controllerAs':'vm','templateUrl':_0x11d871,'parent':angular[_0x50b210(0x1853)](_0x5f2a3a[_0x50b210(0x1ed9)]),'clickOutsideToClose':![],'locals':{'account':_0x21b89d[_0x50b210(0x1539)],'message':_0x2d475c,'type':_0x2de12d},'fullscreen':!![],'skipHide':Boolean(_0x21b89d[_0x50b210(0x291e)][_0x50b210(0x1e1e)])})[_0x50b210(0x1cb0)](function(_0x543369){_0x543369&&_0x2f5afd(_0x543369);});}function _0x54934e(_0x7ecebf,_0x2c4828){const _0xd811bd=_0x2df477;_0x259122[_0xd811bd(0xe27)]({'controller':_0xd811bd(0xc53),'controllerAs':'vm','templateUrl':_0x2dd24c,'parent':angular[_0xd811bd(0x1853)](_0x5f2a3a[_0xd811bd(0x1ed9)]),'clickOutsideToClose':![],'locals':{'account':_0x21b89d[_0xd811bd(0x1539)],'message':_0x2c4828,'type':_0x7ecebf},'fullscreen':!![],'skipHide':Boolean(_0x21b89d[_0xd811bd(0x291e)][_0xd811bd(0x1e1e)])})[_0xd811bd(0x1cb0)](function(_0x257b7c){_0x257b7c&&_0x2f5afd(_0x257b7c);});}function _0x20349e(){const _0x24839e=_0x2df477;if(_0x21b89d[_0x24839e(0x10e4)]){const _0x16a4dc=_0x39641b()[_0x24839e(0x235b)](_0x21b89d[_0x24839e(0xab2)][_0x24839e(0x2214)],function(_0xcb0b51){const _0x485eef=_0x24839e;return _0xcb0b51[_0x485eef(0x979)]==='in';});_0x16a4dc?_0x259122[_0x24839e(0xe27)]({'controller':_0x24839e(0xae8),'controllerAs':'vm','templateUrl':_0x16aba3,'parent':angular[_0x24839e(0x1853)](_0x5f2a3a[_0x24839e(0x1ed9)]),'clickOutsideToClose':![],'locals':{'account':_0x21b89d[_0x24839e(0x1539)],'interaction':_0x21b89d[_0x24839e(0x10e4)],'message':_0x16a4dc,'channel':_0x21b89d[_0x24839e(0x291e)]['channel']}})[_0x24839e(0x1cb0)](function(_0xf93063){const _0xfa7632=_0x24839e;_0x21b89d[_0xfa7632(0x291e)]['saved']=Boolean(_0xf93063),_0xf93063&&_0x573418[_0xfa7632(0x17bc)][_0xfa7632(0x17bc)][_0xfa7632(0x17bc)]['vm']['closeTab'](_0x21b89d[_0xfa7632(0x291e)]);}):_0x26e195[_0x24839e(0x218e)]({'title':_0x24839e(0x2216),'msg':_0x24839e(0x20d8)});}}function _0x43d370(_0x23ac7e){const _0x1d74ac=_0x2df477,_0x2ee6ee={},_0x18b0db=_0x21b89d[_0x1d74ac(0x291e)][_0x1d74ac(0x1072)]===_0x1d74ac(0x174c)?'ChatWebsiteId':_0x39641b()[_0x1d74ac(0x432)](_0x21b89d['tab'][_0x1d74ac(0x1072)])+_0x1d74ac(0xbff);return _0x2ee6ee[_0x18b0db]=_0x21b89d[_0x1d74ac(0x10e4)][_0x18b0db][_0x1d74ac(0x147f)](),_0x2ee6ee[_0x39641b()[_0x1d74ac(0x432)](_0x21b89d[_0x1d74ac(0x291e)][_0x1d74ac(0x1072)])+'InteractionId']=_0x21b89d[_0x1d74ac(0x10e4)]['id'],(_0x21b89d['tab'][_0x1d74ac(0x1072)]==='sms'||_0x21b89d[_0x1d74ac(0x291e)]['channel']===_0x1d74ac(0x2476))&&(_0x2ee6ee[_0x1d74ac(0x1340)]=_0x21b89d[_0x1d74ac(0x10e4)]['phone']),_0x23ac7e&&(_0x2ee6ee[_0x1d74ac(0x21ab)]=_0x21b89d[_0x1d74ac(0xebe)]['id'],_0x2ee6ee[_0x1d74ac(0xb96)]=_0x21b89d[_0x1d74ac(0x10e4)][_0x1d74ac(0xb96)],_0x2ee6ee['body']=_0x23ac7e),_0x2ee6ee;}function _0x5e9a20(_0x376ef6){const _0x78e668=_0x2df477;if(_0x376ef6[_0x78e668(0x1813)]>_0x28f096)return _0x26e195[_0x78e668(0x218e)]({'title':_0x78e668(0x2749),'msg':_0x78e668(0xe61)+_0x4f9506+'MB'}),![];return!![];}function _0xd8733f(_0xc3b449,_0x22ff35){const _0x72580=_0x2df477,_0x4ff0f4=JSON[_0x72580(0xefe)](_0x22ff35);let _0x5261c2=_0x4ff0f4[_0x72580(0x16b6)];_0x21b89d[_0x72580(0x291e)]['channel']===_0x72580(0x174c)&&(_0x5261c2=_0x72580(0x1fc)+(_0x21b89d[_0x72580(0x1539)][_0x72580(0x115f)]?_0x21b89d[_0x72580(0x1539)][_0x72580(0x115f)]:_0x3453f7[_0x72580(0x2276)]()+'://'+_0x3453f7['host']())+_0x72580(0x28b5)+_0x21b89d[_0x72580(0x10e4)]['id']+'/attachment_download?attachId='+_0x4ff0f4['id']+_0x72580(0x4f5)+_0x21b89d[_0x72580(0x1539)][_0x72580(0xae3)]+_0x72580(0x8eb)+_0x4ff0f4[_0x72580(0x16b6)]+''),_0x2f5afd({'body':_0x5261c2,'AttachmentId':_0x4ff0f4['id']});}function _0x35dcce(){const _0x1d7e6b=_0x2df477;_0x21b89d['ngFlow'][_0x1d7e6b(0xacf)][_0x1d7e6b(0xd56)][_0x1d7e6b(0x5e7)]={'X-Requested-With':_0x1d7e6b(0x2711),'Authorization':_0x1d7e6b(0x1923)+_0x301b37[_0x1d7e6b(0xbf7)](_0x1d7e6b(0x1b26))},_0x21b89d[_0x1d7e6b(0x125a)]['flow'][_0x1d7e6b(0x1c97)]();}function _0x43a57d(_0x29a0e7,_0x390d7c){const _0x369ccb=_0x2df477;if(_0x29a0e7&&_0x29a0e7['keyCode']===0xd&&_0x29a0e7[_0x369ccb(0x83e)])return;if(_0x29a0e7&&_0x29a0e7['keyCode']!==0xd)return;if(_0x390d7c[_0x369ccb(0x1730)]()==='')return;_0x2f5afd(_0x43d370(_0x390d7c[_0x369ccb(0x288f)](/\n$/,'')));}function _0x433b24(){const _0x14dd81=_0x2df477;_0x21b89d[_0x14dd81(0x291e)][_0x14dd81(0x1072)]!==_0x14dd81(0x2651)&&_0x3851db(function(){const _0x5ab47d=_0x14dd81,_0x3bec5d=angular['element'](_0x5f2a3a[_0x5ab47d(0x13b4)](_0x5ab47d(0x1157)+_0x21b89d[_0x5ab47d(0x291e)]['id']+'\x27]'));_0x3bec5d&&_0x3bec5d[0x0]&&(_0x3bec5d[0x0]['scrollTop']=_0x3bec5d[0x0][_0x5ab47d(0x11fd)]);},0x0);}function _0x5d7279(_0x319b7b){const _0x452d16=_0x2df477,_0x42fead=_0x452d16(0x1974);if(_0x319b7b){if(_0x319b7b[_0x452d16(0x979)]==='in')return _0x319b7b[_0x452d16(0x8d3)]?_0x319b7b[_0x452d16(0x8d3)][_0x452d16(0x1491)]||_0x452d16(0xdfe):_0x42fead;else{if(_0x319b7b[_0x452d16(0x21ab)])return _0x21b89d[_0x452d16(0x176)]?_0x21b89d[_0x452d16(0x176)][_0x319b7b['UserId']]:_0x42fead;}return'System'||0x0;}}function _0x5a2780(_0x90bafd,_0x17c2e7){const _0x2e4e15=_0x2df477;_0x21b89d[_0x2e4e15(0x291e)][_0x2e4e15(0x1072)]&&_0x90bafd['id']&&_0x12162a[_0x21b89d['tab'][_0x2e4e15(0x1072)]+_0x2e4e15(0x27df)]['download']({'id':_0x90bafd['id'],'attachments':_0x17c2e7})[_0x2e4e15(0x1d77)][_0x2e4e15(0x1cb0)](function(_0x1b5f13){const _0x4c4274=_0x2e4e15,_0x109494=[_0x1b5f13[_0x4c4274(0xef0)]];let _0x3d8a37='download';const _0x78f7c7=new Blob(_0x109494,{'type':_0x1b5f13[_0x4c4274(0x66a)]});_0x3d8a37=_0x21b89d[_0x4c4274(0x291e)][_0x4c4274(0x1072)]+_0x4c4274(0x2664)+_0x90bafd['id']+'.eml';const _0x25c70d=window['document'][_0x4c4274(0x8c6)]('a');_0x25c70d[_0x4c4274(0x23b9)](_0x4c4274(0x105b),URL[_0x4c4274(0x2247)](_0x78f7c7)),_0x25c70d[_0x4c4274(0x23b9)](_0x4c4274(0x26ec),_0x3d8a37),document['body'][_0x4c4274(0x23de)](_0x25c70d),_0x25c70d[_0x4c4274(0x20b8)]();})[_0x2e4e15(0x1c4)](function(_0x56c4df){const _0x25e43d=_0x2e4e15;if(_0x56c4df['data']&&_0x56c4df[_0x25e43d(0x25c)][_0x25e43d(0x1a7c)]&&_0x56c4df[_0x25e43d(0x25c)][_0x25e43d(0x1a7c)]['length'])for(let _0x4da299=0x0;_0x4da299<_0x56c4df[_0x25e43d(0x25c)][_0x25e43d(0x1a7c)][_0x25e43d(0xfd0)];_0x4da299+=0x1){_0x26e195[_0x25e43d(0x218e)]({'title':_0x56c4df['data'][_0x25e43d(0x1a7c)][_0x4da299][_0x25e43d(0x66a)],'msg':_0x56c4df[_0x25e43d(0x25c)][_0x25e43d(0x1a7c)][_0x4da299]['message']});}else _0x26e195[_0x25e43d(0x218e)]({'title':_0x56c4df[_0x25e43d(0x291)]?_0x25e43d(0xeb9)+_0x56c4df[_0x25e43d(0x291)]+'\x20-\x20'+_0x56c4df[_0x25e43d(0xc22)]:_0x25e43d(0xb63),'msg':_0x56c4df['data']?JSON[_0x25e43d(0x2701)](_0x56c4df[_0x25e43d(0x25c)][_0x25e43d(0x155e)]):_0x56c4df[_0x25e43d(0x147f)]()});});}function _0x2fbd8f(_0x1bc6ab,_0x117fcd){const _0x9b0d98=_0x2df477;_0x21b89d[_0x9b0d98(0x291e)][_0x9b0d98(0x1072)]&&_0x1bc6ab['id']&&_0x12162a[_0x21b89d[_0x9b0d98(0x291e)]['channel']+_0x9b0d98(0x2735)]['download']({'id':_0x1bc6ab['id'],'attachments':_0x117fcd})[_0x9b0d98(0x1d77)][_0x9b0d98(0x1cb0)](function(_0x3be738){const _0x441f95=_0x9b0d98,_0x597e31=[_0x3be738[_0x441f95(0xef0)]],_0x37ada6=_0x21b89d[_0x441f95(0x291e)][_0x441f95(0x1072)]+_0x441f95(0x1b0e)+_0x1bc6ab['id']+'.zip',_0x19a23c=new Blob(_0x597e31,{'type':_0x3be738[_0x441f95(0x66a)]}),_0xa9f70f=window[_0x441f95(0x1db8)]['createElement']('a');_0xa9f70f[_0x441f95(0x23b9)](_0x441f95(0x105b),URL[_0x441f95(0x2247)](_0x19a23c)),_0xa9f70f[_0x441f95(0x23b9)](_0x441f95(0x26ec),_0x37ada6),document[_0x441f95(0x1ed9)]['appendChild'](_0xa9f70f),_0xa9f70f[_0x441f95(0x20b8)]();})[_0x9b0d98(0x1c4)](function(_0x1c5477){const _0x43dfb4=_0x9b0d98;if(_0x1c5477['data']&&_0x1c5477[_0x43dfb4(0x25c)][_0x43dfb4(0x1a7c)]&&_0x1c5477[_0x43dfb4(0x25c)][_0x43dfb4(0x1a7c)]['length'])for(let _0x5030ad=0x0;_0x5030ad<_0x1c5477[_0x43dfb4(0x25c)][_0x43dfb4(0x1a7c)]['length'];_0x5030ad+=0x1){_0x26e195[_0x43dfb4(0x218e)]({'title':_0x1c5477[_0x43dfb4(0x25c)][_0x43dfb4(0x1a7c)][_0x5030ad][_0x43dfb4(0x66a)],'msg':_0x1c5477[_0x43dfb4(0x25c)][_0x43dfb4(0x1a7c)][_0x5030ad][_0x43dfb4(0x155e)]});}else _0x26e195[_0x43dfb4(0x218e)]({'title':_0x1c5477[_0x43dfb4(0x291)]?'API:'+_0x1c5477[_0x43dfb4(0x291)]+_0x43dfb4(0x1657)+_0x1c5477[_0x43dfb4(0xc22)]:_0x43dfb4(0x187c),'msg':_0x1c5477[_0x43dfb4(0x25c)]?JSON[_0x43dfb4(0x2701)](_0x1c5477[_0x43dfb4(0x25c)][_0x43dfb4(0x155e)]):_0x1c5477[_0x43dfb4(0x147f)]()});});}function _0x2f5afd(_0x314506){const _0x3d508c=_0x2df477;if(_0x314506)return _0x314506[_0x21b89d[_0x3d508c(0x291e)][_0x3d508c(0x1072)]===_0x3d508c(0x174c)?_0x3d508c(0x67c):_0x39641b()[_0x3d508c(0x432)](_0x21b89d['tab']['channel'])+'AccountId']=_0x21b89d[_0x3d508c(0x10e4)][_0x21b89d['tab'][_0x3d508c(0x1072)]===_0x3d508c(0x174c)?_0x3d508c(0x67c):_0x39641b()[_0x3d508c(0x432)](_0x21b89d['tab'][_0x3d508c(0x1072)])+'AccountId'],_0x314506[_0x39641b()['capitalize'](_0x21b89d[_0x3d508c(0x291e)][_0x3d508c(0x1072)])+_0x3d508c(0x9e2)]=_0x21b89d[_0x3d508c(0x10e4)]['id'],_0x314506[_0x3d508c(0x21ab)]=_0x21b89d[_0x3d508c(0xebe)]['id'],_0x314506[_0x3d508c(0xb96)]=_0x21b89d[_0x3d508c(0x10e4)][_0x3d508c(0xb96)],_0x314506[_0x3d508c(0x979)]=_0x3d508c(0x2500),_0x314506['secret']=Boolean(_0x21b89d[_0x3d508c(0x291e)]['spy']||_0x314506['secret']),_0x12162a[_0x21b89d[_0x3d508c(0x291e)][_0x3d508c(0x1072)]+_0x3d508c(0x27df)]['save'](_0x314506)[_0x3d508c(0x1d77)][_0x3d508c(0x1cb0)](function(_0x23b8d0){const _0x152db1=_0x3d508c;if(_0x23b8d0&&_0x23b8d0['id']){if(!_0x39641b()[_0x152db1(0xce9)](_0x314506['attachments'])){const _0x51a8dc=[];for(let _0x43ac81=0x0;_0x43ac81<_0x314506[_0x152db1(0x1abb)]['length'];_0x43ac81++){const _0x319627=_0x314506['attachments'][_0x43ac81];_0x319627[_0x152db1(0x2262)]?_0x51a8dc['push'](_0x12162a[_0x152db1(0x21d7)][_0x152db1(0x11bc)]({'id':_0x319627['id']},{'name':_0x319627['name'],'basename':_0x319627['basename'],'type':_0x319627[_0x152db1(0x66a)],'MailMessageId':_0x23b8d0['id']})[_0x152db1(0x1d77)]):_0x51a8dc[_0x152db1(0x2785)](_0x12162a[_0x152db1(0x21d7)][_0x152db1(0x687)]({'id':_0x319627['id']},{'MailMessageId':_0x23b8d0['id']})[_0x152db1(0x1d77)]);}return _0x26b39e['all'](_0x51a8dc);}}})['catch'](function(_0x4e5d5d){const _0x20f9e7=_0x3d508c;_0x26e195[_0x20f9e7(0x218e)]({'title':_0x4e5d5d[_0x20f9e7(0x291)]?'API:'+_0x4e5d5d['status']+_0x20f9e7(0x1657)+_0x4e5d5d[_0x20f9e7(0xc22)]:_0x20f9e7(0x241b),'msg':_0x4e5d5d[_0x20f9e7(0x25c)]?JSON[_0x20f9e7(0x2701)](_0x4e5d5d[_0x20f9e7(0x25c)]):_0x4e5d5d[_0x20f9e7(0x147f)]()});})[_0x3d508c(0x2e0)](function(){const _0x4f8521=_0x3d508c;_0x21b89d['tab'][_0x4f8521(0x1072)]===_0x4f8521(0x2651)&&(_0x314506[_0x4f8521(0xd34)]&&(_0x99560['removeByInteraction'](_0x21b89d['interaction']['id']),_0x21b89d[_0x4f8521(0x1440)]=null)),_0x21b89d[_0x4f8521(0x291e)]['areaText']='',_0x433b24();});}function _0x93f965(_0x5a0f31){const _0x217e78=_0x2df477;_0x21b89d[_0x217e78(0x291e)][_0x217e78(0x1072)]&&_0x21b89d[_0x217e78(0x10e4)]&&_0x21b89d['interaction']['id']&&_0x12162a[_0x21b89d[_0x217e78(0x291e)][_0x217e78(0x1072)]+_0x217e78(0x2735)][_0x217e78(0x687)]({'id':_0x21b89d[_0x217e78(0x10e4)]['id'],'substatus':_0x5a0f31})[_0x217e78(0x1d77)][_0x217e78(0x1c4)](function(_0x211cb9){const _0x2dacbc=_0x217e78;console[_0x2dacbc(0x218e)](_0x211cb9);});}function _0x349bc4(){const _0x5732a5=_0x2df477;if(_0x21b89d['tab'][_0x5732a5(0x1072)]&&_0x21b89d[_0x5732a5(0x10e4)]&&_0x21b89d[_0x5732a5(0x10e4)]['id']){if(_0x21b89d['acceptedMessages'][_0x5732a5(0xfd0)])for(let _0x39f4b5=0x0;_0x39f4b5<_0x21b89d[_0x5732a5(0x394)]['length'];_0x39f4b5+=0x1){_0x12162a[_0x21b89d[_0x5732a5(0x291e)][_0x5732a5(0x1072)]+_0x5732a5(0x27df)][_0x5732a5(0x687)]({'id':_0x21b89d[_0x5732a5(0x394)][_0x39f4b5],'read':![],'UserId':null});}else for(let _0x1cca06=0x0;_0x1cca06<_0x21b89d[_0x5732a5(0xab2)]['rows'][_0x5732a5(0xfd0)];_0x1cca06+=0x1){if(_0x21b89d['messages'][_0x5732a5(0x2214)][_0x1cca06][_0x5732a5(0x979)]==='in'){_0x21b89d['messages']['rows'][_0x1cca06][_0x5732a5(0x21ab)]===_0x21b89d[_0x5732a5(0xebe)]['id']?_0x12162a[_0x21b89d[_0x5732a5(0x291e)]['channel']+'Message'][_0x5732a5(0x687)]({'id':_0x21b89d[_0x5732a5(0xab2)][_0x5732a5(0x2214)][_0x1cca06]['id'],'read':![],'UserId':null}):_0x26e195['error']({'title':_0x5732a5(0x21e5),'msg':_0x5732a5(0x75e)});break;}}}_0x21b89d[_0x5732a5(0x291e)][_0x5732a5(0x167f)]=!![],_0x573418[_0x5732a5(0x17bc)]['$parent'][_0x5732a5(0x17bc)]['vm'][_0x5732a5(0x1670)](_0x21b89d[_0x5732a5(0x291e)]);}function _0xff2b1(_0x487983){const _0x557cb6=_0x2df477;if(_0x487983&&_0x21b89d[_0x557cb6(0x10e4)]['id']!==_0x487983['id'])return;_0x487983['closed']&&(_0x21b89d[_0x557cb6(0x291e)][_0x557cb6(0x167f)]=!![]),_0x39641b()[_0x557cb6(0x9c1)](_0x21b89d['interaction'],_0x487983);}function _0x321ebc(_0x2ccded){const _0x2aa117=_0x2df477;if(_0x2ccded&&_0x21b89d[_0x2aa117(0x10e4)]['id']!=_0x2ccded[_0x39641b()[_0x2aa117(0x432)](_0x21b89d[_0x2aa117(0x291e)][_0x2aa117(0x1072)])+_0x2aa117(0x9e2)])return;let _0x26f19a=![];_0x21b89d['messages']?_0x26f19a=_0x39641b()['find'](_0x21b89d[_0x2aa117(0xab2)][_0x2aa117(0x2214)],{'id':_0x2ccded['id']}):_0x21b89d['messages']={'rows':[],'count':0x0},_0x26f19a?_0x39641b()[_0x2aa117(0x9c1)](_0x26f19a,_0x2ccded):(_0x21b89d['tab'][_0x2aa117(0x1072)]===_0x2aa117(0x2651)?_0x21b89d['messages'][_0x2aa117(0x2214)][_0x2aa117(0xf63)](_0x2ccded):_0x21b89d['messages'][_0x2aa117(0x2214)][_0x2aa117(0x2785)](_0x2ccded),_0x433b24());}function _0xcd0a66(_0x331807){const _0x16a6de=_0x2df477;switch(_0x331807){case _0x16a6de(0x174c):return'icon-hangouts';case'mail':return _0x16a6de(0xfbd);case _0x16a6de(0x689):return _0x16a6de(0x1cce);case _0x16a6de(0x2476):return _0x16a6de(0x213d);case _0x16a6de(0x15e0):return _0x16a6de(0x694);case _0x16a6de(0x1944):return _0x16a6de(0x16d3);default:return'icon-hangouts';}}function _0x4d2d8d(_0x578025){const _0x4cc3cb=_0x2df477;switch(_0x578025){case _0x4cc3cb(0x174c):return _0x4cc3cb(0x7b5);case _0x4cc3cb(0x2651):return'teal';case'sms':return'orange';case _0x4cc3cb(0x15e0):return _0x4cc3cb(0x1f1f);case _0x4cc3cb(0x1944):return'blue-grey-A200';case _0x4cc3cb(0x2476):return _0x4cc3cb(0x1995);default:return'blue-A700';}}function _0x7738aa(_0x67b543){const _0x27367f=_0x2df477;let _0x110246='';if(_0x67b543[_0x27367f(0x18e9)])_0x110246=_0x27367f(0x1944);else{if(_0x67b543[_0x27367f(0x1d1e)])_0x110246=_0x27367f(0x15e0);else{if(_0x67b543['SmsAccountId'])_0x110246='sms';else{if(_0x67b543['WhatsappAccountId'])_0x110246='whatsapp';else{if(_0x67b543[_0x27367f(0x1285)])_0x110246='mail';else{if(_0x67b543['ChatWebsiteId'])_0x110246=_0x27367f(0x174c);else _0x67b543['amaflags']&&(_0x110246=_0x27367f(0x1fd4));}}}}}return _0x4d2d8d(_0x110246);}function _0x24f757(_0x424218){const _0x3528a3=_0x2df477;if(_0x424218[_0x3528a3(0x1105)]&&_0x21b89d[_0x3528a3(0xebe)]['id']!=_0x424218[_0x3528a3(0x21ab)])return'in';switch(_0x21b89d[_0x3528a3(0x9ca)]['messagesAlignment']){case'left':if(_0x424218['direction']=='in')return _0x424218[_0x3528a3(0x979)];return _0x3528a3(0x221a);case _0x3528a3(0x15d2):if(_0x424218[_0x3528a3(0x979)]=='in')return _0x3528a3(0x24d7);return _0x424218[_0x3528a3(0x979)];default:return _0x424218[_0x3528a3(0x979)];}}function _0x302c9c(){const _0x6934ae=_0x2df477;_0x21b89d['displayCannedAnswerInput']=!_0x21b89d[_0x6934ae(0x1043)];}function _0x2687ae(_0x41a64c){const _0x58282b=_0x2df477;return _0x12162a[_0x58282b(0x21d7)][_0x58282b(0xbf7)]({'MailMessageId':_0x41a64c['id']})['$promise']['then'](function(_0x18b1ed){const _0x4279db=_0x58282b;_0x18b1ed&&_0x18b1ed[_0x4279db(0x2214)]&&(_0x41a64c[_0x4279db(0x1abb)]=_0x18b1ed[_0x4279db(0x2214)]);})[_0x58282b(0x1c4)](function(_0x25d1f6){const _0x7dc73=_0x58282b;_0x26e195[_0x7dc73(0x218e)]({'title':_0x25d1f6[_0x7dc73(0x291)]?_0x7dc73(0xeb9)+_0x25d1f6[_0x7dc73(0x291)]+_0x7dc73(0x1657)+_0x25d1f6[_0x7dc73(0xc22)]:_0x7dc73(0x30d),'msg':_0x25d1f6[_0x7dc73(0x25c)]?JSON[_0x7dc73(0x2701)](_0x25d1f6[_0x7dc73(0x25c)]):_0x25d1f6[_0x7dc73(0x147f)]()});});}function _0xa1f3b7(_0x179d87){const _0x166ff8=_0x2df477;return _0x12162a[_0x166ff8(0x21d7)][_0x166ff8(0x26ec)]({'id':_0x179d87['id']})[_0x166ff8(0x1d77)][_0x166ff8(0x1cb0)](function(_0x4c67ba){const _0x599bfe=_0x166ff8;if(_0x4c67ba){const _0x51ad87=new Blob([_0x4c67ba[_0x599bfe(0xef0)]],{'type':_0x4c67ba[_0x599bfe(0x66a)]}),_0x386e95=document[_0x599bfe(0x8c6)]('a'),_0x330a8c=window[_0x599bfe(0x237e)][_0x599bfe(0x2247)](_0x51ad87);_0x386e95[_0x599bfe(0x105b)]=_0x330a8c,_0x386e95[_0x599bfe(0x251d)]=_0x599bfe(0x1d9f),_0x386e95[_0x599bfe(0x26ec)]=_0x179d87[_0x599bfe(0x16b6)],document[_0x599bfe(0x1ed9)][_0x599bfe(0x23de)](_0x386e95),_0x386e95[_0x599bfe(0x20b8)](),setTimeout(function(){const _0x69708d=_0x599bfe;document[_0x69708d(0x1ed9)][_0x69708d(0x26d3)](_0x386e95),window[_0x69708d(0x237e)]['revokeObjectURL'](_0x330a8c);},0x64);}})[_0x166ff8(0x1c4)](function(_0x5d6c41){const _0x1bcc52=_0x166ff8;_0x26e195['error']({'title':_0x5d6c41[_0x1bcc52(0x291)]?_0x1bcc52(0xeb9)+_0x5d6c41[_0x1bcc52(0x291)]+_0x1bcc52(0x1657)+_0x5d6c41[_0x1bcc52(0xc22)]:_0x1bcc52(0x30d),'msg':_0x5d6c41['data']?JSON['stringify'](_0x5d6c41[_0x1bcc52(0x25c)]):_0x5d6c41['toString']()});});}function _0x3603a5(){const _0x5acfae=_0x2df477;if(!_0x21b89d[_0x5acfae(0x291e)][_0x5acfae(0x1e1e)]&&!_0x21b89d['interaction'][_0x5acfae(0x22aa)])for(let _0x398984=0x0;_0x398984<_0x21b89d[_0x5acfae(0xab2)][_0x5acfae(0x2214)][_0x5acfae(0xfd0)];_0x398984+=0x1){_0x21b89d['messages'][_0x5acfae(0x2214)][_0x398984][_0x5acfae(0x979)]==='in'&&!_0x21b89d[_0x5acfae(0xab2)]['rows'][_0x398984][_0x5acfae(0xfc1)]&&(_0x12162a[_0x21b89d['tab'][_0x5acfae(0x1072)]+_0x5acfae(0x27df)][_0x5acfae(0xb60)]({'id':_0x21b89d[_0x5acfae(0xab2)][_0x5acfae(0x2214)][_0x398984]['id'],'UserId':_0x21b89d[_0x5acfae(0xebe)]['id']}),_0x21b89d[_0x5acfae(0x394)]['push'](_0x21b89d[_0x5acfae(0xab2)][_0x5acfae(0x2214)][_0x398984]['id']));}}function _0x1ab960(_0x1c6475){const _0x5b48fb=_0x2df477;if(!_0x1c6475['disposition'])return'('+_0xff3f48[_0x5b48fb(0x25cc)](_0x5b48fb(0x334))+')';const _0x348a27=_0x39641b()[_0x5b48fb(0xc67)]([_0x1c6475[_0x5b48fb(0x1746)],_0x1c6475[_0x5b48fb(0x15b4)],_0x1c6475[_0x5b48fb(0x24fc)]]);return'('+_0x348a27[_0x5b48fb(0x1f66)](_0x5b48fb(0x1657))+')';}function _0x817425(_0x4d6fc6){const _0x36ab52=_0x2df477;_0x4d6fc6&&_0x4d6fc6[_0x36ab52(0x184d)]&&_0x4d6fc6[_0x36ab52(0x2214)][_0x36ab52(0xfd0)]&&(_0x21b89d['journey']=_0x39641b()['concat'](_0x21b89d[_0x36ab52(0x11a7)],_0x4d6fc6[_0x36ab52(0x2214)]),_0x21b89d[_0x36ab52(0x11a7)]['forEach'](function(_0x185f2a){const _0x219d83=_0x36ab52;_0x185f2a[_0x219d83(0x172c)]=_0x1ab960(_0x185f2a);}));}function _0x2e45bd(_0x19edd1){const _0x568379=_0x2df477;if(_0x19edd1&&_0x19edd1['id']){for(let _0x491404=0x0;_0x491404<_0x21b89d[_0x568379(0xee9)][_0x568379(0xfd0)];_0x491404++){_0x12162a[_0x21b89d['omniChannels'][_0x491404]+_0x568379(0x2735)]['get']({'ContactId':_0x19edd1['id'],'journey':!![],'includeAll':!![]})[_0x568379(0x1d77)][_0x568379(0x1cb0)](_0x817425);}_0x12162a[_0x568379(0x11f2)]['get']({'ContactId':_0x19edd1['id'],'includeAll':!![]})[_0x568379(0x1d77)][_0x568379(0x1cb0)](_0x817425);}}function _0xfd4c1e(_0x28ce6f){return _0x28ce6f?String(_0x28ce6f)['replace'](/<[^>]+>/gm,''):'';}function _0x508d93(_0x184a5d){const _0x552d77=_0x2df477;switch(_0x21b89d[_0x552d77(0x291e)][_0x552d77(0x1072)]){case'mail':_0x21b89d['draft'][_0x552d77(0x862)][_0x552d77(0x2980)]=_0x184a5d?_0x39641b()[_0x552d77(0x13b4)](_0x21b89d[_0x552d77(0x10e4)][_0x552d77(0x223c)],['id',_0x184a5d]):_0x21b89d[_0x552d77(0x10e4)][_0x552d77(0x223c)][_0x21b89d[_0x552d77(0x10e4)][_0x552d77(0x223c)]['length']-0x1],_0x212d0c(_0x21b89d[_0x552d77(0x1440)]['type'],_0x21b89d[_0x552d77(0x1440)][_0x552d77(0x862)]);break;case _0x552d77(0x1944):break;case _0x552d77(0x15e0):break;case'sms':break;case _0x552d77(0x2476):break;}}_0x573418[_0x2df477(0x1d6)]('$destroy',function(){const _0x372a79=_0x2df477;_0x125029[_0x372a79(0xfb8)](_0x21b89d[_0x372a79(0x291e)][_0x372a79(0x1072)]+_0x372a79(0x2937)),_0x125029[_0x372a79(0xfb8)](_0x21b89d[_0x372a79(0x291e)][_0x372a79(0x1072)]+'Message:update'),_0x125029[_0x372a79(0xfb8)](_0x21b89d[_0x372a79(0x291e)][_0x372a79(0x1072)]+'Interaction:save'),_0x125029[_0x372a79(0xfb8)](_0x21b89d['tab'][_0x372a79(0x1072)]+_0x372a79(0x1a08)),_0x125029[_0x372a79(0xfb8)]('user_has_'+_0x21b89d[_0x372a79(0x291e)][_0x372a79(0x1072)]+_0x372a79(0x1d9d)),_0x125029[_0x372a79(0xfb8)](_0x372a79(0x28ed)+_0x21b89d[_0x372a79(0x291e)][_0x372a79(0x1072)]+'_interactions:remove');});function _0xd7468d(_0x4002df){const _0x388ef5=_0x2df477,_0xf49527={'id':_0x4002df['id']};return _0x12162a[_0x388ef5(0x115b)]['createVidaooSession'](_0xf49527)[_0x388ef5(0x1d77)]['then'](function(){const _0x2d6b50=_0x388ef5;_0x26e195[_0x2d6b50(0x829)]({'title':_0x2d6b50(0x23f4),'msg':'Session\x20properly\x20created.'});})['catch'](function(){const _0x40ed00=_0x388ef5;_0x26e195[_0x40ed00(0x218e)]({'title':_0x40ed00(0x23f4),'msg':_0x40ed00(0xee5)});});}}function _0x1fc5fa(_0x1b3a8d){const _0x59aaaa=_0x5537c6;return{'scope':{'ngBindHtmlUnsafe':'='},'template':_0x59aaaa(0x24dd),'link':function(_0x5ef0ec){const _0x4d257e=_0x59aaaa;function _0x2bda3c(){const _0x4c8142=a0_0x5cbd,_0x446cc6=_0x4c8142(0x1229)+Math[_0x4c8142(0x3aa)](Math[_0x4c8142(0x47f)]()*0x270f+0x1);return _0x4c8142(0xfee)+_0x446cc6+_0x4c8142(0x1ece)+_0x446cc6+'\x22\x20style=\x22display:none\x22';}_0x5ef0ec['updateView']=function(){const _0x4bab=a0_0x5cbd,_0x44cd1b=_0x39641b()[_0x4bab(0x288f)](_0x5ef0ec[_0x4bab(0x1958)],_0x4bab(0x11ec),_0x2bda3c());_0x5ef0ec[_0x4bab(0x1217)]=_0x1b3a8d[_0x4bab(0xdfc)](_0x44cd1b);},_0x5ef0ec[_0x4d257e(0x614)](_0x4d257e(0x1958),function(_0x288533){const _0x518316=_0x4d257e;_0x5ef0ec[_0x518316(0x742)](_0x288533);});}};}function _0x307a39(){return function(_0x294b81,_0x67a8cf,_0x358ff2,_0x17c234){const _0x4404d9=a0_0x5cbd,_0x37683e=[];for(let _0x582aed=0x0;_0x582aed<_0x294b81[_0x4404d9(0xfd0)];_0x582aed+=0x1){let _0x4cabbf=!![];switch(_0x67a8cf){case'voice':_0x4cabbf=Boolean(_0x294b81[_0x582aed][_0x4404d9(0x1425)]);break;case _0x4404d9(0x174c):_0x4cabbf=Boolean(_0x294b81[_0x582aed][_0x4404d9(0x67c)]);break;case _0x4404d9(0x2651):_0x4cabbf=Boolean(_0x294b81[_0x582aed][_0x4404d9(0x1285)]);break;case _0x4404d9(0x689):_0x4cabbf=Boolean(_0x294b81[_0x582aed][_0x4404d9(0x1a2)]);break;case _0x4404d9(0x2476):_0x4cabbf=Boolean(_0x294b81[_0x582aed][_0x4404d9(0xfc8)]);break;case'fax':_0x4cabbf=Boolean(_0x294b81[_0x582aed][_0x4404d9(0x18e9)]);break;case'openchannel':_0x4cabbf=Boolean(_0x294b81[_0x582aed][_0x4404d9(0x1d1e)]);break;default:_0x4cabbf=!![];break;}_0x4cabbf&&(_0x358ff2&&_0x17c234&&(_0x4cabbf=_0x543b5a()(_0x294b81[_0x582aed][_0x4404d9(0x24cb)])[_0x4404d9(0x480)](_0x543b5a()(_0x358ff2)[_0x4404d9(0x17d9)](0x0,!![]),_0x543b5a()(_0x17c234)[_0x4404d9(0x17d9)](0x0,!![])['add'](0x17,_0x4404d9(0x1de0))[_0x4404d9(0x17a1)](0x3b,_0x4404d9(0x22d))[_0x4404d9(0x17a1)](0x3b,_0x4404d9(0x479))))),_0x4cabbf&&_0x37683e[_0x4404d9(0x2785)](_0x294b81[_0x582aed]);}return _0x37683e;};};function _0x187c3e(){const _0x5172db=_0x5537c6;return{'watchEmbedData':![],'sanitizeHtml':![],'fontSmiley':![],'emoji':!![],'link':!![],'linkTarget':_0x5172db(0x22ac),'pdf':{'embed':!![]},'image':{'embed':!![]},'audio':{'embed':!![]},'basicVideo':![],'gdevAuth':_0x5172db(0x1afb),'video':{'embed':![],'width':null,'height':null,'ytTheme':'dark','details':![],'thumbnailQuality':_0x5172db(0x8bd),'autoPlay':!![]},'twitchtvEmbed':!![],'dailymotionEmbed':!![],'tedEmbed':!![],'dotsubEmbed':!![],'liveleakEmbed':!![],'ustreamEmbed':!![],'soundCloudEmbed':!![],'soundCloudOptions':{'height':0xa0,'themeColor':'f50000','autoPlay':![],'hideRelated':![],'showComments':!![],'showUser':!![],'showReposts':![],'visual':![],'download':![]},'spotifyEmbed':!![],'tweetEmbed':!![],'tweetOptions':{'maxWidth':0x226,'hideMedia':![],'hideThread':![],'align':'none','lang':'en'},'code':{'highlight':!![],'lineNumbers':![]},'codepenEmbed':!![],'codepenHeight':0x12c,'jsfiddleEmbed':!![],'jsfiddleHeight':0x12c,'jsbinEmbed':!![],'jsbinHeight':0x12c,'plunkerEmbed':!![],'githubgistEmbed':!![],'ideoneEmbed':!![],'ideoneHeight':0x12c};}const _0x4bdcb4=_0x187c3e;;_0x97f349[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x1f10),_0x5537c6(0xcb9),_0x5537c6(0x5f0),_0x5537c6(0x1539),'message',_0x5537c6(0x66a),_0x5537c6(0x142b),_0x5537c6(0x9bf)];function _0x97f349(_0xd3731a,_0x38183c,_0x21f274,_0x317569,_0x14b0f3,_0x7e44b2,_0x24f5fa,_0x708cf7,_0x2b124a){const _0x27f36e=_0x5537c6,_0x4a4794=this,_0x238afd=0x19,_0x447b09=_0x238afd*0x400*0x400;_0x4a4794['separatorKeys']=[_0x317569[_0x27f36e(0xefa)][_0x27f36e(0x1582)],_0x317569[_0x27f36e(0xefa)][_0x27f36e(0x1247)],_0x317569[_0x27f36e(0xefa)]['TAB']],_0x4a4794[_0x27f36e(0x155e)]={'from':_0x14b0f3[_0x27f36e(0x2343)],'to':_0x39641b()[_0x27f36e(0x958)](_0x7e44b2['to'])||_0x39641b()[_0x27f36e(0xce9)](_0x7e44b2['to'])?[]:_0x7e44b2['to'],'attachments':[]},_0x4a4794['ngFlowOptions']={'target':'api/attachments','singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x447b09,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x4a4794[_0x27f36e(0x125a)]={'flow':{}},_0x4a4794[_0x27f36e(0x199f)]=_0x1ba480,_0x4a4794[_0x27f36e(0x1c97)]=_0x1e8361,_0x4a4794[_0x27f36e(0x200f)]=_0x22001a,_0x4a4794[_0x27f36e(0x15c2)]=_0x2eb756,_0x4a4794[_0x27f36e(0x1879)]=_0x34a696,_0x4a4794[_0x27f36e(0x980)]=_0xcef192,_0x4a4794['transformContact']=_0x1c4d83,_0x4a4794[_0x27f36e(0xda0)]=_0xede175;function _0x14fb1e(){const _0x523646=_0x27f36e;_0x21f274[_0x523646(0x1426)]({'from':_0x4a4794[_0x523646(0x155e)]['from'],'to':_0x4a4794[_0x523646(0x155e)]['to'],'attach':_0x4a4794['message']['attachments'][_0x523646(0xfd0)],'attachments':_0x4a4794[_0x523646(0x155e)][_0x523646(0x1abb)]});}function _0x1ba480(){const _0x43b4b8=_0x27f36e;_0x4a4794[_0x43b4b8(0x155e)][_0x43b4b8(0x1abb)][_0x43b4b8(0xfd0)]===0x1?_0x4a4794['message']['to'][_0x43b4b8(0xfd0)]?(_0x7e44b2[_0x43b4b8(0x1440)]=undefined,_0x14fb1e()):_0x2b124a[_0x43b4b8(0x218e)](_0x43b4b8(0x1e9e)):_0x2b124a[_0x43b4b8(0x218e)](_0x43b4b8(0x25d));}function _0x1e8361(){const _0x1cf6ff=_0x27f36e;_0x4a4794['ngFlow']['flow'][_0x1cf6ff(0xd56)][_0x1cf6ff(0x5e7)]={'X-Requested-With':_0x1cf6ff(0x2711),'Authorization':_0x1cf6ff(0x1923)+_0xd3731a[_0x1cf6ff(0xbf7)](_0x1cf6ff(0x1b26))},_0x4a4794[_0x1cf6ff(0x125a)][_0x1cf6ff(0xacf)]['upload']();}function _0x2eb756(_0x40a998){const _0x2aff4f=_0x27f36e,_0x141cf1=[_0x2aff4f(0x570),'tif'];if(!_0x39641b()[_0x2aff4f(0x250a)](_0x141cf1,_0x40a998[_0x2aff4f(0x1cb1)]()))return _0x2b124a[_0x2aff4f(0x218e)]({'title':_0x2aff4f(0x14d4)+_0x40a998[_0x2aff4f(0x1cb1)](),'msg':_0x2aff4f(0xb38)+_0x141cf1['join']()}),![];if(_0x40a998[_0x2aff4f(0x1813)]>_0x447b09)return _0x2b124a[_0x2aff4f(0x218e)]({'title':'File\x20too\x20big','msg':_0x2aff4f(0xe61)+_0x238afd+'MB'}),![];return!![];}function _0x22001a(_0x54b198,_0x49876e){const _0xbe1de6=_0x27f36e;try{_0x49876e=JSON['parse'](_0x49876e),_0x49876e[_0xbe1de6(0x1813)]=_0x54b198[_0xbe1de6(0x1813)],_0x4a4794[_0xbe1de6(0x155e)][_0xbe1de6(0x1abb)][_0xbe1de6(0x2785)](_0x49876e);}catch(_0x5375bd){console['error'](_0x5375bd);}}function _0x34a696(_0x57b4c8){const _0x521030=_0x27f36e;let _0x5df859='';return _0x57b4c8[_0x521030(0x1491)]&&_0x57b4c8[_0x521030(0x1491)]!==_0x57b4c8[_0x521030(0x1944)]&&(_0x5df859+=_0x57b4c8['firstName']+'\x20'),_0x57b4c8[_0x521030(0x1fbb)]&&_0x57b4c8[_0x521030(0x1fbb)]!==_0x57b4c8['fax']&&(_0x5df859+=_0x57b4c8['lastName']+'\x20'),_0x5df859+='<'+_0x57b4c8[_0x521030(0x1944)]+'>';}function _0x1c4d83(_0x5d04d2){const _0x542d7b=_0x27f36e,_0x1042d0=_0x5d04d2;if(_0x39641b()['isObject'](_0x5d04d2))return _0x5d04d2[_0x542d7b(0x1944)];if(_0x865bbd(_0x1042d0))return _0x1042d0;return _0x2b124a['error'](_0x542d7b(0x42d)+_0x1042d0+_0x542d7b(0x1144)),null;}function _0x865bbd(_0x55f516){const _0x3073e0=_0x27f36e,_0x52823d=/[&/\\#,()$~%.'":;*?<>{}\s\\|a-zA-Z\pS!òàùè…_§°çéì-]/;return!_0x52823d[_0x3073e0(0x26a1)](_0x55f516);}function _0xcef192(_0x4ca3c4){const _0x139375=_0x27f36e;return _0x14b0f3&&_0x14b0f3['ListId']?_0x708cf7[_0x139375(0xbe7)]['get']({'ListId':_0x14b0f3[_0x139375(0x20a6)],'nolimit':!![],'filter':_0x4ca3c4,'fields':'firstName,lastName,fax'})[_0x139375(0x1d77)]['then'](function(_0x16f173){const _0xdf984c=_0x139375;return _0x16f173[_0xdf984c(0x2214)];}):[];}function _0xede175(){const _0x497217=_0x27f36e;_0x7e44b2[_0x497217(0x1440)]=_0x4a4794['message'],_0x21f274['cancel']();}}const _0x2f3ace=_0x97f349;;_0x42c1f9[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x1f10),_0x5537c6(0xcb9),_0x5537c6(0x5f0),_0x5537c6(0x1ae),_0x5537c6(0x1539),'message',_0x5537c6(0x66a),_0x5537c6(0x142b),_0x5537c6(0x9bf),'$q','Auth',_0x5537c6(0x10e4),_0x5537c6(0x1b68)];function _0x42c1f9(_0xa3402a,_0x466f2f,_0x411b0a,_0x4d7c8b,_0x210e33,_0x3ab6ae,_0x5d8849,_0x33988c,_0xa603ef,_0x54be55,_0x856690,_0x2b34d7,_0x5a840b,_0x4ad302){const _0x485e58=_0x5537c6,_0x4d043f=this,_0x4dc654=0x19,_0x31929c=_0x4dc654*0x400*0x400;_0x4d043f[_0x485e58(0xe76)]=_0x2b34d7[_0x485e58(0x21e8)](),_0x4d043f[_0x485e58(0x1105)]=_0x33988c==='note'?!![]:![],_0x4d043f[_0x485e58(0xe8c)]=!![],_0x4d043f[_0x485e58(0x178d)]=!![],_0x4d043f[_0x485e58(0x268a)]=!![],_0x4d043f[_0x485e58(0x1a7c)]=[],_0x4d043f[_0x485e58(0x25d5)]=[_0x4d7c8b[_0x485e58(0xefa)][_0x485e58(0x1582)],_0x4d7c8b[_0x485e58(0xefa)]['COMMA'],_0x4d7c8b[_0x485e58(0xefa)][_0x485e58(0xcd5)]],_0x4d043f['searchTextChange']=_0x246a4d,_0x4d043f[_0x485e58(0x2244)]=_0x27cc12,_0x4d043f[_0x485e58(0x2c8)]=_0x36abd1,_0x39641b()[_0x485e58(0xc7f)][_0x485e58(0xe08)]=/{{([\s\S]+?)}}/g,_0x4d043f['fromTemplate']=_0x39641b()[_0x485e58(0x2330)](_0x485e58(0x27a2)),_0x4d043f[_0x485e58(0x77b)]=_0x39641b()['template'](_0x485e58(0x2553)),_0x4d043f[_0x485e58(0x193b)]=_0x39641b()[_0x485e58(0x2330)](_0x485e58(0x601)),_0x4d043f[_0x485e58(0x155e)]={'from':_0x4d043f[_0x485e58(0x2106)]({'name':_0x3ab6ae[_0x485e58(0x16b6)],'email':_0x3ab6ae[_0x485e58(0x1e19)]||_0x3ab6ae['Smtp'][_0x485e58(0xebe)]}),'to':[],'cc':[],'bcc':[],'body':_0x2a6239(),'type':_0x33988c,'attachments':[],'showLastMessage':!![]},_0x4d043f[_0x485e58(0x1440)]=null,_0x4d043f['ckeditor']={'skin':'office2013','startupFocus':!![],'language':'en','allowedContent':!![],'extraPlugins':_0x485e58(0x1fc7),'toolbarGroups':[{'name':_0x485e58(0x29c6),'groups':[_0x485e58(0x29c6)]},{'name':_0x485e58(0x9c3),'groups':[_0x485e58(0x1336)]},{'name':_0x485e58(0x22bc),'groups':[_0x485e58(0x22bc)]},{'name':'basicstyles','groups':[_0x485e58(0xdf5)]},{'name':_0x485e58(0x3ba),'groups':[_0x485e58(0x240),'indent',_0x485e58(0xfcf)]}],'autoGrow_onStartup':!![],'autoGrow_minHeight':_0x4d043f['secret']?0xa0:0x12c,'autoGrow_maxHeight':_0x466f2f[_0x485e58(0x308)]-0x190,'autocorrect_enabled':!![],'disableNativeSpellChecker':![],'enterMode':window[_0x485e58(0x136b)][_0x485e58(0x1429)],'font_defaultLabel':_0x3ab6ae[_0x485e58(0x198c)]?_0x3ab6ae[_0x485e58(0x198c)][_0x485e58(0xbe1)](',')[0x0]:'Arial','fontSize_defaultLabel':_0x3ab6ae[_0x485e58(0x41d)]||'12','removePlugins':_0x485e58(0xb1d)};const _0x14162f=[];for(let _0x43ff90=0x8;_0x43ff90<=0x48;_0x43ff90++){_0x14162f[_0x485e58(0x2785)](_0x43ff90+'/'+_0x43ff90+'pt');}_0x4d043f['ckeditor'][_0x485e58(0x22f6)]=_0x14162f[_0x485e58(0x1f66)](';'),_0x4d043f[_0x485e58(0x15e8)]={'target':'api/attachments','singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x31929c,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x4d043f[_0x485e58(0x125a)]={'flow':{}},_0x4d043f[_0x485e58(0x134e)]=_0x5ef345,_0x4d043f[_0x485e58(0x471)]=_0x490db7,_0x4d043f[_0x485e58(0xaf1)]=_0x1742da,_0x4d043f['editDraft']=_0x2ad1b6,_0x4d043f['send']=_0x81f372,_0x4d043f['note']=_0x180d32,_0x4d043f[_0x485e58(0x147e)]=_0x2a6d10,_0x4d043f[_0x485e58(0x1c97)]=_0x4536ee,_0x4d043f['fileSuccess']=_0x502e04,_0x4d043f[_0x485e58(0x1772)]=_0x3254c9,_0x4d043f[_0x485e58(0x15c2)]=_0x5833ac,_0x4d043f[_0x485e58(0x1879)]=_0x33de93,_0x4d043f[_0x485e58(0x980)]=_0x1d50b0,_0x4d043f[_0x485e58(0x203a)]=_0x814ecb,_0x4d043f[_0x485e58(0x160e)]=_0x9f31fa,_0x4d043f['closeDialog']=_0x13689f,_0x4d043f[_0x485e58(0x1c74)]=_0x57161f;switch(_0x33988c){case _0x485e58(0x134e):_0x4d043f['reply'](![]);break;case _0x485e58(0x1dc9):_0x4d043f[_0x485e58(0x134e)](!![]);break;case _0x485e58(0xaf1):_0x4d043f[_0x485e58(0xaf1)]();break;case _0x485e58(0x1440):_0x4d043f[_0x485e58(0x1656)]();break;case _0x485e58(0x1295):_0x4d043f[_0x485e58(0x471)]();break;case _0x485e58(0xbe2):_0x4d043f[_0x485e58(0xbe2)]();break;}_0xa603ef['mailSubstatus'][_0x485e58(0xbf7)]({'nolimit':!![]})[_0x485e58(0x1d77)][_0x485e58(0x1cb0)](function(_0x58e556){const _0x50ea84=_0x485e58;_0x4d043f[_0x50ea84(0x16a)]=_0x58e556||{'count':0x0,'rows':[]};})['catch'](function(_0x3d141e){console['error'](_0x3d141e);});!_0x4d043f['secret']&&_0xe8e9cb();function _0x5ef345(_0x1e2fbc){const _0x5e2779=_0x485e58;angular[_0x5e2779(0x13b8)](_0x5d8849)&&(_0x4d043f[_0x5e2779(0x155e)]['type']=_0x5e2779(0x134e),_0x4d043f[_0x5e2779(0x155e)]['to']=_0x5d8849['direction']==='in'?_0x5d8849[_0x5e2779(0x174d)][_0x5e2779(0xbe1)](','):_0x5d8849['to']['split'](','),_0x4d043f['message'][_0x5e2779(0x1e5d)]=_0x39641b()[_0x5e2779(0x1f2c)](_0x5d8849[_0x5e2779(0x1e5d)],_0x5e2779(0x2891))?_0x5d8849['subject']:_0x5e2779(0x2024)+_0x5d8849['subject'],_0x4d043f['message'][_0x5e2779(0x26da)]=_0x5d8849['messageId'],_0x4d043f[_0x5e2779(0x155e)][_0x5e2779(0x1ed9)]=_0x2a6239(),_0x4d043f['message'][_0x5e2779(0x1abb)]=[],_0x1e2fbc&&_0x5d8849['cc']&&(_0x4d043f[_0x5e2779(0xe8c)]=![],_0x4d043f[_0x5e2779(0x155e)]['cc']=_0x5d8849['cc']['split'](',')),_0x4d043f[_0x5e2779(0x155e)][_0x5e2779(0x1b17)]=![]);}function _0x490db7(){const _0x1520a0=_0x485e58;angular['isDefined'](_0x5d8849)&&(_0x4d043f[_0x1520a0(0x155e)][_0x1520a0(0x66a)]=_0x1520a0(0x1295),_0x4d043f[_0x1520a0(0x155e)]['to']=_0x5d8849['to']?_0x5d8849['to']['split'](','):[]);}function _0x2ad1b6(){const _0x4ade30=_0x485e58;_0x4d043f[_0x4ade30(0xd34)]=!![],angular[_0x4ade30(0x13b8)](_0x5d8849)&&(_0x5d8849['savedAsDraft']=![],_0x4d043f[_0x4ade30(0x155e)]=angular[_0x4ade30(0x17fe)](_0x5d8849),!_0x39641b()[_0x4ade30(0xce9)](_0x4d043f[_0x4ade30(0x155e)]['cc'])&&(_0x4d043f[_0x4ade30(0xe8c)]=![]),!_0x39641b()[_0x4ade30(0xce9)](_0x4d043f['message'][_0x4ade30(0xd11)])&&(_0x4d043f[_0x4ade30(0x178d)]=![]));}function _0x1742da(){const _0x1419b8=_0x485e58;if(angular[_0x1419b8(0x13b8)](_0x5d8849)){_0x4d043f[_0x1419b8(0x155e)][_0x1419b8(0x66a)]=_0x1419b8(0xaf1),_0x4d043f[_0x1419b8(0x155e)][_0x1419b8(0x1e5d)]=_0x39641b()[_0x1419b8(0x1f2c)](_0x5d8849[_0x1419b8(0x1e5d)],_0x1419b8(0xfda))?_0x5d8849[_0x1419b8(0x1e5d)]:'Fwd:\x20'+_0x5d8849[_0x1419b8(0x1e5d)],_0x4d043f[_0x1419b8(0x155e)]['body']=_0x2a6239();if(_0x5d8849[_0x1419b8(0x21a3)]&&_0x5d8849[_0x1419b8(0x21a3)][_0x1419b8(0xfd0)])for(let _0x4b2049=0x0;_0x4b2049<_0x5d8849[_0x1419b8(0x21a3)][_0x1419b8(0xfd0)];_0x4b2049++){_0x4d043f[_0x1419b8(0x155e)]['attachments']['push'](_0x5d8849['Attachments'][_0x4b2049]);}_0x4d043f[_0x1419b8(0x155e)]['showLastMessage']=![];}}function _0x180d32(){const _0x3f7dc9=_0x485e58;_0x4d043f[_0x3f7dc9(0x66a)]=_0x3f7dc9(0xbe2),_0x4d043f[_0x3f7dc9(0x1105)]=!![],_0x4d043f[_0x3f7dc9(0x155e)][_0x3f7dc9(0x1ed9)]=_0x3f7dc9(0x2685)+_0x3ab6ae[_0x3f7dc9(0x198c)]+_0x3f7dc9(0x759)+_0x3ab6ae[_0x3f7dc9(0x41d)]+_0x3f7dc9(0xe99);}function _0x3880f6(_0x131901,_0x1930df){const _0x580092=_0x485e58,_0x5973b8={'from':_0x4d043f['message'][_0x580092(0x174d)],'to':_0x4d043f[_0x580092(0x155e)]['to'][_0x580092(0x1f66)](','),'cc':_0x4d043f[_0x580092(0x155e)]['cc']['join'](','),'bcc':_0x4d043f[_0x580092(0x155e)][_0x580092(0xd11)][_0x580092(0x1f66)](','),'subject':_0x4d043f[_0x580092(0x155e)]['subject'],'body':_0x4d043f[_0x580092(0x155e)][_0x580092(0x1b17)]?_0x4d043f['message'][_0x580092(0x1ed9)]:_0x4d043f['message'][_0x580092(0x1ed9)]+_0x3b0eeb(_0x4d043f[_0x580092(0x155e)][_0x580092(0x66a)]),'inReplyTo':_0x4d043f[_0x580092(0x155e)]['inReplyTo'],'attach':_0x4d043f[_0x580092(0x155e)]['attachments'][_0x580092(0xfd0)],'attachments':_0x4d043f['message'][_0x580092(0x1abb)],'Interaction':{'lastMsgDirection':_0x580092(0x2500),'lastMsgBody':_0x4d043f['message'][_0x580092(0x1ed9)],'substatus':_0x1930df},'isDraft':_0x4d043f[_0x580092(0xd34)]};_0x5973b8['html']=_0x580092(0x469)+_0x39641b()[_0x580092(0x288f)](_0x5973b8[_0x580092(0x1ed9)],'_0x31929c)return _0x54be55[_0x4f7f97(0x218e)]({'title':'File\x20too\x20big','msg':_0x4f7f97(0xe61)+_0x4dc654+'MB'}),![];return!![];}function _0x4536ee(){const _0x24fc2a=_0x485e58;_0x4d043f[_0x24fc2a(0x125a)][_0x24fc2a(0xacf)]['opts'][_0x24fc2a(0x5e7)]={'X-Requested-With':_0x24fc2a(0x2711),'Authorization':_0x24fc2a(0x1923)+_0xa3402a[_0x24fc2a(0xbf7)](_0x24fc2a(0x1b26))},_0x4d043f['ngFlow'][_0x24fc2a(0xacf)]['upload']();}function _0x502e04(_0xd39d9a,_0x38a607){const _0x95db41=_0x485e58;try{_0x38a607=JSON[_0x95db41(0xefe)](_0x38a607),_0x38a607['size']=_0xd39d9a[_0x95db41(0x1813)],_0x4d043f[_0x95db41(0x155e)][_0x95db41(0x1abb)][_0x95db41(0x2785)](_0x38a607);}catch(_0x385f84){console['error'](_0x385f84);}}function _0x3254c9(_0x25a5fb){const _0x5c2f3f=_0x485e58;_0x4d043f[_0x5c2f3f(0x155e)]['attachments']=_0x39641b()[_0x5c2f3f(0x988)](_0x4d043f[_0x5c2f3f(0x155e)][_0x5c2f3f(0x1abb)],{'id':_0x25a5fb['id']}),!_0x25a5fb[_0x5c2f3f(0x2262)]&&_0xa603ef[_0x5c2f3f(0x21d7)][_0x5c2f3f(0x111d)]({'id':_0x25a5fb['id']})[_0x5c2f3f(0x1d77)][_0x5c2f3f(0x1c4)](function(_0x54c5d3){const _0x50932e=_0x5c2f3f;_0x54be55[_0x50932e(0x218e)]({'title':_0x54c5d3['status']?_0x50932e(0xeb9)+_0x54c5d3[_0x50932e(0x291)]+_0x50932e(0x1657)+_0x54c5d3[_0x50932e(0xc22)]:_0x50932e(0x10d2),'msg':_0x54c5d3[_0x50932e(0x25c)]?JSON[_0x50932e(0x2701)](_0x54c5d3[_0x50932e(0x25c)]['message']):_0x54c5d3[_0x50932e(0x147f)]()});});}function _0x33de93(_0x2ff046){const _0x59dc14=_0x485e58;let _0x15c15e='';return _0x2ff046[_0x59dc14(0x1491)]&&_0x2ff046[_0x59dc14(0x1491)]!==_0x2ff046[_0x59dc14(0x1e19)]&&(_0x15c15e+=_0x2ff046[_0x59dc14(0x1491)]+'\x20'),_0x2ff046[_0x59dc14(0x1fbb)]&&_0x2ff046[_0x59dc14(0x1fbb)]!==_0x2ff046['email']&&(_0x15c15e+=_0x2ff046[_0x59dc14(0x1fbb)]+'\x20'),_0x15c15e+='<'+_0x2ff046[_0x59dc14(0x1e19)]+'>';}function _0x814ecb(_0x5573be,_0x222b9b){const _0x135d8d=_0x485e58;if(_0x39641b()[_0x135d8d(0x1b5c)](_0x5573be))return _0x4d043f['contact']=_0x5573be,_0x5573be['email'];if(_0x39641b()[_0x135d8d(0x28e2)](_0x5573be)){if(_0x519977(_0x5573be))return _0x4d043f[_0x135d8d(0x8b1)]={'email':_0x5573be},_0x5573be;else{const _0x3126d7=_0x5573be[_0x135d8d(0xbe1)](',');for(let _0x362006=0x0;_0x362006<_0x3126d7[_0x135d8d(0xfd0)];_0x362006+=0x1){_0x519977(_0x3126d7[_0x362006])?_0x39641b()['isArray'](_0x222b9b)&&_0x39641b()['indexOf'](_0x222b9b,_0x3126d7[_0x362006])<0x0&&_0x222b9b[_0x135d8d(0x2785)](_0x3126d7[_0x362006]):_0x54be55[_0x135d8d(0x218e)](_0x135d8d(0x2710)+_0x3126d7[_0x362006]+_0x135d8d(0x1144));}return _0x4d043f['contact']={'email':_0x5573be[_0x135d8d(0xbe1)](',')[0x0]},null;}}return _0x54be55[_0x135d8d(0x218e)](_0x135d8d(0x294d)),null;}function _0x1d50b0(_0x2a5cba){const _0x997977=_0x485e58;return _0x3ab6ae&&_0x3ab6ae['ListId']?_0xa603ef['cmContact'][_0x997977(0xbf7)]({'ListId':_0x3ab6ae[_0x997977(0x20a6)],'nolimit':!![],'filter':_0x2a5cba,'fields':_0x997977(0x2771)})[_0x997977(0x1d77)][_0x997977(0x1cb0)](function(_0x435545){const _0x416c59=_0x997977;return _0x435545[_0x416c59(0x2214)];}):[];}function _0x9f31fa(){const _0x1a6429=_0x485e58;_0x4d043f[_0x1a6429(0x155e)][_0x1a6429(0x275)]=!![],_0x4d043f[_0x1a6429(0x1440)]=_0x4ad302[_0x1a6429(0x8b7)](_0x5a840b['id']);const _0x331a38={'account':_0x3ab6ae,'message':_0x4d043f[_0x1a6429(0x155e)],'contact':_0x4d043f[_0x1a6429(0x8b1)],'interaction':_0x5a840b};if(_0x4d043f[_0x1a6429(0x1440)]&&!_0x4d043f[_0x1a6429(0xd34)]){const _0x493f4d=_0x411b0a[_0x1a6429(0x1551)]({'skipHide':!![]})['title'](_0x210e33[_0x1a6429(0x25cc)]('DASHBOARDS.DRAFT_SAVE_WARNING_TITLE'))['content'](_0x210e33[_0x1a6429(0x25cc)]('DASHBOARDS.DRAFT_SAVE_WARNING_MESSAGE'))['ariaLabel'](_0x1a6429(0x29dc))['ok'](_0x210e33[_0x1a6429(0x25cc)](_0x1a6429(0x2977)))[_0x1a6429(0x696)](_0x210e33['instant'](_0x1a6429(0x2768)));_0x411b0a[_0x1a6429(0xe27)](_0x493f4d)['then'](function(){const _0x577f50=_0x1a6429;_0x411b0a[_0x577f50(0x1426)](_0x331a38);});}else _0x411b0a['hide'](_0x331a38);}function _0x13689f(){const _0x44dd47=_0x485e58;_0x411b0a[_0x44dd47(0x696)]();}function _0x519977(_0x22d623){const _0x565f12=_0x485e58,_0x2ba118=/^(([^<>()[\]\\.,;:\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 _0x2ba118[_0x565f12(0x26a1)](_0x22d623);}function _0x5d4b71(_0x4135e9){const _0x1eebf3=/]*>([^]*)<\/body/m,_0x1250ca=_0x4135e9['match'](_0x1eebf3);if(_0x1250ca)return _0x1250ca[0x1];return _0x4135e9;}function _0x274a56(){const _0x488b4a=_0x485e58;if(_0x39641b()[_0x488b4a(0x958)](_0x3ab6ae[_0x488b4a(0x2330)]))return'';try{const _0x21a672=_0x39641b()[_0x488b4a(0x2330)](_0x3ab6ae[_0x488b4a(0x2330)]),_0x2ca3b4={'user':_0x4d043f[_0x488b4a(0xe76)],'account':_0x3ab6ae,'interaction':_0x5a840b,'contact':_0x5a840b&&_0x5a840b[_0x488b4a(0x8d3)]?_0x5a840b[_0x488b4a(0x8d3)]:{}};return _0x21a672(_0x2ca3b4);}catch(_0x5b13ca){return console[_0x488b4a(0x218e)](_0x5b13ca),'';}}function _0x2a6239(){const _0x2e2974=_0x485e58;return _0x2e2974(0x2685)+_0x3ab6ae[_0x2e2974(0x198c)]+_0x2e2974(0x759)+_0x3ab6ae[_0x2e2974(0x41d)]+'pt\x22>'+_0x274a56()+_0x2e2974(0x1461);}function _0x3b0eeb(_0x37e33f){const _0x34170c=_0x485e58;let _0x296867=_0x34170c(0x1b82);switch(_0x37e33f){case _0x34170c(0x134e):case'replyAll':_0x296867+=_0x4d043f['replyTemplate']({'date':_0x543b5a()(_0x5d8849['createdAt'])['format']('D\x20MMM\x20YYYY')||'','time':_0x543b5a()(_0x5d8849[_0x34170c(0x24cb)])[_0x34170c(0x1f31)](_0x34170c(0x1ed6))||'','from':_0x39641b()[_0x34170c(0x20af)](_0x5d8849[_0x34170c(0x174d)])||''});break;case'forward':_0x296867+=_0x4d043f[_0x34170c(0x193b)]({'date':_0x543b5a()(_0x5d8849[_0x34170c(0x24cb)])[_0x34170c(0x1f31)](_0x34170c(0x253c))||'','time':_0x543b5a()(_0x5d8849['createdAt'])[_0x34170c(0x1f31)](_0x34170c(0x1ed6))||'','from':_0x39641b()['escape'](_0x5d8849[_0x34170c(0x174d)])||'','to':_0x39641b()[_0x34170c(0x20af)](_0x5d8849['to'])||'','subject':_0x39641b()[_0x34170c(0x20af)](_0x5d8849[_0x34170c(0x1e5d)])||''});break;}const _0x422a1c=_0x4d043f[_0x34170c(0x155e)][_0x34170c(0x1b17)]&&_0x5d8849[_0x34170c(0x2980)]?_0x5d8849['originalMessage'][_0x34170c(0x1ed9)]:_0x5d8849[_0x34170c(0x1ed9)];return _0x296867+=_0x34170c(0x1fd2),_0x296867+=_0x5d4b71(_0x422a1c?_0x39641b()['replace'](_0x422a1c,_0x34170c(0x11ec),_0x34170c(0x1c29)):''),_0x296867+=_0x34170c(0x7f1),_0x37e33f?_0x296867:'';}function _0x57161f(){const _0x46b012=_0x485e58;_0x4d043f[_0x46b012(0x155e)][_0x46b012(0x1ed9)]+=_0x3b0eeb(_0x4d043f[_0x46b012(0x155e)]['type']);}}const _0x3e476a=_0x42c1f9;;_0x44259a[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x2168),_0x5537c6(0x1f10),_0x5537c6(0xcb9),_0x5537c6(0x5f0),_0x5537c6(0x1539),_0x5537c6(0x155e),_0x5537c6(0x66a),_0x5537c6(0x142b),_0x5537c6(0x9bf),'$q',_0x5537c6(0x1ae),_0x5537c6(0x1774)];function _0x44259a(_0x397c1b,_0x5ecd10,_0x32cb5f,_0x39d13c,_0x20a381,_0x176fd6,_0x57b29a,_0x29d25f,_0xe67d5f,_0x49c348,_0x30190f,_0x3bdd0b,_0x4b3576){const _0x534f8f=_0x5537c6,_0xaead3e=this;_0xaead3e[_0x534f8f(0xe76)]=_0x4b3576['getCurrentUser'](),_0xaead3e[_0x534f8f(0x1a7c)]=[],_0xaead3e[_0x534f8f(0x25d5)]=[_0x20a381['KEY_CODE'][_0x534f8f(0x1582)],_0x20a381[_0x534f8f(0xefa)]['COMMA'],_0x20a381['KEY_CODE'][_0x534f8f(0xcd5)]],_0xaead3e[_0x534f8f(0x1190)]=_0x5c9a47,_0xaead3e[_0x534f8f(0x2244)]=_0x59883d,_0xaead3e[_0x534f8f(0xbe2)]=_0x780f84,_0xaead3e[_0x534f8f(0x147e)]=_0x26eb21,_0xaead3e['ctrlMethods']={},_0xaead3e[_0x534f8f(0x155e)]={'from':_0x176fd6['phone'],'to':_0x39641b()[_0x534f8f(0x958)](_0x57b29a['to'])||_0x39641b()[_0x534f8f(0xce9)](_0x57b29a['to'])?[]:_0x57b29a['to'],'body':''},_0xaead3e[_0x534f8f(0x199f)]=_0x23d813,_0xaead3e[_0x534f8f(0x1879)]=_0x28c6cc,_0xaead3e[_0x534f8f(0xda0)]=_0xb9470e,_0xaead3e['contactSearch']=_0x248b76,_0xaead3e[_0x534f8f(0x203a)]=_0x27ff43;switch(_0x29d25f){case _0x534f8f(0xbe2):_0xaead3e[_0x534f8f(0xbe2)]();break;}function _0x1a5f3d(_0x5dee40){const _0x325fc9=_0x534f8f;_0x39d13c[_0x325fc9(0x1426)]({'to':_0xaead3e[_0x325fc9(0x155e)]['to']['join'](','),'body':_0x5dee40});}function _0x23d813(){const _0x361440=_0x534f8f;_0xaead3e[_0x361440(0x155e)]['to']&&_0xaead3e[_0x361440(0x155e)][_0x361440(0x1ed9)]&&(_0xaead3e[_0x361440(0x155e)]['to'][_0x361440(0xfd0)]?_0x1a5f3d(_0xaead3e[_0x361440(0x155e)]['body']):_0x49c348[_0x361440(0x218e)]('To\x20is\x20mandatory'));}function _0x59883d(_0x2d8625){const _0x3fd8c8=_0x534f8f;if(_0x2d8625){try{_0x39641b()[_0x3fd8c8(0xc7f)][_0x3fd8c8(0xe08)]=/{{([\s\S]+?)}}/g;const _0xe750b6=_0x39641b()[_0x3fd8c8(0x2330)](_0x2d8625[_0x3fd8c8(0x327)]),_0x1bed6b={'user':_0xaead3e['currentUser'],'account':_0x176fd6};_0xaead3e['message'][_0x3fd8c8(0x1ed9)]+='\x20'+_0xe750b6(_0x1bed6b),_0xaead3e[_0x3fd8c8(0x7df)][_0x3fd8c8(0x1e34)](_0xaead3e[_0x3fd8c8(0x155e)]['body']);}catch(_0x3581b0){_0xaead3e[_0x3fd8c8(0x155e)][_0x3fd8c8(0x1ed9)]+='\x20'+_0x2d8625[_0x3fd8c8(0x327)],_0xaead3e[_0x3fd8c8(0x7df)][_0x3fd8c8(0x1e34)](_0xaead3e[_0x3fd8c8(0x155e)][_0x3fd8c8(0x1ed9)]);}_0xaead3e[_0x3fd8c8(0x5fa)]=null;}}function _0x5c9a47(_0x2efcd4){const _0x29b1fe=_0x534f8f,_0x1d3820=_0x30190f[_0x29b1fe(0x11f4)]();let _0xb65639=[];return _0xe67d5f[_0x29b1fe(0x1c25)][_0x29b1fe(0xbf7)]({'filter':_0x2efcd4,'OpenchannelAccountId':_0x176fd6['id']})[_0x29b1fe(0x1d77)][_0x29b1fe(0x1cb0)](function(_0x14f252){const _0x4dacf9=_0x29b1fe;return _0xb65639=_0x39641b()[_0x4dacf9(0x298a)](_0xb65639,_0x14f252[_0x4dacf9(0x2214)]),_0xe67d5f[_0x4dacf9(0x1c25)][_0x4dacf9(0xbf7)]({'filter':_0x2efcd4})[_0x4dacf9(0x1d77)];})['then'](function(_0x28c1ba){const _0x5bbb02=_0x29b1fe;_0xb65639=_0x39641b()[_0x5bbb02(0x298a)](_0xb65639,_0x39641b()['filter'](_0x28c1ba[_0x5bbb02(0x2214)],function(_0xb2d6a1){const _0x43f22a=_0x5bbb02;return!_0xb2d6a1[_0x43f22a(0x1285)]&&!_0xb2d6a1[_0x43f22a(0x18e9)]&&!_0xb2d6a1['SmsAccountId']&&!_0xb2d6a1[_0x43f22a(0xfc8)]&&!_0xb2d6a1[_0x43f22a(0x1d1e)]&&!_0xb2d6a1[_0x43f22a(0x67c)];})),_0x1d3820[_0x5bbb02(0x19a3)](_0xb65639);})[_0x29b1fe(0x1c4)](function(_0x573072){const _0x37d93f=_0x29b1fe;_0x1d3820[_0x37d93f(0x988)](_0x573072);}),_0x1d3820['promise'];}function _0x28c6cc(_0x18845a){const _0x366e1f=_0x534f8f;let _0x46f9c0='';return _0x18845a[_0x366e1f(0x1491)]&&_0x18845a[_0x366e1f(0x1491)]!==_0x18845a[_0x176fd6[_0x366e1f(0x635)]]&&(_0x46f9c0+=_0x18845a[_0x366e1f(0x1491)]+'\x20'),_0x18845a[_0x366e1f(0x1fbb)]&&_0x18845a['lastName']!==_0x18845a[_0x176fd6['mapKey']]&&(_0x46f9c0+=_0x18845a[_0x366e1f(0x1fbb)]+'\x20'),_0x46f9c0+='<'+_0x18845a[_0x176fd6[_0x366e1f(0x635)]]+'>';}function _0x27ff43(_0x510895){const _0x34ac43=_0x534f8f,_0xa4fb60=_0x510895;if(_0x39641b()[_0x34ac43(0x1b5c)](_0xa4fb60))return _0x510895[_0x176fd6['mapKey']];return _0xa4fb60;}function _0x248b76(_0x57511f){const _0x43441b=_0x534f8f;if(_0x176fd6&&_0x176fd6[_0x43441b(0x20a6)]){let _0x25955e=_0x43441b(0x1dda);return _0x176fd6[_0x43441b(0x635)]&&(_0x25955e+=','+_0x176fd6[_0x43441b(0x635)]),_0xe67d5f[_0x43441b(0xbe7)][_0x43441b(0xbf7)]({'ListId':_0x176fd6[_0x43441b(0x20a6)],'nolimit':!![],'filter':_0x57511f,'fields':_0x25955e})['$promise'][_0x43441b(0x1cb0)](function(_0x29ae6e){const _0x130c41=_0x43441b;return _0x29ae6e[_0x130c41(0x2214)];});}return[];}function _0xb9470e(){_0x39d13c['cancel']();}function _0x780f84(){const _0x29683d=_0x534f8f;_0xaead3e[_0x29683d(0x1105)]=!![];}function _0x26eb21(){const _0x3eb475=_0x534f8f;_0xaead3e[_0x3eb475(0x155e)][_0x3eb475(0x1ed9)]&&_0x39d13c[_0x3eb475(0x1426)]({'secret':!![],'body':_0xaead3e[_0x3eb475(0x155e)][_0x3eb475(0x1ed9)]});}}const _0x22c083=_0x44259a;;_0x1812b0[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x2168),_0x5537c6(0x1f10),_0x5537c6(0xcb9),_0x5537c6(0x5f0),_0x5537c6(0x1539),'message',_0x5537c6(0x66a),_0x5537c6(0x142b),_0x5537c6(0x9bf),'$q',_0x5537c6(0x1ae),_0x5537c6(0x1774)];function _0x1812b0(_0x33cad5,_0x28a647,_0x330673,_0x35b52c,_0x2f59a7,_0x248103,_0x8bd474,_0x36a013,_0x5700b0,_0x255e61,_0x338a23,_0x46be4f,_0x5ac3bb){const _0x1f22cd=_0x5537c6,_0x45c80b=this;_0x45c80b[_0x1f22cd(0xe76)]=_0x5ac3bb[_0x1f22cd(0x21e8)](),_0x45c80b[_0x1f22cd(0x1a7c)]=[],_0x45c80b[_0x1f22cd(0x25d5)]=[_0x2f59a7[_0x1f22cd(0xefa)][_0x1f22cd(0x1582)],_0x2f59a7[_0x1f22cd(0xefa)][_0x1f22cd(0x1247)],_0x2f59a7['KEY_CODE'][_0x1f22cd(0xcd5)]],_0x45c80b[_0x1f22cd(0x1190)]=_0x481f1c,_0x45c80b[_0x1f22cd(0x2244)]=_0x5600e7,_0x45c80b[_0x1f22cd(0xbe2)]=_0x3a40d5,_0x45c80b['addNote']=_0x5494c7,_0x45c80b['ctrlMethods']={},_0x45c80b['message']={'from':_0x248103[_0x1f22cd(0x1340)],'to':_0x39641b()['isNil'](_0x8bd474['to'])||_0x39641b()[_0x1f22cd(0xce9)](_0x8bd474['to'])?[]:_0x8bd474['to'],'body':''},_0x45c80b[_0x1f22cd(0x199f)]=_0x1d7a7c,_0x45c80b['getContact']=_0x2671ca,_0x45c80b[_0x1f22cd(0xda0)]=_0x4948a6,_0x45c80b[_0x1f22cd(0x980)]=_0x442972,_0x45c80b['transformContact']=_0x3b57f2;switch(_0x36a013){case _0x1f22cd(0xbe2):_0x45c80b[_0x1f22cd(0xbe2)]();break;}function _0xf13117(_0x4969e6){const _0x33e5c2=_0x1f22cd;_0x35b52c['hide']({'to':_0x45c80b[_0x33e5c2(0x155e)]['to'][_0x33e5c2(0x1f66)](','),'body':_0x4969e6});}function _0x1d7a7c(){const _0x2d3bb8=_0x1f22cd;_0x45c80b['message']['to']&&_0x45c80b[_0x2d3bb8(0x155e)]['body']&&(_0x45c80b[_0x2d3bb8(0x155e)]['to'][_0x2d3bb8(0xfd0)]?_0xf13117(_0x45c80b[_0x2d3bb8(0x155e)][_0x2d3bb8(0x1ed9)]):_0x255e61['error'](_0x2d3bb8(0x1e9e)));}function _0x5600e7(_0x33baf5){const _0x25cb9e=_0x1f22cd;if(_0x33baf5){try{_0x39641b()['templateSettings'][_0x25cb9e(0xe08)]=/{{([\s\S]+?)}}/g;const _0x88ae56=_0x39641b()[_0x25cb9e(0x2330)](_0x33baf5['value']),_0x1daf82={'user':_0x45c80b[_0x25cb9e(0xe76)],'account':_0x248103};_0x45c80b[_0x25cb9e(0x155e)][_0x25cb9e(0x1ed9)]+='\x20'+_0x88ae56(_0x1daf82),_0x45c80b[_0x25cb9e(0x7df)]['setText'](_0x45c80b[_0x25cb9e(0x155e)]['body']);}catch(_0x23325f){_0x45c80b[_0x25cb9e(0x155e)][_0x25cb9e(0x1ed9)]+='\x20'+_0x33baf5[_0x25cb9e(0x327)],_0x45c80b[_0x25cb9e(0x7df)][_0x25cb9e(0x1e34)](_0x45c80b[_0x25cb9e(0x155e)][_0x25cb9e(0x1ed9)]);}_0x45c80b['selectedItem']=null;}}function _0x481f1c(_0x37bfce){const _0x303714=_0x1f22cd,_0x11ac8f=_0x338a23[_0x303714(0x11f4)]();let _0x44fb33=[];return _0x5700b0['cannedAnswer'][_0x303714(0xbf7)]({'filter':_0x37bfce,'SmsAccountId':_0x248103['id']})[_0x303714(0x1d77)][_0x303714(0x1cb0)](function(_0x57fa87){const _0x383ae4=_0x303714;return _0x44fb33=_0x39641b()[_0x383ae4(0x298a)](_0x44fb33,_0x57fa87['rows']),_0x5700b0[_0x383ae4(0x1c25)][_0x383ae4(0xbf7)]({'filter':_0x37bfce})[_0x383ae4(0x1d77)];})[_0x303714(0x1cb0)](function(_0x5a73a1){const _0x2e0d4d=_0x303714;_0x44fb33=_0x39641b()[_0x2e0d4d(0x298a)](_0x44fb33,_0x39641b()['filter'](_0x5a73a1[_0x2e0d4d(0x2214)],function(_0x148ed4){const _0x2b68da=_0x2e0d4d;return!_0x148ed4[_0x2b68da(0x1285)]&&!_0x148ed4[_0x2b68da(0x18e9)]&&!_0x148ed4['SmsAccountId']&&!_0x148ed4[_0x2b68da(0x1d1e)]&&!_0x148ed4['ChatWebsiteId'];})),_0x11ac8f['resolve'](_0x44fb33);})[_0x303714(0x1c4)](function(_0xd4119c){const _0x4e4739=_0x303714;_0x11ac8f[_0x4e4739(0x988)](_0xd4119c);}),_0x11ac8f[_0x303714(0x2061)];}function _0x2671ca(_0x49b8d8){const _0x3a3703=_0x1f22cd;let _0x431899='';return _0x49b8d8[_0x3a3703(0x1491)]&&_0x49b8d8[_0x3a3703(0x1491)]!==_0x49b8d8[_0x3a3703(0x1ce6)]&&(_0x431899+=_0x49b8d8['firstName']+'\x20'),_0x49b8d8['lastName']&&_0x49b8d8['lastName']!==_0x49b8d8[_0x3a3703(0x1ce6)]&&(_0x431899+=_0x49b8d8[_0x3a3703(0x1fbb)]+'\x20'),_0x431899+='<'+_0x49b8d8[_0x3a3703(0x1ce6)]+'>';}function _0x3b57f2(_0x870cd4){const _0x1d5f0a=_0x1f22cd,_0x5b7092=_0x870cd4;if(_0x39641b()[_0x1d5f0a(0x1b5c)](_0x5b7092))return _0x870cd4[_0x1d5f0a(0x1ce6)];if(_0x45a96a(_0x5b7092))return _0x5b7092;return _0x255e61[_0x1d5f0a(0x218e)](_0x1d5f0a(0x140d)+_0x5b7092+_0x1d5f0a(0x1144)),null;}function _0x442972(_0x4cafdf){const _0x2888e7=_0x1f22cd;if(_0x248103&&_0x248103[_0x2888e7(0x20a6)])return _0x5700b0[_0x2888e7(0xbe7)][_0x2888e7(0xbf7)]({'ListId':_0x248103[_0x2888e7(0x20a6)],'nolimit':!![],'filter':_0x4cafdf,'fields':_0x2888e7(0x78d)})[_0x2888e7(0x1d77)][_0x2888e7(0x1cb0)](function(_0x243a1c){return _0x243a1c['rows'];});return[];}function _0x4948a6(){_0x35b52c['cancel']();}function _0x45a96a(_0x529ff3){const _0x2910b6=_0x1f22cd,_0x5b5e67=/^(\+|\d)[0-9]{7,16}$/;return _0x5b5e67[_0x2910b6(0x26a1)](_0x529ff3);}function _0x3a40d5(){const _0x51a653=_0x1f22cd;_0x45c80b[_0x51a653(0x1105)]=!![];}function _0x5494c7(){const _0x424715=_0x1f22cd;_0x45c80b[_0x424715(0x155e)][_0x424715(0x1ed9)]&&_0x35b52c['hide']({'secret':!![],'body':_0x45c80b['message']['body']});}}const _0xe23721=_0x1812b0;;_0x320624[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x2168),_0x5537c6(0x1f10),_0x5537c6(0xcb9),'$mdConstant',_0x5537c6(0x1539),_0x5537c6(0x155e),_0x5537c6(0x66a),'api',_0x5537c6(0x9bf),'$q',_0x5537c6(0x1ae),'Auth'];function _0x320624(_0x476ebf,_0x5062a9,_0x2c6588,_0x1c240a,_0x3302b9,_0x479752,_0x5403b0,_0x1452ca,_0x4b10cb,_0x3f87a5,_0x11288f,_0x5ba14d,_0x400944){const _0x63f3e1=_0x5537c6,_0x5bfe4a=this;_0x5bfe4a[_0x63f3e1(0xe76)]=_0x400944['getCurrentUser'](),_0x5bfe4a['errors']=[],_0x5bfe4a[_0x63f3e1(0x25d5)]=[_0x3302b9[_0x63f3e1(0xefa)]['ENTER'],_0x3302b9['KEY_CODE'][_0x63f3e1(0x1247)],_0x3302b9['KEY_CODE'][_0x63f3e1(0xcd5)]],_0x5bfe4a[_0x63f3e1(0x1190)]=_0x279ba2,_0x5bfe4a['selectedItemChange']=_0x4a785b,_0x5bfe4a[_0x63f3e1(0xbe2)]=_0x426c37,_0x5bfe4a[_0x63f3e1(0x147e)]=_0x57946e,_0x5bfe4a['ctrlMethods']={},_0x5bfe4a[_0x63f3e1(0x155e)]={'from':_0x479752[_0x63f3e1(0x1340)],'to':_0x39641b()['isNil'](_0x5403b0['to'])||_0x39641b()[_0x63f3e1(0xce9)](_0x5403b0['to'])?[]:_0x5403b0['to'],'body':''},_0x5bfe4a[_0x63f3e1(0x199f)]=_0x3fe5e1,_0x5bfe4a['getContact']=_0x41a938,_0x5bfe4a['closeDialog']=_0x3a0cf4,_0x5bfe4a[_0x63f3e1(0x980)]=_0xd6eb49,_0x5bfe4a[_0x63f3e1(0x203a)]=_0x4a65b1;switch(_0x1452ca){case _0x63f3e1(0xbe2):_0x5bfe4a['note']();break;}function _0x4fa9e7(_0x19eb44){const _0x41807d=_0x63f3e1;_0x1c240a[_0x41807d(0x1426)]({'to':_0x5bfe4a[_0x41807d(0x155e)]['to'][_0x41807d(0x1f66)](','),'body':_0x19eb44});}function _0x3fe5e1(){const _0xf4911f=_0x63f3e1;_0x5bfe4a[_0xf4911f(0x155e)]['to']&&_0x5bfe4a['message'][_0xf4911f(0x1ed9)]&&(_0x5bfe4a['message']['to'][_0xf4911f(0xfd0)]?_0x4fa9e7(_0x5bfe4a['message']['body']):_0x3f87a5[_0xf4911f(0x218e)]('To\x20is\x20mandatory'));}function _0x4a785b(_0x43c67e){const _0x4f7c40=_0x63f3e1;if(_0x43c67e){try{_0x39641b()[_0x4f7c40(0xc7f)][_0x4f7c40(0xe08)]=/{{([\s\S]+?)}}/g;const _0x2b692c=_0x39641b()[_0x4f7c40(0x2330)](_0x43c67e[_0x4f7c40(0x327)]),_0x50a58f={'user':_0x5bfe4a[_0x4f7c40(0xe76)],'account':_0x479752};_0x5bfe4a[_0x4f7c40(0x155e)][_0x4f7c40(0x1ed9)]+='\x20'+_0x2b692c(_0x50a58f),_0x5bfe4a[_0x4f7c40(0x7df)][_0x4f7c40(0x1e34)](_0x5bfe4a[_0x4f7c40(0x155e)][_0x4f7c40(0x1ed9)]);}catch(_0x22d5b9){_0x5bfe4a[_0x4f7c40(0x155e)]['body']+='\x20'+_0x43c67e[_0x4f7c40(0x327)],_0x5bfe4a[_0x4f7c40(0x7df)][_0x4f7c40(0x1e34)](_0x5bfe4a[_0x4f7c40(0x155e)][_0x4f7c40(0x1ed9)]);}_0x5bfe4a[_0x4f7c40(0x5fa)]=null;}}function _0x279ba2(_0x17bad7){const _0x5331c4=_0x63f3e1,_0x3ff815=_0x11288f[_0x5331c4(0x11f4)]();let _0x4655c8=[];return _0x4b10cb[_0x5331c4(0x1c25)][_0x5331c4(0xbf7)]({'filter':_0x17bad7,'WhatsappAccountId':_0x479752['id']})[_0x5331c4(0x1d77)]['then'](function(_0x6200d0){const _0x3a4ca0=_0x5331c4;return _0x4655c8=_0x39641b()[_0x3a4ca0(0x298a)](_0x4655c8,_0x6200d0['rows']),_0x4b10cb[_0x3a4ca0(0x1c25)][_0x3a4ca0(0xbf7)]({'filter':_0x17bad7})[_0x3a4ca0(0x1d77)];})[_0x5331c4(0x1cb0)](function(_0x223b3e){const _0x4d948f=_0x5331c4;_0x4655c8=_0x39641b()[_0x4d948f(0x298a)](_0x4655c8,_0x39641b()[_0x4d948f(0x1c99)](_0x223b3e[_0x4d948f(0x2214)],function(_0x3bfefb){const _0x89847c=_0x4d948f;return!_0x3bfefb['MailAccountId']&&!_0x3bfefb[_0x89847c(0x18e9)]&&!_0x3bfefb[_0x89847c(0xfc8)]&&!_0x3bfefb[_0x89847c(0x1d1e)]&&!_0x3bfefb[_0x89847c(0x67c)];})),_0x3ff815[_0x4d948f(0x19a3)](_0x4655c8);})[_0x5331c4(0x1c4)](function(_0xb6830f){const _0x20b509=_0x5331c4;_0x3ff815[_0x20b509(0x988)](_0xb6830f);}),_0x3ff815[_0x5331c4(0x2061)];}function _0x41a938(_0x3bc439){const _0x1225e6=_0x63f3e1;let _0x358762='';return _0x3bc439[_0x1225e6(0x1491)]&&_0x3bc439['firstName']!==_0x3bc439[_0x1225e6(0x1ce6)]&&(_0x358762+=_0x3bc439[_0x1225e6(0x1491)]+'\x20'),_0x3bc439['lastName']&&_0x3bc439[_0x1225e6(0x1fbb)]!==_0x3bc439[_0x1225e6(0x1ce6)]&&(_0x358762+=_0x3bc439[_0x1225e6(0x1fbb)]+'\x20'),_0x358762+='<'+_0x3bc439[_0x1225e6(0x1ce6)]+'>';}function _0x4a65b1(_0x49b878){const _0x145c00=_0x63f3e1,_0x4d982c=_0x49b878;if(_0x39641b()[_0x145c00(0x1b5c)](_0x4d982c))return _0x49b878[_0x145c00(0x1ce6)];if(_0x1bc70d(_0x4d982c))return _0x4d982c;return _0x3f87a5[_0x145c00(0x218e)](_0x145c00(0x140d)+_0x4d982c+'\x20is\x20not\x20valid'),null;}function _0xd6eb49(_0x430c72){const _0x46c314=_0x63f3e1;if(_0x479752&&_0x479752['ListId'])return _0x4b10cb[_0x46c314(0xbe7)][_0x46c314(0xbf7)]({'ListId':_0x479752[_0x46c314(0x20a6)],'nolimit':!![],'filter':_0x430c72,'fields':_0x46c314(0x78d)})[_0x46c314(0x1d77)][_0x46c314(0x1cb0)](function(_0x388bd3){const _0x3d0d49=_0x46c314;return _0x388bd3[_0x3d0d49(0x2214)];});return[];}function _0x3a0cf4(){const _0x504cf7=_0x63f3e1;_0x1c240a[_0x504cf7(0x696)]();}function _0x1bc70d(_0xbf2268){const _0x3f3686=_0x63f3e1,_0x444ea8=/^(\+|\d)[0-9]{7,16}$/;return _0x444ea8[_0x3f3686(0x26a1)](_0xbf2268);}function _0x426c37(){const _0x324861=_0x63f3e1;_0x5bfe4a[_0x324861(0x1105)]=!![];}function _0x57946e(){const _0x1fc0d6=_0x63f3e1;_0x5bfe4a[_0x1fc0d6(0x155e)][_0x1fc0d6(0x1ed9)]&&_0x1c240a[_0x1fc0d6(0x1426)]({'secret':!![],'body':_0x5bfe4a[_0x1fc0d6(0x155e)]['body']});}}const _0x5f5c57=_0x320624;;_0x5f2c5d['$inject']=[_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x10e4),_0x5537c6(0x1072),'user',_0x5537c6(0x1b68)];function _0x5f2c5d(_0x63b031,_0x7cf85,_0x2afea1,_0x481320,_0x48e62a,_0x45436d,_0x1166fc){const _0x427d32=_0x5537c6,_0x229ce6=this;_0x229ce6[_0x427d32(0x1a7c)]=[],_0x229ce6[_0x427d32(0xdf2)]=[],_0x229ce6[_0x427d32(0x10e4)]=angular[_0x427d32(0x17fe)](_0x481320);!_0x229ce6['interaction'][_0x427d32(0x1746)]&&(_0x229ce6[_0x427d32(0x10e4)][_0x427d32(0x1746)]=null);_0x229ce6['channel']=_0x48e62a,_0x229ce6['apiRoute']=_0x229ce6['channel']+'Interaction',_0x229ce6['apiAccountRoute']=_0x229ce6['channel']+(_0x229ce6[_0x427d32(0x1072)]===_0x427d32(0x174c)?'Website':_0x427d32(0x1649)),_0x229ce6['accountProperty']=_0x39641b()[_0x427d32(0x432)](_0x229ce6['channel'])+(_0x229ce6[_0x427d32(0x1072)]===_0x427d32(0x174c)?_0x427d32(0x11aa):_0x427d32(0x1649))+'Id',_0x229ce6['firstLevelDisposition']=null,_0x229ce6[_0x427d32(0x1935)]=![],_0x229ce6[_0x427d32(0x12a0)]='',_0x229ce6[_0x427d32(0x5c8)]=_0x45436d[_0x427d32(0x2478)]||_0x45436d['chatPause']||_0x45436d[_0x427d32(0x2035)]||_0x45436d[_0x427d32(0x1c7d)]||_0x45436d['faxPause'],_0x229ce6['onDispositionChange']=_0x3f387e,_0x229ce6[_0x427d32(0x1a49)]=_0x449927,_0x229ce6[_0x427d32(0x1471)]=_0x2692de,_0x229ce6[_0x427d32(0xda0)]=_0x2d36da;function _0xc62b98(){const _0x3f6ce2=_0x427d32;let _0x467c5d=[];const _0x18e021={'fields':_0x3f6ce2(0x2999),'sort':_0x3f6ce2(0x16b6),'nolimit':!![]};_0x18e021[_0x229ce6['accountProperty']]=_0x481320[_0x229ce6[_0x3f6ce2(0x1738)]],_0x2afea1[_0x229ce6[_0x3f6ce2(0xd4b)]]['get']({'id':_0x481320[_0x229ce6[_0x3f6ce2(0x1738)]]})['$promise'][_0x3f6ce2(0x1cb0)](function(_0x34d432){const _0x6c649f=_0x3f6ce2;return _0x229ce6[_0x6c649f(0x1935)]=_0x34d432[_0x6c649f(0x1935)],_0x229ce6[_0x6c649f(0x1935)]&&(_0x229ce6['mandatoryDispositionPause']=_0x34d432[_0x6c649f(0x12a0)][_0x6c649f(0x16b6)]),_0x2afea1[_0x6c649f(0x1746)][_0x6c649f(0xbf7)](_0x18e021)['$promise'];})[_0x3f6ce2(0x1cb0)](function(_0xfdd15d){const _0x5415bb=_0x3f6ce2;return _0xfdd15d[_0x5415bb(0x2214)][_0x5415bb(0xfd0)]&&(_0x467c5d=_0x39641b()[_0x5415bb(0x298a)](_0x467c5d,_0xfdd15d[_0x5415bb(0x2214)])),_0x2afea1[_0x5415bb(0x1746)][_0x5415bb(0xbf7)]({'MailAccountId':_0x5415bb(0xd38),'FaxAccountId':_0x5415bb(0xd38),'SmsAccountId':'null','WhatsappAccountId':_0x5415bb(0xd38),'OpenchannelAccountId':'null','ChatWebsiteId':'null','ListId':_0x5415bb(0xd38)})['$promise'];})[_0x3f6ce2(0x1cb0)](function(_0x396e0f){const _0x33932f=_0x3f6ce2;_0x396e0f[_0x33932f(0x2214)][_0x33932f(0xfd0)]&&(_0x467c5d=_0x39641b()[_0x33932f(0x298a)](_0x467c5d,_0x396e0f['rows']));})['catch'](function(_0x446a81){console['error'](_0x446a81);})['finally'](function(){const _0x39b2b7=_0x3f6ce2;_0x229ce6[_0x39b2b7(0xdf2)]=_0x39641b()[_0x39b2b7(0x17ca)](_0x467c5d,[_0x39b2b7(0x16b6)],[_0x39b2b7(0x24cc)]),_0x535eb3();});}function _0x535eb3(){const _0xe67370=_0x427d32;_0x229ce6['mandatoryDisposition']&&!_0x229ce6['wasUserInPause']&&_0x2afea1['user'][_0xe67370(0x785)]({'id':_0x45436d['id'],'type':_0x229ce6[_0xe67370(0x12a0)]||_0xe67370(0x12c2)})[_0xe67370(0x1d77)][_0xe67370(0x1cb0)](function(){})[_0xe67370(0x1c4)](function(_0x35ea64){const _0xf6570e=_0xe67370;console[_0xf6570e(0x218e)](_0x35ea64);});}function _0x3f387e(_0x3f16a4){const _0x18490a=_0x427d32;if(_0x3f16a4==='first'){_0x229ce6[_0x18490a(0x18fe)]=_0x229ce6[_0x18490a(0x8ba)]?_0x39641b()['some'](_0x229ce6['dispositions'],[_0x18490a(0x55e),_0x229ce6[_0x18490a(0x8ba)]['id']]):![];if(!_0x229ce6[_0x18490a(0x8ba)])_0x229ce6[_0x18490a(0x1aeb)]=undefined;}else _0x3f16a4==='second'&&(_0x229ce6[_0x18490a(0x1d98)]=_0x39641b()[_0x18490a(0x727)](_0x229ce6[_0x18490a(0xdf2)],['ParentId',_0x229ce6[_0x18490a(0x1aeb)]['id']]));}function _0x449927(_0x16579d){const _0x34ec1f=_0x427d32;if(_0x16579d===_0x34ec1f(0x1e82))_0x229ce6[_0x34ec1f(0x1aeb)]=undefined,_0x229ce6[_0x34ec1f(0x20cf)]=undefined;else _0x16579d===_0x34ec1f(0x1dd0)&&(_0x229ce6[_0x34ec1f(0x20cf)]=undefined);}function _0x2692de(){const _0x2558f6=_0x427d32;_0x229ce6['errors']=[],_0x229ce6[_0x2558f6(0x10e4)][_0x2558f6(0x21ab)]=_0x45436d['id'],_0x229ce6['interaction'][_0x2558f6(0x22aa)]=!![],_0x229ce6[_0x2558f6(0x10e4)][_0x2558f6(0xbd2)]=_0x2558f6(0x1eff),_0x229ce6[_0x2558f6(0x10e4)][_0x2558f6(0x1746)]=_0x229ce6[_0x2558f6(0x8ba)]?_0x229ce6[_0x2558f6(0x8ba)][_0x2558f6(0x16b6)]:null,_0x229ce6[_0x2558f6(0x10e4)][_0x2558f6(0x15b4)]=_0x229ce6['secondLevelDisposition']?_0x229ce6['secondLevelDisposition'][_0x2558f6(0x16b6)]:undefined,_0x229ce6[_0x2558f6(0x10e4)][_0x2558f6(0x24fc)]=_0x229ce6['thirdLevelDisposition']?_0x229ce6['thirdLevelDisposition']['name']:undefined,_0x2afea1[_0x229ce6[_0x2558f6(0x2847)]]?_0x2afea1[_0x229ce6[_0x2558f6(0x2847)]][_0x2558f6(0x687)](_0x39641b()[_0x2558f6(0x169b)](_0x229ce6['interaction'],[_0x2558f6(0x1285),'FaxAccountId','SmsAccountId',_0x2558f6(0xfc8),'ChatWebsiteId','OpenchannelAccountId',_0x2558f6(0x22aa),_0x2558f6(0xbd2),_0x2558f6(0x1746),'secondDisposition',_0x2558f6(0x24fc),'id',_0x2558f6(0xbe2),_0x2558f6(0x21ab)]))[_0x2558f6(0x1d77)][_0x2558f6(0x1cb0)](function(_0x546236){const _0x28e127=_0x2558f6;_0x229ce6['interaction']=_0x546236,_0x229ce6[_0x28e127(0x1072)]===_0x28e127(0x2651)&&_0x1166fc[_0x28e127(0x13bc)](_0x229ce6[_0x28e127(0x10e4)]['id']),_0x7cf85[_0x28e127(0x829)]({'title':_0x28e127(0x284b),'msg':_0x28e127(0x7c1)});})[_0x2558f6(0x1cb0)](function(){_0x2d36da(!![]);})[_0x2558f6(0x1c4)](function(_0x2adcc3){const _0x4c8572=_0x2558f6;if(_0x2adcc3['data']&&_0x2adcc3[_0x4c8572(0x25c)][_0x4c8572(0x1a7c)]&&_0x2adcc3[_0x4c8572(0x25c)][_0x4c8572(0x1a7c)][_0x4c8572(0xfd0)]){_0x229ce6[_0x4c8572(0x1a7c)]=_0x2adcc3['data']['errors']||[{'message':_0x2adcc3['toString'](),'type':_0x4c8572(0xd23)}];for(let _0x543181=0x0;_0x543181<_0x2adcc3['data'][_0x4c8572(0x1a7c)][_0x4c8572(0xfd0)];_0x543181++){_0x7cf85[_0x4c8572(0x218e)]({'title':_0x2adcc3['data']['errors'][_0x543181]['type'],'msg':_0x2adcc3[_0x4c8572(0x25c)][_0x4c8572(0x1a7c)][_0x543181]['message']});}}else _0x7cf85[_0x4c8572(0x218e)]({'title':_0x2adcc3[_0x4c8572(0x291)]?_0x4c8572(0xeb9)+_0x2adcc3[_0x4c8572(0x291)]+_0x4c8572(0x1657)+_0x2adcc3[_0x4c8572(0xc22)]:'api.variable.update','msg':_0x2adcc3[_0x4c8572(0x25c)]?JSON[_0x4c8572(0x2701)](_0x2adcc3[_0x4c8572(0x25c)]['message']):_0x2adcc3[_0x4c8572(0x147f)]()});}):_0x2d36da(![]);}function _0x2d36da(_0xbc7aca){const _0x584c98=_0x427d32;_0x63b031[_0x584c98(0x1426)](_0xbc7aca);}_0xc62b98();}const _0x1f4033=_0x5f2c5d;;_0x1d2296['$inject']=[_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x10e4),'channel',_0x5537c6(0xfbf)];function _0x1d2296(_0xa777af,_0x36e3d5,_0x29de5d,_0x2ef0df,_0x45ab98,_0x32f7be){const _0x211d95=_0x5537c6,_0x1fb175=this;_0x1fb175[_0x211d95(0x1a7c)]=[],_0x1fb175[_0x211d95(0xfbf)]=_0x32f7be,_0x1fb175[_0x211d95(0x10e4)]=angular[_0x211d95(0x17fe)](_0x2ef0df),_0x1fb175[_0x211d95(0x10e4)][_0x211d95(0x190)]=_0x39641b()[_0x211d95(0x1de2)](_0x1fb175[_0x211d95(0x10e4)]['Tags'],function(_0x179df5){const _0x3acd60=_0x211d95;return{'id':_0x179df5['id'],'name':_0x179df5[_0x3acd60(0x16b6)],'color':_0x179df5[_0x3acd60(0x28b8)]};}),_0x1fb175[_0x211d95(0x1072)]=_0x45ab98,_0x1fb175['autocompleteRequireMatch']=!![],_0x1fb175[_0x211d95(0xea4)]=_0x441516,_0x1fb175['closeDialog']=_0x4aae74,_0x1fb175[_0x211d95(0x2847)]=_0x1fb175[_0x211d95(0x1072)]+_0x211d95(0x2735);function _0x441516(){const _0x43ea1b=_0x211d95;_0x1fb175[_0x43ea1b(0x1a7c)]=[];if(_0x29de5d[_0x1fb175[_0x43ea1b(0x2847)]])return _0x29de5d[_0x1fb175[_0x43ea1b(0x2847)]]['addTags']({'id':_0x1fb175[_0x43ea1b(0x10e4)]['id'],'ids':_0x39641b()['map'](_0x1fb175[_0x43ea1b(0x10e4)][_0x43ea1b(0x190)],'id')})[_0x43ea1b(0x1d77)][_0x43ea1b(0x1cb0)](function(){const _0x5c6cb7=_0x43ea1b;_0x36e3d5[_0x5c6cb7(0x829)]({'title':_0x5c6cb7(0x685),'msg':_0x5c6cb7(0x1006)}),_0x2ef0df[_0x5c6cb7(0x190)]=_0x1fb175[_0x5c6cb7(0x10e4)]['Tags'],_0x4aae74(!![]);})[_0x43ea1b(0x1c4)](function(_0x4cdbe9){const _0x57bc2f=_0x43ea1b;if(_0x4cdbe9[_0x57bc2f(0x25c)]&&_0x4cdbe9[_0x57bc2f(0x25c)]['errors']&&_0x4cdbe9['data'][_0x57bc2f(0x1a7c)]['length'])for(let _0x31c500=0x0;_0x31c500<_0x4cdbe9[_0x57bc2f(0x25c)][_0x57bc2f(0x1a7c)]['length'];_0x31c500+=0x1){_0x36e3d5['error']({'title':_0x4cdbe9[_0x57bc2f(0x25c)][_0x57bc2f(0x1a7c)][_0x31c500][_0x57bc2f(0x66a)],'msg':_0x4cdbe9[_0x57bc2f(0x25c)][_0x57bc2f(0x1a7c)][_0x31c500]['message']});}else _0x36e3d5[_0x57bc2f(0x218e)]({'title':_0x4cdbe9['status']?_0x57bc2f(0xeb9)+_0x4cdbe9[_0x57bc2f(0x291)]+_0x57bc2f(0x1657)+_0x4cdbe9[_0x57bc2f(0xc22)]:_0x57bc2f(0xd23),'msg':_0x4cdbe9[_0x57bc2f(0x25c)]?JSON[_0x57bc2f(0x2701)](_0x4cdbe9[_0x57bc2f(0x25c)]['message']):_0x4cdbe9[_0x57bc2f(0x147f)]()});});else _0x4aae74(![]);}function _0x4aae74(_0x178c3b){const _0x55d868=_0x211d95;_0xa777af[_0x55d868(0x1426)](_0x178c3b);}}const _0x387f77=_0x1d2296;;_0x5e52e7[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$timeout',_0x5537c6(0x1774),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1072),_0x5537c6(0x155e),_0x5537c6(0x1539)];function _0x5e52e7(_0x4c748f,_0x121590,_0x2d1619,_0x4de1a4,_0x31bcb2,_0x58974b,_0x8c82ca,_0x519146){const _0x5eda88=_0x5537c6,_0x1c98b2=this;_0x1c98b2['currentUser']=_0x2d1619[_0x5eda88(0x21e8)](),_0x1c98b2[_0x5eda88(0x1072)]=_0x58974b[_0x5eda88(0x1680)](),_0x1c98b2[_0x5eda88(0x155e)]=_0x8c82ca,_0x1c98b2['account']=_0x519146,_0x1c98b2[_0x5eda88(0x29b3)]={'id':0x0,'type':_0x5eda88(0x11cf)},_0x1c98b2['queues']={'count':0x0,'rows':[]},_0x1c98b2[_0x5eda88(0xc12)]=_0x1c98b2[_0x5eda88(0x971)],_0x1c98b2[_0x5eda88(0xbcb)]=_0x1c98b2['channel']+_0x5eda88(0x2687),_0x1c98b2[_0x5eda88(0xec8)]=_0x1c98b2[_0x5eda88(0x1072)]+_0x5eda88(0x13a5),_0x1c98b2['onTransfer']=_0x450a21,_0x1c98b2[_0x5eda88(0xda0)]=_0x17d160,_0x1c98b2[_0x5eda88(0x1a8e)]=_0x1a701e,_0x1c98b2[_0x5eda88(0x1a8e)]();function _0x1a701e(){const _0x8f5d85=_0x5eda88;return _0x4de1a4[_0x8f5d85(0xebe)][_0x8f5d85(0xbf7)]({'fields':_0x8f5d85(0x43c),'role':'agent','sort':'name','nolimit':!![]})['$promise'][_0x8f5d85(0x1cb0)](function(_0x4d1aa0){const _0x46db8e=_0x8f5d85;return _0x1c98b2[_0x46db8e(0xc12)]=_0x4d1aa0||{'count':0x0,'rows':[]},_0x4de1a4[_0x1c98b2[_0x46db8e(0xbcb)]][_0x46db8e(0xbf7)]({'fields':'id,name','sort':'name','nolimit':!![]})[_0x46db8e(0x1d77)];})[_0x8f5d85(0x1cb0)](function(_0x51a87b){const _0xb275bd=_0x8f5d85;_0x1c98b2[_0xb275bd(0x971)]=_0x51a87b||{'count':0x0,'rows':[]};})[_0x8f5d85(0x1c4)](function(_0xf49592){console['error'](_0xf49592);});}function _0x17d160(_0x84bdec){_0x4c748f['hide'](_0x84bdec);}function _0x450a21(){_0x17d160(!![]),_0x121590(function(){const _0x58dcdf=a0_0x5cbd;return _0x4de1a4[_0x58dcdf(0x1a00)][_0x1c98b2[_0x58dcdf(0x29b3)][_0x58dcdf(0x66a)]==='agent'?_0x58dcdf(0x3e5):_0x1c98b2['queueNotifyMethod']]({'id':_0x1c98b2[_0x58dcdf(0x29b3)]['id'],'messageId':_0x1c98b2[_0x58dcdf(0x155e)]['id'],'channel':_0x1c98b2[_0x58dcdf(0x1072)]})['$promise']['then'](function(){const _0x96c528=_0x58dcdf;_0x31bcb2[_0x96c528(0x829)]({'title':_0x96c528(0x4b3),'msg':_0x96c528(0x19fb)+_0x1c98b2[_0x96c528(0x29b3)][_0x96c528(0x66a)]+'\x20has\x20been\x20done!'});})[_0x58dcdf(0x1c4)](function(_0x2d8335){const _0x20de97=_0x58dcdf;if(_0x2d8335['data']&&_0x2d8335['data'][_0x20de97(0x1a7c)]&&_0x2d8335[_0x20de97(0x25c)][_0x20de97(0x1a7c)][_0x20de97(0xfd0)]){_0x1c98b2[_0x20de97(0x1a7c)]=_0x2d8335[_0x20de97(0x25c)]['errors']||[{'message':_0x2d8335[_0x20de97(0x147f)](),'type':_0x20de97(0x1ad3)}];for(let _0x8597ea=0x0;_0x8597ea<_0x2d8335[_0x20de97(0x25c)][_0x20de97(0x1a7c)][_0x20de97(0xfd0)];_0x8597ea++){_0x31bcb2[_0x20de97(0x218e)]({'title':_0x2d8335['data'][_0x20de97(0x1a7c)][_0x8597ea][_0x20de97(0x66a)],'msg':_0x2d8335['data'][_0x20de97(0x1a7c)][_0x8597ea][_0x20de97(0x155e)]});}}else _0x31bcb2[_0x20de97(0x218e)]({'title':_0x2d8335[_0x20de97(0x291)]?_0x20de97(0xeb9)+_0x2d8335[_0x20de97(0x291)]+_0x20de97(0x1657)+_0x2d8335[_0x20de97(0xc22)]:'api.rpc.notify','msg':_0x2d8335[_0x20de97(0x25c)]?JSON[_0x20de97(0x2701)](_0x2d8335[_0x20de97(0x25c)][_0x20de97(0x155e)]):_0x2d8335[_0x20de97(0x147f)]()});});},0x1388);}}const _0x18bad7=_0x5e52e7;;_0x23f407[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$q','$mdDialog',_0x5537c6(0x2766),'api',_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x1ae),'$rootScope','$timeout',_0x5537c6(0xde8)];function _0x23f407(_0x237e69,_0x159259,_0x5f06a6,_0x4813cf,_0x7302e6,_0x24ea1c,_0x545b90,_0x4539d2,_0x509582,_0x476ed6,_0x3fc017){const _0xe248c0=_0x5537c6,_0x4558ac=this;_0x4558ac[_0xe248c0(0xf4e)]={},_0x4558ac[_0xe248c0(0x17a2)]=!![],_0x4558ac[_0xe248c0(0xd37)]=![],_0x4558ac[_0xe248c0(0x21b9)]=_0x3fc017[_0xe248c0(0x21b9)](),_0x4558ac[_0xe248c0(0x1160)]=_0x5c3c82,_0x4558ac[_0xe248c0(0x122c)]=_0x25cf48,_0x4558ac['isJsonString']=_0xc9f1c3,_0x4558ac[_0xe248c0(0x9e3)]=_0x40f911,_0x4558ac[_0xe248c0(0x1d78)]=_0xe4558e,_0x4558ac[_0xe248c0(0xe5a)]=_0x33469e,_0x4558ac[_0xe248c0(0x172f)]=_0x4b264d,_0x4558ac[_0xe248c0(0x1a8e)]=_0x21a720,_0x4558ac[_0xe248c0(0x2130)]=function(_0x32419d){const _0x56bd0d=_0xe248c0;if(_0x4558ac[_0x56bd0d(0xf4e)][_0x56bd0d(0x28d5)]){const _0x5ceedd=_0x5f06a6[_0x56bd0d(0x1551)]()[_0x56bd0d(0x1386)](_0x4539d2[_0x56bd0d(0x25cc)](_0x56bd0d(0x1707)))[_0x56bd0d(0x862)](_0x4539d2[_0x56bd0d(0x25cc)](_0x56bd0d(0x173e)))[_0x56bd0d(0x1152)]('')[_0x56bd0d(0x15ad)](_0x56bd0d(0xbce))[_0x56bd0d(0x728)](_0x32419d)['ok'](_0x4539d2[_0x56bd0d(0x25cc)](_0x56bd0d(0x1668)))[_0x56bd0d(0x696)](_0x4539d2[_0x56bd0d(0x25cc)](_0x56bd0d(0x1091)));_0x5f06a6[_0x56bd0d(0xe27)](_0x5ceedd)[_0x56bd0d(0x1cb0)](function(){const _0x4d4706=_0x56bd0d;_0x4558ac[_0x4d4706(0xd37)]=![],_0x4558ac[_0x4d4706(0x12a7)]['currentPage']=undefined,_0xbb2b25(),_0x4558ac[_0x4d4706(0xf4e)]['reset']();});}};function _0xbb2b25(){const _0x18c702=_0xe248c0;try{_0x237e69['$parent'][_0x18c702(0x17bc)][_0x18c702(0x17bc)]['vm'][_0x18c702(0x1c7c)]();}catch(_0x136260){_0x24ea1c['error']({'title':'ERROR\x20UPDATE\x20LOCAL\x20TABS','msg':_0x18c702(0x1ab7)});}}function _0x21a720(_0x2884e3){const _0x24ba41=_0xe248c0;_0x4558ac[_0x24ba41(0x291e)]=_0x2884e3;if(_0x4558ac[_0x24ba41(0x291e)]){_0x4558ac['call']=_0x4558ac[_0x24ba41(0x291e)][_0x24ba41(0x205d)],_0x4558ac['starttime']=_0x4558ac[_0x24ba41(0x291e)][_0x24ba41(0x85f)],_0x4558ac[_0x24ba41(0x8b1)]=_0x4558ac[_0x24ba41(0x291e)][_0x24ba41(0x8b1)],_0x4558ac[_0x24ba41(0x12a7)]=_0x4558ac[_0x24ba41(0x291e)][_0x24ba41(0x12a7)];if(_0x4558ac[_0x24ba41(0x12a7)]){if(_0x39641b()['isObjectLike'](_0x4558ac[_0x24ba41(0x12a7)][_0x24ba41(0x1b8c)])){}else _0x4558ac['isJsonString'](_0x4558ac['project'][_0x24ba41(0x1b8c)])?_0x4558ac[_0x24ba41(0x12a7)][_0x24ba41(0x1b8c)]=JSON['parse'](_0x4558ac['project'][_0x24ba41(0x1b8c)]):_0x4558ac[_0x24ba41(0x12a7)][_0x24ba41(0x1b8c)]=undefined;_0x4558ac[_0x24ba41(0x12a7)][_0x24ba41(0x1ea1)]=_0x4558ac[_0x24ba41(0x12a7)][_0x24ba41(0x1ea1)]||{},_0x4558ac[_0x24ba41(0x12a7)][_0x24ba41(0x46a)]!==undefined&&_0x476ed6(function(){const _0x31cfc4=_0x24ba41;_0x509582[_0x31cfc4(0x692)](_0x31cfc4(0x24d1),{'page':_0x4558ac[_0x31cfc4(0x12a7)]['currentPage']});}),_0x237e69['$on'](_0x24ba41(0x2748),function(_0x3eccd8,_0x423368){const _0x1e741c=_0x24ba41;if(_0x423368[_0x1e741c(0x46a)]){_0x4558ac[_0x1e741c(0x12a7)][_0x1e741c(0x46a)]=_0x423368[_0x1e741c(0x46a)][_0x1e741c(0x83d)]-0x1,_0xbb2b25();_0x4558ac[_0x1e741c(0x12a7)][_0x1e741c(0x2375)]&&(_0x423368[_0x1e741c(0x46a)][_0x1e741c(0x83d)]>=0x1&&_0x423368['currentPage']['number']<_0x4558ac[_0x1e741c(0x12a7)][_0x1e741c(0x1b8c)][_0x1e741c(0x1064)][_0x1e741c(0xfd0)]?_0x4558ac[_0x1e741c(0xd37)]=!![]:_0x4558ac[_0x1e741c(0xd37)]=![]);if(_0x4558ac['project'][_0x1e741c(0x1b8c)]&&_0x4558ac[_0x1e741c(0x12a7)][_0x1e741c(0x1b8c)][_0x1e741c(0x1064)])for(let _0x1b5f01=0x0,_0x1d10dc=_0x4558ac[_0x1e741c(0x12a7)]['formData'][_0x1e741c(0x1064)]['length'];_0x1b5f01<_0x1d10dc;_0x1b5f01++){if(_0x423368[_0x1e741c(0x46a)][_0x1e741c(0x83d)]<_0x1b5f01+0x1&&_0x4558ac['project'][_0x1e741c(0x1b8c)]['pages'][_0x1b5f01][_0x1e741c(0x263)])for(let _0x3c93cd=0x0,_0x33e7e6=_0x4558ac[_0x1e741c(0x12a7)][_0x1e741c(0x1b8c)][_0x1e741c(0x1064)][_0x1b5f01]['elements'][_0x1e741c(0xfd0)];_0x3c93cd<_0x33e7e6;_0x3c93cd++){_0x4558ac['project'][_0x1e741c(0x1b8c)][_0x1e741c(0x1064)][_0x1b5f01]['elements'][_0x3c93cd]['type']===_0x1e741c(0x2823)&&_0x4558ac['project'][_0x1e741c(0x1b8c)][_0x1e741c(0x1064)][_0x1b5f01]['elements'][_0x3c93cd][_0x1e741c(0x2823)]&&delete _0x4558ac['project'][_0x1e741c(0x1ea1)][_0x4558ac['project'][_0x1e741c(0x1b8c)][_0x1e741c(0x1064)][_0x1b5f01][_0x1e741c(0x263)][_0x3c93cd][_0x1e741c(0x2823)]['id']];}}}});}}}function _0xc9f1c3(_0x4e34a7){const _0x33f1e0=_0xe248c0;if(_0x39641b()[_0x33f1e0(0x958)](_0x4e34a7))return![];try{JSON[_0x33f1e0(0xefe)](_0x4e34a7);}catch(_0x1709bc){return![];}return!![];}function _0x25cf48(_0x52832c,_0x1f3b7a){const _0x561022=_0xe248c0;try{_0x237e69[_0x561022(0x17bc)][_0x561022(0x17bc)][_0x561022(0x17bc)]['vm'][_0x561022(0x1bac)](_0x1f3b7a);}catch(_0x2bece5){_0x24ea1c[_0x561022(0x218e)]({'title':_0x561022(0x41e),'msg':_0x561022(0x2798)});}}function _0x405ea1(_0xd63c2f){const _0x1e5c41=_0xe248c0,_0x5f3a41=_0x159259['defer']();return _0x4558ac[_0x1e5c41(0x12a7)][_0x1e5c41(0x1098)]?_0x7302e6['user'][_0x1e5c41(0xf5d)]({'id':_0xd63c2f['id']})[_0x1e5c41(0x1d77)][_0x1e5c41(0x1cb0)](function(){const _0x42992f=_0x1e5c41;_0x5f3a41[_0x42992f(0x19a3)]();})[_0x1e5c41(0x1c4)](function(){const _0xe4eefe=_0x1e5c41;console['log'](_0xe4eefe(0x12d5)),_0x5f3a41[_0xe4eefe(0x19a3)]();}):_0x5f3a41[_0x1e5c41(0x19a3)](),_0x5f3a41['promise'];}function _0x487c27(_0xf506,_0x51bb7a){const _0x1313bf=_0xe248c0,_0x127c71=[],_0x28c690=[],_0x2410f1=_0x545b90['getCurrentUser']();_0x405ea1(_0x2410f1)[_0x1313bf(0x1cb0)](function(){const _0xf47043=_0x1313bf;return _0x7302e6[_0xf47043(0x425)][_0xf47043(0x1c3f)]({'starttime':_0x4558ac[_0xf47043(0x22df)],'membername':_0x4558ac['call']&&_0x4558ac['call'][_0xf47043(0xcbf)]?_0x4558ac['call']['membername']:_0x2410f1[_0xf47043(0x16b6)],'calleridname':_0x4558ac[_0xf47043(0x205d)]&&_0x4558ac['call'][_0xf47043(0xbb5)]?_0x4558ac['call']['calleridname']:undefined,'calleridnum':_0x4558ac['call']&&_0x4558ac['call'][_0xf47043(0x17d3)]?_0x4558ac[_0xf47043(0x205d)][_0xf47043(0x17d3)]:undefined,'queue':_0x4558ac[_0xf47043(0x205d)]&&_0x4558ac[_0xf47043(0x205d)][_0xf47043(0x11cf)]?_0x4558ac[_0xf47043(0x205d)][_0xf47043(0x11cf)]:undefined,'uniqueid':_0x4558ac[_0xf47043(0x205d)]&&_0x4558ac[_0xf47043(0x205d)][_0xf47043(0x1425)]?_0x4558ac[_0xf47043(0x205d)][_0xf47043(0x1425)]:undefined,'VoiceQueueId':_0x4558ac[_0xf47043(0x205d)]&&_0x4558ac['call']['xmd-voicequeueid']?_0x4558ac[_0xf47043(0x205d)]['xmd-voicequeueid']:undefined,'ProjectId':_0x4558ac[_0xf47043(0x12a7)]&&_0x4558ac[_0xf47043(0x12a7)]['id']?_0x4558ac[_0xf47043(0x12a7)]['id']:undefined,'projectname':_0x4558ac['project']&&_0x4558ac['project'][_0xf47043(0x16b6)]?_0x4558ac[_0xf47043(0x12a7)]['name']:undefined,'ContactId':_0x4558ac['contact']&&_0x4558ac[_0xf47043(0x8b1)]['id']?_0x4558ac[_0xf47043(0x8b1)]['id']:undefined,'completed':_0x51bb7a})['$promise'];})['then'](function(_0x2d3ba5){const _0x4ad633=_0x1313bf;if(_0x2d3ba5){const _0x27745d=_0x4558ac[_0x4ad633(0xe5a)](),_0x4783f8=_0x4558ac[_0x4ad633(0x1d78)](),_0x33eace=_0x4558ac[_0x4ad633(0x172f)]();for(let _0x4393a5=0x0;_0x4393a5<_0x27745d['length'];_0x4393a5+=0x1){if(!_0x39641b()[_0x4ad633(0xce9)](String(_0x4783f8[_0x4393a5]))){try{_0x127c71[_0x4ad633(0x2785)](_0x7302e6[_0x4ad633(0x10ad)]['save']({'question':_0x27745d[_0x4393a5],'answer':_0x33eace[_0x4393a5]['type']===_0x4ad633(0x18ec)?_0x543b5a()(String(_0x4783f8[_0x4393a5]))['format']('YYYY-MM-DD'):_0x33eace[_0x4393a5][_0x4ad633(0x66a)]===_0x4ad633(0x161a)?_0x543b5a()(String(_0x4783f8[_0x4393a5]))[_0x4ad633(0x1f31)]('HH:mm'):String(_0x4783f8[_0x4393a5]),'questionId':_0x33eace[_0x4393a5]['id'],'membername':_0x4558ac['call']&&_0x4558ac[_0x4ad633(0x205d)][_0x4ad633(0xcbf)]?_0x4558ac['call'][_0x4ad633(0xcbf)]:_0x2410f1[_0x4ad633(0x16b6)],'calleridname':_0x4558ac[_0x4ad633(0x205d)]&&_0x4558ac[_0x4ad633(0x205d)][_0x4ad633(0xbb5)]?_0x4558ac[_0x4ad633(0x205d)]['calleridname']:undefined,'calleridnum':_0x4558ac['call']&&_0x4558ac[_0x4ad633(0x205d)]['calleridnum']?_0x4558ac[_0x4ad633(0x205d)][_0x4ad633(0x17d3)]:undefined,'queue':_0x4558ac[_0x4ad633(0x205d)]&&_0x4558ac[_0x4ad633(0x205d)][_0x4ad633(0x11cf)]?_0x4558ac['call']['queue']:undefined,'uniqueid':_0x4558ac['call']&&_0x4558ac[_0x4ad633(0x205d)][_0x4ad633(0x1425)]?_0x4558ac[_0x4ad633(0x205d)]['uniqueid']:undefined,'SessionId':_0x2d3ba5['id'],'ProjectId':_0x4558ac[_0x4ad633(0x12a7)]['id'],'projectname':_0x4558ac[_0x4ad633(0x12a7)][_0x4ad633(0x16b6)]}));}catch(_0x4f5d23){console[_0x4ad633(0x218e)]('Unable\x20to\x20convert\x20question',_0x4f5d23);}const _0x10c998=String(_0x4783f8[_0x4393a5])[_0x4ad633(0xbe1)](';');for(let _0x1d70b3=0x0;_0x1d70b3<_0x10c998[_0x4ad633(0xfd0)];_0x1d70b3+=0x1){const _0x538124=_0x10c998[_0x1d70b3][_0x4ad633(0x1730)]();try{_0x28c690['push'](_0x7302e6[_0x4ad633(0x1d59)][_0x4ad633(0x1c3f)]({'question':_0x27745d[_0x4393a5],'questionId':_0x33eace[_0x4393a5]['id'],'answer':_0x33eace[_0x4393a5][_0x4ad633(0x66a)]==='date'?_0x543b5a()(_0x538124)['format'](_0x4ad633(0x17ac)):_0x33eace[_0x4393a5][_0x4ad633(0x66a)]==='time'?_0x543b5a()(_0x538124)[_0x4ad633(0x1f31)](_0x4ad633(0x1ed6)):_0x538124,'membername':_0x4558ac[_0x4ad633(0x205d)]&&_0x4558ac[_0x4ad633(0x205d)][_0x4ad633(0xcbf)]?_0x4558ac[_0x4ad633(0x205d)]['membername']:_0x2410f1['name'],'calleridname':_0x4558ac[_0x4ad633(0x205d)]&&_0x4558ac['call'][_0x4ad633(0xbb5)]?_0x4558ac[_0x4ad633(0x205d)][_0x4ad633(0xbb5)]:undefined,'calleridnum':_0x4558ac[_0x4ad633(0x205d)]&&_0x4558ac[_0x4ad633(0x205d)][_0x4ad633(0x17d3)]?_0x4558ac['call'][_0x4ad633(0x17d3)]:undefined,'queue':_0x4558ac['call']&&_0x4558ac['call'][_0x4ad633(0x11cf)]?_0x4558ac[_0x4ad633(0x205d)]['queue']:undefined,'uniqueid':_0x4558ac[_0x4ad633(0x205d)]&&_0x4558ac[_0x4ad633(0x205d)][_0x4ad633(0x1425)]?_0x4558ac[_0x4ad633(0x205d)][_0x4ad633(0x1425)]:undefined,'SessionId':_0x2d3ba5['id'],'ProjectId':_0x4558ac['project']['id'],'projectname':_0x4558ac[_0x4ad633(0x12a7)][_0x4ad633(0x16b6)]}));}catch(_0xa4a290){console['error']('Unable\x20to\x20convert\x20answer',_0xa4a290);}}}}}return _0x159259[_0x4ad633(0x223b)](_0x127c71)[_0x4ad633(0x1cb0)](function(){const _0x21b42b=_0x4ad633;return _0x159259[_0x21b42b(0x223b)](_0x28c690)[_0x21b42b(0x1cb0)](function(){return _0x2d3ba5;});});})[_0x1313bf(0x1cb0)](function(_0x401d81){const _0x1132a1=_0x1313bf;_0x401d81?_0xf506['resolve'](!![]):_0xf506[_0x1132a1(0x988)]();})[_0x1313bf(0x1c4)](function(_0x153514){const _0x648548=_0x1313bf;if(_0x153514[_0x648548(0x25c)]&&_0x153514[_0x648548(0x25c)]['errors']&&_0x153514[_0x648548(0x25c)][_0x648548(0x1a7c)][_0x648548(0xfd0)]){_0x4558ac[_0x648548(0x1a7c)]=_0x153514[_0x648548(0x25c)][_0x648548(0x1a7c)]||[{'message':_0x153514[_0x648548(0x147f)](),'type':_0x648548(0x9a0)}];for(let _0x16f349=0x0;_0x16f349<_0x153514[_0x648548(0x25c)][_0x648548(0x1a7c)][_0x648548(0xfd0)];_0x16f349+=0x1){_0x24ea1c[_0x648548(0x218e)]({'title':_0x153514[_0x648548(0x25c)][_0x648548(0x1a7c)][_0x16f349][_0x648548(0x66a)],'msg':_0x153514[_0x648548(0x25c)][_0x648548(0x1a7c)][_0x16f349][_0x648548(0x155e)]});}}else _0x24ea1c[_0x648548(0x218e)]({'title':_0x153514[_0x648548(0x291)]?_0x648548(0xeb9)+_0x153514[_0x648548(0x291)]+'\x20-\x20'+_0x153514[_0x648548(0xc22)]:_0x648548(0x9a0),'msg':_0x153514[_0x648548(0x25c)]?JSON['stringify'](_0x153514[_0x648548(0x25c)][_0x648548(0x155e)]):_0x153514[_0x648548(0x147f)]()});_0xf506[_0x648548(0x988)]();});}function _0xa883c9(_0x3d8e73){const _0x2838b5=_0xe248c0;try{_0x237e69[_0x2838b5(0x17bc)][_0x2838b5(0x17bc)]['$parent']['vm'][_0x2838b5(0x85e)](_0x3d8e73);}catch(_0x3a024c){_0x24ea1c['error']({'title':_0x2838b5(0x9d5),'msg':'Error\x20while\x20removing\x20tab'});}}function _0x5c3c82(_0x213a71,_0x5733ee){const _0x19f018=_0xe248c0,_0x38e81a=_0x159259[_0x19f018(0x11f4)]();if(_0x5733ee){const _0x345956=_0x5f06a6['confirm']()[_0x19f018(0x1386)](_0x19f018(0x1542))[_0x19f018(0x1152)]('')[_0x19f018(0x15ad)](_0x19f018(0xbce))[_0x19f018(0x728)](_0x213a71)['ok'](_0x19f018(0x2439))[_0x19f018(0x696)]('NO');_0x5f06a6[_0x19f018(0xe27)](_0x345956)[_0x19f018(0x1cb0)](function(){_0x487c27(_0x38e81a,![]);},function(){const _0x3ecec8=_0x19f018;_0x38e81a[_0x3ecec8(0x19a3)]();});}else _0x487c27(_0x38e81a,!![]);return _0x38e81a['promise']['then'](function(_0x4e7944){const _0x4fb2d3=_0x19f018;_0x4e7944&&(_0x24ea1c[_0x4fb2d3(0x829)]({'title':'Session\x20saved','msg':_0x4fb2d3(0x23a0)}),_0xa883c9(_0x4558ac[_0x4fb2d3(0x291e)]));})[_0x19f018(0x1c4)](function(){const _0x8cc4f1=_0x19f018;_0x24ea1c[_0x8cc4f1(0x218e)]({'title':_0x8cc4f1(0x2911),'msg':_0x8cc4f1(0x296a)});});}function _0x40f911(){const _0xa8d768=_0xe248c0;return _0x4813cf[_0xa8d768(0x9e3)](_0x4558ac[_0xa8d768(0x12a7)]['formData'],_0x4558ac['project'][_0xa8d768(0x1ea1)],![]);}function _0xe4558e(){const _0x40dfe4=_0xe248c0;return _0x4813cf['getResponseSheetRow'](_0x4558ac[_0x40dfe4(0x12a7)][_0x40dfe4(0x1b8c)],_0x4558ac['project'][_0x40dfe4(0x1ea1)]);}function _0x33469e(){const _0x562425=_0xe248c0;return _0x4813cf[_0x562425(0xe5a)](_0x4558ac['project']['formData'],![]);}function _0x4b264d(){const _0x367ea4=_0xe248c0;return _0x4813cf[_0x367ea4(0x172f)](_0x4558ac[_0x367ea4(0x12a7)]['formData'],_0x4558ac['project']['responseData']);}}const _0x5a63d1=_0x23f407;;_0x614638[_0x5537c6(0x15b6)]=[_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x163c),_0x5537c6(0x142b),_0x5537c6(0x1774)];function _0x614638(_0x52643a,_0x33da7e,_0x1cf561,_0x18b27d,_0x3860d2){const _0x24d60=_0x5537c6,_0x587e36=this;_0x587e36[_0x24d60(0x163c)]=_0x1cf561,_0x587e36[_0x24d60(0xebe)]=_0x3860d2[_0x24d60(0x21e8)]();function _0xeafa26(){return function(_0x15dae9){const _0xabd0ce=a0_0x5cbd;if(_0x15dae9[_0xabd0ce(0x291)]===0x194)_0x33da7e[_0xabd0ce(0x28c7)]({'title':_0x52643a['instant'](_0xabd0ce(0x108f)),'msg':_0x52643a[_0xabd0ce(0x25cc)](_0xabd0ce(0x12ef))});else{if(_0x15dae9[_0xabd0ce(0x25c)]&&_0x15dae9[_0xabd0ce(0x25c)][_0xabd0ce(0x1a7c)]&&_0x15dae9['data'][_0xabd0ce(0x1a7c)]['length']){_0x587e36[_0xabd0ce(0x1a7c)]=_0x15dae9[_0xabd0ce(0x25c)][_0xabd0ce(0x1a7c)]||[{'message':_0x15dae9[_0xabd0ce(0x147f)](),'type':'api.openchannelMessage.accept'}];for(let _0x4fa039=0x0;_0x4fa039<_0x15dae9['data'][_0xabd0ce(0x1a7c)][_0xabd0ce(0xfd0)];_0x4fa039+=0x1){_0x33da7e[_0xabd0ce(0x218e)]({'title':_0x15dae9[_0xabd0ce(0x25c)][_0xabd0ce(0x1a7c)][_0x4fa039][_0xabd0ce(0x66a)],'msg':_0x15dae9[_0xabd0ce(0x25c)][_0xabd0ce(0x1a7c)][_0x4fa039][_0xabd0ce(0x155e)]});}}else _0x33da7e['error']({'title':_0x15dae9[_0xabd0ce(0x291)]?_0xabd0ce(0xeb9)+_0x15dae9['status']+_0xabd0ce(0x1657)+_0x15dae9[_0xabd0ce(0xc22)]:_0xabd0ce(0x10ed),'msg':_0x15dae9[_0xabd0ce(0x25c)]?JSON['stringify'](_0x15dae9[_0xabd0ce(0x25c)][_0xabd0ce(0x155e)]):_0x15dae9[_0xabd0ce(0x147f)]()});}};}function _0x1f627f(){const _0x446958=_0x24d60;if(_0x18b27d[_0x587e36['notification'][_0x446958(0x1072)]+_0x446958(0x27df)])return _0x18b27d[_0x587e36[_0x446958(0x163c)][_0x446958(0x1072)]+_0x446958(0x27df)][_0x446958(0xb60)]({'id':_0x587e36[_0x446958(0x163c)]['id'],'UserId':_0x587e36[_0x446958(0xebe)]['id'],'manual':!![]})[_0x446958(0x1d77)]['then'](function(){const _0x1b66e7=_0x446958;_0x33da7e[_0x1b66e7(0x829)]({'title':_0x1b66e7(0xeff),'msg':_0x1b66e7(0x25e9)});})[_0x446958(0x1c4)](_0xeafa26());else _0x33da7e['error']({'title':'API:ERROR','msg':_0x446958(0x1cad)+_0x587e36[_0x446958(0x163c)][_0x446958(0x1072)]+_0x446958(0x27df)});}function _0x4f3316(){const _0x553f4f=_0x24d60;if(_0x18b27d[_0x587e36[_0x553f4f(0x163c)][_0x553f4f(0x1072)]+_0x553f4f(0x27df)])return _0x18b27d[_0x587e36[_0x553f4f(0x163c)]['channel']+'Message'][_0x553f4f(0x988)]({'id':_0x587e36[_0x553f4f(0x163c)]['id'],'UserId':_0x587e36['user']['id']})[_0x553f4f(0x1d77)][_0x553f4f(0x1cb0)](function(){const _0x138a2d=_0x553f4f;_0x33da7e[_0x138a2d(0x829)]({'title':_0x138a2d(0x32c),'msg':'Message\x20has\x20been\x20rejected!'});})[_0x553f4f(0x1c4)](_0xeafa26());else _0x33da7e[_0x553f4f(0x218e)]({'title':_0x553f4f(0x7d3),'msg':_0x553f4f(0x81f)+_0x587e36[_0x553f4f(0x163c)][_0x553f4f(0x1072)]+'Message'});}_0x587e36[_0x24d60(0xb60)]=_0x1f627f,_0x587e36[_0x24d60(0x988)]=_0x4f3316;}const _0x4d6d7b=_0x614638;;function _0x1df716(){const _0x3d21d8=this;function _0x59f85c(_0xdacec2){const _0x3ba3fd=a0_0x5cbd;_0x3d21d8['tab']=_0xdacec2,_0x3d21d8['tab']&&(_0x3d21d8[_0x3ba3fd(0x291e)]['saved']=!![],_0x3d21d8[_0x3ba3fd(0x1d35)]=_0x3d21d8[_0x3ba3fd(0x291e)]['html']);}_0x3d21d8['init']=_0x59f85c;}const _0x30ae6e=_0x1df716;;const _0x13d087=_0x5074a3['p']+_0x5537c6(0x2541);;const _0x5d7417=_0x5074a3['p']+'src/js/modules/main/apps/dashboards/views/general/agent/agent.general.html/agent.general.html';;_0x2d4419[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6)];function _0x2d4419(_0x9ace42){const _0x299864=_0x5537c6;_0x9ace42[_0x299864(0x27e0)](_0x299864(0x1647),{'url':'/general','views':{'content@app':{'templateProvider':[_0x299864(0x225c),_0x299864(0x17be),_0x299864(0x1774),function(_0xdbf771,_0x568541,_0x1e4d9e){const _0x30a4e4=_0x299864;return _0x1e4d9e[_0x30a4e4(0xfbb)]()?_0x568541['fromUrl'](_0x5d7417,_0xdbf771):_0x568541[_0x30a4e4(0xd5f)](_0x13d087,_0xdbf771);}],'controllerProvider':[_0x299864(0x1774),function(_0x5baf80){const _0x426a4d=_0x299864;return _0x5baf80[_0x426a4d(0xfbb)]()?_0x426a4d(0x1ae6):'UserDashboardGeneralController\x20as\x20vm';}]}},'resolve':{'globalUserLists':['apiResolver','Auth',function(_0x4cbc2d,_0x44dd92){const _0x1961fe=_0x299864;return _0x4cbc2d[_0x1961fe(0x19a3)](_0x1961fe(0xbcf),{'id':_0x44dd92['getCurrentUser']()['id'],'sort':_0x1961fe(0x16b6),'nolimit':!![]});}],'globalLists':['apiResolver',function(_0x20b82a){const _0xc214cb=_0x299864;return _0x20b82a[_0xc214cb(0x19a3)](_0xc214cb(0x1b1f),{'sort':_0xc214cb(0x16b6),'nolimit':!![]});}],'globalTags':[_0x299864(0x1e0b),function(_0xca82fb){const _0x786717=_0x299864;return _0xca82fb[_0x786717(0x19a3)](_0x786717(0x1f1),{'sort':_0x786717(0x16b6),'nolimit':!![]});}],'globalCompanies':['apiResolver',function(_0x5a6521){const _0x56c354=_0x299864;return _0x5a6521[_0x56c354(0x19a3)](_0x56c354(0x60d),{'sort':'name','nolimit':!![]});}]},'authenticate':!![],'bodyClass':_0x299864(0xd41)});}angular[_0x5537c6(0x9ab)]('app.dashboards.general',[_0x5537c6(0xf94),'app.dashboards.general.user'])[_0x5537c6(0xa60)](_0x2d4419)[_0x5537c6(0x6e5)](_0x5537c6(0xf33),_0x152a73)[_0x5537c6(0x234a)](_0x5537c6(0x1b68),_0x1447cc)[_0x5537c6(0x12ab)](_0x5537c6(0x2089),_0x5a0917)[_0x5537c6(0x12ab)](_0x5537c6(0x1014),_0x1f67c9)[_0x5537c6(0x12bd)](_0x5537c6(0x1a94),_0x53dcfb)[_0x5537c6(0x6e5)](_0x5537c6(0x154f),_0x2fa412)[_0x5537c6(0x6e5)](_0x5537c6(0x987),_0x1c7030)[_0x5537c6(0x6e5)]('DisposeCallDialogController',_0x578aff)[_0x5537c6(0x6e5)](_0x5537c6(0x186f),_0x189289)[_0x5537c6(0x6e5)](_0x5537c6(0x254d),_0x55c586)[_0x5537c6(0x6e5)](_0x5537c6(0x1ccd),_0x29904c)[_0x5537c6(0x6e5)]('AgentHomeAbandonedBullController',_0x32440b)['controller'](_0x5537c6(0x1c11),_0x2bc6c0)[_0x5537c6(0x6e5)](_0x5537c6(0x52e),_0x14c980)[_0x5537c6(0x6e5)](_0x5537c6(0x42e),_0x15c1fb)[_0x5537c6(0x6e5)](_0x5537c6(0x2775),_0x15b912)[_0x5537c6(0x6e5)](_0x5537c6(0x1fd6),_0x270056)[_0x5537c6(0x6e5)](_0x5537c6(0x2511),_0x13d566)[_0x5537c6(0x6e5)](_0x5537c6(0xfc7),_0x1553dd)[_0x5537c6(0x6e5)]('AgentHomeDashboardMultiChannelChatController',_0x5b0315)[_0x5537c6(0x6e5)](_0x5537c6(0x2341),_0x5d5e2c)['controller'](_0x5537c6(0x3ac),_0x48d5ee)['controller'](_0x5537c6(0x1a06),_0x234344)[_0x5537c6(0x6e5)](_0x5537c6(0x2136),_0x3c2e99)['controller'](_0x5537c6(0x1dcd),_0x48a4c6)['controller'](_0x5537c6(0x1b38),_0x2d0a6c)[_0x5537c6(0x6e5)](_0x5537c6(0x19c),_0x241c44)['controller'](_0x5537c6(0x1453),_0x4d2313)[_0x5537c6(0x6e5)](_0x5537c6(0xb35),_0x41df01)[_0x5537c6(0x6e5)](_0x5537c6(0x1c6c),_0x264dcc)[_0x5537c6(0x6e5)](_0x5537c6(0x1e1f),_0x301d1e)[_0x5537c6(0x6e5)](_0x5537c6(0x1d82),_0x2d5d32)[_0x5537c6(0x6e5)](_0x5537c6(0x5c0),_0x5be5e7)['controller'](_0x5537c6(0xf43),_0x5b9a44)[_0x5537c6(0x6e5)](_0x5537c6(0x2487),_0xdea51)['controller'](_0x5537c6(0x71c),_0x29687f)[_0x5537c6(0x6e5)](_0x5537c6(0x1abe),_0x321fa8)['controller'](_0x5537c6(0x1bed),_0x18a89c)[_0x5537c6(0x2838)](_0x5537c6(0x1958),_0x1fc5fa)[_0x5537c6(0x1c99)](_0x5537c6(0x7b7),_0x307a39)[_0x5537c6(0x6e5)](_0x5537c6(0x4b2),_0x3ac7a5)[_0x5537c6(0x234a)](_0x5537c6(0x19be),_0x4bdcb4)[_0x5537c6(0x6e5)](_0x5537c6(0x1e49),_0x2f3ace)[_0x5537c6(0x6e5)]('ComposeMailInteractionDialogController',_0x3e476a)[_0x5537c6(0x6e5)]('ComposeOpenchannelInteractionDialogController',_0x22c083)[_0x5537c6(0x6e5)](_0x5537c6(0x1959),_0xe23721)[_0x5537c6(0x6e5)]('ComposeWhatsappInteractionDialogController',_0x5f5c57)[_0x5537c6(0x6e5)](_0x5537c6(0x209d),_0x1f4033)[_0x5537c6(0x6e5)](_0x5537c6(0x1726),_0x387f77)[_0x5537c6(0x6e5)](_0x5537c6(0xae8),_0x18bad7)[_0x5537c6(0x6e5)](_0x5537c6(0x6cf),_0x5a63d1)[_0x5537c6(0x6e5)](_0x5537c6(0x2643),_0x4d6d7b)[_0x5537c6(0x6e5)](_0x5537c6(0x1ec4),_0x30ae6e);;const _0x44bb45=_0x5074a3['p']+_0x5537c6(0x1a3d);;_0x476cc6[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),'$interval',_0x5537c6(0x1463),_0x5537c6(0x142b),_0x5537c6(0x1986),_0x5537c6(0x1774),_0x5537c6(0x278a),_0x5537c6(0x44a),_0x5537c6(0x2199)];function _0x476cc6(_0x4c52ca,_0x31af14,_0x10a705,_0x305aa6,_0x347eab,_0x579001,_0x4fdaab,_0x6ed5f2,_0x5021fd){const _0x99cb54=_0x5537c6,_0x5470a1=this;_0x5470a1[_0x99cb54(0xe76)]=_0x579001[_0x99cb54(0x21e8)](),_0x5470a1[_0x99cb54(0x44a)]=_0x6ed5f2,_0x5470a1[_0x99cb54(0x2199)]=_0x5021fd&&_0x5021fd[_0x99cb54(0x184d)]==0x1?_0x5021fd[_0x99cb54(0x2214)][0x0]:null,_0x5470a1[_0x99cb54(0x1b1a)]=_0x579001[_0x99cb54(0x14ea)](_0x5470a1[_0x99cb54(0x2199)]?_0x5470a1['userProfileSection'][_0x99cb54(0x1b1a)]:null),_0x5470a1['customDashboard']={},_0x5470a1[_0x99cb54(0x278a)]=_0x4fdaab&&_0x4fdaab[_0x99cb54(0x184d)]?_0x4fdaab:{'count':0x0,'rows':[]},_0x5470a1[_0x99cb54(0x246a)]=_0x4fdaab&&_0x4fdaab['count']?_0x39641b()[_0x99cb54(0x1de2)](_0x4fdaab[_0x99cb54(0x2214)],'id'):[],_0x5470a1['interval']=_0x31af14(function(){},0x3e8),_0x5470a1[_0x99cb54(0x2144)]=_0x2b451e,_0x5470a1[_0x99cb54(0x1cec)]=_0x50f10a,_0x347eab[_0x99cb54(0x16b7)](_0x99cb54(0x82a),_0x511344),_0x305aa6[_0x99cb54(0x1312)][_0x99cb54(0xbf7)]({'id':_0x4c52ca[_0x99cb54(0x1dfe)]['id']})[_0x99cb54(0x1d77)][_0x99cb54(0x1cb0)](function(_0x1e7c25){const _0x584091=_0x99cb54;if(_0x1e7c25)return _0x5470a1[_0x584091(0x2821)]=_0x1e7c25,_0x5470a1[_0x584091(0x2821)]['widgets']=[],_0x5470a1[_0x584091(0x2821)][_0x584091(0x2772)]=!![],_0x5470a1[_0x584091(0x2821)][_0x584091(0x2599)]={'enabled':![]},_0x5470a1[_0x584091(0x2821)][_0x584091(0x486)]={'enabled':![]},_0x305aa6['dashboard'][_0x584091(0x1c15)]({'id':_0x5470a1[_0x584091(0x2821)]['id']})[_0x584091(0x1d77)];})[_0x99cb54(0x1cb0)](function(_0x2fa18e){const _0x244ec4=_0x99cb54;if(_0x2fa18e&&_0x2fa18e['count']&&_0x2fa18e[_0x244ec4(0x2214)])for(let _0x20931a=0x0;_0x20931a<_0x2fa18e[_0x244ec4(0x2214)][_0x244ec4(0xfd0)];_0x20931a+=0x1){_0x2fa18e[_0x244ec4(0x2214)][_0x20931a][_0x244ec4(0x1da6)]=_0x244ec4(0x2862)+_0x2fa18e[_0x244ec4(0x2214)][_0x20931a][_0x244ec4(0x66a)]+_0x244ec4(0x1d66)+_0x2fa18e[_0x244ec4(0x2214)][_0x20931a][_0x244ec4(0x66a)]+_0x244ec4(0x109f),_0x2fa18e['rows'][_0x20931a][_0x244ec4(0x278a)]=_0x5470a1[_0x244ec4(0x278a)],_0x2fa18e[_0x244ec4(0x2214)][_0x20931a][_0x244ec4(0x246a)]=_0x5470a1[_0x244ec4(0x246a)],_0x5470a1[_0x244ec4(0x2821)][_0x244ec4(0x23d2)][_0x244ec4(0x2785)](_0x2fa18e[_0x244ec4(0x2214)][_0x20931a]);}})[_0x99cb54(0x1c4)](function(){const _0x19e94c=_0x99cb54;_0x5470a1[_0x19e94c(0x2821)]=undefined;});function _0x511344(_0x4dfebe){const _0x3ab0f0=_0x99cb54,_0x38176d=_0x39641b()[_0x3ab0f0(0x13b4)](_0x5470a1[_0x3ab0f0(0x278a)]['rows'],{'id':_0x4dfebe['id']});_0x38176d&&_0x39641b()[_0x3ab0f0(0x9c1)](_0x38176d,_0x39641b()[_0x3ab0f0(0x169b)](_0x4dfebe,_0x39641b()['keys'](_0x38176d)));}function _0x2b451e(){const _0x52d01e=_0x99cb54;for(let _0x138775=0x0;_0x138775<_0x5470a1[_0x52d01e(0x2821)][_0x52d01e(0x23d2)][_0x52d01e(0xfd0)];_0x138775+=0x1){_0x5470a1[_0x52d01e(0x2821)][_0x52d01e(0x23d2)][_0x138775][_0x52d01e(0x246a)]=_0x5470a1[_0x52d01e(0x246a)];}}function _0x50f10a(){const _0x4a15ba=_0x99cb54;_0x4c52ca['go'](_0x4a15ba(0x1632),{'id':_0x5470a1['customDashboard']['id'],'tab':0x1});}_0x10a705[_0x99cb54(0x1d6)](_0x99cb54(0x291c),function(){const _0xe82d18=_0x99cb54;_0x347eab[_0xe82d18(0xfb8)](_0xe82d18(0x82a)),_0x5470a1[_0xe82d18(0x1ac8)]&&_0x31af14[_0xe82d18(0x696)](_0x5470a1[_0xe82d18(0x1ac8)]);});}const _0x14a471=_0x476cc6;;_0x4790b3['$inject']=['$stateProvider'];function _0x4790b3(_0x70e479){const _0x473684=_0x5537c6;_0x70e479[_0x473684(0x27e0)](_0x473684(0x7ae),{'url':_0x473684(0x232d),'views':{'content@app':{'templateUrl':_0x44bb45,'controller':_0x473684(0x16bc)}},'resolve':{'voiceQueues':[_0x473684(0x1e0b),_0x473684(0x1774),function(_0x1de575,_0x5b3195){const _0x8e1b83=_0x473684;let _0xdb4d31;const _0x4e56ad=_0x5b3195['hasRole'](_0x8e1b83(0x1c60))?_0x1de575[_0x8e1b83(0x19a3)](_0x8e1b83(0x1c4d),{'fields':_0x8e1b83(0x43c),'nolimit':!![]}):_0x1de575[_0x8e1b83(0x19a3)](_0x8e1b83(0x12da),{'id':_0x5b3195[_0x8e1b83(0x21e8)]()[_0x8e1b83(0x13c1)],'section':_0x8e1b83(0x2382),'mergeResources':!![],'fields':_0x8e1b83(0x43c),'channel':_0x8e1b83(0x1fd4),'nolimit':!![]});return _0x4e56ad[_0x8e1b83(0x1cb0)](function(_0x3ad32d){const _0x9c7bbf=_0x8e1b83;return _0xdb4d31=_0x3ad32d,_0x1de575['resolve'](_0x9c7bbf(0xe6d));})[_0x8e1b83(0x1cb0)](function(_0x3866c3){const _0x1972d4=_0x8e1b83;if(_0x3866c3)for(let _0x178ca3=0x0,_0x2515b3;_0x178ca3<_0x3866c3[_0x1972d4(0x2214)][_0x1972d4(0xfd0)];_0x178ca3+=0x1){_0x2515b3=_0x39641b()[_0x1972d4(0x13b4)](_0xdb4d31[_0x1972d4(0x2214)],{'id':_0x3866c3[_0x1972d4(0x2214)][_0x178ca3]['id']}),_0x2515b3&&_0x39641b()[_0x1972d4(0x9c1)](_0x2515b3,_0x39641b()[_0x1972d4(0x169b)](_0x3866c3[_0x1972d4(0x2214)][_0x178ca3],[_0x1972d4(0x26b6),_0x1972d4(0x181c),'talking',_0x1972d4(0x1175),_0x1972d4(0x89f),_0x1972d4(0x20fe)]));}return _0xdb4d31;});}],'userProfile':[_0x473684(0x1e0b),_0x473684(0x1774),function(_0x36ea5d,_0xe560b5){const _0x4de133=_0x473684;return _0x36ea5d[_0x4de133(0x19a3)](_0x4de133(0x9ae),{'fields':'id,name,crudPermissions','id':_0xe560b5[_0x4de133(0x21e8)]()[_0x4de133(0x13c1)]});}],'userProfileSection':[_0x473684(0x1e0b),_0x473684(0x1774),function(_0x25d14f,_0x3a5c3e){const _0x5de4b4=_0x473684;return _0x25d14f[_0x5de4b4(0x19a3)](_0x5de4b4(0x2182),{'fields':_0x5de4b4(0x1f5f),'userProfileId':_0x3a5c3e[_0x5de4b4(0x21e8)]()[_0x5de4b4(0x13c1)],'sectionId':0x64});}]},'authenticate':!![],'bodyClass':_0x473684(0xd41)});}angular[_0x5537c6(0x9ab)](_0x5537c6(0x7ae),[])['config'](_0x4790b3)[_0x5537c6(0x6e5)](_0x5537c6(0x655),_0x14a471);;_0x2cd9f2[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6),_0x5537c6(0x1f2a)];function _0x2cd9f2(_0x276cd7,_0x43c511){const _0x518218=_0x5537c6;_0x276cd7[_0x518218(0x27e0)]('app.dashboards',{'abstract':!![],'url':_0x518218(0x1b14)}),_0x43c511[_0x518218(0x4e7)](_0x518218(0x2725));}angular[_0x5537c6(0x9ab)]('app.dashboards',[_0x5537c6(0x2770),'ngPassword',_0x5537c6(0x1260),_0x5537c6(0xacf),_0x5537c6(0x18f6),_0x5537c6(0xd19),_0x5537c6(0x44c),_0x5537c6(0x2ec),_0x5537c6(0x1890),_0x5537c6(0x167d),'mwFormBuilder',_0x5537c6(0x1b65),_0x5537c6(0x2166),_0x5537c6(0x3b9),_0x5537c6(0x7c9),_0x5537c6(0xeb5),_0x5537c6(0x27af),_0x5537c6(0x13b6),_0x5537c6(0x1cbd),_0x5537c6(0xd01),_0x5537c6(0x1647),'app.dashboards.custom'])['config'](_0x2cd9f2);;const _0x4582b7=_0x5074a3['p']+_0x5537c6(0x1990);;const _0x28dac6=_0x5074a3['p']+_0x5537c6(0x2ab);;_0x1ab792[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$window',_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),'$document','$timeout','$translate',_0x5537c6(0xc12),_0x5537c6(0x44a),'userProfileSection',_0x5537c6(0x142b),'msUtils','toasty',_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting'];function _0x1ab792(_0x2ccc2e,_0x38503,_0x57233,_0x327a94,_0x584bd9,_0x208d57,_0x51ff54,_0x5916db,_0x259ab9,_0x449f99,_0x14a223,_0x501dfe,_0x42e701,_0xd8b6a5,_0x1bc7dd,_0x14d67f,_0x51861e){const _0x242bbe=_0x5537c6,_0x2f85b0=this;_0x2f85b0[_0x242bbe(0x8a5)]=_0x14d67f,_0x2f85b0[_0x242bbe(0x9ca)]=_0x51861e,_0x2f85b0[_0x242bbe(0xe76)]=_0x1bc7dd[_0x242bbe(0x21e8)](),_0x2f85b0[_0x242bbe(0xc12)]=_0x259ab9||{'count':0x0,'rows':[]},_0x2f85b0['userProfile']=_0x449f99,_0x2f85b0['userProfileSection']=_0x14a223&&_0x14a223[_0x242bbe(0x184d)]==0x1?_0x14a223[_0x242bbe(0x2214)][0x0]:null,_0x2f85b0['crudPermissions']=_0x1bc7dd[_0x242bbe(0x14ea)](_0x2f85b0[_0x242bbe(0x2199)]?_0x2f85b0[_0x242bbe(0x2199)][_0x242bbe(0x1b1a)]:null),_0x2f85b0[_0x242bbe(0xc83)]=_0x242bbe(0xc12),_0x2f85b0['listOrder']='',_0x2f85b0['listOrderAsc']=null,_0x2f85b0[_0x242bbe(0x137b)]=[],_0x2f85b0[_0x242bbe(0xae2)]={'fields':_0x242bbe(0xb95),'role':_0x242bbe(0x1eff),'sort':_0x242bbe(0x282),'limit':0xa,'page':0x1},_0x2f85b0[_0x242bbe(0xfde)]=_0x39641b()[_0x242bbe(0x2631)]([{'option':_0x242bbe(0x12b3),'value':'0'},{'option':_0x242bbe(0x1592),'value':'1'},{'option':_0x242bbe(0xed1),'value':'2'}],function(_0x4841dc){const _0x502510=_0x242bbe;return _0x39641b()[_0x502510(0x288f)](_0x4841dc[_0x502510(0x327)],new RegExp('\x27','g'),'');}),_0x2f85b0[_0x242bbe(0x1a88)]=_0x39641b()[_0x242bbe(0x2631)]([{'option':_0x242bbe(0xa9d),'value':_0x242bbe(0x378)},{'option':_0x242bbe(0x2828),'value':_0x242bbe(0xd76)},{'option':'ws','value':_0x242bbe(0x2127),'ngIf':'vm.agent.showWebBar\x20==\x201'},{'option':'wss','value':_0x242bbe(0x49d),'ngIf':'vm.agent.showWebBar\x20==\x201'},{'option':_0x242bbe(0x132c),'value':_0x242bbe(0x1393),'ngIf':'vm.agent.showWebBar\x20==\x201'}],function(_0x1d292c){const _0x3ba2be=_0x242bbe;return _0x39641b()['replace'](_0x1d292c[_0x3ba2be(0x327)],new RegExp('\x27','g'),'');}),_0x2f85b0[_0x242bbe(0x571)]=_0x39641b()[_0x242bbe(0x2631)]([{'option':'force_rport','value':'\x27force_rport\x27'},{'option':_0x242bbe(0x18c7),'value':'\x27comedia\x27'},{'option':_0x242bbe(0x150d),'value':'\x27yes\x27'},{'option':'no','value':_0x242bbe(0x15b9)},{'option':'never','value':_0x242bbe(0x1d2c)},{'option':_0x242bbe(0x15d0),'value':_0x242bbe(0x1fcc)}],function(_0x1c5591){const _0x240e4b=_0x242bbe;return _0x39641b()[_0x240e4b(0x288f)](_0x1c5591[_0x240e4b(0x327)],new RegExp('\x27','g'),'');}),_0x2f85b0[_0x242bbe(0x101d)]=_0x39641b()[_0x242bbe(0x2631)]([{'option':'Friend','value':'\x27friend\x27'},{'option':'User','value':_0x242bbe(0xe2f)},{'option':_0x242bbe(0x2810),'value':_0x242bbe(0x83c)}],function(_0x1470b5){const _0x38bb76=_0x242bbe;return _0x39641b()['replace'](_0x1470b5[_0x38bb76(0x327)],new RegExp('\x27','g'),'');}),_0x2f85b0[_0x242bbe(0x1462)]=_0x39641b()[_0x242bbe(0x2631)]([{'option':_0x242bbe(0xaba),'value':_0x242bbe(0x2079)},{'option':_0x242bbe(0x128d),'value':_0x242bbe(0x217a)},{'option':'gsm','value':_0x242bbe(0x24ce)},{'option':'g722','value':'\x27g722\x27'},{'option':_0x242bbe(0x1a92),'value':'\x27g729\x27'},{'option':_0x242bbe(0x14cc),'value':'\x27opus\x27'},{'option':_0x242bbe(0x278c),'value':'\x27h264\x27'}],function(_0x2e371b){const _0x280e35=_0x242bbe;return _0x39641b()[_0x280e35(0x288f)](_0x2e371b[_0x280e35(0x327)],new RegExp('\x27','g'),'');}),_0x2f85b0['arrayvideosupport']=_0x39641b()[_0x242bbe(0x2631)]([{'option':_0x242bbe(0x1ab8),'value':'\x27yes\x27'},{'option':'No','value':_0x242bbe(0x15b9)},{'option':_0x242bbe(0x1288),'value':_0x242bbe(0x2a2)}],function(_0x18d994){const _0x47c163=_0x242bbe;return _0x39641b()[_0x47c163(0x288f)](_0x18d994['value'],new RegExp('\x27','g'),'');}),_0x2f85b0[_0x242bbe(0x1677)]=_0x39641b()[_0x242bbe(0x2631)]([{'option':_0x242bbe(0x210b),'value':'\x27\x27'},{'option':_0x242bbe(0xcab),'value':_0x242bbe(0x2329)},{'option':_0x242bbe(0x1f63),'value':_0x242bbe(0x51b)},{'option':_0x242bbe(0x2331),'value':_0x242bbe(0x24ce)}],function(_0x94ca61){const _0x3d2ab6=_0x242bbe;return _0x39641b()[_0x3d2ab6(0x288f)](_0x94ca61[_0x3d2ab6(0x327)],new RegExp('\x27','g'),'');}),_0x2f85b0['editstate']=_0x4a2256,_0x2f85b0[_0x242bbe(0x1d63)]=_0xd675ea,_0x2f85b0[_0x242bbe(0x27fe)]=_0x69dfba,_0x2f85b0[_0x242bbe(0x829)]=_0x307c04,_0x2f85b0[_0x242bbe(0x2348)]=_0xc57214,_0x2f85b0[_0x242bbe(0x216f)]=_0x2ea5c3,_0x2f85b0['deleteAgent']=_0x5e6a18,_0x2f85b0[_0x242bbe(0xa8c)]=_0x4c9260,_0x2f85b0[_0x242bbe(0xdd3)]=_0x53535a,_0x2f85b0[_0x242bbe(0x15af)]=_0xd2c96f,_0x2f85b0[_0x242bbe(0xc55)]=_0x1c2556;function _0x4a2256(_0x38015a){const _0x159957=_0x242bbe;_0x57233['go']('app.staff.agents.edit',{'id':_0x38015a['id'],'agent':_0x38015a,'crudPermissions':_0x2f85b0[_0x159957(0x1b1a)]});}function _0xd675ea(_0x2edd87,_0x3db17a){const _0xd17bce=_0x242bbe;_0x584bd9[_0xd17bce(0xe27)]({'controller':'AgentteamaddController','controllerAs':'vm','templateUrl':_0x4582b7,'parent':angular[_0xd17bce(0x1853)](_0x208d57['body']),'targetEvent':_0x3db17a,'clickOutsideToClose':!![],'locals':{'agent':_0x2edd87,'agents':_0x2f85b0[_0xd17bce(0xc12)]?_0x2f85b0['agents'][_0xd17bce(0x2214)]:[],'crudPermissions':_0x2f85b0['crudPermissions']}});}function _0x69dfba(_0x2b13d1,_0x497f8f){const _0x581af1=_0x242bbe,_0x5b2278=_0x584bd9[_0x581af1(0x1551)]()[_0x581af1(0x1386)](_0x581af1(0x140b)+_0x39641b()[_0x581af1(0xa75)]('agent')+'?')[_0x581af1(0x49e)](''+(_0x2b13d1[_0x581af1(0x16b6)]||'agent')+''+_0x581af1(0x1b6))[_0x581af1(0x15ad)](_0x581af1(0x1e2e))[_0x581af1(0x728)](_0x497f8f)['ok']('OK')['cancel'](_0x581af1(0x24ba));_0x584bd9[_0x581af1(0xe27)](_0x5b2278)['then'](function(){_0x5e6a18(_0x2b13d1);},function(){const _0x531f36=_0x581af1;console[_0x531f36(0x1b4f)]('CANCEL');});}let _0x40289b=!![],_0xdaaaaa=0x1;_0x2ccc2e[_0x242bbe(0x614)](_0x242bbe(0x957),function(_0x954b52,_0x2bf8ea){const _0x4f1157=_0x242bbe;_0x40289b?_0x51ff54(function(){_0x40289b=![];}):(!_0x2bf8ea&&(_0xdaaaaa=_0x2f85b0['query'][_0x4f1157(0x1c7b)]),_0x954b52!==_0x2bf8ea&&(_0x2f85b0[_0x4f1157(0xae2)][_0x4f1157(0x1c7b)]=0x1),!_0x954b52&&(_0x2f85b0[_0x4f1157(0xae2)]['page']=_0xdaaaaa),_0x2f85b0[_0x4f1157(0x2348)]());});function _0x307c04(_0x4b51d9){_0x2f85b0['agents']=_0x4b51d9||{'count':0x0,'rows':[]};}function _0xc57214(){const _0x3b2d00=_0x242bbe;_0x2f85b0[_0x3b2d00(0xae2)][_0x3b2d00(0x184b)]=(_0x2f85b0[_0x3b2d00(0xae2)][_0x3b2d00(0x1c7b)]-0x1)*_0x2f85b0[_0x3b2d00(0xae2)][_0x3b2d00(0x236)],_0x1bc7dd[_0x3b2d00(0x22b6)](_0x3b2d00(0x1c60))?_0x2f85b0['promise']=_0x501dfe[_0x3b2d00(0xebe)][_0x3b2d00(0xbf7)](_0x2f85b0[_0x3b2d00(0xae2)],_0x307c04)[_0x3b2d00(0x1d77)]:(_0x2f85b0[_0x3b2d00(0xae2)]['id']=_0x2f85b0[_0x3b2d00(0x44a)]['id'],_0x2f85b0['query']['section']=_0x3b2d00(0x2536),_0x2f85b0[_0x3b2d00(0x2061)]=_0x501dfe[_0x3b2d00(0x44a)][_0x3b2d00(0x1810)](_0x2f85b0['query'],_0x307c04)[_0x3b2d00(0x1d77)]);}function _0x2ea5c3(_0x30beed,_0xaa2867){const _0x42bd8e=_0x242bbe;_0x584bd9['show']({'controller':'CreateOrEditAgentDialogController','controllerAs':'vm','templateUrl':_0x28dac6,'parent':angular[_0x42bd8e(0x1853)](_0x208d57['body']),'targetEvent':_0x30beed,'clickOutsideToClose':!![],'locals':{'agent':_0xaa2867,'agents':_0x2f85b0[_0x42bd8e(0xc12)][_0x42bd8e(0x2214)],'license':_0x2f85b0[_0x42bd8e(0x8a5)],'setting':_0x2f85b0['setting'],'crudPermissions':_0x2f85b0[_0x42bd8e(0x1b1a)]}});}function _0x5e6a18(_0x58aff7){const _0x33f2af=_0x242bbe;_0x501dfe[_0x33f2af(0xebe)][_0x33f2af(0x111d)]({'id':_0x58aff7['id']})[_0x33f2af(0x1d77)][_0x33f2af(0x1cb0)](function(){const _0x4214c6=_0x33f2af;_0x39641b()[_0x4214c6(0x152a)](_0x2f85b0[_0x4214c6(0xc12)]['rows'],{'id':_0x58aff7['id']}),_0x2f85b0[_0x4214c6(0xc12)][_0x4214c6(0x184d)]-=0x1,!_0x2f85b0['agents'][_0x4214c6(0x2214)]['length']&&_0x2f85b0[_0x4214c6(0x2348)](),_0xd8b6a5[_0x4214c6(0x829)]({'title':_0x39641b()['startCase'](_0x4214c6(0x30e))+_0x4214c6(0x2663),'msg':_0x58aff7[_0x4214c6(0x16b6)]?_0x58aff7[_0x4214c6(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x33f2af(0x1c4)](function(_0x58e29f){const _0x36635f=_0x33f2af;if(_0x58e29f[_0x36635f(0x25c)]&&_0x58e29f[_0x36635f(0x25c)][_0x36635f(0x1a7c)]&&_0x58e29f[_0x36635f(0x25c)][_0x36635f(0x1a7c)][_0x36635f(0xfd0)]){_0x2f85b0[_0x36635f(0x1a7c)]=_0x58e29f[_0x36635f(0x25c)][_0x36635f(0x1a7c)]||[{'message':_0x58e29f[_0x36635f(0x147f)](),'type':_0x36635f(0xcec)}];for(let _0x5591f6=0x0;_0x5591f6<_0x58e29f[_0x36635f(0x25c)]['errors'][_0x36635f(0xfd0)];_0x5591f6++){_0xd8b6a5['error']({'title':_0x58e29f['data']['errors'][_0x5591f6][_0x36635f(0x66a)],'msg':_0x58e29f[_0x36635f(0x25c)][_0x36635f(0x1a7c)][_0x5591f6][_0x36635f(0x155e)]});}}else _0xd8b6a5[_0x36635f(0x218e)]({'title':_0x58e29f[_0x36635f(0x291)]?_0x36635f(0xeb9)+_0x58e29f[_0x36635f(0x291)]+_0x36635f(0x1657)+_0x58e29f[_0x36635f(0xc22)]:'SYSTEM:DELETEuser','msg':_0x58e29f[_0x36635f(0x25c)]?JSON[_0x36635f(0x2701)](_0x58e29f['data'][_0x36635f(0x155e)]):_0x58e29f['message']||_0x58e29f[_0x36635f(0x147f)]()});});}function _0x4c9260(){const _0x9adda0=_0x242bbe,_0x479447=angular[_0x9adda0(0x17fe)](_0x2f85b0[_0x9adda0(0x137b)]);return _0x2f85b0[_0x9adda0(0x137b)]=[],_0x479447;}function _0x53535a(_0x3ed284){const _0x394736=_0x242bbe,_0x4293b8=_0x584bd9[_0x394736(0x1551)]()[_0x394736(0x1386)](_0x394736(0x2698))[_0x394736(0x49e)](_0x394736(0x204d)+_0x2f85b0['selectedAgents'][_0x394736(0xfd0)]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x394736(0x15ad)](_0x394736(0x2734))[_0x394736(0x728)](_0x3ed284)['ok']('OK')[_0x394736(0x696)](_0x394736(0x24ba));_0x584bd9[_0x394736(0xe27)](_0x4293b8)[_0x394736(0x1cb0)](function(){const _0x15fa65=_0x394736;_0x2f85b0[_0x15fa65(0x137b)][_0x15fa65(0xf90)](function(_0x44aa22){_0x5e6a18(_0x44aa22);}),_0x2f85b0[_0x15fa65(0x137b)]=[];});}function _0xd2c96f(){const _0x26726a=_0x242bbe;_0x2f85b0[_0x26726a(0x137b)]=[];}function _0x1c2556(){const _0x2a72b7=_0x242bbe;_0x2f85b0[_0x2a72b7(0x137b)]=_0x2f85b0['agents'][_0x2a72b7(0x2214)];}}const _0x2e0301=_0x1ab792;;_0x16c37b[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q','$translate',_0x5537c6(0x9bf),'agents',_0x5537c6(0x1eff),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x16c37b(_0x487090,_0x1ded77,_0x41c9ad,_0x3963cb,_0x15aa22,_0x820b72,_0x3412c9,_0x4b954c,_0xd5ffdd,_0x5c0cda,_0x505435,_0x944807,_0x4c47f9,_0x512568){const _0x3037f0=_0x5537c6,_0x3c87ce=this;_0x3c87ce['currentUser']=_0x505435[_0x3037f0(0x21e8)](),_0x3c87ce['errors']=[],_0x3c87ce[_0x3037f0(0x9ca)]=_0x4c47f9,_0x3c87ce[_0x3037f0(0x8a5)]=_0x944807,_0x3c87ce['crudPermissions']=_0x512568,_0x3c87ce[_0x3037f0(0xf4c)]={},_0x3c87ce['passwordPattern']=_0x3c87ce['setting']&&_0x3c87ce['setting'][_0x3037f0(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3c87ce[_0x3037f0(0x1386)]='STAFF.EDIT_AGENT',_0x3c87ce[_0x3037f0(0x1eff)]=angular['copy'](_0xd5ffdd),_0x3c87ce[_0x3037f0(0xc12)]=_0x4b954c,_0x3c87ce['newAgent']=![];!_0x3c87ce[_0x3037f0(0x1eff)]&&(_0x3c87ce['agent']={'role':_0x3037f0(0x1eff),'showWebBar':'0','autointernal':!![],'type':_0x3037f0(0x1f1d),'context':_0x3037f0(0x156f),'phoneBarRemoteControl':!![],'phoneBarRemoteControlPort':0x26a0,'allowmessenger':!![]},_0x3c87ce[_0x3037f0(0x1386)]='STAFF.NEW_AGENT',_0x3c87ce['newAgent']=!![]);_0x3c87ce['addNewAgent']=_0x2c32e6,_0x3c87ce['saveAgent']=_0x21a4ca,_0x3c87ce[_0x3037f0(0x7e8)]=_0x291643,_0x3c87ce[_0x3037f0(0x2c4)]=_0x1e7b1c,_0x3c87ce[_0x3037f0(0xda0)]=_0x954b73;function _0x2c32e6(){const _0x5a8cba=_0x3037f0;_0x3c87ce['errors']=[],_0x5c0cda[_0x5a8cba(0xebe)][_0x5a8cba(0x1c3f)](_0x3c87ce[_0x5a8cba(0x1eff)])['$promise'][_0x5a8cba(0x1cb0)](function(_0x3ce649){const _0x253a43=_0x5a8cba;_0x3c87ce[_0x253a43(0xc12)][_0x253a43(0xf63)](_0x3ce649[_0x253a43(0x19b2)]()),_0x3412c9[_0x253a43(0x829)]({'title':_0x253a43(0x11c4),'msg':_0x3c87ce[_0x253a43(0x1eff)][_0x253a43(0x16b6)]?_0x3c87ce['agent'][_0x253a43(0x16b6)]+_0x253a43(0x470):''}),_0x954b73(_0x3ce649);})[_0x5a8cba(0x1c4)](function(_0x3869c9){const _0x57af7d=_0x5a8cba;if(_0x3869c9[_0x57af7d(0x25c)]&&_0x3869c9['data'][_0x57af7d(0x1a7c)]&&_0x3869c9[_0x57af7d(0x25c)][_0x57af7d(0x1a7c)][_0x57af7d(0xfd0)]){_0x3c87ce[_0x57af7d(0x1a7c)]=_0x3869c9['data']['errors']||[{'message':_0x3869c9[_0x57af7d(0x147f)](),'type':_0x57af7d(0x102d)}];for(let _0x5e47a7=0x0;_0x5e47a7<_0x3869c9[_0x57af7d(0x25c)]['errors'][_0x57af7d(0xfd0)];_0x5e47a7+=0x1){_0x3412c9['error']({'title':_0x3869c9[_0x57af7d(0x25c)][_0x57af7d(0x1a7c)][_0x5e47a7][_0x57af7d(0x66a)],'msg':_0x3869c9[_0x57af7d(0x25c)]['errors'][_0x5e47a7][_0x57af7d(0x155e)]});}}else _0x3412c9[_0x57af7d(0x218e)]({'title':_0x3869c9[_0x57af7d(0x291)]?_0x57af7d(0xeb9)+_0x3869c9[_0x57af7d(0x291)]+_0x57af7d(0x1657)+_0x3869c9[_0x57af7d(0xc22)]:_0x57af7d(0x102d),'msg':_0x3869c9[_0x57af7d(0x25c)]?JSON[_0x57af7d(0x2701)](_0x3869c9[_0x57af7d(0x25c)][_0x57af7d(0x155e)]):_0x3869c9[_0x57af7d(0x147f)]()});});}function _0x21a4ca(){const _0x4de85e=_0x3037f0;_0x3c87ce['errors']=[],_0x5c0cda[_0x4de85e(0xebe)][_0x4de85e(0x687)]({'id':_0x3c87ce['agent']['id']},_0x3c87ce[_0x4de85e(0x1eff)])[_0x4de85e(0x1d77)][_0x4de85e(0x1cb0)](function(_0x353228){const _0x472b34=_0x4de85e,_0x34fd61=_0x39641b()[_0x472b34(0x13b4)](_0x3c87ce['agents'],{'id':_0x353228['id']});_0x34fd61&&_0x39641b()['merge'](_0x34fd61,_0x39641b()[_0x472b34(0x169b)](_0x353228['toJSON'](),_0x39641b()['keys'](_0x34fd61))),_0x3412c9[_0x472b34(0x829)]({'title':_0x472b34(0x1a6d),'msg':_0x3c87ce[_0x472b34(0x1eff)][_0x472b34(0x16b6)]?_0x3c87ce['agent']['name']+_0x472b34(0xedb):''}),_0x954b73(_0x353228);})['catch'](function(_0x492668){const _0x324e07=_0x4de85e;if(_0x492668[_0x324e07(0x25c)]&&_0x492668[_0x324e07(0x25c)][_0x324e07(0x1a7c)]&&_0x492668[_0x324e07(0x25c)][_0x324e07(0x1a7c)]['length']){_0x3c87ce[_0x324e07(0x1a7c)]=_0x492668[_0x324e07(0x25c)][_0x324e07(0x1a7c)]||[{'message':_0x492668['toString'](),'type':_0x324e07(0x498)}];for(let _0x59f5b4=0x0;_0x59f5b4<_0x492668['data'][_0x324e07(0x1a7c)][_0x324e07(0xfd0)];_0x59f5b4++){_0x3412c9['error']({'title':_0x492668[_0x324e07(0x25c)][_0x324e07(0x1a7c)][_0x59f5b4][_0x324e07(0x66a)],'msg':_0x492668[_0x324e07(0x25c)][_0x324e07(0x1a7c)][_0x59f5b4][_0x324e07(0x155e)]});}}else _0x3412c9[_0x324e07(0x218e)]({'title':_0x492668[_0x324e07(0x291)]?_0x324e07(0xeb9)+_0x492668[_0x324e07(0x291)]+_0x324e07(0x1657)+_0x492668[_0x324e07(0xc22)]:'api.user.update','msg':_0x492668[_0x324e07(0x25c)]?JSON['stringify'](_0x492668[_0x324e07(0x25c)][_0x324e07(0x155e)]):_0x492668[_0x324e07(0x147f)]()});});}function _0x291643(_0x386290){const _0x37a181=_0x3037f0;_0x3c87ce[_0x37a181(0x1a7c)]=[];const _0x592651=_0x3963cb['confirm']()['title']('Are\x20you\x20sure?')[_0x37a181(0x862)](_0x37a181(0x253f))[_0x37a181(0x15ad)](_0x37a181(0x9c5))['ok'](_0x37a181(0x2594))['cancel']('Cancel')[_0x37a181(0x728)](_0x386290);_0x3963cb['show'](_0x592651)[_0x37a181(0x1cb0)](function(){const _0x9345bc=_0x37a181;_0x5c0cda[_0x9345bc(0xebe)][_0x9345bc(0x111d)]({'id':_0x3c87ce[_0x9345bc(0x1eff)]['id']})['$promise'][_0x9345bc(0x1cb0)](function(){const _0x4b7bc2=_0x9345bc;_0x39641b()['remove'](_0x3c87ce[_0x4b7bc2(0xc12)],{'id':_0x3c87ce[_0x4b7bc2(0x1eff)]['id']}),_0x3412c9['success']({'title':'Agent\x20properly\x20deleted!','msg':(_0x3c87ce[_0x4b7bc2(0x1eff)][_0x4b7bc2(0x16b6)]||_0x4b7bc2(0x1eff))+_0x4b7bc2(0x3f5)}),_0x954b73(_0x3c87ce['agent']);})['catch'](function(_0x16abb7){const _0x4d181b=_0x9345bc;if(_0x16abb7[_0x4d181b(0x25c)]&&_0x16abb7[_0x4d181b(0x25c)][_0x4d181b(0x1a7c)]&&_0x16abb7['data']['errors']['length']){_0x3c87ce['errors']=_0x16abb7[_0x4d181b(0x25c)]['errors']||[{'message':_0x16abb7[_0x4d181b(0x147f)](),'type':_0x4d181b(0x180a)}];for(let _0x472d54=0x0;_0x472d54<_0x16abb7[_0x4d181b(0x25c)][_0x4d181b(0x1a7c)]['length'];_0x472d54++){_0x3412c9['error']({'title':_0x16abb7[_0x4d181b(0x25c)][_0x4d181b(0x1a7c)][_0x472d54]['type'],'msg':_0x16abb7[_0x4d181b(0x25c)][_0x4d181b(0x1a7c)][_0x472d54][_0x4d181b(0x155e)]});}}else _0x3412c9['error']({'title':_0x16abb7['status']?_0x4d181b(0xeb9)+_0x16abb7['status']+_0x4d181b(0x1657)+_0x16abb7[_0x4d181b(0xc22)]:_0x4d181b(0x180a),'msg':_0x16abb7[_0x4d181b(0x25c)]?JSON[_0x4d181b(0x2701)](_0x16abb7[_0x4d181b(0x25c)][_0x4d181b(0x155e)]):_0x16abb7[_0x4d181b(0x155e)]||_0x16abb7[_0x4d181b(0x147f)]()});});},function(){});}function _0x1e7b1c(_0x30b9ba){return _0x30b9ba===null?undefined:new Date(_0x30b9ba);}function _0x954b73(_0x1d5db4){const _0x57bde1=_0x3037f0;_0x3963cb[_0x57bde1(0x1426)](_0x1d5db4);}}const _0x35aab0=_0x16c37b;;_0x330662[_0x5537c6(0x15b6)]=['$cookies',_0x5537c6(0x9bf)];function _0x330662(_0xc99841,_0x251a23){const _0x191bd0=_0x5537c6,_0x5e579d=this,_0x3adea4=0x8,_0x599d20=_0x3adea4*0x400*0x400;_0x5e579d[_0x191bd0(0x1eff)]={},_0x5e579d['crudPermissions'],_0x5e579d[_0x191bd0(0x15e8)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x599d20,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x5e579d[_0x191bd0(0x125a)]={'flow':{}},_0x5e579d['dropping']=![],_0x5e579d['fileAdded']=_0x4d0c32,_0x5e579d[_0x191bd0(0x1c97)]=_0x2458fe,_0x5e579d[_0x191bd0(0x200f)]=_0xe58200,_0x5e579d[_0x191bd0(0x1a8e)]=_0x181fe9;function _0x181fe9(_0x387eed,_0x4466a3){const _0x5a21b6=_0x191bd0;_0x5e579d['agent']=angular[_0x5a21b6(0x17fe)](_0x387eed),_0x5e579d['crudPermissions']=typeof _0x4466a3!=='undefined'?_0x4466a3:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5e579d[_0x5a21b6(0x15e8)][_0x5a21b6(0x251d)]=_0x5a21b6(0x254)+_0x5e579d['agent']['id']+_0x5a21b6(0x790),_0x5e579d[_0x5a21b6(0x1eff)]['images']=[];}function _0x4d0c32(_0x817080){const _0x700d9a=_0x191bd0,_0xad93c3=['png',_0x700d9a(0xb97)];if(!_0x39641b()[_0x700d9a(0x250a)](_0xad93c3,_0x817080[_0x700d9a(0x1cb1)]()))return _0x251a23[_0x700d9a(0x218e)]({'title':'Invalid\x20extension:\x20'+_0x817080[_0x700d9a(0x1cb1)](),'msg':_0x700d9a(0x4d4)+_0xad93c3[_0x700d9a(0x1f66)]()}),![];if(_0x817080['size']>_0x599d20)return _0x251a23[_0x700d9a(0x218e)]({'title':_0x700d9a(0x2749),'msg':_0x700d9a(0xe61)+_0x3adea4+'MB'}),![];const _0x5c437e={'id':_0x817080[_0x700d9a(0x27c2)],'file':_0x817080,'type':_0x700d9a(0x2989)};return _0x5e579d['agent'][_0x700d9a(0x105c)][_0x700d9a(0xf63)](_0x5c437e),!![];}function _0x2458fe(){const _0x2bf972=_0x191bd0;_0x5e579d['ngFlow']['flow']['opts']['headers']={'X-Requested-With':_0x2bf972(0x2711),'Authorization':_0x2bf972(0x1923)+_0xc99841[_0x2bf972(0xbf7)]('motion.token')},_0x5e579d[_0x2bf972(0x125a)][_0x2bf972(0xacf)][_0x2bf972(0x1c97)]();}function _0xe58200(_0x50a8b6){const _0x3ff567=_0x191bd0;angular['forEach'](_0x5e579d[_0x3ff567(0x1eff)][_0x3ff567(0x105c)],function(_0x442c65){const _0x16d40b=_0x3ff567;if(_0x442c65['id']===_0x50a8b6[_0x16d40b(0x27c2)]){const _0x2fdddc=new FileReader();_0x2fdddc[_0x16d40b(0x245d)](_0x442c65[_0x16d40b(0x1ac4)]['file']),_0x2fdddc[_0x16d40b(0x198d)]=function(_0x4da121){const _0x401d6d=_0x16d40b;_0x442c65[_0x401d6d(0x135b)]=_0x4da121[_0x401d6d(0x251d)]['result'];},_0x442c65[_0x16d40b(0x66a)]=_0x16d40b(0x499);}});}}const _0x255392=_0x330662;;_0x24854b[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1eff),_0x5537c6(0x9ca),_0x5537c6(0x1774)];function _0x24854b(_0xc921af,_0x50a7e4,_0x4df216,_0x439b4c,_0x4df838,_0x2b6792,_0x151b69){const _0x31f08f=_0x5537c6,_0x5be705=this;_0x5be705[_0x31f08f(0xe76)]=_0x151b69['getCurrentUser'](),_0x5be705[_0x31f08f(0x1a7c)]=[],_0x5be705[_0x31f08f(0x9ca)]=_0x2b6792,_0x5be705[_0x31f08f(0x1b0c)]=_0x5be705[_0x31f08f(0x9ca)][_0x31f08f(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5be705[_0x31f08f(0x1eff)]=_0x4df838,_0x5be705[_0x31f08f(0x381)]='',_0x5be705[_0x31f08f(0xf0f)]='',_0x5be705['savePassword']=_0x59ad40,_0x5be705[_0x31f08f(0xda0)]=_0x4f0cb0,_0xc921af[_0x31f08f(0x614)](_0x31f08f(0x81a),function(_0xfa172c){const _0x403f7c=_0x31f08f;!_0x39641b()[_0x403f7c(0x958)](_0x5be705[_0x403f7c(0xf0f)])&&(_0xfa172c===_0x5be705[_0x403f7c(0xf0f)]?_0xc921af[_0x403f7c(0x33d)]['password'][_0x403f7c(0x92f)](_0x403f7c(0x1e13),![]):_0xc921af[_0x403f7c(0x33d)]['password'][_0x403f7c(0x92f)]('oldPasswordMatch',!![]));});function _0x59ad40(){const _0x5b0c07=_0x31f08f;_0x5be705[_0x5b0c07(0x1a7c)]=[];const _0x503c89={'id':_0x5be705['agent']['id'],'newPassword':_0x5be705[_0x5b0c07(0x381)]};_0x5be705[_0x5b0c07(0xe76)]['id']==_0x5be705[_0x5b0c07(0x1eff)]['id']&&(_0x503c89[_0x5b0c07(0xf0f)]=_0x5be705['oldPassword']),_0x439b4c[_0x5b0c07(0xebe)][_0x5b0c07(0xcad)](_0x503c89)[_0x5b0c07(0x1d77)][_0x5b0c07(0x1cb0)](function(){const _0x4ede2c=_0x5b0c07;_0x4df216[_0x4ede2c(0x829)]({'title':_0x4ede2c(0x190a)}),_0x4f0cb0();})[_0x5b0c07(0x1c4)](function(_0x44a2bf){const _0x56eac1=_0x5b0c07;_0x4df216[_0x56eac1(0x218e)]({'title':_0x44a2bf[_0x56eac1(0x291)]?_0x56eac1(0xeb9)+_0x44a2bf[_0x56eac1(0x291)]+_0x56eac1(0x1657)+_0x44a2bf['statusText']:_0x56eac1(0x372),'msg':_0x44a2bf[_0x56eac1(0x25c)]?JSON['stringify'](_0x44a2bf[_0x56eac1(0x25c)]['message']):_0x44a2bf[_0x56eac1(0x147f)]()}),_0x5be705['errors']=_0x44a2bf[_0x56eac1(0x25c)]['errors']||[{'message':_0x44a2bf['toString'](),'type':'api.agent.changePassword'}];});}function _0x4f0cb0(){const _0x1166e4=_0x31f08f;_0x50a7e4[_0x1166e4(0x1426)]();}}const _0x20d3de=_0x24854b;;_0x2b70e0[_0x5537c6(0x15b6)]=[_0x5537c6(0x22bf),_0x5537c6(0xcb9),_0x5537c6(0x142b),'msNavigationAgentService','toasty'];function _0x2b70e0(_0xb4bbcf,_0xceb0f9,_0x2811c4,_0x46247a,_0x3da7df){const _0x5f1502=_0x5537c6,_0x541205=this;_0x541205['agent']={},_0x541205[_0x5f1502(0x511)]=_0x46247a[_0x5f1502(0x221)](),_0x541205[_0x5f1502(0x1b1a)],_0x541205[_0x5f1502(0x1a8e)]=_0x1755d5,_0x541205[_0x5f1502(0x108e)]=_0xb64156;function _0x1755d5(_0x55e937,_0x204de0){const _0x34a254=_0x5f1502;_0x541205[_0x34a254(0x1eff)]=_0x55e937,_0x541205[_0x34a254(0x1b1a)]=typeof _0x204de0!=='undefined'?_0x204de0:{'readOnly':!![],'canEdit':![],'canDelete':![]};}function _0xb64156(_0x593470,_0x4c037f){const _0x56aeaf=_0x5f1502,_0x4fc2aa=_0x4c037f||_0x593470;if(_0x4fc2aa[_0x56aeaf(0x281c)]){if(_0x4c037f)_0x4c037f[_0x56aeaf(0x281c)]=!![],_0x541205[_0x56aeaf(0x1eff)][_0x56aeaf(0x6ef)][_0x56aeaf(0x2785)](_0x4c037f['id']);else for(let _0x1a8b45=0x0;_0x1a8b45<_0x593470[_0x56aeaf(0x27a5)][_0x56aeaf(0xfd0)];_0x1a8b45++){_0x593470[_0x56aeaf(0x27a5)][_0x1a8b45][_0x56aeaf(0x281c)]=!![],_0x541205[_0x56aeaf(0x1eff)][_0x56aeaf(0x6ef)][_0x56aeaf(0x2785)](_0x593470['children'][_0x1a8b45]['id']);}_0x593470['enabled']=!![],_0x541205[_0x56aeaf(0x1eff)][_0x56aeaf(0x6ef)][_0x56aeaf(0x2785)](_0x593470['id']);}else{if(_0x4c037f)_0x4c037f[_0x56aeaf(0x281c)]=![],_0x39641b()[_0x56aeaf(0x152a)](_0x541205[_0x56aeaf(0x1eff)]['permissions'],function(_0x23ca4e){return _0x4c037f['id']===_0x23ca4e;}),_0x39641b()[_0x56aeaf(0x1c99)](_0x593470[_0x56aeaf(0x27a5)],{'enabled':![]})[_0x56aeaf(0xfd0)]===_0x593470[_0x56aeaf(0x27a5)][_0x56aeaf(0xfd0)]&&(_0x593470[_0x56aeaf(0x281c)]=![],_0x39641b()['remove'](_0x541205[_0x56aeaf(0x1eff)][_0x56aeaf(0x6ef)],function(_0x18c2b1){return _0x593470['id']===_0x18c2b1;}));else{_0x593470[_0x56aeaf(0x281c)]=![],_0x39641b()[_0x56aeaf(0x152a)](_0x541205[_0x56aeaf(0x1eff)]['permissions'],function(_0x224265){return _0x593470['id']===_0x224265;});for(let _0x11bb01=0x0;_0x11bb01<_0x593470[_0x56aeaf(0x27a5)][_0x56aeaf(0xfd0)];_0x11bb01++){_0x593470[_0x56aeaf(0x27a5)][_0x11bb01][_0x56aeaf(0x281c)]=![],_0x39641b()[_0x56aeaf(0x152a)](_0x541205[_0x56aeaf(0x1eff)]['permissions'],function(_0x528078){const _0x24a470=_0x56aeaf;return _0x593470[_0x24a470(0x27a5)][_0x11bb01]['id']===_0x528078;});}}}return _0x2811c4['user'][_0x56aeaf(0x687)]({'id':_0x541205[_0x56aeaf(0x1eff)]['id'],'permissions':_0x39641b()[_0x56aeaf(0x14bc)](_0x541205[_0x56aeaf(0x1eff)][_0x56aeaf(0x6ef)])})[_0x56aeaf(0x1d77)][_0x56aeaf(0x1cb0)](function(){const _0x5ad996=_0x56aeaf;_0x3da7df[_0x5ad996(0x829)]({'title':_0x5ad996(0x20c6),'msg':_0x541205[_0x5ad996(0x1eff)]['name']?_0x541205[_0x5ad996(0x1eff)][_0x5ad996(0x16b6)]+_0x5ad996(0x1068):''});})[_0x56aeaf(0x1c4)](function(_0x28440f){const _0x98494a=_0x56aeaf;console[_0x98494a(0x218e)](_0x28440f);});}}const _0x208147=_0x2b70e0;;_0x22c83a['$inject']=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1eff),_0x5537c6(0x1072),_0x5537c6(0x979),_0x5537c6(0x1ae),'Auth',_0x5537c6(0x1b1a)];function _0x22c83a(_0x4423d3,_0x16f45d,_0x51e51e,_0x2f37ea,_0x22cf6d,_0x5bd386,_0x32496d,_0x492c64,_0x5c13b9,_0x3dfc7e){const _0x24fc95=_0x5537c6,_0x12e24e=this;_0x12e24e[_0x24fc95(0xe76)]=_0x5c13b9[_0x24fc95(0x21e8)](),_0x12e24e[_0x24fc95(0x1eff)]=_0x22cf6d,_0x12e24e[_0x24fc95(0x1b1a)]=_0x3dfc7e,_0x12e24e[_0x24fc95(0x1cbc)]=0x0,_0x12e24e['channel']=_0x5bd386,_0x12e24e[_0x24fc95(0x979)]=_0x32496d,_0x12e24e['apiName']=_0x12e24e[_0x24fc95(0x1072)]+_0x24fc95(0x2687),_0x12e24e[_0x24fc95(0x1386)]=_0x492c64[_0x24fc95(0x25cc)](_0x24fc95(0x20b9)+_0x12e24e['channel']['toUpperCase']()+'_'+_0x12e24e[_0x24fc95(0x979)]['toUpperCase']()),_0x12e24e[_0x24fc95(0x122f)]=[],_0x12e24e[_0x24fc95(0x1372)]=[],_0x12e24e[_0x24fc95(0x20bb)]=[],_0x12e24e[_0x24fc95(0xbd5)]=[],_0x12e24e[_0x24fc95(0x1456)]=[],_0x12e24e['pendingChanges']=![],_0x12e24e[_0x24fc95(0x18c0)]={'readOnly':!_0x12e24e[_0x24fc95(0x1b1a)][_0x24fc95(0xb3d)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x24fc95(0x16b6),'line1':'name','line2':_0x24fc95(0x66a),'line3':_0x12e24e['channel']===_0x24fc95(0x1fd4)?'penalty':'','labelAll':_0x492c64[_0x24fc95(0x25cc)](_0x24fc95(0x16b8)+_0x12e24e[_0x24fc95(0x1072)][_0x24fc95(0x2335)]()+'_'+_0x12e24e[_0x24fc95(0x979)][_0x24fc95(0x2335)]()),'labelSelected':_0x492c64[_0x24fc95(0x25cc)](_0x24fc95(0x27ee)+_0x12e24e['channel'][_0x24fc95(0x2335)]()+'_'+_0x12e24e[_0x24fc95(0x979)][_0x24fc95(0x2335)]()),'transferCallback':function(_0x2bf0d7,_0x5db914){const _0x72504e=_0x24fc95;_0x5db914?_0x2bf0d7[_0x72504e(0xf90)](function(_0x26dccf){_0x26dccf['penalty']=undefined;}):_0x2bf0d7[_0x72504e(0xf90)](function(_0x2d4e18){const _0x55034b=_0x72504e;_0x2d4e18[_0x55034b(0x1cbc)]=_0x55034b(0x455)+_0x12e24e[_0x55034b(0x1cbc)];});const _0x6d1741=_0x39641b()['xorWith'](_0x12e24e[_0x72504e(0x1456)],_0x12e24e[_0x72504e(0x20bb)],function(_0x236653,_0x30dbac){const _0x1cba6b=_0x72504e;return _0x236653['id']===_0x30dbac['id']&&_0x236653[_0x1cba6b(0x1cbc)]===_0x30dbac[_0x1cba6b(0x1cbc)];});_0x12e24e[_0x72504e(0x50c)]=_0x39641b()[_0x72504e(0xce9)](_0x6d1741)?![]:!![];}},_0x12e24e[_0x24fc95(0x1a34)]=_0x7ec448,_0x12e24e[_0x24fc95(0x1ac3)]=_0xe7afee,_0x12e24e[_0x24fc95(0xda0)]=_0x2356e2;function _0x7ec448(){const _0x37d697=_0x24fc95;return _0x5c13b9['hasRole'](_0x37d697(0x1c60))?_0x11f816()[_0x37d697(0x1c4)](function(_0x43d0ea){const _0x3ff4d5=_0x37d697;_0x51e51e[_0x3ff4d5(0x218e)]({'title':_0x43d0ea[_0x3ff4d5(0x291)]?'API:'+_0x43d0ea[_0x3ff4d5(0x291)]+'\x20-\x20'+_0x43d0ea[_0x3ff4d5(0xc22)]:'SYSTEM:GET_QUEUES','msg':_0x43d0ea[_0x3ff4d5(0x291)]?JSON[_0x3ff4d5(0x2701)](_0x43d0ea[_0x3ff4d5(0x25c)]):_0x43d0ea[_0x3ff4d5(0x147f)]()});}):_0x3f2dbf()[_0x37d697(0x1cb0)](function(_0x212655){const _0x569e8f=_0x37d697;return _0x12e24e[_0x569e8f(0x1f74)]=_0x212655,_0x11f816();})['catch'](function(_0x4d6f18){const _0x2234c5=_0x37d697;_0x51e51e['error']({'title':_0x4d6f18[_0x2234c5(0x291)]?_0x2234c5(0xeb9)+_0x4d6f18['status']+_0x2234c5(0x1657)+_0x4d6f18[_0x2234c5(0xc22)]:_0x2234c5(0x277c),'msg':_0x4d6f18[_0x2234c5(0x291)]?JSON['stringify'](_0x4d6f18['data']):_0x4d6f18['toString']()});});}function _0x3f2dbf(){return _0x16f45d(function(_0x36e230,_0xd0fa50){const _0x56bedc=a0_0x5cbd;let _0x5290d4;switch(_0x12e24e[_0x56bedc(0x1072)]){case _0x56bedc(0x1fd4):switch(_0x12e24e[_0x56bedc(0x979)]){case _0x56bedc(0x26c0):_0x5290d4=_0x56bedc(0x2382);break;case'outbound':_0x5290d4=_0x56bedc(0x1e28);break;}break;case'chat':_0x5290d4=_0x56bedc(0x23a4);break;case _0x56bedc(0x2651):_0x5290d4='MailQueues';break;case _0x56bedc(0x689):_0x5290d4=_0x56bedc(0x14ad);break;case _0x56bedc(0x15e0):_0x5290d4=_0x56bedc(0x1765);break;case _0x56bedc(0x1944):_0x5290d4=_0x56bedc(0x1972);break;}_0x2f37ea['userProfileSection'][_0x56bedc(0xbf7)]({'userProfileId':_0x12e24e['currentUser']['userProfileId'],'name':_0x5290d4})[_0x56bedc(0x1d77)][_0x56bedc(0x1cb0)](function(_0x5bebbe){const _0x3f9635=_0x56bedc,_0x7e6ce0=_0x5bebbe&&_0x5bebbe['rows']?_0x5bebbe[_0x3f9635(0x2214)][0x0]:null;_0x36e230(_0x7e6ce0);})[_0x56bedc(0x1c4)](function(_0x59fb57){_0xd0fa50(_0x59fb57);});});}function _0x11f816(){return _0x16f45d(function(_0x42ebaa,_0x3588f5){const _0x1a07d9=a0_0x5cbd;return _0x2d7dd7()[_0x1a07d9(0x1cb0)](function(_0x1e1f2b){const _0x3a9f74=_0x1a07d9;return _0x12e24e[_0x3a9f74(0x122f)]=_0x1e1f2b[_0x3a9f74(0x2214)]?_0x1e1f2b['rows']:[],_0x5c13b9['hasRole'](_0x3a9f74(0x1c60))?_0x1e1f2b:_0x12e24e[_0x3a9f74(0x1f74)]?_0x12e24e['section'][_0x3a9f74(0x12f4)]?_0x1e1f2b:_0x3dad31():null;})['then'](function(_0x3efbe4){const _0x1ed813=_0x1a07d9,_0xba6ee2=_0x3efbe4&&_0x3efbe4[_0x1ed813(0x2214)]?_0x3efbe4[_0x1ed813(0x2214)]:[];return _0x12e24e[_0x1ed813(0x1372)]=_0x39641b()[_0x1ed813(0x1de2)](_0xba6ee2,function(_0x346ec7){const _0x2cc6ad=_0x1ed813;return _0x39641b()[_0x2cc6ad(0x13b4)](_0x12e24e[_0x2cc6ad(0x122f)],{'id':_0x5c13b9['hasRole'](_0x2cc6ad(0x1c60))||_0x12e24e[_0x2cc6ad(0x1f74)][_0x2cc6ad(0x12f4)]?_0x346ec7['id']:_0x346ec7[_0x2cc6ad(0x2982)]});}),_0x12e24e[_0x1ed813(0xbd5)]=angular[_0x1ed813(0x17fe)](_0x12e24e[_0x1ed813(0x1372)]),_0x12e24e[_0x1ed813(0x122f)][_0x1ed813(0xf90)](function(_0xe91c5c){const _0x3a23d6=_0x1ed813,_0x3cca56=_0x39641b()[_0x3a23d6(0x13b4)](_0x12e24e['allowedItems'],{'id':_0xe91c5c['id']});_0x5c13b9[_0x3a23d6(0x22b6)](_0x3a23d6(0x1c60))?_0xe91c5c[_0x3a23d6(0x1a4f)]=!![]:_0xe91c5c['isValid']=typeof _0x3cca56!=='undefined'?!![]:![];}),_0x187bde();})[_0x1a07d9(0x1cb0)](function(_0x450856){const _0x2e18d7=_0x1a07d9,_0x7c884d=_0x450856&&_0x450856[_0x2e18d7(0x2214)]?_0x450856[_0x2e18d7(0x2214)]:[];_0x12e24e[_0x2e18d7(0x20bb)]=_0x39641b()[_0x2e18d7(0x1de2)](_0x7c884d,function(_0x111c13){const _0x2fbfff=_0x2e18d7,_0x18a88c=_0x39641b()['find'](_0x12e24e['items'],{'id':_0x111c13['id']});return _0x12e24e['channel']==='voice'&&(_0x18a88c['penalty']=typeof _0x18a88c!=='undefined'&&typeof _0x111c13['UserVoiceQueue']!==_0x2fbfff(0x16b5)?'penalty\x20'+_0x111c13[_0x2fbfff(0x2071)]['penalty']:'penalty\x20'+0x0),_0x18a88c;}),_0x12e24e['startingSelectedItems']=angular['copy'](_0x12e24e[_0x2e18d7(0x20bb)]),_0x12e24e[_0x2e18d7(0x18c0)][_0x2e18d7(0x20bb)]=_0x12e24e[_0x2e18d7(0x20bb)],_0x12e24e[_0x2e18d7(0x18c0)][_0x2e18d7(0x122f)]=_0x39641b()[_0x2e18d7(0x2128)](_0x12e24e[_0x2e18d7(0x1372)],_0x12e24e[_0x2e18d7(0x18c0)][_0x2e18d7(0x20bb)],'id'),_0x42ebaa();})[_0x1a07d9(0x1c4)](function(_0xdfe3a8){_0x3588f5(_0xdfe3a8);});});}function _0x3dad31(){return _0x16f45d(function(_0xdf8a87,_0x43908b){const _0x4aa489=a0_0x5cbd;return _0x2f37ea['userProfileResource'][_0x4aa489(0xbf7)]({'sectionId':_0x12e24e[_0x4aa489(0x1f74)]['id'],'nolimit':!![]})[_0x4aa489(0x1d77)]['then'](function(_0x1f42fd){_0xdf8a87(_0x1f42fd);})['catch'](function(_0xba3722){_0x43908b(_0xba3722);});});}function _0x187bde(){return _0x16f45d(function(_0x3e66f4,_0x4f633d){const _0x219c01=a0_0x5cbd;return _0x2f37ea[_0x219c01(0xebe)][_0x219c01(0x13e9)]({'id':_0x12e24e['agent']['id'],'fields':'id,name,strategy,type,penalty','nolimit':!![],'type':_0x12e24e[_0x219c01(0x979)],'channel':_0x12e24e[_0x219c01(0x1072)]})['$promise']['then'](function(_0x2c3904){_0x3e66f4(_0x2c3904);})[_0x219c01(0x1c4)](function(_0x38356e){_0x4f633d(_0x38356e);});});}function _0x2d7dd7(){return _0x16f45d(function(_0x1cbec7,_0x4ebf11){const _0x148724=a0_0x5cbd;return _0x2f37ea[_0x12e24e['apiName']][_0x148724(0xbf7)]({'fields':_0x148724(0x267e),'channel':_0x12e24e[_0x148724(0x1072)]==='bull'?_0x148724(0x1fd4):_0x12e24e[_0x148724(0x1072)],'type':_0x12e24e[_0x148724(0x979)],'nolimit':!![]})[_0x148724(0x1d77)]['then'](function(_0x43d76b){_0x1cbec7(_0x43d76b);})[_0x148724(0x1c4)](function(_0x4ecab3){_0x4ebf11(_0x4ecab3);});});}function _0x1b2134(_0xc65864){return _0x16f45d(function(_0x4e5d94,_0x2736a7){const _0x35661f=a0_0x5cbd;if(_0x39641b()[_0x35661f(0xce9)](_0xc65864))_0x4e5d94();else{if(_0x12e24e[_0x35661f(0x1072)]===_0x35661f(0x1fd4)){const _0x4f64ac=[],_0x38506c=_0x39641b()['groupBy'](_0xc65864,'penalty');for(let _0x4b8e5b=0x0;_0x4b8e5b':'',_0x567c32;}),_0x2271bb[_0x6b158d(0x1456)]=angular[_0x6b158d(0x17fe)](_0x2271bb['selectedItems']),_0x2271bb['dualMultiselectOptions'][_0x6b158d(0x20bb)]=_0x2271bb[_0x6b158d(0x20bb)],_0x2271bb[_0x6b158d(0x18c0)][_0x6b158d(0x122f)]=_0x39641b()[_0x6b158d(0x2128)](_0x2271bb[_0x6b158d(0x1372)],_0x2271bb[_0x6b158d(0x18c0)]['selectedItems'],'id'),_0xcab6e0();})[_0x5dcef6(0x1c4)](function(_0x100b49){_0x5db2b7(_0x100b49);});});}function _0x3de7ce(){return _0x5795f5(function(_0x20fb8b,_0x21dd8e){const _0x48de29=a0_0x5cbd;return _0x156e38[_0x48de29(0x1198)]['get']({'sectionId':_0x2271bb[_0x48de29(0x1f74)]['id'],'nolimit':!![]})['$promise'][_0x48de29(0x1cb0)](function(_0x2505e6){_0x20fb8b(_0x2505e6);})[_0x48de29(0x1c4)](function(_0x18efc6){_0x21dd8e(_0x18efc6);});});}function _0x4f589a(){return _0x5795f5(function(_0x3e4d03,_0x429282){const _0x16de37=a0_0x5cbd;return _0x156e38[_0x16de37(0xdfd)][_0x16de37(0x2348)]({'id':_0x2271bb['team']['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0x16de37(0x1d77)][_0x16de37(0x1cb0)](function(_0x3f1cf1){_0x3e4d03(_0x3f1cf1);})[_0x16de37(0x1c4)](function(_0x404e11){_0x429282(_0x404e11);});});}function _0x2167ed(){return _0x5795f5(function(_0x223f35,_0x1914d5){const _0xe4cb21=a0_0x5cbd;return _0x156e38[_0xe4cb21(0xebe)][_0xe4cb21(0xbf7)]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0xe4cb21(0x1eff)})[_0xe4cb21(0x1d77)]['then'](function(_0x2d68f4){_0x223f35(_0x2d68f4);})[_0xe4cb21(0x1c4)](function(_0x12b51b){_0x1914d5(_0x12b51b);});});}function _0x314965(_0x11b83b){return _0x5795f5(function(_0x26658f,_0xb9b8ba){const _0x3477b7=a0_0x5cbd;_0x39641b()[_0x3477b7(0xce9)](_0x11b83b)?_0x26658f():_0x156e38['team']['addAgents']({'id':_0x2271bb['team']['id'],'ids':_0x39641b()[_0x3477b7(0x1de2)](_0x11b83b,'id')})[_0x3477b7(0x1d77)][_0x3477b7(0x1cb0)](function(){_0x26658f();})[_0x3477b7(0x1c4)](function(_0x4e312d){_0xb9b8ba(_0x4e312d);});});}function _0x2063c5(_0x3f7594){return _0x5795f5(function(_0x417af4,_0x1430d8){const _0x119e70=a0_0x5cbd;_0x39641b()[_0x119e70(0xce9)](_0x3f7594)?_0x417af4():_0x156e38['team'][_0x119e70(0x223f)]({'id':_0x2271bb[_0x119e70(0xdfd)]['id'],'ids':_0x39641b()[_0x119e70(0x1de2)](_0x3f7594,'id')})[_0x119e70(0x1d77)]['then'](function(){_0x417af4();})[_0x119e70(0x1c4)](function(_0x57c277){_0x1430d8(_0x57c277);});});}function _0x86808b(){const _0x3f2021=_0x6c3ece,_0x3fa58a=_0x39641b()[_0x3f2021(0x2128)](_0x2271bb[_0x3f2021(0x1456)],_0x2271bb['selectedItems'],'id'),_0x1117ec=_0x39641b()[_0x3f2021(0x2128)](_0x2271bb[_0x3f2021(0x20bb)],_0x2271bb[_0x3f2021(0x1456)],'id');return _0x2063c5(_0x3fa58a)[_0x3f2021(0x1cb0)](function(){return _0x314965(_0x1117ec);})[_0x3f2021(0x1cb0)](function(){const _0x73429c=_0x3f2021;_0x2271bb[_0x73429c(0x50c)]=![],_0x2271bb[_0x73429c(0xbd5)]=angular[_0x73429c(0x17fe)](_0x2271bb[_0x73429c(0x1372)]),_0x2271bb[_0x73429c(0x1456)]=angular[_0x73429c(0x17fe)](_0x2271bb[_0x73429c(0x20bb)]),_0xc964ab[_0x73429c(0x829)]({'title':_0x73429c(0x201),'msg':_0x73429c(0x976)});})['catch'](function(_0x4c729b){const _0x103697=_0x3f2021;_0xc964ab[_0x103697(0x218e)]({'title':_0x4c729b[_0x103697(0x291)]?'API:'+_0x4c729b[_0x103697(0x291)]+'\x20-\x20'+_0x4c729b[_0x103697(0xc22)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x4c729b[_0x103697(0x291)]?JSON[_0x103697(0x2701)](_0x4c729b[_0x103697(0x25c)]):_0x4c729b['toString']()});});}function _0x3240e3(){const _0x2c3003=_0x6c3ece;_0xb4af37[_0x2c3003(0x1426)]();}}const _0x8d0bee=_0x9d146b;;const _0x339348=_0x5074a3['p']+_0x5537c6(0x268);;const _0x46eb7c=_0x5074a3['p']+_0x5537c6(0x1a8);;_0x1e9374[_0x5537c6(0x15b6)]=['$scope','$window','$state',_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),'teams',_0x5537c6(0x44a),'userProfileSection','api',_0x5537c6(0xde8),'toasty',_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting'];function _0x1e9374(_0x59adbc,_0x1a8621,_0x17460a,_0x2850af,_0x2a6f8a,_0x109291,_0x2c2c1e,_0x547a5c,_0x35821a,_0x5c1ad1,_0x1158b0,_0x4273da,_0x33e4b8,_0x23323f,_0x2c1f08,_0x20ca98,_0x265ef1){const _0x46362d=_0x5537c6,_0xb9fffd=this;_0xb9fffd[_0x46362d(0x8a5)]=_0x20ca98,_0xb9fffd[_0x46362d(0x9ca)]=_0x265ef1,_0xb9fffd[_0x46362d(0xe76)]=_0x2c1f08['getCurrentUser'](),_0xb9fffd[_0x46362d(0xef9)]=_0x35821a||{'count':0x0,'rows':[]},_0xb9fffd[_0x46362d(0x44a)]=_0x5c1ad1,_0xb9fffd[_0x46362d(0x2199)]=_0x1158b0&&_0x1158b0['count']==0x1?_0x1158b0[_0x46362d(0x2214)][0x0]:null,_0xb9fffd[_0x46362d(0x1b1a)]=_0x2c1f08[_0x46362d(0x14ea)](_0xb9fffd[_0x46362d(0x2199)]?_0xb9fffd[_0x46362d(0x2199)]['crudPermissions']:null),_0xb9fffd[_0x46362d(0xc83)]=_0x46362d(0xef9),_0xb9fffd[_0x46362d(0x1d20)]='',_0xb9fffd[_0x46362d(0x1cdf)]=null,_0xb9fffd[_0x46362d(0xf2a)]=[],_0xb9fffd['query']={'fields':_0x46362d(0x12e8),'sort':'-updatedAt','limit':0xa,'page':0x1},_0xb9fffd[_0x46362d(0xc93)]=_0x108191,_0xb9fffd[_0x46362d(0x1379)]=_0x1f4bfc,_0xb9fffd[_0x46362d(0x27fe)]=_0x4ef60c,_0xb9fffd[_0x46362d(0x829)]=_0x37d325,_0xb9fffd[_0x46362d(0x1407)]=_0x3a2c0a,_0xb9fffd[_0x46362d(0x234e)]=_0x84cca7,_0xb9fffd[_0x46362d(0x29b9)]=_0x3c549a,_0xb9fffd[_0x46362d(0x1900)]=_0x189a48,_0xb9fffd[_0x46362d(0xa8f)]=_0x47b9f9,_0xb9fffd[_0x46362d(0x2fe)]=_0x19851f,_0xb9fffd['selectAllTeams']=_0x1ddbb3;function _0x108191(_0x5bdfbc,_0x577db5){const _0x1c84db=_0x46362d;_0x2a6f8a['show']({'controller':'CreateOrEditTeamDialogController','controllerAs':'vm','templateUrl':_0x339348,'parent':angular[_0x1c84db(0x1853)](_0x109291[_0x1c84db(0x1ed9)]),'targetEvent':_0x577db5,'clickOutsideToClose':!![],'locals':{'team':_0x5bdfbc,'teams':_0xb9fffd[_0x1c84db(0xef9)][_0x1c84db(0x2214)],'license':_0xb9fffd[_0x1c84db(0x8a5)],'setting':null,'crudPermissions':_0xb9fffd[_0x1c84db(0x1b1a)]}});}function _0x1f4bfc(_0x57125c,_0x3c9663){const _0x34a1c3=_0x46362d;_0x2a6f8a[_0x34a1c3(0xe27)]({'controller':_0x34a1c3(0xffa),'controllerAs':'vm','templateUrl':_0x46eb7c,'parent':angular[_0x34a1c3(0x1853)](_0x109291[_0x34a1c3(0x1ed9)]),'targetEvent':_0x3c9663,'clickOutsideToClose':!![],'locals':{'team':_0x57125c,'teams':_0xb9fffd[_0x34a1c3(0xef9)]?_0xb9fffd['teams'][_0x34a1c3(0x2214)]:[],'crudPermissions':_0xb9fffd[_0x34a1c3(0x1b1a)],'realtime':![]}});}function _0x4ef60c(_0x4551f1,_0x1b491a){const _0x51d8bd=_0x46362d,_0x3c2b73=_0x2a6f8a['confirm']()[_0x51d8bd(0x1386)](_0x51d8bd(0x140b)+_0x39641b()[_0x51d8bd(0xa75)](_0x51d8bd(0xdfd))+'?')[_0x51d8bd(0x49e)](_0x51d8bd(0x204d)+(_0x4551f1[_0x51d8bd(0x16b6)]||_0x51d8bd(0xdfd))+_0x51d8bd(0x1200)+_0x51d8bd(0x1b6))[_0x51d8bd(0x15ad)](_0x51d8bd(0x1ef2))[_0x51d8bd(0x728)](_0x1b491a)['ok']('OK')['cancel'](_0x51d8bd(0x24ba));_0x2a6f8a[_0x51d8bd(0xe27)](_0x3c2b73)[_0x51d8bd(0x1cb0)](function(){_0x3c549a(_0x4551f1);},function(){const _0x42daa9=_0x51d8bd;console[_0x42daa9(0x1b4f)]('CANCEL');});}let _0x2b737c=!![],_0x8a40f6=0x1;_0x59adbc[_0x46362d(0x614)]('vm.query.filter',function(_0x3d01f1,_0x2acb1a){const _0x2162a4=_0x46362d;_0x2b737c?_0x2c2c1e(function(){_0x2b737c=![];}):(!_0x2acb1a&&(_0x8a40f6=_0xb9fffd[_0x2162a4(0xae2)]['page']),_0x3d01f1!==_0x2acb1a&&(_0xb9fffd[_0x2162a4(0xae2)][_0x2162a4(0x1c7b)]=0x1),!_0x3d01f1&&(_0xb9fffd['query'][_0x2162a4(0x1c7b)]=_0x8a40f6),_0xb9fffd[_0x2162a4(0x1407)]());});function _0x37d325(_0x44109b){const _0xb0f24b=_0x46362d;_0xb9fffd[_0xb0f24b(0xef9)]=_0x44109b||{'count':0x0,'rows':[]};}function _0x3a2c0a(){const _0x5ceff2=_0x46362d;_0xb9fffd[_0x5ceff2(0xae2)][_0x5ceff2(0x184b)]=(_0xb9fffd['query'][_0x5ceff2(0x1c7b)]-0x1)*_0xb9fffd[_0x5ceff2(0xae2)]['limit'],_0x2c1f08['hasRole']('admin')?_0xb9fffd[_0x5ceff2(0x2061)]=_0x4273da[_0x5ceff2(0xdfd)][_0x5ceff2(0xbf7)](_0xb9fffd['query'],_0x37d325)[_0x5ceff2(0x1d77)]:(_0xb9fffd[_0x5ceff2(0xae2)]['id']=_0xb9fffd['userProfile']['id'],_0xb9fffd[_0x5ceff2(0xae2)][_0x5ceff2(0x1f74)]=_0x5ceff2(0x492),_0xb9fffd[_0x5ceff2(0x2061)]=_0x4273da[_0x5ceff2(0x44a)]['getResources'](_0xb9fffd[_0x5ceff2(0xae2)],_0x37d325)['$promise']);}function _0x84cca7(_0x51218a,_0x5a7aba){const _0x443e8a=_0x46362d;_0x2a6f8a[_0x443e8a(0xe27)]({'controller':_0x443e8a(0x3e7),'controllerAs':'vm','templateUrl':_0x339348,'parent':angular[_0x443e8a(0x1853)](_0x109291[_0x443e8a(0x1ed9)]),'targetEvent':_0x51218a,'clickOutsideToClose':!![],'locals':{'team':_0x5a7aba,'teams':_0xb9fffd[_0x443e8a(0xef9)][_0x443e8a(0x2214)],'license':_0xb9fffd['license'],'setting':_0xb9fffd[_0x443e8a(0x9ca)],'crudPermissions':_0xb9fffd[_0x443e8a(0x1b1a)]}});}function _0x3c549a(_0x2ae56c){const _0x108e69=_0x46362d;_0x4273da[_0x108e69(0xdfd)]['delete']({'id':_0x2ae56c['id']})[_0x108e69(0x1d77)]['then'](function(){const _0x317a92=_0x108e69;_0x39641b()[_0x317a92(0x152a)](_0xb9fffd[_0x317a92(0xef9)][_0x317a92(0x2214)],{'id':_0x2ae56c['id']}),_0xb9fffd[_0x317a92(0xef9)][_0x317a92(0x184d)]-=0x1,!_0xb9fffd[_0x317a92(0xef9)][_0x317a92(0x2214)][_0x317a92(0xfd0)]&&_0xb9fffd[_0x317a92(0x1407)](),_0x23323f['success']({'title':_0x39641b()[_0x317a92(0xa75)](_0x317a92(0xa33))+_0x317a92(0x2663),'msg':_0x2ae56c[_0x317a92(0x16b6)]?_0x2ae56c[_0x317a92(0x16b6)]+_0x317a92(0x3f5):''});})[_0x108e69(0x1c4)](function(_0x2e00ad){const _0x16cbe0=_0x108e69;if(_0x2e00ad[_0x16cbe0(0x25c)]&&_0x2e00ad[_0x16cbe0(0x25c)]['errors']&&_0x2e00ad['data'][_0x16cbe0(0x1a7c)]['length']){_0xb9fffd[_0x16cbe0(0x1a7c)]=_0x2e00ad['data'][_0x16cbe0(0x1a7c)]||[{'message':_0x2e00ad[_0x16cbe0(0x147f)](),'type':_0x16cbe0(0x1c46)}];for(let _0x4655cf=0x0;_0x4655cf<_0x2e00ad[_0x16cbe0(0x25c)][_0x16cbe0(0x1a7c)]['length'];_0x4655cf++){_0x23323f[_0x16cbe0(0x218e)]({'title':_0x2e00ad[_0x16cbe0(0x25c)][_0x16cbe0(0x1a7c)][_0x4655cf][_0x16cbe0(0x66a)],'msg':_0x2e00ad[_0x16cbe0(0x25c)][_0x16cbe0(0x1a7c)][_0x4655cf]['message']});}}else _0x23323f['error']({'title':_0x2e00ad['status']?_0x16cbe0(0xeb9)+_0x2e00ad[_0x16cbe0(0x291)]+_0x16cbe0(0x1657)+_0x2e00ad[_0x16cbe0(0xc22)]:_0x16cbe0(0x1c46),'msg':_0x2e00ad[_0x16cbe0(0x25c)]?JSON['stringify'](_0x2e00ad[_0x16cbe0(0x25c)][_0x16cbe0(0x155e)]):_0x2e00ad[_0x16cbe0(0x155e)]||_0x2e00ad[_0x16cbe0(0x147f)]()});});}function _0x189a48(){const _0x247a94=_0x46362d,_0x20b44d=angular['copy'](_0xb9fffd[_0x247a94(0xf2a)]);return _0xb9fffd[_0x247a94(0xf2a)]=[],_0x20b44d;}function _0x47b9f9(_0x3b024a){const _0xb0dfe5=_0x46362d,_0xab9d94=_0x2a6f8a[_0xb0dfe5(0x1551)]()[_0xb0dfe5(0x1386)](_0xb0dfe5(0xa4b))[_0xb0dfe5(0x49e)](_0xb0dfe5(0x204d)+_0xb9fffd[_0xb0dfe5(0xf2a)][_0xb0dfe5(0xfd0)]+_0xb0dfe5(0x1d6c)+_0xb0dfe5(0x1b6))[_0xb0dfe5(0x15ad)]('delete\x20Teams')[_0xb0dfe5(0x728)](_0x3b024a)['ok']('OK')[_0xb0dfe5(0x696)]('CANCEL');_0x2a6f8a[_0xb0dfe5(0xe27)](_0xab9d94)[_0xb0dfe5(0x1cb0)](function(){const _0x5f2b5c=_0xb0dfe5;_0xb9fffd['selectedTeams'][_0x5f2b5c(0xf90)](function(_0x329de0){_0x3c549a(_0x329de0);}),_0xb9fffd[_0x5f2b5c(0xf2a)]=[];});}function _0x19851f(){_0xb9fffd['selectedTeams']=[];}function _0x1ddbb3(){const _0x3afa57=_0x46362d;_0xb9fffd['selectedTeams']=_0xb9fffd[_0x3afa57(0xef9)][_0x3afa57(0x2214)];}}const _0x585d64=_0x1e9374;;_0x1ffa90[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),'$location',_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),'telephones',_0x5537c6(0x2922),_0x5537c6(0x142b),'Auth','license',_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x1ffa90(_0xa870f5,_0xc40f58,_0x3bbae3,_0x383785,_0x7d625e,_0x4126dc,_0x2fa1bc,_0x221581,_0x25f7a1,_0x24c760,_0x2412ba,_0x1a36bb,_0x51a13e,_0x2ba6ed){const _0x4b4740=_0x5537c6,_0xce14e0=this;_0xce14e0[_0x4b4740(0xe76)]=_0x2412ba[_0x4b4740(0x21e8)](),_0xce14e0[_0x4b4740(0x1a7c)]=[],_0xce14e0[_0x4b4740(0x9ca)]=_0x51a13e,_0xce14e0[_0x4b4740(0x8a5)]=_0x1a36bb,_0xce14e0[_0x4b4740(0x1b1a)]=_0x2ba6ed,_0xce14e0[_0x4b4740(0xf4c)]={},_0xce14e0[_0x4b4740(0x1b0c)]=_0xce14e0[_0x4b4740(0x9ca)]&&_0xce14e0[_0x4b4740(0x9ca)][_0x4b4740(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xce14e0['title']=_0x4b4740(0x27ce),_0xce14e0['telephone']=angular[_0x4b4740(0x17fe)](_0x25f7a1),_0xce14e0[_0x4b4740(0x5f8)]=_0x221581,_0xce14e0[_0x4b4740(0x2236)]=![];!_0xce14e0['telephone']&&(_0xce14e0[_0x4b4740(0x2922)]={'role':_0x4b4740(0x2922),'autointernal':!![],'context':_0x4b4740(0x156f)},_0xce14e0[_0x4b4740(0x1386)]=_0x4b4740(0x256d),_0xce14e0['newTelephone']=!![]);_0xce14e0['addNewTelephone']=_0xf66b06,_0xce14e0['saveTelephone']=_0x1f1ef8,_0xce14e0[_0x4b4740(0x16c1)]=_0x4c0303,_0xce14e0['getDateFromString']=_0x1d4390,_0xce14e0[_0x4b4740(0xda0)]=_0x442b2b;function _0xf66b06(){const _0x4c8b63=_0x4b4740;_0xce14e0[_0x4c8b63(0x1a7c)]=[],_0x24c760['user'][_0x4c8b63(0x1c3f)](_0xce14e0[_0x4c8b63(0x2922)])[_0x4c8b63(0x1d77)]['then'](function(_0x1263ea){const _0x3bd9e1=_0x4c8b63;_0xce14e0['telephones'][_0x3bd9e1(0xf63)](_0x1263ea[_0x3bd9e1(0x19b2)]()),_0x2fa1bc[_0x3bd9e1(0x829)]({'title':_0x3bd9e1(0x2112),'msg':_0xce14e0['telephone']['name']?_0xce14e0[_0x3bd9e1(0x2922)][_0x3bd9e1(0x16b6)]+_0x3bd9e1(0x470):''}),_0x442b2b(_0x1263ea);})['catch'](function(_0x45c67b){const _0x3f557d=_0x4c8b63;if(_0x45c67b[_0x3f557d(0x25c)]&&_0x45c67b[_0x3f557d(0x25c)][_0x3f557d(0x1a7c)]&&_0x45c67b[_0x3f557d(0x25c)][_0x3f557d(0x1a7c)][_0x3f557d(0xfd0)]){_0xce14e0[_0x3f557d(0x1a7c)]=_0x45c67b[_0x3f557d(0x25c)][_0x3f557d(0x1a7c)]||[{'message':_0x45c67b[_0x3f557d(0x147f)](),'type':_0x3f557d(0x102d)}];for(let _0x4011e2=0x0;_0x4011e2<_0x45c67b[_0x3f557d(0x25c)][_0x3f557d(0x1a7c)][_0x3f557d(0xfd0)];_0x4011e2+=0x1){_0x2fa1bc[_0x3f557d(0x218e)]({'title':_0x45c67b[_0x3f557d(0x25c)][_0x3f557d(0x1a7c)][_0x4011e2][_0x3f557d(0x66a)],'msg':_0x45c67b[_0x3f557d(0x25c)][_0x3f557d(0x1a7c)][_0x4011e2][_0x3f557d(0x155e)]});}}else _0x2fa1bc['error']({'title':_0x45c67b[_0x3f557d(0x291)]?_0x3f557d(0xeb9)+_0x45c67b[_0x3f557d(0x291)]+_0x3f557d(0x1657)+_0x45c67b[_0x3f557d(0xc22)]:_0x3f557d(0x102d),'msg':_0x45c67b['data']?JSON[_0x3f557d(0x2701)](_0x45c67b[_0x3f557d(0x25c)][_0x3f557d(0x155e)]):_0x45c67b[_0x3f557d(0x147f)]()});});}function _0x1f1ef8(){const _0x5b438d=_0x4b4740;_0xce14e0['errors']=[],_0x24c760['user'][_0x5b438d(0x687)]({'id':_0xce14e0[_0x5b438d(0x2922)]['id']},_0xce14e0[_0x5b438d(0x2922)])[_0x5b438d(0x1d77)][_0x5b438d(0x1cb0)](function(_0xb14f8a){const _0x52e156=_0x5b438d,_0x536bb0=_0x39641b()[_0x52e156(0x13b4)](_0xce14e0['telephones'],{'id':_0xb14f8a['id']});_0x536bb0&&_0x39641b()[_0x52e156(0x9c1)](_0x536bb0,_0x39641b()[_0x52e156(0x169b)](_0xb14f8a[_0x52e156(0x19b2)](),_0x39641b()[_0x52e156(0x1be5)](_0x536bb0))),_0x2fa1bc[_0x52e156(0x829)]({'title':'Telephone\x20properly\x20saved!','msg':_0xce14e0[_0x52e156(0x2922)][_0x52e156(0x16b6)]?_0xce14e0[_0x52e156(0x2922)][_0x52e156(0x16b6)]+_0x52e156(0xedb):''}),_0x442b2b(_0xb14f8a);})['catch'](function(_0x10a0c7){const _0x150e39=_0x5b438d;if(_0x10a0c7[_0x150e39(0x25c)]&&_0x10a0c7['data'][_0x150e39(0x1a7c)]&&_0x10a0c7[_0x150e39(0x25c)][_0x150e39(0x1a7c)][_0x150e39(0xfd0)]){_0xce14e0['errors']=_0x10a0c7[_0x150e39(0x25c)][_0x150e39(0x1a7c)]||[{'message':_0x10a0c7[_0x150e39(0x147f)](),'type':_0x150e39(0x498)}];for(let _0x3b1303=0x0;_0x3b1303<_0x10a0c7[_0x150e39(0x25c)][_0x150e39(0x1a7c)][_0x150e39(0xfd0)];_0x3b1303++){_0x2fa1bc[_0x150e39(0x218e)]({'title':_0x10a0c7[_0x150e39(0x25c)][_0x150e39(0x1a7c)][_0x3b1303][_0x150e39(0x66a)],'msg':_0x10a0c7[_0x150e39(0x25c)]['errors'][_0x3b1303][_0x150e39(0x155e)]});}}else _0x2fa1bc[_0x150e39(0x218e)]({'title':_0x10a0c7[_0x150e39(0x291)]?_0x150e39(0xeb9)+_0x10a0c7['status']+_0x150e39(0x1657)+_0x10a0c7[_0x150e39(0xc22)]:_0x150e39(0x498),'msg':_0x10a0c7[_0x150e39(0x25c)]?JSON[_0x150e39(0x2701)](_0x10a0c7[_0x150e39(0x25c)]['message']):_0x10a0c7[_0x150e39(0x147f)]()});});}function _0x4c0303(_0xd5435c){const _0x2ce3ff=_0x4b4740;_0xce14e0['errors']=[];const _0x16d964=_0x383785[_0x2ce3ff(0x1551)]()[_0x2ce3ff(0x1386)](_0x2ce3ff(0x1a2e))['content'](_0x2ce3ff(0x12d0))['ariaLabel']('Delete\x20Telephone')['ok'](_0x2ce3ff(0x2594))['cancel'](_0x2ce3ff(0xde1))[_0x2ce3ff(0x728)](_0xd5435c);_0x383785[_0x2ce3ff(0xe27)](_0x16d964)[_0x2ce3ff(0x1cb0)](function(){const _0x1bd3e0=_0x2ce3ff;_0x24c760['user'][_0x1bd3e0(0x111d)]({'id':_0xce14e0[_0x1bd3e0(0x2922)]['id']})[_0x1bd3e0(0x1d77)]['then'](function(){const _0x1463f5=_0x1bd3e0;_0x39641b()[_0x1463f5(0x152a)](_0xce14e0['telephones'],{'id':_0xce14e0[_0x1463f5(0x2922)]['id']}),_0x2fa1bc['success']({'title':_0x1463f5(0x2b1),'msg':(_0xce14e0[_0x1463f5(0x2922)][_0x1463f5(0x16b6)]||'telephone')+_0x1463f5(0x3f5)}),_0x442b2b(_0xce14e0[_0x1463f5(0x2922)]);})[_0x1bd3e0(0x1c4)](function(_0x326118){const _0x5dac21=_0x1bd3e0;if(_0x326118[_0x5dac21(0x25c)]&&_0x326118[_0x5dac21(0x25c)][_0x5dac21(0x1a7c)]&&_0x326118[_0x5dac21(0x25c)][_0x5dac21(0x1a7c)][_0x5dac21(0xfd0)]){_0xce14e0[_0x5dac21(0x1a7c)]=_0x326118['data'][_0x5dac21(0x1a7c)]||[{'message':_0x326118[_0x5dac21(0x147f)](),'type':'api.user.delete'}];for(let _0x133471=0x0;_0x133471<_0x326118[_0x5dac21(0x25c)][_0x5dac21(0x1a7c)][_0x5dac21(0xfd0)];_0x133471++){_0x2fa1bc[_0x5dac21(0x218e)]({'title':_0x326118[_0x5dac21(0x25c)][_0x5dac21(0x1a7c)][_0x133471][_0x5dac21(0x66a)],'msg':_0x326118['data'][_0x5dac21(0x1a7c)][_0x133471][_0x5dac21(0x155e)]});}}else _0x2fa1bc[_0x5dac21(0x218e)]({'title':_0x326118['status']?_0x5dac21(0xeb9)+_0x326118[_0x5dac21(0x291)]+_0x5dac21(0x1657)+_0x326118[_0x5dac21(0xc22)]:_0x5dac21(0x180a),'msg':_0x326118[_0x5dac21(0x25c)]?JSON[_0x5dac21(0x2701)](_0x326118[_0x5dac21(0x25c)][_0x5dac21(0x155e)]):_0x326118[_0x5dac21(0x155e)]||_0x326118['toString']()});});},function(){});}function _0x1d4390(_0xe4abd4){return _0xe4abd4===null?undefined:new Date(_0xe4abd4);}function _0x442b2b(_0xfe8d){const _0x4db94f=_0x4b4740;_0x383785[_0x4db94f(0x1426)](_0xfe8d);}}const _0x8bd3ab=_0x1ffa90;;_0x5d896e['$inject']=[_0x5537c6(0x1463),_0x5537c6(0xcb9),_0x5537c6(0x9bf),'api',_0x5537c6(0x2922),_0x5537c6(0x9ca),'Auth'];function _0x5d896e(_0x1be94e,_0x3dec72,_0x48c6f2,_0x4706c8,_0xed6b9b,_0x595158,_0x13c7d4){const _0x1a0467=_0x5537c6,_0x480739=this;_0x480739[_0x1a0467(0xe76)]=_0x13c7d4[_0x1a0467(0x21e8)](),_0x480739[_0x1a0467(0x1a7c)]=[],_0x480739[_0x1a0467(0x9ca)]=_0x595158,_0x480739[_0x1a0467(0x1b0c)]=_0x480739['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x480739[_0x1a0467(0x2922)]=_0xed6b9b,_0x480739['password']='',_0x480739['oldPassword']='',_0x480739[_0x1a0467(0x15a4)]=_0x469cba,_0x480739[_0x1a0467(0xda0)]=_0x43efee,_0x1be94e['$watch'](_0x1a0467(0x81a),function(_0x550475){const _0x23b4b4=_0x1a0467;!_0x39641b()[_0x23b4b4(0x958)](_0x480739[_0x23b4b4(0xf0f)])&&(_0x550475===_0x480739[_0x23b4b4(0xf0f)]?_0x1be94e[_0x23b4b4(0xc54)][_0x23b4b4(0x381)][_0x23b4b4(0x92f)]('oldPasswordMatch',![]):_0x1be94e[_0x23b4b4(0xc54)][_0x23b4b4(0x381)][_0x23b4b4(0x92f)]('oldPasswordMatch',!![]));});function _0x469cba(){const _0x59b7dc=_0x1a0467;_0x480739['errors']=[];const _0x252cde={'id':_0x480739[_0x59b7dc(0x2922)]['id'],'newPassword':_0x480739[_0x59b7dc(0x381)]};_0x480739[_0x59b7dc(0xe76)]['id']==_0x480739['telephone']['id']&&(_0x252cde[_0x59b7dc(0xf0f)]=_0x480739[_0x59b7dc(0xf0f)]),_0x4706c8[_0x59b7dc(0xebe)][_0x59b7dc(0xcad)](_0x252cde)[_0x59b7dc(0x1d77)]['then'](function(){const _0xb725a8=_0x59b7dc;_0x48c6f2[_0xb725a8(0x829)]({'title':_0xb725a8(0x1576)}),_0x43efee();})[_0x59b7dc(0x1c4)](function(_0x46898e){const _0x54fbb3=_0x59b7dc;_0x48c6f2[_0x54fbb3(0x218e)]({'title':_0x46898e[_0x54fbb3(0x291)]?_0x54fbb3(0xeb9)+_0x46898e[_0x54fbb3(0x291)]+'\x20-\x20'+_0x46898e[_0x54fbb3(0xc22)]:_0x54fbb3(0x13f7),'msg':_0x46898e[_0x54fbb3(0x25c)]?JSON[_0x54fbb3(0x2701)](_0x46898e[_0x54fbb3(0x25c)][_0x54fbb3(0x155e)]):_0x46898e['toString']()}),_0x480739[_0x54fbb3(0x1a7c)]=_0x46898e[_0x54fbb3(0x25c)][_0x54fbb3(0x1a7c)]||[{'message':_0x46898e[_0x54fbb3(0x147f)](),'type':_0x54fbb3(0x1cee)}];});}function _0x43efee(){_0x3dec72['hide']();}}const _0x35045d=_0x5d896e;;const _0x423738=_0x5074a3['p']+_0x5537c6(0x93e);;_0x2e6525[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1ae),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x142b),'toasty',_0x5537c6(0x1774),_0x5537c6(0x2922),_0x5537c6(0x2199)];function _0x2e6525(_0x3a5574,_0x27164b,_0x2af2fd,_0x176a7d,_0x4308d3,_0x21b9e4,_0x30aa86,_0x2004ea,_0x37b205,_0x4e370b,_0xb8e6be,_0x23b258){const _0x2e15ee=_0x5537c6,_0x19369f=this;_0x19369f[_0x2e15ee(0xe76)]=_0x4e370b[_0x2e15ee(0x21e8)](),_0x19369f['license']=_0x21b9e4,_0x19369f[_0x2e15ee(0x9ca)]=_0x30aa86,_0x19369f[_0x2e15ee(0x1b0c)]=_0x19369f[_0x2e15ee(0x9ca)][_0x2e15ee(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x19369f[_0x2e15ee(0x2404)]=_0x27164b[_0x2e15ee(0x2276)]()+'://'+_0x27164b['host'](),_0x19369f[_0x2e15ee(0x2922)]=_0xb8e6be||_0x3a5574[_0x2e15ee(0x1dfe)]['telephone']||{},_0x19369f[_0x2e15ee(0x2199)]=_0x23b258&&_0x23b258[_0x2e15ee(0x184d)]==0x1?_0x23b258[_0x2e15ee(0x2214)][0x0]:null,_0x19369f[_0x2e15ee(0x1b1a)]=_0x4e370b[_0x2e15ee(0x14ea)](_0x19369f[_0x2e15ee(0x2199)]?_0x19369f[_0x2e15ee(0x2199)]['crudPermissions']:null),_0x19369f['hasModulePermissions']={},_0x19369f['selectedTab']=_0x3a5574[_0x2e15ee(0x1dfe)][_0x2e15ee(0x291e)]||0x0,_0x19369f[_0x2e15ee(0x28aa)]=_0x2df166,_0x19369f[_0x2e15ee(0x494)]=_0x37b205[_0x2e15ee(0x28c7)],_0x19369f[_0x2e15ee(0x227f)]=_0x3604f1,_0x19369f[_0x2e15ee(0x2461)]=_0xa38e5e,_0x4e370b[_0x2e15ee(0x22b6)](_0x2e15ee(0x1c60))?_0x2004ea['voiceContext'][_0x2e15ee(0xbf7)]({'fields':_0x2e15ee(0x43c),'sort':'name'})[_0x2e15ee(0x1d77)]['then'](function(_0x5e57ff){const _0x494682=_0x2e15ee;_0x19369f[_0x494682(0x14f6)]=_0x5e57ff[_0x494682(0x2214)]||[];})[_0x2e15ee(0x1c4)](function(_0x26fb44){const _0xb4526d=_0x2e15ee;_0x37b205[_0xb4526d(0x218e)]({'title':_0x26fb44[_0xb4526d(0x291)]?'API:'+_0x26fb44[_0xb4526d(0x291)]+_0xb4526d(0x1657)+_0x26fb44[_0xb4526d(0xc22)]:'SYSTEM:GET_CONTEXTS','msg':_0x26fb44[_0xb4526d(0x25c)]?JSON[_0xb4526d(0x2701)](_0x26fb44[_0xb4526d(0x25c)]):_0x26fb44[_0xb4526d(0x147f)]()});}):_0x2004ea['voiceContext']['get']({'fields':'id,name','sort':'name'})['$promise'][_0x2e15ee(0x1cb0)](function(_0x459677){const _0x5be87f=_0x2e15ee;_0x19369f[_0x5be87f(0x14f6)]=_0x459677[_0x5be87f(0x2214)]||[];})['then'](function(){const _0x1d8a4e=_0x2e15ee;return _0x2004ea[_0x1d8a4e(0x2199)]['get']({'userProfileId':_0x19369f[_0x1d8a4e(0xe76)][_0x1d8a4e(0x13c1)],'sectionId':0x195})[_0x1d8a4e(0x1d77)];})[_0x2e15ee(0x1cb0)](function(_0x397346){const _0x59ed6d=_0x2e15ee,_0x1b6800=_0x397346&&_0x397346[_0x59ed6d(0x2214)]?_0x397346[_0x59ed6d(0x2214)][0x0]:null;if(!_0x1b6800)return _0x2004ea['voiceContext'][_0x59ed6d(0xbf7)]({'fields':_0x59ed6d(0x43c),'sort':'name','defaultEntry':0x1})['$promise']['then'](function(_0x2ed078){const _0x127b95=_0x59ed6d;_0x19369f['contexts']=_0x2ed078[_0x127b95(0x2214)]||[];});else{if(!_0x1b6800['autoAssociation'])return _0x2004ea[_0x59ed6d(0x1198)][_0x59ed6d(0xbf7)]({'sectionId':_0x1b6800['id']})[_0x59ed6d(0x1d77)][_0x59ed6d(0x1cb0)](function(_0x5724ab){const _0x3e4359=_0x59ed6d,_0x2d4acd=_0x39641b()[_0x3e4359(0x1de2)](_0x5724ab[_0x3e4359(0x2214)],function(_0x172d83){const _0xc01ce3=_0x3e4359;return _0x39641b()[_0xc01ce3(0x13b4)](_0x19369f[_0xc01ce3(0x14f6)],{'id':_0x172d83[_0xc01ce3(0x2982)]});});let _0x180a62=null;_0x19369f['telephone']&&(_0x180a62=_0x39641b()['find'](_0x19369f['contexts'],{'name':_0x19369f[_0x3e4359(0x2922)][_0x3e4359(0x2056)]}));if(_0x180a62&&!_0x39641b()[_0x3e4359(0x727)](_0x2d4acd,['id',_0x180a62['id']])){const _0x1957b2=_0x39641b()[_0x3e4359(0x13b4)](_0x19369f[_0x3e4359(0x14f6)],{'id':_0x180a62['id']});_0x1957b2[_0x3e4359(0x15da)]=![],_0x2d4acd['push'](_0x1957b2);}_0x19369f['contexts']=_0x2d4acd;});}})[_0x2e15ee(0x1c4)](function(_0x50129f){const _0x3f9e28=_0x2e15ee;_0x37b205['error']({'title':_0x50129f['status']?_0x3f9e28(0xeb9)+_0x50129f[_0x3f9e28(0x291)]+_0x3f9e28(0x1657)+_0x50129f['statusText']:'SYSTEM:GETcontexts','msg':_0x50129f['data']?JSON[_0x3f9e28(0x2701)](_0x50129f[_0x3f9e28(0x25c)]):_0x50129f[_0x3f9e28(0x147f)]()});});function _0x2df166(_0x261f13,_0x517c17){const _0x45fe0c=_0x2e15ee;_0x2af2fd[_0x45fe0c(0xe27)]({'controller':_0x45fe0c(0x2976),'controllerAs':'vm','templateUrl':_0x423738,'parent':angular[_0x45fe0c(0x1853)](_0x176a7d['body']),'targetEvent':_0x517c17,'clickOutsideToClose':!![],'locals':{'telephone':_0x261f13,'setting':_0x30aa86,'telephones':_0x19369f[_0x45fe0c(0x5f8)]?_0x19369f[_0x45fe0c(0x5f8)][_0x45fe0c(0x2214)]:[],'crudPermissions':_0x19369f[_0x45fe0c(0x1b1a)]}});}function _0x3604f1(){const _0x37a08e=_0x2e15ee;_0x3a5574['go'](_0x37a08e(0x7a3),{},{'reload':_0x37a08e(0x7a3)});}function _0xa38e5e(){const _0xe851ea=_0x2e15ee;_0x2004ea[_0xe851ea(0xebe)]['update']({'id':_0x19369f['telephone']['id']},_0x19369f[_0xe851ea(0x2922)])[_0xe851ea(0x1d77)][_0xe851ea(0x1cb0)](function(){const _0x33fa15=_0xe851ea;_0x37b205[_0x33fa15(0x829)]({'title':_0x33fa15(0x2ad),'msg':_0x19369f[_0x33fa15(0x2922)][_0x33fa15(0x16b6)]?_0x19369f[_0x33fa15(0x2922)]['name']+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x1537a7){const _0x2390f4=_0xe851ea;_0x37b205[_0x2390f4(0x218e)]({'title':_0x1537a7[_0x2390f4(0x291)]?_0x2390f4(0xeb9)+_0x1537a7[_0x2390f4(0x291)]+_0x2390f4(0x1657)+_0x1537a7[_0x2390f4(0xc22)]:_0x2390f4(0x12ba),'msg':_0x1537a7['data']?JSON[_0x2390f4(0x2701)](_0x1537a7[_0x2390f4(0x25c)]):_0x1537a7[_0x2390f4(0x147f)]()});});}}const _0x2cd253=_0x2e6525;;const _0x1c4b48=_0x5074a3['p']+_0x5537c6(0x28d4);;_0x3a490e[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),'$translate','telephones','userProfile','userProfileSection',_0x5537c6(0x142b),'msUtils','toasty','Auth',_0x5537c6(0x8a5),'setting'];function _0x3a490e(_0x5b844f,_0x404142,_0x68ee2b,_0x20dfee,_0x5a01f5,_0x1a7413,_0x5d18bd,_0x28782a,_0x685cce,_0x1bd510,_0x49c401,_0x418c88,_0x354778,_0x226ef1,_0x1b4b57,_0xaad4f4,_0x400ace){const _0x5e105b=_0x5537c6,_0x2d5329=this;_0x2d5329['license']=_0xaad4f4,_0x2d5329[_0x5e105b(0x9ca)]=_0x400ace,_0x2d5329[_0x5e105b(0xe76)]=_0x1b4b57[_0x5e105b(0x21e8)](),_0x2d5329[_0x5e105b(0x5f8)]=_0x685cce||{'count':0x0,'rows':[]},_0x2d5329[_0x5e105b(0x44a)]=_0x1bd510,_0x2d5329[_0x5e105b(0x2199)]=_0x49c401&&_0x49c401[_0x5e105b(0x184d)]==0x1?_0x49c401[_0x5e105b(0x2214)][0x0]:null,_0x2d5329[_0x5e105b(0x1b1a)]=_0x1b4b57[_0x5e105b(0x14ea)](_0x2d5329[_0x5e105b(0x2199)]?_0x2d5329[_0x5e105b(0x2199)][_0x5e105b(0x1b1a)]:null),_0x2d5329[_0x5e105b(0xc83)]=_0x5e105b(0x5f8),_0x2d5329[_0x5e105b(0x1d20)]='',_0x2d5329[_0x5e105b(0x1cdf)]=null,_0x2d5329['selectedTelephones']=[],_0x2d5329[_0x5e105b(0xae2)]={'fields':_0x5e105b(0x235f),'role':_0x5e105b(0x2922),'sort':_0x5e105b(0x282),'limit':0xa,'page':0x1},_0x2d5329['arraytransport']=_0x39641b()[_0x5e105b(0x2631)]([{'option':_0x5e105b(0xa9d),'value':'\x27udp\x27'},{'option':'tcp','value':_0x5e105b(0xd76)},{'option':'ws','value':'\x27ws\x27'},{'option':'wss','value':_0x5e105b(0x49d)},{'option':_0x5e105b(0x132c),'value':_0x5e105b(0x1393)}],function(_0x111e65){const _0x366047=_0x5e105b;return _0x39641b()['replace'](_0x111e65[_0x366047(0x327)],new RegExp('\x27','g'),'');}),_0x2d5329[_0x5e105b(0x571)]=_0x39641b()[_0x5e105b(0x2631)]([{'option':_0x5e105b(0xd71),'value':'\x27force_rport\x27'},{'option':_0x5e105b(0x18c7),'value':_0x5e105b(0xf60)},{'option':_0x5e105b(0x150d),'value':_0x5e105b(0x27e4)},{'option':'no','value':_0x5e105b(0x15b9)},{'option':_0x5e105b(0x382),'value':_0x5e105b(0x1d2c)},{'option':_0x5e105b(0x15d0),'value':'\x27route\x27'}],function(_0x3ae991){const _0x3ee829=_0x5e105b;return _0x39641b()[_0x3ee829(0x288f)](_0x3ae991[_0x3ee829(0x327)],new RegExp('\x27','g'),'');}),_0x2d5329[_0x5e105b(0x1462)]=_0x39641b()['keyBy']([{'option':_0x5e105b(0xaba),'value':_0x5e105b(0x2079)},{'option':_0x5e105b(0x128d),'value':'\x27alaw\x27'},{'option':_0x5e105b(0x2331),'value':_0x5e105b(0x24ce)},{'option':'g722','value':_0x5e105b(0x28ca)},{'option':_0x5e105b(0x1a92),'value':'\x27g729\x27'},{'option':_0x5e105b(0x14cc),'value':_0x5e105b(0x102f)},{'option':_0x5e105b(0x278c),'value':_0x5e105b(0x1ca5)}],function(_0x2b625b){const _0xd20af9=_0x5e105b;return _0x39641b()[_0xd20af9(0x288f)](_0x2b625b['value'],new RegExp('\x27','g'),'');}),_0x2d5329[_0x5e105b(0x1b79)]=_0x39641b()[_0x5e105b(0x2631)]([{'option':_0x5e105b(0x1ab8),'value':_0x5e105b(0x27e4)},{'option':'No','value':_0x5e105b(0x15b9)},{'option':_0x5e105b(0x1288),'value':'\x27always\x27'}],function(_0xb4da99){const _0xe03120=_0x5e105b;return _0x39641b()['replace'](_0xb4da99[_0xe03120(0x327)],new RegExp('\x27','g'),'');}),_0x2d5329['arrayencryption']=_0x39641b()[_0x5e105b(0x2631)]([{'option':'yes','value':_0x5e105b(0x27e4)},{'option':'no','value':_0x5e105b(0x15b9)}],function(_0x4305b6){const _0x35da94=_0x5e105b;return _0x39641b()['replace'](_0x4305b6[_0x35da94(0x327)],new RegExp('\x27','g'),'');}),_0x2d5329[_0x5e105b(0x235d)]=_0x255e0a,_0x2d5329[_0x5e105b(0x27fe)]=_0x408bce,_0x2d5329[_0x5e105b(0x829)]=_0x12d626,_0x2d5329[_0x5e105b(0x114a)]=_0x604d51,_0x2d5329[_0x5e105b(0xdff)]=_0x4cc844,_0x2d5329[_0x5e105b(0x16c1)]=_0x29fef0,_0x2d5329[_0x5e105b(0xf78)]=_0x5342d7,_0x2d5329[_0x5e105b(0x1a9f)]=_0x4f064f,_0x2d5329[_0x5e105b(0x1a64)]=_0x3d2034,_0x2d5329[_0x5e105b(0x596)]=_0x380596;function _0x255e0a(_0x4f1c45){const _0x4eba00=_0x5e105b;_0x68ee2b['go'](_0x4eba00(0xe14),{'id':_0x4f1c45['id'],'telephone':_0x4f1c45,'crudPermissions':_0x2d5329[_0x4eba00(0x1b1a)]});}function _0x408bce(_0x31a44d,_0x26249d){const _0x392426=_0x5e105b,_0x12b8b6=_0x5a01f5['confirm']()[_0x392426(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x39641b()[_0x392426(0xa75)](_0x392426(0x2922))+'?')[_0x392426(0x49e)](''+(_0x31a44d[_0x392426(0x16b6)]||_0x392426(0x2922))+_0x392426(0x1200)+_0x392426(0x1b6))[_0x392426(0x15ad)](_0x392426(0x16c6))[_0x392426(0x728)](_0x26249d)['ok']('OK')['cancel'](_0x392426(0x24ba));_0x5a01f5[_0x392426(0xe27)](_0x12b8b6)[_0x392426(0x1cb0)](function(){_0x29fef0(_0x31a44d);},function(){const _0x111e6a=_0x392426;console[_0x111e6a(0x1b4f)]('CANCEL');});}let _0x12075f=!![],_0x1f22ae=0x1;_0x5b844f[_0x5e105b(0x614)](_0x5e105b(0x957),function(_0x59789e,_0x34e584){const _0x558d2a=_0x5e105b;_0x12075f?_0x5d18bd(function(){_0x12075f=![];}):(!_0x34e584&&(_0x1f22ae=_0x2d5329['query']['page']),_0x59789e!==_0x34e584&&(_0x2d5329[_0x558d2a(0xae2)][_0x558d2a(0x1c7b)]=0x1),!_0x59789e&&(_0x2d5329[_0x558d2a(0xae2)]['page']=_0x1f22ae),_0x2d5329['getTelephones']());});function _0x12d626(_0x5f58f0){const _0x16e404=_0x5e105b;_0x2d5329[_0x16e404(0x5f8)]=_0x5f58f0||{'count':0x0,'rows':[]};}function _0x604d51(){const _0x1a4641=_0x5e105b;_0x2d5329['query'][_0x1a4641(0x184b)]=(_0x2d5329[_0x1a4641(0xae2)][_0x1a4641(0x1c7b)]-0x1)*_0x2d5329[_0x1a4641(0xae2)][_0x1a4641(0x236)],_0x1b4b57[_0x1a4641(0x22b6)](_0x1a4641(0x1c60))?_0x2d5329[_0x1a4641(0x2061)]=_0x418c88[_0x1a4641(0xebe)]['get'](_0x2d5329[_0x1a4641(0xae2)],_0x12d626)[_0x1a4641(0x1d77)]:(_0x2d5329[_0x1a4641(0xae2)]['id']=_0x2d5329[_0x1a4641(0x44a)]['id'],_0x2d5329[_0x1a4641(0xae2)][_0x1a4641(0x1f74)]=_0x1a4641(0x16d1),_0x2d5329['promise']=_0x418c88['userProfile'][_0x1a4641(0x1810)](_0x2d5329[_0x1a4641(0xae2)],_0x12d626)[_0x1a4641(0x1d77)]);}function _0x4cc844(_0x1c5446,_0x5665fa){const _0x5495c9=_0x5e105b;_0x5a01f5['show']({'controller':'CreateOrEditTelephoneDialogController','controllerAs':'vm','templateUrl':_0x1c4b48,'parent':angular[_0x5495c9(0x1853)](_0x1a7413[_0x5495c9(0x1ed9)]),'targetEvent':_0x1c5446,'clickOutsideToClose':!![],'locals':{'telephone':_0x5665fa,'telephones':_0x2d5329['telephones']['rows'],'license':_0x2d5329[_0x5495c9(0x8a5)],'setting':_0x2d5329[_0x5495c9(0x9ca)],'crudPermissions':_0x2d5329[_0x5495c9(0x1b1a)]}});}function _0x29fef0(_0x578317){const _0x1ec0ce=_0x5e105b;_0x418c88[_0x1ec0ce(0xebe)][_0x1ec0ce(0x111d)]({'id':_0x578317['id']})[_0x1ec0ce(0x1d77)]['then'](function(){const _0x4b40d2=_0x1ec0ce;_0x39641b()[_0x4b40d2(0x152a)](_0x2d5329[_0x4b40d2(0x5f8)][_0x4b40d2(0x2214)],{'id':_0x578317['id']}),_0x2d5329[_0x4b40d2(0x5f8)][_0x4b40d2(0x184d)]-=0x1,!_0x2d5329[_0x4b40d2(0x5f8)][_0x4b40d2(0x2214)]['length']&&_0x2d5329[_0x4b40d2(0x114a)](),_0x226ef1['success']({'title':_0x39641b()[_0x4b40d2(0xa75)](_0x4b40d2(0x1f35))+_0x4b40d2(0x2663),'msg':_0x578317[_0x4b40d2(0x16b6)]?_0x578317[_0x4b40d2(0x16b6)]+_0x4b40d2(0x3f5):''});})[_0x1ec0ce(0x1c4)](function(_0x50f961){const _0xd80b63=_0x1ec0ce;if(_0x50f961[_0xd80b63(0x25c)]&&_0x50f961['data'][_0xd80b63(0x1a7c)]&&_0x50f961[_0xd80b63(0x25c)][_0xd80b63(0x1a7c)][_0xd80b63(0xfd0)]){_0x2d5329[_0xd80b63(0x1a7c)]=_0x50f961[_0xd80b63(0x25c)][_0xd80b63(0x1a7c)]||[{'message':_0x50f961[_0xd80b63(0x147f)](),'type':_0xd80b63(0xcec)}];for(let _0x251c5b=0x0;_0x251c5b<_0x50f961[_0xd80b63(0x25c)][_0xd80b63(0x1a7c)][_0xd80b63(0xfd0)];_0x251c5b++){_0x226ef1[_0xd80b63(0x218e)]({'title':_0x50f961[_0xd80b63(0x25c)][_0xd80b63(0x1a7c)][_0x251c5b]['type'],'msg':_0x50f961['data'][_0xd80b63(0x1a7c)][_0x251c5b]['message']});}}else _0x226ef1[_0xd80b63(0x218e)]({'title':_0x50f961['status']?_0xd80b63(0xeb9)+_0x50f961[_0xd80b63(0x291)]+_0xd80b63(0x1657)+_0x50f961['statusText']:_0xd80b63(0xcec),'msg':_0x50f961[_0xd80b63(0x25c)]?JSON[_0xd80b63(0x2701)](_0x50f961['data'][_0xd80b63(0x155e)]):_0x50f961[_0xd80b63(0x155e)]||_0x50f961[_0xd80b63(0x147f)]()});});}function _0x5342d7(){const _0x36ae12=_0x5e105b,_0x18a42a=angular[_0x36ae12(0x17fe)](_0x2d5329[_0x36ae12(0xca7)]);return _0x2d5329[_0x36ae12(0xca7)]=[],_0x18a42a;}function _0x4f064f(_0x239d8c){const _0x1bd23d=_0x5e105b,_0xc3553e=_0x5a01f5[_0x1bd23d(0x1551)]()['title'](_0x1bd23d(0x16c0))['htmlContent'](_0x1bd23d(0x204d)+_0x2d5329['selectedTelephones'][_0x1bd23d(0xfd0)]+_0x1bd23d(0x1d6c)+_0x1bd23d(0x1b6))[_0x1bd23d(0x15ad)](_0x1bd23d(0x126a))[_0x1bd23d(0x728)](_0x239d8c)['ok']('OK')['cancel'](_0x1bd23d(0x24ba));_0x5a01f5[_0x1bd23d(0xe27)](_0xc3553e)[_0x1bd23d(0x1cb0)](function(){const _0x508ee4=_0x1bd23d;_0x2d5329[_0x508ee4(0xca7)][_0x508ee4(0xf90)](function(_0x163c2a){_0x29fef0(_0x163c2a);}),_0x2d5329[_0x508ee4(0xca7)]=[];});}function _0x3d2034(){const _0x3eb902=_0x5e105b;_0x2d5329[_0x3eb902(0xca7)]=[];}function _0x380596(){const _0x49449d=_0x5e105b;_0x2d5329['selectedTelephones']=_0x2d5329[_0x49449d(0x5f8)]['rows'];}}const _0x1d70fc=_0x3a490e;;_0x3cec13[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state',_0x5537c6(0x21c8),'$mdDialog','$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),'userProfiles',_0x5537c6(0x44a),'api',_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x3cec13(_0xefb043,_0x13c2c3,_0x2093d0,_0x3e75bf,_0x485894,_0x253995,_0x29cd03,_0x72ce64,_0x34731c,_0x2f2101,_0x4bd01c,_0xe14936,_0x1a862b,_0x1210e9){const _0x551916=_0x5537c6,_0x5e5516=this;_0x5e5516[_0x551916(0xe76)]=_0x4bd01c['getCurrentUser'](),_0x5e5516[_0x551916(0x1a7c)]=[],_0x5e5516['setting']=_0x1a862b,_0x5e5516['license']=_0xe14936,_0x5e5516['crudPermissions']=_0x1210e9,_0x5e5516['hasModulePermissions']={},_0x5e5516['passwordPattern']=_0x5e5516[_0x551916(0x9ca)]&&_0x5e5516[_0x551916(0x9ca)][_0x551916(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5e5516[_0x551916(0x1386)]='STAFF.EDIT_USERPROFILE',_0x5e5516['userProfile']=angular[_0x551916(0x17fe)](_0x34731c),_0x5e5516[_0x551916(0x1606)]=_0x72ce64,_0x5e5516[_0x551916(0x758)]=![];!_0x5e5516[_0x551916(0x44a)]&&(_0x5e5516[_0x551916(0x44a)]={'crudPermissions':['r']},_0x5e5516[_0x551916(0x1386)]='STAFF.NEW_USERPROFILE',_0x5e5516[_0x551916(0x758)]=!![]);_0x5e5516[_0x551916(0x28a)]=_0x51cae7,_0x5e5516[_0x551916(0x2f3)]=_0x27a772,_0x5e5516['deleteUserProfile']=_0x21b1b9,_0x5e5516['getDateFromString']=_0x16828c,_0x5e5516['closeDialog']=_0x54103a;function _0x51cae7(){const _0x3320dd=_0x551916;_0x5e5516[_0x3320dd(0x1a7c)]=[],_0x2f2101[_0x3320dd(0x44a)][_0x3320dd(0x1c3f)](_0x5e5516['userProfile'])[_0x3320dd(0x1d77)][_0x3320dd(0x1cb0)](function(_0x5c80ef){const _0x5dcc52=_0x3320dd;_0x160503(_0x5c80ef),_0x5e5516[_0x5dcc52(0x1606)][_0x5dcc52(0xf63)](_0x5c80ef[_0x5dcc52(0x19b2)]()),_0x29cd03[_0x5dcc52(0x829)]({'title':_0x5dcc52(0x2852),'msg':_0x5e5516[_0x5dcc52(0x44a)][_0x5dcc52(0x16b6)]?_0x5e5516[_0x5dcc52(0x44a)][_0x5dcc52(0x16b6)]+_0x5dcc52(0x470):''}),_0x54103a(_0x5c80ef);})[_0x3320dd(0x1c4)](function(_0x1776f2){const _0x3fb56a=_0x3320dd;if(_0x1776f2['data']&&_0x1776f2[_0x3fb56a(0x25c)][_0x3fb56a(0x1a7c)]&&_0x1776f2[_0x3fb56a(0x25c)]['errors']['length']){_0x5e5516[_0x3fb56a(0x1a7c)]=_0x1776f2[_0x3fb56a(0x25c)]['errors']||[{'message':_0x1776f2['toString'](),'type':_0x3fb56a(0x10b6)}];for(let _0x5bc0fd=0x0;_0x5bc0fd<_0x1776f2[_0x3fb56a(0x25c)][_0x3fb56a(0x1a7c)][_0x3fb56a(0xfd0)];_0x5bc0fd+=0x1){_0x29cd03[_0x3fb56a(0x218e)]({'title':_0x1776f2[_0x3fb56a(0x25c)][_0x3fb56a(0x1a7c)][_0x5bc0fd][_0x3fb56a(0x66a)],'msg':_0x1776f2[_0x3fb56a(0x25c)][_0x3fb56a(0x1a7c)][_0x5bc0fd][_0x3fb56a(0x155e)]});}}else _0x29cd03[_0x3fb56a(0x218e)]({'title':_0x1776f2['status']?_0x3fb56a(0xeb9)+_0x1776f2[_0x3fb56a(0x291)]+_0x3fb56a(0x1657)+_0x1776f2[_0x3fb56a(0xc22)]:_0x3fb56a(0x10b6),'msg':_0x1776f2['data']?JSON[_0x3fb56a(0x2701)](_0x1776f2[_0x3fb56a(0x25c)]['message']):_0x1776f2[_0x3fb56a(0x147f)]()});});}function _0x27a772(){const _0x3bb0a5=_0x551916;_0x5e5516[_0x3bb0a5(0x1a7c)]=[],_0x2f2101['userProfile'][_0x3bb0a5(0x687)]({'id':_0x5e5516['userProfile']['id']},_0x5e5516[_0x3bb0a5(0x44a)])[_0x3bb0a5(0x1d77)][_0x3bb0a5(0x1cb0)](function(_0x53255e){const _0x35c437=_0x3bb0a5,_0x542bb8=_0x39641b()[_0x35c437(0x13b4)](_0x5e5516[_0x35c437(0x1606)],{'id':_0x53255e['id']});_0x542bb8&&_0x39641b()[_0x35c437(0x9c1)](_0x542bb8,_0x39641b()[_0x35c437(0x169b)](_0x53255e[_0x35c437(0x19b2)](),_0x39641b()[_0x35c437(0x1be5)](_0x542bb8))),_0x29cd03[_0x35c437(0x829)]({'title':_0x35c437(0xbdf),'msg':_0x5e5516[_0x35c437(0x44a)][_0x35c437(0x16b6)]?_0x5e5516[_0x35c437(0x44a)][_0x35c437(0x16b6)]+_0x35c437(0xedb):''}),_0x54103a(_0x53255e);})[_0x3bb0a5(0x1c4)](function(_0x5f50bd){const _0x24cd42=_0x3bb0a5;if(_0x5f50bd[_0x24cd42(0x25c)]&&_0x5f50bd[_0x24cd42(0x25c)][_0x24cd42(0x1a7c)]&&_0x5f50bd[_0x24cd42(0x25c)][_0x24cd42(0x1a7c)]['length']){_0x5e5516[_0x24cd42(0x1a7c)]=_0x5f50bd[_0x24cd42(0x25c)]['errors']||[{'message':_0x5f50bd['toString'](),'type':_0x24cd42(0x15a7)}];for(let _0x1fb06b=0x0;_0x1fb06b<_0x5f50bd[_0x24cd42(0x25c)][_0x24cd42(0x1a7c)][_0x24cd42(0xfd0)];_0x1fb06b++){_0x29cd03[_0x24cd42(0x218e)]({'title':_0x5f50bd[_0x24cd42(0x25c)][_0x24cd42(0x1a7c)][_0x1fb06b][_0x24cd42(0x66a)],'msg':_0x5f50bd[_0x24cd42(0x25c)][_0x24cd42(0x1a7c)][_0x1fb06b][_0x24cd42(0x155e)]});}}else _0x29cd03['error']({'title':_0x5f50bd['status']?_0x24cd42(0xeb9)+_0x5f50bd[_0x24cd42(0x291)]+_0x24cd42(0x1657)+_0x5f50bd[_0x24cd42(0xc22)]:_0x24cd42(0x15a7),'msg':_0x5f50bd['data']?JSON['stringify'](_0x5f50bd['data'][_0x24cd42(0x155e)]):_0x5f50bd[_0x24cd42(0x147f)]()});});}function _0x21b1b9(_0x5603d9){const _0x18a268=_0x551916;_0x5e5516[_0x18a268(0x1a7c)]=[];const _0x5b929e=_0x3e75bf['confirm']()[_0x18a268(0x1386)](_0x18a268(0x1a2e))[_0x18a268(0x862)]('The\x20userProfile\x20will\x20be\x20deleted.')[_0x18a268(0x15ad)](_0x18a268(0x173d))['ok'](_0x18a268(0x2594))[_0x18a268(0x696)](_0x18a268(0xde1))['targetEvent'](_0x5603d9);_0x3e75bf[_0x18a268(0xe27)](_0x5b929e)[_0x18a268(0x1cb0)](function(){const _0x20b741=_0x18a268;_0x2f2101[_0x20b741(0x44a)]['delete']({'id':_0x5e5516[_0x20b741(0x44a)]['id']})[_0x20b741(0x1d77)][_0x20b741(0x1cb0)](function(){const _0xdf2a1c=_0x20b741;_0x39641b()[_0xdf2a1c(0x152a)](_0x5e5516[_0xdf2a1c(0x1606)],{'id':_0x5e5516['userProfile']['id']}),_0x29cd03[_0xdf2a1c(0x829)]({'title':_0xdf2a1c(0x2302),'msg':(_0x5e5516[_0xdf2a1c(0x44a)][_0xdf2a1c(0x16b6)]||'userProfile')+_0xdf2a1c(0x3f5)}),_0x54103a(_0x5e5516[_0xdf2a1c(0x44a)]);})['catch'](function(_0x1ca32d){const _0x27a0a5=_0x20b741;if(_0x1ca32d[_0x27a0a5(0x25c)]&&_0x1ca32d[_0x27a0a5(0x25c)][_0x27a0a5(0x1a7c)]&&_0x1ca32d[_0x27a0a5(0x25c)][_0x27a0a5(0x1a7c)][_0x27a0a5(0xfd0)]){_0x5e5516['errors']=_0x1ca32d[_0x27a0a5(0x25c)]['errors']||[{'message':_0x1ca32d[_0x27a0a5(0x147f)](),'type':_0x27a0a5(0x1497)}];for(let _0x49c9b5=0x0;_0x49c9b5<_0x1ca32d[_0x27a0a5(0x25c)][_0x27a0a5(0x1a7c)][_0x27a0a5(0xfd0)];_0x49c9b5++){_0x29cd03[_0x27a0a5(0x218e)]({'title':_0x1ca32d['data'][_0x27a0a5(0x1a7c)][_0x49c9b5][_0x27a0a5(0x66a)],'msg':_0x1ca32d['data']['errors'][_0x49c9b5][_0x27a0a5(0x155e)]});}}else _0x29cd03[_0x27a0a5(0x218e)]({'title':_0x1ca32d['status']?_0x27a0a5(0xeb9)+_0x1ca32d[_0x27a0a5(0x291)]+'\x20-\x20'+_0x1ca32d[_0x27a0a5(0xc22)]:'api.userProfile.delete','msg':_0x1ca32d[_0x27a0a5(0x25c)]?JSON[_0x27a0a5(0x2701)](_0x1ca32d[_0x27a0a5(0x25c)]['message']):_0x1ca32d['message']||_0x1ca32d[_0x27a0a5(0x147f)]()});});},function(){});}function _0x160503(_0x4bd574){const _0x486421=_0x551916,_0x313d33=[];_0x4bd574[_0x486421(0x1b1a)][_0x486421(0xf90)](function(_0x4c9d05){const _0x3f777a=_0x486421;let _0xd56f3d;switch(_0x4c9d05){case'r':_0xd56f3d=_0x3f777a(0x260e);break;case'e':_0xd56f3d=_0x3f777a(0x945);break;case'd':_0xd56f3d=_0x3f777a(0x26d6);break;}_0x313d33[_0x3f777a(0x2785)](_0x253995['instant'](_0x3f777a(0xe52)+_0xd56f3d));}),_0x4bd574['selectedcrudPermissions']=_0x313d33[_0x486421(0x1f66)](',\x20');}function _0x16828c(_0x3eeb90){return _0x3eeb90===null?undefined:new Date(_0x3eeb90);}function _0x54103a(_0x3d65cc){_0x3e75bf['hide'](_0x3d65cc);}}const _0x28dd7d=_0x3cec13;;_0x7a9ddb[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$state','toasty',_0x5537c6(0x142b),_0x5537c6(0x44a),_0x5537c6(0x1606),_0x5537c6(0x1ae)];function _0x7a9ddb(_0x4ec711,_0x2094a5,_0x54c4e4,_0x3f67bd,_0x2cb3c3,_0x69149b,_0x48af0e){const _0x35a426=_0x5537c6,_0x223575=this;_0x223575[_0x35a426(0x758)]=!![],_0x223575[_0x35a426(0x44a)]=angular[_0x35a426(0x17fe)](_0x2cb3c3),_0x223575[_0x35a426(0x1606)]=_0x69149b,_0x223575[_0x35a426(0x1386)]=_0x48af0e['instant']('STAFF.CLONE_USERPROFILE');_0x2cb3c3&&_0x2cb3c3['name']&&(_0x223575['title']+=':\x20'+_0x2cb3c3['name']);_0x223575['cloneUserProfile']=_0x350ace,_0x223575[_0x35a426(0xda0)]=_0xade253;function _0x350ace(){const _0x2bb78d=_0x35a426;return _0x3f67bd[_0x2bb78d(0x44a)]['clone']({'id':_0x2cb3c3['id']},_0x223575[_0x2bb78d(0x44a)])[_0x2bb78d(0x1d77)]['then'](function(_0x2d926c){const _0x2dbf84=_0x2bb78d;_0x242209(_0x2d926c),_0x223575['userProfiles'][_0x2dbf84(0xf63)](_0x2d926c[_0x2dbf84(0x19b2)]()),_0x54c4e4['success']({'title':_0x2dbf84(0x1ea5),'msg':_0x223575[_0x2dbf84(0x44a)][_0x2dbf84(0x16b6)]?_0x223575['userProfile'][_0x2dbf84(0x16b6)]+_0x2dbf84(0x2204):''}),_0x2094a5['go'](_0x2dbf84(0x15f4),{'id':_0x2d926c['id']}),_0xade253(_0x2d926c);})['catch'](function(_0x2fe96d){const _0x414b3c=_0x2bb78d;if(_0x2fe96d['data']&&_0x2fe96d[_0x414b3c(0x25c)]['errors']&&_0x2fe96d[_0x414b3c(0x25c)][_0x414b3c(0x1a7c)]['length']){_0x223575[_0x414b3c(0x1a7c)]=_0x2fe96d['data'][_0x414b3c(0x1a7c)]||[{'message':_0x2fe96d[_0x414b3c(0x147f)](),'type':_0x414b3c(0x25d6)}];for(let _0x42c5e8=0x0;_0x42c5e8<_0x2fe96d[_0x414b3c(0x25c)][_0x414b3c(0x1a7c)][_0x414b3c(0xfd0)];_0x42c5e8+=0x1){_0x54c4e4[_0x414b3c(0x218e)]({'title':_0x2fe96d[_0x414b3c(0x25c)]['errors'][_0x42c5e8]['type'],'msg':_0x2fe96d[_0x414b3c(0x25c)][_0x414b3c(0x1a7c)][_0x42c5e8][_0x414b3c(0x155e)]});}}else _0x54c4e4['error']({'title':_0x2fe96d['status']?'API:'+_0x2fe96d[_0x414b3c(0x291)]+_0x414b3c(0x1657)+_0x2fe96d['statusText']:'api.userProfile.clone','msg':_0x2fe96d['data']?JSON[_0x414b3c(0x2701)](_0x2fe96d[_0x414b3c(0x25c)][_0x414b3c(0x155e)]):_0x2fe96d[_0x414b3c(0x147f)]()});});}function _0x242209(_0x46f0ed){const _0xfb11f3=_0x35a426,_0x3a4755=[];_0x46f0ed[_0xfb11f3(0x1b1a)]['forEach'](function(_0x60e27c){const _0x25d870=_0xfb11f3;let _0x51a4c9;switch(_0x60e27c){case'r':_0x51a4c9=_0x25d870(0x260e);break;case'e':_0x51a4c9=_0x25d870(0x945);break;case'd':_0x51a4c9='DELETE_PERMISSION';break;}_0x3a4755[_0x25d870(0x2785)](_0x48af0e[_0x25d870(0x25cc)](_0x25d870(0xe52)+_0x51a4c9));}),_0x46f0ed[_0xfb11f3(0x1adf)]=_0x3a4755[_0xfb11f3(0x1f66)](',\x20');}function _0xade253(_0x231c68){const _0x354c77=_0x35a426;_0x4ec711[_0x354c77(0x1426)](_0x231c68);}}const _0x466cb8=_0x7a9ddb;;const _0xd8c0fc=_0x5074a3['p']+_0x5537c6(0xc9a);;_0x3a23c9[_0x5537c6(0x15b6)]=[_0x5537c6(0x22bf),_0x5537c6(0xcb9),'$translate','$q',_0x5537c6(0x142b),_0x5537c6(0x1d5f),_0x5537c6(0x1774),_0x5537c6(0x9bf)];function _0x3a23c9(_0x185e60,_0x454dd7,_0x34d624,_0x1a00e7,_0x51e63f,_0x1d943f,_0x31eed3,_0x5c0990){const _0x10620a=_0x5537c6,_0x3a8aaf=this;_0x3a8aaf[_0x10620a(0x44a)]={},_0x3a8aaf[_0x10620a(0x8a5)]={},_0x3a8aaf['navigation']=_0x1d943f[_0x10620a(0x221)](),_0x3a8aaf[_0x10620a(0x98d)]=_0x3a8aaf[_0x10620a(0x511)][0x0]['children'],_0x3a8aaf['statusList']=[{'id':0x0,'name':_0x10620a(0x18a8),'color':_0x10620a(0x10a7),'info':_0x10620a(0x1f5a),'tag':_0x10620a(0x10ca)},{'id':0x1,'name':'Partially\x20Enabled','color':'orange-A700-bg','info':_0x10620a(0x27d9),'tag':_0x10620a(0xe88)},{'id':0x2,'name':_0x10620a(0x2043),'color':_0x10620a(0x14ed),'info':_0x10620a(0x12bb),'tag':'disabled'},{'id':0x3,'name':_0x10620a(0x510),'color':_0x10620a(0x20ee),'info':'Module\x20not\x20included\x20in\x20the\x20license','tag':_0x10620a(0x1099)},{'id':0x4,'name':_0x10620a(0x2087),'color':_0x10620a(0x250d),'info':'Unknown\x20status','tag':_0x10620a(0x1c9d)}],_0x3a8aaf[_0x10620a(0x19f8)]=[{'title':'Dashboards','translate':_0x10620a(0x1f06),'id':0x64}],_0x3a8aaf[_0x10620a(0x1a8e)]=_0x5615b1,_0x3a8aaf['onChangeEnableAllResources']=_0x1feb52,_0x3a8aaf[_0x10620a(0x20f8)]=_0x17bee0,_0x3a8aaf['checkSectionResources']=_0x128c95;function _0x5615b1(_0x443ef8,_0x1183ec){const _0x5f4c9d=_0x10620a;_0x3a8aaf[_0x5f4c9d(0x44a)]=_0x443ef8,_0x3a8aaf['license']=_0x1183ec;}function _0x1feb52(_0x4e50a9){const _0x1ed67c=_0x10620a,_0xdf5cca=typeof _0x4e50a9[_0x1ed67c(0x6ef)]!==_0x1ed67c(0x16b5)&&!_0x4e50a9['permissions'][_0x1ed67c(0x277f)]?!![]:![],_0x4512c3=_0x4e50a9[_0x1ed67c(0x1386)]===_0x1ed67c(0x2222)?'AppZone':_0x4e50a9['title'];if(_0x4e50a9['status'][_0x1ed67c(0x16b6)]!=='Fully\x20Enabled'){const _0x5b55cf=[];if(!_0xdf5cca){const _0x225dec=_0x454dd7['confirm']({'skipHide':!![]})['title'](_0x1ed67c(0xf74))[_0x1ed67c(0x1152)](_0x34d624[_0x1ed67c(0x25cc)](_0x1ed67c(0x25cb),{'sectionName':_0x34d624[_0x1ed67c(0x25cc)](_0x4e50a9[_0x1ed67c(0x9fe)])}))[_0x1ed67c(0x15ad)]('Warning')['ok'](_0x34d624[_0x1ed67c(0x25cc)](_0x1ed67c(0x1359)))[_0x1ed67c(0x696)](_0x34d624[_0x1ed67c(0x25cc)]('APP.CANCEL'));_0x454dd7['show'](_0x225dec)['then'](function(){const _0x279bc7=_0x1ed67c;switch(_0x4512c3){case'Dashboards':_0x39641b()['map'](_0x3a8aaf['dashboardSections'],function(_0x3fd9fc){const _0x56e141=a0_0x5cbd;_0x5b55cf[_0x56e141(0x2785)]({'category':_0x4512c3,'sectionId':_0x3fd9fc['id'],'name':_0x3fd9fc[_0x56e141(0x1386)],'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x39641b()[_0x56e141(0x1de2)](_0x3a8aaf[_0x56e141(0x44a)]['crudPermissions'])[_0x56e141(0x1f66)]('')});});break;default:_0x39641b()['map'](_0x4e50a9[_0x279bc7(0x27a5)],function(_0x103720){const _0x5eae66=_0x279bc7,_0x39fe93=typeof _0x103720['permissions']!=_0x5eae66(0x16b5)&&_0x103720[_0x5eae66(0x6ef)]['hidden']?!![]:![];if(!_0x39fe93){let _0x246c76=_0x103720[_0x5eae66(0x1386)];switch(_0x4512c3){case _0x5eae66(0x1ff3):_0x246c76=_0x246c76===_0x5eae66(0x871)?_0x5eae66(0x1165):_0x246c76;break;}_0x5b55cf[_0x5eae66(0x2785)]({'category':_0x4512c3,'sectionId':_0x103720['id'],'name':_0x246c76,'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x39641b()[_0x5eae66(0x1de2)](_0x3a8aaf[_0x5eae66(0x44a)]['crudPermissions'])['join']('')});}});break;}return _0x51e63f['userProfile'][_0x279bc7(0x2a6)]({'id':_0x3a8aaf[_0x279bc7(0x44a)]['id']},_0x5b55cf)['$promise'][_0x279bc7(0x1cb0)](function(){const _0x350b07=_0x279bc7;_0x4e50a9[_0x350b07(0x291)]=_0x2ec872(_0x4e50a9,'full'),_0x5c0990[_0x350b07(0x829)]({'title':_0x34d624[_0x350b07(0x25cc)](_0x350b07(0x60f),{'sectionName':_0x34d624['instant'](_0x4e50a9[_0x350b07(0x9fe)]),'userProfileName':_0x3a8aaf[_0x350b07(0x44a)][_0x350b07(0x16b6)]}),'msg':_0x34d624['instant'](_0x350b07(0x7e9),{'sectionName':_0x34d624[_0x350b07(0x25cc)](_0x4e50a9[_0x350b07(0x9fe)]),'userProfileName':_0x3a8aaf['userProfile'][_0x350b07(0x16b6)]})});});})[_0x1ed67c(0x1c4)](function(_0x3611d5){const _0x41a7b7=_0x1ed67c;_0x3611d5?_0x5c0990[_0x41a7b7(0x218e)]({'title':_0x3611d5[_0x41a7b7(0x291)]?'API:'+_0x3611d5[_0x41a7b7(0x291)]+_0x41a7b7(0x1657)+_0x3611d5[_0x41a7b7(0xc22)]:_0x41a7b7(0x1ee9),'msg':_0x3611d5[_0x41a7b7(0x291)]?JSON[_0x41a7b7(0x2701)](_0x3611d5[_0x41a7b7(0x25c)]):_0x3611d5['toString']()}):_0x4e50a9[_0x41a7b7(0x291)]=_0x2ec872(_0x4e50a9,_0x4e50a9[_0x41a7b7(0x291)][_0x41a7b7(0x22b1)]);});}else return _0x5b55cf[_0x1ed67c(0x2785)]({'category':_0x4512c3,'sectionId':_0x4e50a9['id'],'name':_0x4512c3,'enabled':!![],'crudPermissions':_0x1ed67c(0x1a72)}),_0x51e63f[_0x1ed67c(0x44a)][_0x1ed67c(0x2a6)]({'id':_0x3a8aaf['userProfile']['id']},_0x5b55cf)[_0x1ed67c(0x1d77)][_0x1ed67c(0x1cb0)](function(){const _0x12ebac=_0x1ed67c;_0x4e50a9[_0x12ebac(0x291)]=_0x2ec872(_0x4e50a9,_0x12ebac(0x10ca)),_0x5c0990[_0x12ebac(0x829)]({'title':_0x34d624[_0x12ebac(0x25cc)](_0x12ebac(0x60f),{'sectionName':_0x34d624[_0x12ebac(0x25cc)](_0x4e50a9['translate']),'userProfileName':_0x3a8aaf[_0x12ebac(0x44a)]['name']}),'msg':_0x34d624[_0x12ebac(0x25cc)]('STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_MESSAGE_NO_RESOURCES',{'sectionName':_0x34d624[_0x12ebac(0x25cc)](_0x4e50a9[_0x12ebac(0x9fe)]),'userProfileName':_0x3a8aaf[_0x12ebac(0x44a)][_0x12ebac(0x16b6)]})});})[_0x1ed67c(0x1c4)](function(_0x22a1bf){const _0x66c619=_0x1ed67c;_0x5c0990[_0x66c619(0x218e)]({'title':_0x22a1bf[_0x66c619(0x291)]?'API:'+_0x22a1bf[_0x66c619(0x291)]+_0x66c619(0x1657)+_0x22a1bf[_0x66c619(0xc22)]:_0x66c619(0x1ee9),'msg':_0x22a1bf[_0x66c619(0x291)]?JSON[_0x66c619(0x2701)](_0x22a1bf[_0x66c619(0x25c)]):_0x22a1bf['toString']()});});}else{if(_0x4e50a9['status'][_0x1ed67c(0x16b6)]===_0x1ed67c(0x18a8)){_0x4e50a9['status']=_0x2ec872(_0x4e50a9,_0x1ed67c(0x379));let _0x22b4f7=[];switch(_0x4512c3){case _0x1ed67c(0x1fd8):case _0x1ed67c(0x28cf):_0x22b4f7=[_0x4e50a9['id']];break;case _0x1ed67c(0x6a5):_0x22b4f7=_0x39641b()[_0x1ed67c(0x1de2)](_0x3a8aaf[_0x1ed67c(0x19f8)],function(_0x11cba1){return _0x11cba1['id'];});break;default:_0x22b4f7=_0x39641b()[_0x1ed67c(0x1de2)](_0x4e50a9[_0x1ed67c(0x27a5)],function(_0x514c7d){return _0x514c7d['id'];});break;}return _0x51e63f[_0x1ed67c(0x44a)][_0x1ed67c(0x23a2)]({'id':_0x3a8aaf[_0x1ed67c(0x44a)]['id'],'ids':_0x22b4f7})['$promise'][_0x1ed67c(0x1cb0)](function(){const _0xb6bef5=_0x1ed67c;_0x5c0990[_0xb6bef5(0x829)]({'title':_0x34d624['instant']('STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_TITLE',{'sectionName':_0x34d624[_0xb6bef5(0x25cc)](_0x4e50a9[_0xb6bef5(0x9fe)]),'userProfileName':_0x3a8aaf[_0xb6bef5(0x44a)][_0xb6bef5(0x16b6)]}),'msg':_0x34d624[_0xb6bef5(0x25cc)](_0xb6bef5(0x1832),{'sectionName':_0x34d624[_0xb6bef5(0x25cc)](_0x4e50a9['translate']),'userProfileName':_0x3a8aaf[_0xb6bef5(0x44a)][_0xb6bef5(0x16b6)]})});})[_0x1ed67c(0x1c4)](function(_0x53c935){const _0x5f21e7=_0x1ed67c;_0x5c0990[_0x5f21e7(0x218e)]({'title':_0x53c935['status']?_0x5f21e7(0xeb9)+_0x53c935[_0x5f21e7(0x291)]+'\x20-\x20'+_0x53c935[_0x5f21e7(0xc22)]:_0x5f21e7(0x1d38),'msg':_0x53c935['status']?JSON['stringify'](_0x53c935[_0x5f21e7(0x25c)]):_0x53c935[_0x5f21e7(0x147f)]()});});}}}function _0x17bee0(_0x4c10a2,_0x493cf8){const _0xb3b951=_0x10620a,_0x342f13=_0x454dd7[_0xb3b951(0xe27)]({'controller':_0xb3b951(0xbc0),'controllerAs':'vm','templateUrl':_0xd8c0fc,'parent':angular[_0xb3b951(0x1853)](_0x185e60[_0xb3b951(0x1ed9)]),'targetEvent':_0x493cf8,'clickOutsideToClose':![],'locals':{'userProfile':_0x3a8aaf[_0xb3b951(0x44a)],'userProfiles':[],'section':_0x4c10a2}});_0x342f13[_0xb3b951(0x1cb0)](function(){_0x128c95(_0x4c10a2);});}function _0x2ec872(_0x36e4fe,_0x5b756b){const _0x501493=_0x10620a;_0x36e4fe[_0x501493(0xb98)]=_0x29b798(_0x5b756b);switch(_0x5b756b){case _0x501493(0x10ca):return _0x39641b()[_0x501493(0x13b4)](_0x3a8aaf['statusList'],['tag',_0x501493(0x10ca)]);case'partial':return _0x39641b()['find'](_0x3a8aaf[_0x501493(0x236f)],[_0x501493(0x22b1),'partial']);case _0x501493(0x379):return _0x39641b()[_0x501493(0x13b4)](_0x3a8aaf[_0x501493(0x236f)],[_0x501493(0x22b1),'disabled']);case _0x501493(0x1099):return _0x39641b()['find'](_0x3a8aaf[_0x501493(0x236f)],[_0x501493(0x22b1),_0x501493(0x1099)]);case'unknown':return _0x39641b()['find'](_0x3a8aaf['statusList'],['tag',_0x501493(0x1c9d)]);default:return _0x39641b()['find'](_0x3a8aaf['statusList'],['tag','unknown']);}}function _0x331bbd(_0x5a12ee){return _0x1a00e7(function(_0x2cc35b,_0x5d79e9){const _0x3babf6=a0_0x5cbd,_0x21cf0b=typeof _0x5a12ee[_0x3babf6(0x1072)]!=='undefined'&&_0x39641b()[_0x3babf6(0x250a)](_0x5a12ee[_0x3babf6(0x15d0)],_0x3babf6(0x2687));_0x21cf0b?_0x2f7509(_0x5a12ee)[_0x3babf6(0x1cb0)](function(_0xe0f19a){_0x2cc35b(_0xe0f19a);})['catch'](function(_0x5ce4ef){_0x5d79e9(_0x5ce4ef);}):_0x4e9f86(_0x5a12ee)[_0x3babf6(0x1cb0)](function(_0x57f051){_0x2cc35b(_0x57f051);})['catch'](function(_0x5c43fc){_0x5d79e9(_0x5c43fc);});});}function _0x2f7509(_0x25f2de){return _0x1a00e7(function(_0x5d7315,_0x1c6bb4){const _0xf994de=a0_0x5cbd,_0x242e2f=typeof _0x25f2de[_0xf994de(0x1072)]!==_0xf994de(0x16b5)&&_0x25f2de[_0xf994de(0x1072)]==='bull'?_0xf994de(0x895):_0xf994de(0x26c0);return _0x51e63f[_0x25f2de[_0xf994de(0x15d0)]]['get']({'fields':_0xf994de(0x267e),'channel':_0x25f2de[_0xf994de(0x1072)]===_0xf994de(0xb23)?_0xf994de(0x1fd4):_0x25f2de[_0xf994de(0x1072)],'type':_0x242e2f,'nolimit':!![]})[_0xf994de(0x1d77)][_0xf994de(0x1cb0)](function(_0x475e75){_0x5d7315(_0x475e75);})[_0xf994de(0x1c4)](function(_0x345388){_0x1c6bb4(_0x345388);});});}function _0x4e9f86(_0x30a79e){return _0x1a00e7(function(_0x39788d,_0x1533ea){const _0x50fccf=a0_0x5cbd;let _0x54bc85,_0x4939fb,_0x436746=![],_0x2d8567=![];switch(_0x30a79e['route']){case _0x50fccf(0x1059):switch(_0x30a79e[_0x50fccf(0x1386)]){case _0x50fccf(0x23e2):_0x54bc85=_0x50fccf(0x26c0);break;case _0x50fccf(0x257c):_0x54bc85=_0x50fccf(0x895);break;case _0x50fccf(0x6fc):_0x54bc85=_0x50fccf(0xdbd);break;}break;case _0x50fccf(0x1ac8):_0x436746=!![];break;case'disposition':_0x2d8567=!![];break;case _0x50fccf(0xebe):switch(_0x30a79e['title']){case _0x50fccf(0x2536):_0x4939fb=_0x50fccf(0x1eff);break;case _0x50fccf(0x16d1):_0x4939fb=_0x50fccf(0x2922);break;case _0x50fccf(0x2653):_0x4939fb=_0x50fccf(0xebe);break;}break;}if(_0x30a79e['title']===_0x50fccf(0x94d)){if(_0x30a79e[_0x50fccf(0x1ffd)])switch(_0x30a79e[_0x50fccf(0x1ffd)]){case _0x50fccf(0x24c8):_0x30a79e[_0x50fccf(0x15d0)]=_0x50fccf(0x1f0c);break;case _0x50fccf(0x197c):_0x30a79e[_0x50fccf(0x15d0)]=_0x50fccf(0x1e32);break;}else return _0x51e63f[_0x50fccf(0x1f0c)][_0x50fccf(0xbf7)]({'nolimit':!![]})[_0x50fccf(0x1d77)][_0x50fccf(0x1cb0)](function(_0x593329){const _0x35f6fa=_0x50fccf;_0x51e63f['analyticCustomReport']['get']({'nolimit':!![]})[_0x35f6fa(0x1d77)]['then'](function(_0x3a24c2){const _0x43c72f=_0x35f6fa,_0x3f4153=_0x39641b()[_0x43c72f(0xa6f)](_0x593329['rows'],_0x3a24c2[_0x43c72f(0x2214)]);_0x39788d({'count':_0x3f4153[_0x43c72f(0xfd0)],'rows':_0x3f4153[_0x43c72f(0x2214)]});});})[_0x50fccf(0x1c4)](function(_0x1bf6ca){_0x1533ea(_0x1bf6ca);});}return _0x51e63f[_0x30a79e['route']][_0x50fccf(0xbf7)]({'role':_0x4939fb?_0x4939fb:undefined,'type':_0x54bc85?_0x54bc85:undefined,'VoiceExtensionId':_0x54bc85?_0x50fccf(0xd38):undefined,'IntervalId':_0x436746?'null':undefined,'MailAccountId':_0x2d8567?_0x50fccf(0xd38):undefined,'FaxAccountId':_0x2d8567?_0x50fccf(0xd38):undefined,'SmsAccountId':_0x2d8567?_0x50fccf(0xd38):undefined,'OpenchannelAccountId':_0x2d8567?'null':undefined,'ChatWebsiteId':_0x2d8567?'null':undefined,'WhatsappAccountId':_0x2d8567?_0x50fccf(0xd38):undefined,'ListId':_0x2d8567?_0x50fccf(0xd38):undefined,'nolimit':!![]})[_0x50fccf(0x1d77)][_0x50fccf(0x1cb0)](function(_0x290fa1){_0x39788d(_0x290fa1);})[_0x50fccf(0x1c4)](function(_0x5c8043){_0x1533ea(_0x5c8043);});});}function _0x518683(_0x4ed0d1,_0x1a623f){return _0x1a00e7(function(_0x1829ce,_0x1bbf77){const _0x22f4e0=a0_0x5cbd;_0x51e63f['userProfileResource'][_0x22f4e0(0xbf7)]({'sectionId':_0x1a623f})[_0x22f4e0(0x1d77)][_0x22f4e0(0x1cb0)](function(_0x3b39d9){const _0x308db7=_0x22f4e0;return _0x331bbd(_0x4ed0d1)[_0x308db7(0x1cb0)](function(_0x4538e8){const _0x587111=_0x308db7;return _0x39641b()[_0x587111(0x2128)](_0x3b39d9['rows'],_0x4538e8[_0x587111(0x2214)],'id');});})[_0x22f4e0(0x1cb0)](function(_0x1b44fb){const _0xc11394=_0x22f4e0;_0x39641b()[_0xc11394(0xce9)](_0x1b44fb)?_0x1829ce():_0x1bbf77();})['catch'](function(_0x4ed110){_0x1bbf77(_0x4ed110);});});}function _0x24c988(_0x3769be,_0x43f7e6,_0x423650){const _0x534b75=_0x10620a,_0x1c46a4=_0x3769be&&_0x3769be[_0x534b75(0xfd0)]>0x0?_0x3769be[0x0]:null;if(!_0x1c46a4)return _0x423650;const _0x4d2078=_0x39641b()[_0x534b75(0x13b4)](_0x43f7e6,[_0x534b75(0xec6),_0x1c46a4['id']]);if(_0x4d2078)return _0x43f7e6=_0x39641b()[_0x534b75(0x152a)](_0x43f7e6,[_0x534b75(0xec6),_0x1c46a4['id']]),_0x518683(_0x1c46a4,_0x4d2078['id'])[_0x534b75(0x1cb0)](function(){const _0x3d0f51=_0x534b75;return _0x423650=_0x3d0f51(0x10ca),_0x24c988(_0x3769be[_0x3d0f51(0x1945)](),_0x43f7e6,_0x423650);})[_0x534b75(0x1c4)](function(_0x1c5072){const _0x5a9deb=_0x534b75;return _0x1a00e7[_0x5a9deb(0x988)](_0x1c5072);});}function _0x128c95(_0x39fef0){const _0xd45c6f=_0x10620a,_0x49c523=_0x39fef0['title']===_0xd45c6f(0x2222)?_0xd45c6f(0x295c):_0x39fef0[_0xd45c6f(0x1386)];if(!_0x3a8aaf[_0xd45c6f(0x8a5)]){_0x39fef0[_0xd45c6f(0x291)]=_0x2ec872(_0x39fef0,_0xd45c6f(0x1c9d));return;}typeof _0x39fef0[_0xd45c6f(0x6ef)]!==_0xd45c6f(0x16b5)&&!_0x39fef0[_0xd45c6f(0x6ef)]['association']?_0x51e63f[_0xd45c6f(0x2199)][_0xd45c6f(0xbf7)]({'userProfileId':_0x3a8aaf[_0xd45c6f(0x44a)]['id'],'sectionId':_0x39fef0['id']})[_0xd45c6f(0x1d77)][_0xd45c6f(0x1cb0)](function(_0x162375){const _0x5e4818=_0xd45c6f,_0xc006d3=_0x162375&&_0x162375[_0x5e4818(0x2214)][_0x5e4818(0xfd0)]===0x1?_0x162375[_0x5e4818(0x2214)][0x0]:null,_0x2e6bd4=_0xc006d3?_0x5e4818(0x10ca):_0x5e4818(0x379);_0x39fef0[_0x5e4818(0x291)]=_0x2ec872(_0x39fef0,_0x2e6bd4);}):typeof _0x39fef0[_0xd45c6f(0x8a5)]!==_0xd45c6f(0x16b5)&&!_0x3a8aaf['license'][_0x39fef0[_0xd45c6f(0x8a5)]]?_0x39fef0[_0xd45c6f(0x291)]=_0x2ec872(_0x39fef0,'unlicensed'):_0x51e63f['userProfileSection'][_0xd45c6f(0xbf7)]({'userProfileId':_0x3a8aaf[_0xd45c6f(0x44a)]['id'],'category':_0x49c523})[_0xd45c6f(0x1d77)][_0xd45c6f(0x1cb0)](function(_0x9fd06a){const _0x25dfff=_0xd45c6f,_0x3bce0c=_0x9fd06a&&_0x9fd06a[_0x25dfff(0x2214)]&&_0x9fd06a[_0x25dfff(0x2214)][_0x25dfff(0xfd0)]>0x0?_0x9fd06a[_0x25dfff(0x2214)]:[];if(_0x39fef0[_0x25dfff(0x1386)]===_0x25dfff(0x6a5))return _0x39641b()['isEmpty'](_0x3bce0c)?_0x25dfff(0x379):_0x3bce0c[0x0][_0x25dfff(0x12f4)]?_0x25dfff(0x10ca):_0x51e63f[_0x25dfff(0x1198)][_0x25dfff(0xbf7)]({'sectionId':_0x3bce0c[0x0]['id'],'resourceId':0x65})[_0x25dfff(0x1d77)]['then'](function(_0x3d6ebc){const _0x1a12e6=_0x25dfff,_0x38c322=_0x3d6ebc&&_0x3d6ebc['rows']?_0x3d6ebc[_0x1a12e6(0x2214)][0x0]:null;return _0x38c322?_0x1a12e6(0x10ca):_0x1a12e6(0xe88);});else{const _0x4f50c1=_0x39641b()[_0x25dfff(0x1c99)](_0x39fef0['children'],function(_0x171835){const _0x54dece=_0x25dfff;return typeof _0x171835['permissions']!==_0x54dece(0x16b5)&&_0x171835['permissions']['hidden']?undefined:_0x171835;});if(_0x3bce0c[_0x25dfff(0xfd0)]===_0x4f50c1['length']){if(_0x39641b()[_0x25dfff(0x1aa3)](_0x3bce0c,[_0x25dfff(0x12f4),!![]]))return _0x25dfff(0x10ca);else{const _0x55d795=_0x39641b()['filter'](_0x4f50c1,function(_0x32783d){const _0x551779=_0x25dfff;return typeof _0x32783d[_0x551779(0x6ef)]!==_0x551779(0x16b5)&&!_0x32783d[_0x551779(0x6ef)]['association']?undefined:_0x32783d;});return _0x24c988(_0x55d795,_0x3bce0c,_0x25dfff(0xe88));}}else return _0x3bce0c[_0x25dfff(0xfd0)]===0x0?_0x25dfff(0x379):_0x25dfff(0xe88);}})[_0xd45c6f(0x1cb0)](function(_0x4ca8b7){const _0x3edb8c=_0xd45c6f;_0x39fef0[_0x3edb8c(0x291)]=_0x2ec872(_0x39fef0,_0x4ca8b7);})[_0xd45c6f(0x1c4)](function(_0x393963){const _0x1bc5e5=_0xd45c6f,_0x277e8e=_0x393963?_0x1bc5e5(0x1c9d):_0x1bc5e5(0xe88);_0x39fef0[_0x1bc5e5(0x291)]=_0x2ec872(_0x39fef0,_0x277e8e),_0x393963&&_0x5c0990[_0x1bc5e5(0x218e)]({'title':_0x393963[_0x1bc5e5(0x291)]?'API:'+_0x393963['status']+_0x1bc5e5(0x1657)+_0x393963[_0x1bc5e5(0xc22)]:'USERPROFILE:GETRESOURCES('+_0x49c523['toUpperCase']()+')','msg':_0x393963['status']?JSON[_0x1bc5e5(0x2701)](_0x393963['data']):_0x393963[_0x1bc5e5(0x147f)]()});});}function _0x29b798(_0x8efab2){const _0x4d3b40=_0x10620a;return _0x8efab2===_0x4d3b40(0x10ca)?!![]:![];}}const _0x12a080=_0x3a23c9;;_0x1afebc[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x44a),'userProfiles',_0x5537c6(0x1ae),'Auth',_0x5537c6(0x1f74)];function _0x1afebc(_0x1b40b7,_0x2298c4,_0x537c40,_0x16644c,_0x3afde7,_0x1521dd,_0x1549b5,_0x1f4a9c,_0x115a6c,_0x3d37b8){const _0xf0c727=_0x5537c6,_0x915137=this;_0x915137[_0xf0c727(0x44a)]=_0x1521dd,_0x915137[_0xf0c727(0x1cbc)]=0x0,_0x915137[_0xf0c727(0x1f74)]=angular[_0xf0c727(0x17fe)](_0x3d37b8),_0x915137['title']=_0x1f4a9c[_0xf0c727(0x25cc)](_0xf0c727(0x2350),{'sectionName':_0x1f4a9c['instant'](_0x915137[_0xf0c727(0x1f74)][_0xf0c727(0x9fe)])}),_0x915137[_0xf0c727(0x122f)]=[],_0x915137[_0xf0c727(0x20bb)]=[],_0x915137['subsections']=_0x39641b()[_0xf0c727(0x1c99)](_0x915137[_0xf0c727(0x1f74)]['children'],function(_0x110d2f){const _0x1bc85b=_0xf0c727;return typeof _0x110d2f[_0x1bc85b(0x6ef)]!=_0x1bc85b(0x16b5)&&_0x110d2f[_0x1bc85b(0x6ef)][_0x1bc85b(0x3f8)]?undefined:_0x110d2f;}),_0x915137['dashboardSections']=[{'title':_0xf0c727(0x6a5),'translate':_0xf0c727(0x1f06),'id':0x64}],_0x915137[_0xf0c727(0x2607)]=[];_0x915137[_0xf0c727(0x1f74)][_0xf0c727(0x1386)]===_0xf0c727(0x6a5)&&(_0x915137[_0xf0c727(0x2607)]=_0x915137['subsections'],_0x915137['subsections']=_0x915137[_0xf0c727(0x19f8)]);_0x915137[_0xf0c727(0x1a1a)]=null,_0x915137[_0xf0c727(0x1b59)]=null,_0x915137[_0xf0c727(0xaae)]=[],_0x915137[_0xf0c727(0xda0)]=_0x32c5f3,_0x915137[_0xf0c727(0x27bb)]=_0x16d53d,_0x915137[_0xf0c727(0x12ad)]=_0x57d4f3,_0x915137['onChangeAutoAssociation']=_0x284ff3,_0x915137[_0xf0c727(0x1ed2)]=_0x346c94,_0x915137[_0xf0c727(0x1a3a)]=_0x32922c,_0x915137[_0xf0c727(0x141f)]=_0x3911f1,_0x915137[_0xf0c727(0x18c0)]={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0xf0c727(0x16b6),'line1':_0xf0c727(0x16b6),'line2':'','line3':'','line4':'fullPath','labelAll':_0x1f4a9c['instant'](_0xf0c727(0x118b)),'labelSelected':_0x1f4a9c[_0xf0c727(0x25cc)](_0xf0c727(0x2023)),'labelSearch':_0x1f4a9c[_0xf0c727(0x25cc)](_0xf0c727(0x1f72)),'transferCallback':function(_0x36124e,_0x5f20c2){const _0x42b4bb=_0xf0c727;_0x409ac8(!![]),_0x5f20c2?(_0x915137['selectedSection'][_0x42b4bb(0x20bb)]=_0x39641b()['pullAllBy'](_0x915137[_0x42b4bb(0x1a1a)][_0x42b4bb(0x20bb)],_0x36124e,'id'),_0x915137['selectedSection'][_0x42b4bb(0x12f4)]=![]):_0x915137[_0x42b4bb(0x1a1a)][_0x42b4bb(0x20bb)]=_0x39641b()[_0x42b4bb(0x16ef)](_0x915137['selectedSection'][_0x42b4bb(0x20bb)],_0x36124e,'id'),_0x915137['selectedSection']['title']===_0x42b4bb(0x94d)&&_0x1c497c();}};function _0x567e28(){return _0x537c40(function(_0x1d5612,_0x4eee30){const _0x3ad748=a0_0x5cbd,_0x14248d=typeof _0x915137[_0x3ad748(0x1a1a)][_0x3ad748(0x1072)]!=='undefined'&&_0x915137[_0x3ad748(0x1a1a)][_0x3ad748(0x1072)]===_0x3ad748(0xb23)?_0x3ad748(0x895):_0x3ad748(0x26c0);return _0x3afde7[_0x915137[_0x3ad748(0x1a1a)][_0x3ad748(0x15d0)]][_0x3ad748(0xbf7)]({'fields':_0x3ad748(0x267e),'channel':_0x915137[_0x3ad748(0x1a1a)][_0x3ad748(0x1072)]===_0x3ad748(0xb23)?'voice':_0x915137['selectedSection'][_0x3ad748(0x1072)],'type':_0x14248d,'nolimit':!![]})[_0x3ad748(0x1d77)][_0x3ad748(0x1cb0)](function(_0x4dc558){_0x1d5612(_0x4dc558);})[_0x3ad748(0x1c4)](function(_0x5e0855){_0x4eee30(_0x5e0855);});});}function _0x22c627(){return _0x537c40(function(_0x47ce0b,_0x229080){const _0x1125c0=a0_0x5cbd;let _0x13d9eb,_0x3c59ef,_0x582b9a=![],_0x2de5c8=![];if(_0x915137['selectedSection']['route']===_0x1125c0(0x1059))switch(_0x915137['selectedSection'][_0x1125c0(0x1386)]){case _0x1125c0(0x23e2):_0x13d9eb=_0x1125c0(0x26c0);break;case _0x1125c0(0x257c):_0x13d9eb=_0x1125c0(0x895);break;case'InternalRoutes':_0x13d9eb=_0x1125c0(0xdbd);break;}if(_0x915137[_0x1125c0(0x1a1a)]['route']==='user')switch(_0x915137[_0x1125c0(0x1a1a)]['title']){case'Agents':_0x3c59ef=_0x1125c0(0x1eff);break;case _0x1125c0(0x16d1):_0x3c59ef=_0x1125c0(0x2922);break;case'Users':_0x3c59ef='user';break;}_0x915137[_0x1125c0(0x1a1a)][_0x1125c0(0x15d0)]===_0x1125c0(0x1ac8)&&(_0x582b9a=!![]);_0x915137[_0x1125c0(0x1a1a)]['route']==='disposition'&&(_0x2de5c8=!![]);_0x915137[_0x1125c0(0x1a1a)]['title']===_0x1125c0(0x94d)&&(_0x915137[_0x1125c0(0x1a1a)][_0x1125c0(0x15d0)]=_0x915137[_0x1125c0(0x1a1a)][_0x1125c0(0x1ffd)]===_0x1125c0(0x24c8)?_0x1125c0(0x1f0c):_0x1125c0(0x1e32));if(_0x915137['selectedSection'][_0x1125c0(0x1386)]==='Dashboards')_0x47ce0b({'count':0x1,'rows':[{'id':0x65,'name':_0x1f4a9c[_0x1125c0(0x25cc)](_0x1125c0(0x76a))}]});else return _0x3afde7[_0x915137[_0x1125c0(0x1a1a)][_0x1125c0(0x15d0)]][_0x1125c0(0xbf7)]({'role':_0x3c59ef?_0x3c59ef:undefined,'type':_0x13d9eb?_0x13d9eb:undefined,'VoiceExtensionId':_0x13d9eb?_0x1125c0(0xd38):undefined,'IntervalId':_0x582b9a?'null':undefined,'MailAccountId':_0x2de5c8?_0x1125c0(0xd38):undefined,'FaxAccountId':_0x2de5c8?_0x1125c0(0xd38):undefined,'SmsAccountId':_0x2de5c8?_0x1125c0(0xd38):undefined,'OpenchannelAccountId':_0x2de5c8?_0x1125c0(0xd38):undefined,'ChatWebsiteId':_0x2de5c8?_0x1125c0(0xd38):undefined,'WhatsappAccountId':_0x2de5c8?'null':undefined,'ListId':_0x2de5c8?_0x1125c0(0xd38):undefined,'nolimit':!![]})[_0x1125c0(0x1d77)]['then'](function(_0x29a063){_0x47ce0b(_0x29a063);})[_0x1125c0(0x1c4)](function(_0x2a1e19){_0x229080(_0x2a1e19);});});}function _0x326825(){const _0x245ba3=_0xf0c727,_0xe1322=typeof _0x915137[_0x245ba3(0x1a1a)][_0x245ba3(0xdb1)]!='undefined'?_0x915137['selectedSection']['pending']:![];return _0x537c40(function(_0x161f0f,_0x2ddc75){const _0x5a5651=_0x245ba3;_0x3afde7['userProfileSection']['get']({'userProfileId':_0x915137['userProfile']['id'],'sectionId':_0x915137[_0x5a5651(0x1a1a)]['id']})[_0x5a5651(0x1d77)][_0x5a5651(0x1cb0)](function(_0xd6bc37){const _0x5dbd06=_0x5a5651,_0x9bf309=_0xd6bc37&&_0xd6bc37[_0x5dbd06(0x2214)]?_0xd6bc37[_0x5dbd06(0x2214)][0x0]:null;!_0xe1322&&(_0x915137[_0x5dbd06(0x1a1a)][_0x5dbd06(0x281c)]=_0x9bf309?!!_0x9bf309[_0x5dbd06(0x281c)]:![],_0x915137[_0x5dbd06(0x1a1a)]['autoAssociation']=_0x9bf309?!!_0x9bf309['autoAssociation']:![],_0x915137[_0x5dbd06(0x1a1a)][_0x5dbd06(0x1b1a)]=_0x9bf309?_0x26f0a3(_0x9bf309[_0x5dbd06(0x1b1a)]):_0x26f0a3(_0x915137['userProfile'][_0x5dbd06(0x1b1a)])),_0x161f0f(_0x9bf309);})[_0x5a5651(0x1c4)](function(_0x438c08){_0x2ddc75(_0x438c08);});});}function _0x229a73(){return _0x537c40(function(_0x3c6a76,_0x354675){const _0x1faa1b=a0_0x5cbd;!_0x915137['loadedSection']?_0x3c6a76(null):_0x3afde7[_0x1faa1b(0x1198)][_0x1faa1b(0xbf7)]({'sectionId':_0x915137[_0x1faa1b(0x1b59)]['id'],'nolimit':!![]})[_0x1faa1b(0x1d77)][_0x1faa1b(0x1cb0)](function(_0x1261b7){_0x3c6a76(_0x1261b7);})[_0x1faa1b(0x1c4)](function(_0x36f067){_0x354675(_0x36f067);});});}function _0x540450(){return _0x537c40(function(_0x587be4,_0x40249c){const _0x3ab9f9=a0_0x5cbd,_0x5cc0cf=typeof _0x915137[_0x3ab9f9(0x1a1a)]['channel']!==_0x3ab9f9(0x16b5)&&_0x39641b()[_0x3ab9f9(0x250a)](_0x915137[_0x3ab9f9(0x1a1a)][_0x3ab9f9(0x15d0)],_0x3ab9f9(0x2687));_0x5cc0cf?_0x567e28()[_0x3ab9f9(0x1cb0)](function(_0x3bb5a2){_0x587be4(_0x3bb5a2);})['catch'](function(_0x14d9dc){_0x40249c(_0x14d9dc);}):_0x22c627()[_0x3ab9f9(0x1cb0)](function(_0x50b54d){_0x587be4(_0x50b54d);})[_0x3ab9f9(0x1c4)](function(_0x229015){_0x40249c(_0x229015);});});}function _0x28fe35(){const _0x49935c=_0xf0c727,_0x36255e=typeof _0x915137[_0x49935c(0x1a1a)][_0x49935c(0xdb1)]!=_0x49935c(0x16b5)?_0x915137[_0x49935c(0x1a1a)]['pending']:![];let _0x47a317=[];return _0x229a73()['then'](function(_0x5cf2fa){const _0x22bf32=_0x49935c;return _0x47a317=_0x5cf2fa&&_0x5cf2fa[_0x22bf32(0x2214)]?_0x5cf2fa['rows']:[],_0x915137[_0x22bf32(0x1a1a)]['title']===_0x22bf32(0x94d)&&(_0x915137[_0x22bf32(0x1807)]=!_0x915137[_0x22bf32(0x1807)]?_0x47a317:_0x915137[_0x22bf32(0x1807)],_0x47a317=_0x10e619(_0x915137[_0x22bf32(0x1807)])),typeof _0x915137[_0x22bf32(0x1a1a)][_0x22bf32(0x6ef)]!==_0x22bf32(0x16b5)&&!_0x915137[_0x22bf32(0x1a1a)][_0x22bf32(0x6ef)][_0x22bf32(0x277f)]?{'rows':[]}:_0x540450();})[_0x49935c(0x1cb0)](function(_0x276a3d){const _0x23d05d=_0x49935c;_0x915137[_0x23d05d(0x122f)]=_0x276a3d[_0x23d05d(0x2214)]?_0x39641b()[_0x23d05d(0x1de2)](_0x276a3d[_0x23d05d(0x2214)],function(_0x3fcbea){const _0x1e7fec=_0x23d05d;return _0x915137[_0x1e7fec(0x1a1a)][_0x1e7fec(0x1386)]===_0x1e7fec(0x94d)&&(_0x3fcbea['fullPath']=_0x34f194(_0x3fcbea[_0x1e7fec(0xbfb)])[_0x1e7fec(0x288f)]('\x20','_')),_0x3fcbea[_0x1e7fec(0x1a4f)]=!![],_0x3fcbea;}):[];!_0x36255e&&(_0x915137['selectedSection'][_0x23d05d(0x20bb)]=_0x39641b()[_0x23d05d(0x1de2)](_0x47a317,function(_0x1ec7ee){const _0x9b67c=_0x23d05d;return _0x39641b()[_0x9b67c(0x13b4)](_0x915137[_0x9b67c(0x122f)],{'id':_0x1ec7ee[_0x9b67c(0x2982)]});}));const _0x3f4d04=_0x39641b()['differenceBy'](_0x915137[_0x23d05d(0x1a1a)]['selectedItems'],_0x915137['items'],'id');!_0x39641b()[_0x23d05d(0xce9)](_0x3f4d04)&&(_0x915137['selectedSection'][_0x23d05d(0x20bb)]=_0x39641b()['pullAllBy'](_0x915137['selectedSection']['selectedItems'],_0x3f4d04,'id'));let _0x1bf7ec;switch(_0x915137['selectedSection'][_0x23d05d(0x1386)]){case _0x23d05d(0x208a):_0x915137[_0x23d05d(0x1a1a)][_0x23d05d(0x20bb)]=_0x39641b()['filter'](_0x915137[_0x23d05d(0x122f)],function(_0x326bba){const _0xe4fc84=_0x23d05d;if(_0x326bba[_0xe4fc84(0xa0d)])return _0x326bba[_0xe4fc84(0x1a4f)]=![],_0x326bba;else{const _0x4f5db3=_0x39641b()[_0xe4fc84(0x13b4)](_0x47a317,{'resourceId':_0x326bba['id']});if(typeof _0x4f5db3!==_0xe4fc84(0x16b5))return _0x326bba[_0xe4fc84(0x1a4f)]=!![],_0x326bba;}});break;case'MusicOnHolds':_0x915137['selectedSection']['selectedItems']=_0x39641b()[_0x23d05d(0x1c99)](_0x915137[_0x23d05d(0x122f)],function(_0x29cde1){const _0x262825=_0x23d05d;if(_0x29cde1[_0x262825(0xa0d)])return _0x29cde1[_0x262825(0x1a4f)]=![],_0x29cde1;else{const _0x323883=_0x39641b()[_0x262825(0x13b4)](_0x47a317,{'resourceId':_0x29cde1['id']});if(typeof _0x323883!==_0x262825(0x16b5))return _0x29cde1[_0x262825(0x1a4f)]=!![],_0x29cde1;}});break;case _0x23d05d(0x94d):_0x1bf7ec=_0x26bda2(_0x915137[_0x23d05d(0xaae)]),_0x915137[_0x23d05d(0x1a1a)][_0x23d05d(0x20bb)]=_0x22d6df(_0x915137['selectedSection'][_0x23d05d(0x20bb)]),_0x915137[_0x23d05d(0x1a1a)]['selectedItems']=_0x39641b()[_0x23d05d(0x16ef)](_0x915137['selectedSection']['selectedItems'],_0x1bf7ec,'id');break;}_0x915137[_0x23d05d(0x18c0)][_0x23d05d(0x20bb)]=_0x915137[_0x23d05d(0x1a1a)][_0x23d05d(0x20bb)],_0x915137[_0x23d05d(0x18c0)][_0x23d05d(0x122f)]=_0x39641b()['differenceBy'](_0x915137['items'],_0x915137[_0x23d05d(0x18c0)]['selectedItems'],'id');})['catch'](function(_0x3c7cdf){const _0x4ba88d=_0x49935c;_0x16644c[_0x4ba88d(0x218e)]({'title':_0x3c7cdf['status']?_0x4ba88d(0xeb9)+_0x3c7cdf[_0x4ba88d(0x291)]+_0x4ba88d(0x1657)+_0x3c7cdf['statusText']:_0x4ba88d(0x383)+_0x915137[_0x4ba88d(0x1a1a)]['title'][_0x4ba88d(0x2335)](),'msg':_0x3c7cdf[_0x4ba88d(0x291)]?JSON[_0x4ba88d(0x2701)](_0x3c7cdf[_0x4ba88d(0x25c)]):_0x3c7cdf[_0x4ba88d(0x147f)]()});});}function _0x16d53d(){const _0x4a02dd=_0xf0c727;return _0x326825()[_0x4a02dd(0x1cb0)](function(_0x3fa0f6){const _0x3e4bec=_0x4a02dd;_0x915137['loadedSection']=_0x3fa0f6;if(_0x915137['selectedSection'][_0x3e4bec(0x1386)]===_0x3e4bec(0x94d))return _0x22c62f()[_0x3e4bec(0x1cb0)](function(){const _0x18d38f=_0x3e4bec;if(!_0x915137[_0x18d38f(0x1a1a)][_0x18d38f(0x1ffd)])return _0x229a73()[_0x18d38f(0x1cb0)](function(_0x4b7dc9){const _0x502611=_0x18d38f;_0x915137[_0x502611(0xaae)]=_0x4b7dc9?_0x39641b()['map'](_0x4b7dc9[_0x502611(0x2214)],function(_0x1cac6d){const _0x44032a=_0x502611;return{'id':_0x1cac6d[_0x44032a(0x2982)],'name':_0x1cac6d[_0x44032a(0x16b6)],'type':_0x1cac6d[_0x44032a(0x66a)]};}):[];});})[_0x3e4bec(0x1c4)](function(_0x1771bf){const _0x1dd914=_0x3e4bec;_0x16644c[_0x1dd914(0x218e)]({'title':_0x1771bf[_0x1dd914(0x291)]?_0x1dd914(0xeb9)+_0x1771bf['status']+_0x1dd914(0x1657)+_0x1771bf[_0x1dd914(0xc22)]:_0x1dd914(0x2972),'msg':_0x1771bf[_0x1dd914(0x25c)]?JSON[_0x1dd914(0x2701)](_0x1771bf['data']):_0x1771bf[_0x1dd914(0x147f)]()});});else _0x28fe35();})['catch'](function(_0x17b117){const _0x2a97d3=_0x4a02dd;_0x16644c[_0x2a97d3(0x218e)]({'title':_0x17b117[_0x2a97d3(0x291)]?_0x2a97d3(0xeb9)+_0x17b117['status']+'\x20-\x20'+_0x17b117[_0x2a97d3(0xc22)]:_0x2a97d3(0x383)+_0x915137[_0x2a97d3(0x1a1a)][_0x2a97d3(0x1386)][_0x2a97d3(0x2335)](),'msg':_0x17b117[_0x2a97d3(0x291)]?JSON['stringify'](_0x17b117[_0x2a97d3(0x25c)]):_0x17b117[_0x2a97d3(0x147f)]()});});}function _0x26f0a3(_0x184fac){const _0x48faca=_0xf0c727;return _0x184fac&&(_0x915137['selectedSection'][_0x48faca(0x11af)]=_0x39641b()[_0x48faca(0x250a)](_0x184fac,'e')?!![]:![],_0x915137[_0x48faca(0x1a1a)][_0x48faca(0xc65)]=_0x39641b()[_0x48faca(0x250a)](_0x184fac,'d')?!![]:![]),_0x1b84f1();}function _0x1b84f1(){const _0xaba44a=_0xf0c727,_0x314a90=['r'];if(_0x915137[_0xaba44a(0x1a1a)][_0xaba44a(0x11af)])_0x314a90[_0xaba44a(0x2785)]('e');else{const _0x2ffabe=_0x39641b()[_0xaba44a(0xd8a)](_0x314a90,['e']);_0x2ffabe>0x0&&_0x915137['selectedSection']['crudPermissions'][_0xaba44a(0x288f)]('e','');}if(_0x915137[_0xaba44a(0x1a1a)][_0xaba44a(0xc65)])_0x314a90['push']('d');else{const _0x1d5e5a=_0x39641b()['indexOf'](_0x314a90,['d']);_0x1d5e5a>0x0&&_0x915137[_0xaba44a(0x1a1a)][_0xaba44a(0x1b1a)]['replace']('d','');}return _0x314a90;}function _0x57d4f3(){const _0x14766a=_0xf0c727;_0x915137[_0x14766a(0x1a1a)][_0x14766a(0x281c)]=!_0x915137['selectedSection'][_0x14766a(0x281c)],_0x409ac8(!![]);}function _0x284ff3(){const _0x29ccee=_0xf0c727;if(!_0x915137['selectedSection'][_0x29ccee(0x12f4)]){const _0x301fa0=[];for(let _0x4b2a1e=0x0;_0x4b2a1e<_0x915137[_0x29ccee(0x18c0)][_0x29ccee(0x122f)][_0x29ccee(0xfd0)];_0x4b2a1e++){_0x301fa0[_0x29ccee(0x2785)](_0x915137['dualMultiselectOptions'][_0x29ccee(0x122f)][_0x4b2a1e]),_0x915137[_0x29ccee(0x18c0)][_0x29ccee(0x20bb)][_0x29ccee(0x2785)](_0x915137['dualMultiselectOptions'][_0x29ccee(0x122f)][_0x4b2a1e]);}_0x915137[_0x29ccee(0x18c0)][_0x29ccee(0x122f)]=[],_0x915137[_0x29ccee(0x18c0)][_0x29ccee(0x2741)](_0x301fa0,![]);}_0x409ac8(!![]);}function _0x346c94(){const _0x4867ae=_0xf0c727;_0x915137[_0x4867ae(0x8af)]=_0x2de88a(),_0x915137[_0x4867ae(0x1a1a)][_0x4867ae(0x20bb)]&&(_0x915137[_0x4867ae(0xaae)]=_0x22d6df(_0x915137['allReportsSelected']),_0x1c497c()),_0x28fe35();}function _0x32922c(_0x2da95e){const _0xd620e9=_0xf0c727;if(_0x2da95e===_0xd620e9(0xe09))_0x915137[_0xd620e9(0x1a1a)][_0xd620e9(0x11af)]=!_0x915137[_0xd620e9(0x1a1a)][_0xd620e9(0x11af)];else _0x2da95e===_0xd620e9(0x111d)&&(_0x915137[_0xd620e9(0x1a1a)]['allowDelete']=!_0x915137[_0xd620e9(0x1a1a)][_0xd620e9(0xc65)]);_0x915137[_0xd620e9(0x1a1a)][_0xd620e9(0x1b1a)]=_0x26f0a3(),_0x409ac8(!![]);}function _0x3911f1(){const _0x55b5b4=_0xf0c727,_0x1eb8f5=_0x915137[_0x55b5b4(0x1f74)][_0x55b5b4(0x1386)]==='Marketplace'?_0x55b5b4(0x295c):_0x915137[_0x55b5b4(0x1f74)][_0x55b5b4(0x1386)],_0x30eb0a=_0x39641b()(_0x915137[_0x55b5b4(0x26fd)])[_0x55b5b4(0x1c99)]({'pending':!![]})[_0x55b5b4(0x1de2)](function(_0x8df9b7){const _0x436c76=_0x55b5b4,_0x1fd4c1=_0x1eb8f5===_0x436c76(0x1ff3)&&_0x8df9b7['title']==='Projects'?_0x436c76(0x1165):_0x8df9b7[_0x436c76(0x1386)],_0x37e6c1=_0x1fd4c1==='Reports'?_0x915137[_0x436c76(0xaae)]:_0x8df9b7[_0x436c76(0x20bb)];return _0x1eb8f5===_0x436c76(0x1294)&&(_0x8df9b7['autoAssociation']=!![]),{'category':_0x1eb8f5,'sectionId':_0x8df9b7['id'],'name':_0x1fd4c1,'enabled':_0x8df9b7['enabled'],'autoAssociation':_0x8df9b7['autoAssociation'],'crudPermissions':_0x39641b()[_0x436c76(0x1de2)](_0x8df9b7[_0x436c76(0x1b1a)])[_0x436c76(0x1f66)](''),'Resources':_0x39641b()[_0x436c76(0x1de2)](_0x37e6c1,function(_0x13645a){const _0x3e7974=_0x436c76;return{'name':_0x13645a[_0x3e7974(0x16b6)],'resourceId':_0x13645a['id'],'type':_0x4e7541(_0x1fd4c1,_0x13645a)};})};})['value']();return _0x3afde7['userProfile'][_0x55b5b4(0x2a6)]({'id':_0x915137[_0x55b5b4(0x44a)]['id']},_0x30eb0a)[_0x55b5b4(0x1d77)][_0x55b5b4(0x1cb0)](function(){const _0x4f36a6=_0x55b5b4;_0x915137['subsections'][_0x4f36a6(0xf90)](function(_0xe6b235){const _0x4a3d1f=_0x4f36a6;_0xe6b235[_0x4a3d1f(0xdb1)]=undefined;}),_0x915137[_0x4f36a6(0x1807)]=null,_0x13af2e(),_0x915137['selectedSection'][_0x4f36a6(0x1386)]===_0x4f36a6(0x94d)&&!_0x915137[_0x4f36a6(0x1a1a)]['reportType']&&_0x1b40b7[_0x4f36a6(0x725)][_0x4f36a6(0x1187)](),_0x16644c[_0x4f36a6(0x829)]({'title':_0x1f4a9c[_0x4f36a6(0x25cc)](_0x4f36a6(0x1a6b),{'sectionName':_0x1f4a9c['instant'](_0x1eb8f5[_0x4f36a6(0x9fe)])}),'msg':_0x1f4a9c['instant'](_0x4f36a6(0x28c))});})[_0x55b5b4(0x1cb0)](function(){return _0x326825()['then'](function(_0x16912b){const _0x12df7d=a0_0x5cbd;_0x915137[_0x12df7d(0x1b59)]=_0x16912b;});})[_0x55b5b4(0x1c4)](function(_0x4800a4){const _0x4948b3=_0x55b5b4;_0x16644c[_0x4948b3(0x218e)]({'title':_0x4800a4[_0x4948b3(0x291)]?_0x4948b3(0xeb9)+_0x4800a4[_0x4948b3(0x291)]+_0x4948b3(0x1657)+_0x4800a4['statusText']:_0x4948b3(0x1ee9),'msg':_0x4800a4[_0x4948b3(0x291)]?JSON['stringify'](_0x4800a4['data']):_0x4800a4[_0x4948b3(0x147f)]()});});}function _0x409ac8(_0x44f891){const _0x1af8d6=_0xf0c727,_0x50e18e=_0x39641b()[_0x1af8d6(0x3c2)](_0x915137[_0x1af8d6(0x26fd)],function(_0x4e7dd9){const _0x562ad4=_0x1af8d6;return _0x4e7dd9['id']==_0x915137[_0x562ad4(0x1a1a)]['id'];});_0x915137[_0x1af8d6(0x26fd)][_0x50e18e]['pending']=_0x44f891,_0x13af2e();}function _0x13af2e(){const _0x5bce72=_0xf0c727;return _0x915137[_0x5bce72(0x50c)]=_0x39641b()['some'](_0x915137['subsections'],[_0x5bce72(0xdb1),!![]]);}function _0x2de88a(){const _0x52d2fc=_0xf0c727;let _0xb6d951={};return _0x915137[_0x52d2fc(0x1a1a)][_0x52d2fc(0x1ffd)]==='default'?_0xb6d951=_0x915137['treeReports'][0x0]?angular['fromJson'](_0x915137[_0x52d2fc(0x1871)][0x0]['tree']):[]:_0xb6d951=_0x915137[_0x52d2fc(0x1871)][0x1]?angular[_0x52d2fc(0x284c)](_0x915137[_0x52d2fc(0x1871)][0x1][_0x52d2fc(0x1bd)]):[],_0xb6d951;}function _0x22c62f(){return _0x537c40(function(_0x5b2d1f,_0x4af299){const _0x44c5d9=a0_0x5cbd;_0x3afde7['analyticTreeReport'][_0x44c5d9(0xbf7)]({})[_0x44c5d9(0x1d77)][_0x44c5d9(0x1cb0)](function(_0x3d5c91){const _0x6909f2=_0x44c5d9;_0x915137[_0x6909f2(0x1871)]=_0x3d5c91[_0x6909f2(0x2214)]||[],_0x5b2d1f(_0x915137[_0x6909f2(0x1871)]);})[_0x44c5d9(0x1c4)](function(_0x4f8591){_0x4af299(_0x4f8591);});});}function _0x34f194(_0x881e84){const _0x110971=_0xf0c727;let _0x473a53=_0x915137['treeStructure'][0x0][_0x110971(0x19d3)];return _0x473a53=_0x3d92ab(_0x473a53,_0x881e84,_0x915137['treeStructure'][0x0]),_0x473a53;}function _0x3d92ab(_0x3259f9,_0x3712d7,_0x4a3768){const _0xb1080f=_0xf0c727;if(_0x4a3768&&!_0x39641b()['isEmpty'](_0x4a3768['children']))_0x4a3768=_0x39641b()['find'](_0x4a3768['children'],function(_0x14c69a){const _0x3d986c=a0_0x5cbd;return _0x39641b()[_0x3d986c(0x250a)](_0x3712d7,_0x14c69a['id'])?_0x14c69a:undefined;}),_0x3259f9+=_0x4a3768?'/'+_0x4a3768[_0xb1080f(0x19d3)]:'';else return _0x3259f9;return _0x3d92ab(_0x3259f9,_0x3712d7,_0x4a3768);}function _0x10e619(_0x1a1c73){const _0x35ce19=_0xf0c727;return _0x39641b()[_0x35ce19(0x1c99)](_0x1a1c73,{'type':_0x915137[_0x35ce19(0x1a1a)][_0x35ce19(0x1ffd)]===_0x35ce19(0x24c8)?_0x35ce19(0x1f5d):_0x35ce19(0xe44)});}function _0x26bda2(_0x49936e){const _0x5eed79=_0xf0c727;return _0x39641b()[_0x5eed79(0x1c99)](_0x49936e,function(_0xfc63e2){const _0x4a85c4=_0x5eed79;return _0x39641b()[_0x4a85c4(0x1f2c)](_0xfc63e2[_0x4a85c4(0xbfb)],_0x915137[_0x4a85c4(0x1a1a)][_0x4a85c4(0x1ffd)]===_0x4a85c4(0x24c8)?_0x4a85c4(0x2232):_0x4a85c4(0x197c));});}function _0x22d6df(_0x24520e){return _0x39641b()['remove'](_0x24520e,function(_0x1cc3e8){const _0x5a2e8a=a0_0x5cbd;return _0x39641b()[_0x5a2e8a(0x1f2c)](_0x1cc3e8[_0x5a2e8a(0xbfb)],_0x915137[_0x5a2e8a(0x1a1a)]['reportType']===_0x5a2e8a(0x24c8)?_0x5a2e8a(0x2232):'custom');});}function _0x1c497c(){const _0x313255=_0xf0c727;_0x39641b()[_0x313255(0xce9)](_0x915137['selectedSection'][_0x313255(0x20bb)])?_0x915137[_0x313255(0xaae)]=_0x39641b()[_0x313255(0x152a)](_0x915137[_0x313255(0xaae)],function(_0x39bfc0){const _0x298d42=_0x313255;return _0x39bfc0[_0x298d42(0x66a)]===(_0x915137['selectedSection'][_0x298d42(0x1ffd)]===_0x298d42(0x24c8)?'CustomReports':_0x298d42(0x1f5d));}):_0x915137[_0x313255(0x1a1a)][_0x313255(0x20bb)][_0x313255(0xf90)](function(_0x24bbe3){const _0x2ccc9a=_0x313255,_0x12130a=_0x39641b()[_0x2ccc9a(0x727)](_0x915137[_0x2ccc9a(0xaae)],{'id':_0x24bbe3['id'],'parent':_0x24bbe3[_0x2ccc9a(0xbfb)]});!_0x12130a&&_0x915137[_0x2ccc9a(0xaae)][_0x2ccc9a(0x2785)](_0x24bbe3);});}function _0x4e7541(_0xdaab0,_0x5ccd40){const _0x58ae38=_0xf0c727;if(_0xdaab0===_0x58ae38(0x94d)){if(_0x5ccd40[_0x58ae38(0xbfb)]){const _0xf43b1a=_0x39641b()[_0x58ae38(0x1f2c)](_0x5ccd40[_0x58ae38(0xbfb)],_0x58ae38(0x2232))?_0x58ae38(0x2986):'Custom';return _0xf43b1a+_0xdaab0;}else return _0x5ccd40[_0x58ae38(0x66a)];}return _0xdaab0;}function _0x32c5f3(_0x4d4f2c){const _0x32e412=_0xf0c727;if(_0x915137['pendingChanges']){const _0x50de12=_0x2298c4[_0x32e412(0x1551)]({'skipHide':!![]})['title'](_0x32e412(0xf74))[_0x32e412(0x1152)](_0x1f4a9c[_0x32e412(0x25cc)](_0x32e412(0x210c)))[_0x32e412(0x15ad)](_0x32e412(0xf74))['targetEvent'](_0x4d4f2c)['ok'](_0x1f4a9c[_0x32e412(0x25cc)](_0x32e412(0x2226)))[_0x32e412(0x696)](_0x1f4a9c['instant'](_0x32e412(0x2768)));_0x2298c4[_0x32e412(0xe27)](_0x50de12)[_0x32e412(0x1cb0)](function(){const _0x4d6674=_0x32e412;_0x2298c4[_0x4d6674(0x1426)]();});}else _0x2298c4[_0x32e412(0x1426)]();}}const _0xce9e36=_0x1afebc;;const _0x26a427=_0x5074a3['p']+_0x5537c6(0x1ec6);;_0x4f973e[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'$translate',_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x142b),'toasty',_0x5537c6(0x1774),_0x5537c6(0x44a),_0x5537c6(0x2199)];function _0x4f973e(_0x50e77f,_0x3221cc,_0x4ea7b8,_0x16a038,_0x5ad8f2,_0x3a1ffa,_0x11f4e5,_0x44b615,_0xc36977,_0x23355f,_0x1b3149,_0xfe1ece){const _0x305327=_0x5537c6,_0x5d75c4=this;_0x5d75c4['currentUser']=_0x23355f[_0x305327(0x21e8)](),_0x5d75c4[_0x305327(0x8a5)]=_0x3a1ffa,_0x5d75c4['setting']=_0x11f4e5,_0x5d75c4['passwordPattern']=_0x5d75c4['setting'][_0x305327(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5d75c4[_0x305327(0x2404)]=_0x3221cc['protocol']()+_0x305327(0x138b)+_0x3221cc[_0x305327(0x17d8)](),_0x5d75c4[_0x305327(0x44a)]=_0x1b3149||_0x50e77f['params'][_0x305327(0x44a)]||{},_0x5d75c4[_0x305327(0x2199)]=_0xfe1ece&&_0xfe1ece[_0x305327(0x184d)]==0x1?_0xfe1ece[_0x305327(0x2214)][0x0]:null,_0x5d75c4[_0x305327(0x1b1a)]=_0x23355f['parseCrudPermissions'](_0x5d75c4[_0x305327(0x2199)]?_0x5d75c4['userProfileSection'][_0x305327(0x1b1a)]:null),_0x5d75c4[_0x305327(0xf4c)]={},_0x5d75c4[_0x305327(0x8ec)]=_0x50e77f['params'][_0x305327(0x291e)]||0x0,_0x5d75c4['permissionsmanagedialog']=_0x326fc1,_0x5d75c4['clonedialog']=_0x5f42b4,_0x5d75c4[_0x305327(0x494)]=_0xc36977['info'],_0x5d75c4[_0x305327(0xb4d)]=_0x3e05ee,_0x5d75c4[_0x305327(0x2f3)]=_0xa87571;function _0x326fc1(_0x13e58f,_0x1185f3){const _0x22ac2c=_0x305327;_0x4ea7b8[_0x22ac2c(0xe27)]({'controller':_0x22ac2c(0xbc0),'controllerAs':'vm','templateUrl':_0xd8c0fc,'parent':angular[_0x22ac2c(0x1853)](_0x16a038[_0x22ac2c(0x1ed9)]),'targetEvent':_0x1185f3,'clickOutsideToClose':!![],'locals':{'userProfile':_0x13e58f,'userProfiles':_0x5d75c4[_0x22ac2c(0x1606)]?_0x5d75c4[_0x22ac2c(0x1606)][_0x22ac2c(0x2214)]:[],'crudPermissions':_0x5d75c4[_0x22ac2c(0x1b1a)]}});}function _0x5f42b4(_0x262bd9,_0x42f896){const _0x34391c=_0x305327;_0x4ea7b8[_0x34391c(0xe27)]({'controller':'UserProfilecloneController','controllerAs':'vm','templateUrl':_0x26a427,'parent':angular[_0x34391c(0x1853)](_0x16a038['body']),'targetEvent':_0x42f896,'clickOutsideToClose':!![],'locals':{'userProfile':_0x262bd9,'userProfiles':_0x5d75c4[_0x34391c(0x1606)]?_0x5d75c4[_0x34391c(0x1606)][_0x34391c(0x2214)]:[],'crudPermissions':_0x5d75c4['crudPermissions']}});}function _0x3e05ee(){const _0xd8b392=_0x305327;_0x50e77f['go']('app.staff.userProfiles',{},{'reload':_0xd8b392(0x11a9)});}function _0xa87571(){const _0x4b4c20=_0x305327;_0x44b615[_0x4b4c20(0x44a)][_0x4b4c20(0x687)]({'id':_0x5d75c4[_0x4b4c20(0x44a)]['id']},_0x5d75c4['userProfile'])[_0x4b4c20(0x1d77)][_0x4b4c20(0x1cb0)](function(){const _0x9a2c1c=_0x4b4c20;_0xc36977[_0x9a2c1c(0x829)]({'title':'UserProfile\x20updated!','msg':_0x5d75c4['userProfile'][_0x9a2c1c(0x16b6)]?_0x5d75c4['userProfile'][_0x9a2c1c(0x16b6)]+_0x9a2c1c(0x1068):''});})[_0x4b4c20(0x1c4)](function(_0x2c7ab6){const _0x1b13e2=_0x4b4c20;_0xc36977[_0x1b13e2(0x218e)]({'title':_0x2c7ab6[_0x1b13e2(0x291)]?_0x1b13e2(0xeb9)+_0x2c7ab6[_0x1b13e2(0x291)]+_0x1b13e2(0x1657)+_0x2c7ab6[_0x1b13e2(0xc22)]:_0x1b13e2(0x2987),'msg':_0x2c7ab6[_0x1b13e2(0x25c)]?JSON[_0x1b13e2(0x2701)](_0x2c7ab6[_0x1b13e2(0x25c)]):_0x2c7ab6[_0x1b13e2(0x147f)]()});});}}const _0x383c7a=_0x4f973e;;const _0x3a5030=_0x5074a3['p']+_0x5537c6(0x17f0);;_0x4d1afc[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),'$mdSidenav','$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),'userProfiles',_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),'msUtils','toasty','Auth','license','setting'];function _0x4d1afc(_0x17e3e0,_0x7d10b2,_0x31d14e,_0x5707c3,_0x3d576e,_0x40d20f,_0xada017,_0x3d09d3,_0x31ad0d,_0x56572e,_0x4b5d91,_0x30d1e9,_0x4d3177,_0x378638,_0x1f11a3,_0x3978be,_0x9b6b92){const _0x4fdff7=_0x5537c6,_0x287160=this;_0x287160['license']=_0x3978be,_0x287160[_0x4fdff7(0x9ca)]=_0x9b6b92,_0x287160[_0x4fdff7(0xe76)]=_0x1f11a3[_0x4fdff7(0x21e8)](),_0x287160['userProfiles']=_0x31ad0d||{'count':0x0,'rows':[]},_0x287160[_0x4fdff7(0x44a)]=_0x56572e,_0x287160[_0x4fdff7(0x2199)]=_0x4b5d91&&_0x4b5d91[_0x4fdff7(0x184d)]==0x1?_0x4b5d91[_0x4fdff7(0x2214)][0x0]:null,_0x287160[_0x4fdff7(0x1b1a)]=_0x1f11a3[_0x4fdff7(0x14ea)](_0x287160[_0x4fdff7(0x2199)]?_0x287160['userProfileSection'][_0x4fdff7(0x1b1a)]:null),_0x287160[_0x4fdff7(0xc83)]='userProfiles',_0x287160[_0x4fdff7(0x1d20)]='',_0x287160[_0x4fdff7(0x1cdf)]=null,_0x287160[_0x4fdff7(0x2307)]=[],_0x287160['query']={'fields':_0x4fdff7(0xc56),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x287160['arraycrudPermissions']=_0x39641b()[_0x4fdff7(0x2631)]([{'option':_0x4fdff7(0x16fb),'value':_0x4fdff7(0x377),'disabled':!![]},{'option':'Edit_permission','value':_0x4fdff7(0x1ff)},{'option':_0x4fdff7(0x29e),'value':'\x27d\x27'}],function(_0x38602a){const _0x3121e1=_0x4fdff7;return _0x39641b()[_0x3121e1(0x288f)](_0x38602a[_0x3121e1(0x327)],new RegExp('\x27','g'),'');});_0x287160[_0x4fdff7(0x1606)]&&_0x287160[_0x4fdff7(0x1606)][_0x4fdff7(0x184d)]>0x0&&_0x287160[_0x4fdff7(0x1606)]['rows'][_0x4fdff7(0xf90)](function(_0x22f132){const _0x10eab2=_0x4fdff7,_0x44c441=[];_0x22f132[_0x10eab2(0x1b1a)][_0x10eab2(0xf90)](function(_0x3ace2f){const _0x4c8b37=_0x10eab2;_0x44c441[_0x4c8b37(0x2785)](_0x287160[_0x4c8b37(0xf7a)][_0x3ace2f][_0x4c8b37(0x10cc)]);});const _0x34fd12=[];_0x44c441['forEach'](function(_0x21f457){const _0x2a5f95=_0x10eab2;_0x34fd12[_0x2a5f95(0x2785)](_0x3d09d3['instant'](_0x2a5f95(0xe52)+_0x21f457[_0x2a5f95(0x2335)]()));}),_0x22f132[_0x10eab2(0x1adf)]=_0x34fd12[_0x10eab2(0x1f66)](',\x20');});_0x287160[_0x4fdff7(0x235d)]=_0x332510,_0x287160[_0x4fdff7(0x388)]=_0x403585,_0x287160[_0x4fdff7(0x27fe)]=_0x55de55,_0x287160[_0x4fdff7(0x829)]=_0x15b9eb,_0x287160[_0x4fdff7(0x7c6)]=_0x499ffd,_0x287160[_0x4fdff7(0x1dee)]=_0x39b5ca,_0x287160[_0x4fdff7(0x28e4)]=_0x190fe7,_0x287160[_0x4fdff7(0x28c6)]=_0x396d55,_0x287160['deleteSelectedUserProfiles']=_0x514c40,_0x287160[_0x4fdff7(0x2669)]=_0x3d26e1,_0x287160['selectAllUserProfiles']=_0xed700b;function _0x332510(_0x553e44){const _0x41146a=_0x4fdff7;_0x31d14e['go'](_0x41146a(0x15f4),{'id':_0x553e44['id'],'userProfile':_0x553e44,'crudPermissions':_0x287160[_0x41146a(0x1b1a)]});}function _0x403585(_0x5859ae,_0x521d04){const _0x5e15df=_0x4fdff7;_0x3d576e[_0x5e15df(0xe27)]({'controller':_0x5e15df(0x4fb),'controllerAs':'vm','templateUrl':_0x26a427,'parent':angular[_0x5e15df(0x1853)](_0x40d20f[_0x5e15df(0x1ed9)]),'targetEvent':_0x521d04,'clickOutsideToClose':!![],'locals':{'userProfile':_0x5859ae,'userProfiles':_0x287160[_0x5e15df(0x1606)]?_0x287160[_0x5e15df(0x1606)][_0x5e15df(0x2214)]:[],'crudPermissions':_0x287160['crudPermissions']}});}function _0x55de55(_0x46451a,_0x504366){const _0x46e4b1=_0x4fdff7,_0xd3f60e=_0x3d576e[_0x46e4b1(0x1551)]()[_0x46e4b1(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x39641b()[_0x46e4b1(0xa75)](_0x46e4b1(0x44a))+'?')[_0x46e4b1(0x49e)](''+(_0x46451a[_0x46e4b1(0x16b6)]||'userProfile')+_0x46e4b1(0x1200)+_0x46e4b1(0x1b6))[_0x46e4b1(0x15ad)](_0x46e4b1(0x1c17))[_0x46e4b1(0x728)](_0x504366)['ok']('OK')[_0x46e4b1(0x696)](_0x46e4b1(0x24ba));_0x3d576e[_0x46e4b1(0xe27)](_0xd3f60e)[_0x46e4b1(0x1cb0)](function(){_0x190fe7(_0x46451a);},function(){const _0x2095c8=_0x46e4b1;console['log'](_0x2095c8(0x24ba));});}let _0x361e70=!![],_0x1f10a7=0x1;_0x17e3e0[_0x4fdff7(0x614)](_0x4fdff7(0x957),function(_0x1f21f3,_0x335fc3){const _0x11a757=_0x4fdff7;_0x361e70?_0xada017(function(){_0x361e70=![];}):(!_0x335fc3&&(_0x1f10a7=_0x287160[_0x11a757(0xae2)][_0x11a757(0x1c7b)]),_0x1f21f3!==_0x335fc3&&(_0x287160[_0x11a757(0xae2)]['page']=0x1),!_0x1f21f3&&(_0x287160[_0x11a757(0xae2)][_0x11a757(0x1c7b)]=_0x1f10a7),_0x287160[_0x11a757(0x7c6)]());});function _0x15b9eb(_0x47fdad){const _0xc242af=_0x4fdff7;_0x287160[_0xc242af(0x1606)]=_0x47fdad||{'count':0x0,'rows':[]};}function _0x499ffd(){const _0x25f823=_0x4fdff7;_0x287160['query']['offset']=(_0x287160[_0x25f823(0xae2)][_0x25f823(0x1c7b)]-0x1)*_0x287160[_0x25f823(0xae2)][_0x25f823(0x236)],_0x1f11a3['hasRole']('admin')?_0x287160[_0x25f823(0x2061)]=_0x30d1e9[_0x25f823(0x44a)][_0x25f823(0xbf7)](_0x287160['query'],_0x15b9eb)['$promise']:(_0x287160[_0x25f823(0xae2)]['id']=_0x287160['userProfile']['id'],_0x287160[_0x25f823(0xae2)]['section']=_0x25f823(0xb78),_0x287160[_0x25f823(0x2061)]=_0x30d1e9[_0x25f823(0x44a)][_0x25f823(0x1810)](_0x287160[_0x25f823(0xae2)],_0x15b9eb)[_0x25f823(0x1d77)]);}function _0x39b5ca(_0x1724bb,_0x49ae85){const _0x1a58ba=_0x4fdff7;_0x3d576e[_0x1a58ba(0xe27)]({'controller':_0x1a58ba(0xb73),'controllerAs':'vm','templateUrl':_0x3a5030,'parent':angular['element'](_0x40d20f[_0x1a58ba(0x1ed9)]),'targetEvent':_0x1724bb,'clickOutsideToClose':!![],'locals':{'userProfile':_0x49ae85,'userProfiles':_0x287160[_0x1a58ba(0x1606)][_0x1a58ba(0x2214)],'license':_0x287160['license'],'setting':_0x287160[_0x1a58ba(0x9ca)],'crudPermissions':_0x287160[_0x1a58ba(0x1b1a)]}});}function _0x190fe7(_0x1ef654){const _0x4ef737=_0x4fdff7;_0x30d1e9[_0x4ef737(0x44a)][_0x4ef737(0x111d)]({'id':_0x1ef654['id']})[_0x4ef737(0x1d77)][_0x4ef737(0x1cb0)](function(){const _0x5d81ac=_0x4ef737;_0x39641b()['remove'](_0x287160[_0x5d81ac(0x1606)][_0x5d81ac(0x2214)],{'id':_0x1ef654['id']}),_0x287160[_0x5d81ac(0x1606)]['count']-=0x1,!_0x287160[_0x5d81ac(0x1606)][_0x5d81ac(0x2214)][_0x5d81ac(0xfd0)]&&_0x287160[_0x5d81ac(0x7c6)](),_0x378638[_0x5d81ac(0x829)]({'title':_0x39641b()[_0x5d81ac(0xa75)](_0x5d81ac(0x2470))+'\x20deleted!','msg':_0x1ef654[_0x5d81ac(0x16b6)]?_0x1ef654[_0x5d81ac(0x16b6)]+_0x5d81ac(0x3f5):''});})[_0x4ef737(0x1c4)](function(_0x51ebe3){const _0x40043d=_0x4ef737;if(_0x51ebe3[_0x40043d(0x25c)]&&_0x51ebe3[_0x40043d(0x25c)][_0x40043d(0x1a7c)]&&_0x51ebe3['data']['errors']['length']){_0x287160['errors']=_0x51ebe3[_0x40043d(0x25c)][_0x40043d(0x1a7c)]||[{'message':_0x51ebe3[_0x40043d(0x147f)](),'type':_0x40043d(0x1c47)}];for(let _0x200245=0x0;_0x200245<_0x51ebe3[_0x40043d(0x25c)][_0x40043d(0x1a7c)][_0x40043d(0xfd0)];_0x200245++){_0x378638[_0x40043d(0x218e)]({'title':_0x51ebe3['data'][_0x40043d(0x1a7c)][_0x200245][_0x40043d(0x66a)],'msg':_0x51ebe3[_0x40043d(0x25c)][_0x40043d(0x1a7c)][_0x200245]['message']});}}else _0x378638['error']({'title':_0x51ebe3[_0x40043d(0x291)]?_0x40043d(0xeb9)+_0x51ebe3[_0x40043d(0x291)]+_0x40043d(0x1657)+_0x51ebe3[_0x40043d(0xc22)]:'SYSTEM:DELETEuserProfile','msg':_0x51ebe3['data']?JSON[_0x40043d(0x2701)](_0x51ebe3[_0x40043d(0x25c)][_0x40043d(0x155e)]):_0x51ebe3[_0x40043d(0x155e)]||_0x51ebe3[_0x40043d(0x147f)]()});});}function _0x396d55(){const _0x5d9718=_0x4fdff7,_0x43d3d3=angular[_0x5d9718(0x17fe)](_0x287160[_0x5d9718(0x2307)]);return _0x287160[_0x5d9718(0x2307)]=[],_0x43d3d3;}function _0x514c40(_0x5a730e){const _0x2141c0=_0x4fdff7,_0xd04e14=_0x3d576e[_0x2141c0(0x1551)]()['title'](_0x2141c0(0x17a0))['htmlContent'](_0x2141c0(0x204d)+_0x287160[_0x2141c0(0x2307)][_0x2141c0(0xfd0)]+_0x2141c0(0x1d6c)+_0x2141c0(0x1b6))[_0x2141c0(0x15ad)](_0x2141c0(0x1527))[_0x2141c0(0x728)](_0x5a730e)['ok']('OK')[_0x2141c0(0x696)](_0x2141c0(0x24ba));_0x3d576e[_0x2141c0(0xe27)](_0xd04e14)[_0x2141c0(0x1cb0)](function(){const _0x29b1fb=_0x2141c0;_0x287160['selectedUserProfiles'][_0x29b1fb(0xf90)](function(_0x23cea4){_0x190fe7(_0x23cea4);}),_0x287160[_0x29b1fb(0x2307)]=[];});}function _0x3d26e1(){const _0x499d29=_0x4fdff7;_0x287160[_0x499d29(0x2307)]=[];}function _0xed700b(){const _0x3d8636=_0x4fdff7;_0x287160[_0x3d8636(0x2307)]=_0x287160[_0x3d8636(0x1606)][_0x3d8636(0x2214)];}}const _0x4d2faf=_0x4d1afc;;_0x727282[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x406),'$location','$mdDialog','$q','$translate','toasty',_0x5537c6(0x1e30),_0x5537c6(0xebe),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x727282(_0x5906c9,_0x3e43a1,_0x10a66f,_0x2ef71,_0x44760f,_0x1f8bb8,_0x583246,_0x4d404d,_0x57c2f3,_0x35cb8b,_0x2f1c3f,_0x1f3d79,_0x1bc90f,_0x2ba171){const _0x37f2ab=_0x5537c6,_0x2b425c=this;_0x2b425c[_0x37f2ab(0xe76)]=_0x2f1c3f[_0x37f2ab(0x21e8)](),_0x2b425c[_0x37f2ab(0x1a7c)]=[],_0x2b425c[_0x37f2ab(0x9ca)]=_0x1bc90f,_0x2b425c[_0x37f2ab(0x8a5)]=_0x1f3d79,_0x2b425c['crudPermissions']=_0x2ba171,_0x2b425c[_0x37f2ab(0xf4c)]={},_0x2b425c[_0x37f2ab(0x1b0c)]=_0x2b425c[_0x37f2ab(0x9ca)]&&_0x2b425c[_0x37f2ab(0x9ca)][_0x37f2ab(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2b425c[_0x37f2ab(0x1386)]='STAFF.EDIT_USER',_0x2b425c[_0x37f2ab(0xebe)]=angular[_0x37f2ab(0x17fe)](_0x57c2f3),_0x2b425c[_0x37f2ab(0x1e30)]=_0x4d404d,_0x2b425c['newUser']=![];!_0x2b425c[_0x37f2ab(0xebe)]&&(_0x2b425c[_0x37f2ab(0xebe)]={'role':'user','autointernal':!![],'context':_0x37f2ab(0x156f)},_0x2b425c[_0x37f2ab(0x1386)]='STAFF.NEW_USER',_0x2b425c['newUser']=!![]);_0x2b425c[_0x37f2ab(0x169e)]=_0x1f37f5,_0x2b425c[_0x37f2ab(0x1af5)]=_0x98aa3d,_0x2b425c[_0x37f2ab(0x2683)]=_0x214d88,_0x2b425c[_0x37f2ab(0x2c4)]=_0xc19241,_0x2b425c[_0x37f2ab(0xda0)]=_0x127ab3,_0x35cb8b[_0x37f2ab(0x44a)][_0x37f2ab(0xbf7)]({'fields':_0x37f2ab(0x43c),'sort':'name'})['$promise'][_0x37f2ab(0x1cb0)](function(_0x235537){const _0x1a6634=_0x37f2ab;_0x2b425c[_0x1a6634(0x1606)]=_0x235537[_0x1a6634(0x2214)]||[];})[_0x37f2ab(0x1c4)](function(_0x169e15){const _0x47c5e0=_0x37f2ab;_0x583246[_0x47c5e0(0x218e)]({'title':_0x169e15[_0x47c5e0(0x291)]?_0x47c5e0(0xeb9)+_0x169e15[_0x47c5e0(0x291)]+'\x20-\x20'+_0x169e15['statusText']:'SYSTEM:GET_USERPROFILES','msg':_0x169e15[_0x47c5e0(0x25c)]?JSON[_0x47c5e0(0x2701)](_0x169e15[_0x47c5e0(0x25c)]):_0x169e15[_0x47c5e0(0x147f)]()});});function _0x1f37f5(){const _0x548704=_0x37f2ab;_0x2b425c[_0x548704(0x1a7c)]=[],_0x35cb8b[_0x548704(0xebe)]['save'](_0x2b425c[_0x548704(0xebe)])[_0x548704(0x1d77)][_0x548704(0x1cb0)](function(_0x8e6338){const _0x33725a=_0x548704;_0x2b425c[_0x33725a(0x1e30)]['unshift'](_0x8e6338['toJSON']()),_0x583246[_0x33725a(0x829)]({'title':'User\x20properly\x20created','msg':_0x2b425c[_0x33725a(0xebe)][_0x33725a(0x16b6)]?_0x2b425c[_0x33725a(0xebe)][_0x33725a(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x127ab3(_0x8e6338);})[_0x548704(0x1c4)](function(_0x425478){const _0x1e1d4e=_0x548704;if(_0x425478[_0x1e1d4e(0x25c)]&&_0x425478[_0x1e1d4e(0x25c)][_0x1e1d4e(0x1a7c)]&&_0x425478['data']['errors'][_0x1e1d4e(0xfd0)]){_0x2b425c[_0x1e1d4e(0x1a7c)]=_0x425478[_0x1e1d4e(0x25c)][_0x1e1d4e(0x1a7c)]||[{'message':_0x425478[_0x1e1d4e(0x147f)](),'type':_0x1e1d4e(0x102d)}];for(let _0x38eaa0=0x0;_0x38eaa0<_0x425478[_0x1e1d4e(0x25c)][_0x1e1d4e(0x1a7c)][_0x1e1d4e(0xfd0)];_0x38eaa0+=0x1){_0x583246[_0x1e1d4e(0x218e)]({'title':_0x425478['data']['errors'][_0x38eaa0][_0x1e1d4e(0x66a)],'msg':_0x425478[_0x1e1d4e(0x25c)][_0x1e1d4e(0x1a7c)][_0x38eaa0][_0x1e1d4e(0x155e)]});}}else _0x583246[_0x1e1d4e(0x218e)]({'title':_0x425478['status']?'API:'+_0x425478['status']+_0x1e1d4e(0x1657)+_0x425478[_0x1e1d4e(0xc22)]:_0x1e1d4e(0x102d),'msg':_0x425478[_0x1e1d4e(0x25c)]?JSON[_0x1e1d4e(0x2701)](_0x425478[_0x1e1d4e(0x25c)][_0x1e1d4e(0x155e)]):_0x425478[_0x1e1d4e(0x147f)]()});});}function _0x98aa3d(){const _0x4f0874=_0x37f2ab;_0x2b425c[_0x4f0874(0x1a7c)]=[],_0x35cb8b[_0x4f0874(0xebe)][_0x4f0874(0x687)]({'id':_0x2b425c[_0x4f0874(0xebe)]['id']},_0x2b425c[_0x4f0874(0xebe)])[_0x4f0874(0x1d77)][_0x4f0874(0x1cb0)](function(_0x3579b4){const _0x10e7f3=_0x4f0874,_0x1f7dd4=_0x39641b()[_0x10e7f3(0x13b4)](_0x2b425c[_0x10e7f3(0x1e30)],{'id':_0x3579b4['id']});_0x1f7dd4&&_0x39641b()['merge'](_0x1f7dd4,_0x39641b()[_0x10e7f3(0x169b)](_0x3579b4[_0x10e7f3(0x19b2)](),_0x39641b()[_0x10e7f3(0x1be5)](_0x1f7dd4))),_0x583246[_0x10e7f3(0x829)]({'title':_0x10e7f3(0xbea),'msg':_0x2b425c['user'][_0x10e7f3(0x16b6)]?_0x2b425c[_0x10e7f3(0xebe)]['name']+_0x10e7f3(0xedb):''}),_0x127ab3(_0x3579b4);})['catch'](function(_0x7fa895){const _0x226276=_0x4f0874;if(_0x7fa895[_0x226276(0x25c)]&&_0x7fa895['data'][_0x226276(0x1a7c)]&&_0x7fa895[_0x226276(0x25c)][_0x226276(0x1a7c)][_0x226276(0xfd0)]){_0x2b425c['errors']=_0x7fa895[_0x226276(0x25c)][_0x226276(0x1a7c)]||[{'message':_0x7fa895[_0x226276(0x147f)](),'type':_0x226276(0x498)}];for(let _0x39e3a9=0x0;_0x39e3a9<_0x7fa895[_0x226276(0x25c)][_0x226276(0x1a7c)][_0x226276(0xfd0)];_0x39e3a9++){_0x583246[_0x226276(0x218e)]({'title':_0x7fa895['data'][_0x226276(0x1a7c)][_0x39e3a9][_0x226276(0x66a)],'msg':_0x7fa895[_0x226276(0x25c)][_0x226276(0x1a7c)][_0x39e3a9][_0x226276(0x155e)]});}}else _0x583246[_0x226276(0x218e)]({'title':_0x7fa895[_0x226276(0x291)]?_0x226276(0xeb9)+_0x7fa895[_0x226276(0x291)]+_0x226276(0x1657)+_0x7fa895[_0x226276(0xc22)]:'api.user.update','msg':_0x7fa895[_0x226276(0x25c)]?JSON[_0x226276(0x2701)](_0x7fa895['data']['message']):_0x7fa895['toString']()});});}function _0x214d88(_0x1fccdd){const _0x3ab13d=_0x37f2ab,_0x20e186=_0x2f1c3f['getCurrentUser']();if(_0x20e186['id']===_0x2b425c[_0x3ab13d(0xebe)]['id'])return _0x583246['error']({'title':_0x3ab13d(0xffe),'msg':_0x3ab13d(0x12b5)});_0x2b425c[_0x3ab13d(0x1a7c)]=[];const _0x1d5fd5=_0x2ef71[_0x3ab13d(0x1551)]()[_0x3ab13d(0x1386)]('Are\x20you\x20sure?')[_0x3ab13d(0x862)](_0x3ab13d(0x20b0))[_0x3ab13d(0x15ad)](_0x3ab13d(0x171f))['ok']('Delete')[_0x3ab13d(0x696)](_0x3ab13d(0xde1))['targetEvent'](_0x1fccdd);_0x2ef71[_0x3ab13d(0xe27)](_0x1d5fd5)['then'](function(){const _0x36b837=_0x3ab13d;_0x35cb8b[_0x36b837(0xebe)][_0x36b837(0x111d)]({'id':_0x2b425c[_0x36b837(0xebe)]['id']})[_0x36b837(0x1d77)][_0x36b837(0x1cb0)](function(){const _0x3799a3=_0x36b837;_0x39641b()[_0x3799a3(0x152a)](_0x2b425c[_0x3799a3(0x1e30)],{'id':_0x2b425c['user']['id']}),_0x583246[_0x3799a3(0x829)]({'title':'User\x20properly\x20deleted!','msg':(_0x2b425c[_0x3799a3(0xebe)][_0x3799a3(0x16b6)]||'user')+_0x3799a3(0x3f5)}),_0x127ab3(_0x2b425c['user']);})[_0x36b837(0x1c4)](function(_0x4c8a41){const _0x2d4b0b=_0x36b837;if(_0x4c8a41['data']&&_0x4c8a41[_0x2d4b0b(0x25c)][_0x2d4b0b(0x1a7c)]&&_0x4c8a41[_0x2d4b0b(0x25c)][_0x2d4b0b(0x1a7c)]['length']){_0x2b425c[_0x2d4b0b(0x1a7c)]=_0x4c8a41['data'][_0x2d4b0b(0x1a7c)]||[{'message':_0x4c8a41[_0x2d4b0b(0x147f)](),'type':_0x2d4b0b(0x180a)}];for(let _0x2eb4dd=0x0;_0x2eb4dd<_0x4c8a41[_0x2d4b0b(0x25c)][_0x2d4b0b(0x1a7c)][_0x2d4b0b(0xfd0)];_0x2eb4dd++){_0x583246['error']({'title':_0x4c8a41['data'][_0x2d4b0b(0x1a7c)][_0x2eb4dd]['type'],'msg':_0x4c8a41[_0x2d4b0b(0x25c)]['errors'][_0x2eb4dd]['message']});}}else _0x583246['error']({'title':_0x4c8a41[_0x2d4b0b(0x291)]?_0x2d4b0b(0xeb9)+_0x4c8a41[_0x2d4b0b(0x291)]+'\x20-\x20'+_0x4c8a41['statusText']:'api.user.delete','msg':_0x4c8a41[_0x2d4b0b(0x25c)]?JSON[_0x2d4b0b(0x2701)](_0x4c8a41[_0x2d4b0b(0x25c)]['message']):_0x4c8a41[_0x2d4b0b(0x155e)]||_0x4c8a41[_0x2d4b0b(0x147f)]()});});},function(){});}function _0xc19241(_0x51c448){return _0x51c448===null?undefined:new Date(_0x51c448);}function _0x127ab3(_0x45565b){_0x2ef71['hide'](_0x45565b);}}const _0x34bb2d=_0x727282;;_0x324a8c['$inject']=['$mdDialog',_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0xebe),_0x5537c6(0x1774)];function _0x324a8c(_0x99b16d,_0x1dce8e,_0x26818e,_0x28aa0c,_0x4bacf5){const _0xb8c87d=_0x5537c6,_0x5c806a=this;_0x5c806a[_0xb8c87d(0xe76)]=_0x4bacf5['getCurrentUser'](),_0x5c806a[_0xb8c87d(0x1a7c)]=[],_0x5c806a[_0xb8c87d(0xebe)]=_0x28aa0c,_0x5c806a[_0xb8c87d(0xce0)]=_0x2166c3,_0x5c806a[_0xb8c87d(0x16f5)]=_0x9d3947,_0x5c806a['closeDialog']=_0x56b9b5;function _0x2166c3(){const _0x1d5220=_0xb8c87d;_0x5c806a[_0x1d5220(0x1a7c)]=[],_0x26818e[_0x1d5220(0xebe)]['createApiKey']({'id':_0x5c806a['user']['id']})['$promise'][_0x1d5220(0x1cb0)](function(_0x1829de){const _0x3908eb=_0x1d5220;_0x5c806a[_0x3908eb(0xebe)]['apiKey']=_0x1829de[_0x3908eb(0x2a7)]||'N/A',_0x1dce8e[_0x3908eb(0x829)]({'title':_0x3908eb(0xfed)}),_0x56b9b5();})[_0x1d5220(0x1c4)](function(_0x368447){const _0x4080e7=_0x1d5220;_0x1dce8e[_0x4080e7(0x218e)]({'title':_0x368447[_0x4080e7(0x291)]?'API:'+_0x368447[_0x4080e7(0x291)]+'\x20-\x20'+_0x368447['statusText']:_0x4080e7(0x209b),'msg':_0x368447[_0x4080e7(0x25c)]?JSON['stringify'](_0x368447[_0x4080e7(0x25c)][_0x4080e7(0x155e)]):_0x368447[_0x4080e7(0x147f)]()}),_0x5c806a[_0x4080e7(0x1a7c)]=_0x368447[_0x4080e7(0x25c)]['errors']||[{'message':_0x368447[_0x4080e7(0x147f)](),'type':_0x4080e7(0x209b)}];});}function _0x9d3947(){const _0x385a87=_0xb8c87d;_0x5c806a[_0x385a87(0x1a7c)]=[],_0x26818e[_0x385a87(0xebe)][_0x385a87(0x16f5)]({'id':_0x5c806a[_0x385a87(0xebe)]['id']})[_0x385a87(0x1d77)]['then'](function(){const _0x20c263=_0x385a87;_0x5c806a[_0x20c263(0xebe)][_0x20c263(0x17d7)]=_0x20c263(0x145b),_0x1dce8e[_0x20c263(0x829)]({'title':_0x20c263(0x1f8b)}),_0x56b9b5();})['catch'](function(_0x36cc49){const _0x5d05ad=_0x385a87;_0x1dce8e['error']({'title':_0x36cc49['status']?_0x5d05ad(0xeb9)+_0x36cc49[_0x5d05ad(0x291)]+_0x5d05ad(0x1657)+_0x36cc49['statusText']:_0x5d05ad(0x19e1),'msg':_0x36cc49[_0x5d05ad(0x25c)]?JSON[_0x5d05ad(0x2701)](_0x36cc49[_0x5d05ad(0x25c)][_0x5d05ad(0x155e)]):_0x36cc49[_0x5d05ad(0x147f)]()}),_0x5c806a[_0x5d05ad(0x1a7c)]=_0x36cc49[_0x5d05ad(0x25c)]['errors']||[{'message':_0x36cc49[_0x5d05ad(0x147f)](),'type':_0x5d05ad(0x19e1)}];});}function _0x56b9b5(){_0x99b16d['hide']();}}const _0x4d8e54=_0x324a8c;;_0x421ebd['$inject']=[_0x5537c6(0x173),'toasty'];function _0x421ebd(_0xbb27bf,_0x34e180){const _0x7630d8=_0x5537c6,_0x4174b4=this,_0x1807a9=0x8,_0x11bea9=_0x1807a9*0x400*0x400;_0x4174b4[_0x7630d8(0xebe)]={},_0x4174b4[_0x7630d8(0x1b1a)],_0x4174b4[_0x7630d8(0x15e8)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x11bea9,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x4174b4[_0x7630d8(0x125a)]={'flow':{}},_0x4174b4['dropping']=![],_0x4174b4['fileAdded']=_0x37cc9d,_0x4174b4[_0x7630d8(0x1c97)]=_0x492df0,_0x4174b4[_0x7630d8(0x200f)]=_0x29f992,_0x4174b4['init']=_0x1c625f;function _0x1c625f(_0x3f60a3,_0x3cd39b){const _0x1d4b0f=_0x7630d8;_0x4174b4[_0x1d4b0f(0xebe)]=angular[_0x1d4b0f(0x17fe)](_0x3f60a3),_0x4174b4[_0x1d4b0f(0x1b1a)]=typeof _0x3cd39b!==_0x1d4b0f(0x16b5)?_0x3cd39b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4174b4[_0x1d4b0f(0x15e8)][_0x1d4b0f(0x251d)]=_0x1d4b0f(0x254)+_0x4174b4['user']['id']+'/avatar',_0x4174b4[_0x1d4b0f(0xebe)][_0x1d4b0f(0x105c)]=[];}function _0x37cc9d(_0x545967){const _0x450476=_0x7630d8,_0x5b38a0=[_0x450476(0x844),_0x450476(0xb97)];if(!_0x39641b()['includes'](_0x5b38a0,_0x545967['getExtension']()))return _0x34e180['error']({'title':_0x450476(0x14d4)+_0x545967[_0x450476(0x1cb1)](),'msg':_0x450476(0x4d4)+_0x5b38a0['join']()}),![];if(_0x545967[_0x450476(0x1813)]>_0x11bea9)return _0x34e180[_0x450476(0x218e)]({'title':_0x450476(0x2749),'msg':_0x450476(0xe61)+_0x1807a9+'MB'}),![];const _0x63b054={'id':_0x545967['uniqueIdentifier'],'file':_0x545967,'type':'uploading'};return _0x4174b4['user'][_0x450476(0x105c)]['unshift'](_0x63b054),!![];}function _0x492df0(){const _0x21f003=_0x7630d8;_0x4174b4[_0x21f003(0x125a)][_0x21f003(0xacf)]['opts'][_0x21f003(0x5e7)]={'X-Requested-With':_0x21f003(0x2711),'Authorization':_0x21f003(0x1923)+_0xbb27bf[_0x21f003(0xbf7)](_0x21f003(0x1b26))},_0x4174b4['ngFlow'][_0x21f003(0xacf)][_0x21f003(0x1c97)]();}function _0x29f992(_0x5d4cac){const _0x2c3525=_0x7630d8;angular[_0x2c3525(0xf90)](_0x4174b4[_0x2c3525(0xebe)][_0x2c3525(0x105c)],function(_0x480218){const _0x10c829=_0x2c3525;if(_0x480218['id']===_0x5d4cac['uniqueIdentifier']){const _0xba3a3c=new FileReader();_0xba3a3c[_0x10c829(0x245d)](_0x480218[_0x10c829(0x1ac4)][_0x10c829(0x1ac4)]),_0xba3a3c[_0x10c829(0x198d)]=function(_0x195fff){const _0x9bd9a0=_0x10c829;_0x480218[_0x9bd9a0(0x135b)]=_0x195fff[_0x9bd9a0(0x251d)][_0x9bd9a0(0x1205)];},_0x480218[_0x10c829(0x66a)]='image';}});}}const _0x37f8aa=_0x421ebd;;_0x363589['$inject']=['$scope',_0x5537c6(0xcb9),_0x5537c6(0x9bf),'api',_0x5537c6(0xebe),'setting',_0x5537c6(0x1774)];function _0x363589(_0x372492,_0x165e51,_0x50f77a,_0x515fb7,_0x37a0b3,_0x5a5402,_0x440f89){const _0x116961=_0x5537c6,_0x55aaf3=this;_0x55aaf3['currentUser']=_0x440f89[_0x116961(0x21e8)](),_0x55aaf3[_0x116961(0x1a7c)]=[],_0x55aaf3[_0x116961(0x9ca)]=_0x5a5402,_0x55aaf3[_0x116961(0x1b0c)]=_0x55aaf3[_0x116961(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x55aaf3['user']=_0x37a0b3,_0x55aaf3[_0x116961(0x381)]='',_0x55aaf3[_0x116961(0xf0f)]='',_0x55aaf3['savePassword']=_0x424691,_0x55aaf3['closeDialog']=_0x1dd361,_0x372492[_0x116961(0x614)](_0x116961(0x81a),function(_0x576c47){const _0x4998be=_0x116961;!_0x39641b()[_0x4998be(0x958)](_0x55aaf3[_0x4998be(0xf0f)])&&(_0x576c47===_0x55aaf3[_0x4998be(0xf0f)]?_0x372492[_0x4998be(0x22cd)][_0x4998be(0x381)]['$setValidity']('oldPasswordMatch',![]):_0x372492[_0x4998be(0x22cd)][_0x4998be(0x381)][_0x4998be(0x92f)](_0x4998be(0x1e13),!![]));});function _0x424691(){const _0x25fb7a=_0x116961;_0x55aaf3[_0x25fb7a(0x1a7c)]=[];const _0x30ade3={'id':_0x55aaf3[_0x25fb7a(0xebe)]['id'],'newPassword':_0x55aaf3['password']};_0x55aaf3['currentUser']['id']==_0x55aaf3[_0x25fb7a(0xebe)]['id']&&(_0x30ade3[_0x25fb7a(0xf0f)]=_0x55aaf3[_0x25fb7a(0xf0f)]),_0x515fb7[_0x25fb7a(0xebe)][_0x25fb7a(0xcad)](_0x30ade3)[_0x25fb7a(0x1d77)]['then'](function(){const _0x5eb991=_0x25fb7a;_0x50f77a[_0x5eb991(0x829)]({'title':_0x5eb991(0x203b)}),_0x1dd361();})['catch'](function(_0x1773e4){const _0x328ea3=_0x25fb7a;_0x50f77a[_0x328ea3(0x218e)]({'title':_0x1773e4['status']?'API:'+_0x1773e4['status']+'\x20-\x20'+_0x1773e4[_0x328ea3(0xc22)]:_0x328ea3(0x102d),'msg':_0x1773e4[_0x328ea3(0x25c)]?JSON[_0x328ea3(0x2701)](_0x1773e4[_0x328ea3(0x25c)]['message']):_0x1773e4[_0x328ea3(0x147f)]()}),_0x55aaf3[_0x328ea3(0x1a7c)]=_0x1773e4['data']['errors']||[{'message':_0x1773e4['toString'](),'type':_0x328ea3(0xd28)}];});}function _0x1dd361(){_0x165e51['hide']();}}const _0x4771b3=_0x363589;;const _0xffdbc7=_0x5074a3['p']+'src/js/modules/main/apps/staff/views/users/edit/apikeymanager/apikeymanager.html/apikeymanager.html';;const _0x481312=_0x5074a3['p']+_0x5537c6(0x1844);;_0x3dc2f0[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'$translate',_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0xebe),_0x5537c6(0x2199)];function _0x3dc2f0(_0x1203c3,_0x29ef57,_0x3fc696,_0x44e276,_0x366864,_0x4978b2,_0x24a420,_0x35b662,_0x341fa3,_0x4e36bb,_0x59b0aa,_0x2f2a94){const _0x4de033=_0x5537c6,_0x11d856=this;_0x11d856[_0x4de033(0xe76)]=_0x4e36bb[_0x4de033(0x21e8)](),_0x11d856[_0x4de033(0x8a5)]=_0x4978b2,_0x11d856[_0x4de033(0x9ca)]=_0x24a420,_0x11d856['passwordPattern']=_0x11d856[_0x4de033(0x9ca)][_0x4de033(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x11d856[_0x4de033(0x2404)]=_0x29ef57[_0x4de033(0x2276)]()+'://'+_0x29ef57[_0x4de033(0x17d8)](),_0x11d856['user']=_0x59b0aa||_0x1203c3[_0x4de033(0x1dfe)]['user']||{},_0x11d856[_0x4de033(0x2199)]=_0x2f2a94&&_0x2f2a94['count']==0x1?_0x2f2a94[_0x4de033(0x2214)][0x0]:null,_0x11d856[_0x4de033(0x1b1a)]=_0x4e36bb[_0x4de033(0x14ea)](_0x11d856[_0x4de033(0x2199)]?_0x11d856[_0x4de033(0x2199)]['crudPermissions']:null),_0x11d856[_0x4de033(0xf4c)]={},_0x11d856[_0x4de033(0x8ec)]=_0x1203c3[_0x4de033(0x1dfe)][_0x4de033(0x291e)]||0x0,_0x11d856[_0x4de033(0x2489)]=_0x30b134,_0x11d856[_0x4de033(0x28aa)]=_0x2ca936,_0x11d856[_0x4de033(0x494)]=_0x341fa3[_0x4de033(0x28c7)],_0x11d856[_0x4de033(0x265f)]=_0x114799,_0x11d856[_0x4de033(0x1af5)]=_0x3a10fd,_0x35b662[_0x4de033(0x1da5)][_0x4de033(0xbf7)]({'fields':_0x4de033(0x43c),'sort':_0x4de033(0x16b6)})[_0x4de033(0x1d77)][_0x4de033(0x1cb0)](function(_0x2cde3c){const _0x44a153=_0x4de033;_0x11d856[_0x44a153(0x14f6)]=_0x2cde3c['rows']||[];})[_0x4de033(0x1c4)](function(_0x375179){const _0x556876=_0x4de033;_0x341fa3[_0x556876(0x218e)]({'title':_0x375179[_0x556876(0x291)]?'API:'+_0x375179[_0x556876(0x291)]+_0x556876(0x1657)+_0x375179[_0x556876(0xc22)]:'SYSTEM:GET_CONTEXTS','msg':_0x375179[_0x556876(0x25c)]?JSON[_0x556876(0x2701)](_0x375179[_0x556876(0x25c)]):_0x375179['toString']()});}),_0x35b662[_0x4de033(0x44a)]['get']({'fields':_0x4de033(0x43c),'sort':'name'})['$promise'][_0x4de033(0x1cb0)](function(_0x5760fb){const _0x5a058f=_0x4de033;_0x11d856[_0x5a058f(0x1606)]=_0x5760fb[_0x5a058f(0x2214)]||[];})[_0x4de033(0x1c4)](function(_0x5b825e){const _0x42cd5c=_0x4de033;_0x341fa3[_0x42cd5c(0x218e)]({'title':_0x5b825e[_0x42cd5c(0x291)]?'API:'+_0x5b825e[_0x42cd5c(0x291)]+_0x42cd5c(0x1657)+_0x5b825e['statusText']:_0x42cd5c(0x2f2),'msg':_0x5b825e['data']?JSON[_0x42cd5c(0x2701)](_0x5b825e[_0x42cd5c(0x25c)]):_0x5b825e[_0x42cd5c(0x147f)]()});}),_0x35b662[_0x4de033(0xebe)]['getApiKey']({'id':_0x11d856['user']['id']})[_0x4de033(0x1d77)]['then'](function(_0x4f0fe4){const _0x81042b=_0x4de033;_0x11d856[_0x81042b(0xebe)]['apiKey']=_0x4f0fe4[_0x81042b(0x2a7)]?_0x4f0fe4['api_key']:'N/A';})['catch'](function(_0x25e7ef){const _0x205ec3=_0x4de033;_0x341fa3[_0x205ec3(0x218e)]({'title':_0x25e7ef[_0x205ec3(0x291)]?'API:'+_0x25e7ef[_0x205ec3(0x291)]+_0x205ec3(0x1657)+_0x25e7ef[_0x205ec3(0xc22)]:_0x205ec3(0x1bad),'msg':_0x25e7ef[_0x205ec3(0x25c)]?JSON[_0x205ec3(0x2701)](_0x25e7ef[_0x205ec3(0x25c)]):_0x25e7ef[_0x205ec3(0x147f)]()});});function _0x30b134(_0x2ba18d,_0x37baad){const _0x41be6c=_0x4de033;_0x3fc696[_0x41be6c(0xe27)]({'controller':_0x41be6c(0x1c92),'controllerAs':'vm','templateUrl':_0xffdbc7,'parent':angular[_0x41be6c(0x1853)](_0x44e276[_0x41be6c(0x1ed9)]),'targetEvent':_0x37baad,'clickOutsideToClose':!![],'locals':{'user':_0x2ba18d,'users':_0x11d856[_0x41be6c(0x1e30)]?_0x11d856[_0x41be6c(0x1e30)][_0x41be6c(0x2214)]:[],'crudPermissions':_0x11d856[_0x41be6c(0x1b1a)]}});}function _0x2ca936(_0x7a0951,_0x2be654){const _0xd58984=_0x4de033;_0x3fc696[_0xd58984(0xe27)]({'controller':_0xd58984(0x26d5),'controllerAs':'vm','templateUrl':_0x481312,'parent':angular[_0xd58984(0x1853)](_0x44e276[_0xd58984(0x1ed9)]),'targetEvent':_0x2be654,'clickOutsideToClose':!![],'locals':{'user':_0x7a0951,'setting':_0x24a420,'users':_0x11d856['users']?_0x11d856[_0xd58984(0x1e30)][_0xd58984(0x2214)]:[],'crudPermissions':_0x11d856['crudPermissions']}});}function _0x114799(){const _0x285d2f=_0x4de033;_0x1203c3['go'](_0x285d2f(0x2416),{},{'reload':_0x285d2f(0x2416)});}function _0x3a10fd(){const _0x498a42=_0x4de033;_0x11d856[_0x498a42(0xebe)]=_0x39641b()[_0x498a42(0x1bd8)](_0x11d856['user'],_0x498a42(0x70a)),_0x35b662[_0x498a42(0xebe)]['update']({'id':_0x11d856[_0x498a42(0xebe)]['id']},_0x11d856['user'])[_0x498a42(0x1d77)]['then'](function(){const _0x2a3be5=_0x498a42;_0x341fa3['success']({'title':_0x2a3be5(0x1d53),'msg':_0x11d856['user']['name']?_0x11d856['user'][_0x2a3be5(0x16b6)]+_0x2a3be5(0x1068):''});})[_0x498a42(0x1c4)](function(_0x1dab05){const _0x465706=_0x498a42;_0x341fa3[_0x465706(0x218e)]({'title':_0x1dab05[_0x465706(0x291)]?_0x465706(0xeb9)+_0x1dab05['status']+_0x465706(0x1657)+_0x1dab05[_0x465706(0xc22)]:_0x465706(0x12ba),'msg':_0x1dab05['data']?JSON[_0x465706(0x2701)](_0x1dab05['data']):_0x1dab05['toString']()});});}}const _0x25a2da=_0x3dc2f0;;const _0xe654fa=_0x5074a3['p']+_0x5537c6(0x293c);;_0x2f0134[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'$timeout',_0x5537c6(0x1ae),_0x5537c6(0x1e30),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),'Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x2f0134(_0x177cb5,_0x96bb27,_0x2b0dd4,_0x46ac62,_0x50e08d,_0x4741e7,_0x346ceb,_0x50d42b,_0x5d9d13,_0x28ae09,_0x57230a,_0x1b78bb,_0x1d472c,_0x1351ad,_0x534650,_0x2fd292,_0x51ddc7){const _0x573e4f=_0x5537c6,_0x4a69c4=this;_0x4a69c4[_0x573e4f(0x8a5)]=_0x2fd292,_0x4a69c4['setting']=_0x51ddc7,_0x4a69c4[_0x573e4f(0xe76)]=_0x534650[_0x573e4f(0x21e8)](),_0x4a69c4[_0x573e4f(0x1e30)]=_0x5d9d13||{'count':0x0,'rows':[]},_0x4a69c4[_0x573e4f(0x44a)]=_0x28ae09,_0x4a69c4['userProfileSection']=_0x57230a&&_0x57230a['count']==0x1?_0x57230a[_0x573e4f(0x2214)][0x0]:null,_0x4a69c4[_0x573e4f(0x1b1a)]=_0x534650[_0x573e4f(0x14ea)](_0x4a69c4[_0x573e4f(0x2199)]?_0x4a69c4[_0x573e4f(0x2199)][_0x573e4f(0x1b1a)]:null),_0x4a69c4[_0x573e4f(0xc83)]=_0x573e4f(0x1e30),_0x4a69c4['listOrder']='',_0x4a69c4['listOrderAsc']=null,_0x4a69c4[_0x573e4f(0x17e9)]=[],_0x4a69c4[_0x573e4f(0xae2)]={'fields':_0x573e4f(0x6e7),'role':_0x573e4f(0xd1e),'sort':_0x573e4f(0x282),'limit':0xa,'page':0x1},_0x4a69c4[_0x573e4f(0x133d)]=_0x39641b()[_0x573e4f(0x2631)]([{'option':_0x573e4f(0x163d),'value':_0x573e4f(0x1902)},{'option':'User','value':_0x573e4f(0xe2f)}],function(_0xdeaea2){return _0x39641b()['replace'](_0xdeaea2['value'],new RegExp('\x27','g'),'');}),_0x4a69c4[_0x573e4f(0x1a88)]=_0x39641b()[_0x573e4f(0x2631)]([{'option':_0x573e4f(0xa9d),'value':_0x573e4f(0x378)},{'option':_0x573e4f(0x2828),'value':'\x27tcp\x27'},{'option':'ws','value':_0x573e4f(0x2127)},{'option':_0x573e4f(0x1e14),'value':_0x573e4f(0x49d)},{'option':'tls','value':_0x573e4f(0x1393)}],function(_0x38afeb){const _0xe2ad99=_0x573e4f;return _0x39641b()[_0xe2ad99(0x288f)](_0x38afeb[_0xe2ad99(0x327)],new RegExp('\x27','g'),'');}),_0x4a69c4[_0x573e4f(0x571)]=_0x39641b()[_0x573e4f(0x2631)]([{'option':_0x573e4f(0xd71),'value':_0x573e4f(0x1f64)},{'option':_0x573e4f(0x18c7),'value':_0x573e4f(0xf60)},{'option':_0x573e4f(0x150d),'value':_0x573e4f(0x27e4)},{'option':'no','value':_0x573e4f(0x15b9)},{'option':_0x573e4f(0x382),'value':_0x573e4f(0x1d2c)},{'option':_0x573e4f(0x15d0),'value':'\x27route\x27'}],function(_0x2eb6d4){const _0x2d8d27=_0x573e4f;return _0x39641b()[_0x2d8d27(0x288f)](_0x2eb6d4['value'],new RegExp('\x27','g'),'');}),_0x4a69c4[_0x573e4f(0x1462)]=_0x39641b()[_0x573e4f(0x2631)]([{'option':'ulaw','value':_0x573e4f(0x2079)},{'option':_0x573e4f(0x128d),'value':'\x27alaw\x27'},{'option':_0x573e4f(0x2331),'value':'\x27gsm\x27'},{'option':_0x573e4f(0x1dfa),'value':_0x573e4f(0x28ca)},{'option':_0x573e4f(0x1a92),'value':_0x573e4f(0x1b75)},{'option':_0x573e4f(0x14cc),'value':_0x573e4f(0x102f)},{'option':_0x573e4f(0x278c),'value':'\x27h264\x27'}],function(_0xeaa83d){const _0x245186=_0x573e4f;return _0x39641b()[_0x245186(0x288f)](_0xeaa83d['value'],new RegExp('\x27','g'),'');}),_0x4a69c4[_0x573e4f(0x1b79)]=_0x39641b()[_0x573e4f(0x2631)]([{'option':'Yes','value':_0x573e4f(0x27e4)},{'option':'No','value':'\x27no\x27'},{'option':_0x573e4f(0x1288),'value':_0x573e4f(0x2a2)}],function(_0x493fa8){const _0x56dab5=_0x573e4f;return _0x39641b()[_0x56dab5(0x288f)](_0x493fa8[_0x56dab5(0x327)],new RegExp('\x27','g'),'');}),_0x4a69c4[_0x573e4f(0x235d)]=_0x567d26,_0x4a69c4['deleteconfirm']=_0x33726c,_0x4a69c4[_0x573e4f(0x829)]=_0x5b10a1,_0x4a69c4[_0x573e4f(0x8e7)]=_0x5c6dfd,_0x4a69c4['createOrEditUser']=_0x2989c6,_0x4a69c4[_0x573e4f(0x2683)]=_0x20d200,_0x4a69c4[_0x573e4f(0x13e4)]=_0x55b807,_0x4a69c4['deleteSelectedUsers']=_0x2ac97b,_0x4a69c4[_0x573e4f(0x20c5)]=_0x55aebe,_0x4a69c4[_0x573e4f(0x2840)]=_0x6d6571,_0x1b78bb[_0x573e4f(0x44a)][_0x573e4f(0xbf7)]({'fields':_0x573e4f(0x43c),'sort':_0x573e4f(0x16b6)})[_0x573e4f(0x1d77)][_0x573e4f(0x1cb0)](function(_0x377600){_0x4a69c4['userProfiles']=_0x377600['rows']||[];})[_0x573e4f(0x1c4)](function(_0x26ebf8){const _0x3be245=_0x573e4f;_0x1351ad[_0x3be245(0x218e)]({'title':_0x26ebf8[_0x3be245(0x291)]?'API:'+_0x26ebf8[_0x3be245(0x291)]+'\x20-\x20'+_0x26ebf8['statusText']:_0x3be245(0x2f2),'msg':_0x26ebf8['data']?JSON['stringify'](_0x26ebf8[_0x3be245(0x25c)]):_0x26ebf8[_0x3be245(0x147f)]()});});function _0x567d26(_0x4522eb){const _0x3728c9=_0x573e4f;_0x2b0dd4['go'](_0x3728c9(0x193e),{'id':_0x4522eb['id'],'user':_0x4522eb,'crudPermissions':_0x4a69c4[_0x3728c9(0x1b1a)]});}function _0x33726c(_0x2c47e0,_0x5befc0){const _0x130f97=_0x573e4f,_0x23d124=_0x50e08d[_0x130f97(0x1551)]()[_0x130f97(0x1386)](_0x130f97(0x140b)+_0x39641b()[_0x130f97(0xa75)](_0x130f97(0xebe))+'?')['htmlContent'](_0x130f97(0x204d)+(_0x2c47e0[_0x130f97(0x16b6)]||_0x130f97(0xebe))+_0x130f97(0x1200)+_0x130f97(0x1b6))[_0x130f97(0x15ad)]('delete\x20user')[_0x130f97(0x728)](_0x5befc0)['ok']('OK')['cancel'](_0x130f97(0x24ba));_0x50e08d['show'](_0x23d124)[_0x130f97(0x1cb0)](function(){_0x20d200(_0x2c47e0);},function(){const _0x2a77ce=_0x130f97;console['log'](_0x2a77ce(0x24ba));});}let _0x13222b=!![],_0x19cb45=0x1;_0x177cb5[_0x573e4f(0x614)]('vm.query.filter',function(_0x235862,_0x35bd50){const _0x18b794=_0x573e4f;_0x13222b?_0x346ceb(function(){_0x13222b=![];}):(!_0x35bd50&&(_0x19cb45=_0x4a69c4['query']['page']),_0x235862!==_0x35bd50&&(_0x4a69c4[_0x18b794(0xae2)][_0x18b794(0x1c7b)]=0x1),!_0x235862&&(_0x4a69c4[_0x18b794(0xae2)][_0x18b794(0x1c7b)]=_0x19cb45),_0x4a69c4['getUsers']());});function _0x5b10a1(_0x5adb6f){const _0x4b5ca4=_0x573e4f;_0x4a69c4[_0x4b5ca4(0x1e30)]=_0x5adb6f||{'count':0x0,'rows':[]};}function _0x5c6dfd(){const _0x5807b5=_0x573e4f;_0x4a69c4[_0x5807b5(0xae2)]['offset']=(_0x4a69c4['query'][_0x5807b5(0x1c7b)]-0x1)*_0x4a69c4['query'][_0x5807b5(0x236)],_0x534650[_0x5807b5(0x22b6)](_0x5807b5(0x1c60))?_0x4a69c4['promise']=_0x1b78bb['user'][_0x5807b5(0xbf7)](_0x4a69c4[_0x5807b5(0xae2)],_0x5b10a1)[_0x5807b5(0x1d77)]:(_0x4a69c4[_0x5807b5(0xae2)]['id']=_0x4a69c4[_0x5807b5(0x44a)]['id'],_0x4a69c4[_0x5807b5(0xae2)]['section']='Users',_0x4a69c4[_0x5807b5(0x2061)]=_0x1b78bb[_0x5807b5(0x44a)][_0x5807b5(0x1810)](_0x4a69c4[_0x5807b5(0xae2)],_0x5b10a1)[_0x5807b5(0x1d77)]);}function _0x2989c6(_0x3c8e65,_0x101eaf){const _0x4d08c7=_0x573e4f;_0x50e08d['show']({'controller':_0x4d08c7(0x167c),'controllerAs':'vm','templateUrl':_0xe654fa,'parent':angular[_0x4d08c7(0x1853)](_0x4741e7['body']),'targetEvent':_0x3c8e65,'clickOutsideToClose':!![],'locals':{'user':_0x101eaf,'users':_0x4a69c4[_0x4d08c7(0x1e30)][_0x4d08c7(0x2214)],'license':_0x4a69c4[_0x4d08c7(0x8a5)],'setting':_0x4a69c4[_0x4d08c7(0x9ca)],'crudPermissions':_0x4a69c4['crudPermissions']}});}function _0x20d200(_0x355811){const _0x57f451=_0x573e4f;_0x1b78bb[_0x57f451(0xebe)][_0x57f451(0x111d)]({'id':_0x355811['id']})[_0x57f451(0x1d77)][_0x57f451(0x1cb0)](function(){const _0x203a08=_0x57f451;_0x39641b()[_0x203a08(0x152a)](_0x4a69c4[_0x203a08(0x1e30)]['rows'],{'id':_0x355811['id']}),_0x4a69c4[_0x203a08(0x1e30)]['count']-=0x1,!_0x4a69c4[_0x203a08(0x1e30)][_0x203a08(0x2214)][_0x203a08(0xfd0)]&&_0x4a69c4[_0x203a08(0x8e7)](),_0x1351ad[_0x203a08(0x829)]({'title':_0x39641b()[_0x203a08(0xa75)](_0x203a08(0x1597))+_0x203a08(0x2663),'msg':_0x355811[_0x203a08(0x16b6)]?_0x355811[_0x203a08(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x57f451(0x1c4)](function(_0x14156e){const _0x48ec42=_0x57f451;if(_0x14156e[_0x48ec42(0x25c)]&&_0x14156e[_0x48ec42(0x25c)][_0x48ec42(0x1a7c)]&&_0x14156e[_0x48ec42(0x25c)][_0x48ec42(0x1a7c)][_0x48ec42(0xfd0)]){_0x4a69c4[_0x48ec42(0x1a7c)]=_0x14156e[_0x48ec42(0x25c)]['errors']||[{'message':_0x14156e[_0x48ec42(0x147f)](),'type':'SYSTEM:DELETEuser'}];for(let _0x18ab19=0x0;_0x18ab19<_0x14156e[_0x48ec42(0x25c)]['errors'][_0x48ec42(0xfd0)];_0x18ab19++){_0x1351ad[_0x48ec42(0x218e)]({'title':_0x14156e['data']['errors'][_0x18ab19]['type'],'msg':_0x14156e[_0x48ec42(0x25c)]['errors'][_0x18ab19]['message']});}}else _0x1351ad['error']({'title':_0x14156e[_0x48ec42(0x291)]?_0x48ec42(0xeb9)+_0x14156e[_0x48ec42(0x291)]+_0x48ec42(0x1657)+_0x14156e['statusText']:_0x48ec42(0xcec),'msg':_0x14156e[_0x48ec42(0x25c)]?JSON[_0x48ec42(0x2701)](_0x14156e[_0x48ec42(0x25c)][_0x48ec42(0x155e)]):_0x14156e[_0x48ec42(0x155e)]||_0x14156e[_0x48ec42(0x147f)]()});});}function _0x55b807(){const _0x3da9d5=_0x573e4f,_0xcb5dff=angular['copy'](_0x4a69c4[_0x3da9d5(0x17e9)]);return _0x4a69c4['selectedUsers']=[],_0xcb5dff;}function _0x2ac97b(_0x411f84){const _0x14f4be=_0x573e4f,_0x1cf91c=_0x50e08d[_0x14f4be(0x1551)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20users?')[_0x14f4be(0x49e)](_0x14f4be(0x204d)+_0x4a69c4[_0x14f4be(0x17e9)][_0x14f4be(0xfd0)]+_0x14f4be(0x1d6c)+_0x14f4be(0x1b6))[_0x14f4be(0x15ad)](_0x14f4be(0xa43))[_0x14f4be(0x728)](_0x411f84)['ok']('OK')[_0x14f4be(0x696)](_0x14f4be(0x24ba));_0x50e08d['show'](_0x1cf91c)[_0x14f4be(0x1cb0)](function(){const _0x148900=_0x14f4be;_0x4a69c4[_0x148900(0x17e9)][_0x148900(0xf90)](function(_0x46777d){_0x20d200(_0x46777d);}),_0x4a69c4['selectedUsers']=[];});}function _0x55aebe(){const _0x2e0d38=_0x573e4f;_0x4a69c4[_0x2e0d38(0x17e9)]=[];}function _0x6d6571(){const _0x2bfb4d=_0x573e4f;_0x4a69c4['selectedUsers']=_0x4a69c4[_0x2bfb4d(0x1e30)]['rows'];}}const _0x5d4fb1=_0x2f0134;;const _0x32fb44=_0x5074a3['p']+_0x5537c6(0x306);;const _0x46eccb=_0x5074a3['p']+'src/js/modules/main/apps/staff/views/users/edit/view.html/view.html';;const _0x2eb82f=_0x5074a3['p']+_0x5537c6(0x29b8);;const _0x3f977f=_0x5074a3['p']+_0x5537c6(0x12e9);;const _0x16149e=_0x5074a3['p']+'src/js/modules/main/apps/staff/views/telephones/telephones.html/telephones.html';;const _0x49b945=_0x5074a3['p']+_0x5537c6(0x2716);;const _0x31d01d=_0x5074a3['p']+_0x5537c6(0x26c4);;const _0x33a869=_0x5074a3['p']+'src/js/modules/main/apps/staff/views/userProfiles/userProfiles.html/userProfiles.html';;const _0x45236b=_0x5074a3['p']+_0x5537c6(0x29a9);;_0x2657a4['$inject']=[_0x5537c6(0xbd6),'$translatePartialLoaderProvider'];function _0x2657a4(_0x2cc905,_0x1346d6){const _0x3b4085=_0x5537c6;_0x2cc905[_0x3b4085(0x27e0)](_0x3b4085(0x323),{'abstract':!![],'url':'/staff'})[_0x3b4085(0x27e0)](_0x3b4085(0x2416),{'url':_0x3b4085(0x148a),'views':{'content@app':{'templateUrl':_0x32fb44,'controller':_0x3b4085(0x92e)}},'resolve':{'users':[_0x3b4085(0x1e0b),function(_0x4b528e){const _0x17391a=_0x3b4085;return _0x4b528e[_0x17391a(0x19a3)](_0x17391a(0x1c86),{'fields':_0x17391a(0x6e7),'role':_0x17391a(0xd1e),'sort':_0x17391a(0x282),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3b4085(0x1e0b),_0x3b4085(0x1774),function(_0x2a8d58,_0x534d45){const _0x2b2cb2=_0x3b4085;return _0x534d45[_0x2b2cb2(0x22b6)](_0x2b2cb2(0x1c60))?null:_0x2a8d58[_0x2b2cb2(0x19a3)]('userProfile@get',{'fields':_0x2b2cb2(0x279),'id':_0x534d45[_0x2b2cb2(0x21e8)]()[_0x2b2cb2(0x13c1)]});}],'userProfileSection':[_0x3b4085(0x1e0b),'Auth',function(_0x255e6c,_0x1c05d0){const _0x5ccd53=_0x3b4085;return _0x1c05d0[_0x5ccd53(0x22b6)](_0x5ccd53(0x1c60))?null:_0x255e6c[_0x5ccd53(0x19a3)](_0x5ccd53(0x2182),{'fields':_0x5ccd53(0x1f5f),'userProfileId':_0x1c05d0[_0x5ccd53(0x21e8)]()[_0x5ccd53(0x13c1)],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x3b4085(0x173b)})['state'](_0x3b4085(0x193e),{'url':_0x3b4085(0x1bf2),'params':{'user':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x46eccb,'controller':'UserController\x20as\x20vm'}},'resolve':{'user':[_0x3b4085(0x1e0b),'$stateParams',function(_0x2352aa,_0x4073b3){const _0x57ab88=_0x3b4085;return _0x2352aa[_0x57ab88(0x19a3)](_0x57ab88(0x1c86),{'fields':'createdAt,updatedAt,role,userProfileId,id,fullname,name,email,phone,mobile,userpic,password,description,autointernal,internal,transport,nat,allow,context,callgroup,pickupgroup,passwordResetAt,apiKey,videosupport,disabled,blocked','id':_0x4073b3['id']});}],'userProfileSection':[_0x3b4085(0x1e0b),_0x3b4085(0x1774),function(_0x105c4e,_0x255a7f){const _0x3ce90b=_0x3b4085;return _0x105c4e[_0x3ce90b(0x19a3)](_0x3ce90b(0x2182),{'fields':_0x3ce90b(0x1f5f),'userProfileId':_0x255a7f[_0x3ce90b(0x21e8)]()[_0x3ce90b(0x13c1)],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x3b4085(0x173b)})[_0x3b4085(0x27e0)](_0x3b4085(0x23ab),{'url':_0x3b4085(0xefc),'views':{'content@app':{'templateUrl':_0x2eb82f,'controller':'AgentsController\x20as\x20vm'}},'resolve':{'agents':['apiResolver','Auth',function(_0x2fb6c1,_0x2e2a11){const _0x4c8ea8=_0x3b4085;return _0x2e2a11[_0x4c8ea8(0x22b6)](_0x4c8ea8(0x1c60))?_0x2fb6c1[_0x4c8ea8(0x19a3)](_0x4c8ea8(0x1c86),{'fields':_0x4c8ea8(0xb95),'role':_0x4c8ea8(0x1eff),'sort':_0x4c8ea8(0x282),'limit':0xa,'offset':0x0}):_0x2fb6c1[_0x4c8ea8(0x19a3)](_0x4c8ea8(0x12da),{'id':_0x2e2a11[_0x4c8ea8(0x21e8)]()[_0x4c8ea8(0x13c1)],'section':_0x4c8ea8(0x2536),'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':_0x4c8ea8(0x1eff),'sort':_0x4c8ea8(0x282),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3b4085(0x1e0b),_0x3b4085(0x1774),function(_0x4dd9ed,_0x5cea75){const _0x5815f4=_0x3b4085;return _0x5cea75[_0x5815f4(0x22b6)](_0x5815f4(0x1c60))?null:_0x4dd9ed['resolve'](_0x5815f4(0x9ae),{'fields':_0x5815f4(0x279),'id':_0x5cea75['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x3b4085(0x1e0b),_0x3b4085(0x1774),function(_0x285963,_0x370ee6){const _0x172e54=_0x3b4085;return _0x370ee6[_0x172e54(0x22b6)](_0x172e54(0x1c60))?null:_0x285963[_0x172e54(0x19a3)](_0x172e54(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x370ee6[_0x172e54(0x21e8)]()[_0x172e54(0x13c1)],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x3b4085(0x173b)})[_0x3b4085(0x27e0)]('app.staff.agents.edit',{'url':'/:id?tab','params':{'agent':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3f977f,'controller':'AgentController\x20as\x20vm'}},'resolve':{'agent':[_0x3b4085(0x1e0b),_0x3b4085(0x225c),function(_0x800a9b,_0xe80953){const _0xa7f2cf=_0x3b4085;return _0x800a9b[_0xa7f2cf(0x19a3)](_0xa7f2cf(0x1c86),{'fields':_0xa7f2cf(0xb95),'id':_0xe80953['id']});}],'userProfileSection':[_0x3b4085(0x1e0b),_0x3b4085(0x1774),function(_0x399d36,_0x26716c){const _0x440d19=_0x3b4085;return _0x399d36['resolve'](_0x440d19(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x26716c[_0x440d19(0x21e8)]()['userProfileId'],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x3b4085(0x173b)})['state']('app.staff.telephones',{'url':_0x3b4085(0x23d3),'views':{'content@app':{'templateUrl':_0x16149e,'controller':_0x3b4085(0x207b)}},'resolve':{'telephones':[_0x3b4085(0x1e0b),_0x3b4085(0x1774),function(_0x3f09d4,_0x4dace4){const _0x3bb3dc=_0x3b4085;return _0x4dace4[_0x3bb3dc(0x22b6)](_0x3bb3dc(0x1c60))?_0x3f09d4[_0x3bb3dc(0x19a3)](_0x3bb3dc(0x1c86),{'fields':_0x3bb3dc(0x235f),'role':_0x3bb3dc(0x2922),'sort':_0x3bb3dc(0x282),'limit':0xa,'offset':0x0}):_0x3f09d4[_0x3bb3dc(0x19a3)](_0x3bb3dc(0x12da),{'id':_0x4dace4[_0x3bb3dc(0x21e8)]()[_0x3bb3dc(0x13c1)],'section':_0x3bb3dc(0x16d1),'fields':_0x3bb3dc(0x235f),'role':_0x3bb3dc(0x2922),'sort':_0x3bb3dc(0x282),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3b4085(0x1e0b),'Auth',function(_0x30626f,_0x3aa091){const _0x3ae180=_0x3b4085;return _0x3aa091[_0x3ae180(0x22b6)]('admin')?null:_0x30626f['resolve'](_0x3ae180(0x9ae),{'fields':_0x3ae180(0x279),'id':_0x3aa091[_0x3ae180(0x21e8)]()[_0x3ae180(0x13c1)]});}],'userProfileSection':[_0x3b4085(0x1e0b),_0x3b4085(0x1774),function(_0xe441a5,_0x4418e7){const _0xda158d=_0x3b4085;return _0x4418e7[_0xda158d(0x22b6)](_0xda158d(0x1c60))?null:_0xe441a5[_0xda158d(0x19a3)](_0xda158d(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4418e7[_0xda158d(0x21e8)]()[_0xda158d(0x13c1)],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':_0x3b4085(0x173b)})['state'](_0x3b4085(0xe14),{'url':_0x3b4085(0x1bf2),'params':{'telephone':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x49b945,'controller':_0x3b4085(0x7de)}},'resolve':{'telephone':[_0x3b4085(0x1e0b),'$stateParams',function(_0x25af0a,_0x48e4dd){const _0x18e7e0=_0x3b4085;return _0x25af0a[_0x18e7e0(0x19a3)](_0x18e7e0(0x1c86),{'fields':_0x18e7e0(0x235f),'id':_0x48e4dd['id']});}],'userProfileSection':[_0x3b4085(0x1e0b),'Auth',function(_0x1bc0fc,_0x407516){const _0x1f8a42=_0x3b4085;return _0x1bc0fc[_0x1f8a42(0x19a3)](_0x1f8a42(0x2182),{'fields':_0x1f8a42(0x1f5f),'userProfileId':_0x407516[_0x1f8a42(0x21e8)]()['userProfileId'],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':_0x3b4085(0x173b)})[_0x3b4085(0x27e0)](_0x3b4085(0x2811),{'url':_0x3b4085(0x27a),'views':{'content@app':{'templateUrl':_0x31d01d,'controller':_0x3b4085(0x26e9)}},'resolve':{'teams':['apiResolver',_0x3b4085(0x1774),function(_0x2e5c4c,_0x2bbd1c){const _0x3b07a2=_0x3b4085;return _0x2bbd1c[_0x3b07a2(0x22b6)](_0x3b07a2(0x1c60))?_0x2e5c4c[_0x3b07a2(0x19a3)](_0x3b07a2(0xb6f),{'fields':_0x3b07a2(0x12e8),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x2e5c4c['resolve'](_0x3b07a2(0x12da),{'id':_0x2bbd1c[_0x3b07a2(0x21e8)]()[_0x3b07a2(0x13c1)],'section':'Teams','fields':_0x3b07a2(0x12e8),'sort':_0x3b07a2(0x282),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3b4085(0x1e0b),'Auth',function(_0x225f1b,_0x309d9a){const _0x265448=_0x3b4085;return _0x309d9a['hasRole'](_0x265448(0x1c60))?null:_0x225f1b['resolve']('userProfile@get',{'fields':_0x265448(0x279),'id':_0x309d9a[_0x265448(0x21e8)]()[_0x265448(0x13c1)]});}],'userProfileSection':[_0x3b4085(0x1e0b),_0x3b4085(0x1774),function(_0x462866,_0x478e3a){const _0x28458a=_0x3b4085;return _0x478e3a[_0x28458a(0x22b6)]('admin')?null:_0x462866[_0x28458a(0x19a3)](_0x28458a(0x2182),{'fields':_0x28458a(0x1f5f),'userProfileId':_0x478e3a[_0x28458a(0x21e8)]()['userProfileId'],'sectionId':0xcc});}]},'authenticate':!![],'permissionId':0xcc,'bodyClass':_0x3b4085(0x173b)})['state'](_0x3b4085(0x11a9),{'url':_0x3b4085(0x436),'views':{'content@app':{'templateUrl':_0x33a869,'controller':'UserProfilesController\x20as\x20vm'}},'resolve':{'userProfiles':[_0x3b4085(0x1e0b),function(_0xbb0e2b){const _0x3e57f0=_0x3b4085;return _0xbb0e2b['resolve'](_0x3e57f0(0x9ae),{'fields':_0x3e57f0(0xc56),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x3b4085(0x1e0b),_0x3b4085(0x1774),function(_0xc6989c,_0x20deff){const _0x309d59=_0x3b4085;return _0x20deff[_0x309d59(0x22b6)]('admin')?null:_0xc6989c['resolve'](_0x309d59(0x9ae),{'fields':_0x309d59(0x279),'id':_0x20deff[_0x309d59(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x3b4085(0x1e0b),_0x3b4085(0x1774),function(_0x3b64bc,_0x5bfbe4){const _0x212b71=_0x3b4085;return _0x5bfbe4[_0x212b71(0x22b6)](_0x212b71(0x1c60))?null:_0x3b64bc[_0x212b71(0x19a3)](_0x212b71(0x2182),{'fields':_0x212b71(0x1f5f),'userProfileId':_0x5bfbe4[_0x212b71(0x21e8)]()[_0x212b71(0x13c1)],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':'staff'})['state'](_0x3b4085(0x15f4),{'url':_0x3b4085(0x1bf2),'params':{'userProfile':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x45236b,'controller':_0x3b4085(0x14d2)}},'resolve':{'userProfile':[_0x3b4085(0x1e0b),'$stateParams',function(_0x548b51,_0x17ef2e){const _0x1545bb=_0x3b4085;return _0x548b51[_0x1545bb(0x19a3)](_0x1545bb(0x9ae),{'fields':_0x1545bb(0xc56),'id':_0x17ef2e['id']});}],'userProfileSection':[_0x3b4085(0x1e0b),_0x3b4085(0x1774),function(_0x4e3d9f,_0x467e42){const _0x2448bc=_0x3b4085;return _0x4e3d9f['resolve'](_0x2448bc(0x2182),{'fields':_0x2448bc(0x1f5f),'userProfileId':_0x467e42[_0x2448bc(0x21e8)]()[_0x2448bc(0x13c1)],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':_0x3b4085(0x173b)}),_0x1346d6[_0x3b4085(0x4e7)](_0x3b4085(0x8f5));}angular[_0x5537c6(0x9ab)](_0x5537c6(0x323),[_0x5537c6(0x2770),_0x5537c6(0x2135),_0x5537c6(0x1260),_0x5537c6(0xacf),_0x5537c6(0x18f6),_0x5537c6(0xd19),_0x5537c6(0x44c),'ngAria',_0x5537c6(0x1890),_0x5537c6(0x167d),_0x5537c6(0x208f),_0x5537c6(0x1b65),_0x5537c6(0x2166),_0x5537c6(0x3b9),_0x5537c6(0x7c9),_0x5537c6(0xeb5),_0x5537c6(0x27af),_0x5537c6(0x13b6),_0x5537c6(0x1cbd),'angular.filter'])[_0x5537c6(0xa60)](_0x2657a4)[_0x5537c6(0x6e5)](_0x5537c6(0xcce),_0x2e0301)['controller'](_0x5537c6(0x1a68),_0x35aab0)[_0x5537c6(0x6e5)](_0x5537c6(0x20ea),_0x255392)[_0x5537c6(0x6e5)]('AgentchangepasswordController',_0x20d3de)['controller']('AgentPermissionsController',_0x208147)[_0x5537c6(0x6e5)]('AgentqueueaddController',_0x42f68c)[_0x5537c6(0x6e5)]('AgentteamaddController',_0x213cf6)['controller'](_0x5537c6(0x297e),_0x465477)[_0x5537c6(0x6e5)](_0x5537c6(0x3e7),_0x38dcbf)[_0x5537c6(0x6e5)](_0x5537c6(0xffa),_0x8d0bee)[_0x5537c6(0x6e5)]('TeamsController',_0x585d64)[_0x5537c6(0x6e5)](_0x5537c6(0x26d4),_0x8bd3ab)[_0x5537c6(0x6e5)]('TelephonechangepasswordController',_0x35045d)[_0x5537c6(0x6e5)](_0x5537c6(0x1adc),_0x2cd253)['controller'](_0x5537c6(0x26f6),_0x1d70fc)[_0x5537c6(0x6e5)](_0x5537c6(0xb73),_0x28dd7d)[_0x5537c6(0x6e5)](_0x5537c6(0x4fb),_0x466cb8)[_0x5537c6(0x6e5)](_0x5537c6(0x991),_0x12a080)['controller'](_0x5537c6(0xbc0),_0xce9e36)[_0x5537c6(0x6e5)](_0x5537c6(0xa29),_0x383c7a)[_0x5537c6(0x6e5)](_0x5537c6(0xb36),_0x4d2faf)[_0x5537c6(0x6e5)](_0x5537c6(0x167c),_0x34bb2d)[_0x5537c6(0x6e5)](_0x5537c6(0x1c92),_0x4d8e54)[_0x5537c6(0x6e5)](_0x5537c6(0x8c9),_0x37f8aa)[_0x5537c6(0x6e5)](_0x5537c6(0x26d5),_0x4771b3)[_0x5537c6(0x6e5)](_0x5537c6(0xbc1),_0x25a2da)['controller'](_0x5537c6(0x3b2),_0x5d4fb1);;const _0x14c573=_0x5074a3['p']+_0x5537c6(0x143c);;const _0x4f1710=_0x5074a3['p']+_0x5537c6(0xcd9);;_0x470dfd[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x22bf),'$timeout','$state',_0x5537c6(0x225c),_0x5537c6(0xcb9),'$q','userProfile',_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0x7eb),'lists','listsMap',_0x5537c6(0xe1a),_0x5537c6(0x10d1),_0x5537c6(0xfbf),_0x5537c6(0x9bf),_0x5537c6(0x1774),'license'];function _0x470dfd(_0x42d027,_0x23b375,_0x36b38d,_0x51230a,_0x5b40f6,_0x37f890,_0x3a2c49,_0x2c6a99,_0x7de2f0,_0x10cecc,_0xfdbb8e,_0x497e7b,_0x2b84d1,_0x451e26,_0x3ae0ba,_0x591cbe,_0xa3367f,_0x106706,_0x29a62c){const _0x1accd7=_0x5537c6,_0x337e7a=this;_0x337e7a[_0x1accd7(0x29ae)]=_0x10cecc[_0x1accd7(0x29ae)],_0x337e7a['currentUser']=_0x106706[_0x1accd7(0x21e8)](),_0x337e7a['license']=_0x29a62c,_0x337e7a[_0x1accd7(0x44a)]=_0x2c6a99,_0x337e7a['userProfileSection']=_0x7de2f0&&_0x7de2f0[_0x1accd7(0x184d)]==0x1?_0x7de2f0['rows'][0x0]:null,_0x337e7a[_0x1accd7(0x1b1a)]=_0x106706[_0x1accd7(0x14ea)](_0x337e7a[_0x1accd7(0x2199)]?_0x337e7a[_0x1accd7(0x2199)][_0x1accd7(0x1b1a)]:null);const _0xcbf8e0=0x3c,_0x502de3=_0xcbf8e0*0x400*0x400;_0x337e7a[_0x1accd7(0x15e8)]={'target':_0x337e7a['baseUrl']+'api/cm/contacts/upload','singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x502de3,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x337e7a[_0x1accd7(0x7eb)]=_0xfdbb8e||{'count':0x0,'rows':[]},_0x337e7a[_0x1accd7(0x2224)]={'hidden':![],'hover':![],'isOpen':![]},_0x337e7a['table']=_0x1accd7(0x282a),_0x337e7a['selectedContacts']=[],_0x337e7a[_0x1accd7(0x1046)]=_0x497e7b||{'rows':[],'count':0x0},_0x337e7a[_0x1accd7(0xe1a)]=_0x451e26||{'rows':[],'count':0x0},_0x337e7a[_0x1accd7(0xfbf)]=_0x591cbe||{'rows':[],'count':0x0},_0x337e7a[_0x1accd7(0x1db7)]=_0x2b84d1,_0x337e7a[_0x1accd7(0x10d1)]=_0x3ae0ba,_0x337e7a[_0x1accd7(0xfae)]=[],_0x337e7a[_0x1accd7(0x9af)]=null,_0x337e7a[_0x1accd7(0x1383)]=null,_0x337e7a[_0x1accd7(0xae2)]=_0x39641b()[_0x1accd7(0x9c1)]({'includeAll':!![],'sort':'-updatedAt','limit':0xa,'offset':0x0,'page':0x1},_0x5b40f6),_0x337e7a[_0x1accd7(0xc93)]=_0xef85b1,_0x337e7a[_0x1accd7(0x27fe)]=_0x5cfb0f,_0x337e7a[_0x1accd7(0x829)]=_0xce25f3,_0x337e7a['getContacts']=_0x36a96f,_0x337e7a[_0x1accd7(0x1834)]=_0x26dc57,_0x337e7a[_0x1accd7(0x1ecc)]=_0x68f004,_0x337e7a['duplicateContact']=_0x55869f,_0x337e7a[_0x1accd7(0x19d6)]=_0x236817,_0x337e7a['deleteContact']=_0x1f6306,_0x337e7a['exportSelectedContacts']=_0x3b5dff,_0x337e7a[_0x1accd7(0x1679)]=_0x48b26b,_0x337e7a[_0x1accd7(0x375)]=_0x4cde94,_0x337e7a['selectAllContacts']=_0x577e56,_0x337e7a['createTag']=_0x275aae,_0x337e7a['createList']=_0x5692ce,_0x337e7a[_0x1accd7(0x26df)]=_0x541b46,_0x337e7a[_0x1accd7(0x1bcb)]=_0x515a3e,_0x337e7a[_0x1accd7(0x39e)]=_0x3bb194,_0x337e7a[_0x1accd7(0x15c2)]=_0xe29713;_0x51230a[_0x1accd7(0x1dfe)][_0x1accd7(0x20a6)]&&(_0x337e7a[_0x1accd7(0x9af)]=_0x51230a[_0x1accd7(0x1dfe)][_0x1accd7(0x20a6)]);_0x51230a[_0x1accd7(0x1dfe)][_0x1accd7(0x27ac)]&&(_0x337e7a['selectedCompany']=_0x51230a[_0x1accd7(0x1dfe)][_0x1accd7(0x27ac)]);_0x42d027[_0x1accd7(0x614)]('vm.options.isOpen',function(_0x449846){const _0x3cc76e=_0x1accd7;_0x449846?_0x36b38d(function(){const _0x530a4b=a0_0x5cbd;_0x42d027[_0x530a4b(0x29b)]=_0x337e7a[_0x530a4b(0x2224)][_0x530a4b(0x1666)];},0x258):_0x42d027[_0x3cc76e(0x29b)]=_0x337e7a[_0x3cc76e(0x2224)][_0x3cc76e(0x1666)];});function _0x26dc57(){const _0x41c426=_0x1accd7;if(!_0x106706[_0x41c426(0x22b6)](_0x41c426(0x1c60))){const _0x91ebbf=_0x39641b()(_0x337e7a['contacts'][_0x41c426(0x2214)])[_0x41c426(0x1de2)](function(_0x42ff15){return{'id':_0x42ff15['CompanyId']};})[_0x41c426(0x1724)]('id')[_0x41c426(0x1c99)](function(_0x390c5c){return _0x390c5c['id']&&_0x390c5c['id']>0x0;})[_0x41c426(0x1172)](_0x337e7a[_0x41c426(0xe1a)][_0x41c426(0x2214)],'id')[_0x41c426(0x327)]();if(!_0x39641b()[_0x41c426(0xce9)](_0x91ebbf)){const _0x4486dc=[];_0x91ebbf[_0x41c426(0xf90)](function(_0xc00dcc){const _0x22496b=_0x41c426;_0x4486dc['push'](_0x10cecc['cmCompany'][_0x22496b(0xbf7)]({'id':_0xc00dcc['id'],'fields':_0x22496b(0x43c)})['$promise']);}),_0x3a2c49[_0x41c426(0x223b)](_0x4486dc)[_0x41c426(0x1cb0)](function(_0x23f7dc){const _0x4a57a3=_0x41c426;_0x23f7dc[_0x4a57a3(0xf90)](function(_0x1b58d3){const _0x5c3e38=_0x4a57a3,_0x473e93=_0x1b58d3[_0x5c3e38(0x19b2)]();_0x473e93['canSelect']=![],_0x337e7a[_0x5c3e38(0xe1a)][_0x5c3e38(0x2214)][_0x5c3e38(0x2785)](_0x473e93);const _0x37ed30={};_0x37ed30[_0x473e93['id']]=_0x473e93['name'],_0x337e7a[_0x5c3e38(0x10d1)]=_0x39641b()[_0x5c3e38(0x1b62)](_0x337e7a[_0x5c3e38(0x10d1)],_0x37ed30);});})[_0x41c426(0x1c4)](function(_0x227259){const _0x56ba45=_0x41c426;_0xa3367f[_0x56ba45(0x218e)]({'title':_0x227259[_0x56ba45(0x291)]?_0x56ba45(0xeb9)+_0x227259[_0x56ba45(0x291)]+'\x20-\x20'+_0x227259[_0x56ba45(0xc22)]:'GET_COMPANY','msg':_0x227259['data']?JSON[_0x56ba45(0x2701)](_0x227259[_0x56ba45(0x25c)]['message']):_0x227259[_0x56ba45(0x147f)]()});});}}}function _0x5692ce(_0x385d68){const _0x38f45d=_0x1accd7,_0x269d10=_0x37f890[_0x38f45d(0x2344)]()[_0x38f45d(0x1386)](_0x38f45d(0x693))[_0x38f45d(0x161f)](_0x38f45d(0x18b1))[_0x38f45d(0x15ad)]('List\x20name')[_0x38f45d(0x728)](_0x385d68)['ok']('Ok')[_0x38f45d(0x696)](_0x38f45d(0xde1));return _0x37f890[_0x38f45d(0xe27)](_0x269d10)['then'](function(_0x4c0692){const _0x3b3afc=_0x38f45d;if(_0x4c0692)return _0x10cecc['cmList'][_0x3b3afc(0x1c3f)]({'name':_0x4c0692});else _0xa3367f[_0x3b3afc(0x218e)]({'title':_0x3b3afc(0x1d17),'msg':_0x3b3afc(0x2372)});})[_0x38f45d(0x1cb0)](function(_0x7a21eb){const _0xd2a51=_0x38f45d;_0x7a21eb&&(_0x337e7a['lists'][_0xd2a51(0x2214)][_0xd2a51(0x2785)](_0x7a21eb),_0xa3367f[_0xd2a51(0x829)]({'title':_0xd2a51(0x186c),'msg':_0x7a21eb[_0xd2a51(0x16b6)]?_0x7a21eb['name']+'\x20has\x20been\x20created!':''}));});}function _0x3bb194(){const _0x46517e=_0x1accd7;return _0x106706[_0x46517e(0x39e)](0x12f)||_0x106706[_0x46517e(0x22b6)](_0x46517e(0x1c60));}function _0x541b46(_0x3b5ae1){const _0x2acc87=_0x1accd7,_0x17582c=_0x37f890['prompt']()[_0x2acc87(0x1386)](_0x2acc87(0x287c))['placeholder'](_0x2acc87(0x22bb))['ariaLabel']('Company\x20name')[_0x2acc87(0x728)](_0x3b5ae1)['ok']('Ok')[_0x2acc87(0x696)](_0x2acc87(0xde1));return _0x37f890['show'](_0x17582c)['then'](function(_0x5ceb03){const _0x52a710=_0x2acc87;if(_0x5ceb03)return _0x10cecc[_0x52a710(0x107a)][_0x52a710(0x1c3f)]({'name':_0x5ceb03});else _0xa3367f['error']({'title':'Error\x20creating\x20company!','msg':_0x52a710(0x208e)});})[_0x2acc87(0x1cb0)](function(_0x412755){const _0x1b5540=_0x2acc87;_0x412755&&(_0x337e7a['companies'][_0x1b5540(0x2214)][_0x1b5540(0x2785)](_0x412755),_0xa3367f[_0x1b5540(0x829)]({'title':'Company\x20properly\x20created!','msg':_0x412755['name']?_0x412755[_0x1b5540(0x16b6)]+'\x20has\x20been\x20created!':''}));});}function _0x275aae(_0x32f41f){const _0xab794d=_0x1accd7,_0x19d1e9=_0x37f890[_0xab794d(0x2344)]()[_0xab794d(0x1386)](_0xab794d(0x13d8))[_0xab794d(0x161f)](_0xab794d(0x1b3c))[_0xab794d(0x15ad)](_0xab794d(0x1b3c))[_0xab794d(0x728)](_0x32f41f)['ok']('Ok')['cancel'](_0xab794d(0xde1));return _0x37f890[_0xab794d(0xe27)](_0x19d1e9)[_0xab794d(0x1cb0)](function(_0x298719){const _0x220118=_0xab794d;if(_0x298719)return _0x10cecc['tag'][_0x220118(0x1c3f)]({'name':_0x298719});else _0xa3367f[_0x220118(0x218e)]({'title':'Error\x20creating\x20tag!','msg':'Invalid\x20tag\x20name.'});})['then'](function(_0x1dfc8a){const _0x604a54=_0xab794d;_0x1dfc8a&&(_0x337e7a[_0x604a54(0xfbf)][_0x604a54(0x2214)][_0x604a54(0x2785)](_0x1dfc8a),_0xa3367f['success']({'title':_0x604a54(0x4a1),'msg':_0x1dfc8a['tag']?_0x1dfc8a[_0x604a54(0x16b6)]+'\x20has\x20been\x20created!':''}));});}function _0x515a3e(_0x4a4479,_0x12964f){const _0x5447e6=_0x1accd7,_0x1f26d2=JSON[_0x5447e6(0xefe)](_0x12964f);_0x37f890[_0x5447e6(0xe27)]({'controller':'ImportContactsDialogController','controllerAs':'vm','templateUrl':_0x14c573,'parent':angular['element'](_0x23b375[_0x5447e6(0x1ed9)]),'clickOutsideToClose':![],'locals':{'lists':_0x497e7b,'companies':_0x451e26,'file':_0x1f26d2['file'],'fields':_0x1f26d2[_0x5447e6(0x355)],'license':_0x337e7a[_0x5447e6(0x8a5)]}})['then'](function(){_0x337e7a['getContacts']();})[_0x5447e6(0x1c4)](function(){console['error']();});}function _0xef85b1(_0x3e766a){const _0x5bd9de=_0x1accd7;_0x51230a['go']('app.contactmanager.contacts.edit',{'id':_0x3e766a['id'],'crudPermissions':_0x337e7a[_0x5bd9de(0x1b1a)]});}function _0x5cfb0f(_0x3922f5,_0x1eb824){const _0x3dd663=_0x1accd7,_0x7ca576=_0x37f890[_0x3dd663(0x1551)]()[_0x3dd663(0x1386)](_0x3dd663(0x2108))['htmlContent'](_0x3dd663(0x204d)+(_0x3922f5['firstName']||_0x3922f5[_0x3dd663(0x1e19)]||_0x3922f5[_0x3dd663(0x1340)]||_0x3dd663(0x8d3))+_0x3dd663(0x1200)+_0x3dd663(0x1b6))[_0x3dd663(0x15ad)](_0x3dd663(0xb11))['targetEvent'](_0x1eb824)['ok']('OK')[_0x3dd663(0x696)]('CANCEL');_0x37f890[_0x3dd663(0xe27)](_0x7ca576)[_0x3dd663(0x1cb0)](function(){_0x1f6306(_0x3922f5);});}function _0xe29713(_0x353056){const _0x17905f=_0x1accd7,_0x10a70f=[_0x17905f(0x1a0d)];if(!_0x39641b()[_0x17905f(0x250a)](_0x10a70f,_0x353056['getExtension']()))return _0xa3367f[_0x17905f(0x218e)]({'title':_0x17905f(0x14d4)+_0x353056['getExtension'](),'msg':_0x17905f(0x4d4)+_0x10a70f[_0x17905f(0x1f66)]()}),![];if(_0x353056[_0x17905f(0x1813)]>_0x502de3)return _0xa3367f[_0x17905f(0x218e)]({'title':_0x17905f(0x2749),'msg':_0x17905f(0xe61)+_0xcbf8e0+'MB'}),![];return!![];}let _0x398cee=!![],_0x427d45=0x1;_0x42d027[_0x1accd7(0x614)](_0x1accd7(0x957),function(_0x22a60c,_0x665a42){const _0x20e391=_0x1accd7;_0x398cee?_0x36b38d(function(){_0x398cee=![];}):(!_0x665a42&&(_0x427d45=_0x337e7a[_0x20e391(0xae2)]['page']),_0x22a60c!==_0x665a42&&(_0x337e7a[_0x20e391(0xae2)][_0x20e391(0x1c7b)]=0x1),!_0x22a60c&&(_0x337e7a[_0x20e391(0xae2)]['page']=_0x427d45),_0x337e7a[_0x20e391(0x1586)]());},!![]),_0x42d027['$watch']('vm.selectedList',function(_0x220d31,_0x23f163){const _0x13775d=_0x1accd7;_0x220d31!==_0x23f163&&(_0x337e7a[_0x13775d(0xae2)][_0x13775d(0x20a6)]=_0x337e7a[_0x13775d(0x9af)]||undefined,_0x337e7a[_0x13775d(0x1586)]());}),_0x42d027[_0x1accd7(0x614)]('vm.selectedCompany',function(_0x5bfc86,_0x25f6b9){const _0x55a65e=_0x1accd7;_0x5bfc86!==_0x25f6b9&&(_0x337e7a[_0x55a65e(0xae2)][_0x55a65e(0x27ac)]=_0x337e7a[_0x55a65e(0x1383)]||undefined,_0x337e7a['getContacts']());}),_0x42d027[_0x1accd7(0x614)](_0x1accd7(0x2796),function(_0x49a7b6,_0x3b50f5){const _0x18529e=_0x1accd7;(_0x49a7b6['length']||_0x3b50f5[_0x18529e(0xfd0)])&&_0x337e7a['getContacts']();});function _0xce25f3(_0x4d47fa){_0x337e7a['contacts']=_0x4d47fa||{'count':0x0,'rows':[]};}function _0x36a96f(){const _0x2dc588=_0x1accd7;_0x337e7a[_0x2dc588(0xae2)][_0x2dc588(0x184b)]=(_0x337e7a[_0x2dc588(0xae2)]['page']-0x1)*_0x337e7a[_0x2dc588(0xae2)][_0x2dc588(0x236)],_0x106706[_0x2dc588(0x22b6)](_0x2dc588(0x1c60))?_0x337e7a[_0x2dc588(0x2061)]=_0x10cecc[_0x2dc588(0xbe7)][_0x2dc588(0xbf7)](_0x337e7a[_0x2dc588(0xae2)],_0xce25f3)[_0x2dc588(0x1d77)]:(_0x337e7a[_0x2dc588(0xae2)]['id']=_0x337e7a[_0x2dc588(0x44a)]['id'],_0x337e7a['query'][_0x2dc588(0x20a6)]=!_0x337e7a[_0x2dc588(0xae2)][_0x2dc588(0x20a6)]?_0x39641b()[_0x2dc588(0x1de2)](_0x337e7a[_0x2dc588(0x1046)]['rows'],'id'):_0x337e7a[_0x2dc588(0xae2)][_0x2dc588(0x20a6)],_0x337e7a[_0x2dc588(0xae2)][_0x2dc588(0x27ac)]=!_0x337e7a[_0x2dc588(0xae2)][_0x2dc588(0x27ac)]?_0x39641b()(_0x337e7a[_0x2dc588(0xe1a)][_0x2dc588(0x2214)])['filter']({'canSelect':undefined})[_0x2dc588(0x1de2)]('id')[_0x2dc588(0x327)]():_0x337e7a[_0x2dc588(0xae2)]['CompanyId'],_0x337e7a[_0x2dc588(0xae2)][_0x2dc588(0x1f74)]=_0x2dc588(0x20a4),_0x337e7a[_0x2dc588(0x2061)]=_0x10cecc[_0x2dc588(0x44a)][_0x2dc588(0x1810)](_0x337e7a[_0x2dc588(0xae2)],_0xce25f3)[_0x2dc588(0x1d77)]);}function _0x236817(_0xd7f78b,_0x7fcf41){const _0x47e390=_0x1accd7;_0x7fcf41&&_0x7fcf41['dateOfBirth']&&(_0x7fcf41[_0x47e390(0xdda)]=new Date(_0x7fcf41[_0x47e390(0xdda)])),_0x37f890['show']({'controller':'CreateOrEditContactDialogController','controllerAs':'vm','templateUrl':_0x4f1710,'parent':angular['element'](_0x23b375['body']),'targetEvent':_0xd7f78b,'clickOutsideToClose':!![],'locals':{'ListId':_0x337e7a['query'][_0x47e390(0x20a6)]||_0x51230a[_0x47e390(0x1dfe)]['ListId'],'CompanyId':_0x337e7a[_0x47e390(0xae2)][_0x47e390(0x27ac)]||_0x51230a[_0x47e390(0x1dfe)]['CompanyId'],'contact':_0x7fcf41,'contacts':_0x337e7a['contacts'][_0x47e390(0x2214)],'companies':_0x337e7a[_0x47e390(0xe1a)],'lists':_0x337e7a[_0x47e390(0x1046)],'setting':null,'crudPermissions':_0x337e7a[_0x47e390(0x1b1a)]}});}function _0x55869f(_0x3695b3,_0x5975e9){const _0x46436f=_0x1accd7;_0x37f890[_0x46436f(0xe27)]({'controller':'DuplicateContactDialogController','controllerAs':'vm','templateUrl':_0x4e0982,'parent':angular[_0x46436f(0x1853)](_0x23b375['body']),'targetEvent':_0x3695b3,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function(_0x3468e0){const _0x3bbbf3=_0x46436f;return _0x3468e0['resolve'](_0x3bbbf3(0x1095),{'id':_0x5975e9['id']});}],'lists':['apiResolver','Auth',function(_0x5c1047,_0x5eadbf){const _0x2468d1=_0x46436f;return _0x5eadbf['hasRole']('admin')?_0x5c1047[_0x2468d1(0x19a3)]('cmList@get',{'fields':'id,name','nolimit':!![]}):_0x5c1047[_0x2468d1(0x19a3)]('userProfile@getResources',{'id':_0x5eadbf['getCurrentUser']()[_0x2468d1(0x13c1)],'section':_0x2468d1(0x191f),'fields':_0x2468d1(0x43c),'nolimit':!![]});}]},'locals':{'contacts':_0x337e7a[_0x46436f(0x7eb)][_0x46436f(0x2214)]}});}function _0x68f004(_0x52ede2,_0x2a0fc9){const _0x4b9c9c=_0x1accd7;_0x37f890['show']({'controller':_0x4b9c9c(0x219f),'controllerAs':'vm','templateUrl':_0x860e6c,'parent':angular['element'](_0x23b375[_0x4b9c9c(0x1ed9)]),'targetEvent':_0x52ede2,'clickOutsideToClose':!![],'resolve':{'contact':[_0x4b9c9c(0x1e0b),function(_0x2ebab1){const _0x43b582=_0x4b9c9c;return _0x2ebab1['resolve'](_0x43b582(0x1095),{'id':_0x2a0fc9['id']});}],'lists':[_0x4b9c9c(0x1e0b),_0x4b9c9c(0x1774),function(_0x2c1315,_0x23582a){const _0x542052=_0x4b9c9c;return _0x23582a[_0x542052(0x22b6)](_0x542052(0x1c60))?_0x2c1315[_0x542052(0x19a3)](_0x542052(0x1b1f),{'fields':'id,name','nolimit':!![]}):_0x2c1315[_0x542052(0x19a3)](_0x542052(0x12da),{'id':_0x23582a[_0x542052(0x21e8)]()['userProfileId'],'section':_0x542052(0x191f),'fields':_0x542052(0x43c),'nolimit':!![]});}]},'locals':{'contacts':_0x337e7a[_0x4b9c9c(0x7eb)]['rows']}});}function _0x1f6306(_0x42ff1d){const _0x54b0bb=_0x1accd7;_0x10cecc[_0x54b0bb(0xbe7)][_0x54b0bb(0x111d)]({'id':_0x42ff1d['id']})[_0x54b0bb(0x1d77)][_0x54b0bb(0x1cb0)](function(){const _0x5043e6=_0x54b0bb;_0x39641b()[_0x5043e6(0x152a)](_0x337e7a[_0x5043e6(0x7eb)][_0x5043e6(0x2214)],{'id':_0x42ff1d['id']}),_0x337e7a[_0x5043e6(0x7eb)][_0x5043e6(0x184d)]-=0x1,!_0x337e7a[_0x5043e6(0x7eb)]['rows']['length']&&_0x337e7a[_0x5043e6(0x1586)](),_0xa3367f['success']({'title':'Contact\x20deleted!','msg':_0x42ff1d[_0x5043e6(0x16b6)]?_0x42ff1d['name']+_0x5043e6(0x3f5):''});})[_0x54b0bb(0x1c4)](function(_0x2ade53){const _0x388f96=_0x54b0bb;if(_0x2ade53['data']&&_0x2ade53['data'][_0x388f96(0x1a7c)]&&_0x2ade53['data'][_0x388f96(0x1a7c)][_0x388f96(0xfd0)]){_0x337e7a[_0x388f96(0x1a7c)]=_0x2ade53[_0x388f96(0x25c)][_0x388f96(0x1a7c)]||[{'message':_0x2ade53[_0x388f96(0x147f)](),'type':_0x388f96(0x24e)}];for(let _0x1adfa5=0x0;_0x1adfa5<_0x2ade53[_0x388f96(0x25c)][_0x388f96(0x1a7c)][_0x388f96(0xfd0)];_0x1adfa5++){_0xa3367f[_0x388f96(0x218e)]({'title':_0x2ade53['data'][_0x388f96(0x1a7c)][_0x1adfa5][_0x388f96(0x66a)],'msg':_0x2ade53[_0x388f96(0x25c)][_0x388f96(0x1a7c)][_0x1adfa5][_0x388f96(0x155e)]});}}else _0xa3367f[_0x388f96(0x218e)]({'title':_0x2ade53[_0x388f96(0x291)]?_0x388f96(0xeb9)+_0x2ade53['status']+_0x388f96(0x1657)+_0x2ade53[_0x388f96(0xc22)]:_0x388f96(0x24e),'msg':_0x2ade53[_0x388f96(0x25c)]?JSON['stringify'](_0x2ade53['data'][_0x388f96(0x155e)]):_0x2ade53[_0x388f96(0x155e)]||_0x2ade53[_0x388f96(0x147f)]()});});}function _0x3b5dff(){const _0xb1ca04=_0x1accd7,_0x4dd033=angular[_0xb1ca04(0x17fe)](_0x337e7a[_0xb1ca04(0x1f53)]);return _0x337e7a[_0xb1ca04(0x1f53)]=[],_0x4dd033;}function _0x48b26b(_0x3e1f00){const _0x4dfa80=_0x1accd7,_0x23cd32=_0x37f890[_0x4dfa80(0x1551)]()['title'](_0x4dfa80(0xd9e))[_0x4dfa80(0x49e)](_0x4dfa80(0x204d)+_0x337e7a[_0x4dfa80(0x1f53)][_0x4dfa80(0xfd0)]+_0x4dfa80(0x1d6c)+_0x4dfa80(0x1b6))[_0x4dfa80(0x15ad)](_0x4dfa80(0x19a0))[_0x4dfa80(0x728)](_0x3e1f00)['ok']('OK')[_0x4dfa80(0x696)](_0x4dfa80(0x24ba));_0x37f890[_0x4dfa80(0xe27)](_0x23cd32)[_0x4dfa80(0x1cb0)](function(){const _0x177b85=_0x4dfa80;_0x337e7a[_0x177b85(0x1f53)]['forEach'](function(_0x2adb52){_0x1f6306(_0x2adb52);}),_0x337e7a['selectedContacts']=[];});}function _0x4cde94(){const _0x4868e7=_0x1accd7;_0x337e7a[_0x4868e7(0x1f53)]=[];}function _0x577e56(){const _0x416167=_0x1accd7;_0x337e7a[_0x416167(0x1f53)]=_0x337e7a['contacts'][_0x416167(0x2214)];}}const _0x5a48bc=_0x470dfd;;_0x3f0c16[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0x7eb),_0x5537c6(0x1046),_0x5537c6(0xe1a),'contact',_0x5537c6(0x20a6),_0x5537c6(0x27ac),_0x5537c6(0x142b),'crudPermissions'];function _0x3f0c16(_0x3f6c56,_0x187896,_0x48f220,_0x5367fd,_0x544916,_0x375027,_0x493682,_0x58cc22,_0x1f155b,_0x345d2c){const _0x41c6ae=_0x5537c6,_0x52bcbe=this;_0x52bcbe['errors']=[],_0x52bcbe[_0x41c6ae(0x1386)]=_0x41c6ae(0x26b7),_0x52bcbe['crudPermissions']=_0x345d2c,_0x52bcbe['contact']=angular[_0x41c6ae(0x17fe)](_0x375027),_0x52bcbe[_0x41c6ae(0x7eb)]=_0x48f220||{'rows':[],'count':0x0},_0x52bcbe[_0x41c6ae(0x1046)]=_0x5367fd||{'rows':[],'count':0x0},_0x52bcbe['companies']=_0x544916||{'rows':[],'count':0x0},_0x52bcbe[_0x41c6ae(0x2242)]={'rows':[],'count':0x0},_0x52bcbe[_0x41c6ae(0x2617)]=![];!_0x52bcbe[_0x41c6ae(0x8b1)]?(_0x52bcbe[_0x41c6ae(0x8b1)]={'ListId':_0x493682?parseInt(_0x493682,0xa):undefined,'CompanyId':_0x58cc22?parseInt(_0x58cc22,0xa):undefined},_0x52bcbe[_0x41c6ae(0x1386)]=_0x41c6ae(0x2030),_0x52bcbe[_0x41c6ae(0x2617)]=!![]):(delete _0x52bcbe[_0x41c6ae(0x8b1)][_0x41c6ae(0x23b0)],_0x52bcbe[_0x41c6ae(0x20a6)]=_0x52bcbe[_0x41c6ae(0x8b1)][_0x41c6ae(0x20a6)]||undefined);_0x52bcbe['addNewContact']=_0x43e1af,_0x52bcbe[_0x41c6ae(0xab3)]=_0x5f0f96,_0x52bcbe[_0x41c6ae(0x2839)]=_0x2814a2,_0x52bcbe[_0x41c6ae(0xda0)]=_0x5097f0,_0x52bcbe['getCustomFields']=_0x3d4b7f,_0x52bcbe[_0x41c6ae(0x2c4)]=_0x3c1c50;function _0x43e1af(){const _0x501722=_0x41c6ae;_0x52bcbe['errors']=[],_0x1f155b[_0x501722(0xbe7)][_0x501722(0x1c3f)](_0x52bcbe[_0x501722(0x8b1)])[_0x501722(0x1d77)]['then'](function(_0x124ef9){const _0x3e4b45=_0x501722;_0x52bcbe['contacts']['unshift'](_0x124ef9),_0x187896[_0x3e4b45(0x829)]({'title':_0x3e4b45(0xe69),'msg':_0x52bcbe[_0x3e4b45(0x8b1)][_0x3e4b45(0x16b6)]?_0x52bcbe[_0x3e4b45(0x8b1)]['name']+_0x3e4b45(0x470):''}),_0x5097f0();})[_0x501722(0x1c4)](function(_0x5a2cc1){const _0x545404=_0x501722;if(_0x5a2cc1[_0x545404(0x25c)]&&_0x5a2cc1[_0x545404(0x25c)][_0x545404(0x1a7c)]&&_0x5a2cc1['data'][_0x545404(0x1a7c)][_0x545404(0xfd0)]){_0x52bcbe['errors']=_0x5a2cc1[_0x545404(0x25c)][_0x545404(0x1a7c)]||[{'message':_0x5a2cc1[_0x545404(0x147f)](),'type':_0x545404(0x102d)}];for(let _0x18026a=0x0;_0x18026a<_0x5a2cc1[_0x545404(0x25c)][_0x545404(0x1a7c)][_0x545404(0xfd0)];_0x18026a++){_0x187896['error']({'title':_0x5a2cc1[_0x545404(0x25c)][_0x545404(0x1a7c)][_0x18026a][_0x545404(0x66a)],'msg':_0x5a2cc1['data']['errors'][_0x18026a][_0x545404(0x155e)]});}}else _0x187896['error']({'title':_0x5a2cc1[_0x545404(0x291)]?'API:'+_0x5a2cc1[_0x545404(0x291)]+'\x20-\x20'+_0x5a2cc1['statusText']:'api.contacts.save','msg':_0x5a2cc1['data']?JSON[_0x545404(0x2701)](_0x5a2cc1['data'][_0x545404(0x155e)]):_0x5a2cc1[_0x545404(0x147f)]()});});}function _0x5f0f96(){const _0x305432=_0x41c6ae;_0x52bcbe[_0x305432(0x1a7c)]=[],_0x1f155b[_0x305432(0xbe7)][_0x305432(0x687)]({'id':_0x52bcbe['contact']['id']},_0x52bcbe[_0x305432(0x8b1)])[_0x305432(0x1d77)][_0x305432(0x1cb0)](function(_0x368a17){const _0x18b3e4=_0x305432,_0x240d75=_0x39641b()['find'](_0x52bcbe['contacts'],{'id':_0x368a17['id']});_0x240d75&&_0x39641b()[_0x18b3e4(0x9c1)](_0x240d75,_0x368a17),_0x187896[_0x18b3e4(0x829)]({'title':_0x18b3e4(0x1a8f),'msg':_0x52bcbe['contact'][_0x18b3e4(0x16b6)]?_0x52bcbe[_0x18b3e4(0x8b1)][_0x18b3e4(0x16b6)]+_0x18b3e4(0xedb):''}),_0x5097f0();})['catch'](function(_0x205cec){const _0x3c4ca9=_0x305432;if(_0x205cec[_0x3c4ca9(0x25c)]&&_0x205cec[_0x3c4ca9(0x25c)][_0x3c4ca9(0x1a7c)]&&_0x205cec[_0x3c4ca9(0x25c)][_0x3c4ca9(0x1a7c)][_0x3c4ca9(0xfd0)]){_0x52bcbe[_0x3c4ca9(0x1a7c)]=_0x205cec[_0x3c4ca9(0x25c)][_0x3c4ca9(0x1a7c)]||[{'message':_0x205cec[_0x3c4ca9(0x147f)](),'type':'api.contact.update'}];for(let _0x5d4ac2=0x0;_0x5d4ac2<_0x205cec[_0x3c4ca9(0x25c)]['errors'][_0x3c4ca9(0xfd0)];_0x5d4ac2++){_0x187896[_0x3c4ca9(0x218e)]({'title':_0x205cec[_0x3c4ca9(0x25c)][_0x3c4ca9(0x1a7c)][_0x5d4ac2][_0x3c4ca9(0x66a)],'msg':_0x205cec[_0x3c4ca9(0x25c)][_0x3c4ca9(0x1a7c)][_0x5d4ac2][_0x3c4ca9(0x155e)]});}}else _0x187896[_0x3c4ca9(0x218e)]({'title':_0x205cec[_0x3c4ca9(0x291)]?_0x3c4ca9(0xeb9)+_0x205cec[_0x3c4ca9(0x291)]+_0x3c4ca9(0x1657)+_0x205cec[_0x3c4ca9(0xc22)]:_0x3c4ca9(0xf65),'msg':_0x205cec[_0x3c4ca9(0x25c)]?JSON['stringify'](_0x205cec[_0x3c4ca9(0x25c)][_0x3c4ca9(0x155e)]):_0x205cec[_0x3c4ca9(0x147f)]()});});}function _0x3d4b7f(_0x3fb66a){const _0xfbbb5f=_0x41c6ae;if(_0x3fb66a)return _0x1f155b[_0xfbbb5f(0x22f2)][_0xfbbb5f(0x178f)]({'id':_0x3fb66a})[_0xfbbb5f(0x1d77)][_0xfbbb5f(0x1cb0)](function(_0x1179ab){const _0x153928=_0xfbbb5f;if(_0x1179ab){_0x52bcbe[_0x153928(0x2242)]=_0x1179ab;const _0x354149=_0x39641b()['map'](_0x52bcbe[_0x153928(0x2242)][_0x153928(0x2214)],function(_0xfc84b2){const _0x16f26d=_0x153928;return _0x16f26d(0x1e4b)+_0xfc84b2['id'];});_0x1f155b[_0x153928(0xbe7)][_0x153928(0xbf7)]({'id':_0x52bcbe['contact']['id'],'attributes':_0x354149,'raw':!![]})['$promise'][_0x153928(0x1cb0)](function(_0x516f7d){const _0x3e2420=_0x153928;_0x52bcbe[_0x3e2420(0x8b1)]=_0x39641b()[_0x3e2420(0x9c1)](_0x52bcbe['contact'],_0x516f7d);});}})[_0xfbbb5f(0x1c4)](function(_0x238898){const _0xd55a0=_0xfbbb5f;console[_0xd55a0(0x218e)](_0x238898);});else _0x52bcbe[_0xfbbb5f(0x2242)]={'rows':[],'count':0x0};}function _0x2814a2(_0x4011e6){const _0x3c2edb=_0x41c6ae;_0x52bcbe[_0x3c2edb(0x1a7c)]=[];const _0x139ba0=_0x3f6c56[_0x3c2edb(0x1551)]()[_0x3c2edb(0x1386)](_0x3c2edb(0x1a2e))[_0x3c2edb(0x862)](_0x3c2edb(0x318))[_0x3c2edb(0x15ad)](_0x3c2edb(0x2539))['ok'](_0x3c2edb(0x2594))['cancel'](_0x3c2edb(0xde1))[_0x3c2edb(0x728)](_0x4011e6);_0x3f6c56[_0x3c2edb(0xe27)](_0x139ba0)[_0x3c2edb(0x1cb0)](function(){const _0x145bab=_0x3c2edb;_0x1f155b['cmContact']['delete']({'id':_0x52bcbe['contact']['id']})[_0x145bab(0x1d77)]['then'](function(){const _0xddcc57=_0x145bab;_0x39641b()['remove'](_0x52bcbe[_0xddcc57(0x7eb)],{'id':_0x52bcbe['contact']['id']}),_0x187896[_0xddcc57(0x829)]({'title':'Contact\x20properly\x20deleted!','msg':_0x52bcbe[_0xddcc57(0x8b1)]['name']?_0x52bcbe[_0xddcc57(0x8b1)][_0xddcc57(0x16b6)]+_0xddcc57(0x3f5):''}),_0x5097f0();})[_0x145bab(0x1c4)](function(_0x42d82c){const _0x548346=_0x145bab;console['error'](_0x42d82c),_0x52bcbe[_0x548346(0x1a7c)]=_0x42d82c[_0x548346(0x25c)][_0x548346(0x1a7c)]||[{'message':_0x42d82c[_0x548346(0x147f)](),'type':_0x548346(0x24e)}];});},function(){});}function _0x3c1c50(_0x53c8f2){return _0x53c8f2===null?undefined:new Date(_0x53c8f2);}function _0x5097f0(){const _0x523f66=_0x41c6ae;_0x3f6c56[_0x523f66(0x1426)]();}}const _0x47b913=_0x3f0c16;;_0x47f6e1[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0x8b1),'contacts','lists',_0x5537c6(0x142b)];function _0x47f6e1(_0x4a3dd9,_0x4d2492,_0x3286ba,_0x3accb7,_0x556836,_0x54e485){const _0x61f911=_0x5537c6,_0x1e3928=this;_0x1e3928[_0x61f911(0x1a7c)]=[],_0x1e3928[_0x61f911(0x1386)]=_0x61f911(0x17cb),_0x1e3928[_0x61f911(0x8b1)]=angular[_0x61f911(0x17fe)](_0x3286ba),_0x1e3928['lists']=_0x556836||{'rows':[],'count':0x0},_0x1e3928['addNewContact']=_0x2e9e48,_0x1e3928['closeDialog']=_0x2b8770;function _0x2e9e48(){const _0x528d58=_0x61f911;_0x1e3928[_0x528d58(0x1a7c)]=[],delete _0x1e3928[_0x528d58(0x8b1)]['id'],_0x1e3928[_0x528d58(0x8b1)][_0x528d58(0xfbf)]&&!_0x1e3928[_0x528d58(0x8b1)][_0x528d58(0xfbf)]['length']&&delete _0x1e3928[_0x528d58(0x8b1)][_0x528d58(0xfbf)],_0x54e485[_0x528d58(0xbe7)][_0x528d58(0x1c3f)](_0x1e3928['contact'])[_0x528d58(0x1d77)][_0x528d58(0x1cb0)](function(_0xbdefc8){const _0x2b685c=_0x528d58;_0x3accb7[_0x2b685c(0xf63)](_0xbdefc8),_0x4d2492[_0x2b685c(0x829)]({'title':_0x2b685c(0xe69),'msg':_0x1e3928[_0x2b685c(0x8b1)]['name']?_0x1e3928[_0x2b685c(0x8b1)][_0x2b685c(0x16b6)]+_0x2b685c(0x470):''}),_0x2b8770();})[_0x528d58(0x1c4)](function(_0x595ec8){const _0x3a5bc2=_0x528d58;console['error'](_0x595ec8),_0x1e3928[_0x3a5bc2(0x1a7c)]=_0x595ec8[_0x3a5bc2(0x25c)][_0x3a5bc2(0x1a7c)]||[{'message':_0x595ec8[_0x3a5bc2(0x147f)](),'type':_0x3a5bc2(0x9a0)}];});}function _0x2b8770(){const _0x24bb56=_0x61f911;_0x4a3dd9[_0x24bb56(0x1426)]();}}const _0x31aa26=_0x47f6e1;;_0x583784[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state',_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x9bf),'hoppers','hopper','api','crudPermissions'];function _0x583784(_0x6b5a6f,_0xbe5419,_0x282d2b,_0x3bbdeb,_0x4db47a,_0x3d7712,_0x12b206,_0x18c4d4,_0x18b626){const _0x2e791e=_0x5537c6,_0x4033d2=this;_0x4033d2[_0x2e791e(0x1a7c)]=[],_0x4033d2[_0x2e791e(0x1386)]=_0x2e791e(0x25f5),_0x4033d2[_0x2e791e(0x2151)]=angular[_0x2e791e(0x17fe)](_0x12b206),_0x4033d2[_0x2e791e(0xe3c)]=_0x3d7712,_0x4033d2[_0x2e791e(0x25f0)]=![],_0x4033d2[_0x2e791e(0x1b1a)]=_0x18b626;!_0x4033d2[_0x2e791e(0x2151)]&&(_0x4033d2[_0x2e791e(0x2151)]={},_0x4033d2[_0x2e791e(0x1386)]=_0x2e791e(0x17bb),_0x4033d2[_0x2e791e(0x25f0)]=!![]);_0x4033d2[_0x2e791e(0x1f48)]=_0x261295,_0x4033d2[_0x2e791e(0x2c4)]=_0x462e84,_0x4033d2[_0x2e791e(0xda0)]=_0x158971;function _0x261295(){const _0x1ccea8=_0x2e791e;_0x4033d2['errors']=[],_0x18c4d4[_0x1ccea8(0x26bc)][_0x1ccea8(0x687)]({'id':_0x4033d2[_0x1ccea8(0x2151)]['id']},_0x4033d2[_0x1ccea8(0x2151)])['$promise'][_0x1ccea8(0x1cb0)](function(_0x5e0957){const _0x5b7de6=_0x1ccea8,_0x4ed56d=_0x39641b()['find'](_0x4033d2[_0x5b7de6(0xe3c)],{'id':_0x5e0957['id']});_0x4ed56d&&_0x39641b()[_0x5b7de6(0x9c1)](_0x4ed56d,_0x5e0957),_0x4db47a['success']({'title':'Hopper\x20properly\x20saved!','msg':_0x4033d2['hopper']['name']?_0x4033d2[_0x5b7de6(0x2151)]['name']+_0x5b7de6(0xedb):''}),_0x158971(_0x5e0957);})['catch'](function(_0x328653){const _0x427337=_0x1ccea8;console[_0x427337(0x218e)](_0x328653),_0x4033d2[_0x427337(0x1a7c)]=_0x328653[_0x427337(0x25c)][_0x427337(0x1a7c)]||[{'message':_0x328653[_0x427337(0x147f)](),'type':_0x427337(0xfec)}];});}function _0x462e84(_0x118350){return _0x118350===null?undefined:new Date(_0x118350);}function _0x158971(_0x4cc090){const _0x5485c4=_0x2e791e;_0x3bbdeb[_0x5485c4(0x1426)](_0x4cc090);}}const _0x259d3a=_0x583784;;const _0xf0b411=_0x5074a3['p']+_0x5537c6(0xbe0);;_0x1c1ef1['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x2168),'$state',_0x5537c6(0x22bf),'$mdDialog',_0x5537c6(0x1ae),'toasty','api',_0x5537c6(0x8b1),'hoppers',_0x5537c6(0x91e),'histories',_0x5537c6(0x7eb),_0x5537c6(0xe1a),_0x5537c6(0x1046),_0x5537c6(0x2242),'tags',_0x5537c6(0x2817),_0x5537c6(0x8a5),_0x5537c6(0x1774),_0x5537c6(0x2199)];function _0x1c1ef1(_0x44dd53,_0x11056f,_0x371769,_0x2c1d83,_0x1d6e23,_0x4ff9af,_0x58707d,_0x20867f,_0x593bab,_0x53579d,_0x16e8c9,_0x4cb95f,_0x39f26f,_0x2d4469,_0x1cac48,_0x13d27f,_0xe0027d,_0x4259cc,_0x688f5a,_0x27df5f,_0x5cc076){const _0x4df53e=_0x5537c6,_0x3ff5ab=this;_0x3ff5ab[_0x4df53e(0xe76)]=_0x27df5f['getCurrentUser'](),_0x3ff5ab['license']=_0x688f5a,_0x3ff5ab[_0x4df53e(0x11a7)]=[],_0x3ff5ab[_0x4df53e(0x8b1)]=_0x593bab||{},_0x3ff5ab[_0x4df53e(0xe3c)]=_0x53579d||{'rows':[],'count':0x0},_0x3ff5ab['finals']=_0x16e8c9||{'rows':[],'count':0x0},_0x3ff5ab[_0x4df53e(0x13a4)]=_0x4cb95f||{'rows':[],'count':0x0},_0x3ff5ab[_0x4df53e(0xe1a)]=_0x2d4469||{'rows':[],'count':0x0},_0x3ff5ab[_0x4df53e(0x1046)]=_0x1cac48||{'rows':[],'count':0x0},_0x3ff5ab[_0x4df53e(0x2242)]=_0x13d27f||{'rows':[],'count':0x0},_0x3ff5ab[_0x4df53e(0xfbf)]=_0xe0027d||{'rows':[],'count':0x0},_0x3ff5ab[_0x4df53e(0x2817)]=_0x4259cc||{'rows':[],'count':0x0},_0x3ff5ab[_0x4df53e(0x1245)]={'scrollEl':_0x4df53e(0x645)},_0x3ff5ab[_0x4df53e(0x1a58)]=new Date(_0x543b5a()()['startOf'](_0x4df53e(0x26ae))[_0x4df53e(0x1030)](0x1,_0x4df53e(0x479))[_0x4df53e(0x17d9)](0x0,!![])[_0x4df53e(0x1f31)]()),_0x3ff5ab[_0x4df53e(0x15bb)]=new Date(_0x543b5a()()[_0x4df53e(0x1b4)](_0x4df53e(0x26ae))[_0x4df53e(0x1030)](0x1,_0x4df53e(0x1a5))[_0x4df53e(0x17d9)](0x0,!![])[_0x4df53e(0x1f31)]()),_0x3ff5ab[_0x4df53e(0x2199)]=_0x5cc076&&_0x5cc076[_0x4df53e(0x184d)]==0x1?_0x5cc076[_0x4df53e(0x2214)][0x0]:null,_0x3ff5ab[_0x4df53e(0x1b1a)]=_0x27df5f['parseCrudPermissions'](_0x3ff5ab['userProfileSection']?_0x3ff5ab[_0x4df53e(0x2199)][_0x4df53e(0x1b1a)]:null),_0x3ff5ab[_0x4df53e(0x234b)]=_0x39641b()[_0x4df53e(0x2631)]([{'option':_0x4df53e(0xc6c),'value':_0x4df53e(0x4d3)},{'option':_0x4df53e(0x1173),'value':_0x4df53e(0xf37)},{'option':_0x4df53e(0x274b),'value':_0x4df53e(0x1f8d)},{'option':_0x4df53e(0x1ec),'value':_0x4df53e(0x11e4)},{'option':'Lowest','value':'\x270\x27'}],function(_0x25107c){const _0x22fa68=_0x4df53e;return _0x39641b()[_0x22fa68(0x288f)](_0x25107c[_0x22fa68(0x327)],new RegExp('\x27','g'),'');}),_0x3ff5ab[_0x4df53e(0x103b)]={'fields':_0x4df53e(0x2876),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x3ff5ab[_0x4df53e(0x588)]={'fields':_0x4df53e(0x9f2),'sort':_0x4df53e(0x7d0),'limit':0xa,'page':0x1},_0x3ff5ab[_0x4df53e(0x2530)]={'fields':_0x4df53e(0x30c),'sort':_0x4df53e(0x7d0),'limit':0xa,'page':0x1},_0x3ff5ab[_0x4df53e(0xb05)]={'fields':'id,starttime,endtime,membername,projectname','sort':_0x4df53e(0x104c),'limit':0xa,'page':0x1},_0x3ff5ab[_0x4df53e(0x8ec)]=_0x371769[_0x4df53e(0x1dfe)][_0x4df53e(0x291e)]||0x0,_0x3ff5ab[_0x4df53e(0x1a34)]=_0x3756f8,_0x3ff5ab['gotoContacts']=_0x4c34a4,_0x3ff5ab[_0x4df53e(0x211a)]=_0x4e3937,_0x3ff5ab['saveContact']=_0x53ab36,_0x3ff5ab[_0x4df53e(0x1dcc)]=_0x5b35ca,_0x3ff5ab[_0x4df53e(0x247c)]=_0x38657e,_0x3ff5ab['onSelectListSuccess']=_0x239e1d,_0x3ff5ab[_0x4df53e(0x2c4)]=_0x123dfe,_0x3ff5ab[_0x4df53e(0xb46)]=_0x319a11,_0x3ff5ab[_0x4df53e(0x27cd)]=_0x3066da,_0x3ff5ab[_0x4df53e(0xa3b)]=_0x5e3673,_0x3ff5ab[_0x4df53e(0x6b5)]=_0x274002,_0x3ff5ab[_0x4df53e(0x27fe)]=_0x3eb972,_0x3ff5ab['editHopper']=_0x10de80,_0x3ff5ab[_0x4df53e(0x19c2)]=_0x63c4b4,_0x3ff5ab[_0x4df53e(0x296)]=_0x2099b3;let _0x34953b=!![],_0x3ad097=0x1;_0x44dd53['$watch'](_0x4df53e(0x25e8),function(_0xc93e80,_0x2ff15d){const _0x594afb=_0x4df53e;_0x34953b?_0x11056f(function(){_0x34953b=![];}):(!_0x2ff15d&&(_0x3ad097=_0x3ff5ab['queryHopper']['page']),_0xc93e80!==_0x2ff15d&&(_0x3ff5ab[_0x594afb(0x103b)][_0x594afb(0x1c7b)]=0x1),!_0xc93e80&&(_0x3ff5ab[_0x594afb(0x103b)][_0x594afb(0x1c7b)]=_0x3ad097),_0x3ff5ab[_0x594afb(0xb46)]());}),_0x44dd53['$watch'](_0x4df53e(0x1182),function(_0xd98e60,_0x529561){const _0x3e9289=_0x4df53e;_0x34953b?_0x11056f(function(){_0x34953b=![];}):(!_0x529561&&(_0x3ad097=_0x3ff5ab[_0x3e9289(0x588)][_0x3e9289(0x1c7b)]),_0xd98e60!==_0x529561&&(_0x3ff5ab[_0x3e9289(0x588)][_0x3e9289(0x1c7b)]=0x1),!_0xd98e60&&(_0x3ff5ab[_0x3e9289(0x588)][_0x3e9289(0x1c7b)]=_0x3ad097),_0x3ff5ab[_0x3e9289(0x27cd)]());}),_0x44dd53[_0x4df53e(0x614)](_0x4df53e(0x1a6c),function(_0x51a30b,_0x187417){const _0x323827=_0x4df53e;_0x34953b?_0x11056f(function(){_0x34953b=![];}):(!_0x187417&&(_0x3ad097=_0x3ff5ab[_0x323827(0x2530)][_0x323827(0x1c7b)]),_0x51a30b!==_0x187417&&(_0x3ff5ab['queryHistory'][_0x323827(0x1c7b)]=0x1),!_0x51a30b&&(_0x3ff5ab[_0x323827(0x2530)][_0x323827(0x1c7b)]=_0x3ad097),_0x3ff5ab[_0x323827(0xa3b)]());});function _0x3ebe3e(_0x174f86){const _0x4cab88=_0x4df53e;switch(_0x174f86){case _0x4cab88(0x174c):return _0x4cab88(0x7b5);case'mail':return _0x4cab88(0x15f2);case _0x4cab88(0x689):return _0x4cab88(0x1373);case _0x4cab88(0x15e0):return _0x4cab88(0x1f1f);case _0x4cab88(0x1944):return _0x4cab88(0x2080);case _0x4cab88(0x2476):return _0x4cab88(0x1995);default:return _0x4cab88(0x292e);}}function _0x2099b3(_0x42adc1){const _0x2a85f9=_0x4df53e;let _0x58ca66='';if(_0x42adc1[_0x2a85f9(0x18e9)])_0x58ca66=_0x2a85f9(0x1944);else{if(_0x42adc1['OpenchannelAccountId'])_0x58ca66=_0x2a85f9(0x15e0);else{if(_0x42adc1[_0x2a85f9(0x1a2)])_0x58ca66=_0x2a85f9(0x689);else{if(_0x42adc1[_0x2a85f9(0x1285)])_0x58ca66='mail';else{if(_0x42adc1[_0x2a85f9(0x67c)])_0x58ca66='chat';else _0x42adc1[_0x2a85f9(0x1451)]&&(_0x58ca66=_0x2a85f9(0x1fd4));}}}}return _0x3ebe3e(_0x58ca66);}function _0x47d3df(_0x2b6119){return function(_0x5b9ba1){_0x3ff5ab[_0x2b6119]=_0x5b9ba1||{'count':0x0,'rows':[]};};}function _0x3756f8(){const _0x4c683c=_0x4df53e;return!_0x27df5f[_0x4c683c(0x22b6)](_0x4c683c(0x1c60))&&(_0x53e484(),_0x561acd()),_0x20867f[_0x4c683c(0xebe)][_0x4c683c(0xbf7)]({'fields':_0x4c683c(0x1cc4),'nolimit':!![]})[_0x4c683c(0x1d77)][_0x4c683c(0x1cb0)](function(_0x3055a5){const _0x5541fc=_0x4c683c;_0x3ff5ab['users']=_0x3055a5||{'count':0x0,'rows':[]},_0x3ff5ab[_0x5541fc(0x176)]=_0x39641b()['mapValues'](_0x39641b()[_0x5541fc(0x2631)](_0x3ff5ab[_0x5541fc(0x1e30)]['rows'],'id'),_0x5541fc(0x1d14)),_0x3ff5ab[_0x5541fc(0x190)]=_0x39641b()[_0x5541fc(0x1de2)](_0x3ff5ab[_0x5541fc(0x8b1)]['Tags'],'id');})[_0x4c683c(0x1cb0)](_0x2344be(_0x593bab));}function _0x53e484(){const _0x181f1b=_0x4df53e,_0x576964=_0x39641b()[_0x181f1b(0x727)](_0x3ff5ab[_0x181f1b(0xe1a)][_0x181f1b(0x2214)],{'id':_0x3ff5ab[_0x181f1b(0x8b1)][_0x181f1b(0x27ac)]});if(!_0x576964)return _0x20867f[_0x181f1b(0x107a)]['get']({'id':_0x3ff5ab[_0x181f1b(0x8b1)]['CompanyId'],'fields':_0x181f1b(0x43c)})['$promise']['then'](function(_0x4c136b){const _0x2f8979=_0x181f1b,_0x483eb1=_0x4c136b[_0x2f8979(0x19b2)]();_0x483eb1[_0x2f8979(0x15da)]=![],_0x3ff5ab[_0x2f8979(0xe1a)][_0x2f8979(0x2214)]['push'](_0x483eb1);})[_0x181f1b(0x1c4)](function(_0x11f894){const _0x1a7896=_0x181f1b;_0x58707d[_0x1a7896(0x218e)]({'title':_0x11f894[_0x1a7896(0x291)]?_0x1a7896(0xeb9)+_0x11f894['status']+'\x20-\x20'+_0x11f894[_0x1a7896(0xc22)]:_0x1a7896(0x1f2),'msg':_0x11f894[_0x1a7896(0x25c)]?JSON[_0x1a7896(0x2701)](_0x11f894['data'][_0x1a7896(0x155e)]):_0x11f894[_0x1a7896(0x147f)]()});});}function _0x561acd(){const _0x5ffcbf=_0x4df53e,_0x33195b=_0x39641b()[_0x5ffcbf(0x1de2)](_0x3ff5ab['contact'][_0x5ffcbf(0x190)],function(_0x209b88){return{'id':_0x209b88['id'],'name':_0x209b88['name']};});if(!_0x39641b()[_0x5ffcbf(0xce9)](_0x33195b))for(let _0x4974f6=0x0;_0x4974f6<_0x33195b['length'];_0x4974f6++){!_0x39641b()[_0x5ffcbf(0x727)](_0x3ff5ab[_0x5ffcbf(0xfbf)]['rows'],{'id':_0x33195b['id']})&&(_0x33195b[_0x4974f6][_0x5ffcbf(0x15da)]=![],_0x3ff5ab[_0x5ffcbf(0xfbf)][_0x5ffcbf(0x2214)]['push'](_0x33195b[_0x4974f6]));}}function _0x44e143(_0x530270){const _0x1a284b=_0x4df53e;if(!_0x530270['disposition'])return'('+_0x4ff9af[_0x1a284b(0x25cc)](_0x1a284b(0x334))+')';const _0x25502b=_0x39641b()[_0x1a284b(0xc67)]([_0x530270[_0x1a284b(0x1746)],_0x530270['secondDisposition'],_0x530270['thirdDisposition']]);return'('+_0x25502b['join']('\x20-\x20')+')';}function _0x2f6305(_0x290b4c){const _0x56c529=_0x4df53e;_0x290b4c&&_0x290b4c[_0x56c529(0x184d)]&&_0x290b4c[_0x56c529(0x2214)][_0x56c529(0xfd0)]&&(_0x3ff5ab['journey']=_0x39641b()[_0x56c529(0x298a)](_0x3ff5ab[_0x56c529(0x11a7)],_0x290b4c[_0x56c529(0x2214)]),_0x3ff5ab[_0x56c529(0x11a7)]['forEach'](function(_0x11a7d0){_0x11a7d0['dispositionsValues']=_0x44e143(_0x11a7d0);}));}function _0x2344be(_0x596663){const _0x2411c2=_0x4df53e,_0x2ac4b4=['mail',_0x2411c2(0x174c),_0x2411c2(0x689),_0x2411c2(0x15e0),_0x2411c2(0x1944)];if(_0x596663&&_0x596663['id']){for(let _0xec471e=0x0;_0xec471e<_0x2ac4b4[_0x2411c2(0xfd0)];_0xec471e++){_0x20867f[_0x2ac4b4[_0xec471e]+'Interaction'][_0x2411c2(0xbf7)]({'ContactId':_0x596663['id'],'includeAll':!![]})[_0x2411c2(0x1d77)][_0x2411c2(0x1cb0)](_0x2f6305);}_0x20867f[_0x2411c2(0x11f2)][_0x2411c2(0xbf7)]({'ContactId':_0x596663['id'],'includeAll':!![]})[_0x2411c2(0x1d77)]['then'](_0x2f6305)[_0x2411c2(0x1c4)](function(_0x472d1d){const _0x3ffb6d=_0x2411c2;console[_0x3ffb6d(0x218e)](_0x472d1d);});}}function _0x10de80(_0x42e7ef,_0x3cb231){const _0x1d3fb9=_0x4df53e;_0x1d6e23['show']({'controller':_0x1d3fb9(0x1acc),'controllerAs':'vm','templateUrl':_0x30626d,'parent':angular[_0x1d3fb9(0x1853)](_0x2c1d83[_0x1d3fb9(0x1ed9)]),'targetEvent':_0x42e7ef,'clickOutsideToClose':!![],'locals':{'hopper':_0x3cb231,'hoppers':_0x3ff5ab[_0x1d3fb9(0xe3c)][_0x1d3fb9(0x2214)],'license':null,'setting':null,'crudPermissions':_0x3ff5ab[_0x1d3fb9(0x1b1a)]}});}function _0x63c4b4(_0x55f3a0,_0x5a8eba){const _0x114f2c=_0x4df53e;_0x1d6e23[_0x114f2c(0xe27)]({'controller':_0x114f2c(0x1601),'controllerAs':'vm','templateUrl':_0xf0b411,'parent':angular[_0x114f2c(0x1853)](_0x2c1d83[_0x114f2c(0x1ed9)]),'targetEvent':_0x55f3a0,'clickOutsideToClose':!![],'locals':{'hopper':_0x5a8eba,'hoppers':_0x3ff5ab[_0x114f2c(0xe3c)][_0x114f2c(0x2214)],'license':null,'setting':null,'crudPermissions':_0x3ff5ab[_0x114f2c(0x1b1a)]}});}function _0x3eb972(_0x3b9a85,_0x1c767b){const _0x223b15=_0x4df53e,_0x575116=_0x1d6e23[_0x223b15(0x1551)]()[_0x223b15(0x1386)](_0x223b15(0x626))['htmlContent'](_0x223b15(0x204d)+(_0x3b9a85['phone']||_0x223b15(0x2151))+_0x223b15(0x1200)+_0x223b15(0x1b6))['ariaLabel']('delete\x20hopper')[_0x223b15(0x728)](_0x1c767b)['ok']('OK')['cancel'](_0x223b15(0x24ba));_0x1d6e23[_0x223b15(0xe27)](_0x575116)[_0x223b15(0x1cb0)](function(){_0x50f753(_0x3b9a85);},function(){const _0x10ee92=_0x223b15;console[_0x10ee92(0x1b4f)]('CANCEL');});}function _0x50f753(_0x66c122){const _0x2739f9=_0x4df53e;return _0x20867f[_0x2739f9(0x26bc)][_0x2739f9(0x111d)]({'id':_0x66c122['id']})['$promise']['then'](function(){const _0x2cdc74=_0x2739f9;_0x39641b()[_0x2cdc74(0x152a)](_0x3ff5ab[_0x2cdc74(0xe3c)]['rows'],{'id':_0x66c122['id']}),_0x3ff5ab[_0x2cdc74(0xe3c)][_0x2cdc74(0x184d)]--,!_0x3ff5ab[_0x2cdc74(0xe3c)][_0x2cdc74(0x2214)][_0x2cdc74(0xfd0)]&&_0x3ff5ab[_0x2cdc74(0xb46)](),_0x58707d['success']({'title':_0x2cdc74(0x1aaa),'msg':_0x66c122[_0x2cdc74(0x1340)]?_0x66c122['phone']+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x43ec7f){const _0x593699=_0x2739f9;_0x58707d['error']({'title':_0x43ec7f[_0x593699(0x291)]?_0x593699(0xeb9)+_0x43ec7f[_0x593699(0x291)]+_0x593699(0x1657)+_0x43ec7f[_0x593699(0xc22)]:'SYSTEM:DELETEhopper','msg':_0x43ec7f[_0x593699(0x25c)]?JSON['stringify'](_0x43ec7f['data']):_0x43ec7f[_0x593699(0x147f)]()});});}function _0x319a11(){const _0xe508e5=_0x4df53e;_0x3ff5ab[_0xe508e5(0x103b)][_0xe508e5(0x184b)]=(_0x3ff5ab[_0xe508e5(0x103b)][_0xe508e5(0x1c7b)]-0x1)*_0x3ff5ab[_0xe508e5(0x103b)]['limit'],_0x3ff5ab[_0xe508e5(0x103b)]['id']=_0x3ff5ab[_0xe508e5(0x8b1)]['id'],_0x3ff5ab[_0xe508e5(0x2061)]=_0x20867f[_0xe508e5(0xbe7)]['getHoppers'](_0x3ff5ab[_0xe508e5(0x103b)],_0x47d3df(_0xe508e5(0xe3c)))[_0xe508e5(0x1d77)];}function _0x3066da(){const _0x31a9c4=_0x4df53e;_0x3ff5ab[_0x31a9c4(0x588)][_0x31a9c4(0x184b)]=(_0x3ff5ab['queryFinal'][_0x31a9c4(0x1c7b)]-0x1)*_0x3ff5ab[_0x31a9c4(0x588)][_0x31a9c4(0x236)],_0x3ff5ab[_0x31a9c4(0x588)]['id']=_0x3ff5ab['contact']['id'],_0x3ff5ab[_0x31a9c4(0x2061)]=_0x20867f['cmContact'][_0x31a9c4(0x64e)](_0x3ff5ab[_0x31a9c4(0x588)],_0x47d3df(_0x31a9c4(0x91e)))[_0x31a9c4(0x1d77)];}function _0x5e3673(){const _0x359265=_0x4df53e;_0x3ff5ab['queryHistory'][_0x359265(0x184b)]=(_0x3ff5ab[_0x359265(0x2530)][_0x359265(0x1c7b)]-0x1)*_0x3ff5ab['queryHistory'][_0x359265(0x236)],_0x3ff5ab['queryHistory']['id']=_0x3ff5ab['contact']['id'],_0x3ff5ab[_0x359265(0x2061)]=_0x20867f[_0x359265(0xbe7)][_0x359265(0x116a)](_0x3ff5ab[_0x359265(0x2530)],_0x47d3df(_0x359265(0x13a4)))[_0x359265(0x1d77)];}function _0x274002(){const _0x1aae7b=_0x4df53e;_0x3ff5ab[_0x1aae7b(0xb05)][_0x1aae7b(0x184b)]=(_0x3ff5ab[_0x1aae7b(0xb05)][_0x1aae7b(0x1c7b)]-0x1)*_0x3ff5ab[_0x1aae7b(0xb05)][_0x1aae7b(0x236)],_0x3ff5ab[_0x1aae7b(0xb05)]['id']=_0x3ff5ab[_0x1aae7b(0x8b1)]['id'],_0x3ff5ab[_0x1aae7b(0x2061)]=_0x20867f['cmContact']['getJscriptySessions'](_0x3ff5ab[_0x1aae7b(0xb05)],_0x47d3df(_0x1aae7b(0x2817)))[_0x1aae7b(0x1d77)];}function _0x38657e(_0x2cf59d){const _0x2c56b8=_0x4df53e;if(_0x3ff5ab[_0x2c56b8(0x8b1)][_0x2c56b8(0x20a6)]){const _0x3254b6=_0x1d6e23[_0x2c56b8(0x1551)]()[_0x2c56b8(0x1386)](_0x2c56b8(0x213e)+_0x3ff5ab[_0x2c56b8(0x8b1)][_0x2c56b8(0x20a6)])['textContent']('Warning!\x20You\x20won\x27t\x20select\x20a\x20different\x20list\x20for\x20the\x20contact\x20'+_0x3ff5ab['contact'][_0x2c56b8(0x1491)]||0x0||0x0)[_0x2c56b8(0x728)](_0x2cf59d)['ok']('Ok')[_0x2c56b8(0x696)](_0x2c56b8(0xde1));return _0x1d6e23[_0x2c56b8(0xe27)](_0x3254b6)[_0x2c56b8(0x1cb0)](_0x3ff5ab[_0x2c56b8(0x2cf)])[_0x2c56b8(0x1c4)](function(){const _0x8439dc=_0x2c56b8;_0x3ff5ab[_0x8439dc(0x8b1)][_0x8439dc(0x20a6)]=null;});}}function _0x239e1d(){const _0x1cca94=_0x4df53e;return _0x20867f['cmList'][_0x1cca94(0x178f)]({'id':_0x3ff5ab[_0x1cca94(0x8b1)][_0x1cca94(0x20a6)]})[_0x1cca94(0x1d77)][_0x1cca94(0x1cb0)](function(_0x4425be){_0x3ff5ab['customFields']=_0x4425be||{'rows':[],'count':0x0};})[_0x1cca94(0x1c4)](function(_0x1741de){const _0x5204df=_0x1cca94;console[_0x5204df(0x218e)](_0x1741de);});}function _0x46f79f(){const _0x1dea8d=_0x4df53e;return _0x20867f[_0x1dea8d(0x2199)][_0x1dea8d(0xbf7)]({'userProfileId':_0x3ff5ab[_0x1dea8d(0xe76)]['userProfileId'],'sectionId':0x12e})[_0x1dea8d(0x1d77)][_0x1dea8d(0x1cb0)](function(_0x549ced){const _0x2d4004=_0x1dea8d,_0x49e5fc=_0x549ced[_0x2d4004(0x2214)]?_0x549ced[_0x2d4004(0x2214)][0x0]:null;return _0x27df5f[_0x2d4004(0x14ea)](_0x49e5fc?_0x49e5fc['crudPermissions']:null);})[_0x1dea8d(0x1c4)](function(_0x1cba35){const _0x44535d=_0x1dea8d;_0x58707d[_0x44535d(0x218e)]({'title':_0x1cba35[_0x44535d(0x291)]?_0x44535d(0xeb9)+_0x1cba35[_0x44535d(0x291)]+_0x44535d(0x1657)+_0x1cba35[_0x44535d(0xc22)]:_0x44535d(0x18b5),'msg':_0x1cba35[_0x44535d(0x25c)]?JSON[_0x44535d(0x2701)](_0x1cba35[_0x44535d(0x25c)]):_0x1cba35[_0x44535d(0x147f)]()});});}function _0x5b35ca(_0x4593eb,_0xdd386d){const _0x223a03=_0x4df53e,_0x34660b=_0x39641b()[_0x223a03(0x13b4)](_0x3ff5ab['companies']['rows'],{'id':_0xdd386d});_0x1d6e23[_0x223a03(0xe27)]({'controller':_0x223a03(0xeec),'controllerAs':'vm','templateUrl':_0x4f1710,'parent':angular['element'](_0x2c1d83['body']),'targetEvent':_0x4593eb,'clickOutsideToClose':!![],'locals':{'companies':[],'license':null,'setting':null,'crudPermissions':_0x34660b[_0x223a03(0x15da)]===![]?{'readOnly':!![],'canEdit':![],'canDelete':![]}:_0x46f79f()},'resolve':{'company':[_0x223a03(0x1e0b),function(_0x195784){const _0x5a944c=_0x223a03;return _0x195784['resolve'](_0x5a944c(0x60d),{'id':_0xdd386d});}]}});}function _0x4e3937(_0x4dd281){const _0x48fafd=_0x4df53e;_0x1d6e23[_0x48fafd(0xe27)]({'controller':_0x48fafd(0xc73),'controllerAs':'vm','templateUrl':_0x4e0982,'parent':angular[_0x48fafd(0x1853)](_0x2c1d83[_0x48fafd(0x1ed9)]),'targetEvent':_0x4dd281,'clickOutsideToClose':!![],'resolve':{'lists':[_0x48fafd(0x1e0b),_0x48fafd(0x1774),function(_0x4c8b18,_0x574945){const _0x314186=_0x48fafd;return _0x574945[_0x314186(0x22b6)]('admin')?_0x4c8b18['resolve'](_0x314186(0x1b1f),{'fields':_0x314186(0x43c)}):_0x4c8b18[_0x314186(0x19a3)]('userProfile@getResources',{'id':_0x3ff5ab[_0x314186(0xe76)]['userProfileId'],'section':'Lists','fields':_0x314186(0x43c)});}]},'locals':{'contacts':_0x39f26f['rows'],'contact':_0x593bab}});}function _0x53ab36(){const _0x23e5bc=_0x4df53e;_0x20867f[_0x23e5bc(0xbe7)][_0x23e5bc(0x687)]({'id':_0x3ff5ab[_0x23e5bc(0x8b1)]['id']},_0x3ff5ab['contact'])['$promise'][_0x23e5bc(0x1cb0)](function(){const _0x2979eb=_0x23e5bc;_0x58707d[_0x2979eb(0x829)]({'title':_0x2979eb(0x1728),'msg':_0x3ff5ab[_0x2979eb(0x8b1)]['name']?_0x3ff5ab[_0x2979eb(0x8b1)][_0x2979eb(0x16b6)]+_0x2979eb(0x1068):''});})[_0x23e5bc(0x1cb0)](function(){const _0xdc8947=_0x23e5bc;return _0x20867f['cmContact'][_0xdc8947(0xe53)]({'id':_0x3ff5ab[_0xdc8947(0x8b1)]['id'],'ids':_0x3ff5ab[_0xdc8947(0x190)]})[_0xdc8947(0x1d77)];})['catch'](function(_0x284948){const _0x1ad92d=_0x23e5bc;_0x58707d['error']({'title':_0x284948[_0x1ad92d(0x291)]?_0x1ad92d(0xeb9)+_0x284948[_0x1ad92d(0x291)]+_0x1ad92d(0x1657)+_0x284948[_0x1ad92d(0xc22)]:'SYSTEM:UPDATEcontact','msg':_0x284948[_0x1ad92d(0x25c)]?JSON[_0x1ad92d(0x2701)](_0x284948[_0x1ad92d(0x25c)]):_0x284948['toString']()});});}function _0x123dfe(_0x37e309){return _0x37e309===null?undefined:new Date(_0x37e309);}function _0x4c34a4(){_0x371769['go']('app.contactmanager.contacts',{},{'reload':!![],'notify':!![]});}}const _0xb232f=_0x1c1ef1;;_0x13f6d8[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0xcb9),_0x5537c6(0x1714),'$q',_0x5537c6(0x2168),_0x5537c6(0x1046),_0x5537c6(0xe1a),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1986),_0x5537c6(0x1463),'file',_0x5537c6(0x355),_0x5537c6(0x8a5)];function _0x13f6d8(_0x4940b6,_0x3217b0,_0x1c0b96,_0x25cd1d,_0x3bf50f,_0x8349cc,_0x4a0c3f,_0x37ec59,_0x48e3a3,_0x4be3d3,_0x4877a4,_0x214ef5,_0x495a9b,_0x23254f){const _0x359047=_0x5537c6,_0x5a553c=this;_0x5a553c[_0x359047(0x1302)]=![],_0x5a553c['stopping']=!![],_0x5a553c['license']=_0x23254f,_0x5a553c[_0x359047(0x2d5)]=0x0,_0x5a553c[_0x359047(0x1205)]={'finish':![],'rows':0x0,'affectedRows':0x0,'failedRows':0x0,'duplicatedRows':0x0,'errors':[]},_0x5a553c['contactFields']=[{'key':_0x359047(0x1491),'required':!![]},{'key':_0x359047(0x1fbb),'required':![]},{'key':_0x359047(0x1340),'required':!![]},{'key':_0x359047(0x1ce6),'required':![]},{'key':_0x359047(0x1e19),'required':![]},{'key':_0x359047(0xdda),'required':![]},{'key':_0x359047(0x5c4),'required':![]},{'key':_0x359047(0x8e8),'required':![]},{'key':'street','required':![]},{'key':_0x359047(0xda7),'required':![]},{'key':'fax','required':![]}],_0x5a553c['motionBullFields']=[{'key':_0x359047(0x21ab),'required':![]},{'key':_0x359047(0x2251),'required':![]},{'key':_0x359047(0x521),'required':![]}],_0x5a553c[_0x359047(0x13d7)]={},_0x5a553c[_0x359047(0xcde)]=[],_0x5a553c[_0x359047(0x1046)]=_0x8349cc||{'rows':[],'count':0x0},_0x5a553c['companies']=_0x4a0c3f||{'rows':[],'count':0x0},_0x5a553c['customFields']={'rows':[],'count':0x0},_0x5a553c[_0x359047(0x355)]=_0x495a9b||[],_0x5a553c[_0x359047(0xda0)]=_0x197055,_0x5a553c[_0x359047(0x23ee)]=_0x2f9f52,_0x5a553c[_0x359047(0xd0e)]=_0x1c812c,_0x5a553c[_0x359047(0x2a3)]=_0x533b09,_0x5a553c['getArrayErrors']=_0x9222fe,_0x5a553c[_0x359047(0x35a)]=_0x1668ef;const _0x4fe784=_0x543b5a()()[_0x359047(0x2939)]();_0x4be3d3['on'](_0x359047(0x119e)+_0x4fe784,_0x1f9767);function _0x2f9f52(){const _0x5dc20c=_0x359047;return _0x48e3a3[_0x5dc20c(0x22f2)][_0x5dc20c(0x178f)]({'id':_0x5a553c[_0x5dc20c(0x20a6)]})[_0x5dc20c(0x1d77)][_0x5dc20c(0x1cb0)](function(_0x200db3){const _0x54cd0a=_0x5dc20c;_0x5a553c[_0x54cd0a(0x2242)]=_0x200db3;})[_0x5dc20c(0x1c4)](function(_0x557b25){const _0x27cd47=_0x5dc20c;console[_0x27cd47(0x218e)](_0x557b25);});}function _0x1c812c(){const _0x20c0f5=_0x359047;_0x5a553c[_0x20c0f5(0x1302)]=_0x543b5a()(),_0x48e3a3[_0x20c0f5(0xbe7)][_0x20c0f5(0x250c)]({'id':_0x214ef5[_0x20c0f5(0x179a)],'binding':_0x5a553c[_0x20c0f5(0x13d7)],'ListId':_0x5a553c['ListId'],'CompanyId':_0x5a553c['CompanyId'],'duplicates':_0x5a553c[_0x20c0f5(0x1132)],'socket_timestamp':_0x4fe784})[_0x20c0f5(0x1d77)]['then'](function(_0xea70e4){const _0x612382=_0x20c0f5;_0x5a553c[_0x612382(0x1276)]=![],_0xea70e4&&_0xea70e4[_0x612382(0x2d5)]&&(_0x5a553c['pid']=_0xea70e4[_0x612382(0x2d5)]);})['catch'](function(){const _0x1da968=_0x20c0f5;_0x5a553c[_0x1da968(0x1302)]=![],_0x37ec59['error']({'title':_0x1da968(0xea7),'msg':_0x1da968(0x1a2d)});});}function _0x1f9767(_0x5b0799){_0x3bf50f(function(){const _0x86984e=a0_0x5cbd;_0x5a553c['result'][_0x86984e(0x2214)]=_0x5b0799['rows'];if(_0x5b0799[_0x86984e(0x1a7c)])for(let _0x27a2d1=0x0;_0x27a2d1<_0x5b0799[_0x86984e(0x1a7c)][_0x86984e(0xfd0)];_0x27a2d1++){_0x5a553c[_0x86984e(0x1205)][_0x86984e(0x1a7c)][_0x86984e(0x2785)](_0x5b0799[_0x86984e(0x1a7c)][_0x27a2d1]);}if(_0x5b0799[_0x86984e(0x1af0)]){_0x5a553c[_0x86984e(0x1205)]['finish']=!![],_0x5a553c['result'][_0x86984e(0xf17)]=_0x5b0799[_0x86984e(0xf17)],_0x5a553c[_0x86984e(0x1205)][_0x86984e(0x1f2e)]=_0x5a553c['result'][_0x86984e(0x1a7c)][_0x86984e(0xfd0)];const _0x156628=_0x5a553c[_0x86984e(0x1205)][_0x86984e(0x2214)]-_0x5a553c[_0x86984e(0x1205)][_0x86984e(0xf17)]-_0x5a553c[_0x86984e(0x1205)]['errors'][_0x86984e(0xfd0)];_0x156628&&_0x156628>0x0&&(_0x5a553c[_0x86984e(0x1132)][_0x86984e(0xfd0)]?_0x5a553c['result'][_0x86984e(0x647)]=_0x156628:_0x5a553c[_0x86984e(0x1205)][_0x86984e(0x1f2e)]+=_0x156628),_0x5a553c[_0x86984e(0x1205)][_0x86984e(0x1851)]=_0x543b5a()()[_0x86984e(0xd42)](_0x5a553c[_0x86984e(0x1302)],'seconds');}});}function _0x533b09(){const _0x26841c=_0x359047,_0x4b259b=_0x495a9b;return _0x4b259b['push'](_0x26841c(0x2603)),_0x4b259b;}function _0x9222fe(){const _0x615f82=_0x359047,_0x16799c=[];for(let _0x58421f=0x0;_0x58421f<_0x5a553c['result']['errors'][_0x615f82(0xfd0)];_0x58421f+=0x1){const _0x1eb13d=_0x5a553c['result'][_0x615f82(0x1a7c)][_0x58421f][_0x615f82(0x1fec)];_0x1eb13d[_0x615f82(0x2603)]=_0x5a553c[_0x615f82(0x1205)][_0x615f82(0x1a7c)][_0x58421f][_0x615f82(0x155e)],_0x16799c['push'](_0x1eb13d);}return _0x16799c;}function _0x1668ef(){const _0x134d11=_0x359047;_0x5a553c[_0x134d11(0x1276)]=!![];if(_0x5a553c[_0x134d11(0x2d5)])return _0x48e3a3[_0x134d11(0x7be)][_0x134d11(0x2912)]({'pid':_0x5a553c[_0x134d11(0x2d5)]})[_0x134d11(0x1d77)][_0x134d11(0x1cb0)](function(){const _0x350384=_0x134d11;_0x37ec59['success']({'title':_0x350384(0xf9f),'msg':_0x350384(0x2578)});})[_0x134d11(0x1c4)](function(){const _0x3b59bb=_0x134d11;_0x37ec59['error']({'title':_0x3b59bb(0xe1b),'msg':'pid\x20is\x20unknown'});});}_0x4877a4['$on'](_0x359047(0x291c),function(){const _0x41995a=_0x359047;_0x4be3d3[_0x41995a(0xfb8)](_0x41995a(0x119e)+_0x4fe784);});function _0x197055(){const _0x27bf74=_0x359047;_0x4be3d3['removeAllListeners'](_0x27bf74(0x119e)+_0x4fe784),_0x3217b0[_0x27bf74(0x1426)]();}}const _0x2bdd18=_0x13f6d8;;_0x240625[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$scope',_0x5537c6(0x9bf),_0x5537c6(0x8b1),_0x5537c6(0x7eb),'lists',_0x5537c6(0x142b)];function _0x240625(_0x3cc57,_0x2d7913,_0x519d40,_0x511bc7,_0x42a620,_0x28b619,_0x2acd44){const _0x174c75=_0x5537c6,_0x25ec72=this;_0x25ec72[_0x174c75(0x1a7c)]=[],_0x25ec72['title']=_0x174c75(0x2574),_0x25ec72['contact']=angular['copy'](_0x511bc7),_0x25ec72[_0x174c75(0x1046)]=_0x28b619||[],_0x25ec72['change']=function(){const _0x4a39f3=_0x174c75;_0x25ec72['searchTerm']?_0x2acd44[_0x4a39f3(0xbe7)]['get']({'fields':_0x4a39f3(0x27bf),'filter':_0x25ec72[_0x4a39f3(0xe42)],'ListId':_0x511bc7['ListId']})[_0x4a39f3(0x1d77)]['then'](function(_0x275021){const _0x4c1eab=_0x4a39f3;_0x25ec72[_0x4c1eab(0x7eb)]=_0x275021['rows'];})[_0x4a39f3(0x1c4)](function(_0x1e80f5){const _0x34c142=_0x4a39f3;console[_0x34c142(0x218e)](_0x1e80f5);}):_0x25ec72[_0x4a39f3(0x7eb)]=[];},_0x25ec72[_0x174c75(0x5c3)]=_0xb56804,_0x25ec72[_0x174c75(0xda0)]=_0xa15f8a;function _0xb56804(_0x1f3060,_0x2fa366,_0x43db07){const _0x418c2c=_0x174c75,_0x15057a=_0x3cc57['confirm']({'skipHide':!![]})[_0x418c2c(0x1386)](_0x418c2c(0xff0))[_0x418c2c(0x1152)]('All\x20unfilled\x20values\x20of\x20the\x20contact\x20#'+_0x43db07['id']+_0x418c2c(0x12f3)+_0x2fa366['id']+'.')[_0x418c2c(0x728)](_0x1f3060)['ok']('Ok')[_0x418c2c(0x696)](_0x418c2c(0xde1));_0x3cc57['show'](_0x15057a)[_0x418c2c(0x1cb0)](function(){const _0x7ebdbd=_0x418c2c;return _0x2acd44[_0x7ebdbd(0xbe7)][_0x7ebdbd(0x9c1)]({'to':_0x43db07['id'],'from':_0x2fa366['id']})['$promise'];})[_0x418c2c(0x1cb0)](function(_0x3a5281){const _0x14764d=_0x418c2c;_0x3cc57['hide']({'new':_0x3a5281,'to':_0x43db07,'from':_0x2fa366}),_0x39641b()[_0x14764d(0x152a)](_0x42a620,{'id':_0x43db07['id']}),_0x39641b()[_0x14764d(0x152a)](_0x42a620,{'id':_0x2fa366['id']}),_0x42a620[_0x14764d(0xf63)](_0x3a5281);})[_0x418c2c(0x1cb0)](function(){_0x519d40['success']({'title':'Contact\x20properly\x20merged!'});})[_0x418c2c(0x1c4)](function(_0x5238fa){const _0xee4abf=_0x418c2c;_0x5238fa&&_0x5238fa['status']&&_0x519d40[_0xee4abf(0x218e)]({'title':_0x5238fa[_0xee4abf(0x291)]?_0xee4abf(0xeb9)+_0x5238fa[_0xee4abf(0x291)]+_0xee4abf(0x1657)+_0x5238fa[_0xee4abf(0xc22)]:_0xee4abf(0x236e),'msg':_0x5238fa[_0xee4abf(0x25c)]?JSON[_0xee4abf(0x2701)](_0x5238fa[_0xee4abf(0x25c)]):_0x5238fa[_0xee4abf(0x147f)]()});});}function _0xa15f8a(){_0x3cc57['hide']();}}const _0x16ad2a=_0x240625;;const _0x4fe98c=_0x5074a3['p']+_0x5537c6(0xa58);;const _0x202870=_0x5074a3['p']+_0x5537c6(0x246b);;_0x2ad580[_0x5537c6(0x15b6)]=['$stateProvider'];function _0x2ad580(_0x144403){const _0x5250e5=_0x5537c6;_0x144403[_0x5250e5(0x27e0)](_0x5250e5(0x27ff),{'url':'/contacts?ListId&CompanyId','views':{'content@app':{'templateUrl':_0x4fe98c,'controller':_0x5250e5(0x36e)}},'resolve':{'contacts':['apiResolver',_0x5250e5(0x1774),_0x5250e5(0x225c),function(_0x12ff39,_0x14acfe,_0x1ee040){const _0x43403d=_0x5250e5;return _0x14acfe[_0x43403d(0x22b6)](_0x43403d(0x1c60))?_0x12ff39[_0x43403d(0x19a3)](_0x43403d(0x1095),_0x39641b()[_0x43403d(0x9c1)]({'includeAll':!![],'sort':_0x43403d(0x282),'limit':0xa,'offset':0x0},_0x1ee040)):_0x12ff39[_0x43403d(0x19a3)](_0x43403d(0x12da),_0x39641b()[_0x43403d(0x9c1)]({'id':_0x14acfe[_0x43403d(0x21e8)]()[_0x43403d(0x13c1)],'section':_0x43403d(0x20a4),'includeAll':!![],'sort':_0x43403d(0x282),'limit':0xa,'offset':0x0},_0x1ee040));}],'lists':[_0x5250e5(0x1e0b),_0x5250e5(0x1774),function(_0x4bd145,_0x3bbd31){const _0x38737c=_0x5250e5;return _0x3bbd31[_0x38737c(0x22b6)](_0x38737c(0x1c60))?_0x4bd145[_0x38737c(0x19a3)](_0x38737c(0x1b1f),{'fields':'id,name','sort':_0x38737c(0x16b6),'nolimit':!![]}):_0x4bd145[_0x38737c(0x19a3)](_0x38737c(0x12da),{'id':_0x3bbd31[_0x38737c(0x21e8)]()[_0x38737c(0x13c1)],'section':_0x38737c(0x191f),'fields':_0x38737c(0x43c),'sort':_0x38737c(0x282),'nolimit':!![]});}],'listsMap':[_0x5250e5(0x1046),function(_0x3d04e4){const _0x21c426=_0x5250e5,_0x5f32a9={};for(let _0x4065f1=0x0;_0x4065f1<_0x3d04e4[_0x21c426(0x2214)][_0x21c426(0xfd0)];_0x4065f1++){_0x5f32a9[_0x3d04e4['rows'][_0x4065f1]['id']]=_0x3d04e4['rows'][_0x4065f1][_0x21c426(0x16b6)];}return _0x5f32a9;}],'companies':[_0x5250e5(0x1e0b),'Auth',function(_0x56a2ae,_0xbef48c){const _0x2ddc79=_0x5250e5;return _0xbef48c[_0x2ddc79(0x22b6)](_0x2ddc79(0x1c60))?_0x56a2ae[_0x2ddc79(0x19a3)]('cmCompany@get',{'fields':_0x2ddc79(0x43c),'sort':_0x2ddc79(0x16b6),'nolimit':!![]}):_0x56a2ae['resolve'](_0x2ddc79(0x12da),{'id':_0xbef48c[_0x2ddc79(0x21e8)]()[_0x2ddc79(0x13c1)],'section':_0x2ddc79(0x963),'fields':_0x2ddc79(0x43c),'sort':_0x2ddc79(0x16b6),'nolimit':!![]});}],'companiesMap':[_0x5250e5(0xe1a),function(_0x89b624){const _0x323832=_0x5250e5,_0x31f38a={};for(let _0x5e4ffa=0x0;_0x5e4ffa<_0x89b624[_0x323832(0x2214)]['length'];_0x5e4ffa++){_0x31f38a[_0x89b624['rows'][_0x5e4ffa]['id']]=_0x89b624[_0x323832(0x2214)][_0x5e4ffa][_0x323832(0x16b6)];}return _0x31f38a;}],'tags':[_0x5250e5(0x1e0b),_0x5250e5(0x1774),function(_0x444267,_0x7477b5){const _0x529825=_0x5250e5;return _0x7477b5['hasRole'](_0x529825(0x1c60))?_0x444267[_0x529825(0x19a3)](_0x529825(0x1f1),{'fields':_0x529825(0x43c),'sort':'name','nolimit':!![]}):_0x444267[_0x529825(0x19a3)](_0x529825(0x12da),{'id':_0x7477b5[_0x529825(0x21e8)]()[_0x529825(0x13c1)],'section':_0x529825(0x190),'fields':'id,name','sort':_0x529825(0x16b6),'nolimit':!![]});}],'userProfile':['apiResolver',_0x5250e5(0x1774),function(_0x27ef93,_0x49cdfa){const _0x5b05d6=_0x5250e5;return _0x27ef93[_0x5b05d6(0x19a3)](_0x5b05d6(0x9ae),{'fields':_0x5b05d6(0x279),'id':_0x49cdfa[_0x5b05d6(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x5250e5(0x1e0b),'Auth',function(_0x51617f,_0x3bced0){const _0x59cd15=_0x5250e5;return _0x51617f[_0x59cd15(0x19a3)]('userProfileSection@get',{'fields':_0x59cd15(0x1f5f),'userProfileId':_0x3bced0[_0x59cd15(0x21e8)]()[_0x59cd15(0x13c1)],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':_0x5250e5(0x708)})[_0x5250e5(0x27e0)](_0x5250e5(0xd3e),{'url':_0x5250e5(0x1bf2),'params':{'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x202870,'controller':_0x5250e5(0x8dd)}},'resolve':{'contact':[_0x5250e5(0x1e0b),_0x5250e5(0x225c),function(_0x306c39,_0x4d84b0){const _0x569ff0=_0x5250e5;return _0x306c39[_0x569ff0(0x19a3)](_0x569ff0(0x1095),{'id':_0x4d84b0['id']})[_0x569ff0(0x1cb0)](function(_0x2df1e0){const _0x5afe40=_0x569ff0;return _0x2df1e0['dateOfBirth']&&(_0x2df1e0[_0x5afe40(0xdda)]=new Date(_0x2df1e0[_0x5afe40(0xdda)])),_0x2df1e0;})[_0x569ff0(0x1c4)](function(_0x159c30){const _0x413d4e=_0x569ff0;console[_0x413d4e(0x218e)](_0x159c30);});}],'hoppers':['apiResolver','$stateParams',function(_0x3de3c7,_0x19b52a){const _0x105b6e=_0x5250e5;return _0x3de3c7[_0x105b6e(0x19a3)](_0x105b6e(0x1e27),{'id':_0x19b52a['id'],'fields':_0x105b6e(0x2876),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'finals':[_0x5250e5(0x1e0b),_0x5250e5(0x225c),function(_0xe143e3,_0x5ec38c){const _0x3c36c8=_0x5250e5;return _0xe143e3[_0x3c36c8(0x19a3)](_0x3c36c8(0x1874),{'id':_0x5ec38c['id'],'fields':'id,uniqueid,calleridnum,statedesc,starttime,disposition','sort':_0x3c36c8(0x282),'limit':0xa,'offset':0x0});}],'histories':[_0x5250e5(0x1e0b),_0x5250e5(0x225c),function(_0x13f644,_0x260d4){const _0x1a7eec=_0x5250e5;return _0x13f644[_0x1a7eec(0x19a3)](_0x1a7eec(0x441),{'id':_0x260d4['id'],'fields':_0x1a7eec(0x30c),'sort':_0x1a7eec(0x282),'limit':0xa,'offset':0x0});}],'jscriptySessions':['apiResolver',_0x5250e5(0x225c),function(_0x25d746,_0x4353be){const _0xace20d=_0x5250e5;return _0x25d746[_0xace20d(0x19a3)](_0xace20d(0x7dd),{'id':_0x4353be['id'],'fields':_0xace20d(0x1c5a),'sort':_0xace20d(0x104c),'limit':0xa,'offset':0x0});}],'companies':['apiResolver',_0x5250e5(0x1774),function(_0xbab3c,_0x528081){const _0x215de9=_0x5250e5;return _0x528081[_0x215de9(0x22b6)](_0x215de9(0x1c60))?_0xbab3c[_0x215de9(0x19a3)](_0x215de9(0x60d)):_0xbab3c[_0x215de9(0x19a3)]('userProfile@getResources',{'id':_0x528081[_0x215de9(0x21e8)]()['userProfileId'],'section':_0x215de9(0x963)});}],'lists':['apiResolver',_0x5250e5(0x1774),function(_0x421ffc,_0x3f8c0c){const _0x42fb84=_0x5250e5;return _0x3f8c0c['hasRole']('admin')?_0x421ffc['resolve'](_0x42fb84(0x1b1f),{'fields':'id,name','sort':_0x42fb84(0x282),'nolimit':!![]}):_0x421ffc[_0x42fb84(0x19a3)](_0x42fb84(0x12da),{'id':_0x3f8c0c[_0x42fb84(0x21e8)]()[_0x42fb84(0x13c1)],'section':'Lists','fields':_0x42fb84(0x43c),'sort':_0x42fb84(0x282),'nolimit':!![]});}],'customFields':[_0x5250e5(0x1e0b),_0x5250e5(0x8b1),function(_0x14f092,_0xdc9412){const _0x1d6cfb=_0x5250e5;return _0xdc9412['ListId']?_0x14f092[_0x1d6cfb(0x19a3)](_0x1d6cfb(0x1269),{'id':_0xdc9412['ListId']}):null;}],'tags':[_0x5250e5(0x1e0b),'Auth',function(_0x3e0bfa,_0xa9bf62){const _0x7e2053=_0x5250e5;return _0xa9bf62[_0x7e2053(0x22b6)]('admin')?_0x3e0bfa['resolve']('tag@get'):_0x3e0bfa[_0x7e2053(0x19a3)](_0x7e2053(0x12da),{'id':_0xa9bf62[_0x7e2053(0x21e8)]()[_0x7e2053(0x13c1)],'section':_0x7e2053(0x190)});}],'userProfileSection':[_0x5250e5(0x1e0b),_0x5250e5(0x1774),function(_0x34f036,_0x313283){const _0x2d9d3d=_0x5250e5;return _0x34f036[_0x2d9d3d(0x19a3)](_0x2d9d3d(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x313283['getCurrentUser']()[_0x2d9d3d(0x13c1)],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':_0x5250e5(0x708)});}angular[_0x5537c6(0x9ab)](_0x5537c6(0x27ff),[])[_0x5537c6(0xa60)](_0x2ad580)[_0x5537c6(0x6e5)](_0x5537c6(0x27d4),_0x5a48bc)[_0x5537c6(0x6e5)](_0x5537c6(0x21ba),_0x47b913)[_0x5537c6(0x6e5)]('DuplicateContactDialogController',_0x31aa26)['controller'](_0x5537c6(0x1ee1),_0x259d3a)[_0x5537c6(0x6e5)](_0x5537c6(0x1358),_0xb232f)[_0x5537c6(0x6e5)]('ImportContactsDialogController',_0x2bdd18)[_0x5537c6(0x6e5)](_0x5537c6(0x219f),_0x16ad2a);;const _0x240321=_0x5074a3['p']+_0x5537c6(0x14f0);;_0xdae7a7['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),'$document',_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0xe1a),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),'Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0xdae7a7(_0x202360,_0xc9a07d,_0x353888,_0x4a8b37,_0x17c600,_0xe4bd6c,_0x56a8eb,_0x21a93e,_0x544806,_0x274b27,_0x14f8cc,_0x2a6b19,_0x4035fc,_0x3fd3eb,_0x46dd19,_0x1d59f9,_0x7ec216){const _0x2f55ee=_0x5537c6,_0x56aa38=this;_0x56aa38['license']=_0x1d59f9,_0x56aa38['setting']=_0x7ec216,_0x56aa38[_0x2f55ee(0xe76)]=_0x46dd19[_0x2f55ee(0x21e8)](),_0x56aa38[_0x2f55ee(0xe1a)]=_0x544806||{'count':0x0,'rows':[]},_0x56aa38['userProfile']=_0x274b27,_0x56aa38[_0x2f55ee(0x2199)]=_0x14f8cc&&_0x14f8cc[_0x2f55ee(0x184d)]==0x1?_0x14f8cc[_0x2f55ee(0x2214)][0x0]:null,_0x56aa38[_0x2f55ee(0x1b1a)]=_0x46dd19[_0x2f55ee(0x14ea)](_0x56aa38[_0x2f55ee(0x2199)]?_0x56aa38[_0x2f55ee(0x2199)]['crudPermissions']:null),_0x56aa38[_0x2f55ee(0xc83)]=_0x2f55ee(0xe1a),_0x56aa38[_0x2f55ee(0x1d20)]='',_0x56aa38[_0x2f55ee(0x1cdf)]=null,_0x56aa38[_0x2f55ee(0x1fe2)]=[],_0x56aa38[_0x2f55ee(0xae2)]={'fields':_0x2f55ee(0x262b),'sort':_0x2f55ee(0x282),'limit':0xa,'page':0x1},_0x56aa38['editstate']=_0x40e7a2,_0x56aa38[_0x2f55ee(0x24a)]=_0x1cbe83,_0x56aa38['deleteconfirm']=_0x5522e7,_0x56aa38[_0x2f55ee(0x829)]=_0x3699a1,_0x56aa38[_0x2f55ee(0x143e)]=_0x7ea574,_0x56aa38['createOrEditCompany']=_0x32d34b,_0x56aa38[_0x2f55ee(0x1092)]=_0x27bb64,_0x56aa38['exportSelectedCompanies']=_0xb42b46,_0x56aa38[_0x2f55ee(0xed0)]=_0x76205f,_0x56aa38['deselectCompanies']=_0x3932ff,_0x56aa38[_0x2f55ee(0x2755)]=_0x2f4a2a;function _0x40e7a2(_0x30237b){const _0x22b546=_0x2f55ee;_0x353888['go'](_0x22b546(0x1d5d),{'id':_0x30237b['id'],'company':_0x30237b,'crudPermissions':_0x56aa38[_0x22b546(0x1b1a)]});}function _0x1cbe83(_0x515e9b){const _0x16f13c=_0x2f55ee;if(_0x46dd19[_0x16f13c(0x22b6)](_0x16f13c(0x1c60)))_0x353888['go'](_0x16f13c(0x27ff),{'CompanyId':_0x515e9b['id']});else return _0x2a6b19[_0x16f13c(0x2199)][_0x16f13c(0xbf7)]({'userProfileId':_0x46dd19[_0x16f13c(0x21e8)]()[_0x16f13c(0x13c1)],'sectionId':0x12f})[_0x16f13c(0x1d77)][_0x16f13c(0x1cb0)](function(_0x523f08){const _0x5ea0e4=_0x16f13c,_0x4d18b2=_0x523f08&&_0x523f08[_0x5ea0e4(0x2214)]?_0x523f08[_0x5ea0e4(0x2214)][0x0]:null;_0x4d18b2&&_0x4d18b2[_0x5ea0e4(0x281c)]?_0x353888['go'](_0x5ea0e4(0x27ff),{'CompanyId':_0x515e9b['id']}):_0x3fd3eb[_0x5ea0e4(0x28c7)]({'title':_0x21a93e['instant'](_0x5ea0e4(0x370)),'msg':_0x21a93e[_0x5ea0e4(0x25cc)](_0x5ea0e4(0x33a))});})['catch'](function(_0xd5fe4a){const _0x42012d=_0x16f13c;_0x3fd3eb[_0x42012d(0x218e)]({'title':_0xd5fe4a['status']?_0x42012d(0xeb9)+_0xd5fe4a[_0x42012d(0x291)]+'\x20-\x20'+_0xd5fe4a[_0x42012d(0xc22)]:'USERPROFILE:GET_SECTION','msg':_0xd5fe4a[_0x42012d(0x291)]?JSON[_0x42012d(0x2701)](_0xd5fe4a[_0x42012d(0x25c)]):_0xd5fe4a[_0x42012d(0x147f)]()});});}function _0x5522e7(_0x1e72c9,_0x5a3ed6){const _0x5504b0=_0x2f55ee,_0x3dba92=_0x17c600['confirm']()[_0x5504b0(0x1386)](_0x5504b0(0x140b)+_0x39641b()[_0x5504b0(0xa75)](_0x5504b0(0xe5f))+'?')['htmlContent'](_0x5504b0(0x204d)+(_0x1e72c9[_0x5504b0(0x16b6)]||'company')+_0x5504b0(0x1200)+_0x5504b0(0x1b6))[_0x5504b0(0x15ad)](_0x5504b0(0x255b))['targetEvent'](_0x5a3ed6)['ok']('OK')[_0x5504b0(0x696)](_0x5504b0(0x24ba));_0x17c600[_0x5504b0(0xe27)](_0x3dba92)[_0x5504b0(0x1cb0)](function(){_0x27bb64(_0x1e72c9);},function(){const _0x2ef457=_0x5504b0;console[_0x2ef457(0x1b4f)](_0x2ef457(0x24ba));});}let _0x291e6a=!![],_0x34da72=0x1;_0x202360[_0x2f55ee(0x614)]('vm.query.filter',function(_0x5b7179,_0x21ae9e){const _0x453270=_0x2f55ee;_0x291e6a?_0x56a8eb(function(){_0x291e6a=![];}):(!_0x21ae9e&&(_0x34da72=_0x56aa38[_0x453270(0xae2)]['page']),_0x5b7179!==_0x21ae9e&&(_0x56aa38['query']['page']=0x1),!_0x5b7179&&(_0x56aa38['query'][_0x453270(0x1c7b)]=_0x34da72),_0x56aa38[_0x453270(0x143e)]());});function _0x3699a1(_0x3edece){const _0x160ab2=_0x2f55ee;_0x56aa38[_0x160ab2(0xe1a)]=_0x3edece||{'count':0x0,'rows':[]};}function _0x7ea574(){const _0x27c7ae=_0x2f55ee;_0x56aa38[_0x27c7ae(0xae2)][_0x27c7ae(0x184b)]=(_0x56aa38[_0x27c7ae(0xae2)][_0x27c7ae(0x1c7b)]-0x1)*_0x56aa38['query'][_0x27c7ae(0x236)],_0x46dd19[_0x27c7ae(0x22b6)]('admin')?_0x56aa38[_0x27c7ae(0x2061)]=_0x2a6b19['cmCompany']['get'](_0x56aa38[_0x27c7ae(0xae2)],_0x3699a1)[_0x27c7ae(0x1d77)]:(_0x56aa38[_0x27c7ae(0xae2)]['id']=_0x56aa38[_0x27c7ae(0x44a)]['id'],_0x56aa38[_0x27c7ae(0xae2)][_0x27c7ae(0x1f74)]=_0x27c7ae(0x963),_0x56aa38[_0x27c7ae(0x2061)]=_0x2a6b19['userProfile'][_0x27c7ae(0x1810)](_0x56aa38[_0x27c7ae(0xae2)],_0x3699a1)['$promise']);}function _0x32d34b(_0x536999,_0x1a261d){const _0x74c7eb=_0x2f55ee;_0x17c600['show']({'controller':_0x74c7eb(0xeec),'controllerAs':'vm','templateUrl':_0x240321,'parent':angular[_0x74c7eb(0x1853)](_0xe4bd6c[_0x74c7eb(0x1ed9)]),'targetEvent':_0x536999,'clickOutsideToClose':!![],'locals':{'company':_0x1a261d,'companies':_0x56aa38[_0x74c7eb(0xe1a)][_0x74c7eb(0x2214)],'license':_0x56aa38['license'],'setting':_0x56aa38[_0x74c7eb(0x9ca)],'crudPermissions':_0x56aa38['crudPermissions']}});}function _0x27bb64(_0x2ab589){const _0x49fa90=_0x2f55ee;_0x2a6b19['cmCompany'][_0x49fa90(0x111d)]({'id':_0x2ab589['id']})[_0x49fa90(0x1d77)][_0x49fa90(0x1cb0)](function(){const _0x11ca4e=_0x49fa90;_0x39641b()[_0x11ca4e(0x152a)](_0x56aa38[_0x11ca4e(0xe1a)][_0x11ca4e(0x2214)],{'id':_0x2ab589['id']}),_0x56aa38[_0x11ca4e(0xe1a)][_0x11ca4e(0x184d)]-=0x1,!_0x56aa38[_0x11ca4e(0xe1a)][_0x11ca4e(0x2214)][_0x11ca4e(0xfd0)]&&_0x56aa38[_0x11ca4e(0x143e)](),_0x3fd3eb[_0x11ca4e(0x829)]({'title':_0x39641b()[_0x11ca4e(0xa75)]('Company')+_0x11ca4e(0x2663),'msg':_0x2ab589['name']?_0x2ab589[_0x11ca4e(0x16b6)]+_0x11ca4e(0x3f5):''});})['catch'](function(_0x15cad9){const _0xf85b29=_0x49fa90;if(_0x15cad9[_0xf85b29(0x25c)]&&_0x15cad9[_0xf85b29(0x25c)]['errors']&&_0x15cad9[_0xf85b29(0x25c)][_0xf85b29(0x1a7c)]['length']){_0x56aa38['errors']=_0x15cad9[_0xf85b29(0x25c)][_0xf85b29(0x1a7c)]||[{'message':_0x15cad9[_0xf85b29(0x147f)](),'type':_0xf85b29(0x423)}];for(let _0x2e23fc=0x0;_0x2e23fc<_0x15cad9[_0xf85b29(0x25c)][_0xf85b29(0x1a7c)][_0xf85b29(0xfd0)];_0x2e23fc++){_0x3fd3eb['error']({'title':_0x15cad9[_0xf85b29(0x25c)]['errors'][_0x2e23fc]['type'],'msg':_0x15cad9[_0xf85b29(0x25c)][_0xf85b29(0x1a7c)][_0x2e23fc][_0xf85b29(0x155e)]});}}else _0x3fd3eb[_0xf85b29(0x218e)]({'title':_0x15cad9[_0xf85b29(0x291)]?_0xf85b29(0xeb9)+_0x15cad9[_0xf85b29(0x291)]+_0xf85b29(0x1657)+_0x15cad9[_0xf85b29(0xc22)]:_0xf85b29(0x423),'msg':_0x15cad9[_0xf85b29(0x25c)]?JSON[_0xf85b29(0x2701)](_0x15cad9['data'][_0xf85b29(0x155e)]):_0x15cad9[_0xf85b29(0x155e)]||_0x15cad9['toString']()});});}function _0xb42b46(){const _0x17e612=_0x2f55ee,_0x23208d=angular[_0x17e612(0x17fe)](_0x56aa38[_0x17e612(0x1fe2)]);return _0x56aa38[_0x17e612(0x1fe2)]=[],_0x23208d;}function _0x76205f(_0x487606){const _0x594a41=_0x2f55ee,_0x2dd230=_0x17c600[_0x594a41(0x1551)]()[_0x594a41(0x1386)](_0x594a41(0x1c0e))[_0x594a41(0x49e)](''+_0x56aa38[_0x594a41(0x1fe2)][_0x594a41(0xfd0)]+_0x594a41(0x1d6c)+_0x594a41(0x1b6))[_0x594a41(0x15ad)](_0x594a41(0x404))[_0x594a41(0x728)](_0x487606)['ok']('OK')['cancel'](_0x594a41(0x24ba));_0x17c600[_0x594a41(0xe27)](_0x2dd230)['then'](function(){const _0x5edd2a=_0x594a41;_0x56aa38[_0x5edd2a(0x1fe2)]['forEach'](function(_0x307165){_0x27bb64(_0x307165);}),_0x56aa38[_0x5edd2a(0x1fe2)]=[];});}function _0x3932ff(){const _0x2b1ebc=_0x2f55ee;_0x56aa38[_0x2b1ebc(0x1fe2)]=[];}function _0x2f4a2a(){const _0x2e3bee=_0x2f55ee;_0x56aa38[_0x2e3bee(0x1fe2)]=_0x56aa38['companies'][_0x2e3bee(0x2214)];}}const _0x4ea084=_0xdae7a7;;_0x2a5f6e[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog','$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),'companies',_0x5537c6(0xe5f),'api',_0x5537c6(0x1774),'license','setting','crudPermissions'];function _0x2a5f6e(_0x850910,_0x1f155e,_0x1924e5,_0x4399c1,_0x549c17,_0x9238c5,_0x12122d,_0x51eafe,_0x1b81ba,_0x408eab,_0x28a804,_0xe3e13a,_0x3db0f1,_0x26a9b9){const _0x53f610=_0x5537c6,_0x22ab46=this;_0x22ab46[_0x53f610(0xe76)]=_0x28a804[_0x53f610(0x21e8)](),_0x22ab46[_0x53f610(0x1a7c)]=[],_0x22ab46['setting']=_0x3db0f1,_0x22ab46[_0x53f610(0x8a5)]=_0xe3e13a,_0x22ab46[_0x53f610(0x1b1a)]=_0x26a9b9,_0x22ab46[_0x53f610(0xf4c)]={},_0x22ab46['passwordPattern']=_0x22ab46['setting']&&_0x22ab46['setting'][_0x53f610(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x22ab46[_0x53f610(0x1386)]=_0x53f610(0x326),_0x22ab46['company']=angular[_0x53f610(0x17fe)](_0x1b81ba),_0x22ab46[_0x53f610(0xe1a)]=_0x51eafe,_0x22ab46[_0x53f610(0xba4)]=![];!_0x22ab46[_0x53f610(0xe5f)]&&(_0x22ab46[_0x53f610(0xe5f)]={},_0x22ab46[_0x53f610(0x1386)]='CONTACTMANAGER.NEW_COMPANY',_0x22ab46[_0x53f610(0xba4)]=!![]);_0x22ab46[_0x53f610(0x2271)]=_0x5df1ff,_0x22ab46[_0x53f610(0x66e)]=_0x3dae1d,_0x22ab46['deleteCompany']=_0x2151a7,_0x22ab46[_0x53f610(0x2c4)]=_0x5e86c5,_0x22ab46[_0x53f610(0xda0)]=_0x340156;function _0x5df1ff(){const _0x1c55d5=_0x53f610;_0x22ab46[_0x1c55d5(0x1a7c)]=[],_0x408eab['cmCompany'][_0x1c55d5(0x1c3f)](_0x22ab46[_0x1c55d5(0xe5f)])[_0x1c55d5(0x1d77)]['then'](function(_0x573dd3){const _0x1bc475=_0x1c55d5;_0x22ab46[_0x1bc475(0xe1a)]['unshift'](_0x573dd3[_0x1bc475(0x19b2)]()),_0x12122d[_0x1bc475(0x829)]({'title':_0x1bc475(0xab1),'msg':_0x22ab46[_0x1bc475(0xe5f)]['name']?_0x22ab46['company']['name']+_0x1bc475(0x470):''}),_0x340156(_0x573dd3);})[_0x1c55d5(0x1c4)](function(_0x4fe77e){const _0x4cc954=_0x1c55d5;if(_0x4fe77e['data']&&_0x4fe77e[_0x4cc954(0x25c)]['errors']&&_0x4fe77e[_0x4cc954(0x25c)][_0x4cc954(0x1a7c)][_0x4cc954(0xfd0)]){_0x22ab46['errors']=_0x4fe77e[_0x4cc954(0x25c)][_0x4cc954(0x1a7c)]||[{'message':_0x4fe77e[_0x4cc954(0x147f)](),'type':_0x4cc954(0x180e)}];for(let _0x57bfdb=0x0;_0x57bfdb<_0x4fe77e['data']['errors'][_0x4cc954(0xfd0)];_0x57bfdb+=0x1){_0x12122d[_0x4cc954(0x218e)]({'title':_0x4fe77e['data'][_0x4cc954(0x1a7c)][_0x57bfdb][_0x4cc954(0x66a)],'msg':_0x4fe77e[_0x4cc954(0x25c)]['errors'][_0x57bfdb][_0x4cc954(0x155e)]});}}else _0x12122d[_0x4cc954(0x218e)]({'title':_0x4fe77e['status']?'API:'+_0x4fe77e['status']+_0x4cc954(0x1657)+_0x4fe77e[_0x4cc954(0xc22)]:'api.cmCompany.save','msg':_0x4fe77e[_0x4cc954(0x25c)]?JSON[_0x4cc954(0x2701)](_0x4fe77e['data']['message']):_0x4fe77e[_0x4cc954(0x147f)]()});});}function _0x3dae1d(){const _0x25bf55=_0x53f610;_0x22ab46[_0x25bf55(0x1a7c)]=[],_0x408eab[_0x25bf55(0x107a)][_0x25bf55(0x687)]({'id':_0x22ab46['company']['id']},_0x22ab46[_0x25bf55(0xe5f)])['$promise'][_0x25bf55(0x1cb0)](function(_0x567999){const _0x501bca=_0x25bf55,_0x50e1c4=_0x39641b()[_0x501bca(0x13b4)](_0x22ab46[_0x501bca(0xe1a)],{'id':_0x567999['id']});_0x50e1c4&&_0x39641b()['merge'](_0x50e1c4,_0x39641b()['pick'](_0x567999['toJSON'](),_0x39641b()[_0x501bca(0x1be5)](_0x50e1c4))),_0x12122d[_0x501bca(0x829)]({'title':_0x501bca(0x13b2),'msg':_0x22ab46[_0x501bca(0xe5f)]['name']?_0x22ab46['company'][_0x501bca(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x340156(_0x567999);})[_0x25bf55(0x1c4)](function(_0x5b1ed0){const _0x13e35a=_0x25bf55;if(_0x5b1ed0[_0x13e35a(0x25c)]&&_0x5b1ed0['data']['errors']&&_0x5b1ed0[_0x13e35a(0x25c)]['errors'][_0x13e35a(0xfd0)]){_0x22ab46[_0x13e35a(0x1a7c)]=_0x5b1ed0[_0x13e35a(0x25c)][_0x13e35a(0x1a7c)]||[{'message':_0x5b1ed0[_0x13e35a(0x147f)](),'type':'api.cmCompany.update'}];for(let _0x3c6c54=0x0;_0x3c6c54<_0x5b1ed0[_0x13e35a(0x25c)][_0x13e35a(0x1a7c)]['length'];_0x3c6c54++){_0x12122d['error']({'title':_0x5b1ed0[_0x13e35a(0x25c)]['errors'][_0x3c6c54][_0x13e35a(0x66a)],'msg':_0x5b1ed0[_0x13e35a(0x25c)][_0x13e35a(0x1a7c)][_0x3c6c54][_0x13e35a(0x155e)]});}}else _0x12122d[_0x13e35a(0x218e)]({'title':_0x5b1ed0[_0x13e35a(0x291)]?_0x13e35a(0xeb9)+_0x5b1ed0['status']+'\x20-\x20'+_0x5b1ed0['statusText']:_0x13e35a(0xac2),'msg':_0x5b1ed0['data']?JSON[_0x13e35a(0x2701)](_0x5b1ed0[_0x13e35a(0x25c)][_0x13e35a(0x155e)]):_0x5b1ed0[_0x13e35a(0x147f)]()});});}function _0x2151a7(_0x2760da){const _0x2a5020=_0x53f610;_0x22ab46[_0x2a5020(0x1a7c)]=[];const _0x41da21=_0x4399c1[_0x2a5020(0x1551)]()[_0x2a5020(0x1386)]('Are\x20you\x20sure?')['content'](_0x2a5020(0x19b))[_0x2a5020(0x15ad)](_0x2a5020(0x2d6))['ok'](_0x2a5020(0x2594))[_0x2a5020(0x696)](_0x2a5020(0xde1))[_0x2a5020(0x728)](_0x2760da);_0x4399c1[_0x2a5020(0xe27)](_0x41da21)[_0x2a5020(0x1cb0)](function(){const _0x2e65db=_0x2a5020;_0x408eab[_0x2e65db(0x107a)]['delete']({'id':_0x22ab46[_0x2e65db(0xe5f)]['id']})[_0x2e65db(0x1d77)][_0x2e65db(0x1cb0)](function(){const _0x3a76e3=_0x2e65db;_0x39641b()[_0x3a76e3(0x152a)](_0x22ab46[_0x3a76e3(0xe1a)],{'id':_0x22ab46['company']['id']}),_0x12122d[_0x3a76e3(0x829)]({'title':_0x3a76e3(0x2695),'msg':(_0x22ab46[_0x3a76e3(0xe5f)]['name']||_0x3a76e3(0xe5f))+_0x3a76e3(0x3f5)}),_0x340156(_0x22ab46[_0x3a76e3(0xe5f)]);})[_0x2e65db(0x1c4)](function(_0x85ad68){const _0x2a42a3=_0x2e65db;if(_0x85ad68[_0x2a42a3(0x25c)]&&_0x85ad68['data'][_0x2a42a3(0x1a7c)]&&_0x85ad68[_0x2a42a3(0x25c)][_0x2a42a3(0x1a7c)][_0x2a42a3(0xfd0)]){_0x22ab46[_0x2a42a3(0x1a7c)]=_0x85ad68[_0x2a42a3(0x25c)]['errors']||[{'message':_0x85ad68[_0x2a42a3(0x147f)](),'type':_0x2a42a3(0x2313)}];for(let _0x530634=0x0;_0x530634<_0x85ad68[_0x2a42a3(0x25c)][_0x2a42a3(0x1a7c)][_0x2a42a3(0xfd0)];_0x530634++){_0x12122d[_0x2a42a3(0x218e)]({'title':_0x85ad68[_0x2a42a3(0x25c)]['errors'][_0x530634]['type'],'msg':_0x85ad68[_0x2a42a3(0x25c)][_0x2a42a3(0x1a7c)][_0x530634][_0x2a42a3(0x155e)]});}}else _0x12122d[_0x2a42a3(0x218e)]({'title':_0x85ad68['status']?_0x2a42a3(0xeb9)+_0x85ad68[_0x2a42a3(0x291)]+_0x2a42a3(0x1657)+_0x85ad68[_0x2a42a3(0xc22)]:'api.cmCompany.delete','msg':_0x85ad68[_0x2a42a3(0x25c)]?JSON[_0x2a42a3(0x2701)](_0x85ad68[_0x2a42a3(0x25c)][_0x2a42a3(0x155e)]):_0x85ad68[_0x2a42a3(0x155e)]||_0x85ad68[_0x2a42a3(0x147f)]()});});},function(){});}function _0x5e86c5(_0x587ef4){return _0x587ef4===null?undefined:new Date(_0x587ef4);}function _0x340156(_0xd024b){_0x4399c1['hide'](_0xd024b);}}const _0x178ff5=_0x2a5f6e;;_0x23a648[_0x5537c6(0x15b6)]=['$state',_0x5537c6(0x21c8),'$mdDialog','$document',_0x5537c6(0x1ae),'license',_0x5537c6(0x9ca),'api',_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0xe5f),'userProfileSection'];function _0x23a648(_0x4f1d2f,_0x2acefd,_0x524f08,_0x247420,_0x4b9d6b,_0x44e2cc,_0x5a217c,_0x211239,_0x4a65e3,_0x33b4d4,_0x28e86e,_0x536e57){const _0x59b581=_0x5537c6,_0x10f5d3=this;_0x10f5d3[_0x59b581(0xe76)]=_0x33b4d4[_0x59b581(0x21e8)](),_0x10f5d3['license']=_0x44e2cc,_0x10f5d3[_0x59b581(0x9ca)]=_0x5a217c,_0x10f5d3['passwordPattern']=_0x10f5d3[_0x59b581(0x9ca)][_0x59b581(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x10f5d3[_0x59b581(0x2404)]=_0x2acefd[_0x59b581(0x2276)]()+_0x59b581(0x138b)+_0x2acefd[_0x59b581(0x17d8)](),_0x10f5d3[_0x59b581(0xe5f)]=_0x28e86e||_0x4f1d2f[_0x59b581(0x1dfe)]['company']||{},_0x10f5d3[_0x59b581(0x2199)]=_0x536e57&&_0x536e57[_0x59b581(0x184d)]==0x1?_0x536e57[_0x59b581(0x2214)][0x0]:null,_0x10f5d3[_0x59b581(0x1b1a)]=_0x33b4d4[_0x59b581(0x14ea)](_0x10f5d3[_0x59b581(0x2199)]?_0x10f5d3[_0x59b581(0x2199)][_0x59b581(0x1b1a)]:null),_0x10f5d3[_0x59b581(0xf4c)]={},_0x10f5d3['selectedTab']=_0x4f1d2f[_0x59b581(0x1dfe)][_0x59b581(0x291e)]||0x0,_0x10f5d3[_0x59b581(0x47d)]=_0x452a1b,_0x10f5d3[_0x59b581(0x494)]=_0x4a65e3[_0x59b581(0x28c7)],_0x10f5d3['gotoCompanies']=_0x543170,_0x10f5d3[_0x59b581(0x66e)]=_0x284473;function _0x452a1b(_0x658f47){const _0x15353f=_0x59b581;if(_0x33b4d4[_0x15353f(0x22b6)](_0x15353f(0x1c60)))_0x4f1d2f['go']('app.contactmanager.contacts',{'CompanyId':_0x658f47['id']});else return _0x211239[_0x15353f(0x2199)][_0x15353f(0xbf7)]({'userProfileId':_0x33b4d4[_0x15353f(0x21e8)]()[_0x15353f(0x13c1)],'sectionId':0x12f})[_0x15353f(0x1d77)][_0x15353f(0x1cb0)](function(_0x3df2c6){const _0xfecf2f=_0x15353f,_0xaee06f=_0x3df2c6&&_0x3df2c6[_0xfecf2f(0x2214)]?_0x3df2c6[_0xfecf2f(0x2214)][0x0]:null;_0xaee06f&&_0xaee06f[_0xfecf2f(0x281c)]?_0x4f1d2f['go']('app.contactmanager.contacts',{'CompanyId':_0x658f47['id']}):_0x4a65e3[_0xfecf2f(0x28c7)]({'title':_0x4b9d6b[_0xfecf2f(0x25cc)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x4b9d6b[_0xfecf2f(0x25cc)](_0xfecf2f(0x33a))});})[_0x15353f(0x1c4)](function(_0x1cd8e0){const _0x39d27f=_0x15353f;_0x4a65e3[_0x39d27f(0x218e)]({'title':_0x1cd8e0[_0x39d27f(0x291)]?_0x39d27f(0xeb9)+_0x1cd8e0[_0x39d27f(0x291)]+_0x39d27f(0x1657)+_0x1cd8e0[_0x39d27f(0xc22)]:_0x39d27f(0x17ba),'msg':_0x1cd8e0['status']?JSON[_0x39d27f(0x2701)](_0x1cd8e0[_0x39d27f(0x25c)]):_0x1cd8e0[_0x39d27f(0x147f)]()});});}function _0x543170(){const _0x51987b=_0x59b581;_0x4f1d2f['go'](_0x51987b(0x26f8),{},{'reload':_0x51987b(0x26f8)});}function _0x284473(){const _0x9d54c9=_0x59b581;_0x211239[_0x9d54c9(0x107a)][_0x9d54c9(0x687)]({'id':_0x10f5d3['company']['id']},_0x10f5d3[_0x9d54c9(0xe5f)])[_0x9d54c9(0x1d77)][_0x9d54c9(0x1cb0)](function(){const _0x42b2e0=_0x9d54c9;_0x4a65e3[_0x42b2e0(0x829)]({'title':'Company\x20updated!','msg':_0x10f5d3[_0x42b2e0(0xe5f)][_0x42b2e0(0x16b6)]?_0x10f5d3[_0x42b2e0(0xe5f)][_0x42b2e0(0x16b6)]+_0x42b2e0(0x1068):''});})[_0x9d54c9(0x1c4)](function(_0x1d07ef){const _0x5d672=_0x9d54c9;_0x4a65e3[_0x5d672(0x218e)]({'title':_0x1d07ef[_0x5d672(0x291)]?_0x5d672(0xeb9)+_0x1d07ef[_0x5d672(0x291)]+'\x20-\x20'+_0x1d07ef[_0x5d672(0xc22)]:_0x5d672(0x992),'msg':_0x1d07ef['data']?JSON[_0x5d672(0x2701)](_0x1d07ef[_0x5d672(0x25c)]):_0x1d07ef[_0x5d672(0x147f)]()});});}}const _0x5513dd=_0x23a648;;_0x2727a6[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state','$location',_0x5537c6(0xcb9),'$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0x26d),'globalCustomField',_0x5537c6(0x142b),_0x5537c6(0x1774),'license',_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x2727a6(_0x2e3392,_0x3c3402,_0x1a8bae,_0x2d1bff,_0x3f8012,_0x3294a0,_0xb081ff,_0x49a416,_0x3933e8,_0x4a17a9,_0x325666,_0x2b21f4,_0x4856f6,_0x4d44f7){const _0x45bddc=_0x5537c6,_0x2a8916=this;_0x2a8916[_0x45bddc(0xe76)]=_0x325666[_0x45bddc(0x21e8)](),_0x2a8916[_0x45bddc(0x1a7c)]=[],_0x2a8916[_0x45bddc(0x9ca)]=_0x4856f6,_0x2a8916[_0x45bddc(0x8a5)]=_0x2b21f4,_0x2a8916[_0x45bddc(0x1b1a)]=_0x4d44f7,_0x2a8916[_0x45bddc(0xf4c)]={},_0x2a8916[_0x45bddc(0x1b0c)]=_0x2a8916[_0x45bddc(0x9ca)]&&_0x2a8916[_0x45bddc(0x9ca)][_0x45bddc(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2a8916[_0x45bddc(0x1386)]=_0x45bddc(0x23ef),_0x2a8916[_0x45bddc(0x1cef)]={'animation':0x320,'sort':!![],'onSort':function(){const _0x127bb2=_0x45bddc;_0x2e3392['globalCustomFieldForm'][_0x127bb2(0x70f)]=![];}},_0x2a8916[_0x45bddc(0x4b6)]=_0x3933e8,_0x2a8916[_0x45bddc(0x26d)]=_0x49a416,_0x2a8916['newGlobalCustomField']=![];!_0x2a8916[_0x45bddc(0x4b6)]&&(_0x2a8916['globalCustomField']={'type':_0x45bddc(0x19d3),'actionType':_0x45bddc(0x1fd4)},_0x2a8916[_0x45bddc(0x1386)]=_0x45bddc(0x189e),_0x2a8916[_0x45bddc(0x1494)]=!![]);_0x2e3392[_0x45bddc(0x614)](_0x45bddc(0x1075),function(_0x2d64e3,_0x5f1e15){const _0x3c9ba8=_0x45bddc;if(_0x2d64e3!==_0x5f1e15)switch(_0x2d64e3){case _0x3c9ba8(0x19d3):_0x2a8916[_0x3c9ba8(0x4b6)][_0x3c9ba8(0x27aa)]='';break;case _0x3c9ba8(0x220f):_0x2a8916['globalCustomField']['values']=[];break;default:}}),_0x2a8916[_0x45bddc(0xf87)]=_0x42e33a,_0x2a8916[_0x45bddc(0xe1f)]=_0x273c8f,_0x2a8916[_0x45bddc(0x2263)]=_0x10c354,_0x2a8916['getDateFromString']=_0x1620f6,_0x2a8916[_0x45bddc(0x25ad)]=_0x30b66d,_0x2a8916[_0x45bddc(0xc3e)]=_0x16360,_0x2a8916[_0x45bddc(0x2818)]=_0x3f1380,_0x2a8916[_0x45bddc(0xda0)]=_0x2dd3a5;function _0x30b66d(_0x2a1b30){const _0x2495d3=_0x45bddc;_0x2a1b30['push']({'value':'New\x20Item'}),_0x2e3392[_0x2495d3(0x2015)][_0x2495d3(0x70f)]=![];}function _0x16360(_0x5817b8,_0xdf5e26){const _0x4ac8bd=_0x45bddc;_0x5817b8[_0x4ac8bd(0x159c)](_0xdf5e26,0x1),_0x2e3392[_0x4ac8bd(0x2015)][_0x4ac8bd(0x70f)]=![];}function _0x3f1380(_0x300c21){const _0x4563af=_0x45bddc,_0x88cf2c=_0x300c21['length'];for(let _0x28fce3=0x0;_0x28fce3<_0x88cf2c;_0x28fce3++){_0x300c21['splice'](0x0,0x1);}_0x2e3392[_0x4563af(0x2015)][_0x4563af(0x70f)]=![];}function _0x42e33a(){const _0x42cf1f=_0x45bddc;_0x2a8916[_0x42cf1f(0x1a7c)]=[],_0x4a17a9[_0x42cf1f(0xc36)][_0x42cf1f(0x1c3f)](_0x2a8916['globalCustomField'])['$promise'][_0x42cf1f(0x1cb0)](function(_0x42c469){const _0x153da5=_0x42cf1f;_0x2a8916['globalCustomFields']['unshift'](_0x42c469[_0x153da5(0x19b2)]()),_0xb081ff[_0x153da5(0x829)]({'title':_0x153da5(0x2164),'msg':_0x2a8916[_0x153da5(0x4b6)][_0x153da5(0x16b6)]?_0x2a8916[_0x153da5(0x4b6)]['name']+_0x153da5(0x470):''}),_0x2dd3a5(_0x42c469);})[_0x42cf1f(0x1c4)](function(_0xdf8ae7){const _0x4f5916=_0x42cf1f;if(_0xdf8ae7[_0x4f5916(0x25c)]&&_0xdf8ae7[_0x4f5916(0x25c)][_0x4f5916(0x1a7c)]&&_0xdf8ae7[_0x4f5916(0x25c)][_0x4f5916(0x1a7c)][_0x4f5916(0xfd0)]){_0x2a8916['errors']=_0xdf8ae7[_0x4f5916(0x25c)][_0x4f5916(0x1a7c)]||[{'message':_0xdf8ae7['toString'](),'type':_0x4f5916(0x94e)}];for(let _0x3d7dec=0x0;_0x3d7dec<_0xdf8ae7[_0x4f5916(0x25c)][_0x4f5916(0x1a7c)]['length'];_0x3d7dec+=0x1){_0xb081ff[_0x4f5916(0x218e)]({'title':_0xdf8ae7[_0x4f5916(0x25c)][_0x4f5916(0x1a7c)][_0x3d7dec][_0x4f5916(0x66a)],'msg':_0xdf8ae7['data'][_0x4f5916(0x1a7c)][_0x3d7dec][_0x4f5916(0x155e)]});}}else _0xb081ff['error']({'title':_0xdf8ae7[_0x4f5916(0x291)]?'API:'+_0xdf8ae7['status']+_0x4f5916(0x1657)+_0xdf8ae7[_0x4f5916(0xc22)]:'api.cmCustomField.save','msg':_0xdf8ae7[_0x4f5916(0x25c)]?JSON[_0x4f5916(0x2701)](_0xdf8ae7[_0x4f5916(0x25c)][_0x4f5916(0x155e)]):_0xdf8ae7[_0x4f5916(0x147f)]()});});}function _0x273c8f(){const _0x1a6238=_0x45bddc;_0x2a8916[_0x1a6238(0x1a7c)]=[],_0x4a17a9[_0x1a6238(0xc36)][_0x1a6238(0x687)]({'id':_0x2a8916[_0x1a6238(0x4b6)]['id']},_0x2a8916[_0x1a6238(0x4b6)])[_0x1a6238(0x1d77)]['then'](function(_0xf45c3d){const _0x26286a=_0x1a6238,_0x3dcecb=_0x39641b()[_0x26286a(0x13b4)](_0x2a8916[_0x26286a(0x26d)],{'id':_0xf45c3d['id']});_0x3dcecb&&_0x39641b()['merge'](_0x3dcecb,_0x39641b()[_0x26286a(0x169b)](_0xf45c3d[_0x26286a(0x19b2)](),_0x39641b()[_0x26286a(0x1be5)](_0x3dcecb))),_0xb081ff['success']({'title':_0x26286a(0x25df),'msg':_0x2a8916[_0x26286a(0x4b6)][_0x26286a(0x16b6)]?_0x2a8916['globalCustomField'][_0x26286a(0x16b6)]+_0x26286a(0xedb):''}),_0x2dd3a5(_0xf45c3d);})[_0x1a6238(0x1c4)](function(_0x34b57c){const _0x3b6b06=_0x1a6238;if(_0x34b57c[_0x3b6b06(0x25c)]&&_0x34b57c[_0x3b6b06(0x25c)][_0x3b6b06(0x1a7c)]&&_0x34b57c[_0x3b6b06(0x25c)][_0x3b6b06(0x1a7c)][_0x3b6b06(0xfd0)]){_0x2a8916['errors']=_0x34b57c['data']['errors']||[{'message':_0x34b57c[_0x3b6b06(0x147f)](),'type':_0x3b6b06(0x19e)}];for(let _0x3a9b4b=0x0;_0x3a9b4b<_0x34b57c[_0x3b6b06(0x25c)]['errors'][_0x3b6b06(0xfd0)];_0x3a9b4b++){_0xb081ff['error']({'title':_0x34b57c['data'][_0x3b6b06(0x1a7c)][_0x3a9b4b]['type'],'msg':_0x34b57c[_0x3b6b06(0x25c)]['errors'][_0x3a9b4b]['message']});}}else _0xb081ff[_0x3b6b06(0x218e)]({'title':_0x34b57c[_0x3b6b06(0x291)]?_0x3b6b06(0xeb9)+_0x34b57c[_0x3b6b06(0x291)]+_0x3b6b06(0x1657)+_0x34b57c[_0x3b6b06(0xc22)]:_0x3b6b06(0x19e),'msg':_0x34b57c['data']?JSON[_0x3b6b06(0x2701)](_0x34b57c[_0x3b6b06(0x25c)][_0x3b6b06(0x155e)]):_0x34b57c['toString']()});});}function _0x10c354(_0x5c2f77){const _0x17eea6=_0x45bddc;_0x2a8916['errors']=[];const _0x392472=_0x2d1bff[_0x17eea6(0x1551)]()['title'](_0x17eea6(0x1a2e))[_0x17eea6(0x862)]('The\x20globalCustomField\x20will\x20be\x20deleted.')[_0x17eea6(0x15ad)](_0x17eea6(0x98a))['ok']('Delete')[_0x17eea6(0x696)](_0x17eea6(0xde1))['targetEvent'](_0x5c2f77);_0x2d1bff[_0x17eea6(0xe27)](_0x392472)[_0x17eea6(0x1cb0)](function(){const _0x2afc1=_0x17eea6;_0x4a17a9[_0x2afc1(0xc36)][_0x2afc1(0x111d)]({'id':_0x2a8916[_0x2afc1(0x4b6)]['id']})[_0x2afc1(0x1d77)][_0x2afc1(0x1cb0)](function(){const _0x34b32f=_0x2afc1;_0x39641b()[_0x34b32f(0x152a)](_0x2a8916[_0x34b32f(0x26d)],{'id':_0x2a8916['globalCustomField']['id']}),_0xb081ff['success']({'title':_0x34b32f(0x23f),'msg':(_0x2a8916[_0x34b32f(0x4b6)]['name']||_0x34b32f(0x4b6))+'\x20has\x20been\x20deleted!'}),_0x2dd3a5(_0x2a8916['globalCustomField']);})['catch'](function(_0x44e745){const _0x1d7dfa=_0x2afc1;if(_0x44e745[_0x1d7dfa(0x25c)]&&_0x44e745[_0x1d7dfa(0x25c)][_0x1d7dfa(0x1a7c)]&&_0x44e745[_0x1d7dfa(0x25c)][_0x1d7dfa(0x1a7c)][_0x1d7dfa(0xfd0)]){_0x2a8916[_0x1d7dfa(0x1a7c)]=_0x44e745[_0x1d7dfa(0x25c)][_0x1d7dfa(0x1a7c)]||[{'message':_0x44e745[_0x1d7dfa(0x147f)](),'type':_0x1d7dfa(0x1d3)}];for(let _0x2088c0=0x0;_0x2088c0<_0x44e745[_0x1d7dfa(0x25c)][_0x1d7dfa(0x1a7c)]['length'];_0x2088c0++){_0xb081ff['error']({'title':_0x44e745[_0x1d7dfa(0x25c)]['errors'][_0x2088c0]['type'],'msg':_0x44e745[_0x1d7dfa(0x25c)][_0x1d7dfa(0x1a7c)][_0x2088c0][_0x1d7dfa(0x155e)]});}}else _0xb081ff[_0x1d7dfa(0x218e)]({'title':_0x44e745['status']?_0x1d7dfa(0xeb9)+_0x44e745['status']+'\x20-\x20'+_0x44e745[_0x1d7dfa(0xc22)]:_0x1d7dfa(0x1d3),'msg':_0x44e745[_0x1d7dfa(0x25c)]?JSON['stringify'](_0x44e745[_0x1d7dfa(0x25c)]['message']):_0x44e745[_0x1d7dfa(0x155e)]||_0x44e745['toString']()});});},function(){});}function _0x1620f6(_0xb376e7){return _0xb376e7===null?undefined:new Date(_0xb376e7);}function _0x2dd3a5(_0x3e385a){_0x2d1bff['hide'](_0x3e385a);}}const _0xd6ffd5=_0x2727a6;;const _0x242fd7=_0x5074a3['p']+'src/js/modules/main/apps/contactmanager/views/globalCustomFields/create/dialog.html/dialog.html';;_0x60a28a[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),'$document',_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x26d),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),'toasty',_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x60a28a(_0x77d991,_0x488846,_0x75d356,_0x8be70b,_0x844da5,_0x124221,_0x599f3a,_0x1c4a0e,_0x44f746,_0x32cee4,_0x3831fe,_0x51d343,_0x4ad0fa,_0x98a0c2,_0x332b59,_0x514849,_0x4555dd){const _0x4a9fb1=_0x5537c6,_0x345331=this;_0x345331[_0x4a9fb1(0x8a5)]=_0x514849,_0x345331[_0x4a9fb1(0x9ca)]=_0x4555dd,_0x345331[_0x4a9fb1(0xe76)]=_0x332b59[_0x4a9fb1(0x21e8)](),_0x345331[_0x4a9fb1(0x26d)]=_0x44f746||{'count':0x0,'rows':[]},_0x345331[_0x4a9fb1(0x44a)]=_0x32cee4,_0x345331[_0x4a9fb1(0x2199)]=_0x3831fe&&_0x3831fe[_0x4a9fb1(0x184d)]==0x1?_0x3831fe[_0x4a9fb1(0x2214)][0x0]:null,_0x345331[_0x4a9fb1(0x1b1a)]=_0x332b59['parseCrudPermissions'](_0x345331[_0x4a9fb1(0x2199)]?_0x345331['userProfileSection'][_0x4a9fb1(0x1b1a)]:null),_0x345331['table']=_0x4a9fb1(0x26d),_0x345331[_0x4a9fb1(0x1d20)]='',_0x345331[_0x4a9fb1(0x1cdf)]=null,_0x345331[_0x4a9fb1(0x1635)]=[],_0x345331[_0x4a9fb1(0xae2)]={'fields':_0x4a9fb1(0xc05),'sort':_0x4a9fb1(0x282),'ListId':_0x4a9fb1(0xd38),'limit':0xa,'page':0x1},_0x345331['arraytype']=_0x39641b()[_0x4a9fb1(0x2631)]([{'option':_0x4a9fb1(0x620),'value':_0x4a9fb1(0x25b0)},{'option':'Select','value':_0x4a9fb1(0xea1)},{'option':_0x4a9fb1(0x1fef),'value':_0x4a9fb1(0x1079)},{'option':_0x4a9fb1(0x1faa),'value':_0x4a9fb1(0x1a79)},{'option':_0x4a9fb1(0x1b30),'value':_0x4a9fb1(0x793)}],function(_0x5c21db){return _0x39641b()['replace'](_0x5c21db['value'],new RegExp('\x27','g'),'');}),_0x345331[_0x4a9fb1(0x16ca)]=_0x39641b()[_0x4a9fb1(0x2631)]([{'option':_0x4a9fb1(0x165),'value':_0x4a9fb1(0x4bb)}],function(_0x2b63eb){const _0x1b59f9=_0x4a9fb1;return _0x39641b()['replace'](_0x2b63eb[_0x1b59f9(0x327)],new RegExp('\x27','g'),'');}),_0x345331[_0x4a9fb1(0xc93)]=_0x16ab92,_0x345331['deleteconfirm']=_0x51b073,_0x345331['success']=_0x21b936,_0x345331[_0x4a9fb1(0x2787)]=_0x44c1ce,_0x345331[_0x4a9fb1(0x1f84)]=_0x108ac6,_0x345331[_0x4a9fb1(0x2263)]=_0x1cad3f,_0x345331[_0x4a9fb1(0x1c7)]=_0x2ff4f8,_0x345331[_0x4a9fb1(0x228d)]=_0x1df6b6,_0x345331[_0x4a9fb1(0x19c6)]=_0x234b43,_0x345331['selectAllGlobalCustomFields']=_0x5b9f20;function _0x16ab92(_0x4b2bd2,_0x58cdc2){const _0x20f920=_0x4a9fb1;_0x844da5[_0x20f920(0xe27)]({'controller':_0x20f920(0x630),'controllerAs':'vm','templateUrl':_0x242fd7,'parent':angular[_0x20f920(0x1853)](_0x124221[_0x20f920(0x1ed9)]),'targetEvent':_0x58cdc2,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x4b2bd2,'globalCustomFields':_0x345331[_0x20f920(0x26d)][_0x20f920(0x2214)],'license':_0x345331['license'],'setting':null,'crudPermissions':_0x345331[_0x20f920(0x1b1a)]}});}function _0x51b073(_0x10a694,_0x371bc5){const _0x305ba8=_0x4a9fb1,_0x2934c0=_0x844da5[_0x305ba8(0x1551)]()[_0x305ba8(0x1386)](_0x305ba8(0x140b)+_0x39641b()[_0x305ba8(0xa75)](_0x305ba8(0x4b6))+'?')['htmlContent'](_0x305ba8(0x204d)+(_0x10a694['name']||'globalCustomField')+_0x305ba8(0x1200)+_0x305ba8(0x1b6))[_0x305ba8(0x15ad)]('delete\x20globalCustomField')[_0x305ba8(0x728)](_0x371bc5)['ok']('OK')[_0x305ba8(0x696)](_0x305ba8(0x24ba));_0x844da5['show'](_0x2934c0)[_0x305ba8(0x1cb0)](function(){_0x1cad3f(_0x10a694);},function(){const _0x16ef5b=_0x305ba8;console[_0x16ef5b(0x1b4f)](_0x16ef5b(0x24ba));});}let _0x17969c=!![],_0x4cf7ff=0x1;_0x77d991[_0x4a9fb1(0x614)]('vm.query.filter',function(_0xc4b10,_0x2c75f2){const _0x19de33=_0x4a9fb1;_0x17969c?_0x599f3a(function(){_0x17969c=![];}):(!_0x2c75f2&&(_0x4cf7ff=_0x345331[_0x19de33(0xae2)][_0x19de33(0x1c7b)]),_0xc4b10!==_0x2c75f2&&(_0x345331[_0x19de33(0xae2)][_0x19de33(0x1c7b)]=0x1),!_0xc4b10&&(_0x345331[_0x19de33(0xae2)][_0x19de33(0x1c7b)]=_0x4cf7ff),_0x345331['getGlobalCustomFields']());});function _0x21b936(_0x1c8084){const _0x4d999b=_0x4a9fb1;_0x345331[_0x4d999b(0x26d)]=_0x1c8084||{'count':0x0,'rows':[]};}function _0x44c1ce(){const _0x5b7175=_0x4a9fb1;_0x345331[_0x5b7175(0xae2)][_0x5b7175(0x184b)]=(_0x345331[_0x5b7175(0xae2)]['page']-0x1)*_0x345331[_0x5b7175(0xae2)][_0x5b7175(0x236)],_0x332b59[_0x5b7175(0x22b6)](_0x5b7175(0x1c60))?_0x345331[_0x5b7175(0x2061)]=_0x51d343['cmCustomField'][_0x5b7175(0xbf7)](_0x345331[_0x5b7175(0xae2)],_0x21b936)['$promise']:(_0x345331[_0x5b7175(0xae2)]['id']=_0x345331[_0x5b7175(0x44a)]['id'],_0x345331['query'][_0x5b7175(0x1f74)]=_0x5b7175(0x83f),_0x345331[_0x5b7175(0x2061)]=_0x51d343[_0x5b7175(0x44a)][_0x5b7175(0x1810)](_0x345331[_0x5b7175(0xae2)],_0x21b936)[_0x5b7175(0x1d77)]);}function _0x108ac6(_0x2ec3be,_0x490575){const _0x2371c6=_0x4a9fb1;_0x844da5[_0x2371c6(0xe27)]({'controller':_0x2371c6(0x630),'controllerAs':'vm','templateUrl':_0x242fd7,'parent':angular[_0x2371c6(0x1853)](_0x124221['body']),'targetEvent':_0x2ec3be,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x490575,'globalCustomFields':_0x345331[_0x2371c6(0x26d)][_0x2371c6(0x2214)],'license':_0x345331[_0x2371c6(0x8a5)],'setting':_0x345331['setting'],'crudPermissions':_0x345331[_0x2371c6(0x1b1a)]}});}function _0x1cad3f(_0x26bfc1){const _0x5335e2=_0x4a9fb1;_0x51d343['cmCustomField'][_0x5335e2(0x111d)]({'id':_0x26bfc1['id']})[_0x5335e2(0x1d77)][_0x5335e2(0x1cb0)](function(){const _0x427dad=_0x5335e2;_0x39641b()[_0x427dad(0x152a)](_0x345331[_0x427dad(0x26d)]['rows'],{'id':_0x26bfc1['id']}),_0x345331[_0x427dad(0x26d)]['count']-=0x1,!_0x345331['globalCustomFields'][_0x427dad(0x2214)][_0x427dad(0xfd0)]&&_0x345331['getGlobalCustomFields'](),_0x98a0c2[_0x427dad(0x829)]({'title':_0x39641b()[_0x427dad(0xa75)](_0x427dad(0x167e))+'\x20deleted!','msg':_0x26bfc1[_0x427dad(0x16b6)]?_0x26bfc1['name']+'\x20has\x20been\x20deleted!':''});})[_0x5335e2(0x1c4)](function(_0x46fa6c){const _0x2b8305=_0x5335e2;if(_0x46fa6c[_0x2b8305(0x25c)]&&_0x46fa6c[_0x2b8305(0x25c)][_0x2b8305(0x1a7c)]&&_0x46fa6c[_0x2b8305(0x25c)][_0x2b8305(0x1a7c)][_0x2b8305(0xfd0)]){_0x345331['errors']=_0x46fa6c[_0x2b8305(0x25c)][_0x2b8305(0x1a7c)]||[{'message':_0x46fa6c['toString'](),'type':_0x2b8305(0x5bc)}];for(let _0x488331=0x0;_0x488331<_0x46fa6c[_0x2b8305(0x25c)][_0x2b8305(0x1a7c)][_0x2b8305(0xfd0)];_0x488331++){_0x98a0c2['error']({'title':_0x46fa6c[_0x2b8305(0x25c)][_0x2b8305(0x1a7c)][_0x488331][_0x2b8305(0x66a)],'msg':_0x46fa6c[_0x2b8305(0x25c)][_0x2b8305(0x1a7c)][_0x488331][_0x2b8305(0x155e)]});}}else _0x98a0c2[_0x2b8305(0x218e)]({'title':_0x46fa6c[_0x2b8305(0x291)]?_0x2b8305(0xeb9)+_0x46fa6c[_0x2b8305(0x291)]+_0x2b8305(0x1657)+_0x46fa6c[_0x2b8305(0xc22)]:_0x2b8305(0x5bc),'msg':_0x46fa6c[_0x2b8305(0x25c)]?JSON[_0x2b8305(0x2701)](_0x46fa6c[_0x2b8305(0x25c)][_0x2b8305(0x155e)]):_0x46fa6c[_0x2b8305(0x155e)]||_0x46fa6c[_0x2b8305(0x147f)]()});});}function _0x2ff4f8(){const _0x19b91c=_0x4a9fb1,_0x1a4a53=angular[_0x19b91c(0x17fe)](_0x345331[_0x19b91c(0x1635)]);return _0x345331['selectedGlobalCustomFields']=[],_0x1a4a53;}function _0x1df6b6(_0x248130){const _0x54059e=_0x4a9fb1,_0x27f493=_0x844da5[_0x54059e(0x1551)]()['title'](_0x54059e(0x177))['htmlContent'](''+_0x345331[_0x54059e(0x1635)][_0x54059e(0xfd0)]+_0x54059e(0x1d6c)+_0x54059e(0x1b6))[_0x54059e(0x15ad)](_0x54059e(0xafb))[_0x54059e(0x728)](_0x248130)['ok']('OK')[_0x54059e(0x696)](_0x54059e(0x24ba));_0x844da5['show'](_0x27f493)[_0x54059e(0x1cb0)](function(){const _0x525ad7=_0x54059e;_0x345331[_0x525ad7(0x1635)][_0x525ad7(0xf90)](function(_0x57027f){_0x1cad3f(_0x57027f);}),_0x345331[_0x525ad7(0x1635)]=[];});}function _0x234b43(){const _0x202a1f=_0x4a9fb1;_0x345331[_0x202a1f(0x1635)]=[];}function _0x5b9f20(){const _0x331ed9=_0x4a9fb1;_0x345331[_0x331ed9(0x1635)]=_0x345331[_0x331ed9(0x26d)][_0x331ed9(0x2214)];}}const _0x1b9e3f=_0x60a28a;;_0x4bfd56[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog','$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x1046),'list',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x4bfd56(_0x535eb1,_0x54fde0,_0x49cff9,_0x44f0ea,_0x34175d,_0x377909,_0x2a15c6,_0x10ef84,_0x23e532,_0x76cf5b,_0x50d9dc,_0x1ccdf9,_0x258fdc,_0x268272){const _0x486b1b=_0x5537c6,_0x13162b=this;_0x13162b[_0x486b1b(0xe76)]=_0x50d9dc['getCurrentUser'](),_0x13162b[_0x486b1b(0x1a7c)]=[],_0x13162b[_0x486b1b(0x9ca)]=_0x258fdc,_0x13162b[_0x486b1b(0x8a5)]=_0x1ccdf9,_0x13162b[_0x486b1b(0x1b1a)]=_0x268272,_0x13162b['hasModulePermissions']={},_0x13162b['passwordPattern']=_0x13162b[_0x486b1b(0x9ca)]&&_0x13162b[_0x486b1b(0x9ca)][_0x486b1b(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x13162b[_0x486b1b(0x1386)]=_0x486b1b(0xe26),_0x13162b['list']=angular[_0x486b1b(0x17fe)](_0x23e532),_0x13162b[_0x486b1b(0x1046)]=_0x10ef84,_0x13162b['newList']=![];!_0x13162b['list']&&(_0x13162b[_0x486b1b(0x240)]={},_0x13162b[_0x486b1b(0x1386)]='CONTACTMANAGER.NEW_LIST',_0x13162b[_0x486b1b(0x6db)]=!![]);_0x13162b[_0x486b1b(0x1ec7)]=_0xd89e96,_0x13162b['saveList']=_0x35f153,_0x13162b[_0x486b1b(0x1547)]=_0x711e28,_0x13162b[_0x486b1b(0x2c4)]=_0x50aa5b,_0x13162b['closeDialog']=_0x23c0e5;function _0xd89e96(){const _0x9a614d=_0x486b1b;_0x13162b[_0x9a614d(0x1a7c)]=[],_0x76cf5b[_0x9a614d(0x22f2)][_0x9a614d(0x1c3f)](_0x13162b[_0x9a614d(0x240)])[_0x9a614d(0x1d77)][_0x9a614d(0x1cb0)](function(_0x22aab6){const _0x23cbb3=_0x9a614d;_0x13162b['lists'][_0x23cbb3(0xf63)](_0x22aab6[_0x23cbb3(0x19b2)]()),_0x2a15c6[_0x23cbb3(0x829)]({'title':'List\x20properly\x20created','msg':_0x13162b['list'][_0x23cbb3(0x16b6)]?_0x13162b[_0x23cbb3(0x240)][_0x23cbb3(0x16b6)]+_0x23cbb3(0x470):''}),_0x23c0e5(_0x22aab6);})[_0x9a614d(0x1c4)](function(_0x3e1829){const _0x35f0c3=_0x9a614d;if(_0x3e1829[_0x35f0c3(0x25c)]&&_0x3e1829[_0x35f0c3(0x25c)][_0x35f0c3(0x1a7c)]&&_0x3e1829[_0x35f0c3(0x25c)][_0x35f0c3(0x1a7c)]['length']){_0x13162b[_0x35f0c3(0x1a7c)]=_0x3e1829[_0x35f0c3(0x25c)][_0x35f0c3(0x1a7c)]||[{'message':_0x3e1829[_0x35f0c3(0x147f)](),'type':_0x35f0c3(0x1131)}];for(let _0x20f396=0x0;_0x20f396<_0x3e1829[_0x35f0c3(0x25c)]['errors'][_0x35f0c3(0xfd0)];_0x20f396+=0x1){_0x2a15c6['error']({'title':_0x3e1829['data'][_0x35f0c3(0x1a7c)][_0x20f396][_0x35f0c3(0x66a)],'msg':_0x3e1829[_0x35f0c3(0x25c)][_0x35f0c3(0x1a7c)][_0x20f396]['message']});}}else _0x2a15c6[_0x35f0c3(0x218e)]({'title':_0x3e1829[_0x35f0c3(0x291)]?_0x35f0c3(0xeb9)+_0x3e1829[_0x35f0c3(0x291)]+'\x20-\x20'+_0x3e1829['statusText']:_0x35f0c3(0x1131),'msg':_0x3e1829[_0x35f0c3(0x25c)]?JSON[_0x35f0c3(0x2701)](_0x3e1829['data']['message']):_0x3e1829[_0x35f0c3(0x147f)]()});});}function _0x35f153(){const _0x369ecd=_0x486b1b;_0x13162b[_0x369ecd(0x1a7c)]=[],_0x76cf5b[_0x369ecd(0x22f2)][_0x369ecd(0x687)]({'id':_0x13162b['list']['id']},_0x13162b[_0x369ecd(0x240)])[_0x369ecd(0x1d77)]['then'](function(_0x25b15c){const _0x1bc97b=_0x369ecd,_0x251d3b=_0x39641b()[_0x1bc97b(0x13b4)](_0x13162b[_0x1bc97b(0x1046)],{'id':_0x25b15c['id']});_0x251d3b&&_0x39641b()[_0x1bc97b(0x9c1)](_0x251d3b,_0x39641b()[_0x1bc97b(0x169b)](_0x25b15c[_0x1bc97b(0x19b2)](),_0x39641b()['keys'](_0x251d3b))),_0x2a15c6['success']({'title':_0x1bc97b(0x53a),'msg':_0x13162b['list']['name']?_0x13162b[_0x1bc97b(0x240)][_0x1bc97b(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x23c0e5(_0x25b15c);})[_0x369ecd(0x1c4)](function(_0x596ebe){const _0x38e53e=_0x369ecd;if(_0x596ebe['data']&&_0x596ebe['data'][_0x38e53e(0x1a7c)]&&_0x596ebe[_0x38e53e(0x25c)][_0x38e53e(0x1a7c)][_0x38e53e(0xfd0)]){_0x13162b[_0x38e53e(0x1a7c)]=_0x596ebe[_0x38e53e(0x25c)][_0x38e53e(0x1a7c)]||[{'message':_0x596ebe['toString'](),'type':_0x38e53e(0x11fc)}];for(let _0x21219a=0x0;_0x21219a<_0x596ebe[_0x38e53e(0x25c)][_0x38e53e(0x1a7c)][_0x38e53e(0xfd0)];_0x21219a++){_0x2a15c6[_0x38e53e(0x218e)]({'title':_0x596ebe['data'][_0x38e53e(0x1a7c)][_0x21219a][_0x38e53e(0x66a)],'msg':_0x596ebe[_0x38e53e(0x25c)]['errors'][_0x21219a][_0x38e53e(0x155e)]});}}else _0x2a15c6[_0x38e53e(0x218e)]({'title':_0x596ebe[_0x38e53e(0x291)]?_0x38e53e(0xeb9)+_0x596ebe[_0x38e53e(0x291)]+'\x20-\x20'+_0x596ebe[_0x38e53e(0xc22)]:'api.cmList.update','msg':_0x596ebe[_0x38e53e(0x25c)]?JSON[_0x38e53e(0x2701)](_0x596ebe['data'][_0x38e53e(0x155e)]):_0x596ebe[_0x38e53e(0x147f)]()});});}function _0x711e28(_0x3388ca){const _0x1d3e90=_0x486b1b;_0x13162b[_0x1d3e90(0x1a7c)]=[];const _0x366034=_0x44f0ea[_0x1d3e90(0x1551)]()['title'](_0x1d3e90(0x1a2e))['content']('The\x20list\x20will\x20be\x20deleted.')['ariaLabel'](_0x1d3e90(0x1fae))['ok'](_0x1d3e90(0x2594))[_0x1d3e90(0x696)](_0x1d3e90(0xde1))[_0x1d3e90(0x728)](_0x3388ca);_0x44f0ea[_0x1d3e90(0xe27)](_0x366034)['then'](function(){const _0x25247c=_0x1d3e90;_0x76cf5b[_0x25247c(0x22f2)][_0x25247c(0x111d)]({'id':_0x13162b['list']['id']})[_0x25247c(0x1d77)][_0x25247c(0x1cb0)](function(){const _0x5e60a4=_0x25247c;_0x39641b()['remove'](_0x13162b[_0x5e60a4(0x1046)],{'id':_0x13162b[_0x5e60a4(0x240)]['id']}),_0x2a15c6[_0x5e60a4(0x829)]({'title':'List\x20properly\x20deleted!','msg':(_0x13162b[_0x5e60a4(0x240)][_0x5e60a4(0x16b6)]||_0x5e60a4(0x240))+_0x5e60a4(0x3f5)}),_0x23c0e5(_0x13162b[_0x5e60a4(0x240)]);})[_0x25247c(0x1c4)](function(_0x4ca4d3){const _0x2c590f=_0x25247c;if(_0x4ca4d3[_0x2c590f(0x25c)]&&_0x4ca4d3['data'][_0x2c590f(0x1a7c)]&&_0x4ca4d3['data'][_0x2c590f(0x1a7c)][_0x2c590f(0xfd0)]){_0x13162b[_0x2c590f(0x1a7c)]=_0x4ca4d3[_0x2c590f(0x25c)]['errors']||[{'message':_0x4ca4d3[_0x2c590f(0x147f)](),'type':_0x2c590f(0x2968)}];for(let _0x11cf67=0x0;_0x11cf67<_0x4ca4d3[_0x2c590f(0x25c)]['errors'][_0x2c590f(0xfd0)];_0x11cf67++){_0x2a15c6[_0x2c590f(0x218e)]({'title':_0x4ca4d3['data'][_0x2c590f(0x1a7c)][_0x11cf67][_0x2c590f(0x66a)],'msg':_0x4ca4d3['data'][_0x2c590f(0x1a7c)][_0x11cf67][_0x2c590f(0x155e)]});}}else _0x2a15c6['error']({'title':_0x4ca4d3['status']?_0x2c590f(0xeb9)+_0x4ca4d3['status']+_0x2c590f(0x1657)+_0x4ca4d3['statusText']:_0x2c590f(0x2968),'msg':_0x4ca4d3[_0x2c590f(0x25c)]?JSON[_0x2c590f(0x2701)](_0x4ca4d3[_0x2c590f(0x25c)]['message']):_0x4ca4d3['message']||_0x4ca4d3[_0x2c590f(0x147f)]()});});},function(){});}function _0x50aa5b(_0x4a2d42){return _0x4a2d42===null?undefined:new Date(_0x4a2d42);}function _0x23c0e5(_0x57315f){const _0x226aac=_0x486b1b;_0x44f0ea[_0x226aac(0x1426)](_0x57315f);}}const _0x19b63a=_0x4bfd56;;_0x2d6ef3[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x142b),'list','lists',_0x5537c6(0x217b),'$translate',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x2d6ef3(_0x538207,_0xa8277a,_0x2342b7,_0x25cd8a,_0x1728cb,_0x237d53,_0x196182,_0x3faafe,_0x565644,_0x5e9ffb){const _0x3e401e=_0x5537c6,_0x1d5978=this;_0x1d5978[_0x3e401e(0xe76)]=_0x565644[_0x3e401e(0x21e8)](),_0x1d5978[_0x3e401e(0x240)]=_0x1728cb,_0x1d5978[_0x3e401e(0x1b1a)]=_0x5e9ffb,_0x1d5978[_0x3e401e(0x217b)]=_0x196182,_0x1d5978[_0x3e401e(0x122f)]=[],_0x1d5978['allowedItems']=[],_0x1d5978['selectedItems']=[],_0x1d5978[_0x3e401e(0xbd5)]=[],_0x1d5978[_0x3e401e(0x1456)]=[],_0x1d5978[_0x3e401e(0x50c)]=![],_0x1d5978[_0x3e401e(0x1a34)]=_0x2c75f9,_0x1d5978['saveAgents']=_0x70bae6,_0x1d5978[_0x3e401e(0xda0)]=_0x57c610,_0x1d5978[_0x3e401e(0x18c0)]={'readOnly':!_0x1d5978[_0x3e401e(0x1b1a)][_0x3e401e(0xb3d)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x3e401e(0x16b6),'line1':_0x3e401e(0x1d14),'line2':[_0x3e401e(0x16b6),_0x3e401e(0xdbd)],'line3':'','labelAll':_0x3faafe[_0x3e401e(0x25cc)](_0x3e401e(0x21e7)),'labelSelected':_0x3faafe['instant'](_0x3e401e(0x1cd5)),'transferCallback':function(){const _0x2b33a3=_0x3e401e,_0x8bb430=_0x39641b()[_0x2b33a3(0x1423)](_0x1d5978['startingSelectedItems'],_0x1d5978[_0x2b33a3(0x20bb)],'id');_0x1d5978['pendingChanges']=_0x39641b()[_0x2b33a3(0xce9)](_0x8bb430)?![]:!![];}};function _0x2c75f9(){const _0x637db4=_0x3e401e;return _0x565644['hasRole']('admin')?_0x242464()[_0x637db4(0x1c4)](function(_0xa6fb7c){const _0x3d11ec=_0x637db4;_0x2342b7['error']({'title':_0xa6fb7c[_0x3d11ec(0x291)]?_0x3d11ec(0xeb9)+_0xa6fb7c[_0x3d11ec(0x291)]+_0x3d11ec(0x1657)+_0xa6fb7c[_0x3d11ec(0xc22)]:'SYSTEM:GET_AGENTS','msg':_0xa6fb7c[_0x3d11ec(0x291)]?JSON[_0x3d11ec(0x2701)](_0xa6fb7c[_0x3d11ec(0x25c)]):_0xa6fb7c[_0x3d11ec(0x147f)]()});}):_0x435846()[_0x637db4(0x1cb0)](function(_0x2cae14){const _0x172138=_0x637db4;return _0x1d5978[_0x172138(0x1f74)]=_0x2cae14,_0x242464();})[_0x637db4(0x1c4)](function(_0x33d808){const _0x3b1c47=_0x637db4;_0x2342b7[_0x3b1c47(0x218e)]({'title':_0x33d808['status']?'API:'+_0x33d808[_0x3b1c47(0x291)]+_0x3b1c47(0x1657)+_0x33d808[_0x3b1c47(0xc22)]:_0x3b1c47(0x799),'msg':_0x33d808[_0x3b1c47(0x291)]?JSON[_0x3b1c47(0x2701)](_0x33d808[_0x3b1c47(0x25c)]):_0x33d808[_0x3b1c47(0x147f)]()});});}function _0x435846(){return _0xa8277a(function(_0x1e9e5d,_0x20b4c4){const _0x24ffeb=a0_0x5cbd;_0x25cd8a[_0x24ffeb(0x2199)][_0x24ffeb(0xbf7)]({'userProfileId':_0x1d5978[_0x24ffeb(0xe76)][_0x24ffeb(0x13c1)],'name':'Agents'})[_0x24ffeb(0x1d77)]['then'](function(_0x389bc1){const _0x1740e6=_0x24ffeb,_0x4f89b8=_0x389bc1&&_0x389bc1[_0x1740e6(0x2214)]?_0x389bc1[_0x1740e6(0x2214)][0x0]:null;_0x1e9e5d(_0x4f89b8);})[_0x24ffeb(0x1c4)](function(_0x411d20){_0x20b4c4(_0x411d20);});});}function _0x242464(){return _0xa8277a(function(_0x3576c1,_0x451384){const _0x3fbf34=a0_0x5cbd;return _0x1f3f51()[_0x3fbf34(0x1cb0)](function(_0x548086){const _0x484d63=_0x3fbf34;return _0x1d5978['items']=_0x548086[_0x484d63(0x2214)]?_0x548086['rows']:[],_0x565644['hasRole'](_0x484d63(0x1c60))?_0x548086:_0x1d5978[_0x484d63(0x1f74)]?_0x1d5978['section'][_0x484d63(0x12f4)]?_0x548086:_0xd5c66():null;})[_0x3fbf34(0x1cb0)](function(_0xd0d09a){const _0x2b746f=_0x3fbf34,_0x55625b=_0xd0d09a&&_0xd0d09a[_0x2b746f(0x2214)]?_0xd0d09a[_0x2b746f(0x2214)]:[];return _0x1d5978['allowedItems']=_0x39641b()[_0x2b746f(0x1de2)](_0x55625b,function(_0x3e4c74){const _0x310714=_0x2b746f;return _0x39641b()[_0x310714(0x13b4)](_0x1d5978['items'],{'id':_0x565644[_0x310714(0x22b6)](_0x310714(0x1c60))||_0x1d5978['section'][_0x310714(0x12f4)]?_0x3e4c74['id']:_0x3e4c74[_0x310714(0x2982)]});}),_0x1d5978[_0x2b746f(0xbd5)]=angular[_0x2b746f(0x17fe)](_0x1d5978[_0x2b746f(0x1372)]),_0x1d5978['items']['forEach'](function(_0xf61a21){const _0x2820e0=_0x2b746f,_0x4e73a8=_0x39641b()['find'](_0x1d5978[_0x2820e0(0x1372)],{'id':_0xf61a21['id']});_0x565644[_0x2820e0(0x22b6)](_0x2820e0(0x1c60))?_0xf61a21['isValid']=!![]:_0xf61a21[_0x2820e0(0x1a4f)]=typeof _0x4e73a8!==_0x2820e0(0x16b5)?!![]:![];}),_0x123617();})[_0x3fbf34(0x1cb0)](function(_0xfe7443){const _0x50775f=_0x3fbf34,_0x419083=_0xfe7443&&_0xfe7443[_0x50775f(0x2214)]?_0xfe7443['rows']:[];_0x1d5978['selectedItems']=_0x39641b()[_0x50775f(0x1de2)](_0x419083,function(_0x3d45a0){const _0x49ca34=_0x50775f,_0x1af60c=_0x39641b()[_0x49ca34(0x13b4)](_0x1d5978['items'],{'id':_0x3d45a0['id']});return _0x1af60c[_0x49ca34(0x1cbc)]=_0x3d45a0[_0x49ca34(0x1ed3)]?'penalty\x20'+_0x3d45a0[_0x49ca34(0x1ed3)][_0x49ca34(0x1cbc)]:'',_0x1af60c[_0x49ca34(0xdbd)]=typeof _0x3d45a0[_0x49ca34(0xdbd)]!==_0x49ca34(0x16b5)?'<'+_0x3d45a0[_0x49ca34(0xdbd)]+'>':'',_0x1af60c;}),_0x1d5978[_0x50775f(0x1456)]=angular[_0x50775f(0x17fe)](_0x1d5978[_0x50775f(0x20bb)]),_0x1d5978['dualMultiselectOptions'][_0x50775f(0x20bb)]=_0x1d5978[_0x50775f(0x20bb)],_0x1d5978['dualMultiselectOptions'][_0x50775f(0x122f)]=_0x39641b()[_0x50775f(0x2128)](_0x1d5978[_0x50775f(0x1372)],_0x1d5978[_0x50775f(0x18c0)][_0x50775f(0x20bb)],'id'),_0x3576c1();})[_0x3fbf34(0x1c4)](function(_0x547331){_0x451384(_0x547331);});});}function _0xd5c66(){return _0xa8277a(function(_0x529e18,_0x3ee465){const _0x3aabd3=a0_0x5cbd;return _0x25cd8a[_0x3aabd3(0x1198)][_0x3aabd3(0xbf7)]({'sectionId':_0x1d5978[_0x3aabd3(0x1f74)]['id'],'nolimit':!![]})[_0x3aabd3(0x1d77)][_0x3aabd3(0x1cb0)](function(_0x47d566){_0x529e18(_0x47d566);})[_0x3aabd3(0x1c4)](function(_0x2a856e){_0x3ee465(_0x2a856e);});});}function _0x123617(){return _0xa8277a(function(_0x50668f,_0x4d1f8b){const _0x3fff4d=a0_0x5cbd;return _0x25cd8a[_0x3fff4d(0x22f2)][_0x3fff4d(0x2348)]({'id':_0x1d5978['list']['id'],'fields':_0x3fff4d(0x251e),'nolimit':!![],'role':_0x3fff4d(0x1eff)})[_0x3fff4d(0x1d77)][_0x3fff4d(0x1cb0)](function(_0x52459b){_0x50668f(_0x52459b);})[_0x3fff4d(0x1c4)](function(_0x42bf50){_0x4d1f8b(_0x42bf50);});});}function _0x1f3f51(){return _0xa8277a(function(_0x34495a,_0x125aa5){const _0x458baf=a0_0x5cbd;return _0x25cd8a[_0x458baf(0xebe)]['get']({'fields':_0x458baf(0x251e),'nolimit':!![],'role':_0x458baf(0x1eff)})[_0x458baf(0x1d77)]['then'](function(_0x3a7c30){_0x34495a(_0x3a7c30);})[_0x458baf(0x1c4)](function(_0x4feb43){_0x125aa5(_0x4feb43);});});}function _0x5da4df(_0x1a79e4){return _0xa8277a(function(_0x1f690a,_0x181a8e){const _0x21fa14=a0_0x5cbd;_0x39641b()['isEmpty'](_0x1a79e4)?_0x1f690a():_0x25cd8a['cmList'][_0x21fa14(0x2057)]({'id':_0x1d5978[_0x21fa14(0x240)]['id'],'ids':_0x39641b()[_0x21fa14(0x1de2)](_0x1a79e4,'id')})[_0x21fa14(0x1d77)][_0x21fa14(0x1cb0)](function(){_0x1f690a();})[_0x21fa14(0x1c4)](function(_0x3f051b){_0x181a8e(_0x3f051b);});});}function _0x2d6fa1(_0x220cb3){return _0xa8277a(function(_0x424171,_0x23d5a7){const _0xca8b28=a0_0x5cbd;_0x39641b()[_0xca8b28(0xce9)](_0x220cb3)?_0x424171():_0x25cd8a[_0xca8b28(0x22f2)][_0xca8b28(0x223f)]({'id':_0x1d5978[_0xca8b28(0x240)]['id'],'ids':_0x39641b()[_0xca8b28(0x1de2)](_0x220cb3,'id')})['$promise']['then'](function(){_0x424171();})[_0xca8b28(0x1c4)](function(_0x2c2d02){_0x23d5a7(_0x2c2d02);});});}function _0x70bae6(){const _0x5aff6e=_0x3e401e,_0x5ab5a8=_0x39641b()[_0x5aff6e(0x2128)](_0x1d5978[_0x5aff6e(0x1456)],_0x1d5978[_0x5aff6e(0x20bb)],'id'),_0x4d8e8d=_0x39641b()['differenceBy'](_0x1d5978['selectedItems'],_0x1d5978[_0x5aff6e(0x1456)],'id');return _0x2d6fa1(_0x5ab5a8)['then'](function(){return _0x5da4df(_0x4d8e8d);})[_0x5aff6e(0x1cb0)](function(){const _0x203192=_0x5aff6e;_0x1d5978['pendingChanges']=![],_0x1d5978['startingAllowedItems']=angular[_0x203192(0x17fe)](_0x1d5978[_0x203192(0x1372)]),_0x1d5978['startingSelectedItems']=angular['copy'](_0x1d5978['selectedItems']),_0x2342b7[_0x203192(0x829)]({'title':_0x203192(0x201),'msg':_0x203192(0x976)});})[_0x5aff6e(0x1c4)](function(_0x43a409){const _0x1afede=_0x5aff6e;_0x2342b7['error']({'title':_0x43a409[_0x1afede(0x291)]?'API:'+_0x43a409['status']+_0x1afede(0x1657)+_0x43a409[_0x1afede(0xc22)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x43a409[_0x1afede(0x291)]?JSON[_0x1afede(0x2701)](_0x43a409['data']):_0x43a409[_0x1afede(0x147f)]()});});}function _0x57c610(){_0x538207['hide']();}}const _0x39ec34=_0x2d6ef3;;const _0x40f7ef=_0x5074a3['p']+_0x5537c6(0x123e);;_0x3c6c87[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x1463),'$state','$q',_0x5537c6(0x1ae),_0x5537c6(0x2168),_0x5537c6(0xcb9),'$document',_0x5537c6(0x9bf),_0x5537c6(0x142b),'Auth'];function _0x3c6c87(_0xcd666,_0x114168,_0x12adf4,_0x318cc2,_0x49bde3,_0x1121c8,_0x3d261e,_0x32d504,_0x6f3313,_0x395ef2,_0xf31baf){const _0x1a669e=_0x5537c6,_0x21d7e0=this;_0x21d7e0[_0x1a669e(0xe76)]=_0xf31baf[_0x1a669e(0x21e8)](),_0x21d7e0[_0x1a669e(0x240)]={},_0x21d7e0[_0x1a669e(0xc52)]={'count':0x0,'rows':[]},_0x21d7e0[_0x1a669e(0x1c00)]=[],_0x21d7e0['crudPermissions'],_0x21d7e0[_0x1a669e(0xae2)]={'fields':_0x1a669e(0xc05),'limit':0xa,'page':0x1},_0x21d7e0[_0x1a669e(0x101d)]=_0x39641b()['keyBy']([{'option':_0x1a669e(0x620),'value':_0x1a669e(0x25b0)},{'option':_0x1a669e(0x1f6b),'value':'\x27select\x27'},{'option':_0x1a669e(0x1fef),'value':_0x1a669e(0x1079)},{'option':_0x1a669e(0x1faa),'value':_0x1a669e(0x1a79)},{'option':_0x1a669e(0x1b30),'value':_0x1a669e(0x793)}],function(_0x3855d0){const _0x11b4f3=_0x1a669e;return _0x39641b()[_0x11b4f3(0x288f)](_0x3855d0[_0x11b4f3(0x327)],new RegExp('\x27','g'),'');}),_0x21d7e0[_0x1a669e(0x16ca)]=_0x39641b()[_0x1a669e(0x2631)]([{'option':'Voice','value':'\x27voice\x27'}],function(_0x314fda){const _0x56944e=_0x1a669e;return _0x39641b()['replace'](_0x314fda[_0x56944e(0x327)],new RegExp('\x27','g'),'');}),_0x21d7e0[_0x1a669e(0x1a8e)]=_0x300f3f,_0x21d7e0[_0x1a669e(0xb25)]=_0x2e5f75,_0x21d7e0[_0x1a669e(0x829)]=_0x5c34dd,_0x21d7e0[_0x1a669e(0x195)]=_0x1958ab,_0x21d7e0[_0x1a669e(0xddc)]=_0x222f29,_0x21d7e0[_0x1a669e(0xde7)]=_0x17c2f0,_0x21d7e0[_0x1a669e(0x9de)]=_0xb6545c,_0x21d7e0[_0x1a669e(0x1e4c)]=_0x8286f7;function _0x300f3f(_0x1c6e2f,_0x304750){const _0x54003d=_0x1a669e;_0x21d7e0[_0x54003d(0x240)]=_0x1c6e2f,_0x21d7e0[_0x54003d(0x1b1a)]=typeof _0x304750!==_0x54003d(0x16b5)?_0x304750:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x21d7e0[_0x54003d(0xae2)][_0x54003d(0x20a6)]=_0x21d7e0[_0x54003d(0x240)]['id'],_0x21d7e0[_0x54003d(0xae2)]['id']=_0x21d7e0[_0x54003d(0x240)]['id'],_0x1958ab();}function _0x2e5f75(_0x22444e,_0xbc8c2b){const _0xd75f08=_0x1a669e,_0x4ebbce=_0x3d261e[_0xd75f08(0x1551)]()[_0xd75f08(0x1386)](_0xd75f08(0xdba))[_0xd75f08(0x49e)](''+(_0x22444e[_0xd75f08(0x16b6)]||_0x22444e['id']&&_0x39641b()[_0xd75f08(0x277)]('customField\x20#')+_0x22444e['id']||_0xd75f08(0x1d5a))+_0xd75f08(0x1200)+_0xd75f08(0x1b6))[_0xd75f08(0x15ad)](_0xd75f08(0xe90))[_0xd75f08(0x728)](_0xbc8c2b)['ok']('OK')[_0xd75f08(0x696)](_0xd75f08(0x24ba));_0x3d261e[_0xd75f08(0xe27)](_0x4ebbce)[_0xd75f08(0x1cb0)](function(){_0xb6545c(_0x22444e);},function(){const _0x254916=_0xd75f08;console[_0x254916(0x1b4f)]('CANCEL');});}function _0x5c34dd(_0x265e15){const _0x13a2a4=_0x1a669e;_0x21d7e0[_0x13a2a4(0xc52)]=_0x265e15||{'count':0x0,'rows':[]};}function _0x1958ab(){const _0x16e62b=_0x1a669e;_0x21d7e0[_0x16e62b(0xae2)][_0x16e62b(0x184b)]=(_0x21d7e0[_0x16e62b(0xae2)][_0x16e62b(0x1c7b)]-0x1)*_0x21d7e0['query']['limit'],_0x21d7e0[_0x16e62b(0x2061)]=_0x395ef2[_0x16e62b(0x22f2)]['getCustomFields'](_0x21d7e0['query'],_0x5c34dd)['$promise'];}function _0x222f29(_0x46b680,_0x5b180a){const _0x1c2c1e=_0x1a669e;_0x3d261e[_0x1c2c1e(0xe27)]({'controller':_0x1c2c1e(0x2365),'controllerAs':'vm','templateUrl':_0x40f7ef,'parent':angular['element'](_0x32d504['body']),'targetEvent':_0x46b680,'clickOutsideToClose':!![],'locals':{'list':_0x21d7e0[_0x1c2c1e(0x240)],'customField':_0x5b180a,'customFields':_0x21d7e0[_0x1c2c1e(0xc52)][_0x1c2c1e(0x2214)],'license':null,'setting':null,'crudPermissions':_0x21d7e0[_0x1c2c1e(0x1b1a)]}});}function _0xb6545c(_0xf76dfe){const _0x3d4be8=_0x1a669e;_0x395ef2[_0x3d4be8(0xc36)][_0x3d4be8(0x111d)]({'id':_0xf76dfe['id']})['$promise'][_0x3d4be8(0x1cb0)](function(){const _0x359882=_0x3d4be8;_0x39641b()['remove'](_0x21d7e0[_0x359882(0xc52)][_0x359882(0x2214)],{'id':_0xf76dfe['id']}),_0x21d7e0['listCustomFields']['count']-=0x1,!_0x21d7e0[_0x359882(0xc52)]['rows'][_0x359882(0xfd0)]&&_0x1958ab(),_0x6f3313[_0x359882(0x829)]({'title':_0x359882(0x2081),'msg':_0xf76dfe[_0x359882(0x16b6)]?_0xf76dfe[_0x359882(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x3d4be8(0x1c4)](function(_0xe039b7){const _0x403dbc=_0x3d4be8;if(_0xe039b7[_0x403dbc(0x25c)]&&_0xe039b7[_0x403dbc(0x25c)][_0x403dbc(0x1a7c)]&&_0xe039b7[_0x403dbc(0x25c)][_0x403dbc(0x1a7c)][_0x403dbc(0xfd0)]){_0x21d7e0[_0x403dbc(0x1a7c)]=_0xe039b7[_0x403dbc(0x25c)]['errors']||[{'message':_0xe039b7[_0x403dbc(0x147f)](),'type':_0x403dbc(0xf15)}];for(let _0x12a214=0x0;_0x12a214<_0xe039b7[_0x403dbc(0x25c)][_0x403dbc(0x1a7c)][_0x403dbc(0xfd0)];_0x12a214++){_0x6f3313[_0x403dbc(0x218e)]({'title':_0xe039b7['data'][_0x403dbc(0x1a7c)][_0x12a214][_0x403dbc(0x66a)],'msg':_0xe039b7[_0x403dbc(0x25c)][_0x403dbc(0x1a7c)][_0x12a214][_0x403dbc(0x155e)]});}}else _0x6f3313[_0x403dbc(0x218e)]({'title':_0xe039b7['status']?'API:'+_0xe039b7['status']+_0x403dbc(0x1657)+_0xe039b7[_0x403dbc(0xc22)]:'SYSTEM:GETcmList','msg':_0xe039b7['data']?JSON[_0x403dbc(0x2701)](_0xe039b7[_0x403dbc(0x25c)][_0x403dbc(0x155e)]):_0xe039b7[_0x403dbc(0x155e)]||_0xe039b7['toString']()});});}function _0x17c2f0(){const _0x558b32=_0x1a669e,_0x2e0fa8=angular[_0x558b32(0x17fe)](_0x21d7e0[_0x558b32(0x1c00)]);return _0x21d7e0['selectedListCustomFields']=[],_0x2e0fa8;}function _0x8286f7(_0x1fd860){const _0x590825=_0x1a669e,_0x30f7fe=_0x3d261e['confirm']()['title'](_0x590825(0x1815))[_0x590825(0x49e)](''+_0x21d7e0[_0x590825(0x1c00)][_0x590825(0xfd0)]+'\x20selected'+_0x590825(0x1b6))[_0x590825(0x15ad)](_0x590825(0x258f))['targetEvent'](_0x1fd860)['ok']('OK')[_0x590825(0x696)]('CANCEL');_0x3d261e[_0x590825(0xe27)](_0x30f7fe)[_0x590825(0x1cb0)](function(){const _0x5a759e=_0x590825;_0x21d7e0['selectedListCustomFields'][_0x5a759e(0xf90)](function(_0x3ecf84){_0xb6545c(_0x3ecf84);}),_0x21d7e0[_0x5a759e(0x1c00)]=[];});}let _0x246310=!![],_0x4f9c22=0x1;_0x114168[_0x1a669e(0x614)](_0x1a669e(0xeb6),function(_0x39c548,_0x23b31a){const _0x3f6987=_0x1a669e;_0x246310?_0x1121c8(function(){_0x246310=![];}):(!_0x23b31a&&(_0x4f9c22=_0x21d7e0['query'][_0x3f6987(0x1c7b)]),_0x39c548!==_0x23b31a&&(_0x21d7e0[_0x3f6987(0xae2)][_0x3f6987(0x1c7b)]=0x1),!_0x39c548&&(_0x21d7e0[_0x3f6987(0xae2)][_0x3f6987(0x1c7b)]=_0x4f9c22),_0x1958ab());});}const _0x2b87e9=_0x3c6c87;;_0x223b58[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),'$location',_0x5537c6(0xcb9),'$q','$translate',_0x5537c6(0x9bf),'customFields',_0x5537c6(0x1d5a),_0x5537c6(0x142b),'Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x223b58(_0xab4cd3,_0x3a3560,_0x467034,_0x3af1af,_0x349ea1,_0x38292a,_0x52c523,_0x32561b,_0x539ef3,_0x3859a6,_0x2d59d9,_0x4e152b,_0x5d43e4,_0x1d550e){const _0x261558=_0x5537c6,_0x3328d9=this;_0x3328d9[_0x261558(0xe76)]=_0x2d59d9[_0x261558(0x21e8)](),_0x3328d9['errors']=[],_0x3328d9[_0x261558(0x9ca)]=_0x5d43e4,_0x3328d9[_0x261558(0x8a5)]=_0x4e152b,_0x3328d9['crudPermissions']=_0x1d550e,_0x3328d9[_0x261558(0xf4c)]={},_0x3328d9[_0x261558(0x1b0c)]=_0x3328d9[_0x261558(0x9ca)]&&_0x3328d9[_0x261558(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3328d9[_0x261558(0x1386)]=_0x261558(0x1e36),_0x3328d9[_0x261558(0x1cef)]={'animation':0x320,'sort':!![],'onSort':function(){const _0x565142=_0x261558;_0xab4cd3[_0x565142(0x186b)][_0x565142(0x70f)]=![];}},_0x3328d9[_0x261558(0x1d5a)]=_0x539ef3,_0x3328d9['customFields']=_0x32561b,_0x3328d9[_0x261558(0x288c)]=![];!_0x3328d9[_0x261558(0x1d5a)]&&(_0x3328d9[_0x261558(0x1d5a)]={'type':_0x261558(0x19d3),'actionType':_0x261558(0x1fd4)},_0x3328d9[_0x261558(0x1386)]='CONTACTMANAGER.NEW_CUSTOMFIELD',_0x3328d9[_0x261558(0x288c)]=!![]);_0x3a3560['params']['id']&&(_0x3328d9['customField'][_0x261558(0x20a6)]=_0x3a3560[_0x261558(0x1dfe)]['id']);_0xab4cd3[_0x261558(0x614)](_0x261558(0x1823),function(_0x4d45da,_0x18f11f){const _0xd01965=_0x261558;if(_0x4d45da!==_0x18f11f)switch(_0x4d45da){case _0xd01965(0x19d3):_0x3328d9['customField'][_0xd01965(0x27aa)]='';break;case _0xd01965(0x220f):_0x3328d9[_0xd01965(0x1d5a)][_0xd01965(0x27aa)]=[];break;default:}}),_0x3328d9[_0x261558(0x350)]=_0x25b228,_0x3328d9[_0x261558(0x125f)]=_0x22387c,_0x3328d9[_0x261558(0x20cd)]=_0x58a030,_0x3328d9['getDateFromString']=_0x462205,_0x3328d9[_0x261558(0x25ad)]=_0x52caeb,_0x3328d9[_0x261558(0xc3e)]=_0x326700,_0x3328d9['removeItems']=_0x143744,_0x3328d9[_0x261558(0xda0)]=_0x4f86a2;function _0x52caeb(_0x4dfbda){const _0x174238=_0x261558;_0x4dfbda[_0x174238(0x2785)]({'value':_0x174238(0x24ed)}),_0xab4cd3[_0x174238(0x186b)][_0x174238(0x70f)]=![];}function _0x326700(_0x3c3054,_0x2a3a70){const _0x8b42c7=_0x261558;_0x3c3054[_0x8b42c7(0x159c)](_0x2a3a70,0x1),_0xab4cd3[_0x8b42c7(0x186b)][_0x8b42c7(0x70f)]=![];}function _0x143744(_0x41f4c0){const _0x976c5c=_0x261558,_0x1da8f0=_0x41f4c0[_0x976c5c(0xfd0)];for(let _0x597aef=0x0;_0x597aef<_0x1da8f0;_0x597aef++){_0x41f4c0[_0x976c5c(0x159c)](0x0,0x1);}_0xab4cd3[_0x976c5c(0x186b)][_0x976c5c(0x70f)]=![];}function _0x25b228(){const _0x3ece52=_0x261558;_0x3328d9[_0x3ece52(0x1a7c)]=[],_0x3859a6['cmList'][_0x3ece52(0x1d79)]({'id':_0x3a3560['params']['id']},_0x3328d9[_0x3ece52(0x1d5a)])['$promise'][_0x3ece52(0x1cb0)](function(_0x4f179c){const _0x51e4ae=_0x3ece52;_0x3328d9[_0x51e4ae(0x2242)][_0x51e4ae(0xf63)](_0x4f179c[_0x51e4ae(0x19b2)]()),_0x52c523[_0x51e4ae(0x829)]({'title':_0x51e4ae(0xd2b),'msg':_0x3328d9[_0x51e4ae(0x1d5a)][_0x51e4ae(0x16b6)]?_0x3328d9[_0x51e4ae(0x1d5a)][_0x51e4ae(0x16b6)]+_0x51e4ae(0x470):''}),_0x4f86a2(_0x4f179c);})[_0x3ece52(0x1c4)](function(_0x362d52){const _0x371dc4=_0x3ece52;if(_0x362d52[_0x371dc4(0x25c)]&&_0x362d52[_0x371dc4(0x25c)][_0x371dc4(0x1a7c)]&&_0x362d52[_0x371dc4(0x25c)][_0x371dc4(0x1a7c)][_0x371dc4(0xfd0)]){_0x3328d9[_0x371dc4(0x1a7c)]=_0x362d52[_0x371dc4(0x25c)][_0x371dc4(0x1a7c)]||[{'message':_0x362d52['toString'](),'type':_0x371dc4(0x94e)}];for(let _0x4ce22b=0x0;_0x4ce22b<_0x362d52[_0x371dc4(0x25c)]['errors'][_0x371dc4(0xfd0)];_0x4ce22b+=0x1){_0x52c523[_0x371dc4(0x218e)]({'title':_0x362d52['data'][_0x371dc4(0x1a7c)][_0x4ce22b][_0x371dc4(0x66a)],'msg':_0x362d52[_0x371dc4(0x25c)]['errors'][_0x4ce22b][_0x371dc4(0x155e)]});}}else _0x52c523[_0x371dc4(0x218e)]({'title':_0x362d52[_0x371dc4(0x291)]?'API:'+_0x362d52[_0x371dc4(0x291)]+'\x20-\x20'+_0x362d52['statusText']:_0x371dc4(0x94e),'msg':_0x362d52[_0x371dc4(0x25c)]?JSON[_0x371dc4(0x2701)](_0x362d52['data']['message']):_0x362d52['toString']()});});}function _0x22387c(){const _0x31911d=_0x261558;_0x3328d9[_0x31911d(0x1a7c)]=[],_0x3859a6['cmCustomField']['update']({'id':_0x3328d9[_0x31911d(0x1d5a)]['id']},_0x3328d9[_0x31911d(0x1d5a)])[_0x31911d(0x1d77)]['then'](function(_0x194569){const _0x41b34a=_0x31911d,_0x18cbe9=_0x39641b()[_0x41b34a(0x13b4)](_0x3328d9[_0x41b34a(0x2242)],{'id':_0x194569['id']});_0x18cbe9&&_0x39641b()['merge'](_0x18cbe9,_0x39641b()[_0x41b34a(0x169b)](_0x194569[_0x41b34a(0x19b2)](),_0x39641b()['keys'](_0x18cbe9))),_0x52c523[_0x41b34a(0x829)]({'title':'CustomField\x20properly\x20saved!','msg':_0x3328d9[_0x41b34a(0x1d5a)][_0x41b34a(0x16b6)]?_0x3328d9[_0x41b34a(0x1d5a)][_0x41b34a(0x16b6)]+_0x41b34a(0xedb):''}),_0x4f86a2(_0x194569);})[_0x31911d(0x1c4)](function(_0x151736){const _0x250552=_0x31911d;if(_0x151736[_0x250552(0x25c)]&&_0x151736[_0x250552(0x25c)][_0x250552(0x1a7c)]&&_0x151736['data']['errors'][_0x250552(0xfd0)]){_0x3328d9['errors']=_0x151736[_0x250552(0x25c)]['errors']||[{'message':_0x151736[_0x250552(0x147f)](),'type':_0x250552(0x19e)}];for(let _0x41b05a=0x0;_0x41b05a<_0x151736[_0x250552(0x25c)]['errors']['length'];_0x41b05a++){_0x52c523['error']({'title':_0x151736['data'][_0x250552(0x1a7c)][_0x41b05a][_0x250552(0x66a)],'msg':_0x151736[_0x250552(0x25c)][_0x250552(0x1a7c)][_0x41b05a]['message']});}}else _0x52c523[_0x250552(0x218e)]({'title':_0x151736[_0x250552(0x291)]?'API:'+_0x151736[_0x250552(0x291)]+_0x250552(0x1657)+_0x151736['statusText']:_0x250552(0x19e),'msg':_0x151736['data']?JSON[_0x250552(0x2701)](_0x151736[_0x250552(0x25c)][_0x250552(0x155e)]):_0x151736['toString']()});});}function _0x58a030(_0x4eca29){const _0x4a0212=_0x261558;_0x3328d9[_0x4a0212(0x1a7c)]=[];const _0x5dd956=_0x3af1af[_0x4a0212(0x1551)]()[_0x4a0212(0x1386)](_0x4a0212(0x1a2e))[_0x4a0212(0x862)](_0x4a0212(0x118e))[_0x4a0212(0x15ad)](_0x4a0212(0x1123))['ok']('Delete')[_0x4a0212(0x696)](_0x4a0212(0xde1))['targetEvent'](_0x4eca29);_0x3af1af[_0x4a0212(0xe27)](_0x5dd956)[_0x4a0212(0x1cb0)](function(){const _0x481143=_0x4a0212;_0x3859a6['cmCustomField'][_0x481143(0x111d)]({'id':_0x3328d9[_0x481143(0x1d5a)]['id']})[_0x481143(0x1d77)][_0x481143(0x1cb0)](function(){const _0x1e1678=_0x481143;_0x39641b()[_0x1e1678(0x152a)](_0x3328d9[_0x1e1678(0x2242)],{'id':_0x3328d9['customField']['id']}),_0x52c523[_0x1e1678(0x829)]({'title':_0x1e1678(0x180),'msg':(_0x3328d9[_0x1e1678(0x1d5a)][_0x1e1678(0x16b6)]||'customField')+_0x1e1678(0x3f5)}),_0x4f86a2(_0x3328d9['customField']);})[_0x481143(0x1c4)](function(_0x5a8041){const _0x2117cb=_0x481143;if(_0x5a8041[_0x2117cb(0x25c)]&&_0x5a8041[_0x2117cb(0x25c)]['errors']&&_0x5a8041[_0x2117cb(0x25c)][_0x2117cb(0x1a7c)][_0x2117cb(0xfd0)]){_0x3328d9[_0x2117cb(0x1a7c)]=_0x5a8041['data']['errors']||[{'message':_0x5a8041[_0x2117cb(0x147f)](),'type':_0x2117cb(0x1d3)}];for(let _0x279e2a=0x0;_0x279e2a<_0x5a8041[_0x2117cb(0x25c)]['errors'][_0x2117cb(0xfd0)];_0x279e2a++){_0x52c523[_0x2117cb(0x218e)]({'title':_0x5a8041[_0x2117cb(0x25c)]['errors'][_0x279e2a][_0x2117cb(0x66a)],'msg':_0x5a8041['data']['errors'][_0x279e2a][_0x2117cb(0x155e)]});}}else _0x52c523[_0x2117cb(0x218e)]({'title':_0x5a8041[_0x2117cb(0x291)]?'API:'+_0x5a8041[_0x2117cb(0x291)]+_0x2117cb(0x1657)+_0x5a8041['statusText']:_0x2117cb(0x1d3),'msg':_0x5a8041[_0x2117cb(0x25c)]?JSON['stringify'](_0x5a8041[_0x2117cb(0x25c)][_0x2117cb(0x155e)]):_0x5a8041[_0x2117cb(0x155e)]||_0x5a8041['toString']()});});},function(){});}function _0x462205(_0xd7da52){return _0xd7da52===null?undefined:new Date(_0xd7da52);}function _0x4f86a2(_0x399f47){const _0x18e2dc=_0x261558;_0x3af1af[_0x18e2dc(0x1426)](_0x399f47);}}const _0x3e2868=_0x223b58;;const _0xab84fd=_0x5074a3['p']+_0x5537c6(0x5e2);;_0x27cec4[_0x5537c6(0x15b6)]=['$state','$location','$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x1ae),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x240),_0x5537c6(0x2199)];function _0x27cec4(_0x5df48b,_0xc955ba,_0x3ca706,_0x2c2f9d,_0x73df7b,_0x425227,_0x366974,_0x13d279,_0x3000fb,_0x1cc474,_0xfc2cef,_0x1401bb){const _0x4eeabe=_0x5537c6,_0x12600e=this;_0x12600e[_0x4eeabe(0xe76)]=_0x1cc474[_0x4eeabe(0x21e8)](),_0x12600e[_0x4eeabe(0x8a5)]=_0x425227,_0x12600e[_0x4eeabe(0x9ca)]=_0x366974,_0x12600e[_0x4eeabe(0x1b0c)]=_0x12600e[_0x4eeabe(0x9ca)][_0x4eeabe(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x12600e[_0x4eeabe(0x2404)]=_0xc955ba[_0x4eeabe(0x2276)]()+_0x4eeabe(0x138b)+_0xc955ba[_0x4eeabe(0x17d8)](),_0x12600e[_0x4eeabe(0x240)]=_0xfc2cef||_0x5df48b[_0x4eeabe(0x1dfe)][_0x4eeabe(0x240)]||{},_0x12600e['userProfileSection']=_0x1401bb&&_0x1401bb[_0x4eeabe(0x184d)]==0x1?_0x1401bb[_0x4eeabe(0x2214)][0x0]:null,_0x12600e[_0x4eeabe(0x1b1a)]=_0x1cc474[_0x4eeabe(0x14ea)](_0x12600e[_0x4eeabe(0x2199)]?_0x12600e[_0x4eeabe(0x2199)][_0x4eeabe(0x1b1a)]:null),_0x12600e['hasModulePermissions']={},_0x12600e[_0x4eeabe(0x8ec)]=_0x5df48b['params'][_0x4eeabe(0x291e)]||0x0,_0x12600e[_0x4eeabe(0x47d)]=_0x594231,_0x12600e[_0x4eeabe(0x1379)]=_0x31762a,_0x12600e[_0x4eeabe(0x494)]=_0x3000fb[_0x4eeabe(0x28c7)],_0x12600e['gotoLists']=_0x1e11e7,_0x12600e[_0x4eeabe(0x2391)]=_0x11655b;function _0x594231(_0x1fced8){const _0x1b210c=_0x4eeabe;if(_0x1cc474[_0x1b210c(0x22b6)](_0x1b210c(0x1c60)))_0x5df48b['go']('app.contactmanager.contacts',{'ListId':_0x1fced8['id']});else return _0x13d279[_0x1b210c(0x2199)][_0x1b210c(0xbf7)]({'userProfileId':_0x1cc474[_0x1b210c(0x21e8)]()[_0x1b210c(0x13c1)],'sectionId':0x12f})[_0x1b210c(0x1d77)][_0x1b210c(0x1cb0)](function(_0x1e31f6){const _0x38298e=_0x1b210c,_0x383b7f=_0x1e31f6&&_0x1e31f6[_0x38298e(0x2214)]?_0x1e31f6[_0x38298e(0x2214)][0x0]:null;_0x383b7f&&_0x383b7f[_0x38298e(0x281c)]?_0x5df48b['go'](_0x38298e(0x27ff),{'ListId':_0x1fced8['id']}):_0x3000fb[_0x38298e(0x28c7)]({'title':_0x73df7b[_0x38298e(0x25cc)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x73df7b[_0x38298e(0x25cc)](_0x38298e(0x33a))});})[_0x1b210c(0x1c4)](function(_0x2b2ad3){const _0x39465f=_0x1b210c;_0x3000fb[_0x39465f(0x218e)]({'title':_0x2b2ad3['status']?_0x39465f(0xeb9)+_0x2b2ad3['status']+_0x39465f(0x1657)+_0x2b2ad3['statusText']:_0x39465f(0x17ba),'msg':_0x2b2ad3[_0x39465f(0x291)]?JSON[_0x39465f(0x2701)](_0x2b2ad3['data']):_0x2b2ad3['toString']()});});}function _0x31762a(_0x248f13,_0x255071){const _0xcacd59=_0x4eeabe;_0x3ca706[_0xcacd59(0xe27)]({'controller':_0xcacd59(0xfce),'controllerAs':'vm','templateUrl':_0xab84fd,'parent':angular[_0xcacd59(0x1853)](_0x2c2f9d[_0xcacd59(0x1ed9)]),'targetEvent':_0x255071,'clickOutsideToClose':!![],'locals':{'list':_0x248f13,'lists':_0x12600e['lists']?_0x12600e[_0xcacd59(0x1046)][_0xcacd59(0x2214)]:[],'crudPermissions':_0x12600e[_0xcacd59(0x1b1a)],'realtime':![]}});}function _0x1e11e7(){const _0x289810=_0x4eeabe;_0x5df48b['go']('app.contactmanager.lists',{},{'reload':_0x289810(0x10ea)});}function _0x11655b(){const _0x3623dc=_0x4eeabe;_0x13d279[_0x3623dc(0x22f2)][_0x3623dc(0x687)]({'id':_0x12600e[_0x3623dc(0x240)]['id']},_0x12600e[_0x3623dc(0x240)])[_0x3623dc(0x1d77)][_0x3623dc(0x1cb0)](function(){const _0x37dd94=_0x3623dc;_0x3000fb[_0x37dd94(0x829)]({'title':'List\x20updated!','msg':_0x12600e[_0x37dd94(0x240)][_0x37dd94(0x16b6)]?_0x12600e['list'][_0x37dd94(0x16b6)]+_0x37dd94(0x1068):''});})['catch'](function(_0x1e6964){const _0x134442=_0x3623dc;_0x3000fb[_0x134442(0x218e)]({'title':_0x1e6964[_0x134442(0x291)]?_0x134442(0xeb9)+_0x1e6964['status']+_0x134442(0x1657)+_0x1e6964[_0x134442(0xc22)]:_0x134442(0xf15),'msg':_0x1e6964['data']?JSON[_0x134442(0x2701)](_0x1e6964[_0x134442(0x25c)]):_0x1e6964[_0x134442(0x147f)]()});});}}const _0x526e34=_0x27cec4;;const _0x3d7049=_0x5074a3['p']+_0x5537c6(0xac5);;_0x961130[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),'$state','$mdSidenav',_0x5537c6(0xcb9),'$document',_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x142b),_0x5537c6(0x9bf),'Auth'];function _0x961130(_0x1bfc6a,_0x1de0d6,_0x236d23,_0x3cf2be,_0x2f3af2,_0xf86a57,_0x10df51,_0x2ac177,_0xd04db0,_0x125915,_0x1bfccf){const _0x4fdaa6=_0x5537c6,_0x1c4d02=this;_0x1c4d02[_0x4fdaa6(0xe76)]=_0x1bfccf[_0x4fdaa6(0x21e8)](),_0x1c4d02[_0x4fdaa6(0xdf2)]={'count':0x0,'rows':[]},_0x1c4d02[_0x4fdaa6(0x122a)]=[],_0x1c4d02[_0x4fdaa6(0x1b1a)],_0x1c4d02[_0x4fdaa6(0x2376)]={'first':_0x4fdaa6(0x29a0),'second':_0x4fdaa6(0x26db),'third':_0x4fdaa6(0xfbe)},_0x1c4d02[_0x4fdaa6(0xae2)]={'fields':_0x4fdaa6(0x1f4b),'sort':_0x4fdaa6(0x282),'limit':0xa,'page':0x1},_0x1c4d02['init']=_0x46ec93,_0x1c4d02[_0x4fdaa6(0xb25)]=_0x217d0e,_0x1c4d02[_0x4fdaa6(0x829)]=_0xa4afad,_0x1c4d02[_0x4fdaa6(0x640)]=_0x13c544,_0x1c4d02[_0x4fdaa6(0x932)]=_0x2c8a60,_0x1c4d02['deleteDisposition']=_0x5a2c89,_0x1c4d02[_0x4fdaa6(0x1ebf)]=_0x5cd76b,_0x1c4d02['deleteSelectedDispositions']=_0xd97c24,_0x1c4d02[_0x4fdaa6(0x25ec)]=_0x56baaa,_0x1c4d02[_0x4fdaa6(0x13ff)]=_0x389747;function _0x46ec93(_0x3ee483,_0x370b2c){const _0x3c995f=_0x4fdaa6;_0x1c4d02['list']=_0x3ee483||{},_0x1c4d02['crudPermissions']=typeof _0x370b2c!==_0x3c995f(0x16b5)?_0x370b2c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1c4d02[_0x3c995f(0xae2)]['ListId']=_0x1c4d02[_0x3c995f(0x240)]['id'],_0x1c4d02[_0x3c995f(0xae2)]['id']=_0x1c4d02[_0x3c995f(0x240)]['id'],_0x13c544();}function _0x2c8a60(_0x7e36b1,_0x13b707){const _0x23ce51=_0x4fdaa6;_0x2f3af2[_0x23ce51(0xe27)]({'controller':_0x23ce51(0x201d),'controllerAs':'vm','templateUrl':_0x3d7049,'parent':angular[_0x23ce51(0x1853)](_0xf86a57[_0x23ce51(0x1ed9)]),'targetEvent':_0x7e36b1,'clickOutsideToClose':!![],'locals':{'disposition':_0x13b707,'model':{'id':_0x1c4d02[_0x23ce51(0x240)]['id'],'field':_0x23ce51(0x20a6),'route':_0x23ce51(0x22f2)},'license':null,'setting':null,'crudPermissions':_0x1c4d02['crudPermissions']}})[_0x23ce51(0x1cb0)](function(_0x1cde9a){if(_0x1cde9a)_0x13c544();});}function _0x217d0e(_0x129b84,_0x57e776){const _0x5eb038=_0x4fdaa6,_0x3dfe89=_0x39641b()[_0x5eb038(0x727)](_0x1c4d02['dispositions'][_0x5eb038(0x2214)],[_0x5eb038(0x55e),_0x129b84['id']]),_0x108d32=_0x2f3af2[_0x5eb038(0x1551)]()[_0x5eb038(0x1386)](_0x2ac177[_0x5eb038(0x25cc)](_0x5eb038(0x1d64)))[_0x5eb038(0x862)](_0x2ac177['instant'](_0x5eb038(0x250b)+(_0x3dfe89?_0x5eb038(0x13cb):_0x5eb038(0x1089)),{'name':_0x129b84[_0x5eb038(0x16b6)]}))[_0x5eb038(0x15ad)](_0x5eb038(0x35d))[_0x5eb038(0x728)](_0x57e776)['ok']('OK')['cancel'](_0x2ac177[_0x5eb038(0x25cc)](_0x5eb038(0x2768)));_0x2f3af2[_0x5eb038(0xe27)](_0x108d32)[_0x5eb038(0x1cb0)](function(){_0x5a2c89(_0x129b84);});}function _0xa4afad(_0xbb74bf){const _0x5354ab=_0x4fdaa6;_0x1c4d02[_0x5354ab(0xdf2)]=_0xbb74bf||{'count':0x0,'rows':[]};}function _0x13c544(){const _0xd07bb9=_0x4fdaa6;_0x1c4d02['query']['offset']=(_0x1c4d02[_0xd07bb9(0xae2)][_0xd07bb9(0x1c7b)]-0x1)*_0x1c4d02['query'][_0xd07bb9(0x236)],_0x1c4d02[_0xd07bb9(0x2061)]=_0xd04db0[_0xd07bb9(0x22f2)][_0xd07bb9(0x640)](_0x1c4d02[_0xd07bb9(0xae2)],_0xa4afad)[_0xd07bb9(0x1d77)];}function _0x5a2c89(_0x4211a0){const _0x123d2b=_0x4fdaa6;_0xd04db0['disposition'][_0x123d2b(0x111d)]({'id':_0x4211a0['id']})[_0x123d2b(0x1d77)]['then'](function(){const _0x4a258f=_0x123d2b;_0x13c544(),_0x125915[_0x4a258f(0x829)]({'title':_0x2ac177[_0x4a258f(0x25cc)]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')});})[_0x123d2b(0x1c4)](function(_0x384a3a){const _0x396445=_0x123d2b;if(_0x384a3a[_0x396445(0x25c)]&&_0x384a3a[_0x396445(0x25c)][_0x396445(0x1a7c)]&&_0x384a3a[_0x396445(0x25c)]['errors'][_0x396445(0xfd0)]){_0x1c4d02['errors']=_0x384a3a[_0x396445(0x25c)]['errors']||[{'message':_0x384a3a['toString'](),'type':_0x396445(0x2618)}];for(let _0x108f18=0x0;_0x108f18<_0x384a3a[_0x396445(0x25c)]['errors'][_0x396445(0xfd0)];_0x108f18++){_0x125915[_0x396445(0x218e)]({'title':_0x384a3a['data'][_0x396445(0x1a7c)][_0x108f18][_0x396445(0x66a)],'msg':_0x384a3a['data'][_0x396445(0x1a7c)][_0x108f18][_0x396445(0x155e)]});}}else _0x125915['error']({'title':_0x384a3a[_0x396445(0x291)]?_0x396445(0xeb9)+_0x384a3a[_0x396445(0x291)]+'\x20-\x20'+_0x384a3a['statusText']:_0x396445(0x2618),'msg':_0x384a3a[_0x396445(0x25c)]?JSON[_0x396445(0x2701)](_0x384a3a[_0x396445(0x25c)][_0x396445(0x155e)]):_0x384a3a['message']||_0x384a3a[_0x396445(0x147f)]()});});}function _0x5cd76b(){const _0x4efaee=_0x4fdaa6,_0x2b92fa=angular[_0x4efaee(0x17fe)](_0x1c4d02[_0x4efaee(0x122a)]);return _0x1c4d02['selectedDispositions']=[],_0x2b92fa;}function _0xd97c24(_0x2a7f79){const _0xe9ead3=_0x4fdaa6,_0x5a1213=_0x2f3af2['confirm']()['title'](_0x2ac177[_0xe9ead3(0x25cc)](_0xe9ead3(0x969)))['content'](_0x2ac177['instant'](_0xe9ead3(0xb3c),{'total':_0x1c4d02['selectedDispositions']['length']}))[_0xe9ead3(0x15ad)](_0xe9ead3(0x1e1c))[_0xe9ead3(0x728)](_0x2a7f79)['ok']('OK')['cancel'](_0x2ac177[_0xe9ead3(0x25cc)](_0xe9ead3(0x2768)));_0x2f3af2[_0xe9ead3(0xe27)](_0x5a1213)['then'](function(){const _0x138f11=_0xe9ead3;_0x1c4d02['selectedDispositions'][_0x138f11(0xf90)](function(_0x108267){_0x5a2c89(_0x108267);}),_0x1c4d02[_0x138f11(0x122a)]=[];});}function _0x56baaa(){const _0x282366=_0x4fdaa6;_0x1c4d02[_0x282366(0x122a)]=[];}function _0x389747(){const _0x28c9df=_0x4fdaa6;_0x1c4d02[_0x28c9df(0x122a)]=_0x1c4d02['dispositions'][_0x28c9df(0x2214)];}let _0x5c6878=!![],_0xff6362=0x1;_0x1bfc6a['$watch'](_0x4fdaa6(0xeb6),function(_0x4cabe0,_0x106575){const _0x2bb137=_0x4fdaa6;_0x5c6878?_0x10df51(function(){_0x5c6878=![];}):(!_0x106575&&(_0xff6362=_0x1c4d02['query']['page']),_0x4cabe0!==_0x106575&&(_0x1c4d02['query'][_0x2bb137(0x1c7b)]=0x1),!_0x4cabe0&&(_0x1c4d02['query']['page']=_0xff6362),_0x13c544());});}const _0x3e4463=_0x961130;;const _0xaaa48e=_0x5074a3['p']+_0x5537c6(0x956);;_0x5d90f1['$inject']=[_0x5537c6(0x1463),'$window',_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),'$document','$timeout',_0x5537c6(0x1ae),_0x5537c6(0x1046),_0x5537c6(0x44a),'userProfileSection',_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x5d90f1(_0x478663,_0x2593f0,_0x23b4d5,_0x3294dc,_0x4d62b8,_0x486a08,_0x4c2b95,_0x3e34cb,_0xac7639,_0x23b021,_0x191c41,_0x3a38c7,_0x2d65f7,_0x32d4b8,_0x42af10,_0x121f9c,_0x373649){const _0x46bb3c=_0x5537c6,_0x109ccd=this;_0x109ccd[_0x46bb3c(0x8a5)]=_0x121f9c,_0x109ccd[_0x46bb3c(0x9ca)]=_0x373649,_0x109ccd[_0x46bb3c(0xe76)]=_0x42af10[_0x46bb3c(0x21e8)](),_0x109ccd['lists']=_0xac7639||{'count':0x0,'rows':[]},_0x109ccd['userProfile']=_0x23b021,_0x109ccd['userProfileSection']=_0x191c41&&_0x191c41[_0x46bb3c(0x184d)]==0x1?_0x191c41[_0x46bb3c(0x2214)][0x0]:null,_0x109ccd[_0x46bb3c(0x1b1a)]=_0x42af10[_0x46bb3c(0x14ea)](_0x109ccd[_0x46bb3c(0x2199)]?_0x109ccd[_0x46bb3c(0x2199)]['crudPermissions']:null),_0x109ccd[_0x46bb3c(0xc83)]='lists',_0x109ccd[_0x46bb3c(0x1d20)]='',_0x109ccd[_0x46bb3c(0x1cdf)]=null,_0x109ccd[_0x46bb3c(0x835)]=[],_0x109ccd[_0x46bb3c(0xae2)]={'fields':'createdAt,updatedAt,id,name,description,dialPrefix','sort':_0x46bb3c(0x282),'limit':0xa,'page':0x1},_0x109ccd[_0x46bb3c(0x235d)]=_0x3d6d3c,_0x109ccd[_0x46bb3c(0x24a)]=_0x5b302a,_0x109ccd[_0x46bb3c(0x1b50)]=_0x28d00f,_0x109ccd[_0x46bb3c(0x1379)]=_0x2d90ed,_0x109ccd[_0x46bb3c(0x27fe)]=_0x4d518d,_0x109ccd[_0x46bb3c(0x829)]=_0x5e1bc8,_0x109ccd[_0x46bb3c(0x1fa7)]=_0x31d46e,_0x109ccd['createOrEditList']=_0x3d72b3,_0x109ccd[_0x46bb3c(0x1547)]=_0x2750c5,_0x109ccd[_0x46bb3c(0x7d6)]=_0x31842c,_0x109ccd[_0x46bb3c(0x67e)]=_0x115257,_0x109ccd['deselectLists']=_0x166a2e,_0x109ccd[_0x46bb3c(0x2671)]=_0x31599a;function _0x3d6d3c(_0x521ef1){_0x23b4d5['go']('app.contactmanager.lists.edit',{'id':_0x521ef1['id'],'list':_0x521ef1,'crudPermissions':_0x109ccd['crudPermissions']});}function _0x5b302a(_0x57bc21){const _0x59f45f=_0x46bb3c;if(_0x42af10[_0x59f45f(0x22b6)](_0x59f45f(0x1c60)))_0x23b4d5['go']('app.contactmanager.contacts',{'ListId':_0x57bc21['id']});else return _0x3a38c7['userProfileSection'][_0x59f45f(0xbf7)]({'userProfileId':_0x42af10[_0x59f45f(0x21e8)]()[_0x59f45f(0x13c1)],'sectionId':0x12f})[_0x59f45f(0x1d77)][_0x59f45f(0x1cb0)](function(_0x130b6d){const _0x43c5c7=_0x59f45f,_0xd27c48=_0x130b6d&&_0x130b6d[_0x43c5c7(0x2214)]?_0x130b6d[_0x43c5c7(0x2214)][0x0]:null;_0xd27c48&&_0xd27c48[_0x43c5c7(0x281c)]?_0x23b4d5['go'](_0x43c5c7(0x27ff),{'ListId':_0x57bc21['id']}):_0x32d4b8[_0x43c5c7(0x28c7)]({'title':_0x3e34cb[_0x43c5c7(0x25cc)](_0x43c5c7(0x370)),'msg':_0x3e34cb[_0x43c5c7(0x25cc)](_0x43c5c7(0x33a))});})[_0x59f45f(0x1c4)](function(_0xd345b0){const _0x11000e=_0x59f45f;_0x32d4b8['error']({'title':_0xd345b0[_0x11000e(0x291)]?_0x11000e(0xeb9)+_0xd345b0['status']+'\x20-\x20'+_0xd345b0['statusText']:_0x11000e(0x17ba),'msg':_0xd345b0[_0x11000e(0x291)]?JSON[_0x11000e(0x2701)](_0xd345b0[_0x11000e(0x25c)]):_0xd345b0[_0x11000e(0x147f)]()});});}function _0x28d00f(_0x250087){const _0x15bb3a=_0x46bb3c;return _0x3a38c7[_0x15bb3a(0x22f2)]['getContactsCsv']({'id':_0x250087['id'],'nolimit':!![]})[_0x15bb3a(0x1d77)][_0x15bb3a(0x1cb0)](function(_0x3774fe){const _0x52dcdf=_0x15bb3a;if(typeof _0x3774fe[_0x52dcdf(0xfd0)]!==_0x52dcdf(0x16b5)){const _0x52d2ca=[_0x3774fe['buffer']],_0x2494c8=new Blob(_0x52d2ca,{'type':_0x3774fe[_0x52dcdf(0x66a)]}),_0x36c5b1=window[_0x52dcdf(0x1db8)]['createElement']('a');_0x36c5b1['setAttribute'](_0x52dcdf(0x105b),URL[_0x52dcdf(0x2247)](_0x2494c8)),_0x36c5b1['setAttribute'](_0x52dcdf(0x26ec),_0x52dcdf(0x1fdb)+_0x250087['id']+_0x52dcdf(0x285c)),_0x36c5b1[_0x52dcdf(0x20b8)]();}else _0x32d4b8[_0x52dcdf(0x28c7)]({'title':_0x52dcdf(0x19f0),'msg':_0x52dcdf(0x1cac)});})[_0x15bb3a(0x1c4)](function(_0x1c9ebe){const _0x4ebbb3=_0x15bb3a;_0x32d4b8[_0x4ebbb3(0x218e)]({'title':_0x1c9ebe[_0x4ebbb3(0x291)]?_0x4ebbb3(0xeb9)+_0x1c9ebe['status']+_0x4ebbb3(0x1657)+_0x1c9ebe[_0x4ebbb3(0xc22)]:_0x4ebbb3(0xf15),'msg':_0x1c9ebe['data']?JSON[_0x4ebbb3(0x2701)](_0x1c9ebe[_0x4ebbb3(0x25c)]):_0x1c9ebe['toString']()});});}function _0x2d90ed(_0x49f6a9,_0x2e1ea3){const _0x29977d=_0x46bb3c;_0x4d62b8[_0x29977d(0xe27)]({'controller':_0x29977d(0xfce),'controllerAs':'vm','templateUrl':_0xab84fd,'parent':angular[_0x29977d(0x1853)](_0x486a08['body']),'targetEvent':_0x2e1ea3,'clickOutsideToClose':!![],'locals':{'list':_0x49f6a9,'lists':_0x109ccd[_0x29977d(0x1046)]?_0x109ccd['lists']['rows']:[],'crudPermissions':_0x109ccd[_0x29977d(0x1b1a)],'realtime':![]}});}function _0x4d518d(_0x56e46b,_0x1468e5){const _0x2cc4c5=_0x46bb3c,_0x522295=_0x4d62b8['confirm']()[_0x2cc4c5(0x1386)](_0x2cc4c5(0x140b)+_0x39641b()[_0x2cc4c5(0xa75)](_0x2cc4c5(0x240))+'?')[_0x2cc4c5(0x49e)](_0x2cc4c5(0x204d)+(_0x56e46b[_0x2cc4c5(0x16b6)]||_0x2cc4c5(0x240))+_0x2cc4c5(0x1200)+_0x2cc4c5(0x1b6))[_0x2cc4c5(0x15ad)](_0x2cc4c5(0xe92))[_0x2cc4c5(0x728)](_0x1468e5)['ok']('OK')[_0x2cc4c5(0x696)](_0x2cc4c5(0x24ba));_0x4d62b8['show'](_0x522295)[_0x2cc4c5(0x1cb0)](function(){_0x2750c5(_0x56e46b);},function(){const _0x530dcf=_0x2cc4c5;console['log'](_0x530dcf(0x24ba));});}let _0x1eef4f=!![],_0x25bd7f=0x1;_0x478663[_0x46bb3c(0x614)](_0x46bb3c(0x957),function(_0x27a8be,_0x4bab05){const _0x5334c7=_0x46bb3c;_0x1eef4f?_0x4c2b95(function(){_0x1eef4f=![];}):(!_0x4bab05&&(_0x25bd7f=_0x109ccd[_0x5334c7(0xae2)]['page']),_0x27a8be!==_0x4bab05&&(_0x109ccd[_0x5334c7(0xae2)][_0x5334c7(0x1c7b)]=0x1),!_0x27a8be&&(_0x109ccd[_0x5334c7(0xae2)][_0x5334c7(0x1c7b)]=_0x25bd7f),_0x109ccd[_0x5334c7(0x1fa7)]());});function _0x5e1bc8(_0x449c9e){const _0x2f1f90=_0x46bb3c;_0x109ccd[_0x2f1f90(0x1046)]=_0x449c9e||{'count':0x0,'rows':[]};}function _0x31d46e(){const _0xd2ad1a=_0x46bb3c;_0x109ccd[_0xd2ad1a(0xae2)][_0xd2ad1a(0x184b)]=(_0x109ccd['query'][_0xd2ad1a(0x1c7b)]-0x1)*_0x109ccd['query'][_0xd2ad1a(0x236)],_0x42af10['hasRole'](_0xd2ad1a(0x1c60))?_0x109ccd[_0xd2ad1a(0x2061)]=_0x3a38c7[_0xd2ad1a(0x22f2)]['get'](_0x109ccd[_0xd2ad1a(0xae2)],_0x5e1bc8)['$promise']:(_0x109ccd['query']['id']=_0x109ccd['userProfile']['id'],_0x109ccd[_0xd2ad1a(0xae2)][_0xd2ad1a(0x1f74)]=_0xd2ad1a(0x191f),_0x109ccd['promise']=_0x3a38c7[_0xd2ad1a(0x44a)]['getResources'](_0x109ccd['query'],_0x5e1bc8)[_0xd2ad1a(0x1d77)]);}function _0x3d72b3(_0x3d2731,_0x5f3249){const _0x2fd44d=_0x46bb3c;_0x4d62b8[_0x2fd44d(0xe27)]({'controller':'CreateOrEditListDialogController','controllerAs':'vm','templateUrl':_0xaaa48e,'parent':angular[_0x2fd44d(0x1853)](_0x486a08['body']),'targetEvent':_0x3d2731,'clickOutsideToClose':!![],'locals':{'list':_0x5f3249,'lists':_0x109ccd[_0x2fd44d(0x1046)][_0x2fd44d(0x2214)],'license':_0x109ccd['license'],'setting':_0x109ccd[_0x2fd44d(0x9ca)],'crudPermissions':_0x109ccd[_0x2fd44d(0x1b1a)]}});}function _0x2750c5(_0x225d8b){const _0x5c3a82=_0x46bb3c;_0x3a38c7['cmList'][_0x5c3a82(0x111d)]({'id':_0x225d8b['id']})[_0x5c3a82(0x1d77)][_0x5c3a82(0x1cb0)](function(){const _0x454b55=_0x5c3a82;_0x39641b()[_0x454b55(0x152a)](_0x109ccd[_0x454b55(0x1046)][_0x454b55(0x2214)],{'id':_0x225d8b['id']}),_0x109ccd[_0x454b55(0x1046)][_0x454b55(0x184d)]-=0x1,!_0x109ccd[_0x454b55(0x1046)][_0x454b55(0x2214)][_0x454b55(0xfd0)]&&_0x109ccd[_0x454b55(0x1fa7)](),_0x32d4b8[_0x454b55(0x829)]({'title':_0x39641b()['startCase'](_0x454b55(0x23b0))+_0x454b55(0x2663),'msg':_0x225d8b[_0x454b55(0x16b6)]?_0x225d8b[_0x454b55(0x16b6)]+_0x454b55(0x3f5):''});})[_0x5c3a82(0x1c4)](function(_0x325088){const _0x524b7c=_0x5c3a82;if(_0x325088[_0x524b7c(0x25c)]&&_0x325088[_0x524b7c(0x25c)][_0x524b7c(0x1a7c)]&&_0x325088[_0x524b7c(0x25c)]['errors']['length']){_0x109ccd['errors']=_0x325088[_0x524b7c(0x25c)]['errors']||[{'message':_0x325088[_0x524b7c(0x147f)](),'type':_0x524b7c(0x1206)}];for(let _0x7275af=0x0;_0x7275af<_0x325088[_0x524b7c(0x25c)]['errors'][_0x524b7c(0xfd0)];_0x7275af++){_0x32d4b8[_0x524b7c(0x218e)]({'title':_0x325088[_0x524b7c(0x25c)][_0x524b7c(0x1a7c)][_0x7275af][_0x524b7c(0x66a)],'msg':_0x325088['data'][_0x524b7c(0x1a7c)][_0x7275af]['message']});}}else _0x32d4b8[_0x524b7c(0x218e)]({'title':_0x325088[_0x524b7c(0x291)]?_0x524b7c(0xeb9)+_0x325088['status']+_0x524b7c(0x1657)+_0x325088['statusText']:_0x524b7c(0x1206),'msg':_0x325088[_0x524b7c(0x25c)]?JSON['stringify'](_0x325088[_0x524b7c(0x25c)][_0x524b7c(0x155e)]):_0x325088[_0x524b7c(0x155e)]||_0x325088[_0x524b7c(0x147f)]()});});}function _0x31842c(){const _0x25cbfc=_0x46bb3c,_0x107b37=angular['copy'](_0x109ccd[_0x25cbfc(0x835)]);return _0x109ccd['selectedLists']=[],_0x107b37;}function _0x115257(_0x5537d1){const _0x513377=_0x46bb3c,_0x2a3ece=_0x4d62b8['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20lists?')[_0x513377(0x49e)](_0x513377(0x204d)+_0x109ccd[_0x513377(0x835)][_0x513377(0xfd0)]+_0x513377(0x1d6c)+_0x513377(0x1b6))[_0x513377(0x15ad)]('delete\x20Lists')['targetEvent'](_0x5537d1)['ok']('OK')['cancel'](_0x513377(0x24ba));_0x4d62b8['show'](_0x2a3ece)['then'](function(){const _0x408d13=_0x513377;_0x109ccd[_0x408d13(0x835)][_0x408d13(0xf90)](function(_0x41e89e){_0x2750c5(_0x41e89e);}),_0x109ccd['selectedLists']=[];});}function _0x166a2e(){const _0x4710c0=_0x46bb3c;_0x109ccd[_0x4710c0(0x835)]=[];}function _0x31599a(){const _0x91a660=_0x46bb3c;_0x109ccd[_0x91a660(0x835)]=_0x109ccd[_0x91a660(0x1046)][_0x91a660(0x2214)];}}const _0x1f5add=_0x5d90f1;;const _0x3bcb18=_0x5074a3['p']+'src/js/modules/main/apps/contactmanager/views/lists/lists.html/lists.html';;const _0x5f234c=_0x5074a3['p']+_0x5537c6(0x1da0);;const _0x5cba9f=_0x5074a3['p']+_0x5537c6(0xc79);;const _0x4b8a19=_0x5074a3['p']+'src/js/modules/main/apps/contactmanager/views/companies/edit/view.html/view.html';;const _0x5ddf2f=_0x5074a3['p']+_0x5537c6(0x166f);;_0x25a443[_0x5537c6(0x15b6)]=['$stateProvider','$translatePartialLoaderProvider'];function _0x25a443(_0x38f5c1,_0x5b0541){const _0x2bbd0d=_0x5537c6;_0x38f5c1['state'](_0x2bbd0d(0x28ce),{'abstract':!![],'url':_0x2bbd0d(0x19ff)})[_0x2bbd0d(0x27e0)]('app.contactmanager.lists',{'url':_0x2bbd0d(0x819),'views':{'content@app':{'templateUrl':_0x3bcb18,'controller':'ListsController\x20as\x20vm'}},'resolve':{'lists':[_0x2bbd0d(0x1e0b),_0x2bbd0d(0x1774),function(_0x53d288,_0x26610b){const _0x24f2ad=_0x2bbd0d;return _0x26610b[_0x24f2ad(0x22b6)](_0x24f2ad(0x1c60))?_0x53d288[_0x24f2ad(0x19a3)](_0x24f2ad(0x1b1f),{'fields':'createdAt,updatedAt,id,name,description,dialPrefix','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x53d288[_0x24f2ad(0x19a3)](_0x24f2ad(0x12da),{'id':_0x26610b[_0x24f2ad(0x21e8)]()[_0x24f2ad(0x13c1)],'section':_0x24f2ad(0x191f),'fields':_0x24f2ad(0x767),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x2bbd0d(0x1e0b),_0x2bbd0d(0x1774),function(_0x252f3e,_0x16a005){const _0x28af8a=_0x2bbd0d;return _0x16a005[_0x28af8a(0x22b6)](_0x28af8a(0x1c60))?null:_0x252f3e[_0x28af8a(0x19a3)](_0x28af8a(0x9ae),{'fields':'id,name,crudPermissions','id':_0x16a005[_0x28af8a(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x2bbd0d(0x1e0b),'Auth',function(_0x5ff14e,_0x25b58a){const _0x4d9c2e=_0x2bbd0d;return _0x25b58a['hasRole'](_0x4d9c2e(0x1c60))?null:_0x5ff14e[_0x4d9c2e(0x19a3)](_0x4d9c2e(0x2182),{'fields':_0x4d9c2e(0x1f5f),'userProfileId':_0x25b58a[_0x4d9c2e(0x21e8)]()[_0x4d9c2e(0x13c1)],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':'contactmanager'})['state']('app.contactmanager.lists.edit',{'url':_0x2bbd0d(0x1bf2),'params':{'list':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5f234c,'controller':_0x2bbd0d(0x11a8)}},'resolve':{'list':[_0x2bbd0d(0x1e0b),_0x2bbd0d(0x225c),function(_0x8848de,_0x5aa2f6){const _0x3b93c1=_0x2bbd0d;return _0x8848de['resolve'](_0x3b93c1(0x1b1f),{'fields':_0x3b93c1(0x767),'id':_0x5aa2f6['id']});}],'userProfileSection':[_0x2bbd0d(0x1e0b),_0x2bbd0d(0x1774),function(_0x43df01,_0x1b5c2a){const _0x16f3c9=_0x2bbd0d;return _0x43df01[_0x16f3c9(0x19a3)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1b5c2a[_0x16f3c9(0x21e8)]()[_0x16f3c9(0x13c1)],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':'contactmanager'})[_0x2bbd0d(0x27e0)](_0x2bbd0d(0x26f8),{'url':_0x2bbd0d(0x21a0),'views':{'content@app':{'templateUrl':_0x5cba9f,'controller':'CompaniesController\x20as\x20vm'}},'resolve':{'companies':[_0x2bbd0d(0x1e0b),_0x2bbd0d(0x1774),function(_0x5900eb,_0x4b9a58){const _0x1b8ea2=_0x2bbd0d;return _0x4b9a58[_0x1b8ea2(0x22b6)](_0x1b8ea2(0x1c60))?_0x5900eb[_0x1b8ea2(0x19a3)](_0x1b8ea2(0x60d),{'fields':_0x1b8ea2(0x262b),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x5900eb['resolve']('userProfile@getResources',{'id':_0x4b9a58[_0x1b8ea2(0x21e8)]()[_0x1b8ea2(0x13c1)],'section':_0x1b8ea2(0x963),'fields':_0x1b8ea2(0x262b),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x2bbd0d(0x1e0b),_0x2bbd0d(0x1774),function(_0x29a7cb,_0x41fe97){const _0x57238f=_0x2bbd0d;return _0x41fe97[_0x57238f(0x22b6)](_0x57238f(0x1c60))?null:_0x29a7cb[_0x57238f(0x19a3)]('userProfile@get',{'fields':_0x57238f(0x279),'id':_0x41fe97[_0x57238f(0x21e8)]()[_0x57238f(0x13c1)]});}],'userProfileSection':['apiResolver',_0x2bbd0d(0x1774),function(_0xed23ee,_0x1dae83){const _0x1b40d9=_0x2bbd0d;return _0x1dae83[_0x1b40d9(0x22b6)]('admin')?null:_0xed23ee[_0x1b40d9(0x19a3)](_0x1b40d9(0x2182),{'fields':_0x1b40d9(0x1f5f),'userProfileId':_0x1dae83[_0x1b40d9(0x21e8)]()['userProfileId'],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':_0x2bbd0d(0x708)})[_0x2bbd0d(0x27e0)](_0x2bbd0d(0x1d5d),{'url':_0x2bbd0d(0x1bf2),'params':{'company':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4b8a19,'controller':'CompanyController\x20as\x20vm'}},'resolve':{'company':[_0x2bbd0d(0x1e0b),_0x2bbd0d(0x225c),function(_0x40792b,_0x27167d){const _0x2ca711=_0x2bbd0d;return _0x40792b[_0x2ca711(0x19a3)](_0x2ca711(0x60d),{'fields':_0x2ca711(0x262b),'id':_0x27167d['id']});}],'userProfileSection':[_0x2bbd0d(0x1e0b),'Auth',function(_0x15d283,_0x18e09c){const _0x40e895=_0x2bbd0d;return _0x15d283[_0x40e895(0x19a3)]('userProfileSection@get',{'fields':_0x40e895(0x1f5f),'userProfileId':_0x18e09c['getCurrentUser']()[_0x40e895(0x13c1)],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':_0x2bbd0d(0x708)})['state'](_0x2bbd0d(0x269),{'url':_0x2bbd0d(0x1fd),'views':{'content@app':{'templateUrl':_0x5ddf2f,'controller':'GlobalCustomFieldsController\x20as\x20vm'}},'resolve':{'globalCustomFields':[_0x2bbd0d(0x1e0b),function(_0xf5c1ef){const _0x35ae4c=_0x2bbd0d;return _0xf5c1ef[_0x35ae4c(0x19a3)]('cmCustomField@get',{'fields':_0x35ae4c(0xc05),'sort':'-updatedAt','ListId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0x2bbd0d(0x1e0b),_0x2bbd0d(0x1774),function(_0x12e629,_0x5810fc){const _0x249497=_0x2bbd0d;return _0x5810fc['hasRole'](_0x249497(0x1c60))?null:_0x12e629['resolve'](_0x249497(0x9ae),{'fields':_0x249497(0x279),'id':_0x5810fc[_0x249497(0x21e8)]()[_0x249497(0x13c1)]});}],'userProfileSection':[_0x2bbd0d(0x1e0b),_0x2bbd0d(0x1774),function(_0x238a43,_0x519e94){const _0x10cfe6=_0x2bbd0d;return _0x519e94[_0x10cfe6(0x22b6)](_0x10cfe6(0x1c60))?null:_0x238a43[_0x10cfe6(0x19a3)](_0x10cfe6(0x2182),{'fields':_0x10cfe6(0x1f5f),'userProfileId':_0x519e94[_0x10cfe6(0x21e8)]()['userProfileId'],'sectionId':0x130});}]},'authenticate':!![],'permissionId':0x130,'bodyClass':'contactmanager'}),_0x5b0541[_0x2bbd0d(0x4e7)](_0x2bbd0d(0x93b));}angular[_0x5537c6(0x9ab)](_0x5537c6(0x28ce),[_0x5537c6(0x2770),_0x5537c6(0x2135),_0x5537c6(0x1260),'flow',_0x5537c6(0x18f6),_0x5537c6(0xd19),_0x5537c6(0x44c),'ngAria',_0x5537c6(0x1890),_0x5537c6(0x167d),'mwFormBuilder',_0x5537c6(0x1b65),'mwFormUtils',_0x5537c6(0x3b9),'angular-cron-jobs','ngEmbed',_0x5537c6(0x27af),_0x5537c6(0x13b6),_0x5537c6(0x1cbd),'angular.filter',_0x5537c6(0x27ff)])[_0x5537c6(0xa60)](_0x25a443)[_0x5537c6(0x6e5)](_0x5537c6(0x16fc),_0x4ea084)[_0x5537c6(0x6e5)](_0x5537c6(0xeec),_0x178ff5)[_0x5537c6(0x6e5)](_0x5537c6(0x2757),_0x5513dd)[_0x5537c6(0x6e5)](_0x5537c6(0x630),_0xd6ffd5)[_0x5537c6(0x6e5)](_0x5537c6(0x1dff),_0x1b9e3f)[_0x5537c6(0x6e5)](_0x5537c6(0x26f3),_0x19b63a)[_0x5537c6(0x6e5)](_0x5537c6(0xfce),_0x39ec34)[_0x5537c6(0x6e5)](_0x5537c6(0x207a),_0x2b87e9)[_0x5537c6(0x6e5)](_0x5537c6(0x2365),_0x3e2868)[_0x5537c6(0x6e5)](_0x5537c6(0x1f8f),_0x526e34)['controller'](_0x5537c6(0x13e8),_0x3e4463)[_0x5537c6(0x6e5)](_0x5537c6(0x193f),_0x1f5add);;_0x5705ca[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2168),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x1f10),_0x5537c6(0x1ae),_0x5537c6(0x142b),'userProfile',_0x5537c6(0x2199),_0x5537c6(0x1774),_0x5537c6(0x1986),'toasty',_0x5537c6(0xc12),_0x5537c6(0xdf2)];function _0x5705ca(_0x3cf1b3,_0x3de573,_0x3c2d46,_0xda9ddb,_0x176f31,_0x1b7c93,_0x128ec0,_0x1c9486,_0x852c9a,_0x2e1e1d,_0x40ead7,_0x3d8184,_0x470c91,_0x23f917){const _0x4bc0f7=_0x5537c6,_0x2196cf=this;_0x2196cf[_0x4bc0f7(0xe76)]=_0x2e1e1d[_0x4bc0f7(0x21e8)](),_0x2196cf[_0x4bc0f7(0xc12)]=_0x470c91?_0x470c91:[],_0x2196cf[_0x4bc0f7(0xdf2)]=_0x23f917,_0x2196cf['abandonedCalls']={'count':0x0,'rows':[]},_0x2196cf['showTooltip']=![],_0x2196cf['refresh']=!![],_0x2196cf[_0x4bc0f7(0x44a)]=_0x1c9486,_0x2196cf[_0x4bc0f7(0x2199)]=_0x852c9a&&_0x852c9a['count']==0x1?_0x852c9a[_0x4bc0f7(0x2214)][0x0]:null,_0x2196cf[_0x4bc0f7(0x1b1a)]=_0x2e1e1d[_0x4bc0f7(0x14ea)](_0x2196cf[_0x4bc0f7(0x2199)]?_0x2196cf[_0x4bc0f7(0x2199)]['crudPermissions']:null),_0x2196cf[_0x4bc0f7(0xae2)]={'fields':'id,type,calleridnum,calleridname,queue,queuecallerabandonAt,queuecallerexitAt,queuecallerexitreason,assigned,lastAssignedTo,updatedAt,disposition,secondDisposition,thirdDisposition','type':_0x4bc0f7(0x26c0),'queuecallerexitreason':_0x4bc0f7(0x2021)+','+_0x4bc0f7(0x2778),'sort':_0x4bc0f7(0x282),'limit':0xa,'page':0x1},_0x2196cf[_0x4bc0f7(0x23a8)]=_0x47cf5c,_0x2196cf[_0x4bc0f7(0x2834)]=_0xfd82a0,_0x2196cf[_0x4bc0f7(0xe73)]=_0x50b3c2,_0x2196cf[_0x4bc0f7(0xe1c)]=_0x15da60,_0x2196cf[_0x4bc0f7(0x14be)]=_0xb7f550,_0x2196cf[_0x4bc0f7(0x5c7)]=_0x2cb54c,_0x40ead7[_0x4bc0f7(0x16b7)]('voiceQueueReport:save',_0x2196cf[_0x4bc0f7(0x14be)]),_0x40ead7['on'](_0x4bc0f7(0x125e),_0x2196cf['onUpdateVoiceQueueReport']),_0x2ab352();function _0x2ab352(){const _0x3358c6=_0x4bc0f7;let _0x2405df=_0x176f31[_0x3358c6(0x1b83)][_0x3358c6(0x2091)](_0x3358c6(0x1a02)+_0x2196cf['currentUser']['id']);if(_0x2405df)_0x2405df=JSON[_0x3358c6(0xefe)](_0x2405df),_0x2405df&&_0x2405df['query']&&(_0x2196cf[_0x3358c6(0xae2)]=_0x39641b()[_0x3358c6(0x9c1)](_0x2405df[_0x3358c6(0xae2)],_0x39641b()['omit'](_0x2196cf['query'],[_0x3358c6(0x1381),_0x3358c6(0x236),_0x3358c6(0x1c7b)])),_0x2196cf[_0x3358c6(0xae2)]=_0x39641b()[_0x3358c6(0x1bd8)](_0x2196cf[_0x3358c6(0xae2)],_0x3358c6(0x1c99)));else{const _0x2254d7={'$gte':_0x543b5a()()[_0x3358c6(0x1be0)](_0x3358c6(0x26ae))[_0x3358c6(0x17d9)](0x0,!![])[_0x3358c6(0x1f31)](),'$lte':_0x543b5a()()[_0x3358c6(0x1b4)](_0x3358c6(0x26ae))[_0x3358c6(0x17d9)](0x0,!![])[_0x3358c6(0x1f31)]()};_0x2196cf[_0x3358c6(0xae2)][_0x3358c6(0x24cb)]=_0x2254d7;}_0x2e1e1d[_0x3358c6(0x22b6)](_0x3358c6(0x1c60))?_0x128ec0[_0x3358c6(0xebe)][_0x3358c6(0x13e9)]({'id':_0x2e1e1d[_0x3358c6(0x21e8)]()['id'],'fields':'id,name','channel':_0x3358c6(0x1fd4),'type':'inbound','nolimit':!![]})[_0x3358c6(0x1d77)][_0x3358c6(0x1cb0)](function(_0x47bc61){const _0x3ca1de=_0x3358c6;_0x2196cf[_0x3ca1de(0x971)]=_0x47bc61||{'count':0x0,'rows':[]},_0x2196cf['queuesMap']=_0x39641b()[_0x3ca1de(0x1db)](_0x39641b()[_0x3ca1de(0x2631)](_0x2196cf[_0x3ca1de(0x971)]['rows'],'name'),_0x3ca1de(0x16b6));})[_0x3358c6(0x1c4)](function(_0x195838){console['error'](_0x195838);})[_0x3358c6(0x2e0)](function(){const _0x19346b=_0x3358c6;_0x2196cf[_0x19346b(0x789)]=_0x179e90(),_0x2196cf[_0x19346b(0x23a8)]();}):_0x128ec0[_0x3358c6(0x44a)][_0x3358c6(0x1810)]({'id':_0x2196cf[_0x3358c6(0xe76)]['userProfileId'],'section':_0x3358c6(0x2382),'channel':_0x3358c6(0x1fd4),'type':_0x3358c6(0x26c0),'sort':'-updatedAt','nolimit':!![]})['$promise'][_0x3358c6(0x1cb0)](function(_0x19f101){const _0x25bf67=_0x3358c6;_0x2196cf[_0x25bf67(0x971)]=_0x19f101||{'count':0x0,'rows':[]},_0x2196cf[_0x25bf67(0xb16)]=_0x39641b()['mapValues'](_0x39641b()[_0x25bf67(0x2631)](_0x2196cf[_0x25bf67(0x971)][_0x25bf67(0x2214)],'name'),'name');})[_0x3358c6(0x1c4)](function(_0x270310){console['error'](_0x270310);})[_0x3358c6(0x2e0)](function(){const _0x360264=_0x3358c6;_0x2196cf[_0x360264(0x789)]=_0x179e90(),_0x2196cf[_0x360264(0x23a8)]();});}function _0x179e90(){const _0xe03b1d=_0x4bc0f7;return[{'name':_0xe03b1d(0x68d),'key':_0xe03b1d(0x24cb),'type':_0xe03b1d(0x18ec),'label':_0xe03b1d(0xf5e)},{'name':_0xe03b1d(0x30e),'key':'lastAssignedTo','type':'select','label':_0xe03b1d(0x7bb),'options':_0x2196cf[_0xe03b1d(0xc12)][_0xe03b1d(0x2214)],'customOptions':[{'value':'\x27null\x27','translate':_0xe03b1d(0x68f)},{'value':undefined,'translate':_0xe03b1d(0x2706)}]},{'name':'Campaign','key':_0xe03b1d(0x11cf),'type':'multiselect','label':_0xe03b1d(0x519),'options':_0x2196cf[_0xe03b1d(0x971)]['rows']}];}function _0x47cf5c(){const _0x3859e4=_0x4bc0f7;_0x2196cf['refresh']=![],_0x2196cf['queues'][_0x3859e4(0x184d)]>0x0?(_0x2196cf[_0x3859e4(0xae2)][_0x3859e4(0x11cf)]=_0x2196cf[_0x3859e4(0x971)][_0x3859e4(0x184d)]===0x1?_0x2196cf['queues'][_0x3859e4(0x2214)][0x0][_0x3859e4(0x16b6)]:_0x2196cf[_0x3859e4(0xae2)][_0x3859e4(0x11cf)],_0x2196cf[_0x3859e4(0xae2)]['offset']=(_0x2196cf[_0x3859e4(0xae2)][_0x3859e4(0x1c7b)]-0x1)*_0x2196cf[_0x3859e4(0xae2)][_0x3859e4(0x236)],_0x176f31[_0x3859e4(0x1b83)]['setItem']('motion2.realtime.abandoned.voice.abandonedCalls:'+_0x2196cf[_0x3859e4(0xe76)]['id'],JSON[_0x3859e4(0x2701)]({'query':_0x39641b()[_0x3859e4(0x1bd8)](_0x2196cf['query'],_0x3859e4(0x11cf))})),_0x2196cf[_0x3859e4(0x2061)]=_0x128ec0[_0x3859e4(0xc6f)][_0x3859e4(0x7dc)](_0x2196cf[_0x3859e4(0xae2)],_0x543d4a)[_0x3859e4(0x1d77)]):_0x543d4a(null);}function _0x543d4a(_0xa8e26a){const _0x11e187=_0x4bc0f7;_0x2196cf[_0x11e187(0x292f)]=_0xa8e26a||{'count':0x0,'rows':[]},_0x2196cf[_0x11e187(0x576)]=!![];}function _0xfd82a0(){const _0x312bb8=_0x4bc0f7;_0x2196cf[_0x312bb8(0x16fe)]=![],_0x2196cf[_0x312bb8(0x23a8)]();}function _0xb7f550(_0xb6d039){const _0x399611=_0x4bc0f7,_0x10f73c=_0x399611(0x26c0);_0xb6d039&&_0x2196cf[_0x399611(0xb16)]&&_0x2196cf[_0x399611(0xae2)]['type']===_0x10f73c&&_0x2196cf[_0x399611(0xb16)][_0xb6d039[_0x399611(0x11cf)]]&&(_0x2196cf['showTooltip']=!![]);}function _0x2cb54c(_0x4d0da1){const _0x11ec65=_0x4bc0f7;if(_0x4d0da1){const _0x4d5416=_0x39641b()[_0x11ec65(0x3c2)](_0x2196cf[_0x11ec65(0x292f)][_0x11ec65(0x2214)],['id',_0x4d0da1['id']]);_0x4d5416>=0x0&&_0x39641b()[_0x11ec65(0x9c1)](_0x2196cf[_0x11ec65(0x292f)][_0x11ec65(0x2214)][_0x4d5416],_0x4d0da1);}}function _0x50b3c2(_0x8ec16c,_0x3a2359){const _0x419b14=_0x4bc0f7;_0x8ec16c&&_0x128ec0['voiceQueueReport'][_0x419b14(0x687)]({'id':_0x8ec16c['id'],'lastAssignedTo':_0x3a2359?_0x3a2359['name']:null,'assigned':_0x3a2359?!![]:![]})[_0x419b14(0x1d77)]['catch'](function(_0x47fc81){const _0x2d44f7=_0x419b14;console[_0x2d44f7(0x1b4f)](_0x47fc81);});}function _0x15da60(_0x37f12b){const _0x2f6842=_0x4bc0f7;_0x3c2d46[_0x2f6842(0xe27)]({'controller':'DisposeAbandonedCallDialogController','controllerAs':'vm','templateUrl':_0x2f6842(0x185f),'parent':angular[_0x2f6842(0x1853)](_0xda9ddb['body']),'targetEvent':_0x37f12b,'resolve':{'globalDispositions':[_0x2f6842(0x1e0b),function(_0x3fbd82){const _0x1c69a4=_0x2f6842;return _0x3fbd82['resolve'](_0x1c69a4(0x1c6f),{'MailAccountId':_0x1c69a4(0xd38),'FaxAccountId':_0x1c69a4(0xd38),'SmsAccountId':_0x1c69a4(0xd38),'WhatsappAccountId':_0x1c69a4(0xd38),'OpenchannelAccountId':_0x1c69a4(0xd38),'ChatWebsiteId':'null','ListId':'null'});}]},'locals':{'dispositions':_0x2196cf['dispositions'],'call':_0x37f12b}})[_0x2f6842(0x1cb0)](function(_0x3ac4bf){const _0x456795=_0x2f6842;if(_0x3ac4bf){const _0x20a8af={'id':_0x37f12b['id'],'disposition':_0x3ac4bf[_0x456795(0x1e1)]||null,'secondDisposition':_0x3ac4bf['secondLevel']||null,'thirdDisposition':_0x3ac4bf[_0x456795(0x28c4)]||null};_0x128ec0[_0x456795(0xc6f)]['update'](_0x20a8af)['$promise'][_0x456795(0x1c4)](function(_0x3c05d7){const _0x56a857=_0x456795;console[_0x56a857(0x1b4f)](_0x3c05d7);});}});}let _0x222bb0=!![],_0x4c1dec=0x1;_0x3cf1b3[_0x4bc0f7(0x614)]('vm.query.filter',function(_0x540f78,_0x50436c){const _0x1907f7=_0x4bc0f7;_0x222bb0?_0x3de573(function(){_0x222bb0=![];}):(!_0x50436c&&(_0x4c1dec=_0x2196cf['query']['page']),_0x540f78!==_0x50436c&&(_0x2196cf[_0x1907f7(0xae2)]['page']=0x1),!_0x540f78&&(_0x2196cf[_0x1907f7(0xae2)]['page']=_0x4c1dec),_0x2196cf[_0x1907f7(0x23a8)]());}),_0x3cf1b3[_0x4bc0f7(0x1d6)](_0x4bc0f7(0x291c),function(){const _0x1c28a0=_0x4bc0f7;_0x40ead7[_0x1c28a0(0xfb8)](_0x1c28a0(0xaa0)),_0x40ead7[_0x1c28a0(0xfb8)](_0x1c28a0(0x125e));});}const _0x13b175=_0x5705ca;;_0x4c6974['$inject']=['$scope','$q','$timeout',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0xc34),'pauses',_0x5537c6(0xc12),_0x5537c6(0x212d),_0x5537c6(0x142b),_0x5537c6(0x1986),'toasty',_0x5537c6(0x125c),_0x5537c6(0x44a),'userProfileSection','Auth',_0x5537c6(0x8a5),_0x5537c6(0x1714)];function _0x4c6974(_0x3f8c46,_0x84fb45,_0x482b21,_0x468b90,_0x28689e,_0x535b41,_0x12ff16,_0x4f686d,_0x39681e,_0x1b1943,_0x42fed7,_0x12fe05,_0x11c388,_0x159a38,_0x35667f,_0x3c83ab,_0x325752,_0x52c646){const _0x59f336=_0x5537c6,_0x2eb6c1=this,_0xeb43bd=[_0x59f336(0x70a),_0x59f336(0xa28),_0x59f336(0x24a2),_0x59f336(0x25db),_0x59f336(0x16e6),'lastPauseAt',_0x59f336(0xdbd),_0x59f336(0x16aa),_0x59f336(0xf0c),_0x59f336(0x1c7d),_0x59f336(0x2035),_0x59f336(0x22d3),'whatsappPause',_0x59f336(0x1ce),_0x59f336(0x2478),'chatCapacity','openchannelCapacity',_0x59f336(0x2789),_0x59f336(0x3d0),_0x59f336(0x9cd),_0x59f336(0x2451),_0x59f336(0x132d),_0x59f336(0x1cd3),_0x59f336(0x2947),_0x59f336(0x2472),'whatsappCurrentCapacity',_0x59f336(0x2336),_0x59f336(0x2208),_0x59f336(0x1446),'mailStatus',_0x59f336(0xe82),_0x59f336(0x2453),_0x59f336(0x542),'voiceStatus','chatStatusTime',_0x59f336(0x22a6),_0x59f336(0x568),_0x59f336(0x9eb),'whatsappStatusTime',_0x59f336(0x1997),'voiceStatusTime',_0x59f336(0x11cf),_0x59f336(0x247),_0x59f336(0x24c5),'phoneBarEnableScreenRecordingByAgent',_0x59f336(0x1f23)],_0xa7c611=[_0x59f336(0xf0c),_0x59f336(0x1c7d),'mailPause',_0x59f336(0x22d3),_0x59f336(0x24ff),_0x59f336(0x1ce),_0x59f336(0x2478),_0x59f336(0xa28)];_0x2eb6c1[_0x59f336(0xe76)]=_0x3c83ab[_0x59f336(0x21e8)](),_0x2eb6c1[_0x59f336(0x46c)]=[_0x59f336(0x1c7e),_0x59f336(0x8d2),'busy','onhold',_0x59f336(0x1abd)],_0x2eb6c1['pauses']=_0x12ff16||{'count':0x0,'rows':[]},_0x2eb6c1[_0x59f336(0x8a5)]=_0x325752,_0x2eb6c1[_0x59f336(0x44a)]=_0x159a38,_0x2eb6c1[_0x59f336(0x2199)]=_0x35667f&&_0x35667f[_0x59f336(0x184d)]==0x1?_0x35667f[_0x59f336(0x2214)][0x0]:null,_0x2eb6c1[_0x59f336(0x1b1a)]=_0x3c83ab[_0x59f336(0x14ea)](_0x2eb6c1[_0x59f336(0x2199)]?_0x2eb6c1[_0x59f336(0x2199)][_0x59f336(0x1b1a)]:null),_0x2eb6c1['agents']=_0x4f686d?_0x39641b()['keyBy'](_0x4f686d[_0x59f336(0x2214)]?_0x4f686d[_0x59f336(0x2214)]:[],'id'):{},_0x2eb6c1[_0x59f336(0x212d)]=_0x39681e?_0x39641b()[_0x59f336(0x2631)](_0x39681e[_0x59f336(0x2214)]?_0x39681e[_0x59f336(0x2214)]:[],'id'):{},_0x2eb6c1['paginatedAgents']={},_0x2eb6c1['load']=![],_0x2eb6c1[_0x59f336(0x237f)]=[],_0x2eb6c1[_0x59f336(0x1fdd)]={};for(const _0x1559c8 in _0x2eb6c1[_0x59f336(0xc12)]){typeof _0x2eb6c1[_0x59f336(0xc12)][_0x1559c8]!=='undefined'&&(_0x2eb6c1[_0x59f336(0xc12)][_0x1559c8][_0x59f336(0x1a8e)]=!![]);}_0x2eb6c1[_0x59f336(0xae2)]={'limit':0xa,'page':0x1,'order':_0x59f336(0x1d14),'globalStatusFilter':'','pauseTypeFilter':''},_0x2eb6c1[_0x59f336(0x1366)]=_0x50e144,_0x2eb6c1[_0x59f336(0x6ad)]=_0x50395c,_0x2eb6c1[_0x59f336(0x785)]=_0x26ee9f,_0x2eb6c1['unPause']=_0x4d53ad,_0x2eb6c1['showInfo']=_0x1ff1d8,_0x2eb6c1[_0x59f336(0x616)]=_0x59a9fa,_0x2eb6c1[_0x59f336(0xfe7)]=_0x53fcdd,_0x2eb6c1[_0x59f336(0x1090)]=_0x578415,_0x2eb6c1[_0x59f336(0x225e)]=_0x38124c,_0x2eb6c1[_0x59f336(0x1bc4)]=_0x52c9f3,_0x2eb6c1['onSave']=_0x181c64,_0x2eb6c1[_0x59f336(0x13e7)]=_0xa48906,_0x2eb6c1[_0x59f336(0x1a34)]=_0x5e377c,_0x2eb6c1[_0x59f336(0x1978)]=_0x5520dd,_0x2eb6c1['onComplete']=_0x34ad34,_0x2eb6c1[_0x59f336(0xd97)]=_0x185617,_0x42fed7['on'](_0x59f336(0x2464),_0x2eb6c1[_0x59f336(0x294c)]),_0x42fed7['on'](_0x59f336(0x14c6),_0x2eb6c1['onUpdate']),_0x42fed7['on']('user:agentconnect',_0x2eb6c1[_0x59f336(0x1978)]),_0x42fed7['on']('user:agentcomplete',_0x2eb6c1['onComplete']),_0x5e377c();let _0x5605ae=_0x52c646(function(){const _0x4021a7=_0x59f336;_0x2eb6c1['load']&&(_0x2eb6c1[_0x4021a7(0x997)]=![],_0x5e377c());},0x3e7);function _0x5e377c(){const _0x33535b=_0x59f336;_0x2eb6c1[_0x33535b(0x997)]=![];const _0x5db5d5=_0x84fb45[_0x33535b(0x11f4)]();_0x2eb6c1[_0x33535b(0x2061)]=_0x5db5d5[_0x33535b(0x2061)],_0x2eb6c1[_0x33535b(0xe0e)]=[],_0x2eb6c1[_0x33535b(0x237f)]=[],_0x39641b()[_0x33535b(0x1ebd)](_0x2eb6c1[_0x33535b(0xc12)],function(_0x1fc21a,_0x58b598){const _0x4f7891=_0x33535b;_0x2eb6c1[_0x4f7891(0x212d)][_0x58b598]&&_0x39641b()[_0x4f7891(0x9c1)](_0x1fc21a,_0x39641b()[_0x4f7891(0x169b)](_0x39641b()[_0x4f7891(0x1bd8)](_0x2eb6c1[_0x4f7891(0x212d)][_0x58b598],_0xa7c611),_0xeb43bd)),_0x53fcdd(_0x1fc21a),_0x1fc21a[_0x4f7891(0xa28)]?(_0x2eb6c1['filteredAgents'][_0x4f7891(0x2785)](_0x1fc21a),_0x2eb6c1[_0x4f7891(0x1fdd)][_0x1fc21a[_0x4f7891(0xdbd)]]=_0x58b598):_0x1fc21a[_0x4f7891(0xdb9)]=_0x39641b()['toNumber'](_0x543b5a()()[_0x4f7891(0x1f31)]('x'));});_0x2eb6c1[_0x33535b(0xae2)]['globalStatusFilter']&&_0x39641b()[_0x33535b(0x152a)](_0x2eb6c1[_0x33535b(0xe0e)],function(_0x2ebb88){const _0x1ac16f=_0x33535b;return _0x2ebb88[_0x1ac16f(0x1fbe)]!==_0x2eb6c1[_0x1ac16f(0xae2)][_0x1ac16f(0x1ef1)];});_0x2eb6c1[_0x33535b(0xae2)][_0x33535b(0x25ff)]&&_0x39641b()[_0x33535b(0x152a)](_0x2eb6c1[_0x33535b(0xe0e)],function(_0x2dad4f){const _0x3253fa=_0x33535b;return _0x2dad4f[_0x3253fa(0x16e6)]!==_0x2eb6c1[_0x3253fa(0xae2)][_0x3253fa(0x25ff)];});_0x2eb6c1['query']['filter']&&_0x39641b()[_0x33535b(0x152a)](_0x2eb6c1[_0x33535b(0xe0e)],function(_0x1959a4){const _0x3bbb5f=_0x33535b;return _0x1959a4['fullname'][_0x3bbb5f(0x1680)]()['indexOf'](_0x2eb6c1[_0x3bbb5f(0xae2)][_0x3bbb5f(0x1c99)]['toLowerCase']())<0x0;});_0x2eb6c1[_0x33535b(0xe0e)]=_0x2ddd45(_0x2eb6c1[_0x33535b(0xe0e)]);const _0x47cec6=(_0x2eb6c1[_0x33535b(0xae2)][_0x33535b(0x1c7b)]-0x1)*_0x2eb6c1[_0x33535b(0xae2)][_0x33535b(0x236)];_0x2eb6c1[_0x33535b(0x260a)]=_0x39641b()[_0x33535b(0x276f)](_0x2eb6c1[_0x33535b(0xe0e)],_0x47cec6)[_0x33535b(0x14cb)](0x0,_0x2eb6c1[_0x33535b(0xae2)]['limit']);for(let _0x26b370=0x0;_0x26b370<_0x2eb6c1[_0x33535b(0x260a)][_0x33535b(0xfd0)];_0x26b370+=0x1){_0x2eb6c1[_0x33535b(0x237f)][_0x33535b(0x2785)](_0x2eb6c1[_0x33535b(0x260a)][_0x26b370]['id']);}_0x5db5d5['resolve'](),_0x2eb6c1[_0x33535b(0x997)]=!![];}function _0x181c64(_0x24d10f){const _0x3a2121=_0x59f336;_0x2eb6c1[_0x3a2121(0xc12)][_0x24d10f['id']]&&(_0x39641b()[_0x3a2121(0x9c1)](_0x2eb6c1['agents'][_0x24d10f['id']],_0x39641b()[_0x3a2121(0x169b)](_0x39641b()[_0x3a2121(0x1bd8)](_0x24d10f,_0xa7c611),_0xeb43bd)),_0x39641b()[_0x3a2121(0x9c1)](_0x2eb6c1[_0x3a2121(0x212d)][_0x24d10f['id']],_0x39641b()['pick'](_0x39641b()['omit'](_0x24d10f,_0xa7c611),_0xeb43bd)),_0x53fcdd(_0x2eb6c1[_0x3a2121(0xc12)][_0x24d10f['id']]));}function _0xa48906(_0x535065){const _0x23f616=_0x59f336;_0x2eb6c1[_0x23f616(0xc12)][_0x535065['id']]&&(_0x39641b()['merge'](_0x2eb6c1[_0x23f616(0xc12)][_0x535065['id']],_0x39641b()[_0x23f616(0x169b)](_0x535065,_0xeb43bd)),_0x39641b()[_0x23f616(0x9c1)](_0x2eb6c1[_0x23f616(0x212d)][_0x535065['id']],_0x39641b()[_0x23f616(0x169b)](_0x535065,_0xeb43bd)),_0x535065[_0x23f616(0x25db)]&&(_0x2eb6c1[_0x23f616(0xc12)][_0x535065['id']]['globalStatusTime']=_0x535065[_0x23f616(0x25db)],_0x2eb6c1['rpcAgents'][_0x535065['id']][_0x23f616(0xdb9)]=_0x535065[_0x23f616(0x25db)]),_0x53fcdd(_0x2eb6c1[_0x23f616(0xc12)][_0x535065['id']]));}function _0x5520dd(_0x326af6){const _0x5272f3=_0x59f336;_0x2eb6c1[_0x5272f3(0xc12)][_0x2eb6c1[_0x5272f3(0x1fdd)][_0x326af6[_0x5272f3(0x7ea)]]]&&(_0x39641b()[_0x5272f3(0x9c1)](_0x2eb6c1[_0x5272f3(0xc12)][_0x2eb6c1[_0x5272f3(0x1fdd)][_0x326af6['destaccountcode']]],_0x39641b()[_0x5272f3(0x169b)](_0x326af6,['queue',_0x5272f3(0x247)])),_0x39641b()[_0x5272f3(0x9c1)](_0x2eb6c1[_0x5272f3(0x212d)][_0x2eb6c1[_0x5272f3(0x1fdd)][_0x326af6[_0x5272f3(0x7ea)]]],_0x39641b()['pick'](_0x326af6,[_0x5272f3(0x11cf),_0x5272f3(0x247)])));}function _0x34ad34(_0x198ed5){const _0x4a06de=_0x59f336;_0x2eb6c1[_0x4a06de(0xc12)][_0x2eb6c1[_0x4a06de(0x1fdd)][_0x198ed5[_0x4a06de(0x7ea)]]]&&(_0x2eb6c1[_0x4a06de(0xc12)][_0x2eb6c1[_0x4a06de(0x1fdd)][_0x198ed5[_0x4a06de(0x7ea)]]]=_0x39641b()[_0x4a06de(0x1bd8)](_0x2eb6c1[_0x4a06de(0xc12)][_0x2eb6c1[_0x4a06de(0x1fdd)][_0x198ed5[_0x4a06de(0x7ea)]]],[_0x4a06de(0x11cf),_0x4a06de(0x247)]),_0x2eb6c1[_0x4a06de(0x212d)][_0x2eb6c1['agentInternal'][_0x198ed5[_0x4a06de(0x7ea)]]]=_0x39641b()['omit'](_0x2eb6c1[_0x4a06de(0x212d)][_0x2eb6c1[_0x4a06de(0x1fdd)][_0x198ed5[_0x4a06de(0x7ea)]]],[_0x4a06de(0x11cf),'destconnectedlinenum']));}function _0x50e144(_0x410bd3){const _0x2d1aab=_0x59f336;return _0x1b1943[_0x2d1aab(0xebe)][_0x2d1aab(0x1366)]({'id':_0x410bd3['id'],'device':_0x2d1aab(0x217b),'agent_id':_0x410bd3['id'],'agent_name':_0x410bd3[_0x2d1aab(0x16b6)]})[_0x2d1aab(0x1d77)][_0x2d1aab(0x1cb0)](function(){const _0x2dfd84=_0x2d1aab;_0x12fe05['success']({'title':'Agent\x20logout','msg':_0x410bd3[_0x2dfd84(0x1d14)]+'\x20\x20properly\x20logout'}),_0x2eb6c1[_0x2dfd84(0xc12)][_0x410bd3['id']]&&(_0x2eb6c1['agents'][_0x410bd3['id']]['online']=![]),_0x2eb6c1[_0x2dfd84(0x212d)][_0x410bd3['id']]&&(_0x2eb6c1[_0x2dfd84(0x212d)][_0x410bd3['id']][_0x2dfd84(0xa28)]=![]),_0x5e377c();})['catch'](function(_0x164a9f){const _0x226ff3=_0x2d1aab;_0x12fe05[_0x226ff3(0x218e)]({'title':_0x164a9f[_0x226ff3(0x291)]?_0x226ff3(0xeb9)+_0x164a9f['status']+_0x226ff3(0x1657)+_0x164a9f[_0x226ff3(0xc22)]:'api.staff.save','msg':_0x164a9f['data']?JSON['stringify'](_0x164a9f[_0x226ff3(0x25c)]['message']):_0x164a9f[_0x226ff3(0x147f)]()});});}function _0x26ee9f(_0x399162,_0x291298){const _0x28647e=_0x59f336;return _0x1b1943[_0x28647e(0xebe)][_0x28647e(0x785)]({'id':_0x399162['id'],'type':_0x291298})['$promise']['then'](function(_0x2a4f96){const _0x3627b0=_0x28647e;_0x2eb6c1[_0x3627b0(0xc12)][_0x399162['id']]&&_0x39641b()[_0x3627b0(0x9c1)](_0x2eb6c1[_0x3627b0(0xc12)][_0x399162['id']],_0x39641b()[_0x3627b0(0x169b)](_0x2a4f96,_0xeb43bd)),_0x2eb6c1[_0x3627b0(0x212d)][_0x399162['id']]&&_0x39641b()[_0x3627b0(0x9c1)](_0x2eb6c1['rpcAgents'][_0x399162['id']],_0x39641b()[_0x3627b0(0x169b)](_0x2a4f96,_0xeb43bd)),_0x53fcdd(_0x2eb6c1[_0x3627b0(0xc12)][_0x399162['id']]);})[_0x28647e(0x1c4)](function(_0x1577d7){const _0x164037=_0x28647e;_0x12fe05[_0x164037(0x218e)]({'title':_0x1577d7[_0x164037(0x291)]?'API:'+_0x1577d7[_0x164037(0x291)]+_0x164037(0x1657)+_0x1577d7[_0x164037(0xc22)]:'api.staff.save','msg':_0x1577d7[_0x164037(0x25c)]?JSON['stringify'](_0x1577d7['data'][_0x164037(0x155e)]):_0x1577d7[_0x164037(0x147f)]()});});}function _0x4d53ad(_0x2d34f0){const _0x3db2de=_0x59f336;return _0x1b1943[_0x3db2de(0xebe)]['unpause']({'id':_0x2d34f0['id']})[_0x3db2de(0x1d77)][_0x3db2de(0x1cb0)](function(_0x478d21){const _0x578200=_0x3db2de;_0x2eb6c1[_0x578200(0xc12)][_0x2d34f0['id']]&&_0x39641b()[_0x578200(0x9c1)](_0x2eb6c1['agents'][_0x2d34f0['id']],_0x39641b()['pick'](_0x478d21,_0xeb43bd)),_0x2eb6c1['rpcAgents'][_0x2d34f0['id']]&&_0x39641b()['merge'](_0x2eb6c1[_0x578200(0x212d)][_0x2d34f0['id']],_0x39641b()[_0x578200(0x169b)](_0x478d21,_0xeb43bd)),_0x53fcdd(_0x2eb6c1['agents'][_0x2d34f0['id']]);})[_0x3db2de(0x1c4)](function(_0x1ea8fc){const _0x198f34=_0x3db2de;_0x12fe05[_0x198f34(0x218e)]({'title':_0x1ea8fc[_0x198f34(0x291)]?'API:'+_0x1ea8fc[_0x198f34(0x291)]+_0x198f34(0x1657)+_0x1ea8fc[_0x198f34(0xc22)]:_0x198f34(0xcd6),'msg':_0x1ea8fc[_0x198f34(0x25c)]?JSON[_0x198f34(0x2701)](_0x1ea8fc[_0x198f34(0x25c)][_0x198f34(0x155e)]):_0x1ea8fc[_0x198f34(0x147f)]()});});}function _0x1ff1d8(_0x109586){const _0x5d98ca=_0x59f336;_0x468b90[_0x5d98ca(0xe27)](_0x468b90[_0x5d98ca(0x494)]()[_0x5d98ca(0x27e1)](!![])[_0x5d98ca(0x1386)](_0x5d98ca(0x1bc1))[_0x5d98ca(0x49e)](_0x5d98ca(0x26a))['ok']('Ok')[_0x5d98ca(0x728)](_0x109586));}function _0x50395c(_0x173bc4,_0x2e2bf9){const _0xeb7730=_0x59f336;_0x468b90['show']({'controller':_0xeb7730(0x7e6),'controllerAs':'vm','templateUrl':_0x535a6f,'parent':angular[_0xeb7730(0x1853)](_0x28689e['body']),'targetEvent':_0x2e2bf9,'clickOutsideToClose':!![],'locals':{'agent':_0x173bc4,'agents':[],'channel':_0xeb7730(0x1fd4),'direction':_0xeb7730(0x26c0),'crudPermissions':_0x2eb6c1[_0xeb7730(0x1b1a)]}});}function _0x578415(_0xbe103a){const _0x220612=_0x59f336;return _0xbe103a===_0x220612(0x785)||_0xbe103a==='*pause';}function _0x38124c(_0x23c48e){return _0x23c48e==='pause';}function _0x52c9f3(_0x378665){const _0x4d67ca=_0x59f336;return _0x378665===_0x4d67ca(0x1767);}function _0x35d366(_0x365325){const _0x282faf=_0x59f336;return _0x365325===_0x282faf(0x8df)||_0x365325==='unknown'||_0x365325===_0x282faf(0x13a2)||_0x365325===_0x282faf(0x1c7e)||_0x39641b()[_0x282faf(0x958)](_0x365325);}function _0x59a9fa(_0x56e422,_0x9fd6de){const _0x3a54de=_0x59f336;if(_0x9fd6de===_0x3a54de(0x1fd4)){if(_0x56e422[_0x9fd6de+_0x3a54de(0x938)]!==_0x3a54de(0x8df))return _0x56e422[_0x9fd6de+'Status'];if(_0x56e422[_0x9fd6de+_0x3a54de(0x1e09)])return _0x56e422[_0x9fd6de+_0x3a54de(0x938)]=_0x3a54de(0x785),_0x3a54de(0x785);return _0x3a54de(0x8df);}else{if(_0x56e422[_0x9fd6de+'Pause'])return _0x56e422[_0x9fd6de+'Status']=_0x3a54de(0x785),_0x3a54de(0x785);return _0x56e422[_0x9fd6de+_0x3a54de(0x938)];}}function _0x53fcdd(_0x5529a9){const _0x535537=_0x59f336;let _0x5b69d5=_0x535537(0x1c9d);if(_0x39641b()[_0x535537(0x1aa3)]([_0x59a9fa(_0x5529a9,_0x535537(0x1fd4)),_0x59a9fa(_0x5529a9,_0x535537(0x174c)),_0x59a9fa(_0x5529a9,_0x535537(0x2651)),_0x59a9fa(_0x5529a9,_0x535537(0x15e0)),_0x59a9fa(_0x5529a9,_0x535537(0x689)),_0x59a9fa(_0x5529a9,_0x535537(0x2476)),_0x59a9fa(_0x5529a9,_0x535537(0x1944))],_0x578415))_0x5b69d5=_0x535537(0x785);else{if(_0x39641b()['some']([_0x59a9fa(_0x5529a9,_0x535537(0x1fd4)),_0x59a9fa(_0x5529a9,_0x535537(0x174c)),_0x59a9fa(_0x5529a9,'mail'),_0x59a9fa(_0x5529a9,_0x535537(0x15e0)),_0x59a9fa(_0x5529a9,_0x535537(0x689)),_0x59a9fa(_0x5529a9,_0x535537(0x2476)),_0x59a9fa(_0x5529a9,_0x535537(0x1944))],_0x578415))_0x5b69d5=_0x535537(0x1767);else _0x39641b()[_0x535537(0x1aa3)]([_0x59a9fa(_0x5529a9,_0x535537(0x1fd4)),_0x59a9fa(_0x5529a9,_0x535537(0x174c)),_0x59a9fa(_0x5529a9,_0x535537(0x2651)),_0x59a9fa(_0x5529a9,_0x535537(0x15e0)),_0x59a9fa(_0x5529a9,_0x535537(0x689)),_0x59a9fa(_0x5529a9,'whatsapp'),_0x59a9fa(_0x5529a9,_0x535537(0x1944))],_0x35d366)?_0x5b69d5=_0x535537(0x8df):_0x5b69d5=_0x535537(0x5b2);}_0x5529a9['globalStatus']!==_0x5b69d5&&(_0x5529a9[_0x535537(0x1fbe)]=_0x5b69d5,_0x5529a9[_0x535537(0x1a8e)]?(_0x5529a9[_0x535537(0x1a8e)]=![],_0x5529a9[_0x535537(0xdb9)]=_0x578415(_0x5b69d5)?_0x39641b()[_0x535537(0x106d)](_0x543b5a()(_0x5529a9['lastPauseAt'])[_0x535537(0x1f31)]('x')):_0x39641b()[_0x535537(0xb33)]([_0x5529a9[_0x535537(0xc9c)],_0x5529a9[_0x535537(0x1b11)],_0x5529a9['mailStatusTime'],_0x5529a9[_0x535537(0x9eb)],_0x5529a9['whatsappStatusTime'],_0x5529a9[_0x535537(0x22a6)],_0x5529a9[_0x535537(0x1997)]])):_0x5529a9[_0x535537(0xdb9)]=_0x39641b()['toNumber'](_0x543b5a()()[_0x535537(0x1f31)]('x')));}function _0x2ddd45(_0x4595b3){const _0x3cef6d=_0x59f336,_0x15e49b=_0x39641b()[_0x3cef6d(0x1f2c)](_0x2eb6c1[_0x3cef6d(0xae2)][_0x3cef6d(0x237f)],'-')?_0x3cef6d(0x20a5):_0x3cef6d(0x24cc);return _0x39641b()[_0x3cef6d(0x17ca)](_0x4595b3,[_0x2eb6c1[_0x3cef6d(0xae2)][_0x3cef6d(0x237f)][_0x3cef6d(0x288f)]('-','')],[_0x15e49b]);}function _0x4a588e(){const _0x3cc7ea=_0x59f336;_0x5605ae&&(_0x52c646[_0x3cc7ea(0x696)](_0x5605ae),_0x5605ae=null);}function _0x185617(_0x1ccd11,_0x509de5){const _0x205ac3=_0x59f336;return _0x1b1943[_0x205ac3(0xebe)]['update']({'id':_0x1ccd11['id']},{'screenrecording':_0x509de5})[_0x205ac3(0x1d77)][_0x205ac3(0x1c4)](function(_0x448b05){const _0x223889=_0x205ac3;_0x12fe05[_0x223889(0x218e)]({'title':_0x448b05[_0x223889(0x291)]?_0x223889(0xeb9)+_0x448b05[_0x223889(0x291)]+_0x223889(0x1657)+_0x448b05[_0x223889(0xc22)]:_0x223889(0x498),'msg':_0x448b05[_0x223889(0x25c)]?JSON['stringify'](_0x448b05[_0x223889(0x25c)][_0x223889(0x155e)]):_0x448b05[_0x223889(0x147f)]()});});}_0x3f8c46['$on']('$destroy',function(){const _0x59460d=_0x59f336;_0x42fed7[_0x59460d(0xfb8)](_0x59460d(0x2464)),_0x42fed7[_0x59460d(0xfb8)](_0x59460d(0x14c6)),_0x42fed7[_0x59460d(0xfb8)](_0x59460d(0x2290)),_0x42fed7['removeAllListeners'](_0x59460d(0x10b3)),_0x4a588e();});}const _0x29e71f=_0x4c6974;;_0x270394['$inject']=[_0x5537c6(0x1463),'$timeout','api','socket',_0x5537c6(0xd9c),'helperClasses'];function _0x270394(_0x1c93fb,_0x5d3196,_0x541d68,_0x45aee7,_0x152ae4,_0x56cab2){const _0x414466=_0x5537c6,_0x31005c=this;_0x31005c[_0x414466(0x13e2)]=_0x152ae4||{'rows':[],'count':0x0},_0x31005c['query']={'limit':0xa,'page':0x1},_0x31005c[_0x414466(0x1d00)]=_0x56cab2['channelStatusOut'],_0x45aee7['on'](_0x414466(0x267f),_0x31005c['onSave']),_0x45aee7['on'](_0x414466(0x4a6),_0x31005c[_0x414466(0x18c8)]);function _0x19fbee(_0x10a562){const _0xff7bf=_0x414466,_0xde6b15=_0x39641b()[_0xff7bf(0x13b4)](_0x31005c[_0xff7bf(0x13e2)][_0xff7bf(0x2214)],{'channel':_0x10a562['channel']});_0x10a562['channelstatedesc']=_0x10a562[_0xff7bf(0x1560)]?'up':'ring';if(_0xde6b15)_0x39641b()[_0xff7bf(0x9c1)](_0xde6b15,_0x10a562);else _0x10a562[_0xff7bf(0x1072)]&&_0x31005c[_0xff7bf(0x13e2)][_0xff7bf(0x2214)][_0xff7bf(0x2785)](_0x10a562);}function _0xa2db0(_0x5c1043){const _0x2f4748=_0x414466,_0x25eb8a=_0x39641b()[_0x2f4748(0x3c2)](_0x31005c[_0x2f4748(0x13e2)]['rows'],{'channel':_0x5c1043[_0x2f4748(0x1072)]});_0x25eb8a>=0x0&&(_0x31005c['calls'][_0x2f4748(0x2214)][_0x25eb8a][_0x2f4748(0x291)]=_0x2f4748(0x15e3)),_0x5d3196(function(){const _0x3bcf6a=_0x2f4748;_0x31005c[_0x3bcf6a(0x13e2)][_0x3bcf6a(0x2214)]['splice'](_0x25eb8a,0x1);},0x1388);}_0x1c93fb[_0x414466(0x1d6)](_0x414466(0x291c),function(){const _0x16e510=_0x414466;_0x45aee7[_0x16e510(0xfb8)](_0x16e510(0x267f)),_0x45aee7['removeAllListeners'](_0x16e510(0x4a6));}),_0x31005c[_0x414466(0x294c)]=_0x19fbee,_0x31005c[_0x414466(0x18c8)]=_0xa2db0;}const _0x28fa07=_0x270394;;_0x1770ed['$inject']=['$scope',_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0xc12),_0x5537c6(0x971),_0x5537c6(0x4b1),_0x5537c6(0x142b),'socket',_0x5537c6(0x125c),_0x5537c6(0x9bf),_0x5537c6(0x44a),_0x5537c6(0x2199),'Auth'];function _0x1770ed(_0x5e4a22,_0x5e570b,_0x291ebe,_0x540be9,_0x480db1,_0x4e2651,_0xd02600,_0x5e7f22,_0x3866be,_0x537ece,_0x428d7a,_0x188980,_0x44815f){const _0x2d33ee=_0x5537c6,_0x1dfe10=this;_0x1dfe10[_0x2d33ee(0xe76)]=_0x44815f[_0x2d33ee(0x21e8)](),_0x1dfe10['agents']=_0x540be9||{'count':0x0,'rows':[]},_0x1dfe10[_0x2d33ee(0x971)]=_0x480db1?_0x39641b()[_0x2d33ee(0x2631)](_0x480db1['rows']?_0x480db1[_0x2d33ee(0x2214)]:[],_0x2d33ee(0x16b6)):{},_0x1dfe10[_0x2d33ee(0x182d)]=_0x4e2651?_0x39641b()[_0x2d33ee(0x2631)](_0x4e2651['rows']?_0x39641b()[_0x2d33ee(0x1c99)](_0x4e2651[_0x2d33ee(0x2214)],{'type':_0x2d33ee(0x26c0)}):[],_0x2d33ee(0x1425)):{},_0x1dfe10['rpcVoiceQueuesChannels']={},_0x1dfe10[_0x2d33ee(0x44a)]=_0x428d7a,_0x1dfe10['userProfileSection']=_0x188980&&_0x188980[_0x2d33ee(0x184d)]==0x1?_0x188980[_0x2d33ee(0x2214)][0x0]:null,_0x1dfe10[_0x2d33ee(0x1b1a)]=_0x44815f[_0x2d33ee(0x14ea)](_0x1dfe10[_0x2d33ee(0x2199)]?_0x1dfe10[_0x2d33ee(0x2199)][_0x2d33ee(0x1b1a)]:null),_0x1dfe10[_0x2d33ee(0x2231)]={'limit':0xa,'page':0x1},_0x1dfe10['getSize']=_0x45d1a4,_0x1dfe10[_0x2d33ee(0x129c)]=_0xcf6afd,_0x1dfe10[_0x2d33ee(0x294c)]=_0x3f44f2,_0x1dfe10[_0x2d33ee(0x18c8)]=_0x5ab903,_0x1dfe10[_0x2d33ee(0x15e3)]=_0x5ea322,_0x1dfe10[_0x2d33ee(0xf9a)]=_0x3d8b30,_0x1dfe10['redirectToNumber']=_0x4d1a3a,_0x5e7f22['on'](_0x2d33ee(0x338),_0x1dfe10[_0x2d33ee(0x294c)]),_0x5e7f22['on'](_0x2d33ee(0x18f7),_0x1dfe10[_0x2d33ee(0x18c8)]);function _0x45d1a4(_0x47aab9){const _0x440224=_0x2d33ee;return _0x39641b()[_0x440224(0x1813)](_0x47aab9);}function _0xcf6afd(){_0x39641b()['forIn'](_0x1dfe10['rpcVoiceQueuesChannelsTmp'],function(_0x87297d,_0x3a4d36){const _0x294b77=a0_0x5cbd;_0x39641b()[_0x294b77(0x13b4)](_0x1dfe10[_0x294b77(0x971)],{'name':_0x87297d[_0x294b77(0x16b6)]})&&(_0x1dfe10[_0x294b77(0x4b1)][_0x3a4d36]=_0x87297d);});}function _0x3f44f2(_0x4ce58c){const _0x40ac26=_0x2d33ee;_0x4ce58c[_0x40ac26(0x66a)]===_0x40ac26(0x26c0)&&(_0x39641b()['find'](_0x1dfe10[_0x40ac26(0x971)],{'name':_0x4ce58c[_0x40ac26(0x16b6)]})&&(_0x1dfe10['rpcVoiceQueuesChannels'][_0x4ce58c[_0x40ac26(0x1425)]]=_0x4ce58c));}function _0x5ab903(_0x19c60f){const _0x1085dc=_0x2d33ee;_0x1dfe10[_0x1085dc(0x4b1)][_0x19c60f[_0x1085dc(0x1425)]]&&delete _0x1dfe10[_0x1085dc(0x4b1)][_0x19c60f[_0x1085dc(0x1425)]];}function _0x5ea322(_0x1fb898){const _0x2f128e=_0x2d33ee;return _0xd02600[_0x2f128e(0x1a00)]['getVoiceQueuesChannelHangup']({'uniqueid':_0x1fb898})[_0x2f128e(0x1d77)]['then'](function(_0x156b47){const _0x576d66=_0x2f128e;_0x537ece['success']({'title':_0x576d66(0x25af)+_0x1fb898+_0x576d66(0x2696),'msg':_0x156b47[_0x576d66(0x155e)]||''});})[_0x2f128e(0x1c4)](function(_0xff7108){const _0x25183a=_0x2f128e;_0x537ece[_0x25183a(0x218e)]({'title':_0xff7108[_0x25183a(0x291)]+_0x25183a(0x1657)+_0xff7108[_0x25183a(0xc22)],'msg':JSON[_0x25183a(0x2701)](_0xff7108[_0x25183a(0x25c)])||_0xff7108[_0x25183a(0x155e)][_0x25183a(0x1f66)]('\x20')});});}function _0x3d8b30(_0x4d99e5,_0x2e7782,_0x2f4c21){const _0x1425a4=_0x2d33ee;return _0xd02600[_0x1425a4(0x1a00)][_0x1425a4(0xc58)]({'uniqueid':_0x4d99e5,'exten':_0x2e7782,'context':_0x2f4c21})['$promise']['then'](function(_0x85171c){const _0x2f7115=_0x1425a4;_0x537ece['success']({'title':_0x2f7115(0x25af)+_0x4d99e5+_0x2f7115(0x208c),'msg':_0x85171c[_0x2f7115(0x155e)]||''});})[_0x1425a4(0x1c4)](function(_0x290145){const _0x224eaf=_0x1425a4;_0x537ece[_0x224eaf(0x218e)]({'title':_0x290145[_0x224eaf(0x291)]+_0x224eaf(0x1657)+_0x290145['statusText'],'msg':JSON[_0x224eaf(0x2701)](_0x290145['data'])||_0x290145[_0x224eaf(0x155e)][_0x224eaf(0x1f66)]('\x20')});});}function _0x4d1a3a(_0x4d33bd,_0xf10b2b){const _0x2378dd=_0x2d33ee,_0x40f7d5=_0x291ebe[_0x2378dd(0x2344)]()[_0x2378dd(0x1386)]('Which\x20number\x20do\x20you\x20want\x20transfer\x20the\x20call\x20to?')[_0x2378dd(0x161f)](_0x2378dd(0x1fef))[_0x2378dd(0x728)](_0x4d33bd)['ok']('Ok')['cancel'](_0x2378dd(0xde1));return _0x291ebe[_0x2378dd(0xe27)](_0x40f7d5)['then'](function(_0x3fa064){const _0x1ebcb8=_0x2378dd;return _0xd02600[_0x1ebcb8(0x1a00)][_0x1ebcb8(0xc58)]({'uniqueid':_0xf10b2b,'exten':_0x3fa064})['$promise'];})[_0x2378dd(0x1cb0)](function(_0x14048e){const _0x3dcb00=_0x2378dd;_0x537ece[_0x3dcb00(0x829)]({'title':_0x3dcb00(0x25af)+_0xf10b2b+_0x3dcb00(0x208c),'msg':_0x14048e['message']||''});})[_0x2378dd(0x1c4)](function(_0x4f89b7){const _0x373063=_0x2378dd;_0x537ece[_0x373063(0x218e)]({'title':_0x4f89b7[_0x373063(0x291)]+_0x373063(0x1657)+_0x4f89b7[_0x373063(0xc22)],'msg':JSON['stringify'](_0x4f89b7[_0x373063(0x25c)])||_0x4f89b7[_0x373063(0x155e)][_0x373063(0x1f66)]('\x20')});});}_0x5e4a22[_0x2d33ee(0x1d6)]('$destroy',function(){const _0x504365=_0x2d33ee;_0x5e7f22[_0x504365(0xfb8)](_0x504365(0x338)),_0x5e7f22['removeAllListeners'](_0x504365(0x18f7));});}const _0x206a91=_0x1770ed;;_0x316632[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x2168),_0x5537c6(0x1714),_0x5537c6(0x971),_0x5537c6(0x2255),_0x5537c6(0x142b),'socket',_0x5537c6(0x44a),_0x5537c6(0x2199),'Auth'];function _0x316632(_0x374c22,_0x368b4f,_0x1443b4,_0x439e42,_0x59701a,_0x3111ae,_0x1c3833,_0x4d9189,_0x4bf2ef,_0xdd3d25){const _0x20ba37=_0x5537c6,_0x2c636a=this,_0x12cdbe=['total','answered',_0x20ba37(0x89f),_0x20ba37(0x20fe),'sumHoldTime','sumDuration','sumBillable'];_0x2c636a['count']=_0x439e42[_0x20ba37(0x184d)],_0x2c636a[_0x20ba37(0x971)]=_0x439e42?_0x39641b()['keyBy'](_0x439e42[_0x20ba37(0x2214)]?_0x439e42['rows']:[],'id'):{},_0x2c636a['rpcQueues']=_0x59701a?_0x39641b()['keyBy'](_0x59701a[_0x20ba37(0x2214)]?_0x59701a['rows']:[],'id'):{},_0x2c636a[_0x20ba37(0x44a)]=_0x4d9189,_0x2c636a[_0x20ba37(0x2199)]=_0x4bf2ef&&_0x4bf2ef[_0x20ba37(0x184d)]==0x1?_0x4bf2ef['rows'][0x0]:null,_0x2c636a[_0x20ba37(0x1b1a)]=_0xdd3d25[_0x20ba37(0x14ea)](_0x2c636a['userProfileSection']?_0x2c636a[_0x20ba37(0x2199)][_0x20ba37(0x1b1a)]:null);_0xdd3d25[_0x20ba37(0x22b6)](_0x20ba37(0x1c60))?_0x2c636a[_0x20ba37(0xae2)]={'type':'inbound','fields':_0x20ba37(0x43c),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x2c636a[_0x20ba37(0xae2)]={'id':_0xdd3d25[_0x20ba37(0x21e8)]()['id'],'channel':'voice','type':_0x20ba37(0x26c0),'fields':'id,name','sort':_0x20ba37(0x282),'limit':0xa,'page':0x1};_0x2c636a[_0x20ba37(0x829)]=_0x542d25,_0x2c636a[_0x20ba37(0x13e9)]=_0x5cd035,_0x2c636a[_0x20ba37(0x294c)]=_0x42149e,_0x2c636a[_0x20ba37(0x129c)]=_0x39a6ec,_0x1c3833[_0x20ba37(0x16b7)]('voice_queue:save',_0x2c636a['onSave']),_0x2c636a[_0x20ba37(0x1ac8)]=_0x1443b4(function(){},0x3e7);function _0x39a6ec(){const _0x58714d=_0x20ba37;_0x39641b()[_0x58714d(0x1ebd)](_0x2c636a['queues'],function(_0x5b3e77,_0x263891){const _0x3a5f8a=_0x58714d;_0x2c636a[_0x3a5f8a(0x2255)][_0x263891]&&_0x39641b()[_0x3a5f8a(0x9c1)](_0x5b3e77,_0x39641b()[_0x3a5f8a(0x169b)](_0x2c636a[_0x3a5f8a(0x2255)][_0x263891],_0x12cdbe));});}function _0x42149e(_0x4a381a){const _0x554d74=_0x20ba37;_0x2c636a[_0x554d74(0x971)][_0x4a381a['id']]&&_0x39641b()[_0x554d74(0x9c1)](_0x2c636a[_0x554d74(0x971)][_0x4a381a['id']],_0x39641b()[_0x554d74(0x169b)](_0x4a381a,_0x12cdbe));}let _0x1f4ee0=!![],_0x10e7ef=0x1;_0x374c22[_0x20ba37(0x614)](_0x20ba37(0x957),function(_0x479649,_0x437931){const _0x5cdd32=_0x20ba37;_0x1f4ee0?_0x368b4f(function(){_0x1f4ee0=![];}):(!_0x437931&&(_0x10e7ef=_0x2c636a[_0x5cdd32(0xae2)][_0x5cdd32(0x1c7b)]),_0x479649!==_0x437931&&(_0x2c636a['query'][_0x5cdd32(0x1c7b)]=0x1),!_0x479649&&(_0x2c636a['query']['page']=_0x10e7ef),_0x2c636a[_0x5cdd32(0x13e9)]());});function _0x542d25(_0x2937a3){const _0x42f29e=_0x20ba37;_0x2c636a[_0x42f29e(0x184d)]=_0x2937a3['count'],_0x2c636a[_0x42f29e(0x971)]=_0x2937a3?_0x39641b()[_0x42f29e(0x2631)](_0x2937a3[_0x42f29e(0x2214)]?_0x2937a3['rows']:[],'id'):{},_0x39a6ec();}function _0x5cd035(){const _0x202d0a=_0x20ba37;_0x2c636a['query'][_0x202d0a(0x184b)]=(_0x2c636a[_0x202d0a(0xae2)][_0x202d0a(0x1c7b)]-0x1)*_0x2c636a['query'][_0x202d0a(0x236)],_0xdd3d25[_0x202d0a(0x22b6)](_0x202d0a(0x1c60))?_0x2c636a[_0x202d0a(0x2061)]=_0x3111ae['voiceQueue']['get'](_0x2c636a[_0x202d0a(0xae2)],_0x542d25)[_0x202d0a(0x1d77)]:(_0x2c636a[_0x202d0a(0xae2)]['id']=_0x2c636a[_0x202d0a(0x44a)]['id'],_0x2c636a[_0x202d0a(0xae2)][_0x202d0a(0x1f74)]=_0x202d0a(0x2382),_0x2c636a['promise']=_0x3111ae[_0x202d0a(0x44a)]['getResources'](_0x2c636a[_0x202d0a(0xae2)],_0x542d25)[_0x202d0a(0x1d77)]);}_0x374c22[_0x20ba37(0x1d6)]('$destroy',function(){const _0x3655ae=_0x20ba37;_0x1c3833[_0x3655ae(0xfb8)](_0x3655ae(0x82a)),_0x2c636a[_0x3655ae(0x1ac8)]&&_0x1443b4[_0x3655ae(0x696)](_0x2c636a['interval']);});}const _0x38780f=_0x316632;;const _0x50b690=_0x5074a3['p']+_0x5537c6(0x22f0);;const _0x434d1c=_0x5074a3['p']+'src/js/modules/main/apps/voice/views/voiceQueues/edit/agentadd/agentadd.html/agentadd.html';;_0x2d98f3['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x2168),_0x5537c6(0xcb9),'$q',_0x5537c6(0x22bf),_0x5537c6(0x1714),_0x5537c6(0x971),_0x5537c6(0x2255),'api',_0x5537c6(0x1986),'toasty',_0x5537c6(0x44a),'userProfileSection',_0x5537c6(0x1774)];function _0x2d98f3(_0x5ecfb2,_0x3f7530,_0x13abbc,_0x2148c,_0x3dd213,_0x324dbb,_0x2d28d4,_0x58049c,_0x1c782b,_0x3f058f,_0x4a4a21,_0x41264a,_0x5eedbb,_0xed654){const _0x452efd=_0x5537c6,_0x3d346b=this,_0x1e990a=['loggedIn',_0x452efd(0x2803),_0x452efd(0x26b6),_0x452efd(0x192a),'pTalking','originated',_0x452efd(0x155e),_0x452efd(0x737),_0x452efd(0xda8),'Trunk',_0x452efd(0x139c)];_0x3d346b['currentUser']=_0xed654[_0x452efd(0x21e8)](),_0x3d346b[_0x452efd(0x184d)]=_0x2d28d4[_0x452efd(0x184d)]?_0x2d28d4[_0x452efd(0x184d)]:0x0,_0x3d346b[_0x452efd(0x971)]=_0x2d28d4?_0x39641b()[_0x452efd(0x2631)](_0x2d28d4[_0x452efd(0x2214)]?_0x2d28d4['rows']:[],'id'):{},_0x3d346b['rpcQueues']=_0x58049c?_0x39641b()['keyBy'](_0x58049c['rows']?_0x58049c['rows']:[],'id'):{},_0x3d346b[_0x452efd(0x44a)]=_0x41264a,_0x3d346b['userProfileSection']=_0x5eedbb&&_0x5eedbb[_0x452efd(0x184d)]==0x1?_0x5eedbb[_0x452efd(0x2214)][0x0]:null,_0x3d346b[_0x452efd(0x1b1a)]=_0xed654[_0x452efd(0x14ea)](_0x3d346b['userProfileSection']?_0x3d346b[_0x452efd(0x2199)]['crudPermissions']:null);_0xed654['hasRole'](_0x452efd(0x1c60))?_0x3d346b['query']={'type':'inbound','sort':_0x452efd(0x282),'limit':0xa,'page':0x1}:_0x3d346b['query']={'id':_0x3d346b[_0x452efd(0xe76)]['id'],'channel':'voice','type':_0x452efd(0x26c0),'sort':_0x452efd(0x282),'limit':0xa,'page':0x1};_0x3d346b[_0x452efd(0x829)]=_0x4ac401,_0x3d346b[_0x452efd(0x13e9)]=_0x1d1bd0,_0x3d346b['createOrEditVoiceQueue']=_0x271de3,_0x3d346b[_0x452efd(0x1be7)]=_0x43681a,_0x3d346b['updateQueue']=_0x332ae6,_0x3d346b[_0x452efd(0x294c)]=_0x31118f,_0x3d346b[_0x452efd(0x18e4)]=_0x775e76,_0x3d346b['onLogin']=_0x1e98bb,_0x3d346b[_0x452efd(0x3be)]=_0x23a6ee,_0x3d346b[_0x452efd(0x129c)]=_0x3e3549,_0x3d346b[_0x452efd(0x237f)]=[],_0x39641b()[_0x452efd(0x1ebd)](_0x3d346b[_0x452efd(0x971)],function(_0x1527ef){const _0x5d3642=_0x452efd;_0x3d346b['order'][_0x5d3642(0x2785)](_0x1527ef['id']);}),_0x3f058f['onWithoutApply'](_0x452efd(0x82a),_0x3d346b[_0x452efd(0x294c)]),_0x3d346b[_0x452efd(0x1ac8)]=_0x324dbb(function(){},0x3e7),_0x3f058f['on'](_0x452efd(0x14c6),_0x3d346b[_0x452efd(0x18e4)]),_0x3f058f['on'](_0x452efd(0x201e),_0x3d346b[_0x452efd(0x3be)]),_0x3f058f['on'](_0x452efd(0x828),_0x3d346b[_0x452efd(0x26c9)]);function _0x3e3549(){const _0x593a7a=_0x452efd,_0x1c11ed=[];return _0x39641b()[_0x593a7a(0x1ebd)](_0x3d346b[_0x593a7a(0x971)],function(_0x2db963,_0x3356e0){const _0x462be4=_0x593a7a;_0x2db963[_0x462be4(0x139c)]=0x0,_0x2db963['loggedInDb']=0x0,_0x3d346b[_0x462be4(0x971)][_0x3356e0]['agents']={},_0x1c11ed[_0x462be4(0x2785)](_0x1c782b[_0x462be4(0x26b3)][_0x462be4(0x11dd)]({'id':_0x3356e0})[_0x462be4(0x1d77)]),_0x3d346b[_0x462be4(0x2255)][_0x3356e0]&&_0x39641b()['merge'](_0x2db963,_0x39641b()[_0x462be4(0x169b)](_0x3d346b[_0x462be4(0x2255)][_0x3356e0],_0x1e990a));}),_0x2148c[_0x593a7a(0x223b)](_0x1c11ed)[_0x593a7a(0x1cb0)](function(_0x1d8da4){const _0x2f74a6=_0x593a7a;for(let _0x353c20=0x0;_0x353c20<_0x1d8da4[_0x2f74a6(0xfd0)];_0x353c20+=0x1){for(let _0x22b23d=0x0;_0x22b23d<_0x1d8da4[_0x353c20][_0x2f74a6(0x2214)][_0x2f74a6(0xfd0)];_0x22b23d++){_0x1d8da4[_0x353c20][_0x2f74a6(0x2214)][_0x22b23d][_0x2f74a6(0x139c)]&&_0x3d346b['queues'][_0x1d8da4[_0x353c20][_0x2f74a6(0x2214)][_0x22b23d][_0x2f74a6(0x1116)]][_0x2f74a6(0x139c)]++,_0x3d346b[_0x2f74a6(0x971)][_0x1d8da4[_0x353c20][_0x2f74a6(0x2214)][_0x22b23d][_0x2f74a6(0x1116)]][_0x2f74a6(0x29a2)]++,_0x3d346b[_0x2f74a6(0x971)][_0x1d8da4[_0x353c20][_0x2f74a6(0x2214)][_0x22b23d][_0x2f74a6(0x1116)]][_0x2f74a6(0xc12)][_0x1d8da4[_0x353c20]['rows'][_0x22b23d]['UserId']]=_0x1d8da4[_0x353c20]['rows'][_0x22b23d]['VoiceQueueId'];}}})[_0x593a7a(0x1c4)](function(_0x23155d){const _0x564669=_0x593a7a;console[_0x564669(0x218e)](_0x23155d);});}function _0x31118f(_0x22bada){const _0x232c01=_0x452efd;_0x3d346b['queues'][_0x22bada['id']]&&_0x39641b()['merge'](_0x3d346b[_0x232c01(0x971)][_0x22bada['id']],_0x39641b()[_0x232c01(0x169b)](_0x22bada,_0x1e990a));}function _0x775e76(_0x56b8f7){const _0x17039a=_0x452efd;console[_0x17039a(0x1b4f)]('onPause',_0x56b8f7);if(_0x56b8f7[_0x17039a(0x2478)])_0x39641b()[_0x17039a(0x1ebd)](_0x3d346b[_0x17039a(0x971)],function(_0x349a4c){const _0x2fe687=_0x17039a;_0x349a4c[_0x2fe687(0xc12)][_0x56b8f7['id']]&&(_0x349a4c[_0x2fe687(0x139c)]+=0x1,console['log'](_0x2fe687(0x785)));});else!_0x56b8f7[_0x17039a(0x2478)]&&_0x39641b()[_0x17039a(0x1ebd)](_0x3d346b[_0x17039a(0x971)],function(_0x44aac0){const _0x5d753b=_0x17039a;_0x44aac0[_0x5d753b(0xc12)][_0x56b8f7['id']]&&(_0x44aac0['paused']>0x0&&(_0x44aac0[_0x5d753b(0x139c)]-=0x1,console['log']('unpause')));});}function _0x1e98bb(_0x3a4201){const _0xf38892=_0x452efd;console[_0xf38892(0x1b4f)](_0xf38892(0x2557),_0x3a4201),_0x3d346b[_0xf38892(0x971)][_0x3a4201['VoiceQueueId']]&&(_0x3d346b[_0xf38892(0x971)][_0x3a4201['VoiceQueueId']]['loggedInDb']+=0x1,_0x3d346b[_0xf38892(0x971)][_0x3a4201[_0xf38892(0x1116)]][_0xf38892(0xc12)][_0x3a4201[_0xf38892(0x21ab)]]=_0x3a4201[_0xf38892(0x1116)]);}function _0x23a6ee(_0x3c4e53){const _0x318426=_0x452efd;console[_0x318426(0x1b4f)](_0x318426(0x3be),_0x3c4e53),_0x3d346b[_0x318426(0x971)][_0x3c4e53[_0x318426(0x1116)]]&&_0x3d346b['queues'][_0x3c4e53[_0x318426(0x1116)]][_0x318426(0x29a2)]>0x0&&(_0x3d346b[_0x318426(0x971)][_0x3c4e53[_0x318426(0x1116)]][_0x318426(0x29a2)]-=0x1,delete _0x3d346b[_0x318426(0x971)][_0x3c4e53[_0x318426(0x1116)]][_0x318426(0xc12)][_0x3c4e53[_0x318426(0x21ab)]]);}let _0x2c9cba=!![],_0x4c075b=0x1;_0x5ecfb2[_0x452efd(0x614)](_0x452efd(0x957),function(_0xea61cd,_0x354b6b){const _0x4f8ba1=_0x452efd;_0x2c9cba?_0x3f7530(function(){_0x2c9cba=![];}):(!_0x354b6b&&(_0x4c075b=_0x3d346b[_0x4f8ba1(0xae2)][_0x4f8ba1(0x1c7b)]),_0xea61cd!==_0x354b6b&&(_0x3d346b['query'][_0x4f8ba1(0x1c7b)]=0x1),!_0xea61cd&&(_0x3d346b[_0x4f8ba1(0xae2)][_0x4f8ba1(0x1c7b)]=_0x4c075b),_0x3d346b['getQueues']());});function _0x4ac401(_0x4506ce){const _0x2c70c0=_0x452efd;_0x3d346b[_0x2c70c0(0x184d)]=_0x4506ce[_0x2c70c0(0x184d)],_0x3d346b[_0x2c70c0(0x971)]=_0x4506ce?_0x39641b()[_0x2c70c0(0x2631)](_0x4506ce[_0x2c70c0(0x2214)]?_0x4506ce['rows']:[],'id'):{};if(_0x4506ce[_0x2c70c0(0x2214)]){_0x3d346b[_0x2c70c0(0x237f)]=[];for(let _0x581584=0x0;_0x581584<_0x4506ce[_0x2c70c0(0x2214)]['length'];_0x581584++){_0x3d346b['order'][_0x2c70c0(0x2785)](_0x4506ce[_0x2c70c0(0x2214)][_0x581584]['id']);}}_0x3e3549();}function _0x1d1bd0(){const _0x4ca529=_0x452efd;_0x3d346b[_0x4ca529(0xae2)][_0x4ca529(0x184b)]=(_0x3d346b[_0x4ca529(0xae2)][_0x4ca529(0x1c7b)]-0x1)*_0x3d346b['query'][_0x4ca529(0x236)],_0xed654[_0x4ca529(0x22b6)](_0x4ca529(0x1c60))?_0x3d346b[_0x4ca529(0x2061)]=_0x1c782b[_0x4ca529(0x26b3)][_0x4ca529(0xbf7)](_0x3d346b['query'],_0x4ac401)[_0x4ca529(0x1d77)]:(_0x3d346b[_0x4ca529(0xae2)]['id']=_0x3d346b[_0x4ca529(0x44a)]['id'],_0x3d346b[_0x4ca529(0xae2)]['section']=_0x4ca529(0x2382),_0x3d346b['promise']=_0x1c782b['userProfile'][_0x4ca529(0x1810)](_0x3d346b[_0x4ca529(0xae2)],_0x4ac401)[_0x4ca529(0x1d77)]);}function _0x271de3(_0x2e3778,_0xef36cd){const _0x3168c9=_0x452efd;_0x13abbc[_0x3168c9(0xe27)]({'controller':'CreateOrEditVoiceQueueDialogController','controllerAs':'vm','templateUrl':_0x50b690,'parent':angular[_0x3168c9(0x1853)](_0x3dd213[_0x3168c9(0x1ed9)]),'targetEvent':_0x2e3778,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0xef36cd,'voiceQueues':_0x39641b()[_0x3168c9(0x27aa)](_0x3d346b[_0x3168c9(0x971)]),'license':null,'setting':null,'crudPermissions':_0x3d346b[_0x3168c9(0x1b1a)]}});}function _0x43681a(_0x2951e6,_0x573263){const _0x30a4b8=_0x452efd;_0x13abbc[_0x30a4b8(0xe27)]({'controller':_0x30a4b8(0x148f),'controllerAs':'vm','templateUrl':_0x434d1c,'parent':angular[_0x30a4b8(0x1853)](_0x3dd213[_0x30a4b8(0x1ed9)]),'targetEvent':_0x2951e6,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x573263,'voiceQueues':_0x3d346b['queues']?_0x3d346b[_0x30a4b8(0x971)][_0x30a4b8(0x2214)]:[],'realtime':!![],'crudPermissions':_0x3d346b['crudPermissions']}});}function _0x332ae6(_0x21c7ad){const _0x21c739=_0x452efd;return _0x1c782b[_0x21c739(0x26b3)]['update'](_0x21c7ad)[_0x21c739(0x1d77)][_0x21c739(0x1cb0)](function(){const _0x103a7b=_0x21c739;_0x4a4a21['success']({'title':_0x103a7b(0x264c),'msg':_0x21c7ad[_0x103a7b(0x16b6)]?_0x21c7ad['name']+_0x103a7b(0x1068):''});})['catch'](function(_0x4a9983){const _0xab6e76=_0x21c739;_0x4a4a21[_0xab6e76(0x218e)]({'title':_0xab6e76(0x454),'msg':_0x4a9983[_0xab6e76(0x155e)]});});}_0x5ecfb2[_0x452efd(0x1d6)](_0x452efd(0x291c),function(){const _0xb9c429=_0x452efd;_0x3f058f['removeAllListeners'](_0xb9c429(0x82a)),_0x3d346b[_0xb9c429(0x1ac8)]&&_0x324dbb[_0xb9c429(0x696)](_0x3d346b[_0xb9c429(0x1ac8)]),_0x3f058f[_0xb9c429(0xfb8)]('user:update'),_0x3f058f[_0xb9c429(0xfb8)](_0xb9c429(0x201e)),_0x3f058f[_0xb9c429(0xfb8)](_0xb9c429(0x828));});}const _0x5beaae=_0x2d98f3;;function _0x13f419(){const _0x103bd2=_0x5537c6;return{'status':{'registered':_0x103bd2(0x1170),'unregistered':_0x103bd2(0x29a3),'lagged':_0x103bd2(0x29a3),'reachable':_0x103bd2(0x1170),'unreachable':_0x103bd2(0x29a3),'unknown':'grey-fg\x20icon-minus-circle'},'state':{'unknown':_0x103bd2(0x181),'not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':_0x103bd2(0xd57),'busy':_0x103bd2(0x35b),'invalid':_0x103bd2(0x181),'unavailable':_0x103bd2(0x181),'ringing':_0x103bd2(0x1c43),'ringinuse':_0x103bd2(0x1c43),'onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':_0x103bd2(0x1c43),'up':_0x103bd2(0x142f),'hangup':_0x103bd2(0xe67)},'channelStatusOut':{'ring':_0x103bd2(0x53c),'up':_0x103bd2(0x142f),'hangup':_0x103bd2(0xe67)}};}const _0x485d73=_0x13f419;;_0x222763[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x1986)];function _0x222763(_0x38c17a,_0x24eda0,_0x5b4498){const _0x58511a=_0x5537c6,_0x1f56bc=this;_0x5b4498['disconnect'](),_0x5b4498[_0x58511a(0x8b0)](),_0x1f56bc[_0x58511a(0x8ec)]=0x0;switch(_0x24eda0[_0x58511a(0x1970)]['name']){case'app.voice.realtime.agents':_0x1f56bc[_0x58511a(0x8ec)]=0x0;break;case _0x58511a(0x978):_0x1f56bc[_0x58511a(0x8ec)]=0x1;break;case _0x58511a(0x1bb2):_0x1f56bc[_0x58511a(0x8ec)]=0x2;break;case _0x58511a(0x17c1):_0x1f56bc['selectedTab']=0x3;break;case'app.voice.realtime.queue_calls':_0x1f56bc['selectedTab']=0x4;break;case _0x58511a(0x26a8):_0x1f56bc[_0x58511a(0x8ec)]=0x5;break;case'app.voice.realtime.queue_params':_0x1f56bc['selectedTab']=0x6;break;case _0x58511a(0xd7b):_0x1f56bc[_0x58511a(0x8ec)]=0x7;break;default:_0x1f56bc[_0x58511a(0x8ec)]=0x0,_0x24eda0['go'](_0x58511a(0x160b));}_0x38c17a[_0x58511a(0x614)](_0x58511a(0x1ced),function(_0xda0e12,_0x1bbb90){const _0x39a1f9=_0x58511a;if(_0xda0e12!==_0x1bbb90)switch(_0xda0e12){case 0x0:_0x24eda0['go'](_0x39a1f9(0x160b));break;case 0x1:_0x24eda0['go'](_0x39a1f9(0x978));break;case 0x2:_0x24eda0['go'](_0x39a1f9(0x1bb2));break;case 0x3:_0x24eda0['go'](_0x39a1f9(0x17c1));break;case 0x4:_0x24eda0['go'](_0x39a1f9(0x218b));break;case 0x5:_0x24eda0['go'](_0x39a1f9(0x26a8));break;case 0x6:_0x24eda0['go'](_0x39a1f9(0x2724));break;case 0x7:_0x24eda0['go']('app.voice.realtime.outbound_calls');break;default:_0x24eda0['go'](_0x39a1f9(0x160b));}});}const _0x100f55=_0x222763;;_0x1b7a16[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2168),'$mdDialog',_0x5537c6(0x5f8),_0x5537c6(0x1b0d),_0x5537c6(0x142b),_0x5537c6(0x1986),_0x5537c6(0x125c),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x1774)];function _0x1b7a16(_0x1adbe3,_0x204d6c,_0x59dd60,_0x203c25,_0x47a201,_0x4e9344,_0x50b2bf,_0x218bcb,_0x17f963,_0x3b04aa,_0x40e069){const _0x409b2c=_0x5537c6,_0x450a3a=this,_0x35e1a3=[_0x409b2c(0x1d14),_0x409b2c(0xdbd),_0x409b2c(0x27e0),_0x409b2c(0x291)];_0x450a3a[_0x409b2c(0x184d)]=_0x203c25[_0x409b2c(0x184d)],_0x450a3a['attributes']=['fullname',_0x409b2c(0xdbd),_0x409b2c(0x27e0),_0x409b2c(0x291),_0x409b2c(0x16aa)],_0x450a3a['telephones']=_0x203c25?_0x39641b()['keyBy'](_0x203c25[_0x409b2c(0x2214)]?_0x203c25[_0x409b2c(0x2214)]:[],'id'):{},_0x450a3a['rpcTelephones']=_0x47a201?_0x39641b()[_0x409b2c(0x2631)](_0x47a201['rows']?_0x47a201[_0x409b2c(0x2214)]:[],'id'):{},_0x450a3a[_0x409b2c(0x44a)]=_0x17f963,_0x450a3a[_0x409b2c(0x2199)]=_0x3b04aa&&_0x3b04aa[_0x409b2c(0x184d)]==0x1?_0x3b04aa[_0x409b2c(0x2214)][0x0]:null,_0x450a3a['crudPermissions']=_0x40e069[_0x409b2c(0x14ea)](_0x450a3a[_0x409b2c(0x2199)]?_0x450a3a[_0x409b2c(0x2199)][_0x409b2c(0x1b1a)]:null),_0x450a3a['query']={'fields':_0x409b2c(0x676),'role':_0x409b2c(0x2922),'sort':_0x409b2c(0x282),'limit':0xa,'page':0x1},_0x450a3a[_0x409b2c(0xf2b)]=_0x218bcb[_0x409b2c(0x291)],_0x450a3a['stateClass']=_0x218bcb[_0x409b2c(0x27e0)],_0x450a3a[_0x409b2c(0x829)]=_0xa7899d,_0x450a3a[_0x409b2c(0x129c)]=_0x11ac5f,_0x450a3a[_0x409b2c(0x191a)]=_0x408996,_0x450a3a[_0x409b2c(0x114a)]=_0x3fa5c9,_0x450a3a[_0x409b2c(0x294c)]=_0x4cc19e,_0x50b2bf['on'](_0x409b2c(0x29bd),_0x450a3a[_0x409b2c(0x294c)]);function _0x11ac5f(){const _0x3411d3=_0x409b2c;_0x39641b()[_0x3411d3(0x1ebd)](_0x450a3a['telephones'],function(_0x477458,_0x5709b1){const _0x5407fb=_0x3411d3;_0x450a3a[_0x5407fb(0x1b0d)][_0x5709b1]&&_0x39641b()[_0x5407fb(0x9c1)](_0x477458,_0x39641b()['pick'](_0x450a3a['rpcTelephones'][_0x5709b1],_0x35e1a3));});}function _0x408996(_0x49b7f9){const _0x9e51d8=_0x409b2c;_0x59dd60[_0x9e51d8(0xe27)](_0x59dd60['alert']()[_0x9e51d8(0x27e1)](!![])[_0x9e51d8(0x1386)](_0x9e51d8(0x1bc1))['htmlContent'](_0x9e51d8(0x26a))['ok']('Ok')['targetEvent'](_0x49b7f9));}function _0x4cc19e(_0xec4e7f){const _0x23de0c=_0x409b2c;_0x450a3a['telephones'][_0xec4e7f['id']]&&_0x39641b()[_0x23de0c(0x9c1)](_0x450a3a['telephones'][_0xec4e7f['id']],_0x39641b()[_0x23de0c(0x169b)](_0xec4e7f,_0x35e1a3));}let _0x3e7e83=!![],_0x2183ff=0x1;_0x1adbe3[_0x409b2c(0x614)]('vm.query.filter',function(_0x5125ef,_0x107ba7){const _0x464752=_0x409b2c;_0x3e7e83?_0x204d6c(function(){_0x3e7e83=![];}):(!_0x107ba7&&(_0x2183ff=_0x450a3a[_0x464752(0xae2)][_0x464752(0x1c7b)]),_0x5125ef!==_0x107ba7&&(_0x450a3a[_0x464752(0xae2)][_0x464752(0x1c7b)]=0x1),!_0x5125ef&&(_0x450a3a['query'][_0x464752(0x1c7b)]=_0x2183ff),_0x450a3a['getTelephones']());});function _0xa7899d(_0x4bdd4a){const _0x82d8ea=_0x409b2c;_0x450a3a['telephones']=_0x4bdd4a?_0x39641b()[_0x82d8ea(0x2631)](_0x4bdd4a[_0x82d8ea(0x2214)]?_0x4bdd4a['rows']:[],'id'):{},_0x11ac5f();}function _0x3fa5c9(){const _0x3668b5=_0x409b2c;_0x450a3a[_0x3668b5(0xae2)][_0x3668b5(0x184b)]=(_0x450a3a[_0x3668b5(0xae2)][_0x3668b5(0x1c7b)]-0x1)*_0x450a3a[_0x3668b5(0xae2)][_0x3668b5(0x236)],_0x40e069[_0x3668b5(0x22b6)](_0x3668b5(0x1c60))?_0x450a3a[_0x3668b5(0x2061)]=_0x4e9344[_0x3668b5(0xebe)][_0x3668b5(0xbf7)](_0x450a3a[_0x3668b5(0xae2)],_0xa7899d)[_0x3668b5(0x1d77)]:(_0x450a3a[_0x3668b5(0xae2)]['id']=_0x450a3a['userProfile']['id'],_0x450a3a[_0x3668b5(0xae2)][_0x3668b5(0x1f74)]=_0x3668b5(0x16d1),_0x450a3a[_0x3668b5(0x2061)]=_0x4e9344[_0x3668b5(0x44a)][_0x3668b5(0x1810)](_0x450a3a[_0x3668b5(0xae2)],_0xa7899d)[_0x3668b5(0x1d77)]);}_0x1adbe3['$on'](_0x409b2c(0x291c),function(){const _0x4a02db=_0x409b2c;_0x50b2bf[_0x4a02db(0xfb8)](_0x4a02db(0x29bd));});}const _0x55d550=_0x1b7a16;;_0xbe6160[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x1363),_0x5537c6(0x1f95),_0x5537c6(0x142b),_0x5537c6(0x1986),_0x5537c6(0x125c),_0x5537c6(0x406),_0x5537c6(0x44a),_0x5537c6(0x2199),'Auth'];function _0xbe6160(_0xf5b57f,_0x499aed,_0x47d2a5,_0x2b94cd,_0x829a6a,_0x45f999,_0xfe6057,_0x2266dd,_0x45ecd5,_0x547118,_0xb3311,_0x28ef03){const _0x2675fe=_0x5537c6,_0x1ac620=this,_0x44fe54=[_0x2675fe(0x291),_0x2675fe(0x71a),_0x2675fe(0x11ee),_0x2675fe(0x17d8),'port',_0x2675fe(0xdbd),_0x2675fe(0x27e0),'status'];_0x1ac620[_0x2675fe(0xe76)]=_0x28ef03[_0x2675fe(0x21e8)](),_0x1ac620[_0x2675fe(0x184d)]=_0x2b94cd[_0x2675fe(0x184d)],_0x1ac620[_0x2675fe(0x1363)]=_0x2b94cd?_0x2b94cd[_0x2675fe(0x2214)]:[],_0x1ac620[_0x2675fe(0x1f95)]=_0x829a6a?_0x829a6a['rows']?_0x829a6a[_0x2675fe(0x2214)]:[]:[],_0x1ac620[_0x2675fe(0xae2)]={'fields':_0x2675fe(0x43c),'active':!![],'sort':_0x2675fe(0x282),'limit':0xa,'page':0x1},_0x1ac620['statusClass']=_0x2266dd[_0x2675fe(0x291)],_0x1ac620[_0x2675fe(0xc74)]=_0x2266dd[_0x2675fe(0x27e0)],_0x1ac620[_0x2675fe(0x44a)]=_0x547118,_0x1ac620[_0x2675fe(0x2199)]=_0xb3311&&_0xb3311['count']==0x1?_0xb3311['rows'][0x0]:null,_0x1ac620[_0x2675fe(0x1b1a)]=_0x28ef03['parseCrudPermissions'](_0x1ac620['userProfileSection']?_0x1ac620[_0x2675fe(0x2199)]['crudPermissions']:null),_0x1ac620['success']=_0x3580ca,_0x1ac620[_0x2675fe(0x129c)]=_0x906947,_0x1ac620['showInfo']=_0x38e587,_0x1ac620[_0x2675fe(0xe77)]=_0x2a709f,_0x1ac620[_0x2675fe(0x2a1)]=_0x59aee1,_0x1ac620[_0x2675fe(0x294c)]=_0xfd4bb6,_0xfe6057['on'](_0x2675fe(0x21b2),_0x1ac620[_0x2675fe(0x294c)]);function _0x906947(){const _0x10d770=_0x2675fe;let _0x1ede8a;for(let _0x1e248d=0x0;_0x1e248d<_0x1ac620[_0x10d770(0x1363)][_0x10d770(0xfd0)];_0x1e248d+=0x1){_0x1ede8a=_0x39641b()[_0x10d770(0x3c2)](_0x1ac620['rpcTrunks'],['id',_0x1ac620[_0x10d770(0x1363)][_0x1e248d]['id']]),_0x1ede8a>=0x0&&_0x39641b()[_0x10d770(0x9c1)](_0x1ac620[_0x10d770(0x1363)][_0x1e248d],_0x39641b()[_0x10d770(0x169b)](_0x1ac620[_0x10d770(0x1f95)][_0x1ede8a],_0x44fe54));}}function _0x38e587(_0x59e6f9){const _0x457045=_0x2675fe;_0x47d2a5[_0x457045(0xe27)](_0x47d2a5[_0x457045(0x494)]()[_0x457045(0x27e1)](!![])[_0x457045(0x1386)](_0x457045(0x1bc1))[_0x457045(0x49e)]('
TODO\x20legend\x20status\x20+\x20state
')['ok']('Ok')[_0x457045(0x728)](_0x59e6f9));}function _0x42e678(_0x4955d8,_0x4b6cf3,_0x1522d8){const _0xf45747=_0x2675fe;_0x4b6cf3>=0x0&&_0x39641b()[_0xf45747(0x9c1)](_0x4955d8[_0x4b6cf3],_0x39641b()['pick'](_0x1522d8,_0x44fe54));}function _0xfd4bb6(_0x11963e){const _0x199f21=_0x2675fe,_0xf00861=_0x39641b()[_0x199f21(0x3c2)](_0x1ac620[_0x199f21(0x1363)],['id',_0x11963e['id']]),_0x51221b=_0x39641b()['findIndex'](_0x1ac620[_0x199f21(0x1f95)],['id',_0x11963e['id']]);_0x42e678(_0x1ac620[_0x199f21(0x1363)],_0xf00861,_0x11963e),_0x42e678(_0x1ac620['rpcTrunks'],_0x51221b,_0x11963e);}let _0x51ffab=!![],_0x51c5f6=0x1;_0xf5b57f[_0x2675fe(0x614)](_0x2675fe(0x957),function(_0x210455,_0x4d03f8){const _0x4c42d5=_0x2675fe;_0x51ffab?_0x499aed(function(){_0x51ffab=![];}):(!_0x4d03f8&&(_0x51c5f6=_0x1ac620[_0x4c42d5(0xae2)][_0x4c42d5(0x1c7b)]),_0x210455!==_0x4d03f8&&(_0x1ac620[_0x4c42d5(0xae2)][_0x4c42d5(0x1c7b)]=0x1),!_0x210455&&(_0x1ac620[_0x4c42d5(0xae2)][_0x4c42d5(0x1c7b)]=_0x51c5f6),_0x1ac620[_0x4c42d5(0xe77)]());});function _0x3580ca(_0x42a5a4){const _0x2993cf=_0x2675fe;_0x1ac620[_0x2993cf(0x184d)]=_0x42a5a4[_0x2993cf(0x184d)],_0x1ac620['trunks']=_0x42a5a4?_0x42a5a4[_0x2993cf(0x2214)]?_0x42a5a4[_0x2993cf(0x2214)]:[]:[],_0x906947();}function _0x2a709f(){const _0x43c98f=_0x2675fe;_0x1ac620[_0x43c98f(0xae2)]['offset']=(_0x1ac620[_0x43c98f(0xae2)][_0x43c98f(0x1c7b)]-0x1)*_0x1ac620[_0x43c98f(0xae2)][_0x43c98f(0x236)],_0x28ef03[_0x43c98f(0x22b6)](_0x43c98f(0x1c60))?_0x1ac620[_0x43c98f(0x2061)]=_0x45f999[_0x43c98f(0x1ae0)]['get'](_0x1ac620[_0x43c98f(0xae2)],_0x3580ca)['$promise']:(_0x1ac620['query']['id']=_0x1ac620[_0x43c98f(0x44a)]['id'],_0x1ac620['query']['section']=_0x43c98f(0x272b),_0x1ac620[_0x43c98f(0x2061)]=_0x45f999[_0x43c98f(0x44a)][_0x43c98f(0x1810)](_0x1ac620['query'],_0x3580ca)['$promise']);}_0xf5b57f[_0x2675fe(0x1d6)](_0x2675fe(0x291c),function(){const _0x5e28cc=_0x2675fe;_0xfe6057[_0x5e28cc(0xfb8)](_0x5e28cc(0x21b2));});function _0x59aee1(_0x2ef4f8,_0x296e34){const _0x177062=_0x2675fe;_0x45ecd5['go'](_0x177062(0xbe6),{'id':_0x296e34['id']});}}const _0x36b9ef=_0xbe6160;;const _0x6f2be1=_0x5074a3['p']+_0x5537c6(0xc86);;const _0x541c54=_0x5074a3['p']+_0x5537c6(0xced);;const _0x52be2a=_0x5074a3['p']+_0x5537c6(0x1313);;const _0x446262=_0x5074a3['p']+'src/js/modules/main/apps/voice/views/realtime/trunks/view.html/view.html';;const _0xf98ac3=_0x5074a3['p']+_0x5537c6(0xaed);;const _0x1c9c34=_0x5074a3['p']+'src/js/modules/main/apps/voice/views/realtime/queue_calls/view.html/view.html';;const _0x3882e7=_0x5074a3['p']+_0x5537c6(0x19a9);;const _0x23febf=_0x5074a3['p']+_0x5537c6(0x1e80);;const _0x17f68e=_0x5074a3['p']+_0x5537c6(0x1a0f);;_0x1fae56['$inject']=['$stateProvider'];function _0x1fae56(_0xe7f7df){const _0x590320=_0x5537c6;_0xe7f7df['state'](_0x590320(0xb19),{'url':_0x590320(0x1625),'views':{'content@app':{'templateUrl':_0x6f2be1,'controller':_0x590320(0x15e6)}},'resolve':{'userProfile':['apiResolver','Auth',function(_0x595ee1,_0x1576a2){const _0x412378=_0x590320;return _0x1576a2[_0x412378(0x22b6)](_0x412378(0x1c60))?null:_0x595ee1[_0x412378(0x19a3)](_0x412378(0x9ae),{'fields':'id,name,crudPermissions','id':_0x1576a2[_0x412378(0x21e8)]()[_0x412378(0x13c1)]});}],'userProfileSection':[_0x590320(0x1e0b),_0x590320(0x1774),function(_0x53e312,_0x5e03de){const _0x584ec8=_0x590320;return _0x5e03de['hasRole'](_0x584ec8(0x1c60))?null:_0x53e312['resolve'](_0x584ec8(0x2182),{'fields':_0x584ec8(0x1f5f),'userProfileId':_0x5e03de[_0x584ec8(0x21e8)]()[_0x584ec8(0x13c1)],'sectionId':0x19b});}]},'authenticate':!![],'permissionId':0x19b})[_0x590320(0x27e0)]('app.voice.realtime.agents',{'url':_0x590320(0xefc),'controller':_0x590320(0xb2d),'templateUrl':_0x541c54,'resolve':{'pauses':[_0x590320(0x1e0b),function(_0x50fada){const _0x5b6860=_0x590320;return _0x50fada['resolve'](_0x5b6860(0xeeb),{'nolimit':!![]});}],'agents':['apiResolver',_0x590320(0x1774),function(_0x493a1c,_0x53753f){const _0x967c35=_0x590320;return _0x53753f['hasRole'](_0x967c35(0x1c60))?_0x493a1c[_0x967c35(0x19a3)]('user@get',{'fields':_0x967c35(0x1599),'role':_0x967c35(0x1eff),'sort':_0x967c35(0x1d14),'nolimit':!![]}):_0x493a1c[_0x967c35(0x19a3)](_0x967c35(0x12da),{'id':_0x53753f[_0x967c35(0x21e8)]()['userProfileId'],'section':_0x967c35(0x2536),'fields':_0x967c35(0x1599),'role':_0x967c35(0x1eff),'sort':_0x967c35(0x1d14),'nolimit':!![]});}],'userProfile':[_0x590320(0x1e0b),'Auth',function(_0x5531a6,_0x50145a){const _0x5d2602=_0x590320;return _0x50145a['hasRole'](_0x5d2602(0x1c60))?null:_0x5531a6['resolve']('userProfile@get',{'fields':_0x5d2602(0x279),'id':_0x50145a[_0x5d2602(0x21e8)]()[_0x5d2602(0x13c1)]});}],'userProfileSection':[_0x590320(0x1e0b),_0x590320(0x1774),function(_0x57d573,_0x539c0b){const _0x46b5e8=_0x590320;return _0x539c0b[_0x46b5e8(0x22b6)](_0x46b5e8(0x1c60))?null:_0x57d573['resolve'](_0x46b5e8(0x2182),{'fields':_0x46b5e8(0x1f5f),'userProfileId':_0x539c0b[_0x46b5e8(0x21e8)]()[_0x46b5e8(0x13c1)],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0x52ac50){const _0x4522c4=_0x590320;return _0x52ac50[_0x4522c4(0x19a3)](_0x4522c4(0x12c0));}]},'authenticate':!![],'permissionId':0x19b})[_0x590320(0x27e0)](_0x590320(0x978),{'url':_0x590320(0x23d3),'controller':'TelephonesVoiceRealtimeController\x20as\x20vm','templateUrl':_0x52be2a,'resolve':{'telephones':[_0x590320(0x1e0b),_0x590320(0x1774),function(_0x2a42d5,_0x41cf8a){const _0x333d48=_0x590320;return _0x41cf8a['hasRole'](_0x333d48(0x1c60))?_0x2a42d5[_0x333d48(0x19a3)](_0x333d48(0x1c86),{'fields':_0x333d48(0x9c4),'role':_0x333d48(0x2922),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x2a42d5[_0x333d48(0x19a3)](_0x333d48(0x12da),{'id':_0x41cf8a[_0x333d48(0x21e8)]()['userProfileId'],'section':_0x333d48(0x16d1),'fields':_0x333d48(0x9c4),'role':_0x333d48(0x2922),'sort':_0x333d48(0x282),'limit':0xa,'offset':0x0});}],'userProfile':[_0x590320(0x1e0b),_0x590320(0x1774),function(_0x3d09c8,_0x1aa873){const _0x373663=_0x590320;return _0x1aa873[_0x373663(0x22b6)]('admin')?null:_0x3d09c8['resolve'](_0x373663(0x9ae),{'fields':_0x373663(0x279),'id':_0x1aa873[_0x373663(0x21e8)]()[_0x373663(0x13c1)]});}],'userProfileSection':[_0x590320(0x1e0b),'Auth',function(_0x361909,_0x15c9db){const _0x52624f=_0x590320;return _0x15c9db['hasRole']('admin')?null:_0x361909[_0x52624f(0x19a3)](_0x52624f(0x2182),{'fields':_0x52624f(0x1f5f),'userProfileId':_0x15c9db[_0x52624f(0x21e8)]()[_0x52624f(0x13c1)],'sectionId':0xcb});}],'rpcTelephones':['apiResolver',function(_0x3d20d6){const _0xc8402d=_0x590320;return _0x3d20d6[_0xc8402d(0x19a3)](_0xc8402d(0x1e93));}]},'authenticate':!![],'permissionId':0x19b})['state'](_0x590320(0x1bb2),{'url':_0x590320(0x1c1a),'controller':_0x590320(0x6b7),'templateUrl':_0x446262,'resolve':{'trunks':['apiResolver',_0x590320(0x1774),function(_0x49f878,_0xbfc907){const _0x263406=_0x590320;return _0xbfc907[_0x263406(0x22b6)](_0x263406(0x1c60))?_0x49f878[_0x263406(0x19a3)](_0x263406(0x99d),{'fields':_0x263406(0x43c),'active':!![],'sort':_0x263406(0x282),'limit':0xa,'offset':0x0}):_0x49f878['resolve'](_0x263406(0x12da),{'id':_0xbfc907[_0x263406(0x21e8)]()[_0x263406(0x13c1)],'section':'Trunks','fields':'id,name','active':!![],'sort':_0x263406(0x282),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x590320(0x1774),function(_0xeed546,_0x5e7953){const _0x493d39=_0x590320;return _0x5e7953[_0x493d39(0x22b6)](_0x493d39(0x1c60))?null:_0xeed546[_0x493d39(0x19a3)](_0x493d39(0x9ae),{'fields':_0x493d39(0x279),'id':_0x5e7953[_0x493d39(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x590320(0x1e0b),_0x590320(0x1774),function(_0x4ff7f7,_0x473198){const _0x5931f0=_0x590320;return _0x473198[_0x5931f0(0x22b6)](_0x5931f0(0x1c60))?null:_0x4ff7f7['resolve']('userProfileSection@get',{'fields':_0x5931f0(0x1f5f),'userProfileId':_0x473198['getCurrentUser']()[_0x5931f0(0x13c1)],'sectionId':0x3f3});}],'rpcTrunks':['apiResolver',function(_0x4f6714){const _0x4f47cd=_0x590320;return _0x4f6714[_0x4f47cd(0x19a3)](_0x4f47cd(0xcdc));}]},'authenticate':!![],'permissionId':0x19b})[_0x590320(0x27e0)](_0x590320(0x17c1),{'url':_0x590320(0x1596),'controller':'QueuesVoiceRealtimeController\x20as\x20vm','templateUrl':_0xf98ac3,'resolve':{'queues':[_0x590320(0x1e0b),_0x590320(0x1774),function(_0x58f700,_0x4bdae5){const _0x211bad=_0x590320;return _0x4bdae5[_0x211bad(0x22b6)](_0x211bad(0x1c60))?_0x58f700[_0x211bad(0x19a3)](_0x211bad(0x1c4d),{'type':_0x211bad(0x26c0),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x58f700['resolve'](_0x211bad(0x12da),{'id':_0x4bdae5['getCurrentUser']()[_0x211bad(0x13c1)],'section':'VoiceQueues','channel':_0x211bad(0x1fd4),'type':'inbound','sort':_0x211bad(0x282),'limit':0xa,'page':0x1});}],'userProfile':[_0x590320(0x1e0b),'Auth',function(_0x143073,_0x5673d5){const _0x5ebfd0=_0x590320;return _0x5673d5[_0x5ebfd0(0x22b6)]('admin')?null:_0x143073['resolve'](_0x5ebfd0(0x9ae),{'fields':_0x5ebfd0(0x279),'id':_0x5673d5[_0x5ebfd0(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x590320(0x1e0b),_0x590320(0x1774),function(_0x414ee7,_0x51b27f){const _0x1c0840=_0x590320;return _0x51b27f[_0x1c0840(0x22b6)](_0x1c0840(0x1c60))?null:_0x414ee7[_0x1c0840(0x19a3)](_0x1c0840(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x51b27f[_0x1c0840(0x21e8)]()[_0x1c0840(0x13c1)],'sectionId':0x191});}],'rpcQueues':['apiResolver',function(_0x372378){const _0x18d34b=_0x590320;return _0x372378[_0x18d34b(0x19a3)]('rpc@getVoiceQueues');}]},'authenticate':!![],'permissionId':0x19b})['state']('app.voice.realtime.queue_calls',{'url':_0x590320(0x30a),'controller':_0x590320(0x1a11),'templateUrl':_0x1c9c34,'resolve':{'agents':['apiResolver',_0x590320(0x1774),function(_0x51a545,_0x144491){const _0x2fcb3d=_0x590320;return _0x144491['hasRole'](_0x2fcb3d(0x1c60))?_0x51a545['resolve'](_0x2fcb3d(0x1c86),{'fields':_0x2fcb3d(0xa40),'role':_0x2fcb3d(0x1eff),'nolimit':!![]}):_0x51a545[_0x2fcb3d(0x19a3)](_0x2fcb3d(0x12da),{'id':_0x144491[_0x2fcb3d(0x21e8)]()[_0x2fcb3d(0x13c1)],'section':_0x2fcb3d(0x2536),'fields':_0x2fcb3d(0xa40),'role':_0x2fcb3d(0x1eff),'nolimit':!![]});}],'queues':[_0x590320(0x1e0b),_0x590320(0x1774),function(_0x52f7a9,_0x811b62){const _0x18a38f=_0x590320;return _0x811b62[_0x18a38f(0x22b6)](_0x18a38f(0x1c60))?_0x52f7a9[_0x18a38f(0x19a3)](_0x18a38f(0x1c4d),{'type':_0x18a38f(0x26c0),'sort':_0x18a38f(0x282),'nolimit':!![]}):_0x52f7a9[_0x18a38f(0x19a3)](_0x18a38f(0x12da),{'id':_0x811b62[_0x18a38f(0x21e8)]()[_0x18a38f(0x13c1)],'section':_0x18a38f(0x2382),'channel':_0x18a38f(0x1fd4),'type':'inbound','sort':_0x18a38f(0x282),'nolimit':!![]});}],'userProfile':[_0x590320(0x1e0b),_0x590320(0x1774),function(_0xf2ae5e,_0x588579){const _0x2a681e=_0x590320;return _0x588579[_0x2a681e(0x22b6)](_0x2a681e(0x1c60))?null:_0xf2ae5e[_0x2a681e(0x19a3)]('userProfile@get',{'fields':_0x2a681e(0x279),'id':_0x588579['getCurrentUser']()[_0x2a681e(0x13c1)]});}],'userProfileSection':[_0x590320(0x1e0b),'Auth',function(_0x54ee2b,_0xf027ff){const _0x24289b=_0x590320;return _0xf027ff[_0x24289b(0x22b6)](_0x24289b(0x1c60))?null:_0x54ee2b[_0x24289b(0x19a3)](_0x24289b(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xf027ff[_0x24289b(0x21e8)]()[_0x24289b(0x13c1)],'sectionId':0x191});}],'rpcVoiceQueuesChannels':[_0x590320(0x1e0b),function(_0x4016f0){const _0x48b51b=_0x590320;return _0x4016f0[_0x48b51b(0x19a3)](_0x48b51b(0xd70));}]},'authenticate':!![],'permissionId':0x19b})['state']('app.voice.realtime.abandonedcalls',{'url':_0x590320(0x42a),'controller':_0x590320(0xe84),'templateUrl':_0x3882e7,'resolve':{'agents':[_0x590320(0x1e0b),_0x590320(0x1774),function(_0x32ff61,_0x31526c){const _0x32bb1c=_0x590320;return _0x31526c['hasRole'](_0x32bb1c(0x1c60))?_0x32ff61[_0x32bb1c(0x19a3)](_0x32bb1c(0x1c86),{'fields':_0x32bb1c(0xa40),'role':_0x32bb1c(0x1eff),'nolimit':!![]}):_0x32ff61[_0x32bb1c(0x19a3)](_0x32bb1c(0x12da),{'id':_0x31526c[_0x32bb1c(0x21e8)]()['userProfileId'],'section':_0x32bb1c(0x2536),'fields':_0x32bb1c(0xa40),'role':_0x32bb1c(0x1eff),'nolimit':!![]});}],'queues':[_0x590320(0x1e0b),_0x590320(0x1774),function(_0x5ca21f,_0x573d8a){const _0x2c5508=_0x590320;return _0x573d8a[_0x2c5508(0x22b6)](_0x2c5508(0x1c60))?_0x5ca21f[_0x2c5508(0x19a3)](_0x2c5508(0x1c4d),{'type':_0x2c5508(0x26c0),'sort':_0x2c5508(0x282),'nolimit':!![]}):_0x5ca21f['resolve'](_0x2c5508(0x12da),{'id':_0x573d8a['getCurrentUser']()[_0x2c5508(0x13c1)],'section':'VoiceQueues','channel':_0x2c5508(0x1fd4),'type':_0x2c5508(0x26c0),'sort':_0x2c5508(0x282),'nolimit':!![]});}],'dispositions':[_0x590320(0x1e0b),_0x590320(0x1774),function(_0x23e15a,_0x1690ac){const _0x797a5c=_0x590320;return _0x1690ac[_0x797a5c(0x22b6)]('admin')?_0x23e15a[_0x797a5c(0x19a3)](_0x797a5c(0x1c6f),{'fields':'createdAt,updatedAt,id,name,level,ParentId','sort':_0x797a5c(0x282),'MailAccountId':_0x797a5c(0xd38),'FaxAccountId':_0x797a5c(0xd38),'SmsAccountId':_0x797a5c(0xd38),'WhatsappAccountId':_0x797a5c(0xd38),'OpenchannelAccountId':'null','ChatWebsiteId':'null','ListId':'null','nolimit':!![]}):_0x23e15a[_0x797a5c(0x19a3)](_0x797a5c(0x12da),{'id':_0x1690ac[_0x797a5c(0x21e8)]()[_0x797a5c(0x13c1)],'section':_0x797a5c(0x5d1),'fields':_0x797a5c(0x278),'sort':_0x797a5c(0x282),'MailAccountId':_0x797a5c(0xd38),'FaxAccountId':_0x797a5c(0xd38),'SmsAccountId':'null','WhatsappAccountId':'null','OpenchannelAccountId':_0x797a5c(0xd38),'ChatWebsiteId':'null','ListId':'null','nolimit':!![]});}],'userProfile':[_0x590320(0x1e0b),'Auth',function(_0x52be76,_0x43a3ed){const _0x31baba=_0x590320;return _0x43a3ed[_0x31baba(0x22b6)]('admin')?null:_0x52be76['resolve'](_0x31baba(0x9ae),{'fields':_0x31baba(0x279),'id':_0x43a3ed['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x590320(0x1e0b),_0x590320(0x1774),function(_0x5ccf02,_0x5bf6f7){const _0x1a062c=_0x590320;return _0x5bf6f7[_0x1a062c(0x22b6)](_0x1a062c(0x1c60))?null:_0x5ccf02[_0x1a062c(0x19a3)]('userProfileSection@get',{'fields':_0x1a062c(0x1f5f),'userProfileId':_0x5bf6f7['getCurrentUser']()[_0x1a062c(0x13c1)],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x19b})[_0x590320(0x27e0)]('app.voice.realtime.queue_params',{'url':'/queue_params','controller':_0x590320(0x1cc1),'templateUrl':_0x23febf,'resolve':{'queues':[_0x590320(0x1e0b),'Auth',function(_0x4741bd,_0x1b05ce){const _0x40c49b=_0x590320;return _0x1b05ce[_0x40c49b(0x22b6)](_0x40c49b(0x1c60))?_0x4741bd[_0x40c49b(0x19a3)](_0x40c49b(0x1c4d),{'type':_0x40c49b(0x26c0),'fields':_0x40c49b(0x43c),'sort':_0x40c49b(0x282),'limit':0xa,'offset':0x0}):_0x4741bd[_0x40c49b(0x19a3)](_0x40c49b(0x12da),{'id':_0x1b05ce['getCurrentUser']()[_0x40c49b(0x13c1)],'section':_0x40c49b(0x2382),'channel':_0x40c49b(0x1fd4),'type':_0x40c49b(0x26c0),'sort':_0x40c49b(0x282),'nolimit':!![]});}],'userProfile':[_0x590320(0x1e0b),_0x590320(0x1774),function(_0x38c44d,_0x29dc18){const _0x176b95=_0x590320;return _0x29dc18['hasRole'](_0x176b95(0x1c60))?null:_0x38c44d[_0x176b95(0x19a3)]('userProfile@get',{'fields':_0x176b95(0x279),'id':_0x29dc18['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x590320(0x1e0b),_0x590320(0x1774),function(_0x26c433,_0x1c71c9){const _0x112d4b=_0x590320;return _0x1c71c9[_0x112d4b(0x22b6)](_0x112d4b(0x1c60))?null:_0x26c433[_0x112d4b(0x19a3)](_0x112d4b(0x2182),{'fields':_0x112d4b(0x1f5f),'userProfileId':_0x1c71c9[_0x112d4b(0x21e8)]()[_0x112d4b(0x13c1)],'sectionId':0x191});}],'rpcQueues':[_0x590320(0x1e0b),function(_0x2181d2){const _0x82305e=_0x590320;return _0x2181d2[_0x82305e(0x19a3)](_0x82305e(0xe6d));}]},'authenticate':!![],'permissionId':0x19b})['state'](_0x590320(0xd7b),{'url':_0x590320(0x23e6),'controller':_0x590320(0x1255),'templateUrl':_0x17f68e,'resolve':{'rpcCalls':['apiResolver',function(_0xf957f1){const _0x16ff01=_0x590320;return _0xf957f1[_0x16ff01(0x19a3)]('rpc@getOutboundChannels');}]},'authenticate':!![],'permissionId':0x19b});}angular[_0x5537c6(0x9ab)](_0x5537c6(0xb19),[])[_0x5537c6(0xa60)](_0x1fae56)[_0x5537c6(0x6e5)]('AbandonedCallsVoiceRealtimeController',_0x13b175)[_0x5537c6(0x6e5)](_0x5537c6(0x1def),_0x29e71f)[_0x5537c6(0x6e5)]('OutboundCallsVoiceRealtimeController',_0x28fa07)[_0x5537c6(0x6e5)]('QueueCallsVoiceRealtimeController',_0x206a91)[_0x5537c6(0x6e5)](_0x5537c6(0x322),_0x38780f)[_0x5537c6(0x6e5)]('QueuesVoiceRealtimeController',_0x5beaae)[_0x5537c6(0x234a)](_0x5537c6(0x125c),_0x485d73)[_0x5537c6(0x6e5)](_0x5537c6(0x472),_0x100f55)[_0x5537c6(0x6e5)](_0x5537c6(0x1388),_0x55d550)[_0x5537c6(0x6e5)](_0x5537c6(0x138c),_0x36b9ef);;const _0x303926=_0x5074a3['p']+_0x5537c6(0x2769);;_0x5a6d4c[_0x5537c6(0x15b6)]=['$scope','$window',_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x1a27),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),'msUtils',_0x5537c6(0x9bf),'Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x5a6d4c(_0x57494e,_0x40d453,_0x16fb8a,_0x5d7332,_0x442ca5,_0x49f078,_0x69ba1e,_0x25a358,_0x357c00,_0x330dcc,_0x1ba326,_0x343afa,_0x15f33f,_0x184211,_0x3af9ac,_0x31883e,_0x57ced5){const _0x29b044=_0x5537c6,_0xdb8e33=this;_0xdb8e33['license']=_0x31883e,_0xdb8e33['setting']=_0x57ced5,_0xdb8e33['currentUser']=_0x3af9ac[_0x29b044(0x21e8)](),_0xdb8e33[_0x29b044(0x1a27)]=_0x357c00||{'count':0x0,'rows':[]},_0xdb8e33[_0x29b044(0x44a)]=_0x330dcc,_0xdb8e33[_0x29b044(0x2199)]=_0x1ba326&&_0x1ba326[_0x29b044(0x184d)]==0x1?_0x1ba326[_0x29b044(0x2214)][0x0]:null,_0xdb8e33[_0x29b044(0x1b1a)]=_0x3af9ac[_0x29b044(0x14ea)](_0xdb8e33[_0x29b044(0x2199)]?_0xdb8e33['userProfileSection'][_0x29b044(0x1b1a)]:null),_0xdb8e33[_0x29b044(0xc83)]=_0x29b044(0x1a27),_0xdb8e33[_0x29b044(0x1d20)]='',_0xdb8e33['listOrderAsc']=null,_0xdb8e33[_0x29b044(0x2113)]=[],_0xdb8e33['query']={'fields':_0x29b044(0x2498),'sort':_0x29b044(0x282),'limit':0xa,'page':0x1},_0xdb8e33[_0x29b044(0x1ce9)]=_0x39641b()['keyBy']([{'option':_0x29b044(0x18a6),'value':_0x29b044(0x132f)},{'option':'B:\x20Instead\x20of\x20whispering\x20on\x20a\x20single\x20channel\x20barge\x20in\x20on\x20both\x20channels\x20involved\x20in\x20the\x20call.','value':'\x27B\x27'},{'option':_0x29b044(0x13e3),'value':_0x29b044(0xc4f)},{'option':_0x29b044(0x14a0),'value':_0x29b044(0x24a9)},{'option':_0x29b044(0x8b8),'value':_0x29b044(0x1f83)},{'option':'s:\x20Skip\x20the\x20playback\x20of\x20the\x20channel\x20type\x20(i.e.\x20SIP,\x20IAX,\x20etc)\x20when\x20speaking\x20the\x20selected\x20channel\x20name.','value':'\x27s\x27'},{'option':'S:\x20Stop\x20when\x20no\x20more\x20channels\x20are\x20left\x20to\x20spy\x20on.','value':_0x29b044(0x424)},{'option':_0x29b044(0xd69),'value':_0x29b044(0x1d8d)},{'option':_0x29b044(0x2325),'value':_0x29b044(0x1c8a)}],function(_0x4e4b67){const _0x5c0d5c=_0x29b044;return _0x39641b()[_0x5c0d5c(0x288f)](_0x4e4b67['value'],new RegExp('\x27','g'),'');}),_0xdb8e33[_0x29b044(0xa4d)]=_0x39641b()['keyBy']([{'option':_0x29b044(0xcab),'value':'\x27wav\x27'},{'option':_0x29b044(0x2331),'value':_0x29b044(0x24ce)},{'option':_0x29b044(0x1f63),'value':'\x27WAV\x27'}],function(_0x13dafc){const _0x40ed7d=_0x29b044;return _0x39641b()[_0x40ed7d(0x288f)](_0x13dafc[_0x40ed7d(0x327)],new RegExp('\x27','g'),'');}),_0xdb8e33[_0x29b044(0xc93)]=_0x1f979,_0xdb8e33[_0x29b044(0x27fe)]=_0x12a06b,_0xdb8e33[_0x29b044(0x829)]=_0x158ffc,_0xdb8e33['getChanSpies']=_0x3091d0,_0xdb8e33[_0x29b044(0xb41)]=_0xa937d1,_0xdb8e33[_0x29b044(0x13d4)]=_0x89aa04,_0xdb8e33[_0x29b044(0x3f9)]=_0x1373e6,_0xdb8e33[_0x29b044(0x1617)]=_0x4e796,_0xdb8e33[_0x29b044(0x16e3)]=_0x2e6f61,_0xdb8e33[_0x29b044(0x20e0)]=_0x372e76;function _0x1f979(_0x504bab,_0x49f987){const _0x3ca459=_0x29b044;_0x442ca5[_0x3ca459(0xe27)]({'controller':_0x3ca459(0x8f9),'controllerAs':'vm','templateUrl':_0x303926,'parent':angular['element'](_0x49f078['body']),'targetEvent':_0x49f987,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x504bab,'chanSpies':_0xdb8e33[_0x3ca459(0x1a27)][_0x3ca459(0x2214)],'license':_0xdb8e33[_0x3ca459(0x8a5)],'setting':null,'crudPermissions':_0xdb8e33['crudPermissions']}});}function _0x12a06b(_0x3d88cf,_0x2f4b2b){const _0x2e82a6=_0x29b044,_0x5f56e9=_0x442ca5[_0x2e82a6(0x1551)]()[_0x2e82a6(0x1386)](_0x2e82a6(0x140b)+_0x39641b()[_0x2e82a6(0xa75)](_0x2e82a6(0x1948))+'?')[_0x2e82a6(0x49e)](_0x2e82a6(0x204d)+(_0x3d88cf['name']||'chanSpy')+_0x2e82a6(0x1200)+_0x2e82a6(0x1b6))[_0x2e82a6(0x15ad)](_0x2e82a6(0x12b8))['targetEvent'](_0x2f4b2b)['ok']('OK')[_0x2e82a6(0x696)](_0x2e82a6(0x24ba));_0x442ca5[_0x2e82a6(0xe27)](_0x5f56e9)[_0x2e82a6(0x1cb0)](function(){_0x89aa04(_0x3d88cf);},function(){const _0x17d9b2=_0x2e82a6;console[_0x17d9b2(0x1b4f)](_0x17d9b2(0x24ba));});}let _0x25216b=!![],_0x2650cb=0x1;_0x57494e[_0x29b044(0x614)]('vm.query.filter',function(_0x3308cf,_0x3ba7cf){const _0x705c49=_0x29b044;_0x25216b?_0x69ba1e(function(){_0x25216b=![];}):(!_0x3ba7cf&&(_0x2650cb=_0xdb8e33[_0x705c49(0xae2)][_0x705c49(0x1c7b)]),_0x3308cf!==_0x3ba7cf&&(_0xdb8e33['query'][_0x705c49(0x1c7b)]=0x1),!_0x3308cf&&(_0xdb8e33[_0x705c49(0xae2)][_0x705c49(0x1c7b)]=_0x2650cb),_0xdb8e33['getChanSpies']());});function _0x158ffc(_0x19f3d9){const _0x595437=_0x29b044;_0xdb8e33[_0x595437(0x1a27)]=_0x19f3d9||{'count':0x0,'rows':[]};}function _0x3091d0(){const _0x14794f=_0x29b044;_0xdb8e33['query'][_0x14794f(0x184b)]=(_0xdb8e33['query'][_0x14794f(0x1c7b)]-0x1)*_0xdb8e33['query'][_0x14794f(0x236)],_0x3af9ac[_0x14794f(0x22b6)]('admin')?_0xdb8e33[_0x14794f(0x2061)]=_0x343afa[_0x14794f(0x2668)]['get'](_0xdb8e33[_0x14794f(0xae2)],_0x158ffc)[_0x14794f(0x1d77)]:(_0xdb8e33[_0x14794f(0xae2)]['id']=_0xdb8e33['userProfile']['id'],_0xdb8e33['query']['section']=_0x14794f(0x10c9),_0xdb8e33['promise']=_0x343afa[_0x14794f(0x44a)][_0x14794f(0x1810)](_0xdb8e33[_0x14794f(0xae2)],_0x158ffc)[_0x14794f(0x1d77)]);}function _0xa937d1(_0x12dd81,_0x4e1b57){const _0x4be1ff=_0x29b044;_0x442ca5[_0x4be1ff(0xe27)]({'controller':_0x4be1ff(0x8f9),'controllerAs':'vm','templateUrl':_0x303926,'parent':angular['element'](_0x49f078[_0x4be1ff(0x1ed9)]),'targetEvent':_0x12dd81,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x4e1b57,'chanSpies':_0xdb8e33[_0x4be1ff(0x1a27)][_0x4be1ff(0x2214)],'license':_0xdb8e33['license'],'setting':_0xdb8e33['setting'],'crudPermissions':_0xdb8e33['crudPermissions']}});}function _0x89aa04(_0x14c92f){const _0x2412e1=_0x29b044;_0x343afa[_0x2412e1(0x2668)][_0x2412e1(0x111d)]({'id':_0x14c92f['id']})['$promise']['then'](function(){const _0x253ddd=_0x2412e1;_0x39641b()[_0x253ddd(0x152a)](_0xdb8e33['chanSpies'][_0x253ddd(0x2214)],{'id':_0x14c92f['id']}),_0xdb8e33[_0x253ddd(0x1a27)][_0x253ddd(0x184d)]-=0x1,!_0xdb8e33[_0x253ddd(0x1a27)][_0x253ddd(0x2214)]['length']&&_0xdb8e33[_0x253ddd(0xab0)](),_0x184211[_0x253ddd(0x829)]({'title':_0x39641b()[_0x253ddd(0xa75)]('chanSpy')+'\x20deleted!','msg':_0x14c92f[_0x253ddd(0x16b6)]?_0x14c92f[_0x253ddd(0x16b6)]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0xe44cec){const _0x552002=_0x2412e1;if(_0xe44cec['data']&&_0xe44cec[_0x552002(0x25c)][_0x552002(0x1a7c)]&&_0xe44cec[_0x552002(0x25c)][_0x552002(0x1a7c)][_0x552002(0xfd0)]){_0xdb8e33[_0x552002(0x1a7c)]=_0xe44cec['data'][_0x552002(0x1a7c)]||[{'message':_0xe44cec[_0x552002(0x147f)](),'type':'SYSTEM:DELETEvoiceChanSpy'}];for(let _0x166fe4=0x0;_0x166fe4<_0xe44cec[_0x552002(0x25c)][_0x552002(0x1a7c)][_0x552002(0xfd0)];_0x166fe4++){_0x184211[_0x552002(0x218e)]({'title':_0xe44cec[_0x552002(0x25c)]['errors'][_0x166fe4]['type'],'msg':_0xe44cec['data']['errors'][_0x166fe4][_0x552002(0x155e)]});}}else _0x184211[_0x552002(0x218e)]({'title':_0xe44cec[_0x552002(0x291)]?_0x552002(0xeb9)+_0xe44cec[_0x552002(0x291)]+_0x552002(0x1657)+_0xe44cec[_0x552002(0xc22)]:'SYSTEM:DELETEvoiceChanSpy','msg':_0xe44cec[_0x552002(0x25c)]?JSON[_0x552002(0x2701)](_0xe44cec[_0x552002(0x25c)][_0x552002(0x155e)]):_0xe44cec[_0x552002(0x155e)]||_0xe44cec[_0x552002(0x147f)]()});});}function _0x1373e6(){const _0x3e97e3=_0x29b044,_0x464123=angular[_0x3e97e3(0x17fe)](_0xdb8e33['selectedChanSpies']);return _0xdb8e33[_0x3e97e3(0x2113)]=[],_0x464123;}function _0x4e796(_0xa2951b){const _0x34251e=_0x29b044,_0x5ac96a=_0x442ca5[_0x34251e(0x1551)]()[_0x34251e(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chanSpies?')['htmlContent'](_0x34251e(0x204d)+_0xdb8e33[_0x34251e(0x2113)][_0x34251e(0xfd0)]+'\x20selected
'+'\x20will\x20be\x20deleted.')[_0x34251e(0x15ad)](_0x34251e(0xcf3))[_0x34251e(0x728)](_0xa2951b)['ok']('OK')['cancel'](_0x34251e(0x24ba));_0x442ca5[_0x34251e(0xe27)](_0x5ac96a)[_0x34251e(0x1cb0)](function(){const _0x1a2c75=_0x34251e;_0xdb8e33[_0x1a2c75(0x2113)][_0x1a2c75(0xf90)](function(_0x51efa7){_0x89aa04(_0x51efa7);}),_0xdb8e33['selectedChanSpies']=[];});}function _0x2e6f61(){const _0x5cf40f=_0x29b044;_0xdb8e33[_0x5cf40f(0x2113)]=[];}function _0x372e76(){const _0x5597c0=_0x29b044;_0xdb8e33['selectedChanSpies']=_0xdb8e33[_0x5597c0(0x1a27)]['rows'];}}const _0x18d2c6=_0x5a6d4c;;_0x1bc22b[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state',_0x5537c6(0x21c8),'$mdDialog','$q',_0x5537c6(0x1ae),'toasty','chanSpies',_0x5537c6(0x1948),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x1bc22b(_0x5d8b2e,_0x1cf7f2,_0x2e184a,_0x28fad4,_0x217f48,_0x3ba481,_0x2a2794,_0x378a56,_0x51bd8f,_0x2a9e2e,_0x500388,_0x5b365a,_0x105f24,_0xe11340){const _0x140898=_0x5537c6,_0x287916=this;_0x287916[_0x140898(0xe76)]=_0x500388['getCurrentUser'](),_0x287916[_0x140898(0x1a7c)]=[],_0x287916['setting']=_0x105f24,_0x287916[_0x140898(0x8a5)]=_0x5b365a,_0x287916[_0x140898(0x1b1a)]=_0xe11340,_0x287916[_0x140898(0xf4c)]={},_0x287916[_0x140898(0x1b0c)]=_0x287916['setting']&&_0x287916[_0x140898(0x9ca)][_0x140898(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x287916[_0x140898(0x1386)]='VOICE.EDIT_CHANSPY',_0x287916[_0x140898(0x1948)]=angular[_0x140898(0x17fe)](_0x51bd8f),_0x287916['chanSpies']=_0x378a56,_0x287916['newchanSpy']=![];!_0x287916[_0x140898(0x1948)]&&(_0x287916[_0x140898(0x1948)]={'recordingFormat':_0x140898(0xcab)},_0x287916[_0x140898(0x1386)]='VOICE.NEW_CHANSPY',_0x287916[_0x140898(0x1bfd)]=!![]);_0x287916['addNewchanSpy']=_0xafd2e9,_0x287916[_0x140898(0x2913)]=_0x3e6865,_0x287916['deletechanSpy']=_0x35046f,_0x287916['getDateFromString']=_0x5eda4b,_0x287916[_0x140898(0xda0)]=_0xc253c1;function _0xafd2e9(){const _0x1fbd52=_0x140898;_0x287916[_0x1fbd52(0x1a7c)]=[],_0x2a9e2e[_0x1fbd52(0x2668)][_0x1fbd52(0x1c3f)](_0x287916[_0x1fbd52(0x1948)])[_0x1fbd52(0x1d77)][_0x1fbd52(0x1cb0)](function(_0xbb7bd6){const _0x5f041e=_0x1fbd52;_0x287916['chanSpies']['unshift'](_0xbb7bd6[_0x5f041e(0x19b2)]()),_0x2a2794[_0x5f041e(0x829)]({'title':_0x5f041e(0x7e7),'msg':_0x287916[_0x5f041e(0x1948)][_0x5f041e(0x16b6)]?_0x287916['chanSpy'][_0x5f041e(0x16b6)]+'\x20has\x20been\x20created!':''}),_0xc253c1(_0xbb7bd6);})['catch'](function(_0x5bb15d){const _0x51df1b=_0x1fbd52;if(_0x5bb15d[_0x51df1b(0x25c)]&&_0x5bb15d[_0x51df1b(0x25c)]['errors']&&_0x5bb15d['data'][_0x51df1b(0x1a7c)][_0x51df1b(0xfd0)]){_0x287916['errors']=_0x5bb15d[_0x51df1b(0x25c)][_0x51df1b(0x1a7c)]||[{'message':_0x5bb15d['toString'](),'type':_0x51df1b(0x26c6)}];for(let _0x17d535=0x0;_0x17d535<_0x5bb15d[_0x51df1b(0x25c)][_0x51df1b(0x1a7c)][_0x51df1b(0xfd0)];_0x17d535+=0x1){_0x2a2794[_0x51df1b(0x218e)]({'title':_0x5bb15d[_0x51df1b(0x25c)][_0x51df1b(0x1a7c)][_0x17d535][_0x51df1b(0x66a)],'msg':_0x5bb15d['data'][_0x51df1b(0x1a7c)][_0x17d535]['message']});}}else _0x2a2794['error']({'title':_0x5bb15d['status']?_0x51df1b(0xeb9)+_0x5bb15d[_0x51df1b(0x291)]+_0x51df1b(0x1657)+_0x5bb15d[_0x51df1b(0xc22)]:_0x51df1b(0x26c6),'msg':_0x5bb15d['data']?JSON[_0x51df1b(0x2701)](_0x5bb15d[_0x51df1b(0x25c)][_0x51df1b(0x155e)]):_0x5bb15d[_0x51df1b(0x147f)]()});});}function _0x3e6865(){const _0x4a407b=_0x140898;_0x287916[_0x4a407b(0x1a7c)]=[],_0x2a9e2e[_0x4a407b(0x2668)][_0x4a407b(0x687)]({'id':_0x287916[_0x4a407b(0x1948)]['id']},_0x287916[_0x4a407b(0x1948)])[_0x4a407b(0x1d77)][_0x4a407b(0x1cb0)](function(_0x4ca4da){const _0xa87335=_0x4a407b,_0x181262=_0x39641b()['find'](_0x287916['chanSpies'],{'id':_0x4ca4da['id']});_0x181262&&_0x39641b()['merge'](_0x181262,_0x39641b()['pick'](_0x4ca4da[_0xa87335(0x19b2)](),_0x39641b()[_0xa87335(0x1be5)](_0x181262))),_0x2a2794[_0xa87335(0x829)]({'title':_0xa87335(0x442),'msg':_0x287916[_0xa87335(0x1948)]['name']?_0x287916[_0xa87335(0x1948)][_0xa87335(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0xc253c1(_0x4ca4da);})[_0x4a407b(0x1c4)](function(_0x486a68){const _0x1119c9=_0x4a407b;if(_0x486a68[_0x1119c9(0x25c)]&&_0x486a68[_0x1119c9(0x25c)][_0x1119c9(0x1a7c)]&&_0x486a68[_0x1119c9(0x25c)][_0x1119c9(0x1a7c)][_0x1119c9(0xfd0)]){_0x287916[_0x1119c9(0x1a7c)]=_0x486a68[_0x1119c9(0x25c)][_0x1119c9(0x1a7c)]||[{'message':_0x486a68[_0x1119c9(0x147f)](),'type':_0x1119c9(0x3c6)}];for(let _0x7333b=0x0;_0x7333b<_0x486a68[_0x1119c9(0x25c)]['errors']['length'];_0x7333b++){_0x2a2794[_0x1119c9(0x218e)]({'title':_0x486a68[_0x1119c9(0x25c)][_0x1119c9(0x1a7c)][_0x7333b]['type'],'msg':_0x486a68[_0x1119c9(0x25c)][_0x1119c9(0x1a7c)][_0x7333b][_0x1119c9(0x155e)]});}}else _0x2a2794[_0x1119c9(0x218e)]({'title':_0x486a68[_0x1119c9(0x291)]?_0x1119c9(0xeb9)+_0x486a68[_0x1119c9(0x291)]+_0x1119c9(0x1657)+_0x486a68[_0x1119c9(0xc22)]:_0x1119c9(0x3c6),'msg':_0x486a68[_0x1119c9(0x25c)]?JSON[_0x1119c9(0x2701)](_0x486a68[_0x1119c9(0x25c)]['message']):_0x486a68[_0x1119c9(0x147f)]()});});}function _0x35046f(_0x1f2b59){const _0x30127e=_0x140898;_0x287916[_0x30127e(0x1a7c)]=[];const _0x34f954=_0x28fad4['confirm']()[_0x30127e(0x1386)](_0x30127e(0x1a2e))[_0x30127e(0x862)](_0x30127e(0x21f4))[_0x30127e(0x15ad)](_0x30127e(0x205a))['ok'](_0x30127e(0x2594))[_0x30127e(0x696)](_0x30127e(0xde1))['targetEvent'](_0x1f2b59);_0x28fad4[_0x30127e(0xe27)](_0x34f954)['then'](function(){const _0x13c5a2=_0x30127e;_0x2a9e2e['voiceChanSpy'][_0x13c5a2(0x111d)]({'id':_0x287916['chanSpy']['id']})['$promise'][_0x13c5a2(0x1cb0)](function(){const _0x29a8bf=_0x13c5a2;_0x39641b()[_0x29a8bf(0x152a)](_0x287916[_0x29a8bf(0x1a27)],{'id':_0x287916[_0x29a8bf(0x1948)]['id']}),_0x2a2794['success']({'title':'chanSpy\x20properly\x20deleted!','msg':(_0x287916[_0x29a8bf(0x1948)][_0x29a8bf(0x16b6)]||'chanSpy')+_0x29a8bf(0x3f5)}),_0xc253c1(_0x287916[_0x29a8bf(0x1948)]);})['catch'](function(_0x32ea13){const _0x378b8c=_0x13c5a2;if(_0x32ea13[_0x378b8c(0x25c)]&&_0x32ea13['data'][_0x378b8c(0x1a7c)]&&_0x32ea13[_0x378b8c(0x25c)][_0x378b8c(0x1a7c)][_0x378b8c(0xfd0)]){_0x287916[_0x378b8c(0x1a7c)]=_0x32ea13[_0x378b8c(0x25c)][_0x378b8c(0x1a7c)]||[{'message':_0x32ea13[_0x378b8c(0x147f)](),'type':_0x378b8c(0x19f7)}];for(let _0x21c103=0x0;_0x21c103<_0x32ea13[_0x378b8c(0x25c)][_0x378b8c(0x1a7c)][_0x378b8c(0xfd0)];_0x21c103++){_0x2a2794[_0x378b8c(0x218e)]({'title':_0x32ea13[_0x378b8c(0x25c)]['errors'][_0x21c103]['type'],'msg':_0x32ea13[_0x378b8c(0x25c)][_0x378b8c(0x1a7c)][_0x21c103]['message']});}}else _0x2a2794[_0x378b8c(0x218e)]({'title':_0x32ea13['status']?_0x378b8c(0xeb9)+_0x32ea13[_0x378b8c(0x291)]+_0x378b8c(0x1657)+_0x32ea13[_0x378b8c(0xc22)]:_0x378b8c(0x19f7),'msg':_0x32ea13[_0x378b8c(0x25c)]?JSON['stringify'](_0x32ea13[_0x378b8c(0x25c)][_0x378b8c(0x155e)]):_0x32ea13[_0x378b8c(0x155e)]||_0x32ea13[_0x378b8c(0x147f)]()});});},function(){});}function _0x5eda4b(_0x40e13a){return _0x40e13a===null?undefined:new Date(_0x40e13a);}function _0xc253c1(_0x5f3610){_0x28fad4['hide'](_0x5f3610);}}const _0x4e46d6=_0x1bc22b;;const _0x59d340=_0x5074a3['p']+'src/js/modules/main/apps/voice/views/contexts/create/dialog.html/dialog.html';;_0x56d0fc[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$window',_0x5537c6(0x406),_0x5537c6(0x417),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x14f6),'userProfile',_0x5537c6(0x2199),_0x5537c6(0x142b),'msUtils','toasty',_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting'];function _0x56d0fc(_0x53f674,_0x521029,_0x4c0c85,_0x5bc9be,_0x22260d,_0x9fabfe,_0x20cf0f,_0x52436d,_0x21e229,_0x1f49b8,_0x2aaf1e,_0x91f7f8,_0x599a03,_0x5d4e75,_0x39fd1e,_0x4bf5ef,_0x12ee61){const _0x2438eb=_0x5537c6,_0xdc2b2d=this;_0xdc2b2d['license']=_0x4bf5ef,_0xdc2b2d['setting']=_0x12ee61,_0xdc2b2d[_0x2438eb(0xe76)]=_0x39fd1e[_0x2438eb(0x21e8)](),_0xdc2b2d['contexts']=_0x21e229||{'count':0x0,'rows':[]},_0xdc2b2d[_0x2438eb(0x44a)]=_0x1f49b8,_0xdc2b2d[_0x2438eb(0x2199)]=_0x2aaf1e&&_0x2aaf1e[_0x2438eb(0x184d)]==0x1?_0x2aaf1e[_0x2438eb(0x2214)][0x0]:null,_0xdc2b2d[_0x2438eb(0x1b1a)]=_0x39fd1e[_0x2438eb(0x14ea)](_0xdc2b2d[_0x2438eb(0x2199)]?_0xdc2b2d[_0x2438eb(0x2199)][_0x2438eb(0x1b1a)]:null),_0xdc2b2d[_0x2438eb(0xc83)]='contexts',_0xdc2b2d['listOrder']='',_0xdc2b2d[_0x2438eb(0x1cdf)]=null,_0xdc2b2d[_0x2438eb(0x2684)]=[],_0xdc2b2d[_0x2438eb(0xae2)]={'fields':_0x2438eb(0x12e8),'sort':'-updatedAt','defaultEntry':_0x2438eb(0xdec),'limit':0xa,'page':0x1},_0xdc2b2d['editdialog']=_0x5e5b44,_0xdc2b2d['deleteconfirm']=_0x32c5bd,_0xdc2b2d[_0x2438eb(0x829)]=_0x307a01,_0xdc2b2d['getContexts']=_0x244b3e,_0xdc2b2d[_0x2438eb(0x587)]=_0x13369a,_0xdc2b2d[_0x2438eb(0x1c01)]=_0x2927ab,_0xdc2b2d[_0x2438eb(0x231d)]=_0x125316,_0xdc2b2d[_0x2438eb(0xd27)]=_0x5babdb,_0xdc2b2d['deselectContexts']=_0x3f531e,_0xdc2b2d['selectAllContexts']=_0x545584;function _0x5e5b44(_0xab445f,_0x1a5905){const _0x2dd37c=_0x2438eb;_0x22260d[_0x2dd37c(0xe27)]({'controller':_0x2dd37c(0x3ab),'controllerAs':'vm','templateUrl':_0x59d340,'parent':angular['element'](_0x9fabfe['body']),'targetEvent':_0x1a5905,'clickOutsideToClose':!![],'locals':{'context':_0xab445f,'contexts':_0xdc2b2d[_0x2dd37c(0x14f6)][_0x2dd37c(0x2214)],'license':_0xdc2b2d[_0x2dd37c(0x8a5)],'setting':null,'crudPermissions':_0xdc2b2d['crudPermissions']}});}function _0x32c5bd(_0x24ea96,_0x396a20){const _0x2dab88=_0x2438eb,_0x4bae54=_0x22260d[_0x2dab88(0x1551)]()['title'](_0x2dab88(0x140b)+_0x39641b()[_0x2dab88(0xa75)](_0x2dab88(0x2056))+'?')['htmlContent'](_0x2dab88(0x204d)+(_0x24ea96[_0x2dab88(0x16b6)]||_0x2dab88(0x2056))+_0x2dab88(0x1200)+_0x2dab88(0x1b6))[_0x2dab88(0x15ad)]('delete\x20context')[_0x2dab88(0x728)](_0x396a20)['ok']('OK')[_0x2dab88(0x696)]('CANCEL');_0x22260d[_0x2dab88(0xe27)](_0x4bae54)[_0x2dab88(0x1cb0)](function(){_0x2927ab(_0x24ea96);},function(){const _0x4e64dd=_0x2dab88;console['log'](_0x4e64dd(0x24ba));});}let _0x4be890=!![],_0x4a147f=0x1;_0x53f674[_0x2438eb(0x614)]('vm.query.filter',function(_0x2413ce,_0x2bd332){const _0x20511a=_0x2438eb;_0x4be890?_0x20cf0f(function(){_0x4be890=![];}):(!_0x2bd332&&(_0x4a147f=_0xdc2b2d[_0x20511a(0xae2)][_0x20511a(0x1c7b)]),_0x2413ce!==_0x2bd332&&(_0xdc2b2d[_0x20511a(0xae2)]['page']=0x1),!_0x2413ce&&(_0xdc2b2d[_0x20511a(0xae2)][_0x20511a(0x1c7b)]=_0x4a147f),_0xdc2b2d[_0x20511a(0x1387)]());});function _0x307a01(_0x16442e){const _0x5160de=_0x2438eb;_0xdc2b2d[_0x5160de(0x14f6)]=_0x16442e||{'count':0x0,'rows':[]};}function _0x244b3e(){const _0x5701d9=_0x2438eb;_0xdc2b2d[_0x5701d9(0xae2)][_0x5701d9(0x184b)]=(_0xdc2b2d['query'][_0x5701d9(0x1c7b)]-0x1)*_0xdc2b2d['query']['limit'],_0x39fd1e['hasRole'](_0x5701d9(0x1c60))?_0xdc2b2d[_0x5701d9(0x2061)]=_0x91f7f8[_0x5701d9(0x1da5)][_0x5701d9(0xbf7)](_0xdc2b2d[_0x5701d9(0xae2)],_0x307a01)[_0x5701d9(0x1d77)]:(_0xdc2b2d[_0x5701d9(0xae2)]['id']=_0xdc2b2d['userProfile']['id'],_0xdc2b2d[_0x5701d9(0xae2)][_0x5701d9(0x1f74)]=_0x5701d9(0x208a),_0xdc2b2d[_0x5701d9(0x2061)]=_0x91f7f8['userProfile'][_0x5701d9(0x1810)](_0xdc2b2d['query'],_0x307a01)[_0x5701d9(0x1d77)]);}function _0x13369a(_0x944ef0,_0x39ae6f){const _0x3b379e=_0x2438eb;_0x22260d['show']({'controller':_0x3b379e(0x3ab),'controllerAs':'vm','templateUrl':_0x59d340,'parent':angular[_0x3b379e(0x1853)](_0x9fabfe[_0x3b379e(0x1ed9)]),'targetEvent':_0x944ef0,'clickOutsideToClose':!![],'locals':{'context':_0x39ae6f,'contexts':_0xdc2b2d['contexts'][_0x3b379e(0x2214)],'license':_0xdc2b2d['license'],'setting':_0xdc2b2d[_0x3b379e(0x9ca)],'crudPermissions':_0xdc2b2d[_0x3b379e(0x1b1a)]}});}function _0x2927ab(_0x3fd207){const _0x1d3d7a=_0x2438eb;_0x91f7f8[_0x1d3d7a(0x1da5)][_0x1d3d7a(0x111d)]({'id':_0x3fd207['id']})[_0x1d3d7a(0x1d77)]['then'](function(){const _0x574e6a=_0x1d3d7a;_0x39641b()['remove'](_0xdc2b2d[_0x574e6a(0x14f6)]['rows'],{'id':_0x3fd207['id']}),_0xdc2b2d[_0x574e6a(0x14f6)]['count']-=0x1,!_0xdc2b2d[_0x574e6a(0x14f6)]['rows'][_0x574e6a(0xfd0)]&&_0xdc2b2d[_0x574e6a(0x1387)](),_0x5d4e75[_0x574e6a(0x829)]({'title':_0x39641b()[_0x574e6a(0xa75)]('Context')+_0x574e6a(0x2663),'msg':_0x3fd207[_0x574e6a(0x16b6)]?_0x3fd207[_0x574e6a(0x16b6)]+_0x574e6a(0x3f5):''});})[_0x1d3d7a(0x1c4)](function(_0x3a3806){const _0x2d7244=_0x1d3d7a;if(_0x3a3806[_0x2d7244(0x25c)]&&_0x3a3806[_0x2d7244(0x25c)][_0x2d7244(0x1a7c)]&&_0x3a3806[_0x2d7244(0x25c)]['errors'][_0x2d7244(0xfd0)]){_0xdc2b2d['errors']=_0x3a3806[_0x2d7244(0x25c)][_0x2d7244(0x1a7c)]||[{'message':_0x3a3806[_0x2d7244(0x147f)](),'type':_0x2d7244(0x23d5)}];for(let _0x126b0e=0x0;_0x126b0e<_0x3a3806['data'][_0x2d7244(0x1a7c)]['length'];_0x126b0e++){_0x5d4e75[_0x2d7244(0x218e)]({'title':_0x3a3806[_0x2d7244(0x25c)]['errors'][_0x126b0e]['type'],'msg':_0x3a3806['data'][_0x2d7244(0x1a7c)][_0x126b0e][_0x2d7244(0x155e)]});}}else _0x5d4e75['error']({'title':_0x3a3806[_0x2d7244(0x291)]?'API:'+_0x3a3806[_0x2d7244(0x291)]+_0x2d7244(0x1657)+_0x3a3806[_0x2d7244(0xc22)]:_0x2d7244(0x23d5),'msg':_0x3a3806[_0x2d7244(0x25c)]?JSON['stringify'](_0x3a3806['data']['message']):_0x3a3806[_0x2d7244(0x155e)]||_0x3a3806['toString']()});});}function _0x125316(){const _0x1f3039=_0x2438eb,_0x5c871d=angular[_0x1f3039(0x17fe)](_0xdc2b2d[_0x1f3039(0x2684)]);return _0xdc2b2d[_0x1f3039(0x2684)]=[],_0x5c871d;}function _0x5babdb(_0x85b371){const _0x557cd3=_0x2438eb,_0x2721d9=_0x22260d[_0x557cd3(0x1551)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20contexts?')[_0x557cd3(0x49e)](''+_0xdc2b2d[_0x557cd3(0x2684)][_0x557cd3(0xfd0)]+_0x557cd3(0x1d6c)+_0x557cd3(0x1b6))[_0x557cd3(0x15ad)](_0x557cd3(0x103c))[_0x557cd3(0x728)](_0x85b371)['ok']('OK')['cancel'](_0x557cd3(0x24ba));_0x22260d[_0x557cd3(0xe27)](_0x2721d9)[_0x557cd3(0x1cb0)](function(){const _0xbcb1b2=_0x557cd3;_0xdc2b2d[_0xbcb1b2(0x2684)][_0xbcb1b2(0xf90)](function(_0x3060d2){_0x2927ab(_0x3060d2);}),_0xdc2b2d['selectedContexts']=[];});}function _0x3f531e(){const _0x585a4a=_0x2438eb;_0xdc2b2d[_0x585a4a(0x2684)]=[];}function _0x545584(){const _0x10f1bb=_0x2438eb;_0xdc2b2d[_0x10f1bb(0x2684)]=_0xdc2b2d[_0x10f1bb(0x14f6)][_0x10f1bb(0x2214)];}}const _0x44c60f=_0x56d0fc;;_0x3b70ab[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x406),'$location',_0x5537c6(0xcb9),'$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0x14f6),_0x5537c6(0x2056),_0x5537c6(0x142b),'Auth','license',_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x3b70ab(_0xadfc6f,_0x35aa47,_0x4993f2,_0xf5d33b,_0x4ef204,_0x1720b6,_0x4ad1b3,_0x550fa4,_0x3f400f,_0x434e8,_0x52bf1a,_0x506e89,_0x28f9f1,_0x2e568e){const _0x148af5=_0x5537c6,_0x1b4db9=this;_0x1b4db9[_0x148af5(0xe76)]=_0x52bf1a[_0x148af5(0x21e8)](),_0x1b4db9[_0x148af5(0x1a7c)]=[],_0x1b4db9[_0x148af5(0x9ca)]=_0x28f9f1,_0x1b4db9[_0x148af5(0x8a5)]=_0x506e89,_0x1b4db9[_0x148af5(0x1b1a)]=_0x2e568e,_0x1b4db9['hasModulePermissions']={},_0x1b4db9[_0x148af5(0x1b0c)]=_0x1b4db9['setting']&&_0x1b4db9['setting'][_0x148af5(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1b4db9[_0x148af5(0x1386)]=_0x148af5(0x87a),_0x1b4db9[_0x148af5(0x2056)]=angular[_0x148af5(0x17fe)](_0x3f400f),_0x1b4db9[_0x148af5(0x14f6)]=_0x550fa4,_0x1b4db9[_0x148af5(0x1f85)]=![];!_0x1b4db9[_0x148af5(0x2056)]&&(_0x1b4db9[_0x148af5(0x2056)]={},_0x1b4db9['title']=_0x148af5(0x41a),_0x1b4db9[_0x148af5(0x1f85)]=!![]);_0x1b4db9[_0x148af5(0x312)]=_0x485c2a,_0x1b4db9[_0x148af5(0x19d4)]=_0xebac62,_0x1b4db9[_0x148af5(0x1c01)]=_0x26e713,_0x1b4db9['getDateFromString']=_0x26c278,_0x1b4db9[_0x148af5(0xda0)]=_0x56d4b3;function _0x485c2a(){const _0x50e9c2=_0x148af5;_0x1b4db9[_0x50e9c2(0x1a7c)]=[],_0x434e8['voiceContext']['save'](_0x1b4db9[_0x50e9c2(0x2056)])[_0x50e9c2(0x1d77)][_0x50e9c2(0x1cb0)](function(_0x593908){const _0x3a4493=_0x50e9c2;_0x1b4db9['contexts']['unshift'](_0x593908[_0x3a4493(0x19b2)]()),_0x4ad1b3[_0x3a4493(0x829)]({'title':_0x3a4493(0x1caf),'msg':_0x1b4db9[_0x3a4493(0x2056)]['name']?_0x1b4db9['context'][_0x3a4493(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x56d4b3(_0x593908);})[_0x50e9c2(0x1c4)](function(_0x17aaaf){const _0x403890=_0x50e9c2;if(_0x17aaaf[_0x403890(0x25c)]&&_0x17aaaf['data'][_0x403890(0x1a7c)]&&_0x17aaaf[_0x403890(0x25c)][_0x403890(0x1a7c)][_0x403890(0xfd0)]){_0x1b4db9[_0x403890(0x1a7c)]=_0x17aaaf[_0x403890(0x25c)][_0x403890(0x1a7c)]||[{'message':_0x17aaaf[_0x403890(0x147f)](),'type':_0x403890(0x4cf)}];for(let _0x2976fb=0x0;_0x2976fb<_0x17aaaf['data'][_0x403890(0x1a7c)]['length'];_0x2976fb+=0x1){_0x4ad1b3[_0x403890(0x218e)]({'title':_0x17aaaf[_0x403890(0x25c)][_0x403890(0x1a7c)][_0x2976fb][_0x403890(0x66a)],'msg':_0x17aaaf['data'][_0x403890(0x1a7c)][_0x2976fb][_0x403890(0x155e)]});}}else _0x4ad1b3[_0x403890(0x218e)]({'title':_0x17aaaf[_0x403890(0x291)]?_0x403890(0xeb9)+_0x17aaaf[_0x403890(0x291)]+'\x20-\x20'+_0x17aaaf['statusText']:_0x403890(0x4cf),'msg':_0x17aaaf[_0x403890(0x25c)]?JSON[_0x403890(0x2701)](_0x17aaaf[_0x403890(0x25c)]['message']):_0x17aaaf[_0x403890(0x147f)]()});});}function _0xebac62(){const _0x4650ed=_0x148af5;_0x1b4db9[_0x4650ed(0x1a7c)]=[],_0x434e8['voiceContext'][_0x4650ed(0x687)]({'id':_0x1b4db9[_0x4650ed(0x2056)]['id']},_0x1b4db9[_0x4650ed(0x2056)])['$promise'][_0x4650ed(0x1cb0)](function(_0x276402){const _0x12b90c=_0x4650ed,_0x55a3fc=_0x39641b()[_0x12b90c(0x13b4)](_0x1b4db9[_0x12b90c(0x14f6)],{'id':_0x276402['id']});_0x55a3fc&&_0x39641b()['merge'](_0x55a3fc,_0x39641b()[_0x12b90c(0x169b)](_0x276402[_0x12b90c(0x19b2)](),_0x39641b()[_0x12b90c(0x1be5)](_0x55a3fc))),_0x4ad1b3[_0x12b90c(0x829)]({'title':_0x12b90c(0x2228),'msg':_0x1b4db9[_0x12b90c(0x2056)][_0x12b90c(0x16b6)]?_0x1b4db9[_0x12b90c(0x2056)][_0x12b90c(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x56d4b3(_0x276402);})[_0x4650ed(0x1c4)](function(_0x5c176d){const _0x2a7540=_0x4650ed;if(_0x5c176d[_0x2a7540(0x25c)]&&_0x5c176d[_0x2a7540(0x25c)][_0x2a7540(0x1a7c)]&&_0x5c176d[_0x2a7540(0x25c)]['errors'][_0x2a7540(0xfd0)]){_0x1b4db9[_0x2a7540(0x1a7c)]=_0x5c176d['data'][_0x2a7540(0x1a7c)]||[{'message':_0x5c176d['toString'](),'type':_0x2a7540(0x124c)}];for(let _0x1d8f76=0x0;_0x1d8f76<_0x5c176d[_0x2a7540(0x25c)][_0x2a7540(0x1a7c)][_0x2a7540(0xfd0)];_0x1d8f76++){_0x4ad1b3[_0x2a7540(0x218e)]({'title':_0x5c176d[_0x2a7540(0x25c)][_0x2a7540(0x1a7c)][_0x1d8f76][_0x2a7540(0x66a)],'msg':_0x5c176d[_0x2a7540(0x25c)][_0x2a7540(0x1a7c)][_0x1d8f76][_0x2a7540(0x155e)]});}}else _0x4ad1b3['error']({'title':_0x5c176d[_0x2a7540(0x291)]?_0x2a7540(0xeb9)+_0x5c176d[_0x2a7540(0x291)]+_0x2a7540(0x1657)+_0x5c176d[_0x2a7540(0xc22)]:_0x2a7540(0x124c),'msg':_0x5c176d['data']?JSON[_0x2a7540(0x2701)](_0x5c176d[_0x2a7540(0x25c)][_0x2a7540(0x155e)]):_0x5c176d[_0x2a7540(0x147f)]()});});}function _0x26e713(_0x12f9c7){const _0x22f144=_0x148af5;_0x1b4db9[_0x22f144(0x1a7c)]=[];const _0x2f9ece=_0xf5d33b['confirm']()[_0x22f144(0x1386)](_0x22f144(0x1a2e))[_0x22f144(0x862)](_0x22f144(0x2856))[_0x22f144(0x15ad)](_0x22f144(0x274c))['ok'](_0x22f144(0x2594))['cancel'](_0x22f144(0xde1))[_0x22f144(0x728)](_0x12f9c7);_0xf5d33b['show'](_0x2f9ece)[_0x22f144(0x1cb0)](function(){const _0x5389eb=_0x22f144;_0x434e8[_0x5389eb(0x1da5)][_0x5389eb(0x111d)]({'id':_0x1b4db9[_0x5389eb(0x2056)]['id']})[_0x5389eb(0x1d77)][_0x5389eb(0x1cb0)](function(){const _0x473a5f=_0x5389eb;_0x39641b()['remove'](_0x1b4db9['contexts'],{'id':_0x1b4db9['context']['id']}),_0x4ad1b3[_0x473a5f(0x829)]({'title':_0x473a5f(0x6bd),'msg':(_0x1b4db9[_0x473a5f(0x2056)][_0x473a5f(0x16b6)]||'context')+_0x473a5f(0x3f5)}),_0x56d4b3(_0x1b4db9[_0x473a5f(0x2056)]);})[_0x5389eb(0x1c4)](function(_0x3ec83f){const _0x50def8=_0x5389eb;if(_0x3ec83f['data']&&_0x3ec83f['data'][_0x50def8(0x1a7c)]&&_0x3ec83f[_0x50def8(0x25c)][_0x50def8(0x1a7c)]['length']){_0x1b4db9['errors']=_0x3ec83f['data']['errors']||[{'message':_0x3ec83f[_0x50def8(0x147f)](),'type':_0x50def8(0x69e)}];for(let _0x1200fe=0x0;_0x1200fe<_0x3ec83f[_0x50def8(0x25c)][_0x50def8(0x1a7c)]['length'];_0x1200fe++){_0x4ad1b3[_0x50def8(0x218e)]({'title':_0x3ec83f[_0x50def8(0x25c)][_0x50def8(0x1a7c)][_0x1200fe]['type'],'msg':_0x3ec83f['data'][_0x50def8(0x1a7c)][_0x1200fe][_0x50def8(0x155e)]});}}else _0x4ad1b3['error']({'title':_0x3ec83f[_0x50def8(0x291)]?_0x50def8(0xeb9)+_0x3ec83f[_0x50def8(0x291)]+_0x50def8(0x1657)+_0x3ec83f[_0x50def8(0xc22)]:_0x50def8(0x69e),'msg':_0x3ec83f[_0x50def8(0x25c)]?JSON[_0x50def8(0x2701)](_0x3ec83f['data']['message']):_0x3ec83f['message']||_0x3ec83f[_0x50def8(0x147f)]()});});},function(){});}function _0x26c278(_0x17ce93){return _0x17ce93===null?undefined:new Date(_0x17ce93);}function _0x56d4b3(_0x2cab49){const _0xe9db27=_0x148af5;_0xf5d33b[_0xe9db27(0x1426)](_0x2cab49);}}const _0x43f917=_0x3b70ab;;_0x53b318[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog','$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0x1310),_0x5537c6(0x80a),_0x5537c6(0x142b),_0x5537c6(0x1774),'license','setting',_0x5537c6(0x1b1a)];function _0x53b318(_0x338cb3,_0x32a9e0,_0x4a9ee0,_0x538715,_0x575ebb,_0x35c39f,_0x1030da,_0x4e3bd9,_0x1fae7f,_0x3bf501,_0x3acf73,_0x2f8e8c,_0xa45ef4,_0x22efab){const _0xef3bbe=_0x5537c6,_0x46e161=this;_0x46e161['currentUser']=_0x3acf73['getCurrentUser'](),_0x46e161['errors']=[],_0x46e161[_0xef3bbe(0x9ca)]=_0xa45ef4,_0x46e161[_0xef3bbe(0x8a5)]=_0x2f8e8c,_0x46e161[_0xef3bbe(0x1b1a)]=_0x22efab,_0x46e161['hasModulePermissions']={},_0x46e161['passwordPattern']=_0x46e161[_0xef3bbe(0x9ca)]&&_0x46e161[_0xef3bbe(0x9ca)][_0xef3bbe(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x46e161[_0xef3bbe(0x1386)]='VOICE.EDIT_INBOUNDROUTE',_0x46e161[_0xef3bbe(0x80a)]=angular['copy'](_0x1fae7f),_0x46e161[_0xef3bbe(0x1310)]=_0x4e3bd9,_0x46e161[_0xef3bbe(0x23c7)]=![];!_0x46e161[_0xef3bbe(0x80a)]&&(_0x46e161[_0xef3bbe(0x80a)]={'appdata':_0xef3bbe(0x24c7),'type':_0xef3bbe(0x26c0),'context':_0xef3bbe(0x8d7)},_0x46e161['title']='VOICE.NEW_INBOUNDROUTE',_0x46e161['newInboundRoute']=!![]);_0x46e161[_0xef3bbe(0x7ca)]=_0x5ed3ba,_0x46e161[_0xef3bbe(0x63a)]=_0x489572,_0x46e161['deleteInboundRoute']=_0x570852,_0x46e161[_0xef3bbe(0x2c4)]=_0x31a9a4,_0x46e161['closeDialog']=_0x28c6c7,_0x3acf73['hasRole']('admin')?_0x3bf501[_0xef3bbe(0x1da5)][_0xef3bbe(0xbf7)]({'fields':_0xef3bbe(0x43c),'sort':_0xef3bbe(0x16b6),'nolimit':_0xef3bbe(0x44d)})[_0xef3bbe(0x1d77)]['then'](function(_0x5e3f1b){const _0x1a6d82=_0xef3bbe;_0x46e161['contexts']=_0x5e3f1b[_0x1a6d82(0x2214)]||[];})['catch'](function(_0x4fa501){const _0x55c1f5=_0xef3bbe;_0x1030da[_0x55c1f5(0x218e)]({'title':_0x4fa501[_0x55c1f5(0x291)]?_0x55c1f5(0xeb9)+_0x4fa501['status']+_0x55c1f5(0x1657)+_0x4fa501[_0x55c1f5(0xc22)]:'SYSTEM:GET_CONTEXTS','msg':_0x4fa501[_0x55c1f5(0x25c)]?JSON[_0x55c1f5(0x2701)](_0x4fa501[_0x55c1f5(0x25c)]):_0x4fa501['toString']()});}):_0x3bf501[_0xef3bbe(0x1da5)][_0xef3bbe(0xbf7)]({'fields':'id,name','sort':'name','nolimit':_0xef3bbe(0x44d)})[_0xef3bbe(0x1d77)][_0xef3bbe(0x1cb0)](function(_0x382173){const _0x40c1ad=_0xef3bbe;_0x46e161[_0x40c1ad(0x14f6)]=_0x382173[_0x40c1ad(0x2214)]||[];})[_0xef3bbe(0x1cb0)](function(){const _0x46b2a6=_0xef3bbe;return _0x3bf501['userProfileSection'][_0x46b2a6(0xbf7)]({'userProfileId':_0x46e161[_0x46b2a6(0xe76)]['userProfileId'],'sectionId':0x195})[_0x46b2a6(0x1d77)];})[_0xef3bbe(0x1cb0)](function(_0x29f4cf){const _0x220857=_0xef3bbe,_0xbe1afe=_0x29f4cf&&_0x29f4cf['rows']?_0x29f4cf[_0x220857(0x2214)][0x0]:null;if(!_0xbe1afe)return _0x3bf501[_0x220857(0x1da5)][_0x220857(0xbf7)]({'fields':'id,name','sort':_0x220857(0x16b6),'nolimit':'true','defaultEntry':0x1})['$promise']['then'](function(_0x312c02){const _0x1a4cdf=_0x220857;_0x46e161[_0x1a4cdf(0x14f6)]=_0x312c02[_0x1a4cdf(0x2214)]||[];});else{if(!_0xbe1afe[_0x220857(0x12f4)])return _0x3bf501[_0x220857(0x1198)][_0x220857(0xbf7)]({'sectionId':_0xbe1afe['id']})[_0x220857(0x1d77)][_0x220857(0x1cb0)](function(_0x4e2160){const _0x36c60b=_0x220857,_0x303143=_0x39641b()[_0x36c60b(0x1de2)](_0x4e2160[_0x36c60b(0x2214)],function(_0x4a4217){const _0x40b2c9=_0x36c60b;return _0x39641b()[_0x40b2c9(0x13b4)](_0x46e161[_0x40b2c9(0x14f6)],{'id':_0x4a4217[_0x40b2c9(0x2982)]});});let _0x5087f6=null;_0x46e161[_0x36c60b(0x80a)]&&(_0x5087f6=_0x39641b()[_0x36c60b(0x13b4)](_0x46e161[_0x36c60b(0x14f6)],{'name':_0x46e161[_0x36c60b(0x80a)][_0x36c60b(0x2056)]}));if(_0x5087f6&&!_0x39641b()[_0x36c60b(0x727)](_0x303143,['id',_0x5087f6['id']])){const _0x7ba1b3=_0x39641b()[_0x36c60b(0x13b4)](_0x46e161[_0x36c60b(0x14f6)],{'id':_0x5087f6['id']});_0x7ba1b3[_0x36c60b(0x15da)]=![],_0x303143[_0x36c60b(0x2785)](_0x7ba1b3);}_0x46e161[_0x36c60b(0x14f6)]=_0x303143;});}})['catch'](function(_0xff91e2){const _0x15c2fa=_0xef3bbe;_0x1030da[_0x15c2fa(0x218e)]({'title':_0xff91e2[_0x15c2fa(0x291)]?_0x15c2fa(0xeb9)+_0xff91e2[_0x15c2fa(0x291)]+_0x15c2fa(0x1657)+_0xff91e2['statusText']:_0x15c2fa(0x5ac),'msg':_0xff91e2[_0x15c2fa(0x25c)]?JSON[_0x15c2fa(0x2701)](_0xff91e2[_0x15c2fa(0x25c)]):_0xff91e2[_0x15c2fa(0x147f)]()});});function _0x5ed3ba(){const _0x51dbec=_0xef3bbe;_0x46e161[_0x51dbec(0x1a7c)]=[],_0x3bf501[_0x51dbec(0x1059)]['save'](_0x46e161[_0x51dbec(0x80a)])[_0x51dbec(0x1d77)][_0x51dbec(0x1cb0)](function(_0x48d598){const _0x366e43=_0x51dbec;_0x46e161[_0x366e43(0x1310)]['unshift'](_0x48d598[_0x366e43(0x19b2)]()),_0x1030da[_0x366e43(0x829)]({'title':_0x366e43(0x2031),'msg':_0x46e161[_0x366e43(0x80a)]['name']?_0x46e161['inboundroute'][_0x366e43(0x16b6)]+_0x366e43(0x470):''}),_0x28c6c7(_0x48d598);})['catch'](function(_0x26a33d){const _0x47c62d=_0x51dbec;if(_0x26a33d[_0x47c62d(0x25c)]&&_0x26a33d[_0x47c62d(0x25c)][_0x47c62d(0x1a7c)]&&_0x26a33d[_0x47c62d(0x25c)][_0x47c62d(0x1a7c)][_0x47c62d(0xfd0)]){_0x46e161[_0x47c62d(0x1a7c)]=_0x26a33d['data'][_0x47c62d(0x1a7c)]||[{'message':_0x26a33d['toString'](),'type':_0x47c62d(0xe25)}];for(let _0x491ff1=0x0;_0x491ff1<_0x26a33d[_0x47c62d(0x25c)]['errors'][_0x47c62d(0xfd0)];_0x491ff1+=0x1){_0x1030da[_0x47c62d(0x218e)]({'title':_0x26a33d[_0x47c62d(0x25c)][_0x47c62d(0x1a7c)][_0x491ff1][_0x47c62d(0x66a)],'msg':_0x26a33d[_0x47c62d(0x25c)][_0x47c62d(0x1a7c)][_0x491ff1][_0x47c62d(0x155e)]});}}else _0x1030da['error']({'title':_0x26a33d[_0x47c62d(0x291)]?'API:'+_0x26a33d['status']+'\x20-\x20'+_0x26a33d[_0x47c62d(0xc22)]:_0x47c62d(0xe25),'msg':_0x26a33d[_0x47c62d(0x25c)]?JSON[_0x47c62d(0x2701)](_0x26a33d[_0x47c62d(0x25c)]['message']):_0x26a33d['toString']()});});}function _0x489572(){const _0x4e0792=_0xef3bbe;_0x46e161[_0x4e0792(0x1a7c)]=[],_0x3bf501[_0x4e0792(0x1059)]['update']({'id':_0x46e161[_0x4e0792(0x80a)]['id']},_0x46e161[_0x4e0792(0x80a)])[_0x4e0792(0x1d77)][_0x4e0792(0x1cb0)](function(_0x3c3e0f){const _0x32d799=_0x4e0792,_0x1debe7=_0x39641b()[_0x32d799(0x13b4)](_0x46e161[_0x32d799(0x1310)],{'id':_0x3c3e0f['id']});_0x1debe7&&_0x39641b()[_0x32d799(0x9c1)](_0x1debe7,_0x39641b()[_0x32d799(0x169b)](_0x3c3e0f[_0x32d799(0x19b2)](),_0x39641b()[_0x32d799(0x1be5)](_0x1debe7))),_0x1030da['success']({'title':_0x32d799(0x2e5),'msg':_0x46e161['inboundroute'][_0x32d799(0x16b6)]?_0x46e161[_0x32d799(0x80a)]['name']+'\x20has\x20been\x20saved!':''}),_0x28c6c7(_0x3c3e0f);})['catch'](function(_0x19c884){const _0x269f31=_0x4e0792;if(_0x19c884[_0x269f31(0x25c)]&&_0x19c884[_0x269f31(0x25c)][_0x269f31(0x1a7c)]&&_0x19c884['data']['errors']['length']){_0x46e161[_0x269f31(0x1a7c)]=_0x19c884['data']['errors']||[{'message':_0x19c884[_0x269f31(0x147f)](),'type':'api.voiceExtension.update'}];for(let _0x5b1c84=0x0;_0x5b1c84<_0x19c884[_0x269f31(0x25c)][_0x269f31(0x1a7c)][_0x269f31(0xfd0)];_0x5b1c84++){_0x1030da[_0x269f31(0x218e)]({'title':_0x19c884[_0x269f31(0x25c)][_0x269f31(0x1a7c)][_0x5b1c84][_0x269f31(0x66a)],'msg':_0x19c884[_0x269f31(0x25c)]['errors'][_0x5b1c84][_0x269f31(0x155e)]});}}else _0x1030da['error']({'title':_0x19c884[_0x269f31(0x291)]?'API:'+_0x19c884[_0x269f31(0x291)]+_0x269f31(0x1657)+_0x19c884[_0x269f31(0xc22)]:_0x269f31(0x237b),'msg':_0x19c884[_0x269f31(0x25c)]?JSON[_0x269f31(0x2701)](_0x19c884['data'][_0x269f31(0x155e)]):_0x19c884[_0x269f31(0x147f)]()});});}function _0x570852(_0x40943a){const _0x1f935a=_0xef3bbe;_0x46e161[_0x1f935a(0x1a7c)]=[];const _0x1131aa=_0x538715['confirm']()[_0x1f935a(0x1386)](_0x1f935a(0x1a2e))[_0x1f935a(0x862)](_0x1f935a(0x22d7))[_0x1f935a(0x15ad)](_0x1f935a(0x1457))['ok']('Delete')['cancel'](_0x1f935a(0xde1))[_0x1f935a(0x728)](_0x40943a);_0x538715['show'](_0x1131aa)[_0x1f935a(0x1cb0)](function(){const _0x5b3837=_0x1f935a;_0x3bf501[_0x5b3837(0x1059)][_0x5b3837(0x111d)]({'id':_0x46e161[_0x5b3837(0x80a)]['id']})[_0x5b3837(0x1d77)][_0x5b3837(0x1cb0)](function(){const _0x5d2f78=_0x5b3837;_0x39641b()[_0x5d2f78(0x152a)](_0x46e161[_0x5d2f78(0x1310)],{'id':_0x46e161[_0x5d2f78(0x80a)]['id']}),_0x1030da[_0x5d2f78(0x829)]({'title':_0x5d2f78(0x13ab),'msg':(_0x46e161[_0x5d2f78(0x80a)][_0x5d2f78(0x16b6)]||_0x5d2f78(0x80a))+'\x20has\x20been\x20deleted!'}),_0x28c6c7(_0x46e161['inboundroute']);})[_0x5b3837(0x1c4)](function(_0xd3dfd0){const _0x5bbba8=_0x5b3837;if(_0xd3dfd0[_0x5bbba8(0x25c)]&&_0xd3dfd0[_0x5bbba8(0x25c)][_0x5bbba8(0x1a7c)]&&_0xd3dfd0[_0x5bbba8(0x25c)][_0x5bbba8(0x1a7c)]['length']){_0x46e161[_0x5bbba8(0x1a7c)]=_0xd3dfd0[_0x5bbba8(0x25c)][_0x5bbba8(0x1a7c)]||[{'message':_0xd3dfd0[_0x5bbba8(0x147f)](),'type':_0x5bbba8(0xb49)}];for(let _0x26cfa7=0x0;_0x26cfa7<_0xd3dfd0['data'][_0x5bbba8(0x1a7c)][_0x5bbba8(0xfd0)];_0x26cfa7++){_0x1030da[_0x5bbba8(0x218e)]({'title':_0xd3dfd0['data']['errors'][_0x26cfa7][_0x5bbba8(0x66a)],'msg':_0xd3dfd0[_0x5bbba8(0x25c)]['errors'][_0x26cfa7][_0x5bbba8(0x155e)]});}}else _0x1030da['error']({'title':_0xd3dfd0[_0x5bbba8(0x291)]?_0x5bbba8(0xeb9)+_0xd3dfd0['status']+_0x5bbba8(0x1657)+_0xd3dfd0[_0x5bbba8(0xc22)]:_0x5bbba8(0xb49),'msg':_0xd3dfd0[_0x5bbba8(0x25c)]?JSON[_0x5bbba8(0x2701)](_0xd3dfd0[_0x5bbba8(0x25c)][_0x5bbba8(0x155e)]):_0xd3dfd0[_0x5bbba8(0x155e)]||_0xd3dfd0[_0x5bbba8(0x147f)]()});});},function(){});}function _0x31a9a4(_0x1dfad6){return _0x1dfad6===null?undefined:new Date(_0x1dfad6);}function _0x28c6c7(_0x1f5abd){_0x538715['hide'](_0x1f5abd);}}const _0x421c40=_0x53b318;;const _0x1feed8=_0x5074a3['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/agi/dialog.html/dialog.html';;const _0x28e6f9=_0x5074a3['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/custom/dialog.html/dialog.html';;const _0x45918f=_0x5074a3['p']+_0x5537c6(0x41c);;const _0xad52ef=_0x5074a3['p']+_0x5537c6(0xa3a);;const _0x318f03=_0x5074a3['p']+_0x5537c6(0x261c);;const _0x2d0c92=_0x5074a3['p']+_0x5537c6(0x5fe);;const _0x3ce36e=_0x5074a3['p']+_0x5537c6(0x5b4);;const _0x286922=_0x5074a3['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/interval/dialog.html/dialog.html';;const _0x5b98c2=_0x5074a3['p']+_0x5537c6(0x29ab);;const _0x3147d9=_0x5074a3['p']+_0x5537c6(0x1d67);;const _0x51524f=_0x5074a3['p']+_0x5537c6(0x8a3);;const _0x2334f1=_0x5074a3['p']+_0x5537c6(0x4a8);;const _0x70e6be=_0x5074a3['p']+_0x5537c6(0x18b);;_0x5e4d05[_0x5537c6(0x15b6)]=[_0x5537c6(0x142b),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x1774)];const _0x497c79={'agi':_0x1feed8,'custom':_0x28e6f9,'dial':_0x45918f,'externaldial':_0xad52ef,'goto':_0x318f03,'hangup':_0x2d0c92,'internaldial':_0x3ce36e,'interval':_0x286922,'playback':_0x5b98c2,'queue':_0x3147d9,'ringgroup':_0x51524f,'set':_0x2334f1,'voicemail':_0x70e6be};function _0x5e4d05(_0x57844e,_0x4b14be,_0x2f29c3,_0x127b3f,_0x208862){const _0x2a5384=_0x5537c6,_0x580d05=this;_0x580d05[_0x2a5384(0xe76)]=_0x208862[_0x2a5384(0x21e8)](),_0x580d05[_0x2a5384(0x80a)]={},_0x580d05['inboundrouteApps']={'count':0x0,'rows':[]},_0x580d05[_0x2a5384(0x16c8)]=[],_0x580d05[_0x2a5384(0x1b1a)],_0x580d05[_0x2a5384(0xae2)]={'sort':_0x2a5384(0x521)},_0x580d05[_0x2a5384(0x196f)]=_0x39641b()[_0x2a5384(0x988)](_0x39641b()[_0x2a5384(0x1d33)]([{'app':_0x2a5384(0x1d81),'appType':_0x2a5384(0x1ac8),'types':[_0x2a5384(0x2017),'custom',_0x2a5384(0x240)],'fields':[],'isApp':![]},{'app':_0x2a5384(0x2687),'appType':'queue','context':'from-voip-provider','type':_0x2a5384(0x1692),'appdata':_0x2a5384(0x2864),'icon':_0x2a5384(0x33e),'options':'xX','interval':_0x2a5384(0x965),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x2a5384(0xe28),'field':{'name':_0x2a5384(0x1e9),'key':'save_name','prefix':_0x2a5384(0xd74)},'route':_0x2a5384(0x1e9),'filters':{'fields':_0x2a5384(0x4ae),'sort':_0x2a5384(0x16b6),'nolimit':!![]},'permissions':{'section':0x3ef}},{'name':_0x2a5384(0x971),'field':{'name':_0x2a5384(0x11cf),'key':_0x2a5384(0x16b6)},'route':_0x2a5384(0x26b3),'filters':{'type':'inbound','fields':_0x2a5384(0x1896),'sort':_0x2a5384(0x16b6),'nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':_0x2a5384(0x2687),'name':_0x2a5384(0x11cf),'type':_0x2a5384(0xb52),'values':_0x2a5384(0x971),'value':_0x2a5384(0x19b3),'option':'queue.name','required':!![],'param':0x0},{'title':'Options','name':_0x2a5384(0x2224),'type':'text','param':0x1},{'title':_0x2a5384(0x237c),'name':_0x2a5384(0x237e),'type':'text','param':0x2},{'title':'Announce_Overrides','name':_0x2a5384(0x1e9),'type':_0x2a5384(0xb52),'values':_0x2a5384(0xe28),'value':_0x2a5384(0x2462),'option':_0x2a5384(0x27db),'defaultValues':[{'value':'\x27\x27','option':_0x2a5384(0x2001)}],'param':0x3},{'title':_0x2a5384(0xbcc),'name':_0x2a5384(0x1719),'type':_0x2a5384(0x83d),'min':0x0,'param':0x4},{'title':_0x2a5384(0x222d),'name':_0x2a5384(0x4b4),'type':_0x2a5384(0x19d3),'param':0x5},{'title':_0x2a5384(0xa15),'name':_0x2a5384(0x321),'type':_0x2a5384(0x19d3),'param':0x6},{'title':_0x2a5384(0x21f0),'name':_0x2a5384(0x20fb),'type':_0x2a5384(0x19d3),'param':0x7},{'title':_0x2a5384(0x13c9),'name':'rule','type':'text','param':0x8},{'title':'Position','name':_0x2a5384(0xe9e),'type':_0x2a5384(0x83d),'min':0x0,'param':0x9},{'title':_0x2a5384(0x265d),'name':_0x2a5384(0x24d5),'type':'switch','general':!![]}]},{'app':_0x2a5384(0xfa6),'appType':_0x2a5384(0x2580),'context':_0x2a5384(0x8d7),'type':_0x2a5384(0x1692),'icon':_0x2a5384(0x33e),'interval':'*,*,*,*','answer':!![],'isApp':!![],'extraApi':[{'name':_0x2a5384(0xe28),'field':{'name':'sound','key':_0x2a5384(0x144c),'prefix':_0x2a5384(0xd74)},'route':_0x2a5384(0x1e9),'filters':{'fields':_0x2a5384(0x4ae),'sort':'name','nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':'Audio_Files','name':'appdata','type':_0x2a5384(0xb52),'values':_0x2a5384(0xe28),'value':_0x2a5384(0xc08),'option':_0x2a5384(0x2700),'required':!![],'param':0x0},{'title':_0x2a5384(0x17e0),'name':'options','type':_0x2a5384(0x19d3),'param':0x1},{'title':_0x2a5384(0x265d),'name':'answer','type':_0x2a5384(0x1f0e),'general':!![]}]},{'app':_0x2a5384(0x18f8),'appType':'dial','context':_0x2a5384(0x8d7),'type':_0x2a5384(0x1692),'icon':_0x2a5384(0x33e),'interval':_0x2a5384(0x965),'options':'xX','isApp':!![],'fields':[{'title':'Technology/Resource','name':_0x2a5384(0x23f2),'type':_0x2a5384(0x19d3),'required':!![],'param':0x0},{'title':_0x2a5384(0xbcc),'name':'timeout','type':_0x2a5384(0x83d),'min':0x0,'param':0x1},{'title':_0x2a5384(0x17e0),'name':_0x2a5384(0x2224),'type':_0x2a5384(0x19d3),'param':0x2},{'title':_0x2a5384(0x237c),'name':_0x2a5384(0x135b),'type':_0x2a5384(0x19d3),'param':0x3}]},{'app':'Dial','appType':'internalDial','context':_0x2a5384(0x8d7),'type':_0x2a5384(0x1692),'icon':'icon-apps','interval':_0x2a5384(0x965),'options':'xX','isApp':!![],'extraApi':[{'name':'users','field':{'name':'user','key':_0x2a5384(0x16b6),'prefix':_0x2a5384(0xadb)},'route':'user','filters':{'fields':'id,name,role','sort':_0x2a5384(0x16b6),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x2a5384(0x1eff)},{'id':0xcb,'role':_0x2a5384(0x2922)}]}}],'fields':[{'title':_0x2a5384(0x1597),'name':_0x2a5384(0xebe),'type':_0x2a5384(0xb52),'values':_0x2a5384(0x1e30),'value':'\x27SIP/{{user.name}}\x27','option':_0x2a5384(0x2039),'required':!![],'param':0x0},{'title':_0x2a5384(0xbcc),'name':_0x2a5384(0x1719),'type':_0x2a5384(0x83d),'min':0x0,'param':0x1},{'title':_0x2a5384(0x17e0),'name':_0x2a5384(0x2224),'type':_0x2a5384(0x19d3),'param':0x2},{'title':_0x2a5384(0x237c),'name':_0x2a5384(0x135b),'type':_0x2a5384(0x19d3),'param':0x3}]},{'app':'Dial','appType':_0x2a5384(0x1653),'context':'from-voip-provider','type':'inbound','icon':'icon-apps','interval':_0x2a5384(0x965),'options':'xX','isApp':!![],'extraApi':[{'name':'trunks','field':{'name':_0x2a5384(0x1ae0),'key':_0x2a5384(0x16b6)},'route':'trunk','filters':{'fields':_0x2a5384(0x43c),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':_0x2a5384(0xf67),'name':_0x2a5384(0x1ae0),'type':'apiselect','values':_0x2a5384(0x1363),'value':'trunk.name','option':_0x2a5384(0xcb0),'required':!![],'param':0x0},{'title':_0x2a5384(0x722),'name':'phone','required':!![],'type':_0x2a5384(0x19d3)},{'title':'Timeout','name':_0x2a5384(0x1719),'type':_0x2a5384(0x83d),'min':0x0,'param':0x1},{'title':_0x2a5384(0x17e0),'name':_0x2a5384(0x2224),'type':'text','param':0x2},{'title':_0x2a5384(0x237c),'name':_0x2a5384(0x135b),'type':_0x2a5384(0x19d3),'param':0x3}]},{'app':'Dial','appType':'ringGroup','context':'from-voip-provider','type':_0x2a5384(0x26c0),'icon':_0x2a5384(0x33e),'interval':_0x2a5384(0x965),'options':'xX','isApp':!![],'extraApi':[{'name':'users','field':{'name':_0x2a5384(0x1989),'key':_0x2a5384(0x16b6),'prefix':_0x2a5384(0xadb)},'route':'user','filters':{'fields':'id,name,role','sort':_0x2a5384(0x16b6),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x2a5384(0x1eff)},{'id':0xcb,'role':_0x2a5384(0x2922)}]}}],'fields':[{'title':'User','name':_0x2a5384(0x1989),'type':_0x2a5384(0xb52),'multiple':!![],'values':_0x2a5384(0x1e30),'value':_0x2a5384(0x178b),'option':_0x2a5384(0x928),'required':!![],'param':0x0},{'title':'Timeout','name':_0x2a5384(0x1719),'type':_0x2a5384(0x83d),'min':0x0,'param':0x1},{'title':_0x2a5384(0x17e0),'name':'options','type':_0x2a5384(0x19d3),'param':0x2},{'title':_0x2a5384(0x237c),'name':_0x2a5384(0x135b),'type':_0x2a5384(0x19d3),'param':0x3}]},{'app':_0x2a5384(0xa92),'alias':_0x2a5384(0x1ff3),'appType':_0x2a5384(0x4b4),'context':_0x2a5384(0x8d7),'type':_0x2a5384(0x26c0),'icon':_0x2a5384(0x33e),'interval':_0x2a5384(0x965),'isApp':!![],'extraApi':[{'name':'projects','field':{'name':_0x2a5384(0x12a7),'key':_0x2a5384(0x16b6),'prefix':_0x2a5384(0x459)},'route':'squareProject','filters':{'fields':_0x2a5384(0x43c),'sort':_0x2a5384(0x16b6),'nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':_0x2a5384(0x23ec),'name':_0x2a5384(0x12a7),'type':_0x2a5384(0xb52),'values':_0x2a5384(0x2981),'value':_0x2a5384(0xfa1),'option':_0x2a5384(0x105a),'required':!![],'param':0x0}]},{'app':_0x2a5384(0x3da),'appType':_0x2a5384(0x628),'context':'from-voip-provider','type':_0x2a5384(0x1692),'icon':_0x2a5384(0x33e),'interval':_0x2a5384(0x965),'isApp':!![],'extraApi':[{'name':_0x2a5384(0x14f6),'field':{'name':_0x2a5384(0x2056),'key':_0x2a5384(0x16b6)},'route':_0x2a5384(0x1da5),'filters':{'fields':'id,name','sort':_0x2a5384(0x16b6),'nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':_0x2a5384(0x14fa),'name':'context','type':_0x2a5384(0xb52),'values':_0x2a5384(0x14f6),'value':'context.name','option':_0x2a5384(0x2076),'required':!![],'param':0x0},{'title':_0x2a5384(0xc3a),'name':_0x2a5384(0xd52),'type':_0x2a5384(0x19d3),'required':!![],'param':0x1},{'title':_0x2a5384(0x1240),'name':_0x2a5384(0x521),'type':_0x2a5384(0x19d3),'required':!![],'param':0x2}]},{'app':_0x2a5384(0x15e3),'appType':_0x2a5384(0x15e3),'context':_0x2a5384(0x8d7),'type':_0x2a5384(0x1692),'icon':_0x2a5384(0x33e),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'Hangup_Cause','name':_0x2a5384(0x28df),'type':'select','param':0x0,'values':[{'option':_0x2a5384(0x1d8b),'value':'\x271\x27'},{'option':_0x2a5384(0xac3),'value':_0x2a5384(0x18ab)},{'option':_0x2a5384(0x12ed),'value':'\x2717\x27'},{'option':_0x2a5384(0xc11),'value':_0x2a5384(0x1f25)},{'option':_0x2a5384(0x1587),'value':_0x2a5384(0x1df7)},{'option':_0x2a5384(0x18a9),'value':_0x2a5384(0x1da2)},{'option':_0x2a5384(0xd63),'value':_0x2a5384(0x1506)},{'option':_0x2a5384(0x3b1),'value':'\x2738\x27'},{'option':_0x2a5384(0x418),'value':_0x2a5384(0x2985)}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0x2a5384(0x11c3),'appType':_0x2a5384(0x19d1),'context':_0x2a5384(0x8d7),'type':_0x2a5384(0x1692),'separator':'=','icon':_0x2a5384(0x33e),'interval':_0x2a5384(0x965),'extraApi':[{'name':_0x2a5384(0x9a9),'field':{'name':_0x2a5384(0x16b6),'key':_0x2a5384(0x16b6)},'route':_0x2a5384(0x1822),'filters':{'fields':_0x2a5384(0x43c),'sort':_0x2a5384(0x16b6),'nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':_0x2a5384(0x1b02),'name':_0x2a5384(0x16b6),'type':'apiselect','values':_0x2a5384(0x9a9),'value':_0x2a5384(0x5a1),'option':_0x2a5384(0x5a1),'required':!![],'param':0x0},{'title':_0x2a5384(0x1e10),'name':_0x2a5384(0x327),'type':'text','required':!![],'param':0x1}]},{'app':null,'appType':_0x2a5384(0x197c),'icon':_0x2a5384(0x33e),'type':_0x2a5384(0x1692),'interval':_0x2a5384(0x965),'isApp':!![],'fields':[{'title':'Application_Name','name':_0x2a5384(0x22e1),'type':_0x2a5384(0x19d3),'required':!![],'param':0x0},{'title':'Arguments','name':_0x2a5384(0x28df),'type':'text','param':0x1}]},{'app':'Voicemail','appType':'voicemail','context':_0x2a5384(0x8d7),'icon':_0x2a5384(0x33e),'type':'Inbound','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x2a5384(0x1951),'field':{'name':_0x2a5384(0x18d4),'key':'mailbox','suffix':_0x2a5384(0x1df9)},'route':'voiceMail','filters':{'fields':_0x2a5384(0x29af),'sort':_0x2a5384(0x1b7a),'nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':_0x2a5384(0x1279),'name':_0x2a5384(0x18d4),'type':_0x2a5384(0xb52),'values':_0x2a5384(0x1951),'value':_0x2a5384(0x19b6),'option':_0x2a5384(0x1329),'required':!![],'param':0x0},{'title':_0x2a5384(0x17e0),'name':'options','type':_0x2a5384(0x19d3),'param':0x1}]}],[_0x2a5384(0x22e1)]),{'isApp':![]}),_0x580d05[_0x2a5384(0x240)]={'group':{'name':_0x2a5384(0x2523),'pull':_0x2a5384(0x11bc)},'animation':0x64,'sort':![]},_0x580d05[_0x2a5384(0x1f2f)]={'group':{'name':_0x2a5384(0x1ddb),'put':_0x2a5384(0x2523)},'animation':0x64,'onAdd':function(_0x24a7ae){const _0x59912a=_0x2a5384;_0x438b99(_0x24a7ae,_0x24a7ae[_0x59912a(0x22e)]);},'onSort':function(){_0x3eb6eb();}},_0x580d05[_0x2a5384(0x1a8e)]=_0x427faf,_0x580d05[_0x2a5384(0xb25)]=_0x16ae33,_0x580d05[_0x2a5384(0x736)]=_0x2df0ee,_0x580d05[_0x2a5384(0x1084)]=_0x438b99,_0x580d05['editInterval']=_0x1d70eb,_0x580d05[_0x2a5384(0x1819)]=_0x170d04,_0x580d05[_0x2a5384(0x29d)]=_0x1d2b6b,_0x580d05[_0x2a5384(0x463)]=_0x3eb6eb,_0x580d05[_0x2a5384(0x22fc)]=_0x3c36e7;function _0x427faf(_0x218536,_0x3d4831){const _0x44dcba=_0x2a5384;_0x580d05['inboundroute']=_0x218536,_0x580d05[_0x44dcba(0x1b1a)]=typeof _0x3d4831!==_0x44dcba(0x16b5)?_0x3d4831:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x580d05['applications'][_0x44dcba(0x379)]=!_0x580d05[_0x44dcba(0x1b1a)][_0x44dcba(0xb3d)]?!![]:![],_0x580d05[_0x44dcba(0xae2)][_0x44dcba(0x1cc7)]=_0x218536['id'],_0x580d05['query'][_0x44dcba(0xead)]=!![],_0x580d05[_0x44dcba(0xae2)][_0x44dcba(0x2282)]=!![],_0x580d05[_0x44dcba(0x736)](),_0x580d05[_0x44dcba(0x22fc)]();}function _0x16ae33(_0x524ab2,_0x36ff10,_0xc0894a){const _0x7f818b=_0x2a5384,_0x264128=_0x4b14be[_0x7f818b(0x1551)]()[_0x7f818b(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')['htmlContent'](_0x7f818b(0x204d)+_0x524ab2[_0x7f818b(0x22e1)]+_0x7f818b(0x1200)+_0x7f818b(0x1b6))['ariaLabel'](_0x7f818b(0x2998))['targetEvent'](_0xc0894a)['ok']('OK')[_0x7f818b(0x696)]('CANCEL');_0x4b14be[_0x7f818b(0xe27)](_0x264128)['then'](function(){const _0x357ce2=_0x7f818b;_0x580d05[_0x357ce2(0x137e)]['rows'][_0x357ce2(0x159c)](_0x36ff10,0x1),_0x3eb6eb();},function(){console['log']('CANCEL');});}function _0x438b99(_0x1e00bf,_0x132c90){const _0x5c5b0b=_0x2a5384;if(_0x580d05['inboundrouteApps']['rows'][_0x5c5b0b(0xfd0)]){const _0x2dc6bc=_0x580d05[_0x5c5b0b(0x137e)]['rows'][_0x132c90]?_0x580d05[_0x5c5b0b(0x137e)]['rows'][_0x132c90]:_0x580d05[_0x5c5b0b(0x137e)][_0x5c5b0b(0x2214)][0x0],_0x59369e=(_0x2dc6bc[_0x5c5b0b(0x299b)]||_0x2dc6bc[_0x5c5b0b(0x22e1)])[_0x5c5b0b(0x1680)]();_0x4b14be[_0x5c5b0b(0xe27)]({'controller':_0x5c5b0b(0x9d8)+_0x59369e+_0x5c5b0b(0x198f),'controllerAs':'vm','templateUrl':_0x497c79[_0x59369e],'parent':angular[_0x5c5b0b(0x1853)](_0x2f29c3[_0x5c5b0b(0x1ed9)]),'targetEvent':_0x1e00bf,'clickOutsideToClose':!![],'locals':{'inboundrouteApp':_0x2dc6bc,'inboundroute':_0x580d05[_0x5c5b0b(0x80a)],'crudPermissions':_0x580d05[_0x5c5b0b(0x1b1a)]}})[_0x5c5b0b(0x1cb0)](function(_0x5d55d4){const _0x41928c=_0x5c5b0b;_0x5d55d4&&(_0x5d55d4['id']?_0x580d05[_0x41928c(0x137e)][_0x41928c(0x2214)][_0x132c90]=_0x5d55d4:_0x580d05[_0x41928c(0x137e)][_0x41928c(0x2214)][_0x41928c(0x159c)](_0x132c90,0x0,_0x5d55d4),_0x3eb6eb());})[_0x5c5b0b(0x1c4)](function(_0x55dee3){const _0x80f0dd=_0x5c5b0b;_0x55dee3&&_0x127b3f['error']({'title':_0x55dee3[_0x80f0dd(0x291)]?_0x80f0dd(0xeb9)+_0x55dee3[_0x80f0dd(0x291)]+_0x80f0dd(0x1657)+_0x55dee3[_0x80f0dd(0xc22)]:_0x80f0dd(0xd95),'msg':_0x55dee3[_0x80f0dd(0x25c)]?JSON[_0x80f0dd(0x2701)](_0x55dee3[_0x80f0dd(0x25c)]):_0x55dee3['toString']()});});}}function _0x1d70eb(_0x6abad7,_0xa404c9){const _0x3a92d3=_0x2a5384;if(_0x580d05[_0x3a92d3(0x137e)][_0x3a92d3(0x2214)][_0x3a92d3(0xfd0)]){const _0x595789=_0x580d05['inboundrouteApps']['rows'][_0xa404c9]?_0x580d05[_0x3a92d3(0x137e)][_0x3a92d3(0x2214)][_0xa404c9]:_0x580d05[_0x3a92d3(0x137e)][_0x3a92d3(0x2214)][0x0];_0x4b14be[_0x3a92d3(0xe27)]({'controller':'EditInboundAppintervalDialogController','controllerAs':'vm','templateUrl':_0x286922,'parent':angular[_0x3a92d3(0x1853)](_0x2f29c3[_0x3a92d3(0x1ed9)]),'targetEvent':_0x6abad7,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x595789['interval'],'IntervalId':_0x595789['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x580d05['crudPermissions']}})[_0x3a92d3(0x1cb0)](function(_0x55cac1){const _0x550591=_0x3a92d3;_0x55cac1&&(_0x595789[_0x550591(0x1ac8)]=_0x55cac1['interval']||_0x550591(0x965),_0x595789[_0x550591(0x1a60)]=_0x55cac1[_0x550591(0x1a60)]||null,_0x3eb6eb());});}}function _0x3eb6eb(){const _0x25ac98=_0x2a5384,_0x401826=[_0x25ac98(0x11cf),_0x25ac98(0x2580)];let _0xbae3e3=0x2,_0x513b7c=[];_0x513b7c[_0x25ac98(0x2785)]({'type':_0x25ac98(0x26c0),'app':_0x25ac98(0x11c3),'appdata':'CDR(type)=inbound','context':_0x580d05[_0x25ac98(0x80a)][_0x25ac98(0x2056)],'exten':_0x580d05[_0x25ac98(0x80a)][_0x25ac98(0x26a2)],'priority':_0xbae3e3++,'VoiceExtensionId':_0x580d05[_0x25ac98(0x80a)]['id']}),_0x513b7c['push']({'type':_0x25ac98(0x26c0),'app':_0x25ac98(0x11c3),'appdata':_0x25ac98(0xf20),'context':_0x580d05[_0x25ac98(0x80a)]['context'],'exten':_0x580d05['inboundroute'][_0x25ac98(0x26a2)],'priority':_0xbae3e3++,'VoiceExtensionId':_0x580d05[_0x25ac98(0x80a)]['id']}),_0x513b7c['push']({'type':'inbound','app':_0x25ac98(0x11c3),'appdata':_0x25ac98(0x1781),'context':_0x580d05[_0x25ac98(0x80a)][_0x25ac98(0x2056)],'exten':_0x580d05[_0x25ac98(0x80a)][_0x25ac98(0x26a2)],'priority':_0xbae3e3++,'VoiceExtensionId':_0x580d05[_0x25ac98(0x80a)]['id']}),_0x513b7c[_0x25ac98(0x2785)]({'type':_0x25ac98(0x26c0),'app':_0x25ac98(0x11c3),'appdata':_0x25ac98(0x4ba),'context':_0x580d05[_0x25ac98(0x80a)][_0x25ac98(0x2056)],'exten':_0x580d05[_0x25ac98(0x80a)][_0x25ac98(0x26a2)],'priority':_0xbae3e3++,'VoiceExtensionId':_0x580d05[_0x25ac98(0x80a)]['id']});for(let _0x242f94=0x0,_0x4531b3=0x0;_0x242f94<_0x580d05[_0x25ac98(0x137e)]['rows'][_0x25ac98(0xfd0)];_0x242f94++,_0x4531b3=0x0){const _0x764e19=_0x580d05['inboundrouteApps']['rows'][_0x242f94],_0x54eef7=[],_0x3ecf6c=[];_0x764e19[_0x25ac98(0xb4a)]=_0x764e19[_0x25ac98(0x1ac8)]!=='*,*,*,*'?[_0x764e19[_0x25ac98(0x1ac8)]]:_0x764e19[_0x25ac98(0x1a60)]?_0x39641b()[_0x25ac98(0x1de2)](_0x39641b()[_0x25ac98(0x1c99)](_0x580d05[_0x25ac98(0xb4a)][_0x25ac98(0x2214)],{'IntervalId':_0x764e19[_0x25ac98(0x1a60)]}),_0x25ac98(0x1ac8)):[],_0x764e19[_0x25ac98(0x2056)]=_0x580d05[_0x25ac98(0x80a)]['context'],_0x764e19[_0x25ac98(0x26a2)]=_0x580d05['inboundroute'][_0x25ac98(0x26a2)];_0x764e19[_0x25ac98(0x66a)]&&(_0x764e19['type']=_0x764e19[_0x25ac98(0x66a)]['toLowerCase']());typeof _0x764e19[_0x25ac98(0x24d5)]!==_0x25ac98(0x16b5)&&(_0x401826['includes'](_0x764e19[_0x25ac98(0x22e1)][_0x25ac98(0x1680)]())&&_0x764e19[_0x25ac98(0x299b)]!==_0x25ac98(0x197c)&&(_0x764e19['answer']?(_0x54eef7[_0x25ac98(0x2785)]({'type':_0x764e19[_0x25ac98(0x66a)]['toLowerCase'](),'app':_0x25ac98(0x1991),'appdata':_0x25ac98(0x14f5),'context':_0x580d05['inboundroute'][_0x25ac98(0x2056)],'exten':_0x580d05['inboundroute']['exten'],'priority':_0x764e19[_0x25ac98(0xb4a)]['length']+_0xbae3e3+_0x4531b3++,'VoiceExtensionId':_0x580d05[_0x25ac98(0x80a)]['id']}),_0x54eef7[_0x25ac98(0x2785)]({'type':_0x764e19[_0x25ac98(0x66a)][_0x25ac98(0x1680)](),'app':_0x25ac98(0x11c3),'appdata':_0x25ac98(0x998),'context':_0x580d05[_0x25ac98(0x80a)][_0x25ac98(0x2056)],'exten':_0x580d05[_0x25ac98(0x80a)][_0x25ac98(0x26a2)],'priority':_0x764e19[_0x25ac98(0xb4a)][_0x25ac98(0xfd0)]+_0xbae3e3+_0x4531b3++,'VoiceExtensionId':_0x580d05[_0x25ac98(0x80a)]['id']})):(_0x54eef7[_0x25ac98(0x2785)]({'type':_0x764e19[_0x25ac98(0x66a)][_0x25ac98(0x1680)](),'app':'ExecIf','appdata':'$[${XCALLY-MOTION-PROGRESS}=0]?Progress','context':_0x580d05['inboundroute'][_0x25ac98(0x2056)],'exten':_0x580d05['inboundroute']['exten'],'priority':_0x764e19[_0x25ac98(0xb4a)][_0x25ac98(0xfd0)]+_0xbae3e3+_0x4531b3++,'VoiceExtensionId':_0x580d05[_0x25ac98(0x80a)]['id']}),_0x54eef7[_0x25ac98(0x2785)]({'type':_0x764e19['type'][_0x25ac98(0x1680)](),'app':_0x25ac98(0x11c3),'appdata':'XCALLY-MOTION-PROGRESS=1','context':_0x580d05[_0x25ac98(0x80a)]['context'],'exten':_0x580d05[_0x25ac98(0x80a)][_0x25ac98(0x26a2)],'priority':_0x764e19['intervals'][_0x25ac98(0xfd0)]+_0xbae3e3+_0x4531b3++,'VoiceExtensionId':_0x580d05[_0x25ac98(0x80a)]['id']}))));for(let _0x40a156=0x0;_0x40a156<_0x764e19['intervals'][_0x25ac98(0xfd0)];_0x40a156++){const _0x5b0e5b=_0xbae3e3+_0x764e19[_0x25ac98(0xb4a)][_0x25ac98(0xfd0)],_0x46f5bd=_0x40a156===_0x764e19['intervals']['length']-0x1?_0xbae3e3+_0x54eef7[_0x25ac98(0xfd0)]+_0x3ecf6c[_0x25ac98(0xfd0)]+0x2:_0xbae3e3+_0x40a156+0x1;_0x54eef7[_0x25ac98(0x159c)](_0x40a156,0x0,{'type':'inbound','app':'GotoIfTime','appdata':_0x764e19['intervals'][_0x40a156]+'?'+_0x580d05['inboundroute'][_0x25ac98(0x2056)]+_0x25ac98(0xa5c)+_0x5b0e5b+':'+_0x580d05['inboundroute'][_0x25ac98(0x2056)]+_0x25ac98(0xa5c)+_0x46f5bd,'exten':_0x580d05[_0x25ac98(0x80a)][_0x25ac98(0x26a2)],'context':_0x580d05[_0x25ac98(0x80a)][_0x25ac98(0x2056)],'priority':_0xbae3e3+_0x40a156,'VoiceExtensionId':_0x580d05[_0x25ac98(0x80a)]['id']});}_0x764e19[_0x25ac98(0x521)]=_0x54eef7[_0x25ac98(0xfd0)]?_0x39641b()[_0x25ac98(0x1f9e)](_0x54eef7)[_0x25ac98(0x521)]+0x1:_0xbae3e3,_0xbae3e3=(_0x3ecf6c['length']?_0x39641b()[_0x25ac98(0x1f9e)](_0x3ecf6c)['priority']:_0x764e19[_0x25ac98(0x521)])+0x1,_0x513b7c=_0x39641b()[_0x25ac98(0x298a)](_0x513b7c,_0x54eef7,[_0x764e19],_0x3ecf6c);}_0x513b7c[_0x25ac98(0x2785)]({'type':_0x25ac98(0x26c0),'app':'Hangup','exten':_0x580d05[_0x25ac98(0x80a)][_0x25ac98(0x26a2)],'context':_0x580d05[_0x25ac98(0x80a)][_0x25ac98(0x2056)],'priority':_0xbae3e3,'VoiceExtensionId':_0x580d05[_0x25ac98(0x80a)]['id']}),_0x57844e[_0x25ac98(0x1059)]['addApplications']({'id':_0x580d05[_0x25ac98(0x80a)]['id']},_0x39641b()[_0x25ac98(0x1d33)](_0x513b7c,_0x25ac98(0x521)))[_0x25ac98(0x1d77)]['then'](function(_0x2a4b13){const _0x17bd2a=_0x25ac98;_0x580d05['inboundrouteApps'][_0x17bd2a(0x2214)]=_0x2a4b13['rows'];})['catch'](function(_0x21dce1){const _0x3a21cd=_0x25ac98;console[_0x3a21cd(0x218e)](_0x21dce1);});}function _0x376da0(_0x43cfad){const _0x1431f6=_0x2a5384;_0x580d05[_0x1431f6(0x137e)]=_0x43cfad||{'count':0x0,'rows':[]};}function _0x3c36e7(){const _0xa8dcc6=_0x2a5384;return _0x57844e[_0xa8dcc6(0x1ac8)][_0xa8dcc6(0xbf7)]({'fields':'id,interval,IntervalId'})[_0xa8dcc6(0x1d77)]['then'](function(_0x5157b2){_0x580d05['intervals']=_0x5157b2;})[_0xa8dcc6(0x1c4)](function(_0x2f3a28){const _0x13343c=_0xa8dcc6;console[_0x13343c(0x218e)](_0x2f3a28);});}function _0x2df0ee(){const _0x12d289=_0x2a5384;_0x580d05[_0x12d289(0x2061)]=_0x57844e[_0x12d289(0x1059)]['get'](_0x580d05['query'],_0x376da0)[_0x12d289(0x1d77)];}function _0x170d04(_0x25982b){const _0x3529d9=_0x2a5384;_0x39641b()[_0x3529d9(0x152a)](_0x580d05[_0x3529d9(0x137e)][_0x3529d9(0x2214)],{'id':_0x25982b['id']}),_0x3eb6eb(),_0x127b3f[_0x3529d9(0x829)]({'title':_0x3529d9(0x2923),'msg':_0x25982b[_0x3529d9(0x22e1)]?_0x25982b[_0x3529d9(0x22e1)]+_0x3529d9(0x3f5):''});}function _0x1d2b6b(_0x27c9d3){const _0x31b3dd=_0x2a5384,_0x20a947=_0x4b14be[_0x31b3dd(0x1551)]()[_0x31b3dd(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')['htmlContent'](''+_0x580d05[_0x31b3dd(0x16c8)][_0x31b3dd(0xfd0)]+_0x31b3dd(0x1d6c)+_0x31b3dd(0x1b6))[_0x31b3dd(0x15ad)]('delete\x20applications')[_0x31b3dd(0x728)](_0x27c9d3)['ok']('OK')[_0x31b3dd(0x696)]('CANCEL');_0x4b14be[_0x31b3dd(0xe27)](_0x20a947)[_0x31b3dd(0x1cb0)](function(){const _0x5d323c=_0x31b3dd;_0x580d05[_0x5d323c(0x16c8)][_0x5d323c(0xf90)](function(_0x3bf341){const _0x4e3762=_0x5d323c;_0x39641b()[_0x4e3762(0x152a)](_0x580d05[_0x4e3762(0x137e)][_0x4e3762(0x2214)],{'id':_0x3bf341['id']});}),_0x580d05['selectedInboundRouteApps']=[],_0x3eb6eb();});}}const _0x32d3a7=_0x5e4d05;;_0x4434c4['$inject']=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x29d4),'inboundroute',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x4434c4(_0x2aec98,_0x35b1cd,_0x2d42da,_0x961e04,_0x3ffc0e,_0x457640,_0x56dcde,_0x1eb61f){const _0x10f1c7=_0x5537c6,_0xd50891=this;_0xd50891['currentUser']=_0x56dcde[_0x10f1c7(0x21e8)](),_0xd50891['errors']=[],_0xd50891['title']=_0x10f1c7(0x132b)+(_0x961e04['appType']||_0x961e04[_0x10f1c7(0x22e1)])['toUpperCase'](),_0xd50891[_0x10f1c7(0x4b4)]=angular[_0x10f1c7(0x17fe)](_0x961e04),_0xd50891[_0x10f1c7(0x1b1a)]=_0x1eb61f,_0xd50891['hasModulePermissions']={};if(_0xd50891[_0x10f1c7(0x4b4)]['appdata'])switch(_0xd50891['agi']['appType']?_0xd50891['agi'][_0x10f1c7(0x299b)][_0x10f1c7(0x1680)]():_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x22e1)]['toLowerCase']()){case'custom':break;case'dialogflow':{const _0x4270d2=_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x28df)][_0x10f1c7(0xbe1)](',');_0xd50891[_0x10f1c7(0x4b4)]['key']=_0x4270d2[0x0],_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x12b4)]=_0x4270d2[0x1],_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x173a)]=_0x4270d2[_0x10f1c7(0x14cb)](0x2,_0x4270d2['length'])[_0x10f1c7(0x1f66)](',');}break;case _0x10f1c7(0xece):{const _0x5682f6=_0xd50891['agi'][_0x10f1c7(0x28df)][_0x10f1c7(0xbe1)](',');_0xd50891[_0x10f1c7(0x4b4)]['projectId']=_0x5682f6[0x0],_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x12bf)]=_0x5682f6[0x1],_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x29d6)]=_0x5682f6[0x2],_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x12b4)]=_0x5682f6[0x3],_0xd50891[_0x10f1c7(0x4b4)]['welcomemessage']=_0x5682f6[_0x10f1c7(0x14cb)](0x4,_0x5682f6[_0x10f1c7(0xfd0)])[_0x10f1c7(0x1f66)](',');}break;case _0x10f1c7(0x123a):{const _0x38ca57=_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x28df)][_0x10f1c7(0xbe1)](',');_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x413)]=_0x38ca57[0x0],_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x21d9)]=_0x38ca57[0x1],_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0xd50)]=_0x38ca57[0x2],_0xd50891[_0x10f1c7(0x4b4)]['botname']=_0x38ca57[0x3],_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x173a)]=_0x38ca57['slice'](0x4,_0x38ca57[_0x10f1c7(0xfd0)])[_0x10f1c7(0x1f66)](',');}break;case _0x10f1c7(0x1f71):{const _0x3c8974=_0xd50891['agi'][_0x10f1c7(0x28df)][_0x10f1c7(0xbe1)](',');_0xd50891['agi'][_0x10f1c7(0x18a5)]=isNaN(_0x3c8974[0x0])?_0x3c8974[0x0]:parseInt(_0x3c8974[0x0],0xa),_0xd50891['agi'][_0x10f1c7(0x19d3)]=_0x3c8974[_0x10f1c7(0x14cb)](0x1,_0x3c8974['length'])[_0x10f1c7(0x1f66)](',');}break;case'message':_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x19d3)]=_0xd50891[_0x10f1c7(0x4b4)]['appdata'];break;case _0x10f1c7(0x19d1):_0xd50891[_0x10f1c7(0x4b4)]['name']=_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x28df)][_0x10f1c7(0xbe1)]('=')[0x0],_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x327)]=_0xd50891[_0x10f1c7(0x4b4)]['appdata']['split']('=')[0x1];break;case'agi':_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x12a7)]=_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x28df)];break;default:{const _0x29f475=_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x28df)][_0x10f1c7(0xbe1)](',');_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x12a7)]=_0x39641b()[_0x10f1c7(0xce9)](_0x29f475[0x0])?_0x29f475[0x0]:isNaN(_0x29f475[0x0])?_0x29f475[0x0]:parseInt(_0x29f475[0x0],0xa);}break;}else{}_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x66a)]&&_0xd50891['agi']['type']['toLowerCase']()==='outbound'&&_0xd50891['agi'][_0x10f1c7(0x299b)][_0x10f1c7(0x1680)]()===_0x10f1c7(0x20ff)&&(_0xd50891['agi'][_0x10f1c7(0x586)]=_0xd50891['agi'][_0x10f1c7(0x1340)]?_0xd50891[_0x10f1c7(0x4b4)]['phone'][_0x10f1c7(0xbe1)]('$')[0x0]:undefined,_0xd50891[_0x10f1c7(0x4b4)][_0x10f1c7(0x1e7c)]=_0xd50891['agi']['callerID']?_0x10f1c7(0x25f9)+_0xd50891['agi']['callerID']:undefined);_0xd50891[_0x10f1c7(0x1654)]=_0x1551a8,_0xd50891['closeDialog']=_0x42920b,_0x56dcde[_0x10f1c7(0x22b6)](_0x10f1c7(0x1c60))?_0x457640[_0x10f1c7(0xf61)][_0x10f1c7(0xbf7)]({'fields':_0x10f1c7(0x43c),'sort':_0x10f1c7(0x16b6),'nolimit':'true'})[_0x10f1c7(0x1d77)][_0x10f1c7(0x1cb0)](function(_0x5c466f){const _0x587361=_0x10f1c7;_0xd50891[_0x587361(0x2981)]=_0x5c466f[_0x587361(0x2214)]||[];})['catch'](function(_0x202cbb){const _0x3ab843=_0x10f1c7;_0x2d42da['error']({'title':_0x202cbb[_0x3ab843(0x291)]?_0x3ab843(0xeb9)+_0x202cbb[_0x3ab843(0x291)]+'\x20-\x20'+_0x202cbb[_0x3ab843(0xc22)]:_0x3ab843(0x214c),'msg':_0x202cbb[_0x3ab843(0x25c)]?JSON[_0x3ab843(0x2701)](_0x202cbb[_0x3ab843(0x25c)]):_0x202cbb[_0x3ab843(0x147f)]()});}):_0x457640['squareProject']['get']({'fields':'id,name','sort':_0x10f1c7(0x16b6),'nolimit':_0x10f1c7(0x44d)})[_0x10f1c7(0x1d77)]['then'](function(_0x43de94){const _0x380838=_0x10f1c7;_0xd50891[_0x380838(0x2981)]=_0x43de94[_0x380838(0x2214)]||[];})[_0x10f1c7(0x1cb0)](function(){const _0x3df40b=_0x10f1c7;return _0x457640[_0x3df40b(0x2199)][_0x3df40b(0xbf7)]({'userProfileId':_0xd50891['currentUser'][_0x3df40b(0x13c1)],'sectionId':0x44f})[_0x3df40b(0x1d77)];})['then'](function(_0x1af079){const _0x1b874a=_0x10f1c7,_0x5dca1c=_0x1af079&&_0x1af079[_0x1b874a(0x2214)]?_0x1af079[_0x1b874a(0x2214)][0x0]:null;if(!_0x5dca1c){const _0x559271=[];let _0x534044=null;_0xd50891[_0x1b874a(0x4b4)]&&(_0x534044=_0x39641b()[_0x1b874a(0x13b4)](_0xd50891['projects'],{'name':_0xd50891['agi'][_0x1b874a(0x12a7)]}));for(let _0x4770e6=0x0;_0x4770e6<_0xd50891[_0x1b874a(0x2981)][_0x1b874a(0xfd0)];_0x4770e6++){_0x534044&&_0xd50891[_0x1b874a(0x2981)][_0x4770e6]['id']===_0x534044['id']&&(_0xd50891[_0x1b874a(0x2981)][_0x4770e6]['canSelect']=![],_0x559271[_0x1b874a(0x2785)](_0xd50891[_0x1b874a(0x2981)][_0x4770e6]));}_0xd50891[_0x1b874a(0x2981)]=_0x559271;}else{if(!_0x5dca1c[_0x1b874a(0x12f4)])return _0x457640[_0x1b874a(0x1198)]['get']({'sectionId':_0x5dca1c['id']})[_0x1b874a(0x1d77)][_0x1b874a(0x1cb0)](function(_0xbcacf5){const _0x5ea4a5=_0x1b874a,_0x57b9b0=_0x39641b()[_0x5ea4a5(0x1de2)](_0xbcacf5[_0x5ea4a5(0x2214)],function(_0x27b67b){const _0x50ac0c=_0x5ea4a5;return _0x39641b()[_0x50ac0c(0x13b4)](_0xd50891[_0x50ac0c(0x2981)],{'id':_0x27b67b[_0x50ac0c(0x2982)]});});let _0xf99820=null;_0xd50891[_0x5ea4a5(0x4b4)]&&(_0xf99820=_0x39641b()[_0x5ea4a5(0x13b4)](_0xd50891[_0x5ea4a5(0x2981)],{'name':_0xd50891[_0x5ea4a5(0x4b4)][_0x5ea4a5(0x12a7)]}));if(_0xf99820&&!_0x39641b()['some'](_0x57b9b0,['id',_0xf99820['id']])){const _0x4b0e5b=_0x39641b()[_0x5ea4a5(0x13b4)](_0xd50891[_0x5ea4a5(0x2981)],{'id':_0xf99820['id']});_0x4b0e5b['canSelect']=![],_0x57b9b0[_0x5ea4a5(0x2785)](_0x4b0e5b);}_0xd50891['projects']=_0x57b9b0;});}})[_0x10f1c7(0x1c4)](function(_0x4db344){const _0x1f9e98=_0x10f1c7;_0x2d42da[_0x1f9e98(0x218e)]({'title':_0x4db344[_0x1f9e98(0x291)]?_0x1f9e98(0xeb9)+_0x4db344[_0x1f9e98(0x291)]+_0x1f9e98(0x1657)+_0x4db344[_0x1f9e98(0xc22)]:_0x1f9e98(0x2101),'msg':_0x4db344[_0x1f9e98(0x25c)]?JSON[_0x1f9e98(0x2701)](_0x4db344[_0x1f9e98(0x25c)]):_0x4db344[_0x1f9e98(0x147f)]()});});function _0x1551a8(){const _0x5eec37=_0x10f1c7;_0xd50891[_0x5eec37(0x1a7c)]=[];const _0x1af30b=[];_0xd50891[_0x5eec37(0x4b4)][_0x5eec37(0x66a)]&&_0xd50891[_0x5eec37(0x4b4)][_0x5eec37(0x66a)][_0x5eec37(0x1680)]()===_0x5eec37(0x895)&&_0xd50891['agi']['appType']===_0x5eec37(0x25f4)&&(_0xd50891[_0x5eec37(0x4b4)]['phone']=_0x3ffc0e[_0x5eec37(0x325)]?(_0xd50891[_0x5eec37(0x4b4)][_0x5eec37(0x586)]||'')+_0x5eec37(0x19e4)+_0x3ffc0e['cutdigits']+'}':(_0xd50891[_0x5eec37(0x4b4)][_0x5eec37(0x586)]||'')+_0x5eec37(0xcdd),_0x3ffc0e[_0x5eec37(0xf8d)]!==_0x5eec37(0x13b1)?_0xd50891['agi'][_0x5eec37(0x2224)]['indexOf'](_0x5eec37(0x106a))<0x0&&(_0xd50891[_0x5eec37(0x4b4)][_0x5eec37(0x2224)]+=_0x5eec37(0x106a)):_0xd50891[_0x5eec37(0x4b4)][_0x5eec37(0x2224)]=_0xd50891['agi']['options']['replace'](_0x5eec37(0x106a),''));if(_0xd50891[_0x5eec37(0x4b4)]['appType']&&_0xd50891[_0x5eec37(0x4b4)][_0x5eec37(0x299b)]==='custom'){}else switch((_0xd50891['agi'][_0x5eec37(0x22e1)]||_0xd50891[_0x5eec37(0x4b4)][_0x5eec37(0x299b)])[_0x5eec37(0x1680)]()){case _0x5eec37(0x19d1):_0xd50891[_0x5eec37(0x4b4)][_0x5eec37(0x28df)]=_0xd50891[_0x5eec37(0x4b4)][_0x5eec37(0x16b6)]+'='+_0xd50891[_0x5eec37(0x4b4)][_0x5eec37(0x327)];break;case _0x5eec37(0x197c):break;default:_0x1af30b[0x0]=_0xd50891[_0x5eec37(0x4b4)]['project'],_0xd50891[_0x5eec37(0x4b4)]['appdata']=_0x1af30b[_0x5eec37(0x1f66)](',');}_0x42920b(_0xd50891[_0x5eec37(0x4b4)]);}function _0x42920b(_0x4af35f){const _0x17f712=_0x10f1c7;_0x2aec98[_0x17f712(0x1426)](_0x4af35f);}}const _0x4bff43=_0x4434c4;;_0xf379d7[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x29d4),_0x5537c6(0x80a),_0x5537c6(0x142b),'Auth','crudPermissions'];function _0xf379d7(_0x47dc59,_0x2af4d8,_0x2a304b,_0x452868,_0xca479a,_0x48c44d,_0x5383cc,_0x3e4e5f){const _0x561fcd=_0x5537c6,_0xae8d76=this;_0xae8d76[_0x561fcd(0xe76)]=_0x5383cc[_0x561fcd(0x21e8)](),_0xae8d76[_0x561fcd(0x1a7c)]=[],_0xae8d76[_0x561fcd(0x1386)]=_0x561fcd(0x132b)+(_0x452868['appType']||_0x452868['app'])[_0x561fcd(0x2335)](),_0xae8d76[_0x561fcd(0x197c)]=angular[_0x561fcd(0x17fe)](_0x452868),_0xae8d76[_0x561fcd(0x1b1a)]=_0x3e4e5f,_0xae8d76['hasModulePermissions']={};if(_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x28df)])switch(_0xae8d76[_0x561fcd(0x197c)]['appType']?_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x299b)][_0x561fcd(0x1680)]():_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x22e1)][_0x561fcd(0x1680)]()){case _0x561fcd(0x197c):break;case _0x561fcd(0x711):{const _0x553604=_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x28df)][_0x561fcd(0xbe1)](',');_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0xee8)]=_0x553604[0x0],_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x12b4)]=_0x553604[0x1],_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x173a)]=_0x553604[_0x561fcd(0x14cb)](0x2,_0x553604[_0x561fcd(0xfd0)])[_0x561fcd(0x1f66)](',');}break;case _0x561fcd(0xece):{const _0x48c71f=_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x28df)]['split'](',');_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x2854)]=_0x48c71f[0x0],_0xae8d76[_0x561fcd(0x197c)]['clientEmail']=_0x48c71f[0x1],_0xae8d76[_0x561fcd(0x197c)]['privateKey']=_0x48c71f[0x2],_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x12b4)]=_0x48c71f[0x3],_0xae8d76[_0x561fcd(0x197c)]['welcomemessage']=_0x48c71f[_0x561fcd(0x14cb)](0x4,_0x48c71f[_0x561fcd(0xfd0)])['join'](',');}break;case _0x561fcd(0x123a):{const _0x4e1406=_0xae8d76[_0x561fcd(0x197c)]['appdata']['split'](',');_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x413)]=_0x4e1406[0x0],_0xae8d76['custom'][_0x561fcd(0x21d9)]=_0x4e1406[0x1],_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0xd50)]=_0x4e1406[0x2],_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x1c7f)]=_0x4e1406[0x3],_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x173a)]=_0x4e1406[_0x561fcd(0x14cb)](0x4,_0x4e1406[_0x561fcd(0xfd0)])['join'](',');}break;case _0x561fcd(0x1f71):{const _0xf9ce64=_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x28df)][_0x561fcd(0xbe1)](',');_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x18a5)]=isNaN(_0xf9ce64[0x0])?_0xf9ce64[0x0]:parseInt(_0xf9ce64[0x0],0xa),_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x19d3)]=_0xf9ce64['slice'](0x1,_0xf9ce64[_0x561fcd(0xfd0)])[_0x561fcd(0x1f66)](',');}break;case _0x561fcd(0x155e):_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x19d3)]=_0xae8d76[_0x561fcd(0x197c)]['appdata'];break;case'set':_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x16b6)]=_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x28df)]['split']('=')[0x0],_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x327)]=_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x28df)][_0x561fcd(0xbe1)]('=')[0x1];break;case _0x561fcd(0x4b4):_0xae8d76[_0x561fcd(0x197c)]['project']=_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x28df)];break;default:{const _0x7c78eb=_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x28df)][_0x561fcd(0xbe1)](',');_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x22e1)]=_0x39641b()[_0x561fcd(0xce9)](_0x7c78eb[0x0])?_0x7c78eb[0x0]:isNaN(_0x7c78eb[0x0])?_0x7c78eb[0x0]:parseInt(_0x7c78eb[0x0],0xa),_0xae8d76['custom'][_0x561fcd(0x28df)]=_0x39641b()['isEmpty'](_0x7c78eb[0x1])?_0x7c78eb[0x1]:isNaN(_0x7c78eb[0x1])?_0x7c78eb[0x1]:parseInt(_0x7c78eb[0x1],0xa);}break;}else{}_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x66a)]&&_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x66a)][_0x561fcd(0x1680)]()==='outbound'&&_0xae8d76[_0x561fcd(0x197c)]['appType'][_0x561fcd(0x1680)]()===_0x561fcd(0x20ff)&&(_0xae8d76['custom']['prefix']=_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x1340)]?_0xae8d76['custom'][_0x561fcd(0x1340)][_0x561fcd(0xbe1)]('$')[0x0]:undefined,_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x1e7c)]=_0xae8d76['custom'][_0x561fcd(0x2816)]?'CALLERID(all)='+_0xae8d76[_0x561fcd(0x197c)][_0x561fcd(0x2816)]:undefined);_0xae8d76[_0x561fcd(0x1654)]=_0x28e224,_0xae8d76[_0x561fcd(0xda0)]=_0x43ef8f;function _0x28e224(){const _0x3d386c=_0x561fcd;_0xae8d76['errors']=[];const _0x1dd066=[];_0xae8d76[_0x3d386c(0x197c)][_0x3d386c(0x66a)]&&_0xae8d76[_0x3d386c(0x197c)][_0x3d386c(0x66a)][_0x3d386c(0x1680)]()===_0x3d386c(0x895)&&_0xae8d76['custom'][_0x3d386c(0x299b)]===_0x3d386c(0x25f4)&&(_0xae8d76['custom'][_0x3d386c(0x1340)]=_0xca479a[_0x3d386c(0x325)]?(_0xae8d76['custom'][_0x3d386c(0x586)]||'')+_0x3d386c(0x19e4)+_0xca479a[_0x3d386c(0x325)]+'}':(_0xae8d76[_0x3d386c(0x197c)]['prefix']||'')+'${EXTEN}',_0xca479a[_0x3d386c(0xf8d)]!==_0x3d386c(0x13b1)?_0xae8d76[_0x3d386c(0x197c)]['options'][_0x3d386c(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0xae8d76[_0x3d386c(0x197c)][_0x3d386c(0x2224)]+='U(xcally-mixmonitor-context)'):_0xae8d76[_0x3d386c(0x197c)][_0x3d386c(0x2224)]=_0xae8d76['custom']['options'][_0x3d386c(0x288f)](_0x3d386c(0x106a),''));if(_0xae8d76[_0x3d386c(0x197c)][_0x3d386c(0x299b)]&&_0xae8d76['custom']['appType']===_0x3d386c(0x197c)){}else switch((_0xae8d76[_0x3d386c(0x197c)][_0x3d386c(0x22e1)]||_0xae8d76[_0x3d386c(0x197c)][_0x3d386c(0x299b)])[_0x3d386c(0x1680)]()){case'set':_0xae8d76[_0x3d386c(0x197c)][_0x3d386c(0x28df)]=_0xae8d76[_0x3d386c(0x197c)]['name']+'='+_0xae8d76[_0x3d386c(0x197c)][_0x3d386c(0x327)];break;case _0x3d386c(0x197c):break;default:_0x1dd066[0x0]=_0xae8d76[_0x3d386c(0x197c)][_0x3d386c(0x22e1)],_0x1dd066[0x1]=_0xae8d76['custom']['appdata'],_0xae8d76[_0x3d386c(0x197c)]['appdata']=_0x1dd066[_0x3d386c(0x1f66)](',');}_0x43ef8f(_0xae8d76[_0x3d386c(0x197c)]);}function _0x43ef8f(_0x311e82){_0x47dc59['hide'](_0x311e82);}}const _0x3288f3=_0xf379d7;;_0x3138f4[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty',_0x5537c6(0x29d4),_0x5537c6(0x80a),_0x5537c6(0x142b),'Auth',_0x5537c6(0x1b1a)];function _0x3138f4(_0x2d7a76,_0x21d460,_0x5d4fb7,_0x1b03ac,_0x46b641,_0x57c4c0,_0x35b81d,_0x130a18){const _0x2deaa7=_0x5537c6,_0x58a1a2=this;_0x58a1a2['currentUser']=_0x35b81d['getCurrentUser'](),_0x58a1a2[_0x2deaa7(0x1a7c)]=[],_0x58a1a2[_0x2deaa7(0x1386)]=_0x2deaa7(0x132b)+(_0x1b03ac[_0x2deaa7(0x299b)]||_0x1b03ac['app'])['toUpperCase'](),_0x58a1a2['dial']=angular[_0x2deaa7(0x17fe)](_0x1b03ac),_0x58a1a2[_0x2deaa7(0x1b1a)]=_0x130a18,_0x58a1a2[_0x2deaa7(0xf4c)]={};if(_0x58a1a2[_0x2deaa7(0xdd8)]['appdata'])switch(_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x299b)]?_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x299b)][_0x2deaa7(0x1680)]():_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x22e1)][_0x2deaa7(0x1680)]()){case _0x2deaa7(0x197c):break;case _0x2deaa7(0x711):{const _0x4c276b=_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x28df)]['split'](',');_0x58a1a2[_0x2deaa7(0xdd8)]['key']=_0x4c276b[0x0],_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x12b4)]=_0x4c276b[0x1],_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x173a)]=_0x4c276b[_0x2deaa7(0x14cb)](0x2,_0x4c276b[_0x2deaa7(0xfd0)])[_0x2deaa7(0x1f66)](',');}break;case _0x2deaa7(0xece):{const _0x231892=_0x58a1a2[_0x2deaa7(0xdd8)]['appdata'][_0x2deaa7(0xbe1)](',');_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x2854)]=_0x231892[0x0],_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x12bf)]=_0x231892[0x1],_0x58a1a2['dial'][_0x2deaa7(0x29d6)]=_0x231892[0x2],_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x12b4)]=_0x231892[0x3],_0x58a1a2[_0x2deaa7(0xdd8)]['welcomemessage']=_0x231892[_0x2deaa7(0x14cb)](0x4,_0x231892[_0x2deaa7(0xfd0)])[_0x2deaa7(0x1f66)](',');}break;case _0x2deaa7(0x123a):{const _0x481039=_0x58a1a2[_0x2deaa7(0xdd8)]['appdata'][_0x2deaa7(0xbe1)](',');_0x58a1a2[_0x2deaa7(0xdd8)]['accesskeyid']=_0x481039[0x0],_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x21d9)]=_0x481039[0x1],_0x58a1a2[_0x2deaa7(0xdd8)]['lexregion']=_0x481039[0x2],_0x58a1a2[_0x2deaa7(0xdd8)]['botname']=_0x481039[0x3],_0x58a1a2['dial'][_0x2deaa7(0x173a)]=_0x481039[_0x2deaa7(0x14cb)](0x4,_0x481039[_0x2deaa7(0xfd0)])[_0x2deaa7(0x1f66)](',');}break;case'autoreply':{const _0x15f39c=_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x28df)][_0x2deaa7(0xbe1)](',');_0x58a1a2['dial'][_0x2deaa7(0x18a5)]=isNaN(_0x15f39c[0x0])?_0x15f39c[0x0]:parseInt(_0x15f39c[0x0],0xa),_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x19d3)]=_0x15f39c[_0x2deaa7(0x14cb)](0x1,_0x15f39c[_0x2deaa7(0xfd0)])['join'](',');}break;case _0x2deaa7(0x155e):_0x58a1a2[_0x2deaa7(0xdd8)]['text']=_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x28df)];break;case _0x2deaa7(0x19d1):_0x58a1a2['dial'][_0x2deaa7(0x16b6)]=_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x28df)]['split']('=')[0x0],_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x327)]=_0x58a1a2['dial'][_0x2deaa7(0x28df)][_0x2deaa7(0xbe1)]('=')[0x1];break;case _0x2deaa7(0x4b4):_0x58a1a2['dial'][_0x2deaa7(0x12a7)]=_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x28df)];break;default:{const _0x335309=_0x58a1a2[_0x2deaa7(0xdd8)]['appdata'][_0x2deaa7(0xbe1)](',');_0x58a1a2['dial'][_0x2deaa7(0x23f2)]=_0x39641b()[_0x2deaa7(0xce9)](_0x335309[0x0])?_0x335309[0x0]:isNaN(_0x335309[0x0])?_0x335309[0x0]:parseInt(_0x335309[0x0],0xa),_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x1719)]=_0x39641b()['isEmpty'](_0x335309[0x1])?_0x335309[0x1]:isNaN(_0x335309[0x1])?_0x335309[0x1]:parseInt(_0x335309[0x1],0xa),_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x2224)]=_0x39641b()['isEmpty'](_0x335309[0x2])?_0x335309[0x2]:isNaN(_0x335309[0x2])?_0x335309[0x2]:parseInt(_0x335309[0x2],0xa),_0x58a1a2['dial'][_0x2deaa7(0x135b)]=_0x39641b()['isEmpty'](_0x335309[0x3])?_0x335309[0x3]:isNaN(_0x335309[0x3])?_0x335309[0x3]:parseInt(_0x335309[0x3],0xa);}break;}else{}_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x66a)]&&_0x58a1a2['dial']['type'][_0x2deaa7(0x1680)]()===_0x2deaa7(0x895)&&_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x299b)][_0x2deaa7(0x1680)]()==='outbounddial'&&(_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x586)]=_0x58a1a2['dial'][_0x2deaa7(0x1340)]?_0x58a1a2[_0x2deaa7(0xdd8)]['phone'][_0x2deaa7(0xbe1)]('$')[0x0]:undefined,_0x58a1a2[_0x2deaa7(0xdd8)]['callerId']=_0x58a1a2['dial'][_0x2deaa7(0x2816)]?_0x2deaa7(0x25f9)+_0x58a1a2[_0x2deaa7(0xdd8)][_0x2deaa7(0x2816)]:undefined);_0x58a1a2['saveInboundRouteApp']=_0x2293cb,_0x58a1a2[_0x2deaa7(0xda0)]=_0x5a419e;function _0x2293cb(){const _0x1c7cb1=_0x2deaa7;_0x58a1a2[_0x1c7cb1(0x1a7c)]=[];const _0x1cb3ff=[];_0x58a1a2[_0x1c7cb1(0xdd8)][_0x1c7cb1(0x66a)]&&_0x58a1a2[_0x1c7cb1(0xdd8)][_0x1c7cb1(0x66a)]['toLowerCase']()===_0x1c7cb1(0x895)&&_0x58a1a2[_0x1c7cb1(0xdd8)][_0x1c7cb1(0x299b)]==='outboundDial'&&(_0x58a1a2[_0x1c7cb1(0xdd8)][_0x1c7cb1(0x1340)]=_0x46b641[_0x1c7cb1(0x325)]?(_0x58a1a2[_0x1c7cb1(0xdd8)][_0x1c7cb1(0x586)]||'')+'${EXTEN:'+_0x46b641[_0x1c7cb1(0x325)]+'}':(_0x58a1a2[_0x1c7cb1(0xdd8)][_0x1c7cb1(0x586)]||'')+_0x1c7cb1(0xcdd),_0x46b641[_0x1c7cb1(0xf8d)]!==_0x1c7cb1(0x13b1)?_0x58a1a2['dial'][_0x1c7cb1(0x2224)][_0x1c7cb1(0xd8a)](_0x1c7cb1(0x106a))<0x0&&(_0x58a1a2[_0x1c7cb1(0xdd8)][_0x1c7cb1(0x2224)]+=_0x1c7cb1(0x106a)):_0x58a1a2['dial'][_0x1c7cb1(0x2224)]=_0x58a1a2[_0x1c7cb1(0xdd8)][_0x1c7cb1(0x2224)][_0x1c7cb1(0x288f)](_0x1c7cb1(0x106a),''));if(_0x58a1a2['dial'][_0x1c7cb1(0x299b)]&&_0x58a1a2[_0x1c7cb1(0xdd8)]['appType']===_0x1c7cb1(0x197c)){}else switch((_0x58a1a2[_0x1c7cb1(0xdd8)][_0x1c7cb1(0x22e1)]||_0x58a1a2['dial']['appType'])[_0x1c7cb1(0x1680)]()){case _0x1c7cb1(0x19d1):_0x58a1a2[_0x1c7cb1(0xdd8)][_0x1c7cb1(0x28df)]=_0x58a1a2[_0x1c7cb1(0xdd8)]['name']+'='+_0x58a1a2[_0x1c7cb1(0xdd8)]['value'];break;case'custom':break;default:_0x1cb3ff[0x0]=_0x58a1a2[_0x1c7cb1(0xdd8)][_0x1c7cb1(0x23f2)],_0x1cb3ff[0x1]=_0x58a1a2['dial'][_0x1c7cb1(0x1719)],_0x1cb3ff[0x2]=_0x58a1a2[_0x1c7cb1(0xdd8)]['options'],_0x1cb3ff[0x3]=_0x58a1a2[_0x1c7cb1(0xdd8)][_0x1c7cb1(0x135b)],_0x58a1a2[_0x1c7cb1(0xdd8)]['appdata']=_0x1cb3ff[_0x1c7cb1(0x1f66)](',');}_0x5a419e(_0x58a1a2[_0x1c7cb1(0xdd8)]);}function _0x5a419e(_0x172706){const _0x5c3ee8=_0x2deaa7;_0x2d7a76[_0x5c3ee8(0x1426)](_0x172706);}}const _0x373cc7=_0x3138f4;;_0x4ca178[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty',_0x5537c6(0x29d4),_0x5537c6(0x80a),_0x5537c6(0x142b),_0x5537c6(0x1774),'crudPermissions'];function _0x4ca178(_0x5e9e44,_0x396c59,_0x40519e,_0xc695e8,_0x35e79f,_0x2d6997,_0x2dc162,_0x485921){const _0x25104d=_0x5537c6,_0xfe0472=this;_0xfe0472['currentUser']=_0x2dc162[_0x25104d(0x21e8)](),_0xfe0472[_0x25104d(0x1a7c)]=[],_0xfe0472['title']=_0x25104d(0x132b)+(_0xc695e8[_0x25104d(0x299b)]||_0xc695e8[_0x25104d(0x22e1)])[_0x25104d(0x2335)](),_0xfe0472[_0x25104d(0x748)]=angular[_0x25104d(0x17fe)](_0xc695e8),_0xfe0472[_0x25104d(0x1b1a)]=_0x485921,_0xfe0472[_0x25104d(0xf4c)]={};if(_0xfe0472[_0x25104d(0x748)][_0x25104d(0x28df)])switch(_0xfe0472[_0x25104d(0x748)][_0x25104d(0x299b)]?_0xfe0472[_0x25104d(0x748)]['appType']['toLowerCase']():_0xfe0472[_0x25104d(0x748)][_0x25104d(0x22e1)][_0x25104d(0x1680)]()){case _0x25104d(0x197c):break;case _0x25104d(0x711):{const _0x1954ba=_0xfe0472['externaldial'][_0x25104d(0x28df)][_0x25104d(0xbe1)](',');_0xfe0472[_0x25104d(0x748)][_0x25104d(0xee8)]=_0x1954ba[0x0],_0xfe0472['externaldial'][_0x25104d(0x12b4)]=_0x1954ba[0x1],_0xfe0472[_0x25104d(0x748)]['welcomemessage']=_0x1954ba[_0x25104d(0x14cb)](0x2,_0x1954ba[_0x25104d(0xfd0)])[_0x25104d(0x1f66)](',');}break;case _0x25104d(0xece):{const _0x599c6b=_0xfe0472[_0x25104d(0x748)][_0x25104d(0x28df)][_0x25104d(0xbe1)](',');_0xfe0472['externaldial']['projectId']=_0x599c6b[0x0],_0xfe0472[_0x25104d(0x748)]['clientEmail']=_0x599c6b[0x1],_0xfe0472[_0x25104d(0x748)][_0x25104d(0x29d6)]=_0x599c6b[0x2],_0xfe0472[_0x25104d(0x748)][_0x25104d(0x12b4)]=_0x599c6b[0x3],_0xfe0472[_0x25104d(0x748)][_0x25104d(0x173a)]=_0x599c6b[_0x25104d(0x14cb)](0x4,_0x599c6b[_0x25104d(0xfd0)])[_0x25104d(0x1f66)](',');}break;case _0x25104d(0x123a):{const _0x317e06=_0xfe0472[_0x25104d(0x748)][_0x25104d(0x28df)][_0x25104d(0xbe1)](',');_0xfe0472[_0x25104d(0x748)][_0x25104d(0x413)]=_0x317e06[0x0],_0xfe0472[_0x25104d(0x748)][_0x25104d(0x21d9)]=_0x317e06[0x1],_0xfe0472[_0x25104d(0x748)][_0x25104d(0xd50)]=_0x317e06[0x2],_0xfe0472[_0x25104d(0x748)]['botname']=_0x317e06[0x3],_0xfe0472['externaldial'][_0x25104d(0x173a)]=_0x317e06[_0x25104d(0x14cb)](0x4,_0x317e06[_0x25104d(0xfd0)])[_0x25104d(0x1f66)](',');}break;case _0x25104d(0x1f71):{const _0x2591b9=_0xfe0472[_0x25104d(0x748)][_0x25104d(0x28df)][_0x25104d(0xbe1)](',');_0xfe0472[_0x25104d(0x748)][_0x25104d(0x18a5)]=isNaN(_0x2591b9[0x0])?_0x2591b9[0x0]:parseInt(_0x2591b9[0x0],0xa),_0xfe0472['externaldial'][_0x25104d(0x19d3)]=_0x2591b9[_0x25104d(0x14cb)](0x1,_0x2591b9['length'])[_0x25104d(0x1f66)](',');}break;case'message':_0xfe0472[_0x25104d(0x748)][_0x25104d(0x19d3)]=_0xfe0472[_0x25104d(0x748)]['appdata'];break;case _0x25104d(0x19d1):_0xfe0472['externaldial'][_0x25104d(0x16b6)]=_0xfe0472[_0x25104d(0x748)]['appdata']['split']('=')[0x0],_0xfe0472['externaldial'][_0x25104d(0x327)]=_0xfe0472[_0x25104d(0x748)][_0x25104d(0x28df)][_0x25104d(0xbe1)]('=')[0x1];break;case _0x25104d(0x4b4):_0xfe0472['externaldial'][_0x25104d(0x12a7)]=_0xfe0472[_0x25104d(0x748)][_0x25104d(0x28df)];break;default:{const _0x857489=_0xfe0472[_0x25104d(0x748)][_0x25104d(0x28df)]['split'](',');_0xfe0472['externaldial'][_0x25104d(0x1ae0)]=_0x857489[0x0][_0x25104d(0xbe1)]('/')[0x1],_0xfe0472[_0x25104d(0x748)][_0x25104d(0x1340)]=_0x857489[0x0][_0x25104d(0xbe1)]('/')[0x2],_0xfe0472[_0x25104d(0x748)][_0x25104d(0x1719)]=_0x39641b()[_0x25104d(0xce9)](_0x857489[0x1])?_0x857489[0x1]:isNaN(_0x857489[0x1])?_0x857489[0x1]:parseInt(_0x857489[0x1],0xa),_0xfe0472['externaldial'][_0x25104d(0x2224)]=_0x39641b()['isEmpty'](_0x857489[0x2])?_0x857489[0x2]:isNaN(_0x857489[0x2])?_0x857489[0x2]:parseInt(_0x857489[0x2],0xa),_0xfe0472[_0x25104d(0x748)][_0x25104d(0x135b)]=_0x39641b()[_0x25104d(0xce9)](_0x857489[0x3])?_0x857489[0x3]:isNaN(_0x857489[0x3])?_0x857489[0x3]:parseInt(_0x857489[0x3],0xa);}break;}else{}_0xfe0472[_0x25104d(0x748)]['type']&&_0xfe0472['externaldial']['type'][_0x25104d(0x1680)]()===_0x25104d(0x895)&&_0xfe0472[_0x25104d(0x748)]['appType'][_0x25104d(0x1680)]()==='outbounddial'&&(_0xfe0472[_0x25104d(0x748)][_0x25104d(0x586)]=_0xfe0472[_0x25104d(0x748)]['phone']?_0xfe0472[_0x25104d(0x748)][_0x25104d(0x1340)]['split']('$')[0x0]:undefined,_0xfe0472['externaldial']['callerId']=_0xfe0472[_0x25104d(0x748)]['callerID']?_0x25104d(0x25f9)+_0xfe0472[_0x25104d(0x748)][_0x25104d(0x2816)]:undefined);_0xfe0472[_0x25104d(0x1654)]=_0x2755af,_0xfe0472[_0x25104d(0xda0)]=_0x520f9e,_0x2dc162[_0x25104d(0x22b6)](_0x25104d(0x1c60))?_0x2d6997[_0x25104d(0x1ae0)][_0x25104d(0xbf7)]({'fields':'id,name','sort':'name','nolimit':'true'})[_0x25104d(0x1d77)]['then'](function(_0x3f45cc){_0xfe0472['trunks']=_0x3f45cc['rows']||[];})[_0x25104d(0x1c4)](function(_0xec00e6){const _0x185ebc=_0x25104d;_0x40519e[_0x185ebc(0x218e)]({'title':_0xec00e6[_0x185ebc(0x291)]?'API:'+_0xec00e6[_0x185ebc(0x291)]+'\x20-\x20'+_0xec00e6['statusText']:'SYSTEM:GET_TRUNKS','msg':_0xec00e6[_0x185ebc(0x25c)]?JSON[_0x185ebc(0x2701)](_0xec00e6[_0x185ebc(0x25c)]):_0xec00e6[_0x185ebc(0x147f)]()});}):_0x2d6997[_0x25104d(0x1ae0)][_0x25104d(0xbf7)]({'fields':_0x25104d(0x43c),'sort':'name','nolimit':_0x25104d(0x44d)})[_0x25104d(0x1d77)][_0x25104d(0x1cb0)](function(_0x3a6d8b){const _0x5e8025=_0x25104d;_0xfe0472[_0x5e8025(0x1363)]=_0x3a6d8b[_0x5e8025(0x2214)]||[];})[_0x25104d(0x1cb0)](function(){const _0x541f76=_0x25104d;return _0x2d6997[_0x541f76(0x2199)][_0x541f76(0xbf7)]({'userProfileId':_0xfe0472[_0x541f76(0xe76)][_0x541f76(0x13c1)],'sectionId':0x3f3})[_0x541f76(0x1d77)];})[_0x25104d(0x1cb0)](function(_0x5b76eb){const _0x17c9e5=_0x25104d,_0x19e7e6=_0x5b76eb&&_0x5b76eb['rows']?_0x5b76eb['rows'][0x0]:null;if(!_0x19e7e6){const _0x28082b=[];let _0x202d29=null;_0xfe0472[_0x17c9e5(0x748)]&&(_0x202d29=_0x39641b()[_0x17c9e5(0x13b4)](_0xfe0472[_0x17c9e5(0x1363)],{'name':_0xfe0472['externaldial'][_0x17c9e5(0x1ae0)]}));for(let _0x2a377e=0x0;_0x2a377e<_0xfe0472['trunks'][_0x17c9e5(0xfd0)];_0x2a377e++){_0x202d29&&_0xfe0472[_0x17c9e5(0x1363)][_0x2a377e]['id']===_0x202d29['id']&&(_0xfe0472[_0x17c9e5(0x1363)][_0x2a377e][_0x17c9e5(0x15da)]=![],_0x28082b[_0x17c9e5(0x2785)](_0xfe0472[_0x17c9e5(0x1363)][_0x2a377e]));}_0xfe0472['trunks']=_0x28082b;}else{if(!_0x19e7e6[_0x17c9e5(0x12f4)])return _0x2d6997[_0x17c9e5(0x1198)][_0x17c9e5(0xbf7)]({'sectionId':_0x19e7e6['id']})[_0x17c9e5(0x1d77)][_0x17c9e5(0x1cb0)](function(_0x3cd7aa){const _0x5bd4cf=_0x17c9e5,_0x4cee41=_0x39641b()[_0x5bd4cf(0x1de2)](_0x3cd7aa['rows'],function(_0x4a2257){const _0x11c4c5=_0x5bd4cf;return _0x39641b()[_0x11c4c5(0x13b4)](_0xfe0472[_0x11c4c5(0x1363)],{'id':_0x4a2257[_0x11c4c5(0x2982)]});});let _0x554389=null;_0xfe0472['externaldial']&&(_0x554389=_0x39641b()[_0x5bd4cf(0x13b4)](_0xfe0472[_0x5bd4cf(0x1363)],{'name':_0xfe0472[_0x5bd4cf(0x748)]['trunk']}));if(_0x554389&&!_0x39641b()['some'](_0x4cee41,['id',_0x554389['id']])){const _0x27a8db=_0x39641b()['find'](_0xfe0472['trunks'],{'id':_0x554389['id']});_0x27a8db[_0x5bd4cf(0x15da)]=![],_0x4cee41[_0x5bd4cf(0x2785)](_0x27a8db);}_0xfe0472[_0x5bd4cf(0x1363)]=_0x4cee41;});}})['catch'](function(_0x229b40){const _0x4c7950=_0x25104d;_0x40519e[_0x4c7950(0x218e)]({'title':_0x229b40[_0x4c7950(0x291)]?_0x4c7950(0xeb9)+_0x229b40[_0x4c7950(0x291)]+_0x4c7950(0x1657)+_0x229b40[_0x4c7950(0xc22)]:_0x4c7950(0x2040),'msg':_0x229b40[_0x4c7950(0x25c)]?JSON[_0x4c7950(0x2701)](_0x229b40[_0x4c7950(0x25c)]):_0x229b40[_0x4c7950(0x147f)]()});});function _0x2755af(){const _0x1223ee=_0x25104d;_0xfe0472[_0x1223ee(0x1a7c)]=[];const _0x5a4bdb=[];_0xfe0472[_0x1223ee(0x748)][_0x1223ee(0x66a)]&&_0xfe0472[_0x1223ee(0x748)][_0x1223ee(0x66a)][_0x1223ee(0x1680)]()===_0x1223ee(0x895)&&_0xfe0472[_0x1223ee(0x748)][_0x1223ee(0x299b)]===_0x1223ee(0x25f4)&&(_0xfe0472[_0x1223ee(0x748)][_0x1223ee(0x1340)]=_0x35e79f[_0x1223ee(0x325)]?(_0xfe0472['externaldial'][_0x1223ee(0x586)]||'')+'${EXTEN:'+_0x35e79f[_0x1223ee(0x325)]+'}':(_0xfe0472[_0x1223ee(0x748)][_0x1223ee(0x586)]||'')+'${EXTEN}',_0x35e79f[_0x1223ee(0xf8d)]!==_0x1223ee(0x13b1)?_0xfe0472['externaldial']['options'][_0x1223ee(0xd8a)](_0x1223ee(0x106a))<0x0&&(_0xfe0472[_0x1223ee(0x748)][_0x1223ee(0x2224)]+=_0x1223ee(0x106a)):_0xfe0472[_0x1223ee(0x748)]['options']=_0xfe0472[_0x1223ee(0x748)][_0x1223ee(0x2224)][_0x1223ee(0x288f)](_0x1223ee(0x106a),''));if(_0xfe0472[_0x1223ee(0x748)]['appType']&&_0xfe0472[_0x1223ee(0x748)][_0x1223ee(0x299b)]===_0x1223ee(0x197c)){}else switch((_0xfe0472[_0x1223ee(0x748)][_0x1223ee(0x22e1)]||_0xfe0472['externaldial'][_0x1223ee(0x299b)])[_0x1223ee(0x1680)]()){case'set':_0xfe0472[_0x1223ee(0x748)][_0x1223ee(0x28df)]=_0xfe0472['externaldial'][_0x1223ee(0x16b6)]+'='+_0xfe0472['externaldial'][_0x1223ee(0x327)];break;case'custom':break;default:_0x5a4bdb[0x0]=[_0x1223ee(0x2832),_0xfe0472[_0x1223ee(0x748)][_0x1223ee(0x1ae0)],_0xfe0472['externaldial'][_0x1223ee(0x1340)]][_0x1223ee(0x1f66)]('/'),_0x5a4bdb[0x1]=_0xfe0472[_0x1223ee(0x748)]['timeout'],_0x5a4bdb[0x2]=_0xfe0472[_0x1223ee(0x748)][_0x1223ee(0x2224)],_0x5a4bdb[0x3]=_0xfe0472[_0x1223ee(0x748)][_0x1223ee(0x135b)],_0xfe0472[_0x1223ee(0x748)][_0x1223ee(0x28df)]=_0x5a4bdb['join'](',');}_0x520f9e(_0xfe0472['externaldial']);}function _0x520f9e(_0x5ee5c){_0x5e9e44['hide'](_0x5ee5c);}}const _0x2b9ff1=_0x4ca178;;_0x29257d[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x29d4),_0x5537c6(0x80a),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x29257d(_0x1d6f20,_0x41fac0,_0x17af67,_0x1cdcb9,_0x2d09ea,_0x5a0f54,_0x31c787,_0x3a2bdd){const _0x359ae6=_0x5537c6,_0x591f99=this;_0x591f99[_0x359ae6(0xe76)]=_0x31c787['getCurrentUser'](),_0x591f99['errors']=[],_0x591f99[_0x359ae6(0x1386)]=_0x359ae6(0x132b)+(_0x1cdcb9['appType']||_0x1cdcb9[_0x359ae6(0x22e1)])[_0x359ae6(0x2335)](),_0x591f99[_0x359ae6(0x3da)]=angular[_0x359ae6(0x17fe)](_0x1cdcb9),_0x591f99[_0x359ae6(0x1b1a)]=_0x3a2bdd,_0x591f99[_0x359ae6(0xf4c)]={};if(_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x28df)])switch(_0x591f99['goto'][_0x359ae6(0x299b)]?_0x591f99['goto']['appType'][_0x359ae6(0x1680)]():_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x22e1)]['toLowerCase']()){case _0x359ae6(0x197c):break;case _0x359ae6(0x711):{const _0x246101=_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x28df)][_0x359ae6(0xbe1)](',');_0x591f99[_0x359ae6(0x3da)]['key']=_0x246101[0x0],_0x591f99['goto'][_0x359ae6(0x12b4)]=_0x246101[0x1],_0x591f99[_0x359ae6(0x3da)]['welcomemessage']=_0x246101[_0x359ae6(0x14cb)](0x2,_0x246101['length'])['join'](',');}break;case _0x359ae6(0xece):{const _0x165792=_0x591f99['goto'][_0x359ae6(0x28df)]['split'](',');_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x2854)]=_0x165792[0x0],_0x591f99['goto']['clientEmail']=_0x165792[0x1],_0x591f99['goto'][_0x359ae6(0x29d6)]=_0x165792[0x2],_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x12b4)]=_0x165792[0x3],_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x173a)]=_0x165792['slice'](0x4,_0x165792[_0x359ae6(0xfd0)])[_0x359ae6(0x1f66)](',');}break;case _0x359ae6(0x123a):{const _0x489983=_0x591f99['goto'][_0x359ae6(0x28df)][_0x359ae6(0xbe1)](',');_0x591f99[_0x359ae6(0x3da)]['accesskeyid']=_0x489983[0x0],_0x591f99['goto'][_0x359ae6(0x21d9)]=_0x489983[0x1],_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0xd50)]=_0x489983[0x2],_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x1c7f)]=_0x489983[0x3],_0x591f99['goto'][_0x359ae6(0x173a)]=_0x489983['slice'](0x4,_0x489983[_0x359ae6(0xfd0)])[_0x359ae6(0x1f66)](',');}break;case'autoreply':{const _0x1693da=_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x28df)][_0x359ae6(0xbe1)](',');_0x591f99['goto']['times']=isNaN(_0x1693da[0x0])?_0x1693da[0x0]:parseInt(_0x1693da[0x0],0xa),_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x19d3)]=_0x1693da['slice'](0x1,_0x1693da['length'])[_0x359ae6(0x1f66)](',');}break;case _0x359ae6(0x155e):_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x19d3)]=_0x591f99['goto'][_0x359ae6(0x28df)];break;case _0x359ae6(0x19d1):_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x16b6)]=_0x591f99[_0x359ae6(0x3da)]['appdata'][_0x359ae6(0xbe1)]('=')[0x0],_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x327)]=_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x28df)]['split']('=')[0x1];break;case _0x359ae6(0x4b4):_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x12a7)]=_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x28df)];break;default:{const _0x1bbb3d=_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x28df)][_0x359ae6(0xbe1)](',');_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x2056)]=_0x39641b()[_0x359ae6(0xce9)](_0x1bbb3d[0x0])?_0x1bbb3d[0x0]:isNaN(_0x1bbb3d[0x0])?_0x1bbb3d[0x0]:parseInt(_0x1bbb3d[0x0],0xa),_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0xd52)]=_0x39641b()[_0x359ae6(0xce9)](_0x1bbb3d[0x1])?_0x1bbb3d[0x1]:isNaN(_0x1bbb3d[0x1])?_0x1bbb3d[0x1]:parseInt(_0x1bbb3d[0x1],0xa),_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x521)]=_0x39641b()['isEmpty'](_0x1bbb3d[0x2])?_0x1bbb3d[0x2]:isNaN(_0x1bbb3d[0x2])?_0x1bbb3d[0x2]:parseInt(_0x1bbb3d[0x2],0xa);}break;}else{}_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x66a)]&&_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x66a)][_0x359ae6(0x1680)]()===_0x359ae6(0x895)&&_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x299b)][_0x359ae6(0x1680)]()==='outbounddial'&&(_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x586)]=_0x591f99[_0x359ae6(0x3da)]['phone']?_0x591f99['goto'][_0x359ae6(0x1340)][_0x359ae6(0xbe1)]('$')[0x0]:undefined,_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x1e7c)]=_0x591f99[_0x359ae6(0x3da)][_0x359ae6(0x2816)]?'CALLERID(all)='+_0x591f99[_0x359ae6(0x3da)]['callerID']:undefined);_0x591f99['saveInboundRouteApp']=_0x540a2d,_0x591f99['closeDialog']=_0x258ccb,_0x31c787[_0x359ae6(0x22b6)]('admin')?_0x5a0f54[_0x359ae6(0x1da5)][_0x359ae6(0xbf7)]({'fields':_0x359ae6(0x43c),'sort':_0x359ae6(0x16b6),'nolimit':_0x359ae6(0x44d)})[_0x359ae6(0x1d77)][_0x359ae6(0x1cb0)](function(_0x2a42f8){const _0x4a0ada=_0x359ae6;_0x591f99[_0x4a0ada(0x14f6)]=_0x2a42f8[_0x4a0ada(0x2214)]||[];})[_0x359ae6(0x1c4)](function(_0x92a761){const _0x8206ef=_0x359ae6;_0x17af67['error']({'title':_0x92a761[_0x8206ef(0x291)]?_0x8206ef(0xeb9)+_0x92a761[_0x8206ef(0x291)]+'\x20-\x20'+_0x92a761[_0x8206ef(0xc22)]:'SYSTEM:GET_CONTEXTS','msg':_0x92a761[_0x8206ef(0x25c)]?JSON[_0x8206ef(0x2701)](_0x92a761[_0x8206ef(0x25c)]):_0x92a761['toString']()});}):_0x5a0f54['voiceContext'][_0x359ae6(0xbf7)]({'fields':_0x359ae6(0x43c),'sort':_0x359ae6(0x16b6),'nolimit':'true'})[_0x359ae6(0x1d77)][_0x359ae6(0x1cb0)](function(_0x5634e2){const _0x15cf74=_0x359ae6;_0x591f99[_0x15cf74(0x14f6)]=_0x5634e2[_0x15cf74(0x2214)]||[];})[_0x359ae6(0x1cb0)](function(){const _0x217410=_0x359ae6;return _0x5a0f54['userProfileSection'][_0x217410(0xbf7)]({'userProfileId':_0x591f99[_0x217410(0xe76)][_0x217410(0x13c1)],'sectionId':0x195})[_0x217410(0x1d77)];})[_0x359ae6(0x1cb0)](function(_0x47ef3a){const _0x47af82=_0x359ae6,_0x389d2e=_0x47ef3a&&_0x47ef3a['rows']?_0x47ef3a['rows'][0x0]:null;if(!_0x389d2e)return _0x5a0f54['voiceContext'][_0x47af82(0xbf7)]({'fields':_0x47af82(0x43c),'sort':_0x47af82(0x16b6),'nolimit':_0x47af82(0x44d),'defaultEntry':0x1})[_0x47af82(0x1d77)]['then'](function(_0x2230d1){const _0x84e381=_0x47af82;_0x591f99[_0x84e381(0x14f6)]=_0x2230d1['rows']||[];});else{if(!_0x389d2e[_0x47af82(0x12f4)])return _0x5a0f54[_0x47af82(0x1198)]['get']({'sectionId':_0x389d2e['id']})[_0x47af82(0x1d77)]['then'](function(_0x200a94){const _0x4b664c=_0x47af82,_0x4cc327=_0x39641b()[_0x4b664c(0x1de2)](_0x200a94[_0x4b664c(0x2214)],function(_0x29fe20){const _0x53ea1b=_0x4b664c;return _0x39641b()[_0x53ea1b(0x13b4)](_0x591f99[_0x53ea1b(0x14f6)],{'id':_0x29fe20[_0x53ea1b(0x2982)]});});let _0x3d8e8f=null;_0x591f99[_0x4b664c(0x3da)]&&(_0x3d8e8f=_0x39641b()[_0x4b664c(0x13b4)](_0x591f99[_0x4b664c(0x14f6)],{'name':_0x591f99[_0x4b664c(0x3da)][_0x4b664c(0x2056)]}));if(_0x3d8e8f&&!_0x39641b()[_0x4b664c(0x727)](_0x4cc327,['id',_0x3d8e8f['id']])){const _0x138baf=_0x39641b()['find'](_0x591f99[_0x4b664c(0x14f6)],{'id':_0x3d8e8f['id']});_0x138baf[_0x4b664c(0x15da)]=![],_0x4cc327[_0x4b664c(0x2785)](_0x138baf);}_0x591f99[_0x4b664c(0x14f6)]=_0x4cc327;});}})[_0x359ae6(0x1c4)](function(_0x5f2b68){const _0x560b04=_0x359ae6;_0x17af67[_0x560b04(0x218e)]({'title':_0x5f2b68[_0x560b04(0x291)]?_0x560b04(0xeb9)+_0x5f2b68[_0x560b04(0x291)]+_0x560b04(0x1657)+_0x5f2b68['statusText']:_0x560b04(0x5ac),'msg':_0x5f2b68['data']?JSON[_0x560b04(0x2701)](_0x5f2b68[_0x560b04(0x25c)]):_0x5f2b68[_0x560b04(0x147f)]()});});function _0x540a2d(){const _0x302e0b=_0x359ae6;_0x591f99[_0x302e0b(0x1a7c)]=[];const _0x18b492=[];_0x591f99[_0x302e0b(0x3da)][_0x302e0b(0x66a)]&&_0x591f99[_0x302e0b(0x3da)]['type']['toLowerCase']()===_0x302e0b(0x895)&&_0x591f99['goto'][_0x302e0b(0x299b)]==='outboundDial'&&(_0x591f99[_0x302e0b(0x3da)][_0x302e0b(0x1340)]=_0x2d09ea[_0x302e0b(0x325)]?(_0x591f99[_0x302e0b(0x3da)]['prefix']||'')+_0x302e0b(0x19e4)+_0x2d09ea[_0x302e0b(0x325)]+'}':(_0x591f99[_0x302e0b(0x3da)]['prefix']||'')+_0x302e0b(0xcdd),_0x2d09ea[_0x302e0b(0xf8d)]!=='none'?_0x591f99[_0x302e0b(0x3da)]['options']['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x591f99['goto'][_0x302e0b(0x2224)]+=_0x302e0b(0x106a)):_0x591f99[_0x302e0b(0x3da)]['options']=_0x591f99[_0x302e0b(0x3da)]['options'][_0x302e0b(0x288f)](_0x302e0b(0x106a),''));if(_0x591f99[_0x302e0b(0x3da)][_0x302e0b(0x299b)]&&_0x591f99[_0x302e0b(0x3da)][_0x302e0b(0x299b)]===_0x302e0b(0x197c)){}else switch((_0x591f99[_0x302e0b(0x3da)][_0x302e0b(0x22e1)]||_0x591f99[_0x302e0b(0x3da)][_0x302e0b(0x299b)])[_0x302e0b(0x1680)]()){case _0x302e0b(0x19d1):_0x591f99['goto'][_0x302e0b(0x28df)]=_0x591f99[_0x302e0b(0x3da)][_0x302e0b(0x16b6)]+'='+_0x591f99['goto'][_0x302e0b(0x327)];break;case _0x302e0b(0x197c):break;default:_0x18b492[0x0]=_0x591f99[_0x302e0b(0x3da)]['context'],_0x18b492[0x1]=_0x591f99['goto'][_0x302e0b(0xd52)],_0x18b492[0x2]=_0x591f99[_0x302e0b(0x3da)][_0x302e0b(0x521)],_0x591f99[_0x302e0b(0x3da)][_0x302e0b(0x28df)]=_0x18b492[_0x302e0b(0x1f66)](',');}_0x258ccb(_0x591f99[_0x302e0b(0x3da)]);}function _0x258ccb(_0x405d37){_0x1d6f20['hide'](_0x405d37);}}const _0x1a77b7=_0x29257d;;_0x3be645[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x29d4),'inboundroute','api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x3be645(_0x14e190,_0x5ce701,_0x2590c6,_0x3fd6c6,_0x4ff8ad,_0x47001d,_0x28a003,_0x2d9546){const _0x2df836=_0x5537c6,_0x39432f=this;_0x39432f[_0x2df836(0xe76)]=_0x28a003[_0x2df836(0x21e8)](),_0x39432f['errors']=[],_0x39432f['title']='VOICE.EDIT_'+(_0x3fd6c6[_0x2df836(0x299b)]||_0x3fd6c6['app'])['toUpperCase'](),_0x39432f[_0x2df836(0x15e3)]=angular['copy'](_0x3fd6c6),_0x39432f[_0x2df836(0x1b1a)]=_0x2d9546,_0x39432f[_0x2df836(0xf4c)]={};if(_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x28df)])switch(_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x299b)]?_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x299b)][_0x2df836(0x1680)]():_0x39432f['hangup'][_0x2df836(0x22e1)][_0x2df836(0x1680)]()){case _0x2df836(0x197c):break;case _0x2df836(0x711):{const _0xed4e4e=_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x28df)]['split'](',');_0x39432f['hangup']['key']=_0xed4e4e[0x0],_0x39432f[_0x2df836(0x15e3)]['language']=_0xed4e4e[0x1],_0x39432f[_0x2df836(0x15e3)]['welcomemessage']=_0xed4e4e[_0x2df836(0x14cb)](0x2,_0xed4e4e[_0x2df836(0xfd0)])[_0x2df836(0x1f66)](',');}break;case'dialogflowv2':{const _0x4f666c=_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x28df)][_0x2df836(0xbe1)](',');_0x39432f[_0x2df836(0x15e3)]['projectId']=_0x4f666c[0x0],_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x12bf)]=_0x4f666c[0x1],_0x39432f[_0x2df836(0x15e3)]['privateKey']=_0x4f666c[0x2],_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x12b4)]=_0x4f666c[0x3],_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x173a)]=_0x4f666c[_0x2df836(0x14cb)](0x4,_0x4f666c[_0x2df836(0xfd0)])[_0x2df836(0x1f66)](',');}break;case _0x2df836(0x123a):{const _0x5b2b7d=_0x39432f[_0x2df836(0x15e3)]['appdata'][_0x2df836(0xbe1)](',');_0x39432f[_0x2df836(0x15e3)]['accesskeyid']=_0x5b2b7d[0x0],_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x21d9)]=_0x5b2b7d[0x1],_0x39432f[_0x2df836(0x15e3)][_0x2df836(0xd50)]=_0x5b2b7d[0x2],_0x39432f[_0x2df836(0x15e3)]['botname']=_0x5b2b7d[0x3],_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x173a)]=_0x5b2b7d['slice'](0x4,_0x5b2b7d[_0x2df836(0xfd0)])['join'](',');}break;case _0x2df836(0x1f71):{const _0x289c3d=_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x28df)][_0x2df836(0xbe1)](',');_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x18a5)]=isNaN(_0x289c3d[0x0])?_0x289c3d[0x0]:parseInt(_0x289c3d[0x0],0xa),_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x19d3)]=_0x289c3d[_0x2df836(0x14cb)](0x1,_0x289c3d[_0x2df836(0xfd0)])[_0x2df836(0x1f66)](',');}break;case'message':_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x19d3)]=_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x28df)];break;case _0x2df836(0x19d1):_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x16b6)]=_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x28df)]['split']('=')[0x0],_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x327)]=_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x28df)][_0x2df836(0xbe1)]('=')[0x1];break;case _0x2df836(0x4b4):_0x39432f['hangup'][_0x2df836(0x12a7)]=_0x39432f[_0x2df836(0x15e3)]['appdata'];break;default:{const _0xc1cc52=_0x39432f[_0x2df836(0x15e3)]['appdata'][_0x2df836(0xbe1)](',');_0x39432f['hangup']['appdata']=_0x39641b()[_0x2df836(0xce9)](_0xc1cc52[0x0])?_0xc1cc52[0x0]:isNaN(_0xc1cc52[0x0])?_0xc1cc52[0x0]:parseInt(_0xc1cc52[0x0],0xa);}break;}else{}_0x39432f[_0x2df836(0x15e3)]['type']&&_0x39432f['hangup']['type'][_0x2df836(0x1680)]()===_0x2df836(0x895)&&_0x39432f[_0x2df836(0x15e3)]['appType'][_0x2df836(0x1680)]()===_0x2df836(0x20ff)&&(_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x586)]=_0x39432f[_0x2df836(0x15e3)]['phone']?_0x39432f['hangup'][_0x2df836(0x1340)]['split']('$')[0x0]:undefined,_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x1e7c)]=_0x39432f[_0x2df836(0x15e3)]['callerID']?_0x2df836(0x25f9)+_0x39432f[_0x2df836(0x15e3)][_0x2df836(0x2816)]:undefined);_0x39432f['saveInboundRouteApp']=_0x5c004a,_0x39432f[_0x2df836(0xda0)]=_0x3810fa;function _0x5c004a(){const _0x160855=_0x2df836;_0x39432f[_0x160855(0x1a7c)]=[];const _0x313c38=[];_0x39432f[_0x160855(0x15e3)]['type']&&_0x39432f[_0x160855(0x15e3)]['type'][_0x160855(0x1680)]()==='outbound'&&_0x39432f[_0x160855(0x15e3)]['appType']===_0x160855(0x25f4)&&(_0x39432f[_0x160855(0x15e3)][_0x160855(0x1340)]=_0x4ff8ad['cutdigits']?(_0x39432f[_0x160855(0x15e3)][_0x160855(0x586)]||'')+_0x160855(0x19e4)+_0x4ff8ad['cutdigits']+'}':(_0x39432f[_0x160855(0x15e3)][_0x160855(0x586)]||'')+'${EXTEN}',_0x4ff8ad[_0x160855(0xf8d)]!=='none'?_0x39432f[_0x160855(0x15e3)][_0x160855(0x2224)][_0x160855(0xd8a)](_0x160855(0x106a))<0x0&&(_0x39432f['hangup'][_0x160855(0x2224)]+=_0x160855(0x106a)):_0x39432f[_0x160855(0x15e3)]['options']=_0x39432f['hangup'][_0x160855(0x2224)]['replace']('U(xcally-mixmonitor-context)',''));if(_0x39432f[_0x160855(0x15e3)][_0x160855(0x299b)]&&_0x39432f[_0x160855(0x15e3)]['appType']===_0x160855(0x197c)){}else switch((_0x39432f['hangup']['app']||_0x39432f['hangup'][_0x160855(0x299b)])[_0x160855(0x1680)]()){case _0x160855(0x19d1):_0x39432f[_0x160855(0x15e3)][_0x160855(0x28df)]=_0x39432f[_0x160855(0x15e3)]['name']+'='+_0x39432f[_0x160855(0x15e3)][_0x160855(0x327)];break;case _0x160855(0x197c):break;default:_0x313c38[0x0]=_0x39432f['hangup'][_0x160855(0x28df)],_0x39432f['hangup'][_0x160855(0x28df)]=_0x313c38[_0x160855(0x1f66)](',');}_0x3810fa(_0x39432f[_0x160855(0x15e3)]);}function _0x3810fa(_0x452402){_0x14e190['hide'](_0x452402);}}const _0x255db6=_0x3be645;;_0x388be1[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x29d4),_0x5537c6(0x80a),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x388be1(_0x324d5e,_0x413c08,_0x2f58df,_0x555dec,_0x5adec8,_0x379765,_0x56cf2,_0x37b87c){const _0x2dd6b7=_0x5537c6,_0x437166=this;_0x437166['currentUser']=_0x56cf2[_0x2dd6b7(0x21e8)](),_0x437166[_0x2dd6b7(0x1a7c)]=[],_0x437166['title']='VOICE.EDIT_'+(_0x555dec['appType']||_0x555dec[_0x2dd6b7(0x22e1)])['toUpperCase'](),_0x437166[_0x2dd6b7(0x19af)]=angular[_0x2dd6b7(0x17fe)](_0x555dec),_0x437166[_0x2dd6b7(0x1b1a)]=_0x37b87c,_0x437166['hasModulePermissions']={};if(_0x437166[_0x2dd6b7(0x19af)]['appdata'])switch(_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x299b)]?_0x437166['internaldial'][_0x2dd6b7(0x299b)][_0x2dd6b7(0x1680)]():_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x22e1)][_0x2dd6b7(0x1680)]()){case'custom':break;case _0x2dd6b7(0x711):{const _0x5d698a=_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x28df)]['split'](',');_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0xee8)]=_0x5d698a[0x0],_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x12b4)]=_0x5d698a[0x1],_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x173a)]=_0x5d698a[_0x2dd6b7(0x14cb)](0x2,_0x5d698a[_0x2dd6b7(0xfd0)])[_0x2dd6b7(0x1f66)](',');}break;case _0x2dd6b7(0xece):{const _0x58202c=_0x437166[_0x2dd6b7(0x19af)]['appdata']['split'](',');_0x437166['internaldial'][_0x2dd6b7(0x2854)]=_0x58202c[0x0],_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x12bf)]=_0x58202c[0x1],_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x29d6)]=_0x58202c[0x2],_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x12b4)]=_0x58202c[0x3],_0x437166['internaldial'][_0x2dd6b7(0x173a)]=_0x58202c[_0x2dd6b7(0x14cb)](0x4,_0x58202c[_0x2dd6b7(0xfd0)])[_0x2dd6b7(0x1f66)](',');}break;case'amazonlex':{const _0x1899ef=_0x437166['internaldial'][_0x2dd6b7(0x28df)][_0x2dd6b7(0xbe1)](',');_0x437166[_0x2dd6b7(0x19af)]['accesskeyid']=_0x1899ef[0x0],_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x21d9)]=_0x1899ef[0x1],_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0xd50)]=_0x1899ef[0x2],_0x437166['internaldial']['botname']=_0x1899ef[0x3],_0x437166['internaldial'][_0x2dd6b7(0x173a)]=_0x1899ef[_0x2dd6b7(0x14cb)](0x4,_0x1899ef[_0x2dd6b7(0xfd0)])[_0x2dd6b7(0x1f66)](',');}break;case _0x2dd6b7(0x1f71):{const _0x5c6a5d=_0x437166[_0x2dd6b7(0x19af)]['appdata']['split'](',');_0x437166['internaldial'][_0x2dd6b7(0x18a5)]=isNaN(_0x5c6a5d[0x0])?_0x5c6a5d[0x0]:parseInt(_0x5c6a5d[0x0],0xa),_0x437166['internaldial'][_0x2dd6b7(0x19d3)]=_0x5c6a5d[_0x2dd6b7(0x14cb)](0x1,_0x5c6a5d[_0x2dd6b7(0xfd0)])[_0x2dd6b7(0x1f66)](',');}break;case _0x2dd6b7(0x155e):_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x19d3)]=_0x437166[_0x2dd6b7(0x19af)]['appdata'];break;case'set':_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x16b6)]=_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x28df)]['split']('=')[0x0],_0x437166[_0x2dd6b7(0x19af)]['value']=_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x28df)][_0x2dd6b7(0xbe1)]('=')[0x1];break;case _0x2dd6b7(0x4b4):_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x12a7)]=_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x28df)];break;default:{const _0x20f203=_0x437166['internaldial'][_0x2dd6b7(0x28df)][_0x2dd6b7(0xbe1)](',');_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0xebe)]=_0x39641b()[_0x2dd6b7(0xce9)](_0x20f203[0x0])?_0x20f203[0x0]:isNaN(_0x20f203[0x0])?_0x20f203[0x0]:parseInt(_0x20f203[0x0],0xa),_0x437166[_0x2dd6b7(0x19af)]['timeout']=_0x39641b()['isEmpty'](_0x20f203[0x1])?_0x20f203[0x1]:isNaN(_0x20f203[0x1])?_0x20f203[0x1]:parseInt(_0x20f203[0x1],0xa),_0x437166[_0x2dd6b7(0x19af)]['options']=_0x39641b()[_0x2dd6b7(0xce9)](_0x20f203[0x2])?_0x20f203[0x2]:isNaN(_0x20f203[0x2])?_0x20f203[0x2]:parseInt(_0x20f203[0x2],0xa),_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x135b)]=_0x39641b()[_0x2dd6b7(0xce9)](_0x20f203[0x3])?_0x20f203[0x3]:isNaN(_0x20f203[0x3])?_0x20f203[0x3]:parseInt(_0x20f203[0x3],0xa);}break;}else{}_0x437166[_0x2dd6b7(0x19af)]['type']&&_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x66a)]['toLowerCase']()==='outbound'&&_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x299b)][_0x2dd6b7(0x1680)]()===_0x2dd6b7(0x20ff)&&(_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x586)]=_0x437166['internaldial'][_0x2dd6b7(0x1340)]?_0x437166[_0x2dd6b7(0x19af)]['phone'][_0x2dd6b7(0xbe1)]('$')[0x0]:undefined,_0x437166[_0x2dd6b7(0x19af)]['callerId']=_0x437166['internaldial'][_0x2dd6b7(0x2816)]?_0x2dd6b7(0x25f9)+_0x437166[_0x2dd6b7(0x19af)][_0x2dd6b7(0x2816)]:undefined);_0x437166[_0x2dd6b7(0x1654)]=_0x737a74,_0x437166[_0x2dd6b7(0xda0)]=_0x36edb2;const _0x47e6e=[{'id':0xca,'role':_0x2dd6b7(0x1eff)},{'id':0xcb,'role':'telephone'}];let _0x3fe0ba=null;_0x56cf2['hasRole'](_0x2dd6b7(0x1c60))?_0x379765[_0x2dd6b7(0xebe)][_0x2dd6b7(0xbf7)]({'fields':_0x2dd6b7(0x17ce),'sort':_0x2dd6b7(0x16b6),'nolimit':_0x2dd6b7(0x44d)})['$promise'][_0x2dd6b7(0x1cb0)](function(_0x2837e8){const _0x4e9737=_0x2dd6b7;_0x437166[_0x4e9737(0x1e30)]=_0x2837e8[_0x4e9737(0x2214)]||[];})[_0x2dd6b7(0x1c4)](function(_0x189f40){const _0x1d70b2=_0x2dd6b7;_0x2f58df[_0x1d70b2(0x218e)]({'title':_0x189f40[_0x1d70b2(0x291)]?_0x1d70b2(0xeb9)+_0x189f40[_0x1d70b2(0x291)]+_0x1d70b2(0x1657)+_0x189f40[_0x1d70b2(0xc22)]:_0x1d70b2(0x124f),'msg':_0x189f40[_0x1d70b2(0x25c)]?JSON[_0x1d70b2(0x2701)](_0x189f40[_0x1d70b2(0x25c)]):_0x189f40[_0x1d70b2(0x147f)]()});}):_0x379765['user']['get']({'fields':_0x2dd6b7(0x17ce),'sort':_0x2dd6b7(0x16b6),'nolimit':_0x2dd6b7(0x44d)})[_0x2dd6b7(0x1d77)][_0x2dd6b7(0x1cb0)](function(_0x28f3ef){_0x3fe0ba=_0x28f3ef['rows']||[];})[_0x2dd6b7(0x1cb0)](function(){const _0x37fff8=_0x2dd6b7,_0x1fcc8c=[];for(let _0x47d3cd=0x0;_0x47d3cd<_0x47e6e[_0x37fff8(0xfd0)];_0x47d3cd++){_0x1fcc8c[_0x37fff8(0x2785)](_0x379765['userProfileSection'][_0x37fff8(0xbf7)]({'userProfileId':_0x437166[_0x37fff8(0xe76)][_0x37fff8(0x13c1)],'sectionId':_0x47e6e[_0x47d3cd]['id']})[_0x37fff8(0x1d77)]);}return _0x413c08['all'](_0x1fcc8c);})[_0x2dd6b7(0x1cb0)](function(_0x41e1dd){const _0x16e9a8=_0x2dd6b7,_0x2c8241=_0x39641b()[_0x16e9a8(0x1de2)](_0x41e1dd,function(_0x35dcd3){const _0xea4dba=_0x16e9a8;return _0x35dcd3&&_0x35dcd3[_0xea4dba(0x2214)]?_0x35dcd3[_0xea4dba(0x2214)][0x0]:null;}),_0x27ee7d=[];for(let _0x1c3eaa=0x0;_0x1c3eaa<_0x47e6e[_0x16e9a8(0xfd0)];_0x1c3eaa++){const _0x16e1ca=_0x39641b()[_0x16e9a8(0x13b4)](_0x2c8241,[_0x16e9a8(0xec6),_0x47e6e[_0x1c3eaa]['id']]);if(_0x16e1ca){if(!_0x16e1ca['autoAssociation'])_0x27ee7d['push'](_0x379765[_0x16e9a8(0x1198)][_0x16e9a8(0xbf7)]({'sectionId':_0x16e1ca['id']})[_0x16e9a8(0x1d77)]);else{const _0x1d8423=[];_0x3fe0ba[_0x16e9a8(0xf90)](function(_0x37f998){const _0x17de35=_0x16e9a8;_0x37f998[_0x17de35(0x26e6)]===_0x47e6e[_0x1c3eaa][_0x17de35(0x26e6)]&&_0x1d8423['push'](_0x37f998);}),_0x27ee7d[_0x16e9a8(0x2785)]({'rows':_0x1d8423,'count':_0x1d8423[_0x16e9a8(0xfd0)]});}}}return _0x413c08[_0x16e9a8(0x223b)](_0x27ee7d);})['then'](function(_0x14396c){const _0x292c68=_0x2dd6b7,_0x444711=[];let _0x48681c=null;_0x437166['internaldial']&&(_0x48681c=_0x39641b()['find'](_0x3fe0ba,{'name':_0x437166[_0x292c68(0x19af)][_0x292c68(0xebe)]}));for(let _0x107512=0x0;_0x107512<_0x14396c['length'];_0x107512++){const _0x35ad5d=_0x14396c[_0x107512]['rows']||[];_0x35ad5d[_0x292c68(0xf90)](function(_0x322976){const _0xf6ee16=_0x292c68;_0x444711[_0xf6ee16(0x2785)](_0x322976);});}_0x48681c&&!_0x39641b()[_0x292c68(0x727)](_0x444711,[_0x292c68(0x2982),_0x48681c['id']])&&_0x3fe0ba[_0x292c68(0xf90)](function(_0x2c62fe){const _0x55ab68=_0x292c68;_0x2c62fe['id']===_0x48681c['id']&&(_0x2c62fe[_0x55ab68(0x15da)]=![],_0x444711[_0x55ab68(0x2785)](_0x2c62fe));}),_0x437166['users']=_0x444711;})[_0x2dd6b7(0x1c4)](function(_0x6de87f){const _0x579502=_0x2dd6b7;_0x2f58df[_0x579502(0x218e)]({'title':_0x6de87f['status']?_0x579502(0xeb9)+_0x6de87f['status']+'\x20-\x20'+_0x6de87f[_0x579502(0xc22)]:_0x579502(0x1e94),'msg':_0x6de87f[_0x579502(0x25c)]?JSON[_0x579502(0x2701)](_0x6de87f['data']):_0x6de87f['toString']()});});function _0x737a74(){const _0x2956ba=_0x2dd6b7;_0x437166[_0x2956ba(0x1a7c)]=[];const _0x4f8ad8=[];_0x437166['internaldial'][_0x2956ba(0x66a)]&&_0x437166[_0x2956ba(0x19af)][_0x2956ba(0x66a)][_0x2956ba(0x1680)]()===_0x2956ba(0x895)&&_0x437166[_0x2956ba(0x19af)]['appType']===_0x2956ba(0x25f4)&&(_0x437166[_0x2956ba(0x19af)]['phone']=_0x5adec8[_0x2956ba(0x325)]?(_0x437166['internaldial']['prefix']||'')+_0x2956ba(0x19e4)+_0x5adec8[_0x2956ba(0x325)]+'}':(_0x437166[_0x2956ba(0x19af)]['prefix']||'')+_0x2956ba(0xcdd),_0x5adec8['recordingFormat']!==_0x2956ba(0x13b1)?_0x437166[_0x2956ba(0x19af)][_0x2956ba(0x2224)][_0x2956ba(0xd8a)](_0x2956ba(0x106a))<0x0&&(_0x437166[_0x2956ba(0x19af)][_0x2956ba(0x2224)]+=_0x2956ba(0x106a)):_0x437166[_0x2956ba(0x19af)][_0x2956ba(0x2224)]=_0x437166[_0x2956ba(0x19af)][_0x2956ba(0x2224)][_0x2956ba(0x288f)](_0x2956ba(0x106a),''));if(_0x437166['internaldial'][_0x2956ba(0x299b)]&&_0x437166[_0x2956ba(0x19af)][_0x2956ba(0x299b)]===_0x2956ba(0x197c)){}else switch((_0x437166['internaldial'][_0x2956ba(0x22e1)]||_0x437166[_0x2956ba(0x19af)][_0x2956ba(0x299b)])[_0x2956ba(0x1680)]()){case _0x2956ba(0x19d1):_0x437166[_0x2956ba(0x19af)][_0x2956ba(0x28df)]=_0x437166[_0x2956ba(0x19af)][_0x2956ba(0x16b6)]+'='+_0x437166[_0x2956ba(0x19af)][_0x2956ba(0x327)];break;case _0x2956ba(0x197c):break;default:_0x4f8ad8[0x0]=_0x437166['internaldial'][_0x2956ba(0xebe)],_0x4f8ad8[0x1]=_0x437166[_0x2956ba(0x19af)][_0x2956ba(0x1719)],_0x4f8ad8[0x2]=_0x437166[_0x2956ba(0x19af)]['options'],_0x4f8ad8[0x3]=_0x437166[_0x2956ba(0x19af)][_0x2956ba(0x135b)],_0x437166[_0x2956ba(0x19af)]['appdata']=_0x4f8ad8[_0x2956ba(0x1f66)](',');}_0x36edb2(_0x437166[_0x2956ba(0x19af)]);}function _0x36edb2(_0x3523ca){const _0x17ac86=_0x2dd6b7;_0x324d5e[_0x17ac86(0x1426)](_0x3523ca);}}const _0x136a5d=_0x388be1;;_0x3feb5a[_0x5537c6(0x15b6)]=['$state','$mdDialog',_0x5537c6(0x200d),_0x5537c6(0x1b2),_0x5537c6(0x1ac8),_0x5537c6(0xb4a),_0x5537c6(0x9bf),'api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x3feb5a(_0x1e3389,_0x44a0d0,_0x46bde8,_0x48c29a,_0x33c693,_0x431248,_0x1eef63,_0x158718,_0x29422f,_0xc68f50){const _0x9445f1=_0x5537c6,_0x481711=this;_0x481711[_0x9445f1(0xe76)]=_0x29422f[_0x9445f1(0x21e8)](),_0x481711[_0x9445f1(0x1a7c)]=[],_0x481711[_0x9445f1(0x1386)]=_0x9445f1(0x1571),_0x481711[_0x9445f1(0x1ac8)]=angular['copy'](_0x33c693),_0x481711['intervals']=_0x431248,_0x481711[_0x9445f1(0x18c1)]=![],_0x481711['types']=[_0x9445f1(0x2017),_0x9445f1(0x197c),_0x9445f1(0x240)],_0x481711[_0x9445f1(0x1b1a)]=_0xc68f50,_0x481711[_0x9445f1(0x1275)]=_0x48c29a[_0x9445f1(0x1aae)](),_0x481711['monthNumber']=_0x48c29a[_0x9445f1(0xa76)](),_0x481711[_0x9445f1(0x1534)]=_0x48c29a[_0x9445f1(0x7cc)](),_0x481711['daysOfMonth']=_0x48c29a[_0x9445f1(0xc1e)]();if(!_0x481711[_0x9445f1(0x1ac8)])_0x481711['interval']={'interval':_0x9445f1(0x965)},_0x481711[_0x9445f1(0x66a)]='always',_0x481711[_0x9445f1(0x1386)]=_0x9445f1(0x287b),_0x481711[_0x9445f1(0x18c1)]=!![];else{if(_0x481711[_0x9445f1(0x1ac8)]['interval']!==_0x9445f1(0x965)){_0x481711['type']='custom';const _0x4089ba=_0x481711[_0x9445f1(0x1ac8)][_0x9445f1(0x1ac8)][_0x9445f1(0xbe1)](','),_0x44de2f=_0x4089ba[0x0],_0x2b2d2f=_0x4089ba[0x1],_0x4773ca=_0x4089ba[0x2],_0x3423b4=_0x4089ba[0x3];if(_0x44de2f!=='*'){const _0x2e9eba=_0x44de2f[_0x9445f1(0xbe1)]('-')[0x0],_0x4026b2=_0x44de2f[_0x9445f1(0xbe1)]('-')[0x1];let _0x4561ed;_0x4561ed=new Date(),_0x4561ed[_0x9445f1(0x201b)](Number(_0x2e9eba[_0x9445f1(0xbe1)](':')[0x0])),_0x4561ed[_0x9445f1(0x1622)](Number(_0x2e9eba['split'](':')[0x1])),_0x481711[_0x9445f1(0x718)]=_0x4561ed,_0x4561ed=new Date(),_0x4561ed[_0x9445f1(0x201b)](Number(_0x4026b2[_0x9445f1(0xbe1)](':')[0x0])),_0x4561ed[_0x9445f1(0x1622)](Number(_0x4026b2[_0x9445f1(0xbe1)](':')[0x1])),_0x481711[_0x9445f1(0x64a)]=_0x4561ed;}_0x2b2d2f!=='*'&&(_0x481711['dayOfWeekFrom']=_0x2b2d2f['split']('-')[0x0],_0x481711[_0x9445f1(0x28db)]=_0x2b2d2f[_0x9445f1(0xbe1)]('-')[0x1]),_0x4773ca!=='*'&&(_0x481711['monthDayFrom']=_0x4773ca[_0x9445f1(0xbe1)]('-')[0x0],_0x481711[_0x9445f1(0x194d)]=_0x4773ca[_0x9445f1(0xbe1)]('-')[0x1]),_0x3423b4!=='*'&&(_0x481711[_0x9445f1(0x1756)]=_0x3423b4[_0x9445f1(0xbe1)]('-')[0x0],_0x481711[_0x9445f1(0xa68)]=_0x3423b4['split']('-')[0x1]);}else _0x481711['type']='always';}_0x1e3389['params']['id']&&!_0x481711['interval'][_0x9445f1(0x171b)]&&(_0x481711[_0x9445f1(0x1ac8)][_0x9445f1(0x1a60)]=_0x1e3389[_0x9445f1(0x1dfe)]['id']);_0x481711[_0x9445f1(0x1ac8)]['IntervalId']&&_0x481711['interval'][_0x9445f1(0x171b)]&&(_0x481711['type']=_0x9445f1(0x240));_0x481711[_0x9445f1(0x18b3)]=_0x2f81fe,_0x481711['saveInterval']=_0x5ce619,_0x481711[_0x9445f1(0xda0)]=_0x41fcae;_0x481711[_0x9445f1(0x1ac8)][_0x9445f1(0x171b)]&&(_0x29422f['hasRole'](_0x9445f1(0x1c60))?_0x158718[_0x9445f1(0x1ac8)][_0x9445f1(0xbf7)]({'fields':'id,name,interval,IntervalId','IntervalId':'null','nolimit':!![]})['$promise'][_0x9445f1(0x1cb0)](function(_0x467ebe){const _0x96a673=_0x9445f1;_0x481711['intervals']=_0x467ebe[_0x96a673(0x2214)]||[];})[_0x9445f1(0x1c4)](function(_0x4d4e5e){const _0x27bc3d=_0x9445f1;_0x1eef63[_0x27bc3d(0x218e)]({'title':_0x4d4e5e[_0x27bc3d(0x291)]?_0x27bc3d(0xeb9)+_0x4d4e5e[_0x27bc3d(0x291)]+_0x27bc3d(0x1657)+_0x4d4e5e[_0x27bc3d(0xc22)]:_0x27bc3d(0xdac),'msg':_0x4d4e5e[_0x27bc3d(0x25c)]?JSON['stringify'](_0x4d4e5e[_0x27bc3d(0x25c)]):_0x4d4e5e['toString']()});}):_0x158718['interval'][_0x9445f1(0xbf7)]({'fields':_0x9445f1(0x872),'IntervalId':_0x9445f1(0xd38),'nolimit':!![]})[_0x9445f1(0x1d77)][_0x9445f1(0x1cb0)](function(_0x4545b2){const _0x2bbc81=_0x9445f1;_0x481711[_0x2bbc81(0xb4a)]=_0x4545b2[_0x2bbc81(0x2214)]||[];})[_0x9445f1(0x1cb0)](function(){const _0x2792bf=_0x9445f1;return _0x158718[_0x2792bf(0x2199)][_0x2792bf(0xbf7)]({'userProfileId':_0x481711[_0x2792bf(0xe76)]['userProfileId'],'sectionId':0x3ec})[_0x2792bf(0x1d77)];})[_0x9445f1(0x1cb0)](function(_0x2fa943){const _0x1bc091=_0x9445f1,_0x26b480=_0x2fa943&&_0x2fa943[_0x1bc091(0x2214)]?_0x2fa943['rows'][0x0]:null;if(!_0x26b480)_0x481711[_0x1bc091(0xb4a)]=[];else{if(!_0x26b480[_0x1bc091(0x12f4)])return _0x158718['userProfileResource']['get']({'sectionId':_0x26b480['id']})[_0x1bc091(0x1d77)][_0x1bc091(0x1cb0)](function(_0x49514d){const _0x44962d=_0x1bc091,_0x3f35b2=_0x49514d&&_0x49514d[_0x44962d(0x2214)]?_0x49514d['rows']:[],_0x427b08=[];let _0x2d8b84=null;_0x481711['interval']&&(_0x2d8b84=_0x39641b()[_0x44962d(0x13b4)](_0x481711['intervals'],{'name':_0x481711['interval'][_0x44962d(0x1a60)]})),_0x2d8b84&&!_0x39641b()[_0x44962d(0x727)](_0x3f35b2,[_0x44962d(0x2982),_0x2d8b84['id']])&&_0x481711[_0x44962d(0xb4a)][_0x44962d(0xf90)](function(_0x448252){const _0x44428f=_0x44962d;_0x448252['id']===_0x2d8b84['id']&&(_0x448252[_0x44428f(0x15da)]=![],_0x427b08[_0x44428f(0x2785)](_0x448252));}),_0x481711[_0x44962d(0xb4a)]=_0x427b08;});}})[_0x9445f1(0x1c4)](function(_0x4b7cf6){const _0x27c7a4=_0x9445f1;_0x1eef63[_0x27c7a4(0x218e)]({'title':_0x4b7cf6[_0x27c7a4(0x291)]?'API:'+_0x4b7cf6[_0x27c7a4(0x291)]+_0x27c7a4(0x1657)+_0x4b7cf6[_0x27c7a4(0xc22)]:_0x27c7a4(0xdac),'msg':_0x4b7cf6[_0x27c7a4(0x25c)]?JSON[_0x27c7a4(0x2701)](_0x4b7cf6[_0x27c7a4(0x25c)]):_0x4b7cf6[_0x27c7a4(0x147f)]()});}));function _0x101918(){const _0x28d606=_0x9445f1;switch(_0x481711[_0x28d606(0x66a)]){case _0x28d606(0x2017):case _0x28d606(0x240):return _0x28d606(0x965);case _0x28d606(0x197c):{const _0x366279=[];if(_0x481711['timeRangeFrom']!=='*'&&_0x481711[_0x28d606(0x718)]&&_0x481711[_0x28d606(0x64a)]){const _0x33f7f2=(_0x481711['timeRangeFrom'][_0x28d606(0x1169)]()<0xa?'0':'')+_0x481711[_0x28d606(0x718)][_0x28d606(0x1169)]()+':'+((_0x481711[_0x28d606(0x718)][_0x28d606(0x851)]()<0xa?'0':'')+_0x481711['timeRangeFrom'][_0x28d606(0x851)]()),_0x1ed8e3=(_0x481711[_0x28d606(0x64a)][_0x28d606(0x1169)]()<0xa?'0':'')+_0x481711['timeRangeTo'][_0x28d606(0x1169)]()+':'+((_0x481711['timeRangeTo'][_0x28d606(0x851)]()<0xa?'0':'')+_0x481711[_0x28d606(0x64a)][_0x28d606(0x851)]());_0x366279[_0x28d606(0x2785)](_0x33f7f2+'-'+_0x1ed8e3);}else _0x366279[_0x28d606(0x2785)]('*');return _0x481711['dayOfWeekFrom']?_0x481711[_0x28d606(0x28db)]?_0x366279[_0x28d606(0x2785)](_0x481711[_0x28d606(0x28a6)]+'-'+_0x481711[_0x28d606(0x28db)]):_0x366279[_0x28d606(0x2785)](_0x481711['dayOfWeekFrom']):_0x366279[_0x28d606(0x2785)]('*'),_0x481711['monthDayFrom']?_0x481711[_0x28d606(0x194d)]?_0x366279[_0x28d606(0x2785)](_0x481711[_0x28d606(0xd6f)]+'-'+_0x481711['monthDayTo']):_0x366279[_0x28d606(0x2785)](_0x481711['monthDayFrom']):_0x366279['push']('*'),_0x481711[_0x28d606(0x1756)]?_0x481711['monthTo']?_0x366279[_0x28d606(0x2785)](_0x481711[_0x28d606(0x1756)]+'-'+_0x481711[_0x28d606(0xa68)]):_0x366279[_0x28d606(0x2785)](_0x481711[_0x28d606(0x1756)]):_0x366279['push']('*'),_0x366279[_0x28d606(0x1f66)]();}}}function _0x2f81fe(){const _0x291c2f=_0x9445f1;_0x481711['errors']=[],_0x481711[_0x291c2f(0x1ac8)][_0x291c2f(0x1ac8)]=_0x101918(),_0x158718[_0x291c2f(0x1ac8)][_0x291c2f(0x1c3f)](_0x481711[_0x291c2f(0x1ac8)])[_0x291c2f(0x1d77)][_0x291c2f(0x1cb0)](function(_0x3ff9b5){const _0x10f17f=_0x291c2f;_0x481711[_0x10f17f(0xb4a)][_0x10f17f(0x2785)](_0x3ff9b5),_0x1eef63[_0x10f17f(0x829)]({'title':'Interval\x20properly\x20created','msg':_0x481711[_0x10f17f(0x1ac8)]['name']?_0x481711[_0x10f17f(0x1ac8)][_0x10f17f(0x16b6)]+_0x10f17f(0x470):''}),_0x41fcae();})[_0x291c2f(0x1c4)](function(_0xbb5d88){const _0x25778c=_0x291c2f;console[_0x25778c(0x218e)](_0xbb5d88),_0x481711[_0x25778c(0x1a7c)]=_0xbb5d88[_0x25778c(0x25c)]['errors']||[{'message':_0xbb5d88[_0x25778c(0x147f)](),'type':_0x25778c(0x24f7)}];});}function _0x5ce619(){const _0x42c271=_0x9445f1;_0x481711[_0x42c271(0x1a7c)]=[],_0x481711[_0x42c271(0x1ac8)][_0x42c271(0x1ac8)]=_0x101918(),_0x481711['interval']['application']?(_0x481711[_0x42c271(0x66a)]!=='list'&&(_0x481711[_0x42c271(0x1ac8)][_0x42c271(0x1a60)]=null),_0x41fcae(_0x481711[_0x42c271(0x1ac8)])):_0x158718[_0x42c271(0x1ac8)][_0x42c271(0x687)]({'id':_0x481711[_0x42c271(0x1ac8)]['id']},_0x481711[_0x42c271(0x1ac8)])['$promise'][_0x42c271(0x1cb0)](function(_0x44ae6d){const _0x3f3523=_0x42c271,_0x55cb5f=_0x39641b()[_0x3f3523(0x13b4)](_0x481711[_0x3f3523(0xb4a)],{'id':_0x44ae6d['id']});_0x55cb5f&&_0x39641b()[_0x3f3523(0x9c1)](_0x55cb5f,_0x44ae6d),_0x1eef63[_0x3f3523(0x829)]({'title':_0x3f3523(0x1498),'msg':_0x3f3523(0x2994)}),_0x41fcae();})[_0x42c271(0x1c4)](function(_0x33d3c3){const _0x5156e4=_0x42c271;console[_0x5156e4(0x218e)](_0x33d3c3),_0x481711[_0x5156e4(0x1a7c)]=_0x33d3c3[_0x5156e4(0x25c)][_0x5156e4(0x1a7c)]||[{'message':_0x33d3c3[_0x5156e4(0x147f)](),'type':_0x5156e4(0x2505)}];});}function _0x41fcae(_0x4d1ccb){_0x44a0d0['hide'](_0x4d1ccb);}}const _0x35489b=_0x3feb5a;;_0x561a4f[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x29d4),'inboundroute',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x561a4f(_0x2c0b41,_0x4ceab9,_0x440f31,_0x57a40d,_0x4fe6ea,_0x3d8a33,_0x4f7ff2,_0xb41fae){const _0x126b6d=_0x5537c6,_0x5f1883=this;_0x5f1883[_0x126b6d(0xe76)]=_0x4f7ff2[_0x126b6d(0x21e8)](),_0x5f1883[_0x126b6d(0x1a7c)]=[],_0x5f1883[_0x126b6d(0x1386)]=_0x126b6d(0x132b)+(_0x57a40d[_0x126b6d(0x299b)]||_0x57a40d[_0x126b6d(0x22e1)])['toUpperCase'](),_0x5f1883['playback']=angular[_0x126b6d(0x17fe)](_0x57a40d),_0x5f1883[_0x126b6d(0x1b1a)]=_0xb41fae,_0x5f1883[_0x126b6d(0xf4c)]={};if(_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x28df)])switch(_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x299b)]?_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x299b)][_0x126b6d(0x1680)]():_0x5f1883[_0x126b6d(0x2580)]['app'][_0x126b6d(0x1680)]()){case _0x126b6d(0x197c):break;case'dialogflow':{const _0x122b05=_0x5f1883['playback'][_0x126b6d(0x28df)][_0x126b6d(0xbe1)](',');_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0xee8)]=_0x122b05[0x0],_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x12b4)]=_0x122b05[0x1],_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x173a)]=_0x122b05['slice'](0x2,_0x122b05['length'])[_0x126b6d(0x1f66)](',');}break;case _0x126b6d(0xece):{const _0x3d64bd=_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x28df)][_0x126b6d(0xbe1)](',');_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x2854)]=_0x3d64bd[0x0],_0x5f1883['playback']['clientEmail']=_0x3d64bd[0x1],_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x29d6)]=_0x3d64bd[0x2],_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x12b4)]=_0x3d64bd[0x3],_0x5f1883[_0x126b6d(0x2580)]['welcomemessage']=_0x3d64bd[_0x126b6d(0x14cb)](0x4,_0x3d64bd[_0x126b6d(0xfd0)])[_0x126b6d(0x1f66)](',');}break;case _0x126b6d(0x123a):{const _0x1889ec=_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x28df)][_0x126b6d(0xbe1)](',');_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x413)]=_0x1889ec[0x0],_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x21d9)]=_0x1889ec[0x1],_0x5f1883[_0x126b6d(0x2580)]['lexregion']=_0x1889ec[0x2],_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x1c7f)]=_0x1889ec[0x3],_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x173a)]=_0x1889ec[_0x126b6d(0x14cb)](0x4,_0x1889ec['length'])[_0x126b6d(0x1f66)](',');}break;case'autoreply':{const _0x503758=_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x28df)][_0x126b6d(0xbe1)](',');_0x5f1883['playback'][_0x126b6d(0x18a5)]=isNaN(_0x503758[0x0])?_0x503758[0x0]:parseInt(_0x503758[0x0],0xa),_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x19d3)]=_0x503758['slice'](0x1,_0x503758[_0x126b6d(0xfd0)])[_0x126b6d(0x1f66)](',');}break;case'message':_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x19d3)]=_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x28df)];break;case _0x126b6d(0x19d1):_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x16b6)]=_0x5f1883['playback'][_0x126b6d(0x28df)][_0x126b6d(0xbe1)]('=')[0x0],_0x5f1883['playback']['value']=_0x5f1883['playback'][_0x126b6d(0x28df)]['split']('=')[0x1];break;case'agi':_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x12a7)]=_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x28df)];break;default:{const _0x95f9f5=_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x28df)][_0x126b6d(0xbe1)](',');_0x5f1883[_0x126b6d(0x2580)]['appdata']=_0x39641b()['isEmpty'](_0x95f9f5[0x0])?_0x95f9f5[0x0]:isNaN(_0x95f9f5[0x0])?_0x95f9f5[0x0]:parseInt(_0x95f9f5[0x0],0xa),_0x5f1883[_0x126b6d(0x2580)]['options']=_0x39641b()[_0x126b6d(0xce9)](_0x95f9f5[0x1])?_0x95f9f5[0x1]:isNaN(_0x95f9f5[0x1])?_0x95f9f5[0x1]:parseInt(_0x95f9f5[0x1],0xa);}break;}else{}_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x66a)]&&_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x66a)]['toLowerCase']()===_0x126b6d(0x895)&&_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x299b)][_0x126b6d(0x1680)]()===_0x126b6d(0x20ff)&&(_0x5f1883[_0x126b6d(0x2580)]['prefix']=_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x1340)]?_0x5f1883[_0x126b6d(0x2580)]['phone'][_0x126b6d(0xbe1)]('$')[0x0]:undefined,_0x5f1883['playback'][_0x126b6d(0x1e7c)]=_0x5f1883[_0x126b6d(0x2580)][_0x126b6d(0x2816)]?_0x126b6d(0x25f9)+_0x5f1883['playback'][_0x126b6d(0x2816)]:undefined);_0x5f1883[_0x126b6d(0x1654)]=_0x529c84,_0x5f1883[_0x126b6d(0xda0)]=_0x52a060,_0x4f7ff2[_0x126b6d(0x22b6)](_0x126b6d(0x1c60))?_0x3d8a33['sound'][_0x126b6d(0xbf7)]({'fields':_0x126b6d(0x4ae),'sort':_0x126b6d(0x16b6),'nolimit':_0x126b6d(0x44d)})['$promise'][_0x126b6d(0x1cb0)](function(_0x6bb821){const _0x2ebab5=_0x126b6d;_0x5f1883[_0x2ebab5(0xe28)]=_0x6bb821[_0x2ebab5(0x2214)]||[];})[_0x126b6d(0x1c4)](function(_0x10c0d1){const _0x1f1804=_0x126b6d;_0x440f31['error']({'title':_0x10c0d1[_0x1f1804(0x291)]?_0x1f1804(0xeb9)+_0x10c0d1[_0x1f1804(0x291)]+'\x20-\x20'+_0x10c0d1[_0x1f1804(0xc22)]:_0x1f1804(0x1b9e),'msg':_0x10c0d1['data']?JSON['stringify'](_0x10c0d1[_0x1f1804(0x25c)]):_0x10c0d1[_0x1f1804(0x147f)]()});}):_0x3d8a33['sound'][_0x126b6d(0xbf7)]({'fields':_0x126b6d(0x4ae),'sort':_0x126b6d(0x16b6),'nolimit':_0x126b6d(0x44d)})['$promise']['then'](function(_0x260123){const _0xb88c0c=_0x126b6d;_0x5f1883[_0xb88c0c(0xe28)]=_0x260123[_0xb88c0c(0x2214)]||[];})[_0x126b6d(0x1cb0)](function(){const _0x3171bf=_0x126b6d;return _0x3d8a33[_0x3171bf(0x2199)]['get']({'userProfileId':_0x5f1883['currentUser'][_0x3171bf(0x13c1)],'sectionId':0x3ef})['$promise'];})[_0x126b6d(0x1cb0)](function(_0x2b1930){const _0x19ae9e=_0x126b6d,_0x5f3ef8=_0x2b1930&&_0x2b1930['rows']?_0x2b1930['rows'][0x0]:null;if(!_0x5f3ef8){const _0x9fb85=[];let _0x2e776d=null;_0x5f1883[_0x19ae9e(0x2580)]&&(_0x2e776d=_0x39641b()['find'](_0x5f1883[_0x19ae9e(0xe28)],{'save_name':_0x5f1883[_0x19ae9e(0x2580)][_0x19ae9e(0x1e9)]}));for(let _0x237775=0x0;_0x237775<_0x5f1883[_0x19ae9e(0xe28)]['length'];_0x237775++){_0x2e776d&&_0x5f1883[_0x19ae9e(0xe28)][_0x237775]['id']===_0x2e776d['id']&&(_0x5f1883['sounds'][_0x237775][_0x19ae9e(0x15da)]=![],_0x9fb85[_0x19ae9e(0x2785)](_0x5f1883['sounds'][_0x237775]));}_0x5f1883[_0x19ae9e(0xe28)]=_0x9fb85;}else{if(!_0x5f3ef8[_0x19ae9e(0x12f4)])return _0x3d8a33[_0x19ae9e(0x1198)][_0x19ae9e(0xbf7)]({'sectionId':_0x5f3ef8['id']})[_0x19ae9e(0x1d77)][_0x19ae9e(0x1cb0)](function(_0x3a2af0){const _0x43cab0=_0x19ae9e,_0x26e8e0=_0x39641b()[_0x43cab0(0x1de2)](_0x3a2af0[_0x43cab0(0x2214)],function(_0x5c1b23){const _0x39c1d9=_0x43cab0;return _0x39641b()[_0x39c1d9(0x13b4)](_0x5f1883['sounds'],{'id':_0x5c1b23['resourceId']});});let _0x5478ad=null;_0x5f1883[_0x43cab0(0x2580)]&&(_0x5478ad=_0x39641b()[_0x43cab0(0x13b4)](_0x5f1883[_0x43cab0(0xe28)],{'save_name':_0x5f1883[_0x43cab0(0x2580)][_0x43cab0(0x1e9)]}));if(_0x5478ad&&!_0x39641b()[_0x43cab0(0x727)](_0x26e8e0,['id',_0x5478ad['id']])){const _0xce02af=_0x39641b()[_0x43cab0(0x13b4)](_0x5f1883[_0x43cab0(0xe28)],{'id':_0x5478ad['id']});_0xce02af[_0x43cab0(0x15da)]=![],_0x26e8e0[_0x43cab0(0x2785)](_0xce02af);}_0x5f1883['sounds']=_0x26e8e0;});}})[_0x126b6d(0x1c4)](function(_0x410abf){const _0x4ef562=_0x126b6d;_0x440f31[_0x4ef562(0x218e)]({'title':_0x410abf[_0x4ef562(0x291)]?'API:'+_0x410abf[_0x4ef562(0x291)]+_0x4ef562(0x1657)+_0x410abf['statusText']:_0x4ef562(0x3a0),'msg':_0x410abf[_0x4ef562(0x25c)]?JSON[_0x4ef562(0x2701)](_0x410abf['data']):_0x410abf[_0x4ef562(0x147f)]()});});function _0x529c84(){const _0xcf0002=_0x126b6d;_0x5f1883[_0xcf0002(0x1a7c)]=[];const _0x413013=[];_0x5f1883[_0xcf0002(0x2580)][_0xcf0002(0x66a)]&&_0x5f1883[_0xcf0002(0x2580)][_0xcf0002(0x66a)][_0xcf0002(0x1680)]()==='outbound'&&_0x5f1883[_0xcf0002(0x2580)]['appType']===_0xcf0002(0x25f4)&&(_0x5f1883[_0xcf0002(0x2580)][_0xcf0002(0x1340)]=_0x4fe6ea[_0xcf0002(0x325)]?(_0x5f1883[_0xcf0002(0x2580)][_0xcf0002(0x586)]||'')+_0xcf0002(0x19e4)+_0x4fe6ea[_0xcf0002(0x325)]+'}':(_0x5f1883[_0xcf0002(0x2580)][_0xcf0002(0x586)]||'')+_0xcf0002(0xcdd),_0x4fe6ea['recordingFormat']!==_0xcf0002(0x13b1)?_0x5f1883['playback']['options'][_0xcf0002(0xd8a)](_0xcf0002(0x106a))<0x0&&(_0x5f1883[_0xcf0002(0x2580)][_0xcf0002(0x2224)]+='U(xcally-mixmonitor-context)'):_0x5f1883['playback'][_0xcf0002(0x2224)]=_0x5f1883[_0xcf0002(0x2580)][_0xcf0002(0x2224)][_0xcf0002(0x288f)](_0xcf0002(0x106a),''));if(_0x5f1883[_0xcf0002(0x2580)]['appType']&&_0x5f1883['playback'][_0xcf0002(0x299b)]==='custom'){}else switch((_0x5f1883['playback'][_0xcf0002(0x22e1)]||_0x5f1883[_0xcf0002(0x2580)][_0xcf0002(0x299b)])['toLowerCase']()){case _0xcf0002(0x19d1):_0x5f1883[_0xcf0002(0x2580)][_0xcf0002(0x28df)]=_0x5f1883[_0xcf0002(0x2580)][_0xcf0002(0x16b6)]+'='+_0x5f1883[_0xcf0002(0x2580)][_0xcf0002(0x327)];break;case _0xcf0002(0x197c):break;default:_0x413013[0x0]=_0x5f1883[_0xcf0002(0x2580)]['appdata'],_0x413013[0x1]=_0x5f1883['playback'][_0xcf0002(0x2224)],_0x5f1883[_0xcf0002(0x2580)][_0xcf0002(0x28df)]=_0x413013['join'](',');}_0x52a060(_0x5f1883[_0xcf0002(0x2580)]);}function _0x52a060(_0x197677){const _0x290690=_0x126b6d;_0x2c0b41[_0x290690(0x1426)](_0x197677);}}const _0x4fe3ea=_0x561a4f;;_0x10ee6d[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty','inboundrouteApp',_0x5537c6(0x80a),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x10ee6d(_0x56871b,_0xb378f6,_0x134d53,_0x2086b5,_0x128ba8,_0x29f567,_0x4cadf6,_0x2f3f29){const _0x3f78f4=_0x5537c6,_0x2a20a1=this;_0x2a20a1[_0x3f78f4(0xe76)]=_0x4cadf6[_0x3f78f4(0x21e8)](),_0x2a20a1['errors']=[],_0x2a20a1[_0x3f78f4(0x1386)]='VOICE.EDIT_'+(_0x2086b5['appType']||_0x2086b5[_0x3f78f4(0x22e1)])[_0x3f78f4(0x2335)](),_0x2a20a1[_0x3f78f4(0x11cf)]=angular['copy'](_0x2086b5),_0x2a20a1[_0x3f78f4(0x1b1a)]=_0x2f3f29,_0x2a20a1[_0x3f78f4(0xf4c)]={};if(_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x28df)])switch(_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x299b)]?_0x2a20a1[_0x3f78f4(0x11cf)]['appType']['toLowerCase']():_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x22e1)][_0x3f78f4(0x1680)]()){case _0x3f78f4(0x197c):break;case _0x3f78f4(0x711):{const _0x42a0a8=_0x2a20a1['queue'][_0x3f78f4(0x28df)][_0x3f78f4(0xbe1)](',');_0x2a20a1['queue']['key']=_0x42a0a8[0x0],_0x2a20a1[_0x3f78f4(0x11cf)]['language']=_0x42a0a8[0x1],_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x173a)]=_0x42a0a8[_0x3f78f4(0x14cb)](0x2,_0x42a0a8[_0x3f78f4(0xfd0)])[_0x3f78f4(0x1f66)](',');}break;case _0x3f78f4(0xece):{const _0x3dd373=_0x2a20a1[_0x3f78f4(0x11cf)]['appdata'][_0x3f78f4(0xbe1)](',');_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x2854)]=_0x3dd373[0x0],_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x12bf)]=_0x3dd373[0x1],_0x2a20a1[_0x3f78f4(0x11cf)]['privateKey']=_0x3dd373[0x2],_0x2a20a1['queue'][_0x3f78f4(0x12b4)]=_0x3dd373[0x3],_0x2a20a1[_0x3f78f4(0x11cf)]['welcomemessage']=_0x3dd373[_0x3f78f4(0x14cb)](0x4,_0x3dd373[_0x3f78f4(0xfd0)])[_0x3f78f4(0x1f66)](',');}break;case _0x3f78f4(0x123a):{const _0x1e2e7e=_0x2a20a1['queue'][_0x3f78f4(0x28df)]['split'](',');_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x413)]=_0x1e2e7e[0x0],_0x2a20a1['queue'][_0x3f78f4(0x21d9)]=_0x1e2e7e[0x1],_0x2a20a1['queue'][_0x3f78f4(0xd50)]=_0x1e2e7e[0x2],_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x1c7f)]=_0x1e2e7e[0x3],_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x173a)]=_0x1e2e7e['slice'](0x4,_0x1e2e7e[_0x3f78f4(0xfd0)])[_0x3f78f4(0x1f66)](',');}break;case _0x3f78f4(0x1f71):{const _0x2e89b3=_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x28df)]['split'](',');_0x2a20a1['queue'][_0x3f78f4(0x18a5)]=isNaN(_0x2e89b3[0x0])?_0x2e89b3[0x0]:parseInt(_0x2e89b3[0x0],0xa),_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x19d3)]=_0x2e89b3[_0x3f78f4(0x14cb)](0x1,_0x2e89b3[_0x3f78f4(0xfd0)])['join'](',');}break;case'message':_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x19d3)]=_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x28df)];break;case'set':_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x16b6)]=_0x2a20a1['queue'][_0x3f78f4(0x28df)][_0x3f78f4(0xbe1)]('=')[0x0],_0x2a20a1['queue'][_0x3f78f4(0x327)]=_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x28df)][_0x3f78f4(0xbe1)]('=')[0x1];break;case _0x3f78f4(0x4b4):_0x2a20a1['queue'][_0x3f78f4(0x12a7)]=_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x28df)];break;default:{const _0xe7573=_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x28df)][_0x3f78f4(0xbe1)](',');_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x11cf)]=_0x39641b()[_0x3f78f4(0xce9)](_0xe7573[0x0])?_0xe7573[0x0]:isNaN(_0xe7573[0x0])?_0xe7573[0x0]:parseInt(_0xe7573[0x0],0xa),_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x2224)]=_0x39641b()[_0x3f78f4(0xce9)](_0xe7573[0x1])?_0xe7573[0x1]:isNaN(_0xe7573[0x1])?_0xe7573[0x1]:parseInt(_0xe7573[0x1],0xa),_0x2a20a1[_0x3f78f4(0x11cf)]['URL']=_0x39641b()[_0x3f78f4(0xce9)](_0xe7573[0x2])?_0xe7573[0x2]:isNaN(_0xe7573[0x2])?_0xe7573[0x2]:parseInt(_0xe7573[0x2],0xa),_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x1e9)]=_0x39641b()[_0x3f78f4(0xce9)](_0xe7573[0x3])?_0xe7573[0x3]:isNaN(_0xe7573[0x3])?_0xe7573[0x3]:parseInt(_0xe7573[0x3],0xa),_0x2a20a1[_0x3f78f4(0x11cf)]['timeout']=_0x39641b()['isEmpty'](_0xe7573[0x4])?_0xe7573[0x4]:isNaN(_0xe7573[0x4])?_0xe7573[0x4]:parseInt(_0xe7573[0x4],0xa),_0x2a20a1['queue'][_0x3f78f4(0x4b4)]=_0x39641b()[_0x3f78f4(0xce9)](_0xe7573[0x5])?_0xe7573[0x5]:isNaN(_0xe7573[0x5])?_0xe7573[0x5]:parseInt(_0xe7573[0x5],0xa),_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x321)]=_0x39641b()[_0x3f78f4(0xce9)](_0xe7573[0x6])?_0xe7573[0x6]:isNaN(_0xe7573[0x6])?_0xe7573[0x6]:parseInt(_0xe7573[0x6],0xa),_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x20fb)]=_0x39641b()['isEmpty'](_0xe7573[0x7])?_0xe7573[0x7]:isNaN(_0xe7573[0x7])?_0xe7573[0x7]:parseInt(_0xe7573[0x7],0xa),_0x2a20a1['queue'][_0x3f78f4(0x5a5)]=_0x39641b()[_0x3f78f4(0xce9)](_0xe7573[0x8])?_0xe7573[0x8]:isNaN(_0xe7573[0x8])?_0xe7573[0x8]:parseInt(_0xe7573[0x8],0xa),_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0xe9e)]=_0x39641b()[_0x3f78f4(0xce9)](_0xe7573[0x9])?_0xe7573[0x9]:isNaN(_0xe7573[0x9])?_0xe7573[0x9]:parseInt(_0xe7573[0x9],0xa);}break;}else{}_0x2a20a1[_0x3f78f4(0x11cf)]['type']&&_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x66a)][_0x3f78f4(0x1680)]()==='outbound'&&_0x2a20a1['queue'][_0x3f78f4(0x299b)][_0x3f78f4(0x1680)]()==='outbounddial'&&(_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x586)]=_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x1340)]?_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x1340)][_0x3f78f4(0xbe1)]('$')[0x0]:undefined,_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x1e7c)]=_0x2a20a1[_0x3f78f4(0x11cf)][_0x3f78f4(0x2816)]?'CALLERID(all)='+_0x2a20a1['queue']['callerID']:undefined);_0x2a20a1[_0x3f78f4(0x1654)]=_0x5e4c5d,_0x2a20a1[_0x3f78f4(0xda0)]=_0x31e0fb,_0x4cadf6[_0x3f78f4(0x22b6)](_0x3f78f4(0x1c60))?_0x29f567['sound'][_0x3f78f4(0xbf7)]({'fields':'id,name,save_name','sort':_0x3f78f4(0x16b6),'nolimit':_0x3f78f4(0x44d)})['$promise'][_0x3f78f4(0x1cb0)](function(_0x37595b){const _0xc2151c=_0x3f78f4;_0x2a20a1['sounds']=_0x37595b[_0xc2151c(0x2214)]||[];})[_0x3f78f4(0x1c4)](function(_0x227cd4){const _0x1a2026=_0x3f78f4;_0x134d53[_0x1a2026(0x218e)]({'title':_0x227cd4[_0x1a2026(0x291)]?_0x1a2026(0xeb9)+_0x227cd4[_0x1a2026(0x291)]+_0x1a2026(0x1657)+_0x227cd4[_0x1a2026(0xc22)]:_0x1a2026(0x1b9e),'msg':_0x227cd4[_0x1a2026(0x25c)]?JSON[_0x1a2026(0x2701)](_0x227cd4['data']):_0x227cd4[_0x1a2026(0x147f)]()});}):_0x29f567['sound'][_0x3f78f4(0xbf7)]({'fields':'id,name,save_name','sort':_0x3f78f4(0x16b6),'nolimit':_0x3f78f4(0x44d)})['$promise'][_0x3f78f4(0x1cb0)](function(_0xc36b72){const _0x1d8772=_0x3f78f4;_0x2a20a1[_0x1d8772(0xe28)]=_0xc36b72[_0x1d8772(0x2214)]||[];})[_0x3f78f4(0x1cb0)](function(){const _0x19a5d9=_0x3f78f4;return _0x29f567['userProfileSection'][_0x19a5d9(0xbf7)]({'userProfileId':_0x2a20a1['currentUser'][_0x19a5d9(0x13c1)],'sectionId':0x3ef})['$promise'];})[_0x3f78f4(0x1cb0)](function(_0x4945f1){const _0x585943=_0x3f78f4,_0x4f4bfb=_0x4945f1&&_0x4945f1[_0x585943(0x2214)]?_0x4945f1[_0x585943(0x2214)][0x0]:null;if(!_0x4f4bfb){const _0x46338e=[];let _0x9ba486=null;_0x2a20a1[_0x585943(0x11cf)]&&(_0x9ba486=_0x39641b()['find'](_0x2a20a1[_0x585943(0xe28)],{'save_name':_0x2a20a1[_0x585943(0x11cf)][_0x585943(0x1e9)]}));for(let _0x4ad3eb=0x0;_0x4ad3eb<_0x2a20a1[_0x585943(0xe28)][_0x585943(0xfd0)];_0x4ad3eb++){_0x9ba486&&_0x2a20a1[_0x585943(0xe28)][_0x4ad3eb]['id']===_0x9ba486['id']&&(_0x2a20a1[_0x585943(0xe28)][_0x4ad3eb][_0x585943(0x15da)]=![],_0x46338e[_0x585943(0x2785)](_0x2a20a1['sounds'][_0x4ad3eb]));}_0x2a20a1[_0x585943(0xe28)]=_0x46338e;}else{if(!_0x4f4bfb[_0x585943(0x12f4)])return _0x29f567['userProfileResource'][_0x585943(0xbf7)]({'sectionId':_0x4f4bfb['id']})[_0x585943(0x1d77)][_0x585943(0x1cb0)](function(_0x3aa06a){const _0x4a401e=_0x585943,_0x5708a8=_0x39641b()['map'](_0x3aa06a[_0x4a401e(0x2214)],function(_0x329720){const _0x49664b=_0x4a401e;return _0x39641b()['find'](_0x2a20a1[_0x49664b(0xe28)],{'id':_0x329720[_0x49664b(0x2982)]});});let _0x32bfff=null;_0x2a20a1[_0x4a401e(0x11cf)]&&(_0x32bfff=_0x39641b()[_0x4a401e(0x13b4)](_0x2a20a1['sounds'],{'save_name':_0x2a20a1[_0x4a401e(0x11cf)][_0x4a401e(0x1e9)]}));if(_0x32bfff&&!_0x39641b()['some'](_0x5708a8,['id',_0x32bfff['id']])){const _0x2e28a5=_0x39641b()['find'](_0x2a20a1[_0x4a401e(0xe28)],{'id':_0x32bfff['id']});_0x2e28a5[_0x4a401e(0x15da)]=![],_0x5708a8['push'](_0x2e28a5);}_0x2a20a1[_0x4a401e(0xe28)]=_0x5708a8;});}})[_0x3f78f4(0x1c4)](function(_0x22a1eb){const _0x3d59a3=_0x3f78f4;_0x134d53['error']({'title':_0x22a1eb['status']?'API:'+_0x22a1eb[_0x3d59a3(0x291)]+_0x3d59a3(0x1657)+_0x22a1eb['statusText']:'SYSTEM:GETsounds','msg':_0x22a1eb['data']?JSON[_0x3d59a3(0x2701)](_0x22a1eb[_0x3d59a3(0x25c)]):_0x22a1eb[_0x3d59a3(0x147f)]()});}),_0x4cadf6['hasRole'](_0x3f78f4(0x1c60))?_0x29f567[_0x3f78f4(0x26b3)][_0x3f78f4(0xbf7)]({'type':'inbound','fields':_0x3f78f4(0x1896),'sort':'name','nolimit':_0x3f78f4(0x44d)})[_0x3f78f4(0x1d77)][_0x3f78f4(0x1cb0)](function(_0x26b242){const _0x1ec4f1=_0x3f78f4;_0x2a20a1[_0x1ec4f1(0x971)]=_0x26b242[_0x1ec4f1(0x2214)]||[];})[_0x3f78f4(0x1c4)](function(_0x54780f){const _0x3638cb=_0x3f78f4;_0x134d53['error']({'title':_0x54780f[_0x3638cb(0x291)]?_0x3638cb(0xeb9)+_0x54780f['status']+'\x20-\x20'+_0x54780f[_0x3638cb(0xc22)]:'SYSTEM:GET_QUEUES','msg':_0x54780f[_0x3638cb(0x25c)]?JSON[_0x3638cb(0x2701)](_0x54780f[_0x3638cb(0x25c)]):_0x54780f[_0x3638cb(0x147f)]()});}):_0x29f567[_0x3f78f4(0x26b3)][_0x3f78f4(0xbf7)]({'type':'inbound','fields':_0x3f78f4(0x1896),'sort':'name','nolimit':'true'})[_0x3f78f4(0x1d77)][_0x3f78f4(0x1cb0)](function(_0xfa3ec6){const _0x5dd097=_0x3f78f4;_0x2a20a1[_0x5dd097(0x971)]=_0xfa3ec6[_0x5dd097(0x2214)]||[];})[_0x3f78f4(0x1cb0)](function(){const _0x37671a=_0x3f78f4;return _0x29f567[_0x37671a(0x2199)][_0x37671a(0xbf7)]({'userProfileId':_0x2a20a1['currentUser'][_0x37671a(0x13c1)],'sectionId':0x191})[_0x37671a(0x1d77)];})['then'](function(_0xe079d5){const _0x3fdb92=_0x3f78f4,_0x255077=_0xe079d5&&_0xe079d5[_0x3fdb92(0x2214)]?_0xe079d5[_0x3fdb92(0x2214)][0x0]:null;if(!_0x255077){const _0x50c865=[];let _0x55e9cd=null;_0x2a20a1[_0x3fdb92(0x11cf)]&&(_0x55e9cd=_0x39641b()[_0x3fdb92(0x13b4)](_0x2a20a1[_0x3fdb92(0x971)],{'name':_0x2a20a1['queue'][_0x3fdb92(0x11cf)]}));for(let _0x2a00dd=0x0;_0x2a00dd<_0x2a20a1[_0x3fdb92(0x971)][_0x3fdb92(0xfd0)];_0x2a00dd++){_0x55e9cd&&_0x2a20a1[_0x3fdb92(0x971)][_0x2a00dd]['id']===_0x55e9cd['id']&&(_0x2a20a1['queues'][_0x2a00dd][_0x3fdb92(0x15da)]=![],_0x50c865[_0x3fdb92(0x2785)](_0x2a20a1[_0x3fdb92(0x971)][_0x2a00dd]));}_0x2a20a1[_0x3fdb92(0x971)]=_0x50c865;}else{if(!_0x255077[_0x3fdb92(0x12f4)])return _0x29f567['userProfileResource'][_0x3fdb92(0xbf7)]({'sectionId':_0x255077['id']})[_0x3fdb92(0x1d77)][_0x3fdb92(0x1cb0)](function(_0x4c2cb3){const _0x24d1c7=_0x3fdb92,_0x582db3=_0x39641b()['map'](_0x4c2cb3[_0x24d1c7(0x2214)],function(_0x3e1c16){const _0x75359d=_0x24d1c7;return _0x39641b()['find'](_0x2a20a1[_0x75359d(0x971)],{'id':_0x3e1c16[_0x75359d(0x2982)]});});let _0x2e6ee0=null;_0x2a20a1[_0x24d1c7(0x11cf)]&&(_0x2e6ee0=_0x39641b()[_0x24d1c7(0x13b4)](_0x2a20a1[_0x24d1c7(0x971)],{'name':_0x2a20a1[_0x24d1c7(0x11cf)][_0x24d1c7(0x11cf)]}));if(_0x2e6ee0&&!_0x39641b()[_0x24d1c7(0x727)](_0x582db3,['id',_0x2e6ee0['id']])){const _0x1af71c=_0x39641b()[_0x24d1c7(0x13b4)](_0x2a20a1[_0x24d1c7(0x971)],{'id':_0x2e6ee0['id']});_0x1af71c[_0x24d1c7(0x15da)]=![],_0x582db3['push'](_0x1af71c);}_0x2a20a1['queues']=_0x582db3;});}})['catch'](function(_0x2a6106){const _0x21e20f=_0x3f78f4;_0x134d53[_0x21e20f(0x218e)]({'title':_0x2a6106['status']?_0x21e20f(0xeb9)+_0x2a6106[_0x21e20f(0x291)]+'\x20-\x20'+_0x2a6106[_0x21e20f(0xc22)]:_0x21e20f(0x1af2),'msg':_0x2a6106['data']?JSON['stringify'](_0x2a6106[_0x21e20f(0x25c)]):_0x2a6106[_0x21e20f(0x147f)]()});});function _0x5e4c5d(){const _0x352ead=_0x3f78f4;_0x2a20a1['errors']=[];const _0x577658=[];_0x2a20a1[_0x352ead(0x11cf)][_0x352ead(0x66a)]&&_0x2a20a1[_0x352ead(0x11cf)][_0x352ead(0x66a)][_0x352ead(0x1680)]()==='outbound'&&_0x2a20a1[_0x352ead(0x11cf)][_0x352ead(0x299b)]===_0x352ead(0x25f4)&&(_0x2a20a1[_0x352ead(0x11cf)]['phone']=_0x128ba8[_0x352ead(0x325)]?(_0x2a20a1[_0x352ead(0x11cf)][_0x352ead(0x586)]||'')+_0x352ead(0x19e4)+_0x128ba8[_0x352ead(0x325)]+'}':(_0x2a20a1[_0x352ead(0x11cf)]['prefix']||'')+_0x352ead(0xcdd),_0x128ba8[_0x352ead(0xf8d)]!==_0x352ead(0x13b1)?_0x2a20a1['queue'][_0x352ead(0x2224)]['indexOf'](_0x352ead(0x106a))<0x0&&(_0x2a20a1[_0x352ead(0x11cf)][_0x352ead(0x2224)]+=_0x352ead(0x106a)):_0x2a20a1[_0x352ead(0x11cf)][_0x352ead(0x2224)]=_0x2a20a1[_0x352ead(0x11cf)][_0x352ead(0x2224)][_0x352ead(0x288f)](_0x352ead(0x106a),''));if(_0x2a20a1[_0x352ead(0x11cf)]['appType']&&_0x2a20a1[_0x352ead(0x11cf)][_0x352ead(0x299b)]===_0x352ead(0x197c)){}else switch((_0x2a20a1[_0x352ead(0x11cf)][_0x352ead(0x22e1)]||_0x2a20a1['queue'][_0x352ead(0x299b)])[_0x352ead(0x1680)]()){case'set':_0x2a20a1[_0x352ead(0x11cf)][_0x352ead(0x28df)]=_0x2a20a1[_0x352ead(0x11cf)][_0x352ead(0x16b6)]+'='+_0x2a20a1[_0x352ead(0x11cf)][_0x352ead(0x327)];break;case'custom':break;default:_0x577658[0x0]=_0x2a20a1[_0x352ead(0x11cf)][_0x352ead(0x11cf)],_0x577658[0x1]=_0x2a20a1[_0x352ead(0x11cf)][_0x352ead(0x2224)],_0x577658[0x2]=_0x2a20a1[_0x352ead(0x11cf)][_0x352ead(0x237e)],_0x577658[0x3]=_0x2a20a1[_0x352ead(0x11cf)]['sound'],_0x577658[0x4]=_0x2a20a1[_0x352ead(0x11cf)]['timeout'],_0x577658[0x5]=_0x2a20a1[_0x352ead(0x11cf)][_0x352ead(0x4b4)],_0x577658[0x6]=_0x2a20a1[_0x352ead(0x11cf)]['macro'],_0x577658[0x7]=_0x2a20a1[_0x352ead(0x11cf)]['gosub'],_0x577658[0x8]=_0x2a20a1[_0x352ead(0x11cf)][_0x352ead(0x5a5)],_0x577658[0x9]=_0x2a20a1['queue'][_0x352ead(0xe9e)],_0x2a20a1[_0x352ead(0x11cf)]['appdata']=_0x577658[_0x352ead(0x1f66)](',');}_0x31e0fb(_0x2a20a1[_0x352ead(0x11cf)]);}function _0x31e0fb(_0x323270){_0x56871b['hide'](_0x323270);}}const _0x282566=_0x10ee6d;;_0x47ad56['$inject']=[_0x5537c6(0xcb9),'$q','toasty',_0x5537c6(0x29d4),_0x5537c6(0x80a),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x47ad56(_0x3ce205,_0x4ce3d4,_0x300bb3,_0x55ccd7,_0x3f46ad,_0x5ec4ab,_0x9e00e1,_0x3c7614){const _0x2b1fc3=_0x5537c6,_0x419b12=this;_0x419b12['currentUser']=_0x9e00e1['getCurrentUser'](),_0x419b12[_0x2b1fc3(0x1a7c)]=[],_0x419b12['title']='VOICE.EDIT_'+(_0x55ccd7['appType']||_0x55ccd7[_0x2b1fc3(0x22e1)])['toUpperCase'](),_0x419b12[_0x2b1fc3(0x9b3)]=angular[_0x2b1fc3(0x17fe)](_0x55ccd7),_0x419b12[_0x2b1fc3(0x1b1a)]=_0x3c7614,_0x419b12['hasModulePermissions']={};if(_0x419b12['ringgroup'][_0x2b1fc3(0x28df)])switch(_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x299b)]?_0x419b12[_0x2b1fc3(0x9b3)]['appType'][_0x2b1fc3(0x1680)]():_0x419b12[_0x2b1fc3(0x9b3)]['app'][_0x2b1fc3(0x1680)]()){case'custom':break;case _0x2b1fc3(0x711):{const _0x13c179=_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x28df)][_0x2b1fc3(0xbe1)](',');_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0xee8)]=_0x13c179[0x0],_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x12b4)]=_0x13c179[0x1],_0x419b12[_0x2b1fc3(0x9b3)]['welcomemessage']=_0x13c179[_0x2b1fc3(0x14cb)](0x2,_0x13c179[_0x2b1fc3(0xfd0)])[_0x2b1fc3(0x1f66)](',');}break;case _0x2b1fc3(0xece):{const _0x479107=_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x28df)][_0x2b1fc3(0xbe1)](',');_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x2854)]=_0x479107[0x0],_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x12bf)]=_0x479107[0x1],_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x29d6)]=_0x479107[0x2],_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x12b4)]=_0x479107[0x3],_0x419b12[_0x2b1fc3(0x9b3)]['welcomemessage']=_0x479107['slice'](0x4,_0x479107[_0x2b1fc3(0xfd0)])[_0x2b1fc3(0x1f66)](',');}break;case'amazonlex':{const _0x3bbd82=_0x419b12['ringgroup']['appdata']['split'](',');_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x413)]=_0x3bbd82[0x0],_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x21d9)]=_0x3bbd82[0x1],_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0xd50)]=_0x3bbd82[0x2],_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x1c7f)]=_0x3bbd82[0x3],_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x173a)]=_0x3bbd82[_0x2b1fc3(0x14cb)](0x4,_0x3bbd82[_0x2b1fc3(0xfd0)])[_0x2b1fc3(0x1f66)](',');}break;case'autoreply':{const _0x28b966=_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x28df)]['split'](',');_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x18a5)]=isNaN(_0x28b966[0x0])?_0x28b966[0x0]:parseInt(_0x28b966[0x0],0xa),_0x419b12['ringgroup'][_0x2b1fc3(0x19d3)]=_0x28b966['slice'](0x1,_0x28b966[_0x2b1fc3(0xfd0)])[_0x2b1fc3(0x1f66)](',');}break;case'message':_0x419b12['ringgroup']['text']=_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x28df)];break;case'set':_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x16b6)]=_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x28df)][_0x2b1fc3(0xbe1)]('=')[0x0],_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x327)]=_0x419b12[_0x2b1fc3(0x9b3)]['appdata'][_0x2b1fc3(0xbe1)]('=')[0x1];break;case _0x2b1fc3(0x4b4):_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x12a7)]=_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x28df)];break;default:{const _0x1463f1=_0x419b12['ringgroup'][_0x2b1fc3(0x28df)][_0x2b1fc3(0xbe1)](',');_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x1989)]=_0x1463f1[0x0][_0x2b1fc3(0xbe1)]('&'),_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x1719)]=_0x39641b()[_0x2b1fc3(0xce9)](_0x1463f1[0x1])?_0x1463f1[0x1]:isNaN(_0x1463f1[0x1])?_0x1463f1[0x1]:parseInt(_0x1463f1[0x1],0xa),_0x419b12[_0x2b1fc3(0x9b3)]['options']=_0x39641b()['isEmpty'](_0x1463f1[0x2])?_0x1463f1[0x2]:isNaN(_0x1463f1[0x2])?_0x1463f1[0x2]:parseInt(_0x1463f1[0x2],0xa),_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x135b)]=_0x39641b()[_0x2b1fc3(0xce9)](_0x1463f1[0x3])?_0x1463f1[0x3]:isNaN(_0x1463f1[0x3])?_0x1463f1[0x3]:parseInt(_0x1463f1[0x3],0xa);}break;}else{}_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x66a)]&&_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x66a)]['toLowerCase']()===_0x2b1fc3(0x895)&&_0x419b12[_0x2b1fc3(0x9b3)]['appType'][_0x2b1fc3(0x1680)]()===_0x2b1fc3(0x20ff)&&(_0x419b12[_0x2b1fc3(0x9b3)]['prefix']=_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x1340)]?_0x419b12[_0x2b1fc3(0x9b3)]['phone'][_0x2b1fc3(0xbe1)]('$')[0x0]:undefined,_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x1e7c)]=_0x419b12[_0x2b1fc3(0x9b3)]['callerID']?_0x2b1fc3(0x25f9)+_0x419b12[_0x2b1fc3(0x9b3)][_0x2b1fc3(0x2816)]:undefined);_0x419b12['saveInboundRouteApp']=_0x22f1d1,_0x419b12[_0x2b1fc3(0xda0)]=_0x386737;const _0x35febf=[{'id':0xca,'role':'agent'},{'id':0xcb,'role':_0x2b1fc3(0x2922)}];let _0x1b29ec=null;_0x9e00e1['hasRole']('admin')?_0x5ec4ab['user'][_0x2b1fc3(0xbf7)]({'fields':_0x2b1fc3(0x17ce),'sort':_0x2b1fc3(0x16b6),'nolimit':_0x2b1fc3(0x44d)})[_0x2b1fc3(0x1d77)][_0x2b1fc3(0x1cb0)](function(_0x23f3a5){const _0x41b0fc=_0x2b1fc3;_0x419b12[_0x41b0fc(0x1e30)]=_0x23f3a5['rows']||[];})['catch'](function(_0x27ff48){const _0xd91f64=_0x2b1fc3;_0x300bb3['error']({'title':_0x27ff48[_0xd91f64(0x291)]?_0xd91f64(0xeb9)+_0x27ff48[_0xd91f64(0x291)]+_0xd91f64(0x1657)+_0x27ff48[_0xd91f64(0xc22)]:'SYSTEM:GET_USERS','msg':_0x27ff48[_0xd91f64(0x25c)]?JSON[_0xd91f64(0x2701)](_0x27ff48[_0xd91f64(0x25c)]):_0x27ff48[_0xd91f64(0x147f)]()});}):_0x5ec4ab[_0x2b1fc3(0xebe)]['get']({'fields':'id,name,role','sort':_0x2b1fc3(0x16b6),'nolimit':_0x2b1fc3(0x44d)})[_0x2b1fc3(0x1d77)][_0x2b1fc3(0x1cb0)](function(_0x4b5ccc){const _0x4f1fde=_0x2b1fc3;_0x1b29ec=_0x4b5ccc[_0x4f1fde(0x2214)]||[];})[_0x2b1fc3(0x1cb0)](function(){const _0x19bb86=_0x2b1fc3,_0x540093=[];for(let _0x3bc409=0x0;_0x3bc409<_0x35febf['length'];_0x3bc409++){_0x540093['push'](_0x5ec4ab['userProfileSection'][_0x19bb86(0xbf7)]({'userProfileId':_0x419b12[_0x19bb86(0xe76)][_0x19bb86(0x13c1)],'sectionId':_0x35febf[_0x3bc409]['id']})[_0x19bb86(0x1d77)]);}return _0x4ce3d4[_0x19bb86(0x223b)](_0x540093);})[_0x2b1fc3(0x1cb0)](function(_0x3825ab){const _0x551a44=_0x2b1fc3,_0x42a701=_0x39641b()[_0x551a44(0x1de2)](_0x3825ab,function(_0x1dee71){const _0x33b456=_0x551a44;return _0x1dee71&&_0x1dee71[_0x33b456(0x2214)]?_0x1dee71[_0x33b456(0x2214)][0x0]:null;}),_0x159f1a=[];for(let _0x524707=0x0;_0x524707<_0x35febf['length'];_0x524707++){const _0x38e356=_0x39641b()[_0x551a44(0x13b4)](_0x42a701,[_0x551a44(0xec6),_0x35febf[_0x524707]['id']]);if(_0x38e356){if(!_0x38e356[_0x551a44(0x12f4)])_0x159f1a[_0x551a44(0x2785)](_0x5ec4ab[_0x551a44(0x1198)][_0x551a44(0xbf7)]({'sectionId':_0x38e356['id']})[_0x551a44(0x1d77)]);else{const _0x3d35a8=[];_0x1b29ec[_0x551a44(0xf90)](function(_0x1d5140){const _0x28a5ce=_0x551a44;_0x1d5140[_0x28a5ce(0x26e6)]===_0x35febf[_0x524707][_0x28a5ce(0x26e6)]&&_0x3d35a8[_0x28a5ce(0x2785)](_0x1d5140);}),_0x159f1a[_0x551a44(0x2785)]({'rows':_0x3d35a8,'count':_0x3d35a8[_0x551a44(0xfd0)]});}}}return _0x4ce3d4[_0x551a44(0x223b)](_0x159f1a);})[_0x2b1fc3(0x1cb0)](function(_0x138e4c){const _0x34d97b=_0x2b1fc3,_0x5ac93c=[];let _0x2f4021=null;_0x419b12[_0x34d97b(0x9b3)]&&(_0x2f4021=_0x39641b()[_0x34d97b(0x13b4)](_0x1b29ec,{'name':_0x419b12['ringgroup'][_0x34d97b(0x1989)]}));for(let _0xcf3d1b=0x0;_0xcf3d1b<_0x138e4c[_0x34d97b(0xfd0)];_0xcf3d1b++){const _0x5a3e1c=_0x138e4c[_0xcf3d1b]['rows']||[];_0x5a3e1c[_0x34d97b(0xf90)](function(_0x340b7f){const _0x324a7f=_0x34d97b;_0x5ac93c[_0x324a7f(0x2785)](_0x340b7f);});}_0x2f4021&&!_0x39641b()[_0x34d97b(0x727)](_0x5ac93c,[_0x34d97b(0x2982),_0x2f4021['id']])&&_0x1b29ec[_0x34d97b(0xf90)](function(_0x224d12){_0x224d12['id']===_0x2f4021['id']&&(_0x224d12['canSelect']=![],_0x5ac93c['push'](_0x224d12));}),_0x419b12['users']=_0x5ac93c;})[_0x2b1fc3(0x1c4)](function(_0xc4eacf){const _0x45f878=_0x2b1fc3;_0x300bb3[_0x45f878(0x218e)]({'title':_0xc4eacf[_0x45f878(0x291)]?_0x45f878(0xeb9)+_0xc4eacf['status']+_0x45f878(0x1657)+_0xc4eacf[_0x45f878(0xc22)]:_0x45f878(0x1e94),'msg':_0xc4eacf[_0x45f878(0x25c)]?JSON[_0x45f878(0x2701)](_0xc4eacf[_0x45f878(0x25c)]):_0xc4eacf[_0x45f878(0x147f)]()});});function _0x22f1d1(){const _0x1749c7=_0x2b1fc3;_0x419b12[_0x1749c7(0x1a7c)]=[];const _0x5129df=[];_0x419b12[_0x1749c7(0x9b3)]['type']&&_0x419b12[_0x1749c7(0x9b3)][_0x1749c7(0x66a)][_0x1749c7(0x1680)]()==='outbound'&&_0x419b12[_0x1749c7(0x9b3)][_0x1749c7(0x299b)]==='outboundDial'&&(_0x419b12[_0x1749c7(0x9b3)][_0x1749c7(0x1340)]=_0x3f46ad[_0x1749c7(0x325)]?(_0x419b12[_0x1749c7(0x9b3)][_0x1749c7(0x586)]||'')+'${EXTEN:'+_0x3f46ad[_0x1749c7(0x325)]+'}':(_0x419b12['ringgroup'][_0x1749c7(0x586)]||'')+_0x1749c7(0xcdd),_0x3f46ad[_0x1749c7(0xf8d)]!=='none'?_0x419b12[_0x1749c7(0x9b3)][_0x1749c7(0x2224)][_0x1749c7(0xd8a)](_0x1749c7(0x106a))<0x0&&(_0x419b12[_0x1749c7(0x9b3)][_0x1749c7(0x2224)]+='U(xcally-mixmonitor-context)'):_0x419b12['ringgroup'][_0x1749c7(0x2224)]=_0x419b12[_0x1749c7(0x9b3)][_0x1749c7(0x2224)][_0x1749c7(0x288f)](_0x1749c7(0x106a),''));if(_0x419b12['ringgroup'][_0x1749c7(0x299b)]&&_0x419b12[_0x1749c7(0x9b3)][_0x1749c7(0x299b)]==='custom'){}else switch((_0x419b12[_0x1749c7(0x9b3)][_0x1749c7(0x22e1)]||_0x419b12[_0x1749c7(0x9b3)][_0x1749c7(0x299b)])['toLowerCase']()){case'set':_0x419b12['ringgroup']['appdata']=_0x419b12[_0x1749c7(0x9b3)][_0x1749c7(0x16b6)]+'='+_0x419b12[_0x1749c7(0x9b3)][_0x1749c7(0x327)];break;case'custom':break;default:_0x5129df[0x0]=_0x419b12[_0x1749c7(0x9b3)][_0x1749c7(0x1989)][_0x1749c7(0x1f66)]('&'),_0x5129df[0x1]=_0x419b12[_0x1749c7(0x9b3)]['timeout'],_0x5129df[0x2]=_0x419b12['ringgroup'][_0x1749c7(0x2224)],_0x5129df[0x3]=_0x419b12[_0x1749c7(0x9b3)][_0x1749c7(0x135b)],_0x419b12[_0x1749c7(0x9b3)][_0x1749c7(0x28df)]=_0x5129df[_0x1749c7(0x1f66)](',');}_0x386737(_0x419b12[_0x1749c7(0x9b3)]);}function _0x386737(_0x5bcd34){const _0x49441a=_0x2b1fc3;_0x3ce205[_0x49441a(0x1426)](_0x5bcd34);}}const _0x347c0a=_0x47ad56;;_0x1ba559[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x29d4),_0x5537c6(0x80a),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x1ba559(_0x48bb96,_0x45cb90,_0x31240a,_0x16be23,_0x101605,_0x276621,_0x704a91,_0x2f9ef0){const _0x8cda12=_0x5537c6,_0x4c5737=this;_0x4c5737[_0x8cda12(0xe76)]=_0x704a91[_0x8cda12(0x21e8)](),_0x4c5737[_0x8cda12(0x1a7c)]=[],_0x4c5737[_0x8cda12(0x1386)]=_0x8cda12(0x132b)+(_0x16be23['appType']||_0x16be23[_0x8cda12(0x22e1)])[_0x8cda12(0x2335)](),_0x4c5737[_0x8cda12(0x19d1)]=angular['copy'](_0x16be23),_0x4c5737['crudPermissions']=_0x2f9ef0,_0x4c5737[_0x8cda12(0xf4c)]={};if(_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x28df)])switch(_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x299b)]?_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x299b)][_0x8cda12(0x1680)]():_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x22e1)][_0x8cda12(0x1680)]()){case'custom':break;case _0x8cda12(0x711):{const _0x5361b0=_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x28df)][_0x8cda12(0xbe1)](',');_0x4c5737['set'][_0x8cda12(0xee8)]=_0x5361b0[0x0],_0x4c5737['set'][_0x8cda12(0x12b4)]=_0x5361b0[0x1],_0x4c5737['set'][_0x8cda12(0x173a)]=_0x5361b0[_0x8cda12(0x14cb)](0x2,_0x5361b0[_0x8cda12(0xfd0)])['join'](',');}break;case _0x8cda12(0xece):{const _0x46119f=_0x4c5737['set']['appdata'][_0x8cda12(0xbe1)](',');_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x2854)]=_0x46119f[0x0],_0x4c5737['set'][_0x8cda12(0x12bf)]=_0x46119f[0x1],_0x4c5737['set'][_0x8cda12(0x29d6)]=_0x46119f[0x2],_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x12b4)]=_0x46119f[0x3],_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x173a)]=_0x46119f['slice'](0x4,_0x46119f['length'])[_0x8cda12(0x1f66)](',');}break;case _0x8cda12(0x123a):{const _0x1c0dbe=_0x4c5737['set'][_0x8cda12(0x28df)][_0x8cda12(0xbe1)](',');_0x4c5737[_0x8cda12(0x19d1)]['accesskeyid']=_0x1c0dbe[0x0],_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x21d9)]=_0x1c0dbe[0x1],_0x4c5737[_0x8cda12(0x19d1)]['lexregion']=_0x1c0dbe[0x2],_0x4c5737['set'][_0x8cda12(0x1c7f)]=_0x1c0dbe[0x3],_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x173a)]=_0x1c0dbe[_0x8cda12(0x14cb)](0x4,_0x1c0dbe[_0x8cda12(0xfd0)])[_0x8cda12(0x1f66)](',');}break;case'autoreply':{const _0x424b88=_0x4c5737[_0x8cda12(0x19d1)]['appdata'][_0x8cda12(0xbe1)](',');_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x18a5)]=isNaN(_0x424b88[0x0])?_0x424b88[0x0]:parseInt(_0x424b88[0x0],0xa),_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x19d3)]=_0x424b88['slice'](0x1,_0x424b88['length'])[_0x8cda12(0x1f66)](',');}break;case _0x8cda12(0x155e):_0x4c5737['set'][_0x8cda12(0x19d3)]=_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x28df)];break;case _0x8cda12(0x19d1):_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x16b6)]=_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x28df)][_0x8cda12(0xbe1)]('=')[0x0],_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x327)]=_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x28df)]['split']('=')[0x1];break;case _0x8cda12(0x4b4):_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x12a7)]=_0x4c5737[_0x8cda12(0x19d1)]['appdata'];break;default:{const _0x1de14c=_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x28df)][_0x8cda12(0xbe1)]('=');_0x4c5737['set'][_0x8cda12(0x16b6)]=_0x39641b()[_0x8cda12(0xce9)](_0x1de14c[0x0])?_0x1de14c[0x0]:isNaN(_0x1de14c[0x0])?_0x1de14c[0x0]:parseInt(_0x1de14c[0x0],0xa),_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x327)]=_0x39641b()[_0x8cda12(0xce9)](_0x1de14c[0x1])?_0x1de14c[0x1]:isNaN(_0x1de14c[0x1])?_0x1de14c[0x1]:parseInt(_0x1de14c[0x1],0xa);}break;}else{}_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x66a)]&&_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x66a)][_0x8cda12(0x1680)]()===_0x8cda12(0x895)&&_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x299b)][_0x8cda12(0x1680)]()==='outbounddial'&&(_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x586)]=_0x4c5737[_0x8cda12(0x19d1)][_0x8cda12(0x1340)]?_0x4c5737[_0x8cda12(0x19d1)]['phone'][_0x8cda12(0xbe1)]('$')[0x0]:undefined,_0x4c5737['set']['callerId']=_0x4c5737['set'][_0x8cda12(0x2816)]?_0x8cda12(0x25f9)+_0x4c5737['set'][_0x8cda12(0x2816)]:undefined);_0x4c5737[_0x8cda12(0x1654)]=_0x5a0b5a,_0x4c5737[_0x8cda12(0xda0)]=_0x10ca6f,_0x704a91[_0x8cda12(0x22b6)](_0x8cda12(0x1c60))?_0x276621[_0x8cda12(0x1822)][_0x8cda12(0xbf7)]({'fields':_0x8cda12(0x43c),'sort':'name','nolimit':_0x8cda12(0x44d)})['$promise']['then'](function(_0x14d0d9){const _0x3b6838=_0x8cda12;_0x4c5737['variables']=_0x14d0d9[_0x3b6838(0x2214)]||[];})[_0x8cda12(0x1c4)](function(_0x3fb4a8){const _0x4ff352=_0x8cda12;_0x31240a[_0x4ff352(0x218e)]({'title':_0x3fb4a8['status']?_0x4ff352(0xeb9)+_0x3fb4a8[_0x4ff352(0x291)]+_0x4ff352(0x1657)+_0x3fb4a8['statusText']:'SYSTEM:GET_VARIABLES','msg':_0x3fb4a8[_0x4ff352(0x25c)]?JSON['stringify'](_0x3fb4a8[_0x4ff352(0x25c)]):_0x3fb4a8[_0x4ff352(0x147f)]()});}):_0x276621['variable'][_0x8cda12(0xbf7)]({'fields':_0x8cda12(0x43c),'sort':_0x8cda12(0x16b6),'nolimit':'true'})[_0x8cda12(0x1d77)]['then'](function(_0x1839fa){const _0x224c25=_0x8cda12;_0x4c5737[_0x224c25(0x9a9)]=_0x1839fa[_0x224c25(0x2214)]||[];})[_0x8cda12(0x1cb0)](function(){const _0x351436=_0x8cda12;return _0x276621[_0x351436(0x2199)][_0x351436(0xbf7)]({'userProfileId':_0x4c5737[_0x351436(0xe76)][_0x351436(0x13c1)],'sectionId':0x3f4})[_0x351436(0x1d77)];})[_0x8cda12(0x1cb0)](function(_0x481349){const _0x208994=_0x8cda12,_0x313722=_0x481349&&_0x481349[_0x208994(0x2214)]?_0x481349['rows'][0x0]:null;if(!_0x313722){const _0x428def=[];let _0x5d262e=null;_0x4c5737[_0x208994(0x19d1)]&&(_0x5d262e=_0x39641b()[_0x208994(0x13b4)](_0x4c5737[_0x208994(0x9a9)],{'name':_0x4c5737[_0x208994(0x19d1)]['name']}));for(let _0x175562=0x0;_0x175562<_0x4c5737[_0x208994(0x9a9)][_0x208994(0xfd0)];_0x175562++){_0x5d262e&&_0x4c5737['variables'][_0x175562]['id']===_0x5d262e['id']&&(_0x4c5737[_0x208994(0x9a9)][_0x175562][_0x208994(0x15da)]=![],_0x428def[_0x208994(0x2785)](_0x4c5737[_0x208994(0x9a9)][_0x175562]));}_0x4c5737[_0x208994(0x9a9)]=_0x428def;}else{if(!_0x313722[_0x208994(0x12f4)])return _0x276621[_0x208994(0x1198)][_0x208994(0xbf7)]({'sectionId':_0x313722['id']})['$promise'][_0x208994(0x1cb0)](function(_0x22a4e1){const _0x40c5ba=_0x208994,_0x131df4=_0x39641b()[_0x40c5ba(0x1de2)](_0x22a4e1['rows'],function(_0x172b1b){const _0x1dd723=_0x40c5ba;return _0x39641b()['find'](_0x4c5737[_0x1dd723(0x9a9)],{'id':_0x172b1b['resourceId']});});let _0x129507=null;_0x4c5737[_0x40c5ba(0x19d1)]&&(_0x129507=_0x39641b()[_0x40c5ba(0x13b4)](_0x4c5737['variables'],{'name':_0x4c5737[_0x40c5ba(0x19d1)][_0x40c5ba(0x16b6)]}));if(_0x129507&&!_0x39641b()[_0x40c5ba(0x727)](_0x131df4,['id',_0x129507['id']])){const _0x27c616=_0x39641b()[_0x40c5ba(0x13b4)](_0x4c5737[_0x40c5ba(0x9a9)],{'id':_0x129507['id']});_0x27c616[_0x40c5ba(0x15da)]=![],_0x131df4[_0x40c5ba(0x2785)](_0x27c616);}_0x4c5737[_0x40c5ba(0x9a9)]=_0x131df4;});}})[_0x8cda12(0x1c4)](function(_0x5ad3c0){const _0x24b9f5=_0x8cda12;_0x31240a[_0x24b9f5(0x218e)]({'title':_0x5ad3c0[_0x24b9f5(0x291)]?_0x24b9f5(0xeb9)+_0x5ad3c0['status']+_0x24b9f5(0x1657)+_0x5ad3c0[_0x24b9f5(0xc22)]:'SYSTEM:GETvariables','msg':_0x5ad3c0[_0x24b9f5(0x25c)]?JSON['stringify'](_0x5ad3c0[_0x24b9f5(0x25c)]):_0x5ad3c0[_0x24b9f5(0x147f)]()});});function _0x5a0b5a(){const _0xa7a9c9=_0x8cda12;_0x4c5737['errors']=[];const _0x56b869=[];_0x4c5737['set'][_0xa7a9c9(0x66a)]&&_0x4c5737[_0xa7a9c9(0x19d1)]['type'][_0xa7a9c9(0x1680)]()===_0xa7a9c9(0x895)&&_0x4c5737[_0xa7a9c9(0x19d1)][_0xa7a9c9(0x299b)]===_0xa7a9c9(0x25f4)&&(_0x4c5737['set'][_0xa7a9c9(0x1340)]=_0x101605[_0xa7a9c9(0x325)]?(_0x4c5737[_0xa7a9c9(0x19d1)][_0xa7a9c9(0x586)]||'')+_0xa7a9c9(0x19e4)+_0x101605[_0xa7a9c9(0x325)]+'}':(_0x4c5737['set']['prefix']||'')+'${EXTEN}',_0x101605[_0xa7a9c9(0xf8d)]!==_0xa7a9c9(0x13b1)?_0x4c5737[_0xa7a9c9(0x19d1)][_0xa7a9c9(0x2224)][_0xa7a9c9(0xd8a)](_0xa7a9c9(0x106a))<0x0&&(_0x4c5737[_0xa7a9c9(0x19d1)][_0xa7a9c9(0x2224)]+=_0xa7a9c9(0x106a)):_0x4c5737[_0xa7a9c9(0x19d1)][_0xa7a9c9(0x2224)]=_0x4c5737['set'][_0xa7a9c9(0x2224)][_0xa7a9c9(0x288f)](_0xa7a9c9(0x106a),''));if(_0x4c5737[_0xa7a9c9(0x19d1)]['appType']&&_0x4c5737['set'][_0xa7a9c9(0x299b)]===_0xa7a9c9(0x197c)){}else switch((_0x4c5737[_0xa7a9c9(0x19d1)][_0xa7a9c9(0x22e1)]||_0x4c5737[_0xa7a9c9(0x19d1)][_0xa7a9c9(0x299b)])['toLowerCase']()){case _0xa7a9c9(0x19d1):_0x4c5737[_0xa7a9c9(0x19d1)][_0xa7a9c9(0x28df)]=_0x4c5737['set'][_0xa7a9c9(0x16b6)]+'='+_0x4c5737[_0xa7a9c9(0x19d1)][_0xa7a9c9(0x327)];break;case _0xa7a9c9(0x197c):break;default:_0x56b869[0x0]=_0x4c5737[_0xa7a9c9(0x19d1)][_0xa7a9c9(0x16b6)],_0x56b869[0x1]=_0x4c5737[_0xa7a9c9(0x19d1)][_0xa7a9c9(0x327)],_0x4c5737[_0xa7a9c9(0x19d1)][_0xa7a9c9(0x28df)]=_0x56b869['join']('=');}_0x10ca6f(_0x4c5737[_0xa7a9c9(0x19d1)]);}function _0x10ca6f(_0x33e54f){const _0x3e5a11=_0x8cda12;_0x48bb96[_0x3e5a11(0x1426)](_0x33e54f);}}const _0x39be69=_0x1ba559;;_0x166ef9[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),'inboundrouteApp',_0x5537c6(0x80a),'api',_0x5537c6(0x1774),'crudPermissions'];function _0x166ef9(_0x1e2e41,_0x2996ca,_0xecf486,_0x3d4b42,_0x3f22d3,_0x4fc0ed,_0x1767b4,_0x4aebc7){const _0x5bf74e=_0x5537c6,_0x19a7ec=this;_0x19a7ec[_0x5bf74e(0xe76)]=_0x1767b4['getCurrentUser'](),_0x19a7ec['errors']=[],_0x19a7ec[_0x5bf74e(0x1386)]=_0x5bf74e(0x132b)+(_0x3d4b42[_0x5bf74e(0x299b)]||_0x3d4b42[_0x5bf74e(0x22e1)])['toUpperCase'](),_0x19a7ec[_0x5bf74e(0xd66)]=angular[_0x5bf74e(0x17fe)](_0x3d4b42),_0x19a7ec[_0x5bf74e(0x1b1a)]=_0x4aebc7,_0x19a7ec[_0x5bf74e(0xf4c)]={};if(_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x28df)])switch(_0x19a7ec[_0x5bf74e(0xd66)]['appType']?_0x19a7ec[_0x5bf74e(0xd66)]['appType'][_0x5bf74e(0x1680)]():_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x22e1)][_0x5bf74e(0x1680)]()){case _0x5bf74e(0x197c):break;case _0x5bf74e(0x711):{const _0x367873=_0x19a7ec[_0x5bf74e(0xd66)]['appdata']['split'](',');_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0xee8)]=_0x367873[0x0],_0x19a7ec[_0x5bf74e(0xd66)]['language']=_0x367873[0x1],_0x19a7ec['voicemail'][_0x5bf74e(0x173a)]=_0x367873[_0x5bf74e(0x14cb)](0x2,_0x367873[_0x5bf74e(0xfd0)])[_0x5bf74e(0x1f66)](',');}break;case _0x5bf74e(0xece):{const _0x164693=_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x28df)][_0x5bf74e(0xbe1)](',');_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x2854)]=_0x164693[0x0],_0x19a7ec['voicemail'][_0x5bf74e(0x12bf)]=_0x164693[0x1],_0x19a7ec[_0x5bf74e(0xd66)]['privateKey']=_0x164693[0x2],_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x12b4)]=_0x164693[0x3],_0x19a7ec['voicemail'][_0x5bf74e(0x173a)]=_0x164693[_0x5bf74e(0x14cb)](0x4,_0x164693[_0x5bf74e(0xfd0)])[_0x5bf74e(0x1f66)](',');}break;case'amazonlex':{const _0x4a2698=_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x28df)][_0x5bf74e(0xbe1)](',');_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x413)]=_0x4a2698[0x0],_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x21d9)]=_0x4a2698[0x1],_0x19a7ec['voicemail']['lexregion']=_0x4a2698[0x2],_0x19a7ec[_0x5bf74e(0xd66)]['botname']=_0x4a2698[0x3],_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x173a)]=_0x4a2698[_0x5bf74e(0x14cb)](0x4,_0x4a2698[_0x5bf74e(0xfd0)])['join'](',');}break;case _0x5bf74e(0x1f71):{const _0x1e036c=_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x28df)][_0x5bf74e(0xbe1)](',');_0x19a7ec[_0x5bf74e(0xd66)]['times']=isNaN(_0x1e036c[0x0])?_0x1e036c[0x0]:parseInt(_0x1e036c[0x0],0xa),_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x19d3)]=_0x1e036c[_0x5bf74e(0x14cb)](0x1,_0x1e036c[_0x5bf74e(0xfd0)])[_0x5bf74e(0x1f66)](',');}break;case'message':_0x19a7ec[_0x5bf74e(0xd66)]['text']=_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x28df)];break;case _0x5bf74e(0x19d1):_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x16b6)]=_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x28df)][_0x5bf74e(0xbe1)]('=')[0x0],_0x19a7ec['voicemail'][_0x5bf74e(0x327)]=_0x19a7ec['voicemail']['appdata']['split']('=')[0x1];break;case'agi':_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x12a7)]=_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x28df)];break;default:{const _0x516aef=_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x28df)]['split'](',');_0x19a7ec[_0x5bf74e(0xd66)]['voiceMail']=_0x39641b()['isEmpty'](_0x516aef[0x0])?_0x516aef[0x0]:isNaN(_0x516aef[0x0])?_0x516aef[0x0]:parseInt(_0x516aef[0x0],0xa),_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x2224)]=_0x39641b()[_0x5bf74e(0xce9)](_0x516aef[0x1])?_0x516aef[0x1]:isNaN(_0x516aef[0x1])?_0x516aef[0x1]:parseInt(_0x516aef[0x1],0xa);}break;}else{}_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x66a)]&&_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x66a)][_0x5bf74e(0x1680)]()===_0x5bf74e(0x895)&&_0x19a7ec[_0x5bf74e(0xd66)]['appType']['toLowerCase']()==='outbounddial'&&(_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x586)]=_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x1340)]?_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x1340)]['split']('$')[0x0]:undefined,_0x19a7ec[_0x5bf74e(0xd66)][_0x5bf74e(0x1e7c)]=_0x19a7ec['voicemail'][_0x5bf74e(0x2816)]?_0x5bf74e(0x25f9)+_0x19a7ec[_0x5bf74e(0xd66)]['callerID']:undefined);_0x19a7ec[_0x5bf74e(0x1654)]=_0x25246d,_0x19a7ec['closeDialog']=_0x1b5d68,_0x1767b4[_0x5bf74e(0x22b6)]('admin')?_0x4fc0ed[_0x5bf74e(0x18d4)][_0x5bf74e(0xbf7)]({'fields':_0x5bf74e(0x29af),'sort':_0x5bf74e(0x1b7a),'nolimit':_0x5bf74e(0x44d)})[_0x5bf74e(0x1d77)]['then'](function(_0x410df4){const _0x3b0351=_0x5bf74e;_0x19a7ec[_0x3b0351(0x1951)]=_0x410df4[_0x3b0351(0x2214)]||[];})[_0x5bf74e(0x1c4)](function(_0x318797){const _0xc82aeb=_0x5bf74e;_0xecf486[_0xc82aeb(0x218e)]({'title':_0x318797[_0xc82aeb(0x291)]?'API:'+_0x318797[_0xc82aeb(0x291)]+_0xc82aeb(0x1657)+_0x318797['statusText']:_0xc82aeb(0x1e3a),'msg':_0x318797['data']?JSON[_0xc82aeb(0x2701)](_0x318797[_0xc82aeb(0x25c)]):_0x318797[_0xc82aeb(0x147f)]()});}):_0x4fc0ed['voiceMail'][_0x5bf74e(0xbf7)]({'fields':_0x5bf74e(0x29af),'sort':_0x5bf74e(0x1b7a),'nolimit':_0x5bf74e(0x44d)})['$promise']['then'](function(_0x17b7f5){const _0x25cd72=_0x5bf74e;_0x19a7ec[_0x25cd72(0x1951)]=_0x17b7f5[_0x25cd72(0x2214)]||[];})['then'](function(){const _0x755423=_0x5bf74e;return _0x4fc0ed[_0x755423(0x2199)][_0x755423(0xbf7)]({'userProfileId':_0x19a7ec[_0x755423(0xe76)][_0x755423(0x13c1)],'sectionId':0x196})[_0x755423(0x1d77)];})['then'](function(_0xd771db){const _0x479814=_0x5bf74e,_0x1ee980=_0xd771db&&_0xd771db[_0x479814(0x2214)]?_0xd771db['rows'][0x0]:null;if(!_0x1ee980){const _0x4c86d9=[];let _0xe135a1=null;_0x19a7ec[_0x479814(0xd66)]&&(_0xe135a1=_0x39641b()[_0x479814(0x13b4)](_0x19a7ec[_0x479814(0x1951)],{'mailbox':_0x19a7ec[_0x479814(0xd66)][_0x479814(0x18d4)]}));for(let _0x96cb63=0x0;_0x96cb63<_0x19a7ec[_0x479814(0x1951)][_0x479814(0xfd0)];_0x96cb63++){_0xe135a1&&_0x19a7ec[_0x479814(0x1951)][_0x96cb63]['id']===_0xe135a1['id']&&(_0x19a7ec['voiceMails'][_0x96cb63]['canSelect']=![],_0x4c86d9[_0x479814(0x2785)](_0x19a7ec[_0x479814(0x1951)][_0x96cb63]));}_0x19a7ec[_0x479814(0x1951)]=_0x4c86d9;}else{if(!_0x1ee980['autoAssociation'])return _0x4fc0ed[_0x479814(0x1198)][_0x479814(0xbf7)]({'sectionId':_0x1ee980['id']})[_0x479814(0x1d77)]['then'](function(_0x109451){const _0x1746aa=_0x479814,_0x57f2ab=_0x39641b()[_0x1746aa(0x1de2)](_0x109451[_0x1746aa(0x2214)],function(_0x767c43){const _0x33861d=_0x1746aa;return _0x39641b()[_0x33861d(0x13b4)](_0x19a7ec[_0x33861d(0x1951)],{'id':_0x767c43['resourceId']});});let _0x4cfe35=null;_0x19a7ec[_0x1746aa(0xd66)]&&(_0x4cfe35=_0x39641b()['find'](_0x19a7ec[_0x1746aa(0x1951)],{'mailbox':_0x19a7ec[_0x1746aa(0xd66)][_0x1746aa(0x18d4)]}));if(_0x4cfe35&&!_0x39641b()['some'](_0x57f2ab,['id',_0x4cfe35['id']])){const _0x495b6c=_0x39641b()[_0x1746aa(0x13b4)](_0x19a7ec[_0x1746aa(0x1951)],{'id':_0x4cfe35['id']});_0x495b6c['canSelect']=![],_0x57f2ab['push'](_0x495b6c);}_0x19a7ec[_0x1746aa(0x1951)]=_0x57f2ab;});}})[_0x5bf74e(0x1c4)](function(_0x14fb42){const _0x5311ee=_0x5bf74e;_0xecf486[_0x5311ee(0x218e)]({'title':_0x14fb42[_0x5311ee(0x291)]?_0x5311ee(0xeb9)+_0x14fb42[_0x5311ee(0x291)]+_0x5311ee(0x1657)+_0x14fb42['statusText']:_0x5311ee(0x146f),'msg':_0x14fb42[_0x5311ee(0x25c)]?JSON['stringify'](_0x14fb42[_0x5311ee(0x25c)]):_0x14fb42['toString']()});});function _0x25246d(){const _0x6e8202=_0x5bf74e;_0x19a7ec[_0x6e8202(0x1a7c)]=[];const _0x26c1a2=[];_0x19a7ec['voicemail'][_0x6e8202(0x66a)]&&_0x19a7ec[_0x6e8202(0xd66)]['type'][_0x6e8202(0x1680)]()===_0x6e8202(0x895)&&_0x19a7ec['voicemail'][_0x6e8202(0x299b)]==='outboundDial'&&(_0x19a7ec[_0x6e8202(0xd66)][_0x6e8202(0x1340)]=_0x3f22d3[_0x6e8202(0x325)]?(_0x19a7ec['voicemail'][_0x6e8202(0x586)]||'')+'${EXTEN:'+_0x3f22d3[_0x6e8202(0x325)]+'}':(_0x19a7ec[_0x6e8202(0xd66)]['prefix']||'')+_0x6e8202(0xcdd),_0x3f22d3[_0x6e8202(0xf8d)]!==_0x6e8202(0x13b1)?_0x19a7ec['voicemail'][_0x6e8202(0x2224)]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x19a7ec[_0x6e8202(0xd66)][_0x6e8202(0x2224)]+=_0x6e8202(0x106a)):_0x19a7ec[_0x6e8202(0xd66)][_0x6e8202(0x2224)]=_0x19a7ec['voicemail']['options'][_0x6e8202(0x288f)](_0x6e8202(0x106a),''));if(_0x19a7ec[_0x6e8202(0xd66)][_0x6e8202(0x299b)]&&_0x19a7ec[_0x6e8202(0xd66)][_0x6e8202(0x299b)]===_0x6e8202(0x197c)){}else switch((_0x19a7ec[_0x6e8202(0xd66)][_0x6e8202(0x22e1)]||_0x19a7ec[_0x6e8202(0xd66)][_0x6e8202(0x299b)])[_0x6e8202(0x1680)]()){case'set':_0x19a7ec['voicemail'][_0x6e8202(0x28df)]=_0x19a7ec['voicemail'][_0x6e8202(0x16b6)]+'='+_0x19a7ec['voicemail'][_0x6e8202(0x327)];break;case _0x6e8202(0x197c):break;default:_0x26c1a2[0x0]=_0x19a7ec[_0x6e8202(0xd66)][_0x6e8202(0x18d4)],_0x26c1a2[0x1]=_0x19a7ec[_0x6e8202(0xd66)][_0x6e8202(0x2224)],_0x19a7ec[_0x6e8202(0xd66)][_0x6e8202(0x28df)]=_0x26c1a2['join'](',');}_0x1b5d68(_0x19a7ec[_0x6e8202(0xd66)]);}function _0x1b5d68(_0x44ac51){_0x1e2e41['hide'](_0x44ac51);}}const _0x940b06=_0x166ef9;;_0x40cdf2[_0x5537c6(0x15b6)]=['$state',_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1ae),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x142b),'toasty','Auth',_0x5537c6(0x80a),_0x5537c6(0x2199)];function _0x40cdf2(_0x231fa2,_0x43acc0,_0x6d738a,_0x44feaa,_0x9875ce,_0x55f6ed,_0x539efb,_0x2dc59a,_0x4e6cab,_0x184c1d,_0x511108,_0x3a8ecb){const _0x20ee90=_0x5537c6,_0x207b8b=this;_0x207b8b[_0x20ee90(0xe76)]=_0x184c1d[_0x20ee90(0x21e8)](),_0x207b8b[_0x20ee90(0x8a5)]=_0x55f6ed,_0x207b8b[_0x20ee90(0x9ca)]=_0x539efb,_0x207b8b[_0x20ee90(0x1b0c)]=_0x207b8b[_0x20ee90(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x207b8b['location']=_0x43acc0[_0x20ee90(0x2276)]()+_0x20ee90(0x138b)+_0x43acc0['host'](),_0x207b8b[_0x20ee90(0x80a)]=_0x511108||_0x231fa2[_0x20ee90(0x1dfe)][_0x20ee90(0x80a)]||{},_0x207b8b[_0x20ee90(0x2199)]=_0x3a8ecb&&_0x3a8ecb[_0x20ee90(0x184d)]==0x1?_0x3a8ecb[_0x20ee90(0x2214)][0x0]:null,_0x207b8b[_0x20ee90(0x1b1a)]=_0x184c1d[_0x20ee90(0x14ea)](_0x207b8b[_0x20ee90(0x2199)]?_0x207b8b[_0x20ee90(0x2199)]['crudPermissions']:null),_0x207b8b[_0x20ee90(0xf4c)]={},_0x207b8b[_0x20ee90(0x8ec)]=_0x231fa2['params']['tab']||0x0,_0x207b8b[_0x20ee90(0x494)]=_0x4e6cab['info'],_0x207b8b[_0x20ee90(0x66d)]=_0x130919,_0x207b8b[_0x20ee90(0x63a)]=_0x1001ce,_0x184c1d['hasRole'](_0x20ee90(0x1c60))?_0x2dc59a['voiceContext'][_0x20ee90(0xbf7)]({'fields':'id,name','sort':'name','nolimit':_0x20ee90(0x44d)})[_0x20ee90(0x1d77)][_0x20ee90(0x1cb0)](function(_0x3864a6){const _0x583736=_0x20ee90;_0x207b8b[_0x583736(0x14f6)]=_0x3864a6['rows']||[];})[_0x20ee90(0x1c4)](function(_0xed6c41){const _0x59dc5c=_0x20ee90;_0x4e6cab[_0x59dc5c(0x218e)]({'title':_0xed6c41[_0x59dc5c(0x291)]?_0x59dc5c(0xeb9)+_0xed6c41[_0x59dc5c(0x291)]+_0x59dc5c(0x1657)+_0xed6c41[_0x59dc5c(0xc22)]:_0x59dc5c(0x2072),'msg':_0xed6c41[_0x59dc5c(0x25c)]?JSON['stringify'](_0xed6c41[_0x59dc5c(0x25c)]):_0xed6c41[_0x59dc5c(0x147f)]()});}):_0x2dc59a[_0x20ee90(0x1da5)][_0x20ee90(0xbf7)]({'fields':_0x20ee90(0x43c),'sort':'name','nolimit':'true'})[_0x20ee90(0x1d77)]['then'](function(_0x56f28){const _0x3025fd=_0x20ee90;_0x207b8b[_0x3025fd(0x14f6)]=_0x56f28[_0x3025fd(0x2214)]||[];})[_0x20ee90(0x1cb0)](function(){const _0x419aac=_0x20ee90;return _0x2dc59a['userProfileSection']['get']({'userProfileId':_0x207b8b[_0x419aac(0xe76)][_0x419aac(0x13c1)],'sectionId':0x195})[_0x419aac(0x1d77)];})[_0x20ee90(0x1cb0)](function(_0xa5e7a2){const _0x150016=_0x20ee90,_0x5336cd=_0xa5e7a2&&_0xa5e7a2[_0x150016(0x2214)]?_0xa5e7a2['rows'][0x0]:null;if(!_0x5336cd)return _0x2dc59a[_0x150016(0x1da5)][_0x150016(0xbf7)]({'fields':'id,name','sort':_0x150016(0x16b6),'nolimit':_0x150016(0x44d),'defaultEntry':0x1})[_0x150016(0x1d77)][_0x150016(0x1cb0)](function(_0x27d340){const _0x227df0=_0x150016;_0x207b8b[_0x227df0(0x14f6)]=_0x27d340[_0x227df0(0x2214)]||[];});else{if(!_0x5336cd[_0x150016(0x12f4)])return _0x2dc59a[_0x150016(0x1198)]['get']({'sectionId':_0x5336cd['id']})[_0x150016(0x1d77)][_0x150016(0x1cb0)](function(_0x16ada9){const _0x3443da=_0x150016,_0x483521=_0x39641b()[_0x3443da(0x1de2)](_0x16ada9[_0x3443da(0x2214)],function(_0x5c901a){const _0x3184ab=_0x3443da;return _0x39641b()['find'](_0x207b8b[_0x3184ab(0x14f6)],{'id':_0x5c901a['resourceId']});});let _0x281c91=null;_0x207b8b[_0x3443da(0x80a)]&&(_0x281c91=_0x39641b()['find'](_0x207b8b[_0x3443da(0x14f6)],{'name':_0x207b8b[_0x3443da(0x80a)]['context']}));if(_0x281c91&&!_0x39641b()[_0x3443da(0x727)](_0x483521,['id',_0x281c91['id']])){const _0x5e359d=_0x39641b()[_0x3443da(0x13b4)](_0x207b8b['contexts'],{'id':_0x281c91['id']});_0x5e359d[_0x3443da(0x15da)]=![],_0x483521['push'](_0x5e359d);}_0x207b8b[_0x3443da(0x14f6)]=_0x483521;});}})['catch'](function(_0x466171){const _0x1f76b5=_0x20ee90;_0x4e6cab[_0x1f76b5(0x218e)]({'title':_0x466171[_0x1f76b5(0x291)]?'API:'+_0x466171[_0x1f76b5(0x291)]+'\x20-\x20'+_0x466171['statusText']:'SYSTEM:GETcontexts','msg':_0x466171[_0x1f76b5(0x25c)]?JSON[_0x1f76b5(0x2701)](_0x466171['data']):_0x466171[_0x1f76b5(0x147f)]()});});function _0x130919(){const _0x558b0f=_0x20ee90;_0x231fa2['go'](_0x558b0f(0x1802),{},{'reload':_0x558b0f(0x1802)});}function _0x1001ce(){const _0x2b71c7=_0x20ee90;_0x2dc59a[_0x2b71c7(0x1059)][_0x2b71c7(0x687)]({'id':_0x207b8b[_0x2b71c7(0x80a)]['id']},_0x207b8b['inboundroute'])[_0x2b71c7(0x1d77)][_0x2b71c7(0x1cb0)](function(){const _0x27536c=_0x2b71c7;_0x4e6cab['success']({'title':_0x27536c(0xb0e),'msg':_0x207b8b[_0x27536c(0x80a)][_0x27536c(0x16b6)]?_0x207b8b['inboundroute'][_0x27536c(0x16b6)]+_0x27536c(0x1068):''});})['catch'](function(_0x1e5be1){const _0x15287a=_0x2b71c7;_0x4e6cab['error']({'title':_0x1e5be1[_0x15287a(0x291)]?_0x15287a(0xeb9)+_0x1e5be1[_0x15287a(0x291)]+_0x15287a(0x1657)+_0x1e5be1[_0x15287a(0xc22)]:_0x15287a(0x783),'msg':_0x1e5be1[_0x15287a(0x25c)]?JSON[_0x15287a(0x2701)](_0x1e5be1[_0x15287a(0x25c)]):_0x1e5be1['toString']()});});}}const _0x534e34=_0x40cdf2;;const _0x5c1690=_0x5074a3['p']+'src/js/modules/main/apps/voice/views/inboundroutes/create/dialog.html/dialog.html';;_0x22e91f[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x1310),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting'];function _0x22e91f(_0x18ed82,_0x3ed2fc,_0x2eb008,_0x65b3f4,_0x46f960,_0x57b1ae,_0x5e754a,_0x92f480,_0x259075,_0xcd47f3,_0x46f15a,_0x5bfbbc,_0x18b78c,_0x4ee705,_0x356eab,_0x25a6d7,_0x2da4f1){const _0x4e48d1=_0x5537c6,_0x47e294=this;_0x47e294[_0x4e48d1(0x8a5)]=_0x25a6d7,_0x47e294[_0x4e48d1(0x9ca)]=_0x2da4f1,_0x47e294['currentUser']=_0x356eab[_0x4e48d1(0x21e8)](),_0x47e294[_0x4e48d1(0x1310)]=_0x259075||{'count':0x0,'rows':[]},_0x47e294[_0x4e48d1(0x44a)]=_0xcd47f3,_0x47e294[_0x4e48d1(0x2199)]=_0x46f15a&&_0x46f15a[_0x4e48d1(0x184d)]==0x1?_0x46f15a['rows'][0x0]:null,_0x47e294[_0x4e48d1(0x1b1a)]=_0x356eab[_0x4e48d1(0x14ea)](_0x47e294[_0x4e48d1(0x2199)]?_0x47e294[_0x4e48d1(0x2199)][_0x4e48d1(0x1b1a)]:null),_0x47e294[_0x4e48d1(0xc83)]='inboundroutes',_0x47e294[_0x4e48d1(0x1d20)]='',_0x47e294['listOrderAsc']=null,_0x47e294[_0x4e48d1(0x1b6b)]=[],_0x47e294['query']={'fields':_0x4e48d1(0x1aec),'type':_0x4e48d1(0x26c0),'sort':_0x4e48d1(0x282),'VoiceExtensionId':_0x4e48d1(0xd38),'limit':0xa,'page':0x1},_0x47e294[_0x4e48d1(0x235d)]=_0x18726b,_0x47e294[_0x4e48d1(0x27fe)]=_0x4a78fe,_0x47e294[_0x4e48d1(0x829)]=_0x21f78f,_0x47e294[_0x4e48d1(0x24ec)]=_0x55ed6a,_0x47e294[_0x4e48d1(0xe2c)]=_0x1555ed,_0x47e294[_0x4e48d1(0xeb4)]=_0x4ce499,_0x47e294['exportSelectedInboundRoutes']=_0x25d91d,_0x47e294[_0x4e48d1(0x210)]=_0x1472f2,_0x47e294['deselectInboundRoutes']=_0x33da8a,_0x47e294[_0x4e48d1(0x27bc)]=_0xa841a4,_0x356eab[_0x4e48d1(0x22b6)]('admin')?_0x5bfbbc['voiceContext'][_0x4e48d1(0xbf7)]({'fields':_0x4e48d1(0x43c),'sort':_0x4e48d1(0x16b6),'nolimit':_0x4e48d1(0x44d)})[_0x4e48d1(0x1d77)][_0x4e48d1(0x1cb0)](function(_0x1356d8){const _0x2040c0=_0x4e48d1;_0x47e294['contexts']=_0x1356d8[_0x2040c0(0x2214)]||[];})['catch'](function(_0x3182c9){const _0x1a19f4=_0x4e48d1;_0x4ee705[_0x1a19f4(0x218e)]({'title':_0x3182c9['status']?'API:'+_0x3182c9[_0x1a19f4(0x291)]+_0x1a19f4(0x1657)+_0x3182c9['statusText']:_0x1a19f4(0x2072),'msg':_0x3182c9[_0x1a19f4(0x25c)]?JSON[_0x1a19f4(0x2701)](_0x3182c9[_0x1a19f4(0x25c)]):_0x3182c9[_0x1a19f4(0x147f)]()});}):_0x5bfbbc[_0x4e48d1(0x1da5)][_0x4e48d1(0xbf7)]({'fields':_0x4e48d1(0x43c),'sort':'name','nolimit':_0x4e48d1(0x44d)})['$promise']['then'](function(_0x57025f){const _0x325296=_0x4e48d1;_0x47e294[_0x325296(0x14f6)]=_0x57025f[_0x325296(0x2214)]||[];})[_0x4e48d1(0x1cb0)](function(){const _0xe1b07=_0x4e48d1;return _0x5bfbbc['userProfileSection'][_0xe1b07(0xbf7)]({'userProfileId':_0x47e294[_0xe1b07(0xe76)]['userProfileId'],'sectionId':0x195})['$promise'];})[_0x4e48d1(0x1cb0)](function(_0x28ed2f){const _0x4227ef=_0x4e48d1,_0x4ea9c3=_0x28ed2f&&_0x28ed2f[_0x4227ef(0x2214)]?_0x28ed2f[_0x4227ef(0x2214)][0x0]:null;if(!_0x4ea9c3)return _0x5bfbbc['voiceContext'][_0x4227ef(0xbf7)]({'fields':_0x4227ef(0x43c),'sort':_0x4227ef(0x16b6),'nolimit':_0x4227ef(0x44d),'defaultEntry':0x1})[_0x4227ef(0x1d77)][_0x4227ef(0x1cb0)](function(_0x4487a9){const _0x4cfc4d=_0x4227ef;_0x47e294[_0x4cfc4d(0x14f6)]=_0x4487a9['rows']||[];});else{if(!_0x4ea9c3[_0x4227ef(0x12f4)])return _0x5bfbbc[_0x4227ef(0x1198)]['get']({'sectionId':_0x4ea9c3['id']})[_0x4227ef(0x1d77)][_0x4227ef(0x1cb0)](function(_0x21ac65){const _0x3bf533=_0x4227ef,_0x459eb6=_0x39641b()['map'](_0x21ac65[_0x3bf533(0x2214)],function(_0x44a611){const _0x5c8c09=_0x3bf533;return _0x39641b()[_0x5c8c09(0x13b4)](_0x47e294[_0x5c8c09(0x14f6)],{'id':_0x44a611['resourceId']});});let _0xe1ca43=null;_0x47e294[_0x3bf533(0x80a)]&&(_0xe1ca43=_0x39641b()[_0x3bf533(0x13b4)](_0x47e294[_0x3bf533(0x14f6)],{'name':_0x47e294['inboundroute'][_0x3bf533(0x2056)]}));if(_0xe1ca43&&!_0x39641b()[_0x3bf533(0x727)](_0x459eb6,['id',_0xe1ca43['id']])){const _0x2afe23=_0x39641b()[_0x3bf533(0x13b4)](_0x47e294[_0x3bf533(0x14f6)],{'id':_0xe1ca43['id']});_0x2afe23[_0x3bf533(0x15da)]=![],_0x459eb6[_0x3bf533(0x2785)](_0x2afe23);}_0x47e294[_0x3bf533(0x14f6)]=_0x459eb6;});}})[_0x4e48d1(0x1c4)](function(_0x51963c){const _0xff6e52=_0x4e48d1;_0x4ee705[_0xff6e52(0x218e)]({'title':_0x51963c['status']?_0xff6e52(0xeb9)+_0x51963c[_0xff6e52(0x291)]+'\x20-\x20'+_0x51963c[_0xff6e52(0xc22)]:_0xff6e52(0x5ac),'msg':_0x51963c['data']?JSON[_0xff6e52(0x2701)](_0x51963c['data']):_0x51963c[_0xff6e52(0x147f)]()});});function _0x18726b(_0x7031){const _0x330f8e=_0x4e48d1;_0x2eb008['go']('app.voice.inboundroutes.edit',{'id':_0x7031['id'],'inboundroute':_0x7031,'crudPermissions':_0x47e294[_0x330f8e(0x1b1a)]});}function _0x4a78fe(_0x1bc408,_0x36de08){const _0x38f554=_0x4e48d1,_0x1be0bb=_0x46f960[_0x38f554(0x1551)]()['title'](_0x38f554(0x140b)+_0x39641b()[_0x38f554(0xa75)](_0x38f554(0x80a))+'?')[_0x38f554(0x49e)](_0x38f554(0x204d)+(_0x1bc408[_0x38f554(0x16b6)]||_0x38f554(0x80a))+_0x38f554(0x1200)+'\x20will\x20be\x20deleted.')[_0x38f554(0x15ad)](_0x38f554(0x29cf))[_0x38f554(0x728)](_0x36de08)['ok']('OK')['cancel']('CANCEL');_0x46f960[_0x38f554(0xe27)](_0x1be0bb)[_0x38f554(0x1cb0)](function(){_0x4ce499(_0x1bc408);},function(){const _0x4bc129=_0x38f554;console[_0x4bc129(0x1b4f)](_0x4bc129(0x24ba));});}let _0x25548b=!![],_0x1f51af=0x1;_0x18ed82[_0x4e48d1(0x614)](_0x4e48d1(0x957),function(_0x3935e0,_0x2c31ae){const _0x382506=_0x4e48d1;_0x25548b?_0x5e754a(function(){_0x25548b=![];}):(!_0x2c31ae&&(_0x1f51af=_0x47e294['query']['page']),_0x3935e0!==_0x2c31ae&&(_0x47e294[_0x382506(0xae2)]['page']=0x1),!_0x3935e0&&(_0x47e294[_0x382506(0xae2)][_0x382506(0x1c7b)]=_0x1f51af),_0x47e294[_0x382506(0x24ec)]());});function _0x21f78f(_0x48985f){const _0x7264d3=_0x4e48d1;_0x47e294[_0x7264d3(0x1310)]=_0x48985f||{'count':0x0,'rows':[]};}function _0x55ed6a(){const _0x5009c6=_0x4e48d1;_0x47e294[_0x5009c6(0xae2)][_0x5009c6(0x184b)]=(_0x47e294[_0x5009c6(0xae2)][_0x5009c6(0x1c7b)]-0x1)*_0x47e294[_0x5009c6(0xae2)][_0x5009c6(0x236)],_0x356eab[_0x5009c6(0x22b6)](_0x5009c6(0x1c60))?_0x47e294[_0x5009c6(0x2061)]=_0x5bfbbc[_0x5009c6(0x1059)][_0x5009c6(0xbf7)](_0x47e294['query'],_0x21f78f)['$promise']:(_0x47e294['query']['id']=_0x47e294[_0x5009c6(0x44a)]['id'],_0x47e294[_0x5009c6(0xae2)][_0x5009c6(0x1f74)]=_0x5009c6(0x23e2),_0x47e294[_0x5009c6(0x2061)]=_0x5bfbbc[_0x5009c6(0x44a)]['getResources'](_0x47e294[_0x5009c6(0xae2)],_0x21f78f)[_0x5009c6(0x1d77)]);}function _0x1555ed(_0x299d9c,_0x33a981){const _0x2012fc=_0x4e48d1;_0x46f960[_0x2012fc(0xe27)]({'controller':'CreateOrEditInboundRouteDialogController','controllerAs':'vm','templateUrl':_0x5c1690,'parent':angular['element'](_0x57b1ae['body']),'targetEvent':_0x299d9c,'clickOutsideToClose':!![],'locals':{'inboundroute':_0x33a981,'inboundroutes':_0x47e294[_0x2012fc(0x1310)][_0x2012fc(0x2214)],'license':_0x47e294[_0x2012fc(0x8a5)],'setting':_0x47e294['setting'],'crudPermissions':_0x47e294[_0x2012fc(0x1b1a)]}});}function _0x4ce499(_0xbfa6d8){const _0x282ef8=_0x4e48d1;_0x5bfbbc['voiceExtension'][_0x282ef8(0x111d)]({'id':_0xbfa6d8['id']})[_0x282ef8(0x1d77)][_0x282ef8(0x1cb0)](function(){const _0x35939a=_0x282ef8;_0x39641b()[_0x35939a(0x152a)](_0x47e294['inboundroutes'][_0x35939a(0x2214)],{'id':_0xbfa6d8['id']}),_0x47e294[_0x35939a(0x1310)]['count']-=0x1,!_0x47e294['inboundroutes'][_0x35939a(0x2214)]['length']&&_0x47e294['getInboundRoutes'](),_0x4ee705[_0x35939a(0x829)]({'title':_0x39641b()['startCase']('InboundRoute')+'\x20deleted!','msg':_0xbfa6d8[_0x35939a(0x16b6)]?_0xbfa6d8['name']+_0x35939a(0x3f5):''});})[_0x282ef8(0x1c4)](function(_0x26b784){const _0x38843a=_0x282ef8;if(_0x26b784[_0x38843a(0x25c)]&&_0x26b784[_0x38843a(0x25c)][_0x38843a(0x1a7c)]&&_0x26b784[_0x38843a(0x25c)][_0x38843a(0x1a7c)][_0x38843a(0xfd0)]){_0x47e294[_0x38843a(0x1a7c)]=_0x26b784['data'][_0x38843a(0x1a7c)]||[{'message':_0x26b784[_0x38843a(0x147f)](),'type':_0x38843a(0x17dd)}];for(let _0x13e34e=0x0;_0x13e34e<_0x26b784['data']['errors'][_0x38843a(0xfd0)];_0x13e34e++){_0x4ee705['error']({'title':_0x26b784[_0x38843a(0x25c)]['errors'][_0x13e34e][_0x38843a(0x66a)],'msg':_0x26b784[_0x38843a(0x25c)][_0x38843a(0x1a7c)][_0x13e34e][_0x38843a(0x155e)]});}}else _0x4ee705[_0x38843a(0x218e)]({'title':_0x26b784['status']?_0x38843a(0xeb9)+_0x26b784[_0x38843a(0x291)]+_0x38843a(0x1657)+_0x26b784[_0x38843a(0xc22)]:_0x38843a(0x17dd),'msg':_0x26b784[_0x38843a(0x25c)]?JSON[_0x38843a(0x2701)](_0x26b784[_0x38843a(0x25c)][_0x38843a(0x155e)]):_0x26b784['message']||_0x26b784['toString']()});});}function _0x25d91d(){const _0x4cfdaa=_0x4e48d1,_0x29cbd5=angular[_0x4cfdaa(0x17fe)](_0x47e294['selectedInboundRoutes']);return _0x47e294[_0x4cfdaa(0x1b6b)]=[],_0x29cbd5;}function _0x1472f2(_0x3c4ebc){const _0x32c29b=_0x4e48d1,_0x19ea0d=_0x46f960[_0x32c29b(0x1551)]()[_0x32c29b(0x1386)](_0x32c29b(0x4fc))['htmlContent'](_0x32c29b(0x204d)+_0x47e294[_0x32c29b(0x1b6b)][_0x32c29b(0xfd0)]+_0x32c29b(0x1d6c)+_0x32c29b(0x1b6))[_0x32c29b(0x15ad)](_0x32c29b(0x1ad))[_0x32c29b(0x728)](_0x3c4ebc)['ok']('OK')[_0x32c29b(0x696)](_0x32c29b(0x24ba));_0x46f960['show'](_0x19ea0d)['then'](function(){const _0x1468f9=_0x32c29b;_0x47e294['selectedInboundRoutes'][_0x1468f9(0xf90)](function(_0x446d31){_0x4ce499(_0x446d31);}),_0x47e294[_0x1468f9(0x1b6b)]=[];});}function _0x33da8a(){const _0x11c797=_0x4e48d1;_0x47e294[_0x11c797(0x1b6b)]=[];}function _0xa841a4(){const _0x2d01ff=_0x4e48d1;_0x47e294['selectedInboundRoutes']=_0x47e294[_0x2d01ff(0x1310)][_0x2d01ff(0x2214)];}}const _0x4ee0f2=_0x22e91f;;_0x4801bd[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),'internalroutes',_0x5537c6(0x3af),'api',_0x5537c6(0x1774),'license',_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x4801bd(_0x1f465f,_0x18d5f9,_0x23b73d,_0x535786,_0x4309b2,_0x339d34,_0x391863,_0x4b2038,_0x46c0a4,_0x58d472,_0x202467,_0x4574c6,_0x123a1f,_0x424e37){const _0x466bf4=_0x5537c6,_0x3867be=this;_0x3867be[_0x466bf4(0xe76)]=_0x202467[_0x466bf4(0x21e8)](),_0x3867be[_0x466bf4(0x1a7c)]=[],_0x3867be['setting']=_0x123a1f,_0x3867be[_0x466bf4(0x8a5)]=_0x4574c6,_0x3867be['crudPermissions']=_0x424e37,_0x3867be['hasModulePermissions']={},_0x3867be[_0x466bf4(0x1b0c)]=_0x3867be[_0x466bf4(0x9ca)]&&_0x3867be['setting'][_0x466bf4(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3867be[_0x466bf4(0x1386)]='VOICE.EDIT_INTERNALROUTE',_0x3867be[_0x466bf4(0x3af)]=angular['copy'](_0x46c0a4),_0x3867be[_0x466bf4(0x24e3)]=_0x4b2038,_0x3867be['newInternalRoute']=![];!_0x3867be[_0x466bf4(0x3af)]&&(_0x3867be[_0x466bf4(0x3af)]={'appdata':_0x466bf4(0x1f69),'type':'internal','context':_0x466bf4(0x156f)},_0x3867be['title']=_0x466bf4(0x239b),_0x3867be[_0x466bf4(0x18af)]=!![]);_0x3867be[_0x466bf4(0x7a4)]=_0x23f54c,_0x3867be[_0x466bf4(0x230e)]=_0x51c250,_0x3867be[_0x466bf4(0x74c)]=_0x4333e3,_0x3867be['getDateFromString']=_0x37eb80,_0x3867be['closeDialog']=_0x51134c,_0x202467[_0x466bf4(0x22b6)](_0x466bf4(0x1c60))?_0x58d472[_0x466bf4(0x1da5)][_0x466bf4(0xbf7)]({'fields':_0x466bf4(0x43c),'sort':'name','nolimit':'true'})['$promise']['then'](function(_0x3aa75f){const _0x101f93=_0x466bf4;_0x3867be[_0x101f93(0x14f6)]=_0x3aa75f[_0x101f93(0x2214)]||[];})[_0x466bf4(0x1c4)](function(_0x4bac38){const _0x242b86=_0x466bf4;_0x391863[_0x242b86(0x218e)]({'title':_0x4bac38['status']?_0x242b86(0xeb9)+_0x4bac38[_0x242b86(0x291)]+_0x242b86(0x1657)+_0x4bac38[_0x242b86(0xc22)]:_0x242b86(0x2072),'msg':_0x4bac38[_0x242b86(0x25c)]?JSON['stringify'](_0x4bac38[_0x242b86(0x25c)]):_0x4bac38[_0x242b86(0x147f)]()});}):_0x58d472[_0x466bf4(0x1da5)][_0x466bf4(0xbf7)]({'fields':'id,name','sort':_0x466bf4(0x16b6),'nolimit':'true'})[_0x466bf4(0x1d77)]['then'](function(_0x28be1b){const _0x1ce754=_0x466bf4;_0x3867be[_0x1ce754(0x14f6)]=_0x28be1b[_0x1ce754(0x2214)]||[];})[_0x466bf4(0x1cb0)](function(){const _0x412881=_0x466bf4;return _0x58d472['userProfileSection']['get']({'userProfileId':_0x3867be['currentUser'][_0x412881(0x13c1)],'sectionId':0x195})[_0x412881(0x1d77)];})[_0x466bf4(0x1cb0)](function(_0x135662){const _0x372358=_0x466bf4,_0x43b39c=_0x135662&&_0x135662[_0x372358(0x2214)]?_0x135662[_0x372358(0x2214)][0x0]:null;if(!_0x43b39c)return _0x58d472[_0x372358(0x1da5)][_0x372358(0xbf7)]({'fields':_0x372358(0x43c),'sort':'name','nolimit':_0x372358(0x44d),'defaultEntry':0x1})[_0x372358(0x1d77)][_0x372358(0x1cb0)](function(_0x29f68a){const _0x36974a=_0x372358;_0x3867be[_0x36974a(0x14f6)]=_0x29f68a[_0x36974a(0x2214)]||[];});else{if(!_0x43b39c[_0x372358(0x12f4)])return _0x58d472[_0x372358(0x1198)]['get']({'sectionId':_0x43b39c['id']})[_0x372358(0x1d77)][_0x372358(0x1cb0)](function(_0x11590e){const _0x191363=_0x372358,_0xbc76c4=_0x39641b()[_0x191363(0x1de2)](_0x11590e['rows'],function(_0x26e257){const _0xf5a526=_0x191363;return _0x39641b()[_0xf5a526(0x13b4)](_0x3867be[_0xf5a526(0x14f6)],{'id':_0x26e257[_0xf5a526(0x2982)]});});let _0x5e97cf=null;_0x3867be[_0x191363(0x3af)]&&(_0x5e97cf=_0x39641b()[_0x191363(0x13b4)](_0x3867be[_0x191363(0x14f6)],{'name':_0x3867be[_0x191363(0x3af)][_0x191363(0x2056)]}));if(_0x5e97cf&&!_0x39641b()[_0x191363(0x727)](_0xbc76c4,['id',_0x5e97cf['id']])){const _0xafe5fb=_0x39641b()[_0x191363(0x13b4)](_0x3867be[_0x191363(0x14f6)],{'id':_0x5e97cf['id']});_0xafe5fb[_0x191363(0x15da)]=![],_0xbc76c4[_0x191363(0x2785)](_0xafe5fb);}_0x3867be[_0x191363(0x14f6)]=_0xbc76c4;});}})[_0x466bf4(0x1c4)](function(_0x55e36a){const _0x5b546b=_0x466bf4;_0x391863[_0x5b546b(0x218e)]({'title':_0x55e36a['status']?_0x5b546b(0xeb9)+_0x55e36a[_0x5b546b(0x291)]+_0x5b546b(0x1657)+_0x55e36a['statusText']:_0x5b546b(0x5ac),'msg':_0x55e36a[_0x5b546b(0x25c)]?JSON['stringify'](_0x55e36a['data']):_0x55e36a['toString']()});});function _0x23f54c(){const _0x6bd2cd=_0x466bf4;_0x3867be[_0x6bd2cd(0x1a7c)]=[],_0x58d472['voiceExtension'][_0x6bd2cd(0x1c3f)](_0x3867be[_0x6bd2cd(0x3af)])['$promise'][_0x6bd2cd(0x1cb0)](function(_0x406721){const _0x47e35f=_0x6bd2cd;_0x3867be[_0x47e35f(0x24e3)][_0x47e35f(0xf63)](_0x406721[_0x47e35f(0x19b2)]()),_0x391863[_0x47e35f(0x829)]({'title':_0x47e35f(0x23f5),'msg':_0x3867be[_0x47e35f(0x3af)][_0x47e35f(0x16b6)]?_0x3867be[_0x47e35f(0x3af)][_0x47e35f(0x16b6)]+_0x47e35f(0x470):''}),_0x51134c(_0x406721);})['catch'](function(_0x750e4e){const _0x7cde6c=_0x6bd2cd;if(_0x750e4e['data']&&_0x750e4e['data'][_0x7cde6c(0x1a7c)]&&_0x750e4e[_0x7cde6c(0x25c)][_0x7cde6c(0x1a7c)]['length']){_0x3867be['errors']=_0x750e4e[_0x7cde6c(0x25c)][_0x7cde6c(0x1a7c)]||[{'message':_0x750e4e[_0x7cde6c(0x147f)](),'type':'api.voiceExtension.save'}];for(let _0x5a3876=0x0;_0x5a3876<_0x750e4e[_0x7cde6c(0x25c)][_0x7cde6c(0x1a7c)][_0x7cde6c(0xfd0)];_0x5a3876+=0x1){_0x391863[_0x7cde6c(0x218e)]({'title':_0x750e4e[_0x7cde6c(0x25c)]['errors'][_0x5a3876][_0x7cde6c(0x66a)],'msg':_0x750e4e[_0x7cde6c(0x25c)][_0x7cde6c(0x1a7c)][_0x5a3876][_0x7cde6c(0x155e)]});}}else _0x391863[_0x7cde6c(0x218e)]({'title':_0x750e4e[_0x7cde6c(0x291)]?_0x7cde6c(0xeb9)+_0x750e4e['status']+_0x7cde6c(0x1657)+_0x750e4e['statusText']:'api.voiceExtension.save','msg':_0x750e4e['data']?JSON[_0x7cde6c(0x2701)](_0x750e4e[_0x7cde6c(0x25c)]['message']):_0x750e4e[_0x7cde6c(0x147f)]()});});}function _0x51c250(){const _0x1c426f=_0x466bf4;_0x3867be[_0x1c426f(0x1a7c)]=[],_0x58d472['voiceExtension'][_0x1c426f(0x687)]({'id':_0x3867be[_0x1c426f(0x3af)]['id']},_0x3867be[_0x1c426f(0x3af)])[_0x1c426f(0x1d77)][_0x1c426f(0x1cb0)](function(_0x19c494){const _0x56979b=_0x1c426f,_0x5fa046=_0x39641b()['find'](_0x3867be[_0x56979b(0x24e3)],{'id':_0x19c494['id']});_0x5fa046&&_0x39641b()[_0x56979b(0x9c1)](_0x5fa046,_0x39641b()[_0x56979b(0x169b)](_0x19c494[_0x56979b(0x19b2)](),_0x39641b()[_0x56979b(0x1be5)](_0x5fa046))),_0x391863[_0x56979b(0x829)]({'title':_0x56979b(0x1bd3),'msg':_0x3867be[_0x56979b(0x3af)][_0x56979b(0x16b6)]?_0x3867be[_0x56979b(0x3af)][_0x56979b(0x16b6)]+_0x56979b(0xedb):''}),_0x51134c(_0x19c494);})['catch'](function(_0x10dc28){const _0x318da7=_0x1c426f;if(_0x10dc28[_0x318da7(0x25c)]&&_0x10dc28[_0x318da7(0x25c)][_0x318da7(0x1a7c)]&&_0x10dc28[_0x318da7(0x25c)][_0x318da7(0x1a7c)][_0x318da7(0xfd0)]){_0x3867be[_0x318da7(0x1a7c)]=_0x10dc28[_0x318da7(0x25c)]['errors']||[{'message':_0x10dc28[_0x318da7(0x147f)](),'type':'api.voiceExtension.update'}];for(let _0x4c5681=0x0;_0x4c5681<_0x10dc28[_0x318da7(0x25c)][_0x318da7(0x1a7c)][_0x318da7(0xfd0)];_0x4c5681++){_0x391863['error']({'title':_0x10dc28['data'][_0x318da7(0x1a7c)][_0x4c5681][_0x318da7(0x66a)],'msg':_0x10dc28[_0x318da7(0x25c)][_0x318da7(0x1a7c)][_0x4c5681][_0x318da7(0x155e)]});}}else _0x391863[_0x318da7(0x218e)]({'title':_0x10dc28[_0x318da7(0x291)]?'API:'+_0x10dc28['status']+'\x20-\x20'+_0x10dc28[_0x318da7(0xc22)]:_0x318da7(0x237b),'msg':_0x10dc28[_0x318da7(0x25c)]?JSON[_0x318da7(0x2701)](_0x10dc28['data'][_0x318da7(0x155e)]):_0x10dc28[_0x318da7(0x147f)]()});});}function _0x4333e3(_0x21e7db){const _0x4bbaa7=_0x466bf4;_0x3867be[_0x4bbaa7(0x1a7c)]=[];const _0x4af31d=_0x535786[_0x4bbaa7(0x1551)]()['title'](_0x4bbaa7(0x1a2e))[_0x4bbaa7(0x862)]('The\x20internalroute\x20will\x20be\x20deleted.')[_0x4bbaa7(0x15ad)](_0x4bbaa7(0x1717))['ok']('Delete')[_0x4bbaa7(0x696)]('Cancel')[_0x4bbaa7(0x728)](_0x21e7db);_0x535786[_0x4bbaa7(0xe27)](_0x4af31d)[_0x4bbaa7(0x1cb0)](function(){const _0x434f47=_0x4bbaa7;_0x58d472[_0x434f47(0x1059)][_0x434f47(0x111d)]({'id':_0x3867be[_0x434f47(0x3af)]['id']})[_0x434f47(0x1d77)][_0x434f47(0x1cb0)](function(){const _0x2b2f59=_0x434f47;_0x39641b()[_0x2b2f59(0x152a)](_0x3867be['internalroutes'],{'id':_0x3867be['internalroute']['id']}),_0x391863[_0x2b2f59(0x829)]({'title':_0x2b2f59(0xa22),'msg':(_0x3867be[_0x2b2f59(0x3af)][_0x2b2f59(0x16b6)]||_0x2b2f59(0x3af))+_0x2b2f59(0x3f5)}),_0x51134c(_0x3867be['internalroute']);})[_0x434f47(0x1c4)](function(_0x1a64e3){const _0x26e0e9=_0x434f47;if(_0x1a64e3['data']&&_0x1a64e3[_0x26e0e9(0x25c)][_0x26e0e9(0x1a7c)]&&_0x1a64e3[_0x26e0e9(0x25c)][_0x26e0e9(0x1a7c)][_0x26e0e9(0xfd0)]){_0x3867be['errors']=_0x1a64e3[_0x26e0e9(0x25c)][_0x26e0e9(0x1a7c)]||[{'message':_0x1a64e3[_0x26e0e9(0x147f)](),'type':_0x26e0e9(0xb49)}];for(let _0x573880=0x0;_0x573880<_0x1a64e3[_0x26e0e9(0x25c)][_0x26e0e9(0x1a7c)][_0x26e0e9(0xfd0)];_0x573880++){_0x391863[_0x26e0e9(0x218e)]({'title':_0x1a64e3[_0x26e0e9(0x25c)][_0x26e0e9(0x1a7c)][_0x573880][_0x26e0e9(0x66a)],'msg':_0x1a64e3[_0x26e0e9(0x25c)][_0x26e0e9(0x1a7c)][_0x573880]['message']});}}else _0x391863[_0x26e0e9(0x218e)]({'title':_0x1a64e3[_0x26e0e9(0x291)]?_0x26e0e9(0xeb9)+_0x1a64e3['status']+_0x26e0e9(0x1657)+_0x1a64e3[_0x26e0e9(0xc22)]:_0x26e0e9(0xb49),'msg':_0x1a64e3[_0x26e0e9(0x25c)]?JSON[_0x26e0e9(0x2701)](_0x1a64e3[_0x26e0e9(0x25c)][_0x26e0e9(0x155e)]):_0x1a64e3[_0x26e0e9(0x155e)]||_0x1a64e3[_0x26e0e9(0x147f)]()});});},function(){});}function _0x37eb80(_0x1cbaf3){return _0x1cbaf3===null?undefined:new Date(_0x1cbaf3);}function _0x51134c(_0x52bb55){const _0x1a7392=_0x466bf4;_0x535786[_0x1a7392(0x1426)](_0x52bb55);}}const _0x289d0e=_0x4801bd;;const _0x19f142=_0x5074a3['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/agi/dialog.html/dialog.html';;const _0x285f4d=_0x5074a3['p']+_0x5537c6(0x1d6f);;const _0x21a8ee=_0x5074a3['p']+_0x5537c6(0x11dc);;const _0x25b128=_0x5074a3['p']+_0x5537c6(0x1fd3);;const _0x214b55=_0x5074a3['p']+_0x5537c6(0x796);;const _0x54cfc0=_0x5074a3['p']+_0x5537c6(0x28f3);;const _0x20508c=_0x5074a3['p']+_0x5537c6(0x1af8);;const _0x344c76=_0x5074a3['p']+_0x5537c6(0xb61);;const _0x33235d=_0x5074a3['p']+_0x5537c6(0x2b3);;const _0x2487ba=_0x5074a3['p']+_0x5537c6(0xb54);;const _0xf2ee5d=_0x5074a3['p']+_0x5537c6(0x23fb);;const _0x18ce83=_0x5074a3['p']+_0x5537c6(0x243);;const _0x4e65e6=_0x5074a3['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/voicemail/dialog.html/dialog.html';;_0x2be751['$inject']=[_0x5537c6(0x142b),_0x5537c6(0xcb9),'$document',_0x5537c6(0x9bf),_0x5537c6(0x1774)];const _0x3495d0={'agi':_0x19f142,'custom':_0x285f4d,'dial':_0x21a8ee,'externaldial':_0x25b128,'goto':_0x214b55,'hangup':_0x54cfc0,'internaldial':_0x20508c,'interval':_0x344c76,'playback':_0x33235d,'queue':_0x2487ba,'ringgroup':_0xf2ee5d,'set':_0x18ce83,'voicemail':_0x4e65e6};function _0x2be751(_0x3af431,_0x3dbe88,_0xca427a,_0x29c551,_0x2750b4){const _0x54b582=_0x5537c6,_0x405c5e=this;_0x405c5e[_0x54b582(0xe76)]=_0x2750b4['getCurrentUser'](),_0x405c5e[_0x54b582(0x3af)]={},_0x405c5e['internalrouteApps']={'count':0x0,'rows':[]},_0x405c5e[_0x54b582(0x60c)]=[],_0x405c5e[_0x54b582(0x1b1a)],_0x405c5e['query']={'sort':_0x54b582(0x521)},_0x405c5e[_0x54b582(0x196f)]=_0x39641b()['reject'](_0x39641b()[_0x54b582(0x1d33)]([{'app':_0x54b582(0x1d81),'appType':_0x54b582(0x1ac8),'type':_0x54b582(0xdab),'types':[_0x54b582(0x2017),_0x54b582(0x197c),_0x54b582(0x240)],'fields':[],'isApp':![]},{'app':_0x54b582(0x2687),'appType':_0x54b582(0x11cf),'context':_0x54b582(0x156f),'type':_0x54b582(0xdab),'options':'xX','appdata':',xX,,,300,,,,,','icon':_0x54b582(0x33e),'interval':_0x54b582(0x965),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x54b582(0xe28),'field':{'name':_0x54b582(0x1e9),'key':_0x54b582(0x144c),'prefix':_0x54b582(0xd74)},'route':_0x54b582(0x1e9),'filters':{'fields':_0x54b582(0x4ae),'sort':_0x54b582(0x16b6),'nolimit':!![]},'permissions':{'section':0x3ef}},{'name':_0x54b582(0x971),'field':{'name':_0x54b582(0x11cf),'key':_0x54b582(0x16b6)},'route':_0x54b582(0x26b3),'filters':{'type':_0x54b582(0x26c0),'fields':_0x54b582(0x1896),'sort':_0x54b582(0x16b6),'nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':_0x54b582(0x2687),'name':_0x54b582(0x11cf),'type':_0x54b582(0xb52),'values':'queues','value':_0x54b582(0x19b3),'option':'queue.name','required':!![],'param':0x0},{'title':_0x54b582(0x17e0),'name':_0x54b582(0x2224),'type':_0x54b582(0x19d3),'param':0x1},{'title':'Url','name':_0x54b582(0x237e),'type':_0x54b582(0x19d3),'param':0x2},{'title':_0x54b582(0x2592),'name':'sound','type':_0x54b582(0xb52),'values':_0x54b582(0xe28),'value':_0x54b582(0x2462),'option':_0x54b582(0x27db),'defaultValues':[{'value':'\x27\x27','option':_0x54b582(0x2001)}],'param':0x3},{'title':_0x54b582(0xbcc),'name':_0x54b582(0x1719),'type':_0x54b582(0x83d),'min':0x0,'param':0x4},{'title':'Agi','name':_0x54b582(0x4b4),'type':'text','param':0x5},{'title':_0x54b582(0xa15),'name':_0x54b582(0x321),'type':_0x54b582(0x19d3),'param':0x6},{'title':_0x54b582(0x21f0),'name':_0x54b582(0x20fb),'type':_0x54b582(0x19d3),'param':0x7},{'title':'Rule','name':_0x54b582(0x5a5),'type':'text','param':0x8},{'title':_0x54b582(0x121b),'name':_0x54b582(0xe9e),'type':'number','min':0x0,'param':0x9},{'title':_0x54b582(0x265d),'name':'answer','type':_0x54b582(0x1f0e),'general':!![]}]},{'app':'Playback','appType':'playback','context':_0x54b582(0x156f),'type':'Internal','icon':'icon-apps','interval':_0x54b582(0x965),'answer':!![],'isApp':!![],'extraApi':[{'name':'sounds','field':{'name':_0x54b582(0x28df),'key':_0x54b582(0x144c),'prefix':_0x54b582(0xd74)},'route':_0x54b582(0x1e9),'filters':{'fields':_0x54b582(0x4ae),'sort':_0x54b582(0x16b6),'nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':'Audio_Files','name':_0x54b582(0x28df),'type':'apiselect','values':_0x54b582(0xe28),'value':_0x54b582(0xc08),'option':_0x54b582(0x2700),'required':!![],'param':0x0},{'title':_0x54b582(0x17e0),'name':_0x54b582(0x2224),'type':_0x54b582(0x19d3),'param':0x1},{'title':_0x54b582(0x265d),'name':_0x54b582(0x24d5),'type':_0x54b582(0x1f0e),'general':!![]}]},{'app':_0x54b582(0x18f8),'appType':_0x54b582(0xdd8),'context':'from-sip','type':_0x54b582(0xdab),'icon':_0x54b582(0x33e),'options':'xX','interval':_0x54b582(0x965),'isApp':!![],'fields':[{'title':_0x54b582(0x76b),'name':_0x54b582(0x23f2),'type':_0x54b582(0x19d3),'required':!![],'param':0x0},{'title':_0x54b582(0xbcc),'name':_0x54b582(0x1719),'type':_0x54b582(0x83d),'min':0x0,'param':0x1},{'title':_0x54b582(0x17e0),'name':_0x54b582(0x2224),'type':'text','param':0x2},{'title':_0x54b582(0x237c),'name':_0x54b582(0x135b),'type':_0x54b582(0x19d3),'param':0x3}]},{'app':_0x54b582(0x18f8),'appType':_0x54b582(0xbed),'context':_0x54b582(0x156f),'type':_0x54b582(0xdab),'icon':_0x54b582(0x33e),'options':'xX','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':'users','field':{'name':_0x54b582(0xebe),'key':_0x54b582(0x16b6),'prefix':_0x54b582(0xadb)},'route':_0x54b582(0xebe),'filters':{'fields':_0x54b582(0x17ce),'sort':_0x54b582(0x16b6),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x54b582(0x1eff)},{'id':0xcb,'role':'telephone'}]}}],'fields':[{'title':'User','name':_0x54b582(0xebe),'type':_0x54b582(0xb52),'values':_0x54b582(0x1e30),'value':_0x54b582(0x15f),'option':_0x54b582(0x2039),'required':!![],'param':0x0},{'title':_0x54b582(0xbcc),'name':'timeout','type':_0x54b582(0x83d),'min':0x0,'param':0x1},{'title':_0x54b582(0x17e0),'name':_0x54b582(0x2224),'type':_0x54b582(0x19d3),'param':0x2},{'title':'Url','name':_0x54b582(0x135b),'type':_0x54b582(0x19d3),'param':0x3}]},{'app':_0x54b582(0x18f8),'appType':_0x54b582(0x1653),'context':_0x54b582(0x156f),'type':'Internal','icon':_0x54b582(0x33e),'interval':_0x54b582(0x965),'options':'xX','isApp':!![],'extraApi':[{'name':_0x54b582(0x1363),'field':{'name':'trunk','key':_0x54b582(0x16b6)},'route':_0x54b582(0x1ae0),'filters':{'fields':_0x54b582(0x43c),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':'Trunk','name':_0x54b582(0x1ae0),'type':'apiselect','values':_0x54b582(0x1363),'value':_0x54b582(0xcb0),'option':'trunk.name','required':!![],'param':0x0},{'title':_0x54b582(0x722),'name':_0x54b582(0x1340),'type':_0x54b582(0x19d3)},{'title':'Timeout','name':_0x54b582(0x1719),'type':'number','min':0x0,'param':0x1},{'title':_0x54b582(0x17e0),'name':'options','type':'text','param':0x2},{'title':_0x54b582(0x237c),'name':'url','type':'text','param':0x3}]},{'app':'Dial','appType':_0x54b582(0x1054),'context':_0x54b582(0x156f),'type':_0x54b582(0xdab),'icon':_0x54b582(0x33e),'interval':_0x54b582(0x965),'options':'xX','isApp':!![],'extraApi':[{'name':_0x54b582(0x1e30),'field':{'name':_0x54b582(0x1989),'key':_0x54b582(0x16b6),'prefix':_0x54b582(0xadb)},'route':_0x54b582(0xebe),'filters':{'fields':_0x54b582(0x17ce),'sort':_0x54b582(0x16b6),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x54b582(0x1eff)},{'id':0xcb,'role':_0x54b582(0x2922)}]}}],'fields':[{'title':_0x54b582(0x1597),'name':_0x54b582(0x1989),'type':_0x54b582(0xb52),'multiple':!![],'values':_0x54b582(0x1e30),'value':_0x54b582(0x178b),'option':_0x54b582(0x928),'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':_0x54b582(0x83d),'min':0x0,'param':0x1},{'title':'Options','name':_0x54b582(0x2224),'type':_0x54b582(0x19d3),'param':0x2},{'title':_0x54b582(0x237c),'name':_0x54b582(0x135b),'type':_0x54b582(0x19d3),'param':0x3}]},{'app':_0x54b582(0xa92),'alias':_0x54b582(0x1ff3),'appType':_0x54b582(0x4b4),'context':'from-sip','type':'Internal','icon':_0x54b582(0x33e),'interval':_0x54b582(0x965),'isApp':!![],'extraApi':[{'name':_0x54b582(0x2981),'field':{'name':'project','key':_0x54b582(0x16b6),'prefix':_0x54b582(0x459)},'route':_0x54b582(0xf61),'filters':{'fields':_0x54b582(0x43c),'sort':'name','nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':_0x54b582(0x23ec),'name':_0x54b582(0x12a7),'type':_0x54b582(0xb52),'values':_0x54b582(0x2981),'value':'\x27agi://127.0.0.1/square,{{project.name}}\x27','option':_0x54b582(0x105a),'required':!![],'param':0x0}]},{'app':_0x54b582(0x3da),'appType':_0x54b582(0x628),'context':'from-sip','type':_0x54b582(0xdab),'icon':'icon-apps','interval':_0x54b582(0x965),'isApp':!![],'extraApi':[{'name':_0x54b582(0x14f6),'field':{'name':_0x54b582(0x2056),'key':_0x54b582(0x16b6)},'route':_0x54b582(0x1da5),'filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':_0x54b582(0x14fa),'name':_0x54b582(0x2056),'type':_0x54b582(0xb52),'values':_0x54b582(0x14f6),'value':_0x54b582(0x2076),'option':'context.name','required':!![],'param':0x0},{'title':'Extension','name':_0x54b582(0xd52),'type':_0x54b582(0x19d3),'required':!![],'param':0x1},{'title':_0x54b582(0x1240),'name':_0x54b582(0x521),'type':'text','required':!![],'param':0x2}]},{'app':_0x54b582(0x15e3),'appType':'hangup','context':_0x54b582(0x156f),'type':_0x54b582(0xdab),'icon':'icon-apps','interval':_0x54b582(0x965),'isApp':!![],'fields':[{'title':_0x54b582(0x1fa6),'name':_0x54b582(0x28df),'type':_0x54b582(0x220f),'param':0x0,'values':[{'option':'HANGUPCAUSE_1','value':_0x54b582(0x11e4)},{'option':_0x54b582(0xac3),'value':_0x54b582(0x18ab)},{'option':_0x54b582(0x12ed),'value':_0x54b582(0x256b)},{'option':'HANGUPCAUSE_18','value':'\x2718\x27'},{'option':_0x54b582(0x1587),'value':_0x54b582(0x1df7)},{'option':_0x54b582(0x18a9),'value':'\x2722\x27'},{'option':_0x54b582(0xd63),'value':_0x54b582(0x1506)},{'option':_0x54b582(0x3b1),'value':'\x2738\x27'},{'option':_0x54b582(0x418),'value':_0x54b582(0x2985)}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0x54b582(0x11c3),'appType':'set','context':_0x54b582(0x156f),'type':'Internal','separator':'=','icon':'icon-apps','interval':_0x54b582(0x965),'extraApi':[{'name':_0x54b582(0x9a9),'field':{'name':_0x54b582(0x16b6),'key':_0x54b582(0x16b6)},'route':'variable','filters':{'fields':_0x54b582(0x43c),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':_0x54b582(0x1b02),'name':'name','type':_0x54b582(0xb52),'values':_0x54b582(0x9a9),'value':_0x54b582(0x5a1),'option':_0x54b582(0x5a1),'required':!![],'param':0x0},{'title':_0x54b582(0x1e10),'name':_0x54b582(0x327),'type':'text','required':!![],'param':0x1}]},{'app':null,'appType':_0x54b582(0x197c),'icon':'icon-apps','type':_0x54b582(0xdab),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x54b582(0x2563),'name':_0x54b582(0x22e1),'type':_0x54b582(0x19d3),'required':!![],'param':0x0},{'title':_0x54b582(0x19b8),'name':_0x54b582(0x28df),'type':_0x54b582(0x19d3),'param':0x1}]},{'app':'Voicemail','appType':_0x54b582(0xd66),'context':'from-sip','icon':_0x54b582(0x33e),'type':'Internal','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':'voiceMails','field':{'name':_0x54b582(0x18d4),'key':'mailbox','suffix':_0x54b582(0x1df9)},'route':_0x54b582(0x18d4),'filters':{'fields':_0x54b582(0x29af),'sort':_0x54b582(0x1b7a),'nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':_0x54b582(0x1279),'name':_0x54b582(0x18d4),'type':'apiselect','values':_0x54b582(0x1951),'value':'\x27{{voiceMail.mailbox}}@from-voicemail\x27','option':_0x54b582(0x1329),'required':!![],'param':0x0},{'title':_0x54b582(0x17e0),'name':_0x54b582(0x2224),'type':_0x54b582(0x19d3),'param':0x1}]}],[_0x54b582(0x22e1)]),{'isApp':![]}),_0x405c5e[_0x54b582(0x240)]={'group':{'name':'opt1','pull':_0x54b582(0x11bc)},'animation':0x64,'sort':![]},_0x405c5e[_0x54b582(0x1f2f)]={'group':{'name':_0x54b582(0x1ddb),'put':_0x54b582(0x2523)},'animation':0x64,'onAdd':function(_0x58f781){const _0x23f77b=_0x54b582;_0x17e496(_0x58f781,_0x58f781[_0x23f77b(0x22e)]);},'onSort':function(){_0x5197d7();}},_0x405c5e[_0x54b582(0x1a8e)]=_0x56d5b8,_0x405c5e[_0x54b582(0xb25)]=_0x11fd99,_0x405c5e[_0x54b582(0x26dd)]=_0x1617d2,_0x405c5e[_0x54b582(0x1c85)]=_0x17e496,_0x405c5e['editInterval']=_0x26d179,_0x405c5e[_0x54b582(0x2760)]=_0x1b3191,_0x405c5e[_0x54b582(0x1052)]=_0x1c6770,_0x405c5e['rewriteRouting']=_0x5197d7,_0x405c5e[_0x54b582(0x22fc)]=_0x262216;function _0x56d5b8(_0x2ee61a,_0xb2fc0f){const _0x17367b=_0x54b582;_0x405c5e[_0x17367b(0x3af)]=_0x2ee61a,_0x405c5e[_0x17367b(0x1b1a)]=typeof _0xb2fc0f!==_0x17367b(0x16b5)?_0xb2fc0f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x405c5e[_0x17367b(0x1f2f)][_0x17367b(0x379)]=!_0x405c5e[_0x17367b(0x1b1a)]['canEdit']?!![]:![],_0x405c5e[_0x17367b(0xae2)][_0x17367b(0x1cc7)]=_0x2ee61a['id'],_0x405c5e[_0x17367b(0xae2)][_0x17367b(0xead)]=!![],_0x405c5e['query'][_0x17367b(0x2282)]=!![],_0x405c5e['getInternalRouteApps'](),_0x405c5e[_0x17367b(0x22fc)]();}function _0x11fd99(_0x1f4d4e,_0xdc1f73,_0x547d36){const _0x2a3eca=_0x54b582,_0x3920ee=_0x3dbe88[_0x2a3eca(0x1551)]()[_0x2a3eca(0x1386)](_0x2a3eca(0xf35))[_0x2a3eca(0x49e)](''+_0x1f4d4e[_0x2a3eca(0x22e1)]+_0x2a3eca(0x1200)+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x2a3eca(0x2998))[_0x2a3eca(0x728)](_0x547d36)['ok']('OK')[_0x2a3eca(0x696)](_0x2a3eca(0x24ba));_0x3dbe88['show'](_0x3920ee)[_0x2a3eca(0x1cb0)](function(){const _0x5f2ec8=_0x2a3eca;_0x405c5e[_0x5f2ec8(0xea3)]['rows'][_0x5f2ec8(0x159c)](_0xdc1f73,0x1),_0x5197d7();},function(){const _0x4ada8d=_0x2a3eca;console[_0x4ada8d(0x1b4f)](_0x4ada8d(0x24ba));});}function _0x17e496(_0x6fa04a,_0x5bdb18){const _0x279954=_0x54b582;if(_0x405c5e[_0x279954(0xea3)][_0x279954(0x2214)]['length']){const _0x745b93=_0x405c5e['internalrouteApps'][_0x279954(0x2214)][_0x5bdb18]?_0x405c5e[_0x279954(0xea3)][_0x279954(0x2214)][_0x5bdb18]:_0x405c5e[_0x279954(0xea3)][_0x279954(0x2214)][0x0],_0x108a80=(_0x745b93[_0x279954(0x299b)]||_0x745b93[_0x279954(0x22e1)])[_0x279954(0x1680)]();_0x3dbe88['show']({'controller':_0x279954(0xcff)+_0x108a80+'DialogController','controllerAs':'vm','templateUrl':_0x3495d0[_0x108a80],'parent':angular['element'](_0xca427a[_0x279954(0x1ed9)]),'targetEvent':_0x6fa04a,'clickOutsideToClose':!![],'locals':{'internalrouteApp':_0x745b93,'internalroute':_0x405c5e[_0x279954(0x3af)],'crudPermissions':_0x405c5e[_0x279954(0x1b1a)]}})[_0x279954(0x1cb0)](function(_0x5a7b14){const _0x55f23a=_0x279954;_0x5a7b14&&(_0x5a7b14['id']?_0x405c5e[_0x55f23a(0xea3)][_0x55f23a(0x2214)][_0x5bdb18]=_0x5a7b14:_0x405c5e[_0x55f23a(0xea3)][_0x55f23a(0x2214)][_0x55f23a(0x159c)](_0x5bdb18,0x0,_0x5a7b14),_0x5197d7());})['catch'](function(_0x2ac56d){const _0x7e0b72=_0x279954;_0x2ac56d&&_0x29c551[_0x7e0b72(0x218e)]({'title':_0x2ac56d[_0x7e0b72(0x291)]?_0x7e0b72(0xeb9)+_0x2ac56d[_0x7e0b72(0x291)]+_0x7e0b72(0x1657)+_0x2ac56d[_0x7e0b72(0xc22)]:'SYSTEM:EDITMODALSHOW','msg':_0x2ac56d[_0x7e0b72(0x25c)]?JSON['stringify'](_0x2ac56d[_0x7e0b72(0x25c)]):_0x2ac56d[_0x7e0b72(0x147f)]()});});}}function _0x26d179(_0x2a9389,_0x24ef60){const _0x2b75e0=_0x54b582;if(_0x405c5e[_0x2b75e0(0xea3)]['rows']['length']){const _0x55018d=_0x405c5e[_0x2b75e0(0xea3)][_0x2b75e0(0x2214)][_0x24ef60]?_0x405c5e[_0x2b75e0(0xea3)][_0x2b75e0(0x2214)][_0x24ef60]:_0x405c5e[_0x2b75e0(0xea3)]['rows'][0x0];_0x3dbe88[_0x2b75e0(0xe27)]({'controller':_0x2b75e0(0x80f),'controllerAs':'vm','templateUrl':_0x344c76,'parent':angular['element'](_0xca427a[_0x2b75e0(0x1ed9)]),'targetEvent':_0x2a9389,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x55018d[_0x2b75e0(0x1ac8)],'IntervalId':_0x55018d[_0x2b75e0(0x1a60)],'application':!![]},'intervals':[],'crudPermissions':_0x405c5e['crudPermissions']}})[_0x2b75e0(0x1cb0)](function(_0x2d9044){const _0x45cc09=_0x2b75e0;_0x2d9044&&(_0x55018d[_0x45cc09(0x1ac8)]=_0x2d9044[_0x45cc09(0x1ac8)]||_0x45cc09(0x965),_0x55018d[_0x45cc09(0x1a60)]=_0x2d9044[_0x45cc09(0x1a60)]||null,_0x5197d7());});}}function _0x5197d7(){const _0x32a0df=_0x54b582,_0x3e6e12=[_0x32a0df(0x11cf),_0x32a0df(0x2580)];let _0x6d310e=0x2,_0x515b5a=[];_0x515b5a[_0x32a0df(0x2785)]({'type':_0x32a0df(0xdbd),'app':_0x32a0df(0x11c3),'appdata':_0x32a0df(0xf23),'context':_0x405c5e['internalroute'][_0x32a0df(0x2056)],'exten':_0x405c5e['internalroute'][_0x32a0df(0x26a2)],'priority':_0x6d310e++,'VoiceExtensionId':_0x405c5e[_0x32a0df(0x3af)]['id']}),_0x515b5a[_0x32a0df(0x2785)]({'type':_0x32a0df(0xdbd),'app':'Set','appdata':'XCALLY-MOTION-ANSWER=0','context':_0x405c5e[_0x32a0df(0x3af)]['context'],'exten':_0x405c5e[_0x32a0df(0x3af)]['exten'],'priority':_0x6d310e++,'VoiceExtensionId':_0x405c5e['internalroute']['id']}),_0x515b5a[_0x32a0df(0x2785)]({'type':'internal','app':_0x32a0df(0x11c3),'appdata':_0x32a0df(0x1781),'context':_0x405c5e['internalroute'][_0x32a0df(0x2056)],'exten':_0x405c5e[_0x32a0df(0x3af)]['exten'],'priority':_0x6d310e++,'VoiceExtensionId':_0x405c5e[_0x32a0df(0x3af)]['id']}),_0x515b5a[_0x32a0df(0x2785)]({'type':_0x32a0df(0xdbd),'app':_0x32a0df(0x11c3),'appdata':_0x32a0df(0x4ba),'context':_0x405c5e[_0x32a0df(0x3af)][_0x32a0df(0x2056)],'exten':_0x405c5e[_0x32a0df(0x3af)][_0x32a0df(0x26a2)],'priority':_0x6d310e++,'VoiceExtensionId':_0x405c5e['internalroute']['id']});for(let _0x4070a4=0x0,_0x4a9ad3=0x0;_0x4070a4<_0x405c5e[_0x32a0df(0xea3)][_0x32a0df(0x2214)][_0x32a0df(0xfd0)];_0x4070a4++,_0x4a9ad3=0x0){const _0x4a6dd8=_0x405c5e[_0x32a0df(0xea3)][_0x32a0df(0x2214)][_0x4070a4],_0x558706=[],_0x3dbf30=[];_0x4a6dd8[_0x32a0df(0xb4a)]=_0x4a6dd8[_0x32a0df(0x1ac8)]!==_0x32a0df(0x965)?[_0x4a6dd8[_0x32a0df(0x1ac8)]]:_0x4a6dd8[_0x32a0df(0x1a60)]?_0x39641b()[_0x32a0df(0x1de2)](_0x39641b()[_0x32a0df(0x1c99)](_0x405c5e[_0x32a0df(0xb4a)][_0x32a0df(0x2214)],{'IntervalId':_0x4a6dd8[_0x32a0df(0x1a60)]}),_0x32a0df(0x1ac8)):[],_0x4a6dd8[_0x32a0df(0x2056)]=_0x405c5e[_0x32a0df(0x3af)][_0x32a0df(0x2056)],_0x4a6dd8['exten']=_0x405c5e['internalroute']['exten'];_0x4a6dd8[_0x32a0df(0x66a)]&&(_0x4a6dd8[_0x32a0df(0x66a)]=_0x4a6dd8[_0x32a0df(0x66a)]['toLowerCase']());typeof _0x4a6dd8[_0x32a0df(0x24d5)]!==_0x32a0df(0x16b5)&&(_0x3e6e12[_0x32a0df(0x250a)](_0x4a6dd8[_0x32a0df(0x22e1)]['toLowerCase']())&&_0x4a6dd8[_0x32a0df(0x299b)]!==_0x32a0df(0x197c)&&(_0x4a6dd8[_0x32a0df(0x24d5)]?(_0x558706['push']({'type':_0x4a6dd8['type'][_0x32a0df(0x1680)](),'app':_0x32a0df(0x1991),'appdata':_0x32a0df(0x14f5),'context':_0x405c5e[_0x32a0df(0x3af)][_0x32a0df(0x2056)],'exten':_0x405c5e[_0x32a0df(0x3af)]['exten'],'priority':_0x4a6dd8[_0x32a0df(0xb4a)][_0x32a0df(0xfd0)]+_0x6d310e+_0x4a9ad3++,'VoiceExtensionId':_0x405c5e[_0x32a0df(0x3af)]['id']}),_0x558706[_0x32a0df(0x2785)]({'type':_0x4a6dd8['type'][_0x32a0df(0x1680)](),'app':_0x32a0df(0x11c3),'appdata':_0x32a0df(0x998),'context':_0x405c5e['internalroute'][_0x32a0df(0x2056)],'exten':_0x405c5e[_0x32a0df(0x3af)][_0x32a0df(0x26a2)],'priority':_0x4a6dd8[_0x32a0df(0xb4a)][_0x32a0df(0xfd0)]+_0x6d310e+_0x4a9ad3++,'VoiceExtensionId':_0x405c5e[_0x32a0df(0x3af)]['id']})):(_0x558706[_0x32a0df(0x2785)]({'type':_0x4a6dd8[_0x32a0df(0x66a)][_0x32a0df(0x1680)](),'app':_0x32a0df(0x1991),'appdata':'$[${XCALLY-MOTION-PROGRESS}=0]?Progress','context':_0x405c5e[_0x32a0df(0x3af)][_0x32a0df(0x2056)],'exten':_0x405c5e[_0x32a0df(0x3af)]['exten'],'priority':_0x4a6dd8[_0x32a0df(0xb4a)][_0x32a0df(0xfd0)]+_0x6d310e+_0x4a9ad3++,'VoiceExtensionId':_0x405c5e[_0x32a0df(0x3af)]['id']}),_0x558706[_0x32a0df(0x2785)]({'type':_0x4a6dd8[_0x32a0df(0x66a)][_0x32a0df(0x1680)](),'app':_0x32a0df(0x11c3),'appdata':_0x32a0df(0x397),'context':_0x405c5e['internalroute']['context'],'exten':_0x405c5e[_0x32a0df(0x3af)][_0x32a0df(0x26a2)],'priority':_0x4a6dd8[_0x32a0df(0xb4a)][_0x32a0df(0xfd0)]+_0x6d310e+_0x4a9ad3++,'VoiceExtensionId':_0x405c5e[_0x32a0df(0x3af)]['id']}))));for(let _0x4d9088=0x0;_0x4d9088<_0x4a6dd8[_0x32a0df(0xb4a)][_0x32a0df(0xfd0)];_0x4d9088++){const _0x35e983=_0x6d310e+_0x4a6dd8['intervals'][_0x32a0df(0xfd0)],_0x50749f=_0x4d9088===_0x4a6dd8[_0x32a0df(0xb4a)][_0x32a0df(0xfd0)]-0x1?_0x6d310e+_0x558706[_0x32a0df(0xfd0)]+_0x3dbf30[_0x32a0df(0xfd0)]+0x2:_0x6d310e+_0x4d9088+0x1;_0x558706[_0x32a0df(0x159c)](_0x4d9088,0x0,{'type':_0x32a0df(0xdbd),'app':_0x32a0df(0x1f54),'appdata':_0x4a6dd8['intervals'][_0x4d9088]+'?'+_0x405c5e[_0x32a0df(0x3af)]['context']+_0x32a0df(0xa5c)+_0x35e983+':'+_0x405c5e[_0x32a0df(0x3af)]['context']+',${EXTEN},'+_0x50749f,'exten':_0x405c5e[_0x32a0df(0x3af)][_0x32a0df(0x26a2)],'context':_0x405c5e[_0x32a0df(0x3af)]['context'],'priority':_0x6d310e+_0x4d9088,'VoiceExtensionId':_0x405c5e['internalroute']['id']});}_0x4a6dd8['priority']=_0x558706['length']?_0x39641b()['last'](_0x558706)['priority']+0x1:_0x6d310e,_0x6d310e=(_0x3dbf30[_0x32a0df(0xfd0)]?_0x39641b()['last'](_0x3dbf30)['priority']:_0x4a6dd8[_0x32a0df(0x521)])+0x1,_0x515b5a=_0x39641b()[_0x32a0df(0x298a)](_0x515b5a,_0x558706,[_0x4a6dd8],_0x3dbf30);}_0x515b5a['push']({'type':_0x32a0df(0xdbd),'app':_0x32a0df(0x26e1),'exten':_0x405c5e['internalroute'][_0x32a0df(0x26a2)],'context':_0x405c5e['internalroute'][_0x32a0df(0x2056)],'priority':_0x6d310e,'VoiceExtensionId':_0x405c5e['internalroute']['id']}),_0x3af431[_0x32a0df(0x1059)][_0x32a0df(0x2598)]({'id':_0x405c5e[_0x32a0df(0x3af)]['id']},_0x39641b()[_0x32a0df(0x1d33)](_0x515b5a,_0x32a0df(0x521)))[_0x32a0df(0x1d77)][_0x32a0df(0x1cb0)](function(_0x4e6915){const _0x480a91=_0x32a0df;_0x405c5e[_0x480a91(0xea3)]['rows']=_0x4e6915[_0x480a91(0x2214)];})['catch'](function(_0xcbf02){const _0x4957ad=_0x32a0df;console[_0x4957ad(0x218e)](_0xcbf02);});}function _0x53c6ce(_0x342ec5){const _0x22adb9=_0x54b582;_0x405c5e[_0x22adb9(0xea3)]=_0x342ec5||{'count':0x0,'rows':[]};}function _0x262216(){const _0x4c64ea=_0x54b582;return _0x3af431[_0x4c64ea(0x1ac8)][_0x4c64ea(0xbf7)]({'fields':'id,interval,IntervalId'})['$promise'][_0x4c64ea(0x1cb0)](function(_0x223c1a){const _0x149a75=_0x4c64ea;_0x405c5e[_0x149a75(0xb4a)]=_0x223c1a;})[_0x4c64ea(0x1c4)](function(_0x3eca54){console['error'](_0x3eca54);});}function _0x1617d2(){const _0x62d073=_0x54b582;_0x405c5e[_0x62d073(0x2061)]=_0x3af431['voiceExtension'][_0x62d073(0xbf7)](_0x405c5e['query'],_0x53c6ce)[_0x62d073(0x1d77)];}function _0x1b3191(_0x5d3142){const _0x21bdb9=_0x54b582;_0x39641b()[_0x21bdb9(0x152a)](_0x405c5e[_0x21bdb9(0xea3)][_0x21bdb9(0x2214)],{'id':_0x5d3142['id']}),_0x5197d7(),_0x29c551[_0x21bdb9(0x829)]({'title':_0x21bdb9(0x2923),'msg':_0x5d3142[_0x21bdb9(0x22e1)]?_0x5d3142[_0x21bdb9(0x22e1)]+_0x21bdb9(0x3f5):''});}function _0x1c6770(_0x934c7e){const _0x460602=_0x54b582,_0x18d428=_0x3dbe88[_0x460602(0x1551)]()[_0x460602(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')[_0x460602(0x49e)](_0x460602(0x204d)+_0x405c5e[_0x460602(0x60c)]['length']+_0x460602(0x1d6c)+_0x460602(0x1b6))[_0x460602(0x15ad)]('delete\x20applications')[_0x460602(0x728)](_0x934c7e)['ok']('OK')[_0x460602(0x696)](_0x460602(0x24ba));_0x3dbe88[_0x460602(0xe27)](_0x18d428)[_0x460602(0x1cb0)](function(){const _0x6a7a44=_0x460602;_0x405c5e[_0x6a7a44(0x60c)][_0x6a7a44(0xf90)](function(_0x23f38b){const _0x1623b7=_0x6a7a44;_0x39641b()[_0x1623b7(0x152a)](_0x405c5e[_0x1623b7(0xea3)][_0x1623b7(0x2214)],{'id':_0x23f38b['id']});}),_0x405c5e[_0x6a7a44(0x60c)]=[],_0x5197d7();});}}const _0x2218eb=_0x2be751;;_0x48da8f['$inject']=[_0x5537c6(0xcb9),'$q','toasty','internalrouteApp',_0x5537c6(0x3af),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x48da8f(_0x39f2f9,_0x25a124,_0x4e172b,_0x290c8b,_0x4b4151,_0x45a921,_0x3467db,_0x540978){const _0x2e0bff=_0x5537c6,_0x5b1a02=this;_0x5b1a02['currentUser']=_0x3467db[_0x2e0bff(0x21e8)](),_0x5b1a02[_0x2e0bff(0x1a7c)]=[],_0x5b1a02['title']='VOICE.EDIT_'+(_0x290c8b['appType']||_0x290c8b['app'])[_0x2e0bff(0x2335)](),_0x5b1a02[_0x2e0bff(0x4b4)]=angular[_0x2e0bff(0x17fe)](_0x290c8b),_0x5b1a02['crudPermissions']=_0x540978,_0x5b1a02[_0x2e0bff(0xf4c)]={};if(_0x5b1a02['agi'][_0x2e0bff(0x28df)])switch(_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x299b)]?_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x299b)][_0x2e0bff(0x1680)]():_0x5b1a02['agi'][_0x2e0bff(0x22e1)][_0x2e0bff(0x1680)]()){case _0x2e0bff(0x197c):break;case'dialogflow':{const _0x46adb9=_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x28df)][_0x2e0bff(0xbe1)](',');_0x5b1a02['agi'][_0x2e0bff(0xee8)]=_0x46adb9[0x0],_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x12b4)]=_0x46adb9[0x1],_0x5b1a02['agi'][_0x2e0bff(0x173a)]=_0x46adb9['slice'](0x2,_0x46adb9['length'])[_0x2e0bff(0x1f66)](',');}break;case _0x2e0bff(0xece):{const _0x5c80df=_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x28df)][_0x2e0bff(0xbe1)](',');_0x5b1a02[_0x2e0bff(0x4b4)]['projectId']=_0x5c80df[0x0],_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x12bf)]=_0x5c80df[0x1],_0x5b1a02['agi'][_0x2e0bff(0x29d6)]=_0x5c80df[0x2],_0x5b1a02['agi'][_0x2e0bff(0x12b4)]=_0x5c80df[0x3],_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x173a)]=_0x5c80df[_0x2e0bff(0x14cb)](0x4,_0x5c80df[_0x2e0bff(0xfd0)])[_0x2e0bff(0x1f66)](',');}break;case _0x2e0bff(0x123a):{const _0x1b923f=_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x28df)][_0x2e0bff(0xbe1)](',');_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x413)]=_0x1b923f[0x0],_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x21d9)]=_0x1b923f[0x1],_0x5b1a02[_0x2e0bff(0x4b4)]['lexregion']=_0x1b923f[0x2],_0x5b1a02['agi'][_0x2e0bff(0x1c7f)]=_0x1b923f[0x3],_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x173a)]=_0x1b923f[_0x2e0bff(0x14cb)](0x4,_0x1b923f[_0x2e0bff(0xfd0)])['join'](',');}break;case'autoreply':{const _0x2e2d02=_0x5b1a02['agi']['appdata'][_0x2e0bff(0xbe1)](',');_0x5b1a02[_0x2e0bff(0x4b4)]['times']=isNaN(_0x2e2d02[0x0])?_0x2e2d02[0x0]:parseInt(_0x2e2d02[0x0],0xa),_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x19d3)]=_0x2e2d02[_0x2e0bff(0x14cb)](0x1,_0x2e2d02['length'])['join'](',');}break;case'message':_0x5b1a02[_0x2e0bff(0x4b4)]['text']=_0x5b1a02[_0x2e0bff(0x4b4)]['appdata'];break;case'set':_0x5b1a02[_0x2e0bff(0x4b4)]['name']=_0x5b1a02['agi'][_0x2e0bff(0x28df)]['split']('=')[0x0],_0x5b1a02['agi'][_0x2e0bff(0x327)]=_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x28df)][_0x2e0bff(0xbe1)]('=')[0x1];break;case'agi':_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x12a7)]=_0x5b1a02['agi'][_0x2e0bff(0x28df)];break;default:{const _0x1e53b8=_0x5b1a02[_0x2e0bff(0x4b4)]['appdata'][_0x2e0bff(0xbe1)](',');_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x12a7)]=_0x39641b()[_0x2e0bff(0xce9)](_0x1e53b8[0x0])?_0x1e53b8[0x0]:isNaN(_0x1e53b8[0x0])?_0x1e53b8[0x0]:parseInt(_0x1e53b8[0x0],0xa);}break;}else{}_0x5b1a02['agi'][_0x2e0bff(0x66a)]&&_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x66a)][_0x2e0bff(0x1680)]()===_0x2e0bff(0x895)&&_0x5b1a02[_0x2e0bff(0x4b4)]['appType'][_0x2e0bff(0x1680)]()==='outbounddial'&&(_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x586)]=_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x1340)]?_0x5b1a02[_0x2e0bff(0x4b4)]['phone'][_0x2e0bff(0xbe1)]('$')[0x0]:undefined,_0x5b1a02['agi'][_0x2e0bff(0x1e7c)]=_0x5b1a02['agi']['callerID']?_0x2e0bff(0x25f9)+_0x5b1a02[_0x2e0bff(0x4b4)][_0x2e0bff(0x2816)]:undefined);_0x5b1a02[_0x2e0bff(0xb3b)]=_0x55829c,_0x5b1a02[_0x2e0bff(0xda0)]=_0x5a1822,_0x3467db['hasRole'](_0x2e0bff(0x1c60))?_0x45a921[_0x2e0bff(0xf61)][_0x2e0bff(0xbf7)]({'fields':_0x2e0bff(0x43c),'sort':_0x2e0bff(0x16b6),'nolimit':_0x2e0bff(0x44d)})[_0x2e0bff(0x1d77)][_0x2e0bff(0x1cb0)](function(_0x29eaab){const _0x864772=_0x2e0bff;_0x5b1a02[_0x864772(0x2981)]=_0x29eaab[_0x864772(0x2214)]||[];})[_0x2e0bff(0x1c4)](function(_0x5425d1){const _0x50ff1a=_0x2e0bff;_0x4e172b['error']({'title':_0x5425d1[_0x50ff1a(0x291)]?'API:'+_0x5425d1['status']+_0x50ff1a(0x1657)+_0x5425d1[_0x50ff1a(0xc22)]:_0x50ff1a(0x214c),'msg':_0x5425d1['data']?JSON[_0x50ff1a(0x2701)](_0x5425d1[_0x50ff1a(0x25c)]):_0x5425d1[_0x50ff1a(0x147f)]()});}):_0x45a921[_0x2e0bff(0xf61)][_0x2e0bff(0xbf7)]({'fields':_0x2e0bff(0x43c),'sort':_0x2e0bff(0x16b6),'nolimit':_0x2e0bff(0x44d)})['$promise']['then'](function(_0x4884bf){_0x5b1a02['projects']=_0x4884bf['rows']||[];})[_0x2e0bff(0x1cb0)](function(){const _0x34bd68=_0x2e0bff;return _0x45a921['userProfileSection']['get']({'userProfileId':_0x5b1a02[_0x34bd68(0xe76)][_0x34bd68(0x13c1)],'sectionId':0x44f})['$promise'];})[_0x2e0bff(0x1cb0)](function(_0x24bff0){const _0x4d3413=_0x2e0bff,_0x4628a1=_0x24bff0&&_0x24bff0[_0x4d3413(0x2214)]?_0x24bff0[_0x4d3413(0x2214)][0x0]:null;if(!_0x4628a1){const _0x5e9e57=[];let _0x3d1859=null;_0x5b1a02[_0x4d3413(0x4b4)]&&(_0x3d1859=_0x39641b()[_0x4d3413(0x13b4)](_0x5b1a02[_0x4d3413(0x2981)],{'name':_0x5b1a02[_0x4d3413(0x4b4)][_0x4d3413(0x12a7)]}));for(let _0x172401=0x0;_0x172401<_0x5b1a02[_0x4d3413(0x2981)][_0x4d3413(0xfd0)];_0x172401++){_0x3d1859&&_0x5b1a02[_0x4d3413(0x2981)][_0x172401]['id']===_0x3d1859['id']&&(_0x5b1a02[_0x4d3413(0x2981)][_0x172401]['canSelect']=![],_0x5e9e57['push'](_0x5b1a02[_0x4d3413(0x2981)][_0x172401]));}_0x5b1a02[_0x4d3413(0x2981)]=_0x5e9e57;}else{if(!_0x4628a1[_0x4d3413(0x12f4)])return _0x45a921['userProfileResource'][_0x4d3413(0xbf7)]({'sectionId':_0x4628a1['id']})[_0x4d3413(0x1d77)][_0x4d3413(0x1cb0)](function(_0xbc6e7b){const _0x2cad8f=_0x4d3413,_0x151c7b=_0x39641b()[_0x2cad8f(0x1de2)](_0xbc6e7b[_0x2cad8f(0x2214)],function(_0x216707){const _0x3a6bbe=_0x2cad8f;return _0x39641b()[_0x3a6bbe(0x13b4)](_0x5b1a02[_0x3a6bbe(0x2981)],{'id':_0x216707['resourceId']});});let _0x528e86=null;_0x5b1a02[_0x2cad8f(0x4b4)]&&(_0x528e86=_0x39641b()[_0x2cad8f(0x13b4)](_0x5b1a02['projects'],{'name':_0x5b1a02[_0x2cad8f(0x4b4)]['project']}));if(_0x528e86&&!_0x39641b()[_0x2cad8f(0x727)](_0x151c7b,['id',_0x528e86['id']])){const _0x32dc68=_0x39641b()[_0x2cad8f(0x13b4)](_0x5b1a02[_0x2cad8f(0x2981)],{'id':_0x528e86['id']});_0x32dc68[_0x2cad8f(0x15da)]=![],_0x151c7b[_0x2cad8f(0x2785)](_0x32dc68);}_0x5b1a02['projects']=_0x151c7b;});}})[_0x2e0bff(0x1c4)](function(_0x41c953){const _0x411ea9=_0x2e0bff;_0x4e172b[_0x411ea9(0x218e)]({'title':_0x41c953['status']?_0x411ea9(0xeb9)+_0x41c953[_0x411ea9(0x291)]+_0x411ea9(0x1657)+_0x41c953[_0x411ea9(0xc22)]:'SYSTEM:GETprojects','msg':_0x41c953[_0x411ea9(0x25c)]?JSON[_0x411ea9(0x2701)](_0x41c953[_0x411ea9(0x25c)]):_0x41c953[_0x411ea9(0x147f)]()});});function _0x55829c(){const _0x4f6056=_0x2e0bff;_0x5b1a02['errors']=[];const _0x48df58=[];_0x5b1a02[_0x4f6056(0x4b4)][_0x4f6056(0x66a)]&&_0x5b1a02[_0x4f6056(0x4b4)][_0x4f6056(0x66a)][_0x4f6056(0x1680)]()===_0x4f6056(0x895)&&_0x5b1a02['agi'][_0x4f6056(0x299b)]===_0x4f6056(0x25f4)&&(_0x5b1a02[_0x4f6056(0x4b4)][_0x4f6056(0x1340)]=_0x4b4151['cutdigits']?(_0x5b1a02['agi'][_0x4f6056(0x586)]||'')+_0x4f6056(0x19e4)+_0x4b4151[_0x4f6056(0x325)]+'}':(_0x5b1a02[_0x4f6056(0x4b4)][_0x4f6056(0x586)]||'')+_0x4f6056(0xcdd),_0x4b4151[_0x4f6056(0xf8d)]!=='none'?_0x5b1a02[_0x4f6056(0x4b4)][_0x4f6056(0x2224)]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x5b1a02[_0x4f6056(0x4b4)][_0x4f6056(0x2224)]+=_0x4f6056(0x106a)):_0x5b1a02[_0x4f6056(0x4b4)]['options']=_0x5b1a02[_0x4f6056(0x4b4)][_0x4f6056(0x2224)]['replace'](_0x4f6056(0x106a),''));if(_0x5b1a02[_0x4f6056(0x4b4)][_0x4f6056(0x299b)]&&_0x5b1a02[_0x4f6056(0x4b4)][_0x4f6056(0x299b)]===_0x4f6056(0x197c)){}else switch((_0x5b1a02[_0x4f6056(0x4b4)][_0x4f6056(0x22e1)]||_0x5b1a02[_0x4f6056(0x4b4)]['appType'])[_0x4f6056(0x1680)]()){case _0x4f6056(0x19d1):_0x5b1a02[_0x4f6056(0x4b4)][_0x4f6056(0x28df)]=_0x5b1a02[_0x4f6056(0x4b4)][_0x4f6056(0x16b6)]+'='+_0x5b1a02[_0x4f6056(0x4b4)][_0x4f6056(0x327)];break;case _0x4f6056(0x197c):break;default:_0x48df58[0x0]=_0x5b1a02[_0x4f6056(0x4b4)]['project'],_0x5b1a02[_0x4f6056(0x4b4)][_0x4f6056(0x28df)]=_0x48df58[_0x4f6056(0x1f66)](',');}_0x5a1822(_0x5b1a02[_0x4f6056(0x4b4)]);}function _0x5a1822(_0x3c4b6d){_0x39f2f9['hide'](_0x3c4b6d);}}const _0x52bf91=_0x48da8f;;_0x2b480e[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x23b1),_0x5537c6(0x3af),_0x5537c6(0x142b),'Auth','crudPermissions'];function _0x2b480e(_0x15b988,_0x43dcd1,_0x4cbe83,_0x43517e,_0x4dac6a,_0x45afcf,_0x350b86,_0x88c412){const _0x28fb2c=_0x5537c6,_0x101ea8=this;_0x101ea8[_0x28fb2c(0xe76)]=_0x350b86[_0x28fb2c(0x21e8)](),_0x101ea8[_0x28fb2c(0x1a7c)]=[],_0x101ea8[_0x28fb2c(0x1386)]=_0x28fb2c(0x132b)+(_0x43517e[_0x28fb2c(0x299b)]||_0x43517e[_0x28fb2c(0x22e1)])[_0x28fb2c(0x2335)](),_0x101ea8[_0x28fb2c(0x197c)]=angular['copy'](_0x43517e),_0x101ea8[_0x28fb2c(0x1b1a)]=_0x88c412,_0x101ea8['hasModulePermissions']={};if(_0x101ea8['custom'][_0x28fb2c(0x28df)])switch(_0x101ea8['custom']['appType']?_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x299b)]['toLowerCase']():_0x101ea8[_0x28fb2c(0x197c)]['app'][_0x28fb2c(0x1680)]()){case'custom':break;case _0x28fb2c(0x711):{const _0x3a0655=_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x28df)]['split'](',');_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0xee8)]=_0x3a0655[0x0],_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x12b4)]=_0x3a0655[0x1],_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x173a)]=_0x3a0655['slice'](0x2,_0x3a0655['length'])[_0x28fb2c(0x1f66)](',');}break;case _0x28fb2c(0xece):{const _0x2e573d=_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x28df)][_0x28fb2c(0xbe1)](',');_0x101ea8['custom']['projectId']=_0x2e573d[0x0],_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x12bf)]=_0x2e573d[0x1],_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x29d6)]=_0x2e573d[0x2],_0x101ea8['custom'][_0x28fb2c(0x12b4)]=_0x2e573d[0x3],_0x101ea8[_0x28fb2c(0x197c)]['welcomemessage']=_0x2e573d[_0x28fb2c(0x14cb)](0x4,_0x2e573d[_0x28fb2c(0xfd0)])[_0x28fb2c(0x1f66)](',');}break;case _0x28fb2c(0x123a):{const _0x52ca04=_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x28df)]['split'](',');_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x413)]=_0x52ca04[0x0],_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x21d9)]=_0x52ca04[0x1],_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0xd50)]=_0x52ca04[0x2],_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x1c7f)]=_0x52ca04[0x3],_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x173a)]=_0x52ca04['slice'](0x4,_0x52ca04[_0x28fb2c(0xfd0)])[_0x28fb2c(0x1f66)](',');}break;case _0x28fb2c(0x1f71):{const _0x18d8a2=_0x101ea8['custom'][_0x28fb2c(0x28df)][_0x28fb2c(0xbe1)](',');_0x101ea8[_0x28fb2c(0x197c)]['times']=isNaN(_0x18d8a2[0x0])?_0x18d8a2[0x0]:parseInt(_0x18d8a2[0x0],0xa),_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x19d3)]=_0x18d8a2['slice'](0x1,_0x18d8a2[_0x28fb2c(0xfd0)])[_0x28fb2c(0x1f66)](',');}break;case _0x28fb2c(0x155e):_0x101ea8[_0x28fb2c(0x197c)]['text']=_0x101ea8['custom']['appdata'];break;case _0x28fb2c(0x19d1):_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x16b6)]=_0x101ea8[_0x28fb2c(0x197c)]['appdata']['split']('=')[0x0],_0x101ea8['custom']['value']=_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x28df)][_0x28fb2c(0xbe1)]('=')[0x1];break;case'agi':_0x101ea8['custom']['project']=_0x101ea8['custom'][_0x28fb2c(0x28df)];break;default:{const _0x17ebec=_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x28df)][_0x28fb2c(0xbe1)](',');_0x101ea8['custom'][_0x28fb2c(0x22e1)]=_0x39641b()[_0x28fb2c(0xce9)](_0x17ebec[0x0])?_0x17ebec[0x0]:isNaN(_0x17ebec[0x0])?_0x17ebec[0x0]:parseInt(_0x17ebec[0x0],0xa),_0x101ea8['custom'][_0x28fb2c(0x28df)]=_0x39641b()[_0x28fb2c(0xce9)](_0x17ebec[0x1])?_0x17ebec[0x1]:isNaN(_0x17ebec[0x1])?_0x17ebec[0x1]:parseInt(_0x17ebec[0x1],0xa);}break;}else{}_0x101ea8[_0x28fb2c(0x197c)]['type']&&_0x101ea8[_0x28fb2c(0x197c)]['type'][_0x28fb2c(0x1680)]()===_0x28fb2c(0x895)&&_0x101ea8['custom'][_0x28fb2c(0x299b)][_0x28fb2c(0x1680)]()===_0x28fb2c(0x20ff)&&(_0x101ea8['custom'][_0x28fb2c(0x586)]=_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x1340)]?_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x1340)][_0x28fb2c(0xbe1)]('$')[0x0]:undefined,_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x1e7c)]=_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x2816)]?_0x28fb2c(0x25f9)+_0x101ea8[_0x28fb2c(0x197c)][_0x28fb2c(0x2816)]:undefined);_0x101ea8[_0x28fb2c(0xb3b)]=_0x3fcee6,_0x101ea8[_0x28fb2c(0xda0)]=_0x421d6a;function _0x3fcee6(){const _0x222e4d=_0x28fb2c;_0x101ea8['errors']=[];const _0x425ddf=[];_0x101ea8[_0x222e4d(0x197c)]['type']&&_0x101ea8['custom'][_0x222e4d(0x66a)][_0x222e4d(0x1680)]()===_0x222e4d(0x895)&&_0x101ea8[_0x222e4d(0x197c)][_0x222e4d(0x299b)]==='outboundDial'&&(_0x101ea8[_0x222e4d(0x197c)][_0x222e4d(0x1340)]=_0x4dac6a['cutdigits']?(_0x101ea8['custom'][_0x222e4d(0x586)]||'')+_0x222e4d(0x19e4)+_0x4dac6a['cutdigits']+'}':(_0x101ea8[_0x222e4d(0x197c)][_0x222e4d(0x586)]||'')+_0x222e4d(0xcdd),_0x4dac6a[_0x222e4d(0xf8d)]!==_0x222e4d(0x13b1)?_0x101ea8[_0x222e4d(0x197c)]['options']['indexOf'](_0x222e4d(0x106a))<0x0&&(_0x101ea8['custom'][_0x222e4d(0x2224)]+='U(xcally-mixmonitor-context)'):_0x101ea8[_0x222e4d(0x197c)][_0x222e4d(0x2224)]=_0x101ea8[_0x222e4d(0x197c)][_0x222e4d(0x2224)]['replace'](_0x222e4d(0x106a),''));if(_0x101ea8['custom']['appType']&&_0x101ea8[_0x222e4d(0x197c)]['appType']==='custom'){}else switch((_0x101ea8[_0x222e4d(0x197c)][_0x222e4d(0x22e1)]||_0x101ea8[_0x222e4d(0x197c)][_0x222e4d(0x299b)])['toLowerCase']()){case _0x222e4d(0x19d1):_0x101ea8[_0x222e4d(0x197c)]['appdata']=_0x101ea8[_0x222e4d(0x197c)][_0x222e4d(0x16b6)]+'='+_0x101ea8['custom'][_0x222e4d(0x327)];break;case _0x222e4d(0x197c):break;default:_0x425ddf[0x0]=_0x101ea8['custom'][_0x222e4d(0x22e1)],_0x425ddf[0x1]=_0x101ea8[_0x222e4d(0x197c)]['appdata'],_0x101ea8[_0x222e4d(0x197c)][_0x222e4d(0x28df)]=_0x425ddf[_0x222e4d(0x1f66)](',');}_0x421d6a(_0x101ea8[_0x222e4d(0x197c)]);}function _0x421d6a(_0x3b3c3e){const _0x24a14a=_0x28fb2c;_0x15b988[_0x24a14a(0x1426)](_0x3b3c3e);}}const _0x33af41=_0x2b480e;;_0x534edd[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x23b1),'internalroute',_0x5537c6(0x142b),'Auth',_0x5537c6(0x1b1a)];function _0x534edd(_0x51febc,_0xd9a8a5,_0x418027,_0xa7ac8f,_0x10ac4c,_0x4b8a27,_0x48a5ab,_0x542942){const _0x466b2f=_0x5537c6,_0x8a283f=this;_0x8a283f['currentUser']=_0x48a5ab['getCurrentUser'](),_0x8a283f['errors']=[],_0x8a283f['title']=_0x466b2f(0x132b)+(_0xa7ac8f['appType']||_0xa7ac8f[_0x466b2f(0x22e1)])[_0x466b2f(0x2335)](),_0x8a283f[_0x466b2f(0xdd8)]=angular['copy'](_0xa7ac8f),_0x8a283f[_0x466b2f(0x1b1a)]=_0x542942,_0x8a283f[_0x466b2f(0xf4c)]={};if(_0x8a283f[_0x466b2f(0xdd8)]['appdata'])switch(_0x8a283f['dial'][_0x466b2f(0x299b)]?_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x299b)][_0x466b2f(0x1680)]():_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x22e1)]['toLowerCase']()){case _0x466b2f(0x197c):break;case'dialogflow':{const _0x449999=_0x8a283f['dial']['appdata']['split'](',');_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0xee8)]=_0x449999[0x0],_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x12b4)]=_0x449999[0x1],_0x8a283f['dial'][_0x466b2f(0x173a)]=_0x449999[_0x466b2f(0x14cb)](0x2,_0x449999['length'])[_0x466b2f(0x1f66)](',');}break;case'dialogflowv2':{const _0x3d6f11=_0x8a283f[_0x466b2f(0xdd8)]['appdata'][_0x466b2f(0xbe1)](',');_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x2854)]=_0x3d6f11[0x0],_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x12bf)]=_0x3d6f11[0x1],_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x29d6)]=_0x3d6f11[0x2],_0x8a283f[_0x466b2f(0xdd8)]['language']=_0x3d6f11[0x3],_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x173a)]=_0x3d6f11[_0x466b2f(0x14cb)](0x4,_0x3d6f11['length'])['join'](',');}break;case'amazonlex':{const _0x57a46a=_0x8a283f[_0x466b2f(0xdd8)]['appdata'][_0x466b2f(0xbe1)](',');_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x413)]=_0x57a46a[0x0],_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x21d9)]=_0x57a46a[0x1],_0x8a283f[_0x466b2f(0xdd8)]['lexregion']=_0x57a46a[0x2],_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x1c7f)]=_0x57a46a[0x3],_0x8a283f[_0x466b2f(0xdd8)]['welcomemessage']=_0x57a46a[_0x466b2f(0x14cb)](0x4,_0x57a46a[_0x466b2f(0xfd0)])[_0x466b2f(0x1f66)](',');}break;case _0x466b2f(0x1f71):{const _0x503068=_0x8a283f[_0x466b2f(0xdd8)]['appdata'][_0x466b2f(0xbe1)](',');_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x18a5)]=isNaN(_0x503068[0x0])?_0x503068[0x0]:parseInt(_0x503068[0x0],0xa),_0x8a283f['dial'][_0x466b2f(0x19d3)]=_0x503068['slice'](0x1,_0x503068[_0x466b2f(0xfd0)])[_0x466b2f(0x1f66)](',');}break;case _0x466b2f(0x155e):_0x8a283f['dial']['text']=_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x28df)];break;case _0x466b2f(0x19d1):_0x8a283f['dial'][_0x466b2f(0x16b6)]=_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x28df)][_0x466b2f(0xbe1)]('=')[0x0],_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x327)]=_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x28df)][_0x466b2f(0xbe1)]('=')[0x1];break;case'agi':_0x8a283f[_0x466b2f(0xdd8)]['project']=_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x28df)];break;default:{const _0x2b9862=_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x28df)]['split'](',');_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x23f2)]=_0x39641b()[_0x466b2f(0xce9)](_0x2b9862[0x0])?_0x2b9862[0x0]:isNaN(_0x2b9862[0x0])?_0x2b9862[0x0]:parseInt(_0x2b9862[0x0],0xa),_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x1719)]=_0x39641b()[_0x466b2f(0xce9)](_0x2b9862[0x1])?_0x2b9862[0x1]:isNaN(_0x2b9862[0x1])?_0x2b9862[0x1]:parseInt(_0x2b9862[0x1],0xa),_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x2224)]=_0x39641b()[_0x466b2f(0xce9)](_0x2b9862[0x2])?_0x2b9862[0x2]:isNaN(_0x2b9862[0x2])?_0x2b9862[0x2]:parseInt(_0x2b9862[0x2],0xa),_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x135b)]=_0x39641b()[_0x466b2f(0xce9)](_0x2b9862[0x3])?_0x2b9862[0x3]:isNaN(_0x2b9862[0x3])?_0x2b9862[0x3]:parseInt(_0x2b9862[0x3],0xa);}break;}else{}_0x8a283f['dial'][_0x466b2f(0x66a)]&&_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x66a)][_0x466b2f(0x1680)]()===_0x466b2f(0x895)&&_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x299b)][_0x466b2f(0x1680)]()===_0x466b2f(0x20ff)&&(_0x8a283f[_0x466b2f(0xdd8)]['prefix']=_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x1340)]?_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x1340)][_0x466b2f(0xbe1)]('$')[0x0]:undefined,_0x8a283f['dial'][_0x466b2f(0x1e7c)]=_0x8a283f[_0x466b2f(0xdd8)][_0x466b2f(0x2816)]?_0x466b2f(0x25f9)+_0x8a283f[_0x466b2f(0xdd8)]['callerID']:undefined);_0x8a283f[_0x466b2f(0xb3b)]=_0x4d5d33,_0x8a283f[_0x466b2f(0xda0)]=_0xe582cc;function _0x4d5d33(){const _0x1a6659=_0x466b2f;_0x8a283f[_0x1a6659(0x1a7c)]=[];const _0x51c803=[];_0x8a283f[_0x1a6659(0xdd8)][_0x1a6659(0x66a)]&&_0x8a283f[_0x1a6659(0xdd8)]['type'][_0x1a6659(0x1680)]()===_0x1a6659(0x895)&&_0x8a283f[_0x1a6659(0xdd8)][_0x1a6659(0x299b)]===_0x1a6659(0x25f4)&&(_0x8a283f['dial']['phone']=_0x10ac4c[_0x1a6659(0x325)]?(_0x8a283f[_0x1a6659(0xdd8)][_0x1a6659(0x586)]||'')+_0x1a6659(0x19e4)+_0x10ac4c['cutdigits']+'}':(_0x8a283f[_0x1a6659(0xdd8)][_0x1a6659(0x586)]||'')+_0x1a6659(0xcdd),_0x10ac4c[_0x1a6659(0xf8d)]!==_0x1a6659(0x13b1)?_0x8a283f['dial'][_0x1a6659(0x2224)][_0x1a6659(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0x8a283f[_0x1a6659(0xdd8)][_0x1a6659(0x2224)]+=_0x1a6659(0x106a)):_0x8a283f[_0x1a6659(0xdd8)][_0x1a6659(0x2224)]=_0x8a283f['dial'][_0x1a6659(0x2224)][_0x1a6659(0x288f)]('U(xcally-mixmonitor-context)',''));if(_0x8a283f['dial']['appType']&&_0x8a283f[_0x1a6659(0xdd8)][_0x1a6659(0x299b)]===_0x1a6659(0x197c)){}else switch((_0x8a283f[_0x1a6659(0xdd8)][_0x1a6659(0x22e1)]||_0x8a283f[_0x1a6659(0xdd8)]['appType'])[_0x1a6659(0x1680)]()){case _0x1a6659(0x19d1):_0x8a283f['dial'][_0x1a6659(0x28df)]=_0x8a283f[_0x1a6659(0xdd8)][_0x1a6659(0x16b6)]+'='+_0x8a283f[_0x1a6659(0xdd8)][_0x1a6659(0x327)];break;case'custom':break;default:_0x51c803[0x0]=_0x8a283f[_0x1a6659(0xdd8)][_0x1a6659(0x23f2)],_0x51c803[0x1]=_0x8a283f[_0x1a6659(0xdd8)]['timeout'],_0x51c803[0x2]=_0x8a283f[_0x1a6659(0xdd8)][_0x1a6659(0x2224)],_0x51c803[0x3]=_0x8a283f[_0x1a6659(0xdd8)][_0x1a6659(0x135b)],_0x8a283f['dial'][_0x1a6659(0x28df)]=_0x51c803[_0x1a6659(0x1f66)](',');}_0xe582cc(_0x8a283f[_0x1a6659(0xdd8)]);}function _0xe582cc(_0x4d5b16){const _0x4739e5=_0x466b2f;_0x51febc[_0x4739e5(0x1426)](_0x4d5b16);}}const _0x1eff40=_0x534edd;;_0x343c13['$inject']=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x23b1),_0x5537c6(0x3af),_0x5537c6(0x142b),'Auth',_0x5537c6(0x1b1a)];function _0x343c13(_0x146d45,_0xb70b78,_0x13e451,_0x19129b,_0x5ac542,_0x1af000,_0x3adc50,_0x4bb983){const _0x4a8a0d=_0x5537c6,_0x2368e3=this;_0x2368e3[_0x4a8a0d(0xe76)]=_0x3adc50[_0x4a8a0d(0x21e8)](),_0x2368e3[_0x4a8a0d(0x1a7c)]=[],_0x2368e3['title']=_0x4a8a0d(0x132b)+(_0x19129b[_0x4a8a0d(0x299b)]||_0x19129b[_0x4a8a0d(0x22e1)])[_0x4a8a0d(0x2335)](),_0x2368e3[_0x4a8a0d(0x748)]=angular['copy'](_0x19129b),_0x2368e3[_0x4a8a0d(0x1b1a)]=_0x4bb983,_0x2368e3[_0x4a8a0d(0xf4c)]={};if(_0x2368e3['externaldial'][_0x4a8a0d(0x28df)])switch(_0x2368e3['externaldial'][_0x4a8a0d(0x299b)]?_0x2368e3[_0x4a8a0d(0x748)]['appType'][_0x4a8a0d(0x1680)]():_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x22e1)][_0x4a8a0d(0x1680)]()){case _0x4a8a0d(0x197c):break;case _0x4a8a0d(0x711):{const _0x50fb12=_0x2368e3[_0x4a8a0d(0x748)]['appdata'][_0x4a8a0d(0xbe1)](',');_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0xee8)]=_0x50fb12[0x0],_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x12b4)]=_0x50fb12[0x1],_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x173a)]=_0x50fb12[_0x4a8a0d(0x14cb)](0x2,_0x50fb12[_0x4a8a0d(0xfd0)])[_0x4a8a0d(0x1f66)](',');}break;case _0x4a8a0d(0xece):{const _0x36c8f2=_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x28df)]['split'](',');_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x2854)]=_0x36c8f2[0x0],_0x2368e3[_0x4a8a0d(0x748)]['clientEmail']=_0x36c8f2[0x1],_0x2368e3[_0x4a8a0d(0x748)]['privateKey']=_0x36c8f2[0x2],_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x12b4)]=_0x36c8f2[0x3],_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x173a)]=_0x36c8f2[_0x4a8a0d(0x14cb)](0x4,_0x36c8f2[_0x4a8a0d(0xfd0)])[_0x4a8a0d(0x1f66)](',');}break;case _0x4a8a0d(0x123a):{const _0x2f9c0f=_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x28df)][_0x4a8a0d(0xbe1)](',');_0x2368e3[_0x4a8a0d(0x748)]['accesskeyid']=_0x2f9c0f[0x0],_0x2368e3['externaldial']['secretaccesskey']=_0x2f9c0f[0x1],_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0xd50)]=_0x2f9c0f[0x2],_0x2368e3['externaldial'][_0x4a8a0d(0x1c7f)]=_0x2f9c0f[0x3],_0x2368e3['externaldial'][_0x4a8a0d(0x173a)]=_0x2f9c0f['slice'](0x4,_0x2f9c0f['length'])[_0x4a8a0d(0x1f66)](',');}break;case _0x4a8a0d(0x1f71):{const _0x6ba52f=_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x28df)][_0x4a8a0d(0xbe1)](',');_0x2368e3['externaldial'][_0x4a8a0d(0x18a5)]=isNaN(_0x6ba52f[0x0])?_0x6ba52f[0x0]:parseInt(_0x6ba52f[0x0],0xa),_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x19d3)]=_0x6ba52f['slice'](0x1,_0x6ba52f[_0x4a8a0d(0xfd0)])['join'](',');}break;case _0x4a8a0d(0x155e):_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x19d3)]=_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x28df)];break;case'set':_0x2368e3['externaldial'][_0x4a8a0d(0x16b6)]=_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x28df)][_0x4a8a0d(0xbe1)]('=')[0x0],_0x2368e3[_0x4a8a0d(0x748)]['value']=_0x2368e3['externaldial'][_0x4a8a0d(0x28df)][_0x4a8a0d(0xbe1)]('=')[0x1];break;case _0x4a8a0d(0x4b4):_0x2368e3['externaldial'][_0x4a8a0d(0x12a7)]=_0x2368e3[_0x4a8a0d(0x748)]['appdata'];break;default:{const _0x3b326b=_0x2368e3['externaldial'][_0x4a8a0d(0x28df)][_0x4a8a0d(0xbe1)](',');_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x1ae0)]=_0x3b326b[0x0][_0x4a8a0d(0xbe1)]('/')[0x1],_0x2368e3[_0x4a8a0d(0x748)]['phone']=_0x3b326b[0x0][_0x4a8a0d(0xbe1)]('/')[0x2],_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x1719)]=_0x39641b()[_0x4a8a0d(0xce9)](_0x3b326b[0x1])?_0x3b326b[0x1]:isNaN(_0x3b326b[0x1])?_0x3b326b[0x1]:parseInt(_0x3b326b[0x1],0xa),_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x2224)]=_0x39641b()[_0x4a8a0d(0xce9)](_0x3b326b[0x2])?_0x3b326b[0x2]:isNaN(_0x3b326b[0x2])?_0x3b326b[0x2]:parseInt(_0x3b326b[0x2],0xa),_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x135b)]=_0x39641b()[_0x4a8a0d(0xce9)](_0x3b326b[0x3])?_0x3b326b[0x3]:isNaN(_0x3b326b[0x3])?_0x3b326b[0x3]:parseInt(_0x3b326b[0x3],0xa);}break;}else{}_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x66a)]&&_0x2368e3[_0x4a8a0d(0x748)]['type'][_0x4a8a0d(0x1680)]()===_0x4a8a0d(0x895)&&_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x299b)]['toLowerCase']()==='outbounddial'&&(_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x586)]=_0x2368e3[_0x4a8a0d(0x748)]['phone']?_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x1340)][_0x4a8a0d(0xbe1)]('$')[0x0]:undefined,_0x2368e3[_0x4a8a0d(0x748)][_0x4a8a0d(0x1e7c)]=_0x2368e3['externaldial'][_0x4a8a0d(0x2816)]?_0x4a8a0d(0x25f9)+_0x2368e3[_0x4a8a0d(0x748)]['callerID']:undefined);_0x2368e3[_0x4a8a0d(0xb3b)]=_0x1f8e5f,_0x2368e3[_0x4a8a0d(0xda0)]=_0x5eb51c,_0x3adc50[_0x4a8a0d(0x22b6)]('admin')?_0x1af000[_0x4a8a0d(0x1ae0)]['get']({'fields':_0x4a8a0d(0x43c),'sort':_0x4a8a0d(0x16b6),'nolimit':_0x4a8a0d(0x44d)})[_0x4a8a0d(0x1d77)][_0x4a8a0d(0x1cb0)](function(_0x3eea73){const _0xbb6d3b=_0x4a8a0d;_0x2368e3[_0xbb6d3b(0x1363)]=_0x3eea73[_0xbb6d3b(0x2214)]||[];})['catch'](function(_0x43e0ad){const _0x5b6458=_0x4a8a0d;_0x13e451[_0x5b6458(0x218e)]({'title':_0x43e0ad[_0x5b6458(0x291)]?_0x5b6458(0xeb9)+_0x43e0ad['status']+_0x5b6458(0x1657)+_0x43e0ad[_0x5b6458(0xc22)]:_0x5b6458(0x14fc),'msg':_0x43e0ad[_0x5b6458(0x25c)]?JSON[_0x5b6458(0x2701)](_0x43e0ad[_0x5b6458(0x25c)]):_0x43e0ad[_0x5b6458(0x147f)]()});}):_0x1af000[_0x4a8a0d(0x1ae0)][_0x4a8a0d(0xbf7)]({'fields':'id,name','sort':_0x4a8a0d(0x16b6),'nolimit':_0x4a8a0d(0x44d)})['$promise'][_0x4a8a0d(0x1cb0)](function(_0x16c832){const _0x25d858=_0x4a8a0d;_0x2368e3['trunks']=_0x16c832[_0x25d858(0x2214)]||[];})[_0x4a8a0d(0x1cb0)](function(){const _0x182ef8=_0x4a8a0d;return _0x1af000[_0x182ef8(0x2199)][_0x182ef8(0xbf7)]({'userProfileId':_0x2368e3[_0x182ef8(0xe76)][_0x182ef8(0x13c1)],'sectionId':0x3f3})[_0x182ef8(0x1d77)];})[_0x4a8a0d(0x1cb0)](function(_0x106da8){const _0xcf7e42=_0x4a8a0d,_0x5bc891=_0x106da8&&_0x106da8[_0xcf7e42(0x2214)]?_0x106da8[_0xcf7e42(0x2214)][0x0]:null;if(!_0x5bc891){const _0x43ff96=[];let _0x7a3b58=null;_0x2368e3[_0xcf7e42(0x748)]&&(_0x7a3b58=_0x39641b()[_0xcf7e42(0x13b4)](_0x2368e3[_0xcf7e42(0x1363)],{'name':_0x2368e3[_0xcf7e42(0x748)][_0xcf7e42(0x1ae0)]}));for(let _0x571b3c=0x0;_0x571b3c<_0x2368e3[_0xcf7e42(0x1363)][_0xcf7e42(0xfd0)];_0x571b3c++){_0x7a3b58&&_0x2368e3[_0xcf7e42(0x1363)][_0x571b3c]['id']===_0x7a3b58['id']&&(_0x2368e3[_0xcf7e42(0x1363)][_0x571b3c][_0xcf7e42(0x15da)]=![],_0x43ff96[_0xcf7e42(0x2785)](_0x2368e3[_0xcf7e42(0x1363)][_0x571b3c]));}_0x2368e3[_0xcf7e42(0x1363)]=_0x43ff96;}else{if(!_0x5bc891['autoAssociation'])return _0x1af000[_0xcf7e42(0x1198)][_0xcf7e42(0xbf7)]({'sectionId':_0x5bc891['id']})['$promise']['then'](function(_0x22601b){const _0x4cea2c=_0xcf7e42,_0x28b694=_0x39641b()[_0x4cea2c(0x1de2)](_0x22601b[_0x4cea2c(0x2214)],function(_0xc1299b){const _0x21e955=_0x4cea2c;return _0x39641b()['find'](_0x2368e3[_0x21e955(0x1363)],{'id':_0xc1299b[_0x21e955(0x2982)]});});let _0x140822=null;_0x2368e3[_0x4cea2c(0x748)]&&(_0x140822=_0x39641b()[_0x4cea2c(0x13b4)](_0x2368e3[_0x4cea2c(0x1363)],{'name':_0x2368e3[_0x4cea2c(0x748)][_0x4cea2c(0x1ae0)]}));if(_0x140822&&!_0x39641b()[_0x4cea2c(0x727)](_0x28b694,['id',_0x140822['id']])){const _0x4f231c=_0x39641b()[_0x4cea2c(0x13b4)](_0x2368e3[_0x4cea2c(0x1363)],{'id':_0x140822['id']});_0x4f231c[_0x4cea2c(0x15da)]=![],_0x28b694[_0x4cea2c(0x2785)](_0x4f231c);}_0x2368e3[_0x4cea2c(0x1363)]=_0x28b694;});}})[_0x4a8a0d(0x1c4)](function(_0x56b224){const _0x49ef93=_0x4a8a0d;_0x13e451[_0x49ef93(0x218e)]({'title':_0x56b224[_0x49ef93(0x291)]?'API:'+_0x56b224[_0x49ef93(0x291)]+_0x49ef93(0x1657)+_0x56b224[_0x49ef93(0xc22)]:_0x49ef93(0x2040),'msg':_0x56b224[_0x49ef93(0x25c)]?JSON['stringify'](_0x56b224[_0x49ef93(0x25c)]):_0x56b224[_0x49ef93(0x147f)]()});});function _0x1f8e5f(){const _0x316b08=_0x4a8a0d;_0x2368e3[_0x316b08(0x1a7c)]=[];const _0x5028ad=[];_0x2368e3[_0x316b08(0x748)][_0x316b08(0x66a)]&&_0x2368e3['externaldial']['type'][_0x316b08(0x1680)]()===_0x316b08(0x895)&&_0x2368e3[_0x316b08(0x748)][_0x316b08(0x299b)]===_0x316b08(0x25f4)&&(_0x2368e3['externaldial']['phone']=_0x5ac542[_0x316b08(0x325)]?(_0x2368e3['externaldial'][_0x316b08(0x586)]||'')+_0x316b08(0x19e4)+_0x5ac542[_0x316b08(0x325)]+'}':(_0x2368e3['externaldial'][_0x316b08(0x586)]||'')+_0x316b08(0xcdd),_0x5ac542[_0x316b08(0xf8d)]!==_0x316b08(0x13b1)?_0x2368e3['externaldial'][_0x316b08(0x2224)][_0x316b08(0xd8a)](_0x316b08(0x106a))<0x0&&(_0x2368e3[_0x316b08(0x748)]['options']+='U(xcally-mixmonitor-context)'):_0x2368e3['externaldial'][_0x316b08(0x2224)]=_0x2368e3[_0x316b08(0x748)][_0x316b08(0x2224)][_0x316b08(0x288f)]('U(xcally-mixmonitor-context)',''));if(_0x2368e3[_0x316b08(0x748)]['appType']&&_0x2368e3['externaldial'][_0x316b08(0x299b)]===_0x316b08(0x197c)){}else switch((_0x2368e3[_0x316b08(0x748)][_0x316b08(0x22e1)]||_0x2368e3[_0x316b08(0x748)][_0x316b08(0x299b)])['toLowerCase']()){case _0x316b08(0x19d1):_0x2368e3['externaldial'][_0x316b08(0x28df)]=_0x2368e3[_0x316b08(0x748)][_0x316b08(0x16b6)]+'='+_0x2368e3[_0x316b08(0x748)][_0x316b08(0x327)];break;case _0x316b08(0x197c):break;default:_0x5028ad[0x0]=[_0x316b08(0x2832),_0x2368e3[_0x316b08(0x748)][_0x316b08(0x1ae0)],_0x2368e3[_0x316b08(0x748)][_0x316b08(0x1340)]][_0x316b08(0x1f66)]('/'),_0x5028ad[0x1]=_0x2368e3[_0x316b08(0x748)][_0x316b08(0x1719)],_0x5028ad[0x2]=_0x2368e3[_0x316b08(0x748)][_0x316b08(0x2224)],_0x5028ad[0x3]=_0x2368e3[_0x316b08(0x748)][_0x316b08(0x135b)],_0x2368e3[_0x316b08(0x748)][_0x316b08(0x28df)]=_0x5028ad['join'](',');}_0x5eb51c(_0x2368e3['externaldial']);}function _0x5eb51c(_0x436adf){const _0x23f446=_0x4a8a0d;_0x146d45[_0x23f446(0x1426)](_0x436adf);}}const _0x1d2d24=_0x343c13;;_0x14b7f7[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x23b1),'internalroute',_0x5537c6(0x142b),_0x5537c6(0x1774),'crudPermissions'];function _0x14b7f7(_0x491c47,_0x44dd91,_0x50f22e,_0xe16899,_0xf12fd5,_0x5e70fb,_0x568359,_0x2c7592){const _0x5dcec3=_0x5537c6,_0x1e9197=this;_0x1e9197[_0x5dcec3(0xe76)]=_0x568359[_0x5dcec3(0x21e8)](),_0x1e9197[_0x5dcec3(0x1a7c)]=[],_0x1e9197[_0x5dcec3(0x1386)]='VOICE.EDIT_'+(_0xe16899['appType']||_0xe16899[_0x5dcec3(0x22e1)])['toUpperCase'](),_0x1e9197['goto']=angular['copy'](_0xe16899),_0x1e9197[_0x5dcec3(0x1b1a)]=_0x2c7592,_0x1e9197[_0x5dcec3(0xf4c)]={};if(_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x28df)])switch(_0x1e9197[_0x5dcec3(0x3da)]['appType']?_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x299b)][_0x5dcec3(0x1680)]():_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x22e1)][_0x5dcec3(0x1680)]()){case _0x5dcec3(0x197c):break;case _0x5dcec3(0x711):{const _0x16e787=_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x28df)][_0x5dcec3(0xbe1)](',');_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0xee8)]=_0x16e787[0x0],_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x12b4)]=_0x16e787[0x1],_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x173a)]=_0x16e787['slice'](0x2,_0x16e787['length'])[_0x5dcec3(0x1f66)](',');}break;case _0x5dcec3(0xece):{const _0x8fa1db=_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x28df)]['split'](',');_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x2854)]=_0x8fa1db[0x0],_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x12bf)]=_0x8fa1db[0x1],_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x29d6)]=_0x8fa1db[0x2],_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x12b4)]=_0x8fa1db[0x3],_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x173a)]=_0x8fa1db['slice'](0x4,_0x8fa1db[_0x5dcec3(0xfd0)])[_0x5dcec3(0x1f66)](',');}break;case _0x5dcec3(0x123a):{const _0x1c75d8=_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x28df)][_0x5dcec3(0xbe1)](',');_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x413)]=_0x1c75d8[0x0],_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x21d9)]=_0x1c75d8[0x1],_0x1e9197['goto'][_0x5dcec3(0xd50)]=_0x1c75d8[0x2],_0x1e9197['goto'][_0x5dcec3(0x1c7f)]=_0x1c75d8[0x3],_0x1e9197['goto']['welcomemessage']=_0x1c75d8[_0x5dcec3(0x14cb)](0x4,_0x1c75d8['length'])[_0x5dcec3(0x1f66)](',');}break;case'autoreply':{const _0x3da1c3=_0x1e9197['goto'][_0x5dcec3(0x28df)]['split'](',');_0x1e9197['goto'][_0x5dcec3(0x18a5)]=isNaN(_0x3da1c3[0x0])?_0x3da1c3[0x0]:parseInt(_0x3da1c3[0x0],0xa),_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x19d3)]=_0x3da1c3[_0x5dcec3(0x14cb)](0x1,_0x3da1c3['length'])['join'](',');}break;case'message':_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x19d3)]=_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x28df)];break;case'set':_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x16b6)]=_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x28df)][_0x5dcec3(0xbe1)]('=')[0x0],_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x327)]=_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x28df)][_0x5dcec3(0xbe1)]('=')[0x1];break;case _0x5dcec3(0x4b4):_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x12a7)]=_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x28df)];break;default:{const _0xfd2027=_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x28df)]['split'](',');_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x2056)]=_0x39641b()[_0x5dcec3(0xce9)](_0xfd2027[0x0])?_0xfd2027[0x0]:isNaN(_0xfd2027[0x0])?_0xfd2027[0x0]:parseInt(_0xfd2027[0x0],0xa),_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0xd52)]=_0x39641b()[_0x5dcec3(0xce9)](_0xfd2027[0x1])?_0xfd2027[0x1]:isNaN(_0xfd2027[0x1])?_0xfd2027[0x1]:parseInt(_0xfd2027[0x1],0xa),_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x521)]=_0x39641b()[_0x5dcec3(0xce9)](_0xfd2027[0x2])?_0xfd2027[0x2]:isNaN(_0xfd2027[0x2])?_0xfd2027[0x2]:parseInt(_0xfd2027[0x2],0xa);}break;}else{}_0x1e9197[_0x5dcec3(0x3da)]['type']&&_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x66a)][_0x5dcec3(0x1680)]()===_0x5dcec3(0x895)&&_0x1e9197[_0x5dcec3(0x3da)]['appType'][_0x5dcec3(0x1680)]()===_0x5dcec3(0x20ff)&&(_0x1e9197['goto'][_0x5dcec3(0x586)]=_0x1e9197['goto'][_0x5dcec3(0x1340)]?_0x1e9197[_0x5dcec3(0x3da)][_0x5dcec3(0x1340)][_0x5dcec3(0xbe1)]('$')[0x0]:undefined,_0x1e9197[_0x5dcec3(0x3da)]['callerId']=_0x1e9197[_0x5dcec3(0x3da)]['callerID']?_0x5dcec3(0x25f9)+_0x1e9197[_0x5dcec3(0x3da)]['callerID']:undefined);_0x1e9197[_0x5dcec3(0xb3b)]=_0x4bd80f,_0x1e9197[_0x5dcec3(0xda0)]=_0x13cf62,_0x568359[_0x5dcec3(0x22b6)](_0x5dcec3(0x1c60))?_0x5e70fb[_0x5dcec3(0x1da5)][_0x5dcec3(0xbf7)]({'fields':_0x5dcec3(0x43c),'sort':_0x5dcec3(0x16b6),'nolimit':_0x5dcec3(0x44d)})[_0x5dcec3(0x1d77)][_0x5dcec3(0x1cb0)](function(_0x1ea645){const _0x2105a9=_0x5dcec3;_0x1e9197[_0x2105a9(0x14f6)]=_0x1ea645[_0x2105a9(0x2214)]||[];})[_0x5dcec3(0x1c4)](function(_0x206409){const _0x457694=_0x5dcec3;_0x50f22e[_0x457694(0x218e)]({'title':_0x206409['status']?'API:'+_0x206409[_0x457694(0x291)]+'\x20-\x20'+_0x206409[_0x457694(0xc22)]:_0x457694(0x2072),'msg':_0x206409['data']?JSON['stringify'](_0x206409[_0x457694(0x25c)]):_0x206409[_0x457694(0x147f)]()});}):_0x5e70fb['voiceContext'][_0x5dcec3(0xbf7)]({'fields':_0x5dcec3(0x43c),'sort':_0x5dcec3(0x16b6),'nolimit':'true'})[_0x5dcec3(0x1d77)][_0x5dcec3(0x1cb0)](function(_0x263c38){const _0x54cb29=_0x5dcec3;_0x1e9197[_0x54cb29(0x14f6)]=_0x263c38[_0x54cb29(0x2214)]||[];})['then'](function(){const _0x38149f=_0x5dcec3;return _0x5e70fb[_0x38149f(0x2199)][_0x38149f(0xbf7)]({'userProfileId':_0x1e9197[_0x38149f(0xe76)][_0x38149f(0x13c1)],'sectionId':0x195})['$promise'];})['then'](function(_0xe40e87){const _0x2c157a=_0x5dcec3,_0xc33ce1=_0xe40e87&&_0xe40e87[_0x2c157a(0x2214)]?_0xe40e87[_0x2c157a(0x2214)][0x0]:null;if(!_0xc33ce1)return _0x5e70fb[_0x2c157a(0x1da5)]['get']({'fields':_0x2c157a(0x43c),'sort':'name','nolimit':_0x2c157a(0x44d),'defaultEntry':0x1})[_0x2c157a(0x1d77)][_0x2c157a(0x1cb0)](function(_0x2c50f8){const _0x59a90c=_0x2c157a;_0x1e9197[_0x59a90c(0x14f6)]=_0x2c50f8[_0x59a90c(0x2214)]||[];});else{if(!_0xc33ce1[_0x2c157a(0x12f4)])return _0x5e70fb[_0x2c157a(0x1198)][_0x2c157a(0xbf7)]({'sectionId':_0xc33ce1['id']})[_0x2c157a(0x1d77)][_0x2c157a(0x1cb0)](function(_0x2c331a){const _0x34d2b3=_0x2c157a,_0x4c629e=_0x39641b()['map'](_0x2c331a[_0x34d2b3(0x2214)],function(_0x923184){const _0x300fa0=_0x34d2b3;return _0x39641b()[_0x300fa0(0x13b4)](_0x1e9197[_0x300fa0(0x14f6)],{'id':_0x923184[_0x300fa0(0x2982)]});});let _0x5dde93=null;_0x1e9197['goto']&&(_0x5dde93=_0x39641b()[_0x34d2b3(0x13b4)](_0x1e9197['contexts'],{'name':_0x1e9197[_0x34d2b3(0x3da)]['context']}));if(_0x5dde93&&!_0x39641b()[_0x34d2b3(0x727)](_0x4c629e,['id',_0x5dde93['id']])){const _0x6e1bd1=_0x39641b()[_0x34d2b3(0x13b4)](_0x1e9197[_0x34d2b3(0x14f6)],{'id':_0x5dde93['id']});_0x6e1bd1['canSelect']=![],_0x4c629e[_0x34d2b3(0x2785)](_0x6e1bd1);}_0x1e9197[_0x34d2b3(0x14f6)]=_0x4c629e;});}})['catch'](function(_0x4bef65){const _0x26e6bf=_0x5dcec3;_0x50f22e['error']({'title':_0x4bef65[_0x26e6bf(0x291)]?_0x26e6bf(0xeb9)+_0x4bef65['status']+'\x20-\x20'+_0x4bef65[_0x26e6bf(0xc22)]:_0x26e6bf(0x5ac),'msg':_0x4bef65['data']?JSON[_0x26e6bf(0x2701)](_0x4bef65['data']):_0x4bef65[_0x26e6bf(0x147f)]()});});function _0x4bd80f(){const _0x75a6cf=_0x5dcec3;_0x1e9197[_0x75a6cf(0x1a7c)]=[];const _0x29d069=[];_0x1e9197[_0x75a6cf(0x3da)][_0x75a6cf(0x66a)]&&_0x1e9197[_0x75a6cf(0x3da)][_0x75a6cf(0x66a)]['toLowerCase']()===_0x75a6cf(0x895)&&_0x1e9197[_0x75a6cf(0x3da)][_0x75a6cf(0x299b)]==='outboundDial'&&(_0x1e9197[_0x75a6cf(0x3da)][_0x75a6cf(0x1340)]=_0xf12fd5['cutdigits']?(_0x1e9197[_0x75a6cf(0x3da)][_0x75a6cf(0x586)]||'')+_0x75a6cf(0x19e4)+_0xf12fd5[_0x75a6cf(0x325)]+'}':(_0x1e9197['goto'][_0x75a6cf(0x586)]||'')+'${EXTEN}',_0xf12fd5[_0x75a6cf(0xf8d)]!==_0x75a6cf(0x13b1)?_0x1e9197[_0x75a6cf(0x3da)][_0x75a6cf(0x2224)][_0x75a6cf(0xd8a)](_0x75a6cf(0x106a))<0x0&&(_0x1e9197[_0x75a6cf(0x3da)]['options']+=_0x75a6cf(0x106a)):_0x1e9197[_0x75a6cf(0x3da)][_0x75a6cf(0x2224)]=_0x1e9197[_0x75a6cf(0x3da)][_0x75a6cf(0x2224)][_0x75a6cf(0x288f)](_0x75a6cf(0x106a),''));if(_0x1e9197[_0x75a6cf(0x3da)][_0x75a6cf(0x299b)]&&_0x1e9197[_0x75a6cf(0x3da)][_0x75a6cf(0x299b)]==='custom'){}else switch((_0x1e9197['goto'][_0x75a6cf(0x22e1)]||_0x1e9197[_0x75a6cf(0x3da)][_0x75a6cf(0x299b)])[_0x75a6cf(0x1680)]()){case _0x75a6cf(0x19d1):_0x1e9197['goto'][_0x75a6cf(0x28df)]=_0x1e9197[_0x75a6cf(0x3da)][_0x75a6cf(0x16b6)]+'='+_0x1e9197[_0x75a6cf(0x3da)][_0x75a6cf(0x327)];break;case _0x75a6cf(0x197c):break;default:_0x29d069[0x0]=_0x1e9197[_0x75a6cf(0x3da)][_0x75a6cf(0x2056)],_0x29d069[0x1]=_0x1e9197['goto'][_0x75a6cf(0xd52)],_0x29d069[0x2]=_0x1e9197[_0x75a6cf(0x3da)][_0x75a6cf(0x521)],_0x1e9197[_0x75a6cf(0x3da)][_0x75a6cf(0x28df)]=_0x29d069[_0x75a6cf(0x1f66)](',');}_0x13cf62(_0x1e9197[_0x75a6cf(0x3da)]);}function _0x13cf62(_0x13bc06){const _0x5def1c=_0x5dcec3;_0x491c47[_0x5def1c(0x1426)](_0x13bc06);}}const _0x35eed8=_0x14b7f7;;_0x112564[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x23b1),_0x5537c6(0x3af),_0x5537c6(0x142b),'Auth',_0x5537c6(0x1b1a)];function _0x112564(_0x1d52da,_0x38ea10,_0x24c648,_0x13d118,_0x526d62,_0x4400d4,_0x368462,_0x44a84f){const _0x1f2398=_0x5537c6,_0x44ed02=this;_0x44ed02[_0x1f2398(0xe76)]=_0x368462[_0x1f2398(0x21e8)](),_0x44ed02[_0x1f2398(0x1a7c)]=[],_0x44ed02['title']=_0x1f2398(0x132b)+(_0x13d118[_0x1f2398(0x299b)]||_0x13d118[_0x1f2398(0x22e1)])[_0x1f2398(0x2335)](),_0x44ed02[_0x1f2398(0x15e3)]=angular['copy'](_0x13d118),_0x44ed02[_0x1f2398(0x1b1a)]=_0x44a84f,_0x44ed02['hasModulePermissions']={};if(_0x44ed02[_0x1f2398(0x15e3)]['appdata'])switch(_0x44ed02[_0x1f2398(0x15e3)]['appType']?_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x299b)]['toLowerCase']():_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x22e1)][_0x1f2398(0x1680)]()){case _0x1f2398(0x197c):break;case _0x1f2398(0x711):{const _0x263bb6=_0x44ed02['hangup'][_0x1f2398(0x28df)][_0x1f2398(0xbe1)](',');_0x44ed02[_0x1f2398(0x15e3)]['key']=_0x263bb6[0x0],_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x12b4)]=_0x263bb6[0x1],_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x173a)]=_0x263bb6['slice'](0x2,_0x263bb6['length'])[_0x1f2398(0x1f66)](',');}break;case _0x1f2398(0xece):{const _0x44bf60=_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x28df)]['split'](',');_0x44ed02[_0x1f2398(0x15e3)]['projectId']=_0x44bf60[0x0],_0x44ed02['hangup'][_0x1f2398(0x12bf)]=_0x44bf60[0x1],_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x29d6)]=_0x44bf60[0x2],_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x12b4)]=_0x44bf60[0x3],_0x44ed02['hangup'][_0x1f2398(0x173a)]=_0x44bf60['slice'](0x4,_0x44bf60[_0x1f2398(0xfd0)])[_0x1f2398(0x1f66)](',');}break;case _0x1f2398(0x123a):{const _0x9800fd=_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x28df)][_0x1f2398(0xbe1)](',');_0x44ed02['hangup'][_0x1f2398(0x413)]=_0x9800fd[0x0],_0x44ed02[_0x1f2398(0x15e3)]['secretaccesskey']=_0x9800fd[0x1],_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0xd50)]=_0x9800fd[0x2],_0x44ed02['hangup']['botname']=_0x9800fd[0x3],_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x173a)]=_0x9800fd[_0x1f2398(0x14cb)](0x4,_0x9800fd[_0x1f2398(0xfd0)])[_0x1f2398(0x1f66)](',');}break;case _0x1f2398(0x1f71):{const _0x284212=_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x28df)][_0x1f2398(0xbe1)](',');_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x18a5)]=isNaN(_0x284212[0x0])?_0x284212[0x0]:parseInt(_0x284212[0x0],0xa),_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x19d3)]=_0x284212[_0x1f2398(0x14cb)](0x1,_0x284212['length'])[_0x1f2398(0x1f66)](',');}break;case _0x1f2398(0x155e):_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x19d3)]=_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x28df)];break;case _0x1f2398(0x19d1):_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x16b6)]=_0x44ed02[_0x1f2398(0x15e3)]['appdata'][_0x1f2398(0xbe1)]('=')[0x0],_0x44ed02[_0x1f2398(0x15e3)]['value']=_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x28df)][_0x1f2398(0xbe1)]('=')[0x1];break;case _0x1f2398(0x4b4):_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x12a7)]=_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x28df)];break;default:{const _0x53dbbf=_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x28df)][_0x1f2398(0xbe1)](',');_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x28df)]=_0x39641b()[_0x1f2398(0xce9)](_0x53dbbf[0x0])?_0x53dbbf[0x0]:isNaN(_0x53dbbf[0x0])?_0x53dbbf[0x0]:parseInt(_0x53dbbf[0x0],0xa);}break;}else{}_0x44ed02['hangup'][_0x1f2398(0x66a)]&&_0x44ed02['hangup'][_0x1f2398(0x66a)][_0x1f2398(0x1680)]()===_0x1f2398(0x895)&&_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x299b)]['toLowerCase']()===_0x1f2398(0x20ff)&&(_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x586)]=_0x44ed02['hangup']['phone']?_0x44ed02[_0x1f2398(0x15e3)][_0x1f2398(0x1340)][_0x1f2398(0xbe1)]('$')[0x0]:undefined,_0x44ed02['hangup'][_0x1f2398(0x1e7c)]=_0x44ed02['hangup'][_0x1f2398(0x2816)]?_0x1f2398(0x25f9)+_0x44ed02[_0x1f2398(0x15e3)]['callerID']:undefined);_0x44ed02['saveInternalRouteApp']=_0x442c3b,_0x44ed02[_0x1f2398(0xda0)]=_0x133a3f;function _0x442c3b(){const _0x5ba68f=_0x1f2398;_0x44ed02[_0x5ba68f(0x1a7c)]=[];const _0x4a150f=[];_0x44ed02[_0x5ba68f(0x15e3)][_0x5ba68f(0x66a)]&&_0x44ed02[_0x5ba68f(0x15e3)]['type'][_0x5ba68f(0x1680)]()===_0x5ba68f(0x895)&&_0x44ed02[_0x5ba68f(0x15e3)][_0x5ba68f(0x299b)]==='outboundDial'&&(_0x44ed02[_0x5ba68f(0x15e3)][_0x5ba68f(0x1340)]=_0x526d62['cutdigits']?(_0x44ed02['hangup'][_0x5ba68f(0x586)]||'')+'${EXTEN:'+_0x526d62[_0x5ba68f(0x325)]+'}':(_0x44ed02[_0x5ba68f(0x15e3)]['prefix']||'')+_0x5ba68f(0xcdd),_0x526d62['recordingFormat']!==_0x5ba68f(0x13b1)?_0x44ed02['hangup']['options'][_0x5ba68f(0xd8a)](_0x5ba68f(0x106a))<0x0&&(_0x44ed02['hangup'][_0x5ba68f(0x2224)]+='U(xcally-mixmonitor-context)'):_0x44ed02['hangup']['options']=_0x44ed02[_0x5ba68f(0x15e3)][_0x5ba68f(0x2224)][_0x5ba68f(0x288f)](_0x5ba68f(0x106a),''));if(_0x44ed02['hangup']['appType']&&_0x44ed02[_0x5ba68f(0x15e3)][_0x5ba68f(0x299b)]===_0x5ba68f(0x197c)){}else switch((_0x44ed02[_0x5ba68f(0x15e3)][_0x5ba68f(0x22e1)]||_0x44ed02[_0x5ba68f(0x15e3)][_0x5ba68f(0x299b)])['toLowerCase']()){case _0x5ba68f(0x19d1):_0x44ed02[_0x5ba68f(0x15e3)][_0x5ba68f(0x28df)]=_0x44ed02[_0x5ba68f(0x15e3)]['name']+'='+_0x44ed02[_0x5ba68f(0x15e3)][_0x5ba68f(0x327)];break;case _0x5ba68f(0x197c):break;default:_0x4a150f[0x0]=_0x44ed02[_0x5ba68f(0x15e3)]['appdata'],_0x44ed02[_0x5ba68f(0x15e3)]['appdata']=_0x4a150f[_0x5ba68f(0x1f66)](',');}_0x133a3f(_0x44ed02[_0x5ba68f(0x15e3)]);}function _0x133a3f(_0x346962){const _0x46082f=_0x1f2398;_0x1d52da[_0x46082f(0x1426)](_0x346962);}}const _0x24c0f3=_0x112564;;_0xbdc63[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x23b1),_0x5537c6(0x3af),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0xbdc63(_0x397c30,_0x1ab980,_0x8d6549,_0x2936a9,_0x32b075,_0x5a8508,_0x4dff38,_0x37188c){const _0x3551c3=_0x5537c6,_0x477906=this;_0x477906['currentUser']=_0x4dff38[_0x3551c3(0x21e8)](),_0x477906[_0x3551c3(0x1a7c)]=[],_0x477906['title']=_0x3551c3(0x132b)+(_0x2936a9[_0x3551c3(0x299b)]||_0x2936a9[_0x3551c3(0x22e1)])['toUpperCase'](),_0x477906[_0x3551c3(0x19af)]=angular[_0x3551c3(0x17fe)](_0x2936a9),_0x477906['crudPermissions']=_0x37188c,_0x477906[_0x3551c3(0xf4c)]={};if(_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x28df)])switch(_0x477906[_0x3551c3(0x19af)]['appType']?_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x299b)][_0x3551c3(0x1680)]():_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x22e1)][_0x3551c3(0x1680)]()){case _0x3551c3(0x197c):break;case _0x3551c3(0x711):{const _0x16bae4=_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x28df)]['split'](',');_0x477906[_0x3551c3(0x19af)][_0x3551c3(0xee8)]=_0x16bae4[0x0],_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x12b4)]=_0x16bae4[0x1],_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x173a)]=_0x16bae4[_0x3551c3(0x14cb)](0x2,_0x16bae4[_0x3551c3(0xfd0)])[_0x3551c3(0x1f66)](',');}break;case _0x3551c3(0xece):{const _0x52123d=_0x477906['internaldial'][_0x3551c3(0x28df)][_0x3551c3(0xbe1)](',');_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x2854)]=_0x52123d[0x0],_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x12bf)]=_0x52123d[0x1],_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x29d6)]=_0x52123d[0x2],_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x12b4)]=_0x52123d[0x3],_0x477906[_0x3551c3(0x19af)]['welcomemessage']=_0x52123d[_0x3551c3(0x14cb)](0x4,_0x52123d[_0x3551c3(0xfd0)])[_0x3551c3(0x1f66)](',');}break;case _0x3551c3(0x123a):{const _0x138c64=_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x28df)]['split'](',');_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x413)]=_0x138c64[0x0],_0x477906[_0x3551c3(0x19af)]['secretaccesskey']=_0x138c64[0x1],_0x477906[_0x3551c3(0x19af)][_0x3551c3(0xd50)]=_0x138c64[0x2],_0x477906[_0x3551c3(0x19af)]['botname']=_0x138c64[0x3],_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x173a)]=_0x138c64['slice'](0x4,_0x138c64[_0x3551c3(0xfd0)])[_0x3551c3(0x1f66)](',');}break;case'autoreply':{const _0x4e2134=_0x477906[_0x3551c3(0x19af)]['appdata'][_0x3551c3(0xbe1)](',');_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x18a5)]=isNaN(_0x4e2134[0x0])?_0x4e2134[0x0]:parseInt(_0x4e2134[0x0],0xa),_0x477906['internaldial'][_0x3551c3(0x19d3)]=_0x4e2134[_0x3551c3(0x14cb)](0x1,_0x4e2134[_0x3551c3(0xfd0)])[_0x3551c3(0x1f66)](',');}break;case _0x3551c3(0x155e):_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x19d3)]=_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x28df)];break;case _0x3551c3(0x19d1):_0x477906[_0x3551c3(0x19af)]['name']=_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x28df)][_0x3551c3(0xbe1)]('=')[0x0],_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x327)]=_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x28df)][_0x3551c3(0xbe1)]('=')[0x1];break;case _0x3551c3(0x4b4):_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x12a7)]=_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x28df)];break;default:{const _0xdb3001=_0x477906['internaldial'][_0x3551c3(0x28df)][_0x3551c3(0xbe1)](',');_0x477906[_0x3551c3(0x19af)][_0x3551c3(0xebe)]=_0x39641b()['isEmpty'](_0xdb3001[0x0])?_0xdb3001[0x0]:isNaN(_0xdb3001[0x0])?_0xdb3001[0x0]:parseInt(_0xdb3001[0x0],0xa),_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x1719)]=_0x39641b()[_0x3551c3(0xce9)](_0xdb3001[0x1])?_0xdb3001[0x1]:isNaN(_0xdb3001[0x1])?_0xdb3001[0x1]:parseInt(_0xdb3001[0x1],0xa),_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x2224)]=_0x39641b()[_0x3551c3(0xce9)](_0xdb3001[0x2])?_0xdb3001[0x2]:isNaN(_0xdb3001[0x2])?_0xdb3001[0x2]:parseInt(_0xdb3001[0x2],0xa),_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x135b)]=_0x39641b()['isEmpty'](_0xdb3001[0x3])?_0xdb3001[0x3]:isNaN(_0xdb3001[0x3])?_0xdb3001[0x3]:parseInt(_0xdb3001[0x3],0xa);}break;}else{}_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x66a)]&&_0x477906['internaldial']['type']['toLowerCase']()===_0x3551c3(0x895)&&_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x299b)]['toLowerCase']()===_0x3551c3(0x20ff)&&(_0x477906['internaldial']['prefix']=_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x1340)]?_0x477906[_0x3551c3(0x19af)][_0x3551c3(0x1340)][_0x3551c3(0xbe1)]('$')[0x0]:undefined,_0x477906[_0x3551c3(0x19af)]['callerId']=_0x477906['internaldial']['callerID']?_0x3551c3(0x25f9)+_0x477906[_0x3551c3(0x19af)]['callerID']:undefined);_0x477906[_0x3551c3(0xb3b)]=_0x274304,_0x477906['closeDialog']=_0x42a25f;const _0x127b59=[{'id':0xca,'role':_0x3551c3(0x1eff)},{'id':0xcb,'role':_0x3551c3(0x2922)}];let _0x181ecc=null;_0x4dff38[_0x3551c3(0x22b6)]('admin')?_0x5a8508['user']['get']({'fields':_0x3551c3(0x17ce),'sort':'name','nolimit':'true'})[_0x3551c3(0x1d77)][_0x3551c3(0x1cb0)](function(_0x4eb426){const _0x322b85=_0x3551c3;_0x477906[_0x322b85(0x1e30)]=_0x4eb426['rows']||[];})[_0x3551c3(0x1c4)](function(_0x4c1241){const _0x4f4495=_0x3551c3;_0x8d6549[_0x4f4495(0x218e)]({'title':_0x4c1241[_0x4f4495(0x291)]?_0x4f4495(0xeb9)+_0x4c1241[_0x4f4495(0x291)]+_0x4f4495(0x1657)+_0x4c1241[_0x4f4495(0xc22)]:'SYSTEM:GET_USERS','msg':_0x4c1241['data']?JSON[_0x4f4495(0x2701)](_0x4c1241['data']):_0x4c1241[_0x4f4495(0x147f)]()});}):_0x5a8508[_0x3551c3(0xebe)][_0x3551c3(0xbf7)]({'fields':_0x3551c3(0x17ce),'sort':_0x3551c3(0x16b6),'nolimit':_0x3551c3(0x44d)})[_0x3551c3(0x1d77)][_0x3551c3(0x1cb0)](function(_0x34db7c){_0x181ecc=_0x34db7c['rows']||[];})[_0x3551c3(0x1cb0)](function(){const _0x36b734=_0x3551c3,_0xd68e53=[];for(let _0x5ac4fb=0x0;_0x5ac4fb<_0x127b59['length'];_0x5ac4fb++){_0xd68e53['push'](_0x5a8508[_0x36b734(0x2199)]['get']({'userProfileId':_0x477906['currentUser']['userProfileId'],'sectionId':_0x127b59[_0x5ac4fb]['id']})[_0x36b734(0x1d77)]);}return _0x1ab980['all'](_0xd68e53);})[_0x3551c3(0x1cb0)](function(_0x10ff54){const _0x4b1bb2=_0x3551c3,_0x4a6639=_0x39641b()[_0x4b1bb2(0x1de2)](_0x10ff54,function(_0x7d314e){const _0x5153c5=_0x4b1bb2;return _0x7d314e&&_0x7d314e['rows']?_0x7d314e[_0x5153c5(0x2214)][0x0]:null;}),_0x1b7113=[];for(let _0x2ecaf9=0x0;_0x2ecaf9<_0x127b59[_0x4b1bb2(0xfd0)];_0x2ecaf9++){const _0x30b7d2=_0x39641b()[_0x4b1bb2(0x13b4)](_0x4a6639,[_0x4b1bb2(0xec6),_0x127b59[_0x2ecaf9]['id']]);if(_0x30b7d2){if(!_0x30b7d2[_0x4b1bb2(0x12f4)])_0x1b7113[_0x4b1bb2(0x2785)](_0x5a8508[_0x4b1bb2(0x1198)][_0x4b1bb2(0xbf7)]({'sectionId':_0x30b7d2['id']})[_0x4b1bb2(0x1d77)]);else{const _0x3bea43=[];_0x181ecc['forEach'](function(_0x183509){const _0x5afccb=_0x4b1bb2;_0x183509[_0x5afccb(0x26e6)]===_0x127b59[_0x2ecaf9][_0x5afccb(0x26e6)]&&_0x3bea43[_0x5afccb(0x2785)](_0x183509);}),_0x1b7113['push']({'rows':_0x3bea43,'count':_0x3bea43[_0x4b1bb2(0xfd0)]});}}}return _0x1ab980[_0x4b1bb2(0x223b)](_0x1b7113);})[_0x3551c3(0x1cb0)](function(_0x5731c6){const _0x460e12=_0x3551c3,_0x5dedd6=[];let _0x1ba5e8=null;_0x477906[_0x460e12(0x19af)]&&(_0x1ba5e8=_0x39641b()[_0x460e12(0x13b4)](_0x181ecc,{'name':_0x477906[_0x460e12(0x19af)]['user']}));for(let _0x118456=0x0;_0x118456<_0x5731c6['length'];_0x118456++){const _0xdf3b52=_0x5731c6[_0x118456][_0x460e12(0x2214)]||[];_0xdf3b52[_0x460e12(0xf90)](function(_0x541f5d){const _0xa2555c=_0x460e12;_0x5dedd6[_0xa2555c(0x2785)](_0x541f5d);});}_0x1ba5e8&&!_0x39641b()[_0x460e12(0x727)](_0x5dedd6,['resourceId',_0x1ba5e8['id']])&&_0x181ecc[_0x460e12(0xf90)](function(_0x4f102b){const _0x174a29=_0x460e12;_0x4f102b['id']===_0x1ba5e8['id']&&(_0x4f102b[_0x174a29(0x15da)]=![],_0x5dedd6[_0x174a29(0x2785)](_0x4f102b));}),_0x477906[_0x460e12(0x1e30)]=_0x5dedd6;})['catch'](function(_0x2c2134){const _0x106d8c=_0x3551c3;_0x8d6549[_0x106d8c(0x218e)]({'title':_0x2c2134[_0x106d8c(0x291)]?'API:'+_0x2c2134[_0x106d8c(0x291)]+_0x106d8c(0x1657)+_0x2c2134[_0x106d8c(0xc22)]:'SYSTEM:GETusers','msg':_0x2c2134[_0x106d8c(0x25c)]?JSON[_0x106d8c(0x2701)](_0x2c2134[_0x106d8c(0x25c)]):_0x2c2134[_0x106d8c(0x147f)]()});});function _0x274304(){const _0x22b290=_0x3551c3;_0x477906[_0x22b290(0x1a7c)]=[];const _0x45075e=[];_0x477906['internaldial']['type']&&_0x477906[_0x22b290(0x19af)][_0x22b290(0x66a)][_0x22b290(0x1680)]()==='outbound'&&_0x477906['internaldial'][_0x22b290(0x299b)]===_0x22b290(0x25f4)&&(_0x477906['internaldial'][_0x22b290(0x1340)]=_0x32b075[_0x22b290(0x325)]?(_0x477906[_0x22b290(0x19af)][_0x22b290(0x586)]||'')+'${EXTEN:'+_0x32b075[_0x22b290(0x325)]+'}':(_0x477906[_0x22b290(0x19af)][_0x22b290(0x586)]||'')+_0x22b290(0xcdd),_0x32b075[_0x22b290(0xf8d)]!=='none'?_0x477906[_0x22b290(0x19af)]['options']['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x477906[_0x22b290(0x19af)][_0x22b290(0x2224)]+=_0x22b290(0x106a)):_0x477906[_0x22b290(0x19af)][_0x22b290(0x2224)]=_0x477906[_0x22b290(0x19af)][_0x22b290(0x2224)][_0x22b290(0x288f)](_0x22b290(0x106a),''));if(_0x477906[_0x22b290(0x19af)][_0x22b290(0x299b)]&&_0x477906[_0x22b290(0x19af)][_0x22b290(0x299b)]===_0x22b290(0x197c)){}else switch((_0x477906[_0x22b290(0x19af)]['app']||_0x477906[_0x22b290(0x19af)][_0x22b290(0x299b)])[_0x22b290(0x1680)]()){case'set':_0x477906['internaldial']['appdata']=_0x477906['internaldial'][_0x22b290(0x16b6)]+'='+_0x477906[_0x22b290(0x19af)][_0x22b290(0x327)];break;case _0x22b290(0x197c):break;default:_0x45075e[0x0]=_0x477906[_0x22b290(0x19af)][_0x22b290(0xebe)],_0x45075e[0x1]=_0x477906[_0x22b290(0x19af)][_0x22b290(0x1719)],_0x45075e[0x2]=_0x477906[_0x22b290(0x19af)][_0x22b290(0x2224)],_0x45075e[0x3]=_0x477906[_0x22b290(0x19af)]['url'],_0x477906[_0x22b290(0x19af)][_0x22b290(0x28df)]=_0x45075e['join'](',');}_0x42a25f(_0x477906[_0x22b290(0x19af)]);}function _0x42a25f(_0x215845){const _0x1dd562=_0x3551c3;_0x397c30[_0x1dd562(0x1426)](_0x215845);}}const _0x3a58c5=_0xbdc63;;_0x1653a3[_0x5537c6(0x15b6)]=['$state','$mdDialog',_0x5537c6(0x200d),'IndexFactory',_0x5537c6(0x1ac8),_0x5537c6(0xb4a),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x1653a3(_0x5d0dd1,_0x32d628,_0x822d23,_0x97809a,_0x2687bf,_0x5f46e2,_0x5ba5a7,_0x44d11c,_0x18b25c,_0x5ec620){const _0x5305d3=_0x5537c6,_0x2b4ca9=this;_0x2b4ca9[_0x5305d3(0xe76)]=_0x18b25c[_0x5305d3(0x21e8)](),_0x2b4ca9[_0x5305d3(0x1a7c)]=[],_0x2b4ca9[_0x5305d3(0x1386)]='TOOLS.EDIT_INTERVAL',_0x2b4ca9[_0x5305d3(0x1ac8)]=angular[_0x5305d3(0x17fe)](_0x2687bf),_0x2b4ca9[_0x5305d3(0xb4a)]=_0x5f46e2,_0x2b4ca9[_0x5305d3(0x18c1)]=![],_0x2b4ca9[_0x5305d3(0x2025)]=['always',_0x5305d3(0x197c),_0x5305d3(0x240)],_0x2b4ca9[_0x5305d3(0x1b1a)]=_0x5ec620,_0x2b4ca9['daysOfWeek']=_0x97809a[_0x5305d3(0x1aae)](),_0x2b4ca9['monthNumber']=_0x97809a[_0x5305d3(0xa76)](),_0x2b4ca9[_0x5305d3(0x1534)]=_0x97809a[_0x5305d3(0x7cc)](),_0x2b4ca9['daysOfMonth']=_0x97809a[_0x5305d3(0xc1e)]();if(!_0x2b4ca9[_0x5305d3(0x1ac8)])_0x2b4ca9[_0x5305d3(0x1ac8)]={'interval':'*,*,*,*'},_0x2b4ca9['type']=_0x5305d3(0x2017),_0x2b4ca9[_0x5305d3(0x1386)]=_0x5305d3(0x287b),_0x2b4ca9[_0x5305d3(0x18c1)]=!![];else{if(_0x2b4ca9[_0x5305d3(0x1ac8)][_0x5305d3(0x1ac8)]!=='*,*,*,*'){_0x2b4ca9[_0x5305d3(0x66a)]='custom';const _0x5bde3f=_0x2b4ca9[_0x5305d3(0x1ac8)]['interval'][_0x5305d3(0xbe1)](','),_0x546800=_0x5bde3f[0x0],_0x149622=_0x5bde3f[0x1],_0x1c851c=_0x5bde3f[0x2],_0x49bc3a=_0x5bde3f[0x3];if(_0x546800!=='*'){const _0x16e845=_0x546800[_0x5305d3(0xbe1)]('-')[0x0],_0x15c083=_0x546800['split']('-')[0x1];let _0x16ae92;_0x16ae92=new Date(),_0x16ae92[_0x5305d3(0x201b)](Number(_0x16e845[_0x5305d3(0xbe1)](':')[0x0])),_0x16ae92[_0x5305d3(0x1622)](Number(_0x16e845[_0x5305d3(0xbe1)](':')[0x1])),_0x2b4ca9['timeRangeFrom']=_0x16ae92,_0x16ae92=new Date(),_0x16ae92[_0x5305d3(0x201b)](Number(_0x15c083['split'](':')[0x0])),_0x16ae92['setMinutes'](Number(_0x15c083[_0x5305d3(0xbe1)](':')[0x1])),_0x2b4ca9[_0x5305d3(0x64a)]=_0x16ae92;}_0x149622!=='*'&&(_0x2b4ca9['dayOfWeekFrom']=_0x149622['split']('-')[0x0],_0x2b4ca9[_0x5305d3(0x28db)]=_0x149622[_0x5305d3(0xbe1)]('-')[0x1]),_0x1c851c!=='*'&&(_0x2b4ca9['monthDayFrom']=_0x1c851c['split']('-')[0x0],_0x2b4ca9[_0x5305d3(0x194d)]=_0x1c851c[_0x5305d3(0xbe1)]('-')[0x1]),_0x49bc3a!=='*'&&(_0x2b4ca9[_0x5305d3(0x1756)]=_0x49bc3a[_0x5305d3(0xbe1)]('-')[0x0],_0x2b4ca9[_0x5305d3(0xa68)]=_0x49bc3a['split']('-')[0x1]);}else _0x2b4ca9[_0x5305d3(0x66a)]=_0x5305d3(0x2017);}_0x5d0dd1[_0x5305d3(0x1dfe)]['id']&&!_0x2b4ca9['interval'][_0x5305d3(0x171b)]&&(_0x2b4ca9[_0x5305d3(0x1ac8)][_0x5305d3(0x1a60)]=_0x5d0dd1[_0x5305d3(0x1dfe)]['id']);_0x2b4ca9[_0x5305d3(0x1ac8)][_0x5305d3(0x1a60)]&&_0x2b4ca9['interval'][_0x5305d3(0x171b)]&&(_0x2b4ca9['type']=_0x5305d3(0x240));_0x2b4ca9['addNewInterval']=_0x55ba4e,_0x2b4ca9[_0x5305d3(0x1891)]=_0x397a69,_0x2b4ca9[_0x5305d3(0xda0)]=_0x591e17;_0x2b4ca9[_0x5305d3(0x1ac8)][_0x5305d3(0x171b)]&&(_0x18b25c[_0x5305d3(0x22b6)](_0x5305d3(0x1c60))?_0x44d11c[_0x5305d3(0x1ac8)][_0x5305d3(0xbf7)]({'fields':'id,name,interval,IntervalId','IntervalId':_0x5305d3(0xd38),'nolimit':!![]})[_0x5305d3(0x1d77)][_0x5305d3(0x1cb0)](function(_0x52f333){const _0x4e7ee5=_0x5305d3;_0x2b4ca9[_0x4e7ee5(0xb4a)]=_0x52f333[_0x4e7ee5(0x2214)]||[];})[_0x5305d3(0x1c4)](function(_0x336b88){const _0xfea364=_0x5305d3;_0x5ba5a7[_0xfea364(0x218e)]({'title':_0x336b88[_0xfea364(0x291)]?_0xfea364(0xeb9)+_0x336b88['status']+'\x20-\x20'+_0x336b88[_0xfea364(0xc22)]:'SYSTEM:GET_INTERVALS','msg':_0x336b88['data']?JSON[_0xfea364(0x2701)](_0x336b88[_0xfea364(0x25c)]):_0x336b88[_0xfea364(0x147f)]()});}):_0x44d11c[_0x5305d3(0x1ac8)][_0x5305d3(0xbf7)]({'fields':'id,name,interval,IntervalId','IntervalId':_0x5305d3(0xd38),'nolimit':!![]})[_0x5305d3(0x1d77)][_0x5305d3(0x1cb0)](function(_0x14f4b5){const _0x335811=_0x5305d3;_0x2b4ca9[_0x335811(0xb4a)]=_0x14f4b5[_0x335811(0x2214)]||[];})[_0x5305d3(0x1cb0)](function(){const _0x2ae4f5=_0x5305d3;return _0x44d11c[_0x2ae4f5(0x2199)]['get']({'userProfileId':_0x2b4ca9[_0x2ae4f5(0xe76)][_0x2ae4f5(0x13c1)],'sectionId':0x3ec})['$promise'];})[_0x5305d3(0x1cb0)](function(_0x19588d){const _0xbcf9e3=_0x5305d3,_0x378dc6=_0x19588d&&_0x19588d['rows']?_0x19588d[_0xbcf9e3(0x2214)][0x0]:null;if(!_0x378dc6)_0x2b4ca9['intervals']=[];else{if(!_0x378dc6[_0xbcf9e3(0x12f4)])return _0x44d11c[_0xbcf9e3(0x1198)][_0xbcf9e3(0xbf7)]({'sectionId':_0x378dc6['id']})['$promise'][_0xbcf9e3(0x1cb0)](function(_0x2ab2c0){const _0xcbacb8=_0xbcf9e3,_0xa629bb=_0x2ab2c0&&_0x2ab2c0[_0xcbacb8(0x2214)]?_0x2ab2c0[_0xcbacb8(0x2214)]:[],_0x4d4ce3=[];let _0x77004f=null;_0x2b4ca9[_0xcbacb8(0x1ac8)]&&(_0x77004f=_0x39641b()[_0xcbacb8(0x13b4)](_0x2b4ca9['intervals'],{'name':_0x2b4ca9['interval'][_0xcbacb8(0x1a60)]})),_0x77004f&&!_0x39641b()[_0xcbacb8(0x727)](_0xa629bb,['resourceId',_0x77004f['id']])&&_0x2b4ca9[_0xcbacb8(0xb4a)][_0xcbacb8(0xf90)](function(_0x53febe){const _0x219371=_0xcbacb8;_0x53febe['id']===_0x77004f['id']&&(_0x53febe[_0x219371(0x15da)]=![],_0x4d4ce3[_0x219371(0x2785)](_0x53febe));}),_0x2b4ca9['intervals']=_0x4d4ce3;});}})[_0x5305d3(0x1c4)](function(_0x160dc2){const _0x5e4823=_0x5305d3;_0x5ba5a7[_0x5e4823(0x218e)]({'title':_0x160dc2['status']?_0x5e4823(0xeb9)+_0x160dc2[_0x5e4823(0x291)]+_0x5e4823(0x1657)+_0x160dc2[_0x5e4823(0xc22)]:'SYSTEM:GET_INTERVALS','msg':_0x160dc2[_0x5e4823(0x25c)]?JSON[_0x5e4823(0x2701)](_0x160dc2[_0x5e4823(0x25c)]):_0x160dc2[_0x5e4823(0x147f)]()});}));function _0x217ed6(){const _0x451e5a=_0x5305d3;switch(_0x2b4ca9[_0x451e5a(0x66a)]){case _0x451e5a(0x2017):case'list':return _0x451e5a(0x965);case _0x451e5a(0x197c):{const _0x160cf6=[];if(_0x2b4ca9[_0x451e5a(0x718)]!=='*'&&_0x2b4ca9[_0x451e5a(0x718)]&&_0x2b4ca9['timeRangeTo']){const _0x2a54de=(_0x2b4ca9[_0x451e5a(0x718)]['getHours']()<0xa?'0':'')+_0x2b4ca9['timeRangeFrom'][_0x451e5a(0x1169)]()+':'+((_0x2b4ca9[_0x451e5a(0x718)][_0x451e5a(0x851)]()<0xa?'0':'')+_0x2b4ca9['timeRangeFrom']['getMinutes']()),_0x4bf66a=(_0x2b4ca9[_0x451e5a(0x64a)]['getHours']()<0xa?'0':'')+_0x2b4ca9[_0x451e5a(0x64a)]['getHours']()+':'+((_0x2b4ca9['timeRangeTo'][_0x451e5a(0x851)]()<0xa?'0':'')+_0x2b4ca9[_0x451e5a(0x64a)][_0x451e5a(0x851)]());_0x160cf6[_0x451e5a(0x2785)](_0x2a54de+'-'+_0x4bf66a);}else _0x160cf6[_0x451e5a(0x2785)]('*');return _0x2b4ca9[_0x451e5a(0x28a6)]?_0x2b4ca9[_0x451e5a(0x28db)]?_0x160cf6[_0x451e5a(0x2785)](_0x2b4ca9[_0x451e5a(0x28a6)]+'-'+_0x2b4ca9[_0x451e5a(0x28db)]):_0x160cf6['push'](_0x2b4ca9['dayOfWeekFrom']):_0x160cf6[_0x451e5a(0x2785)]('*'),_0x2b4ca9[_0x451e5a(0xd6f)]?_0x2b4ca9[_0x451e5a(0x194d)]?_0x160cf6[_0x451e5a(0x2785)](_0x2b4ca9[_0x451e5a(0xd6f)]+'-'+_0x2b4ca9[_0x451e5a(0x194d)]):_0x160cf6[_0x451e5a(0x2785)](_0x2b4ca9[_0x451e5a(0xd6f)]):_0x160cf6[_0x451e5a(0x2785)]('*'),_0x2b4ca9[_0x451e5a(0x1756)]?_0x2b4ca9['monthTo']?_0x160cf6[_0x451e5a(0x2785)](_0x2b4ca9[_0x451e5a(0x1756)]+'-'+_0x2b4ca9[_0x451e5a(0xa68)]):_0x160cf6['push'](_0x2b4ca9[_0x451e5a(0x1756)]):_0x160cf6[_0x451e5a(0x2785)]('*'),_0x160cf6[_0x451e5a(0x1f66)]();}}}function _0x55ba4e(){const _0x2deb47=_0x5305d3;_0x2b4ca9[_0x2deb47(0x1a7c)]=[],_0x2b4ca9['interval'][_0x2deb47(0x1ac8)]=_0x217ed6(),_0x44d11c[_0x2deb47(0x1ac8)][_0x2deb47(0x1c3f)](_0x2b4ca9[_0x2deb47(0x1ac8)])['$promise'][_0x2deb47(0x1cb0)](function(_0x5cf6c0){const _0x6c1fce=_0x2deb47;_0x2b4ca9[_0x6c1fce(0xb4a)][_0x6c1fce(0x2785)](_0x5cf6c0),_0x5ba5a7[_0x6c1fce(0x829)]({'title':_0x6c1fce(0x1d4e),'msg':_0x2b4ca9[_0x6c1fce(0x1ac8)][_0x6c1fce(0x16b6)]?_0x2b4ca9[_0x6c1fce(0x1ac8)][_0x6c1fce(0x16b6)]+_0x6c1fce(0x470):''}),_0x591e17();})[_0x2deb47(0x1c4)](function(_0xe77505){const _0x42188=_0x2deb47;console[_0x42188(0x218e)](_0xe77505),_0x2b4ca9[_0x42188(0x1a7c)]=_0xe77505[_0x42188(0x25c)][_0x42188(0x1a7c)]||[{'message':_0xe77505[_0x42188(0x147f)](),'type':_0x42188(0x24f7)}];});}function _0x397a69(){const _0x5ca863=_0x5305d3;_0x2b4ca9['errors']=[],_0x2b4ca9[_0x5ca863(0x1ac8)][_0x5ca863(0x1ac8)]=_0x217ed6(),_0x2b4ca9['interval'][_0x5ca863(0x171b)]?(_0x2b4ca9['type']!=='list'&&(_0x2b4ca9[_0x5ca863(0x1ac8)][_0x5ca863(0x1a60)]=null),_0x591e17(_0x2b4ca9[_0x5ca863(0x1ac8)])):_0x44d11c['interval'][_0x5ca863(0x687)]({'id':_0x2b4ca9[_0x5ca863(0x1ac8)]['id']},_0x2b4ca9[_0x5ca863(0x1ac8)])[_0x5ca863(0x1d77)][_0x5ca863(0x1cb0)](function(_0x3b8a21){const _0x51974b=_0x5ca863,_0x395459=_0x39641b()[_0x51974b(0x13b4)](_0x2b4ca9[_0x51974b(0xb4a)],{'id':_0x3b8a21['id']});_0x395459&&_0x39641b()[_0x51974b(0x9c1)](_0x395459,_0x3b8a21),_0x5ba5a7[_0x51974b(0x829)]({'title':_0x51974b(0x1498),'msg':'Interval\x20has\x20been\x20saved!'}),_0x591e17();})[_0x5ca863(0x1c4)](function(_0x2087a6){const _0x47f3af=_0x5ca863;console[_0x47f3af(0x218e)](_0x2087a6),_0x2b4ca9[_0x47f3af(0x1a7c)]=_0x2087a6['data'][_0x47f3af(0x1a7c)]||[{'message':_0x2087a6[_0x47f3af(0x147f)](),'type':_0x47f3af(0x2505)}];});}function _0x591e17(_0xfc14ef){_0x32d628['hide'](_0xfc14ef);}}const _0x3d071f=_0x1653a3;;_0x453d24[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x23b1),_0x5537c6(0x3af),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x453d24(_0x5379b6,_0x1ec210,_0x54e003,_0x2b54d6,_0x2920bf,_0x481173,_0x4a4f56,_0x4770fc){const _0x248c6a=_0x5537c6,_0x5cfa5c=this;_0x5cfa5c['currentUser']=_0x4a4f56[_0x248c6a(0x21e8)](),_0x5cfa5c[_0x248c6a(0x1a7c)]=[],_0x5cfa5c[_0x248c6a(0x1386)]='VOICE.EDIT_'+(_0x2b54d6[_0x248c6a(0x299b)]||_0x2b54d6[_0x248c6a(0x22e1)])['toUpperCase'](),_0x5cfa5c[_0x248c6a(0x2580)]=angular['copy'](_0x2b54d6),_0x5cfa5c[_0x248c6a(0x1b1a)]=_0x4770fc,_0x5cfa5c[_0x248c6a(0xf4c)]={};if(_0x5cfa5c[_0x248c6a(0x2580)]['appdata'])switch(_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x299b)]?_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x299b)][_0x248c6a(0x1680)]():_0x5cfa5c['playback'][_0x248c6a(0x22e1)]['toLowerCase']()){case _0x248c6a(0x197c):break;case _0x248c6a(0x711):{const _0x2ae725=_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x28df)][_0x248c6a(0xbe1)](',');_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0xee8)]=_0x2ae725[0x0],_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x12b4)]=_0x2ae725[0x1],_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x173a)]=_0x2ae725[_0x248c6a(0x14cb)](0x2,_0x2ae725[_0x248c6a(0xfd0)])[_0x248c6a(0x1f66)](',');}break;case _0x248c6a(0xece):{const _0x2b464f=_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x28df)][_0x248c6a(0xbe1)](',');_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x2854)]=_0x2b464f[0x0],_0x5cfa5c[_0x248c6a(0x2580)]['clientEmail']=_0x2b464f[0x1],_0x5cfa5c[_0x248c6a(0x2580)]['privateKey']=_0x2b464f[0x2],_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x12b4)]=_0x2b464f[0x3],_0x5cfa5c[_0x248c6a(0x2580)]['welcomemessage']=_0x2b464f[_0x248c6a(0x14cb)](0x4,_0x2b464f['length'])[_0x248c6a(0x1f66)](',');}break;case'amazonlex':{const _0x71ebe5=_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x28df)]['split'](',');_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x413)]=_0x71ebe5[0x0],_0x5cfa5c[_0x248c6a(0x2580)]['secretaccesskey']=_0x71ebe5[0x1],_0x5cfa5c[_0x248c6a(0x2580)]['lexregion']=_0x71ebe5[0x2],_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x1c7f)]=_0x71ebe5[0x3],_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x173a)]=_0x71ebe5[_0x248c6a(0x14cb)](0x4,_0x71ebe5[_0x248c6a(0xfd0)])[_0x248c6a(0x1f66)](',');}break;case _0x248c6a(0x1f71):{const _0x19f836=_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x28df)][_0x248c6a(0xbe1)](',');_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x18a5)]=isNaN(_0x19f836[0x0])?_0x19f836[0x0]:parseInt(_0x19f836[0x0],0xa),_0x5cfa5c[_0x248c6a(0x2580)]['text']=_0x19f836[_0x248c6a(0x14cb)](0x1,_0x19f836[_0x248c6a(0xfd0)])['join'](',');}break;case'message':_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x19d3)]=_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x28df)];break;case'set':_0x5cfa5c[_0x248c6a(0x2580)]['name']=_0x5cfa5c['playback']['appdata'][_0x248c6a(0xbe1)]('=')[0x0],_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x327)]=_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x28df)][_0x248c6a(0xbe1)]('=')[0x1];break;case _0x248c6a(0x4b4):_0x5cfa5c['playback'][_0x248c6a(0x12a7)]=_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x28df)];break;default:{const _0x274f76=_0x5cfa5c['playback']['appdata'][_0x248c6a(0xbe1)](',');_0x5cfa5c[_0x248c6a(0x2580)]['appdata']=_0x39641b()[_0x248c6a(0xce9)](_0x274f76[0x0])?_0x274f76[0x0]:isNaN(_0x274f76[0x0])?_0x274f76[0x0]:parseInt(_0x274f76[0x0],0xa),_0x5cfa5c['playback']['options']=_0x39641b()[_0x248c6a(0xce9)](_0x274f76[0x1])?_0x274f76[0x1]:isNaN(_0x274f76[0x1])?_0x274f76[0x1]:parseInt(_0x274f76[0x1],0xa);}break;}else{}_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x66a)]&&_0x5cfa5c['playback']['type']['toLowerCase']()===_0x248c6a(0x895)&&_0x5cfa5c[_0x248c6a(0x2580)]['appType'][_0x248c6a(0x1680)]()===_0x248c6a(0x20ff)&&(_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x586)]=_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x1340)]?_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x1340)][_0x248c6a(0xbe1)]('$')[0x0]:undefined,_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x1e7c)]=_0x5cfa5c['playback'][_0x248c6a(0x2816)]?_0x248c6a(0x25f9)+_0x5cfa5c[_0x248c6a(0x2580)][_0x248c6a(0x2816)]:undefined);_0x5cfa5c[_0x248c6a(0xb3b)]=_0x5df5f9,_0x5cfa5c['closeDialog']=_0x2526f7,_0x4a4f56[_0x248c6a(0x22b6)](_0x248c6a(0x1c60))?_0x481173['sound'][_0x248c6a(0xbf7)]({'fields':_0x248c6a(0x4ae),'sort':'name','nolimit':_0x248c6a(0x44d)})[_0x248c6a(0x1d77)]['then'](function(_0x1a2050){const _0x4239bb=_0x248c6a;_0x5cfa5c[_0x4239bb(0xe28)]=_0x1a2050[_0x4239bb(0x2214)]||[];})['catch'](function(_0x2e3d68){const _0xae4558=_0x248c6a;_0x54e003['error']({'title':_0x2e3d68[_0xae4558(0x291)]?_0xae4558(0xeb9)+_0x2e3d68[_0xae4558(0x291)]+_0xae4558(0x1657)+_0x2e3d68['statusText']:'SYSTEM:GET_SOUNDS','msg':_0x2e3d68[_0xae4558(0x25c)]?JSON[_0xae4558(0x2701)](_0x2e3d68['data']):_0x2e3d68[_0xae4558(0x147f)]()});}):_0x481173['sound'][_0x248c6a(0xbf7)]({'fields':_0x248c6a(0x4ae),'sort':_0x248c6a(0x16b6),'nolimit':'true'})[_0x248c6a(0x1d77)][_0x248c6a(0x1cb0)](function(_0x24486d){_0x5cfa5c['sounds']=_0x24486d['rows']||[];})[_0x248c6a(0x1cb0)](function(){const _0x277e34=_0x248c6a;return _0x481173[_0x277e34(0x2199)][_0x277e34(0xbf7)]({'userProfileId':_0x5cfa5c['currentUser']['userProfileId'],'sectionId':0x3ef})[_0x277e34(0x1d77)];})[_0x248c6a(0x1cb0)](function(_0x310698){const _0x38c6e2=_0x248c6a,_0x132d9a=_0x310698&&_0x310698[_0x38c6e2(0x2214)]?_0x310698[_0x38c6e2(0x2214)][0x0]:null;if(!_0x132d9a){const _0x232a14=[];let _0x44dc71=null;_0x5cfa5c[_0x38c6e2(0x2580)]&&(_0x44dc71=_0x39641b()[_0x38c6e2(0x13b4)](_0x5cfa5c[_0x38c6e2(0xe28)],{'save_name':_0x5cfa5c[_0x38c6e2(0x2580)][_0x38c6e2(0x28df)]}));for(let _0x12d936=0x0;_0x12d936<_0x5cfa5c[_0x38c6e2(0xe28)]['length'];_0x12d936++){_0x44dc71&&_0x5cfa5c[_0x38c6e2(0xe28)][_0x12d936]['id']===_0x44dc71['id']&&(_0x5cfa5c['sounds'][_0x12d936][_0x38c6e2(0x15da)]=![],_0x232a14['push'](_0x5cfa5c[_0x38c6e2(0xe28)][_0x12d936]));}_0x5cfa5c[_0x38c6e2(0xe28)]=_0x232a14;}else{if(!_0x132d9a[_0x38c6e2(0x12f4)])return _0x481173[_0x38c6e2(0x1198)][_0x38c6e2(0xbf7)]({'sectionId':_0x132d9a['id']})[_0x38c6e2(0x1d77)][_0x38c6e2(0x1cb0)](function(_0x6ddb){const _0x3b9091=_0x38c6e2,_0x2762ec=_0x39641b()['map'](_0x6ddb[_0x3b9091(0x2214)],function(_0x12eeb1){const _0x2bad52=_0x3b9091;return _0x39641b()['find'](_0x5cfa5c[_0x2bad52(0xe28)],{'id':_0x12eeb1['resourceId']});});let _0x26141d=null;_0x5cfa5c[_0x3b9091(0x2580)]&&(_0x26141d=_0x39641b()[_0x3b9091(0x13b4)](_0x5cfa5c[_0x3b9091(0xe28)],{'save_name':_0x5cfa5c[_0x3b9091(0x2580)][_0x3b9091(0x28df)]}));if(_0x26141d&&!_0x39641b()[_0x3b9091(0x727)](_0x2762ec,['id',_0x26141d['id']])){const _0x28a38b=_0x39641b()[_0x3b9091(0x13b4)](_0x5cfa5c[_0x3b9091(0xe28)],{'id':_0x26141d['id']});_0x28a38b[_0x3b9091(0x15da)]=![],_0x2762ec['push'](_0x28a38b);}_0x5cfa5c[_0x3b9091(0xe28)]=_0x2762ec;});}})[_0x248c6a(0x1c4)](function(_0x1902e4){const _0x1d8b68=_0x248c6a;_0x54e003[_0x1d8b68(0x218e)]({'title':_0x1902e4[_0x1d8b68(0x291)]?_0x1d8b68(0xeb9)+_0x1902e4['status']+'\x20-\x20'+_0x1902e4['statusText']:_0x1d8b68(0x3a0),'msg':_0x1902e4[_0x1d8b68(0x25c)]?JSON[_0x1d8b68(0x2701)](_0x1902e4[_0x1d8b68(0x25c)]):_0x1902e4[_0x1d8b68(0x147f)]()});});function _0x5df5f9(){const _0x47d4b0=_0x248c6a;_0x5cfa5c['errors']=[];const _0x50563a=[];_0x5cfa5c[_0x47d4b0(0x2580)][_0x47d4b0(0x66a)]&&_0x5cfa5c[_0x47d4b0(0x2580)]['type'][_0x47d4b0(0x1680)]()===_0x47d4b0(0x895)&&_0x5cfa5c[_0x47d4b0(0x2580)][_0x47d4b0(0x299b)]===_0x47d4b0(0x25f4)&&(_0x5cfa5c[_0x47d4b0(0x2580)][_0x47d4b0(0x1340)]=_0x2920bf[_0x47d4b0(0x325)]?(_0x5cfa5c['playback'][_0x47d4b0(0x586)]||'')+_0x47d4b0(0x19e4)+_0x2920bf[_0x47d4b0(0x325)]+'}':(_0x5cfa5c[_0x47d4b0(0x2580)]['prefix']||'')+_0x47d4b0(0xcdd),_0x2920bf[_0x47d4b0(0xf8d)]!=='none'?_0x5cfa5c[_0x47d4b0(0x2580)]['options'][_0x47d4b0(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0x5cfa5c[_0x47d4b0(0x2580)][_0x47d4b0(0x2224)]+='U(xcally-mixmonitor-context)'):_0x5cfa5c[_0x47d4b0(0x2580)][_0x47d4b0(0x2224)]=_0x5cfa5c['playback'][_0x47d4b0(0x2224)][_0x47d4b0(0x288f)](_0x47d4b0(0x106a),''));if(_0x5cfa5c['playback'][_0x47d4b0(0x299b)]&&_0x5cfa5c[_0x47d4b0(0x2580)][_0x47d4b0(0x299b)]===_0x47d4b0(0x197c)){}else switch((_0x5cfa5c['playback']['app']||_0x5cfa5c[_0x47d4b0(0x2580)][_0x47d4b0(0x299b)])[_0x47d4b0(0x1680)]()){case _0x47d4b0(0x19d1):_0x5cfa5c[_0x47d4b0(0x2580)][_0x47d4b0(0x28df)]=_0x5cfa5c[_0x47d4b0(0x2580)][_0x47d4b0(0x16b6)]+'='+_0x5cfa5c[_0x47d4b0(0x2580)][_0x47d4b0(0x327)];break;case _0x47d4b0(0x197c):break;default:_0x50563a[0x0]=_0x5cfa5c[_0x47d4b0(0x2580)][_0x47d4b0(0x28df)],_0x50563a[0x1]=_0x5cfa5c[_0x47d4b0(0x2580)]['options'],_0x5cfa5c[_0x47d4b0(0x2580)][_0x47d4b0(0x28df)]=_0x50563a['join'](',');}_0x2526f7(_0x5cfa5c[_0x47d4b0(0x2580)]);}function _0x2526f7(_0xe1b363){const _0xe43735=_0x248c6a;_0x5379b6[_0xe43735(0x1426)](_0xe1b363);}}const _0x50c3d8=_0x453d24;;_0x4a3067['$inject']=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x23b1),'internalroute',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x4a3067(_0x312d60,_0x5caf45,_0x5d57ef,_0x562012,_0x5e28b3,_0x1d6e2b,_0x44b21d,_0x4becdf){const _0x28a13d=_0x5537c6,_0x96dc0f=this;_0x96dc0f['currentUser']=_0x44b21d[_0x28a13d(0x21e8)](),_0x96dc0f['errors']=[],_0x96dc0f[_0x28a13d(0x1386)]='VOICE.EDIT_'+(_0x562012[_0x28a13d(0x299b)]||_0x562012[_0x28a13d(0x22e1)])[_0x28a13d(0x2335)](),_0x96dc0f[_0x28a13d(0x11cf)]=angular[_0x28a13d(0x17fe)](_0x562012),_0x96dc0f['crudPermissions']=_0x4becdf,_0x96dc0f[_0x28a13d(0xf4c)]={};if(_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x28df)])switch(_0x96dc0f['queue'][_0x28a13d(0x299b)]?_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x299b)][_0x28a13d(0x1680)]():_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x22e1)][_0x28a13d(0x1680)]()){case _0x28a13d(0x197c):break;case'dialogflow':{const _0x512f9f=_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x28df)][_0x28a13d(0xbe1)](',');_0x96dc0f[_0x28a13d(0x11cf)]['key']=_0x512f9f[0x0],_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x12b4)]=_0x512f9f[0x1],_0x96dc0f['queue'][_0x28a13d(0x173a)]=_0x512f9f[_0x28a13d(0x14cb)](0x2,_0x512f9f[_0x28a13d(0xfd0)])[_0x28a13d(0x1f66)](',');}break;case _0x28a13d(0xece):{const _0x55a149=_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x28df)][_0x28a13d(0xbe1)](',');_0x96dc0f[_0x28a13d(0x11cf)]['projectId']=_0x55a149[0x0],_0x96dc0f[_0x28a13d(0x11cf)]['clientEmail']=_0x55a149[0x1],_0x96dc0f[_0x28a13d(0x11cf)]['privateKey']=_0x55a149[0x2],_0x96dc0f['queue'][_0x28a13d(0x12b4)]=_0x55a149[0x3],_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x173a)]=_0x55a149['slice'](0x4,_0x55a149[_0x28a13d(0xfd0)])[_0x28a13d(0x1f66)](',');}break;case _0x28a13d(0x123a):{const _0x446427=_0x96dc0f['queue'][_0x28a13d(0x28df)]['split'](',');_0x96dc0f['queue'][_0x28a13d(0x413)]=_0x446427[0x0],_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x21d9)]=_0x446427[0x1],_0x96dc0f['queue'][_0x28a13d(0xd50)]=_0x446427[0x2],_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x1c7f)]=_0x446427[0x3],_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x173a)]=_0x446427['slice'](0x4,_0x446427[_0x28a13d(0xfd0)])[_0x28a13d(0x1f66)](',');}break;case _0x28a13d(0x1f71):{const _0x3bc336=_0x96dc0f['queue'][_0x28a13d(0x28df)][_0x28a13d(0xbe1)](',');_0x96dc0f[_0x28a13d(0x11cf)]['times']=isNaN(_0x3bc336[0x0])?_0x3bc336[0x0]:parseInt(_0x3bc336[0x0],0xa),_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x19d3)]=_0x3bc336[_0x28a13d(0x14cb)](0x1,_0x3bc336[_0x28a13d(0xfd0)])['join'](',');}break;case _0x28a13d(0x155e):_0x96dc0f['queue'][_0x28a13d(0x19d3)]=_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x28df)];break;case _0x28a13d(0x19d1):_0x96dc0f['queue'][_0x28a13d(0x16b6)]=_0x96dc0f['queue'][_0x28a13d(0x28df)][_0x28a13d(0xbe1)]('=')[0x0],_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x327)]=_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x28df)]['split']('=')[0x1];break;case _0x28a13d(0x4b4):_0x96dc0f['queue'][_0x28a13d(0x12a7)]=_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x28df)];break;default:{const _0x336a21=_0x96dc0f[_0x28a13d(0x11cf)]['appdata'][_0x28a13d(0xbe1)](',');_0x96dc0f['queue'][_0x28a13d(0x11cf)]=_0x39641b()[_0x28a13d(0xce9)](_0x336a21[0x0])?_0x336a21[0x0]:isNaN(_0x336a21[0x0])?_0x336a21[0x0]:parseInt(_0x336a21[0x0],0xa),_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x2224)]=_0x39641b()[_0x28a13d(0xce9)](_0x336a21[0x1])?_0x336a21[0x1]:isNaN(_0x336a21[0x1])?_0x336a21[0x1]:parseInt(_0x336a21[0x1],0xa),_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x237e)]=_0x39641b()['isEmpty'](_0x336a21[0x2])?_0x336a21[0x2]:isNaN(_0x336a21[0x2])?_0x336a21[0x2]:parseInt(_0x336a21[0x2],0xa),_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x1e9)]=_0x39641b()[_0x28a13d(0xce9)](_0x336a21[0x3])?_0x336a21[0x3]:isNaN(_0x336a21[0x3])?_0x336a21[0x3]:parseInt(_0x336a21[0x3],0xa),_0x96dc0f['queue'][_0x28a13d(0x1719)]=_0x39641b()['isEmpty'](_0x336a21[0x4])?_0x336a21[0x4]:isNaN(_0x336a21[0x4])?_0x336a21[0x4]:parseInt(_0x336a21[0x4],0xa),_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x4b4)]=_0x39641b()[_0x28a13d(0xce9)](_0x336a21[0x5])?_0x336a21[0x5]:isNaN(_0x336a21[0x5])?_0x336a21[0x5]:parseInt(_0x336a21[0x5],0xa),_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x321)]=_0x39641b()[_0x28a13d(0xce9)](_0x336a21[0x6])?_0x336a21[0x6]:isNaN(_0x336a21[0x6])?_0x336a21[0x6]:parseInt(_0x336a21[0x6],0xa),_0x96dc0f[_0x28a13d(0x11cf)]['gosub']=_0x39641b()[_0x28a13d(0xce9)](_0x336a21[0x7])?_0x336a21[0x7]:isNaN(_0x336a21[0x7])?_0x336a21[0x7]:parseInt(_0x336a21[0x7],0xa),_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x5a5)]=_0x39641b()[_0x28a13d(0xce9)](_0x336a21[0x8])?_0x336a21[0x8]:isNaN(_0x336a21[0x8])?_0x336a21[0x8]:parseInt(_0x336a21[0x8],0xa),_0x96dc0f[_0x28a13d(0x11cf)]['position']=_0x39641b()[_0x28a13d(0xce9)](_0x336a21[0x9])?_0x336a21[0x9]:isNaN(_0x336a21[0x9])?_0x336a21[0x9]:parseInt(_0x336a21[0x9],0xa);}break;}else{}_0x96dc0f[_0x28a13d(0x11cf)]['type']&&_0x96dc0f['queue'][_0x28a13d(0x66a)][_0x28a13d(0x1680)]()===_0x28a13d(0x895)&&_0x96dc0f[_0x28a13d(0x11cf)]['appType'][_0x28a13d(0x1680)]()===_0x28a13d(0x20ff)&&(_0x96dc0f[_0x28a13d(0x11cf)]['prefix']=_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x1340)]?_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x1340)]['split']('$')[0x0]:undefined,_0x96dc0f[_0x28a13d(0x11cf)]['callerId']=_0x96dc0f[_0x28a13d(0x11cf)][_0x28a13d(0x2816)]?'CALLERID(all)='+_0x96dc0f['queue'][_0x28a13d(0x2816)]:undefined);_0x96dc0f['saveInternalRouteApp']=_0x50b01a,_0x96dc0f[_0x28a13d(0xda0)]=_0xd88aac,_0x44b21d[_0x28a13d(0x22b6)]('admin')?_0x1d6e2b[_0x28a13d(0x1e9)][_0x28a13d(0xbf7)]({'fields':_0x28a13d(0x4ae),'sort':_0x28a13d(0x16b6),'nolimit':_0x28a13d(0x44d)})[_0x28a13d(0x1d77)][_0x28a13d(0x1cb0)](function(_0x22dbdd){const _0x42b40d=_0x28a13d;_0x96dc0f[_0x42b40d(0xe28)]=_0x22dbdd[_0x42b40d(0x2214)]||[];})[_0x28a13d(0x1c4)](function(_0x2a7d3e){const _0x539e9a=_0x28a13d;_0x5d57ef[_0x539e9a(0x218e)]({'title':_0x2a7d3e[_0x539e9a(0x291)]?'API:'+_0x2a7d3e[_0x539e9a(0x291)]+_0x539e9a(0x1657)+_0x2a7d3e[_0x539e9a(0xc22)]:_0x539e9a(0x1b9e),'msg':_0x2a7d3e['data']?JSON['stringify'](_0x2a7d3e[_0x539e9a(0x25c)]):_0x2a7d3e[_0x539e9a(0x147f)]()});}):_0x1d6e2b[_0x28a13d(0x1e9)]['get']({'fields':'id,name,save_name','sort':_0x28a13d(0x16b6),'nolimit':_0x28a13d(0x44d)})['$promise'][_0x28a13d(0x1cb0)](function(_0x2b62b9){const _0x1dd7b8=_0x28a13d;_0x96dc0f[_0x1dd7b8(0xe28)]=_0x2b62b9['rows']||[];})['then'](function(){const _0x2e7609=_0x28a13d;return _0x1d6e2b['userProfileSection'][_0x2e7609(0xbf7)]({'userProfileId':_0x96dc0f[_0x2e7609(0xe76)]['userProfileId'],'sectionId':0x3ef})[_0x2e7609(0x1d77)];})[_0x28a13d(0x1cb0)](function(_0xc0430b){const _0x2f21ea=_0x28a13d,_0x122820=_0xc0430b&&_0xc0430b['rows']?_0xc0430b[_0x2f21ea(0x2214)][0x0]:null;if(!_0x122820){const _0x1864b9=[];let _0x2fb737=null;_0x96dc0f[_0x2f21ea(0x11cf)]&&(_0x2fb737=_0x39641b()[_0x2f21ea(0x13b4)](_0x96dc0f[_0x2f21ea(0xe28)],{'save_name':_0x96dc0f['queue'][_0x2f21ea(0x1e9)]}));for(let _0x134b33=0x0;_0x134b33<_0x96dc0f[_0x2f21ea(0xe28)][_0x2f21ea(0xfd0)];_0x134b33++){_0x2fb737&&_0x96dc0f['sounds'][_0x134b33]['id']===_0x2fb737['id']&&(_0x96dc0f[_0x2f21ea(0xe28)][_0x134b33][_0x2f21ea(0x15da)]=![],_0x1864b9[_0x2f21ea(0x2785)](_0x96dc0f[_0x2f21ea(0xe28)][_0x134b33]));}_0x96dc0f[_0x2f21ea(0xe28)]=_0x1864b9;}else{if(!_0x122820['autoAssociation'])return _0x1d6e2b['userProfileResource'][_0x2f21ea(0xbf7)]({'sectionId':_0x122820['id']})['$promise'][_0x2f21ea(0x1cb0)](function(_0x504ba7){const _0x5d423a=_0x2f21ea,_0xf76942=_0x39641b()['map'](_0x504ba7[_0x5d423a(0x2214)],function(_0x1e37e9){const _0x521394=_0x5d423a;return _0x39641b()[_0x521394(0x13b4)](_0x96dc0f[_0x521394(0xe28)],{'id':_0x1e37e9[_0x521394(0x2982)]});});let _0x8f1d06=null;_0x96dc0f[_0x5d423a(0x11cf)]&&(_0x8f1d06=_0x39641b()[_0x5d423a(0x13b4)](_0x96dc0f['sounds'],{'save_name':_0x96dc0f[_0x5d423a(0x11cf)][_0x5d423a(0x1e9)]}));if(_0x8f1d06&&!_0x39641b()['some'](_0xf76942,['id',_0x8f1d06['id']])){const _0x483504=_0x39641b()[_0x5d423a(0x13b4)](_0x96dc0f[_0x5d423a(0xe28)],{'id':_0x8f1d06['id']});_0x483504[_0x5d423a(0x15da)]=![],_0xf76942[_0x5d423a(0x2785)](_0x483504);}_0x96dc0f[_0x5d423a(0xe28)]=_0xf76942;});}})[_0x28a13d(0x1c4)](function(_0xa83505){const _0x5f5da5=_0x28a13d;_0x5d57ef[_0x5f5da5(0x218e)]({'title':_0xa83505[_0x5f5da5(0x291)]?_0x5f5da5(0xeb9)+_0xa83505['status']+_0x5f5da5(0x1657)+_0xa83505[_0x5f5da5(0xc22)]:_0x5f5da5(0x3a0),'msg':_0xa83505['data']?JSON[_0x5f5da5(0x2701)](_0xa83505[_0x5f5da5(0x25c)]):_0xa83505[_0x5f5da5(0x147f)]()});}),_0x44b21d[_0x28a13d(0x22b6)]('admin')?_0x1d6e2b[_0x28a13d(0x26b3)][_0x28a13d(0xbf7)]({'type':_0x28a13d(0x26c0),'fields':_0x28a13d(0x1896),'sort':_0x28a13d(0x16b6),'nolimit':_0x28a13d(0x44d)})['$promise'][_0x28a13d(0x1cb0)](function(_0x2b89a1){const _0x523469=_0x28a13d;_0x96dc0f[_0x523469(0x971)]=_0x2b89a1[_0x523469(0x2214)]||[];})[_0x28a13d(0x1c4)](function(_0x15ada){const _0x331aea=_0x28a13d;_0x5d57ef[_0x331aea(0x218e)]({'title':_0x15ada[_0x331aea(0x291)]?'API:'+_0x15ada[_0x331aea(0x291)]+_0x331aea(0x1657)+_0x15ada[_0x331aea(0xc22)]:_0x331aea(0x277c),'msg':_0x15ada[_0x331aea(0x25c)]?JSON['stringify'](_0x15ada['data']):_0x15ada[_0x331aea(0x147f)]()});}):_0x1d6e2b[_0x28a13d(0x26b3)][_0x28a13d(0xbf7)]({'type':_0x28a13d(0x26c0),'fields':_0x28a13d(0x1896),'sort':'name','nolimit':'true'})[_0x28a13d(0x1d77)]['then'](function(_0x3f655a){const _0x2a705c=_0x28a13d;_0x96dc0f['queues']=_0x3f655a[_0x2a705c(0x2214)]||[];})['then'](function(){const _0x42e519=_0x28a13d;return _0x1d6e2b[_0x42e519(0x2199)]['get']({'userProfileId':_0x96dc0f[_0x42e519(0xe76)]['userProfileId'],'sectionId':0x191})['$promise'];})[_0x28a13d(0x1cb0)](function(_0x6b9f72){const _0xb5cffd=_0x28a13d,_0x2ca9d8=_0x6b9f72&&_0x6b9f72[_0xb5cffd(0x2214)]?_0x6b9f72['rows'][0x0]:null;if(!_0x2ca9d8){const _0x2fc20e=[];let _0x2fad86=null;_0x96dc0f[_0xb5cffd(0x11cf)]&&(_0x2fad86=_0x39641b()[_0xb5cffd(0x13b4)](_0x96dc0f[_0xb5cffd(0x971)],{'name':_0x96dc0f[_0xb5cffd(0x11cf)][_0xb5cffd(0x11cf)]}));for(let _0x23b9a2=0x0;_0x23b9a2<_0x96dc0f[_0xb5cffd(0x971)][_0xb5cffd(0xfd0)];_0x23b9a2++){_0x2fad86&&_0x96dc0f['queues'][_0x23b9a2]['id']===_0x2fad86['id']&&(_0x96dc0f[_0xb5cffd(0x971)][_0x23b9a2][_0xb5cffd(0x15da)]=![],_0x2fc20e[_0xb5cffd(0x2785)](_0x96dc0f[_0xb5cffd(0x971)][_0x23b9a2]));}_0x96dc0f[_0xb5cffd(0x971)]=_0x2fc20e;}else{if(!_0x2ca9d8['autoAssociation'])return _0x1d6e2b['userProfileResource'][_0xb5cffd(0xbf7)]({'sectionId':_0x2ca9d8['id']})[_0xb5cffd(0x1d77)][_0xb5cffd(0x1cb0)](function(_0x3587eb){const _0x27f718=_0xb5cffd,_0x2d9632=_0x39641b()[_0x27f718(0x1de2)](_0x3587eb[_0x27f718(0x2214)],function(_0x33447a){const _0x21208b=_0x27f718;return _0x39641b()['find'](_0x96dc0f[_0x21208b(0x971)],{'id':_0x33447a['resourceId']});});let _0x33f5ac=null;_0x96dc0f[_0x27f718(0x11cf)]&&(_0x33f5ac=_0x39641b()[_0x27f718(0x13b4)](_0x96dc0f['queues'],{'name':_0x96dc0f['queue'][_0x27f718(0x11cf)]}));if(_0x33f5ac&&!_0x39641b()[_0x27f718(0x727)](_0x2d9632,['id',_0x33f5ac['id']])){const _0x5946df=_0x39641b()[_0x27f718(0x13b4)](_0x96dc0f['queues'],{'id':_0x33f5ac['id']});_0x5946df[_0x27f718(0x15da)]=![],_0x2d9632[_0x27f718(0x2785)](_0x5946df);}_0x96dc0f[_0x27f718(0x971)]=_0x2d9632;});}})['catch'](function(_0x120972){const _0x5f452c=_0x28a13d;_0x5d57ef[_0x5f452c(0x218e)]({'title':_0x120972['status']?'API:'+_0x120972[_0x5f452c(0x291)]+_0x5f452c(0x1657)+_0x120972[_0x5f452c(0xc22)]:_0x5f452c(0x1af2),'msg':_0x120972[_0x5f452c(0x25c)]?JSON[_0x5f452c(0x2701)](_0x120972[_0x5f452c(0x25c)]):_0x120972['toString']()});});function _0x50b01a(){const _0x6d930f=_0x28a13d;_0x96dc0f[_0x6d930f(0x1a7c)]=[];const _0x363e5a=[];_0x96dc0f[_0x6d930f(0x11cf)]['type']&&_0x96dc0f[_0x6d930f(0x11cf)]['type'][_0x6d930f(0x1680)]()==='outbound'&&_0x96dc0f[_0x6d930f(0x11cf)][_0x6d930f(0x299b)]===_0x6d930f(0x25f4)&&(_0x96dc0f[_0x6d930f(0x11cf)][_0x6d930f(0x1340)]=_0x5e28b3[_0x6d930f(0x325)]?(_0x96dc0f['queue'][_0x6d930f(0x586)]||'')+_0x6d930f(0x19e4)+_0x5e28b3[_0x6d930f(0x325)]+'}':(_0x96dc0f[_0x6d930f(0x11cf)][_0x6d930f(0x586)]||'')+_0x6d930f(0xcdd),_0x5e28b3[_0x6d930f(0xf8d)]!=='none'?_0x96dc0f[_0x6d930f(0x11cf)]['options'][_0x6d930f(0xd8a)](_0x6d930f(0x106a))<0x0&&(_0x96dc0f[_0x6d930f(0x11cf)][_0x6d930f(0x2224)]+=_0x6d930f(0x106a)):_0x96dc0f[_0x6d930f(0x11cf)][_0x6d930f(0x2224)]=_0x96dc0f[_0x6d930f(0x11cf)][_0x6d930f(0x2224)][_0x6d930f(0x288f)]('U(xcally-mixmonitor-context)',''));if(_0x96dc0f['queue'][_0x6d930f(0x299b)]&&_0x96dc0f[_0x6d930f(0x11cf)][_0x6d930f(0x299b)]===_0x6d930f(0x197c)){}else switch((_0x96dc0f[_0x6d930f(0x11cf)][_0x6d930f(0x22e1)]||_0x96dc0f['queue'][_0x6d930f(0x299b)])['toLowerCase']()){case'set':_0x96dc0f['queue'][_0x6d930f(0x28df)]=_0x96dc0f[_0x6d930f(0x11cf)][_0x6d930f(0x16b6)]+'='+_0x96dc0f[_0x6d930f(0x11cf)][_0x6d930f(0x327)];break;case _0x6d930f(0x197c):break;default:_0x363e5a[0x0]=_0x96dc0f[_0x6d930f(0x11cf)]['queue'],_0x363e5a[0x1]=_0x96dc0f['queue']['options'],_0x363e5a[0x2]=_0x96dc0f[_0x6d930f(0x11cf)][_0x6d930f(0x237e)],_0x363e5a[0x3]=_0x96dc0f['queue'][_0x6d930f(0x1e9)],_0x363e5a[0x4]=_0x96dc0f[_0x6d930f(0x11cf)][_0x6d930f(0x1719)],_0x363e5a[0x5]=_0x96dc0f[_0x6d930f(0x11cf)][_0x6d930f(0x4b4)],_0x363e5a[0x6]=_0x96dc0f[_0x6d930f(0x11cf)]['macro'],_0x363e5a[0x7]=_0x96dc0f[_0x6d930f(0x11cf)][_0x6d930f(0x20fb)],_0x363e5a[0x8]=_0x96dc0f['queue'][_0x6d930f(0x5a5)],_0x363e5a[0x9]=_0x96dc0f['queue']['position'],_0x96dc0f[_0x6d930f(0x11cf)][_0x6d930f(0x28df)]=_0x363e5a[_0x6d930f(0x1f66)](',');}_0xd88aac(_0x96dc0f[_0x6d930f(0x11cf)]);}function _0xd88aac(_0x61adbd){const _0x506c70=_0x28a13d;_0x312d60[_0x506c70(0x1426)](_0x61adbd);}}const _0x484cce=_0x4a3067;;_0x20c0c0[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x23b1),_0x5537c6(0x3af),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x20c0c0(_0x5abc02,_0x9d57ef,_0x4e8dc0,_0x6fe604,_0x2ab26f,_0x1b2164,_0x44d2ab,_0x230b8e){const _0xbcc505=_0x5537c6,_0x3e4600=this;_0x3e4600[_0xbcc505(0xe76)]=_0x44d2ab[_0xbcc505(0x21e8)](),_0x3e4600['errors']=[],_0x3e4600['title']='VOICE.EDIT_'+(_0x6fe604['appType']||_0x6fe604['app'])[_0xbcc505(0x2335)](),_0x3e4600[_0xbcc505(0x9b3)]=angular[_0xbcc505(0x17fe)](_0x6fe604),_0x3e4600[_0xbcc505(0x1b1a)]=_0x230b8e,_0x3e4600['hasModulePermissions']={};if(_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x28df)])switch(_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x299b)]?_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x299b)]['toLowerCase']():_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x22e1)][_0xbcc505(0x1680)]()){case _0xbcc505(0x197c):break;case _0xbcc505(0x711):{const _0x551ef9=_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x28df)][_0xbcc505(0xbe1)](',');_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0xee8)]=_0x551ef9[0x0],_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x12b4)]=_0x551ef9[0x1],_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x173a)]=_0x551ef9[_0xbcc505(0x14cb)](0x2,_0x551ef9[_0xbcc505(0xfd0)])[_0xbcc505(0x1f66)](',');}break;case _0xbcc505(0xece):{const _0x2a7e2d=_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x28df)][_0xbcc505(0xbe1)](',');_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x2854)]=_0x2a7e2d[0x0],_0x3e4600['ringgroup']['clientEmail']=_0x2a7e2d[0x1],_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x29d6)]=_0x2a7e2d[0x2],_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x12b4)]=_0x2a7e2d[0x3],_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x173a)]=_0x2a7e2d['slice'](0x4,_0x2a7e2d[_0xbcc505(0xfd0)])[_0xbcc505(0x1f66)](',');}break;case _0xbcc505(0x123a):{const _0x57410a=_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x28df)][_0xbcc505(0xbe1)](',');_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x413)]=_0x57410a[0x0],_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x21d9)]=_0x57410a[0x1],_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0xd50)]=_0x57410a[0x2],_0x3e4600['ringgroup']['botname']=_0x57410a[0x3],_0x3e4600[_0xbcc505(0x9b3)]['welcomemessage']=_0x57410a[_0xbcc505(0x14cb)](0x4,_0x57410a['length'])[_0xbcc505(0x1f66)](',');}break;case _0xbcc505(0x1f71):{const _0x5ed8ae=_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x28df)][_0xbcc505(0xbe1)](',');_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x18a5)]=isNaN(_0x5ed8ae[0x0])?_0x5ed8ae[0x0]:parseInt(_0x5ed8ae[0x0],0xa),_0x3e4600['ringgroup']['text']=_0x5ed8ae['slice'](0x1,_0x5ed8ae['length'])['join'](',');}break;case _0xbcc505(0x155e):_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x19d3)]=_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x28df)];break;case'set':_0x3e4600['ringgroup'][_0xbcc505(0x16b6)]=_0x3e4600['ringgroup'][_0xbcc505(0x28df)][_0xbcc505(0xbe1)]('=')[0x0],_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x327)]=_0x3e4600[_0xbcc505(0x9b3)]['appdata'][_0xbcc505(0xbe1)]('=')[0x1];break;case _0xbcc505(0x4b4):_0x3e4600[_0xbcc505(0x9b3)]['project']=_0x3e4600['ringgroup']['appdata'];break;default:{const _0x157093=_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x28df)]['split'](',');_0x3e4600['ringgroup'][_0xbcc505(0x1989)]=_0x157093[0x0][_0xbcc505(0xbe1)]('&'),_0x3e4600[_0xbcc505(0x9b3)]['timeout']=_0x39641b()[_0xbcc505(0xce9)](_0x157093[0x1])?_0x157093[0x1]:isNaN(_0x157093[0x1])?_0x157093[0x1]:parseInt(_0x157093[0x1],0xa),_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x2224)]=_0x39641b()[_0xbcc505(0xce9)](_0x157093[0x2])?_0x157093[0x2]:isNaN(_0x157093[0x2])?_0x157093[0x2]:parseInt(_0x157093[0x2],0xa),_0x3e4600['ringgroup'][_0xbcc505(0x135b)]=_0x39641b()[_0xbcc505(0xce9)](_0x157093[0x3])?_0x157093[0x3]:isNaN(_0x157093[0x3])?_0x157093[0x3]:parseInt(_0x157093[0x3],0xa);}break;}else{}_0x3e4600['ringgroup'][_0xbcc505(0x66a)]&&_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x66a)]['toLowerCase']()===_0xbcc505(0x895)&&_0x3e4600[_0xbcc505(0x9b3)]['appType'][_0xbcc505(0x1680)]()===_0xbcc505(0x20ff)&&(_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x586)]=_0x3e4600['ringgroup'][_0xbcc505(0x1340)]?_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x1340)][_0xbcc505(0xbe1)]('$')[0x0]:undefined,_0x3e4600[_0xbcc505(0x9b3)][_0xbcc505(0x1e7c)]=_0x3e4600['ringgroup'][_0xbcc505(0x2816)]?_0xbcc505(0x25f9)+_0x3e4600[_0xbcc505(0x9b3)]['callerID']:undefined);_0x3e4600['saveInternalRouteApp']=_0x2a56,_0x3e4600[_0xbcc505(0xda0)]=_0x153caa;const _0x26c997=[{'id':0xca,'role':_0xbcc505(0x1eff)},{'id':0xcb,'role':'telephone'}];let _0x144e05=null;_0x44d2ab[_0xbcc505(0x22b6)]('admin')?_0x1b2164[_0xbcc505(0xebe)]['get']({'fields':'id,name,role','sort':_0xbcc505(0x16b6),'nolimit':_0xbcc505(0x44d)})[_0xbcc505(0x1d77)][_0xbcc505(0x1cb0)](function(_0x17937b){const _0x2fddab=_0xbcc505;_0x3e4600[_0x2fddab(0x1e30)]=_0x17937b[_0x2fddab(0x2214)]||[];})[_0xbcc505(0x1c4)](function(_0x33cab0){const _0x1bf87c=_0xbcc505;_0x4e8dc0['error']({'title':_0x33cab0[_0x1bf87c(0x291)]?_0x1bf87c(0xeb9)+_0x33cab0[_0x1bf87c(0x291)]+'\x20-\x20'+_0x33cab0['statusText']:_0x1bf87c(0x124f),'msg':_0x33cab0[_0x1bf87c(0x25c)]?JSON['stringify'](_0x33cab0[_0x1bf87c(0x25c)]):_0x33cab0['toString']()});}):_0x1b2164[_0xbcc505(0xebe)][_0xbcc505(0xbf7)]({'fields':'id,name,role','sort':_0xbcc505(0x16b6),'nolimit':_0xbcc505(0x44d)})[_0xbcc505(0x1d77)]['then'](function(_0x5b72c8){const _0x2439e3=_0xbcc505;_0x144e05=_0x5b72c8[_0x2439e3(0x2214)]||[];})['then'](function(){const _0x19cd32=_0xbcc505,_0x4ae826=[];for(let _0x1045b7=0x0;_0x1045b7<_0x26c997[_0x19cd32(0xfd0)];_0x1045b7++){_0x4ae826[_0x19cd32(0x2785)](_0x1b2164[_0x19cd32(0x2199)][_0x19cd32(0xbf7)]({'userProfileId':_0x3e4600['currentUser']['userProfileId'],'sectionId':_0x26c997[_0x1045b7]['id']})['$promise']);}return _0x9d57ef[_0x19cd32(0x223b)](_0x4ae826);})[_0xbcc505(0x1cb0)](function(_0x5a6d7f){const _0x5cd62b=_0xbcc505,_0x4d4a5a=_0x39641b()[_0x5cd62b(0x1de2)](_0x5a6d7f,function(_0x4cc805){const _0x1dd31f=_0x5cd62b;return _0x4cc805&&_0x4cc805[_0x1dd31f(0x2214)]?_0x4cc805[_0x1dd31f(0x2214)][0x0]:null;}),_0x52b0cf=[];for(let _0x43cc4e=0x0;_0x43cc4e<_0x26c997[_0x5cd62b(0xfd0)];_0x43cc4e++){const _0x30ef98=_0x39641b()[_0x5cd62b(0x13b4)](_0x4d4a5a,[_0x5cd62b(0xec6),_0x26c997[_0x43cc4e]['id']]);if(_0x30ef98){if(!_0x30ef98[_0x5cd62b(0x12f4)])_0x52b0cf[_0x5cd62b(0x2785)](_0x1b2164[_0x5cd62b(0x1198)]['get']({'sectionId':_0x30ef98['id']})[_0x5cd62b(0x1d77)]);else{const _0x4334ec=[];_0x144e05['forEach'](function(_0x4f6dd5){const _0x179eba=_0x5cd62b;_0x4f6dd5[_0x179eba(0x26e6)]===_0x26c997[_0x43cc4e][_0x179eba(0x26e6)]&&_0x4334ec[_0x179eba(0x2785)](_0x4f6dd5);}),_0x52b0cf['push']({'rows':_0x4334ec,'count':_0x4334ec[_0x5cd62b(0xfd0)]});}}}return _0x9d57ef[_0x5cd62b(0x223b)](_0x52b0cf);})[_0xbcc505(0x1cb0)](function(_0x30d567){const _0x4bd160=_0xbcc505,_0x22f9d4=[];let _0x157a1b=null;_0x3e4600[_0x4bd160(0x9b3)]&&(_0x157a1b=_0x39641b()[_0x4bd160(0x13b4)](_0x144e05,{'name':_0x3e4600[_0x4bd160(0x9b3)][_0x4bd160(0x1989)]}));for(let _0x3c41ca=0x0;_0x3c41ca<_0x30d567[_0x4bd160(0xfd0)];_0x3c41ca++){const _0x5647ee=_0x30d567[_0x3c41ca][_0x4bd160(0x2214)]||[];_0x5647ee[_0x4bd160(0xf90)](function(_0x4bd95a){const _0x4995a2=_0x4bd160;_0x22f9d4[_0x4995a2(0x2785)](_0x4bd95a);});}_0x157a1b&&!_0x39641b()[_0x4bd160(0x727)](_0x22f9d4,[_0x4bd160(0x2982),_0x157a1b['id']])&&_0x144e05[_0x4bd160(0xf90)](function(_0x270b37){const _0x49cf01=_0x4bd160;_0x270b37['id']===_0x157a1b['id']&&(_0x270b37[_0x49cf01(0x15da)]=![],_0x22f9d4['push'](_0x270b37));}),_0x3e4600[_0x4bd160(0x1e30)]=_0x22f9d4;})[_0xbcc505(0x1c4)](function(_0x2a780c){const _0x4afa39=_0xbcc505;_0x4e8dc0[_0x4afa39(0x218e)]({'title':_0x2a780c[_0x4afa39(0x291)]?_0x4afa39(0xeb9)+_0x2a780c['status']+_0x4afa39(0x1657)+_0x2a780c[_0x4afa39(0xc22)]:_0x4afa39(0x1e94),'msg':_0x2a780c['data']?JSON[_0x4afa39(0x2701)](_0x2a780c[_0x4afa39(0x25c)]):_0x2a780c['toString']()});});function _0x2a56(){const _0x5afc62=_0xbcc505;_0x3e4600[_0x5afc62(0x1a7c)]=[];const _0x2d7d28=[];_0x3e4600[_0x5afc62(0x9b3)][_0x5afc62(0x66a)]&&_0x3e4600[_0x5afc62(0x9b3)][_0x5afc62(0x66a)]['toLowerCase']()===_0x5afc62(0x895)&&_0x3e4600[_0x5afc62(0x9b3)]['appType']===_0x5afc62(0x25f4)&&(_0x3e4600[_0x5afc62(0x9b3)][_0x5afc62(0x1340)]=_0x2ab26f[_0x5afc62(0x325)]?(_0x3e4600[_0x5afc62(0x9b3)][_0x5afc62(0x586)]||'')+_0x5afc62(0x19e4)+_0x2ab26f['cutdigits']+'}':(_0x3e4600[_0x5afc62(0x9b3)][_0x5afc62(0x586)]||'')+_0x5afc62(0xcdd),_0x2ab26f[_0x5afc62(0xf8d)]!==_0x5afc62(0x13b1)?_0x3e4600[_0x5afc62(0x9b3)][_0x5afc62(0x2224)][_0x5afc62(0xd8a)](_0x5afc62(0x106a))<0x0&&(_0x3e4600['ringgroup'][_0x5afc62(0x2224)]+=_0x5afc62(0x106a)):_0x3e4600[_0x5afc62(0x9b3)][_0x5afc62(0x2224)]=_0x3e4600[_0x5afc62(0x9b3)][_0x5afc62(0x2224)][_0x5afc62(0x288f)](_0x5afc62(0x106a),''));if(_0x3e4600[_0x5afc62(0x9b3)]['appType']&&_0x3e4600[_0x5afc62(0x9b3)][_0x5afc62(0x299b)]===_0x5afc62(0x197c)){}else switch((_0x3e4600[_0x5afc62(0x9b3)][_0x5afc62(0x22e1)]||_0x3e4600[_0x5afc62(0x9b3)][_0x5afc62(0x299b)])['toLowerCase']()){case'set':_0x3e4600['ringgroup'][_0x5afc62(0x28df)]=_0x3e4600[_0x5afc62(0x9b3)][_0x5afc62(0x16b6)]+'='+_0x3e4600['ringgroup'][_0x5afc62(0x327)];break;case _0x5afc62(0x197c):break;default:_0x2d7d28[0x0]=_0x3e4600[_0x5afc62(0x9b3)]['multipleUsers'][_0x5afc62(0x1f66)]('&'),_0x2d7d28[0x1]=_0x3e4600[_0x5afc62(0x9b3)][_0x5afc62(0x1719)],_0x2d7d28[0x2]=_0x3e4600[_0x5afc62(0x9b3)][_0x5afc62(0x2224)],_0x2d7d28[0x3]=_0x3e4600[_0x5afc62(0x9b3)]['url'],_0x3e4600[_0x5afc62(0x9b3)]['appdata']=_0x2d7d28[_0x5afc62(0x1f66)](',');}_0x153caa(_0x3e4600[_0x5afc62(0x9b3)]);}function _0x153caa(_0x16d4be){_0x5abc02['hide'](_0x16d4be);}}const _0x33dda0=_0x20c0c0;;_0x551909[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),'internalrouteApp',_0x5537c6(0x3af),'api','Auth',_0x5537c6(0x1b1a)];function _0x551909(_0x43cca4,_0x2d7972,_0x498a13,_0x30fb17,_0xe8561b,_0x30bcce,_0x21ef4f,_0x4f8ed5){const _0x4f0a89=_0x5537c6,_0x2289a9=this;_0x2289a9['currentUser']=_0x21ef4f[_0x4f0a89(0x21e8)](),_0x2289a9[_0x4f0a89(0x1a7c)]=[],_0x2289a9['title']=_0x4f0a89(0x132b)+(_0x30fb17['appType']||_0x30fb17[_0x4f0a89(0x22e1)])[_0x4f0a89(0x2335)](),_0x2289a9[_0x4f0a89(0x19d1)]=angular['copy'](_0x30fb17),_0x2289a9[_0x4f0a89(0x1b1a)]=_0x4f8ed5,_0x2289a9['hasModulePermissions']={};if(_0x2289a9['set'][_0x4f0a89(0x28df)])switch(_0x2289a9['set'][_0x4f0a89(0x299b)]?_0x2289a9['set']['appType']['toLowerCase']():_0x2289a9['set'][_0x4f0a89(0x22e1)]['toLowerCase']()){case'custom':break;case _0x4f0a89(0x711):{const _0x2529c8=_0x2289a9[_0x4f0a89(0x19d1)]['appdata']['split'](',');_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0xee8)]=_0x2529c8[0x0],_0x2289a9[_0x4f0a89(0x19d1)]['language']=_0x2529c8[0x1],_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x173a)]=_0x2529c8[_0x4f0a89(0x14cb)](0x2,_0x2529c8[_0x4f0a89(0xfd0)])[_0x4f0a89(0x1f66)](',');}break;case _0x4f0a89(0xece):{const _0x172220=_0x2289a9[_0x4f0a89(0x19d1)]['appdata']['split'](',');_0x2289a9['set'][_0x4f0a89(0x2854)]=_0x172220[0x0],_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x12bf)]=_0x172220[0x1],_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x29d6)]=_0x172220[0x2],_0x2289a9['set'][_0x4f0a89(0x12b4)]=_0x172220[0x3],_0x2289a9['set'][_0x4f0a89(0x173a)]=_0x172220[_0x4f0a89(0x14cb)](0x4,_0x172220[_0x4f0a89(0xfd0)])[_0x4f0a89(0x1f66)](',');}break;case _0x4f0a89(0x123a):{const _0x35cb78=_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x28df)][_0x4f0a89(0xbe1)](',');_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x413)]=_0x35cb78[0x0],_0x2289a9['set']['secretaccesskey']=_0x35cb78[0x1],_0x2289a9['set']['lexregion']=_0x35cb78[0x2],_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x1c7f)]=_0x35cb78[0x3],_0x2289a9['set'][_0x4f0a89(0x173a)]=_0x35cb78[_0x4f0a89(0x14cb)](0x4,_0x35cb78[_0x4f0a89(0xfd0)])['join'](',');}break;case'autoreply':{const _0x4624f5=_0x2289a9['set'][_0x4f0a89(0x28df)]['split'](',');_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x18a5)]=isNaN(_0x4624f5[0x0])?_0x4624f5[0x0]:parseInt(_0x4624f5[0x0],0xa),_0x2289a9[_0x4f0a89(0x19d1)]['text']=_0x4624f5['slice'](0x1,_0x4624f5[_0x4f0a89(0xfd0)])[_0x4f0a89(0x1f66)](',');}break;case'message':_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x19d3)]=_0x2289a9['set'][_0x4f0a89(0x28df)];break;case'set':_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x16b6)]=_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x28df)]['split']('=')[0x0],_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x327)]=_0x2289a9[_0x4f0a89(0x19d1)]['appdata'][_0x4f0a89(0xbe1)]('=')[0x1];break;case _0x4f0a89(0x4b4):_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x12a7)]=_0x2289a9['set']['appdata'];break;default:{const _0x1f3188=_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x28df)][_0x4f0a89(0xbe1)]('=');_0x2289a9[_0x4f0a89(0x19d1)]['name']=_0x39641b()[_0x4f0a89(0xce9)](_0x1f3188[0x0])?_0x1f3188[0x0]:isNaN(_0x1f3188[0x0])?_0x1f3188[0x0]:parseInt(_0x1f3188[0x0],0xa),_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x327)]=_0x39641b()[_0x4f0a89(0xce9)](_0x1f3188[0x1])?_0x1f3188[0x1]:isNaN(_0x1f3188[0x1])?_0x1f3188[0x1]:parseInt(_0x1f3188[0x1],0xa);}break;}else{}_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x66a)]&&_0x2289a9['set']['type'][_0x4f0a89(0x1680)]()===_0x4f0a89(0x895)&&_0x2289a9[_0x4f0a89(0x19d1)]['appType'][_0x4f0a89(0x1680)]()===_0x4f0a89(0x20ff)&&(_0x2289a9['set']['prefix']=_0x2289a9['set']['phone']?_0x2289a9[_0x4f0a89(0x19d1)]['phone'][_0x4f0a89(0xbe1)]('$')[0x0]:undefined,_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x1e7c)]=_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x2816)]?'CALLERID(all)='+_0x2289a9[_0x4f0a89(0x19d1)][_0x4f0a89(0x2816)]:undefined);_0x2289a9[_0x4f0a89(0xb3b)]=_0x1b5574,_0x2289a9[_0x4f0a89(0xda0)]=_0x177cf2,_0x21ef4f[_0x4f0a89(0x22b6)](_0x4f0a89(0x1c60))?_0x30bcce[_0x4f0a89(0x1822)][_0x4f0a89(0xbf7)]({'fields':'id,name','sort':_0x4f0a89(0x16b6),'nolimit':'true'})[_0x4f0a89(0x1d77)]['then'](function(_0x6e4868){const _0x2d2aba=_0x4f0a89;_0x2289a9[_0x2d2aba(0x9a9)]=_0x6e4868[_0x2d2aba(0x2214)]||[];})[_0x4f0a89(0x1c4)](function(_0x3e6a8f){const _0x453039=_0x4f0a89;_0x498a13[_0x453039(0x218e)]({'title':_0x3e6a8f[_0x453039(0x291)]?_0x453039(0xeb9)+_0x3e6a8f[_0x453039(0x291)]+_0x453039(0x1657)+_0x3e6a8f[_0x453039(0xc22)]:'SYSTEM:GET_VARIABLES','msg':_0x3e6a8f[_0x453039(0x25c)]?JSON[_0x453039(0x2701)](_0x3e6a8f['data']):_0x3e6a8f['toString']()});}):_0x30bcce[_0x4f0a89(0x1822)][_0x4f0a89(0xbf7)]({'fields':_0x4f0a89(0x43c),'sort':_0x4f0a89(0x16b6),'nolimit':'true'})[_0x4f0a89(0x1d77)][_0x4f0a89(0x1cb0)](function(_0x5eb79f){const _0x5c7065=_0x4f0a89;_0x2289a9[_0x5c7065(0x9a9)]=_0x5eb79f['rows']||[];})[_0x4f0a89(0x1cb0)](function(){const _0x489285=_0x4f0a89;return _0x30bcce[_0x489285(0x2199)][_0x489285(0xbf7)]({'userProfileId':_0x2289a9[_0x489285(0xe76)][_0x489285(0x13c1)],'sectionId':0x3f4})[_0x489285(0x1d77)];})['then'](function(_0x46f42b){const _0x36dd79=_0x4f0a89,_0x2c0d10=_0x46f42b&&_0x46f42b[_0x36dd79(0x2214)]?_0x46f42b[_0x36dd79(0x2214)][0x0]:null;if(!_0x2c0d10){const _0x3bc5a4=[];let _0x44c97a=null;_0x2289a9[_0x36dd79(0x19d1)]&&(_0x44c97a=_0x39641b()[_0x36dd79(0x13b4)](_0x2289a9[_0x36dd79(0x9a9)],{'name':_0x2289a9[_0x36dd79(0x19d1)][_0x36dd79(0x16b6)]}));for(let _0x3f33fe=0x0;_0x3f33fe<_0x2289a9[_0x36dd79(0x9a9)][_0x36dd79(0xfd0)];_0x3f33fe++){_0x44c97a&&_0x2289a9[_0x36dd79(0x9a9)][_0x3f33fe]['id']===_0x44c97a['id']&&(_0x2289a9[_0x36dd79(0x9a9)][_0x3f33fe][_0x36dd79(0x15da)]=![],_0x3bc5a4[_0x36dd79(0x2785)](_0x2289a9[_0x36dd79(0x9a9)][_0x3f33fe]));}_0x2289a9['variables']=_0x3bc5a4;}else{if(!_0x2c0d10[_0x36dd79(0x12f4)])return _0x30bcce[_0x36dd79(0x1198)]['get']({'sectionId':_0x2c0d10['id']})[_0x36dd79(0x1d77)][_0x36dd79(0x1cb0)](function(_0x2702ab){const _0x4c7f45=_0x36dd79,_0x5f4b80=_0x39641b()[_0x4c7f45(0x1de2)](_0x2702ab[_0x4c7f45(0x2214)],function(_0x52cea3){const _0x30afe5=_0x4c7f45;return _0x39641b()[_0x30afe5(0x13b4)](_0x2289a9[_0x30afe5(0x9a9)],{'id':_0x52cea3['resourceId']});});let _0x1224b4=null;_0x2289a9[_0x4c7f45(0x19d1)]&&(_0x1224b4=_0x39641b()[_0x4c7f45(0x13b4)](_0x2289a9[_0x4c7f45(0x9a9)],{'name':_0x2289a9[_0x4c7f45(0x19d1)]['name']}));if(_0x1224b4&&!_0x39641b()[_0x4c7f45(0x727)](_0x5f4b80,['id',_0x1224b4['id']])){const _0x2cd6ab=_0x39641b()[_0x4c7f45(0x13b4)](_0x2289a9[_0x4c7f45(0x9a9)],{'id':_0x1224b4['id']});_0x2cd6ab[_0x4c7f45(0x15da)]=![],_0x5f4b80[_0x4c7f45(0x2785)](_0x2cd6ab);}_0x2289a9[_0x4c7f45(0x9a9)]=_0x5f4b80;});}})[_0x4f0a89(0x1c4)](function(_0x217d1b){const _0x5ac5b1=_0x4f0a89;_0x498a13['error']({'title':_0x217d1b[_0x5ac5b1(0x291)]?'API:'+_0x217d1b[_0x5ac5b1(0x291)]+_0x5ac5b1(0x1657)+_0x217d1b[_0x5ac5b1(0xc22)]:_0x5ac5b1(0xda5),'msg':_0x217d1b[_0x5ac5b1(0x25c)]?JSON[_0x5ac5b1(0x2701)](_0x217d1b[_0x5ac5b1(0x25c)]):_0x217d1b[_0x5ac5b1(0x147f)]()});});function _0x1b5574(){const _0x20b78a=_0x4f0a89;_0x2289a9[_0x20b78a(0x1a7c)]=[];const _0x483fe5=[];_0x2289a9[_0x20b78a(0x19d1)][_0x20b78a(0x66a)]&&_0x2289a9[_0x20b78a(0x19d1)][_0x20b78a(0x66a)][_0x20b78a(0x1680)]()===_0x20b78a(0x895)&&_0x2289a9[_0x20b78a(0x19d1)][_0x20b78a(0x299b)]==='outboundDial'&&(_0x2289a9[_0x20b78a(0x19d1)][_0x20b78a(0x1340)]=_0xe8561b[_0x20b78a(0x325)]?(_0x2289a9[_0x20b78a(0x19d1)][_0x20b78a(0x586)]||'')+_0x20b78a(0x19e4)+_0xe8561b[_0x20b78a(0x325)]+'}':(_0x2289a9[_0x20b78a(0x19d1)][_0x20b78a(0x586)]||'')+_0x20b78a(0xcdd),_0xe8561b[_0x20b78a(0xf8d)]!==_0x20b78a(0x13b1)?_0x2289a9[_0x20b78a(0x19d1)]['options'][_0x20b78a(0xd8a)](_0x20b78a(0x106a))<0x0&&(_0x2289a9[_0x20b78a(0x19d1)][_0x20b78a(0x2224)]+=_0x20b78a(0x106a)):_0x2289a9[_0x20b78a(0x19d1)][_0x20b78a(0x2224)]=_0x2289a9[_0x20b78a(0x19d1)][_0x20b78a(0x2224)][_0x20b78a(0x288f)]('U(xcally-mixmonitor-context)',''));if(_0x2289a9[_0x20b78a(0x19d1)][_0x20b78a(0x299b)]&&_0x2289a9['set']['appType']===_0x20b78a(0x197c)){}else switch((_0x2289a9[_0x20b78a(0x19d1)][_0x20b78a(0x22e1)]||_0x2289a9[_0x20b78a(0x19d1)][_0x20b78a(0x299b)])[_0x20b78a(0x1680)]()){case _0x20b78a(0x19d1):_0x2289a9[_0x20b78a(0x19d1)][_0x20b78a(0x28df)]=_0x2289a9[_0x20b78a(0x19d1)]['name']+'='+_0x2289a9[_0x20b78a(0x19d1)][_0x20b78a(0x327)];break;case _0x20b78a(0x197c):break;default:_0x483fe5[0x0]=_0x2289a9[_0x20b78a(0x19d1)][_0x20b78a(0x16b6)],_0x483fe5[0x1]=_0x2289a9[_0x20b78a(0x19d1)][_0x20b78a(0x327)],_0x2289a9[_0x20b78a(0x19d1)][_0x20b78a(0x28df)]=_0x483fe5[_0x20b78a(0x1f66)]('=');}_0x177cf2(_0x2289a9[_0x20b78a(0x19d1)]);}function _0x177cf2(_0x31f188){const _0x2cf127=_0x4f0a89;_0x43cca4[_0x2cf127(0x1426)](_0x31f188);}}const _0x3e3a9e=_0x551909;;_0x5cbd7a[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x23b1),_0x5537c6(0x3af),'api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x5cbd7a(_0x389b52,_0x496bb3,_0x3c9d1f,_0x4ab4c9,_0x2284b3,_0xacdb2,_0x2d3c53,_0x26860b){const _0x1c803f=_0x5537c6,_0x3e24ee=this;_0x3e24ee[_0x1c803f(0xe76)]=_0x2d3c53[_0x1c803f(0x21e8)](),_0x3e24ee[_0x1c803f(0x1a7c)]=[],_0x3e24ee[_0x1c803f(0x1386)]=_0x1c803f(0x132b)+(_0x4ab4c9['appType']||_0x4ab4c9['app'])['toUpperCase'](),_0x3e24ee[_0x1c803f(0xd66)]=angular[_0x1c803f(0x17fe)](_0x4ab4c9),_0x3e24ee[_0x1c803f(0x1b1a)]=_0x26860b,_0x3e24ee[_0x1c803f(0xf4c)]={};if(_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x28df)])switch(_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x299b)]?_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x299b)][_0x1c803f(0x1680)]():_0x3e24ee['voicemail'][_0x1c803f(0x22e1)]['toLowerCase']()){case _0x1c803f(0x197c):break;case _0x1c803f(0x711):{const _0x5a28eb=_0x3e24ee[_0x1c803f(0xd66)]['appdata'][_0x1c803f(0xbe1)](',');_0x3e24ee[_0x1c803f(0xd66)]['key']=_0x5a28eb[0x0],_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x12b4)]=_0x5a28eb[0x1],_0x3e24ee['voicemail']['welcomemessage']=_0x5a28eb[_0x1c803f(0x14cb)](0x2,_0x5a28eb[_0x1c803f(0xfd0)])[_0x1c803f(0x1f66)](',');}break;case _0x1c803f(0xece):{const _0x20ce23=_0x3e24ee[_0x1c803f(0xd66)]['appdata'][_0x1c803f(0xbe1)](',');_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x2854)]=_0x20ce23[0x0],_0x3e24ee[_0x1c803f(0xd66)]['clientEmail']=_0x20ce23[0x1],_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x29d6)]=_0x20ce23[0x2],_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x12b4)]=_0x20ce23[0x3],_0x3e24ee['voicemail'][_0x1c803f(0x173a)]=_0x20ce23[_0x1c803f(0x14cb)](0x4,_0x20ce23[_0x1c803f(0xfd0)])[_0x1c803f(0x1f66)](',');}break;case _0x1c803f(0x123a):{const _0x3564de=_0x3e24ee['voicemail'][_0x1c803f(0x28df)][_0x1c803f(0xbe1)](',');_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x413)]=_0x3564de[0x0],_0x3e24ee[_0x1c803f(0xd66)]['secretaccesskey']=_0x3564de[0x1],_0x3e24ee[_0x1c803f(0xd66)]['lexregion']=_0x3564de[0x2],_0x3e24ee['voicemail'][_0x1c803f(0x1c7f)]=_0x3564de[0x3],_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x173a)]=_0x3564de['slice'](0x4,_0x3564de[_0x1c803f(0xfd0)])['join'](',');}break;case _0x1c803f(0x1f71):{const _0x3afb89=_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x28df)][_0x1c803f(0xbe1)](',');_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x18a5)]=isNaN(_0x3afb89[0x0])?_0x3afb89[0x0]:parseInt(_0x3afb89[0x0],0xa),_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x19d3)]=_0x3afb89['slice'](0x1,_0x3afb89[_0x1c803f(0xfd0)])[_0x1c803f(0x1f66)](',');}break;case _0x1c803f(0x155e):_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x19d3)]=_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x28df)];break;case _0x1c803f(0x19d1):_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x16b6)]=_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x28df)][_0x1c803f(0xbe1)]('=')[0x0],_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x327)]=_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x28df)]['split']('=')[0x1];break;case _0x1c803f(0x4b4):_0x3e24ee[_0x1c803f(0xd66)]['project']=_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x28df)];break;default:{const _0x428f33=_0x3e24ee['voicemail']['appdata'][_0x1c803f(0xbe1)](',');_0x3e24ee[_0x1c803f(0xd66)]['voiceMail']=_0x39641b()[_0x1c803f(0xce9)](_0x428f33[0x0])?_0x428f33[0x0]:isNaN(_0x428f33[0x0])?_0x428f33[0x0]:parseInt(_0x428f33[0x0],0xa),_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x2224)]=_0x39641b()[_0x1c803f(0xce9)](_0x428f33[0x1])?_0x428f33[0x1]:isNaN(_0x428f33[0x1])?_0x428f33[0x1]:parseInt(_0x428f33[0x1],0xa);}break;}else{}_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x66a)]&&_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x66a)][_0x1c803f(0x1680)]()===_0x1c803f(0x895)&&_0x3e24ee[_0x1c803f(0xd66)]['appType'][_0x1c803f(0x1680)]()==='outbounddial'&&(_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x586)]=_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x1340)]?_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x1340)][_0x1c803f(0xbe1)]('$')[0x0]:undefined,_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x1e7c)]=_0x3e24ee[_0x1c803f(0xd66)][_0x1c803f(0x2816)]?_0x1c803f(0x25f9)+_0x3e24ee['voicemail'][_0x1c803f(0x2816)]:undefined);_0x3e24ee[_0x1c803f(0xb3b)]=_0x5ec62d,_0x3e24ee['closeDialog']=_0x25c486,_0x2d3c53[_0x1c803f(0x22b6)]('admin')?_0xacdb2[_0x1c803f(0x18d4)][_0x1c803f(0xbf7)]({'fields':'id,mailbox','sort':_0x1c803f(0x1b7a),'nolimit':_0x1c803f(0x44d)})[_0x1c803f(0x1d77)][_0x1c803f(0x1cb0)](function(_0x30db87){const _0x340801=_0x1c803f;_0x3e24ee[_0x340801(0x1951)]=_0x30db87[_0x340801(0x2214)]||[];})['catch'](function(_0xc88e9a){const _0x2d522e=_0x1c803f;_0x3c9d1f['error']({'title':_0xc88e9a['status']?_0x2d522e(0xeb9)+_0xc88e9a[_0x2d522e(0x291)]+_0x2d522e(0x1657)+_0xc88e9a[_0x2d522e(0xc22)]:_0x2d522e(0x1e3a),'msg':_0xc88e9a[_0x2d522e(0x25c)]?JSON[_0x2d522e(0x2701)](_0xc88e9a[_0x2d522e(0x25c)]):_0xc88e9a['toString']()});}):_0xacdb2['voiceMail']['get']({'fields':'id,mailbox','sort':_0x1c803f(0x1b7a),'nolimit':'true'})['$promise'][_0x1c803f(0x1cb0)](function(_0x19c247){_0x3e24ee['voiceMails']=_0x19c247['rows']||[];})[_0x1c803f(0x1cb0)](function(){const _0x59aa24=_0x1c803f;return _0xacdb2[_0x59aa24(0x2199)][_0x59aa24(0xbf7)]({'userProfileId':_0x3e24ee[_0x59aa24(0xe76)][_0x59aa24(0x13c1)],'sectionId':0x196})[_0x59aa24(0x1d77)];})[_0x1c803f(0x1cb0)](function(_0x331ba9){const _0x175bf2=_0x1c803f,_0xed026=_0x331ba9&&_0x331ba9[_0x175bf2(0x2214)]?_0x331ba9['rows'][0x0]:null;if(!_0xed026){const _0x2d7bc3=[];let _0x50993d=null;_0x3e24ee[_0x175bf2(0xd66)]&&(_0x50993d=_0x39641b()[_0x175bf2(0x13b4)](_0x3e24ee[_0x175bf2(0x1951)],{'mailbox':_0x3e24ee[_0x175bf2(0xd66)]['voiceMail']}));for(let _0xd2bc72=0x0;_0xd2bc72<_0x3e24ee['voiceMails'][_0x175bf2(0xfd0)];_0xd2bc72++){_0x50993d&&_0x3e24ee['voiceMails'][_0xd2bc72]['id']===_0x50993d['id']&&(_0x3e24ee['voiceMails'][_0xd2bc72][_0x175bf2(0x15da)]=![],_0x2d7bc3['push'](_0x3e24ee['voiceMails'][_0xd2bc72]));}_0x3e24ee[_0x175bf2(0x1951)]=_0x2d7bc3;}else{if(!_0xed026['autoAssociation'])return _0xacdb2[_0x175bf2(0x1198)][_0x175bf2(0xbf7)]({'sectionId':_0xed026['id']})[_0x175bf2(0x1d77)][_0x175bf2(0x1cb0)](function(_0x29ffbc){const _0x4e4b26=_0x175bf2,_0x2c9100=_0x39641b()['map'](_0x29ffbc['rows'],function(_0x2cfcfc){const _0x59419a=a0_0x5cbd;return _0x39641b()[_0x59419a(0x13b4)](_0x3e24ee['voiceMails'],{'id':_0x2cfcfc['resourceId']});});let _0x1e1d57=null;_0x3e24ee[_0x4e4b26(0xd66)]&&(_0x1e1d57=_0x39641b()[_0x4e4b26(0x13b4)](_0x3e24ee[_0x4e4b26(0x1951)],{'mailbox':_0x3e24ee[_0x4e4b26(0xd66)][_0x4e4b26(0x18d4)]}));if(_0x1e1d57&&!_0x39641b()[_0x4e4b26(0x727)](_0x2c9100,['id',_0x1e1d57['id']])){const _0x3c7a44=_0x39641b()['find'](_0x3e24ee['voiceMails'],{'id':_0x1e1d57['id']});_0x3c7a44[_0x4e4b26(0x15da)]=![],_0x2c9100[_0x4e4b26(0x2785)](_0x3c7a44);}_0x3e24ee[_0x4e4b26(0x1951)]=_0x2c9100;});}})[_0x1c803f(0x1c4)](function(_0x387a81){const _0x1586d4=_0x1c803f;_0x3c9d1f[_0x1586d4(0x218e)]({'title':_0x387a81[_0x1586d4(0x291)]?_0x1586d4(0xeb9)+_0x387a81[_0x1586d4(0x291)]+'\x20-\x20'+_0x387a81[_0x1586d4(0xc22)]:_0x1586d4(0x146f),'msg':_0x387a81[_0x1586d4(0x25c)]?JSON[_0x1586d4(0x2701)](_0x387a81[_0x1586d4(0x25c)]):_0x387a81[_0x1586d4(0x147f)]()});});function _0x5ec62d(){const _0x4a62f8=_0x1c803f;_0x3e24ee['errors']=[];const _0x26707a=[];_0x3e24ee['voicemail']['type']&&_0x3e24ee[_0x4a62f8(0xd66)][_0x4a62f8(0x66a)][_0x4a62f8(0x1680)]()===_0x4a62f8(0x895)&&_0x3e24ee[_0x4a62f8(0xd66)][_0x4a62f8(0x299b)]===_0x4a62f8(0x25f4)&&(_0x3e24ee[_0x4a62f8(0xd66)][_0x4a62f8(0x1340)]=_0x2284b3[_0x4a62f8(0x325)]?(_0x3e24ee[_0x4a62f8(0xd66)][_0x4a62f8(0x586)]||'')+_0x4a62f8(0x19e4)+_0x2284b3[_0x4a62f8(0x325)]+'}':(_0x3e24ee[_0x4a62f8(0xd66)][_0x4a62f8(0x586)]||'')+_0x4a62f8(0xcdd),_0x2284b3[_0x4a62f8(0xf8d)]!=='none'?_0x3e24ee[_0x4a62f8(0xd66)][_0x4a62f8(0x2224)][_0x4a62f8(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0x3e24ee['voicemail'][_0x4a62f8(0x2224)]+='U(xcally-mixmonitor-context)'):_0x3e24ee[_0x4a62f8(0xd66)][_0x4a62f8(0x2224)]=_0x3e24ee[_0x4a62f8(0xd66)][_0x4a62f8(0x2224)][_0x4a62f8(0x288f)](_0x4a62f8(0x106a),''));if(_0x3e24ee[_0x4a62f8(0xd66)][_0x4a62f8(0x299b)]&&_0x3e24ee['voicemail'][_0x4a62f8(0x299b)]===_0x4a62f8(0x197c)){}else switch((_0x3e24ee[_0x4a62f8(0xd66)][_0x4a62f8(0x22e1)]||_0x3e24ee[_0x4a62f8(0xd66)][_0x4a62f8(0x299b)])['toLowerCase']()){case _0x4a62f8(0x19d1):_0x3e24ee[_0x4a62f8(0xd66)][_0x4a62f8(0x28df)]=_0x3e24ee[_0x4a62f8(0xd66)][_0x4a62f8(0x16b6)]+'='+_0x3e24ee[_0x4a62f8(0xd66)][_0x4a62f8(0x327)];break;case _0x4a62f8(0x197c):break;default:_0x26707a[0x0]=_0x3e24ee[_0x4a62f8(0xd66)][_0x4a62f8(0x18d4)],_0x26707a[0x1]=_0x3e24ee[_0x4a62f8(0xd66)][_0x4a62f8(0x2224)],_0x3e24ee['voicemail']['appdata']=_0x26707a['join'](',');}_0x25c486(_0x3e24ee[_0x4a62f8(0xd66)]);}function _0x25c486(_0x2b8050){const _0x10ef21=_0x1c803f;_0x389b52[_0x10ef21(0x1426)](_0x2b8050);}}const _0x542d3f=_0x5cbd7a;;_0x38791a['$inject']=['$state','$location',_0x5537c6(0xcb9),'$document',_0x5537c6(0x1ae),'license','setting',_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),'internalroute',_0x5537c6(0x2199)];function _0x38791a(_0x10c538,_0x54dc80,_0x5df7e,_0x11dbae,_0x361cb2,_0x663286,_0x2cf316,_0x2252a5,_0x29fa8b,_0x27d688,_0x37fa92,_0x2ec370){const _0x1fff37=_0x5537c6,_0x2bfd49=this;_0x2bfd49[_0x1fff37(0xe76)]=_0x27d688[_0x1fff37(0x21e8)](),_0x2bfd49[_0x1fff37(0x8a5)]=_0x663286,_0x2bfd49[_0x1fff37(0x9ca)]=_0x2cf316,_0x2bfd49[_0x1fff37(0x1b0c)]=_0x2bfd49['setting'][_0x1fff37(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2bfd49['location']=_0x54dc80[_0x1fff37(0x2276)]()+'://'+_0x54dc80[_0x1fff37(0x17d8)](),_0x2bfd49[_0x1fff37(0x3af)]=_0x37fa92||_0x10c538['params']['internalroute']||{},_0x2bfd49['userProfileSection']=_0x2ec370&&_0x2ec370[_0x1fff37(0x184d)]==0x1?_0x2ec370['rows'][0x0]:null,_0x2bfd49[_0x1fff37(0x1b1a)]=_0x27d688[_0x1fff37(0x14ea)](_0x2bfd49[_0x1fff37(0x2199)]?_0x2bfd49['userProfileSection'][_0x1fff37(0x1b1a)]:null),_0x2bfd49[_0x1fff37(0xf4c)]={},_0x2bfd49['selectedTab']=_0x10c538[_0x1fff37(0x1dfe)][_0x1fff37(0x291e)]||0x0,_0x2bfd49[_0x1fff37(0x494)]=_0x29fa8b[_0x1fff37(0x28c7)],_0x2bfd49[_0x1fff37(0xa00)]=_0x5df0f1,_0x2bfd49[_0x1fff37(0x230e)]=_0x34d2ce,_0x27d688[_0x1fff37(0x22b6)](_0x1fff37(0x1c60))?_0x2252a5['voiceContext'][_0x1fff37(0xbf7)]({'fields':_0x1fff37(0x43c),'sort':'name','nolimit':_0x1fff37(0x44d)})[_0x1fff37(0x1d77)][_0x1fff37(0x1cb0)](function(_0x3d5d0b){const _0x5da12d=_0x1fff37;_0x2bfd49[_0x5da12d(0x14f6)]=_0x3d5d0b[_0x5da12d(0x2214)]||[];})[_0x1fff37(0x1c4)](function(_0x399afa){const _0xca3a6a=_0x1fff37;_0x29fa8b[_0xca3a6a(0x218e)]({'title':_0x399afa['status']?_0xca3a6a(0xeb9)+_0x399afa['status']+_0xca3a6a(0x1657)+_0x399afa[_0xca3a6a(0xc22)]:_0xca3a6a(0x2072),'msg':_0x399afa[_0xca3a6a(0x25c)]?JSON[_0xca3a6a(0x2701)](_0x399afa[_0xca3a6a(0x25c)]):_0x399afa[_0xca3a6a(0x147f)]()});}):_0x2252a5['voiceContext'][_0x1fff37(0xbf7)]({'fields':_0x1fff37(0x43c),'sort':'name','nolimit':'true'})[_0x1fff37(0x1d77)][_0x1fff37(0x1cb0)](function(_0x13738){const _0x35a742=_0x1fff37;_0x2bfd49[_0x35a742(0x14f6)]=_0x13738['rows']||[];})[_0x1fff37(0x1cb0)](function(){const _0x1bebb8=_0x1fff37;return _0x2252a5[_0x1bebb8(0x2199)][_0x1bebb8(0xbf7)]({'userProfileId':_0x2bfd49[_0x1bebb8(0xe76)][_0x1bebb8(0x13c1)],'sectionId':0x195})['$promise'];})[_0x1fff37(0x1cb0)](function(_0x2fdc82){const _0x4ee592=_0x1fff37,_0x48c62b=_0x2fdc82&&_0x2fdc82[_0x4ee592(0x2214)]?_0x2fdc82['rows'][0x0]:null;if(!_0x48c62b)return _0x2252a5[_0x4ee592(0x1da5)]['get']({'fields':_0x4ee592(0x43c),'sort':_0x4ee592(0x16b6),'nolimit':_0x4ee592(0x44d),'defaultEntry':0x1})['$promise'][_0x4ee592(0x1cb0)](function(_0x408b54){const _0x2251b2=_0x4ee592;_0x2bfd49['contexts']=_0x408b54[_0x2251b2(0x2214)]||[];});else{if(!_0x48c62b[_0x4ee592(0x12f4)])return _0x2252a5[_0x4ee592(0x1198)]['get']({'sectionId':_0x48c62b['id']})[_0x4ee592(0x1d77)]['then'](function(_0x2d2e28){const _0x3fe160=_0x4ee592,_0x3af87a=_0x39641b()['map'](_0x2d2e28['rows'],function(_0x5025f9){const _0x5dc742=a0_0x5cbd;return _0x39641b()[_0x5dc742(0x13b4)](_0x2bfd49[_0x5dc742(0x14f6)],{'id':_0x5025f9[_0x5dc742(0x2982)]});});let _0x506220=null;_0x2bfd49[_0x3fe160(0x3af)]&&(_0x506220=_0x39641b()[_0x3fe160(0x13b4)](_0x2bfd49[_0x3fe160(0x14f6)],{'name':_0x2bfd49[_0x3fe160(0x3af)][_0x3fe160(0x2056)]}));if(_0x506220&&!_0x39641b()[_0x3fe160(0x727)](_0x3af87a,['id',_0x506220['id']])){const _0x4a94b3=_0x39641b()[_0x3fe160(0x13b4)](_0x2bfd49[_0x3fe160(0x14f6)],{'id':_0x506220['id']});_0x4a94b3[_0x3fe160(0x15da)]=![],_0x3af87a[_0x3fe160(0x2785)](_0x4a94b3);}_0x2bfd49[_0x3fe160(0x14f6)]=_0x3af87a;});}})[_0x1fff37(0x1c4)](function(_0x493cc6){const _0x3751c5=_0x1fff37;_0x29fa8b[_0x3751c5(0x218e)]({'title':_0x493cc6[_0x3751c5(0x291)]?_0x3751c5(0xeb9)+_0x493cc6[_0x3751c5(0x291)]+_0x3751c5(0x1657)+_0x493cc6['statusText']:_0x3751c5(0x5ac),'msg':_0x493cc6[_0x3751c5(0x25c)]?JSON[_0x3751c5(0x2701)](_0x493cc6[_0x3751c5(0x25c)]):_0x493cc6[_0x3751c5(0x147f)]()});});function _0x5df0f1(){const _0x2a9dff=_0x1fff37;_0x10c538['go'](_0x2a9dff(0x525),{},{'reload':'app.voice.internalroutes'});}function _0x34d2ce(){const _0x4415d9=_0x1fff37;_0x2252a5[_0x4415d9(0x1059)][_0x4415d9(0x687)]({'id':_0x2bfd49[_0x4415d9(0x3af)]['id']},_0x2bfd49['internalroute'])['$promise'][_0x4415d9(0x1cb0)](function(){const _0x38bb82=_0x4415d9;_0x29fa8b[_0x38bb82(0x829)]({'title':_0x38bb82(0x1acf),'msg':_0x2bfd49[_0x38bb82(0x3af)][_0x38bb82(0x16b6)]?_0x2bfd49[_0x38bb82(0x3af)][_0x38bb82(0x16b6)]+_0x38bb82(0x1068):''});})[_0x4415d9(0x1c4)](function(_0x49527c){const _0x3a7429=_0x4415d9;_0x29fa8b[_0x3a7429(0x218e)]({'title':_0x49527c[_0x3a7429(0x291)]?_0x3a7429(0xeb9)+_0x49527c['status']+_0x3a7429(0x1657)+_0x49527c[_0x3a7429(0xc22)]:_0x3a7429(0x783),'msg':_0x49527c[_0x3a7429(0x25c)]?JSON['stringify'](_0x49527c[_0x3a7429(0x25c)]):_0x49527c['toString']()});});}}const _0x96bd48=_0x38791a;;const _0x1a0f63=_0x5074a3['p']+_0x5537c6(0x154b);;_0x3b4a87[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),'internalroutes',_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x3b4a87(_0x19dc8c,_0x254bb2,_0x390b35,_0x234632,_0x106d32,_0x141556,_0x328d9a,_0x3e3465,_0x4f974d,_0x3fc8db,_0x277e1a,_0x482b74,_0xc08b53,_0x4be586,_0x4ca7f1,_0x1912ba,_0x1d1f4f){const _0x4f2485=_0x5537c6,_0x5ba42f=this;_0x5ba42f[_0x4f2485(0x8a5)]=_0x1912ba,_0x5ba42f[_0x4f2485(0x9ca)]=_0x1d1f4f,_0x5ba42f['currentUser']=_0x4ca7f1[_0x4f2485(0x21e8)](),_0x5ba42f[_0x4f2485(0x24e3)]=_0x4f974d||{'count':0x0,'rows':[]},_0x5ba42f[_0x4f2485(0x44a)]=_0x3fc8db,_0x5ba42f[_0x4f2485(0x2199)]=_0x277e1a&&_0x277e1a[_0x4f2485(0x184d)]==0x1?_0x277e1a[_0x4f2485(0x2214)][0x0]:null,_0x5ba42f[_0x4f2485(0x1b1a)]=_0x4ca7f1[_0x4f2485(0x14ea)](_0x5ba42f[_0x4f2485(0x2199)]?_0x5ba42f['userProfileSection'][_0x4f2485(0x1b1a)]:null),_0x5ba42f[_0x4f2485(0xc83)]=_0x4f2485(0x24e3),_0x5ba42f[_0x4f2485(0x1d20)]='',_0x5ba42f['listOrderAsc']=null,_0x5ba42f['selectedInternalRoutes']=[],_0x5ba42f['query']={'fields':_0x4f2485(0x1aec),'type':_0x4f2485(0xdbd),'sort':_0x4f2485(0x282),'VoiceExtensionId':'null','limit':0xa,'page':0x1},_0x5ba42f[_0x4f2485(0x235d)]=_0x32ccbc,_0x5ba42f['deleteconfirm']=_0x5b3de2,_0x5ba42f['success']=_0x5428c7,_0x5ba42f[_0x4f2485(0x226)]=_0x54a887,_0x5ba42f['createOrEditInternalRoute']=_0xca7e18,_0x5ba42f['deleteInternalRoute']=_0x4b015d,_0x5ba42f[_0x4f2485(0xc99)]=_0x539a3a,_0x5ba42f[_0x4f2485(0x10a6)]=_0xe1ad26,_0x5ba42f[_0x4f2485(0x897)]=_0x5101d0,_0x5ba42f[_0x4f2485(0x2615)]=_0x39e1a4,_0x4ca7f1['hasRole']('admin')?_0x482b74[_0x4f2485(0x1da5)][_0x4f2485(0xbf7)]({'fields':_0x4f2485(0x43c),'sort':'name','nolimit':'true'})['$promise'][_0x4f2485(0x1cb0)](function(_0x2055f9){const _0x54ed54=_0x4f2485;_0x5ba42f[_0x54ed54(0x14f6)]=_0x2055f9[_0x54ed54(0x2214)]||[];})[_0x4f2485(0x1c4)](function(_0x4a8849){const _0x406878=_0x4f2485;_0x4be586[_0x406878(0x218e)]({'title':_0x4a8849[_0x406878(0x291)]?'API:'+_0x4a8849[_0x406878(0x291)]+_0x406878(0x1657)+_0x4a8849[_0x406878(0xc22)]:'SYSTEM:GET_CONTEXTS','msg':_0x4a8849[_0x406878(0x25c)]?JSON[_0x406878(0x2701)](_0x4a8849[_0x406878(0x25c)]):_0x4a8849['toString']()});}):_0x482b74[_0x4f2485(0x1da5)][_0x4f2485(0xbf7)]({'fields':'id,name','sort':_0x4f2485(0x16b6),'nolimit':_0x4f2485(0x44d)})[_0x4f2485(0x1d77)]['then'](function(_0x1da4db){const _0x23082f=_0x4f2485;_0x5ba42f[_0x23082f(0x14f6)]=_0x1da4db[_0x23082f(0x2214)]||[];})[_0x4f2485(0x1cb0)](function(){const _0x1930b6=_0x4f2485;return _0x482b74[_0x1930b6(0x2199)]['get']({'userProfileId':_0x5ba42f[_0x1930b6(0xe76)][_0x1930b6(0x13c1)],'sectionId':0x195})[_0x1930b6(0x1d77)];})[_0x4f2485(0x1cb0)](function(_0x416a68){const _0x1fb1d1=_0x4f2485,_0x1a05d5=_0x416a68&&_0x416a68[_0x1fb1d1(0x2214)]?_0x416a68[_0x1fb1d1(0x2214)][0x0]:null;if(!_0x1a05d5)return _0x482b74['voiceContext']['get']({'fields':'id,name','sort':_0x1fb1d1(0x16b6),'nolimit':'true','defaultEntry':0x1})[_0x1fb1d1(0x1d77)][_0x1fb1d1(0x1cb0)](function(_0xd4c5f){const _0x23f954=_0x1fb1d1;_0x5ba42f[_0x23f954(0x14f6)]=_0xd4c5f[_0x23f954(0x2214)]||[];});else{if(!_0x1a05d5[_0x1fb1d1(0x12f4)])return _0x482b74[_0x1fb1d1(0x1198)][_0x1fb1d1(0xbf7)]({'sectionId':_0x1a05d5['id']})[_0x1fb1d1(0x1d77)][_0x1fb1d1(0x1cb0)](function(_0x69a273){const _0x5f36bf=_0x1fb1d1,_0x1c7bc3=_0x39641b()[_0x5f36bf(0x1de2)](_0x69a273[_0x5f36bf(0x2214)],function(_0x4729ac){const _0x1409ae=_0x5f36bf;return _0x39641b()['find'](_0x5ba42f[_0x1409ae(0x14f6)],{'id':_0x4729ac[_0x1409ae(0x2982)]});});let _0x122a0e=null;_0x5ba42f[_0x5f36bf(0x3af)]&&(_0x122a0e=_0x39641b()[_0x5f36bf(0x13b4)](_0x5ba42f[_0x5f36bf(0x14f6)],{'name':_0x5ba42f['internalroute'][_0x5f36bf(0x2056)]}));if(_0x122a0e&&!_0x39641b()[_0x5f36bf(0x727)](_0x1c7bc3,['id',_0x122a0e['id']])){const _0x29ab7e=_0x39641b()[_0x5f36bf(0x13b4)](_0x5ba42f[_0x5f36bf(0x14f6)],{'id':_0x122a0e['id']});_0x29ab7e[_0x5f36bf(0x15da)]=![],_0x1c7bc3[_0x5f36bf(0x2785)](_0x29ab7e);}_0x5ba42f[_0x5f36bf(0x14f6)]=_0x1c7bc3;});}})[_0x4f2485(0x1c4)](function(_0x2a1f96){const _0x274c86=_0x4f2485;_0x4be586[_0x274c86(0x218e)]({'title':_0x2a1f96[_0x274c86(0x291)]?_0x274c86(0xeb9)+_0x2a1f96[_0x274c86(0x291)]+_0x274c86(0x1657)+_0x2a1f96[_0x274c86(0xc22)]:_0x274c86(0x5ac),'msg':_0x2a1f96[_0x274c86(0x25c)]?JSON[_0x274c86(0x2701)](_0x2a1f96[_0x274c86(0x25c)]):_0x2a1f96[_0x274c86(0x147f)]()});});function _0x32ccbc(_0x27e878){const _0x461ead=_0x4f2485;_0x390b35['go'](_0x461ead(0x1166),{'id':_0x27e878['id'],'internalroute':_0x27e878,'crudPermissions':_0x5ba42f[_0x461ead(0x1b1a)]});}function _0x5b3de2(_0x5b0d6c,_0x284022){const _0x865348=_0x4f2485,_0x52fb6d=_0x106d32['confirm']()[_0x865348(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x39641b()[_0x865348(0xa75)](_0x865348(0x3af))+'?')[_0x865348(0x49e)](_0x865348(0x204d)+(_0x5b0d6c[_0x865348(0x16b6)]||_0x865348(0x3af))+_0x865348(0x1200)+_0x865348(0x1b6))[_0x865348(0x15ad)]('delete\x20internalroute')[_0x865348(0x728)](_0x284022)['ok']('OK')['cancel'](_0x865348(0x24ba));_0x106d32[_0x865348(0xe27)](_0x52fb6d)['then'](function(){_0x4b015d(_0x5b0d6c);},function(){const _0x4dc89e=_0x865348;console[_0x4dc89e(0x1b4f)](_0x4dc89e(0x24ba));});}let _0x3aaf6e=!![],_0x1a18cd=0x1;_0x19dc8c[_0x4f2485(0x614)](_0x4f2485(0x957),function(_0x12dd52,_0x19e976){const _0xfdb1bb=_0x4f2485;_0x3aaf6e?_0x328d9a(function(){_0x3aaf6e=![];}):(!_0x19e976&&(_0x1a18cd=_0x5ba42f[_0xfdb1bb(0xae2)][_0xfdb1bb(0x1c7b)]),_0x12dd52!==_0x19e976&&(_0x5ba42f[_0xfdb1bb(0xae2)][_0xfdb1bb(0x1c7b)]=0x1),!_0x12dd52&&(_0x5ba42f[_0xfdb1bb(0xae2)][_0xfdb1bb(0x1c7b)]=_0x1a18cd),_0x5ba42f[_0xfdb1bb(0x226)]());});function _0x5428c7(_0x3f8d44){const _0x46e7f8=_0x4f2485;_0x5ba42f[_0x46e7f8(0x24e3)]=_0x3f8d44||{'count':0x0,'rows':[]};}function _0x54a887(){const _0x266382=_0x4f2485;_0x5ba42f['query'][_0x266382(0x184b)]=(_0x5ba42f['query']['page']-0x1)*_0x5ba42f[_0x266382(0xae2)][_0x266382(0x236)],_0x4ca7f1[_0x266382(0x22b6)]('admin')?_0x5ba42f[_0x266382(0x2061)]=_0x482b74['voiceExtension'][_0x266382(0xbf7)](_0x5ba42f[_0x266382(0xae2)],_0x5428c7)[_0x266382(0x1d77)]:(_0x5ba42f[_0x266382(0xae2)]['id']=_0x5ba42f['userProfile']['id'],_0x5ba42f[_0x266382(0xae2)][_0x266382(0x1f74)]='InternalRoutes',_0x5ba42f[_0x266382(0x2061)]=_0x482b74['userProfile']['getResources'](_0x5ba42f['query'],_0x5428c7)[_0x266382(0x1d77)]);}function _0xca7e18(_0x29b3f7,_0x48aba8){const _0x1932de=_0x4f2485;_0x106d32['show']({'controller':_0x1932de(0x2820),'controllerAs':'vm','templateUrl':_0x1a0f63,'parent':angular['element'](_0x141556['body']),'targetEvent':_0x29b3f7,'clickOutsideToClose':!![],'locals':{'internalroute':_0x48aba8,'internalroutes':_0x5ba42f[_0x1932de(0x24e3)][_0x1932de(0x2214)],'license':_0x5ba42f[_0x1932de(0x8a5)],'setting':_0x5ba42f[_0x1932de(0x9ca)],'crudPermissions':_0x5ba42f[_0x1932de(0x1b1a)]}});}function _0x4b015d(_0x2910ed){const _0x318468=_0x4f2485;_0x482b74['voiceExtension']['delete']({'id':_0x2910ed['id']})[_0x318468(0x1d77)][_0x318468(0x1cb0)](function(){const _0x31c33f=_0x318468;_0x39641b()[_0x31c33f(0x152a)](_0x5ba42f[_0x31c33f(0x24e3)][_0x31c33f(0x2214)],{'id':_0x2910ed['id']}),_0x5ba42f['internalroutes'][_0x31c33f(0x184d)]-=0x1,!_0x5ba42f[_0x31c33f(0x24e3)][_0x31c33f(0x2214)][_0x31c33f(0xfd0)]&&_0x5ba42f['getInternalRoutes'](),_0x4be586[_0x31c33f(0x829)]({'title':_0x39641b()[_0x31c33f(0xa75)](_0x31c33f(0x4c1))+'\x20deleted!','msg':_0x2910ed[_0x31c33f(0x16b6)]?_0x2910ed[_0x31c33f(0x16b6)]+_0x31c33f(0x3f5):''});})['catch'](function(_0x75a493){const _0x644ec9=_0x318468;if(_0x75a493['data']&&_0x75a493[_0x644ec9(0x25c)][_0x644ec9(0x1a7c)]&&_0x75a493[_0x644ec9(0x25c)][_0x644ec9(0x1a7c)][_0x644ec9(0xfd0)]){_0x5ba42f[_0x644ec9(0x1a7c)]=_0x75a493[_0x644ec9(0x25c)][_0x644ec9(0x1a7c)]||[{'message':_0x75a493['toString'](),'type':_0x644ec9(0x17dd)}];for(let _0x4c4b48=0x0;_0x4c4b48<_0x75a493[_0x644ec9(0x25c)][_0x644ec9(0x1a7c)][_0x644ec9(0xfd0)];_0x4c4b48++){_0x4be586['error']({'title':_0x75a493[_0x644ec9(0x25c)][_0x644ec9(0x1a7c)][_0x4c4b48][_0x644ec9(0x66a)],'msg':_0x75a493[_0x644ec9(0x25c)]['errors'][_0x4c4b48][_0x644ec9(0x155e)]});}}else _0x4be586[_0x644ec9(0x218e)]({'title':_0x75a493[_0x644ec9(0x291)]?_0x644ec9(0xeb9)+_0x75a493['status']+_0x644ec9(0x1657)+_0x75a493['statusText']:_0x644ec9(0x17dd),'msg':_0x75a493[_0x644ec9(0x25c)]?JSON[_0x644ec9(0x2701)](_0x75a493[_0x644ec9(0x25c)][_0x644ec9(0x155e)]):_0x75a493[_0x644ec9(0x155e)]||_0x75a493[_0x644ec9(0x147f)]()});});}function _0x539a3a(){const _0xc93d2=_0x4f2485,_0x5dc9b4=angular[_0xc93d2(0x17fe)](_0x5ba42f['selectedInternalRoutes']);return _0x5ba42f[_0xc93d2(0x25bc)]=[],_0x5dc9b4;}function _0xe1ad26(_0x4934d0){const _0x3e629c=_0x4f2485,_0x3fa002=_0x106d32[_0x3e629c(0x1551)]()[_0x3e629c(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20internalroutes?')[_0x3e629c(0x49e)](_0x3e629c(0x204d)+_0x5ba42f[_0x3e629c(0x25bc)][_0x3e629c(0xfd0)]+_0x3e629c(0x1d6c)+_0x3e629c(0x1b6))['ariaLabel'](_0x3e629c(0x27f7))[_0x3e629c(0x728)](_0x4934d0)['ok']('OK')[_0x3e629c(0x696)]('CANCEL');_0x106d32[_0x3e629c(0xe27)](_0x3fa002)[_0x3e629c(0x1cb0)](function(){const _0x40383b=_0x3e629c;_0x5ba42f[_0x40383b(0x25bc)][_0x40383b(0xf90)](function(_0x472a26){_0x4b015d(_0x472a26);}),_0x5ba42f[_0x40383b(0x25bc)]=[];});}function _0x5101d0(){const _0x2335c2=_0x4f2485;_0x5ba42f[_0x2335c2(0x25bc)]=[];}function _0x39e1a4(){const _0x45ad6a=_0x4f2485;_0x5ba42f['selectedInternalRoutes']=_0x5ba42f[_0x45ad6a(0x24e3)][_0x45ad6a(0x2214)];}}const _0x2486a8=_0x3b4a87;;_0x35893b[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x1bd2),_0x5537c6(0x15ae),'api',_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x35893b(_0x7e0f08,_0x55f166,_0x4f52cc,_0x561aa5,_0x422dc1,_0x3b1548,_0x2ac8af,_0x331998,_0x50acae,_0x2a2c30,_0x4bd77d,_0x5a664e,_0x55854f,_0x36a7e0){const _0x1c7113=_0x5537c6,_0x2a5c5e=this;_0x2a5c5e[_0x1c7113(0xe76)]=_0x4bd77d['getCurrentUser'](),_0x2a5c5e[_0x1c7113(0x1a7c)]=[],_0x2a5c5e['setting']=_0x55854f,_0x2a5c5e[_0x1c7113(0x8a5)]=_0x5a664e,_0x2a5c5e[_0x1c7113(0x1b1a)]=_0x36a7e0,_0x2a5c5e[_0x1c7113(0xf4c)]={},_0x2a5c5e[_0x1c7113(0x1b0c)]=_0x2a5c5e['setting']&&_0x2a5c5e[_0x1c7113(0x9ca)][_0x1c7113(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2a5c5e['title']=_0x1c7113(0x6ff),_0x2a5c5e[_0x1c7113(0x15ae)]=angular[_0x1c7113(0x17fe)](_0x50acae),_0x2a5c5e['musiconholds']=_0x331998,_0x2a5c5e[_0x1c7113(0x284f)]=![];!_0x2a5c5e['musiconhold']&&(_0x2a5c5e[_0x1c7113(0x15ae)]={'mode':'files'},_0x2a5c5e[_0x1c7113(0x1386)]=_0x1c7113(0x271e),_0x2a5c5e[_0x1c7113(0x284f)]=!![]);_0x2a5c5e[_0x1c7113(0x20d0)]=_0x827381,_0x2a5c5e['saveMusicOnHold']=_0x5a2493,_0x2a5c5e['deleteMusicOnHold']=_0x3dcc9c,_0x2a5c5e['getDateFromString']=_0x1ee45d,_0x2a5c5e[_0x1c7113(0xda0)]=_0x45504d;function _0x827381(){const _0x4dee58=_0x1c7113;_0x2a5c5e[_0x4dee58(0x1a7c)]=[],_0x2a2c30['voiceMusicOnHold']['save'](_0x2a5c5e[_0x4dee58(0x15ae)])[_0x4dee58(0x1d77)]['then'](function(_0x3d1062){const _0x2603a3=_0x4dee58;_0x2a5c5e[_0x2603a3(0x1bd2)][_0x2603a3(0xf63)](_0x3d1062[_0x2603a3(0x19b2)]()),_0x2ac8af['success']({'title':'MusicOnHold\x20properly\x20created','msg':_0x2a5c5e[_0x2603a3(0x15ae)]['name']?_0x2a5c5e[_0x2603a3(0x15ae)][_0x2603a3(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x45504d(_0x3d1062);})[_0x4dee58(0x1c4)](function(_0x36ae33){const _0xccc0c0=_0x4dee58;if(_0x36ae33[_0xccc0c0(0x25c)]&&_0x36ae33['data'][_0xccc0c0(0x1a7c)]&&_0x36ae33[_0xccc0c0(0x25c)]['errors']['length']){_0x2a5c5e[_0xccc0c0(0x1a7c)]=_0x36ae33[_0xccc0c0(0x25c)]['errors']||[{'message':_0x36ae33['toString'](),'type':_0xccc0c0(0x1e18)}];for(let _0x24c0c3=0x0;_0x24c0c3<_0x36ae33['data'][_0xccc0c0(0x1a7c)][_0xccc0c0(0xfd0)];_0x24c0c3+=0x1){_0x2ac8af[_0xccc0c0(0x218e)]({'title':_0x36ae33[_0xccc0c0(0x25c)]['errors'][_0x24c0c3]['type'],'msg':_0x36ae33[_0xccc0c0(0x25c)][_0xccc0c0(0x1a7c)][_0x24c0c3][_0xccc0c0(0x155e)]});}}else _0x2ac8af['error']({'title':_0x36ae33[_0xccc0c0(0x291)]?_0xccc0c0(0xeb9)+_0x36ae33['status']+_0xccc0c0(0x1657)+_0x36ae33['statusText']:_0xccc0c0(0x1e18),'msg':_0x36ae33[_0xccc0c0(0x25c)]?JSON[_0xccc0c0(0x2701)](_0x36ae33[_0xccc0c0(0x25c)][_0xccc0c0(0x155e)]):_0x36ae33['toString']()});});}function _0x5a2493(){const _0x139d11=_0x1c7113;_0x2a5c5e[_0x139d11(0x1a7c)]=[],_0x2a2c30['voiceMusicOnHold'][_0x139d11(0x687)]({'id':_0x2a5c5e[_0x139d11(0x15ae)]['id']},_0x2a5c5e[_0x139d11(0x15ae)])[_0x139d11(0x1d77)][_0x139d11(0x1cb0)](function(_0x3c6421){const _0x41343d=_0x139d11,_0xe5218f=_0x39641b()[_0x41343d(0x13b4)](_0x2a5c5e[_0x41343d(0x1bd2)],{'id':_0x3c6421['id']});_0xe5218f&&_0x39641b()[_0x41343d(0x9c1)](_0xe5218f,_0x39641b()['pick'](_0x3c6421['toJSON'](),_0x39641b()[_0x41343d(0x1be5)](_0xe5218f))),_0x2ac8af[_0x41343d(0x829)]({'title':_0x41343d(0x2437),'msg':_0x2a5c5e['musiconhold'][_0x41343d(0x16b6)]?_0x2a5c5e['musiconhold']['name']+_0x41343d(0xedb):''}),_0x45504d(_0x3c6421);})[_0x139d11(0x1c4)](function(_0x5cb64b){const _0x7672ab=_0x139d11;if(_0x5cb64b[_0x7672ab(0x25c)]&&_0x5cb64b['data']['errors']&&_0x5cb64b[_0x7672ab(0x25c)]['errors'][_0x7672ab(0xfd0)]){_0x2a5c5e[_0x7672ab(0x1a7c)]=_0x5cb64b[_0x7672ab(0x25c)]['errors']||[{'message':_0x5cb64b[_0x7672ab(0x147f)](),'type':_0x7672ab(0x23e7)}];for(let _0x4acbc8=0x0;_0x4acbc8<_0x5cb64b[_0x7672ab(0x25c)][_0x7672ab(0x1a7c)][_0x7672ab(0xfd0)];_0x4acbc8++){_0x2ac8af[_0x7672ab(0x218e)]({'title':_0x5cb64b[_0x7672ab(0x25c)][_0x7672ab(0x1a7c)][_0x4acbc8][_0x7672ab(0x66a)],'msg':_0x5cb64b[_0x7672ab(0x25c)][_0x7672ab(0x1a7c)][_0x4acbc8][_0x7672ab(0x155e)]});}}else _0x2ac8af[_0x7672ab(0x218e)]({'title':_0x5cb64b['status']?'API:'+_0x5cb64b[_0x7672ab(0x291)]+_0x7672ab(0x1657)+_0x5cb64b['statusText']:_0x7672ab(0x23e7),'msg':_0x5cb64b[_0x7672ab(0x25c)]?JSON[_0x7672ab(0x2701)](_0x5cb64b['data'][_0x7672ab(0x155e)]):_0x5cb64b[_0x7672ab(0x147f)]()});});}function _0x3dcc9c(_0x4fc4f3){const _0x1c50b4=_0x1c7113;_0x2a5c5e[_0x1c50b4(0x1a7c)]=[];const _0x5b07de=_0x561aa5[_0x1c50b4(0x1551)]()[_0x1c50b4(0x1386)](_0x1c50b4(0x1a2e))[_0x1c50b4(0x862)](_0x1c50b4(0xc26))[_0x1c50b4(0x15ad)](_0x1c50b4(0x1a5b))['ok'](_0x1c50b4(0x2594))[_0x1c50b4(0x696)](_0x1c50b4(0xde1))[_0x1c50b4(0x728)](_0x4fc4f3);_0x561aa5[_0x1c50b4(0xe27)](_0x5b07de)[_0x1c50b4(0x1cb0)](function(){const _0x1071af=_0x1c50b4;_0x2a2c30[_0x1071af(0x157d)][_0x1071af(0x111d)]({'id':_0x2a5c5e[_0x1071af(0x15ae)]['id']})[_0x1071af(0x1d77)][_0x1071af(0x1cb0)](function(){const _0x544e4b=_0x1071af;_0x39641b()[_0x544e4b(0x152a)](_0x2a5c5e[_0x544e4b(0x1bd2)],{'id':_0x2a5c5e[_0x544e4b(0x15ae)]['id']}),_0x2ac8af[_0x544e4b(0x829)]({'title':_0x544e4b(0x11ce),'msg':(_0x2a5c5e[_0x544e4b(0x15ae)][_0x544e4b(0x16b6)]||_0x544e4b(0x15ae))+'\x20has\x20been\x20deleted!'}),_0x45504d(_0x2a5c5e[_0x544e4b(0x15ae)]);})[_0x1071af(0x1c4)](function(_0x112e94){const _0x65bfb0=_0x1071af;if(_0x112e94[_0x65bfb0(0x25c)]&&_0x112e94[_0x65bfb0(0x25c)][_0x65bfb0(0x1a7c)]&&_0x112e94[_0x65bfb0(0x25c)][_0x65bfb0(0x1a7c)][_0x65bfb0(0xfd0)]){_0x2a5c5e[_0x65bfb0(0x1a7c)]=_0x112e94['data']['errors']||[{'message':_0x112e94[_0x65bfb0(0x147f)](),'type':'api.voiceMusicOnHold.delete'}];for(let _0x57d32d=0x0;_0x57d32d<_0x112e94[_0x65bfb0(0x25c)][_0x65bfb0(0x1a7c)][_0x65bfb0(0xfd0)];_0x57d32d++){_0x2ac8af['error']({'title':_0x112e94[_0x65bfb0(0x25c)]['errors'][_0x57d32d][_0x65bfb0(0x66a)],'msg':_0x112e94['data']['errors'][_0x57d32d][_0x65bfb0(0x155e)]});}}else _0x2ac8af['error']({'title':_0x112e94[_0x65bfb0(0x291)]?_0x65bfb0(0xeb9)+_0x112e94[_0x65bfb0(0x291)]+_0x65bfb0(0x1657)+_0x112e94['statusText']:_0x65bfb0(0x16e9),'msg':_0x112e94[_0x65bfb0(0x25c)]?JSON[_0x65bfb0(0x2701)](_0x112e94['data']['message']):_0x112e94[_0x65bfb0(0x155e)]||_0x112e94[_0x65bfb0(0x147f)]()});});},function(){});}function _0x1ee45d(_0x27cc15){return _0x27cc15===null?undefined:new Date(_0x27cc15);}function _0x45504d(_0x35701b){const _0x2336b6=_0x1c7113;_0x561aa5[_0x2336b6(0x1426)](_0x35701b);}}const _0x273c1c=_0x35893b;;const _0x236ffa=_0x5074a3['p']+'src/js/modules/main/apps/voice/views/musiconholds/edit/mohSounds/dialog.html/dialog.html';;_0x4cb4a2[_0x5537c6(0x15b6)]=['$cookies',_0x5537c6(0x1463),_0x5537c6(0x406),'$q',_0x5537c6(0x1ae),_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'toasty',_0x5537c6(0x142b),'Auth'];function _0x4cb4a2(_0x2e80c5,_0x12714b,_0x6e1b8,_0x392a8b,_0x2d1ac4,_0x143cbb,_0x487959,_0x4bddee,_0x32dbf1,_0x2b8ee0,_0x37ba7c){const _0x3db50a=_0x5537c6,_0x227671=this;_0x227671[_0x3db50a(0xe76)]=_0x37ba7c[_0x3db50a(0x21e8)](),_0x227671[_0x3db50a(0x15ae)]={},_0x227671[_0x3db50a(0x1af9)]={'count':0x0,'rows':[]},_0x227671[_0x3db50a(0x252a)]=[],_0x227671[_0x3db50a(0x1b1a)],_0x227671[_0x3db50a(0xae2)]={'fields':'createdAt,updatedAt,id,save_name,converted_format,audio','limit':0xa,'page':0x1},_0x227671[_0x3db50a(0x1a8e)]=_0x2f8793,_0x227671[_0x3db50a(0xb25)]=_0x3fef0b,_0x227671[_0x3db50a(0xb79)]=_0x35812e,_0x227671['success']=_0x2a4f06,_0x227671[_0x3db50a(0x1e67)]=_0x13993a,_0x227671[_0x3db50a(0x32f)]=_0x930798,_0x227671[_0x3db50a(0x1bc)]=_0x2eec99,_0x227671[_0x3db50a(0x147b)]=_0xeb8488,_0x227671[_0x3db50a(0x115c)]=_0x25a772,_0x37ba7c[_0x3db50a(0x22b6)](_0x3db50a(0x1c60))?_0x2b8ee0[_0x3db50a(0x1e9)][_0x3db50a(0xbf7)]({'fields':_0x3db50a(0x43c),'sort':_0x3db50a(0x16b6)})[_0x3db50a(0x1d77)][_0x3db50a(0x1cb0)](function(_0xdb471){const _0x113954=_0x3db50a;_0x227671[_0x113954(0xe28)]=_0xdb471[_0x113954(0x2214)]||[];})[_0x3db50a(0x1c4)](function(_0x1c67d6){const _0x3678b2=_0x3db50a;_0x32dbf1['error']({'title':_0x1c67d6['status']?_0x3678b2(0xeb9)+_0x1c67d6[_0x3678b2(0x291)]+_0x3678b2(0x1657)+_0x1c67d6['statusText']:'SYSTEM:GET_SOUNDS','msg':_0x1c67d6[_0x3678b2(0x25c)]?JSON['stringify'](_0x1c67d6['data']):_0x1c67d6['toString']()});}):_0x2b8ee0[_0x3db50a(0x1e9)][_0x3db50a(0xbf7)]({'fields':_0x3db50a(0x43c),'sort':_0x3db50a(0x16b6)})[_0x3db50a(0x1d77)]['then'](function(_0x9b0080){const _0x35e2cd=_0x3db50a;_0x227671[_0x35e2cd(0xe28)]=_0x9b0080[_0x35e2cd(0x2214)]||[];})[_0x3db50a(0x1cb0)](function(){const _0x338e1c=_0x3db50a;return _0x2b8ee0[_0x338e1c(0x2199)][_0x338e1c(0xbf7)]({'userProfileId':_0x227671['currentUser'][_0x338e1c(0x13c1)],'sectionId':0x3ef})['$promise'];})[_0x3db50a(0x1cb0)](function(_0x46cada){const _0x73fbbf=_0x3db50a,_0x3dd653=_0x46cada&&_0x46cada[_0x73fbbf(0x2214)]?_0x46cada[_0x73fbbf(0x2214)][0x0]:null;if(!_0x3dd653){const _0x2c0097=[];let _0x345809=null;_0x227671[_0x73fbbf(0x15ae)]&&(_0x345809=_0x39641b()[_0x73fbbf(0x13b4)](_0x227671['sounds'],{'id':Number(_0x227671[_0x73fbbf(0x15ae)]['id'])}));for(let _0x12a08d=0x0;_0x12a08d<_0x227671['sounds'][_0x73fbbf(0xfd0)];_0x12a08d++){_0x345809&&_0x227671[_0x73fbbf(0xe28)][_0x12a08d]['id']===_0x345809['id']&&(_0x227671[_0x73fbbf(0xe28)][_0x12a08d][_0x73fbbf(0x15da)]=![],_0x2c0097[_0x73fbbf(0x2785)](_0x227671[_0x73fbbf(0xe28)][_0x12a08d]));}_0x227671[_0x73fbbf(0xe28)]=_0x2c0097;}else{if(!_0x3dd653[_0x73fbbf(0x12f4)])return _0x2b8ee0[_0x73fbbf(0x1198)]['get']({'sectionId':_0x3dd653['id']})['$promise'][_0x73fbbf(0x1cb0)](function(_0x14f58f){const _0x24b0c1=_0x73fbbf,_0x264d57=_0x39641b()[_0x24b0c1(0x1de2)](_0x14f58f[_0x24b0c1(0x2214)],function(_0x410ab5){const _0x477404=_0x24b0c1;return _0x39641b()['find'](_0x227671['sounds'],{'id':_0x410ab5[_0x477404(0x2982)]});});let _0x443a3b=null;_0x227671['musiconhold']&&(_0x443a3b=_0x39641b()[_0x24b0c1(0x13b4)](_0x227671[_0x24b0c1(0xe28)],{'id':Number(_0x227671[_0x24b0c1(0x15ae)]['id'])}));if(_0x443a3b&&!_0x39641b()['some'](_0x264d57,['id',_0x443a3b['id']])){const _0xacf862=_0x39641b()[_0x24b0c1(0x13b4)](_0x227671[_0x24b0c1(0xe28)],{'id':_0x443a3b['id']});_0xacf862[_0x24b0c1(0x15da)]=![],_0x264d57[_0x24b0c1(0x2785)](_0xacf862);}_0x227671[_0x24b0c1(0xe28)]=_0x264d57;});}})[_0x3db50a(0x1c4)](function(_0x30f0cb){const _0x310088=_0x3db50a;_0x32dbf1[_0x310088(0x218e)]({'title':_0x30f0cb[_0x310088(0x291)]?_0x310088(0xeb9)+_0x30f0cb['status']+'\x20-\x20'+_0x30f0cb[_0x310088(0xc22)]:_0x310088(0x3a0),'msg':_0x30f0cb['data']?JSON[_0x310088(0x2701)](_0x30f0cb['data']):_0x30f0cb['toString']()});});function _0x2f8793(_0x59018c,_0x9780e1){const _0x52ab55=_0x3db50a;_0x227671[_0x52ab55(0x15ae)]=_0x59018c,_0x227671[_0x52ab55(0x1b1a)]=typeof _0x9780e1!==_0x52ab55(0x16b5)?_0x9780e1:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x227671['query'][_0x52ab55(0x28a7)]=_0x227671[_0x52ab55(0x15ae)]['id'],_0x227671['query']['id']=_0x227671[_0x52ab55(0x15ae)]['id'],_0x13993a();}function _0x35812e(_0x572ee0,_0x59fe90,_0x292674){const _0x591069=_0x3db50a;return _0x2b8ee0[_0x591069(0x1e9)]['download']({'id':_0x572ee0['id'],'exists':!![],'attachments':_0x292674})[_0x591069(0x1d77)][_0x591069(0x1cb0)](function(_0x47fe5a){const _0x2857d4=_0x591069,_0x6c6519=[_0x47fe5a['buffer']];let _0x5d3dd7='mohSound'+_0x572ee0['id'];const _0x3a16a7=new Blob(_0x6c6519,{'type':_0x47fe5a[_0x2857d4(0x66a)]});_0x5d3dd7=_0x572ee0[_0x2857d4(0xae0)]?_0x572ee0[_0x2857d4(0x144c)]+'.'+_0x572ee0[_0x2857d4(0xae0)]:_0x572ee0[_0x2857d4(0x144c)];const _0x53c021=window[_0x2857d4(0x1db8)][_0x2857d4(0x8c6)]('a');_0x53c021[_0x2857d4(0x23b9)](_0x2857d4(0x105b),URL[_0x2857d4(0x2247)](_0x3a16a7)),_0x53c021[_0x2857d4(0x23b9)](_0x2857d4(0x26ec),_0x5d3dd7),document[_0x2857d4(0x1ed9)][_0x2857d4(0x23de)](_0x53c021),_0x53c021[_0x2857d4(0x20b8)]();})[_0x591069(0x1c4)](function(_0x22fce7){const _0x18962a=_0x591069;if(_0x22fce7[_0x18962a(0x25c)]&&_0x22fce7['data'][_0x18962a(0x1a7c)]&&_0x22fce7[_0x18962a(0x25c)]['errors'][_0x18962a(0xfd0)])for(let _0x4fb362=0x0;_0x4fb362<_0x22fce7[_0x18962a(0x25c)]['errors']['length'];_0x4fb362+=0x1){_0x32dbf1[_0x18962a(0x218e)]({'title':_0x22fce7[_0x18962a(0x25c)]['errors'][_0x4fb362][_0x18962a(0x66a)],'msg':_0x22fce7[_0x18962a(0x25c)][_0x18962a(0x1a7c)][_0x4fb362][_0x18962a(0x155e)]});}else _0x32dbf1[_0x18962a(0x218e)]({'title':_0x22fce7[_0x18962a(0x291)]?_0x18962a(0xeb9)+_0x22fce7[_0x18962a(0x291)]+_0x18962a(0x1657)+_0x22fce7[_0x18962a(0xc22)]:_0x18962a(0x1e18),'msg':_0x22fce7[_0x18962a(0x25c)]?JSON[_0x18962a(0x2701)](_0x22fce7[_0x18962a(0x25c)][_0x18962a(0x155e)]):_0x22fce7['toString']()});});}function _0x3fef0b(_0x35110a,_0x3d5e27){const _0x1cf0db=_0x3db50a,_0x49409d=_0x487959[_0x1cf0db(0x1551)]()[_0x1cf0db(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20mohSound?')[_0x1cf0db(0x49e)](''+(_0x35110a['name']||_0x35110a['id']&&_0x39641b()[_0x1cf0db(0x277)](_0x1cf0db(0x84a))+_0x35110a['id']||'mohSound')+_0x1cf0db(0x1200)+_0x1cf0db(0x1b6))[_0x1cf0db(0x15ad)]('delete\x20mohSound')[_0x1cf0db(0x728)](_0x3d5e27)['ok']('OK')[_0x1cf0db(0x696)]('CANCEL');_0x487959[_0x1cf0db(0xe27)](_0x49409d)[_0x1cf0db(0x1cb0)](function(){_0xeb8488(_0x35110a);},function(){const _0x429dd7=_0x1cf0db;console['log'](_0x429dd7(0x24ba));});}function _0x2a4f06(_0x15a1fc){_0x227671['musiconholdMohSounds']=_0x15a1fc||{'count':0x0,'rows':[]};}function _0x13993a(){const _0x141afd=_0x3db50a;_0x227671[_0x141afd(0xae2)][_0x141afd(0x184b)]=(_0x227671[_0x141afd(0xae2)][_0x141afd(0x1c7b)]-0x1)*_0x227671['query'][_0x141afd(0x236)],_0x227671[_0x141afd(0x2061)]=_0x2b8ee0[_0x141afd(0x157d)]['getSounds'](_0x227671[_0x141afd(0xae2)],_0x2a4f06)['$promise'];}function _0x930798(_0x3eb76a,_0x442a8f){const _0x30386f=_0x3db50a;_0x487959[_0x30386f(0xe27)]({'controller':_0x30386f(0x1c23),'controllerAs':'vm','templateUrl':_0x236ffa,'parent':angular['element'](_0x4bddee[_0x30386f(0x1ed9)]),'targetEvent':_0x3eb76a,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x227671['musiconhold'],'mohSound':_0x442a8f,'mohSounds':_0x227671['musiconholdMohSounds'][_0x30386f(0x2214)],'license':null,'setting':null,'crudPermissions':_0x227671['crudPermissions']}});}function _0xeb8488(_0x4aadae){const _0x42e4bc=_0x3db50a;_0x2b8ee0['voiceMusicOnHold'][_0x42e4bc(0x1a0a)]({'id':_0x6e1b8['params']['id'],'id2':_0x4aadae['id']})['$promise'][_0x42e4bc(0x1cb0)](function(){const _0x1b5433=_0x42e4bc;_0x39641b()['remove'](_0x227671[_0x1b5433(0x1af9)][_0x1b5433(0x2214)],{'id':_0x4aadae['id']}),_0x227671[_0x1b5433(0x1af9)]['count']-=0x1,!_0x227671['musiconholdMohSounds'][_0x1b5433(0x2214)][_0x1b5433(0xfd0)]&&_0x13993a(),_0x32dbf1[_0x1b5433(0x829)]({'title':_0x1b5433(0x180d),'msg':_0x4aadae[_0x1b5433(0x16b6)]?_0x4aadae[_0x1b5433(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x42e4bc(0x1c4)](function(_0x54a588){const _0x1d0b38=_0x42e4bc;if(_0x54a588[_0x1d0b38(0x25c)]&&_0x54a588[_0x1d0b38(0x25c)]['errors']&&_0x54a588['data'][_0x1d0b38(0x1a7c)][_0x1d0b38(0xfd0)]){_0x227671[_0x1d0b38(0x1a7c)]=_0x54a588[_0x1d0b38(0x25c)][_0x1d0b38(0x1a7c)]||[{'message':_0x54a588[_0x1d0b38(0x147f)](),'type':'SYSTEM:GETvoiceMusicOnHold'}];for(let _0x36106a=0x0;_0x36106a<_0x54a588[_0x1d0b38(0x25c)][_0x1d0b38(0x1a7c)][_0x1d0b38(0xfd0)];_0x36106a++){_0x32dbf1[_0x1d0b38(0x218e)]({'title':_0x54a588[_0x1d0b38(0x25c)][_0x1d0b38(0x1a7c)][_0x36106a][_0x1d0b38(0x66a)],'msg':_0x54a588[_0x1d0b38(0x25c)][_0x1d0b38(0x1a7c)][_0x36106a][_0x1d0b38(0x155e)]});}}else _0x32dbf1['error']({'title':_0x54a588['status']?_0x1d0b38(0xeb9)+_0x54a588[_0x1d0b38(0x291)]+_0x1d0b38(0x1657)+_0x54a588[_0x1d0b38(0xc22)]:_0x1d0b38(0x36f),'msg':_0x54a588[_0x1d0b38(0x25c)]?JSON[_0x1d0b38(0x2701)](_0x54a588[_0x1d0b38(0x25c)][_0x1d0b38(0x155e)]):_0x54a588[_0x1d0b38(0x155e)]||_0x54a588[_0x1d0b38(0x147f)]()});});}function _0x2eec99(){const _0x5c7dc8=_0x3db50a,_0x219202=angular[_0x5c7dc8(0x17fe)](_0x227671['selectedMusicOnHoldMohSounds']);return _0x227671[_0x5c7dc8(0x252a)]=[],_0x219202;}function _0x25a772(_0x23cbad){const _0x822a8c=_0x3db50a,_0x50289f=_0x487959[_0x822a8c(0x1551)]()[_0x822a8c(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mohSounds?')[_0x822a8c(0x49e)](_0x822a8c(0x204d)+_0x227671[_0x822a8c(0x252a)][_0x822a8c(0xfd0)]+_0x822a8c(0x1d6c)+_0x822a8c(0x1b6))['ariaLabel']('delete\x20mohSounds')[_0x822a8c(0x728)](_0x23cbad)['ok']('OK')['cancel'](_0x822a8c(0x24ba));_0x487959[_0x822a8c(0xe27)](_0x50289f)[_0x822a8c(0x1cb0)](function(){const _0x8f7fb1=_0x822a8c;_0x227671['selectedMusicOnHoldMohSounds'][_0x8f7fb1(0xf90)](function(_0x50f9b7){_0xeb8488(_0x50f9b7);}),_0x227671[_0x8f7fb1(0x252a)]=[];});}let _0x11f6d4=!![],_0x590005=0x1;_0x12714b['$watch'](_0x3db50a(0xeb6),function(_0x52e109,_0x6db92d){const _0x34ca0d=_0x3db50a;_0x11f6d4?_0x143cbb(function(){_0x11f6d4=![];}):(!_0x6db92d&&(_0x590005=_0x227671['query'][_0x34ca0d(0x1c7b)]),_0x52e109!==_0x6db92d&&(_0x227671[_0x34ca0d(0xae2)][_0x34ca0d(0x1c7b)]=0x1),!_0x52e109&&(_0x227671[_0x34ca0d(0xae2)]['page']=_0x590005),_0x13993a());});}const _0x1f4a42=_0x4cb4a2;;_0x545941[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x406),'$location','$mdDialog','$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0xd8f),'mohSound',_0x5537c6(0x142b),_0x5537c6(0x1774),'license','setting',_0x5537c6(0x1b1a)];function _0x545941(_0x22d14d,_0x37b45a,_0xe7fa51,_0xa08c58,_0x34cf5d,_0x57afc9,_0x562eda,_0x10d239,_0x2a0432,_0x1c2f0c,_0xa08ce8,_0x30abbe,_0x593789,_0x29247d){const _0x4afbdf=_0x5537c6,_0x4b29f0=this;_0x4b29f0[_0x4afbdf(0xe76)]=_0xa08ce8[_0x4afbdf(0x21e8)](),_0x4b29f0['errors']=[],_0x4b29f0[_0x4afbdf(0x9ca)]=_0x593789,_0x4b29f0[_0x4afbdf(0x8a5)]=_0x30abbe,_0x4b29f0[_0x4afbdf(0x1b1a)]=_0x29247d,_0x4b29f0[_0x4afbdf(0xf4c)]={},_0x4b29f0[_0x4afbdf(0x1b0c)]=_0x4b29f0['setting']&&_0x4b29f0[_0x4afbdf(0x9ca)][_0x4afbdf(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4b29f0['title']=_0x4afbdf(0x1231),_0x4b29f0['mohSound']=angular[_0x4afbdf(0x17fe)](_0x2a0432),_0x4b29f0['mohSounds']=_0x10d239,_0x4b29f0[_0x4afbdf(0x148d)]=![];!_0x4b29f0[_0x4afbdf(0x20b1)]&&(_0x4b29f0[_0x4afbdf(0x20b1)]={},_0x4b29f0['title']='VOICE.NEW_MOHSOUND',_0x4b29f0[_0x4afbdf(0x148d)]=!![]);_0x37b45a[_0x4afbdf(0x1dfe)]['id']&&(_0x4b29f0[_0x4afbdf(0x20b1)][_0x4afbdf(0x28a7)]=_0x37b45a[_0x4afbdf(0x1dfe)]['id']);_0x4b29f0[_0x4afbdf(0x1f0b)]=_0x4d279b,_0x4b29f0[_0x4afbdf(0x1bf7)]=_0x31a202,_0x4b29f0[_0x4afbdf(0xcc3)]=_0x5ed27f,_0x4b29f0[_0x4afbdf(0x2c4)]=_0x353799,_0x4b29f0[_0x4afbdf(0xda0)]=_0x1774dc,_0xa08ce8[_0x4afbdf(0x22b6)](_0x4afbdf(0x1c60))?_0x1c2f0c[_0x4afbdf(0x1e9)][_0x4afbdf(0xbf7)]({'fields':_0x4afbdf(0x43c),'sort':_0x4afbdf(0x16b6)})[_0x4afbdf(0x1d77)][_0x4afbdf(0x1cb0)](function(_0x5c8c6e){_0x4b29f0['sounds']=_0x5c8c6e['rows']||[];})[_0x4afbdf(0x1c4)](function(_0x5efe9c){const _0x53b1b5=_0x4afbdf;_0x562eda['error']({'title':_0x5efe9c[_0x53b1b5(0x291)]?'API:'+_0x5efe9c['status']+'\x20-\x20'+_0x5efe9c[_0x53b1b5(0xc22)]:'SYSTEM:GET_SOUNDS','msg':_0x5efe9c['data']?JSON[_0x53b1b5(0x2701)](_0x5efe9c[_0x53b1b5(0x25c)]):_0x5efe9c[_0x53b1b5(0x147f)]()});}):_0x1c2f0c[_0x4afbdf(0x1e9)][_0x4afbdf(0xbf7)]({'fields':_0x4afbdf(0x43c),'sort':_0x4afbdf(0x16b6)})[_0x4afbdf(0x1d77)]['then'](function(_0x188c0d){const _0x5b607a=_0x4afbdf;_0x4b29f0[_0x5b607a(0xe28)]=_0x188c0d[_0x5b607a(0x2214)]||[];})['then'](function(){const _0x2f2385=_0x4afbdf;return _0x1c2f0c[_0x2f2385(0x2199)][_0x2f2385(0xbf7)]({'userProfileId':_0x4b29f0[_0x2f2385(0xe76)][_0x2f2385(0x13c1)],'sectionId':0x3ef})[_0x2f2385(0x1d77)];})[_0x4afbdf(0x1cb0)](function(_0x43d499){const _0x15e5a0=_0x4afbdf,_0x1aaf5a=_0x43d499&&_0x43d499[_0x15e5a0(0x2214)]?_0x43d499[_0x15e5a0(0x2214)][0x0]:null;if(!_0x1aaf5a){const _0x4f6bd9=[];let _0x4d4937=null;_0x4b29f0[_0x15e5a0(0x20b1)]&&(_0x4d4937=_0x39641b()['find'](_0x4b29f0[_0x15e5a0(0xe28)],{'id':Number(_0x4b29f0[_0x15e5a0(0x20b1)]['id'])}));for(let _0xe82ced=0x0;_0xe82ced<_0x4b29f0['sounds'][_0x15e5a0(0xfd0)];_0xe82ced++){_0x4d4937&&_0x4b29f0[_0x15e5a0(0xe28)][_0xe82ced]['id']===_0x4d4937['id']&&(_0x4b29f0[_0x15e5a0(0xe28)][_0xe82ced][_0x15e5a0(0x15da)]=![],_0x4f6bd9['push'](_0x4b29f0[_0x15e5a0(0xe28)][_0xe82ced]));}_0x4b29f0[_0x15e5a0(0xe28)]=_0x4f6bd9;}else{if(!_0x1aaf5a[_0x15e5a0(0x12f4)])return _0x1c2f0c[_0x15e5a0(0x1198)][_0x15e5a0(0xbf7)]({'sectionId':_0x1aaf5a['id']})[_0x15e5a0(0x1d77)][_0x15e5a0(0x1cb0)](function(_0x369098){const _0x3f6cf6=_0x15e5a0,_0x5f2446=_0x39641b()[_0x3f6cf6(0x1de2)](_0x369098['rows'],function(_0x59c42d){const _0x8040dd=_0x3f6cf6;return _0x39641b()[_0x8040dd(0x13b4)](_0x4b29f0[_0x8040dd(0xe28)],{'id':_0x59c42d[_0x8040dd(0x2982)]});});let _0x103c51=null;_0x4b29f0['mohSound']&&(_0x103c51=_0x39641b()['find'](_0x4b29f0[_0x3f6cf6(0xe28)],{'id':Number(_0x4b29f0[_0x3f6cf6(0x20b1)]['id'])}));if(_0x103c51&&!_0x39641b()['some'](_0x5f2446,['id',_0x103c51['id']])){const _0x36b54f=_0x39641b()[_0x3f6cf6(0x13b4)](_0x4b29f0[_0x3f6cf6(0xe28)],{'id':_0x103c51['id']});_0x36b54f[_0x3f6cf6(0x15da)]=![],_0x5f2446[_0x3f6cf6(0x2785)](_0x36b54f);}_0x4b29f0[_0x3f6cf6(0xe28)]=_0x5f2446;});}})[_0x4afbdf(0x1c4)](function(_0x46ee18){const _0x773326=_0x4afbdf;_0x562eda[_0x773326(0x218e)]({'title':_0x46ee18[_0x773326(0x291)]?_0x773326(0xeb9)+_0x46ee18[_0x773326(0x291)]+_0x773326(0x1657)+_0x46ee18['statusText']:'SYSTEM:GETsounds','msg':_0x46ee18[_0x773326(0x25c)]?JSON[_0x773326(0x2701)](_0x46ee18[_0x773326(0x25c)]):_0x46ee18[_0x773326(0x147f)]()});});function _0x4d279b(){const _0x152821=_0x4afbdf;_0x4b29f0[_0x152821(0x1a7c)]=[],_0x1c2f0c[_0x152821(0x157d)][_0x152821(0xaf0)]({'id':_0x37b45a[_0x152821(0x1dfe)]['id']},_0x4b29f0[_0x152821(0x20b1)])[_0x152821(0x1d77)][_0x152821(0x1cb0)](function(_0x599add){const _0x5e5860=_0x152821;_0x4b29f0[_0x5e5860(0xd8f)][_0x5e5860(0xf63)](_0x599add[_0x5e5860(0x19b2)]()),_0x562eda[_0x5e5860(0x829)]({'title':_0x5e5860(0x15e1),'msg':_0x4b29f0[_0x5e5860(0x20b1)][_0x5e5860(0x16b6)]?_0x4b29f0[_0x5e5860(0x20b1)]['name']+_0x5e5860(0x470):''}),_0x1774dc(_0x599add);})[_0x152821(0x1c4)](function(_0x53dfb5){const _0x42d28e=_0x152821;if(_0x53dfb5['data']&&_0x53dfb5[_0x42d28e(0x25c)]['errors']&&_0x53dfb5[_0x42d28e(0x25c)][_0x42d28e(0x1a7c)][_0x42d28e(0xfd0)]){_0x4b29f0['errors']=_0x53dfb5[_0x42d28e(0x25c)][_0x42d28e(0x1a7c)]||[{'message':_0x53dfb5[_0x42d28e(0x147f)](),'type':'api.voiceMusicOnHold.save'}];for(let _0x5d0f40=0x0;_0x5d0f40<_0x53dfb5[_0x42d28e(0x25c)][_0x42d28e(0x1a7c)][_0x42d28e(0xfd0)];_0x5d0f40+=0x1){_0x562eda[_0x42d28e(0x218e)]({'title':_0x53dfb5[_0x42d28e(0x25c)]['errors'][_0x5d0f40]['type'],'msg':_0x53dfb5[_0x42d28e(0x25c)][_0x42d28e(0x1a7c)][_0x5d0f40][_0x42d28e(0x155e)]});}}else _0x562eda[_0x42d28e(0x218e)]({'title':_0x53dfb5[_0x42d28e(0x291)]?_0x42d28e(0xeb9)+_0x53dfb5[_0x42d28e(0x291)]+_0x42d28e(0x1657)+_0x53dfb5[_0x42d28e(0xc22)]:_0x42d28e(0x1e18),'msg':_0x53dfb5[_0x42d28e(0x25c)]?JSON[_0x42d28e(0x2701)](_0x53dfb5[_0x42d28e(0x25c)][_0x42d28e(0x155e)]):_0x53dfb5[_0x42d28e(0x147f)]()});});}function _0x31a202(){const _0x1fdaf7=_0x4afbdf;_0x4b29f0['errors']=[],_0x1c2f0c[_0x1fdaf7(0x157d)][_0x1fdaf7(0x687)]({'id':_0x4b29f0[_0x1fdaf7(0x20b1)]['id']},_0x4b29f0[_0x1fdaf7(0x20b1)])[_0x1fdaf7(0x1d77)]['then'](function(_0x5b2f9b){const _0xdc533d=_0x1fdaf7,_0x2fc6b9=_0x39641b()[_0xdc533d(0x13b4)](_0x4b29f0[_0xdc533d(0xd8f)],{'id':_0x5b2f9b['id']});_0x2fc6b9&&_0x39641b()['merge'](_0x2fc6b9,_0x39641b()['pick'](_0x5b2f9b[_0xdc533d(0x19b2)](),_0x39641b()[_0xdc533d(0x1be5)](_0x2fc6b9))),_0x562eda[_0xdc533d(0x829)]({'title':_0xdc533d(0xdbf),'msg':_0x4b29f0[_0xdc533d(0x20b1)][_0xdc533d(0x16b6)]?_0x4b29f0[_0xdc533d(0x20b1)][_0xdc533d(0x16b6)]+_0xdc533d(0xedb):''}),_0x1774dc(_0x5b2f9b);})['catch'](function(_0x1c7e68){const _0x2e40df=_0x1fdaf7;if(_0x1c7e68[_0x2e40df(0x25c)]&&_0x1c7e68['data'][_0x2e40df(0x1a7c)]&&_0x1c7e68[_0x2e40df(0x25c)][_0x2e40df(0x1a7c)]['length']){_0x4b29f0['errors']=_0x1c7e68[_0x2e40df(0x25c)][_0x2e40df(0x1a7c)]||[{'message':_0x1c7e68[_0x2e40df(0x147f)](),'type':'api.voiceMusicOnHold.update'}];for(let _0x2e1750=0x0;_0x2e1750<_0x1c7e68['data'][_0x2e40df(0x1a7c)][_0x2e40df(0xfd0)];_0x2e1750++){_0x562eda[_0x2e40df(0x218e)]({'title':_0x1c7e68['data']['errors'][_0x2e1750][_0x2e40df(0x66a)],'msg':_0x1c7e68[_0x2e40df(0x25c)][_0x2e40df(0x1a7c)][_0x2e1750][_0x2e40df(0x155e)]});}}else _0x562eda[_0x2e40df(0x218e)]({'title':_0x1c7e68[_0x2e40df(0x291)]?_0x2e40df(0xeb9)+_0x1c7e68['status']+_0x2e40df(0x1657)+_0x1c7e68[_0x2e40df(0xc22)]:'api.voiceMusicOnHold.update','msg':_0x1c7e68[_0x2e40df(0x25c)]?JSON[_0x2e40df(0x2701)](_0x1c7e68[_0x2e40df(0x25c)][_0x2e40df(0x155e)]):_0x1c7e68[_0x2e40df(0x147f)]()});});}function _0x5ed27f(_0x3be163){const _0x2ba2cd=_0x4afbdf;_0x4b29f0['errors']=[];const _0x4b547c=_0xa08c58[_0x2ba2cd(0x1551)]()[_0x2ba2cd(0x1386)]('Are\x20you\x20sure?')[_0x2ba2cd(0x862)](_0x2ba2cd(0x2573))[_0x2ba2cd(0x15ad)](_0x2ba2cd(0x251c))['ok'](_0x2ba2cd(0x2594))[_0x2ba2cd(0x696)](_0x2ba2cd(0xde1))['targetEvent'](_0x3be163);_0xa08c58['show'](_0x4b547c)[_0x2ba2cd(0x1cb0)](function(){const _0x4a04b1=_0x2ba2cd;_0x1c2f0c[_0x4a04b1(0x157d)][_0x4a04b1(0x111d)]({'id':_0x4b29f0['mohSound']['id']})[_0x4a04b1(0x1d77)][_0x4a04b1(0x1cb0)](function(){const _0x32693c=_0x4a04b1;_0x39641b()[_0x32693c(0x152a)](_0x4b29f0['mohSounds'],{'id':_0x4b29f0[_0x32693c(0x20b1)]['id']}),_0x562eda[_0x32693c(0x829)]({'title':_0x32693c(0x2722),'msg':(_0x4b29f0[_0x32693c(0x20b1)]['name']||'mohSound')+_0x32693c(0x3f5)}),_0x1774dc(_0x4b29f0['mohSound']);})[_0x4a04b1(0x1c4)](function(_0x1b9499){const _0x22cec5=_0x4a04b1;if(_0x1b9499[_0x22cec5(0x25c)]&&_0x1b9499[_0x22cec5(0x25c)][_0x22cec5(0x1a7c)]&&_0x1b9499['data'][_0x22cec5(0x1a7c)][_0x22cec5(0xfd0)]){_0x4b29f0['errors']=_0x1b9499['data'][_0x22cec5(0x1a7c)]||[{'message':_0x1b9499[_0x22cec5(0x147f)](),'type':_0x22cec5(0x16e9)}];for(let _0x2c5653=0x0;_0x2c5653<_0x1b9499[_0x22cec5(0x25c)][_0x22cec5(0x1a7c)][_0x22cec5(0xfd0)];_0x2c5653++){_0x562eda['error']({'title':_0x1b9499[_0x22cec5(0x25c)][_0x22cec5(0x1a7c)][_0x2c5653][_0x22cec5(0x66a)],'msg':_0x1b9499[_0x22cec5(0x25c)][_0x22cec5(0x1a7c)][_0x2c5653][_0x22cec5(0x155e)]});}}else _0x562eda[_0x22cec5(0x218e)]({'title':_0x1b9499['status']?_0x22cec5(0xeb9)+_0x1b9499[_0x22cec5(0x291)]+_0x22cec5(0x1657)+_0x1b9499[_0x22cec5(0xc22)]:_0x22cec5(0x16e9),'msg':_0x1b9499[_0x22cec5(0x25c)]?JSON[_0x22cec5(0x2701)](_0x1b9499[_0x22cec5(0x25c)][_0x22cec5(0x155e)]):_0x1b9499['message']||_0x1b9499[_0x22cec5(0x147f)]()});});},function(){});}function _0x353799(_0x1cd356){return _0x1cd356===null?undefined:new Date(_0x1cd356);}function _0x1774dc(_0x92150b){const _0x5846d1=_0x4afbdf;_0xa08c58[_0x5846d1(0x1426)](_0x92150b);}}const _0x8d62a1=_0x545941;;_0x2df42f[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog','$document',_0x5537c6(0x1ae),_0x5537c6(0x8a5),_0x5537c6(0x9ca),'api',_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x15ae),_0x5537c6(0x2199)];function _0x2df42f(_0x13b9c1,_0x1aa87c,_0x5a36ac,_0x90a14f,_0x49b6ed,_0x3cc57c,_0x2e7d5b,_0x4d7563,_0x1d3c66,_0x46a40f,_0x3babfa,_0x36de01){const _0x533e7d=_0x5537c6,_0x1f3a2a=this;_0x1f3a2a[_0x533e7d(0xe76)]=_0x46a40f[_0x533e7d(0x21e8)](),_0x1f3a2a[_0x533e7d(0x8a5)]=_0x3cc57c,_0x1f3a2a['setting']=_0x2e7d5b,_0x1f3a2a[_0x533e7d(0x1b0c)]=_0x1f3a2a[_0x533e7d(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1f3a2a[_0x533e7d(0x2404)]=_0x1aa87c[_0x533e7d(0x2276)]()+_0x533e7d(0x138b)+_0x1aa87c['host'](),_0x1f3a2a[_0x533e7d(0x15ae)]=_0x3babfa||_0x13b9c1['params']['musiconhold']||{},_0x1f3a2a[_0x533e7d(0x2199)]=_0x36de01&&_0x36de01[_0x533e7d(0x184d)]==0x1?_0x36de01[_0x533e7d(0x2214)][0x0]:null,_0x1f3a2a[_0x533e7d(0x1b1a)]=_0x46a40f['parseCrudPermissions'](_0x1f3a2a[_0x533e7d(0x2199)]?_0x1f3a2a[_0x533e7d(0x2199)][_0x533e7d(0x1b1a)]:null),_0x1f3a2a[_0x533e7d(0xf4c)]={},_0x1f3a2a[_0x533e7d(0x8ec)]=_0x13b9c1['params']['tab']||0x0,_0x1f3a2a['alert']=_0x1d3c66['info'],_0x1f3a2a[_0x533e7d(0x1ff4)]=_0x1b4e13,_0x1f3a2a[_0x533e7d(0x5a3)]=_0x3dc373;function _0x1b4e13(){const _0x2d6f5c=_0x533e7d;_0x13b9c1['go'](_0x2d6f5c(0x156a),{},{'reload':_0x2d6f5c(0x156a)});}function _0x3dc373(){const _0x4705cd=_0x533e7d;_0x4d7563[_0x4705cd(0x157d)][_0x4705cd(0x687)]({'id':_0x1f3a2a[_0x4705cd(0x15ae)]['id']},_0x1f3a2a[_0x4705cd(0x15ae)])[_0x4705cd(0x1d77)][_0x4705cd(0x1cb0)](function(){const _0x17321f=_0x4705cd;_0x1d3c66[_0x17321f(0x829)]({'title':_0x17321f(0xf58),'msg':_0x1f3a2a[_0x17321f(0x15ae)][_0x17321f(0x16b6)]?_0x1f3a2a['musiconhold']['name']+_0x17321f(0x1068):''});})[_0x4705cd(0x1c4)](function(_0x22d50c){const _0x2bd696=_0x4705cd;_0x1d3c66[_0x2bd696(0x218e)]({'title':_0x22d50c[_0x2bd696(0x291)]?_0x2bd696(0xeb9)+_0x22d50c['status']+_0x2bd696(0x1657)+_0x22d50c['statusText']:_0x2bd696(0x36f),'msg':_0x22d50c['data']?JSON[_0x2bd696(0x2701)](_0x22d50c[_0x2bd696(0x25c)]):_0x22d50c[_0x2bd696(0x147f)]()});});}}const _0x3d1765=_0x2df42f;;const _0x3e6a30=_0x5074a3['p']+_0x5537c6(0x177d);;_0x310c05[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),'$state','$mdSidenav',_0x5537c6(0xcb9),'$document',_0x5537c6(0x2168),'$translate',_0x5537c6(0x1bd2),'userProfile',_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting'];function _0x310c05(_0xee47bd,_0x415efb,_0x8f53c4,_0x7be79,_0x23f4a3,_0x530a7d,_0x3a8893,_0x11400a,_0x4ea219,_0x1958c2,_0x233678,_0x51c5b0,_0x3850be,_0x276bcf,_0x954132,_0x11a86c,_0xedaec3){const _0x4efd41=_0x5537c6,_0x3c7788=this;_0x3c7788[_0x4efd41(0x8a5)]=_0x11a86c,_0x3c7788[_0x4efd41(0x9ca)]=_0xedaec3,_0x3c7788['currentUser']=_0x954132[_0x4efd41(0x21e8)](),_0x3c7788[_0x4efd41(0x1bd2)]=_0x4ea219||{'count':0x0,'rows':[]},_0x3c7788[_0x4efd41(0x44a)]=_0x1958c2,_0x3c7788[_0x4efd41(0x2199)]=_0x233678&&_0x233678[_0x4efd41(0x184d)]==0x1?_0x233678[_0x4efd41(0x2214)][0x0]:null,_0x3c7788[_0x4efd41(0x1b1a)]=_0x954132[_0x4efd41(0x14ea)](_0x3c7788[_0x4efd41(0x2199)]?_0x3c7788[_0x4efd41(0x2199)][_0x4efd41(0x1b1a)]:null),_0x3c7788['table']=_0x4efd41(0x1bd2),_0x3c7788[_0x4efd41(0x1d20)]='',_0x3c7788[_0x4efd41(0x1cdf)]=null,_0x3c7788[_0x4efd41(0x261f)]=[],_0x3c7788[_0x4efd41(0xae2)]={'fields':'createdAt,updatedAt,id,name,mode,directory,application,format,sort','defaultEntry':_0x4efd41(0xdec),'limit':0xa,'page':0x1},_0x3c7788[_0x4efd41(0x111f)]=_0x39641b()[_0x4efd41(0x2631)]([{'option':_0x4efd41(0x1a2a),'value':'\x27files\x27'},{'option':_0x4efd41(0x2353),'value':_0x4efd41(0x1849)}],function(_0x35a68a){const _0x91bbc3=_0x4efd41;return _0x39641b()[_0x91bbc3(0x288f)](_0x35a68a['value'],new RegExp('\x27','g'),'');}),_0x3c7788['arraysort']=_0x39641b()[_0x4efd41(0x2631)]([{'option':_0x4efd41(0x1cb3),'value':_0x4efd41(0x3f7)},{'option':_0x4efd41(0xfe9),'value':_0x4efd41(0x14e1)}],function(_0x1557f4){const _0x3ee901=_0x4efd41;return _0x39641b()[_0x3ee901(0x288f)](_0x1557f4[_0x3ee901(0x327)],new RegExp('\x27','g'),'');}),_0x3c7788[_0x4efd41(0x235d)]=_0x5455d9,_0x3c7788[_0x4efd41(0x27fe)]=_0x58c47a,_0x3c7788[_0x4efd41(0x829)]=_0x22c283,_0x3c7788[_0x4efd41(0x1a5c)]=_0x2441c8,_0x3c7788[_0x4efd41(0x129b)]=_0x55620e,_0x3c7788[_0x4efd41(0x1aa7)]=_0x1d4335,_0x3c7788[_0x4efd41(0x10cb)]=_0xe8c9b0,_0x3c7788[_0x4efd41(0x1c88)]=_0x51de62,_0x3c7788['deselectMusicOnHolds']=_0x114cdd,_0x3c7788['selectAllMusicOnHolds']=_0x56a19e;function _0x5455d9(_0x40335f){const _0x50cfa9=_0x4efd41;_0x8f53c4['go'](_0x50cfa9(0x2062),{'id':_0x40335f['id'],'musiconhold':_0x40335f,'crudPermissions':_0x3c7788[_0x50cfa9(0x1b1a)]});}function _0x58c47a(_0x377b8b,_0x5f3556){const _0xd5d611=_0x4efd41,_0x5a9ec8=_0x23f4a3[_0xd5d611(0x1551)]()['title'](_0xd5d611(0x140b)+_0x39641b()[_0xd5d611(0xa75)](_0xd5d611(0x15ae))+'?')[_0xd5d611(0x49e)](_0xd5d611(0x204d)+(_0x377b8b[_0xd5d611(0x16b6)]||_0xd5d611(0x15ae))+_0xd5d611(0x1200)+_0xd5d611(0x1b6))[_0xd5d611(0x15ad)](_0xd5d611(0x296d))[_0xd5d611(0x728)](_0x5f3556)['ok']('OK')[_0xd5d611(0x696)](_0xd5d611(0x24ba));_0x23f4a3[_0xd5d611(0xe27)](_0x5a9ec8)['then'](function(){_0x1d4335(_0x377b8b);},function(){const _0x4c092f=_0xd5d611;console['log'](_0x4c092f(0x24ba));});}let _0x2015fe=!![],_0x1fd574=0x1;_0xee47bd[_0x4efd41(0x614)](_0x4efd41(0x957),function(_0x35d36c,_0x23bd14){const _0x1e989e=_0x4efd41;_0x2015fe?_0x3a8893(function(){_0x2015fe=![];}):(!_0x23bd14&&(_0x1fd574=_0x3c7788['query'][_0x1e989e(0x1c7b)]),_0x35d36c!==_0x23bd14&&(_0x3c7788[_0x1e989e(0xae2)]['page']=0x1),!_0x35d36c&&(_0x3c7788['query'][_0x1e989e(0x1c7b)]=_0x1fd574),_0x3c7788[_0x1e989e(0x1a5c)]());});function _0x22c283(_0x14e7f4){const _0x202d8a=_0x4efd41;_0x3c7788[_0x202d8a(0x1bd2)]=_0x14e7f4||{'count':0x0,'rows':[]};}function _0x2441c8(){const _0x19db0a=_0x4efd41;_0x3c7788[_0x19db0a(0xae2)][_0x19db0a(0x184b)]=(_0x3c7788[_0x19db0a(0xae2)][_0x19db0a(0x1c7b)]-0x1)*_0x3c7788[_0x19db0a(0xae2)]['limit'],_0x954132[_0x19db0a(0x22b6)](_0x19db0a(0x1c60))?_0x3c7788['promise']=_0x51c5b0[_0x19db0a(0x157d)][_0x19db0a(0xbf7)](_0x3c7788[_0x19db0a(0xae2)],_0x22c283)[_0x19db0a(0x1d77)]:(_0x3c7788[_0x19db0a(0xae2)]['id']=_0x3c7788['userProfile']['id'],_0x3c7788[_0x19db0a(0xae2)]['section']=_0x19db0a(0x22ab),_0x3c7788[_0x19db0a(0x2061)]=_0x51c5b0['userProfile'][_0x19db0a(0x1810)](_0x3c7788[_0x19db0a(0xae2)],_0x22c283)[_0x19db0a(0x1d77)]);}function _0x55620e(_0x546344,_0x4110c5){const _0x520342=_0x4efd41;_0x23f4a3['show']({'controller':_0x520342(0x53e),'controllerAs':'vm','templateUrl':_0x3e6a30,'parent':angular[_0x520342(0x1853)](_0x530a7d[_0x520342(0x1ed9)]),'targetEvent':_0x546344,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x4110c5,'musiconholds':_0x3c7788[_0x520342(0x1bd2)][_0x520342(0x2214)],'license':_0x3c7788[_0x520342(0x8a5)],'setting':_0x3c7788[_0x520342(0x9ca)],'crudPermissions':_0x3c7788[_0x520342(0x1b1a)]}});}function _0x1d4335(_0x277561){const _0x2c37fa=_0x4efd41;_0x51c5b0[_0x2c37fa(0x157d)][_0x2c37fa(0x111d)]({'id':_0x277561['id']})[_0x2c37fa(0x1d77)][_0x2c37fa(0x1cb0)](function(){const _0x5dc042=_0x2c37fa;_0x39641b()['remove'](_0x3c7788[_0x5dc042(0x1bd2)][_0x5dc042(0x2214)],{'id':_0x277561['id']}),_0x3c7788[_0x5dc042(0x1bd2)][_0x5dc042(0x184d)]-=0x1,!_0x3c7788[_0x5dc042(0x1bd2)]['rows']['length']&&_0x3c7788['getMusicOnHolds'](),_0x276bcf[_0x5dc042(0x829)]({'title':_0x39641b()[_0x5dc042(0xa75)](_0x5dc042(0x973))+_0x5dc042(0x2663),'msg':_0x277561['name']?_0x277561[_0x5dc042(0x16b6)]+_0x5dc042(0x3f5):''});})[_0x2c37fa(0x1c4)](function(_0x2474ab){const _0x258ec5=_0x2c37fa;if(_0x2474ab[_0x258ec5(0x25c)]&&_0x2474ab[_0x258ec5(0x25c)][_0x258ec5(0x1a7c)]&&_0x2474ab['data'][_0x258ec5(0x1a7c)][_0x258ec5(0xfd0)]){_0x3c7788[_0x258ec5(0x1a7c)]=_0x2474ab['data'][_0x258ec5(0x1a7c)]||[{'message':_0x2474ab['toString'](),'type':'SYSTEM:DELETEvoiceMusicOnHold'}];for(let _0x2d2e58=0x0;_0x2d2e58<_0x2474ab[_0x258ec5(0x25c)][_0x258ec5(0x1a7c)]['length'];_0x2d2e58++){_0x276bcf[_0x258ec5(0x218e)]({'title':_0x2474ab[_0x258ec5(0x25c)][_0x258ec5(0x1a7c)][_0x2d2e58][_0x258ec5(0x66a)],'msg':_0x2474ab['data'][_0x258ec5(0x1a7c)][_0x2d2e58][_0x258ec5(0x155e)]});}}else _0x276bcf[_0x258ec5(0x218e)]({'title':_0x2474ab[_0x258ec5(0x291)]?_0x258ec5(0xeb9)+_0x2474ab['status']+'\x20-\x20'+_0x2474ab['statusText']:'SYSTEM:DELETEvoiceMusicOnHold','msg':_0x2474ab[_0x258ec5(0x25c)]?JSON[_0x258ec5(0x2701)](_0x2474ab[_0x258ec5(0x25c)][_0x258ec5(0x155e)]):_0x2474ab['message']||_0x2474ab[_0x258ec5(0x147f)]()});});}function _0xe8c9b0(){const _0x516808=_0x4efd41,_0x5712cd=angular[_0x516808(0x17fe)](_0x3c7788[_0x516808(0x261f)]);return _0x3c7788[_0x516808(0x261f)]=[],_0x5712cd;}function _0x51de62(_0x590d4d){const _0x84196c=_0x4efd41,_0x4f7dd8=_0x23f4a3[_0x84196c(0x1551)]()[_0x84196c(0x1386)](_0x84196c(0x266d))[_0x84196c(0x49e)](_0x84196c(0x204d)+_0x3c7788[_0x84196c(0x261f)]['length']+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x84196c(0x15ad)](_0x84196c(0xfc9))[_0x84196c(0x728)](_0x590d4d)['ok']('OK')['cancel'](_0x84196c(0x24ba));_0x23f4a3[_0x84196c(0xe27)](_0x4f7dd8)[_0x84196c(0x1cb0)](function(){const _0x39a9a8=_0x84196c;_0x3c7788[_0x39a9a8(0x261f)]['forEach'](function(_0x3cac19){_0x1d4335(_0x3cac19);}),_0x3c7788[_0x39a9a8(0x261f)]=[];});}function _0x114cdd(){_0x3c7788['selectedMusicOnHolds']=[];}function _0x56a19e(){const _0x4d7578=_0x4efd41;_0x3c7788[_0x4d7578(0x261f)]=_0x3c7788[_0x4d7578(0x1bd2)][_0x4d7578(0x2214)];}}const _0x5f5d79=_0x310c05;;_0x5b035a[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),'outboundroutes',_0x5537c6(0xd8e),_0x5537c6(0x142b),_0x5537c6(0x1774),'license',_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x5b035a(_0x59a588,_0x508a7e,_0x533a33,_0x442ab4,_0x31605b,_0x35f448,_0x11cc3c,_0x3bad3b,_0x3ac5f5,_0x52c687,_0x917295,_0x39bb2,_0x192923,_0x13bc45){const _0x56089d=_0x5537c6,_0xb49153=this;_0xb49153[_0x56089d(0xe76)]=_0x917295[_0x56089d(0x21e8)](),_0xb49153[_0x56089d(0x1a7c)]=[],_0xb49153['setting']=_0x192923,_0xb49153[_0x56089d(0x8a5)]=_0x39bb2,_0xb49153[_0x56089d(0x1b1a)]=_0x13bc45,_0xb49153[_0x56089d(0xf4c)]={},_0xb49153[_0x56089d(0x1b0c)]=_0xb49153['setting']&&_0xb49153[_0x56089d(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xb49153[_0x56089d(0x1386)]='VOICE.EDIT_OUTBOUNDROUTE',_0xb49153['outboundroute']=angular[_0x56089d(0x17fe)](_0x3ac5f5),_0xb49153[_0x56089d(0x128c)]=_0x3bad3b,_0xb49153['newOutboundRoute']=![],_0xb49153[_0x56089d(0x15ff)]={'count':0x0,'rows':[]},_0xb49153['apps']=_0x39641b()[_0x56089d(0x988)](_0x39641b()[_0x56089d(0x1d33)]([{'app':_0x56089d(0x1d81),'appType':_0x56089d(0x1ac8),'type':_0x56089d(0x1b52),'types':[_0x56089d(0x2017),_0x56089d(0x197c),'list'],'fields':[],'isApp':![]},{'app':_0x56089d(0x18f8),'appType':_0x56089d(0x25f4),'context':_0x56089d(0x156f),'type':'Outbound','icon':'icon-apps','interval':_0x56089d(0x965),'options':'xX','isApp':!![],'extraApi':[{'name':'trunks','route':'trunk','filters':{'fields':_0x56089d(0x16b6),'sort':_0x56089d(0x16b6)}},{'name':_0x56089d(0xfbf),'route':_0x56089d(0x22b1),'filters':{'fields':_0x56089d(0x16b6),'sort':_0x56089d(0x16b6),'nolimit':!![]}}],'fields':[{'title':_0x56089d(0xf67),'name':_0x56089d(0x1ae0),'type':_0x56089d(0xb52),'values':'trunks','value':_0x56089d(0xcb0),'option':_0x56089d(0xcb0),'required':!![],'param':0x0},{'title':_0x56089d(0x10f7),'name':'callerID','type':_0x56089d(0x19d3),'ngPattern':_0x56089d(0x18b6),'help':!![]},{'title':_0x56089d(0xeed),'name':_0x56089d(0x586),'type':_0x56089d(0x19d3)},{'title':_0x56089d(0x190),'name':'tag','type':_0x56089d(0xb52),'values':_0x56089d(0xfbf),'value':_0x56089d(0x52a),'option':_0x56089d(0x52a),'defaultValues':[{'value':'\x27--\x27','option':_0x56089d(0x2001)}]},{'title':_0x56089d(0xbcc),'name':_0x56089d(0x1719),'type':'number','min':0x0,'param':0x1},{'title':'Options','name':_0x56089d(0x2224),'type':_0x56089d(0x19d3),'param':0x2},{'title':_0x56089d(0x237c),'name':'url','type':_0x56089d(0x19d3),'param':0x3}]},{'app':null,'type':_0x56089d(0x1b52),'appType':_0x56089d(0x197c),'icon':_0x56089d(0x33e),'interval':_0x56089d(0x965),'isApp':!![],'fields':[{'title':'Application_Name','name':_0x56089d(0x22e1),'type':_0x56089d(0x19d3),'required':!![],'param':0x0},{'title':'Arguments','name':_0x56089d(0x28df),'type':_0x56089d(0x19d3),'param':0x1}]}],[_0x56089d(0x22e1)]),{'isApp':![]});!_0xb49153[_0x56089d(0xd8e)]&&(_0xb49153[_0x56089d(0xd8e)]={'appdata':'Outbound\x20Call','type':_0x56089d(0x895),'context':_0x56089d(0x156f),'recordingFormat':_0x56089d(0x13b1)},_0xb49153[_0x56089d(0x1386)]=_0x56089d(0x1804),_0xb49153[_0x56089d(0x3a4)]=!![]);_0xb49153[_0x56089d(0x1e97)]=_0x3c06b6,_0xb49153[_0x56089d(0x287a)]=_0x3718d8,_0xb49153[_0x56089d(0x1e7f)]=_0xc98df6,_0xb49153[_0x56089d(0x2c4)]=_0x505bd9,_0xb49153[_0x56089d(0x463)]=_0x1c9c28,_0xb49153[_0x56089d(0xda0)]=_0x5aa1ea,_0x917295['hasRole'](_0x56089d(0x1c60))?_0x52c687['voiceContext'][_0x56089d(0xbf7)]({'fields':'id,name','sort':_0x56089d(0x16b6),'nolimit':_0x56089d(0x44d)})[_0x56089d(0x1d77)][_0x56089d(0x1cb0)](function(_0x264a92){const _0x5d1c2d=_0x56089d;_0xb49153[_0x5d1c2d(0x14f6)]=_0x264a92[_0x5d1c2d(0x2214)]||[];})[_0x56089d(0x1c4)](function(_0x2eec74){const _0x2c4e74=_0x56089d;_0x11cc3c[_0x2c4e74(0x218e)]({'title':_0x2eec74['status']?'API:'+_0x2eec74[_0x2c4e74(0x291)]+_0x2c4e74(0x1657)+_0x2eec74[_0x2c4e74(0xc22)]:_0x2c4e74(0x2072),'msg':_0x2eec74[_0x2c4e74(0x25c)]?JSON['stringify'](_0x2eec74[_0x2c4e74(0x25c)]):_0x2eec74['toString']()});}):_0x52c687[_0x56089d(0x1da5)][_0x56089d(0xbf7)]({'fields':_0x56089d(0x43c),'sort':_0x56089d(0x16b6),'nolimit':'true'})[_0x56089d(0x1d77)][_0x56089d(0x1cb0)](function(_0x2c3308){const _0x4cedef=_0x56089d;_0xb49153[_0x4cedef(0x14f6)]=_0x2c3308[_0x4cedef(0x2214)]||[];})[_0x56089d(0x1cb0)](function(){const _0x5de18b=_0x56089d;return _0x52c687[_0x5de18b(0x2199)][_0x5de18b(0xbf7)]({'userProfileId':_0xb49153['currentUser'][_0x5de18b(0x13c1)],'sectionId':0x195})[_0x5de18b(0x1d77)];})['then'](function(_0x23599f){const _0x435353=_0x56089d,_0x6d8392=_0x23599f&&_0x23599f['rows']?_0x23599f[_0x435353(0x2214)][0x0]:null;if(!_0x6d8392)return _0x52c687[_0x435353(0x1da5)]['get']({'fields':_0x435353(0x43c),'sort':'name','nolimit':_0x435353(0x44d),'defaultEntry':0x1})[_0x435353(0x1d77)][_0x435353(0x1cb0)](function(_0x4d2e0f){const _0x535aa0=_0x435353;_0xb49153[_0x535aa0(0x14f6)]=_0x4d2e0f[_0x535aa0(0x2214)]||[];});else{if(!_0x6d8392[_0x435353(0x12f4)])return _0x52c687[_0x435353(0x1198)]['get']({'sectionId':_0x6d8392['id']})[_0x435353(0x1d77)]['then'](function(_0x218fa9){const _0x19a558=_0x435353,_0x8c8bf4=_0x39641b()[_0x19a558(0x1de2)](_0x218fa9['rows'],function(_0xfdd200){const _0x57a4b5=_0x19a558;return _0x39641b()[_0x57a4b5(0x13b4)](_0xb49153['contexts'],{'id':_0xfdd200[_0x57a4b5(0x2982)]});});let _0x484f0b=null;_0xb49153[_0x19a558(0xd8e)]&&(_0x484f0b=_0x39641b()[_0x19a558(0x13b4)](_0xb49153[_0x19a558(0x14f6)],{'name':_0xb49153[_0x19a558(0xd8e)][_0x19a558(0x2056)]}));if(_0x484f0b&&!_0x39641b()[_0x19a558(0x727)](_0x8c8bf4,['id',_0x484f0b['id']])){const _0x4e1db0=_0x39641b()[_0x19a558(0x13b4)](_0xb49153[_0x19a558(0x14f6)],{'id':_0x484f0b['id']});_0x4e1db0[_0x19a558(0x15da)]=![],_0x8c8bf4['push'](_0x4e1db0);}_0xb49153['contexts']=_0x8c8bf4;});}})[_0x56089d(0x1c4)](function(_0x5e442c){const _0xc3322f=_0x56089d;_0x11cc3c[_0xc3322f(0x218e)]({'title':_0x5e442c[_0xc3322f(0x291)]?_0xc3322f(0xeb9)+_0x5e442c['status']+_0xc3322f(0x1657)+_0x5e442c[_0xc3322f(0xc22)]:_0xc3322f(0x5ac),'msg':_0x5e442c[_0xc3322f(0x25c)]?JSON['stringify'](_0x5e442c[_0xc3322f(0x25c)]):_0x5e442c['toString']()});});function _0x3c06b6(){const _0x1714dc=_0x56089d;_0xb49153['errors']=[],_0x52c687['voiceExtension']['save'](_0xb49153[_0x1714dc(0xd8e)])['$promise'][_0x1714dc(0x1cb0)](function(_0x313036){const _0x5c30a6=_0x1714dc;_0xb49153['outboundroutes']['unshift'](_0x313036[_0x5c30a6(0x19b2)]()),_0x11cc3c['success']({'title':_0x5c30a6(0x14e3),'msg':_0xb49153[_0x5c30a6(0xd8e)][_0x5c30a6(0x16b6)]?_0xb49153[_0x5c30a6(0xd8e)][_0x5c30a6(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x5aa1ea(_0x313036);})[_0x1714dc(0x1c4)](function(_0x4bd262){const _0x3607c7=_0x1714dc;if(_0x4bd262['data']&&_0x4bd262[_0x3607c7(0x25c)][_0x3607c7(0x1a7c)]&&_0x4bd262[_0x3607c7(0x25c)]['errors'][_0x3607c7(0xfd0)]){_0xb49153[_0x3607c7(0x1a7c)]=_0x4bd262[_0x3607c7(0x25c)][_0x3607c7(0x1a7c)]||[{'message':_0x4bd262[_0x3607c7(0x147f)](),'type':_0x3607c7(0xe25)}];for(let _0x108ed9=0x0;_0x108ed9<_0x4bd262[_0x3607c7(0x25c)][_0x3607c7(0x1a7c)][_0x3607c7(0xfd0)];_0x108ed9+=0x1){_0x11cc3c[_0x3607c7(0x218e)]({'title':_0x4bd262[_0x3607c7(0x25c)][_0x3607c7(0x1a7c)][_0x108ed9][_0x3607c7(0x66a)],'msg':_0x4bd262[_0x3607c7(0x25c)]['errors'][_0x108ed9][_0x3607c7(0x155e)]});}}else _0x11cc3c[_0x3607c7(0x218e)]({'title':_0x4bd262[_0x3607c7(0x291)]?_0x3607c7(0xeb9)+_0x4bd262[_0x3607c7(0x291)]+_0x3607c7(0x1657)+_0x4bd262[_0x3607c7(0xc22)]:_0x3607c7(0xe25),'msg':_0x4bd262[_0x3607c7(0x25c)]?JSON[_0x3607c7(0x2701)](_0x4bd262['data'][_0x3607c7(0x155e)]):_0x4bd262[_0x3607c7(0x147f)]()});});}function _0x3718d8(){const _0x57f279=_0x56089d;_0xb49153[_0x57f279(0x1a7c)]=[],_0x52c687[_0x57f279(0x1059)]['update']({'id':_0xb49153[_0x57f279(0xd8e)]['id']},_0xb49153['outboundroute'])[_0x57f279(0x1d77)][_0x57f279(0x1cb0)](function(_0x209475){const _0x3c843f=_0x57f279,_0x1ed149=_0x39641b()[_0x3c843f(0x13b4)](_0xb49153['outboundroutes'],{'id':_0x209475['id']});_0x1ed149&&(_0x39641b()[_0x3c843f(0x9c1)](_0x1ed149,_0x39641b()[_0x3c843f(0x169b)](_0x209475[_0x3c843f(0x19b2)](),_0x39641b()[_0x3c843f(0x1be5)](_0x1ed149))),_0x52c687['voiceExtension'][_0x3c843f(0xbf7)]({'sort':_0x3c843f(0x521),'VoiceExtensionId':_0x1ed149['id'],'isApp':!![],'nolimit':!![]})[_0x3c843f(0x1d77)][_0x3c843f(0x1cb0)](function(_0xb2a143){const _0x3d6980=_0x3c843f;_0xb49153[_0x3d6980(0x15ff)]=_0xb2a143,_0x1c9c28();})),_0x11cc3c[_0x3c843f(0x829)]({'title':_0x3c843f(0x144d),'msg':_0xb49153[_0x3c843f(0xd8e)][_0x3c843f(0x16b6)]?_0xb49153[_0x3c843f(0xd8e)][_0x3c843f(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x5aa1ea(_0x209475);})[_0x57f279(0x1c4)](function(_0x124b3f){const _0x215a7e=_0x57f279;if(_0x124b3f['data']&&_0x124b3f['data'][_0x215a7e(0x1a7c)]&&_0x124b3f[_0x215a7e(0x25c)]['errors']['length']){_0xb49153[_0x215a7e(0x1a7c)]=_0x124b3f[_0x215a7e(0x25c)][_0x215a7e(0x1a7c)]||[{'message':_0x124b3f[_0x215a7e(0x147f)](),'type':'api.voiceExtension.update'}];for(let _0x5cdd09=0x0;_0x5cdd09<_0x124b3f[_0x215a7e(0x25c)][_0x215a7e(0x1a7c)][_0x215a7e(0xfd0)];_0x5cdd09++){_0x11cc3c[_0x215a7e(0x218e)]({'title':_0x124b3f[_0x215a7e(0x25c)][_0x215a7e(0x1a7c)][_0x5cdd09][_0x215a7e(0x66a)],'msg':_0x124b3f[_0x215a7e(0x25c)]['errors'][_0x5cdd09][_0x215a7e(0x155e)]});}}else _0x11cc3c[_0x215a7e(0x218e)]({'title':_0x124b3f[_0x215a7e(0x291)]?_0x215a7e(0xeb9)+_0x124b3f['status']+_0x215a7e(0x1657)+_0x124b3f[_0x215a7e(0xc22)]:_0x215a7e(0x237b),'msg':_0x124b3f[_0x215a7e(0x25c)]?JSON['stringify'](_0x124b3f[_0x215a7e(0x25c)][_0x215a7e(0x155e)]):_0x124b3f[_0x215a7e(0x147f)]()});});}function _0xc98df6(_0x36548d){const _0x4b7154=_0x56089d;_0x52c687[_0x4b7154(0x152c)][_0x4b7154(0xbf7)]({'VoiceExtensionId':_0x3ac5f5['id']})['$promise']['then'](function(_0x26d2ae){const _0x1297b4=_0x4b7154;if(_0x26d2ae&&_0x26d2ae['rows']&&_0x26d2ae[_0x1297b4(0x2214)][_0x1297b4(0xfd0)]>0x0)return _0x11cc3c[_0x1297b4(0x218e)]({'title':_0x1297b4(0x22d4),'msg':'You\x20can\x27t\x20remove\x20an\x20outbound\x20route\x20associated\x20to\x20an\x20out\x20prefix'});else{_0xb49153[_0x1297b4(0x1a7c)]=[];const _0x1ae69a=_0x442ab4['confirm']()[_0x1297b4(0x1386)]('Are\x20you\x20sure?')[_0x1297b4(0x862)]('The\x20outboundroute\x20will\x20be\x20deleted.')[_0x1297b4(0x15ad)](_0x1297b4(0x1e5e))['ok']('Delete')[_0x1297b4(0x696)]('Cancel')[_0x1297b4(0x728)](_0x36548d);_0x442ab4[_0x1297b4(0xe27)](_0x1ae69a)[_0x1297b4(0x1cb0)](function(){const _0xd1a7cc=_0x1297b4;_0x52c687[_0xd1a7cc(0x1059)][_0xd1a7cc(0x111d)]({'id':_0xb49153['outboundroute']['id']})[_0xd1a7cc(0x1d77)][_0xd1a7cc(0x1cb0)](function(){const _0x500486=_0xd1a7cc;_0x39641b()[_0x500486(0x152a)](_0xb49153['outboundroutes'],{'id':_0xb49153[_0x500486(0xd8e)]['id']}),_0x11cc3c[_0x500486(0x829)]({'title':_0x500486(0x1409),'msg':(_0xb49153[_0x500486(0xd8e)][_0x500486(0x16b6)]||_0x500486(0xd8e))+_0x500486(0x3f5)}),_0x5aa1ea(_0xb49153[_0x500486(0xd8e)]);})[_0xd1a7cc(0x1c4)](function(_0x1a3957){const _0xfdd28=_0xd1a7cc;if(_0x1a3957[_0xfdd28(0x25c)]&&_0x1a3957['data'][_0xfdd28(0x1a7c)]&&_0x1a3957[_0xfdd28(0x25c)][_0xfdd28(0x1a7c)][_0xfdd28(0xfd0)]){_0xb49153['errors']=_0x1a3957[_0xfdd28(0x25c)][_0xfdd28(0x1a7c)]||[{'message':_0x1a3957[_0xfdd28(0x147f)](),'type':_0xfdd28(0xb49)}];for(let _0x109f34=0x0;_0x109f34<_0x1a3957[_0xfdd28(0x25c)][_0xfdd28(0x1a7c)]['length'];_0x109f34++){_0x11cc3c[_0xfdd28(0x218e)]({'title':_0x1a3957[_0xfdd28(0x25c)][_0xfdd28(0x1a7c)][_0x109f34][_0xfdd28(0x66a)],'msg':_0x1a3957['data'][_0xfdd28(0x1a7c)][_0x109f34]['message']});}}else _0x11cc3c[_0xfdd28(0x218e)]({'title':_0x1a3957['status']?'API:'+_0x1a3957['status']+_0xfdd28(0x1657)+_0x1a3957['statusText']:_0xfdd28(0xb49),'msg':_0x1a3957[_0xfdd28(0x25c)]?JSON[_0xfdd28(0x2701)](_0x1a3957['data'][_0xfdd28(0x155e)]):_0x1a3957[_0xfdd28(0x155e)]||_0x1a3957['toString']()});});},function(){});}});}function _0x1c9c28(){const _0x33e948=_0x56089d;let _0x2e7992=0x2,_0x1fbbd3=[];_0x1fbbd3['push']({'type':_0x33e948(0x895),'app':'Set','appdata':_0x33e948(0x13db),'context':_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x2056)],'exten':_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x26a2)],'priority':_0x2e7992++,'VoiceExtensionId':_0xb49153['outboundroute']['id']}),_0x1fbbd3[_0x33e948(0x2785)]({'type':_0x33e948(0x895),'app':_0x33e948(0x11c3),'appdata':_0x33e948(0x215d)+(_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x325)]?_0x33e948(0x19e4)+_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x325)]+'}':_0x33e948(0xcdd)),'context':_0xb49153['outboundroute'][_0x33e948(0x2056)],'exten':_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x26a2)],'priority':_0x2e7992++,'VoiceExtensionId':_0xb49153[_0x33e948(0xd8e)]['id']}),_0x1fbbd3[_0x33e948(0x2785)]({'type':_0x33e948(0x895),'app':_0x33e948(0x11c3),'appdata':_0x33e948(0xf20),'context':_0xb49153['outboundroute'][_0x33e948(0x2056)],'exten':_0xb49153['outboundroute']['exten'],'priority':_0x2e7992++,'VoiceExtensionId':_0xb49153[_0x33e948(0xd8e)]['id']}),_0x1fbbd3[_0x33e948(0x2785)]({'type':_0x33e948(0x895),'app':'Set','appdata':_0x33e948(0x1781),'context':_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x2056)],'exten':_0xb49153['outboundroute'][_0x33e948(0x26a2)],'priority':_0x2e7992++,'VoiceExtensionId':_0xb49153[_0x33e948(0xd8e)]['id']}),_0x1fbbd3[_0x33e948(0x2785)]({'type':_0x33e948(0x895),'app':'Set','appdata':_0x33e948(0x4ba),'context':_0xb49153['outboundroute'][_0x33e948(0x2056)],'exten':_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x26a2)],'priority':_0x2e7992++,'VoiceExtensionId':_0xb49153[_0x33e948(0xd8e)]['id']}),_0x1fbbd3[_0x33e948(0x2785)]({'type':'outbound','app':_0x33e948(0x11c3),'appdata':_0x33e948(0x2712)+_0xb49153[_0x33e948(0xd8e)]['id'],'context':_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x2056)],'exten':_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x26a2)],'priority':_0x2e7992++,'VoiceExtensionId':_0xb49153[_0x33e948(0xd8e)]['id']});typeof _0xb49153[_0x33e948(0xd8e)][_0x33e948(0xf8d)]!==_0x33e948(0x16b5)&&_0xb49153[_0x33e948(0xd8e)][_0x33e948(0xf8d)]!=='none'&&(_0x1fbbd3[_0x33e948(0x2785)]({'type':'outbound','app':'Set','appdata':_0x33e948(0x1069),'context':_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x2056)],'exten':_0xb49153[_0x33e948(0xd8e)]['exten'],'priority':_0x2e7992++,'VoiceExtensionId':_0xb49153[_0x33e948(0xd8e)]['id']}),_0x1fbbd3[_0x33e948(0x2785)]({'type':_0x33e948(0x895),'app':_0x33e948(0x11c3),'appdata':'_XCALLY_MIXMONITOR_FORMAT='+_0xb49153[_0x33e948(0xd8e)]['recordingFormat']||0x0,'context':_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x2056)],'exten':_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x26a2)],'priority':_0x2e7992++,'VoiceExtensionId':_0xb49153[_0x33e948(0xd8e)]['id']}));for(let _0x22ccd9=0x0,_0x5dfe8c=0x0;_0x22ccd9<_0xb49153[_0x33e948(0x15ff)][_0x33e948(0x2214)]['length'];_0x22ccd9++,_0x5dfe8c=0x0){const _0x3279b9=_0xb49153['outboundrouteApps'][_0x33e948(0x2214)][_0x22ccd9],_0x25a35c=[],_0x33d048=[];_0x3279b9['intervals']=_0x3279b9[_0x33e948(0x1ac8)]!==_0x33e948(0x965)?[_0x3279b9[_0x33e948(0x1ac8)]]:_0x3279b9['IntervalId']?_0x39641b()['map'](_0x39641b()['filter'](_0xb49153[_0x33e948(0xb4a)][_0x33e948(0x2214)],{'IntervalId':_0x3279b9['IntervalId']}),'interval'):[],_0x3279b9[_0x33e948(0x2056)]=_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x2056)],_0x3279b9[_0x33e948(0x26a2)]=_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x26a2)];_0x3279b9[_0x33e948(0x66a)]&&(_0x3279b9[_0x33e948(0x66a)]=_0x3279b9[_0x33e948(0x66a)][_0x33e948(0x1680)]());typeof _0x3279b9[_0x33e948(0x22b1)]!==_0x33e948(0x16b5)&&(_0x3279b9[_0x33e948(0x22b1)]&&_0x3279b9[_0x33e948(0x22b1)]!=='--'&&_0x25a35c[_0x33e948(0x2785)]({'type':_0x3279b9[_0x33e948(0x66a)][_0x33e948(0x1680)](),'app':'Set','appdata':'CDR(tag)='+_0x3279b9[_0x33e948(0x22b1)],'context':_0xb49153[_0x33e948(0xd8e)]['context'],'exten':_0xb49153['outboundroute'][_0x33e948(0x26a2)],'priority':_0x3279b9[_0x33e948(0xb4a)][_0x33e948(0xfd0)]+_0x2e7992+_0x5dfe8c++,'VoiceExtensionId':_0xb49153[_0x33e948(0xd8e)]['id']}));_0x3279b9[_0x33e948(0x2816)]?_0x25a35c[_0x33e948(0x2785)]({'type':_0x3279b9[_0x33e948(0x66a)][_0x33e948(0x1680)](),'app':_0x33e948(0x1991),'appdata':_0x33e948(0xd48)+_0x3279b9[_0x33e948(0x2816)]+')','context':_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x2056)],'exten':_0xb49153[_0x33e948(0xd8e)]['exten'],'priority':_0x3279b9[_0x33e948(0xb4a)][_0x33e948(0xfd0)]+_0x2e7992+_0x5dfe8c++,'VoiceExtensionId':_0xb49153[_0x33e948(0xd8e)]['id']}):_0x25a35c[_0x33e948(0x2785)]({'type':_0x3279b9[_0x33e948(0x66a)]['toLowerCase'](),'app':_0x33e948(0x1991),'appdata':_0x33e948(0x5c2),'context':_0xb49153[_0x33e948(0xd8e)]['context'],'exten':_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x26a2)],'priority':_0x3279b9['intervals'][_0x33e948(0xfd0)]+_0x2e7992+_0x5dfe8c++,'VoiceExtensionId':_0xb49153['outboundroute']['id']});for(let _0xc5fb23=0x0;_0xc5fb23<_0x3279b9[_0x33e948(0xb4a)][_0x33e948(0xfd0)];_0xc5fb23++){const _0x166c9b=_0x2e7992+_0x3279b9[_0x33e948(0xb4a)][_0x33e948(0xfd0)],_0x373c04=_0xc5fb23===_0x3279b9[_0x33e948(0xb4a)][_0x33e948(0xfd0)]-0x1?_0x2e7992+_0x25a35c[_0x33e948(0xfd0)]+_0x33d048[_0x33e948(0xfd0)]+0x2:_0x2e7992+_0xc5fb23+0x1;_0x25a35c[_0x33e948(0x159c)](_0xc5fb23,0x0,{'type':_0x33e948(0x895),'app':'GotoIfTime','appdata':_0x3279b9[_0x33e948(0xb4a)][_0xc5fb23]+'?'+_0xb49153[_0x33e948(0xd8e)]['context']+_0x33e948(0xa5c)+_0x166c9b+':'+_0xb49153[_0x33e948(0xd8e)]['context']+_0x33e948(0xa5c)+_0x373c04,'exten':_0xb49153[_0x33e948(0xd8e)]['exten'],'context':_0xb49153['outboundroute'][_0x33e948(0x2056)],'priority':_0x2e7992+_0xc5fb23,'VoiceExtensionId':_0xb49153[_0x33e948(0xd8e)]['id']});}if(_0x3279b9[_0x33e948(0x299b)]==='outboundDial'){const _0x9be792=_0x39641b()['find'](_0xb49153[_0x33e948(0x196f)],{'appType':_0x33e948(0x25f4)});if(_0x9be792&&_0x9be792['fields']){const _0x4de7ec={},_0xb90025=_0x3279b9['appdata'][_0x33e948(0xbe1)](','),_0x29abf2=[];for(let _0x1e6806=0x0,_0x2d7135=_0x9be792[_0x33e948(0x355)][_0x33e948(0xfd0)];_0x1e6806<_0x2d7135;_0x1e6806++){if(typeof _0x9be792[_0x33e948(0x355)][_0x1e6806][_0x33e948(0x94b)]!==_0x33e948(0x16b5))switch(_0x9be792[_0x33e948(0x355)][_0x1e6806][_0x33e948(0x16b6)]){case _0x33e948(0x1ae0):_0x4de7ec['trunk']=_0xb90025[_0x9be792[_0x33e948(0x355)][_0x1e6806]['param']][_0x33e948(0xbe1)]('/')[0x1],_0x4de7ec[_0x33e948(0x1340)]=_0xb90025[_0x9be792[_0x33e948(0x355)][_0x1e6806][_0x33e948(0x94b)]]['split']('/')[0x2],_0x4de7ec[_0x33e948(0x586)]=_0x4de7ec[_0x33e948(0x1340)]?_0x4de7ec[_0x33e948(0x1340)][_0x33e948(0xbe1)]('$')[0x0]:undefined,_0x4de7ec['phone']=_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x325)]?(_0x4de7ec[_0x33e948(0x586)]||'')+_0x33e948(0x19e4)+_0xb49153[_0x33e948(0xd8e)]['cutdigits']+'}':(_0x4de7ec[_0x33e948(0x586)]||'')+'${EXTEN}',_0x29abf2[_0x9be792[_0x33e948(0x355)][_0x1e6806][_0x33e948(0x94b)]]=[_0x33e948(0x2832),_0x4de7ec[_0x33e948(0x1ae0)],_0x4de7ec[_0x33e948(0x1340)]][_0x33e948(0x1f66)]('/');break;case _0x33e948(0x2224):_0x4de7ec['options']=_0xb90025[_0x9be792['fields'][_0x1e6806][_0x33e948(0x94b)]];_0xb49153[_0x33e948(0xd8e)][_0x33e948(0xf8d)]!==_0x33e948(0x13b1)?_0x4de7ec[_0x33e948(0x2224)][_0x33e948(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0x4de7ec[_0x33e948(0x2224)]+='U(xcally-mixmonitor-context)'):_0x4de7ec[_0x33e948(0x2224)]=_0x4de7ec[_0x33e948(0x2224)]['replace']('U(xcally-mixmonitor-context)','');_0x29abf2[_0x9be792[_0x33e948(0x355)][_0x1e6806][_0x33e948(0x94b)]]=_0x4de7ec[_0x33e948(0x2224)];break;default:_0x29abf2[_0x9be792['fields'][_0x1e6806][_0x33e948(0x94b)]]=_0xb90025[_0x9be792['fields'][_0x1e6806][_0x33e948(0x94b)]];}}_0x3279b9[_0x33e948(0x28df)]=_0x29abf2['join'](',');}}_0x3279b9['priority']=_0x25a35c['length']?_0x39641b()['last'](_0x25a35c)[_0x33e948(0x521)]+0x1:_0x2e7992,_0x2e7992=(_0x33d048[_0x33e948(0xfd0)]?_0x39641b()['last'](_0x33d048)[_0x33e948(0x521)]:_0x3279b9['priority'])+0x1,_0x1fbbd3=_0x39641b()[_0x33e948(0x298a)](_0x1fbbd3,_0x25a35c,[_0x3279b9],_0x33d048);}_0x1fbbd3[_0x33e948(0x2785)]({'type':'outbound','app':_0x33e948(0x26e1),'exten':_0xb49153['outboundroute']['exten'],'context':_0xb49153[_0x33e948(0xd8e)][_0x33e948(0x2056)],'priority':_0x2e7992,'VoiceExtensionId':_0xb49153[_0x33e948(0xd8e)]['id']}),_0x52c687[_0x33e948(0x1059)][_0x33e948(0x2598)]({'id':_0xb49153[_0x33e948(0xd8e)]['id']},_0x39641b()['sortBy'](_0x1fbbd3,_0x33e948(0x521)))[_0x33e948(0x1d77)][_0x33e948(0x1cb0)](function(_0x352364){const _0x199307=_0x33e948;_0xb49153[_0x199307(0x15ff)][_0x199307(0x2214)]=_0x352364['rows'];})[_0x33e948(0x1c4)](function(_0x3d7633){console['error'](_0x3d7633);});}function _0x505bd9(_0x5ea3c5){return _0x5ea3c5===null?undefined:new Date(_0x5ea3c5);}function _0x5aa1ea(_0x22c308){_0x442ab4['hide'](_0x22c308);}}const _0x34ef01=_0x5b035a;;const _0x27c7d8=_0x5074a3['p']+_0x5537c6(0x801);;const _0x5c01e0=_0x5074a3['p']+_0x5537c6(0x136f);;const _0x3e3371=_0x5074a3['p']+_0x5537c6(0x2405);;_0x302c67[_0x5537c6(0x15b6)]=[_0x5537c6(0x142b),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x1986),_0x5537c6(0x1463),'Auth'];const _0x10bc5e={'custom':_0x27c7d8,'interval':_0x5c01e0,'outbounddial':_0x3e3371};function _0x302c67(_0x49e9d8,_0x59404e,_0xe70519,_0x11dd2a,_0x2993c1,_0xf74583,_0x26d5a4){const _0x71ed0f=_0x5537c6,_0x3c75e8=this;_0x3c75e8[_0x71ed0f(0xe76)]=_0x26d5a4[_0x71ed0f(0x21e8)](),_0x3c75e8['outboundroute']={},_0x3c75e8[_0x71ed0f(0x15ff)]={'count':0x0,'rows':[]},_0x3c75e8['selectedOutboundRouteApps']=[],_0x3c75e8['crudPermissions'],_0x3c75e8['query']={'sort':_0x71ed0f(0x521)},_0x3c75e8[_0x71ed0f(0x196f)]=_0x39641b()['reject'](_0x39641b()['sortBy']([{'app':'Interval','appType':_0x71ed0f(0x1ac8),'type':_0x71ed0f(0x1b52),'types':[_0x71ed0f(0x2017),_0x71ed0f(0x197c),'list'],'fields':[],'isApp':![]},{'app':_0x71ed0f(0x18f8),'appType':_0x71ed0f(0x25f4),'context':_0x71ed0f(0x156f),'type':_0x71ed0f(0x1b52),'icon':_0x71ed0f(0x33e),'interval':_0x71ed0f(0x965),'options':'xX','isApp':!![],'extraApi':[{'name':_0x71ed0f(0x1363),'field':{'name':_0x71ed0f(0x1ae0),'key':_0x71ed0f(0x16b6)},'route':'trunk','filters':{'fields':_0x71ed0f(0x43c),'sort':_0x71ed0f(0x16b6),'nolimit':!![]},'permissions':{'section':0x3f3}},{'name':_0x71ed0f(0xfbf),'field':{'name':_0x71ed0f(0x22b1),'key':'name'},'route':'tag','filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x71ed0f(0xf67),'name':_0x71ed0f(0x1ae0),'type':'apiselect','values':_0x71ed0f(0x1363),'value':_0x71ed0f(0xcb0),'option':_0x71ed0f(0xcb0),'required':!![],'param':0x0},{'title':_0x71ed0f(0x10f7),'name':_0x71ed0f(0x2816),'type':_0x71ed0f(0x19d3),'help':!![]},{'title':_0x71ed0f(0xeed),'name':'prefix','type':_0x71ed0f(0x19d3)},{'title':'Tags','name':_0x71ed0f(0x22b1),'type':'apiselect','values':_0x71ed0f(0xfbf),'value':'tag.name','option':_0x71ed0f(0x52a),'defaultValues':[{'value':_0x71ed0f(0x2ea),'option':_0x71ed0f(0x2001)}]},{'title':_0x71ed0f(0xbcc),'name':_0x71ed0f(0x1719),'type':_0x71ed0f(0x83d),'min':0x0,'param':0x1},{'title':_0x71ed0f(0x17e0),'name':_0x71ed0f(0x2224),'type':_0x71ed0f(0x19d3),'param':0x2},{'title':_0x71ed0f(0x237c),'name':_0x71ed0f(0x135b),'type':_0x71ed0f(0x19d3),'param':0x3}]},{'app':null,'type':_0x71ed0f(0x1b52),'appType':_0x71ed0f(0x197c),'icon':'icon-apps','interval':_0x71ed0f(0x965),'isApp':!![],'fields':[{'title':_0x71ed0f(0x2563),'name':_0x71ed0f(0x22e1),'type':_0x71ed0f(0x19d3),'required':!![],'param':0x0},{'title':_0x71ed0f(0x19b8),'name':_0x71ed0f(0x28df),'type':_0x71ed0f(0x19d3),'param':0x1}]}],[_0x71ed0f(0x22e1)]),{'isApp':![]}),_0x3c75e8[_0x71ed0f(0x240)]={'group':{'name':_0x71ed0f(0x2523),'pull':_0x71ed0f(0x11bc)},'animation':0x64,'sort':![]},_0x3c75e8['applications']={'group':{'name':_0x71ed0f(0x1ddb),'put':_0x71ed0f(0x2523)},'animation':0x64,'onAdd':function(_0x372391){const _0x718349=_0x71ed0f;_0x3e3b98(_0x372391,_0x372391[_0x718349(0x22e)]);},'onSort':function(){_0xb33daf();}},_0x3c75e8[_0x71ed0f(0x1a8e)]=_0x37aecd,_0x3c75e8['deleteConfirm']=_0x1da031,_0x3c75e8['getOutboundRouteApps']=_0x1b4c85,_0x3c75e8['editOutboundRouteApp']=_0x3e3b98,_0x3c75e8[_0x71ed0f(0x1eee)]=_0x4e1c86,_0x3c75e8['deleteOutboundRouteApp']=_0x77e355,_0x3c75e8['deleteSelectedOutboundRouteApps']=_0x20f012,_0x3c75e8[_0x71ed0f(0x463)]=_0xb33daf,_0x3c75e8[_0x71ed0f(0x22fc)]=_0x56407a,_0x3c75e8[_0x71ed0f(0x17a6)]=_0x14417b;function _0x37aecd(_0x15702b,_0x267c4a){const _0x27c6ba=_0x71ed0f;_0x3c75e8[_0x27c6ba(0xd8e)]=_0x15702b,_0x3c75e8['crudPermissions']=typeof _0x267c4a!=='undefined'?_0x267c4a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3c75e8[_0x27c6ba(0x1f2f)][_0x27c6ba(0x379)]=!_0x3c75e8[_0x27c6ba(0x1b1a)][_0x27c6ba(0xb3d)]?!![]:![],_0x2993c1['on'](_0x27c6ba(0x179c),_0x3c75e8[_0x27c6ba(0x17a6)]),_0x3c75e8[_0x27c6ba(0xae2)][_0x27c6ba(0x1cc7)]=_0x15702b['id'],_0x3c75e8[_0x27c6ba(0xae2)]['isApp']=!![],_0x3c75e8[_0x27c6ba(0xae2)][_0x27c6ba(0x2282)]=!![],_0x3c75e8[_0x27c6ba(0x22a3)](),_0x3c75e8[_0x27c6ba(0x22fc)]();}function _0x14417b(_0x541d15){const _0xa37b42=_0x71ed0f;_0x541d15['VoiceExtensionId']===_0x3c75e8[_0xa37b42(0xd8e)]['id']&&_0xb33daf(!![]);}function _0x1da031(_0x24a4f9,_0x5eb355,_0x35e102){const _0x28ff4c=_0x71ed0f,_0x3bf3a5=_0x59404e[_0x28ff4c(0x1551)]()[_0x28ff4c(0x1386)](_0x28ff4c(0xf35))[_0x28ff4c(0x49e)](_0x28ff4c(0x204d)+_0x24a4f9[_0x28ff4c(0x22e1)]+_0x28ff4c(0x1200)+'\x20will\x20be\x20deleted.')[_0x28ff4c(0x15ad)](_0x28ff4c(0x2998))[_0x28ff4c(0x728)](_0x35e102)['ok']('OK')['cancel'](_0x28ff4c(0x24ba));_0x59404e['show'](_0x3bf3a5)[_0x28ff4c(0x1cb0)](function(){const _0x442cfa=_0x28ff4c;_0x3c75e8[_0x442cfa(0x15ff)][_0x442cfa(0x2214)]['splice'](_0x5eb355,0x1),_0xb33daf();},function(){const _0x1d07c5=_0x28ff4c;console[_0x1d07c5(0x1b4f)]('CANCEL');});}function _0x3e3b98(_0xfbc28e,_0x34835e){const _0x1559b4=_0x71ed0f;if(_0x3c75e8[_0x1559b4(0x15ff)][_0x1559b4(0x2214)][_0x1559b4(0xfd0)]){const _0x1e43ff=_0x3c75e8[_0x1559b4(0x15ff)]['rows'][_0x34835e]?_0x3c75e8[_0x1559b4(0x15ff)][_0x1559b4(0x2214)][_0x34835e]:_0x3c75e8[_0x1559b4(0x15ff)][_0x1559b4(0x2214)][0x0],_0x390f79=(_0x1e43ff[_0x1559b4(0x299b)]||_0x1e43ff[_0x1559b4(0x22e1)])[_0x1559b4(0x1680)]();_0x59404e[_0x1559b4(0xe27)]({'controller':_0x1559b4(0x610)+_0x390f79+'DialogController','controllerAs':'vm','templateUrl':_0x10bc5e[_0x390f79],'parent':angular[_0x1559b4(0x1853)](_0xe70519[_0x1559b4(0x1ed9)]),'targetEvent':_0xfbc28e,'clickOutsideToClose':!![],'locals':{'outboundrouteApp':_0x1e43ff,'outboundroute':_0x3c75e8[_0x1559b4(0xd8e)],'crudPermissions':_0x3c75e8['crudPermissions']}})['then'](function(_0x2f9893){const _0xd2ae9c=_0x1559b4;_0x2f9893&&(_0x2f9893['id']?_0x3c75e8[_0xd2ae9c(0x15ff)]['rows'][_0x34835e]=_0x2f9893:_0x3c75e8[_0xd2ae9c(0x15ff)]['rows'][_0xd2ae9c(0x159c)](_0x34835e,0x0,_0x2f9893),_0xb33daf());})[_0x1559b4(0x1c4)](function(_0x4b0d7f){const _0x17135e=_0x1559b4;_0x4b0d7f&&_0x11dd2a[_0x17135e(0x218e)]({'title':_0x4b0d7f['status']?_0x17135e(0xeb9)+_0x4b0d7f[_0x17135e(0x291)]+'\x20-\x20'+_0x4b0d7f['statusText']:_0x17135e(0xd95),'msg':_0x4b0d7f[_0x17135e(0x25c)]?JSON[_0x17135e(0x2701)](_0x4b0d7f[_0x17135e(0x25c)]):_0x4b0d7f[_0x17135e(0x147f)]()});});}}function _0x4e1c86(_0x2a1565,_0x5ea801){const _0x443230=_0x71ed0f;if(_0x3c75e8[_0x443230(0x15ff)][_0x443230(0x2214)][_0x443230(0xfd0)]){const _0x3c2d2c=_0x3c75e8[_0x443230(0x15ff)]['rows'][_0x5ea801]?_0x3c75e8[_0x443230(0x15ff)]['rows'][_0x5ea801]:_0x3c75e8[_0x443230(0x15ff)][_0x443230(0x2214)][0x0];_0x59404e['show']({'controller':'EditoutboundAppintervalDialogController','controllerAs':'vm','templateUrl':_0x5c01e0,'parent':angular[_0x443230(0x1853)](_0xe70519[_0x443230(0x1ed9)]),'targetEvent':_0x2a1565,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x3c2d2c[_0x443230(0x1ac8)],'IntervalId':_0x3c2d2c[_0x443230(0x1a60)],'application':!![]},'intervals':[],'crudPermissions':_0x3c75e8[_0x443230(0x1b1a)]}})[_0x443230(0x1cb0)](function(_0xa64a72){const _0x384483=_0x443230;_0xa64a72&&(_0x3c2d2c[_0x384483(0x1ac8)]=_0xa64a72[_0x384483(0x1ac8)]||_0x384483(0x965),_0x3c2d2c[_0x384483(0x1a60)]=_0xa64a72[_0x384483(0x1a60)]||null,_0xb33daf());});}}function _0xb33daf(_0x2e6d5f){const _0x4c5af3=_0x71ed0f;let _0x11025d=0x2,_0x4ebaca=[];_0x4ebaca[_0x4c5af3(0x2785)]({'type':_0x4c5af3(0x895),'app':_0x4c5af3(0x11c3),'appdata':_0x4c5af3(0x13db),'context':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x2056)],'exten':_0x3c75e8['outboundroute'][_0x4c5af3(0x26a2)],'priority':_0x11025d++,'VoiceExtensionId':_0x3c75e8[_0x4c5af3(0xd8e)]['id']}),_0x4ebaca[_0x4c5af3(0x2785)]({'type':_0x4c5af3(0x895),'app':'Set','appdata':_0x4c5af3(0x215d)+(_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x325)]?_0x4c5af3(0x19e4)+_0x3c75e8['outboundroute'][_0x4c5af3(0x325)]+'}':_0x4c5af3(0xcdd)),'context':_0x3c75e8['outboundroute']['context'],'exten':_0x3c75e8[_0x4c5af3(0xd8e)]['exten'],'priority':_0x11025d++,'VoiceExtensionId':_0x3c75e8[_0x4c5af3(0xd8e)]['id']}),_0x4ebaca['push']({'type':_0x4c5af3(0x895),'app':_0x4c5af3(0x11c3),'appdata':_0x4c5af3(0x22da)+_0x3c75e8[_0x4c5af3(0xd8e)]['id'],'context':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x2056)],'exten':_0x3c75e8['outboundroute'][_0x4c5af3(0x26a2)],'priority':_0x11025d++,'VoiceExtensionId':_0x3c75e8[_0x4c5af3(0xd8e)]['id']});const _0x383f32=_0x11025d++;_0x4ebaca[_0x4c5af3(0x2785)]({'type':_0x4c5af3(0x895),'app':'ExecIf','appdata':_0x4c5af3(0x211)+(_0x383f32+0x2)+'):Goto('+(_0x383f32+0x1)+')','context':_0x3c75e8['outboundroute'][_0x4c5af3(0x2056)],'exten':_0x3c75e8['outboundroute']['exten'],'priority':_0x383f32,'VoiceExtensionId':_0x3c75e8[_0x4c5af3(0xd8e)]['id']}),_0x4ebaca['push']({'type':_0x4c5af3(0x895),'app':_0x4c5af3(0x11c3),'appdata':_0x3c75e8['outboundroute']['cutdigits']?_0x4c5af3(0x166)+_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x325)]+'}':'CDR(prefix)=noprefix','context':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x2056)],'exten':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x26a2)],'priority':_0x11025d++,'VoiceExtensionId':_0x3c75e8[_0x4c5af3(0xd8e)]['id']}),_0x4ebaca[_0x4c5af3(0x2785)]({'type':_0x4c5af3(0x895),'app':_0x4c5af3(0x11c3),'appdata':'XCALLY-MOTION-ANSWER=0','context':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x2056)],'exten':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x26a2)],'priority':_0x11025d++,'VoiceExtensionId':_0x3c75e8[_0x4c5af3(0xd8e)]['id']}),_0x4ebaca[_0x4c5af3(0x2785)]({'type':_0x4c5af3(0x895),'app':'Set','appdata':_0x4c5af3(0x1781),'context':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x2056)],'exten':_0x3c75e8[_0x4c5af3(0xd8e)]['exten'],'priority':_0x11025d++,'VoiceExtensionId':_0x3c75e8[_0x4c5af3(0xd8e)]['id']}),_0x4ebaca[_0x4c5af3(0x2785)]({'type':_0x4c5af3(0x895),'app':_0x4c5af3(0x11c3),'appdata':_0x4c5af3(0x4ba),'context':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x2056)],'exten':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x26a2)],'priority':_0x11025d++,'VoiceExtensionId':_0x3c75e8['outboundroute']['id']}),_0x4ebaca[_0x4c5af3(0x2785)]({'type':_0x4c5af3(0x895),'app':_0x4c5af3(0x11c3),'appdata':_0x4c5af3(0x2712)+_0x3c75e8[_0x4c5af3(0xd8e)]['id'],'context':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x2056)],'exten':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x26a2)],'priority':_0x11025d++,'VoiceExtensionId':_0x3c75e8['outboundroute']['id']});typeof _0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0xf8d)]===_0x4c5af3(0x16b5)&&_0x3c75e8['outboundroute']['recordingFormat']!==_0x4c5af3(0x13b1)&&(_0x4ebaca[_0x4c5af3(0x2785)]({'type':'outbound','app':_0x4c5af3(0x11c3),'appdata':_0x4c5af3(0x1069),'context':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x2056)],'exten':_0x3c75e8[_0x4c5af3(0xd8e)]['exten'],'priority':_0x11025d++,'VoiceExtensionId':_0x3c75e8['outboundroute']['id']}),_0x4ebaca['push']({'type':_0x4c5af3(0x895),'app':'Set','appdata':'_XCALLY_MIXMONITOR_FORMAT='+_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0xf8d)]||0x0,'context':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x2056)],'exten':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x26a2)],'priority':_0x11025d++,'VoiceExtensionId':_0x3c75e8[_0x4c5af3(0xd8e)]['id']}));for(let _0xb476bc=0x0,_0x38cde7=0x0;_0xb476bc<_0x3c75e8[_0x4c5af3(0x15ff)][_0x4c5af3(0x2214)][_0x4c5af3(0xfd0)];_0xb476bc++,_0x38cde7=0x0){const _0x37fdaa=_0x3c75e8[_0x4c5af3(0x15ff)][_0x4c5af3(0x2214)][_0xb476bc],_0x759524=[],_0x481479=[];_0x37fdaa[_0x4c5af3(0xb4a)]=_0x37fdaa['interval']!=='*,*,*,*'?[_0x37fdaa['interval']]:_0x37fdaa[_0x4c5af3(0x1a60)]?_0x39641b()[_0x4c5af3(0x1de2)](_0x39641b()[_0x4c5af3(0x1c99)](_0x3c75e8[_0x4c5af3(0xb4a)][_0x4c5af3(0x2214)],{'IntervalId':_0x37fdaa['IntervalId']}),_0x4c5af3(0x1ac8)):[],_0x37fdaa[_0x4c5af3(0x2056)]=_0x3c75e8[_0x4c5af3(0xd8e)]['context'],_0x37fdaa['exten']=_0x3c75e8['outboundroute']['exten'];_0x37fdaa[_0x4c5af3(0x66a)]&&(_0x37fdaa[_0x4c5af3(0x66a)]=_0x37fdaa[_0x4c5af3(0x66a)][_0x4c5af3(0x1680)]());typeof _0x37fdaa[_0x4c5af3(0x22b1)]!==_0x4c5af3(0x16b5)&&(_0x37fdaa[_0x4c5af3(0x22b1)]&&_0x37fdaa[_0x4c5af3(0x22b1)]!=='--'&&_0x759524['push']({'type':_0x37fdaa[_0x4c5af3(0x66a)][_0x4c5af3(0x1680)](),'app':_0x4c5af3(0x11c3),'appdata':_0x4c5af3(0x747)+_0x37fdaa[_0x4c5af3(0x22b1)],'context':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x2056)],'exten':_0x3c75e8['outboundroute'][_0x4c5af3(0x26a2)],'priority':_0x37fdaa[_0x4c5af3(0xb4a)][_0x4c5af3(0xfd0)]+_0x11025d+_0x38cde7++,'VoiceExtensionId':_0x3c75e8[_0x4c5af3(0xd8e)]['id']}));_0x37fdaa[_0x4c5af3(0x2816)]?_0x759524[_0x4c5af3(0x2785)]({'type':_0x37fdaa[_0x4c5af3(0x66a)][_0x4c5af3(0x1680)](),'app':_0x4c5af3(0x1991),'appdata':_0x4c5af3(0xd48)+_0x37fdaa[_0x4c5af3(0x2816)]+')','context':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x2056)],'exten':_0x3c75e8['outboundroute'][_0x4c5af3(0x26a2)],'priority':_0x37fdaa[_0x4c5af3(0xb4a)]['length']+_0x11025d+_0x38cde7++,'VoiceExtensionId':_0x3c75e8[_0x4c5af3(0xd8e)]['id']}):_0x759524[_0x4c5af3(0x2785)]({'type':_0x37fdaa['type'][_0x4c5af3(0x1680)](),'app':'ExecIf','appdata':_0x4c5af3(0x5c2),'context':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x2056)],'exten':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x26a2)],'priority':_0x37fdaa[_0x4c5af3(0xb4a)][_0x4c5af3(0xfd0)]+_0x11025d+_0x38cde7++,'VoiceExtensionId':_0x3c75e8[_0x4c5af3(0xd8e)]['id']});for(let _0x2cd20e=0x0;_0x2cd20e<_0x37fdaa[_0x4c5af3(0xb4a)][_0x4c5af3(0xfd0)];_0x2cd20e++){const _0x49fcc6=_0x11025d+_0x37fdaa[_0x4c5af3(0xb4a)][_0x4c5af3(0xfd0)],_0x9f9fa1=_0x2cd20e===_0x37fdaa[_0x4c5af3(0xb4a)][_0x4c5af3(0xfd0)]-0x1?_0x11025d+_0x759524[_0x4c5af3(0xfd0)]+_0x481479[_0x4c5af3(0xfd0)]+0x2:_0x11025d+_0x2cd20e+0x1;_0x759524[_0x4c5af3(0x159c)](_0x2cd20e,0x0,{'type':_0x4c5af3(0x895),'app':_0x4c5af3(0x1f54),'appdata':_0x37fdaa['intervals'][_0x2cd20e]+'?'+_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x2056)]+_0x4c5af3(0xa5c)+_0x49fcc6+':'+_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x2056)]+',${EXTEN},'+_0x9f9fa1,'exten':_0x3c75e8[_0x4c5af3(0xd8e)]['exten'],'context':_0x3c75e8[_0x4c5af3(0xd8e)]['context'],'priority':_0x11025d+_0x2cd20e,'VoiceExtensionId':_0x3c75e8[_0x4c5af3(0xd8e)]['id']});}if(_0x2e6d5f&&_0x37fdaa[_0x4c5af3(0x299b)]==='outboundDial'){const _0xaab4fe=_0x39641b()[_0x4c5af3(0x13b4)](_0x3c75e8['apps'],{'appType':_0x4c5af3(0x25f4)});if(_0xaab4fe&&_0xaab4fe[_0x4c5af3(0x355)]){const _0xc988fc={},_0x66dcbf=_0x37fdaa[_0x4c5af3(0x28df)][_0x4c5af3(0xbe1)](','),_0x3f18dc=[];for(let _0x57c28b=0x0,_0x1b4307=_0xaab4fe[_0x4c5af3(0x355)][_0x4c5af3(0xfd0)];_0x57c28b<_0x1b4307;_0x57c28b++){if(typeof _0xaab4fe[_0x4c5af3(0x355)][_0x57c28b][_0x4c5af3(0x94b)]!=='undefined')switch(_0xaab4fe[_0x4c5af3(0x355)][_0x57c28b][_0x4c5af3(0x16b6)]){case _0x4c5af3(0x1ae0):_0xc988fc[_0x4c5af3(0x1ae0)]=_0x66dcbf[_0xaab4fe['fields'][_0x57c28b]['param']][_0x4c5af3(0xbe1)]('/')[0x1],_0xc988fc[_0x4c5af3(0x1340)]=_0x66dcbf[_0xaab4fe[_0x4c5af3(0x355)][_0x57c28b]['param']]['split']('/')[0x2],_0xc988fc['prefix']=_0xc988fc[_0x4c5af3(0x1340)]?_0xc988fc[_0x4c5af3(0x1340)][_0x4c5af3(0xbe1)]('$')[0x0]:undefined,_0xc988fc['phone']=_0x3c75e8['outboundroute'][_0x4c5af3(0x325)]?(_0xc988fc[_0x4c5af3(0x586)]||'')+'${EXTEN:'+_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x325)]+'}':(_0xc988fc[_0x4c5af3(0x586)]||'')+_0x4c5af3(0xcdd),_0x3f18dc[_0xaab4fe['fields'][_0x57c28b]['param']]=[_0x4c5af3(0x2832),_0xc988fc['trunk'],_0xc988fc[_0x4c5af3(0x1340)]][_0x4c5af3(0x1f66)]('/');break;case _0x4c5af3(0x2224):_0xc988fc[_0x4c5af3(0x2224)]=_0x66dcbf[_0xaab4fe[_0x4c5af3(0x355)][_0x57c28b][_0x4c5af3(0x94b)]];_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0xf8d)]!==_0x4c5af3(0x13b1)?_0xc988fc[_0x4c5af3(0x2224)][_0x4c5af3(0xd8a)](_0x4c5af3(0x106a))<0x0&&(_0xc988fc[_0x4c5af3(0x2224)]+=_0x4c5af3(0x106a)):_0xc988fc[_0x4c5af3(0x2224)]=_0xc988fc[_0x4c5af3(0x2224)][_0x4c5af3(0x288f)](_0x4c5af3(0x106a),'');_0x3f18dc[_0xaab4fe[_0x4c5af3(0x355)][_0x57c28b][_0x4c5af3(0x94b)]]=_0xc988fc[_0x4c5af3(0x2224)];break;default:_0x3f18dc[_0xaab4fe[_0x4c5af3(0x355)][_0x57c28b]['param']]=_0x66dcbf[_0xaab4fe[_0x4c5af3(0x355)][_0x57c28b][_0x4c5af3(0x94b)]];}}_0x37fdaa['appdata']=_0x3f18dc['join'](',');}}_0x37fdaa[_0x4c5af3(0x521)]=_0x759524[_0x4c5af3(0xfd0)]?_0x39641b()['last'](_0x759524)[_0x4c5af3(0x521)]+0x1:_0x11025d,_0x11025d=(_0x481479[_0x4c5af3(0xfd0)]?_0x39641b()[_0x4c5af3(0x1f9e)](_0x481479)[_0x4c5af3(0x521)]:_0x37fdaa[_0x4c5af3(0x521)])+0x1,_0x4ebaca=_0x39641b()[_0x4c5af3(0x298a)](_0x4ebaca,_0x759524,[_0x37fdaa],_0x481479);}_0x4ebaca[_0x4c5af3(0x2785)]({'type':_0x4c5af3(0x895),'app':_0x4c5af3(0x26e1),'exten':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x26a2)],'context':_0x3c75e8[_0x4c5af3(0xd8e)][_0x4c5af3(0x2056)],'priority':_0x11025d,'VoiceExtensionId':_0x3c75e8[_0x4c5af3(0xd8e)]['id']}),_0x49e9d8[_0x4c5af3(0x1059)][_0x4c5af3(0x2598)]({'id':_0x3c75e8[_0x4c5af3(0xd8e)]['id']},_0x39641b()['sortBy'](_0x4ebaca,'priority'))[_0x4c5af3(0x1d77)]['then'](function(_0x46541d){const _0x3b3ef2=_0x4c5af3;_0x3c75e8[_0x3b3ef2(0x15ff)][_0x3b3ef2(0x2214)]=_0x46541d[_0x3b3ef2(0x2214)];})[_0x4c5af3(0x1c4)](function(_0x2ddf6f){console['error'](_0x2ddf6f);});}function _0x3ebe90(_0x1aff02){_0x3c75e8['outboundrouteApps']=_0x1aff02||{'count':0x0,'rows':[]};}function _0x56407a(){const _0x2a3b27=_0x71ed0f;return _0x49e9d8[_0x2a3b27(0x1ac8)][_0x2a3b27(0xbf7)]({'fields':'id,interval,IntervalId'})[_0x2a3b27(0x1d77)]['then'](function(_0x4742d7){const _0x21280b=_0x2a3b27;_0x3c75e8[_0x21280b(0xb4a)]=_0x4742d7;})[_0x2a3b27(0x1c4)](function(_0x508410){console['error'](_0x508410);});}function _0x1b4c85(){const _0x43d165=_0x71ed0f;_0x3c75e8[_0x43d165(0x2061)]=_0x49e9d8[_0x43d165(0x1059)]['get'](_0x3c75e8[_0x43d165(0xae2)],_0x3ebe90)[_0x43d165(0x1d77)];}function _0x77e355(_0x582ac1){const _0x1c3eec=_0x71ed0f;_0x39641b()['remove'](_0x3c75e8[_0x1c3eec(0x15ff)][_0x1c3eec(0x2214)],{'id':_0x582ac1['id']}),_0xb33daf(),_0x11dd2a[_0x1c3eec(0x829)]({'title':'App\x20deleted!','msg':_0x582ac1[_0x1c3eec(0x22e1)]?_0x582ac1[_0x1c3eec(0x22e1)]+_0x1c3eec(0x3f5):''});}function _0x20f012(_0x2b5a0e){const _0x4e44a7=_0x71ed0f,_0x44922c=_0x59404e['confirm']()['title'](_0x4e44a7(0x2436))['htmlContent'](_0x4e44a7(0x204d)+_0x3c75e8[_0x4e44a7(0x260d)][_0x4e44a7(0xfd0)]+'\x20selected'+_0x4e44a7(0x1b6))[_0x4e44a7(0x15ad)](_0x4e44a7(0x531))[_0x4e44a7(0x728)](_0x2b5a0e)['ok']('OK')[_0x4e44a7(0x696)]('CANCEL');_0x59404e['show'](_0x44922c)[_0x4e44a7(0x1cb0)](function(){const _0x2c7c6e=_0x4e44a7;_0x3c75e8[_0x2c7c6e(0x260d)][_0x2c7c6e(0xf90)](function(_0x2b7ea9){const _0x3aa0ec=_0x2c7c6e;_0x39641b()[_0x3aa0ec(0x152a)](_0x3c75e8['outboundrouteApps'][_0x3aa0ec(0x2214)],{'id':_0x2b7ea9['id']});}),_0x3c75e8[_0x2c7c6e(0x260d)]=[],_0xb33daf();});}_0xf74583[_0x71ed0f(0x1d6)]('$destroy',function(){const _0x1f0fca=_0x71ed0f;_0x2993c1['removeAllListeners'](_0x1f0fca(0x179c));});}const _0x54f418=_0x302c67;;_0x13109e[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0xf8a),_0x5537c6(0xd8e),'api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x13109e(_0x132a48,_0x3facab,_0x16664a,_0x3904f2,_0x29d2ed,_0x537693,_0x49c22d,_0x313bf4){const _0x3c84a5=_0x5537c6,_0x8c792e=this;_0x8c792e[_0x3c84a5(0xe76)]=_0x49c22d[_0x3c84a5(0x21e8)](),_0x8c792e[_0x3c84a5(0x1a7c)]=[],_0x8c792e[_0x3c84a5(0x1386)]=_0x3c84a5(0x132b)+(_0x3904f2[_0x3c84a5(0x299b)]||_0x3904f2['app'])[_0x3c84a5(0x2335)](),_0x8c792e[_0x3c84a5(0x197c)]=angular[_0x3c84a5(0x17fe)](_0x3904f2),_0x8c792e[_0x3c84a5(0x1b1a)]=_0x313bf4,_0x8c792e[_0x3c84a5(0xf4c)]={};if(_0x8c792e['custom']['appdata'])switch(_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x299b)]?_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x299b)][_0x3c84a5(0x1680)]():_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x22e1)][_0x3c84a5(0x1680)]()){case _0x3c84a5(0x197c):break;case _0x3c84a5(0x711):{const _0x2327fe=_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x28df)][_0x3c84a5(0xbe1)](',');_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0xee8)]=_0x2327fe[0x0],_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x12b4)]=_0x2327fe[0x1],_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x173a)]=_0x2327fe[_0x3c84a5(0x14cb)](0x2,_0x2327fe['length'])[_0x3c84a5(0x1f66)](',');}break;case _0x3c84a5(0xece):{const _0x4e0774=_0x8c792e['custom'][_0x3c84a5(0x28df)][_0x3c84a5(0xbe1)](',');_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x2854)]=_0x4e0774[0x0],_0x8c792e[_0x3c84a5(0x197c)]['clientEmail']=_0x4e0774[0x1],_0x8c792e[_0x3c84a5(0x197c)]['privateKey']=_0x4e0774[0x2],_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x12b4)]=_0x4e0774[0x3],_0x8c792e['custom'][_0x3c84a5(0x173a)]=_0x4e0774[_0x3c84a5(0x14cb)](0x4,_0x4e0774[_0x3c84a5(0xfd0)])['join'](',');}break;case _0x3c84a5(0x123a):{const _0x5ec6b0=_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x28df)][_0x3c84a5(0xbe1)](',');_0x8c792e[_0x3c84a5(0x197c)]['accesskeyid']=_0x5ec6b0[0x0],_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x21d9)]=_0x5ec6b0[0x1],_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0xd50)]=_0x5ec6b0[0x2],_0x8c792e['custom']['botname']=_0x5ec6b0[0x3],_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x173a)]=_0x5ec6b0['slice'](0x4,_0x5ec6b0[_0x3c84a5(0xfd0)])[_0x3c84a5(0x1f66)](',');}break;case'autoreply':{const _0xabe9b9=_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x28df)][_0x3c84a5(0xbe1)](',');_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x18a5)]=isNaN(_0xabe9b9[0x0])?_0xabe9b9[0x0]:parseInt(_0xabe9b9[0x0],0xa),_0x8c792e[_0x3c84a5(0x197c)]['text']=_0xabe9b9[_0x3c84a5(0x14cb)](0x1,_0xabe9b9['length'])[_0x3c84a5(0x1f66)](',');}break;case _0x3c84a5(0x155e):_0x8c792e[_0x3c84a5(0x197c)]['text']=_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x28df)];break;case _0x3c84a5(0x19d1):_0x8c792e['custom']['name']=_0x8c792e['custom'][_0x3c84a5(0x28df)][_0x3c84a5(0xbe1)]('=')[0x0],_0x8c792e[_0x3c84a5(0x197c)]['value']=_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x28df)]['split']('=')[0x1];break;case _0x3c84a5(0x4b4):_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x12a7)]=_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x28df)];break;default:{const _0xe11dc9=_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x28df)][_0x3c84a5(0xbe1)](',');_0x8c792e['custom'][_0x3c84a5(0x22e1)]=_0x39641b()['isEmpty'](_0xe11dc9[0x0])?_0xe11dc9[0x0]:isNaN(_0xe11dc9[0x0])?_0xe11dc9[0x0]:parseInt(_0xe11dc9[0x0],0xa),_0x8c792e['custom'][_0x3c84a5(0x28df)]=_0x39641b()['isEmpty'](_0xe11dc9[0x1])?_0xe11dc9[0x1]:isNaN(_0xe11dc9[0x1])?_0xe11dc9[0x1]:parseInt(_0xe11dc9[0x1],0xa);}break;}else{}_0x8c792e[_0x3c84a5(0x197c)]['type']&&_0x8c792e['custom']['type'][_0x3c84a5(0x1680)]()===_0x3c84a5(0x895)&&_0x8c792e['custom'][_0x3c84a5(0x299b)][_0x3c84a5(0x1680)]()==='outbounddial'&&(_0x8c792e['custom'][_0x3c84a5(0x586)]=_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x1340)]?_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x1340)][_0x3c84a5(0xbe1)]('$')[0x0]:undefined,_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x1e7c)]=_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x2816)]?_0x3c84a5(0x25f9)+_0x8c792e[_0x3c84a5(0x197c)][_0x3c84a5(0x2816)]:undefined);_0x8c792e['saveOutboundRouteApp']=_0x48b804,_0x8c792e[_0x3c84a5(0xda0)]=_0x2cc326;function _0x48b804(){const _0x578e9d=_0x3c84a5;_0x8c792e[_0x578e9d(0x1a7c)]=[];const _0x4bf901=[];_0x8c792e[_0x578e9d(0x197c)][_0x578e9d(0x66a)]&&_0x8c792e[_0x578e9d(0x197c)][_0x578e9d(0x66a)][_0x578e9d(0x1680)]()===_0x578e9d(0x895)&&_0x8c792e['custom'][_0x578e9d(0x299b)]===_0x578e9d(0x25f4)&&(_0x8c792e[_0x578e9d(0x197c)][_0x578e9d(0x1340)]=_0x29d2ed['cutdigits']?(_0x8c792e[_0x578e9d(0x197c)][_0x578e9d(0x586)]||'')+_0x578e9d(0x19e4)+_0x29d2ed[_0x578e9d(0x325)]+'}':(_0x8c792e[_0x578e9d(0x197c)][_0x578e9d(0x586)]||'')+_0x578e9d(0xcdd),_0x29d2ed[_0x578e9d(0xf8d)]!==_0x578e9d(0x13b1)?_0x8c792e[_0x578e9d(0x197c)][_0x578e9d(0x2224)][_0x578e9d(0xd8a)](_0x578e9d(0x106a))<0x0&&(_0x8c792e['custom'][_0x578e9d(0x2224)]+=_0x578e9d(0x106a)):_0x8c792e[_0x578e9d(0x197c)]['options']=_0x8c792e[_0x578e9d(0x197c)][_0x578e9d(0x2224)][_0x578e9d(0x288f)](_0x578e9d(0x106a),''));if(_0x8c792e['custom'][_0x578e9d(0x299b)]&&_0x8c792e['custom'][_0x578e9d(0x299b)]===_0x578e9d(0x197c)){}else switch((_0x8c792e[_0x578e9d(0x197c)]['app']||_0x8c792e['custom'][_0x578e9d(0x299b)])[_0x578e9d(0x1680)]()){case _0x578e9d(0x19d1):_0x8c792e['custom'][_0x578e9d(0x28df)]=_0x8c792e[_0x578e9d(0x197c)][_0x578e9d(0x16b6)]+'='+_0x8c792e[_0x578e9d(0x197c)][_0x578e9d(0x327)];break;case'custom':break;default:_0x4bf901[0x0]=_0x8c792e['custom'][_0x578e9d(0x22e1)],_0x4bf901[0x1]=_0x8c792e[_0x578e9d(0x197c)][_0x578e9d(0x28df)],_0x8c792e[_0x578e9d(0x197c)][_0x578e9d(0x28df)]=_0x4bf901[_0x578e9d(0x1f66)](',');}_0x2cc326(_0x8c792e['custom']);}function _0x2cc326(_0x462b10){const _0x55df2c=_0x3c84a5;_0x132a48[_0x55df2c(0x1426)](_0x462b10);}}const _0x2390a1=_0x13109e;;_0x4dc185[_0x5537c6(0x15b6)]=['$state',_0x5537c6(0xcb9),'$mdToast','IndexFactory',_0x5537c6(0x1ac8),_0x5537c6(0xb4a),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x4dc185(_0x52e177,_0x13e93d,_0xc62d68,_0x1b266c,_0x561cf8,_0x54b02b,_0x39e170,_0x2e809f,_0x47ddc4,_0x436e3d){const _0x509746=_0x5537c6,_0x7ef01c=this;_0x7ef01c['currentUser']=_0x47ddc4[_0x509746(0x21e8)](),_0x7ef01c[_0x509746(0x1a7c)]=[],_0x7ef01c[_0x509746(0x1386)]=_0x509746(0x1571),_0x7ef01c[_0x509746(0x1ac8)]=angular[_0x509746(0x17fe)](_0x561cf8),_0x7ef01c[_0x509746(0xb4a)]=_0x54b02b,_0x7ef01c[_0x509746(0x18c1)]=![],_0x7ef01c['types']=[_0x509746(0x2017),_0x509746(0x197c),_0x509746(0x240)],_0x7ef01c[_0x509746(0x1b1a)]=_0x436e3d,_0x7ef01c[_0x509746(0x1275)]=_0x1b266c[_0x509746(0x1aae)](),_0x7ef01c[_0x509746(0x2055)]=_0x1b266c['getMonthNumber'](),_0x7ef01c[_0x509746(0x1534)]=_0x1b266c[_0x509746(0x7cc)](),_0x7ef01c[_0x509746(0x202d)]=_0x1b266c['getDaysOfMonth']();if(!_0x7ef01c[_0x509746(0x1ac8)])_0x7ef01c[_0x509746(0x1ac8)]={'interval':_0x509746(0x965)},_0x7ef01c[_0x509746(0x66a)]=_0x509746(0x2017),_0x7ef01c[_0x509746(0x1386)]=_0x509746(0x287b),_0x7ef01c[_0x509746(0x18c1)]=!![];else{if(_0x7ef01c['interval'][_0x509746(0x1ac8)]!==_0x509746(0x965)){_0x7ef01c[_0x509746(0x66a)]='custom';const _0x504e1d=_0x7ef01c[_0x509746(0x1ac8)][_0x509746(0x1ac8)][_0x509746(0xbe1)](','),_0x29bd7d=_0x504e1d[0x0],_0x67dd65=_0x504e1d[0x1],_0x2bde89=_0x504e1d[0x2],_0x47951c=_0x504e1d[0x3];if(_0x29bd7d!=='*'){const _0x1d20b4=_0x29bd7d[_0x509746(0xbe1)]('-')[0x0],_0x487faa=_0x29bd7d[_0x509746(0xbe1)]('-')[0x1];let _0x4d3983;_0x4d3983=new Date(),_0x4d3983[_0x509746(0x201b)](Number(_0x1d20b4[_0x509746(0xbe1)](':')[0x0])),_0x4d3983['setMinutes'](Number(_0x1d20b4['split'](':')[0x1])),_0x7ef01c[_0x509746(0x718)]=_0x4d3983,_0x4d3983=new Date(),_0x4d3983[_0x509746(0x201b)](Number(_0x487faa['split'](':')[0x0])),_0x4d3983[_0x509746(0x1622)](Number(_0x487faa[_0x509746(0xbe1)](':')[0x1])),_0x7ef01c['timeRangeTo']=_0x4d3983;}_0x67dd65!=='*'&&(_0x7ef01c['dayOfWeekFrom']=_0x67dd65[_0x509746(0xbe1)]('-')[0x0],_0x7ef01c[_0x509746(0x28db)]=_0x67dd65[_0x509746(0xbe1)]('-')[0x1]),_0x2bde89!=='*'&&(_0x7ef01c['monthDayFrom']=_0x2bde89[_0x509746(0xbe1)]('-')[0x0],_0x7ef01c[_0x509746(0x194d)]=_0x2bde89[_0x509746(0xbe1)]('-')[0x1]),_0x47951c!=='*'&&(_0x7ef01c[_0x509746(0x1756)]=_0x47951c[_0x509746(0xbe1)]('-')[0x0],_0x7ef01c[_0x509746(0xa68)]=_0x47951c['split']('-')[0x1]);}else _0x7ef01c['type']=_0x509746(0x2017);}_0x52e177[_0x509746(0x1dfe)]['id']&&!_0x7ef01c[_0x509746(0x1ac8)][_0x509746(0x171b)]&&(_0x7ef01c[_0x509746(0x1ac8)][_0x509746(0x1a60)]=_0x52e177[_0x509746(0x1dfe)]['id']);_0x7ef01c['interval'][_0x509746(0x1a60)]&&_0x7ef01c[_0x509746(0x1ac8)][_0x509746(0x171b)]&&(_0x7ef01c[_0x509746(0x66a)]=_0x509746(0x240));_0x7ef01c[_0x509746(0x18b3)]=_0x540fd0,_0x7ef01c[_0x509746(0x1891)]=_0x55cb54,_0x7ef01c[_0x509746(0xda0)]=_0x13e570;_0x7ef01c[_0x509746(0x1ac8)][_0x509746(0x171b)]&&(_0x47ddc4[_0x509746(0x22b6)](_0x509746(0x1c60))?_0x2e809f[_0x509746(0x1ac8)][_0x509746(0xbf7)]({'fields':'id,name,interval,IntervalId','IntervalId':_0x509746(0xd38),'nolimit':!![]})[_0x509746(0x1d77)]['then'](function(_0x18b0c2){const _0x4446b0=_0x509746;_0x7ef01c[_0x4446b0(0xb4a)]=_0x18b0c2[_0x4446b0(0x2214)]||[];})[_0x509746(0x1c4)](function(_0x1dda8b){const _0x491a4c=_0x509746;_0x39e170['error']({'title':_0x1dda8b[_0x491a4c(0x291)]?_0x491a4c(0xeb9)+_0x1dda8b[_0x491a4c(0x291)]+_0x491a4c(0x1657)+_0x1dda8b[_0x491a4c(0xc22)]:_0x491a4c(0xdac),'msg':_0x1dda8b[_0x491a4c(0x25c)]?JSON[_0x491a4c(0x2701)](_0x1dda8b[_0x491a4c(0x25c)]):_0x1dda8b['toString']()});}):_0x2e809f['interval'][_0x509746(0xbf7)]({'fields':_0x509746(0x872),'IntervalId':_0x509746(0xd38),'nolimit':!![]})[_0x509746(0x1d77)][_0x509746(0x1cb0)](function(_0x4b7d){const _0x34333d=_0x509746;_0x7ef01c[_0x34333d(0xb4a)]=_0x4b7d[_0x34333d(0x2214)]||[];})['then'](function(){const _0x1bb9dd=_0x509746;return _0x2e809f[_0x1bb9dd(0x2199)][_0x1bb9dd(0xbf7)]({'userProfileId':_0x7ef01c['currentUser'][_0x1bb9dd(0x13c1)],'sectionId':0x3ec})[_0x1bb9dd(0x1d77)];})[_0x509746(0x1cb0)](function(_0x1c0045){const _0x4a821d=_0x509746,_0x31393b=_0x1c0045&&_0x1c0045[_0x4a821d(0x2214)]?_0x1c0045[_0x4a821d(0x2214)][0x0]:null;if(!_0x31393b)_0x7ef01c['intervals']=[];else{if(!_0x31393b[_0x4a821d(0x12f4)])return _0x2e809f[_0x4a821d(0x1198)][_0x4a821d(0xbf7)]({'sectionId':_0x31393b['id']})['$promise']['then'](function(_0x10a255){const _0x22399e=_0x4a821d,_0x455c6b=_0x10a255&&_0x10a255[_0x22399e(0x2214)]?_0x10a255['rows']:[],_0x3ad153=[];let _0x42f071=null;_0x7ef01c[_0x22399e(0x1ac8)]&&(_0x42f071=_0x39641b()[_0x22399e(0x13b4)](_0x7ef01c[_0x22399e(0xb4a)],{'name':_0x7ef01c[_0x22399e(0x1ac8)][_0x22399e(0x1a60)]})),_0x42f071&&!_0x39641b()[_0x22399e(0x727)](_0x455c6b,[_0x22399e(0x2982),_0x42f071['id']])&&_0x7ef01c[_0x22399e(0xb4a)][_0x22399e(0xf90)](function(_0x938e96){const _0x32b284=_0x22399e;_0x938e96['id']===_0x42f071['id']&&(_0x938e96[_0x32b284(0x15da)]=![],_0x3ad153['push'](_0x938e96));}),_0x7ef01c[_0x22399e(0xb4a)]=_0x3ad153;});}})['catch'](function(_0x33319f){const _0x4de0e0=_0x509746;_0x39e170[_0x4de0e0(0x218e)]({'title':_0x33319f[_0x4de0e0(0x291)]?_0x4de0e0(0xeb9)+_0x33319f[_0x4de0e0(0x291)]+_0x4de0e0(0x1657)+_0x33319f['statusText']:_0x4de0e0(0xdac),'msg':_0x33319f[_0x4de0e0(0x25c)]?JSON[_0x4de0e0(0x2701)](_0x33319f[_0x4de0e0(0x25c)]):_0x33319f[_0x4de0e0(0x147f)]()});}));function _0x1f36b6(){const _0x394bd6=_0x509746;switch(_0x7ef01c['type']){case _0x394bd6(0x2017):case'list':return _0x394bd6(0x965);case _0x394bd6(0x197c):{const _0x5b8400=[];if(_0x7ef01c[_0x394bd6(0x718)]!=='*'&&_0x7ef01c['timeRangeFrom']&&_0x7ef01c[_0x394bd6(0x64a)]){const _0x4e9b16=(_0x7ef01c[_0x394bd6(0x718)][_0x394bd6(0x1169)]()<0xa?'0':'')+_0x7ef01c['timeRangeFrom'][_0x394bd6(0x1169)]()+':'+((_0x7ef01c['timeRangeFrom']['getMinutes']()<0xa?'0':'')+_0x7ef01c[_0x394bd6(0x718)]['getMinutes']()),_0x3dc4a5=(_0x7ef01c[_0x394bd6(0x64a)][_0x394bd6(0x1169)]()<0xa?'0':'')+_0x7ef01c[_0x394bd6(0x64a)]['getHours']()+':'+((_0x7ef01c[_0x394bd6(0x64a)][_0x394bd6(0x851)]()<0xa?'0':'')+_0x7ef01c[_0x394bd6(0x64a)]['getMinutes']());_0x5b8400[_0x394bd6(0x2785)](_0x4e9b16+'-'+_0x3dc4a5);}else _0x5b8400[_0x394bd6(0x2785)]('*');return _0x7ef01c[_0x394bd6(0x28a6)]?_0x7ef01c[_0x394bd6(0x28db)]?_0x5b8400[_0x394bd6(0x2785)](_0x7ef01c['dayOfWeekFrom']+'-'+_0x7ef01c[_0x394bd6(0x28db)]):_0x5b8400[_0x394bd6(0x2785)](_0x7ef01c[_0x394bd6(0x28a6)]):_0x5b8400['push']('*'),_0x7ef01c['monthDayFrom']?_0x7ef01c['monthDayTo']?_0x5b8400[_0x394bd6(0x2785)](_0x7ef01c[_0x394bd6(0xd6f)]+'-'+_0x7ef01c[_0x394bd6(0x194d)]):_0x5b8400['push'](_0x7ef01c[_0x394bd6(0xd6f)]):_0x5b8400['push']('*'),_0x7ef01c[_0x394bd6(0x1756)]?_0x7ef01c['monthTo']?_0x5b8400[_0x394bd6(0x2785)](_0x7ef01c[_0x394bd6(0x1756)]+'-'+_0x7ef01c[_0x394bd6(0xa68)]):_0x5b8400[_0x394bd6(0x2785)](_0x7ef01c[_0x394bd6(0x1756)]):_0x5b8400[_0x394bd6(0x2785)]('*'),_0x5b8400['join']();}}}function _0x540fd0(){const _0x58c48c=_0x509746;_0x7ef01c[_0x58c48c(0x1a7c)]=[],_0x7ef01c[_0x58c48c(0x1ac8)][_0x58c48c(0x1ac8)]=_0x1f36b6(),_0x2e809f[_0x58c48c(0x1ac8)][_0x58c48c(0x1c3f)](_0x7ef01c[_0x58c48c(0x1ac8)])[_0x58c48c(0x1d77)][_0x58c48c(0x1cb0)](function(_0x5aca18){const _0x46d965=_0x58c48c;_0x7ef01c[_0x46d965(0xb4a)][_0x46d965(0x2785)](_0x5aca18),_0x39e170[_0x46d965(0x829)]({'title':'Interval\x20properly\x20created','msg':_0x7ef01c[_0x46d965(0x1ac8)]['name']?_0x7ef01c[_0x46d965(0x1ac8)]['name']+_0x46d965(0x470):''}),_0x13e570();})[_0x58c48c(0x1c4)](function(_0x4a6163){const _0x54c5e9=_0x58c48c;console[_0x54c5e9(0x218e)](_0x4a6163),_0x7ef01c[_0x54c5e9(0x1a7c)]=_0x4a6163['data'][_0x54c5e9(0x1a7c)]||[{'message':_0x4a6163[_0x54c5e9(0x147f)](),'type':_0x54c5e9(0x24f7)}];});}function _0x55cb54(){const _0x2e9409=_0x509746;_0x7ef01c['errors']=[],_0x7ef01c[_0x2e9409(0x1ac8)][_0x2e9409(0x1ac8)]=_0x1f36b6(),_0x7ef01c[_0x2e9409(0x1ac8)][_0x2e9409(0x171b)]?(_0x7ef01c[_0x2e9409(0x66a)]!==_0x2e9409(0x240)&&(_0x7ef01c['interval'][_0x2e9409(0x1a60)]=null),_0x13e570(_0x7ef01c[_0x2e9409(0x1ac8)])):_0x2e809f[_0x2e9409(0x1ac8)][_0x2e9409(0x687)]({'id':_0x7ef01c[_0x2e9409(0x1ac8)]['id']},_0x7ef01c['interval'])[_0x2e9409(0x1d77)]['then'](function(_0x137df5){const _0x1bb851=_0x2e9409,_0x10dd64=_0x39641b()[_0x1bb851(0x13b4)](_0x7ef01c[_0x1bb851(0xb4a)],{'id':_0x137df5['id']});_0x10dd64&&_0x39641b()[_0x1bb851(0x9c1)](_0x10dd64,_0x137df5),_0x39e170[_0x1bb851(0x829)]({'title':_0x1bb851(0x1498),'msg':_0x1bb851(0x2994)}),_0x13e570();})[_0x2e9409(0x1c4)](function(_0x444b4d){const _0x3733dc=_0x2e9409;console[_0x3733dc(0x218e)](_0x444b4d),_0x7ef01c[_0x3733dc(0x1a7c)]=_0x444b4d[_0x3733dc(0x25c)][_0x3733dc(0x1a7c)]||[{'message':_0x444b4d[_0x3733dc(0x147f)](),'type':_0x3733dc(0x2505)}];});}function _0x13e570(_0xb53ee5){const _0x577ea4=_0x509746;_0x13e93d[_0x577ea4(0x1426)](_0xb53ee5);}}const _0x3bd9a1=_0x4dc185;;_0x4da74b[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty',_0x5537c6(0xf8a),_0x5537c6(0xd8e),_0x5537c6(0x142b),'Auth','crudPermissions'];function _0x4da74b(_0x5989bb,_0x25c66a,_0x24ee0a,_0x2c88b1,_0x27f050,_0xdb21d4,_0x214667,_0xd1516f){const _0x161e3c=_0x5537c6,_0x53b520=this;_0x53b520['currentUser']=_0x214667['getCurrentUser'](),_0x53b520[_0x161e3c(0x1a7c)]=[],_0x53b520['title']=_0x161e3c(0x132b)+(_0x2c88b1[_0x161e3c(0x299b)]||_0x2c88b1['app'])['toUpperCase'](),_0x53b520[_0x161e3c(0x20ff)]=angular['copy'](_0x2c88b1),_0x53b520[_0x161e3c(0x1b1a)]=_0xd1516f,_0x53b520[_0x161e3c(0xf4c)]={};if(_0x53b520['outbounddial']['appdata'])switch(_0x53b520['outbounddial'][_0x161e3c(0x299b)]?_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x299b)][_0x161e3c(0x1680)]():_0x53b520['outbounddial'][_0x161e3c(0x22e1)][_0x161e3c(0x1680)]()){case _0x161e3c(0x197c):break;case _0x161e3c(0x711):{const _0x44693b=_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x28df)][_0x161e3c(0xbe1)](',');_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0xee8)]=_0x44693b[0x0],_0x53b520['outbounddial'][_0x161e3c(0x12b4)]=_0x44693b[0x1],_0x53b520['outbounddial'][_0x161e3c(0x173a)]=_0x44693b[_0x161e3c(0x14cb)](0x2,_0x44693b[_0x161e3c(0xfd0)])[_0x161e3c(0x1f66)](',');}break;case _0x161e3c(0xece):{const _0x2c3682=_0x53b520[_0x161e3c(0x20ff)]['appdata'][_0x161e3c(0xbe1)](',');_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x2854)]=_0x2c3682[0x0],_0x53b520[_0x161e3c(0x20ff)]['clientEmail']=_0x2c3682[0x1],_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x29d6)]=_0x2c3682[0x2],_0x53b520[_0x161e3c(0x20ff)]['language']=_0x2c3682[0x3],_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x173a)]=_0x2c3682[_0x161e3c(0x14cb)](0x4,_0x2c3682['length'])['join'](',');}break;case'amazonlex':{const _0x30bf6c=_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x28df)][_0x161e3c(0xbe1)](',');_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x413)]=_0x30bf6c[0x0],_0x53b520[_0x161e3c(0x20ff)]['secretaccesskey']=_0x30bf6c[0x1],_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0xd50)]=_0x30bf6c[0x2],_0x53b520['outbounddial'][_0x161e3c(0x1c7f)]=_0x30bf6c[0x3],_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x173a)]=_0x30bf6c[_0x161e3c(0x14cb)](0x4,_0x30bf6c[_0x161e3c(0xfd0)])[_0x161e3c(0x1f66)](',');}break;case _0x161e3c(0x1f71):{const _0x19b028=_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x28df)]['split'](',');_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x18a5)]=isNaN(_0x19b028[0x0])?_0x19b028[0x0]:parseInt(_0x19b028[0x0],0xa),_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x19d3)]=_0x19b028['slice'](0x1,_0x19b028['length'])[_0x161e3c(0x1f66)](',');}break;case _0x161e3c(0x155e):_0x53b520['outbounddial'][_0x161e3c(0x19d3)]=_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x28df)];break;case _0x161e3c(0x19d1):_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x16b6)]=_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x28df)][_0x161e3c(0xbe1)]('=')[0x0],_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x327)]=_0x53b520[_0x161e3c(0x20ff)]['appdata']['split']('=')[0x1];break;case _0x161e3c(0x4b4):_0x53b520['outbounddial'][_0x161e3c(0x12a7)]=_0x53b520[_0x161e3c(0x20ff)]['appdata'];break;default:{const _0x41c6d5=_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x28df)][_0x161e3c(0xbe1)](',');_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x1ae0)]=_0x41c6d5[0x0][_0x161e3c(0xbe1)]('/')[0x1],_0x53b520['outbounddial'][_0x161e3c(0x1340)]=_0x41c6d5[0x0][_0x161e3c(0xbe1)]('/')[0x2],_0x53b520['outbounddial'][_0x161e3c(0x1719)]=_0x39641b()[_0x161e3c(0xce9)](_0x41c6d5[0x1])?_0x41c6d5[0x1]:isNaN(_0x41c6d5[0x1])?_0x41c6d5[0x1]:parseInt(_0x41c6d5[0x1],0xa),_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x2224)]=_0x39641b()[_0x161e3c(0xce9)](_0x41c6d5[0x2])?_0x41c6d5[0x2]:isNaN(_0x41c6d5[0x2])?_0x41c6d5[0x2]:parseInt(_0x41c6d5[0x2],0xa),_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x135b)]=_0x39641b()[_0x161e3c(0xce9)](_0x41c6d5[0x3])?_0x41c6d5[0x3]:isNaN(_0x41c6d5[0x3])?_0x41c6d5[0x3]:parseInt(_0x41c6d5[0x3],0xa);}break;}else{}_0x53b520[_0x161e3c(0x20ff)]['type']&&_0x53b520['outbounddial'][_0x161e3c(0x66a)][_0x161e3c(0x1680)]()===_0x161e3c(0x895)&&_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x299b)][_0x161e3c(0x1680)]()===_0x161e3c(0x20ff)&&(_0x53b520[_0x161e3c(0x20ff)]['prefix']=_0x53b520['outbounddial']['phone']?_0x53b520[_0x161e3c(0x20ff)]['phone'][_0x161e3c(0xbe1)]('$')[0x0]:undefined,_0x53b520[_0x161e3c(0x20ff)]['callerId']=_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x2816)]?_0x161e3c(0x25f9)+_0x53b520[_0x161e3c(0x20ff)][_0x161e3c(0x2816)]:undefined);_0x53b520['saveOutboundRouteApp']=_0x1c1beb,_0x53b520['closeDialog']=_0x4efae8,_0x214667['hasRole'](_0x161e3c(0x1c60))?_0xdb21d4[_0x161e3c(0x1ae0)][_0x161e3c(0xbf7)]({'fields':_0x161e3c(0x43c),'sort':_0x161e3c(0x16b6),'nolimit':_0x161e3c(0x44d)})[_0x161e3c(0x1d77)][_0x161e3c(0x1cb0)](function(_0x1f9d53){const _0x25c6b5=_0x161e3c;_0x53b520['trunks']=_0x1f9d53[_0x25c6b5(0x2214)]||[];})[_0x161e3c(0x1c4)](function(_0x5d880d){const _0x3a60db=_0x161e3c;_0x24ee0a[_0x3a60db(0x218e)]({'title':_0x5d880d[_0x3a60db(0x291)]?_0x3a60db(0xeb9)+_0x5d880d[_0x3a60db(0x291)]+_0x3a60db(0x1657)+_0x5d880d['statusText']:'SYSTEM:GET_TRUNKS','msg':_0x5d880d[_0x3a60db(0x25c)]?JSON[_0x3a60db(0x2701)](_0x5d880d[_0x3a60db(0x25c)]):_0x5d880d[_0x3a60db(0x147f)]()});}):_0xdb21d4[_0x161e3c(0x1ae0)][_0x161e3c(0xbf7)]({'fields':_0x161e3c(0x43c),'sort':'name','nolimit':_0x161e3c(0x44d)})['$promise']['then'](function(_0x4f9508){const _0x509d50=_0x161e3c;_0x53b520['trunks']=_0x4f9508[_0x509d50(0x2214)]||[];})['then'](function(){const _0x331b93=_0x161e3c;return _0xdb21d4['userProfileSection'][_0x331b93(0xbf7)]({'userProfileId':_0x53b520['currentUser'][_0x331b93(0x13c1)],'sectionId':0x3f3})[_0x331b93(0x1d77)];})[_0x161e3c(0x1cb0)](function(_0x4d7748){const _0x5b5710=_0x161e3c,_0x48fb25=_0x4d7748&&_0x4d7748[_0x5b5710(0x2214)]?_0x4d7748[_0x5b5710(0x2214)][0x0]:null;if(!_0x48fb25){const _0x35a296=[];let _0x416822=null;_0x53b520[_0x5b5710(0x20ff)]&&(_0x416822=_0x39641b()['find'](_0x53b520['trunks'],{'name':_0x53b520[_0x5b5710(0x20ff)][_0x5b5710(0x1ae0)]}));for(let _0x159d6f=0x0;_0x159d6f<_0x53b520[_0x5b5710(0x1363)][_0x5b5710(0xfd0)];_0x159d6f++){_0x416822&&_0x53b520[_0x5b5710(0x1363)][_0x159d6f]['id']===_0x416822['id']&&(_0x53b520[_0x5b5710(0x1363)][_0x159d6f][_0x5b5710(0x15da)]=![],_0x35a296[_0x5b5710(0x2785)](_0x53b520[_0x5b5710(0x1363)][_0x159d6f]));}_0x53b520[_0x5b5710(0x1363)]=_0x35a296;}else{if(!_0x48fb25['autoAssociation'])return _0xdb21d4['userProfileResource'][_0x5b5710(0xbf7)]({'sectionId':_0x48fb25['id']})[_0x5b5710(0x1d77)][_0x5b5710(0x1cb0)](function(_0x44ff01){const _0x532269=_0x5b5710,_0x148d70=_0x39641b()[_0x532269(0x1de2)](_0x44ff01[_0x532269(0x2214)],function(_0x6cce92){const _0xb58fa5=_0x532269;return _0x39641b()[_0xb58fa5(0x13b4)](_0x53b520[_0xb58fa5(0x1363)],{'id':_0x6cce92['resourceId']});});let _0x1d531f=null;_0x53b520[_0x532269(0x20ff)]&&(_0x1d531f=_0x39641b()['find'](_0x53b520[_0x532269(0x1363)],{'name':_0x53b520[_0x532269(0x20ff)][_0x532269(0x1ae0)]}));if(_0x1d531f&&!_0x39641b()[_0x532269(0x727)](_0x148d70,['id',_0x1d531f['id']])){const _0x1b6de8=_0x39641b()[_0x532269(0x13b4)](_0x53b520[_0x532269(0x1363)],{'id':_0x1d531f['id']});_0x1b6de8[_0x532269(0x15da)]=![],_0x148d70[_0x532269(0x2785)](_0x1b6de8);}_0x53b520['trunks']=_0x148d70;});}})['catch'](function(_0x580715){const _0x2e9dc2=_0x161e3c;_0x24ee0a[_0x2e9dc2(0x218e)]({'title':_0x580715[_0x2e9dc2(0x291)]?_0x2e9dc2(0xeb9)+_0x580715[_0x2e9dc2(0x291)]+'\x20-\x20'+_0x580715[_0x2e9dc2(0xc22)]:_0x2e9dc2(0x2040),'msg':_0x580715[_0x2e9dc2(0x25c)]?JSON[_0x2e9dc2(0x2701)](_0x580715[_0x2e9dc2(0x25c)]):_0x580715['toString']()});}),_0x214667[_0x161e3c(0x22b6)](_0x161e3c(0x1c60))?_0xdb21d4[_0x161e3c(0x22b1)]['get']({'fields':_0x161e3c(0x43c),'sort':_0x161e3c(0x16b6),'nolimit':_0x161e3c(0x44d)})['$promise'][_0x161e3c(0x1cb0)](function(_0x3892d6){const _0xb33d14=_0x161e3c;_0x53b520[_0xb33d14(0xfbf)]=_0x3892d6[_0xb33d14(0x2214)]||[];})[_0x161e3c(0x1c4)](function(_0xf963af){const _0x41cd38=_0x161e3c;_0x24ee0a['error']({'title':_0xf963af[_0x41cd38(0x291)]?_0x41cd38(0xeb9)+_0xf963af[_0x41cd38(0x291)]+_0x41cd38(0x1657)+_0xf963af[_0x41cd38(0xc22)]:_0x41cd38(0x12f9),'msg':_0xf963af[_0x41cd38(0x25c)]?JSON[_0x41cd38(0x2701)](_0xf963af[_0x41cd38(0x25c)]):_0xf963af[_0x41cd38(0x147f)]()});}):_0xdb21d4[_0x161e3c(0x22b1)]['get']({'fields':_0x161e3c(0x43c),'sort':_0x161e3c(0x16b6),'nolimit':_0x161e3c(0x44d)})['$promise'][_0x161e3c(0x1cb0)](function(_0x6bd6c6){const _0x2050ac=_0x161e3c;_0x53b520[_0x2050ac(0xfbf)]=_0x6bd6c6[_0x2050ac(0x2214)]||[];})[_0x161e3c(0x1cb0)](function(){const _0x425a7e=_0x161e3c;return _0xdb21d4[_0x425a7e(0x2199)][_0x425a7e(0xbf7)]({'userProfileId':_0x53b520[_0x425a7e(0xe76)]['userProfileId'],'sectionId':0x3f0})[_0x425a7e(0x1d77)];})[_0x161e3c(0x1cb0)](function(_0x243ade){const _0x292b99=_0x161e3c,_0x6adc84=_0x243ade&&_0x243ade[_0x292b99(0x2214)]?_0x243ade[_0x292b99(0x2214)][0x0]:null;if(!_0x6adc84){const _0x560f0e=[];let _0x5350ea=null;_0x53b520[_0x292b99(0x20ff)]&&(_0x5350ea=_0x39641b()[_0x292b99(0x13b4)](_0x53b520[_0x292b99(0xfbf)],{'name':_0x53b520[_0x292b99(0x20ff)][_0x292b99(0x22b1)]}));for(let _0x4fd4fd=0x0;_0x4fd4fd<_0x53b520['tags']['length'];_0x4fd4fd++){_0x5350ea&&_0x53b520['tags'][_0x4fd4fd]['id']===_0x5350ea['id']&&(_0x53b520['tags'][_0x4fd4fd][_0x292b99(0x15da)]=![],_0x560f0e[_0x292b99(0x2785)](_0x53b520[_0x292b99(0xfbf)][_0x4fd4fd]));}_0x53b520[_0x292b99(0xfbf)]=_0x560f0e;}else{if(!_0x6adc84[_0x292b99(0x12f4)])return _0xdb21d4[_0x292b99(0x1198)][_0x292b99(0xbf7)]({'sectionId':_0x6adc84['id']})[_0x292b99(0x1d77)][_0x292b99(0x1cb0)](function(_0x5e55a0){const _0x3ad506=_0x292b99,_0x3adc92=_0x39641b()[_0x3ad506(0x1de2)](_0x5e55a0[_0x3ad506(0x2214)],function(_0xc7f7c5){const _0x21086e=_0x3ad506;return _0x39641b()['find'](_0x53b520[_0x21086e(0xfbf)],{'id':_0xc7f7c5[_0x21086e(0x2982)]});});let _0x5435bc=null;_0x53b520[_0x3ad506(0x20ff)]&&(_0x5435bc=_0x39641b()[_0x3ad506(0x13b4)](_0x53b520[_0x3ad506(0xfbf)],{'name':_0x53b520[_0x3ad506(0x20ff)][_0x3ad506(0x22b1)]}));if(_0x5435bc&&!_0x39641b()[_0x3ad506(0x727)](_0x3adc92,['id',_0x5435bc['id']])){const _0x784d99=_0x39641b()['find'](_0x53b520[_0x3ad506(0xfbf)],{'id':_0x5435bc['id']});_0x784d99[_0x3ad506(0x15da)]=![],_0x3adc92[_0x3ad506(0x2785)](_0x784d99);}_0x53b520[_0x3ad506(0xfbf)]=_0x3adc92;});}})[_0x161e3c(0x1c4)](function(_0x1d0bc4){const _0x2b3afb=_0x161e3c;_0x24ee0a[_0x2b3afb(0x218e)]({'title':_0x1d0bc4[_0x2b3afb(0x291)]?_0x2b3afb(0xeb9)+_0x1d0bc4[_0x2b3afb(0x291)]+_0x2b3afb(0x1657)+_0x1d0bc4['statusText']:_0x2b3afb(0x808),'msg':_0x1d0bc4[_0x2b3afb(0x25c)]?JSON[_0x2b3afb(0x2701)](_0x1d0bc4['data']):_0x1d0bc4['toString']()});});function _0x1c1beb(){const _0x4fb2dd=_0x161e3c;_0x53b520[_0x4fb2dd(0x1a7c)]=[];const _0x1f31cd=[];_0x53b520[_0x4fb2dd(0x20ff)]['type']&&_0x53b520[_0x4fb2dd(0x20ff)][_0x4fb2dd(0x66a)][_0x4fb2dd(0x1680)]()===_0x4fb2dd(0x895)&&_0x53b520[_0x4fb2dd(0x20ff)]['appType']===_0x4fb2dd(0x25f4)&&(_0x53b520[_0x4fb2dd(0x20ff)][_0x4fb2dd(0x1340)]=_0x27f050[_0x4fb2dd(0x325)]?(_0x53b520[_0x4fb2dd(0x20ff)][_0x4fb2dd(0x586)]||'')+_0x4fb2dd(0x19e4)+_0x27f050['cutdigits']+'}':(_0x53b520[_0x4fb2dd(0x20ff)]['prefix']||'')+_0x4fb2dd(0xcdd),_0x27f050['recordingFormat']!==_0x4fb2dd(0x13b1)?_0x53b520['outbounddial']['options']['indexOf'](_0x4fb2dd(0x106a))<0x0&&(_0x53b520[_0x4fb2dd(0x20ff)][_0x4fb2dd(0x2224)]+=_0x4fb2dd(0x106a)):_0x53b520[_0x4fb2dd(0x20ff)][_0x4fb2dd(0x2224)]=_0x53b520[_0x4fb2dd(0x20ff)][_0x4fb2dd(0x2224)][_0x4fb2dd(0x288f)]('U(xcally-mixmonitor-context)',''));if(_0x53b520['outbounddial'][_0x4fb2dd(0x299b)]&&_0x53b520[_0x4fb2dd(0x20ff)][_0x4fb2dd(0x299b)]==='custom'){}else switch((_0x53b520[_0x4fb2dd(0x20ff)][_0x4fb2dd(0x22e1)]||_0x53b520['outbounddial'][_0x4fb2dd(0x299b)])[_0x4fb2dd(0x1680)]()){case _0x4fb2dd(0x19d1):_0x53b520['outbounddial'][_0x4fb2dd(0x28df)]=_0x53b520[_0x4fb2dd(0x20ff)][_0x4fb2dd(0x16b6)]+'='+_0x53b520[_0x4fb2dd(0x20ff)]['value'];break;case _0x4fb2dd(0x197c):break;default:_0x1f31cd[0x0]=[_0x4fb2dd(0x2832),_0x53b520[_0x4fb2dd(0x20ff)]['trunk'],_0x53b520[_0x4fb2dd(0x20ff)][_0x4fb2dd(0x1340)]][_0x4fb2dd(0x1f66)]('/'),_0x1f31cd[0x1]=_0x53b520['outbounddial'][_0x4fb2dd(0x1719)],_0x1f31cd[0x2]=_0x53b520[_0x4fb2dd(0x20ff)][_0x4fb2dd(0x2224)],_0x1f31cd[0x3]=_0x53b520[_0x4fb2dd(0x20ff)][_0x4fb2dd(0x135b)],_0x53b520[_0x4fb2dd(0x20ff)][_0x4fb2dd(0x28df)]=_0x1f31cd[_0x4fb2dd(0x1f66)](',');}_0x4efae8(_0x53b520['outbounddial']);}function _0x4efae8(_0x752999){const _0x25a351=_0x161e3c;_0x5989bb[_0x25a351(0x1426)](_0x752999);}}const _0x3d6e4b=_0x4da74b;;_0x59d478[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$document','$translate',_0x5537c6(0x8a5),_0x5537c6(0x9ca),'api',_0x5537c6(0x9bf),_0x5537c6(0x1774),'outboundroute',_0x5537c6(0x2199)];function _0x59d478(_0x3bdd42,_0x101e86,_0x450024,_0x5070ad,_0x2976f3,_0x24ae48,_0x2f717c,_0x1c216b,_0x5d1da6,_0x4aa111,_0x3e205d,_0x3ae071){const _0x92af6c=_0x5537c6,_0x485423=this;_0x485423[_0x92af6c(0xe76)]=_0x4aa111['getCurrentUser'](),_0x485423[_0x92af6c(0x8a5)]=_0x24ae48,_0x485423[_0x92af6c(0x9ca)]=_0x2f717c,_0x485423['passwordPattern']=_0x485423['setting'][_0x92af6c(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x485423['location']=_0x101e86[_0x92af6c(0x2276)]()+'://'+_0x101e86[_0x92af6c(0x17d8)](),_0x485423['outboundroute']=_0x3e205d||_0x3bdd42[_0x92af6c(0x1dfe)][_0x92af6c(0xd8e)]||{},_0x485423[_0x92af6c(0x2199)]=_0x3ae071&&_0x3ae071['count']==0x1?_0x3ae071[_0x92af6c(0x2214)][0x0]:null,_0x485423[_0x92af6c(0x1b1a)]=_0x4aa111[_0x92af6c(0x14ea)](_0x485423[_0x92af6c(0x2199)]?_0x485423[_0x92af6c(0x2199)][_0x92af6c(0x1b1a)]:null),_0x485423[_0x92af6c(0xf4c)]={},_0x485423[_0x92af6c(0x8ec)]=_0x3bdd42[_0x92af6c(0x1dfe)][_0x92af6c(0x291e)]||0x0,_0x485423['alert']=_0x5d1da6['info'],_0x485423['gotoOutboundRoutes']=_0x4ed5a6,_0x485423['saveOutboundRoute']=_0x1b099e,_0x4aa111['hasRole'](_0x92af6c(0x1c60))?_0x1c216b[_0x92af6c(0x1da5)][_0x92af6c(0xbf7)]({'fields':_0x92af6c(0x43c),'sort':_0x92af6c(0x16b6),'nolimit':'true'})[_0x92af6c(0x1d77)][_0x92af6c(0x1cb0)](function(_0x17210f){const _0x5e0cd8=_0x92af6c;_0x485423[_0x5e0cd8(0x14f6)]=_0x17210f[_0x5e0cd8(0x2214)]||[];})[_0x92af6c(0x1c4)](function(_0x586e25){const _0x2d3340=_0x92af6c;_0x5d1da6[_0x2d3340(0x218e)]({'title':_0x586e25['status']?'API:'+_0x586e25[_0x2d3340(0x291)]+'\x20-\x20'+_0x586e25[_0x2d3340(0xc22)]:'SYSTEM:GET_CONTEXTS','msg':_0x586e25['data']?JSON[_0x2d3340(0x2701)](_0x586e25[_0x2d3340(0x25c)]):_0x586e25[_0x2d3340(0x147f)]()});}):_0x1c216b[_0x92af6c(0x1da5)][_0x92af6c(0xbf7)]({'fields':_0x92af6c(0x43c),'sort':_0x92af6c(0x16b6),'nolimit':_0x92af6c(0x44d)})['$promise'][_0x92af6c(0x1cb0)](function(_0x3a7af1){const _0x42b021=_0x92af6c;_0x485423[_0x42b021(0x14f6)]=_0x3a7af1[_0x42b021(0x2214)]||[];})[_0x92af6c(0x1cb0)](function(){const _0x5a4e43=_0x92af6c;return _0x1c216b[_0x5a4e43(0x2199)][_0x5a4e43(0xbf7)]({'userProfileId':_0x485423[_0x5a4e43(0xe76)][_0x5a4e43(0x13c1)],'sectionId':0x195})[_0x5a4e43(0x1d77)];})['then'](function(_0x43951d){const _0x37c377=_0x92af6c,_0x210134=_0x43951d&&_0x43951d['rows']?_0x43951d[_0x37c377(0x2214)][0x0]:null;if(!_0x210134)return _0x1c216b[_0x37c377(0x1da5)]['get']({'fields':_0x37c377(0x43c),'sort':_0x37c377(0x16b6),'nolimit':_0x37c377(0x44d),'defaultEntry':0x1})['$promise'][_0x37c377(0x1cb0)](function(_0x2ffa69){const _0x263030=_0x37c377;_0x485423[_0x263030(0x14f6)]=_0x2ffa69[_0x263030(0x2214)]||[];});else{if(!_0x210134['autoAssociation'])return _0x1c216b['userProfileResource'][_0x37c377(0xbf7)]({'sectionId':_0x210134['id']})[_0x37c377(0x1d77)]['then'](function(_0x53d0e1){const _0x9b1de1=_0x37c377,_0x6524a5=_0x39641b()[_0x9b1de1(0x1de2)](_0x53d0e1['rows'],function(_0x19e342){const _0x3f79df=_0x9b1de1;return _0x39641b()[_0x3f79df(0x13b4)](_0x485423[_0x3f79df(0x14f6)],{'id':_0x19e342[_0x3f79df(0x2982)]});});let _0x10a7fa=null;_0x485423['outboundroute']&&(_0x10a7fa=_0x39641b()[_0x9b1de1(0x13b4)](_0x485423[_0x9b1de1(0x14f6)],{'name':_0x485423[_0x9b1de1(0xd8e)][_0x9b1de1(0x2056)]}));if(_0x10a7fa&&!_0x39641b()['some'](_0x6524a5,['id',_0x10a7fa['id']])){const _0x339580=_0x39641b()[_0x9b1de1(0x13b4)](_0x485423[_0x9b1de1(0x14f6)],{'id':_0x10a7fa['id']});_0x339580['canSelect']=![],_0x6524a5['push'](_0x339580);}_0x485423[_0x9b1de1(0x14f6)]=_0x6524a5;});}})[_0x92af6c(0x1c4)](function(_0x286d27){const _0xb911e6=_0x92af6c;_0x5d1da6[_0xb911e6(0x218e)]({'title':_0x286d27[_0xb911e6(0x291)]?_0xb911e6(0xeb9)+_0x286d27[_0xb911e6(0x291)]+_0xb911e6(0x1657)+_0x286d27['statusText']:_0xb911e6(0x5ac),'msg':_0x286d27[_0xb911e6(0x25c)]?JSON['stringify'](_0x286d27[_0xb911e6(0x25c)]):_0x286d27[_0xb911e6(0x147f)]()});});function _0x4ed5a6(){const _0x2ff318=_0x92af6c;_0x3bdd42['go'](_0x2ff318(0x2143),{},{'reload':_0x2ff318(0x2143)});}function _0x1b099e(){const _0x51e60e=_0x92af6c;_0x1c216b[_0x51e60e(0x1059)][_0x51e60e(0x687)]({'id':_0x485423[_0x51e60e(0xd8e)]['id']},_0x485423[_0x51e60e(0xd8e)])[_0x51e60e(0x1d77)][_0x51e60e(0x1cb0)](function(){const _0x4d87d0=_0x51e60e;_0x5d1da6[_0x4d87d0(0x829)]({'title':'OutboundRoute\x20updated!','msg':_0x485423[_0x4d87d0(0xd8e)][_0x4d87d0(0x16b6)]?_0x485423[_0x4d87d0(0xd8e)][_0x4d87d0(0x16b6)]+'\x20has\x20been\x20updated!':''});})[_0x51e60e(0x1c4)](function(_0x5629f9){const _0x3203a0=_0x51e60e;_0x5d1da6['error']({'title':_0x5629f9[_0x3203a0(0x291)]?_0x3203a0(0xeb9)+_0x5629f9[_0x3203a0(0x291)]+'\x20-\x20'+_0x5629f9[_0x3203a0(0xc22)]:_0x3203a0(0x783),'msg':_0x5629f9[_0x3203a0(0x25c)]?JSON[_0x3203a0(0x2701)](_0x5629f9[_0x3203a0(0x25c)]):_0x5629f9['toString']()});});}}const _0x235064=_0x59d478;;const _0x53b27d=_0x5074a3['p']+_0x5537c6(0xcb7);;_0x1a5fba[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'$timeout',_0x5537c6(0x1ae),'outboundroutes','userProfile',_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),'Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x1a5fba(_0x10c4cd,_0x5a15d4,_0xabf968,_0x34386b,_0x24105b,_0x2c67be,_0x3c4c46,_0x4fd2d5,_0x1ce4fc,_0x9579ea,_0x1a0d7e,_0x7e5bbe,_0x3793f9,_0x55ff34,_0x5837c7,_0x8989b3,_0x1e44b9){const _0x18c21b=_0x5537c6,_0x1d9701=this;_0x1d9701[_0x18c21b(0x8a5)]=_0x8989b3,_0x1d9701[_0x18c21b(0x9ca)]=_0x1e44b9,_0x1d9701['currentUser']=_0x5837c7[_0x18c21b(0x21e8)](),_0x1d9701[_0x18c21b(0x128c)]=_0x1ce4fc||{'count':0x0,'rows':[]},_0x1d9701['userProfile']=_0x9579ea,_0x1d9701[_0x18c21b(0x2199)]=_0x1a0d7e&&_0x1a0d7e[_0x18c21b(0x184d)]==0x1?_0x1a0d7e['rows'][0x0]:null,_0x1d9701[_0x18c21b(0x1b1a)]=_0x5837c7['parseCrudPermissions'](_0x1d9701[_0x18c21b(0x2199)]?_0x1d9701[_0x18c21b(0x2199)][_0x18c21b(0x1b1a)]:null),_0x1d9701['table']='outboundroutes',_0x1d9701['listOrder']='',_0x1d9701[_0x18c21b(0x1cdf)]=null,_0x1d9701[_0x18c21b(0x5cb)]=[],_0x1d9701['query']={'fields':_0x18c21b(0x18ff),'type':_0x18c21b(0x895),'sort':_0x18c21b(0x282),'VoiceExtensionId':_0x18c21b(0xd38),'limit':0xa,'page':0x1},_0x1d9701['arrayrecordingFormat']=_0x39641b()[_0x18c21b(0x2631)]([{'option':_0x18c21b(0x13b1),'value':_0x18c21b(0x1128)},{'option':_0x18c21b(0xcab),'value':_0x18c21b(0x2329)},{'option':_0x18c21b(0x1f63),'value':'\x27WAV\x27'},{'option':_0x18c21b(0x2331),'value':_0x18c21b(0x24ce)}],function(_0x316d19){const _0x424457=_0x18c21b;return _0x39641b()[_0x424457(0x288f)](_0x316d19[_0x424457(0x327)],new RegExp('\x27','g'),'');}),_0x1d9701[_0x18c21b(0x235d)]=_0x2abcd1,_0x1d9701[_0x18c21b(0x27fe)]=_0x2aaa56,_0x1d9701[_0x18c21b(0x829)]=_0x1d5779,_0x1d9701[_0x18c21b(0x190b)]=_0x5b3b1d,_0x1d9701['createOrEditOutboundRoute']=_0x282c1c,_0x1d9701[_0x18c21b(0x1e7f)]=_0x1907ce,_0x1d9701[_0x18c21b(0x1716)]=_0x36b2f3,_0x1d9701[_0x18c21b(0x1aac)]=_0x1b7cc3,_0x1d9701[_0x18c21b(0x16d4)]=_0x1eb045,_0x1d9701['selectAllOutboundRoutes']=_0x520784,_0x5837c7[_0x18c21b(0x22b6)]('admin')?_0x7e5bbe['voiceContext']['get']({'fields':_0x18c21b(0x43c),'sort':_0x18c21b(0x16b6),'nolimit':_0x18c21b(0x44d)})['$promise'][_0x18c21b(0x1cb0)](function(_0x527891){const _0x24156d=_0x18c21b;_0x1d9701[_0x24156d(0x14f6)]=_0x527891[_0x24156d(0x2214)]||[];})[_0x18c21b(0x1c4)](function(_0x5bb25c){const _0x133e9e=_0x18c21b;_0x55ff34[_0x133e9e(0x218e)]({'title':_0x5bb25c[_0x133e9e(0x291)]?'API:'+_0x5bb25c['status']+_0x133e9e(0x1657)+_0x5bb25c[_0x133e9e(0xc22)]:_0x133e9e(0x2072),'msg':_0x5bb25c[_0x133e9e(0x25c)]?JSON['stringify'](_0x5bb25c['data']):_0x5bb25c['toString']()});}):_0x7e5bbe[_0x18c21b(0x1da5)][_0x18c21b(0xbf7)]({'fields':_0x18c21b(0x43c),'sort':_0x18c21b(0x16b6),'nolimit':'true'})[_0x18c21b(0x1d77)][_0x18c21b(0x1cb0)](function(_0x457e4d){const _0x3e0b38=_0x18c21b;_0x1d9701[_0x3e0b38(0x14f6)]=_0x457e4d['rows']||[];})[_0x18c21b(0x1cb0)](function(){const _0x500f71=_0x18c21b;return _0x7e5bbe[_0x500f71(0x2199)][_0x500f71(0xbf7)]({'userProfileId':_0x1d9701[_0x500f71(0xe76)][_0x500f71(0x13c1)],'sectionId':0x195})[_0x500f71(0x1d77)];})['then'](function(_0xa7bc30){const _0x13ee5f=_0x18c21b,_0x8747e3=_0xa7bc30&&_0xa7bc30[_0x13ee5f(0x2214)]?_0xa7bc30[_0x13ee5f(0x2214)][0x0]:null;if(!_0x8747e3)return _0x7e5bbe[_0x13ee5f(0x1da5)][_0x13ee5f(0xbf7)]({'fields':_0x13ee5f(0x43c),'sort':_0x13ee5f(0x16b6),'nolimit':_0x13ee5f(0x44d),'defaultEntry':0x1})['$promise'][_0x13ee5f(0x1cb0)](function(_0x1da3be){const _0x2c3055=_0x13ee5f;_0x1d9701[_0x2c3055(0x14f6)]=_0x1da3be[_0x2c3055(0x2214)]||[];});else{if(!_0x8747e3[_0x13ee5f(0x12f4)])return _0x7e5bbe[_0x13ee5f(0x1198)]['get']({'sectionId':_0x8747e3['id']})['$promise'][_0x13ee5f(0x1cb0)](function(_0x1c3a56){const _0x30890f=_0x13ee5f,_0x42b4ef=_0x39641b()['map'](_0x1c3a56[_0x30890f(0x2214)],function(_0x5599fc){const _0x26fa97=_0x30890f;return _0x39641b()[_0x26fa97(0x13b4)](_0x1d9701['contexts'],{'id':_0x5599fc[_0x26fa97(0x2982)]});});let _0x51f9ee=null;_0x1d9701[_0x30890f(0xd8e)]&&(_0x51f9ee=_0x39641b()[_0x30890f(0x13b4)](_0x1d9701[_0x30890f(0x14f6)],{'name':_0x1d9701[_0x30890f(0xd8e)][_0x30890f(0x2056)]}));if(_0x51f9ee&&!_0x39641b()[_0x30890f(0x727)](_0x42b4ef,['id',_0x51f9ee['id']])){const _0x46b170=_0x39641b()[_0x30890f(0x13b4)](_0x1d9701[_0x30890f(0x14f6)],{'id':_0x51f9ee['id']});_0x46b170[_0x30890f(0x15da)]=![],_0x42b4ef['push'](_0x46b170);}_0x1d9701['contexts']=_0x42b4ef;});}})[_0x18c21b(0x1c4)](function(_0x165cd0){const _0xaa3a27=_0x18c21b;_0x55ff34[_0xaa3a27(0x218e)]({'title':_0x165cd0[_0xaa3a27(0x291)]?'API:'+_0x165cd0[_0xaa3a27(0x291)]+_0xaa3a27(0x1657)+_0x165cd0[_0xaa3a27(0xc22)]:_0xaa3a27(0x5ac),'msg':_0x165cd0[_0xaa3a27(0x25c)]?JSON[_0xaa3a27(0x2701)](_0x165cd0['data']):_0x165cd0[_0xaa3a27(0x147f)]()});});function _0x2abcd1(_0x213b35){const _0xaf64f4=_0x18c21b;_0xabf968['go'](_0xaf64f4(0x27e5),{'id':_0x213b35['id'],'outboundroute':_0x213b35,'crudPermissions':_0x1d9701[_0xaf64f4(0x1b1a)]});}function _0x2aaa56(_0xea5a23,_0x76620e){const _0x237888=_0x18c21b,_0x485988=_0x24105b[_0x237888(0x1551)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x39641b()['startCase'](_0x237888(0xd8e))+'?')[_0x237888(0x49e)](_0x237888(0x204d)+(_0xea5a23['name']||_0x237888(0xd8e))+_0x237888(0x1200)+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20outboundroute')[_0x237888(0x728)](_0x76620e)['ok']('OK')[_0x237888(0x696)](_0x237888(0x24ba));_0x24105b[_0x237888(0xe27)](_0x485988)[_0x237888(0x1cb0)](function(){_0x1907ce(_0xea5a23);},function(){const _0x6cd661=_0x237888;console[_0x6cd661(0x1b4f)](_0x6cd661(0x24ba));});}let _0x1804d0=!![],_0x510982=0x1;_0x10c4cd[_0x18c21b(0x614)](_0x18c21b(0x957),function(_0x5d7aa4,_0x292291){const _0xadaa81=_0x18c21b;_0x1804d0?_0x3c4c46(function(){_0x1804d0=![];}):(!_0x292291&&(_0x510982=_0x1d9701[_0xadaa81(0xae2)][_0xadaa81(0x1c7b)]),_0x5d7aa4!==_0x292291&&(_0x1d9701[_0xadaa81(0xae2)]['page']=0x1),!_0x5d7aa4&&(_0x1d9701[_0xadaa81(0xae2)]['page']=_0x510982),_0x1d9701[_0xadaa81(0x190b)]());});function _0x1d5779(_0x26a308){const _0x1b58a4=_0x18c21b;_0x1d9701[_0x1b58a4(0x128c)]=_0x26a308||{'count':0x0,'rows':[]};}function _0x5b3b1d(){const _0x4acb26=_0x18c21b;_0x1d9701[_0x4acb26(0xae2)][_0x4acb26(0x184b)]=(_0x1d9701['query'][_0x4acb26(0x1c7b)]-0x1)*_0x1d9701['query'][_0x4acb26(0x236)],_0x5837c7['hasRole'](_0x4acb26(0x1c60))?_0x1d9701[_0x4acb26(0x2061)]=_0x7e5bbe[_0x4acb26(0x1059)]['get'](_0x1d9701[_0x4acb26(0xae2)],_0x1d5779)[_0x4acb26(0x1d77)]:(_0x1d9701[_0x4acb26(0xae2)]['id']=_0x1d9701[_0x4acb26(0x44a)]['id'],_0x1d9701['query'][_0x4acb26(0x1f74)]=_0x4acb26(0x257c),_0x1d9701[_0x4acb26(0x2061)]=_0x7e5bbe[_0x4acb26(0x44a)][_0x4acb26(0x1810)](_0x1d9701[_0x4acb26(0xae2)],_0x1d5779)[_0x4acb26(0x1d77)]);}function _0x282c1c(_0x19ddf7,_0x4deb0a){const _0x515dd5=_0x18c21b;_0x24105b[_0x515dd5(0xe27)]({'controller':_0x515dd5(0x2289),'controllerAs':'vm','templateUrl':_0x53b27d,'parent':angular[_0x515dd5(0x1853)](_0x2c67be[_0x515dd5(0x1ed9)]),'targetEvent':_0x19ddf7,'clickOutsideToClose':!![],'locals':{'outboundroute':_0x4deb0a,'outboundroutes':_0x1d9701[_0x515dd5(0x128c)]['rows'],'license':_0x1d9701['license'],'setting':_0x1d9701[_0x515dd5(0x9ca)],'crudPermissions':_0x1d9701[_0x515dd5(0x1b1a)]}});}function _0x1907ce(_0x129ada){const _0x317a10=_0x18c21b;_0x7e5bbe['voicePrefix'][_0x317a10(0xbf7)]({'VoiceExtensionId':_0x129ada['id']})[_0x317a10(0x1d77)][_0x317a10(0x1cb0)](function(_0x255f1f){const _0x463e7f=_0x317a10;if(_0x255f1f&&_0x255f1f[_0x463e7f(0x2214)]&&_0x255f1f[_0x463e7f(0x2214)][_0x463e7f(0xfd0)]>0x0)return _0x55ff34[_0x463e7f(0x218e)]({'title':_0x463e7f(0x22d4),'msg':_0x463e7f(0x19aa)});else _0x7e5bbe['voiceExtension'][_0x463e7f(0x111d)]({'id':_0x129ada['id']})['$promise'][_0x463e7f(0x1cb0)](function(){const _0x223094=_0x463e7f;_0x39641b()[_0x223094(0x152a)](_0x1d9701[_0x223094(0x128c)][_0x223094(0x2214)],{'id':_0x129ada['id']}),_0x1d9701['outboundroutes']['count']-=0x1,!_0x1d9701[_0x223094(0x128c)]['rows'][_0x223094(0xfd0)]&&_0x1d9701['getOutboundRoutes'](),_0x55ff34[_0x223094(0x829)]({'title':_0x39641b()[_0x223094(0xa75)](_0x223094(0x15cf))+_0x223094(0x2663),'msg':_0x129ada[_0x223094(0x16b6)]?_0x129ada['name']+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x1916e1){const _0xad5a49=_0x463e7f;if(_0x1916e1[_0xad5a49(0x25c)]&&_0x1916e1[_0xad5a49(0x25c)]['errors']&&_0x1916e1[_0xad5a49(0x25c)]['errors']['length']){_0x1d9701[_0xad5a49(0x1a7c)]=_0x1916e1[_0xad5a49(0x25c)][_0xad5a49(0x1a7c)]||[{'message':_0x1916e1[_0xad5a49(0x147f)](),'type':'SYSTEM:DELETEvoiceExtension'}];for(let _0x645735=0x0;_0x645735<_0x1916e1[_0xad5a49(0x25c)]['errors'][_0xad5a49(0xfd0)];_0x645735++){_0x55ff34[_0xad5a49(0x218e)]({'title':_0x1916e1[_0xad5a49(0x25c)]['errors'][_0x645735][_0xad5a49(0x66a)],'msg':_0x1916e1['data']['errors'][_0x645735][_0xad5a49(0x155e)]});}}else _0x55ff34[_0xad5a49(0x218e)]({'title':_0x1916e1['status']?_0xad5a49(0xeb9)+_0x1916e1['status']+_0xad5a49(0x1657)+_0x1916e1[_0xad5a49(0xc22)]:_0xad5a49(0x17dd),'msg':_0x1916e1[_0xad5a49(0x25c)]?JSON[_0xad5a49(0x2701)](_0x1916e1['data']['message']):_0x1916e1['message']||_0x1916e1[_0xad5a49(0x147f)]()});});});}function _0x36b2f3(){const _0x713dc0=_0x18c21b,_0x1d49dc=angular[_0x713dc0(0x17fe)](_0x1d9701[_0x713dc0(0x5cb)]);return _0x1d9701['selectedOutboundRoutes']=[],_0x1d49dc;}function _0x1b7cc3(_0xbc53b){const _0x3a8c68=_0x18c21b,_0xf78a00=_0x24105b[_0x3a8c68(0x1551)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20outboundroutes?')[_0x3a8c68(0x49e)](_0x3a8c68(0x204d)+_0x1d9701[_0x3a8c68(0x5cb)][_0x3a8c68(0xfd0)]+_0x3a8c68(0x1d6c)+_0x3a8c68(0x1b6))[_0x3a8c68(0x15ad)](_0x3a8c68(0x1a0))[_0x3a8c68(0x728)](_0xbc53b)['ok']('OK')[_0x3a8c68(0x696)]('CANCEL');_0x24105b['show'](_0xf78a00)['then'](function(){_0x1d9701['selectedOutboundRoutes']['forEach'](function(_0x87597){_0x1907ce(_0x87597);}),_0x1d9701['selectedOutboundRoutes']=[];});}function _0x1eb045(){const _0x4fc71e=_0x18c21b;_0x1d9701[_0x4fc71e(0x5cb)]=[];}function _0x520784(){const _0x207e39=_0x18c21b;_0x1d9701[_0x207e39(0x5cb)]=_0x1d9701[_0x207e39(0x128c)][_0x207e39(0x2214)];}}const _0xb2608f=_0x1a5fba;;_0x4123b3[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x1487),'voicemail',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x4123b3(_0xedc892,_0x213bfe,_0x1fe44b,_0x535c73,_0x27f2b8,_0x119bd9,_0x591793,_0x37a568,_0x179dde,_0x397dec,_0x1c0213,_0x40e51f,_0x5d7c94,_0x3f8081){const _0xf1ad10=_0x5537c6,_0x4e4e04=this;_0x4e4e04[_0xf1ad10(0xe76)]=_0x1c0213['getCurrentUser'](),_0x4e4e04[_0xf1ad10(0x1a7c)]=[],_0x4e4e04[_0xf1ad10(0x9ca)]=_0x5d7c94,_0x4e4e04[_0xf1ad10(0x8a5)]=_0x40e51f,_0x4e4e04[_0xf1ad10(0x1b1a)]=_0x3f8081,_0x4e4e04[_0xf1ad10(0xf4c)]={},_0x4e4e04[_0xf1ad10(0x1b0c)]=_0x4e4e04[_0xf1ad10(0x9ca)]&&_0x4e4e04[_0xf1ad10(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4e4e04[_0xf1ad10(0x1386)]=_0xf1ad10(0x297),_0x4e4e04[_0xf1ad10(0xd66)]=angular[_0xf1ad10(0x17fe)](_0x179dde),_0x4e4e04['voicemails']=_0x37a568,_0x4e4e04[_0xf1ad10(0x1b60)]=![];!_0x4e4e04['voicemail']&&(_0x4e4e04['voicemail']={'attach':'no'},_0x4e4e04[_0xf1ad10(0x1386)]=_0xf1ad10(0xff9),_0x4e4e04[_0xf1ad10(0x1b60)]=!![]);_0x4e4e04[_0xf1ad10(0xf21)]=_0x998470,_0x4e4e04[_0xf1ad10(0x1be6)]=_0x561d48,_0x4e4e04[_0xf1ad10(0xf75)]=_0x1f3d33,_0x4e4e04[_0xf1ad10(0x2c4)]=_0x293dcd,_0x4e4e04[_0xf1ad10(0xda0)]=_0x309e6a;function _0x998470(){const _0x1d08ca=_0xf1ad10;_0x4e4e04[_0x1d08ca(0x1a7c)]=[],_0x397dec['voiceMail'][_0x1d08ca(0x1c3f)](_0x4e4e04[_0x1d08ca(0xd66)])[_0x1d08ca(0x1d77)][_0x1d08ca(0x1cb0)](function(_0xe6fc1d){const _0x101db2=_0x1d08ca;_0x4e4e04[_0x101db2(0x1487)][_0x101db2(0xf63)](_0xe6fc1d[_0x101db2(0x19b2)]()),_0x591793[_0x101db2(0x829)]({'title':'Voicemail\x20properly\x20created','msg':_0x4e4e04[_0x101db2(0xd66)][_0x101db2(0x16b6)]?_0x4e4e04[_0x101db2(0xd66)][_0x101db2(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x309e6a(_0xe6fc1d);})[_0x1d08ca(0x1c4)](function(_0x62395f){const _0x4e6360=_0x1d08ca;if(_0x62395f['data']&&_0x62395f[_0x4e6360(0x25c)]['errors']&&_0x62395f[_0x4e6360(0x25c)][_0x4e6360(0x1a7c)][_0x4e6360(0xfd0)]){_0x4e4e04[_0x4e6360(0x1a7c)]=_0x62395f[_0x4e6360(0x25c)][_0x4e6360(0x1a7c)]||[{'message':_0x62395f[_0x4e6360(0x147f)](),'type':_0x4e6360(0x25e7)}];for(let _0x23b456=0x0;_0x23b456<_0x62395f[_0x4e6360(0x25c)]['errors'][_0x4e6360(0xfd0)];_0x23b456+=0x1){_0x591793[_0x4e6360(0x218e)]({'title':_0x62395f['data']['errors'][_0x23b456][_0x4e6360(0x66a)],'msg':_0x62395f[_0x4e6360(0x25c)][_0x4e6360(0x1a7c)][_0x23b456]['message']});}}else _0x591793[_0x4e6360(0x218e)]({'title':_0x62395f[_0x4e6360(0x291)]?_0x4e6360(0xeb9)+_0x62395f[_0x4e6360(0x291)]+_0x4e6360(0x1657)+_0x62395f[_0x4e6360(0xc22)]:_0x4e6360(0x25e7),'msg':_0x62395f[_0x4e6360(0x25c)]?JSON[_0x4e6360(0x2701)](_0x62395f[_0x4e6360(0x25c)][_0x4e6360(0x155e)]):_0x62395f[_0x4e6360(0x147f)]()});});}function _0x561d48(){const _0x5d4f6e=_0xf1ad10;_0x4e4e04['errors']=[],_0x397dec[_0x5d4f6e(0x18d4)][_0x5d4f6e(0x687)]({'id':_0x4e4e04['voicemail']['id']},_0x4e4e04[_0x5d4f6e(0xd66)])['$promise'][_0x5d4f6e(0x1cb0)](function(_0x248b54){const _0x210626=_0x5d4f6e,_0x3155e2=_0x39641b()[_0x210626(0x13b4)](_0x4e4e04['voicemails'],{'id':_0x248b54['id']});_0x3155e2&&_0x39641b()[_0x210626(0x9c1)](_0x3155e2,_0x39641b()[_0x210626(0x169b)](_0x248b54[_0x210626(0x19b2)](),_0x39641b()['keys'](_0x3155e2))),_0x591793[_0x210626(0x829)]({'title':_0x210626(0x1943),'msg':_0x4e4e04[_0x210626(0xd66)][_0x210626(0x16b6)]?_0x4e4e04[_0x210626(0xd66)][_0x210626(0x16b6)]+_0x210626(0xedb):''}),_0x309e6a(_0x248b54);})['catch'](function(_0x2abdbd){const _0x1ac04f=_0x5d4f6e;if(_0x2abdbd[_0x1ac04f(0x25c)]&&_0x2abdbd[_0x1ac04f(0x25c)][_0x1ac04f(0x1a7c)]&&_0x2abdbd[_0x1ac04f(0x25c)][_0x1ac04f(0x1a7c)][_0x1ac04f(0xfd0)]){_0x4e4e04[_0x1ac04f(0x1a7c)]=_0x2abdbd[_0x1ac04f(0x25c)][_0x1ac04f(0x1a7c)]||[{'message':_0x2abdbd[_0x1ac04f(0x147f)](),'type':'api.voiceMail.update'}];for(let _0x170451=0x0;_0x170451<_0x2abdbd[_0x1ac04f(0x25c)][_0x1ac04f(0x1a7c)][_0x1ac04f(0xfd0)];_0x170451++){_0x591793['error']({'title':_0x2abdbd[_0x1ac04f(0x25c)][_0x1ac04f(0x1a7c)][_0x170451][_0x1ac04f(0x66a)],'msg':_0x2abdbd['data']['errors'][_0x170451][_0x1ac04f(0x155e)]});}}else _0x591793[_0x1ac04f(0x218e)]({'title':_0x2abdbd['status']?_0x1ac04f(0xeb9)+_0x2abdbd['status']+'\x20-\x20'+_0x2abdbd[_0x1ac04f(0xc22)]:_0x1ac04f(0x1023),'msg':_0x2abdbd[_0x1ac04f(0x25c)]?JSON[_0x1ac04f(0x2701)](_0x2abdbd['data'][_0x1ac04f(0x155e)]):_0x2abdbd['toString']()});});}function _0x1f3d33(_0x2e9427){const _0x16a04c=_0xf1ad10;_0x4e4e04[_0x16a04c(0x1a7c)]=[];const _0x2cc98b=_0x535c73['confirm']()[_0x16a04c(0x1386)]('Are\x20you\x20sure?')[_0x16a04c(0x862)](_0x16a04c(0x13e6))[_0x16a04c(0x15ad)]('Delete\x20Voicemail')['ok'](_0x16a04c(0x2594))[_0x16a04c(0x696)](_0x16a04c(0xde1))[_0x16a04c(0x728)](_0x2e9427);_0x535c73['show'](_0x2cc98b)[_0x16a04c(0x1cb0)](function(){const _0xcc8204=_0x16a04c;_0x397dec[_0xcc8204(0x18d4)][_0xcc8204(0x111d)]({'id':_0x4e4e04[_0xcc8204(0xd66)]['id']})[_0xcc8204(0x1d77)]['then'](function(){const _0x27fd62=_0xcc8204;_0x39641b()[_0x27fd62(0x152a)](_0x4e4e04['voicemails'],{'id':_0x4e4e04[_0x27fd62(0xd66)]['id']}),_0x591793[_0x27fd62(0x829)]({'title':_0x27fd62(0xe43),'msg':(_0x4e4e04[_0x27fd62(0xd66)][_0x27fd62(0x16b6)]||'voicemail')+_0x27fd62(0x3f5)}),_0x309e6a(_0x4e4e04[_0x27fd62(0xd66)]);})[_0xcc8204(0x1c4)](function(_0x1a31d9){const _0xf793c9=_0xcc8204;if(_0x1a31d9[_0xf793c9(0x25c)]&&_0x1a31d9[_0xf793c9(0x25c)][_0xf793c9(0x1a7c)]&&_0x1a31d9[_0xf793c9(0x25c)]['errors'][_0xf793c9(0xfd0)]){_0x4e4e04['errors']=_0x1a31d9[_0xf793c9(0x25c)]['errors']||[{'message':_0x1a31d9['toString'](),'type':_0xf793c9(0x22ba)}];for(let _0x750eee=0x0;_0x750eee<_0x1a31d9[_0xf793c9(0x25c)][_0xf793c9(0x1a7c)][_0xf793c9(0xfd0)];_0x750eee++){_0x591793['error']({'title':_0x1a31d9['data'][_0xf793c9(0x1a7c)][_0x750eee][_0xf793c9(0x66a)],'msg':_0x1a31d9[_0xf793c9(0x25c)]['errors'][_0x750eee][_0xf793c9(0x155e)]});}}else _0x591793[_0xf793c9(0x218e)]({'title':_0x1a31d9['status']?_0xf793c9(0xeb9)+_0x1a31d9[_0xf793c9(0x291)]+_0xf793c9(0x1657)+_0x1a31d9['statusText']:_0xf793c9(0x22ba),'msg':_0x1a31d9['data']?JSON['stringify'](_0x1a31d9['data']['message']):_0x1a31d9[_0xf793c9(0x155e)]||_0x1a31d9[_0xf793c9(0x147f)]()});});},function(){});}function _0x293dcd(_0xf18e21){return _0xf18e21===null?undefined:new Date(_0xf18e21);}function _0x309e6a(_0x53d79b){const _0x27388e=_0xf1ad10;_0x535c73[_0x27388e(0x1426)](_0x53d79b);}}const _0x413fca=_0x4123b3;;_0x13f2e0[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),'$scope',_0x5537c6(0x406),'$q',_0x5537c6(0x1ae),_0x5537c6(0x2168),'$mdDialog','$document',_0x5537c6(0x9bf),_0x5537c6(0x142b),'Auth'];function _0x13f2e0(_0x4f8818,_0x2611e9,_0x4541c3,_0x29f78a,_0xb097f4,_0x540b80,_0x53e14e,_0x384d9b,_0x5383d4,_0x4afe3e,_0x269e5e){const _0x41b0d7=_0x5537c6,_0x2f1fc0=this;_0x2f1fc0[_0x41b0d7(0xe76)]=_0x269e5e[_0x41b0d7(0x21e8)](),_0x2f1fc0[_0x41b0d7(0xd66)]={},_0x2f1fc0['voicemailMessages']={'count':0x0,'rows':[]},_0x2f1fc0['selectedVoicemailMessages']=[],_0x2f1fc0[_0x41b0d7(0x1b1a)],_0x2f1fc0[_0x41b0d7(0xae2)]={'fields':_0x41b0d7(0x1344),'sort':_0x41b0d7(0x1f6d),'limit':0xa,'page':0x1},_0x2f1fc0['init']=_0x7b67dd,_0x2f1fc0['deleteConfirm']=_0x45184f,_0x2f1fc0[_0x41b0d7(0x1104)]=_0x708e97,_0x2f1fc0['success']=_0x44f3a2,_0x2f1fc0[_0x41b0d7(0x25c7)]=_0x57471c,_0x2f1fc0['exportSelectedVoicemailMessages']=_0x59f8f0,_0x2f1fc0[_0x41b0d7(0xc4c)]=_0x100387,_0x2f1fc0['deleteSelectedVoicemailMessages']=_0x6bd240;function _0x7b67dd(_0x88142e,_0x36146){const _0x2b55f6=_0x41b0d7;_0x2f1fc0['voicemail']=_0x88142e,_0x2f1fc0['crudPermissions']=typeof _0x36146!==_0x2b55f6(0x16b5)?_0x36146:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2f1fc0[_0x2b55f6(0xae2)]['id']=_0x2f1fc0[_0x2b55f6(0xd66)]['id'],_0x57471c();}function _0x708e97(_0x48d314,_0x58811c,_0x3865e6){const _0x438af9=_0x41b0d7;return _0x4afe3e[_0x438af9(0x28b4)][_0x438af9(0x26ec)]({'id':_0x48d314['id'],'exists':!![],'attachments':_0x3865e6})[_0x438af9(0x1d77)][_0x438af9(0x1cb0)](function(_0x399eac){const _0x53f8bc=_0x438af9,_0x4ef259=[_0x399eac[_0x53f8bc(0xef0)]];let _0x20a65a=_0x53f8bc(0x155e)+_0x48d314['id'];const _0xe92f51=new Blob(_0x4ef259,{'type':_0x399eac['type']});_0x20a65a=_0x48d314[_0x53f8bc(0x1018)]+'.wav';const _0x557e82=window['document'][_0x53f8bc(0x8c6)]('a');_0x557e82[_0x53f8bc(0x23b9)]('href',URL[_0x53f8bc(0x2247)](_0xe92f51)),_0x557e82[_0x53f8bc(0x23b9)](_0x53f8bc(0x26ec),_0x20a65a),document[_0x53f8bc(0x1ed9)][_0x53f8bc(0x23de)](_0x557e82),_0x557e82[_0x53f8bc(0x20b8)]();})[_0x438af9(0x1c4)](function(_0x4c96ec){const _0x3e48aa=_0x438af9;if(_0x4c96ec[_0x3e48aa(0x25c)]&&_0x4c96ec[_0x3e48aa(0x25c)]['errors']&&_0x4c96ec['data'][_0x3e48aa(0x1a7c)][_0x3e48aa(0xfd0)])for(let _0x1bf339=0x0;_0x1bf339<_0x4c96ec[_0x3e48aa(0x25c)][_0x3e48aa(0x1a7c)][_0x3e48aa(0xfd0)];_0x1bf339+=0x1){_0x5383d4[_0x3e48aa(0x218e)]({'title':_0x4c96ec[_0x3e48aa(0x25c)][_0x3e48aa(0x1a7c)][_0x1bf339][_0x3e48aa(0x66a)],'msg':_0x4c96ec[_0x3e48aa(0x25c)]['errors'][_0x1bf339][_0x3e48aa(0x155e)]});}else _0x5383d4[_0x3e48aa(0x218e)]({'title':_0x4c96ec[_0x3e48aa(0x291)]?_0x3e48aa(0xeb9)+_0x4c96ec[_0x3e48aa(0x291)]+_0x3e48aa(0x1657)+_0x4c96ec[_0x3e48aa(0xc22)]:'api.voiceMail.save','msg':_0x4c96ec['data']?JSON[_0x3e48aa(0x2701)](_0x4c96ec['data']['message']):_0x4c96ec['toString']()});});}function _0x45184f(_0x3c7f3c,_0x5ade6e){const _0x49541f=_0x41b0d7,_0x10971d=_0x53e14e[_0x49541f(0x1551)]()['title'](_0x49541f(0xe50))[_0x49541f(0x49e)](_0x49541f(0x204d)+(_0x3c7f3c['name']||_0x3c7f3c['id']&&_0x39641b()[_0x49541f(0x277)](_0x49541f(0x2936))+_0x3c7f3c['id']||_0x49541f(0x155e))+_0x49541f(0x1200)+_0x49541f(0x1b6))[_0x49541f(0x15ad)](_0x49541f(0x141d))[_0x49541f(0x728)](_0x5ade6e)['ok']('OK')[_0x49541f(0x696)](_0x49541f(0x24ba));_0x53e14e[_0x49541f(0xe27)](_0x10971d)[_0x49541f(0x1cb0)](function(){_0x100387(_0x3c7f3c);},function(){const _0x16a1d5=_0x49541f;console[_0x16a1d5(0x1b4f)](_0x16a1d5(0x24ba));});}function _0x44f3a2(_0x1a6b92){const _0x52a57b=_0x41b0d7;_0x2f1fc0[_0x52a57b(0x24f6)]=_0x1a6b92||{'count':0x0,'rows':[]};}function _0x57471c(){const _0x2f8f8b=_0x41b0d7;_0x2f1fc0[_0x2f8f8b(0xae2)][_0x2f8f8b(0x184b)]=(_0x2f1fc0['query'][_0x2f8f8b(0x1c7b)]-0x1)*_0x2f1fc0[_0x2f8f8b(0xae2)]['limit'],_0x2f1fc0[_0x2f8f8b(0x2061)]=_0x4afe3e[_0x2f8f8b(0x18d4)]['getMessages'](_0x2f1fc0[_0x2f8f8b(0xae2)],_0x44f3a2)[_0x2f8f8b(0x1d77)];}function _0x100387(_0x2b7705){const _0x7915c4=_0x41b0d7;_0x4afe3e[_0x7915c4(0x28b4)]['delete']({'id':_0x2b7705['id']})[_0x7915c4(0x1d77)][_0x7915c4(0x1cb0)](function(){const _0xd0673f=_0x7915c4;_0x39641b()['remove'](_0x2f1fc0[_0xd0673f(0x24f6)][_0xd0673f(0x2214)],{'id':_0x2b7705['id']}),_0x2f1fc0['voicemailMessages'][_0xd0673f(0x184d)]-=0x1,!_0x2f1fc0['voicemailMessages'][_0xd0673f(0x2214)][_0xd0673f(0xfd0)]&&_0x57471c(),_0x5383d4[_0xd0673f(0x829)]({'title':_0xd0673f(0x6a1),'msg':_0x2b7705['name']?_0x2b7705[_0xd0673f(0x16b6)]+_0xd0673f(0x3f5):''});})[_0x7915c4(0x1c4)](function(_0x27e043){const _0x38ae93=_0x7915c4;if(_0x27e043[_0x38ae93(0x25c)]&&_0x27e043['data'][_0x38ae93(0x1a7c)]&&_0x27e043[_0x38ae93(0x25c)][_0x38ae93(0x1a7c)][_0x38ae93(0xfd0)]){_0x2f1fc0[_0x38ae93(0x1a7c)]=_0x27e043[_0x38ae93(0x25c)]['errors']||[{'message':_0x27e043[_0x38ae93(0x147f)](),'type':_0x38ae93(0x195a)}];for(let _0x37f084=0x0;_0x37f084<_0x27e043[_0x38ae93(0x25c)][_0x38ae93(0x1a7c)][_0x38ae93(0xfd0)];_0x37f084++){_0x5383d4[_0x38ae93(0x218e)]({'title':_0x27e043['data']['errors'][_0x37f084][_0x38ae93(0x66a)],'msg':_0x27e043['data'][_0x38ae93(0x1a7c)][_0x37f084][_0x38ae93(0x155e)]});}}else _0x5383d4[_0x38ae93(0x218e)]({'title':_0x27e043['status']?_0x38ae93(0xeb9)+_0x27e043['status']+'\x20-\x20'+_0x27e043[_0x38ae93(0xc22)]:_0x38ae93(0x195a),'msg':_0x27e043[_0x38ae93(0x25c)]?JSON[_0x38ae93(0x2701)](_0x27e043[_0x38ae93(0x25c)]['message']):_0x27e043['message']||_0x27e043[_0x38ae93(0x147f)]()});});}function _0x59f8f0(){const _0x204dbc=_0x41b0d7,_0x530e68=angular[_0x204dbc(0x17fe)](_0x2f1fc0[_0x204dbc(0xaa4)]);return _0x2f1fc0['selectedVoicemailMessages']=[],_0x530e68;}function _0x6bd240(_0x36bb95){const _0x3778e6=_0x41b0d7,_0x19ab82=_0x53e14e[_0x3778e6(0x1551)]()['title'](_0x3778e6(0x136c))['htmlContent'](''+_0x2f1fc0[_0x3778e6(0xaa4)][_0x3778e6(0xfd0)]+'\x20selected'+_0x3778e6(0x1b6))[_0x3778e6(0x15ad)](_0x3778e6(0x8c5))[_0x3778e6(0x728)](_0x36bb95)['ok']('OK')['cancel'](_0x3778e6(0x24ba));_0x53e14e[_0x3778e6(0xe27)](_0x19ab82)[_0x3778e6(0x1cb0)](function(){_0x2f1fc0['selectedVoicemailMessages']['forEach'](function(_0x4217e5){_0x100387(_0x4217e5);}),_0x2f1fc0['selectedVoicemailMessages']=[];});}let _0x16b005=!![],_0x34aefb=0x1;_0x2611e9[_0x41b0d7(0x614)](_0x41b0d7(0xeb6),function(_0x4b8fee,_0x4db7a5){const _0x5c5902=_0x41b0d7;_0x16b005?_0x540b80(function(){_0x16b005=![];}):(!_0x4db7a5&&(_0x34aefb=_0x2f1fc0[_0x5c5902(0xae2)][_0x5c5902(0x1c7b)]),_0x4b8fee!==_0x4db7a5&&(_0x2f1fc0[_0x5c5902(0xae2)][_0x5c5902(0x1c7b)]=0x1),!_0x4b8fee&&(_0x2f1fc0[_0x5c5902(0xae2)]['page']=_0x34aefb),_0x57471c());});}const _0x50e593=_0x13f2e0;;_0x3c0c85[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'$translate',_0x5537c6(0x8a5),_0x5537c6(0x9ca),'api','toasty','Auth','voicemail',_0x5537c6(0x2199)];function _0x3c0c85(_0x100578,_0xad2b2,_0x16bd99,_0x15fdcc,_0x18f858,_0x24bd04,_0xc19aba,_0x590553,_0x11de2f,_0x2bb79c,_0x3d284a,_0x2473ba){const _0x124175=_0x5537c6,_0x929b78=this;_0x929b78[_0x124175(0xe76)]=_0x2bb79c[_0x124175(0x21e8)](),_0x929b78['license']=_0x24bd04,_0x929b78[_0x124175(0x9ca)]=_0xc19aba,_0x929b78['passwordPattern']=_0x929b78[_0x124175(0x9ca)][_0x124175(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x929b78['location']=_0xad2b2[_0x124175(0x2276)]()+_0x124175(0x138b)+_0xad2b2[_0x124175(0x17d8)](),_0x929b78['voicemail']=_0x3d284a||_0x100578[_0x124175(0x1dfe)]['voicemail']||{},_0x929b78[_0x124175(0x2199)]=_0x2473ba&&_0x2473ba[_0x124175(0x184d)]==0x1?_0x2473ba[_0x124175(0x2214)][0x0]:null,_0x929b78[_0x124175(0x1b1a)]=_0x2bb79c['parseCrudPermissions'](_0x929b78[_0x124175(0x2199)]?_0x929b78['userProfileSection'][_0x124175(0x1b1a)]:null),_0x929b78[_0x124175(0xf4c)]={},_0x929b78[_0x124175(0x8ec)]=_0x100578[_0x124175(0x1dfe)][_0x124175(0x291e)]||0x0,_0x929b78['alert']=_0x11de2f[_0x124175(0x28c7)],_0x929b78[_0x124175(0x1431)]=_0x21798c,_0x929b78[_0x124175(0x1be6)]=_0x1c29c3,_0x2bb79c[_0x124175(0x22b6)]('admin')?_0x590553[_0x124175(0x1da5)][_0x124175(0xbf7)]({'fields':_0x124175(0x43c),'sort':_0x124175(0x16b6)})[_0x124175(0x1d77)]['then'](function(_0x995204){const _0x20985d=_0x124175;_0x929b78['contexts']=_0x995204[_0x20985d(0x2214)]||[];})['catch'](function(_0x203a8c){const _0x435101=_0x124175;_0x11de2f['error']({'title':_0x203a8c[_0x435101(0x291)]?_0x435101(0xeb9)+_0x203a8c[_0x435101(0x291)]+_0x435101(0x1657)+_0x203a8c[_0x435101(0xc22)]:_0x435101(0x2072),'msg':_0x203a8c[_0x435101(0x25c)]?JSON['stringify'](_0x203a8c[_0x435101(0x25c)]):_0x203a8c['toString']()});}):_0x590553['voiceContext'][_0x124175(0xbf7)]({'fields':_0x124175(0x43c),'sort':_0x124175(0x16b6)})[_0x124175(0x1d77)][_0x124175(0x1cb0)](function(_0x893959){const _0x486ec1=_0x124175;_0x929b78[_0x486ec1(0x14f6)]=_0x893959[_0x486ec1(0x2214)]||[];})['then'](function(){const _0x4a9d46=_0x124175;return _0x590553['userProfileSection']['get']({'userProfileId':_0x929b78[_0x4a9d46(0xe76)][_0x4a9d46(0x13c1)],'sectionId':0x195})[_0x4a9d46(0x1d77)];})[_0x124175(0x1cb0)](function(_0x329804){const _0x233554=_0x124175,_0x3da8cd=_0x329804&&_0x329804[_0x233554(0x2214)]?_0x329804[_0x233554(0x2214)][0x0]:null;if(!_0x3da8cd)return _0x590553[_0x233554(0x1da5)][_0x233554(0xbf7)]({'fields':'id,name','sort':_0x233554(0x16b6),'defaultEntry':0x1})[_0x233554(0x1d77)][_0x233554(0x1cb0)](function(_0x315096){const _0x30dca6=_0x233554;_0x929b78[_0x30dca6(0x14f6)]=_0x315096[_0x30dca6(0x2214)]||[];});else{if(!_0x3da8cd[_0x233554(0x12f4)])return _0x590553[_0x233554(0x1198)][_0x233554(0xbf7)]({'sectionId':_0x3da8cd['id']})[_0x233554(0x1d77)][_0x233554(0x1cb0)](function(_0xf918f5){const _0x56e1e2=_0x233554,_0x62abbf=_0x39641b()[_0x56e1e2(0x1de2)](_0xf918f5[_0x56e1e2(0x2214)],function(_0x56fd1d){const _0x5a3029=_0x56e1e2;return _0x39641b()[_0x5a3029(0x13b4)](_0x929b78[_0x5a3029(0x14f6)],{'id':_0x56fd1d[_0x5a3029(0x2982)]});});let _0x54d323=null;_0x929b78[_0x56e1e2(0xd66)]&&(_0x54d323=_0x39641b()[_0x56e1e2(0x13b4)](_0x929b78['contexts'],{'name':_0x929b78['voicemail'][_0x56e1e2(0x2056)]}));if(_0x54d323&&!_0x39641b()[_0x56e1e2(0x727)](_0x62abbf,['id',_0x54d323['id']])){const _0x22d7d2=_0x39641b()[_0x56e1e2(0x13b4)](_0x929b78[_0x56e1e2(0x14f6)],{'id':_0x54d323['id']});_0x22d7d2['canSelect']=![],_0x62abbf[_0x56e1e2(0x2785)](_0x22d7d2);}_0x929b78[_0x56e1e2(0x14f6)]=_0x62abbf;});}})['catch'](function(_0x2aa9a7){const _0x29d249=_0x124175;_0x11de2f['error']({'title':_0x2aa9a7[_0x29d249(0x291)]?_0x29d249(0xeb9)+_0x2aa9a7['status']+_0x29d249(0x1657)+_0x2aa9a7[_0x29d249(0xc22)]:_0x29d249(0x5ac),'msg':_0x2aa9a7[_0x29d249(0x25c)]?JSON['stringify'](_0x2aa9a7['data']):_0x2aa9a7[_0x29d249(0x147f)]()});});function _0x21798c(){const _0x550b98=_0x124175;_0x100578['go'](_0x550b98(0x2098),{},{'reload':'app.voice.voicemails'});}function _0x1c29c3(){const _0x431df3=_0x124175;_0x590553['voiceMail'][_0x431df3(0x687)]({'id':_0x929b78[_0x431df3(0xd66)]['id']},_0x929b78[_0x431df3(0xd66)])[_0x431df3(0x1d77)][_0x431df3(0x1cb0)](function(){const _0x3518e7=_0x431df3;_0x11de2f[_0x3518e7(0x829)]({'title':_0x3518e7(0x2634),'msg':_0x929b78[_0x3518e7(0xd66)][_0x3518e7(0x16b6)]?_0x929b78[_0x3518e7(0xd66)][_0x3518e7(0x16b6)]+_0x3518e7(0x1068):''});})['catch'](function(_0x2d2572){const _0x47ea2a=_0x431df3;_0x11de2f['error']({'title':_0x2d2572[_0x47ea2a(0x291)]?_0x47ea2a(0xeb9)+_0x2d2572['status']+_0x47ea2a(0x1657)+_0x2d2572[_0x47ea2a(0xc22)]:'SYSTEM:GETvoiceMail','msg':_0x2d2572[_0x47ea2a(0x25c)]?JSON[_0x47ea2a(0x2701)](_0x2d2572['data']):_0x2d2572['toString']()});});}}const _0x2df443=_0x3c0c85;;const _0x11267f=_0x5074a3['p']+_0x5537c6(0x1197);;_0x9d5720[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x1487),_0x5537c6(0x44a),_0x5537c6(0x2199),'api',_0x5537c6(0xde8),_0x5537c6(0x9bf),'Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x9d5720(_0x14bb1b,_0x260187,_0x55b1a8,_0x458cc2,_0x52eefa,_0x5c3788,_0x398174,_0x39a360,_0x419b97,_0x3812f5,_0x420eb6,_0x1414cf,_0x1cc506,_0x2c4001,_0x3a2c41,_0x2e5ace,_0x42be3e){const _0x37793d=_0x5537c6,_0x2e229b=this;_0x2e229b['license']=_0x2e5ace,_0x2e229b[_0x37793d(0x9ca)]=_0x42be3e,_0x2e229b[_0x37793d(0xe76)]=_0x3a2c41[_0x37793d(0x21e8)](),_0x2e229b[_0x37793d(0x1487)]=_0x419b97||{'count':0x0,'rows':[]},_0x2e229b[_0x37793d(0x44a)]=_0x3812f5,_0x2e229b[_0x37793d(0x2199)]=_0x420eb6&&_0x420eb6['count']==0x1?_0x420eb6[_0x37793d(0x2214)][0x0]:null,_0x2e229b[_0x37793d(0x1b1a)]=_0x3a2c41[_0x37793d(0x14ea)](_0x2e229b['userProfileSection']?_0x2e229b[_0x37793d(0x2199)]['crudPermissions']:null),_0x2e229b[_0x37793d(0xc83)]=_0x37793d(0x1487),_0x2e229b[_0x37793d(0x1d20)]='',_0x2e229b[_0x37793d(0x1cdf)]=null,_0x2e229b[_0x37793d(0x71d)]=[],_0x2e229b['query']={'fields':_0x37793d(0x2813),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x2e229b['arrayattach']=_0x39641b()[_0x37793d(0x2631)]([{'option':'Yes','value':'\x27yes\x27'},{'option':'No','value':'\x27no\x27'}],function(_0x397b54){const _0x302273=_0x37793d;return _0x39641b()[_0x302273(0x288f)](_0x397b54[_0x302273(0x327)],new RegExp('\x27','g'),'');}),_0x2e229b[_0x37793d(0x1de4)]=_0x39641b()[_0x37793d(0x2631)]([{'option':_0x37793d(0x1ab8),'value':_0x37793d(0x27e4)},{'option':'No','value':_0x37793d(0x15b9)}],function(_0x4401bf){const _0x43080f=_0x37793d;return _0x39641b()['replace'](_0x4401bf[_0x43080f(0x327)],new RegExp('\x27','g'),'');}),_0x2e229b[_0x37793d(0x996)]=_0x39641b()[_0x37793d(0x2631)]([{'option':_0x37793d(0x1ab8),'value':_0x37793d(0x27e4)},{'option':'No','value':_0x37793d(0x15b9)}],function(_0x4880c8){const _0x42c846=_0x37793d;return _0x39641b()['replace'](_0x4880c8[_0x42c846(0x327)],new RegExp('\x27','g'),'');}),_0x2e229b[_0x37793d(0x235d)]=_0xc74339,_0x2e229b[_0x37793d(0x27fe)]=_0x443149,_0x2e229b[_0x37793d(0x829)]=_0x1f0e75,_0x2e229b['getVoicemails']=_0x9be069,_0x2e229b[_0x37793d(0x1a8c)]=_0x460099,_0x2e229b['deleteVoicemail']=_0x922dcc,_0x2e229b['exportSelectedVoicemails']=_0x3e7092,_0x2e229b[_0x37793d(0x1a80)]=_0x2dbb4e,_0x2e229b['deselectVoicemails']=_0x23169f,_0x2e229b[_0x37793d(0x1278)]=_0x37c017;function _0xc74339(_0x509faf){const _0x227a54=_0x37793d;_0x55b1a8['go'](_0x227a54(0x176c),{'id':_0x509faf['id'],'voicemail':_0x509faf,'crudPermissions':_0x2e229b['crudPermissions']});}function _0x443149(_0x59eebf,_0x3eb2d1){const _0x1053fe=_0x37793d,_0x5302fc=_0x52eefa[_0x1053fe(0x1551)]()[_0x1053fe(0x1386)](_0x1053fe(0x140b)+_0x39641b()[_0x1053fe(0xa75)](_0x1053fe(0xd66))+'?')[_0x1053fe(0x49e)](_0x1053fe(0x204d)+(_0x59eebf[_0x1053fe(0x16b6)]||_0x1053fe(0xd66))+_0x1053fe(0x1200)+_0x1053fe(0x1b6))[_0x1053fe(0x15ad)](_0x1053fe(0x637))['targetEvent'](_0x3eb2d1)['ok']('OK')[_0x1053fe(0x696)]('CANCEL');_0x52eefa[_0x1053fe(0xe27)](_0x5302fc)[_0x1053fe(0x1cb0)](function(){_0x922dcc(_0x59eebf);},function(){const _0x1c2b51=_0x1053fe;console[_0x1c2b51(0x1b4f)](_0x1c2b51(0x24ba));});}let _0x3a7961=!![],_0xd706c0=0x1;_0x14bb1b[_0x37793d(0x614)](_0x37793d(0x957),function(_0x4983a8,_0x5e7a0e){const _0x3e85c8=_0x37793d;_0x3a7961?_0x398174(function(){_0x3a7961=![];}):(!_0x5e7a0e&&(_0xd706c0=_0x2e229b[_0x3e85c8(0xae2)]['page']),_0x4983a8!==_0x5e7a0e&&(_0x2e229b[_0x3e85c8(0xae2)][_0x3e85c8(0x1c7b)]=0x1),!_0x4983a8&&(_0x2e229b[_0x3e85c8(0xae2)][_0x3e85c8(0x1c7b)]=_0xd706c0),_0x2e229b[_0x3e85c8(0x288a)]());});function _0x1f0e75(_0x42b2dd){const _0x3b9407=_0x37793d;_0x2e229b[_0x3b9407(0x1487)]=_0x42b2dd||{'count':0x0,'rows':[]};}function _0x9be069(){const _0x35c2fa=_0x37793d;_0x2e229b[_0x35c2fa(0xae2)]['offset']=(_0x2e229b[_0x35c2fa(0xae2)]['page']-0x1)*_0x2e229b[_0x35c2fa(0xae2)][_0x35c2fa(0x236)],_0x3a2c41[_0x35c2fa(0x22b6)]('admin')?_0x2e229b[_0x35c2fa(0x2061)]=_0x1414cf[_0x35c2fa(0x18d4)]['get'](_0x2e229b[_0x35c2fa(0xae2)],_0x1f0e75)['$promise']:(_0x2e229b[_0x35c2fa(0xae2)]['id']=_0x2e229b['userProfile']['id'],_0x2e229b[_0x35c2fa(0xae2)]['section']=_0x35c2fa(0x317),_0x2e229b[_0x35c2fa(0x2061)]=_0x1414cf[_0x35c2fa(0x44a)]['getResources'](_0x2e229b[_0x35c2fa(0xae2)],_0x1f0e75)[_0x35c2fa(0x1d77)]);}function _0x460099(_0x23bd77,_0x4d8546){const _0x5b4b01=_0x37793d;_0x52eefa[_0x5b4b01(0xe27)]({'controller':'CreateOrEditVoicemailDialogController','controllerAs':'vm','templateUrl':_0x11267f,'parent':angular['element'](_0x5c3788[_0x5b4b01(0x1ed9)]),'targetEvent':_0x23bd77,'clickOutsideToClose':!![],'locals':{'voicemail':_0x4d8546,'voicemails':_0x2e229b[_0x5b4b01(0x1487)][_0x5b4b01(0x2214)],'license':_0x2e229b[_0x5b4b01(0x8a5)],'setting':_0x2e229b[_0x5b4b01(0x9ca)],'crudPermissions':_0x2e229b['crudPermissions']}});}function _0x922dcc(_0x5147db){const _0x2f37e8=_0x37793d;_0x1414cf[_0x2f37e8(0x18d4)][_0x2f37e8(0x111d)]({'id':_0x5147db['id']})[_0x2f37e8(0x1d77)][_0x2f37e8(0x1cb0)](function(){const _0x52dcc0=_0x2f37e8;_0x39641b()[_0x52dcc0(0x152a)](_0x2e229b[_0x52dcc0(0x1487)][_0x52dcc0(0x2214)],{'id':_0x5147db['id']}),_0x2e229b['voicemails']['count']-=0x1,!_0x2e229b[_0x52dcc0(0x1487)]['rows'][_0x52dcc0(0xfd0)]&&_0x2e229b['getVoicemails'](),_0x2c4001[_0x52dcc0(0x829)]({'title':_0x39641b()[_0x52dcc0(0xa75)]('Voicemail')+_0x52dcc0(0x2663),'msg':_0x5147db[_0x52dcc0(0x16b6)]?_0x5147db[_0x52dcc0(0x16b6)]+_0x52dcc0(0x3f5):''});})[_0x2f37e8(0x1c4)](function(_0x2ebd44){const _0x44b043=_0x2f37e8;if(_0x2ebd44[_0x44b043(0x25c)]&&_0x2ebd44['data'][_0x44b043(0x1a7c)]&&_0x2ebd44[_0x44b043(0x25c)][_0x44b043(0x1a7c)][_0x44b043(0xfd0)]){_0x2e229b['errors']=_0x2ebd44['data']['errors']||[{'message':_0x2ebd44['toString'](),'type':'SYSTEM:DELETEvoiceMail'}];for(let _0x401214=0x0;_0x401214<_0x2ebd44[_0x44b043(0x25c)][_0x44b043(0x1a7c)]['length'];_0x401214++){_0x2c4001['error']({'title':_0x2ebd44['data'][_0x44b043(0x1a7c)][_0x401214][_0x44b043(0x66a)],'msg':_0x2ebd44[_0x44b043(0x25c)][_0x44b043(0x1a7c)][_0x401214][_0x44b043(0x155e)]});}}else _0x2c4001[_0x44b043(0x218e)]({'title':_0x2ebd44['status']?_0x44b043(0xeb9)+_0x2ebd44[_0x44b043(0x291)]+_0x44b043(0x1657)+_0x2ebd44[_0x44b043(0xc22)]:_0x44b043(0x982),'msg':_0x2ebd44[_0x44b043(0x25c)]?JSON[_0x44b043(0x2701)](_0x2ebd44['data'][_0x44b043(0x155e)]):_0x2ebd44['message']||_0x2ebd44[_0x44b043(0x147f)]()});});}function _0x3e7092(){const _0x34ab2b=_0x37793d,_0x4465c6=angular[_0x34ab2b(0x17fe)](_0x2e229b['selectedVoicemails']);return _0x2e229b[_0x34ab2b(0x71d)]=[],_0x4465c6;}function _0x2dbb4e(_0x237207){const _0x5c4b4d=_0x37793d,_0x3f1516=_0x52eefa[_0x5c4b4d(0x1551)]()[_0x5c4b4d(0x1386)](_0x5c4b4d(0xb1c))[_0x5c4b4d(0x49e)](_0x5c4b4d(0x204d)+_0x2e229b[_0x5c4b4d(0x71d)][_0x5c4b4d(0xfd0)]+'\x20selected'+_0x5c4b4d(0x1b6))['ariaLabel']('delete\x20Voicemails')[_0x5c4b4d(0x728)](_0x237207)['ok']('OK')[_0x5c4b4d(0x696)](_0x5c4b4d(0x24ba));_0x52eefa[_0x5c4b4d(0xe27)](_0x3f1516)['then'](function(){const _0x213735=_0x5c4b4d;_0x2e229b[_0x213735(0x71d)][_0x213735(0xf90)](function(_0x57d19b){_0x922dcc(_0x57d19b);}),_0x2e229b[_0x213735(0x71d)]=[];});}function _0x23169f(){const _0x1efed2=_0x37793d;_0x2e229b[_0x1efed2(0x71d)]=[];}function _0x37c017(){const _0x28029b=_0x37793d;_0x2e229b['selectedVoicemails']=_0x2e229b[_0x28029b(0x1487)][_0x28029b(0x2214)];}}const _0x15cde9=_0x9d5720;;_0x5792f4[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),'voicePrefixes',_0x5537c6(0x152c),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting','crudPermissions'];function _0x5792f4(_0x13b911,_0x3e4edf,_0x3ec67a,_0x42339c,_0x36d18e,_0x178a8d,_0x2b2eba,_0x1be304,_0x222cd5,_0x9ef7b9,_0x46e469,_0x3ec704,_0x14a1e9,_0x8dd094){const _0x5cd1b6=_0x5537c6,_0x31adb6=this;_0x31adb6[_0x5cd1b6(0xe76)]=_0x46e469[_0x5cd1b6(0x21e8)](),_0x31adb6[_0x5cd1b6(0x1a7c)]=[],_0x31adb6[_0x5cd1b6(0x9ca)]=_0x14a1e9,_0x31adb6[_0x5cd1b6(0x8a5)]=_0x3ec704,_0x31adb6[_0x5cd1b6(0x1b1a)]=_0x8dd094,_0x31adb6[_0x5cd1b6(0xf4c)]={},_0x31adb6[_0x5cd1b6(0x1b0c)]=_0x31adb6['setting']&&_0x31adb6['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x31adb6['title']='VOICE.EDIT_VOICEPREFIX',_0x31adb6[_0x5cd1b6(0x152c)]=angular[_0x5cd1b6(0x17fe)](_0x222cd5),_0x31adb6[_0x5cd1b6(0xf46)]=_0x1be304,_0x31adb6[_0x5cd1b6(0x3ff)]=![];!_0x31adb6[_0x5cd1b6(0x152c)]&&(_0x31adb6['voicePrefix']={},_0x31adb6[_0x5cd1b6(0x1386)]=_0x5cd1b6(0x28bc),_0x31adb6[_0x5cd1b6(0x3ff)]=!![]);_0x31adb6[_0x5cd1b6(0x1ea2)]=_0x5cee69,_0x31adb6[_0x5cd1b6(0x994)]=_0x660fd1,_0x31adb6[_0x5cd1b6(0xc0e)]=_0x4f9d86,_0x31adb6['getDateFromString']=_0x18f3ac,_0x31adb6[_0x5cd1b6(0xda0)]=_0x5927a5,_0x46e469[_0x5cd1b6(0x22b6)](_0x5cd1b6(0x1c60))?_0x9ef7b9[_0x5cd1b6(0x1059)][_0x5cd1b6(0xbf7)]({'fields':_0x5cd1b6(0x286f),'type':_0x5cd1b6(0x895),'VoiceExtensionId':_0x5cd1b6(0xd38),'nolimit':_0x5cd1b6(0x44d)})[_0x5cd1b6(0x1d77)][_0x5cd1b6(0x1cb0)](function(_0x348844){_0x31adb6['outboundRoutes']=_0x348844['rows']||[];})[_0x5cd1b6(0x1c4)](function(_0x537a52){const _0x47dc5a=_0x5cd1b6;_0x2b2eba[_0x47dc5a(0x218e)]({'title':_0x537a52[_0x47dc5a(0x291)]?_0x47dc5a(0xeb9)+_0x537a52[_0x47dc5a(0x291)]+_0x47dc5a(0x1657)+_0x537a52[_0x47dc5a(0xc22)]:_0x47dc5a(0x25ea),'msg':_0x537a52[_0x47dc5a(0x25c)]?JSON[_0x47dc5a(0x2701)](_0x537a52[_0x47dc5a(0x25c)]):_0x537a52[_0x47dc5a(0x147f)]()});}):_0x9ef7b9[_0x5cd1b6(0x1059)][_0x5cd1b6(0xbf7)]({'fields':'id,exten','type':_0x5cd1b6(0x895),'VoiceExtensionId':_0x5cd1b6(0xd38),'nolimit':_0x5cd1b6(0x44d)})['$promise'][_0x5cd1b6(0x1cb0)](function(_0x1a2622){const _0x32def5=_0x5cd1b6;_0x31adb6[_0x32def5(0xe57)]=_0x1a2622[_0x32def5(0x2214)]||[];})[_0x5cd1b6(0x1cb0)](function(){const _0x431020=_0x5cd1b6;return _0x9ef7b9['userProfileSection'][_0x431020(0xbf7)]({'userProfileId':_0x31adb6['currentUser'][_0x431020(0x13c1)],'sectionId':0x193})[_0x431020(0x1d77)];})[_0x5cd1b6(0x1cb0)](function(_0x2c124e){const _0x24a831=_0x5cd1b6,_0x52f91f=_0x2c124e&&_0x2c124e[_0x24a831(0x2214)]?_0x2c124e[_0x24a831(0x2214)][0x0]:null;if(!_0x52f91f){const _0x232ba6=[];let _0x4b07ed=null;_0x31adb6[_0x24a831(0x152c)]&&(_0x4b07ed=_0x39641b()[_0x24a831(0x13b4)](_0x31adb6['outboundRoutes'],{'id':Number(_0x31adb6[_0x24a831(0x152c)]['VoiceExtensionId'])}));for(let _0x56c194=0x0;_0x56c194<_0x31adb6[_0x24a831(0xe57)][_0x24a831(0xfd0)];_0x56c194++){_0x4b07ed&&_0x31adb6[_0x24a831(0xe57)][_0x56c194]['id']===_0x4b07ed['id']&&(_0x31adb6[_0x24a831(0xe57)][_0x56c194][_0x24a831(0x15da)]=![],_0x232ba6[_0x24a831(0x2785)](_0x31adb6['outboundRoutes'][_0x56c194]));}_0x31adb6[_0x24a831(0xe57)]=_0x232ba6;}else{if(!_0x52f91f[_0x24a831(0x12f4)])return _0x9ef7b9[_0x24a831(0x1198)][_0x24a831(0xbf7)]({'sectionId':_0x52f91f['id']})[_0x24a831(0x1d77)]['then'](function(_0x4efdaa){const _0x3fb7f8=_0x24a831,_0xc89b1d=_0x39641b()['map'](_0x4efdaa[_0x3fb7f8(0x2214)],function(_0x15bd76){const _0xe30abb=_0x3fb7f8;return _0x39641b()['find'](_0x31adb6[_0xe30abb(0xe57)],{'id':_0x15bd76['resourceId']});});let _0x100dba=null;_0x31adb6[_0x3fb7f8(0x152c)]&&(_0x100dba=_0x39641b()[_0x3fb7f8(0x13b4)](_0x31adb6[_0x3fb7f8(0xe57)],{'id':Number(_0x31adb6['voicePrefix'][_0x3fb7f8(0x1cc7)])}));if(_0x100dba&&!_0x39641b()['some'](_0xc89b1d,['id',_0x100dba['id']])){const _0x571fac=_0x39641b()['find'](_0x31adb6[_0x3fb7f8(0xe57)],{'id':_0x100dba['id']});_0x571fac['canSelect']=![],_0xc89b1d['push'](_0x571fac);}_0x31adb6[_0x3fb7f8(0xe57)]=_0xc89b1d;});}})[_0x5cd1b6(0x1c4)](function(_0xfc02e4){const _0x56b3b7=_0x5cd1b6;_0x2b2eba[_0x56b3b7(0x218e)]({'title':_0xfc02e4[_0x56b3b7(0x291)]?_0x56b3b7(0xeb9)+_0xfc02e4[_0x56b3b7(0x291)]+_0x56b3b7(0x1657)+_0xfc02e4[_0x56b3b7(0xc22)]:_0x56b3b7(0x15c5),'msg':_0xfc02e4[_0x56b3b7(0x25c)]?JSON['stringify'](_0xfc02e4['data']):_0xfc02e4[_0x56b3b7(0x147f)]()});});function _0x5cee69(){const _0xa08cb7=_0x5cd1b6;_0x31adb6[_0xa08cb7(0x1a7c)]=[],_0x9ef7b9[_0xa08cb7(0x152c)]['save'](_0x31adb6['voicePrefix'])[_0xa08cb7(0x1d77)][_0xa08cb7(0x1cb0)](function(_0x40ac41){const _0x3df308=_0xa08cb7;_0x31adb6['voicePrefixes'][_0x3df308(0xf63)](_0x40ac41[_0x3df308(0x19b2)]()),_0x2b2eba[_0x3df308(0x829)]({'title':'voicePrefix\x20properly\x20created','msg':_0x31adb6['voicePrefix']['name']?_0x31adb6[_0x3df308(0x152c)][_0x3df308(0x16b6)]+_0x3df308(0x470):''}),_0x5927a5(_0x40ac41);})[_0xa08cb7(0x1c4)](function(_0xcb5d6a){const _0x5e390a=_0xa08cb7;if(_0xcb5d6a[_0x5e390a(0x25c)]&&_0xcb5d6a[_0x5e390a(0x25c)]['errors']&&_0xcb5d6a[_0x5e390a(0x25c)]['errors']['length']){_0x31adb6[_0x5e390a(0x1a7c)]=_0xcb5d6a['data'][_0x5e390a(0x1a7c)]||[{'message':_0xcb5d6a['toString'](),'type':_0x5e390a(0x18d)}];for(let _0x52334a=0x0;_0x52334a<_0xcb5d6a[_0x5e390a(0x25c)][_0x5e390a(0x1a7c)][_0x5e390a(0xfd0)];_0x52334a+=0x1){_0x2b2eba[_0x5e390a(0x218e)]({'title':_0xcb5d6a['data'][_0x5e390a(0x1a7c)][_0x52334a]['type'],'msg':_0xcb5d6a[_0x5e390a(0x25c)][_0x5e390a(0x1a7c)][_0x52334a][_0x5e390a(0x155e)]});}}else _0x2b2eba[_0x5e390a(0x218e)]({'title':_0xcb5d6a[_0x5e390a(0x291)]?_0x5e390a(0xeb9)+_0xcb5d6a[_0x5e390a(0x291)]+'\x20-\x20'+_0xcb5d6a[_0x5e390a(0xc22)]:_0x5e390a(0x18d),'msg':_0xcb5d6a[_0x5e390a(0x25c)]?JSON[_0x5e390a(0x2701)](_0xcb5d6a[_0x5e390a(0x25c)]['message']):_0xcb5d6a['toString']()});});}function _0x660fd1(){const _0x547ef8=_0x5cd1b6;_0x31adb6[_0x547ef8(0x1a7c)]=[],_0x9ef7b9[_0x547ef8(0x152c)][_0x547ef8(0x687)]({'id':_0x31adb6[_0x547ef8(0x152c)]['id']},_0x31adb6[_0x547ef8(0x152c)])['$promise'][_0x547ef8(0x1cb0)](function(_0x59d83f){const _0x560056=_0x547ef8,_0x42aa07=_0x39641b()[_0x560056(0x13b4)](_0x31adb6[_0x560056(0xf46)],{'id':_0x59d83f['id']});_0x42aa07&&_0x39641b()['merge'](_0x42aa07,_0x39641b()['pick'](_0x59d83f['toJSON'](),_0x39641b()[_0x560056(0x1be5)](_0x42aa07))),_0x2b2eba[_0x560056(0x829)]({'title':_0x560056(0x38b),'msg':_0x31adb6[_0x560056(0x152c)][_0x560056(0x16b6)]?_0x31adb6[_0x560056(0x152c)][_0x560056(0x16b6)]+_0x560056(0xedb):''}),_0x5927a5(_0x59d83f);})['catch'](function(_0x386a14){const _0x3fa13b=_0x547ef8;if(_0x386a14[_0x3fa13b(0x25c)]&&_0x386a14[_0x3fa13b(0x25c)]['errors']&&_0x386a14['data'][_0x3fa13b(0x1a7c)][_0x3fa13b(0xfd0)]){_0x31adb6['errors']=_0x386a14[_0x3fa13b(0x25c)][_0x3fa13b(0x1a7c)]||[{'message':_0x386a14['toString'](),'type':'api.voicePrefix.update'}];for(let _0x5838b3=0x0;_0x5838b3<_0x386a14[_0x3fa13b(0x25c)][_0x3fa13b(0x1a7c)][_0x3fa13b(0xfd0)];_0x5838b3++){_0x2b2eba[_0x3fa13b(0x218e)]({'title':_0x386a14[_0x3fa13b(0x25c)][_0x3fa13b(0x1a7c)][_0x5838b3][_0x3fa13b(0x66a)],'msg':_0x386a14[_0x3fa13b(0x25c)][_0x3fa13b(0x1a7c)][_0x5838b3][_0x3fa13b(0x155e)]});}}else _0x2b2eba[_0x3fa13b(0x218e)]({'title':_0x386a14[_0x3fa13b(0x291)]?_0x3fa13b(0xeb9)+_0x386a14[_0x3fa13b(0x291)]+'\x20-\x20'+_0x386a14[_0x3fa13b(0xc22)]:_0x3fa13b(0x2097),'msg':_0x386a14[_0x3fa13b(0x25c)]?JSON[_0x3fa13b(0x2701)](_0x386a14[_0x3fa13b(0x25c)][_0x3fa13b(0x155e)]):_0x386a14[_0x3fa13b(0x147f)]()});});}function _0x4f9d86(_0x1965e0){const _0x50b061=_0x5cd1b6;_0x31adb6['errors']=[];const _0x4b63a2=_0x42339c[_0x50b061(0x1551)]()[_0x50b061(0x1386)](_0x50b061(0x1a2e))[_0x50b061(0x862)](_0x50b061(0x1c5b))['ariaLabel'](_0x50b061(0x1455))['ok'](_0x50b061(0x2594))[_0x50b061(0x696)]('Cancel')['targetEvent'](_0x1965e0);_0x42339c[_0x50b061(0xe27)](_0x4b63a2)[_0x50b061(0x1cb0)](function(){const _0x25909b=_0x50b061;_0x9ef7b9[_0x25909b(0x152c)][_0x25909b(0x111d)]({'id':_0x31adb6[_0x25909b(0x152c)]['id']})[_0x25909b(0x1d77)][_0x25909b(0x1cb0)](function(){const _0x507df8=_0x25909b;_0x39641b()[_0x507df8(0x152a)](_0x31adb6['voicePrefixes'],{'id':_0x31adb6[_0x507df8(0x152c)]['id']}),_0x2b2eba['success']({'title':_0x507df8(0x659),'msg':(_0x31adb6['voicePrefix']['name']||'voicePrefix')+_0x507df8(0x3f5)}),_0x5927a5(_0x31adb6[_0x507df8(0x152c)]);})[_0x25909b(0x1c4)](function(_0x213041){const _0x4f33cd=_0x25909b;if(_0x213041[_0x4f33cd(0x25c)]&&_0x213041['data'][_0x4f33cd(0x1a7c)]&&_0x213041[_0x4f33cd(0x25c)]['errors'][_0x4f33cd(0xfd0)]){_0x31adb6[_0x4f33cd(0x1a7c)]=_0x213041[_0x4f33cd(0x25c)][_0x4f33cd(0x1a7c)]||[{'message':_0x213041[_0x4f33cd(0x147f)](),'type':_0x4f33cd(0x18f4)}];for(let _0x555cda=0x0;_0x555cda<_0x213041[_0x4f33cd(0x25c)][_0x4f33cd(0x1a7c)][_0x4f33cd(0xfd0)];_0x555cda++){_0x2b2eba[_0x4f33cd(0x218e)]({'title':_0x213041[_0x4f33cd(0x25c)][_0x4f33cd(0x1a7c)][_0x555cda]['type'],'msg':_0x213041[_0x4f33cd(0x25c)][_0x4f33cd(0x1a7c)][_0x555cda]['message']});}}else _0x2b2eba[_0x4f33cd(0x218e)]({'title':_0x213041[_0x4f33cd(0x291)]?'API:'+_0x213041[_0x4f33cd(0x291)]+_0x4f33cd(0x1657)+_0x213041[_0x4f33cd(0xc22)]:_0x4f33cd(0x18f4),'msg':_0x213041[_0x4f33cd(0x25c)]?JSON[_0x4f33cd(0x2701)](_0x213041['data'][_0x4f33cd(0x155e)]):_0x213041[_0x4f33cd(0x155e)]||_0x213041[_0x4f33cd(0x147f)]()});});},function(){});}function _0x18f3ac(_0x2432da){return _0x2432da===null?undefined:new Date(_0x2432da);}function _0x5927a5(_0x498f5e){const _0x11cedc=_0x5cd1b6;_0x42339c[_0x11cedc(0x1426)](_0x498f5e);}}const _0x469560=_0x5792f4;;_0x334167[_0x5537c6(0x15b6)]=['$mdDialog','$q','toasty','api',_0x5537c6(0x152c),_0x5537c6(0xf46),_0x5537c6(0x217b),_0x5537c6(0x1ae),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x334167(_0x2e29dd,_0x8f634e,_0x12f8f8,_0x26437e,_0x510062,_0x5e3859,_0x586379,_0x1ef3cc,_0x5a87ec,_0x321774){const _0x3fad4b=_0x5537c6,_0x25421c=this;_0x25421c['currentUser']=_0x5a87ec[_0x3fad4b(0x21e8)](),_0x25421c[_0x3fad4b(0x152c)]=_0x510062,_0x25421c['crudPermissions']=_0x321774,_0x25421c['realtime']=_0x586379,_0x25421c[_0x3fad4b(0x122f)]=[],_0x25421c[_0x3fad4b(0x1372)]=[],_0x25421c['selectedItems']=[],_0x25421c[_0x3fad4b(0xbd5)]=[],_0x25421c[_0x3fad4b(0x1456)]=[],_0x25421c[_0x3fad4b(0x50c)]=![],_0x25421c['onInit']=_0x5077f9,_0x25421c[_0x3fad4b(0x1dd5)]=_0x15366c,_0x25421c[_0x3fad4b(0xda0)]=_0x52db24,_0x25421c['dualMultiselectOptions']={'readOnly':!_0x25421c['crudPermissions'][_0x3fad4b(0xb3d)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x3fad4b(0x16b6),'line1':_0x3fad4b(0x1d14),'line2':[_0x3fad4b(0x16b6),'internal'],'line3':'','labelAll':_0x1ef3cc[_0x3fad4b(0x25cc)]('APP.ALL_AGENTS'),'labelSelected':_0x1ef3cc['instant'](_0x3fad4b(0x1cd5)),'transferCallback':function(){const _0x14935d=_0x3fad4b,_0x5bc992=_0x39641b()[_0x14935d(0x1423)](_0x25421c[_0x14935d(0x1456)],_0x25421c[_0x14935d(0x20bb)],'id');_0x25421c[_0x14935d(0x50c)]=_0x39641b()[_0x14935d(0xce9)](_0x5bc992)?![]:!![];}};function _0x5077f9(){const _0x2f5234=_0x3fad4b;return _0x5a87ec[_0x2f5234(0x22b6)](_0x2f5234(0x1c60))?_0x55bf3f()[_0x2f5234(0x1c4)](function(_0x54caea){const _0x4526fe=_0x2f5234;_0x12f8f8['error']({'title':_0x54caea[_0x4526fe(0x291)]?_0x4526fe(0xeb9)+_0x54caea['status']+_0x4526fe(0x1657)+_0x54caea[_0x4526fe(0xc22)]:_0x4526fe(0x799),'msg':_0x54caea[_0x4526fe(0x291)]?JSON[_0x4526fe(0x2701)](_0x54caea[_0x4526fe(0x25c)]):_0x54caea[_0x4526fe(0x147f)]()});}):_0x53013c()['then'](function(_0x3ef885){const _0x12a4da=_0x2f5234;return _0x25421c[_0x12a4da(0x1f74)]=_0x3ef885,_0x55bf3f();})[_0x2f5234(0x1c4)](function(_0x2f0454){const _0x50e2aa=_0x2f5234;_0x12f8f8['error']({'title':_0x2f0454['status']?'API:'+_0x2f0454[_0x50e2aa(0x291)]+_0x50e2aa(0x1657)+_0x2f0454[_0x50e2aa(0xc22)]:_0x50e2aa(0x799),'msg':_0x2f0454[_0x50e2aa(0x291)]?JSON[_0x50e2aa(0x2701)](_0x2f0454['data']):_0x2f0454[_0x50e2aa(0x147f)]()});});}function _0x53013c(){return _0x8f634e(function(_0x364da1,_0x876ca9){const _0x4b6ffd=a0_0x5cbd;_0x26437e[_0x4b6ffd(0x2199)]['get']({'userProfileId':_0x25421c[_0x4b6ffd(0xe76)][_0x4b6ffd(0x13c1)],'name':_0x4b6ffd(0x2536)})['$promise'][_0x4b6ffd(0x1cb0)](function(_0xc1db83){const _0x42832b=_0x4b6ffd,_0x1c22c9=_0xc1db83&&_0xc1db83[_0x42832b(0x2214)]?_0xc1db83['rows'][0x0]:null;_0x364da1(_0x1c22c9);})['catch'](function(_0x58f097){_0x876ca9(_0x58f097);});});}function _0x55bf3f(){return _0x8f634e(function(_0x3d3f7d,_0x196df2){const _0x2a0a59=a0_0x5cbd;return _0x40031f()[_0x2a0a59(0x1cb0)](function(_0x14c6f1){const _0x3e345e=_0x2a0a59;return _0x25421c[_0x3e345e(0x122f)]=_0x14c6f1['rows']?_0x14c6f1[_0x3e345e(0x2214)]:[],_0x5a87ec[_0x3e345e(0x22b6)](_0x3e345e(0x1c60))?_0x14c6f1:_0x25421c[_0x3e345e(0x1f74)]?_0x25421c[_0x3e345e(0x1f74)][_0x3e345e(0x12f4)]?_0x14c6f1:_0x5ba740():null;})['then'](function(_0xba9ecc){const _0x4231b7=_0x2a0a59,_0x50bc81=_0xba9ecc&&_0xba9ecc[_0x4231b7(0x2214)]?_0xba9ecc[_0x4231b7(0x2214)]:[];return _0x25421c[_0x4231b7(0x1372)]=_0x39641b()[_0x4231b7(0x1de2)](_0x50bc81,function(_0xa713b9){const _0x43e72e=_0x4231b7;return _0x39641b()['find'](_0x25421c[_0x43e72e(0x122f)],{'id':_0x5a87ec[_0x43e72e(0x22b6)](_0x43e72e(0x1c60))||_0x25421c[_0x43e72e(0x1f74)][_0x43e72e(0x12f4)]?_0xa713b9['id']:_0xa713b9['resourceId']});}),_0x25421c[_0x4231b7(0xbd5)]=angular[_0x4231b7(0x17fe)](_0x25421c[_0x4231b7(0x1372)]),_0x25421c['items'][_0x4231b7(0xf90)](function(_0x2566ef){const _0x5cdc95=_0x4231b7,_0x2ec30a=_0x39641b()['find'](_0x25421c[_0x5cdc95(0x1372)],{'id':_0x2566ef['id']});_0x5a87ec[_0x5cdc95(0x22b6)](_0x5cdc95(0x1c60))?_0x2566ef[_0x5cdc95(0x1a4f)]=!![]:_0x2566ef[_0x5cdc95(0x1a4f)]=typeof _0x2ec30a!==_0x5cdc95(0x16b5)?!![]:![];}),_0x49bf75();})['then'](function(_0x85c779){const _0x1406ed=_0x2a0a59,_0x3bcf24=_0x85c779&&_0x85c779[_0x1406ed(0x2214)]?_0x85c779[_0x1406ed(0x2214)]:[];_0x25421c[_0x1406ed(0x20bb)]=_0x39641b()['map'](_0x3bcf24,function(_0x366f94){const _0x439097=_0x1406ed,_0x401365=_0x39641b()[_0x439097(0x13b4)](_0x25421c[_0x439097(0x122f)],{'id':_0x366f94['id']});return _0x401365[_0x439097(0x1cbc)]=_0x366f94[_0x439097(0xdd6)]?'penalty\x20'+_0x366f94[_0x439097(0xdd6)][_0x439097(0x1cbc)]:'',_0x401365[_0x439097(0xdbd)]=typeof _0x366f94[_0x439097(0xdbd)]!==_0x439097(0x16b5)?'<'+_0x366f94[_0x439097(0xdbd)]+'>':'',_0x401365;}),_0x25421c[_0x1406ed(0x1456)]=angular[_0x1406ed(0x17fe)](_0x25421c[_0x1406ed(0x20bb)]),_0x25421c[_0x1406ed(0x18c0)][_0x1406ed(0x20bb)]=_0x25421c['selectedItems'],_0x25421c['dualMultiselectOptions']['items']=_0x39641b()[_0x1406ed(0x2128)](_0x25421c[_0x1406ed(0x1372)],_0x25421c[_0x1406ed(0x18c0)][_0x1406ed(0x20bb)],'id'),_0x3d3f7d();})['catch'](function(_0x21d026){_0x196df2(_0x21d026);});});}function _0x5ba740(){return _0x8f634e(function(_0xf0a092,_0x359bf6){const _0x100b97=a0_0x5cbd;return _0x26437e[_0x100b97(0x1198)][_0x100b97(0xbf7)]({'sectionId':_0x25421c[_0x100b97(0x1f74)]['id'],'nolimit':!![]})[_0x100b97(0x1d77)][_0x100b97(0x1cb0)](function(_0x1f8524){_0xf0a092(_0x1f8524);})['catch'](function(_0x2f6c7a){_0x359bf6(_0x2f6c7a);});});}function _0x49bf75(){return _0x8f634e(function(_0x5e2e73,_0x2c712c){const _0x12553c=a0_0x5cbd;return _0x26437e[_0x12553c(0x152c)][_0x12553c(0x2348)]({'id':_0x25421c[_0x12553c(0x152c)]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x12553c(0x1eff)})[_0x12553c(0x1d77)][_0x12553c(0x1cb0)](function(_0x2d2bab){_0x5e2e73(_0x2d2bab);})[_0x12553c(0x1c4)](function(_0x47bfc1){_0x2c712c(_0x47bfc1);});});}function _0x40031f(){return _0x8f634e(function(_0x4b5302,_0x751abd){const _0xe0f6c8=a0_0x5cbd;return _0x26437e['user'][_0xe0f6c8(0xbf7)]({'fields':_0xe0f6c8(0x251e),'nolimit':!![],'role':_0xe0f6c8(0x1eff)})[_0xe0f6c8(0x1d77)]['then'](function(_0x12ad96){_0x4b5302(_0x12ad96);})[_0xe0f6c8(0x1c4)](function(_0x17ee45){_0x751abd(_0x17ee45);});});}function _0x2b4cbf(_0x366466){return _0x8f634e(function(_0x1aed90,_0x4df96e){const _0x1a8e17=a0_0x5cbd;_0x39641b()[_0x1a8e17(0xce9)](_0x366466)?_0x1aed90():_0x26437e[_0x1a8e17(0x152c)][_0x1a8e17(0x2057)]({'id':_0x25421c[_0x1a8e17(0x152c)]['id'],'ids':_0x39641b()[_0x1a8e17(0x1de2)](_0x366466,'id')})[_0x1a8e17(0x1d77)][_0x1a8e17(0x1cb0)](function(){_0x1aed90();})[_0x1a8e17(0x1c4)](function(_0x1246c6){_0x4df96e(_0x1246c6);});});}function _0x4db339(_0xfa9080){return _0x8f634e(function(_0x4703c6,_0x266c87){const _0x14640e=a0_0x5cbd;_0x39641b()[_0x14640e(0xce9)](_0xfa9080)?_0x4703c6():_0x26437e[_0x14640e(0x152c)][_0x14640e(0x223f)]({'id':_0x25421c[_0x14640e(0x152c)]['id'],'ids':_0x39641b()[_0x14640e(0x1de2)](_0xfa9080,'id')})[_0x14640e(0x1d77)]['then'](function(){_0x4703c6();})[_0x14640e(0x1c4)](function(_0x422364){_0x266c87(_0x422364);});});}function _0x15366c(){const _0x2665fe=_0x3fad4b,_0x163447=_0x39641b()[_0x2665fe(0x2128)](_0x25421c['startingSelectedItems'],_0x25421c['selectedItems'],'id'),_0x3c2222=_0x39641b()[_0x2665fe(0x2128)](_0x25421c[_0x2665fe(0x20bb)],_0x25421c['startingSelectedItems'],'id');return _0x4db339(_0x163447)[_0x2665fe(0x1cb0)](function(){return _0x2b4cbf(_0x3c2222);})[_0x2665fe(0x1cb0)](function(){const _0x1c0333=_0x2665fe;_0x25421c[_0x1c0333(0x50c)]=![],_0x25421c[_0x1c0333(0xbd5)]=angular[_0x1c0333(0x17fe)](_0x25421c[_0x1c0333(0x1372)]),_0x25421c[_0x1c0333(0x1456)]=angular[_0x1c0333(0x17fe)](_0x25421c[_0x1c0333(0x20bb)]),_0x12f8f8[_0x1c0333(0x829)]({'title':_0x1c0333(0x201),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x2665fe(0x1c4)](function(_0x487f79){const _0x5ba233=_0x2665fe;_0x12f8f8[_0x5ba233(0x218e)]({'title':_0x487f79[_0x5ba233(0x291)]?'API:'+_0x487f79[_0x5ba233(0x291)]+_0x5ba233(0x1657)+_0x487f79[_0x5ba233(0xc22)]:_0x5ba233(0x1221),'msg':_0x487f79[_0x5ba233(0x291)]?JSON[_0x5ba233(0x2701)](_0x487f79['data']):_0x487f79[_0x5ba233(0x147f)]()});});}function _0x52db24(){const _0x9a9179=_0x3fad4b;_0x2e29dd[_0x9a9179(0x1426)]();}}const _0x4e1e2d=_0x334167;;const _0x331c83=_0x5074a3['p']+_0x5537c6(0x2114);;const _0x2fd839=_0x5074a3['p']+'src/js/modules/main/apps/voice/views/voicePrefixes/edit/agentadd/agentadd.html/agentadd.html';;_0x371248[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0xf46),_0x5537c6(0x44a),_0x5537c6(0x2199),'api','msUtils',_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x371248(_0x200f36,_0x44cf7b,_0xd878f3,_0x9e5b3,_0x3558c8,_0x3c0608,_0x4b65f1,_0x3bd93b,_0x3297e7,_0x4e1c72,_0x12d386,_0x48e753,_0x85463b,_0x49c15d,_0x404ecf,_0x16a9f1,_0x11e64f){const _0x1e954e=_0x5537c6,_0x4531f4=this;_0x4531f4[_0x1e954e(0x8a5)]=_0x16a9f1,_0x4531f4['setting']=_0x11e64f,_0x4531f4['currentUser']=_0x404ecf[_0x1e954e(0x21e8)](),_0x4531f4[_0x1e954e(0xf46)]=_0x3297e7||{'count':0x0,'rows':[]},_0x4531f4['userProfile']=_0x4e1c72,_0x4531f4['userProfileSection']=_0x12d386&&_0x12d386[_0x1e954e(0x184d)]==0x1?_0x12d386[_0x1e954e(0x2214)][0x0]:null,_0x4531f4[_0x1e954e(0x1b1a)]=_0x404ecf['parseCrudPermissions'](_0x4531f4['userProfileSection']?_0x4531f4[_0x1e954e(0x2199)][_0x1e954e(0x1b1a)]:null),_0x4531f4[_0x1e954e(0xc83)]=_0x1e954e(0xf46),_0x4531f4[_0x1e954e(0x1d20)]='',_0x4531f4['listOrderAsc']=null,_0x4531f4['selectedVoicePrefixes']=[],_0x4531f4[_0x1e954e(0xae2)]={'fields':'createdAt,updatedAt,id,name,VoiceExtensionId,callerIdAll,description','limit':0xa,'page':0x1},_0x4531f4[_0x1e954e(0xc93)]=_0x3f1ff1,_0x4531f4[_0x1e954e(0x1379)]=_0x6fccab,_0x4531f4[_0x1e954e(0x27fe)]=_0x956fc,_0x4531f4[_0x1e954e(0x829)]=_0x4006de,_0x4531f4['getVoicePrefixes']=_0xe8aa32,_0x4531f4[_0x1e954e(0x2175)]=_0x54db79,_0x4531f4[_0x1e954e(0xc0e)]=_0x242c2e,_0x4531f4[_0x1e954e(0x779)]=_0x5d2ca3,_0x4531f4['deleteSelectedVoicePrefixes']=_0x3d2a24,_0x4531f4[_0x1e954e(0x1327)]=_0x42e023,_0x4531f4['selectAllVoicePrefixes']=_0x300abd,_0x404ecf[_0x1e954e(0x22b6)](_0x1e954e(0x1c60))?_0x48e753['voiceExtension'][_0x1e954e(0xbf7)]({'fields':_0x1e954e(0x286f),'type':_0x1e954e(0x895),'VoiceExtensionId':_0x1e954e(0xd38),'nolimit':_0x1e954e(0x44d)})[_0x1e954e(0x1d77)][_0x1e954e(0x1cb0)](function(_0x5e7f52){const _0xe2ab7d=_0x1e954e;_0x4531f4['outboundRoutes']=_0x5e7f52[_0xe2ab7d(0x2214)]||[];})[_0x1e954e(0x1c4)](function(_0xc185d8){const _0x320edd=_0x1e954e;_0x49c15d[_0x320edd(0x218e)]({'title':_0xc185d8[_0x320edd(0x291)]?_0x320edd(0xeb9)+_0xc185d8[_0x320edd(0x291)]+'\x20-\x20'+_0xc185d8[_0x320edd(0xc22)]:_0x320edd(0x25ea),'msg':_0xc185d8[_0x320edd(0x25c)]?JSON[_0x320edd(0x2701)](_0xc185d8[_0x320edd(0x25c)]):_0xc185d8[_0x320edd(0x147f)]()});}):_0x48e753[_0x1e954e(0x1059)][_0x1e954e(0xbf7)]({'fields':'id,exten','type':'outbound','VoiceExtensionId':_0x1e954e(0xd38),'nolimit':_0x1e954e(0x44d)})['$promise'][_0x1e954e(0x1cb0)](function(_0x5ca031){const _0x73c7b3=_0x1e954e;_0x4531f4[_0x73c7b3(0xe57)]=_0x5ca031[_0x73c7b3(0x2214)]||[];})['then'](function(){const _0x274734=_0x1e954e;return _0x48e753['userProfileSection']['get']({'userProfileId':_0x4531f4[_0x274734(0xe76)][_0x274734(0x13c1)],'sectionId':0x193})['$promise'];})[_0x1e954e(0x1cb0)](function(_0x1e380d){const _0x5e95c5=_0x1e954e,_0x4816d1=_0x1e380d&&_0x1e380d[_0x5e95c5(0x2214)]?_0x1e380d[_0x5e95c5(0x2214)][0x0]:null;if(!_0x4816d1){const _0x14105c=[];let _0x1b1eaf=null;_0x4531f4[_0x5e95c5(0x152c)]&&(_0x1b1eaf=_0x39641b()['find'](_0x4531f4['outboundRoutes'],{'id':Number(_0x4531f4['voicePrefix'][_0x5e95c5(0x1cc7)])}));for(let _0x281088=0x0;_0x281088<_0x4531f4[_0x5e95c5(0xe57)][_0x5e95c5(0xfd0)];_0x281088++){_0x1b1eaf&&_0x4531f4[_0x5e95c5(0xe57)][_0x281088]['id']===_0x1b1eaf['id']&&(_0x4531f4[_0x5e95c5(0xe57)][_0x281088][_0x5e95c5(0x15da)]=![],_0x14105c['push'](_0x4531f4[_0x5e95c5(0xe57)][_0x281088]));}_0x4531f4['outboundRoutes']=_0x14105c;}else{if(!_0x4816d1['autoAssociation'])return _0x48e753[_0x5e95c5(0x1198)][_0x5e95c5(0xbf7)]({'sectionId':_0x4816d1['id']})['$promise'][_0x5e95c5(0x1cb0)](function(_0x4201f0){const _0x34142e=_0x5e95c5,_0x4ddfb6=_0x39641b()[_0x34142e(0x1de2)](_0x4201f0[_0x34142e(0x2214)],function(_0x37521a){const _0x361348=_0x34142e;return _0x39641b()['find'](_0x4531f4['outboundRoutes'],{'id':_0x37521a[_0x361348(0x2982)]});});let _0x378572=null;_0x4531f4[_0x34142e(0x152c)]&&(_0x378572=_0x39641b()[_0x34142e(0x13b4)](_0x4531f4[_0x34142e(0xe57)],{'id':Number(_0x4531f4[_0x34142e(0x152c)][_0x34142e(0x1cc7)])}));if(_0x378572&&!_0x39641b()[_0x34142e(0x727)](_0x4ddfb6,['id',_0x378572['id']])){const _0x22457a=_0x39641b()[_0x34142e(0x13b4)](_0x4531f4[_0x34142e(0xe57)],{'id':_0x378572['id']});_0x22457a[_0x34142e(0x15da)]=![],_0x4ddfb6['push'](_0x22457a);}_0x4531f4['outboundRoutes']=_0x4ddfb6;});}})['catch'](function(_0xc72386){const _0x4455bf=_0x1e954e;_0x49c15d['error']({'title':_0xc72386['status']?_0x4455bf(0xeb9)+_0xc72386['status']+'\x20-\x20'+_0xc72386[_0x4455bf(0xc22)]:_0x4455bf(0x15c5),'msg':_0xc72386[_0x4455bf(0x25c)]?JSON[_0x4455bf(0x2701)](_0xc72386[_0x4455bf(0x25c)]):_0xc72386['toString']()});});function _0x3f1ff1(_0x5b6313,_0x83dde6){const _0x53646b=_0x1e954e;_0x3558c8[_0x53646b(0xe27)]({'controller':_0x53646b(0x786),'controllerAs':'vm','templateUrl':_0x331c83,'parent':angular[_0x53646b(0x1853)](_0x3c0608[_0x53646b(0x1ed9)]),'targetEvent':_0x83dde6,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x5b6313,'voicePrefixes':_0x4531f4[_0x53646b(0xf46)][_0x53646b(0x2214)],'license':_0x4531f4['license'],'setting':null,'crudPermissions':_0x4531f4[_0x53646b(0x1b1a)]}});}function _0x6fccab(_0x269de9,_0x70aa2c){const _0x5db17b=_0x1e954e;_0x3558c8[_0x5db17b(0xe27)]({'controller':_0x5db17b(0x27de),'controllerAs':'vm','templateUrl':_0x2fd839,'parent':angular['element'](_0x3c0608[_0x5db17b(0x1ed9)]),'targetEvent':_0x70aa2c,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x269de9,'voicePrefixes':_0x4531f4['voicePrefixes']?_0x4531f4[_0x5db17b(0xf46)][_0x5db17b(0x2214)]:[],'crudPermissions':_0x4531f4['crudPermissions'],'realtime':![]}});}function _0x956fc(_0x58e6c0,_0x1d2b5f){const _0x5f4b6e=_0x1e954e,_0x5d1863=_0x3558c8[_0x5f4b6e(0x1551)]()[_0x5f4b6e(0x1386)](_0x5f4b6e(0x140b)+_0x39641b()['startCase']('voicePrefix')+'?')[_0x5f4b6e(0x49e)](''+(_0x58e6c0[_0x5f4b6e(0x16b6)]||_0x5f4b6e(0x152c))+''+_0x5f4b6e(0x1b6))[_0x5f4b6e(0x15ad)]('delete\x20voicePrefix')['targetEvent'](_0x1d2b5f)['ok']('OK')[_0x5f4b6e(0x696)](_0x5f4b6e(0x24ba));_0x3558c8[_0x5f4b6e(0xe27)](_0x5d1863)[_0x5f4b6e(0x1cb0)](function(){_0x242c2e(_0x58e6c0);},function(){const _0x58b204=_0x5f4b6e;console[_0x58b204(0x1b4f)](_0x58b204(0x24ba));});}let _0x3e2d9f=!![],_0x4590b5=0x1;_0x200f36[_0x1e954e(0x614)](_0x1e954e(0x957),function(_0xdcdde1,_0x4878b1){const _0x320903=_0x1e954e;_0x3e2d9f?_0x4b65f1(function(){_0x3e2d9f=![];}):(!_0x4878b1&&(_0x4590b5=_0x4531f4[_0x320903(0xae2)][_0x320903(0x1c7b)]),_0xdcdde1!==_0x4878b1&&(_0x4531f4[_0x320903(0xae2)][_0x320903(0x1c7b)]=0x1),!_0xdcdde1&&(_0x4531f4['query'][_0x320903(0x1c7b)]=_0x4590b5),_0x4531f4[_0x320903(0x26de)]());});function _0x4006de(_0x1cc7f5){_0x4531f4['voicePrefixes']=_0x1cc7f5||{'count':0x0,'rows':[]};}function _0xe8aa32(){const _0x24a27d=_0x1e954e;_0x4531f4['query']['offset']=(_0x4531f4[_0x24a27d(0xae2)][_0x24a27d(0x1c7b)]-0x1)*_0x4531f4[_0x24a27d(0xae2)][_0x24a27d(0x236)],_0x404ecf[_0x24a27d(0x22b6)](_0x24a27d(0x1c60))?_0x4531f4[_0x24a27d(0x2061)]=_0x48e753[_0x24a27d(0x152c)][_0x24a27d(0xbf7)](_0x4531f4[_0x24a27d(0xae2)],_0x4006de)['$promise']:(_0x4531f4[_0x24a27d(0xae2)]['id']=_0x4531f4[_0x24a27d(0x44a)]['id'],_0x4531f4[_0x24a27d(0xae2)][_0x24a27d(0x1f74)]=_0x24a27d(0x111b),_0x4531f4[_0x24a27d(0x2061)]=_0x48e753[_0x24a27d(0x44a)][_0x24a27d(0x1810)](_0x4531f4['query'],_0x4006de)[_0x24a27d(0x1d77)]);}function _0x54db79(_0x5f28b7,_0x43dd3a){const _0x372bc4=_0x1e954e;_0x3558c8[_0x372bc4(0xe27)]({'controller':_0x372bc4(0x786),'controllerAs':'vm','templateUrl':_0x331c83,'parent':angular['element'](_0x3c0608['body']),'targetEvent':_0x5f28b7,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x43dd3a,'voicePrefixes':_0x4531f4[_0x372bc4(0xf46)][_0x372bc4(0x2214)],'license':_0x4531f4['license'],'setting':_0x4531f4['setting'],'crudPermissions':_0x4531f4[_0x372bc4(0x1b1a)]}});}function _0x242c2e(_0x3f887a){const _0x4d1ce5=_0x1e954e;_0x48e753['voicePrefix'][_0x4d1ce5(0x111d)]({'id':_0x3f887a['id']})[_0x4d1ce5(0x1d77)][_0x4d1ce5(0x1cb0)](function(){const _0x329c33=_0x4d1ce5;_0x39641b()['remove'](_0x4531f4['voicePrefixes'][_0x329c33(0x2214)],{'id':_0x3f887a['id']}),_0x4531f4[_0x329c33(0xf46)][_0x329c33(0x184d)]-=0x1,!_0x4531f4['voicePrefixes']['rows'][_0x329c33(0xfd0)]&&_0x4531f4[_0x329c33(0x26de)](),_0x49c15d[_0x329c33(0x829)]({'title':_0x39641b()['startCase'](_0x329c33(0x152c))+_0x329c33(0x2663),'msg':_0x3f887a['name']?_0x3f887a[_0x329c33(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x4d1ce5(0x1c4)](function(_0x1ca541){const _0xc304b5=_0x4d1ce5;if(_0x1ca541[_0xc304b5(0x25c)]&&_0x1ca541[_0xc304b5(0x25c)]['errors']&&_0x1ca541[_0xc304b5(0x25c)]['errors'][_0xc304b5(0xfd0)]){_0x4531f4[_0xc304b5(0x1a7c)]=_0x1ca541[_0xc304b5(0x25c)][_0xc304b5(0x1a7c)]||[{'message':_0x1ca541[_0xc304b5(0x147f)](),'type':_0xc304b5(0x159a)}];for(let _0x50bb56=0x0;_0x50bb56<_0x1ca541[_0xc304b5(0x25c)][_0xc304b5(0x1a7c)][_0xc304b5(0xfd0)];_0x50bb56++){_0x49c15d[_0xc304b5(0x218e)]({'title':_0x1ca541[_0xc304b5(0x25c)][_0xc304b5(0x1a7c)][_0x50bb56]['type'],'msg':_0x1ca541[_0xc304b5(0x25c)][_0xc304b5(0x1a7c)][_0x50bb56]['message']});}}else _0x49c15d[_0xc304b5(0x218e)]({'title':_0x1ca541[_0xc304b5(0x291)]?'API:'+_0x1ca541['status']+_0xc304b5(0x1657)+_0x1ca541[_0xc304b5(0xc22)]:'SYSTEM:DELETEvoicePrefix','msg':_0x1ca541[_0xc304b5(0x25c)]?JSON[_0xc304b5(0x2701)](_0x1ca541[_0xc304b5(0x25c)][_0xc304b5(0x155e)]):_0x1ca541[_0xc304b5(0x155e)]||_0x1ca541[_0xc304b5(0x147f)]()});});}function _0x5d2ca3(){const _0x47572f=_0x1e954e,_0x2c73eb=angular['copy'](_0x4531f4[_0x47572f(0x541)]);return _0x4531f4[_0x47572f(0x541)]=[],_0x2c73eb;}function _0x3d2a24(_0x1cb2b0){const _0xc2cbfd=_0x1e954e,_0x468e46=_0x3558c8['confirm']()['title'](_0xc2cbfd(0x474))[_0xc2cbfd(0x49e)](_0xc2cbfd(0x204d)+_0x4531f4[_0xc2cbfd(0x541)][_0xc2cbfd(0xfd0)]+_0xc2cbfd(0x1d6c)+'\x20will\x20be\x20deleted.')[_0xc2cbfd(0x15ad)]('delete\x20voicePrefixs')[_0xc2cbfd(0x728)](_0x1cb2b0)['ok']('OK')[_0xc2cbfd(0x696)](_0xc2cbfd(0x24ba));_0x3558c8[_0xc2cbfd(0xe27)](_0x468e46)[_0xc2cbfd(0x1cb0)](function(){const _0x1cc433=_0xc2cbfd;_0x4531f4['selectedVoicePrefixes']['forEach'](function(_0x3be41f){_0x242c2e(_0x3be41f);}),_0x4531f4[_0x1cc433(0x541)]=[];});}function _0x42e023(){const _0x4c6b59=_0x1e954e;_0x4531f4[_0x4c6b59(0x541)]=[];}function _0x300abd(){const _0x16ec50=_0x1e954e;_0x4531f4[_0x16ec50(0x541)]=_0x4531f4[_0x16ec50(0xf46)][_0x16ec50(0x2214)];}}const _0x5f19df=_0x371248;;_0x59a035[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state',_0x5537c6(0x21c8),'$mdDialog','$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x278a),_0x5537c6(0x26b3),_0x5537c6(0x142b),'Auth',_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x59a035(_0x261c2d,_0x5bade6,_0x57b4b9,_0x290eb8,_0x36f1bf,_0x1dfce2,_0x57e496,_0x3a6c3a,_0x3cd771,_0x3c42b4,_0x3adaf9,_0x4db91e,_0x4af946,_0x52b9b0){const _0x33b470=_0x5537c6,_0x19ea75=this;_0x19ea75[_0x33b470(0xe76)]=_0x3adaf9['getCurrentUser'](),_0x19ea75['errors']=[],_0x19ea75[_0x33b470(0x9ca)]=_0x4af946,_0x19ea75[_0x33b470(0x8a5)]=_0x4db91e,_0x19ea75[_0x33b470(0x1b1a)]=_0x52b9b0,_0x19ea75[_0x33b470(0xf4c)]={},_0x19ea75[_0x33b470(0x1b0c)]=_0x19ea75['setting']&&_0x19ea75[_0x33b470(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x19ea75[_0x33b470(0x1386)]=_0x33b470(0x1337),_0x19ea75[_0x33b470(0x26b3)]=angular['copy'](_0x3cd771),_0x19ea75[_0x33b470(0x278a)]=_0x3a6c3a,_0x19ea75[_0x33b470(0x1caa)]=![];!_0x19ea75['voiceQueue']&&(_0x19ea75['voiceQueue']={'type':_0x33b470(0x26c0),'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'},_0x19ea75[_0x33b470(0x1386)]=_0x33b470(0x17b),_0x19ea75['newVoiceQueue']=!![]);_0x19ea75[_0x33b470(0x160a)]=_0x10ceaa,_0x19ea75[_0x33b470(0x10ab)]=_0x5129e2,_0x19ea75[_0x33b470(0x1d75)]=_0x58f2cb,_0x19ea75[_0x33b470(0x2c4)]=_0x482f43,_0x19ea75[_0x33b470(0xda0)]=_0x380ad3;function _0x10ceaa(){const _0x3d42df=_0x33b470;_0x19ea75[_0x3d42df(0x1a7c)]=[],_0x3c42b4['voiceQueue'][_0x3d42df(0x1c3f)](_0x19ea75['voiceQueue'])[_0x3d42df(0x1d77)]['then'](function(_0x139579){const _0x3c6181=_0x3d42df;_0x19ea75[_0x3c6181(0x278a)][_0x3c6181(0xf63)](_0x139579[_0x3c6181(0x19b2)]()),_0x57e496[_0x3c6181(0x829)]({'title':'VoiceQueue\x20properly\x20created','msg':_0x19ea75[_0x3c6181(0x26b3)][_0x3c6181(0x16b6)]?_0x19ea75[_0x3c6181(0x26b3)][_0x3c6181(0x16b6)]+_0x3c6181(0x470):''}),_0x380ad3(_0x139579);})[_0x3d42df(0x1c4)](function(_0x311180){const _0x55a95c=_0x3d42df;if(_0x311180['data']&&_0x311180['data'][_0x55a95c(0x1a7c)]&&_0x311180['data']['errors']['length']){_0x19ea75['errors']=_0x311180[_0x55a95c(0x25c)]['errors']||[{'message':_0x311180[_0x55a95c(0x147f)](),'type':_0x55a95c(0x1bb)}];for(let _0x2f2846=0x0;_0x2f2846<_0x311180[_0x55a95c(0x25c)][_0x55a95c(0x1a7c)][_0x55a95c(0xfd0)];_0x2f2846+=0x1){_0x57e496[_0x55a95c(0x218e)]({'title':_0x311180[_0x55a95c(0x25c)][_0x55a95c(0x1a7c)][_0x2f2846]['type'],'msg':_0x311180[_0x55a95c(0x25c)][_0x55a95c(0x1a7c)][_0x2f2846]['message']});}}else _0x57e496[_0x55a95c(0x218e)]({'title':_0x311180['status']?_0x55a95c(0xeb9)+_0x311180[_0x55a95c(0x291)]+_0x55a95c(0x1657)+_0x311180[_0x55a95c(0xc22)]:_0x55a95c(0x1bb),'msg':_0x311180[_0x55a95c(0x25c)]?JSON[_0x55a95c(0x2701)](_0x311180['data'][_0x55a95c(0x155e)]):_0x311180['toString']()});});}function _0x5129e2(){const _0x2f9785=_0x33b470;_0x19ea75[_0x2f9785(0x1a7c)]=[],_0x3c42b4['voiceQueue'][_0x2f9785(0x687)]({'id':_0x19ea75[_0x2f9785(0x26b3)]['id']},_0x19ea75[_0x2f9785(0x26b3)])['$promise'][_0x2f9785(0x1cb0)](function(_0x34fa5b){const _0x506147=_0x2f9785,_0x2b1eac=_0x39641b()[_0x506147(0x13b4)](_0x19ea75[_0x506147(0x278a)],{'id':_0x34fa5b['id']});_0x2b1eac&&_0x39641b()[_0x506147(0x9c1)](_0x2b1eac,_0x39641b()[_0x506147(0x169b)](_0x34fa5b[_0x506147(0x19b2)](),_0x39641b()[_0x506147(0x1be5)](_0x2b1eac))),_0x57e496[_0x506147(0x829)]({'title':_0x506147(0x1c2d),'msg':_0x19ea75[_0x506147(0x26b3)][_0x506147(0x16b6)]?_0x19ea75[_0x506147(0x26b3)][_0x506147(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x380ad3(_0x34fa5b);})[_0x2f9785(0x1c4)](function(_0x307bc3){const _0x285fd9=_0x2f9785;if(_0x307bc3[_0x285fd9(0x25c)]&&_0x307bc3[_0x285fd9(0x25c)][_0x285fd9(0x1a7c)]&&_0x307bc3[_0x285fd9(0x25c)][_0x285fd9(0x1a7c)][_0x285fd9(0xfd0)]){_0x19ea75[_0x285fd9(0x1a7c)]=_0x307bc3[_0x285fd9(0x25c)][_0x285fd9(0x1a7c)]||[{'message':_0x307bc3[_0x285fd9(0x147f)](),'type':_0x285fd9(0x2396)}];for(let _0x276d83=0x0;_0x276d83<_0x307bc3[_0x285fd9(0x25c)][_0x285fd9(0x1a7c)][_0x285fd9(0xfd0)];_0x276d83++){_0x57e496[_0x285fd9(0x218e)]({'title':_0x307bc3[_0x285fd9(0x25c)][_0x285fd9(0x1a7c)][_0x276d83]['type'],'msg':_0x307bc3[_0x285fd9(0x25c)]['errors'][_0x276d83][_0x285fd9(0x155e)]});}}else _0x57e496['error']({'title':_0x307bc3['status']?_0x285fd9(0xeb9)+_0x307bc3[_0x285fd9(0x291)]+'\x20-\x20'+_0x307bc3['statusText']:_0x285fd9(0x2396),'msg':_0x307bc3[_0x285fd9(0x25c)]?JSON[_0x285fd9(0x2701)](_0x307bc3['data']['message']):_0x307bc3[_0x285fd9(0x147f)]()});});}function _0x58f2cb(_0x1e60fa){const _0x1e5966=_0x33b470;_0x19ea75['errors']=[];const _0xdb9f7b=_0x290eb8[_0x1e5966(0x1551)]()[_0x1e5966(0x1386)](_0x1e5966(0x1a2e))[_0x1e5966(0x862)](_0x1e5966(0x169a))[_0x1e5966(0x15ad)]('Delete\x20VoiceQueue')['ok']('Delete')['cancel']('Cancel')[_0x1e5966(0x728)](_0x1e60fa);_0x290eb8[_0x1e5966(0xe27)](_0xdb9f7b)[_0x1e5966(0x1cb0)](function(){const _0x3af200=_0x1e5966;_0x3c42b4['voiceQueue']['delete']({'id':_0x19ea75[_0x3af200(0x26b3)]['id']})[_0x3af200(0x1d77)]['then'](function(){const _0x4888f3=_0x3af200;_0x39641b()['remove'](_0x19ea75['voiceQueues'],{'id':_0x19ea75[_0x4888f3(0x26b3)]['id']}),_0x57e496[_0x4888f3(0x829)]({'title':_0x4888f3(0x16ea),'msg':(_0x19ea75[_0x4888f3(0x26b3)][_0x4888f3(0x16b6)]||_0x4888f3(0x26b3))+_0x4888f3(0x3f5)}),_0x380ad3(_0x19ea75[_0x4888f3(0x26b3)]);})[_0x3af200(0x1c4)](function(_0x150a9f){const _0x3ffc47=_0x3af200;if(_0x150a9f['data']&&_0x150a9f['data']['errors']&&_0x150a9f[_0x3ffc47(0x25c)]['errors'][_0x3ffc47(0xfd0)]){_0x19ea75['errors']=_0x150a9f[_0x3ffc47(0x25c)][_0x3ffc47(0x1a7c)]||[{'message':_0x150a9f[_0x3ffc47(0x147f)](),'type':_0x3ffc47(0x1cb2)}];for(let _0x475f4b=0x0;_0x475f4b<_0x150a9f[_0x3ffc47(0x25c)][_0x3ffc47(0x1a7c)][_0x3ffc47(0xfd0)];_0x475f4b++){_0x57e496[_0x3ffc47(0x218e)]({'title':_0x150a9f[_0x3ffc47(0x25c)][_0x3ffc47(0x1a7c)][_0x475f4b][_0x3ffc47(0x66a)],'msg':_0x150a9f['data'][_0x3ffc47(0x1a7c)][_0x475f4b]['message']});}}else _0x57e496[_0x3ffc47(0x218e)]({'title':_0x150a9f[_0x3ffc47(0x291)]?_0x3ffc47(0xeb9)+_0x150a9f[_0x3ffc47(0x291)]+_0x3ffc47(0x1657)+_0x150a9f[_0x3ffc47(0xc22)]:_0x3ffc47(0x1cb2),'msg':_0x150a9f[_0x3ffc47(0x25c)]?JSON['stringify'](_0x150a9f[_0x3ffc47(0x25c)]['message']):_0x150a9f[_0x3ffc47(0x155e)]||_0x150a9f[_0x3ffc47(0x147f)]()});});},function(){});}function _0x482f43(_0x20f893){return _0x20f893===null?undefined:new Date(_0x20f893);}function _0x380ad3(_0x459e32){_0x290eb8['hide'](_0x459e32);}}const _0x14261d=_0x59a035;;_0x1ce97e[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x26b3),_0x5537c6(0x278a),_0x5537c6(0x217b),_0x5537c6(0x1ae),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x1ce97e(_0x3ce958,_0x18630a,_0x3dcf49,_0x35f405,_0x335cff,_0x300ebc,_0x4ab0f4,_0x278bef,_0x3cba40,_0x4c772a){const _0x4afae2=_0x5537c6,_0x4e1e5a=this;_0x4e1e5a[_0x4afae2(0xe76)]=_0x3cba40[_0x4afae2(0x21e8)](),_0x4e1e5a['voiceQueue']=_0x335cff,_0x4e1e5a[_0x4afae2(0x1b1a)]=_0x4c772a,_0x4e1e5a[_0x4afae2(0x1cbc)]=0x0,_0x4e1e5a[_0x4afae2(0x217b)]=_0x4ab0f4,_0x4e1e5a[_0x4afae2(0x122f)]=[],_0x4e1e5a[_0x4afae2(0x1372)]=[],_0x4e1e5a['selectedItems']=[],_0x4e1e5a[_0x4afae2(0xbd5)]=[],_0x4e1e5a['startingSelectedItems']=[],_0x4e1e5a[_0x4afae2(0x50c)]=![],_0x4e1e5a[_0x4afae2(0x1a34)]=_0x2f718c,_0x4e1e5a[_0x4afae2(0x1dd5)]=_0x386cd5,_0x4e1e5a['closeDialog']=_0x2de395,_0x4e1e5a[_0x4afae2(0x18c0)]={'readOnly':!_0x4e1e5a[_0x4afae2(0x1b1a)][_0x4afae2(0xb3d)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x4afae2(0x1d14),'line2':[_0x4afae2(0x16b6),_0x4afae2(0xdbd)],'line3':_0x4afae2(0x1cbc),'labelAll':_0x278bef['instant'](_0x4afae2(0x21e7)),'labelSelected':_0x278bef['instant'](_0x4afae2(0x1cd5)),'transferCallback':function(_0x4c5906,_0x4e64ce){const _0x28b008=_0x4afae2;_0x4e64ce?_0x4c5906[_0x28b008(0xf90)](function(_0x113cf4){const _0x52363e=_0x28b008;_0x113cf4[_0x52363e(0x1cbc)]=undefined;}):_0x4c5906[_0x28b008(0xf90)](function(_0x5d9e28){const _0xe410fa=_0x28b008;_0x5d9e28[_0xe410fa(0x1cbc)]=_0xe410fa(0x455)+_0x4e1e5a[_0xe410fa(0x1cbc)];});const _0x3f38a4=_0x39641b()[_0x28b008(0x218a)](_0x4e1e5a[_0x28b008(0x1456)],_0x4e1e5a[_0x28b008(0x20bb)],function(_0x2ceb04,_0x25421b){const _0xac9dea=_0x28b008;return _0x2ceb04['id']===_0x25421b['id']&&_0x2ceb04[_0xac9dea(0x1cbc)]===_0x25421b['penalty'];});_0x4e1e5a[_0x28b008(0x50c)]=_0x39641b()['isEmpty'](_0x3f38a4)?![]:!![];}};function _0x2f718c(){const _0x525cdd=_0x4afae2;return _0x3cba40[_0x525cdd(0x22b6)]('admin')?_0x59d3fe()[_0x525cdd(0x1c4)](function(_0x1af564){const _0x500b49=_0x525cdd;_0x3dcf49[_0x500b49(0x218e)]({'title':_0x1af564[_0x500b49(0x291)]?_0x500b49(0xeb9)+_0x1af564[_0x500b49(0x291)]+'\x20-\x20'+_0x1af564[_0x500b49(0xc22)]:'SYSTEM:GET_AGENTS','msg':_0x1af564[_0x500b49(0x291)]?JSON['stringify'](_0x1af564[_0x500b49(0x25c)]):_0x1af564[_0x500b49(0x147f)]()});}):_0x4624c5()['then'](function(_0x164e23){const _0x4c8652=_0x525cdd;return _0x4e1e5a[_0x4c8652(0x1f74)]=_0x164e23,_0x59d3fe();})[_0x525cdd(0x1c4)](function(_0xe66405){const _0x53ccfb=_0x525cdd;_0x3dcf49['error']({'title':_0xe66405[_0x53ccfb(0x291)]?_0x53ccfb(0xeb9)+_0xe66405[_0x53ccfb(0x291)]+'\x20-\x20'+_0xe66405['statusText']:_0x53ccfb(0x799),'msg':_0xe66405[_0x53ccfb(0x291)]?JSON[_0x53ccfb(0x2701)](_0xe66405[_0x53ccfb(0x25c)]):_0xe66405[_0x53ccfb(0x147f)]()});});}function _0x4624c5(){return _0x18630a(function(_0x489f72,_0x542947){const _0x2215b6=a0_0x5cbd;_0x35f405[_0x2215b6(0x2199)][_0x2215b6(0xbf7)]({'userProfileId':_0x4e1e5a[_0x2215b6(0xe76)]['userProfileId'],'name':_0x2215b6(0x2536)})[_0x2215b6(0x1d77)][_0x2215b6(0x1cb0)](function(_0x5655d1){const _0x41781e=_0x2215b6,_0x24ff38=_0x5655d1&&_0x5655d1[_0x41781e(0x2214)]?_0x5655d1[_0x41781e(0x2214)][0x0]:null;_0x489f72(_0x24ff38);})[_0x2215b6(0x1c4)](function(_0x330cb2){_0x542947(_0x330cb2);});});}function _0x59d3fe(){return _0x18630a(function(_0x3ba2da,_0x579145){const _0x435f5c=a0_0x5cbd;return _0x404d68()['then'](function(_0x57a546){const _0xd5710c=a0_0x5cbd;return _0x4e1e5a[_0xd5710c(0x122f)]=_0x57a546[_0xd5710c(0x2214)]?_0x57a546['rows']:[],_0x3cba40[_0xd5710c(0x22b6)](_0xd5710c(0x1c60))?_0x57a546:_0x4e1e5a[_0xd5710c(0x1f74)]?_0x4e1e5a[_0xd5710c(0x1f74)][_0xd5710c(0x12f4)]?_0x57a546:_0x3cac66():null;})[_0x435f5c(0x1cb0)](function(_0x15fcd9){const _0x432b36=_0x435f5c,_0xacf87e=_0x15fcd9&&_0x15fcd9[_0x432b36(0x2214)]?_0x15fcd9[_0x432b36(0x2214)]:[];return _0x4e1e5a[_0x432b36(0x1372)]=_0x39641b()['map'](_0xacf87e,function(_0x467a6f){const _0x387981=_0x432b36;return _0x39641b()[_0x387981(0x13b4)](_0x4e1e5a['items'],{'id':_0x3cba40[_0x387981(0x22b6)](_0x387981(0x1c60))||_0x4e1e5a[_0x387981(0x1f74)][_0x387981(0x12f4)]?_0x467a6f['id']:_0x467a6f['resourceId']});}),_0x4e1e5a['startingAllowedItems']=angular[_0x432b36(0x17fe)](_0x4e1e5a[_0x432b36(0x1372)]),_0x4e1e5a[_0x432b36(0x122f)][_0x432b36(0xf90)](function(_0x559fc7){const _0x18bf73=_0x432b36,_0x356726=_0x39641b()[_0x18bf73(0x13b4)](_0x4e1e5a[_0x18bf73(0x1372)],{'id':_0x559fc7['id']});_0x3cba40[_0x18bf73(0x22b6)](_0x18bf73(0x1c60))?_0x559fc7[_0x18bf73(0x1a4f)]=!![]:_0x559fc7[_0x18bf73(0x1a4f)]=typeof _0x356726!==_0x18bf73(0x16b5)?!![]:![];}),_0x48bf56();})[_0x435f5c(0x1cb0)](function(_0x4bd272){const _0x1e19ff=_0x435f5c,_0x3c0dcf=_0x4bd272&&_0x4bd272['rows']?_0x4bd272['rows']:[];_0x4e1e5a['selectedItems']=_0x39641b()[_0x1e19ff(0x1de2)](_0x3c0dcf,function(_0x2c40a1){const _0x1798f8=_0x1e19ff,_0x3979eb=_0x39641b()[_0x1798f8(0x13b4)](_0x4e1e5a[_0x1798f8(0x122f)],{'id':_0x2c40a1['id']});return _0x3979eb['penalty']=_0x2c40a1['UserVoiceQueue']?_0x1798f8(0x455)+_0x2c40a1[_0x1798f8(0x2071)]['penalty']:'',_0x3979eb['internal']=typeof _0x2c40a1[_0x1798f8(0xdbd)]!==_0x1798f8(0x16b5)?'<'+_0x2c40a1[_0x1798f8(0xdbd)]+'>':'',_0x3979eb;}),_0x4e1e5a[_0x1e19ff(0x1456)]=angular[_0x1e19ff(0x17fe)](_0x4e1e5a[_0x1e19ff(0x20bb)]),_0x4e1e5a[_0x1e19ff(0x18c0)][_0x1e19ff(0x20bb)]=_0x4e1e5a[_0x1e19ff(0x20bb)],_0x4e1e5a[_0x1e19ff(0x18c0)][_0x1e19ff(0x122f)]=_0x39641b()[_0x1e19ff(0x2128)](_0x4e1e5a[_0x1e19ff(0x1372)],_0x4e1e5a[_0x1e19ff(0x18c0)][_0x1e19ff(0x20bb)],'id'),_0x3ba2da();})[_0x435f5c(0x1c4)](function(_0x1e1082){_0x579145(_0x1e1082);});});}function _0x3cac66(){return _0x18630a(function(_0x5387be,_0x432464){const _0x15e089=a0_0x5cbd;return _0x35f405[_0x15e089(0x1198)][_0x15e089(0xbf7)]({'sectionId':_0x4e1e5a[_0x15e089(0x1f74)]['id'],'nolimit':!![]})[_0x15e089(0x1d77)][_0x15e089(0x1cb0)](function(_0x1a6179){_0x5387be(_0x1a6179);})['catch'](function(_0x2f105b){_0x432464(_0x2f105b);});});}function _0x48bf56(){return _0x18630a(function(_0x3c47da,_0x1730f9){const _0x3cd010=a0_0x5cbd;return _0x35f405[_0x3cd010(0x26b3)][_0x3cd010(0x2348)]({'id':_0x4e1e5a[_0x3cd010(0x26b3)]['id'],'fields':_0x3cd010(0x251e),'nolimit':!![],'role':'agent'})['$promise'][_0x3cd010(0x1cb0)](function(_0x253a47){_0x3c47da(_0x253a47);})['catch'](function(_0x3a59b6){_0x1730f9(_0x3a59b6);});});}function _0x404d68(){return _0x18630a(function(_0x340bc7,_0x295739){const _0x43a5f9=a0_0x5cbd;return _0x35f405['user']['get']({'fields':_0x43a5f9(0x251e),'nolimit':!![],'role':_0x43a5f9(0x1eff)})[_0x43a5f9(0x1d77)][_0x43a5f9(0x1cb0)](function(_0x3e4f48){_0x340bc7(_0x3e4f48);})[_0x43a5f9(0x1c4)](function(_0x52dce4){_0x295739(_0x52dce4);});});}function _0x14cab1(_0x3b1d7e){return _0x18630a(function(_0x5a9766,_0x10d6ec){const _0x446494=a0_0x5cbd;if(_0x39641b()[_0x446494(0xce9)](_0x3b1d7e))_0x5a9766();else{const _0x5a84f3=[],_0x3353b4=_0x39641b()[_0x446494(0x1374)](_0x3b1d7e,_0x446494(0x1cbc));for(let _0x4d3dde=0x0;_0x4d3dde'+_0x30c78f['selectedVoiceQueues']['length']+_0x1df2fa(0x1d6c)+_0x1df2fa(0x1b6))[_0x1df2fa(0x15ad)](_0x1df2fa(0x1da4))['targetEvent'](_0xee3c7e)['ok']('OK')['cancel'](_0x1df2fa(0x24ba));_0x384aca[_0x1df2fa(0xe27)](_0x534e02)['then'](function(){const _0x16879e=_0x1df2fa;_0x30c78f[_0x16879e(0xc06)]['forEach'](function(_0x2a14f7){_0x2531b8(_0x2a14f7);}),_0x30c78f[_0x16879e(0xc06)]=[];});}function _0x361734(){_0x30c78f['selectedVoiceQueues']=[];}function _0x40cb21(){const _0x4020e7=_0x340ebe;_0x30c78f[_0x4020e7(0xc06)]=_0x30c78f['voiceQueues'][_0x4020e7(0x2214)];}}const _0x38499e=_0x1d4d83;;_0xe2fda[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state',_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x44e),'voiceRecording',_0x5537c6(0x142b),_0x5537c6(0x1774),'license','setting',_0x5537c6(0x1b1a)];function _0xe2fda(_0x4eb439,_0x23096d,_0x2370fc,_0x47386c,_0x7482b6,_0x1aec3d,_0x38189a,_0x5056df,_0x427433,_0x3dce9b,_0x362ad1,_0xb140d9,_0x3422f7,_0x62e2d8){const _0x2ac73a=_0x5537c6,_0x9d549=this;_0x9d549[_0x2ac73a(0xe76)]=_0x362ad1['getCurrentUser'](),_0x9d549['errors']=[],_0x9d549[_0x2ac73a(0x9ca)]=_0x3422f7,_0x9d549['license']=_0xb140d9,_0x9d549[_0x2ac73a(0x1b1a)]=_0x62e2d8,_0x9d549[_0x2ac73a(0xf4c)]={},_0x9d549[_0x2ac73a(0x1b0c)]=_0x9d549['setting']&&_0x9d549[_0x2ac73a(0x9ca)][_0x2ac73a(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x9d549[_0x2ac73a(0x1386)]=_0x2ac73a(0x2753),_0x9d549[_0x2ac73a(0x23d1)]=angular[_0x2ac73a(0x17fe)](_0x427433),_0x9d549['voiceRecordings']=_0x5056df,_0x9d549['newVoiceRecording']=![];!_0x9d549[_0x2ac73a(0x23d1)]&&(_0x9d549['voiceRecording']={},_0x9d549[_0x2ac73a(0x1386)]='VOICE.NEW_VOICERECORDING',_0x9d549[_0x2ac73a(0x22ff)]=!![]);_0x9d549[_0x2ac73a(0x227c)]=_0x1840ab,_0x9d549[_0x2ac73a(0x57e)]=_0x499490,_0x9d549[_0x2ac73a(0x1f14)]=_0xb9d4ae,_0x9d549[_0x2ac73a(0x2c4)]=_0x539fa4,_0x9d549[_0x2ac73a(0xda0)]=_0x32f0f7;function _0x1840ab(){const _0x179168=_0x2ac73a;_0x9d549[_0x179168(0x1a7c)]=[],_0x3dce9b['voiceRecording']['save'](_0x9d549[_0x179168(0x23d1)])[_0x179168(0x1d77)]['then'](function(_0x302e22){const _0x438b35=_0x179168;_0x9d549[_0x438b35(0x44e)][_0x438b35(0xf63)](_0x302e22[_0x438b35(0x19b2)]()),_0x38189a[_0x438b35(0x829)]({'title':_0x438b35(0x1912),'msg':_0x9d549[_0x438b35(0x23d1)][_0x438b35(0x16b6)]?_0x9d549[_0x438b35(0x23d1)]['name']+_0x438b35(0x470):''}),_0x32f0f7(_0x302e22);})[_0x179168(0x1c4)](function(_0x34fd0b){const _0x48417c=_0x179168;if(_0x34fd0b[_0x48417c(0x25c)]&&_0x34fd0b[_0x48417c(0x25c)][_0x48417c(0x1a7c)]&&_0x34fd0b[_0x48417c(0x25c)]['errors'][_0x48417c(0xfd0)]){_0x9d549[_0x48417c(0x1a7c)]=_0x34fd0b[_0x48417c(0x25c)][_0x48417c(0x1a7c)]||[{'message':_0x34fd0b[_0x48417c(0x147f)](),'type':_0x48417c(0x25a2)}];for(let _0x2848f3=0x0;_0x2848f3<_0x34fd0b[_0x48417c(0x25c)]['errors'][_0x48417c(0xfd0)];_0x2848f3+=0x1){_0x38189a[_0x48417c(0x218e)]({'title':_0x34fd0b[_0x48417c(0x25c)][_0x48417c(0x1a7c)][_0x2848f3]['type'],'msg':_0x34fd0b[_0x48417c(0x25c)][_0x48417c(0x1a7c)][_0x2848f3][_0x48417c(0x155e)]});}}else _0x38189a['error']({'title':_0x34fd0b[_0x48417c(0x291)]?_0x48417c(0xeb9)+_0x34fd0b[_0x48417c(0x291)]+_0x48417c(0x1657)+_0x34fd0b[_0x48417c(0xc22)]:'api.voiceRecording.save','msg':_0x34fd0b[_0x48417c(0x25c)]?JSON[_0x48417c(0x2701)](_0x34fd0b[_0x48417c(0x25c)]['message']):_0x34fd0b[_0x48417c(0x147f)]()});});}function _0x499490(){const _0xefefa=_0x2ac73a;_0x9d549[_0xefefa(0x1a7c)]=[],_0x3dce9b['voiceRecording'][_0xefefa(0x687)]({'id':_0x9d549[_0xefefa(0x23d1)]['id']},_0x9d549['voiceRecording'])['$promise'][_0xefefa(0x1cb0)](function(_0xb0a89f){const _0x81e94b=_0xefefa,_0x12f7f6=_0x39641b()[_0x81e94b(0x13b4)](_0x9d549[_0x81e94b(0x44e)],{'id':_0xb0a89f['id']});_0x12f7f6&&_0x39641b()[_0x81e94b(0x9c1)](_0x12f7f6,_0x39641b()[_0x81e94b(0x169b)](_0xb0a89f['toJSON'](),_0x39641b()[_0x81e94b(0x1be5)](_0x12f7f6))),_0x38189a[_0x81e94b(0x829)]({'title':_0x81e94b(0x29a1),'msg':_0x9d549[_0x81e94b(0x23d1)][_0x81e94b(0x16b6)]?_0x9d549[_0x81e94b(0x23d1)][_0x81e94b(0x16b6)]+_0x81e94b(0xedb):''}),_0x32f0f7(_0xb0a89f);})[_0xefefa(0x1c4)](function(_0x3a9be3){const _0x3686c9=_0xefefa;if(_0x3a9be3[_0x3686c9(0x25c)]&&_0x3a9be3[_0x3686c9(0x25c)][_0x3686c9(0x1a7c)]&&_0x3a9be3[_0x3686c9(0x25c)][_0x3686c9(0x1a7c)][_0x3686c9(0xfd0)]){_0x9d549[_0x3686c9(0x1a7c)]=_0x3a9be3['data']['errors']||[{'message':_0x3a9be3[_0x3686c9(0x147f)](),'type':_0x3686c9(0x20a7)}];for(let _0x218c30=0x0;_0x218c30<_0x3a9be3[_0x3686c9(0x25c)]['errors'][_0x3686c9(0xfd0)];_0x218c30++){_0x38189a[_0x3686c9(0x218e)]({'title':_0x3a9be3[_0x3686c9(0x25c)][_0x3686c9(0x1a7c)][_0x218c30][_0x3686c9(0x66a)],'msg':_0x3a9be3['data'][_0x3686c9(0x1a7c)][_0x218c30][_0x3686c9(0x155e)]});}}else _0x38189a['error']({'title':_0x3a9be3['status']?_0x3686c9(0xeb9)+_0x3a9be3['status']+_0x3686c9(0x1657)+_0x3a9be3['statusText']:_0x3686c9(0x20a7),'msg':_0x3a9be3[_0x3686c9(0x25c)]?JSON[_0x3686c9(0x2701)](_0x3a9be3[_0x3686c9(0x25c)][_0x3686c9(0x155e)]):_0x3a9be3[_0x3686c9(0x147f)]()});});}function _0xb9d4ae(_0x1b1420){const _0xc5ca71=_0x2ac73a;_0x9d549[_0xc5ca71(0x1a7c)]=[];const _0x46684a=_0x47386c[_0xc5ca71(0x1551)]()[_0xc5ca71(0x1386)](_0xc5ca71(0x1a2e))[_0xc5ca71(0x862)]('The\x20voiceRecording\x20will\x20be\x20deleted.')[_0xc5ca71(0x15ad)](_0xc5ca71(0x174f))['ok']('Delete')[_0xc5ca71(0x696)](_0xc5ca71(0xde1))['targetEvent'](_0x1b1420);_0x47386c[_0xc5ca71(0xe27)](_0x46684a)[_0xc5ca71(0x1cb0)](function(){const _0x3c2d89=_0xc5ca71;_0x3dce9b['voiceRecording']['delete']({'id':_0x9d549[_0x3c2d89(0x23d1)]['id']})[_0x3c2d89(0x1d77)]['then'](function(){const _0x141075=_0x3c2d89;_0x39641b()['remove'](_0x9d549['voiceRecordings'],{'id':_0x9d549[_0x141075(0x23d1)]['id']}),_0x38189a[_0x141075(0x829)]({'title':'VoiceRecording\x20properly\x20deleted!','msg':(_0x9d549['voiceRecording']['name']||_0x141075(0x23d1))+_0x141075(0x3f5)}),_0x32f0f7(_0x9d549[_0x141075(0x23d1)]);})['catch'](function(_0x36a64c){const _0xe0c60b=_0x3c2d89;if(_0x36a64c[_0xe0c60b(0x25c)]&&_0x36a64c[_0xe0c60b(0x25c)][_0xe0c60b(0x1a7c)]&&_0x36a64c[_0xe0c60b(0x25c)][_0xe0c60b(0x1a7c)][_0xe0c60b(0xfd0)]){_0x9d549[_0xe0c60b(0x1a7c)]=_0x36a64c[_0xe0c60b(0x25c)][_0xe0c60b(0x1a7c)]||[{'message':_0x36a64c['toString'](),'type':'api.voiceRecording.delete'}];for(let _0x42285b=0x0;_0x42285b<_0x36a64c[_0xe0c60b(0x25c)]['errors'][_0xe0c60b(0xfd0)];_0x42285b++){_0x38189a['error']({'title':_0x36a64c[_0xe0c60b(0x25c)][_0xe0c60b(0x1a7c)][_0x42285b][_0xe0c60b(0x66a)],'msg':_0x36a64c[_0xe0c60b(0x25c)][_0xe0c60b(0x1a7c)][_0x42285b][_0xe0c60b(0x155e)]});}}else _0x38189a[_0xe0c60b(0x218e)]({'title':_0x36a64c['status']?_0xe0c60b(0xeb9)+_0x36a64c[_0xe0c60b(0x291)]+_0xe0c60b(0x1657)+_0x36a64c['statusText']:_0xe0c60b(0xa61),'msg':_0x36a64c[_0xe0c60b(0x25c)]?JSON[_0xe0c60b(0x2701)](_0x36a64c[_0xe0c60b(0x25c)][_0xe0c60b(0x155e)]):_0x36a64c[_0xe0c60b(0x155e)]||_0x36a64c['toString']()});});},function(){});}function _0x539fa4(_0x10c988){return _0x10c988===null?undefined:new Date(_0x10c988);}function _0x32f0f7(_0x21898c){const _0x1d8e47=_0x2ac73a;_0x47386c[_0x1d8e47(0x1426)](_0x21898c);}}const _0x2a9eb3=_0xe2fda;;function _0x4b1776(){const _0x28ea08=_0x5537c6,_0x1e7fb9=this;_0x1e7fb9[_0x28ea08(0x23d1)]={},_0x1e7fb9[_0x28ea08(0x1a8e)]=_0x39b90c;function _0x39b90c(_0xc1cf14){const _0x317f3d=_0x28ea08;_0x1e7fb9[_0x317f3d(0x23d1)]=_0xc1cf14;}}const _0xe3ea63=_0x4b1776;;_0xb7d2a3[_0x5537c6(0x15b6)]=['$state','$location',_0x5537c6(0xcb9),'$document','$translate','license','setting',_0x5537c6(0x142b),'toasty',_0x5537c6(0x1774),_0x5537c6(0x23d1),_0x5537c6(0x2199)];function _0xb7d2a3(_0x26a429,_0x95fe85,_0x36b161,_0x2e962e,_0x4ad145,_0x139724,_0xd4d1b6,_0x4ad5a3,_0x237b41,_0x4857ef,_0x4f1116,_0x1168c8){const _0x215daa=_0x5537c6,_0x2a748e=this;_0x2a748e[_0x215daa(0xe76)]=_0x4857ef[_0x215daa(0x21e8)](),_0x2a748e[_0x215daa(0x8a5)]=_0x139724,_0x2a748e[_0x215daa(0x9ca)]=_0xd4d1b6,_0x2a748e[_0x215daa(0x1b0c)]=_0x2a748e[_0x215daa(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2a748e['location']=_0x95fe85['protocol']()+_0x215daa(0x138b)+_0x95fe85[_0x215daa(0x17d8)](),_0x2a748e[_0x215daa(0x23d1)]=_0x4f1116||_0x26a429[_0x215daa(0x1dfe)][_0x215daa(0x23d1)]||{},_0x2a748e[_0x215daa(0x2199)]=_0x1168c8&&_0x1168c8[_0x215daa(0x184d)]==0x1?_0x1168c8[_0x215daa(0x2214)][0x0]:null,_0x2a748e[_0x215daa(0x1b1a)]=_0x4857ef[_0x215daa(0x14ea)](_0x2a748e[_0x215daa(0x2199)]?_0x2a748e[_0x215daa(0x2199)]['crudPermissions']:null),_0x2a748e[_0x215daa(0xf4c)]={},_0x2a748e[_0x215daa(0x8ec)]=_0x26a429['params'][_0x215daa(0x291e)]||0x0,_0x2a748e['alert']=_0x237b41[_0x215daa(0x28c7)],_0x2a748e[_0x215daa(0x4ed)]=_0x5969a6,_0x2a748e[_0x215daa(0x57e)]=_0x59e0d3;function _0x5969a6(){const _0x1af0f8=_0x215daa;_0x26a429['go']('app.voice.voiceRecordings',{},{'reload':_0x1af0f8(0x1b39)});}function _0x59e0d3(){const _0x47489b=_0x215daa;_0x4ad5a3['voiceRecording']['update']({'id':_0x2a748e[_0x47489b(0x23d1)]['id']},_0x2a748e[_0x47489b(0x23d1)])[_0x47489b(0x1d77)][_0x47489b(0x1cb0)](function(){const _0xd8e5de=_0x47489b;_0x237b41[_0xd8e5de(0x829)]({'title':_0xd8e5de(0x1e24),'msg':_0x2a748e[_0xd8e5de(0x23d1)][_0xd8e5de(0x16b6)]?_0x2a748e['voiceRecording'][_0xd8e5de(0x16b6)]+'\x20has\x20been\x20updated!':''});})[_0x47489b(0x1c4)](function(_0xf836f4){const _0x4681f5=_0x47489b;_0x237b41[_0x4681f5(0x218e)]({'title':_0xf836f4[_0x4681f5(0x291)]?_0x4681f5(0xeb9)+_0xf836f4['status']+'\x20-\x20'+_0xf836f4['statusText']:'SYSTEM:GETvoiceRecording','msg':_0xf836f4[_0x4681f5(0x25c)]?JSON['stringify'](_0xf836f4[_0x4681f5(0x25c)]):_0xf836f4[_0x4681f5(0x147f)]()});});}}const _0x58992d=_0xb7d2a3;;const _0x34bd3d=_0x5074a3['p']+_0x5537c6(0xe58);;_0x5c58a8[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$window','$state',_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'$timeout',_0x5537c6(0x1ae),_0x5537c6(0x44e),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x5c58a8(_0x2c58c3,_0x287bb3,_0x94b698,_0x38729e,_0x5747a3,_0x584572,_0x5ea548,_0x4cabb6,_0x1f1d25,_0x3a3467,_0x5e9abd,_0x3d972a,_0x224445,_0xbc186c,_0x2a8c54,_0x3f285b,_0x19d3c2){const _0x46d812=_0x5537c6,_0x4f9a36=this;_0x4f9a36[_0x46d812(0x8a5)]=_0x3f285b,_0x4f9a36[_0x46d812(0x9ca)]=_0x19d3c2,_0x4f9a36['currentUser']=_0x2a8c54[_0x46d812(0x21e8)](),_0x4f9a36['voiceRecordings']=_0x1f1d25||{'count':0x0,'rows':[]},_0x4f9a36[_0x46d812(0x44a)]=_0x3a3467,_0x4f9a36[_0x46d812(0x2199)]=_0x5e9abd&&_0x5e9abd[_0x46d812(0x184d)]==0x1?_0x5e9abd[_0x46d812(0x2214)][0x0]:null,_0x4f9a36[_0x46d812(0x1b1a)]=_0x2a8c54[_0x46d812(0x14ea)](_0x4f9a36[_0x46d812(0x2199)]?_0x4f9a36[_0x46d812(0x2199)][_0x46d812(0x1b1a)]:null),_0x4f9a36['table']=_0x46d812(0x44e),_0x4f9a36[_0x46d812(0x1d20)]='',_0x4f9a36[_0x46d812(0x1cdf)]=null,_0x4f9a36[_0x46d812(0x43e)]=[],_0x4f9a36[_0x46d812(0xae2)]={'fields':_0x46d812(0xed8),'sort':_0x46d812(0x282),'createdAt':'@msUtils.firstLastDayMonth()','limit':0xa,'page':0x1},_0x4f9a36[_0x46d812(0xae2)][_0x46d812(0x24cb)]=_0x224445['firstLastDayMonth'](),_0x4f9a36['quickFilters']=_0xef68e4();function _0xef68e4(){const _0x237045=_0x46d812;return[{'name':_0x237045(0x68d),'key':_0x237045(0x24cb),'type':_0x237045(0x18ec),'label':_0x237045(0x2186)}];}_0x4f9a36['editstate']=_0x40f26b,_0x4f9a36['runtranscriberuntranscribesentiment']=_0x15788d,_0x4f9a36[_0x46d812(0x1034)]=_0x32a4f7,_0x4f9a36['runsentimentruntranscribesentiment']=_0x35d01e,_0x4f9a36['downloadtranscribefile2']=_0x2fed35,_0x4f9a36['downloadfile2']=_0x4fa0bf,_0x4f9a36[_0x46d812(0x27fe)]=_0xdc85cf,_0x4f9a36[_0x46d812(0x829)]=_0x5073a5,_0x4f9a36['getVoiceRecordings']=_0x2090f7,_0x4f9a36['createOrEditVoiceRecording']=_0x2fa15a,_0x4f9a36['deleteVoiceRecording']=_0x3c8c48,_0x4f9a36[_0x46d812(0x25ce)]=_0xcd607,_0x4f9a36['deleteSelectedVoiceRecordings']=_0x25512e,_0x4f9a36[_0x46d812(0x1382)]=_0x2219f6,_0x4f9a36['selectAllVoiceRecordings']=_0x53f926;function _0x40f26b(_0x3eac67){const _0x57aa02=_0x46d812;_0x94b698['go'](_0x57aa02(0x170e),{'id':_0x3eac67['id'],'voiceRecording':_0x3eac67,'crudPermissions':_0x4f9a36[_0x57aa02(0x1b1a)]});}_0x4f9a36['runtranscribeSelectedVoiceRecordings']=_0x681492;function _0x15788d(_0x2591e1){const _0x59282b=_0x46d812;return _0x3d972a['voiceRecording'][_0x59282b(0x264e)]({'id':_0x2591e1['id'],'runSentiment':![]})[_0x59282b(0x1d77)][_0x59282b(0x1cb0)](function(_0x50823d){const _0x1910fe=_0x59282b;_0xbc186c[_0x1910fe(0x829)]({'title':_0x4cabb6['instant'](_0x1910fe(0x2650)),'msg':_0x4cabb6[_0x1910fe(0x25cc)]('VOICE.RUNTRANSCRIBE_VOICERECORDING')+_0x1910fe(0xf9c)}),_0x2591e1[_0x1910fe(0x152b)]=_0x50823d[_0x1910fe(0x152b)];})['catch'](function(_0x30923c){const _0x3fa98c=_0x59282b;_0xbc186c['error']({'title':_0x4cabb6[_0x3fa98c(0x25cc)](_0x3fa98c(0x2650)),'msg':_0x30923c[_0x3fa98c(0x25c)]?_0x30923c[_0x3fa98c(0x25c)]['message']?_0x30923c[_0x3fa98c(0x25c)][_0x3fa98c(0x155e)]:JSON[_0x3fa98c(0x2701)](_0x30923c['data']):_0x30923c[_0x3fa98c(0x147f)]()});});}function _0x681492(){const _0x475022=_0x46d812;_0x4f9a36[_0x475022(0x43e)][_0x475022(0xf90)](function(_0x4ac8d6){_0x15788d(_0x4ac8d6);}),_0x4f9a36[_0x475022(0x43e)]=[];}_0x4f9a36['runtranscribesentimentSelectedVoiceRecordings']=_0x2c0501;function _0x32a4f7(_0x48192a){const _0x5e75b5=_0x46d812;return _0x3d972a[_0x5e75b5(0x23d1)][_0x5e75b5(0x264e)]({'id':_0x48192a['id'],'runSentiment':!![]})[_0x5e75b5(0x1d77)][_0x5e75b5(0x1cb0)](function(_0x457ef0){const _0x1e2426=_0x5e75b5;_0xbc186c[_0x1e2426(0x829)]({'title':_0x4cabb6[_0x1e2426(0x25cc)]('VOICE.RUNTRANSCRIBESENTIMENT_VOICERECORDING'),'msg':_0x4cabb6[_0x1e2426(0x25cc)](_0x1e2426(0x1ff0))+_0x1e2426(0xf9c)}),_0x48192a[_0x1e2426(0x152b)]=_0x457ef0[_0x1e2426(0x152b)];})[_0x5e75b5(0x1c4)](function(_0x3f3629){const _0x23c6eb=_0x5e75b5;_0xbc186c[_0x23c6eb(0x218e)]({'title':_0x4cabb6[_0x23c6eb(0x25cc)](_0x23c6eb(0x1ff0)),'msg':_0x3f3629[_0x23c6eb(0x25c)]?_0x3f3629[_0x23c6eb(0x25c)]['message']?_0x3f3629[_0x23c6eb(0x25c)][_0x23c6eb(0x155e)]:JSON[_0x23c6eb(0x2701)](_0x3f3629['data']):_0x3f3629[_0x23c6eb(0x147f)]()});});}function _0x2c0501(){const _0x2ea34b=_0x46d812;_0x4f9a36[_0x2ea34b(0x43e)][_0x2ea34b(0xf90)](function(_0x250c5d){_0x32a4f7(_0x250c5d);}),_0x4f9a36[_0x2ea34b(0x43e)]=[];}_0x4f9a36[_0x46d812(0xca3)]=_0x204f6c;function _0x35d01e(_0xd4450c){const _0x9970=_0x46d812;return _0x3d972a[_0x9970(0x23d1)][_0x9970(0x264e)]({'id':_0xd4450c['id'],'runSentiment':!![]})[_0x9970(0x1d77)][_0x9970(0x1cb0)](function(){const _0x3f9dc3=_0x9970;_0xbc186c['success']({'title':_0x4cabb6['instant'](_0x3f9dc3(0x765)),'msg':_0x4cabb6['instant'](_0x3f9dc3(0x765))+_0x3f9dc3(0xf9c)});})[_0x9970(0x1c4)](function(_0x5e5266){const _0x432556=_0x9970;_0xbc186c[_0x432556(0x218e)]({'title':_0x4cabb6[_0x432556(0x25cc)](_0x432556(0x765)),'msg':_0x5e5266[_0x432556(0x25c)]?_0x5e5266['data'][_0x432556(0x155e)]?_0x5e5266['data']['message']:JSON[_0x432556(0x2701)](_0x5e5266[_0x432556(0x25c)]):_0x5e5266[_0x432556(0x147f)]()});});}function _0x204f6c(){const _0x4ce950=_0x46d812;_0x4f9a36[_0x4ce950(0x43e)][_0x4ce950(0xf90)](function(_0x33efc8){_0x35d01e(_0x33efc8);}),_0x4f9a36[_0x4ce950(0x43e)]=[];}function _0x2fed35(_0x387bfc){const _0x2036c5=_0x46d812;let _0x2a1187=![];const _0x1d5418=!_0x39641b()[_0x2036c5(0x958)](_0x387bfc[_0x2036c5(0x1f31)])?_0x387bfc[_0x2036c5(0x1f31)]:_0x387bfc[_0x2036c5(0x327)]['substring'](_0x387bfc[_0x2036c5(0x327)][_0x2036c5(0x142c)]('.'));return _0x2a1187=_0x1d5418===_0x2036c5(0x2006)?!![]:![],_0x3d972a[_0x2036c5(0x23d1)][_0x2036c5(0x194e)]({'id':_0x387bfc['id']})['$promise']['then'](function(_0x4b915f){const _0xbd3925=_0x2036c5,_0x393540=[_0x4b915f[_0xbd3925(0xef0)]];let _0x147f3f=_0xbd3925(0x26ec);const _0x220954=new Blob(_0x393540,{'type':_0x4b915f[_0xbd3925(0x66a)]});_0x147f3f=_0x387bfc[_0xbd3925(0x1425)]+_0xbd3925(0x113e);const _0x20bcd4=window['document'][_0xbd3925(0x8c6)]('a');_0x20bcd4[_0xbd3925(0x23b9)]('href',URL[_0xbd3925(0x2247)](_0x220954)),_0x20bcd4[_0xbd3925(0x23b9)](_0xbd3925(0x26ec),_0x147f3f),document[_0xbd3925(0x1ed9)]['appendChild'](_0x20bcd4),_0x20bcd4[_0xbd3925(0x20b8)]();})[_0x2036c5(0x1c4)](function(_0x365b37){const _0x4d3b9b=_0x2036c5;if(_0x365b37[_0x4d3b9b(0x25c)]&&_0x365b37[_0x4d3b9b(0x25c)]['errors']&&_0x365b37[_0x4d3b9b(0x25c)]['errors'][_0x4d3b9b(0xfd0)])for(let _0xdea6f1=0x0;_0xdea6f1<_0x365b37[_0x4d3b9b(0x25c)][_0x4d3b9b(0x1a7c)]['length'];_0xdea6f1++){_0xbc186c[_0x4d3b9b(0x218e)]({'title':_0x365b37['data']['errors'][_0xdea6f1][_0x4d3b9b(0x66a)],'msg':_0x365b37[_0x4d3b9b(0x25c)]['errors'][_0xdea6f1][_0x4d3b9b(0x155e)]});}else{if(String(_0x365b37[_0x4d3b9b(0x291)])===_0x4d3b9b(0x2926)&&_0x2a1187===![])_0xbc186c[_0x4d3b9b(0x28c7)]({'title':_0x4cabb6['instant'](_0x4d3b9b(0x638)),'msg':_0x4cabb6[_0x4d3b9b(0x25cc)](_0x4d3b9b(0x19bc))});else String(_0x365b37[_0x4d3b9b(0x291)])==='404'?_0xbc186c[_0x4d3b9b(0x28c7)]({'title':_0x4cabb6[_0x4d3b9b(0x25cc)](_0x4d3b9b(0x638)),'msg':_0x4cabb6[_0x4d3b9b(0x25cc)](_0x4d3b9b(0x869))}):_0xbc186c['error']({'title':_0x365b37[_0x4d3b9b(0x291)]?_0x4d3b9b(0xeb9)+_0x365b37[_0x4d3b9b(0x291)]+_0x4d3b9b(0x1657)+_0x365b37[_0x4d3b9b(0xc22)]:_0x4d3b9b(0x25a2),'msg':_0x365b37[_0x4d3b9b(0x25c)]?JSON[_0x4d3b9b(0x2701)](_0x365b37['data'][_0x4d3b9b(0x155e)]):_0x365b37[_0x4d3b9b(0x147f)]()});}});}function _0x471497(_0x570218){const _0x59876f=_0x46d812;let _0x51a366=_0x570218[_0x59876f(0x142c)]('/')>-0x1?_0x570218[_0x59876f(0x2371)](_0x570218[_0x59876f(0x142c)]('/')+0x1):_0x570218[_0x59876f(0x142c)]('\x5c')>-0x1?_0x570218[_0x59876f(0x2371)](_0x570218[_0x59876f(0x142c)]('\x5c')+0x1):_0x570218;return _0x51a366=_0x51a366[_0x59876f(0x2371)](0x0,_0x51a366[_0x59876f(0x142c)]('.')),_0x51a366;}function _0x4fa0bf(_0x14383b){const _0x3413fb=_0x46d812;let _0x304b8c=![];const _0x37889c=!_0x39641b()['isNil'](_0x14383b[_0x3413fb(0x1f31)])?_0x14383b[_0x3413fb(0x1f31)]:_0x14383b[_0x3413fb(0x327)][_0x3413fb(0x2371)](_0x14383b[_0x3413fb(0x327)][_0x3413fb(0x142c)]('.'));return _0x304b8c=_0x37889c===_0x3413fb(0x2006)?!![]:![],_0x3d972a[_0x3413fb(0x23d1)][_0x3413fb(0x26ec)]({'id':_0x14383b['id']})['$promise'][_0x3413fb(0x1cb0)](function(_0x598e34){const _0x4c591f=_0x3413fb,_0x274d9a=[_0x598e34[_0x4c591f(0xef0)]];let _0xe7b579=_0x4c591f(0x26ec);const _0x1c2e70=new Blob(_0x274d9a,{'type':_0x598e34[_0x4c591f(0x66a)]});_0xe7b579=_0x471497(_0x14383b['value'])+_0x14383b[_0x4c591f(0x1f31)];const _0x1f3762=window[_0x4c591f(0x1db8)][_0x4c591f(0x8c6)]('a');_0x1f3762[_0x4c591f(0x23b9)](_0x4c591f(0x105b),URL[_0x4c591f(0x2247)](_0x1c2e70)),_0x1f3762[_0x4c591f(0x23b9)](_0x4c591f(0x26ec),_0xe7b579),document[_0x4c591f(0x1ed9)][_0x4c591f(0x23de)](_0x1f3762),_0x1f3762[_0x4c591f(0x20b8)]();})[_0x3413fb(0x1c4)](function(_0x625d62){const _0x2b43ad=_0x3413fb;if(_0x625d62[_0x2b43ad(0x25c)]&&_0x625d62[_0x2b43ad(0x25c)][_0x2b43ad(0x1a7c)]&&_0x625d62[_0x2b43ad(0x25c)][_0x2b43ad(0x1a7c)][_0x2b43ad(0xfd0)])for(let _0x5281e3=0x0;_0x5281e3<_0x625d62['data'][_0x2b43ad(0x1a7c)]['length'];_0x5281e3++){_0xbc186c[_0x2b43ad(0x218e)]({'title':_0x625d62[_0x2b43ad(0x25c)][_0x2b43ad(0x1a7c)][_0x5281e3]['type'],'msg':_0x625d62[_0x2b43ad(0x25c)]['errors'][_0x5281e3]['message']});}else{if(String(_0x625d62[_0x2b43ad(0x291)])===_0x2b43ad(0x2926)&&_0x304b8c===![])_0xbc186c[_0x2b43ad(0x28c7)]({'title':_0x4cabb6[_0x2b43ad(0x25cc)]('APP.CANT_DOWNLOAD_THIS_FILE'),'msg':_0x4cabb6[_0x2b43ad(0x25cc)](_0x2b43ad(0x19bc))});else String(_0x625d62[_0x2b43ad(0x291)])===_0x2b43ad(0x2926)?_0xbc186c[_0x2b43ad(0x28c7)]({'title':_0x4cabb6[_0x2b43ad(0x25cc)](_0x2b43ad(0x638)),'msg':_0x4cabb6[_0x2b43ad(0x25cc)](_0x2b43ad(0x869))}):_0xbc186c[_0x2b43ad(0x218e)]({'title':_0x625d62['status']?_0x2b43ad(0xeb9)+_0x625d62[_0x2b43ad(0x291)]+_0x2b43ad(0x1657)+_0x625d62[_0x2b43ad(0xc22)]:'api.voiceRecording.save','msg':_0x625d62[_0x2b43ad(0x25c)]?JSON[_0x2b43ad(0x2701)](_0x625d62[_0x2b43ad(0x25c)][_0x2b43ad(0x155e)]):_0x625d62[_0x2b43ad(0x147f)]()});}});}function _0xdc85cf(_0x343759,_0x99c5ad){const _0x39aa55=_0x46d812,_0x358c82=_0x5747a3[_0x39aa55(0x1551)]()[_0x39aa55(0x1386)](_0x39aa55(0x140b)+_0x39641b()[_0x39aa55(0xa75)](_0x39aa55(0x23d1))+'?')[_0x39aa55(0x49e)](_0x39aa55(0x204d)+(_0x343759[_0x39aa55(0x16b6)]||'voiceRecording')+''+_0x39aa55(0x1b6))[_0x39aa55(0x15ad)](_0x39aa55(0x1efc))[_0x39aa55(0x728)](_0x99c5ad)['ok']('OK')[_0x39aa55(0x696)](_0x39aa55(0x24ba));_0x5747a3[_0x39aa55(0xe27)](_0x358c82)['then'](function(){_0x3c8c48(_0x343759);},function(){const _0x484b7e=_0x39aa55;console[_0x484b7e(0x1b4f)](_0x484b7e(0x24ba));});}let _0x42d999=!![],_0x52ba06=0x1;_0x2c58c3[_0x46d812(0x614)](_0x46d812(0x957),function(_0x1d7586,_0x243285){const _0x4f54e1=_0x46d812;_0x42d999?_0x5ea548(function(){_0x42d999=![];}):(!_0x243285&&(_0x52ba06=_0x4f9a36[_0x4f54e1(0xae2)][_0x4f54e1(0x1c7b)]),_0x1d7586!==_0x243285&&(_0x4f9a36[_0x4f54e1(0xae2)]['page']=0x1),!_0x1d7586&&(_0x4f9a36[_0x4f54e1(0xae2)][_0x4f54e1(0x1c7b)]=_0x52ba06),_0x4f9a36[_0x4f54e1(0x82d)]());});function _0x5073a5(_0x46a214){const _0x563661=_0x46d812;_0x4f9a36[_0x563661(0x44e)]=_0x46a214||{'count':0x0,'rows':[]};}function _0x2090f7(){const _0x1c1410=_0x46d812;_0x4f9a36[_0x1c1410(0xae2)]['offset']=(_0x4f9a36[_0x1c1410(0xae2)][_0x1c1410(0x1c7b)]-0x1)*_0x4f9a36[_0x1c1410(0xae2)][_0x1c1410(0x236)],_0x2a8c54['hasRole']('admin')?_0x4f9a36[_0x1c1410(0x2061)]=_0x3d972a['voiceRecording']['get'](_0x4f9a36[_0x1c1410(0xae2)],_0x5073a5)[_0x1c1410(0x1d77)]:(_0x4f9a36[_0x1c1410(0xae2)]['id']=_0x4f9a36[_0x1c1410(0x44a)]['id'],_0x4f9a36['query'][_0x1c1410(0x1f74)]=_0x1c1410(0x2ce),_0x4f9a36['promise']=_0x3d972a[_0x1c1410(0x44a)]['getResources'](_0x4f9a36[_0x1c1410(0xae2)],_0x5073a5)[_0x1c1410(0x1d77)]);}function _0x2fa15a(_0x4f0ce8,_0x1ff0b2){const _0x4801db=_0x46d812;_0x5747a3[_0x4801db(0xe27)]({'controller':_0x4801db(0x15ec),'controllerAs':'vm','templateUrl':_0x34bd3d,'parent':angular['element'](_0x584572[_0x4801db(0x1ed9)]),'targetEvent':_0x4f0ce8,'clickOutsideToClose':!![],'locals':{'voiceRecording':_0x1ff0b2,'voiceRecordings':_0x4f9a36[_0x4801db(0x44e)][_0x4801db(0x2214)],'license':_0x4f9a36['license'],'setting':_0x4f9a36['setting'],'crudPermissions':_0x4f9a36['crudPermissions']}});}function _0x3c8c48(_0x43a4d4){const _0x2ca1ae=_0x46d812;_0x3d972a[_0x2ca1ae(0x23d1)][_0x2ca1ae(0x111d)]({'id':_0x43a4d4['id']})['$promise'][_0x2ca1ae(0x1cb0)](function(){const _0xaa51ba=_0x2ca1ae;_0x39641b()[_0xaa51ba(0x152a)](_0x4f9a36[_0xaa51ba(0x44e)][_0xaa51ba(0x2214)],{'id':_0x43a4d4['id']}),_0x4f9a36[_0xaa51ba(0x44e)][_0xaa51ba(0x184d)]-=0x1,!_0x4f9a36['voiceRecordings'][_0xaa51ba(0x2214)]['length']&&_0x4f9a36[_0xaa51ba(0x82d)](),_0xbc186c[_0xaa51ba(0x829)]({'title':_0x39641b()[_0xaa51ba(0xa75)](_0xaa51ba(0x124a))+_0xaa51ba(0x2663),'msg':_0x43a4d4[_0xaa51ba(0x16b6)]?_0x43a4d4[_0xaa51ba(0x16b6)]+_0xaa51ba(0x3f5):''});})[_0x2ca1ae(0x1c4)](function(_0xb1b23e){const _0x564cfb=_0x2ca1ae;if(_0xb1b23e[_0x564cfb(0x25c)]&&_0xb1b23e[_0x564cfb(0x25c)][_0x564cfb(0x1a7c)]&&_0xb1b23e[_0x564cfb(0x25c)]['errors']['length']){_0x4f9a36[_0x564cfb(0x1a7c)]=_0xb1b23e[_0x564cfb(0x25c)][_0x564cfb(0x1a7c)]||[{'message':_0xb1b23e[_0x564cfb(0x147f)](),'type':_0x564cfb(0x2484)}];for(let _0x528ffd=0x0;_0x528ffd<_0xb1b23e['data'][_0x564cfb(0x1a7c)]['length'];_0x528ffd++){_0xbc186c[_0x564cfb(0x218e)]({'title':_0xb1b23e[_0x564cfb(0x25c)]['errors'][_0x528ffd][_0x564cfb(0x66a)],'msg':_0xb1b23e[_0x564cfb(0x25c)]['errors'][_0x528ffd][_0x564cfb(0x155e)]});}}else _0xbc186c[_0x564cfb(0x218e)]({'title':_0xb1b23e[_0x564cfb(0x291)]?_0x564cfb(0xeb9)+_0xb1b23e[_0x564cfb(0x291)]+'\x20-\x20'+_0xb1b23e['statusText']:_0x564cfb(0x2484),'msg':_0xb1b23e[_0x564cfb(0x25c)]?JSON[_0x564cfb(0x2701)](_0xb1b23e[_0x564cfb(0x25c)][_0x564cfb(0x155e)]):_0xb1b23e[_0x564cfb(0x155e)]||_0xb1b23e['toString']()});});}function _0xcd607(){const _0x4e38ae=_0x46d812,_0x58dacf=angular['copy'](_0x4f9a36[_0x4e38ae(0x43e)]);return _0x4f9a36[_0x4e38ae(0x43e)]=[],_0x58dacf;}function _0x25512e(_0x3a44b9){const _0x26331c=_0x46d812,_0x2885db=_0x5747a3[_0x26331c(0x1551)]()['title'](_0x26331c(0xeef))[_0x26331c(0x49e)](_0x26331c(0x204d)+_0x4f9a36[_0x26331c(0x43e)]['length']+'\x20selected'+_0x26331c(0x1b6))[_0x26331c(0x15ad)](_0x26331c(0x2644))[_0x26331c(0x728)](_0x3a44b9)['ok']('OK')[_0x26331c(0x696)](_0x26331c(0x24ba));_0x5747a3[_0x26331c(0xe27)](_0x2885db)[_0x26331c(0x1cb0)](function(){const _0x5e050d=_0x26331c;_0x4f9a36[_0x5e050d(0x43e)]['forEach'](function(_0x3cfe17){_0x3c8c48(_0x3cfe17);}),_0x4f9a36[_0x5e050d(0x43e)]=[];});}function _0x2219f6(){const _0x43729c=_0x46d812;_0x4f9a36[_0x43729c(0x43e)]=[];}function _0x53f926(){const _0x47f38f=_0x46d812;_0x4f9a36['selectedVoiceRecordings']=_0x4f9a36[_0x47f38f(0x44e)]['rows'];}}const _0x34a201=_0x5c58a8;;const _0xe49ae3=_0x5074a3['p']+'src/js/modules/main/apps/voice/views/voiceQueues/voiceQueues.html/voiceQueues.html';;const _0x17a6e8=_0x5074a3['p']+_0x5537c6(0x25ae);;const _0x499839=_0x5074a3['p']+_0x5537c6(0x29d8);;const _0x3c8009=_0x5074a3['p']+_0x5537c6(0x14e8);;const _0x1f6272=_0x5074a3['p']+_0x5537c6(0x19a2);;const _0x49fbc3=_0x5074a3['p']+_0x5537c6(0xf14);;const _0x4ca2b7=_0x5074a3['p']+_0x5537c6(0x683);;const _0x225e12=_0x5074a3['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/view.html/view.html';;const _0x247934=_0x5074a3['p']+_0x5537c6(0xf81);;const _0x50a728=_0x5074a3['p']+'src/js/modules/main/apps/voice/views/voicemails/voicemails.html/voicemails.html';;const _0x32aa72=_0x5074a3['p']+_0x5537c6(0x274);;const _0x50a67a=_0x5074a3['p']+_0x5537c6(0x9a2);;const _0x520808=_0x5074a3['p']+'src/js/modules/main/apps/voice/views/musiconholds/edit/view.html/view.html';;const _0x195136=_0x5074a3['p']+_0x5537c6(0xd55);;const _0x263aa8=_0x5074a3['p']+_0x5537c6(0x7e1);;const _0x336455=_0x5074a3['p']+_0x5537c6(0x16ee);;const _0xf87e8b=_0x5074a3['p']+_0x5537c6(0x263b);;_0x3dee09[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6),'$translatePartialLoaderProvider'];function _0x3dee09(_0x58d077,_0x8faf57){const _0x136163=_0x5537c6;_0x58d077[_0x136163(0x27e0)](_0x136163(0x29bb),{'abstract':!![],'url':_0x136163(0x1936)})[_0x136163(0x27e0)]('app.voice.voiceQueues',{'url':_0x136163(0x19dc),'views':{'content@app':{'templateUrl':_0xe49ae3,'controller':_0x136163(0x636)}},'resolve':{'voiceQueues':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0xe65fff,_0x75f2bc){const _0x18a240=_0x136163;return _0x75f2bc[_0x18a240(0x22b6)](_0x18a240(0x1c60))?_0xe65fff[_0x18a240(0x19a3)]('voiceQueue@get',{'fields':_0x18a240(0x4fe),'type':'inbound','sort':_0x18a240(0x282),'channel':_0x18a240(0x1fd4),'limit':0xa,'offset':0x0}):_0xe65fff['resolve'](_0x18a240(0x12da),{'id':_0x75f2bc['getCurrentUser']()[_0x18a240(0x13c1)],'section':'VoiceQueues','fields':_0x18a240(0x4fe),'type':_0x18a240(0x26c0),'sort':_0x18a240(0x282),'channel':'voice','limit':0xa,'offset':0x0});}],'userProfile':[_0x136163(0x1e0b),'Auth',function(_0x475677,_0x47d5e0){const _0x2b647d=_0x136163;return _0x47d5e0[_0x2b647d(0x22b6)](_0x2b647d(0x1c60))?null:_0x475677['resolve'](_0x2b647d(0x9ae),{'fields':_0x2b647d(0x279),'id':_0x47d5e0[_0x2b647d(0x21e8)]()[_0x2b647d(0x13c1)]});}],'userProfileSection':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0x23ccb7,_0x3b7ff5){const _0x36af96=_0x136163;return _0x3b7ff5[_0x36af96(0x22b6)](_0x36af96(0x1c60))?null:_0x23ccb7[_0x36af96(0x19a3)](_0x36af96(0x2182),{'fields':_0x36af96(0x1f5f),'userProfileId':_0x3b7ff5[_0x36af96(0x21e8)]()[_0x36af96(0x13c1)],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':'voice'})['state'](_0x136163(0x1c1e),{'url':_0x136163(0x1bf2),'params':{'voiceQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x17a6e8,'controller':_0x136163(0xf68)}},'resolve':{'voiceQueue':[_0x136163(0x1e0b),_0x136163(0x225c),function(_0x1fbadf,_0x199168){const _0x1b086d=_0x136163;return _0x1fbadf['resolve'](_0x1b086d(0x1c4d),{'fields':_0x1b086d(0x4fe),'id':_0x199168['id']});}],'userProfileSection':[_0x136163(0x1e0b),'Auth',function(_0x11e964,_0x48f123){const _0x4be708=_0x136163;return _0x11e964[_0x4be708(0x19a3)](_0x4be708(0x2182),{'fields':_0x4be708(0x1f5f),'userProfileId':_0x48f123['getCurrentUser']()[_0x4be708(0x13c1)],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':_0x136163(0x1fd4)})[_0x136163(0x27e0)](_0x136163(0x1802),{'url':_0x136163(0xce4),'views':{'content@app':{'templateUrl':_0x499839,'controller':'InboundRoutesController\x20as\x20vm'}},'resolve':{'inboundroutes':[_0x136163(0x1e0b),'Auth',function(_0xd20ab8,_0x4be055){const _0x4608e5=_0x136163;return _0x4be055[_0x4608e5(0x22b6)](_0x4608e5(0x1c60))?_0xd20ab8[_0x4608e5(0x19a3)](_0x4608e5(0x1a3),{'fields':_0x4608e5(0x1aec),'type':_0x4608e5(0x26c0),'sort':_0x4608e5(0x282),'VoiceExtensionId':'null','limit':0xa,'offset':0x0}):_0xd20ab8[_0x4608e5(0x19a3)](_0x4608e5(0x12da),{'id':_0x4be055['getCurrentUser']()['userProfileId'],'section':_0x4608e5(0x23e2),'fields':_0x4608e5(0x1aec),'type':_0x4608e5(0x26c0),'sort':_0x4608e5(0x282),'VoiceExtensionId':_0x4608e5(0xd38),'limit':0xa,'offset':0x0});}],'userProfile':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0x3926a6,_0x26f22c){const _0x5cafb0=_0x136163;return _0x26f22c[_0x5cafb0(0x22b6)](_0x5cafb0(0x1c60))?null:_0x3926a6[_0x5cafb0(0x19a3)](_0x5cafb0(0x9ae),{'fields':_0x5cafb0(0x279),'id':_0x26f22c[_0x5cafb0(0x21e8)]()[_0x5cafb0(0x13c1)]});}],'userProfileSection':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0x1f3a0d,_0x548e95){const _0xfc7e0b=_0x136163;return _0x548e95[_0xfc7e0b(0x22b6)](_0xfc7e0b(0x1c60))?null:_0x1f3a0d['resolve'](_0xfc7e0b(0x2182),{'fields':_0xfc7e0b(0x1f5f),'userProfileId':_0x548e95[_0xfc7e0b(0x21e8)]()[_0xfc7e0b(0x13c1)],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':_0x136163(0x1fd4)})[_0x136163(0x27e0)](_0x136163(0x1992),{'url':_0x136163(0x1bf2),'params':{'inboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3c8009,'controller':_0x136163(0x25d2)}},'resolve':{'inboundroute':[_0x136163(0x1e0b),_0x136163(0x225c),function(_0x37e6dc,_0x51fd7d){const _0x4a5391=_0x136163;return _0x37e6dc['resolve'](_0x4a5391(0x1a3),{'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','id':_0x51fd7d['id']});}],'userProfileSection':['apiResolver',_0x136163(0x1774),function(_0x51db42,_0x14f0a7){const _0x17323b=_0x136163;return _0x51db42[_0x17323b(0x19a3)](_0x17323b(0x2182),{'fields':_0x17323b(0x1f5f),'userProfileId':_0x14f0a7[_0x17323b(0x21e8)]()[_0x17323b(0x13c1)],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':_0x136163(0x1fd4)})['state'](_0x136163(0x2143),{'url':_0x136163(0xaf8),'views':{'content@app':{'templateUrl':_0x1f6272,'controller':'OutboundRoutesController\x20as\x20vm'}},'resolve':{'outboundroutes':['apiResolver',_0x136163(0x1774),function(_0x16932d,_0x2ac4ca){const _0x46f44a=_0x136163;return _0x2ac4ca[_0x46f44a(0x22b6)](_0x46f44a(0x1c60))?_0x16932d['resolve'](_0x46f44a(0x1a3),{'fields':_0x46f44a(0x18ff),'type':_0x46f44a(0x895),'sort':_0x46f44a(0x282),'VoiceExtensionId':_0x46f44a(0xd38),'limit':0xa,'offset':0x0}):_0x16932d[_0x46f44a(0x19a3)]('userProfile@getResources',{'id':_0x2ac4ca[_0x46f44a(0x21e8)]()[_0x46f44a(0x13c1)],'section':_0x46f44a(0x257c),'fields':_0x46f44a(0x18ff),'type':_0x46f44a(0x895),'sort':_0x46f44a(0x282),'VoiceExtensionId':_0x46f44a(0xd38),'limit':0xa,'offset':0x0});}],'userProfile':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0x3aa006,_0x3dd4e0){const _0x2636e4=_0x136163;return _0x3dd4e0[_0x2636e4(0x22b6)](_0x2636e4(0x1c60))?null:_0x3aa006[_0x2636e4(0x19a3)](_0x2636e4(0x9ae),{'fields':_0x2636e4(0x279),'id':_0x3dd4e0[_0x2636e4(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x136163(0x1e0b),'Auth',function(_0x28798c,_0x29934d){const _0x55580b=_0x136163;return _0x29934d[_0x55580b(0x22b6)](_0x55580b(0x1c60))?null:_0x28798c[_0x55580b(0x19a3)]('userProfileSection@get',{'fields':_0x55580b(0x1f5f),'userProfileId':_0x29934d[_0x55580b(0x21e8)]()[_0x55580b(0x13c1)],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':_0x136163(0x1fd4)})['state']('app.voice.outboundroutes.edit',{'url':_0x136163(0x1bf2),'params':{'outboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x49fbc3,'controller':_0x136163(0x1cc2)}},'resolve':{'outboundroute':[_0x136163(0x1e0b),_0x136163(0x225c),function(_0x278474,_0x2a1141){const _0x6f1e78=_0x136163;return _0x278474[_0x6f1e78(0x19a3)]('voiceExtension@get',{'fields':'createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','id':_0x2a1141['id']});}],'userProfileSection':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0x534aef,_0x44723b){const _0x407eb9=_0x136163;return _0x534aef[_0x407eb9(0x19a3)](_0x407eb9(0x2182),{'fields':_0x407eb9(0x1f5f),'userProfileId':_0x44723b[_0x407eb9(0x21e8)]()[_0x407eb9(0x13c1)],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':_0x136163(0x1fd4)})[_0x136163(0x27e0)](_0x136163(0x525),{'url':_0x136163(0x29e1),'views':{'content@app':{'templateUrl':_0x4ca2b7,'controller':_0x136163(0x2299)}},'resolve':{'internalroutes':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0x3132d6,_0x5588f0){const _0x4c7da2=_0x136163;return _0x5588f0[_0x4c7da2(0x22b6)](_0x4c7da2(0x1c60))?_0x3132d6[_0x4c7da2(0x19a3)](_0x4c7da2(0x1a3),{'fields':_0x4c7da2(0x1aec),'type':_0x4c7da2(0xdbd),'sort':_0x4c7da2(0x282),'VoiceExtensionId':_0x4c7da2(0xd38),'limit':0xa,'offset':0x0}):_0x3132d6[_0x4c7da2(0x19a3)](_0x4c7da2(0x12da),{'id':_0x5588f0[_0x4c7da2(0x21e8)]()[_0x4c7da2(0x13c1)],'section':_0x4c7da2(0x6fc),'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':_0x4c7da2(0xdbd),'sort':'-updatedAt','VoiceExtensionId':_0x4c7da2(0xd38),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x4af6d9,_0x1c45a0){const _0x3de4e4=_0x136163;return _0x1c45a0[_0x3de4e4(0x22b6)](_0x3de4e4(0x1c60))?null:_0x4af6d9[_0x3de4e4(0x19a3)]('userProfile@get',{'fields':_0x3de4e4(0x279),'id':_0x1c45a0['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0xf7433e,_0x2eb7d1){const _0x50033f=_0x136163;return _0x2eb7d1[_0x50033f(0x22b6)]('admin')?null:_0xf7433e[_0x50033f(0x19a3)](_0x50033f(0x2182),{'fields':_0x50033f(0x1f5f),'userProfileId':_0x2eb7d1[_0x50033f(0x21e8)]()[_0x50033f(0x13c1)],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':_0x136163(0x1fd4)})['state'](_0x136163(0x1166),{'url':'/:id?tab','params':{'internalroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x225e12,'controller':_0x136163(0x13eb)}},'resolve':{'internalroute':[_0x136163(0x1e0b),_0x136163(0x225c),function(_0x3a90fe,_0x416687){const _0x3dc2a2=_0x136163;return _0x3a90fe[_0x3dc2a2(0x19a3)](_0x3dc2a2(0x1a3),{'fields':_0x3dc2a2(0x1aec),'id':_0x416687['id']});}],'userProfileSection':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0x2dfd1c,_0x1d0d89){const _0x38d7d2=_0x136163;return _0x2dfd1c['resolve'](_0x38d7d2(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1d0d89[_0x38d7d2(0x21e8)]()[_0x38d7d2(0x13c1)],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':_0x136163(0x1fd4)})[_0x136163(0x27e0)]('app.voice.contexts',{'url':'/contexts','views':{'content@app':{'templateUrl':_0x247934,'controller':_0x136163(0x23a7)}},'resolve':{'contexts':['apiResolver',_0x136163(0x1774),function(_0x3fdd6b,_0x4bf8fc){const _0x2bce08=_0x136163;return _0x4bf8fc['hasRole'](_0x2bce08(0x1c60))?_0x3fdd6b[_0x2bce08(0x19a3)](_0x2bce08(0x28f),{'fields':_0x2bce08(0x12e8),'sort':_0x2bce08(0x282),'defaultEntry':_0x2bce08(0xdec),'limit':0xa,'offset':0x0}):_0x3fdd6b[_0x2bce08(0x19a3)](_0x2bce08(0x12da),{'id':_0x4bf8fc['getCurrentUser']()[_0x2bce08(0x13c1)],'section':'Contexts','fields':_0x2bce08(0x12e8),'sort':'-updatedAt','defaultEntry':_0x2bce08(0xdec),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x136163(0x1774),function(_0x189e6d,_0x451e29){const _0x36fc4a=_0x136163;return _0x451e29[_0x36fc4a(0x22b6)](_0x36fc4a(0x1c60))?null:_0x189e6d[_0x36fc4a(0x19a3)](_0x36fc4a(0x9ae),{'fields':_0x36fc4a(0x279),'id':_0x451e29[_0x36fc4a(0x21e8)]()[_0x36fc4a(0x13c1)]});}],'userProfileSection':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0x3a7c5e,_0x405658){const _0xe138ac=_0x136163;return _0x405658[_0xe138ac(0x22b6)](_0xe138ac(0x1c60))?null:_0x3a7c5e[_0xe138ac(0x19a3)](_0xe138ac(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x405658['getCurrentUser']()[_0xe138ac(0x13c1)],'sectionId':0x195});}]},'authenticate':!![],'permissionId':0x195,'bodyClass':'voice'})[_0x136163(0x27e0)](_0x136163(0x2098),{'url':_0x136163(0x1e2),'views':{'content@app':{'templateUrl':_0x50a728,'controller':_0x136163(0x1799)}},'resolve':{'voicemails':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0x109243,_0x22baae){const _0xb453b7=_0x136163;return _0x22baae['hasRole'](_0xb453b7(0x1c60))?_0x109243[_0xb453b7(0x19a3)](_0xb453b7(0x278f),{'fields':'createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg','sort':_0xb453b7(0x282),'limit':0xa,'offset':0x0}):_0x109243['resolve'](_0xb453b7(0x12da),{'id':_0x22baae[_0xb453b7(0x21e8)]()[_0xb453b7(0x13c1)],'section':'Voicemails','fields':_0xb453b7(0x2813),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x136163(0x1774),function(_0x32a4cb,_0x28a1cb){const _0x3af804=_0x136163;return _0x28a1cb[_0x3af804(0x22b6)]('admin')?null:_0x32a4cb[_0x3af804(0x19a3)]('userProfile@get',{'fields':_0x3af804(0x279),'id':_0x28a1cb[_0x3af804(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0x388c44,_0x2f48de){const _0x3442e0=_0x136163;return _0x2f48de['hasRole'](_0x3442e0(0x1c60))?null:_0x388c44['resolve'](_0x3442e0(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2f48de['getCurrentUser']()[_0x3442e0(0x13c1)],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':'voice'})['state']('app.voice.voicemails.edit',{'url':'/:id?tab','params':{'voicemail':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x32aa72,'controller':_0x136163(0x407)}},'resolve':{'voicemail':[_0x136163(0x1e0b),_0x136163(0x225c),function(_0x5ba83a,_0x22aa44){const _0x42d267=_0x136163;return _0x5ba83a[_0x42d267(0x19a3)](_0x42d267(0x278f),{'fields':'createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg','id':_0x22aa44['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x183c73,_0x5a15c1){const _0x2aab54=_0x136163;return _0x183c73[_0x2aab54(0x19a3)](_0x2aab54(0x2182),{'fields':_0x2aab54(0x1f5f),'userProfileId':_0x5a15c1[_0x2aab54(0x21e8)]()['userProfileId'],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':_0x136163(0x1fd4)})[_0x136163(0x27e0)](_0x136163(0x156a),{'url':_0x136163(0x2234),'views':{'content@app':{'templateUrl':_0x50a67a,'controller':_0x136163(0x21c6)}},'resolve':{'musiconholds':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0x40fff3,_0xde28d5){const _0x42d70a=_0x136163;return _0xde28d5['hasRole'](_0x42d70a(0x1c60))?_0x40fff3[_0x42d70a(0x19a3)](_0x42d70a(0x25bd),{'fields':'createdAt,updatedAt,id,name,mode,directory,application,format,sort','defaultEntry':_0x42d70a(0xdec),'limit':0xa,'offset':0x0}):_0x40fff3[_0x42d70a(0x19a3)]('userProfile@getResources',{'id':_0xde28d5['getCurrentUser']()[_0x42d70a(0x13c1)],'section':'MusicOnHolds','fields':'createdAt,updatedAt,id,name,mode,directory,application,format,sort','defaultEntry':_0x42d70a(0xdec),'limit':0xa,'offset':0x0});}],'userProfile':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0x1ffa4e,_0x13cd24){const _0x545c79=_0x136163;return _0x13cd24[_0x545c79(0x22b6)]('admin')?null:_0x1ffa4e[_0x545c79(0x19a3)]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x13cd24[_0x545c79(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0x165832,_0x5f068b){const _0x57ff9d=_0x136163;return _0x5f068b[_0x57ff9d(0x22b6)](_0x57ff9d(0x1c60))?null:_0x165832['resolve'](_0x57ff9d(0x2182),{'fields':_0x57ff9d(0x1f5f),'userProfileId':_0x5f068b[_0x57ff9d(0x21e8)]()[_0x57ff9d(0x13c1)],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0x136163(0x1fd4)})[_0x136163(0x27e0)](_0x136163(0x2062),{'url':_0x136163(0x1bf2),'params':{'musiconhold':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x520808,'controller':_0x136163(0x1a9a)}},'resolve':{'musiconhold':[_0x136163(0x1e0b),_0x136163(0x225c),function(_0xa7e695,_0x530737){const _0x58d6b4=_0x136163;return _0xa7e695[_0x58d6b4(0x19a3)](_0x58d6b4(0x25bd),{'fields':_0x58d6b4(0x1e64),'id':_0x530737['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x273ab6,_0x5e414d){const _0x39e693=_0x136163;return _0x273ab6[_0x39e693(0x19a3)](_0x39e693(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5e414d[_0x39e693(0x21e8)]()[_0x39e693(0x13c1)],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0x136163(0x1fd4)})[_0x136163(0x27e0)](_0x136163(0x1b39),{'url':'/voiceRecordings','views':{'content@app':{'templateUrl':_0x195136,'controller':_0x136163(0xf57)}},'resolve':{'voiceRecordings':['apiResolver',_0x136163(0x1774),_0x136163(0xde8),function(_0x408435,_0x1a3058,_0x289d54){const _0xfc32d8=_0x136163;return _0x1a3058['hasRole'](_0xfc32d8(0x1c60))?_0x408435['resolve'](_0xfc32d8(0x1faf),{'fields':_0xfc32d8(0xed8),'sort':_0xfc32d8(0x282),'createdAt':_0x289d54[_0xfc32d8(0xa1e)](),'limit':0xa,'offset':0x0}):_0x408435[_0xfc32d8(0x19a3)]('userProfile@getResources',{'id':_0x1a3058[_0xfc32d8(0x21e8)]()[_0xfc32d8(0x13c1)],'section':'VoiceRecordings','fields':_0xfc32d8(0xed8),'sort':_0xfc32d8(0x282),'createdAt':_0x289d54[_0xfc32d8(0xa1e)](),'limit':0xa,'offset':0x0});}],'userProfile':[_0x136163(0x1e0b),'Auth',function(_0x46f7a4,_0x93af4f){const _0x1f5fb2=_0x136163;return _0x93af4f[_0x1f5fb2(0x22b6)](_0x1f5fb2(0x1c60))?null:_0x46f7a4['resolve'](_0x1f5fb2(0x9ae),{'fields':_0x1f5fb2(0x279),'id':_0x93af4f[_0x1f5fb2(0x21e8)]()[_0x1f5fb2(0x13c1)]});}],'userProfileSection':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0x373be1,_0x380e97){const _0x41cd63=_0x136163;return _0x380e97[_0x41cd63(0x22b6)](_0x41cd63(0x1c60))?null:_0x373be1[_0x41cd63(0x19a3)](_0x41cd63(0x2182),{'fields':_0x41cd63(0x1f5f),'userProfileId':_0x380e97['getCurrentUser']()[_0x41cd63(0x13c1)],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':_0x136163(0x1fd4)})[_0x136163(0x27e0)](_0x136163(0x170e),{'url':_0x136163(0x1bf2),'params':{'voiceRecording':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x263aa8,'controller':_0x136163(0x1f4f)}},'resolve':{'voiceRecording':[_0x136163(0x1e0b),_0x136163(0x225c),function(_0xb757e2,_0x1dfbad){const _0x154482=_0x136163;return _0xb757e2[_0x154482(0x19a3)]('voiceRecording@get',{'fields':_0x154482(0xed8),'id':_0x1dfbad['id']});}],'userProfileSection':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0x4e8895,_0x19953f){const _0x97c762=_0x136163;return _0x4e8895[_0x97c762(0x19a3)](_0x97c762(0x2182),{'fields':_0x97c762(0x1f5f),'userProfileId':_0x19953f[_0x97c762(0x21e8)]()[_0x97c762(0x13c1)],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':_0x136163(0x1fd4)})['state'](_0x136163(0x2309),{'url':_0x136163(0x12fa),'views':{'content@app':{'templateUrl':_0x336455,'controller':_0x136163(0x2503)}},'resolve':{'chanSpies':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0x3e3072,_0x10cf42){const _0x5e0ecc=_0x136163;return _0x10cf42[_0x5e0ecc(0x22b6)](_0x5e0ecc(0x1c60))?_0x3e3072['resolve'](_0x5e0ecc(0x1d6a),{'fields':_0x5e0ecc(0x2498),'sort':_0x5e0ecc(0x282),'limit':0xa,'offset':0x0}):_0x3e3072['resolve'](_0x5e0ecc(0x12da),{'id':_0x10cf42[_0x5e0ecc(0x21e8)]()[_0x5e0ecc(0x13c1)],'section':_0x5e0ecc(0x10c9),'fields':'createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0x3f63fd,_0x7bf4d){const _0x4d2d49=_0x136163;return _0x7bf4d[_0x4d2d49(0x22b6)](_0x4d2d49(0x1c60))?null:_0x3f63fd[_0x4d2d49(0x19a3)](_0x4d2d49(0x9ae),{'fields':'id,name,crudPermissions','id':_0x7bf4d['getCurrentUser']()[_0x4d2d49(0x13c1)]});}],'userProfileSection':['apiResolver','Auth',function(_0x16c772,_0x2c8275){const _0xe4966c=_0x136163;return _0x2c8275[_0xe4966c(0x22b6)]('admin')?null:_0x16c772[_0xe4966c(0x19a3)](_0xe4966c(0x2182),{'fields':_0xe4966c(0x1f5f),'userProfileId':_0x2c8275[_0xe4966c(0x21e8)]()[_0xe4966c(0x13c1)],'sectionId':0x199});}]},'authenticate':!![],'permissionId':0x199,'bodyClass':'voice'})['state'](_0x136163(0x1db0),{'url':_0x136163(0x1f0a),'views':{'content@app':{'templateUrl':_0xf87e8b,'controller':'VoicePrefixesController\x20as\x20vm'}},'resolve':{'voicePrefixes':['apiResolver',_0x136163(0x1774),function(_0x336540,_0x551b57){const _0x5ec6a3=_0x136163;return _0x551b57[_0x5ec6a3(0x22b6)](_0x5ec6a3(0x1c60))?_0x336540['resolve']('voicePrefix@get',{'fields':_0x5ec6a3(0x1dae),'limit':0xa,'offset':0x0}):_0x336540[_0x5ec6a3(0x19a3)](_0x5ec6a3(0x12da),{'id':_0x551b57[_0x5ec6a3(0x21e8)]()['userProfileId'],'section':_0x5ec6a3(0x111b),'fields':_0x5ec6a3(0x1dae),'limit':0xa,'offset':0x0});}],'userProfile':[_0x136163(0x1e0b),_0x136163(0x1774),function(_0xf2bdeb,_0x42a64d){const _0x4e8388=_0x136163;return _0x42a64d['hasRole'](_0x4e8388(0x1c60))?null:_0xf2bdeb[_0x4e8388(0x19a3)](_0x4e8388(0x9ae),{'fields':_0x4e8388(0x279),'id':_0x42a64d[_0x4e8388(0x21e8)]()[_0x4e8388(0x13c1)]});}],'userProfileSection':['apiResolver',_0x136163(0x1774),function(_0x2c3919,_0x38401c){const _0x29d3b6=_0x136163;return _0x38401c[_0x29d3b6(0x22b6)]('admin')?null:_0x2c3919[_0x29d3b6(0x19a3)](_0x29d3b6(0x2182),{'fields':_0x29d3b6(0x1f5f),'userProfileId':_0x38401c[_0x29d3b6(0x21e8)]()[_0x29d3b6(0x13c1)],'sectionId':0x19a});}]},'authenticate':!![],'permissionId':0x19a,'bodyClass':'voice'}),_0x8faf57[_0x136163(0x4e7)](_0x136163(0x295b));}angular[_0x5537c6(0x9ab)]('app.voice',[_0x5537c6(0x2770),_0x5537c6(0x2135),_0x5537c6(0x1260),_0x5537c6(0xacf),_0x5537c6(0x18f6),_0x5537c6(0xd19),_0x5537c6(0x44c),_0x5537c6(0x2ec),'ngAnimate',_0x5537c6(0x167d),_0x5537c6(0x208f),_0x5537c6(0x1b65),'mwFormUtils',_0x5537c6(0x3b9),_0x5537c6(0x7c9),_0x5537c6(0xeb5),_0x5537c6(0x27af),_0x5537c6(0x13b6),_0x5537c6(0x1cbd),'angular.filter',_0x5537c6(0xb19)])[_0x5537c6(0xa60)](_0x3dee09)[_0x5537c6(0x6e5)]('ChanSpiesController',_0x18d2c6)[_0x5537c6(0x6e5)](_0x5537c6(0x8f9),_0x4e46d6)['controller'](_0x5537c6(0x230c),_0x44c60f)[_0x5537c6(0x6e5)](_0x5537c6(0x3ab),_0x43f917)[_0x5537c6(0x6e5)](_0x5537c6(0x1ebb),_0x421c40)[_0x5537c6(0x6e5)]('InboundRouteActionsController',_0x32d3a7)[_0x5537c6(0x6e5)](_0x5537c6(0x84d),_0x4bff43)[_0x5537c6(0x6e5)]('EditInboundAppcustomDialogController',_0x3288f3)[_0x5537c6(0x6e5)]('EditInboundAppdialDialogController',_0x373cc7)['controller'](_0x5537c6(0x17a),_0x2b9ff1)[_0x5537c6(0x6e5)](_0x5537c6(0x1448),_0x1a77b7)[_0x5537c6(0x6e5)](_0x5537c6(0x1e38),_0x255db6)[_0x5537c6(0x6e5)](_0x5537c6(0x23e5),_0x136a5d)['controller'](_0x5537c6(0x1838),_0x35489b)[_0x5537c6(0x6e5)](_0x5537c6(0xa96),_0x4fe3ea)[_0x5537c6(0x6e5)](_0x5537c6(0x841),_0x282566)[_0x5537c6(0x6e5)]('EditInboundAppringgroupDialogController',_0x347c0a)[_0x5537c6(0x6e5)](_0x5537c6(0x10af),_0x39be69)['controller'](_0x5537c6(0x2092),_0x940b06)[_0x5537c6(0x6e5)]('InboundRouteController',_0x534e34)[_0x5537c6(0x6e5)](_0x5537c6(0x78c),_0x4ee0f2)[_0x5537c6(0x6e5)](_0x5537c6(0x2820),_0x289d0e)[_0x5537c6(0x6e5)]('InternalRouteActionsController',_0x2218eb)[_0x5537c6(0x6e5)](_0x5537c6(0x1953),_0x52bf91)[_0x5537c6(0x6e5)]('EditInternalAppcustomDialogController',_0x33af41)[_0x5537c6(0x6e5)]('EditInternalAppdialDialogController',_0x1eff40)[_0x5537c6(0x6e5)](_0x5537c6(0x11c1),_0x1d2d24)[_0x5537c6(0x6e5)](_0x5537c6(0x1201),_0x35eed8)[_0x5537c6(0x6e5)](_0x5537c6(0x1882),_0x24c0f3)['controller'](_0x5537c6(0x1259),_0x3a58c5)[_0x5537c6(0x6e5)](_0x5537c6(0x80f),_0x3d071f)[_0x5537c6(0x6e5)]('EditInternalAppplaybackDialogController',_0x50c3d8)[_0x5537c6(0x6e5)](_0x5537c6(0x27c5),_0x484cce)[_0x5537c6(0x6e5)](_0x5537c6(0xce5),_0x33dda0)[_0x5537c6(0x6e5)](_0x5537c6(0x19b0),_0x3e3a9e)[_0x5537c6(0x6e5)](_0x5537c6(0x22a5),_0x542d3f)[_0x5537c6(0x6e5)](_0x5537c6(0xf6a),_0x96bd48)[_0x5537c6(0x6e5)](_0x5537c6(0x10fd),_0x2486a8)[_0x5537c6(0x6e5)](_0x5537c6(0x53e),_0x273c1c)[_0x5537c6(0x6e5)](_0x5537c6(0xe94),_0x1f4a42)[_0x5537c6(0x6e5)](_0x5537c6(0x1c23),_0x8d62a1)['controller'](_0x5537c6(0x35c),_0x3d1765)[_0x5537c6(0x6e5)](_0x5537c6(0x1d8a),_0x5f5d79),angular[_0x5537c6(0x9ab)]('app.voice')['controller'](_0x5537c6(0x2289),_0x34ef01)[_0x5537c6(0x6e5)](_0x5537c6(0x896),_0x54f418)[_0x5537c6(0x6e5)](_0x5537c6(0x1532),_0x2390a1)[_0x5537c6(0x6e5)](_0x5537c6(0xc87),_0x3bd9a1)[_0x5537c6(0x6e5)](_0x5537c6(0xee3),_0x3d6e4b)[_0x5537c6(0x6e5)](_0x5537c6(0x14b9),_0x235064)[_0x5537c6(0x6e5)](_0x5537c6(0x1d1a),_0xb2608f)[_0x5537c6(0x6e5)](_0x5537c6(0x1e5),_0x413fca)[_0x5537c6(0x6e5)]('VoicemailMessagesController',_0x50e593)[_0x5537c6(0x6e5)](_0x5537c6(0x1c83),_0x2df443)[_0x5537c6(0x6e5)](_0x5537c6(0x1492),_0x15cde9)[_0x5537c6(0x6e5)](_0x5537c6(0x786),_0x469560)[_0x5537c6(0x6e5)]('voicePrefixagentaddController',_0x4e1e2d)[_0x5537c6(0x6e5)](_0x5537c6(0x1147),_0x5f19df)[_0x5537c6(0x6e5)]('CreateOrEditVoiceQueueDialogController',_0x14261d)['controller'](_0x5537c6(0x148f),_0xa3b6c4)[_0x5537c6(0x6e5)](_0x5537c6(0x604),_0x1ade76)[_0x5537c6(0x6e5)](_0x5537c6(0x1314),_0x217ec2)[_0x5537c6(0x6e5)]('VoiceQueuesController',_0x38499e)[_0x5537c6(0x6e5)](_0x5537c6(0x15ec),_0x2a9eb3)['controller'](_0x5537c6(0x15b2),_0xe3ea63)[_0x5537c6(0x6e5)](_0x5537c6(0x8f2),_0x58992d)[_0x5537c6(0x6e5)](_0x5537c6(0x331),_0x34a201);;const _0xe068ae=_0x5074a3['p']+_0x5537c6(0x1f21);;const _0x51d0c9=_0x5074a3['p']+_0x5537c6(0x10aa);;const _0x2360f3=_0x5074a3['p']+_0x5537c6(0x2747);;const _0x8ebc41=_0x5074a3['p']+_0x5537c6(0x135e);;const _0x552dd6=_0x5074a3['p']+_0x5537c6(0x1daf);;const _0x1c4910=_0x5074a3['p']+_0x5537c6(0x885);;const _0x4df0b6=_0x5074a3['p']+_0x5537c6(0xbd3);;_0x2a032b['$inject']=[_0x5537c6(0x1463),'$q',_0x5537c6(0x2168),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0xc34),_0x5537c6(0x8de),_0x5537c6(0xc12),_0x5537c6(0x212d),_0x5537c6(0x142b),_0x5537c6(0x1986),_0x5537c6(0x9bf),'helperClasses',_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x1774),'license',_0x5537c6(0x1714)];function _0x2a032b(_0x312680,_0x25ca12,_0x5532eb,_0x5000db,_0x40a7b6,_0x5b5841,_0x2b583b,_0x1f23a6,_0x434004,_0x1d7492,_0x21222e,_0x364e93,_0x3ea0a1,_0xed6744,_0x2d161c,_0x2ae1e5,_0xf775bd,_0x3a7138){const _0x281b88=_0x5537c6,_0x361ac1=this,_0x3e651e=[_0x281b88(0x70a),_0x281b88(0xa28),'lastLoginAt',_0x281b88(0x25db),_0x281b88(0x16e6),_0x281b88(0x25db),_0x281b88(0xdbd),_0x281b88(0x16aa),_0x281b88(0xf0c),_0x281b88(0x1c7d),_0x281b88(0x2035),'smsPause','whatsappPause',_0x281b88(0x1ce),'voicePause',_0x281b88(0x1aee),_0x281b88(0x391),_0x281b88(0x2789),_0x281b88(0x3d0),_0x281b88(0x9cd),_0x281b88(0x2451),_0x281b88(0x132d),_0x281b88(0x1cd3),'mailCurrentCapacity','smsCurrentCapacity',_0x281b88(0x700),_0x281b88(0x2336),_0x281b88(0x2208),_0x281b88(0x1446),_0x281b88(0x11b2),'smsStatus',_0x281b88(0x2453),_0x281b88(0x542),_0x281b88(0x2de),_0x281b88(0x1b11),'openchannelStatusTime',_0x281b88(0x568),_0x281b88(0x9eb),_0x281b88(0x2064),_0x281b88(0x1997),_0x281b88(0xc9c),_0x281b88(0x11cf),'destconnectedlinenum','screenrecording',_0x281b88(0x2569),_0x281b88(0x1f23)],_0x167503=[_0x281b88(0xf0c),_0x281b88(0x1c7d),_0x281b88(0x2035),'smsPause',_0x281b88(0x24ff),'faxPause',_0x281b88(0x2478),_0x281b88(0xa28)];_0x361ac1['currentUser']=_0x2ae1e5[_0x281b88(0x21e8)](),_0x361ac1[_0x281b88(0x46c)]=[_0x281b88(0x1c7e),'inuse',_0x281b88(0x5b2),'onhold',_0x281b88(0x1abd)],_0x361ac1[_0x281b88(0x8de)]=_0x2b583b||{'count':0x0,'rows':[]},_0x361ac1['license']=_0xf775bd,_0x361ac1[_0x281b88(0x44a)]=_0xed6744,_0x361ac1[_0x281b88(0x2199)]=_0x2d161c&&_0x2d161c[_0x281b88(0x184d)]==0x1?_0x2d161c['rows'][0x0]:null,_0x361ac1['crudPermissions']=_0x2ae1e5['parseCrudPermissions'](_0x361ac1[_0x281b88(0x2199)]?_0x361ac1[_0x281b88(0x2199)][_0x281b88(0x1b1a)]:null),_0x361ac1[_0x281b88(0xc12)]=_0x1f23a6?_0x39641b()['keyBy'](_0x1f23a6[_0x281b88(0x2214)]?_0x1f23a6['rows']:[],'id'):{},_0x361ac1[_0x281b88(0x212d)]=_0x434004?_0x39641b()[_0x281b88(0x2631)](_0x434004[_0x281b88(0x2214)]?_0x434004['rows']:[],'id'):{},_0x361ac1[_0x281b88(0x260a)]={},_0x361ac1[_0x281b88(0x997)]=![],_0x361ac1['order']=[],_0x361ac1[_0x281b88(0x1fdd)]={};for(const _0x439f6d in _0x361ac1[_0x281b88(0xc12)]){typeof _0x361ac1[_0x281b88(0xc12)][_0x439f6d]!==_0x281b88(0x16b5)&&(_0x361ac1['agents'][_0x439f6d][_0x281b88(0x1a8e)]=!![]);}_0x361ac1[_0x281b88(0xae2)]={'limit':0xa,'page':0x1,'order':_0x281b88(0x1d14),'globalStatusFilter':'','pauseTypeFilter':''},_0x361ac1[_0x281b88(0x1366)]=_0x1c63bc,_0x361ac1[_0x281b88(0x6ad)]=_0x1cf725,_0x361ac1['pause']=_0x1b251f,_0x361ac1['unPause']=_0x46c3b1,_0x361ac1[_0x281b88(0x191a)]=_0xca5f1,_0x361ac1[_0x281b88(0x616)]=_0x56e529,_0x361ac1[_0x281b88(0xfe7)]=_0x53af39,_0x361ac1[_0x281b88(0x1090)]=_0x3274a2,_0x361ac1[_0x281b88(0x225e)]=_0x2cdc06,_0x361ac1[_0x281b88(0x1bc4)]=_0x1bbc8f,_0x361ac1[_0x281b88(0x294c)]=_0x22814d,_0x361ac1[_0x281b88(0x13e7)]=_0x189847,_0x361ac1[_0x281b88(0x1a34)]=_0x1cd5e0,_0x361ac1[_0x281b88(0x1978)]=_0x34956f,_0x361ac1[_0x281b88(0x1b4a)]=_0x3f9837,_0x361ac1[_0x281b88(0xd97)]=_0x2cbaad,_0x21222e['on'](_0x281b88(0x2464),_0x361ac1[_0x281b88(0x294c)]),_0x21222e['on'](_0x281b88(0x14c6),_0x361ac1[_0x281b88(0x13e7)]),_0x21222e['on']('user:agentconnect',_0x361ac1[_0x281b88(0x1978)]),_0x21222e['on'](_0x281b88(0x10b3),_0x361ac1[_0x281b88(0x1b4a)]),_0x1cd5e0();let _0x19c100=_0x3a7138(function(){const _0x37ee95=_0x281b88;_0x361ac1['load']&&(_0x361ac1[_0x37ee95(0x997)]=![],_0x1cd5e0());},0x3e7);function _0x1cd5e0(){const _0x5de179=_0x281b88;_0x361ac1[_0x5de179(0x997)]=![];const _0x53cbeb=_0x25ca12[_0x5de179(0x11f4)]();_0x361ac1[_0x5de179(0x2061)]=_0x53cbeb['promise'],_0x361ac1['filteredAgents']=[],_0x361ac1[_0x5de179(0x237f)]=[],_0x39641b()[_0x5de179(0x1ebd)](_0x361ac1[_0x5de179(0xc12)],function(_0x3aebda,_0x40ce35){const _0x2f795c=_0x5de179;_0x361ac1[_0x2f795c(0x212d)][_0x40ce35]&&_0x39641b()[_0x2f795c(0x9c1)](_0x3aebda,_0x39641b()['pick'](_0x39641b()['omit'](_0x361ac1[_0x2f795c(0x212d)][_0x40ce35],_0x167503),_0x3e651e)),_0x53af39(_0x3aebda),_0x3aebda[_0x2f795c(0xa28)]?(_0x361ac1[_0x2f795c(0xe0e)][_0x2f795c(0x2785)](_0x3aebda),_0x361ac1[_0x2f795c(0x1fdd)][_0x3aebda['internal']]=_0x40ce35):_0x3aebda[_0x2f795c(0xdb9)]=_0x39641b()[_0x2f795c(0x106d)](_0x543b5a()()['format']('x'));});_0x361ac1[_0x5de179(0xae2)][_0x5de179(0x1ef1)]&&_0x39641b()[_0x5de179(0x152a)](_0x361ac1[_0x5de179(0xe0e)],function(_0x2fc723){const _0x150f1d=_0x5de179;return _0x2fc723[_0x150f1d(0x1fbe)]!==_0x361ac1[_0x150f1d(0xae2)]['globalStatusFilter'];});_0x361ac1['query'][_0x5de179(0x25ff)]&&_0x39641b()[_0x5de179(0x152a)](_0x361ac1[_0x5de179(0xe0e)],function(_0x52a784){const _0x4c8d8d=_0x5de179;return _0x52a784[_0x4c8d8d(0x16e6)]!==_0x361ac1[_0x4c8d8d(0xae2)][_0x4c8d8d(0x25ff)];});_0x361ac1[_0x5de179(0xae2)][_0x5de179(0x1c99)]&&_0x39641b()['remove'](_0x361ac1[_0x5de179(0xe0e)],function(_0x20436e){const _0x38472d=_0x5de179;return _0x20436e[_0x38472d(0x1d14)][_0x38472d(0x1680)]()['indexOf'](_0x361ac1[_0x38472d(0xae2)][_0x38472d(0x1c99)][_0x38472d(0x1680)]())<0x0;});_0x361ac1['filteredAgents']=_0x153f4a(_0x361ac1[_0x5de179(0xe0e)]);const _0x10346a=(_0x361ac1[_0x5de179(0xae2)][_0x5de179(0x1c7b)]-0x1)*_0x361ac1['query'][_0x5de179(0x236)];_0x361ac1['paginatedAgents']=_0x39641b()[_0x5de179(0x276f)](_0x361ac1[_0x5de179(0xe0e)],_0x10346a)['slice'](0x0,_0x361ac1[_0x5de179(0xae2)][_0x5de179(0x236)]);for(let _0xff69c=0x0;_0xff69c<_0x361ac1[_0x5de179(0x260a)][_0x5de179(0xfd0)];_0xff69c+=0x1){_0x361ac1[_0x5de179(0x237f)]['push'](_0x361ac1[_0x5de179(0x260a)][_0xff69c]['id']);}_0x53cbeb[_0x5de179(0x19a3)](),_0x361ac1[_0x5de179(0x997)]=!![];}function _0x22814d(_0x4ddd35){const _0x5380a8=_0x281b88;_0x361ac1['agents'][_0x4ddd35['id']]&&(_0x39641b()[_0x5380a8(0x9c1)](_0x361ac1[_0x5380a8(0xc12)][_0x4ddd35['id']],_0x39641b()['pick'](_0x39641b()[_0x5380a8(0x1bd8)](_0x4ddd35,_0x167503),_0x3e651e)),_0x39641b()[_0x5380a8(0x9c1)](_0x361ac1[_0x5380a8(0x212d)][_0x4ddd35['id']],_0x39641b()[_0x5380a8(0x169b)](_0x39641b()[_0x5380a8(0x1bd8)](_0x4ddd35,_0x167503),_0x3e651e)),_0x53af39(_0x361ac1[_0x5380a8(0xc12)][_0x4ddd35['id']]));}function _0x189847(_0x57d973){const _0x360c06=_0x281b88;_0x361ac1[_0x360c06(0xc12)][_0x57d973['id']]&&(_0x39641b()[_0x360c06(0x9c1)](_0x361ac1[_0x360c06(0xc12)][_0x57d973['id']],_0x39641b()['pick'](_0x57d973,_0x3e651e)),_0x39641b()[_0x360c06(0x9c1)](_0x361ac1[_0x360c06(0x212d)][_0x57d973['id']],_0x39641b()[_0x360c06(0x169b)](_0x57d973,_0x3e651e)),_0x57d973[_0x360c06(0x25db)]&&(_0x361ac1[_0x360c06(0xc12)][_0x57d973['id']][_0x360c06(0xdb9)]=_0x57d973[_0x360c06(0x25db)],_0x361ac1[_0x360c06(0x212d)][_0x57d973['id']]['globalStatusTime']=_0x57d973['lastPauseAt']),_0x53af39(_0x361ac1[_0x360c06(0xc12)][_0x57d973['id']]));}function _0x34956f(_0x26ed25){const _0x4fe11b=_0x281b88;_0x361ac1[_0x4fe11b(0xc12)][_0x361ac1[_0x4fe11b(0x1fdd)][_0x26ed25[_0x4fe11b(0x7ea)]]]&&(_0x39641b()['merge'](_0x361ac1[_0x4fe11b(0xc12)][_0x361ac1['agentInternal'][_0x26ed25[_0x4fe11b(0x7ea)]]],_0x39641b()[_0x4fe11b(0x169b)](_0x26ed25,['queue',_0x4fe11b(0x247)])),_0x39641b()[_0x4fe11b(0x9c1)](_0x361ac1['rpcAgents'][_0x361ac1[_0x4fe11b(0x1fdd)][_0x26ed25[_0x4fe11b(0x7ea)]]],_0x39641b()[_0x4fe11b(0x169b)](_0x26ed25,[_0x4fe11b(0x11cf),_0x4fe11b(0x247)])));}function _0x3f9837(_0x156968){const _0x3ca510=_0x281b88;_0x361ac1[_0x3ca510(0xc12)][_0x361ac1[_0x3ca510(0x1fdd)][_0x156968[_0x3ca510(0x7ea)]]]&&(_0x361ac1[_0x3ca510(0xc12)][_0x361ac1['agentInternal'][_0x156968[_0x3ca510(0x7ea)]]]=_0x39641b()[_0x3ca510(0x1bd8)](_0x361ac1[_0x3ca510(0xc12)][_0x361ac1[_0x3ca510(0x1fdd)][_0x156968[_0x3ca510(0x7ea)]]],['queue','destconnectedlinenum']),_0x361ac1[_0x3ca510(0x212d)][_0x361ac1[_0x3ca510(0x1fdd)][_0x156968[_0x3ca510(0x7ea)]]]=_0x39641b()['omit'](_0x361ac1['rpcAgents'][_0x361ac1[_0x3ca510(0x1fdd)][_0x156968[_0x3ca510(0x7ea)]]],[_0x3ca510(0x11cf),_0x3ca510(0x247)]));}function _0x1c63bc(_0x11cd05){const _0x10c631=_0x281b88;return _0x1d7492[_0x10c631(0xebe)]['logout']({'id':_0x11cd05['id'],'device':_0x10c631(0x217b),'agent_id':_0x11cd05['id'],'agent_name':_0x11cd05['name']})[_0x10c631(0x1d77)][_0x10c631(0x1cb0)](function(){const _0x4ba853=_0x10c631;_0x364e93[_0x4ba853(0x829)]({'title':_0x4ba853(0x23af),'msg':_0x11cd05['fullname']+_0x4ba853(0x1540)}),_0x361ac1['agents'][_0x11cd05['id']]&&(_0x361ac1[_0x4ba853(0xc12)][_0x11cd05['id']][_0x4ba853(0xa28)]=![]),_0x361ac1['rpcAgents'][_0x11cd05['id']]&&(_0x361ac1[_0x4ba853(0x212d)][_0x11cd05['id']][_0x4ba853(0xa28)]=![]),_0x1cd5e0();})[_0x10c631(0x1c4)](function(_0x14e23e){const _0x130acb=_0x10c631;_0x364e93['error']({'title':_0x14e23e[_0x130acb(0x291)]?_0x130acb(0xeb9)+_0x14e23e[_0x130acb(0x291)]+'\x20-\x20'+_0x14e23e[_0x130acb(0xc22)]:_0x130acb(0xcd6),'msg':_0x14e23e[_0x130acb(0x25c)]?JSON['stringify'](_0x14e23e['data']['message']):_0x14e23e['toString']()});});}function _0x1b251f(_0x410b7e,_0x476f92){const _0x1e1204=_0x281b88;return _0x1d7492['user'][_0x1e1204(0x785)]({'id':_0x410b7e['id'],'type':_0x476f92})[_0x1e1204(0x1d77)][_0x1e1204(0x1cb0)](function(_0x51e049){const _0x195ca0=_0x1e1204;_0x361ac1[_0x195ca0(0xc12)][_0x410b7e['id']]&&_0x39641b()[_0x195ca0(0x9c1)](_0x361ac1[_0x195ca0(0xc12)][_0x410b7e['id']],_0x39641b()[_0x195ca0(0x169b)](_0x51e049,_0x3e651e)),_0x361ac1[_0x195ca0(0x212d)][_0x410b7e['id']]&&_0x39641b()[_0x195ca0(0x9c1)](_0x361ac1['rpcAgents'][_0x410b7e['id']],_0x39641b()[_0x195ca0(0x169b)](_0x51e049,_0x3e651e)),_0x53af39(_0x361ac1[_0x195ca0(0xc12)][_0x410b7e['id']]);})[_0x1e1204(0x1c4)](function(_0x338193){const _0x34d2e6=_0x1e1204;_0x364e93[_0x34d2e6(0x218e)]({'title':_0x338193[_0x34d2e6(0x291)]?_0x34d2e6(0xeb9)+_0x338193[_0x34d2e6(0x291)]+'\x20-\x20'+_0x338193['statusText']:_0x34d2e6(0xcd6),'msg':_0x338193[_0x34d2e6(0x25c)]?JSON['stringify'](_0x338193['data'][_0x34d2e6(0x155e)]):_0x338193[_0x34d2e6(0x147f)]()});});}function _0x46c3b1(_0x4a6d58){const _0x1d6170=_0x281b88;return _0x1d7492[_0x1d6170(0xebe)][_0x1d6170(0xf5d)]({'id':_0x4a6d58['id']})['$promise']['then'](function(_0x49e320){const _0x365f14=_0x1d6170;_0x361ac1[_0x365f14(0xc12)][_0x4a6d58['id']]&&_0x39641b()[_0x365f14(0x9c1)](_0x361ac1['agents'][_0x4a6d58['id']],_0x39641b()[_0x365f14(0x169b)](_0x49e320,_0x3e651e)),_0x361ac1['rpcAgents'][_0x4a6d58['id']]&&_0x39641b()[_0x365f14(0x9c1)](_0x361ac1[_0x365f14(0x212d)][_0x4a6d58['id']],_0x39641b()[_0x365f14(0x169b)](_0x49e320,_0x3e651e)),_0x53af39(_0x361ac1['agents'][_0x4a6d58['id']]);})['catch'](function(_0x13e7a7){const _0x485078=_0x1d6170;_0x364e93[_0x485078(0x218e)]({'title':_0x13e7a7[_0x485078(0x291)]?_0x485078(0xeb9)+_0x13e7a7[_0x485078(0x291)]+'\x20-\x20'+_0x13e7a7['statusText']:'api.staff.save','msg':_0x13e7a7[_0x485078(0x25c)]?JSON[_0x485078(0x2701)](_0x13e7a7[_0x485078(0x25c)][_0x485078(0x155e)]):_0x13e7a7['toString']()});});}function _0xca5f1(_0xb37de5){const _0x4d18df=_0x281b88;_0x5000db[_0x4d18df(0xe27)](_0x5000db[_0x4d18df(0x494)]()['clickOutsideToClose'](!![])[_0x4d18df(0x1386)](_0x4d18df(0x1bc1))[_0x4d18df(0x49e)]('
TODO\x20legend\x20status\x20+\x20state
')['ok']('Ok')[_0x4d18df(0x728)](_0xb37de5));}function _0x1cf725(_0x23e0dd,_0x966ef8){const _0xaf230=_0x281b88;_0x5000db[_0xaf230(0xe27)]({'controller':_0xaf230(0x7e6),'controllerAs':'vm','templateUrl':_0x535a6f,'parent':angular[_0xaf230(0x1853)](_0x40a7b6[_0xaf230(0x1ed9)]),'targetEvent':_0x966ef8,'clickOutsideToClose':!![],'locals':{'agent':_0x23e0dd,'agents':[],'channel':'chat','direction':_0xaf230(0x26c0),'crudPermissions':_0x361ac1[_0xaf230(0x1b1a)]}});}function _0x3274a2(_0x1d702c){const _0x28c6df=_0x281b88;return _0x1d702c===_0x28c6df(0x785)||_0x1d702c==='*pause';}function _0x2cdc06(_0x7317e7){const _0x300f58=_0x281b88;return _0x7317e7===_0x300f58(0x785);}function _0x1bbc8f(_0x66020d){return _0x66020d==='*pause';}function _0x1863a1(_0x543d2f){const _0x4b56a5=_0x281b88;return _0x543d2f===_0x4b56a5(0x8df)||_0x543d2f==='unknown'||_0x543d2f===_0x4b56a5(0x13a2)||_0x543d2f==='ringing'||_0x39641b()[_0x4b56a5(0x958)](_0x543d2f);}function _0x56e529(_0x1a5e4c,_0x455228){const _0x39663f=_0x281b88;if(_0x455228===_0x39663f(0x1fd4)){if(_0x1a5e4c[_0x455228+_0x39663f(0x938)]!==_0x39663f(0x8df))return _0x1a5e4c[_0x455228+_0x39663f(0x938)];if(_0x1a5e4c[_0x455228+'Pause'])return _0x1a5e4c[_0x455228+_0x39663f(0x938)]=_0x39663f(0x785),'pause';return _0x39663f(0x8df);}else{if(_0x1a5e4c[_0x455228+_0x39663f(0x1e09)])return _0x1a5e4c[_0x455228+_0x39663f(0x938)]=_0x39663f(0x785),_0x39663f(0x785);return _0x1a5e4c[_0x455228+_0x39663f(0x938)];}}function _0x53af39(_0x3de9c0){const _0x3ca3ee=_0x281b88;let _0x1abaf0=_0x3ca3ee(0x1c9d);if(_0x39641b()['every']([_0x56e529(_0x3de9c0,_0x3ca3ee(0x1fd4)),_0x56e529(_0x3de9c0,_0x3ca3ee(0x174c)),_0x56e529(_0x3de9c0,_0x3ca3ee(0x2651)),_0x56e529(_0x3de9c0,_0x3ca3ee(0x15e0)),_0x56e529(_0x3de9c0,_0x3ca3ee(0x689)),_0x56e529(_0x3de9c0,_0x3ca3ee(0x2476)),_0x56e529(_0x3de9c0,'fax')],_0x3274a2))_0x1abaf0='pause';else{if(_0x39641b()['some']([_0x56e529(_0x3de9c0,_0x3ca3ee(0x1fd4)),_0x56e529(_0x3de9c0,_0x3ca3ee(0x174c)),_0x56e529(_0x3de9c0,_0x3ca3ee(0x2651)),_0x56e529(_0x3de9c0,'openchannel'),_0x56e529(_0x3de9c0,'sms'),_0x56e529(_0x3de9c0,'whatsapp'),_0x56e529(_0x3de9c0,_0x3ca3ee(0x1944))],_0x3274a2))_0x1abaf0=_0x3ca3ee(0x1767);else _0x39641b()['every']([_0x56e529(_0x3de9c0,_0x3ca3ee(0x1fd4)),_0x56e529(_0x3de9c0,_0x3ca3ee(0x174c)),_0x56e529(_0x3de9c0,_0x3ca3ee(0x2651)),_0x56e529(_0x3de9c0,_0x3ca3ee(0x15e0)),_0x56e529(_0x3de9c0,'sms'),_0x56e529(_0x3de9c0,'whatsapp'),_0x56e529(_0x3de9c0,_0x3ca3ee(0x1944))],_0x1863a1)?_0x1abaf0=_0x3ca3ee(0x8df):_0x1abaf0=_0x3ca3ee(0x5b2);}_0x3de9c0[_0x3ca3ee(0x1fbe)]!==_0x1abaf0&&(_0x3de9c0[_0x3ca3ee(0x1fbe)]=_0x1abaf0,_0x3de9c0['init']?(_0x3de9c0[_0x3ca3ee(0x1a8e)]=![],_0x3de9c0['globalStatusTime']=_0x3274a2(_0x1abaf0)?_0x39641b()[_0x3ca3ee(0x106d)](_0x543b5a()(_0x3de9c0['lastPauseAt'])[_0x3ca3ee(0x1f31)]('x')):_0x39641b()[_0x3ca3ee(0xb33)]([_0x3de9c0['voiceStatusTime'],_0x3de9c0[_0x3ca3ee(0x1b11)],_0x3de9c0[_0x3ca3ee(0x568)],_0x3de9c0['smsStatusTime'],_0x3de9c0[_0x3ca3ee(0x2064)],_0x3de9c0[_0x3ca3ee(0x22a6)],_0x3de9c0[_0x3ca3ee(0x1997)]])):_0x3de9c0[_0x3ca3ee(0xdb9)]=_0x39641b()[_0x3ca3ee(0x106d)](_0x543b5a()()['format']('x')));}function _0x153f4a(_0x22b4f0){const _0x17c8d6=_0x281b88,_0x5a6edd=_0x39641b()[_0x17c8d6(0x1f2c)](_0x361ac1[_0x17c8d6(0xae2)][_0x17c8d6(0x237f)],'-')?_0x17c8d6(0x20a5):_0x17c8d6(0x24cc);return _0x39641b()[_0x17c8d6(0x17ca)](_0x22b4f0,[_0x361ac1[_0x17c8d6(0xae2)]['order'][_0x17c8d6(0x288f)]('-','')],[_0x5a6edd]);}function _0x3d544d(){const _0x45290f=_0x281b88;_0x19c100&&(_0x3a7138[_0x45290f(0x696)](_0x19c100),_0x19c100=null);}function _0x2cbaad(_0x3c817,_0x53a8bc){const _0x15e2b4=_0x281b88;return _0x1d7492[_0x15e2b4(0xebe)][_0x15e2b4(0x687)]({'id':_0x3c817['id']},{'screenrecording':_0x53a8bc})[_0x15e2b4(0x1d77)][_0x15e2b4(0x1c4)](function(_0x9cc086){const _0x275179=_0x15e2b4;_0x364e93[_0x275179(0x218e)]({'title':_0x9cc086[_0x275179(0x291)]?_0x275179(0xeb9)+_0x9cc086['status']+'\x20-\x20'+_0x9cc086[_0x275179(0xc22)]:_0x275179(0x498),'msg':_0x9cc086[_0x275179(0x25c)]?JSON[_0x275179(0x2701)](_0x9cc086[_0x275179(0x25c)]['message']):_0x9cc086[_0x275179(0x147f)]()});});}_0x312680[_0x281b88(0x1d6)](_0x281b88(0x291c),function(){const _0x130d68=_0x281b88;_0x21222e[_0x130d68(0xfb8)]('user:save'),_0x21222e[_0x130d68(0xfb8)]('user:update'),_0x21222e[_0x130d68(0xfb8)](_0x130d68(0x2290)),_0x21222e[_0x130d68(0xfb8)](_0x130d68(0x10b3)),_0x3d544d();});}const _0x2fac9c=_0x2a032b;;const _0x2b3c8c=_0x5074a3['p']+_0x5537c6(0x1b1b);;const _0x18839a=_0x5074a3['p']+_0x5537c6(0x205f);;_0x5ef6c9['$inject']=[_0x5537c6(0x1463),'$timeout',_0x5537c6(0xcb9),'$q',_0x5537c6(0x22bf),_0x5537c6(0x1714),_0x5537c6(0x971),_0x5537c6(0x2255),_0x5537c6(0x142b),_0x5537c6(0x1986),_0x5537c6(0x9bf),'userProfile',_0x5537c6(0x2199),'Auth'];function _0x5ef6c9(_0x5456ce,_0x36c8ce,_0x18640a,_0x7b0344,_0x15258d,_0x831a76,_0x5f68f6,_0x352a85,_0x3e1c97,_0x2c9413,_0x15c23c,_0x11c676,_0x211fe2,_0x1219ef){const _0x4dc52d=_0x5537c6,_0x1e93d2=this,_0x3e8e65=[_0x4dc52d(0x22dc),_0x4dc52d(0x2803),_0x4dc52d(0x26b6),_0x4dc52d(0x192a),_0x4dc52d(0xfb2),_0x4dc52d(0x2315),_0x4dc52d(0x155e),'dialActive',_0x4dc52d(0xda8),_0x4dc52d(0xf67),_0x4dc52d(0x139c)];_0x1e93d2['currentUser']=_0x1219ef[_0x4dc52d(0x21e8)](),_0x1e93d2[_0x4dc52d(0x184d)]=_0x5f68f6[_0x4dc52d(0x184d)]?_0x5f68f6[_0x4dc52d(0x184d)]:0x0,_0x1e93d2['queues']=_0x5f68f6?_0x39641b()[_0x4dc52d(0x2631)](_0x5f68f6[_0x4dc52d(0x2214)]?_0x5f68f6['rows']:[],'id'):{},_0x1e93d2[_0x4dc52d(0x2255)]=_0x352a85?_0x39641b()[_0x4dc52d(0x2631)](_0x352a85[_0x4dc52d(0x2214)]?_0x352a85[_0x4dc52d(0x2214)]:[],'id'):{},_0x1e93d2[_0x4dc52d(0x44a)]=_0x11c676,_0x1e93d2[_0x4dc52d(0x2199)]=_0x211fe2&&_0x211fe2[_0x4dc52d(0x184d)]==0x1?_0x211fe2[_0x4dc52d(0x2214)][0x0]:null,_0x1e93d2['crudPermissions']=_0x1219ef[_0x4dc52d(0x14ea)](_0x1e93d2[_0x4dc52d(0x2199)]?_0x1e93d2[_0x4dc52d(0x2199)]['crudPermissions']:null);_0x1219ef[_0x4dc52d(0x22b6)](_0x4dc52d(0x1c60))?_0x1e93d2[_0x4dc52d(0xae2)]={'type':_0x4dc52d(0x26c0),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x1e93d2[_0x4dc52d(0xae2)]={'id':_0x1e93d2['currentUser']['id'],'channel':_0x4dc52d(0x174c),'type':_0x4dc52d(0x26c0),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x1e93d2[_0x4dc52d(0x829)]=_0x1b80ad,_0x1e93d2[_0x4dc52d(0x13e9)]=_0x129cf9,_0x1e93d2[_0x4dc52d(0x1516)]=_0x494a4b,_0x1e93d2[_0x4dc52d(0x1be7)]=_0x4ebdd0,_0x1e93d2['updateQueue']=_0x1bab42,_0x1e93d2[_0x4dc52d(0x294c)]=_0x37839d,_0x1e93d2[_0x4dc52d(0xc88)]=_0x3adfdf,_0x1e93d2['onRemoveMember']=_0x5c5a53,_0x1e93d2[_0x4dc52d(0x18e4)]=_0x48c298,_0x1e93d2[_0x4dc52d(0x26c9)]=_0x3fe65b,_0x1e93d2[_0x4dc52d(0x3be)]=_0x14d4cf,_0x1e93d2[_0x4dc52d(0x129c)]=_0x1ae2c2,_0x1e93d2[_0x4dc52d(0x237f)]=[],_0x39641b()[_0x4dc52d(0x1ebd)](_0x1e93d2[_0x4dc52d(0x971)],function(_0xe8f51d){const _0x2ee54a=_0x4dc52d;_0x1e93d2[_0x2ee54a(0x237f)][_0x2ee54a(0x2785)](_0xe8f51d['id']);}),_0x2c9413['on'](_0x4dc52d(0xd8c),_0x1e93d2[_0x4dc52d(0x294c)]),_0x2c9413['on']('userChatQueue:save',_0x1e93d2[_0x4dc52d(0xc88)]),_0x2c9413['on'](_0x4dc52d(0x1103),_0x1e93d2[_0x4dc52d(0x365)]),_0x2c9413['on'](_0x4dc52d(0x14c6),_0x1e93d2['onPause']),_0x2c9413['on'](_0x4dc52d(0x201e),_0x1e93d2[_0x4dc52d(0x3be)]),_0x2c9413['on']('userVoiceQueue:save',_0x1e93d2[_0x4dc52d(0x26c9)]);function _0x1ae2c2(){const _0x3c5c06=_0x4dc52d,_0x2e5ed1=[];return _0x39641b()[_0x3c5c06(0x1ebd)](_0x1e93d2['queues'],function(_0x2d4abc,_0x5e1673){const _0x330ec3=_0x3c5c06;_0x2d4abc[_0x330ec3(0x139c)]=0x0,_0x2d4abc[_0x330ec3(0x29a2)]=0x0,_0x1e93d2[_0x330ec3(0x971)][_0x5e1673][_0x330ec3(0xc12)]={},_0x2e5ed1['push'](_0x3e1c97[_0x330ec3(0x1e86)][_0x330ec3(0x11dd)]({'id':_0x5e1673})[_0x330ec3(0x1d77)]),_0x1e93d2[_0x330ec3(0x2255)][_0x5e1673]&&_0x39641b()[_0x330ec3(0x9c1)](_0x2d4abc,_0x39641b()[_0x330ec3(0x169b)](_0x1e93d2['rpcQueues'][_0x5e1673],_0x3e8e65));}),_0x7b0344[_0x3c5c06(0x223b)](_0x2e5ed1)[_0x3c5c06(0x1cb0)](function(_0x2b8c59){const _0x36e47f=_0x3c5c06;for(let _0x400287=0x0;_0x400287<_0x2b8c59[_0x36e47f(0xfd0)];_0x400287+=0x1){for(let _0x536acb=0x0;_0x536acb<_0x2b8c59[_0x400287][_0x36e47f(0x2214)]['length'];_0x536acb++){_0x2b8c59[_0x400287]['rows'][_0x536acb][_0x36e47f(0x139c)]&&_0x1e93d2['queues'][_0x2b8c59[_0x400287]['rows'][_0x536acb][_0x36e47f(0xd0f)]][_0x36e47f(0x139c)]++,_0x1e93d2[_0x36e47f(0x971)][_0x2b8c59[_0x400287][_0x36e47f(0x2214)][_0x536acb][_0x36e47f(0xd0f)]]['loggedInDb']++,_0x1e93d2['queues'][_0x2b8c59[_0x400287]['rows'][_0x536acb][_0x36e47f(0xd0f)]][_0x36e47f(0xc12)][_0x2b8c59[_0x400287]['rows'][_0x536acb][_0x36e47f(0x21ab)]]=_0x2b8c59[_0x400287]['rows'][_0x536acb][_0x36e47f(0xd0f)];}}})[_0x3c5c06(0x1c4)](function(_0x206803){const _0x57cde7=_0x3c5c06;console[_0x57cde7(0x218e)](_0x206803);});}function _0x37839d(_0x15147f){const _0x279be8=_0x4dc52d;_0x1e93d2[_0x279be8(0x971)][_0x15147f['id']]&&_0x39641b()[_0x279be8(0x9c1)](_0x1e93d2[_0x279be8(0x971)][_0x15147f['id']],_0x39641b()[_0x279be8(0x169b)](_0x15147f,_0x3e8e65));}function _0x3adfdf(_0x386c34){const _0x51d3ee=_0x4dc52d;_0x1e93d2[_0x51d3ee(0x971)][_0x386c34['ChatQueueId']]&&_0x1e93d2[_0x51d3ee(0x971)][_0x386c34[_0x51d3ee(0xd0f)]][_0x51d3ee(0x29a2)]++;}function _0x5c5a53(_0x4cc76b){const _0x40bf72=_0x4dc52d;_0x1e93d2[_0x40bf72(0x971)][_0x4cc76b['ChatQueueId']]&&_0x1e93d2[_0x40bf72(0x971)][_0x4cc76b['ChatQueueId']][_0x40bf72(0x29a2)]--;}function _0x48c298(_0x41e654){const _0x387945=_0x4dc52d;console['log'](_0x387945(0x18e4),_0x41e654);if(_0x41e654['voicePause'])_0x39641b()[_0x387945(0x1ebd)](_0x1e93d2[_0x387945(0x971)],function(_0x57162d){const _0x139ecb=_0x387945;_0x57162d['agents'][_0x41e654['id']]&&(_0x57162d[_0x139ecb(0x139c)]+=0x1,console[_0x139ecb(0x1b4f)](_0x139ecb(0x785)));});else!_0x41e654[_0x387945(0x2478)]&&_0x39641b()[_0x387945(0x1ebd)](_0x1e93d2['queues'],function(_0xa494d1){const _0x3fda77=_0x387945;_0xa494d1['agents'][_0x41e654['id']]&&(_0xa494d1[_0x3fda77(0x139c)]>0x0&&(_0xa494d1[_0x3fda77(0x139c)]-=0x1,console[_0x3fda77(0x1b4f)](_0x3fda77(0xf5d))));});}function _0x3fe65b(_0x39c845){const _0x17eca3=_0x4dc52d;console[_0x17eca3(0x1b4f)](_0x17eca3(0x2557),_0x39c845),_0x1e93d2['queues'][_0x39c845[_0x17eca3(0xd0f)]]&&(_0x1e93d2[_0x17eca3(0x971)][_0x39c845[_0x17eca3(0xd0f)]][_0x17eca3(0x29a2)]+=0x1,_0x1e93d2[_0x17eca3(0x971)][_0x39c845[_0x17eca3(0xd0f)]][_0x17eca3(0xc12)][_0x39c845[_0x17eca3(0x21ab)]]=_0x39c845['ChatQueueId']);}function _0x14d4cf(_0x5d2fed){const _0x3642f6=_0x4dc52d;console[_0x3642f6(0x1b4f)](_0x3642f6(0x3be),_0x5d2fed),_0x1e93d2['queues'][_0x5d2fed[_0x3642f6(0xd0f)]]&&_0x1e93d2[_0x3642f6(0x971)][_0x5d2fed[_0x3642f6(0xd0f)]][_0x3642f6(0x29a2)]>0x0&&(_0x1e93d2[_0x3642f6(0x971)][_0x5d2fed[_0x3642f6(0xd0f)]]['loggedInDb']-=0x1,delete _0x1e93d2[_0x3642f6(0x971)][_0x5d2fed['ChatQueueId']][_0x3642f6(0xc12)][_0x5d2fed[_0x3642f6(0x21ab)]]);}let _0x1fcd48=!![],_0x27d98a=0x1;_0x5456ce[_0x4dc52d(0x614)](_0x4dc52d(0x957),function(_0xefd3be,_0x173e76){const _0x2c2bca=_0x4dc52d;_0x1fcd48?_0x36c8ce(function(){_0x1fcd48=![];}):(!_0x173e76&&(_0x27d98a=_0x1e93d2[_0x2c2bca(0xae2)][_0x2c2bca(0x1c7b)]),_0xefd3be!==_0x173e76&&(_0x1e93d2['query'][_0x2c2bca(0x1c7b)]=0x1),!_0xefd3be&&(_0x1e93d2[_0x2c2bca(0xae2)][_0x2c2bca(0x1c7b)]=_0x27d98a),_0x1e93d2[_0x2c2bca(0x13e9)]());});function _0x1b80ad(_0x1a0c3a){const _0x27a06b=_0x4dc52d;_0x1e93d2[_0x27a06b(0x184d)]=_0x1a0c3a[_0x27a06b(0x184d)],_0x1e93d2['queues']=_0x1a0c3a?_0x39641b()[_0x27a06b(0x2631)](_0x1a0c3a['rows']?_0x1a0c3a['rows']:[],'id'):{};if(_0x1a0c3a[_0x27a06b(0x2214)]){_0x1e93d2['order']=[];for(let _0x5356eb=0x0;_0x5356eb<_0x1a0c3a[_0x27a06b(0x2214)][_0x27a06b(0xfd0)];_0x5356eb++){_0x1e93d2[_0x27a06b(0x237f)][_0x27a06b(0x2785)](_0x1a0c3a[_0x27a06b(0x2214)][_0x5356eb]['id']);}}_0x1ae2c2();}function _0x129cf9(){const _0x4b39a1=_0x4dc52d;_0x1e93d2['query'][_0x4b39a1(0x184b)]=(_0x1e93d2['query'][_0x4b39a1(0x1c7b)]-0x1)*_0x1e93d2[_0x4b39a1(0xae2)][_0x4b39a1(0x236)],_0x1219ef['hasRole'](_0x4b39a1(0x1c60))?_0x1e93d2[_0x4b39a1(0x2061)]=_0x3e1c97[_0x4b39a1(0x1e86)][_0x4b39a1(0xbf7)](_0x1e93d2[_0x4b39a1(0xae2)],_0x1b80ad)[_0x4b39a1(0x1d77)]:(_0x1e93d2['query']['id']=_0x1e93d2['userProfile']['id'],_0x1e93d2[_0x4b39a1(0xae2)][_0x4b39a1(0x1f74)]='ChatQueues',_0x1e93d2[_0x4b39a1(0x2061)]=_0x3e1c97[_0x4b39a1(0x44a)][_0x4b39a1(0x1810)](_0x1e93d2[_0x4b39a1(0xae2)],_0x1b80ad)['$promise']);}function _0x494a4b(_0x5d874e,_0x17a04e){const _0x35244e=_0x4dc52d;_0x18640a['show']({'controller':'CreateOrEditChatQueueDialogController','controllerAs':'vm','templateUrl':_0x2b3c8c,'parent':angular[_0x35244e(0x1853)](_0x15258d[_0x35244e(0x1ed9)]),'targetEvent':_0x5d874e,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x17a04e,'chatQueues':_0x39641b()['values'](_0x1e93d2[_0x35244e(0x971)]),'license':null,'setting':null,'crudPermissions':_0x1e93d2['crudPermissions']}});}function _0x4ebdd0(_0x3589bc,_0x4ba474){const _0x4b84dc=_0x4dc52d;_0x18640a[_0x4b84dc(0xe27)]({'controller':_0x4b84dc(0x6dd),'controllerAs':'vm','templateUrl':_0x18839a,'parent':angular['element'](_0x15258d['body']),'targetEvent':_0x3589bc,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x4ba474,'chatQueues':_0x1e93d2['queues']?_0x1e93d2[_0x4b84dc(0x971)][_0x4b84dc(0x2214)]:[],'realtime':![],'crudPermissions':_0x1e93d2[_0x4b84dc(0x1b1a)]}});}function _0x1bab42(_0x1949a4){const _0x7e30f=_0x4dc52d;return _0x3e1c97[_0x7e30f(0x1e86)]['update'](_0x1949a4)[_0x7e30f(0x1d77)][_0x7e30f(0x1cb0)](function(){const _0x3bae61=_0x7e30f;_0x15c23c[_0x3bae61(0x829)]({'title':_0x3bae61(0x264c),'msg':_0x1949a4['name']?_0x1949a4[_0x3bae61(0x16b6)]+'\x20has\x20been\x20updated!':''});})[_0x7e30f(0x1c4)](function(_0x10d6da){const _0x41f532=_0x7e30f;_0x15c23c[_0x41f532(0x218e)]({'title':_0x41f532(0x454),'msg':_0x10d6da[_0x41f532(0x155e)]});});}_0x5456ce[_0x4dc52d(0x1d6)](_0x4dc52d(0x291c),function(){const _0x33a349=_0x4dc52d;_0x2c9413[_0x33a349(0xfb8)]('chat_queue:save'),_0x2c9413[_0x33a349(0xfb8)](_0x33a349(0x1103)),_0x2c9413[_0x33a349(0xfb8)](_0x33a349(0x1e92)),_0x2c9413[_0x33a349(0xfb8)](_0x33a349(0x14c6)),_0x2c9413[_0x33a349(0xfb8)]('userVoiceQueue:remove'),_0x2c9413[_0x33a349(0xfb8)](_0x33a349(0x828));});}const _0x51f603=_0x5ef6c9;;function _0x40d646(){const _0x257aed=_0x5537c6;return{'status':{'registered':_0x257aed(0x1170),'unregistered':'red-300-fg\x20icon-close-circle','lagged':_0x257aed(0x29a3),'reachable':_0x257aed(0x1170),'unreachable':_0x257aed(0x29a3),'unknown':_0x257aed(0xb74)},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':_0x257aed(0x25c2),'inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0x257aed(0x35b),'invalid':_0x257aed(0x181),'unavailable':_0x257aed(0x181),'ringing':_0x257aed(0x1c43),'ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':_0x257aed(0x1825)},'channelStatus':{'ring':_0x257aed(0x1c43),'up':_0x257aed(0x142f),'hangup':_0x257aed(0xe67)},'channelStatusOut':{'ring':_0x257aed(0x53c),'up':_0x257aed(0x142f),'hangup':_0x257aed(0xe67)}};}const _0x4ae960=_0x40d646;;_0x661983['$inject']=[_0x5537c6(0x1463),'$state',_0x5537c6(0x1986)];function _0x661983(_0x52a66e,_0x12c8b8,_0x52fac5){const _0x1be934=_0x5537c6,_0x20084a=this;_0x52fac5[_0x1be934(0x22e8)](),_0x52fac5[_0x1be934(0x8b0)](),_0x20084a[_0x1be934(0x8ec)]=0x0;switch(_0x12c8b8['current'][_0x1be934(0x16b6)]){case _0x1be934(0x224f):_0x20084a[_0x1be934(0x8ec)]=0x0;break;case _0x1be934(0x21a):_0x20084a[_0x1be934(0x8ec)]=0x1;break;default:_0x20084a[_0x1be934(0x8ec)]=0x0,_0x12c8b8['go']('app.chat.realtime.agents');}_0x52a66e[_0x1be934(0x614)](_0x1be934(0x1ced),function(_0x1e1b45,_0x43ce5c){const _0x1cd178=_0x1be934;if(_0x1e1b45!==_0x43ce5c)switch(_0x1e1b45){case 0x0:_0x12c8b8['go'](_0x1cd178(0x224f));break;case 0x1:_0x12c8b8['go'](_0x1cd178(0x21a));break;default:_0x12c8b8['go'](_0x1cd178(0x224f));}});}const _0x26a825=_0x661983;;_0x19bc88[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6)];function _0x19bc88(_0x512e63){const _0x246623=_0x5537c6;_0x512e63['state']('app.chat.realtime',{'url':_0x246623(0x1625),'views':{'content@app':{'templateUrl':_0x552dd6,'controller':'ChatRealtimeController\x20as\x20vm'}},'resolve':{'userProfile':['apiResolver',_0x246623(0x1774),function(_0x4a06c7,_0xad2c59){const _0x478e8e=_0x246623;return _0xad2c59[_0x478e8e(0x22b6)]('admin')?null:_0x4a06c7[_0x478e8e(0x19a3)](_0x478e8e(0x9ae),{'fields':'id,name,crudPermissions','id':_0xad2c59[_0x478e8e(0x21e8)]()[_0x478e8e(0x13c1)]});}],'userProfileSection':[_0x246623(0x1e0b),_0x246623(0x1774),function(_0x317a25,_0x3f45f7){const _0x4e0a6b=_0x246623;return _0x3f45f7[_0x4e0a6b(0x22b6)](_0x4e0a6b(0x1c60))?null:_0x317a25['resolve'](_0x4e0a6b(0x2182),{'fields':_0x4e0a6b(0x1f5f),'userProfileId':_0x3f45f7[_0x4e0a6b(0x21e8)]()[_0x4e0a6b(0x13c1)],'sectionId':0x1fe});}]},'authenticate':!![],'permissionId':0x1fe})['state'](_0x246623(0x224f),{'url':_0x246623(0xefc),'controller':_0x246623(0x1ddf),'templateUrl':_0x1c4910,'resolve':{'pauses':['apiResolver',function(_0x3b4bc3){const _0x2b9692=_0x246623;return _0x3b4bc3['resolve'](_0x2b9692(0xeeb),{'nolimit':!![]});}],'agents':['apiResolver',_0x246623(0x1774),function(_0x20cb21,_0x18bd50){const _0x4ac4b3=_0x246623;return _0x18bd50[_0x4ac4b3(0x22b6)](_0x4ac4b3(0x1c60))?_0x20cb21[_0x4ac4b3(0x19a3)](_0x4ac4b3(0x1c86),{'fields':_0x4ac4b3(0x1599),'role':_0x4ac4b3(0x1eff),'sort':_0x4ac4b3(0x1d14),'nolimit':!![]}):_0x20cb21[_0x4ac4b3(0x19a3)](_0x4ac4b3(0x12da),{'id':_0x18bd50[_0x4ac4b3(0x21e8)]()['userProfileId'],'section':_0x4ac4b3(0x2536),'fields':_0x4ac4b3(0x1599),'role':_0x4ac4b3(0x1eff),'sort':'fullname','nolimit':!![]});}],'userProfile':['apiResolver',_0x246623(0x1774),function(_0x583e5e,_0x3610aa){const _0x55b41a=_0x246623;return _0x3610aa[_0x55b41a(0x22b6)](_0x55b41a(0x1c60))?null:_0x583e5e['resolve'](_0x55b41a(0x9ae),{'fields':_0x55b41a(0x279),'id':_0x3610aa[_0x55b41a(0x21e8)]()[_0x55b41a(0x13c1)]});}],'userProfileSection':[_0x246623(0x1e0b),'Auth',function(_0x4a3453,_0x3bbf30){const _0x5e51d6=_0x246623;return _0x3bbf30[_0x5e51d6(0x22b6)](_0x5e51d6(0x1c60))?null:_0x4a3453[_0x5e51d6(0x19a3)](_0x5e51d6(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3bbf30[_0x5e51d6(0x21e8)]()[_0x5e51d6(0x13c1)],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0x181e03){const _0x4f1a4c=_0x246623;return _0x181e03[_0x4f1a4c(0x19a3)](_0x4f1a4c(0x12c0));}]},'authenticate':!![],'permissionId':0x1fe})['state']('app.chat.realtime.queues',{'url':_0x246623(0x1596),'controller':_0x246623(0x1561),'templateUrl':_0x4df0b6,'resolve':{'queues':[_0x246623(0x1e0b),_0x246623(0x1774),function(_0x161e7b,_0x3a1fc2){const _0x812232=_0x246623;return _0x3a1fc2['hasRole'](_0x812232(0x1c60))?_0x161e7b['resolve'](_0x812232(0x29c0),{'type':_0x812232(0x26c0),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x161e7b[_0x812232(0x19a3)](_0x812232(0x12da),{'id':_0x3a1fc2[_0x812232(0x21e8)]()[_0x812232(0x13c1)],'section':'ChatQueues','channel':'chat','type':_0x812232(0x26c0),'sort':_0x812232(0x282),'limit':0xa,'page':0x1});}],'userProfile':[_0x246623(0x1e0b),'Auth',function(_0x5b42fe,_0x337fdf){const _0x470ddb=_0x246623;return _0x337fdf[_0x470ddb(0x22b6)](_0x470ddb(0x1c60))?null:_0x5b42fe[_0x470ddb(0x19a3)](_0x470ddb(0x9ae),{'fields':_0x470ddb(0x279),'id':_0x337fdf[_0x470ddb(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x246623(0x1e0b),_0x246623(0x1774),function(_0x3e498f,_0x4f24c3){const _0x5c115b=_0x246623;return _0x4f24c3[_0x5c115b(0x22b6)](_0x5c115b(0x1c60))?null:_0x3e498f[_0x5c115b(0x19a3)]('userProfileSection@get',{'fields':_0x5c115b(0x1f5f),'userProfileId':_0x4f24c3[_0x5c115b(0x21e8)]()[_0x5c115b(0x13c1)],'sectionId':0x1f5});}],'rpcQueues':[_0x246623(0x1e0b),function(_0x2491c0){const _0x387b60=_0x246623;return _0x2491c0['resolve'](_0x387b60(0x1706));}]},'authenticate':!![],'permissionId':0x1fe});}angular[_0x5537c6(0x9ab)]('app.chat.realtime',[])[_0x5537c6(0xa60)](_0x19bc88)['controller']('AgentsChatRealtimeController',_0x2fac9c)['controller']('QueuesChatRealtimeController',_0x51f603)[_0x5537c6(0x234a)](_0x5537c6(0x125c),_0x4ae960)[_0x5537c6(0x6e5)](_0x5537c6(0x188c),_0x26a825);;const _0x285e42=_0x5074a3['p']+_0x5537c6(0x14f9);;_0x1d5353[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),'chatQueues',_0x5537c6(0x44a),_0x5537c6(0x2199),'api','msUtils','toasty',_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x1d5353(_0x3ebb80,_0x42e4ee,_0x26ed1e,_0x570af8,_0x5c737c,_0x481658,_0x45dd97,_0x3f2ae2,_0x26d46b,_0x18c13f,_0x1e390b,_0x3e276e,_0x227207,_0x35741a,_0x4c55fc,_0xb63ea0,_0x10f6bc){const _0x17222e=_0x5537c6,_0xd416bd=this;_0xd416bd[_0x17222e(0x8a5)]=_0xb63ea0,_0xd416bd[_0x17222e(0x9ca)]=_0x10f6bc,_0xd416bd[_0x17222e(0xe76)]=_0x4c55fc[_0x17222e(0x21e8)](),_0xd416bd['chatQueues']=_0x26d46b||{'count':0x0,'rows':[]},_0xd416bd[_0x17222e(0x44a)]=_0x18c13f,_0xd416bd[_0x17222e(0x2199)]=_0x1e390b&&_0x1e390b[_0x17222e(0x184d)]==0x1?_0x1e390b[_0x17222e(0x2214)][0x0]:null,_0xd416bd[_0x17222e(0x1b1a)]=_0x4c55fc['parseCrudPermissions'](_0xd416bd[_0x17222e(0x2199)]?_0xd416bd[_0x17222e(0x2199)]['crudPermissions']:null),_0xd416bd['table']=_0x17222e(0x25cd),_0xd416bd[_0x17222e(0x1d20)]='',_0xd416bd[_0x17222e(0x1cdf)]=null,_0xd416bd['selectedChatQueues']=[],_0xd416bd[_0x17222e(0xae2)]={'fields':_0x17222e(0x22f3),'sort':'-updatedAt','channel':_0x17222e(0x174c),'limit':0xa,'page':0x1},_0xd416bd['arraystrategy']=_0x39641b()[_0x17222e(0x2631)]([{'option':_0x17222e(0xfd9),'value':_0x17222e(0xcf1)},{'option':'RR\x20Memory','value':_0x17222e(0x15b5)}],function(_0x5c50fe){const _0x47ba47=_0x17222e;return _0x39641b()[_0x47ba47(0x288f)](_0x5c50fe[_0x47ba47(0x327)],new RegExp('\x27','g'),'');}),_0xd416bd[_0x17222e(0x235d)]=_0x33214e,_0xd416bd[_0x17222e(0x1d63)]=_0x5e3124,_0xd416bd[_0x17222e(0x1379)]=_0xbd7e4f,_0xd416bd['deleteconfirm']=_0x41308b,_0xd416bd['gotorealtimegoto']=_0x19ced7,_0xd416bd[_0x17222e(0x829)]=_0x555c38,_0xd416bd['getChatQueues']=_0x50fd7d,_0xd416bd[_0x17222e(0x1516)]=_0x1e77aa,_0xd416bd[_0x17222e(0x392)]=_0x437ce7,_0xd416bd['exportSelectedChatQueues']=_0x57b965,_0xd416bd[_0x17222e(0x1a50)]=_0x22b407,_0xd416bd[_0x17222e(0x253e)]=_0x5d3c25,_0xd416bd[_0x17222e(0x1b8a)]=_0x8c4d5f;function _0x33214e(_0x465720){const _0x1cadb2=_0x17222e;_0x26ed1e['go'](_0x1cadb2(0x16c7),{'id':_0x465720['id'],'chatQueue':_0x465720,'crudPermissions':_0xd416bd[_0x1cadb2(0x1b1a)]});}function _0x5e3124(_0x203814,_0x4a1e99){const _0x3fc792=_0x17222e;_0x5c737c[_0x3fc792(0xe27)]({'controller':_0x3fc792(0x151a),'controllerAs':'vm','templateUrl':_0x285e42,'parent':angular[_0x3fc792(0x1853)](_0x481658[_0x3fc792(0x1ed9)]),'targetEvent':_0x4a1e99,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x203814,'chatQueues':_0xd416bd['chatQueues']?_0xd416bd[_0x3fc792(0x25cd)][_0x3fc792(0x2214)]:[],'crudPermissions':_0xd416bd[_0x3fc792(0x1b1a)]}});}function _0xbd7e4f(_0x417441,_0x27c647){const _0x4ff7b5=_0x17222e;_0x5c737c[_0x4ff7b5(0xe27)]({'controller':_0x4ff7b5(0x6dd),'controllerAs':'vm','templateUrl':_0x18839a,'parent':angular[_0x4ff7b5(0x1853)](_0x481658['body']),'targetEvent':_0x27c647,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x417441,'chatQueues':_0xd416bd[_0x4ff7b5(0x25cd)]?_0xd416bd[_0x4ff7b5(0x25cd)][_0x4ff7b5(0x2214)]:[],'crudPermissions':_0xd416bd['crudPermissions'],'realtime':![]}});}function _0x41308b(_0x2204e,_0xbf8e8e){const _0x3a5952=_0x17222e,_0x19f947=_0x5c737c[_0x3a5952(0x1551)]()[_0x3a5952(0x1386)](_0x3a5952(0x140b)+_0x39641b()[_0x3a5952(0xa75)](_0x3a5952(0x1e86))+'?')['htmlContent'](''+(_0x2204e['name']||_0x3a5952(0x1e86))+_0x3a5952(0x1200)+_0x3a5952(0x1b6))['ariaLabel'](_0x3a5952(0x61e))['targetEvent'](_0xbf8e8e)['ok']('OK')[_0x3a5952(0x696)](_0x3a5952(0x24ba));_0x5c737c[_0x3a5952(0xe27)](_0x19f947)[_0x3a5952(0x1cb0)](function(){_0x437ce7(_0x2204e);},function(){console['log']('CANCEL');});}function _0x19ced7(){const _0x1b71b7=_0x17222e;if(_0x4c55fc[_0x1b71b7(0x22b6)](_0x1b71b7(0x1c60)))_0x26ed1e['go'](_0x1b71b7(0x21a),{});else return _0x3e276e[_0x1b71b7(0x2199)]['get']({'userProfileId':_0x4c55fc[_0x1b71b7(0x21e8)]()[_0x1b71b7(0x13c1)],'sectionId':0x1fe})[_0x1b71b7(0x1d77)][_0x1b71b7(0x1cb0)](function(_0x1e81c6){const _0x597569=_0x1b71b7,_0x5ef3c4=_0x1e81c6&&_0x1e81c6['rows']?_0x1e81c6['rows'][0x0]:null;_0x5ef3c4&&_0x5ef3c4[_0x597569(0x281c)]?_0x26ed1e['go'](_0x597569(0x21a),{}):_0x35741a['info']({'title':_0x3f2ae2[_0x597569(0x25cc)](_0x597569(0x370)),'msg':_0x3f2ae2['instant'](_0x597569(0x33a))});})[_0x1b71b7(0x1c4)](function(_0x322f2c){const _0x5b6689=_0x1b71b7;_0x35741a[_0x5b6689(0x218e)]({'title':_0x322f2c['status']?_0x5b6689(0xeb9)+_0x322f2c[_0x5b6689(0x291)]+'\x20-\x20'+_0x322f2c[_0x5b6689(0xc22)]:_0x5b6689(0x17ba),'msg':_0x322f2c['status']?JSON['stringify'](_0x322f2c['data']):_0x322f2c['toString']()});});}let _0x5618fa=!![],_0x14ebc1=0x1;_0x3ebb80[_0x17222e(0x614)](_0x17222e(0x957),function(_0x4996a4,_0x49d671){const _0x641677=_0x17222e;_0x5618fa?_0x45dd97(function(){_0x5618fa=![];}):(!_0x49d671&&(_0x14ebc1=_0xd416bd[_0x641677(0xae2)][_0x641677(0x1c7b)]),_0x4996a4!==_0x49d671&&(_0xd416bd[_0x641677(0xae2)]['page']=0x1),!_0x4996a4&&(_0xd416bd[_0x641677(0xae2)][_0x641677(0x1c7b)]=_0x14ebc1),_0xd416bd['getChatQueues']());});function _0x555c38(_0x58f07b){const _0x24cb49=_0x17222e;_0xd416bd[_0x24cb49(0x25cd)]=_0x58f07b||{'count':0x0,'rows':[]};}function _0x50fd7d(){const _0x40e0e3=_0x17222e;_0xd416bd[_0x40e0e3(0xae2)]['offset']=(_0xd416bd[_0x40e0e3(0xae2)][_0x40e0e3(0x1c7b)]-0x1)*_0xd416bd[_0x40e0e3(0xae2)]['limit'],_0x4c55fc[_0x40e0e3(0x22b6)](_0x40e0e3(0x1c60))?_0xd416bd[_0x40e0e3(0x2061)]=_0x3e276e[_0x40e0e3(0x1e86)][_0x40e0e3(0xbf7)](_0xd416bd[_0x40e0e3(0xae2)],_0x555c38)[_0x40e0e3(0x1d77)]:(_0xd416bd[_0x40e0e3(0xae2)]['id']=_0xd416bd['userProfile']['id'],_0xd416bd[_0x40e0e3(0xae2)][_0x40e0e3(0x1f74)]=_0x40e0e3(0x23a4),_0xd416bd['promise']=_0x3e276e['userProfile']['getResources'](_0xd416bd['query'],_0x555c38)[_0x40e0e3(0x1d77)]);}function _0x1e77aa(_0x530c9e,_0x5d398e){const _0x2f26c4=_0x17222e;_0x5c737c[_0x2f26c4(0xe27)]({'controller':'CreateOrEditChatQueueDialogController','controllerAs':'vm','templateUrl':_0x2b3c8c,'parent':angular[_0x2f26c4(0x1853)](_0x481658[_0x2f26c4(0x1ed9)]),'targetEvent':_0x530c9e,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x5d398e,'chatQueues':_0xd416bd[_0x2f26c4(0x25cd)][_0x2f26c4(0x2214)],'license':_0xd416bd[_0x2f26c4(0x8a5)],'setting':_0xd416bd['setting'],'crudPermissions':_0xd416bd['crudPermissions']}});}function _0x437ce7(_0xb90d){const _0x223d66=_0x17222e;_0x3e276e[_0x223d66(0x1e86)][_0x223d66(0x111d)]({'id':_0xb90d['id']})['$promise']['then'](function(){const _0xfed256=_0x223d66;_0x39641b()[_0xfed256(0x152a)](_0xd416bd['chatQueues']['rows'],{'id':_0xb90d['id']}),_0xd416bd[_0xfed256(0x25cd)]['count']-=0x1,!_0xd416bd[_0xfed256(0x25cd)][_0xfed256(0x2214)][_0xfed256(0xfd0)]&&_0xd416bd[_0xfed256(0x730)](),_0x35741a[_0xfed256(0x829)]({'title':_0x39641b()[_0xfed256(0xa75)](_0xfed256(0x245))+_0xfed256(0x2663),'msg':_0xb90d[_0xfed256(0x16b6)]?_0xb90d[_0xfed256(0x16b6)]+_0xfed256(0x3f5):''});})['catch'](function(_0xa6b1b6){const _0x1583af=_0x223d66;if(_0xa6b1b6['data']&&_0xa6b1b6[_0x1583af(0x25c)][_0x1583af(0x1a7c)]&&_0xa6b1b6[_0x1583af(0x25c)][_0x1583af(0x1a7c)][_0x1583af(0xfd0)]){_0xd416bd[_0x1583af(0x1a7c)]=_0xa6b1b6[_0x1583af(0x25c)][_0x1583af(0x1a7c)]||[{'message':_0xa6b1b6[_0x1583af(0x147f)](),'type':_0x1583af(0x1baf)}];for(let _0x15d4f0=0x0;_0x15d4f0<_0xa6b1b6['data'][_0x1583af(0x1a7c)]['length'];_0x15d4f0++){_0x35741a[_0x1583af(0x218e)]({'title':_0xa6b1b6[_0x1583af(0x25c)][_0x1583af(0x1a7c)][_0x15d4f0][_0x1583af(0x66a)],'msg':_0xa6b1b6[_0x1583af(0x25c)][_0x1583af(0x1a7c)][_0x15d4f0][_0x1583af(0x155e)]});}}else _0x35741a[_0x1583af(0x218e)]({'title':_0xa6b1b6[_0x1583af(0x291)]?_0x1583af(0xeb9)+_0xa6b1b6['status']+_0x1583af(0x1657)+_0xa6b1b6[_0x1583af(0xc22)]:_0x1583af(0x1baf),'msg':_0xa6b1b6[_0x1583af(0x25c)]?JSON[_0x1583af(0x2701)](_0xa6b1b6['data'][_0x1583af(0x155e)]):_0xa6b1b6[_0x1583af(0x155e)]||_0xa6b1b6[_0x1583af(0x147f)]()});});}function _0x57b965(){const _0x37a242=_0x17222e,_0x1022ac=angular[_0x37a242(0x17fe)](_0xd416bd[_0x37a242(0x195b)]);return _0xd416bd[_0x37a242(0x195b)]=[],_0x1022ac;}function _0x22b407(_0x263d11){const _0x1bb01f=_0x17222e,_0x4f6367=_0x5c737c[_0x1bb01f(0x1551)]()[_0x1bb01f(0x1386)](_0x1bb01f(0x8f0))[_0x1bb01f(0x49e)](_0x1bb01f(0x204d)+_0xd416bd[_0x1bb01f(0x195b)]['length']+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x1bb01f(0x15ad)](_0x1bb01f(0x273f))[_0x1bb01f(0x728)](_0x263d11)['ok']('OK')[_0x1bb01f(0x696)](_0x1bb01f(0x24ba));_0x5c737c['show'](_0x4f6367)['then'](function(){const _0x55c3a2=_0x1bb01f;_0xd416bd[_0x55c3a2(0x195b)][_0x55c3a2(0xf90)](function(_0x18be7e){_0x437ce7(_0x18be7e);}),_0xd416bd[_0x55c3a2(0x195b)]=[];});}function _0x5d3c25(){const _0x93d1ea=_0x17222e;_0xd416bd[_0x93d1ea(0x195b)]=[];}function _0x8c4d5f(){const _0x270779=_0x17222e;_0xd416bd[_0x270779(0x195b)]=_0xd416bd['chatQueues'][_0x270779(0x2214)];}}const _0x178e04=_0x1d5353;;_0x5a0cc0[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state','$location',_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x25cd),_0x5537c6(0x1e86),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),'crudPermissions'];function _0x5a0cc0(_0x18b926,_0x4232a8,_0x1356b0,_0x469d39,_0x178883,_0x45cff8,_0x23e8db,_0x45b539,_0x4ea936,_0x25a809,_0x2efd46,_0x4fdcfa,_0x8c1498,_0x4e99c6){const _0x38f319=_0x5537c6,_0x17a98f=this;_0x17a98f[_0x38f319(0xe76)]=_0x2efd46[_0x38f319(0x21e8)](),_0x17a98f[_0x38f319(0x1a7c)]=[],_0x17a98f[_0x38f319(0x9ca)]=_0x8c1498,_0x17a98f[_0x38f319(0x8a5)]=_0x4fdcfa,_0x17a98f['crudPermissions']=_0x4e99c6,_0x17a98f[_0x38f319(0xf4c)]={},_0x17a98f['passwordPattern']=_0x17a98f[_0x38f319(0x9ca)]&&_0x17a98f[_0x38f319(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x17a98f['title']='CHAT.EDIT_CHATQUEUE',_0x17a98f['chatQueue']=angular[_0x38f319(0x17fe)](_0x4ea936),_0x17a98f[_0x38f319(0x25cd)]=_0x45b539,_0x17a98f[_0x38f319(0x1a33)]=![];!_0x17a98f[_0x38f319(0x1e86)]&&(_0x17a98f['chatQueue']={'strategy':'beepall','timeout':0xa},_0x17a98f[_0x38f319(0x1386)]=_0x38f319(0x244b),_0x17a98f[_0x38f319(0x1a33)]=!![]);_0x17a98f['addNewChatQueue']=_0x4fc133,_0x17a98f['saveChatQueue']=_0x3fffbb,_0x17a98f[_0x38f319(0x392)]=_0xc09daa,_0x17a98f[_0x38f319(0x2c4)]=_0x7947ef,_0x17a98f[_0x38f319(0xda0)]=_0x46c645;function _0x4fc133(){const _0x3b581b=_0x38f319;_0x17a98f[_0x3b581b(0x1a7c)]=[],_0x25a809[_0x3b581b(0x1e86)][_0x3b581b(0x1c3f)](_0x17a98f['chatQueue'])[_0x3b581b(0x1d77)][_0x3b581b(0x1cb0)](function(_0x11da7a){const _0x192aa7=_0x3b581b;_0x17a98f[_0x192aa7(0x25cd)][_0x192aa7(0xf63)](_0x11da7a['toJSON']()),_0x23e8db[_0x192aa7(0x829)]({'title':'ChatQueue\x20properly\x20created','msg':_0x17a98f[_0x192aa7(0x1e86)][_0x192aa7(0x16b6)]?_0x17a98f[_0x192aa7(0x1e86)][_0x192aa7(0x16b6)]+_0x192aa7(0x470):''}),_0x46c645(_0x11da7a);})[_0x3b581b(0x1c4)](function(_0x1780a6){const _0x5deeb0=_0x3b581b;if(_0x1780a6[_0x5deeb0(0x25c)]&&_0x1780a6['data'][_0x5deeb0(0x1a7c)]&&_0x1780a6['data'][_0x5deeb0(0x1a7c)][_0x5deeb0(0xfd0)]){_0x17a98f[_0x5deeb0(0x1a7c)]=_0x1780a6['data'][_0x5deeb0(0x1a7c)]||[{'message':_0x1780a6[_0x5deeb0(0x147f)](),'type':_0x5deeb0(0x2475)}];for(let _0x56ec2a=0x0;_0x56ec2a<_0x1780a6[_0x5deeb0(0x25c)][_0x5deeb0(0x1a7c)][_0x5deeb0(0xfd0)];_0x56ec2a+=0x1){_0x23e8db[_0x5deeb0(0x218e)]({'title':_0x1780a6[_0x5deeb0(0x25c)][_0x5deeb0(0x1a7c)][_0x56ec2a][_0x5deeb0(0x66a)],'msg':_0x1780a6['data'][_0x5deeb0(0x1a7c)][_0x56ec2a][_0x5deeb0(0x155e)]});}}else _0x23e8db[_0x5deeb0(0x218e)]({'title':_0x1780a6[_0x5deeb0(0x291)]?'API:'+_0x1780a6[_0x5deeb0(0x291)]+_0x5deeb0(0x1657)+_0x1780a6[_0x5deeb0(0xc22)]:_0x5deeb0(0x2475),'msg':_0x1780a6[_0x5deeb0(0x25c)]?JSON['stringify'](_0x1780a6['data'][_0x5deeb0(0x155e)]):_0x1780a6[_0x5deeb0(0x147f)]()});});}function _0x3fffbb(){const _0x305998=_0x38f319;_0x17a98f[_0x305998(0x1a7c)]=[],_0x25a809[_0x305998(0x1e86)][_0x305998(0x687)]({'id':_0x17a98f[_0x305998(0x1e86)]['id']},_0x17a98f['chatQueue'])['$promise'][_0x305998(0x1cb0)](function(_0x2e7120){const _0x38bf7a=_0x305998,_0x54345e=_0x39641b()[_0x38bf7a(0x13b4)](_0x17a98f[_0x38bf7a(0x25cd)],{'id':_0x2e7120['id']});_0x54345e&&_0x39641b()[_0x38bf7a(0x9c1)](_0x54345e,_0x39641b()[_0x38bf7a(0x169b)](_0x2e7120[_0x38bf7a(0x19b2)](),_0x39641b()[_0x38bf7a(0x1be5)](_0x54345e))),_0x23e8db['success']({'title':_0x38bf7a(0x1b69),'msg':_0x17a98f[_0x38bf7a(0x1e86)][_0x38bf7a(0x16b6)]?_0x17a98f[_0x38bf7a(0x1e86)][_0x38bf7a(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x46c645(_0x2e7120);})['catch'](function(_0x4f3b74){const _0x59d7a6=_0x305998;if(_0x4f3b74[_0x59d7a6(0x25c)]&&_0x4f3b74['data'][_0x59d7a6(0x1a7c)]&&_0x4f3b74[_0x59d7a6(0x25c)]['errors'][_0x59d7a6(0xfd0)]){_0x17a98f['errors']=_0x4f3b74['data']['errors']||[{'message':_0x4f3b74[_0x59d7a6(0x147f)](),'type':_0x59d7a6(0x2425)}];for(let _0x2203ce=0x0;_0x2203ce<_0x4f3b74[_0x59d7a6(0x25c)]['errors'][_0x59d7a6(0xfd0)];_0x2203ce++){_0x23e8db[_0x59d7a6(0x218e)]({'title':_0x4f3b74[_0x59d7a6(0x25c)][_0x59d7a6(0x1a7c)][_0x2203ce][_0x59d7a6(0x66a)],'msg':_0x4f3b74[_0x59d7a6(0x25c)][_0x59d7a6(0x1a7c)][_0x2203ce][_0x59d7a6(0x155e)]});}}else _0x23e8db[_0x59d7a6(0x218e)]({'title':_0x4f3b74[_0x59d7a6(0x291)]?'API:'+_0x4f3b74[_0x59d7a6(0x291)]+_0x59d7a6(0x1657)+_0x4f3b74[_0x59d7a6(0xc22)]:_0x59d7a6(0x2425),'msg':_0x4f3b74[_0x59d7a6(0x25c)]?JSON[_0x59d7a6(0x2701)](_0x4f3b74['data'][_0x59d7a6(0x155e)]):_0x4f3b74[_0x59d7a6(0x147f)]()});});}function _0xc09daa(_0x18376d){const _0x37ec3d=_0x38f319;_0x17a98f[_0x37ec3d(0x1a7c)]=[];const _0x42bcf4=_0x469d39[_0x37ec3d(0x1551)]()['title'](_0x37ec3d(0x1a2e))['content'](_0x37ec3d(0x12e1))[_0x37ec3d(0x15ad)](_0x37ec3d(0x1783))['ok'](_0x37ec3d(0x2594))['cancel'](_0x37ec3d(0xde1))[_0x37ec3d(0x728)](_0x18376d);_0x469d39[_0x37ec3d(0xe27)](_0x42bcf4)[_0x37ec3d(0x1cb0)](function(){const _0x35c989=_0x37ec3d;_0x25a809[_0x35c989(0x1e86)]['delete']({'id':_0x17a98f['chatQueue']['id']})[_0x35c989(0x1d77)][_0x35c989(0x1cb0)](function(){const _0x11c62e=_0x35c989;_0x39641b()[_0x11c62e(0x152a)](_0x17a98f[_0x11c62e(0x25cd)],{'id':_0x17a98f[_0x11c62e(0x1e86)]['id']}),_0x23e8db[_0x11c62e(0x829)]({'title':_0x11c62e(0x238c),'msg':(_0x17a98f[_0x11c62e(0x1e86)][_0x11c62e(0x16b6)]||_0x11c62e(0x1e86))+_0x11c62e(0x3f5)}),_0x46c645(_0x17a98f[_0x11c62e(0x1e86)]);})[_0x35c989(0x1c4)](function(_0x246af9){const _0x303b1c=_0x35c989;if(_0x246af9['data']&&_0x246af9[_0x303b1c(0x25c)][_0x303b1c(0x1a7c)]&&_0x246af9[_0x303b1c(0x25c)][_0x303b1c(0x1a7c)]['length']){_0x17a98f[_0x303b1c(0x1a7c)]=_0x246af9['data'][_0x303b1c(0x1a7c)]||[{'message':_0x246af9[_0x303b1c(0x147f)](),'type':_0x303b1c(0x2739)}];for(let _0x36d28b=0x0;_0x36d28b<_0x246af9[_0x303b1c(0x25c)]['errors']['length'];_0x36d28b++){_0x23e8db[_0x303b1c(0x218e)]({'title':_0x246af9[_0x303b1c(0x25c)][_0x303b1c(0x1a7c)][_0x36d28b][_0x303b1c(0x66a)],'msg':_0x246af9[_0x303b1c(0x25c)][_0x303b1c(0x1a7c)][_0x36d28b]['message']});}}else _0x23e8db[_0x303b1c(0x218e)]({'title':_0x246af9[_0x303b1c(0x291)]?_0x303b1c(0xeb9)+_0x246af9[_0x303b1c(0x291)]+_0x303b1c(0x1657)+_0x246af9['statusText']:_0x303b1c(0x2739),'msg':_0x246af9[_0x303b1c(0x25c)]?JSON[_0x303b1c(0x2701)](_0x246af9[_0x303b1c(0x25c)]['message']):_0x246af9[_0x303b1c(0x155e)]||_0x246af9[_0x303b1c(0x147f)]()});});},function(){});}function _0x7947ef(_0x371d53){return _0x371d53===null?undefined:new Date(_0x371d53);}function _0x46c645(_0x44487a){const _0x5b6266=_0x38f319;_0x469d39[_0x5b6266(0x1426)](_0x44487a);}}const _0x3c8291=_0x5a0cc0;;_0x5b3be6[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1e86),_0x5537c6(0x25cd),_0x5537c6(0x217b),_0x5537c6(0x1ae),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x5b3be6(_0xc03dab,_0x435b18,_0x2495f4,_0x36b126,_0x562dfd,_0x5fa05b,_0xf7913f,_0x43809d,_0x2eef09,_0x4345a8){const _0x2f7399=_0x5537c6,_0x24c5f7=this;_0x24c5f7[_0x2f7399(0xe76)]=_0x2eef09['getCurrentUser'](),_0x24c5f7['chatQueue']=_0x562dfd,_0x24c5f7[_0x2f7399(0x1b1a)]=_0x4345a8,_0x24c5f7[_0x2f7399(0x217b)]=_0xf7913f,_0x24c5f7['items']=[],_0x24c5f7['allowedItems']=[],_0x24c5f7['selectedItems']=[],_0x24c5f7[_0x2f7399(0xbd5)]=[],_0x24c5f7['startingSelectedItems']=[],_0x24c5f7[_0x2f7399(0x50c)]=![],_0x24c5f7[_0x2f7399(0x1a34)]=_0x161507,_0x24c5f7[_0x2f7399(0x1dd5)]=_0x1c9366,_0x24c5f7[_0x2f7399(0xda0)]=_0x4308ad,_0x24c5f7[_0x2f7399(0x18c0)]={'readOnly':!_0x24c5f7[_0x2f7399(0x1b1a)][_0x2f7399(0xb3d)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2f7399(0x16b6),'line1':_0x2f7399(0x1d14),'line2':['name',_0x2f7399(0xdbd)],'line3':'','labelAll':_0x43809d[_0x2f7399(0x25cc)](_0x2f7399(0x21e7)),'labelSelected':_0x43809d[_0x2f7399(0x25cc)]('APP.SELECTED_AGENTS'),'transferCallback':function(){const _0x376354=_0x2f7399,_0x523245=_0x39641b()['xorBy'](_0x24c5f7['startingSelectedItems'],_0x24c5f7[_0x376354(0x20bb)],'id');_0x24c5f7['pendingChanges']=_0x39641b()[_0x376354(0xce9)](_0x523245)?![]:!![];}};function _0x161507(){const _0xf7e1f8=_0x2f7399;return _0x2eef09[_0xf7e1f8(0x22b6)](_0xf7e1f8(0x1c60))?_0x4ca4d2()[_0xf7e1f8(0x1c4)](function(_0x2cfad5){const _0x46b8ea=_0xf7e1f8;_0x2495f4[_0x46b8ea(0x218e)]({'title':_0x2cfad5[_0x46b8ea(0x291)]?_0x46b8ea(0xeb9)+_0x2cfad5[_0x46b8ea(0x291)]+_0x46b8ea(0x1657)+_0x2cfad5['statusText']:'SYSTEM:GET_AGENTS','msg':_0x2cfad5[_0x46b8ea(0x291)]?JSON[_0x46b8ea(0x2701)](_0x2cfad5['data']):_0x2cfad5['toString']()});}):_0x12896f()[_0xf7e1f8(0x1cb0)](function(_0x12444a){const _0x5c180b=_0xf7e1f8;return _0x24c5f7[_0x5c180b(0x1f74)]=_0x12444a,_0x4ca4d2();})[_0xf7e1f8(0x1c4)](function(_0x1da0cc){const _0xc8fe89=_0xf7e1f8;_0x2495f4[_0xc8fe89(0x218e)]({'title':_0x1da0cc[_0xc8fe89(0x291)]?_0xc8fe89(0xeb9)+_0x1da0cc[_0xc8fe89(0x291)]+_0xc8fe89(0x1657)+_0x1da0cc[_0xc8fe89(0xc22)]:_0xc8fe89(0x799),'msg':_0x1da0cc[_0xc8fe89(0x291)]?JSON[_0xc8fe89(0x2701)](_0x1da0cc[_0xc8fe89(0x25c)]):_0x1da0cc[_0xc8fe89(0x147f)]()});});}function _0x12896f(){return _0x435b18(function(_0x575cd7,_0x2ac993){const _0x50b2fe=a0_0x5cbd;_0x36b126[_0x50b2fe(0x2199)]['get']({'userProfileId':_0x24c5f7[_0x50b2fe(0xe76)][_0x50b2fe(0x13c1)],'name':'Agents'})[_0x50b2fe(0x1d77)][_0x50b2fe(0x1cb0)](function(_0x316d67){const _0x10ec34=_0x50b2fe,_0x155bbc=_0x316d67&&_0x316d67[_0x10ec34(0x2214)]?_0x316d67[_0x10ec34(0x2214)][0x0]:null;_0x575cd7(_0x155bbc);})[_0x50b2fe(0x1c4)](function(_0x5400ed){_0x2ac993(_0x5400ed);});});}function _0x4ca4d2(){return _0x435b18(function(_0xd68343,_0x573af6){const _0x11c095=a0_0x5cbd;return _0x4fb3e2()[_0x11c095(0x1cb0)](function(_0x29ff7d){const _0x176399=_0x11c095;return _0x24c5f7[_0x176399(0x122f)]=_0x29ff7d[_0x176399(0x2214)]?_0x29ff7d[_0x176399(0x2214)]:[],_0x2eef09[_0x176399(0x22b6)]('admin')?_0x29ff7d:_0x24c5f7[_0x176399(0x1f74)]?_0x24c5f7[_0x176399(0x1f74)][_0x176399(0x12f4)]?_0x29ff7d:_0x2bf8bc():null;})[_0x11c095(0x1cb0)](function(_0x111c7d){const _0x1507e6=_0x11c095,_0x8356e8=_0x111c7d&&_0x111c7d[_0x1507e6(0x2214)]?_0x111c7d[_0x1507e6(0x2214)]:[];return _0x24c5f7['allowedItems']=_0x39641b()[_0x1507e6(0x1de2)](_0x8356e8,function(_0xc739a8){const _0x1da7b0=_0x1507e6;return _0x39641b()[_0x1da7b0(0x13b4)](_0x24c5f7[_0x1da7b0(0x122f)],{'id':_0x2eef09[_0x1da7b0(0x22b6)]('admin')||_0x24c5f7['section'][_0x1da7b0(0x12f4)]?_0xc739a8['id']:_0xc739a8[_0x1da7b0(0x2982)]});}),_0x24c5f7['startingAllowedItems']=angular[_0x1507e6(0x17fe)](_0x24c5f7[_0x1507e6(0x1372)]),_0x24c5f7['items'][_0x1507e6(0xf90)](function(_0x1db8d9){const _0x33c8c6=_0x1507e6,_0x5f20c7=_0x39641b()[_0x33c8c6(0x13b4)](_0x24c5f7[_0x33c8c6(0x1372)],{'id':_0x1db8d9['id']});_0x2eef09[_0x33c8c6(0x22b6)](_0x33c8c6(0x1c60))?_0x1db8d9[_0x33c8c6(0x1a4f)]=!![]:_0x1db8d9[_0x33c8c6(0x1a4f)]=typeof _0x5f20c7!==_0x33c8c6(0x16b5)?!![]:![];}),_0x2d9c35();})[_0x11c095(0x1cb0)](function(_0x112ba4){const _0x150363=_0x11c095,_0x2f96b1=_0x112ba4&&_0x112ba4[_0x150363(0x2214)]?_0x112ba4[_0x150363(0x2214)]:[];_0x24c5f7[_0x150363(0x20bb)]=_0x39641b()[_0x150363(0x1de2)](_0x2f96b1,function(_0xc9f3b3){const _0x4ecdf4=_0x150363,_0x5d6078=_0x39641b()[_0x4ecdf4(0x13b4)](_0x24c5f7['items'],{'id':_0xc9f3b3['id']});return _0x5d6078['penalty']=_0xc9f3b3['UserChatQueue']?_0x4ecdf4(0x455)+_0xc9f3b3['UserChatQueue']['penalty']:'',_0x5d6078[_0x4ecdf4(0xdbd)]=typeof _0xc9f3b3[_0x4ecdf4(0xdbd)]!==_0x4ecdf4(0x16b5)?'<'+_0xc9f3b3[_0x4ecdf4(0xdbd)]+'>':'',_0x5d6078;}),_0x24c5f7['startingSelectedItems']=angular[_0x150363(0x17fe)](_0x24c5f7[_0x150363(0x20bb)]),_0x24c5f7[_0x150363(0x18c0)][_0x150363(0x20bb)]=_0x24c5f7['selectedItems'],_0x24c5f7[_0x150363(0x18c0)]['items']=_0x39641b()['differenceBy'](_0x24c5f7[_0x150363(0x1372)],_0x24c5f7[_0x150363(0x18c0)]['selectedItems'],'id'),_0xd68343();})['catch'](function(_0x2ff498){_0x573af6(_0x2ff498);});});}function _0x2bf8bc(){return _0x435b18(function(_0x5eb1dc,_0x3fc3f6){const _0x3a513d=a0_0x5cbd;return _0x36b126['userProfileResource']['get']({'sectionId':_0x24c5f7[_0x3a513d(0x1f74)]['id'],'nolimit':!![]})[_0x3a513d(0x1d77)][_0x3a513d(0x1cb0)](function(_0x4d4980){_0x5eb1dc(_0x4d4980);})[_0x3a513d(0x1c4)](function(_0x34f9b8){_0x3fc3f6(_0x34f9b8);});});}function _0x2d9c35(){return _0x435b18(function(_0x152867,_0xfab3d4){const _0x1c0bf8=a0_0x5cbd;return _0x36b126[_0x1c0bf8(0x1e86)][_0x1c0bf8(0x2348)]({'id':_0x24c5f7[_0x1c0bf8(0x1e86)]['id'],'fields':_0x1c0bf8(0x251e),'nolimit':!![],'role':'agent'})[_0x1c0bf8(0x1d77)]['then'](function(_0x26a071){_0x152867(_0x26a071);})[_0x1c0bf8(0x1c4)](function(_0x19f42c){_0xfab3d4(_0x19f42c);});});}function _0x4fb3e2(){return _0x435b18(function(_0xe02d3d,_0x5b9f8b){const _0x1a72a2=a0_0x5cbd;return _0x36b126[_0x1a72a2(0xebe)][_0x1a72a2(0xbf7)]({'fields':_0x1a72a2(0x251e),'nolimit':!![],'role':_0x1a72a2(0x1eff)})[_0x1a72a2(0x1d77)][_0x1a72a2(0x1cb0)](function(_0x3d9608){_0xe02d3d(_0x3d9608);})[_0x1a72a2(0x1c4)](function(_0x34865c){_0x5b9f8b(_0x34865c);});});}function _0x4eefb3(_0xb9d8f){return _0x435b18(function(_0x2ae515,_0x2e0e2b){const _0x4f82d1=a0_0x5cbd;_0x39641b()[_0x4f82d1(0xce9)](_0xb9d8f)?_0x2ae515():_0x36b126['chatQueue'][_0x4f82d1(0x2057)]({'id':_0x24c5f7[_0x4f82d1(0x1e86)]['id'],'ids':_0x39641b()[_0x4f82d1(0x1de2)](_0xb9d8f,'id')})[_0x4f82d1(0x1d77)][_0x4f82d1(0x1cb0)](function(){_0x2ae515();})[_0x4f82d1(0x1c4)](function(_0x287cad){_0x2e0e2b(_0x287cad);});});}function _0x6398a6(_0x5de503){return _0x435b18(function(_0x412421,_0xa9f919){const _0x2f73c1=a0_0x5cbd;_0x39641b()[_0x2f73c1(0xce9)](_0x5de503)?_0x412421():_0x36b126[_0x2f73c1(0x1e86)][_0x2f73c1(0x223f)]({'id':_0x24c5f7['chatQueue']['id'],'ids':_0x39641b()[_0x2f73c1(0x1de2)](_0x5de503,'id')})[_0x2f73c1(0x1d77)][_0x2f73c1(0x1cb0)](function(){_0x412421();})['catch'](function(_0x332233){_0xa9f919(_0x332233);});});}function _0x1c9366(){const _0x15a320=_0x2f7399,_0x1e0c58=_0x39641b()['differenceBy'](_0x24c5f7[_0x15a320(0x1456)],_0x24c5f7[_0x15a320(0x20bb)],'id'),_0x5978d2=_0x39641b()[_0x15a320(0x2128)](_0x24c5f7[_0x15a320(0x20bb)],_0x24c5f7[_0x15a320(0x1456)],'id');return _0x6398a6(_0x1e0c58)['then'](function(){return _0x4eefb3(_0x5978d2);})[_0x15a320(0x1cb0)](function(){const _0xc7efa5=_0x15a320;_0x24c5f7[_0xc7efa5(0x50c)]=![],_0x24c5f7[_0xc7efa5(0xbd5)]=angular['copy'](_0x24c5f7[_0xc7efa5(0x1372)]),_0x24c5f7[_0xc7efa5(0x1456)]=angular['copy'](_0x24c5f7[_0xc7efa5(0x20bb)]),_0x2495f4['success']({'title':_0xc7efa5(0x201),'msg':_0xc7efa5(0x976)});})[_0x15a320(0x1c4)](function(_0x101fae){const _0x3b8c26=_0x15a320;_0x2495f4[_0x3b8c26(0x218e)]({'title':_0x101fae[_0x3b8c26(0x291)]?_0x3b8c26(0xeb9)+_0x101fae[_0x3b8c26(0x291)]+_0x3b8c26(0x1657)+_0x101fae[_0x3b8c26(0xc22)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x101fae[_0x3b8c26(0x291)]?JSON[_0x3b8c26(0x2701)](_0x101fae[_0x3b8c26(0x25c)]):_0x101fae[_0x3b8c26(0x147f)]()});});}function _0x4308ad(){const _0x577b72=_0x2f7399;_0xc03dab[_0x577b72(0x1426)]();}}const _0x3d9ca5=_0x5b3be6;;_0x4d5bc0[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x142b),'chatQueue',_0x5537c6(0x1ae),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x4d5bc0(_0x268620,_0x3b51c4,_0x5e4868,_0x56b582,_0x430108,_0x285415,_0x2f83c1,_0x4bebe9){const _0x68638a=_0x5537c6,_0x547255=this;_0x547255['currentUser']=_0x2f83c1['getCurrentUser'](),_0x547255[_0x68638a(0x1e86)]=_0x430108,_0x547255[_0x68638a(0x1b1a)]=_0x4bebe9,_0x547255['items']=[],_0x547255[_0x68638a(0x1372)]=[],_0x547255[_0x68638a(0x20bb)]=[],_0x547255['startingAllowedItems']=[],_0x547255[_0x68638a(0x1456)]=[],_0x547255[_0x68638a(0x50c)]=![],_0x547255['dualMultiselectOptions']={'readOnly':!_0x547255[_0x68638a(0x1b1a)][_0x68638a(0xb3d)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x68638a(0x16b6),'line1':_0x68638a(0x16b6),'line2':'','line3':'','labelAll':_0x285415['instant']('APP.ALL_TEAMS'),'labelSelected':_0x285415[_0x68638a(0x25cc)]('APP.SELECTED_TEAMS'),'transferCallback':function(){const _0x19915=_0x68638a,_0x5d51e4=_0x39641b()['xorBy'](_0x547255[_0x19915(0x1456)],_0x547255[_0x19915(0x20bb)],'id');_0x547255[_0x19915(0x50c)]=_0x39641b()['isEmpty'](_0x5d51e4)?![]:!![];}},_0x547255['onInit']=_0x2fcbeb,_0x547255[_0x68638a(0x1c56)]=_0x58b86e,_0x547255[_0x68638a(0xda0)]=_0x2962f4;function _0x2fcbeb(){const _0x1495da=_0x68638a;return _0x2f83c1[_0x1495da(0x22b6)](_0x1495da(0x1c60))?_0x285d28()[_0x1495da(0x1c4)](function(_0x2eaf26){const _0x10b90b=_0x1495da;_0x5e4868[_0x10b90b(0x218e)]({'title':_0x2eaf26[_0x10b90b(0x291)]?_0x10b90b(0xeb9)+_0x2eaf26['status']+_0x10b90b(0x1657)+_0x2eaf26[_0x10b90b(0xc22)]:'SYSTEM:GET_TEAMS','msg':_0x2eaf26[_0x10b90b(0x291)]?JSON[_0x10b90b(0x2701)](_0x2eaf26['data']):_0x2eaf26['toString']()});}):_0x1997bb()['then'](function(_0x20323f){return _0x547255['section']=_0x20323f,_0x285d28();})[_0x1495da(0x1c4)](function(_0x865bd0){const _0x3a863c=_0x1495da;_0x5e4868[_0x3a863c(0x218e)]({'title':_0x865bd0['status']?_0x3a863c(0xeb9)+_0x865bd0[_0x3a863c(0x291)]+_0x3a863c(0x1657)+_0x865bd0[_0x3a863c(0xc22)]:_0x3a863c(0x2206),'msg':_0x865bd0[_0x3a863c(0x291)]?JSON[_0x3a863c(0x2701)](_0x865bd0['data']):_0x865bd0[_0x3a863c(0x147f)]()});});}function _0x1997bb(){return _0x3b51c4(function(_0x55bcf6,_0x29c914){const _0x347be7=a0_0x5cbd;_0x56b582['userProfileSection'][_0x347be7(0xbf7)]({'userProfileId':_0x547255[_0x347be7(0xe76)][_0x347be7(0x13c1)],'name':'Teams'})[_0x347be7(0x1d77)][_0x347be7(0x1cb0)](function(_0x4dc660){const _0x18c49f=_0x347be7,_0x25d575=_0x4dc660&&_0x4dc660['rows']?_0x4dc660[_0x18c49f(0x2214)][0x0]:null;_0x55bcf6(_0x25d575);})[_0x347be7(0x1c4)](function(_0x3b9b81){_0x29c914(_0x3b9b81);});});}function _0x285d28(){return _0x3b51c4(function(_0xb73472,_0x1b2085){const _0x55b86a=a0_0x5cbd;return _0x345515()[_0x55b86a(0x1cb0)](function(_0x4bb7ce){const _0x140d8f=_0x55b86a;return _0x547255[_0x140d8f(0x122f)]=_0x4bb7ce['rows']?_0x4bb7ce[_0x140d8f(0x2214)]:[],_0x2f83c1['hasRole']('admin')?_0x4bb7ce:_0x547255[_0x140d8f(0x1f74)]?_0x547255[_0x140d8f(0x1f74)][_0x140d8f(0x12f4)]?_0x4bb7ce:_0x438a4e():null;})[_0x55b86a(0x1cb0)](function(_0x456f68){const _0x460777=_0x55b86a,_0x82236b=_0x456f68&&_0x456f68[_0x460777(0x2214)]?_0x456f68[_0x460777(0x2214)]:[];return _0x547255[_0x460777(0x1372)]=_0x39641b()['map'](_0x82236b,function(_0xc145da){const _0x536df8=_0x460777;return _0x39641b()[_0x536df8(0x13b4)](_0x547255[_0x536df8(0x122f)],{'id':_0x2f83c1[_0x536df8(0x22b6)](_0x536df8(0x1c60))||_0x547255[_0x536df8(0x1f74)][_0x536df8(0x12f4)]?_0xc145da['id']:_0xc145da[_0x536df8(0x2982)]});}),_0x547255[_0x460777(0x122f)][_0x460777(0xf90)](function(_0x5334ae){const _0x4adb1c=_0x460777,_0x29a4c3=_0x39641b()['find'](_0x547255[_0x4adb1c(0x1372)],{'id':_0x5334ae['id']});_0x2f83c1[_0x4adb1c(0x22b6)](_0x4adb1c(0x1c60))?_0x5334ae[_0x4adb1c(0x1a4f)]=!![]:_0x5334ae['isValid']=typeof _0x29a4c3!==_0x4adb1c(0x16b5)?!![]:![];}),_0x27139e();})[_0x55b86a(0x1cb0)](function(_0xdd3380){const _0xa756c7=_0x55b86a,_0x53f559=_0xdd3380&&_0xdd3380[_0xa756c7(0x2214)]?_0xdd3380['rows']:[];_0x547255[_0xa756c7(0x20bb)]=_0x39641b()[_0xa756c7(0x1de2)](_0x53f559,function(_0x1e3a6f){const _0x2f5dab=_0xa756c7;return _0x39641b()[_0x2f5dab(0x13b4)](_0x547255[_0x2f5dab(0x122f)],{'id':_0x1e3a6f['id']});}),_0x547255[_0xa756c7(0x1456)]=angular[_0xa756c7(0x17fe)](_0x547255[_0xa756c7(0x20bb)]),_0x547255[_0xa756c7(0x18c0)][_0xa756c7(0x20bb)]=_0x547255[_0xa756c7(0x20bb)],_0x547255[_0xa756c7(0x18c0)][_0xa756c7(0x122f)]=_0x39641b()[_0xa756c7(0x2128)](_0x547255['allowedItems'],_0x547255['dualMultiselectOptions'][_0xa756c7(0x20bb)],'id'),_0xb73472();})['catch'](function(_0x38615a){_0x1b2085(_0x38615a);});});}function _0x438a4e(){return _0x3b51c4(function(_0x5278eb,_0x4051f4){const _0x54013c=a0_0x5cbd;return _0x56b582[_0x54013c(0x1198)]['get']({'sectionId':_0x547255[_0x54013c(0x1f74)]['id'],'nolimit':!![]})[_0x54013c(0x1d77)][_0x54013c(0x1cb0)](function(_0x3998dd){_0x5278eb(_0x3998dd);})[_0x54013c(0x1c4)](function(_0x4447b7){_0x4051f4(_0x4447b7);});});}function _0x27139e(){return _0x3b51c4(function(_0x30eedf,_0x5e1e22){const _0x5f33c4=a0_0x5cbd;return _0x56b582[_0x5f33c4(0x1e86)][_0x5f33c4(0x1407)]({'id':_0x547255[_0x5f33c4(0x1e86)]['id'],'fields':_0x5f33c4(0x43c),'nolimit':!![]})['$promise'][_0x5f33c4(0x1cb0)](function(_0x3cc979){_0x30eedf(_0x3cc979);})[_0x5f33c4(0x1c4)](function(_0x2c8ddd){_0x5e1e22(_0x2c8ddd);});});}function _0x345515(){return _0x3b51c4(function(_0x327dde,_0x1b0ee6){const _0x144068=a0_0x5cbd;return _0x56b582['team'][_0x144068(0xbf7)]({'fields':_0x144068(0x43c),'nolimit':!![]})[_0x144068(0x1d77)][_0x144068(0x1cb0)](function(_0x582212){_0x327dde(_0x582212);})[_0x144068(0x1c4)](function(_0x55a0b5){_0x1b0ee6(_0x55a0b5);});});}function _0x950c2e(_0x35c003){return _0x3b51c4(function(_0x5c80e1,_0x503c29){const _0x4911f6=a0_0x5cbd;_0x39641b()['isEmpty'](_0x35c003)?_0x5c80e1():_0x56b582[_0x4911f6(0x1e86)][_0x4911f6(0x28d9)]({'id':_0x547255['chatQueue']['id'],'ids':_0x39641b()[_0x4911f6(0x1de2)](_0x35c003,'id')})[_0x4911f6(0x1d77)][_0x4911f6(0x1cb0)](function(){_0x5c80e1();})[_0x4911f6(0x1c4)](function(_0x3bc887){_0x503c29(_0x3bc887);});});}function _0x38d4ec(_0x5eda2e){return _0x3b51c4(function(_0x55844d,_0x58d3f5){const _0x438887=a0_0x5cbd;_0x39641b()[_0x438887(0xce9)](_0x5eda2e)?_0x55844d():_0x56b582[_0x438887(0x1e86)][_0x438887(0xfcc)]({'id':_0x547255[_0x438887(0x1e86)]['id'],'ids':_0x39641b()[_0x438887(0x1de2)](_0x5eda2e,'id')})[_0x438887(0x1d77)][_0x438887(0x1cb0)](function(){_0x55844d();})[_0x438887(0x1c4)](function(_0x332b09){_0x58d3f5(_0x332b09);});});}function _0x58b86e(){const _0x1cbb7e=_0x68638a,_0x35a0b9=_0x39641b()[_0x1cbb7e(0x2128)](_0x547255[_0x1cbb7e(0x1456)],_0x547255[_0x1cbb7e(0x20bb)],'id'),_0x14adea=_0x39641b()[_0x1cbb7e(0x2128)](_0x547255[_0x1cbb7e(0x20bb)],_0x547255[_0x1cbb7e(0x1456)],'id');return _0x38d4ec(_0x35a0b9)[_0x1cbb7e(0x1cb0)](function(){return _0x950c2e(_0x14adea);})['then'](function(){const _0xe66e04=_0x1cbb7e;_0x547255['pendingChanges']=![],_0x547255[_0xe66e04(0xbd5)]=angular[_0xe66e04(0x17fe)](_0x547255['allowedItems']),_0x547255[_0xe66e04(0x1456)]=angular['copy'](_0x547255[_0xe66e04(0x20bb)]),_0x5e4868[_0xe66e04(0x829)]({'title':_0xe66e04(0x201),'msg':_0xe66e04(0xc72)});})[_0x1cbb7e(0x1c4)](function(_0x1d50c4){const _0x528dfe=_0x1cbb7e;_0x5e4868['error']({'title':_0x1d50c4[_0x528dfe(0x291)]?_0x528dfe(0xeb9)+_0x1d50c4[_0x528dfe(0x291)]+'\x20-\x20'+_0x1d50c4[_0x528dfe(0xc22)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x1d50c4[_0x528dfe(0x291)]?JSON[_0x528dfe(0x2701)](_0x1d50c4['data']):_0x1d50c4[_0x528dfe(0x147f)]()});});}function _0x2962f4(){const _0x3a03f8=_0x68638a;_0x268620[_0x3a03f8(0x1426)]();}}const _0x3d2f51=_0x4d5bc0;;_0x335aef[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$document','$translate',_0x5537c6(0x8a5),'setting',_0x5537c6(0x142b),_0x5537c6(0x9bf),'Auth',_0x5537c6(0x1e86),_0x5537c6(0x2199)];function _0x335aef(_0x35e300,_0x2a1c81,_0x5c68dd,_0xaed62f,_0x4f4b4e,_0x5c0fcf,_0x4b6e38,_0x520da1,_0x3dece5,_0x7eb348,_0x3859ff,_0x5c8927){const _0x42c8fe=_0x5537c6,_0x1ec2dd=this;_0x1ec2dd[_0x42c8fe(0xe76)]=_0x7eb348[_0x42c8fe(0x21e8)](),_0x1ec2dd['license']=_0x5c0fcf,_0x1ec2dd['setting']=_0x4b6e38,_0x1ec2dd[_0x42c8fe(0x1b0c)]=_0x1ec2dd[_0x42c8fe(0x9ca)][_0x42c8fe(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1ec2dd[_0x42c8fe(0x2404)]=_0x2a1c81['protocol']()+'://'+_0x2a1c81['host'](),_0x1ec2dd[_0x42c8fe(0x1e86)]=_0x3859ff||_0x35e300['params'][_0x42c8fe(0x1e86)]||{},_0x1ec2dd[_0x42c8fe(0x2199)]=_0x5c8927&&_0x5c8927[_0x42c8fe(0x184d)]==0x1?_0x5c8927[_0x42c8fe(0x2214)][0x0]:null,_0x1ec2dd['crudPermissions']=_0x7eb348[_0x42c8fe(0x14ea)](_0x1ec2dd[_0x42c8fe(0x2199)]?_0x1ec2dd[_0x42c8fe(0x2199)][_0x42c8fe(0x1b1a)]:null),_0x1ec2dd[_0x42c8fe(0xf4c)]={},_0x1ec2dd[_0x42c8fe(0x8ec)]=_0x35e300[_0x42c8fe(0x1dfe)][_0x42c8fe(0x291e)]||0x0,_0x1ec2dd['teamadddialog']=_0xd18e30,_0x1ec2dd[_0x42c8fe(0x1379)]=_0x425258,_0x1ec2dd[_0x42c8fe(0x494)]=_0x3dece5[_0x42c8fe(0x28c7)],_0x1ec2dd['gotoChatQueues']=_0x460ff1,_0x1ec2dd[_0x42c8fe(0x1fc1)]=_0x567175;function _0xd18e30(_0x256c0d,_0x2636a6){const _0x561b63=_0x42c8fe;_0x5c68dd['show']({'controller':_0x561b63(0x151a),'controllerAs':'vm','templateUrl':_0x285e42,'parent':angular[_0x561b63(0x1853)](_0xaed62f[_0x561b63(0x1ed9)]),'targetEvent':_0x2636a6,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x256c0d,'chatQueues':_0x1ec2dd['chatQueues']?_0x1ec2dd['chatQueues']['rows']:[],'crudPermissions':_0x1ec2dd[_0x561b63(0x1b1a)]}});}function _0x425258(_0x5ec71f,_0x3e8742){const _0xb69825=_0x42c8fe;_0x5c68dd[_0xb69825(0xe27)]({'controller':_0xb69825(0x6dd),'controllerAs':'vm','templateUrl':_0x18839a,'parent':angular['element'](_0xaed62f[_0xb69825(0x1ed9)]),'targetEvent':_0x3e8742,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x5ec71f,'chatQueues':_0x1ec2dd[_0xb69825(0x25cd)]?_0x1ec2dd['chatQueues'][_0xb69825(0x2214)]:[],'crudPermissions':_0x1ec2dd['crudPermissions'],'realtime':![]}});}function _0x460ff1(){const _0x5ae60a=_0x42c8fe;_0x35e300['go'](_0x5ae60a(0x1c96),{},{'reload':'app.chat.chatQueues'});}function _0x567175(){const _0x57e221=_0x42c8fe;_0x520da1[_0x57e221(0x1e86)]['update']({'id':_0x1ec2dd[_0x57e221(0x1e86)]['id']},_0x1ec2dd[_0x57e221(0x1e86)])[_0x57e221(0x1d77)][_0x57e221(0x1cb0)](function(){const _0x22b9d4=_0x57e221;_0x3dece5[_0x22b9d4(0x829)]({'title':'ChatQueue\x20updated!','msg':_0x1ec2dd[_0x22b9d4(0x1e86)][_0x22b9d4(0x16b6)]?_0x1ec2dd[_0x22b9d4(0x1e86)][_0x22b9d4(0x16b6)]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x5597ae){const _0x21b2e9=_0x57e221;_0x3dece5[_0x21b2e9(0x218e)]({'title':_0x5597ae[_0x21b2e9(0x291)]?_0x21b2e9(0xeb9)+_0x5597ae[_0x21b2e9(0x291)]+'\x20-\x20'+_0x5597ae[_0x21b2e9(0xc22)]:'SYSTEM:GETchatQueue','msg':_0x5597ae[_0x21b2e9(0x25c)]?JSON['stringify'](_0x5597ae[_0x21b2e9(0x25c)]):_0x5597ae[_0x21b2e9(0x147f)]()});});}}const _0xffd31b=_0x335aef;;const _0x316723=_0x5074a3['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/agentadd/agentadd.html/agentadd.html';;const _0x5f2911=_0x5074a3['p']+'src/js/modules/main/apps/chat/views/chatWebsites/create/dialog.html/dialog.html';;_0x26f262['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'$timeout',_0x5537c6(0x1ae),_0x5537c6(0x2137),_0x5537c6(0x44a),_0x5537c6(0x2199),'api',_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x26f262(_0x3d9116,_0x3f51d3,_0x1e24c7,_0x34bd95,_0x3e832d,_0x4c7399,_0x992d5e,_0x44e5a0,_0x201ee4,_0x1b47c4,_0x201f70,_0xe9791,_0x1e61ce,_0x47fba9,_0x537956,_0x3efc35,_0x929769){const _0x5bb01b=_0x5537c6,_0x13d75b=this;_0x13d75b['license']=_0x3efc35,_0x13d75b['setting']=_0x929769,_0x13d75b['currentUser']=_0x537956[_0x5bb01b(0x21e8)](),_0x13d75b[_0x5bb01b(0x2137)]=_0x201ee4||{'count':0x0,'rows':[]},_0x13d75b[_0x5bb01b(0x44a)]=_0x1b47c4,_0x13d75b[_0x5bb01b(0x2199)]=_0x201f70&&_0x201f70[_0x5bb01b(0x184d)]==0x1?_0x201f70[_0x5bb01b(0x2214)][0x0]:null,_0x13d75b[_0x5bb01b(0x1b1a)]=_0x537956[_0x5bb01b(0x14ea)](_0x13d75b[_0x5bb01b(0x2199)]?_0x13d75b[_0x5bb01b(0x2199)]['crudPermissions']:null),_0x13d75b['table']=_0x5bb01b(0x2137),_0x13d75b['listOrder']='',_0x13d75b[_0x5bb01b(0x1cdf)]=null,_0x13d75b[_0x5bb01b(0x157e)]=[],_0x13d75b[_0x5bb01b(0xae2)]={'fields':_0x5bb01b(0x12a4),'sort':_0x5bb01b(0x282),'limit':0xa,'page':0x1},_0x13d75b[_0x5bb01b(0x21f5)]=_0x39641b()[_0x5bb01b(0x2631)]([{'option':'WebsiteAlias','value':_0x5bb01b(0x130b)},{'option':_0x5bb01b(0x2212),'value':_0x5bb01b(0x1d16)},{'option':'AgentFullname','value':_0x5bb01b(0xa47)}],function(_0x42f05e){const _0x587a8c=_0x5bb01b;return _0x39641b()['replace'](_0x42f05e[_0x587a8c(0x327)],new RegExp('\x27','g'),'');}),_0x13d75b[_0x5bb01b(0x11a6)]=_0x39641b()[_0x5bb01b(0x2631)]([{'option':_0x5bb01b(0xa7a),'value':_0x5bb01b(0x126b)},{'option':_0x5bb01b(0x43f),'value':_0x5bb01b(0x208b)}],function(_0x3a32b0){const _0x442bb5=_0x5bb01b;return _0x39641b()[_0x442bb5(0x288f)](_0x3a32b0['value'],new RegExp('\x27','g'),'');}),_0x13d75b[_0x5bb01b(0x14aa)]=_0x39641b()[_0x5bb01b(0x2631)]([{'option':_0x5bb01b(0x1d95),'value':_0x5bb01b(0x40f)},{'option':'right','value':_0x5bb01b(0x1049)},{'option':'left','value':'\x27left\x27'}],function(_0x2f3d36){const _0x114ef4=_0x5bb01b;return _0x39641b()['replace'](_0x2f3d36[_0x114ef4(0x327)],new RegExp('\x27','g'),'');}),_0x13d75b[_0x5bb01b(0xeb0)]=_0x39641b()[_0x5bb01b(0x2631)]([{'option':'alternate','value':_0x5bb01b(0x1d0f)},{'option':_0x5bb01b(0xa52),'value':'\x27centered\x27'}],function(_0x3a42b5){const _0x448e28=_0x5bb01b;return _0x39641b()[_0x448e28(0x288f)](_0x3a42b5[_0x448e28(0x327)],new RegExp('\x27','g'),'');}),_0x13d75b['arrayratingType']=_0x39641b()[_0x5bb01b(0x2631)]([{'option':_0x5bb01b(0x1b43),'value':_0x5bb01b(0xd33)},{'option':_0x5bb01b(0x128f),'value':_0x5bb01b(0x1fd5)}],function(_0x5bc09d){const _0x473741=_0x5bb01b;return _0x39641b()[_0x473741(0x288f)](_0x5bc09d[_0x473741(0x327)],new RegExp('\x27','g'),'');}),_0x13d75b['editstate']=_0x19fda5,_0x13d75b[_0x5bb01b(0x1552)]=_0x2ddf96,_0x13d75b['offlinemessagesgoto']=_0x59b7e9,_0x13d75b[_0x5bb01b(0x1379)]=_0x141046,_0x13d75b['deleteconfirm']=_0x19bf5f,_0x13d75b[_0x5bb01b(0x829)]=_0x2745ac,_0x13d75b['getChatWebsites']=_0x1e5fea,_0x13d75b[_0x5bb01b(0x1c3e)]=_0x453f14,_0x13d75b['deleteChatWebsite']=_0x47ec89,_0x13d75b[_0x5bb01b(0x2562)]=_0x175b4d,_0x13d75b['deleteSelectedChatWebsites']=_0xdf3bbb,_0x13d75b[_0x5bb01b(0x26c2)]=_0x372348,_0x13d75b[_0x5bb01b(0x270d)]=_0x4da9f7,_0x537956['hasRole'](_0x5bb01b(0x1c60))?_0xe9791['cmList'][_0x5bb01b(0xbf7)]({'fields':_0x5bb01b(0x43c),'sort':_0x5bb01b(0x16b6)})[_0x5bb01b(0x1d77)][_0x5bb01b(0x1cb0)](function(_0x28041b){const _0x2cc3e2=_0x5bb01b;_0x13d75b[_0x2cc3e2(0x1046)]=_0x28041b['rows']||[];})[_0x5bb01b(0x1c4)](function(_0x433677){const _0x2b3017=_0x5bb01b;_0x47fba9['error']({'title':_0x433677[_0x2b3017(0x291)]?_0x2b3017(0xeb9)+_0x433677[_0x2b3017(0x291)]+_0x2b3017(0x1657)+_0x433677['statusText']:'SYSTEM:GET_LISTS','msg':_0x433677[_0x2b3017(0x25c)]?JSON[_0x2b3017(0x2701)](_0x433677['data']):_0x433677[_0x2b3017(0x147f)]()});}):_0xe9791[_0x5bb01b(0x22f2)][_0x5bb01b(0xbf7)]({'fields':'id,name','sort':_0x5bb01b(0x16b6)})['$promise'][_0x5bb01b(0x1cb0)](function(_0x270074){const _0x3476f5=_0x5bb01b;_0x13d75b[_0x3476f5(0x1046)]=_0x270074['rows']||[];})[_0x5bb01b(0x1cb0)](function(){const _0x42f320=_0x5bb01b;return _0xe9791[_0x42f320(0x2199)][_0x42f320(0xbf7)]({'userProfileId':_0x13d75b[_0x42f320(0xe76)][_0x42f320(0x13c1)],'sectionId':0x12d})[_0x42f320(0x1d77)];})[_0x5bb01b(0x1cb0)](function(_0x4938df){const _0x205b2c=_0x5bb01b,_0x3a4efc=_0x4938df&&_0x4938df[_0x205b2c(0x2214)]?_0x4938df['rows'][0x0]:null;if(!_0x3a4efc){const _0xd1d224=[];let _0x3abea3=null;_0x13d75b[_0x205b2c(0x226c)]&&(_0x3abea3=_0x39641b()[_0x205b2c(0x13b4)](_0x13d75b['lists'],{'id':Number(_0x13d75b[_0x205b2c(0x226c)][_0x205b2c(0x20a6)])}));for(let _0xf5473c=0x0;_0xf5473c<_0x13d75b[_0x205b2c(0x1046)][_0x205b2c(0xfd0)];_0xf5473c++){_0x3abea3&&_0x13d75b[_0x205b2c(0x1046)][_0xf5473c]['id']===_0x3abea3['id']&&(_0x13d75b[_0x205b2c(0x1046)][_0xf5473c][_0x205b2c(0x15da)]=![],_0xd1d224[_0x205b2c(0x2785)](_0x13d75b['lists'][_0xf5473c]));}_0x13d75b[_0x205b2c(0x1046)]=_0xd1d224;}else{if(!_0x3a4efc[_0x205b2c(0x12f4)])return _0xe9791[_0x205b2c(0x1198)]['get']({'sectionId':_0x3a4efc['id']})[_0x205b2c(0x1d77)][_0x205b2c(0x1cb0)](function(_0x28bbc3){const _0x5697d2=_0x205b2c,_0x254e1f=_0x39641b()['map'](_0x28bbc3[_0x5697d2(0x2214)],function(_0x1d8919){const _0x464d97=_0x5697d2;return _0x39641b()[_0x464d97(0x13b4)](_0x13d75b[_0x464d97(0x1046)],{'id':_0x1d8919[_0x464d97(0x2982)]});});let _0x8b1033=null;_0x13d75b[_0x5697d2(0x226c)]&&(_0x8b1033=_0x39641b()[_0x5697d2(0x13b4)](_0x13d75b['lists'],{'id':Number(_0x13d75b[_0x5697d2(0x226c)][_0x5697d2(0x20a6)])}));if(_0x8b1033&&!_0x39641b()['some'](_0x254e1f,['id',_0x8b1033['id']])){const _0x38f560=_0x39641b()[_0x5697d2(0x13b4)](_0x13d75b['lists'],{'id':_0x8b1033['id']});_0x38f560[_0x5697d2(0x15da)]=![],_0x254e1f[_0x5697d2(0x2785)](_0x38f560);}_0x13d75b['lists']=_0x254e1f;});}})['catch'](function(_0x1b51b5){const _0xa97f7b=_0x5bb01b;_0x47fba9[_0xa97f7b(0x218e)]({'title':_0x1b51b5[_0xa97f7b(0x291)]?_0xa97f7b(0xeb9)+_0x1b51b5[_0xa97f7b(0x291)]+_0xa97f7b(0x1657)+_0x1b51b5[_0xa97f7b(0xc22)]:'SYSTEM:GETlists','msg':_0x1b51b5[_0xa97f7b(0x25c)]?JSON[_0xa97f7b(0x2701)](_0x1b51b5[_0xa97f7b(0x25c)]):_0x1b51b5['toString']()});}),_0x537956[_0x5bb01b(0x22b6)]('admin')?_0xe9791[_0x5bb01b(0x1ac8)][_0x5bb01b(0xbf7)]({'fields':_0x5bb01b(0x43c),'sort':_0x5bb01b(0x16b6),'IntervalId':_0x5bb01b(0xd38)})[_0x5bb01b(0x1d77)]['then'](function(_0x518e3c){const _0x1039ef=_0x5bb01b;_0x13d75b[_0x1039ef(0x1ac8)]=_0x518e3c['rows']||[];})[_0x5bb01b(0x1c4)](function(_0x5e69bc){const _0x349b79=_0x5bb01b;_0x47fba9['error']({'title':_0x5e69bc['status']?_0x349b79(0xeb9)+_0x5e69bc[_0x349b79(0x291)]+'\x20-\x20'+_0x5e69bc['statusText']:'SYSTEM:GET_INTERVAL','msg':_0x5e69bc[_0x349b79(0x25c)]?JSON[_0x349b79(0x2701)](_0x5e69bc[_0x349b79(0x25c)]):_0x5e69bc[_0x349b79(0x147f)]()});}):_0xe9791['interval'][_0x5bb01b(0xbf7)]({'fields':'id,name','sort':_0x5bb01b(0x16b6),'IntervalId':_0x5bb01b(0xd38)})['$promise'][_0x5bb01b(0x1cb0)](function(_0x1798fb){const _0x2f96cf=_0x5bb01b;_0x13d75b[_0x2f96cf(0x1ac8)]=_0x1798fb[_0x2f96cf(0x2214)]||[];})[_0x5bb01b(0x1cb0)](function(){const _0x1ccf4b=_0x5bb01b;return _0xe9791[_0x1ccf4b(0x2199)][_0x1ccf4b(0xbf7)]({'userProfileId':_0x13d75b['currentUser'][_0x1ccf4b(0x13c1)],'sectionId':0x3ec})['$promise'];})[_0x5bb01b(0x1cb0)](function(_0x21359b){const _0x3ec365=_0x5bb01b,_0x33403c=_0x21359b&&_0x21359b[_0x3ec365(0x2214)]?_0x21359b[_0x3ec365(0x2214)][0x0]:null;if(!_0x33403c){const _0x547a2c=[];let _0x274a84=null;_0x13d75b['chatWebsite']&&(_0x274a84=_0x39641b()[_0x3ec365(0x13b4)](_0x13d75b[_0x3ec365(0x1ac8)],{'id':Number(_0x13d75b[_0x3ec365(0x226c)][_0x3ec365(0x1a60)])}));for(let _0xbc695b=0x0;_0xbc695b<_0x13d75b[_0x3ec365(0x1ac8)][_0x3ec365(0xfd0)];_0xbc695b++){_0x274a84&&_0x13d75b[_0x3ec365(0x1ac8)][_0xbc695b]['id']===_0x274a84['id']&&(_0x13d75b['interval'][_0xbc695b][_0x3ec365(0x15da)]=![],_0x547a2c[_0x3ec365(0x2785)](_0x13d75b[_0x3ec365(0x1ac8)][_0xbc695b]));}_0x13d75b[_0x3ec365(0x1ac8)]=_0x547a2c;}else{if(!_0x33403c[_0x3ec365(0x12f4)])return _0xe9791[_0x3ec365(0x1198)][_0x3ec365(0xbf7)]({'sectionId':_0x33403c['id']})[_0x3ec365(0x1d77)][_0x3ec365(0x1cb0)](function(_0x19cbbc){const _0x24abd1=_0x3ec365,_0x5abf87=_0x39641b()[_0x24abd1(0x1de2)](_0x19cbbc[_0x24abd1(0x2214)],function(_0x58752f){const _0x34f6e1=_0x24abd1;return _0x39641b()['find'](_0x13d75b[_0x34f6e1(0x1ac8)],{'id':_0x58752f[_0x34f6e1(0x2982)]});});let _0x23b165=null;_0x13d75b[_0x24abd1(0x226c)]&&(_0x23b165=_0x39641b()[_0x24abd1(0x13b4)](_0x13d75b[_0x24abd1(0x1ac8)],{'id':Number(_0x13d75b['chatWebsite'][_0x24abd1(0x1a60)])}));if(_0x23b165&&!_0x39641b()['some'](_0x5abf87,['id',_0x23b165['id']])){const _0xa49acd=_0x39641b()[_0x24abd1(0x13b4)](_0x13d75b[_0x24abd1(0x1ac8)],{'id':_0x23b165['id']});_0xa49acd['canSelect']=![],_0x5abf87[_0x24abd1(0x2785)](_0xa49acd);}_0x13d75b[_0x24abd1(0x1ac8)]=_0x5abf87;});}})[_0x5bb01b(0x1c4)](function(_0x15efe9){const _0x35cf16=_0x5bb01b;_0x47fba9[_0x35cf16(0x218e)]({'title':_0x15efe9[_0x35cf16(0x291)]?_0x35cf16(0xeb9)+_0x15efe9['status']+'\x20-\x20'+_0x15efe9[_0x35cf16(0xc22)]:_0x35cf16(0x1b58),'msg':_0x15efe9[_0x35cf16(0x25c)]?JSON[_0x35cf16(0x2701)](_0x15efe9[_0x35cf16(0x25c)]):_0x15efe9[_0x35cf16(0x147f)]()});});function _0x19fda5(_0x17d204){const _0x5f0365=_0x5bb01b;_0x1e24c7['go'](_0x5f0365(0x10ae),{'id':_0x17d204['id'],'chatWebsite':_0x17d204,'crudPermissions':_0x13d75b[_0x5f0365(0x1b1a)]});}function _0x2ddf96(_0xc8f1d3){const _0x16bbe2=_0x5bb01b;_0x1e24c7['go'](_0x16bbe2(0x10ae),{'id':_0xc8f1d3['id'],'tab':0xa});}function _0x59b7e9(_0x509549){const _0x50ef39=_0x5bb01b;_0x1e24c7['go'](_0x50ef39(0x10ae),{'id':_0x509549['id'],'tab':0xb});}function _0x141046(_0x5d1f69,_0x212914){const _0xe4ae96=_0x5bb01b;_0x3e832d[_0xe4ae96(0xe27)]({'controller':_0xe4ae96(0x1db9),'controllerAs':'vm','templateUrl':_0x316723,'parent':angular[_0xe4ae96(0x1853)](_0x4c7399['body']),'targetEvent':_0x212914,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x5d1f69,'chatWebsites':_0x13d75b[_0xe4ae96(0x2137)]?_0x13d75b[_0xe4ae96(0x2137)]['rows']:[],'crudPermissions':_0x13d75b[_0xe4ae96(0x1b1a)],'realtime':![]}});}function _0x19bf5f(_0x3739ea,_0x3e6abb){const _0x5b6231=_0x5bb01b,_0x1dd225=_0x3e832d['confirm']()['title'](_0x5b6231(0x140b)+_0x39641b()[_0x5b6231(0xa75)](_0x5b6231(0x226c))+'?')[_0x5b6231(0x49e)](''+(_0x3739ea[_0x5b6231(0x16b6)]||_0x5b6231(0x226c))+_0x5b6231(0x1200)+_0x5b6231(0x1b6))[_0x5b6231(0x15ad)](_0x5b6231(0x1bf1))['targetEvent'](_0x3e6abb)['ok']('OK')[_0x5b6231(0x696)](_0x5b6231(0x24ba));_0x3e832d[_0x5b6231(0xe27)](_0x1dd225)[_0x5b6231(0x1cb0)](function(){_0x47ec89(_0x3739ea);},function(){const _0x433b9c=_0x5b6231;console[_0x433b9c(0x1b4f)](_0x433b9c(0x24ba));});}let _0x5af338=!![],_0x40de5a=0x1;_0x3d9116[_0x5bb01b(0x614)](_0x5bb01b(0x957),function(_0x4dc24f,_0x509010){const _0x11e197=_0x5bb01b;_0x5af338?_0x992d5e(function(){_0x5af338=![];}):(!_0x509010&&(_0x40de5a=_0x13d75b[_0x11e197(0xae2)][_0x11e197(0x1c7b)]),_0x4dc24f!==_0x509010&&(_0x13d75b[_0x11e197(0xae2)][_0x11e197(0x1c7b)]=0x1),!_0x4dc24f&&(_0x13d75b[_0x11e197(0xae2)]['page']=_0x40de5a),_0x13d75b[_0x11e197(0x1cb7)]());});function _0x2745ac(_0x44d51e){const _0x510fb1=_0x5bb01b;_0x13d75b[_0x510fb1(0x2137)]=_0x44d51e||{'count':0x0,'rows':[]};}function _0x1e5fea(){const _0x38684f=_0x5bb01b;_0x13d75b[_0x38684f(0xae2)][_0x38684f(0x184b)]=(_0x13d75b[_0x38684f(0xae2)][_0x38684f(0x1c7b)]-0x1)*_0x13d75b['query']['limit'],_0x537956['hasRole'](_0x38684f(0x1c60))?_0x13d75b[_0x38684f(0x2061)]=_0xe9791[_0x38684f(0x226c)][_0x38684f(0xbf7)](_0x13d75b[_0x38684f(0xae2)],_0x2745ac)[_0x38684f(0x1d77)]:(_0x13d75b['query']['id']=_0x13d75b[_0x38684f(0x44a)]['id'],_0x13d75b[_0x38684f(0xae2)][_0x38684f(0x1f74)]=_0x38684f(0x1c4a),_0x13d75b[_0x38684f(0x2061)]=_0xe9791[_0x38684f(0x44a)][_0x38684f(0x1810)](_0x13d75b[_0x38684f(0xae2)],_0x2745ac)[_0x38684f(0x1d77)]);}function _0x453f14(_0x1cd0b5,_0x5225bd){const _0x1f81e5=_0x5bb01b;_0x3e832d[_0x1f81e5(0xe27)]({'controller':_0x1f81e5(0x4e2),'controllerAs':'vm','templateUrl':_0x5f2911,'parent':angular[_0x1f81e5(0x1853)](_0x4c7399['body']),'targetEvent':_0x1cd0b5,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x5225bd,'chatWebsites':_0x13d75b['chatWebsites'][_0x1f81e5(0x2214)],'license':_0x13d75b[_0x1f81e5(0x8a5)],'setting':_0x13d75b[_0x1f81e5(0x9ca)],'crudPermissions':_0x13d75b[_0x1f81e5(0x1b1a)]}});}function _0x47ec89(_0x184125){const _0x4b725c=_0x5bb01b;_0xe9791[_0x4b725c(0x226c)][_0x4b725c(0x111d)]({'id':_0x184125['id']})['$promise'][_0x4b725c(0x1cb0)](function(){const _0xa9046c=_0x4b725c;_0x39641b()[_0xa9046c(0x152a)](_0x13d75b['chatWebsites'][_0xa9046c(0x2214)],{'id':_0x184125['id']}),_0x13d75b[_0xa9046c(0x2137)][_0xa9046c(0x184d)]-=0x1,!_0x13d75b[_0xa9046c(0x2137)][_0xa9046c(0x2214)][_0xa9046c(0xfd0)]&&_0x13d75b[_0xa9046c(0x1cb7)](),_0x47fba9[_0xa9046c(0x829)]({'title':_0x39641b()[_0xa9046c(0xa75)]('ChatWebsite')+'\x20deleted!','msg':_0x184125[_0xa9046c(0x16b6)]?_0x184125['name']+_0xa9046c(0x3f5):''});})[_0x4b725c(0x1c4)](function(_0x119c6c){const _0x572d7b=_0x4b725c;if(_0x119c6c[_0x572d7b(0x25c)]&&_0x119c6c[_0x572d7b(0x25c)][_0x572d7b(0x1a7c)]&&_0x119c6c[_0x572d7b(0x25c)][_0x572d7b(0x1a7c)][_0x572d7b(0xfd0)]){_0x13d75b[_0x572d7b(0x1a7c)]=_0x119c6c[_0x572d7b(0x25c)][_0x572d7b(0x1a7c)]||[{'message':_0x119c6c[_0x572d7b(0x147f)](),'type':_0x572d7b(0x110e)}];for(let _0x425e0f=0x0;_0x425e0f<_0x119c6c['data'][_0x572d7b(0x1a7c)]['length'];_0x425e0f++){_0x47fba9[_0x572d7b(0x218e)]({'title':_0x119c6c[_0x572d7b(0x25c)]['errors'][_0x425e0f]['type'],'msg':_0x119c6c[_0x572d7b(0x25c)][_0x572d7b(0x1a7c)][_0x425e0f]['message']});}}else _0x47fba9[_0x572d7b(0x218e)]({'title':_0x119c6c[_0x572d7b(0x291)]?_0x572d7b(0xeb9)+_0x119c6c['status']+_0x572d7b(0x1657)+_0x119c6c[_0x572d7b(0xc22)]:'SYSTEM:DELETEchatWebsite','msg':_0x119c6c['data']?JSON[_0x572d7b(0x2701)](_0x119c6c[_0x572d7b(0x25c)][_0x572d7b(0x155e)]):_0x119c6c[_0x572d7b(0x155e)]||_0x119c6c[_0x572d7b(0x147f)]()});});}function _0x175b4d(){const _0x6ecc43=_0x5bb01b,_0x510e18=angular['copy'](_0x13d75b[_0x6ecc43(0x157e)]);return _0x13d75b[_0x6ecc43(0x157e)]=[],_0x510e18;}function _0xdf3bbb(_0x3d726e){const _0x20a7a7=_0x5bb01b,_0x3d2dc0=_0x3e832d[_0x20a7a7(0x1551)]()[_0x20a7a7(0x1386)](_0x20a7a7(0x236d))[_0x20a7a7(0x49e)](''+_0x13d75b[_0x20a7a7(0x157e)][_0x20a7a7(0xfd0)]+_0x20a7a7(0x1d6c)+_0x20a7a7(0x1b6))['ariaLabel'](_0x20a7a7(0x1304))[_0x20a7a7(0x728)](_0x3d726e)['ok']('OK')[_0x20a7a7(0x696)]('CANCEL');_0x3e832d['show'](_0x3d2dc0)[_0x20a7a7(0x1cb0)](function(){const _0x48d76c=_0x20a7a7;_0x13d75b[_0x48d76c(0x157e)][_0x48d76c(0xf90)](function(_0x14434a){_0x47ec89(_0x14434a);}),_0x13d75b[_0x48d76c(0x157e)]=[];});}function _0x372348(){const _0x45686d=_0x5bb01b;_0x13d75b[_0x45686d(0x157e)]=[];}function _0x4da9f7(){const _0x326a98=_0x5bb01b;_0x13d75b[_0x326a98(0x157e)]=_0x13d75b[_0x326a98(0x2137)][_0x326a98(0x2214)];}}const _0x384f40=_0x26f262;;_0x310c2a[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state',_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),'toasty',_0x5537c6(0x2137),'chatWebsite',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),'crudPermissions'];function _0x310c2a(_0x36d95f,_0x3388aa,_0x1ab35d,_0x1c4e5c,_0xdec904,_0x4c8743,_0x3c5ee9,_0x49ca18,_0x214995,_0x40c873,_0x2daa2d,_0x32415d,_0x349256,_0x70ff38){const _0xacbbe6=_0x5537c6,_0x52046f=this;_0x52046f[_0xacbbe6(0xe76)]=_0x2daa2d[_0xacbbe6(0x21e8)](),_0x52046f[_0xacbbe6(0x1a7c)]=[],_0x52046f[_0xacbbe6(0x9ca)]=_0x349256,_0x52046f[_0xacbbe6(0x8a5)]=_0x32415d,_0x52046f[_0xacbbe6(0x1b1a)]=_0x70ff38,_0x52046f[_0xacbbe6(0xf4c)]={},_0x52046f[_0xacbbe6(0x1b0c)]=_0x52046f[_0xacbbe6(0x9ca)]&&_0x52046f['setting'][_0xacbbe6(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x52046f[_0xacbbe6(0x1386)]=_0xacbbe6(0x24dc),_0x52046f[_0xacbbe6(0x226c)]=angular[_0xacbbe6(0x17fe)](_0x214995),_0x52046f['chatWebsites']=_0x49ca18,_0x52046f[_0xacbbe6(0x1d48)]=![];!_0x52046f['chatWebsite']&&(_0x52046f['chatWebsite']={'remote':_0x1ab35d[_0xacbbe6(0x2276)]()+_0xacbbe6(0x138b)+_0x1ab35d[_0xacbbe6(0x17d8)]()+(_0x1ab35d[_0xacbbe6(0x477)]()?':'+_0x1ab35d['port']():''),'header_shape':_0xacbbe6(0x13e1),'alignment':_0xacbbe6(0x1d95),'verticalAlignment':0x1e,'messagesAlignment':'alternate','IntervalId':_0xacbbe6(0xd38),'timezone':'null','waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x52046f[_0xacbbe6(0x1386)]=_0xacbbe6(0x6a2),_0x52046f[_0xacbbe6(0x1d48)]=!![]);_0x3388aa[_0xacbbe6(0x1dfe)]['id']&&(_0x52046f[_0xacbbe6(0x226c)][_0xacbbe6(0x67c)]=_0x3388aa[_0xacbbe6(0x1dfe)]['id']);_0x52046f['addNewChatWebsite']=_0x2b2a8b,_0x52046f['saveChatWebsite']=_0x2b8075,_0x52046f[_0xacbbe6(0x1c68)]=_0x8911aa,_0x52046f['getDateFromString']=_0x19cbb0,_0x52046f['closeDialog']=_0x38f635,_0x2daa2d[_0xacbbe6(0x22b6)](_0xacbbe6(0x1c60))?_0x40c873[_0xacbbe6(0x22f2)][_0xacbbe6(0xbf7)]({'fields':_0xacbbe6(0x43c),'sort':_0xacbbe6(0x16b6)})[_0xacbbe6(0x1d77)][_0xacbbe6(0x1cb0)](function(_0x5cb8ff){const _0x1a7b2c=_0xacbbe6;_0x52046f[_0x1a7b2c(0x1046)]=_0x5cb8ff[_0x1a7b2c(0x2214)]||[];})[_0xacbbe6(0x1c4)](function(_0x3751a0){const _0x42eb39=_0xacbbe6;_0x3c5ee9[_0x42eb39(0x218e)]({'title':_0x3751a0[_0x42eb39(0x291)]?_0x42eb39(0xeb9)+_0x3751a0[_0x42eb39(0x291)]+_0x42eb39(0x1657)+_0x3751a0[_0x42eb39(0xc22)]:_0x42eb39(0x149e),'msg':_0x3751a0[_0x42eb39(0x25c)]?JSON[_0x42eb39(0x2701)](_0x3751a0[_0x42eb39(0x25c)]):_0x3751a0[_0x42eb39(0x147f)]()});}):_0x40c873[_0xacbbe6(0x22f2)][_0xacbbe6(0xbf7)]({'fields':_0xacbbe6(0x43c),'sort':'name'})['$promise']['then'](function(_0x12fe28){const _0x5a62ab=_0xacbbe6;_0x52046f[_0x5a62ab(0x1046)]=_0x12fe28['rows']||[];})[_0xacbbe6(0x1cb0)](function(){const _0x5b829f=_0xacbbe6;return _0x40c873[_0x5b829f(0x2199)][_0x5b829f(0xbf7)]({'userProfileId':_0x52046f[_0x5b829f(0xe76)][_0x5b829f(0x13c1)],'sectionId':0x12d})[_0x5b829f(0x1d77)];})['then'](function(_0x468e35){const _0x39d784=_0xacbbe6,_0x4ed3e9=_0x468e35&&_0x468e35[_0x39d784(0x2214)]?_0x468e35[_0x39d784(0x2214)][0x0]:null;if(!_0x4ed3e9){const _0x38272b=[];let _0x2b6fd1=null;_0x52046f[_0x39d784(0x226c)]&&(_0x2b6fd1=_0x39641b()[_0x39d784(0x13b4)](_0x52046f[_0x39d784(0x1046)],{'id':Number(_0x52046f['chatWebsite'][_0x39d784(0x20a6)])}));for(let _0x40483c=0x0;_0x40483c<_0x52046f[_0x39d784(0x1046)][_0x39d784(0xfd0)];_0x40483c++){_0x2b6fd1&&_0x52046f[_0x39d784(0x1046)][_0x40483c]['id']===_0x2b6fd1['id']&&(_0x52046f[_0x39d784(0x1046)][_0x40483c][_0x39d784(0x15da)]=![],_0x38272b[_0x39d784(0x2785)](_0x52046f[_0x39d784(0x1046)][_0x40483c]));}_0x52046f[_0x39d784(0x1046)]=_0x38272b;}else{if(!_0x4ed3e9[_0x39d784(0x12f4)])return _0x40c873[_0x39d784(0x1198)][_0x39d784(0xbf7)]({'sectionId':_0x4ed3e9['id']})[_0x39d784(0x1d77)][_0x39d784(0x1cb0)](function(_0x1a6164){const _0x4d91ad=_0x39d784,_0x3163cd=_0x39641b()['map'](_0x1a6164[_0x4d91ad(0x2214)],function(_0x5a6ef3){const _0x40655d=_0x4d91ad;return _0x39641b()[_0x40655d(0x13b4)](_0x52046f[_0x40655d(0x1046)],{'id':_0x5a6ef3[_0x40655d(0x2982)]});});let _0x1c6a0a=null;_0x52046f[_0x4d91ad(0x226c)]&&(_0x1c6a0a=_0x39641b()['find'](_0x52046f[_0x4d91ad(0x1046)],{'id':Number(_0x52046f[_0x4d91ad(0x226c)][_0x4d91ad(0x20a6)])}));if(_0x1c6a0a&&!_0x39641b()['some'](_0x3163cd,['id',_0x1c6a0a['id']])){const _0x333e2d=_0x39641b()[_0x4d91ad(0x13b4)](_0x52046f[_0x4d91ad(0x1046)],{'id':_0x1c6a0a['id']});_0x333e2d['canSelect']=![],_0x3163cd[_0x4d91ad(0x2785)](_0x333e2d);}_0x52046f[_0x4d91ad(0x1046)]=_0x3163cd;});}})[_0xacbbe6(0x1c4)](function(_0x2afdab){const _0x341af1=_0xacbbe6;_0x3c5ee9[_0x341af1(0x218e)]({'title':_0x2afdab[_0x341af1(0x291)]?_0x341af1(0xeb9)+_0x2afdab[_0x341af1(0x291)]+_0x341af1(0x1657)+_0x2afdab['statusText']:'SYSTEM:GETlists','msg':_0x2afdab[_0x341af1(0x25c)]?JSON[_0x341af1(0x2701)](_0x2afdab[_0x341af1(0x25c)]):_0x2afdab[_0x341af1(0x147f)]()});}),_0x2daa2d['hasRole']('admin')?_0x40c873['interval'][_0xacbbe6(0xbf7)]({'fields':_0xacbbe6(0x43c),'sort':_0xacbbe6(0x16b6),'IntervalId':_0xacbbe6(0xd38)})[_0xacbbe6(0x1d77)][_0xacbbe6(0x1cb0)](function(_0x4d1129){const _0x89194d=_0xacbbe6;_0x52046f[_0x89194d(0x1ac8)]=_0x4d1129['rows']||[];})['catch'](function(_0x4fb2c5){const _0xb71c17=_0xacbbe6;_0x3c5ee9[_0xb71c17(0x218e)]({'title':_0x4fb2c5[_0xb71c17(0x291)]?_0xb71c17(0xeb9)+_0x4fb2c5[_0xb71c17(0x291)]+'\x20-\x20'+_0x4fb2c5[_0xb71c17(0xc22)]:_0xb71c17(0x1917),'msg':_0x4fb2c5[_0xb71c17(0x25c)]?JSON[_0xb71c17(0x2701)](_0x4fb2c5[_0xb71c17(0x25c)]):_0x4fb2c5[_0xb71c17(0x147f)]()});}):_0x40c873[_0xacbbe6(0x1ac8)][_0xacbbe6(0xbf7)]({'fields':_0xacbbe6(0x43c),'sort':'name','IntervalId':_0xacbbe6(0xd38)})[_0xacbbe6(0x1d77)][_0xacbbe6(0x1cb0)](function(_0x22b484){const _0x5a92eb=_0xacbbe6;_0x52046f[_0x5a92eb(0x1ac8)]=_0x22b484[_0x5a92eb(0x2214)]||[];})[_0xacbbe6(0x1cb0)](function(){const _0x4d4bf4=_0xacbbe6;return _0x40c873[_0x4d4bf4(0x2199)]['get']({'userProfileId':_0x52046f[_0x4d4bf4(0xe76)][_0x4d4bf4(0x13c1)],'sectionId':0x3ec})['$promise'];})[_0xacbbe6(0x1cb0)](function(_0xc5b659){const _0x588373=_0xacbbe6,_0x45e518=_0xc5b659&&_0xc5b659[_0x588373(0x2214)]?_0xc5b659['rows'][0x0]:null;if(!_0x45e518){const _0x284fcf=[];let _0x53e1fc=null;_0x52046f[_0x588373(0x226c)]&&(_0x53e1fc=_0x39641b()[_0x588373(0x13b4)](_0x52046f[_0x588373(0x1ac8)],{'id':Number(_0x52046f[_0x588373(0x226c)]['IntervalId'])}));for(let _0x1f9634=0x0;_0x1f9634<_0x52046f[_0x588373(0x1ac8)][_0x588373(0xfd0)];_0x1f9634++){_0x53e1fc&&_0x52046f[_0x588373(0x1ac8)][_0x1f9634]['id']===_0x53e1fc['id']&&(_0x52046f[_0x588373(0x1ac8)][_0x1f9634]['canSelect']=![],_0x284fcf[_0x588373(0x2785)](_0x52046f['interval'][_0x1f9634]));}_0x52046f[_0x588373(0x1ac8)]=_0x284fcf;}else{if(!_0x45e518[_0x588373(0x12f4)])return _0x40c873[_0x588373(0x1198)][_0x588373(0xbf7)]({'sectionId':_0x45e518['id']})[_0x588373(0x1d77)][_0x588373(0x1cb0)](function(_0x140bef){const _0xdd2dad=_0x588373,_0x5e6c9c=_0x39641b()[_0xdd2dad(0x1de2)](_0x140bef['rows'],function(_0x4651a7){const _0x2dac75=_0xdd2dad;return _0x39641b()[_0x2dac75(0x13b4)](_0x52046f['interval'],{'id':_0x4651a7['resourceId']});});let _0x515ebd=null;_0x52046f[_0xdd2dad(0x226c)]&&(_0x515ebd=_0x39641b()[_0xdd2dad(0x13b4)](_0x52046f[_0xdd2dad(0x1ac8)],{'id':Number(_0x52046f[_0xdd2dad(0x226c)][_0xdd2dad(0x1a60)])}));if(_0x515ebd&&!_0x39641b()[_0xdd2dad(0x727)](_0x5e6c9c,['id',_0x515ebd['id']])){const _0x1f2f21=_0x39641b()[_0xdd2dad(0x13b4)](_0x52046f[_0xdd2dad(0x1ac8)],{'id':_0x515ebd['id']});_0x1f2f21[_0xdd2dad(0x15da)]=![],_0x5e6c9c[_0xdd2dad(0x2785)](_0x1f2f21);}_0x52046f[_0xdd2dad(0x1ac8)]=_0x5e6c9c;});}})[_0xacbbe6(0x1c4)](function(_0x57a6b2){const _0x41d846=_0xacbbe6;_0x3c5ee9['error']({'title':_0x57a6b2[_0x41d846(0x291)]?_0x41d846(0xeb9)+_0x57a6b2[_0x41d846(0x291)]+'\x20-\x20'+_0x57a6b2['statusText']:_0x41d846(0x1b58),'msg':_0x57a6b2[_0x41d846(0x25c)]?JSON[_0x41d846(0x2701)](_0x57a6b2[_0x41d846(0x25c)]):_0x57a6b2[_0x41d846(0x147f)]()});});function _0x2b2a8b(){const _0xd5c719=_0xacbbe6;_0x52046f[_0xd5c719(0x1a7c)]=[],_0x40c873[_0xd5c719(0x226c)][_0xd5c719(0x1c3f)](_0x52046f[_0xd5c719(0x226c)])['$promise'][_0xd5c719(0x1cb0)](function(_0x36239b){const _0x263719=_0xd5c719;_0x52046f[_0x263719(0x2137)][_0x263719(0xf63)](_0x36239b['toJSON']()),_0x3c5ee9['success']({'title':_0x263719(0x755),'msg':_0x52046f[_0x263719(0x226c)][_0x263719(0x16b6)]?_0x52046f[_0x263719(0x226c)][_0x263719(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x38f635(_0x36239b);})[_0xd5c719(0x1c4)](function(_0x24cdb7){const _0x58a4a8=_0xd5c719;if(_0x24cdb7[_0x58a4a8(0x25c)]&&_0x24cdb7[_0x58a4a8(0x25c)][_0x58a4a8(0x1a7c)]&&_0x24cdb7[_0x58a4a8(0x25c)]['errors'][_0x58a4a8(0xfd0)]){_0x52046f[_0x58a4a8(0x1a7c)]=_0x24cdb7[_0x58a4a8(0x25c)]['errors']||[{'message':_0x24cdb7[_0x58a4a8(0x147f)](),'type':'api.chatWebsite.save'}];for(let _0x11b324=0x0;_0x11b324<_0x24cdb7[_0x58a4a8(0x25c)][_0x58a4a8(0x1a7c)][_0x58a4a8(0xfd0)];_0x11b324+=0x1){_0x3c5ee9[_0x58a4a8(0x218e)]({'title':_0x24cdb7['data'][_0x58a4a8(0x1a7c)][_0x11b324]['type'],'msg':_0x24cdb7[_0x58a4a8(0x25c)][_0x58a4a8(0x1a7c)][_0x11b324][_0x58a4a8(0x155e)]});}}else _0x3c5ee9['error']({'title':_0x24cdb7[_0x58a4a8(0x291)]?_0x58a4a8(0xeb9)+_0x24cdb7['status']+'\x20-\x20'+_0x24cdb7[_0x58a4a8(0xc22)]:_0x58a4a8(0x1a39),'msg':_0x24cdb7['data']?JSON['stringify'](_0x24cdb7[_0x58a4a8(0x25c)][_0x58a4a8(0x155e)]):_0x24cdb7[_0x58a4a8(0x147f)]()});});}function _0x2b8075(){const _0x35c8a0=_0xacbbe6;_0x52046f['errors']=[],_0x40c873['chatWebsite'][_0x35c8a0(0x687)]({'id':_0x52046f[_0x35c8a0(0x226c)]['id']},_0x52046f['chatWebsite'])[_0x35c8a0(0x1d77)][_0x35c8a0(0x1cb0)](function(_0x5d7a3b){const _0x413fa9=_0x35c8a0,_0x29f652=_0x39641b()['find'](_0x52046f[_0x413fa9(0x2137)],{'id':_0x5d7a3b['id']});_0x29f652&&_0x39641b()['merge'](_0x29f652,_0x39641b()['pick'](_0x5d7a3b[_0x413fa9(0x19b2)](),_0x39641b()[_0x413fa9(0x1be5)](_0x29f652))),_0x3c5ee9['success']({'title':'ChatWebsite\x20properly\x20saved!','msg':_0x52046f['chatWebsite']['name']?_0x52046f[_0x413fa9(0x226c)][_0x413fa9(0x16b6)]+_0x413fa9(0xedb):''}),_0x38f635(_0x5d7a3b);})[_0x35c8a0(0x1c4)](function(_0x41cb20){const _0x5456b7=_0x35c8a0;if(_0x41cb20['data']&&_0x41cb20[_0x5456b7(0x25c)][_0x5456b7(0x1a7c)]&&_0x41cb20[_0x5456b7(0x25c)][_0x5456b7(0x1a7c)][_0x5456b7(0xfd0)]){_0x52046f[_0x5456b7(0x1a7c)]=_0x41cb20[_0x5456b7(0x25c)]['errors']||[{'message':_0x41cb20[_0x5456b7(0x147f)](),'type':_0x5456b7(0x99a)}];for(let _0x4568ee=0x0;_0x4568ee<_0x41cb20[_0x5456b7(0x25c)][_0x5456b7(0x1a7c)][_0x5456b7(0xfd0)];_0x4568ee++){_0x3c5ee9[_0x5456b7(0x218e)]({'title':_0x41cb20[_0x5456b7(0x25c)][_0x5456b7(0x1a7c)][_0x4568ee][_0x5456b7(0x66a)],'msg':_0x41cb20[_0x5456b7(0x25c)][_0x5456b7(0x1a7c)][_0x4568ee][_0x5456b7(0x155e)]});}}else _0x3c5ee9[_0x5456b7(0x218e)]({'title':_0x41cb20[_0x5456b7(0x291)]?_0x5456b7(0xeb9)+_0x41cb20['status']+_0x5456b7(0x1657)+_0x41cb20[_0x5456b7(0xc22)]:_0x5456b7(0x99a),'msg':_0x41cb20[_0x5456b7(0x25c)]?JSON['stringify'](_0x41cb20[_0x5456b7(0x25c)][_0x5456b7(0x155e)]):_0x41cb20['toString']()});});}function _0x8911aa(_0x24240f){const _0x56d1f8=_0xacbbe6;_0x52046f[_0x56d1f8(0x1a7c)]=[];const _0x1f4c8f=_0x1c4e5c[_0x56d1f8(0x1551)]()[_0x56d1f8(0x1386)]('Are\x20you\x20sure?')[_0x56d1f8(0x862)](_0x56d1f8(0x1410))[_0x56d1f8(0x15ad)](_0x56d1f8(0x2be))['ok'](_0x56d1f8(0x2594))[_0x56d1f8(0x696)](_0x56d1f8(0xde1))[_0x56d1f8(0x728)](_0x24240f);_0x1c4e5c[_0x56d1f8(0xe27)](_0x1f4c8f)['then'](function(){const _0x1a9ae8=_0x56d1f8;_0x40c873['chatWebsite'][_0x1a9ae8(0x111d)]({'id':_0x52046f[_0x1a9ae8(0x226c)]['id']})['$promise'][_0x1a9ae8(0x1cb0)](function(){const _0x58ff58=_0x1a9ae8;_0x39641b()['remove'](_0x52046f[_0x58ff58(0x2137)],{'id':_0x52046f[_0x58ff58(0x226c)]['id']}),_0x3c5ee9[_0x58ff58(0x829)]({'title':_0x58ff58(0x1ae3),'msg':(_0x52046f[_0x58ff58(0x226c)][_0x58ff58(0x16b6)]||_0x58ff58(0x226c))+_0x58ff58(0x3f5)}),_0x38f635(_0x52046f[_0x58ff58(0x226c)]);})[_0x1a9ae8(0x1c4)](function(_0x159e2e){const _0x1208f3=_0x1a9ae8;if(_0x159e2e[_0x1208f3(0x25c)]&&_0x159e2e[_0x1208f3(0x25c)][_0x1208f3(0x1a7c)]&&_0x159e2e[_0x1208f3(0x25c)]['errors'][_0x1208f3(0xfd0)]){_0x52046f[_0x1208f3(0x1a7c)]=_0x159e2e[_0x1208f3(0x25c)][_0x1208f3(0x1a7c)]||[{'message':_0x159e2e[_0x1208f3(0x147f)](),'type':_0x1208f3(0x187a)}];for(let _0x2d1a07=0x0;_0x2d1a07<_0x159e2e[_0x1208f3(0x25c)]['errors']['length'];_0x2d1a07++){_0x3c5ee9[_0x1208f3(0x218e)]({'title':_0x159e2e[_0x1208f3(0x25c)][_0x1208f3(0x1a7c)][_0x2d1a07]['type'],'msg':_0x159e2e['data'][_0x1208f3(0x1a7c)][_0x2d1a07][_0x1208f3(0x155e)]});}}else _0x3c5ee9[_0x1208f3(0x218e)]({'title':_0x159e2e[_0x1208f3(0x291)]?_0x1208f3(0xeb9)+_0x159e2e[_0x1208f3(0x291)]+_0x1208f3(0x1657)+_0x159e2e[_0x1208f3(0xc22)]:_0x1208f3(0x187a),'msg':_0x159e2e[_0x1208f3(0x25c)]?JSON[_0x1208f3(0x2701)](_0x159e2e[_0x1208f3(0x25c)][_0x1208f3(0x155e)]):_0x159e2e[_0x1208f3(0x155e)]||_0x159e2e[_0x1208f3(0x147f)]()});});},function(){});}function _0x19cbb0(_0x5c4bdd){return _0x5c4bdd===null?undefined:new Date(_0x5c4bdd);}function _0x38f635(_0x51fde4){const _0x2cab3d=_0xacbbe6;_0x1c4e5c[_0x2cab3d(0x1426)](_0x51fde4);}}const _0x56dfdc=_0x310c2a;;const _0x4759f4=_0x5074a3['p']+_0x5537c6(0xe33);;const _0x2e4617=_0x5074a3['p']+_0x5537c6(0xc0a);;const _0x53f042=_0x5074a3['p']+_0x5537c6(0x1745);;const _0x5318ba=_0x5074a3['p']+_0x5537c6(0x2746);;const _0x1af5f2=_0x5074a3['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/dialogflow/dialog.html/dialog.html';;const _0x3d05ce=_0x5074a3['p']+_0x5537c6(0xb8e);;const _0x67e034=_0x5074a3['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotop/dialog.html/dialog.html';;const _0x587a29=_0x5074a3['p']+_0x5537c6(0xa21);;const _0x3ca732=_0x5074a3['p']+_0x5537c6(0x19c4);;const _0x1f9691=_0x5074a3['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/queue/dialog.html/dialog.html';;const _0x2f815d=_0x5074a3['p']+_0x5537c6(0x2145);;const _0x89c9f6=_0x5074a3['p']+_0x5537c6(0xe11);;_0x2ace5a['$inject']=['api',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x1774)];const _0x3e9fd8={'agent':_0x4759f4,'amazonlex':_0x2e4617,'autoreply':_0x53f042,'close':_0x5318ba,'dialogflow':_0x1af5f2,'gotoif':_0x3d05ce,'gotop':_0x67e034,'interval':_0x587a29,'noop':_0x3ca732,'queue':_0x1f9691,'system':_0x2f815d,'tag':_0x89c9f6};function _0x2ace5a(_0x5003bb,_0x59bfd6,_0x43a3a5,_0x5ceb52,_0x3037b8){const _0x213c3c=_0x5537c6,_0x483aa5=this;_0x483aa5[_0x213c3c(0xe76)]=_0x3037b8['getCurrentUser'](),_0x483aa5[_0x213c3c(0x226c)]={},_0x483aa5[_0x213c3c(0xa54)]={'count':0x0,'rows':[]},_0x483aa5['selectedChatWebsiteApps']=[],_0x483aa5['crudPermissions'],_0x483aa5[_0x213c3c(0xae2)]={'sort':'priority'},_0x483aa5[_0x213c3c(0x196f)]=_0x39641b()[_0x213c3c(0x988)](_0x39641b()[_0x213c3c(0x1d33)]([{'app':'Interval','appType':_0x213c3c(0x1ac8),'types':[_0x213c3c(0x2017),_0x213c3c(0x197c),'list'],'fields':[],'isApp':![]},{'app':_0x213c3c(0x1234),'appType':_0x213c3c(0x1234),'type':_0x213c3c(0x1234),'icon':_0x213c3c(0x33e),'interval':_0x213c3c(0x965),'required':!![],'isApp':!![],'fields':[{'title':_0x213c3c(0x1e10),'name':_0x213c3c(0x327),'type':_0x213c3c(0x19d3),'param':0x0}]},{'app':_0x213c3c(0x7be),'appType':'system','type':_0x213c3c(0x7be),'icon':_0x213c3c(0x33e),'interval':_0x213c3c(0x965),'required':!![],'isApp':!![],'extraApi':[{'name':_0x213c3c(0x9a9),'field':{'name':_0x213c3c(0x1822),'key':_0x213c3c(0x16b6)},'route':'variable','filters':{'fields':_0x213c3c(0x43c),'sort':_0x213c3c(0x16b6),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x213c3c(0x1b9),'name':_0x213c3c(0xd0d),'type':_0x213c3c(0x19d3),'required':!![],'param':0x0},{'title':_0x213c3c(0x1b02),'name':_0x213c3c(0x1822),'type':'apiselect','values':_0x213c3c(0x9a9),'value':_0x213c3c(0x3f3),'option':_0x213c3c(0x3f3),'defaultValues':[{'value':'\x27\x27','option':'None'}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x213c3c(0x265b),'appType':_0x213c3c(0x265b),'type':_0x213c3c(0x3da),'icon':_0x213c3c(0x33e),'interval':_0x213c3c(0x965),'isApp':!![],'fields':[{'title':_0x213c3c(0x1240),'name':_0x213c3c(0x521),'type':_0x213c3c(0x83d),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x213c3c(0x13a0),'appType':_0x213c3c(0x13a0),'type':_0x213c3c(0x13a0),'icon':'icon-apps','interval':_0x213c3c(0x965),'isApp':!![],'fields':[{'title':_0x213c3c(0x28f5),'name':_0x213c3c(0x166c),'type':'text','required':!![],'param':0x0},{'title':_0x213c3c(0xb24),'name':'truepriority','type':'number','min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':'falsepriority','type':_0x213c3c(0x83d),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x213c3c(0x11cf),'appType':_0x213c3c(0x11cf),'foreignKey':'ChatQueueId','type':_0x213c3c(0x11cf),'icon':'icon-apps','interval':_0x213c3c(0x965),'isApp':!![],'extraApi':[{'name':'queues','field':{'name':_0x213c3c(0x11cf),'key':_0x213c3c(0x16b6)},'route':_0x213c3c(0x1e86),'filters':{'fields':_0x213c3c(0x1896),'sort':_0x213c3c(0x16b6),'nolimit':!![]},'permissions':{'section':0x1f5}}],'fields':[{'title':_0x213c3c(0x2687),'name':_0x213c3c(0x11cf),'type':_0x213c3c(0xb52),'values':_0x213c3c(0x971),'value':_0x213c3c(0x19b3),'option':_0x213c3c(0x19b3),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x213c3c(0xbcc),'name':_0x213c3c(0x1719),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x213c3c(0x1eff),'appType':_0x213c3c(0x1eff),'type':_0x213c3c(0x1eff),'foreignKey':_0x213c3c(0x21ab),'icon':_0x213c3c(0x33e),'interval':_0x213c3c(0x965),'isApp':!![],'extraApi':[{'name':_0x213c3c(0xc12),'field':{'name':_0x213c3c(0x1eff),'key':'name'},'route':_0x213c3c(0xebe),'filters':{'fields':_0x213c3c(0x43c),'role':_0x213c3c(0x1eff),'sort':'name','nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':_0x213c3c(0x1eff),'type':_0x213c3c(0xb52),'values':_0x213c3c(0xc12),'value':'agent.name','option':_0x213c3c(0x302),'required':!![],'param':0x0},{'title':'Timeout','name':_0x213c3c(0x1719),'type':_0x213c3c(0x83d),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x213c3c(0xf3b),'appType':_0x213c3c(0xf3b),'type':_0x213c3c(0xf3b),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':'Disposition','name':'disposition','type':_0x213c3c(0x19d3),'required':!![],'param':0x0}]},{'app':_0x213c3c(0x1f71),'appType':_0x213c3c(0x1f71),'type':_0x213c3c(0x1f71),'icon':_0x213c3c(0x33e),'interval':_0x213c3c(0x965),'isApp':!![],'fields':[{'title':_0x213c3c(0x18a5),'name':_0x213c3c(0x18a5),'type':_0x213c3c(0x220f),'defaultValue':'1','values':[{'option':'One\x20Time','value':'1'},{'option':'Always','value':'0'}],'required':!![],'param':0x0},{'title':_0x213c3c(0x620),'name':_0x213c3c(0x19d3),'type':'textarea','required':!![],'param':0x1}]},{'app':_0x213c3c(0x22b1),'appType':_0x213c3c(0x22b1),'type':_0x213c3c(0x22b1),'foreignKey':_0x213c3c(0x1754),'icon':'icon-apps','interval':_0x213c3c(0x965),'isApp':!![],'extraApi':[{'name':_0x213c3c(0xfbf),'field':{'name':_0x213c3c(0x22b1),'key':_0x213c3c(0x16b6)},'route':_0x213c3c(0x22b1),'filters':{'fields':_0x213c3c(0x43c),'sort':_0x213c3c(0x16b6),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x213c3c(0xf2d),'name':_0x213c3c(0x22b1),'type':'apiselect','values':_0x213c3c(0xfbf),'value':_0x213c3c(0x52a),'option':'tag.name','required':!![],'param':0x0}]},{'app':_0x213c3c(0x711),'appType':_0x213c3c(0x711),'type':_0x213c3c(0x711),'icon':_0x213c3c(0x33e),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x213c3c(0xad8),'name':_0x213c3c(0xee8),'type':_0x213c3c(0x19d3),'required':!![],'param':0x0},{'title':_0x213c3c(0x12b4),'name':_0x213c3c(0x12b4),'type':_0x213c3c(0x220f),'defaultValue':'\x27en\x27','values':[{'option':'Danish','value':_0x213c3c(0x1dac)},{'option':'English','value':_0x213c3c(0x1ffc)},{'option':_0x213c3c(0x41b),'value':_0x213c3c(0x134a)},{'option':_0x213c3c(0x2257),'value':_0x213c3c(0x6a6)},{'option':_0x213c3c(0x2672),'value':_0x213c3c(0xb87)},{'option':'French','value':_0x213c3c(0x1040)},{'option':_0x213c3c(0x600),'value':_0x213c3c(0x1cf7)},{'option':'Japanese','value':'\x27ja\x27'},{'option':_0x213c3c(0x2773),'value':_0x213c3c(0x1ce3)},{'option':_0x213c3c(0x2027),'value':_0x213c3c(0x1298)},{'option':_0x213c3c(0x12a8),'value':_0x213c3c(0x15b9)},{'option':'Portuguese\x20(European)','value':_0x213c3c(0x16db)},{'option':_0x213c3c(0x1a45),'value':_0x213c3c(0x741)},{'option':_0x213c3c(0x1dec),'value':'\x27ru\x27'},{'option':_0x213c3c(0x15fe),'value':_0x213c3c(0x1dce)},{'option':_0x213c3c(0x20c),'value':_0x213c3c(0x1047)},{'option':_0x213c3c(0x526),'value':'\x27uk\x27'},{'option':_0x213c3c(0xb4e),'value':_0x213c3c(0x18f1)},{'option':'Chinese\x20(Hong\x20Kong)','value':_0x213c3c(0x1d01)},{'option':_0x213c3c(0x1784),'value':_0x213c3c(0xad9)}],'required':!![],'param':0x1},{'title':_0x213c3c(0x173a),'name':_0x213c3c(0x173a),'type':_0x213c3c(0x2424),'maxlength':0xff,'param':0x2,'help':!![]}]},{'app':_0x213c3c(0x385),'appType':_0x213c3c(0xece),'type':_0x213c3c(0xece),'icon':_0x213c3c(0x33e),'interval':_0x213c3c(0x965),'isApp':!![],'fields':[{'title':_0x213c3c(0x1e76),'name':_0x213c3c(0x2854),'type':_0x213c3c(0x19d3),'required':!![],'param':0x0},{'title':_0x213c3c(0x9e0),'name':'clientEmail','type':_0x213c3c(0x19d3),'required':!![],'param':0x1},{'title':_0x213c3c(0x2393),'name':'privateKey','type':_0x213c3c(0x2424),'required':!![],'param':0x2},{'title':'language','name':'language','type':_0x213c3c(0x220f),'defaultValue':_0x213c3c(0x1ffc),'values':[{'value':'\x27zh-HK\x27','option':_0x213c3c(0x261e)},{'value':_0x213c3c(0x18f1),'option':'Chinese\x20(Simplified)'},{'value':'\x27zh-TW\x27','option':'Chinese\x20(Traditional)'},{'value':'\x27da\x27','option':'Danish'},{'value':'\x27nl\x27','option':_0x213c3c(0x2027)},{'value':'\x27en\x27','option':'English'},{'value':_0x213c3c(0x1548),'option':_0x213c3c(0x4a2)},{'value':_0x213c3c(0x9ed),'option':'English\x20(Canada)'},{'value':_0x213c3c(0x21a8),'option':_0x213c3c(0x28eb)},{'value':'\x27en-IN\x27','option':_0x213c3c(0x57b)},{'value':'\x27en-US\x27','option':_0x213c3c(0x146b)},{'value':_0x213c3c(0x1040),'option':_0x213c3c(0x19a)},{'value':_0x213c3c(0x271a),'option':_0x213c3c(0x2207)},{'value':_0x213c3c(0x15ea),'option':_0x213c3c(0xe34)},{'value':_0x213c3c(0x134a),'option':'German'},{'value':'\x27hi\x27','option':_0x213c3c(0x1265)},{'value':'\x27id\x27','option':_0x213c3c(0x600)},{'value':'\x27it\x27','option':_0x213c3c(0x2257)},{'value':_0x213c3c(0x5c5),'option':_0x213c3c(0x243f)},{'value':_0x213c3c(0x1ce3),'option':'Korean'},{'value':_0x213c3c(0x15b9),'option':_0x213c3c(0x12a8)},{'value':_0x213c3c(0x85d),'option':'Polish'},{'value':_0x213c3c(0x1ccb),'option':_0x213c3c(0xa0f)},{'value':'\x27pt-PT\x27','option':_0x213c3c(0x967)},{'value':_0x213c3c(0x258b),'option':'Russian'},{'value':_0x213c3c(0xb87),'option':_0x213c3c(0x2672)},{'value':_0x213c3c(0x1ff7),'option':'Spanish\x20(Latin\x20America)'},{'value':_0x213c3c(0x22ed),'option':_0x213c3c(0x24bd)},{'value':_0x213c3c(0x21c7),'option':_0x213c3c(0x15fe)},{'value':'\x27th\x27','option':_0x213c3c(0x20c)},{'value':'\x27tr\x27','option':_0x213c3c(0x1543)},{'value':_0x213c3c(0x199c),'option':'Ukrainian'}],'required':!![],'param':0x3},{'title':'welcomemessage','name':'welcomemessage','type':_0x213c3c(0x2424),'maxlength':0xff,'param':0x4,'help':!![]}]},{'app':_0x213c3c(0x123a),'appType':'amazonlex','type':_0x213c3c(0x123a),'icon':'icon-apps','interval':_0x213c3c(0x965),'isApp':!![],'fields':[{'title':'accesskeyid','name':_0x213c3c(0x413),'type':_0x213c3c(0x19d3),'required':!![],'param':0x0},{'title':_0x213c3c(0x21d9),'name':'secretaccesskey','type':'text','required':!![],'param':0x1},{'title':_0x213c3c(0xd50),'name':'lexregion','type':'select','defaultValue':_0x213c3c(0x1c93),'values':[{'option':'US\x20East\x20(N.\x20Virginia)','value':_0x213c3c(0x1c93)},{'option':'US\x20West\x20(Oregon)','value':_0x213c3c(0x2646)},{'option':_0x213c3c(0x14ca),'value':'\x27eu-west-1\x27'},{'option':_0x213c3c(0x1eae),'value':'\x27ap-southeast-2\x27'}],'required':!![],'param':0x2},{'title':_0x213c3c(0x1c7f),'name':_0x213c3c(0x1c7f),'type':'text','required':!![],'param':0x3},{'title':'welcomemessage','name':_0x213c3c(0x173a),'type':_0x213c3c(0x2424),'maxlength':0xff,'param':0x4,'help':!![]}]}],['app']),{'isApp':![]}),_0x483aa5[_0x213c3c(0x240)]={'group':{'name':'opt1','pull':_0x213c3c(0x11bc)},'animation':0x64,'sort':![]},_0x483aa5[_0x213c3c(0x1f2f)]={'group':{'name':_0x213c3c(0x1ddb),'put':_0x213c3c(0x2523)},'animation':0x64,'onAdd':function(_0x48b038){const _0x589bd4=_0x213c3c;_0x37e864(_0x48b038,_0x48b038[_0x589bd4(0x22e)]);},'onSort':function(){_0x1f068a();}},_0x483aa5[_0x213c3c(0x1a8e)]=_0x1f972c,_0x483aa5[_0x213c3c(0xb25)]=_0x5e7c23,_0x483aa5[_0x213c3c(0xbc6)]=_0x5e8efd,_0x483aa5[_0x213c3c(0x2958)]=_0x37e864,_0x483aa5[_0x213c3c(0x1eee)]=_0x143126,_0x483aa5[_0x213c3c(0x296b)]=_0x2b2766,_0x483aa5[_0x213c3c(0x2203)]=_0x8f9e78,_0x483aa5[_0x213c3c(0x463)]=_0x1f068a,_0x483aa5[_0x213c3c(0x22fc)]=_0x2bc963;function _0x1f972c(_0x195225,_0x1ebdfb){const _0x49ba5f=_0x213c3c;_0x483aa5['chatWebsite']=_0x195225,_0x483aa5[_0x49ba5f(0x1b1a)]=typeof _0x1ebdfb!=='undefined'?_0x1ebdfb:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x483aa5['applications'][_0x49ba5f(0x379)]=!_0x483aa5[_0x49ba5f(0x1b1a)][_0x49ba5f(0xb3d)]?!![]:![],_0x483aa5[_0x49ba5f(0xae2)]['id']=_0x195225['id'],_0x483aa5[_0x49ba5f(0xae2)][_0x49ba5f(0xead)]=!![],_0x483aa5[_0x49ba5f(0xae2)][_0x49ba5f(0x2282)]=!![],_0x483aa5[_0x49ba5f(0xbc6)](),_0x483aa5[_0x49ba5f(0x22fc)]();}function _0x5e7c23(_0x4e687c,_0x1185b3,_0x184e7b){const _0x41947d=_0x213c3c,_0x39bda2=_0x59bfd6[_0x41947d(0x1551)]()[_0x41947d(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0x41947d(0x49e)](''+_0x4e687c[_0x41947d(0x22e1)]+_0x41947d(0x1200)+'\x20will\x20be\x20deleted.')[_0x41947d(0x15ad)](_0x41947d(0x2998))[_0x41947d(0x728)](_0x184e7b)['ok']('OK')[_0x41947d(0x696)]('CANCEL');_0x59bfd6['show'](_0x39bda2)[_0x41947d(0x1cb0)](function(){const _0x539f37=_0x41947d;_0x483aa5[_0x539f37(0xa54)][_0x539f37(0x2214)][_0x539f37(0x159c)](_0x1185b3,0x1),_0x1f068a();},function(){const _0x3690f6=_0x41947d;console[_0x3690f6(0x1b4f)](_0x3690f6(0x24ba));});}function _0x37e864(_0x33d452,_0x390421){const _0x24bedd=_0x213c3c;if(_0x483aa5['chatWebsiteApps'][_0x24bedd(0x2214)][_0x24bedd(0xfd0)]){const _0x2a3c9d=_0x483aa5['chatWebsiteApps'][_0x24bedd(0x2214)][_0x390421]?_0x483aa5[_0x24bedd(0xa54)][_0x24bedd(0x2214)][_0x390421]:_0x483aa5[_0x24bedd(0xa54)]['rows'][0x0],_0x1fc949=(_0x2a3c9d['appType']||_0x2a3c9d[_0x24bedd(0x22e1)])['toLowerCase']();_0x59bfd6[_0x24bedd(0xe27)]({'controller':_0x24bedd(0x1396)+_0x1fc949+_0x24bedd(0x198f),'controllerAs':'vm','templateUrl':_0x3e9fd8[_0x1fc949],'parent':angular['element'](_0x43a3a5[_0x24bedd(0x1ed9)]),'targetEvent':_0x33d452,'clickOutsideToClose':!![],'locals':{'chatWebsiteApp':_0x2a3c9d,'chatWebsite':_0x483aa5['chatWebsite'],'crudPermissions':_0x483aa5[_0x24bedd(0x1b1a)]}})[_0x24bedd(0x1cb0)](function(_0x47c82e){const _0x4c2484=_0x24bedd;_0x47c82e&&(_0x47c82e['id']?_0x483aa5['chatWebsiteApps'][_0x4c2484(0x2214)][_0x390421]=_0x47c82e:_0x483aa5['chatWebsiteApps'][_0x4c2484(0x2214)][_0x4c2484(0x159c)](_0x390421,0x0,_0x47c82e),_0x1f068a());})[_0x24bedd(0x1c4)](function(_0x456672){const _0x45f64f=_0x24bedd;_0x456672&&_0x5ceb52[_0x45f64f(0x218e)]({'title':_0x456672[_0x45f64f(0x291)]?_0x45f64f(0xeb9)+_0x456672[_0x45f64f(0x291)]+_0x45f64f(0x1657)+_0x456672[_0x45f64f(0xc22)]:_0x45f64f(0xd95),'msg':_0x456672['data']?JSON[_0x45f64f(0x2701)](_0x456672['data']):_0x456672[_0x45f64f(0x147f)]()});});}}function _0x143126(_0x380696,_0x568000){const _0x1594eb=_0x213c3c;if(_0x483aa5['chatWebsiteApps'][_0x1594eb(0x2214)][_0x1594eb(0xfd0)]){const _0x2dd991=_0x483aa5[_0x1594eb(0xa54)]['rows'][_0x568000]?_0x483aa5[_0x1594eb(0xa54)][_0x1594eb(0x2214)][_0x568000]:_0x483aa5['chatWebsiteApps']['rows'][0x0];_0x59bfd6[_0x1594eb(0xe27)]({'controller':_0x1594eb(0x1a19),'controllerAs':'vm','templateUrl':_0x587a29,'parent':angular[_0x1594eb(0x1853)](_0x43a3a5[_0x1594eb(0x1ed9)]),'targetEvent':_0x380696,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x2dd991[_0x1594eb(0x1ac8)],'IntervalId':_0x2dd991[_0x1594eb(0x1a60)],'application':!![]},'intervals':[],'crudPermissions':_0x483aa5['crudPermissions']}})['then'](function(_0x113dd1){const _0x44ca4a=_0x1594eb;_0x113dd1&&(_0x2dd991[_0x44ca4a(0x1ac8)]=_0x113dd1[_0x44ca4a(0x1ac8)]||_0x44ca4a(0x965),_0x2dd991['IntervalId']=_0x113dd1['IntervalId']||null,_0x1f068a());});}}function _0x1f068a(){const _0x19024a=_0x213c3c;let _0x3bd944=0x1,_0x3a96f1=[];for(let _0x4684a9=0x0;_0x4684a9<_0x483aa5[_0x19024a(0xa54)][_0x19024a(0x2214)][_0x19024a(0xfd0)];_0x4684a9++){const _0x2f4a72=_0x483aa5[_0x19024a(0xa54)]['rows'][_0x4684a9],_0x5798f5=[],_0x3a54cf=[];_0x2f4a72[_0x19024a(0xb4a)]=_0x2f4a72[_0x19024a(0x1ac8)]!==_0x19024a(0x965)?[_0x2f4a72[_0x19024a(0x1ac8)]]:_0x2f4a72[_0x19024a(0x1a60)]?_0x39641b()['map'](_0x39641b()[_0x19024a(0x1c99)](_0x483aa5['intervals'][_0x19024a(0x2214)],{'IntervalId':_0x2f4a72['IntervalId']}),'interval'):[],_0x2f4a72[_0x19024a(0x2056)]=_0x483aa5[_0x19024a(0x226c)]['context'],_0x2f4a72[_0x19024a(0x26a2)]=_0x483aa5[_0x19024a(0x226c)]['exten'],_0x2f4a72[_0x19024a(0x66a)]&&(_0x2f4a72[_0x19024a(0x66a)]=_0x2f4a72[_0x19024a(0x66a)][_0x19024a(0x1680)]()),_0x2f4a72['priority']=_0x5798f5[_0x19024a(0xfd0)]?_0x39641b()[_0x19024a(0x1f9e)](_0x5798f5)[_0x19024a(0x521)]+0x1:_0x3bd944,_0x3bd944=(_0x3a54cf[_0x19024a(0xfd0)]?_0x39641b()[_0x19024a(0x1f9e)](_0x3a54cf)[_0x19024a(0x521)]:_0x2f4a72['priority'])+0x1,_0x3a96f1=_0x39641b()[_0x19024a(0x298a)](_0x3a96f1,_0x5798f5,[_0x2f4a72],_0x3a54cf);}_0x5003bb[_0x19024a(0x226c)][_0x19024a(0x2598)]({'id':_0x483aa5['chatWebsite']['id']},_0x39641b()['sortBy'](_0x3a96f1,_0x19024a(0x521)))[_0x19024a(0x1d77)][_0x19024a(0x1cb0)](function(_0x3dcff6){const _0x380026=_0x19024a;_0x483aa5[_0x380026(0xa54)][_0x380026(0x2214)]=_0x3dcff6[_0x380026(0x2214)];})[_0x19024a(0x1c4)](function(_0xd96e2c){const _0x3e732e=_0x19024a;console[_0x3e732e(0x218e)](_0xd96e2c);});}function _0x384e37(_0x480f6d){const _0x3d7316=_0x213c3c;_0x483aa5[_0x3d7316(0xa54)]=_0x480f6d||{'count':0x0,'rows':[]};}function _0x2bc963(){const _0x3be59e=_0x213c3c;return _0x5003bb[_0x3be59e(0x1ac8)][_0x3be59e(0xbf7)]({'fields':'id,interval,IntervalId'})[_0x3be59e(0x1d77)]['then'](function(_0x37ec71){const _0x5e833b=_0x3be59e;_0x483aa5[_0x5e833b(0xb4a)]=_0x37ec71;})[_0x3be59e(0x1c4)](function(_0x33aa4c){const _0x1ee642=_0x3be59e;console[_0x1ee642(0x218e)](_0x33aa4c);});}function _0x5e8efd(){const _0x457383=_0x213c3c;_0x483aa5[_0x457383(0x2061)]=_0x5003bb['chatWebsite'][_0x457383(0x930)](_0x483aa5[_0x457383(0xae2)],_0x384e37)[_0x457383(0x1d77)];}function _0x2b2766(_0x2a8670){const _0x98827e=_0x213c3c;_0x39641b()[_0x98827e(0x152a)](_0x483aa5[_0x98827e(0xa54)][_0x98827e(0x2214)],{'id':_0x2a8670['id']}),_0x1f068a(),_0x5ceb52[_0x98827e(0x829)]({'title':_0x98827e(0x2923),'msg':_0x2a8670[_0x98827e(0x22e1)]?_0x2a8670['app']+_0x98827e(0x3f5):''});}function _0x8f9e78(_0x353fae){const _0xea3771=_0x213c3c,_0x49d8d7=_0x59bfd6[_0xea3771(0x1551)]()[_0xea3771(0x1386)](_0xea3771(0x2436))['htmlContent'](_0xea3771(0x204d)+_0x483aa5[_0xea3771(0x2408)][_0xea3771(0xfd0)]+_0xea3771(0x1d6c)+_0xea3771(0x1b6))['ariaLabel'](_0xea3771(0x531))['targetEvent'](_0x353fae)['ok']('OK')[_0xea3771(0x696)]('CANCEL');_0x59bfd6[_0xea3771(0xe27)](_0x49d8d7)[_0xea3771(0x1cb0)](function(){const _0x210ee9=_0xea3771;_0x483aa5[_0x210ee9(0x2408)][_0x210ee9(0xf90)](function(_0x42bc32){const _0x5e8cc5=_0x210ee9;_0x39641b()[_0x5e8cc5(0x152a)](_0x483aa5['chatWebsiteApps'][_0x5e8cc5(0x2214)],{'id':_0x42bc32['id']});}),_0x483aa5[_0x210ee9(0x2408)]=[],_0x1f068a();});}}const _0x38084a=_0x2ace5a;;_0x216929['$inject']=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),'api',_0x5537c6(0x226c),_0x5537c6(0x2137),'realtime',_0x5537c6(0x1ae),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x216929(_0x49abf2,_0x259097,_0xf10ef0,_0x5b4c3f,_0x31443e,_0x50f07d,_0x553e04,_0xf6986b,_0x39c24a,_0x2aa6bc){const _0xe80528=_0x5537c6,_0x41b5f8=this;_0x41b5f8[_0xe80528(0xe76)]=_0x39c24a[_0xe80528(0x21e8)](),_0x41b5f8[_0xe80528(0x226c)]=_0x31443e,_0x41b5f8[_0xe80528(0x1b1a)]=_0x2aa6bc,_0x41b5f8['realtime']=_0x553e04,_0x41b5f8['items']=[],_0x41b5f8[_0xe80528(0x1372)]=[],_0x41b5f8['selectedItems']=[],_0x41b5f8[_0xe80528(0xbd5)]=[],_0x41b5f8[_0xe80528(0x1456)]=[],_0x41b5f8[_0xe80528(0x50c)]=![],_0x41b5f8[_0xe80528(0x1a34)]=_0x343d8b,_0x41b5f8[_0xe80528(0x1dd5)]=_0x49e561,_0x41b5f8[_0xe80528(0xda0)]=_0x19f616,_0x41b5f8[_0xe80528(0x18c0)]={'readOnly':!_0x41b5f8[_0xe80528(0x1b1a)][_0xe80528(0xb3d)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0xe80528(0x16b6),'line1':_0xe80528(0x1d14),'line2':[_0xe80528(0x16b6),_0xe80528(0xdbd)],'line3':'','labelAll':_0xf6986b[_0xe80528(0x25cc)]('APP.ALL_AGENTS'),'labelSelected':_0xf6986b[_0xe80528(0x25cc)](_0xe80528(0x1cd5)),'transferCallback':function(){const _0x3ce2f1=_0x39641b()['xorBy'](_0x41b5f8['startingSelectedItems'],_0x41b5f8['selectedItems'],'id');_0x41b5f8['pendingChanges']=_0x39641b()['isEmpty'](_0x3ce2f1)?![]:!![];}};function _0x343d8b(){const _0x17b263=_0xe80528;return _0x39c24a['hasRole']('admin')?_0x444bde()['catch'](function(_0x5bc4c8){const _0x49b9e3=a0_0x5cbd;_0xf10ef0[_0x49b9e3(0x218e)]({'title':_0x5bc4c8[_0x49b9e3(0x291)]?'API:'+_0x5bc4c8[_0x49b9e3(0x291)]+_0x49b9e3(0x1657)+_0x5bc4c8[_0x49b9e3(0xc22)]:'SYSTEM:GET_AGENTS','msg':_0x5bc4c8[_0x49b9e3(0x291)]?JSON[_0x49b9e3(0x2701)](_0x5bc4c8['data']):_0x5bc4c8['toString']()});}):_0x161801()[_0x17b263(0x1cb0)](function(_0x3b68a5){const _0x37fa41=_0x17b263;return _0x41b5f8[_0x37fa41(0x1f74)]=_0x3b68a5,_0x444bde();})[_0x17b263(0x1c4)](function(_0x46f40a){const _0x3bdb1c=_0x17b263;_0xf10ef0[_0x3bdb1c(0x218e)]({'title':_0x46f40a[_0x3bdb1c(0x291)]?_0x3bdb1c(0xeb9)+_0x46f40a['status']+_0x3bdb1c(0x1657)+_0x46f40a[_0x3bdb1c(0xc22)]:_0x3bdb1c(0x799),'msg':_0x46f40a[_0x3bdb1c(0x291)]?JSON[_0x3bdb1c(0x2701)](_0x46f40a[_0x3bdb1c(0x25c)]):_0x46f40a[_0x3bdb1c(0x147f)]()});});}function _0x161801(){return _0x259097(function(_0x59580c,_0x424439){const _0x35bdd1=a0_0x5cbd;_0x5b4c3f[_0x35bdd1(0x2199)][_0x35bdd1(0xbf7)]({'userProfileId':_0x41b5f8[_0x35bdd1(0xe76)][_0x35bdd1(0x13c1)],'name':_0x35bdd1(0x2536)})[_0x35bdd1(0x1d77)][_0x35bdd1(0x1cb0)](function(_0x35dc64){const _0x2da90b=_0x35dc64&&_0x35dc64['rows']?_0x35dc64['rows'][0x0]:null;_0x59580c(_0x2da90b);})[_0x35bdd1(0x1c4)](function(_0x1d6460){_0x424439(_0x1d6460);});});}function _0x444bde(){return _0x259097(function(_0x35c3b0,_0x39c3cc){const _0x2e0286=a0_0x5cbd;return _0x25a8d2()[_0x2e0286(0x1cb0)](function(_0x157d9a){const _0x52f3e4=_0x2e0286;return _0x41b5f8['items']=_0x157d9a[_0x52f3e4(0x2214)]?_0x157d9a[_0x52f3e4(0x2214)]:[],_0x39c24a[_0x52f3e4(0x22b6)]('admin')?_0x157d9a:_0x41b5f8[_0x52f3e4(0x1f74)]?_0x41b5f8[_0x52f3e4(0x1f74)][_0x52f3e4(0x12f4)]?_0x157d9a:_0xed3d79():null;})[_0x2e0286(0x1cb0)](function(_0xa2dca0){const _0x57ea88=_0x2e0286,_0x2f6a72=_0xa2dca0&&_0xa2dca0[_0x57ea88(0x2214)]?_0xa2dca0[_0x57ea88(0x2214)]:[];return _0x41b5f8[_0x57ea88(0x1372)]=_0x39641b()[_0x57ea88(0x1de2)](_0x2f6a72,function(_0x12c944){const _0xc882e2=_0x57ea88;return _0x39641b()[_0xc882e2(0x13b4)](_0x41b5f8[_0xc882e2(0x122f)],{'id':_0x39c24a['hasRole']('admin')||_0x41b5f8[_0xc882e2(0x1f74)][_0xc882e2(0x12f4)]?_0x12c944['id']:_0x12c944['resourceId']});}),_0x41b5f8['startingAllowedItems']=angular[_0x57ea88(0x17fe)](_0x41b5f8[_0x57ea88(0x1372)]),_0x41b5f8['items']['forEach'](function(_0x24964f){const _0x5686a5=_0x57ea88,_0x386139=_0x39641b()[_0x5686a5(0x13b4)](_0x41b5f8[_0x5686a5(0x1372)],{'id':_0x24964f['id']});_0x39c24a[_0x5686a5(0x22b6)]('admin')?_0x24964f['isValid']=!![]:_0x24964f[_0x5686a5(0x1a4f)]=typeof _0x386139!=='undefined'?!![]:![];}),_0x2311cf();})[_0x2e0286(0x1cb0)](function(_0x1b2357){const _0x15ca3a=_0x2e0286,_0x5bd939=_0x1b2357&&_0x1b2357['rows']?_0x1b2357[_0x15ca3a(0x2214)]:[];_0x41b5f8[_0x15ca3a(0x20bb)]=_0x39641b()['map'](_0x5bd939,function(_0x36d803){const _0x3ea48c=_0x15ca3a,_0x452ed3=_0x39641b()[_0x3ea48c(0x13b4)](_0x41b5f8[_0x3ea48c(0x122f)],{'id':_0x36d803['id']});return _0x452ed3[_0x3ea48c(0x1cbc)]=_0x36d803[_0x3ea48c(0x1bfe)]?_0x3ea48c(0x455)+_0x36d803['UserChatWebsite'][_0x3ea48c(0x1cbc)]:'',_0x452ed3[_0x3ea48c(0xdbd)]=typeof _0x36d803[_0x3ea48c(0xdbd)]!=='undefined'?'<'+_0x36d803[_0x3ea48c(0xdbd)]+'>':'',_0x452ed3;}),_0x41b5f8[_0x15ca3a(0x1456)]=angular['copy'](_0x41b5f8['selectedItems']),_0x41b5f8[_0x15ca3a(0x18c0)][_0x15ca3a(0x20bb)]=_0x41b5f8[_0x15ca3a(0x20bb)],_0x41b5f8[_0x15ca3a(0x18c0)]['items']=_0x39641b()[_0x15ca3a(0x2128)](_0x41b5f8[_0x15ca3a(0x1372)],_0x41b5f8[_0x15ca3a(0x18c0)][_0x15ca3a(0x20bb)],'id'),_0x35c3b0();})['catch'](function(_0x288b44){_0x39c3cc(_0x288b44);});});}function _0xed3d79(){return _0x259097(function(_0xdb5e47,_0x441c83){const _0x2560c9=a0_0x5cbd;return _0x5b4c3f[_0x2560c9(0x1198)]['get']({'sectionId':_0x41b5f8[_0x2560c9(0x1f74)]['id'],'nolimit':!![]})[_0x2560c9(0x1d77)][_0x2560c9(0x1cb0)](function(_0x309cf4){_0xdb5e47(_0x309cf4);})[_0x2560c9(0x1c4)](function(_0x4ce7a1){_0x441c83(_0x4ce7a1);});});}function _0x2311cf(){return _0x259097(function(_0x24b4b6,_0xc32ec7){const _0x492d81=a0_0x5cbd;return _0x5b4c3f['chatWebsite'][_0x492d81(0x2348)]({'id':_0x41b5f8[_0x492d81(0x226c)]['id'],'fields':_0x492d81(0x251e),'nolimit':!![],'role':_0x492d81(0x1eff)})['$promise'][_0x492d81(0x1cb0)](function(_0xe2a3a8){_0x24b4b6(_0xe2a3a8);})[_0x492d81(0x1c4)](function(_0x178058){_0xc32ec7(_0x178058);});});}function _0x25a8d2(){return _0x259097(function(_0x5cceeb,_0x2d5b3){const _0x42324c=a0_0x5cbd;return _0x5b4c3f[_0x42324c(0xebe)]['get']({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x42324c(0x1eff)})[_0x42324c(0x1d77)]['then'](function(_0x2f8f40){_0x5cceeb(_0x2f8f40);})[_0x42324c(0x1c4)](function(_0x52ee9b){_0x2d5b3(_0x52ee9b);});});}function _0x571594(_0xd1b750){return _0x259097(function(_0x235eed,_0x5173d9){const _0x349755=a0_0x5cbd;_0x39641b()['isEmpty'](_0xd1b750)?_0x235eed():_0x5b4c3f[_0x349755(0x226c)][_0x349755(0x2057)]({'id':_0x41b5f8[_0x349755(0x226c)]['id'],'ids':_0x39641b()[_0x349755(0x1de2)](_0xd1b750,'id')})[_0x349755(0x1d77)][_0x349755(0x1cb0)](function(){_0x235eed();})[_0x349755(0x1c4)](function(_0x176dac){_0x5173d9(_0x176dac);});});}function _0x17c1e7(_0x33a073){return _0x259097(function(_0x1f4cef,_0x3c286d){const _0x205582=a0_0x5cbd;_0x39641b()[_0x205582(0xce9)](_0x33a073)?_0x1f4cef():_0x5b4c3f['chatWebsite']['removeAgents']({'id':_0x41b5f8['chatWebsite']['id'],'ids':_0x39641b()['map'](_0x33a073,'id')})[_0x205582(0x1d77)][_0x205582(0x1cb0)](function(){_0x1f4cef();})[_0x205582(0x1c4)](function(_0x584980){_0x3c286d(_0x584980);});});}function _0x49e561(){const _0x57ab32=_0xe80528,_0x382e80=_0x39641b()[_0x57ab32(0x2128)](_0x41b5f8[_0x57ab32(0x1456)],_0x41b5f8[_0x57ab32(0x20bb)],'id'),_0x26768d=_0x39641b()[_0x57ab32(0x2128)](_0x41b5f8[_0x57ab32(0x20bb)],_0x41b5f8[_0x57ab32(0x1456)],'id');return _0x17c1e7(_0x382e80)[_0x57ab32(0x1cb0)](function(){return _0x571594(_0x26768d);})[_0x57ab32(0x1cb0)](function(){const _0x128d7e=_0x57ab32;_0x41b5f8[_0x128d7e(0x50c)]=![],_0x41b5f8[_0x128d7e(0xbd5)]=angular['copy'](_0x41b5f8['allowedItems']),_0x41b5f8['startingSelectedItems']=angular[_0x128d7e(0x17fe)](_0x41b5f8[_0x128d7e(0x20bb)]),_0xf10ef0['success']({'title':_0x128d7e(0x201),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x57ab32(0x1c4)](function(_0x54922d){const _0x145149=_0x57ab32;_0xf10ef0['error']({'title':_0x54922d['status']?'API:'+_0x54922d[_0x145149(0x291)]+_0x145149(0x1657)+_0x54922d['statusText']:_0x145149(0x1221),'msg':_0x54922d['status']?JSON[_0x145149(0x2701)](_0x54922d['data']):_0x54922d['toString']()});});}function _0x19f616(){const _0x5cd063=_0xe80528;_0x49abf2[_0x5cd063(0x1426)]();}}const _0x37f0cf=_0x216929;;_0x53f5c9['$inject']=[_0x5537c6(0x173),_0x5537c6(0x9bf)];function _0x53f5c9(_0x35eeda,_0x16c8bc){const _0x21ec6a=_0x5537c6,_0x1a9240=this,_0x5309af=0x8,_0x3c5591=_0x5309af*0x400*0x400;_0x1a9240[_0x21ec6a(0x226c)]={},_0x1a9240[_0x21ec6a(0x1b1a)],_0x1a9240[_0x21ec6a(0x15e8)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x3c5591,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x1a9240[_0x21ec6a(0x125a)]={'flow':{}},_0x1a9240[_0x21ec6a(0x18dc)]=![],_0x1a9240[_0x21ec6a(0x15c2)]=_0x9eff42,_0x1a9240[_0x21ec6a(0x1c97)]=_0x445f1b,_0x1a9240['fileSuccess']=_0x486f2a,_0x1a9240['init']=_0x153844;function _0x153844(_0x5c991b,_0x22bdde){const _0x4064e=_0x21ec6a;_0x1a9240[_0x4064e(0x226c)]=angular[_0x4064e(0x17fe)](_0x5c991b),_0x1a9240['crudPermissions']=typeof _0x22bdde!==_0x4064e(0x16b5)?_0x22bdde:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1a9240[_0x4064e(0x15e8)]['target']=_0x4064e(0x24e0)['replace'](_0x4064e(0xfa9),_0x1a9240[_0x4064e(0x226c)]['id']),_0x1a9240[_0x4064e(0x226c)][_0x4064e(0x105c)]=[];}function _0x9eff42(_0x11ce57){const _0x446d2c=_0x21ec6a,_0x3857b2=[_0x446d2c(0x844),'jpg'];if(!_0x39641b()['includes'](_0x3857b2,_0x11ce57[_0x446d2c(0x1cb1)]()))return _0x16c8bc['error']({'title':'Invalid\x20extension:\x20'+_0x11ce57[_0x446d2c(0x1cb1)](),'msg':_0x446d2c(0x4d4)+_0x3857b2['join']()}),![];if(_0x11ce57[_0x446d2c(0x1813)]>_0x3c5591)return _0x16c8bc[_0x446d2c(0x218e)]({'title':_0x446d2c(0x2749),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x5309af+'MB'}),![];const _0x16b3f0={'id':_0x11ce57[_0x446d2c(0x27c2)],'file':_0x11ce57,'type':_0x446d2c(0x2989)};return _0x1a9240[_0x446d2c(0x226c)][_0x446d2c(0x105c)]['unshift'](_0x16b3f0),!![];}function _0x445f1b(){const _0x573aeb=_0x21ec6a;_0x1a9240['ngFlow'][_0x573aeb(0xacf)]['opts'][_0x573aeb(0x5e7)]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x573aeb(0x1923)+_0x35eeda[_0x573aeb(0xbf7)](_0x573aeb(0x1b26))},_0x1a9240[_0x573aeb(0x125a)][_0x573aeb(0xacf)][_0x573aeb(0x1c97)]();}function _0x486f2a(_0x1b5eec){const _0x447d5a=_0x21ec6a;angular['forEach'](_0x1a9240[_0x447d5a(0x226c)]['images'],function(_0x3bf0c0){const _0x56e8bd=_0x447d5a;if(_0x3bf0c0['id']===_0x1b5eec[_0x56e8bd(0x27c2)]){const _0xd67c2=new FileReader();_0xd67c2[_0x56e8bd(0x245d)](_0x3bf0c0[_0x56e8bd(0x1ac4)]['file']),_0xd67c2['onload']=function(_0x284ec5){const _0x586308=_0x56e8bd;_0x3bf0c0[_0x586308(0x135b)]=_0x284ec5[_0x586308(0x251d)]['result'];},_0x3bf0c0[_0x56e8bd(0x66a)]=_0x56e8bd(0x499);}});}}const _0x4459e1=_0x53f5c9;;_0x5dfb7f[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x422),_0x5537c6(0x226c),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x5dfb7f(_0x379607,_0x283ace,_0x41aa4d,_0x2d4d11,_0x4a2351,_0x257abb,_0x6d50d,_0x485aed){const _0x110a45=_0x5537c6,_0x2ba7f3=this;_0x2ba7f3[_0x110a45(0xe76)]=_0x6d50d[_0x110a45(0x21e8)](),_0x2ba7f3[_0x110a45(0x1a7c)]=[],_0x2ba7f3[_0x110a45(0x1386)]=_0x110a45(0x1e59)+(_0x2d4d11[_0x110a45(0x299b)]||_0x2d4d11[_0x110a45(0x22e1)])[_0x110a45(0x2335)](),_0x2ba7f3[_0x110a45(0x1eff)]=angular['copy'](_0x2d4d11),_0x2ba7f3[_0x110a45(0x1b1a)]=_0x485aed,_0x2ba7f3[_0x110a45(0xf4c)]={};if(_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x28df)])switch(_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x299b)]?_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x299b)][_0x110a45(0x1680)]():_0x2ba7f3['agent'][_0x110a45(0x22e1)]['toLowerCase']()){case _0x110a45(0x197c):break;case'dialogflow':{const _0x4b77da=_0x2ba7f3[_0x110a45(0x1eff)]['appdata']['split'](',');_0x2ba7f3['agent']['key']=_0x4b77da[0x0],_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x12b4)]=_0x4b77da[0x1],_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x173a)]=_0x4b77da['slice'](0x2,_0x4b77da[_0x110a45(0xfd0)])[_0x110a45(0x1f66)](',');}break;case _0x110a45(0xece):{const _0x6cce0c=_0x2ba7f3['agent'][_0x110a45(0x28df)][_0x110a45(0xbe1)](',');_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x2854)]=_0x6cce0c[0x0],_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x12bf)]=_0x6cce0c[0x1],_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x29d6)]=_0x6cce0c[0x2],_0x2ba7f3['agent'][_0x110a45(0x12b4)]=_0x6cce0c[0x3],_0x2ba7f3['agent'][_0x110a45(0x173a)]=_0x6cce0c['slice'](0x4,_0x6cce0c[_0x110a45(0xfd0)])[_0x110a45(0x1f66)](',');}break;case _0x110a45(0x123a):{const _0x47dd63=_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x28df)][_0x110a45(0xbe1)](',');_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x413)]=_0x47dd63[0x0],_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x21d9)]=_0x47dd63[0x1],_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0xd50)]=_0x47dd63[0x2],_0x2ba7f3[_0x110a45(0x1eff)]['botname']=_0x47dd63[0x3],_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x173a)]=_0x47dd63[_0x110a45(0x14cb)](0x4,_0x47dd63[_0x110a45(0xfd0)])['join'](',');}break;case _0x110a45(0x1f71):{const _0x301b5d=_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x28df)][_0x110a45(0xbe1)](',');_0x2ba7f3[_0x110a45(0x1eff)]['times']=isNaN(_0x301b5d[0x0])?_0x301b5d[0x0]:parseInt(_0x301b5d[0x0],0xa),_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x19d3)]=_0x301b5d[_0x110a45(0x14cb)](0x1,_0x301b5d[_0x110a45(0xfd0)])['join'](',');}break;case'message':_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x19d3)]=_0x2ba7f3[_0x110a45(0x1eff)]['appdata'];break;case _0x110a45(0x19d1):_0x2ba7f3[_0x110a45(0x1eff)]['name']=_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x28df)]['split']('=')[0x0],_0x2ba7f3[_0x110a45(0x1eff)]['value']=_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x28df)][_0x110a45(0xbe1)]('=')[0x1];break;case _0x110a45(0x4b4):_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x12a7)]=_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x28df)];break;default:{const _0x1a2c8c=_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x28df)]['split'](',');_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x1eff)]=_0x39641b()[_0x110a45(0xce9)](_0x1a2c8c[0x0])?_0x1a2c8c[0x0]:isNaN(_0x1a2c8c[0x0])?_0x1a2c8c[0x0]:parseInt(_0x1a2c8c[0x0],0xa),_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x1719)]=_0x39641b()[_0x110a45(0xce9)](_0x1a2c8c[0x1])?_0x1a2c8c[0x1]:isNaN(_0x1a2c8c[0x1])?_0x1a2c8c[0x1]:parseInt(_0x1a2c8c[0x1],0xa);}break;}else _0x2ba7f3[_0x110a45(0x1eff)]['timeout']=0x1e;_0x2ba7f3[_0x110a45(0x1eff)]['type']&&_0x2ba7f3[_0x110a45(0x1eff)]['type']['toLowerCase']()===_0x110a45(0x895)&&_0x2ba7f3[_0x110a45(0x1eff)]['appType'][_0x110a45(0x1680)]()===_0x110a45(0x20ff)&&(_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x586)]=_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x1340)]?_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x1340)]['split']('$')[0x0]:undefined,_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x1e7c)]=_0x2ba7f3['agent'][_0x110a45(0x2816)]?_0x110a45(0x25f9)+_0x2ba7f3[_0x110a45(0x1eff)][_0x110a45(0x2816)]:undefined);_0x2ba7f3[_0x110a45(0x7b3)]=_0x3eb323,_0x2ba7f3['closeDialog']=_0x3f5d50,_0x6d50d[_0x110a45(0x22b6)](_0x110a45(0x1c60))?_0x257abb[_0x110a45(0xebe)]['get']({'fields':'id,name','role':_0x110a45(0x1eff),'sort':'name','nolimit':_0x110a45(0x44d)})[_0x110a45(0x1d77)][_0x110a45(0x1cb0)](function(_0x3c086){const _0x183088=_0x110a45;_0x2ba7f3[_0x183088(0xc12)]=_0x3c086['rows']||[];})[_0x110a45(0x1c4)](function(_0x58b56b){const _0x2c7e80=_0x110a45;_0x41aa4d['error']({'title':_0x58b56b[_0x2c7e80(0x291)]?_0x2c7e80(0xeb9)+_0x58b56b[_0x2c7e80(0x291)]+_0x2c7e80(0x1657)+_0x58b56b['statusText']:_0x2c7e80(0x799),'msg':_0x58b56b['data']?JSON[_0x2c7e80(0x2701)](_0x58b56b[_0x2c7e80(0x25c)]):_0x58b56b['toString']()});}):_0x257abb[_0x110a45(0xebe)][_0x110a45(0xbf7)]({'fields':_0x110a45(0x43c),'role':'agent','sort':_0x110a45(0x16b6),'nolimit':'true'})[_0x110a45(0x1d77)][_0x110a45(0x1cb0)](function(_0x3fd08e){const _0x4df08e=_0x110a45;_0x2ba7f3[_0x4df08e(0xc12)]=_0x3fd08e['rows']||[];})[_0x110a45(0x1cb0)](function(){const _0x453d2e=_0x110a45;return _0x257abb[_0x453d2e(0x2199)][_0x453d2e(0xbf7)]({'userProfileId':_0x2ba7f3[_0x453d2e(0xe76)][_0x453d2e(0x13c1)],'sectionId':0xca})[_0x453d2e(0x1d77)];})[_0x110a45(0x1cb0)](function(_0x47eb96){const _0xe8ec19=_0x110a45,_0x3b5bcd=_0x47eb96&&_0x47eb96[_0xe8ec19(0x2214)]?_0x47eb96[_0xe8ec19(0x2214)][0x0]:null;if(!_0x3b5bcd){const _0xe8d3b=[];let _0x26d807=null;_0x2ba7f3[_0xe8ec19(0x1eff)]&&(_0x26d807=_0x39641b()[_0xe8ec19(0x13b4)](_0x2ba7f3[_0xe8ec19(0xc12)],{'name':_0x2ba7f3[_0xe8ec19(0x1eff)]['agent']}));for(let _0x270a41=0x0;_0x270a41<_0x2ba7f3[_0xe8ec19(0xc12)]['length'];_0x270a41++){_0x26d807&&_0x2ba7f3['agents'][_0x270a41]['id']===_0x26d807['id']&&(_0x2ba7f3[_0xe8ec19(0xc12)][_0x270a41]['canSelect']=![],_0xe8d3b[_0xe8ec19(0x2785)](_0x2ba7f3['agents'][_0x270a41]));}_0x2ba7f3['agents']=_0xe8d3b;}else{if(!_0x3b5bcd[_0xe8ec19(0x12f4)])return _0x257abb[_0xe8ec19(0x1198)]['get']({'sectionId':_0x3b5bcd['id']})[_0xe8ec19(0x1d77)][_0xe8ec19(0x1cb0)](function(_0x38acb4){const _0x41822c=_0xe8ec19,_0x4845a5=_0x39641b()[_0x41822c(0x1de2)](_0x38acb4[_0x41822c(0x2214)],function(_0x4709de){const _0x1d2e57=_0x41822c;return _0x39641b()[_0x1d2e57(0x13b4)](_0x2ba7f3[_0x1d2e57(0xc12)],{'id':_0x4709de['resourceId']});});let _0xc37fbb=null;_0x2ba7f3[_0x41822c(0x1eff)]&&(_0xc37fbb=_0x39641b()[_0x41822c(0x13b4)](_0x2ba7f3[_0x41822c(0xc12)],{'name':_0x2ba7f3['agent']['agent']}));if(_0xc37fbb&&!_0x39641b()['some'](_0x4845a5,['id',_0xc37fbb['id']])){const _0x22fb02=_0x39641b()[_0x41822c(0x13b4)](_0x2ba7f3['agents'],{'id':_0xc37fbb['id']});_0x22fb02['canSelect']=![],_0x4845a5['push'](_0x22fb02);}_0x2ba7f3['agents']=_0x4845a5;});}})[_0x110a45(0x1c4)](function(_0x594b8e){const _0x564aa7=_0x110a45;_0x41aa4d[_0x564aa7(0x218e)]({'title':_0x594b8e[_0x564aa7(0x291)]?_0x564aa7(0xeb9)+_0x594b8e[_0x564aa7(0x291)]+_0x564aa7(0x1657)+_0x594b8e[_0x564aa7(0xc22)]:_0x564aa7(0x2159),'msg':_0x594b8e[_0x564aa7(0x25c)]?JSON['stringify'](_0x594b8e[_0x564aa7(0x25c)]):_0x594b8e[_0x564aa7(0x147f)]()});});function _0x3eb323(){const _0x341d6c=_0x110a45;_0x2ba7f3[_0x341d6c(0x1a7c)]=[];const _0x14ad6e=[];_0x2ba7f3[_0x341d6c(0x1eff)][_0x341d6c(0x66a)]&&_0x2ba7f3[_0x341d6c(0x1eff)]['type']['toLowerCase']()===_0x341d6c(0x895)&&_0x2ba7f3[_0x341d6c(0x1eff)]['appType']===_0x341d6c(0x25f4)&&(_0x2ba7f3[_0x341d6c(0x1eff)][_0x341d6c(0x1340)]=_0x4a2351['cutdigits']?(_0x2ba7f3[_0x341d6c(0x1eff)][_0x341d6c(0x586)]||'')+_0x341d6c(0x19e4)+_0x4a2351[_0x341d6c(0x325)]+'}':(_0x2ba7f3[_0x341d6c(0x1eff)][_0x341d6c(0x586)]||'')+_0x341d6c(0xcdd),_0x4a2351['recordingFormat']!==_0x341d6c(0x13b1)?_0x2ba7f3['agent']['options'][_0x341d6c(0xd8a)](_0x341d6c(0x106a))<0x0&&(_0x2ba7f3['agent'][_0x341d6c(0x2224)]+=_0x341d6c(0x106a)):_0x2ba7f3['agent'][_0x341d6c(0x2224)]=_0x2ba7f3[_0x341d6c(0x1eff)]['options']['replace'](_0x341d6c(0x106a),''));const _0x48b9ae=_0x39641b()[_0x341d6c(0x13b4)](_0x2ba7f3[_0x341d6c(0xc12)],{'name':_0x2ba7f3[_0x341d6c(0x1eff)]['agent']});_0x48b9ae&&(_0x2ba7f3[_0x341d6c(0x1eff)][_0x341d6c(0x21ab)]=_0x48b9ae['id']);if(_0x2ba7f3[_0x341d6c(0x1eff)][_0x341d6c(0x299b)]&&_0x2ba7f3['agent'][_0x341d6c(0x299b)]==='custom'){}else switch((_0x2ba7f3['agent'][_0x341d6c(0x22e1)]||_0x2ba7f3['agent'][_0x341d6c(0x299b)])['toLowerCase']()){case'set':_0x2ba7f3[_0x341d6c(0x1eff)][_0x341d6c(0x28df)]=_0x2ba7f3[_0x341d6c(0x1eff)][_0x341d6c(0x16b6)]+'='+_0x2ba7f3['agent'][_0x341d6c(0x327)];break;case _0x341d6c(0x197c):break;default:_0x14ad6e[0x0]=_0x2ba7f3['agent'][_0x341d6c(0x1eff)],_0x14ad6e[0x1]=_0x2ba7f3[_0x341d6c(0x1eff)][_0x341d6c(0x1719)],_0x2ba7f3['agent'][_0x341d6c(0x28df)]=_0x14ad6e['join'](',');}_0x3f5d50(_0x2ba7f3[_0x341d6c(0x1eff)]);}function _0x3f5d50(_0x3b62c1){const _0x1bf7d3=_0x110a45;_0x379607[_0x1bf7d3(0x1426)](_0x3b62c1);}}const _0x4579a3=_0x5dfb7f;;_0x31a658[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty','chatWebsiteApp',_0x5537c6(0x226c),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x31a658(_0xea000,_0x53fcb6,_0x5c3e20,_0x948b3a,_0x3f2eee,_0x10d402,_0x531d99,_0xa5d1cb){const _0x43e42a=_0x5537c6,_0x30b474=this;_0x30b474['currentUser']=_0x531d99[_0x43e42a(0x21e8)](),_0x30b474['errors']=[],_0x30b474[_0x43e42a(0x1386)]='CHAT.EDIT_'+(_0x948b3a['appType']||_0x948b3a['app'])[_0x43e42a(0x2335)](),_0x30b474[_0x43e42a(0x123a)]=angular[_0x43e42a(0x17fe)](_0x948b3a),_0x30b474[_0x43e42a(0x1b1a)]=_0xa5d1cb,_0x30b474['hasModulePermissions']={};if(_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x28df)])switch(_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x299b)]?_0x30b474[_0x43e42a(0x123a)]['appType'][_0x43e42a(0x1680)]():_0x30b474['amazonlex'][_0x43e42a(0x22e1)]['toLowerCase']()){case _0x43e42a(0x197c):break;case'dialogflow':{const _0x48af97=_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x28df)][_0x43e42a(0xbe1)](',');_0x30b474['amazonlex'][_0x43e42a(0xee8)]=_0x48af97[0x0],_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x12b4)]=_0x48af97[0x1],_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x173a)]=_0x48af97[_0x43e42a(0x14cb)](0x2,_0x48af97[_0x43e42a(0xfd0)])['join'](',');}break;case _0x43e42a(0xece):{const _0x509d37=_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x28df)]['split'](',');_0x30b474[_0x43e42a(0x123a)]['projectId']=_0x509d37[0x0],_0x30b474[_0x43e42a(0x123a)]['clientEmail']=_0x509d37[0x1],_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x29d6)]=_0x509d37[0x2],_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x12b4)]=_0x509d37[0x3],_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x173a)]=_0x509d37[_0x43e42a(0x14cb)](0x4,_0x509d37[_0x43e42a(0xfd0)])[_0x43e42a(0x1f66)](',');}break;case'amazonlex':{const _0x285643=_0x30b474[_0x43e42a(0x123a)]['appdata'][_0x43e42a(0xbe1)](',');_0x30b474[_0x43e42a(0x123a)]['accesskeyid']=_0x285643[0x0],_0x30b474[_0x43e42a(0x123a)]['secretaccesskey']=_0x285643[0x1],_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0xd50)]=_0x285643[0x2],_0x30b474['amazonlex'][_0x43e42a(0x1c7f)]=_0x285643[0x3],_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x173a)]=_0x285643[_0x43e42a(0x14cb)](0x4,_0x285643[_0x43e42a(0xfd0)])[_0x43e42a(0x1f66)](',');}break;case _0x43e42a(0x1f71):{const _0x5a5a2b=_0x30b474['amazonlex'][_0x43e42a(0x28df)][_0x43e42a(0xbe1)](',');_0x30b474[_0x43e42a(0x123a)]['times']=isNaN(_0x5a5a2b[0x0])?_0x5a5a2b[0x0]:parseInt(_0x5a5a2b[0x0],0xa),_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x19d3)]=_0x5a5a2b[_0x43e42a(0x14cb)](0x1,_0x5a5a2b[_0x43e42a(0xfd0)])[_0x43e42a(0x1f66)](',');}break;case _0x43e42a(0x155e):_0x30b474[_0x43e42a(0x123a)]['text']=_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x28df)];break;case _0x43e42a(0x19d1):_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x16b6)]=_0x30b474['amazonlex']['appdata'][_0x43e42a(0xbe1)]('=')[0x0],_0x30b474['amazonlex'][_0x43e42a(0x327)]=_0x30b474['amazonlex'][_0x43e42a(0x28df)]['split']('=')[0x1];break;case'agi':_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x12a7)]=_0x30b474[_0x43e42a(0x123a)]['appdata'];break;default:{const _0x40ad9f=_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x28df)][_0x43e42a(0xbe1)](',');_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x413)]=_0x39641b()[_0x43e42a(0xce9)](_0x40ad9f[0x0])?_0x40ad9f[0x0]:isNaN(_0x40ad9f[0x0])?_0x40ad9f[0x0]:parseInt(_0x40ad9f[0x0],0xa),_0x30b474[_0x43e42a(0x123a)]['secretaccesskey']=_0x39641b()[_0x43e42a(0xce9)](_0x40ad9f[0x1])?_0x40ad9f[0x1]:isNaN(_0x40ad9f[0x1])?_0x40ad9f[0x1]:parseInt(_0x40ad9f[0x1],0xa),_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0xd50)]=_0x39641b()[_0x43e42a(0xce9)](_0x40ad9f[0x2])?_0x40ad9f[0x2]:isNaN(_0x40ad9f[0x2])?_0x40ad9f[0x2]:parseInt(_0x40ad9f[0x2],0xa),_0x30b474[_0x43e42a(0x123a)]['botname']=_0x39641b()[_0x43e42a(0xce9)](_0x40ad9f[0x3])?_0x40ad9f[0x3]:isNaN(_0x40ad9f[0x3])?_0x40ad9f[0x3]:parseInt(_0x40ad9f[0x3],0xa),_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x173a)]=_0x39641b()[_0x43e42a(0xce9)](_0x40ad9f[0x4])?_0x40ad9f[0x4]:isNaN(_0x40ad9f[0x4])?_0x40ad9f[0x4]:parseInt(_0x40ad9f[0x4],0xa);}break;}else _0x30b474[_0x43e42a(0x123a)][_0x43e42a(0xd50)]='us-east-1';_0x30b474['amazonlex']['type']&&_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x66a)][_0x43e42a(0x1680)]()===_0x43e42a(0x895)&&_0x30b474['amazonlex'][_0x43e42a(0x299b)]['toLowerCase']()==='outbounddial'&&(_0x30b474['amazonlex']['prefix']=_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x1340)]?_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x1340)][_0x43e42a(0xbe1)]('$')[0x0]:undefined,_0x30b474['amazonlex'][_0x43e42a(0x1e7c)]=_0x30b474['amazonlex'][_0x43e42a(0x2816)]?_0x43e42a(0x25f9)+_0x30b474[_0x43e42a(0x123a)][_0x43e42a(0x2816)]:undefined);_0x30b474[_0x43e42a(0x7b3)]=_0x11f009,_0x30b474[_0x43e42a(0xda0)]=_0x24aaed;function _0x11f009(){const _0xfb26a=_0x43e42a;_0x30b474[_0xfb26a(0x1a7c)]=[];const _0x3a66bc=[];_0x30b474[_0xfb26a(0x123a)][_0xfb26a(0x66a)]&&_0x30b474['amazonlex'][_0xfb26a(0x66a)][_0xfb26a(0x1680)]()===_0xfb26a(0x895)&&_0x30b474[_0xfb26a(0x123a)][_0xfb26a(0x299b)]===_0xfb26a(0x25f4)&&(_0x30b474['amazonlex'][_0xfb26a(0x1340)]=_0x3f2eee[_0xfb26a(0x325)]?(_0x30b474[_0xfb26a(0x123a)][_0xfb26a(0x586)]||'')+_0xfb26a(0x19e4)+_0x3f2eee[_0xfb26a(0x325)]+'}':(_0x30b474[_0xfb26a(0x123a)][_0xfb26a(0x586)]||'')+_0xfb26a(0xcdd),_0x3f2eee[_0xfb26a(0xf8d)]!==_0xfb26a(0x13b1)?_0x30b474[_0xfb26a(0x123a)][_0xfb26a(0x2224)][_0xfb26a(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0x30b474['amazonlex'][_0xfb26a(0x2224)]+=_0xfb26a(0x106a)):_0x30b474[_0xfb26a(0x123a)]['options']=_0x30b474[_0xfb26a(0x123a)][_0xfb26a(0x2224)][_0xfb26a(0x288f)](_0xfb26a(0x106a),''));if(_0x30b474[_0xfb26a(0x123a)]['appType']&&_0x30b474[_0xfb26a(0x123a)][_0xfb26a(0x299b)]===_0xfb26a(0x197c)){}else switch((_0x30b474[_0xfb26a(0x123a)]['app']||_0x30b474[_0xfb26a(0x123a)][_0xfb26a(0x299b)])[_0xfb26a(0x1680)]()){case _0xfb26a(0x19d1):_0x30b474[_0xfb26a(0x123a)][_0xfb26a(0x28df)]=_0x30b474[_0xfb26a(0x123a)][_0xfb26a(0x16b6)]+'='+_0x30b474[_0xfb26a(0x123a)][_0xfb26a(0x327)];break;case'custom':break;default:_0x3a66bc[0x0]=_0x30b474[_0xfb26a(0x123a)][_0xfb26a(0x413)],_0x3a66bc[0x1]=_0x30b474['amazonlex']['secretaccesskey'],_0x3a66bc[0x2]=_0x30b474[_0xfb26a(0x123a)][_0xfb26a(0xd50)],_0x3a66bc[0x3]=_0x30b474[_0xfb26a(0x123a)]['botname'],_0x3a66bc[0x4]=_0x30b474[_0xfb26a(0x123a)][_0xfb26a(0x173a)],_0x30b474[_0xfb26a(0x123a)][_0xfb26a(0x28df)]=_0x3a66bc[_0xfb26a(0x1f66)](',');}_0x24aaed(_0x30b474[_0xfb26a(0x123a)]);}function _0x24aaed(_0x561bdb){const _0x20b1b8=_0x43e42a;_0xea000[_0x20b1b8(0x1426)](_0x561bdb);}}const _0x4ca663=_0x31a658;;_0x256238['$inject']=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x422),'chatWebsite','api',_0x5537c6(0x1774),'crudPermissions'];function _0x256238(_0x5e1b04,_0x55dd19,_0x2a5925,_0x34faf2,_0xcd523b,_0xd79ec0,_0x482261,_0x3d577d){const _0x1452c7=_0x5537c6,_0x1184b5=this;_0x1184b5[_0x1452c7(0xe76)]=_0x482261[_0x1452c7(0x21e8)](),_0x1184b5[_0x1452c7(0x1a7c)]=[],_0x1184b5[_0x1452c7(0x1386)]=_0x1452c7(0x1e59)+(_0x34faf2['appType']||_0x34faf2['app'])['toUpperCase'](),_0x1184b5[_0x1452c7(0x1f71)]=angular[_0x1452c7(0x17fe)](_0x34faf2),_0x1184b5[_0x1452c7(0x1b1a)]=_0x3d577d,_0x1184b5[_0x1452c7(0xf4c)]={};if(_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x28df)])switch(_0x1184b5[_0x1452c7(0x1f71)]['appType']?_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x299b)][_0x1452c7(0x1680)]():_0x1184b5['autoreply']['app'][_0x1452c7(0x1680)]()){case _0x1452c7(0x197c):break;case _0x1452c7(0x711):{const _0x476a0d=_0x1184b5['autoreply'][_0x1452c7(0x28df)][_0x1452c7(0xbe1)](',');_0x1184b5[_0x1452c7(0x1f71)]['key']=_0x476a0d[0x0],_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x12b4)]=_0x476a0d[0x1],_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x173a)]=_0x476a0d[_0x1452c7(0x14cb)](0x2,_0x476a0d[_0x1452c7(0xfd0)])['join'](',');}break;case _0x1452c7(0xece):{const _0x373fde=_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x28df)]['split'](',');_0x1184b5['autoreply'][_0x1452c7(0x2854)]=_0x373fde[0x0],_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x12bf)]=_0x373fde[0x1],_0x1184b5['autoreply'][_0x1452c7(0x29d6)]=_0x373fde[0x2],_0x1184b5['autoreply'][_0x1452c7(0x12b4)]=_0x373fde[0x3],_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x173a)]=_0x373fde[_0x1452c7(0x14cb)](0x4,_0x373fde['length'])['join'](',');}break;case'amazonlex':{const _0x13e760=_0x1184b5[_0x1452c7(0x1f71)]['appdata'][_0x1452c7(0xbe1)](',');_0x1184b5[_0x1452c7(0x1f71)]['accesskeyid']=_0x13e760[0x0],_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x21d9)]=_0x13e760[0x1],_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0xd50)]=_0x13e760[0x2],_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x1c7f)]=_0x13e760[0x3],_0x1184b5['autoreply']['welcomemessage']=_0x13e760[_0x1452c7(0x14cb)](0x4,_0x13e760[_0x1452c7(0xfd0)])[_0x1452c7(0x1f66)](',');}break;case'autoreply':{const _0x52d441=_0x1184b5[_0x1452c7(0x1f71)]['appdata']['split'](',');_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x18a5)]=isNaN(_0x52d441[0x0])?_0x52d441[0x0]:parseInt(_0x52d441[0x0],0xa),_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x19d3)]=_0x52d441[_0x1452c7(0x14cb)](0x1,_0x52d441[_0x1452c7(0xfd0)])['join'](',');}break;case _0x1452c7(0x155e):_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x19d3)]=_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x28df)];break;case _0x1452c7(0x19d1):_0x1184b5[_0x1452c7(0x1f71)]['name']=_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x28df)]['split']('=')[0x0],_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x327)]=_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x28df)]['split']('=')[0x1];break;case'agi':_0x1184b5['autoreply']['project']=_0x1184b5['autoreply'][_0x1452c7(0x28df)];break;default:{const _0x1fcc35=_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x28df)][_0x1452c7(0xbe1)](',');_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x18a5)]=_0x39641b()[_0x1452c7(0xce9)](_0x1fcc35[0x0])?_0x1fcc35[0x0]:isNaN(_0x1fcc35[0x0])?_0x1fcc35[0x0]:parseInt(_0x1fcc35[0x0],0xa),_0x1184b5['autoreply'][_0x1452c7(0x19d3)]=_0x39641b()[_0x1452c7(0xce9)](_0x1fcc35[0x1])?_0x1fcc35[0x1]:isNaN(_0x1fcc35[0x1])?_0x1fcc35[0x1]:parseInt(_0x1fcc35[0x1],0xa);}break;}else _0x1184b5['autoreply'][_0x1452c7(0x18a5)]=0x1;_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x66a)]&&_0x1184b5['autoreply'][_0x1452c7(0x66a)][_0x1452c7(0x1680)]()===_0x1452c7(0x895)&&_0x1184b5[_0x1452c7(0x1f71)]['appType'][_0x1452c7(0x1680)]()===_0x1452c7(0x20ff)&&(_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x586)]=_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x1340)]?_0x1184b5[_0x1452c7(0x1f71)]['phone'][_0x1452c7(0xbe1)]('$')[0x0]:undefined,_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x1e7c)]=_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x2816)]?_0x1452c7(0x25f9)+_0x1184b5[_0x1452c7(0x1f71)][_0x1452c7(0x2816)]:undefined);_0x1184b5[_0x1452c7(0x7b3)]=_0x368655,_0x1184b5[_0x1452c7(0xda0)]=_0x4109e3;function _0x368655(){const _0x353f76=_0x1452c7;_0x1184b5[_0x353f76(0x1a7c)]=[];const _0x544b8e=[];_0x1184b5[_0x353f76(0x1f71)][_0x353f76(0x66a)]&&_0x1184b5[_0x353f76(0x1f71)][_0x353f76(0x66a)][_0x353f76(0x1680)]()===_0x353f76(0x895)&&_0x1184b5[_0x353f76(0x1f71)][_0x353f76(0x299b)]===_0x353f76(0x25f4)&&(_0x1184b5[_0x353f76(0x1f71)]['phone']=_0xcd523b['cutdigits']?(_0x1184b5[_0x353f76(0x1f71)][_0x353f76(0x586)]||'')+'${EXTEN:'+_0xcd523b['cutdigits']+'}':(_0x1184b5['autoreply']['prefix']||'')+_0x353f76(0xcdd),_0xcd523b[_0x353f76(0xf8d)]!==_0x353f76(0x13b1)?_0x1184b5[_0x353f76(0x1f71)]['options'][_0x353f76(0xd8a)](_0x353f76(0x106a))<0x0&&(_0x1184b5[_0x353f76(0x1f71)][_0x353f76(0x2224)]+=_0x353f76(0x106a)):_0x1184b5[_0x353f76(0x1f71)]['options']=_0x1184b5[_0x353f76(0x1f71)][_0x353f76(0x2224)][_0x353f76(0x288f)](_0x353f76(0x106a),''));if(_0x1184b5[_0x353f76(0x1f71)][_0x353f76(0x299b)]&&_0x1184b5['autoreply']['appType']===_0x353f76(0x197c)){}else switch((_0x1184b5[_0x353f76(0x1f71)][_0x353f76(0x22e1)]||_0x1184b5['autoreply']['appType'])['toLowerCase']()){case _0x353f76(0x19d1):_0x1184b5[_0x353f76(0x1f71)][_0x353f76(0x28df)]=_0x1184b5[_0x353f76(0x1f71)][_0x353f76(0x16b6)]+'='+_0x1184b5[_0x353f76(0x1f71)]['value'];break;case'custom':break;default:_0x544b8e[0x0]=_0x1184b5[_0x353f76(0x1f71)][_0x353f76(0x18a5)],_0x544b8e[0x1]=_0x1184b5[_0x353f76(0x1f71)][_0x353f76(0x19d3)],_0x1184b5[_0x353f76(0x1f71)][_0x353f76(0x28df)]=_0x544b8e[_0x353f76(0x1f66)](',');}_0x4109e3(_0x1184b5[_0x353f76(0x1f71)]);}function _0x4109e3(_0x322852){const _0x458899=_0x1452c7;_0x5e1b04[_0x458899(0x1426)](_0x322852);}}const _0x5b3f4a=_0x256238;;_0x14e9e5[_0x5537c6(0x15b6)]=['$mdDialog','$q','toasty',_0x5537c6(0x422),'chatWebsite','api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x14e9e5(_0x2c55e4,_0x28da45,_0x87a429,_0x18f1f2,_0x30f14a,_0x9c1b8b,_0x3d59f5,_0x248372){const _0x32bbc8=_0x5537c6,_0x28d98a=this;_0x28d98a[_0x32bbc8(0xe76)]=_0x3d59f5[_0x32bbc8(0x21e8)](),_0x28d98a[_0x32bbc8(0x1a7c)]=[],_0x28d98a[_0x32bbc8(0x1386)]=_0x32bbc8(0x1e59)+(_0x18f1f2[_0x32bbc8(0x299b)]||_0x18f1f2[_0x32bbc8(0x22e1)])[_0x32bbc8(0x2335)](),_0x28d98a['close']=angular[_0x32bbc8(0x17fe)](_0x18f1f2),_0x28d98a[_0x32bbc8(0x1b1a)]=_0x248372,_0x28d98a['hasModulePermissions']={};if(_0x28d98a['close']['appdata'])switch(_0x28d98a[_0x32bbc8(0xf3b)]['appType']?_0x28d98a[_0x32bbc8(0xf3b)]['appType'][_0x32bbc8(0x1680)]():_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x22e1)][_0x32bbc8(0x1680)]()){case _0x32bbc8(0x197c):break;case'dialogflow':{const _0x3030e6=_0x28d98a['close'][_0x32bbc8(0x28df)]['split'](',');_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0xee8)]=_0x3030e6[0x0],_0x28d98a['close']['language']=_0x3030e6[0x1],_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x173a)]=_0x3030e6[_0x32bbc8(0x14cb)](0x2,_0x3030e6[_0x32bbc8(0xfd0)])[_0x32bbc8(0x1f66)](',');}break;case _0x32bbc8(0xece):{const _0x2c7964=_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x28df)]['split'](',');_0x28d98a['close'][_0x32bbc8(0x2854)]=_0x2c7964[0x0],_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x12bf)]=_0x2c7964[0x1],_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x29d6)]=_0x2c7964[0x2],_0x28d98a['close'][_0x32bbc8(0x12b4)]=_0x2c7964[0x3],_0x28d98a[_0x32bbc8(0xf3b)]['welcomemessage']=_0x2c7964[_0x32bbc8(0x14cb)](0x4,_0x2c7964[_0x32bbc8(0xfd0)])[_0x32bbc8(0x1f66)](',');}break;case'amazonlex':{const _0x4f6292=_0x28d98a['close'][_0x32bbc8(0x28df)][_0x32bbc8(0xbe1)](',');_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x413)]=_0x4f6292[0x0],_0x28d98a[_0x32bbc8(0xf3b)]['secretaccesskey']=_0x4f6292[0x1],_0x28d98a['close'][_0x32bbc8(0xd50)]=_0x4f6292[0x2],_0x28d98a[_0x32bbc8(0xf3b)]['botname']=_0x4f6292[0x3],_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x173a)]=_0x4f6292[_0x32bbc8(0x14cb)](0x4,_0x4f6292[_0x32bbc8(0xfd0)])[_0x32bbc8(0x1f66)](',');}break;case _0x32bbc8(0x1f71):{const _0x5cef9c=_0x28d98a['close'][_0x32bbc8(0x28df)]['split'](',');_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x18a5)]=isNaN(_0x5cef9c[0x0])?_0x5cef9c[0x0]:parseInt(_0x5cef9c[0x0],0xa),_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x19d3)]=_0x5cef9c[_0x32bbc8(0x14cb)](0x1,_0x5cef9c['length'])['join'](',');}break;case'message':_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x19d3)]=_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x28df)];break;case _0x32bbc8(0x19d1):_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x16b6)]=_0x28d98a['close'][_0x32bbc8(0x28df)][_0x32bbc8(0xbe1)]('=')[0x0],_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x327)]=_0x28d98a[_0x32bbc8(0xf3b)]['appdata'][_0x32bbc8(0xbe1)]('=')[0x1];break;case _0x32bbc8(0x4b4):_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x12a7)]=_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x28df)];break;default:{const _0xa16d48=_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x28df)][_0x32bbc8(0xbe1)](',');_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x1746)]=_0x39641b()[_0x32bbc8(0xce9)](_0xa16d48[0x0])?_0xa16d48[0x0]:isNaN(_0xa16d48[0x0])?_0xa16d48[0x0]:parseInt(_0xa16d48[0x0],0xa);}break;}else{}_0x28d98a[_0x32bbc8(0xf3b)]['type']&&_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x66a)][_0x32bbc8(0x1680)]()===_0x32bbc8(0x895)&&_0x28d98a[_0x32bbc8(0xf3b)]['appType'][_0x32bbc8(0x1680)]()==='outbounddial'&&(_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x586)]=_0x28d98a['close'][_0x32bbc8(0x1340)]?_0x28d98a[_0x32bbc8(0xf3b)][_0x32bbc8(0x1340)][_0x32bbc8(0xbe1)]('$')[0x0]:undefined,_0x28d98a[_0x32bbc8(0xf3b)]['callerId']=_0x28d98a['close'][_0x32bbc8(0x2816)]?_0x32bbc8(0x25f9)+_0x28d98a[_0x32bbc8(0xf3b)]['callerID']:undefined);_0x28d98a[_0x32bbc8(0x7b3)]=_0xfdc62,_0x28d98a[_0x32bbc8(0xda0)]=_0x5ae73f;function _0xfdc62(){const _0x174df1=_0x32bbc8;_0x28d98a[_0x174df1(0x1a7c)]=[];const _0x5425ce=[];_0x28d98a[_0x174df1(0xf3b)][_0x174df1(0x66a)]&&_0x28d98a[_0x174df1(0xf3b)][_0x174df1(0x66a)][_0x174df1(0x1680)]()==='outbound'&&_0x28d98a['close'][_0x174df1(0x299b)]===_0x174df1(0x25f4)&&(_0x28d98a['close'][_0x174df1(0x1340)]=_0x30f14a['cutdigits']?(_0x28d98a[_0x174df1(0xf3b)][_0x174df1(0x586)]||'')+_0x174df1(0x19e4)+_0x30f14a['cutdigits']+'}':(_0x28d98a[_0x174df1(0xf3b)][_0x174df1(0x586)]||'')+_0x174df1(0xcdd),_0x30f14a['recordingFormat']!==_0x174df1(0x13b1)?_0x28d98a[_0x174df1(0xf3b)][_0x174df1(0x2224)][_0x174df1(0xd8a)](_0x174df1(0x106a))<0x0&&(_0x28d98a[_0x174df1(0xf3b)][_0x174df1(0x2224)]+=_0x174df1(0x106a)):_0x28d98a[_0x174df1(0xf3b)][_0x174df1(0x2224)]=_0x28d98a[_0x174df1(0xf3b)][_0x174df1(0x2224)]['replace']('U(xcally-mixmonitor-context)',''));if(_0x28d98a[_0x174df1(0xf3b)][_0x174df1(0x299b)]&&_0x28d98a[_0x174df1(0xf3b)][_0x174df1(0x299b)]===_0x174df1(0x197c)){}else switch((_0x28d98a[_0x174df1(0xf3b)][_0x174df1(0x22e1)]||_0x28d98a[_0x174df1(0xf3b)]['appType'])['toLowerCase']()){case _0x174df1(0x19d1):_0x28d98a[_0x174df1(0xf3b)][_0x174df1(0x28df)]=_0x28d98a[_0x174df1(0xf3b)][_0x174df1(0x16b6)]+'='+_0x28d98a['close'][_0x174df1(0x327)];break;case'custom':break;default:_0x5425ce[0x0]=_0x28d98a[_0x174df1(0xf3b)][_0x174df1(0x1746)],_0x28d98a[_0x174df1(0xf3b)]['appdata']=_0x5425ce[_0x174df1(0x1f66)](',');}_0x5ae73f(_0x28d98a[_0x174df1(0xf3b)]);}function _0x5ae73f(_0x3f3251){const _0x4f3242=_0x32bbc8;_0x2c55e4[_0x4f3242(0x1426)](_0x3f3251);}}const _0x2a383f=_0x14e9e5;;_0xe9f7c4[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x422),_0x5537c6(0x226c),_0x5537c6(0x142b),_0x5537c6(0x1774),'crudPermissions'];function _0xe9f7c4(_0x17923d,_0x2ddbd3,_0x225183,_0x35e362,_0x445bcc,_0x3db756,_0x46ea09,_0x30c66b){const _0xbf7594=_0x5537c6,_0x28d8e2=this;_0x28d8e2[_0xbf7594(0xe76)]=_0x46ea09[_0xbf7594(0x21e8)](),_0x28d8e2[_0xbf7594(0x1a7c)]=[],_0x28d8e2[_0xbf7594(0x1386)]='CHAT.EDIT_'+(_0x35e362['appType']||_0x35e362[_0xbf7594(0x22e1)])['toUpperCase'](),_0x28d8e2['dialogflow']=angular[_0xbf7594(0x17fe)](_0x35e362),_0x28d8e2[_0xbf7594(0x1b1a)]=_0x30c66b,_0x28d8e2[_0xbf7594(0xf4c)]={};if(_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x28df)])switch(_0x28d8e2[_0xbf7594(0x711)]['appType']?_0x28d8e2[_0xbf7594(0x711)]['appType']['toLowerCase']():_0x28d8e2['dialogflow'][_0xbf7594(0x22e1)][_0xbf7594(0x1680)]()){case'custom':break;case'dialogflow':{const _0x5391c5=_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x28df)]['split'](',');_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0xee8)]=_0x5391c5[0x0],_0x28d8e2['dialogflow']['language']=_0x5391c5[0x1],_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x173a)]=_0x5391c5['slice'](0x2,_0x5391c5[_0xbf7594(0xfd0)])['join'](',');}break;case _0xbf7594(0xece):{const _0x4da61f=_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x28df)][_0xbf7594(0xbe1)](',');_0x28d8e2['dialogflow'][_0xbf7594(0x2854)]=_0x4da61f[0x0],_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x12bf)]=_0x4da61f[0x1],_0x28d8e2['dialogflow'][_0xbf7594(0x29d6)]=_0x4da61f[0x2],_0x28d8e2['dialogflow'][_0xbf7594(0x12b4)]=_0x4da61f[0x3],_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x173a)]=_0x4da61f[_0xbf7594(0x14cb)](0x4,_0x4da61f[_0xbf7594(0xfd0)])['join'](',');}break;case _0xbf7594(0x123a):{const _0x1a4851=_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x28df)]['split'](',');_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x413)]=_0x1a4851[0x0],_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x21d9)]=_0x1a4851[0x1],_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0xd50)]=_0x1a4851[0x2],_0x28d8e2['dialogflow'][_0xbf7594(0x1c7f)]=_0x1a4851[0x3],_0x28d8e2['dialogflow'][_0xbf7594(0x173a)]=_0x1a4851[_0xbf7594(0x14cb)](0x4,_0x1a4851[_0xbf7594(0xfd0)])[_0xbf7594(0x1f66)](',');}break;case _0xbf7594(0x1f71):{const _0x344c15=_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x28df)]['split'](',');_0x28d8e2[_0xbf7594(0x711)]['times']=isNaN(_0x344c15[0x0])?_0x344c15[0x0]:parseInt(_0x344c15[0x0],0xa),_0x28d8e2['dialogflow'][_0xbf7594(0x19d3)]=_0x344c15[_0xbf7594(0x14cb)](0x1,_0x344c15[_0xbf7594(0xfd0)])[_0xbf7594(0x1f66)](',');}break;case _0xbf7594(0x155e):_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x19d3)]=_0x28d8e2['dialogflow'][_0xbf7594(0x28df)];break;case _0xbf7594(0x19d1):_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x16b6)]=_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x28df)][_0xbf7594(0xbe1)]('=')[0x0],_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x327)]=_0x28d8e2[_0xbf7594(0x711)]['appdata'][_0xbf7594(0xbe1)]('=')[0x1];break;case _0xbf7594(0x4b4):_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x12a7)]=_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x28df)];break;default:{const _0x39403a=_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x28df)]['split'](',');_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0xee8)]=_0x39641b()[_0xbf7594(0xce9)](_0x39403a[0x0])?_0x39403a[0x0]:isNaN(_0x39403a[0x0])?_0x39403a[0x0]:parseInt(_0x39403a[0x0],0xa),_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x12b4)]=_0x39641b()[_0xbf7594(0xce9)](_0x39403a[0x1])?_0x39403a[0x1]:isNaN(_0x39403a[0x1])?_0x39403a[0x1]:parseInt(_0x39403a[0x1],0xa),_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x173a)]=_0x39641b()['isEmpty'](_0x39403a[0x2])?_0x39403a[0x2]:isNaN(_0x39403a[0x2])?_0x39403a[0x2]:parseInt(_0x39403a[0x2],0xa);}break;}else _0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x12b4)]='en';_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x66a)]&&_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x66a)][_0xbf7594(0x1680)]()===_0xbf7594(0x895)&&_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x299b)][_0xbf7594(0x1680)]()===_0xbf7594(0x20ff)&&(_0x28d8e2['dialogflow'][_0xbf7594(0x586)]=_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x1340)]?_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x1340)][_0xbf7594(0xbe1)]('$')[0x0]:undefined,_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x1e7c)]=_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x2816)]?_0xbf7594(0x25f9)+_0x28d8e2[_0xbf7594(0x711)][_0xbf7594(0x2816)]:undefined);_0x28d8e2[_0xbf7594(0x7b3)]=_0x425d17,_0x28d8e2['closeDialog']=_0x57187c;function _0x425d17(){const _0x4d254f=_0xbf7594;_0x28d8e2[_0x4d254f(0x1a7c)]=[];const _0x19455f=[];_0x28d8e2[_0x4d254f(0x711)][_0x4d254f(0x66a)]&&_0x28d8e2[_0x4d254f(0x711)][_0x4d254f(0x66a)][_0x4d254f(0x1680)]()===_0x4d254f(0x895)&&_0x28d8e2[_0x4d254f(0x711)]['appType']===_0x4d254f(0x25f4)&&(_0x28d8e2['dialogflow']['phone']=_0x445bcc['cutdigits']?(_0x28d8e2['dialogflow'][_0x4d254f(0x586)]||'')+_0x4d254f(0x19e4)+_0x445bcc[_0x4d254f(0x325)]+'}':(_0x28d8e2[_0x4d254f(0x711)][_0x4d254f(0x586)]||'')+_0x4d254f(0xcdd),_0x445bcc[_0x4d254f(0xf8d)]!==_0x4d254f(0x13b1)?_0x28d8e2[_0x4d254f(0x711)]['options'][_0x4d254f(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0x28d8e2[_0x4d254f(0x711)][_0x4d254f(0x2224)]+='U(xcally-mixmonitor-context)'):_0x28d8e2[_0x4d254f(0x711)][_0x4d254f(0x2224)]=_0x28d8e2[_0x4d254f(0x711)][_0x4d254f(0x2224)]['replace']('U(xcally-mixmonitor-context)',''));if(_0x28d8e2[_0x4d254f(0x711)][_0x4d254f(0x299b)]&&_0x28d8e2[_0x4d254f(0x711)][_0x4d254f(0x299b)]==='custom'){}else switch((_0x28d8e2['dialogflow']['app']||_0x28d8e2[_0x4d254f(0x711)][_0x4d254f(0x299b)])[_0x4d254f(0x1680)]()){case _0x4d254f(0x19d1):_0x28d8e2['dialogflow'][_0x4d254f(0x28df)]=_0x28d8e2[_0x4d254f(0x711)][_0x4d254f(0x16b6)]+'='+_0x28d8e2[_0x4d254f(0x711)][_0x4d254f(0x327)];break;case _0x4d254f(0x197c):break;default:_0x19455f[0x0]=_0x28d8e2[_0x4d254f(0x711)][_0x4d254f(0xee8)],_0x19455f[0x1]=_0x28d8e2[_0x4d254f(0x711)][_0x4d254f(0x12b4)],_0x19455f[0x2]=_0x28d8e2[_0x4d254f(0x711)]['welcomemessage'],_0x28d8e2[_0x4d254f(0x711)][_0x4d254f(0x28df)]=_0x19455f[_0x4d254f(0x1f66)](',');}_0x57187c(_0x28d8e2[_0x4d254f(0x711)]);}function _0x57187c(_0x273d3d){const _0x550ab4=_0xbf7594;_0x17923d[_0x550ab4(0x1426)](_0x273d3d);}}const _0x10fc86=_0xe9f7c4;;_0x3bdf73['$inject']=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),'chatWebsiteApp',_0x5537c6(0x226c),_0x5537c6(0x142b),'Auth','crudPermissions'];function _0x3bdf73(_0x5e01ad,_0x57ff29,_0x4acf8e,_0x2c1d82,_0x504188,_0x4716ed,_0x1c25c7,_0x2ab2bc){const _0x5d47c8=_0x5537c6,_0x1df4c5=this;_0x1df4c5['currentUser']=_0x1c25c7[_0x5d47c8(0x21e8)](),_0x1df4c5[_0x5d47c8(0x1a7c)]=[],_0x1df4c5[_0x5d47c8(0x1386)]=_0x5d47c8(0x1e59)+(_0x2c1d82['appType']||_0x2c1d82['app'])['toUpperCase'](),_0x1df4c5[_0x5d47c8(0x13a0)]=angular['copy'](_0x2c1d82),_0x1df4c5['crudPermissions']=_0x2ab2bc,_0x1df4c5['hasModulePermissions']={};if(_0x1df4c5['gotoif']['appdata'])switch(_0x1df4c5['gotoif'][_0x5d47c8(0x299b)]?_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0x299b)]['toLowerCase']():_0x1df4c5[_0x5d47c8(0x13a0)]['app'][_0x5d47c8(0x1680)]()){case'custom':break;case _0x5d47c8(0x711):{const _0x5d24e8=_0x1df4c5[_0x5d47c8(0x13a0)]['appdata'][_0x5d47c8(0xbe1)](',');_0x1df4c5[_0x5d47c8(0x13a0)]['key']=_0x5d24e8[0x0],_0x1df4c5[_0x5d47c8(0x13a0)]['language']=_0x5d24e8[0x1],_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0x173a)]=_0x5d24e8[_0x5d47c8(0x14cb)](0x2,_0x5d24e8[_0x5d47c8(0xfd0)])[_0x5d47c8(0x1f66)](',');}break;case _0x5d47c8(0xece):{const _0x9b9fce=_0x1df4c5[_0x5d47c8(0x13a0)]['appdata'][_0x5d47c8(0xbe1)](',');_0x1df4c5[_0x5d47c8(0x13a0)]['projectId']=_0x9b9fce[0x0],_0x1df4c5['gotoif'][_0x5d47c8(0x12bf)]=_0x9b9fce[0x1],_0x1df4c5['gotoif'][_0x5d47c8(0x29d6)]=_0x9b9fce[0x2],_0x1df4c5[_0x5d47c8(0x13a0)]['language']=_0x9b9fce[0x3],_0x1df4c5['gotoif'][_0x5d47c8(0x173a)]=_0x9b9fce[_0x5d47c8(0x14cb)](0x4,_0x9b9fce[_0x5d47c8(0xfd0)])[_0x5d47c8(0x1f66)](',');}break;case'amazonlex':{const _0x7b5f10=_0x1df4c5['gotoif'][_0x5d47c8(0x28df)][_0x5d47c8(0xbe1)](',');_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0x413)]=_0x7b5f10[0x0],_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0x21d9)]=_0x7b5f10[0x1],_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0xd50)]=_0x7b5f10[0x2],_0x1df4c5['gotoif'][_0x5d47c8(0x1c7f)]=_0x7b5f10[0x3],_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0x173a)]=_0x7b5f10[_0x5d47c8(0x14cb)](0x4,_0x7b5f10[_0x5d47c8(0xfd0)])[_0x5d47c8(0x1f66)](',');}break;case _0x5d47c8(0x1f71):{const _0xca9de0=_0x1df4c5[_0x5d47c8(0x13a0)]['appdata']['split'](',');_0x1df4c5['gotoif'][_0x5d47c8(0x18a5)]=isNaN(_0xca9de0[0x0])?_0xca9de0[0x0]:parseInt(_0xca9de0[0x0],0xa),_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0x19d3)]=_0xca9de0[_0x5d47c8(0x14cb)](0x1,_0xca9de0[_0x5d47c8(0xfd0)])[_0x5d47c8(0x1f66)](',');}break;case _0x5d47c8(0x155e):_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0x19d3)]=_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0x28df)];break;case _0x5d47c8(0x19d1):_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0x16b6)]=_0x1df4c5['gotoif']['appdata']['split']('=')[0x0],_0x1df4c5['gotoif'][_0x5d47c8(0x327)]=_0x1df4c5['gotoif'][_0x5d47c8(0x28df)][_0x5d47c8(0xbe1)]('=')[0x1];break;case'agi':_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0x12a7)]=_0x1df4c5[_0x5d47c8(0x13a0)]['appdata'];break;default:{const _0x579dab=_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0x28df)][_0x5d47c8(0xbe1)](',');_0x1df4c5['gotoif'][_0x5d47c8(0x166c)]=_0x39641b()['isEmpty'](_0x579dab[0x0])?_0x579dab[0x0]:isNaN(_0x579dab[0x0])?_0x579dab[0x0]:parseInt(_0x579dab[0x0],0xa),_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0xb24)]=_0x39641b()['isEmpty'](_0x579dab[0x1])?_0x579dab[0x1]:isNaN(_0x579dab[0x1])?_0x579dab[0x1]:parseInt(_0x579dab[0x1],0xa),_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0x17d)]=_0x39641b()[_0x5d47c8(0xce9)](_0x579dab[0x2])?_0x579dab[0x2]:isNaN(_0x579dab[0x2])?_0x579dab[0x2]:parseInt(_0x579dab[0x2],0xa);}break;}else{}_0x1df4c5['gotoif'][_0x5d47c8(0x66a)]&&_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0x66a)][_0x5d47c8(0x1680)]()===_0x5d47c8(0x895)&&_0x1df4c5['gotoif']['appType'][_0x5d47c8(0x1680)]()===_0x5d47c8(0x20ff)&&(_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0x586)]=_0x1df4c5[_0x5d47c8(0x13a0)]['phone']?_0x1df4c5[_0x5d47c8(0x13a0)]['phone'][_0x5d47c8(0xbe1)]('$')[0x0]:undefined,_0x1df4c5['gotoif'][_0x5d47c8(0x1e7c)]=_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0x2816)]?_0x5d47c8(0x25f9)+_0x1df4c5[_0x5d47c8(0x13a0)][_0x5d47c8(0x2816)]:undefined);_0x1df4c5[_0x5d47c8(0x7b3)]=_0x5d5d3e,_0x1df4c5[_0x5d47c8(0xda0)]=_0x20fafd;function _0x5d5d3e(){const _0x5e62ed=_0x5d47c8;_0x1df4c5[_0x5e62ed(0x1a7c)]=[];const _0x59e1d2=[];_0x1df4c5[_0x5e62ed(0x13a0)]['type']&&_0x1df4c5[_0x5e62ed(0x13a0)][_0x5e62ed(0x66a)][_0x5e62ed(0x1680)]()==='outbound'&&_0x1df4c5[_0x5e62ed(0x13a0)]['appType']==='outboundDial'&&(_0x1df4c5['gotoif'][_0x5e62ed(0x1340)]=_0x504188[_0x5e62ed(0x325)]?(_0x1df4c5['gotoif']['prefix']||'')+_0x5e62ed(0x19e4)+_0x504188[_0x5e62ed(0x325)]+'}':(_0x1df4c5[_0x5e62ed(0x13a0)][_0x5e62ed(0x586)]||'')+'${EXTEN}',_0x504188[_0x5e62ed(0xf8d)]!==_0x5e62ed(0x13b1)?_0x1df4c5[_0x5e62ed(0x13a0)][_0x5e62ed(0x2224)][_0x5e62ed(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0x1df4c5[_0x5e62ed(0x13a0)][_0x5e62ed(0x2224)]+=_0x5e62ed(0x106a)):_0x1df4c5[_0x5e62ed(0x13a0)][_0x5e62ed(0x2224)]=_0x1df4c5[_0x5e62ed(0x13a0)][_0x5e62ed(0x2224)]['replace'](_0x5e62ed(0x106a),''));if(_0x1df4c5['gotoif'][_0x5e62ed(0x299b)]&&_0x1df4c5['gotoif'][_0x5e62ed(0x299b)]===_0x5e62ed(0x197c)){}else switch((_0x1df4c5[_0x5e62ed(0x13a0)][_0x5e62ed(0x22e1)]||_0x1df4c5[_0x5e62ed(0x13a0)][_0x5e62ed(0x299b)])[_0x5e62ed(0x1680)]()){case _0x5e62ed(0x19d1):_0x1df4c5[_0x5e62ed(0x13a0)]['appdata']=_0x1df4c5[_0x5e62ed(0x13a0)][_0x5e62ed(0x16b6)]+'='+_0x1df4c5[_0x5e62ed(0x13a0)][_0x5e62ed(0x327)];break;case _0x5e62ed(0x197c):break;default:_0x59e1d2[0x0]=_0x1df4c5['gotoif']['condition'],_0x59e1d2[0x1]=_0x1df4c5[_0x5e62ed(0x13a0)][_0x5e62ed(0xb24)],_0x59e1d2[0x2]=_0x1df4c5[_0x5e62ed(0x13a0)]['falsepriority'],_0x1df4c5['gotoif']['appdata']=_0x59e1d2[_0x5e62ed(0x1f66)](',');}_0x20fafd(_0x1df4c5['gotoif']);}function _0x20fafd(_0x42d3ba){_0x5e01ad['hide'](_0x42d3ba);}}const _0x6a385a=_0x3bdf73;;_0x159607['$inject']=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x422),_0x5537c6(0x226c),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x159607(_0x192db0,_0x52a4a6,_0x540892,_0x2a0e5f,_0x26fe9e,_0x1464a8,_0xaf10d,_0x4b4f2e){const _0x29e5e0=_0x5537c6,_0x4f0d29=this;_0x4f0d29[_0x29e5e0(0xe76)]=_0xaf10d[_0x29e5e0(0x21e8)](),_0x4f0d29[_0x29e5e0(0x1a7c)]=[],_0x4f0d29[_0x29e5e0(0x1386)]=_0x29e5e0(0x1e59)+(_0x2a0e5f[_0x29e5e0(0x299b)]||_0x2a0e5f[_0x29e5e0(0x22e1)])[_0x29e5e0(0x2335)](),_0x4f0d29[_0x29e5e0(0x265b)]=angular['copy'](_0x2a0e5f),_0x4f0d29[_0x29e5e0(0x1b1a)]=_0x4b4f2e,_0x4f0d29['hasModulePermissions']={};if(_0x4f0d29['gotop'][_0x29e5e0(0x28df)])switch(_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x299b)]?_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x299b)]['toLowerCase']():_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x22e1)]['toLowerCase']()){case _0x29e5e0(0x197c):break;case'dialogflow':{const _0x59e9a0=_0x4f0d29[_0x29e5e0(0x265b)]['appdata'][_0x29e5e0(0xbe1)](',');_0x4f0d29['gotop'][_0x29e5e0(0xee8)]=_0x59e9a0[0x0],_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x12b4)]=_0x59e9a0[0x1],_0x4f0d29[_0x29e5e0(0x265b)]['welcomemessage']=_0x59e9a0[_0x29e5e0(0x14cb)](0x2,_0x59e9a0[_0x29e5e0(0xfd0)])[_0x29e5e0(0x1f66)](',');}break;case _0x29e5e0(0xece):{const _0x462f71=_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x28df)]['split'](',');_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x2854)]=_0x462f71[0x0],_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x12bf)]=_0x462f71[0x1],_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x29d6)]=_0x462f71[0x2],_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x12b4)]=_0x462f71[0x3],_0x4f0d29['gotop'][_0x29e5e0(0x173a)]=_0x462f71['slice'](0x4,_0x462f71['length'])[_0x29e5e0(0x1f66)](',');}break;case'amazonlex':{const _0xa5627a=_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x28df)][_0x29e5e0(0xbe1)](',');_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x413)]=_0xa5627a[0x0],_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x21d9)]=_0xa5627a[0x1],_0x4f0d29['gotop'][_0x29e5e0(0xd50)]=_0xa5627a[0x2],_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x1c7f)]=_0xa5627a[0x3],_0x4f0d29[_0x29e5e0(0x265b)]['welcomemessage']=_0xa5627a['slice'](0x4,_0xa5627a['length'])[_0x29e5e0(0x1f66)](',');}break;case'autoreply':{const _0x190563=_0x4f0d29['gotop'][_0x29e5e0(0x28df)][_0x29e5e0(0xbe1)](',');_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x18a5)]=isNaN(_0x190563[0x0])?_0x190563[0x0]:parseInt(_0x190563[0x0],0xa),_0x4f0d29[_0x29e5e0(0x265b)]['text']=_0x190563[_0x29e5e0(0x14cb)](0x1,_0x190563['length'])['join'](',');}break;case _0x29e5e0(0x155e):_0x4f0d29['gotop'][_0x29e5e0(0x19d3)]=_0x4f0d29['gotop'][_0x29e5e0(0x28df)];break;case _0x29e5e0(0x19d1):_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x16b6)]=_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x28df)][_0x29e5e0(0xbe1)]('=')[0x0],_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x327)]=_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x28df)][_0x29e5e0(0xbe1)]('=')[0x1];break;case'agi':_0x4f0d29['gotop'][_0x29e5e0(0x12a7)]=_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x28df)];break;default:{const _0x4f944f=_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x28df)][_0x29e5e0(0xbe1)](',');_0x4f0d29[_0x29e5e0(0x265b)]['priority']=_0x39641b()['isEmpty'](_0x4f944f[0x0])?_0x4f944f[0x0]:isNaN(_0x4f944f[0x0])?_0x4f944f[0x0]:parseInt(_0x4f944f[0x0],0xa);}break;}else{}_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x66a)]&&_0x4f0d29['gotop']['type'][_0x29e5e0(0x1680)]()==='outbound'&&_0x4f0d29['gotop'][_0x29e5e0(0x299b)][_0x29e5e0(0x1680)]()===_0x29e5e0(0x20ff)&&(_0x4f0d29['gotop'][_0x29e5e0(0x586)]=_0x4f0d29['gotop'][_0x29e5e0(0x1340)]?_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x1340)]['split']('$')[0x0]:undefined,_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x1e7c)]=_0x4f0d29['gotop']['callerID']?_0x29e5e0(0x25f9)+_0x4f0d29[_0x29e5e0(0x265b)][_0x29e5e0(0x2816)]:undefined);_0x4f0d29[_0x29e5e0(0x7b3)]=_0x3231eb,_0x4f0d29[_0x29e5e0(0xda0)]=_0x36b965;function _0x3231eb(){const _0x26fc84=_0x29e5e0;_0x4f0d29[_0x26fc84(0x1a7c)]=[];const _0x275a59=[];_0x4f0d29[_0x26fc84(0x265b)][_0x26fc84(0x66a)]&&_0x4f0d29[_0x26fc84(0x265b)]['type'][_0x26fc84(0x1680)]()===_0x26fc84(0x895)&&_0x4f0d29[_0x26fc84(0x265b)][_0x26fc84(0x299b)]===_0x26fc84(0x25f4)&&(_0x4f0d29[_0x26fc84(0x265b)][_0x26fc84(0x1340)]=_0x26fe9e['cutdigits']?(_0x4f0d29[_0x26fc84(0x265b)]['prefix']||'')+_0x26fc84(0x19e4)+_0x26fe9e[_0x26fc84(0x325)]+'}':(_0x4f0d29[_0x26fc84(0x265b)][_0x26fc84(0x586)]||'')+_0x26fc84(0xcdd),_0x26fe9e[_0x26fc84(0xf8d)]!==_0x26fc84(0x13b1)?_0x4f0d29[_0x26fc84(0x265b)][_0x26fc84(0x2224)][_0x26fc84(0xd8a)](_0x26fc84(0x106a))<0x0&&(_0x4f0d29[_0x26fc84(0x265b)][_0x26fc84(0x2224)]+=_0x26fc84(0x106a)):_0x4f0d29['gotop'][_0x26fc84(0x2224)]=_0x4f0d29[_0x26fc84(0x265b)]['options'][_0x26fc84(0x288f)](_0x26fc84(0x106a),''));if(_0x4f0d29[_0x26fc84(0x265b)][_0x26fc84(0x299b)]&&_0x4f0d29[_0x26fc84(0x265b)][_0x26fc84(0x299b)]==='custom'){}else switch((_0x4f0d29['gotop'][_0x26fc84(0x22e1)]||_0x4f0d29[_0x26fc84(0x265b)][_0x26fc84(0x299b)])[_0x26fc84(0x1680)]()){case _0x26fc84(0x19d1):_0x4f0d29[_0x26fc84(0x265b)][_0x26fc84(0x28df)]=_0x4f0d29[_0x26fc84(0x265b)][_0x26fc84(0x16b6)]+'='+_0x4f0d29[_0x26fc84(0x265b)][_0x26fc84(0x327)];break;case'custom':break;default:_0x275a59[0x0]=_0x4f0d29[_0x26fc84(0x265b)][_0x26fc84(0x521)],_0x4f0d29['gotop'][_0x26fc84(0x28df)]=_0x275a59[_0x26fc84(0x1f66)](',');}_0x36b965(_0x4f0d29[_0x26fc84(0x265b)]);}function _0x36b965(_0x4321f4){const _0xa339ca=_0x29e5e0;_0x192db0[_0xa339ca(0x1426)](_0x4321f4);}}const _0x24b804=_0x159607;;_0x14f091[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0xcb9),'$mdToast',_0x5537c6(0x1b2),_0x5537c6(0x1ac8),_0x5537c6(0xb4a),'toasty',_0x5537c6(0x142b),_0x5537c6(0x1774),'crudPermissions'];function _0x14f091(_0x174ed2,_0x2efce2,_0x2f6ec0,_0xa3a74c,_0x552759,_0x974262,_0x46e95a,_0x42f1ce,_0x37b6bb,_0x136d3e){const _0x43c26c=_0x5537c6,_0x24f5a9=this;_0x24f5a9[_0x43c26c(0xe76)]=_0x37b6bb[_0x43c26c(0x21e8)](),_0x24f5a9[_0x43c26c(0x1a7c)]=[],_0x24f5a9['title']=_0x43c26c(0x1571),_0x24f5a9[_0x43c26c(0x1ac8)]=angular[_0x43c26c(0x17fe)](_0x552759),_0x24f5a9['intervals']=_0x974262,_0x24f5a9[_0x43c26c(0x18c1)]=![],_0x24f5a9['types']=[_0x43c26c(0x2017),_0x43c26c(0x197c),_0x43c26c(0x240)],_0x24f5a9[_0x43c26c(0x1b1a)]=_0x136d3e,_0x24f5a9['daysOfWeek']=_0xa3a74c['getDaysOfWeek'](),_0x24f5a9[_0x43c26c(0x2055)]=_0xa3a74c['getMonthNumber'](),_0x24f5a9[_0x43c26c(0x1534)]=_0xa3a74c['getMonthName'](),_0x24f5a9['daysOfMonth']=_0xa3a74c[_0x43c26c(0xc1e)]();if(!_0x24f5a9[_0x43c26c(0x1ac8)])_0x24f5a9[_0x43c26c(0x1ac8)]={'interval':_0x43c26c(0x965)},_0x24f5a9[_0x43c26c(0x66a)]=_0x43c26c(0x2017),_0x24f5a9['title']=_0x43c26c(0x287b),_0x24f5a9[_0x43c26c(0x18c1)]=!![];else{if(_0x24f5a9[_0x43c26c(0x1ac8)]['interval']!=='*,*,*,*'){_0x24f5a9[_0x43c26c(0x66a)]=_0x43c26c(0x197c);const _0x499b39=_0x24f5a9[_0x43c26c(0x1ac8)][_0x43c26c(0x1ac8)]['split'](','),_0xe1ef4e=_0x499b39[0x0],_0x2634f6=_0x499b39[0x1],_0x55d7bb=_0x499b39[0x2],_0x20390f=_0x499b39[0x3];if(_0xe1ef4e!=='*'){const _0x240b42=_0xe1ef4e['split']('-')[0x0],_0x51dd1c=_0xe1ef4e[_0x43c26c(0xbe1)]('-')[0x1];let _0x5e511b;_0x5e511b=new Date(),_0x5e511b['setHours'](Number(_0x240b42[_0x43c26c(0xbe1)](':')[0x0])),_0x5e511b[_0x43c26c(0x1622)](Number(_0x240b42[_0x43c26c(0xbe1)](':')[0x1])),_0x24f5a9['timeRangeFrom']=_0x5e511b,_0x5e511b=new Date(),_0x5e511b[_0x43c26c(0x201b)](Number(_0x51dd1c[_0x43c26c(0xbe1)](':')[0x0])),_0x5e511b[_0x43c26c(0x1622)](Number(_0x51dd1c[_0x43c26c(0xbe1)](':')[0x1])),_0x24f5a9[_0x43c26c(0x64a)]=_0x5e511b;}_0x2634f6!=='*'&&(_0x24f5a9[_0x43c26c(0x28a6)]=_0x2634f6[_0x43c26c(0xbe1)]('-')[0x0],_0x24f5a9[_0x43c26c(0x28db)]=_0x2634f6[_0x43c26c(0xbe1)]('-')[0x1]),_0x55d7bb!=='*'&&(_0x24f5a9[_0x43c26c(0xd6f)]=_0x55d7bb[_0x43c26c(0xbe1)]('-')[0x0],_0x24f5a9[_0x43c26c(0x194d)]=_0x55d7bb[_0x43c26c(0xbe1)]('-')[0x1]),_0x20390f!=='*'&&(_0x24f5a9[_0x43c26c(0x1756)]=_0x20390f['split']('-')[0x0],_0x24f5a9[_0x43c26c(0xa68)]=_0x20390f[_0x43c26c(0xbe1)]('-')[0x1]);}else _0x24f5a9[_0x43c26c(0x66a)]=_0x43c26c(0x2017);}_0x174ed2['params']['id']&&!_0x24f5a9[_0x43c26c(0x1ac8)][_0x43c26c(0x171b)]&&(_0x24f5a9[_0x43c26c(0x1ac8)][_0x43c26c(0x1a60)]=_0x174ed2[_0x43c26c(0x1dfe)]['id']);_0x24f5a9[_0x43c26c(0x1ac8)]['IntervalId']&&_0x24f5a9[_0x43c26c(0x1ac8)][_0x43c26c(0x171b)]&&(_0x24f5a9[_0x43c26c(0x66a)]=_0x43c26c(0x240));_0x24f5a9[_0x43c26c(0x18b3)]=_0x24566a,_0x24f5a9['saveInterval']=_0x1fca0a,_0x24f5a9[_0x43c26c(0xda0)]=_0x2e33aa;_0x24f5a9[_0x43c26c(0x1ac8)][_0x43c26c(0x171b)]&&(_0x37b6bb[_0x43c26c(0x22b6)](_0x43c26c(0x1c60))?_0x42f1ce[_0x43c26c(0x1ac8)][_0x43c26c(0xbf7)]({'fields':_0x43c26c(0x872),'IntervalId':_0x43c26c(0xd38),'nolimit':!![]})['$promise']['then'](function(_0x1da83d){const _0x152c21=_0x43c26c;_0x24f5a9['intervals']=_0x1da83d[_0x152c21(0x2214)]||[];})[_0x43c26c(0x1c4)](function(_0xcfa0e){const _0x139c30=_0x43c26c;_0x46e95a[_0x139c30(0x218e)]({'title':_0xcfa0e[_0x139c30(0x291)]?_0x139c30(0xeb9)+_0xcfa0e[_0x139c30(0x291)]+_0x139c30(0x1657)+_0xcfa0e[_0x139c30(0xc22)]:'SYSTEM:GET_INTERVALS','msg':_0xcfa0e[_0x139c30(0x25c)]?JSON[_0x139c30(0x2701)](_0xcfa0e[_0x139c30(0x25c)]):_0xcfa0e['toString']()});}):_0x42f1ce[_0x43c26c(0x1ac8)]['get']({'fields':_0x43c26c(0x872),'IntervalId':_0x43c26c(0xd38),'nolimit':!![]})[_0x43c26c(0x1d77)][_0x43c26c(0x1cb0)](function(_0x355f56){const _0x27f637=_0x43c26c;_0x24f5a9[_0x27f637(0xb4a)]=_0x355f56[_0x27f637(0x2214)]||[];})[_0x43c26c(0x1cb0)](function(){const _0x1ddd62=_0x43c26c;return _0x42f1ce['userProfileSection'][_0x1ddd62(0xbf7)]({'userProfileId':_0x24f5a9[_0x1ddd62(0xe76)][_0x1ddd62(0x13c1)],'sectionId':0x3ec})[_0x1ddd62(0x1d77)];})[_0x43c26c(0x1cb0)](function(_0x2ea5d1){const _0x4f731d=_0x43c26c,_0x5a8e4b=_0x2ea5d1&&_0x2ea5d1[_0x4f731d(0x2214)]?_0x2ea5d1[_0x4f731d(0x2214)][0x0]:null;if(!_0x5a8e4b)_0x24f5a9[_0x4f731d(0xb4a)]=[];else{if(!_0x5a8e4b['autoAssociation'])return _0x42f1ce[_0x4f731d(0x1198)][_0x4f731d(0xbf7)]({'sectionId':_0x5a8e4b['id']})[_0x4f731d(0x1d77)][_0x4f731d(0x1cb0)](function(_0x43aec4){const _0x1a3158=_0x4f731d,_0x55225e=_0x43aec4&&_0x43aec4[_0x1a3158(0x2214)]?_0x43aec4[_0x1a3158(0x2214)]:[],_0x58fc4d=[];let _0x4650f0=null;_0x24f5a9[_0x1a3158(0x1ac8)]&&(_0x4650f0=_0x39641b()[_0x1a3158(0x13b4)](_0x24f5a9[_0x1a3158(0xb4a)],{'name':_0x24f5a9[_0x1a3158(0x1ac8)]['IntervalId']})),_0x4650f0&&!_0x39641b()[_0x1a3158(0x727)](_0x55225e,[_0x1a3158(0x2982),_0x4650f0['id']])&&_0x24f5a9[_0x1a3158(0xb4a)][_0x1a3158(0xf90)](function(_0xc006c3){const _0x47e955=_0x1a3158;_0xc006c3['id']===_0x4650f0['id']&&(_0xc006c3[_0x47e955(0x15da)]=![],_0x58fc4d[_0x47e955(0x2785)](_0xc006c3));}),_0x24f5a9[_0x1a3158(0xb4a)]=_0x58fc4d;});}})[_0x43c26c(0x1c4)](function(_0x12bea8){const _0x430428=_0x43c26c;_0x46e95a[_0x430428(0x218e)]({'title':_0x12bea8[_0x430428(0x291)]?_0x430428(0xeb9)+_0x12bea8[_0x430428(0x291)]+'\x20-\x20'+_0x12bea8[_0x430428(0xc22)]:_0x430428(0xdac),'msg':_0x12bea8['data']?JSON[_0x430428(0x2701)](_0x12bea8[_0x430428(0x25c)]):_0x12bea8[_0x430428(0x147f)]()});}));function _0x1cfb11(){const _0x33e679=_0x43c26c;switch(_0x24f5a9['type']){case _0x33e679(0x2017):case _0x33e679(0x240):return _0x33e679(0x965);case'custom':{const _0x11c663=[];if(_0x24f5a9[_0x33e679(0x718)]!=='*'&&_0x24f5a9[_0x33e679(0x718)]&&_0x24f5a9[_0x33e679(0x64a)]){const _0x499e29=(_0x24f5a9[_0x33e679(0x718)][_0x33e679(0x1169)]()<0xa?'0':'')+_0x24f5a9['timeRangeFrom'][_0x33e679(0x1169)]()+':'+((_0x24f5a9[_0x33e679(0x718)][_0x33e679(0x851)]()<0xa?'0':'')+_0x24f5a9[_0x33e679(0x718)][_0x33e679(0x851)]()),_0x8d4569=(_0x24f5a9[_0x33e679(0x64a)]['getHours']()<0xa?'0':'')+_0x24f5a9[_0x33e679(0x64a)][_0x33e679(0x1169)]()+':'+((_0x24f5a9[_0x33e679(0x64a)][_0x33e679(0x851)]()<0xa?'0':'')+_0x24f5a9[_0x33e679(0x64a)][_0x33e679(0x851)]());_0x11c663['push'](_0x499e29+'-'+_0x8d4569);}else _0x11c663[_0x33e679(0x2785)]('*');return _0x24f5a9[_0x33e679(0x28a6)]?_0x24f5a9[_0x33e679(0x28db)]?_0x11c663[_0x33e679(0x2785)](_0x24f5a9[_0x33e679(0x28a6)]+'-'+_0x24f5a9[_0x33e679(0x28db)]):_0x11c663[_0x33e679(0x2785)](_0x24f5a9['dayOfWeekFrom']):_0x11c663[_0x33e679(0x2785)]('*'),_0x24f5a9[_0x33e679(0xd6f)]?_0x24f5a9[_0x33e679(0x194d)]?_0x11c663[_0x33e679(0x2785)](_0x24f5a9[_0x33e679(0xd6f)]+'-'+_0x24f5a9['monthDayTo']):_0x11c663[_0x33e679(0x2785)](_0x24f5a9[_0x33e679(0xd6f)]):_0x11c663[_0x33e679(0x2785)]('*'),_0x24f5a9['monthFrom']?_0x24f5a9[_0x33e679(0xa68)]?_0x11c663['push'](_0x24f5a9[_0x33e679(0x1756)]+'-'+_0x24f5a9[_0x33e679(0xa68)]):_0x11c663[_0x33e679(0x2785)](_0x24f5a9[_0x33e679(0x1756)]):_0x11c663[_0x33e679(0x2785)]('*'),_0x11c663[_0x33e679(0x1f66)]();}}}function _0x24566a(){const _0x343426=_0x43c26c;_0x24f5a9[_0x343426(0x1a7c)]=[],_0x24f5a9[_0x343426(0x1ac8)][_0x343426(0x1ac8)]=_0x1cfb11(),_0x42f1ce[_0x343426(0x1ac8)]['save'](_0x24f5a9['interval'])['$promise'][_0x343426(0x1cb0)](function(_0x4024cb){const _0x4c0f3e=_0x343426;_0x24f5a9['intervals']['push'](_0x4024cb),_0x46e95a[_0x4c0f3e(0x829)]({'title':_0x4c0f3e(0x1d4e),'msg':_0x24f5a9[_0x4c0f3e(0x1ac8)]['name']?_0x24f5a9[_0x4c0f3e(0x1ac8)][_0x4c0f3e(0x16b6)]+_0x4c0f3e(0x470):''}),_0x2e33aa();})[_0x343426(0x1c4)](function(_0x2d02d9){const _0x163d57=_0x343426;console[_0x163d57(0x218e)](_0x2d02d9),_0x24f5a9[_0x163d57(0x1a7c)]=_0x2d02d9[_0x163d57(0x25c)][_0x163d57(0x1a7c)]||[{'message':_0x2d02d9['toString'](),'type':_0x163d57(0x24f7)}];});}function _0x1fca0a(){const _0x4ce9aa=_0x43c26c;_0x24f5a9[_0x4ce9aa(0x1a7c)]=[],_0x24f5a9[_0x4ce9aa(0x1ac8)][_0x4ce9aa(0x1ac8)]=_0x1cfb11(),_0x24f5a9[_0x4ce9aa(0x1ac8)][_0x4ce9aa(0x171b)]?(_0x24f5a9['type']!==_0x4ce9aa(0x240)&&(_0x24f5a9[_0x4ce9aa(0x1ac8)][_0x4ce9aa(0x1a60)]=null),_0x2e33aa(_0x24f5a9[_0x4ce9aa(0x1ac8)])):_0x42f1ce[_0x4ce9aa(0x1ac8)][_0x4ce9aa(0x687)]({'id':_0x24f5a9['interval']['id']},_0x24f5a9[_0x4ce9aa(0x1ac8)])[_0x4ce9aa(0x1d77)][_0x4ce9aa(0x1cb0)](function(_0x5a2619){const _0x535e2a=_0x4ce9aa,_0x29af75=_0x39641b()[_0x535e2a(0x13b4)](_0x24f5a9['intervals'],{'id':_0x5a2619['id']});_0x29af75&&_0x39641b()[_0x535e2a(0x9c1)](_0x29af75,_0x5a2619),_0x46e95a[_0x535e2a(0x829)]({'title':'Interval\x20properly\x20saved!','msg':_0x535e2a(0x2994)}),_0x2e33aa();})['catch'](function(_0x42a86e){const _0x49f5b7=_0x4ce9aa;console[_0x49f5b7(0x218e)](_0x42a86e),_0x24f5a9[_0x49f5b7(0x1a7c)]=_0x42a86e[_0x49f5b7(0x25c)][_0x49f5b7(0x1a7c)]||[{'message':_0x42a86e[_0x49f5b7(0x147f)](),'type':'api.interval.update'}];});}function _0x2e33aa(_0x5e533c){const _0x14ad14=_0x43c26c;_0x2efce2[_0x14ad14(0x1426)](_0x5e533c);}}const _0x1a2682=_0x14f091;;_0x27bfa9['$inject']=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x422),_0x5537c6(0x226c),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x27bfa9(_0x5c31fb,_0x4f2f52,_0x2b1efb,_0x192a93,_0x2b02d6,_0x1a051c,_0x113206,_0x4f24a9){const _0x329f50=_0x5537c6,_0xb9345f=this;_0xb9345f[_0x329f50(0xe76)]=_0x113206[_0x329f50(0x21e8)](),_0xb9345f['errors']=[],_0xb9345f[_0x329f50(0x1386)]=_0x329f50(0x1e59)+(_0x192a93[_0x329f50(0x299b)]||_0x192a93[_0x329f50(0x22e1)])['toUpperCase'](),_0xb9345f[_0x329f50(0x1234)]=angular[_0x329f50(0x17fe)](_0x192a93),_0xb9345f[_0x329f50(0x1b1a)]=_0x4f24a9,_0xb9345f['hasModulePermissions']={};if(_0xb9345f[_0x329f50(0x1234)][_0x329f50(0x28df)])switch(_0xb9345f['noop']['appType']?_0xb9345f[_0x329f50(0x1234)][_0x329f50(0x299b)][_0x329f50(0x1680)]():_0xb9345f[_0x329f50(0x1234)][_0x329f50(0x22e1)]['toLowerCase']()){case _0x329f50(0x197c):break;case _0x329f50(0x711):{const _0x65ef5=_0xb9345f[_0x329f50(0x1234)][_0x329f50(0x28df)]['split'](',');_0xb9345f[_0x329f50(0x1234)][_0x329f50(0xee8)]=_0x65ef5[0x0],_0xb9345f['noop'][_0x329f50(0x12b4)]=_0x65ef5[0x1],_0xb9345f['noop'][_0x329f50(0x173a)]=_0x65ef5['slice'](0x2,_0x65ef5[_0x329f50(0xfd0)])['join'](',');}break;case'dialogflowv2':{const _0x36a8be=_0xb9345f['noop'][_0x329f50(0x28df)][_0x329f50(0xbe1)](',');_0xb9345f[_0x329f50(0x1234)][_0x329f50(0x2854)]=_0x36a8be[0x0],_0xb9345f['noop'][_0x329f50(0x12bf)]=_0x36a8be[0x1],_0xb9345f[_0x329f50(0x1234)]['privateKey']=_0x36a8be[0x2],_0xb9345f['noop'][_0x329f50(0x12b4)]=_0x36a8be[0x3],_0xb9345f[_0x329f50(0x1234)]['welcomemessage']=_0x36a8be[_0x329f50(0x14cb)](0x4,_0x36a8be[_0x329f50(0xfd0)])[_0x329f50(0x1f66)](',');}break;case _0x329f50(0x123a):{const _0x529142=_0xb9345f[_0x329f50(0x1234)]['appdata']['split'](',');_0xb9345f[_0x329f50(0x1234)][_0x329f50(0x413)]=_0x529142[0x0],_0xb9345f[_0x329f50(0x1234)]['secretaccesskey']=_0x529142[0x1],_0xb9345f[_0x329f50(0x1234)][_0x329f50(0xd50)]=_0x529142[0x2],_0xb9345f[_0x329f50(0x1234)]['botname']=_0x529142[0x3],_0xb9345f['noop'][_0x329f50(0x173a)]=_0x529142[_0x329f50(0x14cb)](0x4,_0x529142[_0x329f50(0xfd0)])['join'](',');}break;case _0x329f50(0x1f71):{const _0x26d120=_0xb9345f[_0x329f50(0x1234)][_0x329f50(0x28df)][_0x329f50(0xbe1)](',');_0xb9345f[_0x329f50(0x1234)]['times']=isNaN(_0x26d120[0x0])?_0x26d120[0x0]:parseInt(_0x26d120[0x0],0xa),_0xb9345f[_0x329f50(0x1234)]['text']=_0x26d120['slice'](0x1,_0x26d120['length'])[_0x329f50(0x1f66)](',');}break;case _0x329f50(0x155e):_0xb9345f[_0x329f50(0x1234)]['text']=_0xb9345f[_0x329f50(0x1234)][_0x329f50(0x28df)];break;case _0x329f50(0x19d1):_0xb9345f[_0x329f50(0x1234)][_0x329f50(0x16b6)]=_0xb9345f['noop'][_0x329f50(0x28df)][_0x329f50(0xbe1)]('=')[0x0],_0xb9345f[_0x329f50(0x1234)]['value']=_0xb9345f[_0x329f50(0x1234)][_0x329f50(0x28df)][_0x329f50(0xbe1)]('=')[0x1];break;case _0x329f50(0x4b4):_0xb9345f['noop'][_0x329f50(0x12a7)]=_0xb9345f[_0x329f50(0x1234)][_0x329f50(0x28df)];break;default:{const _0x1769cd=_0xb9345f[_0x329f50(0x1234)][_0x329f50(0x28df)][_0x329f50(0xbe1)](',');_0xb9345f[_0x329f50(0x1234)]['value']=_0x39641b()[_0x329f50(0xce9)](_0x1769cd[0x0])?_0x1769cd[0x0]:isNaN(_0x1769cd[0x0])?_0x1769cd[0x0]:parseInt(_0x1769cd[0x0],0xa);}break;}else{}_0xb9345f[_0x329f50(0x1234)][_0x329f50(0x66a)]&&_0xb9345f[_0x329f50(0x1234)]['type']['toLowerCase']()===_0x329f50(0x895)&&_0xb9345f[_0x329f50(0x1234)]['appType'][_0x329f50(0x1680)]()===_0x329f50(0x20ff)&&(_0xb9345f[_0x329f50(0x1234)][_0x329f50(0x586)]=_0xb9345f['noop'][_0x329f50(0x1340)]?_0xb9345f[_0x329f50(0x1234)][_0x329f50(0x1340)][_0x329f50(0xbe1)]('$')[0x0]:undefined,_0xb9345f[_0x329f50(0x1234)][_0x329f50(0x1e7c)]=_0xb9345f[_0x329f50(0x1234)][_0x329f50(0x2816)]?_0x329f50(0x25f9)+_0xb9345f['noop'][_0x329f50(0x2816)]:undefined);_0xb9345f[_0x329f50(0x7b3)]=_0x411912,_0xb9345f['closeDialog']=_0x529bb8;function _0x411912(){const _0xe8a28b=_0x329f50;_0xb9345f[_0xe8a28b(0x1a7c)]=[];const _0x52cc9c=[];_0xb9345f['noop'][_0xe8a28b(0x66a)]&&_0xb9345f[_0xe8a28b(0x1234)][_0xe8a28b(0x66a)][_0xe8a28b(0x1680)]()===_0xe8a28b(0x895)&&_0xb9345f[_0xe8a28b(0x1234)]['appType']==='outboundDial'&&(_0xb9345f[_0xe8a28b(0x1234)]['phone']=_0x2b02d6[_0xe8a28b(0x325)]?(_0xb9345f['noop']['prefix']||'')+'${EXTEN:'+_0x2b02d6[_0xe8a28b(0x325)]+'}':(_0xb9345f[_0xe8a28b(0x1234)][_0xe8a28b(0x586)]||'')+_0xe8a28b(0xcdd),_0x2b02d6[_0xe8a28b(0xf8d)]!==_0xe8a28b(0x13b1)?_0xb9345f[_0xe8a28b(0x1234)]['options'][_0xe8a28b(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0xb9345f['noop'][_0xe8a28b(0x2224)]+=_0xe8a28b(0x106a)):_0xb9345f[_0xe8a28b(0x1234)]['options']=_0xb9345f[_0xe8a28b(0x1234)][_0xe8a28b(0x2224)][_0xe8a28b(0x288f)]('U(xcally-mixmonitor-context)',''));if(_0xb9345f[_0xe8a28b(0x1234)][_0xe8a28b(0x299b)]&&_0xb9345f[_0xe8a28b(0x1234)][_0xe8a28b(0x299b)]===_0xe8a28b(0x197c)){}else switch((_0xb9345f[_0xe8a28b(0x1234)][_0xe8a28b(0x22e1)]||_0xb9345f[_0xe8a28b(0x1234)][_0xe8a28b(0x299b)])[_0xe8a28b(0x1680)]()){case'set':_0xb9345f['noop'][_0xe8a28b(0x28df)]=_0xb9345f[_0xe8a28b(0x1234)]['name']+'='+_0xb9345f[_0xe8a28b(0x1234)][_0xe8a28b(0x327)];break;case _0xe8a28b(0x197c):break;default:_0x52cc9c[0x0]=_0xb9345f['noop']['value'],_0xb9345f[_0xe8a28b(0x1234)][_0xe8a28b(0x28df)]=_0x52cc9c[_0xe8a28b(0x1f66)](',');}_0x529bb8(_0xb9345f['noop']);}function _0x529bb8(_0x43cb45){_0x5c31fb['hide'](_0x43cb45);}}const _0x27be5c=_0x27bfa9;;_0x20deb6[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x422),_0x5537c6(0x226c),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x20deb6(_0x25bff3,_0x281135,_0xe711dd,_0x4fe209,_0x59cc10,_0x2e1f0e,_0x425c26,_0x598548){const _0x405802=_0x5537c6,_0x2ff1d4=this;_0x2ff1d4['currentUser']=_0x425c26[_0x405802(0x21e8)](),_0x2ff1d4['errors']=[],_0x2ff1d4['title']=_0x405802(0x1e59)+(_0x4fe209[_0x405802(0x299b)]||_0x4fe209['app'])[_0x405802(0x2335)](),_0x2ff1d4['queue']=angular[_0x405802(0x17fe)](_0x4fe209),_0x2ff1d4[_0x405802(0x1b1a)]=_0x598548,_0x2ff1d4[_0x405802(0xf4c)]={};if(_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x28df)])switch(_0x2ff1d4[_0x405802(0x11cf)]['appType']?_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x299b)][_0x405802(0x1680)]():_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x22e1)]['toLowerCase']()){case _0x405802(0x197c):break;case _0x405802(0x711):{const _0x1c7606=_0x2ff1d4['queue'][_0x405802(0x28df)]['split'](',');_0x2ff1d4['queue'][_0x405802(0xee8)]=_0x1c7606[0x0],_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x12b4)]=_0x1c7606[0x1],_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x173a)]=_0x1c7606['slice'](0x2,_0x1c7606[_0x405802(0xfd0)])[_0x405802(0x1f66)](',');}break;case _0x405802(0xece):{const _0x1a7a9b=_0x2ff1d4[_0x405802(0x11cf)]['appdata'][_0x405802(0xbe1)](',');_0x2ff1d4[_0x405802(0x11cf)]['projectId']=_0x1a7a9b[0x0],_0x2ff1d4[_0x405802(0x11cf)]['clientEmail']=_0x1a7a9b[0x1],_0x2ff1d4['queue'][_0x405802(0x29d6)]=_0x1a7a9b[0x2],_0x2ff1d4[_0x405802(0x11cf)]['language']=_0x1a7a9b[0x3],_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x173a)]=_0x1a7a9b[_0x405802(0x14cb)](0x4,_0x1a7a9b[_0x405802(0xfd0)])[_0x405802(0x1f66)](',');}break;case _0x405802(0x123a):{const _0x162ab1=_0x2ff1d4[_0x405802(0x11cf)]['appdata'][_0x405802(0xbe1)](',');_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x413)]=_0x162ab1[0x0],_0x2ff1d4['queue'][_0x405802(0x21d9)]=_0x162ab1[0x1],_0x2ff1d4[_0x405802(0x11cf)]['lexregion']=_0x162ab1[0x2],_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x1c7f)]=_0x162ab1[0x3],_0x2ff1d4['queue'][_0x405802(0x173a)]=_0x162ab1['slice'](0x4,_0x162ab1[_0x405802(0xfd0)])['join'](',');}break;case'autoreply':{const _0x2f6fd0=_0x2ff1d4['queue'][_0x405802(0x28df)][_0x405802(0xbe1)](',');_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x18a5)]=isNaN(_0x2f6fd0[0x0])?_0x2f6fd0[0x0]:parseInt(_0x2f6fd0[0x0],0xa),_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x19d3)]=_0x2f6fd0[_0x405802(0x14cb)](0x1,_0x2f6fd0[_0x405802(0xfd0)])[_0x405802(0x1f66)](',');}break;case'message':_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x19d3)]=_0x2ff1d4['queue'][_0x405802(0x28df)];break;case _0x405802(0x19d1):_0x2ff1d4[_0x405802(0x11cf)]['name']=_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x28df)]['split']('=')[0x0],_0x2ff1d4['queue'][_0x405802(0x327)]=_0x2ff1d4[_0x405802(0x11cf)]['appdata'][_0x405802(0xbe1)]('=')[0x1];break;case _0x405802(0x4b4):_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x12a7)]=_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x28df)];break;default:{const _0x4e4364=_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x28df)][_0x405802(0xbe1)](',');_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x11cf)]=_0x39641b()[_0x405802(0xce9)](_0x4e4364[0x0])?_0x4e4364[0x0]:isNaN(_0x4e4364[0x0])?_0x4e4364[0x0]:parseInt(_0x4e4364[0x0],0xa),_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x1719)]=_0x39641b()[_0x405802(0xce9)](_0x4e4364[0x1])?_0x4e4364[0x1]:isNaN(_0x4e4364[0x1])?_0x4e4364[0x1]:parseInt(_0x4e4364[0x1],0xa);}break;}else _0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x11cf)]=0x12c,_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x1719)]=0x12c;_0x2ff1d4['queue'][_0x405802(0x66a)]&&_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x66a)][_0x405802(0x1680)]()===_0x405802(0x895)&&_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x299b)]['toLowerCase']()==='outbounddial'&&(_0x2ff1d4['queue']['prefix']=_0x2ff1d4[_0x405802(0x11cf)]['phone']?_0x2ff1d4['queue']['phone']['split']('$')[0x0]:undefined,_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x1e7c)]=_0x2ff1d4['queue']['callerID']?'CALLERID(all)='+_0x2ff1d4[_0x405802(0x11cf)][_0x405802(0x2816)]:undefined);_0x2ff1d4[_0x405802(0x7b3)]=_0x8099ab,_0x2ff1d4[_0x405802(0xda0)]=_0x24a61c,_0x425c26[_0x405802(0x22b6)]('admin')?_0x2e1f0e['chatQueue'][_0x405802(0xbf7)]({'fields':_0x405802(0x1896),'sort':'name','nolimit':_0x405802(0x44d)})['$promise'][_0x405802(0x1cb0)](function(_0x5ca401){_0x2ff1d4['queues']=_0x5ca401['rows']||[];})[_0x405802(0x1c4)](function(_0x413dc9){const _0x31b20a=_0x405802;_0xe711dd[_0x31b20a(0x218e)]({'title':_0x413dc9[_0x31b20a(0x291)]?_0x31b20a(0xeb9)+_0x413dc9[_0x31b20a(0x291)]+'\x20-\x20'+_0x413dc9[_0x31b20a(0xc22)]:_0x31b20a(0x277c),'msg':_0x413dc9[_0x31b20a(0x25c)]?JSON['stringify'](_0x413dc9[_0x31b20a(0x25c)]):_0x413dc9[_0x31b20a(0x147f)]()});}):_0x2e1f0e['chatQueue'][_0x405802(0xbf7)]({'fields':_0x405802(0x1896),'sort':_0x405802(0x16b6),'nolimit':_0x405802(0x44d)})['$promise'][_0x405802(0x1cb0)](function(_0x1b0603){const _0x24eec3=_0x405802;_0x2ff1d4[_0x24eec3(0x971)]=_0x1b0603[_0x24eec3(0x2214)]||[];})[_0x405802(0x1cb0)](function(){const _0x31c541=_0x405802;return _0x2e1f0e['userProfileSection'][_0x31c541(0xbf7)]({'userProfileId':_0x2ff1d4['currentUser']['userProfileId'],'sectionId':0x1f5})[_0x31c541(0x1d77)];})['then'](function(_0x31f842){const _0x518ee9=_0x405802,_0x45322f=_0x31f842&&_0x31f842[_0x518ee9(0x2214)]?_0x31f842[_0x518ee9(0x2214)][0x0]:null;if(!_0x45322f){const _0x568441=[];let _0xaa0016=null;_0x2ff1d4[_0x518ee9(0x11cf)]&&(_0xaa0016=_0x39641b()[_0x518ee9(0x13b4)](_0x2ff1d4['queues'],{'name':_0x2ff1d4[_0x518ee9(0x11cf)]['queue']}));for(let _0x59088a=0x0;_0x59088a<_0x2ff1d4[_0x518ee9(0x971)]['length'];_0x59088a++){_0xaa0016&&_0x2ff1d4[_0x518ee9(0x971)][_0x59088a]['id']===_0xaa0016['id']&&(_0x2ff1d4[_0x518ee9(0x971)][_0x59088a][_0x518ee9(0x15da)]=![],_0x568441[_0x518ee9(0x2785)](_0x2ff1d4[_0x518ee9(0x971)][_0x59088a]));}_0x2ff1d4[_0x518ee9(0x971)]=_0x568441;}else{if(!_0x45322f[_0x518ee9(0x12f4)])return _0x2e1f0e[_0x518ee9(0x1198)][_0x518ee9(0xbf7)]({'sectionId':_0x45322f['id']})['$promise']['then'](function(_0x3a03ce){const _0x31da9c=_0x518ee9,_0x13cb9f=_0x39641b()[_0x31da9c(0x1de2)](_0x3a03ce['rows'],function(_0x24b0bd){const _0x33acb1=_0x31da9c;return _0x39641b()['find'](_0x2ff1d4[_0x33acb1(0x971)],{'id':_0x24b0bd[_0x33acb1(0x2982)]});});let _0x22852b=null;_0x2ff1d4[_0x31da9c(0x11cf)]&&(_0x22852b=_0x39641b()[_0x31da9c(0x13b4)](_0x2ff1d4['queues'],{'name':_0x2ff1d4[_0x31da9c(0x11cf)][_0x31da9c(0x11cf)]}));if(_0x22852b&&!_0x39641b()[_0x31da9c(0x727)](_0x13cb9f,['id',_0x22852b['id']])){const _0x1a1d16=_0x39641b()['find'](_0x2ff1d4[_0x31da9c(0x971)],{'id':_0x22852b['id']});_0x1a1d16[_0x31da9c(0x15da)]=![],_0x13cb9f['push'](_0x1a1d16);}_0x2ff1d4[_0x31da9c(0x971)]=_0x13cb9f;});}})[_0x405802(0x1c4)](function(_0x2323b3){const _0x96c7d1=_0x405802;_0xe711dd[_0x96c7d1(0x218e)]({'title':_0x2323b3[_0x96c7d1(0x291)]?_0x96c7d1(0xeb9)+_0x2323b3[_0x96c7d1(0x291)]+_0x96c7d1(0x1657)+_0x2323b3[_0x96c7d1(0xc22)]:'SYSTEM:GETqueues','msg':_0x2323b3['data']?JSON[_0x96c7d1(0x2701)](_0x2323b3[_0x96c7d1(0x25c)]):_0x2323b3[_0x96c7d1(0x147f)]()});});function _0x8099ab(){const _0x1b23ce=_0x405802;_0x2ff1d4[_0x1b23ce(0x1a7c)]=[];const _0x548d2e=[];_0x2ff1d4['queue']['type']&&_0x2ff1d4['queue'][_0x1b23ce(0x66a)][_0x1b23ce(0x1680)]()==='outbound'&&_0x2ff1d4[_0x1b23ce(0x11cf)][_0x1b23ce(0x299b)]===_0x1b23ce(0x25f4)&&(_0x2ff1d4[_0x1b23ce(0x11cf)]['phone']=_0x59cc10[_0x1b23ce(0x325)]?(_0x2ff1d4[_0x1b23ce(0x11cf)][_0x1b23ce(0x586)]||'')+'${EXTEN:'+_0x59cc10[_0x1b23ce(0x325)]+'}':(_0x2ff1d4[_0x1b23ce(0x11cf)][_0x1b23ce(0x586)]||'')+_0x1b23ce(0xcdd),_0x59cc10[_0x1b23ce(0xf8d)]!==_0x1b23ce(0x13b1)?_0x2ff1d4[_0x1b23ce(0x11cf)][_0x1b23ce(0x2224)][_0x1b23ce(0xd8a)](_0x1b23ce(0x106a))<0x0&&(_0x2ff1d4['queue']['options']+=_0x1b23ce(0x106a)):_0x2ff1d4['queue'][_0x1b23ce(0x2224)]=_0x2ff1d4[_0x1b23ce(0x11cf)][_0x1b23ce(0x2224)]['replace']('U(xcally-mixmonitor-context)',''));const _0x50e6e8=_0x39641b()[_0x1b23ce(0x13b4)](_0x2ff1d4[_0x1b23ce(0x971)],{'name':_0x2ff1d4[_0x1b23ce(0x11cf)]['queue']});_0x50e6e8&&(_0x2ff1d4[_0x1b23ce(0x11cf)][_0x39641b()[_0x1b23ce(0x432)]('chat')+_0x1b23ce(0x14d1)]=_0x50e6e8['id']);if(_0x2ff1d4[_0x1b23ce(0x11cf)][_0x1b23ce(0x299b)]&&_0x2ff1d4[_0x1b23ce(0x11cf)]['appType']===_0x1b23ce(0x197c)){}else switch((_0x2ff1d4[_0x1b23ce(0x11cf)][_0x1b23ce(0x22e1)]||_0x2ff1d4['queue'][_0x1b23ce(0x299b)])[_0x1b23ce(0x1680)]()){case _0x1b23ce(0x19d1):_0x2ff1d4[_0x1b23ce(0x11cf)]['appdata']=_0x2ff1d4[_0x1b23ce(0x11cf)][_0x1b23ce(0x16b6)]+'='+_0x2ff1d4[_0x1b23ce(0x11cf)][_0x1b23ce(0x327)];break;case _0x1b23ce(0x197c):break;default:_0x548d2e[0x0]=_0x2ff1d4[_0x1b23ce(0x11cf)]['queue'],_0x548d2e[0x1]=_0x2ff1d4[_0x1b23ce(0x11cf)][_0x1b23ce(0x1719)],_0x2ff1d4[_0x1b23ce(0x11cf)][_0x1b23ce(0x28df)]=_0x548d2e['join'](',');}_0x24a61c(_0x2ff1d4['queue']);}function _0x24a61c(_0x645b18){const _0x13e269=_0x405802;_0x25bff3[_0x13e269(0x1426)](_0x645b18);}}const _0x15b893=_0x20deb6;;_0x455a2a['$inject']=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x422),_0x5537c6(0x226c),'api','Auth',_0x5537c6(0x1b1a)];function _0x455a2a(_0xa32488,_0x46f25b,_0x1da8f6,_0x28eb0d,_0x1b23b5,_0x8873f8,_0x43ee1a,_0x5b12a0){const _0x34624a=_0x5537c6,_0x56eb54=this;_0x56eb54[_0x34624a(0xe76)]=_0x43ee1a[_0x34624a(0x21e8)](),_0x56eb54[_0x34624a(0x1a7c)]=[],_0x56eb54['title']='CHAT.EDIT_'+(_0x28eb0d[_0x34624a(0x299b)]||_0x28eb0d[_0x34624a(0x22e1)])[_0x34624a(0x2335)](),_0x56eb54[_0x34624a(0x7be)]=angular[_0x34624a(0x17fe)](_0x28eb0d),_0x56eb54['crudPermissions']=_0x5b12a0,_0x56eb54[_0x34624a(0xf4c)]={};if(_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x28df)])switch(_0x56eb54[_0x34624a(0x7be)]['appType']?_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x299b)]['toLowerCase']():_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x22e1)]['toLowerCase']()){case _0x34624a(0x197c):break;case _0x34624a(0x711):{const _0x221636=_0x56eb54[_0x34624a(0x7be)]['appdata'][_0x34624a(0xbe1)](',');_0x56eb54['system']['key']=_0x221636[0x0],_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x12b4)]=_0x221636[0x1],_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x173a)]=_0x221636[_0x34624a(0x14cb)](0x2,_0x221636['length'])['join'](',');}break;case _0x34624a(0xece):{const _0x5c277a=_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x28df)][_0x34624a(0xbe1)](',');_0x56eb54[_0x34624a(0x7be)]['projectId']=_0x5c277a[0x0],_0x56eb54[_0x34624a(0x7be)]['clientEmail']=_0x5c277a[0x1],_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x29d6)]=_0x5c277a[0x2],_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x12b4)]=_0x5c277a[0x3],_0x56eb54['system'][_0x34624a(0x173a)]=_0x5c277a[_0x34624a(0x14cb)](0x4,_0x5c277a[_0x34624a(0xfd0)])[_0x34624a(0x1f66)](',');}break;case _0x34624a(0x123a):{const _0x425224=_0x56eb54[_0x34624a(0x7be)]['appdata']['split'](',');_0x56eb54['system'][_0x34624a(0x413)]=_0x425224[0x0],_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x21d9)]=_0x425224[0x1],_0x56eb54[_0x34624a(0x7be)]['lexregion']=_0x425224[0x2],_0x56eb54[_0x34624a(0x7be)]['botname']=_0x425224[0x3],_0x56eb54['system'][_0x34624a(0x173a)]=_0x425224[_0x34624a(0x14cb)](0x4,_0x425224[_0x34624a(0xfd0)])[_0x34624a(0x1f66)](',');}break;case'autoreply':{const _0x44d864=_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x28df)][_0x34624a(0xbe1)](',');_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x18a5)]=isNaN(_0x44d864[0x0])?_0x44d864[0x0]:parseInt(_0x44d864[0x0],0xa),_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x19d3)]=_0x44d864[_0x34624a(0x14cb)](0x1,_0x44d864['length'])[_0x34624a(0x1f66)](',');}break;case _0x34624a(0x155e):_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x19d3)]=_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x28df)];break;case _0x34624a(0x19d1):_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x16b6)]=_0x56eb54[_0x34624a(0x7be)]['appdata'][_0x34624a(0xbe1)]('=')[0x0],_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x327)]=_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x28df)][_0x34624a(0xbe1)]('=')[0x1];break;case _0x34624a(0x4b4):_0x56eb54[_0x34624a(0x7be)]['project']=_0x56eb54['system'][_0x34624a(0x28df)];break;default:{const _0x2cc811=_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x28df)][_0x34624a(0xbe1)](',');_0x56eb54['system']['command']=_0x39641b()['isEmpty'](_0x2cc811[0x0])?_0x2cc811[0x0]:isNaN(_0x2cc811[0x0])?_0x2cc811[0x0]:parseInt(_0x2cc811[0x0],0xa),_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x1822)]=_0x39641b()[_0x34624a(0xce9)](_0x2cc811[0x1])?_0x2cc811[0x1]:isNaN(_0x2cc811[0x1])?_0x2cc811[0x1]:parseInt(_0x2cc811[0x1],0xa);}break;}else _0x56eb54[_0x34624a(0x7be)][_0x34624a(0x1822)]='';_0x56eb54['system'][_0x34624a(0x66a)]&&_0x56eb54['system']['type'][_0x34624a(0x1680)]()===_0x34624a(0x895)&&_0x56eb54['system'][_0x34624a(0x299b)]['toLowerCase']()==='outbounddial'&&(_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x586)]=_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x1340)]?_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x1340)][_0x34624a(0xbe1)]('$')[0x0]:undefined,_0x56eb54[_0x34624a(0x7be)][_0x34624a(0x1e7c)]=_0x56eb54[_0x34624a(0x7be)]['callerID']?'CALLERID(all)='+_0x56eb54['system'][_0x34624a(0x2816)]:undefined);_0x56eb54['saveChatWebsiteApp']=_0x312653,_0x56eb54[_0x34624a(0xda0)]=_0x100b1c,_0x43ee1a[_0x34624a(0x22b6)](_0x34624a(0x1c60))?_0x8873f8[_0x34624a(0x1822)][_0x34624a(0xbf7)]({'fields':_0x34624a(0x43c),'sort':_0x34624a(0x16b6),'nolimit':_0x34624a(0x44d)})['$promise'][_0x34624a(0x1cb0)](function(_0xd13ffd){const _0xceb5b9=_0x34624a;_0x56eb54[_0xceb5b9(0x9a9)]=_0xd13ffd[_0xceb5b9(0x2214)]||[];})[_0x34624a(0x1c4)](function(_0x2e0447){const _0xbe3ea3=_0x34624a;_0x1da8f6[_0xbe3ea3(0x218e)]({'title':_0x2e0447[_0xbe3ea3(0x291)]?_0xbe3ea3(0xeb9)+_0x2e0447[_0xbe3ea3(0x291)]+_0xbe3ea3(0x1657)+_0x2e0447['statusText']:_0xbe3ea3(0xe04),'msg':_0x2e0447['data']?JSON['stringify'](_0x2e0447[_0xbe3ea3(0x25c)]):_0x2e0447['toString']()});}):_0x8873f8[_0x34624a(0x1822)][_0x34624a(0xbf7)]({'fields':_0x34624a(0x43c),'sort':_0x34624a(0x16b6),'nolimit':_0x34624a(0x44d)})[_0x34624a(0x1d77)]['then'](function(_0x589a5b){const _0x77e291=_0x34624a;_0x56eb54[_0x77e291(0x9a9)]=_0x589a5b[_0x77e291(0x2214)]||[];})[_0x34624a(0x1cb0)](function(){const _0x343c22=_0x34624a;return _0x8873f8[_0x343c22(0x2199)][_0x343c22(0xbf7)]({'userProfileId':_0x56eb54[_0x343c22(0xe76)][_0x343c22(0x13c1)],'sectionId':0x3f4})[_0x343c22(0x1d77)];})[_0x34624a(0x1cb0)](function(_0x3fd829){const _0x14185f=_0x34624a,_0x1dd3fd=_0x3fd829&&_0x3fd829[_0x14185f(0x2214)]?_0x3fd829[_0x14185f(0x2214)][0x0]:null;if(!_0x1dd3fd){const _0x353b51=[];let _0x55def7=null;_0x56eb54['system']&&(_0x55def7=_0x39641b()[_0x14185f(0x13b4)](_0x56eb54[_0x14185f(0x9a9)],{'name':_0x56eb54[_0x14185f(0x7be)][_0x14185f(0x1822)]}));for(let _0x3afa13=0x0;_0x3afa13<_0x56eb54[_0x14185f(0x9a9)]['length'];_0x3afa13++){_0x55def7&&_0x56eb54['variables'][_0x3afa13]['id']===_0x55def7['id']&&(_0x56eb54[_0x14185f(0x9a9)][_0x3afa13][_0x14185f(0x15da)]=![],_0x353b51[_0x14185f(0x2785)](_0x56eb54[_0x14185f(0x9a9)][_0x3afa13]));}_0x56eb54[_0x14185f(0x9a9)]=_0x353b51;}else{if(!_0x1dd3fd[_0x14185f(0x12f4)])return _0x8873f8[_0x14185f(0x1198)][_0x14185f(0xbf7)]({'sectionId':_0x1dd3fd['id']})['$promise'][_0x14185f(0x1cb0)](function(_0x40a900){const _0x3e4203=_0x14185f,_0x52cee7=_0x39641b()[_0x3e4203(0x1de2)](_0x40a900['rows'],function(_0x52f46d){const _0x4f1989=_0x3e4203;return _0x39641b()[_0x4f1989(0x13b4)](_0x56eb54[_0x4f1989(0x9a9)],{'id':_0x52f46d[_0x4f1989(0x2982)]});});let _0x4dc5d3=null;_0x56eb54[_0x3e4203(0x7be)]&&(_0x4dc5d3=_0x39641b()['find'](_0x56eb54[_0x3e4203(0x9a9)],{'name':_0x56eb54[_0x3e4203(0x7be)][_0x3e4203(0x1822)]}));if(_0x4dc5d3&&!_0x39641b()[_0x3e4203(0x727)](_0x52cee7,['id',_0x4dc5d3['id']])){const _0xc0573f=_0x39641b()[_0x3e4203(0x13b4)](_0x56eb54[_0x3e4203(0x9a9)],{'id':_0x4dc5d3['id']});_0xc0573f[_0x3e4203(0x15da)]=![],_0x52cee7['push'](_0xc0573f);}_0x56eb54['variables']=_0x52cee7;});}})[_0x34624a(0x1c4)](function(_0x220db7){const _0x2bd267=_0x34624a;_0x1da8f6['error']({'title':_0x220db7['status']?_0x2bd267(0xeb9)+_0x220db7[_0x2bd267(0x291)]+'\x20-\x20'+_0x220db7[_0x2bd267(0xc22)]:_0x2bd267(0xda5),'msg':_0x220db7['data']?JSON['stringify'](_0x220db7[_0x2bd267(0x25c)]):_0x220db7['toString']()});});function _0x312653(){const _0x381f1f=_0x34624a;_0x56eb54[_0x381f1f(0x1a7c)]=[];const _0x4843a5=[];_0x56eb54[_0x381f1f(0x7be)][_0x381f1f(0x66a)]&&_0x56eb54[_0x381f1f(0x7be)][_0x381f1f(0x66a)][_0x381f1f(0x1680)]()==='outbound'&&_0x56eb54[_0x381f1f(0x7be)][_0x381f1f(0x299b)]==='outboundDial'&&(_0x56eb54['system'][_0x381f1f(0x1340)]=_0x1b23b5[_0x381f1f(0x325)]?(_0x56eb54[_0x381f1f(0x7be)][_0x381f1f(0x586)]||'')+_0x381f1f(0x19e4)+_0x1b23b5[_0x381f1f(0x325)]+'}':(_0x56eb54[_0x381f1f(0x7be)][_0x381f1f(0x586)]||'')+'${EXTEN}',_0x1b23b5['recordingFormat']!==_0x381f1f(0x13b1)?_0x56eb54['system'][_0x381f1f(0x2224)][_0x381f1f(0xd8a)](_0x381f1f(0x106a))<0x0&&(_0x56eb54[_0x381f1f(0x7be)][_0x381f1f(0x2224)]+=_0x381f1f(0x106a)):_0x56eb54['system']['options']=_0x56eb54[_0x381f1f(0x7be)][_0x381f1f(0x2224)][_0x381f1f(0x288f)]('U(xcally-mixmonitor-context)',''));if(_0x56eb54[_0x381f1f(0x7be)][_0x381f1f(0x299b)]&&_0x56eb54[_0x381f1f(0x7be)]['appType']===_0x381f1f(0x197c)){}else switch((_0x56eb54[_0x381f1f(0x7be)][_0x381f1f(0x22e1)]||_0x56eb54[_0x381f1f(0x7be)][_0x381f1f(0x299b)])['toLowerCase']()){case _0x381f1f(0x19d1):_0x56eb54[_0x381f1f(0x7be)][_0x381f1f(0x28df)]=_0x56eb54[_0x381f1f(0x7be)]['name']+'='+_0x56eb54[_0x381f1f(0x7be)]['value'];break;case _0x381f1f(0x197c):break;default:_0x4843a5[0x0]=_0x56eb54['system'][_0x381f1f(0xd0d)],_0x4843a5[0x1]=_0x56eb54[_0x381f1f(0x7be)][_0x381f1f(0x1822)],_0x56eb54[_0x381f1f(0x7be)][_0x381f1f(0x28df)]=_0x4843a5['join'](',');}_0x100b1c(_0x56eb54['system']);}function _0x100b1c(_0x47ae49){_0xa32488['hide'](_0x47ae49);}}const _0x2b59dd=_0x455a2a;;_0x25728a[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty',_0x5537c6(0x422),_0x5537c6(0x226c),_0x5537c6(0x142b),_0x5537c6(0x1774),'crudPermissions'];function _0x25728a(_0xb2c0a5,_0x5063bd,_0x297fbf,_0x18f78c,_0x23f1c0,_0x5c8b0d,_0x43fe2e,_0x1e5703){const _0x16562e=_0x5537c6,_0x1dcdcd=this;_0x1dcdcd[_0x16562e(0xe76)]=_0x43fe2e[_0x16562e(0x21e8)](),_0x1dcdcd[_0x16562e(0x1a7c)]=[],_0x1dcdcd[_0x16562e(0x1386)]='CHAT.EDIT_'+(_0x18f78c[_0x16562e(0x299b)]||_0x18f78c['app'])['toUpperCase'](),_0x1dcdcd[_0x16562e(0x22b1)]=angular[_0x16562e(0x17fe)](_0x18f78c),_0x1dcdcd['crudPermissions']=_0x1e5703,_0x1dcdcd[_0x16562e(0xf4c)]={};if(_0x1dcdcd['tag'][_0x16562e(0x28df)])switch(_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x299b)]?_0x1dcdcd['tag']['appType'][_0x16562e(0x1680)]():_0x1dcdcd['tag']['app'][_0x16562e(0x1680)]()){case _0x16562e(0x197c):break;case'dialogflow':{const _0x38abaa=_0x1dcdcd['tag'][_0x16562e(0x28df)][_0x16562e(0xbe1)](',');_0x1dcdcd[_0x16562e(0x22b1)]['key']=_0x38abaa[0x0],_0x1dcdcd[_0x16562e(0x22b1)]['language']=_0x38abaa[0x1],_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x173a)]=_0x38abaa[_0x16562e(0x14cb)](0x2,_0x38abaa[_0x16562e(0xfd0)])[_0x16562e(0x1f66)](',');}break;case _0x16562e(0xece):{const _0x879139=_0x1dcdcd['tag'][_0x16562e(0x28df)][_0x16562e(0xbe1)](',');_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x2854)]=_0x879139[0x0],_0x1dcdcd['tag'][_0x16562e(0x12bf)]=_0x879139[0x1],_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x29d6)]=_0x879139[0x2],_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x12b4)]=_0x879139[0x3],_0x1dcdcd['tag']['welcomemessage']=_0x879139['slice'](0x4,_0x879139['length'])[_0x16562e(0x1f66)](',');}break;case _0x16562e(0x123a):{const _0x53ec01=_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x28df)]['split'](',');_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x413)]=_0x53ec01[0x0],_0x1dcdcd[_0x16562e(0x22b1)]['secretaccesskey']=_0x53ec01[0x1],_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0xd50)]=_0x53ec01[0x2],_0x1dcdcd[_0x16562e(0x22b1)]['botname']=_0x53ec01[0x3],_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x173a)]=_0x53ec01[_0x16562e(0x14cb)](0x4,_0x53ec01[_0x16562e(0xfd0)])[_0x16562e(0x1f66)](',');}break;case _0x16562e(0x1f71):{const _0x7b1e99=_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x28df)][_0x16562e(0xbe1)](',');_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x18a5)]=isNaN(_0x7b1e99[0x0])?_0x7b1e99[0x0]:parseInt(_0x7b1e99[0x0],0xa),_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x19d3)]=_0x7b1e99[_0x16562e(0x14cb)](0x1,_0x7b1e99[_0x16562e(0xfd0)])[_0x16562e(0x1f66)](',');}break;case _0x16562e(0x155e):_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x19d3)]=_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x28df)];break;case _0x16562e(0x19d1):_0x1dcdcd['tag']['name']=_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x28df)][_0x16562e(0xbe1)]('=')[0x0],_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x327)]=_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x28df)][_0x16562e(0xbe1)]('=')[0x1];break;case'agi':_0x1dcdcd[_0x16562e(0x22b1)]['project']=_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x28df)];break;default:{const _0x15f329=_0x1dcdcd[_0x16562e(0x22b1)]['appdata'][_0x16562e(0xbe1)](',');_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x22b1)]=_0x39641b()[_0x16562e(0xce9)](_0x15f329[0x0])?_0x15f329[0x0]:isNaN(_0x15f329[0x0])?_0x15f329[0x0]:parseInt(_0x15f329[0x0],0xa);}break;}else{}_0x1dcdcd[_0x16562e(0x22b1)]['type']&&_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x66a)][_0x16562e(0x1680)]()==='outbound'&&_0x1dcdcd[_0x16562e(0x22b1)]['appType'][_0x16562e(0x1680)]()==='outbounddial'&&(_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x586)]=_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x1340)]?_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x1340)][_0x16562e(0xbe1)]('$')[0x0]:undefined,_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x1e7c)]=_0x1dcdcd[_0x16562e(0x22b1)][_0x16562e(0x2816)]?'CALLERID(all)='+_0x1dcdcd[_0x16562e(0x22b1)]['callerID']:undefined);_0x1dcdcd[_0x16562e(0x7b3)]=_0x351731,_0x1dcdcd[_0x16562e(0xda0)]=_0x44ce9e,_0x43fe2e[_0x16562e(0x22b6)](_0x16562e(0x1c60))?_0x5c8b0d[_0x16562e(0x22b1)][_0x16562e(0xbf7)]({'fields':'id,name','sort':_0x16562e(0x16b6),'nolimit':'true'})[_0x16562e(0x1d77)][_0x16562e(0x1cb0)](function(_0xb380be){const _0x9e04d2=_0x16562e;_0x1dcdcd[_0x9e04d2(0xfbf)]=_0xb380be[_0x9e04d2(0x2214)]||[];})['catch'](function(_0xa35c7b){const _0x53cb9e=_0x16562e;_0x297fbf[_0x53cb9e(0x218e)]({'title':_0xa35c7b[_0x53cb9e(0x291)]?_0x53cb9e(0xeb9)+_0xa35c7b[_0x53cb9e(0x291)]+_0x53cb9e(0x1657)+_0xa35c7b['statusText']:_0x53cb9e(0x12f9),'msg':_0xa35c7b[_0x53cb9e(0x25c)]?JSON[_0x53cb9e(0x2701)](_0xa35c7b[_0x53cb9e(0x25c)]):_0xa35c7b[_0x53cb9e(0x147f)]()});}):_0x5c8b0d[_0x16562e(0x22b1)][_0x16562e(0xbf7)]({'fields':_0x16562e(0x43c),'sort':_0x16562e(0x16b6),'nolimit':_0x16562e(0x44d)})[_0x16562e(0x1d77)][_0x16562e(0x1cb0)](function(_0x1f67ff){const _0x5c5bd4=_0x16562e;_0x1dcdcd[_0x5c5bd4(0xfbf)]=_0x1f67ff[_0x5c5bd4(0x2214)]||[];})[_0x16562e(0x1cb0)](function(){const _0xa4cb0e=_0x16562e;return _0x5c8b0d['userProfileSection'][_0xa4cb0e(0xbf7)]({'userProfileId':_0x1dcdcd[_0xa4cb0e(0xe76)][_0xa4cb0e(0x13c1)],'sectionId':0x3f0})['$promise'];})[_0x16562e(0x1cb0)](function(_0x4c22aa){const _0x5d2a89=_0x16562e,_0x42cdf9=_0x4c22aa&&_0x4c22aa[_0x5d2a89(0x2214)]?_0x4c22aa['rows'][0x0]:null;if(!_0x42cdf9){const _0x488780=[];let _0xf745e8=null;_0x1dcdcd[_0x5d2a89(0x22b1)]&&(_0xf745e8=_0x39641b()['find'](_0x1dcdcd['tags'],{'name':_0x1dcdcd[_0x5d2a89(0x22b1)][_0x5d2a89(0x22b1)]}));for(let _0x35fd12=0x0;_0x35fd12<_0x1dcdcd[_0x5d2a89(0xfbf)][_0x5d2a89(0xfd0)];_0x35fd12++){_0xf745e8&&_0x1dcdcd['tags'][_0x35fd12]['id']===_0xf745e8['id']&&(_0x1dcdcd['tags'][_0x35fd12][_0x5d2a89(0x15da)]=![],_0x488780[_0x5d2a89(0x2785)](_0x1dcdcd[_0x5d2a89(0xfbf)][_0x35fd12]));}_0x1dcdcd['tags']=_0x488780;}else{if(!_0x42cdf9[_0x5d2a89(0x12f4)])return _0x5c8b0d[_0x5d2a89(0x1198)]['get']({'sectionId':_0x42cdf9['id']})[_0x5d2a89(0x1d77)][_0x5d2a89(0x1cb0)](function(_0x13cf2b){const _0x1241d7=_0x5d2a89,_0x3800fd=_0x39641b()['map'](_0x13cf2b['rows'],function(_0xc874cc){const _0x4b55a6=a0_0x5cbd;return _0x39641b()['find'](_0x1dcdcd[_0x4b55a6(0xfbf)],{'id':_0xc874cc['resourceId']});});let _0x4e53d0=null;_0x1dcdcd[_0x1241d7(0x22b1)]&&(_0x4e53d0=_0x39641b()['find'](_0x1dcdcd['tags'],{'name':_0x1dcdcd[_0x1241d7(0x22b1)][_0x1241d7(0x22b1)]}));if(_0x4e53d0&&!_0x39641b()['some'](_0x3800fd,['id',_0x4e53d0['id']])){const _0x369f80=_0x39641b()[_0x1241d7(0x13b4)](_0x1dcdcd[_0x1241d7(0xfbf)],{'id':_0x4e53d0['id']});_0x369f80[_0x1241d7(0x15da)]=![],_0x3800fd[_0x1241d7(0x2785)](_0x369f80);}_0x1dcdcd['tags']=_0x3800fd;});}})[_0x16562e(0x1c4)](function(_0x344ff1){const _0x33f8ee=_0x16562e;_0x297fbf[_0x33f8ee(0x218e)]({'title':_0x344ff1[_0x33f8ee(0x291)]?_0x33f8ee(0xeb9)+_0x344ff1['status']+_0x33f8ee(0x1657)+_0x344ff1[_0x33f8ee(0xc22)]:'SYSTEM:GETtags','msg':_0x344ff1[_0x33f8ee(0x25c)]?JSON['stringify'](_0x344ff1[_0x33f8ee(0x25c)]):_0x344ff1['toString']()});});function _0x351731(){const _0x60a6c5=_0x16562e;_0x1dcdcd[_0x60a6c5(0x1a7c)]=[];const _0x571dfb=[];_0x1dcdcd[_0x60a6c5(0x22b1)][_0x60a6c5(0x66a)]&&_0x1dcdcd[_0x60a6c5(0x22b1)][_0x60a6c5(0x66a)]['toLowerCase']()===_0x60a6c5(0x895)&&_0x1dcdcd[_0x60a6c5(0x22b1)][_0x60a6c5(0x299b)]===_0x60a6c5(0x25f4)&&(_0x1dcdcd['tag']['phone']=_0x23f1c0[_0x60a6c5(0x325)]?(_0x1dcdcd[_0x60a6c5(0x22b1)]['prefix']||'')+'${EXTEN:'+_0x23f1c0['cutdigits']+'}':(_0x1dcdcd[_0x60a6c5(0x22b1)][_0x60a6c5(0x586)]||'')+_0x60a6c5(0xcdd),_0x23f1c0[_0x60a6c5(0xf8d)]!==_0x60a6c5(0x13b1)?_0x1dcdcd['tag']['options']['indexOf'](_0x60a6c5(0x106a))<0x0&&(_0x1dcdcd[_0x60a6c5(0x22b1)][_0x60a6c5(0x2224)]+=_0x60a6c5(0x106a)):_0x1dcdcd['tag'][_0x60a6c5(0x2224)]=_0x1dcdcd[_0x60a6c5(0x22b1)][_0x60a6c5(0x2224)][_0x60a6c5(0x288f)]('U(xcally-mixmonitor-context)',''));const _0x598d1b=_0x39641b()[_0x60a6c5(0x13b4)](_0x1dcdcd[_0x60a6c5(0xfbf)],{'name':_0x1dcdcd[_0x60a6c5(0x22b1)][_0x60a6c5(0x22b1)]});_0x598d1b&&(_0x1dcdcd[_0x60a6c5(0x22b1)][_0x60a6c5(0x1754)]=_0x598d1b['id']);if(_0x1dcdcd[_0x60a6c5(0x22b1)][_0x60a6c5(0x299b)]&&_0x1dcdcd[_0x60a6c5(0x22b1)][_0x60a6c5(0x299b)]==='custom'){}else switch((_0x1dcdcd['tag'][_0x60a6c5(0x22e1)]||_0x1dcdcd[_0x60a6c5(0x22b1)][_0x60a6c5(0x299b)])[_0x60a6c5(0x1680)]()){case _0x60a6c5(0x19d1):_0x1dcdcd[_0x60a6c5(0x22b1)][_0x60a6c5(0x28df)]=_0x1dcdcd[_0x60a6c5(0x22b1)][_0x60a6c5(0x16b6)]+'='+_0x1dcdcd[_0x60a6c5(0x22b1)][_0x60a6c5(0x327)];break;case _0x60a6c5(0x197c):break;default:_0x571dfb[0x0]=_0x1dcdcd[_0x60a6c5(0x22b1)][_0x60a6c5(0x22b1)],_0x1dcdcd['tag']['appdata']=_0x571dfb['join'](',');}_0x44ce9e(_0x1dcdcd[_0x60a6c5(0x22b1)]);}function _0x44ce9e(_0x258ed3){const _0x15c290=_0x16562e;_0xb2c0a5[_0x15c290(0x1426)](_0x258ed3);}}const _0x14d15c=_0x25728a;;const _0x19dbee=_0x5074a3['p']+_0x5537c6(0x516);;_0x59179c['$inject']=[_0x5537c6(0x173),_0x5537c6(0x1463),_0x5537c6(0x406),'$q',_0x5537c6(0x1ae),_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1774)];function _0x59179c(_0x497f2f,_0x26aed3,_0x536a6f,_0x2bdc4b,_0x30a63b,_0x32fe06,_0x1f8c6b,_0x7480bf,_0x108745,_0x30cab9,_0x5a7cd3){const _0x3205ad=_0x5537c6,_0x26a2c6=this;_0x26a2c6[_0x3205ad(0xe76)]=_0x5a7cd3[_0x3205ad(0x21e8)](),_0x26a2c6['chatWebsite']={},_0x26a2c6['chatWebsiteChatCannedAnswers']={'count':0x0,'rows':[]},_0x26a2c6[_0x3205ad(0x1524)]=[],_0x26a2c6[_0x3205ad(0x1b1a)],_0x26a2c6[_0x3205ad(0xae2)]={'fields':_0x3205ad(0x1d68),'limit':0xa,'page':0x1},_0x26a2c6[_0x3205ad(0x1a8e)]=_0x4c783a,_0x26a2c6['deleteConfirm']=_0x48ca3b,_0x26a2c6['success']=_0x4e5347,_0x26a2c6['getChatWebsiteChatCannedAnswers']=_0x3c156d,_0x26a2c6[_0x3205ad(0x27d3)]=_0x3e3d53,_0x26a2c6[_0x3205ad(0x1f3c)]=_0x372dee,_0x26a2c6[_0x3205ad(0x1b06)]=_0x9aa2bd,_0x26a2c6['deleteSelectedChatWebsiteChatCannedAnswers']=_0x20411a;function _0x4c783a(_0x5010e8,_0x472f3c){const _0x38abc6=_0x3205ad;_0x26a2c6[_0x38abc6(0x226c)]=_0x5010e8,_0x26a2c6[_0x38abc6(0x1b1a)]=typeof _0x472f3c!==_0x38abc6(0x16b5)?_0x472f3c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x26a2c6[_0x38abc6(0xae2)][_0x38abc6(0x67c)]=_0x26a2c6[_0x38abc6(0x226c)]['id'],_0x26a2c6[_0x38abc6(0xae2)]['id']=_0x26a2c6[_0x38abc6(0x226c)]['id'],_0x3c156d();}function _0x48ca3b(_0x5c7f25,_0x1b231d){const _0x5a1bb7=_0x3205ad,_0x151ee3=_0x1f8c6b['confirm']()[_0x5a1bb7(0x1386)](_0x5a1bb7(0x17f8))['htmlContent'](_0x5a1bb7(0x204d)+(_0x5c7f25[_0x5a1bb7(0x16b6)]||_0x5c7f25['id']&&_0x39641b()['upperFirst'](_0x5a1bb7(0x21b7))+_0x5c7f25['id']||_0x5a1bb7(0x2190))+_0x5a1bb7(0x1200)+_0x5a1bb7(0x1b6))[_0x5a1bb7(0x15ad)](_0x5a1bb7(0x1110))[_0x5a1bb7(0x728)](_0x1b231d)['ok']('OK')[_0x5a1bb7(0x696)](_0x5a1bb7(0x24ba));_0x1f8c6b[_0x5a1bb7(0xe27)](_0x151ee3)[_0x5a1bb7(0x1cb0)](function(){_0x9aa2bd(_0x5c7f25);},function(){const _0x26601b=_0x5a1bb7;console[_0x26601b(0x1b4f)](_0x26601b(0x24ba));});}function _0x4e5347(_0xb82ffe){const _0x3929ef=_0x3205ad;_0x26a2c6[_0x3929ef(0x8a6)]=_0xb82ffe||{'count':0x0,'rows':[]};}function _0x3c156d(){const _0x2ffbb0=_0x3205ad;_0x26a2c6['query'][_0x2ffbb0(0x184b)]=(_0x26a2c6[_0x2ffbb0(0xae2)][_0x2ffbb0(0x1c7b)]-0x1)*_0x26a2c6[_0x2ffbb0(0xae2)][_0x2ffbb0(0x236)],_0x26a2c6[_0x2ffbb0(0x2061)]=_0x30cab9[_0x2ffbb0(0x226c)][_0x2ffbb0(0x1ec5)](_0x26a2c6[_0x2ffbb0(0xae2)],_0x4e5347)[_0x2ffbb0(0x1d77)];}function _0x3e3d53(_0x2c699d,_0x355c90){const _0x29555c=_0x3205ad;_0x1f8c6b[_0x29555c(0xe27)]({'controller':_0x29555c(0x1b7b),'controllerAs':'vm','templateUrl':_0x19dbee,'parent':angular['element'](_0x7480bf[_0x29555c(0x1ed9)]),'targetEvent':_0x2c699d,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x26a2c6['chatWebsite'],'chatCannedAnswer':_0x355c90,'chatCannedAnswers':_0x26a2c6['chatWebsiteChatCannedAnswers'][_0x29555c(0x2214)],'license':null,'setting':null,'crudPermissions':_0x26a2c6[_0x29555c(0x1b1a)]}});}function _0x9aa2bd(_0x2ef028){const _0x167296=_0x3205ad;_0x30cab9[_0x167296(0x1c25)][_0x167296(0x111d)]({'id':_0x2ef028['id']})[_0x167296(0x1d77)]['then'](function(){const _0x15071e=_0x167296;_0x39641b()[_0x15071e(0x152a)](_0x26a2c6[_0x15071e(0x8a6)]['rows'],{'id':_0x2ef028['id']}),_0x26a2c6[_0x15071e(0x8a6)]['count']-=0x1,!_0x26a2c6[_0x15071e(0x8a6)][_0x15071e(0x2214)][_0x15071e(0xfd0)]&&_0x3c156d(),_0x108745[_0x15071e(0x829)]({'title':_0x15071e(0x164c),'msg':_0x2ef028[_0x15071e(0x16b6)]?_0x2ef028[_0x15071e(0x16b6)]+_0x15071e(0x3f5):''});})[_0x167296(0x1c4)](function(_0x193ddb){const _0x24a7b3=_0x167296;if(_0x193ddb[_0x24a7b3(0x25c)]&&_0x193ddb[_0x24a7b3(0x25c)][_0x24a7b3(0x1a7c)]&&_0x193ddb[_0x24a7b3(0x25c)][_0x24a7b3(0x1a7c)][_0x24a7b3(0xfd0)]){_0x26a2c6[_0x24a7b3(0x1a7c)]=_0x193ddb['data'][_0x24a7b3(0x1a7c)]||[{'message':_0x193ddb[_0x24a7b3(0x147f)](),'type':_0x24a7b3(0x5d5)}];for(let _0xa27555=0x0;_0xa27555<_0x193ddb[_0x24a7b3(0x25c)][_0x24a7b3(0x1a7c)]['length'];_0xa27555++){_0x108745[_0x24a7b3(0x218e)]({'title':_0x193ddb[_0x24a7b3(0x25c)][_0x24a7b3(0x1a7c)][_0xa27555][_0x24a7b3(0x66a)],'msg':_0x193ddb[_0x24a7b3(0x25c)][_0x24a7b3(0x1a7c)][_0xa27555][_0x24a7b3(0x155e)]});}}else _0x108745[_0x24a7b3(0x218e)]({'title':_0x193ddb[_0x24a7b3(0x291)]?_0x24a7b3(0xeb9)+_0x193ddb[_0x24a7b3(0x291)]+_0x24a7b3(0x1657)+_0x193ddb[_0x24a7b3(0xc22)]:_0x24a7b3(0x5d5),'msg':_0x193ddb[_0x24a7b3(0x25c)]?JSON['stringify'](_0x193ddb['data'][_0x24a7b3(0x155e)]):_0x193ddb['message']||_0x193ddb[_0x24a7b3(0x147f)]()});});}function _0x372dee(){const _0x1eaad5=_0x3205ad,_0x462c6d=angular[_0x1eaad5(0x17fe)](_0x26a2c6[_0x1eaad5(0x1524)]);return _0x26a2c6['selectedChatWebsiteChatCannedAnswers']=[],_0x462c6d;}function _0x20411a(_0xf528c4){const _0x5c132=_0x3205ad,_0x5b39b0=_0x1f8c6b[_0x5c132(0x1551)]()[_0x5c132(0x1386)](_0x5c132(0xdee))[_0x5c132(0x49e)](_0x5c132(0x204d)+_0x26a2c6[_0x5c132(0x1524)][_0x5c132(0xfd0)]+_0x5c132(0x1d6c)+_0x5c132(0x1b6))[_0x5c132(0x15ad)]('delete\x20chatCannedAnswers')[_0x5c132(0x728)](_0xf528c4)['ok']('OK')['cancel'](_0x5c132(0x24ba));_0x1f8c6b[_0x5c132(0xe27)](_0x5b39b0)[_0x5c132(0x1cb0)](function(){const _0x379ae3=_0x5c132;_0x26a2c6[_0x379ae3(0x1524)][_0x379ae3(0xf90)](function(_0x194c98){_0x9aa2bd(_0x194c98);}),_0x26a2c6['selectedChatWebsiteChatCannedAnswers']=[];});}let _0x459ccc=!![],_0x4c6169=0x1;_0x26aed3['$watch'](_0x3205ad(0xeb6),function(_0x2b6228,_0x2a44f3){const _0x498023=_0x3205ad;_0x459ccc?_0x32fe06(function(){_0x459ccc=![];}):(!_0x2a44f3&&(_0x4c6169=_0x26a2c6[_0x498023(0xae2)][_0x498023(0x1c7b)]),_0x2b6228!==_0x2a44f3&&(_0x26a2c6[_0x498023(0xae2)]['page']=0x1),!_0x2b6228&&(_0x26a2c6[_0x498023(0xae2)][_0x498023(0x1c7b)]=_0x4c6169),_0x3c156d());});}const _0x16d587=_0x59179c;;_0x24441d['$inject']=['$scope',_0x5537c6(0x406),'$location',_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0xa51),'chatCannedAnswer',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),'crudPermissions'];function _0x24441d(_0x18224b,_0x239fe3,_0xbedd0e,_0x201835,_0xd3e224,_0x19a203,_0x33cf22,_0xd1bcf6,_0x3734ec,_0x5140e0,_0x5c631e,_0x3782b3,_0x575bcf,_0x28d7fa){const _0x4bb12e=_0x5537c6,_0x428195=this;_0x428195['currentUser']=_0x5c631e['getCurrentUser'](),_0x428195[_0x4bb12e(0x1a7c)]=[],_0x428195[_0x4bb12e(0x9ca)]=_0x575bcf,_0x428195[_0x4bb12e(0x8a5)]=_0x3782b3,_0x428195['crudPermissions']=_0x28d7fa,_0x428195[_0x4bb12e(0xf4c)]={},_0x428195[_0x4bb12e(0x1b0c)]=_0x428195[_0x4bb12e(0x9ca)]&&_0x428195[_0x4bb12e(0x9ca)][_0x4bb12e(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x428195[_0x4bb12e(0x1386)]=_0x4bb12e(0x1109),_0x428195[_0x4bb12e(0x2190)]=angular[_0x4bb12e(0x17fe)](_0x3734ec),_0x428195['chatCannedAnswers']=_0xd1bcf6,_0x428195['newChatCannedAnswer']=![];!_0x428195['chatCannedAnswer']&&(_0x428195['chatCannedAnswer']={},_0x428195[_0x4bb12e(0x1386)]=_0x4bb12e(0x16e5),_0x428195[_0x4bb12e(0x1f7f)]=!![]);_0x239fe3['params']['id']&&(_0x428195['chatCannedAnswer'][_0x4bb12e(0x67c)]=_0x239fe3[_0x4bb12e(0x1dfe)]['id']);_0x428195[_0x4bb12e(0x13d2)]=_0x4f9451,_0x428195[_0x4bb12e(0x4f9)]=_0xe33e04,_0x428195[_0x4bb12e(0x13e0)]=_0x1c9f7,_0x428195[_0x4bb12e(0x2c4)]=_0x3ca9ba,_0x428195[_0x4bb12e(0xda0)]=_0x2329fb;function _0x4f9451(){const _0x4d6971=_0x4bb12e;_0x428195[_0x4d6971(0x1a7c)]=[],_0x5140e0['cannedAnswer'][_0x4d6971(0x1c3f)](_0x428195[_0x4d6971(0x2190)])[_0x4d6971(0x1d77)][_0x4d6971(0x1cb0)](function(_0x3769d6){const _0x31007d=_0x4d6971;_0x428195['chatCannedAnswers'][_0x31007d(0xf63)](_0x3769d6[_0x31007d(0x19b2)]()),_0x33cf22[_0x31007d(0x829)]({'title':_0x31007d(0xf84),'msg':_0x428195['chatCannedAnswer'][_0x31007d(0x16b6)]?_0x428195['chatCannedAnswer'][_0x31007d(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x2329fb(_0x3769d6);})[_0x4d6971(0x1c4)](function(_0x36d7b0){const _0x34cf1a=_0x4d6971;if(_0x36d7b0['data']&&_0x36d7b0['data'][_0x34cf1a(0x1a7c)]&&_0x36d7b0[_0x34cf1a(0x25c)][_0x34cf1a(0x1a7c)]['length']){_0x428195[_0x34cf1a(0x1a7c)]=_0x36d7b0[_0x34cf1a(0x25c)][_0x34cf1a(0x1a7c)]||[{'message':_0x36d7b0['toString'](),'type':_0x34cf1a(0x224)}];for(let _0x39db2c=0x0;_0x39db2c<_0x36d7b0[_0x34cf1a(0x25c)][_0x34cf1a(0x1a7c)][_0x34cf1a(0xfd0)];_0x39db2c+=0x1){_0x33cf22[_0x34cf1a(0x218e)]({'title':_0x36d7b0[_0x34cf1a(0x25c)][_0x34cf1a(0x1a7c)][_0x39db2c][_0x34cf1a(0x66a)],'msg':_0x36d7b0[_0x34cf1a(0x25c)]['errors'][_0x39db2c][_0x34cf1a(0x155e)]});}}else _0x33cf22[_0x34cf1a(0x218e)]({'title':_0x36d7b0['status']?_0x34cf1a(0xeb9)+_0x36d7b0[_0x34cf1a(0x291)]+_0x34cf1a(0x1657)+_0x36d7b0[_0x34cf1a(0xc22)]:_0x34cf1a(0x224),'msg':_0x36d7b0['data']?JSON[_0x34cf1a(0x2701)](_0x36d7b0[_0x34cf1a(0x25c)][_0x34cf1a(0x155e)]):_0x36d7b0[_0x34cf1a(0x147f)]()});});}function _0xe33e04(){const _0x16cecd=_0x4bb12e;_0x428195[_0x16cecd(0x1a7c)]=[],_0x5140e0[_0x16cecd(0x1c25)]['update']({'id':_0x428195[_0x16cecd(0x2190)]['id']},_0x428195['chatCannedAnswer'])[_0x16cecd(0x1d77)][_0x16cecd(0x1cb0)](function(_0x8929a2){const _0x51d9f1=_0x16cecd,_0x2f1321=_0x39641b()[_0x51d9f1(0x13b4)](_0x428195['chatCannedAnswers'],{'id':_0x8929a2['id']});_0x2f1321&&_0x39641b()[_0x51d9f1(0x9c1)](_0x2f1321,_0x39641b()[_0x51d9f1(0x169b)](_0x8929a2[_0x51d9f1(0x19b2)](),_0x39641b()[_0x51d9f1(0x1be5)](_0x2f1321))),_0x33cf22['success']({'title':_0x51d9f1(0x374),'msg':_0x428195[_0x51d9f1(0x2190)]['name']?_0x428195[_0x51d9f1(0x2190)][_0x51d9f1(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x2329fb(_0x8929a2);})['catch'](function(_0x42f387){const _0x5011b9=_0x16cecd;if(_0x42f387[_0x5011b9(0x25c)]&&_0x42f387[_0x5011b9(0x25c)][_0x5011b9(0x1a7c)]&&_0x42f387[_0x5011b9(0x25c)][_0x5011b9(0x1a7c)][_0x5011b9(0xfd0)]){_0x428195[_0x5011b9(0x1a7c)]=_0x42f387['data'][_0x5011b9(0x1a7c)]||[{'message':_0x42f387['toString'](),'type':_0x5011b9(0x922)}];for(let _0x936c92=0x0;_0x936c92<_0x42f387[_0x5011b9(0x25c)][_0x5011b9(0x1a7c)]['length'];_0x936c92++){_0x33cf22['error']({'title':_0x42f387[_0x5011b9(0x25c)]['errors'][_0x936c92][_0x5011b9(0x66a)],'msg':_0x42f387['data'][_0x5011b9(0x1a7c)][_0x936c92][_0x5011b9(0x155e)]});}}else _0x33cf22['error']({'title':_0x42f387['status']?_0x5011b9(0xeb9)+_0x42f387[_0x5011b9(0x291)]+'\x20-\x20'+_0x42f387[_0x5011b9(0xc22)]:_0x5011b9(0x922),'msg':_0x42f387[_0x5011b9(0x25c)]?JSON[_0x5011b9(0x2701)](_0x42f387[_0x5011b9(0x25c)][_0x5011b9(0x155e)]):_0x42f387[_0x5011b9(0x147f)]()});});}function _0x1c9f7(_0x354aa1){const _0x31d0c4=_0x4bb12e;_0x428195[_0x31d0c4(0x1a7c)]=[];const _0x3edbcc=_0x201835['confirm']()['title'](_0x31d0c4(0x1a2e))[_0x31d0c4(0x862)](_0x31d0c4(0x112c))[_0x31d0c4(0x15ad)](_0x31d0c4(0x1214))['ok'](_0x31d0c4(0x2594))[_0x31d0c4(0x696)](_0x31d0c4(0xde1))[_0x31d0c4(0x728)](_0x354aa1);_0x201835['show'](_0x3edbcc)[_0x31d0c4(0x1cb0)](function(){const _0x25ec9d=_0x31d0c4;_0x5140e0[_0x25ec9d(0x1c25)][_0x25ec9d(0x111d)]({'id':_0x428195[_0x25ec9d(0x2190)]['id']})[_0x25ec9d(0x1d77)][_0x25ec9d(0x1cb0)](function(){const _0x59b47a=_0x25ec9d;_0x39641b()['remove'](_0x428195[_0x59b47a(0xa51)],{'id':_0x428195[_0x59b47a(0x2190)]['id']}),_0x33cf22['success']({'title':_0x59b47a(0xbba),'msg':(_0x428195['chatCannedAnswer'][_0x59b47a(0x16b6)]||'chatCannedAnswer')+_0x59b47a(0x3f5)}),_0x2329fb(_0x428195[_0x59b47a(0x2190)]);})[_0x25ec9d(0x1c4)](function(_0x3f1576){const _0x2e27e2=_0x25ec9d;if(_0x3f1576[_0x2e27e2(0x25c)]&&_0x3f1576['data'][_0x2e27e2(0x1a7c)]&&_0x3f1576[_0x2e27e2(0x25c)][_0x2e27e2(0x1a7c)]['length']){_0x428195[_0x2e27e2(0x1a7c)]=_0x3f1576[_0x2e27e2(0x25c)]['errors']||[{'message':_0x3f1576[_0x2e27e2(0x147f)](),'type':_0x2e27e2(0x1399)}];for(let _0x28fa16=0x0;_0x28fa16<_0x3f1576['data']['errors'][_0x2e27e2(0xfd0)];_0x28fa16++){_0x33cf22[_0x2e27e2(0x218e)]({'title':_0x3f1576[_0x2e27e2(0x25c)][_0x2e27e2(0x1a7c)][_0x28fa16][_0x2e27e2(0x66a)],'msg':_0x3f1576[_0x2e27e2(0x25c)]['errors'][_0x28fa16][_0x2e27e2(0x155e)]});}}else _0x33cf22[_0x2e27e2(0x218e)]({'title':_0x3f1576[_0x2e27e2(0x291)]?'API:'+_0x3f1576[_0x2e27e2(0x291)]+_0x2e27e2(0x1657)+_0x3f1576[_0x2e27e2(0xc22)]:_0x2e27e2(0x1399),'msg':_0x3f1576[_0x2e27e2(0x25c)]?JSON[_0x2e27e2(0x2701)](_0x3f1576[_0x2e27e2(0x25c)]['message']):_0x3f1576[_0x2e27e2(0x155e)]||_0x3f1576['toString']()});});},function(){});}function _0x3ca9ba(_0x1257d3){return _0x1257d3===null?undefined:new Date(_0x1257d3);}function _0x2329fb(_0x57dd89){_0x201835['hide'](_0x57dd89);}}const _0x2a8571=_0x24441d;;_0xb6cf24[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),'$state','$mdSidenav',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774)];function _0xb6cf24(_0x2cb579,_0x2fcde3,_0x125404,_0x1c9aeb,_0x37c140,_0x20ade6,_0x3f1e8a,_0x204863,_0x46ec53,_0x1a8e76,_0x36f53f){const _0x38f38a=_0x5537c6,_0x17aa3e=this;_0x17aa3e['currentUser']=_0x36f53f['getCurrentUser'](),_0x17aa3e[_0x38f38a(0xdf2)]={'count':0x0,'rows':[]},_0x17aa3e[_0x38f38a(0x122a)]=[],_0x17aa3e[_0x38f38a(0x1b1a)],_0x17aa3e[_0x38f38a(0x2376)]={'first':_0x38f38a(0x29a0),'second':_0x38f38a(0x26db),'third':_0x38f38a(0xfbe)},_0x17aa3e[_0x38f38a(0xae2)]={'fields':_0x38f38a(0x1f4b),'sort':_0x38f38a(0x282),'limit':0xa,'page':0x1},_0x17aa3e['init']=_0x42ea4b,_0x17aa3e['deleteConfirm']=_0x5278dd,_0x17aa3e[_0x38f38a(0x829)]=_0x1135b0,_0x17aa3e[_0x38f38a(0x640)]=_0x3d1cb5,_0x17aa3e[_0x38f38a(0x932)]=_0x211ad4,_0x17aa3e[_0x38f38a(0x20b3)]=_0x2eaf03,_0x17aa3e['exportSelectedDispositions']=_0x42c4bb,_0x17aa3e['deleteSelectedDispositions']=_0x49d976,_0x17aa3e[_0x38f38a(0x25ec)]=_0x4582cf,_0x17aa3e['selectAllDispositions']=_0x5119cf;function _0x42ea4b(_0x43b188,_0x1511c4){const _0x23b8b6=_0x38f38a;_0x17aa3e[_0x23b8b6(0x226c)]=_0x43b188||{},_0x17aa3e[_0x23b8b6(0x1b1a)]=typeof _0x1511c4!==_0x23b8b6(0x16b5)?_0x1511c4:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x17aa3e[_0x23b8b6(0xae2)][_0x23b8b6(0x67c)]=_0x17aa3e[_0x23b8b6(0x226c)]['id'],_0x17aa3e[_0x23b8b6(0xae2)]['id']=_0x17aa3e[_0x23b8b6(0x226c)]['id'],_0x3d1cb5();}function _0x211ad4(_0x11682a,_0x154083){const _0x4d68f7=_0x38f38a;_0x37c140[_0x4d68f7(0xe27)]({'controller':_0x4d68f7(0x201d),'controllerAs':'vm','templateUrl':_0x3d7049,'parent':angular[_0x4d68f7(0x1853)](_0x20ade6[_0x4d68f7(0x1ed9)]),'targetEvent':_0x11682a,'clickOutsideToClose':!![],'locals':{'disposition':_0x154083,'model':{'id':_0x17aa3e['chatWebsite']['id'],'field':_0x4d68f7(0x67c),'route':_0x4d68f7(0x226c)},'license':null,'setting':null,'crudPermissions':_0x17aa3e[_0x4d68f7(0x1b1a)]}})[_0x4d68f7(0x1cb0)](function(_0x1977d7){if(_0x1977d7)_0x3d1cb5();});}function _0x5278dd(_0x5dbfdf,_0x219270){const _0x506236=_0x38f38a,_0x4356d4=_0x39641b()[_0x506236(0x727)](_0x17aa3e['dispositions'][_0x506236(0x2214)],['ParentId',_0x5dbfdf['id']]),_0x15889a=_0x37c140['confirm']()[_0x506236(0x1386)](_0x204863['instant']('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x506236(0x862)](_0x204863['instant'](_0x506236(0x250b)+(_0x4356d4?'DISPOSITION_DELETE_MESSAGE_CHILDREN':'DISPOSITION_DELETE_MESSAGE'),{'name':_0x5dbfdf[_0x506236(0x16b6)]}))[_0x506236(0x15ad)](_0x506236(0x35d))['targetEvent'](_0x219270)['ok']('OK')[_0x506236(0x696)](_0x204863[_0x506236(0x25cc)](_0x506236(0x2768)));_0x37c140[_0x506236(0xe27)](_0x15889a)[_0x506236(0x1cb0)](function(){_0x2eaf03(_0x5dbfdf);});}function _0x1135b0(_0x4017ab){_0x17aa3e['dispositions']=_0x4017ab||{'count':0x0,'rows':[]};}function _0x3d1cb5(){const _0x1500f0=_0x38f38a;_0x17aa3e[_0x1500f0(0xae2)]['offset']=(_0x17aa3e[_0x1500f0(0xae2)][_0x1500f0(0x1c7b)]-0x1)*_0x17aa3e['query']['limit'],_0x17aa3e[_0x1500f0(0x2061)]=_0x46ec53[_0x1500f0(0x226c)][_0x1500f0(0x640)](_0x17aa3e['query'],_0x1135b0)[_0x1500f0(0x1d77)];}function _0x2eaf03(_0x2ee6c4){const _0x4e5633=_0x38f38a;_0x46ec53[_0x4e5633(0x1746)][_0x4e5633(0x111d)]({'id':_0x2ee6c4['id']})[_0x4e5633(0x1d77)][_0x4e5633(0x1cb0)](function(){const _0x3a6d15=_0x4e5633;_0x3d1cb5(),_0x1a8e76[_0x3a6d15(0x829)]({'title':_0x204863[_0x3a6d15(0x25cc)](_0x3a6d15(0x1f96))});})[_0x4e5633(0x1c4)](function(_0x796300){const _0x3a8c8a=_0x4e5633;if(_0x796300[_0x3a8c8a(0x25c)]&&_0x796300['data'][_0x3a8c8a(0x1a7c)]&&_0x796300[_0x3a8c8a(0x25c)]['errors'][_0x3a8c8a(0xfd0)]){_0x17aa3e[_0x3a8c8a(0x1a7c)]=_0x796300[_0x3a8c8a(0x25c)]['errors']||[{'message':_0x796300[_0x3a8c8a(0x147f)](),'type':_0x3a8c8a(0x2618)}];for(let _0x46da6d=0x0;_0x46da6d<_0x796300[_0x3a8c8a(0x25c)]['errors'][_0x3a8c8a(0xfd0)];_0x46da6d++){_0x1a8e76[_0x3a8c8a(0x218e)]({'title':_0x796300[_0x3a8c8a(0x25c)][_0x3a8c8a(0x1a7c)][_0x46da6d][_0x3a8c8a(0x66a)],'msg':_0x796300[_0x3a8c8a(0x25c)][_0x3a8c8a(0x1a7c)][_0x46da6d][_0x3a8c8a(0x155e)]});}}else _0x1a8e76[_0x3a8c8a(0x218e)]({'title':_0x796300[_0x3a8c8a(0x291)]?_0x3a8c8a(0xeb9)+_0x796300[_0x3a8c8a(0x291)]+_0x3a8c8a(0x1657)+_0x796300[_0x3a8c8a(0xc22)]:_0x3a8c8a(0x2618),'msg':_0x796300[_0x3a8c8a(0x25c)]?JSON[_0x3a8c8a(0x2701)](_0x796300['data'][_0x3a8c8a(0x155e)]):_0x796300[_0x3a8c8a(0x155e)]||_0x796300[_0x3a8c8a(0x147f)]()});});}function _0x42c4bb(){const _0x2153ca=_0x38f38a,_0x2ce790=angular[_0x2153ca(0x17fe)](_0x17aa3e[_0x2153ca(0x122a)]);return _0x17aa3e['selectedDispositions']=[],_0x2ce790;}function _0x49d976(_0xd47dae){const _0x4ef021=_0x38f38a,_0x33a832=_0x37c140[_0x4ef021(0x1551)]()[_0x4ef021(0x1386)](_0x204863['instant'](_0x4ef021(0x969)))[_0x4ef021(0x862)](_0x204863[_0x4ef021(0x25cc)](_0x4ef021(0xb3c),{'total':_0x17aa3e[_0x4ef021(0x122a)]['length']}))[_0x4ef021(0x15ad)](_0x4ef021(0x1e1c))[_0x4ef021(0x728)](_0xd47dae)['ok']('OK')['cancel'](_0x204863[_0x4ef021(0x25cc)](_0x4ef021(0x2768)));_0x37c140[_0x4ef021(0xe27)](_0x33a832)[_0x4ef021(0x1cb0)](function(){const _0x4a09cb=_0x4ef021;_0x17aa3e[_0x4a09cb(0x122a)]['forEach'](function(_0xe9f2e){_0x2eaf03(_0xe9f2e);}),_0x17aa3e[_0x4a09cb(0x122a)]=[];});}function _0x4582cf(){_0x17aa3e['selectedDispositions']=[];}function _0x5119cf(){const _0x47a48e=_0x38f38a;_0x17aa3e[_0x47a48e(0x122a)]=_0x17aa3e['dispositions'][_0x47a48e(0x2214)];}let _0x3abdaa=!![],_0x5bfb0d=0x1;_0x2cb579['$watch'](_0x38f38a(0xeb6),function(_0x293276,_0xf2a55b){const _0x4989c4=_0x38f38a;_0x3abdaa?_0x3f1e8a(function(){_0x3abdaa=![];}):(!_0xf2a55b&&(_0x5bfb0d=_0x17aa3e['query'][_0x4989c4(0x1c7b)]),_0x293276!==_0xf2a55b&&(_0x17aa3e[_0x4989c4(0xae2)][_0x4989c4(0x1c7b)]=0x1),!_0x293276&&(_0x17aa3e[_0x4989c4(0xae2)]['page']=_0x5bfb0d),_0x3d1cb5());});}const _0x52614b=_0xb6cf24;;_0x42da2a[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x142b)];function _0x42da2a(_0x25d347,_0x2b8468,_0x2346f1){const _0x13fafc=_0x5537c6,_0xa05dd4=this;_0xa05dd4[_0x13fafc(0x226c)]={},_0xa05dd4[_0x13fafc(0x1cf2)]={},_0xa05dd4[_0x13fafc(0x22a9)]=[{'type':_0x13fafc(0x10f8),'name':_0x13fafc(0x20c7),'icon':_0x13fafc(0x1c51)},{'type':_0x13fafc(0x409),'name':_0x13fafc(0x1f6b),'icon':_0x13fafc(0x7c7)},{'type':_0x13fafc(0x169c),'name':_0x13fafc(0x847),'icon':'icon-keyboard'},{'type':_0x13fafc(0x2424),'name':'Textarea','icon':_0x13fafc(0x276)},{'type':_0x13fafc(0xba0),'name':_0x13fafc(0x1c72),'icon':_0x13fafc(0x2351)},{'type':_0x13fafc(0x12ce),'name':'Checkboxes','icon':_0x13fafc(0x2883)},{'type':_0x13fafc(0x1d4f),'name':_0x13fafc(0x1af1),'icon':'icon-checkbox-marked-outline'}],_0xa05dd4[_0x13fafc(0x1a8e)]=_0x5d0f50,_0xa05dd4['up']=_0x16158f,_0xa05dd4[_0x13fafc(0x1fcf)]=_0x1dd535,_0xa05dd4['add']=_0xd22210,_0xa05dd4[_0x13fafc(0x152a)]=_0x487e97;function _0x5d0f50(_0xb4c48b){const _0x44c05c=_0x13fafc;_0xa05dd4[_0x44c05c(0x355)]=[],_0xa05dd4[_0x44c05c(0x2242)]=[],_0xa05dd4[_0x44c05c(0x1f8c)]=['id',_0x44c05c(0x24cb),_0x44c05c(0x27ba),_0x44c05c(0x20a6),_0x44c05c(0x27ac),_0x44c05c(0x1d77),_0x44c05c(0x248e)],_0xa05dd4[_0x44c05c(0x226c)]=_0xb4c48b,_0x39641b()[_0x44c05c(0xce9)](_0xa05dd4[_0x44c05c(0x226c)][_0x44c05c(0x1cf2)])&&(_0xa05dd4[_0x44c05c(0x226c)][_0x44c05c(0x1cf2)]={'items':[],'fromKey':null}),_0x2346f1[_0x44c05c(0x22f2)][_0x44c05c(0x178f)]({'id':_0xa05dd4[_0x44c05c(0x226c)][_0x44c05c(0x20a6)]})['$promise']['then'](function(_0x209100){const _0x51d3b6=_0x44c05c;for(let _0x35ae93=0x0;_0x35ae93<_0x209100[_0x51d3b6(0x2214)][_0x51d3b6(0xfd0)];_0x35ae93++){_0xa05dd4['customFields'][_0x51d3b6(0x2785)]({'key':_0x51d3b6(0x1e4b)+_0x209100[_0x51d3b6(0x2214)][_0x35ae93]['id'],'value':_0x209100['rows'][_0x35ae93][_0x51d3b6(0xfb1)]});}return _0x2346f1[_0x51d3b6(0xbe7)]['describe']()[_0x51d3b6(0x1d77)];})['then'](function(_0x1df49d){const _0x3dfc6c=_0x44c05c,_0x4702e2=_0x39641b()[_0x3dfc6c(0x1be5)](_0x1df49d);for(let _0x3a2672=0x0;_0x3a2672<_0x4702e2[_0x3dfc6c(0xfd0)];_0x3a2672++){!_0x39641b()[_0x3dfc6c(0x250a)](_0xa05dd4[_0x3dfc6c(0x1f8c)],_0x4702e2[_0x3a2672])&&!_0x39641b()[_0x3dfc6c(0x1f2c)](_0x4702e2[_0x3a2672],_0x3dfc6c(0x1e4b))&&_0xa05dd4[_0x3dfc6c(0x355)]['unshift']({'key':_0x4702e2[_0x3a2672],'value':_0x4702e2[_0x3a2672]});}return _0x2346f1['variable'][_0x3dfc6c(0xbf7)]()[_0x3dfc6c(0x1d77)];})[_0x44c05c(0x1cb0)](function(_0x198950){const _0x1fd6a3=_0x44c05c;_0xa05dd4[_0x1fd6a3(0x9a9)]=_0x198950[_0x1fd6a3(0x2214)];})['catch'](function(_0x36d9e5){console['error'](_0x36d9e5);});}function _0x16158f(_0x233b1f,_0x4c8144){const _0x554545=_0x13fafc;if(_0x4c8144!==0x0){const _0x3a55d4=_0xa05dd4['chatWebsite']['offlineForm'][_0x554545(0x122f)][_0x4c8144-0x1];_0xa05dd4[_0x554545(0x226c)][_0x554545(0x1cf2)]['items'][_0x4c8144]=_0x3a55d4,_0xa05dd4[_0x554545(0x226c)][_0x554545(0x1cf2)][_0x554545(0x122f)][_0x4c8144-0x1]=angular['copy'](_0x233b1f);if(_0xa05dd4[_0x554545(0x226c)]['offlineForm'][_0x554545(0x2956)]===_0x4c8144)_0xa05dd4[_0x554545(0x226c)][_0x554545(0x1cf2)]['fromKey']--;else _0xa05dd4[_0x554545(0x226c)]['offlineForm'][_0x554545(0x2956)]===_0x4c8144-0x1&&_0xa05dd4[_0x554545(0x226c)][_0x554545(0x1cf2)][_0x554545(0x2956)]++;}}function _0x1dd535(_0x54c090,_0xd51982){const _0x8593c1=_0x13fafc;if(_0xd51982!==_0xa05dd4[_0x8593c1(0x226c)][_0x8593c1(0x1cf2)][_0x8593c1(0x122f)][_0x8593c1(0xfd0)]-0x1){const _0x15d9a6=_0xa05dd4[_0x8593c1(0x226c)][_0x8593c1(0x1cf2)][_0x8593c1(0x122f)][_0xd51982+0x1];_0xa05dd4[_0x8593c1(0x226c)][_0x8593c1(0x1cf2)]['items'][_0xd51982]=_0x15d9a6,_0xa05dd4[_0x8593c1(0x226c)][_0x8593c1(0x1cf2)]['items'][_0xd51982+0x1]=angular[_0x8593c1(0x17fe)](_0x54c090);if(_0xa05dd4[_0x8593c1(0x226c)]['offlineForm'][_0x8593c1(0x2956)]===_0xd51982)_0xa05dd4[_0x8593c1(0x226c)][_0x8593c1(0x1cf2)][_0x8593c1(0x2956)]++;else _0xa05dd4['chatWebsite'][_0x8593c1(0x1cf2)][_0x8593c1(0x2956)]===_0xd51982+0x1&&_0xa05dd4[_0x8593c1(0x226c)][_0x8593c1(0x1cf2)][_0x8593c1(0x2956)]--;}}function _0xd22210(_0x229c3b){const _0x16e030=_0x13fafc;_0xa05dd4[_0x16e030(0x226c)]['offlineForm'][_0x16e030(0x122f)][_0x16e030(0x2785)]({'type':_0x229c3b,'cmField':null,'variable':null});}function _0x487e97(_0x5639c3){const _0x2dbf17=_0x13fafc,_0x357ef1=_0x25d347[_0x2dbf17(0x1551)]()[_0x2dbf17(0x1386)](_0x2dbf17(0x199a))[_0x2dbf17(0x1152)](_0x2dbf17(0x1a2e))[_0x2dbf17(0x15ad)](_0x2dbf17(0x28e1))['ok']('Ok')[_0x2dbf17(0x696)](_0x2dbf17(0xde1));_0x25d347[_0x2dbf17(0xe27)](_0x357ef1)[_0x2dbf17(0x1cb0)](function(){const _0x53ab2a=_0x2dbf17;_0xa05dd4[_0x53ab2a(0x226c)][_0x53ab2a(0x1cf2)][_0x53ab2a(0x122f)][_0x53ab2a(0x159c)](_0x5639c3,0x1);});}}const _0xfbe62e=_0x42da2a;;_0x347d90[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x142b)];function _0x347d90(_0x4d974f,_0x4e3257,_0x21e736){const _0x4c2eb5=_0x5537c6,_0x294158=this;_0x294158[_0x4c2eb5(0x226c)]={},_0x294158[_0x4c2eb5(0x1a4c)]={},_0x294158['buttons']=[{'type':_0x4c2eb5(0x10f8),'name':_0x4c2eb5(0x20c7),'icon':'icon-label'},{'type':_0x4c2eb5(0x409),'name':'Select','icon':_0x4c2eb5(0x7c7)},{'type':_0x4c2eb5(0x169c),'name':_0x4c2eb5(0x847),'icon':_0x4c2eb5(0x292d)},{'type':_0x4c2eb5(0x2424),'name':'Textarea','icon':_0x4c2eb5(0x276)},{'type':_0x4c2eb5(0xba0),'name':_0x4c2eb5(0x1c72),'icon':_0x4c2eb5(0x2351)},{'type':_0x4c2eb5(0x12ce),'name':'Checkboxes','icon':'icon-checkbox-multiple-marked-outline'},{'type':_0x4c2eb5(0x1d4f),'name':_0x4c2eb5(0x1af1),'icon':_0x4c2eb5(0xfa7)}],_0x294158[_0x4c2eb5(0x1a8e)]=_0x22d96f,_0x294158['up']=_0x4402fb,_0x294158['down']=_0x2dfba4,_0x294158[_0x4c2eb5(0x17a1)]=_0x47ad3f,_0x294158[_0x4c2eb5(0x152a)]=_0x3fd45a;function _0x22d96f(_0x46d3fb){const _0x5aa650=_0x4c2eb5;_0x294158[_0x5aa650(0x355)]=[],_0x294158[_0x5aa650(0x2242)]=[],_0x294158[_0x5aa650(0x1f8c)]=['id','createdAt',_0x5aa650(0x27ba),_0x5aa650(0x20a6),_0x5aa650(0x27ac),_0x5aa650(0x1d77),_0x5aa650(0x248e)],_0x294158['chatWebsite']=_0x46d3fb,_0x39641b()[_0x5aa650(0xce9)](_0x294158[_0x5aa650(0x226c)][_0x5aa650(0x1a4c)])&&(_0x294158['chatWebsite']['onlineForm']={'items':[],'fromKey':null}),_0x21e736[_0x5aa650(0x22f2)][_0x5aa650(0x178f)]({'id':_0x294158[_0x5aa650(0x226c)][_0x5aa650(0x20a6)]})[_0x5aa650(0x1d77)][_0x5aa650(0x1cb0)](function(_0x76e1bc){const _0x17d509=_0x5aa650;for(let _0x162688=0x0;_0x162688<_0x76e1bc[_0x17d509(0x2214)]['length'];_0x162688++){_0x294158[_0x17d509(0x2242)][_0x17d509(0x2785)]({'key':'cf_'+_0x76e1bc[_0x17d509(0x2214)][_0x162688]['id'],'value':_0x76e1bc[_0x17d509(0x2214)][_0x162688][_0x17d509(0xfb1)]});}return _0x21e736['cmContact']['describe']()[_0x17d509(0x1d77)];})[_0x5aa650(0x1cb0)](function(_0x1e6070){const _0x185b88=_0x5aa650,_0x2a9d38=_0x39641b()['keys'](_0x1e6070);for(let _0x5b2d4a=0x0;_0x5b2d4a<_0x2a9d38[_0x185b88(0xfd0)];_0x5b2d4a++){!_0x39641b()[_0x185b88(0x250a)](_0x294158[_0x185b88(0x1f8c)],_0x2a9d38[_0x5b2d4a])&&!_0x39641b()[_0x185b88(0x1f2c)](_0x2a9d38[_0x5b2d4a],_0x185b88(0x1e4b))&&_0x294158[_0x185b88(0x355)]['unshift']({'key':_0x2a9d38[_0x5b2d4a],'value':_0x2a9d38[_0x5b2d4a]});}return _0x21e736['variable'][_0x185b88(0xbf7)]()[_0x185b88(0x1d77)];})[_0x5aa650(0x1cb0)](function(_0xeab773){const _0x5dfb18=_0x5aa650;_0x294158[_0x5dfb18(0x9a9)]=_0xeab773[_0x5dfb18(0x2214)];})['catch'](function(_0x119bbc){const _0x1034d6=_0x5aa650;console[_0x1034d6(0x218e)](_0x119bbc);});}function _0x4402fb(_0x3ef914,_0x3f85cc){const _0x491922=_0x4c2eb5;if(_0x3f85cc!==0x0){const _0x36e102=_0x294158[_0x491922(0x226c)][_0x491922(0x1a4c)][_0x491922(0x122f)][_0x3f85cc-0x1];_0x294158[_0x491922(0x226c)][_0x491922(0x1a4c)][_0x491922(0x122f)][_0x3f85cc]=_0x36e102,_0x294158['chatWebsite'][_0x491922(0x1a4c)][_0x491922(0x122f)][_0x3f85cc-0x1]=angular[_0x491922(0x17fe)](_0x3ef914);if(_0x294158[_0x491922(0x226c)][_0x491922(0x1a4c)][_0x491922(0x2956)]===_0x3f85cc)_0x294158[_0x491922(0x226c)]['onlineForm'][_0x491922(0x2956)]--;else _0x294158[_0x491922(0x226c)][_0x491922(0x1a4c)]['fromKey']===_0x3f85cc-0x1&&_0x294158[_0x491922(0x226c)][_0x491922(0x1a4c)]['fromKey']++;}}function _0x2dfba4(_0x3def77,_0x3960eb){const _0x303a02=_0x4c2eb5;if(_0x3960eb!==_0x294158[_0x303a02(0x226c)]['onlineForm']['items'][_0x303a02(0xfd0)]-0x1){const _0x5799bb=_0x294158[_0x303a02(0x226c)][_0x303a02(0x1a4c)][_0x303a02(0x122f)][_0x3960eb+0x1];_0x294158[_0x303a02(0x226c)][_0x303a02(0x1a4c)][_0x303a02(0x122f)][_0x3960eb]=_0x5799bb,_0x294158[_0x303a02(0x226c)][_0x303a02(0x1a4c)][_0x303a02(0x122f)][_0x3960eb+0x1]=angular[_0x303a02(0x17fe)](_0x3def77);if(_0x294158[_0x303a02(0x226c)][_0x303a02(0x1a4c)]['fromKey']===_0x3960eb)_0x294158[_0x303a02(0x226c)][_0x303a02(0x1a4c)][_0x303a02(0x2956)]++;else _0x294158[_0x303a02(0x226c)][_0x303a02(0x1a4c)][_0x303a02(0x2956)]===_0x3960eb+0x1&&_0x294158[_0x303a02(0x226c)][_0x303a02(0x1a4c)][_0x303a02(0x2956)]--;}}function _0x47ad3f(_0x51b8c0){const _0x112f19=_0x4c2eb5;_0x294158[_0x112f19(0x226c)][_0x112f19(0x1a4c)]['items'][_0x112f19(0x2785)]({'type':_0x51b8c0,'cmField':null,'variable':null});}function _0x3fd45a(_0x1b8b2d){const _0x137e26=_0x4c2eb5,_0x6b5d46=_0x4d974f[_0x137e26(0x1551)]()[_0x137e26(0x1386)](_0x137e26(0x199a))['textContent'](_0x137e26(0x1a2e))[_0x137e26(0x15ad)](_0x137e26(0x28e1))['ok']('Ok')[_0x137e26(0x696)]('Cancel');_0x4d974f[_0x137e26(0xe27)](_0x6b5d46)['then'](function(){const _0x472a47=_0x137e26;_0x294158[_0x472a47(0x226c)][_0x472a47(0x1a4c)][_0x472a47(0x2956)]===_0x1b8b2d&&(_0x294158[_0x472a47(0x226c)][_0x472a47(0x1a4c)][_0x472a47(0x2956)]=null),_0x294158[_0x472a47(0x226c)][_0x472a47(0x1a4c)][_0x472a47(0x122f)]['splice'](_0x1b8b2d,0x1),!_0x294158[_0x472a47(0x226c)][_0x472a47(0x1a4c)][_0x472a47(0x122f)][_0x472a47(0xfd0)]&&(_0x294158[_0x472a47(0x226c)]['onlineForm']['fromKey']=null);});}}const _0x309eb5=_0x347d90;;_0x123109[_0x5537c6(0x15b6)]=['$cookies',_0x5537c6(0x9bf)];function _0x123109(_0x3dea21,_0xa2b163){const _0x467369=_0x5537c6,_0x45a476=this,_0x370f90=0x8,_0x58153f=_0x370f90*0x400*0x400;_0x45a476[_0x467369(0x226c)]={},_0x45a476[_0x467369(0x1b1a)],_0x45a476['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x58153f,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x45a476[_0x467369(0x125a)]={'flow':{}},_0x45a476[_0x467369(0x18dc)]=![],_0x45a476['fileAdded']=_0x181fa7,_0x45a476[_0x467369(0x1c97)]=_0x5b1827,_0x45a476[_0x467369(0x200f)]=_0x4c80da,_0x45a476[_0x467369(0x1a8e)]=_0x444e05;function _0x444e05(_0x2a6932,_0x4e753f){const _0x179b3c=_0x467369;_0x45a476[_0x179b3c(0x226c)]=angular['copy'](_0x2a6932),_0x45a476[_0x179b3c(0x1b1a)]=typeof _0x4e753f!==_0x179b3c(0x16b5)?_0x4e753f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x45a476[_0x179b3c(0x15e8)][_0x179b3c(0x251d)]=_0x179b3c(0x1bff)['replace'](_0x179b3c(0xfa9),_0x45a476[_0x179b3c(0x226c)]['id']),_0x45a476[_0x179b3c(0x226c)][_0x179b3c(0x105c)]=[];}function _0x181fa7(_0x5bf57a){const _0x14f3a0=_0x467369,_0x1f251a=['png',_0x14f3a0(0xb97)];if(!_0x39641b()[_0x14f3a0(0x250a)](_0x1f251a,_0x5bf57a['getExtension']()))return _0xa2b163[_0x14f3a0(0x218e)]({'title':_0x14f3a0(0x14d4)+_0x5bf57a[_0x14f3a0(0x1cb1)](),'msg':'Supported\x20extension:\x20'+_0x1f251a['join']()}),![];if(_0x5bf57a[_0x14f3a0(0x1813)]>_0x58153f)return _0xa2b163['error']({'title':_0x14f3a0(0x2749),'msg':_0x14f3a0(0xe61)+_0x370f90+'MB'}),![];const _0x5a84de={'id':_0x5bf57a[_0x14f3a0(0x27c2)],'file':_0x5bf57a,'type':'uploading'};return _0x45a476['chatWebsite'][_0x14f3a0(0x105c)]['unshift'](_0x5a84de),!![];}function _0x5b1827(){const _0x2a5fe9=_0x467369;_0x45a476[_0x2a5fe9(0x125a)]['flow'][_0x2a5fe9(0xd56)]['headers']={'X-Requested-With':_0x2a5fe9(0x2711),'Authorization':'Bearer\x20'+_0x3dea21[_0x2a5fe9(0xbf7)](_0x2a5fe9(0x1b26))},_0x45a476[_0x2a5fe9(0x125a)]['flow'][_0x2a5fe9(0x1c97)]();}function _0x4c80da(_0x35449f){const _0x1d9187=_0x467369;angular['forEach'](_0x45a476[_0x1d9187(0x226c)][_0x1d9187(0x105c)],function(_0x47936b){const _0x3d5d3f=_0x1d9187;if(_0x47936b['id']===_0x35449f[_0x3d5d3f(0x27c2)]){const _0x5d1346=new FileReader();_0x5d1346[_0x3d5d3f(0x245d)](_0x47936b[_0x3d5d3f(0x1ac4)][_0x3d5d3f(0x1ac4)]),_0x5d1346[_0x3d5d3f(0x198d)]=function(_0x348bd4){const _0x12f284=_0x3d5d3f;_0x47936b['url']=_0x348bd4['target'][_0x12f284(0x1205)];},_0x47936b[_0x3d5d3f(0x66a)]=_0x3d5d3f(0x499);}});}}const _0x4dc3c0=_0x123109;;const _0x50da87=_0x5074a3['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/agent.general.interaction.dialog.html/agent.general.interaction.dialog.html';;_0x18fe8b[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),'$scope',_0x5537c6(0x406),'$q',_0x5537c6(0x1ae),_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x142b),'Auth'];function _0x18fe8b(_0x1237a4,_0x5c1229,_0x266a4e,_0x19c5d8,_0x5a7995,_0x1fda99,_0x5651a8,_0x3003d0,_0x1b426a,_0x566203,_0x1dba9c){const _0x9be5bc=_0x5537c6,_0x4c19e7=this;_0x4c19e7[_0x9be5bc(0xe76)]=_0x1dba9c[_0x9be5bc(0x21e8)](),_0x4c19e7[_0x9be5bc(0x226c)]={},_0x4c19e7[_0x9be5bc(0x1b63)]={'count':0x0,'rows':[]},_0x4c19e7['selectedChatWebsiteInteractions']=[],_0x4c19e7[_0x9be5bc(0x1b1a)],_0x4c19e7['query']={'read':_0x9be5bc(0xd38),'closed':_0x9be5bc(0xd38),'sort':_0x9be5bc(0x1c45),'includeAll':_0x9be5bc(0x44d),'limit':0xa,'page':0x1},_0x4c19e7[_0x9be5bc(0x1a8e)]=_0x282a76,_0x4c19e7[_0x9be5bc(0xb25)]=_0x8514af,_0x4c19e7[_0x9be5bc(0x1f3f)]=_0x1e0d2c,_0x4c19e7[_0x9be5bc(0x829)]=_0x59cdec,_0x4c19e7['getChatWebsiteInteractions']=_0x1d7e84,_0x4c19e7['spychatInteraction']=_0x3c7030,_0x4c19e7['openAdvancedSearch']=_0x156466,_0x4c19e7['exportSelectedChatWebsiteInteractions']=_0x2273f5,_0x4c19e7[_0x9be5bc(0x1833)]=_0x638159,_0x4c19e7[_0x9be5bc(0x1478)]=_0x156fa9;function _0x282a76(_0x5361e4,_0x10b2d0){const _0x50eea3=_0x9be5bc;_0x4c19e7[_0x50eea3(0x226c)]=_0x5361e4,_0x4c19e7[_0x50eea3(0x1b1a)]=typeof _0x10b2d0!==_0x50eea3(0x16b5)?_0x10b2d0:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4c19e7['query'][_0x50eea3(0x67c)]=_0x4c19e7[_0x50eea3(0x226c)]['id'],_0x4c19e7[_0x50eea3(0x16ad)]={'fields':_0x4b70b3()},_0x2eabdf();}function _0x2eabdf(){const _0x282138=_0x9be5bc;return _0x566203['tag'][_0x282138(0xbf7)]()[_0x282138(0x1d77)]['then'](function(_0xea5f0){const _0x278002=_0x282138;_0x4c19e7[_0x278002(0xfbf)]=_0xea5f0||{'count':0x0,'rows':[]};})[_0x282138(0x1cb0)](function(){const _0x50f610=_0x282138;_0x4c19e7[_0x50f610(0x789)]=_0x74f4f();});}function _0x74f4f(){const _0x9463e1=_0x9be5bc;return[{'name':_0x9463e1(0x68d),'key':_0x9463e1(0x24cb),'type':_0x9463e1(0x18ec),'label':_0x9463e1(0xf5e)},{'name':_0x9463e1(0x223c),'key':_0x9463e1(0xfc1),'type':_0x9463e1(0x220f),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x9463e1(0x27a4)},{'value':null,'translate':_0x9463e1(0x2706)}]},{'name':_0x9463e1(0x938),'key':'closed','type':_0x9463e1(0x220f),'label':_0x9463e1(0x24b6),'customOptions':[{'value':0x0,'translate':_0x9463e1(0x1bbd)},{'value':0x1,'translate':_0x9463e1(0x191b)},{'value':null,'translate':_0x9463e1(0x2706)}]},{'name':'Agent','key':_0x9463e1(0x21ab),'type':_0x9463e1(0x220f),'label':_0x9463e1(0x7bb),'customOptions':[{'value':_0x9463e1(0xd38),'translate':_0x9463e1(0x68f)},{'value':undefined,'translate':_0x9463e1(0x2706)}]},{'name':'Tag','key':'tag','type':_0x9463e1(0x1d50),'label':_0x9463e1(0x3c3),'options':_0x4c19e7[_0x9463e1(0xfbf)]['rows'],'placeholder':'DASHBOARDS.TAGS'}];}function _0x4b70b3(){const _0xbeefe4=_0x9be5bc;return[{'name':'Id','column':'id','type':_0xbeefe4(0x83d)},{'name':'Contact','column':_0xbeefe4(0x8d3),'type':_0xbeefe4(0x19e0),'options':{'searchFields':['firstName',_0xbeefe4(0x1fbb),'email'],'route':{'model':_0xbeefe4(0xbe7),'action':'get','params':{'fields':'id,firstName,lastName,email','Contact':_0xbeefe4(0xed6),'nolimit':!![]}},'extraOperators':[_0xbeefe4(0x1fb1)],'excludedOperators':[_0xbeefe4(0x15ce)]}},{'name':_0xbeefe4(0x228c),'column':_0xbeefe4(0x1e5d),'type':_0xbeefe4(0x19d3),'options':{'excludedOperators':['$eq','$ne']}},{'name':'Body','column':'plainBody','type':_0xbeefe4(0x19d3),'options':{'excludedOperators':['$eq',_0xbeefe4(0x15ce)]}},{'name':'Status','column':_0xbeefe4(0x22aa),'type':_0xbeefe4(0x220f),'values':[{'id':0x0,'translate':_0xbeefe4(0x1bbd)},{'id':0x1,'translate':_0xbeefe4(0x191b)}],'options':{'excludedOperators':[_0xbeefe4(0x15ce)]}},{'name':'Agent','column':_0xbeefe4(0x1597),'type':_0xbeefe4(0x19e0),'options':{'table':'i','route':{'model':'user','action':_0xbeefe4(0xbf7),'params':{'role':_0xbeefe4(0x1eff),'fields':_0xbeefe4(0x1d34),'nolimit':!![]}},'searchFields':['fullname',_0xbeefe4(0x16b6)],'extraOperators':[_0xbeefe4(0x1fb1)],'excludedOperators':[_0xbeefe4(0x15ce)]}},{'name':_0xbeefe4(0x190),'column':_0xbeefe4(0xf2d),'type':_0xbeefe4(0x1d50),'options':{'route':{'model':_0xbeefe4(0x22b1),'action':_0xbeefe4(0xbf7),'params':{'nolimit':!![]}},'excludedOperators':[_0xbeefe4(0x62d)]}},{'name':_0xbeefe4(0x68d),'column':_0xbeefe4(0x24cb),'type':_0xbeefe4(0x18ec),'options':{'excludedOperators':[_0xbeefe4(0x15ce)]}},{'name':'Read','column':_0xbeefe4(0x1554),'type':_0xbeefe4(0x220f),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0xbeefe4(0x1115)}],'options':{'excludedOperators':['$ne']}}];}function _0x156466(){const _0x66cd68=_0x9be5bc;_0x5651a8[_0x66cd68(0xe27)]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x3530d6,'parent':angular['element'](_0x3003d0[_0x66cd68(0x1ed9)]),'clickOutsideToClose':![],'locals':{'fields':_0x4c19e7[_0x66cd68(0x16ad)][_0x66cd68(0x355)],'color':undefined,'storagePath':_0x66cd68(0x1026)},'fullscreen':!![]})[_0x66cd68(0x1cb0)](function(_0x23aa12){const _0xb30627=_0x66cd68;_0x4c19e7[_0xb30627(0xae2)][_0xb30627(0x24be)]=_0x23aa12===![]?undefined:_0x23aa12;if(_0x4c19e7[_0xb30627(0xae2)][_0xb30627(0x24be)])_0x1d7e84();else _0x23aa12===![]&&_0x1d7e84();})['catch'](function(_0x5b7c8b){const _0xe28c55=_0x66cd68;_0x1b426a['error']({'title':'ERROR','msg':_0x5b7c8b[_0xe28c55(0x25c)]?JSON[_0xe28c55(0x2701)](_0x5b7c8b[_0xe28c55(0x25c)][_0xe28c55(0x155e)]):_0x5b7c8b[_0xe28c55(0x147f)]()});});}function _0x1e0d2c(_0x102ff8,_0x2c55c3,_0x240ba9){const _0x4d2264=_0x9be5bc;return _0x566203['chatInteraction']['download']({'id':_0x102ff8['id'],'exists':!![],'attachments':_0x240ba9})[_0x4d2264(0x1d77)][_0x4d2264(0x1cb0)](function(_0xb40f65){const _0x2d1f77=_0x4d2264,_0xf7830=[_0xb40f65[_0x2d1f77(0xef0)]];let _0x50f7d8=_0x2d1f77(0x10e4)+_0x102ff8['id'];const _0x309a1f=new Blob(_0xf7830,{'type':_0xb40f65[_0x2d1f77(0x66a)]});_0x50f7d8=_0x2d1f77(0x19ed)+_0x102ff8['id']+_0x2d1f77(0x1b16);const _0x28bdd8=window['document'][_0x2d1f77(0x8c6)]('a');_0x28bdd8['setAttribute']('href',URL[_0x2d1f77(0x2247)](_0x309a1f)),_0x28bdd8[_0x2d1f77(0x23b9)]('download',_0x50f7d8),document['body'][_0x2d1f77(0x23de)](_0x28bdd8),_0x28bdd8[_0x2d1f77(0x20b8)]();})[_0x4d2264(0x1c4)](function(_0x4c6155){const _0x3dec59=_0x4d2264;if(_0x4c6155[_0x3dec59(0x25c)]&&_0x4c6155[_0x3dec59(0x25c)][_0x3dec59(0x1a7c)]&&_0x4c6155[_0x3dec59(0x25c)]['errors'][_0x3dec59(0xfd0)])for(let _0x420959=0x0;_0x420959<_0x4c6155[_0x3dec59(0x25c)][_0x3dec59(0x1a7c)][_0x3dec59(0xfd0)];_0x420959+=0x1){_0x1b426a[_0x3dec59(0x218e)]({'title':_0x4c6155['data'][_0x3dec59(0x1a7c)][_0x420959][_0x3dec59(0x66a)],'msg':_0x4c6155[_0x3dec59(0x25c)]['errors'][_0x420959][_0x3dec59(0x155e)]});}else _0x1b426a[_0x3dec59(0x218e)]({'title':_0x4c6155['status']?_0x3dec59(0xeb9)+_0x4c6155[_0x3dec59(0x291)]+_0x3dec59(0x1657)+_0x4c6155[_0x3dec59(0xc22)]:_0x3dec59(0x1a39),'msg':_0x4c6155[_0x3dec59(0x25c)]?JSON[_0x3dec59(0x2701)](_0x4c6155[_0x3dec59(0x25c)][_0x3dec59(0x155e)]):_0x4c6155['toString']()});});}function _0x8514af(_0x33628d,_0x258745){const _0x57d983=_0x9be5bc,_0x247f5f=_0x5651a8[_0x57d983(0x1551)]()['title'](_0x57d983(0x9bc))[_0x57d983(0x49e)](_0x57d983(0x204d)+(_0x33628d[_0x57d983(0x16b6)]||_0x33628d['id']&&_0x39641b()[_0x57d983(0x277)](_0x57d983(0xf82))+_0x33628d['id']||_0x57d983(0x10e4))+_0x57d983(0x1200)+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x57d983(0x116f))[_0x57d983(0x728)](_0x258745)['ok']('OK')[_0x57d983(0x696)](_0x57d983(0x24ba));_0x5651a8[_0x57d983(0xe27)](_0x247f5f)[_0x57d983(0x1cb0)](function(){_0x638159(_0x33628d);},function(){const _0x2141b4=_0x57d983;console[_0x2141b4(0x1b4f)](_0x2141b4(0x24ba));});}function _0x59cdec(_0x25f11e){const _0x24ca6e=_0x9be5bc;_0x4c19e7[_0x24ca6e(0x1b63)]=_0x25f11e||{'count':0x0,'rows':[]};for(let _0x3a50dd=0x0;_0x3a50dd<_0x4c19e7[_0x24ca6e(0x1b63)][_0x24ca6e(0x2214)]['length'];_0x3a50dd+=0x1){const _0x5c4246=_0x4c19e7[_0x24ca6e(0x1b63)][_0x24ca6e(0x2214)][_0x3a50dd];_0x2f9c11(_0x5c4246),_0x5c4246[_0x24ca6e(0x135d)]['name']=_0x5a0815(_0x5c4246);}}function _0x1d7e84(){const _0x1dc63c=_0x9be5bc;_0x4c19e7[_0x1dc63c(0xae2)][_0x1dc63c(0x184b)]=(_0x4c19e7[_0x1dc63c(0xae2)]['page']-0x1)*_0x4c19e7[_0x1dc63c(0xae2)][_0x1dc63c(0x236)],_0x4c19e7[_0x1dc63c(0x2061)]=_0x566203[_0x1dc63c(0x115b)]['get'](_0x4c19e7[_0x1dc63c(0xae2)],_0x59cdec)[_0x1dc63c(0x1d77)];}function _0x3c7030(_0x3febbe,_0x500af1){const _0x4aff73=_0x9be5bc;_0x5651a8[_0x4aff73(0xe27)]({'controller':_0x4aff73(0x4b2),'controllerAs':'vm','templateUrl':_0x50da87,'parent':angular[_0x4aff73(0x1853)](_0x3003d0[_0x4aff73(0x1ed9)]),'targetEvent':_0x3febbe,'clickOutsideToClose':!![],'onShowing':function(_0xbd6757){const _0x3834be=_0x4aff73;_0xbd6757['vm'][_0x3834be(0x1a8e)]({'id':0x1,'channel':'chat','interaction':_0x500af1,'spy':!![]},_0x5c1229[_0x3834be(0x17bc)]['vm'][_0x3834be(0x9ca)]);}});}function _0x638159(_0x3d195f){const _0x1757a7=_0x9be5bc;_0x566203[_0x1757a7(0x115b)][_0x1757a7(0x111d)]({'id':_0x3d195f['id']})[_0x1757a7(0x1d77)][_0x1757a7(0x1cb0)](function(){const _0xf36c42=_0x1757a7;_0x39641b()[_0xf36c42(0x152a)](_0x4c19e7[_0xf36c42(0x1b63)][_0xf36c42(0x2214)],{'id':_0x3d195f['id']}),_0x4c19e7['chatWebsiteInteractions'][_0xf36c42(0x184d)]-=0x1,!_0x4c19e7['chatWebsiteInteractions']['rows'][_0xf36c42(0xfd0)]&&_0x1d7e84(),_0x1b426a[_0xf36c42(0x829)]({'title':_0xf36c42(0x1c2b),'msg':_0x3d195f[_0xf36c42(0x16b6)]?_0x3d195f[_0xf36c42(0x16b6)]+_0xf36c42(0x3f5):''});})[_0x1757a7(0x1c4)](function(_0x43abc3){const _0x5de664=_0x1757a7;if(_0x43abc3[_0x5de664(0x25c)]&&_0x43abc3[_0x5de664(0x25c)][_0x5de664(0x1a7c)]&&_0x43abc3['data'][_0x5de664(0x1a7c)][_0x5de664(0xfd0)]){_0x4c19e7[_0x5de664(0x1a7c)]=_0x43abc3[_0x5de664(0x25c)]['errors']||[{'message':_0x43abc3[_0x5de664(0x147f)](),'type':_0x5de664(0x5d5)}];for(let _0x3ee872=0x0;_0x3ee872<_0x43abc3[_0x5de664(0x25c)][_0x5de664(0x1a7c)]['length'];_0x3ee872++){_0x1b426a[_0x5de664(0x218e)]({'title':_0x43abc3[_0x5de664(0x25c)][_0x5de664(0x1a7c)][_0x3ee872][_0x5de664(0x66a)],'msg':_0x43abc3[_0x5de664(0x25c)]['errors'][_0x3ee872][_0x5de664(0x155e)]});}}else _0x1b426a['error']({'title':_0x43abc3[_0x5de664(0x291)]?_0x5de664(0xeb9)+_0x43abc3[_0x5de664(0x291)]+_0x5de664(0x1657)+_0x43abc3[_0x5de664(0xc22)]:_0x5de664(0x5d5),'msg':_0x43abc3[_0x5de664(0x25c)]?JSON[_0x5de664(0x2701)](_0x43abc3['data'][_0x5de664(0x155e)]):_0x43abc3[_0x5de664(0x155e)]||_0x43abc3[_0x5de664(0x147f)]()});});}function _0x2273f5(){const _0x5658c8=_0x9be5bc,_0x5393e1=angular[_0x5658c8(0x17fe)](_0x4c19e7[_0x5658c8(0x255f)]);return _0x4c19e7[_0x5658c8(0x255f)]=[],_0x5393e1;}function _0x156fa9(_0x3f8f51){const _0x449b90=_0x9be5bc,_0x4413a4=_0x5651a8['confirm']()[_0x449b90(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?')[_0x449b90(0x49e)](''+_0x4c19e7[_0x449b90(0x255f)][_0x449b90(0xfd0)]+_0x449b90(0x1d6c)+_0x449b90(0x1b6))[_0x449b90(0x15ad)](_0x449b90(0x8ca))[_0x449b90(0x728)](_0x3f8f51)['ok']('OK')[_0x449b90(0x696)](_0x449b90(0x24ba));_0x5651a8[_0x449b90(0xe27)](_0x4413a4)[_0x449b90(0x1cb0)](function(){_0x4c19e7['selectedChatWebsiteInteractions']['forEach'](function(_0xf3ab6e){_0x638159(_0xf3ab6e);}),_0x4c19e7['selectedChatWebsiteInteractions']=[];});}function _0x2f9c11(_0xa4c9dd){const _0x4088fc=_0x9be5bc;_0xa4c9dd[_0x4088fc(0x8d3)]?_0xa4c9dd['contactName']=(_0xa4c9dd['Contact'][_0x4088fc(0x1491)]||'')+'\x20'+(_0xa4c9dd['Contact'][_0x4088fc(0x1fbb)]||''):_0xa4c9dd[_0x4088fc(0x1325)]=_0x5a7995[_0x4088fc(0x25cc)](_0x4088fc(0x2b9));}function _0x5a0815(_0x232570){const _0x372ab1=_0x9be5bc;if(_0x232570[_0x372ab1(0x21ab)])return _0x232570['UserId']===_0x4c19e7[_0x372ab1(0xe76)]['id']?_0x5a7995['instant'](_0x372ab1(0x1ea6)):_0x232570[_0x372ab1(0x135d)][_0x372ab1(0x1d14)]+'\x20<'+_0x232570[_0x372ab1(0x135d)]['internal']+'>';return _0x5a7995[_0x372ab1(0x25cc)](_0x372ab1(0x68f));}let _0x25236e=!![],_0x4a6d56=0x1;_0x5c1229[_0x9be5bc(0x614)]('vm_dc.query.filter',function(_0x433350,_0x1352b6){const _0x1785eb=_0x9be5bc;_0x25236e?_0x1fda99(function(){_0x25236e=![];}):(!_0x1352b6&&(_0x4a6d56=_0x4c19e7[_0x1785eb(0xae2)][_0x1785eb(0x1c7b)]),_0x433350!==_0x1352b6&&(_0x4c19e7['query'][_0x1785eb(0x1c7b)]=0x1),!_0x433350&&(_0x4c19e7['query'][_0x1785eb(0x1c7b)]=_0x4a6d56),_0x1d7e84());});}const _0x59eb72=_0x18fe8b;;_0x3afc91['$inject']=['$cookies','toasty'];function _0x3afc91(_0xbe1284,_0x1291f9){const _0x2409d6=_0x5537c6,_0x5bf3d7=this,_0xc6f229=0x8,_0x56dd3c=_0xc6f229*0x400*0x400;_0x5bf3d7['chatWebsite']={},_0x5bf3d7[_0x2409d6(0x1b1a)],_0x5bf3d7['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x56dd3c,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x5bf3d7['ngFlow']={'flow':{}},_0x5bf3d7['dropping']=![],_0x5bf3d7[_0x2409d6(0x15c2)]=_0x32699a,_0x5bf3d7[_0x2409d6(0x1c97)]=_0x5dff5d,_0x5bf3d7['fileSuccess']=_0x1d44f9,_0x5bf3d7[_0x2409d6(0x1a8e)]=_0x600dd0;function _0x600dd0(_0x4c37e4,_0x170448){const _0xa710d5=_0x2409d6;_0x5bf3d7[_0xa710d5(0x226c)]=angular[_0xa710d5(0x17fe)](_0x4c37e4),_0x5bf3d7[_0xa710d5(0x1b1a)]=typeof _0x170448!==_0xa710d5(0x16b5)?_0x170448:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5bf3d7[_0xa710d5(0x15e8)][_0xa710d5(0x251d)]=_0xa710d5(0x1bf8)['replace'](':id',_0x5bf3d7[_0xa710d5(0x226c)]['id']),_0x5bf3d7[_0xa710d5(0x226c)][_0xa710d5(0x105c)]=[];}function _0x32699a(_0x2b8a50){const _0x17a3b7=_0x2409d6,_0x2be933=['png',_0x17a3b7(0xb97)];if(!_0x39641b()['includes'](_0x2be933,_0x2b8a50['getExtension']()))return _0x1291f9[_0x17a3b7(0x218e)]({'title':_0x17a3b7(0x14d4)+_0x2b8a50[_0x17a3b7(0x1cb1)](),'msg':_0x17a3b7(0x4d4)+_0x2be933['join']()}),![];if(_0x2b8a50['size']>_0x56dd3c)return _0x1291f9['error']({'title':_0x17a3b7(0x2749),'msg':_0x17a3b7(0xe61)+_0xc6f229+'MB'}),![];const _0x57858c={'id':_0x2b8a50[_0x17a3b7(0x27c2)],'file':_0x2b8a50,'type':_0x17a3b7(0x2989)};return _0x5bf3d7[_0x17a3b7(0x226c)][_0x17a3b7(0x105c)][_0x17a3b7(0xf63)](_0x57858c),!![];}function _0x5dff5d(){const _0x1fa942=_0x2409d6;_0x5bf3d7['ngFlow'][_0x1fa942(0xacf)][_0x1fa942(0xd56)][_0x1fa942(0x5e7)]={'X-Requested-With':_0x1fa942(0x2711),'Authorization':_0x1fa942(0x1923)+_0xbe1284[_0x1fa942(0xbf7)]('motion.token')},_0x5bf3d7[_0x1fa942(0x125a)][_0x1fa942(0xacf)][_0x1fa942(0x1c97)]();}function _0x1d44f9(_0x9f5ae4){const _0x170c43=_0x2409d6;angular['forEach'](_0x5bf3d7[_0x170c43(0x226c)][_0x170c43(0x105c)],function(_0x30e14b){const _0x1c101a=_0x170c43;if(_0x30e14b['id']===_0x9f5ae4['uniqueIdentifier']){const _0x5ebd2d=new FileReader();_0x5ebd2d[_0x1c101a(0x245d)](_0x30e14b[_0x1c101a(0x1ac4)]['file']),_0x5ebd2d[_0x1c101a(0x198d)]=function(_0x38bc45){const _0x342660=_0x1c101a;_0x30e14b['url']=_0x38bc45[_0x342660(0x251d)][_0x342660(0x1205)];},_0x30e14b['type']='image';}});}}const _0x2021c3=_0x3afc91;;const _0x5328d7=_0x5074a3['p']+_0x5537c6(0x2af);;_0x3711f9[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x1463),_0x5537c6(0x406),'$q',_0x5537c6(0x1ae),'$timeout',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),'api',_0x5537c6(0x1774)];function _0x3711f9(_0x5c1c54,_0x314bec,_0x121ff4,_0x363c35,_0x15b036,_0x1309ea,_0x19f16c,_0x153af0,_0x21fd53,_0x5674a2,_0x2a7176){const _0x44da96=_0x5537c6,_0x44ee26=this;_0x44ee26[_0x44da96(0xe76)]=_0x2a7176[_0x44da96(0x21e8)](),_0x44ee26['chatWebsite']={},_0x44ee26[_0x44da96(0xbbf)]={'count':0x0,'rows':[]},_0x44ee26[_0x44da96(0x1f98)]=[],_0x44ee26[_0x44da96(0x1b1a)],_0x44ee26[_0x44da96(0xae2)]={'fields':'createdAt,updatedAt,id,Contact.firstName','sort':'-createdAt','limit':0xa,'page':0x1},_0x44ee26['init']=_0x18b137,_0x44ee26['deleteConfirm']=_0x32c85e,_0x44ee26[_0x44da96(0x829)]=_0x990086,_0x44ee26[_0x44da96(0x1280)]=_0x5ab20b,_0x44ee26[_0x44da96(0x527)]=_0x1fd8bc,_0x44ee26['showOfflineMessageChatWebsiteOfflineMessage']=_0x205f04,_0x44ee26[_0x44da96(0x270a)]=_0x47664a,_0x44ee26[_0x44da96(0x2543)]=_0x14dcf7,_0x44ee26[_0x44da96(0x23f7)]=_0x5610eb;function _0x18b137(_0x55b7b4,_0x426d28){const _0x19b5f2=_0x44da96;_0x44ee26[_0x19b5f2(0x226c)]=_0x55b7b4,_0x44ee26[_0x19b5f2(0x1b1a)]=typeof _0x426d28!==_0x19b5f2(0x16b5)?_0x426d28:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x44ee26[_0x19b5f2(0xae2)]['id']=_0x44ee26['chatWebsite']['id'],_0x5ab20b();}function _0x32c85e(_0x29b197,_0x11b8e2){const _0x4e08ad=_0x44da96,_0x54b16b=_0x19f16c['confirm']()[_0x4e08ad(0x1386)](_0x4e08ad(0x1439))['htmlContent'](_0x4e08ad(0x204d)+(_0x29b197[_0x4e08ad(0x16b6)]||_0x29b197['id']&&_0x39641b()[_0x4e08ad(0x277)]('offlineMessage\x20#')+_0x29b197['id']||_0x4e08ad(0x24e4))+_0x4e08ad(0x1200)+'\x20will\x20be\x20deleted.')[_0x4e08ad(0x15ad)](_0x4e08ad(0x1d85))[_0x4e08ad(0x728)](_0x11b8e2)['ok']('OK')['cancel'](_0x4e08ad(0x24ba));_0x19f16c['show'](_0x54b16b)[_0x4e08ad(0x1cb0)](function(){_0x14dcf7(_0x29b197);},function(){const _0x461551=_0x4e08ad;console['log'](_0x461551(0x24ba));});}function _0x990086(_0x2d3452){const _0x34d68b=_0x44da96;_0x44ee26[_0x34d68b(0xbbf)]=_0x2d3452||{'count':0x0,'rows':[]};}function _0x5ab20b(){const _0xb29a81=_0x44da96;_0x44ee26[_0xb29a81(0xae2)][_0xb29a81(0x184b)]=(_0x44ee26[_0xb29a81(0xae2)][_0xb29a81(0x1c7b)]-0x1)*_0x44ee26['query']['limit'],_0x44ee26['promise']=_0x5674a2[_0xb29a81(0x226c)][_0xb29a81(0xae4)](_0x44ee26[_0xb29a81(0xae2)],_0x990086)[_0xb29a81(0x1d77)];}function _0x1fd8bc(_0x1a300a,_0x43dfeb){const _0x33ce41=_0x44da96;_0x19f16c[_0x33ce41(0xe27)]({'controller':_0x33ce41(0xba9),'controllerAs':'vm','templateUrl':_0x5328d7,'parent':angular['element'](_0x153af0['body']),'targetEvent':_0x1a300a,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x44ee26[_0x33ce41(0x226c)],'offlineMessage':_0x43dfeb,'offlineMessages':_0x44ee26['chatWebsiteOfflineMessages'][_0x33ce41(0x2214)],'license':null,'setting':null,'crudPermissions':_0x44ee26[_0x33ce41(0x1b1a)]}});}function _0x205f04(_0x4b5184,_0x149f4a){const _0xa838ed=_0x44da96;_0x19f16c[_0xa838ed(0xe27)]({'controller':'ShowOfflineMessageOfflineMessageDialogController','controllerAs':'vm','templateUrl':_0x5328d7,'parent':angular[_0xa838ed(0x1853)](_0x153af0['body']),'targetEvent':_0x4b5184,'clickOutsideToClose':!![],'resolve':{'message':[_0xa838ed(0x1e0b),function(_0x4ca80a){const _0xaa064c=_0xa838ed;return _0x4ca80a[_0xaa064c(0x19a3)](_0xaa064c(0x18ea),{'fields':_0xaa064c(0x195d),'id':_0x149f4a['id']});}]}});}function _0x14dcf7(_0x21145c){const _0x5ce7ce=_0x44da96;_0x5674a2['chatOfflineMessage'][_0x5ce7ce(0x111d)]({'id':_0x21145c['id']})[_0x5ce7ce(0x1d77)][_0x5ce7ce(0x1cb0)](function(){const _0x111e66=_0x5ce7ce;_0x39641b()[_0x111e66(0x152a)](_0x44ee26[_0x111e66(0xbbf)][_0x111e66(0x2214)],{'id':_0x21145c['id']}),_0x44ee26[_0x111e66(0xbbf)][_0x111e66(0x184d)]-=0x1,!_0x44ee26[_0x111e66(0xbbf)]['rows'][_0x111e66(0xfd0)]&&_0x5ab20b(),_0x21fd53['success']({'title':_0x111e66(0x2e9),'msg':_0x21145c['name']?_0x21145c['name']+_0x111e66(0x3f5):''});})['catch'](function(_0x3fe26c){const _0x2cde16=_0x5ce7ce;if(_0x3fe26c['data']&&_0x3fe26c[_0x2cde16(0x25c)][_0x2cde16(0x1a7c)]&&_0x3fe26c[_0x2cde16(0x25c)]['errors'][_0x2cde16(0xfd0)]){_0x44ee26['errors']=_0x3fe26c[_0x2cde16(0x25c)]['errors']||[{'message':_0x3fe26c[_0x2cde16(0x147f)](),'type':_0x2cde16(0x5d5)}];for(let _0x2e66b7=0x0;_0x2e66b7<_0x3fe26c[_0x2cde16(0x25c)][_0x2cde16(0x1a7c)][_0x2cde16(0xfd0)];_0x2e66b7++){_0x21fd53[_0x2cde16(0x218e)]({'title':_0x3fe26c[_0x2cde16(0x25c)][_0x2cde16(0x1a7c)][_0x2e66b7][_0x2cde16(0x66a)],'msg':_0x3fe26c[_0x2cde16(0x25c)][_0x2cde16(0x1a7c)][_0x2e66b7][_0x2cde16(0x155e)]});}}else _0x21fd53[_0x2cde16(0x218e)]({'title':_0x3fe26c[_0x2cde16(0x291)]?_0x2cde16(0xeb9)+_0x3fe26c['status']+_0x2cde16(0x1657)+_0x3fe26c[_0x2cde16(0xc22)]:'SYSTEM:GETchatWebsite','msg':_0x3fe26c[_0x2cde16(0x25c)]?JSON['stringify'](_0x3fe26c[_0x2cde16(0x25c)]['message']):_0x3fe26c[_0x2cde16(0x155e)]||_0x3fe26c[_0x2cde16(0x147f)]()});});}function _0x47664a(){const _0x367fa6=_0x44da96,_0x346491=angular[_0x367fa6(0x17fe)](_0x44ee26['selectedChatWebsiteOfflineMessages']);return _0x44ee26[_0x367fa6(0x1f98)]=[],_0x346491;}function _0x5610eb(_0x42b250){const _0x25b024=_0x44da96,_0x591f41=_0x19f16c[_0x25b024(0x1551)]()[_0x25b024(0x1386)](_0x25b024(0x21b8))[_0x25b024(0x49e)](''+_0x44ee26[_0x25b024(0x1f98)]['length']+_0x25b024(0x1d6c)+'\x20will\x20be\x20deleted.')[_0x25b024(0x15ad)](_0x25b024(0x12e6))['targetEvent'](_0x42b250)['ok']('OK')[_0x25b024(0x696)]('CANCEL');_0x19f16c[_0x25b024(0xe27)](_0x591f41)[_0x25b024(0x1cb0)](function(){const _0x3b9c9c=_0x25b024;_0x44ee26[_0x3b9c9c(0x1f98)][_0x3b9c9c(0xf90)](function(_0x482a69){_0x14dcf7(_0x482a69);}),_0x44ee26[_0x3b9c9c(0x1f98)]=[];});}let _0x317d2f=!![],_0x356aad=0x1;_0x314bec[_0x44da96(0x614)](_0x44da96(0xeb6),function(_0x423398,_0x2addfd){const _0x87c3bb=_0x44da96;_0x317d2f?_0x1309ea(function(){_0x317d2f=![];}):(!_0x2addfd&&(_0x356aad=_0x44ee26[_0x87c3bb(0xae2)][_0x87c3bb(0x1c7b)]),_0x423398!==_0x2addfd&&(_0x44ee26[_0x87c3bb(0xae2)][_0x87c3bb(0x1c7b)]=0x1),!_0x423398&&(_0x44ee26[_0x87c3bb(0xae2)]['page']=_0x356aad),_0x5ab20b());});}const _0x555e75=_0x3711f9;;_0x44f00[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x155e)];function _0x44f00(_0x4256eb,_0x5ab6ba){const _0x125b24=_0x5537c6,_0x52ba47=this;_0x52ba47[_0x125b24(0x1386)]=_0x125b24(0xe54),_0x52ba47['message']=_0x5ab6ba,_0x52ba47['closeDialog']=_0x51c0ed;function _0x51c0ed(_0x3bd67f){const _0x2072da=_0x125b24;_0x4256eb[_0x2072da(0x1426)](_0x3bd67f);}}const _0x1a5e26=_0x44f00;;const _0x56ccf1=_0x5074a3['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/proactive/dialog.html/dialog.html';;_0x526f34[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x1463),_0x5537c6(0x406),'$q',_0x5537c6(0x1ae),_0x5537c6(0x2168),'$mdDialog','$document',_0x5537c6(0x9bf),_0x5537c6(0x142b),'Auth'];function _0x526f34(_0x1facdc,_0x1a123f,_0x154b32,_0x5dfafe,_0x43a613,_0x964b00,_0x208091,_0x385731,_0x2027ff,_0x21beb9,_0x1dbf86){const _0x446f9c=_0x5537c6,_0x375d80=this;_0x375d80[_0x446f9c(0xe76)]=_0x1dbf86[_0x446f9c(0x21e8)](),_0x375d80[_0x446f9c(0x226c)]={},_0x375d80['chatWebsiteProactiveActions']={'count':0x0,'rows':[]},_0x375d80[_0x446f9c(0x27a9)]=[],_0x375d80[_0x446f9c(0x1b1a)],_0x375d80['query']={'fields':_0x446f9c(0x39a),'limit':0xa,'page':0x1},_0x375d80[_0x446f9c(0x101d)]=_0x39641b()['keyBy']([{'option':_0x446f9c(0xb45),'value':_0x446f9c(0x59d)},{'option':_0x446f9c(0xbcc),'value':_0x446f9c(0x487)}],function(_0x2a3b){const _0x1bccc1=_0x446f9c;return _0x39641b()[_0x1bccc1(0x288f)](_0x2a3b[_0x1bccc1(0x327)],new RegExp('\x27','g'),'');}),_0x375d80['init']=_0x1367a5,_0x375d80[_0x446f9c(0xb25)]=_0x3330bb,_0x375d80[_0x446f9c(0x829)]=_0x4a9a85,_0x375d80[_0x446f9c(0xd7d)]=_0x3c03c0,_0x375d80['createOrEditChatWebsiteChatProactiveAction']=_0x2ba5ca,_0x375d80['exportSelectedChatWebsiteProactiveActions']=_0x42d3e7,_0x375d80[_0x446f9c(0xf0a)]=_0x5aafcb,_0x375d80['deleteSelectedChatWebsiteProactiveActions']=_0x4301b5;function _0x1367a5(_0x31ac5c,_0x32439b){const _0x1d7ed2=_0x446f9c;_0x375d80[_0x1d7ed2(0x226c)]=_0x31ac5c,_0x375d80[_0x1d7ed2(0x1b1a)]=typeof _0x32439b!==_0x1d7ed2(0x16b5)?_0x32439b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x375d80['query'][_0x1d7ed2(0x67c)]=_0x375d80[_0x1d7ed2(0x226c)]['id'],_0x375d80['query']['id']=_0x375d80[_0x1d7ed2(0x226c)]['id'],_0x3c03c0();}function _0x3330bb(_0x5dcc23,_0x1c49f4){const _0x26d512=_0x446f9c,_0x308e22=_0x208091[_0x26d512(0x1551)]()['title'](_0x26d512(0x4fa))[_0x26d512(0x49e)](_0x26d512(0x204d)+(_0x5dcc23['name']||_0x5dcc23['id']&&_0x39641b()[_0x26d512(0x277)](_0x26d512(0x1aa5))+_0x5dcc23['id']||_0x26d512(0x28fc))+''+_0x26d512(0x1b6))[_0x26d512(0x15ad)](_0x26d512(0x3d3))[_0x26d512(0x728)](_0x1c49f4)['ok']('OK')[_0x26d512(0x696)](_0x26d512(0x24ba));_0x208091[_0x26d512(0xe27)](_0x308e22)['then'](function(){_0x5aafcb(_0x5dcc23);},function(){const _0x511bae=_0x26d512;console[_0x511bae(0x1b4f)]('CANCEL');});}function _0x4a9a85(_0x3e8f4e){const _0x19347c=_0x446f9c;_0x375d80[_0x19347c(0x2494)]=_0x3e8f4e||{'count':0x0,'rows':[]};}function _0x3c03c0(){const _0x2decc3=_0x446f9c;_0x375d80[_0x2decc3(0xae2)]['offset']=(_0x375d80['query'][_0x2decc3(0x1c7b)]-0x1)*_0x375d80[_0x2decc3(0xae2)][_0x2decc3(0x236)],_0x375d80[_0x2decc3(0x2061)]=_0x21beb9[_0x2decc3(0x226c)]['getProactiveActions'](_0x375d80[_0x2decc3(0xae2)],_0x4a9a85)[_0x2decc3(0x1d77)];}function _0x2ba5ca(_0x298d4b,_0xe58b29){const _0x25122e=_0x446f9c;_0x208091[_0x25122e(0xe27)]({'controller':'CreateOrEditChatProactiveActionDialogController','controllerAs':'vm','templateUrl':_0x56ccf1,'parent':angular[_0x25122e(0x1853)](_0x385731['body']),'targetEvent':_0x298d4b,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x375d80['chatWebsite'],'chatProactiveAction':_0xe58b29,'proactive':_0x375d80[_0x25122e(0x2494)][_0x25122e(0x2214)],'license':null,'setting':null,'crudPermissions':_0x375d80[_0x25122e(0x1b1a)]}});}function _0x5aafcb(_0x32bcda){const _0x3fc94f=_0x446f9c;_0x21beb9[_0x3fc94f(0x28fc)][_0x3fc94f(0x111d)]({'id':_0x32bcda['id']})['$promise'][_0x3fc94f(0x1cb0)](function(){const _0xf76819=_0x3fc94f;_0x39641b()[_0xf76819(0x152a)](_0x375d80[_0xf76819(0x2494)][_0xf76819(0x2214)],{'id':_0x32bcda['id']}),_0x375d80[_0xf76819(0x2494)]['count']-=0x1,!_0x375d80[_0xf76819(0x2494)][_0xf76819(0x2214)][_0xf76819(0xfd0)]&&_0x3c03c0(),_0x2027ff[_0xf76819(0x829)]({'title':_0xf76819(0x173f),'msg':_0x32bcda[_0xf76819(0x16b6)]?_0x32bcda[_0xf76819(0x16b6)]+_0xf76819(0x3f5):''});})[_0x3fc94f(0x1c4)](function(_0x1a7e09){const _0x1e6dd2=_0x3fc94f;if(_0x1a7e09[_0x1e6dd2(0x25c)]&&_0x1a7e09[_0x1e6dd2(0x25c)]['errors']&&_0x1a7e09['data'][_0x1e6dd2(0x1a7c)][_0x1e6dd2(0xfd0)]){_0x375d80[_0x1e6dd2(0x1a7c)]=_0x1a7e09[_0x1e6dd2(0x25c)][_0x1e6dd2(0x1a7c)]||[{'message':_0x1a7e09['toString'](),'type':_0x1e6dd2(0x5d5)}];for(let _0x4e8f1e=0x0;_0x4e8f1e<_0x1a7e09[_0x1e6dd2(0x25c)][_0x1e6dd2(0x1a7c)]['length'];_0x4e8f1e++){_0x2027ff[_0x1e6dd2(0x218e)]({'title':_0x1a7e09[_0x1e6dd2(0x25c)][_0x1e6dd2(0x1a7c)][_0x4e8f1e][_0x1e6dd2(0x66a)],'msg':_0x1a7e09[_0x1e6dd2(0x25c)][_0x1e6dd2(0x1a7c)][_0x4e8f1e][_0x1e6dd2(0x155e)]});}}else _0x2027ff[_0x1e6dd2(0x218e)]({'title':_0x1a7e09[_0x1e6dd2(0x291)]?_0x1e6dd2(0xeb9)+_0x1a7e09[_0x1e6dd2(0x291)]+_0x1e6dd2(0x1657)+_0x1a7e09[_0x1e6dd2(0xc22)]:'SYSTEM:GETchatWebsite','msg':_0x1a7e09[_0x1e6dd2(0x25c)]?JSON[_0x1e6dd2(0x2701)](_0x1a7e09[_0x1e6dd2(0x25c)][_0x1e6dd2(0x155e)]):_0x1a7e09[_0x1e6dd2(0x155e)]||_0x1a7e09[_0x1e6dd2(0x147f)]()});});}function _0x42d3e7(){const _0x25d076=_0x446f9c,_0x532896=angular[_0x25d076(0x17fe)](_0x375d80['selectedChatWebsiteProactiveActions']);return _0x375d80['selectedChatWebsiteProactiveActions']=[],_0x532896;}function _0x4301b5(_0x51622b){const _0x48ccee=_0x446f9c,_0x29499a=_0x208091[_0x48ccee(0x1551)]()[_0x48ccee(0x1386)](_0x48ccee(0xc4d))[_0x48ccee(0x49e)](_0x48ccee(0x204d)+_0x375d80[_0x48ccee(0x27a9)][_0x48ccee(0xfd0)]+'\x20selected'+_0x48ccee(0x1b6))[_0x48ccee(0x15ad)](_0x48ccee(0x1bbe))[_0x48ccee(0x728)](_0x51622b)['ok']('OK')[_0x48ccee(0x696)](_0x48ccee(0x24ba));_0x208091[_0x48ccee(0xe27)](_0x29499a)[_0x48ccee(0x1cb0)](function(){const _0x2c8d1f=_0x48ccee;_0x375d80[_0x2c8d1f(0x27a9)][_0x2c8d1f(0xf90)](function(_0x47bc1f){_0x5aafcb(_0x47bc1f);}),_0x375d80[_0x2c8d1f(0x27a9)]=[];});}let _0x104a13=!![],_0x66299d=0x1;_0x1a123f['$watch']('vm_dc.query.filter',function(_0x19a05a,_0x1bfd32){const _0x567dc1=_0x446f9c;_0x104a13?_0x964b00(function(){_0x104a13=![];}):(!_0x1bfd32&&(_0x66299d=_0x375d80['query'][_0x567dc1(0x1c7b)]),_0x19a05a!==_0x1bfd32&&(_0x375d80['query'][_0x567dc1(0x1c7b)]=0x1),!_0x19a05a&&(_0x375d80[_0x567dc1(0xae2)][_0x567dc1(0x1c7b)]=_0x66299d),_0x3c03c0());});}const _0xd8e815=_0x526f34;;_0x397c5[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),'toasty','proactive',_0x5537c6(0x28fc),'api','Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x397c5(_0x5aa770,_0x331fa6,_0xe0d6a7,_0x565461,_0xd24ca5,_0x54d904,_0x4678e9,_0x2dbc63,_0x3ffb72,_0x1aa0e4,_0x193d2f,_0x1ecf82,_0x50a752,_0x53d2f1){const _0x1facea=_0x5537c6,_0x4b42b5=this;_0x4b42b5[_0x1facea(0xe76)]=_0x193d2f[_0x1facea(0x21e8)](),_0x4b42b5['errors']=[],_0x4b42b5['setting']=_0x50a752,_0x4b42b5[_0x1facea(0x8a5)]=_0x1ecf82,_0x4b42b5['crudPermissions']=_0x53d2f1,_0x4b42b5[_0x1facea(0xf4c)]={},_0x4b42b5[_0x1facea(0x1b0c)]=_0x4b42b5['setting']&&_0x4b42b5[_0x1facea(0x9ca)][_0x1facea(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4b42b5['title']=_0x1facea(0xc15),_0x4b42b5[_0x1facea(0x28fc)]=angular[_0x1facea(0x17fe)](_0x3ffb72),_0x4b42b5[_0x1facea(0x14a6)]=_0x2dbc63,_0x4b42b5[_0x1facea(0x23b5)]=![];!_0x4b42b5['chatProactiveAction']&&(_0x4b42b5[_0x1facea(0x28fc)]={'type':_0x1facea(0x551)},_0x4b42b5[_0x1facea(0x1386)]='CHAT.NEW_CHATPROACTIVEACTION',_0x4b42b5[_0x1facea(0x23b5)]=!![]);_0x331fa6['params']['id']&&(_0x4b42b5[_0x1facea(0x28fc)][_0x1facea(0x67c)]=_0x331fa6['params']['id']);_0x4b42b5[_0x1facea(0x139d)]=_0x35ef2b,_0x4b42b5[_0x1facea(0x1415)]=_0x502a79,_0x4b42b5[_0x1facea(0x1389)]=_0xecd7b4,_0x4b42b5[_0x1facea(0x2c4)]=_0x5c94d8,_0x4b42b5[_0x1facea(0xda0)]=_0x19b3f7;function _0x35ef2b(){const _0x2137b4=_0x1facea;_0x4b42b5['errors']=[],_0x1aa0e4[_0x2137b4(0x28fc)]['save'](_0x4b42b5[_0x2137b4(0x28fc)])[_0x2137b4(0x1d77)][_0x2137b4(0x1cb0)](function(_0x3f6978){const _0xadea2f=_0x2137b4;_0x4b42b5[_0xadea2f(0x14a6)]['unshift'](_0x3f6978[_0xadea2f(0x19b2)]()),_0x4678e9['success']({'title':_0xadea2f(0x193),'msg':_0x4b42b5[_0xadea2f(0x28fc)][_0xadea2f(0x16b6)]?_0x4b42b5[_0xadea2f(0x28fc)][_0xadea2f(0x16b6)]+_0xadea2f(0x470):''}),_0x19b3f7(_0x3f6978);})[_0x2137b4(0x1c4)](function(_0xb603aa){const _0x3caf45=_0x2137b4;if(_0xb603aa[_0x3caf45(0x25c)]&&_0xb603aa[_0x3caf45(0x25c)][_0x3caf45(0x1a7c)]&&_0xb603aa[_0x3caf45(0x25c)][_0x3caf45(0x1a7c)][_0x3caf45(0xfd0)]){_0x4b42b5[_0x3caf45(0x1a7c)]=_0xb603aa['data'][_0x3caf45(0x1a7c)]||[{'message':_0xb603aa[_0x3caf45(0x147f)](),'type':_0x3caf45(0xac8)}];for(let _0x59258a=0x0;_0x59258a<_0xb603aa[_0x3caf45(0x25c)]['errors'][_0x3caf45(0xfd0)];_0x59258a+=0x1){_0x4678e9['error']({'title':_0xb603aa[_0x3caf45(0x25c)][_0x3caf45(0x1a7c)][_0x59258a][_0x3caf45(0x66a)],'msg':_0xb603aa[_0x3caf45(0x25c)][_0x3caf45(0x1a7c)][_0x59258a][_0x3caf45(0x155e)]});}}else _0x4678e9[_0x3caf45(0x218e)]({'title':_0xb603aa[_0x3caf45(0x291)]?_0x3caf45(0xeb9)+_0xb603aa[_0x3caf45(0x291)]+_0x3caf45(0x1657)+_0xb603aa[_0x3caf45(0xc22)]:'api.chatProactiveAction.save','msg':_0xb603aa[_0x3caf45(0x25c)]?JSON['stringify'](_0xb603aa[_0x3caf45(0x25c)][_0x3caf45(0x155e)]):_0xb603aa[_0x3caf45(0x147f)]()});});}function _0x502a79(){const _0x34e335=_0x1facea;_0x4b42b5[_0x34e335(0x1a7c)]=[],_0x1aa0e4['chatProactiveAction'][_0x34e335(0x687)]({'id':_0x4b42b5[_0x34e335(0x28fc)]['id']},_0x4b42b5[_0x34e335(0x28fc)])['$promise']['then'](function(_0x1ab3c2){const _0x56f1fd=_0x34e335,_0x168732=_0x39641b()[_0x56f1fd(0x13b4)](_0x4b42b5[_0x56f1fd(0x14a6)],{'id':_0x1ab3c2['id']});_0x168732&&_0x39641b()[_0x56f1fd(0x9c1)](_0x168732,_0x39641b()[_0x56f1fd(0x169b)](_0x1ab3c2[_0x56f1fd(0x19b2)](),_0x39641b()[_0x56f1fd(0x1be5)](_0x168732))),_0x4678e9[_0x56f1fd(0x829)]({'title':_0x56f1fd(0x10c5),'msg':_0x4b42b5[_0x56f1fd(0x28fc)][_0x56f1fd(0x16b6)]?_0x4b42b5[_0x56f1fd(0x28fc)][_0x56f1fd(0x16b6)]+_0x56f1fd(0xedb):''}),_0x19b3f7(_0x1ab3c2);})['catch'](function(_0x292b56){const _0x21f886=_0x34e335;if(_0x292b56['data']&&_0x292b56[_0x21f886(0x25c)][_0x21f886(0x1a7c)]&&_0x292b56[_0x21f886(0x25c)][_0x21f886(0x1a7c)][_0x21f886(0xfd0)]){_0x4b42b5[_0x21f886(0x1a7c)]=_0x292b56['data'][_0x21f886(0x1a7c)]||[{'message':_0x292b56[_0x21f886(0x147f)](),'type':_0x21f886(0x289f)}];for(let _0x237c76=0x0;_0x237c76<_0x292b56[_0x21f886(0x25c)][_0x21f886(0x1a7c)][_0x21f886(0xfd0)];_0x237c76++){_0x4678e9[_0x21f886(0x218e)]({'title':_0x292b56[_0x21f886(0x25c)][_0x21f886(0x1a7c)][_0x237c76]['type'],'msg':_0x292b56[_0x21f886(0x25c)]['errors'][_0x237c76][_0x21f886(0x155e)]});}}else _0x4678e9[_0x21f886(0x218e)]({'title':_0x292b56[_0x21f886(0x291)]?'API:'+_0x292b56[_0x21f886(0x291)]+_0x21f886(0x1657)+_0x292b56[_0x21f886(0xc22)]:'api.chatProactiveAction.update','msg':_0x292b56[_0x21f886(0x25c)]?JSON['stringify'](_0x292b56[_0x21f886(0x25c)][_0x21f886(0x155e)]):_0x292b56[_0x21f886(0x147f)]()});});}function _0xecd7b4(_0x38d31c){const _0x197d2b=_0x1facea;_0x4b42b5[_0x197d2b(0x1a7c)]=[];const _0x19a595=_0x565461[_0x197d2b(0x1551)]()['title']('Are\x20you\x20sure?')[_0x197d2b(0x862)](_0x197d2b(0x1343))[_0x197d2b(0x15ad)](_0x197d2b(0x22b4))['ok'](_0x197d2b(0x2594))[_0x197d2b(0x696)](_0x197d2b(0xde1))[_0x197d2b(0x728)](_0x38d31c);_0x565461['show'](_0x19a595)[_0x197d2b(0x1cb0)](function(){const _0x4555fc=_0x197d2b;_0x1aa0e4[_0x4555fc(0x28fc)][_0x4555fc(0x111d)]({'id':_0x4b42b5[_0x4555fc(0x28fc)]['id']})['$promise'][_0x4555fc(0x1cb0)](function(){const _0x3240fc=_0x4555fc;_0x39641b()[_0x3240fc(0x152a)](_0x4b42b5['proactive'],{'id':_0x4b42b5[_0x3240fc(0x28fc)]['id']}),_0x4678e9[_0x3240fc(0x829)]({'title':_0x3240fc(0x2225),'msg':(_0x4b42b5['chatProactiveAction'][_0x3240fc(0x16b6)]||_0x3240fc(0x28fc))+_0x3240fc(0x3f5)}),_0x19b3f7(_0x4b42b5['chatProactiveAction']);})[_0x4555fc(0x1c4)](function(_0x279354){const _0x921554=_0x4555fc;if(_0x279354[_0x921554(0x25c)]&&_0x279354[_0x921554(0x25c)]['errors']&&_0x279354[_0x921554(0x25c)][_0x921554(0x1a7c)][_0x921554(0xfd0)]){_0x4b42b5[_0x921554(0x1a7c)]=_0x279354[_0x921554(0x25c)][_0x921554(0x1a7c)]||[{'message':_0x279354[_0x921554(0x147f)](),'type':_0x921554(0x16e8)}];for(let _0x3294fb=0x0;_0x3294fb<_0x279354[_0x921554(0x25c)][_0x921554(0x1a7c)][_0x921554(0xfd0)];_0x3294fb++){_0x4678e9['error']({'title':_0x279354[_0x921554(0x25c)][_0x921554(0x1a7c)][_0x3294fb]['type'],'msg':_0x279354[_0x921554(0x25c)][_0x921554(0x1a7c)][_0x3294fb]['message']});}}else _0x4678e9[_0x921554(0x218e)]({'title':_0x279354[_0x921554(0x291)]?'API:'+_0x279354['status']+'\x20-\x20'+_0x279354[_0x921554(0xc22)]:'api.chatProactiveAction.delete','msg':_0x279354[_0x921554(0x25c)]?JSON[_0x921554(0x2701)](_0x279354[_0x921554(0x25c)][_0x921554(0x155e)]):_0x279354[_0x921554(0x155e)]||_0x279354[_0x921554(0x147f)]()});});},function(){});}function _0x5c94d8(_0x4ad616){return _0x4ad616===null?undefined:new Date(_0x4ad616);}function _0x19b3f7(_0x334a6f){_0x565461['hide'](_0x334a6f);}}const _0x5848b7=_0x397c5;;_0x5870d3[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463)];function _0x5870d3(_0x1cd4b0){const _0x412dd7=_0x5537c6,_0x1c5706=this;_0x1c5706[_0x412dd7(0x226c)]={},_0x1c5706[_0x412dd7(0x1a8e)]=_0x3217a2,_0x1c5706[_0x412dd7(0x28c7)]={};function _0x3217a2(_0x4cdc45){const _0x34e512=_0x412dd7;_0x1c5706['chatWebsite']=_0x4cdc45,_0x1c5706[_0x34e512(0xf51)]=_0x34e512(0x4e1),_0x1c5706[_0x34e512(0x1fe8)]='\x0a\x20\x20\x20\x20_0xde9037)return _0x4f9089[_0x36ff1d(0x218e)]({'title':_0x36ff1d(0x2749),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x1f9a68+'MB'}),![];const _0x2b1007={'id':_0x432fcd[_0x36ff1d(0x27c2)],'file':_0x432fcd,'type':_0x36ff1d(0x2989)};return _0x1f22d8['chatWebsite'][_0x36ff1d(0x105c)]['unshift'](_0x2b1007),!![];}function _0x6e39b2(){const _0xa1c5ba=_0x2e757a;_0x1f22d8[_0xa1c5ba(0x125a)]['flow'][_0xa1c5ba(0xd56)]['headers']={'X-Requested-With':_0xa1c5ba(0x2711),'Authorization':_0xa1c5ba(0x1923)+_0x40de8b[_0xa1c5ba(0xbf7)](_0xa1c5ba(0x1b26))},_0x1f22d8[_0xa1c5ba(0x125a)][_0xa1c5ba(0xacf)][_0xa1c5ba(0x1c97)]();}function _0x7093d9(_0x431500){const _0x50ee8c=_0x2e757a;angular[_0x50ee8c(0xf90)](_0x1f22d8[_0x50ee8c(0x226c)][_0x50ee8c(0x105c)],function(_0x3e20be){const _0x11eb4f=_0x50ee8c;if(_0x3e20be['id']===_0x431500['uniqueIdentifier']){const _0x188610=new FileReader();_0x188610[_0x11eb4f(0x245d)](_0x3e20be[_0x11eb4f(0x1ac4)][_0x11eb4f(0x1ac4)]),_0x188610[_0x11eb4f(0x198d)]=function(_0xc058dc){const _0x532ce2=_0x11eb4f;_0x3e20be[_0x532ce2(0x135b)]=_0xc058dc['target'][_0x532ce2(0x1205)];},_0x3e20be[_0x11eb4f(0x66a)]=_0x11eb4f(0x499);}});}}const _0x4a64b9=_0x468e15;;_0xc8b117[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'$translate','license',_0x5537c6(0x9ca),_0x5537c6(0x142b),_0x5537c6(0x9bf),'Auth',_0x5537c6(0x226c),_0x5537c6(0x2199)];function _0xc8b117(_0xdd1e7e,_0x158444,_0x2c9f79,_0xbd8fda,_0x588490,_0x199fdf,_0x4de14d,_0x34ad2d,_0x49c483,_0x1520b7,_0x121d70,_0x36f8f1){const _0x51faea=_0x5537c6,_0x17e8d0=this;_0x17e8d0['currentUser']=_0x1520b7[_0x51faea(0x21e8)](),_0x17e8d0[_0x51faea(0x8a5)]=_0x199fdf,_0x17e8d0[_0x51faea(0x9ca)]=_0x4de14d,_0x17e8d0[_0x51faea(0x1b0c)]=_0x17e8d0['setting'][_0x51faea(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x17e8d0[_0x51faea(0x2404)]=_0x158444[_0x51faea(0x2276)]()+_0x51faea(0x138b)+_0x158444['host'](),_0x17e8d0[_0x51faea(0x226c)]=_0x121d70||_0xdd1e7e[_0x51faea(0x1dfe)]['chatWebsite']||{},_0x17e8d0[_0x51faea(0x2199)]=_0x36f8f1&&_0x36f8f1[_0x51faea(0x184d)]==0x1?_0x36f8f1[_0x51faea(0x2214)][0x0]:null,_0x17e8d0['crudPermissions']=_0x1520b7[_0x51faea(0x14ea)](_0x17e8d0[_0x51faea(0x2199)]?_0x17e8d0['userProfileSection']['crudPermissions']:null),_0x17e8d0[_0x51faea(0xf4c)]={},_0x17e8d0[_0x51faea(0x8ec)]=_0xdd1e7e[_0x51faea(0x1dfe)][_0x51faea(0x291e)]||0x0,_0x17e8d0[_0x51faea(0x1379)]=_0x53246e,_0x17e8d0[_0x51faea(0x494)]=_0x49c483[_0x51faea(0x28c7)],_0x17e8d0[_0x51faea(0x1cbb)]=_0x3fe5e7,_0x17e8d0[_0x51faea(0x8c8)]=_0x5fdb77,_0x1520b7[_0x51faea(0x22b6)](_0x51faea(0x1c60))?_0x34ad2d[_0x51faea(0x22f2)][_0x51faea(0xbf7)]({'fields':'id,name','sort':'name'})[_0x51faea(0x1d77)][_0x51faea(0x1cb0)](function(_0x4e9364){const _0x5799c5=_0x51faea;_0x17e8d0[_0x5799c5(0x1046)]=_0x4e9364[_0x5799c5(0x2214)]||[];})[_0x51faea(0x1c4)](function(_0x3ae01f){const _0x56d610=_0x51faea;_0x49c483[_0x56d610(0x218e)]({'title':_0x3ae01f[_0x56d610(0x291)]?'API:'+_0x3ae01f[_0x56d610(0x291)]+_0x56d610(0x1657)+_0x3ae01f[_0x56d610(0xc22)]:_0x56d610(0x149e),'msg':_0x3ae01f[_0x56d610(0x25c)]?JSON['stringify'](_0x3ae01f['data']):_0x3ae01f[_0x56d610(0x147f)]()});}):_0x34ad2d[_0x51faea(0x22f2)][_0x51faea(0xbf7)]({'fields':_0x51faea(0x43c),'sort':_0x51faea(0x16b6)})[_0x51faea(0x1d77)][_0x51faea(0x1cb0)](function(_0xfc9d4){const _0x1b9076=_0x51faea;_0x17e8d0['lists']=_0xfc9d4[_0x1b9076(0x2214)]||[];})['then'](function(){const _0x384d08=_0x51faea;return _0x34ad2d[_0x384d08(0x2199)][_0x384d08(0xbf7)]({'userProfileId':_0x17e8d0['currentUser'][_0x384d08(0x13c1)],'sectionId':0x12d})[_0x384d08(0x1d77)];})[_0x51faea(0x1cb0)](function(_0x21710e){const _0x2f2c8b=_0x51faea,_0x34d3f6=_0x21710e&&_0x21710e[_0x2f2c8b(0x2214)]?_0x21710e['rows'][0x0]:null;if(!_0x34d3f6){const _0x3ddad0=[];let _0x3949e7=null;_0x17e8d0[_0x2f2c8b(0x226c)]&&(_0x3949e7=_0x39641b()[_0x2f2c8b(0x13b4)](_0x17e8d0[_0x2f2c8b(0x1046)],{'id':Number(_0x17e8d0[_0x2f2c8b(0x226c)]['ListId'])}));for(let _0x3e5f7b=0x0;_0x3e5f7b<_0x17e8d0['lists'][_0x2f2c8b(0xfd0)];_0x3e5f7b++){_0x3949e7&&_0x17e8d0['lists'][_0x3e5f7b]['id']===_0x3949e7['id']&&(_0x17e8d0[_0x2f2c8b(0x1046)][_0x3e5f7b][_0x2f2c8b(0x15da)]=![],_0x3ddad0['push'](_0x17e8d0[_0x2f2c8b(0x1046)][_0x3e5f7b]));}_0x17e8d0[_0x2f2c8b(0x1046)]=_0x3ddad0;}else{if(!_0x34d3f6[_0x2f2c8b(0x12f4)])return _0x34ad2d[_0x2f2c8b(0x1198)][_0x2f2c8b(0xbf7)]({'sectionId':_0x34d3f6['id']})[_0x2f2c8b(0x1d77)][_0x2f2c8b(0x1cb0)](function(_0x1d1c3c){const _0x5c66a1=_0x2f2c8b,_0x2dc5ee=_0x39641b()[_0x5c66a1(0x1de2)](_0x1d1c3c[_0x5c66a1(0x2214)],function(_0x209b45){const _0x454e8e=_0x5c66a1;return _0x39641b()[_0x454e8e(0x13b4)](_0x17e8d0[_0x454e8e(0x1046)],{'id':_0x209b45[_0x454e8e(0x2982)]});});let _0x29bc2c=null;_0x17e8d0[_0x5c66a1(0x226c)]&&(_0x29bc2c=_0x39641b()[_0x5c66a1(0x13b4)](_0x17e8d0[_0x5c66a1(0x1046)],{'id':Number(_0x17e8d0[_0x5c66a1(0x226c)][_0x5c66a1(0x20a6)])}));if(_0x29bc2c&&!_0x39641b()[_0x5c66a1(0x727)](_0x2dc5ee,['id',_0x29bc2c['id']])){const _0x215cb1=_0x39641b()[_0x5c66a1(0x13b4)](_0x17e8d0['lists'],{'id':_0x29bc2c['id']});_0x215cb1[_0x5c66a1(0x15da)]=![],_0x2dc5ee[_0x5c66a1(0x2785)](_0x215cb1);}_0x17e8d0[_0x5c66a1(0x1046)]=_0x2dc5ee;});}})[_0x51faea(0x1c4)](function(_0x4693f7){const _0x59ce1a=_0x51faea;_0x49c483['error']({'title':_0x4693f7[_0x59ce1a(0x291)]?_0x59ce1a(0xeb9)+_0x4693f7[_0x59ce1a(0x291)]+_0x59ce1a(0x1657)+_0x4693f7[_0x59ce1a(0xc22)]:_0x59ce1a(0x113c),'msg':_0x4693f7[_0x59ce1a(0x25c)]?JSON[_0x59ce1a(0x2701)](_0x4693f7[_0x59ce1a(0x25c)]):_0x4693f7[_0x59ce1a(0x147f)]()});}),_0x1520b7[_0x51faea(0x22b6)]('admin')?_0x34ad2d[_0x51faea(0x1ac8)][_0x51faea(0xbf7)]({'fields':_0x51faea(0x43c),'sort':_0x51faea(0x16b6),'IntervalId':'null'})[_0x51faea(0x1d77)][_0x51faea(0x1cb0)](function(_0x38d96f){const _0x49d2b6=_0x51faea;_0x17e8d0[_0x49d2b6(0x1ac8)]=_0x38d96f[_0x49d2b6(0x2214)]||[];})[_0x51faea(0x1c4)](function(_0x1560c0){const _0x4f9f2c=_0x51faea;_0x49c483[_0x4f9f2c(0x218e)]({'title':_0x1560c0[_0x4f9f2c(0x291)]?_0x4f9f2c(0xeb9)+_0x1560c0[_0x4f9f2c(0x291)]+'\x20-\x20'+_0x1560c0[_0x4f9f2c(0xc22)]:_0x4f9f2c(0x1917),'msg':_0x1560c0[_0x4f9f2c(0x25c)]?JSON[_0x4f9f2c(0x2701)](_0x1560c0[_0x4f9f2c(0x25c)]):_0x1560c0[_0x4f9f2c(0x147f)]()});}):_0x34ad2d['interval'][_0x51faea(0xbf7)]({'fields':_0x51faea(0x43c),'sort':_0x51faea(0x16b6),'IntervalId':_0x51faea(0xd38)})[_0x51faea(0x1d77)][_0x51faea(0x1cb0)](function(_0x3370c2){const _0x5abdba=_0x51faea;_0x17e8d0[_0x5abdba(0x1ac8)]=_0x3370c2['rows']||[];})[_0x51faea(0x1cb0)](function(){const _0x417eb1=_0x51faea;return _0x34ad2d[_0x417eb1(0x2199)][_0x417eb1(0xbf7)]({'userProfileId':_0x17e8d0[_0x417eb1(0xe76)][_0x417eb1(0x13c1)],'sectionId':0x3ec})[_0x417eb1(0x1d77)];})[_0x51faea(0x1cb0)](function(_0x4822c0){const _0x53b60e=_0x51faea,_0x539351=_0x4822c0&&_0x4822c0['rows']?_0x4822c0[_0x53b60e(0x2214)][0x0]:null;if(!_0x539351){const _0x167f6c=[];let _0x473fd0=null;_0x17e8d0[_0x53b60e(0x226c)]&&(_0x473fd0=_0x39641b()[_0x53b60e(0x13b4)](_0x17e8d0[_0x53b60e(0x1ac8)],{'id':Number(_0x17e8d0[_0x53b60e(0x226c)][_0x53b60e(0x1a60)])}));for(let _0x53a6f9=0x0;_0x53a6f9<_0x17e8d0[_0x53b60e(0x1ac8)]['length'];_0x53a6f9++){_0x473fd0&&_0x17e8d0[_0x53b60e(0x1ac8)][_0x53a6f9]['id']===_0x473fd0['id']&&(_0x17e8d0[_0x53b60e(0x1ac8)][_0x53a6f9][_0x53b60e(0x15da)]=![],_0x167f6c['push'](_0x17e8d0[_0x53b60e(0x1ac8)][_0x53a6f9]));}_0x17e8d0[_0x53b60e(0x1ac8)]=_0x167f6c;}else{if(!_0x539351['autoAssociation'])return _0x34ad2d[_0x53b60e(0x1198)]['get']({'sectionId':_0x539351['id']})[_0x53b60e(0x1d77)][_0x53b60e(0x1cb0)](function(_0x128adf){const _0x2e1c00=_0x53b60e,_0x1474f6=_0x39641b()[_0x2e1c00(0x1de2)](_0x128adf[_0x2e1c00(0x2214)],function(_0x312465){const _0x2d9c97=_0x2e1c00;return _0x39641b()[_0x2d9c97(0x13b4)](_0x17e8d0['interval'],{'id':_0x312465[_0x2d9c97(0x2982)]});});let _0x2f0898=null;_0x17e8d0[_0x2e1c00(0x226c)]&&(_0x2f0898=_0x39641b()[_0x2e1c00(0x13b4)](_0x17e8d0[_0x2e1c00(0x1ac8)],{'id':Number(_0x17e8d0[_0x2e1c00(0x226c)][_0x2e1c00(0x1a60)])}));if(_0x2f0898&&!_0x39641b()[_0x2e1c00(0x727)](_0x1474f6,['id',_0x2f0898['id']])){const _0x14ca42=_0x39641b()[_0x2e1c00(0x13b4)](_0x17e8d0[_0x2e1c00(0x1ac8)],{'id':_0x2f0898['id']});_0x14ca42[_0x2e1c00(0x15da)]=![],_0x1474f6[_0x2e1c00(0x2785)](_0x14ca42);}_0x17e8d0['interval']=_0x1474f6;});}})['catch'](function(_0x89a255){const _0x4fb087=_0x51faea;_0x49c483[_0x4fb087(0x218e)]({'title':_0x89a255[_0x4fb087(0x291)]?_0x4fb087(0xeb9)+_0x89a255[_0x4fb087(0x291)]+_0x4fb087(0x1657)+_0x89a255['statusText']:_0x4fb087(0x1b58),'msg':_0x89a255['data']?JSON[_0x4fb087(0x2701)](_0x89a255[_0x4fb087(0x25c)]):_0x89a255['toString']()});}),_0x1520b7['hasRole'](_0x51faea(0x1c60))?_0x34ad2d[_0x51faea(0x785)][_0x51faea(0xbf7)]({'fields':'name,id','sort':_0x51faea(0x16b6),'nolimit':_0x51faea(0x44d)})['$promise'][_0x51faea(0x1cb0)](function(_0x46791e){const _0x5d8f4f=_0x51faea;_0x17e8d0[_0x5d8f4f(0x8de)]=_0x46791e[_0x5d8f4f(0x2214)]||[];})[_0x51faea(0x1c4)](function(_0x138482){const _0x4cea3a=_0x51faea;_0x49c483[_0x4cea3a(0x218e)]({'title':_0x138482['status']?_0x4cea3a(0xeb9)+_0x138482[_0x4cea3a(0x291)]+'\x20-\x20'+_0x138482['statusText']:'SYSTEM:GET_PAUSES','msg':_0x138482[_0x4cea3a(0x25c)]?JSON[_0x4cea3a(0x2701)](_0x138482[_0x4cea3a(0x25c)]):_0x138482[_0x4cea3a(0x147f)]()});}):_0x34ad2d['pause'][_0x51faea(0xbf7)]({'fields':_0x51faea(0x791),'sort':_0x51faea(0x16b6),'nolimit':_0x51faea(0x44d)})[_0x51faea(0x1d77)][_0x51faea(0x1cb0)](function(_0x1db52a){const _0x5f47ba=_0x51faea;_0x17e8d0[_0x5f47ba(0x8de)]=_0x1db52a[_0x5f47ba(0x2214)]||[];})['then'](function(){const _0x20c366=_0x51faea;return _0x34ad2d[_0x20c366(0x2199)][_0x20c366(0xbf7)]({'userProfileId':_0x17e8d0[_0x20c366(0xe76)]['userProfileId'],'sectionId':0x3ed})[_0x20c366(0x1d77)];})['then'](function(_0x2a5cc3){const _0x3b9c41=_0x51faea,_0x5d4cad=_0x2a5cc3&&_0x2a5cc3[_0x3b9c41(0x2214)]?_0x2a5cc3[_0x3b9c41(0x2214)][0x0]:null;if(!_0x5d4cad)_0x17e8d0[_0x3b9c41(0x8de)]=[];else{if(!_0x5d4cad[_0x3b9c41(0x12f4)])return _0x34ad2d['userProfileResource'][_0x3b9c41(0xbf7)]({'sectionId':_0x5d4cad['id']})[_0x3b9c41(0x1d77)][_0x3b9c41(0x1cb0)](function(_0x226489){const _0x58b390=_0x3b9c41,_0x5cb161=_0x39641b()[_0x58b390(0x1de2)](_0x226489[_0x58b390(0x2214)],function(_0x442e2f){const _0x3a97fd=_0x58b390;return _0x39641b()[_0x3a97fd(0x13b4)](_0x17e8d0['pauses'],{'id':_0x442e2f[_0x3a97fd(0x2982)]});});_0x17e8d0[_0x58b390(0x8de)][_0x58b390(0xf90)](function(_0x184e47){const _0x4987e8=_0x58b390;!_0x39641b()['some'](_0x5cb161,['id',_0x184e47['id']])&&(_0x184e47[_0x4987e8(0x15da)]=![]),_0x5cb161[_0x4987e8(0x2785)](_0x184e47);}),_0x17e8d0['pauses']=_0x5cb161;});}})[_0x51faea(0x1c4)](function(_0x36bda2){const _0x380581=_0x51faea;_0x49c483[_0x380581(0x218e)]({'title':_0x36bda2['status']?_0x380581(0xeb9)+_0x36bda2[_0x380581(0x291)]+'\x20-\x20'+_0x36bda2[_0x380581(0xc22)]:'SYSTEM:GETpauses','msg':_0x36bda2[_0x380581(0x25c)]?JSON[_0x380581(0x2701)](_0x36bda2['data']):_0x36bda2['toString']()});});function _0x53246e(_0x1b2464,_0x2a709a){const _0x25bc54=_0x51faea;_0x2c9f79[_0x25bc54(0xe27)]({'controller':_0x25bc54(0x1db9),'controllerAs':'vm','templateUrl':_0x316723,'parent':angular[_0x25bc54(0x1853)](_0xbd8fda[_0x25bc54(0x1ed9)]),'targetEvent':_0x2a709a,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x1b2464,'chatWebsites':_0x17e8d0[_0x25bc54(0x2137)]?_0x17e8d0['chatWebsites'][_0x25bc54(0x2214)]:[],'crudPermissions':_0x17e8d0[_0x25bc54(0x1b1a)],'realtime':![]}});}function _0x3fe5e7(){const _0x41e015=_0x51faea;_0xdd1e7e['go']('app.chat.chatWebsites',{},{'reload':_0x41e015(0x6ba)});}function _0x5fdb77(){const _0x53adce=_0x51faea;_0x34ad2d[_0x53adce(0x226c)][_0x53adce(0x687)]({'id':_0x17e8d0['chatWebsite']['id']},_0x17e8d0[_0x53adce(0x226c)])[_0x53adce(0x1d77)]['then'](function(){const _0x44d3ec=_0x53adce;_0x49c483[_0x44d3ec(0x829)]({'title':'ChatWebsite\x20updated!','msg':_0x17e8d0[_0x44d3ec(0x226c)]['name']?_0x17e8d0[_0x44d3ec(0x226c)][_0x44d3ec(0x16b6)]+'\x20has\x20been\x20updated!':''});})[_0x53adce(0x1c4)](function(_0x257a6b){const _0x319fd3=_0x53adce;_0x49c483[_0x319fd3(0x218e)]({'title':_0x257a6b[_0x319fd3(0x291)]?'API:'+_0x257a6b['status']+_0x319fd3(0x1657)+_0x257a6b[_0x319fd3(0xc22)]:'SYSTEM:GETchatWebsite','msg':_0x257a6b[_0x319fd3(0x25c)]?JSON[_0x319fd3(0x2701)](_0x257a6b[_0x319fd3(0x25c)]):_0x257a6b[_0x319fd3(0x147f)]()});});}}const _0x1afb68=_0xc8b117;;_0x2db816[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6),_0x5537c6(0x1f2a)];function _0x2db816(_0x216ae4,_0xd844c5){const _0x2cd4b6=_0x5537c6;_0x216ae4[_0x2cd4b6(0x27e0)](_0x2cd4b6(0x800),{'abstract':!![],'url':'/chat'})['state'](_0x2cd4b6(0x1c96),{'url':_0x2cd4b6(0x2833),'views':{'content@app':{'templateUrl':_0xe068ae,'controller':_0x2cd4b6(0xa8a)}},'resolve':{'chatQueues':[_0x2cd4b6(0x1e0b),'Auth',function(_0x5d5296,_0x3beab0){const _0x4be948=_0x2cd4b6;return _0x3beab0[_0x4be948(0x22b6)](_0x4be948(0x1c60))?_0x5d5296[_0x4be948(0x19a3)]('chatQueue@get',{'fields':_0x4be948(0x22f3),'sort':_0x4be948(0x282),'channel':'chat','limit':0xa,'offset':0x0}):_0x5d5296[_0x4be948(0x19a3)](_0x4be948(0x12da),{'id':_0x3beab0[_0x4be948(0x21e8)]()[_0x4be948(0x13c1)],'section':'ChatQueues','fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':'-updatedAt','channel':'chat','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x24c765,_0x5ca901){const _0xf36920=_0x2cd4b6;return _0x5ca901[_0xf36920(0x22b6)](_0xf36920(0x1c60))?null:_0x24c765[_0xf36920(0x19a3)](_0xf36920(0x9ae),{'fields':_0xf36920(0x279),'id':_0x5ca901[_0xf36920(0x21e8)]()[_0xf36920(0x13c1)]});}],'userProfileSection':[_0x2cd4b6(0x1e0b),_0x2cd4b6(0x1774),function(_0x3ebf2c,_0x54b3e7){const _0x6f5926=_0x2cd4b6;return _0x54b3e7[_0x6f5926(0x22b6)]('admin')?null:_0x3ebf2c[_0x6f5926(0x19a3)](_0x6f5926(0x2182),{'fields':_0x6f5926(0x1f5f),'userProfileId':_0x54b3e7[_0x6f5926(0x21e8)]()[_0x6f5926(0x13c1)],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':'chat'})[_0x2cd4b6(0x27e0)](_0x2cd4b6(0x16c7),{'url':_0x2cd4b6(0x1bf2),'params':{'chatQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x51d0c9,'controller':'ChatQueueController\x20as\x20vm'}},'resolve':{'chatQueue':[_0x2cd4b6(0x1e0b),'$stateParams',function(_0x2e5034,_0x3e6cb0){const _0x293db6=_0x2cd4b6;return _0x2e5034[_0x293db6(0x19a3)](_0x293db6(0x29c0),{'fields':_0x293db6(0x22f3),'id':_0x3e6cb0['id']});}],'userProfileSection':[_0x2cd4b6(0x1e0b),_0x2cd4b6(0x1774),function(_0x5a4fcd,_0x3597b6){const _0x3f37dc=_0x2cd4b6;return _0x5a4fcd[_0x3f37dc(0x19a3)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3597b6[_0x3f37dc(0x21e8)]()[_0x3f37dc(0x13c1)],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0x2cd4b6(0x174c)})[_0x2cd4b6(0x27e0)](_0x2cd4b6(0x6ba),{'url':'/chatWebsites','views':{'content@app':{'templateUrl':_0x2360f3,'controller':_0x2cd4b6(0x6a4)}},'resolve':{'chatWebsites':[_0x2cd4b6(0x1e0b),'Auth',function(_0x221b5b,_0x334bf9){const _0x2c0202=_0x2cd4b6;return _0x334bf9[_0x2c0202(0x22b6)](_0x2c0202(0x1c60))?_0x221b5b['resolve'](_0x2c0202(0xad5),{'fields':_0x2c0202(0x12a4),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x221b5b[_0x2c0202(0x19a3)](_0x2c0202(0x12da),{'id':_0x334bf9[_0x2c0202(0x21e8)]()[_0x2c0202(0x13c1)],'section':'ChatWebsites','fields':'createdAt,updatedAt,id,token,agentIdentifier,customerAlias,messageFontSize,name,key,address,remote,ListId,fidelity,timeout,agentAlias,closingQuestion,formSubmitSuccessMessage,formSubmitFailureMessage,color,color_focus,color_button,textColor,backgroundColor,fontSize,header_shape,showAgentAvatar,showCustomerAvatar,alignment,verticalAlignment,messagesAlignment,defaultTitle,animation,defaultWhiteLabel,whiteLabel,defaultLogo,conditionAgreement,autoclose,enableUnmanagedNote,unmanagedMessage,skipUnmanaged,sendUnmanaged,enableCustomerWriting,waitingTitle,waitingMessage,closingMessage,noteTitle,placeholderMessage,skipMessageButton,enableRating,ratingType,ratingStarsNumber,enableFeedback,feedbackTitle,forwardTranscript,forwardTranscriptMessage,closingMessageButton,download_transcript,enableCustomerAttachment,enableSendButton,enableCustomerCheckmarks,systemAlias,enquiry_enable,enquiry_forwarding,enquiry_forwarding_address,name_title,username_placeholder,email_title,email_placeholder,header_online,hideWhenOffline,header_offline,start_chat_button,offline_chat_button,offlineMessageSubject,offlineMessageBody,offline_message,message_title,enquiry_message_placeholder,enquiry_button,rating_message,rating_send,rating_skip,onlineForm,offlineForm,mapKey,mapKeyOffline,forwardOffline,forwardOfflineAddress,IntervalId,timezone,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout,vidaooEscalation,vidaooApiKey','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x2cd4b6(0x1e0b),_0x2cd4b6(0x1774),function(_0x2f17ed,_0x33fa62){const _0xf1eaf4=_0x2cd4b6;return _0x33fa62['hasRole']('admin')?null:_0x2f17ed[_0xf1eaf4(0x19a3)](_0xf1eaf4(0x9ae),{'fields':_0xf1eaf4(0x279),'id':_0x33fa62[_0xf1eaf4(0x21e8)]()[_0xf1eaf4(0x13c1)]});}],'userProfileSection':[_0x2cd4b6(0x1e0b),'Auth',function(_0x5f0c4e,_0x5def4e){const _0x5e911e=_0x2cd4b6;return _0x5def4e['hasRole']('admin')?null:_0x5f0c4e[_0x5e911e(0x19a3)]('userProfileSection@get',{'fields':_0x5e911e(0x1f5f),'userProfileId':_0x5def4e[_0x5e911e(0x21e8)]()['userProfileId'],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0x2cd4b6(0x174c)})[_0x2cd4b6(0x27e0)](_0x2cd4b6(0x10ae),{'url':_0x2cd4b6(0x1bf2),'params':{'chatWebsite':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x8ebc41,'controller':'ChatWebsiteController\x20as\x20vm'}},'resolve':{'chatWebsite':[_0x2cd4b6(0x1e0b),_0x2cd4b6(0x225c),function(_0x9df84d,_0x37f4b6){const _0x20deba=_0x2cd4b6;return _0x9df84d[_0x20deba(0x19a3)](_0x20deba(0xad5),{'fields':_0x20deba(0x12a4),'id':_0x37f4b6['id']});}],'userProfileSection':[_0x2cd4b6(0x1e0b),_0x2cd4b6(0x1774),function(_0x2dc82b,_0x4527a6){const _0x3c6542=_0x2cd4b6;return _0x2dc82b[_0x3c6542(0x19a3)]('userProfileSection@get',{'fields':_0x3c6542(0x1f5f),'userProfileId':_0x4527a6['getCurrentUser']()[_0x3c6542(0x13c1)],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0x2cd4b6(0x174c)}),_0xd844c5[_0x2cd4b6(0x4e7)](_0x2cd4b6(0xdf3));}angular[_0x5537c6(0x9ab)](_0x5537c6(0x800),[_0x5537c6(0x2770),_0x5537c6(0x2135),_0x5537c6(0x1260),'flow','mdColorPicker',_0x5537c6(0xd19),_0x5537c6(0x44c),_0x5537c6(0x2ec),_0x5537c6(0x1890),_0x5537c6(0x167d),_0x5537c6(0x208f),_0x5537c6(0x1b65),_0x5537c6(0x2166),_0x5537c6(0x3b9),_0x5537c6(0x7c9),_0x5537c6(0xeb5),_0x5537c6(0x27af),_0x5537c6(0x13b6),_0x5537c6(0x1cbd),_0x5537c6(0xd01),_0x5537c6(0x2468)])[_0x5537c6(0xa60)](_0x2db816)['controller'](_0x5537c6(0x1088),_0x178e04)[_0x5537c6(0x6e5)](_0x5537c6(0x12c5),_0x3c8291)['controller'](_0x5537c6(0x6dd),_0x3d9ca5)[_0x5537c6(0x6e5)](_0x5537c6(0x151a),_0x3d2f51)[_0x5537c6(0x6e5)](_0x5537c6(0x1fe6),_0xffd31b)[_0x5537c6(0x6e5)](_0x5537c6(0x2139),_0x384f40)[_0x5537c6(0x6e5)](_0x5537c6(0x4e2),_0x56dfdc)[_0x5537c6(0x6e5)](_0x5537c6(0x138d),_0x38084a)[_0x5537c6(0x6e5)](_0x5537c6(0x1db9),_0x37f0cf)[_0x5537c6(0x6e5)](_0x5537c6(0xa7d),_0x4459e1)[_0x5537c6(0x6e5)](_0x5537c6(0x10e2),_0x4579a3)[_0x5537c6(0x6e5)]('EditChatWebsiteAppamazonlexDialogController',_0x4ca663)[_0x5537c6(0x6e5)](_0x5537c6(0x1488),_0x4ca663)[_0x5537c6(0x6e5)](_0x5537c6(0x1744),_0x5b3f4a)[_0x5537c6(0x6e5)]('EditChatWebsiteAppcloseDialogController',_0x2a383f)['controller'](_0x5537c6(0x2691),_0x10fc86)[_0x5537c6(0x6e5)](_0x5537c6(0x94f),_0x6a385a)[_0x5537c6(0x6e5)]('EditChatWebsiteAppgotopDialogController',_0x24b804)['controller'](_0x5537c6(0x1a19),_0x1a2682)[_0x5537c6(0x6e5)](_0x5537c6(0x19da),_0x27be5c)[_0x5537c6(0x6e5)](_0x5537c6(0xfdf),_0x15b893)[_0x5537c6(0x6e5)](_0x5537c6(0x1fa0),_0x2b59dd)[_0x5537c6(0x6e5)](_0x5537c6(0x9cb),_0x14d15c)['controller'](_0x5537c6(0x12d2),_0x16d587)[_0x5537c6(0x6e5)](_0x5537c6(0x1b7b),_0x2a8571)[_0x5537c6(0x6e5)](_0x5537c6(0x1e03),_0x52614b)[_0x5537c6(0x6e5)](_0x5537c6(0x19e9),_0xfbe62e)[_0x5537c6(0x6e5)](_0x5537c6(0x27f1),_0x309eb5)[_0x5537c6(0x6e5)](_0x5537c6(0x238f),_0x4dc3c0)[_0x5537c6(0x6e5)](_0x5537c6(0x6cd),_0x59eb72)[_0x5537c6(0x6e5)](_0x5537c6(0xe98),_0x2021c3)[_0x5537c6(0x6e5)]('ChatWebsiteOfflineMessagesController',_0x555e75)[_0x5537c6(0x6e5)](_0x5537c6(0x710),_0x1a5e26)[_0x5537c6(0x6e5)](_0x5537c6(0x11b7),_0xd8e815)[_0x5537c6(0x6e5)]('CreateOrEditChatProactiveActionDialogController',_0x5848b7)['controller'](_0x5537c6(0x2520),_0x394de2)[_0x5537c6(0x6e5)]('ChatWebsitesystemAvatarController',_0x4a64b9)['controller'](_0x5537c6(0x8c1),_0x1afb68);;const _0x57a73b=_0x5074a3['p']+_0x5537c6(0x20f9);;const _0x527e29=_0x5074a3['p']+'src/js/modules/main/apps/mail/views/realtime/agents/view.html/view.html';;const _0x7fe7d2=_0x5074a3['p']+_0x5537c6(0x74b);;const _0x2e801d=_0x5074a3['p']+_0x5537c6(0x21ef);;_0x472ce8[_0x5537c6(0x15b6)]=['$scope','$q',_0x5537c6(0x2168),_0x5537c6(0xcb9),'$document',_0x5537c6(0xc34),_0x5537c6(0x8de),_0x5537c6(0xc12),_0x5537c6(0x212d),_0x5537c6(0x142b),'socket','toasty',_0x5537c6(0x125c),'userProfile',_0x5537c6(0x2199),'Auth','license',_0x5537c6(0x1714)];function _0x472ce8(_0x360113,_0x242499,_0xa57829,_0x480e12,_0x30dc6e,_0x9dba64,_0x18aff7,_0x26f85f,_0x39dd14,_0x4d35d1,_0x287696,_0x1b8608,_0x5044ef,_0x4e4d30,_0x57578e,_0x2f7082,_0x3c57ab,_0x80448f){const _0x3b514=_0x5537c6,_0x818325=this,_0x51b0aa=[_0x3b514(0x70a),_0x3b514(0xa28),_0x3b514(0x24a2),_0x3b514(0x25db),'pauseType','lastPauseAt',_0x3b514(0xdbd),_0x3b514(0x16aa),_0x3b514(0xf0c),_0x3b514(0x1c7d),_0x3b514(0x2035),_0x3b514(0x22d3),_0x3b514(0x24ff),_0x3b514(0x1ce),'voicePause','chatCapacity','openchannelCapacity',_0x3b514(0x2789),_0x3b514(0x3d0),_0x3b514(0x9cd),_0x3b514(0x2451),_0x3b514(0x132d),'openchannelCurrentCapacity',_0x3b514(0x2947),_0x3b514(0x2472),'whatsappCurrentCapacity',_0x3b514(0x2336),_0x3b514(0x2208),_0x3b514(0x1446),_0x3b514(0x11b2),_0x3b514(0xe82),_0x3b514(0x2453),'faxStatus',_0x3b514(0x2de),_0x3b514(0x1b11),_0x3b514(0x22a6),_0x3b514(0x568),_0x3b514(0x9eb),_0x3b514(0x2064),_0x3b514(0x1997),_0x3b514(0xc9c),_0x3b514(0x11cf),_0x3b514(0x247),_0x3b514(0x24c5),_0x3b514(0x2569),_0x3b514(0x1f23)],_0x9fae3e=[_0x3b514(0xf0c),_0x3b514(0x1c7d),_0x3b514(0x2035),_0x3b514(0x22d3),'whatsappPause',_0x3b514(0x1ce),'voicePause','online'];_0x818325['currentUser']=_0x2f7082[_0x3b514(0x21e8)](),_0x818325[_0x3b514(0x46c)]=[_0x3b514(0x1c7e),_0x3b514(0x8d2),_0x3b514(0x5b2),_0x3b514(0x1e6f),_0x3b514(0x1abd)],_0x818325[_0x3b514(0x8de)]=_0x18aff7||{'count':0x0,'rows':[]},_0x818325['license']=_0x3c57ab,_0x818325[_0x3b514(0x44a)]=_0x4e4d30,_0x818325[_0x3b514(0x2199)]=_0x57578e&&_0x57578e[_0x3b514(0x184d)]==0x1?_0x57578e[_0x3b514(0x2214)][0x0]:null,_0x818325[_0x3b514(0x1b1a)]=_0x2f7082['parseCrudPermissions'](_0x818325['userProfileSection']?_0x818325[_0x3b514(0x2199)][_0x3b514(0x1b1a)]:null),_0x818325[_0x3b514(0xc12)]=_0x26f85f?_0x39641b()[_0x3b514(0x2631)](_0x26f85f[_0x3b514(0x2214)]?_0x26f85f[_0x3b514(0x2214)]:[],'id'):{},_0x818325[_0x3b514(0x212d)]=_0x39dd14?_0x39641b()['keyBy'](_0x39dd14['rows']?_0x39dd14[_0x3b514(0x2214)]:[],'id'):{},_0x818325[_0x3b514(0x260a)]={},_0x818325[_0x3b514(0x997)]=![],_0x818325[_0x3b514(0x237f)]=[],_0x818325[_0x3b514(0x1fdd)]={};for(const _0x53acd9 in _0x818325[_0x3b514(0xc12)]){typeof _0x818325[_0x3b514(0xc12)][_0x53acd9]!==_0x3b514(0x16b5)&&(_0x818325['agents'][_0x53acd9][_0x3b514(0x1a8e)]=!![]);}_0x818325[_0x3b514(0xae2)]={'limit':0xa,'page':0x1,'order':_0x3b514(0x1d14),'globalStatusFilter':'','pauseTypeFilter':''},_0x818325[_0x3b514(0x1366)]=_0x2d4b41,_0x818325[_0x3b514(0x6ad)]=_0x1f30e0,_0x818325['pause']=_0x1a95d9,_0x818325['unPause']=_0x41fc71,_0x818325[_0x3b514(0x191a)]=_0x42c726,_0x818325[_0x3b514(0x616)]=_0x29b428,_0x818325['getAgentGlobalStatus']=_0x3bcee8,_0x818325[_0x3b514(0x1090)]=_0x402dce,_0x818325[_0x3b514(0x225e)]=_0x385f3b,_0x818325[_0x3b514(0x1bc4)]=_0x1c4d9f,_0x818325[_0x3b514(0x294c)]=_0x342c40,_0x818325['onUpdate']=_0x5c5d92,_0x818325['onInit']=_0x4fc8b9,_0x818325[_0x3b514(0x1978)]=_0x4306b2,_0x818325[_0x3b514(0x1b4a)]=_0x3321a8,_0x818325[_0x3b514(0xd97)]=_0x322595,_0x287696['on'](_0x3b514(0x2464),_0x818325[_0x3b514(0x294c)]),_0x287696['on'](_0x3b514(0x14c6),_0x818325[_0x3b514(0x13e7)]),_0x287696['on']('user:agentconnect',_0x818325['onConnect']),_0x287696['on']('user:agentcomplete',_0x818325['onComplete']),_0x4fc8b9();let _0x52e8a8=_0x80448f(function(){const _0x5b544e=_0x3b514;_0x818325['load']&&(_0x818325[_0x5b544e(0x997)]=![],_0x4fc8b9());},0x3e7);function _0x4fc8b9(){const _0x18b5f2=_0x3b514;_0x818325['load']=![];const _0x5bde12=_0x242499[_0x18b5f2(0x11f4)]();_0x818325['promise']=_0x5bde12[_0x18b5f2(0x2061)],_0x818325[_0x18b5f2(0xe0e)]=[],_0x818325['order']=[],_0x39641b()[_0x18b5f2(0x1ebd)](_0x818325[_0x18b5f2(0xc12)],function(_0x402ab8,_0x2f605a){const _0x4fdc8e=_0x18b5f2;_0x818325[_0x4fdc8e(0x212d)][_0x2f605a]&&_0x39641b()['merge'](_0x402ab8,_0x39641b()[_0x4fdc8e(0x169b)](_0x39641b()[_0x4fdc8e(0x1bd8)](_0x818325[_0x4fdc8e(0x212d)][_0x2f605a],_0x9fae3e),_0x51b0aa)),_0x3bcee8(_0x402ab8),_0x402ab8[_0x4fdc8e(0xa28)]?(_0x818325[_0x4fdc8e(0xe0e)][_0x4fdc8e(0x2785)](_0x402ab8),_0x818325['agentInternal'][_0x402ab8[_0x4fdc8e(0xdbd)]]=_0x2f605a):_0x402ab8['globalStatusTime']=_0x39641b()[_0x4fdc8e(0x106d)](_0x543b5a()()[_0x4fdc8e(0x1f31)]('x'));});_0x818325[_0x18b5f2(0xae2)]['globalStatusFilter']&&_0x39641b()['remove'](_0x818325[_0x18b5f2(0xe0e)],function(_0x48af89){const _0xc7d36c=_0x18b5f2;return _0x48af89['globalStatus']!==_0x818325['query'][_0xc7d36c(0x1ef1)];});_0x818325[_0x18b5f2(0xae2)]['pauseTypeFilter']&&_0x39641b()[_0x18b5f2(0x152a)](_0x818325[_0x18b5f2(0xe0e)],function(_0x455d34){const _0x3b6e38=_0x18b5f2;return _0x455d34[_0x3b6e38(0x16e6)]!==_0x818325[_0x3b6e38(0xae2)][_0x3b6e38(0x25ff)];});_0x818325[_0x18b5f2(0xae2)][_0x18b5f2(0x1c99)]&&_0x39641b()[_0x18b5f2(0x152a)](_0x818325['filteredAgents'],function(_0x3755c3){const _0x1627b7=_0x18b5f2;return _0x3755c3[_0x1627b7(0x1d14)][_0x1627b7(0x1680)]()[_0x1627b7(0xd8a)](_0x818325['query'][_0x1627b7(0x1c99)][_0x1627b7(0x1680)]())<0x0;});_0x818325[_0x18b5f2(0xe0e)]=_0x57d31b(_0x818325[_0x18b5f2(0xe0e)]);const _0x34d49c=(_0x818325['query'][_0x18b5f2(0x1c7b)]-0x1)*_0x818325[_0x18b5f2(0xae2)][_0x18b5f2(0x236)];_0x818325[_0x18b5f2(0x260a)]=_0x39641b()['drop'](_0x818325[_0x18b5f2(0xe0e)],_0x34d49c)[_0x18b5f2(0x14cb)](0x0,_0x818325[_0x18b5f2(0xae2)][_0x18b5f2(0x236)]);for(let _0x234c25=0x0;_0x234c25<_0x818325[_0x18b5f2(0x260a)][_0x18b5f2(0xfd0)];_0x234c25+=0x1){_0x818325['order'][_0x18b5f2(0x2785)](_0x818325[_0x18b5f2(0x260a)][_0x234c25]['id']);}_0x5bde12[_0x18b5f2(0x19a3)](),_0x818325[_0x18b5f2(0x997)]=!![];}function _0x342c40(_0x58c8cb){const _0x4acd2c=_0x3b514;_0x818325[_0x4acd2c(0xc12)][_0x58c8cb['id']]&&(_0x39641b()[_0x4acd2c(0x9c1)](_0x818325[_0x4acd2c(0xc12)][_0x58c8cb['id']],_0x39641b()[_0x4acd2c(0x169b)](_0x39641b()[_0x4acd2c(0x1bd8)](_0x58c8cb,_0x9fae3e),_0x51b0aa)),_0x39641b()[_0x4acd2c(0x9c1)](_0x818325[_0x4acd2c(0x212d)][_0x58c8cb['id']],_0x39641b()['pick'](_0x39641b()[_0x4acd2c(0x1bd8)](_0x58c8cb,_0x9fae3e),_0x51b0aa)),_0x3bcee8(_0x818325[_0x4acd2c(0xc12)][_0x58c8cb['id']]));}function _0x5c5d92(_0x279d34){const _0x59b065=_0x3b514;_0x818325[_0x59b065(0xc12)][_0x279d34['id']]&&(_0x39641b()['merge'](_0x818325[_0x59b065(0xc12)][_0x279d34['id']],_0x39641b()[_0x59b065(0x169b)](_0x279d34,_0x51b0aa)),_0x39641b()[_0x59b065(0x9c1)](_0x818325[_0x59b065(0x212d)][_0x279d34['id']],_0x39641b()[_0x59b065(0x169b)](_0x279d34,_0x51b0aa)),_0x279d34['lastPauseAt']&&(_0x818325['agents'][_0x279d34['id']]['globalStatusTime']=_0x279d34[_0x59b065(0x25db)],_0x818325[_0x59b065(0x212d)][_0x279d34['id']][_0x59b065(0xdb9)]=_0x279d34[_0x59b065(0x25db)]),_0x3bcee8(_0x818325[_0x59b065(0xc12)][_0x279d34['id']]));}function _0x4306b2(_0x2274ac){const _0x37ed59=_0x3b514;_0x818325['agents'][_0x818325[_0x37ed59(0x1fdd)][_0x2274ac[_0x37ed59(0x7ea)]]]&&(_0x39641b()[_0x37ed59(0x9c1)](_0x818325[_0x37ed59(0xc12)][_0x818325[_0x37ed59(0x1fdd)][_0x2274ac[_0x37ed59(0x7ea)]]],_0x39641b()['pick'](_0x2274ac,[_0x37ed59(0x11cf),'destconnectedlinenum'])),_0x39641b()[_0x37ed59(0x9c1)](_0x818325[_0x37ed59(0x212d)][_0x818325[_0x37ed59(0x1fdd)][_0x2274ac[_0x37ed59(0x7ea)]]],_0x39641b()['pick'](_0x2274ac,[_0x37ed59(0x11cf),_0x37ed59(0x247)])));}function _0x3321a8(_0x29d51e){const _0x2fb8c8=_0x3b514;_0x818325[_0x2fb8c8(0xc12)][_0x818325[_0x2fb8c8(0x1fdd)][_0x29d51e[_0x2fb8c8(0x7ea)]]]&&(_0x818325[_0x2fb8c8(0xc12)][_0x818325[_0x2fb8c8(0x1fdd)][_0x29d51e[_0x2fb8c8(0x7ea)]]]=_0x39641b()['omit'](_0x818325[_0x2fb8c8(0xc12)][_0x818325['agentInternal'][_0x29d51e['destaccountcode']]],[_0x2fb8c8(0x11cf),'destconnectedlinenum']),_0x818325['rpcAgents'][_0x818325[_0x2fb8c8(0x1fdd)][_0x29d51e[_0x2fb8c8(0x7ea)]]]=_0x39641b()[_0x2fb8c8(0x1bd8)](_0x818325[_0x2fb8c8(0x212d)][_0x818325[_0x2fb8c8(0x1fdd)][_0x29d51e['destaccountcode']]],[_0x2fb8c8(0x11cf),_0x2fb8c8(0x247)]));}function _0x2d4b41(_0x20d3c9){const _0x4ca85a=_0x3b514;return _0x4d35d1[_0x4ca85a(0xebe)]['logout']({'id':_0x20d3c9['id'],'device':_0x4ca85a(0x217b),'agent_id':_0x20d3c9['id'],'agent_name':_0x20d3c9[_0x4ca85a(0x16b6)]})['$promise'][_0x4ca85a(0x1cb0)](function(){const _0x50863c=_0x4ca85a;_0x1b8608[_0x50863c(0x829)]({'title':_0x50863c(0x23af),'msg':_0x20d3c9[_0x50863c(0x1d14)]+_0x50863c(0x1540)}),_0x818325[_0x50863c(0xc12)][_0x20d3c9['id']]&&(_0x818325['agents'][_0x20d3c9['id']]['online']=![]),_0x818325[_0x50863c(0x212d)][_0x20d3c9['id']]&&(_0x818325[_0x50863c(0x212d)][_0x20d3c9['id']]['online']=![]),_0x4fc8b9();})['catch'](function(_0x4f38b1){const _0x3182cc=_0x4ca85a;_0x1b8608[_0x3182cc(0x218e)]({'title':_0x4f38b1['status']?_0x3182cc(0xeb9)+_0x4f38b1['status']+_0x3182cc(0x1657)+_0x4f38b1[_0x3182cc(0xc22)]:_0x3182cc(0xcd6),'msg':_0x4f38b1[_0x3182cc(0x25c)]?JSON['stringify'](_0x4f38b1[_0x3182cc(0x25c)][_0x3182cc(0x155e)]):_0x4f38b1[_0x3182cc(0x147f)]()});});}function _0x1a95d9(_0x478b71,_0x1deafb){const _0x5d39b2=_0x3b514;return _0x4d35d1[_0x5d39b2(0xebe)][_0x5d39b2(0x785)]({'id':_0x478b71['id'],'type':_0x1deafb})[_0x5d39b2(0x1d77)]['then'](function(_0x3253b0){const _0x481c7b=_0x5d39b2;_0x818325['agents'][_0x478b71['id']]&&_0x39641b()[_0x481c7b(0x9c1)](_0x818325['agents'][_0x478b71['id']],_0x39641b()[_0x481c7b(0x169b)](_0x3253b0,_0x51b0aa)),_0x818325['rpcAgents'][_0x478b71['id']]&&_0x39641b()[_0x481c7b(0x9c1)](_0x818325[_0x481c7b(0x212d)][_0x478b71['id']],_0x39641b()[_0x481c7b(0x169b)](_0x3253b0,_0x51b0aa)),_0x3bcee8(_0x818325['agents'][_0x478b71['id']]);})[_0x5d39b2(0x1c4)](function(_0x16cef1){const _0x525de4=_0x5d39b2;_0x1b8608[_0x525de4(0x218e)]({'title':_0x16cef1[_0x525de4(0x291)]?'API:'+_0x16cef1[_0x525de4(0x291)]+_0x525de4(0x1657)+_0x16cef1[_0x525de4(0xc22)]:_0x525de4(0xcd6),'msg':_0x16cef1[_0x525de4(0x25c)]?JSON[_0x525de4(0x2701)](_0x16cef1['data'][_0x525de4(0x155e)]):_0x16cef1[_0x525de4(0x147f)]()});});}function _0x41fc71(_0x5ae497){const _0x2e60d5=_0x3b514;return _0x4d35d1[_0x2e60d5(0xebe)][_0x2e60d5(0xf5d)]({'id':_0x5ae497['id']})['$promise'][_0x2e60d5(0x1cb0)](function(_0xe6a588){const _0x43d566=_0x2e60d5;_0x818325[_0x43d566(0xc12)][_0x5ae497['id']]&&_0x39641b()['merge'](_0x818325[_0x43d566(0xc12)][_0x5ae497['id']],_0x39641b()[_0x43d566(0x169b)](_0xe6a588,_0x51b0aa)),_0x818325[_0x43d566(0x212d)][_0x5ae497['id']]&&_0x39641b()[_0x43d566(0x9c1)](_0x818325['rpcAgents'][_0x5ae497['id']],_0x39641b()[_0x43d566(0x169b)](_0xe6a588,_0x51b0aa)),_0x3bcee8(_0x818325[_0x43d566(0xc12)][_0x5ae497['id']]);})[_0x2e60d5(0x1c4)](function(_0x56ab41){const _0x1205b2=_0x2e60d5;_0x1b8608['error']({'title':_0x56ab41['status']?_0x1205b2(0xeb9)+_0x56ab41[_0x1205b2(0x291)]+_0x1205b2(0x1657)+_0x56ab41[_0x1205b2(0xc22)]:_0x1205b2(0xcd6),'msg':_0x56ab41[_0x1205b2(0x25c)]?JSON[_0x1205b2(0x2701)](_0x56ab41[_0x1205b2(0x25c)][_0x1205b2(0x155e)]):_0x56ab41[_0x1205b2(0x147f)]()});});}function _0x42c726(_0x4065b5){const _0x4736f0=_0x3b514;_0x480e12[_0x4736f0(0xe27)](_0x480e12['alert']()[_0x4736f0(0x27e1)](!![])['title'](_0x4736f0(0x1bc1))[_0x4736f0(0x49e)](_0x4736f0(0x26a))['ok']('Ok')[_0x4736f0(0x728)](_0x4065b5));}function _0x1f30e0(_0x3dc34e,_0x1a4ae1){const _0x4444f9=_0x3b514;_0x480e12[_0x4444f9(0xe27)]({'controller':'AgentqueueaddController','controllerAs':'vm','templateUrl':_0x535a6f,'parent':angular['element'](_0x30dc6e[_0x4444f9(0x1ed9)]),'targetEvent':_0x1a4ae1,'clickOutsideToClose':!![],'locals':{'agent':_0x3dc34e,'agents':[],'channel':'mail','direction':_0x4444f9(0x26c0),'crudPermissions':_0x818325[_0x4444f9(0x1b1a)]}});}function _0x402dce(_0x24d750){const _0x54f078=_0x3b514;return _0x24d750===_0x54f078(0x785)||_0x24d750==='*pause';}function _0x385f3b(_0x31b997){const _0x5b54c2=_0x3b514;return _0x31b997===_0x5b54c2(0x785);}function _0x1c4d9f(_0x54a96f){const _0x33eb31=_0x3b514;return _0x54a96f===_0x33eb31(0x1767);}function _0x486058(_0x39c6fb){const _0x122a9c=_0x3b514;return _0x39c6fb===_0x122a9c(0x8df)||_0x39c6fb===_0x122a9c(0x1c9d)||_0x39c6fb==='unavailable'||_0x39c6fb===_0x122a9c(0x1c7e)||_0x39641b()[_0x122a9c(0x958)](_0x39c6fb);}function _0x29b428(_0x2f0572,_0x168bfc){const _0x27110f=_0x3b514;if(_0x168bfc===_0x27110f(0x1fd4)){if(_0x2f0572[_0x168bfc+_0x27110f(0x938)]!==_0x27110f(0x8df))return _0x2f0572[_0x168bfc+_0x27110f(0x938)];if(_0x2f0572[_0x168bfc+_0x27110f(0x1e09)])return _0x2f0572[_0x168bfc+_0x27110f(0x938)]='pause',_0x27110f(0x785);return'idle';}else{if(_0x2f0572[_0x168bfc+_0x27110f(0x1e09)])return _0x2f0572[_0x168bfc+_0x27110f(0x938)]=_0x27110f(0x785),_0x27110f(0x785);return _0x2f0572[_0x168bfc+_0x27110f(0x938)];}}function _0x3bcee8(_0x3060e0){const _0x17c492=_0x3b514;let _0x24ce8c=_0x17c492(0x1c9d);if(_0x39641b()['every']([_0x29b428(_0x3060e0,_0x17c492(0x1fd4)),_0x29b428(_0x3060e0,_0x17c492(0x174c)),_0x29b428(_0x3060e0,_0x17c492(0x2651)),_0x29b428(_0x3060e0,_0x17c492(0x15e0)),_0x29b428(_0x3060e0,_0x17c492(0x689)),_0x29b428(_0x3060e0,_0x17c492(0x2476)),_0x29b428(_0x3060e0,_0x17c492(0x1944))],_0x402dce))_0x24ce8c=_0x17c492(0x785);else{if(_0x39641b()['some']([_0x29b428(_0x3060e0,_0x17c492(0x1fd4)),_0x29b428(_0x3060e0,_0x17c492(0x174c)),_0x29b428(_0x3060e0,_0x17c492(0x2651)),_0x29b428(_0x3060e0,_0x17c492(0x15e0)),_0x29b428(_0x3060e0,_0x17c492(0x689)),_0x29b428(_0x3060e0,'whatsapp'),_0x29b428(_0x3060e0,'fax')],_0x402dce))_0x24ce8c=_0x17c492(0x1767);else _0x39641b()[_0x17c492(0x1aa3)]([_0x29b428(_0x3060e0,'voice'),_0x29b428(_0x3060e0,_0x17c492(0x174c)),_0x29b428(_0x3060e0,'mail'),_0x29b428(_0x3060e0,_0x17c492(0x15e0)),_0x29b428(_0x3060e0,_0x17c492(0x689)),_0x29b428(_0x3060e0,_0x17c492(0x2476)),_0x29b428(_0x3060e0,_0x17c492(0x1944))],_0x486058)?_0x24ce8c=_0x17c492(0x8df):_0x24ce8c='busy';}_0x3060e0[_0x17c492(0x1fbe)]!==_0x24ce8c&&(_0x3060e0[_0x17c492(0x1fbe)]=_0x24ce8c,_0x3060e0[_0x17c492(0x1a8e)]?(_0x3060e0['init']=![],_0x3060e0[_0x17c492(0xdb9)]=_0x402dce(_0x24ce8c)?_0x39641b()['toNumber'](_0x543b5a()(_0x3060e0['lastPauseAt'])[_0x17c492(0x1f31)]('x')):_0x39641b()[_0x17c492(0xb33)]([_0x3060e0['voiceStatusTime'],_0x3060e0[_0x17c492(0x1b11)],_0x3060e0['mailStatusTime'],_0x3060e0[_0x17c492(0x9eb)],_0x3060e0[_0x17c492(0x2064)],_0x3060e0['openchannelStatusTime'],_0x3060e0[_0x17c492(0x1997)]])):_0x3060e0[_0x17c492(0xdb9)]=_0x39641b()['toNumber'](_0x543b5a()()[_0x17c492(0x1f31)]('x')));}function _0x57d31b(_0x72fbbc){const _0x39471b=_0x3b514,_0x8b56c2=_0x39641b()['startsWith'](_0x818325[_0x39471b(0xae2)][_0x39471b(0x237f)],'-')?_0x39471b(0x20a5):_0x39471b(0x24cc);return _0x39641b()[_0x39471b(0x17ca)](_0x72fbbc,[_0x818325[_0x39471b(0xae2)][_0x39471b(0x237f)][_0x39471b(0x288f)]('-','')],[_0x8b56c2]);}function _0xdfe342(){const _0x3d04b0=_0x3b514;_0x52e8a8&&(_0x80448f[_0x3d04b0(0x696)](_0x52e8a8),_0x52e8a8=null);}function _0x322595(_0x4d36f4,_0x5378e0){const _0x2f7fdb=_0x3b514;return _0x4d35d1[_0x2f7fdb(0xebe)]['update']({'id':_0x4d36f4['id']},{'screenrecording':_0x5378e0})[_0x2f7fdb(0x1d77)][_0x2f7fdb(0x1c4)](function(_0x23f226){const _0x573cb1=_0x2f7fdb;_0x1b8608[_0x573cb1(0x218e)]({'title':_0x23f226[_0x573cb1(0x291)]?_0x573cb1(0xeb9)+_0x23f226[_0x573cb1(0x291)]+_0x573cb1(0x1657)+_0x23f226[_0x573cb1(0xc22)]:_0x573cb1(0x498),'msg':_0x23f226['data']?JSON[_0x573cb1(0x2701)](_0x23f226[_0x573cb1(0x25c)][_0x573cb1(0x155e)]):_0x23f226[_0x573cb1(0x147f)]()});});}_0x360113[_0x3b514(0x1d6)]('$destroy',function(){const _0x1b8b08=_0x3b514;_0x287696['removeAllListeners'](_0x1b8b08(0x2464)),_0x287696[_0x1b8b08(0xfb8)]('user:update'),_0x287696['removeAllListeners'](_0x1b8b08(0x2290)),_0x287696['removeAllListeners'](_0x1b8b08(0x10b3)),_0xdfe342();});}const _0x48be1b=_0x472ce8;;const _0x5efcce=_0x5074a3['p']+'src/js/modules/main/apps/mail/views/mailQueues/create/dialog.html/dialog.html';;const _0x1159b3=_0x5074a3['p']+'src/js/modules/main/apps/mail/views/mailQueues/edit/agentadd/agentadd.html/agentadd.html';;_0x36479b[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x2168),_0x5537c6(0xcb9),'$q',_0x5537c6(0x22bf),_0x5537c6(0x1714),_0x5537c6(0x971),'rpcQueues','api',_0x5537c6(0x1986),_0x5537c6(0x9bf),_0x5537c6(0x44a),_0x5537c6(0x2199),'Auth'];function _0x36479b(_0x59f5ef,_0x1c9d30,_0x285e83,_0x478437,_0x1bcdaf,_0x4e7ae3,_0x449dac,_0x31e137,_0x302627,_0x301cff,_0x30e378,_0x1c3cf8,_0x3fcbfc,_0x52a937){const _0x302a72=_0x5537c6,_0x558362=this,_0x314c83=[_0x302a72(0x22dc),_0x302a72(0x2803),'waiting',_0x302a72(0x192a),'pTalking',_0x302a72(0x2315),_0x302a72(0x155e),_0x302a72(0x737),_0x302a72(0xda8),_0x302a72(0xf67),_0x302a72(0x139c)];_0x558362['currentUser']=_0x52a937['getCurrentUser'](),_0x558362['count']=_0x449dac[_0x302a72(0x184d)]?_0x449dac[_0x302a72(0x184d)]:0x0,_0x558362[_0x302a72(0x971)]=_0x449dac?_0x39641b()[_0x302a72(0x2631)](_0x449dac[_0x302a72(0x2214)]?_0x449dac[_0x302a72(0x2214)]:[],'id'):{},_0x558362[_0x302a72(0x2255)]=_0x31e137?_0x39641b()[_0x302a72(0x2631)](_0x31e137[_0x302a72(0x2214)]?_0x31e137[_0x302a72(0x2214)]:[],'id'):{},_0x558362[_0x302a72(0x44a)]=_0x1c3cf8,_0x558362['userProfileSection']=_0x3fcbfc&&_0x3fcbfc[_0x302a72(0x184d)]==0x1?_0x3fcbfc[_0x302a72(0x2214)][0x0]:null,_0x558362[_0x302a72(0x1b1a)]=_0x52a937['parseCrudPermissions'](_0x558362['userProfileSection']?_0x558362[_0x302a72(0x2199)]['crudPermissions']:null);_0x52a937['hasRole'](_0x302a72(0x1c60))?_0x558362[_0x302a72(0xae2)]={'type':_0x302a72(0x26c0),'sort':_0x302a72(0x282),'limit':0xa,'page':0x1}:_0x558362[_0x302a72(0xae2)]={'id':_0x558362[_0x302a72(0xe76)]['id'],'channel':_0x302a72(0x2651),'type':_0x302a72(0x26c0),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x558362['success']=_0x672602,_0x558362[_0x302a72(0x13e9)]=_0x52675f,_0x558362['createOrEditMailQueue']=_0x358ab3,_0x558362[_0x302a72(0x1be7)]=_0x4c1261,_0x558362[_0x302a72(0x25f6)]=_0x40c16e,_0x558362[_0x302a72(0x294c)]=_0x29ef8f,_0x558362[_0x302a72(0xc88)]=_0x10ccda,_0x558362['onRemoveMember']=_0x684157,_0x558362[_0x302a72(0x18e4)]=_0x20c3b0,_0x558362[_0x302a72(0x26c9)]=_0x2a6b06,_0x558362[_0x302a72(0x3be)]=_0x1f54c2,_0x558362['$onInit']=_0x439053,_0x558362[_0x302a72(0x237f)]=[],_0x39641b()[_0x302a72(0x1ebd)](_0x558362['queues'],function(_0x240943){const _0x3fbbef=_0x302a72;_0x558362[_0x3fbbef(0x237f)]['push'](_0x240943['id']);}),_0x301cff['on'](_0x302a72(0x1baa),_0x558362[_0x302a72(0x294c)]),_0x301cff['on'](_0x302a72(0x153e),_0x558362['onSaveMember']),_0x301cff['on'](_0x302a72(0x1b90),_0x558362[_0x302a72(0x365)]),_0x301cff['on'](_0x302a72(0x14c6),_0x558362[_0x302a72(0x18e4)]),_0x301cff['on']('userVoiceQueue:remove',_0x558362[_0x302a72(0x3be)]),_0x301cff['on'](_0x302a72(0x828),_0x558362[_0x302a72(0x26c9)]);function _0x439053(){const _0x48f062=_0x302a72,_0x13da7d=[];return _0x39641b()[_0x48f062(0x1ebd)](_0x558362['queues'],function(_0x5d62f8,_0x29f05d){const _0x494940=_0x48f062;_0x5d62f8[_0x494940(0x139c)]=0x0,_0x5d62f8['loggedInDb']=0x0,_0x558362[_0x494940(0x971)][_0x29f05d]['agents']={},_0x13da7d['push'](_0x302627[_0x494940(0x16e1)]['getMembers']({'id':_0x29f05d})[_0x494940(0x1d77)]),_0x558362[_0x494940(0x2255)][_0x29f05d]&&_0x39641b()[_0x494940(0x9c1)](_0x5d62f8,_0x39641b()[_0x494940(0x169b)](_0x558362[_0x494940(0x2255)][_0x29f05d],_0x314c83));}),_0x478437[_0x48f062(0x223b)](_0x13da7d)[_0x48f062(0x1cb0)](function(_0x4ac497){const _0x300e15=_0x48f062;for(let _0x516e2e=0x0;_0x516e2e<_0x4ac497[_0x300e15(0xfd0)];_0x516e2e+=0x1){for(let _0x49e247=0x0;_0x49e247<_0x4ac497[_0x516e2e][_0x300e15(0x2214)]['length'];_0x49e247++){_0x4ac497[_0x516e2e][_0x300e15(0x2214)][_0x49e247][_0x300e15(0x139c)]&&_0x558362[_0x300e15(0x971)][_0x4ac497[_0x516e2e][_0x300e15(0x2214)][_0x49e247][_0x300e15(0x17a5)]][_0x300e15(0x139c)]++,_0x558362[_0x300e15(0x971)][_0x4ac497[_0x516e2e][_0x300e15(0x2214)][_0x49e247][_0x300e15(0x17a5)]][_0x300e15(0x29a2)]++,_0x558362['queues'][_0x4ac497[_0x516e2e][_0x300e15(0x2214)][_0x49e247][_0x300e15(0x17a5)]][_0x300e15(0xc12)][_0x4ac497[_0x516e2e][_0x300e15(0x2214)][_0x49e247][_0x300e15(0x21ab)]]=_0x4ac497[_0x516e2e][_0x300e15(0x2214)][_0x49e247]['MailQueueId'];}}})[_0x48f062(0x1c4)](function(_0x302272){const _0xa1121a=_0x48f062;console[_0xa1121a(0x218e)](_0x302272);});}function _0x29ef8f(_0x4b0ffd){const _0x41925a=_0x302a72;_0x558362[_0x41925a(0x971)][_0x4b0ffd['id']]&&_0x39641b()[_0x41925a(0x9c1)](_0x558362['queues'][_0x4b0ffd['id']],_0x39641b()[_0x41925a(0x169b)](_0x4b0ffd,_0x314c83));}function _0x10ccda(_0x1c5726){const _0x144184=_0x302a72;_0x558362[_0x144184(0x971)][_0x1c5726[_0x144184(0x17a5)]]&&_0x558362[_0x144184(0x971)][_0x1c5726[_0x144184(0x17a5)]][_0x144184(0x29a2)]++;}function _0x684157(_0x3694bc){const _0x1f4caa=_0x302a72;_0x558362[_0x1f4caa(0x971)][_0x3694bc[_0x1f4caa(0x17a5)]]&&_0x558362[_0x1f4caa(0x971)][_0x3694bc[_0x1f4caa(0x17a5)]]['loggedInDb']--;}function _0x20c3b0(_0x85df15){const _0x53af7a=_0x302a72;console[_0x53af7a(0x1b4f)]('onPause',_0x85df15);if(_0x85df15[_0x53af7a(0x2478)])_0x39641b()[_0x53af7a(0x1ebd)](_0x558362[_0x53af7a(0x971)],function(_0x1805c6){const _0x49e358=_0x53af7a;_0x1805c6['agents'][_0x85df15['id']]&&(_0x1805c6[_0x49e358(0x139c)]+=0x1,console[_0x49e358(0x1b4f)](_0x49e358(0x785)));});else!_0x85df15[_0x53af7a(0x2478)]&&_0x39641b()['forIn'](_0x558362['queues'],function(_0xce09f9){const _0x308ba4=_0x53af7a;_0xce09f9[_0x308ba4(0xc12)][_0x85df15['id']]&&(_0xce09f9[_0x308ba4(0x139c)]>0x0&&(_0xce09f9[_0x308ba4(0x139c)]-=0x1,console['log']('unpause')));});}function _0x2a6b06(_0x510faa){const _0x4c31f8=_0x302a72;console[_0x4c31f8(0x1b4f)]('onLogged',_0x510faa),_0x558362[_0x4c31f8(0x971)][_0x510faa[_0x4c31f8(0x17a5)]]&&(_0x558362['queues'][_0x510faa[_0x4c31f8(0x17a5)]][_0x4c31f8(0x29a2)]+=0x1,_0x558362['queues'][_0x510faa[_0x4c31f8(0x17a5)]][_0x4c31f8(0xc12)][_0x510faa['UserId']]=_0x510faa[_0x4c31f8(0x17a5)]);}function _0x1f54c2(_0x219657){const _0x5c0737=_0x302a72;console[_0x5c0737(0x1b4f)](_0x5c0737(0x3be),_0x219657),_0x558362[_0x5c0737(0x971)][_0x219657[_0x5c0737(0x17a5)]]&&_0x558362[_0x5c0737(0x971)][_0x219657[_0x5c0737(0x17a5)]]['loggedInDb']>0x0&&(_0x558362[_0x5c0737(0x971)][_0x219657[_0x5c0737(0x17a5)]][_0x5c0737(0x29a2)]-=0x1,delete _0x558362[_0x5c0737(0x971)][_0x219657[_0x5c0737(0x17a5)]]['agents'][_0x219657['UserId']]);}let _0xf05130=!![],_0x3da8b5=0x1;_0x59f5ef[_0x302a72(0x614)](_0x302a72(0x957),function(_0x4ae634,_0x54c0aa){const _0x30e98d=_0x302a72;_0xf05130?_0x1c9d30(function(){_0xf05130=![];}):(!_0x54c0aa&&(_0x3da8b5=_0x558362[_0x30e98d(0xae2)][_0x30e98d(0x1c7b)]),_0x4ae634!==_0x54c0aa&&(_0x558362[_0x30e98d(0xae2)]['page']=0x1),!_0x4ae634&&(_0x558362[_0x30e98d(0xae2)][_0x30e98d(0x1c7b)]=_0x3da8b5),_0x558362[_0x30e98d(0x13e9)]());});function _0x672602(_0x4642d8){const _0x39cc70=_0x302a72;_0x558362[_0x39cc70(0x184d)]=_0x4642d8[_0x39cc70(0x184d)],_0x558362[_0x39cc70(0x971)]=_0x4642d8?_0x39641b()[_0x39cc70(0x2631)](_0x4642d8['rows']?_0x4642d8['rows']:[],'id'):{};if(_0x4642d8[_0x39cc70(0x2214)]){_0x558362[_0x39cc70(0x237f)]=[];for(let _0x1754c2=0x0;_0x1754c2<_0x4642d8[_0x39cc70(0x2214)][_0x39cc70(0xfd0)];_0x1754c2++){_0x558362[_0x39cc70(0x237f)][_0x39cc70(0x2785)](_0x4642d8[_0x39cc70(0x2214)][_0x1754c2]['id']);}}_0x439053();}function _0x52675f(){const _0x561764=_0x302a72;_0x558362[_0x561764(0xae2)]['offset']=(_0x558362[_0x561764(0xae2)]['page']-0x1)*_0x558362[_0x561764(0xae2)][_0x561764(0x236)],_0x52a937[_0x561764(0x22b6)](_0x561764(0x1c60))?_0x558362[_0x561764(0x2061)]=_0x302627['mailQueue'][_0x561764(0xbf7)](_0x558362[_0x561764(0xae2)],_0x672602)[_0x561764(0x1d77)]:(_0x558362['query']['id']=_0x558362['userProfile']['id'],_0x558362[_0x561764(0xae2)][_0x561764(0x1f74)]=_0x561764(0x25fc),_0x558362[_0x561764(0x2061)]=_0x302627[_0x561764(0x44a)][_0x561764(0x1810)](_0x558362[_0x561764(0xae2)],_0x672602)[_0x561764(0x1d77)]);}function _0x358ab3(_0x40d69f,_0x2f06c){const _0x2beea6=_0x302a72;_0x285e83[_0x2beea6(0xe27)]({'controller':_0x2beea6(0xae6),'controllerAs':'vm','templateUrl':_0x5efcce,'parent':angular[_0x2beea6(0x1853)](_0x1bcdaf[_0x2beea6(0x1ed9)]),'targetEvent':_0x40d69f,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x2f06c,'mailQueues':_0x39641b()[_0x2beea6(0x27aa)](_0x558362[_0x2beea6(0x971)]),'license':null,'setting':null,'crudPermissions':_0x558362['crudPermissions']}});}function _0x4c1261(_0x4a0682,_0x40a542){const _0x215c6a=_0x302a72;_0x285e83[_0x215c6a(0xe27)]({'controller':_0x215c6a(0x24d2),'controllerAs':'vm','templateUrl':_0x1159b3,'parent':angular['element'](_0x1bcdaf[_0x215c6a(0x1ed9)]),'targetEvent':_0x4a0682,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x40a542,'mailQueues':_0x558362['queues']?_0x558362[_0x215c6a(0x971)][_0x215c6a(0x2214)]:[],'realtime':![],'crudPermissions':_0x558362[_0x215c6a(0x1b1a)]}});}function _0x40c16e(_0x1bb65b){const _0x5abe7c=_0x302a72;return _0x302627[_0x5abe7c(0x16e1)][_0x5abe7c(0x687)](_0x1bb65b)[_0x5abe7c(0x1d77)][_0x5abe7c(0x1cb0)](function(){const _0x3be889=_0x5abe7c;_0x30e378[_0x3be889(0x829)]({'title':'Queue\x20properly\x20updated!','msg':_0x1bb65b['name']?_0x1bb65b['name']+_0x3be889(0x1068):''});})[_0x5abe7c(0x1c4)](function(_0x222aa4){const _0x3557e0=_0x5abe7c;_0x30e378[_0x3557e0(0x218e)]({'title':_0x3557e0(0x454),'msg':_0x222aa4[_0x3557e0(0x155e)]});});}_0x59f5ef[_0x302a72(0x1d6)](_0x302a72(0x291c),function(){const _0x4c4c2e=_0x302a72;_0x301cff[_0x4c4c2e(0xfb8)](_0x4c4c2e(0x1baa)),_0x301cff[_0x4c4c2e(0xfb8)]('userMailQueue:remove'),_0x301cff['removeAllListeners'](_0x4c4c2e(0x153e)),_0x301cff['removeAllListeners'](_0x4c4c2e(0x14c6)),_0x301cff[_0x4c4c2e(0xfb8)](_0x4c4c2e(0x201e)),_0x301cff[_0x4c4c2e(0xfb8)](_0x4c4c2e(0x828));});}const _0x10ad0a=_0x36479b;;function _0x182a56(){const _0x5a294e=_0x5537c6;return{'status':{'registered':_0x5a294e(0x1170),'unregistered':_0x5a294e(0x29a3),'lagged':_0x5a294e(0x29a3),'reachable':_0x5a294e(0x1170),'unreachable':_0x5a294e(0x29a3),'unknown':'grey-fg\x20icon-minus-circle'},'state':{'unknown':_0x5a294e(0x181),'not_inuse':_0x5a294e(0x25c2),'inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0x5a294e(0x35b),'invalid':_0x5a294e(0x181),'unavailable':_0x5a294e(0x181),'ringing':'blue-300-fg\x20icon-phone-incoming','ringinuse':_0x5a294e(0x1c43),'onhold':_0x5a294e(0x1825)},'channelStatus':{'ring':_0x5a294e(0x1c43),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x5a294e(0xe67)},'channelStatusOut':{'ring':_0x5a294e(0x53c),'up':_0x5a294e(0x142f),'hangup':_0x5a294e(0xe67)}};}const _0x467376=_0x182a56;;_0x24cfcb['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x406),'socket'];function _0x24cfcb(_0x5a8b5b,_0x25f5ad,_0x348300){const _0x1eb235=_0x5537c6,_0x1a82d6=this;_0x348300['disconnect'](),_0x348300[_0x1eb235(0x8b0)](),_0x1a82d6[_0x1eb235(0x8ec)]=0x0;switch(_0x25f5ad[_0x1eb235(0x1970)][_0x1eb235(0x16b6)]){case _0x1eb235(0x28f0):_0x1a82d6['selectedTab']=0x0;break;case _0x1eb235(0x1903):_0x1a82d6['selectedTab']=0x1;break;case _0x1eb235(0x1dd):_0x1a82d6[_0x1eb235(0x8ec)]=0x2;break;default:_0x1a82d6[_0x1eb235(0x8ec)]=0x0,_0x25f5ad['go'](_0x1eb235(0x28f0));}_0x5a8b5b[_0x1eb235(0x614)](_0x1eb235(0x1ced),function(_0x4feae3,_0x3a31bd){const _0x7ca552=_0x1eb235;if(_0x4feae3!==_0x3a31bd)switch(_0x4feae3){case 0x0:_0x25f5ad['go'](_0x7ca552(0x28f0));break;case 0x1:_0x25f5ad['go'](_0x7ca552(0x1903));break;case 0x2:_0x25f5ad['go'](_0x7ca552(0x1dd));break;default:_0x25f5ad['go'](_0x7ca552(0x28f0));}});}const _0x250f74=_0x24cfcb;;_0x2adb1d['$inject']=[_0x5537c6(0xbd6)];function _0x2adb1d(_0xfad6a){const _0x441f99=_0x5537c6;_0xfad6a[_0x441f99(0x27e0)](_0x441f99(0x4e3),{'url':_0x441f99(0x1625),'views':{'content@app':{'templateUrl':_0x57a73b,'controller':_0x441f99(0xb56)}},'resolve':{'userProfile':[_0x441f99(0x1e0b),'Auth',function(_0xd902a6,_0x385166){const _0x3d8005=_0x441f99;return _0x385166[_0x3d8005(0x22b6)](_0x3d8005(0x1c60))?null:_0xd902a6[_0x3d8005(0x19a3)](_0x3d8005(0x9ae),{'fields':_0x3d8005(0x279),'id':_0x385166['getCurrentUser']()[_0x3d8005(0x13c1)]});}],'userProfileSection':['apiResolver',_0x441f99(0x1774),function(_0x191943,_0x41ee86){const _0x2c287f=_0x441f99;return _0x41ee86[_0x2c287f(0x22b6)](_0x2c287f(0x1c60))?null:_0x191943[_0x2c287f(0x19a3)](_0x2c287f(0x2182),{'fields':_0x2c287f(0x1f5f),'userProfileId':_0x41ee86[_0x2c287f(0x21e8)]()[_0x2c287f(0x13c1)],'sectionId':0x262});}]},'authenticate':!![],'permissionId':0x262})[_0x441f99(0x27e0)](_0x441f99(0x28f0),{'url':'/agents','controller':_0x441f99(0x2593),'templateUrl':_0x527e29,'resolve':{'pauses':[_0x441f99(0x1e0b),function(_0xa1f9b6){const _0x44d000=_0x441f99;return _0xa1f9b6[_0x44d000(0x19a3)](_0x44d000(0xeeb),{'nolimit':!![]});}],'agents':[_0x441f99(0x1e0b),_0x441f99(0x1774),function(_0x1cb21e,_0x2e0857){const _0x5c9129=_0x441f99;return _0x2e0857[_0x5c9129(0x22b6)](_0x5c9129(0x1c60))?_0x1cb21e[_0x5c9129(0x19a3)](_0x5c9129(0x1c86),{'fields':_0x5c9129(0x1599),'role':'agent','sort':_0x5c9129(0x1d14),'nolimit':!![]}):_0x1cb21e[_0x5c9129(0x19a3)]('userProfile@getResources',{'id':_0x2e0857[_0x5c9129(0x21e8)]()[_0x5c9129(0x13c1)],'section':'Agents','fields':_0x5c9129(0x1599),'role':_0x5c9129(0x1eff),'sort':_0x5c9129(0x1d14),'nolimit':!![]});}],'userProfile':['apiResolver',_0x441f99(0x1774),function(_0x4d80ba,_0x5900ce){const _0x5025b7=_0x441f99;return _0x5900ce[_0x5025b7(0x22b6)](_0x5025b7(0x1c60))?null:_0x4d80ba[_0x5025b7(0x19a3)](_0x5025b7(0x9ae),{'fields':'id,name,crudPermissions','id':_0x5900ce[_0x5025b7(0x21e8)]()[_0x5025b7(0x13c1)]});}],'userProfileSection':[_0x441f99(0x1e0b),_0x441f99(0x1774),function(_0x1c7f46,_0x28c5e3){const _0x372820=_0x441f99;return _0x28c5e3[_0x372820(0x22b6)]('admin')?null:_0x1c7f46[_0x372820(0x19a3)](_0x372820(0x2182),{'fields':_0x372820(0x1f5f),'userProfileId':_0x28c5e3['getCurrentUser']()[_0x372820(0x13c1)],'sectionId':0xca});}],'rpcAgents':[_0x441f99(0x1e0b),function(_0x3aa261){const _0x16d98f=_0x441f99;return _0x3aa261[_0x16d98f(0x19a3)](_0x16d98f(0x12c0));}]},'authenticate':!![],'permissionId':0x262})[_0x441f99(0x27e0)](_0x441f99(0x1903),{'url':_0x441f99(0x1596),'controller':_0x441f99(0x9e4),'templateUrl':_0x7fe7d2,'resolve':{'queues':[_0x441f99(0x1e0b),_0x441f99(0x1774),function(_0x5d2e7a,_0x4aaaa4){const _0x575c31=_0x441f99;return _0x4aaaa4[_0x575c31(0x22b6)]('admin')?_0x5d2e7a[_0x575c31(0x19a3)]('mailQueue@get',{'type':_0x575c31(0x26c0),'sort':_0x575c31(0x282),'limit':0xa,'offset':0x0}):_0x5d2e7a[_0x575c31(0x19a3)](_0x575c31(0x12da),{'id':_0x4aaaa4['getCurrentUser']()[_0x575c31(0x13c1)],'section':_0x575c31(0x25fc),'channel':_0x575c31(0x2651),'type':_0x575c31(0x26c0),'sort':'-updatedAt','limit':0xa,'page':0x1});}],'userProfile':['apiResolver',_0x441f99(0x1774),function(_0x5b4649,_0x37b19d){const _0xdc437e=_0x441f99;return _0x37b19d[_0xdc437e(0x22b6)](_0xdc437e(0x1c60))?null:_0x5b4649[_0xdc437e(0x19a3)](_0xdc437e(0x9ae),{'fields':'id,name,crudPermissions','id':_0x37b19d[_0xdc437e(0x21e8)]()[_0xdc437e(0x13c1)]});}],'userProfileSection':['apiResolver','Auth',function(_0x36551d,_0x2bf88b){const _0x580c4d=_0x441f99;return _0x2bf88b[_0x580c4d(0x22b6)](_0x580c4d(0x1c60))?null:_0x36551d[_0x580c4d(0x19a3)](_0x580c4d(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2bf88b[_0x580c4d(0x21e8)]()[_0x580c4d(0x13c1)],'sectionId':0x259});}],'rpcQueues':[_0x441f99(0x1e0b),function(_0x2a1f69){const _0x33dec9=_0x441f99;return _0x2a1f69['resolve'](_0x33dec9(0x12ca));}]},'authenticate':!![],'permissionId':0x262})[_0x441f99(0x27e0)](_0x441f99(0x1dd),{'url':_0x441f99(0x25a0),'controller':_0x441f99(0x1ce1),'templateUrl':_0x2e801d,'resolve':{'mailAccounts':['apiResolver',_0x441f99(0x1774),function(_0x515d0c,_0x1c33c9){const _0x109d59=_0x441f99;return _0x1c33c9['hasRole'](_0x109d59(0x1c60))?_0x515d0c[_0x109d59(0x19a3)]('mailAccount@get',{'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x515d0c[_0x109d59(0x19a3)](_0x109d59(0x12da),{'id':_0x1c33c9[_0x109d59(0x21e8)]()['userProfileId'],'section':'MailAccounts','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x41fa05,_0xe30369){const _0x575913=_0x441f99;return _0xe30369[_0x575913(0x22b6)](_0x575913(0x1c60))?null:_0x41fa05[_0x575913(0x19a3)](_0x575913(0x9ae),{'fields':_0x575913(0x279),'id':_0xe30369['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x441f99(0x1e0b),_0x441f99(0x1774),function(_0x6339d7,_0x2f2bb1){const _0x1fdab6=_0x441f99;return _0x2f2bb1[_0x1fdab6(0x22b6)](_0x1fdab6(0x1c60))?null:_0x6339d7[_0x1fdab6(0x19a3)](_0x1fdab6(0x2182),{'fields':_0x1fdab6(0x1f5f),'userProfileId':_0x2f2bb1[_0x1fdab6(0x21e8)]()[_0x1fdab6(0x13c1)],'sectionId':0x25a});}],'rpcMailAccounts':[_0x441f99(0x1e0b),function(_0x3a1920){const _0x1edfa8=_0x441f99;return _0x3a1920[_0x1edfa8(0x19a3)](_0x1edfa8(0x1cf));}]},'authenticate':!![],'permissionId':0x262});}angular[_0x5537c6(0x9ab)]('app.mail.realtime',[])[_0x5537c6(0xa60)](_0x2adb1d)[_0x5537c6(0x6e5)](_0x5537c6(0x2882),_0x48be1b)[_0x5537c6(0x6e5)](_0x5537c6(0x289d),_0x10ad0a)[_0x5537c6(0x234a)]('helperClasses',_0x467376)[_0x5537c6(0x6e5)](_0x5537c6(0x2517),_0x250f74);;const _0x3255fb=_0x5074a3['p']+'src/js/modules/main/apps/mail/views/mailQueues/mailQueues.html/mailQueues.html';;const _0x1c35f5=_0x5074a3['p']+'src/js/modules/main/apps/mail/views/mailQueues/edit/view.html/view.html';;const _0x18e25c=_0x5074a3['p']+_0x5537c6(0x1fb8);;const _0x268b68=_0x5074a3['p']+_0x5537c6(0x1800);;const _0x4cf3e1=_0x5074a3['p']+'src/js/modules/main/apps/mail/views/mailSubtatuses/mailSubtatuses.html/mailSubtatuses.html';;_0xd7ab08[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),'$location','$mdDialog','$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x228e),'mailAccount',_0x5537c6(0x142b),'Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca),'crudPermissions'];function _0xd7ab08(_0x4f5fa4,_0x21d67a,_0x2d4ffa,_0x4b0ea7,_0x191672,_0x23f3d1,_0x381893,_0x3611f2,_0x2eaf1d,_0x504704,_0x4d2c9f,_0x563f96,_0x4a698f,_0x1f0eae){const _0x1139ae=_0x5537c6,_0x7185bf=this;_0x7185bf[_0x1139ae(0xe76)]=_0x4d2c9f['getCurrentUser'](),_0x7185bf['errors']=[],_0x7185bf[_0x1139ae(0x9ca)]=_0x4a698f,_0x7185bf[_0x1139ae(0x8a5)]=_0x563f96,_0x7185bf[_0x1139ae(0x1b1a)]=_0x1f0eae,_0x7185bf['hasModulePermissions']={},_0x7185bf['passwordPattern']=_0x7185bf['setting']&&_0x7185bf[_0x1139ae(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x7185bf[_0x1139ae(0x1386)]='MAIL.EDIT_MAILACCOUNT',_0x7185bf[_0x1139ae(0x131c)]=angular[_0x1139ae(0x17fe)](_0x2eaf1d),_0x7185bf[_0x1139ae(0x228e)]=_0x3611f2,_0x7185bf['newMailAccount']=![];!_0x7185bf[_0x1139ae(0x131c)]&&(_0x7185bf[_0x1139ae(0x131c)]={'active':!![],'cservice':'null','cauthentication':!![],'fontSize':0xd,'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x7185bf[_0x1139ae(0x1386)]=_0x1139ae(0x1727),_0x7185bf['newMailAccount']=!![]);_0x21d67a[_0x1139ae(0x1dfe)]['id']&&(_0x7185bf[_0x1139ae(0x131c)]['MailAccountId']=_0x21d67a[_0x1139ae(0x1dfe)]['id']);_0x7185bf['addNewMailAccount']=_0xb1b7e9,_0x7185bf[_0x1139ae(0x48f)]=_0x4d7868,_0x7185bf[_0x1139ae(0x1184)]=_0x4e7f5f,_0x7185bf[_0x1139ae(0x2c4)]=_0x217741,_0x7185bf[_0x1139ae(0xda0)]=_0x14da46,_0x4d2c9f[_0x1139ae(0x22b6)](_0x1139ae(0x1c60))?_0x504704[_0x1139ae(0x22f2)][_0x1139ae(0xbf7)]({'fields':_0x1139ae(0x43c),'sort':_0x1139ae(0x16b6)})['$promise'][_0x1139ae(0x1cb0)](function(_0x46d7ea){const _0x446f61=_0x1139ae;_0x7185bf[_0x446f61(0x1046)]=_0x46d7ea['rows']||[];})[_0x1139ae(0x1c4)](function(_0xe379e7){const _0x54f6a0=_0x1139ae;_0x381893[_0x54f6a0(0x218e)]({'title':_0xe379e7['status']?'API:'+_0xe379e7[_0x54f6a0(0x291)]+_0x54f6a0(0x1657)+_0xe379e7[_0x54f6a0(0xc22)]:_0x54f6a0(0x149e),'msg':_0xe379e7[_0x54f6a0(0x25c)]?JSON[_0x54f6a0(0x2701)](_0xe379e7['data']):_0xe379e7['toString']()});}):_0x504704[_0x1139ae(0x22f2)][_0x1139ae(0xbf7)]({'fields':_0x1139ae(0x43c),'sort':_0x1139ae(0x16b6)})['$promise'][_0x1139ae(0x1cb0)](function(_0x143785){const _0x2b292e=_0x1139ae;_0x7185bf[_0x2b292e(0x1046)]=_0x143785[_0x2b292e(0x2214)]||[];})[_0x1139ae(0x1cb0)](function(){const _0x5669cc=_0x1139ae;return _0x504704[_0x5669cc(0x2199)][_0x5669cc(0xbf7)]({'userProfileId':_0x7185bf[_0x5669cc(0xe76)][_0x5669cc(0x13c1)],'sectionId':0x12d})[_0x5669cc(0x1d77)];})[_0x1139ae(0x1cb0)](function(_0x2024b2){const _0x3585e4=_0x1139ae,_0x4b30f4=_0x2024b2&&_0x2024b2[_0x3585e4(0x2214)]?_0x2024b2[_0x3585e4(0x2214)][0x0]:null;if(!_0x4b30f4){const _0x7b507e=[];let _0x550c7c=null;_0x7185bf[_0x3585e4(0x131c)]&&(_0x550c7c=_0x39641b()[_0x3585e4(0x13b4)](_0x7185bf[_0x3585e4(0x1046)],{'id':Number(_0x7185bf['mailAccount'][_0x3585e4(0x20a6)])}));for(let _0x5d75d4=0x0;_0x5d75d4<_0x7185bf['lists']['length'];_0x5d75d4++){_0x550c7c&&_0x7185bf['lists'][_0x5d75d4]['id']===_0x550c7c['id']&&(_0x7185bf[_0x3585e4(0x1046)][_0x5d75d4][_0x3585e4(0x15da)]=![],_0x7b507e[_0x3585e4(0x2785)](_0x7185bf[_0x3585e4(0x1046)][_0x5d75d4]));}_0x7185bf[_0x3585e4(0x1046)]=_0x7b507e;}else{if(!_0x4b30f4[_0x3585e4(0x12f4)])return _0x504704['userProfileResource'][_0x3585e4(0xbf7)]({'sectionId':_0x4b30f4['id']})[_0x3585e4(0x1d77)][_0x3585e4(0x1cb0)](function(_0x39169d){const _0x3fd7c6=_0x3585e4,_0x30d16d=_0x39641b()[_0x3fd7c6(0x1de2)](_0x39169d[_0x3fd7c6(0x2214)],function(_0x50ef95){const _0x4587e1=_0x3fd7c6;return _0x39641b()[_0x4587e1(0x13b4)](_0x7185bf['lists'],{'id':_0x50ef95[_0x4587e1(0x2982)]});});let _0x3620de=null;_0x7185bf['mailAccount']&&(_0x3620de=_0x39641b()['find'](_0x7185bf[_0x3fd7c6(0x1046)],{'id':Number(_0x7185bf['mailAccount']['ListId'])}));if(_0x3620de&&!_0x39641b()['some'](_0x30d16d,['id',_0x3620de['id']])){const _0x2596ea=_0x39641b()['find'](_0x7185bf[_0x3fd7c6(0x1046)],{'id':_0x3620de['id']});_0x2596ea['canSelect']=![],_0x30d16d[_0x3fd7c6(0x2785)](_0x2596ea);}_0x7185bf[_0x3fd7c6(0x1046)]=_0x30d16d;});}})[_0x1139ae(0x1c4)](function(_0xa037e2){const _0xc6b359=_0x1139ae;_0x381893[_0xc6b359(0x218e)]({'title':_0xa037e2[_0xc6b359(0x291)]?_0xc6b359(0xeb9)+_0xa037e2[_0xc6b359(0x291)]+_0xc6b359(0x1657)+_0xa037e2[_0xc6b359(0xc22)]:_0xc6b359(0x113c),'msg':_0xa037e2['data']?JSON['stringify'](_0xa037e2[_0xc6b359(0x25c)]):_0xa037e2[_0xc6b359(0x147f)]()});});function _0xb1b7e9(){const _0x586039=_0x1139ae;_0x7185bf['errors']=[],_0x504704[_0x586039(0x131c)][_0x586039(0x1c3f)](_0x7185bf[_0x586039(0x131c)])[_0x586039(0x1d77)]['then'](function(_0x48176c){const _0x286bfe=_0x586039;_0x7185bf[_0x286bfe(0x228e)][_0x286bfe(0xf63)](_0x48176c['toJSON']()),_0x381893[_0x286bfe(0x829)]({'title':_0x286bfe(0x1c0a),'msg':_0x7185bf['mailAccount']['name']?_0x7185bf[_0x286bfe(0x131c)]['name']+_0x286bfe(0x470):''}),_0x14da46(_0x48176c);})[_0x586039(0x1c4)](function(_0x328eed){const _0x59c5c8=_0x586039;if(_0x328eed[_0x59c5c8(0x25c)]&&_0x328eed[_0x59c5c8(0x25c)][_0x59c5c8(0x1a7c)]&&_0x328eed[_0x59c5c8(0x25c)]['errors'][_0x59c5c8(0xfd0)]){_0x7185bf['errors']=_0x328eed['data']['errors']||[{'message':_0x328eed[_0x59c5c8(0x147f)](),'type':_0x59c5c8(0x2258)}];for(let _0x1eab5e=0x0;_0x1eab5e<_0x328eed[_0x59c5c8(0x25c)][_0x59c5c8(0x1a7c)]['length'];_0x1eab5e+=0x1){_0x381893[_0x59c5c8(0x218e)]({'title':_0x328eed[_0x59c5c8(0x25c)][_0x59c5c8(0x1a7c)][_0x1eab5e]['type'],'msg':_0x328eed[_0x59c5c8(0x25c)][_0x59c5c8(0x1a7c)][_0x1eab5e][_0x59c5c8(0x155e)]});}}else _0x381893[_0x59c5c8(0x218e)]({'title':_0x328eed[_0x59c5c8(0x291)]?_0x59c5c8(0xeb9)+_0x328eed[_0x59c5c8(0x291)]+_0x59c5c8(0x1657)+_0x328eed[_0x59c5c8(0xc22)]:_0x59c5c8(0x2258),'msg':_0x328eed[_0x59c5c8(0x25c)]?JSON[_0x59c5c8(0x2701)](_0x328eed['data'][_0x59c5c8(0x155e)]):_0x328eed['toString']()});});}function _0x4d7868(){const _0x3ed749=_0x1139ae;_0x7185bf[_0x3ed749(0x1a7c)]=[],_0x504704[_0x3ed749(0x131c)][_0x3ed749(0x687)]({'id':_0x7185bf[_0x3ed749(0x131c)]['id']},_0x7185bf[_0x3ed749(0x131c)])['$promise']['then'](function(_0x5c1e70){const _0x1c71c1=_0x3ed749,_0x30d8c5=_0x39641b()[_0x1c71c1(0x13b4)](_0x7185bf[_0x1c71c1(0x228e)],{'id':_0x5c1e70['id']});_0x30d8c5&&_0x39641b()[_0x1c71c1(0x9c1)](_0x30d8c5,_0x39641b()['pick'](_0x5c1e70['toJSON'](),_0x39641b()[_0x1c71c1(0x1be5)](_0x30d8c5))),_0x381893['success']({'title':'MailAccount\x20properly\x20saved!','msg':_0x7185bf[_0x1c71c1(0x131c)][_0x1c71c1(0x16b6)]?_0x7185bf[_0x1c71c1(0x131c)][_0x1c71c1(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x14da46(_0x5c1e70);})['catch'](function(_0x5756c8){const _0x45609a=_0x3ed749;if(_0x5756c8[_0x45609a(0x25c)]&&_0x5756c8[_0x45609a(0x25c)]['errors']&&_0x5756c8[_0x45609a(0x25c)][_0x45609a(0x1a7c)][_0x45609a(0xfd0)]){_0x7185bf['errors']=_0x5756c8[_0x45609a(0x25c)][_0x45609a(0x1a7c)]||[{'message':_0x5756c8[_0x45609a(0x147f)](),'type':'api.mailAccount.update'}];for(let _0x286882=0x0;_0x286882<_0x5756c8[_0x45609a(0x25c)][_0x45609a(0x1a7c)][_0x45609a(0xfd0)];_0x286882++){_0x381893[_0x45609a(0x218e)]({'title':_0x5756c8[_0x45609a(0x25c)]['errors'][_0x286882][_0x45609a(0x66a)],'msg':_0x5756c8['data']['errors'][_0x286882][_0x45609a(0x155e)]});}}else _0x381893[_0x45609a(0x218e)]({'title':_0x5756c8['status']?_0x45609a(0xeb9)+_0x5756c8[_0x45609a(0x291)]+_0x45609a(0x1657)+_0x5756c8[_0x45609a(0xc22)]:'api.mailAccount.update','msg':_0x5756c8['data']?JSON[_0x45609a(0x2701)](_0x5756c8['data']['message']):_0x5756c8['toString']()});});}function _0x4e7f5f(_0x59f1d8){const _0xcfb67=_0x1139ae;if(_0x7185bf[_0xcfb67(0x131c)][_0xcfb67(0xdc1)])return _0x381893['error']({'title':_0xcfb67(0xae9),'msg':_0xcfb67(0x433)});_0x7185bf[_0xcfb67(0x1a7c)]=[];const _0x206222=_0x4b0ea7[_0xcfb67(0x1551)]()['title'](_0xcfb67(0x1a2e))[_0xcfb67(0x862)](_0xcfb67(0x1712))[_0xcfb67(0x15ad)](_0xcfb67(0x7ef))['ok']('Delete')[_0xcfb67(0x696)](_0xcfb67(0xde1))[_0xcfb67(0x728)](_0x59f1d8);_0x4b0ea7['show'](_0x206222)[_0xcfb67(0x1cb0)](function(){const _0x1bc3af=_0xcfb67;_0x504704[_0x1bc3af(0x131c)][_0x1bc3af(0x111d)]({'id':_0x7185bf[_0x1bc3af(0x131c)]['id']})[_0x1bc3af(0x1d77)][_0x1bc3af(0x1cb0)](function(){const _0x48bf73=_0x1bc3af;_0x39641b()['remove'](_0x7185bf[_0x48bf73(0x228e)],{'id':_0x7185bf[_0x48bf73(0x131c)]['id']}),_0x381893[_0x48bf73(0x829)]({'title':_0x48bf73(0x26d1),'msg':(_0x7185bf[_0x48bf73(0x131c)][_0x48bf73(0x16b6)]||_0x48bf73(0x131c))+_0x48bf73(0x3f5)}),_0x14da46(_0x7185bf[_0x48bf73(0x131c)]);})[_0x1bc3af(0x1c4)](function(_0x3c0200){const _0x514286=_0x1bc3af;if(_0x3c0200['data']&&_0x3c0200[_0x514286(0x25c)]['errors']&&_0x3c0200[_0x514286(0x25c)]['errors'][_0x514286(0xfd0)]){_0x7185bf[_0x514286(0x1a7c)]=_0x3c0200[_0x514286(0x25c)][_0x514286(0x1a7c)]||[{'message':_0x3c0200[_0x514286(0x147f)](),'type':_0x514286(0x19ca)}];for(let _0x9db268=0x0;_0x9db268<_0x3c0200[_0x514286(0x25c)][_0x514286(0x1a7c)][_0x514286(0xfd0)];_0x9db268++){_0x381893[_0x514286(0x218e)]({'title':_0x3c0200['data'][_0x514286(0x1a7c)][_0x9db268][_0x514286(0x66a)],'msg':_0x3c0200['data'][_0x514286(0x1a7c)][_0x9db268]['message']});}}else _0x381893[_0x514286(0x218e)]({'title':_0x3c0200[_0x514286(0x291)]?_0x514286(0xeb9)+_0x3c0200['status']+_0x514286(0x1657)+_0x3c0200[_0x514286(0xc22)]:'api.mailAccount.delete','msg':_0x3c0200[_0x514286(0x25c)]?JSON[_0x514286(0x2701)](_0x3c0200[_0x514286(0x25c)][_0x514286(0x155e)]):_0x3c0200[_0x514286(0x155e)]||_0x3c0200['toString']()});});},function(){});}function _0x217741(_0x509369){return _0x509369===null?undefined:new Date(_0x509369);}function _0x14da46(_0x314a0f){const _0x1c4faf=_0x1139ae;_0x4b0ea7[_0x1c4faf(0x1426)](_0x314a0f);}}const _0x3cf825=_0xd7ab08;;const _0x786234=_0x5074a3['p']+_0x5537c6(0x266e);;const _0x521b8a=_0x5074a3['p']+_0x5537c6(0x867);;const _0x56d8d0=_0x5074a3['p']+_0x5537c6(0x29d5);;const _0x2b07a4=_0x5074a3['p']+_0x5537c6(0x2050);;const _0x248716=_0x5074a3['p']+_0x5537c6(0x20e8);;const _0x1d534e=_0x5074a3['p']+_0x5537c6(0x276b);;const _0x1be948=_0x5074a3['p']+_0x5537c6(0x7fe);;const _0x2f9808=_0x5074a3['p']+_0x5537c6(0x731);;const _0x541d7d=_0x5074a3['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/system/dialog.html/dialog.html';;const _0x2e292c=_0x5074a3['p']+_0x5537c6(0x254c);;_0x3718a3[_0x5537c6(0x15b6)]=[_0x5537c6(0x142b),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x1774)];const _0x3276ea={'agent':_0x786234,'autoreply':_0x521b8a,'close':_0x56d8d0,'gotoif':_0x2b07a4,'gotop':_0x248716,'interval':_0x1d534e,'noop':_0x1be948,'queue':_0x2f9808,'system':_0x541d7d,'tag':_0x2e292c};function _0x3718a3(_0x1dcdab,_0x206a9a,_0x5f1475,_0x2f85ee,_0x1ed3a2){const _0xfa604d=_0x5537c6,_0x56411e=this;_0x56411e['currentUser']=_0x1ed3a2['getCurrentUser'](),_0x56411e[_0xfa604d(0x131c)]={},_0x56411e[_0xfa604d(0x8a1)]={'count':0x0,'rows':[]},_0x56411e[_0xfa604d(0x9f9)]=[],_0x56411e[_0xfa604d(0x1b1a)],_0x56411e[_0xfa604d(0xae2)]={'sort':'priority'},_0x56411e[_0xfa604d(0x196f)]=_0x39641b()[_0xfa604d(0x988)](_0x39641b()[_0xfa604d(0x1d33)]([{'app':_0xfa604d(0x1d81),'appType':_0xfa604d(0x1ac8),'types':[_0xfa604d(0x2017),'custom',_0xfa604d(0x240)],'fields':[],'isApp':![]},{'app':_0xfa604d(0x1234),'appType':'noop','type':_0xfa604d(0x1234),'icon':_0xfa604d(0x33e),'interval':_0xfa604d(0x965),'required':!![],'isApp':!![],'fields':[{'title':_0xfa604d(0x1e10),'name':_0xfa604d(0x327),'type':'text','param':0x0}]},{'app':'system','appType':_0xfa604d(0x7be),'type':_0xfa604d(0x7be),'icon':_0xfa604d(0x33e),'interval':'*,*,*,*','required':!![],'isApp':!![],'extraApi':[{'name':_0xfa604d(0x9a9),'field':{'name':_0xfa604d(0x1822),'key':_0xfa604d(0x16b6)},'route':_0xfa604d(0x1822),'filters':{'fields':_0xfa604d(0x43c),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0xfa604d(0x1b9),'name':_0xfa604d(0xd0d),'type':'text','required':!![],'param':0x0},{'title':_0xfa604d(0x1b02),'name':_0xfa604d(0x1822),'type':_0xfa604d(0xb52),'values':_0xfa604d(0x9a9),'value':_0xfa604d(0x3f3),'option':_0xfa604d(0x3f3),'defaultValues':[{'value':'\x27\x27','option':_0xfa604d(0x2001)}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':_0xfa604d(0x265b),'type':_0xfa604d(0x3da),'icon':_0xfa604d(0x33e),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0xfa604d(0x1240),'name':_0xfa604d(0x521),'type':_0xfa604d(0x83d),'required':!![],'min':0x0,'param':0x0}]},{'app':_0xfa604d(0x13a0),'appType':_0xfa604d(0x13a0),'type':'gotoif','icon':'icon-apps','interval':_0xfa604d(0x965),'isApp':!![],'fields':[{'title':_0xfa604d(0x28f5),'name':_0xfa604d(0x166c),'type':_0xfa604d(0x19d3),'required':!![],'param':0x0},{'title':_0xfa604d(0xb24),'name':_0xfa604d(0xb24),'type':_0xfa604d(0x83d),'min':0x1,'required':!![],'param':0x1},{'title':_0xfa604d(0x17d),'name':_0xfa604d(0x17d),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':_0xfa604d(0x11cf),'appType':_0xfa604d(0x11cf),'foreignKey':_0xfa604d(0x17a5),'type':_0xfa604d(0x11cf),'icon':_0xfa604d(0x33e),'interval':_0xfa604d(0x965),'isApp':!![],'extraApi':[{'name':_0xfa604d(0x971),'field':{'name':_0xfa604d(0x11cf),'key':'name'},'route':_0xfa604d(0x16e1),'filters':{'fields':_0xfa604d(0x1896),'sort':_0xfa604d(0x16b6),'nolimit':!![]},'permissions':{'section':0x259}}],'fields':[{'title':_0xfa604d(0x2687),'name':_0xfa604d(0x11cf),'type':_0xfa604d(0xb52),'values':_0xfa604d(0x971),'value':_0xfa604d(0x19b3),'option':_0xfa604d(0x19b3),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':_0xfa604d(0x83d),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0xfa604d(0x1eff),'appType':_0xfa604d(0x1eff),'type':_0xfa604d(0x1eff),'foreignKey':_0xfa604d(0x21ab),'icon':_0xfa604d(0x33e),'interval':_0xfa604d(0x965),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':_0xfa604d(0x1eff),'key':_0xfa604d(0x16b6)},'route':'user','filters':{'fields':_0xfa604d(0x43c),'sort':'name','nolimit':!![],'role':_0xfa604d(0x1eff)},'permissions':{'section':0xca}}],'fields':[{'title':_0xfa604d(0x30e),'name':_0xfa604d(0x1eff),'type':'apiselect','values':'agents','value':_0xfa604d(0x302),'option':_0xfa604d(0x302),'required':!![],'param':0x0},{'title':_0xfa604d(0xbcc),'name':_0xfa604d(0x1719),'type':_0xfa604d(0x83d),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0xfa604d(0x1f71),'appType':'autoreply','type':'autoreply','icon':_0xfa604d(0x33e),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0xfa604d(0x18a5),'name':'times','type':'select','defaultValue':'1','values':[{'option':_0xfa604d(0x431),'value':'1'},{'option':_0xfa604d(0x1288),'value':'0'}],'required':!![],'param':0x0},{'title':_0xfa604d(0x620),'name':_0xfa604d(0x19d3),'type':_0xfa604d(0x1d35),'required':!![],'param':0x1}]},{'app':'close','appType':_0xfa604d(0xf3b),'type':_0xfa604d(0xf3b),'icon':_0xfa604d(0x33e),'interval':_0xfa604d(0x965),'isApp':!![],'fields':[{'title':_0xfa604d(0x2542),'name':'disposition','type':_0xfa604d(0x19d3),'required':!![],'param':0x0}]},{'app':'tag','appType':_0xfa604d(0x22b1),'type':_0xfa604d(0x22b1),'foreignKey':_0xfa604d(0x1754),'icon':_0xfa604d(0x33e),'interval':_0xfa604d(0x965),'isApp':!![],'extraApi':[{'name':_0xfa604d(0xfbf),'field':{'name':_0xfa604d(0x22b1),'key':'name'},'route':_0xfa604d(0x22b1),'filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':'Tag','name':_0xfa604d(0x22b1),'type':_0xfa604d(0xb52),'values':_0xfa604d(0xfbf),'value':_0xfa604d(0x52a),'option':_0xfa604d(0x52a),'required':!![],'param':0x0}]}],[_0xfa604d(0x22e1)]),{'isApp':![]}),_0x56411e[_0xfa604d(0x240)]={'group':{'name':_0xfa604d(0x2523),'pull':_0xfa604d(0x11bc)},'animation':0x64,'sort':![]},_0x56411e[_0xfa604d(0x1f2f)]={'group':{'name':_0xfa604d(0x1ddb),'put':_0xfa604d(0x2523)},'animation':0x64,'onAdd':function(_0x3f16e0){const _0x3c5ad0=_0xfa604d;_0x21c06d(_0x3f16e0,_0x3f16e0[_0x3c5ad0(0x22e)]);},'onSort':function(){_0x648789();}},_0x56411e[_0xfa604d(0x1a8e)]=_0x73b089,_0x56411e['deleteConfirm']=_0x3d08db,_0x56411e['getMailAccountApps']=_0x46cddf,_0x56411e[_0xfa604d(0x2281)]=_0x21c06d,_0x56411e[_0xfa604d(0x1eee)]=_0x37897b,_0x56411e['deleteMailAccountApp']=_0x3279cb,_0x56411e[_0xfa604d(0xd43)]=_0x2b749b,_0x56411e[_0xfa604d(0x463)]=_0x648789,_0x56411e[_0xfa604d(0x22fc)]=_0x3f397e;function _0x73b089(_0x2e7182,_0xebed4){const _0x86ebb=_0xfa604d;_0x56411e[_0x86ebb(0x131c)]=_0x2e7182,_0x56411e[_0x86ebb(0x1b1a)]=typeof _0xebed4!==_0x86ebb(0x16b5)?_0xebed4:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x56411e['applications']['disabled']=!_0x56411e['crudPermissions']['canEdit']?!![]:![],_0x56411e[_0x86ebb(0xae2)]['id']=_0x2e7182['id'],_0x56411e['query'][_0x86ebb(0xead)]=!![],_0x56411e['query'][_0x86ebb(0x2282)]=!![],_0x56411e[_0x86ebb(0x1651)](),_0x56411e[_0x86ebb(0x22fc)]();}function _0x3d08db(_0x42a5cf,_0x580b31,_0x201fcc){const _0x4a1339=_0xfa604d,_0x407a29=_0x206a9a['confirm']()[_0x4a1339(0x1386)](_0x4a1339(0xf35))[_0x4a1339(0x49e)](_0x4a1339(0x204d)+_0x42a5cf[_0x4a1339(0x22e1)]+_0x4a1339(0x1200)+_0x4a1339(0x1b6))[_0x4a1339(0x15ad)](_0x4a1339(0x2998))[_0x4a1339(0x728)](_0x201fcc)['ok']('OK')['cancel'](_0x4a1339(0x24ba));_0x206a9a[_0x4a1339(0xe27)](_0x407a29)[_0x4a1339(0x1cb0)](function(){const _0x16a358=_0x4a1339;_0x56411e[_0x16a358(0x8a1)]['rows'][_0x16a358(0x159c)](_0x580b31,0x1),_0x648789();},function(){const _0x50ee18=_0x4a1339;console[_0x50ee18(0x1b4f)](_0x50ee18(0x24ba));});}function _0x21c06d(_0x53f867,_0x3b94db){const _0x28ad2c=_0xfa604d;if(_0x56411e['mailAccountApps'][_0x28ad2c(0x2214)][_0x28ad2c(0xfd0)]){const _0x70c764=_0x56411e[_0x28ad2c(0x8a1)][_0x28ad2c(0x2214)][_0x3b94db]?_0x56411e[_0x28ad2c(0x8a1)][_0x28ad2c(0x2214)][_0x3b94db]:_0x56411e[_0x28ad2c(0x8a1)][_0x28ad2c(0x2214)][0x0],_0x202ab2=(_0x70c764[_0x28ad2c(0x299b)]||_0x70c764[_0x28ad2c(0x22e1)])['toLowerCase']();_0x206a9a[_0x28ad2c(0xe27)]({'controller':_0x28ad2c(0xc33)+_0x202ab2+_0x28ad2c(0x198f),'controllerAs':'vm','templateUrl':_0x3276ea[_0x202ab2],'parent':angular[_0x28ad2c(0x1853)](_0x5f1475[_0x28ad2c(0x1ed9)]),'targetEvent':_0x53f867,'clickOutsideToClose':!![],'locals':{'mailAccountApp':_0x70c764,'mailAccount':_0x56411e[_0x28ad2c(0x131c)],'crudPermissions':_0x56411e[_0x28ad2c(0x1b1a)]}})['then'](function(_0x301f36){const _0x4be1d7=_0x28ad2c;_0x301f36&&(_0x301f36['id']?_0x56411e[_0x4be1d7(0x8a1)]['rows'][_0x3b94db]=_0x301f36:_0x56411e[_0x4be1d7(0x8a1)][_0x4be1d7(0x2214)][_0x4be1d7(0x159c)](_0x3b94db,0x0,_0x301f36),_0x648789());})['catch'](function(_0x45713b){const _0x5b2b8e=_0x28ad2c;_0x45713b&&_0x2f85ee['error']({'title':_0x45713b[_0x5b2b8e(0x291)]?_0x5b2b8e(0xeb9)+_0x45713b[_0x5b2b8e(0x291)]+'\x20-\x20'+_0x45713b[_0x5b2b8e(0xc22)]:_0x5b2b8e(0xd95),'msg':_0x45713b[_0x5b2b8e(0x25c)]?JSON[_0x5b2b8e(0x2701)](_0x45713b[_0x5b2b8e(0x25c)]):_0x45713b[_0x5b2b8e(0x147f)]()});});}}function _0x37897b(_0x39b74e,_0x145284){const _0x39fda9=_0xfa604d;if(_0x56411e['mailAccountApps'][_0x39fda9(0x2214)][_0x39fda9(0xfd0)]){const _0x2deea7=_0x56411e[_0x39fda9(0x8a1)][_0x39fda9(0x2214)][_0x145284]?_0x56411e['mailAccountApps'][_0x39fda9(0x2214)][_0x145284]:_0x56411e[_0x39fda9(0x8a1)][_0x39fda9(0x2214)][0x0];_0x206a9a[_0x39fda9(0xe27)]({'controller':_0x39fda9(0x17c0),'controllerAs':'vm','templateUrl':_0x1d534e,'parent':angular[_0x39fda9(0x1853)](_0x5f1475['body']),'targetEvent':_0x39b74e,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x2deea7[_0x39fda9(0x1ac8)],'IntervalId':_0x2deea7['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x56411e[_0x39fda9(0x1b1a)]}})['then'](function(_0x360f06){const _0x38acaa=_0x39fda9;_0x360f06&&(_0x2deea7[_0x38acaa(0x1ac8)]=_0x360f06['interval']||_0x38acaa(0x965),_0x2deea7[_0x38acaa(0x1a60)]=_0x360f06[_0x38acaa(0x1a60)]||null,_0x648789());});}}function _0x648789(){const _0x3b6489=_0xfa604d;let _0x7111c4=0x1,_0x18adb8=[];for(let _0x2c08fc=0x0;_0x2c08fc<_0x56411e[_0x3b6489(0x8a1)][_0x3b6489(0x2214)][_0x3b6489(0xfd0)];_0x2c08fc++){const _0x2b9923=_0x56411e['mailAccountApps'][_0x3b6489(0x2214)][_0x2c08fc],_0x4d8f32=[],_0x48d019=[];_0x2b9923[_0x3b6489(0xb4a)]=_0x2b9923[_0x3b6489(0x1ac8)]!==_0x3b6489(0x965)?[_0x2b9923[_0x3b6489(0x1ac8)]]:_0x2b9923[_0x3b6489(0x1a60)]?_0x39641b()[_0x3b6489(0x1de2)](_0x39641b()[_0x3b6489(0x1c99)](_0x56411e[_0x3b6489(0xb4a)][_0x3b6489(0x2214)],{'IntervalId':_0x2b9923[_0x3b6489(0x1a60)]}),_0x3b6489(0x1ac8)):[],_0x2b9923[_0x3b6489(0x2056)]=_0x56411e[_0x3b6489(0x131c)][_0x3b6489(0x2056)],_0x2b9923['exten']=_0x56411e['mailAccount'][_0x3b6489(0x26a2)],_0x2b9923[_0x3b6489(0x66a)]&&(_0x2b9923['type']=_0x2b9923[_0x3b6489(0x66a)][_0x3b6489(0x1680)]()),_0x2b9923[_0x3b6489(0x521)]=_0x4d8f32['length']?_0x39641b()[_0x3b6489(0x1f9e)](_0x4d8f32)[_0x3b6489(0x521)]+0x1:_0x7111c4,_0x7111c4=(_0x48d019[_0x3b6489(0xfd0)]?_0x39641b()[_0x3b6489(0x1f9e)](_0x48d019)[_0x3b6489(0x521)]:_0x2b9923[_0x3b6489(0x521)])+0x1,_0x18adb8=_0x39641b()[_0x3b6489(0x298a)](_0x18adb8,_0x4d8f32,[_0x2b9923],_0x48d019);}_0x1dcdab['mailAccount'][_0x3b6489(0x2598)]({'id':_0x56411e[_0x3b6489(0x131c)]['id']},_0x39641b()[_0x3b6489(0x1d33)](_0x18adb8,_0x3b6489(0x521)))['$promise']['then'](function(_0x48966c){const _0x5b1e40=_0x3b6489;_0x56411e[_0x5b1e40(0x8a1)][_0x5b1e40(0x2214)]=_0x48966c[_0x5b1e40(0x2214)];})[_0x3b6489(0x1c4)](function(_0x1bcb9a){console['error'](_0x1bcb9a);});}function _0x1097c7(_0x555f0e){_0x56411e['mailAccountApps']=_0x555f0e||{'count':0x0,'rows':[]};}function _0x3f397e(){const _0x260c4d=_0xfa604d;return _0x1dcdab['interval']['get']({'fields':_0x260c4d(0x18b2)})[_0x260c4d(0x1d77)]['then'](function(_0x259907){const _0x510ec8=_0x260c4d;_0x56411e[_0x510ec8(0xb4a)]=_0x259907;})[_0x260c4d(0x1c4)](function(_0x51e06c){const _0x47bd6b=_0x260c4d;console[_0x47bd6b(0x218e)](_0x51e06c);});}function _0x46cddf(){const _0x1064da=_0xfa604d;_0x56411e['promise']=_0x1dcdab[_0x1064da(0x131c)][_0x1064da(0x930)](_0x56411e[_0x1064da(0xae2)],_0x1097c7)[_0x1064da(0x1d77)];}function _0x3279cb(_0xf86c60){const _0x2d96ef=_0xfa604d;_0x39641b()[_0x2d96ef(0x152a)](_0x56411e[_0x2d96ef(0x8a1)][_0x2d96ef(0x2214)],{'id':_0xf86c60['id']}),_0x648789(),_0x2f85ee['success']({'title':_0x2d96ef(0x2923),'msg':_0xf86c60[_0x2d96ef(0x22e1)]?_0xf86c60[_0x2d96ef(0x22e1)]+_0x2d96ef(0x3f5):''});}function _0x2b749b(_0x295852){const _0x181f02=_0xfa604d,_0x5419ba=_0x206a9a[_0x181f02(0x1551)]()[_0x181f02(0x1386)](_0x181f02(0x2436))['htmlContent'](_0x181f02(0x204d)+_0x56411e[_0x181f02(0x9f9)][_0x181f02(0xfd0)]+_0x181f02(0x1d6c)+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20applications')['targetEvent'](_0x295852)['ok']('OK')['cancel']('CANCEL');_0x206a9a[_0x181f02(0xe27)](_0x5419ba)[_0x181f02(0x1cb0)](function(){const _0x5aacb7=_0x181f02;_0x56411e[_0x5aacb7(0x9f9)][_0x5aacb7(0xf90)](function(_0x20395d){const _0x3e62b7=_0x5aacb7;_0x39641b()[_0x3e62b7(0x152a)](_0x56411e[_0x3e62b7(0x8a1)]['rows'],{'id':_0x20395d['id']});}),_0x56411e['selectedMailAccountApps']=[],_0x648789();});}}const _0x540fca=_0x3718a3;;_0x210f9c[_0x5537c6(0x15b6)]=['$mdDialog','$q','toasty',_0x5537c6(0x142b),_0x5537c6(0x131c),_0x5537c6(0x228e),_0x5537c6(0x217b),_0x5537c6(0x1ae),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x210f9c(_0x43d853,_0x301869,_0x63ca19,_0xf31f03,_0xd4314f,_0x214b29,_0x54e8e3,_0x392db5,_0xaf20e8,_0x2e257c){const _0x42018a=_0x5537c6,_0x2f658b=this;_0x2f658b[_0x42018a(0xe76)]=_0xaf20e8[_0x42018a(0x21e8)](),_0x2f658b['mailAccount']=_0xd4314f,_0x2f658b[_0x42018a(0x1b1a)]=_0x2e257c,_0x2f658b[_0x42018a(0x217b)]=_0x54e8e3,_0x2f658b['items']=[],_0x2f658b[_0x42018a(0x1372)]=[],_0x2f658b[_0x42018a(0x20bb)]=[],_0x2f658b[_0x42018a(0xbd5)]=[],_0x2f658b[_0x42018a(0x1456)]=[],_0x2f658b[_0x42018a(0x50c)]=![],_0x2f658b[_0x42018a(0x1a34)]=_0x2e364d,_0x2f658b[_0x42018a(0x1dd5)]=_0x1f952f,_0x2f658b[_0x42018a(0xda0)]=_0x424d81,_0x2f658b['dualMultiselectOptions']={'readOnly':!_0x2f658b['crudPermissions'][_0x42018a(0xb3d)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x42018a(0x16b6),'line1':'fullname','line2':[_0x42018a(0x16b6),_0x42018a(0xdbd)],'line3':'','labelAll':_0x392db5['instant'](_0x42018a(0x21e7)),'labelSelected':_0x392db5['instant'](_0x42018a(0x1cd5)),'transferCallback':function(){const _0x19d927=_0x42018a,_0x3b10cf=_0x39641b()['xorBy'](_0x2f658b[_0x19d927(0x1456)],_0x2f658b[_0x19d927(0x20bb)],'id');_0x2f658b[_0x19d927(0x50c)]=_0x39641b()['isEmpty'](_0x3b10cf)?![]:!![];}};function _0x2e364d(){const _0x18e8bb=_0x42018a;return _0xaf20e8[_0x18e8bb(0x22b6)](_0x18e8bb(0x1c60))?_0x4aed0a()[_0x18e8bb(0x1c4)](function(_0x4df610){const _0x2b937f=_0x18e8bb;_0x63ca19[_0x2b937f(0x218e)]({'title':_0x4df610['status']?'API:'+_0x4df610[_0x2b937f(0x291)]+_0x2b937f(0x1657)+_0x4df610['statusText']:_0x2b937f(0x799),'msg':_0x4df610[_0x2b937f(0x291)]?JSON[_0x2b937f(0x2701)](_0x4df610['data']):_0x4df610[_0x2b937f(0x147f)]()});}):_0x4c72b5()['then'](function(_0x45d101){return _0x2f658b['section']=_0x45d101,_0x4aed0a();})['catch'](function(_0x37debf){const _0x3476e1=_0x18e8bb;_0x63ca19[_0x3476e1(0x218e)]({'title':_0x37debf[_0x3476e1(0x291)]?_0x3476e1(0xeb9)+_0x37debf[_0x3476e1(0x291)]+_0x3476e1(0x1657)+_0x37debf[_0x3476e1(0xc22)]:_0x3476e1(0x799),'msg':_0x37debf[_0x3476e1(0x291)]?JSON[_0x3476e1(0x2701)](_0x37debf['data']):_0x37debf['toString']()});});}function _0x4c72b5(){return _0x301869(function(_0x5eb8be,_0x30f907){const _0x620700=a0_0x5cbd;_0xf31f03[_0x620700(0x2199)]['get']({'userProfileId':_0x2f658b['currentUser']['userProfileId'],'name':_0x620700(0x2536)})[_0x620700(0x1d77)][_0x620700(0x1cb0)](function(_0xfc3bf1){const _0x2f62d5=_0x620700,_0x56c537=_0xfc3bf1&&_0xfc3bf1[_0x2f62d5(0x2214)]?_0xfc3bf1[_0x2f62d5(0x2214)][0x0]:null;_0x5eb8be(_0x56c537);})[_0x620700(0x1c4)](function(_0xa35203){_0x30f907(_0xa35203);});});}function _0x4aed0a(){return _0x301869(function(_0x394421,_0x2371a7){const _0x505d61=a0_0x5cbd;return _0x1b3bcf()[_0x505d61(0x1cb0)](function(_0x31b948){const _0x1ce279=_0x505d61;return _0x2f658b[_0x1ce279(0x122f)]=_0x31b948[_0x1ce279(0x2214)]?_0x31b948[_0x1ce279(0x2214)]:[],_0xaf20e8[_0x1ce279(0x22b6)]('admin')?_0x31b948:_0x2f658b[_0x1ce279(0x1f74)]?_0x2f658b[_0x1ce279(0x1f74)][_0x1ce279(0x12f4)]?_0x31b948:_0x1c02bc():null;})[_0x505d61(0x1cb0)](function(_0x58d667){const _0x4ac3b1=_0x505d61,_0x1e8ed9=_0x58d667&&_0x58d667[_0x4ac3b1(0x2214)]?_0x58d667[_0x4ac3b1(0x2214)]:[];return _0x2f658b['allowedItems']=_0x39641b()[_0x4ac3b1(0x1de2)](_0x1e8ed9,function(_0x3202e7){const _0x16d963=_0x4ac3b1;return _0x39641b()['find'](_0x2f658b['items'],{'id':_0xaf20e8[_0x16d963(0x22b6)](_0x16d963(0x1c60))||_0x2f658b['section'][_0x16d963(0x12f4)]?_0x3202e7['id']:_0x3202e7[_0x16d963(0x2982)]});}),_0x2f658b[_0x4ac3b1(0xbd5)]=angular['copy'](_0x2f658b[_0x4ac3b1(0x1372)]),_0x2f658b[_0x4ac3b1(0x122f)][_0x4ac3b1(0xf90)](function(_0x1916fa){const _0x1d0c05=_0x4ac3b1,_0x2c6349=_0x39641b()[_0x1d0c05(0x13b4)](_0x2f658b[_0x1d0c05(0x1372)],{'id':_0x1916fa['id']});_0xaf20e8['hasRole'](_0x1d0c05(0x1c60))?_0x1916fa[_0x1d0c05(0x1a4f)]=!![]:_0x1916fa[_0x1d0c05(0x1a4f)]=typeof _0x2c6349!==_0x1d0c05(0x16b5)?!![]:![];}),_0x403ee2();})[_0x505d61(0x1cb0)](function(_0x4ed41f){const _0x2ff345=_0x505d61,_0x5de7c0=_0x4ed41f&&_0x4ed41f[_0x2ff345(0x2214)]?_0x4ed41f['rows']:[];_0x2f658b['selectedItems']=_0x39641b()['map'](_0x5de7c0,function(_0x1198fb){const _0x1dc9fe=_0x2ff345,_0x51544e=_0x39641b()[_0x1dc9fe(0x13b4)](_0x2f658b[_0x1dc9fe(0x122f)],{'id':_0x1198fb['id']});return _0x51544e[_0x1dc9fe(0x1cbc)]=_0x1198fb[_0x1dc9fe(0x26bb)]?_0x1dc9fe(0x455)+_0x1198fb[_0x1dc9fe(0x26bb)]['penalty']:'',_0x51544e['internal']=typeof _0x1198fb['internal']!==_0x1dc9fe(0x16b5)?'<'+_0x1198fb['internal']+'>':'',_0x51544e;}),_0x2f658b[_0x2ff345(0x1456)]=angular[_0x2ff345(0x17fe)](_0x2f658b[_0x2ff345(0x20bb)]),_0x2f658b[_0x2ff345(0x18c0)]['selectedItems']=_0x2f658b[_0x2ff345(0x20bb)],_0x2f658b[_0x2ff345(0x18c0)][_0x2ff345(0x122f)]=_0x39641b()[_0x2ff345(0x2128)](_0x2f658b['allowedItems'],_0x2f658b[_0x2ff345(0x18c0)][_0x2ff345(0x20bb)],'id'),_0x394421();})[_0x505d61(0x1c4)](function(_0x3008e9){_0x2371a7(_0x3008e9);});});}function _0x1c02bc(){return _0x301869(function(_0x4bc99b,_0x4c7328){const _0x1b48a2=a0_0x5cbd;return _0xf31f03[_0x1b48a2(0x1198)][_0x1b48a2(0xbf7)]({'sectionId':_0x2f658b[_0x1b48a2(0x1f74)]['id'],'nolimit':!![]})['$promise'][_0x1b48a2(0x1cb0)](function(_0xe2b25){_0x4bc99b(_0xe2b25);})['catch'](function(_0x178170){_0x4c7328(_0x178170);});});}function _0x403ee2(){return _0x301869(function(_0x2c2286,_0x313f32){const _0x467b69=a0_0x5cbd;return _0xf31f03[_0x467b69(0x131c)][_0x467b69(0x2348)]({'id':_0x2f658b['mailAccount']['id'],'fields':_0x467b69(0x251e),'nolimit':!![],'role':_0x467b69(0x1eff)})[_0x467b69(0x1d77)][_0x467b69(0x1cb0)](function(_0x2eb96f){_0x2c2286(_0x2eb96f);})[_0x467b69(0x1c4)](function(_0x4e5946){_0x313f32(_0x4e5946);});});}function _0x1b3bcf(){return _0x301869(function(_0x198933,_0x337b4a){const _0x1094dd=a0_0x5cbd;return _0xf31f03['user']['get']({'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})['$promise']['then'](function(_0x4fb427){_0x198933(_0x4fb427);})[_0x1094dd(0x1c4)](function(_0x28a027){_0x337b4a(_0x28a027);});});}function _0x18c322(_0x2eb5aa){return _0x301869(function(_0x4062e6,_0x22fd4d){const _0x5e289b=a0_0x5cbd;_0x39641b()['isEmpty'](_0x2eb5aa)?_0x4062e6():_0xf31f03[_0x5e289b(0x131c)][_0x5e289b(0x2057)]({'id':_0x2f658b[_0x5e289b(0x131c)]['id'],'ids':_0x39641b()[_0x5e289b(0x1de2)](_0x2eb5aa,'id')})['$promise']['then'](function(){_0x4062e6();})[_0x5e289b(0x1c4)](function(_0x4cf90b){_0x22fd4d(_0x4cf90b);});});}function _0x6bfd34(_0xfc3eae){return _0x301869(function(_0x2f7de8,_0x32d284){const _0x9fe615=a0_0x5cbd;_0x39641b()[_0x9fe615(0xce9)](_0xfc3eae)?_0x2f7de8():_0xf31f03[_0x9fe615(0x131c)][_0x9fe615(0x223f)]({'id':_0x2f658b[_0x9fe615(0x131c)]['id'],'ids':_0x39641b()[_0x9fe615(0x1de2)](_0xfc3eae,'id')})[_0x9fe615(0x1d77)][_0x9fe615(0x1cb0)](function(){_0x2f7de8();})[_0x9fe615(0x1c4)](function(_0x5cd820){_0x32d284(_0x5cd820);});});}function _0x1f952f(){const _0x511599=_0x42018a,_0x520682=_0x39641b()['differenceBy'](_0x2f658b[_0x511599(0x1456)],_0x2f658b['selectedItems'],'id'),_0x159b88=_0x39641b()[_0x511599(0x2128)](_0x2f658b['selectedItems'],_0x2f658b[_0x511599(0x1456)],'id');return _0x6bfd34(_0x520682)[_0x511599(0x1cb0)](function(){return _0x18c322(_0x159b88);})[_0x511599(0x1cb0)](function(){const _0x414ce8=_0x511599;_0x2f658b['pendingChanges']=![],_0x2f658b[_0x414ce8(0xbd5)]=angular[_0x414ce8(0x17fe)](_0x2f658b[_0x414ce8(0x1372)]),_0x2f658b[_0x414ce8(0x1456)]=angular[_0x414ce8(0x17fe)](_0x2f658b['selectedItems']),_0x63ca19[_0x414ce8(0x829)]({'title':'SUCCESS','msg':_0x414ce8(0x976)});})['catch'](function(_0x4f0115){const _0xbce0fc=_0x511599;_0x63ca19[_0xbce0fc(0x218e)]({'title':_0x4f0115[_0xbce0fc(0x291)]?'API:'+_0x4f0115[_0xbce0fc(0x291)]+_0xbce0fc(0x1657)+_0x4f0115['statusText']:'SYSTEM:LISTS_ASSOCIATION','msg':_0x4f0115[_0xbce0fc(0x291)]?JSON[_0xbce0fc(0x2701)](_0x4f0115[_0xbce0fc(0x25c)]):_0x4f0115[_0xbce0fc(0x147f)]()});});}function _0x424d81(){_0x43d853['hide']();}}const _0x1fbeff=_0x210f9c;;_0x536a9c[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),'mailAccountApp',_0x5537c6(0x131c),'api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x536a9c(_0x35f3ff,_0x18a766,_0x27a1bf,_0x102d06,_0x5847a2,_0x303640,_0x4fdd5c,_0xa55a51){const _0x16265d=_0x5537c6,_0x5182f6=this;_0x5182f6[_0x16265d(0xe76)]=_0x4fdd5c[_0x16265d(0x21e8)](),_0x5182f6[_0x16265d(0x1a7c)]=[],_0x5182f6[_0x16265d(0x1386)]=_0x16265d(0x1bd7)+(_0x102d06[_0x16265d(0x299b)]||_0x102d06[_0x16265d(0x22e1)])[_0x16265d(0x2335)](),_0x5182f6[_0x16265d(0x1eff)]=angular[_0x16265d(0x17fe)](_0x102d06),_0x5182f6[_0x16265d(0x1b1a)]=_0xa55a51,_0x5182f6[_0x16265d(0xf4c)]={};if(_0x5182f6[_0x16265d(0x1eff)]['appdata'])switch(_0x5182f6[_0x16265d(0x1eff)]['appType']?_0x5182f6[_0x16265d(0x1eff)]['appType'][_0x16265d(0x1680)]():_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x22e1)]['toLowerCase']()){case _0x16265d(0x197c):break;case _0x16265d(0x711):{const _0xb1b5f8=_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x28df)]['split'](',');_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0xee8)]=_0xb1b5f8[0x0],_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x12b4)]=_0xb1b5f8[0x1],_0x5182f6[_0x16265d(0x1eff)]['welcomemessage']=_0xb1b5f8[_0x16265d(0x14cb)](0x2,_0xb1b5f8[_0x16265d(0xfd0)])[_0x16265d(0x1f66)](',');}break;case'dialogflowv2':{const _0x5b10c8=_0x5182f6['agent'][_0x16265d(0x28df)]['split'](',');_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x2854)]=_0x5b10c8[0x0],_0x5182f6[_0x16265d(0x1eff)]['clientEmail']=_0x5b10c8[0x1],_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x29d6)]=_0x5b10c8[0x2],_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x12b4)]=_0x5b10c8[0x3],_0x5182f6['agent'][_0x16265d(0x173a)]=_0x5b10c8['slice'](0x4,_0x5b10c8['length'])[_0x16265d(0x1f66)](',');}break;case'amazonlex':{const _0x2a5174=_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x28df)]['split'](',');_0x5182f6['agent']['accesskeyid']=_0x2a5174[0x0],_0x5182f6['agent']['secretaccesskey']=_0x2a5174[0x1],_0x5182f6['agent'][_0x16265d(0xd50)]=_0x2a5174[0x2],_0x5182f6['agent'][_0x16265d(0x1c7f)]=_0x2a5174[0x3],_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x173a)]=_0x2a5174[_0x16265d(0x14cb)](0x4,_0x2a5174['length'])['join'](',');}break;case _0x16265d(0x1f71):{const _0x548019=_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x28df)][_0x16265d(0xbe1)](',');_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x18a5)]=isNaN(_0x548019[0x0])?_0x548019[0x0]:parseInt(_0x548019[0x0],0xa),_0x5182f6['agent'][_0x16265d(0x19d3)]=_0x548019[_0x16265d(0x14cb)](0x1,_0x548019['length'])['join'](',');}break;case _0x16265d(0x155e):_0x5182f6[_0x16265d(0x1eff)]['text']=_0x5182f6[_0x16265d(0x1eff)]['appdata'];break;case'set':_0x5182f6['agent'][_0x16265d(0x16b6)]=_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x28df)][_0x16265d(0xbe1)]('=')[0x0],_0x5182f6['agent']['value']=_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x28df)][_0x16265d(0xbe1)]('=')[0x1];break;case _0x16265d(0x4b4):_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x12a7)]=_0x5182f6[_0x16265d(0x1eff)]['appdata'];break;default:{const _0x5a389f=_0x5182f6[_0x16265d(0x1eff)]['appdata'][_0x16265d(0xbe1)](',');_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x1eff)]=_0x39641b()[_0x16265d(0xce9)](_0x5a389f[0x0])?_0x5a389f[0x0]:isNaN(_0x5a389f[0x0])?_0x5a389f[0x0]:parseInt(_0x5a389f[0x0],0xa),_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x1719)]=_0x39641b()[_0x16265d(0xce9)](_0x5a389f[0x1])?_0x5a389f[0x1]:isNaN(_0x5a389f[0x1])?_0x5a389f[0x1]:parseInt(_0x5a389f[0x1],0xa);}break;}else _0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x1719)]=0x1e;_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x66a)]&&_0x5182f6[_0x16265d(0x1eff)]['type'][_0x16265d(0x1680)]()==='outbound'&&_0x5182f6[_0x16265d(0x1eff)]['appType'][_0x16265d(0x1680)]()===_0x16265d(0x20ff)&&(_0x5182f6[_0x16265d(0x1eff)]['prefix']=_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x1340)]?_0x5182f6['agent'][_0x16265d(0x1340)][_0x16265d(0xbe1)]('$')[0x0]:undefined,_0x5182f6['agent'][_0x16265d(0x1e7c)]=_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x2816)]?'CALLERID(all)='+_0x5182f6[_0x16265d(0x1eff)][_0x16265d(0x2816)]:undefined);_0x5182f6['saveMailAccountApp']=_0xe71cca,_0x5182f6[_0x16265d(0xda0)]=_0x541db2,_0x4fdd5c['hasRole'](_0x16265d(0x1c60))?_0x303640[_0x16265d(0xebe)][_0x16265d(0xbf7)]({'fields':_0x16265d(0x43c),'sort':_0x16265d(0x16b6),'nolimit':_0x16265d(0x44d),'role':'agent'})['$promise'][_0x16265d(0x1cb0)](function(_0x16422a){const _0x18b164=_0x16265d;_0x5182f6[_0x18b164(0xc12)]=_0x16422a[_0x18b164(0x2214)]||[];})[_0x16265d(0x1c4)](function(_0x25a077){const _0x369d68=_0x16265d;_0x27a1bf[_0x369d68(0x218e)]({'title':_0x25a077[_0x369d68(0x291)]?_0x369d68(0xeb9)+_0x25a077[_0x369d68(0x291)]+_0x369d68(0x1657)+_0x25a077[_0x369d68(0xc22)]:_0x369d68(0x799),'msg':_0x25a077[_0x369d68(0x25c)]?JSON[_0x369d68(0x2701)](_0x25a077[_0x369d68(0x25c)]):_0x25a077[_0x369d68(0x147f)]()});}):_0x303640[_0x16265d(0xebe)]['get']({'fields':_0x16265d(0x43c),'sort':_0x16265d(0x16b6),'nolimit':_0x16265d(0x44d),'role':_0x16265d(0x1eff)})[_0x16265d(0x1d77)][_0x16265d(0x1cb0)](function(_0xe78695){const _0x1964c5=_0x16265d;_0x5182f6['agents']=_0xe78695[_0x1964c5(0x2214)]||[];})['then'](function(){const _0x576dad=_0x16265d;return _0x303640[_0x576dad(0x2199)][_0x576dad(0xbf7)]({'userProfileId':_0x5182f6[_0x576dad(0xe76)][_0x576dad(0x13c1)],'sectionId':0xca})[_0x576dad(0x1d77)];})[_0x16265d(0x1cb0)](function(_0x812d6b){const _0x481f98=_0x16265d,_0x354d34=_0x812d6b&&_0x812d6b[_0x481f98(0x2214)]?_0x812d6b[_0x481f98(0x2214)][0x0]:null;if(!_0x354d34){const _0x1c3120=[];let _0xcc59fe=null;_0x5182f6[_0x481f98(0x1eff)]&&(_0xcc59fe=_0x39641b()['find'](_0x5182f6['agents'],{'name':_0x5182f6['agent']['agent']}));for(let _0x2af5d4=0x0;_0x2af5d4<_0x5182f6[_0x481f98(0xc12)]['length'];_0x2af5d4++){_0xcc59fe&&_0x5182f6['agents'][_0x2af5d4]['id']===_0xcc59fe['id']&&(_0x5182f6[_0x481f98(0xc12)][_0x2af5d4][_0x481f98(0x15da)]=![],_0x1c3120[_0x481f98(0x2785)](_0x5182f6['agents'][_0x2af5d4]));}_0x5182f6['agents']=_0x1c3120;}else{if(!_0x354d34['autoAssociation'])return _0x303640[_0x481f98(0x1198)]['get']({'sectionId':_0x354d34['id']})[_0x481f98(0x1d77)][_0x481f98(0x1cb0)](function(_0x33db69){const _0x542636=_0x481f98,_0x134e6a=_0x39641b()[_0x542636(0x1de2)](_0x33db69[_0x542636(0x2214)],function(_0x5a453d){const _0x376a57=_0x542636;return _0x39641b()[_0x376a57(0x13b4)](_0x5182f6[_0x376a57(0xc12)],{'id':_0x5a453d[_0x376a57(0x2982)]});});let _0x27f895=null;_0x5182f6[_0x542636(0x1eff)]&&(_0x27f895=_0x39641b()['find'](_0x5182f6[_0x542636(0xc12)],{'name':_0x5182f6[_0x542636(0x1eff)][_0x542636(0x1eff)]}));if(_0x27f895&&!_0x39641b()[_0x542636(0x727)](_0x134e6a,['id',_0x27f895['id']])){const _0x1410b2=_0x39641b()[_0x542636(0x13b4)](_0x5182f6['agents'],{'id':_0x27f895['id']});_0x1410b2[_0x542636(0x15da)]=![],_0x134e6a['push'](_0x1410b2);}_0x5182f6[_0x542636(0xc12)]=_0x134e6a;});}})[_0x16265d(0x1c4)](function(_0x42c108){const _0x1b106e=_0x16265d;_0x27a1bf[_0x1b106e(0x218e)]({'title':_0x42c108[_0x1b106e(0x291)]?'API:'+_0x42c108[_0x1b106e(0x291)]+_0x1b106e(0x1657)+_0x42c108[_0x1b106e(0xc22)]:_0x1b106e(0x2159),'msg':_0x42c108['data']?JSON['stringify'](_0x42c108[_0x1b106e(0x25c)]):_0x42c108[_0x1b106e(0x147f)]()});});function _0xe71cca(){const _0x4b3bb0=_0x16265d;_0x5182f6[_0x4b3bb0(0x1a7c)]=[];const _0xf9a59d=[];_0x5182f6[_0x4b3bb0(0x1eff)][_0x4b3bb0(0x66a)]&&_0x5182f6[_0x4b3bb0(0x1eff)]['type']['toLowerCase']()===_0x4b3bb0(0x895)&&_0x5182f6[_0x4b3bb0(0x1eff)][_0x4b3bb0(0x299b)]===_0x4b3bb0(0x25f4)&&(_0x5182f6['agent'][_0x4b3bb0(0x1340)]=_0x5847a2[_0x4b3bb0(0x325)]?(_0x5182f6[_0x4b3bb0(0x1eff)][_0x4b3bb0(0x586)]||'')+_0x4b3bb0(0x19e4)+_0x5847a2[_0x4b3bb0(0x325)]+'}':(_0x5182f6[_0x4b3bb0(0x1eff)][_0x4b3bb0(0x586)]||'')+_0x4b3bb0(0xcdd),_0x5847a2[_0x4b3bb0(0xf8d)]!==_0x4b3bb0(0x13b1)?_0x5182f6['agent'][_0x4b3bb0(0x2224)][_0x4b3bb0(0xd8a)](_0x4b3bb0(0x106a))<0x0&&(_0x5182f6[_0x4b3bb0(0x1eff)][_0x4b3bb0(0x2224)]+=_0x4b3bb0(0x106a)):_0x5182f6[_0x4b3bb0(0x1eff)]['options']=_0x5182f6['agent'][_0x4b3bb0(0x2224)]['replace'](_0x4b3bb0(0x106a),''));const _0x315544=_0x39641b()[_0x4b3bb0(0x13b4)](_0x5182f6[_0x4b3bb0(0xc12)],{'name':_0x5182f6[_0x4b3bb0(0x1eff)]['agent']});_0x315544&&(_0x5182f6[_0x4b3bb0(0x1eff)][_0x4b3bb0(0x21ab)]=_0x315544['id']);if(_0x5182f6[_0x4b3bb0(0x1eff)][_0x4b3bb0(0x299b)]&&_0x5182f6[_0x4b3bb0(0x1eff)]['appType']===_0x4b3bb0(0x197c)){}else switch((_0x5182f6[_0x4b3bb0(0x1eff)][_0x4b3bb0(0x22e1)]||_0x5182f6[_0x4b3bb0(0x1eff)]['appType'])[_0x4b3bb0(0x1680)]()){case _0x4b3bb0(0x19d1):_0x5182f6[_0x4b3bb0(0x1eff)][_0x4b3bb0(0x28df)]=_0x5182f6['agent'][_0x4b3bb0(0x16b6)]+'='+_0x5182f6[_0x4b3bb0(0x1eff)]['value'];break;case'custom':break;default:_0xf9a59d[0x0]=_0x5182f6[_0x4b3bb0(0x1eff)][_0x4b3bb0(0x1eff)],_0xf9a59d[0x1]=_0x5182f6['agent'][_0x4b3bb0(0x1719)],_0x5182f6[_0x4b3bb0(0x1eff)]['appdata']=_0xf9a59d['join'](',');}_0x541db2(_0x5182f6[_0x4b3bb0(0x1eff)]);}function _0x541db2(_0x3ec43b){const _0x1a3930=_0x16265d;_0x35f3ff[_0x1a3930(0x1426)](_0x3ec43b);}}const _0x43df1e=_0x536a9c;;_0x4fb2c8[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),'mailAccountApp',_0x5537c6(0x131c),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x4fb2c8(_0x3b76d8,_0x5dacc2,_0x5ef31a,_0xef4c49,_0x82c510,_0x4363da,_0x548ccb,_0xb48c6b){const _0x23853a=_0x5537c6,_0x555e89=this;_0x555e89[_0x23853a(0xe76)]=_0x548ccb[_0x23853a(0x21e8)](),_0x555e89[_0x23853a(0x1a7c)]=[],_0x555e89[_0x23853a(0x1386)]='MAIL.EDIT_'+(_0xef4c49[_0x23853a(0x299b)]||_0xef4c49[_0x23853a(0x22e1)])[_0x23853a(0x2335)](),_0x555e89['autoreply']=angular[_0x23853a(0x17fe)](_0xef4c49),_0x555e89[_0x23853a(0x1b1a)]=_0xb48c6b,_0x555e89[_0x23853a(0xf4c)]={};if(_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x28df)])switch(_0x555e89['autoreply'][_0x23853a(0x299b)]?_0x555e89['autoreply']['appType'][_0x23853a(0x1680)]():_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x22e1)]['toLowerCase']()){case'custom':break;case _0x23853a(0x711):{const _0x3ff669=_0x555e89[_0x23853a(0x1f71)]['appdata'][_0x23853a(0xbe1)](',');_0x555e89['autoreply'][_0x23853a(0xee8)]=_0x3ff669[0x0],_0x555e89['autoreply'][_0x23853a(0x12b4)]=_0x3ff669[0x1],_0x555e89['autoreply'][_0x23853a(0x173a)]=_0x3ff669['slice'](0x2,_0x3ff669[_0x23853a(0xfd0)])[_0x23853a(0x1f66)](',');}break;case _0x23853a(0xece):{const _0x17f7dc=_0x555e89[_0x23853a(0x1f71)]['appdata']['split'](',');_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x2854)]=_0x17f7dc[0x0],_0x555e89[_0x23853a(0x1f71)]['clientEmail']=_0x17f7dc[0x1],_0x555e89['autoreply'][_0x23853a(0x29d6)]=_0x17f7dc[0x2],_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x12b4)]=_0x17f7dc[0x3],_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x173a)]=_0x17f7dc['slice'](0x4,_0x17f7dc['length'])[_0x23853a(0x1f66)](',');}break;case _0x23853a(0x123a):{const _0x14fe4f=_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x28df)][_0x23853a(0xbe1)](',');_0x555e89['autoreply'][_0x23853a(0x413)]=_0x14fe4f[0x0],_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x21d9)]=_0x14fe4f[0x1],_0x555e89[_0x23853a(0x1f71)][_0x23853a(0xd50)]=_0x14fe4f[0x2],_0x555e89['autoreply'][_0x23853a(0x1c7f)]=_0x14fe4f[0x3],_0x555e89['autoreply'][_0x23853a(0x173a)]=_0x14fe4f[_0x23853a(0x14cb)](0x4,_0x14fe4f['length'])[_0x23853a(0x1f66)](',');}break;case _0x23853a(0x1f71):{const _0x1e1422=_0x555e89['autoreply']['appdata'][_0x23853a(0xbe1)](',');_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x18a5)]=isNaN(_0x1e1422[0x0])?_0x1e1422[0x0]:parseInt(_0x1e1422[0x0],0xa),_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x19d3)]=_0x1e1422['slice'](0x1,_0x1e1422['length'])['join'](',');}break;case _0x23853a(0x155e):_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x19d3)]=_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x28df)];break;case _0x23853a(0x19d1):_0x555e89['autoreply'][_0x23853a(0x16b6)]=_0x555e89['autoreply']['appdata']['split']('=')[0x0],_0x555e89[_0x23853a(0x1f71)]['value']=_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x28df)][_0x23853a(0xbe1)]('=')[0x1];break;case _0x23853a(0x4b4):_0x555e89['autoreply']['project']=_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x28df)];break;default:{const _0x46a34f=_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x28df)][_0x23853a(0xbe1)](',');_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x18a5)]=_0x39641b()[_0x23853a(0xce9)](_0x46a34f[0x0])?_0x46a34f[0x0]:isNaN(_0x46a34f[0x0])?_0x46a34f[0x0]:parseInt(_0x46a34f[0x0],0xa),_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x19d3)]=_0x39641b()[_0x23853a(0xce9)](_0x46a34f[0x1])?_0x46a34f[0x1]:isNaN(_0x46a34f[0x1])?_0x46a34f[0x1]:parseInt(_0x46a34f[0x1],0xa);}break;}else _0x555e89[_0x23853a(0x1f71)]['times']=0x1;_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x66a)]&&_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x66a)]['toLowerCase']()===_0x23853a(0x895)&&_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x299b)][_0x23853a(0x1680)]()===_0x23853a(0x20ff)&&(_0x555e89['autoreply'][_0x23853a(0x586)]=_0x555e89['autoreply'][_0x23853a(0x1340)]?_0x555e89[_0x23853a(0x1f71)]['phone'][_0x23853a(0xbe1)]('$')[0x0]:undefined,_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x1e7c)]=_0x555e89[_0x23853a(0x1f71)][_0x23853a(0x2816)]?_0x23853a(0x25f9)+_0x555e89['autoreply'][_0x23853a(0x2816)]:undefined);_0x555e89['saveMailAccountApp']=_0x555bc4,_0x555e89['closeDialog']=_0x1063ac;function _0x555bc4(){const _0x59eb8c=_0x23853a;_0x555e89[_0x59eb8c(0x1a7c)]=[];const _0x261621=[];_0x555e89[_0x59eb8c(0x1f71)][_0x59eb8c(0x66a)]&&_0x555e89[_0x59eb8c(0x1f71)][_0x59eb8c(0x66a)]['toLowerCase']()===_0x59eb8c(0x895)&&_0x555e89[_0x59eb8c(0x1f71)][_0x59eb8c(0x299b)]===_0x59eb8c(0x25f4)&&(_0x555e89[_0x59eb8c(0x1f71)][_0x59eb8c(0x1340)]=_0x82c510[_0x59eb8c(0x325)]?(_0x555e89[_0x59eb8c(0x1f71)]['prefix']||'')+'${EXTEN:'+_0x82c510[_0x59eb8c(0x325)]+'}':(_0x555e89[_0x59eb8c(0x1f71)][_0x59eb8c(0x586)]||'')+_0x59eb8c(0xcdd),_0x82c510[_0x59eb8c(0xf8d)]!==_0x59eb8c(0x13b1)?_0x555e89[_0x59eb8c(0x1f71)][_0x59eb8c(0x2224)][_0x59eb8c(0xd8a)](_0x59eb8c(0x106a))<0x0&&(_0x555e89[_0x59eb8c(0x1f71)][_0x59eb8c(0x2224)]+=_0x59eb8c(0x106a)):_0x555e89['autoreply']['options']=_0x555e89[_0x59eb8c(0x1f71)][_0x59eb8c(0x2224)][_0x59eb8c(0x288f)](_0x59eb8c(0x106a),''));if(_0x555e89[_0x59eb8c(0x1f71)][_0x59eb8c(0x299b)]&&_0x555e89[_0x59eb8c(0x1f71)][_0x59eb8c(0x299b)]===_0x59eb8c(0x197c)){}else switch((_0x555e89[_0x59eb8c(0x1f71)]['app']||_0x555e89[_0x59eb8c(0x1f71)][_0x59eb8c(0x299b)])[_0x59eb8c(0x1680)]()){case _0x59eb8c(0x19d1):_0x555e89['autoreply'][_0x59eb8c(0x28df)]=_0x555e89['autoreply']['name']+'='+_0x555e89[_0x59eb8c(0x1f71)][_0x59eb8c(0x327)];break;case _0x59eb8c(0x197c):break;default:_0x261621[0x0]=_0x555e89['autoreply'][_0x59eb8c(0x18a5)],_0x261621[0x1]=_0x555e89[_0x59eb8c(0x1f71)][_0x59eb8c(0x19d3)],_0x555e89[_0x59eb8c(0x1f71)]['appdata']=_0x261621[_0x59eb8c(0x1f66)](',');}_0x1063ac(_0x555e89[_0x59eb8c(0x1f71)]);}function _0x1063ac(_0x55ec43){_0x3b76d8['hide'](_0x55ec43);}}const _0x4c42df=_0x4fb2c8;;_0x183d05[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty',_0x5537c6(0x3d8),_0x5537c6(0x131c),'api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x183d05(_0x4e7e20,_0x1f81bd,_0x579619,_0x7abfb6,_0x4f5282,_0x143292,_0x268ad7,_0x445403){const _0x1e1af4=_0x5537c6,_0x2711a2=this;_0x2711a2[_0x1e1af4(0xe76)]=_0x268ad7[_0x1e1af4(0x21e8)](),_0x2711a2[_0x1e1af4(0x1a7c)]=[],_0x2711a2[_0x1e1af4(0x1386)]=_0x1e1af4(0x1bd7)+(_0x7abfb6[_0x1e1af4(0x299b)]||_0x7abfb6[_0x1e1af4(0x22e1)])['toUpperCase'](),_0x2711a2[_0x1e1af4(0xf3b)]=angular['copy'](_0x7abfb6),_0x2711a2[_0x1e1af4(0x1b1a)]=_0x445403,_0x2711a2[_0x1e1af4(0xf4c)]={};if(_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x28df)])switch(_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x299b)]?_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x299b)][_0x1e1af4(0x1680)]():_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x22e1)][_0x1e1af4(0x1680)]()){case _0x1e1af4(0x197c):break;case _0x1e1af4(0x711):{const _0xc4ce09=_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x28df)]['split'](',');_0x2711a2['close'][_0x1e1af4(0xee8)]=_0xc4ce09[0x0],_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x12b4)]=_0xc4ce09[0x1],_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x173a)]=_0xc4ce09['slice'](0x2,_0xc4ce09[_0x1e1af4(0xfd0)])[_0x1e1af4(0x1f66)](',');}break;case _0x1e1af4(0xece):{const _0x2f03dc=_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x28df)][_0x1e1af4(0xbe1)](',');_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x2854)]=_0x2f03dc[0x0],_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x12bf)]=_0x2f03dc[0x1],_0x2711a2['close']['privateKey']=_0x2f03dc[0x2],_0x2711a2['close'][_0x1e1af4(0x12b4)]=_0x2f03dc[0x3],_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x173a)]=_0x2f03dc[_0x1e1af4(0x14cb)](0x4,_0x2f03dc[_0x1e1af4(0xfd0)])[_0x1e1af4(0x1f66)](',');}break;case'amazonlex':{const _0x1006ad=_0x2711a2['close'][_0x1e1af4(0x28df)][_0x1e1af4(0xbe1)](',');_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x413)]=_0x1006ad[0x0],_0x2711a2[_0x1e1af4(0xf3b)]['secretaccesskey']=_0x1006ad[0x1],_0x2711a2[_0x1e1af4(0xf3b)]['lexregion']=_0x1006ad[0x2],_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x1c7f)]=_0x1006ad[0x3],_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x173a)]=_0x1006ad[_0x1e1af4(0x14cb)](0x4,_0x1006ad['length'])['join'](',');}break;case'autoreply':{const _0x17c210=_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x28df)]['split'](',');_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x18a5)]=isNaN(_0x17c210[0x0])?_0x17c210[0x0]:parseInt(_0x17c210[0x0],0xa),_0x2711a2['close'][_0x1e1af4(0x19d3)]=_0x17c210[_0x1e1af4(0x14cb)](0x1,_0x17c210[_0x1e1af4(0xfd0)])['join'](',');}break;case _0x1e1af4(0x155e):_0x2711a2[_0x1e1af4(0xf3b)]['text']=_0x2711a2['close']['appdata'];break;case _0x1e1af4(0x19d1):_0x2711a2['close'][_0x1e1af4(0x16b6)]=_0x2711a2['close']['appdata'][_0x1e1af4(0xbe1)]('=')[0x0],_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x327)]=_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x28df)][_0x1e1af4(0xbe1)]('=')[0x1];break;case'agi':_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x12a7)]=_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x28df)];break;default:{const _0x3735cf=_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x28df)][_0x1e1af4(0xbe1)](',');_0x2711a2[_0x1e1af4(0xf3b)]['disposition']=_0x39641b()[_0x1e1af4(0xce9)](_0x3735cf[0x0])?_0x3735cf[0x0]:isNaN(_0x3735cf[0x0])?_0x3735cf[0x0]:parseInt(_0x3735cf[0x0],0xa);}break;}else{}_0x2711a2[_0x1e1af4(0xf3b)]['type']&&_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x66a)][_0x1e1af4(0x1680)]()===_0x1e1af4(0x895)&&_0x2711a2['close'][_0x1e1af4(0x299b)][_0x1e1af4(0x1680)]()==='outbounddial'&&(_0x2711a2['close'][_0x1e1af4(0x586)]=_0x2711a2[_0x1e1af4(0xf3b)]['phone']?_0x2711a2['close']['phone'][_0x1e1af4(0xbe1)]('$')[0x0]:undefined,_0x2711a2['close'][_0x1e1af4(0x1e7c)]=_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x2816)]?_0x1e1af4(0x25f9)+_0x2711a2[_0x1e1af4(0xf3b)][_0x1e1af4(0x2816)]:undefined);_0x2711a2['saveMailAccountApp']=_0x32aaf8,_0x2711a2[_0x1e1af4(0xda0)]=_0xf2ebb;function _0x32aaf8(){const _0x3a893a=_0x1e1af4;_0x2711a2['errors']=[];const _0x2784c8=[];_0x2711a2['close'][_0x3a893a(0x66a)]&&_0x2711a2['close'][_0x3a893a(0x66a)]['toLowerCase']()===_0x3a893a(0x895)&&_0x2711a2[_0x3a893a(0xf3b)][_0x3a893a(0x299b)]==='outboundDial'&&(_0x2711a2[_0x3a893a(0xf3b)][_0x3a893a(0x1340)]=_0x4f5282[_0x3a893a(0x325)]?(_0x2711a2[_0x3a893a(0xf3b)]['prefix']||'')+_0x3a893a(0x19e4)+_0x4f5282[_0x3a893a(0x325)]+'}':(_0x2711a2[_0x3a893a(0xf3b)]['prefix']||'')+'${EXTEN}',_0x4f5282[_0x3a893a(0xf8d)]!=='none'?_0x2711a2[_0x3a893a(0xf3b)][_0x3a893a(0x2224)][_0x3a893a(0xd8a)](_0x3a893a(0x106a))<0x0&&(_0x2711a2['close'][_0x3a893a(0x2224)]+='U(xcally-mixmonitor-context)'):_0x2711a2['close']['options']=_0x2711a2[_0x3a893a(0xf3b)][_0x3a893a(0x2224)]['replace'](_0x3a893a(0x106a),''));if(_0x2711a2['close'][_0x3a893a(0x299b)]&&_0x2711a2[_0x3a893a(0xf3b)]['appType']===_0x3a893a(0x197c)){}else switch((_0x2711a2[_0x3a893a(0xf3b)][_0x3a893a(0x22e1)]||_0x2711a2[_0x3a893a(0xf3b)][_0x3a893a(0x299b)])[_0x3a893a(0x1680)]()){case _0x3a893a(0x19d1):_0x2711a2[_0x3a893a(0xf3b)][_0x3a893a(0x28df)]=_0x2711a2[_0x3a893a(0xf3b)][_0x3a893a(0x16b6)]+'='+_0x2711a2[_0x3a893a(0xf3b)][_0x3a893a(0x327)];break;case _0x3a893a(0x197c):break;default:_0x2784c8[0x0]=_0x2711a2['close'][_0x3a893a(0x1746)],_0x2711a2['close'][_0x3a893a(0x28df)]=_0x2784c8[_0x3a893a(0x1f66)](',');}_0xf2ebb(_0x2711a2[_0x3a893a(0xf3b)]);}function _0xf2ebb(_0x4b8867){const _0x3131fb=_0x1e1af4;_0x4e7e20[_0x3131fb(0x1426)](_0x4b8867);}}const _0x303a4d=_0x183d05;;_0x454beb['$inject']=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),'mailAccountApp',_0x5537c6(0x131c),'api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x454beb(_0x2dd193,_0x535b2c,_0x553b0d,_0x161443,_0x2ec5ee,_0x3f42d5,_0x5d1133,_0x35f6b6){const _0x415378=_0x5537c6,_0x289371=this;_0x289371[_0x415378(0xe76)]=_0x5d1133[_0x415378(0x21e8)](),_0x289371[_0x415378(0x1a7c)]=[],_0x289371[_0x415378(0x1386)]=_0x415378(0x1bd7)+(_0x161443[_0x415378(0x299b)]||_0x161443[_0x415378(0x22e1)])['toUpperCase'](),_0x289371[_0x415378(0x13a0)]=angular['copy'](_0x161443),_0x289371[_0x415378(0x1b1a)]=_0x35f6b6,_0x289371['hasModulePermissions']={};if(_0x289371[_0x415378(0x13a0)][_0x415378(0x28df)])switch(_0x289371['gotoif']['appType']?_0x289371['gotoif']['appType'][_0x415378(0x1680)]():_0x289371['gotoif']['app'][_0x415378(0x1680)]()){case _0x415378(0x197c):break;case _0x415378(0x711):{const _0x6a2871=_0x289371['gotoif'][_0x415378(0x28df)][_0x415378(0xbe1)](',');_0x289371[_0x415378(0x13a0)][_0x415378(0xee8)]=_0x6a2871[0x0],_0x289371[_0x415378(0x13a0)]['language']=_0x6a2871[0x1],_0x289371['gotoif'][_0x415378(0x173a)]=_0x6a2871[_0x415378(0x14cb)](0x2,_0x6a2871[_0x415378(0xfd0)])[_0x415378(0x1f66)](',');}break;case _0x415378(0xece):{const _0x27cfbb=_0x289371['gotoif'][_0x415378(0x28df)][_0x415378(0xbe1)](',');_0x289371[_0x415378(0x13a0)][_0x415378(0x2854)]=_0x27cfbb[0x0],_0x289371['gotoif'][_0x415378(0x12bf)]=_0x27cfbb[0x1],_0x289371[_0x415378(0x13a0)][_0x415378(0x29d6)]=_0x27cfbb[0x2],_0x289371[_0x415378(0x13a0)][_0x415378(0x12b4)]=_0x27cfbb[0x3],_0x289371['gotoif']['welcomemessage']=_0x27cfbb['slice'](0x4,_0x27cfbb[_0x415378(0xfd0)])[_0x415378(0x1f66)](',');}break;case _0x415378(0x123a):{const _0x307c18=_0x289371[_0x415378(0x13a0)][_0x415378(0x28df)][_0x415378(0xbe1)](',');_0x289371[_0x415378(0x13a0)]['accesskeyid']=_0x307c18[0x0],_0x289371[_0x415378(0x13a0)][_0x415378(0x21d9)]=_0x307c18[0x1],_0x289371[_0x415378(0x13a0)]['lexregion']=_0x307c18[0x2],_0x289371[_0x415378(0x13a0)][_0x415378(0x1c7f)]=_0x307c18[0x3],_0x289371[_0x415378(0x13a0)][_0x415378(0x173a)]=_0x307c18[_0x415378(0x14cb)](0x4,_0x307c18['length'])[_0x415378(0x1f66)](',');}break;case _0x415378(0x1f71):{const _0x224837=_0x289371['gotoif'][_0x415378(0x28df)][_0x415378(0xbe1)](',');_0x289371[_0x415378(0x13a0)][_0x415378(0x18a5)]=isNaN(_0x224837[0x0])?_0x224837[0x0]:parseInt(_0x224837[0x0],0xa),_0x289371[_0x415378(0x13a0)][_0x415378(0x19d3)]=_0x224837[_0x415378(0x14cb)](0x1,_0x224837['length'])[_0x415378(0x1f66)](',');}break;case'message':_0x289371[_0x415378(0x13a0)][_0x415378(0x19d3)]=_0x289371['gotoif']['appdata'];break;case _0x415378(0x19d1):_0x289371[_0x415378(0x13a0)][_0x415378(0x16b6)]=_0x289371[_0x415378(0x13a0)][_0x415378(0x28df)][_0x415378(0xbe1)]('=')[0x0],_0x289371[_0x415378(0x13a0)][_0x415378(0x327)]=_0x289371[_0x415378(0x13a0)][_0x415378(0x28df)][_0x415378(0xbe1)]('=')[0x1];break;case _0x415378(0x4b4):_0x289371[_0x415378(0x13a0)][_0x415378(0x12a7)]=_0x289371['gotoif'][_0x415378(0x28df)];break;default:{const _0x182796=_0x289371['gotoif'][_0x415378(0x28df)]['split'](',');_0x289371[_0x415378(0x13a0)]['condition']=_0x39641b()[_0x415378(0xce9)](_0x182796[0x0])?_0x182796[0x0]:isNaN(_0x182796[0x0])?_0x182796[0x0]:parseInt(_0x182796[0x0],0xa),_0x289371[_0x415378(0x13a0)][_0x415378(0xb24)]=_0x39641b()[_0x415378(0xce9)](_0x182796[0x1])?_0x182796[0x1]:isNaN(_0x182796[0x1])?_0x182796[0x1]:parseInt(_0x182796[0x1],0xa),_0x289371['gotoif'][_0x415378(0x17d)]=_0x39641b()[_0x415378(0xce9)](_0x182796[0x2])?_0x182796[0x2]:isNaN(_0x182796[0x2])?_0x182796[0x2]:parseInt(_0x182796[0x2],0xa);}break;}else{}_0x289371[_0x415378(0x13a0)][_0x415378(0x66a)]&&_0x289371[_0x415378(0x13a0)][_0x415378(0x66a)][_0x415378(0x1680)]()===_0x415378(0x895)&&_0x289371['gotoif']['appType'][_0x415378(0x1680)]()===_0x415378(0x20ff)&&(_0x289371['gotoif'][_0x415378(0x586)]=_0x289371['gotoif'][_0x415378(0x1340)]?_0x289371['gotoif'][_0x415378(0x1340)][_0x415378(0xbe1)]('$')[0x0]:undefined,_0x289371['gotoif'][_0x415378(0x1e7c)]=_0x289371['gotoif'][_0x415378(0x2816)]?'CALLERID(all)='+_0x289371[_0x415378(0x13a0)][_0x415378(0x2816)]:undefined);_0x289371[_0x415378(0x110f)]=_0x2d9972,_0x289371[_0x415378(0xda0)]=_0x122554;function _0x2d9972(){const _0x3b78bb=_0x415378;_0x289371[_0x3b78bb(0x1a7c)]=[];const _0x7ae605=[];_0x289371['gotoif'][_0x3b78bb(0x66a)]&&_0x289371[_0x3b78bb(0x13a0)][_0x3b78bb(0x66a)][_0x3b78bb(0x1680)]()==='outbound'&&_0x289371[_0x3b78bb(0x13a0)][_0x3b78bb(0x299b)]===_0x3b78bb(0x25f4)&&(_0x289371[_0x3b78bb(0x13a0)][_0x3b78bb(0x1340)]=_0x2ec5ee[_0x3b78bb(0x325)]?(_0x289371[_0x3b78bb(0x13a0)]['prefix']||'')+_0x3b78bb(0x19e4)+_0x2ec5ee[_0x3b78bb(0x325)]+'}':(_0x289371['gotoif'][_0x3b78bb(0x586)]||'')+'${EXTEN}',_0x2ec5ee[_0x3b78bb(0xf8d)]!==_0x3b78bb(0x13b1)?_0x289371[_0x3b78bb(0x13a0)][_0x3b78bb(0x2224)][_0x3b78bb(0xd8a)](_0x3b78bb(0x106a))<0x0&&(_0x289371[_0x3b78bb(0x13a0)][_0x3b78bb(0x2224)]+=_0x3b78bb(0x106a)):_0x289371[_0x3b78bb(0x13a0)][_0x3b78bb(0x2224)]=_0x289371[_0x3b78bb(0x13a0)][_0x3b78bb(0x2224)][_0x3b78bb(0x288f)](_0x3b78bb(0x106a),''));if(_0x289371[_0x3b78bb(0x13a0)][_0x3b78bb(0x299b)]&&_0x289371[_0x3b78bb(0x13a0)][_0x3b78bb(0x299b)]==='custom'){}else switch((_0x289371[_0x3b78bb(0x13a0)]['app']||_0x289371[_0x3b78bb(0x13a0)][_0x3b78bb(0x299b)])[_0x3b78bb(0x1680)]()){case'set':_0x289371['gotoif'][_0x3b78bb(0x28df)]=_0x289371[_0x3b78bb(0x13a0)][_0x3b78bb(0x16b6)]+'='+_0x289371['gotoif'][_0x3b78bb(0x327)];break;case _0x3b78bb(0x197c):break;default:_0x7ae605[0x0]=_0x289371[_0x3b78bb(0x13a0)][_0x3b78bb(0x166c)],_0x7ae605[0x1]=_0x289371[_0x3b78bb(0x13a0)][_0x3b78bb(0xb24)],_0x7ae605[0x2]=_0x289371['gotoif'][_0x3b78bb(0x17d)],_0x289371[_0x3b78bb(0x13a0)][_0x3b78bb(0x28df)]=_0x7ae605[_0x3b78bb(0x1f66)](',');}_0x122554(_0x289371[_0x3b78bb(0x13a0)]);}function _0x122554(_0xd20771){const _0x3f3821=_0x415378;_0x2dd193[_0x3f3821(0x1426)](_0xd20771);}}const _0x1a8132=_0x454beb;;_0x2f8b68[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),'mailAccountApp',_0x5537c6(0x131c),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x2f8b68(_0x8bb94a,_0x2e4009,_0x302a02,_0x2e0055,_0x2616b7,_0xd23e9c,_0x37e1de,_0x7a1210){const _0x4f5dd8=_0x5537c6,_0x8c191=this;_0x8c191[_0x4f5dd8(0xe76)]=_0x37e1de[_0x4f5dd8(0x21e8)](),_0x8c191[_0x4f5dd8(0x1a7c)]=[],_0x8c191[_0x4f5dd8(0x1386)]=_0x4f5dd8(0x1bd7)+(_0x2e0055['appType']||_0x2e0055[_0x4f5dd8(0x22e1)])['toUpperCase'](),_0x8c191[_0x4f5dd8(0x265b)]=angular[_0x4f5dd8(0x17fe)](_0x2e0055),_0x8c191['crudPermissions']=_0x7a1210,_0x8c191[_0x4f5dd8(0xf4c)]={};if(_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x28df)])switch(_0x8c191[_0x4f5dd8(0x265b)]['appType']?_0x8c191['gotop']['appType'][_0x4f5dd8(0x1680)]():_0x8c191['gotop']['app'][_0x4f5dd8(0x1680)]()){case'custom':break;case'dialogflow':{const _0x57b748=_0x8c191['gotop'][_0x4f5dd8(0x28df)][_0x4f5dd8(0xbe1)](',');_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0xee8)]=_0x57b748[0x0],_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x12b4)]=_0x57b748[0x1],_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x173a)]=_0x57b748[_0x4f5dd8(0x14cb)](0x2,_0x57b748['length'])[_0x4f5dd8(0x1f66)](',');}break;case _0x4f5dd8(0xece):{const _0x3c993b=_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x28df)][_0x4f5dd8(0xbe1)](',');_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x2854)]=_0x3c993b[0x0],_0x8c191['gotop'][_0x4f5dd8(0x12bf)]=_0x3c993b[0x1],_0x8c191[_0x4f5dd8(0x265b)]['privateKey']=_0x3c993b[0x2],_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x12b4)]=_0x3c993b[0x3],_0x8c191[_0x4f5dd8(0x265b)]['welcomemessage']=_0x3c993b['slice'](0x4,_0x3c993b[_0x4f5dd8(0xfd0)])[_0x4f5dd8(0x1f66)](',');}break;case'amazonlex':{const _0x108bc5=_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x28df)][_0x4f5dd8(0xbe1)](',');_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x413)]=_0x108bc5[0x0],_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x21d9)]=_0x108bc5[0x1],_0x8c191['gotop']['lexregion']=_0x108bc5[0x2],_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x1c7f)]=_0x108bc5[0x3],_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x173a)]=_0x108bc5[_0x4f5dd8(0x14cb)](0x4,_0x108bc5[_0x4f5dd8(0xfd0)])[_0x4f5dd8(0x1f66)](',');}break;case'autoreply':{const _0x529248=_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x28df)][_0x4f5dd8(0xbe1)](',');_0x8c191[_0x4f5dd8(0x265b)]['times']=isNaN(_0x529248[0x0])?_0x529248[0x0]:parseInt(_0x529248[0x0],0xa),_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x19d3)]=_0x529248[_0x4f5dd8(0x14cb)](0x1,_0x529248[_0x4f5dd8(0xfd0)])[_0x4f5dd8(0x1f66)](',');}break;case'message':_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x19d3)]=_0x8c191['gotop'][_0x4f5dd8(0x28df)];break;case _0x4f5dd8(0x19d1):_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x16b6)]=_0x8c191['gotop'][_0x4f5dd8(0x28df)][_0x4f5dd8(0xbe1)]('=')[0x0],_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x327)]=_0x8c191['gotop'][_0x4f5dd8(0x28df)]['split']('=')[0x1];break;case _0x4f5dd8(0x4b4):_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x12a7)]=_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x28df)];break;default:{const _0x5b01ab=_0x8c191[_0x4f5dd8(0x265b)]['appdata'][_0x4f5dd8(0xbe1)](',');_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x521)]=_0x39641b()[_0x4f5dd8(0xce9)](_0x5b01ab[0x0])?_0x5b01ab[0x0]:isNaN(_0x5b01ab[0x0])?_0x5b01ab[0x0]:parseInt(_0x5b01ab[0x0],0xa);}break;}else{}_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x66a)]&&_0x8c191['gotop'][_0x4f5dd8(0x66a)][_0x4f5dd8(0x1680)]()===_0x4f5dd8(0x895)&&_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x299b)][_0x4f5dd8(0x1680)]()===_0x4f5dd8(0x20ff)&&(_0x8c191[_0x4f5dd8(0x265b)]['prefix']=_0x8c191[_0x4f5dd8(0x265b)]['phone']?_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x1340)][_0x4f5dd8(0xbe1)]('$')[0x0]:undefined,_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x1e7c)]=_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x2816)]?_0x4f5dd8(0x25f9)+_0x8c191[_0x4f5dd8(0x265b)][_0x4f5dd8(0x2816)]:undefined);_0x8c191[_0x4f5dd8(0x110f)]=_0x3fa737,_0x8c191['closeDialog']=_0xc88f8e;function _0x3fa737(){const _0x4d2734=_0x4f5dd8;_0x8c191['errors']=[];const _0x9311f7=[];_0x8c191[_0x4d2734(0x265b)][_0x4d2734(0x66a)]&&_0x8c191[_0x4d2734(0x265b)][_0x4d2734(0x66a)][_0x4d2734(0x1680)]()==='outbound'&&_0x8c191[_0x4d2734(0x265b)][_0x4d2734(0x299b)]===_0x4d2734(0x25f4)&&(_0x8c191[_0x4d2734(0x265b)][_0x4d2734(0x1340)]=_0x2616b7[_0x4d2734(0x325)]?(_0x8c191[_0x4d2734(0x265b)][_0x4d2734(0x586)]||'')+_0x4d2734(0x19e4)+_0x2616b7[_0x4d2734(0x325)]+'}':(_0x8c191['gotop']['prefix']||'')+_0x4d2734(0xcdd),_0x2616b7['recordingFormat']!==_0x4d2734(0x13b1)?_0x8c191['gotop'][_0x4d2734(0x2224)][_0x4d2734(0xd8a)](_0x4d2734(0x106a))<0x0&&(_0x8c191[_0x4d2734(0x265b)]['options']+=_0x4d2734(0x106a)):_0x8c191[_0x4d2734(0x265b)][_0x4d2734(0x2224)]=_0x8c191['gotop'][_0x4d2734(0x2224)][_0x4d2734(0x288f)](_0x4d2734(0x106a),''));if(_0x8c191[_0x4d2734(0x265b)]['appType']&&_0x8c191[_0x4d2734(0x265b)][_0x4d2734(0x299b)]===_0x4d2734(0x197c)){}else switch((_0x8c191[_0x4d2734(0x265b)][_0x4d2734(0x22e1)]||_0x8c191[_0x4d2734(0x265b)][_0x4d2734(0x299b)])['toLowerCase']()){case'set':_0x8c191[_0x4d2734(0x265b)][_0x4d2734(0x28df)]=_0x8c191[_0x4d2734(0x265b)]['name']+'='+_0x8c191[_0x4d2734(0x265b)]['value'];break;case _0x4d2734(0x197c):break;default:_0x9311f7[0x0]=_0x8c191[_0x4d2734(0x265b)][_0x4d2734(0x521)],_0x8c191[_0x4d2734(0x265b)][_0x4d2734(0x28df)]=_0x9311f7[_0x4d2734(0x1f66)](',');}_0xc88f8e(_0x8c191[_0x4d2734(0x265b)]);}function _0xc88f8e(_0x4d1794){const _0x1e4af6=_0x4f5dd8;_0x8bb94a[_0x1e4af6(0x1426)](_0x4d1794);}}const _0x4035e4=_0x2f8b68;;_0x5b4f9a[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0xcb9),_0x5537c6(0x200d),_0x5537c6(0x1b2),'interval',_0x5537c6(0xb4a),'toasty',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x5b4f9a(_0x3c876b,_0x562653,_0x1b6efb,_0x1ab671,_0x5736ba,_0xb6cb2e,_0x48266b,_0x4945d7,_0x3f4d88,_0x276a04){const _0x5305d7=_0x5537c6,_0x52c455=this;_0x52c455['currentUser']=_0x3f4d88['getCurrentUser'](),_0x52c455[_0x5305d7(0x1a7c)]=[],_0x52c455['title']=_0x5305d7(0x1571),_0x52c455['interval']=angular[_0x5305d7(0x17fe)](_0x5736ba),_0x52c455[_0x5305d7(0xb4a)]=_0xb6cb2e,_0x52c455[_0x5305d7(0x18c1)]=![],_0x52c455[_0x5305d7(0x2025)]=['always',_0x5305d7(0x197c),_0x5305d7(0x240)],_0x52c455[_0x5305d7(0x1b1a)]=_0x276a04,_0x52c455[_0x5305d7(0x1275)]=_0x1ab671[_0x5305d7(0x1aae)](),_0x52c455['monthNumber']=_0x1ab671['getMonthNumber'](),_0x52c455[_0x5305d7(0x1534)]=_0x1ab671[_0x5305d7(0x7cc)](),_0x52c455['daysOfMonth']=_0x1ab671[_0x5305d7(0xc1e)]();if(!_0x52c455[_0x5305d7(0x1ac8)])_0x52c455[_0x5305d7(0x1ac8)]={'interval':_0x5305d7(0x965)},_0x52c455[_0x5305d7(0x66a)]=_0x5305d7(0x2017),_0x52c455[_0x5305d7(0x1386)]='TOOLS.NEW_INTERVAL',_0x52c455[_0x5305d7(0x18c1)]=!![];else{if(_0x52c455[_0x5305d7(0x1ac8)][_0x5305d7(0x1ac8)]!==_0x5305d7(0x965)){_0x52c455[_0x5305d7(0x66a)]=_0x5305d7(0x197c);const _0x4055d2=_0x52c455['interval']['interval'][_0x5305d7(0xbe1)](','),_0x40636c=_0x4055d2[0x0],_0x1b5c6d=_0x4055d2[0x1],_0x3b7427=_0x4055d2[0x2],_0xd2e7b4=_0x4055d2[0x3];if(_0x40636c!=='*'){const _0x1fe416=_0x40636c[_0x5305d7(0xbe1)]('-')[0x0],_0x5d4bd9=_0x40636c[_0x5305d7(0xbe1)]('-')[0x1];let _0x12798d;_0x12798d=new Date(),_0x12798d[_0x5305d7(0x201b)](Number(_0x1fe416[_0x5305d7(0xbe1)](':')[0x0])),_0x12798d[_0x5305d7(0x1622)](Number(_0x1fe416[_0x5305d7(0xbe1)](':')[0x1])),_0x52c455['timeRangeFrom']=_0x12798d,_0x12798d=new Date(),_0x12798d[_0x5305d7(0x201b)](Number(_0x5d4bd9['split'](':')[0x0])),_0x12798d[_0x5305d7(0x1622)](Number(_0x5d4bd9['split'](':')[0x1])),_0x52c455[_0x5305d7(0x64a)]=_0x12798d;}_0x1b5c6d!=='*'&&(_0x52c455['dayOfWeekFrom']=_0x1b5c6d['split']('-')[0x0],_0x52c455['dayOfWeekTo']=_0x1b5c6d[_0x5305d7(0xbe1)]('-')[0x1]),_0x3b7427!=='*'&&(_0x52c455[_0x5305d7(0xd6f)]=_0x3b7427['split']('-')[0x0],_0x52c455['monthDayTo']=_0x3b7427[_0x5305d7(0xbe1)]('-')[0x1]),_0xd2e7b4!=='*'&&(_0x52c455['monthFrom']=_0xd2e7b4['split']('-')[0x0],_0x52c455[_0x5305d7(0xa68)]=_0xd2e7b4[_0x5305d7(0xbe1)]('-')[0x1]);}else _0x52c455['type']='always';}_0x3c876b[_0x5305d7(0x1dfe)]['id']&&!_0x52c455[_0x5305d7(0x1ac8)][_0x5305d7(0x171b)]&&(_0x52c455[_0x5305d7(0x1ac8)][_0x5305d7(0x1a60)]=_0x3c876b[_0x5305d7(0x1dfe)]['id']);_0x52c455[_0x5305d7(0x1ac8)]['IntervalId']&&_0x52c455[_0x5305d7(0x1ac8)][_0x5305d7(0x171b)]&&(_0x52c455[_0x5305d7(0x66a)]=_0x5305d7(0x240));_0x52c455[_0x5305d7(0x18b3)]=_0x354d66,_0x52c455[_0x5305d7(0x1891)]=_0x272186,_0x52c455[_0x5305d7(0xda0)]=_0x4bb5a6;_0x52c455[_0x5305d7(0x1ac8)][_0x5305d7(0x171b)]&&(_0x3f4d88['hasRole'](_0x5305d7(0x1c60))?_0x4945d7[_0x5305d7(0x1ac8)]['get']({'fields':'id,name,interval,IntervalId','IntervalId':_0x5305d7(0xd38),'nolimit':!![]})[_0x5305d7(0x1d77)][_0x5305d7(0x1cb0)](function(_0x71ec0e){const _0x13bc8a=_0x5305d7;_0x52c455[_0x13bc8a(0xb4a)]=_0x71ec0e[_0x13bc8a(0x2214)]||[];})[_0x5305d7(0x1c4)](function(_0x454bd2){const _0x431ed5=_0x5305d7;_0x48266b[_0x431ed5(0x218e)]({'title':_0x454bd2[_0x431ed5(0x291)]?'API:'+_0x454bd2['status']+_0x431ed5(0x1657)+_0x454bd2[_0x431ed5(0xc22)]:_0x431ed5(0xdac),'msg':_0x454bd2[_0x431ed5(0x25c)]?JSON[_0x431ed5(0x2701)](_0x454bd2[_0x431ed5(0x25c)]):_0x454bd2['toString']()});}):_0x4945d7[_0x5305d7(0x1ac8)][_0x5305d7(0xbf7)]({'fields':_0x5305d7(0x872),'IntervalId':'null','nolimit':!![]})[_0x5305d7(0x1d77)][_0x5305d7(0x1cb0)](function(_0x4d00a4){const _0x5a2fb8=_0x5305d7;_0x52c455[_0x5a2fb8(0xb4a)]=_0x4d00a4[_0x5a2fb8(0x2214)]||[];})['then'](function(){const _0x74a139=_0x5305d7;return _0x4945d7[_0x74a139(0x2199)][_0x74a139(0xbf7)]({'userProfileId':_0x52c455[_0x74a139(0xe76)][_0x74a139(0x13c1)],'sectionId':0x3ec})[_0x74a139(0x1d77)];})['then'](function(_0x417f8a){const _0x25a4e4=_0x5305d7,_0x246595=_0x417f8a&&_0x417f8a['rows']?_0x417f8a[_0x25a4e4(0x2214)][0x0]:null;if(!_0x246595)_0x52c455[_0x25a4e4(0xb4a)]=[];else{if(!_0x246595['autoAssociation'])return _0x4945d7[_0x25a4e4(0x1198)][_0x25a4e4(0xbf7)]({'sectionId':_0x246595['id']})[_0x25a4e4(0x1d77)][_0x25a4e4(0x1cb0)](function(_0x66d3ed){const _0x2bb94e=_0x25a4e4,_0x356a3d=_0x66d3ed&&_0x66d3ed[_0x2bb94e(0x2214)]?_0x66d3ed[_0x2bb94e(0x2214)]:[],_0x5273e5=[];let _0x7bde5b=null;_0x52c455[_0x2bb94e(0x1ac8)]&&(_0x7bde5b=_0x39641b()[_0x2bb94e(0x13b4)](_0x52c455[_0x2bb94e(0xb4a)],{'name':_0x52c455[_0x2bb94e(0x1ac8)][_0x2bb94e(0x1a60)]})),_0x7bde5b&&!_0x39641b()[_0x2bb94e(0x727)](_0x356a3d,[_0x2bb94e(0x2982),_0x7bde5b['id']])&&_0x52c455[_0x2bb94e(0xb4a)][_0x2bb94e(0xf90)](function(_0x3db868){const _0x1b2e0a=_0x2bb94e;_0x3db868['id']===_0x7bde5b['id']&&(_0x3db868[_0x1b2e0a(0x15da)]=![],_0x5273e5['push'](_0x3db868));}),_0x52c455['intervals']=_0x5273e5;});}})[_0x5305d7(0x1c4)](function(_0xae737e){const _0x4d29e7=_0x5305d7;_0x48266b[_0x4d29e7(0x218e)]({'title':_0xae737e['status']?_0x4d29e7(0xeb9)+_0xae737e[_0x4d29e7(0x291)]+'\x20-\x20'+_0xae737e['statusText']:_0x4d29e7(0xdac),'msg':_0xae737e[_0x4d29e7(0x25c)]?JSON['stringify'](_0xae737e[_0x4d29e7(0x25c)]):_0xae737e[_0x4d29e7(0x147f)]()});}));function _0x3ac988(){const _0x237d63=_0x5305d7;switch(_0x52c455[_0x237d63(0x66a)]){case'always':case _0x237d63(0x240):return _0x237d63(0x965);case _0x237d63(0x197c):{const _0x590696=[];if(_0x52c455[_0x237d63(0x718)]!=='*'&&_0x52c455[_0x237d63(0x718)]&&_0x52c455[_0x237d63(0x64a)]){const _0x30781=(_0x52c455['timeRangeFrom'][_0x237d63(0x1169)]()<0xa?'0':'')+_0x52c455['timeRangeFrom'][_0x237d63(0x1169)]()+':'+((_0x52c455[_0x237d63(0x718)][_0x237d63(0x851)]()<0xa?'0':'')+_0x52c455[_0x237d63(0x718)][_0x237d63(0x851)]()),_0x4a73e8=(_0x52c455[_0x237d63(0x64a)][_0x237d63(0x1169)]()<0xa?'0':'')+_0x52c455[_0x237d63(0x64a)]['getHours']()+':'+((_0x52c455[_0x237d63(0x64a)]['getMinutes']()<0xa?'0':'')+_0x52c455['timeRangeTo'][_0x237d63(0x851)]());_0x590696[_0x237d63(0x2785)](_0x30781+'-'+_0x4a73e8);}else _0x590696['push']('*');return _0x52c455[_0x237d63(0x28a6)]?_0x52c455[_0x237d63(0x28db)]?_0x590696['push'](_0x52c455['dayOfWeekFrom']+'-'+_0x52c455[_0x237d63(0x28db)]):_0x590696[_0x237d63(0x2785)](_0x52c455[_0x237d63(0x28a6)]):_0x590696[_0x237d63(0x2785)]('*'),_0x52c455[_0x237d63(0xd6f)]?_0x52c455[_0x237d63(0x194d)]?_0x590696[_0x237d63(0x2785)](_0x52c455['monthDayFrom']+'-'+_0x52c455['monthDayTo']):_0x590696[_0x237d63(0x2785)](_0x52c455['monthDayFrom']):_0x590696[_0x237d63(0x2785)]('*'),_0x52c455[_0x237d63(0x1756)]?_0x52c455[_0x237d63(0xa68)]?_0x590696[_0x237d63(0x2785)](_0x52c455['monthFrom']+'-'+_0x52c455[_0x237d63(0xa68)]):_0x590696['push'](_0x52c455[_0x237d63(0x1756)]):_0x590696[_0x237d63(0x2785)]('*'),_0x590696[_0x237d63(0x1f66)]();}}}function _0x354d66(){const _0x34192d=_0x5305d7;_0x52c455[_0x34192d(0x1a7c)]=[],_0x52c455[_0x34192d(0x1ac8)]['interval']=_0x3ac988(),_0x4945d7['interval'][_0x34192d(0x1c3f)](_0x52c455[_0x34192d(0x1ac8)])[_0x34192d(0x1d77)][_0x34192d(0x1cb0)](function(_0x70a01c){const _0x4a2a04=_0x34192d;_0x52c455['intervals']['push'](_0x70a01c),_0x48266b['success']({'title':_0x4a2a04(0x1d4e),'msg':_0x52c455[_0x4a2a04(0x1ac8)][_0x4a2a04(0x16b6)]?_0x52c455['interval']['name']+_0x4a2a04(0x470):''}),_0x4bb5a6();})[_0x34192d(0x1c4)](function(_0x4efd70){const _0x1d9e6c=_0x34192d;console[_0x1d9e6c(0x218e)](_0x4efd70),_0x52c455[_0x1d9e6c(0x1a7c)]=_0x4efd70[_0x1d9e6c(0x25c)]['errors']||[{'message':_0x4efd70[_0x1d9e6c(0x147f)](),'type':_0x1d9e6c(0x24f7)}];});}function _0x272186(){const _0x287974=_0x5305d7;_0x52c455[_0x287974(0x1a7c)]=[],_0x52c455['interval'][_0x287974(0x1ac8)]=_0x3ac988(),_0x52c455[_0x287974(0x1ac8)][_0x287974(0x171b)]?(_0x52c455[_0x287974(0x66a)]!==_0x287974(0x240)&&(_0x52c455[_0x287974(0x1ac8)][_0x287974(0x1a60)]=null),_0x4bb5a6(_0x52c455['interval'])):_0x4945d7['interval'][_0x287974(0x687)]({'id':_0x52c455[_0x287974(0x1ac8)]['id']},_0x52c455[_0x287974(0x1ac8)])['$promise'][_0x287974(0x1cb0)](function(_0x5c0527){const _0x4c3a2c=_0x287974,_0x167cd9=_0x39641b()[_0x4c3a2c(0x13b4)](_0x52c455[_0x4c3a2c(0xb4a)],{'id':_0x5c0527['id']});_0x167cd9&&_0x39641b()[_0x4c3a2c(0x9c1)](_0x167cd9,_0x5c0527),_0x48266b[_0x4c3a2c(0x829)]({'title':_0x4c3a2c(0x1498),'msg':_0x4c3a2c(0x2994)}),_0x4bb5a6();})[_0x287974(0x1c4)](function(_0x996a9a){const _0x40a380=_0x287974;console['error'](_0x996a9a),_0x52c455['errors']=_0x996a9a['data'][_0x40a380(0x1a7c)]||[{'message':_0x996a9a[_0x40a380(0x147f)](),'type':_0x40a380(0x2505)}];});}function _0x4bb5a6(_0x27faa4){const _0x28e76f=_0x5305d7;_0x562653[_0x28e76f(0x1426)](_0x27faa4);}}const _0x3c635e=_0x5b4f9a;;_0x49e8b5[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x3d8),'mailAccount',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x49e8b5(_0xde614e,_0x4d5126,_0x4d57d4,_0x2576df,_0x1c2179,_0x4468fa,_0x2c0bec,_0x5aa289){const _0x15f1c8=_0x5537c6,_0x59810f=this;_0x59810f[_0x15f1c8(0xe76)]=_0x2c0bec[_0x15f1c8(0x21e8)](),_0x59810f[_0x15f1c8(0x1a7c)]=[],_0x59810f['title']='MAIL.EDIT_'+(_0x2576df[_0x15f1c8(0x299b)]||_0x2576df['app'])[_0x15f1c8(0x2335)](),_0x59810f[_0x15f1c8(0x1234)]=angular[_0x15f1c8(0x17fe)](_0x2576df),_0x59810f[_0x15f1c8(0x1b1a)]=_0x5aa289,_0x59810f[_0x15f1c8(0xf4c)]={};if(_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x28df)])switch(_0x59810f[_0x15f1c8(0x1234)]['appType']?_0x59810f['noop'][_0x15f1c8(0x299b)]['toLowerCase']():_0x59810f['noop'][_0x15f1c8(0x22e1)][_0x15f1c8(0x1680)]()){case'custom':break;case _0x15f1c8(0x711):{const _0x2958f2=_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x28df)][_0x15f1c8(0xbe1)](',');_0x59810f['noop'][_0x15f1c8(0xee8)]=_0x2958f2[0x0],_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x12b4)]=_0x2958f2[0x1],_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x173a)]=_0x2958f2[_0x15f1c8(0x14cb)](0x2,_0x2958f2['length'])['join'](',');}break;case _0x15f1c8(0xece):{const _0x1dec81=_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x28df)][_0x15f1c8(0xbe1)](',');_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x2854)]=_0x1dec81[0x0],_0x59810f[_0x15f1c8(0x1234)]['clientEmail']=_0x1dec81[0x1],_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x29d6)]=_0x1dec81[0x2],_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x12b4)]=_0x1dec81[0x3],_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x173a)]=_0x1dec81[_0x15f1c8(0x14cb)](0x4,_0x1dec81['length'])[_0x15f1c8(0x1f66)](',');}break;case _0x15f1c8(0x123a):{const _0x8c1252=_0x59810f[_0x15f1c8(0x1234)]['appdata']['split'](',');_0x59810f[_0x15f1c8(0x1234)]['accesskeyid']=_0x8c1252[0x0],_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x21d9)]=_0x8c1252[0x1],_0x59810f[_0x15f1c8(0x1234)]['lexregion']=_0x8c1252[0x2],_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x1c7f)]=_0x8c1252[0x3],_0x59810f['noop'][_0x15f1c8(0x173a)]=_0x8c1252[_0x15f1c8(0x14cb)](0x4,_0x8c1252[_0x15f1c8(0xfd0)])['join'](',');}break;case _0x15f1c8(0x1f71):{const _0x1a9f8b=_0x59810f[_0x15f1c8(0x1234)]['appdata']['split'](',');_0x59810f['noop'][_0x15f1c8(0x18a5)]=isNaN(_0x1a9f8b[0x0])?_0x1a9f8b[0x0]:parseInt(_0x1a9f8b[0x0],0xa),_0x59810f['noop']['text']=_0x1a9f8b[_0x15f1c8(0x14cb)](0x1,_0x1a9f8b[_0x15f1c8(0xfd0)])[_0x15f1c8(0x1f66)](',');}break;case _0x15f1c8(0x155e):_0x59810f['noop'][_0x15f1c8(0x19d3)]=_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x28df)];break;case _0x15f1c8(0x19d1):_0x59810f['noop']['name']=_0x59810f[_0x15f1c8(0x1234)]['appdata'][_0x15f1c8(0xbe1)]('=')[0x0],_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x327)]=_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x28df)][_0x15f1c8(0xbe1)]('=')[0x1];break;case _0x15f1c8(0x4b4):_0x59810f['noop'][_0x15f1c8(0x12a7)]=_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x28df)];break;default:{const _0x135ce0=_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x28df)][_0x15f1c8(0xbe1)](',');_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x327)]=_0x39641b()[_0x15f1c8(0xce9)](_0x135ce0[0x0])?_0x135ce0[0x0]:isNaN(_0x135ce0[0x0])?_0x135ce0[0x0]:parseInt(_0x135ce0[0x0],0xa);}break;}else{}_0x59810f['noop'][_0x15f1c8(0x66a)]&&_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x66a)]['toLowerCase']()===_0x15f1c8(0x895)&&_0x59810f['noop']['appType']['toLowerCase']()===_0x15f1c8(0x20ff)&&(_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x586)]=_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x1340)]?_0x59810f[_0x15f1c8(0x1234)]['phone'][_0x15f1c8(0xbe1)]('$')[0x0]:undefined,_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x1e7c)]=_0x59810f[_0x15f1c8(0x1234)]['callerID']?_0x15f1c8(0x25f9)+_0x59810f[_0x15f1c8(0x1234)][_0x15f1c8(0x2816)]:undefined);_0x59810f[_0x15f1c8(0x110f)]=_0xb12cc9,_0x59810f[_0x15f1c8(0xda0)]=_0x4f949f;function _0xb12cc9(){const _0x571a67=_0x15f1c8;_0x59810f['errors']=[];const _0x433459=[];_0x59810f['noop'][_0x571a67(0x66a)]&&_0x59810f['noop']['type'][_0x571a67(0x1680)]()===_0x571a67(0x895)&&_0x59810f[_0x571a67(0x1234)][_0x571a67(0x299b)]===_0x571a67(0x25f4)&&(_0x59810f[_0x571a67(0x1234)][_0x571a67(0x1340)]=_0x1c2179['cutdigits']?(_0x59810f['noop'][_0x571a67(0x586)]||'')+'${EXTEN:'+_0x1c2179[_0x571a67(0x325)]+'}':(_0x59810f[_0x571a67(0x1234)][_0x571a67(0x586)]||'')+'${EXTEN}',_0x1c2179[_0x571a67(0xf8d)]!==_0x571a67(0x13b1)?_0x59810f[_0x571a67(0x1234)][_0x571a67(0x2224)][_0x571a67(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0x59810f[_0x571a67(0x1234)][_0x571a67(0x2224)]+='U(xcally-mixmonitor-context)'):_0x59810f['noop'][_0x571a67(0x2224)]=_0x59810f['noop'][_0x571a67(0x2224)]['replace']('U(xcally-mixmonitor-context)',''));if(_0x59810f[_0x571a67(0x1234)]['appType']&&_0x59810f[_0x571a67(0x1234)][_0x571a67(0x299b)]===_0x571a67(0x197c)){}else switch((_0x59810f[_0x571a67(0x1234)][_0x571a67(0x22e1)]||_0x59810f[_0x571a67(0x1234)][_0x571a67(0x299b)])['toLowerCase']()){case _0x571a67(0x19d1):_0x59810f['noop'][_0x571a67(0x28df)]=_0x59810f[_0x571a67(0x1234)]['name']+'='+_0x59810f[_0x571a67(0x1234)][_0x571a67(0x327)];break;case _0x571a67(0x197c):break;default:_0x433459[0x0]=_0x59810f[_0x571a67(0x1234)][_0x571a67(0x327)],_0x59810f['noop'][_0x571a67(0x28df)]=_0x433459[_0x571a67(0x1f66)](',');}_0x4f949f(_0x59810f[_0x571a67(0x1234)]);}function _0x4f949f(_0x2bdbcb){const _0x3e437c=_0x15f1c8;_0xde614e[_0x3e437c(0x1426)](_0x2bdbcb);}}const _0x596b62=_0x49e8b5;;_0x177829[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x3d8),_0x5537c6(0x131c),'api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x177829(_0x57b0ea,_0x3f1eff,_0xa213b5,_0x5af4c3,_0x46a887,_0x3c5c76,_0xab005b,_0x184062){const _0x7deead=_0x5537c6,_0x27a764=this;_0x27a764['currentUser']=_0xab005b['getCurrentUser'](),_0x27a764[_0x7deead(0x1a7c)]=[],_0x27a764['title']=_0x7deead(0x1bd7)+(_0x5af4c3[_0x7deead(0x299b)]||_0x5af4c3[_0x7deead(0x22e1)])[_0x7deead(0x2335)](),_0x27a764[_0x7deead(0x11cf)]=angular[_0x7deead(0x17fe)](_0x5af4c3),_0x27a764[_0x7deead(0x1b1a)]=_0x184062,_0x27a764[_0x7deead(0xf4c)]={};if(_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x28df)])switch(_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x299b)]?_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x299b)][_0x7deead(0x1680)]():_0x27a764['queue'][_0x7deead(0x22e1)][_0x7deead(0x1680)]()){case _0x7deead(0x197c):break;case'dialogflow':{const _0x58c630=_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x28df)][_0x7deead(0xbe1)](',');_0x27a764[_0x7deead(0x11cf)][_0x7deead(0xee8)]=_0x58c630[0x0],_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x12b4)]=_0x58c630[0x1],_0x27a764['queue']['welcomemessage']=_0x58c630['slice'](0x2,_0x58c630[_0x7deead(0xfd0)])[_0x7deead(0x1f66)](',');}break;case _0x7deead(0xece):{const _0x3faa1f=_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x28df)][_0x7deead(0xbe1)](',');_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x2854)]=_0x3faa1f[0x0],_0x27a764[_0x7deead(0x11cf)]['clientEmail']=_0x3faa1f[0x1],_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x29d6)]=_0x3faa1f[0x2],_0x27a764[_0x7deead(0x11cf)]['language']=_0x3faa1f[0x3],_0x27a764[_0x7deead(0x11cf)]['welcomemessage']=_0x3faa1f[_0x7deead(0x14cb)](0x4,_0x3faa1f[_0x7deead(0xfd0)])['join'](',');}break;case'amazonlex':{const _0x43c7b7=_0x27a764['queue'][_0x7deead(0x28df)][_0x7deead(0xbe1)](',');_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x413)]=_0x43c7b7[0x0],_0x27a764[_0x7deead(0x11cf)]['secretaccesskey']=_0x43c7b7[0x1],_0x27a764[_0x7deead(0x11cf)]['lexregion']=_0x43c7b7[0x2],_0x27a764['queue'][_0x7deead(0x1c7f)]=_0x43c7b7[0x3],_0x27a764[_0x7deead(0x11cf)]['welcomemessage']=_0x43c7b7['slice'](0x4,_0x43c7b7[_0x7deead(0xfd0)])[_0x7deead(0x1f66)](',');}break;case _0x7deead(0x1f71):{const _0x14f50f=_0x27a764['queue'][_0x7deead(0x28df)][_0x7deead(0xbe1)](',');_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x18a5)]=isNaN(_0x14f50f[0x0])?_0x14f50f[0x0]:parseInt(_0x14f50f[0x0],0xa),_0x27a764[_0x7deead(0x11cf)]['text']=_0x14f50f[_0x7deead(0x14cb)](0x1,_0x14f50f[_0x7deead(0xfd0)])[_0x7deead(0x1f66)](',');}break;case _0x7deead(0x155e):_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x19d3)]=_0x27a764[_0x7deead(0x11cf)]['appdata'];break;case _0x7deead(0x19d1):_0x27a764[_0x7deead(0x11cf)]['name']=_0x27a764['queue'][_0x7deead(0x28df)][_0x7deead(0xbe1)]('=')[0x0],_0x27a764['queue'][_0x7deead(0x327)]=_0x27a764[_0x7deead(0x11cf)]['appdata'][_0x7deead(0xbe1)]('=')[0x1];break;case _0x7deead(0x4b4):_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x12a7)]=_0x27a764['queue'][_0x7deead(0x28df)];break;default:{const _0x2e1fea=_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x28df)][_0x7deead(0xbe1)](',');_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x11cf)]=_0x39641b()[_0x7deead(0xce9)](_0x2e1fea[0x0])?_0x2e1fea[0x0]:isNaN(_0x2e1fea[0x0])?_0x2e1fea[0x0]:parseInt(_0x2e1fea[0x0],0xa),_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x1719)]=_0x39641b()[_0x7deead(0xce9)](_0x2e1fea[0x1])?_0x2e1fea[0x1]:isNaN(_0x2e1fea[0x1])?_0x2e1fea[0x1]:parseInt(_0x2e1fea[0x1],0xa);}break;}else _0x27a764[_0x7deead(0x11cf)]['queue']=0x12c,_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x1719)]=0x12c;_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x66a)]&&_0x27a764[_0x7deead(0x11cf)]['type'][_0x7deead(0x1680)]()===_0x7deead(0x895)&&_0x27a764[_0x7deead(0x11cf)]['appType'][_0x7deead(0x1680)]()==='outbounddial'&&(_0x27a764[_0x7deead(0x11cf)]['prefix']=_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x1340)]?_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x1340)][_0x7deead(0xbe1)]('$')[0x0]:undefined,_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x1e7c)]=_0x27a764[_0x7deead(0x11cf)][_0x7deead(0x2816)]?_0x7deead(0x25f9)+_0x27a764['queue'][_0x7deead(0x2816)]:undefined);_0x27a764[_0x7deead(0x110f)]=_0x13dbf8,_0x27a764[_0x7deead(0xda0)]=_0x9be6c5,_0xab005b[_0x7deead(0x22b6)](_0x7deead(0x1c60))?_0x3c5c76[_0x7deead(0x16e1)][_0x7deead(0xbf7)]({'fields':_0x7deead(0x1896),'sort':'name','nolimit':_0x7deead(0x44d)})['$promise'][_0x7deead(0x1cb0)](function(_0x37da55){const _0x4bac74=_0x7deead;_0x27a764[_0x4bac74(0x971)]=_0x37da55[_0x4bac74(0x2214)]||[];})[_0x7deead(0x1c4)](function(_0x21b5e7){const _0x1fd06b=_0x7deead;_0xa213b5[_0x1fd06b(0x218e)]({'title':_0x21b5e7['status']?_0x1fd06b(0xeb9)+_0x21b5e7[_0x1fd06b(0x291)]+_0x1fd06b(0x1657)+_0x21b5e7[_0x1fd06b(0xc22)]:'SYSTEM:GET_QUEUES','msg':_0x21b5e7['data']?JSON[_0x1fd06b(0x2701)](_0x21b5e7[_0x1fd06b(0x25c)]):_0x21b5e7[_0x1fd06b(0x147f)]()});}):_0x3c5c76[_0x7deead(0x16e1)][_0x7deead(0xbf7)]({'fields':_0x7deead(0x1896),'sort':_0x7deead(0x16b6),'nolimit':_0x7deead(0x44d)})[_0x7deead(0x1d77)][_0x7deead(0x1cb0)](function(_0x3fa14d){const _0x4962b0=_0x7deead;_0x27a764['queues']=_0x3fa14d[_0x4962b0(0x2214)]||[];})[_0x7deead(0x1cb0)](function(){const _0x7aaed1=_0x7deead;return _0x3c5c76[_0x7aaed1(0x2199)][_0x7aaed1(0xbf7)]({'userProfileId':_0x27a764[_0x7aaed1(0xe76)][_0x7aaed1(0x13c1)],'sectionId':0x259})[_0x7aaed1(0x1d77)];})['then'](function(_0x4a93a3){const _0x58867d=_0x7deead,_0x1e087c=_0x4a93a3&&_0x4a93a3[_0x58867d(0x2214)]?_0x4a93a3[_0x58867d(0x2214)][0x0]:null;if(!_0x1e087c){const _0x40c45c=[];let _0x4243ee=null;_0x27a764[_0x58867d(0x11cf)]&&(_0x4243ee=_0x39641b()[_0x58867d(0x13b4)](_0x27a764['queues'],{'name':_0x27a764[_0x58867d(0x11cf)][_0x58867d(0x11cf)]}));for(let _0x5cd523=0x0;_0x5cd523<_0x27a764['queues'][_0x58867d(0xfd0)];_0x5cd523++){_0x4243ee&&_0x27a764['queues'][_0x5cd523]['id']===_0x4243ee['id']&&(_0x27a764[_0x58867d(0x971)][_0x5cd523][_0x58867d(0x15da)]=![],_0x40c45c['push'](_0x27a764['queues'][_0x5cd523]));}_0x27a764[_0x58867d(0x971)]=_0x40c45c;}else{if(!_0x1e087c[_0x58867d(0x12f4)])return _0x3c5c76[_0x58867d(0x1198)][_0x58867d(0xbf7)]({'sectionId':_0x1e087c['id']})['$promise'][_0x58867d(0x1cb0)](function(_0x515039){const _0x5128fe=_0x58867d,_0x33e476=_0x39641b()[_0x5128fe(0x1de2)](_0x515039[_0x5128fe(0x2214)],function(_0xac41d0){const _0x260cc3=_0x5128fe;return _0x39641b()[_0x260cc3(0x13b4)](_0x27a764[_0x260cc3(0x971)],{'id':_0xac41d0[_0x260cc3(0x2982)]});});let _0xce9f10=null;_0x27a764[_0x5128fe(0x11cf)]&&(_0xce9f10=_0x39641b()['find'](_0x27a764[_0x5128fe(0x971)],{'name':_0x27a764['queue'][_0x5128fe(0x11cf)]}));if(_0xce9f10&&!_0x39641b()['some'](_0x33e476,['id',_0xce9f10['id']])){const _0x216b2a=_0x39641b()['find'](_0x27a764[_0x5128fe(0x971)],{'id':_0xce9f10['id']});_0x216b2a[_0x5128fe(0x15da)]=![],_0x33e476[_0x5128fe(0x2785)](_0x216b2a);}_0x27a764[_0x5128fe(0x971)]=_0x33e476;});}})[_0x7deead(0x1c4)](function(_0x14173f){const _0x13c121=_0x7deead;_0xa213b5[_0x13c121(0x218e)]({'title':_0x14173f['status']?_0x13c121(0xeb9)+_0x14173f[_0x13c121(0x291)]+_0x13c121(0x1657)+_0x14173f[_0x13c121(0xc22)]:_0x13c121(0x1af2),'msg':_0x14173f['data']?JSON[_0x13c121(0x2701)](_0x14173f[_0x13c121(0x25c)]):_0x14173f[_0x13c121(0x147f)]()});});function _0x13dbf8(){const _0x5b8eb7=_0x7deead;_0x27a764[_0x5b8eb7(0x1a7c)]=[];const _0x51a160=[];_0x27a764[_0x5b8eb7(0x11cf)][_0x5b8eb7(0x66a)]&&_0x27a764['queue'][_0x5b8eb7(0x66a)][_0x5b8eb7(0x1680)]()===_0x5b8eb7(0x895)&&_0x27a764[_0x5b8eb7(0x11cf)][_0x5b8eb7(0x299b)]==='outboundDial'&&(_0x27a764[_0x5b8eb7(0x11cf)][_0x5b8eb7(0x1340)]=_0x46a887[_0x5b8eb7(0x325)]?(_0x27a764[_0x5b8eb7(0x11cf)][_0x5b8eb7(0x586)]||'')+_0x5b8eb7(0x19e4)+_0x46a887[_0x5b8eb7(0x325)]+'}':(_0x27a764['queue'][_0x5b8eb7(0x586)]||'')+_0x5b8eb7(0xcdd),_0x46a887[_0x5b8eb7(0xf8d)]!==_0x5b8eb7(0x13b1)?_0x27a764[_0x5b8eb7(0x11cf)][_0x5b8eb7(0x2224)][_0x5b8eb7(0xd8a)](_0x5b8eb7(0x106a))<0x0&&(_0x27a764[_0x5b8eb7(0x11cf)][_0x5b8eb7(0x2224)]+=_0x5b8eb7(0x106a)):_0x27a764['queue'][_0x5b8eb7(0x2224)]=_0x27a764[_0x5b8eb7(0x11cf)][_0x5b8eb7(0x2224)]['replace'](_0x5b8eb7(0x106a),''));const _0x40025a=_0x39641b()['find'](_0x27a764[_0x5b8eb7(0x971)],{'name':_0x27a764[_0x5b8eb7(0x11cf)][_0x5b8eb7(0x11cf)]});_0x40025a&&(_0x27a764[_0x5b8eb7(0x11cf)][_0x39641b()['capitalize'](_0x5b8eb7(0x2651))+'QueueId']=_0x40025a['id']);if(_0x27a764[_0x5b8eb7(0x11cf)][_0x5b8eb7(0x299b)]&&_0x27a764[_0x5b8eb7(0x11cf)][_0x5b8eb7(0x299b)]==='custom'){}else switch((_0x27a764[_0x5b8eb7(0x11cf)][_0x5b8eb7(0x22e1)]||_0x27a764['queue']['appType'])[_0x5b8eb7(0x1680)]()){case'set':_0x27a764['queue'][_0x5b8eb7(0x28df)]=_0x27a764['queue'][_0x5b8eb7(0x16b6)]+'='+_0x27a764[_0x5b8eb7(0x11cf)]['value'];break;case _0x5b8eb7(0x197c):break;default:_0x51a160[0x0]=_0x27a764[_0x5b8eb7(0x11cf)][_0x5b8eb7(0x11cf)],_0x51a160[0x1]=_0x27a764[_0x5b8eb7(0x11cf)][_0x5b8eb7(0x1719)],_0x27a764[_0x5b8eb7(0x11cf)]['appdata']=_0x51a160[_0x5b8eb7(0x1f66)](',');}_0x9be6c5(_0x27a764[_0x5b8eb7(0x11cf)]);}function _0x9be6c5(_0x10fbe7){const _0x898bdd=_0x7deead;_0x57b0ea[_0x898bdd(0x1426)](_0x10fbe7);}}const _0x1771f2=_0x177829;;_0x4766e6['$inject']=[_0x5537c6(0xcb9),'$q','toasty',_0x5537c6(0x3d8),_0x5537c6(0x131c),'api','Auth',_0x5537c6(0x1b1a)];function _0x4766e6(_0x1cee59,_0x248e53,_0x5b266e,_0x1cd046,_0x5af675,_0x92ecb7,_0x438cc3,_0x3ac3b2){const _0x185d41=_0x5537c6,_0x1f46ee=this;_0x1f46ee[_0x185d41(0xe76)]=_0x438cc3[_0x185d41(0x21e8)](),_0x1f46ee[_0x185d41(0x1a7c)]=[],_0x1f46ee[_0x185d41(0x1386)]='MAIL.EDIT_'+(_0x1cd046['appType']||_0x1cd046[_0x185d41(0x22e1)])[_0x185d41(0x2335)](),_0x1f46ee[_0x185d41(0x7be)]=angular[_0x185d41(0x17fe)](_0x1cd046),_0x1f46ee[_0x185d41(0x1b1a)]=_0x3ac3b2,_0x1f46ee['hasModulePermissions']={};if(_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x28df)])switch(_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x299b)]?_0x1f46ee['system'][_0x185d41(0x299b)]['toLowerCase']():_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x22e1)][_0x185d41(0x1680)]()){case _0x185d41(0x197c):break;case _0x185d41(0x711):{const _0x45010b=_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x28df)][_0x185d41(0xbe1)](',');_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0xee8)]=_0x45010b[0x0],_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x12b4)]=_0x45010b[0x1],_0x1f46ee[_0x185d41(0x7be)]['welcomemessage']=_0x45010b[_0x185d41(0x14cb)](0x2,_0x45010b['length'])[_0x185d41(0x1f66)](',');}break;case'dialogflowv2':{const _0x17ccbf=_0x1f46ee['system'][_0x185d41(0x28df)][_0x185d41(0xbe1)](',');_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x2854)]=_0x17ccbf[0x0],_0x1f46ee['system']['clientEmail']=_0x17ccbf[0x1],_0x1f46ee[_0x185d41(0x7be)]['privateKey']=_0x17ccbf[0x2],_0x1f46ee['system'][_0x185d41(0x12b4)]=_0x17ccbf[0x3],_0x1f46ee[_0x185d41(0x7be)]['welcomemessage']=_0x17ccbf[_0x185d41(0x14cb)](0x4,_0x17ccbf['length'])[_0x185d41(0x1f66)](',');}break;case _0x185d41(0x123a):{const _0xbac0b=_0x1f46ee[_0x185d41(0x7be)]['appdata'][_0x185d41(0xbe1)](',');_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x413)]=_0xbac0b[0x0],_0x1f46ee[_0x185d41(0x7be)]['secretaccesskey']=_0xbac0b[0x1],_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0xd50)]=_0xbac0b[0x2],_0x1f46ee['system'][_0x185d41(0x1c7f)]=_0xbac0b[0x3],_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x173a)]=_0xbac0b[_0x185d41(0x14cb)](0x4,_0xbac0b['length'])[_0x185d41(0x1f66)](',');}break;case _0x185d41(0x1f71):{const _0x42c08c=_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x28df)][_0x185d41(0xbe1)](',');_0x1f46ee['system'][_0x185d41(0x18a5)]=isNaN(_0x42c08c[0x0])?_0x42c08c[0x0]:parseInt(_0x42c08c[0x0],0xa),_0x1f46ee['system']['text']=_0x42c08c['slice'](0x1,_0x42c08c[_0x185d41(0xfd0)])[_0x185d41(0x1f66)](',');}break;case'message':_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x19d3)]=_0x1f46ee[_0x185d41(0x7be)]['appdata'];break;case'set':_0x1f46ee['system'][_0x185d41(0x16b6)]=_0x1f46ee['system']['appdata'][_0x185d41(0xbe1)]('=')[0x0],_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x327)]=_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x28df)][_0x185d41(0xbe1)]('=')[0x1];break;case _0x185d41(0x4b4):_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x12a7)]=_0x1f46ee['system'][_0x185d41(0x28df)];break;default:{const _0x44962f=_0x1f46ee['system'][_0x185d41(0x28df)]['split'](',');_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0xd0d)]=_0x39641b()[_0x185d41(0xce9)](_0x44962f[0x0])?_0x44962f[0x0]:isNaN(_0x44962f[0x0])?_0x44962f[0x0]:parseInt(_0x44962f[0x0],0xa),_0x1f46ee['system'][_0x185d41(0x1822)]=_0x39641b()[_0x185d41(0xce9)](_0x44962f[0x1])?_0x44962f[0x1]:isNaN(_0x44962f[0x1])?_0x44962f[0x1]:parseInt(_0x44962f[0x1],0xa);}break;}else _0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x1822)]='';_0x1f46ee[_0x185d41(0x7be)]['type']&&_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x66a)]['toLowerCase']()===_0x185d41(0x895)&&_0x1f46ee['system'][_0x185d41(0x299b)][_0x185d41(0x1680)]()==='outbounddial'&&(_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x586)]=_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x1340)]?_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x1340)]['split']('$')[0x0]:undefined,_0x1f46ee[_0x185d41(0x7be)]['callerId']=_0x1f46ee['system'][_0x185d41(0x2816)]?_0x185d41(0x25f9)+_0x1f46ee[_0x185d41(0x7be)][_0x185d41(0x2816)]:undefined);_0x1f46ee[_0x185d41(0x110f)]=_0x3b42de,_0x1f46ee[_0x185d41(0xda0)]=_0x2bb98b,_0x438cc3['hasRole'](_0x185d41(0x1c60))?_0x92ecb7[_0x185d41(0x1822)][_0x185d41(0xbf7)]({'fields':'id,name','sort':_0x185d41(0x16b6),'nolimit':_0x185d41(0x44d)})['$promise'][_0x185d41(0x1cb0)](function(_0x87d565){const _0xa9843a=_0x185d41;_0x1f46ee[_0xa9843a(0x9a9)]=_0x87d565['rows']||[];})[_0x185d41(0x1c4)](function(_0x573bfd){const _0x4fe126=_0x185d41;_0x5b266e[_0x4fe126(0x218e)]({'title':_0x573bfd[_0x4fe126(0x291)]?_0x4fe126(0xeb9)+_0x573bfd[_0x4fe126(0x291)]+_0x4fe126(0x1657)+_0x573bfd[_0x4fe126(0xc22)]:_0x4fe126(0xe04),'msg':_0x573bfd['data']?JSON[_0x4fe126(0x2701)](_0x573bfd['data']):_0x573bfd[_0x4fe126(0x147f)]()});}):_0x92ecb7[_0x185d41(0x1822)][_0x185d41(0xbf7)]({'fields':_0x185d41(0x43c),'sort':_0x185d41(0x16b6),'nolimit':_0x185d41(0x44d)})['$promise']['then'](function(_0x378eae){const _0x420718=_0x185d41;_0x1f46ee['variables']=_0x378eae[_0x420718(0x2214)]||[];})[_0x185d41(0x1cb0)](function(){const _0x3da35e=_0x185d41;return _0x92ecb7[_0x3da35e(0x2199)][_0x3da35e(0xbf7)]({'userProfileId':_0x1f46ee[_0x3da35e(0xe76)][_0x3da35e(0x13c1)],'sectionId':0x3f4})[_0x3da35e(0x1d77)];})[_0x185d41(0x1cb0)](function(_0x2dea32){const _0x1f52ea=_0x185d41,_0x4d10ff=_0x2dea32&&_0x2dea32['rows']?_0x2dea32[_0x1f52ea(0x2214)][0x0]:null;if(!_0x4d10ff){const _0x42e229=[];let _0x4c9332=null;_0x1f46ee['system']&&(_0x4c9332=_0x39641b()[_0x1f52ea(0x13b4)](_0x1f46ee[_0x1f52ea(0x9a9)],{'name':_0x1f46ee[_0x1f52ea(0x7be)]['variable']}));for(let _0x2e521a=0x0;_0x2e521a<_0x1f46ee[_0x1f52ea(0x9a9)][_0x1f52ea(0xfd0)];_0x2e521a++){_0x4c9332&&_0x1f46ee['variables'][_0x2e521a]['id']===_0x4c9332['id']&&(_0x1f46ee['variables'][_0x2e521a][_0x1f52ea(0x15da)]=![],_0x42e229[_0x1f52ea(0x2785)](_0x1f46ee[_0x1f52ea(0x9a9)][_0x2e521a]));}_0x1f46ee[_0x1f52ea(0x9a9)]=_0x42e229;}else{if(!_0x4d10ff[_0x1f52ea(0x12f4)])return _0x92ecb7['userProfileResource']['get']({'sectionId':_0x4d10ff['id']})[_0x1f52ea(0x1d77)][_0x1f52ea(0x1cb0)](function(_0x262db4){const _0x185fca=_0x1f52ea,_0x318542=_0x39641b()[_0x185fca(0x1de2)](_0x262db4['rows'],function(_0x298af9){const _0x4e3156=_0x185fca;return _0x39641b()[_0x4e3156(0x13b4)](_0x1f46ee[_0x4e3156(0x9a9)],{'id':_0x298af9[_0x4e3156(0x2982)]});});let _0x537e57=null;_0x1f46ee[_0x185fca(0x7be)]&&(_0x537e57=_0x39641b()[_0x185fca(0x13b4)](_0x1f46ee['variables'],{'name':_0x1f46ee[_0x185fca(0x7be)][_0x185fca(0x1822)]}));if(_0x537e57&&!_0x39641b()['some'](_0x318542,['id',_0x537e57['id']])){const _0x174b5a=_0x39641b()['find'](_0x1f46ee['variables'],{'id':_0x537e57['id']});_0x174b5a[_0x185fca(0x15da)]=![],_0x318542[_0x185fca(0x2785)](_0x174b5a);}_0x1f46ee[_0x185fca(0x9a9)]=_0x318542;});}})['catch'](function(_0x258e01){const _0x338381=_0x185d41;_0x5b266e[_0x338381(0x218e)]({'title':_0x258e01[_0x338381(0x291)]?_0x338381(0xeb9)+_0x258e01[_0x338381(0x291)]+'\x20-\x20'+_0x258e01['statusText']:_0x338381(0xda5),'msg':_0x258e01[_0x338381(0x25c)]?JSON['stringify'](_0x258e01['data']):_0x258e01['toString']()});});function _0x3b42de(){const _0x24f977=_0x185d41;_0x1f46ee[_0x24f977(0x1a7c)]=[];const _0x420b40=[];_0x1f46ee['system']['type']&&_0x1f46ee[_0x24f977(0x7be)][_0x24f977(0x66a)]['toLowerCase']()===_0x24f977(0x895)&&_0x1f46ee['system'][_0x24f977(0x299b)]===_0x24f977(0x25f4)&&(_0x1f46ee['system'][_0x24f977(0x1340)]=_0x5af675['cutdigits']?(_0x1f46ee[_0x24f977(0x7be)][_0x24f977(0x586)]||'')+_0x24f977(0x19e4)+_0x5af675[_0x24f977(0x325)]+'}':(_0x1f46ee[_0x24f977(0x7be)][_0x24f977(0x586)]||'')+_0x24f977(0xcdd),_0x5af675[_0x24f977(0xf8d)]!==_0x24f977(0x13b1)?_0x1f46ee['system'][_0x24f977(0x2224)][_0x24f977(0xd8a)](_0x24f977(0x106a))<0x0&&(_0x1f46ee[_0x24f977(0x7be)][_0x24f977(0x2224)]+=_0x24f977(0x106a)):_0x1f46ee[_0x24f977(0x7be)][_0x24f977(0x2224)]=_0x1f46ee[_0x24f977(0x7be)]['options'][_0x24f977(0x288f)](_0x24f977(0x106a),''));if(_0x1f46ee['system']['appType']&&_0x1f46ee['system'][_0x24f977(0x299b)]===_0x24f977(0x197c)){}else switch((_0x1f46ee[_0x24f977(0x7be)]['app']||_0x1f46ee[_0x24f977(0x7be)][_0x24f977(0x299b)])[_0x24f977(0x1680)]()){case _0x24f977(0x19d1):_0x1f46ee[_0x24f977(0x7be)][_0x24f977(0x28df)]=_0x1f46ee[_0x24f977(0x7be)]['name']+'='+_0x1f46ee[_0x24f977(0x7be)][_0x24f977(0x327)];break;case'custom':break;default:_0x420b40[0x0]=_0x1f46ee[_0x24f977(0x7be)][_0x24f977(0xd0d)],_0x420b40[0x1]=_0x1f46ee[_0x24f977(0x7be)]['variable'],_0x1f46ee['system'][_0x24f977(0x28df)]=_0x420b40[_0x24f977(0x1f66)](',');}_0x2bb98b(_0x1f46ee[_0x24f977(0x7be)]);}function _0x2bb98b(_0x217d9f){_0x1cee59['hide'](_0x217d9f);}}const _0x5d1455=_0x4766e6;;_0x57d572[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x3d8),'mailAccount','api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x57d572(_0x26c038,_0x323c9a,_0xb9ade8,_0x4eae61,_0x221b74,_0x1f5e64,_0x2fd477,_0x12a8bb){const _0x5874bf=_0x5537c6,_0x1d97fa=this;_0x1d97fa['currentUser']=_0x2fd477[_0x5874bf(0x21e8)](),_0x1d97fa['errors']=[],_0x1d97fa[_0x5874bf(0x1386)]='MAIL.EDIT_'+(_0x4eae61[_0x5874bf(0x299b)]||_0x4eae61[_0x5874bf(0x22e1)])[_0x5874bf(0x2335)](),_0x1d97fa[_0x5874bf(0x22b1)]=angular[_0x5874bf(0x17fe)](_0x4eae61),_0x1d97fa['crudPermissions']=_0x12a8bb,_0x1d97fa['hasModulePermissions']={};if(_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x28df)])switch(_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x299b)]?_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x299b)]['toLowerCase']():_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x22e1)][_0x5874bf(0x1680)]()){case _0x5874bf(0x197c):break;case _0x5874bf(0x711):{const _0xdb30b8=_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x28df)][_0x5874bf(0xbe1)](',');_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0xee8)]=_0xdb30b8[0x0],_0x1d97fa['tag']['language']=_0xdb30b8[0x1],_0x1d97fa[_0x5874bf(0x22b1)]['welcomemessage']=_0xdb30b8[_0x5874bf(0x14cb)](0x2,_0xdb30b8[_0x5874bf(0xfd0)])[_0x5874bf(0x1f66)](',');}break;case _0x5874bf(0xece):{const _0x46d9ee=_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x28df)][_0x5874bf(0xbe1)](',');_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x2854)]=_0x46d9ee[0x0],_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x12bf)]=_0x46d9ee[0x1],_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x29d6)]=_0x46d9ee[0x2],_0x1d97fa[_0x5874bf(0x22b1)]['language']=_0x46d9ee[0x3],_0x1d97fa['tag'][_0x5874bf(0x173a)]=_0x46d9ee[_0x5874bf(0x14cb)](0x4,_0x46d9ee[_0x5874bf(0xfd0)])[_0x5874bf(0x1f66)](',');}break;case _0x5874bf(0x123a):{const _0x3ac3a0=_0x1d97fa['tag'][_0x5874bf(0x28df)][_0x5874bf(0xbe1)](',');_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x413)]=_0x3ac3a0[0x0],_0x1d97fa['tag']['secretaccesskey']=_0x3ac3a0[0x1],_0x1d97fa[_0x5874bf(0x22b1)]['lexregion']=_0x3ac3a0[0x2],_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x1c7f)]=_0x3ac3a0[0x3],_0x1d97fa['tag'][_0x5874bf(0x173a)]=_0x3ac3a0[_0x5874bf(0x14cb)](0x4,_0x3ac3a0[_0x5874bf(0xfd0)])[_0x5874bf(0x1f66)](',');}break;case _0x5874bf(0x1f71):{const _0x34dc2e=_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x28df)][_0x5874bf(0xbe1)](',');_0x1d97fa[_0x5874bf(0x22b1)]['times']=isNaN(_0x34dc2e[0x0])?_0x34dc2e[0x0]:parseInt(_0x34dc2e[0x0],0xa),_0x1d97fa['tag'][_0x5874bf(0x19d3)]=_0x34dc2e[_0x5874bf(0x14cb)](0x1,_0x34dc2e[_0x5874bf(0xfd0)])['join'](',');}break;case _0x5874bf(0x155e):_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x19d3)]=_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x28df)];break;case _0x5874bf(0x19d1):_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x16b6)]=_0x1d97fa['tag'][_0x5874bf(0x28df)][_0x5874bf(0xbe1)]('=')[0x0],_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x327)]=_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x28df)][_0x5874bf(0xbe1)]('=')[0x1];break;case _0x5874bf(0x4b4):_0x1d97fa[_0x5874bf(0x22b1)]['project']=_0x1d97fa['tag'][_0x5874bf(0x28df)];break;default:{const _0x11ee70=_0x1d97fa[_0x5874bf(0x22b1)]['appdata'][_0x5874bf(0xbe1)](',');_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x22b1)]=_0x39641b()[_0x5874bf(0xce9)](_0x11ee70[0x0])?_0x11ee70[0x0]:isNaN(_0x11ee70[0x0])?_0x11ee70[0x0]:parseInt(_0x11ee70[0x0],0xa);}break;}else{}_0x1d97fa['tag']['type']&&_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x66a)][_0x5874bf(0x1680)]()===_0x5874bf(0x895)&&_0x1d97fa['tag']['appType'][_0x5874bf(0x1680)]()===_0x5874bf(0x20ff)&&(_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x586)]=_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x1340)]?_0x1d97fa['tag']['phone'][_0x5874bf(0xbe1)]('$')[0x0]:undefined,_0x1d97fa[_0x5874bf(0x22b1)][_0x5874bf(0x1e7c)]=_0x1d97fa['tag'][_0x5874bf(0x2816)]?'CALLERID(all)='+_0x1d97fa['tag'][_0x5874bf(0x2816)]:undefined);_0x1d97fa[_0x5874bf(0x110f)]=_0x249f08,_0x1d97fa[_0x5874bf(0xda0)]=_0x941d4a,_0x2fd477['hasRole'](_0x5874bf(0x1c60))?_0x1f5e64['tag'][_0x5874bf(0xbf7)]({'fields':_0x5874bf(0x43c),'sort':_0x5874bf(0x16b6),'nolimit':'true'})[_0x5874bf(0x1d77)][_0x5874bf(0x1cb0)](function(_0x33dc23){const _0x43310a=_0x5874bf;_0x1d97fa[_0x43310a(0xfbf)]=_0x33dc23[_0x43310a(0x2214)]||[];})[_0x5874bf(0x1c4)](function(_0x24606b){const _0x2771aa=_0x5874bf;_0xb9ade8[_0x2771aa(0x218e)]({'title':_0x24606b[_0x2771aa(0x291)]?_0x2771aa(0xeb9)+_0x24606b[_0x2771aa(0x291)]+'\x20-\x20'+_0x24606b[_0x2771aa(0xc22)]:_0x2771aa(0x12f9),'msg':_0x24606b[_0x2771aa(0x25c)]?JSON['stringify'](_0x24606b[_0x2771aa(0x25c)]):_0x24606b[_0x2771aa(0x147f)]()});}):_0x1f5e64['tag'][_0x5874bf(0xbf7)]({'fields':_0x5874bf(0x43c),'sort':_0x5874bf(0x16b6),'nolimit':_0x5874bf(0x44d)})[_0x5874bf(0x1d77)][_0x5874bf(0x1cb0)](function(_0x45f1c1){const _0x2c2ffc=_0x5874bf;_0x1d97fa['tags']=_0x45f1c1[_0x2c2ffc(0x2214)]||[];})[_0x5874bf(0x1cb0)](function(){const _0x526b93=_0x5874bf;return _0x1f5e64['userProfileSection'][_0x526b93(0xbf7)]({'userProfileId':_0x1d97fa[_0x526b93(0xe76)]['userProfileId'],'sectionId':0x3f0})[_0x526b93(0x1d77)];})[_0x5874bf(0x1cb0)](function(_0x2b5c01){const _0x2881a4=_0x5874bf,_0x6e714=_0x2b5c01&&_0x2b5c01['rows']?_0x2b5c01[_0x2881a4(0x2214)][0x0]:null;if(!_0x6e714){const _0x59c9fd=[];let _0x4031f6=null;_0x1d97fa['tag']&&(_0x4031f6=_0x39641b()[_0x2881a4(0x13b4)](_0x1d97fa[_0x2881a4(0xfbf)],{'name':_0x1d97fa[_0x2881a4(0x22b1)][_0x2881a4(0x22b1)]}));for(let _0x330681=0x0;_0x330681<_0x1d97fa['tags'][_0x2881a4(0xfd0)];_0x330681++){_0x4031f6&&_0x1d97fa['tags'][_0x330681]['id']===_0x4031f6['id']&&(_0x1d97fa[_0x2881a4(0xfbf)][_0x330681][_0x2881a4(0x15da)]=![],_0x59c9fd['push'](_0x1d97fa[_0x2881a4(0xfbf)][_0x330681]));}_0x1d97fa[_0x2881a4(0xfbf)]=_0x59c9fd;}else{if(!_0x6e714[_0x2881a4(0x12f4)])return _0x1f5e64[_0x2881a4(0x1198)][_0x2881a4(0xbf7)]({'sectionId':_0x6e714['id']})[_0x2881a4(0x1d77)][_0x2881a4(0x1cb0)](function(_0x928dab){const _0x4b224b=_0x2881a4,_0x3e5030=_0x39641b()['map'](_0x928dab[_0x4b224b(0x2214)],function(_0x58a59c){const _0x57e9de=_0x4b224b;return _0x39641b()[_0x57e9de(0x13b4)](_0x1d97fa[_0x57e9de(0xfbf)],{'id':_0x58a59c[_0x57e9de(0x2982)]});});let _0x35c130=null;_0x1d97fa['tag']&&(_0x35c130=_0x39641b()['find'](_0x1d97fa[_0x4b224b(0xfbf)],{'name':_0x1d97fa[_0x4b224b(0x22b1)][_0x4b224b(0x22b1)]}));if(_0x35c130&&!_0x39641b()['some'](_0x3e5030,['id',_0x35c130['id']])){const _0x4d8803=_0x39641b()[_0x4b224b(0x13b4)](_0x1d97fa[_0x4b224b(0xfbf)],{'id':_0x35c130['id']});_0x4d8803[_0x4b224b(0x15da)]=![],_0x3e5030['push'](_0x4d8803);}_0x1d97fa[_0x4b224b(0xfbf)]=_0x3e5030;});}})['catch'](function(_0x519183){const _0x1838b2=_0x5874bf;_0xb9ade8[_0x1838b2(0x218e)]({'title':_0x519183[_0x1838b2(0x291)]?_0x1838b2(0xeb9)+_0x519183['status']+_0x1838b2(0x1657)+_0x519183[_0x1838b2(0xc22)]:_0x1838b2(0x808),'msg':_0x519183[_0x1838b2(0x25c)]?JSON[_0x1838b2(0x2701)](_0x519183['data']):_0x519183[_0x1838b2(0x147f)]()});});function _0x249f08(){const _0x2bee6a=_0x5874bf;_0x1d97fa[_0x2bee6a(0x1a7c)]=[];const _0x467815=[];_0x1d97fa['tag']['type']&&_0x1d97fa[_0x2bee6a(0x22b1)][_0x2bee6a(0x66a)][_0x2bee6a(0x1680)]()===_0x2bee6a(0x895)&&_0x1d97fa[_0x2bee6a(0x22b1)]['appType']===_0x2bee6a(0x25f4)&&(_0x1d97fa[_0x2bee6a(0x22b1)]['phone']=_0x221b74[_0x2bee6a(0x325)]?(_0x1d97fa[_0x2bee6a(0x22b1)][_0x2bee6a(0x586)]||'')+'${EXTEN:'+_0x221b74[_0x2bee6a(0x325)]+'}':(_0x1d97fa[_0x2bee6a(0x22b1)][_0x2bee6a(0x586)]||'')+_0x2bee6a(0xcdd),_0x221b74[_0x2bee6a(0xf8d)]!=='none'?_0x1d97fa['tag'][_0x2bee6a(0x2224)][_0x2bee6a(0xd8a)](_0x2bee6a(0x106a))<0x0&&(_0x1d97fa[_0x2bee6a(0x22b1)]['options']+=_0x2bee6a(0x106a)):_0x1d97fa['tag']['options']=_0x1d97fa[_0x2bee6a(0x22b1)][_0x2bee6a(0x2224)]['replace']('U(xcally-mixmonitor-context)',''));const _0xd46ea3=_0x39641b()[_0x2bee6a(0x13b4)](_0x1d97fa['tags'],{'name':_0x1d97fa['tag']['tag']});_0xd46ea3&&(_0x1d97fa[_0x2bee6a(0x22b1)]['TagId']=_0xd46ea3['id']);if(_0x1d97fa['tag'][_0x2bee6a(0x299b)]&&_0x1d97fa[_0x2bee6a(0x22b1)]['appType']===_0x2bee6a(0x197c)){}else switch((_0x1d97fa['tag'][_0x2bee6a(0x22e1)]||_0x1d97fa['tag'][_0x2bee6a(0x299b)])[_0x2bee6a(0x1680)]()){case _0x2bee6a(0x19d1):_0x1d97fa[_0x2bee6a(0x22b1)][_0x2bee6a(0x28df)]=_0x1d97fa[_0x2bee6a(0x22b1)][_0x2bee6a(0x16b6)]+'='+_0x1d97fa[_0x2bee6a(0x22b1)]['value'];break;case _0x2bee6a(0x197c):break;default:_0x467815[0x0]=_0x1d97fa[_0x2bee6a(0x22b1)][_0x2bee6a(0x22b1)],_0x1d97fa['tag']['appdata']=_0x467815[_0x2bee6a(0x1f66)](',');}_0x941d4a(_0x1d97fa[_0x2bee6a(0x22b1)]);}function _0x941d4a(_0x36f8ac){const _0x290596=_0x5874bf;_0x26c038[_0x290596(0x1426)](_0x36f8ac);}}const _0x55510c=_0x57d572;;_0x1cc23c[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x1463),_0x5537c6(0x406),'$q','$translate',_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1774)];function _0x1cc23c(_0x3950a9,_0x2c8e94,_0x4bacdc,_0x8316d,_0x34f7db,_0x1d6271,_0x573405,_0x5bad65,_0x17df45,_0xf53939,_0x35ce86){const _0x15bc68=_0x5537c6,_0x52e44a=this;_0x52e44a[_0x15bc68(0xe76)]=_0x35ce86[_0x15bc68(0x21e8)](),_0x52e44a[_0x15bc68(0x131c)]={},_0x52e44a[_0x15bc68(0x1e65)]={'count':0x0,'rows':[]},_0x52e44a['selectedMailAccountInteractions']=[],_0x52e44a['crudPermissions'],_0x52e44a[_0x15bc68(0xae2)]={'read':_0x15bc68(0xd38),'closed':_0x15bc68(0xd38),'sort':_0x15bc68(0x1c45),'includeAll':_0x15bc68(0x44d),'limit':0xa,'page':0x1},_0x52e44a[_0x15bc68(0x1a8e)]=_0x2e6640,_0x52e44a[_0x15bc68(0xb25)]=_0x3b5baf,_0x52e44a['mailInteractionDownload']=_0x33ce39,_0x52e44a[_0x15bc68(0x829)]=_0x119b7a,_0x52e44a['getMailAccountInteractions']=_0x345a2d,_0x52e44a[_0x15bc68(0xe31)]=_0x5848d9,_0x52e44a[_0x15bc68(0x1ede)]=_0x179df1,_0x52e44a['exportSelectedMailAccountInteractions']=_0x13a6e2,_0x52e44a['deleteMailAccountInteraction']=_0x116b8d,_0x52e44a[_0x15bc68(0x1564)]=_0x5911f8;function _0x2e6640(_0x8ec978,_0x295d34){const _0x69aa35=_0x15bc68;_0x52e44a[_0x69aa35(0x131c)]=_0x8ec978,_0x52e44a['crudPermissions']=typeof _0x295d34!==_0x69aa35(0x16b5)?_0x295d34:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x52e44a[_0x69aa35(0xae2)]['MailAccountId']=_0x52e44a['mailAccount']['id'],_0x52e44a[_0x69aa35(0x16ad)]={'fields':_0x5510f6()},_0x3f8ffe();}function _0x3f8ffe(){const _0x1f465b=_0x15bc68;return _0xf53939[_0x1f465b(0x22b1)][_0x1f465b(0xbf7)]()['$promise'][_0x1f465b(0x1cb0)](function(_0x324a67){const _0x301859=_0x1f465b;_0x52e44a[_0x301859(0xfbf)]=_0x324a67||{'count':0x0,'rows':[]};})[_0x1f465b(0x1cb0)](function(){const _0xaa0ef8=_0x1f465b;return _0xf53939['mailSubstatus']['get']({'nolimit':!![]})[_0xaa0ef8(0x1d77)][_0xaa0ef8(0x1cb0)](function(_0x5d9704){const _0x47a564=_0xaa0ef8;_0x52e44a[_0x47a564(0x16a)]=_0x5d9704||{'count':0x0,'rows':[]};});})['then'](function(){const _0x14b758=_0x1f465b;_0x52e44a[_0x14b758(0x789)]=_0x54c3b1();});}function _0x54c3b1(){const _0x1be0ea=_0x15bc68;return[{'name':_0x1be0ea(0x68d),'key':_0x1be0ea(0x24cb),'type':'date','label':_0x1be0ea(0xf5e)},{'name':_0x1be0ea(0x223c),'key':_0x1be0ea(0xfc1),'type':_0x1be0ea(0x220f),'label':_0x1be0ea(0x9e5),'customOptions':[{'value':0x0,'translate':_0x1be0ea(0x1115)},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0x1be0ea(0x2706)}]},{'name':_0x1be0ea(0x938),'key':_0x1be0ea(0x22aa),'type':'select','label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x1be0ea(0x1bbd)},{'value':0x1,'translate':_0x1be0ea(0x191b)},{'value':null,'translate':_0x1be0ea(0x2706)}]},{'name':_0x1be0ea(0x2020),'key':_0x1be0ea(0x20ed),'type':_0x1be0ea(0x220f),'label':_0x1be0ea(0x143d),'options':_0x52e44a[_0x1be0ea(0x16a)][_0x1be0ea(0x2214)],'customOptions':[{'value':_0x1be0ea(0xd38),'translate':_0x1be0ea(0x1f6f)},{'value':undefined,'translate':_0x1be0ea(0x2706)}],'ngValue':'name','ngIf':_0x1be0ea(0x881)},{'name':'Agent','key':_0x1be0ea(0x21ab),'type':_0x1be0ea(0x220f),'label':_0x1be0ea(0x7bb),'customOptions':[{'value':_0x1be0ea(0xd38),'translate':_0x1be0ea(0x68f)},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x1be0ea(0xf2d),'key':'tag','type':'multiselect','label':'DASHBOARDS.SELECT_TAG','options':_0x52e44a[_0x1be0ea(0xfbf)][_0x1be0ea(0x2214)],'placeholder':_0x1be0ea(0x62b)}];}function _0x5510f6(){const _0x33ca9c=_0x15bc68;return[{'name':'Id','column':'id','type':_0x33ca9c(0x83d)},{'name':_0x33ca9c(0x8d3),'column':_0x33ca9c(0x8d3),'type':_0x33ca9c(0x19e0),'options':{'searchFields':[_0x33ca9c(0x1491),_0x33ca9c(0x1fbb),_0x33ca9c(0x1e19)],'route':{'model':_0x33ca9c(0xbe7),'action':_0x33ca9c(0xbf7),'params':{'fields':_0x33ca9c(0x9b0),'Contact':_0x33ca9c(0xed6),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x33ca9c(0x15ce)]}},{'name':_0x33ca9c(0x228c),'column':'subject','type':_0x33ca9c(0x19d3),'options':{'excludedOperators':[_0x33ca9c(0x1c5e),'$ne']}},{'name':_0x33ca9c(0x269b),'column':_0x33ca9c(0x1cd0),'type':'text','options':{'excludedOperators':[_0x33ca9c(0x1c5e),_0x33ca9c(0x15ce)]}},{'name':_0x33ca9c(0x938),'column':_0x33ca9c(0x22aa),'type':'select','values':[{'id':0x0,'translate':_0x33ca9c(0x1bbd)},{'id':0x1,'translate':_0x33ca9c(0x191b)}],'options':{'excludedOperators':[_0x33ca9c(0x15ce)]}},{'name':'Substatus','column':_0x33ca9c(0x20ed),'type':_0x33ca9c(0x1d50),'options':{'field':_0x33ca9c(0x16b6),'route':{'model':_0x33ca9c(0xdbe),'action':_0x33ca9c(0xbf7),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x33ca9c(0x30e),'column':_0x33ca9c(0x1597),'type':'autocomplete','options':{'table':'i','route':{'model':'user','action':_0x33ca9c(0xbf7),'params':{'role':'agent','fields':_0x33ca9c(0x1d34),'nolimit':!![]}},'searchFields':[_0x33ca9c(0x1d14),_0x33ca9c(0x16b6)],'extraOperators':[_0x33ca9c(0x1fb1)],'excludedOperators':[_0x33ca9c(0x15ce)]}},{'name':_0x33ca9c(0x190),'column':_0x33ca9c(0xf2d),'type':'multiselect','options':{'route':{'model':_0x33ca9c(0x22b1),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x33ca9c(0x62d)]}},{'name':'Start\x20Date','column':_0x33ca9c(0x24cb),'type':_0x33ca9c(0x18ec),'options':{'excludedOperators':[_0x33ca9c(0x15ce)]}},{'name':_0x33ca9c(0x946),'column':'unreadMessages','type':_0x33ca9c(0x220f),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x33ca9c(0x15ce)]}}];}function _0x179df1(){const _0xa1b64e=_0x15bc68;_0x573405['show']({'controller':_0xa1b64e(0x15f7),'controllerAs':'vm','templateUrl':_0x3530d6,'parent':angular[_0xa1b64e(0x1853)](_0x5bad65[_0xa1b64e(0x1ed9)]),'clickOutsideToClose':![],'locals':{'fields':_0x52e44a['advancedSearch'][_0xa1b64e(0x355)],'color':undefined,'storagePath':_0xa1b64e(0x8d1)},'fullscreen':!![]})[_0xa1b64e(0x1cb0)](function(_0x52d25f){const _0x58fc24=_0xa1b64e;_0x52e44a[_0x58fc24(0xae2)][_0x58fc24(0x24be)]=_0x52d25f===![]?undefined:_0x52d25f;if(_0x52e44a['query'][_0x58fc24(0x24be)])_0x52e44a[_0x58fc24(0xae2)][_0x58fc24(0x24be)]+=_0x58fc24(0x1b2c)+_0x52e44a[_0x58fc24(0x131c)]['id']+']',_0x345a2d();else _0x52d25f===![]&&_0x345a2d();})[_0xa1b64e(0x1c4)](function(_0x2b83bc){const _0x39eb17=_0xa1b64e;_0x17df45[_0x39eb17(0x218e)]({'title':_0x39eb17(0x2260),'msg':_0x2b83bc['data']?JSON[_0x39eb17(0x2701)](_0x2b83bc[_0x39eb17(0x25c)]['message']):_0x2b83bc[_0x39eb17(0x147f)]()});});}function _0x33ce39(_0x2eb918,_0x1a85bc,_0x401f5d){const _0xa67dc7=_0x15bc68;return _0xf53939['mailInteraction'][_0xa67dc7(0x26ec)]({'id':_0x2eb918['id'],'exists':!![],'attachments':_0x401f5d})['$promise'][_0xa67dc7(0x1cb0)](function(_0x235c84){const _0x106dbd=_0xa67dc7,_0x1de79d=[_0x235c84[_0x106dbd(0xef0)]];let _0x5da694=_0x106dbd(0x10e4)+_0x2eb918['id'];const _0x218abe=new Blob(_0x1de79d,{'type':_0x235c84[_0x106dbd(0x66a)]});_0x5da694=_0x106dbd(0x914)+_0x2eb918['id']+_0x106dbd(0x1b16);const _0x548eba=window[_0x106dbd(0x1db8)][_0x106dbd(0x8c6)]('a');_0x548eba['setAttribute'](_0x106dbd(0x105b),URL[_0x106dbd(0x2247)](_0x218abe)),_0x548eba[_0x106dbd(0x23b9)](_0x106dbd(0x26ec),_0x5da694),document['body'][_0x106dbd(0x23de)](_0x548eba),_0x548eba[_0x106dbd(0x20b8)]();})['catch'](function(_0x5dab4f){const _0x4d70d3=_0xa67dc7;if(_0x5dab4f[_0x4d70d3(0x25c)]&&_0x5dab4f['data'][_0x4d70d3(0x1a7c)]&&_0x5dab4f[_0x4d70d3(0x25c)]['errors']['length'])for(let _0x56f361=0x0;_0x56f361<_0x5dab4f[_0x4d70d3(0x25c)][_0x4d70d3(0x1a7c)][_0x4d70d3(0xfd0)];_0x56f361+=0x1){_0x17df45['error']({'title':_0x5dab4f['data'][_0x4d70d3(0x1a7c)][_0x56f361][_0x4d70d3(0x66a)],'msg':_0x5dab4f['data'][_0x4d70d3(0x1a7c)][_0x56f361][_0x4d70d3(0x155e)]});}else _0x17df45['error']({'title':_0x5dab4f[_0x4d70d3(0x291)]?_0x4d70d3(0xeb9)+_0x5dab4f[_0x4d70d3(0x291)]+_0x4d70d3(0x1657)+_0x5dab4f[_0x4d70d3(0xc22)]:_0x4d70d3(0x2258),'msg':_0x5dab4f[_0x4d70d3(0x25c)]?JSON['stringify'](_0x5dab4f[_0x4d70d3(0x25c)][_0x4d70d3(0x155e)]):_0x5dab4f[_0x4d70d3(0x147f)]()});});}function _0x3b5baf(_0x142dc6,_0x5e5f2b){const _0xa826cd=_0x15bc68,_0x48b450=_0x573405['confirm']()['title'](_0xa826cd(0x9bc))[_0xa826cd(0x49e)](_0xa826cd(0x204d)+(_0x142dc6[_0xa826cd(0x16b6)]||_0x142dc6['id']&&_0x39641b()[_0xa826cd(0x277)](_0xa826cd(0xf82))+_0x142dc6['id']||'interaction')+''+_0xa826cd(0x1b6))[_0xa826cd(0x15ad)](_0xa826cd(0x116f))[_0xa826cd(0x728)](_0x5e5f2b)['ok']('OK')[_0xa826cd(0x696)](_0xa826cd(0x24ba));_0x573405[_0xa826cd(0xe27)](_0x48b450)['then'](function(){_0x116b8d(_0x142dc6);},function(){const _0x108a98=_0xa826cd;console[_0x108a98(0x1b4f)](_0x108a98(0x24ba));});}function _0x119b7a(_0x22fb2d){const _0x443ba8=_0x15bc68;_0x52e44a[_0x443ba8(0x1e65)]=_0x22fb2d||{'count':0x0,'rows':[]};for(let _0x22db2e=0x0;_0x22db2e<_0x52e44a[_0x443ba8(0x1e65)][_0x443ba8(0x2214)][_0x443ba8(0xfd0)];_0x22db2e+=0x1){const _0x5dda79=_0x52e44a[_0x443ba8(0x1e65)][_0x443ba8(0x2214)][_0x22db2e];_0x44ccd3(_0x5dda79),_0x5dda79['Owner'][_0x443ba8(0x16b6)]=_0x5b5ab5(_0x5dda79);}}function _0x345a2d(){const _0x188a27=_0x15bc68;_0x52e44a[_0x188a27(0xae2)][_0x188a27(0x184b)]=(_0x52e44a[_0x188a27(0xae2)][_0x188a27(0x1c7b)]-0x1)*_0x52e44a[_0x188a27(0xae2)][_0x188a27(0x236)],_0x52e44a['promise']=_0xf53939[_0x188a27(0x8e9)]['get'](_0x52e44a[_0x188a27(0xae2)],_0x119b7a)[_0x188a27(0x1d77)];}function _0x5848d9(_0x5d13d2,_0x167083){const _0x2b5d44=_0x15bc68;_0x573405[_0x2b5d44(0xe27)]({'controller':_0x2b5d44(0x4b2),'controllerAs':'vm','templateUrl':_0x50da87,'parent':angular['element'](_0x5bad65[_0x2b5d44(0x1ed9)]),'targetEvent':_0x5d13d2,'clickOutsideToClose':!![],'onShowing':function(_0x13afbd){const _0x184485=_0x2b5d44;_0x13afbd['vm']['init']({'id':0x1,'channel':_0x184485(0x2651),'interaction':_0x167083,'spy':!![]},_0x2c8e94[_0x184485(0x17bc)]['vm'][_0x184485(0x9ca)]);}});}function _0x116b8d(_0x4a0460){const _0x28d5fd=_0x15bc68;_0xf53939[_0x28d5fd(0x8e9)][_0x28d5fd(0x111d)]({'id':_0x4a0460['id']})['$promise'][_0x28d5fd(0x1cb0)](function(){const _0x15c4bf=_0x28d5fd;_0x39641b()[_0x15c4bf(0x152a)](_0x52e44a[_0x15c4bf(0x1e65)][_0x15c4bf(0x2214)],{'id':_0x4a0460['id']}),_0x52e44a['mailAccountInteractions'][_0x15c4bf(0x184d)]-=0x1,!_0x52e44a['mailAccountInteractions'][_0x15c4bf(0x2214)][_0x15c4bf(0xfd0)]&&_0x345a2d(),_0x17df45[_0x15c4bf(0x829)]({'title':'Interaction\x20deleted!','msg':_0x4a0460[_0x15c4bf(0x16b6)]?_0x4a0460[_0x15c4bf(0x16b6)]+_0x15c4bf(0x3f5):''});})[_0x28d5fd(0x1c4)](function(_0x35390f){const _0x3b1347=_0x28d5fd;if(_0x35390f[_0x3b1347(0x25c)]&&_0x35390f[_0x3b1347(0x25c)]['errors']&&_0x35390f[_0x3b1347(0x25c)][_0x3b1347(0x1a7c)][_0x3b1347(0xfd0)]){_0x52e44a[_0x3b1347(0x1a7c)]=_0x35390f[_0x3b1347(0x25c)][_0x3b1347(0x1a7c)]||[{'message':_0x35390f[_0x3b1347(0x147f)](),'type':'SYSTEM:GETmailAccount'}];for(let _0x69aa0d=0x0;_0x69aa0d<_0x35390f[_0x3b1347(0x25c)][_0x3b1347(0x1a7c)][_0x3b1347(0xfd0)];_0x69aa0d++){_0x17df45[_0x3b1347(0x218e)]({'title':_0x35390f[_0x3b1347(0x25c)][_0x3b1347(0x1a7c)][_0x69aa0d][_0x3b1347(0x66a)],'msg':_0x35390f[_0x3b1347(0x25c)][_0x3b1347(0x1a7c)][_0x69aa0d]['message']});}}else _0x17df45[_0x3b1347(0x218e)]({'title':_0x35390f[_0x3b1347(0x291)]?_0x3b1347(0xeb9)+_0x35390f['status']+_0x3b1347(0x1657)+_0x35390f['statusText']:'SYSTEM:GETmailAccount','msg':_0x35390f[_0x3b1347(0x25c)]?JSON[_0x3b1347(0x2701)](_0x35390f[_0x3b1347(0x25c)][_0x3b1347(0x155e)]):_0x35390f[_0x3b1347(0x155e)]||_0x35390f[_0x3b1347(0x147f)]()});});}function _0x13a6e2(){const _0x4b246d=_0x15bc68,_0x4238e6=angular[_0x4b246d(0x17fe)](_0x52e44a[_0x4b246d(0x921)]);return _0x52e44a[_0x4b246d(0x921)]=[],_0x4238e6;}function _0x5911f8(_0x3096d9){const _0x42b642=_0x15bc68,_0x5ee107=_0x573405[_0x42b642(0x1551)]()[_0x42b642(0x1386)](_0x42b642(0xb2e))['htmlContent'](''+_0x52e44a[_0x42b642(0x921)][_0x42b642(0xfd0)]+_0x42b642(0x1d6c)+_0x42b642(0x1b6))[_0x42b642(0x15ad)](_0x42b642(0x8ca))[_0x42b642(0x728)](_0x3096d9)['ok']('OK')[_0x42b642(0x696)]('CANCEL');_0x573405[_0x42b642(0xe27)](_0x5ee107)[_0x42b642(0x1cb0)](function(){const _0x57feed=_0x42b642;_0x52e44a[_0x57feed(0x921)][_0x57feed(0xf90)](function(_0x4ad6f8){_0x116b8d(_0x4ad6f8);}),_0x52e44a['selectedMailAccountInteractions']=[];});}function _0x44ccd3(_0x54e1a6){const _0x3d5c4f=_0x15bc68;if(!_0x39641b()[_0x3d5c4f(0xce9)](_0x54e1a6['to'])&&!_0x39641b()[_0x3d5c4f(0x250a)](_0x54e1a6['to'],_0x52e44a[_0x3d5c4f(0x131c)]['email']))_0x54e1a6[_0x3d5c4f(0x1325)]=_0x54e1a6['to']['split']('\x20<')[0x0],_0x54e1a6[_0x3d5c4f(0x28b6)]=_0x54e1a6['to'][_0x3d5c4f(0xbe1)]('<')[_0x3d5c4f(0xad3)]()[_0x3d5c4f(0xbe1)]('>')[0x0];else _0x54e1a6[_0x3d5c4f(0x8d3)]?(_0x54e1a6[_0x3d5c4f(0x1325)]=(_0x54e1a6[_0x3d5c4f(0x8d3)][_0x3d5c4f(0x1491)]||'')+'\x20'+(_0x54e1a6['Contact']['lastName']||''),_0x54e1a6[_0x3d5c4f(0x28b6)]=_0x54e1a6[_0x3d5c4f(0x8d3)][_0x3d5c4f(0x1e19)]||''):_0x54e1a6[_0x3d5c4f(0x1325)]=_0x34f7db[_0x3d5c4f(0x25cc)](_0x3d5c4f(0x2b9));}function _0x5b5ab5(_0x5b7b50){const _0x203766=_0x15bc68;if(_0x5b7b50[_0x203766(0x21ab)])return _0x5b7b50[_0x203766(0x21ab)]===_0x52e44a[_0x203766(0xe76)]['id']?_0x34f7db['instant'](_0x203766(0x1ea6)):_0x5b7b50['Owner'][_0x203766(0x1d14)]+'\x20<'+_0x5b7b50[_0x203766(0x135d)][_0x203766(0xdbd)]+'>';return _0x34f7db['instant']('DASHBOARDS.NOT_ASSIGNED');}let _0x475e93=!![],_0x3fba8e=0x1;_0x2c8e94[_0x15bc68(0x614)]('vm_dc.query.filter',function(_0x13fe3c,_0x49e27e){const _0x1308e6=_0x15bc68;_0x475e93?_0x1d6271(function(){_0x475e93=![];}):(!_0x49e27e&&(_0x3fba8e=_0x52e44a[_0x1308e6(0xae2)][_0x1308e6(0x1c7b)]),_0x13fe3c!==_0x49e27e&&(_0x52e44a[_0x1308e6(0xae2)]['page']=0x1),!_0x13fe3c&&(_0x52e44a[_0x1308e6(0xae2)][_0x1308e6(0x1c7b)]=_0x3fba8e),_0x345a2d());});}const _0x50c603=_0x1cc23c;;const _0x5a41e5=_0x5074a3['p']+_0x5537c6(0x184e);;_0x3c72f2['$inject']=[_0x5537c6(0x173),'$scope','$state','$q',_0x5537c6(0x1ae),_0x5537c6(0x2168),_0x5537c6(0xcb9),'$document',_0x5537c6(0x9bf),'api','Auth'];function _0x3c72f2(_0x1fd747,_0xc5d8cd,_0x289a,_0x2bf137,_0x1052b5,_0x50709d,_0x5aec42,_0x434b11,_0xf4cd23,_0xb28b54,_0x247553){const _0x4a716b=_0x5537c6,_0x2509e7=this;_0x2509e7[_0x4a716b(0xe76)]=_0x247553[_0x4a716b(0x21e8)](),_0x2509e7[_0x4a716b(0x131c)]={},_0x2509e7[_0x4a716b(0x1c57)]={'count':0x0,'rows':[]},_0x2509e7[_0x4a716b(0x13f3)]=[],_0x2509e7[_0x4a716b(0x1b1a)],_0x2509e7[_0x4a716b(0xae2)]={'fields':'createdAt,updatedAt,id,key,value,description','limit':0xa,'page':0x1},_0x2509e7['init']=_0x1c9452,_0x2509e7[_0x4a716b(0xb25)]=_0x2c53af,_0x2509e7['success']=_0x18c0d1,_0x2509e7[_0x4a716b(0x2519)]=_0x48f912,_0x2509e7[_0x4a716b(0x1913)]=_0x1b6575,_0x2509e7[_0x4a716b(0x4d1)]=_0x33a698,_0x2509e7[_0x4a716b(0x45f)]=_0x353f3f,_0x2509e7[_0x4a716b(0x17b3)]=_0x299568;function _0x1c9452(_0x4441a8,_0x2c450b){const _0x3c70f4=_0x4a716b;_0x2509e7[_0x3c70f4(0x131c)]=_0x4441a8,_0x2509e7[_0x3c70f4(0x1b1a)]=typeof _0x2c450b!==_0x3c70f4(0x16b5)?_0x2c450b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2509e7['query'][_0x3c70f4(0x1285)]=_0x2509e7['mailAccount']['id'],_0x2509e7[_0x3c70f4(0xae2)]['id']=_0x2509e7['mailAccount']['id'],_0x48f912();}function _0x2c53af(_0x2e3430,_0x223855){const _0x350f2d=_0x4a716b,_0x2e46a5=_0x5aec42[_0x350f2d(0x1551)]()['title'](_0x350f2d(0x760))[_0x350f2d(0x49e)](''+(_0x2e3430[_0x350f2d(0x16b6)]||_0x2e3430['id']&&_0x39641b()[_0x350f2d(0x277)]('mailCannedAnswer\x20#')+_0x2e3430['id']||_0x350f2d(0xa49))+''+_0x350f2d(0x1b6))['ariaLabel'](_0x350f2d(0x717))[_0x350f2d(0x728)](_0x223855)['ok']('OK')[_0x350f2d(0x696)]('CANCEL');_0x5aec42[_0x350f2d(0xe27)](_0x2e46a5)['then'](function(){_0x353f3f(_0x2e3430);},function(){const _0x6602d1=_0x350f2d;console[_0x6602d1(0x1b4f)](_0x6602d1(0x24ba));});}function _0x18c0d1(_0x38a208){const _0x32b5ce=_0x4a716b;_0x2509e7[_0x32b5ce(0x1c57)]=_0x38a208||{'count':0x0,'rows':[]};}function _0x48f912(){const _0x2b002a=_0x4a716b;_0x2509e7['query']['offset']=(_0x2509e7[_0x2b002a(0xae2)][_0x2b002a(0x1c7b)]-0x1)*_0x2509e7[_0x2b002a(0xae2)][_0x2b002a(0x236)],_0x2509e7['promise']=_0xb28b54[_0x2b002a(0x131c)][_0x2b002a(0x1ec5)](_0x2509e7[_0x2b002a(0xae2)],_0x18c0d1)[_0x2b002a(0x1d77)];}function _0x1b6575(_0x105e47,_0x5aa440){const _0x15989e=_0x4a716b;_0x5aec42[_0x15989e(0xe27)]({'controller':_0x15989e(0xc7b),'controllerAs':'vm','templateUrl':_0x5a41e5,'parent':angular[_0x15989e(0x1853)](_0x434b11[_0x15989e(0x1ed9)]),'targetEvent':_0x105e47,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x2509e7['mailAccount'],'mailCannedAnswer':_0x5aa440,'mailCannedAnswers':_0x2509e7['mailAccountMailCannedAnswers'][_0x15989e(0x2214)],'license':null,'setting':null,'crudPermissions':_0x2509e7[_0x15989e(0x1b1a)]}});}function _0x353f3f(_0x3dcbc7){const _0x247eff=_0x4a716b;_0xb28b54[_0x247eff(0x1c25)][_0x247eff(0x111d)]({'id':_0x3dcbc7['id']})[_0x247eff(0x1d77)][_0x247eff(0x1cb0)](function(){const _0x39733e=_0x247eff;_0x39641b()[_0x39733e(0x152a)](_0x2509e7[_0x39733e(0x1c57)][_0x39733e(0x2214)],{'id':_0x3dcbc7['id']}),_0x2509e7[_0x39733e(0x1c57)][_0x39733e(0x184d)]-=0x1,!_0x2509e7['mailAccountMailCannedAnswers'][_0x39733e(0x2214)][_0x39733e(0xfd0)]&&_0x48f912(),_0xf4cd23[_0x39733e(0x829)]({'title':_0x39733e(0x2d7),'msg':_0x3dcbc7[_0x39733e(0x16b6)]?_0x3dcbc7['name']+_0x39733e(0x3f5):''});})[_0x247eff(0x1c4)](function(_0x4857a4){const _0x1c1707=_0x247eff;if(_0x4857a4[_0x1c1707(0x25c)]&&_0x4857a4[_0x1c1707(0x25c)][_0x1c1707(0x1a7c)]&&_0x4857a4[_0x1c1707(0x25c)][_0x1c1707(0x1a7c)][_0x1c1707(0xfd0)]){_0x2509e7['errors']=_0x4857a4[_0x1c1707(0x25c)][_0x1c1707(0x1a7c)]||[{'message':_0x4857a4[_0x1c1707(0x147f)](),'type':_0x1c1707(0x1d2a)}];for(let _0x5dc98d=0x0;_0x5dc98d<_0x4857a4[_0x1c1707(0x25c)]['errors'][_0x1c1707(0xfd0)];_0x5dc98d++){_0xf4cd23[_0x1c1707(0x218e)]({'title':_0x4857a4['data'][_0x1c1707(0x1a7c)][_0x5dc98d][_0x1c1707(0x66a)],'msg':_0x4857a4[_0x1c1707(0x25c)][_0x1c1707(0x1a7c)][_0x5dc98d][_0x1c1707(0x155e)]});}}else _0xf4cd23['error']({'title':_0x4857a4['status']?_0x1c1707(0xeb9)+_0x4857a4[_0x1c1707(0x291)]+_0x1c1707(0x1657)+_0x4857a4[_0x1c1707(0xc22)]:_0x1c1707(0x1d2a),'msg':_0x4857a4[_0x1c1707(0x25c)]?JSON[_0x1c1707(0x2701)](_0x4857a4[_0x1c1707(0x25c)]['message']):_0x4857a4['message']||_0x4857a4['toString']()});});}function _0x33a698(){const _0x2a62e7=_0x4a716b,_0x53a27d=angular[_0x2a62e7(0x17fe)](_0x2509e7[_0x2a62e7(0x13f3)]);return _0x2509e7[_0x2a62e7(0x13f3)]=[],_0x53a27d;}function _0x299568(_0x138cb3){const _0x2883f2=_0x4a716b,_0x45af7c=_0x5aec42[_0x2883f2(0x1551)]()['title'](_0x2883f2(0x1e40))[_0x2883f2(0x49e)](_0x2883f2(0x204d)+_0x2509e7[_0x2883f2(0x13f3)][_0x2883f2(0xfd0)]+_0x2883f2(0x1d6c)+_0x2883f2(0x1b6))['ariaLabel'](_0x2883f2(0xe35))[_0x2883f2(0x728)](_0x138cb3)['ok']('OK')[_0x2883f2(0x696)](_0x2883f2(0x24ba));_0x5aec42[_0x2883f2(0xe27)](_0x45af7c)[_0x2883f2(0x1cb0)](function(){const _0x23fba9=_0x2883f2;_0x2509e7[_0x23fba9(0x13f3)][_0x23fba9(0xf90)](function(_0x199942){_0x353f3f(_0x199942);}),_0x2509e7[_0x23fba9(0x13f3)]=[];});}let _0x3702a9=!![],_0xf77da5=0x1;_0xc5d8cd['$watch'](_0x4a716b(0xeb6),function(_0x1fc02d,_0xe16457){const _0x643fc6=_0x4a716b;_0x3702a9?_0x50709d(function(){_0x3702a9=![];}):(!_0xe16457&&(_0xf77da5=_0x2509e7[_0x643fc6(0xae2)]['page']),_0x1fc02d!==_0xe16457&&(_0x2509e7[_0x643fc6(0xae2)][_0x643fc6(0x1c7b)]=0x1),!_0x1fc02d&&(_0x2509e7[_0x643fc6(0xae2)]['page']=_0xf77da5),_0x48f912());});}const _0x5165df=_0x3c72f2;;_0x28d3b8[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),'$location',_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),'toasty',_0x5537c6(0x20ca),'mailCannedAnswer',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x28d3b8(_0x45fad6,_0x1145c6,_0x17439f,_0x226cbe,_0x3013bd,_0x13514c,_0x5200b4,_0x24d793,_0x260919,_0xbdaf82,_0x1adce4,_0x20f4ba,_0x44126d,_0x4d20a0){const _0xaf3a38=_0x5537c6,_0x20b30c=this;_0x20b30c[_0xaf3a38(0xe76)]=_0x1adce4[_0xaf3a38(0x21e8)](),_0x20b30c[_0xaf3a38(0x1a7c)]=[],_0x20b30c[_0xaf3a38(0x9ca)]=_0x44126d,_0x20b30c[_0xaf3a38(0x8a5)]=_0x20f4ba,_0x20b30c['crudPermissions']=_0x4d20a0,_0x20b30c['hasModulePermissions']={},_0x20b30c[_0xaf3a38(0x1b0c)]=_0x20b30c[_0xaf3a38(0x9ca)]&&_0x20b30c[_0xaf3a38(0x9ca)][_0xaf3a38(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x20b30c['title']='MAIL.EDIT_MAILCANNEDANSWER',_0x20b30c['mailCannedAnswer']=angular[_0xaf3a38(0x17fe)](_0x260919),_0x20b30c[_0xaf3a38(0x20ca)]=_0x24d793,_0x20b30c['newMailCannedAnswer']=![];!_0x20b30c[_0xaf3a38(0xa49)]&&(_0x20b30c['mailCannedAnswer']={},_0x20b30c[_0xaf3a38(0x1386)]=_0xaf3a38(0x102e),_0x20b30c[_0xaf3a38(0x27ea)]=!![]);_0x1145c6[_0xaf3a38(0x1dfe)]['id']&&(_0x20b30c['mailCannedAnswer']['MailAccountId']=_0x1145c6[_0xaf3a38(0x1dfe)]['id']);_0x20b30c[_0xaf3a38(0x119a)]=_0xf931a9,_0x20b30c[_0xaf3a38(0x12d3)]=_0x486be5,_0x20b30c[_0xaf3a38(0x329)]=_0xc72f90,_0x20b30c['getDateFromString']=_0x18f45f,_0x20b30c[_0xaf3a38(0xda0)]=_0x27819e;function _0xf931a9(){const _0x573cf9=_0xaf3a38;_0x20b30c[_0x573cf9(0x1a7c)]=[],_0xbdaf82[_0x573cf9(0x1c25)][_0x573cf9(0x1c3f)](_0x20b30c[_0x573cf9(0xa49)])[_0x573cf9(0x1d77)][_0x573cf9(0x1cb0)](function(_0x43e2ab){const _0x3329d2=_0x573cf9;_0x20b30c[_0x3329d2(0x20ca)][_0x3329d2(0xf63)](_0x43e2ab['toJSON']()),_0x5200b4[_0x3329d2(0x829)]({'title':_0x3329d2(0x2446),'msg':_0x20b30c[_0x3329d2(0xa49)][_0x3329d2(0x16b6)]?_0x20b30c[_0x3329d2(0xa49)][_0x3329d2(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x27819e(_0x43e2ab);})[_0x573cf9(0x1c4)](function(_0x3811be){const _0x10b971=_0x573cf9;if(_0x3811be['data']&&_0x3811be[_0x10b971(0x25c)][_0x10b971(0x1a7c)]&&_0x3811be[_0x10b971(0x25c)][_0x10b971(0x1a7c)]['length']){_0x20b30c[_0x10b971(0x1a7c)]=_0x3811be[_0x10b971(0x25c)]['errors']||[{'message':_0x3811be[_0x10b971(0x147f)](),'type':_0x10b971(0x224)}];for(let _0x4003af=0x0;_0x4003af<_0x3811be[_0x10b971(0x25c)][_0x10b971(0x1a7c)][_0x10b971(0xfd0)];_0x4003af+=0x1){_0x5200b4[_0x10b971(0x218e)]({'title':_0x3811be[_0x10b971(0x25c)][_0x10b971(0x1a7c)][_0x4003af][_0x10b971(0x66a)],'msg':_0x3811be[_0x10b971(0x25c)]['errors'][_0x4003af]['message']});}}else _0x5200b4[_0x10b971(0x218e)]({'title':_0x3811be['status']?_0x10b971(0xeb9)+_0x3811be['status']+_0x10b971(0x1657)+_0x3811be[_0x10b971(0xc22)]:_0x10b971(0x224),'msg':_0x3811be[_0x10b971(0x25c)]?JSON[_0x10b971(0x2701)](_0x3811be[_0x10b971(0x25c)][_0x10b971(0x155e)]):_0x3811be['toString']()});});}function _0x486be5(){const _0x32d84e=_0xaf3a38;_0x20b30c[_0x32d84e(0x1a7c)]=[],_0xbdaf82[_0x32d84e(0x1c25)]['update']({'id':_0x20b30c[_0x32d84e(0xa49)]['id']},_0x20b30c[_0x32d84e(0xa49)])[_0x32d84e(0x1d77)][_0x32d84e(0x1cb0)](function(_0x14db7e){const _0x4d3dfb=_0x32d84e,_0x90d12a=_0x39641b()[_0x4d3dfb(0x13b4)](_0x20b30c[_0x4d3dfb(0x20ca)],{'id':_0x14db7e['id']});_0x90d12a&&_0x39641b()[_0x4d3dfb(0x9c1)](_0x90d12a,_0x39641b()[_0x4d3dfb(0x169b)](_0x14db7e[_0x4d3dfb(0x19b2)](),_0x39641b()[_0x4d3dfb(0x1be5)](_0x90d12a))),_0x5200b4['success']({'title':_0x4d3dfb(0x144e),'msg':_0x20b30c[_0x4d3dfb(0xa49)][_0x4d3dfb(0x16b6)]?_0x20b30c[_0x4d3dfb(0xa49)]['name']+_0x4d3dfb(0xedb):''}),_0x27819e(_0x14db7e);})[_0x32d84e(0x1c4)](function(_0x2cc05a){const _0x83ca96=_0x32d84e;if(_0x2cc05a[_0x83ca96(0x25c)]&&_0x2cc05a[_0x83ca96(0x25c)][_0x83ca96(0x1a7c)]&&_0x2cc05a[_0x83ca96(0x25c)][_0x83ca96(0x1a7c)][_0x83ca96(0xfd0)]){_0x20b30c[_0x83ca96(0x1a7c)]=_0x2cc05a[_0x83ca96(0x25c)]['errors']||[{'message':_0x2cc05a[_0x83ca96(0x147f)](),'type':_0x83ca96(0x922)}];for(let _0x38d7c7=0x0;_0x38d7c7<_0x2cc05a[_0x83ca96(0x25c)]['errors'][_0x83ca96(0xfd0)];_0x38d7c7++){_0x5200b4[_0x83ca96(0x218e)]({'title':_0x2cc05a['data']['errors'][_0x38d7c7][_0x83ca96(0x66a)],'msg':_0x2cc05a['data'][_0x83ca96(0x1a7c)][_0x38d7c7][_0x83ca96(0x155e)]});}}else _0x5200b4[_0x83ca96(0x218e)]({'title':_0x2cc05a[_0x83ca96(0x291)]?_0x83ca96(0xeb9)+_0x2cc05a[_0x83ca96(0x291)]+_0x83ca96(0x1657)+_0x2cc05a[_0x83ca96(0xc22)]:_0x83ca96(0x922),'msg':_0x2cc05a[_0x83ca96(0x25c)]?JSON['stringify'](_0x2cc05a[_0x83ca96(0x25c)][_0x83ca96(0x155e)]):_0x2cc05a[_0x83ca96(0x147f)]()});});}function _0xc72f90(_0x2b9813){const _0x25845d=_0xaf3a38;_0x20b30c[_0x25845d(0x1a7c)]=[];const _0x339bf0=_0x226cbe[_0x25845d(0x1551)]()[_0x25845d(0x1386)]('Are\x20you\x20sure?')[_0x25845d(0x862)](_0x25845d(0x283d))[_0x25845d(0x15ad)]('Delete\x20MailCannedAnswer')['ok'](_0x25845d(0x2594))[_0x25845d(0x696)](_0x25845d(0xde1))[_0x25845d(0x728)](_0x2b9813);_0x226cbe[_0x25845d(0xe27)](_0x339bf0)[_0x25845d(0x1cb0)](function(){const _0xd65126=_0x25845d;_0xbdaf82[_0xd65126(0x1c25)][_0xd65126(0x111d)]({'id':_0x20b30c[_0xd65126(0xa49)]['id']})[_0xd65126(0x1d77)]['then'](function(){const _0x248fb0=_0xd65126;_0x39641b()[_0x248fb0(0x152a)](_0x20b30c[_0x248fb0(0x20ca)],{'id':_0x20b30c[_0x248fb0(0xa49)]['id']}),_0x5200b4[_0x248fb0(0x829)]({'title':_0x248fb0(0x62c),'msg':(_0x20b30c[_0x248fb0(0xa49)]['name']||_0x248fb0(0xa49))+_0x248fb0(0x3f5)}),_0x27819e(_0x20b30c['mailCannedAnswer']);})['catch'](function(_0x51f40a){const _0x140983=_0xd65126;if(_0x51f40a[_0x140983(0x25c)]&&_0x51f40a[_0x140983(0x25c)][_0x140983(0x1a7c)]&&_0x51f40a[_0x140983(0x25c)][_0x140983(0x1a7c)][_0x140983(0xfd0)]){_0x20b30c[_0x140983(0x1a7c)]=_0x51f40a['data']['errors']||[{'message':_0x51f40a[_0x140983(0x147f)](),'type':_0x140983(0x1399)}];for(let _0x2c78cb=0x0;_0x2c78cb<_0x51f40a[_0x140983(0x25c)]['errors'][_0x140983(0xfd0)];_0x2c78cb++){_0x5200b4[_0x140983(0x218e)]({'title':_0x51f40a[_0x140983(0x25c)][_0x140983(0x1a7c)][_0x2c78cb][_0x140983(0x66a)],'msg':_0x51f40a['data'][_0x140983(0x1a7c)][_0x2c78cb][_0x140983(0x155e)]});}}else _0x5200b4[_0x140983(0x218e)]({'title':_0x51f40a[_0x140983(0x291)]?_0x140983(0xeb9)+_0x51f40a[_0x140983(0x291)]+_0x140983(0x1657)+_0x51f40a[_0x140983(0xc22)]:_0x140983(0x1399),'msg':_0x51f40a['data']?JSON[_0x140983(0x2701)](_0x51f40a['data'][_0x140983(0x155e)]):_0x51f40a[_0x140983(0x155e)]||_0x51f40a['toString']()});});},function(){});}function _0x18f45f(_0x5a282f){return _0x5a282f===null?undefined:new Date(_0x5a282f);}function _0x27819e(_0x2c74b6){_0x226cbe['hide'](_0x2c74b6);}}const _0xfa90ae=_0x28d3b8;;_0x591640[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x142b),_0x5537c6(0x9bf),'Auth'];function _0x591640(_0x10115b,_0xf1e205,_0x246d89,_0x319eb0,_0x4a2d34,_0x16bb71,_0x360f33,_0x4ea438,_0xf8bf66,_0x1e33d6,_0x17c5d1){const _0x1aac3c=_0x5537c6,_0x6bb6dd=this;_0x6bb6dd['currentUser']=_0x17c5d1[_0x1aac3c(0x21e8)](),_0x6bb6dd[_0x1aac3c(0xdf2)]={'count':0x0,'rows':[]},_0x6bb6dd[_0x1aac3c(0x122a)]=[],_0x6bb6dd[_0x1aac3c(0x1b1a)],_0x6bb6dd[_0x1aac3c(0x2376)]={'first':_0x1aac3c(0x29a0),'second':_0x1aac3c(0x26db),'third':_0x1aac3c(0xfbe)},_0x6bb6dd[_0x1aac3c(0xae2)]={'fields':_0x1aac3c(0x1f4b),'sort':_0x1aac3c(0x282),'limit':0xa,'page':0x1},_0x6bb6dd[_0x1aac3c(0x1a8e)]=_0x1d2117,_0x6bb6dd['deleteConfirm']=_0x513b27,_0x6bb6dd[_0x1aac3c(0x829)]=_0x2275f4,_0x6bb6dd[_0x1aac3c(0x640)]=_0x16fba3,_0x6bb6dd[_0x1aac3c(0x932)]=_0x222898,_0x6bb6dd[_0x1aac3c(0x20b3)]=_0x13c884,_0x6bb6dd[_0x1aac3c(0x1ebf)]=_0x35627e,_0x6bb6dd['deleteSelectedDispositions']=_0x454bad,_0x6bb6dd[_0x1aac3c(0x25ec)]=_0xc53a33,_0x6bb6dd[_0x1aac3c(0x13ff)]=_0xf8f868;function _0x1d2117(_0x262aba,_0xcebf3){const _0x1bd7ff=_0x1aac3c;_0x6bb6dd[_0x1bd7ff(0x131c)]=_0x262aba||{},_0x6bb6dd[_0x1bd7ff(0x1b1a)]=typeof _0xcebf3!=='undefined'?_0xcebf3:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x6bb6dd['query'][_0x1bd7ff(0x1285)]=_0x6bb6dd[_0x1bd7ff(0x131c)]['id'],_0x6bb6dd[_0x1bd7ff(0xae2)]['id']=_0x6bb6dd[_0x1bd7ff(0x131c)]['id'],_0x16fba3();}function _0x222898(_0x456163,_0x406a66){const _0x914452=_0x1aac3c;_0x4a2d34['show']({'controller':_0x914452(0x201d),'controllerAs':'vm','templateUrl':_0x3d7049,'parent':angular['element'](_0x16bb71[_0x914452(0x1ed9)]),'targetEvent':_0x456163,'clickOutsideToClose':!![],'locals':{'disposition':_0x406a66,'model':{'id':_0x6bb6dd[_0x914452(0x131c)]['id'],'field':_0x914452(0x1285),'route':_0x914452(0x131c)},'license':null,'setting':null,'crudPermissions':_0x6bb6dd[_0x914452(0x1b1a)]}})[_0x914452(0x1cb0)](function(_0x3eb9ca){if(_0x3eb9ca)_0x16fba3();});}function _0x513b27(_0x5527ba,_0x39d8fb){const _0x66d573=_0x1aac3c,_0x210c7d=_0x39641b()[_0x66d573(0x727)](_0x6bb6dd[_0x66d573(0xdf2)][_0x66d573(0x2214)],[_0x66d573(0x55e),_0x5527ba['id']]),_0x49c9d4=_0x4a2d34[_0x66d573(0x1551)]()[_0x66d573(0x1386)](_0x4ea438[_0x66d573(0x25cc)](_0x66d573(0x1d64)))[_0x66d573(0x862)](_0x4ea438[_0x66d573(0x25cc)]('TOOLS.NOTIFICATIONS.'+(_0x210c7d?'DISPOSITION_DELETE_MESSAGE_CHILDREN':'DISPOSITION_DELETE_MESSAGE'),{'name':_0x5527ba[_0x66d573(0x16b6)]}))[_0x66d573(0x15ad)](_0x66d573(0x35d))[_0x66d573(0x728)](_0x39d8fb)['ok']('OK')[_0x66d573(0x696)](_0x4ea438[_0x66d573(0x25cc)](_0x66d573(0x2768)));_0x4a2d34[_0x66d573(0xe27)](_0x49c9d4)[_0x66d573(0x1cb0)](function(){_0x13c884(_0x5527ba);});}function _0x2275f4(_0x3aad19){_0x6bb6dd['dispositions']=_0x3aad19||{'count':0x0,'rows':[]};}function _0x16fba3(){const _0x663f7e=_0x1aac3c;_0x6bb6dd[_0x663f7e(0xae2)][_0x663f7e(0x184b)]=(_0x6bb6dd[_0x663f7e(0xae2)]['page']-0x1)*_0x6bb6dd[_0x663f7e(0xae2)][_0x663f7e(0x236)],_0x6bb6dd[_0x663f7e(0x2061)]=_0xf8bf66[_0x663f7e(0x131c)][_0x663f7e(0x640)](_0x6bb6dd[_0x663f7e(0xae2)],_0x2275f4)[_0x663f7e(0x1d77)];}function _0x13c884(_0x5ca5c6){const _0x106321=_0x1aac3c;_0xf8bf66[_0x106321(0x1746)]['delete']({'id':_0x5ca5c6['id']})[_0x106321(0x1d77)][_0x106321(0x1cb0)](function(){const _0x1a000f=_0x106321;_0x16fba3(),_0x1e33d6[_0x1a000f(0x829)]({'title':_0x4ea438['instant'](_0x1a000f(0x1f96))});})[_0x106321(0x1c4)](function(_0x3ff6f8){const _0x5cde2d=_0x106321;if(_0x3ff6f8[_0x5cde2d(0x25c)]&&_0x3ff6f8[_0x5cde2d(0x25c)]['errors']&&_0x3ff6f8[_0x5cde2d(0x25c)][_0x5cde2d(0x1a7c)]['length']){_0x6bb6dd['errors']=_0x3ff6f8['data']['errors']||[{'message':_0x3ff6f8['toString'](),'type':_0x5cde2d(0x2618)}];for(let _0x556992=0x0;_0x556992<_0x3ff6f8['data'][_0x5cde2d(0x1a7c)][_0x5cde2d(0xfd0)];_0x556992++){_0x1e33d6[_0x5cde2d(0x218e)]({'title':_0x3ff6f8[_0x5cde2d(0x25c)]['errors'][_0x556992][_0x5cde2d(0x66a)],'msg':_0x3ff6f8[_0x5cde2d(0x25c)]['errors'][_0x556992]['message']});}}else _0x1e33d6[_0x5cde2d(0x218e)]({'title':_0x3ff6f8[_0x5cde2d(0x291)]?'API:'+_0x3ff6f8[_0x5cde2d(0x291)]+'\x20-\x20'+_0x3ff6f8[_0x5cde2d(0xc22)]:_0x5cde2d(0x2618),'msg':_0x3ff6f8['data']?JSON[_0x5cde2d(0x2701)](_0x3ff6f8[_0x5cde2d(0x25c)][_0x5cde2d(0x155e)]):_0x3ff6f8[_0x5cde2d(0x155e)]||_0x3ff6f8[_0x5cde2d(0x147f)]()});});}function _0x35627e(){const _0x43d887=_0x1aac3c,_0x531824=angular[_0x43d887(0x17fe)](_0x6bb6dd[_0x43d887(0x122a)]);return _0x6bb6dd[_0x43d887(0x122a)]=[],_0x531824;}function _0x454bad(_0x11c739){const _0x387ca2=_0x1aac3c,_0x4af9af=_0x4a2d34['confirm']()['title'](_0x4ea438[_0x387ca2(0x25cc)](_0x387ca2(0x969)))[_0x387ca2(0x862)](_0x4ea438[_0x387ca2(0x25cc)](_0x387ca2(0xb3c),{'total':_0x6bb6dd[_0x387ca2(0x122a)][_0x387ca2(0xfd0)]}))[_0x387ca2(0x15ad)](_0x387ca2(0x1e1c))[_0x387ca2(0x728)](_0x11c739)['ok']('OK')['cancel'](_0x4ea438['instant'](_0x387ca2(0x2768)));_0x4a2d34['show'](_0x4af9af)[_0x387ca2(0x1cb0)](function(){const _0x341de5=_0x387ca2;_0x6bb6dd['selectedDispositions'][_0x341de5(0xf90)](function(_0x6b4cb9){_0x13c884(_0x6b4cb9);}),_0x6bb6dd[_0x341de5(0x122a)]=[];});}function _0xc53a33(){const _0x594ca9=_0x1aac3c;_0x6bb6dd[_0x594ca9(0x122a)]=[];}function _0xf8f868(){const _0x5e3d78=_0x1aac3c;_0x6bb6dd[_0x5e3d78(0x122a)]=_0x6bb6dd[_0x5e3d78(0xdf2)][_0x5e3d78(0x2214)];}let _0x5beb29=!![],_0x247841=0x1;_0x10115b[_0x1aac3c(0x614)](_0x1aac3c(0xeb6),function(_0x8c26b7,_0x1f435d){const _0x37fda4=_0x1aac3c;_0x5beb29?_0x360f33(function(){_0x5beb29=![];}):(!_0x1f435d&&(_0x247841=_0x6bb6dd[_0x37fda4(0xae2)]['page']),_0x8c26b7!==_0x1f435d&&(_0x6bb6dd[_0x37fda4(0xae2)][_0x37fda4(0x1c7b)]=0x1),!_0x8c26b7&&(_0x6bb6dd[_0x37fda4(0xae2)][_0x37fda4(0x1c7b)]=_0x247841),_0x16fba3());});}const _0x8f035d=_0x591640;;const _0x1c3a73=_0x5074a3['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/agentadd/agentadd.html/agentadd.html';;_0x4e661d[_0x5537c6(0x15b6)]=['$state','$location',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1ae),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),'mailAccount',_0x5537c6(0x2199)];function _0x4e661d(_0x5ec210,_0x4a35e0,_0x26037f,_0x150891,_0x240d80,_0x3188e8,_0x3b11c9,_0x1ed620,_0x498a3b,_0x65c5f,_0x3cc137,_0x190acb){const _0x5136fa=_0x5537c6,_0x216efc=this;_0x216efc[_0x5136fa(0xe76)]=_0x65c5f[_0x5136fa(0x21e8)](),_0x216efc['license']=_0x3188e8,_0x216efc[_0x5136fa(0x9ca)]=_0x3b11c9,_0x216efc[_0x5136fa(0x1b0c)]=_0x216efc[_0x5136fa(0x9ca)][_0x5136fa(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x216efc[_0x5136fa(0x2404)]=_0x4a35e0[_0x5136fa(0x2276)]()+_0x5136fa(0x138b)+_0x4a35e0[_0x5136fa(0x17d8)](),_0x216efc[_0x5136fa(0x131c)]=_0x3cc137||_0x5ec210['params'][_0x5136fa(0x131c)]||{},_0x216efc[_0x5136fa(0x2199)]=_0x190acb&&_0x190acb[_0x5136fa(0x184d)]==0x1?_0x190acb['rows'][0x0]:null,_0x216efc[_0x5136fa(0x1b1a)]=_0x65c5f[_0x5136fa(0x14ea)](_0x216efc['userProfileSection']?_0x216efc[_0x5136fa(0x2199)][_0x5136fa(0x1b1a)]:null),_0x216efc['hasModulePermissions']={},_0x216efc[_0x5136fa(0x8ec)]=_0x5ec210[_0x5136fa(0x1dfe)][_0x5136fa(0x291e)]||0x0,_0x216efc['gotogoto']=_0x4d6e09,_0x216efc['agentadddialog']=_0x3cb5ce,_0x216efc['alert']=_0x498a3b[_0x5136fa(0x28c7)],_0x216efc[_0x5136fa(0x2320)]=_0x43f4fc,_0x216efc[_0x5136fa(0x48f)]=_0x4e89a6,_0x65c5f[_0x5136fa(0x22b6)](_0x5136fa(0x1c60))?_0x1ed620['cmList']['get']({'fields':'id,name','sort':_0x5136fa(0x16b6)})[_0x5136fa(0x1d77)][_0x5136fa(0x1cb0)](function(_0x430bf1){const _0x14e90b=_0x5136fa;_0x216efc['lists']=_0x430bf1[_0x14e90b(0x2214)]||[];})[_0x5136fa(0x1c4)](function(_0x2e6a77){const _0x1b59e3=_0x5136fa;_0x498a3b[_0x1b59e3(0x218e)]({'title':_0x2e6a77[_0x1b59e3(0x291)]?_0x1b59e3(0xeb9)+_0x2e6a77['status']+'\x20-\x20'+_0x2e6a77['statusText']:'SYSTEM:GET_LISTS','msg':_0x2e6a77['data']?JSON['stringify'](_0x2e6a77[_0x1b59e3(0x25c)]):_0x2e6a77[_0x1b59e3(0x147f)]()});}):_0x1ed620[_0x5136fa(0x22f2)]['get']({'fields':_0x5136fa(0x43c),'sort':_0x5136fa(0x16b6)})[_0x5136fa(0x1d77)][_0x5136fa(0x1cb0)](function(_0x1221d5){const _0x3c1505=_0x5136fa;_0x216efc[_0x3c1505(0x1046)]=_0x1221d5[_0x3c1505(0x2214)]||[];})[_0x5136fa(0x1cb0)](function(){const _0x21052f=_0x5136fa;return _0x1ed620['userProfileSection'][_0x21052f(0xbf7)]({'userProfileId':_0x216efc[_0x21052f(0xe76)][_0x21052f(0x13c1)],'sectionId':0x12d})['$promise'];})[_0x5136fa(0x1cb0)](function(_0xde1377){const _0x31465f=_0x5136fa,_0x5b1710=_0xde1377&&_0xde1377['rows']?_0xde1377[_0x31465f(0x2214)][0x0]:null;if(!_0x5b1710){const _0x280fbc=[];let _0x44286e=null;_0x216efc['mailAccount']&&(_0x44286e=_0x39641b()['find'](_0x216efc[_0x31465f(0x1046)],{'id':Number(_0x216efc[_0x31465f(0x131c)][_0x31465f(0x20a6)])}));for(let _0x5d634c=0x0;_0x5d634c<_0x216efc[_0x31465f(0x1046)][_0x31465f(0xfd0)];_0x5d634c++){_0x44286e&&_0x216efc['lists'][_0x5d634c]['id']===_0x44286e['id']&&(_0x216efc[_0x31465f(0x1046)][_0x5d634c][_0x31465f(0x15da)]=![],_0x280fbc[_0x31465f(0x2785)](_0x216efc[_0x31465f(0x1046)][_0x5d634c]));}_0x216efc[_0x31465f(0x1046)]=_0x280fbc;}else{if(!_0x5b1710[_0x31465f(0x12f4)])return _0x1ed620[_0x31465f(0x1198)][_0x31465f(0xbf7)]({'sectionId':_0x5b1710['id']})[_0x31465f(0x1d77)]['then'](function(_0xde46d7){const _0x4e838b=_0x31465f,_0x1e2c4b=_0x39641b()[_0x4e838b(0x1de2)](_0xde46d7[_0x4e838b(0x2214)],function(_0x28f19a){const _0x45f955=_0x4e838b;return _0x39641b()[_0x45f955(0x13b4)](_0x216efc[_0x45f955(0x1046)],{'id':_0x28f19a[_0x45f955(0x2982)]});});let _0x52e74b=null;_0x216efc[_0x4e838b(0x131c)]&&(_0x52e74b=_0x39641b()['find'](_0x216efc['lists'],{'id':Number(_0x216efc['mailAccount'][_0x4e838b(0x20a6)])}));if(_0x52e74b&&!_0x39641b()[_0x4e838b(0x727)](_0x1e2c4b,['id',_0x52e74b['id']])){const _0x32a567=_0x39641b()[_0x4e838b(0x13b4)](_0x216efc['lists'],{'id':_0x52e74b['id']});_0x32a567[_0x4e838b(0x15da)]=![],_0x1e2c4b['push'](_0x32a567);}_0x216efc[_0x4e838b(0x1046)]=_0x1e2c4b;});}})[_0x5136fa(0x1c4)](function(_0x2ebcd8){const _0x5e04be=_0x5136fa;_0x498a3b[_0x5e04be(0x218e)]({'title':_0x2ebcd8['status']?'API:'+_0x2ebcd8[_0x5e04be(0x291)]+'\x20-\x20'+_0x2ebcd8[_0x5e04be(0xc22)]:'SYSTEM:GETlists','msg':_0x2ebcd8[_0x5e04be(0x25c)]?JSON[_0x5e04be(0x2701)](_0x2ebcd8['data']):_0x2ebcd8['toString']()});}),_0x65c5f[_0x5136fa(0x22b6)](_0x5136fa(0x1c60))?_0x1ed620[_0x5136fa(0x785)]['get']({'fields':_0x5136fa(0x791),'sort':_0x5136fa(0x16b6),'nolimit':_0x5136fa(0x44d)})[_0x5136fa(0x1d77)]['then'](function(_0x5bdff8){const _0x1b1e72=_0x5136fa;_0x216efc[_0x1b1e72(0x8de)]=_0x5bdff8['rows']||[];})[_0x5136fa(0x1c4)](function(_0x499b40){const _0x52afdc=_0x5136fa;_0x498a3b[_0x52afdc(0x218e)]({'title':_0x499b40[_0x52afdc(0x291)]?_0x52afdc(0xeb9)+_0x499b40[_0x52afdc(0x291)]+_0x52afdc(0x1657)+_0x499b40[_0x52afdc(0xc22)]:_0x52afdc(0x1589),'msg':_0x499b40['data']?JSON['stringify'](_0x499b40['data']):_0x499b40['toString']()});}):_0x1ed620[_0x5136fa(0x785)][_0x5136fa(0xbf7)]({'fields':_0x5136fa(0x791),'sort':'name','nolimit':_0x5136fa(0x44d)})[_0x5136fa(0x1d77)][_0x5136fa(0x1cb0)](function(_0x558fcc){_0x216efc['pauses']=_0x558fcc['rows']||[];})[_0x5136fa(0x1cb0)](function(){const _0x3c9cf3=_0x5136fa;return _0x1ed620[_0x3c9cf3(0x2199)][_0x3c9cf3(0xbf7)]({'userProfileId':_0x216efc[_0x3c9cf3(0xe76)][_0x3c9cf3(0x13c1)],'sectionId':0x3ed})[_0x3c9cf3(0x1d77)];})[_0x5136fa(0x1cb0)](function(_0x34a083){const _0x164375=_0x5136fa,_0x5cac74=_0x34a083&&_0x34a083[_0x164375(0x2214)]?_0x34a083[_0x164375(0x2214)][0x0]:null;if(!_0x5cac74)_0x216efc['pauses']=[];else{if(!_0x5cac74['autoAssociation'])return _0x1ed620[_0x164375(0x1198)][_0x164375(0xbf7)]({'sectionId':_0x5cac74['id']})['$promise'][_0x164375(0x1cb0)](function(_0x1ce0cc){const _0x2cba6e=_0x164375,_0x3ff264=_0x39641b()[_0x2cba6e(0x1de2)](_0x1ce0cc[_0x2cba6e(0x2214)],function(_0x59d917){const _0x84c3ce=_0x2cba6e;return _0x39641b()['find'](_0x216efc[_0x84c3ce(0x8de)],{'id':_0x59d917[_0x84c3ce(0x2982)]});});_0x216efc[_0x2cba6e(0x8de)][_0x2cba6e(0xf90)](function(_0x30732f){const _0x2c2d45=_0x2cba6e;!_0x39641b()[_0x2c2d45(0x727)](_0x3ff264,['id',_0x30732f['id']])&&(_0x30732f[_0x2c2d45(0x15da)]=![]),_0x3ff264[_0x2c2d45(0x2785)](_0x30732f);}),_0x216efc[_0x2cba6e(0x8de)]=_0x3ff264;});}})['catch'](function(_0x13a76a){const _0x272472=_0x5136fa;_0x498a3b[_0x272472(0x218e)]({'title':_0x13a76a[_0x272472(0x291)]?_0x272472(0xeb9)+_0x13a76a[_0x272472(0x291)]+_0x272472(0x1657)+_0x13a76a[_0x272472(0xc22)]:'SYSTEM:GETpauses','msg':_0x13a76a[_0x272472(0x25c)]?JSON['stringify'](_0x13a76a[_0x272472(0x25c)]):_0x13a76a[_0x272472(0x147f)]()});});function _0x4d6e09(){const _0x5a97f7=_0x5136fa;if(_0x65c5f['hasRole'](_0x5a97f7(0x1c60)))_0x5ec210['go'](_0x5a97f7(0x1dd),{});else return _0x1ed620[_0x5a97f7(0x2199)]['get']({'userProfileId':_0x65c5f['getCurrentUser']()[_0x5a97f7(0x13c1)],'sectionId':0x262})['$promise'][_0x5a97f7(0x1cb0)](function(_0x598ee7){const _0x27f4d5=_0x5a97f7,_0x898a8e=_0x598ee7&&_0x598ee7['rows']?_0x598ee7['rows'][0x0]:null;_0x898a8e&&_0x898a8e[_0x27f4d5(0x281c)]?_0x5ec210['go'](_0x27f4d5(0x1dd),{}):_0x498a3b['info']({'title':_0x240d80[_0x27f4d5(0x25cc)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x240d80[_0x27f4d5(0x25cc)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})['catch'](function(_0x5e3e4b){const _0x1da682=_0x5a97f7;_0x498a3b[_0x1da682(0x218e)]({'title':_0x5e3e4b[_0x1da682(0x291)]?_0x1da682(0xeb9)+_0x5e3e4b[_0x1da682(0x291)]+_0x1da682(0x1657)+_0x5e3e4b['statusText']:_0x1da682(0x17ba),'msg':_0x5e3e4b[_0x1da682(0x291)]?JSON[_0x1da682(0x2701)](_0x5e3e4b[_0x1da682(0x25c)]):_0x5e3e4b[_0x1da682(0x147f)]()});});}function _0x3cb5ce(_0x23c742,_0x3cdd48){const _0x28d9bf=_0x5136fa;_0x26037f[_0x28d9bf(0xe27)]({'controller':'MailAccountagentaddController','controllerAs':'vm','templateUrl':_0x1c3a73,'parent':angular[_0x28d9bf(0x1853)](_0x150891[_0x28d9bf(0x1ed9)]),'targetEvent':_0x3cdd48,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x23c742,'mailAccounts':_0x216efc['mailAccounts']?_0x216efc[_0x28d9bf(0x228e)][_0x28d9bf(0x2214)]:[],'crudPermissions':_0x216efc[_0x28d9bf(0x1b1a)],'realtime':![]}});}function _0x43f4fc(){const _0x295c38=_0x5136fa;_0x5ec210['go'](_0x295c38(0x226d),{},{'reload':_0x295c38(0x226d)});}function _0x4e89a6(){const _0x18dafd=_0x5136fa;_0x1ed620[_0x18dafd(0x131c)][_0x18dafd(0x687)]({'id':_0x216efc[_0x18dafd(0x131c)]['id']},_0x216efc['mailAccount'])[_0x18dafd(0x1d77)]['then'](function(){const _0x1dc15c=_0x18dafd;_0x498a3b[_0x1dc15c(0x829)]({'title':_0x1dc15c(0x490),'msg':_0x216efc[_0x1dc15c(0x131c)]['name']?_0x216efc[_0x1dc15c(0x131c)]['name']+_0x1dc15c(0x1068):''});})['catch'](function(_0x1d180a){const _0x3c4385=_0x18dafd;_0x498a3b['error']({'title':_0x1d180a[_0x3c4385(0x291)]?_0x3c4385(0xeb9)+_0x1d180a['status']+'\x20-\x20'+_0x1d180a[_0x3c4385(0xc22)]:_0x3c4385(0x1d2a),'msg':_0x1d180a[_0x3c4385(0x25c)]?JSON[_0x3c4385(0x2701)](_0x1d180a[_0x3c4385(0x25c)]):_0x1d180a['toString']()});});}}const _0x1c882d=_0x4e661d;;const _0x25382d=_0x5074a3['p']+_0x5537c6(0x1e2b);;_0x2f7d4a['$inject']=[_0x5537c6(0x1463),'$window','$state','$mdSidenav',_0x5537c6(0xcb9),'$document',_0x5537c6(0x2168),_0x5537c6(0x1ae),'mailAccounts',_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),'toasty','Auth','license',_0x5537c6(0x9ca)];function _0x2f7d4a(_0x58a1bd,_0x4415c2,_0x4f3e71,_0x13a052,_0x1908c7,_0x49a859,_0x35790d,_0x23a36c,_0x7faa26,_0x4326e2,_0x341624,_0x1a177d,_0x475116,_0x261bad,_0x12bdf5,_0x5ebc5f,_0xa38abe){const _0x43ce05=_0x5537c6,_0x117c8c=this;_0x117c8c['license']=_0x5ebc5f,_0x117c8c[_0x43ce05(0x9ca)]=_0xa38abe,_0x117c8c['currentUser']=_0x12bdf5[_0x43ce05(0x21e8)](),_0x117c8c[_0x43ce05(0x228e)]=_0x7faa26||{'count':0x0,'rows':[]},_0x117c8c[_0x43ce05(0x44a)]=_0x4326e2,_0x117c8c['userProfileSection']=_0x341624&&_0x341624[_0x43ce05(0x184d)]==0x1?_0x341624['rows'][0x0]:null,_0x117c8c['crudPermissions']=_0x12bdf5[_0x43ce05(0x14ea)](_0x117c8c['userProfileSection']?_0x117c8c[_0x43ce05(0x2199)]['crudPermissions']:null),_0x117c8c[_0x43ce05(0xc83)]='mailAccounts',_0x117c8c[_0x43ce05(0x1d20)]='',_0x117c8c['listOrderAsc']=null,_0x117c8c[_0x43ce05(0x24bc)]=[],_0x117c8c[_0x43ce05(0xae2)]={'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':_0x43ce05(0x282),'limit':0xa,'page':0x1},_0x117c8c['arraycservice']=_0x39641b()['keyBy']([{'option':'Custom','value':_0x43ce05(0xd38)},{'option':_0x43ce05(0x13be),'value':_0x43ce05(0x691)},{'option':_0x43ce05(0x22c6),'value':_0x43ce05(0x1bd4)},{'option':_0x43ce05(0x21e6),'value':_0x43ce05(0x250f)},{'option':_0x43ce05(0x133a),'value':_0x43ce05(0xb13)}],function(_0x1ac7d1){const _0x435aa3=_0x43ce05;return _0x39641b()[_0x435aa3(0x288f)](_0x1ac7d1[_0x435aa3(0x327)],new RegExp('\x27','g'),'');}),_0x117c8c[_0x43ce05(0x1ac5)]=_0x39641b()[_0x43ce05(0x2631)]([{'option':_0x43ce05(0x2353),'value':_0x43ce05(0xd38)},{'option':_0x43ce05(0x13be),'value':_0x43ce05(0x691)},{'option':_0x43ce05(0x22c6),'value':'\x27hotmail\x27'},{'option':_0x43ce05(0x21e6),'value':_0x43ce05(0x250f)},{'option':'Outlook365','value':_0x43ce05(0xb13)}],function(_0x5f25e2){const _0x2defc1=_0x43ce05;return _0x39641b()['replace'](_0x5f25e2[_0x2defc1(0x327)],new RegExp('\x27','g'),'');}),_0x117c8c[_0x43ce05(0x11ca)]=_0x39641b()[_0x43ce05(0x2631)]([{'option':_0x43ce05(0x2353),'value':_0x43ce05(0xd38)},{'option':_0x43ce05(0x13be),'value':_0x43ce05(0x691)},{'option':_0x43ce05(0x22c6),'value':_0x43ce05(0x1bd4)},{'option':_0x43ce05(0x21e6),'value':_0x43ce05(0x250f)},{'option':_0x43ce05(0x133a),'value':_0x43ce05(0xb13)}],function(_0x1fe309){const _0x129d4d=_0x43ce05;return _0x39641b()[_0x129d4d(0x288f)](_0x1fe309[_0x129d4d(0x327)],new RegExp('\x27','g'),'');}),_0x117c8c[_0x43ce05(0x235d)]=_0x326504,_0x117c8c[_0x43ce05(0xca1)]=_0x1c392d,_0x117c8c['interactionsgoto']=_0x5b2171,_0x117c8c[_0x43ce05(0x649)]=_0x399546,_0x117c8c[_0x43ce05(0x1379)]=_0xc6adbe,_0x117c8c['deleteconfirm']=_0x377713,_0x117c8c[_0x43ce05(0x829)]=_0x1773f0,_0x117c8c[_0x43ce05(0xe96)]=_0x112b14,_0x117c8c[_0x43ce05(0x14fe)]=_0x2ce00a,_0x117c8c[_0x43ce05(0x1184)]=_0x107f9b,_0x117c8c[_0x43ce05(0xbb7)]=_0x22c848,_0x117c8c[_0x43ce05(0x491)]=_0x18d4df,_0x117c8c[_0x43ce05(0xba7)]=_0x3b5965,_0x117c8c['selectAllMailAccounts']=_0x325c4c,_0x12bdf5[_0x43ce05(0x22b6)]('admin')?_0x1a177d[_0x43ce05(0x22f2)][_0x43ce05(0xbf7)]({'fields':_0x43ce05(0x43c),'sort':_0x43ce05(0x16b6)})[_0x43ce05(0x1d77)][_0x43ce05(0x1cb0)](function(_0x2a70cd){const _0x5df10a=_0x43ce05;_0x117c8c[_0x5df10a(0x1046)]=_0x2a70cd[_0x5df10a(0x2214)]||[];})[_0x43ce05(0x1c4)](function(_0x46a094){const _0x46e4c3=_0x43ce05;_0x261bad[_0x46e4c3(0x218e)]({'title':_0x46a094[_0x46e4c3(0x291)]?_0x46e4c3(0xeb9)+_0x46a094['status']+_0x46e4c3(0x1657)+_0x46a094[_0x46e4c3(0xc22)]:'SYSTEM:GET_LISTS','msg':_0x46a094[_0x46e4c3(0x25c)]?JSON[_0x46e4c3(0x2701)](_0x46a094['data']):_0x46a094['toString']()});}):_0x1a177d['cmList']['get']({'fields':_0x43ce05(0x43c),'sort':_0x43ce05(0x16b6)})['$promise'][_0x43ce05(0x1cb0)](function(_0x2fedc4){const _0x52c0d1=_0x43ce05;_0x117c8c[_0x52c0d1(0x1046)]=_0x2fedc4[_0x52c0d1(0x2214)]||[];})[_0x43ce05(0x1cb0)](function(){const _0x8aa071=_0x43ce05;return _0x1a177d['userProfileSection'][_0x8aa071(0xbf7)]({'userProfileId':_0x117c8c[_0x8aa071(0xe76)][_0x8aa071(0x13c1)],'sectionId':0x12d})['$promise'];})['then'](function(_0xdc37a2){const _0x6a89a3=_0x43ce05,_0x30c552=_0xdc37a2&&_0xdc37a2['rows']?_0xdc37a2['rows'][0x0]:null;if(!_0x30c552){const _0x5c3728=[];let _0x3e08e5=null;_0x117c8c['mailAccount']&&(_0x3e08e5=_0x39641b()[_0x6a89a3(0x13b4)](_0x117c8c[_0x6a89a3(0x1046)],{'id':Number(_0x117c8c['mailAccount'][_0x6a89a3(0x20a6)])}));for(let _0x1f186d=0x0;_0x1f186d<_0x117c8c[_0x6a89a3(0x1046)]['length'];_0x1f186d++){_0x3e08e5&&_0x117c8c[_0x6a89a3(0x1046)][_0x1f186d]['id']===_0x3e08e5['id']&&(_0x117c8c['lists'][_0x1f186d]['canSelect']=![],_0x5c3728[_0x6a89a3(0x2785)](_0x117c8c[_0x6a89a3(0x1046)][_0x1f186d]));}_0x117c8c[_0x6a89a3(0x1046)]=_0x5c3728;}else{if(!_0x30c552[_0x6a89a3(0x12f4)])return _0x1a177d[_0x6a89a3(0x1198)][_0x6a89a3(0xbf7)]({'sectionId':_0x30c552['id']})[_0x6a89a3(0x1d77)][_0x6a89a3(0x1cb0)](function(_0x411bd5){const _0x777d2e=_0x6a89a3,_0x3a577e=_0x39641b()[_0x777d2e(0x1de2)](_0x411bd5[_0x777d2e(0x2214)],function(_0x1b36eb){const _0x481464=_0x777d2e;return _0x39641b()[_0x481464(0x13b4)](_0x117c8c[_0x481464(0x1046)],{'id':_0x1b36eb[_0x481464(0x2982)]});});let _0x390100=null;_0x117c8c[_0x777d2e(0x131c)]&&(_0x390100=_0x39641b()[_0x777d2e(0x13b4)](_0x117c8c[_0x777d2e(0x1046)],{'id':Number(_0x117c8c['mailAccount'][_0x777d2e(0x20a6)])}));if(_0x390100&&!_0x39641b()[_0x777d2e(0x727)](_0x3a577e,['id',_0x390100['id']])){const _0x42faab=_0x39641b()[_0x777d2e(0x13b4)](_0x117c8c[_0x777d2e(0x1046)],{'id':_0x390100['id']});_0x42faab[_0x777d2e(0x15da)]=![],_0x3a577e[_0x777d2e(0x2785)](_0x42faab);}_0x117c8c[_0x777d2e(0x1046)]=_0x3a577e;});}})[_0x43ce05(0x1c4)](function(_0x2ef23d){const _0x273ddf=_0x43ce05;_0x261bad['error']({'title':_0x2ef23d[_0x273ddf(0x291)]?'API:'+_0x2ef23d[_0x273ddf(0x291)]+_0x273ddf(0x1657)+_0x2ef23d[_0x273ddf(0xc22)]:_0x273ddf(0x113c),'msg':_0x2ef23d['data']?JSON[_0x273ddf(0x2701)](_0x2ef23d[_0x273ddf(0x25c)]):_0x2ef23d[_0x273ddf(0x147f)]()});});function _0x326504(_0x473833){const _0x2d4614=_0x43ce05;_0x4f3e71['go'](_0x2d4614(0xbcd),{'id':_0x473833['id'],'mailAccount':_0x473833,'crudPermissions':_0x117c8c[_0x2d4614(0x1b1a)]});}function _0x1c392d(_0x5a56ec){const _0x256e97=_0x43ce05;if(_0x5a56ec&&_0x5a56ec['id'])return _0x1a177d[_0x256e97(0x131c)][_0x256e97(0x268a)]({'id':_0x5a56ec['id']})[_0x256e97(0x1d77)][_0x256e97(0x1cb0)](function(){const _0x58e76b=_0x256e97;_0x261bad['success']({'title':_0x58e76b(0xe24),'msg':_0x58e76b(0x1bca)});})[_0x256e97(0x1c4)](function(_0x2b527b){const _0x227026=_0x256e97;_0x261bad[_0x227026(0x218e)]({'title':_0x227026(0xe24),'msg':_0x2b527b[_0x227026(0x25c)]?JSON[_0x227026(0x2701)](_0x2b527b[_0x227026(0x25c)]):_0x2b527b[_0x227026(0x147f)]()});});else _0x261bad[_0x256e97(0x218e)]({'title':'Smtp\x20properly\x20verified','msg':'Smpt\x20id\x20unknown'});}function _0x5b2171(_0x1dc399){const _0x353e39=_0x43ce05;_0x4f3e71['go'](_0x353e39(0xbcd),{'id':_0x1dc399['id'],'tab':0x7});}function _0x399546(){const _0x230b60=_0x43ce05;if(_0x12bdf5[_0x230b60(0x22b6)](_0x230b60(0x1c60)))_0x4f3e71['go'](_0x230b60(0x1dd),{});else return _0x1a177d[_0x230b60(0x2199)]['get']({'userProfileId':_0x12bdf5[_0x230b60(0x21e8)]()[_0x230b60(0x13c1)],'sectionId':0x262})[_0x230b60(0x1d77)]['then'](function(_0xee8cba){const _0x711e40=_0x230b60,_0x1cdd18=_0xee8cba&&_0xee8cba[_0x711e40(0x2214)]?_0xee8cba[_0x711e40(0x2214)][0x0]:null;_0x1cdd18&&_0x1cdd18[_0x711e40(0x281c)]?_0x4f3e71['go'](_0x711e40(0x1dd),{}):_0x261bad[_0x711e40(0x28c7)]({'title':_0x23a36c[_0x711e40(0x25cc)](_0x711e40(0x370)),'msg':_0x23a36c[_0x711e40(0x25cc)](_0x711e40(0x33a))});})['catch'](function(_0x1677f2){const _0x5aada5=_0x230b60;_0x261bad['error']({'title':_0x1677f2[_0x5aada5(0x291)]?_0x5aada5(0xeb9)+_0x1677f2[_0x5aada5(0x291)]+'\x20-\x20'+_0x1677f2[_0x5aada5(0xc22)]:_0x5aada5(0x17ba),'msg':_0x1677f2[_0x5aada5(0x291)]?JSON[_0x5aada5(0x2701)](_0x1677f2[_0x5aada5(0x25c)]):_0x1677f2[_0x5aada5(0x147f)]()});});}function _0xc6adbe(_0x5b992c,_0x260245){const _0x27c97b=_0x43ce05;_0x1908c7[_0x27c97b(0xe27)]({'controller':_0x27c97b(0x4f3),'controllerAs':'vm','templateUrl':_0x1c3a73,'parent':angular[_0x27c97b(0x1853)](_0x49a859['body']),'targetEvent':_0x260245,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x5b992c,'mailAccounts':_0x117c8c['mailAccounts']?_0x117c8c[_0x27c97b(0x228e)][_0x27c97b(0x2214)]:[],'crudPermissions':_0x117c8c[_0x27c97b(0x1b1a)],'realtime':![]}});}function _0x377713(_0x5e18bd,_0x361ff4){const _0x4164e1=_0x43ce05,_0x46952a=_0x1908c7['confirm']()[_0x4164e1(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x39641b()[_0x4164e1(0xa75)]('mailAccount')+'?')[_0x4164e1(0x49e)](_0x4164e1(0x204d)+(_0x5e18bd[_0x4164e1(0x16b6)]||_0x4164e1(0x131c))+_0x4164e1(0x1200)+_0x4164e1(0x1b6))[_0x4164e1(0x15ad)]('delete\x20mailAccount')['targetEvent'](_0x361ff4)['ok']('OK')['cancel'](_0x4164e1(0x24ba));_0x1908c7[_0x4164e1(0xe27)](_0x46952a)[_0x4164e1(0x1cb0)](function(){_0x107f9b(_0x5e18bd);},function(){const _0xf05e03=_0x4164e1;console[_0xf05e03(0x1b4f)](_0xf05e03(0x24ba));});}let _0x453496=!![],_0x36f8e0=0x1;_0x58a1bd[_0x43ce05(0x614)](_0x43ce05(0x957),function(_0x23dbe5,_0x94c76f){const _0x5c5e70=_0x43ce05;_0x453496?_0x35790d(function(){_0x453496=![];}):(!_0x94c76f&&(_0x36f8e0=_0x117c8c['query'][_0x5c5e70(0x1c7b)]),_0x23dbe5!==_0x94c76f&&(_0x117c8c[_0x5c5e70(0xae2)]['page']=0x1),!_0x23dbe5&&(_0x117c8c['query']['page']=_0x36f8e0),_0x117c8c['getMailAccounts']());});function _0x1773f0(_0x366601){const _0x183e97=_0x43ce05;_0x117c8c[_0x183e97(0x228e)]=_0x366601||{'count':0x0,'rows':[]};}function _0x112b14(){const _0x585643=_0x43ce05;_0x117c8c['query'][_0x585643(0x184b)]=(_0x117c8c[_0x585643(0xae2)][_0x585643(0x1c7b)]-0x1)*_0x117c8c[_0x585643(0xae2)][_0x585643(0x236)],_0x12bdf5['hasRole']('admin')?_0x117c8c[_0x585643(0x2061)]=_0x1a177d[_0x585643(0x131c)]['get'](_0x117c8c[_0x585643(0xae2)],_0x1773f0)[_0x585643(0x1d77)]:(_0x117c8c['query']['id']=_0x117c8c['userProfile']['id'],_0x117c8c[_0x585643(0xae2)][_0x585643(0x1f74)]=_0x585643(0x9c9),_0x117c8c[_0x585643(0x2061)]=_0x1a177d[_0x585643(0x44a)][_0x585643(0x1810)](_0x117c8c['query'],_0x1773f0)['$promise']);}function _0x2ce00a(_0x35f8db,_0x613edf){const _0xc66aeb=_0x43ce05;_0x1908c7[_0xc66aeb(0xe27)]({'controller':_0xc66aeb(0x1a44),'controllerAs':'vm','templateUrl':_0x25382d,'parent':angular[_0xc66aeb(0x1853)](_0x49a859[_0xc66aeb(0x1ed9)]),'targetEvent':_0x35f8db,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x613edf,'mailAccounts':_0x117c8c[_0xc66aeb(0x228e)][_0xc66aeb(0x2214)],'license':_0x117c8c[_0xc66aeb(0x8a5)],'setting':_0x117c8c['setting'],'crudPermissions':_0x117c8c['crudPermissions']}});}function _0x107f9b(_0xb00c3a){const _0x100729=_0x43ce05;if(_0xb00c3a[_0x100729(0xdc1)])return _0x261bad['error']({'title':_0x100729(0xae9),'msg':_0x100729(0x433)});_0x1a177d[_0x100729(0x131c)]['delete']({'id':_0xb00c3a['id']})[_0x100729(0x1d77)]['then'](function(){const _0x2e3f62=_0x100729;_0x39641b()[_0x2e3f62(0x152a)](_0x117c8c['mailAccounts'][_0x2e3f62(0x2214)],{'id':_0xb00c3a['id']}),_0x117c8c[_0x2e3f62(0x228e)][_0x2e3f62(0x184d)]-=0x1,!_0x117c8c[_0x2e3f62(0x228e)][_0x2e3f62(0x2214)][_0x2e3f62(0xfd0)]&&_0x117c8c[_0x2e3f62(0xe96)](),_0x261bad[_0x2e3f62(0x829)]({'title':_0x39641b()[_0x2e3f62(0xa75)](_0x2e3f62(0x13ec))+'\x20deleted!','msg':_0xb00c3a['name']?_0xb00c3a[_0x2e3f62(0x16b6)]+_0x2e3f62(0x3f5):''});})[_0x100729(0x1c4)](function(_0x52d6a2){const _0x408278=_0x100729;if(_0x52d6a2[_0x408278(0x25c)]&&_0x52d6a2[_0x408278(0x25c)][_0x408278(0x1a7c)]&&_0x52d6a2[_0x408278(0x25c)]['errors'][_0x408278(0xfd0)]){_0x117c8c[_0x408278(0x1a7c)]=_0x52d6a2['data'][_0x408278(0x1a7c)]||[{'message':_0x52d6a2[_0x408278(0x147f)](),'type':_0x408278(0x396)}];for(let _0x2b65a3=0x0;_0x2b65a3<_0x52d6a2[_0x408278(0x25c)][_0x408278(0x1a7c)][_0x408278(0xfd0)];_0x2b65a3++){_0x261bad[_0x408278(0x218e)]({'title':_0x52d6a2[_0x408278(0x25c)]['errors'][_0x2b65a3][_0x408278(0x66a)],'msg':_0x52d6a2[_0x408278(0x25c)][_0x408278(0x1a7c)][_0x2b65a3][_0x408278(0x155e)]});}}else _0x261bad[_0x408278(0x218e)]({'title':_0x52d6a2['status']?'API:'+_0x52d6a2['status']+_0x408278(0x1657)+_0x52d6a2[_0x408278(0xc22)]:_0x408278(0x396),'msg':_0x52d6a2[_0x408278(0x25c)]?JSON['stringify'](_0x52d6a2[_0x408278(0x25c)][_0x408278(0x155e)]):_0x52d6a2['message']||_0x52d6a2['toString']()});});}function _0x22c848(){const _0x1166a7=_0x43ce05,_0x5a9f1f=angular[_0x1166a7(0x17fe)](_0x117c8c[_0x1166a7(0x24bc)]);return _0x117c8c[_0x1166a7(0x24bc)]=[],_0x5a9f1f;}function _0x18d4df(_0x13c7af){const _0x4417fc=_0x43ce05,_0x532b01=_0x1908c7[_0x4417fc(0x1551)]()[_0x4417fc(0x1386)](_0x4417fc(0x1bb4))['htmlContent'](_0x4417fc(0x204d)+_0x117c8c[_0x4417fc(0x24bc)]['length']+_0x4417fc(0x1d6c)+'\x20will\x20be\x20deleted.')[_0x4417fc(0x15ad)]('delete\x20MailAccounts')[_0x4417fc(0x728)](_0x13c7af)['ok']('OK')[_0x4417fc(0x696)](_0x4417fc(0x24ba));_0x1908c7[_0x4417fc(0xe27)](_0x532b01)[_0x4417fc(0x1cb0)](function(){const _0x3e4639=_0x4417fc;_0x117c8c[_0x3e4639(0x24bc)][_0x3e4639(0xf90)](function(_0x228de0){_0x107f9b(_0x228de0);}),_0x117c8c[_0x3e4639(0x24bc)]=[];});}function _0x3b5965(){const _0x4ca96e=_0x43ce05;_0x117c8c[_0x4ca96e(0x24bc)]=[];}function _0x325c4c(){const _0x4e3610=_0x43ce05;_0x117c8c[_0x4e3610(0x24bc)]=_0x117c8c[_0x4e3610(0x228e)]['rows'];}}const _0x41f4c8=_0x2f7d4a;;_0x3daeb7[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x25a6),'mailQueue',_0x5537c6(0x142b),'Auth','license',_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x3daeb7(_0x1bb371,_0x2d6d37,_0x15ea2c,_0x4b0be9,_0x1647e9,_0x5e21a7,_0x5400f0,_0x376bb2,_0x25a48b,_0x222996,_0x476310,_0x134628,_0x19ec9f,_0x570f31){const _0x1a968b=_0x5537c6,_0xa4b950=this;_0xa4b950[_0x1a968b(0xe76)]=_0x476310[_0x1a968b(0x21e8)](),_0xa4b950['errors']=[],_0xa4b950['setting']=_0x19ec9f,_0xa4b950[_0x1a968b(0x8a5)]=_0x134628,_0xa4b950[_0x1a968b(0x1b1a)]=_0x570f31,_0xa4b950['hasModulePermissions']={},_0xa4b950[_0x1a968b(0x1b0c)]=_0xa4b950[_0x1a968b(0x9ca)]&&_0xa4b950[_0x1a968b(0x9ca)][_0x1a968b(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xa4b950['title']='MAIL.EDIT_MAILQUEUE',_0xa4b950[_0x1a968b(0x16e1)]=angular[_0x1a968b(0x17fe)](_0x25a48b),_0xa4b950['mailQueues']=_0x376bb2,_0xa4b950[_0x1a968b(0x10a0)]=![];!_0xa4b950['mailQueue']&&(_0xa4b950[_0x1a968b(0x16e1)]={'strategy':_0x1a968b(0x19bf),'timeout':0xa},_0xa4b950[_0x1a968b(0x1386)]=_0x1a968b(0x2930),_0xa4b950[_0x1a968b(0x10a0)]=!![]);_0xa4b950[_0x1a968b(0x229e)]=_0x36b19f,_0xa4b950[_0x1a968b(0x2090)]=_0x37fe21,_0xa4b950['deleteMailQueue']=_0x9015f0,_0xa4b950[_0x1a968b(0x2c4)]=_0x5a5e0a,_0xa4b950['closeDialog']=_0x2760c6;function _0x36b19f(){const _0x3bd035=_0x1a968b;_0xa4b950['errors']=[],_0x222996[_0x3bd035(0x16e1)][_0x3bd035(0x1c3f)](_0xa4b950[_0x3bd035(0x16e1)])[_0x3bd035(0x1d77)][_0x3bd035(0x1cb0)](function(_0x4e1f54){const _0x32f642=_0x3bd035;_0xa4b950[_0x32f642(0x25a6)][_0x32f642(0xf63)](_0x4e1f54[_0x32f642(0x19b2)]()),_0x5400f0[_0x32f642(0x829)]({'title':'MailQueue\x20properly\x20created','msg':_0xa4b950[_0x32f642(0x16e1)]['name']?_0xa4b950[_0x32f642(0x16e1)][_0x32f642(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x2760c6(_0x4e1f54);})['catch'](function(_0x12db20){const _0xd4d31=_0x3bd035;if(_0x12db20[_0xd4d31(0x25c)]&&_0x12db20[_0xd4d31(0x25c)][_0xd4d31(0x1a7c)]&&_0x12db20[_0xd4d31(0x25c)][_0xd4d31(0x1a7c)]['length']){_0xa4b950['errors']=_0x12db20[_0xd4d31(0x25c)][_0xd4d31(0x1a7c)]||[{'message':_0x12db20[_0xd4d31(0x147f)](),'type':_0xd4d31(0x14b5)}];for(let _0x412427=0x0;_0x412427<_0x12db20[_0xd4d31(0x25c)]['errors'][_0xd4d31(0xfd0)];_0x412427+=0x1){_0x5400f0[_0xd4d31(0x218e)]({'title':_0x12db20[_0xd4d31(0x25c)][_0xd4d31(0x1a7c)][_0x412427][_0xd4d31(0x66a)],'msg':_0x12db20[_0xd4d31(0x25c)][_0xd4d31(0x1a7c)][_0x412427][_0xd4d31(0x155e)]});}}else _0x5400f0[_0xd4d31(0x218e)]({'title':_0x12db20['status']?_0xd4d31(0xeb9)+_0x12db20[_0xd4d31(0x291)]+_0xd4d31(0x1657)+_0x12db20['statusText']:_0xd4d31(0x14b5),'msg':_0x12db20[_0xd4d31(0x25c)]?JSON[_0xd4d31(0x2701)](_0x12db20[_0xd4d31(0x25c)][_0xd4d31(0x155e)]):_0x12db20[_0xd4d31(0x147f)]()});});}function _0x37fe21(){const _0x5e5048=_0x1a968b;_0xa4b950[_0x5e5048(0x1a7c)]=[],_0x222996['mailQueue'][_0x5e5048(0x687)]({'id':_0xa4b950[_0x5e5048(0x16e1)]['id']},_0xa4b950[_0x5e5048(0x16e1)])['$promise'][_0x5e5048(0x1cb0)](function(_0xa53a6e){const _0x3e8bd1=_0x5e5048,_0x1863f5=_0x39641b()[_0x3e8bd1(0x13b4)](_0xa4b950[_0x3e8bd1(0x25a6)],{'id':_0xa53a6e['id']});_0x1863f5&&_0x39641b()['merge'](_0x1863f5,_0x39641b()[_0x3e8bd1(0x169b)](_0xa53a6e[_0x3e8bd1(0x19b2)](),_0x39641b()['keys'](_0x1863f5))),_0x5400f0[_0x3e8bd1(0x829)]({'title':'MailQueue\x20properly\x20saved!','msg':_0xa4b950[_0x3e8bd1(0x16e1)][_0x3e8bd1(0x16b6)]?_0xa4b950[_0x3e8bd1(0x16e1)][_0x3e8bd1(0x16b6)]+_0x3e8bd1(0xedb):''}),_0x2760c6(_0xa53a6e);})['catch'](function(_0x369a4f){const _0xa939f=_0x5e5048;if(_0x369a4f[_0xa939f(0x25c)]&&_0x369a4f[_0xa939f(0x25c)][_0xa939f(0x1a7c)]&&_0x369a4f[_0xa939f(0x25c)]['errors'][_0xa939f(0xfd0)]){_0xa4b950[_0xa939f(0x1a7c)]=_0x369a4f[_0xa939f(0x25c)][_0xa939f(0x1a7c)]||[{'message':_0x369a4f[_0xa939f(0x147f)](),'type':_0xa939f(0x18db)}];for(let _0x42c915=0x0;_0x42c915<_0x369a4f[_0xa939f(0x25c)]['errors'][_0xa939f(0xfd0)];_0x42c915++){_0x5400f0[_0xa939f(0x218e)]({'title':_0x369a4f[_0xa939f(0x25c)][_0xa939f(0x1a7c)][_0x42c915][_0xa939f(0x66a)],'msg':_0x369a4f[_0xa939f(0x25c)]['errors'][_0x42c915][_0xa939f(0x155e)]});}}else _0x5400f0[_0xa939f(0x218e)]({'title':_0x369a4f[_0xa939f(0x291)]?_0xa939f(0xeb9)+_0x369a4f[_0xa939f(0x291)]+_0xa939f(0x1657)+_0x369a4f[_0xa939f(0xc22)]:_0xa939f(0x18db),'msg':_0x369a4f[_0xa939f(0x25c)]?JSON['stringify'](_0x369a4f['data']['message']):_0x369a4f[_0xa939f(0x147f)]()});});}function _0x9015f0(_0x568e64){const _0x228517=_0x1a968b;_0xa4b950['errors']=[];const _0x5be1b6=_0x4b0be9['confirm']()[_0x228517(0x1386)](_0x228517(0x1a2e))[_0x228517(0x862)](_0x228517(0x2384))[_0x228517(0x15ad)](_0x228517(0x2581))['ok'](_0x228517(0x2594))['cancel']('Cancel')[_0x228517(0x728)](_0x568e64);_0x4b0be9[_0x228517(0xe27)](_0x5be1b6)[_0x228517(0x1cb0)](function(){const _0xd46747=_0x228517;_0x222996[_0xd46747(0x16e1)][_0xd46747(0x111d)]({'id':_0xa4b950['mailQueue']['id']})[_0xd46747(0x1d77)][_0xd46747(0x1cb0)](function(){const _0x14063a=_0xd46747;_0x39641b()[_0x14063a(0x152a)](_0xa4b950[_0x14063a(0x25a6)],{'id':_0xa4b950['mailQueue']['id']}),_0x5400f0['success']({'title':_0x14063a(0x4b8),'msg':(_0xa4b950[_0x14063a(0x16e1)][_0x14063a(0x16b6)]||_0x14063a(0x16e1))+'\x20has\x20been\x20deleted!'}),_0x2760c6(_0xa4b950['mailQueue']);})[_0xd46747(0x1c4)](function(_0x4a809c){const _0x57adcd=_0xd46747;if(_0x4a809c[_0x57adcd(0x25c)]&&_0x4a809c[_0x57adcd(0x25c)][_0x57adcd(0x1a7c)]&&_0x4a809c[_0x57adcd(0x25c)][_0x57adcd(0x1a7c)][_0x57adcd(0xfd0)]){_0xa4b950[_0x57adcd(0x1a7c)]=_0x4a809c[_0x57adcd(0x25c)]['errors']||[{'message':_0x4a809c[_0x57adcd(0x147f)](),'type':_0x57adcd(0x1cf9)}];for(let _0x534af8=0x0;_0x534af8<_0x4a809c[_0x57adcd(0x25c)][_0x57adcd(0x1a7c)][_0x57adcd(0xfd0)];_0x534af8++){_0x5400f0[_0x57adcd(0x218e)]({'title':_0x4a809c[_0x57adcd(0x25c)][_0x57adcd(0x1a7c)][_0x534af8][_0x57adcd(0x66a)],'msg':_0x4a809c[_0x57adcd(0x25c)][_0x57adcd(0x1a7c)][_0x534af8][_0x57adcd(0x155e)]});}}else _0x5400f0[_0x57adcd(0x218e)]({'title':_0x4a809c[_0x57adcd(0x291)]?_0x57adcd(0xeb9)+_0x4a809c[_0x57adcd(0x291)]+'\x20-\x20'+_0x4a809c['statusText']:_0x57adcd(0x1cf9),'msg':_0x4a809c['data']?JSON[_0x57adcd(0x2701)](_0x4a809c[_0x57adcd(0x25c)][_0x57adcd(0x155e)]):_0x4a809c[_0x57adcd(0x155e)]||_0x4a809c[_0x57adcd(0x147f)]()});});},function(){});}function _0x5a5e0a(_0x41a2e2){return _0x41a2e2===null?undefined:new Date(_0x41a2e2);}function _0x2760c6(_0xb57125){const _0x974445=_0x1a968b;_0x4b0be9[_0x974445(0x1426)](_0xb57125);}}const _0x108e2=_0x3daeb7;;_0xa52dee[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty','api','mailQueue',_0x5537c6(0x25a6),_0x5537c6(0x217b),_0x5537c6(0x1ae),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0xa52dee(_0xae342,_0x82dae6,_0x303fa3,_0x8d0e48,_0x2624bd,_0x4417ae,_0x45a38d,_0x2d1ec9,_0x4fd73e,_0x1b8bbe){const _0xe94c1c=_0x5537c6,_0x56730a=this;_0x56730a[_0xe94c1c(0xe76)]=_0x4fd73e[_0xe94c1c(0x21e8)](),_0x56730a[_0xe94c1c(0x16e1)]=_0x2624bd,_0x56730a['crudPermissions']=_0x1b8bbe,_0x56730a[_0xe94c1c(0x217b)]=_0x45a38d,_0x56730a[_0xe94c1c(0x122f)]=[],_0x56730a['allowedItems']=[],_0x56730a[_0xe94c1c(0x20bb)]=[],_0x56730a[_0xe94c1c(0xbd5)]=[],_0x56730a[_0xe94c1c(0x1456)]=[],_0x56730a[_0xe94c1c(0x50c)]=![],_0x56730a[_0xe94c1c(0x1a34)]=_0x454bb6,_0x56730a['saveAgents']=_0x3bd2e8,_0x56730a[_0xe94c1c(0xda0)]=_0x3d2b44,_0x56730a[_0xe94c1c(0x18c0)]={'readOnly':!_0x56730a[_0xe94c1c(0x1b1a)][_0xe94c1c(0xb3d)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0xe94c1c(0x16b6),'line1':_0xe94c1c(0x1d14),'line2':['name',_0xe94c1c(0xdbd)],'line3':'','labelAll':_0x2d1ec9[_0xe94c1c(0x25cc)]('APP.ALL_AGENTS'),'labelSelected':_0x2d1ec9['instant'](_0xe94c1c(0x1cd5)),'transferCallback':function(){const _0x5ea793=_0xe94c1c,_0x5df8d7=_0x39641b()[_0x5ea793(0x1423)](_0x56730a[_0x5ea793(0x1456)],_0x56730a[_0x5ea793(0x20bb)],'id');_0x56730a['pendingChanges']=_0x39641b()[_0x5ea793(0xce9)](_0x5df8d7)?![]:!![];}};function _0x454bb6(){const _0x5d64d9=_0xe94c1c;return _0x4fd73e['hasRole'](_0x5d64d9(0x1c60))?_0x2cf819()[_0x5d64d9(0x1c4)](function(_0x5aafda){const _0x2378f5=_0x5d64d9;_0x303fa3[_0x2378f5(0x218e)]({'title':_0x5aafda[_0x2378f5(0x291)]?'API:'+_0x5aafda[_0x2378f5(0x291)]+_0x2378f5(0x1657)+_0x5aafda[_0x2378f5(0xc22)]:'SYSTEM:GET_AGENTS','msg':_0x5aafda['status']?JSON['stringify'](_0x5aafda[_0x2378f5(0x25c)]):_0x5aafda[_0x2378f5(0x147f)]()});}):_0x59a739()['then'](function(_0x5bd24b){const _0x23bd4d=_0x5d64d9;return _0x56730a[_0x23bd4d(0x1f74)]=_0x5bd24b,_0x2cf819();})[_0x5d64d9(0x1c4)](function(_0x3871ed){const _0x3a4f1e=_0x5d64d9;_0x303fa3[_0x3a4f1e(0x218e)]({'title':_0x3871ed[_0x3a4f1e(0x291)]?_0x3a4f1e(0xeb9)+_0x3871ed[_0x3a4f1e(0x291)]+'\x20-\x20'+_0x3871ed['statusText']:_0x3a4f1e(0x799),'msg':_0x3871ed[_0x3a4f1e(0x291)]?JSON['stringify'](_0x3871ed['data']):_0x3871ed[_0x3a4f1e(0x147f)]()});});}function _0x59a739(){return _0x82dae6(function(_0x50ae4f,_0x7f0b88){const _0x10250e=a0_0x5cbd;_0x8d0e48[_0x10250e(0x2199)]['get']({'userProfileId':_0x56730a[_0x10250e(0xe76)][_0x10250e(0x13c1)],'name':_0x10250e(0x2536)})[_0x10250e(0x1d77)][_0x10250e(0x1cb0)](function(_0xa0689a){const _0x352c5b=_0x10250e,_0x4f70ce=_0xa0689a&&_0xa0689a[_0x352c5b(0x2214)]?_0xa0689a[_0x352c5b(0x2214)][0x0]:null;_0x50ae4f(_0x4f70ce);})['catch'](function(_0x423083){_0x7f0b88(_0x423083);});});}function _0x2cf819(){return _0x82dae6(function(_0x473a8d,_0x4df02d){const _0x4bd632=a0_0x5cbd;return _0x147d30()['then'](function(_0x3f7421){const _0x301d64=a0_0x5cbd;return _0x56730a['items']=_0x3f7421[_0x301d64(0x2214)]?_0x3f7421[_0x301d64(0x2214)]:[],_0x4fd73e['hasRole']('admin')?_0x3f7421:_0x56730a[_0x301d64(0x1f74)]?_0x56730a['section'][_0x301d64(0x12f4)]?_0x3f7421:_0x215ebf():null;})[_0x4bd632(0x1cb0)](function(_0x4e13a0){const _0x2f2e8c=_0x4bd632,_0x12a2f4=_0x4e13a0&&_0x4e13a0[_0x2f2e8c(0x2214)]?_0x4e13a0[_0x2f2e8c(0x2214)]:[];return _0x56730a[_0x2f2e8c(0x1372)]=_0x39641b()[_0x2f2e8c(0x1de2)](_0x12a2f4,function(_0x236314){const _0x27aa4c=_0x2f2e8c;return _0x39641b()[_0x27aa4c(0x13b4)](_0x56730a[_0x27aa4c(0x122f)],{'id':_0x4fd73e[_0x27aa4c(0x22b6)](_0x27aa4c(0x1c60))||_0x56730a['section'][_0x27aa4c(0x12f4)]?_0x236314['id']:_0x236314['resourceId']});}),_0x56730a[_0x2f2e8c(0xbd5)]=angular[_0x2f2e8c(0x17fe)](_0x56730a[_0x2f2e8c(0x1372)]),_0x56730a[_0x2f2e8c(0x122f)]['forEach'](function(_0x5916cc){const _0x3aec15=_0x2f2e8c,_0x3d5355=_0x39641b()[_0x3aec15(0x13b4)](_0x56730a['allowedItems'],{'id':_0x5916cc['id']});_0x4fd73e[_0x3aec15(0x22b6)](_0x3aec15(0x1c60))?_0x5916cc['isValid']=!![]:_0x5916cc['isValid']=typeof _0x3d5355!==_0x3aec15(0x16b5)?!![]:![];}),_0x21991b();})[_0x4bd632(0x1cb0)](function(_0x5b7f61){const _0x5a7b8f=_0x4bd632,_0x46946e=_0x5b7f61&&_0x5b7f61[_0x5a7b8f(0x2214)]?_0x5b7f61[_0x5a7b8f(0x2214)]:[];_0x56730a[_0x5a7b8f(0x20bb)]=_0x39641b()[_0x5a7b8f(0x1de2)](_0x46946e,function(_0xafd6e0){const _0x3fa097=_0x5a7b8f,_0x1f5fda=_0x39641b()[_0x3fa097(0x13b4)](_0x56730a[_0x3fa097(0x122f)],{'id':_0xafd6e0['id']});return _0x1f5fda[_0x3fa097(0x1cbc)]=_0xafd6e0[_0x3fa097(0x185a)]?'penalty\x20'+_0xafd6e0[_0x3fa097(0x185a)][_0x3fa097(0x1cbc)]:'',_0x1f5fda[_0x3fa097(0xdbd)]=typeof _0xafd6e0[_0x3fa097(0xdbd)]!==_0x3fa097(0x16b5)?'<'+_0xafd6e0[_0x3fa097(0xdbd)]+'>':'',_0x1f5fda;}),_0x56730a[_0x5a7b8f(0x1456)]=angular[_0x5a7b8f(0x17fe)](_0x56730a[_0x5a7b8f(0x20bb)]),_0x56730a[_0x5a7b8f(0x18c0)][_0x5a7b8f(0x20bb)]=_0x56730a[_0x5a7b8f(0x20bb)],_0x56730a['dualMultiselectOptions'][_0x5a7b8f(0x122f)]=_0x39641b()[_0x5a7b8f(0x2128)](_0x56730a['allowedItems'],_0x56730a[_0x5a7b8f(0x18c0)][_0x5a7b8f(0x20bb)],'id'),_0x473a8d();})[_0x4bd632(0x1c4)](function(_0x3fd640){_0x4df02d(_0x3fd640);});});}function _0x215ebf(){return _0x82dae6(function(_0xfba772,_0x558eee){const _0xf5f459=a0_0x5cbd;return _0x8d0e48[_0xf5f459(0x1198)]['get']({'sectionId':_0x56730a[_0xf5f459(0x1f74)]['id'],'nolimit':!![]})[_0xf5f459(0x1d77)][_0xf5f459(0x1cb0)](function(_0x660b0a){_0xfba772(_0x660b0a);})['catch'](function(_0x274dea){_0x558eee(_0x274dea);});});}function _0x21991b(){return _0x82dae6(function(_0x5c8745,_0x46da63){const _0x3cf71b=a0_0x5cbd;return _0x8d0e48['mailQueue'][_0x3cf71b(0x2348)]({'id':_0x56730a['mailQueue']['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x3cf71b(0x1eff)})[_0x3cf71b(0x1d77)][_0x3cf71b(0x1cb0)](function(_0x43fa76){_0x5c8745(_0x43fa76);})[_0x3cf71b(0x1c4)](function(_0x5dd2a0){_0x46da63(_0x5dd2a0);});});}function _0x147d30(){return _0x82dae6(function(_0x2c03fe,_0x596380){const _0x57cb19=a0_0x5cbd;return _0x8d0e48[_0x57cb19(0xebe)][_0x57cb19(0xbf7)]({'fields':_0x57cb19(0x251e),'nolimit':!![],'role':_0x57cb19(0x1eff)})[_0x57cb19(0x1d77)][_0x57cb19(0x1cb0)](function(_0x25e092){_0x2c03fe(_0x25e092);})[_0x57cb19(0x1c4)](function(_0xf7e3af){_0x596380(_0xf7e3af);});});}function _0x4fb343(_0x4cb732){return _0x82dae6(function(_0x21dc31,_0x1301ef){const _0x20da6b=a0_0x5cbd;_0x39641b()[_0x20da6b(0xce9)](_0x4cb732)?_0x21dc31():_0x8d0e48[_0x20da6b(0x16e1)][_0x20da6b(0x2057)]({'id':_0x56730a[_0x20da6b(0x16e1)]['id'],'ids':_0x39641b()[_0x20da6b(0x1de2)](_0x4cb732,'id')})[_0x20da6b(0x1d77)][_0x20da6b(0x1cb0)](function(){_0x21dc31();})[_0x20da6b(0x1c4)](function(_0x5b8c4c){_0x1301ef(_0x5b8c4c);});});}function _0x10e9b3(_0x3fbb35){return _0x82dae6(function(_0x364f49,_0x273415){const _0x5e7a19=a0_0x5cbd;_0x39641b()['isEmpty'](_0x3fbb35)?_0x364f49():_0x8d0e48[_0x5e7a19(0x16e1)][_0x5e7a19(0x223f)]({'id':_0x56730a[_0x5e7a19(0x16e1)]['id'],'ids':_0x39641b()[_0x5e7a19(0x1de2)](_0x3fbb35,'id')})['$promise']['then'](function(){_0x364f49();})[_0x5e7a19(0x1c4)](function(_0x57a06c){_0x273415(_0x57a06c);});});}function _0x3bd2e8(){const _0x1cc373=_0xe94c1c,_0x4cef25=_0x39641b()[_0x1cc373(0x2128)](_0x56730a[_0x1cc373(0x1456)],_0x56730a[_0x1cc373(0x20bb)],'id'),_0x3e01f0=_0x39641b()[_0x1cc373(0x2128)](_0x56730a[_0x1cc373(0x20bb)],_0x56730a[_0x1cc373(0x1456)],'id');return _0x10e9b3(_0x4cef25)['then'](function(){return _0x4fb343(_0x3e01f0);})[_0x1cc373(0x1cb0)](function(){const _0x30d55e=_0x1cc373;_0x56730a['pendingChanges']=![],_0x56730a[_0x30d55e(0xbd5)]=angular['copy'](_0x56730a['allowedItems']),_0x56730a[_0x30d55e(0x1456)]=angular[_0x30d55e(0x17fe)](_0x56730a[_0x30d55e(0x20bb)]),_0x303fa3[_0x30d55e(0x829)]({'title':_0x30d55e(0x201),'msg':_0x30d55e(0x976)});})[_0x1cc373(0x1c4)](function(_0x18e176){const _0x355f18=_0x1cc373;_0x303fa3['error']({'title':_0x18e176[_0x355f18(0x291)]?_0x355f18(0xeb9)+_0x18e176['status']+_0x355f18(0x1657)+_0x18e176[_0x355f18(0xc22)]:_0x355f18(0x1221),'msg':_0x18e176['status']?JSON[_0x355f18(0x2701)](_0x18e176['data']):_0x18e176['toString']()});});}function _0x3d2b44(){const _0x5e83e6=_0xe94c1c;_0xae342[_0x5e83e6(0x1426)]();}}const _0x1e8611=_0xa52dee;;_0x55f531['$inject']=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x16e1),_0x5537c6(0x1ae),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x55f531(_0x5d3b4d,_0x159639,_0x294905,_0x1ae45f,_0x4ac1d3,_0x19b002,_0x51d014,_0x110747){const _0x5f28a2=_0x5537c6,_0x3522ce=this;_0x3522ce['currentUser']=_0x51d014[_0x5f28a2(0x21e8)](),_0x3522ce[_0x5f28a2(0x16e1)]=_0x4ac1d3,_0x3522ce['crudPermissions']=_0x110747,_0x3522ce[_0x5f28a2(0x122f)]=[],_0x3522ce[_0x5f28a2(0x1372)]=[],_0x3522ce[_0x5f28a2(0x20bb)]=[],_0x3522ce[_0x5f28a2(0xbd5)]=[],_0x3522ce['startingSelectedItems']=[],_0x3522ce[_0x5f28a2(0x50c)]=![],_0x3522ce[_0x5f28a2(0x18c0)]={'readOnly':!_0x3522ce[_0x5f28a2(0x1b1a)][_0x5f28a2(0xb3d)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5f28a2(0x16b6),'line1':_0x5f28a2(0x16b6),'line2':'','line3':'','labelAll':_0x19b002[_0x5f28a2(0x25cc)]('APP.ALL_TEAMS'),'labelSelected':_0x19b002[_0x5f28a2(0x25cc)](_0x5f28a2(0x1b5f)),'transferCallback':function(){const _0x4d7980=_0x5f28a2,_0x3f97a6=_0x39641b()[_0x4d7980(0x1423)](_0x3522ce[_0x4d7980(0x1456)],_0x3522ce[_0x4d7980(0x20bb)],'id');_0x3522ce['pendingChanges']=_0x39641b()[_0x4d7980(0xce9)](_0x3f97a6)?![]:!![];}},_0x3522ce[_0x5f28a2(0x1a34)]=_0xe4983d,_0x3522ce[_0x5f28a2(0x1c56)]=_0x1c4ccb,_0x3522ce[_0x5f28a2(0xda0)]=_0x16f0bc;function _0xe4983d(){const _0x2da4a8=_0x5f28a2;return _0x51d014[_0x2da4a8(0x22b6)](_0x2da4a8(0x1c60))?_0x5f1e52()['catch'](function(_0x56e86c){const _0x594283=_0x2da4a8;_0x294905[_0x594283(0x218e)]({'title':_0x56e86c['status']?_0x594283(0xeb9)+_0x56e86c['status']+_0x594283(0x1657)+_0x56e86c[_0x594283(0xc22)]:_0x594283(0x2206),'msg':_0x56e86c[_0x594283(0x291)]?JSON[_0x594283(0x2701)](_0x56e86c[_0x594283(0x25c)]):_0x56e86c['toString']()});}):_0x2d60f0()[_0x2da4a8(0x1cb0)](function(_0x377a82){return _0x3522ce['section']=_0x377a82,_0x5f1e52();})[_0x2da4a8(0x1c4)](function(_0x1e250b){const _0x36babe=_0x2da4a8;_0x294905[_0x36babe(0x218e)]({'title':_0x1e250b[_0x36babe(0x291)]?_0x36babe(0xeb9)+_0x1e250b[_0x36babe(0x291)]+'\x20-\x20'+_0x1e250b[_0x36babe(0xc22)]:_0x36babe(0x2206),'msg':_0x1e250b[_0x36babe(0x291)]?JSON['stringify'](_0x1e250b[_0x36babe(0x25c)]):_0x1e250b[_0x36babe(0x147f)]()});});}function _0x2d60f0(){return _0x159639(function(_0x1c34c5,_0x3f844f){const _0x52f3a2=a0_0x5cbd;_0x1ae45f[_0x52f3a2(0x2199)][_0x52f3a2(0xbf7)]({'userProfileId':_0x3522ce[_0x52f3a2(0xe76)][_0x52f3a2(0x13c1)],'name':_0x52f3a2(0x492)})[_0x52f3a2(0x1d77)]['then'](function(_0x19c159){const _0x4f691e=_0x52f3a2,_0x3a4cee=_0x19c159&&_0x19c159[_0x4f691e(0x2214)]?_0x19c159[_0x4f691e(0x2214)][0x0]:null;_0x1c34c5(_0x3a4cee);})[_0x52f3a2(0x1c4)](function(_0x4b040c){_0x3f844f(_0x4b040c);});});}function _0x5f1e52(){return _0x159639(function(_0xd4f87d,_0x10ea48){const _0x19649e=a0_0x5cbd;return _0x478a46()[_0x19649e(0x1cb0)](function(_0x35cea1){const _0x370349=_0x19649e;return _0x3522ce[_0x370349(0x122f)]=_0x35cea1['rows']?_0x35cea1[_0x370349(0x2214)]:[],_0x51d014[_0x370349(0x22b6)](_0x370349(0x1c60))?_0x35cea1:_0x3522ce[_0x370349(0x1f74)]?_0x3522ce[_0x370349(0x1f74)]['autoAssociation']?_0x35cea1:_0x37b46d():null;})[_0x19649e(0x1cb0)](function(_0x65dffc){const _0x3ac639=_0x19649e,_0x2fe7ed=_0x65dffc&&_0x65dffc[_0x3ac639(0x2214)]?_0x65dffc['rows']:[];return _0x3522ce[_0x3ac639(0x1372)]=_0x39641b()['map'](_0x2fe7ed,function(_0x466110){const _0x80a28f=_0x3ac639;return _0x39641b()[_0x80a28f(0x13b4)](_0x3522ce[_0x80a28f(0x122f)],{'id':_0x51d014[_0x80a28f(0x22b6)](_0x80a28f(0x1c60))||_0x3522ce['section'][_0x80a28f(0x12f4)]?_0x466110['id']:_0x466110[_0x80a28f(0x2982)]});}),_0x3522ce[_0x3ac639(0x122f)][_0x3ac639(0xf90)](function(_0x200e46){const _0x27b84e=_0x3ac639,_0x3e9ad4=_0x39641b()['find'](_0x3522ce[_0x27b84e(0x1372)],{'id':_0x200e46['id']});_0x51d014[_0x27b84e(0x22b6)]('admin')?_0x200e46[_0x27b84e(0x1a4f)]=!![]:_0x200e46[_0x27b84e(0x1a4f)]=typeof _0x3e9ad4!=='undefined'?!![]:![];}),_0x3893d5();})[_0x19649e(0x1cb0)](function(_0xf2a6df){const _0x448981=_0x19649e,_0x401e7f=_0xf2a6df&&_0xf2a6df[_0x448981(0x2214)]?_0xf2a6df['rows']:[];_0x3522ce[_0x448981(0x20bb)]=_0x39641b()['map'](_0x401e7f,function(_0x5e7f06){const _0x3c7964=_0x448981;return _0x39641b()[_0x3c7964(0x13b4)](_0x3522ce[_0x3c7964(0x122f)],{'id':_0x5e7f06['id']});}),_0x3522ce['startingSelectedItems']=angular[_0x448981(0x17fe)](_0x3522ce[_0x448981(0x20bb)]),_0x3522ce['dualMultiselectOptions'][_0x448981(0x20bb)]=_0x3522ce['selectedItems'],_0x3522ce['dualMultiselectOptions']['items']=_0x39641b()[_0x448981(0x2128)](_0x3522ce['allowedItems'],_0x3522ce['dualMultiselectOptions'][_0x448981(0x20bb)],'id'),_0xd4f87d();})['catch'](function(_0x20073c){_0x10ea48(_0x20073c);});});}function _0x37b46d(){return _0x159639(function(_0x20f06a,_0x5a5d95){const _0x11fded=a0_0x5cbd;return _0x1ae45f[_0x11fded(0x1198)]['get']({'sectionId':_0x3522ce[_0x11fded(0x1f74)]['id'],'nolimit':!![]})[_0x11fded(0x1d77)]['then'](function(_0x2597dd){_0x20f06a(_0x2597dd);})[_0x11fded(0x1c4)](function(_0x3236b7){_0x5a5d95(_0x3236b7);});});}function _0x3893d5(){return _0x159639(function(_0x38a4b0,_0x41f6d5){const _0x5c864d=a0_0x5cbd;return _0x1ae45f[_0x5c864d(0x16e1)]['getTeams']({'id':_0x3522ce[_0x5c864d(0x16e1)]['id'],'fields':_0x5c864d(0x43c),'nolimit':!![]})[_0x5c864d(0x1d77)][_0x5c864d(0x1cb0)](function(_0x5d36db){_0x38a4b0(_0x5d36db);})[_0x5c864d(0x1c4)](function(_0x484462){_0x41f6d5(_0x484462);});});}function _0x478a46(){return _0x159639(function(_0x8bc297,_0x223340){const _0xe9ff84=a0_0x5cbd;return _0x1ae45f['team'][_0xe9ff84(0xbf7)]({'fields':'id,name','nolimit':!![]})[_0xe9ff84(0x1d77)][_0xe9ff84(0x1cb0)](function(_0x32611f){_0x8bc297(_0x32611f);})[_0xe9ff84(0x1c4)](function(_0x8f6a57){_0x223340(_0x8f6a57);});});}function _0x2d7241(_0x4e1494){return _0x159639(function(_0x494a93,_0x407efb){const _0x2e7a20=a0_0x5cbd;_0x39641b()[_0x2e7a20(0xce9)](_0x4e1494)?_0x494a93():_0x1ae45f[_0x2e7a20(0x16e1)]['addTeams']({'id':_0x3522ce['mailQueue']['id'],'ids':_0x39641b()[_0x2e7a20(0x1de2)](_0x4e1494,'id')})[_0x2e7a20(0x1d77)][_0x2e7a20(0x1cb0)](function(){_0x494a93();})['catch'](function(_0x5048ea){_0x407efb(_0x5048ea);});});}function _0xc2ee64(_0x5e19d8){return _0x159639(function(_0x26d3fc,_0x48e973){const _0x45e6c4=a0_0x5cbd;_0x39641b()[_0x45e6c4(0xce9)](_0x5e19d8)?_0x26d3fc():_0x1ae45f[_0x45e6c4(0x16e1)][_0x45e6c4(0xfcc)]({'id':_0x3522ce[_0x45e6c4(0x16e1)]['id'],'ids':_0x39641b()[_0x45e6c4(0x1de2)](_0x5e19d8,'id')})[_0x45e6c4(0x1d77)][_0x45e6c4(0x1cb0)](function(){_0x26d3fc();})[_0x45e6c4(0x1c4)](function(_0x3da567){_0x48e973(_0x3da567);});});}function _0x1c4ccb(){const _0x23d5c=_0x5f28a2,_0xc1aa00=_0x39641b()['differenceBy'](_0x3522ce[_0x23d5c(0x1456)],_0x3522ce[_0x23d5c(0x20bb)],'id'),_0xecec58=_0x39641b()[_0x23d5c(0x2128)](_0x3522ce['selectedItems'],_0x3522ce[_0x23d5c(0x1456)],'id');return _0xc2ee64(_0xc1aa00)['then'](function(){return _0x2d7241(_0xecec58);})['then'](function(){const _0x2d5357=_0x23d5c;_0x3522ce['pendingChanges']=![],_0x3522ce[_0x2d5357(0xbd5)]=angular[_0x2d5357(0x17fe)](_0x3522ce[_0x2d5357(0x1372)]),_0x3522ce['startingSelectedItems']=angular[_0x2d5357(0x17fe)](_0x3522ce['selectedItems']),_0x294905[_0x2d5357(0x829)]({'title':_0x2d5357(0x201),'msg':_0x2d5357(0xc72)});})[_0x23d5c(0x1c4)](function(_0x57d9a0){const _0x1bc3e0=_0x23d5c;_0x294905['error']({'title':_0x57d9a0[_0x1bc3e0(0x291)]?_0x1bc3e0(0xeb9)+_0x57d9a0[_0x1bc3e0(0x291)]+_0x1bc3e0(0x1657)+_0x57d9a0[_0x1bc3e0(0xc22)]:_0x1bc3e0(0x1221),'msg':_0x57d9a0['status']?JSON[_0x1bc3e0(0x2701)](_0x57d9a0[_0x1bc3e0(0x25c)]):_0x57d9a0[_0x1bc3e0(0x147f)]()});});}function _0x16f0bc(){const _0x4e0ca4=_0x5f28a2;_0x5d3b4d[_0x4e0ca4(0x1426)]();}}const _0x526952=_0x55f531;;const _0x4078b2=_0x5074a3['p']+_0x5537c6(0x1c27);;_0x4b86f4[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),'$location','$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x1ae),_0x5537c6(0x8a5),'setting',_0x5537c6(0x142b),'toasty',_0x5537c6(0x1774),_0x5537c6(0x16e1),_0x5537c6(0x2199)];function _0x4b86f4(_0x41d17a,_0x1a31cb,_0x21334a,_0x3fa839,_0x383df4,_0x3ae387,_0x82fdc6,_0x4ea0d4,_0x3d0d1b,_0x3591ee,_0x4db9cf,_0x2e6a8a){const _0x3ade81=_0x5537c6,_0x31c947=this;_0x31c947['currentUser']=_0x3591ee[_0x3ade81(0x21e8)](),_0x31c947['license']=_0x3ae387,_0x31c947[_0x3ade81(0x9ca)]=_0x82fdc6,_0x31c947[_0x3ade81(0x1b0c)]=_0x31c947[_0x3ade81(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x31c947['location']=_0x1a31cb[_0x3ade81(0x2276)]()+_0x3ade81(0x138b)+_0x1a31cb[_0x3ade81(0x17d8)](),_0x31c947[_0x3ade81(0x16e1)]=_0x4db9cf||_0x41d17a[_0x3ade81(0x1dfe)][_0x3ade81(0x16e1)]||{},_0x31c947[_0x3ade81(0x2199)]=_0x2e6a8a&&_0x2e6a8a[_0x3ade81(0x184d)]==0x1?_0x2e6a8a['rows'][0x0]:null,_0x31c947['crudPermissions']=_0x3591ee[_0x3ade81(0x14ea)](_0x31c947[_0x3ade81(0x2199)]?_0x31c947[_0x3ade81(0x2199)][_0x3ade81(0x1b1a)]:null),_0x31c947['hasModulePermissions']={},_0x31c947[_0x3ade81(0x8ec)]=_0x41d17a[_0x3ade81(0x1dfe)][_0x3ade81(0x291e)]||0x0,_0x31c947[_0x3ade81(0x1d63)]=_0x3c697e,_0x31c947['agentadddialog']=_0x343acd,_0x31c947[_0x3ade81(0x494)]=_0x3d0d1b['info'],_0x31c947['gotoMailQueues']=_0x2e7bc1,_0x31c947[_0x3ade81(0x2090)]=_0x34e2d0;function _0x3c697e(_0x2bc141,_0xe73397){const _0x31386e=_0x3ade81;_0x21334a[_0x31386e(0xe27)]({'controller':'MailQueueteamaddController','controllerAs':'vm','templateUrl':_0x4078b2,'parent':angular[_0x31386e(0x1853)](_0x3fa839['body']),'targetEvent':_0xe73397,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x2bc141,'mailQueues':_0x31c947[_0x31386e(0x25a6)]?_0x31c947[_0x31386e(0x25a6)]['rows']:[],'crudPermissions':_0x31c947['crudPermissions']}});}function _0x343acd(_0x7331bd,_0x296a97){const _0x1c19c8=_0x3ade81;_0x21334a[_0x1c19c8(0xe27)]({'controller':_0x1c19c8(0x24d2),'controllerAs':'vm','templateUrl':_0x1159b3,'parent':angular[_0x1c19c8(0x1853)](_0x3fa839[_0x1c19c8(0x1ed9)]),'targetEvent':_0x296a97,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x7331bd,'mailQueues':_0x31c947['mailQueues']?_0x31c947[_0x1c19c8(0x25a6)][_0x1c19c8(0x2214)]:[],'crudPermissions':_0x31c947['crudPermissions'],'realtime':![]}});}function _0x2e7bc1(){const _0x301aed=_0x3ade81;_0x41d17a['go'](_0x301aed(0x1f17),{},{'reload':'app.mail.mailQueues'});}function _0x34e2d0(){const _0x222347=_0x3ade81;_0x4ea0d4['mailQueue'][_0x222347(0x687)]({'id':_0x31c947[_0x222347(0x16e1)]['id']},_0x31c947[_0x222347(0x16e1)])[_0x222347(0x1d77)]['then'](function(){const _0x45777c=_0x222347;_0x3d0d1b[_0x45777c(0x829)]({'title':'MailQueue\x20updated!','msg':_0x31c947[_0x45777c(0x16e1)][_0x45777c(0x16b6)]?_0x31c947[_0x45777c(0x16e1)][_0x45777c(0x16b6)]+_0x45777c(0x1068):''});})['catch'](function(_0x2b1bfd){const _0x5a82a3=_0x222347;_0x3d0d1b[_0x5a82a3(0x218e)]({'title':_0x2b1bfd['status']?_0x5a82a3(0xeb9)+_0x2b1bfd[_0x5a82a3(0x291)]+_0x5a82a3(0x1657)+_0x2b1bfd['statusText']:_0x5a82a3(0x27ab),'msg':_0x2b1bfd[_0x5a82a3(0x25c)]?JSON[_0x5a82a3(0x2701)](_0x2b1bfd[_0x5a82a3(0x25c)]):_0x2b1bfd[_0x5a82a3(0x147f)]()});});}}const _0x1abecb=_0x4b86f4;;_0x1eb548[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),'$state','$mdSidenav','$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x25a6),'userProfile','userProfileSection',_0x5537c6(0x142b),_0x5537c6(0xde8),'toasty',_0x5537c6(0x1774),'license','setting'];function _0x1eb548(_0x27717a,_0x311b45,_0x17a3cb,_0x1b4dd9,_0x327592,_0x1fa4ab,_0x2d319c,_0x3ea521,_0x301f1d,_0x163e34,_0x42c01c,_0x5c7ef0,_0x621612,_0x54da75,_0x3308eb,_0x392c9e,_0x268b90){const _0x832f17=_0x5537c6,_0x574d46=this;_0x574d46['license']=_0x392c9e,_0x574d46[_0x832f17(0x9ca)]=_0x268b90,_0x574d46[_0x832f17(0xe76)]=_0x3308eb[_0x832f17(0x21e8)](),_0x574d46['mailQueues']=_0x301f1d||{'count':0x0,'rows':[]},_0x574d46['userProfile']=_0x163e34,_0x574d46[_0x832f17(0x2199)]=_0x42c01c&&_0x42c01c[_0x832f17(0x184d)]==0x1?_0x42c01c[_0x832f17(0x2214)][0x0]:null,_0x574d46[_0x832f17(0x1b1a)]=_0x3308eb[_0x832f17(0x14ea)](_0x574d46[_0x832f17(0x2199)]?_0x574d46[_0x832f17(0x2199)][_0x832f17(0x1b1a)]:null),_0x574d46[_0x832f17(0xc83)]=_0x832f17(0x25a6),_0x574d46[_0x832f17(0x1d20)]='',_0x574d46[_0x832f17(0x1cdf)]=null,_0x574d46[_0x832f17(0x18d7)]=[],_0x574d46[_0x832f17(0xae2)]={'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':'-updatedAt','channel':_0x832f17(0x2651),'limit':0xa,'page':0x1},_0x574d46[_0x832f17(0xa7e)]=_0x39641b()[_0x832f17(0x2631)]([{'option':'Beepall','value':'\x27beepall\x27'},{'option':_0x832f17(0x290b),'value':_0x832f17(0x15b5)}],function(_0x379614){const _0x1d19c9=_0x832f17;return _0x39641b()[_0x1d19c9(0x288f)](_0x379614['value'],new RegExp('\x27','g'),'');}),_0x574d46['editstate']=_0x436fb3,_0x574d46[_0x832f17(0x1d63)]=_0x531189,_0x574d46[_0x832f17(0x1379)]=_0x7e8aeb,_0x574d46[_0x832f17(0x27fe)]=_0x522245,_0x574d46[_0x832f17(0x649)]=_0x4c6d3c,_0x574d46[_0x832f17(0x829)]=_0x3a706a,_0x574d46[_0x832f17(0x2038)]=_0x4d98f1,_0x574d46['createOrEditMailQueue']=_0x2ed58d,_0x574d46[_0x832f17(0x232b)]=_0x354f1a,_0x574d46['exportSelectedMailQueues']=_0x5c891e,_0x574d46[_0x832f17(0x100f)]=_0x2ac6c8,_0x574d46[_0x832f17(0x2874)]=_0x191135,_0x574d46[_0x832f17(0x84e)]=_0x4a34ac;function _0x436fb3(_0x54b1bb){const _0x5b8d60=_0x832f17;_0x17a3cb['go'](_0x5b8d60(0x1930),{'id':_0x54b1bb['id'],'mailQueue':_0x54b1bb,'crudPermissions':_0x574d46[_0x5b8d60(0x1b1a)]});}function _0x531189(_0x161a26,_0x3fd58a){const _0x147ce1=_0x832f17;_0x327592[_0x147ce1(0xe27)]({'controller':'MailQueueteamaddController','controllerAs':'vm','templateUrl':_0x4078b2,'parent':angular[_0x147ce1(0x1853)](_0x1fa4ab[_0x147ce1(0x1ed9)]),'targetEvent':_0x3fd58a,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x161a26,'mailQueues':_0x574d46[_0x147ce1(0x25a6)]?_0x574d46[_0x147ce1(0x25a6)][_0x147ce1(0x2214)]:[],'crudPermissions':_0x574d46[_0x147ce1(0x1b1a)]}});}function _0x7e8aeb(_0x2b9bf1,_0x4b50cc){const _0x2cb473=_0x832f17;_0x327592[_0x2cb473(0xe27)]({'controller':_0x2cb473(0x24d2),'controllerAs':'vm','templateUrl':_0x1159b3,'parent':angular[_0x2cb473(0x1853)](_0x1fa4ab[_0x2cb473(0x1ed9)]),'targetEvent':_0x4b50cc,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x2b9bf1,'mailQueues':_0x574d46[_0x2cb473(0x25a6)]?_0x574d46[_0x2cb473(0x25a6)][_0x2cb473(0x2214)]:[],'crudPermissions':_0x574d46['crudPermissions'],'realtime':![]}});}function _0x522245(_0x54cd7a,_0x3d08cd){const _0x50ab87=_0x832f17,_0x3f660e=_0x327592[_0x50ab87(0x1551)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x39641b()[_0x50ab87(0xa75)]('mailQueue')+'?')['htmlContent'](''+(_0x54cd7a['name']||_0x50ab87(0x16e1))+''+_0x50ab87(0x1b6))[_0x50ab87(0x15ad)]('delete\x20mailQueue')[_0x50ab87(0x728)](_0x3d08cd)['ok']('OK')[_0x50ab87(0x696)]('CANCEL');_0x327592[_0x50ab87(0xe27)](_0x3f660e)[_0x50ab87(0x1cb0)](function(){_0x354f1a(_0x54cd7a);},function(){const _0x162c24=_0x50ab87;console[_0x162c24(0x1b4f)]('CANCEL');});}function _0x4c6d3c(){const _0x50f0d4=_0x832f17;if(_0x3308eb[_0x50f0d4(0x22b6)]('admin'))_0x17a3cb['go']('app.mail.realtime.queues',{});else return _0x5c7ef0[_0x50f0d4(0x2199)][_0x50f0d4(0xbf7)]({'userProfileId':_0x3308eb[_0x50f0d4(0x21e8)]()[_0x50f0d4(0x13c1)],'sectionId':0x262})['$promise'][_0x50f0d4(0x1cb0)](function(_0x32d0ee){const _0xc56255=_0x50f0d4,_0x2d8e70=_0x32d0ee&&_0x32d0ee['rows']?_0x32d0ee['rows'][0x0]:null;_0x2d8e70&&_0x2d8e70[_0xc56255(0x281c)]?_0x17a3cb['go'](_0xc56255(0x1903),{}):_0x54da75[_0xc56255(0x28c7)]({'title':_0x3ea521[_0xc56255(0x25cc)](_0xc56255(0x370)),'msg':_0x3ea521[_0xc56255(0x25cc)](_0xc56255(0x33a))});})[_0x50f0d4(0x1c4)](function(_0x44e853){const _0x38d58d=_0x50f0d4;_0x54da75[_0x38d58d(0x218e)]({'title':_0x44e853[_0x38d58d(0x291)]?_0x38d58d(0xeb9)+_0x44e853['status']+_0x38d58d(0x1657)+_0x44e853[_0x38d58d(0xc22)]:_0x38d58d(0x17ba),'msg':_0x44e853[_0x38d58d(0x291)]?JSON[_0x38d58d(0x2701)](_0x44e853[_0x38d58d(0x25c)]):_0x44e853['toString']()});});}let _0x5e1277=!![],_0x1eea34=0x1;_0x27717a[_0x832f17(0x614)]('vm.query.filter',function(_0x4f1022,_0x5ac338){const _0x51beba=_0x832f17;_0x5e1277?_0x2d319c(function(){_0x5e1277=![];}):(!_0x5ac338&&(_0x1eea34=_0x574d46[_0x51beba(0xae2)]['page']),_0x4f1022!==_0x5ac338&&(_0x574d46[_0x51beba(0xae2)][_0x51beba(0x1c7b)]=0x1),!_0x4f1022&&(_0x574d46[_0x51beba(0xae2)][_0x51beba(0x1c7b)]=_0x1eea34),_0x574d46[_0x51beba(0x2038)]());});function _0x3a706a(_0x1dde81){const _0xbd5ef6=_0x832f17;_0x574d46[_0xbd5ef6(0x25a6)]=_0x1dde81||{'count':0x0,'rows':[]};}function _0x4d98f1(){const _0x33d5cc=_0x832f17;_0x574d46[_0x33d5cc(0xae2)]['offset']=(_0x574d46[_0x33d5cc(0xae2)]['page']-0x1)*_0x574d46['query']['limit'],_0x3308eb['hasRole'](_0x33d5cc(0x1c60))?_0x574d46[_0x33d5cc(0x2061)]=_0x5c7ef0[_0x33d5cc(0x16e1)][_0x33d5cc(0xbf7)](_0x574d46[_0x33d5cc(0xae2)],_0x3a706a)[_0x33d5cc(0x1d77)]:(_0x574d46[_0x33d5cc(0xae2)]['id']=_0x574d46['userProfile']['id'],_0x574d46[_0x33d5cc(0xae2)]['section']='MailQueues',_0x574d46[_0x33d5cc(0x2061)]=_0x5c7ef0[_0x33d5cc(0x44a)][_0x33d5cc(0x1810)](_0x574d46[_0x33d5cc(0xae2)],_0x3a706a)[_0x33d5cc(0x1d77)]);}function _0x2ed58d(_0x6ae887,_0x5ed68b){const _0x34760b=_0x832f17;_0x327592[_0x34760b(0xe27)]({'controller':_0x34760b(0xae6),'controllerAs':'vm','templateUrl':_0x5efcce,'parent':angular['element'](_0x1fa4ab[_0x34760b(0x1ed9)]),'targetEvent':_0x6ae887,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x5ed68b,'mailQueues':_0x574d46[_0x34760b(0x25a6)][_0x34760b(0x2214)],'license':_0x574d46[_0x34760b(0x8a5)],'setting':_0x574d46[_0x34760b(0x9ca)],'crudPermissions':_0x574d46[_0x34760b(0x1b1a)]}});}function _0x354f1a(_0x3d70b9){const _0x2e8e05=_0x832f17;_0x5c7ef0['mailQueue'][_0x2e8e05(0x111d)]({'id':_0x3d70b9['id']})[_0x2e8e05(0x1d77)]['then'](function(){const _0xc892ba=_0x2e8e05;_0x39641b()[_0xc892ba(0x152a)](_0x574d46['mailQueues'][_0xc892ba(0x2214)],{'id':_0x3d70b9['id']}),_0x574d46[_0xc892ba(0x25a6)][_0xc892ba(0x184d)]-=0x1,!_0x574d46[_0xc892ba(0x25a6)][_0xc892ba(0x2214)][_0xc892ba(0xfd0)]&&_0x574d46[_0xc892ba(0x2038)](),_0x54da75[_0xc892ba(0x829)]({'title':_0x39641b()[_0xc892ba(0xa75)]('MailQueue')+_0xc892ba(0x2663),'msg':_0x3d70b9[_0xc892ba(0x16b6)]?_0x3d70b9[_0xc892ba(0x16b6)]+_0xc892ba(0x3f5):''});})['catch'](function(_0x116085){const _0xa6ee45=_0x2e8e05;if(_0x116085['data']&&_0x116085['data']['errors']&&_0x116085[_0xa6ee45(0x25c)][_0xa6ee45(0x1a7c)][_0xa6ee45(0xfd0)]){_0x574d46[_0xa6ee45(0x1a7c)]=_0x116085[_0xa6ee45(0x25c)][_0xa6ee45(0x1a7c)]||[{'message':_0x116085[_0xa6ee45(0x147f)](),'type':_0xa6ee45(0x236b)}];for(let _0x49aa95=0x0;_0x49aa95<_0x116085[_0xa6ee45(0x25c)][_0xa6ee45(0x1a7c)]['length'];_0x49aa95++){_0x54da75[_0xa6ee45(0x218e)]({'title':_0x116085[_0xa6ee45(0x25c)]['errors'][_0x49aa95]['type'],'msg':_0x116085[_0xa6ee45(0x25c)][_0xa6ee45(0x1a7c)][_0x49aa95]['message']});}}else _0x54da75[_0xa6ee45(0x218e)]({'title':_0x116085[_0xa6ee45(0x291)]?_0xa6ee45(0xeb9)+_0x116085[_0xa6ee45(0x291)]+_0xa6ee45(0x1657)+_0x116085['statusText']:_0xa6ee45(0x236b),'msg':_0x116085[_0xa6ee45(0x25c)]?JSON[_0xa6ee45(0x2701)](_0x116085['data']['message']):_0x116085[_0xa6ee45(0x155e)]||_0x116085[_0xa6ee45(0x147f)]()});});}function _0x5c891e(){const _0x32e371=_0x832f17,_0x2441de=angular['copy'](_0x574d46[_0x32e371(0x18d7)]);return _0x574d46['selectedMailQueues']=[],_0x2441de;}function _0x2ac6c8(_0x546d2b){const _0x48b233=_0x832f17,_0x30815c=_0x327592['confirm']()[_0x48b233(0x1386)](_0x48b233(0x1fac))['htmlContent'](''+_0x574d46['selectedMailQueues'][_0x48b233(0xfd0)]+_0x48b233(0x1d6c)+_0x48b233(0x1b6))['ariaLabel'](_0x48b233(0x29cd))[_0x48b233(0x728)](_0x546d2b)['ok']('OK')['cancel']('CANCEL');_0x327592[_0x48b233(0xe27)](_0x30815c)['then'](function(){const _0x2a92c8=_0x48b233;_0x574d46[_0x2a92c8(0x18d7)]['forEach'](function(_0x3ee752){_0x354f1a(_0x3ee752);}),_0x574d46['selectedMailQueues']=[];});}function _0x191135(){const _0x3cf772=_0x832f17;_0x574d46[_0x3cf772(0x18d7)]=[];}function _0x4a34ac(){const _0x3eec19=_0x832f17;_0x574d46[_0x3eec19(0x18d7)]=_0x574d46[_0x3eec19(0x25a6)][_0x3eec19(0x2214)];}}const _0x4fc2d4=_0x1eb548;;_0x5eae04['$inject']=['$scope',_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x1734),_0x5537c6(0xdbe),_0x5537c6(0x142b),_0x5537c6(0x1774),'license','setting',_0x5537c6(0x1b1a)];function _0x5eae04(_0x5f584d,_0x233eff,_0x2df402,_0x57d462,_0x28eab2,_0x455c31,_0x49d616,_0x290f28,_0x320158,_0x526afd,_0x1353d2,_0x1f9cf1,_0x12be05,_0x3ce71b){const _0x46ce18=_0x5537c6,_0x519c79=this;_0x519c79[_0x46ce18(0xe76)]=_0x1353d2['getCurrentUser'](),_0x519c79[_0x46ce18(0x1a7c)]=[],_0x519c79[_0x46ce18(0x9ca)]=_0x12be05,_0x519c79[_0x46ce18(0x8a5)]=_0x1f9cf1,_0x519c79[_0x46ce18(0x1b1a)]=_0x3ce71b,_0x519c79[_0x46ce18(0xf4c)]={},_0x519c79[_0x46ce18(0x1b0c)]=_0x519c79[_0x46ce18(0x9ca)]&&_0x519c79[_0x46ce18(0x9ca)][_0x46ce18(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x519c79[_0x46ce18(0x1386)]=_0x46ce18(0x1634),_0x519c79[_0x46ce18(0xdbe)]=angular[_0x46ce18(0x17fe)](_0x320158),_0x519c79[_0x46ce18(0x1734)]=_0x290f28,_0x519c79[_0x46ce18(0x1efa)]=![];!_0x519c79[_0x46ce18(0xdbe)]&&(_0x519c79[_0x46ce18(0xdbe)]={},_0x519c79[_0x46ce18(0x1386)]=_0x46ce18(0x27a0),_0x519c79[_0x46ce18(0x1efa)]=!![]);_0x519c79['addNewMailSubstatus']=_0x4826ce,_0x519c79[_0x46ce18(0x28ac)]=_0x1d21d8,_0x519c79['deleteMailSubstatus']=_0x486710,_0x519c79[_0x46ce18(0x2c4)]=_0x59fc5a,_0x519c79[_0x46ce18(0xda0)]=_0x24c4dd;function _0x4826ce(){const _0x675330=_0x46ce18;_0x519c79['errors']=[],_0x526afd[_0x675330(0xdbe)]['save'](_0x519c79['mailSubstatus'])[_0x675330(0x1d77)]['then'](function(_0x1d734d){const _0x33ddc9=_0x675330;_0x519c79[_0x33ddc9(0x1734)][_0x33ddc9(0xf63)](_0x1d734d['toJSON']()),_0x49d616[_0x33ddc9(0x829)]({'title':_0x33ddc9(0x15ab),'msg':_0x519c79['mailSubstatus'][_0x33ddc9(0x16b6)]?_0x519c79['mailSubstatus'][_0x33ddc9(0x16b6)]+_0x33ddc9(0x470):''}),_0x24c4dd(_0x1d734d);})[_0x675330(0x1c4)](function(_0x5719dd){const _0x241907=_0x675330;if(_0x5719dd[_0x241907(0x25c)]&&_0x5719dd['data'][_0x241907(0x1a7c)]&&_0x5719dd['data']['errors'][_0x241907(0xfd0)]){_0x519c79[_0x241907(0x1a7c)]=_0x5719dd[_0x241907(0x25c)]['errors']||[{'message':_0x5719dd[_0x241907(0x147f)](),'type':_0x241907(0xccc)}];for(let _0x5805bd=0x0;_0x5805bd<_0x5719dd[_0x241907(0x25c)][_0x241907(0x1a7c)][_0x241907(0xfd0)];_0x5805bd+=0x1){_0x49d616[_0x241907(0x218e)]({'title':_0x5719dd[_0x241907(0x25c)][_0x241907(0x1a7c)][_0x5805bd][_0x241907(0x66a)],'msg':_0x5719dd['data'][_0x241907(0x1a7c)][_0x5805bd]['message']});}}else _0x49d616['error']({'title':_0x5719dd[_0x241907(0x291)]?'API:'+_0x5719dd['status']+_0x241907(0x1657)+_0x5719dd[_0x241907(0xc22)]:'api.mailSubstatus.save','msg':_0x5719dd[_0x241907(0x25c)]?JSON[_0x241907(0x2701)](_0x5719dd[_0x241907(0x25c)][_0x241907(0x155e)]):_0x5719dd['toString']()});});}function _0x1d21d8(){const _0x56e7ff=_0x46ce18;_0x519c79['errors']=[],_0x526afd['mailSubstatus']['update']({'id':_0x519c79[_0x56e7ff(0xdbe)]['id']},_0x519c79[_0x56e7ff(0xdbe)])[_0x56e7ff(0x1d77)]['then'](function(_0x514d36){const _0x4cf8f2=_0x56e7ff,_0x48023f=_0x39641b()['find'](_0x519c79[_0x4cf8f2(0x1734)],{'id':_0x514d36['id']});_0x48023f&&_0x39641b()[_0x4cf8f2(0x9c1)](_0x48023f,_0x39641b()['pick'](_0x514d36[_0x4cf8f2(0x19b2)](),_0x39641b()['keys'](_0x48023f))),_0x49d616[_0x4cf8f2(0x829)]({'title':_0x4cf8f2(0x1511),'msg':_0x519c79[_0x4cf8f2(0xdbe)][_0x4cf8f2(0x16b6)]?_0x519c79['mailSubstatus'][_0x4cf8f2(0x16b6)]+_0x4cf8f2(0xedb):''}),_0x24c4dd(_0x514d36);})[_0x56e7ff(0x1c4)](function(_0x17f4b4){const _0x34774c=_0x56e7ff;if(_0x17f4b4[_0x34774c(0x25c)]&&_0x17f4b4[_0x34774c(0x25c)][_0x34774c(0x1a7c)]&&_0x17f4b4[_0x34774c(0x25c)]['errors'][_0x34774c(0xfd0)]){_0x519c79['errors']=_0x17f4b4[_0x34774c(0x25c)][_0x34774c(0x1a7c)]||[{'message':_0x17f4b4['toString'](),'type':_0x34774c(0x27fc)}];for(let _0x7432e6=0x0;_0x7432e6<_0x17f4b4[_0x34774c(0x25c)][_0x34774c(0x1a7c)][_0x34774c(0xfd0)];_0x7432e6++){_0x49d616[_0x34774c(0x218e)]({'title':_0x17f4b4[_0x34774c(0x25c)]['errors'][_0x7432e6][_0x34774c(0x66a)],'msg':_0x17f4b4[_0x34774c(0x25c)][_0x34774c(0x1a7c)][_0x7432e6][_0x34774c(0x155e)]});}}else _0x49d616[_0x34774c(0x218e)]({'title':_0x17f4b4['status']?_0x34774c(0xeb9)+_0x17f4b4[_0x34774c(0x291)]+_0x34774c(0x1657)+_0x17f4b4[_0x34774c(0xc22)]:_0x34774c(0x27fc),'msg':_0x17f4b4[_0x34774c(0x25c)]?JSON[_0x34774c(0x2701)](_0x17f4b4[_0x34774c(0x25c)][_0x34774c(0x155e)]):_0x17f4b4[_0x34774c(0x147f)]()});});}function _0x486710(_0x562b4f){const _0x52ad4c=_0x46ce18;_0x519c79[_0x52ad4c(0x1a7c)]=[];const _0x3fb458=_0x57d462[_0x52ad4c(0x1551)]()[_0x52ad4c(0x1386)](_0x52ad4c(0x1a2e))[_0x52ad4c(0x862)]('The\x20mailSubstatus\x20will\x20be\x20deleted.')[_0x52ad4c(0x15ad)]('Delete\x20MailSubstatus')['ok'](_0x52ad4c(0x2594))[_0x52ad4c(0x696)](_0x52ad4c(0xde1))[_0x52ad4c(0x728)](_0x562b4f);_0x57d462['show'](_0x3fb458)[_0x52ad4c(0x1cb0)](function(){const _0x281201=_0x52ad4c;_0x526afd[_0x281201(0xdbe)][_0x281201(0x111d)]({'id':_0x519c79[_0x281201(0xdbe)]['id']})[_0x281201(0x1d77)][_0x281201(0x1cb0)](function(){const _0x310939=_0x281201;_0x39641b()[_0x310939(0x152a)](_0x519c79[_0x310939(0x1734)],{'id':_0x519c79[_0x310939(0xdbe)]['id']}),_0x49d616[_0x310939(0x829)]({'title':_0x310939(0x1b7c),'msg':(_0x519c79[_0x310939(0xdbe)][_0x310939(0x16b6)]||_0x310939(0xdbe))+'\x20has\x20been\x20deleted!'}),_0x24c4dd(_0x519c79[_0x310939(0xdbe)]);})['catch'](function(_0x5d270d){const _0x160c7c=_0x281201;if(_0x5d270d[_0x160c7c(0x25c)]&&_0x5d270d[_0x160c7c(0x25c)]['errors']&&_0x5d270d[_0x160c7c(0x25c)]['errors'][_0x160c7c(0xfd0)]){_0x519c79[_0x160c7c(0x1a7c)]=_0x5d270d[_0x160c7c(0x25c)]['errors']||[{'message':_0x5d270d[_0x160c7c(0x147f)](),'type':_0x160c7c(0x663)}];for(let _0x139268=0x0;_0x139268<_0x5d270d[_0x160c7c(0x25c)][_0x160c7c(0x1a7c)]['length'];_0x139268++){_0x49d616[_0x160c7c(0x218e)]({'title':_0x5d270d['data'][_0x160c7c(0x1a7c)][_0x139268]['type'],'msg':_0x5d270d['data']['errors'][_0x139268][_0x160c7c(0x155e)]});}}else _0x49d616[_0x160c7c(0x218e)]({'title':_0x5d270d['status']?_0x160c7c(0xeb9)+_0x5d270d[_0x160c7c(0x291)]+_0x160c7c(0x1657)+_0x5d270d[_0x160c7c(0xc22)]:'api.mailSubstatus.delete','msg':_0x5d270d[_0x160c7c(0x25c)]?JSON[_0x160c7c(0x2701)](_0x5d270d[_0x160c7c(0x25c)][_0x160c7c(0x155e)]):_0x5d270d[_0x160c7c(0x155e)]||_0x5d270d[_0x160c7c(0x147f)]()});});},function(){});}function _0x59fc5a(_0x27c81e){return _0x27c81e===null?undefined:new Date(_0x27c81e);}function _0x24c4dd(_0x596619){const _0x5bfbe6=_0x46ce18;_0x57d462[_0x5bfbe6(0x1426)](_0x596619);}}const _0x5b2021=_0x5eae04;;const _0x18d429=_0x5074a3['p']+'src/js/modules/main/apps/mail/views/mailSubtatuses/create/dialog.html/dialog.html';;_0x2d2782[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'$timeout',_0x5537c6(0x1ae),_0x5537c6(0x1734),_0x5537c6(0x44a),'userProfileSection',_0x5537c6(0x142b),_0x5537c6(0xde8),'toasty','Auth','license',_0x5537c6(0x9ca)];function _0x2d2782(_0x1ad48f,_0x2de563,_0x5e7f01,_0x4d4512,_0x1ba8bf,_0x49546d,_0x1514fc,_0xe4133,_0xa8f88f,_0x1ea8be,_0x9c2c44,_0x5a2608,_0x537ba7,_0x3f5b54,_0x59f3d2,_0x6b7a01,_0x42722b){const _0x3d0989=_0x5537c6,_0x3821bb=this;_0x3821bb[_0x3d0989(0x8a5)]=_0x6b7a01,_0x3821bb['setting']=_0x42722b,_0x3821bb[_0x3d0989(0xe76)]=_0x59f3d2[_0x3d0989(0x21e8)](),_0x3821bb[_0x3d0989(0x1734)]=_0xa8f88f||{'count':0x0,'rows':[]},_0x3821bb[_0x3d0989(0x44a)]=_0x1ea8be,_0x3821bb[_0x3d0989(0x2199)]=_0x9c2c44&&_0x9c2c44[_0x3d0989(0x184d)]==0x1?_0x9c2c44['rows'][0x0]:null,_0x3821bb[_0x3d0989(0x1b1a)]=_0x59f3d2[_0x3d0989(0x14ea)](_0x3821bb[_0x3d0989(0x2199)]?_0x3821bb[_0x3d0989(0x2199)]['crudPermissions']:null),_0x3821bb[_0x3d0989(0xc83)]=_0x3d0989(0x1734),_0x3821bb['listOrder']='',_0x3821bb[_0x3d0989(0x1cdf)]=null,_0x3821bb[_0x3d0989(0x130c)]=[],_0x3821bb['query']={'fields':'createdAt,updatedAt,id,name,description','sort':_0x3d0989(0x282),'limit':0xa,'page':0x1},_0x3821bb['editdialog']=_0x45f781,_0x3821bb[_0x3d0989(0x27fe)]=_0x1dc3d0,_0x3821bb[_0x3d0989(0x829)]=_0x36e029,_0x3821bb['getMailSubstatuses']=_0x2b428e,_0x3821bb[_0x3d0989(0x1b27)]=_0x22377f,_0x3821bb['deleteMailSubstatus']=_0x97826f,_0x3821bb[_0x3d0989(0xa57)]=_0x58f2fb,_0x3821bb[_0x3d0989(0xadf)]=_0x394a90,_0x3821bb[_0x3d0989(0x179e)]=_0xe506c6,_0x3821bb['selectAllMailSubstatuses']=_0x318878;function _0x45f781(_0x122bb1,_0x438ad8){const _0x48d494=_0x3d0989;_0x1ba8bf[_0x48d494(0xe27)]({'controller':_0x48d494(0x926),'controllerAs':'vm','templateUrl':_0x18d429,'parent':angular['element'](_0x49546d['body']),'targetEvent':_0x438ad8,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x122bb1,'mailSubtatuses':_0x3821bb['mailSubtatuses'][_0x48d494(0x2214)],'license':_0x3821bb[_0x48d494(0x8a5)],'setting':null,'crudPermissions':_0x3821bb['crudPermissions']}});}function _0x1dc3d0(_0x3f6a90,_0x4a555d){const _0x48f9e2=_0x3d0989,_0x16200a=_0x1ba8bf['confirm']()[_0x48f9e2(0x1386)](_0x48f9e2(0x140b)+_0x39641b()[_0x48f9e2(0xa75)](_0x48f9e2(0xdbe))+'?')[_0x48f9e2(0x49e)](''+(_0x3f6a90['name']||_0x48f9e2(0xdbe))+_0x48f9e2(0x1200)+_0x48f9e2(0x1b6))[_0x48f9e2(0x15ad)](_0x48f9e2(0x2528))[_0x48f9e2(0x728)](_0x4a555d)['ok']('OK')[_0x48f9e2(0x696)](_0x48f9e2(0x24ba));_0x1ba8bf[_0x48f9e2(0xe27)](_0x16200a)[_0x48f9e2(0x1cb0)](function(){_0x97826f(_0x3f6a90);},function(){const _0x26499e=_0x48f9e2;console['log'](_0x26499e(0x24ba));});}let _0x3f24e7=!![],_0xd6a630=0x1;_0x1ad48f[_0x3d0989(0x614)](_0x3d0989(0x957),function(_0x425cef,_0xeebaf0){const _0x210491=_0x3d0989;_0x3f24e7?_0x1514fc(function(){_0x3f24e7=![];}):(!_0xeebaf0&&(_0xd6a630=_0x3821bb[_0x210491(0xae2)]['page']),_0x425cef!==_0xeebaf0&&(_0x3821bb[_0x210491(0xae2)][_0x210491(0x1c7b)]=0x1),!_0x425cef&&(_0x3821bb[_0x210491(0xae2)]['page']=_0xd6a630),_0x3821bb[_0x210491(0x2220)]());});function _0x36e029(_0x36061d){const _0x51b864=_0x3d0989;_0x3821bb[_0x51b864(0x1734)]=_0x36061d||{'count':0x0,'rows':[]};}function _0x2b428e(){const _0x25b800=_0x3d0989;_0x3821bb['query'][_0x25b800(0x184b)]=(_0x3821bb[_0x25b800(0xae2)][_0x25b800(0x1c7b)]-0x1)*_0x3821bb[_0x25b800(0xae2)]['limit'],_0x59f3d2[_0x25b800(0x22b6)](_0x25b800(0x1c60))?_0x3821bb['promise']=_0x5a2608[_0x25b800(0xdbe)][_0x25b800(0xbf7)](_0x3821bb[_0x25b800(0xae2)],_0x36e029)[_0x25b800(0x1d77)]:(_0x3821bb['query']['id']=_0x3821bb[_0x25b800(0x44a)]['id'],_0x3821bb['query'][_0x25b800(0x1f74)]='MailSubstatuses',_0x3821bb['promise']=_0x5a2608['userProfile'][_0x25b800(0x1810)](_0x3821bb[_0x25b800(0xae2)],_0x36e029)['$promise']);}function _0x22377f(_0xb4f7e7,_0x20e953){const _0x116d13=_0x3d0989;_0x1ba8bf[_0x116d13(0xe27)]({'controller':_0x116d13(0x926),'controllerAs':'vm','templateUrl':_0x18d429,'parent':angular[_0x116d13(0x1853)](_0x49546d[_0x116d13(0x1ed9)]),'targetEvent':_0xb4f7e7,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x20e953,'mailSubtatuses':_0x3821bb[_0x116d13(0x1734)][_0x116d13(0x2214)],'license':_0x3821bb[_0x116d13(0x8a5)],'setting':_0x3821bb[_0x116d13(0x9ca)],'crudPermissions':_0x3821bb[_0x116d13(0x1b1a)]}});}function _0x97826f(_0x1ba837){const _0x9d5b11=_0x3d0989;_0x5a2608['mailSubstatus']['delete']({'id':_0x1ba837['id']})[_0x9d5b11(0x1d77)][_0x9d5b11(0x1cb0)](function(){const _0xa70e9b=_0x9d5b11;_0x39641b()[_0xa70e9b(0x152a)](_0x3821bb['mailSubtatuses'][_0xa70e9b(0x2214)],{'id':_0x1ba837['id']}),_0x3821bb['mailSubtatuses'][_0xa70e9b(0x184d)]-=0x1,!_0x3821bb['mailSubtatuses']['rows']['length']&&_0x3821bb[_0xa70e9b(0x2220)](),_0x3f5b54[_0xa70e9b(0x829)]({'title':_0x39641b()[_0xa70e9b(0xa75)](_0xa70e9b(0xeaa))+_0xa70e9b(0x2663),'msg':_0x1ba837[_0xa70e9b(0x16b6)]?_0x1ba837[_0xa70e9b(0x16b6)]+_0xa70e9b(0x3f5):''});})['catch'](function(_0x11c1e4){const _0x4dd260=_0x9d5b11;if(_0x11c1e4[_0x4dd260(0x25c)]&&_0x11c1e4[_0x4dd260(0x25c)]['errors']&&_0x11c1e4[_0x4dd260(0x25c)]['errors']['length']){_0x3821bb[_0x4dd260(0x1a7c)]=_0x11c1e4[_0x4dd260(0x25c)][_0x4dd260(0x1a7c)]||[{'message':_0x11c1e4['toString'](),'type':_0x4dd260(0xc0b)}];for(let _0x33de34=0x0;_0x33de34<_0x11c1e4['data'][_0x4dd260(0x1a7c)][_0x4dd260(0xfd0)];_0x33de34++){_0x3f5b54[_0x4dd260(0x218e)]({'title':_0x11c1e4[_0x4dd260(0x25c)]['errors'][_0x33de34]['type'],'msg':_0x11c1e4[_0x4dd260(0x25c)]['errors'][_0x33de34][_0x4dd260(0x155e)]});}}else _0x3f5b54[_0x4dd260(0x218e)]({'title':_0x11c1e4['status']?'API:'+_0x11c1e4[_0x4dd260(0x291)]+'\x20-\x20'+_0x11c1e4[_0x4dd260(0xc22)]:_0x4dd260(0xc0b),'msg':_0x11c1e4[_0x4dd260(0x25c)]?JSON[_0x4dd260(0x2701)](_0x11c1e4[_0x4dd260(0x25c)]['message']):_0x11c1e4[_0x4dd260(0x155e)]||_0x11c1e4[_0x4dd260(0x147f)]()});});}function _0x58f2fb(){const _0xd682a6=_0x3d0989,_0x58cbd1=angular[_0xd682a6(0x17fe)](_0x3821bb['selectedMailSubstatuses']);return _0x3821bb[_0xd682a6(0x130c)]=[],_0x58cbd1;}function _0x394a90(_0x54e9f3){const _0x3ae4c2=_0x3d0989,_0x1cb0cf=_0x1ba8bf[_0x3ae4c2(0x1551)]()[_0x3ae4c2(0x1386)](_0x3ae4c2(0x8c0))[_0x3ae4c2(0x49e)](_0x3ae4c2(0x204d)+_0x3821bb[_0x3ae4c2(0x130c)][_0x3ae4c2(0xfd0)]+_0x3ae4c2(0x1d6c)+_0x3ae4c2(0x1b6))['ariaLabel'](_0x3ae4c2(0x8cf))['targetEvent'](_0x54e9f3)['ok']('OK')['cancel'](_0x3ae4c2(0x24ba));_0x1ba8bf[_0x3ae4c2(0xe27)](_0x1cb0cf)[_0x3ae4c2(0x1cb0)](function(){const _0x4ef025=_0x3ae4c2;_0x3821bb['selectedMailSubstatuses']['forEach'](function(_0x491638){_0x97826f(_0x491638);}),_0x3821bb[_0x4ef025(0x130c)]=[];});}function _0xe506c6(){const _0x3c5867=_0x3d0989;_0x3821bb[_0x3c5867(0x130c)]=[];}function _0x318878(){const _0x450a3f=_0x3d0989;_0x3821bb['selectedMailSubstatuses']=_0x3821bb[_0x450a3f(0x1734)][_0x450a3f(0x2214)];}}const _0x25153b=_0x2d2782;;_0x3779cf[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6),_0x5537c6(0x1f2a)];function _0x3779cf(_0x59780b,_0x1fdb1d){const _0x27373f=_0x5537c6;_0x59780b[_0x27373f(0x27e0)](_0x27373f(0x2426),{'abstract':!![],'url':'/mail'})['state']('app.mail.mailQueues',{'url':_0x27373f(0x1c5f),'views':{'content@app':{'templateUrl':_0x3255fb,'controller':_0x27373f(0x29b5)}},'resolve':{'mailQueues':[_0x27373f(0x1e0b),'Auth',function(_0x4e6c68,_0x5aa36d){const _0x5834a1=_0x27373f;return _0x5aa36d['hasRole'](_0x5834a1(0x1c60))?_0x4e6c68[_0x5834a1(0x19a3)](_0x5834a1(0x1140),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x5834a1(0x282),'channel':_0x5834a1(0x2651),'limit':0xa,'offset':0x0}):_0x4e6c68[_0x5834a1(0x19a3)](_0x5834a1(0x12da),{'id':_0x5aa36d[_0x5834a1(0x21e8)]()[_0x5834a1(0x13c1)],'section':_0x5834a1(0x25fc),'fields':_0x5834a1(0x22f3),'sort':_0x5834a1(0x282),'channel':_0x5834a1(0x2651),'limit':0xa,'offset':0x0});}],'userProfile':[_0x27373f(0x1e0b),_0x27373f(0x1774),function(_0x41dbf9,_0x15533f){const _0x51b537=_0x27373f;return _0x15533f[_0x51b537(0x22b6)](_0x51b537(0x1c60))?null:_0x41dbf9[_0x51b537(0x19a3)](_0x51b537(0x9ae),{'fields':'id,name,crudPermissions','id':_0x15533f['getCurrentUser']()[_0x51b537(0x13c1)]});}],'userProfileSection':['apiResolver',_0x27373f(0x1774),function(_0x80cd2c,_0x798226){const _0x442b15=_0x27373f;return _0x798226[_0x442b15(0x22b6)](_0x442b15(0x1c60))?null:_0x80cd2c[_0x442b15(0x19a3)](_0x442b15(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x798226[_0x442b15(0x21e8)]()[_0x442b15(0x13c1)],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':_0x27373f(0x2651)})[_0x27373f(0x27e0)](_0x27373f(0x1930),{'url':'/:id?tab','params':{'mailQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1c35f5,'controller':_0x27373f(0xf80)}},'resolve':{'mailQueue':[_0x27373f(0x1e0b),_0x27373f(0x225c),function(_0x5c4f4c,_0x3d8640){const _0x36c086=_0x27373f;return _0x5c4f4c['resolve']('mailQueue@get',{'fields':_0x36c086(0x22f3),'id':_0x3d8640['id']});}],'userProfileSection':[_0x27373f(0x1e0b),_0x27373f(0x1774),function(_0x2ce90c,_0x25e70f){const _0x2b1d79=_0x27373f;return _0x2ce90c[_0x2b1d79(0x19a3)](_0x2b1d79(0x2182),{'fields':_0x2b1d79(0x1f5f),'userProfileId':_0x25e70f[_0x2b1d79(0x21e8)]()[_0x2b1d79(0x13c1)],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':_0x27373f(0x2651)})[_0x27373f(0x27e0)](_0x27373f(0x226d),{'url':_0x27373f(0xbf9),'views':{'content@app':{'templateUrl':_0x18e25c,'controller':_0x27373f(0x260b)}},'resolve':{'mailAccounts':['apiResolver','Auth',function(_0x145018,_0x184e87){const _0x26da7f=_0x27373f;return _0x184e87[_0x26da7f(0x22b6)]('admin')?_0x145018[_0x26da7f(0x19a3)]('mailAccount@get',{'fields':'createdAt,updatedAt,id,name,key,email,ListId,active,cservice,Imap.service,Imap.host,Imap.port,Imap.tls,Imap.authentication,Imap.user,Imap.password,Imap.mailbox,Imap.connTimeout,Imap.authTimeout,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,cauthentication,cuser,cpassword,fontFamily,fontSize,template,markAsUnread,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':_0x26da7f(0x282),'limit':0xa,'offset':0x0}):_0x145018['resolve'](_0x26da7f(0x12da),{'id':_0x184e87[_0x26da7f(0x21e8)]()[_0x26da7f(0x13c1)],'section':_0x26da7f(0x9c9),'fields':_0x26da7f(0x1f9a),'sort':_0x26da7f(0x282),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x27373f(0x1774),function(_0x443f2c,_0x4ba978){const _0x3554de=_0x27373f;return _0x4ba978[_0x3554de(0x22b6)](_0x3554de(0x1c60))?null:_0x443f2c[_0x3554de(0x19a3)]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x4ba978[_0x3554de(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x27373f(0x1e0b),'Auth',function(_0x725511,_0x4b206b){const _0x262928=_0x27373f;return _0x4b206b['hasRole'](_0x262928(0x1c60))?null:_0x725511[_0x262928(0x19a3)](_0x262928(0x2182),{'fields':_0x262928(0x1f5f),'userProfileId':_0x4b206b[_0x262928(0x21e8)]()[_0x262928(0x13c1)],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':'mail'})[_0x27373f(0x27e0)](_0x27373f(0xbcd),{'url':_0x27373f(0x1bf2),'params':{'mailAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x268b68,'controller':'MailAccountController\x20as\x20vm'}},'resolve':{'mailAccount':[_0x27373f(0x1e0b),_0x27373f(0x225c),function(_0x1e8e90,_0x51ce66){const _0x5d02a7=_0x27373f;return _0x1e8e90[_0x5d02a7(0x19a3)](_0x5d02a7(0x5c1),{'fields':_0x5d02a7(0x1f9a),'id':_0x51ce66['id']});}],'userProfileSection':[_0x27373f(0x1e0b),_0x27373f(0x1774),function(_0x131042,_0x1b6c01){const _0x138f1e=_0x27373f;return _0x131042[_0x138f1e(0x19a3)](_0x138f1e(0x2182),{'fields':_0x138f1e(0x1f5f),'userProfileId':_0x1b6c01['getCurrentUser']()[_0x138f1e(0x13c1)],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':_0x27373f(0x2651)})[_0x27373f(0x27e0)](_0x27373f(0x32d),{'url':_0x27373f(0x2b2),'views':{'content@app':{'templateUrl':_0x4cf3e1,'controller':'MailSubstatusesController\x20as\x20vm'}},'resolve':{'mailSubtatuses':[_0x27373f(0x1e0b),function(_0x4075f0){const _0x3ee29b=_0x27373f;return _0x4075f0['resolve'](_0x3ee29b(0x1cfb),{'fields':'createdAt,updatedAt,id,name,description','sort':_0x3ee29b(0x282),'limit':0xa,'offset':0x0});}],'userProfile':[_0x27373f(0x1e0b),'Auth',function(_0x5b3cd2,_0x2bad9d){const _0x34c136=_0x27373f;return _0x2bad9d[_0x34c136(0x22b6)]('admin')?null:_0x5b3cd2[_0x34c136(0x19a3)](_0x34c136(0x9ae),{'fields':'id,name,crudPermissions','id':_0x2bad9d[_0x34c136(0x21e8)]()[_0x34c136(0x13c1)]});}],'userProfileSection':[_0x27373f(0x1e0b),'Auth',function(_0x43b38f,_0x1d039b){const _0x5cf456=_0x27373f;return _0x1d039b[_0x5cf456(0x22b6)]('admin')?null:_0x43b38f[_0x5cf456(0x19a3)]('userProfileSection@get',{'fields':_0x5cf456(0x1f5f),'userProfileId':_0x1d039b[_0x5cf456(0x21e8)]()[_0x5cf456(0x13c1)],'sectionId':0x25b});}]},'authenticate':!![],'permissionId':0x25b,'bodyClass':_0x27373f(0x2651)}),_0x1fdb1d[_0x27373f(0x4e7)]('app/main/apps/mail');}angular[_0x5537c6(0x9ab)]('app.mail',['ngCsv','ngPassword',_0x5537c6(0x1260),'flow',_0x5537c6(0x18f6),_0x5537c6(0xd19),'ng-sortable',_0x5537c6(0x2ec),_0x5537c6(0x1890),'mdPickers',_0x5537c6(0x208f),_0x5537c6(0x1b65),_0x5537c6(0x2166),_0x5537c6(0x3b9),_0x5537c6(0x7c9),'ngEmbed',_0x5537c6(0x27af),_0x5537c6(0x13b6),_0x5537c6(0x1cbd),_0x5537c6(0xd01),_0x5537c6(0x4e3)])[_0x5537c6(0xa60)](_0x3779cf)['controller'](_0x5537c6(0x1a44),_0x3cf825)[_0x5537c6(0x6e5)]('MailAccountActionsController',_0x540fca)[_0x5537c6(0x6e5)](_0x5537c6(0x4f3),_0x1fbeff)['controller']('EditMailAccountAppagentDialogController',_0x43df1e)[_0x5537c6(0x6e5)]('EditMailAccountAppautoreplyDialogController',_0x4c42df)[_0x5537c6(0x6e5)](_0x5537c6(0x11ae),_0x303a4d)[_0x5537c6(0x6e5)](_0x5537c6(0xdd0),_0x1a8132)[_0x5537c6(0x6e5)](_0x5537c6(0x2321),_0x4035e4)[_0x5537c6(0x6e5)]('EditMailAccountAppintervalDialogController',_0x3c635e)['controller']('EditMailAccountAppnoopDialogController',_0x596b62)[_0x5537c6(0x6e5)](_0x5537c6(0x1192),_0x1771f2)[_0x5537c6(0x6e5)]('EditMailAccountAppsystemDialogController',_0x5d1455)[_0x5537c6(0x6e5)]('EditMailAccountApptagDialogController',_0x55510c)['controller']('MailAccountInteractionsController',_0x50c603)['controller'](_0x5537c6(0x209f),_0x5165df)['controller'](_0x5537c6(0xc7b),_0xfa90ae)[_0x5537c6(0x6e5)](_0x5537c6(0x11ac),_0x8f035d)[_0x5537c6(0x6e5)]('MailAccountController',_0x1c882d)['controller']('MailAccountsController',_0x41f4c8)[_0x5537c6(0x6e5)](_0x5537c6(0xae6),_0x108e2)['controller']('MailQueueagentaddController',_0x1e8611)[_0x5537c6(0x6e5)]('MailQueueteamaddController',_0x526952)['controller'](_0x5537c6(0x10d9),_0x1abecb)['controller'](_0x5537c6(0x1016),_0x4fc2d4)['controller'](_0x5537c6(0x926),_0x5b2021)[_0x5537c6(0x6e5)]('MailSubstatusesController',_0x25153b);;const _0x102b84=_0x5074a3['p']+_0x5537c6(0x9a3);;const _0x143826=_0x5074a3['p']+_0x5537c6(0xb15);;const _0x30ef41=_0x5074a3['p']+_0x5537c6(0x18b0);;_0x28c2f5['$inject']=[_0x5537c6(0x1463),'$q','$timeout',_0x5537c6(0xcb9),'$document',_0x5537c6(0xc34),_0x5537c6(0x8de),'agents',_0x5537c6(0x212d),'api',_0x5537c6(0x1986),_0x5537c6(0x9bf),_0x5537c6(0x125c),_0x5537c6(0x44a),'userProfileSection',_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x1714)];function _0x28c2f5(_0x3e8e70,_0x3eaa15,_0x215797,_0x2746e2,_0x430d38,_0xdcff64,_0x36ee99,_0x43fcde,_0x540116,_0x14077a,_0x244426,_0x5a0ace,_0x4e1d1b,_0x2ac7d9,_0x296596,_0x2591a2,_0x3b5c2d,_0x2d14ec){const _0x12d037=_0x5537c6,_0x34eef5=this,_0x435e2d=[_0x12d037(0x70a),'online',_0x12d037(0x24a2),'lastPauseAt',_0x12d037(0x16e6),_0x12d037(0x25db),_0x12d037(0xdbd),_0x12d037(0x16aa),'chatPause',_0x12d037(0x1c7d),_0x12d037(0x2035),'smsPause','whatsappPause',_0x12d037(0x1ce),_0x12d037(0x2478),_0x12d037(0x1aee),_0x12d037(0x391),_0x12d037(0x2789),_0x12d037(0x3d0),_0x12d037(0x9cd),_0x12d037(0x2451),_0x12d037(0x132d),_0x12d037(0x1cd3),_0x12d037(0x2947),_0x12d037(0x2472),'whatsappCurrentCapacity','faxCurrentCapacity',_0x12d037(0x2208),_0x12d037(0x1446),_0x12d037(0x11b2),'smsStatus',_0x12d037(0x2453),_0x12d037(0x542),_0x12d037(0x2de),_0x12d037(0x1b11),_0x12d037(0x22a6),_0x12d037(0x568),_0x12d037(0x9eb),'whatsappStatusTime',_0x12d037(0x1997),_0x12d037(0xc9c),_0x12d037(0x11cf),_0x12d037(0x247),_0x12d037(0x24c5),_0x12d037(0x2569),_0x12d037(0x1f23)],_0x37512a=['chatPause','openchannelPause',_0x12d037(0x2035),_0x12d037(0x22d3),_0x12d037(0x24ff),_0x12d037(0x1ce),_0x12d037(0x2478),_0x12d037(0xa28)];_0x34eef5[_0x12d037(0xe76)]=_0x2591a2['getCurrentUser'](),_0x34eef5[_0x12d037(0x46c)]=[_0x12d037(0x1c7e),_0x12d037(0x8d2),_0x12d037(0x5b2),'onhold',_0x12d037(0x1abd)],_0x34eef5['pauses']=_0x36ee99||{'count':0x0,'rows':[]},_0x34eef5[_0x12d037(0x8a5)]=_0x3b5c2d,_0x34eef5[_0x12d037(0x44a)]=_0x2ac7d9,_0x34eef5[_0x12d037(0x2199)]=_0x296596&&_0x296596['count']==0x1?_0x296596['rows'][0x0]:null,_0x34eef5['crudPermissions']=_0x2591a2['parseCrudPermissions'](_0x34eef5[_0x12d037(0x2199)]?_0x34eef5[_0x12d037(0x2199)][_0x12d037(0x1b1a)]:null),_0x34eef5[_0x12d037(0xc12)]=_0x43fcde?_0x39641b()[_0x12d037(0x2631)](_0x43fcde[_0x12d037(0x2214)]?_0x43fcde['rows']:[],'id'):{},_0x34eef5['rpcAgents']=_0x540116?_0x39641b()[_0x12d037(0x2631)](_0x540116[_0x12d037(0x2214)]?_0x540116[_0x12d037(0x2214)]:[],'id'):{},_0x34eef5[_0x12d037(0x260a)]={},_0x34eef5[_0x12d037(0x997)]=![],_0x34eef5[_0x12d037(0x237f)]=[],_0x34eef5[_0x12d037(0x1fdd)]={};for(const _0x537ae0 in _0x34eef5[_0x12d037(0xc12)]){typeof _0x34eef5['agents'][_0x537ae0]!=='undefined'&&(_0x34eef5['agents'][_0x537ae0][_0x12d037(0x1a8e)]=!![]);}_0x34eef5[_0x12d037(0xae2)]={'limit':0xa,'page':0x1,'order':_0x12d037(0x1d14),'globalStatusFilter':'','pauseTypeFilter':''},_0x34eef5[_0x12d037(0x1366)]=_0x5962d7,_0x34eef5[_0x12d037(0x6ad)]=_0x38ac20,_0x34eef5[_0x12d037(0x785)]=_0x4ffa7e,_0x34eef5[_0x12d037(0x715)]=_0x164b7c,_0x34eef5[_0x12d037(0x191a)]=_0x511fef,_0x34eef5[_0x12d037(0x616)]=_0x30fb71,_0x34eef5[_0x12d037(0xfe7)]=_0x18321b,_0x34eef5[_0x12d037(0x1090)]=_0x11dd9e,_0x34eef5[_0x12d037(0x225e)]=_0x2aa74d,_0x34eef5['isPartialPause']=_0x1a4d8f,_0x34eef5[_0x12d037(0x294c)]=_0x56d4d3,_0x34eef5[_0x12d037(0x13e7)]=_0x75c13f,_0x34eef5['onInit']=_0x4bf9a9,_0x34eef5[_0x12d037(0x1978)]=_0x285064,_0x34eef5['onComplete']=_0x3e0e65,_0x34eef5[_0x12d037(0xd97)]=_0x151154,_0x244426['on']('user:save',_0x34eef5[_0x12d037(0x294c)]),_0x244426['on']('user:update',_0x34eef5[_0x12d037(0x13e7)]),_0x244426['on'](_0x12d037(0x2290),_0x34eef5['onConnect']),_0x244426['on'](_0x12d037(0x10b3),_0x34eef5[_0x12d037(0x1b4a)]),_0x4bf9a9();let _0x41df37=_0x2d14ec(function(){const _0x3e76a0=_0x12d037;_0x34eef5[_0x3e76a0(0x997)]&&(_0x34eef5['load']=![],_0x4bf9a9());},0x3e7);function _0x4bf9a9(){const _0x4d3656=_0x12d037;_0x34eef5[_0x4d3656(0x997)]=![];const _0xcc7926=_0x3eaa15[_0x4d3656(0x11f4)]();_0x34eef5[_0x4d3656(0x2061)]=_0xcc7926[_0x4d3656(0x2061)],_0x34eef5[_0x4d3656(0xe0e)]=[],_0x34eef5[_0x4d3656(0x237f)]=[],_0x39641b()[_0x4d3656(0x1ebd)](_0x34eef5['agents'],function(_0x169a4e,_0x418473){const _0x35ae4a=_0x4d3656;_0x34eef5['rpcAgents'][_0x418473]&&_0x39641b()['merge'](_0x169a4e,_0x39641b()['pick'](_0x39641b()[_0x35ae4a(0x1bd8)](_0x34eef5['rpcAgents'][_0x418473],_0x37512a),_0x435e2d)),_0x18321b(_0x169a4e),_0x169a4e[_0x35ae4a(0xa28)]?(_0x34eef5['filteredAgents']['push'](_0x169a4e),_0x34eef5[_0x35ae4a(0x1fdd)][_0x169a4e[_0x35ae4a(0xdbd)]]=_0x418473):_0x169a4e[_0x35ae4a(0xdb9)]=_0x39641b()[_0x35ae4a(0x106d)](_0x543b5a()()['format']('x'));});_0x34eef5[_0x4d3656(0xae2)][_0x4d3656(0x1ef1)]&&_0x39641b()[_0x4d3656(0x152a)](_0x34eef5[_0x4d3656(0xe0e)],function(_0x3346c6){const _0x56f747=_0x4d3656;return _0x3346c6[_0x56f747(0x1fbe)]!==_0x34eef5[_0x56f747(0xae2)][_0x56f747(0x1ef1)];});_0x34eef5[_0x4d3656(0xae2)][_0x4d3656(0x25ff)]&&_0x39641b()[_0x4d3656(0x152a)](_0x34eef5[_0x4d3656(0xe0e)],function(_0x44babc){const _0x4fc6f4=_0x4d3656;return _0x44babc['pauseType']!==_0x34eef5['query'][_0x4fc6f4(0x25ff)];});_0x34eef5[_0x4d3656(0xae2)][_0x4d3656(0x1c99)]&&_0x39641b()[_0x4d3656(0x152a)](_0x34eef5['filteredAgents'],function(_0x569e4f){const _0x217e89=_0x4d3656;return _0x569e4f[_0x217e89(0x1d14)][_0x217e89(0x1680)]()[_0x217e89(0xd8a)](_0x34eef5['query'][_0x217e89(0x1c99)][_0x217e89(0x1680)]())<0x0;});_0x34eef5[_0x4d3656(0xe0e)]=_0x182579(_0x34eef5[_0x4d3656(0xe0e)]);const _0x2a881c=(_0x34eef5[_0x4d3656(0xae2)]['page']-0x1)*_0x34eef5[_0x4d3656(0xae2)]['limit'];_0x34eef5[_0x4d3656(0x260a)]=_0x39641b()[_0x4d3656(0x276f)](_0x34eef5['filteredAgents'],_0x2a881c)[_0x4d3656(0x14cb)](0x0,_0x34eef5['query'][_0x4d3656(0x236)]);for(let _0x3905bf=0x0;_0x3905bf<_0x34eef5['paginatedAgents'][_0x4d3656(0xfd0)];_0x3905bf+=0x1){_0x34eef5[_0x4d3656(0x237f)][_0x4d3656(0x2785)](_0x34eef5['paginatedAgents'][_0x3905bf]['id']);}_0xcc7926[_0x4d3656(0x19a3)](),_0x34eef5[_0x4d3656(0x997)]=!![];}function _0x56d4d3(_0x1c590a){const _0x1b7c34=_0x12d037;_0x34eef5['agents'][_0x1c590a['id']]&&(_0x39641b()['merge'](_0x34eef5['agents'][_0x1c590a['id']],_0x39641b()[_0x1b7c34(0x169b)](_0x39641b()[_0x1b7c34(0x1bd8)](_0x1c590a,_0x37512a),_0x435e2d)),_0x39641b()[_0x1b7c34(0x9c1)](_0x34eef5[_0x1b7c34(0x212d)][_0x1c590a['id']],_0x39641b()[_0x1b7c34(0x169b)](_0x39641b()[_0x1b7c34(0x1bd8)](_0x1c590a,_0x37512a),_0x435e2d)),_0x18321b(_0x34eef5[_0x1b7c34(0xc12)][_0x1c590a['id']]));}function _0x75c13f(_0x2301cd){const _0x4f9655=_0x12d037;_0x34eef5[_0x4f9655(0xc12)][_0x2301cd['id']]&&(_0x39641b()['merge'](_0x34eef5['agents'][_0x2301cd['id']],_0x39641b()[_0x4f9655(0x169b)](_0x2301cd,_0x435e2d)),_0x39641b()['merge'](_0x34eef5[_0x4f9655(0x212d)][_0x2301cd['id']],_0x39641b()[_0x4f9655(0x169b)](_0x2301cd,_0x435e2d)),_0x2301cd[_0x4f9655(0x25db)]&&(_0x34eef5[_0x4f9655(0xc12)][_0x2301cd['id']][_0x4f9655(0xdb9)]=_0x2301cd['lastPauseAt'],_0x34eef5['rpcAgents'][_0x2301cd['id']][_0x4f9655(0xdb9)]=_0x2301cd[_0x4f9655(0x25db)]),_0x18321b(_0x34eef5[_0x4f9655(0xc12)][_0x2301cd['id']]));}function _0x285064(_0x263b35){const _0x39b46a=_0x12d037;_0x34eef5['agents'][_0x34eef5[_0x39b46a(0x1fdd)][_0x263b35[_0x39b46a(0x7ea)]]]&&(_0x39641b()['merge'](_0x34eef5['agents'][_0x34eef5['agentInternal'][_0x263b35[_0x39b46a(0x7ea)]]],_0x39641b()[_0x39b46a(0x169b)](_0x263b35,[_0x39b46a(0x11cf),'destconnectedlinenum'])),_0x39641b()[_0x39b46a(0x9c1)](_0x34eef5[_0x39b46a(0x212d)][_0x34eef5[_0x39b46a(0x1fdd)][_0x263b35[_0x39b46a(0x7ea)]]],_0x39641b()[_0x39b46a(0x169b)](_0x263b35,[_0x39b46a(0x11cf),_0x39b46a(0x247)])));}function _0x3e0e65(_0x2d544b){const _0x47278d=_0x12d037;_0x34eef5[_0x47278d(0xc12)][_0x34eef5[_0x47278d(0x1fdd)][_0x2d544b[_0x47278d(0x7ea)]]]&&(_0x34eef5[_0x47278d(0xc12)][_0x34eef5[_0x47278d(0x1fdd)][_0x2d544b['destaccountcode']]]=_0x39641b()[_0x47278d(0x1bd8)](_0x34eef5[_0x47278d(0xc12)][_0x34eef5[_0x47278d(0x1fdd)][_0x2d544b['destaccountcode']]],['queue',_0x47278d(0x247)]),_0x34eef5[_0x47278d(0x212d)][_0x34eef5[_0x47278d(0x1fdd)][_0x2d544b[_0x47278d(0x7ea)]]]=_0x39641b()['omit'](_0x34eef5[_0x47278d(0x212d)][_0x34eef5[_0x47278d(0x1fdd)][_0x2d544b[_0x47278d(0x7ea)]]],[_0x47278d(0x11cf),_0x47278d(0x247)]));}function _0x5962d7(_0x12d6cc){const _0x3c53f1=_0x12d037;return _0x14077a[_0x3c53f1(0xebe)][_0x3c53f1(0x1366)]({'id':_0x12d6cc['id'],'device':_0x3c53f1(0x217b),'agent_id':_0x12d6cc['id'],'agent_name':_0x12d6cc[_0x3c53f1(0x16b6)]})[_0x3c53f1(0x1d77)][_0x3c53f1(0x1cb0)](function(){const _0x27b171=_0x3c53f1;_0x5a0ace[_0x27b171(0x829)]({'title':'Agent\x20logout','msg':_0x12d6cc['fullname']+_0x27b171(0x1540)}),_0x34eef5[_0x27b171(0xc12)][_0x12d6cc['id']]&&(_0x34eef5['agents'][_0x12d6cc['id']][_0x27b171(0xa28)]=![]),_0x34eef5[_0x27b171(0x212d)][_0x12d6cc['id']]&&(_0x34eef5[_0x27b171(0x212d)][_0x12d6cc['id']][_0x27b171(0xa28)]=![]),_0x4bf9a9();})['catch'](function(_0x4b7b71){const _0x3d09fa=_0x3c53f1;_0x5a0ace['error']({'title':_0x4b7b71[_0x3d09fa(0x291)]?_0x3d09fa(0xeb9)+_0x4b7b71[_0x3d09fa(0x291)]+_0x3d09fa(0x1657)+_0x4b7b71[_0x3d09fa(0xc22)]:_0x3d09fa(0xcd6),'msg':_0x4b7b71[_0x3d09fa(0x25c)]?JSON[_0x3d09fa(0x2701)](_0x4b7b71['data']['message']):_0x4b7b71[_0x3d09fa(0x147f)]()});});}function _0x4ffa7e(_0x347b19,_0x3b4096){const _0x305217=_0x12d037;return _0x14077a[_0x305217(0xebe)][_0x305217(0x785)]({'id':_0x347b19['id'],'type':_0x3b4096})[_0x305217(0x1d77)]['then'](function(_0x37ff4c){const _0xd79fbd=_0x305217;_0x34eef5[_0xd79fbd(0xc12)][_0x347b19['id']]&&_0x39641b()[_0xd79fbd(0x9c1)](_0x34eef5['agents'][_0x347b19['id']],_0x39641b()['pick'](_0x37ff4c,_0x435e2d)),_0x34eef5[_0xd79fbd(0x212d)][_0x347b19['id']]&&_0x39641b()[_0xd79fbd(0x9c1)](_0x34eef5[_0xd79fbd(0x212d)][_0x347b19['id']],_0x39641b()['pick'](_0x37ff4c,_0x435e2d)),_0x18321b(_0x34eef5[_0xd79fbd(0xc12)][_0x347b19['id']]);})['catch'](function(_0x3ba99b){const _0x444b20=_0x305217;_0x5a0ace[_0x444b20(0x218e)]({'title':_0x3ba99b[_0x444b20(0x291)]?_0x444b20(0xeb9)+_0x3ba99b[_0x444b20(0x291)]+'\x20-\x20'+_0x3ba99b['statusText']:_0x444b20(0xcd6),'msg':_0x3ba99b[_0x444b20(0x25c)]?JSON[_0x444b20(0x2701)](_0x3ba99b[_0x444b20(0x25c)][_0x444b20(0x155e)]):_0x3ba99b[_0x444b20(0x147f)]()});});}function _0x164b7c(_0x44ed7e){const _0x103b07=_0x12d037;return _0x14077a[_0x103b07(0xebe)][_0x103b07(0xf5d)]({'id':_0x44ed7e['id']})[_0x103b07(0x1d77)][_0x103b07(0x1cb0)](function(_0x5a9bd5){const _0x25fd76=_0x103b07;_0x34eef5[_0x25fd76(0xc12)][_0x44ed7e['id']]&&_0x39641b()[_0x25fd76(0x9c1)](_0x34eef5[_0x25fd76(0xc12)][_0x44ed7e['id']],_0x39641b()['pick'](_0x5a9bd5,_0x435e2d)),_0x34eef5[_0x25fd76(0x212d)][_0x44ed7e['id']]&&_0x39641b()[_0x25fd76(0x9c1)](_0x34eef5[_0x25fd76(0x212d)][_0x44ed7e['id']],_0x39641b()[_0x25fd76(0x169b)](_0x5a9bd5,_0x435e2d)),_0x18321b(_0x34eef5[_0x25fd76(0xc12)][_0x44ed7e['id']]);})['catch'](function(_0x42a447){const _0xecb2fd=_0x103b07;_0x5a0ace[_0xecb2fd(0x218e)]({'title':_0x42a447[_0xecb2fd(0x291)]?_0xecb2fd(0xeb9)+_0x42a447[_0xecb2fd(0x291)]+'\x20-\x20'+_0x42a447['statusText']:_0xecb2fd(0xcd6),'msg':_0x42a447[_0xecb2fd(0x25c)]?JSON['stringify'](_0x42a447['data'][_0xecb2fd(0x155e)]):_0x42a447[_0xecb2fd(0x147f)]()});});}function _0x511fef(_0x3755e2){const _0x2fa7f2=_0x12d037;_0x2746e2[_0x2fa7f2(0xe27)](_0x2746e2[_0x2fa7f2(0x494)]()[_0x2fa7f2(0x27e1)](!![])[_0x2fa7f2(0x1386)]('Legend')['htmlContent'](_0x2fa7f2(0x26a))['ok']('Ok')[_0x2fa7f2(0x728)](_0x3755e2));}function _0x38ac20(_0xee456d,_0x13251d){const _0x36b174=_0x12d037;_0x2746e2['show']({'controller':_0x36b174(0x7e6),'controllerAs':'vm','templateUrl':_0x535a6f,'parent':angular[_0x36b174(0x1853)](_0x430d38[_0x36b174(0x1ed9)]),'targetEvent':_0x13251d,'clickOutsideToClose':!![],'locals':{'agent':_0xee456d,'agents':[],'channel':_0x36b174(0x689),'direction':'inbound','crudPermissions':_0x34eef5[_0x36b174(0x1b1a)]}});}function _0x11dd9e(_0x1ee751){return _0x1ee751==='pause'||_0x1ee751==='*pause';}function _0x2aa74d(_0x1772a2){const _0x4ba296=_0x12d037;return _0x1772a2===_0x4ba296(0x785);}function _0x1a4d8f(_0x52a813){const _0x5e101e=_0x12d037;return _0x52a813===_0x5e101e(0x1767);}function _0x5c35dd(_0x1700e4){const _0x25a971=_0x12d037;return _0x1700e4===_0x25a971(0x8df)||_0x1700e4===_0x25a971(0x1c9d)||_0x1700e4===_0x25a971(0x13a2)||_0x1700e4==='ringing'||_0x39641b()[_0x25a971(0x958)](_0x1700e4);}function _0x30fb71(_0x1491e0,_0x42ede1){const _0x34ffd1=_0x12d037;if(_0x42ede1===_0x34ffd1(0x1fd4)){if(_0x1491e0[_0x42ede1+_0x34ffd1(0x938)]!==_0x34ffd1(0x8df))return _0x1491e0[_0x42ede1+_0x34ffd1(0x938)];if(_0x1491e0[_0x42ede1+_0x34ffd1(0x1e09)])return _0x1491e0[_0x42ede1+_0x34ffd1(0x938)]='pause','pause';return _0x34ffd1(0x8df);}else{if(_0x1491e0[_0x42ede1+_0x34ffd1(0x1e09)])return _0x1491e0[_0x42ede1+_0x34ffd1(0x938)]=_0x34ffd1(0x785),_0x34ffd1(0x785);return _0x1491e0[_0x42ede1+_0x34ffd1(0x938)];}}function _0x18321b(_0x4850c6){const _0x3a9ba1=_0x12d037;let _0x4bd0e5='unknown';if(_0x39641b()[_0x3a9ba1(0x1aa3)]([_0x30fb71(_0x4850c6,'voice'),_0x30fb71(_0x4850c6,_0x3a9ba1(0x174c)),_0x30fb71(_0x4850c6,_0x3a9ba1(0x2651)),_0x30fb71(_0x4850c6,_0x3a9ba1(0x15e0)),_0x30fb71(_0x4850c6,_0x3a9ba1(0x689)),_0x30fb71(_0x4850c6,'whatsapp'),_0x30fb71(_0x4850c6,_0x3a9ba1(0x1944))],_0x11dd9e))_0x4bd0e5=_0x3a9ba1(0x785);else{if(_0x39641b()[_0x3a9ba1(0x727)]([_0x30fb71(_0x4850c6,_0x3a9ba1(0x1fd4)),_0x30fb71(_0x4850c6,'chat'),_0x30fb71(_0x4850c6,'mail'),_0x30fb71(_0x4850c6,_0x3a9ba1(0x15e0)),_0x30fb71(_0x4850c6,_0x3a9ba1(0x689)),_0x30fb71(_0x4850c6,_0x3a9ba1(0x2476)),_0x30fb71(_0x4850c6,_0x3a9ba1(0x1944))],_0x11dd9e))_0x4bd0e5=_0x3a9ba1(0x1767);else _0x39641b()[_0x3a9ba1(0x1aa3)]([_0x30fb71(_0x4850c6,_0x3a9ba1(0x1fd4)),_0x30fb71(_0x4850c6,_0x3a9ba1(0x174c)),_0x30fb71(_0x4850c6,'mail'),_0x30fb71(_0x4850c6,'openchannel'),_0x30fb71(_0x4850c6,_0x3a9ba1(0x689)),_0x30fb71(_0x4850c6,'whatsapp'),_0x30fb71(_0x4850c6,_0x3a9ba1(0x1944))],_0x5c35dd)?_0x4bd0e5=_0x3a9ba1(0x8df):_0x4bd0e5='busy';}_0x4850c6['globalStatus']!==_0x4bd0e5&&(_0x4850c6[_0x3a9ba1(0x1fbe)]=_0x4bd0e5,_0x4850c6[_0x3a9ba1(0x1a8e)]?(_0x4850c6[_0x3a9ba1(0x1a8e)]=![],_0x4850c6[_0x3a9ba1(0xdb9)]=_0x11dd9e(_0x4bd0e5)?_0x39641b()['toNumber'](_0x543b5a()(_0x4850c6['lastPauseAt'])[_0x3a9ba1(0x1f31)]('x')):_0x39641b()[_0x3a9ba1(0xb33)]([_0x4850c6[_0x3a9ba1(0xc9c)],_0x4850c6[_0x3a9ba1(0x1b11)],_0x4850c6[_0x3a9ba1(0x568)],_0x4850c6[_0x3a9ba1(0x9eb)],_0x4850c6['whatsappStatusTime'],_0x4850c6['openchannelStatusTime'],_0x4850c6[_0x3a9ba1(0x1997)]])):_0x4850c6[_0x3a9ba1(0xdb9)]=_0x39641b()[_0x3a9ba1(0x106d)](_0x543b5a()()[_0x3a9ba1(0x1f31)]('x')));}function _0x182579(_0x47265b){const _0x484e64=_0x12d037,_0x43aced=_0x39641b()[_0x484e64(0x1f2c)](_0x34eef5[_0x484e64(0xae2)]['order'],'-')?'desc':_0x484e64(0x24cc);return _0x39641b()[_0x484e64(0x17ca)](_0x47265b,[_0x34eef5['query'][_0x484e64(0x237f)][_0x484e64(0x288f)]('-','')],[_0x43aced]);}function _0x4c8f17(){const _0x190cd3=_0x12d037;_0x41df37&&(_0x2d14ec[_0x190cd3(0x696)](_0x41df37),_0x41df37=null);}function _0x151154(_0x4c5707,_0x12ca08){const _0x29983a=_0x12d037;return _0x14077a[_0x29983a(0xebe)][_0x29983a(0x687)]({'id':_0x4c5707['id']},{'screenrecording':_0x12ca08})[_0x29983a(0x1d77)][_0x29983a(0x1c4)](function(_0x593ada){const _0x294a1d=_0x29983a;_0x5a0ace[_0x294a1d(0x218e)]({'title':_0x593ada['status']?_0x294a1d(0xeb9)+_0x593ada['status']+_0x294a1d(0x1657)+_0x593ada[_0x294a1d(0xc22)]:'api.user.update','msg':_0x593ada[_0x294a1d(0x25c)]?JSON[_0x294a1d(0x2701)](_0x593ada[_0x294a1d(0x25c)][_0x294a1d(0x155e)]):_0x593ada[_0x294a1d(0x147f)]()});});}_0x3e8e70[_0x12d037(0x1d6)]('$destroy',function(){const _0x613bc=_0x12d037;_0x244426[_0x613bc(0xfb8)](_0x613bc(0x2464)),_0x244426['removeAllListeners'](_0x613bc(0x14c6)),_0x244426[_0x613bc(0xfb8)]('user:agentconnect'),_0x244426[_0x613bc(0xfb8)](_0x613bc(0x10b3)),_0x4c8f17();});}const _0xcd2976=_0x28c2f5;;const _0x8822b6=_0x5074a3['p']+_0x5537c6(0x153b);;const _0x16f2db=_0x5074a3['p']+_0x5537c6(0x7f6);;_0x20bdda[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$timeout','$mdDialog','$q',_0x5537c6(0x22bf),_0x5537c6(0x1714),_0x5537c6(0x971),'rpcQueues',_0x5537c6(0x142b),_0x5537c6(0x1986),_0x5537c6(0x9bf),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x1774)];function _0x20bdda(_0x8fdd30,_0x3e49b7,_0x3e2e5f,_0x549ab7,_0x203f90,_0x46a91,_0x526322,_0x3825c4,_0x396a57,_0x2d7471,_0x2331bf,_0x2c5594,_0x28b30c,_0x44d21d){const _0x3a7526=_0x5537c6,_0x14dfd7=this,_0x5353f1=['loggedIn','available',_0x3a7526(0x26b6),_0x3a7526(0x192a),_0x3a7526(0xfb2),'originated',_0x3a7526(0x155e),_0x3a7526(0x737),_0x3a7526(0xda8),_0x3a7526(0xf67),'paused'];_0x14dfd7[_0x3a7526(0xe76)]=_0x44d21d[_0x3a7526(0x21e8)](),_0x14dfd7['count']=_0x526322[_0x3a7526(0x184d)]?_0x526322[_0x3a7526(0x184d)]:0x0,_0x14dfd7[_0x3a7526(0x971)]=_0x526322?_0x39641b()[_0x3a7526(0x2631)](_0x526322[_0x3a7526(0x2214)]?_0x526322['rows']:[],'id'):{},_0x14dfd7[_0x3a7526(0x2255)]=_0x3825c4?_0x39641b()['keyBy'](_0x3825c4[_0x3a7526(0x2214)]?_0x3825c4[_0x3a7526(0x2214)]:[],'id'):{},_0x14dfd7[_0x3a7526(0x44a)]=_0x2c5594,_0x14dfd7[_0x3a7526(0x2199)]=_0x28b30c&&_0x28b30c['count']==0x1?_0x28b30c[_0x3a7526(0x2214)][0x0]:null,_0x14dfd7[_0x3a7526(0x1b1a)]=_0x44d21d[_0x3a7526(0x14ea)](_0x14dfd7[_0x3a7526(0x2199)]?_0x14dfd7[_0x3a7526(0x2199)][_0x3a7526(0x1b1a)]:null);_0x44d21d[_0x3a7526(0x22b6)](_0x3a7526(0x1c60))?_0x14dfd7[_0x3a7526(0xae2)]={'type':'inbound','sort':'-updatedAt','limit':0xa,'page':0x1}:_0x14dfd7[_0x3a7526(0xae2)]={'id':_0x14dfd7[_0x3a7526(0xe76)]['id'],'channel':_0x3a7526(0x689),'type':_0x3a7526(0x26c0),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x14dfd7[_0x3a7526(0x829)]=_0x10830c,_0x14dfd7['getQueues']=_0x5dfbe7,_0x14dfd7['createOrEditSmsQueue']=_0x3b7cd6,_0x14dfd7[_0x3a7526(0x1be7)]=_0x21bbc3,_0x14dfd7[_0x3a7526(0x25f6)]=_0x81c96,_0x14dfd7[_0x3a7526(0x294c)]=_0x42748c,_0x14dfd7[_0x3a7526(0xc88)]=_0x32b201,_0x14dfd7[_0x3a7526(0x365)]=_0x1a389a,_0x14dfd7[_0x3a7526(0x18e4)]=_0x3b0c2f,_0x14dfd7[_0x3a7526(0x26c9)]=_0x1d69dc,_0x14dfd7[_0x3a7526(0x3be)]=_0x5d89b7,_0x14dfd7[_0x3a7526(0x129c)]=_0xf9f8c4,_0x14dfd7[_0x3a7526(0x237f)]=[],_0x39641b()[_0x3a7526(0x1ebd)](_0x14dfd7[_0x3a7526(0x971)],function(_0x6adb7c){const _0x5a268a=_0x3a7526;_0x14dfd7[_0x5a268a(0x237f)][_0x5a268a(0x2785)](_0x6adb7c['id']);}),_0x2d7471['on'](_0x3a7526(0xc51),_0x14dfd7['onSave']),_0x2d7471['on']('userSmsQueue:save',_0x14dfd7[_0x3a7526(0xc88)]),_0x2d7471['on']('userSmsQueue:remove',_0x14dfd7['onRemoveMember']),_0x2d7471['on'](_0x3a7526(0x14c6),_0x14dfd7[_0x3a7526(0x18e4)]),_0x2d7471['on']('userVoiceQueue:remove',_0x14dfd7[_0x3a7526(0x3be)]),_0x2d7471['on'](_0x3a7526(0x828),_0x14dfd7[_0x3a7526(0x26c9)]);function _0xf9f8c4(){const _0x154df5=_0x3a7526,_0x24b340=[];return _0x39641b()['forIn'](_0x14dfd7['queues'],function(_0x19b91e,_0x39f9b1){const _0x43369f=a0_0x5cbd;_0x19b91e[_0x43369f(0x139c)]=0x0,_0x19b91e[_0x43369f(0x29a2)]=0x0,_0x14dfd7[_0x43369f(0x971)][_0x39f9b1][_0x43369f(0xc12)]={},_0x24b340['push'](_0x396a57['smsQueue']['getMembers']({'id':_0x39f9b1})['$promise']),_0x14dfd7[_0x43369f(0x2255)][_0x39f9b1]&&_0x39641b()['merge'](_0x19b91e,_0x39641b()[_0x43369f(0x169b)](_0x14dfd7[_0x43369f(0x2255)][_0x39f9b1],_0x5353f1));}),_0x549ab7[_0x154df5(0x223b)](_0x24b340)[_0x154df5(0x1cb0)](function(_0xcf68c){const _0x5591d1=_0x154df5;for(let _0x2ba652=0x0;_0x2ba652<_0xcf68c[_0x5591d1(0xfd0)];_0x2ba652+=0x1){for(let _0x17bbb7=0x0;_0x17bbb7<_0xcf68c[_0x2ba652]['rows'][_0x5591d1(0xfd0)];_0x17bbb7++){_0xcf68c[_0x2ba652]['rows'][_0x17bbb7]['paused']&&_0x14dfd7[_0x5591d1(0x971)][_0xcf68c[_0x2ba652][_0x5591d1(0x2214)][_0x17bbb7][_0x5591d1(0x22d8)]]['paused']++,_0x14dfd7[_0x5591d1(0x971)][_0xcf68c[_0x2ba652][_0x5591d1(0x2214)][_0x17bbb7][_0x5591d1(0x22d8)]][_0x5591d1(0x29a2)]++,_0x14dfd7['queues'][_0xcf68c[_0x2ba652]['rows'][_0x17bbb7][_0x5591d1(0x22d8)]][_0x5591d1(0xc12)][_0xcf68c[_0x2ba652]['rows'][_0x17bbb7]['UserId']]=_0xcf68c[_0x2ba652]['rows'][_0x17bbb7][_0x5591d1(0x22d8)];}}})[_0x154df5(0x1c4)](function(_0x596d2a){const _0x32e5f3=_0x154df5;console[_0x32e5f3(0x218e)](_0x596d2a);});}function _0x42748c(_0x474285){const _0x2fdea3=_0x3a7526;_0x14dfd7['queues'][_0x474285['id']]&&_0x39641b()[_0x2fdea3(0x9c1)](_0x14dfd7[_0x2fdea3(0x971)][_0x474285['id']],_0x39641b()[_0x2fdea3(0x169b)](_0x474285,_0x5353f1));}function _0x32b201(_0x2b4d43){const _0x3cc165=_0x3a7526;_0x14dfd7[_0x3cc165(0x971)][_0x2b4d43[_0x3cc165(0x22d8)]]&&_0x14dfd7[_0x3cc165(0x971)][_0x2b4d43[_0x3cc165(0x22d8)]][_0x3cc165(0x29a2)]++;}function _0x1a389a(_0x40cfaa){const _0x20b269=_0x3a7526;_0x14dfd7['queues'][_0x40cfaa[_0x20b269(0x22d8)]]&&_0x14dfd7[_0x20b269(0x971)][_0x40cfaa[_0x20b269(0x22d8)]][_0x20b269(0x29a2)]--;}function _0x3b0c2f(_0x568342){const _0x2a0df3=_0x3a7526;console[_0x2a0df3(0x1b4f)](_0x2a0df3(0x18e4),_0x568342);if(_0x568342[_0x2a0df3(0x2478)])_0x39641b()[_0x2a0df3(0x1ebd)](_0x14dfd7[_0x2a0df3(0x971)],function(_0x4c421b){const _0x27dcda=_0x2a0df3;_0x4c421b['agents'][_0x568342['id']]&&(_0x4c421b['paused']+=0x1,console[_0x27dcda(0x1b4f)](_0x27dcda(0x785)));});else!_0x568342[_0x2a0df3(0x2478)]&&_0x39641b()[_0x2a0df3(0x1ebd)](_0x14dfd7['queues'],function(_0x22d12d){const _0x14afc9=_0x2a0df3;_0x22d12d[_0x14afc9(0xc12)][_0x568342['id']]&&(_0x22d12d[_0x14afc9(0x139c)]>0x0&&(_0x22d12d[_0x14afc9(0x139c)]-=0x1,console[_0x14afc9(0x1b4f)](_0x14afc9(0xf5d))));});}function _0x1d69dc(_0x28d1b5){const _0x19852a=_0x3a7526;console['log'](_0x19852a(0x2557),_0x28d1b5),_0x14dfd7[_0x19852a(0x971)][_0x28d1b5[_0x19852a(0x22d8)]]&&(_0x14dfd7[_0x19852a(0x971)][_0x28d1b5['SmsQueueId']][_0x19852a(0x29a2)]+=0x1,_0x14dfd7[_0x19852a(0x971)][_0x28d1b5['SmsQueueId']][_0x19852a(0xc12)][_0x28d1b5[_0x19852a(0x21ab)]]=_0x28d1b5[_0x19852a(0x22d8)]);}function _0x5d89b7(_0x3aab5d){const _0x34e56a=_0x3a7526;console[_0x34e56a(0x1b4f)](_0x34e56a(0x3be),_0x3aab5d),_0x14dfd7[_0x34e56a(0x971)][_0x3aab5d[_0x34e56a(0x22d8)]]&&_0x14dfd7[_0x34e56a(0x971)][_0x3aab5d[_0x34e56a(0x22d8)]][_0x34e56a(0x29a2)]>0x0&&(_0x14dfd7[_0x34e56a(0x971)][_0x3aab5d[_0x34e56a(0x22d8)]]['loggedInDb']-=0x1,delete _0x14dfd7['queues'][_0x3aab5d[_0x34e56a(0x22d8)]]['agents'][_0x3aab5d['UserId']]);}let _0x43fd10=!![],_0x1fcf89=0x1;_0x8fdd30['$watch'](_0x3a7526(0x957),function(_0x598cc8,_0x3e655e){const _0x1983df=_0x3a7526;_0x43fd10?_0x3e49b7(function(){_0x43fd10=![];}):(!_0x3e655e&&(_0x1fcf89=_0x14dfd7[_0x1983df(0xae2)][_0x1983df(0x1c7b)]),_0x598cc8!==_0x3e655e&&(_0x14dfd7[_0x1983df(0xae2)][_0x1983df(0x1c7b)]=0x1),!_0x598cc8&&(_0x14dfd7[_0x1983df(0xae2)][_0x1983df(0x1c7b)]=_0x1fcf89),_0x14dfd7['getQueues']());});function _0x10830c(_0x426e31){const _0x34f0e0=_0x3a7526;_0x14dfd7[_0x34f0e0(0x184d)]=_0x426e31[_0x34f0e0(0x184d)],_0x14dfd7['queues']=_0x426e31?_0x39641b()['keyBy'](_0x426e31[_0x34f0e0(0x2214)]?_0x426e31['rows']:[],'id'):{};if(_0x426e31[_0x34f0e0(0x2214)]){_0x14dfd7[_0x34f0e0(0x237f)]=[];for(let _0x5c465a=0x0;_0x5c465a<_0x426e31[_0x34f0e0(0x2214)]['length'];_0x5c465a++){_0x14dfd7['order'][_0x34f0e0(0x2785)](_0x426e31[_0x34f0e0(0x2214)][_0x5c465a]['id']);}}_0xf9f8c4();}function _0x5dfbe7(){const _0x43026d=_0x3a7526;_0x14dfd7['query'][_0x43026d(0x184b)]=(_0x14dfd7[_0x43026d(0xae2)]['page']-0x1)*_0x14dfd7[_0x43026d(0xae2)][_0x43026d(0x236)],_0x44d21d[_0x43026d(0x22b6)](_0x43026d(0x1c60))?_0x14dfd7[_0x43026d(0x2061)]=_0x396a57[_0x43026d(0x62e)][_0x43026d(0xbf7)](_0x14dfd7[_0x43026d(0xae2)],_0x10830c)[_0x43026d(0x1d77)]:(_0x14dfd7[_0x43026d(0xae2)]['id']=_0x14dfd7['userProfile']['id'],_0x14dfd7['query']['section']=_0x43026d(0x14ad),_0x14dfd7[_0x43026d(0x2061)]=_0x396a57[_0x43026d(0x44a)][_0x43026d(0x1810)](_0x14dfd7[_0x43026d(0xae2)],_0x10830c)[_0x43026d(0x1d77)]);}function _0x3b7cd6(_0x28280b,_0x59d7ad){const _0x292de7=_0x3a7526;_0x3e2e5f[_0x292de7(0xe27)]({'controller':_0x292de7(0x19e7),'controllerAs':'vm','templateUrl':_0x8822b6,'parent':angular[_0x292de7(0x1853)](_0x203f90['body']),'targetEvent':_0x28280b,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x59d7ad,'smsQueues':_0x39641b()[_0x292de7(0x27aa)](_0x14dfd7[_0x292de7(0x971)]),'license':null,'setting':null,'crudPermissions':_0x14dfd7['crudPermissions']}});}function _0x21bbc3(_0x1339a9,_0x4181e8){const _0x39799e=_0x3a7526;_0x3e2e5f['show']({'controller':_0x39799e(0x1ce5),'controllerAs':'vm','templateUrl':_0x16f2db,'parent':angular[_0x39799e(0x1853)](_0x203f90[_0x39799e(0x1ed9)]),'targetEvent':_0x1339a9,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x4181e8,'smsQueues':_0x14dfd7['queues']?_0x14dfd7[_0x39799e(0x971)][_0x39799e(0x2214)]:[],'realtime':![],'crudPermissions':_0x14dfd7['crudPermissions']}});}function _0x81c96(_0x4c9551){const _0x43f9c1=_0x3a7526;return _0x396a57[_0x43f9c1(0x62e)][_0x43f9c1(0x687)](_0x4c9551)[_0x43f9c1(0x1d77)][_0x43f9c1(0x1cb0)](function(){const _0xc60f37=_0x43f9c1;_0x2331bf[_0xc60f37(0x829)]({'title':_0xc60f37(0x264c),'msg':_0x4c9551[_0xc60f37(0x16b6)]?_0x4c9551[_0xc60f37(0x16b6)]+_0xc60f37(0x1068):''});})[_0x43f9c1(0x1c4)](function(_0x48e90b){const _0x3b9a0c=_0x43f9c1;_0x2331bf[_0x3b9a0c(0x218e)]({'title':_0x3b9a0c(0x454),'msg':_0x48e90b[_0x3b9a0c(0x155e)]});});}_0x8fdd30[_0x3a7526(0x1d6)](_0x3a7526(0x291c),function(){const _0x2d56f1=_0x3a7526;_0x2d7471['removeAllListeners'](_0x2d56f1(0xc51)),_0x2d7471[_0x2d56f1(0xfb8)](_0x2d56f1(0x15c4)),_0x2d7471[_0x2d56f1(0xfb8)]('userSmsQueue:save'),_0x2d7471['removeAllListeners'](_0x2d56f1(0x14c6)),_0x2d7471[_0x2d56f1(0xfb8)]('userVoiceQueue:remove'),_0x2d7471[_0x2d56f1(0xfb8)]('userVoiceQueue:save');});}const _0x591e8f=_0x20bdda;;function _0x1c2759(){const _0x5ae019=_0x5537c6;return{'status':{'registered':_0x5ae019(0x1170),'unregistered':_0x5ae019(0x29a3),'lagged':_0x5ae019(0x29a3),'reachable':_0x5ae019(0x1170),'unreachable':_0x5ae019(0x29a3),'unknown':_0x5ae019(0xb74)},'state':{'unknown':_0x5ae019(0x181),'not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':_0x5ae019(0xd57),'busy':_0x5ae019(0x35b),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':'grey-fg\x20icon-phone-hangup','ringing':_0x5ae019(0x1c43),'ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':_0x5ae019(0x1825)},'channelStatus':{'ring':_0x5ae019(0x1c43),'up':_0x5ae019(0x142f),'hangup':_0x5ae019(0xe67)},'channelStatusOut':{'ring':_0x5ae019(0x53c),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x5ae019(0xe67)}};}const _0x5f3998=_0x1c2759;;_0x21609e['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x1986)];function _0x21609e(_0x1a42f9,_0x53d7d0,_0x118060){const _0x103c7f=_0x5537c6,_0x236030=this;_0x118060[_0x103c7f(0x22e8)](),_0x118060[_0x103c7f(0x8b0)](),_0x236030['selectedTab']=0x0;switch(_0x53d7d0[_0x103c7f(0x1970)][_0x103c7f(0x16b6)]){case _0x103c7f(0x15e):_0x236030['selectedTab']=0x0;break;case _0x103c7f(0xabe):_0x236030[_0x103c7f(0x8ec)]=0x1;break;default:_0x236030[_0x103c7f(0x8ec)]=0x0,_0x53d7d0['go'](_0x103c7f(0x15e));}_0x1a42f9[_0x103c7f(0x614)](_0x103c7f(0x1ced),function(_0x52ca3f,_0xa6af92){const _0xe4edaa=_0x103c7f;if(_0x52ca3f!==_0xa6af92)switch(_0x52ca3f){case 0x0:_0x53d7d0['go']('app.sms.realtime.agents');break;case 0x1:_0x53d7d0['go'](_0xe4edaa(0xabe));break;default:_0x53d7d0['go']('app.sms.realtime.agents');}});}const _0x2e83a1=_0x21609e;;_0x131475['$inject']=[_0x5537c6(0xbd6)];function _0x131475(_0x47d149){const _0xcdf623=_0x5537c6;_0x47d149[_0xcdf623(0x27e0)](_0xcdf623(0x6a3),{'url':'/realtime','views':{'content@app':{'templateUrl':_0x102b84,'controller':_0xcdf623(0xff5)}},'resolve':{'userProfile':['apiResolver',_0xcdf623(0x1774),function(_0x5b99c1,_0x32fcbb){const _0x154bd7=_0xcdf623;return _0x32fcbb[_0x154bd7(0x22b6)](_0x154bd7(0x1c60))?null:_0x5b99c1[_0x154bd7(0x19a3)](_0x154bd7(0x9ae),{'fields':'id,name,crudPermissions','id':_0x32fcbb[_0x154bd7(0x21e8)]()[_0x154bd7(0x13c1)]});}],'userProfileSection':['apiResolver',_0xcdf623(0x1774),function(_0x31a235,_0x2fdb05){const _0x30a1e7=_0xcdf623;return _0x2fdb05[_0x30a1e7(0x22b6)](_0x30a1e7(0x1c60))?null:_0x31a235['resolve'](_0x30a1e7(0x2182),{'fields':_0x30a1e7(0x1f5f),'userProfileId':_0x2fdb05[_0x30a1e7(0x21e8)]()[_0x30a1e7(0x13c1)],'sectionId':0x2c6});}]},'authenticate':!![],'permissionId':0x2c6})[_0xcdf623(0x27e0)](_0xcdf623(0x15e),{'url':_0xcdf623(0xefc),'controller':'AgentsSmsRealtimeController\x20as\x20vm','templateUrl':_0x143826,'resolve':{'pauses':[_0xcdf623(0x1e0b),function(_0x361317){const _0x3f1e29=_0xcdf623;return _0x361317['resolve'](_0x3f1e29(0xeeb),{'nolimit':!![]});}],'agents':[_0xcdf623(0x1e0b),'Auth',function(_0x364440,_0x1a6713){const _0x527ee4=_0xcdf623;return _0x1a6713[_0x527ee4(0x22b6)](_0x527ee4(0x1c60))?_0x364440[_0x527ee4(0x19a3)](_0x527ee4(0x1c86),{'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':_0x527ee4(0x1eff),'sort':_0x527ee4(0x1d14),'nolimit':!![]}):_0x364440['resolve']('userProfile@getResources',{'id':_0x1a6713[_0x527ee4(0x21e8)]()['userProfileId'],'section':_0x527ee4(0x2536),'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':_0x527ee4(0x1d14),'nolimit':!![]});}],'userProfile':[_0xcdf623(0x1e0b),_0xcdf623(0x1774),function(_0x136674,_0x2385a6){const _0x32ea77=_0xcdf623;return _0x2385a6[_0x32ea77(0x22b6)](_0x32ea77(0x1c60))?null:_0x136674[_0x32ea77(0x19a3)](_0x32ea77(0x9ae),{'fields':_0x32ea77(0x279),'id':_0x2385a6[_0x32ea77(0x21e8)]()[_0x32ea77(0x13c1)]});}],'userProfileSection':[_0xcdf623(0x1e0b),_0xcdf623(0x1774),function(_0x1ac05c,_0x4b2e41){const _0x27345c=_0xcdf623;return _0x4b2e41[_0x27345c(0x22b6)](_0x27345c(0x1c60))?null:_0x1ac05c[_0x27345c(0x19a3)](_0x27345c(0x2182),{'fields':_0x27345c(0x1f5f),'userProfileId':_0x4b2e41['getCurrentUser']()[_0x27345c(0x13c1)],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0x472968){const _0x2e8ad1=_0xcdf623;return _0x472968[_0x2e8ad1(0x19a3)]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x2c6})[_0xcdf623(0x27e0)](_0xcdf623(0xabe),{'url':_0xcdf623(0x1596),'controller':_0xcdf623(0x7aa),'templateUrl':_0x30ef41,'resolve':{'queues':[_0xcdf623(0x1e0b),_0xcdf623(0x1774),function(_0xad356,_0x5020b7){const _0x30d5d4=_0xcdf623;return _0x5020b7[_0x30d5d4(0x22b6)](_0x30d5d4(0x1c60))?_0xad356[_0x30d5d4(0x19a3)](_0x30d5d4(0x20c3),{'type':_0x30d5d4(0x26c0),'sort':_0x30d5d4(0x282),'limit':0xa,'offset':0x0}):_0xad356[_0x30d5d4(0x19a3)](_0x30d5d4(0x12da),{'id':_0x5020b7[_0x30d5d4(0x21e8)]()[_0x30d5d4(0x13c1)],'section':'SmsQueues','channel':_0x30d5d4(0x689),'type':_0x30d5d4(0x26c0),'sort':_0x30d5d4(0x282),'limit':0xa,'page':0x1});}],'userProfile':[_0xcdf623(0x1e0b),'Auth',function(_0x3de1fb,_0x171cb0){const _0x3b8a51=_0xcdf623;return _0x171cb0['hasRole'](_0x3b8a51(0x1c60))?null:_0x3de1fb[_0x3b8a51(0x19a3)](_0x3b8a51(0x9ae),{'fields':_0x3b8a51(0x279),'id':_0x171cb0[_0x3b8a51(0x21e8)]()['userProfileId']});}],'userProfileSection':['apiResolver','Auth',function(_0x53817e,_0x436901){const _0x315855=_0xcdf623;return _0x436901[_0x315855(0x22b6)]('admin')?null:_0x53817e[_0x315855(0x19a3)](_0x315855(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x436901[_0x315855(0x21e8)]()[_0x315855(0x13c1)],'sectionId':0x2bd});}],'rpcQueues':[_0xcdf623(0x1e0b),function(_0x2e8851){const _0x9253da=_0xcdf623;return _0x2e8851[_0x9253da(0x19a3)](_0x9253da(0x1cc8));}]},'authenticate':!![],'permissionId':0x2c6});}angular[_0x5537c6(0x9ab)](_0x5537c6(0x6a3),[])['config'](_0x131475)['controller']('AgentsSmsRealtimeController',_0xcd2976)[_0x5537c6(0x6e5)](_0x5537c6(0x23b),_0x591e8f)[_0x5537c6(0x234a)]('helperClasses',_0x5f3998)[_0x5537c6(0x6e5)](_0x5537c6(0x219b),_0x2e83a1);;const _0x18be8d=_0x5074a3['p']+_0x5537c6(0x405);;const _0x55dd3d=_0x5074a3['p']+'src/js/modules/main/apps/sms/views/smsQueues/edit/view.html/view.html';;const _0xcc4008=_0x5074a3['p']+'src/js/modules/main/apps/sms/views/smsAccounts/smsAccounts.html/smsAccounts.html';;const _0x5bad63=_0x5074a3['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/view.html/view.html';;_0x1b339b[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog','$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x1ac),_0x5537c6(0x658),_0x5537c6(0x142b),_0x5537c6(0x1774),'license',_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x1b339b(_0x277f19,_0x16d288,_0x1d9b06,_0x490869,_0x31d08e,_0x303459,_0x5b973c,_0xbd21,_0x37c396,_0x512da8,_0x1ef915,_0x1f1ddb,_0x33ad6a,_0x8b7c25){const _0x5a1b4d=_0x5537c6,_0xd655b1=this;_0xd655b1[_0x5a1b4d(0xe76)]=_0x1ef915[_0x5a1b4d(0x21e8)](),_0xd655b1[_0x5a1b4d(0x1a7c)]=[],_0xd655b1[_0x5a1b4d(0x9ca)]=_0x33ad6a,_0xd655b1[_0x5a1b4d(0x8a5)]=_0x1f1ddb,_0xd655b1[_0x5a1b4d(0x1b1a)]=_0x8b7c25,_0xd655b1[_0x5a1b4d(0xf4c)]={},_0xd655b1[_0x5a1b4d(0x1b0c)]=_0xd655b1[_0x5a1b4d(0x9ca)]&&_0xd655b1['setting'][_0x5a1b4d(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xd655b1[_0x5a1b4d(0x1386)]='SMS.EDIT_SMSACCOUNT',_0xd655b1[_0x5a1b4d(0x658)]=angular[_0x5a1b4d(0x17fe)](_0x37c396),_0xd655b1[_0x5a1b4d(0x1ac)]=_0xbd21,_0xd655b1['newSmsAccount']=![];!_0xd655b1[_0x5a1b4d(0x658)]&&(_0xd655b1['smsAccount']={'remote':_0x1d9b06['protocol']()+_0x5a1b4d(0x138b)+_0x1d9b06['host']()+(_0x1d9b06['port']()?':'+_0x1d9b06[_0x5a1b4d(0x477)]():''),'type':_0x5a1b4d(0x10dd),'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0xd655b1[_0x5a1b4d(0x1386)]=_0x5a1b4d(0xe23),_0xd655b1[_0x5a1b4d(0x1b3d)]=!![]);_0x16d288[_0x5a1b4d(0x1dfe)]['id']&&(_0xd655b1[_0x5a1b4d(0x658)]['SmsAccountId']=_0x16d288['params']['id']);_0xd655b1[_0x5a1b4d(0x280e)]=_0x57b1fc,_0xd655b1[_0x5a1b4d(0xb75)]=_0x554021,_0xd655b1[_0x5a1b4d(0x2611)]=_0x1f7959,_0xd655b1['getDateFromString']=_0x3f5c66,_0xd655b1[_0x5a1b4d(0xda0)]=_0x573033,_0x1ef915[_0x5a1b4d(0x22b6)](_0x5a1b4d(0x1c60))?_0x512da8['cmList'][_0x5a1b4d(0xbf7)]({'fields':'id,name','sort':_0x5a1b4d(0x16b6)})[_0x5a1b4d(0x1d77)][_0x5a1b4d(0x1cb0)](function(_0x358552){const _0xe2e80f=_0x5a1b4d;_0xd655b1[_0xe2e80f(0x1046)]=_0x358552[_0xe2e80f(0x2214)]||[];})[_0x5a1b4d(0x1c4)](function(_0x1273dc){const _0x5500d9=_0x5a1b4d;_0x5b973c[_0x5500d9(0x218e)]({'title':_0x1273dc[_0x5500d9(0x291)]?_0x5500d9(0xeb9)+_0x1273dc[_0x5500d9(0x291)]+_0x5500d9(0x1657)+_0x1273dc[_0x5500d9(0xc22)]:_0x5500d9(0x149e),'msg':_0x1273dc[_0x5500d9(0x25c)]?JSON[_0x5500d9(0x2701)](_0x1273dc[_0x5500d9(0x25c)]):_0x1273dc[_0x5500d9(0x147f)]()});}):_0x512da8['cmList']['get']({'fields':'id,name','sort':_0x5a1b4d(0x16b6)})['$promise']['then'](function(_0x269e95){const _0xe0d0b9=_0x5a1b4d;_0xd655b1[_0xe0d0b9(0x1046)]=_0x269e95[_0xe0d0b9(0x2214)]||[];})[_0x5a1b4d(0x1cb0)](function(){const _0x2e5eef=_0x5a1b4d;return _0x512da8[_0x2e5eef(0x2199)]['get']({'userProfileId':_0xd655b1[_0x2e5eef(0xe76)][_0x2e5eef(0x13c1)],'sectionId':0x12d})['$promise'];})['then'](function(_0x2b64a3){const _0x427856=_0x5a1b4d,_0x972a99=_0x2b64a3&&_0x2b64a3[_0x427856(0x2214)]?_0x2b64a3[_0x427856(0x2214)][0x0]:null;if(!_0x972a99){const _0x1814c8=[];let _0x130430=null;_0xd655b1[_0x427856(0x658)]&&(_0x130430=_0x39641b()[_0x427856(0x13b4)](_0xd655b1[_0x427856(0x1046)],{'id':Number(_0xd655b1[_0x427856(0x658)]['ListId'])}));for(let _0x3c9ee3=0x0;_0x3c9ee3<_0xd655b1[_0x427856(0x1046)][_0x427856(0xfd0)];_0x3c9ee3++){_0x130430&&_0xd655b1[_0x427856(0x1046)][_0x3c9ee3]['id']===_0x130430['id']&&(_0xd655b1[_0x427856(0x1046)][_0x3c9ee3][_0x427856(0x15da)]=![],_0x1814c8[_0x427856(0x2785)](_0xd655b1['lists'][_0x3c9ee3]));}_0xd655b1[_0x427856(0x1046)]=_0x1814c8;}else{if(!_0x972a99[_0x427856(0x12f4)])return _0x512da8[_0x427856(0x1198)][_0x427856(0xbf7)]({'sectionId':_0x972a99['id']})[_0x427856(0x1d77)][_0x427856(0x1cb0)](function(_0x5a6282){const _0x1bc1bb=_0x427856,_0x2b7ddb=_0x39641b()['map'](_0x5a6282[_0x1bc1bb(0x2214)],function(_0x251332){const _0x471883=_0x1bc1bb;return _0x39641b()[_0x471883(0x13b4)](_0xd655b1['lists'],{'id':_0x251332[_0x471883(0x2982)]});});let _0x37a673=null;_0xd655b1[_0x1bc1bb(0x658)]&&(_0x37a673=_0x39641b()['find'](_0xd655b1[_0x1bc1bb(0x1046)],{'id':Number(_0xd655b1['smsAccount']['ListId'])}));if(_0x37a673&&!_0x39641b()['some'](_0x2b7ddb,['id',_0x37a673['id']])){const _0x3c9a01=_0x39641b()[_0x1bc1bb(0x13b4)](_0xd655b1[_0x1bc1bb(0x1046)],{'id':_0x37a673['id']});_0x3c9a01['canSelect']=![],_0x2b7ddb[_0x1bc1bb(0x2785)](_0x3c9a01);}_0xd655b1[_0x1bc1bb(0x1046)]=_0x2b7ddb;});}})[_0x5a1b4d(0x1c4)](function(_0x531622){const _0x301600=_0x5a1b4d;_0x5b973c[_0x301600(0x218e)]({'title':_0x531622[_0x301600(0x291)]?_0x301600(0xeb9)+_0x531622['status']+'\x20-\x20'+_0x531622[_0x301600(0xc22)]:_0x301600(0x113c),'msg':_0x531622['data']?JSON[_0x301600(0x2701)](_0x531622[_0x301600(0x25c)]):_0x531622[_0x301600(0x147f)]()});});function _0x57b1fc(){const _0x47f59b=_0x5a1b4d;_0xd655b1[_0x47f59b(0x1a7c)]=[],_0x512da8[_0x47f59b(0x658)][_0x47f59b(0x1c3f)](_0xd655b1[_0x47f59b(0x658)])[_0x47f59b(0x1d77)][_0x47f59b(0x1cb0)](function(_0x5eba39){const _0x12cf79=_0x47f59b;_0xd655b1[_0x12cf79(0x1ac)][_0x12cf79(0xf63)](_0x5eba39['toJSON']()),_0x5b973c[_0x12cf79(0x829)]({'title':_0x12cf79(0x723),'msg':_0xd655b1[_0x12cf79(0x658)][_0x12cf79(0x16b6)]?_0xd655b1[_0x12cf79(0x658)]['name']+_0x12cf79(0x470):''}),_0x573033(_0x5eba39);})['catch'](function(_0x2b5b9d){const _0x5b8946=_0x47f59b;if(_0x2b5b9d['data']&&_0x2b5b9d['data'][_0x5b8946(0x1a7c)]&&_0x2b5b9d['data'][_0x5b8946(0x1a7c)][_0x5b8946(0xfd0)]){_0xd655b1['errors']=_0x2b5b9d['data'][_0x5b8946(0x1a7c)]||[{'message':_0x2b5b9d[_0x5b8946(0x147f)](),'type':_0x5b8946(0x2311)}];for(let _0x49f432=0x0;_0x49f432<_0x2b5b9d[_0x5b8946(0x25c)][_0x5b8946(0x1a7c)][_0x5b8946(0xfd0)];_0x49f432+=0x1){_0x5b973c['error']({'title':_0x2b5b9d[_0x5b8946(0x25c)][_0x5b8946(0x1a7c)][_0x49f432][_0x5b8946(0x66a)],'msg':_0x2b5b9d[_0x5b8946(0x25c)][_0x5b8946(0x1a7c)][_0x49f432]['message']});}}else _0x5b973c['error']({'title':_0x2b5b9d['status']?_0x5b8946(0xeb9)+_0x2b5b9d['status']+_0x5b8946(0x1657)+_0x2b5b9d[_0x5b8946(0xc22)]:_0x5b8946(0x2311),'msg':_0x2b5b9d[_0x5b8946(0x25c)]?JSON[_0x5b8946(0x2701)](_0x2b5b9d[_0x5b8946(0x25c)][_0x5b8946(0x155e)]):_0x2b5b9d[_0x5b8946(0x147f)]()});});}function _0x554021(){const _0x56f52f=_0x5a1b4d;_0xd655b1['errors']=[],_0x512da8[_0x56f52f(0x658)][_0x56f52f(0x687)]({'id':_0xd655b1[_0x56f52f(0x658)]['id']},_0xd655b1[_0x56f52f(0x658)])[_0x56f52f(0x1d77)][_0x56f52f(0x1cb0)](function(_0x1218ba){const _0xbec1b1=_0x56f52f,_0xc8ba70=_0x39641b()['find'](_0xd655b1[_0xbec1b1(0x1ac)],{'id':_0x1218ba['id']});_0xc8ba70&&_0x39641b()[_0xbec1b1(0x9c1)](_0xc8ba70,_0x39641b()[_0xbec1b1(0x169b)](_0x1218ba[_0xbec1b1(0x19b2)](),_0x39641b()[_0xbec1b1(0x1be5)](_0xc8ba70))),_0x5b973c['success']({'title':_0xbec1b1(0x2827),'msg':_0xd655b1[_0xbec1b1(0x658)]['name']?_0xd655b1[_0xbec1b1(0x658)][_0xbec1b1(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x573033(_0x1218ba);})[_0x56f52f(0x1c4)](function(_0x15bf1c){const _0x2f47f2=_0x56f52f;if(_0x15bf1c[_0x2f47f2(0x25c)]&&_0x15bf1c[_0x2f47f2(0x25c)][_0x2f47f2(0x1a7c)]&&_0x15bf1c[_0x2f47f2(0x25c)][_0x2f47f2(0x1a7c)][_0x2f47f2(0xfd0)]){_0xd655b1[_0x2f47f2(0x1a7c)]=_0x15bf1c[_0x2f47f2(0x25c)][_0x2f47f2(0x1a7c)]||[{'message':_0x15bf1c[_0x2f47f2(0x147f)](),'type':_0x2f47f2(0x3bd)}];for(let _0x4f503b=0x0;_0x4f503b<_0x15bf1c[_0x2f47f2(0x25c)][_0x2f47f2(0x1a7c)][_0x2f47f2(0xfd0)];_0x4f503b++){_0x5b973c[_0x2f47f2(0x218e)]({'title':_0x15bf1c['data']['errors'][_0x4f503b][_0x2f47f2(0x66a)],'msg':_0x15bf1c[_0x2f47f2(0x25c)][_0x2f47f2(0x1a7c)][_0x4f503b][_0x2f47f2(0x155e)]});}}else _0x5b973c[_0x2f47f2(0x218e)]({'title':_0x15bf1c[_0x2f47f2(0x291)]?_0x2f47f2(0xeb9)+_0x15bf1c[_0x2f47f2(0x291)]+_0x2f47f2(0x1657)+_0x15bf1c[_0x2f47f2(0xc22)]:_0x2f47f2(0x3bd),'msg':_0x15bf1c[_0x2f47f2(0x25c)]?JSON[_0x2f47f2(0x2701)](_0x15bf1c[_0x2f47f2(0x25c)][_0x2f47f2(0x155e)]):_0x15bf1c[_0x2f47f2(0x147f)]()});});}function _0x1f7959(_0x417c81){const _0x41e86d=_0x5a1b4d;_0xd655b1[_0x41e86d(0x1a7c)]=[];const _0x2f7424=_0x490869[_0x41e86d(0x1551)]()[_0x41e86d(0x1386)](_0x41e86d(0x1a2e))[_0x41e86d(0x862)](_0x41e86d(0x1d06))[_0x41e86d(0x15ad)](_0x41e86d(0x883))['ok'](_0x41e86d(0x2594))[_0x41e86d(0x696)]('Cancel')[_0x41e86d(0x728)](_0x417c81);_0x490869['show'](_0x2f7424)['then'](function(){const _0x2848e8=_0x41e86d;_0x512da8[_0x2848e8(0x658)][_0x2848e8(0x111d)]({'id':_0xd655b1[_0x2848e8(0x658)]['id']})[_0x2848e8(0x1d77)][_0x2848e8(0x1cb0)](function(){const _0x552980=_0x2848e8;_0x39641b()[_0x552980(0x152a)](_0xd655b1['smsAccounts'],{'id':_0xd655b1[_0x552980(0x658)]['id']}),_0x5b973c[_0x552980(0x829)]({'title':_0x552980(0x9c6),'msg':(_0xd655b1[_0x552980(0x658)][_0x552980(0x16b6)]||'smsAccount')+'\x20has\x20been\x20deleted!'}),_0x573033(_0xd655b1[_0x552980(0x658)]);})['catch'](function(_0x252a65){const _0x2f8546=_0x2848e8;if(_0x252a65['data']&&_0x252a65[_0x2f8546(0x25c)][_0x2f8546(0x1a7c)]&&_0x252a65[_0x2f8546(0x25c)][_0x2f8546(0x1a7c)][_0x2f8546(0xfd0)]){_0xd655b1[_0x2f8546(0x1a7c)]=_0x252a65[_0x2f8546(0x25c)]['errors']||[{'message':_0x252a65[_0x2f8546(0x147f)](),'type':_0x2f8546(0x24b2)}];for(let _0x4661d0=0x0;_0x4661d0<_0x252a65['data']['errors']['length'];_0x4661d0++){_0x5b973c['error']({'title':_0x252a65[_0x2f8546(0x25c)][_0x2f8546(0x1a7c)][_0x4661d0]['type'],'msg':_0x252a65[_0x2f8546(0x25c)][_0x2f8546(0x1a7c)][_0x4661d0][_0x2f8546(0x155e)]});}}else _0x5b973c[_0x2f8546(0x218e)]({'title':_0x252a65['status']?'API:'+_0x252a65['status']+_0x2f8546(0x1657)+_0x252a65[_0x2f8546(0xc22)]:_0x2f8546(0x24b2),'msg':_0x252a65[_0x2f8546(0x25c)]?JSON[_0x2f8546(0x2701)](_0x252a65['data'][_0x2f8546(0x155e)]):_0x252a65[_0x2f8546(0x155e)]||_0x252a65[_0x2f8546(0x147f)]()});});},function(){});}function _0x3f5c66(_0x3b1502){return _0x3b1502===null?undefined:new Date(_0x3b1502);}function _0x573033(_0x14954b){_0x490869['hide'](_0x14954b);}}const _0x3e97b4=_0x1b339b;;const _0x102f87=_0x5074a3['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/agent/dialog.html/dialog.html';;const _0x2783dd=_0x5074a3['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/amazonlex/dialog.html/dialog.html';;const _0x206525=_0x5074a3['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/autoreply/dialog.html/dialog.html';;const _0x273187=_0x5074a3['p']+_0x5537c6(0x22c9);;const _0x8b518a=_0x5074a3['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/dialogflow/dialog.html/dialog.html';;const _0x2afe20=_0x5074a3['p']+_0x5537c6(0x13fa);;const _0x5d7706=_0x5074a3['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotop/dialog.html/dialog.html';;const _0x3fd06c=_0x5074a3['p']+_0x5537c6(0x1512);;const _0x4bbf8f=_0x5074a3['p']+_0x5537c6(0x1d3f);;const _0x11d7e3=_0x5074a3['p']+_0x5537c6(0x2280);;const _0x234afe=_0x5074a3['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/system/dialog.html/dialog.html';;const _0x4b364e=_0x5074a3['p']+_0x5537c6(0x234c);;_0xa25101[_0x5537c6(0x15b6)]=['api',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),'Auth'];const _0x5c8729={'agent':_0x102f87,'amazonlex':_0x2783dd,'autoreply':_0x206525,'close':_0x273187,'dialogflow':_0x8b518a,'gotoif':_0x2afe20,'gotop':_0x5d7706,'interval':_0x3fd06c,'noop':_0x4bbf8f,'queue':_0x11d7e3,'system':_0x234afe,'tag':_0x4b364e};function _0xa25101(_0x4306e4,_0x5ef6a1,_0xd34dec,_0x184f4d,_0x4ce48b){const _0x4849b1=_0x5537c6,_0x4f36af=this;_0x4f36af[_0x4849b1(0xe76)]=_0x4ce48b[_0x4849b1(0x21e8)](),_0x4f36af[_0x4849b1(0x658)]={},_0x4f36af[_0x4849b1(0xe2a)]={'count':0x0,'rows':[]},_0x4f36af['selectedSmsAccountApps']=[],_0x4f36af['crudPermissions'],_0x4f36af[_0x4849b1(0xae2)]={'sort':_0x4849b1(0x521)},_0x4f36af[_0x4849b1(0x196f)]=_0x39641b()[_0x4849b1(0x988)](_0x39641b()['sortBy']([{'app':'Interval','appType':_0x4849b1(0x1ac8),'types':[_0x4849b1(0x2017),'custom',_0x4849b1(0x240)],'fields':[],'isApp':![]},{'app':_0x4849b1(0x1234),'appType':'noop','type':_0x4849b1(0x1234),'icon':_0x4849b1(0x33e),'interval':_0x4849b1(0x965),'required':!![],'isApp':!![],'fields':[{'title':_0x4849b1(0x1e10),'name':'value','type':_0x4849b1(0x19d3),'param':0x0}]},{'app':_0x4849b1(0x7be),'appType':_0x4849b1(0x7be),'type':_0x4849b1(0x7be),'icon':_0x4849b1(0x33e),'interval':_0x4849b1(0x965),'required':!![],'isApp':!![],'extraApi':[{'name':_0x4849b1(0x9a9),'field':{'name':_0x4849b1(0x1822),'key':_0x4849b1(0x16b6)},'route':_0x4849b1(0x1822),'filters':{'fields':_0x4849b1(0x43c),'sort':_0x4849b1(0x16b6),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x4849b1(0x1b9),'name':_0x4849b1(0xd0d),'type':_0x4849b1(0x19d3),'required':!![],'param':0x0},{'title':_0x4849b1(0x1b02),'name':_0x4849b1(0x1822),'type':_0x4849b1(0xb52),'values':_0x4849b1(0x9a9),'value':'variable.name','option':_0x4849b1(0x3f3),'defaultValues':[{'value':'\x27\x27','option':_0x4849b1(0x2001)}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x4849b1(0x265b),'appType':_0x4849b1(0x265b),'type':'goto','icon':'icon-apps','interval':_0x4849b1(0x965),'isApp':!![],'fields':[{'title':_0x4849b1(0x1240),'name':'priority','type':_0x4849b1(0x83d),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x4849b1(0x13a0),'appType':'gotoif','type':'gotoif','icon':_0x4849b1(0x33e),'interval':_0x4849b1(0x965),'isApp':!![],'fields':[{'title':_0x4849b1(0x28f5),'name':_0x4849b1(0x166c),'type':_0x4849b1(0x19d3),'required':!![],'param':0x0},{'title':_0x4849b1(0xb24),'name':_0x4849b1(0xb24),'type':'number','min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':_0x4849b1(0x17d),'type':_0x4849b1(0x83d),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x4849b1(0x11cf),'appType':_0x4849b1(0x11cf),'foreignKey':_0x4849b1(0x22d8),'type':'queue','icon':_0x4849b1(0x33e),'interval':_0x4849b1(0x965),'isApp':!![],'extraApi':[{'name':_0x4849b1(0x971),'field':{'name':'queue','key':_0x4849b1(0x16b6)},'route':_0x4849b1(0x62e),'filters':{'fields':_0x4849b1(0x1896),'sort':_0x4849b1(0x16b6),'nolimit':!![]},'permissions':{'section':0x2bd}}],'fields':[{'title':_0x4849b1(0x2687),'name':_0x4849b1(0x11cf),'type':_0x4849b1(0xb52),'values':'queues','value':_0x4849b1(0x19b3),'option':_0x4849b1(0x19b3),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x4849b1(0xbcc),'name':_0x4849b1(0x1719),'type':_0x4849b1(0x83d),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x4849b1(0x1eff),'appType':_0x4849b1(0x1eff),'type':_0x4849b1(0x1eff),'foreignKey':'UserId','icon':_0x4849b1(0x33e),'interval':_0x4849b1(0x965),'isApp':!![],'extraApi':[{'name':_0x4849b1(0xc12),'field':{'name':_0x4849b1(0x1eff),'key':_0x4849b1(0x16b6)},'route':'user','filters':{'fields':_0x4849b1(0x43c),'sort':_0x4849b1(0x16b6),'nolimit':!![],'role':_0x4849b1(0x1eff)},'permissions':{'section':0xca}}],'fields':[{'title':_0x4849b1(0x30e),'name':'agent','type':_0x4849b1(0xb52),'values':'agents','value':'agent.name','option':_0x4849b1(0x302),'required':!![],'param':0x0},{'title':_0x4849b1(0xbcc),'name':_0x4849b1(0x1719),'type':_0x4849b1(0x83d),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x4849b1(0x1f71),'appType':_0x4849b1(0x1f71),'type':_0x4849b1(0x1f71),'icon':'icon-apps','interval':_0x4849b1(0x965),'isApp':!![],'fields':[{'title':_0x4849b1(0x18a5),'name':_0x4849b1(0x18a5),'type':_0x4849b1(0x220f),'defaultValue':'1','values':[{'option':_0x4849b1(0x431),'value':'1'},{'option':_0x4849b1(0x1288),'value':'0'}],'required':!![],'param':0x0},{'title':'Text','name':'text','type':_0x4849b1(0x2424),'required':!![],'param':0x1}]},{'app':_0x4849b1(0xf3b),'appType':_0x4849b1(0xf3b),'type':_0x4849b1(0xf3b),'icon':_0x4849b1(0x33e),'interval':_0x4849b1(0x965),'isApp':!![],'fields':[{'title':_0x4849b1(0x2542),'name':_0x4849b1(0x1746),'type':'text','required':!![],'param':0x0}]},{'app':_0x4849b1(0x22b1),'appType':_0x4849b1(0x22b1),'type':_0x4849b1(0x22b1),'foreignKey':_0x4849b1(0x1754),'icon':_0x4849b1(0x33e),'interval':_0x4849b1(0x965),'isApp':!![],'extraApi':[{'name':_0x4849b1(0xfbf),'field':{'name':_0x4849b1(0x22b1),'key':_0x4849b1(0x16b6)},'route':_0x4849b1(0x22b1),'filters':{'fields':_0x4849b1(0x43c),'sort':_0x4849b1(0x16b6),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x4849b1(0xf2d),'name':_0x4849b1(0x22b1),'type':_0x4849b1(0xb52),'values':'tags','value':'tag.name','option':'tag.name','required':!![],'param':0x0}]},{'app':_0x4849b1(0x711),'appType':_0x4849b1(0x711),'type':_0x4849b1(0x711),'icon':_0x4849b1(0x33e),'interval':_0x4849b1(0x965),'isApp':!![],'fields':[{'title':_0x4849b1(0xad8),'name':'key','type':_0x4849b1(0x19d3),'required':!![],'param':0x0},{'title':'language','name':_0x4849b1(0x12b4),'type':_0x4849b1(0x220f),'defaultValue':_0x4849b1(0x1ffc),'values':[{'option':_0x4849b1(0x1f7),'value':'\x27da\x27'},{'option':_0x4849b1(0xc8b),'value':_0x4849b1(0x1ffc)},{'option':_0x4849b1(0x41b),'value':'\x27de\x27'},{'option':_0x4849b1(0x2257),'value':_0x4849b1(0x6a6)},{'option':'Spanish','value':_0x4849b1(0xb87)},{'option':_0x4849b1(0x19a),'value':_0x4849b1(0x1040)},{'option':_0x4849b1(0x600),'value':_0x4849b1(0x1cf7)},{'option':'Japanese','value':'\x27ja\x27'},{'option':_0x4849b1(0x2773),'value':'\x27ko\x27'},{'option':_0x4849b1(0x2027),'value':_0x4849b1(0x1298)},{'option':_0x4849b1(0x12a8),'value':'\x27no\x27'},{'option':_0x4849b1(0xf02),'value':'\x27pt\x27'},{'option':_0x4849b1(0x1a45),'value':_0x4849b1(0x741)},{'option':_0x4849b1(0x1dec),'value':_0x4849b1(0x258b)},{'option':'Swedish','value':_0x4849b1(0x1dce)},{'option':_0x4849b1(0x20c),'value':'\x27th\x27'},{'option':_0x4849b1(0x526),'value':_0x4849b1(0x199c)},{'option':_0x4849b1(0xb4e),'value':'\x27zh-CN\x27'},{'option':'Chinese\x20(Hong\x20Kong)','value':_0x4849b1(0x1d01)},{'option':_0x4849b1(0x1784),'value':'\x27zh-TW\x27'}],'required':!![],'param':0x1},{'title':_0x4849b1(0x173a),'name':_0x4849b1(0x173a),'type':_0x4849b1(0x2424),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x4849b1(0x385),'appType':_0x4849b1(0xece),'type':'dialogflowv2','icon':_0x4849b1(0x33e),'interval':_0x4849b1(0x965),'isApp':!![],'fields':[{'title':_0x4849b1(0x1e76),'name':_0x4849b1(0x2854),'type':_0x4849b1(0x19d3),'required':!![],'param':0x0},{'title':_0x4849b1(0x9e0),'name':_0x4849b1(0x12bf),'type':_0x4849b1(0x19d3),'required':!![],'param':0x1},{'title':'PrivateKey','name':_0x4849b1(0x29d6),'type':'textarea','required':!![],'param':0x2},{'title':_0x4849b1(0x12b4),'name':_0x4849b1(0x12b4),'type':_0x4849b1(0x220f),'defaultValue':_0x4849b1(0x1ffc),'values':[{'value':_0x4849b1(0x1d01),'option':_0x4849b1(0x261e)},{'value':_0x4849b1(0x18f1),'option':_0x4849b1(0xb4e)},{'value':_0x4849b1(0xad9),'option':_0x4849b1(0x1784)},{'value':_0x4849b1(0x1dac),'option':'Danish'},{'value':_0x4849b1(0x1298),'option':_0x4849b1(0x2027)},{'value':'\x27en\x27','option':_0x4849b1(0xc8b)},{'value':_0x4849b1(0x1548),'option':'English\x20(Australia)'},{'value':_0x4849b1(0x9ed),'option':_0x4849b1(0x1edf)},{'value':'\x27en-GB\x27','option':_0x4849b1(0x28eb)},{'value':_0x4849b1(0x17d0),'option':'English\x20(India)'},{'value':_0x4849b1(0x28de),'option':_0x4849b1(0x146b)},{'value':_0x4849b1(0x1040),'option':_0x4849b1(0x19a)},{'value':'\x27fr-CA\x27','option':'French\x20(Canada)'},{'value':_0x4849b1(0x15ea),'option':'\x27France\x20(France)'},{'value':'\x27de\x27','option':_0x4849b1(0x41b)},{'value':_0x4849b1(0x1562),'option':'Hindi'},{'value':'\x27id\x27','option':_0x4849b1(0x600)},{'value':'\x27it\x27','option':_0x4849b1(0x2257)},{'value':'\x27ja\x27','option':_0x4849b1(0x243f)},{'value':'\x27ko\x27','option':_0x4849b1(0x14f3)},{'value':'\x27no\x27','option':'Norwegian'},{'value':_0x4849b1(0x85d),'option':_0x4849b1(0x2960)},{'value':_0x4849b1(0x1ccb),'option':'Portuguese\x20(Brazil)'},{'value':_0x4849b1(0x1763),'option':_0x4849b1(0x967)},{'value':'\x27ru\x27','option':'Russian'},{'value':_0x4849b1(0xb87),'option':_0x4849b1(0x2672)},{'value':_0x4849b1(0x1ff7),'option':'Spanish\x20(Latin\x20America)'},{'value':_0x4849b1(0x22ed),'option':_0x4849b1(0x24bd)},{'value':_0x4849b1(0x21c7),'option':_0x4849b1(0x15fe)},{'value':_0x4849b1(0x1047),'option':'Thai'},{'value':_0x4849b1(0x21cd),'option':_0x4849b1(0x1543)},{'value':_0x4849b1(0x199c),'option':'Ukrainian'}],'required':!![],'param':0x3},{'title':_0x4849b1(0x173a),'name':_0x4849b1(0x173a),'type':'textarea','maxlength':0xff,'param':0x4,'help':!![]}]},{'app':'amazonlex','appType':_0x4849b1(0x123a),'type':_0x4849b1(0x123a),'icon':_0x4849b1(0x33e),'interval':_0x4849b1(0x965),'isApp':!![],'fields':[{'title':_0x4849b1(0x413),'name':_0x4849b1(0x413),'type':'text','required':!![],'param':0x0},{'title':_0x4849b1(0x21d9),'name':'secretaccesskey','type':_0x4849b1(0x19d3),'required':!![],'param':0x1},{'title':_0x4849b1(0xd50),'name':_0x4849b1(0xd50),'type':_0x4849b1(0x220f),'defaultValue':_0x4849b1(0x1c93),'values':[{'option':'US\x20East\x20(N.\x20Virginia)','value':_0x4849b1(0x1c93)},{'option':_0x4849b1(0x13fc),'value':_0x4849b1(0x2646)},{'option':'EU\x20(Ireland)','value':_0x4849b1(0x208d)},{'option':_0x4849b1(0x1eae),'value':'\x27ap-southeast-2\x27'}],'required':!![],'param':0x2},{'title':_0x4849b1(0x1c7f),'name':_0x4849b1(0x1c7f),'type':_0x4849b1(0x19d3),'required':!![],'param':0x3},{'title':_0x4849b1(0x173a),'name':_0x4849b1(0x173a),'type':_0x4849b1(0x2424),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],[_0x4849b1(0x22e1)]),{'isApp':![]}),_0x4f36af[_0x4849b1(0x240)]={'group':{'name':_0x4849b1(0x2523),'pull':'clone'},'animation':0x64,'sort':![]},_0x4f36af['applications']={'group':{'name':_0x4849b1(0x1ddb),'put':_0x4849b1(0x2523)},'animation':0x64,'onAdd':function(_0x3c6ea0){const _0x4764af=_0x4849b1;_0x5e3036(_0x3c6ea0,_0x3c6ea0[_0x4764af(0x22e)]);},'onSort':function(){_0x4acc9d();}},_0x4f36af[_0x4849b1(0x1a8e)]=_0x458699,_0x4f36af[_0x4849b1(0xb25)]=_0x1e4fb6,_0x4f36af['getSmsAccountApps']=_0x565d0d,_0x4f36af[_0x4849b1(0x1020)]=_0x5e3036,_0x4f36af['editInterval']=_0x2cfcb2,_0x4f36af['deleteSmsAccountApp']=_0x3130c1,_0x4f36af[_0x4849b1(0x122d)]=_0x5269ca,_0x4f36af['rewriteRouting']=_0x4acc9d,_0x4f36af[_0x4849b1(0x22fc)]=_0x550a36;function _0x458699(_0x45e1f6,_0x4b2fdc){const _0x1162aa=_0x4849b1;_0x4f36af['smsAccount']=_0x45e1f6,_0x4f36af[_0x1162aa(0x1b1a)]=typeof _0x4b2fdc!==_0x1162aa(0x16b5)?_0x4b2fdc:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4f36af['applications'][_0x1162aa(0x379)]=!_0x4f36af[_0x1162aa(0x1b1a)][_0x1162aa(0xb3d)]?!![]:![],_0x4f36af[_0x1162aa(0xae2)]['id']=_0x45e1f6['id'],_0x4f36af['query'][_0x1162aa(0xead)]=!![],_0x4f36af[_0x1162aa(0xae2)]['nolimit']=!![],_0x4f36af[_0x1162aa(0x1b6e)](),_0x4f36af[_0x1162aa(0x22fc)]();}function _0x1e4fb6(_0x392fc6,_0x32457b,_0x4e3622){const _0x24cfdc=_0x4849b1,_0xab2966=_0x5ef6a1['confirm']()[_0x24cfdc(0x1386)](_0x24cfdc(0xf35))[_0x24cfdc(0x49e)](_0x24cfdc(0x204d)+_0x392fc6[_0x24cfdc(0x22e1)]+_0x24cfdc(0x1200)+_0x24cfdc(0x1b6))[_0x24cfdc(0x15ad)](_0x24cfdc(0x2998))[_0x24cfdc(0x728)](_0x4e3622)['ok']('OK')['cancel'](_0x24cfdc(0x24ba));_0x5ef6a1['show'](_0xab2966)[_0x24cfdc(0x1cb0)](function(){const _0x3ce222=_0x24cfdc;_0x4f36af[_0x3ce222(0xe2a)][_0x3ce222(0x2214)][_0x3ce222(0x159c)](_0x32457b,0x1),_0x4acc9d();},function(){const _0x2d02aa=_0x24cfdc;console[_0x2d02aa(0x1b4f)]('CANCEL');});}function _0x5e3036(_0x13bbc7,_0x412145){const _0xfc69ca=_0x4849b1;if(_0x4f36af['smsAccountApps'][_0xfc69ca(0x2214)][_0xfc69ca(0xfd0)]){const _0x2f7f09=_0x4f36af[_0xfc69ca(0xe2a)][_0xfc69ca(0x2214)][_0x412145]?_0x4f36af[_0xfc69ca(0xe2a)][_0xfc69ca(0x2214)][_0x412145]:_0x4f36af['smsAccountApps'][_0xfc69ca(0x2214)][0x0],_0x5f20f3=(_0x2f7f09[_0xfc69ca(0x299b)]||_0x2f7f09[_0xfc69ca(0x22e1)])[_0xfc69ca(0x1680)]();_0x5ef6a1[_0xfc69ca(0xe27)]({'controller':_0xfc69ca(0x18dd)+_0x5f20f3+_0xfc69ca(0x198f),'controllerAs':'vm','templateUrl':_0x5c8729[_0x5f20f3],'parent':angular[_0xfc69ca(0x1853)](_0xd34dec['body']),'targetEvent':_0x13bbc7,'clickOutsideToClose':!![],'locals':{'smsAccountApp':_0x2f7f09,'smsAccount':_0x4f36af[_0xfc69ca(0x658)],'crudPermissions':_0x4f36af['crudPermissions']}})[_0xfc69ca(0x1cb0)](function(_0x2b7edc){const _0x977a77=_0xfc69ca;_0x2b7edc&&(_0x2b7edc['id']?_0x4f36af[_0x977a77(0xe2a)][_0x977a77(0x2214)][_0x412145]=_0x2b7edc:_0x4f36af[_0x977a77(0xe2a)]['rows']['splice'](_0x412145,0x0,_0x2b7edc),_0x4acc9d());})[_0xfc69ca(0x1c4)](function(_0x3ac8a5){const _0x53cac6=_0xfc69ca;_0x3ac8a5&&_0x184f4d[_0x53cac6(0x218e)]({'title':_0x3ac8a5['status']?_0x53cac6(0xeb9)+_0x3ac8a5['status']+_0x53cac6(0x1657)+_0x3ac8a5[_0x53cac6(0xc22)]:_0x53cac6(0xd95),'msg':_0x3ac8a5[_0x53cac6(0x25c)]?JSON[_0x53cac6(0x2701)](_0x3ac8a5[_0x53cac6(0x25c)]):_0x3ac8a5[_0x53cac6(0x147f)]()});});}}function _0x2cfcb2(_0x4b55e3,_0x3d4234){const _0xae579=_0x4849b1;if(_0x4f36af['smsAccountApps'][_0xae579(0x2214)][_0xae579(0xfd0)]){const _0x449671=_0x4f36af['smsAccountApps'][_0xae579(0x2214)][_0x3d4234]?_0x4f36af['smsAccountApps']['rows'][_0x3d4234]:_0x4f36af[_0xae579(0xe2a)][_0xae579(0x2214)][0x0];_0x5ef6a1[_0xae579(0xe27)]({'controller':_0xae579(0x211e),'controllerAs':'vm','templateUrl':_0x3fd06c,'parent':angular[_0xae579(0x1853)](_0xd34dec[_0xae579(0x1ed9)]),'targetEvent':_0x4b55e3,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x449671[_0xae579(0x1ac8)],'IntervalId':_0x449671[_0xae579(0x1a60)],'application':!![]},'intervals':[],'crudPermissions':_0x4f36af[_0xae579(0x1b1a)]}})[_0xae579(0x1cb0)](function(_0x43bb7f){const _0x2a81ca=_0xae579;_0x43bb7f&&(_0x449671['interval']=_0x43bb7f['interval']||_0x2a81ca(0x965),_0x449671['IntervalId']=_0x43bb7f[_0x2a81ca(0x1a60)]||null,_0x4acc9d());});}}function _0x4acc9d(){const _0xf4995e=_0x4849b1;let _0x10d447=0x1,_0x230efc=[];for(let _0x14ad19=0x0;_0x14ad19<_0x4f36af[_0xf4995e(0xe2a)]['rows'][_0xf4995e(0xfd0)];_0x14ad19++){const _0x2f00ac=_0x4f36af[_0xf4995e(0xe2a)][_0xf4995e(0x2214)][_0x14ad19],_0x2ca6a1=[],_0x59a7ac=[];_0x2f00ac['intervals']=_0x2f00ac[_0xf4995e(0x1ac8)]!==_0xf4995e(0x965)?[_0x2f00ac[_0xf4995e(0x1ac8)]]:_0x2f00ac[_0xf4995e(0x1a60)]?_0x39641b()['map'](_0x39641b()[_0xf4995e(0x1c99)](_0x4f36af['intervals'][_0xf4995e(0x2214)],{'IntervalId':_0x2f00ac[_0xf4995e(0x1a60)]}),_0xf4995e(0x1ac8)):[],_0x2f00ac[_0xf4995e(0x2056)]=_0x4f36af[_0xf4995e(0x658)]['context'],_0x2f00ac[_0xf4995e(0x26a2)]=_0x4f36af[_0xf4995e(0x658)][_0xf4995e(0x26a2)],_0x2f00ac['type']&&(_0x2f00ac[_0xf4995e(0x66a)]=_0x2f00ac[_0xf4995e(0x66a)][_0xf4995e(0x1680)]()),_0x2f00ac[_0xf4995e(0x521)]=_0x2ca6a1[_0xf4995e(0xfd0)]?_0x39641b()[_0xf4995e(0x1f9e)](_0x2ca6a1)[_0xf4995e(0x521)]+0x1:_0x10d447,_0x10d447=(_0x59a7ac[_0xf4995e(0xfd0)]?_0x39641b()[_0xf4995e(0x1f9e)](_0x59a7ac)[_0xf4995e(0x521)]:_0x2f00ac[_0xf4995e(0x521)])+0x1,_0x230efc=_0x39641b()['concat'](_0x230efc,_0x2ca6a1,[_0x2f00ac],_0x59a7ac);}_0x4306e4[_0xf4995e(0x658)]['addApplications']({'id':_0x4f36af[_0xf4995e(0x658)]['id']},_0x39641b()[_0xf4995e(0x1d33)](_0x230efc,_0xf4995e(0x521)))[_0xf4995e(0x1d77)][_0xf4995e(0x1cb0)](function(_0x336885){const _0x5a3b53=_0xf4995e;_0x4f36af[_0x5a3b53(0xe2a)][_0x5a3b53(0x2214)]=_0x336885[_0x5a3b53(0x2214)];})[_0xf4995e(0x1c4)](function(_0xd68e2){const _0x27e0d5=_0xf4995e;console[_0x27e0d5(0x218e)](_0xd68e2);});}function _0x4d6b34(_0x1c9461){const _0x18cec8=_0x4849b1;_0x4f36af[_0x18cec8(0xe2a)]=_0x1c9461||{'count':0x0,'rows':[]};}function _0x550a36(){const _0x1c8c5b=_0x4849b1;return _0x4306e4[_0x1c8c5b(0x1ac8)][_0x1c8c5b(0xbf7)]({'fields':'id,interval,IntervalId'})[_0x1c8c5b(0x1d77)][_0x1c8c5b(0x1cb0)](function(_0x1fcaa1){const _0x70f89b=_0x1c8c5b;_0x4f36af[_0x70f89b(0xb4a)]=_0x1fcaa1;})[_0x1c8c5b(0x1c4)](function(_0x3eb17e){const _0x3c09c0=_0x1c8c5b;console[_0x3c09c0(0x218e)](_0x3eb17e);});}function _0x565d0d(){const _0x4661f6=_0x4849b1;_0x4f36af[_0x4661f6(0x2061)]=_0x4306e4['smsAccount']['getApplications'](_0x4f36af[_0x4661f6(0xae2)],_0x4d6b34)[_0x4661f6(0x1d77)];}function _0x3130c1(_0x5668ac){const _0x5c2bcf=_0x4849b1;_0x39641b()[_0x5c2bcf(0x152a)](_0x4f36af[_0x5c2bcf(0xe2a)]['rows'],{'id':_0x5668ac['id']}),_0x4acc9d(),_0x184f4d[_0x5c2bcf(0x829)]({'title':_0x5c2bcf(0x2923),'msg':_0x5668ac[_0x5c2bcf(0x22e1)]?_0x5668ac[_0x5c2bcf(0x22e1)]+_0x5c2bcf(0x3f5):''});}function _0x5269ca(_0x2851cc){const _0x5976da=_0x4849b1,_0x165a26=_0x5ef6a1[_0x5976da(0x1551)]()[_0x5976da(0x1386)](_0x5976da(0x2436))[_0x5976da(0x49e)](_0x5976da(0x204d)+_0x4f36af[_0x5976da(0x1c02)][_0x5976da(0xfd0)]+_0x5976da(0x1d6c)+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x5976da(0x531))['targetEvent'](_0x2851cc)['ok']('OK')[_0x5976da(0x696)](_0x5976da(0x24ba));_0x5ef6a1[_0x5976da(0xe27)](_0x165a26)[_0x5976da(0x1cb0)](function(){const _0x18ab8a=_0x5976da;_0x4f36af['selectedSmsAccountApps'][_0x18ab8a(0xf90)](function(_0x39db0d){const _0x595dce=_0x18ab8a;_0x39641b()[_0x595dce(0x152a)](_0x4f36af[_0x595dce(0xe2a)][_0x595dce(0x2214)],{'id':_0x39db0d['id']});}),_0x4f36af[_0x18ab8a(0x1c02)]=[],_0x4acc9d();});}}const _0x35a87e=_0xa25101;;_0x137a51[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x658),_0x5537c6(0x1ac),_0x5537c6(0x217b),_0x5537c6(0x1ae),'Auth',_0x5537c6(0x1b1a)];function _0x137a51(_0x27c984,_0x2840d0,_0x4ba15b,_0x46a97c,_0x159d48,_0x2f1f50,_0x46fd81,_0x198605,_0x330630,_0x46a703){const _0x276fba=_0x5537c6,_0x38c0c4=this;_0x38c0c4[_0x276fba(0xe76)]=_0x330630[_0x276fba(0x21e8)](),_0x38c0c4[_0x276fba(0x658)]=_0x159d48,_0x38c0c4['crudPermissions']=_0x46a703,_0x38c0c4[_0x276fba(0x217b)]=_0x46fd81,_0x38c0c4[_0x276fba(0x122f)]=[],_0x38c0c4['allowedItems']=[],_0x38c0c4[_0x276fba(0x20bb)]=[],_0x38c0c4[_0x276fba(0xbd5)]=[],_0x38c0c4['startingSelectedItems']=[],_0x38c0c4[_0x276fba(0x50c)]=![],_0x38c0c4[_0x276fba(0x1a34)]=_0x282320,_0x38c0c4[_0x276fba(0x1dd5)]=_0x57b343,_0x38c0c4[_0x276fba(0xda0)]=_0x477af1,_0x38c0c4['dualMultiselectOptions']={'readOnly':!_0x38c0c4[_0x276fba(0x1b1a)]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x276fba(0x16b6),'line1':_0x276fba(0x1d14),'line2':[_0x276fba(0x16b6),_0x276fba(0xdbd)],'line3':'','labelAll':_0x198605[_0x276fba(0x25cc)](_0x276fba(0x21e7)),'labelSelected':_0x198605[_0x276fba(0x25cc)](_0x276fba(0x1cd5)),'transferCallback':function(){const _0x1d1964=_0x276fba,_0x169e86=_0x39641b()['xorBy'](_0x38c0c4[_0x1d1964(0x1456)],_0x38c0c4['selectedItems'],'id');_0x38c0c4[_0x1d1964(0x50c)]=_0x39641b()[_0x1d1964(0xce9)](_0x169e86)?![]:!![];}};function _0x282320(){const _0xa3e47c=_0x276fba;return _0x330630['hasRole'](_0xa3e47c(0x1c60))?_0x16d476()[_0xa3e47c(0x1c4)](function(_0x5f454a){const _0x3b6b7e=_0xa3e47c;_0x4ba15b[_0x3b6b7e(0x218e)]({'title':_0x5f454a[_0x3b6b7e(0x291)]?_0x3b6b7e(0xeb9)+_0x5f454a[_0x3b6b7e(0x291)]+_0x3b6b7e(0x1657)+_0x5f454a[_0x3b6b7e(0xc22)]:_0x3b6b7e(0x799),'msg':_0x5f454a[_0x3b6b7e(0x291)]?JSON[_0x3b6b7e(0x2701)](_0x5f454a[_0x3b6b7e(0x25c)]):_0x5f454a['toString']()});}):_0x43ce8c()[_0xa3e47c(0x1cb0)](function(_0xfbd61b){const _0x2bbe92=_0xa3e47c;return _0x38c0c4[_0x2bbe92(0x1f74)]=_0xfbd61b,_0x16d476();})[_0xa3e47c(0x1c4)](function(_0x50eb2d){const _0x20c478=_0xa3e47c;_0x4ba15b[_0x20c478(0x218e)]({'title':_0x50eb2d['status']?'API:'+_0x50eb2d[_0x20c478(0x291)]+_0x20c478(0x1657)+_0x50eb2d[_0x20c478(0xc22)]:_0x20c478(0x799),'msg':_0x50eb2d[_0x20c478(0x291)]?JSON['stringify'](_0x50eb2d[_0x20c478(0x25c)]):_0x50eb2d['toString']()});});}function _0x43ce8c(){return _0x2840d0(function(_0x4b0a26,_0x29ed0f){const _0xd8550d=a0_0x5cbd;_0x46a97c['userProfileSection'][_0xd8550d(0xbf7)]({'userProfileId':_0x38c0c4[_0xd8550d(0xe76)][_0xd8550d(0x13c1)],'name':_0xd8550d(0x2536)})[_0xd8550d(0x1d77)][_0xd8550d(0x1cb0)](function(_0xbb46d2){const _0x399c41=_0xd8550d,_0x75fae8=_0xbb46d2&&_0xbb46d2['rows']?_0xbb46d2[_0x399c41(0x2214)][0x0]:null;_0x4b0a26(_0x75fae8);})['catch'](function(_0x1103ca){_0x29ed0f(_0x1103ca);});});}function _0x16d476(){return _0x2840d0(function(_0xa97275,_0x905477){const _0x5b7f2d=a0_0x5cbd;return _0x4974ca()['then'](function(_0xf6f334){const _0x48a2d7=a0_0x5cbd;return _0x38c0c4[_0x48a2d7(0x122f)]=_0xf6f334['rows']?_0xf6f334['rows']:[],_0x330630[_0x48a2d7(0x22b6)]('admin')?_0xf6f334:_0x38c0c4[_0x48a2d7(0x1f74)]?_0x38c0c4[_0x48a2d7(0x1f74)][_0x48a2d7(0x12f4)]?_0xf6f334:_0x478d69():null;})[_0x5b7f2d(0x1cb0)](function(_0x5becd6){const _0x22ddf6=_0x5b7f2d,_0x92065c=_0x5becd6&&_0x5becd6[_0x22ddf6(0x2214)]?_0x5becd6[_0x22ddf6(0x2214)]:[];return _0x38c0c4[_0x22ddf6(0x1372)]=_0x39641b()[_0x22ddf6(0x1de2)](_0x92065c,function(_0x1e4dad){const _0x58a237=_0x22ddf6;return _0x39641b()['find'](_0x38c0c4[_0x58a237(0x122f)],{'id':_0x330630['hasRole'](_0x58a237(0x1c60))||_0x38c0c4[_0x58a237(0x1f74)]['autoAssociation']?_0x1e4dad['id']:_0x1e4dad[_0x58a237(0x2982)]});}),_0x38c0c4['startingAllowedItems']=angular[_0x22ddf6(0x17fe)](_0x38c0c4[_0x22ddf6(0x1372)]),_0x38c0c4[_0x22ddf6(0x122f)][_0x22ddf6(0xf90)](function(_0x36bc01){const _0x41b9e2=_0x22ddf6,_0x20ddac=_0x39641b()['find'](_0x38c0c4[_0x41b9e2(0x1372)],{'id':_0x36bc01['id']});_0x330630['hasRole'](_0x41b9e2(0x1c60))?_0x36bc01['isValid']=!![]:_0x36bc01[_0x41b9e2(0x1a4f)]=typeof _0x20ddac!==_0x41b9e2(0x16b5)?!![]:![];}),_0x1b5e65();})[_0x5b7f2d(0x1cb0)](function(_0x7007e7){const _0x499a46=_0x5b7f2d,_0xe437fd=_0x7007e7&&_0x7007e7['rows']?_0x7007e7[_0x499a46(0x2214)]:[];_0x38c0c4[_0x499a46(0x20bb)]=_0x39641b()[_0x499a46(0x1de2)](_0xe437fd,function(_0x4956c1){const _0xace262=_0x499a46,_0x54de39=_0x39641b()[_0xace262(0x13b4)](_0x38c0c4['items'],{'id':_0x4956c1['id']});return _0x54de39[_0xace262(0x1cbc)]=_0x4956c1[_0xace262(0x1af)]?'penalty\x20'+_0x4956c1[_0xace262(0x1af)][_0xace262(0x1cbc)]:'',_0x54de39[_0xace262(0xdbd)]=typeof _0x4956c1[_0xace262(0xdbd)]!==_0xace262(0x16b5)?'<'+_0x4956c1[_0xace262(0xdbd)]+'>':'',_0x54de39;}),_0x38c0c4['startingSelectedItems']=angular[_0x499a46(0x17fe)](_0x38c0c4[_0x499a46(0x20bb)]),_0x38c0c4['dualMultiselectOptions']['selectedItems']=_0x38c0c4[_0x499a46(0x20bb)],_0x38c0c4[_0x499a46(0x18c0)][_0x499a46(0x122f)]=_0x39641b()['differenceBy'](_0x38c0c4[_0x499a46(0x1372)],_0x38c0c4['dualMultiselectOptions'][_0x499a46(0x20bb)],'id'),_0xa97275();})[_0x5b7f2d(0x1c4)](function(_0xac3a69){_0x905477(_0xac3a69);});});}function _0x478d69(){return _0x2840d0(function(_0xb26a89,_0xba52ed){const _0x4c9bec=a0_0x5cbd;return _0x46a97c[_0x4c9bec(0x1198)]['get']({'sectionId':_0x38c0c4[_0x4c9bec(0x1f74)]['id'],'nolimit':!![]})[_0x4c9bec(0x1d77)][_0x4c9bec(0x1cb0)](function(_0x34db9d){_0xb26a89(_0x34db9d);})[_0x4c9bec(0x1c4)](function(_0x48b418){_0xba52ed(_0x48b418);});});}function _0x1b5e65(){return _0x2840d0(function(_0x555600,_0x4a96ec){const _0x38976a=a0_0x5cbd;return _0x46a97c[_0x38976a(0x658)][_0x38976a(0x2348)]({'id':_0x38c0c4[_0x38976a(0x658)]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x38976a(0x1eff)})[_0x38976a(0x1d77)][_0x38976a(0x1cb0)](function(_0x21ed9e){_0x555600(_0x21ed9e);})[_0x38976a(0x1c4)](function(_0x4b44b6){_0x4a96ec(_0x4b44b6);});});}function _0x4974ca(){return _0x2840d0(function(_0x1fbb16,_0x17cfcd){const _0x215172=a0_0x5cbd;return _0x46a97c[_0x215172(0xebe)][_0x215172(0xbf7)]({'fields':_0x215172(0x251e),'nolimit':!![],'role':_0x215172(0x1eff)})[_0x215172(0x1d77)][_0x215172(0x1cb0)](function(_0x5dd183){_0x1fbb16(_0x5dd183);})['catch'](function(_0x257b9d){_0x17cfcd(_0x257b9d);});});}function _0x1938c8(_0x23c90e){return _0x2840d0(function(_0x11bf5d,_0x244b1b){const _0x4a42c2=a0_0x5cbd;_0x39641b()[_0x4a42c2(0xce9)](_0x23c90e)?_0x11bf5d():_0x46a97c[_0x4a42c2(0x658)][_0x4a42c2(0x2057)]({'id':_0x38c0c4[_0x4a42c2(0x658)]['id'],'ids':_0x39641b()[_0x4a42c2(0x1de2)](_0x23c90e,'id')})['$promise'][_0x4a42c2(0x1cb0)](function(){_0x11bf5d();})[_0x4a42c2(0x1c4)](function(_0x1d35a4){_0x244b1b(_0x1d35a4);});});}function _0x4ca7a3(_0x46d566){return _0x2840d0(function(_0x358a35,_0x160533){const _0x11ba80=a0_0x5cbd;_0x39641b()[_0x11ba80(0xce9)](_0x46d566)?_0x358a35():_0x46a97c['smsAccount'][_0x11ba80(0x223f)]({'id':_0x38c0c4[_0x11ba80(0x658)]['id'],'ids':_0x39641b()[_0x11ba80(0x1de2)](_0x46d566,'id')})[_0x11ba80(0x1d77)][_0x11ba80(0x1cb0)](function(){_0x358a35();})[_0x11ba80(0x1c4)](function(_0x38dbf9){_0x160533(_0x38dbf9);});});}function _0x57b343(){const _0x3c34f6=_0x276fba,_0x4a6968=_0x39641b()[_0x3c34f6(0x2128)](_0x38c0c4['startingSelectedItems'],_0x38c0c4[_0x3c34f6(0x20bb)],'id'),_0x666704=_0x39641b()[_0x3c34f6(0x2128)](_0x38c0c4[_0x3c34f6(0x20bb)],_0x38c0c4['startingSelectedItems'],'id');return _0x4ca7a3(_0x4a6968)[_0x3c34f6(0x1cb0)](function(){return _0x1938c8(_0x666704);})[_0x3c34f6(0x1cb0)](function(){const _0x2d05d2=_0x3c34f6;_0x38c0c4['pendingChanges']=![],_0x38c0c4[_0x2d05d2(0xbd5)]=angular[_0x2d05d2(0x17fe)](_0x38c0c4[_0x2d05d2(0x1372)]),_0x38c0c4[_0x2d05d2(0x1456)]=angular[_0x2d05d2(0x17fe)](_0x38c0c4[_0x2d05d2(0x20bb)]),_0x4ba15b[_0x2d05d2(0x829)]({'title':_0x2d05d2(0x201),'msg':_0x2d05d2(0x976)});})[_0x3c34f6(0x1c4)](function(_0x5ea081){const _0x57cea0=_0x3c34f6;_0x4ba15b[_0x57cea0(0x218e)]({'title':_0x5ea081['status']?_0x57cea0(0xeb9)+_0x5ea081[_0x57cea0(0x291)]+_0x57cea0(0x1657)+_0x5ea081[_0x57cea0(0xc22)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x5ea081[_0x57cea0(0x291)]?JSON[_0x57cea0(0x2701)](_0x5ea081[_0x57cea0(0x25c)]):_0x5ea081[_0x57cea0(0x147f)]()});});}function _0x477af1(){const _0x18a3d9=_0x276fba;_0x27c984[_0x18a3d9(0x1426)]();}}const _0x49589e=_0x137a51;;_0x1a635b[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x795),_0x5537c6(0x658),'api','Auth',_0x5537c6(0x1b1a)];function _0x1a635b(_0x17eb25,_0x4b5a43,_0x1cc8f3,_0x5ccc2e,_0x5bd06b,_0xcd1aed,_0x43ceab,_0x288ae6){const _0x1549ef=_0x5537c6,_0x579e49=this;_0x579e49[_0x1549ef(0xe76)]=_0x43ceab['getCurrentUser'](),_0x579e49[_0x1549ef(0x1a7c)]=[],_0x579e49['title']=_0x1549ef(0x1149)+(_0x5ccc2e[_0x1549ef(0x299b)]||_0x5ccc2e['app'])[_0x1549ef(0x2335)](),_0x579e49[_0x1549ef(0x1eff)]=angular[_0x1549ef(0x17fe)](_0x5ccc2e),_0x579e49['crudPermissions']=_0x288ae6,_0x579e49[_0x1549ef(0xf4c)]={};if(_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x28df)])switch(_0x579e49[_0x1549ef(0x1eff)]['appType']?_0x579e49['agent'][_0x1549ef(0x299b)]['toLowerCase']():_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x22e1)]['toLowerCase']()){case'custom':break;case _0x1549ef(0x711):{const _0x4b14b3=_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x28df)]['split'](',');_0x579e49['agent'][_0x1549ef(0xee8)]=_0x4b14b3[0x0],_0x579e49[_0x1549ef(0x1eff)]['language']=_0x4b14b3[0x1],_0x579e49['agent']['welcomemessage']=_0x4b14b3[_0x1549ef(0x14cb)](0x2,_0x4b14b3[_0x1549ef(0xfd0)])[_0x1549ef(0x1f66)](',');}break;case _0x1549ef(0xece):{const _0x4c0d94=_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x28df)]['split'](',');_0x579e49[_0x1549ef(0x1eff)]['projectId']=_0x4c0d94[0x0],_0x579e49['agent'][_0x1549ef(0x12bf)]=_0x4c0d94[0x1],_0x579e49['agent']['privateKey']=_0x4c0d94[0x2],_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x12b4)]=_0x4c0d94[0x3],_0x579e49['agent']['welcomemessage']=_0x4c0d94[_0x1549ef(0x14cb)](0x4,_0x4c0d94[_0x1549ef(0xfd0)])['join'](',');}break;case _0x1549ef(0x123a):{const _0x338ba0=_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x28df)]['split'](',');_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x413)]=_0x338ba0[0x0],_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x21d9)]=_0x338ba0[0x1],_0x579e49[_0x1549ef(0x1eff)]['lexregion']=_0x338ba0[0x2],_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x1c7f)]=_0x338ba0[0x3],_0x579e49['agent'][_0x1549ef(0x173a)]=_0x338ba0['slice'](0x4,_0x338ba0[_0x1549ef(0xfd0)])[_0x1549ef(0x1f66)](',');}break;case _0x1549ef(0x1f71):{const _0x29d674=_0x579e49[_0x1549ef(0x1eff)]['appdata'][_0x1549ef(0xbe1)](',');_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x18a5)]=isNaN(_0x29d674[0x0])?_0x29d674[0x0]:parseInt(_0x29d674[0x0],0xa),_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x19d3)]=_0x29d674[_0x1549ef(0x14cb)](0x1,_0x29d674[_0x1549ef(0xfd0)])[_0x1549ef(0x1f66)](',');}break;case _0x1549ef(0x155e):_0x579e49[_0x1549ef(0x1eff)]['text']=_0x579e49[_0x1549ef(0x1eff)]['appdata'];break;case _0x1549ef(0x19d1):_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x16b6)]=_0x579e49[_0x1549ef(0x1eff)]['appdata'][_0x1549ef(0xbe1)]('=')[0x0],_0x579e49[_0x1549ef(0x1eff)]['value']=_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x28df)][_0x1549ef(0xbe1)]('=')[0x1];break;case _0x1549ef(0x4b4):_0x579e49[_0x1549ef(0x1eff)]['project']=_0x579e49[_0x1549ef(0x1eff)]['appdata'];break;default:{const _0x127517=_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x28df)][_0x1549ef(0xbe1)](',');_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x1eff)]=_0x39641b()[_0x1549ef(0xce9)](_0x127517[0x0])?_0x127517[0x0]:isNaN(_0x127517[0x0])?_0x127517[0x0]:parseInt(_0x127517[0x0],0xa),_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x1719)]=_0x39641b()[_0x1549ef(0xce9)](_0x127517[0x1])?_0x127517[0x1]:isNaN(_0x127517[0x1])?_0x127517[0x1]:parseInt(_0x127517[0x1],0xa);}break;}else _0x579e49[_0x1549ef(0x1eff)]['timeout']=0x1e;_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x66a)]&&_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x66a)]['toLowerCase']()===_0x1549ef(0x895)&&_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x299b)][_0x1549ef(0x1680)]()===_0x1549ef(0x20ff)&&(_0x579e49[_0x1549ef(0x1eff)]['prefix']=_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x1340)]?_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x1340)]['split']('$')[0x0]:undefined,_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x1e7c)]=_0x579e49[_0x1549ef(0x1eff)]['callerID']?'CALLERID(all)='+_0x579e49[_0x1549ef(0x1eff)][_0x1549ef(0x2816)]:undefined);_0x579e49[_0x1549ef(0xc3f)]=_0x59ff4a,_0x579e49[_0x1549ef(0xda0)]=_0xdf8908,_0x43ceab[_0x1549ef(0x22b6)](_0x1549ef(0x1c60))?_0xcd1aed['user']['get']({'fields':'id,name','sort':_0x1549ef(0x16b6),'nolimit':'true','role':_0x1549ef(0x1eff)})['$promise'][_0x1549ef(0x1cb0)](function(_0x13d0f3){const _0x4d8ebd=_0x1549ef;_0x579e49['agents']=_0x13d0f3[_0x4d8ebd(0x2214)]||[];})[_0x1549ef(0x1c4)](function(_0x5c35a3){const _0x7e3580=_0x1549ef;_0x1cc8f3[_0x7e3580(0x218e)]({'title':_0x5c35a3['status']?_0x7e3580(0xeb9)+_0x5c35a3['status']+_0x7e3580(0x1657)+_0x5c35a3[_0x7e3580(0xc22)]:_0x7e3580(0x799),'msg':_0x5c35a3[_0x7e3580(0x25c)]?JSON['stringify'](_0x5c35a3[_0x7e3580(0x25c)]):_0x5c35a3[_0x7e3580(0x147f)]()});}):_0xcd1aed[_0x1549ef(0xebe)]['get']({'fields':_0x1549ef(0x43c),'sort':'name','nolimit':'true','role':_0x1549ef(0x1eff)})[_0x1549ef(0x1d77)][_0x1549ef(0x1cb0)](function(_0x12230d){const _0x4054a0=_0x1549ef;_0x579e49[_0x4054a0(0xc12)]=_0x12230d[_0x4054a0(0x2214)]||[];})[_0x1549ef(0x1cb0)](function(){const _0x235565=_0x1549ef;return _0xcd1aed[_0x235565(0x2199)][_0x235565(0xbf7)]({'userProfileId':_0x579e49['currentUser']['userProfileId'],'sectionId':0xca})[_0x235565(0x1d77)];})[_0x1549ef(0x1cb0)](function(_0x1633dd){const _0x35a4a6=_0x1549ef,_0x224fb2=_0x1633dd&&_0x1633dd['rows']?_0x1633dd[_0x35a4a6(0x2214)][0x0]:null;if(!_0x224fb2){const _0x4b3f75=[];let _0x2fc398=null;_0x579e49['agent']&&(_0x2fc398=_0x39641b()[_0x35a4a6(0x13b4)](_0x579e49[_0x35a4a6(0xc12)],{'name':_0x579e49[_0x35a4a6(0x1eff)][_0x35a4a6(0x1eff)]}));for(let _0xba2516=0x0;_0xba2516<_0x579e49['agents'][_0x35a4a6(0xfd0)];_0xba2516++){_0x2fc398&&_0x579e49[_0x35a4a6(0xc12)][_0xba2516]['id']===_0x2fc398['id']&&(_0x579e49[_0x35a4a6(0xc12)][_0xba2516][_0x35a4a6(0x15da)]=![],_0x4b3f75['push'](_0x579e49[_0x35a4a6(0xc12)][_0xba2516]));}_0x579e49[_0x35a4a6(0xc12)]=_0x4b3f75;}else{if(!_0x224fb2[_0x35a4a6(0x12f4)])return _0xcd1aed[_0x35a4a6(0x1198)][_0x35a4a6(0xbf7)]({'sectionId':_0x224fb2['id']})[_0x35a4a6(0x1d77)][_0x35a4a6(0x1cb0)](function(_0xa305a5){const _0x229e94=_0x35a4a6,_0x25e7fc=_0x39641b()[_0x229e94(0x1de2)](_0xa305a5[_0x229e94(0x2214)],function(_0x539f25){const _0x115624=_0x229e94;return _0x39641b()[_0x115624(0x13b4)](_0x579e49[_0x115624(0xc12)],{'id':_0x539f25['resourceId']});});let _0x3ebc3a=null;_0x579e49[_0x229e94(0x1eff)]&&(_0x3ebc3a=_0x39641b()['find'](_0x579e49[_0x229e94(0xc12)],{'name':_0x579e49[_0x229e94(0x1eff)][_0x229e94(0x1eff)]}));if(_0x3ebc3a&&!_0x39641b()[_0x229e94(0x727)](_0x25e7fc,['id',_0x3ebc3a['id']])){const _0x4e01de=_0x39641b()[_0x229e94(0x13b4)](_0x579e49[_0x229e94(0xc12)],{'id':_0x3ebc3a['id']});_0x4e01de[_0x229e94(0x15da)]=![],_0x25e7fc[_0x229e94(0x2785)](_0x4e01de);}_0x579e49[_0x229e94(0xc12)]=_0x25e7fc;});}})[_0x1549ef(0x1c4)](function(_0xa4b0bd){const _0x141137=_0x1549ef;_0x1cc8f3[_0x141137(0x218e)]({'title':_0xa4b0bd[_0x141137(0x291)]?'API:'+_0xa4b0bd[_0x141137(0x291)]+_0x141137(0x1657)+_0xa4b0bd['statusText']:_0x141137(0x2159),'msg':_0xa4b0bd['data']?JSON[_0x141137(0x2701)](_0xa4b0bd[_0x141137(0x25c)]):_0xa4b0bd['toString']()});});function _0x59ff4a(){const _0x143135=_0x1549ef;_0x579e49[_0x143135(0x1a7c)]=[];const _0x4e522c=[];_0x579e49['agent'][_0x143135(0x66a)]&&_0x579e49[_0x143135(0x1eff)][_0x143135(0x66a)][_0x143135(0x1680)]()===_0x143135(0x895)&&_0x579e49[_0x143135(0x1eff)][_0x143135(0x299b)]===_0x143135(0x25f4)&&(_0x579e49[_0x143135(0x1eff)]['phone']=_0x5bd06b[_0x143135(0x325)]?(_0x579e49[_0x143135(0x1eff)]['prefix']||'')+_0x143135(0x19e4)+_0x5bd06b[_0x143135(0x325)]+'}':(_0x579e49['agent']['prefix']||'')+'${EXTEN}',_0x5bd06b[_0x143135(0xf8d)]!==_0x143135(0x13b1)?_0x579e49[_0x143135(0x1eff)][_0x143135(0x2224)][_0x143135(0xd8a)](_0x143135(0x106a))<0x0&&(_0x579e49[_0x143135(0x1eff)][_0x143135(0x2224)]+=_0x143135(0x106a)):_0x579e49['agent']['options']=_0x579e49[_0x143135(0x1eff)][_0x143135(0x2224)][_0x143135(0x288f)](_0x143135(0x106a),''));const _0x411d6a=_0x39641b()[_0x143135(0x13b4)](_0x579e49['agents'],{'name':_0x579e49[_0x143135(0x1eff)]['agent']});_0x411d6a&&(_0x579e49['agent'][_0x143135(0x21ab)]=_0x411d6a['id']);if(_0x579e49[_0x143135(0x1eff)][_0x143135(0x299b)]&&_0x579e49['agent'][_0x143135(0x299b)]===_0x143135(0x197c)){}else switch((_0x579e49[_0x143135(0x1eff)]['app']||_0x579e49[_0x143135(0x1eff)][_0x143135(0x299b)])[_0x143135(0x1680)]()){case _0x143135(0x19d1):_0x579e49[_0x143135(0x1eff)][_0x143135(0x28df)]=_0x579e49['agent'][_0x143135(0x16b6)]+'='+_0x579e49['agent'][_0x143135(0x327)];break;case _0x143135(0x197c):break;default:_0x4e522c[0x0]=_0x579e49[_0x143135(0x1eff)]['agent'],_0x4e522c[0x1]=_0x579e49[_0x143135(0x1eff)]['timeout'],_0x579e49[_0x143135(0x1eff)][_0x143135(0x28df)]=_0x4e522c[_0x143135(0x1f66)](',');}_0xdf8908(_0x579e49[_0x143135(0x1eff)]);}function _0xdf8908(_0xda1048){_0x17eb25['hide'](_0xda1048);}}const _0x149203=_0x1a635b;;_0x38f287['$inject']=[_0x5537c6(0xcb9),'$q','toasty',_0x5537c6(0x795),'smsAccount',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x38f287(_0x112107,_0x16cef6,_0x350670,_0x24dbd9,_0x58942e,_0x181590,_0xcf1f71,_0x3cfbac){const _0x18f0b2=_0x5537c6,_0x459542=this;_0x459542['currentUser']=_0xcf1f71[_0x18f0b2(0x21e8)](),_0x459542['errors']=[],_0x459542[_0x18f0b2(0x1386)]=_0x18f0b2(0x1149)+(_0x24dbd9[_0x18f0b2(0x299b)]||_0x24dbd9['app'])['toUpperCase'](),_0x459542[_0x18f0b2(0x123a)]=angular[_0x18f0b2(0x17fe)](_0x24dbd9),_0x459542['crudPermissions']=_0x3cfbac,_0x459542[_0x18f0b2(0xf4c)]={};if(_0x459542['amazonlex'][_0x18f0b2(0x28df)])switch(_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x299b)]?_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x299b)][_0x18f0b2(0x1680)]():_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x22e1)]['toLowerCase']()){case'custom':break;case _0x18f0b2(0x711):{const _0x5989ba=_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x28df)][_0x18f0b2(0xbe1)](',');_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0xee8)]=_0x5989ba[0x0],_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x12b4)]=_0x5989ba[0x1],_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x173a)]=_0x5989ba[_0x18f0b2(0x14cb)](0x2,_0x5989ba['length'])['join'](',');}break;case _0x18f0b2(0xece):{const _0x564eb4=_0x459542['amazonlex'][_0x18f0b2(0x28df)][_0x18f0b2(0xbe1)](',');_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x2854)]=_0x564eb4[0x0],_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x12bf)]=_0x564eb4[0x1],_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x29d6)]=_0x564eb4[0x2],_0x459542[_0x18f0b2(0x123a)]['language']=_0x564eb4[0x3],_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x173a)]=_0x564eb4[_0x18f0b2(0x14cb)](0x4,_0x564eb4['length'])[_0x18f0b2(0x1f66)](',');}break;case _0x18f0b2(0x123a):{const _0x4cdedd=_0x459542[_0x18f0b2(0x123a)]['appdata'][_0x18f0b2(0xbe1)](',');_0x459542[_0x18f0b2(0x123a)]['accesskeyid']=_0x4cdedd[0x0],_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x21d9)]=_0x4cdedd[0x1],_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0xd50)]=_0x4cdedd[0x2],_0x459542[_0x18f0b2(0x123a)]['botname']=_0x4cdedd[0x3],_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x173a)]=_0x4cdedd[_0x18f0b2(0x14cb)](0x4,_0x4cdedd[_0x18f0b2(0xfd0)])[_0x18f0b2(0x1f66)](',');}break;case _0x18f0b2(0x1f71):{const _0x55cd64=_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x28df)][_0x18f0b2(0xbe1)](',');_0x459542['amazonlex'][_0x18f0b2(0x18a5)]=isNaN(_0x55cd64[0x0])?_0x55cd64[0x0]:parseInt(_0x55cd64[0x0],0xa),_0x459542['amazonlex'][_0x18f0b2(0x19d3)]=_0x55cd64[_0x18f0b2(0x14cb)](0x1,_0x55cd64[_0x18f0b2(0xfd0)])['join'](',');}break;case _0x18f0b2(0x155e):_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x19d3)]=_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x28df)];break;case _0x18f0b2(0x19d1):_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x16b6)]=_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x28df)][_0x18f0b2(0xbe1)]('=')[0x0],_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x327)]=_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x28df)][_0x18f0b2(0xbe1)]('=')[0x1];break;case _0x18f0b2(0x4b4):_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x12a7)]=_0x459542['amazonlex'][_0x18f0b2(0x28df)];break;default:{const _0x1afa58=_0x459542['amazonlex'][_0x18f0b2(0x28df)][_0x18f0b2(0xbe1)](',');_0x459542[_0x18f0b2(0x123a)]['accesskeyid']=_0x39641b()[_0x18f0b2(0xce9)](_0x1afa58[0x0])?_0x1afa58[0x0]:isNaN(_0x1afa58[0x0])?_0x1afa58[0x0]:parseInt(_0x1afa58[0x0],0xa),_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x21d9)]=_0x39641b()[_0x18f0b2(0xce9)](_0x1afa58[0x1])?_0x1afa58[0x1]:isNaN(_0x1afa58[0x1])?_0x1afa58[0x1]:parseInt(_0x1afa58[0x1],0xa),_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0xd50)]=_0x39641b()['isEmpty'](_0x1afa58[0x2])?_0x1afa58[0x2]:isNaN(_0x1afa58[0x2])?_0x1afa58[0x2]:parseInt(_0x1afa58[0x2],0xa),_0x459542['amazonlex'][_0x18f0b2(0x1c7f)]=_0x39641b()[_0x18f0b2(0xce9)](_0x1afa58[0x3])?_0x1afa58[0x3]:isNaN(_0x1afa58[0x3])?_0x1afa58[0x3]:parseInt(_0x1afa58[0x3],0xa),_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x173a)]=_0x39641b()[_0x18f0b2(0xce9)](_0x1afa58[0x4])?_0x1afa58[0x4]:isNaN(_0x1afa58[0x4])?_0x1afa58[0x4]:parseInt(_0x1afa58[0x4],0xa);}break;}else _0x459542['amazonlex']['lexregion']='us-east-1';_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x66a)]&&_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x66a)][_0x18f0b2(0x1680)]()==='outbound'&&_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x299b)][_0x18f0b2(0x1680)]()==='outbounddial'&&(_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x586)]=_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x1340)]?_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x1340)][_0x18f0b2(0xbe1)]('$')[0x0]:undefined,_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x1e7c)]=_0x459542[_0x18f0b2(0x123a)][_0x18f0b2(0x2816)]?_0x18f0b2(0x25f9)+_0x459542[_0x18f0b2(0x123a)]['callerID']:undefined);_0x459542['saveSmsAccountApp']=_0x26d208,_0x459542[_0x18f0b2(0xda0)]=_0x7beaff;function _0x26d208(){const _0x5a7b57=_0x18f0b2;_0x459542[_0x5a7b57(0x1a7c)]=[];const _0x481ceb=[];_0x459542[_0x5a7b57(0x123a)]['type']&&_0x459542['amazonlex'][_0x5a7b57(0x66a)][_0x5a7b57(0x1680)]()==='outbound'&&_0x459542[_0x5a7b57(0x123a)]['appType']===_0x5a7b57(0x25f4)&&(_0x459542[_0x5a7b57(0x123a)][_0x5a7b57(0x1340)]=_0x58942e[_0x5a7b57(0x325)]?(_0x459542[_0x5a7b57(0x123a)][_0x5a7b57(0x586)]||'')+_0x5a7b57(0x19e4)+_0x58942e[_0x5a7b57(0x325)]+'}':(_0x459542[_0x5a7b57(0x123a)][_0x5a7b57(0x586)]||'')+'${EXTEN}',_0x58942e[_0x5a7b57(0xf8d)]!==_0x5a7b57(0x13b1)?_0x459542[_0x5a7b57(0x123a)][_0x5a7b57(0x2224)][_0x5a7b57(0xd8a)](_0x5a7b57(0x106a))<0x0&&(_0x459542['amazonlex'][_0x5a7b57(0x2224)]+='U(xcally-mixmonitor-context)'):_0x459542[_0x5a7b57(0x123a)][_0x5a7b57(0x2224)]=_0x459542[_0x5a7b57(0x123a)][_0x5a7b57(0x2224)]['replace'](_0x5a7b57(0x106a),''));if(_0x459542[_0x5a7b57(0x123a)]['appType']&&_0x459542['amazonlex'][_0x5a7b57(0x299b)]===_0x5a7b57(0x197c)){}else switch((_0x459542['amazonlex'][_0x5a7b57(0x22e1)]||_0x459542[_0x5a7b57(0x123a)]['appType'])[_0x5a7b57(0x1680)]()){case _0x5a7b57(0x19d1):_0x459542[_0x5a7b57(0x123a)]['appdata']=_0x459542[_0x5a7b57(0x123a)][_0x5a7b57(0x16b6)]+'='+_0x459542[_0x5a7b57(0x123a)][_0x5a7b57(0x327)];break;case'custom':break;default:_0x481ceb[0x0]=_0x459542[_0x5a7b57(0x123a)][_0x5a7b57(0x413)],_0x481ceb[0x1]=_0x459542[_0x5a7b57(0x123a)]['secretaccesskey'],_0x481ceb[0x2]=_0x459542['amazonlex'][_0x5a7b57(0xd50)],_0x481ceb[0x3]=_0x459542[_0x5a7b57(0x123a)]['botname'],_0x481ceb[0x4]=_0x459542[_0x5a7b57(0x123a)][_0x5a7b57(0x173a)],_0x459542[_0x5a7b57(0x123a)][_0x5a7b57(0x28df)]=_0x481ceb[_0x5a7b57(0x1f66)](',');}_0x7beaff(_0x459542[_0x5a7b57(0x123a)]);}function _0x7beaff(_0xf41276){const _0x5987b3=_0x18f0b2;_0x112107[_0x5987b3(0x1426)](_0xf41276);}}const _0x396a45=_0x38f287;;_0x3c0af0[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x795),_0x5537c6(0x658),'api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x3c0af0(_0x8bc469,_0x58e919,_0x283814,_0x423873,_0x5d3fd6,_0x1b61e6,_0x9165db,_0x2ef940){const _0x35082a=_0x5537c6,_0x3b36b7=this;_0x3b36b7['currentUser']=_0x9165db[_0x35082a(0x21e8)](),_0x3b36b7['errors']=[],_0x3b36b7[_0x35082a(0x1386)]=_0x35082a(0x1149)+(_0x423873[_0x35082a(0x299b)]||_0x423873[_0x35082a(0x22e1)])[_0x35082a(0x2335)](),_0x3b36b7['autoreply']=angular[_0x35082a(0x17fe)](_0x423873),_0x3b36b7[_0x35082a(0x1b1a)]=_0x2ef940,_0x3b36b7['hasModulePermissions']={};if(_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x28df)])switch(_0x3b36b7[_0x35082a(0x1f71)]['appType']?_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x299b)][_0x35082a(0x1680)]():_0x3b36b7['autoreply'][_0x35082a(0x22e1)]['toLowerCase']()){case _0x35082a(0x197c):break;case'dialogflow':{const _0x3b906d=_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x28df)]['split'](',');_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0xee8)]=_0x3b906d[0x0],_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x12b4)]=_0x3b906d[0x1],_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x173a)]=_0x3b906d[_0x35082a(0x14cb)](0x2,_0x3b906d[_0x35082a(0xfd0)])['join'](',');}break;case _0x35082a(0xece):{const _0x57c714=_0x3b36b7['autoreply'][_0x35082a(0x28df)][_0x35082a(0xbe1)](',');_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x2854)]=_0x57c714[0x0],_0x3b36b7[_0x35082a(0x1f71)]['clientEmail']=_0x57c714[0x1],_0x3b36b7['autoreply'][_0x35082a(0x29d6)]=_0x57c714[0x2],_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x12b4)]=_0x57c714[0x3],_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x173a)]=_0x57c714[_0x35082a(0x14cb)](0x4,_0x57c714[_0x35082a(0xfd0)])[_0x35082a(0x1f66)](',');}break;case'amazonlex':{const _0x317672=_0x3b36b7['autoreply'][_0x35082a(0x28df)][_0x35082a(0xbe1)](',');_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x413)]=_0x317672[0x0],_0x3b36b7[_0x35082a(0x1f71)]['secretaccesskey']=_0x317672[0x1],_0x3b36b7['autoreply']['lexregion']=_0x317672[0x2],_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x1c7f)]=_0x317672[0x3],_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x173a)]=_0x317672[_0x35082a(0x14cb)](0x4,_0x317672['length'])[_0x35082a(0x1f66)](',');}break;case _0x35082a(0x1f71):{const _0x80b45f=_0x3b36b7[_0x35082a(0x1f71)]['appdata']['split'](',');_0x3b36b7[_0x35082a(0x1f71)]['times']=isNaN(_0x80b45f[0x0])?_0x80b45f[0x0]:parseInt(_0x80b45f[0x0],0xa),_0x3b36b7['autoreply'][_0x35082a(0x19d3)]=_0x80b45f['slice'](0x1,_0x80b45f['length'])['join'](',');}break;case _0x35082a(0x155e):_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x19d3)]=_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x28df)];break;case'set':_0x3b36b7['autoreply'][_0x35082a(0x16b6)]=_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x28df)][_0x35082a(0xbe1)]('=')[0x0],_0x3b36b7[_0x35082a(0x1f71)]['value']=_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x28df)][_0x35082a(0xbe1)]('=')[0x1];break;case _0x35082a(0x4b4):_0x3b36b7[_0x35082a(0x1f71)]['project']=_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x28df)];break;default:{const _0x59bbaf=_0x3b36b7['autoreply'][_0x35082a(0x28df)][_0x35082a(0xbe1)](',');_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x18a5)]=_0x39641b()['isEmpty'](_0x59bbaf[0x0])?_0x59bbaf[0x0]:isNaN(_0x59bbaf[0x0])?_0x59bbaf[0x0]:parseInt(_0x59bbaf[0x0],0xa),_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x19d3)]=_0x39641b()[_0x35082a(0xce9)](_0x59bbaf[0x1])?_0x59bbaf[0x1]:isNaN(_0x59bbaf[0x1])?_0x59bbaf[0x1]:parseInt(_0x59bbaf[0x1],0xa);}}else _0x3b36b7['autoreply'][_0x35082a(0x18a5)]=0x1;_0x3b36b7['autoreply'][_0x35082a(0x66a)]&&_0x3b36b7[_0x35082a(0x1f71)]['type'][_0x35082a(0x1680)]()==='outbound'&&_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x299b)]['toLowerCase']()===_0x35082a(0x20ff)&&(_0x3b36b7[_0x35082a(0x1f71)]['prefix']=_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x1340)]?_0x3b36b7['autoreply'][_0x35082a(0x1340)][_0x35082a(0xbe1)]('$')[0x0]:undefined,_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x1e7c)]=_0x3b36b7['autoreply'][_0x35082a(0x2816)]?_0x35082a(0x25f9)+_0x3b36b7[_0x35082a(0x1f71)][_0x35082a(0x2816)]:undefined);_0x3b36b7[_0x35082a(0xc3f)]=_0x15cb84,_0x3b36b7[_0x35082a(0xda0)]=_0x560def;function _0x15cb84(){const _0x2f793e=_0x35082a;_0x3b36b7['errors']=[];const _0x4dff9a=[];_0x3b36b7[_0x2f793e(0x1f71)][_0x2f793e(0x66a)]&&_0x3b36b7[_0x2f793e(0x1f71)]['type'][_0x2f793e(0x1680)]()===_0x2f793e(0x895)&&_0x3b36b7[_0x2f793e(0x1f71)]['appType']===_0x2f793e(0x25f4)&&(_0x3b36b7[_0x2f793e(0x1f71)][_0x2f793e(0x1340)]=_0x5d3fd6[_0x2f793e(0x325)]?(_0x3b36b7[_0x2f793e(0x1f71)][_0x2f793e(0x586)]||'')+_0x2f793e(0x19e4)+_0x5d3fd6[_0x2f793e(0x325)]+'}':(_0x3b36b7[_0x2f793e(0x1f71)][_0x2f793e(0x586)]||'')+_0x2f793e(0xcdd),_0x5d3fd6[_0x2f793e(0xf8d)]!==_0x2f793e(0x13b1)?_0x3b36b7[_0x2f793e(0x1f71)][_0x2f793e(0x2224)][_0x2f793e(0xd8a)](_0x2f793e(0x106a))<0x0&&(_0x3b36b7['autoreply'][_0x2f793e(0x2224)]+=_0x2f793e(0x106a)):_0x3b36b7[_0x2f793e(0x1f71)]['options']=_0x3b36b7[_0x2f793e(0x1f71)]['options'][_0x2f793e(0x288f)](_0x2f793e(0x106a),''));if(_0x3b36b7['autoreply'][_0x2f793e(0x299b)]&&_0x3b36b7[_0x2f793e(0x1f71)][_0x2f793e(0x299b)]==='custom'){}else switch((_0x3b36b7[_0x2f793e(0x1f71)][_0x2f793e(0x22e1)]||_0x3b36b7[_0x2f793e(0x1f71)][_0x2f793e(0x299b)])['toLowerCase']()){case _0x2f793e(0x19d1):_0x3b36b7[_0x2f793e(0x1f71)]['appdata']=_0x3b36b7[_0x2f793e(0x1f71)][_0x2f793e(0x16b6)]+'='+_0x3b36b7[_0x2f793e(0x1f71)]['value'];break;case'custom':break;default:_0x4dff9a[0x0]=_0x3b36b7[_0x2f793e(0x1f71)][_0x2f793e(0x18a5)],_0x4dff9a[0x1]=_0x3b36b7[_0x2f793e(0x1f71)][_0x2f793e(0x19d3)],_0x3b36b7['autoreply'][_0x2f793e(0x28df)]=_0x4dff9a[_0x2f793e(0x1f66)](',');}_0x560def(_0x3b36b7[_0x2f793e(0x1f71)]);}function _0x560def(_0x22bc85){_0x8bc469['hide'](_0x22bc85);}}const _0x295ec7=_0x3c0af0;;_0xeabb99[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x795),_0x5537c6(0x658),'api','Auth',_0x5537c6(0x1b1a)];function _0xeabb99(_0xee2b41,_0x28f331,_0x34006f,_0x4732d3,_0xa20b86,_0x410d8b,_0x8e2572,_0x2f3227){const _0x59508d=_0x5537c6,_0x2965bc=this;_0x2965bc['currentUser']=_0x8e2572[_0x59508d(0x21e8)](),_0x2965bc[_0x59508d(0x1a7c)]=[],_0x2965bc['title']=_0x59508d(0x1149)+(_0x4732d3[_0x59508d(0x299b)]||_0x4732d3[_0x59508d(0x22e1)])['toUpperCase'](),_0x2965bc[_0x59508d(0xf3b)]=angular['copy'](_0x4732d3),_0x2965bc[_0x59508d(0x1b1a)]=_0x2f3227,_0x2965bc[_0x59508d(0xf4c)]={};if(_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x28df)])switch(_0x2965bc['close'][_0x59508d(0x299b)]?_0x2965bc[_0x59508d(0xf3b)]['appType']['toLowerCase']():_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x22e1)][_0x59508d(0x1680)]()){case _0x59508d(0x197c):break;case _0x59508d(0x711):{const _0x5cc1cb=_0x2965bc['close'][_0x59508d(0x28df)][_0x59508d(0xbe1)](',');_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0xee8)]=_0x5cc1cb[0x0],_0x2965bc['close']['language']=_0x5cc1cb[0x1],_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x173a)]=_0x5cc1cb[_0x59508d(0x14cb)](0x2,_0x5cc1cb['length'])[_0x59508d(0x1f66)](',');}break;case _0x59508d(0xece):{const _0xe5095c=_0x2965bc['close'][_0x59508d(0x28df)][_0x59508d(0xbe1)](',');_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x2854)]=_0xe5095c[0x0],_0x2965bc[_0x59508d(0xf3b)]['clientEmail']=_0xe5095c[0x1],_0x2965bc[_0x59508d(0xf3b)]['privateKey']=_0xe5095c[0x2],_0x2965bc['close'][_0x59508d(0x12b4)]=_0xe5095c[0x3],_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x173a)]=_0xe5095c[_0x59508d(0x14cb)](0x4,_0xe5095c[_0x59508d(0xfd0)])['join'](',');}break;case'amazonlex':{const _0x210c28=_0x2965bc['close'][_0x59508d(0x28df)]['split'](',');_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x413)]=_0x210c28[0x0],_0x2965bc[_0x59508d(0xf3b)]['secretaccesskey']=_0x210c28[0x1],_0x2965bc['close']['lexregion']=_0x210c28[0x2],_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x1c7f)]=_0x210c28[0x3],_0x2965bc[_0x59508d(0xf3b)]['welcomemessage']=_0x210c28[_0x59508d(0x14cb)](0x4,_0x210c28['length'])[_0x59508d(0x1f66)](',');}break;case _0x59508d(0x1f71):{const _0x4f2bd9=_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x28df)][_0x59508d(0xbe1)](',');_0x2965bc[_0x59508d(0xf3b)]['times']=isNaN(_0x4f2bd9[0x0])?_0x4f2bd9[0x0]:parseInt(_0x4f2bd9[0x0],0xa),_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x19d3)]=_0x4f2bd9[_0x59508d(0x14cb)](0x1,_0x4f2bd9[_0x59508d(0xfd0)])[_0x59508d(0x1f66)](',');}break;case _0x59508d(0x155e):_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x19d3)]=_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x28df)];break;case _0x59508d(0x19d1):_0x2965bc['close'][_0x59508d(0x16b6)]=_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x28df)][_0x59508d(0xbe1)]('=')[0x0],_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x327)]=_0x2965bc[_0x59508d(0xf3b)]['appdata'][_0x59508d(0xbe1)]('=')[0x1];break;case _0x59508d(0x4b4):_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x12a7)]=_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x28df)];break;default:{const _0x226641=_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x28df)][_0x59508d(0xbe1)](',');_0x2965bc['close']['disposition']=_0x39641b()[_0x59508d(0xce9)](_0x226641[0x0])?_0x226641[0x0]:isNaN(_0x226641[0x0])?_0x226641[0x0]:parseInt(_0x226641[0x0],0xa);}break;}else{}_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x66a)]&&_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x66a)][_0x59508d(0x1680)]()==='outbound'&&_0x2965bc['close'][_0x59508d(0x299b)][_0x59508d(0x1680)]()===_0x59508d(0x20ff)&&(_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x586)]=_0x2965bc[_0x59508d(0xf3b)]['phone']?_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x1340)][_0x59508d(0xbe1)]('$')[0x0]:undefined,_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x1e7c)]=_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x2816)]?_0x59508d(0x25f9)+_0x2965bc[_0x59508d(0xf3b)][_0x59508d(0x2816)]:undefined);_0x2965bc[_0x59508d(0xc3f)]=_0x2a1bce,_0x2965bc[_0x59508d(0xda0)]=_0x4b1288;function _0x2a1bce(){const _0x3fa0d7=_0x59508d;_0x2965bc[_0x3fa0d7(0x1a7c)]=[];const _0x527445=[];_0x2965bc['close'][_0x3fa0d7(0x66a)]&&_0x2965bc[_0x3fa0d7(0xf3b)][_0x3fa0d7(0x66a)][_0x3fa0d7(0x1680)]()===_0x3fa0d7(0x895)&&_0x2965bc[_0x3fa0d7(0xf3b)]['appType']==='outboundDial'&&(_0x2965bc['close'][_0x3fa0d7(0x1340)]=_0xa20b86['cutdigits']?(_0x2965bc[_0x3fa0d7(0xf3b)][_0x3fa0d7(0x586)]||'')+_0x3fa0d7(0x19e4)+_0xa20b86[_0x3fa0d7(0x325)]+'}':(_0x2965bc['close'][_0x3fa0d7(0x586)]||'')+'${EXTEN}',_0xa20b86['recordingFormat']!==_0x3fa0d7(0x13b1)?_0x2965bc[_0x3fa0d7(0xf3b)][_0x3fa0d7(0x2224)][_0x3fa0d7(0xd8a)](_0x3fa0d7(0x106a))<0x0&&(_0x2965bc[_0x3fa0d7(0xf3b)][_0x3fa0d7(0x2224)]+=_0x3fa0d7(0x106a)):_0x2965bc[_0x3fa0d7(0xf3b)]['options']=_0x2965bc[_0x3fa0d7(0xf3b)]['options']['replace']('U(xcally-mixmonitor-context)',''));if(_0x2965bc['close'][_0x3fa0d7(0x299b)]&&_0x2965bc['close'][_0x3fa0d7(0x299b)]===_0x3fa0d7(0x197c)){}else switch((_0x2965bc[_0x3fa0d7(0xf3b)][_0x3fa0d7(0x22e1)]||_0x2965bc[_0x3fa0d7(0xf3b)][_0x3fa0d7(0x299b)])[_0x3fa0d7(0x1680)]()){case _0x3fa0d7(0x19d1):_0x2965bc[_0x3fa0d7(0xf3b)][_0x3fa0d7(0x28df)]=_0x2965bc[_0x3fa0d7(0xf3b)][_0x3fa0d7(0x16b6)]+'='+_0x2965bc['close'][_0x3fa0d7(0x327)];break;case _0x3fa0d7(0x197c):break;default:_0x527445[0x0]=_0x2965bc[_0x3fa0d7(0xf3b)][_0x3fa0d7(0x1746)],_0x2965bc[_0x3fa0d7(0xf3b)]['appdata']=_0x527445['join'](',');}_0x4b1288(_0x2965bc[_0x3fa0d7(0xf3b)]);}function _0x4b1288(_0x57d4d){const _0x2ca1b9=_0x59508d;_0xee2b41[_0x2ca1b9(0x1426)](_0x57d4d);}}const _0x10b864=_0xeabb99;;_0x594161[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x795),'smsAccount',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x594161(_0x25af9b,_0xadf157,_0x19ccbe,_0x4251e1,_0xc1a4c1,_0x20c346,_0x5d2997,_0x14de1c){const _0x1389bc=_0x5537c6,_0x3c2ec7=this;_0x3c2ec7[_0x1389bc(0xe76)]=_0x5d2997[_0x1389bc(0x21e8)](),_0x3c2ec7[_0x1389bc(0x1a7c)]=[],_0x3c2ec7['title']=_0x1389bc(0x1149)+(_0x4251e1[_0x1389bc(0x299b)]||_0x4251e1[_0x1389bc(0x22e1)])[_0x1389bc(0x2335)](),_0x3c2ec7[_0x1389bc(0x711)]=angular['copy'](_0x4251e1),_0x3c2ec7[_0x1389bc(0x1b1a)]=_0x14de1c,_0x3c2ec7[_0x1389bc(0xf4c)]={};if(_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x28df)])switch(_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x299b)]?_0x3c2ec7['dialogflow'][_0x1389bc(0x299b)][_0x1389bc(0x1680)]():_0x3c2ec7[_0x1389bc(0x711)]['app'][_0x1389bc(0x1680)]()){case'custom':break;case _0x1389bc(0x711):{const _0x17ed2d=_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x28df)][_0x1389bc(0xbe1)](',');_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0xee8)]=_0x17ed2d[0x0],_0x3c2ec7['dialogflow'][_0x1389bc(0x12b4)]=_0x17ed2d[0x1],_0x3c2ec7['dialogflow'][_0x1389bc(0x173a)]=_0x17ed2d[_0x1389bc(0x14cb)](0x2,_0x17ed2d['length'])[_0x1389bc(0x1f66)](',');}break;case'dialogflowv2':{const _0x10c64a=_0x3c2ec7['dialogflow'][_0x1389bc(0x28df)][_0x1389bc(0xbe1)](',');_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x2854)]=_0x10c64a[0x0],_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x12bf)]=_0x10c64a[0x1],_0x3c2ec7['dialogflow'][_0x1389bc(0x29d6)]=_0x10c64a[0x2],_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x12b4)]=_0x10c64a[0x3],_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x173a)]=_0x10c64a[_0x1389bc(0x14cb)](0x4,_0x10c64a[_0x1389bc(0xfd0)])[_0x1389bc(0x1f66)](',');}break;case _0x1389bc(0x123a):{const _0x46cbc2=_0x3c2ec7['dialogflow']['appdata'][_0x1389bc(0xbe1)](',');_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x413)]=_0x46cbc2[0x0],_0x3c2ec7['dialogflow']['secretaccesskey']=_0x46cbc2[0x1],_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0xd50)]=_0x46cbc2[0x2],_0x3c2ec7['dialogflow'][_0x1389bc(0x1c7f)]=_0x46cbc2[0x3],_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x173a)]=_0x46cbc2[_0x1389bc(0x14cb)](0x4,_0x46cbc2[_0x1389bc(0xfd0)])[_0x1389bc(0x1f66)](',');}break;case _0x1389bc(0x1f71):{const _0x2c3fae=_0x3c2ec7[_0x1389bc(0x711)]['appdata'][_0x1389bc(0xbe1)](',');_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x18a5)]=isNaN(_0x2c3fae[0x0])?_0x2c3fae[0x0]:parseInt(_0x2c3fae[0x0],0xa),_0x3c2ec7['dialogflow'][_0x1389bc(0x19d3)]=_0x2c3fae[_0x1389bc(0x14cb)](0x1,_0x2c3fae[_0x1389bc(0xfd0)])[_0x1389bc(0x1f66)](',');}break;case'message':_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x19d3)]=_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x28df)];break;case _0x1389bc(0x19d1):_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x16b6)]=_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x28df)][_0x1389bc(0xbe1)]('=')[0x0],_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x327)]=_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x28df)][_0x1389bc(0xbe1)]('=')[0x1];break;case _0x1389bc(0x4b4):_0x3c2ec7[_0x1389bc(0x711)]['project']=_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x28df)];break;default:{const _0x3cdbc4=_0x3c2ec7[_0x1389bc(0x711)]['appdata'][_0x1389bc(0xbe1)](',');_0x3c2ec7['dialogflow']['key']=_0x39641b()[_0x1389bc(0xce9)](_0x3cdbc4[0x0])?_0x3cdbc4[0x0]:isNaN(_0x3cdbc4[0x0])?_0x3cdbc4[0x0]:parseInt(_0x3cdbc4[0x0],0xa),_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x12b4)]=_0x39641b()[_0x1389bc(0xce9)](_0x3cdbc4[0x1])?_0x3cdbc4[0x1]:isNaN(_0x3cdbc4[0x1])?_0x3cdbc4[0x1]:parseInt(_0x3cdbc4[0x1],0xa),_0x3c2ec7[_0x1389bc(0x711)]['welcomemessage']=_0x39641b()['isEmpty'](_0x3cdbc4[0x2])?_0x3cdbc4[0x2]:isNaN(_0x3cdbc4[0x2])?_0x3cdbc4[0x2]:parseInt(_0x3cdbc4[0x2],0xa);}break;}else _0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x12b4)]='en';_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x66a)]&&_0x3c2ec7['dialogflow'][_0x1389bc(0x66a)][_0x1389bc(0x1680)]()===_0x1389bc(0x895)&&_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x299b)][_0x1389bc(0x1680)]()==='outbounddial'&&(_0x3c2ec7['dialogflow'][_0x1389bc(0x586)]=_0x3c2ec7[_0x1389bc(0x711)]['phone']?_0x3c2ec7['dialogflow'][_0x1389bc(0x1340)]['split']('$')[0x0]:undefined,_0x3c2ec7[_0x1389bc(0x711)][_0x1389bc(0x1e7c)]=_0x3c2ec7[_0x1389bc(0x711)]['callerID']?_0x1389bc(0x25f9)+_0x3c2ec7['dialogflow'][_0x1389bc(0x2816)]:undefined);_0x3c2ec7[_0x1389bc(0xc3f)]=_0x10f927,_0x3c2ec7[_0x1389bc(0xda0)]=_0x1a3e22;function _0x10f927(){const _0x5f2b5d=_0x1389bc;_0x3c2ec7[_0x5f2b5d(0x1a7c)]=[];const _0x4f5d3d=[];_0x3c2ec7[_0x5f2b5d(0x711)]['type']&&_0x3c2ec7['dialogflow'][_0x5f2b5d(0x66a)][_0x5f2b5d(0x1680)]()===_0x5f2b5d(0x895)&&_0x3c2ec7[_0x5f2b5d(0x711)][_0x5f2b5d(0x299b)]===_0x5f2b5d(0x25f4)&&(_0x3c2ec7[_0x5f2b5d(0x711)][_0x5f2b5d(0x1340)]=_0xc1a4c1['cutdigits']?(_0x3c2ec7[_0x5f2b5d(0x711)][_0x5f2b5d(0x586)]||'')+_0x5f2b5d(0x19e4)+_0xc1a4c1[_0x5f2b5d(0x325)]+'}':(_0x3c2ec7['dialogflow']['prefix']||'')+_0x5f2b5d(0xcdd),_0xc1a4c1['recordingFormat']!=='none'?_0x3c2ec7[_0x5f2b5d(0x711)][_0x5f2b5d(0x2224)][_0x5f2b5d(0xd8a)](_0x5f2b5d(0x106a))<0x0&&(_0x3c2ec7[_0x5f2b5d(0x711)][_0x5f2b5d(0x2224)]+=_0x5f2b5d(0x106a)):_0x3c2ec7[_0x5f2b5d(0x711)][_0x5f2b5d(0x2224)]=_0x3c2ec7['dialogflow'][_0x5f2b5d(0x2224)]['replace'](_0x5f2b5d(0x106a),''));if(_0x3c2ec7[_0x5f2b5d(0x711)][_0x5f2b5d(0x299b)]&&_0x3c2ec7[_0x5f2b5d(0x711)][_0x5f2b5d(0x299b)]==='custom'){}else switch((_0x3c2ec7[_0x5f2b5d(0x711)][_0x5f2b5d(0x22e1)]||_0x3c2ec7[_0x5f2b5d(0x711)][_0x5f2b5d(0x299b)])['toLowerCase']()){case _0x5f2b5d(0x19d1):_0x3c2ec7['dialogflow'][_0x5f2b5d(0x28df)]=_0x3c2ec7[_0x5f2b5d(0x711)][_0x5f2b5d(0x16b6)]+'='+_0x3c2ec7[_0x5f2b5d(0x711)][_0x5f2b5d(0x327)];break;case _0x5f2b5d(0x197c):break;default:_0x4f5d3d[0x0]=_0x3c2ec7[_0x5f2b5d(0x711)][_0x5f2b5d(0xee8)],_0x4f5d3d[0x1]=_0x3c2ec7[_0x5f2b5d(0x711)][_0x5f2b5d(0x12b4)],_0x4f5d3d[0x2]=_0x3c2ec7[_0x5f2b5d(0x711)]['welcomemessage'],_0x3c2ec7[_0x5f2b5d(0x711)]['appdata']=_0x4f5d3d[_0x5f2b5d(0x1f66)](',');}_0x1a3e22(_0x3c2ec7['dialogflow']);}function _0x1a3e22(_0x3fdfcd){const _0x4dc6ca=_0x1389bc;_0x25af9b[_0x4dc6ca(0x1426)](_0x3fdfcd);}}const _0x4f1564=_0x594161;;_0x8189eb['$inject']=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x795),_0x5537c6(0x658),_0x5537c6(0x142b),'Auth',_0x5537c6(0x1b1a)];function _0x8189eb(_0x29415a,_0x59639e,_0x2b073a,_0x2d49ae,_0x4809b0,_0x2406ac,_0x1380d8,_0x420c3a){const _0x11d592=_0x5537c6,_0x342ea6=this;_0x342ea6['currentUser']=_0x1380d8[_0x11d592(0x21e8)](),_0x342ea6[_0x11d592(0x1a7c)]=[],_0x342ea6[_0x11d592(0x1386)]=_0x11d592(0x1149)+(_0x2d49ae[_0x11d592(0x299b)]||_0x2d49ae[_0x11d592(0x22e1)])[_0x11d592(0x2335)](),_0x342ea6['gotoif']=angular[_0x11d592(0x17fe)](_0x2d49ae),_0x342ea6[_0x11d592(0x1b1a)]=_0x420c3a,_0x342ea6[_0x11d592(0xf4c)]={};if(_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x28df)])switch(_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x299b)]?_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x299b)][_0x11d592(0x1680)]():_0x342ea6['gotoif'][_0x11d592(0x22e1)]['toLowerCase']()){case _0x11d592(0x197c):break;case _0x11d592(0x711):{const _0x498072=_0x342ea6[_0x11d592(0x13a0)]['appdata']['split'](',');_0x342ea6[_0x11d592(0x13a0)]['key']=_0x498072[0x0],_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x12b4)]=_0x498072[0x1],_0x342ea6[_0x11d592(0x13a0)]['welcomemessage']=_0x498072[_0x11d592(0x14cb)](0x2,_0x498072[_0x11d592(0xfd0)])[_0x11d592(0x1f66)](',');}break;case _0x11d592(0xece):{const _0x57f474=_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x28df)]['split'](',');_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x2854)]=_0x57f474[0x0],_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x12bf)]=_0x57f474[0x1],_0x342ea6['gotoif'][_0x11d592(0x29d6)]=_0x57f474[0x2],_0x342ea6[_0x11d592(0x13a0)]['language']=_0x57f474[0x3],_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x173a)]=_0x57f474[_0x11d592(0x14cb)](0x4,_0x57f474[_0x11d592(0xfd0)])['join'](',');}break;case _0x11d592(0x123a):{const _0x5bb9ca=_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x28df)][_0x11d592(0xbe1)](',');_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x413)]=_0x5bb9ca[0x0],_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x21d9)]=_0x5bb9ca[0x1],_0x342ea6['gotoif'][_0x11d592(0xd50)]=_0x5bb9ca[0x2],_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x1c7f)]=_0x5bb9ca[0x3],_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x173a)]=_0x5bb9ca[_0x11d592(0x14cb)](0x4,_0x5bb9ca[_0x11d592(0xfd0)])['join'](',');}break;case _0x11d592(0x1f71):{const _0x1cf3ce=_0x342ea6[_0x11d592(0x13a0)]['appdata'][_0x11d592(0xbe1)](',');_0x342ea6['gotoif'][_0x11d592(0x18a5)]=isNaN(_0x1cf3ce[0x0])?_0x1cf3ce[0x0]:parseInt(_0x1cf3ce[0x0],0xa),_0x342ea6['gotoif'][_0x11d592(0x19d3)]=_0x1cf3ce[_0x11d592(0x14cb)](0x1,_0x1cf3ce['length'])['join'](',');}break;case _0x11d592(0x155e):_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x19d3)]=_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x28df)];break;case _0x11d592(0x19d1):_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x16b6)]=_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x28df)]['split']('=')[0x0],_0x342ea6[_0x11d592(0x13a0)]['value']=_0x342ea6['gotoif'][_0x11d592(0x28df)][_0x11d592(0xbe1)]('=')[0x1];break;case _0x11d592(0x4b4):_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x12a7)]=_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x28df)];break;default:{const _0x42fa8c=_0x342ea6[_0x11d592(0x13a0)]['appdata']['split'](',');_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x166c)]=_0x39641b()[_0x11d592(0xce9)](_0x42fa8c[0x0])?_0x42fa8c[0x0]:isNaN(_0x42fa8c[0x0])?_0x42fa8c[0x0]:parseInt(_0x42fa8c[0x0],0xa),_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0xb24)]=_0x39641b()[_0x11d592(0xce9)](_0x42fa8c[0x1])?_0x42fa8c[0x1]:isNaN(_0x42fa8c[0x1])?_0x42fa8c[0x1]:parseInt(_0x42fa8c[0x1],0xa),_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x17d)]=_0x39641b()[_0x11d592(0xce9)](_0x42fa8c[0x2])?_0x42fa8c[0x2]:isNaN(_0x42fa8c[0x2])?_0x42fa8c[0x2]:parseInt(_0x42fa8c[0x2],0xa);}break;}else{}_0x342ea6['gotoif']['type']&&_0x342ea6['gotoif'][_0x11d592(0x66a)][_0x11d592(0x1680)]()===_0x11d592(0x895)&&_0x342ea6['gotoif'][_0x11d592(0x299b)][_0x11d592(0x1680)]()===_0x11d592(0x20ff)&&(_0x342ea6['gotoif'][_0x11d592(0x586)]=_0x342ea6['gotoif']['phone']?_0x342ea6['gotoif'][_0x11d592(0x1340)][_0x11d592(0xbe1)]('$')[0x0]:undefined,_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x1e7c)]=_0x342ea6[_0x11d592(0x13a0)][_0x11d592(0x2816)]?_0x11d592(0x25f9)+_0x342ea6['gotoif'][_0x11d592(0x2816)]:undefined);_0x342ea6[_0x11d592(0xc3f)]=_0x46f7b7,_0x342ea6[_0x11d592(0xda0)]=_0x5d7f7d;function _0x46f7b7(){const _0x574bae=_0x11d592;_0x342ea6[_0x574bae(0x1a7c)]=[];const _0x379df4=[];_0x342ea6[_0x574bae(0x13a0)]['type']&&_0x342ea6[_0x574bae(0x13a0)][_0x574bae(0x66a)]['toLowerCase']()===_0x574bae(0x895)&&_0x342ea6['gotoif']['appType']===_0x574bae(0x25f4)&&(_0x342ea6[_0x574bae(0x13a0)][_0x574bae(0x1340)]=_0x4809b0[_0x574bae(0x325)]?(_0x342ea6[_0x574bae(0x13a0)][_0x574bae(0x586)]||'')+_0x574bae(0x19e4)+_0x4809b0[_0x574bae(0x325)]+'}':(_0x342ea6[_0x574bae(0x13a0)][_0x574bae(0x586)]||'')+_0x574bae(0xcdd),_0x4809b0[_0x574bae(0xf8d)]!==_0x574bae(0x13b1)?_0x342ea6[_0x574bae(0x13a0)][_0x574bae(0x2224)][_0x574bae(0xd8a)](_0x574bae(0x106a))<0x0&&(_0x342ea6[_0x574bae(0x13a0)]['options']+='U(xcally-mixmonitor-context)'):_0x342ea6[_0x574bae(0x13a0)][_0x574bae(0x2224)]=_0x342ea6[_0x574bae(0x13a0)]['options'][_0x574bae(0x288f)](_0x574bae(0x106a),''));if(_0x342ea6['gotoif'][_0x574bae(0x299b)]&&_0x342ea6[_0x574bae(0x13a0)]['appType']==='custom'){}else switch((_0x342ea6['gotoif'][_0x574bae(0x22e1)]||_0x342ea6[_0x574bae(0x13a0)][_0x574bae(0x299b)])[_0x574bae(0x1680)]()){case _0x574bae(0x19d1):_0x342ea6[_0x574bae(0x13a0)][_0x574bae(0x28df)]=_0x342ea6[_0x574bae(0x13a0)]['name']+'='+_0x342ea6[_0x574bae(0x13a0)]['value'];break;case _0x574bae(0x197c):break;default:_0x379df4[0x0]=_0x342ea6[_0x574bae(0x13a0)][_0x574bae(0x166c)],_0x379df4[0x1]=_0x342ea6[_0x574bae(0x13a0)][_0x574bae(0xb24)],_0x379df4[0x2]=_0x342ea6['gotoif']['falsepriority'],_0x342ea6[_0x574bae(0x13a0)][_0x574bae(0x28df)]=_0x379df4[_0x574bae(0x1f66)](',');}_0x5d7f7d(_0x342ea6[_0x574bae(0x13a0)]);}function _0x5d7f7d(_0x2db356){const _0x2dcf26=_0x11d592;_0x29415a[_0x2dcf26(0x1426)](_0x2db356);}}const _0x204c0c=_0x8189eb;;_0x4efdf1[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x795),_0x5537c6(0x658),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x4efdf1(_0x1afd93,_0x192606,_0x358aff,_0x4ff8c4,_0x23a6ef,_0x3e1a76,_0x4b8cdc,_0x2de5ac){const _0xb9424e=_0x5537c6,_0x5146bc=this;_0x5146bc[_0xb9424e(0xe76)]=_0x4b8cdc[_0xb9424e(0x21e8)](),_0x5146bc[_0xb9424e(0x1a7c)]=[],_0x5146bc[_0xb9424e(0x1386)]=_0xb9424e(0x1149)+(_0x4ff8c4[_0xb9424e(0x299b)]||_0x4ff8c4[_0xb9424e(0x22e1)])[_0xb9424e(0x2335)](),_0x5146bc[_0xb9424e(0x265b)]=angular[_0xb9424e(0x17fe)](_0x4ff8c4),_0x5146bc[_0xb9424e(0x1b1a)]=_0x2de5ac,_0x5146bc[_0xb9424e(0xf4c)]={};if(_0x5146bc['gotop'][_0xb9424e(0x28df)])switch(_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x299b)]?_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x299b)][_0xb9424e(0x1680)]():_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x22e1)][_0xb9424e(0x1680)]()){case _0xb9424e(0x197c):break;case _0xb9424e(0x711):{const _0x2121a5=_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x28df)]['split'](',');_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0xee8)]=_0x2121a5[0x0],_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x12b4)]=_0x2121a5[0x1],_0x5146bc['gotop'][_0xb9424e(0x173a)]=_0x2121a5['slice'](0x2,_0x2121a5['length'])[_0xb9424e(0x1f66)](',');}break;case'dialogflowv2':{const _0x197931=_0x5146bc[_0xb9424e(0x265b)]['appdata']['split'](',');_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x2854)]=_0x197931[0x0],_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x12bf)]=_0x197931[0x1],_0x5146bc['gotop']['privateKey']=_0x197931[0x2],_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x12b4)]=_0x197931[0x3],_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x173a)]=_0x197931[_0xb9424e(0x14cb)](0x4,_0x197931[_0xb9424e(0xfd0)])['join'](',');}break;case'amazonlex':{const _0x5e9a8e=_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x28df)][_0xb9424e(0xbe1)](',');_0x5146bc[_0xb9424e(0x265b)]['accesskeyid']=_0x5e9a8e[0x0],_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x21d9)]=_0x5e9a8e[0x1],_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0xd50)]=_0x5e9a8e[0x2],_0x5146bc['gotop'][_0xb9424e(0x1c7f)]=_0x5e9a8e[0x3],_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x173a)]=_0x5e9a8e[_0xb9424e(0x14cb)](0x4,_0x5e9a8e[_0xb9424e(0xfd0)])[_0xb9424e(0x1f66)](',');}break;case _0xb9424e(0x1f71):{const _0x4a40fc=_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x28df)][_0xb9424e(0xbe1)](',');_0x5146bc['gotop'][_0xb9424e(0x18a5)]=isNaN(_0x4a40fc[0x0])?_0x4a40fc[0x0]:parseInt(_0x4a40fc[0x0],0xa),_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x19d3)]=_0x4a40fc[_0xb9424e(0x14cb)](0x1,_0x4a40fc[_0xb9424e(0xfd0)])[_0xb9424e(0x1f66)](',');}break;case _0xb9424e(0x155e):_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x19d3)]=_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x28df)];break;case _0xb9424e(0x19d1):_0x5146bc['gotop'][_0xb9424e(0x16b6)]=_0x5146bc[_0xb9424e(0x265b)]['appdata'][_0xb9424e(0xbe1)]('=')[0x0],_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x327)]=_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x28df)][_0xb9424e(0xbe1)]('=')[0x1];break;case _0xb9424e(0x4b4):_0x5146bc[_0xb9424e(0x265b)]['project']=_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x28df)];break;default:{const _0x35562e=_0x5146bc['gotop'][_0xb9424e(0x28df)]['split'](',');_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x521)]=_0x39641b()[_0xb9424e(0xce9)](_0x35562e[0x0])?_0x35562e[0x0]:isNaN(_0x35562e[0x0])?_0x35562e[0x0]:parseInt(_0x35562e[0x0],0xa);}break;}else{}_0x5146bc[_0xb9424e(0x265b)]['type']&&_0x5146bc['gotop'][_0xb9424e(0x66a)][_0xb9424e(0x1680)]()===_0xb9424e(0x895)&&_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x299b)][_0xb9424e(0x1680)]()===_0xb9424e(0x20ff)&&(_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x586)]=_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x1340)]?_0x5146bc[_0xb9424e(0x265b)]['phone'][_0xb9424e(0xbe1)]('$')[0x0]:undefined,_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x1e7c)]=_0x5146bc[_0xb9424e(0x265b)][_0xb9424e(0x2816)]?_0xb9424e(0x25f9)+_0x5146bc['gotop'][_0xb9424e(0x2816)]:undefined);_0x5146bc[_0xb9424e(0xc3f)]=_0x234906,_0x5146bc[_0xb9424e(0xda0)]=_0x368c60;function _0x234906(){const _0x42a6e6=_0xb9424e;_0x5146bc[_0x42a6e6(0x1a7c)]=[];const _0x55e5d6=[];_0x5146bc[_0x42a6e6(0x265b)][_0x42a6e6(0x66a)]&&_0x5146bc[_0x42a6e6(0x265b)][_0x42a6e6(0x66a)][_0x42a6e6(0x1680)]()===_0x42a6e6(0x895)&&_0x5146bc['gotop'][_0x42a6e6(0x299b)]===_0x42a6e6(0x25f4)&&(_0x5146bc[_0x42a6e6(0x265b)][_0x42a6e6(0x1340)]=_0x23a6ef['cutdigits']?(_0x5146bc[_0x42a6e6(0x265b)][_0x42a6e6(0x586)]||'')+_0x42a6e6(0x19e4)+_0x23a6ef[_0x42a6e6(0x325)]+'}':(_0x5146bc[_0x42a6e6(0x265b)][_0x42a6e6(0x586)]||'')+'${EXTEN}',_0x23a6ef[_0x42a6e6(0xf8d)]!==_0x42a6e6(0x13b1)?_0x5146bc[_0x42a6e6(0x265b)][_0x42a6e6(0x2224)][_0x42a6e6(0xd8a)](_0x42a6e6(0x106a))<0x0&&(_0x5146bc['gotop'][_0x42a6e6(0x2224)]+='U(xcally-mixmonitor-context)'):_0x5146bc[_0x42a6e6(0x265b)]['options']=_0x5146bc['gotop']['options'][_0x42a6e6(0x288f)](_0x42a6e6(0x106a),''));if(_0x5146bc[_0x42a6e6(0x265b)][_0x42a6e6(0x299b)]&&_0x5146bc[_0x42a6e6(0x265b)][_0x42a6e6(0x299b)]==='custom'){}else switch((_0x5146bc[_0x42a6e6(0x265b)]['app']||_0x5146bc[_0x42a6e6(0x265b)][_0x42a6e6(0x299b)])[_0x42a6e6(0x1680)]()){case _0x42a6e6(0x19d1):_0x5146bc[_0x42a6e6(0x265b)]['appdata']=_0x5146bc[_0x42a6e6(0x265b)][_0x42a6e6(0x16b6)]+'='+_0x5146bc['gotop'][_0x42a6e6(0x327)];break;case _0x42a6e6(0x197c):break;default:_0x55e5d6[0x0]=_0x5146bc['gotop']['priority'],_0x5146bc[_0x42a6e6(0x265b)][_0x42a6e6(0x28df)]=_0x55e5d6[_0x42a6e6(0x1f66)](',');}_0x368c60(_0x5146bc[_0x42a6e6(0x265b)]);}function _0x368c60(_0x1a7b73){const _0x20ed83=_0xb9424e;_0x1afd93[_0x20ed83(0x1426)](_0x1a7b73);}}const _0x305961=_0x4efdf1;;_0x33dc04[_0x5537c6(0x15b6)]=['$state','$mdDialog',_0x5537c6(0x200d),_0x5537c6(0x1b2),_0x5537c6(0x1ac8),_0x5537c6(0xb4a),'toasty','api','Auth','crudPermissions'];function _0x33dc04(_0x4b9caf,_0x41513d,_0x50890f,_0x3f213f,_0x16a78c,_0x39e1b0,_0x2ee0b8,_0x571b74,_0x1ab1c5,_0x1ee7cc){const _0x2c5143=_0x5537c6,_0x41cbb4=this;_0x41cbb4[_0x2c5143(0xe76)]=_0x1ab1c5[_0x2c5143(0x21e8)](),_0x41cbb4['errors']=[],_0x41cbb4['title']=_0x2c5143(0x1571),_0x41cbb4[_0x2c5143(0x1ac8)]=angular[_0x2c5143(0x17fe)](_0x16a78c),_0x41cbb4['intervals']=_0x39e1b0,_0x41cbb4[_0x2c5143(0x18c1)]=![],_0x41cbb4[_0x2c5143(0x2025)]=['always',_0x2c5143(0x197c),_0x2c5143(0x240)],_0x41cbb4[_0x2c5143(0x1b1a)]=_0x1ee7cc,_0x41cbb4[_0x2c5143(0x1275)]=_0x3f213f[_0x2c5143(0x1aae)](),_0x41cbb4[_0x2c5143(0x2055)]=_0x3f213f[_0x2c5143(0xa76)](),_0x41cbb4[_0x2c5143(0x1534)]=_0x3f213f['getMonthName'](),_0x41cbb4[_0x2c5143(0x202d)]=_0x3f213f[_0x2c5143(0xc1e)]();if(!_0x41cbb4['interval'])_0x41cbb4[_0x2c5143(0x1ac8)]={'interval':_0x2c5143(0x965)},_0x41cbb4[_0x2c5143(0x66a)]=_0x2c5143(0x2017),_0x41cbb4[_0x2c5143(0x1386)]=_0x2c5143(0x287b),_0x41cbb4[_0x2c5143(0x18c1)]=!![];else{if(_0x41cbb4[_0x2c5143(0x1ac8)]['interval']!=='*,*,*,*'){_0x41cbb4[_0x2c5143(0x66a)]='custom';const _0x38a0d8=_0x41cbb4[_0x2c5143(0x1ac8)]['interval'][_0x2c5143(0xbe1)](','),_0x13a82e=_0x38a0d8[0x0],_0x31d87c=_0x38a0d8[0x1],_0x33c6f5=_0x38a0d8[0x2],_0x2f4ff5=_0x38a0d8[0x3];if(_0x13a82e!=='*'){const _0x711a3d=_0x13a82e[_0x2c5143(0xbe1)]('-')[0x0],_0x2813ce=_0x13a82e[_0x2c5143(0xbe1)]('-')[0x1];let _0x2d3ba8;_0x2d3ba8=new Date(),_0x2d3ba8[_0x2c5143(0x201b)](Number(_0x711a3d['split'](':')[0x0])),_0x2d3ba8[_0x2c5143(0x1622)](Number(_0x711a3d[_0x2c5143(0xbe1)](':')[0x1])),_0x41cbb4[_0x2c5143(0x718)]=_0x2d3ba8,_0x2d3ba8=new Date(),_0x2d3ba8[_0x2c5143(0x201b)](Number(_0x2813ce[_0x2c5143(0xbe1)](':')[0x0])),_0x2d3ba8[_0x2c5143(0x1622)](Number(_0x2813ce[_0x2c5143(0xbe1)](':')[0x1])),_0x41cbb4[_0x2c5143(0x64a)]=_0x2d3ba8;}_0x31d87c!=='*'&&(_0x41cbb4[_0x2c5143(0x28a6)]=_0x31d87c[_0x2c5143(0xbe1)]('-')[0x0],_0x41cbb4['dayOfWeekTo']=_0x31d87c[_0x2c5143(0xbe1)]('-')[0x1]),_0x33c6f5!=='*'&&(_0x41cbb4[_0x2c5143(0xd6f)]=_0x33c6f5[_0x2c5143(0xbe1)]('-')[0x0],_0x41cbb4[_0x2c5143(0x194d)]=_0x33c6f5['split']('-')[0x1]),_0x2f4ff5!=='*'&&(_0x41cbb4[_0x2c5143(0x1756)]=_0x2f4ff5[_0x2c5143(0xbe1)]('-')[0x0],_0x41cbb4['monthTo']=_0x2f4ff5[_0x2c5143(0xbe1)]('-')[0x1]);}else _0x41cbb4[_0x2c5143(0x66a)]=_0x2c5143(0x2017);}_0x4b9caf['params']['id']&&!_0x41cbb4['interval']['application']&&(_0x41cbb4[_0x2c5143(0x1ac8)][_0x2c5143(0x1a60)]=_0x4b9caf[_0x2c5143(0x1dfe)]['id']);_0x41cbb4[_0x2c5143(0x1ac8)][_0x2c5143(0x1a60)]&&_0x41cbb4[_0x2c5143(0x1ac8)][_0x2c5143(0x171b)]&&(_0x41cbb4[_0x2c5143(0x66a)]=_0x2c5143(0x240));_0x41cbb4['addNewInterval']=_0xf7c67f,_0x41cbb4[_0x2c5143(0x1891)]=_0x338eeb,_0x41cbb4['closeDialog']=_0x1ba55f;_0x41cbb4[_0x2c5143(0x1ac8)]['application']&&(_0x1ab1c5[_0x2c5143(0x22b6)](_0x2c5143(0x1c60))?_0x571b74['interval'][_0x2c5143(0xbf7)]({'fields':_0x2c5143(0x872),'IntervalId':_0x2c5143(0xd38),'nolimit':!![]})[_0x2c5143(0x1d77)][_0x2c5143(0x1cb0)](function(_0x210dc7){const _0x4a8e95=_0x2c5143;_0x41cbb4[_0x4a8e95(0xb4a)]=_0x210dc7['rows']||[];})[_0x2c5143(0x1c4)](function(_0x50dfbc){const _0x4e4d68=_0x2c5143;_0x2ee0b8[_0x4e4d68(0x218e)]({'title':_0x50dfbc[_0x4e4d68(0x291)]?_0x4e4d68(0xeb9)+_0x50dfbc[_0x4e4d68(0x291)]+_0x4e4d68(0x1657)+_0x50dfbc[_0x4e4d68(0xc22)]:_0x4e4d68(0xdac),'msg':_0x50dfbc['data']?JSON[_0x4e4d68(0x2701)](_0x50dfbc[_0x4e4d68(0x25c)]):_0x50dfbc['toString']()});}):_0x571b74['interval']['get']({'fields':'id,name,interval,IntervalId','IntervalId':_0x2c5143(0xd38),'nolimit':!![]})[_0x2c5143(0x1d77)]['then'](function(_0xce1d32){const _0x5105a6=_0x2c5143;_0x41cbb4['intervals']=_0xce1d32[_0x5105a6(0x2214)]||[];})[_0x2c5143(0x1cb0)](function(){const _0x46e224=_0x2c5143;return _0x571b74[_0x46e224(0x2199)][_0x46e224(0xbf7)]({'userProfileId':_0x41cbb4[_0x46e224(0xe76)]['userProfileId'],'sectionId':0x3ec})['$promise'];})['then'](function(_0x2d3321){const _0x2cb0c4=_0x2c5143,_0x5ad6ab=_0x2d3321&&_0x2d3321['rows']?_0x2d3321[_0x2cb0c4(0x2214)][0x0]:null;if(!_0x5ad6ab)_0x41cbb4[_0x2cb0c4(0xb4a)]=[];else{if(!_0x5ad6ab[_0x2cb0c4(0x12f4)])return _0x571b74[_0x2cb0c4(0x1198)]['get']({'sectionId':_0x5ad6ab['id']})[_0x2cb0c4(0x1d77)][_0x2cb0c4(0x1cb0)](function(_0x20ee74){const _0x33217b=_0x2cb0c4,_0x2eb536=_0x20ee74&&_0x20ee74[_0x33217b(0x2214)]?_0x20ee74[_0x33217b(0x2214)]:[],_0x412678=[];let _0x350402=null;_0x41cbb4[_0x33217b(0x1ac8)]&&(_0x350402=_0x39641b()[_0x33217b(0x13b4)](_0x41cbb4['intervals'],{'name':_0x41cbb4[_0x33217b(0x1ac8)][_0x33217b(0x1a60)]})),_0x350402&&!_0x39641b()[_0x33217b(0x727)](_0x2eb536,['resourceId',_0x350402['id']])&&_0x41cbb4['intervals'][_0x33217b(0xf90)](function(_0x26c96c){const _0x1903c5=_0x33217b;_0x26c96c['id']===_0x350402['id']&&(_0x26c96c[_0x1903c5(0x15da)]=![],_0x412678[_0x1903c5(0x2785)](_0x26c96c));}),_0x41cbb4[_0x33217b(0xb4a)]=_0x412678;});}})[_0x2c5143(0x1c4)](function(_0x4a64dc){const _0x474452=_0x2c5143;_0x2ee0b8[_0x474452(0x218e)]({'title':_0x4a64dc[_0x474452(0x291)]?_0x474452(0xeb9)+_0x4a64dc[_0x474452(0x291)]+'\x20-\x20'+_0x4a64dc['statusText']:_0x474452(0xdac),'msg':_0x4a64dc['data']?JSON[_0x474452(0x2701)](_0x4a64dc[_0x474452(0x25c)]):_0x4a64dc[_0x474452(0x147f)]()});}));function _0x5eb085(){const _0x447f25=_0x2c5143;switch(_0x41cbb4[_0x447f25(0x66a)]){case'always':case _0x447f25(0x240):return _0x447f25(0x965);case _0x447f25(0x197c):{const _0x1721e0=[];if(_0x41cbb4['timeRangeFrom']!=='*'&&_0x41cbb4['timeRangeFrom']&&_0x41cbb4['timeRangeTo']){const _0x21c3c8=(_0x41cbb4[_0x447f25(0x718)][_0x447f25(0x1169)]()<0xa?'0':'')+_0x41cbb4[_0x447f25(0x718)][_0x447f25(0x1169)]()+':'+((_0x41cbb4[_0x447f25(0x718)][_0x447f25(0x851)]()<0xa?'0':'')+_0x41cbb4['timeRangeFrom'][_0x447f25(0x851)]()),_0x358e97=(_0x41cbb4[_0x447f25(0x64a)]['getHours']()<0xa?'0':'')+_0x41cbb4[_0x447f25(0x64a)]['getHours']()+':'+((_0x41cbb4['timeRangeTo'][_0x447f25(0x851)]()<0xa?'0':'')+_0x41cbb4[_0x447f25(0x64a)]['getMinutes']());_0x1721e0['push'](_0x21c3c8+'-'+_0x358e97);}else _0x1721e0[_0x447f25(0x2785)]('*');return _0x41cbb4['dayOfWeekFrom']?_0x41cbb4[_0x447f25(0x28db)]?_0x1721e0['push'](_0x41cbb4[_0x447f25(0x28a6)]+'-'+_0x41cbb4[_0x447f25(0x28db)]):_0x1721e0[_0x447f25(0x2785)](_0x41cbb4[_0x447f25(0x28a6)]):_0x1721e0[_0x447f25(0x2785)]('*'),_0x41cbb4['monthDayFrom']?_0x41cbb4[_0x447f25(0x194d)]?_0x1721e0[_0x447f25(0x2785)](_0x41cbb4[_0x447f25(0xd6f)]+'-'+_0x41cbb4[_0x447f25(0x194d)]):_0x1721e0[_0x447f25(0x2785)](_0x41cbb4[_0x447f25(0xd6f)]):_0x1721e0[_0x447f25(0x2785)]('*'),_0x41cbb4['monthFrom']?_0x41cbb4[_0x447f25(0xa68)]?_0x1721e0[_0x447f25(0x2785)](_0x41cbb4[_0x447f25(0x1756)]+'-'+_0x41cbb4[_0x447f25(0xa68)]):_0x1721e0[_0x447f25(0x2785)](_0x41cbb4[_0x447f25(0x1756)]):_0x1721e0['push']('*'),_0x1721e0[_0x447f25(0x1f66)]();}}}function _0xf7c67f(){const _0x222134=_0x2c5143;_0x41cbb4[_0x222134(0x1a7c)]=[],_0x41cbb4[_0x222134(0x1ac8)][_0x222134(0x1ac8)]=_0x5eb085(),_0x571b74[_0x222134(0x1ac8)][_0x222134(0x1c3f)](_0x41cbb4['interval'])[_0x222134(0x1d77)][_0x222134(0x1cb0)](function(_0xd974c4){const _0x422b8f=_0x222134;_0x41cbb4['intervals'][_0x422b8f(0x2785)](_0xd974c4),_0x2ee0b8[_0x422b8f(0x829)]({'title':'Interval\x20properly\x20created','msg':_0x41cbb4[_0x422b8f(0x1ac8)]['name']?_0x41cbb4[_0x422b8f(0x1ac8)][_0x422b8f(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x1ba55f();})[_0x222134(0x1c4)](function(_0x5ee86c){const _0x283d8a=_0x222134;console[_0x283d8a(0x218e)](_0x5ee86c),_0x41cbb4[_0x283d8a(0x1a7c)]=_0x5ee86c[_0x283d8a(0x25c)][_0x283d8a(0x1a7c)]||[{'message':_0x5ee86c[_0x283d8a(0x147f)](),'type':'api.interval.save'}];});}function _0x338eeb(){const _0xc6f512=_0x2c5143;_0x41cbb4[_0xc6f512(0x1a7c)]=[],_0x41cbb4[_0xc6f512(0x1ac8)][_0xc6f512(0x1ac8)]=_0x5eb085(),_0x41cbb4['interval'][_0xc6f512(0x171b)]?(_0x41cbb4['type']!==_0xc6f512(0x240)&&(_0x41cbb4['interval']['IntervalId']=null),_0x1ba55f(_0x41cbb4['interval'])):_0x571b74[_0xc6f512(0x1ac8)]['update']({'id':_0x41cbb4['interval']['id']},_0x41cbb4[_0xc6f512(0x1ac8)])['$promise'][_0xc6f512(0x1cb0)](function(_0x4fe9c4){const _0x3bdb93=_0xc6f512,_0x4f6827=_0x39641b()[_0x3bdb93(0x13b4)](_0x41cbb4[_0x3bdb93(0xb4a)],{'id':_0x4fe9c4['id']});_0x4f6827&&_0x39641b()[_0x3bdb93(0x9c1)](_0x4f6827,_0x4fe9c4),_0x2ee0b8['success']({'title':'Interval\x20properly\x20saved!','msg':_0x3bdb93(0x2994)}),_0x1ba55f();})['catch'](function(_0xc80169){const _0x2a310d=_0xc6f512;console['error'](_0xc80169),_0x41cbb4[_0x2a310d(0x1a7c)]=_0xc80169['data'][_0x2a310d(0x1a7c)]||[{'message':_0xc80169['toString'](),'type':_0x2a310d(0x2505)}];});}function _0x1ba55f(_0x8e7ed2){_0x41513d['hide'](_0x8e7ed2);}}const _0x114ce9=_0x33dc04;;_0x510214[_0x5537c6(0x15b6)]=['$mdDialog','$q','toasty','smsAccountApp',_0x5537c6(0x658),_0x5537c6(0x142b),'Auth',_0x5537c6(0x1b1a)];function _0x510214(_0x81d945,_0xf2ef0d,_0x2cf088,_0x4e15f1,_0xec4bd1,_0x45ed40,_0x2c78b4,_0x336e9c){const _0x305cef=_0x5537c6,_0x43743c=this;_0x43743c[_0x305cef(0xe76)]=_0x2c78b4[_0x305cef(0x21e8)](),_0x43743c['errors']=[],_0x43743c[_0x305cef(0x1386)]=_0x305cef(0x1149)+(_0x4e15f1[_0x305cef(0x299b)]||_0x4e15f1['app'])[_0x305cef(0x2335)](),_0x43743c[_0x305cef(0x1234)]=angular[_0x305cef(0x17fe)](_0x4e15f1),_0x43743c[_0x305cef(0x1b1a)]=_0x336e9c,_0x43743c[_0x305cef(0xf4c)]={};if(_0x43743c[_0x305cef(0x1234)][_0x305cef(0x28df)])switch(_0x43743c[_0x305cef(0x1234)]['appType']?_0x43743c['noop']['appType'][_0x305cef(0x1680)]():_0x43743c[_0x305cef(0x1234)]['app']['toLowerCase']()){case _0x305cef(0x197c):break;case _0x305cef(0x711):{const _0x228080=_0x43743c['noop'][_0x305cef(0x28df)]['split'](',');_0x43743c['noop']['key']=_0x228080[0x0],_0x43743c['noop']['language']=_0x228080[0x1],_0x43743c[_0x305cef(0x1234)]['welcomemessage']=_0x228080['slice'](0x2,_0x228080['length'])['join'](',');}break;case _0x305cef(0xece):{const _0xee6cb3=_0x43743c[_0x305cef(0x1234)][_0x305cef(0x28df)][_0x305cef(0xbe1)](',');_0x43743c['noop']['projectId']=_0xee6cb3[0x0],_0x43743c[_0x305cef(0x1234)][_0x305cef(0x12bf)]=_0xee6cb3[0x1],_0x43743c[_0x305cef(0x1234)]['privateKey']=_0xee6cb3[0x2],_0x43743c[_0x305cef(0x1234)]['language']=_0xee6cb3[0x3],_0x43743c[_0x305cef(0x1234)][_0x305cef(0x173a)]=_0xee6cb3[_0x305cef(0x14cb)](0x4,_0xee6cb3[_0x305cef(0xfd0)])['join'](',');}break;case _0x305cef(0x123a):{const _0x404124=_0x43743c[_0x305cef(0x1234)]['appdata']['split'](',');_0x43743c[_0x305cef(0x1234)][_0x305cef(0x413)]=_0x404124[0x0],_0x43743c[_0x305cef(0x1234)][_0x305cef(0x21d9)]=_0x404124[0x1],_0x43743c[_0x305cef(0x1234)][_0x305cef(0xd50)]=_0x404124[0x2],_0x43743c['noop'][_0x305cef(0x1c7f)]=_0x404124[0x3],_0x43743c[_0x305cef(0x1234)][_0x305cef(0x173a)]=_0x404124[_0x305cef(0x14cb)](0x4,_0x404124['length'])[_0x305cef(0x1f66)](',');}break;case _0x305cef(0x1f71):{const _0x21c86b=_0x43743c['noop'][_0x305cef(0x28df)][_0x305cef(0xbe1)](',');_0x43743c[_0x305cef(0x1234)][_0x305cef(0x18a5)]=isNaN(_0x21c86b[0x0])?_0x21c86b[0x0]:parseInt(_0x21c86b[0x0],0xa),_0x43743c[_0x305cef(0x1234)][_0x305cef(0x19d3)]=_0x21c86b[_0x305cef(0x14cb)](0x1,_0x21c86b[_0x305cef(0xfd0)])[_0x305cef(0x1f66)](',');}break;case _0x305cef(0x155e):_0x43743c['noop'][_0x305cef(0x19d3)]=_0x43743c['noop'][_0x305cef(0x28df)];break;case'set':_0x43743c['noop']['name']=_0x43743c[_0x305cef(0x1234)]['appdata']['split']('=')[0x0],_0x43743c[_0x305cef(0x1234)][_0x305cef(0x327)]=_0x43743c[_0x305cef(0x1234)][_0x305cef(0x28df)][_0x305cef(0xbe1)]('=')[0x1];break;case _0x305cef(0x4b4):_0x43743c[_0x305cef(0x1234)][_0x305cef(0x12a7)]=_0x43743c[_0x305cef(0x1234)][_0x305cef(0x28df)];break;default:{const _0x4f65d1=_0x43743c[_0x305cef(0x1234)]['appdata'][_0x305cef(0xbe1)](',');_0x43743c[_0x305cef(0x1234)]['value']=_0x39641b()[_0x305cef(0xce9)](_0x4f65d1[0x0])?_0x4f65d1[0x0]:isNaN(_0x4f65d1[0x0])?_0x4f65d1[0x0]:parseInt(_0x4f65d1[0x0],0xa);}break;}else{}_0x43743c[_0x305cef(0x1234)]['type']&&_0x43743c[_0x305cef(0x1234)][_0x305cef(0x66a)][_0x305cef(0x1680)]()==='outbound'&&_0x43743c['noop'][_0x305cef(0x299b)][_0x305cef(0x1680)]()==='outbounddial'&&(_0x43743c[_0x305cef(0x1234)][_0x305cef(0x586)]=_0x43743c['noop'][_0x305cef(0x1340)]?_0x43743c[_0x305cef(0x1234)][_0x305cef(0x1340)]['split']('$')[0x0]:undefined,_0x43743c['noop']['callerId']=_0x43743c['noop']['callerID']?_0x305cef(0x25f9)+_0x43743c['noop']['callerID']:undefined);_0x43743c[_0x305cef(0xc3f)]=_0x3aee08,_0x43743c['closeDialog']=_0x27a353;function _0x3aee08(){const _0x53d9b5=_0x305cef;_0x43743c['errors']=[];const _0x79fb09=[];_0x43743c[_0x53d9b5(0x1234)][_0x53d9b5(0x66a)]&&_0x43743c[_0x53d9b5(0x1234)][_0x53d9b5(0x66a)]['toLowerCase']()===_0x53d9b5(0x895)&&_0x43743c[_0x53d9b5(0x1234)][_0x53d9b5(0x299b)]==='outboundDial'&&(_0x43743c['noop']['phone']=_0xec4bd1[_0x53d9b5(0x325)]?(_0x43743c[_0x53d9b5(0x1234)]['prefix']||'')+_0x53d9b5(0x19e4)+_0xec4bd1[_0x53d9b5(0x325)]+'}':(_0x43743c[_0x53d9b5(0x1234)][_0x53d9b5(0x586)]||'')+_0x53d9b5(0xcdd),_0xec4bd1[_0x53d9b5(0xf8d)]!=='none'?_0x43743c[_0x53d9b5(0x1234)]['options'][_0x53d9b5(0xd8a)](_0x53d9b5(0x106a))<0x0&&(_0x43743c['noop'][_0x53d9b5(0x2224)]+='U(xcally-mixmonitor-context)'):_0x43743c[_0x53d9b5(0x1234)][_0x53d9b5(0x2224)]=_0x43743c[_0x53d9b5(0x1234)]['options'][_0x53d9b5(0x288f)](_0x53d9b5(0x106a),''));if(_0x43743c['noop']['appType']&&_0x43743c[_0x53d9b5(0x1234)]['appType']===_0x53d9b5(0x197c)){}else switch((_0x43743c[_0x53d9b5(0x1234)][_0x53d9b5(0x22e1)]||_0x43743c[_0x53d9b5(0x1234)][_0x53d9b5(0x299b)])[_0x53d9b5(0x1680)]()){case'set':_0x43743c['noop'][_0x53d9b5(0x28df)]=_0x43743c[_0x53d9b5(0x1234)][_0x53d9b5(0x16b6)]+'='+_0x43743c[_0x53d9b5(0x1234)][_0x53d9b5(0x327)];break;case'custom':break;default:_0x79fb09[0x0]=_0x43743c[_0x53d9b5(0x1234)][_0x53d9b5(0x327)],_0x43743c['noop'][_0x53d9b5(0x28df)]=_0x79fb09['join'](',');}_0x27a353(_0x43743c[_0x53d9b5(0x1234)]);}function _0x27a353(_0x3665d3){_0x81d945['hide'](_0x3665d3);}}const _0x13c46c=_0x510214;;_0x137f39[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty',_0x5537c6(0x795),_0x5537c6(0x658),'api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x137f39(_0x3a0450,_0x445ecc,_0x4c561b,_0xaf153a,_0x5d63a7,_0x42e84b,_0x40c341,_0x10d8e0){const _0x4460ae=_0x5537c6,_0x32089a=this;_0x32089a[_0x4460ae(0xe76)]=_0x40c341[_0x4460ae(0x21e8)](),_0x32089a['errors']=[],_0x32089a['title']=_0x4460ae(0x1149)+(_0xaf153a[_0x4460ae(0x299b)]||_0xaf153a[_0x4460ae(0x22e1)])[_0x4460ae(0x2335)](),_0x32089a[_0x4460ae(0x11cf)]=angular[_0x4460ae(0x17fe)](_0xaf153a),_0x32089a[_0x4460ae(0x1b1a)]=_0x10d8e0,_0x32089a['hasModulePermissions']={};if(_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x28df)])switch(_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x299b)]?_0x32089a['queue'][_0x4460ae(0x299b)]['toLowerCase']():_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x22e1)][_0x4460ae(0x1680)]()){case'custom':break;case _0x4460ae(0x711):{const _0x37512e=_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x28df)][_0x4460ae(0xbe1)](',');_0x32089a['queue'][_0x4460ae(0xee8)]=_0x37512e[0x0],_0x32089a['queue']['language']=_0x37512e[0x1],_0x32089a['queue'][_0x4460ae(0x173a)]=_0x37512e[_0x4460ae(0x14cb)](0x2,_0x37512e['length'])[_0x4460ae(0x1f66)](',');}break;case _0x4460ae(0xece):{const _0x5bcf4f=_0x32089a['queue']['appdata'][_0x4460ae(0xbe1)](',');_0x32089a['queue'][_0x4460ae(0x2854)]=_0x5bcf4f[0x0],_0x32089a['queue'][_0x4460ae(0x12bf)]=_0x5bcf4f[0x1],_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x29d6)]=_0x5bcf4f[0x2],_0x32089a['queue'][_0x4460ae(0x12b4)]=_0x5bcf4f[0x3],_0x32089a['queue']['welcomemessage']=_0x5bcf4f[_0x4460ae(0x14cb)](0x4,_0x5bcf4f['length'])[_0x4460ae(0x1f66)](',');}break;case _0x4460ae(0x123a):{const _0x1a0a6e=_0x32089a['queue'][_0x4460ae(0x28df)][_0x4460ae(0xbe1)](',');_0x32089a['queue'][_0x4460ae(0x413)]=_0x1a0a6e[0x0],_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x21d9)]=_0x1a0a6e[0x1],_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0xd50)]=_0x1a0a6e[0x2],_0x32089a['queue'][_0x4460ae(0x1c7f)]=_0x1a0a6e[0x3],_0x32089a[_0x4460ae(0x11cf)]['welcomemessage']=_0x1a0a6e['slice'](0x4,_0x1a0a6e[_0x4460ae(0xfd0)])[_0x4460ae(0x1f66)](',');}break;case _0x4460ae(0x1f71):{const _0x771de3=_0x32089a[_0x4460ae(0x11cf)]['appdata'][_0x4460ae(0xbe1)](',');_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x18a5)]=isNaN(_0x771de3[0x0])?_0x771de3[0x0]:parseInt(_0x771de3[0x0],0xa),_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x19d3)]=_0x771de3[_0x4460ae(0x14cb)](0x1,_0x771de3[_0x4460ae(0xfd0)])[_0x4460ae(0x1f66)](',');}break;case _0x4460ae(0x155e):_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x19d3)]=_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x28df)];break;case'set':_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x16b6)]=_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x28df)][_0x4460ae(0xbe1)]('=')[0x0],_0x32089a['queue'][_0x4460ae(0x327)]=_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x28df)][_0x4460ae(0xbe1)]('=')[0x1];break;case _0x4460ae(0x4b4):_0x32089a['queue'][_0x4460ae(0x12a7)]=_0x32089a['queue'][_0x4460ae(0x28df)];break;default:{const _0x3f65a6=_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x28df)][_0x4460ae(0xbe1)](',');_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x11cf)]=_0x39641b()[_0x4460ae(0xce9)](_0x3f65a6[0x0])?_0x3f65a6[0x0]:isNaN(_0x3f65a6[0x0])?_0x3f65a6[0x0]:parseInt(_0x3f65a6[0x0],0xa),_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x1719)]=_0x39641b()[_0x4460ae(0xce9)](_0x3f65a6[0x1])?_0x3f65a6[0x1]:isNaN(_0x3f65a6[0x1])?_0x3f65a6[0x1]:parseInt(_0x3f65a6[0x1],0xa);}break;}else _0x32089a['queue'][_0x4460ae(0x11cf)]=0x12c,_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x1719)]=0x12c;_0x32089a['queue'][_0x4460ae(0x66a)]&&_0x32089a[_0x4460ae(0x11cf)]['type'][_0x4460ae(0x1680)]()===_0x4460ae(0x895)&&_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x299b)][_0x4460ae(0x1680)]()===_0x4460ae(0x20ff)&&(_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x586)]=_0x32089a['queue'][_0x4460ae(0x1340)]?_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x1340)][_0x4460ae(0xbe1)]('$')[0x0]:undefined,_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x1e7c)]=_0x32089a[_0x4460ae(0x11cf)]['callerID']?'CALLERID(all)='+_0x32089a[_0x4460ae(0x11cf)][_0x4460ae(0x2816)]:undefined);_0x32089a[_0x4460ae(0xc3f)]=_0x31ddac,_0x32089a[_0x4460ae(0xda0)]=_0x42cf75,_0x40c341['hasRole']('admin')?_0x42e84b['smsQueue'][_0x4460ae(0xbf7)]({'fields':_0x4460ae(0x1896),'sort':_0x4460ae(0x16b6),'nolimit':_0x4460ae(0x44d)})[_0x4460ae(0x1d77)]['then'](function(_0x5d4ada){const _0x2b3a85=_0x4460ae;_0x32089a[_0x2b3a85(0x971)]=_0x5d4ada[_0x2b3a85(0x2214)]||[];})[_0x4460ae(0x1c4)](function(_0x3e1cb3){const _0xf1c944=_0x4460ae;_0x4c561b[_0xf1c944(0x218e)]({'title':_0x3e1cb3[_0xf1c944(0x291)]?_0xf1c944(0xeb9)+_0x3e1cb3[_0xf1c944(0x291)]+'\x20-\x20'+_0x3e1cb3[_0xf1c944(0xc22)]:'SYSTEM:GET_QUEUES','msg':_0x3e1cb3[_0xf1c944(0x25c)]?JSON[_0xf1c944(0x2701)](_0x3e1cb3['data']):_0x3e1cb3[_0xf1c944(0x147f)]()});}):_0x42e84b[_0x4460ae(0x62e)]['get']({'fields':_0x4460ae(0x1896),'sort':_0x4460ae(0x16b6),'nolimit':_0x4460ae(0x44d)})['$promise'][_0x4460ae(0x1cb0)](function(_0xc681eb){const _0x29464b=_0x4460ae;_0x32089a[_0x29464b(0x971)]=_0xc681eb[_0x29464b(0x2214)]||[];})[_0x4460ae(0x1cb0)](function(){const _0x15c415=_0x4460ae;return _0x42e84b['userProfileSection'][_0x15c415(0xbf7)]({'userProfileId':_0x32089a[_0x15c415(0xe76)][_0x15c415(0x13c1)],'sectionId':0x2bd})[_0x15c415(0x1d77)];})[_0x4460ae(0x1cb0)](function(_0x34dfd6){const _0x536b37=_0x4460ae,_0x125d06=_0x34dfd6&&_0x34dfd6['rows']?_0x34dfd6[_0x536b37(0x2214)][0x0]:null;if(!_0x125d06){const _0x27ec95=[];let _0x10ba5d=null;_0x32089a[_0x536b37(0x11cf)]&&(_0x10ba5d=_0x39641b()['find'](_0x32089a[_0x536b37(0x971)],{'name':_0x32089a[_0x536b37(0x11cf)][_0x536b37(0x11cf)]}));for(let _0x2f5549=0x0;_0x2f5549<_0x32089a[_0x536b37(0x971)]['length'];_0x2f5549++){_0x10ba5d&&_0x32089a['queues'][_0x2f5549]['id']===_0x10ba5d['id']&&(_0x32089a[_0x536b37(0x971)][_0x2f5549][_0x536b37(0x15da)]=![],_0x27ec95[_0x536b37(0x2785)](_0x32089a['queues'][_0x2f5549]));}_0x32089a[_0x536b37(0x971)]=_0x27ec95;}else{if(!_0x125d06[_0x536b37(0x12f4)])return _0x42e84b['userProfileResource'][_0x536b37(0xbf7)]({'sectionId':_0x125d06['id']})['$promise'][_0x536b37(0x1cb0)](function(_0x396787){const _0x4f5a43=_0x536b37,_0x30bca1=_0x39641b()[_0x4f5a43(0x1de2)](_0x396787['rows'],function(_0x32cd03){const _0x400d8c=_0x4f5a43;return _0x39641b()['find'](_0x32089a[_0x400d8c(0x971)],{'id':_0x32cd03[_0x400d8c(0x2982)]});});let _0x3d204b=null;_0x32089a['queue']&&(_0x3d204b=_0x39641b()[_0x4f5a43(0x13b4)](_0x32089a['queues'],{'name':_0x32089a[_0x4f5a43(0x11cf)][_0x4f5a43(0x11cf)]}));if(_0x3d204b&&!_0x39641b()['some'](_0x30bca1,['id',_0x3d204b['id']])){const _0x4d7dea=_0x39641b()[_0x4f5a43(0x13b4)](_0x32089a[_0x4f5a43(0x971)],{'id':_0x3d204b['id']});_0x4d7dea[_0x4f5a43(0x15da)]=![],_0x30bca1[_0x4f5a43(0x2785)](_0x4d7dea);}_0x32089a[_0x4f5a43(0x971)]=_0x30bca1;});}})['catch'](function(_0x1efcde){const _0x1731a8=_0x4460ae;_0x4c561b[_0x1731a8(0x218e)]({'title':_0x1efcde[_0x1731a8(0x291)]?_0x1731a8(0xeb9)+_0x1efcde[_0x1731a8(0x291)]+'\x20-\x20'+_0x1efcde['statusText']:'SYSTEM:GETqueues','msg':_0x1efcde['data']?JSON[_0x1731a8(0x2701)](_0x1efcde['data']):_0x1efcde['toString']()});});function _0x31ddac(){const _0x7d15ab=_0x4460ae;_0x32089a[_0x7d15ab(0x1a7c)]=[];const _0x45c7eb=[];_0x32089a[_0x7d15ab(0x11cf)]['type']&&_0x32089a[_0x7d15ab(0x11cf)]['type'][_0x7d15ab(0x1680)]()===_0x7d15ab(0x895)&&_0x32089a[_0x7d15ab(0x11cf)][_0x7d15ab(0x299b)]===_0x7d15ab(0x25f4)&&(_0x32089a['queue'][_0x7d15ab(0x1340)]=_0x5d63a7[_0x7d15ab(0x325)]?(_0x32089a['queue'][_0x7d15ab(0x586)]||'')+'${EXTEN:'+_0x5d63a7[_0x7d15ab(0x325)]+'}':(_0x32089a[_0x7d15ab(0x11cf)][_0x7d15ab(0x586)]||'')+_0x7d15ab(0xcdd),_0x5d63a7[_0x7d15ab(0xf8d)]!==_0x7d15ab(0x13b1)?_0x32089a[_0x7d15ab(0x11cf)]['options']['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x32089a[_0x7d15ab(0x11cf)][_0x7d15ab(0x2224)]+=_0x7d15ab(0x106a)):_0x32089a[_0x7d15ab(0x11cf)][_0x7d15ab(0x2224)]=_0x32089a[_0x7d15ab(0x11cf)][_0x7d15ab(0x2224)][_0x7d15ab(0x288f)](_0x7d15ab(0x106a),''));const _0xf857ed=_0x39641b()['find'](_0x32089a[_0x7d15ab(0x971)],{'name':_0x32089a[_0x7d15ab(0x11cf)]['queue']});_0xf857ed&&(_0x32089a[_0x7d15ab(0x11cf)][_0x39641b()[_0x7d15ab(0x432)](_0x7d15ab(0x689))+_0x7d15ab(0x14d1)]=_0xf857ed['id']);if(_0x32089a['queue'][_0x7d15ab(0x299b)]&&_0x32089a[_0x7d15ab(0x11cf)][_0x7d15ab(0x299b)]===_0x7d15ab(0x197c)){}else switch((_0x32089a[_0x7d15ab(0x11cf)][_0x7d15ab(0x22e1)]||_0x32089a['queue']['appType'])[_0x7d15ab(0x1680)]()){case _0x7d15ab(0x19d1):_0x32089a[_0x7d15ab(0x11cf)][_0x7d15ab(0x28df)]=_0x32089a[_0x7d15ab(0x11cf)]['name']+'='+_0x32089a[_0x7d15ab(0x11cf)]['value'];break;case _0x7d15ab(0x197c):break;default:_0x45c7eb[0x0]=_0x32089a[_0x7d15ab(0x11cf)][_0x7d15ab(0x11cf)],_0x45c7eb[0x1]=_0x32089a[_0x7d15ab(0x11cf)][_0x7d15ab(0x1719)],_0x32089a[_0x7d15ab(0x11cf)]['appdata']=_0x45c7eb['join'](',');}_0x42cf75(_0x32089a[_0x7d15ab(0x11cf)]);}function _0x42cf75(_0xe93488){const _0x3d511e=_0x4460ae;_0x3a0450[_0x3d511e(0x1426)](_0xe93488);}}const _0x2a1d9e=_0x137f39;;_0x3d2483['$inject']=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x795),_0x5537c6(0x658),_0x5537c6(0x142b),'Auth',_0x5537c6(0x1b1a)];function _0x3d2483(_0x371823,_0x3d8618,_0x11dd66,_0x1df2d5,_0x3233ee,_0x20ebf1,_0x472da1,_0x131093){const _0x4d4258=_0x5537c6,_0x9f61d4=this;_0x9f61d4[_0x4d4258(0xe76)]=_0x472da1['getCurrentUser'](),_0x9f61d4[_0x4d4258(0x1a7c)]=[],_0x9f61d4['title']=_0x4d4258(0x1149)+(_0x1df2d5[_0x4d4258(0x299b)]||_0x1df2d5['app'])[_0x4d4258(0x2335)](),_0x9f61d4[_0x4d4258(0x7be)]=angular[_0x4d4258(0x17fe)](_0x1df2d5),_0x9f61d4[_0x4d4258(0x1b1a)]=_0x131093,_0x9f61d4[_0x4d4258(0xf4c)]={};if(_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x28df)])switch(_0x9f61d4['system']['appType']?_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x299b)]['toLowerCase']():_0x9f61d4['system'][_0x4d4258(0x22e1)][_0x4d4258(0x1680)]()){case _0x4d4258(0x197c):break;case _0x4d4258(0x711):{const _0x3c4854=_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x28df)]['split'](',');_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0xee8)]=_0x3c4854[0x0],_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x12b4)]=_0x3c4854[0x1],_0x9f61d4['system'][_0x4d4258(0x173a)]=_0x3c4854[_0x4d4258(0x14cb)](0x2,_0x3c4854['length'])['join'](',');}break;case _0x4d4258(0xece):{const _0x32cd7d=_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x28df)][_0x4d4258(0xbe1)](',');_0x9f61d4['system'][_0x4d4258(0x2854)]=_0x32cd7d[0x0],_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x12bf)]=_0x32cd7d[0x1],_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x29d6)]=_0x32cd7d[0x2],_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x12b4)]=_0x32cd7d[0x3],_0x9f61d4['system'][_0x4d4258(0x173a)]=_0x32cd7d['slice'](0x4,_0x32cd7d[_0x4d4258(0xfd0)])[_0x4d4258(0x1f66)](',');}break;case _0x4d4258(0x123a):{const _0x2810b6=_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x28df)][_0x4d4258(0xbe1)](',');_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x413)]=_0x2810b6[0x0],_0x9f61d4['system'][_0x4d4258(0x21d9)]=_0x2810b6[0x1],_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0xd50)]=_0x2810b6[0x2],_0x9f61d4['system'][_0x4d4258(0x1c7f)]=_0x2810b6[0x3],_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x173a)]=_0x2810b6[_0x4d4258(0x14cb)](0x4,_0x2810b6[_0x4d4258(0xfd0)])[_0x4d4258(0x1f66)](',');}break;case _0x4d4258(0x1f71):{const _0xffed7b=_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x28df)][_0x4d4258(0xbe1)](',');_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x18a5)]=isNaN(_0xffed7b[0x0])?_0xffed7b[0x0]:parseInt(_0xffed7b[0x0],0xa),_0x9f61d4[_0x4d4258(0x7be)]['text']=_0xffed7b[_0x4d4258(0x14cb)](0x1,_0xffed7b[_0x4d4258(0xfd0)])['join'](',');}break;case'message':_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x19d3)]=_0x9f61d4[_0x4d4258(0x7be)]['appdata'];break;case _0x4d4258(0x19d1):_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x16b6)]=_0x9f61d4['system']['appdata'][_0x4d4258(0xbe1)]('=')[0x0],_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x327)]=_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x28df)][_0x4d4258(0xbe1)]('=')[0x1];break;case'agi':_0x9f61d4['system'][_0x4d4258(0x12a7)]=_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x28df)];break;default:{const _0x1d3320=_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x28df)][_0x4d4258(0xbe1)](',');_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0xd0d)]=_0x39641b()[_0x4d4258(0xce9)](_0x1d3320[0x0])?_0x1d3320[0x0]:isNaN(_0x1d3320[0x0])?_0x1d3320[0x0]:parseInt(_0x1d3320[0x0],0xa),_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x1822)]=_0x39641b()['isEmpty'](_0x1d3320[0x1])?_0x1d3320[0x1]:isNaN(_0x1d3320[0x1])?_0x1d3320[0x1]:parseInt(_0x1d3320[0x1],0xa);}break;}else _0x9f61d4['system']['variable']='';_0x9f61d4['system']['type']&&_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x66a)]['toLowerCase']()===_0x4d4258(0x895)&&_0x9f61d4['system'][_0x4d4258(0x299b)][_0x4d4258(0x1680)]()===_0x4d4258(0x20ff)&&(_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x586)]=_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x1340)]?_0x9f61d4['system'][_0x4d4258(0x1340)][_0x4d4258(0xbe1)]('$')[0x0]:undefined,_0x9f61d4[_0x4d4258(0x7be)][_0x4d4258(0x1e7c)]=_0x9f61d4[_0x4d4258(0x7be)]['callerID']?'CALLERID(all)='+_0x9f61d4['system'][_0x4d4258(0x2816)]:undefined);_0x9f61d4['saveSmsAccountApp']=_0x26102e,_0x9f61d4[_0x4d4258(0xda0)]=_0x2580b7,_0x472da1[_0x4d4258(0x22b6)](_0x4d4258(0x1c60))?_0x20ebf1[_0x4d4258(0x1822)][_0x4d4258(0xbf7)]({'fields':_0x4d4258(0x43c),'sort':_0x4d4258(0x16b6),'nolimit':_0x4d4258(0x44d)})[_0x4d4258(0x1d77)][_0x4d4258(0x1cb0)](function(_0x472f3e){const _0x264aae=_0x4d4258;_0x9f61d4[_0x264aae(0x9a9)]=_0x472f3e['rows']||[];})[_0x4d4258(0x1c4)](function(_0xa1e32f){const _0x8adb06=_0x4d4258;_0x11dd66[_0x8adb06(0x218e)]({'title':_0xa1e32f[_0x8adb06(0x291)]?_0x8adb06(0xeb9)+_0xa1e32f[_0x8adb06(0x291)]+_0x8adb06(0x1657)+_0xa1e32f[_0x8adb06(0xc22)]:'SYSTEM:GET_VARIABLES','msg':_0xa1e32f[_0x8adb06(0x25c)]?JSON[_0x8adb06(0x2701)](_0xa1e32f['data']):_0xa1e32f[_0x8adb06(0x147f)]()});}):_0x20ebf1['variable'][_0x4d4258(0xbf7)]({'fields':_0x4d4258(0x43c),'sort':_0x4d4258(0x16b6),'nolimit':_0x4d4258(0x44d)})[_0x4d4258(0x1d77)][_0x4d4258(0x1cb0)](function(_0x224493){const _0x36a6cd=_0x4d4258;_0x9f61d4[_0x36a6cd(0x9a9)]=_0x224493[_0x36a6cd(0x2214)]||[];})['then'](function(){const _0x4ad426=_0x4d4258;return _0x20ebf1['userProfileSection'][_0x4ad426(0xbf7)]({'userProfileId':_0x9f61d4[_0x4ad426(0xe76)][_0x4ad426(0x13c1)],'sectionId':0x3f4})['$promise'];})['then'](function(_0x14304a){const _0x8d437f=_0x4d4258,_0x207fdf=_0x14304a&&_0x14304a[_0x8d437f(0x2214)]?_0x14304a[_0x8d437f(0x2214)][0x0]:null;if(!_0x207fdf){const _0x34682b=[];let _0x4191ff=null;_0x9f61d4[_0x8d437f(0x7be)]&&(_0x4191ff=_0x39641b()[_0x8d437f(0x13b4)](_0x9f61d4['variables'],{'name':_0x9f61d4[_0x8d437f(0x7be)][_0x8d437f(0x1822)]}));for(let _0x18a7fb=0x0;_0x18a7fb<_0x9f61d4[_0x8d437f(0x9a9)][_0x8d437f(0xfd0)];_0x18a7fb++){_0x4191ff&&_0x9f61d4[_0x8d437f(0x9a9)][_0x18a7fb]['id']===_0x4191ff['id']&&(_0x9f61d4[_0x8d437f(0x9a9)][_0x18a7fb][_0x8d437f(0x15da)]=![],_0x34682b[_0x8d437f(0x2785)](_0x9f61d4[_0x8d437f(0x9a9)][_0x18a7fb]));}_0x9f61d4['variables']=_0x34682b;}else{if(!_0x207fdf[_0x8d437f(0x12f4)])return _0x20ebf1[_0x8d437f(0x1198)][_0x8d437f(0xbf7)]({'sectionId':_0x207fdf['id']})['$promise']['then'](function(_0x482b9c){const _0x5e9d42=_0x8d437f,_0x13a198=_0x39641b()[_0x5e9d42(0x1de2)](_0x482b9c[_0x5e9d42(0x2214)],function(_0x13574d){const _0x4e7ce7=_0x5e9d42;return _0x39641b()['find'](_0x9f61d4[_0x4e7ce7(0x9a9)],{'id':_0x13574d[_0x4e7ce7(0x2982)]});});let _0x4b958c=null;_0x9f61d4[_0x5e9d42(0x7be)]&&(_0x4b958c=_0x39641b()[_0x5e9d42(0x13b4)](_0x9f61d4['variables'],{'name':_0x9f61d4['system'][_0x5e9d42(0x1822)]}));if(_0x4b958c&&!_0x39641b()[_0x5e9d42(0x727)](_0x13a198,['id',_0x4b958c['id']])){const _0x4bbee6=_0x39641b()[_0x5e9d42(0x13b4)](_0x9f61d4[_0x5e9d42(0x9a9)],{'id':_0x4b958c['id']});_0x4bbee6[_0x5e9d42(0x15da)]=![],_0x13a198[_0x5e9d42(0x2785)](_0x4bbee6);}_0x9f61d4[_0x5e9d42(0x9a9)]=_0x13a198;});}})[_0x4d4258(0x1c4)](function(_0x2abf6a){const _0xbb4d38=_0x4d4258;_0x11dd66[_0xbb4d38(0x218e)]({'title':_0x2abf6a[_0xbb4d38(0x291)]?_0xbb4d38(0xeb9)+_0x2abf6a[_0xbb4d38(0x291)]+_0xbb4d38(0x1657)+_0x2abf6a[_0xbb4d38(0xc22)]:'SYSTEM:GETvariables','msg':_0x2abf6a['data']?JSON['stringify'](_0x2abf6a[_0xbb4d38(0x25c)]):_0x2abf6a[_0xbb4d38(0x147f)]()});});function _0x26102e(){const _0x30fc51=_0x4d4258;_0x9f61d4[_0x30fc51(0x1a7c)]=[];const _0x373c48=[];_0x9f61d4[_0x30fc51(0x7be)]['type']&&_0x9f61d4[_0x30fc51(0x7be)][_0x30fc51(0x66a)][_0x30fc51(0x1680)]()==='outbound'&&_0x9f61d4[_0x30fc51(0x7be)][_0x30fc51(0x299b)]===_0x30fc51(0x25f4)&&(_0x9f61d4[_0x30fc51(0x7be)][_0x30fc51(0x1340)]=_0x3233ee[_0x30fc51(0x325)]?(_0x9f61d4[_0x30fc51(0x7be)][_0x30fc51(0x586)]||'')+_0x30fc51(0x19e4)+_0x3233ee['cutdigits']+'}':(_0x9f61d4[_0x30fc51(0x7be)][_0x30fc51(0x586)]||'')+_0x30fc51(0xcdd),_0x3233ee[_0x30fc51(0xf8d)]!=='none'?_0x9f61d4[_0x30fc51(0x7be)]['options'][_0x30fc51(0xd8a)](_0x30fc51(0x106a))<0x0&&(_0x9f61d4[_0x30fc51(0x7be)][_0x30fc51(0x2224)]+=_0x30fc51(0x106a)):_0x9f61d4[_0x30fc51(0x7be)][_0x30fc51(0x2224)]=_0x9f61d4['system'][_0x30fc51(0x2224)][_0x30fc51(0x288f)](_0x30fc51(0x106a),''));if(_0x9f61d4[_0x30fc51(0x7be)][_0x30fc51(0x299b)]&&_0x9f61d4['system'][_0x30fc51(0x299b)]==='custom'){}else switch((_0x9f61d4['system'][_0x30fc51(0x22e1)]||_0x9f61d4[_0x30fc51(0x7be)][_0x30fc51(0x299b)])['toLowerCase']()){case _0x30fc51(0x19d1):_0x9f61d4[_0x30fc51(0x7be)][_0x30fc51(0x28df)]=_0x9f61d4[_0x30fc51(0x7be)][_0x30fc51(0x16b6)]+'='+_0x9f61d4['system']['value'];break;case _0x30fc51(0x197c):break;default:_0x373c48[0x0]=_0x9f61d4[_0x30fc51(0x7be)][_0x30fc51(0xd0d)],_0x373c48[0x1]=_0x9f61d4[_0x30fc51(0x7be)][_0x30fc51(0x1822)],_0x9f61d4[_0x30fc51(0x7be)][_0x30fc51(0x28df)]=_0x373c48[_0x30fc51(0x1f66)](',');}_0x2580b7(_0x9f61d4[_0x30fc51(0x7be)]);}function _0x2580b7(_0x3d07b9){const _0x737c28=_0x4d4258;_0x371823[_0x737c28(0x1426)](_0x3d07b9);}}const _0x1a50e=_0x3d2483;;_0x19d01f[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty',_0x5537c6(0x795),_0x5537c6(0x658),_0x5537c6(0x142b),'Auth',_0x5537c6(0x1b1a)];function _0x19d01f(_0x595f72,_0x18ea6a,_0x498cbe,_0x293f68,_0xa06445,_0x4c9fcd,_0x3b2c07,_0x121786){const _0x3e262d=_0x5537c6,_0x37532=this;_0x37532[_0x3e262d(0xe76)]=_0x3b2c07[_0x3e262d(0x21e8)](),_0x37532[_0x3e262d(0x1a7c)]=[],_0x37532['title']='SMS.EDIT_'+(_0x293f68['appType']||_0x293f68[_0x3e262d(0x22e1)])[_0x3e262d(0x2335)](),_0x37532[_0x3e262d(0x22b1)]=angular['copy'](_0x293f68),_0x37532[_0x3e262d(0x1b1a)]=_0x121786,_0x37532[_0x3e262d(0xf4c)]={};if(_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x28df)])switch(_0x37532[_0x3e262d(0x22b1)]['appType']?_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x299b)]['toLowerCase']():_0x37532[_0x3e262d(0x22b1)]['app'][_0x3e262d(0x1680)]()){case _0x3e262d(0x197c):break;case _0x3e262d(0x711):{const _0x15bd05=_0x37532['tag'][_0x3e262d(0x28df)][_0x3e262d(0xbe1)](',');_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0xee8)]=_0x15bd05[0x0],_0x37532['tag'][_0x3e262d(0x12b4)]=_0x15bd05[0x1],_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x173a)]=_0x15bd05[_0x3e262d(0x14cb)](0x2,_0x15bd05[_0x3e262d(0xfd0)])[_0x3e262d(0x1f66)](',');}break;case _0x3e262d(0xece):{const _0x147916=_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x28df)]['split'](',');_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x2854)]=_0x147916[0x0],_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x12bf)]=_0x147916[0x1],_0x37532[_0x3e262d(0x22b1)]['privateKey']=_0x147916[0x2],_0x37532[_0x3e262d(0x22b1)]['language']=_0x147916[0x3],_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x173a)]=_0x147916['slice'](0x4,_0x147916['length'])['join'](',');}break;case _0x3e262d(0x123a):{const _0x4042cc=_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x28df)]['split'](',');_0x37532['tag'][_0x3e262d(0x413)]=_0x4042cc[0x0],_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x21d9)]=_0x4042cc[0x1],_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0xd50)]=_0x4042cc[0x2],_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x1c7f)]=_0x4042cc[0x3],_0x37532['tag'][_0x3e262d(0x173a)]=_0x4042cc[_0x3e262d(0x14cb)](0x4,_0x4042cc['length'])[_0x3e262d(0x1f66)](',');}break;case _0x3e262d(0x1f71):{const _0x1f4ace=_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x28df)]['split'](',');_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x18a5)]=isNaN(_0x1f4ace[0x0])?_0x1f4ace[0x0]:parseInt(_0x1f4ace[0x0],0xa),_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x19d3)]=_0x1f4ace['slice'](0x1,_0x1f4ace['length'])[_0x3e262d(0x1f66)](',');}break;case _0x3e262d(0x155e):_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x19d3)]=_0x37532['tag'][_0x3e262d(0x28df)];break;case'set':_0x37532['tag'][_0x3e262d(0x16b6)]=_0x37532['tag'][_0x3e262d(0x28df)][_0x3e262d(0xbe1)]('=')[0x0],_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x327)]=_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x28df)]['split']('=')[0x1];break;case _0x3e262d(0x4b4):_0x37532['tag']['project']=_0x37532[_0x3e262d(0x22b1)]['appdata'];break;default:{const _0x9f564d=_0x37532[_0x3e262d(0x22b1)]['appdata']['split'](',');_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x22b1)]=_0x39641b()[_0x3e262d(0xce9)](_0x9f564d[0x0])?_0x9f564d[0x0]:isNaN(_0x9f564d[0x0])?_0x9f564d[0x0]:parseInt(_0x9f564d[0x0],0xa);}break;}else{}_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x66a)]&&_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x66a)][_0x3e262d(0x1680)]()==='outbound'&&_0x37532['tag'][_0x3e262d(0x299b)][_0x3e262d(0x1680)]()==='outbounddial'&&(_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x586)]=_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x1340)]?_0x37532[_0x3e262d(0x22b1)]['phone'][_0x3e262d(0xbe1)]('$')[0x0]:undefined,_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x1e7c)]=_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x2816)]?_0x3e262d(0x25f9)+_0x37532[_0x3e262d(0x22b1)][_0x3e262d(0x2816)]:undefined);_0x37532[_0x3e262d(0xc3f)]=_0x5e8842,_0x37532[_0x3e262d(0xda0)]=_0x314c0e,_0x3b2c07[_0x3e262d(0x22b6)](_0x3e262d(0x1c60))?_0x4c9fcd[_0x3e262d(0x22b1)][_0x3e262d(0xbf7)]({'fields':_0x3e262d(0x43c),'sort':'name','nolimit':'true'})['$promise'][_0x3e262d(0x1cb0)](function(_0x389eaa){const _0x57654c=_0x3e262d;_0x37532['tags']=_0x389eaa[_0x57654c(0x2214)]||[];})[_0x3e262d(0x1c4)](function(_0x42c4c5){const _0x4acb82=_0x3e262d;_0x498cbe['error']({'title':_0x42c4c5[_0x4acb82(0x291)]?'API:'+_0x42c4c5[_0x4acb82(0x291)]+_0x4acb82(0x1657)+_0x42c4c5[_0x4acb82(0xc22)]:_0x4acb82(0x12f9),'msg':_0x42c4c5['data']?JSON['stringify'](_0x42c4c5[_0x4acb82(0x25c)]):_0x42c4c5['toString']()});}):_0x4c9fcd[_0x3e262d(0x22b1)][_0x3e262d(0xbf7)]({'fields':_0x3e262d(0x43c),'sort':'name','nolimit':_0x3e262d(0x44d)})[_0x3e262d(0x1d77)][_0x3e262d(0x1cb0)](function(_0x2c5cec){const _0xa44c8a=_0x3e262d;_0x37532['tags']=_0x2c5cec[_0xa44c8a(0x2214)]||[];})[_0x3e262d(0x1cb0)](function(){const _0x1771bc=_0x3e262d;return _0x4c9fcd[_0x1771bc(0x2199)][_0x1771bc(0xbf7)]({'userProfileId':_0x37532[_0x1771bc(0xe76)][_0x1771bc(0x13c1)],'sectionId':0x3f0})[_0x1771bc(0x1d77)];})[_0x3e262d(0x1cb0)](function(_0x986fde){const _0x2c4697=_0x3e262d,_0x595a23=_0x986fde&&_0x986fde[_0x2c4697(0x2214)]?_0x986fde[_0x2c4697(0x2214)][0x0]:null;if(!_0x595a23){const _0x19852d=[];let _0x420d40=null;_0x37532['tag']&&(_0x420d40=_0x39641b()[_0x2c4697(0x13b4)](_0x37532[_0x2c4697(0xfbf)],{'name':_0x37532[_0x2c4697(0x22b1)][_0x2c4697(0x22b1)]}));for(let _0x456389=0x0;_0x456389<_0x37532[_0x2c4697(0xfbf)][_0x2c4697(0xfd0)];_0x456389++){_0x420d40&&_0x37532[_0x2c4697(0xfbf)][_0x456389]['id']===_0x420d40['id']&&(_0x37532[_0x2c4697(0xfbf)][_0x456389]['canSelect']=![],_0x19852d[_0x2c4697(0x2785)](_0x37532[_0x2c4697(0xfbf)][_0x456389]));}_0x37532['tags']=_0x19852d;}else{if(!_0x595a23[_0x2c4697(0x12f4)])return _0x4c9fcd[_0x2c4697(0x1198)][_0x2c4697(0xbf7)]({'sectionId':_0x595a23['id']})[_0x2c4697(0x1d77)][_0x2c4697(0x1cb0)](function(_0x30259a){const _0x468ea7=_0x2c4697,_0xef886=_0x39641b()[_0x468ea7(0x1de2)](_0x30259a['rows'],function(_0x5b5cfa){const _0x331c79=_0x468ea7;return _0x39641b()[_0x331c79(0x13b4)](_0x37532[_0x331c79(0xfbf)],{'id':_0x5b5cfa[_0x331c79(0x2982)]});});let _0xc4eb67=null;_0x37532['tag']&&(_0xc4eb67=_0x39641b()[_0x468ea7(0x13b4)](_0x37532[_0x468ea7(0xfbf)],{'name':_0x37532[_0x468ea7(0x22b1)][_0x468ea7(0x22b1)]}));if(_0xc4eb67&&!_0x39641b()[_0x468ea7(0x727)](_0xef886,['id',_0xc4eb67['id']])){const _0x7daeda=_0x39641b()[_0x468ea7(0x13b4)](_0x37532[_0x468ea7(0xfbf)],{'id':_0xc4eb67['id']});_0x7daeda[_0x468ea7(0x15da)]=![],_0xef886[_0x468ea7(0x2785)](_0x7daeda);}_0x37532['tags']=_0xef886;});}})[_0x3e262d(0x1c4)](function(_0x446f3c){const _0x2f911c=_0x3e262d;_0x498cbe[_0x2f911c(0x218e)]({'title':_0x446f3c[_0x2f911c(0x291)]?_0x2f911c(0xeb9)+_0x446f3c[_0x2f911c(0x291)]+'\x20-\x20'+_0x446f3c[_0x2f911c(0xc22)]:_0x2f911c(0x808),'msg':_0x446f3c['data']?JSON[_0x2f911c(0x2701)](_0x446f3c[_0x2f911c(0x25c)]):_0x446f3c['toString']()});});function _0x5e8842(){const _0x799bb1=_0x3e262d;_0x37532['errors']=[];const _0xa84198=[];_0x37532[_0x799bb1(0x22b1)][_0x799bb1(0x66a)]&&_0x37532[_0x799bb1(0x22b1)][_0x799bb1(0x66a)][_0x799bb1(0x1680)]()===_0x799bb1(0x895)&&_0x37532[_0x799bb1(0x22b1)][_0x799bb1(0x299b)]==='outboundDial'&&(_0x37532[_0x799bb1(0x22b1)][_0x799bb1(0x1340)]=_0xa06445['cutdigits']?(_0x37532[_0x799bb1(0x22b1)][_0x799bb1(0x586)]||'')+'${EXTEN:'+_0xa06445[_0x799bb1(0x325)]+'}':(_0x37532[_0x799bb1(0x22b1)]['prefix']||'')+_0x799bb1(0xcdd),_0xa06445[_0x799bb1(0xf8d)]!==_0x799bb1(0x13b1)?_0x37532[_0x799bb1(0x22b1)][_0x799bb1(0x2224)][_0x799bb1(0xd8a)](_0x799bb1(0x106a))<0x0&&(_0x37532[_0x799bb1(0x22b1)][_0x799bb1(0x2224)]+=_0x799bb1(0x106a)):_0x37532[_0x799bb1(0x22b1)][_0x799bb1(0x2224)]=_0x37532[_0x799bb1(0x22b1)][_0x799bb1(0x2224)][_0x799bb1(0x288f)](_0x799bb1(0x106a),''));const _0x24e078=_0x39641b()[_0x799bb1(0x13b4)](_0x37532['tags'],{'name':_0x37532[_0x799bb1(0x22b1)][_0x799bb1(0x22b1)]});_0x24e078&&(_0x37532[_0x799bb1(0x22b1)]['TagId']=_0x24e078['id']);if(_0x37532[_0x799bb1(0x22b1)][_0x799bb1(0x299b)]&&_0x37532[_0x799bb1(0x22b1)][_0x799bb1(0x299b)]===_0x799bb1(0x197c)){}else switch((_0x37532[_0x799bb1(0x22b1)]['app']||_0x37532['tag'][_0x799bb1(0x299b)])[_0x799bb1(0x1680)]()){case _0x799bb1(0x19d1):_0x37532[_0x799bb1(0x22b1)][_0x799bb1(0x28df)]=_0x37532[_0x799bb1(0x22b1)][_0x799bb1(0x16b6)]+'='+_0x37532['tag'][_0x799bb1(0x327)];break;case _0x799bb1(0x197c):break;default:_0xa84198[0x0]=_0x37532['tag'][_0x799bb1(0x22b1)],_0x37532[_0x799bb1(0x22b1)][_0x799bb1(0x28df)]=_0xa84198['join'](',');}_0x314c0e(_0x37532[_0x799bb1(0x22b1)]);}function _0x314c0e(_0x10866d){const _0xc00e3=_0x3e262d;_0x595f72[_0xc00e3(0x1426)](_0x10866d);}}const _0x2ebe0e=_0x19d01f;;_0x589e57[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x1463),'$state','$q',_0x5537c6(0x1ae),_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'toasty',_0x5537c6(0x142b),_0x5537c6(0x1774)];function _0x589e57(_0x7f193f,_0x19fc66,_0x37936a,_0x4e311b,_0x27ec7d,_0x2d57e7,_0x29e55a,_0xdfe639,_0x3239a8,_0x373d96,_0x4b2eb2){const _0x594123=_0x5537c6,_0x134169=this;_0x134169[_0x594123(0xe76)]=_0x4b2eb2[_0x594123(0x21e8)](),_0x134169[_0x594123(0x658)]={},_0x134169[_0x594123(0x1ed)]={'count':0x0,'rows':[]},_0x134169['selectedSmsAccountInteractions']=[],_0x134169[_0x594123(0x1b1a)],_0x134169['query']={'read':_0x594123(0xd38),'closed':_0x594123(0xd38),'sort':'-createdAt','includeAll':_0x594123(0x44d),'limit':0xa,'page':0x1},_0x134169[_0x594123(0x1a8e)]=_0x22a712,_0x134169['deleteConfirm']=_0xd48686,_0x134169[_0x594123(0x95f)]=_0x1d4563,_0x134169[_0x594123(0x829)]=_0x4f25e3,_0x134169[_0x594123(0x1f8a)]=_0x4adcf4,_0x134169[_0x594123(0x2415)]=_0x2e633c,_0x134169[_0x594123(0x1ede)]=_0x2ae549,_0x134169[_0x594123(0x10e8)]=_0x72025c,_0x134169[_0x594123(0x1df0)]=_0x29f061,_0x134169[_0x594123(0xb40)]=_0x10cad8;function _0x22a712(_0xeef21b,_0x4c1e29){const _0x40b310=_0x594123;_0x134169[_0x40b310(0x658)]=_0xeef21b,_0x134169[_0x40b310(0x1b1a)]=typeof _0x4c1e29!==_0x40b310(0x16b5)?_0x4c1e29:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x134169[_0x40b310(0xae2)][_0x40b310(0x1a2)]=_0x134169['smsAccount']['id'],_0x134169[_0x40b310(0x16ad)]={'fields':_0x395474()},_0x1de49b();}function _0x1de49b(){const _0x9ed88b=_0x594123;return _0x373d96[_0x9ed88b(0x22b1)][_0x9ed88b(0xbf7)]()[_0x9ed88b(0x1d77)][_0x9ed88b(0x1cb0)](function(_0x1e70cd){const _0x2c378c=_0x9ed88b;_0x134169[_0x2c378c(0xfbf)]=_0x1e70cd||{'count':0x0,'rows':[]};})['then'](function(){const _0x304b98=_0x9ed88b;_0x134169[_0x304b98(0x789)]=_0xdf5dda();});}function _0xdf5dda(){const _0x304513=_0x594123;return[{'name':_0x304513(0x68d),'key':_0x304513(0x24cb),'type':_0x304513(0x18ec),'label':_0x304513(0xf5e)},{'name':'Messages','key':'read','type':_0x304513(0x220f),'label':_0x304513(0x9e5),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x304513(0x27a4)},{'value':null,'translate':_0x304513(0x2706)}]},{'name':_0x304513(0x938),'key':'closed','type':_0x304513(0x220f),'label':_0x304513(0x24b6),'customOptions':[{'value':0x0,'translate':_0x304513(0x1bbd)},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0x304513(0x2706)}]},{'name':'Agent','key':_0x304513(0x21ab),'type':_0x304513(0x220f),'label':_0x304513(0x7bb),'customOptions':[{'value':_0x304513(0xd38),'translate':_0x304513(0x68f)},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':'Tag','key':_0x304513(0x22b1),'type':_0x304513(0x1d50),'label':_0x304513(0x3c3),'options':_0x134169[_0x304513(0xfbf)][_0x304513(0x2214)],'placeholder':_0x304513(0x62b)}];}function _0x395474(){const _0x2a8137=_0x594123;return[{'name':'Id','column':'id','type':_0x2a8137(0x83d)},{'name':_0x2a8137(0x8d3),'column':'Contact','type':_0x2a8137(0x19e0),'options':{'searchFields':[_0x2a8137(0x1491),_0x2a8137(0x1fbb),'email'],'route':{'model':_0x2a8137(0xbe7),'action':_0x2a8137(0xbf7),'params':{'fields':_0x2a8137(0x9b0),'Contact':_0x2a8137(0xed6),'nolimit':!![]}},'extraOperators':[_0x2a8137(0x1fb1)],'excludedOperators':[_0x2a8137(0x15ce)]}},{'name':_0x2a8137(0x228c),'column':_0x2a8137(0x1e5d),'type':_0x2a8137(0x19d3),'options':{'excludedOperators':[_0x2a8137(0x1c5e),'$ne']}},{'name':_0x2a8137(0x269b),'column':_0x2a8137(0x1cd0),'type':'text','options':{'excludedOperators':[_0x2a8137(0x1c5e),_0x2a8137(0x15ce)]}},{'name':_0x2a8137(0x938),'column':'closed','type':'select','values':[{'id':0x0,'translate':_0x2a8137(0x1bbd)},{'id':0x1,'translate':_0x2a8137(0x191b)}],'options':{'excludedOperators':[_0x2a8137(0x15ce)]}},{'name':_0x2a8137(0x30e),'column':_0x2a8137(0x1597),'type':_0x2a8137(0x19e0),'options':{'table':'i','route':{'model':_0x2a8137(0xebe),'action':'get','params':{'role':'agent','fields':_0x2a8137(0x1d34),'nolimit':!![]}},'searchFields':['fullname',_0x2a8137(0x16b6)],'extraOperators':[_0x2a8137(0x1fb1)],'excludedOperators':[_0x2a8137(0x15ce)]}},{'name':'Tags','column':'Tag','type':_0x2a8137(0x1d50),'options':{'route':{'model':'tag','action':_0x2a8137(0xbf7),'params':{'nolimit':!![]}},'excludedOperators':[_0x2a8137(0x62d)]}},{'name':_0x2a8137(0x68d),'column':_0x2a8137(0x24cb),'type':_0x2a8137(0x18ec),'options':{'excludedOperators':[_0x2a8137(0x15ce)]}},{'name':'Read','column':'unreadMessages','type':_0x2a8137(0x220f),'values':[{'id':0x1,'translate':_0x2a8137(0x27a4)},{'id':0x0,'translate':_0x2a8137(0x1115)}],'options':{'excludedOperators':[_0x2a8137(0x15ce)]}}];}function _0x2ae549(){const _0x56fa9b=_0x594123;_0x29e55a[_0x56fa9b(0xe27)]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x3530d6,'parent':angular['element'](_0xdfe639['body']),'clickOutsideToClose':![],'locals':{'fields':_0x134169['advancedSearch']['fields'],'color':undefined,'storagePath':'sms.smsAccounts'},'fullscreen':!![]})[_0x56fa9b(0x1cb0)](function(_0x288381){const _0x56b3fa=_0x56fa9b;_0x134169['query'][_0x56b3fa(0x24be)]=_0x288381===![]?undefined:_0x288381;if(_0x134169[_0x56b3fa(0xae2)]['search'])_0x4adcf4();else _0x288381===![]&&_0x4adcf4();})[_0x56fa9b(0x1c4)](function(_0x5ba3fd){const _0x49c448=_0x56fa9b;_0x3239a8[_0x49c448(0x218e)]({'title':_0x49c448(0x2260),'msg':_0x5ba3fd[_0x49c448(0x25c)]?JSON[_0x49c448(0x2701)](_0x5ba3fd[_0x49c448(0x25c)][_0x49c448(0x155e)]):_0x5ba3fd['toString']()});});}function _0x1d4563(_0x29904f,_0x468d47,_0x58eac4){const _0x127d8e=_0x594123;return _0x373d96[_0x127d8e(0xa71)]['download']({'id':_0x29904f['id'],'exists':!![],'attachments':_0x58eac4})[_0x127d8e(0x1d77)][_0x127d8e(0x1cb0)](function(_0x343a75){const _0x5419af=_0x127d8e,_0xcdaa71=[_0x343a75[_0x5419af(0xef0)]];let _0x126ee5='interaction'+_0x29904f['id'];const _0x21ac87=new Blob(_0xcdaa71,{'type':_0x343a75[_0x5419af(0x66a)]});_0x126ee5=_0x5419af(0x89d)+_0x29904f['id']+_0x5419af(0x1b16);const _0x3aec95=window[_0x5419af(0x1db8)][_0x5419af(0x8c6)]('a');_0x3aec95['setAttribute'](_0x5419af(0x105b),URL['createObjectURL'](_0x21ac87)),_0x3aec95[_0x5419af(0x23b9)]('download',_0x126ee5),document['body'][_0x5419af(0x23de)](_0x3aec95),_0x3aec95[_0x5419af(0x20b8)]();})['catch'](function(_0x105022){const _0x94f138=_0x127d8e;if(_0x105022['data']&&_0x105022[_0x94f138(0x25c)][_0x94f138(0x1a7c)]&&_0x105022['data'][_0x94f138(0x1a7c)]['length'])for(let _0x1adf98=0x0;_0x1adf98<_0x105022['data'][_0x94f138(0x1a7c)][_0x94f138(0xfd0)];_0x1adf98+=0x1){_0x3239a8[_0x94f138(0x218e)]({'title':_0x105022['data'][_0x94f138(0x1a7c)][_0x1adf98][_0x94f138(0x66a)],'msg':_0x105022[_0x94f138(0x25c)]['errors'][_0x1adf98][_0x94f138(0x155e)]});}else _0x3239a8[_0x94f138(0x218e)]({'title':_0x105022[_0x94f138(0x291)]?_0x94f138(0xeb9)+_0x105022['status']+'\x20-\x20'+_0x105022[_0x94f138(0xc22)]:'api.smsAccount.save','msg':_0x105022[_0x94f138(0x25c)]?JSON[_0x94f138(0x2701)](_0x105022['data'][_0x94f138(0x155e)]):_0x105022[_0x94f138(0x147f)]()});});}function _0xd48686(_0xc5667e,_0x135c1c){const _0x2d28ac=_0x594123,_0x566905=_0x29e55a['confirm']()[_0x2d28ac(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interaction?')[_0x2d28ac(0x49e)](_0x2d28ac(0x204d)+(_0xc5667e[_0x2d28ac(0x16b6)]||_0xc5667e['id']&&_0x39641b()[_0x2d28ac(0x277)](_0x2d28ac(0xf82))+_0xc5667e['id']||_0x2d28ac(0x10e4))+_0x2d28ac(0x1200)+_0x2d28ac(0x1b6))[_0x2d28ac(0x15ad)](_0x2d28ac(0x116f))[_0x2d28ac(0x728)](_0x135c1c)['ok']('OK')['cancel']('CANCEL');_0x29e55a['show'](_0x566905)[_0x2d28ac(0x1cb0)](function(){_0x29f061(_0xc5667e);},function(){const _0x24bdf1=_0x2d28ac;console[_0x24bdf1(0x1b4f)]('CANCEL');});}function _0x4f25e3(_0x419503){const _0x521d02=_0x594123;_0x134169[_0x521d02(0x1ed)]=_0x419503||{'count':0x0,'rows':[]};for(let _0x2bfc9e=0x0;_0x2bfc9e<_0x134169[_0x521d02(0x1ed)][_0x521d02(0x2214)][_0x521d02(0xfd0)];_0x2bfc9e+=0x1){const _0xfccc24=_0x134169[_0x521d02(0x1ed)][_0x521d02(0x2214)][_0x2bfc9e];_0x5c3705(_0xfccc24),_0xfccc24['Owner'][_0x521d02(0x16b6)]=_0x562600(_0xfccc24);}}function _0x4adcf4(){const _0x308bd1=_0x594123;_0x134169[_0x308bd1(0xae2)]['offset']=(_0x134169[_0x308bd1(0xae2)][_0x308bd1(0x1c7b)]-0x1)*_0x134169['query'][_0x308bd1(0x236)],_0x134169[_0x308bd1(0x2061)]=_0x373d96[_0x308bd1(0xa71)][_0x308bd1(0xbf7)](_0x134169[_0x308bd1(0xae2)],_0x4f25e3)[_0x308bd1(0x1d77)];}function _0x2e633c(_0xf96ead,_0x46ddca){const _0x1a2d7a=_0x594123;_0x29e55a[_0x1a2d7a(0xe27)]({'controller':'AgentGeneralInteractionController','controllerAs':'vm','templateUrl':_0x50da87,'parent':angular['element'](_0xdfe639[_0x1a2d7a(0x1ed9)]),'targetEvent':_0xf96ead,'clickOutsideToClose':!![],'onShowing':function(_0x4d7c2c){const _0x5e1b9d=_0x1a2d7a;_0x4d7c2c['vm'][_0x5e1b9d(0x1a8e)]({'id':0x1,'channel':_0x5e1b9d(0x689),'interaction':_0x46ddca,'spy':!![]},_0x19fc66['$parent']['vm']['setting']);}});}function _0x29f061(_0x55e5f5){const _0x3d5dd9=_0x594123;_0x373d96[_0x3d5dd9(0xa71)][_0x3d5dd9(0x111d)]({'id':_0x55e5f5['id']})[_0x3d5dd9(0x1d77)][_0x3d5dd9(0x1cb0)](function(){const _0x4cfff8=_0x3d5dd9;_0x39641b()['remove'](_0x134169['smsAccountInteractions'][_0x4cfff8(0x2214)],{'id':_0x55e5f5['id']}),_0x134169['smsAccountInteractions'][_0x4cfff8(0x184d)]-=0x1,!_0x134169[_0x4cfff8(0x1ed)][_0x4cfff8(0x2214)][_0x4cfff8(0xfd0)]&&_0x4adcf4(),_0x3239a8[_0x4cfff8(0x829)]({'title':_0x4cfff8(0x1c2b),'msg':_0x55e5f5['name']?_0x55e5f5[_0x4cfff8(0x16b6)]+_0x4cfff8(0x3f5):''});})['catch'](function(_0x4dae6a){const _0x3f664e=_0x3d5dd9;if(_0x4dae6a[_0x3f664e(0x25c)]&&_0x4dae6a['data'][_0x3f664e(0x1a7c)]&&_0x4dae6a[_0x3f664e(0x25c)][_0x3f664e(0x1a7c)][_0x3f664e(0xfd0)]){_0x134169[_0x3f664e(0x1a7c)]=_0x4dae6a[_0x3f664e(0x25c)][_0x3f664e(0x1a7c)]||[{'message':_0x4dae6a[_0x3f664e(0x147f)](),'type':_0x3f664e(0x279a)}];for(let _0x3afb58=0x0;_0x3afb58<_0x4dae6a[_0x3f664e(0x25c)][_0x3f664e(0x1a7c)][_0x3f664e(0xfd0)];_0x3afb58++){_0x3239a8['error']({'title':_0x4dae6a[_0x3f664e(0x25c)][_0x3f664e(0x1a7c)][_0x3afb58][_0x3f664e(0x66a)],'msg':_0x4dae6a[_0x3f664e(0x25c)][_0x3f664e(0x1a7c)][_0x3afb58][_0x3f664e(0x155e)]});}}else _0x3239a8[_0x3f664e(0x218e)]({'title':_0x4dae6a[_0x3f664e(0x291)]?_0x3f664e(0xeb9)+_0x4dae6a[_0x3f664e(0x291)]+_0x3f664e(0x1657)+_0x4dae6a['statusText']:'SYSTEM:GETsmsAccount','msg':_0x4dae6a[_0x3f664e(0x25c)]?JSON[_0x3f664e(0x2701)](_0x4dae6a[_0x3f664e(0x25c)]['message']):_0x4dae6a[_0x3f664e(0x155e)]||_0x4dae6a[_0x3f664e(0x147f)]()});});}function _0x72025c(){const _0x48f201=_0x594123,_0x505336=angular['copy'](_0x134169[_0x48f201(0x1d93)]);return _0x134169[_0x48f201(0x1d93)]=[],_0x505336;}function _0x10cad8(_0x1c6588){const _0x5a94e3=_0x594123,_0x1134c9=_0x29e55a['confirm']()[_0x5a94e3(0x1386)](_0x5a94e3(0xb2e))[_0x5a94e3(0x49e)](''+_0x134169['selectedSmsAccountInteractions'][_0x5a94e3(0xfd0)]+_0x5a94e3(0x1d6c)+'\x20will\x20be\x20deleted.')[_0x5a94e3(0x15ad)](_0x5a94e3(0x8ca))[_0x5a94e3(0x728)](_0x1c6588)['ok']('OK')[_0x5a94e3(0x696)](_0x5a94e3(0x24ba));_0x29e55a['show'](_0x1134c9)[_0x5a94e3(0x1cb0)](function(){const _0x3ce586=_0x5a94e3;_0x134169[_0x3ce586(0x1d93)][_0x3ce586(0xf90)](function(_0x2f93aa){_0x29f061(_0x2f93aa);}),_0x134169[_0x3ce586(0x1d93)]=[];});}function _0x5c3705(_0x7c3a75){const _0x3f9d4c=_0x594123;_0x7c3a75[_0x3f9d4c(0x8d3)]?(_0x7c3a75['contactName']=(_0x7c3a75['Contact'][_0x3f9d4c(0x1491)]||'')+'\x20'+(_0x7c3a75['Contact'][_0x3f9d4c(0x1fbb)]||''),_0x7c3a75[_0x3f9d4c(0x28b6)]=_0x7c3a75[_0x3f9d4c(0x8d3)][_0x3f9d4c(0x1ce6)]):_0x7c3a75[_0x3f9d4c(0x1325)]=_0x27ec7d['instant'](_0x3f9d4c(0x2b9));}function _0x562600(_0x1477fa){const _0x24f2ce=_0x594123;if(_0x1477fa[_0x24f2ce(0x21ab)])return _0x1477fa['UserId']===_0x134169[_0x24f2ce(0xe76)]['id']?_0x27ec7d[_0x24f2ce(0x25cc)](_0x24f2ce(0x1ea6)):_0x1477fa[_0x24f2ce(0x135d)][_0x24f2ce(0x1d14)]+'\x20<'+_0x1477fa[_0x24f2ce(0x135d)][_0x24f2ce(0xdbd)]+'>';return _0x27ec7d['instant']('DASHBOARDS.NOT_ASSIGNED');}let _0x20f944=!![],_0xffbc03=0x1;_0x19fc66[_0x594123(0x614)](_0x594123(0xeb6),function(_0x446fdb,_0x5e889b){const _0x2dd1ed=_0x594123;_0x20f944?_0x2d57e7(function(){_0x20f944=![];}):(!_0x5e889b&&(_0xffbc03=_0x134169[_0x2dd1ed(0xae2)][_0x2dd1ed(0x1c7b)]),_0x446fdb!==_0x5e889b&&(_0x134169[_0x2dd1ed(0xae2)][_0x2dd1ed(0x1c7b)]=0x1),!_0x446fdb&&(_0x134169[_0x2dd1ed(0xae2)][_0x2dd1ed(0x1c7b)]=_0xffbc03),_0x4adcf4());});}const _0x2c66b2=_0x589e57;;const _0x2167cf=_0x5074a3['p']+_0x5537c6(0x72f);;_0x5e7351[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x1463),_0x5537c6(0x406),'$q',_0x5537c6(0x1ae),_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1774)];function _0x5e7351(_0x26c7a4,_0x41b189,_0x2f0716,_0x9d54c7,_0x50b2f2,_0x4cb696,_0x337d4a,_0xad39ef,_0x626827,_0x2bbda2,_0x5b1f30){const _0x562097=_0x5537c6,_0x3360a7=this;_0x3360a7[_0x562097(0xe76)]=_0x5b1f30['getCurrentUser'](),_0x3360a7[_0x562097(0x658)]={},_0x3360a7['smsAccountSmsCannedAnswers']={'count':0x0,'rows':[]},_0x3360a7[_0x562097(0x2b6)]=[],_0x3360a7[_0x562097(0x1b1a)],_0x3360a7[_0x562097(0xae2)]={'fields':_0x562097(0x1d68),'limit':0xa,'page':0x1},_0x3360a7[_0x562097(0x1a8e)]=_0x471c6e,_0x3360a7[_0x562097(0xb25)]=_0x291a4d,_0x3360a7[_0x562097(0x829)]=_0x157e8a,_0x3360a7[_0x562097(0x28f1)]=_0x34a2e1,_0x3360a7[_0x562097(0x199b)]=_0x47bb6f,_0x3360a7[_0x562097(0x5d3)]=_0xe6027e,_0x3360a7[_0x562097(0x2283)]=_0x39506a,_0x3360a7['deleteSelectedSmsAccountSmsCannedAnswers']=_0x435d68;function _0x471c6e(_0xf24a00,_0x586700){const _0x80ce60=_0x562097;_0x3360a7[_0x80ce60(0x658)]=_0xf24a00,_0x3360a7['crudPermissions']=typeof _0x586700!==_0x80ce60(0x16b5)?_0x586700:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3360a7['query'][_0x80ce60(0x1a2)]=_0x3360a7[_0x80ce60(0x658)]['id'],_0x3360a7[_0x80ce60(0xae2)]['id']=_0x3360a7['smsAccount']['id'],_0x34a2e1();}function _0x291a4d(_0x50f14d,_0x39f03d){const _0x48e39b=_0x562097,_0x46dde3=_0x337d4a['confirm']()[_0x48e39b(0x1386)](_0x48e39b(0x1d76))[_0x48e39b(0x49e)](_0x48e39b(0x204d)+(_0x50f14d[_0x48e39b(0x16b6)]||_0x50f14d['id']&&_0x39641b()[_0x48e39b(0x277)](_0x48e39b(0xa7f))+_0x50f14d['id']||_0x48e39b(0x21f))+''+'\x20will\x20be\x20deleted.')[_0x48e39b(0x15ad)](_0x48e39b(0xaaa))[_0x48e39b(0x728)](_0x39f03d)['ok']('OK')['cancel'](_0x48e39b(0x24ba));_0x337d4a[_0x48e39b(0xe27)](_0x46dde3)['then'](function(){_0x39506a(_0x50f14d);},function(){const _0x10eac6=_0x48e39b;console[_0x10eac6(0x1b4f)](_0x10eac6(0x24ba));});}function _0x157e8a(_0x576cb0){_0x3360a7['smsAccountSmsCannedAnswers']=_0x576cb0||{'count':0x0,'rows':[]};}function _0x34a2e1(){const _0x5f709=_0x562097;_0x3360a7[_0x5f709(0xae2)][_0x5f709(0x184b)]=(_0x3360a7[_0x5f709(0xae2)][_0x5f709(0x1c7b)]-0x1)*_0x3360a7[_0x5f709(0xae2)][_0x5f709(0x236)],_0x3360a7[_0x5f709(0x2061)]=_0x2bbda2[_0x5f709(0x658)][_0x5f709(0x1ec5)](_0x3360a7[_0x5f709(0xae2)],_0x157e8a)[_0x5f709(0x1d77)];}function _0x47bb6f(_0x359a80,_0x553720){const _0x1323a2=_0x562097;_0x337d4a['show']({'controller':_0x1323a2(0x14ac),'controllerAs':'vm','templateUrl':_0x2167cf,'parent':angular[_0x1323a2(0x1853)](_0xad39ef['body']),'targetEvent':_0x359a80,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x3360a7[_0x1323a2(0x658)],'smsCannedAnswer':_0x553720,'smsCannedAnswers':_0x3360a7[_0x1323a2(0x1996)][_0x1323a2(0x2214)],'license':null,'setting':null,'crudPermissions':_0x3360a7[_0x1323a2(0x1b1a)]}});}function _0x39506a(_0x3c90e3){const _0x143281=_0x562097;_0x2bbda2[_0x143281(0x1c25)][_0x143281(0x111d)]({'id':_0x3c90e3['id']})[_0x143281(0x1d77)][_0x143281(0x1cb0)](function(){const _0x32fd71=_0x143281;_0x39641b()['remove'](_0x3360a7['smsAccountSmsCannedAnswers'][_0x32fd71(0x2214)],{'id':_0x3c90e3['id']}),_0x3360a7['smsAccountSmsCannedAnswers'][_0x32fd71(0x184d)]-=0x1,!_0x3360a7[_0x32fd71(0x1996)][_0x32fd71(0x2214)][_0x32fd71(0xfd0)]&&_0x34a2e1(),_0x626827[_0x32fd71(0x829)]({'title':_0x32fd71(0x12c3),'msg':_0x3c90e3['name']?_0x3c90e3[_0x32fd71(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x143281(0x1c4)](function(_0x15d4cf){const _0x1424d1=_0x143281;if(_0x15d4cf[_0x1424d1(0x25c)]&&_0x15d4cf[_0x1424d1(0x25c)][_0x1424d1(0x1a7c)]&&_0x15d4cf[_0x1424d1(0x25c)][_0x1424d1(0x1a7c)][_0x1424d1(0xfd0)]){_0x3360a7[_0x1424d1(0x1a7c)]=_0x15d4cf[_0x1424d1(0x25c)]['errors']||[{'message':_0x15d4cf[_0x1424d1(0x147f)](),'type':_0x1424d1(0x279a)}];for(let _0x42797e=0x0;_0x42797e<_0x15d4cf[_0x1424d1(0x25c)][_0x1424d1(0x1a7c)][_0x1424d1(0xfd0)];_0x42797e++){_0x626827[_0x1424d1(0x218e)]({'title':_0x15d4cf[_0x1424d1(0x25c)][_0x1424d1(0x1a7c)][_0x42797e][_0x1424d1(0x66a)],'msg':_0x15d4cf['data']['errors'][_0x42797e][_0x1424d1(0x155e)]});}}else _0x626827[_0x1424d1(0x218e)]({'title':_0x15d4cf[_0x1424d1(0x291)]?_0x1424d1(0xeb9)+_0x15d4cf['status']+_0x1424d1(0x1657)+_0x15d4cf[_0x1424d1(0xc22)]:_0x1424d1(0x279a),'msg':_0x15d4cf[_0x1424d1(0x25c)]?JSON[_0x1424d1(0x2701)](_0x15d4cf[_0x1424d1(0x25c)][_0x1424d1(0x155e)]):_0x15d4cf[_0x1424d1(0x155e)]||_0x15d4cf['toString']()});});}function _0xe6027e(){const _0x17dd66=_0x562097,_0x9f34e6=angular[_0x17dd66(0x17fe)](_0x3360a7['selectedSmsAccountSmsCannedAnswers']);return _0x3360a7[_0x17dd66(0x2b6)]=[],_0x9f34e6;}function _0x435d68(_0x174205){const _0x5d0a47=_0x562097,_0x126760=_0x337d4a[_0x5d0a47(0x1551)]()[_0x5d0a47(0x1386)](_0x5d0a47(0xaa6))[_0x5d0a47(0x49e)](_0x5d0a47(0x204d)+_0x3360a7[_0x5d0a47(0x2b6)][_0x5d0a47(0xfd0)]+_0x5d0a47(0x1d6c)+_0x5d0a47(0x1b6))[_0x5d0a47(0x15ad)](_0x5d0a47(0x165f))[_0x5d0a47(0x728)](_0x174205)['ok']('OK')[_0x5d0a47(0x696)]('CANCEL');_0x337d4a['show'](_0x126760)['then'](function(){const _0xf9797c=_0x5d0a47;_0x3360a7['selectedSmsAccountSmsCannedAnswers']['forEach'](function(_0x191997){_0x39506a(_0x191997);}),_0x3360a7[_0xf9797c(0x2b6)]=[];});}let _0x2c6d9d=!![],_0x18fef6=0x1;_0x41b189[_0x562097(0x614)](_0x562097(0xeb6),function(_0x10d7d4,_0x1ac5b5){const _0x568cda=_0x562097;_0x2c6d9d?_0x4cb696(function(){_0x2c6d9d=![];}):(!_0x1ac5b5&&(_0x18fef6=_0x3360a7[_0x568cda(0xae2)][_0x568cda(0x1c7b)]),_0x10d7d4!==_0x1ac5b5&&(_0x3360a7[_0x568cda(0xae2)]['page']=0x1),!_0x10d7d4&&(_0x3360a7[_0x568cda(0xae2)][_0x568cda(0x1c7b)]=_0x18fef6),_0x34a2e1());});}const _0x1b9336=_0x5e7351;;_0x23fa6e[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),'$location',_0x5537c6(0xcb9),'$q','$translate',_0x5537c6(0x9bf),'smsCannedAnswers','smsCannedAnswer',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x23fa6e(_0x356aca,_0x49acd6,_0x4a1504,_0x1bdbc8,_0x31e018,_0x38b26d,_0x50456e,_0x238e17,_0x21eb67,_0x1fa6ef,_0x40c464,_0x33cfd0,_0x12a5fc,_0x2d688b){const _0x53aa46=_0x5537c6,_0x1de5e6=this;_0x1de5e6[_0x53aa46(0xe76)]=_0x40c464[_0x53aa46(0x21e8)](),_0x1de5e6[_0x53aa46(0x1a7c)]=[],_0x1de5e6[_0x53aa46(0x9ca)]=_0x12a5fc,_0x1de5e6['license']=_0x33cfd0,_0x1de5e6[_0x53aa46(0x1b1a)]=_0x2d688b,_0x1de5e6[_0x53aa46(0xf4c)]={},_0x1de5e6[_0x53aa46(0x1b0c)]=_0x1de5e6[_0x53aa46(0x9ca)]&&_0x1de5e6[_0x53aa46(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1de5e6['title']='SMS.EDIT_SMSCANNEDANSWER',_0x1de5e6[_0x53aa46(0x21f)]=angular[_0x53aa46(0x17fe)](_0x21eb67),_0x1de5e6[_0x53aa46(0x662)]=_0x238e17,_0x1de5e6[_0x53aa46(0x1c8d)]=![];!_0x1de5e6[_0x53aa46(0x21f)]&&(_0x1de5e6['smsCannedAnswer']={},_0x1de5e6[_0x53aa46(0x1386)]=_0x53aa46(0x1f7e),_0x1de5e6[_0x53aa46(0x1c8d)]=!![]);_0x49acd6['params']['id']&&(_0x1de5e6['smsCannedAnswer'][_0x53aa46(0x1a2)]=_0x49acd6[_0x53aa46(0x1dfe)]['id']);_0x1de5e6[_0x53aa46(0x1f30)]=_0x1232f3,_0x1de5e6[_0x53aa46(0x1da3)]=_0x138edd,_0x1de5e6[_0x53aa46(0xb5b)]=_0x52714b,_0x1de5e6[_0x53aa46(0x2c4)]=_0x29b101,_0x1de5e6[_0x53aa46(0xda0)]=_0x1030f7;function _0x1232f3(){const _0x1f14e1=_0x53aa46;_0x1de5e6[_0x1f14e1(0x1a7c)]=[],_0x1fa6ef[_0x1f14e1(0x1c25)][_0x1f14e1(0x1c3f)](_0x1de5e6['smsCannedAnswer'])['$promise'][_0x1f14e1(0x1cb0)](function(_0x3bc878){const _0x1a52dc=_0x1f14e1;_0x1de5e6[_0x1a52dc(0x662)][_0x1a52dc(0xf63)](_0x3bc878[_0x1a52dc(0x19b2)]()),_0x50456e['success']({'title':'SmsCannedAnswer\x20properly\x20created','msg':_0x1de5e6['smsCannedAnswer']['name']?_0x1de5e6[_0x1a52dc(0x21f)][_0x1a52dc(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x1030f7(_0x3bc878);})['catch'](function(_0x13abc0){const _0x535442=_0x1f14e1;if(_0x13abc0[_0x535442(0x25c)]&&_0x13abc0['data'][_0x535442(0x1a7c)]&&_0x13abc0[_0x535442(0x25c)][_0x535442(0x1a7c)][_0x535442(0xfd0)]){_0x1de5e6['errors']=_0x13abc0[_0x535442(0x25c)][_0x535442(0x1a7c)]||[{'message':_0x13abc0['toString'](),'type':_0x535442(0x224)}];for(let _0x414731=0x0;_0x414731<_0x13abc0[_0x535442(0x25c)]['errors'][_0x535442(0xfd0)];_0x414731+=0x1){_0x50456e[_0x535442(0x218e)]({'title':_0x13abc0['data'][_0x535442(0x1a7c)][_0x414731][_0x535442(0x66a)],'msg':_0x13abc0[_0x535442(0x25c)][_0x535442(0x1a7c)][_0x414731]['message']});}}else _0x50456e['error']({'title':_0x13abc0['status']?_0x535442(0xeb9)+_0x13abc0['status']+_0x535442(0x1657)+_0x13abc0[_0x535442(0xc22)]:_0x535442(0x224),'msg':_0x13abc0[_0x535442(0x25c)]?JSON[_0x535442(0x2701)](_0x13abc0['data'][_0x535442(0x155e)]):_0x13abc0[_0x535442(0x147f)]()});});}function _0x138edd(){const _0x104bff=_0x53aa46;_0x1de5e6[_0x104bff(0x1a7c)]=[],_0x1fa6ef[_0x104bff(0x1c25)]['update']({'id':_0x1de5e6[_0x104bff(0x21f)]['id']},_0x1de5e6[_0x104bff(0x21f)])[_0x104bff(0x1d77)]['then'](function(_0x28d326){const _0x2972fb=_0x104bff,_0xb4a6df=_0x39641b()[_0x2972fb(0x13b4)](_0x1de5e6[_0x2972fb(0x662)],{'id':_0x28d326['id']});_0xb4a6df&&_0x39641b()[_0x2972fb(0x9c1)](_0xb4a6df,_0x39641b()[_0x2972fb(0x169b)](_0x28d326[_0x2972fb(0x19b2)](),_0x39641b()[_0x2972fb(0x1be5)](_0xb4a6df))),_0x50456e['success']({'title':_0x2972fb(0x1708),'msg':_0x1de5e6['smsCannedAnswer']['name']?_0x1de5e6[_0x2972fb(0x21f)][_0x2972fb(0x16b6)]+_0x2972fb(0xedb):''}),_0x1030f7(_0x28d326);})[_0x104bff(0x1c4)](function(_0x4d488b){const _0x212f8b=_0x104bff;if(_0x4d488b['data']&&_0x4d488b[_0x212f8b(0x25c)][_0x212f8b(0x1a7c)]&&_0x4d488b['data'][_0x212f8b(0x1a7c)]['length']){_0x1de5e6[_0x212f8b(0x1a7c)]=_0x4d488b['data'][_0x212f8b(0x1a7c)]||[{'message':_0x4d488b['toString'](),'type':_0x212f8b(0x922)}];for(let _0x394181=0x0;_0x394181<_0x4d488b[_0x212f8b(0x25c)][_0x212f8b(0x1a7c)][_0x212f8b(0xfd0)];_0x394181++){_0x50456e[_0x212f8b(0x218e)]({'title':_0x4d488b['data'][_0x212f8b(0x1a7c)][_0x394181]['type'],'msg':_0x4d488b['data'][_0x212f8b(0x1a7c)][_0x394181][_0x212f8b(0x155e)]});}}else _0x50456e[_0x212f8b(0x218e)]({'title':_0x4d488b[_0x212f8b(0x291)]?_0x212f8b(0xeb9)+_0x4d488b[_0x212f8b(0x291)]+_0x212f8b(0x1657)+_0x4d488b[_0x212f8b(0xc22)]:_0x212f8b(0x922),'msg':_0x4d488b[_0x212f8b(0x25c)]?JSON['stringify'](_0x4d488b[_0x212f8b(0x25c)][_0x212f8b(0x155e)]):_0x4d488b[_0x212f8b(0x147f)]()});});}function _0x52714b(_0x2277f5){const _0x4b4cef=_0x53aa46;_0x1de5e6[_0x4b4cef(0x1a7c)]=[];const _0x33e1d=_0x1bdbc8[_0x4b4cef(0x1551)]()[_0x4b4cef(0x1386)](_0x4b4cef(0x1a2e))[_0x4b4cef(0x862)](_0x4b4cef(0xba3))['ariaLabel'](_0x4b4cef(0xab9))['ok'](_0x4b4cef(0x2594))[_0x4b4cef(0x696)](_0x4b4cef(0xde1))[_0x4b4cef(0x728)](_0x2277f5);_0x1bdbc8[_0x4b4cef(0xe27)](_0x33e1d)['then'](function(){const _0x5e7b69=_0x4b4cef;_0x1fa6ef[_0x5e7b69(0x1c25)][_0x5e7b69(0x111d)]({'id':_0x1de5e6[_0x5e7b69(0x21f)]['id']})[_0x5e7b69(0x1d77)][_0x5e7b69(0x1cb0)](function(){const _0x559532=_0x5e7b69;_0x39641b()[_0x559532(0x152a)](_0x1de5e6[_0x559532(0x662)],{'id':_0x1de5e6['smsCannedAnswer']['id']}),_0x50456e[_0x559532(0x829)]({'title':'SmsCannedAnswer\x20properly\x20deleted!','msg':(_0x1de5e6[_0x559532(0x21f)]['name']||'smsCannedAnswer')+'\x20has\x20been\x20deleted!'}),_0x1030f7(_0x1de5e6['smsCannedAnswer']);})['catch'](function(_0x43150d){const _0x21a09f=_0x5e7b69;if(_0x43150d[_0x21a09f(0x25c)]&&_0x43150d[_0x21a09f(0x25c)][_0x21a09f(0x1a7c)]&&_0x43150d['data'][_0x21a09f(0x1a7c)]['length']){_0x1de5e6['errors']=_0x43150d[_0x21a09f(0x25c)][_0x21a09f(0x1a7c)]||[{'message':_0x43150d['toString'](),'type':_0x21a09f(0x1399)}];for(let _0x494f18=0x0;_0x494f18<_0x43150d[_0x21a09f(0x25c)][_0x21a09f(0x1a7c)][_0x21a09f(0xfd0)];_0x494f18++){_0x50456e[_0x21a09f(0x218e)]({'title':_0x43150d[_0x21a09f(0x25c)][_0x21a09f(0x1a7c)][_0x494f18]['type'],'msg':_0x43150d[_0x21a09f(0x25c)][_0x21a09f(0x1a7c)][_0x494f18][_0x21a09f(0x155e)]});}}else _0x50456e[_0x21a09f(0x218e)]({'title':_0x43150d[_0x21a09f(0x291)]?_0x21a09f(0xeb9)+_0x43150d[_0x21a09f(0x291)]+'\x20-\x20'+_0x43150d['statusText']:_0x21a09f(0x1399),'msg':_0x43150d[_0x21a09f(0x25c)]?JSON[_0x21a09f(0x2701)](_0x43150d[_0x21a09f(0x25c)]['message']):_0x43150d[_0x21a09f(0x155e)]||_0x43150d[_0x21a09f(0x147f)]()});});},function(){});}function _0x29b101(_0x534f59){return _0x534f59===null?undefined:new Date(_0x534f59);}function _0x1030f7(_0x4c8bc4){const _0x27a1af=_0x53aa46;_0x1bdbc8[_0x27a1af(0x1426)](_0x4c8bc4);}}const _0x460a49=_0x23fa6e;;_0x291b2b[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x1f10),_0x5537c6(0x406),'$mdSidenav',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x142b),'toasty',_0x5537c6(0x1774)];function _0x291b2b(_0x1ab3c7,_0x590835,_0x4a9093,_0x5470c2,_0x2c65a5,_0x4038cb,_0x54aa61,_0x5bcca7,_0x39574d,_0x2d059a,_0x3ee780){const _0x5d3576=_0x5537c6,_0x35bf78=this;_0x35bf78[_0x5d3576(0xe76)]=_0x3ee780[_0x5d3576(0x21e8)](),_0x35bf78[_0x5d3576(0xdf2)]={'count':0x0,'rows':[]},_0x35bf78[_0x5d3576(0x122a)]=[],_0x35bf78[_0x5d3576(0x1b1a)],_0x35bf78['levels']={'first':_0x5d3576(0x29a0),'second':_0x5d3576(0x26db),'third':'3rd'},_0x35bf78[_0x5d3576(0xae2)]={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':'-updatedAt','limit':0xa,'page':0x1},_0x35bf78[_0x5d3576(0x1a8e)]=_0x707742,_0x35bf78[_0x5d3576(0xb25)]=_0x292410,_0x35bf78[_0x5d3576(0x829)]=_0x56b3a5,_0x35bf78[_0x5d3576(0x640)]=_0x1f2309,_0x35bf78[_0x5d3576(0x932)]=_0x58b47a,_0x35bf78[_0x5d3576(0x20b3)]=_0x3cc444,_0x35bf78[_0x5d3576(0x1ebf)]=_0x3cd153,_0x35bf78[_0x5d3576(0x1626)]=_0x17853e,_0x35bf78[_0x5d3576(0x25ec)]=_0x129de7,_0x35bf78[_0x5d3576(0x13ff)]=_0x2ea6e1;function _0x707742(_0x45763b,_0x1a6135){const _0x136c93=_0x5d3576;_0x35bf78['smsAccount']=_0x45763b||{},_0x35bf78['crudPermissions']=typeof _0x1a6135!==_0x136c93(0x16b5)?_0x1a6135:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x35bf78['query'][_0x136c93(0x1a2)]=_0x35bf78['smsAccount']['id'],_0x35bf78[_0x136c93(0xae2)]['id']=_0x35bf78[_0x136c93(0x658)]['id'],_0x1f2309();}function _0x58b47a(_0x6b642b,_0x3f1843){const _0x40ea1f=_0x5d3576;_0x2c65a5[_0x40ea1f(0xe27)]({'controller':_0x40ea1f(0x201d),'controllerAs':'vm','templateUrl':_0x3d7049,'parent':angular[_0x40ea1f(0x1853)](_0x4038cb['body']),'targetEvent':_0x6b642b,'clickOutsideToClose':!![],'locals':{'disposition':_0x3f1843,'model':{'id':_0x35bf78[_0x40ea1f(0x658)]['id'],'field':_0x40ea1f(0x1a2),'route':_0x40ea1f(0x658)},'license':null,'setting':null,'crudPermissions':_0x35bf78[_0x40ea1f(0x1b1a)]}})[_0x40ea1f(0x1cb0)](function(_0x6ed115){if(_0x6ed115)_0x1f2309();});}function _0x292410(_0x58b99b,_0x32ecd6){const _0x240264=_0x5d3576,_0x42a1a5=_0x39641b()['some'](_0x35bf78[_0x240264(0xdf2)]['rows'],['ParentId',_0x58b99b['id']]),_0x49a6d4=_0x2c65a5[_0x240264(0x1551)]()['title'](_0x5bcca7[_0x240264(0x25cc)](_0x240264(0x1d64)))[_0x240264(0x862)](_0x5bcca7['instant']('TOOLS.NOTIFICATIONS.'+(_0x42a1a5?_0x240264(0x13cb):'DISPOSITION_DELETE_MESSAGE'),{'name':_0x58b99b[_0x240264(0x16b6)]}))[_0x240264(0x15ad)](_0x240264(0x35d))[_0x240264(0x728)](_0x32ecd6)['ok']('OK')['cancel'](_0x5bcca7['instant'](_0x240264(0x2768)));_0x2c65a5[_0x240264(0xe27)](_0x49a6d4)[_0x240264(0x1cb0)](function(){_0x3cc444(_0x58b99b);});}function _0x56b3a5(_0x58d8d0){const _0x38768e=_0x5d3576;_0x35bf78[_0x38768e(0xdf2)]=_0x58d8d0||{'count':0x0,'rows':[]};}function _0x1f2309(){const _0x1bba0f=_0x5d3576;_0x35bf78[_0x1bba0f(0xae2)][_0x1bba0f(0x184b)]=(_0x35bf78['query'][_0x1bba0f(0x1c7b)]-0x1)*_0x35bf78['query'][_0x1bba0f(0x236)],_0x35bf78[_0x1bba0f(0x2061)]=_0x39574d[_0x1bba0f(0x658)][_0x1bba0f(0x640)](_0x35bf78['query'],_0x56b3a5)['$promise'];}function _0x3cc444(_0x212161){const _0x48d378=_0x5d3576;_0x39574d['disposition'][_0x48d378(0x111d)]({'id':_0x212161['id']})['$promise']['then'](function(){const _0x28b18b=_0x48d378;_0x1f2309(),_0x2d059a['success']({'title':_0x5bcca7[_0x28b18b(0x25cc)](_0x28b18b(0x1f96))});})[_0x48d378(0x1c4)](function(_0x2dc9ca){const _0x1c9cac=_0x48d378;if(_0x2dc9ca[_0x1c9cac(0x25c)]&&_0x2dc9ca[_0x1c9cac(0x25c)][_0x1c9cac(0x1a7c)]&&_0x2dc9ca[_0x1c9cac(0x25c)][_0x1c9cac(0x1a7c)]['length']){_0x35bf78[_0x1c9cac(0x1a7c)]=_0x2dc9ca[_0x1c9cac(0x25c)][_0x1c9cac(0x1a7c)]||[{'message':_0x2dc9ca[_0x1c9cac(0x147f)](),'type':_0x1c9cac(0x2618)}];for(let _0x559db8=0x0;_0x559db8<_0x2dc9ca[_0x1c9cac(0x25c)]['errors'][_0x1c9cac(0xfd0)];_0x559db8++){_0x2d059a[_0x1c9cac(0x218e)]({'title':_0x2dc9ca[_0x1c9cac(0x25c)][_0x1c9cac(0x1a7c)][_0x559db8][_0x1c9cac(0x66a)],'msg':_0x2dc9ca[_0x1c9cac(0x25c)][_0x1c9cac(0x1a7c)][_0x559db8]['message']});}}else _0x2d059a['error']({'title':_0x2dc9ca[_0x1c9cac(0x291)]?'API:'+_0x2dc9ca[_0x1c9cac(0x291)]+_0x1c9cac(0x1657)+_0x2dc9ca[_0x1c9cac(0xc22)]:_0x1c9cac(0x2618),'msg':_0x2dc9ca[_0x1c9cac(0x25c)]?JSON[_0x1c9cac(0x2701)](_0x2dc9ca[_0x1c9cac(0x25c)][_0x1c9cac(0x155e)]):_0x2dc9ca['message']||_0x2dc9ca[_0x1c9cac(0x147f)]()});});}function _0x3cd153(){const _0x488d7d=_0x5d3576,_0x49d81e=angular[_0x488d7d(0x17fe)](_0x35bf78[_0x488d7d(0x122a)]);return _0x35bf78[_0x488d7d(0x122a)]=[],_0x49d81e;}function _0x17853e(_0x422a8b){const _0x43e401=_0x5d3576,_0x34d86c=_0x2c65a5['confirm']()[_0x43e401(0x1386)](_0x5bcca7['instant'](_0x43e401(0x969)))['content'](_0x5bcca7[_0x43e401(0x25cc)]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x35bf78[_0x43e401(0x122a)][_0x43e401(0xfd0)]}))[_0x43e401(0x15ad)](_0x43e401(0x1e1c))[_0x43e401(0x728)](_0x422a8b)['ok']('OK')[_0x43e401(0x696)](_0x5bcca7[_0x43e401(0x25cc)](_0x43e401(0x2768)));_0x2c65a5['show'](_0x34d86c)[_0x43e401(0x1cb0)](function(){const _0x57a80a=_0x43e401;_0x35bf78[_0x57a80a(0x122a)][_0x57a80a(0xf90)](function(_0x5d7819){_0x3cc444(_0x5d7819);}),_0x35bf78[_0x57a80a(0x122a)]=[];});}function _0x129de7(){const _0x2725f3=_0x5d3576;_0x35bf78[_0x2725f3(0x122a)]=[];}function _0x2ea6e1(){const _0x109f4e=_0x5d3576;_0x35bf78[_0x109f4e(0x122a)]=_0x35bf78[_0x109f4e(0xdf2)]['rows'];}let _0x222aed=!![],_0x100168=0x1;_0x1ab3c7['$watch'](_0x5d3576(0xeb6),function(_0x30bf33,_0x5ccac3){const _0x22103c=_0x5d3576;_0x222aed?_0x54aa61(function(){_0x222aed=![];}):(!_0x5ccac3&&(_0x100168=_0x35bf78['query'][_0x22103c(0x1c7b)]),_0x30bf33!==_0x5ccac3&&(_0x35bf78[_0x22103c(0xae2)]['page']=0x1),!_0x30bf33&&(_0x35bf78[_0x22103c(0xae2)][_0x22103c(0x1c7b)]=_0x100168),_0x1f2309());});}const _0x44a904=_0x291b2b;;const _0x80183=_0x5074a3['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/agentadd/agentadd.html/agentadd.html';;_0x3637e6['$inject']=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$document','$translate','license',_0x5537c6(0x9ca),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x658),_0x5537c6(0x2199)];function _0x3637e6(_0x3c6273,_0x11c233,_0x55911b,_0x4a0c10,_0x4f807c,_0x139de4,_0x4589e1,_0x1533f3,_0x4adfd1,_0x5cc354,_0x1c06a5,_0x4cbd14){const _0x5ec2c2=_0x5537c6,_0x7deaf5=this;_0x7deaf5[_0x5ec2c2(0xe76)]=_0x5cc354[_0x5ec2c2(0x21e8)](),_0x7deaf5[_0x5ec2c2(0x8a5)]=_0x139de4,_0x7deaf5[_0x5ec2c2(0x9ca)]=_0x4589e1,_0x7deaf5[_0x5ec2c2(0x1b0c)]=_0x7deaf5[_0x5ec2c2(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x7deaf5[_0x5ec2c2(0x2404)]=_0x11c233[_0x5ec2c2(0x2276)]()+_0x5ec2c2(0x138b)+_0x11c233[_0x5ec2c2(0x17d8)](),_0x7deaf5['smsAccount']=_0x1c06a5||_0x3c6273[_0x5ec2c2(0x1dfe)][_0x5ec2c2(0x658)]||{},_0x7deaf5[_0x5ec2c2(0x2199)]=_0x4cbd14&&_0x4cbd14['count']==0x1?_0x4cbd14[_0x5ec2c2(0x2214)][0x0]:null,_0x7deaf5['crudPermissions']=_0x5cc354['parseCrudPermissions'](_0x7deaf5[_0x5ec2c2(0x2199)]?_0x7deaf5['userProfileSection'][_0x5ec2c2(0x1b1a)]:null),_0x7deaf5['hasModulePermissions']={},_0x7deaf5[_0x5ec2c2(0x8ec)]=_0x3c6273['params'][_0x5ec2c2(0x291e)]||0x0,_0x7deaf5['agentadddialog']=_0x4fe76e,_0x7deaf5['alert']=_0x4adfd1[_0x5ec2c2(0x28c7)],_0x7deaf5['gotoSmsAccounts']=_0x244dad,_0x7deaf5[_0x5ec2c2(0xb75)]=_0x4fddf5,_0x5cc354[_0x5ec2c2(0x22b6)](_0x5ec2c2(0x1c60))?_0x1533f3['cmList'][_0x5ec2c2(0xbf7)]({'fields':'id,name','sort':_0x5ec2c2(0x16b6)})[_0x5ec2c2(0x1d77)][_0x5ec2c2(0x1cb0)](function(_0x3b0771){const _0x559ad2=_0x5ec2c2;_0x7deaf5[_0x559ad2(0x1046)]=_0x3b0771['rows']||[];})[_0x5ec2c2(0x1c4)](function(_0x5e93e6){const _0x250d9a=_0x5ec2c2;_0x4adfd1['error']({'title':_0x5e93e6['status']?'API:'+_0x5e93e6[_0x250d9a(0x291)]+_0x250d9a(0x1657)+_0x5e93e6[_0x250d9a(0xc22)]:_0x250d9a(0x149e),'msg':_0x5e93e6[_0x250d9a(0x25c)]?JSON['stringify'](_0x5e93e6['data']):_0x5e93e6[_0x250d9a(0x147f)]()});}):_0x1533f3[_0x5ec2c2(0x22f2)]['get']({'fields':'id,name','sort':'name'})[_0x5ec2c2(0x1d77)]['then'](function(_0x1113bd){const _0x36ac03=_0x5ec2c2;_0x7deaf5[_0x36ac03(0x1046)]=_0x1113bd[_0x36ac03(0x2214)]||[];})['then'](function(){const _0x3fb3e2=_0x5ec2c2;return _0x1533f3[_0x3fb3e2(0x2199)][_0x3fb3e2(0xbf7)]({'userProfileId':_0x7deaf5[_0x3fb3e2(0xe76)][_0x3fb3e2(0x13c1)],'sectionId':0x12d})['$promise'];})[_0x5ec2c2(0x1cb0)](function(_0x1f8e47){const _0x201539=_0x5ec2c2,_0x34a87c=_0x1f8e47&&_0x1f8e47[_0x201539(0x2214)]?_0x1f8e47[_0x201539(0x2214)][0x0]:null;if(!_0x34a87c){const _0x5809bc=[];let _0x327098=null;_0x7deaf5[_0x201539(0x658)]&&(_0x327098=_0x39641b()[_0x201539(0x13b4)](_0x7deaf5[_0x201539(0x1046)],{'id':Number(_0x7deaf5[_0x201539(0x658)][_0x201539(0x20a6)])}));for(let _0x4f9c9c=0x0;_0x4f9c9c<_0x7deaf5[_0x201539(0x1046)][_0x201539(0xfd0)];_0x4f9c9c++){_0x327098&&_0x7deaf5[_0x201539(0x1046)][_0x4f9c9c]['id']===_0x327098['id']&&(_0x7deaf5[_0x201539(0x1046)][_0x4f9c9c][_0x201539(0x15da)]=![],_0x5809bc[_0x201539(0x2785)](_0x7deaf5[_0x201539(0x1046)][_0x4f9c9c]));}_0x7deaf5[_0x201539(0x1046)]=_0x5809bc;}else{if(!_0x34a87c[_0x201539(0x12f4)])return _0x1533f3[_0x201539(0x1198)][_0x201539(0xbf7)]({'sectionId':_0x34a87c['id']})[_0x201539(0x1d77)][_0x201539(0x1cb0)](function(_0x23e1ed){const _0xc6eceb=_0x201539,_0x576775=_0x39641b()[_0xc6eceb(0x1de2)](_0x23e1ed[_0xc6eceb(0x2214)],function(_0x1bf566){const _0x1c7718=_0xc6eceb;return _0x39641b()[_0x1c7718(0x13b4)](_0x7deaf5[_0x1c7718(0x1046)],{'id':_0x1bf566['resourceId']});});let _0x4f1bda=null;_0x7deaf5[_0xc6eceb(0x658)]&&(_0x4f1bda=_0x39641b()['find'](_0x7deaf5[_0xc6eceb(0x1046)],{'id':Number(_0x7deaf5[_0xc6eceb(0x658)]['ListId'])}));if(_0x4f1bda&&!_0x39641b()[_0xc6eceb(0x727)](_0x576775,['id',_0x4f1bda['id']])){const _0x3b9603=_0x39641b()[_0xc6eceb(0x13b4)](_0x7deaf5['lists'],{'id':_0x4f1bda['id']});_0x3b9603[_0xc6eceb(0x15da)]=![],_0x576775[_0xc6eceb(0x2785)](_0x3b9603);}_0x7deaf5[_0xc6eceb(0x1046)]=_0x576775;});}})[_0x5ec2c2(0x1c4)](function(_0x3ac276){const _0x4da969=_0x5ec2c2;_0x4adfd1[_0x4da969(0x218e)]({'title':_0x3ac276[_0x4da969(0x291)]?_0x4da969(0xeb9)+_0x3ac276[_0x4da969(0x291)]+_0x4da969(0x1657)+_0x3ac276['statusText']:_0x4da969(0x113c),'msg':_0x3ac276[_0x4da969(0x25c)]?JSON[_0x4da969(0x2701)](_0x3ac276[_0x4da969(0x25c)]):_0x3ac276[_0x4da969(0x147f)]()});}),_0x5cc354[_0x5ec2c2(0x22b6)](_0x5ec2c2(0x1c60))?_0x1533f3[_0x5ec2c2(0x785)][_0x5ec2c2(0xbf7)]({'fields':_0x5ec2c2(0x791),'sort':_0x5ec2c2(0x16b6),'nolimit':_0x5ec2c2(0x44d)})[_0x5ec2c2(0x1d77)][_0x5ec2c2(0x1cb0)](function(_0x6816b8){const _0x2d2c9c=_0x5ec2c2;_0x7deaf5[_0x2d2c9c(0x8de)]=_0x6816b8[_0x2d2c9c(0x2214)]||[];})[_0x5ec2c2(0x1c4)](function(_0x252287){const _0xe08280=_0x5ec2c2;_0x4adfd1[_0xe08280(0x218e)]({'title':_0x252287['status']?'API:'+_0x252287[_0xe08280(0x291)]+'\x20-\x20'+_0x252287[_0xe08280(0xc22)]:_0xe08280(0x1589),'msg':_0x252287[_0xe08280(0x25c)]?JSON[_0xe08280(0x2701)](_0x252287[_0xe08280(0x25c)]):_0x252287['toString']()});}):_0x1533f3[_0x5ec2c2(0x785)][_0x5ec2c2(0xbf7)]({'fields':_0x5ec2c2(0x791),'sort':_0x5ec2c2(0x16b6),'nolimit':_0x5ec2c2(0x44d)})['$promise'][_0x5ec2c2(0x1cb0)](function(_0x2f359b){const _0x2788b9=_0x5ec2c2;_0x7deaf5[_0x2788b9(0x8de)]=_0x2f359b[_0x2788b9(0x2214)]||[];})[_0x5ec2c2(0x1cb0)](function(){const _0x9b4a12=_0x5ec2c2;return _0x1533f3[_0x9b4a12(0x2199)][_0x9b4a12(0xbf7)]({'userProfileId':_0x7deaf5[_0x9b4a12(0xe76)]['userProfileId'],'sectionId':0x3ed})[_0x9b4a12(0x1d77)];})['then'](function(_0x4fbe9b){const _0x2d6d82=_0x5ec2c2,_0x595d33=_0x4fbe9b&&_0x4fbe9b[_0x2d6d82(0x2214)]?_0x4fbe9b['rows'][0x0]:null;if(!_0x595d33)_0x7deaf5['pauses']=[];else{if(!_0x595d33['autoAssociation'])return _0x1533f3[_0x2d6d82(0x1198)][_0x2d6d82(0xbf7)]({'sectionId':_0x595d33['id']})[_0x2d6d82(0x1d77)]['then'](function(_0x5c7849){const _0x182684=_0x2d6d82,_0x5d892b=_0x39641b()[_0x182684(0x1de2)](_0x5c7849['rows'],function(_0xc5ad59){const _0x36a099=_0x182684;return _0x39641b()[_0x36a099(0x13b4)](_0x7deaf5[_0x36a099(0x8de)],{'id':_0xc5ad59['resourceId']});});_0x7deaf5[_0x182684(0x8de)][_0x182684(0xf90)](function(_0x31b9a9){const _0x1277ac=_0x182684;!_0x39641b()[_0x1277ac(0x727)](_0x5d892b,['id',_0x31b9a9['id']])&&(_0x31b9a9[_0x1277ac(0x15da)]=![]),_0x5d892b['push'](_0x31b9a9);}),_0x7deaf5['pauses']=_0x5d892b;});}})['catch'](function(_0x11feaa){const _0x32f6e8=_0x5ec2c2;_0x4adfd1[_0x32f6e8(0x218e)]({'title':_0x11feaa[_0x32f6e8(0x291)]?_0x32f6e8(0xeb9)+_0x11feaa['status']+'\x20-\x20'+_0x11feaa[_0x32f6e8(0xc22)]:_0x32f6e8(0x162),'msg':_0x11feaa[_0x32f6e8(0x25c)]?JSON[_0x32f6e8(0x2701)](_0x11feaa[_0x32f6e8(0x25c)]):_0x11feaa['toString']()});});function _0x4fe76e(_0x4597ae,_0x3fb052){const _0x4443f0=_0x5ec2c2;_0x55911b[_0x4443f0(0xe27)]({'controller':_0x4443f0(0x17ab),'controllerAs':'vm','templateUrl':_0x80183,'parent':angular[_0x4443f0(0x1853)](_0x4a0c10['body']),'targetEvent':_0x3fb052,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x4597ae,'smsAccounts':_0x7deaf5[_0x4443f0(0x1ac)]?_0x7deaf5['smsAccounts'][_0x4443f0(0x2214)]:[],'crudPermissions':_0x7deaf5[_0x4443f0(0x1b1a)],'realtime':![]}});}function _0x244dad(){const _0xd2fe0e=_0x5ec2c2;_0x3c6273['go']('app.sms.smsAccounts',{},{'reload':_0xd2fe0e(0xa9f)});}function _0x4fddf5(){const _0x441f7f=_0x5ec2c2;_0x1533f3[_0x441f7f(0x658)][_0x441f7f(0x687)]({'id':_0x7deaf5[_0x441f7f(0x658)]['id']},_0x7deaf5[_0x441f7f(0x658)])[_0x441f7f(0x1d77)]['then'](function(){const _0x333c03=_0x441f7f;_0x4adfd1[_0x333c03(0x829)]({'title':'SmsAccount\x20updated!','msg':_0x7deaf5[_0x333c03(0x658)][_0x333c03(0x16b6)]?_0x7deaf5[_0x333c03(0x658)]['name']+'\x20has\x20been\x20updated!':''});})[_0x441f7f(0x1c4)](function(_0x508eb4){const _0x48b4bd=_0x441f7f;_0x4adfd1['error']({'title':_0x508eb4[_0x48b4bd(0x291)]?_0x48b4bd(0xeb9)+_0x508eb4[_0x48b4bd(0x291)]+_0x48b4bd(0x1657)+_0x508eb4[_0x48b4bd(0xc22)]:_0x48b4bd(0x279a),'msg':_0x508eb4[_0x48b4bd(0x25c)]?JSON[_0x48b4bd(0x2701)](_0x508eb4[_0x48b4bd(0x25c)]):_0x508eb4[_0x48b4bd(0x147f)]()});});}}const _0x45c858=_0x3637e6;;const _0x95eef5=_0x5074a3['p']+'src/js/modules/main/apps/sms/views/smsAccounts/create/dialog.html/dialog.html';;_0x1c9788[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$window','$state','$mdSidenav',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x1ac),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),'msUtils',_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x1c9788(_0x45e9fa,_0xa072ff,_0x106a7a,_0x5942c8,_0x330a3e,_0xa073b7,_0x148150,_0x5a4791,_0x57aeb4,_0x375335,_0x1327bd,_0x9431e2,_0x221595,_0xf40c57,_0x5b21bc,_0x426f45,_0xa8047e){const _0x3f3359=_0x5537c6,_0x5ccc17=this;_0x5ccc17['license']=_0x426f45,_0x5ccc17[_0x3f3359(0x9ca)]=_0xa8047e,_0x5ccc17['currentUser']=_0x5b21bc[_0x3f3359(0x21e8)](),_0x5ccc17[_0x3f3359(0x1ac)]=_0x57aeb4||{'count':0x0,'rows':[]},_0x5ccc17[_0x3f3359(0x44a)]=_0x375335,_0x5ccc17[_0x3f3359(0x2199)]=_0x1327bd&&_0x1327bd[_0x3f3359(0x184d)]==0x1?_0x1327bd[_0x3f3359(0x2214)][0x0]:null,_0x5ccc17['crudPermissions']=_0x5b21bc['parseCrudPermissions'](_0x5ccc17[_0x3f3359(0x2199)]?_0x5ccc17[_0x3f3359(0x2199)][_0x3f3359(0x1b1a)]:null),_0x5ccc17[_0x3f3359(0xc83)]=_0x3f3359(0x1ac),_0x5ccc17[_0x3f3359(0x1d20)]='',_0x5ccc17[_0x3f3359(0x1cdf)]=null,_0x5ccc17['selectedSmsAccounts']=[],_0x5ccc17[_0x3f3359(0xae2)]={'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':_0x3f3359(0x282),'limit':0xa,'page':0x1},_0x5ccc17['arraytype']=_0x39641b()[_0x3f3359(0x2631)]([{'option':_0x3f3359(0xb8b),'value':_0x3f3359(0x17d1)},{'option':_0x3f3359(0x6ec),'value':_0x3f3359(0x11e2)},{'option':'Connectel','value':_0x3f3359(0x202)},{'option':'ClickSend','value':_0x3f3359(0x131a)},{'option':_0x3f3359(0x565),'value':'\x27plivo\x27'},{'option':_0x3f3359(0xbb6),'value':'\x27infobip\x27'},{'option':_0x3f3359(0x90e),'value':_0x3f3359(0x8ed)},{'option':_0x3f3359(0x156d),'value':'\x27csc\x27'},{'option':_0x3f3359(0x5e6),'value':'\x27intelepeer\x27'}],function(_0x1e3f9a){const _0x5aa055=_0x3f3359;return _0x39641b()[_0x5aa055(0x288f)](_0x1e3f9a[_0x5aa055(0x327)],new RegExp('\x27','g'),'');}),_0x5ccc17[_0x3f3359(0x806)]=_0x39641b()['keyBy']([{'option':_0x3f3359(0x25b),'value':_0x3f3359(0x17db)},{'option':'Classic','value':_0x3f3359(0x5dd)},{'option':_0x3f3359(0x1f5),'value':_0x3f3359(0xed5)}],function(_0x1eefc8){const _0xcbdbdb=_0x3f3359;return _0x39641b()['replace'](_0x1eefc8[_0xcbdbdb(0x327)],new RegExp('\x27','g'),'');}),_0x5ccc17[_0x3f3359(0x235d)]=_0x2189cb,_0x5ccc17[_0x3f3359(0x1552)]=_0x30a310,_0x5ccc17[_0x3f3359(0x1379)]=_0x4d49a8,_0x5ccc17[_0x3f3359(0x27fe)]=_0x5503cf,_0x5ccc17[_0x3f3359(0x829)]=_0x47ea05,_0x5ccc17[_0x3f3359(0x856)]=_0x2f023f,_0x5ccc17[_0x3f3359(0x1a8a)]=_0x470b85,_0x5ccc17['deleteSmsAccount']=_0x522fc7,_0x5ccc17[_0x3f3359(0x249b)]=_0xb312f1,_0x5ccc17[_0x3f3359(0x56c)]=_0x1fbad0,_0x5ccc17[_0x3f3359(0x20b2)]=_0x1c7a81,_0x5ccc17[_0x3f3359(0x2819)]=_0x2f13f1,_0x5b21bc['hasRole'](_0x3f3359(0x1c60))?_0x9431e2[_0x3f3359(0x22f2)]['get']({'fields':_0x3f3359(0x43c),'sort':'name'})[_0x3f3359(0x1d77)][_0x3f3359(0x1cb0)](function(_0x29e0c3){const _0x243b63=_0x3f3359;_0x5ccc17[_0x243b63(0x1046)]=_0x29e0c3[_0x243b63(0x2214)]||[];})['catch'](function(_0x3f8f1b){const _0x3c4d78=_0x3f3359;_0xf40c57['error']({'title':_0x3f8f1b[_0x3c4d78(0x291)]?'API:'+_0x3f8f1b['status']+_0x3c4d78(0x1657)+_0x3f8f1b['statusText']:_0x3c4d78(0x149e),'msg':_0x3f8f1b['data']?JSON[_0x3c4d78(0x2701)](_0x3f8f1b[_0x3c4d78(0x25c)]):_0x3f8f1b[_0x3c4d78(0x147f)]()});}):_0x9431e2[_0x3f3359(0x22f2)][_0x3f3359(0xbf7)]({'fields':_0x3f3359(0x43c),'sort':_0x3f3359(0x16b6)})['$promise'][_0x3f3359(0x1cb0)](function(_0x3961dd){_0x5ccc17['lists']=_0x3961dd['rows']||[];})[_0x3f3359(0x1cb0)](function(){const _0x349a66=_0x3f3359;return _0x9431e2[_0x349a66(0x2199)][_0x349a66(0xbf7)]({'userProfileId':_0x5ccc17['currentUser'][_0x349a66(0x13c1)],'sectionId':0x12d})[_0x349a66(0x1d77)];})[_0x3f3359(0x1cb0)](function(_0x1ba49f){const _0x51e7d5=_0x3f3359,_0x373160=_0x1ba49f&&_0x1ba49f[_0x51e7d5(0x2214)]?_0x1ba49f['rows'][0x0]:null;if(!_0x373160){const _0x4cd7d6=[];let _0x2a7ec0=null;_0x5ccc17[_0x51e7d5(0x658)]&&(_0x2a7ec0=_0x39641b()[_0x51e7d5(0x13b4)](_0x5ccc17['lists'],{'id':Number(_0x5ccc17[_0x51e7d5(0x658)][_0x51e7d5(0x20a6)])}));for(let _0x49200d=0x0;_0x49200d<_0x5ccc17[_0x51e7d5(0x1046)][_0x51e7d5(0xfd0)];_0x49200d++){_0x2a7ec0&&_0x5ccc17[_0x51e7d5(0x1046)][_0x49200d]['id']===_0x2a7ec0['id']&&(_0x5ccc17[_0x51e7d5(0x1046)][_0x49200d]['canSelect']=![],_0x4cd7d6[_0x51e7d5(0x2785)](_0x5ccc17[_0x51e7d5(0x1046)][_0x49200d]));}_0x5ccc17['lists']=_0x4cd7d6;}else{if(!_0x373160['autoAssociation'])return _0x9431e2['userProfileResource'][_0x51e7d5(0xbf7)]({'sectionId':_0x373160['id']})[_0x51e7d5(0x1d77)][_0x51e7d5(0x1cb0)](function(_0x554b5c){const _0x46bb20=_0x51e7d5,_0xc69ee3=_0x39641b()[_0x46bb20(0x1de2)](_0x554b5c[_0x46bb20(0x2214)],function(_0x25fac8){const _0x4b8de9=_0x46bb20;return _0x39641b()['find'](_0x5ccc17[_0x4b8de9(0x1046)],{'id':_0x25fac8['resourceId']});});let _0x5ee469=null;_0x5ccc17[_0x46bb20(0x658)]&&(_0x5ee469=_0x39641b()[_0x46bb20(0x13b4)](_0x5ccc17[_0x46bb20(0x1046)],{'id':Number(_0x5ccc17[_0x46bb20(0x658)][_0x46bb20(0x20a6)])}));if(_0x5ee469&&!_0x39641b()['some'](_0xc69ee3,['id',_0x5ee469['id']])){const _0x2a8562=_0x39641b()[_0x46bb20(0x13b4)](_0x5ccc17[_0x46bb20(0x1046)],{'id':_0x5ee469['id']});_0x2a8562[_0x46bb20(0x15da)]=![],_0xc69ee3[_0x46bb20(0x2785)](_0x2a8562);}_0x5ccc17[_0x46bb20(0x1046)]=_0xc69ee3;});}})[_0x3f3359(0x1c4)](function(_0x2e0d71){const _0xf1b8ea=_0x3f3359;_0xf40c57[_0xf1b8ea(0x218e)]({'title':_0x2e0d71[_0xf1b8ea(0x291)]?_0xf1b8ea(0xeb9)+_0x2e0d71[_0xf1b8ea(0x291)]+_0xf1b8ea(0x1657)+_0x2e0d71[_0xf1b8ea(0xc22)]:_0xf1b8ea(0x113c),'msg':_0x2e0d71[_0xf1b8ea(0x25c)]?JSON[_0xf1b8ea(0x2701)](_0x2e0d71[_0xf1b8ea(0x25c)]):_0x2e0d71[_0xf1b8ea(0x147f)]()});});function _0x2189cb(_0x3a58db){const _0x294e32=_0x3f3359;_0x106a7a['go'](_0x294e32(0x280b),{'id':_0x3a58db['id'],'smsAccount':_0x3a58db,'crudPermissions':_0x5ccc17['crudPermissions']});}function _0x30a310(_0x2e16bb){const _0xa1e24a=_0x3f3359;_0x106a7a['go'](_0xa1e24a(0x280b),{'id':_0x2e16bb['id'],'tab':0x5});}function _0x4d49a8(_0x442ad5,_0x58b42f){const _0x336a54=_0x3f3359;_0x330a3e['show']({'controller':_0x336a54(0x17ab),'controllerAs':'vm','templateUrl':_0x80183,'parent':angular['element'](_0xa073b7[_0x336a54(0x1ed9)]),'targetEvent':_0x58b42f,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x442ad5,'smsAccounts':_0x5ccc17[_0x336a54(0x1ac)]?_0x5ccc17[_0x336a54(0x1ac)]['rows']:[],'crudPermissions':_0x5ccc17['crudPermissions'],'realtime':![]}});}function _0x5503cf(_0x1adaec,_0x459fd5){const _0x21fc1b=_0x3f3359,_0x475398=_0x330a3e[_0x21fc1b(0x1551)]()['title'](_0x21fc1b(0x140b)+_0x39641b()[_0x21fc1b(0xa75)](_0x21fc1b(0x658))+'?')[_0x21fc1b(0x49e)](_0x21fc1b(0x204d)+(_0x1adaec['name']||'smsAccount')+''+_0x21fc1b(0x1b6))[_0x21fc1b(0x15ad)](_0x21fc1b(0xaf9))['targetEvent'](_0x459fd5)['ok']('OK')[_0x21fc1b(0x696)]('CANCEL');_0x330a3e[_0x21fc1b(0xe27)](_0x475398)[_0x21fc1b(0x1cb0)](function(){_0x522fc7(_0x1adaec);},function(){console['log']('CANCEL');});}let _0x2f22df=!![],_0x10e9c6=0x1;_0x45e9fa[_0x3f3359(0x614)](_0x3f3359(0x957),function(_0x2640b3,_0x2f9774){const _0x2dedb1=_0x3f3359;_0x2f22df?_0x148150(function(){_0x2f22df=![];}):(!_0x2f9774&&(_0x10e9c6=_0x5ccc17[_0x2dedb1(0xae2)]['page']),_0x2640b3!==_0x2f9774&&(_0x5ccc17[_0x2dedb1(0xae2)][_0x2dedb1(0x1c7b)]=0x1),!_0x2640b3&&(_0x5ccc17[_0x2dedb1(0xae2)][_0x2dedb1(0x1c7b)]=_0x10e9c6),_0x5ccc17[_0x2dedb1(0x856)]());});function _0x47ea05(_0x116fc6){const _0xfedace=_0x3f3359;_0x5ccc17[_0xfedace(0x1ac)]=_0x116fc6||{'count':0x0,'rows':[]};}function _0x2f023f(){const _0x5b6413=_0x3f3359;_0x5ccc17['query']['offset']=(_0x5ccc17[_0x5b6413(0xae2)][_0x5b6413(0x1c7b)]-0x1)*_0x5ccc17[_0x5b6413(0xae2)][_0x5b6413(0x236)],_0x5b21bc['hasRole'](_0x5b6413(0x1c60))?_0x5ccc17['promise']=_0x9431e2[_0x5b6413(0x658)][_0x5b6413(0xbf7)](_0x5ccc17[_0x5b6413(0xae2)],_0x47ea05)['$promise']:(_0x5ccc17[_0x5b6413(0xae2)]['id']=_0x5ccc17[_0x5b6413(0x44a)]['id'],_0x5ccc17['query']['section']=_0x5b6413(0x1b3f),_0x5ccc17[_0x5b6413(0x2061)]=_0x9431e2[_0x5b6413(0x44a)]['getResources'](_0x5ccc17[_0x5b6413(0xae2)],_0x47ea05)[_0x5b6413(0x1d77)]);}function _0x470b85(_0x6b9485,_0x47f6f0){const _0x16d836=_0x3f3359;_0x330a3e[_0x16d836(0xe27)]({'controller':_0x16d836(0x681),'controllerAs':'vm','templateUrl':_0x95eef5,'parent':angular[_0x16d836(0x1853)](_0xa073b7['body']),'targetEvent':_0x6b9485,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x47f6f0,'smsAccounts':_0x5ccc17[_0x16d836(0x1ac)][_0x16d836(0x2214)],'license':_0x5ccc17['license'],'setting':_0x5ccc17[_0x16d836(0x9ca)],'crudPermissions':_0x5ccc17['crudPermissions']}});}function _0x522fc7(_0x11eab4){const _0x466a9e=_0x3f3359;_0x9431e2[_0x466a9e(0x658)][_0x466a9e(0x111d)]({'id':_0x11eab4['id']})[_0x466a9e(0x1d77)][_0x466a9e(0x1cb0)](function(){const _0x575190=_0x466a9e;_0x39641b()[_0x575190(0x152a)](_0x5ccc17[_0x575190(0x1ac)][_0x575190(0x2214)],{'id':_0x11eab4['id']}),_0x5ccc17[_0x575190(0x1ac)][_0x575190(0x184d)]-=0x1,!_0x5ccc17[_0x575190(0x1ac)]['rows'][_0x575190(0xfd0)]&&_0x5ccc17[_0x575190(0x856)](),_0xf40c57['success']({'title':_0x39641b()[_0x575190(0xa75)](_0x575190(0xa1f))+_0x575190(0x2663),'msg':_0x11eab4[_0x575190(0x16b6)]?_0x11eab4['name']+_0x575190(0x3f5):''});})['catch'](function(_0x1c7b06){const _0xac4ee1=_0x466a9e;if(_0x1c7b06['data']&&_0x1c7b06[_0xac4ee1(0x25c)][_0xac4ee1(0x1a7c)]&&_0x1c7b06[_0xac4ee1(0x25c)][_0xac4ee1(0x1a7c)][_0xac4ee1(0xfd0)]){_0x5ccc17['errors']=_0x1c7b06[_0xac4ee1(0x25c)][_0xac4ee1(0x1a7c)]||[{'message':_0x1c7b06[_0xac4ee1(0x147f)](),'type':_0xac4ee1(0xff4)}];for(let _0x4f86cb=0x0;_0x4f86cb<_0x1c7b06[_0xac4ee1(0x25c)]['errors']['length'];_0x4f86cb++){_0xf40c57[_0xac4ee1(0x218e)]({'title':_0x1c7b06[_0xac4ee1(0x25c)][_0xac4ee1(0x1a7c)][_0x4f86cb][_0xac4ee1(0x66a)],'msg':_0x1c7b06[_0xac4ee1(0x25c)][_0xac4ee1(0x1a7c)][_0x4f86cb][_0xac4ee1(0x155e)]});}}else _0xf40c57[_0xac4ee1(0x218e)]({'title':_0x1c7b06['status']?_0xac4ee1(0xeb9)+_0x1c7b06[_0xac4ee1(0x291)]+_0xac4ee1(0x1657)+_0x1c7b06['statusText']:_0xac4ee1(0xff4),'msg':_0x1c7b06[_0xac4ee1(0x25c)]?JSON[_0xac4ee1(0x2701)](_0x1c7b06[_0xac4ee1(0x25c)][_0xac4ee1(0x155e)]):_0x1c7b06[_0xac4ee1(0x155e)]||_0x1c7b06[_0xac4ee1(0x147f)]()});});}function _0xb312f1(){const _0x77681a=_0x3f3359,_0x34e80a=angular[_0x77681a(0x17fe)](_0x5ccc17[_0x77681a(0x52b)]);return _0x5ccc17[_0x77681a(0x52b)]=[],_0x34e80a;}function _0x1fbad0(_0x23febd){const _0x498fc1=_0x3f3359,_0x2a83bb=_0x330a3e[_0x498fc1(0x1551)]()[_0x498fc1(0x1386)](_0x498fc1(0x408))[_0x498fc1(0x49e)](''+_0x5ccc17[_0x498fc1(0x52b)][_0x498fc1(0xfd0)]+_0x498fc1(0x1d6c)+_0x498fc1(0x1b6))['ariaLabel'](_0x498fc1(0x13bf))[_0x498fc1(0x728)](_0x23febd)['ok']('OK')[_0x498fc1(0x696)](_0x498fc1(0x24ba));_0x330a3e[_0x498fc1(0xe27)](_0x2a83bb)[_0x498fc1(0x1cb0)](function(){const _0x3b1985=_0x498fc1;_0x5ccc17['selectedSmsAccounts'][_0x3b1985(0xf90)](function(_0x24cb95){_0x522fc7(_0x24cb95);}),_0x5ccc17['selectedSmsAccounts']=[];});}function _0x1c7a81(){_0x5ccc17['selectedSmsAccounts']=[];}function _0x2f13f1(){const _0x39c4e1=_0x3f3359;_0x5ccc17[_0x39c4e1(0x52b)]=_0x5ccc17[_0x39c4e1(0x1ac)][_0x39c4e1(0x2214)];}}const _0x25aa55=_0x1c9788;;_0x59c2e8[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog','$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x1863),'smsQueue','api',_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x59c2e8(_0x344945,_0x17d0ea,_0x1eebd3,_0x16e2ed,_0x4dba52,_0x55ff01,_0x53ae91,_0x3d586f,_0xb07e8,_0x2ab15b,_0x35e3d9,_0x26905a,_0x3c9d71,_0x1d97f5){const _0x4c062b=_0x5537c6,_0x1f584e=this;_0x1f584e[_0x4c062b(0xe76)]=_0x35e3d9[_0x4c062b(0x21e8)](),_0x1f584e[_0x4c062b(0x1a7c)]=[],_0x1f584e[_0x4c062b(0x9ca)]=_0x3c9d71,_0x1f584e['license']=_0x26905a,_0x1f584e['crudPermissions']=_0x1d97f5,_0x1f584e[_0x4c062b(0xf4c)]={},_0x1f584e['passwordPattern']=_0x1f584e[_0x4c062b(0x9ca)]&&_0x1f584e[_0x4c062b(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1f584e[_0x4c062b(0x1386)]='SMS.EDIT_SMSQUEUE',_0x1f584e[_0x4c062b(0x62e)]=angular[_0x4c062b(0x17fe)](_0xb07e8),_0x1f584e['smsQueues']=_0x3d586f,_0x1f584e[_0x4c062b(0x364)]=![];!_0x1f584e[_0x4c062b(0x62e)]&&(_0x1f584e[_0x4c062b(0x62e)]={'strategy':'beepall','timeout':0xa},_0x1f584e['title']=_0x4c062b(0x220e),_0x1f584e[_0x4c062b(0x364)]=!![]);_0x1f584e[_0x4c062b(0x50d)]=_0x44e433,_0x1f584e[_0x4c062b(0xa77)]=_0x5e64d2,_0x1f584e[_0x4c062b(0x286d)]=_0x563f46,_0x1f584e['getDateFromString']=_0x429664,_0x1f584e['closeDialog']=_0x2a11c9;function _0x44e433(){const _0x578ab7=_0x4c062b;_0x1f584e[_0x578ab7(0x1a7c)]=[],_0x2ab15b[_0x578ab7(0x62e)][_0x578ab7(0x1c3f)](_0x1f584e[_0x578ab7(0x62e)])[_0x578ab7(0x1d77)][_0x578ab7(0x1cb0)](function(_0x54d3c5){const _0x358f9f=_0x578ab7;_0x1f584e['smsQueues'][_0x358f9f(0xf63)](_0x54d3c5[_0x358f9f(0x19b2)]()),_0x53ae91[_0x358f9f(0x829)]({'title':_0x358f9f(0x1486),'msg':_0x1f584e[_0x358f9f(0x62e)][_0x358f9f(0x16b6)]?_0x1f584e[_0x358f9f(0x62e)][_0x358f9f(0x16b6)]+_0x358f9f(0x470):''}),_0x2a11c9(_0x54d3c5);})[_0x578ab7(0x1c4)](function(_0x2f9ad8){const _0x5d69b0=_0x578ab7;if(_0x2f9ad8[_0x5d69b0(0x25c)]&&_0x2f9ad8[_0x5d69b0(0x25c)]['errors']&&_0x2f9ad8['data']['errors'][_0x5d69b0(0xfd0)]){_0x1f584e['errors']=_0x2f9ad8[_0x5d69b0(0x25c)][_0x5d69b0(0x1a7c)]||[{'message':_0x2f9ad8[_0x5d69b0(0x147f)](),'type':_0x5d69b0(0x1ec8)}];for(let _0x42b4ba=0x0;_0x42b4ba<_0x2f9ad8[_0x5d69b0(0x25c)]['errors'][_0x5d69b0(0xfd0)];_0x42b4ba+=0x1){_0x53ae91[_0x5d69b0(0x218e)]({'title':_0x2f9ad8[_0x5d69b0(0x25c)][_0x5d69b0(0x1a7c)][_0x42b4ba][_0x5d69b0(0x66a)],'msg':_0x2f9ad8[_0x5d69b0(0x25c)][_0x5d69b0(0x1a7c)][_0x42b4ba][_0x5d69b0(0x155e)]});}}else _0x53ae91['error']({'title':_0x2f9ad8[_0x5d69b0(0x291)]?_0x5d69b0(0xeb9)+_0x2f9ad8[_0x5d69b0(0x291)]+_0x5d69b0(0x1657)+_0x2f9ad8[_0x5d69b0(0xc22)]:'api.smsQueue.save','msg':_0x2f9ad8[_0x5d69b0(0x25c)]?JSON[_0x5d69b0(0x2701)](_0x2f9ad8[_0x5d69b0(0x25c)][_0x5d69b0(0x155e)]):_0x2f9ad8[_0x5d69b0(0x147f)]()});});}function _0x5e64d2(){const _0x3ccebb=_0x4c062b;_0x1f584e['errors']=[],_0x2ab15b['smsQueue'][_0x3ccebb(0x687)]({'id':_0x1f584e[_0x3ccebb(0x62e)]['id']},_0x1f584e['smsQueue'])[_0x3ccebb(0x1d77)][_0x3ccebb(0x1cb0)](function(_0x57c9a9){const _0x390c02=_0x3ccebb,_0x12276f=_0x39641b()[_0x390c02(0x13b4)](_0x1f584e[_0x390c02(0x1863)],{'id':_0x57c9a9['id']});_0x12276f&&_0x39641b()[_0x390c02(0x9c1)](_0x12276f,_0x39641b()[_0x390c02(0x169b)](_0x57c9a9['toJSON'](),_0x39641b()['keys'](_0x12276f))),_0x53ae91[_0x390c02(0x829)]({'title':_0x390c02(0x27be),'msg':_0x1f584e['smsQueue'][_0x390c02(0x16b6)]?_0x1f584e['smsQueue'][_0x390c02(0x16b6)]+_0x390c02(0xedb):''}),_0x2a11c9(_0x57c9a9);})['catch'](function(_0x250b94){const _0x368ce7=_0x3ccebb;if(_0x250b94[_0x368ce7(0x25c)]&&_0x250b94[_0x368ce7(0x25c)][_0x368ce7(0x1a7c)]&&_0x250b94[_0x368ce7(0x25c)][_0x368ce7(0x1a7c)]['length']){_0x1f584e[_0x368ce7(0x1a7c)]=_0x250b94[_0x368ce7(0x25c)]['errors']||[{'message':_0x250b94['toString'](),'type':_0x368ce7(0x1bf3)}];for(let _0x347e7e=0x0;_0x347e7e<_0x250b94['data'][_0x368ce7(0x1a7c)][_0x368ce7(0xfd0)];_0x347e7e++){_0x53ae91['error']({'title':_0x250b94['data'][_0x368ce7(0x1a7c)][_0x347e7e][_0x368ce7(0x66a)],'msg':_0x250b94[_0x368ce7(0x25c)][_0x368ce7(0x1a7c)][_0x347e7e][_0x368ce7(0x155e)]});}}else _0x53ae91[_0x368ce7(0x218e)]({'title':_0x250b94[_0x368ce7(0x291)]?_0x368ce7(0xeb9)+_0x250b94[_0x368ce7(0x291)]+_0x368ce7(0x1657)+_0x250b94[_0x368ce7(0xc22)]:_0x368ce7(0x1bf3),'msg':_0x250b94['data']?JSON[_0x368ce7(0x2701)](_0x250b94[_0x368ce7(0x25c)][_0x368ce7(0x155e)]):_0x250b94[_0x368ce7(0x147f)]()});});}function _0x563f46(_0x433bbf){const _0x527066=_0x4c062b;_0x1f584e[_0x527066(0x1a7c)]=[];const _0x15bd9e=_0x16e2ed['confirm']()['title'](_0x527066(0x1a2e))[_0x527066(0x862)](_0x527066(0x1bb6))[_0x527066(0x15ad)](_0x527066(0x2dc))['ok'](_0x527066(0x2594))['cancel'](_0x527066(0xde1))[_0x527066(0x728)](_0x433bbf);_0x16e2ed[_0x527066(0xe27)](_0x15bd9e)[_0x527066(0x1cb0)](function(){const _0x21377c=_0x527066;_0x2ab15b[_0x21377c(0x62e)][_0x21377c(0x111d)]({'id':_0x1f584e['smsQueue']['id']})[_0x21377c(0x1d77)][_0x21377c(0x1cb0)](function(){const _0x57e326=_0x21377c;_0x39641b()[_0x57e326(0x152a)](_0x1f584e[_0x57e326(0x1863)],{'id':_0x1f584e[_0x57e326(0x62e)]['id']}),_0x53ae91[_0x57e326(0x829)]({'title':_0x57e326(0x29e3),'msg':(_0x1f584e[_0x57e326(0x62e)][_0x57e326(0x16b6)]||_0x57e326(0x62e))+_0x57e326(0x3f5)}),_0x2a11c9(_0x1f584e[_0x57e326(0x62e)]);})[_0x21377c(0x1c4)](function(_0x3a8ffe){const _0x553cd0=_0x21377c;if(_0x3a8ffe[_0x553cd0(0x25c)]&&_0x3a8ffe[_0x553cd0(0x25c)]['errors']&&_0x3a8ffe[_0x553cd0(0x25c)][_0x553cd0(0x1a7c)][_0x553cd0(0xfd0)]){_0x1f584e[_0x553cd0(0x1a7c)]=_0x3a8ffe[_0x553cd0(0x25c)]['errors']||[{'message':_0x3a8ffe[_0x553cd0(0x147f)](),'type':'api.smsQueue.delete'}];for(let _0x2dd7b9=0x0;_0x2dd7b9<_0x3a8ffe[_0x553cd0(0x25c)][_0x553cd0(0x1a7c)]['length'];_0x2dd7b9++){_0x53ae91[_0x553cd0(0x218e)]({'title':_0x3a8ffe[_0x553cd0(0x25c)][_0x553cd0(0x1a7c)][_0x2dd7b9][_0x553cd0(0x66a)],'msg':_0x3a8ffe['data'][_0x553cd0(0x1a7c)][_0x2dd7b9][_0x553cd0(0x155e)]});}}else _0x53ae91[_0x553cd0(0x218e)]({'title':_0x3a8ffe['status']?_0x553cd0(0xeb9)+_0x3a8ffe[_0x553cd0(0x291)]+'\x20-\x20'+_0x3a8ffe['statusText']:_0x553cd0(0xf09),'msg':_0x3a8ffe['data']?JSON[_0x553cd0(0x2701)](_0x3a8ffe[_0x553cd0(0x25c)][_0x553cd0(0x155e)]):_0x3a8ffe['message']||_0x3a8ffe[_0x553cd0(0x147f)]()});});},function(){});}function _0x429664(_0x25f827){return _0x25f827===null?undefined:new Date(_0x25f827);}function _0x2a11c9(_0x3eb7fb){const _0x241448=_0x4c062b;_0x16e2ed[_0x241448(0x1426)](_0x3eb7fb);}}const _0x5626cb=_0x59c2e8;;_0x85e0bc[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty','api',_0x5537c6(0x62e),'smsQueues','realtime','$translate',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x85e0bc(_0x88eca7,_0x46a1d9,_0x44dfb7,_0x4b3729,_0x564768,_0xee13ac,_0x1fc6d3,_0x3752c5,_0x4989b5,_0x1c73cb){const _0x5f2820=_0x5537c6,_0x390e3a=this;_0x390e3a['currentUser']=_0x4989b5[_0x5f2820(0x21e8)](),_0x390e3a[_0x5f2820(0x62e)]=_0x564768,_0x390e3a[_0x5f2820(0x1b1a)]=_0x1c73cb,_0x390e3a[_0x5f2820(0x217b)]=_0x1fc6d3,_0x390e3a[_0x5f2820(0x122f)]=[],_0x390e3a[_0x5f2820(0x1372)]=[],_0x390e3a[_0x5f2820(0x20bb)]=[],_0x390e3a[_0x5f2820(0xbd5)]=[],_0x390e3a['startingSelectedItems']=[],_0x390e3a[_0x5f2820(0x50c)]=![],_0x390e3a['onInit']=_0x1e1a68,_0x390e3a[_0x5f2820(0x1dd5)]=_0x2321fa,_0x390e3a[_0x5f2820(0xda0)]=_0x1c5e44,_0x390e3a[_0x5f2820(0x18c0)]={'readOnly':!_0x390e3a[_0x5f2820(0x1b1a)][_0x5f2820(0xb3d)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5f2820(0x16b6),'line1':_0x5f2820(0x1d14),'line2':[_0x5f2820(0x16b6),_0x5f2820(0xdbd)],'line3':'','labelAll':_0x3752c5[_0x5f2820(0x25cc)]('APP.ALL_AGENTS'),'labelSelected':_0x3752c5['instant'](_0x5f2820(0x1cd5)),'transferCallback':function(){const _0x1aa604=_0x5f2820,_0x430239=_0x39641b()[_0x1aa604(0x1423)](_0x390e3a[_0x1aa604(0x1456)],_0x390e3a[_0x1aa604(0x20bb)],'id');_0x390e3a['pendingChanges']=_0x39641b()['isEmpty'](_0x430239)?![]:!![];}};function _0x1e1a68(){const _0x263c51=_0x5f2820;return _0x4989b5['hasRole'](_0x263c51(0x1c60))?_0x3b304b()[_0x263c51(0x1c4)](function(_0xb94492){const _0x237af0=_0x263c51;_0x44dfb7[_0x237af0(0x218e)]({'title':_0xb94492['status']?'API:'+_0xb94492[_0x237af0(0x291)]+_0x237af0(0x1657)+_0xb94492[_0x237af0(0xc22)]:_0x237af0(0x799),'msg':_0xb94492[_0x237af0(0x291)]?JSON[_0x237af0(0x2701)](_0xb94492['data']):_0xb94492['toString']()});}):_0x4b9d20()['then'](function(_0x1dd6c9){const _0x5818a2=_0x263c51;return _0x390e3a[_0x5818a2(0x1f74)]=_0x1dd6c9,_0x3b304b();})[_0x263c51(0x1c4)](function(_0x168eca){const _0x452db7=_0x263c51;_0x44dfb7['error']({'title':_0x168eca[_0x452db7(0x291)]?_0x452db7(0xeb9)+_0x168eca[_0x452db7(0x291)]+_0x452db7(0x1657)+_0x168eca[_0x452db7(0xc22)]:_0x452db7(0x799),'msg':_0x168eca['status']?JSON[_0x452db7(0x2701)](_0x168eca[_0x452db7(0x25c)]):_0x168eca['toString']()});});}function _0x4b9d20(){return _0x46a1d9(function(_0x388cf5,_0x3a920e){const _0x308afa=a0_0x5cbd;_0x4b3729[_0x308afa(0x2199)][_0x308afa(0xbf7)]({'userProfileId':_0x390e3a[_0x308afa(0xe76)]['userProfileId'],'name':_0x308afa(0x2536)})[_0x308afa(0x1d77)][_0x308afa(0x1cb0)](function(_0x5121f0){const _0x2764d5=_0x308afa,_0x47bed5=_0x5121f0&&_0x5121f0['rows']?_0x5121f0[_0x2764d5(0x2214)][0x0]:null;_0x388cf5(_0x47bed5);})[_0x308afa(0x1c4)](function(_0x24da36){_0x3a920e(_0x24da36);});});}function _0x3b304b(){return _0x46a1d9(function(_0xbf86f0,_0x48d0f9){const _0x52ac82=a0_0x5cbd;return _0x55ce42()[_0x52ac82(0x1cb0)](function(_0x512430){const _0x4a89f1=_0x52ac82;return _0x390e3a[_0x4a89f1(0x122f)]=_0x512430[_0x4a89f1(0x2214)]?_0x512430[_0x4a89f1(0x2214)]:[],_0x4989b5[_0x4a89f1(0x22b6)](_0x4a89f1(0x1c60))?_0x512430:_0x390e3a['section']?_0x390e3a[_0x4a89f1(0x1f74)][_0x4a89f1(0x12f4)]?_0x512430:_0x4b9f6f():null;})['then'](function(_0x3a69be){const _0x43fd08=_0x52ac82,_0x5ea85e=_0x3a69be&&_0x3a69be[_0x43fd08(0x2214)]?_0x3a69be['rows']:[];return _0x390e3a['allowedItems']=_0x39641b()[_0x43fd08(0x1de2)](_0x5ea85e,function(_0x26db08){const _0x416dfd=_0x43fd08;return _0x39641b()[_0x416dfd(0x13b4)](_0x390e3a[_0x416dfd(0x122f)],{'id':_0x4989b5[_0x416dfd(0x22b6)](_0x416dfd(0x1c60))||_0x390e3a[_0x416dfd(0x1f74)][_0x416dfd(0x12f4)]?_0x26db08['id']:_0x26db08[_0x416dfd(0x2982)]});}),_0x390e3a[_0x43fd08(0xbd5)]=angular[_0x43fd08(0x17fe)](_0x390e3a['allowedItems']),_0x390e3a[_0x43fd08(0x122f)][_0x43fd08(0xf90)](function(_0xc637c8){const _0x531d75=_0x43fd08,_0x100ca1=_0x39641b()['find'](_0x390e3a[_0x531d75(0x1372)],{'id':_0xc637c8['id']});_0x4989b5[_0x531d75(0x22b6)](_0x531d75(0x1c60))?_0xc637c8['isValid']=!![]:_0xc637c8[_0x531d75(0x1a4f)]=typeof _0x100ca1!==_0x531d75(0x16b5)?!![]:![];}),_0x34bcbf();})['then'](function(_0x36cd74){const _0x421ab6=_0x52ac82,_0x185bf8=_0x36cd74&&_0x36cd74[_0x421ab6(0x2214)]?_0x36cd74[_0x421ab6(0x2214)]:[];_0x390e3a['selectedItems']=_0x39641b()['map'](_0x185bf8,function(_0x35e293){const _0x360c67=_0x421ab6,_0x111005=_0x39641b()['find'](_0x390e3a['items'],{'id':_0x35e293['id']});return _0x111005['penalty']=_0x35e293['UserSmsQueue']?_0x360c67(0x455)+_0x35e293[_0x360c67(0x25aa)][_0x360c67(0x1cbc)]:'',_0x111005[_0x360c67(0xdbd)]=typeof _0x35e293['internal']!==_0x360c67(0x16b5)?'<'+_0x35e293[_0x360c67(0xdbd)]+'>':'',_0x111005;}),_0x390e3a['startingSelectedItems']=angular['copy'](_0x390e3a[_0x421ab6(0x20bb)]),_0x390e3a[_0x421ab6(0x18c0)][_0x421ab6(0x20bb)]=_0x390e3a['selectedItems'],_0x390e3a[_0x421ab6(0x18c0)][_0x421ab6(0x122f)]=_0x39641b()[_0x421ab6(0x2128)](_0x390e3a[_0x421ab6(0x1372)],_0x390e3a[_0x421ab6(0x18c0)][_0x421ab6(0x20bb)],'id'),_0xbf86f0();})[_0x52ac82(0x1c4)](function(_0x173e26){_0x48d0f9(_0x173e26);});});}function _0x4b9f6f(){return _0x46a1d9(function(_0x42d89f,_0x995f88){const _0x113dbd=a0_0x5cbd;return _0x4b3729[_0x113dbd(0x1198)]['get']({'sectionId':_0x390e3a[_0x113dbd(0x1f74)]['id'],'nolimit':!![]})[_0x113dbd(0x1d77)]['then'](function(_0x3e1f2a){_0x42d89f(_0x3e1f2a);})[_0x113dbd(0x1c4)](function(_0x350779){_0x995f88(_0x350779);});});}function _0x34bcbf(){return _0x46a1d9(function(_0x1d18a6,_0x48397b){const _0x32d25e=a0_0x5cbd;return _0x4b3729[_0x32d25e(0x62e)][_0x32d25e(0x2348)]({'id':_0x390e3a[_0x32d25e(0x62e)]['id'],'fields':_0x32d25e(0x251e),'nolimit':!![],'role':'agent'})[_0x32d25e(0x1d77)][_0x32d25e(0x1cb0)](function(_0x3fa4e0){_0x1d18a6(_0x3fa4e0);})[_0x32d25e(0x1c4)](function(_0x281f6f){_0x48397b(_0x281f6f);});});}function _0x55ce42(){return _0x46a1d9(function(_0xde4a4,_0x26c3d0){const _0x4eec8f=a0_0x5cbd;return _0x4b3729[_0x4eec8f(0xebe)][_0x4eec8f(0xbf7)]({'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0x4eec8f(0x1d77)]['then'](function(_0x136620){_0xde4a4(_0x136620);})[_0x4eec8f(0x1c4)](function(_0x4f1d5b){_0x26c3d0(_0x4f1d5b);});});}function _0x489c3d(_0x5d90f7){return _0x46a1d9(function(_0x12e335,_0x215a06){const _0x22f643=a0_0x5cbd;_0x39641b()[_0x22f643(0xce9)](_0x5d90f7)?_0x12e335():_0x4b3729[_0x22f643(0x62e)][_0x22f643(0x2057)]({'id':_0x390e3a[_0x22f643(0x62e)]['id'],'ids':_0x39641b()['map'](_0x5d90f7,'id')})[_0x22f643(0x1d77)][_0x22f643(0x1cb0)](function(){_0x12e335();})['catch'](function(_0x45d705){_0x215a06(_0x45d705);});});}function _0x4cd0e8(_0x38370a){return _0x46a1d9(function(_0x5e1473,_0x3eaef0){const _0x2ae55d=a0_0x5cbd;_0x39641b()[_0x2ae55d(0xce9)](_0x38370a)?_0x5e1473():_0x4b3729['smsQueue'][_0x2ae55d(0x223f)]({'id':_0x390e3a[_0x2ae55d(0x62e)]['id'],'ids':_0x39641b()['map'](_0x38370a,'id')})[_0x2ae55d(0x1d77)][_0x2ae55d(0x1cb0)](function(){_0x5e1473();})[_0x2ae55d(0x1c4)](function(_0x20df00){_0x3eaef0(_0x20df00);});});}function _0x2321fa(){const _0x506081=_0x5f2820,_0x4db534=_0x39641b()[_0x506081(0x2128)](_0x390e3a[_0x506081(0x1456)],_0x390e3a[_0x506081(0x20bb)],'id'),_0x5cb8d7=_0x39641b()[_0x506081(0x2128)](_0x390e3a[_0x506081(0x20bb)],_0x390e3a[_0x506081(0x1456)],'id');return _0x4cd0e8(_0x4db534)[_0x506081(0x1cb0)](function(){return _0x489c3d(_0x5cb8d7);})['then'](function(){const _0x25f65b=_0x506081;_0x390e3a[_0x25f65b(0x50c)]=![],_0x390e3a[_0x25f65b(0xbd5)]=angular[_0x25f65b(0x17fe)](_0x390e3a[_0x25f65b(0x1372)]),_0x390e3a[_0x25f65b(0x1456)]=angular['copy'](_0x390e3a[_0x25f65b(0x20bb)]),_0x44dfb7[_0x25f65b(0x829)]({'title':_0x25f65b(0x201),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x506081(0x1c4)](function(_0x17192d){const _0x10faba=_0x506081;_0x44dfb7[_0x10faba(0x218e)]({'title':_0x17192d[_0x10faba(0x291)]?_0x10faba(0xeb9)+_0x17192d['status']+'\x20-\x20'+_0x17192d[_0x10faba(0xc22)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x17192d['status']?JSON[_0x10faba(0x2701)](_0x17192d[_0x10faba(0x25c)]):_0x17192d['toString']()});});}function _0x1c5e44(){const _0x5e6c51=_0x5f2820;_0x88eca7[_0x5e6c51(0x1426)]();}}const _0x2c8f24=_0x85e0bc;;_0x1ace83[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x62e),_0x5537c6(0x1ae),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x1ace83(_0x5ef85f,_0x188331,_0x415178,_0x141f50,_0x1c6bdf,_0x21cd20,_0x5c4074,_0x49de23){const _0x4b4ded=_0x5537c6,_0x39a254=this;_0x39a254[_0x4b4ded(0xe76)]=_0x5c4074[_0x4b4ded(0x21e8)](),_0x39a254['smsQueue']=_0x1c6bdf,_0x39a254[_0x4b4ded(0x1b1a)]=_0x49de23,_0x39a254[_0x4b4ded(0x122f)]=[],_0x39a254[_0x4b4ded(0x1372)]=[],_0x39a254[_0x4b4ded(0x20bb)]=[],_0x39a254[_0x4b4ded(0xbd5)]=[],_0x39a254['startingSelectedItems']=[],_0x39a254['pendingChanges']=![],_0x39a254[_0x4b4ded(0x18c0)]={'readOnly':!_0x39a254[_0x4b4ded(0x1b1a)][_0x4b4ded(0xb3d)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x4b4ded(0x16b6),'line1':'name','line2':'','line3':'','labelAll':_0x21cd20[_0x4b4ded(0x25cc)](_0x4b4ded(0x1f3)),'labelSelected':_0x21cd20[_0x4b4ded(0x25cc)]('APP.SELECTED_TEAMS'),'transferCallback':function(){const _0x2b6ac4=_0x4b4ded,_0x10806c=_0x39641b()[_0x2b6ac4(0x1423)](_0x39a254['startingSelectedItems'],_0x39a254[_0x2b6ac4(0x20bb)],'id');_0x39a254[_0x2b6ac4(0x50c)]=_0x39641b()['isEmpty'](_0x10806c)?![]:!![];}},_0x39a254[_0x4b4ded(0x1a34)]=_0x38be52,_0x39a254['saveTeams']=_0x4507fb,_0x39a254['closeDialog']=_0x14db23;function _0x38be52(){const _0x4c8792=_0x4b4ded;return _0x5c4074['hasRole'](_0x4c8792(0x1c60))?_0x9d3eaa()[_0x4c8792(0x1c4)](function(_0x599ce1){const _0x1abfb0=_0x4c8792;_0x415178['error']({'title':_0x599ce1[_0x1abfb0(0x291)]?'API:'+_0x599ce1['status']+_0x1abfb0(0x1657)+_0x599ce1['statusText']:_0x1abfb0(0x2206),'msg':_0x599ce1[_0x1abfb0(0x291)]?JSON[_0x1abfb0(0x2701)](_0x599ce1[_0x1abfb0(0x25c)]):_0x599ce1['toString']()});}):_0x3c5d7a()[_0x4c8792(0x1cb0)](function(_0x3862f0){const _0x2708ff=_0x4c8792;return _0x39a254[_0x2708ff(0x1f74)]=_0x3862f0,_0x9d3eaa();})[_0x4c8792(0x1c4)](function(_0x300030){const _0x5be58a=_0x4c8792;_0x415178[_0x5be58a(0x218e)]({'title':_0x300030[_0x5be58a(0x291)]?'API:'+_0x300030[_0x5be58a(0x291)]+_0x5be58a(0x1657)+_0x300030['statusText']:_0x5be58a(0x2206),'msg':_0x300030['status']?JSON[_0x5be58a(0x2701)](_0x300030[_0x5be58a(0x25c)]):_0x300030[_0x5be58a(0x147f)]()});});}function _0x3c5d7a(){return _0x188331(function(_0x583657,_0x5370ce){const _0x36ecfb=a0_0x5cbd;_0x141f50['userProfileSection']['get']({'userProfileId':_0x39a254['currentUser'][_0x36ecfb(0x13c1)],'name':'Teams'})['$promise']['then'](function(_0x3f71bf){const _0x1d570d=_0x36ecfb,_0x45e8d6=_0x3f71bf&&_0x3f71bf[_0x1d570d(0x2214)]?_0x3f71bf[_0x1d570d(0x2214)][0x0]:null;_0x583657(_0x45e8d6);})[_0x36ecfb(0x1c4)](function(_0x91c11b){_0x5370ce(_0x91c11b);});});}function _0x9d3eaa(){return _0x188331(function(_0x4a69b1,_0x228e22){const _0x56bb6d=a0_0x5cbd;return _0x2669f5()['then'](function(_0x299815){const _0xf0ce28=a0_0x5cbd;return _0x39a254[_0xf0ce28(0x122f)]=_0x299815[_0xf0ce28(0x2214)]?_0x299815['rows']:[],_0x5c4074[_0xf0ce28(0x22b6)]('admin')?_0x299815:_0x39a254[_0xf0ce28(0x1f74)]?_0x39a254[_0xf0ce28(0x1f74)][_0xf0ce28(0x12f4)]?_0x299815:_0x225f50():null;})[_0x56bb6d(0x1cb0)](function(_0x1a864a){const _0x37fdc4=_0x56bb6d,_0x1e2c64=_0x1a864a&&_0x1a864a[_0x37fdc4(0x2214)]?_0x1a864a[_0x37fdc4(0x2214)]:[];return _0x39a254[_0x37fdc4(0x1372)]=_0x39641b()[_0x37fdc4(0x1de2)](_0x1e2c64,function(_0x37451f){const _0x3d5394=_0x37fdc4;return _0x39641b()[_0x3d5394(0x13b4)](_0x39a254[_0x3d5394(0x122f)],{'id':_0x5c4074[_0x3d5394(0x22b6)](_0x3d5394(0x1c60))||_0x39a254[_0x3d5394(0x1f74)][_0x3d5394(0x12f4)]?_0x37451f['id']:_0x37451f[_0x3d5394(0x2982)]});}),_0x39a254[_0x37fdc4(0x122f)][_0x37fdc4(0xf90)](function(_0x183e36){const _0x315afe=_0x37fdc4,_0x3aa54d=_0x39641b()[_0x315afe(0x13b4)](_0x39a254[_0x315afe(0x1372)],{'id':_0x183e36['id']});_0x5c4074[_0x315afe(0x22b6)](_0x315afe(0x1c60))?_0x183e36[_0x315afe(0x1a4f)]=!![]:_0x183e36[_0x315afe(0x1a4f)]=typeof _0x3aa54d!==_0x315afe(0x16b5)?!![]:![];}),_0x2d86d7();})[_0x56bb6d(0x1cb0)](function(_0x5ae255){const _0x46fbc5=_0x56bb6d,_0x2d5a83=_0x5ae255&&_0x5ae255['rows']?_0x5ae255['rows']:[];_0x39a254[_0x46fbc5(0x20bb)]=_0x39641b()[_0x46fbc5(0x1de2)](_0x2d5a83,function(_0x26eebd){const _0x179be8=_0x46fbc5;return _0x39641b()[_0x179be8(0x13b4)](_0x39a254[_0x179be8(0x122f)],{'id':_0x26eebd['id']});}),_0x39a254['startingSelectedItems']=angular[_0x46fbc5(0x17fe)](_0x39a254[_0x46fbc5(0x20bb)]),_0x39a254[_0x46fbc5(0x18c0)][_0x46fbc5(0x20bb)]=_0x39a254[_0x46fbc5(0x20bb)],_0x39a254['dualMultiselectOptions'][_0x46fbc5(0x122f)]=_0x39641b()[_0x46fbc5(0x2128)](_0x39a254[_0x46fbc5(0x1372)],_0x39a254[_0x46fbc5(0x18c0)][_0x46fbc5(0x20bb)],'id'),_0x4a69b1();})[_0x56bb6d(0x1c4)](function(_0x50db96){_0x228e22(_0x50db96);});});}function _0x225f50(){return _0x188331(function(_0x4f01df,_0x1a4a95){const _0x591d74=a0_0x5cbd;return _0x141f50['userProfileResource'][_0x591d74(0xbf7)]({'sectionId':_0x39a254['section']['id'],'nolimit':!![]})[_0x591d74(0x1d77)][_0x591d74(0x1cb0)](function(_0xa5e360){_0x4f01df(_0xa5e360);})[_0x591d74(0x1c4)](function(_0x4aa220){_0x1a4a95(_0x4aa220);});});}function _0x2d86d7(){return _0x188331(function(_0x22d86a,_0x598c79){const _0x5d6fca=a0_0x5cbd;return _0x141f50[_0x5d6fca(0x62e)][_0x5d6fca(0x1407)]({'id':_0x39a254[_0x5d6fca(0x62e)]['id'],'fields':_0x5d6fca(0x43c),'nolimit':!![]})['$promise'][_0x5d6fca(0x1cb0)](function(_0x406c24){_0x22d86a(_0x406c24);})[_0x5d6fca(0x1c4)](function(_0x4feb58){_0x598c79(_0x4feb58);});});}function _0x2669f5(){return _0x188331(function(_0x1b7807,_0x34b8cf){const _0x4906b7=a0_0x5cbd;return _0x141f50[_0x4906b7(0xdfd)][_0x4906b7(0xbf7)]({'fields':_0x4906b7(0x43c),'nolimit':!![]})['$promise'][_0x4906b7(0x1cb0)](function(_0x36bf2e){_0x1b7807(_0x36bf2e);})[_0x4906b7(0x1c4)](function(_0x171e87){_0x34b8cf(_0x171e87);});});}function _0x2e9b29(_0x3e22b8){return _0x188331(function(_0x12eb39,_0x55cd27){const _0x319db6=a0_0x5cbd;_0x39641b()[_0x319db6(0xce9)](_0x3e22b8)?_0x12eb39():_0x141f50[_0x319db6(0x62e)][_0x319db6(0x28d9)]({'id':_0x39a254['smsQueue']['id'],'ids':_0x39641b()['map'](_0x3e22b8,'id')})[_0x319db6(0x1d77)][_0x319db6(0x1cb0)](function(){_0x12eb39();})[_0x319db6(0x1c4)](function(_0x58c657){_0x55cd27(_0x58c657);});});}function _0x35c508(_0xe523a4){return _0x188331(function(_0x40e977,_0x481925){const _0xdecd6e=a0_0x5cbd;_0x39641b()[_0xdecd6e(0xce9)](_0xe523a4)?_0x40e977():_0x141f50[_0xdecd6e(0x62e)]['removeTeams']({'id':_0x39a254[_0xdecd6e(0x62e)]['id'],'ids':_0x39641b()[_0xdecd6e(0x1de2)](_0xe523a4,'id')})['$promise'][_0xdecd6e(0x1cb0)](function(){_0x40e977();})[_0xdecd6e(0x1c4)](function(_0x33434c){_0x481925(_0x33434c);});});}function _0x4507fb(){const _0x412fd5=_0x4b4ded,_0x277762=_0x39641b()['differenceBy'](_0x39a254[_0x412fd5(0x1456)],_0x39a254[_0x412fd5(0x20bb)],'id'),_0x4f7b96=_0x39641b()[_0x412fd5(0x2128)](_0x39a254[_0x412fd5(0x20bb)],_0x39a254[_0x412fd5(0x1456)],'id');return _0x35c508(_0x277762)['then'](function(){return _0x2e9b29(_0x4f7b96);})[_0x412fd5(0x1cb0)](function(){const _0x252999=_0x412fd5;_0x39a254['pendingChanges']=![],_0x39a254[_0x252999(0xbd5)]=angular[_0x252999(0x17fe)](_0x39a254[_0x252999(0x1372)]),_0x39a254[_0x252999(0x1456)]=angular['copy'](_0x39a254['selectedItems']),_0x415178['success']({'title':_0x252999(0x201),'msg':_0x252999(0xc72)});})[_0x412fd5(0x1c4)](function(_0x200a1b){const _0x191086=_0x412fd5;_0x415178['error']({'title':_0x200a1b[_0x191086(0x291)]?_0x191086(0xeb9)+_0x200a1b['status']+_0x191086(0x1657)+_0x200a1b[_0x191086(0xc22)]:_0x191086(0x1221),'msg':_0x200a1b[_0x191086(0x291)]?JSON['stringify'](_0x200a1b[_0x191086(0x25c)]):_0x200a1b[_0x191086(0x147f)]()});});}function _0x14db23(){const _0x116b40=_0x4b4ded;_0x5ef85f[_0x116b40(0x1426)]();}}const _0x25b17c=_0x1ace83;;const _0x2432e3=_0x5074a3['p']+_0x5537c6(0x10c2);;_0x44c84d[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1ae),_0x5537c6(0x8a5),'setting',_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x62e),_0x5537c6(0x2199)];function _0x44c84d(_0x2cf6d8,_0x85a9a9,_0x5286bd,_0x2d3054,_0xd9efc4,_0x4a958b,_0x141f5c,_0x2ec025,_0x15021c,_0x354724,_0x2679ec,_0x34a350){const _0x2e18f7=_0x5537c6,_0xed439c=this;_0xed439c[_0x2e18f7(0xe76)]=_0x354724[_0x2e18f7(0x21e8)](),_0xed439c[_0x2e18f7(0x8a5)]=_0x4a958b,_0xed439c[_0x2e18f7(0x9ca)]=_0x141f5c,_0xed439c[_0x2e18f7(0x1b0c)]=_0xed439c[_0x2e18f7(0x9ca)][_0x2e18f7(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xed439c[_0x2e18f7(0x2404)]=_0x85a9a9['protocol']()+_0x2e18f7(0x138b)+_0x85a9a9[_0x2e18f7(0x17d8)](),_0xed439c[_0x2e18f7(0x62e)]=_0x2679ec||_0x2cf6d8[_0x2e18f7(0x1dfe)][_0x2e18f7(0x62e)]||{},_0xed439c[_0x2e18f7(0x2199)]=_0x34a350&&_0x34a350[_0x2e18f7(0x184d)]==0x1?_0x34a350[_0x2e18f7(0x2214)][0x0]:null,_0xed439c[_0x2e18f7(0x1b1a)]=_0x354724['parseCrudPermissions'](_0xed439c[_0x2e18f7(0x2199)]?_0xed439c['userProfileSection']['crudPermissions']:null),_0xed439c[_0x2e18f7(0xf4c)]={},_0xed439c[_0x2e18f7(0x8ec)]=_0x2cf6d8[_0x2e18f7(0x1dfe)][_0x2e18f7(0x291e)]||0x0,_0xed439c['teamadddialog']=_0x3ef24d,_0xed439c['agentadddialog']=_0x191432,_0xed439c[_0x2e18f7(0x494)]=_0x15021c['info'],_0xed439c[_0x2e18f7(0x111a)]=_0x130940,_0xed439c[_0x2e18f7(0xa77)]=_0xd5bd98;function _0x3ef24d(_0x20a211,_0x276525){const _0x3e0f4f=_0x2e18f7;_0x5286bd[_0x3e0f4f(0xe27)]({'controller':_0x3e0f4f(0x75b),'controllerAs':'vm','templateUrl':_0x2432e3,'parent':angular['element'](_0x2d3054[_0x3e0f4f(0x1ed9)]),'targetEvent':_0x276525,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x20a211,'smsQueues':_0xed439c[_0x3e0f4f(0x1863)]?_0xed439c['smsQueues']['rows']:[],'crudPermissions':_0xed439c[_0x3e0f4f(0x1b1a)]}});}function _0x191432(_0x4329cf,_0x17dbe0){const _0x4e211d=_0x2e18f7;_0x5286bd['show']({'controller':_0x4e211d(0x1ce5),'controllerAs':'vm','templateUrl':_0x16f2db,'parent':angular[_0x4e211d(0x1853)](_0x2d3054[_0x4e211d(0x1ed9)]),'targetEvent':_0x17dbe0,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x4329cf,'smsQueues':_0xed439c[_0x4e211d(0x1863)]?_0xed439c['smsQueues'][_0x4e211d(0x2214)]:[],'crudPermissions':_0xed439c['crudPermissions'],'realtime':![]}});}function _0x130940(){const _0x36da69=_0x2e18f7;_0x2cf6d8['go']('app.sms.smsQueues',{},{'reload':_0x36da69(0xb02)});}function _0xd5bd98(){const _0xfd7f56=_0x2e18f7;_0x2ec025[_0xfd7f56(0x62e)][_0xfd7f56(0x687)]({'id':_0xed439c[_0xfd7f56(0x62e)]['id']},_0xed439c[_0xfd7f56(0x62e)])[_0xfd7f56(0x1d77)][_0xfd7f56(0x1cb0)](function(){const _0x2d6ea5=_0xfd7f56;_0x15021c['success']({'title':_0x2d6ea5(0x25b9),'msg':_0xed439c[_0x2d6ea5(0x62e)][_0x2d6ea5(0x16b6)]?_0xed439c[_0x2d6ea5(0x62e)][_0x2d6ea5(0x16b6)]+_0x2d6ea5(0x1068):''});})[_0xfd7f56(0x1c4)](function(_0x56032a){const _0x4ee523=_0xfd7f56;_0x15021c[_0x4ee523(0x218e)]({'title':_0x56032a['status']?'API:'+_0x56032a['status']+_0x4ee523(0x1657)+_0x56032a['statusText']:'SYSTEM:GETsmsQueue','msg':_0x56032a[_0x4ee523(0x25c)]?JSON[_0x4ee523(0x2701)](_0x56032a[_0x4ee523(0x25c)]):_0x56032a['toString']()});});}}const _0x44e651=_0x44c84d;;_0x2a1c50[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x1f10),_0x5537c6(0x406),'$mdSidenav',_0x5537c6(0xcb9),'$document','$timeout','$translate',_0x5537c6(0x1863),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),'msUtils',_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x2a1c50(_0x48654c,_0x169464,_0x1b19f3,_0x3c6219,_0x316a43,_0x571bfd,_0x101089,_0x5dd58e,_0x31dbc6,_0x195079,_0x1b35ef,_0x53ec48,_0x4cc9d5,_0x1ab732,_0x1b336f,_0x188e0a,_0x1b9de7){const _0x4b6dcb=_0x5537c6,_0x218b45=this;_0x218b45[_0x4b6dcb(0x8a5)]=_0x188e0a,_0x218b45[_0x4b6dcb(0x9ca)]=_0x1b9de7,_0x218b45[_0x4b6dcb(0xe76)]=_0x1b336f[_0x4b6dcb(0x21e8)](),_0x218b45['smsQueues']=_0x31dbc6||{'count':0x0,'rows':[]},_0x218b45['userProfile']=_0x195079,_0x218b45[_0x4b6dcb(0x2199)]=_0x1b35ef&&_0x1b35ef['count']==0x1?_0x1b35ef[_0x4b6dcb(0x2214)][0x0]:null,_0x218b45[_0x4b6dcb(0x1b1a)]=_0x1b336f[_0x4b6dcb(0x14ea)](_0x218b45[_0x4b6dcb(0x2199)]?_0x218b45[_0x4b6dcb(0x2199)][_0x4b6dcb(0x1b1a)]:null),_0x218b45[_0x4b6dcb(0xc83)]=_0x4b6dcb(0x1863),_0x218b45[_0x4b6dcb(0x1d20)]='',_0x218b45[_0x4b6dcb(0x1cdf)]=null,_0x218b45[_0x4b6dcb(0x10ef)]=[],_0x218b45[_0x4b6dcb(0xae2)]={'fields':_0x4b6dcb(0x22f3),'sort':_0x4b6dcb(0x282),'channel':_0x4b6dcb(0x689),'limit':0xa,'page':0x1},_0x218b45[_0x4b6dcb(0xa7e)]=_0x39641b()['keyBy']([{'option':_0x4b6dcb(0xfd9),'value':'\x27beepall\x27'},{'option':_0x4b6dcb(0x290b),'value':_0x4b6dcb(0x15b5)}],function(_0x14bbba){const _0xe73afe=_0x4b6dcb;return _0x39641b()[_0xe73afe(0x288f)](_0x14bbba[_0xe73afe(0x327)],new RegExp('\x27','g'),'');}),_0x218b45[_0x4b6dcb(0x235d)]=_0x12ac35,_0x218b45[_0x4b6dcb(0x1d63)]=_0x2b6016,_0x218b45['agentadddialog']=_0x102968,_0x218b45[_0x4b6dcb(0x27fe)]=_0x10711f,_0x218b45[_0x4b6dcb(0x649)]=_0x54510f,_0x218b45[_0x4b6dcb(0x829)]=_0x1d1b0c,_0x218b45['getSmsQueues']=_0x3c1b0b,_0x218b45[_0x4b6dcb(0x1f75)]=_0x16c718,_0x218b45['deleteSmsQueue']=_0x2f1e1f,_0x218b45['exportSelectedSmsQueues']=_0x4442cc,_0x218b45['deleteSelectedSmsQueues']=_0xa77a5f,_0x218b45[_0x4b6dcb(0x1821)]=_0x24b1ad,_0x218b45['selectAllSmsQueues']=_0x296ad8;function _0x12ac35(_0x4bae82){const _0x473983=_0x4b6dcb;_0x1b19f3['go'](_0x473983(0x2218),{'id':_0x4bae82['id'],'smsQueue':_0x4bae82,'crudPermissions':_0x218b45[_0x473983(0x1b1a)]});}function _0x2b6016(_0x377bac,_0x497606){const _0x4981dd=_0x4b6dcb;_0x316a43[_0x4981dd(0xe27)]({'controller':'SmsQueueteamaddController','controllerAs':'vm','templateUrl':_0x2432e3,'parent':angular[_0x4981dd(0x1853)](_0x571bfd[_0x4981dd(0x1ed9)]),'targetEvent':_0x497606,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x377bac,'smsQueues':_0x218b45[_0x4981dd(0x1863)]?_0x218b45['smsQueues']['rows']:[],'crudPermissions':_0x218b45[_0x4981dd(0x1b1a)]}});}function _0x102968(_0x3378bf,_0x5842ab){const _0x469734=_0x4b6dcb;_0x316a43['show']({'controller':'SmsQueueagentaddController','controllerAs':'vm','templateUrl':_0x16f2db,'parent':angular[_0x469734(0x1853)](_0x571bfd['body']),'targetEvent':_0x5842ab,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x3378bf,'smsQueues':_0x218b45[_0x469734(0x1863)]?_0x218b45[_0x469734(0x1863)][_0x469734(0x2214)]:[],'crudPermissions':_0x218b45[_0x469734(0x1b1a)],'realtime':![]}});}function _0x10711f(_0x263155,_0x4e9052){const _0x4cfd67=_0x4b6dcb,_0x48c91a=_0x316a43[_0x4cfd67(0x1551)]()[_0x4cfd67(0x1386)](_0x4cfd67(0x140b)+_0x39641b()['startCase'](_0x4cfd67(0x62e))+'?')[_0x4cfd67(0x49e)](_0x4cfd67(0x204d)+(_0x263155[_0x4cfd67(0x16b6)]||'smsQueue')+_0x4cfd67(0x1200)+_0x4cfd67(0x1b6))['ariaLabel']('delete\x20smsQueue')['targetEvent'](_0x4e9052)['ok']('OK')[_0x4cfd67(0x696)]('CANCEL');_0x316a43[_0x4cfd67(0xe27)](_0x48c91a)[_0x4cfd67(0x1cb0)](function(){_0x2f1e1f(_0x263155);},function(){const _0xe52828=_0x4cfd67;console[_0xe52828(0x1b4f)](_0xe52828(0x24ba));});}function _0x54510f(){const _0x2e5ad9=_0x4b6dcb;if(_0x1b336f['hasRole']('admin'))_0x1b19f3['go'](_0x2e5ad9(0xabe),{});else return _0x53ec48[_0x2e5ad9(0x2199)][_0x2e5ad9(0xbf7)]({'userProfileId':_0x1b336f[_0x2e5ad9(0x21e8)]()[_0x2e5ad9(0x13c1)],'sectionId':0x2c6})[_0x2e5ad9(0x1d77)]['then'](function(_0x13ac14){const _0x46a51e=_0x2e5ad9,_0x3c8a6f=_0x13ac14&&_0x13ac14[_0x46a51e(0x2214)]?_0x13ac14[_0x46a51e(0x2214)][0x0]:null;_0x3c8a6f&&_0x3c8a6f['enabled']?_0x1b19f3['go'](_0x46a51e(0xabe),{}):_0x1ab732['info']({'title':_0x5dd58e[_0x46a51e(0x25cc)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x5dd58e['instant'](_0x46a51e(0x33a))});})[_0x2e5ad9(0x1c4)](function(_0x2ad324){const _0x1878c2=_0x2e5ad9;_0x1ab732[_0x1878c2(0x218e)]({'title':_0x2ad324[_0x1878c2(0x291)]?'API:'+_0x2ad324[_0x1878c2(0x291)]+_0x1878c2(0x1657)+_0x2ad324['statusText']:_0x1878c2(0x17ba),'msg':_0x2ad324['status']?JSON[_0x1878c2(0x2701)](_0x2ad324['data']):_0x2ad324[_0x1878c2(0x147f)]()});});}let _0x93cb14=!![],_0x12a76a=0x1;_0x48654c[_0x4b6dcb(0x614)](_0x4b6dcb(0x957),function(_0xd4c44,_0x38308d){const _0x13b687=_0x4b6dcb;_0x93cb14?_0x101089(function(){_0x93cb14=![];}):(!_0x38308d&&(_0x12a76a=_0x218b45[_0x13b687(0xae2)][_0x13b687(0x1c7b)]),_0xd4c44!==_0x38308d&&(_0x218b45[_0x13b687(0xae2)][_0x13b687(0x1c7b)]=0x1),!_0xd4c44&&(_0x218b45[_0x13b687(0xae2)][_0x13b687(0x1c7b)]=_0x12a76a),_0x218b45[_0x13b687(0x6b3)]());});function _0x1d1b0c(_0xdbd2fe){_0x218b45['smsQueues']=_0xdbd2fe||{'count':0x0,'rows':[]};}function _0x3c1b0b(){const _0x202f99=_0x4b6dcb;_0x218b45['query'][_0x202f99(0x184b)]=(_0x218b45['query']['page']-0x1)*_0x218b45[_0x202f99(0xae2)][_0x202f99(0x236)],_0x1b336f[_0x202f99(0x22b6)](_0x202f99(0x1c60))?_0x218b45[_0x202f99(0x2061)]=_0x53ec48[_0x202f99(0x62e)][_0x202f99(0xbf7)](_0x218b45['query'],_0x1d1b0c)[_0x202f99(0x1d77)]:(_0x218b45[_0x202f99(0xae2)]['id']=_0x218b45['userProfile']['id'],_0x218b45[_0x202f99(0xae2)][_0x202f99(0x1f74)]=_0x202f99(0x14ad),_0x218b45[_0x202f99(0x2061)]=_0x53ec48[_0x202f99(0x44a)][_0x202f99(0x1810)](_0x218b45['query'],_0x1d1b0c)['$promise']);}function _0x16c718(_0x392599,_0x256cd8){const _0x4fcca7=_0x4b6dcb;_0x316a43['show']({'controller':_0x4fcca7(0x19e7),'controllerAs':'vm','templateUrl':_0x8822b6,'parent':angular[_0x4fcca7(0x1853)](_0x571bfd[_0x4fcca7(0x1ed9)]),'targetEvent':_0x392599,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x256cd8,'smsQueues':_0x218b45[_0x4fcca7(0x1863)]['rows'],'license':_0x218b45[_0x4fcca7(0x8a5)],'setting':_0x218b45['setting'],'crudPermissions':_0x218b45[_0x4fcca7(0x1b1a)]}});}function _0x2f1e1f(_0x21364f){const _0x2ea75c=_0x4b6dcb;_0x53ec48[_0x2ea75c(0x62e)][_0x2ea75c(0x111d)]({'id':_0x21364f['id']})[_0x2ea75c(0x1d77)][_0x2ea75c(0x1cb0)](function(){const _0x38738e=_0x2ea75c;_0x39641b()[_0x38738e(0x152a)](_0x218b45[_0x38738e(0x1863)][_0x38738e(0x2214)],{'id':_0x21364f['id']}),_0x218b45[_0x38738e(0x1863)][_0x38738e(0x184d)]-=0x1,!_0x218b45['smsQueues']['rows']['length']&&_0x218b45[_0x38738e(0x6b3)](),_0x1ab732[_0x38738e(0x829)]({'title':_0x39641b()[_0x38738e(0xa75)](_0x38738e(0x15bf))+'\x20deleted!','msg':_0x21364f['name']?_0x21364f[_0x38738e(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x2ea75c(0x1c4)](function(_0x1d4d54){const _0x188bcc=_0x2ea75c;if(_0x1d4d54[_0x188bcc(0x25c)]&&_0x1d4d54[_0x188bcc(0x25c)]['errors']&&_0x1d4d54[_0x188bcc(0x25c)][_0x188bcc(0x1a7c)][_0x188bcc(0xfd0)]){_0x218b45[_0x188bcc(0x1a7c)]=_0x1d4d54[_0x188bcc(0x25c)][_0x188bcc(0x1a7c)]||[{'message':_0x1d4d54['toString'](),'type':_0x188bcc(0x105e)}];for(let _0x21d44b=0x0;_0x21d44b<_0x1d4d54[_0x188bcc(0x25c)][_0x188bcc(0x1a7c)][_0x188bcc(0xfd0)];_0x21d44b++){_0x1ab732['error']({'title':_0x1d4d54['data']['errors'][_0x21d44b][_0x188bcc(0x66a)],'msg':_0x1d4d54[_0x188bcc(0x25c)][_0x188bcc(0x1a7c)][_0x21d44b]['message']});}}else _0x1ab732[_0x188bcc(0x218e)]({'title':_0x1d4d54[_0x188bcc(0x291)]?_0x188bcc(0xeb9)+_0x1d4d54[_0x188bcc(0x291)]+'\x20-\x20'+_0x1d4d54[_0x188bcc(0xc22)]:_0x188bcc(0x105e),'msg':_0x1d4d54[_0x188bcc(0x25c)]?JSON['stringify'](_0x1d4d54[_0x188bcc(0x25c)]['message']):_0x1d4d54[_0x188bcc(0x155e)]||_0x1d4d54[_0x188bcc(0x147f)]()});});}function _0x4442cc(){const _0x117213=_0x4b6dcb,_0x462d81=angular[_0x117213(0x17fe)](_0x218b45[_0x117213(0x10ef)]);return _0x218b45[_0x117213(0x10ef)]=[],_0x462d81;}function _0xa77a5f(_0xb8114e){const _0x1dae2d=_0x4b6dcb,_0x41b701=_0x316a43['confirm']()[_0x1dae2d(0x1386)](_0x1dae2d(0x19d0))[_0x1dae2d(0x49e)](_0x1dae2d(0x204d)+_0x218b45[_0x1dae2d(0x10ef)][_0x1dae2d(0xfd0)]+'\x20selected'+_0x1dae2d(0x1b6))['ariaLabel'](_0x1dae2d(0x25be))[_0x1dae2d(0x728)](_0xb8114e)['ok']('OK')[_0x1dae2d(0x696)](_0x1dae2d(0x24ba));_0x316a43[_0x1dae2d(0xe27)](_0x41b701)['then'](function(){const _0x371666=_0x1dae2d;_0x218b45[_0x371666(0x10ef)][_0x371666(0xf90)](function(_0x99580c){_0x2f1e1f(_0x99580c);}),_0x218b45[_0x371666(0x10ef)]=[];});}function _0x24b1ad(){const _0x2db5fd=_0x4b6dcb;_0x218b45[_0x2db5fd(0x10ef)]=[];}function _0x296ad8(){const _0x3cd17b=_0x4b6dcb;_0x218b45['selectedSmsQueues']=_0x218b45['smsQueues'][_0x3cd17b(0x2214)];}}const _0x1867d2=_0x2a1c50;;_0x66d4ed[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6),_0x5537c6(0x1f2a)];function _0x66d4ed(_0x2b6dff,_0x1a732a){const _0x267de4=_0x5537c6;_0x2b6dff['state'](_0x267de4(0x6d0),{'abstract':!![],'url':_0x267de4(0x1167)})[_0x267de4(0x27e0)](_0x267de4(0xb02),{'url':_0x267de4(0x1f82),'views':{'content@app':{'templateUrl':_0x18be8d,'controller':_0x267de4(0x25da)}},'resolve':{'smsQueues':[_0x267de4(0x1e0b),_0x267de4(0x1774),function(_0x3ceb0d,_0x149fae){const _0x4d8ffe=_0x267de4;return _0x149fae[_0x4d8ffe(0x22b6)](_0x4d8ffe(0x1c60))?_0x3ceb0d[_0x4d8ffe(0x19a3)](_0x4d8ffe(0x20c3),{'fields':_0x4d8ffe(0x22f3),'sort':_0x4d8ffe(0x282),'channel':'sms','limit':0xa,'offset':0x0}):_0x3ceb0d[_0x4d8ffe(0x19a3)](_0x4d8ffe(0x12da),{'id':_0x149fae['getCurrentUser']()['userProfileId'],'section':'SmsQueues','fields':_0x4d8ffe(0x22f3),'sort':_0x4d8ffe(0x282),'channel':_0x4d8ffe(0x689),'limit':0xa,'offset':0x0});}],'userProfile':[_0x267de4(0x1e0b),_0x267de4(0x1774),function(_0x1d1907,_0xb18c16){const _0x565b4a=_0x267de4;return _0xb18c16[_0x565b4a(0x22b6)]('admin')?null:_0x1d1907['resolve'](_0x565b4a(0x9ae),{'fields':_0x565b4a(0x279),'id':_0xb18c16['getCurrentUser']()[_0x565b4a(0x13c1)]});}],'userProfileSection':['apiResolver',_0x267de4(0x1774),function(_0x360943,_0x3b9ece){const _0x3d87c7=_0x267de4;return _0x3b9ece[_0x3d87c7(0x22b6)](_0x3d87c7(0x1c60))?null:_0x360943['resolve'](_0x3d87c7(0x2182),{'fields':_0x3d87c7(0x1f5f),'userProfileId':_0x3b9ece[_0x3d87c7(0x21e8)]()[_0x3d87c7(0x13c1)],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':_0x267de4(0x689)})[_0x267de4(0x27e0)]('app.sms.smsQueues.edit',{'url':'/:id?tab','params':{'smsQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x55dd3d,'controller':_0x267de4(0x1287)}},'resolve':{'smsQueue':[_0x267de4(0x1e0b),_0x267de4(0x225c),function(_0x374f18,_0x14a941){const _0x49bd1c=_0x267de4;return _0x374f18[_0x49bd1c(0x19a3)](_0x49bd1c(0x20c3),{'fields':_0x49bd1c(0x22f3),'id':_0x14a941['id']});}],'userProfileSection':[_0x267de4(0x1e0b),_0x267de4(0x1774),function(_0x6925e0,_0x22918d){const _0x1c043c=_0x267de4;return _0x6925e0[_0x1c043c(0x19a3)]('userProfileSection@get',{'fields':_0x1c043c(0x1f5f),'userProfileId':_0x22918d['getCurrentUser']()[_0x1c043c(0x13c1)],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':'sms'})[_0x267de4(0x27e0)](_0x267de4(0xa9f),{'url':_0x267de4(0xe05),'views':{'content@app':{'templateUrl':_0xcc4008,'controller':_0x267de4(0x19cb)}},'resolve':{'smsAccounts':[_0x267de4(0x1e0b),_0x267de4(0x1774),function(_0x42561d,_0x53e4b9){const _0x5b2cc7=_0x267de4;return _0x53e4b9[_0x5b2cc7(0x22b6)](_0x5b2cc7(0x1c60))?_0x42561d[_0x5b2cc7(0x19a3)]('smsAccount@get',{'fields':_0x5b2cc7(0x16ae),'sort':_0x5b2cc7(0x282),'limit':0xa,'offset':0x0}):_0x42561d[_0x5b2cc7(0x19a3)]('userProfile@getResources',{'id':_0x53e4b9['getCurrentUser']()['userProfileId'],'section':_0x5b2cc7(0x1b3f),'fields':_0x5b2cc7(0x16ae),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x267de4(0x1774),function(_0x339ff0,_0x27bff0){const _0x5293ac=_0x267de4;return _0x27bff0[_0x5293ac(0x22b6)](_0x5293ac(0x1c60))?null:_0x339ff0[_0x5293ac(0x19a3)](_0x5293ac(0x9ae),{'fields':_0x5293ac(0x279),'id':_0x27bff0[_0x5293ac(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x267de4(0x1e0b),_0x267de4(0x1774),function(_0xcf4f46,_0xa2eb07){const _0x59b07c=_0x267de4;return _0xa2eb07[_0x59b07c(0x22b6)]('admin')?null:_0xcf4f46[_0x59b07c(0x19a3)](_0x59b07c(0x2182),{'fields':_0x59b07c(0x1f5f),'userProfileId':_0xa2eb07[_0x59b07c(0x21e8)]()['userProfileId'],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':'sms'})['state'](_0x267de4(0x280b),{'url':_0x267de4(0x1bf2),'params':{'smsAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5bad63,'controller':_0x267de4(0xd25)}},'resolve':{'smsAccount':[_0x267de4(0x1e0b),'$stateParams',function(_0x1272d9,_0x5887e4){const _0x9ed75=_0x267de4;return _0x1272d9[_0x9ed75(0x19a3)](_0x9ed75(0x55b),{'fields':_0x9ed75(0x16ae),'id':_0x5887e4['id']});}],'userProfileSection':['apiResolver',_0x267de4(0x1774),function(_0x3740d9,_0x5130cf){const _0x552ecd=_0x267de4;return _0x3740d9[_0x552ecd(0x19a3)]('userProfileSection@get',{'fields':_0x552ecd(0x1f5f),'userProfileId':_0x5130cf[_0x552ecd(0x21e8)]()[_0x552ecd(0x13c1)],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':_0x267de4(0x689)}),_0x1a732a[_0x267de4(0x4e7)](_0x267de4(0x1510));}angular[_0x5537c6(0x9ab)](_0x5537c6(0x6d0),[_0x5537c6(0x2770),'ngPassword',_0x5537c6(0x1260),'flow','mdColorPicker',_0x5537c6(0xd19),_0x5537c6(0x44c),_0x5537c6(0x2ec),_0x5537c6(0x1890),'mdPickers','mwFormBuilder',_0x5537c6(0x1b65),'mwFormUtils',_0x5537c6(0x3b9),_0x5537c6(0x7c9),_0x5537c6(0xeb5),_0x5537c6(0x27af),_0x5537c6(0x13b6),_0x5537c6(0x1cbd),_0x5537c6(0xd01),_0x5537c6(0x6a3)])[_0x5537c6(0xa60)](_0x66d4ed)[_0x5537c6(0x6e5)]('CreateOrEditSmsAccountDialogController',_0x3e97b4)[_0x5537c6(0x6e5)](_0x5537c6(0x1d31),_0x35a87e)['controller']('SmsAccountagentaddController',_0x49589e)['controller'](_0x5537c6(0x380),_0x149203)[_0x5537c6(0x6e5)](_0x5537c6(0x1085),_0x396a45)['controller']('EditSmsAccountAppautoreplyDialogController',_0x295ec7)['controller'](_0x5537c6(0x9a1),_0x10b864)[_0x5537c6(0x6e5)](_0x5537c6(0x887),_0x4f1564)[_0x5537c6(0x6e5)]('EditSmsAccountAppgotoifDialogController',_0x204c0c)['controller'](_0x5537c6(0x1b48),_0x305961)[_0x5537c6(0x6e5)](_0x5537c6(0x211e),_0x114ce9)[_0x5537c6(0x6e5)](_0x5537c6(0xb3e),_0x13c46c)[_0x5537c6(0x6e5)](_0x5537c6(0x1a4e),_0x2a1d9e)[_0x5537c6(0x6e5)](_0x5537c6(0x1dd8),_0x1a50e)[_0x5537c6(0x6e5)](_0x5537c6(0xd44),_0x2ebe0e)[_0x5537c6(0x6e5)]('SmsAccountInteractionsController',_0x2c66b2)[_0x5537c6(0x6e5)](_0x5537c6(0x9f1),_0x1b9336)[_0x5537c6(0x6e5)](_0x5537c6(0x14ac),_0x460a49)[_0x5537c6(0x6e5)](_0x5537c6(0x2984),_0x44a904)[_0x5537c6(0x6e5)](_0x5537c6(0x1b8b),_0x45c858)[_0x5537c6(0x6e5)](_0x5537c6(0x21dc),_0x25aa55)[_0x5537c6(0x6e5)]('CreateOrEditSmsQueueDialogController',_0x5626cb)[_0x5537c6(0x6e5)](_0x5537c6(0x1ce5),_0x2c8f24)[_0x5537c6(0x6e5)]('SmsQueueteamaddController',_0x25b17c)[_0x5537c6(0x6e5)](_0x5537c6(0x1c0b),_0x44e651)[_0x5537c6(0x6e5)](_0x5537c6(0x1f7d),_0x1867d2);;const _0x4007d4=_0x5074a3['p']+_0x5537c6(0x2369);;const _0x32d231=_0x5074a3['p']+'src/js/modules/main/apps/openchannel/views/realtime/agents/view.html/view.html';;const _0x59a542=_0x5074a3['p']+_0x5537c6(0x25ac);;_0x11fd6d['$inject']=['$scope','$q',_0x5537c6(0x2168),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0xc34),'pauses','agents',_0x5537c6(0x212d),_0x5537c6(0x142b),_0x5537c6(0x1986),_0x5537c6(0x9bf),_0x5537c6(0x125c),'userProfile',_0x5537c6(0x2199),_0x5537c6(0x1774),'license',_0x5537c6(0x1714)];function _0x11fd6d(_0x45ab33,_0x1552fc,_0x88a035,_0x3bbbca,_0x3520e3,_0x25b7ff,_0x3d74b6,_0x12cbc9,_0x291ce3,_0x4e7997,_0x1bb4fb,_0x49c1d3,_0x57d1bf,_0x57ff72,_0x5c9f5e,_0x50b46f,_0x1d54aa,_0x55c7c8){const _0x5b3acb=_0x5537c6,_0x1d8cac=this,_0x10864d=[_0x5b3acb(0x70a),_0x5b3acb(0xa28),_0x5b3acb(0x24a2),'lastPauseAt',_0x5b3acb(0x16e6),'lastPauseAt','internal',_0x5b3acb(0x16aa),_0x5b3acb(0xf0c),'openchannelPause',_0x5b3acb(0x2035),_0x5b3acb(0x22d3),'whatsappPause',_0x5b3acb(0x1ce),_0x5b3acb(0x2478),_0x5b3acb(0x1aee),'openchannelCapacity',_0x5b3acb(0x2789),_0x5b3acb(0x3d0),_0x5b3acb(0x9cd),_0x5b3acb(0x2451),_0x5b3acb(0x132d),_0x5b3acb(0x1cd3),_0x5b3acb(0x2947),_0x5b3acb(0x2472),_0x5b3acb(0x700),'faxCurrentCapacity','chatStatus',_0x5b3acb(0x1446),_0x5b3acb(0x11b2),_0x5b3acb(0xe82),_0x5b3acb(0x2453),'faxStatus',_0x5b3acb(0x2de),_0x5b3acb(0x1b11),_0x5b3acb(0x22a6),_0x5b3acb(0x568),_0x5b3acb(0x9eb),_0x5b3acb(0x2064),_0x5b3acb(0x1997),_0x5b3acb(0xc9c),_0x5b3acb(0x11cf),'destconnectedlinenum',_0x5b3acb(0x24c5),_0x5b3acb(0x2569),'phoneBarEnableAutomaticScreenRecording'],_0x75150e=[_0x5b3acb(0xf0c),_0x5b3acb(0x1c7d),_0x5b3acb(0x2035),_0x5b3acb(0x22d3),_0x5b3acb(0x24ff),'faxPause',_0x5b3acb(0x2478),_0x5b3acb(0xa28)];_0x1d8cac[_0x5b3acb(0xe76)]=_0x50b46f[_0x5b3acb(0x21e8)](),_0x1d8cac[_0x5b3acb(0x46c)]=[_0x5b3acb(0x1c7e),'inuse','busy','onhold',_0x5b3acb(0x1abd)],_0x1d8cac[_0x5b3acb(0x8de)]=_0x3d74b6||{'count':0x0,'rows':[]},_0x1d8cac[_0x5b3acb(0x8a5)]=_0x1d54aa,_0x1d8cac[_0x5b3acb(0x44a)]=_0x57ff72,_0x1d8cac[_0x5b3acb(0x2199)]=_0x5c9f5e&&_0x5c9f5e['count']==0x1?_0x5c9f5e[_0x5b3acb(0x2214)][0x0]:null,_0x1d8cac[_0x5b3acb(0x1b1a)]=_0x50b46f[_0x5b3acb(0x14ea)](_0x1d8cac[_0x5b3acb(0x2199)]?_0x1d8cac['userProfileSection'][_0x5b3acb(0x1b1a)]:null),_0x1d8cac[_0x5b3acb(0xc12)]=_0x12cbc9?_0x39641b()[_0x5b3acb(0x2631)](_0x12cbc9[_0x5b3acb(0x2214)]?_0x12cbc9[_0x5b3acb(0x2214)]:[],'id'):{},_0x1d8cac['rpcAgents']=_0x291ce3?_0x39641b()[_0x5b3acb(0x2631)](_0x291ce3[_0x5b3acb(0x2214)]?_0x291ce3[_0x5b3acb(0x2214)]:[],'id'):{},_0x1d8cac[_0x5b3acb(0x260a)]={},_0x1d8cac[_0x5b3acb(0x997)]=![],_0x1d8cac[_0x5b3acb(0x237f)]=[],_0x1d8cac['agentInternal']={};for(const _0x1acb53 in _0x1d8cac[_0x5b3acb(0xc12)]){typeof _0x1d8cac[_0x5b3acb(0xc12)][_0x1acb53]!==_0x5b3acb(0x16b5)&&(_0x1d8cac[_0x5b3acb(0xc12)][_0x1acb53][_0x5b3acb(0x1a8e)]=!![]);}_0x1d8cac['query']={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x1d8cac[_0x5b3acb(0x1366)]=_0x48e655,_0x1d8cac[_0x5b3acb(0x6ad)]=_0x2bdaba,_0x1d8cac['pause']=_0x2b5b9c,_0x1d8cac[_0x5b3acb(0x715)]=_0x3e920a,_0x1d8cac[_0x5b3acb(0x191a)]=_0x5b191a,_0x1d8cac['getAgentStatus']=_0x24bfbb,_0x1d8cac[_0x5b3acb(0xfe7)]=_0x1e35d2,_0x1d8cac[_0x5b3acb(0x1090)]=_0x5f1e8b,_0x1d8cac[_0x5b3acb(0x225e)]=_0x2ad14d,_0x1d8cac[_0x5b3acb(0x1bc4)]=_0x1d3985,_0x1d8cac['onSave']=_0x295340,_0x1d8cac['onUpdate']=_0x559299,_0x1d8cac[_0x5b3acb(0x1a34)]=_0x53936d,_0x1d8cac['onConnect']=_0x38fecd,_0x1d8cac['onComplete']=_0x3c603a,_0x1d8cac[_0x5b3acb(0xd97)]=_0x364b2d,_0x1bb4fb['on'](_0x5b3acb(0x2464),_0x1d8cac[_0x5b3acb(0x294c)]),_0x1bb4fb['on'](_0x5b3acb(0x14c6),_0x1d8cac[_0x5b3acb(0x13e7)]),_0x1bb4fb['on']('user:agentconnect',_0x1d8cac[_0x5b3acb(0x1978)]),_0x1bb4fb['on'](_0x5b3acb(0x10b3),_0x1d8cac[_0x5b3acb(0x1b4a)]),_0x53936d();let _0x3e33f9=_0x55c7c8(function(){const _0x7b5084=_0x5b3acb;_0x1d8cac[_0x7b5084(0x997)]&&(_0x1d8cac[_0x7b5084(0x997)]=![],_0x53936d());},0x3e7);function _0x53936d(){const _0x37a65a=_0x5b3acb;_0x1d8cac[_0x37a65a(0x997)]=![];const _0x4b7e90=_0x1552fc[_0x37a65a(0x11f4)]();_0x1d8cac[_0x37a65a(0x2061)]=_0x4b7e90[_0x37a65a(0x2061)],_0x1d8cac[_0x37a65a(0xe0e)]=[],_0x1d8cac['order']=[],_0x39641b()[_0x37a65a(0x1ebd)](_0x1d8cac[_0x37a65a(0xc12)],function(_0x4cded0,_0x36eea4){const _0x5c8efb=_0x37a65a;_0x1d8cac[_0x5c8efb(0x212d)][_0x36eea4]&&_0x39641b()[_0x5c8efb(0x9c1)](_0x4cded0,_0x39641b()['pick'](_0x39641b()[_0x5c8efb(0x1bd8)](_0x1d8cac[_0x5c8efb(0x212d)][_0x36eea4],_0x75150e),_0x10864d)),_0x1e35d2(_0x4cded0),_0x4cded0[_0x5c8efb(0xa28)]?(_0x1d8cac[_0x5c8efb(0xe0e)][_0x5c8efb(0x2785)](_0x4cded0),_0x1d8cac['agentInternal'][_0x4cded0[_0x5c8efb(0xdbd)]]=_0x36eea4):_0x4cded0['globalStatusTime']=_0x39641b()[_0x5c8efb(0x106d)](_0x543b5a()()[_0x5c8efb(0x1f31)]('x'));});_0x1d8cac[_0x37a65a(0xae2)][_0x37a65a(0x1ef1)]&&_0x39641b()['remove'](_0x1d8cac[_0x37a65a(0xe0e)],function(_0x36341e){const _0x58713f=_0x37a65a;return _0x36341e['globalStatus']!==_0x1d8cac['query'][_0x58713f(0x1ef1)];});_0x1d8cac['query'][_0x37a65a(0x25ff)]&&_0x39641b()[_0x37a65a(0x152a)](_0x1d8cac['filteredAgents'],function(_0x2ca96f){const _0x1fdbd5=_0x37a65a;return _0x2ca96f[_0x1fdbd5(0x16e6)]!==_0x1d8cac[_0x1fdbd5(0xae2)]['pauseTypeFilter'];});_0x1d8cac[_0x37a65a(0xae2)][_0x37a65a(0x1c99)]&&_0x39641b()[_0x37a65a(0x152a)](_0x1d8cac[_0x37a65a(0xe0e)],function(_0xeaaf22){const _0x513079=_0x37a65a;return _0xeaaf22[_0x513079(0x1d14)][_0x513079(0x1680)]()[_0x513079(0xd8a)](_0x1d8cac[_0x513079(0xae2)][_0x513079(0x1c99)][_0x513079(0x1680)]())<0x0;});_0x1d8cac[_0x37a65a(0xe0e)]=_0x2a97a7(_0x1d8cac['filteredAgents']);const _0x2a0121=(_0x1d8cac[_0x37a65a(0xae2)][_0x37a65a(0x1c7b)]-0x1)*_0x1d8cac[_0x37a65a(0xae2)]['limit'];_0x1d8cac[_0x37a65a(0x260a)]=_0x39641b()['drop'](_0x1d8cac[_0x37a65a(0xe0e)],_0x2a0121)[_0x37a65a(0x14cb)](0x0,_0x1d8cac[_0x37a65a(0xae2)][_0x37a65a(0x236)]);for(let _0x6cb9c1=0x0;_0x6cb9c1<_0x1d8cac['paginatedAgents'][_0x37a65a(0xfd0)];_0x6cb9c1+=0x1){_0x1d8cac[_0x37a65a(0x237f)][_0x37a65a(0x2785)](_0x1d8cac['paginatedAgents'][_0x6cb9c1]['id']);}_0x4b7e90[_0x37a65a(0x19a3)](),_0x1d8cac[_0x37a65a(0x997)]=!![];}function _0x295340(_0x2aa0e7){const _0xc8aba1=_0x5b3acb;_0x1d8cac[_0xc8aba1(0xc12)][_0x2aa0e7['id']]&&(_0x39641b()['merge'](_0x1d8cac['agents'][_0x2aa0e7['id']],_0x39641b()[_0xc8aba1(0x169b)](_0x39641b()[_0xc8aba1(0x1bd8)](_0x2aa0e7,_0x75150e),_0x10864d)),_0x39641b()['merge'](_0x1d8cac['rpcAgents'][_0x2aa0e7['id']],_0x39641b()['pick'](_0x39641b()[_0xc8aba1(0x1bd8)](_0x2aa0e7,_0x75150e),_0x10864d)),_0x1e35d2(_0x1d8cac[_0xc8aba1(0xc12)][_0x2aa0e7['id']]));}function _0x559299(_0x217a4e){const _0x4d02a0=_0x5b3acb;_0x1d8cac[_0x4d02a0(0xc12)][_0x217a4e['id']]&&(_0x39641b()[_0x4d02a0(0x9c1)](_0x1d8cac[_0x4d02a0(0xc12)][_0x217a4e['id']],_0x39641b()['pick'](_0x217a4e,_0x10864d)),_0x39641b()[_0x4d02a0(0x9c1)](_0x1d8cac[_0x4d02a0(0x212d)][_0x217a4e['id']],_0x39641b()[_0x4d02a0(0x169b)](_0x217a4e,_0x10864d)),_0x217a4e[_0x4d02a0(0x25db)]&&(_0x1d8cac['agents'][_0x217a4e['id']][_0x4d02a0(0xdb9)]=_0x217a4e[_0x4d02a0(0x25db)],_0x1d8cac['rpcAgents'][_0x217a4e['id']][_0x4d02a0(0xdb9)]=_0x217a4e[_0x4d02a0(0x25db)]),_0x1e35d2(_0x1d8cac[_0x4d02a0(0xc12)][_0x217a4e['id']]));}function _0x38fecd(_0x18f763){const _0x4d1599=_0x5b3acb;_0x1d8cac[_0x4d1599(0xc12)][_0x1d8cac[_0x4d1599(0x1fdd)][_0x18f763[_0x4d1599(0x7ea)]]]&&(_0x39641b()[_0x4d1599(0x9c1)](_0x1d8cac[_0x4d1599(0xc12)][_0x1d8cac[_0x4d1599(0x1fdd)][_0x18f763['destaccountcode']]],_0x39641b()[_0x4d1599(0x169b)](_0x18f763,[_0x4d1599(0x11cf),_0x4d1599(0x247)])),_0x39641b()[_0x4d1599(0x9c1)](_0x1d8cac['rpcAgents'][_0x1d8cac[_0x4d1599(0x1fdd)][_0x18f763['destaccountcode']]],_0x39641b()[_0x4d1599(0x169b)](_0x18f763,[_0x4d1599(0x11cf),_0x4d1599(0x247)])));}function _0x3c603a(_0x26849f){const _0x559cb8=_0x5b3acb;_0x1d8cac[_0x559cb8(0xc12)][_0x1d8cac[_0x559cb8(0x1fdd)][_0x26849f[_0x559cb8(0x7ea)]]]&&(_0x1d8cac['agents'][_0x1d8cac[_0x559cb8(0x1fdd)][_0x26849f[_0x559cb8(0x7ea)]]]=_0x39641b()[_0x559cb8(0x1bd8)](_0x1d8cac[_0x559cb8(0xc12)][_0x1d8cac['agentInternal'][_0x26849f[_0x559cb8(0x7ea)]]],[_0x559cb8(0x11cf),_0x559cb8(0x247)]),_0x1d8cac[_0x559cb8(0x212d)][_0x1d8cac[_0x559cb8(0x1fdd)][_0x26849f[_0x559cb8(0x7ea)]]]=_0x39641b()[_0x559cb8(0x1bd8)](_0x1d8cac[_0x559cb8(0x212d)][_0x1d8cac[_0x559cb8(0x1fdd)][_0x26849f[_0x559cb8(0x7ea)]]],[_0x559cb8(0x11cf),_0x559cb8(0x247)]));}function _0x48e655(_0x15ef68){const _0x38942a=_0x5b3acb;return _0x4e7997[_0x38942a(0xebe)][_0x38942a(0x1366)]({'id':_0x15ef68['id'],'device':_0x38942a(0x217b),'agent_id':_0x15ef68['id'],'agent_name':_0x15ef68[_0x38942a(0x16b6)]})[_0x38942a(0x1d77)][_0x38942a(0x1cb0)](function(){const _0x1cae53=_0x38942a;_0x49c1d3[_0x1cae53(0x829)]({'title':_0x1cae53(0x23af),'msg':_0x15ef68[_0x1cae53(0x1d14)]+'\x20\x20properly\x20logout'}),_0x1d8cac['agents'][_0x15ef68['id']]&&(_0x1d8cac[_0x1cae53(0xc12)][_0x15ef68['id']][_0x1cae53(0xa28)]=![]),_0x1d8cac['rpcAgents'][_0x15ef68['id']]&&(_0x1d8cac[_0x1cae53(0x212d)][_0x15ef68['id']]['online']=![]),_0x53936d();})[_0x38942a(0x1c4)](function(_0x141996){const _0x46c2f9=_0x38942a;_0x49c1d3['error']({'title':_0x141996[_0x46c2f9(0x291)]?_0x46c2f9(0xeb9)+_0x141996[_0x46c2f9(0x291)]+_0x46c2f9(0x1657)+_0x141996['statusText']:'api.staff.save','msg':_0x141996[_0x46c2f9(0x25c)]?JSON[_0x46c2f9(0x2701)](_0x141996[_0x46c2f9(0x25c)][_0x46c2f9(0x155e)]):_0x141996[_0x46c2f9(0x147f)]()});});}function _0x2b5b9c(_0x529732,_0x2dd9fa){const _0x37130c=_0x5b3acb;return _0x4e7997[_0x37130c(0xebe)][_0x37130c(0x785)]({'id':_0x529732['id'],'type':_0x2dd9fa})[_0x37130c(0x1d77)][_0x37130c(0x1cb0)](function(_0x3d4b33){const _0xc401b7=_0x37130c;_0x1d8cac['agents'][_0x529732['id']]&&_0x39641b()[_0xc401b7(0x9c1)](_0x1d8cac[_0xc401b7(0xc12)][_0x529732['id']],_0x39641b()[_0xc401b7(0x169b)](_0x3d4b33,_0x10864d)),_0x1d8cac['rpcAgents'][_0x529732['id']]&&_0x39641b()[_0xc401b7(0x9c1)](_0x1d8cac[_0xc401b7(0x212d)][_0x529732['id']],_0x39641b()[_0xc401b7(0x169b)](_0x3d4b33,_0x10864d)),_0x1e35d2(_0x1d8cac[_0xc401b7(0xc12)][_0x529732['id']]);})[_0x37130c(0x1c4)](function(_0x5de079){const _0x596553=_0x37130c;_0x49c1d3['error']({'title':_0x5de079[_0x596553(0x291)]?_0x596553(0xeb9)+_0x5de079[_0x596553(0x291)]+_0x596553(0x1657)+_0x5de079[_0x596553(0xc22)]:_0x596553(0xcd6),'msg':_0x5de079[_0x596553(0x25c)]?JSON[_0x596553(0x2701)](_0x5de079[_0x596553(0x25c)]['message']):_0x5de079[_0x596553(0x147f)]()});});}function _0x3e920a(_0x26361b){const _0x1116bd=_0x5b3acb;return _0x4e7997[_0x1116bd(0xebe)][_0x1116bd(0xf5d)]({'id':_0x26361b['id']})[_0x1116bd(0x1d77)]['then'](function(_0x5c347d){const _0x2075f0=_0x1116bd;_0x1d8cac[_0x2075f0(0xc12)][_0x26361b['id']]&&_0x39641b()['merge'](_0x1d8cac[_0x2075f0(0xc12)][_0x26361b['id']],_0x39641b()[_0x2075f0(0x169b)](_0x5c347d,_0x10864d)),_0x1d8cac['rpcAgents'][_0x26361b['id']]&&_0x39641b()[_0x2075f0(0x9c1)](_0x1d8cac[_0x2075f0(0x212d)][_0x26361b['id']],_0x39641b()[_0x2075f0(0x169b)](_0x5c347d,_0x10864d)),_0x1e35d2(_0x1d8cac['agents'][_0x26361b['id']]);})['catch'](function(_0x31cc31){const _0x365d39=_0x1116bd;_0x49c1d3['error']({'title':_0x31cc31[_0x365d39(0x291)]?_0x365d39(0xeb9)+_0x31cc31[_0x365d39(0x291)]+'\x20-\x20'+_0x31cc31['statusText']:_0x365d39(0xcd6),'msg':_0x31cc31[_0x365d39(0x25c)]?JSON[_0x365d39(0x2701)](_0x31cc31['data'][_0x365d39(0x155e)]):_0x31cc31[_0x365d39(0x147f)]()});});}function _0x5b191a(_0x4f64e7){const _0x21cc06=_0x5b3acb;_0x3bbbca[_0x21cc06(0xe27)](_0x3bbbca['alert']()[_0x21cc06(0x27e1)](!![])[_0x21cc06(0x1386)](_0x21cc06(0x1bc1))[_0x21cc06(0x49e)](_0x21cc06(0x26a))['ok']('Ok')[_0x21cc06(0x728)](_0x4f64e7));}function _0x2bdaba(_0x723a0f,_0x2f3f37){const _0x3915a7=_0x5b3acb;_0x3bbbca[_0x3915a7(0xe27)]({'controller':_0x3915a7(0x7e6),'controllerAs':'vm','templateUrl':_0x535a6f,'parent':angular[_0x3915a7(0x1853)](_0x3520e3[_0x3915a7(0x1ed9)]),'targetEvent':_0x2f3f37,'clickOutsideToClose':!![],'locals':{'agent':_0x723a0f,'agents':[],'channel':_0x3915a7(0x15e0),'direction':'inbound','crudPermissions':_0x1d8cac[_0x3915a7(0x1b1a)]}});}function _0x5f1e8b(_0x378fef){const _0x5c4de3=_0x5b3acb;return _0x378fef===_0x5c4de3(0x785)||_0x378fef===_0x5c4de3(0x1767);}function _0x2ad14d(_0x5e6fae){const _0x24f1fc=_0x5b3acb;return _0x5e6fae===_0x24f1fc(0x785);}function _0x1d3985(_0x12c675){return _0x12c675==='*pause';}function _0x652f7(_0x27808f){const _0xdf1d77=_0x5b3acb;return _0x27808f===_0xdf1d77(0x8df)||_0x27808f===_0xdf1d77(0x1c9d)||_0x27808f==='unavailable'||_0x27808f===_0xdf1d77(0x1c7e)||_0x39641b()[_0xdf1d77(0x958)](_0x27808f);}function _0x24bfbb(_0x138e6d,_0x505502){const _0x526566=_0x5b3acb;if(_0x505502===_0x526566(0x1fd4)){if(_0x138e6d[_0x505502+_0x526566(0x938)]!==_0x526566(0x8df))return _0x138e6d[_0x505502+'Status'];if(_0x138e6d[_0x505502+_0x526566(0x1e09)])return _0x138e6d[_0x505502+_0x526566(0x938)]=_0x526566(0x785),'pause';return _0x526566(0x8df);}else{if(_0x138e6d[_0x505502+_0x526566(0x1e09)])return _0x138e6d[_0x505502+_0x526566(0x938)]=_0x526566(0x785),_0x526566(0x785);return _0x138e6d[_0x505502+_0x526566(0x938)];}}function _0x1e35d2(_0x550365){const _0x178173=_0x5b3acb;let _0x16ab4f=_0x178173(0x1c9d);if(_0x39641b()[_0x178173(0x1aa3)]([_0x24bfbb(_0x550365,_0x178173(0x1fd4)),_0x24bfbb(_0x550365,_0x178173(0x174c)),_0x24bfbb(_0x550365,'mail'),_0x24bfbb(_0x550365,'openchannel'),_0x24bfbb(_0x550365,_0x178173(0x689)),_0x24bfbb(_0x550365,'whatsapp'),_0x24bfbb(_0x550365,_0x178173(0x1944))],_0x5f1e8b))_0x16ab4f=_0x178173(0x785);else{if(_0x39641b()[_0x178173(0x727)]([_0x24bfbb(_0x550365,'voice'),_0x24bfbb(_0x550365,_0x178173(0x174c)),_0x24bfbb(_0x550365,_0x178173(0x2651)),_0x24bfbb(_0x550365,_0x178173(0x15e0)),_0x24bfbb(_0x550365,_0x178173(0x689)),_0x24bfbb(_0x550365,_0x178173(0x2476)),_0x24bfbb(_0x550365,_0x178173(0x1944))],_0x5f1e8b))_0x16ab4f='*pause';else _0x39641b()[_0x178173(0x1aa3)]([_0x24bfbb(_0x550365,_0x178173(0x1fd4)),_0x24bfbb(_0x550365,'chat'),_0x24bfbb(_0x550365,_0x178173(0x2651)),_0x24bfbb(_0x550365,_0x178173(0x15e0)),_0x24bfbb(_0x550365,_0x178173(0x689)),_0x24bfbb(_0x550365,_0x178173(0x2476)),_0x24bfbb(_0x550365,'fax')],_0x652f7)?_0x16ab4f=_0x178173(0x8df):_0x16ab4f=_0x178173(0x5b2);}_0x550365['globalStatus']!==_0x16ab4f&&(_0x550365[_0x178173(0x1fbe)]=_0x16ab4f,_0x550365[_0x178173(0x1a8e)]?(_0x550365[_0x178173(0x1a8e)]=![],_0x550365[_0x178173(0xdb9)]=_0x5f1e8b(_0x16ab4f)?_0x39641b()[_0x178173(0x106d)](_0x543b5a()(_0x550365['lastPauseAt'])[_0x178173(0x1f31)]('x')):_0x39641b()[_0x178173(0xb33)]([_0x550365[_0x178173(0xc9c)],_0x550365[_0x178173(0x1b11)],_0x550365['mailStatusTime'],_0x550365['smsStatusTime'],_0x550365[_0x178173(0x2064)],_0x550365[_0x178173(0x22a6)],_0x550365[_0x178173(0x1997)]])):_0x550365[_0x178173(0xdb9)]=_0x39641b()[_0x178173(0x106d)](_0x543b5a()()[_0x178173(0x1f31)]('x')));}function _0x2a97a7(_0x467f12){const _0x261b67=_0x5b3acb,_0x11af5a=_0x39641b()[_0x261b67(0x1f2c)](_0x1d8cac[_0x261b67(0xae2)][_0x261b67(0x237f)],'-')?_0x261b67(0x20a5):_0x261b67(0x24cc);return _0x39641b()[_0x261b67(0x17ca)](_0x467f12,[_0x1d8cac[_0x261b67(0xae2)][_0x261b67(0x237f)][_0x261b67(0x288f)]('-','')],[_0x11af5a]);}function _0x357104(){_0x3e33f9&&(_0x55c7c8['cancel'](_0x3e33f9),_0x3e33f9=null);}function _0x364b2d(_0x32373e,_0x2b828f){const _0x30a0c2=_0x5b3acb;return _0x4e7997['user'][_0x30a0c2(0x687)]({'id':_0x32373e['id']},{'screenrecording':_0x2b828f})[_0x30a0c2(0x1d77)][_0x30a0c2(0x1c4)](function(_0x70dd1b){const _0x4eba01=_0x30a0c2;_0x49c1d3['error']({'title':_0x70dd1b[_0x4eba01(0x291)]?_0x4eba01(0xeb9)+_0x70dd1b[_0x4eba01(0x291)]+_0x4eba01(0x1657)+_0x70dd1b[_0x4eba01(0xc22)]:_0x4eba01(0x498),'msg':_0x70dd1b[_0x4eba01(0x25c)]?JSON[_0x4eba01(0x2701)](_0x70dd1b[_0x4eba01(0x25c)][_0x4eba01(0x155e)]):_0x70dd1b['toString']()});});}_0x45ab33[_0x5b3acb(0x1d6)](_0x5b3acb(0x291c),function(){const _0x32f40a=_0x5b3acb;_0x1bb4fb[_0x32f40a(0xfb8)]('user:save'),_0x1bb4fb[_0x32f40a(0xfb8)](_0x32f40a(0x14c6)),_0x1bb4fb[_0x32f40a(0xfb8)](_0x32f40a(0x2290)),_0x1bb4fb[_0x32f40a(0xfb8)](_0x32f40a(0x10b3)),_0x357104();});}const _0x155424=_0x11fd6d;;const _0x545202=_0x5074a3['p']+_0x5537c6(0x7f9);;const _0x29f6f5=_0x5074a3['p']+'src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/agentadd/agentadd.html/agentadd.html';;_0x3637e3[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2168),_0x5537c6(0xcb9),'$q',_0x5537c6(0x22bf),'$interval',_0x5537c6(0x971),_0x5537c6(0x2255),_0x5537c6(0x142b),_0x5537c6(0x1986),_0x5537c6(0x9bf),'userProfile',_0x5537c6(0x2199),_0x5537c6(0x1774)];function _0x3637e3(_0x5d8f51,_0x287f66,_0x46dd5b,_0x51ba8f,_0x5ae495,_0xeb52c,_0x3be07e,_0x11adf9,_0x5aa0cd,_0x247d22,_0x425466,_0x4026fb,_0x341260,_0x4bf488){const _0x815d98=_0x5537c6,_0x43e925=this,_0x242896=[_0x815d98(0x22dc),_0x815d98(0x2803),_0x815d98(0x26b6),_0x815d98(0x192a),_0x815d98(0xfb2),_0x815d98(0x2315),_0x815d98(0x155e),_0x815d98(0x737),_0x815d98(0xda8),_0x815d98(0xf67),_0x815d98(0x139c)];_0x43e925[_0x815d98(0xe76)]=_0x4bf488['getCurrentUser'](),_0x43e925[_0x815d98(0x184d)]=_0x3be07e[_0x815d98(0x184d)]?_0x3be07e[_0x815d98(0x184d)]:0x0,_0x43e925['queues']=_0x3be07e?_0x39641b()['keyBy'](_0x3be07e['rows']?_0x3be07e[_0x815d98(0x2214)]:[],'id'):{},_0x43e925[_0x815d98(0x2255)]=_0x11adf9?_0x39641b()[_0x815d98(0x2631)](_0x11adf9[_0x815d98(0x2214)]?_0x11adf9[_0x815d98(0x2214)]:[],'id'):{},_0x43e925[_0x815d98(0x44a)]=_0x4026fb,_0x43e925[_0x815d98(0x2199)]=_0x341260&&_0x341260[_0x815d98(0x184d)]==0x1?_0x341260[_0x815d98(0x2214)][0x0]:null,_0x43e925[_0x815d98(0x1b1a)]=_0x4bf488[_0x815d98(0x14ea)](_0x43e925[_0x815d98(0x2199)]?_0x43e925['userProfileSection'][_0x815d98(0x1b1a)]:null);_0x4bf488[_0x815d98(0x22b6)](_0x815d98(0x1c60))?_0x43e925[_0x815d98(0xae2)]={'type':_0x815d98(0x26c0),'sort':_0x815d98(0x282),'limit':0xa,'page':0x1}:_0x43e925[_0x815d98(0xae2)]={'id':_0x43e925[_0x815d98(0xe76)]['id'],'channel':'openchannel','type':_0x815d98(0x26c0),'sort':_0x815d98(0x282),'limit':0xa,'page':0x1};_0x43e925[_0x815d98(0x829)]=_0xf5e26,_0x43e925['getQueues']=_0x23dbc6,_0x43e925['createOrEditOpenchannelQueue']=_0x22db26,_0x43e925[_0x815d98(0x1be7)]=_0x16bd13,_0x43e925['updateQueue']=_0x25399c,_0x43e925[_0x815d98(0x294c)]=_0x202123,_0x43e925[_0x815d98(0xc88)]=_0x563f7e,_0x43e925[_0x815d98(0x365)]=_0x2000ff,_0x43e925[_0x815d98(0x18e4)]=_0x54fc5d,_0x43e925['onLogin']=_0x5dff71,_0x43e925[_0x815d98(0x3be)]=_0x2cee6d,_0x43e925[_0x815d98(0x129c)]=_0x371fd2,_0x43e925['order']=[],_0x39641b()[_0x815d98(0x1ebd)](_0x43e925['queues'],function(_0xff89d9){const _0x5609f2=_0x815d98;_0x43e925[_0x5609f2(0x237f)][_0x5609f2(0x2785)](_0xff89d9['id']);}),_0x247d22['on'](_0x815d98(0xc78),_0x43e925[_0x815d98(0x294c)]),_0x247d22['on'](_0x815d98(0xe20),_0x43e925['onSaveMember']),_0x247d22['on'](_0x815d98(0x1b0a),_0x43e925[_0x815d98(0x365)]),_0x247d22['on']('user:update',_0x43e925[_0x815d98(0x18e4)]),_0x247d22['on'](_0x815d98(0x201e),_0x43e925[_0x815d98(0x3be)]),_0x247d22['on'](_0x815d98(0x828),_0x43e925['onLogin']);function _0x371fd2(){const _0x63a437=_0x815d98,_0x2ea82f=[];return _0x39641b()['forIn'](_0x43e925[_0x63a437(0x971)],function(_0x1234f9,_0x56dc23){const _0x2944b3=_0x63a437;_0x1234f9['paused']=0x0,_0x1234f9['loggedInDb']=0x0,_0x43e925[_0x2944b3(0x971)][_0x56dc23]['agents']={},_0x2ea82f['push'](_0x5aa0cd[_0x2944b3(0x3a9)][_0x2944b3(0x11dd)]({'id':_0x56dc23})[_0x2944b3(0x1d77)]),_0x43e925[_0x2944b3(0x2255)][_0x56dc23]&&_0x39641b()[_0x2944b3(0x9c1)](_0x1234f9,_0x39641b()[_0x2944b3(0x169b)](_0x43e925[_0x2944b3(0x2255)][_0x56dc23],_0x242896));}),_0x51ba8f[_0x63a437(0x223b)](_0x2ea82f)[_0x63a437(0x1cb0)](function(_0x568717){const _0x4ab0dc=_0x63a437;for(let _0x1e0cdf=0x0;_0x1e0cdf<_0x568717['length'];_0x1e0cdf+=0x1){for(let _0x2f5540=0x0;_0x2f5540<_0x568717[_0x1e0cdf][_0x4ab0dc(0x2214)][_0x4ab0dc(0xfd0)];_0x2f5540++){_0x568717[_0x1e0cdf]['rows'][_0x2f5540]['paused']&&_0x43e925[_0x4ab0dc(0x971)][_0x568717[_0x1e0cdf][_0x4ab0dc(0x2214)][_0x2f5540][_0x4ab0dc(0x483)]][_0x4ab0dc(0x139c)]++,_0x43e925[_0x4ab0dc(0x971)][_0x568717[_0x1e0cdf][_0x4ab0dc(0x2214)][_0x2f5540]['OpenchannelQueueId']][_0x4ab0dc(0x29a2)]++,_0x43e925[_0x4ab0dc(0x971)][_0x568717[_0x1e0cdf][_0x4ab0dc(0x2214)][_0x2f5540]['OpenchannelQueueId']][_0x4ab0dc(0xc12)][_0x568717[_0x1e0cdf][_0x4ab0dc(0x2214)][_0x2f5540][_0x4ab0dc(0x21ab)]]=_0x568717[_0x1e0cdf][_0x4ab0dc(0x2214)][_0x2f5540][_0x4ab0dc(0x483)];}}})[_0x63a437(0x1c4)](function(_0x43b699){const _0x29190c=_0x63a437;console[_0x29190c(0x218e)](_0x43b699);});}function _0x202123(_0x25c52c){const _0x399c5f=_0x815d98;_0x43e925[_0x399c5f(0x971)][_0x25c52c['id']]&&_0x39641b()[_0x399c5f(0x9c1)](_0x43e925[_0x399c5f(0x971)][_0x25c52c['id']],_0x39641b()[_0x399c5f(0x169b)](_0x25c52c,_0x242896));}function _0x563f7e(_0x3d490a){const _0x468360=_0x815d98;_0x43e925[_0x468360(0x971)][_0x3d490a[_0x468360(0x483)]]&&_0x43e925[_0x468360(0x971)][_0x3d490a[_0x468360(0x483)]][_0x468360(0x29a2)]++;}function _0x2000ff(_0x780e1a){const _0x1f7fbb=_0x815d98;_0x43e925[_0x1f7fbb(0x971)][_0x780e1a[_0x1f7fbb(0x483)]]&&_0x43e925[_0x1f7fbb(0x971)][_0x780e1a[_0x1f7fbb(0x483)]]['loggedInDb']--;}function _0x54fc5d(_0x946904){const _0x398aeb=_0x815d98;console[_0x398aeb(0x1b4f)](_0x398aeb(0x18e4),_0x946904);if(_0x946904[_0x398aeb(0x2478)])_0x39641b()[_0x398aeb(0x1ebd)](_0x43e925['queues'],function(_0x58759b){const _0x5f029b=_0x398aeb;_0x58759b[_0x5f029b(0xc12)][_0x946904['id']]&&(_0x58759b[_0x5f029b(0x139c)]+=0x1,console[_0x5f029b(0x1b4f)]('pause'));});else!_0x946904['voicePause']&&_0x39641b()[_0x398aeb(0x1ebd)](_0x43e925['queues'],function(_0x2e1d57){const _0x45e01c=_0x398aeb;_0x2e1d57['agents'][_0x946904['id']]&&(_0x2e1d57['paused']>0x0&&(_0x2e1d57[_0x45e01c(0x139c)]-=0x1,console[_0x45e01c(0x1b4f)](_0x45e01c(0xf5d))));});}function _0x5dff71(_0x4333fa){const _0x48c345=_0x815d98;console['log'](_0x48c345(0x2557),_0x4333fa),_0x43e925[_0x48c345(0x971)][_0x4333fa[_0x48c345(0x483)]]&&(_0x43e925[_0x48c345(0x971)][_0x4333fa[_0x48c345(0x483)]][_0x48c345(0x29a2)]+=0x1,_0x43e925['queues'][_0x4333fa[_0x48c345(0x483)]][_0x48c345(0xc12)][_0x4333fa[_0x48c345(0x21ab)]]=_0x4333fa[_0x48c345(0x483)]);}function _0x2cee6d(_0x207719){const _0x5240b7=_0x815d98;console[_0x5240b7(0x1b4f)]('onLogout',_0x207719),_0x43e925[_0x5240b7(0x971)][_0x207719[_0x5240b7(0x483)]]&&_0x43e925[_0x5240b7(0x971)][_0x207719['OpenchannelQueueId']][_0x5240b7(0x29a2)]>0x0&&(_0x43e925['queues'][_0x207719[_0x5240b7(0x483)]][_0x5240b7(0x29a2)]-=0x1,delete _0x43e925['queues'][_0x207719[_0x5240b7(0x483)]][_0x5240b7(0xc12)][_0x207719[_0x5240b7(0x21ab)]]);}let _0x5d7727=!![],_0x1153e3=0x1;_0x5d8f51[_0x815d98(0x614)](_0x815d98(0x957),function(_0x239cb5,_0x6dea59){const _0x4ff86b=_0x815d98;_0x5d7727?_0x287f66(function(){_0x5d7727=![];}):(!_0x6dea59&&(_0x1153e3=_0x43e925['query']['page']),_0x239cb5!==_0x6dea59&&(_0x43e925[_0x4ff86b(0xae2)][_0x4ff86b(0x1c7b)]=0x1),!_0x239cb5&&(_0x43e925[_0x4ff86b(0xae2)][_0x4ff86b(0x1c7b)]=_0x1153e3),_0x43e925[_0x4ff86b(0x13e9)]());});function _0xf5e26(_0x3ade97){const _0x3e1310=_0x815d98;_0x43e925[_0x3e1310(0x184d)]=_0x3ade97[_0x3e1310(0x184d)],_0x43e925[_0x3e1310(0x971)]=_0x3ade97?_0x39641b()['keyBy'](_0x3ade97['rows']?_0x3ade97[_0x3e1310(0x2214)]:[],'id'):{};if(_0x3ade97[_0x3e1310(0x2214)]){_0x43e925[_0x3e1310(0x237f)]=[];for(let _0x2f0ebb=0x0;_0x2f0ebb<_0x3ade97[_0x3e1310(0x2214)][_0x3e1310(0xfd0)];_0x2f0ebb++){_0x43e925['order'][_0x3e1310(0x2785)](_0x3ade97[_0x3e1310(0x2214)][_0x2f0ebb]['id']);}}_0x371fd2();}function _0x23dbc6(){const _0x150e4b=_0x815d98;_0x43e925[_0x150e4b(0xae2)][_0x150e4b(0x184b)]=(_0x43e925[_0x150e4b(0xae2)][_0x150e4b(0x1c7b)]-0x1)*_0x43e925[_0x150e4b(0xae2)][_0x150e4b(0x236)],_0x4bf488[_0x150e4b(0x22b6)]('admin')?_0x43e925[_0x150e4b(0x2061)]=_0x5aa0cd['openchannelQueue'][_0x150e4b(0xbf7)](_0x43e925[_0x150e4b(0xae2)],_0xf5e26)['$promise']:(_0x43e925['query']['id']=_0x43e925[_0x150e4b(0x44a)]['id'],_0x43e925[_0x150e4b(0xae2)][_0x150e4b(0x1f74)]='OpenchannelQueues',_0x43e925[_0x150e4b(0x2061)]=_0x5aa0cd[_0x150e4b(0x44a)][_0x150e4b(0x1810)](_0x43e925[_0x150e4b(0xae2)],_0xf5e26)[_0x150e4b(0x1d77)]);}function _0x22db26(_0x2d3ab1,_0xbbddb2){const _0x446cd9=_0x815d98;_0x46dd5b[_0x446cd9(0xe27)]({'controller':_0x446cd9(0xf79),'controllerAs':'vm','templateUrl':_0x545202,'parent':angular['element'](_0x5ae495['body']),'targetEvent':_0x2d3ab1,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0xbbddb2,'openchannelQueues':_0x39641b()['values'](_0x43e925[_0x446cd9(0x971)]),'license':null,'setting':null,'crudPermissions':_0x43e925['crudPermissions']}});}function _0x16bd13(_0x16543f,_0x2293f4){const _0x5b7fa8=_0x815d98;_0x46dd5b[_0x5b7fa8(0xe27)]({'controller':_0x5b7fa8(0x168b),'controllerAs':'vm','templateUrl':_0x29f6f5,'parent':angular[_0x5b7fa8(0x1853)](_0x5ae495[_0x5b7fa8(0x1ed9)]),'targetEvent':_0x16543f,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x2293f4,'openchannelQueues':_0x43e925['queues']?_0x43e925[_0x5b7fa8(0x971)][_0x5b7fa8(0x2214)]:[],'realtime':![],'crudPermissions':_0x43e925[_0x5b7fa8(0x1b1a)]}});}function _0x25399c(_0x55695b){const _0x202133=_0x815d98;return _0x5aa0cd[_0x202133(0x3a9)]['update'](_0x55695b)[_0x202133(0x1d77)][_0x202133(0x1cb0)](function(){const _0x4ce33d=_0x202133;_0x425466[_0x4ce33d(0x829)]({'title':_0x4ce33d(0x264c),'msg':_0x55695b[_0x4ce33d(0x16b6)]?_0x55695b[_0x4ce33d(0x16b6)]+'\x20has\x20been\x20updated!':''});})[_0x202133(0x1c4)](function(_0x5b0407){const _0x9c363c=_0x202133;_0x425466['error']({'title':_0x9c363c(0x454),'msg':_0x5b0407[_0x9c363c(0x155e)]});});}_0x5d8f51[_0x815d98(0x1d6)]('$destroy',function(){const _0x81d027=_0x815d98;_0x247d22[_0x81d027(0xfb8)](_0x81d027(0xc78)),_0x247d22[_0x81d027(0xfb8)](_0x81d027(0x1b0a)),_0x247d22[_0x81d027(0xfb8)](_0x81d027(0xe20)),_0x247d22['removeAllListeners'](_0x81d027(0x14c6)),_0x247d22['removeAllListeners'](_0x81d027(0x201e)),_0x247d22[_0x81d027(0xfb8)](_0x81d027(0x828));});}const _0x3d341d=_0x3637e3;;function _0x1e3702(){const _0x337022=_0x5537c6;return{'status':{'registered':_0x337022(0x1170),'unregistered':_0x337022(0x29a3),'lagged':_0x337022(0x29a3),'reachable':_0x337022(0x1170),'unreachable':_0x337022(0x29a3),'unknown':_0x337022(0xb74)},'state':{'unknown':_0x337022(0x181),'not_inuse':_0x337022(0x25c2),'inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0x337022(0x35b),'invalid':_0x337022(0x181),'unavailable':'grey-fg\x20icon-phone-hangup','ringing':_0x337022(0x1c43),'ringinuse':_0x337022(0x1c43),'onhold':_0x337022(0x1825)},'channelStatus':{'ring':_0x337022(0x1c43),'up':_0x337022(0x142f),'hangup':_0x337022(0xe67)},'channelStatusOut':{'ring':_0x337022(0x53c),'up':_0x337022(0x142f),'hangup':_0x337022(0xe67)}};}const _0x3c5646=_0x1e3702;;_0xd361bc[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x1986)];function _0xd361bc(_0x32dd87,_0x4738e0,_0x2cb643){const _0x15c4e5=_0x5537c6,_0x154e35=this;_0x2cb643[_0x15c4e5(0x22e8)](),_0x2cb643['connect'](),_0x154e35[_0x15c4e5(0x8ec)]=0x0;switch(_0x4738e0[_0x15c4e5(0x1970)]['name']){case _0x15c4e5(0x1a69):_0x154e35[_0x15c4e5(0x8ec)]=0x0;break;case'app.openchannel.realtime.queues':_0x154e35[_0x15c4e5(0x8ec)]=0x1;break;default:_0x154e35[_0x15c4e5(0x8ec)]=0x0,_0x4738e0['go'](_0x15c4e5(0x1a69));}_0x32dd87['$watch'](_0x15c4e5(0x1ced),function(_0x465996,_0x29af98){const _0x455976=_0x15c4e5;if(_0x465996!==_0x29af98)switch(_0x465996){case 0x0:_0x4738e0['go'](_0x455976(0x1a69));break;case 0x1:_0x4738e0['go'](_0x455976(0x215a));break;default:_0x4738e0['go'](_0x455976(0x1a69));}});}const _0x2eeb79=_0xd361bc;;_0x19d710[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6)];function _0x19d710(_0x11ca33){const _0x572576=_0x5537c6;_0x11ca33[_0x572576(0x27e0)](_0x572576(0x19f9),{'url':_0x572576(0x1625),'views':{'content@app':{'templateUrl':_0x4007d4,'controller':_0x572576(0x1578)}},'resolve':{'userProfile':['apiResolver',_0x572576(0x1774),function(_0x28b850,_0x5cfa9c){const _0x590117=_0x572576;return _0x5cfa9c[_0x590117(0x22b6)]('admin')?null:_0x28b850[_0x590117(0x19a3)](_0x590117(0x9ae),{'fields':'id,name,crudPermissions','id':_0x5cfa9c[_0x590117(0x21e8)]()[_0x590117(0x13c1)]});}],'userProfileSection':[_0x572576(0x1e0b),_0x572576(0x1774),function(_0xbd3b7f,_0x14fffc){const _0x42f758=_0x572576;return _0x14fffc['hasRole']('admin')?null:_0xbd3b7f[_0x42f758(0x19a3)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x14fffc[_0x42f758(0x21e8)]()[_0x42f758(0x13c1)],'sectionId':0x32a});}]},'authenticate':!![],'permissionId':0x32a})['state'](_0x572576(0x1a69),{'url':_0x572576(0xefc),'controller':_0x572576(0x439),'templateUrl':_0x32d231,'resolve':{'pauses':[_0x572576(0x1e0b),function(_0x1b405e){const _0x31d3de=_0x572576;return _0x1b405e['resolve'](_0x31d3de(0xeeb),{'nolimit':!![]});}],'agents':['apiResolver','Auth',function(_0x270c05,_0x12097a){const _0x428177=_0x572576;return _0x12097a[_0x428177(0x22b6)]('admin')?_0x270c05[_0x428177(0x19a3)](_0x428177(0x1c86),{'fields':_0x428177(0x1599),'role':_0x428177(0x1eff),'sort':_0x428177(0x1d14),'nolimit':!![]}):_0x270c05['resolve']('userProfile@getResources',{'id':_0x12097a['getCurrentUser']()['userProfileId'],'section':'Agents','fields':_0x428177(0x1599),'role':_0x428177(0x1eff),'sort':'fullname','nolimit':!![]});}],'userProfile':[_0x572576(0x1e0b),'Auth',function(_0x34c305,_0x948eb7){const _0x4dffba=_0x572576;return _0x948eb7['hasRole'](_0x4dffba(0x1c60))?null:_0x34c305['resolve'](_0x4dffba(0x9ae),{'fields':_0x4dffba(0x279),'id':_0x948eb7[_0x4dffba(0x21e8)]()[_0x4dffba(0x13c1)]});}],'userProfileSection':['apiResolver',_0x572576(0x1774),function(_0x3c639f,_0x2e57ea){const _0x5a293a=_0x572576;return _0x2e57ea['hasRole'](_0x5a293a(0x1c60))?null:_0x3c639f['resolve'](_0x5a293a(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2e57ea['getCurrentUser']()[_0x5a293a(0x13c1)],'sectionId':0xca});}],'rpcAgents':[_0x572576(0x1e0b),function(_0xfb649d){const _0x4e184d=_0x572576;return _0xfb649d[_0x4e184d(0x19a3)](_0x4e184d(0x12c0));}]},'authenticate':!![],'permissionId':0x32a})[_0x572576(0x27e0)](_0x572576(0x215a),{'url':_0x572576(0x1596),'controller':_0x572576(0x21d),'templateUrl':_0x59a542,'resolve':{'queues':['apiResolver','Auth',function(_0x4eb7e3,_0x14fe5d){const _0x4fe8e1=_0x572576;return _0x14fe5d['hasRole'](_0x4fe8e1(0x1c60))?_0x4eb7e3['resolve']('openchannelQueue@get',{'type':_0x4fe8e1(0x26c0),'sort':_0x4fe8e1(0x282),'limit':0xa,'offset':0x0}):_0x4eb7e3[_0x4fe8e1(0x19a3)](_0x4fe8e1(0x12da),{'id':_0x14fe5d[_0x4fe8e1(0x21e8)]()[_0x4fe8e1(0x13c1)],'section':_0x4fe8e1(0x1765),'channel':_0x4fe8e1(0x15e0),'type':_0x4fe8e1(0x26c0),'sort':'-updatedAt','limit':0xa,'page':0x1});}],'userProfile':['apiResolver','Auth',function(_0x23f85b,_0x29f97e){const _0x3843a6=_0x572576;return _0x29f97e['hasRole'](_0x3843a6(0x1c60))?null:_0x23f85b[_0x3843a6(0x19a3)](_0x3843a6(0x9ae),{'fields':'id,name,crudPermissions','id':_0x29f97e[_0x3843a6(0x21e8)]()[_0x3843a6(0x13c1)]});}],'userProfileSection':[_0x572576(0x1e0b),'Auth',function(_0x4ec3dd,_0x51e2cd){const _0x59c5e8=_0x572576;return _0x51e2cd[_0x59c5e8(0x22b6)](_0x59c5e8(0x1c60))?null:_0x4ec3dd['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x51e2cd[_0x59c5e8(0x21e8)]()[_0x59c5e8(0x13c1)],'sectionId':0x321});}],'rpcQueues':[_0x572576(0x1e0b),function(_0x57f89f){const _0x47a08a=_0x572576;return _0x57f89f[_0x47a08a(0x19a3)](_0x47a08a(0x15ca));}]},'authenticate':!![],'permissionId':0x32a});}angular['module'](_0x5537c6(0x19f9),[])[_0x5537c6(0xa60)](_0x19d710)['controller'](_0x5537c6(0x181a),_0x155424)[_0x5537c6(0x6e5)](_0x5537c6(0x1847),_0x3d341d)[_0x5537c6(0x234a)](_0x5537c6(0x125c),_0x3c5646)[_0x5537c6(0x6e5)]('OpenchannelRealtimeController',_0x2eeb79);;const _0x2e5db1=_0x5074a3['p']+_0x5537c6(0x202b);;const _0x1402a2=_0x5074a3['p']+_0x5537c6(0x167);;const _0x1ab158=_0x5074a3['p']+_0x5537c6(0x5f9);;const _0x3a2653=_0x5074a3['p']+_0x5537c6(0x25c3);;_0x2e4c9a['$inject']=['$scope','$state','$location',_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),'toasty','openchannelAccounts',_0x5537c6(0x80e),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x2e4c9a(_0x36e2cb,_0x81f768,_0x4968de,_0x53b317,_0x32d4d9,_0x462469,_0x4a18d0,_0x41e9f1,_0x4b9018,_0x580f3f,_0x42ac85,_0x486763,_0x2c3be2,_0x3f1151){const _0x25212c=_0x5537c6,_0x5ae308=this;_0x5ae308[_0x25212c(0xe76)]=_0x42ac85[_0x25212c(0x21e8)](),_0x5ae308[_0x25212c(0x1a7c)]=[],_0x5ae308[_0x25212c(0x9ca)]=_0x2c3be2,_0x5ae308[_0x25212c(0x8a5)]=_0x486763,_0x5ae308[_0x25212c(0x1b1a)]=_0x3f1151,_0x5ae308[_0x25212c(0xf4c)]={},_0x5ae308['passwordPattern']=_0x5ae308[_0x25212c(0x9ca)]&&_0x5ae308[_0x25212c(0x9ca)][_0x25212c(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5ae308[_0x25212c(0x1386)]='OPENCHANNEL.EDIT_OPENCHANNELACCOUNT',_0x5ae308[_0x25212c(0x80e)]=angular[_0x25212c(0x17fe)](_0x4b9018),_0x5ae308['openchannelAccounts']=_0x41e9f1,_0x5ae308['newOpenchannelAccount']=![];!_0x5ae308['openchannelAccount']&&(_0x5ae308[_0x25212c(0x80e)]={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x5ae308[_0x25212c(0x1386)]=_0x25212c(0x650),_0x5ae308[_0x25212c(0x1a7)]=!![]);_0x81f768[_0x25212c(0x1dfe)]['id']&&(_0x5ae308['openchannelAccount'][_0x25212c(0x1d1e)]=_0x81f768[_0x25212c(0x1dfe)]['id']);_0x5ae308['addNewOpenchannelAccount']=_0x3a8d84,_0x5ae308[_0x25212c(0x20f)]=_0x4fbe8c,_0x5ae308['deleteOpenchannelAccount']=_0x398ed9,_0x5ae308[_0x25212c(0x2c4)]=_0x12982a,_0x5ae308[_0x25212c(0xda0)]=_0xaa9b71,_0x42ac85[_0x25212c(0x22b6)](_0x25212c(0x1c60))?_0x580f3f[_0x25212c(0x22f2)][_0x25212c(0xbf7)]({'fields':_0x25212c(0x43c),'sort':'name'})[_0x25212c(0x1d77)][_0x25212c(0x1cb0)](function(_0xf69e7f){const _0x4f29f8=_0x25212c;_0x5ae308[_0x4f29f8(0x1046)]=_0xf69e7f[_0x4f29f8(0x2214)]||[];})['catch'](function(_0x526727){const _0x47299c=_0x25212c;_0x4a18d0[_0x47299c(0x218e)]({'title':_0x526727[_0x47299c(0x291)]?_0x47299c(0xeb9)+_0x526727[_0x47299c(0x291)]+_0x47299c(0x1657)+_0x526727['statusText']:'SYSTEM:GET_LISTS','msg':_0x526727[_0x47299c(0x25c)]?JSON[_0x47299c(0x2701)](_0x526727[_0x47299c(0x25c)]):_0x526727[_0x47299c(0x147f)]()});}):_0x580f3f['cmList']['get']({'fields':_0x25212c(0x43c),'sort':'name'})['$promise']['then'](function(_0x4b5b46){const _0x3f0650=_0x25212c;_0x5ae308[_0x3f0650(0x1046)]=_0x4b5b46[_0x3f0650(0x2214)]||[];})[_0x25212c(0x1cb0)](function(){const _0x422cb0=_0x25212c;return _0x580f3f[_0x422cb0(0x2199)][_0x422cb0(0xbf7)]({'userProfileId':_0x5ae308[_0x422cb0(0xe76)][_0x422cb0(0x13c1)],'sectionId':0x12d})[_0x422cb0(0x1d77)];})[_0x25212c(0x1cb0)](function(_0x12676a){const _0x25a63b=_0x25212c,_0x4ef0b4=_0x12676a&&_0x12676a[_0x25a63b(0x2214)]?_0x12676a[_0x25a63b(0x2214)][0x0]:null;if(!_0x4ef0b4){const _0x5642d1=[];let _0x5c4fab=null;_0x5ae308['openchannelAccount']&&(_0x5c4fab=_0x39641b()['find'](_0x5ae308[_0x25a63b(0x1046)],{'id':Number(_0x5ae308[_0x25a63b(0x80e)][_0x25a63b(0x20a6)])}));for(let _0x27b759=0x0;_0x27b759<_0x5ae308['lists'][_0x25a63b(0xfd0)];_0x27b759++){_0x5c4fab&&_0x5ae308[_0x25a63b(0x1046)][_0x27b759]['id']===_0x5c4fab['id']&&(_0x5ae308['lists'][_0x27b759]['canSelect']=![],_0x5642d1[_0x25a63b(0x2785)](_0x5ae308[_0x25a63b(0x1046)][_0x27b759]));}_0x5ae308[_0x25a63b(0x1046)]=_0x5642d1;}else{if(!_0x4ef0b4['autoAssociation'])return _0x580f3f[_0x25a63b(0x1198)][_0x25a63b(0xbf7)]({'sectionId':_0x4ef0b4['id']})['$promise'][_0x25a63b(0x1cb0)](function(_0x127d00){const _0x199c06=_0x25a63b,_0x25e1b1=_0x39641b()[_0x199c06(0x1de2)](_0x127d00['rows'],function(_0x7e7c96){const _0x3eacfd=_0x199c06;return _0x39641b()[_0x3eacfd(0x13b4)](_0x5ae308[_0x3eacfd(0x1046)],{'id':_0x7e7c96[_0x3eacfd(0x2982)]});});let _0x3ee22e=null;_0x5ae308['openchannelAccount']&&(_0x3ee22e=_0x39641b()[_0x199c06(0x13b4)](_0x5ae308[_0x199c06(0x1046)],{'id':Number(_0x5ae308[_0x199c06(0x80e)][_0x199c06(0x20a6)])}));if(_0x3ee22e&&!_0x39641b()[_0x199c06(0x727)](_0x25e1b1,['id',_0x3ee22e['id']])){const _0x192051=_0x39641b()[_0x199c06(0x13b4)](_0x5ae308[_0x199c06(0x1046)],{'id':_0x3ee22e['id']});_0x192051[_0x199c06(0x15da)]=![],_0x25e1b1[_0x199c06(0x2785)](_0x192051);}_0x5ae308[_0x199c06(0x1046)]=_0x25e1b1;});}})[_0x25212c(0x1c4)](function(_0x287387){const _0xc1a5a8=_0x25212c;_0x4a18d0[_0xc1a5a8(0x218e)]({'title':_0x287387[_0xc1a5a8(0x291)]?_0xc1a5a8(0xeb9)+_0x287387[_0xc1a5a8(0x291)]+_0xc1a5a8(0x1657)+_0x287387[_0xc1a5a8(0xc22)]:'SYSTEM:GETlists','msg':_0x287387[_0xc1a5a8(0x25c)]?JSON[_0xc1a5a8(0x2701)](_0x287387[_0xc1a5a8(0x25c)]):_0x287387[_0xc1a5a8(0x147f)]()});});function _0x3a8d84(){const _0x55cb37=_0x25212c;_0x5ae308[_0x55cb37(0x1a7c)]=[],_0x580f3f[_0x55cb37(0x80e)]['save'](_0x5ae308[_0x55cb37(0x80e)])['$promise'][_0x55cb37(0x1cb0)](function(_0x15c954){const _0xdc087e=_0x55cb37;_0x5ae308[_0xdc087e(0xe5c)][_0xdc087e(0xf63)](_0x15c954['toJSON']()),_0x4a18d0[_0xdc087e(0x829)]({'title':_0xdc087e(0x5a9),'msg':_0x5ae308['openchannelAccount'][_0xdc087e(0x16b6)]?_0x5ae308[_0xdc087e(0x80e)]['name']+_0xdc087e(0x470):''}),_0xaa9b71(_0x15c954);})[_0x55cb37(0x1c4)](function(_0x2337c8){const _0x397542=_0x55cb37;if(_0x2337c8[_0x397542(0x25c)]&&_0x2337c8['data'][_0x397542(0x1a7c)]&&_0x2337c8[_0x397542(0x25c)][_0x397542(0x1a7c)][_0x397542(0xfd0)]){_0x5ae308['errors']=_0x2337c8[_0x397542(0x25c)]['errors']||[{'message':_0x2337c8[_0x397542(0x147f)](),'type':_0x397542(0xf71)}];for(let _0x199db2=0x0;_0x199db2<_0x2337c8[_0x397542(0x25c)][_0x397542(0x1a7c)]['length'];_0x199db2+=0x1){_0x4a18d0[_0x397542(0x218e)]({'title':_0x2337c8[_0x397542(0x25c)]['errors'][_0x199db2][_0x397542(0x66a)],'msg':_0x2337c8['data'][_0x397542(0x1a7c)][_0x199db2][_0x397542(0x155e)]});}}else _0x4a18d0['error']({'title':_0x2337c8['status']?_0x397542(0xeb9)+_0x2337c8[_0x397542(0x291)]+_0x397542(0x1657)+_0x2337c8['statusText']:_0x397542(0xf71),'msg':_0x2337c8[_0x397542(0x25c)]?JSON['stringify'](_0x2337c8[_0x397542(0x25c)][_0x397542(0x155e)]):_0x2337c8[_0x397542(0x147f)]()});});}function _0x4fbe8c(){const _0x1d3f88=_0x25212c;_0x5ae308[_0x1d3f88(0x1a7c)]=[],_0x580f3f[_0x1d3f88(0x80e)][_0x1d3f88(0x687)]({'id':_0x5ae308[_0x1d3f88(0x80e)]['id']},_0x5ae308[_0x1d3f88(0x80e)])['$promise'][_0x1d3f88(0x1cb0)](function(_0x54dc24){const _0x46377a=_0x1d3f88,_0xb07186=_0x39641b()[_0x46377a(0x13b4)](_0x5ae308[_0x46377a(0xe5c)],{'id':_0x54dc24['id']});_0xb07186&&_0x39641b()[_0x46377a(0x9c1)](_0xb07186,_0x39641b()[_0x46377a(0x169b)](_0x54dc24[_0x46377a(0x19b2)](),_0x39641b()['keys'](_0xb07186))),_0x4a18d0['success']({'title':'OpenchannelAccount\x20properly\x20saved!','msg':_0x5ae308[_0x46377a(0x80e)]['name']?_0x5ae308['openchannelAccount']['name']+'\x20has\x20been\x20saved!':''}),_0xaa9b71(_0x54dc24);})[_0x1d3f88(0x1c4)](function(_0x2a9c12){const _0x3ea656=_0x1d3f88;if(_0x2a9c12[_0x3ea656(0x25c)]&&_0x2a9c12[_0x3ea656(0x25c)][_0x3ea656(0x1a7c)]&&_0x2a9c12[_0x3ea656(0x25c)]['errors'][_0x3ea656(0xfd0)]){_0x5ae308[_0x3ea656(0x1a7c)]=_0x2a9c12['data'][_0x3ea656(0x1a7c)]||[{'message':_0x2a9c12[_0x3ea656(0x147f)](),'type':_0x3ea656(0x1748)}];for(let _0x3ef78d=0x0;_0x3ef78d<_0x2a9c12[_0x3ea656(0x25c)]['errors'][_0x3ea656(0xfd0)];_0x3ef78d++){_0x4a18d0['error']({'title':_0x2a9c12['data'][_0x3ea656(0x1a7c)][_0x3ef78d][_0x3ea656(0x66a)],'msg':_0x2a9c12[_0x3ea656(0x25c)]['errors'][_0x3ef78d][_0x3ea656(0x155e)]});}}else _0x4a18d0[_0x3ea656(0x218e)]({'title':_0x2a9c12[_0x3ea656(0x291)]?_0x3ea656(0xeb9)+_0x2a9c12[_0x3ea656(0x291)]+_0x3ea656(0x1657)+_0x2a9c12[_0x3ea656(0xc22)]:_0x3ea656(0x1748),'msg':_0x2a9c12[_0x3ea656(0x25c)]?JSON[_0x3ea656(0x2701)](_0x2a9c12[_0x3ea656(0x25c)][_0x3ea656(0x155e)]):_0x2a9c12[_0x3ea656(0x147f)]()});});}function _0x398ed9(_0xedde2e){const _0x129e88=_0x25212c;_0x5ae308[_0x129e88(0x1a7c)]=[];const _0x5e2b8f=_0x53b317[_0x129e88(0x1551)]()[_0x129e88(0x1386)](_0x129e88(0x1a2e))['content'](_0x129e88(0x1b88))[_0x129e88(0x15ad)](_0x129e88(0x290a))['ok'](_0x129e88(0x2594))[_0x129e88(0x696)]('Cancel')[_0x129e88(0x728)](_0xedde2e);_0x53b317[_0x129e88(0xe27)](_0x5e2b8f)[_0x129e88(0x1cb0)](function(){const _0x363d36=_0x129e88;_0x580f3f['openchannelAccount']['delete']({'id':_0x5ae308[_0x363d36(0x80e)]['id']})['$promise'][_0x363d36(0x1cb0)](function(){const _0x3aafef=_0x363d36;_0x39641b()[_0x3aafef(0x152a)](_0x5ae308[_0x3aafef(0xe5c)],{'id':_0x5ae308[_0x3aafef(0x80e)]['id']}),_0x4a18d0[_0x3aafef(0x829)]({'title':'OpenchannelAccount\x20properly\x20deleted!','msg':(_0x5ae308[_0x3aafef(0x80e)][_0x3aafef(0x16b6)]||'openchannelAccount')+_0x3aafef(0x3f5)}),_0xaa9b71(_0x5ae308[_0x3aafef(0x80e)]);})[_0x363d36(0x1c4)](function(_0x558670){const _0x364e88=_0x363d36;if(_0x558670[_0x364e88(0x25c)]&&_0x558670[_0x364e88(0x25c)][_0x364e88(0x1a7c)]&&_0x558670[_0x364e88(0x25c)][_0x364e88(0x1a7c)][_0x364e88(0xfd0)]){_0x5ae308[_0x364e88(0x1a7c)]=_0x558670[_0x364e88(0x25c)]['errors']||[{'message':_0x558670['toString'](),'type':'api.openchannelAccount.delete'}];for(let _0x34f890=0x0;_0x34f890<_0x558670['data'][_0x364e88(0x1a7c)]['length'];_0x34f890++){_0x4a18d0[_0x364e88(0x218e)]({'title':_0x558670[_0x364e88(0x25c)][_0x364e88(0x1a7c)][_0x34f890][_0x364e88(0x66a)],'msg':_0x558670['data'][_0x364e88(0x1a7c)][_0x34f890][_0x364e88(0x155e)]});}}else _0x4a18d0[_0x364e88(0x218e)]({'title':_0x558670[_0x364e88(0x291)]?'API:'+_0x558670[_0x364e88(0x291)]+_0x364e88(0x1657)+_0x558670[_0x364e88(0xc22)]:_0x364e88(0x1aa),'msg':_0x558670[_0x364e88(0x25c)]?JSON[_0x364e88(0x2701)](_0x558670[_0x364e88(0x25c)][_0x364e88(0x155e)]):_0x558670[_0x364e88(0x155e)]||_0x558670[_0x364e88(0x147f)]()});});},function(){});}function _0x12982a(_0x16029c){return _0x16029c===null?undefined:new Date(_0x16029c);}function _0xaa9b71(_0x31adbe){const _0x33d1b7=_0x25212c;_0x53b317[_0x33d1b7(0x1426)](_0x31adbe);}}const _0x48fc8c=_0x2e4c9a;;const _0x13368c=_0x5074a3['p']+_0x5537c6(0x7b8);;const _0xf09a01=_0x5074a3['p']+_0x5537c6(0x1bf6);;const _0x1ad28e=_0x5074a3['p']+_0x5537c6(0xe83);;const _0x82671f=_0x5074a3['p']+_0x5537c6(0xc8f);;const _0x5afc27=_0x5074a3['p']+_0x5537c6(0x1d90);;const _0x25526b=_0x5074a3['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/interval/dialog.html/dialog.html';;const _0x36d6bc=_0x5074a3['p']+_0x5537c6(0x282f);;const _0x5385e8=_0x5074a3['p']+_0x5537c6(0x178a);;const _0x2d7cb2=_0x5074a3['p']+_0x5537c6(0x72a);;const _0x2775fa=_0x5074a3['p']+_0x5537c6(0x1e00);;_0x226df8['$inject']=[_0x5537c6(0x142b),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x1774)];const _0x366582={'agent':_0x13368c,'autoreply':_0xf09a01,'close':_0x1ad28e,'gotoif':_0x82671f,'gotop':_0x5afc27,'interval':_0x25526b,'noop':_0x36d6bc,'queue':_0x5385e8,'system':_0x2d7cb2,'tag':_0x2775fa};function _0x226df8(_0x5b52a2,_0x467745,_0x479c2e,_0x2e67e3,_0x4f10c7){const _0x584534=_0x5537c6,_0x2dee0d=this;_0x2dee0d['currentUser']=_0x4f10c7[_0x584534(0x21e8)](),_0x2dee0d[_0x584534(0x80e)]={},_0x2dee0d[_0x584534(0x53b)]={'count':0x0,'rows':[]},_0x2dee0d['selectedOpenchannelAccountApps']=[],_0x2dee0d[_0x584534(0x1b1a)],_0x2dee0d[_0x584534(0xae2)]={'sort':_0x584534(0x521)},_0x2dee0d[_0x584534(0x196f)]=_0x39641b()[_0x584534(0x988)](_0x39641b()[_0x584534(0x1d33)]([{'app':'dialogflow','appType':_0x584534(0x711),'type':'dialogflow','icon':_0x584534(0x33e),'interval':_0x584534(0x965),'isApp':!![],'fields':[{'title':'Key','name':'key','type':_0x584534(0x19d3),'required':!![],'param':0x0},{'title':_0x584534(0x12b4),'name':_0x584534(0x12b4),'type':_0x584534(0x220f),'defaultValue':_0x584534(0x1ffc),'values':[{'option':'Danish','value':_0x584534(0x1dac)},{'option':'English','value':'\x27en\x27'},{'option':'German','value':_0x584534(0x134a)},{'option':_0x584534(0x2257),'value':_0x584534(0x6a6)},{'option':_0x584534(0x2672),'value':_0x584534(0xb87)},{'option':'French','value':_0x584534(0x1040)},{'option':'Indonesian','value':_0x584534(0x1cf7)},{'option':_0x584534(0x243f),'value':'\x27ja\x27'},{'option':_0x584534(0x2773),'value':'\x27ko\x27'},{'option':_0x584534(0x2027),'value':_0x584534(0x1298)},{'option':_0x584534(0x12a8),'value':_0x584534(0x15b9)},{'option':'Portuguese\x20(European)','value':'\x27pt\x27'},{'option':_0x584534(0x1a45),'value':_0x584534(0x741)},{'option':_0x584534(0x1dec),'value':_0x584534(0x258b)},{'option':_0x584534(0x15fe),'value':'\x27sv\x27'},{'option':_0x584534(0x20c),'value':_0x584534(0x1047)},{'option':_0x584534(0x526),'value':_0x584534(0x199c)},{'option':_0x584534(0xb4e),'value':_0x584534(0x18f1)},{'option':_0x584534(0xf5c),'value':_0x584534(0x1d01)},{'option':'Chinese\x20(Traditional)','value':_0x584534(0xad9)}],'required':!![],'param':0x1},{'title':_0x584534(0x173a),'name':_0x584534(0x173a),'type':'textarea','maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x584534(0x385),'appType':_0x584534(0xece),'type':_0x584534(0xece),'icon':_0x584534(0x33e),'interval':_0x584534(0x965),'isApp':!![],'fields':[{'title':'ProjectID','name':_0x584534(0x2854),'type':_0x584534(0x19d3),'required':!![],'param':0x0},{'title':_0x584534(0x9e0),'name':'clientEmail','type':_0x584534(0x19d3),'required':!![],'param':0x1},{'title':_0x584534(0x2393),'name':'privateKey','type':_0x584534(0x2424),'required':!![],'param':0x2},{'title':'language','name':_0x584534(0x12b4),'type':_0x584534(0x220f),'defaultValue':_0x584534(0x1ffc),'values':[{'value':_0x584534(0x1d01),'option':_0x584534(0x261e)},{'value':_0x584534(0x18f1),'option':_0x584534(0xb4e)},{'value':_0x584534(0xad9),'option':_0x584534(0x1784)},{'value':_0x584534(0x1dac),'option':'Danish'},{'value':_0x584534(0x1298),'option':_0x584534(0x2027)},{'value':_0x584534(0x1ffc),'option':_0x584534(0xc8b)},{'value':_0x584534(0x1548),'option':'English\x20(Australia)'},{'value':_0x584534(0x9ed),'option':_0x584534(0x1edf)},{'value':_0x584534(0x21a8),'option':_0x584534(0x28eb)},{'value':_0x584534(0x17d0),'option':_0x584534(0x57b)},{'value':_0x584534(0x28de),'option':_0x584534(0x146b)},{'value':_0x584534(0x1040),'option':_0x584534(0x19a)},{'value':_0x584534(0x271a),'option':_0x584534(0x2207)},{'value':_0x584534(0x15ea),'option':_0x584534(0xe34)},{'value':_0x584534(0x134a),'option':'German'},{'value':_0x584534(0x1562),'option':'Hindi'},{'value':_0x584534(0x1cf7),'option':'Indonesian'},{'value':'\x27it\x27','option':_0x584534(0x2257)},{'value':_0x584534(0x5c5),'option':_0x584534(0x243f)},{'value':_0x584534(0x1ce3),'option':_0x584534(0x14f3)},{'value':'\x27no\x27','option':_0x584534(0x12a8)},{'value':_0x584534(0x85d),'option':_0x584534(0x2960)},{'value':_0x584534(0x1ccb),'option':_0x584534(0xa0f)},{'value':_0x584534(0x1763),'option':_0x584534(0x967)},{'value':_0x584534(0x258b),'option':'Russian'},{'value':'\x27es\x27','option':_0x584534(0x2672)},{'value':_0x584534(0x1ff7),'option':_0x584534(0x1051)},{'value':'\x27es-ES\x27','option':'Spanish\x20(Spain)'},{'value':_0x584534(0x21c7),'option':_0x584534(0x15fe)},{'value':'\x27th\x27','option':_0x584534(0x20c)},{'value':_0x584534(0x21cd),'option':_0x584534(0x1543)},{'value':_0x584534(0x199c),'option':'Ukrainian'}],'required':!![],'param':0x3},{'title':'welcomemessage','name':_0x584534(0x173a),'type':_0x584534(0x2424),'maxlength':0xff,'param':0x4,'help':!![]}]},{'app':'amazonlex','appType':'amazonlex','type':_0x584534(0x123a),'icon':_0x584534(0x33e),'interval':_0x584534(0x965),'isApp':!![],'fields':[{'title':'accesskeyid','name':_0x584534(0x413),'type':_0x584534(0x19d3),'required':!![],'param':0x0},{'title':_0x584534(0x21d9),'name':'secretaccesskey','type':'text','required':!![],'param':0x1},{'title':_0x584534(0xd50),'name':_0x584534(0xd50),'type':_0x584534(0x220f),'defaultValue':_0x584534(0x1c93),'values':[{'option':'US\x20East\x20(N.\x20Virginia)','value':_0x584534(0x1c93)},{'option':_0x584534(0x13fc),'value':_0x584534(0x2646)},{'option':_0x584534(0x14ca),'value':_0x584534(0x208d)},{'option':_0x584534(0x1eae),'value':'\x27ap-southeast-2\x27'}],'required':!![],'param':0x2},{'title':_0x584534(0x1c7f),'name':_0x584534(0x1c7f),'type':_0x584534(0x19d3),'required':!![],'param':0x3},{'title':_0x584534(0x173a),'name':'welcomemessage','type':_0x584534(0x2424),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]},{'app':_0x584534(0x1d81),'appType':'interval','types':[_0x584534(0x2017),_0x584534(0x197c),'list'],'fields':[],'isApp':![]},{'app':_0x584534(0x1234),'appType':_0x584534(0x1234),'type':_0x584534(0x1234),'icon':'icon-apps','interval':_0x584534(0x965),'required':!![],'isApp':!![],'fields':[{'title':_0x584534(0x1e10),'name':_0x584534(0x327),'type':_0x584534(0x19d3),'param':0x0}]},{'app':_0x584534(0x7be),'appType':_0x584534(0x7be),'type':'system','icon':'icon-apps','interval':'*,*,*,*','required':!![],'isApp':!![],'extraApi':[{'name':_0x584534(0x9a9),'field':{'name':_0x584534(0x1822),'key':_0x584534(0x16b6)},'route':'variable','filters':{'fields':_0x584534(0x43c),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x584534(0x1b9),'name':_0x584534(0xd0d),'type':_0x584534(0x19d3),'required':!![],'param':0x0},{'title':'Variable','name':_0x584534(0x1822),'type':'apiselect','values':_0x584534(0x9a9),'value':_0x584534(0x3f3),'option':_0x584534(0x3f3),'defaultValues':[{'value':'\x27\x27','option':_0x584534(0x2001)}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':_0x584534(0x265b),'type':_0x584534(0x3da),'icon':_0x584534(0x33e),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x584534(0x1240),'name':_0x584534(0x521),'type':_0x584534(0x83d),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x584534(0x13a0),'appType':_0x584534(0x13a0),'type':_0x584534(0x13a0),'icon':_0x584534(0x33e),'interval':_0x584534(0x965),'isApp':!![],'fields':[{'title':'Condition','name':_0x584534(0x166c),'type':'text','required':!![],'param':0x0},{'title':_0x584534(0xb24),'name':'truepriority','type':_0x584534(0x83d),'min':0x1,'required':!![],'param':0x1},{'title':_0x584534(0x17d),'name':_0x584534(0x17d),'type':_0x584534(0x83d),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x584534(0x11cf),'appType':_0x584534(0x11cf),'foreignKey':_0x584534(0x483),'type':'queue','icon':_0x584534(0x33e),'interval':_0x584534(0x965),'isApp':!![],'extraApi':[{'name':'queues','field':{'name':_0x584534(0x11cf),'key':_0x584534(0x16b6)},'route':'openchannelQueue','filters':{'fields':_0x584534(0x1896),'sort':_0x584534(0x16b6),'nolimit':!![]},'permissions':{'section':0x321}}],'fields':[{'title':_0x584534(0x2687),'name':_0x584534(0x11cf),'type':_0x584534(0xb52),'values':_0x584534(0x971),'value':'queue.name','option':'queue.name','defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x584534(0xbcc),'name':'timeout','type':'number','max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':_0x584534(0x1eff),'appType':_0x584534(0x1eff),'type':_0x584534(0x1eff),'foreignKey':_0x584534(0x21ab),'icon':_0x584534(0x33e),'interval':_0x584534(0x965),'isApp':!![],'extraApi':[{'name':_0x584534(0xc12),'field':{'name':'agent','key':_0x584534(0x16b6)},'route':_0x584534(0xebe),'filters':{'fields':'id,name','sort':'name','role':_0x584534(0x1eff),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x584534(0x30e),'name':'agent','type':_0x584534(0xb52),'values':_0x584534(0xc12),'value':_0x584534(0x302),'option':_0x584534(0x302),'required':!![],'param':0x0},{'title':'Timeout','name':_0x584534(0x1719),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':'autoreply','appType':_0x584534(0x1f71),'type':'autoreply','icon':_0x584534(0x33e),'interval':_0x584534(0x965),'isApp':!![],'fields':[{'title':'times','name':'times','type':_0x584534(0x220f),'defaultValue':'1','values':[{'option':'One\x20Time','value':'1'},{'option':_0x584534(0x1288),'value':'0'}],'required':!![],'param':0x0},{'title':_0x584534(0x620),'name':_0x584534(0x19d3),'type':_0x584534(0x2424),'required':!![],'param':0x1}]},{'app':_0x584534(0xf3b),'appType':_0x584534(0xf3b),'type':_0x584534(0xf3b),'icon':_0x584534(0x33e),'interval':_0x584534(0x965),'isApp':!![],'fields':[{'title':_0x584534(0x2542),'name':_0x584534(0x1746),'type':_0x584534(0x19d3),'required':!![],'param':0x0}]},{'app':_0x584534(0x22b1),'appType':'tag','type':_0x584534(0x22b1),'foreignKey':'TagId','icon':'icon-apps','interval':_0x584534(0x965),'isApp':!![],'extraApi':[{'name':_0x584534(0xfbf),'field':{'name':_0x584534(0x22b1),'key':_0x584534(0x16b6)},'route':'tag','filters':{'fields':_0x584534(0x43c),'sort':_0x584534(0x16b6),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x584534(0xf2d),'name':_0x584534(0x22b1),'type':'apiselect','values':'tags','value':_0x584534(0x52a),'option':_0x584534(0x52a),'required':!![],'param':0x0}]}],[_0x584534(0x22e1)]),{'isApp':![]}),_0x2dee0d[_0x584534(0x240)]={'group':{'name':_0x584534(0x2523),'pull':_0x584534(0x11bc)},'animation':0x64,'sort':![]},_0x2dee0d[_0x584534(0x1f2f)]={'group':{'name':_0x584534(0x1ddb),'put':_0x584534(0x2523)},'animation':0x64,'onAdd':function(_0x1bb4d8){const _0xc7a8c2=_0x584534;_0x363d33(_0x1bb4d8,_0x1bb4d8[_0xc7a8c2(0x22e)]);},'onSort':function(){_0x299894();}},_0x2dee0d['init']=_0x372417,_0x2dee0d['deleteConfirm']=_0x374fbf,_0x2dee0d[_0x584534(0x1eb4)]=_0x353547,_0x2dee0d[_0x584534(0xff7)]=_0x363d33,_0x2dee0d['editInterval']=_0xe8b06f,_0x2dee0d[_0x584534(0x24d4)]=_0x1add7f,_0x2dee0d[_0x584534(0x288)]=_0x3c231a,_0x2dee0d['rewriteRouting']=_0x299894,_0x2dee0d[_0x584534(0x22fc)]=_0x149f1b;function _0x372417(_0x2dcd8c,_0x305a47){const _0x224ee5=_0x584534;_0x2dee0d['openchannelAccount']=_0x2dcd8c,_0x2dee0d[_0x224ee5(0x1b1a)]=typeof _0x305a47!=='undefined'?_0x305a47:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2dee0d[_0x224ee5(0x1f2f)][_0x224ee5(0x379)]=!_0x2dee0d[_0x224ee5(0x1b1a)][_0x224ee5(0xb3d)]?!![]:![],_0x2dee0d[_0x224ee5(0xae2)]['id']=_0x2dcd8c['id'],_0x2dee0d[_0x224ee5(0xae2)][_0x224ee5(0xead)]=!![],_0x2dee0d[_0x224ee5(0xae2)][_0x224ee5(0x2282)]=!![],_0x2dee0d['getOpenchannelAccountApps'](),_0x2dee0d['getIntervals']();}function _0x374fbf(_0x582588,_0x3b79a1,_0x5ec1a7){const _0x5546f2=_0x584534,_0xb2b148=_0x467745[_0x5546f2(0x1551)]()[_0x5546f2(0x1386)](_0x5546f2(0xf35))[_0x5546f2(0x49e)](_0x5546f2(0x204d)+_0x582588[_0x5546f2(0x22e1)]+_0x5546f2(0x1200)+'\x20will\x20be\x20deleted.')[_0x5546f2(0x15ad)]('delete\x20application')[_0x5546f2(0x728)](_0x5ec1a7)['ok']('OK')['cancel'](_0x5546f2(0x24ba));_0x467745[_0x5546f2(0xe27)](_0xb2b148)[_0x5546f2(0x1cb0)](function(){const _0x2fccf7=_0x5546f2;_0x2dee0d[_0x2fccf7(0x53b)][_0x2fccf7(0x2214)][_0x2fccf7(0x159c)](_0x3b79a1,0x1),_0x299894();},function(){const _0x38c1d4=_0x5546f2;console[_0x38c1d4(0x1b4f)](_0x38c1d4(0x24ba));});}function _0x363d33(_0x9bef41,_0x27814b){const _0xc5d63e=_0x584534;if(_0x2dee0d[_0xc5d63e(0x53b)][_0xc5d63e(0x2214)][_0xc5d63e(0xfd0)]){const _0x2749d9=_0x2dee0d[_0xc5d63e(0x53b)][_0xc5d63e(0x2214)][_0x27814b]?_0x2dee0d[_0xc5d63e(0x53b)][_0xc5d63e(0x2214)][_0x27814b]:_0x2dee0d[_0xc5d63e(0x53b)][_0xc5d63e(0x2214)][0x0],_0xa48dce=(_0x2749d9[_0xc5d63e(0x299b)]||_0x2749d9[_0xc5d63e(0x22e1)])['toLowerCase']();_0x467745[_0xc5d63e(0xe27)]({'controller':_0xc5d63e(0x15c6)+_0xa48dce+'DialogController','controllerAs':'vm','templateUrl':_0x366582[_0xa48dce],'parent':angular['element'](_0x479c2e['body']),'targetEvent':_0x9bef41,'clickOutsideToClose':!![],'locals':{'openchannelAccountApp':_0x2749d9,'openchannelAccount':_0x2dee0d[_0xc5d63e(0x80e)],'crudPermissions':_0x2dee0d[_0xc5d63e(0x1b1a)]}})[_0xc5d63e(0x1cb0)](function(_0x20b4dc){const _0x9438fa=_0xc5d63e;_0x20b4dc&&(_0x20b4dc['id']?_0x2dee0d[_0x9438fa(0x53b)]['rows'][_0x27814b]=_0x20b4dc:_0x2dee0d['openchannelAccountApps'][_0x9438fa(0x2214)][_0x9438fa(0x159c)](_0x27814b,0x0,_0x20b4dc),_0x299894());})[_0xc5d63e(0x1c4)](function(_0x59f39a){const _0x9debc=_0xc5d63e;_0x59f39a&&_0x2e67e3[_0x9debc(0x218e)]({'title':_0x59f39a[_0x9debc(0x291)]?'API:'+_0x59f39a['status']+_0x9debc(0x1657)+_0x59f39a[_0x9debc(0xc22)]:_0x9debc(0xd95),'msg':_0x59f39a[_0x9debc(0x25c)]?JSON[_0x9debc(0x2701)](_0x59f39a[_0x9debc(0x25c)]):_0x59f39a[_0x9debc(0x147f)]()});});}}function _0xe8b06f(_0x5b4e8a,_0x29242d){const _0x16904a=_0x584534;if(_0x2dee0d['openchannelAccountApps']['rows'][_0x16904a(0xfd0)]){const _0x2427c2=_0x2dee0d[_0x16904a(0x53b)]['rows'][_0x29242d]?_0x2dee0d[_0x16904a(0x53b)][_0x16904a(0x2214)][_0x29242d]:_0x2dee0d[_0x16904a(0x53b)]['rows'][0x0];_0x467745['show']({'controller':_0x16904a(0x181f),'controllerAs':'vm','templateUrl':_0x25526b,'parent':angular[_0x16904a(0x1853)](_0x479c2e['body']),'targetEvent':_0x5b4e8a,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x2427c2['interval'],'IntervalId':_0x2427c2['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x2dee0d[_0x16904a(0x1b1a)]}})[_0x16904a(0x1cb0)](function(_0x198c19){const _0x45ca73=_0x16904a;_0x198c19&&(_0x2427c2[_0x45ca73(0x1ac8)]=_0x198c19[_0x45ca73(0x1ac8)]||_0x45ca73(0x965),_0x2427c2[_0x45ca73(0x1a60)]=_0x198c19[_0x45ca73(0x1a60)]||null,_0x299894());});}}function _0x299894(){const _0x1f360a=_0x584534;let _0x2c7693=0x1,_0x13bfbb=[];for(let _0x2d8e5d=0x0;_0x2d8e5d<_0x2dee0d[_0x1f360a(0x53b)][_0x1f360a(0x2214)]['length'];_0x2d8e5d++){const _0x2629a9=_0x2dee0d['openchannelAccountApps'][_0x1f360a(0x2214)][_0x2d8e5d],_0x4e9239=[],_0x14d0ae=[];_0x2629a9['intervals']=_0x2629a9[_0x1f360a(0x1ac8)]!==_0x1f360a(0x965)?[_0x2629a9['interval']]:_0x2629a9['IntervalId']?_0x39641b()[_0x1f360a(0x1de2)](_0x39641b()['filter'](_0x2dee0d['intervals'][_0x1f360a(0x2214)],{'IntervalId':_0x2629a9[_0x1f360a(0x1a60)]}),'interval'):[],_0x2629a9['context']=_0x2dee0d[_0x1f360a(0x80e)][_0x1f360a(0x2056)],_0x2629a9[_0x1f360a(0x26a2)]=_0x2dee0d[_0x1f360a(0x80e)][_0x1f360a(0x26a2)],_0x2629a9['type']&&(_0x2629a9[_0x1f360a(0x66a)]=_0x2629a9[_0x1f360a(0x66a)][_0x1f360a(0x1680)]()),_0x2629a9[_0x1f360a(0x521)]=_0x4e9239['length']?_0x39641b()[_0x1f360a(0x1f9e)](_0x4e9239)[_0x1f360a(0x521)]+0x1:_0x2c7693,_0x2c7693=(_0x14d0ae[_0x1f360a(0xfd0)]?_0x39641b()[_0x1f360a(0x1f9e)](_0x14d0ae)[_0x1f360a(0x521)]:_0x2629a9[_0x1f360a(0x521)])+0x1,_0x13bfbb=_0x39641b()[_0x1f360a(0x298a)](_0x13bfbb,_0x4e9239,[_0x2629a9],_0x14d0ae);}_0x5b52a2[_0x1f360a(0x80e)][_0x1f360a(0x2598)]({'id':_0x2dee0d[_0x1f360a(0x80e)]['id']},_0x39641b()['sortBy'](_0x13bfbb,_0x1f360a(0x521)))[_0x1f360a(0x1d77)][_0x1f360a(0x1cb0)](function(_0x42523d){const _0x2ce2bc=_0x1f360a;_0x2dee0d[_0x2ce2bc(0x53b)][_0x2ce2bc(0x2214)]=_0x42523d[_0x2ce2bc(0x2214)];})[_0x1f360a(0x1c4)](function(_0x201e4e){const _0x28cfcf=_0x1f360a;console[_0x28cfcf(0x218e)](_0x201e4e);});}function _0x1d7cfc(_0x120d0b){const _0x439ac2=_0x584534;_0x2dee0d[_0x439ac2(0x53b)]=_0x120d0b||{'count':0x0,'rows':[]};}function _0x149f1b(){const _0x4736d=_0x584534;return _0x5b52a2[_0x4736d(0x1ac8)][_0x4736d(0xbf7)]({'fields':_0x4736d(0x18b2)})['$promise'][_0x4736d(0x1cb0)](function(_0x5c675e){const _0x14713e=_0x4736d;_0x2dee0d[_0x14713e(0xb4a)]=_0x5c675e;})[_0x4736d(0x1c4)](function(_0x42aeef){const _0x478f14=_0x4736d;console[_0x478f14(0x218e)](_0x42aeef);});}function _0x353547(){const _0x3dfbd9=_0x584534;_0x2dee0d['promise']=_0x5b52a2[_0x3dfbd9(0x80e)][_0x3dfbd9(0x930)](_0x2dee0d[_0x3dfbd9(0xae2)],_0x1d7cfc)[_0x3dfbd9(0x1d77)];}function _0x1add7f(_0x5581a9){const _0x23d32d=_0x584534;_0x39641b()[_0x23d32d(0x152a)](_0x2dee0d['openchannelAccountApps'][_0x23d32d(0x2214)],{'id':_0x5581a9['id']}),_0x299894(),_0x2e67e3[_0x23d32d(0x829)]({'title':_0x23d32d(0x2923),'msg':_0x5581a9['app']?_0x5581a9['app']+_0x23d32d(0x3f5):''});}function _0x3c231a(_0x2fb3e3){const _0x2bd804=_0x584534,_0x4fe82e=_0x467745[_0x2bd804(0x1551)]()['title'](_0x2bd804(0x2436))['htmlContent'](_0x2bd804(0x204d)+_0x2dee0d[_0x2bd804(0x1fdc)][_0x2bd804(0xfd0)]+_0x2bd804(0x1d6c)+_0x2bd804(0x1b6))[_0x2bd804(0x15ad)]('delete\x20applications')['targetEvent'](_0x2fb3e3)['ok']('OK')[_0x2bd804(0x696)](_0x2bd804(0x24ba));_0x467745[_0x2bd804(0xe27)](_0x4fe82e)[_0x2bd804(0x1cb0)](function(){const _0x48e2be=_0x2bd804;_0x2dee0d['selectedOpenchannelAccountApps'][_0x48e2be(0xf90)](function(_0x14ae05){const _0x56fdd8=_0x48e2be;_0x39641b()[_0x56fdd8(0x152a)](_0x2dee0d['openchannelAccountApps']['rows'],{'id':_0x14ae05['id']});}),_0x2dee0d['selectedOpenchannelAccountApps']=[],_0x299894();});}}const _0x34c805=_0x226df8;;_0x142dcd[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty',_0x5537c6(0x142b),'openchannelAccount',_0x5537c6(0xe5c),_0x5537c6(0x217b),_0x5537c6(0x1ae),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x142dcd(_0x43ce7a,_0x4d36fc,_0x3485e9,_0x26649b,_0x38c231,_0x35ab31,_0x304baa,_0x271a5c,_0x4b0ee3,_0x25057a){const _0x1db56f=_0x5537c6,_0x337d12=this;_0x337d12[_0x1db56f(0xe76)]=_0x4b0ee3['getCurrentUser'](),_0x337d12[_0x1db56f(0x80e)]=_0x38c231,_0x337d12[_0x1db56f(0x1b1a)]=_0x25057a,_0x337d12['realtime']=_0x304baa,_0x337d12[_0x1db56f(0x122f)]=[],_0x337d12[_0x1db56f(0x1372)]=[],_0x337d12[_0x1db56f(0x20bb)]=[],_0x337d12[_0x1db56f(0xbd5)]=[],_0x337d12[_0x1db56f(0x1456)]=[],_0x337d12['pendingChanges']=![],_0x337d12[_0x1db56f(0x1a34)]=_0x148a99,_0x337d12['saveAgents']=_0x5652df,_0x337d12[_0x1db56f(0xda0)]=_0xa7d14d,_0x337d12[_0x1db56f(0x18c0)]={'readOnly':!_0x337d12[_0x1db56f(0x1b1a)][_0x1db56f(0xb3d)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x1db56f(0x16b6),'line1':_0x1db56f(0x1d14),'line2':[_0x1db56f(0x16b6),_0x1db56f(0xdbd)],'line3':'','labelAll':_0x271a5c[_0x1db56f(0x25cc)](_0x1db56f(0x21e7)),'labelSelected':_0x271a5c[_0x1db56f(0x25cc)](_0x1db56f(0x1cd5)),'transferCallback':function(){const _0x5ec01f=_0x1db56f,_0x13b644=_0x39641b()[_0x5ec01f(0x1423)](_0x337d12[_0x5ec01f(0x1456)],_0x337d12[_0x5ec01f(0x20bb)],'id');_0x337d12[_0x5ec01f(0x50c)]=_0x39641b()[_0x5ec01f(0xce9)](_0x13b644)?![]:!![];}};function _0x148a99(){const _0x203b8a=_0x1db56f;return _0x4b0ee3[_0x203b8a(0x22b6)](_0x203b8a(0x1c60))?_0x21697d()['catch'](function(_0xba0ba1){const _0x3fab3b=_0x203b8a;_0x3485e9[_0x3fab3b(0x218e)]({'title':_0xba0ba1[_0x3fab3b(0x291)]?'API:'+_0xba0ba1[_0x3fab3b(0x291)]+'\x20-\x20'+_0xba0ba1[_0x3fab3b(0xc22)]:_0x3fab3b(0x799),'msg':_0xba0ba1['status']?JSON[_0x3fab3b(0x2701)](_0xba0ba1[_0x3fab3b(0x25c)]):_0xba0ba1[_0x3fab3b(0x147f)]()});}):_0x1c68ca()[_0x203b8a(0x1cb0)](function(_0x190046){const _0x3f00a4=_0x203b8a;return _0x337d12[_0x3f00a4(0x1f74)]=_0x190046,_0x21697d();})[_0x203b8a(0x1c4)](function(_0x298349){const _0x4a475b=_0x203b8a;_0x3485e9[_0x4a475b(0x218e)]({'title':_0x298349['status']?_0x4a475b(0xeb9)+_0x298349[_0x4a475b(0x291)]+_0x4a475b(0x1657)+_0x298349[_0x4a475b(0xc22)]:_0x4a475b(0x799),'msg':_0x298349['status']?JSON[_0x4a475b(0x2701)](_0x298349[_0x4a475b(0x25c)]):_0x298349[_0x4a475b(0x147f)]()});});}function _0x1c68ca(){return _0x4d36fc(function(_0x3c9adc,_0x237a54){const _0x5b4ba6=a0_0x5cbd;_0x26649b['userProfileSection'][_0x5b4ba6(0xbf7)]({'userProfileId':_0x337d12[_0x5b4ba6(0xe76)][_0x5b4ba6(0x13c1)],'name':_0x5b4ba6(0x2536)})[_0x5b4ba6(0x1d77)]['then'](function(_0x2bec2c){const _0x420e47=_0x5b4ba6,_0x25f3e9=_0x2bec2c&&_0x2bec2c[_0x420e47(0x2214)]?_0x2bec2c[_0x420e47(0x2214)][0x0]:null;_0x3c9adc(_0x25f3e9);})[_0x5b4ba6(0x1c4)](function(_0x40ecfa){_0x237a54(_0x40ecfa);});});}function _0x21697d(){return _0x4d36fc(function(_0x4e1c02,_0x1a153f){const _0x4721a7=a0_0x5cbd;return _0x40d1cb()[_0x4721a7(0x1cb0)](function(_0x101b8f){const _0x3dfa19=_0x4721a7;return _0x337d12[_0x3dfa19(0x122f)]=_0x101b8f[_0x3dfa19(0x2214)]?_0x101b8f[_0x3dfa19(0x2214)]:[],_0x4b0ee3[_0x3dfa19(0x22b6)]('admin')?_0x101b8f:_0x337d12[_0x3dfa19(0x1f74)]?_0x337d12[_0x3dfa19(0x1f74)][_0x3dfa19(0x12f4)]?_0x101b8f:_0x1f98a8():null;})[_0x4721a7(0x1cb0)](function(_0x515982){const _0x5afbca=_0x4721a7,_0x200654=_0x515982&&_0x515982[_0x5afbca(0x2214)]?_0x515982[_0x5afbca(0x2214)]:[];return _0x337d12[_0x5afbca(0x1372)]=_0x39641b()[_0x5afbca(0x1de2)](_0x200654,function(_0x65976f){const _0x141c4e=_0x5afbca;return _0x39641b()[_0x141c4e(0x13b4)](_0x337d12[_0x141c4e(0x122f)],{'id':_0x4b0ee3[_0x141c4e(0x22b6)](_0x141c4e(0x1c60))||_0x337d12['section']['autoAssociation']?_0x65976f['id']:_0x65976f[_0x141c4e(0x2982)]});}),_0x337d12['startingAllowedItems']=angular[_0x5afbca(0x17fe)](_0x337d12[_0x5afbca(0x1372)]),_0x337d12[_0x5afbca(0x122f)][_0x5afbca(0xf90)](function(_0x2bf2fd){const _0x344a8b=_0x5afbca,_0x294e45=_0x39641b()['find'](_0x337d12[_0x344a8b(0x1372)],{'id':_0x2bf2fd['id']});_0x4b0ee3[_0x344a8b(0x22b6)](_0x344a8b(0x1c60))?_0x2bf2fd[_0x344a8b(0x1a4f)]=!![]:_0x2bf2fd['isValid']=typeof _0x294e45!==_0x344a8b(0x16b5)?!![]:![];}),_0x23ec8d();})['then'](function(_0x22e4e0){const _0x4a4b9f=_0x4721a7,_0x213d4f=_0x22e4e0&&_0x22e4e0[_0x4a4b9f(0x2214)]?_0x22e4e0['rows']:[];_0x337d12[_0x4a4b9f(0x20bb)]=_0x39641b()[_0x4a4b9f(0x1de2)](_0x213d4f,function(_0x5f5e04){const _0x374f64=_0x4a4b9f,_0xa9166b=_0x39641b()[_0x374f64(0x13b4)](_0x337d12[_0x374f64(0x122f)],{'id':_0x5f5e04['id']});return _0xa9166b[_0x374f64(0x1cbc)]=_0x5f5e04['UserOpenchannelAccount']?_0x374f64(0x455)+_0x5f5e04[_0x374f64(0x20c0)]['penalty']:'',_0xa9166b[_0x374f64(0xdbd)]=typeof _0x5f5e04[_0x374f64(0xdbd)]!==_0x374f64(0x16b5)?'<'+_0x5f5e04['internal']+'>':'',_0xa9166b;}),_0x337d12['startingSelectedItems']=angular[_0x4a4b9f(0x17fe)](_0x337d12[_0x4a4b9f(0x20bb)]),_0x337d12['dualMultiselectOptions'][_0x4a4b9f(0x20bb)]=_0x337d12[_0x4a4b9f(0x20bb)],_0x337d12[_0x4a4b9f(0x18c0)][_0x4a4b9f(0x122f)]=_0x39641b()[_0x4a4b9f(0x2128)](_0x337d12[_0x4a4b9f(0x1372)],_0x337d12['dualMultiselectOptions'][_0x4a4b9f(0x20bb)],'id'),_0x4e1c02();})[_0x4721a7(0x1c4)](function(_0x20a4cc){_0x1a153f(_0x20a4cc);});});}function _0x1f98a8(){return _0x4d36fc(function(_0x5626fc,_0x5750c2){const _0x5d409a=a0_0x5cbd;return _0x26649b['userProfileResource'][_0x5d409a(0xbf7)]({'sectionId':_0x337d12[_0x5d409a(0x1f74)]['id'],'nolimit':!![]})[_0x5d409a(0x1d77)][_0x5d409a(0x1cb0)](function(_0x4fe0d3){_0x5626fc(_0x4fe0d3);})[_0x5d409a(0x1c4)](function(_0x31943d){_0x5750c2(_0x31943d);});});}function _0x23ec8d(){return _0x4d36fc(function(_0x4eff87,_0x243b1c){const _0x3a3473=a0_0x5cbd;return _0x26649b[_0x3a3473(0x80e)]['getAgents']({'id':_0x337d12[_0x3a3473(0x80e)]['id'],'fields':_0x3a3473(0x251e),'nolimit':!![],'role':_0x3a3473(0x1eff)})[_0x3a3473(0x1d77)][_0x3a3473(0x1cb0)](function(_0x592ecc){_0x4eff87(_0x592ecc);})['catch'](function(_0x2d0dcd){_0x243b1c(_0x2d0dcd);});});}function _0x40d1cb(){return _0x4d36fc(function(_0x392b07,_0x385ce4){const _0x4660a1=a0_0x5cbd;return _0x26649b[_0x4660a1(0xebe)][_0x4660a1(0xbf7)]({'fields':_0x4660a1(0x251e),'nolimit':!![],'role':_0x4660a1(0x1eff)})[_0x4660a1(0x1d77)][_0x4660a1(0x1cb0)](function(_0x35cfd5){_0x392b07(_0x35cfd5);})['catch'](function(_0x23015e){_0x385ce4(_0x23015e);});});}function _0x2b02bc(_0x309e56){return _0x4d36fc(function(_0x13ac29,_0x52cfc3){const _0x54bc8b=a0_0x5cbd;_0x39641b()['isEmpty'](_0x309e56)?_0x13ac29():_0x26649b[_0x54bc8b(0x80e)][_0x54bc8b(0x2057)]({'id':_0x337d12[_0x54bc8b(0x80e)]['id'],'ids':_0x39641b()['map'](_0x309e56,'id')})[_0x54bc8b(0x1d77)][_0x54bc8b(0x1cb0)](function(){_0x13ac29();})[_0x54bc8b(0x1c4)](function(_0x4e3409){_0x52cfc3(_0x4e3409);});});}function _0x2ba037(_0x4e31e6){return _0x4d36fc(function(_0x17f8e3,_0xdd093){const _0x349be9=a0_0x5cbd;_0x39641b()[_0x349be9(0xce9)](_0x4e31e6)?_0x17f8e3():_0x26649b[_0x349be9(0x80e)][_0x349be9(0x223f)]({'id':_0x337d12[_0x349be9(0x80e)]['id'],'ids':_0x39641b()[_0x349be9(0x1de2)](_0x4e31e6,'id')})[_0x349be9(0x1d77)][_0x349be9(0x1cb0)](function(){_0x17f8e3();})[_0x349be9(0x1c4)](function(_0xf37cab){_0xdd093(_0xf37cab);});});}function _0x5652df(){const _0xdcba3a=_0x1db56f,_0x3bdf88=_0x39641b()[_0xdcba3a(0x2128)](_0x337d12[_0xdcba3a(0x1456)],_0x337d12[_0xdcba3a(0x20bb)],'id'),_0xb4ef64=_0x39641b()['differenceBy'](_0x337d12[_0xdcba3a(0x20bb)],_0x337d12[_0xdcba3a(0x1456)],'id');return _0x2ba037(_0x3bdf88)['then'](function(){return _0x2b02bc(_0xb4ef64);})[_0xdcba3a(0x1cb0)](function(){const _0x3e35ed=_0xdcba3a;_0x337d12[_0x3e35ed(0x50c)]=![],_0x337d12[_0x3e35ed(0xbd5)]=angular[_0x3e35ed(0x17fe)](_0x337d12[_0x3e35ed(0x1372)]),_0x337d12[_0x3e35ed(0x1456)]=angular[_0x3e35ed(0x17fe)](_0x337d12[_0x3e35ed(0x20bb)]),_0x3485e9[_0x3e35ed(0x829)]({'title':'SUCCESS','msg':_0x3e35ed(0x976)});})['catch'](function(_0x56c900){const _0x5013cb=_0xdcba3a;_0x3485e9[_0x5013cb(0x218e)]({'title':_0x56c900[_0x5013cb(0x291)]?_0x5013cb(0xeb9)+_0x56c900[_0x5013cb(0x291)]+_0x5013cb(0x1657)+_0x56c900[_0x5013cb(0xc22)]:_0x5013cb(0x1221),'msg':_0x56c900['status']?JSON['stringify'](_0x56c900[_0x5013cb(0x25c)]):_0x56c900[_0x5013cb(0x147f)]()});});}function _0xa7d14d(){const _0x296d98=_0x1db56f;_0x43ce7a[_0x296d98(0x1426)]();}}const _0x3357ad=_0x142dcd;;_0x1ea158['$inject']=[_0x5537c6(0xcb9),'$q','toasty','openchannelAccountApp',_0x5537c6(0x80e),'api','Auth',_0x5537c6(0x1b1a)];function _0x1ea158(_0x4dcc9e,_0x395741,_0x16faa2,_0x42d4d0,_0x2a7843,_0x226aed,_0x4bdad9,_0x38074d){const _0x5e7551=_0x5537c6,_0x22fee1=this;_0x22fee1[_0x5e7551(0xe76)]=_0x4bdad9[_0x5e7551(0x21e8)](),_0x22fee1[_0x5e7551(0x1a7c)]=[],_0x22fee1[_0x5e7551(0x1386)]=_0x5e7551(0x17c7)+(_0x42d4d0[_0x5e7551(0x299b)]||_0x42d4d0['app'])[_0x5e7551(0x2335)](),_0x22fee1['agent']=angular['copy'](_0x42d4d0),_0x22fee1[_0x5e7551(0x1b1a)]=_0x38074d,_0x22fee1[_0x5e7551(0xf4c)]={};if(_0x22fee1[_0x5e7551(0x1eff)]['appdata'])switch(_0x22fee1[_0x5e7551(0x1eff)]['appType']?_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x299b)][_0x5e7551(0x1680)]():_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x22e1)][_0x5e7551(0x1680)]()){case'custom':break;case'dialogflow':{const _0x14ecb5=_0x22fee1['agent'][_0x5e7551(0x28df)][_0x5e7551(0xbe1)](',');_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0xee8)]=_0x14ecb5[0x0],_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x12b4)]=_0x14ecb5[0x1],_0x22fee1[_0x5e7551(0x1eff)]['welcomemessage']=_0x14ecb5[_0x5e7551(0x14cb)](0x2,_0x14ecb5[_0x5e7551(0xfd0)])[_0x5e7551(0x1f66)](',');}break;case _0x5e7551(0xece):{const _0x4534b4=_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x28df)][_0x5e7551(0xbe1)](',');_0x22fee1['agent'][_0x5e7551(0x2854)]=_0x4534b4[0x0],_0x22fee1['agent']['clientEmail']=_0x4534b4[0x1],_0x22fee1['agent'][_0x5e7551(0x29d6)]=_0x4534b4[0x2],_0x22fee1['agent']['language']=_0x4534b4[0x3],_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x173a)]=_0x4534b4[_0x5e7551(0x14cb)](0x4,_0x4534b4[_0x5e7551(0xfd0)])[_0x5e7551(0x1f66)](',');}break;case _0x5e7551(0x123a):{const _0x1e159e=_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x28df)][_0x5e7551(0xbe1)](',');_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x413)]=_0x1e159e[0x0],_0x22fee1['agent'][_0x5e7551(0x21d9)]=_0x1e159e[0x1],_0x22fee1['agent'][_0x5e7551(0xd50)]=_0x1e159e[0x2],_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x1c7f)]=_0x1e159e[0x3],_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x173a)]=_0x1e159e[_0x5e7551(0x14cb)](0x4,_0x1e159e[_0x5e7551(0xfd0)])[_0x5e7551(0x1f66)](',');}break;case'autoreply':{const _0x1f7914=_0x22fee1[_0x5e7551(0x1eff)]['appdata'][_0x5e7551(0xbe1)](',');_0x22fee1['agent'][_0x5e7551(0x18a5)]=isNaN(_0x1f7914[0x0])?_0x1f7914[0x0]:parseInt(_0x1f7914[0x0],0xa),_0x22fee1['agent'][_0x5e7551(0x19d3)]=_0x1f7914[_0x5e7551(0x14cb)](0x1,_0x1f7914[_0x5e7551(0xfd0)])[_0x5e7551(0x1f66)](',');}break;case _0x5e7551(0x155e):_0x22fee1['agent'][_0x5e7551(0x19d3)]=_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x28df)];break;case _0x5e7551(0x19d1):_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x16b6)]=_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x28df)]['split']('=')[0x0],_0x22fee1['agent'][_0x5e7551(0x327)]=_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x28df)][_0x5e7551(0xbe1)]('=')[0x1];break;case'agi':_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x12a7)]=_0x22fee1['agent'][_0x5e7551(0x28df)];break;default:{const _0x1c332a=_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x28df)][_0x5e7551(0xbe1)](',');_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x1eff)]=_0x39641b()[_0x5e7551(0xce9)](_0x1c332a[0x0])?_0x1c332a[0x0]:isNaN(_0x1c332a[0x0])?_0x1c332a[0x0]:parseInt(_0x1c332a[0x0],0xa),_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x1719)]=_0x39641b()[_0x5e7551(0xce9)](_0x1c332a[0x1])?_0x1c332a[0x1]:isNaN(_0x1c332a[0x1])?_0x1c332a[0x1]:parseInt(_0x1c332a[0x1],0xa);}break;}else _0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x1719)]=0x1e;_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x66a)]&&_0x22fee1[_0x5e7551(0x1eff)]['type'][_0x5e7551(0x1680)]()==='outbound'&&_0x22fee1[_0x5e7551(0x1eff)]['appType'][_0x5e7551(0x1680)]()===_0x5e7551(0x20ff)&&(_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x586)]=_0x22fee1['agent'][_0x5e7551(0x1340)]?_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x1340)][_0x5e7551(0xbe1)]('$')[0x0]:undefined,_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x1e7c)]=_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x2816)]?_0x5e7551(0x25f9)+_0x22fee1[_0x5e7551(0x1eff)][_0x5e7551(0x2816)]:undefined);_0x22fee1[_0x5e7551(0x2728)]=_0x14a44c,_0x22fee1[_0x5e7551(0xda0)]=_0x1f8be3,_0x4bdad9[_0x5e7551(0x22b6)](_0x5e7551(0x1c60))?_0x226aed[_0x5e7551(0xebe)][_0x5e7551(0xbf7)]({'fields':_0x5e7551(0x43c),'sort':_0x5e7551(0x16b6),'role':'agent','nolimit':_0x5e7551(0x44d)})[_0x5e7551(0x1d77)][_0x5e7551(0x1cb0)](function(_0x2f59a8){const _0x2439f2=_0x5e7551;_0x22fee1[_0x2439f2(0xc12)]=_0x2f59a8[_0x2439f2(0x2214)]||[];})[_0x5e7551(0x1c4)](function(_0x20b13a){const _0x5b3d1e=_0x5e7551;_0x16faa2['error']({'title':_0x20b13a['status']?_0x5b3d1e(0xeb9)+_0x20b13a['status']+_0x5b3d1e(0x1657)+_0x20b13a[_0x5b3d1e(0xc22)]:_0x5b3d1e(0x799),'msg':_0x20b13a['data']?JSON[_0x5b3d1e(0x2701)](_0x20b13a[_0x5b3d1e(0x25c)]):_0x20b13a['toString']()});}):_0x226aed[_0x5e7551(0xebe)][_0x5e7551(0xbf7)]({'fields':_0x5e7551(0x43c),'sort':'name','role':'agent','nolimit':'true'})['$promise'][_0x5e7551(0x1cb0)](function(_0x3927a9){const _0x2039ed=_0x5e7551;_0x22fee1[_0x2039ed(0xc12)]=_0x3927a9[_0x2039ed(0x2214)]||[];})[_0x5e7551(0x1cb0)](function(){const _0x708eaa=_0x5e7551;return _0x226aed[_0x708eaa(0x2199)][_0x708eaa(0xbf7)]({'userProfileId':_0x22fee1[_0x708eaa(0xe76)]['userProfileId'],'sectionId':0xca})[_0x708eaa(0x1d77)];})[_0x5e7551(0x1cb0)](function(_0x56d336){const _0x533af8=_0x5e7551,_0x2e5f67=_0x56d336&&_0x56d336[_0x533af8(0x2214)]?_0x56d336[_0x533af8(0x2214)][0x0]:null;if(!_0x2e5f67){const _0x264f73=[];let _0x3ef0b4=null;_0x22fee1[_0x533af8(0x1eff)]&&(_0x3ef0b4=_0x39641b()[_0x533af8(0x13b4)](_0x22fee1['agents'],{'name':_0x22fee1[_0x533af8(0x1eff)][_0x533af8(0x1eff)]}));for(let _0x390d9e=0x0;_0x390d9e<_0x22fee1[_0x533af8(0xc12)]['length'];_0x390d9e++){_0x3ef0b4&&_0x22fee1[_0x533af8(0xc12)][_0x390d9e]['id']===_0x3ef0b4['id']&&(_0x22fee1[_0x533af8(0xc12)][_0x390d9e][_0x533af8(0x15da)]=![],_0x264f73[_0x533af8(0x2785)](_0x22fee1['agents'][_0x390d9e]));}_0x22fee1[_0x533af8(0xc12)]=_0x264f73;}else{if(!_0x2e5f67['autoAssociation'])return _0x226aed[_0x533af8(0x1198)][_0x533af8(0xbf7)]({'sectionId':_0x2e5f67['id']})[_0x533af8(0x1d77)]['then'](function(_0x360e8d){const _0x11fa6b=_0x533af8,_0x301a84=_0x39641b()[_0x11fa6b(0x1de2)](_0x360e8d['rows'],function(_0x361cf8){const _0x33fccc=_0x11fa6b;return _0x39641b()['find'](_0x22fee1[_0x33fccc(0xc12)],{'id':_0x361cf8['resourceId']});});let _0x581d44=null;_0x22fee1[_0x11fa6b(0x1eff)]&&(_0x581d44=_0x39641b()[_0x11fa6b(0x13b4)](_0x22fee1[_0x11fa6b(0xc12)],{'name':_0x22fee1[_0x11fa6b(0x1eff)][_0x11fa6b(0x1eff)]}));if(_0x581d44&&!_0x39641b()[_0x11fa6b(0x727)](_0x301a84,['id',_0x581d44['id']])){const _0x11cdeb=_0x39641b()[_0x11fa6b(0x13b4)](_0x22fee1[_0x11fa6b(0xc12)],{'id':_0x581d44['id']});_0x11cdeb[_0x11fa6b(0x15da)]=![],_0x301a84[_0x11fa6b(0x2785)](_0x11cdeb);}_0x22fee1[_0x11fa6b(0xc12)]=_0x301a84;});}})[_0x5e7551(0x1c4)](function(_0x3bf17f){const _0x25c1b1=_0x5e7551;_0x16faa2[_0x25c1b1(0x218e)]({'title':_0x3bf17f[_0x25c1b1(0x291)]?_0x25c1b1(0xeb9)+_0x3bf17f[_0x25c1b1(0x291)]+'\x20-\x20'+_0x3bf17f[_0x25c1b1(0xc22)]:'SYSTEM:GETagents','msg':_0x3bf17f['data']?JSON[_0x25c1b1(0x2701)](_0x3bf17f[_0x25c1b1(0x25c)]):_0x3bf17f[_0x25c1b1(0x147f)]()});});function _0x14a44c(){const _0x37efe2=_0x5e7551;_0x22fee1[_0x37efe2(0x1a7c)]=[];const _0x4eb976=[];_0x22fee1[_0x37efe2(0x1eff)][_0x37efe2(0x66a)]&&_0x22fee1[_0x37efe2(0x1eff)][_0x37efe2(0x66a)][_0x37efe2(0x1680)]()===_0x37efe2(0x895)&&_0x22fee1[_0x37efe2(0x1eff)]['appType']===_0x37efe2(0x25f4)&&(_0x22fee1[_0x37efe2(0x1eff)][_0x37efe2(0x1340)]=_0x2a7843['cutdigits']?(_0x22fee1[_0x37efe2(0x1eff)][_0x37efe2(0x586)]||'')+'${EXTEN:'+_0x2a7843['cutdigits']+'}':(_0x22fee1[_0x37efe2(0x1eff)]['prefix']||'')+'${EXTEN}',_0x2a7843[_0x37efe2(0xf8d)]!==_0x37efe2(0x13b1)?_0x22fee1[_0x37efe2(0x1eff)][_0x37efe2(0x2224)]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x22fee1[_0x37efe2(0x1eff)][_0x37efe2(0x2224)]+='U(xcally-mixmonitor-context)'):_0x22fee1[_0x37efe2(0x1eff)]['options']=_0x22fee1[_0x37efe2(0x1eff)]['options'][_0x37efe2(0x288f)]('U(xcally-mixmonitor-context)',''));const _0x342733=_0x39641b()['find'](_0x22fee1[_0x37efe2(0xc12)],{'name':_0x22fee1[_0x37efe2(0x1eff)][_0x37efe2(0x1eff)]});_0x342733&&(_0x22fee1[_0x37efe2(0x1eff)][_0x37efe2(0x21ab)]=_0x342733['id']);if(_0x22fee1['agent'][_0x37efe2(0x299b)]&&_0x22fee1[_0x37efe2(0x1eff)]['appType']==='custom'){}else switch((_0x22fee1[_0x37efe2(0x1eff)]['app']||_0x22fee1[_0x37efe2(0x1eff)][_0x37efe2(0x299b)])['toLowerCase']()){case _0x37efe2(0x19d1):_0x22fee1[_0x37efe2(0x1eff)][_0x37efe2(0x28df)]=_0x22fee1[_0x37efe2(0x1eff)][_0x37efe2(0x16b6)]+'='+_0x22fee1[_0x37efe2(0x1eff)][_0x37efe2(0x327)];break;case _0x37efe2(0x197c):break;default:_0x4eb976[0x0]=_0x22fee1[_0x37efe2(0x1eff)][_0x37efe2(0x1eff)],_0x4eb976[0x1]=_0x22fee1['agent'][_0x37efe2(0x1719)],_0x22fee1[_0x37efe2(0x1eff)][_0x37efe2(0x28df)]=_0x4eb976['join'](',');}_0x1f8be3(_0x22fee1[_0x37efe2(0x1eff)]);}function _0x1f8be3(_0x232d08){const _0x17c7dc=_0x5e7551;_0x4dcc9e[_0x17c7dc(0x1426)](_0x232d08);}}const _0x5ca6b0=_0x1ea158;;_0x5e1700[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x23ad),'openchannelAccount',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x5e1700(_0x5210f9,_0x3ae618,_0x5e94c2,_0x46708b,_0xf8bc1a,_0x41a020,_0x55fbe3,_0x16cd7d){const _0x4b6f1a=_0x5537c6,_0x4bdc6c=this;_0x4bdc6c['currentUser']=_0x55fbe3[_0x4b6f1a(0x21e8)](),_0x4bdc6c['errors']=[],_0x4bdc6c['title']='OPENCHANNEL.EDIT_'+(_0x46708b[_0x4b6f1a(0x299b)]||_0x46708b[_0x4b6f1a(0x22e1)])['toUpperCase'](),_0x4bdc6c[_0x4b6f1a(0x123a)]=angular['copy'](_0x46708b),_0x4bdc6c['crudPermissions']=_0x16cd7d,_0x4bdc6c[_0x4b6f1a(0xf4c)]={};if(_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x28df)])switch(_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x299b)]?_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x299b)][_0x4b6f1a(0x1680)]():_0x4bdc6c[_0x4b6f1a(0x123a)]['app']['toLowerCase']()){case'custom':break;case _0x4b6f1a(0x711):{const _0x526e31=_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x28df)]['split'](',');_0x4bdc6c[_0x4b6f1a(0x123a)]['key']=_0x526e31[0x0],_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x12b4)]=_0x526e31[0x1],_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x173a)]=_0x526e31[_0x4b6f1a(0x14cb)](0x2,_0x526e31[_0x4b6f1a(0xfd0)])[_0x4b6f1a(0x1f66)](',');}break;case'dialogflowv2':{const _0xbcba86=_0x4bdc6c[_0x4b6f1a(0x123a)]['appdata'][_0x4b6f1a(0xbe1)](',');_0x4bdc6c['amazonlex'][_0x4b6f1a(0x2854)]=_0xbcba86[0x0],_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x12bf)]=_0xbcba86[0x1],_0x4bdc6c[_0x4b6f1a(0x123a)]['privateKey']=_0xbcba86[0x2],_0x4bdc6c['amazonlex'][_0x4b6f1a(0x12b4)]=_0xbcba86[0x3],_0x4bdc6c[_0x4b6f1a(0x123a)]['welcomemessage']=_0xbcba86[_0x4b6f1a(0x14cb)](0x4,_0xbcba86[_0x4b6f1a(0xfd0)])['join'](',');}break;case'amazonlex':{const _0x535448=_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x28df)][_0x4b6f1a(0xbe1)](',');_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x413)]=_0x535448[0x0],_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x21d9)]=_0x535448[0x1],_0x4bdc6c['amazonlex']['lexregion']=_0x535448[0x2],_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x1c7f)]=_0x535448[0x3],_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x173a)]=_0x535448[_0x4b6f1a(0x14cb)](0x4,_0x535448[_0x4b6f1a(0xfd0)])[_0x4b6f1a(0x1f66)](',');}break;case _0x4b6f1a(0x1f71):{const _0x2e1ea4=_0x4bdc6c['amazonlex']['appdata'][_0x4b6f1a(0xbe1)](',');_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x18a5)]=isNaN(_0x2e1ea4[0x0])?_0x2e1ea4[0x0]:parseInt(_0x2e1ea4[0x0],0xa),_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x19d3)]=_0x2e1ea4[_0x4b6f1a(0x14cb)](0x1,_0x2e1ea4[_0x4b6f1a(0xfd0)])[_0x4b6f1a(0x1f66)](',');}break;case _0x4b6f1a(0x155e):_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x19d3)]=_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x28df)];break;case _0x4b6f1a(0x19d1):_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x16b6)]=_0x4bdc6c[_0x4b6f1a(0x123a)]['appdata']['split']('=')[0x0],_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x327)]=_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x28df)][_0x4b6f1a(0xbe1)]('=')[0x1];break;case'agi':_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x12a7)]=_0x4bdc6c[_0x4b6f1a(0x123a)]['appdata'];break;default:{const _0x21871e=_0x4bdc6c['amazonlex'][_0x4b6f1a(0x28df)][_0x4b6f1a(0xbe1)](',');_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x413)]=_0x39641b()[_0x4b6f1a(0xce9)](_0x21871e[0x0])?_0x21871e[0x0]:isNaN(_0x21871e[0x0])?_0x21871e[0x0]:parseInt(_0x21871e[0x0],0xa),_0x4bdc6c['amazonlex']['secretaccesskey']=_0x39641b()[_0x4b6f1a(0xce9)](_0x21871e[0x1])?_0x21871e[0x1]:isNaN(_0x21871e[0x1])?_0x21871e[0x1]:parseInt(_0x21871e[0x1],0xa),_0x4bdc6c['amazonlex'][_0x4b6f1a(0xd50)]=_0x39641b()['isEmpty'](_0x21871e[0x2])?_0x21871e[0x2]:isNaN(_0x21871e[0x2])?_0x21871e[0x2]:parseInt(_0x21871e[0x2],0xa),_0x4bdc6c['amazonlex'][_0x4b6f1a(0x1c7f)]=_0x39641b()[_0x4b6f1a(0xce9)](_0x21871e[0x3])?_0x21871e[0x3]:isNaN(_0x21871e[0x3])?_0x21871e[0x3]:parseInt(_0x21871e[0x3],0xa),_0x4bdc6c['amazonlex'][_0x4b6f1a(0x173a)]=_0x39641b()[_0x4b6f1a(0xce9)](_0x21871e[0x4])?_0x21871e[0x4]:isNaN(_0x21871e[0x4])?_0x21871e[0x4]:parseInt(_0x21871e[0x4],0xa);}break;}else _0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0xd50)]=_0x4b6f1a(0x512);_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x66a)]&&_0x4bdc6c[_0x4b6f1a(0x123a)]['type'][_0x4b6f1a(0x1680)]()===_0x4b6f1a(0x895)&&_0x4bdc6c['amazonlex'][_0x4b6f1a(0x299b)][_0x4b6f1a(0x1680)]()==='outbounddial'&&(_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x586)]=_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x1340)]?_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x1340)][_0x4b6f1a(0xbe1)]('$')[0x0]:undefined,_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x1e7c)]=_0x4bdc6c[_0x4b6f1a(0x123a)][_0x4b6f1a(0x2816)]?'CALLERID(all)='+_0x4bdc6c['amazonlex'][_0x4b6f1a(0x2816)]:undefined);_0x4bdc6c[_0x4b6f1a(0x2728)]=_0x3bb137,_0x4bdc6c[_0x4b6f1a(0xda0)]=_0x95875d;function _0x3bb137(){const _0x42bdd3=_0x4b6f1a;_0x4bdc6c[_0x42bdd3(0x1a7c)]=[];const _0x209231=[];_0x4bdc6c[_0x42bdd3(0x123a)][_0x42bdd3(0x66a)]&&_0x4bdc6c['amazonlex'][_0x42bdd3(0x66a)][_0x42bdd3(0x1680)]()===_0x42bdd3(0x895)&&_0x4bdc6c[_0x42bdd3(0x123a)][_0x42bdd3(0x299b)]===_0x42bdd3(0x25f4)&&(_0x4bdc6c[_0x42bdd3(0x123a)][_0x42bdd3(0x1340)]=_0xf8bc1a['cutdigits']?(_0x4bdc6c[_0x42bdd3(0x123a)]['prefix']||'')+_0x42bdd3(0x19e4)+_0xf8bc1a['cutdigits']+'}':(_0x4bdc6c[_0x42bdd3(0x123a)][_0x42bdd3(0x586)]||'')+_0x42bdd3(0xcdd),_0xf8bc1a['recordingFormat']!=='none'?_0x4bdc6c[_0x42bdd3(0x123a)][_0x42bdd3(0x2224)][_0x42bdd3(0xd8a)](_0x42bdd3(0x106a))<0x0&&(_0x4bdc6c[_0x42bdd3(0x123a)]['options']+='U(xcally-mixmonitor-context)'):_0x4bdc6c[_0x42bdd3(0x123a)]['options']=_0x4bdc6c[_0x42bdd3(0x123a)][_0x42bdd3(0x2224)][_0x42bdd3(0x288f)](_0x42bdd3(0x106a),''));if(_0x4bdc6c[_0x42bdd3(0x123a)][_0x42bdd3(0x299b)]&&_0x4bdc6c[_0x42bdd3(0x123a)][_0x42bdd3(0x299b)]===_0x42bdd3(0x197c)){}else switch((_0x4bdc6c[_0x42bdd3(0x123a)][_0x42bdd3(0x22e1)]||_0x4bdc6c[_0x42bdd3(0x123a)][_0x42bdd3(0x299b)])[_0x42bdd3(0x1680)]()){case _0x42bdd3(0x19d1):_0x4bdc6c['amazonlex']['appdata']=_0x4bdc6c[_0x42bdd3(0x123a)][_0x42bdd3(0x16b6)]+'='+_0x4bdc6c['amazonlex']['value'];break;case'custom':break;default:_0x209231[0x0]=_0x4bdc6c[_0x42bdd3(0x123a)]['accesskeyid'],_0x209231[0x1]=_0x4bdc6c['amazonlex'][_0x42bdd3(0x21d9)],_0x209231[0x2]=_0x4bdc6c[_0x42bdd3(0x123a)][_0x42bdd3(0xd50)],_0x209231[0x3]=_0x4bdc6c[_0x42bdd3(0x123a)][_0x42bdd3(0x1c7f)],_0x209231[0x4]=_0x4bdc6c[_0x42bdd3(0x123a)][_0x42bdd3(0x173a)],_0x4bdc6c[_0x42bdd3(0x123a)][_0x42bdd3(0x28df)]=_0x209231[_0x42bdd3(0x1f66)](',');}_0x95875d(_0x4bdc6c[_0x42bdd3(0x123a)]);}function _0x95875d(_0x384165){const _0x2c8019=_0x4b6f1a;_0x5210f9[_0x2c8019(0x1426)](_0x384165);}}const _0x59b3e4=_0x5e1700;;_0x4de58e[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x23ad),_0x5537c6(0x80e),_0x5537c6(0x142b),'Auth',_0x5537c6(0x1b1a)];function _0x4de58e(_0x2cd33d,_0x5e7bfc,_0x4fa3d7,_0x307f88,_0x296e22,_0x365490,_0x162e70,_0x284400){const _0x1fa0dc=_0x5537c6,_0x49084a=this;_0x49084a[_0x1fa0dc(0xe76)]=_0x162e70[_0x1fa0dc(0x21e8)](),_0x49084a[_0x1fa0dc(0x1a7c)]=[],_0x49084a[_0x1fa0dc(0x1386)]='OPENCHANNEL.EDIT_'+(_0x307f88[_0x1fa0dc(0x299b)]||_0x307f88['app'])[_0x1fa0dc(0x2335)](),_0x49084a[_0x1fa0dc(0x1f71)]=angular[_0x1fa0dc(0x17fe)](_0x307f88),_0x49084a['crudPermissions']=_0x284400,_0x49084a[_0x1fa0dc(0xf4c)]={};if(_0x49084a[_0x1fa0dc(0x1f71)]['appdata'])switch(_0x49084a['autoreply'][_0x1fa0dc(0x299b)]?_0x49084a[_0x1fa0dc(0x1f71)]['appType']['toLowerCase']():_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x22e1)]['toLowerCase']()){case _0x1fa0dc(0x197c):break;case _0x1fa0dc(0x711):{const _0x3a571e=_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x28df)]['split'](',');_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0xee8)]=_0x3a571e[0x0],_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x12b4)]=_0x3a571e[0x1],_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x173a)]=_0x3a571e[_0x1fa0dc(0x14cb)](0x2,_0x3a571e[_0x1fa0dc(0xfd0)])[_0x1fa0dc(0x1f66)](',');}break;case _0x1fa0dc(0xece):{const _0x459a98=_0x49084a['autoreply'][_0x1fa0dc(0x28df)][_0x1fa0dc(0xbe1)](',');_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x2854)]=_0x459a98[0x0],_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x12bf)]=_0x459a98[0x1],_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x29d6)]=_0x459a98[0x2],_0x49084a[_0x1fa0dc(0x1f71)]['language']=_0x459a98[0x3],_0x49084a['autoreply'][_0x1fa0dc(0x173a)]=_0x459a98[_0x1fa0dc(0x14cb)](0x4,_0x459a98[_0x1fa0dc(0xfd0)])['join'](',');}break;case _0x1fa0dc(0x123a):{const _0x492e85=_0x49084a[_0x1fa0dc(0x1f71)]['appdata'][_0x1fa0dc(0xbe1)](',');_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x413)]=_0x492e85[0x0],_0x49084a['autoreply'][_0x1fa0dc(0x21d9)]=_0x492e85[0x1],_0x49084a['autoreply'][_0x1fa0dc(0xd50)]=_0x492e85[0x2],_0x49084a['autoreply'][_0x1fa0dc(0x1c7f)]=_0x492e85[0x3],_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x173a)]=_0x492e85[_0x1fa0dc(0x14cb)](0x4,_0x492e85[_0x1fa0dc(0xfd0)])[_0x1fa0dc(0x1f66)](',');}break;case _0x1fa0dc(0x1f71):{const _0x410579=_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x28df)][_0x1fa0dc(0xbe1)](',');_0x49084a[_0x1fa0dc(0x1f71)]['times']=isNaN(_0x410579[0x0])?_0x410579[0x0]:parseInt(_0x410579[0x0],0xa),_0x49084a['autoreply'][_0x1fa0dc(0x19d3)]=_0x410579[_0x1fa0dc(0x14cb)](0x1,_0x410579[_0x1fa0dc(0xfd0)])[_0x1fa0dc(0x1f66)](',');}break;case'message':_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x19d3)]=_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x28df)];break;case _0x1fa0dc(0x19d1):_0x49084a[_0x1fa0dc(0x1f71)]['name']=_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x28df)]['split']('=')[0x0],_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x327)]=_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x28df)][_0x1fa0dc(0xbe1)]('=')[0x1];break;case _0x1fa0dc(0x4b4):_0x49084a['autoreply'][_0x1fa0dc(0x12a7)]=_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x28df)];break;default:{const _0x102740=_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x28df)]['split'](',');_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x18a5)]=_0x39641b()[_0x1fa0dc(0xce9)](_0x102740[0x0])?_0x102740[0x0]:isNaN(_0x102740[0x0])?_0x102740[0x0]:parseInt(_0x102740[0x0],0xa),_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x19d3)]=_0x39641b()[_0x1fa0dc(0xce9)](_0x102740[0x1])?_0x102740[0x1]:isNaN(_0x102740[0x1])?_0x102740[0x1]:parseInt(_0x102740[0x1],0xa);}break;}else _0x49084a['autoreply'][_0x1fa0dc(0x18a5)]=0x1;_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x66a)]&&_0x49084a[_0x1fa0dc(0x1f71)]['type']['toLowerCase']()==='outbound'&&_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x299b)][_0x1fa0dc(0x1680)]()===_0x1fa0dc(0x20ff)&&(_0x49084a['autoreply'][_0x1fa0dc(0x586)]=_0x49084a[_0x1fa0dc(0x1f71)]['phone']?_0x49084a['autoreply'][_0x1fa0dc(0x1340)][_0x1fa0dc(0xbe1)]('$')[0x0]:undefined,_0x49084a['autoreply'][_0x1fa0dc(0x1e7c)]=_0x49084a['autoreply'][_0x1fa0dc(0x2816)]?_0x1fa0dc(0x25f9)+_0x49084a[_0x1fa0dc(0x1f71)][_0x1fa0dc(0x2816)]:undefined);_0x49084a[_0x1fa0dc(0x2728)]=_0x22a62d,_0x49084a[_0x1fa0dc(0xda0)]=_0x14f167;function _0x22a62d(){const _0x28cbf2=_0x1fa0dc;_0x49084a['errors']=[];const _0x1f4fe5=[];_0x49084a[_0x28cbf2(0x1f71)]['type']&&_0x49084a[_0x28cbf2(0x1f71)][_0x28cbf2(0x66a)][_0x28cbf2(0x1680)]()===_0x28cbf2(0x895)&&_0x49084a[_0x28cbf2(0x1f71)][_0x28cbf2(0x299b)]==='outboundDial'&&(_0x49084a[_0x28cbf2(0x1f71)][_0x28cbf2(0x1340)]=_0x296e22[_0x28cbf2(0x325)]?(_0x49084a[_0x28cbf2(0x1f71)][_0x28cbf2(0x586)]||'')+_0x28cbf2(0x19e4)+_0x296e22[_0x28cbf2(0x325)]+'}':(_0x49084a['autoreply'][_0x28cbf2(0x586)]||'')+_0x28cbf2(0xcdd),_0x296e22['recordingFormat']!==_0x28cbf2(0x13b1)?_0x49084a[_0x28cbf2(0x1f71)][_0x28cbf2(0x2224)][_0x28cbf2(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0x49084a['autoreply'][_0x28cbf2(0x2224)]+=_0x28cbf2(0x106a)):_0x49084a[_0x28cbf2(0x1f71)][_0x28cbf2(0x2224)]=_0x49084a[_0x28cbf2(0x1f71)]['options'][_0x28cbf2(0x288f)](_0x28cbf2(0x106a),''));if(_0x49084a[_0x28cbf2(0x1f71)][_0x28cbf2(0x299b)]&&_0x49084a['autoreply'][_0x28cbf2(0x299b)]===_0x28cbf2(0x197c)){}else switch((_0x49084a[_0x28cbf2(0x1f71)][_0x28cbf2(0x22e1)]||_0x49084a['autoreply']['appType'])[_0x28cbf2(0x1680)]()){case _0x28cbf2(0x19d1):_0x49084a[_0x28cbf2(0x1f71)][_0x28cbf2(0x28df)]=_0x49084a[_0x28cbf2(0x1f71)][_0x28cbf2(0x16b6)]+'='+_0x49084a[_0x28cbf2(0x1f71)]['value'];break;case'custom':break;default:_0x1f4fe5[0x0]=_0x49084a[_0x28cbf2(0x1f71)][_0x28cbf2(0x18a5)],_0x1f4fe5[0x1]=_0x49084a[_0x28cbf2(0x1f71)][_0x28cbf2(0x19d3)],_0x49084a[_0x28cbf2(0x1f71)]['appdata']=_0x1f4fe5[_0x28cbf2(0x1f66)](',');}_0x14f167(_0x49084a[_0x28cbf2(0x1f71)]);}function _0x14f167(_0x174ec5){const _0x257c60=_0x1fa0dc;_0x2cd33d[_0x257c60(0x1426)](_0x174ec5);}}const _0x37bbbd=_0x4de58e;;_0x4bfa28[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x23ad),_0x5537c6(0x80e),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x4bfa28(_0x28950f,_0x57304e,_0x52edea,_0x16905b,_0x45e734,_0x147597,_0x1ce846,_0x83d8f5){const _0x2f8759=_0x5537c6,_0x5dd66c=this;_0x5dd66c[_0x2f8759(0xe76)]=_0x1ce846[_0x2f8759(0x21e8)](),_0x5dd66c[_0x2f8759(0x1a7c)]=[],_0x5dd66c[_0x2f8759(0x1386)]=_0x2f8759(0x17c7)+(_0x16905b[_0x2f8759(0x299b)]||_0x16905b[_0x2f8759(0x22e1)])['toUpperCase'](),_0x5dd66c[_0x2f8759(0xf3b)]=angular[_0x2f8759(0x17fe)](_0x16905b),_0x5dd66c['crudPermissions']=_0x83d8f5,_0x5dd66c[_0x2f8759(0xf4c)]={};if(_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x28df)])switch(_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x299b)]?_0x5dd66c['close']['appType'][_0x2f8759(0x1680)]():_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x22e1)][_0x2f8759(0x1680)]()){case _0x2f8759(0x197c):break;case'dialogflow':{const _0x43742e=_0x5dd66c['close']['appdata']['split'](',');_0x5dd66c['close'][_0x2f8759(0xee8)]=_0x43742e[0x0],_0x5dd66c['close'][_0x2f8759(0x12b4)]=_0x43742e[0x1],_0x5dd66c['close']['welcomemessage']=_0x43742e[_0x2f8759(0x14cb)](0x2,_0x43742e[_0x2f8759(0xfd0)])[_0x2f8759(0x1f66)](',');}break;case _0x2f8759(0xece):{const _0xd3785a=_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x28df)]['split'](',');_0x5dd66c['close'][_0x2f8759(0x2854)]=_0xd3785a[0x0],_0x5dd66c[_0x2f8759(0xf3b)]['clientEmail']=_0xd3785a[0x1],_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x29d6)]=_0xd3785a[0x2],_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x12b4)]=_0xd3785a[0x3],_0x5dd66c[_0x2f8759(0xf3b)]['welcomemessage']=_0xd3785a[_0x2f8759(0x14cb)](0x4,_0xd3785a[_0x2f8759(0xfd0)])['join'](',');}break;case'amazonlex':{const _0x205745=_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x28df)][_0x2f8759(0xbe1)](',');_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x413)]=_0x205745[0x0],_0x5dd66c[_0x2f8759(0xf3b)]['secretaccesskey']=_0x205745[0x1],_0x5dd66c[_0x2f8759(0xf3b)]['lexregion']=_0x205745[0x2],_0x5dd66c['close'][_0x2f8759(0x1c7f)]=_0x205745[0x3],_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x173a)]=_0x205745[_0x2f8759(0x14cb)](0x4,_0x205745[_0x2f8759(0xfd0)])[_0x2f8759(0x1f66)](',');}break;case _0x2f8759(0x1f71):{const _0x16ad3a=_0x5dd66c['close']['appdata'][_0x2f8759(0xbe1)](',');_0x5dd66c['close']['times']=isNaN(_0x16ad3a[0x0])?_0x16ad3a[0x0]:parseInt(_0x16ad3a[0x0],0xa),_0x5dd66c['close'][_0x2f8759(0x19d3)]=_0x16ad3a[_0x2f8759(0x14cb)](0x1,_0x16ad3a[_0x2f8759(0xfd0)])[_0x2f8759(0x1f66)](',');}break;case _0x2f8759(0x155e):_0x5dd66c[_0x2f8759(0xf3b)]['text']=_0x5dd66c[_0x2f8759(0xf3b)]['appdata'];break;case _0x2f8759(0x19d1):_0x5dd66c['close']['name']=_0x5dd66c['close'][_0x2f8759(0x28df)][_0x2f8759(0xbe1)]('=')[0x0],_0x5dd66c[_0x2f8759(0xf3b)]['value']=_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x28df)][_0x2f8759(0xbe1)]('=')[0x1];break;case _0x2f8759(0x4b4):_0x5dd66c['close']['project']=_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x28df)];break;default:{const _0x46e6a6=_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x28df)][_0x2f8759(0xbe1)](',');_0x5dd66c[_0x2f8759(0xf3b)]['disposition']=_0x39641b()[_0x2f8759(0xce9)](_0x46e6a6[0x0])?_0x46e6a6[0x0]:isNaN(_0x46e6a6[0x0])?_0x46e6a6[0x0]:parseInt(_0x46e6a6[0x0],0xa);}break;}else{}_0x5dd66c['close'][_0x2f8759(0x66a)]&&_0x5dd66c['close'][_0x2f8759(0x66a)]['toLowerCase']()===_0x2f8759(0x895)&&_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x299b)][_0x2f8759(0x1680)]()===_0x2f8759(0x20ff)&&(_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x586)]=_0x5dd66c[_0x2f8759(0xf3b)]['phone']?_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x1340)][_0x2f8759(0xbe1)]('$')[0x0]:undefined,_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x1e7c)]=_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x2816)]?'CALLERID(all)='+_0x5dd66c[_0x2f8759(0xf3b)][_0x2f8759(0x2816)]:undefined);_0x5dd66c[_0x2f8759(0x2728)]=_0x5f1663,_0x5dd66c[_0x2f8759(0xda0)]=_0x3767d0;function _0x5f1663(){const _0x5bb1fb=_0x2f8759;_0x5dd66c[_0x5bb1fb(0x1a7c)]=[];const _0x545196=[];_0x5dd66c['close'][_0x5bb1fb(0x66a)]&&_0x5dd66c[_0x5bb1fb(0xf3b)][_0x5bb1fb(0x66a)]['toLowerCase']()==='outbound'&&_0x5dd66c[_0x5bb1fb(0xf3b)]['appType']===_0x5bb1fb(0x25f4)&&(_0x5dd66c[_0x5bb1fb(0xf3b)]['phone']=_0x45e734[_0x5bb1fb(0x325)]?(_0x5dd66c['close'][_0x5bb1fb(0x586)]||'')+'${EXTEN:'+_0x45e734[_0x5bb1fb(0x325)]+'}':(_0x5dd66c[_0x5bb1fb(0xf3b)][_0x5bb1fb(0x586)]||'')+_0x5bb1fb(0xcdd),_0x45e734[_0x5bb1fb(0xf8d)]!==_0x5bb1fb(0x13b1)?_0x5dd66c[_0x5bb1fb(0xf3b)][_0x5bb1fb(0x2224)][_0x5bb1fb(0xd8a)](_0x5bb1fb(0x106a))<0x0&&(_0x5dd66c[_0x5bb1fb(0xf3b)]['options']+=_0x5bb1fb(0x106a)):_0x5dd66c[_0x5bb1fb(0xf3b)][_0x5bb1fb(0x2224)]=_0x5dd66c[_0x5bb1fb(0xf3b)][_0x5bb1fb(0x2224)][_0x5bb1fb(0x288f)](_0x5bb1fb(0x106a),''));if(_0x5dd66c[_0x5bb1fb(0xf3b)][_0x5bb1fb(0x299b)]&&_0x5dd66c['close'][_0x5bb1fb(0x299b)]===_0x5bb1fb(0x197c)){}else switch((_0x5dd66c[_0x5bb1fb(0xf3b)][_0x5bb1fb(0x22e1)]||_0x5dd66c['close'][_0x5bb1fb(0x299b)])[_0x5bb1fb(0x1680)]()){case _0x5bb1fb(0x19d1):_0x5dd66c['close']['appdata']=_0x5dd66c[_0x5bb1fb(0xf3b)][_0x5bb1fb(0x16b6)]+'='+_0x5dd66c['close'][_0x5bb1fb(0x327)];break;case'custom':break;default:_0x545196[0x0]=_0x5dd66c[_0x5bb1fb(0xf3b)]['disposition'],_0x5dd66c[_0x5bb1fb(0xf3b)][_0x5bb1fb(0x28df)]=_0x545196[_0x5bb1fb(0x1f66)](',');}_0x3767d0(_0x5dd66c[_0x5bb1fb(0xf3b)]);}function _0x3767d0(_0x9abf18){_0x28950f['hide'](_0x9abf18);}}const _0x43a0e1=_0x4bfa28;;_0x57e876[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x23ad),_0x5537c6(0x80e),'api',_0x5537c6(0x1774),'crudPermissions'];function _0x57e876(_0x13fa8d,_0x5033fe,_0x3a152f,_0x1586f1,_0x1eaac5,_0x5eb4b9,_0x58fca5,_0x5f3fb4){const _0x1a94b4=_0x5537c6,_0x4505cb=this;_0x4505cb[_0x1a94b4(0xe76)]=_0x58fca5['getCurrentUser'](),_0x4505cb[_0x1a94b4(0x1a7c)]=[],_0x4505cb[_0x1a94b4(0x1386)]='OPENCHANNEL.EDIT_'+(_0x1586f1[_0x1a94b4(0x299b)]||_0x1586f1[_0x1a94b4(0x22e1)])[_0x1a94b4(0x2335)](),_0x4505cb[_0x1a94b4(0x711)]=angular[_0x1a94b4(0x17fe)](_0x1586f1),_0x4505cb[_0x1a94b4(0x1b1a)]=_0x5f3fb4,_0x4505cb[_0x1a94b4(0xf4c)]={};if(_0x4505cb['dialogflow']['appdata'])switch(_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x299b)]?_0x4505cb[_0x1a94b4(0x711)]['appType']['toLowerCase']():_0x4505cb[_0x1a94b4(0x711)]['app'][_0x1a94b4(0x1680)]()){case'custom':break;case _0x1a94b4(0x711):{const _0x363f95=_0x4505cb['dialogflow'][_0x1a94b4(0x28df)][_0x1a94b4(0xbe1)](',');_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0xee8)]=_0x363f95[0x0],_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x12b4)]=_0x363f95[0x1],_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x173a)]=_0x363f95['slice'](0x2,_0x363f95[_0x1a94b4(0xfd0)])[_0x1a94b4(0x1f66)](',');}break;case _0x1a94b4(0xece):{const _0x27d5df=_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x28df)][_0x1a94b4(0xbe1)](',');_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x2854)]=_0x27d5df[0x0],_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x12bf)]=_0x27d5df[0x1],_0x4505cb['dialogflow'][_0x1a94b4(0x29d6)]=_0x27d5df[0x2],_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x12b4)]=_0x27d5df[0x3],_0x4505cb['dialogflow']['welcomemessage']=_0x27d5df['slice'](0x4,_0x27d5df[_0x1a94b4(0xfd0)])[_0x1a94b4(0x1f66)](',');}break;case'amazonlex':{const _0x5a726d=_0x4505cb['dialogflow'][_0x1a94b4(0x28df)][_0x1a94b4(0xbe1)](',');_0x4505cb[_0x1a94b4(0x711)]['accesskeyid']=_0x5a726d[0x0],_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x21d9)]=_0x5a726d[0x1],_0x4505cb['dialogflow'][_0x1a94b4(0xd50)]=_0x5a726d[0x2],_0x4505cb['dialogflow'][_0x1a94b4(0x1c7f)]=_0x5a726d[0x3],_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x173a)]=_0x5a726d[_0x1a94b4(0x14cb)](0x4,_0x5a726d[_0x1a94b4(0xfd0)])[_0x1a94b4(0x1f66)](',');}break;case'autoreply':{const _0x5e17c6=_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x28df)]['split'](',');_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x18a5)]=isNaN(_0x5e17c6[0x0])?_0x5e17c6[0x0]:parseInt(_0x5e17c6[0x0],0xa),_0x4505cb[_0x1a94b4(0x711)]['text']=_0x5e17c6[_0x1a94b4(0x14cb)](0x1,_0x5e17c6[_0x1a94b4(0xfd0)])['join'](',');}break;case'message':_0x4505cb[_0x1a94b4(0x711)]['text']=_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x28df)];break;case _0x1a94b4(0x19d1):_0x4505cb[_0x1a94b4(0x711)]['name']=_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x28df)]['split']('=')[0x0],_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x327)]=_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x28df)][_0x1a94b4(0xbe1)]('=')[0x1];break;case _0x1a94b4(0x4b4):_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x12a7)]=_0x4505cb[_0x1a94b4(0x711)]['appdata'];break;default:{const _0x340d56=_0x4505cb[_0x1a94b4(0x711)]['appdata'][_0x1a94b4(0xbe1)](',');_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0xee8)]=_0x39641b()[_0x1a94b4(0xce9)](_0x340d56[0x0])?_0x340d56[0x0]:isNaN(_0x340d56[0x0])?_0x340d56[0x0]:parseInt(_0x340d56[0x0],0xa),_0x4505cb['dialogflow'][_0x1a94b4(0x12b4)]=_0x39641b()[_0x1a94b4(0xce9)](_0x340d56[0x1])?_0x340d56[0x1]:isNaN(_0x340d56[0x1])?_0x340d56[0x1]:parseInt(_0x340d56[0x1],0xa),_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x173a)]=_0x39641b()[_0x1a94b4(0xce9)](_0x340d56[0x2])?_0x340d56[0x2]:isNaN(_0x340d56[0x2])?_0x340d56[0x2]:parseInt(_0x340d56[0x2],0xa);}break;}else _0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x12b4)]='en';_0x4505cb['dialogflow'][_0x1a94b4(0x66a)]&&_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x66a)][_0x1a94b4(0x1680)]()===_0x1a94b4(0x895)&&_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x299b)][_0x1a94b4(0x1680)]()===_0x1a94b4(0x20ff)&&(_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x586)]=_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x1340)]?_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x1340)][_0x1a94b4(0xbe1)]('$')[0x0]:undefined,_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x1e7c)]=_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x2816)]?'CALLERID(all)='+_0x4505cb[_0x1a94b4(0x711)][_0x1a94b4(0x2816)]:undefined);_0x4505cb[_0x1a94b4(0x2728)]=_0x2e53c4,_0x4505cb[_0x1a94b4(0xda0)]=_0x49ca63;function _0x2e53c4(){const _0x442b7f=_0x1a94b4;_0x4505cb[_0x442b7f(0x1a7c)]=[];const _0x57e9c1=[];_0x4505cb['dialogflow'][_0x442b7f(0x66a)]&&_0x4505cb[_0x442b7f(0x711)][_0x442b7f(0x66a)][_0x442b7f(0x1680)]()===_0x442b7f(0x895)&&_0x4505cb[_0x442b7f(0x711)][_0x442b7f(0x299b)]===_0x442b7f(0x25f4)&&(_0x4505cb['dialogflow'][_0x442b7f(0x1340)]=_0x1eaac5[_0x442b7f(0x325)]?(_0x4505cb['dialogflow'][_0x442b7f(0x586)]||'')+_0x442b7f(0x19e4)+_0x1eaac5[_0x442b7f(0x325)]+'}':(_0x4505cb[_0x442b7f(0x711)]['prefix']||'')+'${EXTEN}',_0x1eaac5['recordingFormat']!==_0x442b7f(0x13b1)?_0x4505cb[_0x442b7f(0x711)][_0x442b7f(0x2224)]['indexOf'](_0x442b7f(0x106a))<0x0&&(_0x4505cb['dialogflow']['options']+=_0x442b7f(0x106a)):_0x4505cb[_0x442b7f(0x711)][_0x442b7f(0x2224)]=_0x4505cb[_0x442b7f(0x711)][_0x442b7f(0x2224)][_0x442b7f(0x288f)]('U(xcally-mixmonitor-context)',''));if(_0x4505cb['dialogflow']['appType']&&_0x4505cb['dialogflow'][_0x442b7f(0x299b)]===_0x442b7f(0x197c)){}else switch((_0x4505cb[_0x442b7f(0x711)][_0x442b7f(0x22e1)]||_0x4505cb['dialogflow'][_0x442b7f(0x299b)])[_0x442b7f(0x1680)]()){case _0x442b7f(0x19d1):_0x4505cb[_0x442b7f(0x711)][_0x442b7f(0x28df)]=_0x4505cb[_0x442b7f(0x711)][_0x442b7f(0x16b6)]+'='+_0x4505cb['dialogflow'][_0x442b7f(0x327)];break;case _0x442b7f(0x197c):break;default:_0x57e9c1[0x0]=_0x4505cb['dialogflow'][_0x442b7f(0xee8)],_0x57e9c1[0x1]=_0x4505cb['dialogflow'][_0x442b7f(0x12b4)],_0x57e9c1[0x2]=_0x4505cb['dialogflow']['welcomemessage'],_0x4505cb['dialogflow'][_0x442b7f(0x28df)]=_0x57e9c1[_0x442b7f(0x1f66)](',');}_0x49ca63(_0x4505cb['dialogflow']);}function _0x49ca63(_0x3831d9){_0x13fa8d['hide'](_0x3831d9);}}const _0x301c45=_0x57e876;;_0x30a5e3[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),'openchannelAccountApp',_0x5537c6(0x80e),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x30a5e3(_0x2427c6,_0x58a293,_0x1a4623,_0x5eec5c,_0x55a4e9,_0x3a8725,_0x56e62b,_0x284da5){const _0x4e3073=_0x5537c6,_0x2a8282=this;_0x2a8282[_0x4e3073(0xe76)]=_0x56e62b['getCurrentUser'](),_0x2a8282[_0x4e3073(0x1a7c)]=[],_0x2a8282[_0x4e3073(0x1386)]=_0x4e3073(0x17c7)+(_0x5eec5c[_0x4e3073(0x299b)]||_0x5eec5c['app'])[_0x4e3073(0x2335)](),_0x2a8282[_0x4e3073(0x13a0)]=angular[_0x4e3073(0x17fe)](_0x5eec5c),_0x2a8282['crudPermissions']=_0x284da5,_0x2a8282['hasModulePermissions']={};if(_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x28df)])switch(_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x299b)]?_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x299b)][_0x4e3073(0x1680)]():_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x22e1)][_0x4e3073(0x1680)]()){case _0x4e3073(0x197c):break;case _0x4e3073(0x711):{const _0x5b7e0a=_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x28df)][_0x4e3073(0xbe1)](',');_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0xee8)]=_0x5b7e0a[0x0],_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x12b4)]=_0x5b7e0a[0x1],_0x2a8282['gotoif'][_0x4e3073(0x173a)]=_0x5b7e0a['slice'](0x2,_0x5b7e0a[_0x4e3073(0xfd0)])[_0x4e3073(0x1f66)](',');}break;case _0x4e3073(0xece):{const _0x473403=_0x2a8282['gotoif'][_0x4e3073(0x28df)][_0x4e3073(0xbe1)](',');_0x2a8282[_0x4e3073(0x13a0)]['projectId']=_0x473403[0x0],_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x12bf)]=_0x473403[0x1],_0x2a8282['gotoif'][_0x4e3073(0x29d6)]=_0x473403[0x2],_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x12b4)]=_0x473403[0x3],_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x173a)]=_0x473403['slice'](0x4,_0x473403[_0x4e3073(0xfd0)])[_0x4e3073(0x1f66)](',');}break;case _0x4e3073(0x123a):{const _0x4d1bf8=_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x28df)][_0x4e3073(0xbe1)](',');_0x2a8282[_0x4e3073(0x13a0)]['accesskeyid']=_0x4d1bf8[0x0],_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x21d9)]=_0x4d1bf8[0x1],_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0xd50)]=_0x4d1bf8[0x2],_0x2a8282['gotoif'][_0x4e3073(0x1c7f)]=_0x4d1bf8[0x3],_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x173a)]=_0x4d1bf8[_0x4e3073(0x14cb)](0x4,_0x4d1bf8[_0x4e3073(0xfd0)])[_0x4e3073(0x1f66)](',');}break;case _0x4e3073(0x1f71):{const _0x9f5099=_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x28df)]['split'](',');_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x18a5)]=isNaN(_0x9f5099[0x0])?_0x9f5099[0x0]:parseInt(_0x9f5099[0x0],0xa),_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x19d3)]=_0x9f5099[_0x4e3073(0x14cb)](0x1,_0x9f5099['length'])[_0x4e3073(0x1f66)](',');}break;case _0x4e3073(0x155e):_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x19d3)]=_0x2a8282[_0x4e3073(0x13a0)]['appdata'];break;case _0x4e3073(0x19d1):_0x2a8282['gotoif'][_0x4e3073(0x16b6)]=_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x28df)][_0x4e3073(0xbe1)]('=')[0x0],_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x327)]=_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x28df)]['split']('=')[0x1];break;case _0x4e3073(0x4b4):_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x12a7)]=_0x2a8282['gotoif']['appdata'];break;default:{const _0x2f49e2=_0x2a8282['gotoif']['appdata'][_0x4e3073(0xbe1)](',');_0x2a8282[_0x4e3073(0x13a0)]['condition']=_0x39641b()['isEmpty'](_0x2f49e2[0x0])?_0x2f49e2[0x0]:isNaN(_0x2f49e2[0x0])?_0x2f49e2[0x0]:parseInt(_0x2f49e2[0x0],0xa),_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0xb24)]=_0x39641b()[_0x4e3073(0xce9)](_0x2f49e2[0x1])?_0x2f49e2[0x1]:isNaN(_0x2f49e2[0x1])?_0x2f49e2[0x1]:parseInt(_0x2f49e2[0x1],0xa),_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x17d)]=_0x39641b()[_0x4e3073(0xce9)](_0x2f49e2[0x2])?_0x2f49e2[0x2]:isNaN(_0x2f49e2[0x2])?_0x2f49e2[0x2]:parseInt(_0x2f49e2[0x2],0xa);}break;}else{}_0x2a8282[_0x4e3073(0x13a0)]['type']&&_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x66a)][_0x4e3073(0x1680)]()===_0x4e3073(0x895)&&_0x2a8282[_0x4e3073(0x13a0)]['appType'][_0x4e3073(0x1680)]()===_0x4e3073(0x20ff)&&(_0x2a8282[_0x4e3073(0x13a0)]['prefix']=_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x1340)]?_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x1340)][_0x4e3073(0xbe1)]('$')[0x0]:undefined,_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x1e7c)]=_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x2816)]?_0x4e3073(0x25f9)+_0x2a8282[_0x4e3073(0x13a0)][_0x4e3073(0x2816)]:undefined);_0x2a8282[_0x4e3073(0x2728)]=_0x53fe46,_0x2a8282[_0x4e3073(0xda0)]=_0x761068;function _0x53fe46(){const _0x391ca1=_0x4e3073;_0x2a8282['errors']=[];const _0x52922e=[];_0x2a8282[_0x391ca1(0x13a0)][_0x391ca1(0x66a)]&&_0x2a8282[_0x391ca1(0x13a0)][_0x391ca1(0x66a)][_0x391ca1(0x1680)]()==='outbound'&&_0x2a8282[_0x391ca1(0x13a0)]['appType']===_0x391ca1(0x25f4)&&(_0x2a8282[_0x391ca1(0x13a0)][_0x391ca1(0x1340)]=_0x55a4e9['cutdigits']?(_0x2a8282[_0x391ca1(0x13a0)][_0x391ca1(0x586)]||'')+_0x391ca1(0x19e4)+_0x55a4e9[_0x391ca1(0x325)]+'}':(_0x2a8282[_0x391ca1(0x13a0)][_0x391ca1(0x586)]||'')+_0x391ca1(0xcdd),_0x55a4e9[_0x391ca1(0xf8d)]!==_0x391ca1(0x13b1)?_0x2a8282[_0x391ca1(0x13a0)]['options'][_0x391ca1(0xd8a)](_0x391ca1(0x106a))<0x0&&(_0x2a8282[_0x391ca1(0x13a0)][_0x391ca1(0x2224)]+=_0x391ca1(0x106a)):_0x2a8282[_0x391ca1(0x13a0)][_0x391ca1(0x2224)]=_0x2a8282[_0x391ca1(0x13a0)]['options'][_0x391ca1(0x288f)](_0x391ca1(0x106a),''));if(_0x2a8282['gotoif'][_0x391ca1(0x299b)]&&_0x2a8282['gotoif'][_0x391ca1(0x299b)]===_0x391ca1(0x197c)){}else switch((_0x2a8282['gotoif'][_0x391ca1(0x22e1)]||_0x2a8282['gotoif'][_0x391ca1(0x299b)])[_0x391ca1(0x1680)]()){case _0x391ca1(0x19d1):_0x2a8282['gotoif']['appdata']=_0x2a8282[_0x391ca1(0x13a0)]['name']+'='+_0x2a8282[_0x391ca1(0x13a0)][_0x391ca1(0x327)];break;case _0x391ca1(0x197c):break;default:_0x52922e[0x0]=_0x2a8282[_0x391ca1(0x13a0)]['condition'],_0x52922e[0x1]=_0x2a8282[_0x391ca1(0x13a0)][_0x391ca1(0xb24)],_0x52922e[0x2]=_0x2a8282[_0x391ca1(0x13a0)][_0x391ca1(0x17d)],_0x2a8282[_0x391ca1(0x13a0)][_0x391ca1(0x28df)]=_0x52922e['join'](',');}_0x761068(_0x2a8282[_0x391ca1(0x13a0)]);}function _0x761068(_0x371593){_0x2427c6['hide'](_0x371593);}}const _0x4a6f7b=_0x30a5e3;;_0x420c7c[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x23ad),_0x5537c6(0x80e),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x420c7c(_0x46310c,_0x24098a,_0x5c7900,_0x4159ff,_0x1631e0,_0x56881d,_0x573cf8,_0x54683d){const _0x2c57e8=_0x5537c6,_0x5d3ae6=this;_0x5d3ae6[_0x2c57e8(0xe76)]=_0x573cf8[_0x2c57e8(0x21e8)](),_0x5d3ae6[_0x2c57e8(0x1a7c)]=[],_0x5d3ae6[_0x2c57e8(0x1386)]=_0x2c57e8(0x17c7)+(_0x4159ff[_0x2c57e8(0x299b)]||_0x4159ff[_0x2c57e8(0x22e1)])[_0x2c57e8(0x2335)](),_0x5d3ae6[_0x2c57e8(0x265b)]=angular['copy'](_0x4159ff),_0x5d3ae6[_0x2c57e8(0x1b1a)]=_0x54683d,_0x5d3ae6[_0x2c57e8(0xf4c)]={};if(_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x28df)])switch(_0x5d3ae6[_0x2c57e8(0x265b)]['appType']?_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x299b)][_0x2c57e8(0x1680)]():_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x22e1)][_0x2c57e8(0x1680)]()){case _0x2c57e8(0x197c):break;case _0x2c57e8(0x711):{const _0x1022a7=_0x5d3ae6['gotop'][_0x2c57e8(0x28df)]['split'](',');_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0xee8)]=_0x1022a7[0x0],_0x5d3ae6[_0x2c57e8(0x265b)]['language']=_0x1022a7[0x1],_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x173a)]=_0x1022a7['slice'](0x2,_0x1022a7[_0x2c57e8(0xfd0)])['join'](',');}break;case _0x2c57e8(0xece):{const _0x4956a4=_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x28df)][_0x2c57e8(0xbe1)](',');_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x2854)]=_0x4956a4[0x0],_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x12bf)]=_0x4956a4[0x1],_0x5d3ae6['gotop'][_0x2c57e8(0x29d6)]=_0x4956a4[0x2],_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x12b4)]=_0x4956a4[0x3],_0x5d3ae6['gotop'][_0x2c57e8(0x173a)]=_0x4956a4[_0x2c57e8(0x14cb)](0x4,_0x4956a4[_0x2c57e8(0xfd0)])['join'](',');}break;case _0x2c57e8(0x123a):{const _0x35b7ef=_0x5d3ae6[_0x2c57e8(0x265b)]['appdata'][_0x2c57e8(0xbe1)](',');_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x413)]=_0x35b7ef[0x0],_0x5d3ae6[_0x2c57e8(0x265b)]['secretaccesskey']=_0x35b7ef[0x1],_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0xd50)]=_0x35b7ef[0x2],_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x1c7f)]=_0x35b7ef[0x3],_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x173a)]=_0x35b7ef[_0x2c57e8(0x14cb)](0x4,_0x35b7ef[_0x2c57e8(0xfd0)])[_0x2c57e8(0x1f66)](',');}break;case _0x2c57e8(0x1f71):{const _0x29d0db=_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x28df)][_0x2c57e8(0xbe1)](',');_0x5d3ae6['gotop'][_0x2c57e8(0x18a5)]=isNaN(_0x29d0db[0x0])?_0x29d0db[0x0]:parseInt(_0x29d0db[0x0],0xa),_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x19d3)]=_0x29d0db[_0x2c57e8(0x14cb)](0x1,_0x29d0db[_0x2c57e8(0xfd0)])[_0x2c57e8(0x1f66)](',');}break;case _0x2c57e8(0x155e):_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x19d3)]=_0x5d3ae6['gotop']['appdata'];break;case _0x2c57e8(0x19d1):_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x16b6)]=_0x5d3ae6[_0x2c57e8(0x265b)]['appdata'][_0x2c57e8(0xbe1)]('=')[0x0],_0x5d3ae6['gotop'][_0x2c57e8(0x327)]=_0x5d3ae6['gotop'][_0x2c57e8(0x28df)]['split']('=')[0x1];break;case _0x2c57e8(0x4b4):_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x12a7)]=_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x28df)];break;default:{const _0x3714ba=_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x28df)]['split'](',');_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x521)]=_0x39641b()[_0x2c57e8(0xce9)](_0x3714ba[0x0])?_0x3714ba[0x0]:isNaN(_0x3714ba[0x0])?_0x3714ba[0x0]:parseInt(_0x3714ba[0x0],0xa);}break;}else{}_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x66a)]&&_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x66a)][_0x2c57e8(0x1680)]()===_0x2c57e8(0x895)&&_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x299b)]['toLowerCase']()===_0x2c57e8(0x20ff)&&(_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x586)]=_0x5d3ae6[_0x2c57e8(0x265b)][_0x2c57e8(0x1340)]?_0x5d3ae6[_0x2c57e8(0x265b)]['phone'][_0x2c57e8(0xbe1)]('$')[0x0]:undefined,_0x5d3ae6[_0x2c57e8(0x265b)]['callerId']=_0x5d3ae6[_0x2c57e8(0x265b)]['callerID']?'CALLERID(all)='+_0x5d3ae6[_0x2c57e8(0x265b)]['callerID']:undefined);_0x5d3ae6[_0x2c57e8(0x2728)]=_0x28415a,_0x5d3ae6[_0x2c57e8(0xda0)]=_0x642f30;function _0x28415a(){const _0x45094e=_0x2c57e8;_0x5d3ae6[_0x45094e(0x1a7c)]=[];const _0x5c0d8b=[];_0x5d3ae6[_0x45094e(0x265b)][_0x45094e(0x66a)]&&_0x5d3ae6['gotop']['type'][_0x45094e(0x1680)]()===_0x45094e(0x895)&&_0x5d3ae6[_0x45094e(0x265b)][_0x45094e(0x299b)]===_0x45094e(0x25f4)&&(_0x5d3ae6[_0x45094e(0x265b)][_0x45094e(0x1340)]=_0x1631e0[_0x45094e(0x325)]?(_0x5d3ae6[_0x45094e(0x265b)][_0x45094e(0x586)]||'')+_0x45094e(0x19e4)+_0x1631e0[_0x45094e(0x325)]+'}':(_0x5d3ae6[_0x45094e(0x265b)]['prefix']||'')+_0x45094e(0xcdd),_0x1631e0[_0x45094e(0xf8d)]!==_0x45094e(0x13b1)?_0x5d3ae6[_0x45094e(0x265b)][_0x45094e(0x2224)][_0x45094e(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0x5d3ae6[_0x45094e(0x265b)][_0x45094e(0x2224)]+=_0x45094e(0x106a)):_0x5d3ae6[_0x45094e(0x265b)][_0x45094e(0x2224)]=_0x5d3ae6[_0x45094e(0x265b)]['options'][_0x45094e(0x288f)]('U(xcally-mixmonitor-context)',''));if(_0x5d3ae6[_0x45094e(0x265b)][_0x45094e(0x299b)]&&_0x5d3ae6[_0x45094e(0x265b)][_0x45094e(0x299b)]===_0x45094e(0x197c)){}else switch((_0x5d3ae6[_0x45094e(0x265b)][_0x45094e(0x22e1)]||_0x5d3ae6[_0x45094e(0x265b)]['appType'])[_0x45094e(0x1680)]()){case _0x45094e(0x19d1):_0x5d3ae6['gotop'][_0x45094e(0x28df)]=_0x5d3ae6[_0x45094e(0x265b)][_0x45094e(0x16b6)]+'='+_0x5d3ae6[_0x45094e(0x265b)][_0x45094e(0x327)];break;case _0x45094e(0x197c):break;default:_0x5c0d8b[0x0]=_0x5d3ae6['gotop'][_0x45094e(0x521)],_0x5d3ae6[_0x45094e(0x265b)]['appdata']=_0x5c0d8b[_0x45094e(0x1f66)](',');}_0x642f30(_0x5d3ae6[_0x45094e(0x265b)]);}function _0x642f30(_0x4d3e02){const _0x36b4a5=_0x2c57e8;_0x46310c[_0x36b4a5(0x1426)](_0x4d3e02);}}const _0x876d4b=_0x420c7c;;_0x1890cc[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0xcb9),_0x5537c6(0x200d),'IndexFactory',_0x5537c6(0x1ac8),_0x5537c6(0xb4a),_0x5537c6(0x9bf),_0x5537c6(0x142b),'Auth',_0x5537c6(0x1b1a)];function _0x1890cc(_0x132321,_0x21e006,_0x4ab204,_0x24602c,_0x22f9d8,_0x435bed,_0x303b67,_0x16f51e,_0x544c0c,_0x12fd37){const _0x43e5d3=_0x5537c6,_0x3bbacf=this;_0x3bbacf[_0x43e5d3(0xe76)]=_0x544c0c[_0x43e5d3(0x21e8)](),_0x3bbacf['errors']=[],_0x3bbacf[_0x43e5d3(0x1386)]=_0x43e5d3(0x1571),_0x3bbacf[_0x43e5d3(0x1ac8)]=angular[_0x43e5d3(0x17fe)](_0x22f9d8),_0x3bbacf[_0x43e5d3(0xb4a)]=_0x435bed,_0x3bbacf[_0x43e5d3(0x18c1)]=![],_0x3bbacf[_0x43e5d3(0x2025)]=[_0x43e5d3(0x2017),_0x43e5d3(0x197c),_0x43e5d3(0x240)],_0x3bbacf[_0x43e5d3(0x1b1a)]=_0x12fd37,_0x3bbacf[_0x43e5d3(0x1275)]=_0x24602c[_0x43e5d3(0x1aae)](),_0x3bbacf[_0x43e5d3(0x2055)]=_0x24602c[_0x43e5d3(0xa76)](),_0x3bbacf['monthName']=_0x24602c[_0x43e5d3(0x7cc)](),_0x3bbacf[_0x43e5d3(0x202d)]=_0x24602c[_0x43e5d3(0xc1e)]();if(!_0x3bbacf[_0x43e5d3(0x1ac8)])_0x3bbacf[_0x43e5d3(0x1ac8)]={'interval':'*,*,*,*'},_0x3bbacf['type']='always',_0x3bbacf['title']=_0x43e5d3(0x287b),_0x3bbacf[_0x43e5d3(0x18c1)]=!![];else{if(_0x3bbacf[_0x43e5d3(0x1ac8)][_0x43e5d3(0x1ac8)]!=='*,*,*,*'){_0x3bbacf[_0x43e5d3(0x66a)]=_0x43e5d3(0x197c);const _0x5670e2=_0x3bbacf['interval'][_0x43e5d3(0x1ac8)][_0x43e5d3(0xbe1)](','),_0x3d1cef=_0x5670e2[0x0],_0x18748f=_0x5670e2[0x1],_0x2f92ca=_0x5670e2[0x2],_0x4fe21b=_0x5670e2[0x3];if(_0x3d1cef!=='*'){const _0x755cf0=_0x3d1cef[_0x43e5d3(0xbe1)]('-')[0x0],_0x3df362=_0x3d1cef[_0x43e5d3(0xbe1)]('-')[0x1];let _0x51984c;_0x51984c=new Date(),_0x51984c['setHours'](Number(_0x755cf0[_0x43e5d3(0xbe1)](':')[0x0])),_0x51984c[_0x43e5d3(0x1622)](Number(_0x755cf0['split'](':')[0x1])),_0x3bbacf[_0x43e5d3(0x718)]=_0x51984c,_0x51984c=new Date(),_0x51984c[_0x43e5d3(0x201b)](Number(_0x3df362[_0x43e5d3(0xbe1)](':')[0x0])),_0x51984c[_0x43e5d3(0x1622)](Number(_0x3df362[_0x43e5d3(0xbe1)](':')[0x1])),_0x3bbacf[_0x43e5d3(0x64a)]=_0x51984c;}_0x18748f!=='*'&&(_0x3bbacf[_0x43e5d3(0x28a6)]=_0x18748f[_0x43e5d3(0xbe1)]('-')[0x0],_0x3bbacf[_0x43e5d3(0x28db)]=_0x18748f[_0x43e5d3(0xbe1)]('-')[0x1]),_0x2f92ca!=='*'&&(_0x3bbacf[_0x43e5d3(0xd6f)]=_0x2f92ca[_0x43e5d3(0xbe1)]('-')[0x0],_0x3bbacf[_0x43e5d3(0x194d)]=_0x2f92ca[_0x43e5d3(0xbe1)]('-')[0x1]),_0x4fe21b!=='*'&&(_0x3bbacf[_0x43e5d3(0x1756)]=_0x4fe21b[_0x43e5d3(0xbe1)]('-')[0x0],_0x3bbacf['monthTo']=_0x4fe21b[_0x43e5d3(0xbe1)]('-')[0x1]);}else _0x3bbacf['type']=_0x43e5d3(0x2017);}_0x132321[_0x43e5d3(0x1dfe)]['id']&&!_0x3bbacf['interval'][_0x43e5d3(0x171b)]&&(_0x3bbacf[_0x43e5d3(0x1ac8)]['IntervalId']=_0x132321[_0x43e5d3(0x1dfe)]['id']);_0x3bbacf[_0x43e5d3(0x1ac8)][_0x43e5d3(0x1a60)]&&_0x3bbacf[_0x43e5d3(0x1ac8)]['application']&&(_0x3bbacf[_0x43e5d3(0x66a)]='list');_0x3bbacf[_0x43e5d3(0x18b3)]=_0x195c9c,_0x3bbacf[_0x43e5d3(0x1891)]=_0xc77f32,_0x3bbacf['closeDialog']=_0x3465ca;_0x3bbacf[_0x43e5d3(0x1ac8)][_0x43e5d3(0x171b)]&&(_0x544c0c[_0x43e5d3(0x22b6)](_0x43e5d3(0x1c60))?_0x16f51e[_0x43e5d3(0x1ac8)]['get']({'fields':_0x43e5d3(0x872),'IntervalId':_0x43e5d3(0xd38),'nolimit':!![]})[_0x43e5d3(0x1d77)]['then'](function(_0x1a7f48){const _0x47466a=_0x43e5d3;_0x3bbacf[_0x47466a(0xb4a)]=_0x1a7f48[_0x47466a(0x2214)]||[];})[_0x43e5d3(0x1c4)](function(_0x1e47d9){const _0x27b1e4=_0x43e5d3;_0x303b67[_0x27b1e4(0x218e)]({'title':_0x1e47d9[_0x27b1e4(0x291)]?_0x27b1e4(0xeb9)+_0x1e47d9['status']+_0x27b1e4(0x1657)+_0x1e47d9['statusText']:_0x27b1e4(0xdac),'msg':_0x1e47d9[_0x27b1e4(0x25c)]?JSON[_0x27b1e4(0x2701)](_0x1e47d9[_0x27b1e4(0x25c)]):_0x1e47d9[_0x27b1e4(0x147f)]()});}):_0x16f51e[_0x43e5d3(0x1ac8)][_0x43e5d3(0xbf7)]({'fields':_0x43e5d3(0x872),'IntervalId':'null','nolimit':!![]})['$promise'][_0x43e5d3(0x1cb0)](function(_0x519348){const _0x5ac781=_0x43e5d3;_0x3bbacf[_0x5ac781(0xb4a)]=_0x519348[_0x5ac781(0x2214)]||[];})[_0x43e5d3(0x1cb0)](function(){const _0x18a93e=_0x43e5d3;return _0x16f51e[_0x18a93e(0x2199)]['get']({'userProfileId':_0x3bbacf[_0x18a93e(0xe76)][_0x18a93e(0x13c1)],'sectionId':0x3ec})['$promise'];})[_0x43e5d3(0x1cb0)](function(_0x2a04cd){const _0x51cb77=_0x43e5d3,_0x3f5da9=_0x2a04cd&&_0x2a04cd[_0x51cb77(0x2214)]?_0x2a04cd[_0x51cb77(0x2214)][0x0]:null;if(!_0x3f5da9)_0x3bbacf['intervals']=[];else{if(!_0x3f5da9[_0x51cb77(0x12f4)])return _0x16f51e['userProfileResource'][_0x51cb77(0xbf7)]({'sectionId':_0x3f5da9['id']})[_0x51cb77(0x1d77)]['then'](function(_0xc68a2a){const _0x4f0d69=_0x51cb77,_0x1e6f33=_0xc68a2a&&_0xc68a2a[_0x4f0d69(0x2214)]?_0xc68a2a['rows']:[],_0x4ac536=[];let _0x45824a=null;_0x3bbacf[_0x4f0d69(0x1ac8)]&&(_0x45824a=_0x39641b()[_0x4f0d69(0x13b4)](_0x3bbacf[_0x4f0d69(0xb4a)],{'name':_0x3bbacf['interval'][_0x4f0d69(0x1a60)]})),_0x45824a&&!_0x39641b()[_0x4f0d69(0x727)](_0x1e6f33,[_0x4f0d69(0x2982),_0x45824a['id']])&&_0x3bbacf[_0x4f0d69(0xb4a)]['forEach'](function(_0x3571cb){const _0x9c6baf=_0x4f0d69;_0x3571cb['id']===_0x45824a['id']&&(_0x3571cb[_0x9c6baf(0x15da)]=![],_0x4ac536[_0x9c6baf(0x2785)](_0x3571cb));}),_0x3bbacf[_0x4f0d69(0xb4a)]=_0x4ac536;});}})[_0x43e5d3(0x1c4)](function(_0x207b04){const _0x2dac65=_0x43e5d3;_0x303b67['error']({'title':_0x207b04['status']?_0x2dac65(0xeb9)+_0x207b04[_0x2dac65(0x291)]+_0x2dac65(0x1657)+_0x207b04[_0x2dac65(0xc22)]:_0x2dac65(0xdac),'msg':_0x207b04[_0x2dac65(0x25c)]?JSON[_0x2dac65(0x2701)](_0x207b04['data']):_0x207b04['toString']()});}));function _0x53ac6e(){const _0xe7b523=_0x43e5d3;switch(_0x3bbacf[_0xe7b523(0x66a)]){case'always':case _0xe7b523(0x240):return'*,*,*,*';case _0xe7b523(0x197c):{const _0x23d725=[];if(_0x3bbacf[_0xe7b523(0x718)]!=='*'&&_0x3bbacf[_0xe7b523(0x718)]&&_0x3bbacf[_0xe7b523(0x64a)]){const _0x59ef75=(_0x3bbacf[_0xe7b523(0x718)][_0xe7b523(0x1169)]()<0xa?'0':'')+_0x3bbacf[_0xe7b523(0x718)][_0xe7b523(0x1169)]()+':'+((_0x3bbacf[_0xe7b523(0x718)][_0xe7b523(0x851)]()<0xa?'0':'')+_0x3bbacf[_0xe7b523(0x718)][_0xe7b523(0x851)]()),_0x5437a9=(_0x3bbacf[_0xe7b523(0x64a)][_0xe7b523(0x1169)]()<0xa?'0':'')+_0x3bbacf[_0xe7b523(0x64a)][_0xe7b523(0x1169)]()+':'+((_0x3bbacf[_0xe7b523(0x64a)][_0xe7b523(0x851)]()<0xa?'0':'')+_0x3bbacf[_0xe7b523(0x64a)]['getMinutes']());_0x23d725[_0xe7b523(0x2785)](_0x59ef75+'-'+_0x5437a9);}else _0x23d725[_0xe7b523(0x2785)]('*');return _0x3bbacf[_0xe7b523(0x28a6)]?_0x3bbacf['dayOfWeekTo']?_0x23d725[_0xe7b523(0x2785)](_0x3bbacf[_0xe7b523(0x28a6)]+'-'+_0x3bbacf[_0xe7b523(0x28db)]):_0x23d725['push'](_0x3bbacf[_0xe7b523(0x28a6)]):_0x23d725['push']('*'),_0x3bbacf[_0xe7b523(0xd6f)]?_0x3bbacf[_0xe7b523(0x194d)]?_0x23d725[_0xe7b523(0x2785)](_0x3bbacf[_0xe7b523(0xd6f)]+'-'+_0x3bbacf[_0xe7b523(0x194d)]):_0x23d725[_0xe7b523(0x2785)](_0x3bbacf[_0xe7b523(0xd6f)]):_0x23d725[_0xe7b523(0x2785)]('*'),_0x3bbacf[_0xe7b523(0x1756)]?_0x3bbacf['monthTo']?_0x23d725[_0xe7b523(0x2785)](_0x3bbacf[_0xe7b523(0x1756)]+'-'+_0x3bbacf[_0xe7b523(0xa68)]):_0x23d725['push'](_0x3bbacf[_0xe7b523(0x1756)]):_0x23d725[_0xe7b523(0x2785)]('*'),_0x23d725[_0xe7b523(0x1f66)]();}}}function _0x195c9c(){const _0x573de0=_0x43e5d3;_0x3bbacf[_0x573de0(0x1a7c)]=[],_0x3bbacf[_0x573de0(0x1ac8)][_0x573de0(0x1ac8)]=_0x53ac6e(),_0x16f51e[_0x573de0(0x1ac8)]['save'](_0x3bbacf[_0x573de0(0x1ac8)])['$promise'][_0x573de0(0x1cb0)](function(_0x2337c4){const _0x189b0f=_0x573de0;_0x3bbacf[_0x189b0f(0xb4a)][_0x189b0f(0x2785)](_0x2337c4),_0x303b67[_0x189b0f(0x829)]({'title':_0x189b0f(0x1d4e),'msg':_0x3bbacf['interval'][_0x189b0f(0x16b6)]?_0x3bbacf[_0x189b0f(0x1ac8)][_0x189b0f(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x3465ca();})['catch'](function(_0x3d31c3){const _0x47007f=_0x573de0;console['error'](_0x3d31c3),_0x3bbacf[_0x47007f(0x1a7c)]=_0x3d31c3[_0x47007f(0x25c)][_0x47007f(0x1a7c)]||[{'message':_0x3d31c3[_0x47007f(0x147f)](),'type':'api.interval.save'}];});}function _0xc77f32(){const _0x334e0=_0x43e5d3;_0x3bbacf[_0x334e0(0x1a7c)]=[],_0x3bbacf[_0x334e0(0x1ac8)][_0x334e0(0x1ac8)]=_0x53ac6e(),_0x3bbacf['interval'][_0x334e0(0x171b)]?(_0x3bbacf[_0x334e0(0x66a)]!==_0x334e0(0x240)&&(_0x3bbacf[_0x334e0(0x1ac8)]['IntervalId']=null),_0x3465ca(_0x3bbacf['interval'])):_0x16f51e[_0x334e0(0x1ac8)]['update']({'id':_0x3bbacf[_0x334e0(0x1ac8)]['id']},_0x3bbacf[_0x334e0(0x1ac8)])[_0x334e0(0x1d77)][_0x334e0(0x1cb0)](function(_0x12ec13){const _0x3e3f6d=_0x334e0,_0x5ae208=_0x39641b()[_0x3e3f6d(0x13b4)](_0x3bbacf[_0x3e3f6d(0xb4a)],{'id':_0x12ec13['id']});_0x5ae208&&_0x39641b()[_0x3e3f6d(0x9c1)](_0x5ae208,_0x12ec13),_0x303b67['success']({'title':_0x3e3f6d(0x1498),'msg':'Interval\x20has\x20been\x20saved!'}),_0x3465ca();})['catch'](function(_0x1b612b){const _0xa5224a=_0x334e0;console[_0xa5224a(0x218e)](_0x1b612b),_0x3bbacf['errors']=_0x1b612b['data']['errors']||[{'message':_0x1b612b[_0xa5224a(0x147f)](),'type':_0xa5224a(0x2505)}];});}function _0x3465ca(_0x476a9f){_0x21e006['hide'](_0x476a9f);}}const _0x4e0545=_0x1890cc;;_0x2e5218[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),'openchannelAccountApp',_0x5537c6(0x80e),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x2e5218(_0x160e15,_0x2be023,_0x211ef9,_0x4e201e,_0x3805ff,_0x2e7fa8,_0x46f7d0,_0x24ee74){const _0x4f545d=_0x5537c6,_0x5db020=this;_0x5db020[_0x4f545d(0xe76)]=_0x46f7d0[_0x4f545d(0x21e8)](),_0x5db020[_0x4f545d(0x1a7c)]=[],_0x5db020[_0x4f545d(0x1386)]=_0x4f545d(0x17c7)+(_0x4e201e[_0x4f545d(0x299b)]||_0x4e201e['app'])[_0x4f545d(0x2335)](),_0x5db020[_0x4f545d(0x1234)]=angular['copy'](_0x4e201e),_0x5db020[_0x4f545d(0x1b1a)]=_0x24ee74,_0x5db020[_0x4f545d(0xf4c)]={};if(_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x28df)])switch(_0x5db020['noop'][_0x4f545d(0x299b)]?_0x5db020[_0x4f545d(0x1234)]['appType']['toLowerCase']():_0x5db020['noop'][_0x4f545d(0x22e1)]['toLowerCase']()){case _0x4f545d(0x197c):break;case'dialogflow':{const _0x5ae9e5=_0x5db020['noop'][_0x4f545d(0x28df)]['split'](',');_0x5db020['noop'][_0x4f545d(0xee8)]=_0x5ae9e5[0x0],_0x5db020[_0x4f545d(0x1234)]['language']=_0x5ae9e5[0x1],_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x173a)]=_0x5ae9e5['slice'](0x2,_0x5ae9e5[_0x4f545d(0xfd0)])['join'](',');}break;case _0x4f545d(0xece):{const _0xd9281e=_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x28df)][_0x4f545d(0xbe1)](',');_0x5db020[_0x4f545d(0x1234)]['projectId']=_0xd9281e[0x0],_0x5db020[_0x4f545d(0x1234)]['clientEmail']=_0xd9281e[0x1],_0x5db020['noop'][_0x4f545d(0x29d6)]=_0xd9281e[0x2],_0x5db020[_0x4f545d(0x1234)]['language']=_0xd9281e[0x3],_0x5db020[_0x4f545d(0x1234)]['welcomemessage']=_0xd9281e[_0x4f545d(0x14cb)](0x4,_0xd9281e[_0x4f545d(0xfd0)])['join'](',');}break;case _0x4f545d(0x123a):{const _0x304583=_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x28df)][_0x4f545d(0xbe1)](',');_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x413)]=_0x304583[0x0],_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x21d9)]=_0x304583[0x1],_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0xd50)]=_0x304583[0x2],_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x1c7f)]=_0x304583[0x3],_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x173a)]=_0x304583[_0x4f545d(0x14cb)](0x4,_0x304583[_0x4f545d(0xfd0)])['join'](',');}break;case _0x4f545d(0x1f71):{const _0x54d41f=_0x5db020[_0x4f545d(0x1234)]['appdata'][_0x4f545d(0xbe1)](',');_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x18a5)]=isNaN(_0x54d41f[0x0])?_0x54d41f[0x0]:parseInt(_0x54d41f[0x0],0xa),_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x19d3)]=_0x54d41f[_0x4f545d(0x14cb)](0x1,_0x54d41f[_0x4f545d(0xfd0)])[_0x4f545d(0x1f66)](',');}break;case'message':_0x5db020['noop'][_0x4f545d(0x19d3)]=_0x5db020['noop'][_0x4f545d(0x28df)];break;case _0x4f545d(0x19d1):_0x5db020[_0x4f545d(0x1234)]['name']=_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x28df)]['split']('=')[0x0],_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x327)]=_0x5db020[_0x4f545d(0x1234)]['appdata'][_0x4f545d(0xbe1)]('=')[0x1];break;case _0x4f545d(0x4b4):_0x5db020[_0x4f545d(0x1234)]['project']=_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x28df)];break;default:{const _0x3c0116=_0x5db020['noop']['appdata'][_0x4f545d(0xbe1)](',');_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x327)]=_0x39641b()['isEmpty'](_0x3c0116[0x0])?_0x3c0116[0x0]:isNaN(_0x3c0116[0x0])?_0x3c0116[0x0]:parseInt(_0x3c0116[0x0],0xa);}break;}else{}_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x66a)]&&_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x66a)]['toLowerCase']()===_0x4f545d(0x895)&&_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x299b)][_0x4f545d(0x1680)]()===_0x4f545d(0x20ff)&&(_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x586)]=_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x1340)]?_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x1340)][_0x4f545d(0xbe1)]('$')[0x0]:undefined,_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x1e7c)]=_0x5db020[_0x4f545d(0x1234)]['callerID']?_0x4f545d(0x25f9)+_0x5db020[_0x4f545d(0x1234)][_0x4f545d(0x2816)]:undefined);_0x5db020[_0x4f545d(0x2728)]=_0x593315,_0x5db020[_0x4f545d(0xda0)]=_0xc00e13;function _0x593315(){const _0x5d1bdb=_0x4f545d;_0x5db020[_0x5d1bdb(0x1a7c)]=[];const _0x4dfc64=[];_0x5db020[_0x5d1bdb(0x1234)][_0x5d1bdb(0x66a)]&&_0x5db020[_0x5d1bdb(0x1234)][_0x5d1bdb(0x66a)][_0x5d1bdb(0x1680)]()===_0x5d1bdb(0x895)&&_0x5db020[_0x5d1bdb(0x1234)]['appType']===_0x5d1bdb(0x25f4)&&(_0x5db020['noop']['phone']=_0x3805ff[_0x5d1bdb(0x325)]?(_0x5db020['noop'][_0x5d1bdb(0x586)]||'')+_0x5d1bdb(0x19e4)+_0x3805ff[_0x5d1bdb(0x325)]+'}':(_0x5db020['noop']['prefix']||'')+_0x5d1bdb(0xcdd),_0x3805ff[_0x5d1bdb(0xf8d)]!=='none'?_0x5db020['noop'][_0x5d1bdb(0x2224)][_0x5d1bdb(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0x5db020[_0x5d1bdb(0x1234)][_0x5d1bdb(0x2224)]+=_0x5d1bdb(0x106a)):_0x5db020['noop'][_0x5d1bdb(0x2224)]=_0x5db020['noop'][_0x5d1bdb(0x2224)][_0x5d1bdb(0x288f)](_0x5d1bdb(0x106a),''));if(_0x5db020['noop'][_0x5d1bdb(0x299b)]&&_0x5db020['noop'][_0x5d1bdb(0x299b)]==='custom'){}else switch((_0x5db020[_0x5d1bdb(0x1234)]['app']||_0x5db020[_0x5d1bdb(0x1234)][_0x5d1bdb(0x299b)])['toLowerCase']()){case'set':_0x5db020[_0x5d1bdb(0x1234)][_0x5d1bdb(0x28df)]=_0x5db020[_0x5d1bdb(0x1234)][_0x5d1bdb(0x16b6)]+'='+_0x5db020[_0x5d1bdb(0x1234)][_0x5d1bdb(0x327)];break;case'custom':break;default:_0x4dfc64[0x0]=_0x5db020[_0x5d1bdb(0x1234)][_0x5d1bdb(0x327)],_0x5db020[_0x5d1bdb(0x1234)]['appdata']=_0x4dfc64[_0x5d1bdb(0x1f66)](',');}_0xc00e13(_0x5db020[_0x5d1bdb(0x1234)]);}function _0xc00e13(_0x490c14){const _0x30f5a5=_0x4f545d;_0x160e15[_0x30f5a5(0x1426)](_0x490c14);}}const _0x58ac22=_0x2e5218;;_0x5d1bc2['$inject']=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x23ad),_0x5537c6(0x80e),'api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x5d1bc2(_0x3dcd56,_0x1ead74,_0x2e5203,_0x566a6b,_0x5e6c71,_0x4c3962,_0x5b8b91,_0x17bc82){const _0x3136d4=_0x5537c6,_0x59eb06=this;_0x59eb06[_0x3136d4(0xe76)]=_0x5b8b91[_0x3136d4(0x21e8)](),_0x59eb06['errors']=[],_0x59eb06[_0x3136d4(0x1386)]=_0x3136d4(0x17c7)+(_0x566a6b[_0x3136d4(0x299b)]||_0x566a6b[_0x3136d4(0x22e1)])[_0x3136d4(0x2335)](),_0x59eb06[_0x3136d4(0x11cf)]=angular[_0x3136d4(0x17fe)](_0x566a6b),_0x59eb06['crudPermissions']=_0x17bc82,_0x59eb06[_0x3136d4(0xf4c)]={};if(_0x59eb06['queue'][_0x3136d4(0x28df)])switch(_0x59eb06['queue'][_0x3136d4(0x299b)]?_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x299b)][_0x3136d4(0x1680)]():_0x59eb06['queue'][_0x3136d4(0x22e1)][_0x3136d4(0x1680)]()){case'custom':break;case _0x3136d4(0x711):{const _0x200eda=_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x28df)]['split'](',');_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0xee8)]=_0x200eda[0x0],_0x59eb06['queue']['language']=_0x200eda[0x1],_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x173a)]=_0x200eda[_0x3136d4(0x14cb)](0x2,_0x200eda[_0x3136d4(0xfd0)])['join'](',');}break;case _0x3136d4(0xece):{const _0x142064=_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x28df)]['split'](',');_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x2854)]=_0x142064[0x0],_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x12bf)]=_0x142064[0x1],_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x29d6)]=_0x142064[0x2],_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x12b4)]=_0x142064[0x3],_0x59eb06[_0x3136d4(0x11cf)]['welcomemessage']=_0x142064['slice'](0x4,_0x142064[_0x3136d4(0xfd0)])[_0x3136d4(0x1f66)](',');}break;case _0x3136d4(0x123a):{const _0x234772=_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x28df)][_0x3136d4(0xbe1)](',');_0x59eb06[_0x3136d4(0x11cf)]['accesskeyid']=_0x234772[0x0],_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x21d9)]=_0x234772[0x1],_0x59eb06['queue'][_0x3136d4(0xd50)]=_0x234772[0x2],_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x1c7f)]=_0x234772[0x3],_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x173a)]=_0x234772[_0x3136d4(0x14cb)](0x4,_0x234772[_0x3136d4(0xfd0)])[_0x3136d4(0x1f66)](',');}break;case _0x3136d4(0x1f71):{const _0x54e734=_0x59eb06[_0x3136d4(0x11cf)]['appdata']['split'](',');_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x18a5)]=isNaN(_0x54e734[0x0])?_0x54e734[0x0]:parseInt(_0x54e734[0x0],0xa),_0x59eb06['queue']['text']=_0x54e734['slice'](0x1,_0x54e734[_0x3136d4(0xfd0)])[_0x3136d4(0x1f66)](',');}break;case _0x3136d4(0x155e):_0x59eb06[_0x3136d4(0x11cf)]['text']=_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x28df)];break;case _0x3136d4(0x19d1):_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x16b6)]=_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x28df)][_0x3136d4(0xbe1)]('=')[0x0],_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x327)]=_0x59eb06['queue'][_0x3136d4(0x28df)][_0x3136d4(0xbe1)]('=')[0x1];break;case _0x3136d4(0x4b4):_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x12a7)]=_0x59eb06[_0x3136d4(0x11cf)]['appdata'];break;default:{const _0x2148d1=_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x28df)][_0x3136d4(0xbe1)](',');_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x11cf)]=_0x39641b()[_0x3136d4(0xce9)](_0x2148d1[0x0])?_0x2148d1[0x0]:isNaN(_0x2148d1[0x0])?_0x2148d1[0x0]:parseInt(_0x2148d1[0x0],0xa),_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x1719)]=_0x39641b()[_0x3136d4(0xce9)](_0x2148d1[0x1])?_0x2148d1[0x1]:isNaN(_0x2148d1[0x1])?_0x2148d1[0x1]:parseInt(_0x2148d1[0x1],0xa);}break;}else _0x59eb06[_0x3136d4(0x11cf)]['queue']=0x12c,_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x1719)]=0x12c;_0x59eb06['queue'][_0x3136d4(0x66a)]&&_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x66a)][_0x3136d4(0x1680)]()===_0x3136d4(0x895)&&_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x299b)][_0x3136d4(0x1680)]()==='outbounddial'&&(_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x586)]=_0x59eb06['queue']['phone']?_0x59eb06['queue'][_0x3136d4(0x1340)][_0x3136d4(0xbe1)]('$')[0x0]:undefined,_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x1e7c)]=_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x2816)]?_0x3136d4(0x25f9)+_0x59eb06[_0x3136d4(0x11cf)][_0x3136d4(0x2816)]:undefined);_0x59eb06[_0x3136d4(0x2728)]=_0x2ae0da,_0x59eb06[_0x3136d4(0xda0)]=_0x1c669b,_0x5b8b91[_0x3136d4(0x22b6)](_0x3136d4(0x1c60))?_0x4c3962['openchannelQueue'][_0x3136d4(0xbf7)]({'fields':_0x3136d4(0x1896),'sort':_0x3136d4(0x16b6),'nolimit':'true'})[_0x3136d4(0x1d77)][_0x3136d4(0x1cb0)](function(_0x5a053a){const _0x50e1ed=_0x3136d4;_0x59eb06[_0x50e1ed(0x971)]=_0x5a053a['rows']||[];})[_0x3136d4(0x1c4)](function(_0x2a0535){const _0x59326a=_0x3136d4;_0x2e5203[_0x59326a(0x218e)]({'title':_0x2a0535[_0x59326a(0x291)]?_0x59326a(0xeb9)+_0x2a0535[_0x59326a(0x291)]+'\x20-\x20'+_0x2a0535[_0x59326a(0xc22)]:_0x59326a(0x277c),'msg':_0x2a0535[_0x59326a(0x25c)]?JSON[_0x59326a(0x2701)](_0x2a0535[_0x59326a(0x25c)]):_0x2a0535[_0x59326a(0x147f)]()});}):_0x4c3962[_0x3136d4(0x3a9)]['get']({'fields':_0x3136d4(0x1896),'sort':_0x3136d4(0x16b6),'nolimit':_0x3136d4(0x44d)})[_0x3136d4(0x1d77)][_0x3136d4(0x1cb0)](function(_0x5f4703){const _0x31ef5c=_0x3136d4;_0x59eb06['queues']=_0x5f4703[_0x31ef5c(0x2214)]||[];})['then'](function(){const _0x18775a=_0x3136d4;return _0x4c3962['userProfileSection'][_0x18775a(0xbf7)]({'userProfileId':_0x59eb06[_0x18775a(0xe76)][_0x18775a(0x13c1)],'sectionId':0x321})['$promise'];})[_0x3136d4(0x1cb0)](function(_0x278a83){const _0x221643=_0x3136d4,_0x2c4eb2=_0x278a83&&_0x278a83[_0x221643(0x2214)]?_0x278a83[_0x221643(0x2214)][0x0]:null;if(!_0x2c4eb2){const _0x500863=[];let _0x9c96b7=null;_0x59eb06[_0x221643(0x11cf)]&&(_0x9c96b7=_0x39641b()[_0x221643(0x13b4)](_0x59eb06[_0x221643(0x971)],{'name':_0x59eb06[_0x221643(0x11cf)][_0x221643(0x11cf)]}));for(let _0x1ef300=0x0;_0x1ef300<_0x59eb06[_0x221643(0x971)][_0x221643(0xfd0)];_0x1ef300++){_0x9c96b7&&_0x59eb06[_0x221643(0x971)][_0x1ef300]['id']===_0x9c96b7['id']&&(_0x59eb06[_0x221643(0x971)][_0x1ef300][_0x221643(0x15da)]=![],_0x500863['push'](_0x59eb06['queues'][_0x1ef300]));}_0x59eb06[_0x221643(0x971)]=_0x500863;}else{if(!_0x2c4eb2[_0x221643(0x12f4)])return _0x4c3962[_0x221643(0x1198)][_0x221643(0xbf7)]({'sectionId':_0x2c4eb2['id']})['$promise'][_0x221643(0x1cb0)](function(_0x4eca25){const _0x4bb238=_0x221643,_0x3dcb4f=_0x39641b()[_0x4bb238(0x1de2)](_0x4eca25[_0x4bb238(0x2214)],function(_0xcd0011){const _0x2dfe5c=_0x4bb238;return _0x39641b()[_0x2dfe5c(0x13b4)](_0x59eb06[_0x2dfe5c(0x971)],{'id':_0xcd0011[_0x2dfe5c(0x2982)]});});let _0x48d94e=null;_0x59eb06[_0x4bb238(0x11cf)]&&(_0x48d94e=_0x39641b()[_0x4bb238(0x13b4)](_0x59eb06[_0x4bb238(0x971)],{'name':_0x59eb06['queue'][_0x4bb238(0x11cf)]}));if(_0x48d94e&&!_0x39641b()[_0x4bb238(0x727)](_0x3dcb4f,['id',_0x48d94e['id']])){const _0x35f0e6=_0x39641b()['find'](_0x59eb06[_0x4bb238(0x971)],{'id':_0x48d94e['id']});_0x35f0e6[_0x4bb238(0x15da)]=![],_0x3dcb4f[_0x4bb238(0x2785)](_0x35f0e6);}_0x59eb06[_0x4bb238(0x971)]=_0x3dcb4f;});}})[_0x3136d4(0x1c4)](function(_0x2c810d){const _0x4bb600=_0x3136d4;_0x2e5203[_0x4bb600(0x218e)]({'title':_0x2c810d[_0x4bb600(0x291)]?'API:'+_0x2c810d[_0x4bb600(0x291)]+'\x20-\x20'+_0x2c810d[_0x4bb600(0xc22)]:'SYSTEM:GETqueues','msg':_0x2c810d[_0x4bb600(0x25c)]?JSON['stringify'](_0x2c810d[_0x4bb600(0x25c)]):_0x2c810d[_0x4bb600(0x147f)]()});});function _0x2ae0da(){const _0x2c96a9=_0x3136d4;_0x59eb06[_0x2c96a9(0x1a7c)]=[];const _0x5aa6d1=[];_0x59eb06[_0x2c96a9(0x11cf)][_0x2c96a9(0x66a)]&&_0x59eb06[_0x2c96a9(0x11cf)][_0x2c96a9(0x66a)]['toLowerCase']()===_0x2c96a9(0x895)&&_0x59eb06[_0x2c96a9(0x11cf)]['appType']===_0x2c96a9(0x25f4)&&(_0x59eb06[_0x2c96a9(0x11cf)][_0x2c96a9(0x1340)]=_0x5e6c71[_0x2c96a9(0x325)]?(_0x59eb06[_0x2c96a9(0x11cf)][_0x2c96a9(0x586)]||'')+_0x2c96a9(0x19e4)+_0x5e6c71[_0x2c96a9(0x325)]+'}':(_0x59eb06[_0x2c96a9(0x11cf)]['prefix']||'')+'${EXTEN}',_0x5e6c71[_0x2c96a9(0xf8d)]!==_0x2c96a9(0x13b1)?_0x59eb06[_0x2c96a9(0x11cf)][_0x2c96a9(0x2224)][_0x2c96a9(0xd8a)](_0x2c96a9(0x106a))<0x0&&(_0x59eb06[_0x2c96a9(0x11cf)][_0x2c96a9(0x2224)]+='U(xcally-mixmonitor-context)'):_0x59eb06[_0x2c96a9(0x11cf)]['options']=_0x59eb06[_0x2c96a9(0x11cf)][_0x2c96a9(0x2224)][_0x2c96a9(0x288f)](_0x2c96a9(0x106a),''));const _0x56937d=_0x39641b()['find'](_0x59eb06[_0x2c96a9(0x971)],{'name':_0x59eb06[_0x2c96a9(0x11cf)]['queue']});_0x56937d&&(_0x59eb06[_0x2c96a9(0x11cf)][_0x39641b()['capitalize'](_0x2c96a9(0x246d))+'QueueId']=_0x56937d['id']);if(_0x59eb06[_0x2c96a9(0x11cf)]['appType']&&_0x59eb06[_0x2c96a9(0x11cf)][_0x2c96a9(0x299b)]===_0x2c96a9(0x197c)){}else switch((_0x59eb06[_0x2c96a9(0x11cf)][_0x2c96a9(0x22e1)]||_0x59eb06[_0x2c96a9(0x11cf)]['appType'])['toLowerCase']()){case'set':_0x59eb06[_0x2c96a9(0x11cf)][_0x2c96a9(0x28df)]=_0x59eb06[_0x2c96a9(0x11cf)]['name']+'='+_0x59eb06[_0x2c96a9(0x11cf)][_0x2c96a9(0x327)];break;case'custom':break;default:_0x5aa6d1[0x0]=_0x59eb06['queue'][_0x2c96a9(0x11cf)],_0x5aa6d1[0x1]=_0x59eb06[_0x2c96a9(0x11cf)][_0x2c96a9(0x1719)],_0x59eb06[_0x2c96a9(0x11cf)]['appdata']=_0x5aa6d1[_0x2c96a9(0x1f66)](',');}_0x1c669b(_0x59eb06[_0x2c96a9(0x11cf)]);}function _0x1c669b(_0x188ed2){_0x3dcd56['hide'](_0x188ed2);}}const _0x14cbca=_0x5d1bc2;;_0x44bf86[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),'openchannelAccountApp',_0x5537c6(0x80e),'api','Auth',_0x5537c6(0x1b1a)];function _0x44bf86(_0x2a757f,_0x571f97,_0x18f16e,_0x15b94b,_0x419cca,_0x1951be,_0x340c04,_0x9c7678){const _0x1d8fda=_0x5537c6,_0x3e5abe=this;_0x3e5abe[_0x1d8fda(0xe76)]=_0x340c04[_0x1d8fda(0x21e8)](),_0x3e5abe[_0x1d8fda(0x1a7c)]=[],_0x3e5abe[_0x1d8fda(0x1386)]='OPENCHANNEL.EDIT_'+(_0x15b94b['appType']||_0x15b94b[_0x1d8fda(0x22e1)])[_0x1d8fda(0x2335)](),_0x3e5abe['system']=angular[_0x1d8fda(0x17fe)](_0x15b94b),_0x3e5abe[_0x1d8fda(0x1b1a)]=_0x9c7678,_0x3e5abe[_0x1d8fda(0xf4c)]={};if(_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x28df)])switch(_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x299b)]?_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x299b)]['toLowerCase']():_0x3e5abe['system'][_0x1d8fda(0x22e1)][_0x1d8fda(0x1680)]()){case _0x1d8fda(0x197c):break;case _0x1d8fda(0x711):{const _0x5ba335=_0x3e5abe['system']['appdata'][_0x1d8fda(0xbe1)](',');_0x3e5abe[_0x1d8fda(0x7be)]['key']=_0x5ba335[0x0],_0x3e5abe[_0x1d8fda(0x7be)]['language']=_0x5ba335[0x1],_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x173a)]=_0x5ba335[_0x1d8fda(0x14cb)](0x2,_0x5ba335[_0x1d8fda(0xfd0)])[_0x1d8fda(0x1f66)](',');}break;case _0x1d8fda(0xece):{const _0x41ca8f=_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x28df)][_0x1d8fda(0xbe1)](',');_0x3e5abe[_0x1d8fda(0x7be)]['projectId']=_0x41ca8f[0x0],_0x3e5abe[_0x1d8fda(0x7be)]['clientEmail']=_0x41ca8f[0x1],_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x29d6)]=_0x41ca8f[0x2],_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x12b4)]=_0x41ca8f[0x3],_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x173a)]=_0x41ca8f[_0x1d8fda(0x14cb)](0x4,_0x41ca8f['length'])[_0x1d8fda(0x1f66)](',');}break;case _0x1d8fda(0x123a):{const _0x2933b8=_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x28df)]['split'](',');_0x3e5abe[_0x1d8fda(0x7be)]['accesskeyid']=_0x2933b8[0x0],_0x3e5abe[_0x1d8fda(0x7be)]['secretaccesskey']=_0x2933b8[0x1],_0x3e5abe[_0x1d8fda(0x7be)]['lexregion']=_0x2933b8[0x2],_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x1c7f)]=_0x2933b8[0x3],_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x173a)]=_0x2933b8['slice'](0x4,_0x2933b8[_0x1d8fda(0xfd0)])[_0x1d8fda(0x1f66)](',');}break;case _0x1d8fda(0x1f71):{const _0x14245d=_0x3e5abe[_0x1d8fda(0x7be)]['appdata'][_0x1d8fda(0xbe1)](',');_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x18a5)]=isNaN(_0x14245d[0x0])?_0x14245d[0x0]:parseInt(_0x14245d[0x0],0xa),_0x3e5abe['system'][_0x1d8fda(0x19d3)]=_0x14245d[_0x1d8fda(0x14cb)](0x1,_0x14245d[_0x1d8fda(0xfd0)])[_0x1d8fda(0x1f66)](',');}break;case _0x1d8fda(0x155e):_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x19d3)]=_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x28df)];break;case _0x1d8fda(0x19d1):_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x16b6)]=_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x28df)][_0x1d8fda(0xbe1)]('=')[0x0],_0x3e5abe['system'][_0x1d8fda(0x327)]=_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x28df)][_0x1d8fda(0xbe1)]('=')[0x1];break;case _0x1d8fda(0x4b4):_0x3e5abe[_0x1d8fda(0x7be)]['project']=_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x28df)];break;default:{const _0x4abf66=_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x28df)][_0x1d8fda(0xbe1)](',');_0x3e5abe[_0x1d8fda(0x7be)]['command']=_0x39641b()[_0x1d8fda(0xce9)](_0x4abf66[0x0])?_0x4abf66[0x0]:isNaN(_0x4abf66[0x0])?_0x4abf66[0x0]:parseInt(_0x4abf66[0x0],0xa),_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x1822)]=_0x39641b()['isEmpty'](_0x4abf66[0x1])?_0x4abf66[0x1]:isNaN(_0x4abf66[0x1])?_0x4abf66[0x1]:parseInt(_0x4abf66[0x1],0xa);}break;}else _0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x1822)]='';_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x66a)]&&_0x3e5abe['system'][_0x1d8fda(0x66a)][_0x1d8fda(0x1680)]()===_0x1d8fda(0x895)&&_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x299b)][_0x1d8fda(0x1680)]()==='outbounddial'&&(_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x586)]=_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x1340)]?_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x1340)][_0x1d8fda(0xbe1)]('$')[0x0]:undefined,_0x3e5abe['system'][_0x1d8fda(0x1e7c)]=_0x3e5abe[_0x1d8fda(0x7be)]['callerID']?'CALLERID(all)='+_0x3e5abe[_0x1d8fda(0x7be)][_0x1d8fda(0x2816)]:undefined);_0x3e5abe[_0x1d8fda(0x2728)]=_0x215c65,_0x3e5abe[_0x1d8fda(0xda0)]=_0x5964f9,_0x340c04[_0x1d8fda(0x22b6)]('admin')?_0x1951be['variable'][_0x1d8fda(0xbf7)]({'fields':'id,name','sort':_0x1d8fda(0x16b6),'nolimit':_0x1d8fda(0x44d)})[_0x1d8fda(0x1d77)][_0x1d8fda(0x1cb0)](function(_0x16ff31){const _0x7996a8=_0x1d8fda;_0x3e5abe[_0x7996a8(0x9a9)]=_0x16ff31[_0x7996a8(0x2214)]||[];})['catch'](function(_0x133617){const _0x8eae1c=_0x1d8fda;_0x18f16e[_0x8eae1c(0x218e)]({'title':_0x133617['status']?'API:'+_0x133617[_0x8eae1c(0x291)]+_0x8eae1c(0x1657)+_0x133617['statusText']:'SYSTEM:GET_VARIABLES','msg':_0x133617[_0x8eae1c(0x25c)]?JSON[_0x8eae1c(0x2701)](_0x133617[_0x8eae1c(0x25c)]):_0x133617[_0x8eae1c(0x147f)]()});}):_0x1951be['variable'][_0x1d8fda(0xbf7)]({'fields':_0x1d8fda(0x43c),'sort':_0x1d8fda(0x16b6),'nolimit':_0x1d8fda(0x44d)})[_0x1d8fda(0x1d77)][_0x1d8fda(0x1cb0)](function(_0x579966){const _0x10347c=_0x1d8fda;_0x3e5abe[_0x10347c(0x9a9)]=_0x579966['rows']||[];})[_0x1d8fda(0x1cb0)](function(){const _0x330936=_0x1d8fda;return _0x1951be[_0x330936(0x2199)][_0x330936(0xbf7)]({'userProfileId':_0x3e5abe[_0x330936(0xe76)][_0x330936(0x13c1)],'sectionId':0x3f4})[_0x330936(0x1d77)];})[_0x1d8fda(0x1cb0)](function(_0x554c65){const _0x228f54=_0x1d8fda,_0xe7111b=_0x554c65&&_0x554c65[_0x228f54(0x2214)]?_0x554c65[_0x228f54(0x2214)][0x0]:null;if(!_0xe7111b){const _0x3e5a76=[];let _0x5ae11d=null;_0x3e5abe['system']&&(_0x5ae11d=_0x39641b()['find'](_0x3e5abe['variables'],{'name':_0x3e5abe['system'][_0x228f54(0x1822)]}));for(let _0x1b520b=0x0;_0x1b520b<_0x3e5abe[_0x228f54(0x9a9)][_0x228f54(0xfd0)];_0x1b520b++){_0x5ae11d&&_0x3e5abe[_0x228f54(0x9a9)][_0x1b520b]['id']===_0x5ae11d['id']&&(_0x3e5abe[_0x228f54(0x9a9)][_0x1b520b][_0x228f54(0x15da)]=![],_0x3e5a76[_0x228f54(0x2785)](_0x3e5abe[_0x228f54(0x9a9)][_0x1b520b]));}_0x3e5abe[_0x228f54(0x9a9)]=_0x3e5a76;}else{if(!_0xe7111b[_0x228f54(0x12f4)])return _0x1951be['userProfileResource'][_0x228f54(0xbf7)]({'sectionId':_0xe7111b['id']})[_0x228f54(0x1d77)]['then'](function(_0x42a52d){const _0x1d3762=_0x228f54,_0x150440=_0x39641b()[_0x1d3762(0x1de2)](_0x42a52d[_0x1d3762(0x2214)],function(_0x272cc0){const _0x21cca2=_0x1d3762;return _0x39641b()[_0x21cca2(0x13b4)](_0x3e5abe[_0x21cca2(0x9a9)],{'id':_0x272cc0[_0x21cca2(0x2982)]});});let _0x1b7eaa=null;_0x3e5abe[_0x1d3762(0x7be)]&&(_0x1b7eaa=_0x39641b()[_0x1d3762(0x13b4)](_0x3e5abe[_0x1d3762(0x9a9)],{'name':_0x3e5abe[_0x1d3762(0x7be)][_0x1d3762(0x1822)]}));if(_0x1b7eaa&&!_0x39641b()['some'](_0x150440,['id',_0x1b7eaa['id']])){const _0x2186e2=_0x39641b()[_0x1d3762(0x13b4)](_0x3e5abe['variables'],{'id':_0x1b7eaa['id']});_0x2186e2[_0x1d3762(0x15da)]=![],_0x150440[_0x1d3762(0x2785)](_0x2186e2);}_0x3e5abe[_0x1d3762(0x9a9)]=_0x150440;});}})['catch'](function(_0x4cad45){const _0x564cc7=_0x1d8fda;_0x18f16e[_0x564cc7(0x218e)]({'title':_0x4cad45[_0x564cc7(0x291)]?_0x564cc7(0xeb9)+_0x4cad45['status']+_0x564cc7(0x1657)+_0x4cad45[_0x564cc7(0xc22)]:_0x564cc7(0xda5),'msg':_0x4cad45[_0x564cc7(0x25c)]?JSON[_0x564cc7(0x2701)](_0x4cad45[_0x564cc7(0x25c)]):_0x4cad45[_0x564cc7(0x147f)]()});});function _0x215c65(){const _0x41626d=_0x1d8fda;_0x3e5abe['errors']=[];const _0x5e9250=[];_0x3e5abe[_0x41626d(0x7be)][_0x41626d(0x66a)]&&_0x3e5abe[_0x41626d(0x7be)][_0x41626d(0x66a)]['toLowerCase']()===_0x41626d(0x895)&&_0x3e5abe['system']['appType']===_0x41626d(0x25f4)&&(_0x3e5abe[_0x41626d(0x7be)][_0x41626d(0x1340)]=_0x419cca[_0x41626d(0x325)]?(_0x3e5abe[_0x41626d(0x7be)][_0x41626d(0x586)]||'')+_0x41626d(0x19e4)+_0x419cca[_0x41626d(0x325)]+'}':(_0x3e5abe[_0x41626d(0x7be)][_0x41626d(0x586)]||'')+'${EXTEN}',_0x419cca[_0x41626d(0xf8d)]!==_0x41626d(0x13b1)?_0x3e5abe[_0x41626d(0x7be)][_0x41626d(0x2224)][_0x41626d(0xd8a)](_0x41626d(0x106a))<0x0&&(_0x3e5abe[_0x41626d(0x7be)][_0x41626d(0x2224)]+=_0x41626d(0x106a)):_0x3e5abe[_0x41626d(0x7be)][_0x41626d(0x2224)]=_0x3e5abe['system'][_0x41626d(0x2224)][_0x41626d(0x288f)](_0x41626d(0x106a),''));if(_0x3e5abe['system'][_0x41626d(0x299b)]&&_0x3e5abe['system'][_0x41626d(0x299b)]==='custom'){}else switch((_0x3e5abe[_0x41626d(0x7be)][_0x41626d(0x22e1)]||_0x3e5abe['system']['appType'])[_0x41626d(0x1680)]()){case _0x41626d(0x19d1):_0x3e5abe[_0x41626d(0x7be)][_0x41626d(0x28df)]=_0x3e5abe['system'][_0x41626d(0x16b6)]+'='+_0x3e5abe[_0x41626d(0x7be)][_0x41626d(0x327)];break;case _0x41626d(0x197c):break;default:_0x5e9250[0x0]=_0x3e5abe[_0x41626d(0x7be)][_0x41626d(0xd0d)],_0x5e9250[0x1]=_0x3e5abe['system'][_0x41626d(0x1822)],_0x3e5abe[_0x41626d(0x7be)][_0x41626d(0x28df)]=_0x5e9250[_0x41626d(0x1f66)](',');}_0x5964f9(_0x3e5abe['system']);}function _0x5964f9(_0x1d78de){const _0x3927d5=_0x1d8fda;_0x2a757f[_0x3927d5(0x1426)](_0x1d78de);}}const _0x3a94b7=_0x44bf86;;_0x1bc48f['$inject']=['$mdDialog','$q','toasty',_0x5537c6(0x23ad),_0x5537c6(0x80e),'api','Auth',_0x5537c6(0x1b1a)];function _0x1bc48f(_0x13f8e7,_0x138c11,_0x269b11,_0x1a5592,_0x5c801a,_0x2e9341,_0x7aeec5,_0x448225){const _0xcfee22=_0x5537c6,_0x19bd45=this;_0x19bd45[_0xcfee22(0xe76)]=_0x7aeec5[_0xcfee22(0x21e8)](),_0x19bd45[_0xcfee22(0x1a7c)]=[],_0x19bd45[_0xcfee22(0x1386)]=_0xcfee22(0x17c7)+(_0x1a5592[_0xcfee22(0x299b)]||_0x1a5592[_0xcfee22(0x22e1)])[_0xcfee22(0x2335)](),_0x19bd45[_0xcfee22(0x22b1)]=angular[_0xcfee22(0x17fe)](_0x1a5592),_0x19bd45['crudPermissions']=_0x448225,_0x19bd45[_0xcfee22(0xf4c)]={};if(_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x28df)])switch(_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x299b)]?_0x19bd45['tag'][_0xcfee22(0x299b)][_0xcfee22(0x1680)]():_0x19bd45['tag'][_0xcfee22(0x22e1)][_0xcfee22(0x1680)]()){case'custom':break;case'dialogflow':{const _0x4f6813=_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x28df)][_0xcfee22(0xbe1)](',');_0x19bd45['tag'][_0xcfee22(0xee8)]=_0x4f6813[0x0],_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x12b4)]=_0x4f6813[0x1],_0x19bd45['tag'][_0xcfee22(0x173a)]=_0x4f6813[_0xcfee22(0x14cb)](0x2,_0x4f6813[_0xcfee22(0xfd0)])[_0xcfee22(0x1f66)](',');}break;case'dialogflowv2':{const _0x3de4df=_0x19bd45[_0xcfee22(0x22b1)]['appdata'][_0xcfee22(0xbe1)](',');_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x2854)]=_0x3de4df[0x0],_0x19bd45['tag']['clientEmail']=_0x3de4df[0x1],_0x19bd45['tag'][_0xcfee22(0x29d6)]=_0x3de4df[0x2],_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x12b4)]=_0x3de4df[0x3],_0x19bd45['tag'][_0xcfee22(0x173a)]=_0x3de4df['slice'](0x4,_0x3de4df[_0xcfee22(0xfd0)])['join'](',');}break;case _0xcfee22(0x123a):{const _0x291124=_0x19bd45['tag']['appdata'][_0xcfee22(0xbe1)](',');_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x413)]=_0x291124[0x0],_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x21d9)]=_0x291124[0x1],_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0xd50)]=_0x291124[0x2],_0x19bd45[_0xcfee22(0x22b1)]['botname']=_0x291124[0x3],_0x19bd45[_0xcfee22(0x22b1)]['welcomemessage']=_0x291124['slice'](0x4,_0x291124[_0xcfee22(0xfd0)])[_0xcfee22(0x1f66)](',');}break;case _0xcfee22(0x1f71):{const _0x509aae=_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x28df)][_0xcfee22(0xbe1)](',');_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x18a5)]=isNaN(_0x509aae[0x0])?_0x509aae[0x0]:parseInt(_0x509aae[0x0],0xa),_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x19d3)]=_0x509aae[_0xcfee22(0x14cb)](0x1,_0x509aae[_0xcfee22(0xfd0)])[_0xcfee22(0x1f66)](',');}break;case _0xcfee22(0x155e):_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x19d3)]=_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x28df)];break;case'set':_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x16b6)]=_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x28df)]['split']('=')[0x0],_0x19bd45['tag'][_0xcfee22(0x327)]=_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x28df)][_0xcfee22(0xbe1)]('=')[0x1];break;case _0xcfee22(0x4b4):_0x19bd45['tag'][_0xcfee22(0x12a7)]=_0x19bd45['tag']['appdata'];break;default:{const _0x1356a3=_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x28df)][_0xcfee22(0xbe1)](',');_0x19bd45[_0xcfee22(0x22b1)]['tag']=_0x39641b()[_0xcfee22(0xce9)](_0x1356a3[0x0])?_0x1356a3[0x0]:isNaN(_0x1356a3[0x0])?_0x1356a3[0x0]:parseInt(_0x1356a3[0x0],0xa);}break;}else{}_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x66a)]&&_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x66a)][_0xcfee22(0x1680)]()==='outbound'&&_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x299b)][_0xcfee22(0x1680)]()===_0xcfee22(0x20ff)&&(_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x586)]=_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x1340)]?_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x1340)][_0xcfee22(0xbe1)]('$')[0x0]:undefined,_0x19bd45[_0xcfee22(0x22b1)]['callerId']=_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x2816)]?'CALLERID(all)='+_0x19bd45[_0xcfee22(0x22b1)][_0xcfee22(0x2816)]:undefined);_0x19bd45[_0xcfee22(0x2728)]=_0xec49e6,_0x19bd45[_0xcfee22(0xda0)]=_0x2bc66f,_0x7aeec5['hasRole']('admin')?_0x2e9341[_0xcfee22(0x22b1)][_0xcfee22(0xbf7)]({'fields':'id,name','sort':_0xcfee22(0x16b6),'nolimit':_0xcfee22(0x44d)})['$promise'][_0xcfee22(0x1cb0)](function(_0x1027bb){const _0x2b2c05=_0xcfee22;_0x19bd45[_0x2b2c05(0xfbf)]=_0x1027bb['rows']||[];})['catch'](function(_0x5c6781){const _0x897252=_0xcfee22;_0x269b11[_0x897252(0x218e)]({'title':_0x5c6781[_0x897252(0x291)]?_0x897252(0xeb9)+_0x5c6781[_0x897252(0x291)]+_0x897252(0x1657)+_0x5c6781['statusText']:_0x897252(0x12f9),'msg':_0x5c6781[_0x897252(0x25c)]?JSON[_0x897252(0x2701)](_0x5c6781[_0x897252(0x25c)]):_0x5c6781[_0x897252(0x147f)]()});}):_0x2e9341[_0xcfee22(0x22b1)][_0xcfee22(0xbf7)]({'fields':_0xcfee22(0x43c),'sort':'name','nolimit':_0xcfee22(0x44d)})[_0xcfee22(0x1d77)][_0xcfee22(0x1cb0)](function(_0x567475){const _0x18af05=_0xcfee22;_0x19bd45['tags']=_0x567475[_0x18af05(0x2214)]||[];})[_0xcfee22(0x1cb0)](function(){const _0x24bd93=_0xcfee22;return _0x2e9341['userProfileSection'][_0x24bd93(0xbf7)]({'userProfileId':_0x19bd45[_0x24bd93(0xe76)][_0x24bd93(0x13c1)],'sectionId':0x3f0})[_0x24bd93(0x1d77)];})[_0xcfee22(0x1cb0)](function(_0x186eae){const _0xa2a74b=_0xcfee22,_0x323c03=_0x186eae&&_0x186eae[_0xa2a74b(0x2214)]?_0x186eae[_0xa2a74b(0x2214)][0x0]:null;if(!_0x323c03){const _0x39a01f=[];let _0x18c36b=null;_0x19bd45['tag']&&(_0x18c36b=_0x39641b()['find'](_0x19bd45['tags'],{'name':_0x19bd45[_0xa2a74b(0x22b1)][_0xa2a74b(0x22b1)]}));for(let _0x5917ee=0x0;_0x5917ee<_0x19bd45[_0xa2a74b(0xfbf)]['length'];_0x5917ee++){_0x18c36b&&_0x19bd45[_0xa2a74b(0xfbf)][_0x5917ee]['id']===_0x18c36b['id']&&(_0x19bd45[_0xa2a74b(0xfbf)][_0x5917ee][_0xa2a74b(0x15da)]=![],_0x39a01f[_0xa2a74b(0x2785)](_0x19bd45[_0xa2a74b(0xfbf)][_0x5917ee]));}_0x19bd45[_0xa2a74b(0xfbf)]=_0x39a01f;}else{if(!_0x323c03[_0xa2a74b(0x12f4)])return _0x2e9341[_0xa2a74b(0x1198)][_0xa2a74b(0xbf7)]({'sectionId':_0x323c03['id']})['$promise'][_0xa2a74b(0x1cb0)](function(_0xb982c1){const _0xaff07f=_0xa2a74b,_0x528c4f=_0x39641b()[_0xaff07f(0x1de2)](_0xb982c1[_0xaff07f(0x2214)],function(_0x4b06d0){const _0x5f254d=_0xaff07f;return _0x39641b()['find'](_0x19bd45[_0x5f254d(0xfbf)],{'id':_0x4b06d0['resourceId']});});let _0x5971c2=null;_0x19bd45[_0xaff07f(0x22b1)]&&(_0x5971c2=_0x39641b()[_0xaff07f(0x13b4)](_0x19bd45['tags'],{'name':_0x19bd45[_0xaff07f(0x22b1)]['tag']}));if(_0x5971c2&&!_0x39641b()['some'](_0x528c4f,['id',_0x5971c2['id']])){const _0x1d81dc=_0x39641b()[_0xaff07f(0x13b4)](_0x19bd45[_0xaff07f(0xfbf)],{'id':_0x5971c2['id']});_0x1d81dc['canSelect']=![],_0x528c4f[_0xaff07f(0x2785)](_0x1d81dc);}_0x19bd45[_0xaff07f(0xfbf)]=_0x528c4f;});}})[_0xcfee22(0x1c4)](function(_0x2e8e6f){const _0x1dd7ca=_0xcfee22;_0x269b11[_0x1dd7ca(0x218e)]({'title':_0x2e8e6f[_0x1dd7ca(0x291)]?'API:'+_0x2e8e6f[_0x1dd7ca(0x291)]+_0x1dd7ca(0x1657)+_0x2e8e6f[_0x1dd7ca(0xc22)]:_0x1dd7ca(0x808),'msg':_0x2e8e6f[_0x1dd7ca(0x25c)]?JSON['stringify'](_0x2e8e6f[_0x1dd7ca(0x25c)]):_0x2e8e6f[_0x1dd7ca(0x147f)]()});});function _0xec49e6(){const _0x313df7=_0xcfee22;_0x19bd45['errors']=[];const _0x290f4a=[];_0x19bd45['tag'][_0x313df7(0x66a)]&&_0x19bd45[_0x313df7(0x22b1)]['type'][_0x313df7(0x1680)]()==='outbound'&&_0x19bd45[_0x313df7(0x22b1)][_0x313df7(0x299b)]==='outboundDial'&&(_0x19bd45['tag'][_0x313df7(0x1340)]=_0x5c801a['cutdigits']?(_0x19bd45['tag'][_0x313df7(0x586)]||'')+'${EXTEN:'+_0x5c801a[_0x313df7(0x325)]+'}':(_0x19bd45[_0x313df7(0x22b1)][_0x313df7(0x586)]||'')+_0x313df7(0xcdd),_0x5c801a[_0x313df7(0xf8d)]!=='none'?_0x19bd45[_0x313df7(0x22b1)]['options'][_0x313df7(0xd8a)](_0x313df7(0x106a))<0x0&&(_0x19bd45[_0x313df7(0x22b1)][_0x313df7(0x2224)]+='U(xcally-mixmonitor-context)'):_0x19bd45[_0x313df7(0x22b1)][_0x313df7(0x2224)]=_0x19bd45[_0x313df7(0x22b1)][_0x313df7(0x2224)][_0x313df7(0x288f)](_0x313df7(0x106a),''));const _0x56fa50=_0x39641b()[_0x313df7(0x13b4)](_0x19bd45[_0x313df7(0xfbf)],{'name':_0x19bd45['tag']['tag']});_0x56fa50&&(_0x19bd45[_0x313df7(0x22b1)][_0x313df7(0x1754)]=_0x56fa50['id']);if(_0x19bd45[_0x313df7(0x22b1)][_0x313df7(0x299b)]&&_0x19bd45[_0x313df7(0x22b1)][_0x313df7(0x299b)]===_0x313df7(0x197c)){}else switch((_0x19bd45[_0x313df7(0x22b1)][_0x313df7(0x22e1)]||_0x19bd45[_0x313df7(0x22b1)]['appType'])['toLowerCase']()){case _0x313df7(0x19d1):_0x19bd45[_0x313df7(0x22b1)][_0x313df7(0x28df)]=_0x19bd45[_0x313df7(0x22b1)][_0x313df7(0x16b6)]+'='+_0x19bd45[_0x313df7(0x22b1)]['value'];break;case _0x313df7(0x197c):break;default:_0x290f4a[0x0]=_0x19bd45[_0x313df7(0x22b1)][_0x313df7(0x22b1)],_0x19bd45[_0x313df7(0x22b1)][_0x313df7(0x28df)]=_0x290f4a['join'](',');}_0x2bc66f(_0x19bd45[_0x313df7(0x22b1)]);}function _0x2bc66f(_0x3922ba){_0x13f8e7['hide'](_0x3922ba);}}const _0x5e67b7=_0x1bc48f;;_0x58fd4f[_0x5537c6(0x15b6)]=['$cookies',_0x5537c6(0x1463),_0x5537c6(0x406),'$q',_0x5537c6(0x1ae),_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x142b),'Auth'];function _0x58fd4f(_0x3c50dc,_0x360d48,_0x2ec818,_0x32d8aa,_0x28aa39,_0x4f7e9b,_0x1f1ff1,_0x3dd6e4,_0x1bfb76,_0x344aef,_0x234ff5){const _0xe26231=_0x5537c6,_0x52c428=this;_0x52c428[_0xe26231(0xe76)]=_0x234ff5['getCurrentUser'](),_0x52c428[_0xe26231(0x80e)]={},_0x52c428['openchannelAccountInteractions']={'count':0x0,'rows':[]},_0x52c428[_0xe26231(0x18de)]=[],_0x52c428[_0xe26231(0x1b1a)],_0x52c428['query']={'read':_0xe26231(0xd38),'closed':_0xe26231(0xd38),'sort':'-createdAt','includeAll':_0xe26231(0x44d),'limit':0xa,'page':0x1},_0x52c428[_0xe26231(0x1a8e)]=_0x2af0f0,_0x52c428['deleteConfirm']=_0x45a001,_0x52c428['openchannelInteractionDownload']=_0x53d9fe,_0x52c428['success']=_0xb43f1b,_0x52c428[_0xe26231(0x8b6)]=_0x5db09c,_0x52c428['spyopenchannelInteraction']=_0x46dc25,_0x52c428[_0xe26231(0x1ede)]=_0xd3496f,_0x52c428[_0xe26231(0x20f7)]=_0x5f37dd,_0x52c428[_0xe26231(0x7a5)]=_0x2f3914,_0x52c428[_0xe26231(0x7ad)]=_0x208317;function _0x2af0f0(_0x3498e1,_0x589907){const _0x3574c3=_0xe26231;_0x52c428[_0x3574c3(0x80e)]=_0x3498e1,_0x52c428['crudPermissions']=typeof _0x589907!==_0x3574c3(0x16b5)?_0x589907:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x52c428[_0x3574c3(0xae2)][_0x3574c3(0x1d1e)]=_0x52c428['openchannelAccount']['id'],_0x52c428[_0x3574c3(0x16ad)]={'fields':_0x41a46b()},_0x3886cf();}function _0x3886cf(){const _0x2a9058=_0xe26231;return _0x344aef[_0x2a9058(0x22b1)][_0x2a9058(0xbf7)]()[_0x2a9058(0x1d77)][_0x2a9058(0x1cb0)](function(_0x45e5e2){_0x52c428['tags']=_0x45e5e2||{'count':0x0,'rows':[]};})[_0x2a9058(0x1cb0)](function(){const _0xa4592c=_0x2a9058;_0x52c428[_0xa4592c(0x789)]=_0x564b7c();});}function _0x564b7c(){const _0xd6d895=_0xe26231;return[{'name':_0xd6d895(0x68d),'key':_0xd6d895(0x24cb),'type':'date','label':_0xd6d895(0xf5e)},{'name':_0xd6d895(0x223c),'key':_0xd6d895(0xfc1),'type':_0xd6d895(0x220f),'label':_0xd6d895(0x9e5),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0xd6d895(0x27a4)},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0xd6d895(0x938),'key':_0xd6d895(0x22aa),'type':_0xd6d895(0x220f),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0xd6d895(0x1bbd)},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0xd6d895(0x2706)}]},{'name':_0xd6d895(0x30e),'key':_0xd6d895(0x21ab),'type':_0xd6d895(0x220f),'label':_0xd6d895(0x7bb),'customOptions':[{'value':'null','translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0xd6d895(0xf2d),'key':_0xd6d895(0x22b1),'type':_0xd6d895(0x1d50),'label':'DASHBOARDS.SELECT_TAG','options':_0x52c428[_0xd6d895(0xfbf)][_0xd6d895(0x2214)],'placeholder':_0xd6d895(0x62b)}];}function _0x41a46b(){const _0x29c0ce=_0xe26231;return[{'name':'Id','column':'id','type':_0x29c0ce(0x83d)},{'name':_0x29c0ce(0x8d3),'column':_0x29c0ce(0x8d3),'type':'autocomplete','options':{'searchFields':['firstName',_0x29c0ce(0x1fbb),'email'],'route':{'model':_0x29c0ce(0xbe7),'action':_0x29c0ce(0xbf7),'params':{'fields':'id,firstName,lastName,email','Contact':_0x29c0ce(0xed6),'nolimit':!![]}},'extraOperators':[_0x29c0ce(0x1fb1)],'excludedOperators':[_0x29c0ce(0x15ce)]}},{'name':'Subject','column':'subject','type':'text','options':{'excludedOperators':[_0x29c0ce(0x1c5e),_0x29c0ce(0x15ce)]}},{'name':_0x29c0ce(0x269b),'column':_0x29c0ce(0x1cd0),'type':_0x29c0ce(0x19d3),'options':{'excludedOperators':['$eq',_0x29c0ce(0x15ce)]}},{'name':_0x29c0ce(0x938),'column':_0x29c0ce(0x22aa),'type':_0x29c0ce(0x220f),'values':[{'id':0x0,'translate':_0x29c0ce(0x1bbd)},{'id':0x1,'translate':_0x29c0ce(0x191b)}],'options':{'excludedOperators':[_0x29c0ce(0x15ce)]}},{'name':_0x29c0ce(0x30e),'column':_0x29c0ce(0x1597),'type':_0x29c0ce(0x19e0),'options':{'table':'i','route':{'model':_0x29c0ce(0xebe),'action':'get','params':{'role':_0x29c0ce(0x1eff),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':['fullname',_0x29c0ce(0x16b6)],'extraOperators':[_0x29c0ce(0x1fb1)],'excludedOperators':[_0x29c0ce(0x15ce)]}},{'name':_0x29c0ce(0x190),'column':_0x29c0ce(0xf2d),'type':_0x29c0ce(0x1d50),'options':{'route':{'model':_0x29c0ce(0x22b1),'action':_0x29c0ce(0xbf7),'params':{'nolimit':!![]}},'excludedOperators':[_0x29c0ce(0x62d)]}},{'name':_0x29c0ce(0x68d),'column':_0x29c0ce(0x24cb),'type':'date','options':{'excludedOperators':['$ne']}},{'name':_0x29c0ce(0x946),'column':_0x29c0ce(0x1554),'type':'select','values':[{'id':0x1,'translate':_0x29c0ce(0x27a4)},{'id':0x0,'translate':_0x29c0ce(0x1115)}],'options':{'excludedOperators':[_0x29c0ce(0x15ce)]}}];}function _0xd3496f(){const _0x281b8c=_0xe26231;_0x1f1ff1[_0x281b8c(0xe27)]({'controller':_0x281b8c(0x15f7),'controllerAs':'vm','templateUrl':_0x3530d6,'parent':angular[_0x281b8c(0x1853)](_0x3dd6e4[_0x281b8c(0x1ed9)]),'clickOutsideToClose':![],'locals':{'fields':_0x52c428['advancedSearch'][_0x281b8c(0x355)],'color':undefined,'storagePath':'openchannel.openchannelAccounts'},'fullscreen':!![]})[_0x281b8c(0x1cb0)](function(_0x2921c0){const _0x59271d=_0x281b8c;_0x52c428[_0x59271d(0xae2)][_0x59271d(0x24be)]=_0x2921c0===![]?undefined:_0x2921c0;if(_0x52c428['query'][_0x59271d(0x24be)])_0x5db09c();else _0x2921c0===![]&&_0x5db09c();})['catch'](function(_0x2e2650){const _0x18da55=_0x281b8c;_0x1bfb76[_0x18da55(0x218e)]({'title':_0x18da55(0x2260),'msg':_0x2e2650[_0x18da55(0x25c)]?JSON['stringify'](_0x2e2650[_0x18da55(0x25c)]['message']):_0x2e2650[_0x18da55(0x147f)]()});});}function _0x53d9fe(_0x4567a1,_0x7ed9a1,_0x3effe2){const _0xf48792=_0xe26231;return _0x344aef[_0xf48792(0x1f5b)]['download']({'id':_0x4567a1['id'],'exists':!![],'attachments':_0x3effe2})[_0xf48792(0x1d77)][_0xf48792(0x1cb0)](function(_0x40fecb){const _0x573611=_0xf48792,_0x4067e0=[_0x40fecb[_0x573611(0xef0)]];let _0x3fd340=_0x573611(0x10e4)+_0x4567a1['id'];const _0x124fcc=new Blob(_0x4067e0,{'type':_0x40fecb['type']});_0x3fd340=_0x573611(0x1ca0)+_0x4567a1['id']+'.zip';const _0x63d2a0=window[_0x573611(0x1db8)][_0x573611(0x8c6)]('a');_0x63d2a0[_0x573611(0x23b9)]('href',URL[_0x573611(0x2247)](_0x124fcc)),_0x63d2a0['setAttribute']('download',_0x3fd340),document[_0x573611(0x1ed9)][_0x573611(0x23de)](_0x63d2a0),_0x63d2a0[_0x573611(0x20b8)]();})[_0xf48792(0x1c4)](function(_0x221115){const _0x84d6db=_0xf48792;if(_0x221115[_0x84d6db(0x25c)]&&_0x221115[_0x84d6db(0x25c)][_0x84d6db(0x1a7c)]&&_0x221115[_0x84d6db(0x25c)][_0x84d6db(0x1a7c)]['length'])for(let _0x1acdf4=0x0;_0x1acdf4<_0x221115[_0x84d6db(0x25c)][_0x84d6db(0x1a7c)][_0x84d6db(0xfd0)];_0x1acdf4+=0x1){_0x1bfb76['error']({'title':_0x221115[_0x84d6db(0x25c)][_0x84d6db(0x1a7c)][_0x1acdf4][_0x84d6db(0x66a)],'msg':_0x221115[_0x84d6db(0x25c)]['errors'][_0x1acdf4][_0x84d6db(0x155e)]});}else _0x1bfb76[_0x84d6db(0x218e)]({'title':_0x221115['status']?_0x84d6db(0xeb9)+_0x221115[_0x84d6db(0x291)]+_0x84d6db(0x1657)+_0x221115[_0x84d6db(0xc22)]:_0x84d6db(0xf71),'msg':_0x221115[_0x84d6db(0x25c)]?JSON[_0x84d6db(0x2701)](_0x221115['data'][_0x84d6db(0x155e)]):_0x221115['toString']()});});}function _0x45a001(_0x1ad3d7,_0x213016){const _0x2d2a2d=_0xe26231,_0x154792=_0x1f1ff1['confirm']()[_0x2d2a2d(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interaction?')[_0x2d2a2d(0x49e)](_0x2d2a2d(0x204d)+(_0x1ad3d7['name']||_0x1ad3d7['id']&&_0x39641b()['upperFirst']('interaction\x20#')+_0x1ad3d7['id']||_0x2d2a2d(0x10e4))+_0x2d2a2d(0x1200)+_0x2d2a2d(0x1b6))['ariaLabel'](_0x2d2a2d(0x116f))[_0x2d2a2d(0x728)](_0x213016)['ok']('OK')[_0x2d2a2d(0x696)](_0x2d2a2d(0x24ba));_0x1f1ff1[_0x2d2a2d(0xe27)](_0x154792)['then'](function(){_0x2f3914(_0x1ad3d7);},function(){const _0x16b5bf=_0x2d2a2d;console['log'](_0x16b5bf(0x24ba));});}function _0xb43f1b(_0x4225e8){const _0x360c19=_0xe26231;_0x52c428[_0x360c19(0x25a)]=_0x4225e8||{'count':0x0,'rows':[]};for(let _0x4b85c4=0x0;_0x4b85c4<_0x52c428[_0x360c19(0x25a)][_0x360c19(0x2214)][_0x360c19(0xfd0)];_0x4b85c4+=0x1){const _0x1b9479=_0x52c428[_0x360c19(0x25a)][_0x360c19(0x2214)][_0x4b85c4];_0x327e39(_0x1b9479),_0x1b9479[_0x360c19(0x135d)]['name']=_0x4d889d(_0x1b9479);}}function _0x5db09c(){const _0x4e9206=_0xe26231;_0x52c428[_0x4e9206(0xae2)]['offset']=(_0x52c428[_0x4e9206(0xae2)][_0x4e9206(0x1c7b)]-0x1)*_0x52c428['query']['limit'],_0x52c428[_0x4e9206(0x2061)]=_0x344aef[_0x4e9206(0x1f5b)][_0x4e9206(0xbf7)](_0x52c428[_0x4e9206(0xae2)],_0xb43f1b)[_0x4e9206(0x1d77)];}function _0x46dc25(_0x437872,_0x1caa1e){const _0x43fbc4=_0xe26231;_0x1f1ff1[_0x43fbc4(0xe27)]({'controller':_0x43fbc4(0x4b2),'controllerAs':'vm','templateUrl':_0x50da87,'parent':angular[_0x43fbc4(0x1853)](_0x3dd6e4[_0x43fbc4(0x1ed9)]),'targetEvent':_0x437872,'clickOutsideToClose':!![],'onShowing':function(_0xdbb0ac){const _0x182bf8=_0x43fbc4;_0xdbb0ac['vm'][_0x182bf8(0x1a8e)]({'id':0x1,'channel':_0x182bf8(0x15e0),'interaction':_0x1caa1e,'spy':!![]},_0x360d48[_0x182bf8(0x17bc)]['vm']['setting']);}});}function _0x2f3914(_0xc495f4){const _0x18aef8=_0xe26231;_0x344aef[_0x18aef8(0x1f5b)][_0x18aef8(0x111d)]({'id':_0xc495f4['id']})[_0x18aef8(0x1d77)][_0x18aef8(0x1cb0)](function(){const _0x192d55=_0x18aef8;_0x39641b()[_0x192d55(0x152a)](_0x52c428[_0x192d55(0x25a)][_0x192d55(0x2214)],{'id':_0xc495f4['id']}),_0x52c428[_0x192d55(0x25a)][_0x192d55(0x184d)]-=0x1,!_0x52c428[_0x192d55(0x25a)][_0x192d55(0x2214)]['length']&&_0x5db09c(),_0x1bfb76['success']({'title':'Interaction\x20deleted!','msg':_0xc495f4['name']?_0xc495f4[_0x192d55(0x16b6)]+_0x192d55(0x3f5):''});})[_0x18aef8(0x1c4)](function(_0x4cdaba){const _0x355dba=_0x18aef8;if(_0x4cdaba[_0x355dba(0x25c)]&&_0x4cdaba['data'][_0x355dba(0x1a7c)]&&_0x4cdaba['data']['errors'][_0x355dba(0xfd0)]){_0x52c428['errors']=_0x4cdaba[_0x355dba(0x25c)][_0x355dba(0x1a7c)]||[{'message':_0x4cdaba['toString'](),'type':'SYSTEM:GETopenchannelAccount'}];for(let _0x583073=0x0;_0x583073<_0x4cdaba[_0x355dba(0x25c)]['errors'][_0x355dba(0xfd0)];_0x583073++){_0x1bfb76[_0x355dba(0x218e)]({'title':_0x4cdaba[_0x355dba(0x25c)][_0x355dba(0x1a7c)][_0x583073]['type'],'msg':_0x4cdaba[_0x355dba(0x25c)][_0x355dba(0x1a7c)][_0x583073][_0x355dba(0x155e)]});}}else _0x1bfb76[_0x355dba(0x218e)]({'title':_0x4cdaba[_0x355dba(0x291)]?_0x355dba(0xeb9)+_0x4cdaba['status']+_0x355dba(0x1657)+_0x4cdaba[_0x355dba(0xc22)]:_0x355dba(0x78b),'msg':_0x4cdaba[_0x355dba(0x25c)]?JSON['stringify'](_0x4cdaba[_0x355dba(0x25c)]['message']):_0x4cdaba[_0x355dba(0x155e)]||_0x4cdaba[_0x355dba(0x147f)]()});});}function _0x5f37dd(){const _0x2cce13=_0xe26231,_0x15f616=angular['copy'](_0x52c428['selectedOpenchannelAccountInteractions']);return _0x52c428[_0x2cce13(0x18de)]=[],_0x15f616;}function _0x208317(_0x42fb8b){const _0xf52b50=_0xe26231,_0x332422=_0x1f1ff1['confirm']()['title'](_0xf52b50(0xb2e))[_0xf52b50(0x49e)](_0xf52b50(0x204d)+_0x52c428[_0xf52b50(0x18de)]['length']+'\x20selected'+_0xf52b50(0x1b6))[_0xf52b50(0x15ad)]('delete\x20interactions')[_0xf52b50(0x728)](_0x42fb8b)['ok']('OK')[_0xf52b50(0x696)](_0xf52b50(0x24ba));_0x1f1ff1[_0xf52b50(0xe27)](_0x332422)[_0xf52b50(0x1cb0)](function(){const _0x535424=_0xf52b50;_0x52c428[_0x535424(0x18de)]['forEach'](function(_0x528bb7){_0x2f3914(_0x528bb7);}),_0x52c428['selectedOpenchannelAccountInteractions']=[];});}function _0x327e39(_0x124240){const _0x2f40a0=_0xe26231;if(_0x124240[_0x2f40a0(0x174d)])_0x124240[_0x2f40a0(0x1325)]=_0x124240[_0x2f40a0(0x174d)];else _0x124240[_0x2f40a0(0x8d3)]?_0x124240[_0x2f40a0(0x1325)]=(_0x124240['Contact'][_0x2f40a0(0x1491)]||'')+'\x20'+(_0x124240['Contact'][_0x2f40a0(0x1fbb)]||''):_0x124240[_0x2f40a0(0x1325)]=_0x28aa39[_0x2f40a0(0x25cc)](_0x2f40a0(0x2b9));}function _0x4d889d(_0x5a572b){const _0x186584=_0xe26231;if(_0x5a572b[_0x186584(0x21ab)])return _0x5a572b[_0x186584(0x21ab)]===_0x52c428['currentUser']['id']?_0x28aa39[_0x186584(0x25cc)](_0x186584(0x1ea6)):_0x5a572b[_0x186584(0x135d)]['fullname']+'\x20<'+_0x5a572b['Owner'][_0x186584(0xdbd)]+'>';return _0x28aa39[_0x186584(0x25cc)](_0x186584(0x68f));}let _0x58a297=!![],_0x3cd92c=0x1;_0x360d48[_0xe26231(0x614)]('vm_dc.query.filter',function(_0x26b227,_0x378f2c){const _0x2d9a73=_0xe26231;_0x58a297?_0x4f7e9b(function(){_0x58a297=![];}):(!_0x378f2c&&(_0x3cd92c=_0x52c428[_0x2d9a73(0xae2)]['page']),_0x26b227!==_0x378f2c&&(_0x52c428[_0x2d9a73(0xae2)][_0x2d9a73(0x1c7b)]=0x1),!_0x26b227&&(_0x52c428['query'][_0x2d9a73(0x1c7b)]=_0x3cd92c),_0x5db09c());});}const _0x2a1d87=_0x58fd4f;;const _0x4e7b0d=_0x5074a3['p']+_0x5537c6(0xd78);;_0xcc1d4b['$inject']=[_0x5537c6(0x173),_0x5537c6(0x1463),_0x5537c6(0x406),'$q',_0x5537c6(0x1ae),_0x5537c6(0x2168),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1774)];function _0xcc1d4b(_0x25615d,_0x4d5dd5,_0x253b90,_0x42408f,_0x2bcca2,_0xdd2f,_0x32c389,_0x898767,_0x423e09,_0x79110e,_0x54f4a3){const _0x233e06=_0x5537c6,_0x15d5af=this;_0x15d5af['currentUser']=_0x54f4a3[_0x233e06(0x21e8)](),_0x15d5af[_0x233e06(0x80e)]={},_0x15d5af[_0x233e06(0x9a6)]={'count':0x0,'rows':[]},_0x15d5af['selectedOpenchannelAccountOpenchannelCannedAnswers']=[],_0x15d5af[_0x233e06(0x1b1a)],_0x15d5af['query']={'fields':_0x233e06(0x1d68),'limit':0xa,'page':0x1},_0x15d5af['init']=_0x5af854,_0x15d5af[_0x233e06(0xb25)]=_0x44d0ac,_0x15d5af[_0x233e06(0x829)]=_0x4cce4f,_0x15d5af[_0x233e06(0x1d84)]=_0x21d6a1,_0x15d5af[_0x233e06(0x2337)]=_0x5a4e8d,_0x15d5af[_0x233e06(0x2955)]=_0x52ef9a,_0x15d5af[_0x233e06(0x1d26)]=_0x3506e3,_0x15d5af[_0x233e06(0x6fe)]=_0x75df0d;function _0x5af854(_0x40b2b7,_0x1a3b48){const _0xb014d5=_0x233e06;_0x15d5af[_0xb014d5(0x80e)]=_0x40b2b7,_0x15d5af[_0xb014d5(0x1b1a)]=typeof _0x1a3b48!==_0xb014d5(0x16b5)?_0x1a3b48:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x15d5af['query']['OpenchannelAccountId']=_0x15d5af[_0xb014d5(0x80e)]['id'],_0x15d5af['query']['id']=_0x15d5af[_0xb014d5(0x80e)]['id'],_0x21d6a1();}function _0x44d0ac(_0x45f124,_0xcfa45f){const _0x5879c9=_0x233e06,_0x3d43fa=_0x32c389[_0x5879c9(0x1551)]()[_0x5879c9(0x1386)](_0x5879c9(0x18a3))[_0x5879c9(0x49e)](_0x5879c9(0x204d)+(_0x45f124[_0x5879c9(0x16b6)]||_0x45f124['id']&&_0x39641b()['upperFirst'](_0x5879c9(0x18bd))+_0x45f124['id']||_0x5879c9(0xb3a))+_0x5879c9(0x1200)+_0x5879c9(0x1b6))['ariaLabel'](_0x5879c9(0x4c3))[_0x5879c9(0x728)](_0xcfa45f)['ok']('OK')[_0x5879c9(0x696)](_0x5879c9(0x24ba));_0x32c389[_0x5879c9(0xe27)](_0x3d43fa)[_0x5879c9(0x1cb0)](function(){_0x3506e3(_0x45f124);},function(){console['log']('CANCEL');});}function _0x4cce4f(_0x99ed01){const _0xf9c8b=_0x233e06;_0x15d5af[_0xf9c8b(0x9a6)]=_0x99ed01||{'count':0x0,'rows':[]};}function _0x21d6a1(){const _0x5c55e4=_0x233e06;_0x15d5af[_0x5c55e4(0xae2)][_0x5c55e4(0x184b)]=(_0x15d5af[_0x5c55e4(0xae2)][_0x5c55e4(0x1c7b)]-0x1)*_0x15d5af[_0x5c55e4(0xae2)]['limit'],_0x15d5af[_0x5c55e4(0x2061)]=_0x79110e[_0x5c55e4(0x80e)][_0x5c55e4(0x1ec5)](_0x15d5af['query'],_0x4cce4f)[_0x5c55e4(0x1d77)];}function _0x5a4e8d(_0x2e8211,_0x1a4e59){const _0x2a4eda=_0x233e06;_0x32c389[_0x2a4eda(0xe27)]({'controller':_0x2a4eda(0x60a),'controllerAs':'vm','templateUrl':_0x4e7b0d,'parent':angular['element'](_0x898767[_0x2a4eda(0x1ed9)]),'targetEvent':_0x2e8211,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x15d5af[_0x2a4eda(0x80e)],'openchannelCannedAnswer':_0x1a4e59,'openchannelCannedAnswers':_0x15d5af[_0x2a4eda(0x9a6)][_0x2a4eda(0x2214)],'license':null,'setting':null,'crudPermissions':_0x15d5af['crudPermissions']}});}function _0x3506e3(_0x290d13){const _0x28a5eb=_0x233e06;_0x79110e['cannedAnswer'][_0x28a5eb(0x111d)]({'id':_0x290d13['id']})[_0x28a5eb(0x1d77)][_0x28a5eb(0x1cb0)](function(){const _0x245603=_0x28a5eb;_0x39641b()[_0x245603(0x152a)](_0x15d5af[_0x245603(0x9a6)][_0x245603(0x2214)],{'id':_0x290d13['id']}),_0x15d5af[_0x245603(0x9a6)][_0x245603(0x184d)]-=0x1,!_0x15d5af[_0x245603(0x9a6)][_0x245603(0x2214)][_0x245603(0xfd0)]&&_0x21d6a1(),_0x423e09[_0x245603(0x829)]({'title':'OpenchannelCannedAnswer\x20deleted!','msg':_0x290d13['name']?_0x290d13[_0x245603(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x28a5eb(0x1c4)](function(_0x780dd5){const _0x4feb41=_0x28a5eb;if(_0x780dd5[_0x4feb41(0x25c)]&&_0x780dd5[_0x4feb41(0x25c)]['errors']&&_0x780dd5[_0x4feb41(0x25c)][_0x4feb41(0x1a7c)]['length']){_0x15d5af['errors']=_0x780dd5[_0x4feb41(0x25c)][_0x4feb41(0x1a7c)]||[{'message':_0x780dd5[_0x4feb41(0x147f)](),'type':_0x4feb41(0x78b)}];for(let _0x3e48cd=0x0;_0x3e48cd<_0x780dd5[_0x4feb41(0x25c)][_0x4feb41(0x1a7c)]['length'];_0x3e48cd++){_0x423e09[_0x4feb41(0x218e)]({'title':_0x780dd5[_0x4feb41(0x25c)][_0x4feb41(0x1a7c)][_0x3e48cd][_0x4feb41(0x66a)],'msg':_0x780dd5['data'][_0x4feb41(0x1a7c)][_0x3e48cd][_0x4feb41(0x155e)]});}}else _0x423e09[_0x4feb41(0x218e)]({'title':_0x780dd5[_0x4feb41(0x291)]?_0x4feb41(0xeb9)+_0x780dd5[_0x4feb41(0x291)]+_0x4feb41(0x1657)+_0x780dd5[_0x4feb41(0xc22)]:_0x4feb41(0x78b),'msg':_0x780dd5[_0x4feb41(0x25c)]?JSON['stringify'](_0x780dd5[_0x4feb41(0x25c)][_0x4feb41(0x155e)]):_0x780dd5[_0x4feb41(0x155e)]||_0x780dd5['toString']()});});}function _0x52ef9a(){const _0x4b2415=_0x233e06,_0x40c6b7=angular[_0x4b2415(0x17fe)](_0x15d5af[_0x4b2415(0xfb9)]);return _0x15d5af['selectedOpenchannelAccountOpenchannelCannedAnswers']=[],_0x40c6b7;}function _0x75df0d(_0x289cdd){const _0x466510=_0x233e06,_0x526ef6=_0x32c389[_0x466510(0x1551)]()[_0x466510(0x1386)](_0x466510(0x19e2))[_0x466510(0x49e)](''+_0x15d5af[_0x466510(0xfb9)][_0x466510(0xfd0)]+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x466510(0x1a67))[_0x466510(0x728)](_0x289cdd)['ok']('OK')[_0x466510(0x696)]('CANCEL');_0x32c389[_0x466510(0xe27)](_0x526ef6)[_0x466510(0x1cb0)](function(){const _0x3c26dd=_0x466510;_0x15d5af[_0x3c26dd(0xfb9)][_0x3c26dd(0xf90)](function(_0x3e15e3){_0x3506e3(_0x3e15e3);}),_0x15d5af[_0x3c26dd(0xfb9)]=[];});}let _0x480140=!![],_0x140e22=0x1;_0x4d5dd5[_0x233e06(0x614)](_0x233e06(0xeb6),function(_0x2e54ec,_0x47cd17){const _0x4694fc=_0x233e06;_0x480140?_0xdd2f(function(){_0x480140=![];}):(!_0x47cd17&&(_0x140e22=_0x15d5af[_0x4694fc(0xae2)][_0x4694fc(0x1c7b)]),_0x2e54ec!==_0x47cd17&&(_0x15d5af['query'][_0x4694fc(0x1c7b)]=0x1),!_0x2e54ec&&(_0x15d5af[_0x4694fc(0xae2)][_0x4694fc(0x1c7b)]=_0x140e22),_0x21d6a1());});}const _0x1e3471=_0xcc1d4b;;_0x5d4bea[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),'openchannelCannedAnswers',_0x5537c6(0xb3a),_0x5537c6(0x142b),_0x5537c6(0x1774),'license','setting','crudPermissions'];function _0x5d4bea(_0x195e3e,_0x347221,_0x1f11dc,_0xd71e61,_0xb5cf0b,_0x11e8c0,_0x1e26aa,_0x405aa1,_0x4253b0,_0x33c01f,_0x205db4,_0x4b4e8b,_0x35d248,_0x1bd7e8){const _0x73c5cb=_0x5537c6,_0x5b982c=this;_0x5b982c['currentUser']=_0x205db4[_0x73c5cb(0x21e8)](),_0x5b982c[_0x73c5cb(0x1a7c)]=[],_0x5b982c[_0x73c5cb(0x9ca)]=_0x35d248,_0x5b982c['license']=_0x4b4e8b,_0x5b982c[_0x73c5cb(0x1b1a)]=_0x1bd7e8,_0x5b982c[_0x73c5cb(0xf4c)]={},_0x5b982c[_0x73c5cb(0x1b0c)]=_0x5b982c[_0x73c5cb(0x9ca)]&&_0x5b982c[_0x73c5cb(0x9ca)][_0x73c5cb(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5b982c[_0x73c5cb(0x1386)]=_0x73c5cb(0x90f),_0x5b982c['openchannelCannedAnswer']=angular['copy'](_0x4253b0),_0x5b982c['openchannelCannedAnswers']=_0x405aa1,_0x5b982c['newOpenchannelCannedAnswer']=![];!_0x5b982c[_0x73c5cb(0xb3a)]&&(_0x5b982c[_0x73c5cb(0xb3a)]={},_0x5b982c[_0x73c5cb(0x1386)]='OPENCHANNEL.NEW_OPENCHANNELCANNEDANSWER',_0x5b982c[_0x73c5cb(0x21d4)]=!![]);_0x347221['params']['id']&&(_0x5b982c[_0x73c5cb(0xb3a)][_0x73c5cb(0x1d1e)]=_0x347221[_0x73c5cb(0x1dfe)]['id']);_0x5b982c[_0x73c5cb(0x95c)]=_0x6271db,_0x5b982c[_0x73c5cb(0x2885)]=_0x2d0518,_0x5b982c[_0x73c5cb(0x4d9)]=_0x3a767f,_0x5b982c[_0x73c5cb(0x2c4)]=_0x5487f2,_0x5b982c['closeDialog']=_0x51a115;function _0x6271db(){const _0x8f0aa3=_0x73c5cb;_0x5b982c[_0x8f0aa3(0x1a7c)]=[],_0x33c01f[_0x8f0aa3(0x1c25)][_0x8f0aa3(0x1c3f)](_0x5b982c[_0x8f0aa3(0xb3a)])[_0x8f0aa3(0x1d77)][_0x8f0aa3(0x1cb0)](function(_0x482993){const _0x48a3ea=_0x8f0aa3;_0x5b982c[_0x48a3ea(0xab5)]['unshift'](_0x482993[_0x48a3ea(0x19b2)]()),_0x1e26aa[_0x48a3ea(0x829)]({'title':_0x48a3ea(0x241c),'msg':_0x5b982c[_0x48a3ea(0xb3a)][_0x48a3ea(0x16b6)]?_0x5b982c['openchannelCannedAnswer']['name']+_0x48a3ea(0x470):''}),_0x51a115(_0x482993);})['catch'](function(_0x24d44a){const _0x1a90ef=_0x8f0aa3;if(_0x24d44a[_0x1a90ef(0x25c)]&&_0x24d44a[_0x1a90ef(0x25c)][_0x1a90ef(0x1a7c)]&&_0x24d44a[_0x1a90ef(0x25c)]['errors'][_0x1a90ef(0xfd0)]){_0x5b982c[_0x1a90ef(0x1a7c)]=_0x24d44a[_0x1a90ef(0x25c)][_0x1a90ef(0x1a7c)]||[{'message':_0x24d44a[_0x1a90ef(0x147f)](),'type':_0x1a90ef(0x224)}];for(let _0x5dda1b=0x0;_0x5dda1b<_0x24d44a[_0x1a90ef(0x25c)]['errors'][_0x1a90ef(0xfd0)];_0x5dda1b+=0x1){_0x1e26aa['error']({'title':_0x24d44a[_0x1a90ef(0x25c)]['errors'][_0x5dda1b]['type'],'msg':_0x24d44a[_0x1a90ef(0x25c)][_0x1a90ef(0x1a7c)][_0x5dda1b][_0x1a90ef(0x155e)]});}}else _0x1e26aa[_0x1a90ef(0x218e)]({'title':_0x24d44a[_0x1a90ef(0x291)]?_0x1a90ef(0xeb9)+_0x24d44a['status']+_0x1a90ef(0x1657)+_0x24d44a[_0x1a90ef(0xc22)]:_0x1a90ef(0x224),'msg':_0x24d44a[_0x1a90ef(0x25c)]?JSON[_0x1a90ef(0x2701)](_0x24d44a[_0x1a90ef(0x25c)][_0x1a90ef(0x155e)]):_0x24d44a[_0x1a90ef(0x147f)]()});});}function _0x2d0518(){const _0x5ee363=_0x73c5cb;_0x5b982c[_0x5ee363(0x1a7c)]=[],_0x33c01f['cannedAnswer']['update']({'id':_0x5b982c[_0x5ee363(0xb3a)]['id']},_0x5b982c[_0x5ee363(0xb3a)])[_0x5ee363(0x1d77)][_0x5ee363(0x1cb0)](function(_0x529ec0){const _0x16a036=_0x5ee363,_0x5d27a2=_0x39641b()[_0x16a036(0x13b4)](_0x5b982c['openchannelCannedAnswers'],{'id':_0x529ec0['id']});_0x5d27a2&&_0x39641b()['merge'](_0x5d27a2,_0x39641b()[_0x16a036(0x169b)](_0x529ec0[_0x16a036(0x19b2)](),_0x39641b()[_0x16a036(0x1be5)](_0x5d27a2))),_0x1e26aa['success']({'title':_0x16a036(0x1f3d),'msg':_0x5b982c[_0x16a036(0xb3a)][_0x16a036(0x16b6)]?_0x5b982c[_0x16a036(0xb3a)][_0x16a036(0x16b6)]+_0x16a036(0xedb):''}),_0x51a115(_0x529ec0);})[_0x5ee363(0x1c4)](function(_0x2169da){const _0x2ffa15=_0x5ee363;if(_0x2169da[_0x2ffa15(0x25c)]&&_0x2169da[_0x2ffa15(0x25c)][_0x2ffa15(0x1a7c)]&&_0x2169da['data'][_0x2ffa15(0x1a7c)][_0x2ffa15(0xfd0)]){_0x5b982c[_0x2ffa15(0x1a7c)]=_0x2169da[_0x2ffa15(0x25c)][_0x2ffa15(0x1a7c)]||[{'message':_0x2169da[_0x2ffa15(0x147f)](),'type':_0x2ffa15(0x922)}];for(let _0xb67420=0x0;_0xb67420<_0x2169da[_0x2ffa15(0x25c)][_0x2ffa15(0x1a7c)][_0x2ffa15(0xfd0)];_0xb67420++){_0x1e26aa['error']({'title':_0x2169da[_0x2ffa15(0x25c)][_0x2ffa15(0x1a7c)][_0xb67420][_0x2ffa15(0x66a)],'msg':_0x2169da[_0x2ffa15(0x25c)][_0x2ffa15(0x1a7c)][_0xb67420][_0x2ffa15(0x155e)]});}}else _0x1e26aa[_0x2ffa15(0x218e)]({'title':_0x2169da[_0x2ffa15(0x291)]?_0x2ffa15(0xeb9)+_0x2169da['status']+_0x2ffa15(0x1657)+_0x2169da['statusText']:_0x2ffa15(0x922),'msg':_0x2169da[_0x2ffa15(0x25c)]?JSON[_0x2ffa15(0x2701)](_0x2169da['data'][_0x2ffa15(0x155e)]):_0x2169da[_0x2ffa15(0x147f)]()});});}function _0x3a767f(_0x5539ee){const _0x1c3108=_0x73c5cb;_0x5b982c[_0x1c3108(0x1a7c)]=[];const _0x45ff92=_0xd71e61[_0x1c3108(0x1551)]()[_0x1c3108(0x1386)](_0x1c3108(0x1a2e))['content']('The\x20openchannelCannedAnswer\x20will\x20be\x20deleted.')[_0x1c3108(0x15ad)](_0x1c3108(0x11df))['ok'](_0x1c3108(0x2594))[_0x1c3108(0x696)](_0x1c3108(0xde1))[_0x1c3108(0x728)](_0x5539ee);_0xd71e61['show'](_0x45ff92)[_0x1c3108(0x1cb0)](function(){const _0xc0dea6=_0x1c3108;_0x33c01f[_0xc0dea6(0x1c25)]['delete']({'id':_0x5b982c['openchannelCannedAnswer']['id']})[_0xc0dea6(0x1d77)][_0xc0dea6(0x1cb0)](function(){const _0x3851b5=_0xc0dea6;_0x39641b()[_0x3851b5(0x152a)](_0x5b982c[_0x3851b5(0xab5)],{'id':_0x5b982c[_0x3851b5(0xb3a)]['id']}),_0x1e26aa[_0x3851b5(0x829)]({'title':'OpenchannelCannedAnswer\x20properly\x20deleted!','msg':(_0x5b982c[_0x3851b5(0xb3a)]['name']||'openchannelCannedAnswer')+_0x3851b5(0x3f5)}),_0x51a115(_0x5b982c[_0x3851b5(0xb3a)]);})['catch'](function(_0x11d5a3){const _0x40adb7=_0xc0dea6;if(_0x11d5a3[_0x40adb7(0x25c)]&&_0x11d5a3[_0x40adb7(0x25c)][_0x40adb7(0x1a7c)]&&_0x11d5a3[_0x40adb7(0x25c)][_0x40adb7(0x1a7c)][_0x40adb7(0xfd0)]){_0x5b982c[_0x40adb7(0x1a7c)]=_0x11d5a3['data']['errors']||[{'message':_0x11d5a3[_0x40adb7(0x147f)](),'type':'api.cannedAnswer.delete'}];for(let _0x2b378a=0x0;_0x2b378a<_0x11d5a3[_0x40adb7(0x25c)][_0x40adb7(0x1a7c)][_0x40adb7(0xfd0)];_0x2b378a++){_0x1e26aa[_0x40adb7(0x218e)]({'title':_0x11d5a3[_0x40adb7(0x25c)][_0x40adb7(0x1a7c)][_0x2b378a][_0x40adb7(0x66a)],'msg':_0x11d5a3['data'][_0x40adb7(0x1a7c)][_0x2b378a][_0x40adb7(0x155e)]});}}else _0x1e26aa[_0x40adb7(0x218e)]({'title':_0x11d5a3[_0x40adb7(0x291)]?'API:'+_0x11d5a3['status']+_0x40adb7(0x1657)+_0x11d5a3['statusText']:_0x40adb7(0x1399),'msg':_0x11d5a3[_0x40adb7(0x25c)]?JSON[_0x40adb7(0x2701)](_0x11d5a3[_0x40adb7(0x25c)][_0x40adb7(0x155e)]):_0x11d5a3[_0x40adb7(0x155e)]||_0x11d5a3[_0x40adb7(0x147f)]()});});},function(){});}function _0x5487f2(_0x54f09b){return _0x54f09b===null?undefined:new Date(_0x54f09b);}function _0x51a115(_0x33b5c2){const _0x724544=_0x73c5cb;_0xd71e61[_0x724544(0x1426)](_0x33b5c2);}}const _0x4da442=_0x5d4bea;;_0x21a8cc[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),'$mdSidenav',_0x5537c6(0xcb9),'$document',_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x142b),_0x5537c6(0x9bf),'Auth'];function _0x21a8cc(_0x10f98d,_0x926bb4,_0x4cd92f,_0x4f8063,_0x3c833e,_0x1de346,_0x469986,_0x2d03a0,_0x1b609f,_0x534b57,_0x38a032){const _0x1547bd=_0x5537c6,_0x27ef20=this;_0x27ef20[_0x1547bd(0xe76)]=_0x38a032[_0x1547bd(0x21e8)](),_0x27ef20['dispositions']={'count':0x0,'rows':[]},_0x27ef20[_0x1547bd(0x122a)]=[],_0x27ef20[_0x1547bd(0x1b1a)],_0x27ef20[_0x1547bd(0x2376)]={'first':_0x1547bd(0x29a0),'second':'2nd','third':_0x1547bd(0xfbe)},_0x27ef20['query']={'fields':_0x1547bd(0x1f4b),'sort':_0x1547bd(0x282),'limit':0xa,'page':0x1},_0x27ef20['init']=_0x41eeda,_0x27ef20[_0x1547bd(0xb25)]=_0x2d6276,_0x27ef20[_0x1547bd(0x829)]=_0x376d2f,_0x27ef20[_0x1547bd(0x640)]=_0x42e542,_0x27ef20['createOrEditDisposition']=_0x3cf80b,_0x27ef20[_0x1547bd(0x20b3)]=_0x3b34f2,_0x27ef20[_0x1547bd(0x1ebf)]=_0x5aa83e,_0x27ef20[_0x1547bd(0x1626)]=_0x3c8fcd,_0x27ef20['deselectDispositions']=_0x36c5cb,_0x27ef20[_0x1547bd(0x13ff)]=_0x39a471;function _0x41eeda(_0x42a2b9,_0x4ef4c1){const _0x32fd04=_0x1547bd;_0x27ef20[_0x32fd04(0x80e)]=_0x42a2b9||{},_0x27ef20['crudPermissions']=typeof _0x4ef4c1!=='undefined'?_0x4ef4c1:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x27ef20[_0x32fd04(0xae2)][_0x32fd04(0x1d1e)]=_0x27ef20['openchannelAccount']['id'],_0x27ef20['query']['id']=_0x27ef20['openchannelAccount']['id'],_0x42e542();}function _0x3cf80b(_0xd6d81b,_0xbdaec3){const _0x1e070f=_0x1547bd;_0x3c833e['show']({'controller':_0x1e070f(0x201d),'controllerAs':'vm','templateUrl':_0x3d7049,'parent':angular[_0x1e070f(0x1853)](_0x1de346[_0x1e070f(0x1ed9)]),'targetEvent':_0xd6d81b,'clickOutsideToClose':!![],'locals':{'disposition':_0xbdaec3,'model':{'id':_0x27ef20[_0x1e070f(0x80e)]['id'],'field':_0x1e070f(0x1d1e),'route':_0x1e070f(0x80e)},'license':null,'setting':null,'crudPermissions':_0x27ef20[_0x1e070f(0x1b1a)]}})['then'](function(_0x53acd5){if(_0x53acd5)_0x42e542();});}function _0x2d6276(_0x5a401b,_0x4fcc85){const _0x26fac5=_0x1547bd,_0x48b1b0=_0x39641b()[_0x26fac5(0x727)](_0x27ef20['dispositions'][_0x26fac5(0x2214)],[_0x26fac5(0x55e),_0x5a401b['id']]),_0x5eb27b=_0x3c833e[_0x26fac5(0x1551)]()[_0x26fac5(0x1386)](_0x2d03a0[_0x26fac5(0x25cc)](_0x26fac5(0x1d64)))[_0x26fac5(0x862)](_0x2d03a0[_0x26fac5(0x25cc)](_0x26fac5(0x250b)+(_0x48b1b0?_0x26fac5(0x13cb):_0x26fac5(0x1089)),{'name':_0x5a401b[_0x26fac5(0x16b6)]}))['ariaLabel'](_0x26fac5(0x35d))[_0x26fac5(0x728)](_0x4fcc85)['ok']('OK')[_0x26fac5(0x696)](_0x2d03a0[_0x26fac5(0x25cc)](_0x26fac5(0x2768)));_0x3c833e[_0x26fac5(0xe27)](_0x5eb27b)['then'](function(){_0x3b34f2(_0x5a401b);});}function _0x376d2f(_0x41e07d){const _0x43a8c3=_0x1547bd;_0x27ef20[_0x43a8c3(0xdf2)]=_0x41e07d||{'count':0x0,'rows':[]};}function _0x42e542(){const _0x1491a3=_0x1547bd;_0x27ef20[_0x1491a3(0xae2)]['offset']=(_0x27ef20['query']['page']-0x1)*_0x27ef20[_0x1491a3(0xae2)]['limit'],_0x27ef20['promise']=_0x1b609f[_0x1491a3(0x80e)][_0x1491a3(0x640)](_0x27ef20['query'],_0x376d2f)['$promise'];}function _0x3b34f2(_0x2b5806){const _0x54c66d=_0x1547bd;_0x1b609f['disposition']['delete']({'id':_0x2b5806['id']})[_0x54c66d(0x1d77)][_0x54c66d(0x1cb0)](function(){const _0x20bc17=_0x54c66d;_0x42e542(),_0x534b57[_0x20bc17(0x829)]({'title':_0x2d03a0[_0x20bc17(0x25cc)](_0x20bc17(0x1f96))});})[_0x54c66d(0x1c4)](function(_0x1cd9db){const _0x2f1e31=_0x54c66d;if(_0x1cd9db['data']&&_0x1cd9db[_0x2f1e31(0x25c)][_0x2f1e31(0x1a7c)]&&_0x1cd9db[_0x2f1e31(0x25c)][_0x2f1e31(0x1a7c)][_0x2f1e31(0xfd0)]){_0x27ef20[_0x2f1e31(0x1a7c)]=_0x1cd9db[_0x2f1e31(0x25c)][_0x2f1e31(0x1a7c)]||[{'message':_0x1cd9db[_0x2f1e31(0x147f)](),'type':_0x2f1e31(0x2618)}];for(let _0x5d9326=0x0;_0x5d9326<_0x1cd9db[_0x2f1e31(0x25c)][_0x2f1e31(0x1a7c)]['length'];_0x5d9326++){_0x534b57['error']({'title':_0x1cd9db[_0x2f1e31(0x25c)][_0x2f1e31(0x1a7c)][_0x5d9326][_0x2f1e31(0x66a)],'msg':_0x1cd9db['data']['errors'][_0x5d9326][_0x2f1e31(0x155e)]});}}else _0x534b57['error']({'title':_0x1cd9db[_0x2f1e31(0x291)]?_0x2f1e31(0xeb9)+_0x1cd9db['status']+_0x2f1e31(0x1657)+_0x1cd9db[_0x2f1e31(0xc22)]:_0x2f1e31(0x2618),'msg':_0x1cd9db[_0x2f1e31(0x25c)]?JSON['stringify'](_0x1cd9db[_0x2f1e31(0x25c)][_0x2f1e31(0x155e)]):_0x1cd9db['message']||_0x1cd9db[_0x2f1e31(0x147f)]()});});}function _0x5aa83e(){const _0x39e520=_0x1547bd,_0x1cbc88=angular['copy'](_0x27ef20['selectedDispositions']);return _0x27ef20[_0x39e520(0x122a)]=[],_0x1cbc88;}function _0x3c8fcd(_0x2470f0){const _0x81c15=_0x1547bd,_0x17e332=_0x3c833e[_0x81c15(0x1551)]()['title'](_0x2d03a0[_0x81c15(0x25cc)](_0x81c15(0x969)))[_0x81c15(0x862)](_0x2d03a0[_0x81c15(0x25cc)](_0x81c15(0xb3c),{'total':_0x27ef20[_0x81c15(0x122a)][_0x81c15(0xfd0)]}))['ariaLabel'](_0x81c15(0x1e1c))[_0x81c15(0x728)](_0x2470f0)['ok']('OK')['cancel'](_0x2d03a0[_0x81c15(0x25cc)](_0x81c15(0x2768)));_0x3c833e[_0x81c15(0xe27)](_0x17e332)[_0x81c15(0x1cb0)](function(){const _0x380db4=_0x81c15;_0x27ef20[_0x380db4(0x122a)][_0x380db4(0xf90)](function(_0x572a86){_0x3b34f2(_0x572a86);}),_0x27ef20['selectedDispositions']=[];});}function _0x36c5cb(){const _0x2db65f=_0x1547bd;_0x27ef20[_0x2db65f(0x122a)]=[];}function _0x39a471(){const _0x1ec9a0=_0x1547bd;_0x27ef20[_0x1ec9a0(0x122a)]=_0x27ef20[_0x1ec9a0(0xdf2)]['rows'];}let _0xbac508=!![],_0x2c475c=0x1;_0x10f98d[_0x1547bd(0x614)](_0x1547bd(0xeb6),function(_0x3887a4,_0x287d0f){const _0x422081=_0x1547bd;_0xbac508?_0x469986(function(){_0xbac508=![];}):(!_0x287d0f&&(_0x2c475c=_0x27ef20['query'][_0x422081(0x1c7b)]),_0x3887a4!==_0x287d0f&&(_0x27ef20[_0x422081(0xae2)][_0x422081(0x1c7b)]=0x1),!_0x3887a4&&(_0x27ef20[_0x422081(0xae2)][_0x422081(0x1c7b)]=_0x2c475c),_0x42e542());});}const _0x567e47=_0x21a8cc;;const _0x45c631=_0x5074a3['p']+_0x5537c6(0x1c3a);;_0x551099[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),'$location',_0x5537c6(0xcb9),'$document','$translate',_0x5537c6(0x8a5),'setting',_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x80e),_0x5537c6(0x2199)];function _0x551099(_0x2bdd13,_0x585876,_0x143452,_0x317829,_0x58fafb,_0x3158f5,_0x4fcbe2,_0x29e710,_0x300834,_0x15c11c,_0x4bd531,_0x362791){const _0xf4692f=_0x5537c6,_0x18886d=this;_0x18886d['currentUser']=_0x15c11c[_0xf4692f(0x21e8)](),_0x18886d[_0xf4692f(0x8a5)]=_0x3158f5,_0x18886d[_0xf4692f(0x9ca)]=_0x4fcbe2,_0x18886d[_0xf4692f(0x1b0c)]=_0x18886d[_0xf4692f(0x9ca)][_0xf4692f(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x18886d[_0xf4692f(0x2404)]=_0x585876[_0xf4692f(0x2276)]()+_0xf4692f(0x138b)+_0x585876[_0xf4692f(0x17d8)](),_0x18886d['openchannelAccount']=_0x4bd531||_0x2bdd13[_0xf4692f(0x1dfe)][_0xf4692f(0x80e)]||{},_0x18886d[_0xf4692f(0x2199)]=_0x362791&&_0x362791[_0xf4692f(0x184d)]==0x1?_0x362791[_0xf4692f(0x2214)][0x0]:null,_0x18886d[_0xf4692f(0x1b1a)]=_0x15c11c[_0xf4692f(0x14ea)](_0x18886d[_0xf4692f(0x2199)]?_0x18886d['userProfileSection'][_0xf4692f(0x1b1a)]:null),_0x18886d[_0xf4692f(0xf4c)]={},_0x18886d['selectedTab']=_0x2bdd13[_0xf4692f(0x1dfe)]['tab']||0x0,_0x18886d[_0xf4692f(0x1379)]=_0x115f88,_0x18886d['alert']=_0x300834[_0xf4692f(0x28c7)],_0x18886d['gotoOpenchannelAccounts']=_0x34a47b,_0x18886d['saveOpenchannelAccount']=_0x505700,_0x15c11c['hasRole'](_0xf4692f(0x1c60))?_0x29e710['cmList'][_0xf4692f(0xbf7)]({'fields':_0xf4692f(0x43c),'sort':_0xf4692f(0x16b6)})[_0xf4692f(0x1d77)]['then'](function(_0x23e578){const _0x14665f=_0xf4692f;_0x18886d[_0x14665f(0x1046)]=_0x23e578['rows']||[];})[_0xf4692f(0x1c4)](function(_0x31227e){const _0x29e394=_0xf4692f;_0x300834['error']({'title':_0x31227e[_0x29e394(0x291)]?_0x29e394(0xeb9)+_0x31227e[_0x29e394(0x291)]+_0x29e394(0x1657)+_0x31227e[_0x29e394(0xc22)]:_0x29e394(0x149e),'msg':_0x31227e[_0x29e394(0x25c)]?JSON[_0x29e394(0x2701)](_0x31227e[_0x29e394(0x25c)]):_0x31227e[_0x29e394(0x147f)]()});}):_0x29e710[_0xf4692f(0x22f2)]['get']({'fields':_0xf4692f(0x43c),'sort':_0xf4692f(0x16b6)})[_0xf4692f(0x1d77)][_0xf4692f(0x1cb0)](function(_0x52326e){const _0x12af72=_0xf4692f;_0x18886d['lists']=_0x52326e[_0x12af72(0x2214)]||[];})[_0xf4692f(0x1cb0)](function(){const _0x456128=_0xf4692f;return _0x29e710['userProfileSection'][_0x456128(0xbf7)]({'userProfileId':_0x18886d[_0x456128(0xe76)][_0x456128(0x13c1)],'sectionId':0x12d})['$promise'];})[_0xf4692f(0x1cb0)](function(_0x6b41fb){const _0x44bbca=_0xf4692f,_0x14347a=_0x6b41fb&&_0x6b41fb[_0x44bbca(0x2214)]?_0x6b41fb[_0x44bbca(0x2214)][0x0]:null;if(!_0x14347a){const _0x5dcf3c=[];let _0x4bda27=null;_0x18886d[_0x44bbca(0x80e)]&&(_0x4bda27=_0x39641b()['find'](_0x18886d['lists'],{'id':Number(_0x18886d[_0x44bbca(0x80e)][_0x44bbca(0x20a6)])}));for(let _0x5acec3=0x0;_0x5acec3<_0x18886d[_0x44bbca(0x1046)]['length'];_0x5acec3++){_0x4bda27&&_0x18886d['lists'][_0x5acec3]['id']===_0x4bda27['id']&&(_0x18886d[_0x44bbca(0x1046)][_0x5acec3]['canSelect']=![],_0x5dcf3c[_0x44bbca(0x2785)](_0x18886d['lists'][_0x5acec3]));}_0x18886d[_0x44bbca(0x1046)]=_0x5dcf3c;}else{if(!_0x14347a[_0x44bbca(0x12f4)])return _0x29e710['userProfileResource'][_0x44bbca(0xbf7)]({'sectionId':_0x14347a['id']})['$promise'][_0x44bbca(0x1cb0)](function(_0x268b83){const _0x59e447=_0x44bbca,_0x14a3c2=_0x39641b()[_0x59e447(0x1de2)](_0x268b83[_0x59e447(0x2214)],function(_0x266cdd){const _0x4e8573=_0x59e447;return _0x39641b()['find'](_0x18886d[_0x4e8573(0x1046)],{'id':_0x266cdd['resourceId']});});let _0x82c4ed=null;_0x18886d[_0x59e447(0x80e)]&&(_0x82c4ed=_0x39641b()[_0x59e447(0x13b4)](_0x18886d[_0x59e447(0x1046)],{'id':Number(_0x18886d[_0x59e447(0x80e)]['ListId'])}));if(_0x82c4ed&&!_0x39641b()[_0x59e447(0x727)](_0x14a3c2,['id',_0x82c4ed['id']])){const _0x1e676a=_0x39641b()['find'](_0x18886d[_0x59e447(0x1046)],{'id':_0x82c4ed['id']});_0x1e676a['canSelect']=![],_0x14a3c2[_0x59e447(0x2785)](_0x1e676a);}_0x18886d['lists']=_0x14a3c2;});}})[_0xf4692f(0x1c4)](function(_0x2e089b){const _0x5254bf=_0xf4692f;_0x300834[_0x5254bf(0x218e)]({'title':_0x2e089b[_0x5254bf(0x291)]?_0x5254bf(0xeb9)+_0x2e089b[_0x5254bf(0x291)]+_0x5254bf(0x1657)+_0x2e089b['statusText']:_0x5254bf(0x113c),'msg':_0x2e089b[_0x5254bf(0x25c)]?JSON[_0x5254bf(0x2701)](_0x2e089b[_0x5254bf(0x25c)]):_0x2e089b[_0x5254bf(0x147f)]()});}),_0x29e710[_0xf4692f(0xbe7)][_0xf4692f(0x1e57)]({'id':_0x18886d['openchannelAccount'][_0xf4692f(0x20a6)]})[_0xf4692f(0x1d77)]['then'](function(_0x5456c4){const _0x381925=_0xf4692f;_0x18886d['fields']=[],_0x5456c4=_0x39641b()[_0x381925(0x27aa)](_0x5456c4[_0x381925(0x19b2)]());const _0x4e4be2=['id',_0x381925(0x24cb),_0x381925(0x27ba),_0x381925(0x16a1),'scheduledat','ListId',_0x381925(0x27ac)];for(let _0x1f075d=0x0;_0x1f075d<_0x5456c4['length'];_0x1f075d++){!_0x39641b()[_0x381925(0x250a)](_0x4e4be2,_0x5456c4[_0x1f075d][_0x381925(0x34f)])&&_0x18886d[_0x381925(0x355)][_0x381925(0x2785)](_0x5456c4[_0x1f075d]);}})[_0xf4692f(0x1c4)](function(_0x2dbd74){const _0x35a4fa=_0xf4692f;_0x300834[_0x35a4fa(0x218e)]({'title':_0x2dbd74['status']?_0x35a4fa(0xeb9)+_0x2dbd74[_0x35a4fa(0x291)]+_0x35a4fa(0x1657)+_0x2dbd74['statusText']:'SYSTEM:GET_FIELDS','msg':_0x2dbd74['data']?JSON[_0x35a4fa(0x2701)](_0x2dbd74[_0x35a4fa(0x25c)]):_0x2dbd74['toString']()});}),_0x15c11c[_0xf4692f(0x22b6)](_0xf4692f(0x1c60))?_0x29e710['pause']['get']({'fields':_0xf4692f(0x791),'sort':_0xf4692f(0x16b6),'nolimit':'true'})[_0xf4692f(0x1d77)][_0xf4692f(0x1cb0)](function(_0x1f8b43){const _0x986e4b=_0xf4692f;_0x18886d[_0x986e4b(0x8de)]=_0x1f8b43['rows']||[];})[_0xf4692f(0x1c4)](function(_0x22a457){const _0x469753=_0xf4692f;_0x300834['error']({'title':_0x22a457[_0x469753(0x291)]?_0x469753(0xeb9)+_0x22a457['status']+_0x469753(0x1657)+_0x22a457[_0x469753(0xc22)]:_0x469753(0x1589),'msg':_0x22a457['data']?JSON[_0x469753(0x2701)](_0x22a457[_0x469753(0x25c)]):_0x22a457[_0x469753(0x147f)]()});}):_0x29e710[_0xf4692f(0x785)][_0xf4692f(0xbf7)]({'fields':_0xf4692f(0x791),'sort':_0xf4692f(0x16b6),'nolimit':_0xf4692f(0x44d)})[_0xf4692f(0x1d77)][_0xf4692f(0x1cb0)](function(_0x2ec277){const _0x58bd4b=_0xf4692f;_0x18886d[_0x58bd4b(0x8de)]=_0x2ec277[_0x58bd4b(0x2214)]||[];})[_0xf4692f(0x1cb0)](function(){const _0x38ace0=_0xf4692f;return _0x29e710[_0x38ace0(0x2199)][_0x38ace0(0xbf7)]({'userProfileId':_0x18886d[_0x38ace0(0xe76)][_0x38ace0(0x13c1)],'sectionId':0x3ed})[_0x38ace0(0x1d77)];})[_0xf4692f(0x1cb0)](function(_0x25e1f1){const _0x268cb4=_0xf4692f,_0x176685=_0x25e1f1&&_0x25e1f1[_0x268cb4(0x2214)]?_0x25e1f1[_0x268cb4(0x2214)][0x0]:null;if(!_0x176685)_0x18886d[_0x268cb4(0x8de)]=[];else{if(!_0x176685[_0x268cb4(0x12f4)])return _0x29e710[_0x268cb4(0x1198)][_0x268cb4(0xbf7)]({'sectionId':_0x176685['id']})[_0x268cb4(0x1d77)][_0x268cb4(0x1cb0)](function(_0x2f802f){const _0x2eed2f=_0x268cb4,_0xbc3d14=_0x39641b()[_0x2eed2f(0x1de2)](_0x2f802f['rows'],function(_0x50934a){const _0x24b3f9=_0x2eed2f;return _0x39641b()[_0x24b3f9(0x13b4)](_0x18886d[_0x24b3f9(0x8de)],{'id':_0x50934a[_0x24b3f9(0x2982)]});});_0x18886d[_0x2eed2f(0x8de)][_0x2eed2f(0xf90)](function(_0x2a6a41){const _0x4155b3=_0x2eed2f;!_0x39641b()[_0x4155b3(0x727)](_0xbc3d14,['id',_0x2a6a41['id']])&&(_0x2a6a41[_0x4155b3(0x15da)]=![]),_0xbc3d14[_0x4155b3(0x2785)](_0x2a6a41);}),_0x18886d[_0x2eed2f(0x8de)]=_0xbc3d14;});}})[_0xf4692f(0x1c4)](function(_0x3345e6){const _0x5c822f=_0xf4692f;_0x300834[_0x5c822f(0x218e)]({'title':_0x3345e6[_0x5c822f(0x291)]?'API:'+_0x3345e6[_0x5c822f(0x291)]+_0x5c822f(0x1657)+_0x3345e6[_0x5c822f(0xc22)]:_0x5c822f(0x162),'msg':_0x3345e6[_0x5c822f(0x25c)]?JSON['stringify'](_0x3345e6['data']):_0x3345e6[_0x5c822f(0x147f)]()});});function _0x115f88(_0x1e2535,_0x586416){const _0x40ab1a=_0xf4692f;_0x143452[_0x40ab1a(0xe27)]({'controller':_0x40ab1a(0xac9),'controllerAs':'vm','templateUrl':_0x45c631,'parent':angular[_0x40ab1a(0x1853)](_0x317829['body']),'targetEvent':_0x586416,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x1e2535,'openchannelAccounts':_0x18886d[_0x40ab1a(0xe5c)]?_0x18886d['openchannelAccounts'][_0x40ab1a(0x2214)]:[],'crudPermissions':_0x18886d[_0x40ab1a(0x1b1a)],'realtime':![]}});}function _0x34a47b(){const _0x1f0ff5=_0xf4692f;_0x2bdd13['go'](_0x1f0ff5(0x21d2),{},{'reload':'app.openchannel.openchannelAccounts'});}function _0x505700(){const _0x1c2936=_0xf4692f;_0x29e710[_0x1c2936(0x80e)]['update']({'id':_0x18886d[_0x1c2936(0x80e)]['id']},_0x18886d[_0x1c2936(0x80e)])['$promise'][_0x1c2936(0x1cb0)](function(){const _0x168efd=_0x1c2936;_0x300834[_0x168efd(0x829)]({'title':_0x168efd(0x834),'msg':_0x18886d[_0x168efd(0x80e)][_0x168efd(0x16b6)]?_0x18886d[_0x168efd(0x80e)][_0x168efd(0x16b6)]+'\x20has\x20been\x20updated!':''});})[_0x1c2936(0x1c4)](function(_0x3c74c1){const _0x29f2c6=_0x1c2936;_0x300834['error']({'title':_0x3c74c1[_0x29f2c6(0x291)]?_0x29f2c6(0xeb9)+_0x3c74c1[_0x29f2c6(0x291)]+'\x20-\x20'+_0x3c74c1[_0x29f2c6(0xc22)]:_0x29f2c6(0x78b),'msg':_0x3c74c1[_0x29f2c6(0x25c)]?JSON['stringify'](_0x3c74c1['data']):_0x3c74c1[_0x29f2c6(0x147f)]()});});}}const _0x590efa=_0x551099;;const _0x481dc6=_0x5074a3['p']+_0x5537c6(0x25b7);;_0x17faa9[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x2168),'$translate',_0x5537c6(0xe5c),_0x5537c6(0x44a),'userProfileSection','api',_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x17faa9(_0x376b8e,_0x70aeb6,_0x27e0ae,_0x537443,_0x494fdf,_0x16075f,_0x439299,_0x4a0fc1,_0x46ddec,_0x29f880,_0x56893e,_0x547949,_0x26ec01,_0x5f6ae5,_0x35676,_0x25fbfe,_0x5d222f){const _0x56a159=_0x5537c6,_0x5ce602=this;_0x5ce602[_0x56a159(0x8a5)]=_0x25fbfe,_0x5ce602[_0x56a159(0x9ca)]=_0x5d222f,_0x5ce602[_0x56a159(0xe76)]=_0x35676['getCurrentUser'](),_0x5ce602['openchannelAccounts']=_0x46ddec||{'count':0x0,'rows':[]},_0x5ce602[_0x56a159(0x44a)]=_0x29f880,_0x5ce602[_0x56a159(0x2199)]=_0x56893e&&_0x56893e[_0x56a159(0x184d)]==0x1?_0x56893e['rows'][0x0]:null,_0x5ce602[_0x56a159(0x1b1a)]=_0x35676['parseCrudPermissions'](_0x5ce602[_0x56a159(0x2199)]?_0x5ce602[_0x56a159(0x2199)]['crudPermissions']:null),_0x5ce602[_0x56a159(0xc83)]=_0x56a159(0xe5c),_0x5ce602[_0x56a159(0x1d20)]='',_0x5ce602[_0x56a159(0x1cdf)]=null,_0x5ce602[_0x56a159(0x244f)]=[],_0x5ce602[_0x56a159(0xae2)]={'fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':'-updatedAt','limit':0xa,'page':0x1},_0x5ce602['editstate']=_0x27b86e,_0x5ce602[_0x56a159(0x1552)]=_0x157ec5,_0x5ce602[_0x56a159(0x1379)]=_0x3ce288,_0x5ce602[_0x56a159(0x27fe)]=_0x33e846,_0x5ce602['success']=_0x410b19,_0x5ce602[_0x56a159(0x29c4)]=_0xd75c64,_0x5ce602[_0x56a159(0x1be8)]=_0x13b1bf,_0x5ce602[_0x56a159(0xf8b)]=_0x14561d,_0x5ce602['exportSelectedOpenchannelAccounts']=_0x31e7a4,_0x5ce602['deleteSelectedOpenchannelAccounts']=_0x5edf7f,_0x5ce602[_0x56a159(0x9da)]=_0x189bdf,_0x5ce602[_0x56a159(0x22cb)]=_0x7a5d1d,_0x35676[_0x56a159(0x22b6)](_0x56a159(0x1c60))?_0x547949[_0x56a159(0x22f2)][_0x56a159(0xbf7)]({'fields':_0x56a159(0x43c),'sort':_0x56a159(0x16b6)})[_0x56a159(0x1d77)][_0x56a159(0x1cb0)](function(_0x1dd2e9){const _0x34198c=_0x56a159;_0x5ce602['lists']=_0x1dd2e9[_0x34198c(0x2214)]||[];})[_0x56a159(0x1c4)](function(_0x2b8b03){const _0x3c3539=_0x56a159;_0x5f6ae5[_0x3c3539(0x218e)]({'title':_0x2b8b03['status']?_0x3c3539(0xeb9)+_0x2b8b03[_0x3c3539(0x291)]+_0x3c3539(0x1657)+_0x2b8b03[_0x3c3539(0xc22)]:_0x3c3539(0x149e),'msg':_0x2b8b03[_0x3c3539(0x25c)]?JSON['stringify'](_0x2b8b03[_0x3c3539(0x25c)]):_0x2b8b03[_0x3c3539(0x147f)]()});}):_0x547949[_0x56a159(0x22f2)][_0x56a159(0xbf7)]({'fields':_0x56a159(0x43c),'sort':'name'})['$promise'][_0x56a159(0x1cb0)](function(_0x504a46){const _0x5da25c=_0x56a159;_0x5ce602['lists']=_0x504a46[_0x5da25c(0x2214)]||[];})[_0x56a159(0x1cb0)](function(){const _0x5d861f=_0x56a159;return _0x547949['userProfileSection'][_0x5d861f(0xbf7)]({'userProfileId':_0x5ce602[_0x5d861f(0xe76)]['userProfileId'],'sectionId':0x12d})[_0x5d861f(0x1d77)];})[_0x56a159(0x1cb0)](function(_0x2de0d2){const _0x3eb81b=_0x56a159,_0xe6496f=_0x2de0d2&&_0x2de0d2[_0x3eb81b(0x2214)]?_0x2de0d2['rows'][0x0]:null;if(!_0xe6496f){const _0x2fed42=[];let _0x2ab312=null;_0x5ce602['openchannelAccount']&&(_0x2ab312=_0x39641b()[_0x3eb81b(0x13b4)](_0x5ce602[_0x3eb81b(0x1046)],{'id':Number(_0x5ce602[_0x3eb81b(0x80e)][_0x3eb81b(0x20a6)])}));for(let _0x46dd1d=0x0;_0x46dd1d<_0x5ce602['lists'][_0x3eb81b(0xfd0)];_0x46dd1d++){_0x2ab312&&_0x5ce602[_0x3eb81b(0x1046)][_0x46dd1d]['id']===_0x2ab312['id']&&(_0x5ce602['lists'][_0x46dd1d][_0x3eb81b(0x15da)]=![],_0x2fed42[_0x3eb81b(0x2785)](_0x5ce602[_0x3eb81b(0x1046)][_0x46dd1d]));}_0x5ce602[_0x3eb81b(0x1046)]=_0x2fed42;}else{if(!_0xe6496f[_0x3eb81b(0x12f4)])return _0x547949[_0x3eb81b(0x1198)][_0x3eb81b(0xbf7)]({'sectionId':_0xe6496f['id']})[_0x3eb81b(0x1d77)]['then'](function(_0x134b47){const _0x273f20=_0x3eb81b,_0x4fca19=_0x39641b()['map'](_0x134b47['rows'],function(_0x39af3a){const _0xe5214e=a0_0x5cbd;return _0x39641b()['find'](_0x5ce602[_0xe5214e(0x1046)],{'id':_0x39af3a[_0xe5214e(0x2982)]});});let _0x38e27d=null;_0x5ce602[_0x273f20(0x80e)]&&(_0x38e27d=_0x39641b()[_0x273f20(0x13b4)](_0x5ce602[_0x273f20(0x1046)],{'id':Number(_0x5ce602[_0x273f20(0x80e)][_0x273f20(0x20a6)])}));if(_0x38e27d&&!_0x39641b()[_0x273f20(0x727)](_0x4fca19,['id',_0x38e27d['id']])){const _0x12e562=_0x39641b()[_0x273f20(0x13b4)](_0x5ce602[_0x273f20(0x1046)],{'id':_0x38e27d['id']});_0x12e562[_0x273f20(0x15da)]=![],_0x4fca19[_0x273f20(0x2785)](_0x12e562);}_0x5ce602['lists']=_0x4fca19;});}})['catch'](function(_0x2c6cb7){const _0x5c210b=_0x56a159;_0x5f6ae5[_0x5c210b(0x218e)]({'title':_0x2c6cb7[_0x5c210b(0x291)]?_0x5c210b(0xeb9)+_0x2c6cb7[_0x5c210b(0x291)]+_0x5c210b(0x1657)+_0x2c6cb7[_0x5c210b(0xc22)]:_0x5c210b(0x113c),'msg':_0x2c6cb7[_0x5c210b(0x25c)]?JSON[_0x5c210b(0x2701)](_0x2c6cb7[_0x5c210b(0x25c)]):_0x2c6cb7['toString']()});});function _0x27b86e(_0x2e13df){const _0x59fd15=_0x56a159;_0x27e0ae['go'](_0x59fd15(0x1f01),{'id':_0x2e13df['id'],'openchannelAccount':_0x2e13df,'crudPermissions':_0x5ce602[_0x59fd15(0x1b1a)]});}function _0x157ec5(_0x4b6305){const _0x4c14f5=_0x56a159;_0x27e0ae['go'](_0x4c14f5(0x1f01),{'id':_0x4b6305['id'],'tab':0x5});}function _0x3ce288(_0x4d9d79,_0x5d9b41){const _0x467924=_0x56a159;_0x494fdf[_0x467924(0xe27)]({'controller':'OpenchannelAccountagentaddController','controllerAs':'vm','templateUrl':_0x45c631,'parent':angular[_0x467924(0x1853)](_0x16075f[_0x467924(0x1ed9)]),'targetEvent':_0x5d9b41,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x4d9d79,'openchannelAccounts':_0x5ce602[_0x467924(0xe5c)]?_0x5ce602[_0x467924(0xe5c)][_0x467924(0x2214)]:[],'crudPermissions':_0x5ce602[_0x467924(0x1b1a)],'realtime':![]}});}function _0x33e846(_0x2a73b3,_0x163bc2){const _0x2fc3e2=_0x56a159,_0x2f6887=_0x494fdf['confirm']()[_0x2fc3e2(0x1386)](_0x2fc3e2(0x140b)+_0x39641b()[_0x2fc3e2(0xa75)](_0x2fc3e2(0x80e))+'?')[_0x2fc3e2(0x49e)](_0x2fc3e2(0x204d)+(_0x2a73b3[_0x2fc3e2(0x16b6)]||_0x2fc3e2(0x80e))+''+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x2fc3e2(0x22a4))[_0x2fc3e2(0x728)](_0x163bc2)['ok']('OK')['cancel'](_0x2fc3e2(0x24ba));_0x494fdf[_0x2fc3e2(0xe27)](_0x2f6887)['then'](function(){_0x14561d(_0x2a73b3);},function(){const _0x9c6954=_0x2fc3e2;console[_0x9c6954(0x1b4f)](_0x9c6954(0x24ba));});}let _0x3156da=!![],_0x34801b=0x1;_0x376b8e[_0x56a159(0x614)](_0x56a159(0x957),function(_0x36f49d,_0x10e43a){const _0x2be594=_0x56a159;_0x3156da?_0x439299(function(){_0x3156da=![];}):(!_0x10e43a&&(_0x34801b=_0x5ce602[_0x2be594(0xae2)]['page']),_0x36f49d!==_0x10e43a&&(_0x5ce602['query'][_0x2be594(0x1c7b)]=0x1),!_0x36f49d&&(_0x5ce602[_0x2be594(0xae2)][_0x2be594(0x1c7b)]=_0x34801b),_0x5ce602['getOpenchannelAccounts']());});function _0x410b19(_0x3d2d6e){_0x5ce602['openchannelAccounts']=_0x3d2d6e||{'count':0x0,'rows':[]};}function _0xd75c64(){const _0x27cfb6=_0x56a159;_0x5ce602[_0x27cfb6(0xae2)][_0x27cfb6(0x184b)]=(_0x5ce602[_0x27cfb6(0xae2)][_0x27cfb6(0x1c7b)]-0x1)*_0x5ce602[_0x27cfb6(0xae2)]['limit'],_0x35676[_0x27cfb6(0x22b6)]('admin')?_0x5ce602[_0x27cfb6(0x2061)]=_0x547949[_0x27cfb6(0x80e)]['get'](_0x5ce602['query'],_0x410b19)[_0x27cfb6(0x1d77)]:(_0x5ce602['query']['id']=_0x5ce602[_0x27cfb6(0x44a)]['id'],_0x5ce602[_0x27cfb6(0xae2)][_0x27cfb6(0x1f74)]=_0x27cfb6(0x1864),_0x5ce602[_0x27cfb6(0x2061)]=_0x547949[_0x27cfb6(0x44a)][_0x27cfb6(0x1810)](_0x5ce602[_0x27cfb6(0xae2)],_0x410b19)[_0x27cfb6(0x1d77)]);}function _0x13b1bf(_0x5f2def,_0x5a049b){const _0x16bcd6=_0x56a159;_0x494fdf[_0x16bcd6(0xe27)]({'controller':_0x16bcd6(0x11f5),'controllerAs':'vm','templateUrl':_0x481dc6,'parent':angular['element'](_0x16075f['body']),'targetEvent':_0x5f2def,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x5a049b,'openchannelAccounts':_0x5ce602[_0x16bcd6(0xe5c)]['rows'],'license':_0x5ce602['license'],'setting':_0x5ce602[_0x16bcd6(0x9ca)],'crudPermissions':_0x5ce602[_0x16bcd6(0x1b1a)]}});}function _0x14561d(_0x544eae){const _0x5d772d=_0x56a159;_0x547949[_0x5d772d(0x80e)][_0x5d772d(0x111d)]({'id':_0x544eae['id']})[_0x5d772d(0x1d77)][_0x5d772d(0x1cb0)](function(){const _0x34ef25=_0x5d772d;_0x39641b()[_0x34ef25(0x152a)](_0x5ce602[_0x34ef25(0xe5c)]['rows'],{'id':_0x544eae['id']}),_0x5ce602[_0x34ef25(0xe5c)][_0x34ef25(0x184d)]-=0x1,!_0x5ce602[_0x34ef25(0xe5c)][_0x34ef25(0x2214)][_0x34ef25(0xfd0)]&&_0x5ce602[_0x34ef25(0x29c4)](),_0x5f6ae5[_0x34ef25(0x829)]({'title':_0x39641b()[_0x34ef25(0xa75)](_0x34ef25(0x26f7))+_0x34ef25(0x2663),'msg':_0x544eae[_0x34ef25(0x16b6)]?_0x544eae[_0x34ef25(0x16b6)]+_0x34ef25(0x3f5):''});})[_0x5d772d(0x1c4)](function(_0x1c8b57){const _0x25318e=_0x5d772d;if(_0x1c8b57[_0x25318e(0x25c)]&&_0x1c8b57[_0x25318e(0x25c)][_0x25318e(0x1a7c)]&&_0x1c8b57[_0x25318e(0x25c)]['errors']['length']){_0x5ce602['errors']=_0x1c8b57[_0x25318e(0x25c)][_0x25318e(0x1a7c)]||[{'message':_0x1c8b57[_0x25318e(0x147f)](),'type':_0x25318e(0x10c1)}];for(let _0x2c1084=0x0;_0x2c1084<_0x1c8b57[_0x25318e(0x25c)][_0x25318e(0x1a7c)][_0x25318e(0xfd0)];_0x2c1084++){_0x5f6ae5[_0x25318e(0x218e)]({'title':_0x1c8b57[_0x25318e(0x25c)]['errors'][_0x2c1084][_0x25318e(0x66a)],'msg':_0x1c8b57[_0x25318e(0x25c)][_0x25318e(0x1a7c)][_0x2c1084][_0x25318e(0x155e)]});}}else _0x5f6ae5[_0x25318e(0x218e)]({'title':_0x1c8b57[_0x25318e(0x291)]?_0x25318e(0xeb9)+_0x1c8b57[_0x25318e(0x291)]+_0x25318e(0x1657)+_0x1c8b57[_0x25318e(0xc22)]:_0x25318e(0x10c1),'msg':_0x1c8b57[_0x25318e(0x25c)]?JSON[_0x25318e(0x2701)](_0x1c8b57[_0x25318e(0x25c)][_0x25318e(0x155e)]):_0x1c8b57[_0x25318e(0x155e)]||_0x1c8b57['toString']()});});}function _0x31e7a4(){const _0x34117c=_0x56a159,_0x5b4cac=angular[_0x34117c(0x17fe)](_0x5ce602[_0x34117c(0x244f)]);return _0x5ce602[_0x34117c(0x244f)]=[],_0x5b4cac;}function _0x5edf7f(_0x22a172){const _0x52656e=_0x56a159,_0x4c3765=_0x494fdf['confirm']()[_0x52656e(0x1386)](_0x52656e(0x7ff))[_0x52656e(0x49e)](_0x52656e(0x204d)+_0x5ce602[_0x52656e(0x244f)][_0x52656e(0xfd0)]+_0x52656e(0x1d6c)+_0x52656e(0x1b6))[_0x52656e(0x15ad)]('delete\x20OpenchannelAccounts')[_0x52656e(0x728)](_0x22a172)['ok']('OK')[_0x52656e(0x696)](_0x52656e(0x24ba));_0x494fdf[_0x52656e(0xe27)](_0x4c3765)['then'](function(){const _0x7ffe2c=_0x52656e;_0x5ce602[_0x7ffe2c(0x244f)]['forEach'](function(_0x13d2ef){_0x14561d(_0x13d2ef);}),_0x5ce602[_0x7ffe2c(0x244f)]=[];});}function _0x189bdf(){_0x5ce602['selectedOpenchannelAccounts']=[];}function _0x7a5d1d(){const _0x167b9d=_0x56a159;_0x5ce602[_0x167b9d(0x244f)]=_0x5ce602[_0x167b9d(0xe5c)][_0x167b9d(0x2214)];}}const _0xb9dca=_0x17faa9;;_0x149ca2[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q','$translate','toasty',_0x5537c6(0x1c95),'openchannelQueue',_0x5537c6(0x142b),_0x5537c6(0x1774),'license',_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x149ca2(_0x7f0ed1,_0x471f57,_0x4ac36a,_0x2901fa,_0xeabfc7,_0x4164a6,_0x1a38dd,_0x116596,_0x3693e5,_0x1b975d,_0xa4cd67,_0x37e3aa,_0x50181f,_0x2f3fa9){const _0x16fc2d=_0x5537c6,_0x2f5ad9=this;_0x2f5ad9['currentUser']=_0xa4cd67[_0x16fc2d(0x21e8)](),_0x2f5ad9[_0x16fc2d(0x1a7c)]=[],_0x2f5ad9[_0x16fc2d(0x9ca)]=_0x50181f,_0x2f5ad9[_0x16fc2d(0x8a5)]=_0x37e3aa,_0x2f5ad9['crudPermissions']=_0x2f3fa9,_0x2f5ad9[_0x16fc2d(0xf4c)]={},_0x2f5ad9[_0x16fc2d(0x1b0c)]=_0x2f5ad9[_0x16fc2d(0x9ca)]&&_0x2f5ad9['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2f5ad9[_0x16fc2d(0x1386)]=_0x16fc2d(0xa19),_0x2f5ad9['openchannelQueue']=angular['copy'](_0x3693e5),_0x2f5ad9[_0x16fc2d(0x1c95)]=_0x116596,_0x2f5ad9[_0x16fc2d(0x77a)]=![];!_0x2f5ad9[_0x16fc2d(0x3a9)]&&(_0x2f5ad9[_0x16fc2d(0x3a9)]={'strategy':'beepall','timeout':0xa},_0x2f5ad9[_0x16fc2d(0x1386)]=_0x16fc2d(0x842),_0x2f5ad9['newOpenchannelQueue']=!![]);_0x2f5ad9[_0x16fc2d(0x1921)]=_0x3e9656,_0x2f5ad9[_0x16fc2d(0xe3e)]=_0x1a93ac,_0x2f5ad9['deleteOpenchannelQueue']=_0x23ac4d,_0x2f5ad9['getDateFromString']=_0x45e8aa,_0x2f5ad9[_0x16fc2d(0xda0)]=_0x53a4d3;function _0x3e9656(){const _0x48d8f0=_0x16fc2d;_0x2f5ad9[_0x48d8f0(0x1a7c)]=[],_0x1b975d[_0x48d8f0(0x3a9)][_0x48d8f0(0x1c3f)](_0x2f5ad9[_0x48d8f0(0x3a9)])[_0x48d8f0(0x1d77)][_0x48d8f0(0x1cb0)](function(_0x30201b){const _0x11094b=_0x48d8f0;_0x2f5ad9[_0x11094b(0x1c95)][_0x11094b(0xf63)](_0x30201b[_0x11094b(0x19b2)]()),_0x1a38dd[_0x11094b(0x829)]({'title':_0x11094b(0x291a),'msg':_0x2f5ad9[_0x11094b(0x3a9)]['name']?_0x2f5ad9[_0x11094b(0x3a9)][_0x11094b(0x16b6)]+_0x11094b(0x470):''}),_0x53a4d3(_0x30201b);})[_0x48d8f0(0x1c4)](function(_0x34c52f){const _0x2e9a15=_0x48d8f0;if(_0x34c52f[_0x2e9a15(0x25c)]&&_0x34c52f[_0x2e9a15(0x25c)]['errors']&&_0x34c52f[_0x2e9a15(0x25c)]['errors'][_0x2e9a15(0xfd0)]){_0x2f5ad9[_0x2e9a15(0x1a7c)]=_0x34c52f[_0x2e9a15(0x25c)]['errors']||[{'message':_0x34c52f[_0x2e9a15(0x147f)](),'type':_0x2e9a15(0x1391)}];for(let _0x38e879=0x0;_0x38e879<_0x34c52f[_0x2e9a15(0x25c)][_0x2e9a15(0x1a7c)][_0x2e9a15(0xfd0)];_0x38e879+=0x1){_0x1a38dd['error']({'title':_0x34c52f[_0x2e9a15(0x25c)][_0x2e9a15(0x1a7c)][_0x38e879][_0x2e9a15(0x66a)],'msg':_0x34c52f['data']['errors'][_0x38e879][_0x2e9a15(0x155e)]});}}else _0x1a38dd['error']({'title':_0x34c52f[_0x2e9a15(0x291)]?'API:'+_0x34c52f[_0x2e9a15(0x291)]+'\x20-\x20'+_0x34c52f[_0x2e9a15(0xc22)]:_0x2e9a15(0x1391),'msg':_0x34c52f[_0x2e9a15(0x25c)]?JSON[_0x2e9a15(0x2701)](_0x34c52f[_0x2e9a15(0x25c)][_0x2e9a15(0x155e)]):_0x34c52f[_0x2e9a15(0x147f)]()});});}function _0x1a93ac(){const _0x24e896=_0x16fc2d;_0x2f5ad9[_0x24e896(0x1a7c)]=[],_0x1b975d[_0x24e896(0x3a9)][_0x24e896(0x687)]({'id':_0x2f5ad9[_0x24e896(0x3a9)]['id']},_0x2f5ad9[_0x24e896(0x3a9)])[_0x24e896(0x1d77)][_0x24e896(0x1cb0)](function(_0x2b2568){const _0x2a5171=_0x24e896,_0x3d56c0=_0x39641b()[_0x2a5171(0x13b4)](_0x2f5ad9[_0x2a5171(0x1c95)],{'id':_0x2b2568['id']});_0x3d56c0&&_0x39641b()[_0x2a5171(0x9c1)](_0x3d56c0,_0x39641b()[_0x2a5171(0x169b)](_0x2b2568[_0x2a5171(0x19b2)](),_0x39641b()[_0x2a5171(0x1be5)](_0x3d56c0))),_0x1a38dd['success']({'title':_0x2a5171(0xfcb),'msg':_0x2f5ad9[_0x2a5171(0x3a9)][_0x2a5171(0x16b6)]?_0x2f5ad9['openchannelQueue'][_0x2a5171(0x16b6)]+_0x2a5171(0xedb):''}),_0x53a4d3(_0x2b2568);})[_0x24e896(0x1c4)](function(_0x3f5f03){const _0x5eee0a=_0x24e896;if(_0x3f5f03[_0x5eee0a(0x25c)]&&_0x3f5f03[_0x5eee0a(0x25c)][_0x5eee0a(0x1a7c)]&&_0x3f5f03[_0x5eee0a(0x25c)]['errors']['length']){_0x2f5ad9[_0x5eee0a(0x1a7c)]=_0x3f5f03['data'][_0x5eee0a(0x1a7c)]||[{'message':_0x3f5f03[_0x5eee0a(0x147f)](),'type':_0x5eee0a(0x1181)}];for(let _0x4d322f=0x0;_0x4d322f<_0x3f5f03[_0x5eee0a(0x25c)][_0x5eee0a(0x1a7c)]['length'];_0x4d322f++){_0x1a38dd[_0x5eee0a(0x218e)]({'title':_0x3f5f03[_0x5eee0a(0x25c)]['errors'][_0x4d322f][_0x5eee0a(0x66a)],'msg':_0x3f5f03[_0x5eee0a(0x25c)][_0x5eee0a(0x1a7c)][_0x4d322f][_0x5eee0a(0x155e)]});}}else _0x1a38dd['error']({'title':_0x3f5f03[_0x5eee0a(0x291)]?_0x5eee0a(0xeb9)+_0x3f5f03[_0x5eee0a(0x291)]+_0x5eee0a(0x1657)+_0x3f5f03[_0x5eee0a(0xc22)]:_0x5eee0a(0x1181),'msg':_0x3f5f03['data']?JSON['stringify'](_0x3f5f03['data'][_0x5eee0a(0x155e)]):_0x3f5f03['toString']()});});}function _0x23ac4d(_0x4892d2){const _0x2cd673=_0x16fc2d;_0x2f5ad9[_0x2cd673(0x1a7c)]=[];const _0x47d216=_0x2901fa[_0x2cd673(0x1551)]()[_0x2cd673(0x1386)](_0x2cd673(0x1a2e))['content']('The\x20openchannelQueue\x20will\x20be\x20deleted.')['ariaLabel'](_0x2cd673(0x1420))['ok'](_0x2cd673(0x2594))['cancel']('Cancel')[_0x2cd673(0x728)](_0x4892d2);_0x2901fa[_0x2cd673(0xe27)](_0x47d216)[_0x2cd673(0x1cb0)](function(){const _0x8435f8=_0x2cd673;_0x1b975d[_0x8435f8(0x3a9)][_0x8435f8(0x111d)]({'id':_0x2f5ad9[_0x8435f8(0x3a9)]['id']})[_0x8435f8(0x1d77)]['then'](function(){const _0x56471a=_0x8435f8;_0x39641b()['remove'](_0x2f5ad9[_0x56471a(0x1c95)],{'id':_0x2f5ad9[_0x56471a(0x3a9)]['id']}),_0x1a38dd[_0x56471a(0x829)]({'title':_0x56471a(0x19a8),'msg':(_0x2f5ad9[_0x56471a(0x3a9)][_0x56471a(0x16b6)]||_0x56471a(0x3a9))+_0x56471a(0x3f5)}),_0x53a4d3(_0x2f5ad9[_0x56471a(0x3a9)]);})[_0x8435f8(0x1c4)](function(_0x37b394){const _0x3dfafa=_0x8435f8;if(_0x37b394[_0x3dfafa(0x25c)]&&_0x37b394['data']['errors']&&_0x37b394['data'][_0x3dfafa(0x1a7c)][_0x3dfafa(0xfd0)]){_0x2f5ad9[_0x3dfafa(0x1a7c)]=_0x37b394[_0x3dfafa(0x25c)][_0x3dfafa(0x1a7c)]||[{'message':_0x37b394['toString'](),'type':_0x3dfafa(0x1553)}];for(let _0x29153=0x0;_0x29153<_0x37b394[_0x3dfafa(0x25c)][_0x3dfafa(0x1a7c)]['length'];_0x29153++){_0x1a38dd[_0x3dfafa(0x218e)]({'title':_0x37b394['data'][_0x3dfafa(0x1a7c)][_0x29153][_0x3dfafa(0x66a)],'msg':_0x37b394[_0x3dfafa(0x25c)]['errors'][_0x29153][_0x3dfafa(0x155e)]});}}else _0x1a38dd['error']({'title':_0x37b394[_0x3dfafa(0x291)]?_0x3dfafa(0xeb9)+_0x37b394[_0x3dfafa(0x291)]+_0x3dfafa(0x1657)+_0x37b394['statusText']:_0x3dfafa(0x1553),'msg':_0x37b394[_0x3dfafa(0x25c)]?JSON['stringify'](_0x37b394[_0x3dfafa(0x25c)][_0x3dfafa(0x155e)]):_0x37b394[_0x3dfafa(0x155e)]||_0x37b394[_0x3dfafa(0x147f)]()});});},function(){});}function _0x45e8aa(_0x1beb95){return _0x1beb95===null?undefined:new Date(_0x1beb95);}function _0x53a4d3(_0x48dd0e){const _0x5302d9=_0x16fc2d;_0x2901fa[_0x5302d9(0x1426)](_0x48dd0e);}}const _0x3dae5f=_0x149ca2;;_0x300fde[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x3a9),_0x5537c6(0x1c95),_0x5537c6(0x217b),'$translate',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x300fde(_0x5e5fb7,_0x4beadf,_0x2c341a,_0x46d26b,_0x4c7c3e,_0xbd60b2,_0x3eae0a,_0x2190f8,_0x282dc4,_0x3c59e5){const _0x36da9f=_0x5537c6,_0x535743=this;_0x535743[_0x36da9f(0xe76)]=_0x282dc4['getCurrentUser'](),_0x535743[_0x36da9f(0x3a9)]=_0x4c7c3e,_0x535743['crudPermissions']=_0x3c59e5,_0x535743[_0x36da9f(0x217b)]=_0x3eae0a,_0x535743[_0x36da9f(0x122f)]=[],_0x535743[_0x36da9f(0x1372)]=[],_0x535743[_0x36da9f(0x20bb)]=[],_0x535743[_0x36da9f(0xbd5)]=[],_0x535743[_0x36da9f(0x1456)]=[],_0x535743[_0x36da9f(0x50c)]=![],_0x535743[_0x36da9f(0x1a34)]=_0x325502,_0x535743[_0x36da9f(0x1dd5)]=_0x555093,_0x535743['closeDialog']=_0x194099,_0x535743[_0x36da9f(0x18c0)]={'readOnly':!_0x535743['crudPermissions'][_0x36da9f(0xb3d)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'fullname','line2':[_0x36da9f(0x16b6),_0x36da9f(0xdbd)],'line3':'','labelAll':_0x2190f8[_0x36da9f(0x25cc)]('APP.ALL_AGENTS'),'labelSelected':_0x2190f8['instant'](_0x36da9f(0x1cd5)),'transferCallback':function(){const _0x5746e3=_0x36da9f,_0x26f44c=_0x39641b()['xorBy'](_0x535743[_0x5746e3(0x1456)],_0x535743[_0x5746e3(0x20bb)],'id');_0x535743[_0x5746e3(0x50c)]=_0x39641b()[_0x5746e3(0xce9)](_0x26f44c)?![]:!![];}};function _0x325502(){const _0x15f86d=_0x36da9f;return _0x282dc4[_0x15f86d(0x22b6)](_0x15f86d(0x1c60))?_0x4a94d7()['catch'](function(_0x505dd){const _0x5f1d89=_0x15f86d;_0x2c341a[_0x5f1d89(0x218e)]({'title':_0x505dd[_0x5f1d89(0x291)]?'API:'+_0x505dd[_0x5f1d89(0x291)]+_0x5f1d89(0x1657)+_0x505dd[_0x5f1d89(0xc22)]:_0x5f1d89(0x799),'msg':_0x505dd[_0x5f1d89(0x291)]?JSON[_0x5f1d89(0x2701)](_0x505dd[_0x5f1d89(0x25c)]):_0x505dd[_0x5f1d89(0x147f)]()});}):_0x1ca97c()[_0x15f86d(0x1cb0)](function(_0x5978bd){const _0xdb977f=_0x15f86d;return _0x535743[_0xdb977f(0x1f74)]=_0x5978bd,_0x4a94d7();})[_0x15f86d(0x1c4)](function(_0xf0c885){const _0x2ba4dc=_0x15f86d;_0x2c341a[_0x2ba4dc(0x218e)]({'title':_0xf0c885[_0x2ba4dc(0x291)]?_0x2ba4dc(0xeb9)+_0xf0c885['status']+_0x2ba4dc(0x1657)+_0xf0c885[_0x2ba4dc(0xc22)]:_0x2ba4dc(0x799),'msg':_0xf0c885[_0x2ba4dc(0x291)]?JSON[_0x2ba4dc(0x2701)](_0xf0c885[_0x2ba4dc(0x25c)]):_0xf0c885['toString']()});});}function _0x1ca97c(){return _0x4beadf(function(_0x5da37a,_0x2d5df2){const _0x5b7b26=a0_0x5cbd;_0x46d26b[_0x5b7b26(0x2199)][_0x5b7b26(0xbf7)]({'userProfileId':_0x535743[_0x5b7b26(0xe76)][_0x5b7b26(0x13c1)],'name':_0x5b7b26(0x2536)})[_0x5b7b26(0x1d77)][_0x5b7b26(0x1cb0)](function(_0x403e49){const _0x1a3d58=_0x5b7b26,_0x4740bd=_0x403e49&&_0x403e49[_0x1a3d58(0x2214)]?_0x403e49[_0x1a3d58(0x2214)][0x0]:null;_0x5da37a(_0x4740bd);})[_0x5b7b26(0x1c4)](function(_0x3f8798){_0x2d5df2(_0x3f8798);});});}function _0x4a94d7(){return _0x4beadf(function(_0x4d93ec,_0x2bac7e){const _0x602dea=a0_0x5cbd;return _0x1d6a77()[_0x602dea(0x1cb0)](function(_0x3f9ab6){const _0x2507ee=_0x602dea;return _0x535743[_0x2507ee(0x122f)]=_0x3f9ab6['rows']?_0x3f9ab6[_0x2507ee(0x2214)]:[],_0x282dc4[_0x2507ee(0x22b6)](_0x2507ee(0x1c60))?_0x3f9ab6:_0x535743[_0x2507ee(0x1f74)]?_0x535743[_0x2507ee(0x1f74)][_0x2507ee(0x12f4)]?_0x3f9ab6:_0xd504b7():null;})[_0x602dea(0x1cb0)](function(_0x23eec0){const _0x41fba3=_0x602dea,_0x2b7c67=_0x23eec0&&_0x23eec0['rows']?_0x23eec0[_0x41fba3(0x2214)]:[];return _0x535743[_0x41fba3(0x1372)]=_0x39641b()[_0x41fba3(0x1de2)](_0x2b7c67,function(_0x1696a6){const _0x5dbe46=_0x41fba3;return _0x39641b()[_0x5dbe46(0x13b4)](_0x535743[_0x5dbe46(0x122f)],{'id':_0x282dc4['hasRole']('admin')||_0x535743['section'][_0x5dbe46(0x12f4)]?_0x1696a6['id']:_0x1696a6[_0x5dbe46(0x2982)]});}),_0x535743[_0x41fba3(0xbd5)]=angular['copy'](_0x535743['allowedItems']),_0x535743[_0x41fba3(0x122f)][_0x41fba3(0xf90)](function(_0x3ecc9b){const _0x5dd76a=_0x41fba3,_0x1a6a80=_0x39641b()['find'](_0x535743[_0x5dd76a(0x1372)],{'id':_0x3ecc9b['id']});_0x282dc4['hasRole'](_0x5dd76a(0x1c60))?_0x3ecc9b[_0x5dd76a(0x1a4f)]=!![]:_0x3ecc9b[_0x5dd76a(0x1a4f)]=typeof _0x1a6a80!==_0x5dd76a(0x16b5)?!![]:![];}),_0x8b78();})[_0x602dea(0x1cb0)](function(_0x1b00df){const _0x41e4c5=_0x602dea,_0x6bac73=_0x1b00df&&_0x1b00df[_0x41e4c5(0x2214)]?_0x1b00df[_0x41e4c5(0x2214)]:[];_0x535743[_0x41e4c5(0x20bb)]=_0x39641b()[_0x41e4c5(0x1de2)](_0x6bac73,function(_0x40ac3e){const _0x16f043=_0x41e4c5,_0x289d41=_0x39641b()[_0x16f043(0x13b4)](_0x535743[_0x16f043(0x122f)],{'id':_0x40ac3e['id']});return _0x289d41[_0x16f043(0x1cbc)]=_0x40ac3e[_0x16f043(0x1fb4)]?_0x16f043(0x455)+_0x40ac3e[_0x16f043(0x1fb4)][_0x16f043(0x1cbc)]:'',_0x289d41[_0x16f043(0xdbd)]=typeof _0x40ac3e[_0x16f043(0xdbd)]!==_0x16f043(0x16b5)?'<'+_0x40ac3e[_0x16f043(0xdbd)]+'>':'',_0x289d41;}),_0x535743[_0x41e4c5(0x1456)]=angular[_0x41e4c5(0x17fe)](_0x535743[_0x41e4c5(0x20bb)]),_0x535743[_0x41e4c5(0x18c0)][_0x41e4c5(0x20bb)]=_0x535743[_0x41e4c5(0x20bb)],_0x535743[_0x41e4c5(0x18c0)][_0x41e4c5(0x122f)]=_0x39641b()[_0x41e4c5(0x2128)](_0x535743['allowedItems'],_0x535743[_0x41e4c5(0x18c0)][_0x41e4c5(0x20bb)],'id'),_0x4d93ec();})['catch'](function(_0x209056){_0x2bac7e(_0x209056);});});}function _0xd504b7(){return _0x4beadf(function(_0x4d4544,_0x42f46f){const _0x489dcb=a0_0x5cbd;return _0x46d26b['userProfileResource'][_0x489dcb(0xbf7)]({'sectionId':_0x535743[_0x489dcb(0x1f74)]['id'],'nolimit':!![]})[_0x489dcb(0x1d77)]['then'](function(_0x277812){_0x4d4544(_0x277812);})['catch'](function(_0x417a99){_0x42f46f(_0x417a99);});});}function _0x8b78(){return _0x4beadf(function(_0x535525,_0x687fe0){const _0x49384b=a0_0x5cbd;return _0x46d26b[_0x49384b(0x3a9)][_0x49384b(0x2348)]({'id':_0x535743[_0x49384b(0x3a9)]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x49384b(0x1eff)})[_0x49384b(0x1d77)][_0x49384b(0x1cb0)](function(_0xea4f37){_0x535525(_0xea4f37);})[_0x49384b(0x1c4)](function(_0x1ca4af){_0x687fe0(_0x1ca4af);});});}function _0x1d6a77(){return _0x4beadf(function(_0x4f1fec,_0x19de20){const _0x436a12=a0_0x5cbd;return _0x46d26b[_0x436a12(0xebe)][_0x436a12(0xbf7)]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x436a12(0x1eff)})['$promise'][_0x436a12(0x1cb0)](function(_0x4687db){_0x4f1fec(_0x4687db);})[_0x436a12(0x1c4)](function(_0x11653d){_0x19de20(_0x11653d);});});}function _0x465452(_0x3020a4){return _0x4beadf(function(_0x59f89c,_0x124288){const _0x49546e=a0_0x5cbd;_0x39641b()['isEmpty'](_0x3020a4)?_0x59f89c():_0x46d26b['openchannelQueue'][_0x49546e(0x2057)]({'id':_0x535743[_0x49546e(0x3a9)]['id'],'ids':_0x39641b()['map'](_0x3020a4,'id')})[_0x49546e(0x1d77)]['then'](function(){_0x59f89c();})[_0x49546e(0x1c4)](function(_0x4befb1){_0x124288(_0x4befb1);});});}function _0x133e21(_0x253612){return _0x4beadf(function(_0x13f9f1,_0x1253b0){const _0x1fb45c=a0_0x5cbd;_0x39641b()[_0x1fb45c(0xce9)](_0x253612)?_0x13f9f1():_0x46d26b[_0x1fb45c(0x3a9)][_0x1fb45c(0x223f)]({'id':_0x535743[_0x1fb45c(0x3a9)]['id'],'ids':_0x39641b()[_0x1fb45c(0x1de2)](_0x253612,'id')})[_0x1fb45c(0x1d77)]['then'](function(){_0x13f9f1();})['catch'](function(_0x3a1a75){_0x1253b0(_0x3a1a75);});});}function _0x555093(){const _0x470482=_0x36da9f,_0x4b540e=_0x39641b()[_0x470482(0x2128)](_0x535743['startingSelectedItems'],_0x535743['selectedItems'],'id'),_0x45cadf=_0x39641b()[_0x470482(0x2128)](_0x535743[_0x470482(0x20bb)],_0x535743[_0x470482(0x1456)],'id');return _0x133e21(_0x4b540e)[_0x470482(0x1cb0)](function(){return _0x465452(_0x45cadf);})['then'](function(){const _0x426815=_0x470482;_0x535743[_0x426815(0x50c)]=![],_0x535743['startingAllowedItems']=angular['copy'](_0x535743[_0x426815(0x1372)]),_0x535743[_0x426815(0x1456)]=angular[_0x426815(0x17fe)](_0x535743['selectedItems']),_0x2c341a[_0x426815(0x829)]({'title':_0x426815(0x201),'msg':_0x426815(0x976)});})['catch'](function(_0x3f74a0){const _0xf8f44d=_0x470482;_0x2c341a[_0xf8f44d(0x218e)]({'title':_0x3f74a0[_0xf8f44d(0x291)]?_0xf8f44d(0xeb9)+_0x3f74a0[_0xf8f44d(0x291)]+'\x20-\x20'+_0x3f74a0[_0xf8f44d(0xc22)]:_0xf8f44d(0x1221),'msg':_0x3f74a0[_0xf8f44d(0x291)]?JSON[_0xf8f44d(0x2701)](_0x3f74a0[_0xf8f44d(0x25c)]):_0x3f74a0['toString']()});});}function _0x194099(){_0x5e5fb7['hide']();}}const _0x2a153c=_0x300fde;;_0x13790f[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x3a9),'$translate',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x13790f(_0x21a423,_0x561651,_0x16eab4,_0xa4082d,_0x69608c,_0x283519,_0x28fa04,_0x42b5dc){const _0x40748e=_0x5537c6,_0x528ab5=this;_0x528ab5['currentUser']=_0x28fa04[_0x40748e(0x21e8)](),_0x528ab5['openchannelQueue']=_0x69608c,_0x528ab5[_0x40748e(0x1b1a)]=_0x42b5dc,_0x528ab5[_0x40748e(0x122f)]=[],_0x528ab5['allowedItems']=[],_0x528ab5['selectedItems']=[],_0x528ab5[_0x40748e(0xbd5)]=[],_0x528ab5[_0x40748e(0x1456)]=[],_0x528ab5[_0x40748e(0x50c)]=![],_0x528ab5[_0x40748e(0x18c0)]={'readOnly':!_0x528ab5[_0x40748e(0x1b1a)]['canEdit'],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x40748e(0x16b6),'line2':'','line3':'','labelAll':_0x283519[_0x40748e(0x25cc)](_0x40748e(0x1f3)),'labelSelected':_0x283519[_0x40748e(0x25cc)](_0x40748e(0x1b5f)),'transferCallback':function(){const _0x31bcc3=_0x40748e,_0x10968a=_0x39641b()[_0x31bcc3(0x1423)](_0x528ab5[_0x31bcc3(0x1456)],_0x528ab5['selectedItems'],'id');_0x528ab5[_0x31bcc3(0x50c)]=_0x39641b()[_0x31bcc3(0xce9)](_0x10968a)?![]:!![];}},_0x528ab5[_0x40748e(0x1a34)]=_0x1867d0,_0x528ab5[_0x40748e(0x1c56)]=_0x2a93f6,_0x528ab5[_0x40748e(0xda0)]=_0x1bdd2a;function _0x1867d0(){const _0x5ec75e=_0x40748e;return _0x28fa04[_0x5ec75e(0x22b6)]('admin')?_0x4f898f()['catch'](function(_0x3022c8){const _0x363b09=_0x5ec75e;_0x16eab4[_0x363b09(0x218e)]({'title':_0x3022c8[_0x363b09(0x291)]?_0x363b09(0xeb9)+_0x3022c8['status']+_0x363b09(0x1657)+_0x3022c8[_0x363b09(0xc22)]:_0x363b09(0x2206),'msg':_0x3022c8['status']?JSON['stringify'](_0x3022c8[_0x363b09(0x25c)]):_0x3022c8[_0x363b09(0x147f)]()});}):_0x11b54a()[_0x5ec75e(0x1cb0)](function(_0x2a7a68){const _0x2977c8=_0x5ec75e;return _0x528ab5[_0x2977c8(0x1f74)]=_0x2a7a68,_0x4f898f();})[_0x5ec75e(0x1c4)](function(_0x5715b2){const _0x24bd11=_0x5ec75e;_0x16eab4[_0x24bd11(0x218e)]({'title':_0x5715b2[_0x24bd11(0x291)]?_0x24bd11(0xeb9)+_0x5715b2[_0x24bd11(0x291)]+_0x24bd11(0x1657)+_0x5715b2['statusText']:_0x24bd11(0x2206),'msg':_0x5715b2[_0x24bd11(0x291)]?JSON[_0x24bd11(0x2701)](_0x5715b2['data']):_0x5715b2[_0x24bd11(0x147f)]()});});}function _0x11b54a(){return _0x561651(function(_0x55919e,_0x1257b5){const _0x24fc9d=a0_0x5cbd;_0xa4082d[_0x24fc9d(0x2199)][_0x24fc9d(0xbf7)]({'userProfileId':_0x528ab5[_0x24fc9d(0xe76)][_0x24fc9d(0x13c1)],'name':_0x24fc9d(0x492)})['$promise'][_0x24fc9d(0x1cb0)](function(_0x3de165){const _0x5bf238=_0x24fc9d,_0x1e33ce=_0x3de165&&_0x3de165[_0x5bf238(0x2214)]?_0x3de165[_0x5bf238(0x2214)][0x0]:null;_0x55919e(_0x1e33ce);})[_0x24fc9d(0x1c4)](function(_0x19b971){_0x1257b5(_0x19b971);});});}function _0x4f898f(){return _0x561651(function(_0x537f8b,_0x4d0221){const _0x308292=a0_0x5cbd;return _0x564c42()['then'](function(_0x2de9f1){const _0x5573fd=a0_0x5cbd;return _0x528ab5['items']=_0x2de9f1['rows']?_0x2de9f1[_0x5573fd(0x2214)]:[],_0x28fa04['hasRole'](_0x5573fd(0x1c60))?_0x2de9f1:_0x528ab5[_0x5573fd(0x1f74)]?_0x528ab5[_0x5573fd(0x1f74)][_0x5573fd(0x12f4)]?_0x2de9f1:_0x59a5f5():null;})[_0x308292(0x1cb0)](function(_0x1e24a6){const _0x2cdc32=_0x308292,_0x23da25=_0x1e24a6&&_0x1e24a6['rows']?_0x1e24a6[_0x2cdc32(0x2214)]:[];return _0x528ab5[_0x2cdc32(0x1372)]=_0x39641b()['map'](_0x23da25,function(_0x379a9b){const _0x15940e=_0x2cdc32;return _0x39641b()[_0x15940e(0x13b4)](_0x528ab5[_0x15940e(0x122f)],{'id':_0x28fa04['hasRole']('admin')||_0x528ab5[_0x15940e(0x1f74)][_0x15940e(0x12f4)]?_0x379a9b['id']:_0x379a9b['resourceId']});}),_0x528ab5['items'][_0x2cdc32(0xf90)](function(_0x22036c){const _0x3fc3d2=_0x2cdc32,_0x2f5251=_0x39641b()[_0x3fc3d2(0x13b4)](_0x528ab5[_0x3fc3d2(0x1372)],{'id':_0x22036c['id']});_0x28fa04[_0x3fc3d2(0x22b6)](_0x3fc3d2(0x1c60))?_0x22036c[_0x3fc3d2(0x1a4f)]=!![]:_0x22036c['isValid']=typeof _0x2f5251!==_0x3fc3d2(0x16b5)?!![]:![];}),_0x1600d0();})[_0x308292(0x1cb0)](function(_0x18e170){const _0x1989d2=_0x308292,_0x46a948=_0x18e170&&_0x18e170['rows']?_0x18e170['rows']:[];_0x528ab5['selectedItems']=_0x39641b()[_0x1989d2(0x1de2)](_0x46a948,function(_0x1340f6){const _0x40c841=_0x1989d2;return _0x39641b()[_0x40c841(0x13b4)](_0x528ab5['items'],{'id':_0x1340f6['id']});}),_0x528ab5['startingSelectedItems']=angular[_0x1989d2(0x17fe)](_0x528ab5['selectedItems']),_0x528ab5[_0x1989d2(0x18c0)][_0x1989d2(0x20bb)]=_0x528ab5['selectedItems'],_0x528ab5[_0x1989d2(0x18c0)][_0x1989d2(0x122f)]=_0x39641b()[_0x1989d2(0x2128)](_0x528ab5[_0x1989d2(0x1372)],_0x528ab5[_0x1989d2(0x18c0)][_0x1989d2(0x20bb)],'id'),_0x537f8b();})['catch'](function(_0x35f668){_0x4d0221(_0x35f668);});});}function _0x59a5f5(){return _0x561651(function(_0x96b473,_0x2910d5){const _0x22b39a=a0_0x5cbd;return _0xa4082d[_0x22b39a(0x1198)][_0x22b39a(0xbf7)]({'sectionId':_0x528ab5['section']['id'],'nolimit':!![]})[_0x22b39a(0x1d77)][_0x22b39a(0x1cb0)](function(_0x563b0e){_0x96b473(_0x563b0e);})[_0x22b39a(0x1c4)](function(_0x2631a1){_0x2910d5(_0x2631a1);});});}function _0x1600d0(){return _0x561651(function(_0x93ad11,_0x2861a4){const _0x1821e0=a0_0x5cbd;return _0xa4082d[_0x1821e0(0x3a9)]['getTeams']({'id':_0x528ab5[_0x1821e0(0x3a9)]['id'],'fields':_0x1821e0(0x43c),'nolimit':!![]})[_0x1821e0(0x1d77)][_0x1821e0(0x1cb0)](function(_0x1e0257){_0x93ad11(_0x1e0257);})[_0x1821e0(0x1c4)](function(_0x596b55){_0x2861a4(_0x596b55);});});}function _0x564c42(){return _0x561651(function(_0x20d215,_0x221b95){const _0x1ef7d1=a0_0x5cbd;return _0xa4082d[_0x1ef7d1(0xdfd)][_0x1ef7d1(0xbf7)]({'fields':_0x1ef7d1(0x43c),'nolimit':!![]})[_0x1ef7d1(0x1d77)]['then'](function(_0x53b897){_0x20d215(_0x53b897);})[_0x1ef7d1(0x1c4)](function(_0x32a224){_0x221b95(_0x32a224);});});}function _0x163469(_0x2b39c6){return _0x561651(function(_0x2a8f9f,_0x55932a){const _0x1cb04e=a0_0x5cbd;_0x39641b()['isEmpty'](_0x2b39c6)?_0x2a8f9f():_0xa4082d[_0x1cb04e(0x3a9)][_0x1cb04e(0x28d9)]({'id':_0x528ab5['openchannelQueue']['id'],'ids':_0x39641b()[_0x1cb04e(0x1de2)](_0x2b39c6,'id')})[_0x1cb04e(0x1d77)][_0x1cb04e(0x1cb0)](function(){_0x2a8f9f();})[_0x1cb04e(0x1c4)](function(_0x1502b2){_0x55932a(_0x1502b2);});});}function _0x4f496e(_0x1a3508){return _0x561651(function(_0x3569c3,_0x63dea9){const _0x2692aa=a0_0x5cbd;_0x39641b()[_0x2692aa(0xce9)](_0x1a3508)?_0x3569c3():_0xa4082d['openchannelQueue'][_0x2692aa(0xfcc)]({'id':_0x528ab5[_0x2692aa(0x3a9)]['id'],'ids':_0x39641b()[_0x2692aa(0x1de2)](_0x1a3508,'id')})['$promise']['then'](function(){_0x3569c3();})['catch'](function(_0x134bee){_0x63dea9(_0x134bee);});});}function _0x2a93f6(){const _0x4498aa=_0x40748e,_0x56e614=_0x39641b()[_0x4498aa(0x2128)](_0x528ab5[_0x4498aa(0x1456)],_0x528ab5['selectedItems'],'id'),_0x28eb73=_0x39641b()[_0x4498aa(0x2128)](_0x528ab5[_0x4498aa(0x20bb)],_0x528ab5['startingSelectedItems'],'id');return _0x4f496e(_0x56e614)[_0x4498aa(0x1cb0)](function(){return _0x163469(_0x28eb73);})['then'](function(){const _0x3731f5=_0x4498aa;_0x528ab5[_0x3731f5(0x50c)]=![],_0x528ab5[_0x3731f5(0xbd5)]=angular['copy'](_0x528ab5[_0x3731f5(0x1372)]),_0x528ab5[_0x3731f5(0x1456)]=angular[_0x3731f5(0x17fe)](_0x528ab5[_0x3731f5(0x20bb)]),_0x16eab4['success']({'title':'SUCCESS','msg':'Teams\x20association\x20has\x20been\x20updated!'});})[_0x4498aa(0x1c4)](function(_0x184c44){const _0xb8f76b=_0x4498aa;_0x16eab4[_0xb8f76b(0x218e)]({'title':_0x184c44[_0xb8f76b(0x291)]?_0xb8f76b(0xeb9)+_0x184c44[_0xb8f76b(0x291)]+_0xb8f76b(0x1657)+_0x184c44[_0xb8f76b(0xc22)]:_0xb8f76b(0x1221),'msg':_0x184c44[_0xb8f76b(0x291)]?JSON['stringify'](_0x184c44[_0xb8f76b(0x25c)]):_0x184c44[_0xb8f76b(0x147f)]()});});}function _0x1bdd2a(){const _0x247201=_0x40748e;_0x21a423[_0x247201(0x1426)]();}}const _0x231e77=_0x13790f;;const _0x47b546=_0x5074a3['p']+_0x5537c6(0xb09);;_0x1d7b38[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1ae),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),'openchannelQueue',_0x5537c6(0x2199)];function _0x1d7b38(_0x11c49a,_0x4a82f2,_0x14312b,_0x57a78a,_0x149bf4,_0x319313,_0x5898c6,_0xfdfe8d,_0x5a2d5e,_0x1d9bda,_0x37b24e,_0x3977e6){const _0x180fad=_0x5537c6,_0x9d485a=this;_0x9d485a[_0x180fad(0xe76)]=_0x1d9bda[_0x180fad(0x21e8)](),_0x9d485a[_0x180fad(0x8a5)]=_0x319313,_0x9d485a[_0x180fad(0x9ca)]=_0x5898c6,_0x9d485a[_0x180fad(0x1b0c)]=_0x9d485a['setting'][_0x180fad(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x9d485a[_0x180fad(0x2404)]=_0x4a82f2[_0x180fad(0x2276)]()+'://'+_0x4a82f2[_0x180fad(0x17d8)](),_0x9d485a[_0x180fad(0x3a9)]=_0x37b24e||_0x11c49a[_0x180fad(0x1dfe)]['openchannelQueue']||{},_0x9d485a[_0x180fad(0x2199)]=_0x3977e6&&_0x3977e6[_0x180fad(0x184d)]==0x1?_0x3977e6[_0x180fad(0x2214)][0x0]:null,_0x9d485a[_0x180fad(0x1b1a)]=_0x1d9bda[_0x180fad(0x14ea)](_0x9d485a[_0x180fad(0x2199)]?_0x9d485a['userProfileSection'][_0x180fad(0x1b1a)]:null),_0x9d485a[_0x180fad(0xf4c)]={},_0x9d485a[_0x180fad(0x8ec)]=_0x11c49a[_0x180fad(0x1dfe)][_0x180fad(0x291e)]||0x0,_0x9d485a[_0x180fad(0x1d63)]=_0x281f01,_0x9d485a[_0x180fad(0x1379)]=_0x351e0d,_0x9d485a[_0x180fad(0x494)]=_0x5a2d5e[_0x180fad(0x28c7)],_0x9d485a[_0x180fad(0x1ec0)]=_0x1f14d4,_0x9d485a[_0x180fad(0xe3e)]=_0x4db93d;function _0x281f01(_0x56f30b,_0x13a9ff){const _0x2c5d73=_0x180fad;_0x14312b['show']({'controller':'OpenchannelQueueteamaddController','controllerAs':'vm','templateUrl':_0x47b546,'parent':angular[_0x2c5d73(0x1853)](_0x57a78a[_0x2c5d73(0x1ed9)]),'targetEvent':_0x13a9ff,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x56f30b,'openchannelQueues':_0x9d485a[_0x2c5d73(0x1c95)]?_0x9d485a[_0x2c5d73(0x1c95)]['rows']:[],'crudPermissions':_0x9d485a[_0x2c5d73(0x1b1a)]}});}function _0x351e0d(_0x2a84a2,_0x408d17){const _0x543867=_0x180fad;_0x14312b[_0x543867(0xe27)]({'controller':_0x543867(0x168b),'controllerAs':'vm','templateUrl':_0x29f6f5,'parent':angular['element'](_0x57a78a['body']),'targetEvent':_0x408d17,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x2a84a2,'openchannelQueues':_0x9d485a[_0x543867(0x1c95)]?_0x9d485a[_0x543867(0x1c95)][_0x543867(0x2214)]:[],'crudPermissions':_0x9d485a[_0x543867(0x1b1a)],'realtime':![]}});}function _0x1f14d4(){const _0x5a46fa=_0x180fad;_0x11c49a['go'](_0x5a46fa(0x17b6),{},{'reload':'app.openchannel.openchannelQueues'});}function _0x4db93d(){const _0x1dd235=_0x180fad;_0xfdfe8d[_0x1dd235(0x3a9)][_0x1dd235(0x687)]({'id':_0x9d485a['openchannelQueue']['id']},_0x9d485a[_0x1dd235(0x3a9)])[_0x1dd235(0x1d77)][_0x1dd235(0x1cb0)](function(){const _0x1ddfaf=_0x1dd235;_0x5a2d5e[_0x1ddfaf(0x829)]({'title':_0x1ddfaf(0x2460),'msg':_0x9d485a['openchannelQueue'][_0x1ddfaf(0x16b6)]?_0x9d485a[_0x1ddfaf(0x3a9)][_0x1ddfaf(0x16b6)]+'\x20has\x20been\x20updated!':''});})[_0x1dd235(0x1c4)](function(_0xb07e77){const _0x5ca447=_0x1dd235;_0x5a2d5e[_0x5ca447(0x218e)]({'title':_0xb07e77[_0x5ca447(0x291)]?'API:'+_0xb07e77[_0x5ca447(0x291)]+'\x20-\x20'+_0xb07e77[_0x5ca447(0xc22)]:_0x5ca447(0x130d),'msg':_0xb07e77[_0x5ca447(0x25c)]?JSON[_0x5ca447(0x2701)](_0xb07e77[_0x5ca447(0x25c)]):_0xb07e77[_0x5ca447(0x147f)]()});});}}const _0x5dd86b=_0x1d7b38;;_0x5b0fb9[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),'$state',_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'$timeout',_0x5537c6(0x1ae),_0x5537c6(0x1c95),_0x5537c6(0x44a),'userProfileSection','api',_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),'license',_0x5537c6(0x9ca)];function _0x5b0fb9(_0x287570,_0x555b34,_0x23718c,_0x1aa048,_0x41876b,_0x33cddf,_0x1bec86,_0x14c106,_0x6523f8,_0x3ea6bc,_0x15c5d3,_0x28d33a,_0x10d347,_0x421f69,_0x70411f,_0x26d4b5,_0x430e28){const _0x3800f1=_0x5537c6,_0xc2b8c=this;_0xc2b8c['license']=_0x26d4b5,_0xc2b8c[_0x3800f1(0x9ca)]=_0x430e28,_0xc2b8c[_0x3800f1(0xe76)]=_0x70411f[_0x3800f1(0x21e8)](),_0xc2b8c[_0x3800f1(0x1c95)]=_0x6523f8||{'count':0x0,'rows':[]},_0xc2b8c[_0x3800f1(0x44a)]=_0x3ea6bc,_0xc2b8c[_0x3800f1(0x2199)]=_0x15c5d3&&_0x15c5d3['count']==0x1?_0x15c5d3[_0x3800f1(0x2214)][0x0]:null,_0xc2b8c[_0x3800f1(0x1b1a)]=_0x70411f[_0x3800f1(0x14ea)](_0xc2b8c[_0x3800f1(0x2199)]?_0xc2b8c['userProfileSection']['crudPermissions']:null),_0xc2b8c[_0x3800f1(0xc83)]=_0x3800f1(0x1c95),_0xc2b8c[_0x3800f1(0x1d20)]='',_0xc2b8c['listOrderAsc']=null,_0xc2b8c[_0x3800f1(0x188d)]=[],_0xc2b8c[_0x3800f1(0xae2)]={'fields':_0x3800f1(0x22f3),'sort':'-updatedAt','channel':'openchannel','limit':0xa,'page':0x1},_0xc2b8c['arraystrategy']=_0x39641b()['keyBy']([{'option':_0x3800f1(0xfd9),'value':_0x3800f1(0xcf1)},{'option':_0x3800f1(0x290b),'value':_0x3800f1(0x15b5)}],function(_0x20e18d){const _0x4aac28=_0x3800f1;return _0x39641b()[_0x4aac28(0x288f)](_0x20e18d[_0x4aac28(0x327)],new RegExp('\x27','g'),'');}),_0xc2b8c[_0x3800f1(0x235d)]=_0x313ca2,_0xc2b8c[_0x3800f1(0x1d63)]=_0x44bbd6,_0xc2b8c['agentadddialog']=_0x194417,_0xc2b8c[_0x3800f1(0x27fe)]=_0x5775aa,_0xc2b8c[_0x3800f1(0x649)]=_0x3ad570,_0xc2b8c['success']=_0x4e3443,_0xc2b8c[_0x3800f1(0x2239)]=_0x3057fc,_0xc2b8c[_0x3800f1(0x36b)]=_0x553704,_0xc2b8c['deleteOpenchannelQueue']=_0x31fc68,_0xc2b8c[_0x3800f1(0x14c0)]=_0x2bbfb2,_0xc2b8c[_0x3800f1(0x70c)]=_0x2f85e4,_0xc2b8c[_0x3800f1(0x27d5)]=_0x41d807,_0xc2b8c[_0x3800f1(0x1684)]=_0x242dc1;function _0x313ca2(_0x1061c9){const _0x439a10=_0x3800f1;_0x23718c['go'](_0x439a10(0xa6e),{'id':_0x1061c9['id'],'openchannelQueue':_0x1061c9,'crudPermissions':_0xc2b8c[_0x439a10(0x1b1a)]});}function _0x44bbd6(_0x40789e,_0xadac98){const _0xa40bdb=_0x3800f1;_0x41876b[_0xa40bdb(0xe27)]({'controller':_0xa40bdb(0x2467),'controllerAs':'vm','templateUrl':_0x47b546,'parent':angular[_0xa40bdb(0x1853)](_0x33cddf[_0xa40bdb(0x1ed9)]),'targetEvent':_0xadac98,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x40789e,'openchannelQueues':_0xc2b8c['openchannelQueues']?_0xc2b8c[_0xa40bdb(0x1c95)][_0xa40bdb(0x2214)]:[],'crudPermissions':_0xc2b8c[_0xa40bdb(0x1b1a)]}});}function _0x194417(_0x1a68e7,_0x1b5685){const _0x46e406=_0x3800f1;_0x41876b[_0x46e406(0xe27)]({'controller':_0x46e406(0x168b),'controllerAs':'vm','templateUrl':_0x29f6f5,'parent':angular['element'](_0x33cddf[_0x46e406(0x1ed9)]),'targetEvent':_0x1b5685,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x1a68e7,'openchannelQueues':_0xc2b8c[_0x46e406(0x1c95)]?_0xc2b8c['openchannelQueues'][_0x46e406(0x2214)]:[],'crudPermissions':_0xc2b8c['crudPermissions'],'realtime':![]}});}function _0x5775aa(_0x1c842d,_0x27f2ba){const _0x4e3673=_0x3800f1,_0x47268c=_0x41876b[_0x4e3673(0x1551)]()[_0x4e3673(0x1386)](_0x4e3673(0x140b)+_0x39641b()[_0x4e3673(0xa75)](_0x4e3673(0x3a9))+'?')['htmlContent'](_0x4e3673(0x204d)+(_0x1c842d[_0x4e3673(0x16b6)]||_0x4e3673(0x3a9))+_0x4e3673(0x1200)+_0x4e3673(0x1b6))[_0x4e3673(0x15ad)](_0x4e3673(0x213))['targetEvent'](_0x27f2ba)['ok']('OK')[_0x4e3673(0x696)](_0x4e3673(0x24ba));_0x41876b[_0x4e3673(0xe27)](_0x47268c)[_0x4e3673(0x1cb0)](function(){_0x31fc68(_0x1c842d);},function(){const _0x3d8da7=_0x4e3673;console[_0x3d8da7(0x1b4f)](_0x3d8da7(0x24ba));});}function _0x3ad570(){const _0x534e94=_0x3800f1;if(_0x70411f['hasRole'](_0x534e94(0x1c60)))_0x23718c['go'](_0x534e94(0x215a),{});else return _0x28d33a[_0x534e94(0x2199)][_0x534e94(0xbf7)]({'userProfileId':_0x70411f[_0x534e94(0x21e8)]()[_0x534e94(0x13c1)],'sectionId':0x32a})[_0x534e94(0x1d77)]['then'](function(_0x3ed496){const _0x3e0196=_0x534e94,_0x5cee20=_0x3ed496&&_0x3ed496['rows']?_0x3ed496[_0x3e0196(0x2214)][0x0]:null;_0x5cee20&&_0x5cee20[_0x3e0196(0x281c)]?_0x23718c['go']('app.openchannel.realtime.queues',{}):_0x421f69[_0x3e0196(0x28c7)]({'title':_0x14c106['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x14c106[_0x3e0196(0x25cc)](_0x3e0196(0x33a))});})[_0x534e94(0x1c4)](function(_0x24b5fd){const _0x3d926d=_0x534e94;_0x421f69['error']({'title':_0x24b5fd[_0x3d926d(0x291)]?_0x3d926d(0xeb9)+_0x24b5fd[_0x3d926d(0x291)]+_0x3d926d(0x1657)+_0x24b5fd[_0x3d926d(0xc22)]:_0x3d926d(0x17ba),'msg':_0x24b5fd[_0x3d926d(0x291)]?JSON[_0x3d926d(0x2701)](_0x24b5fd['data']):_0x24b5fd[_0x3d926d(0x147f)]()});});}let _0x2db630=!![],_0x4aafc1=0x1;_0x287570[_0x3800f1(0x614)](_0x3800f1(0x957),function(_0x541961,_0x4f9424){const _0x42a702=_0x3800f1;_0x2db630?_0x1bec86(function(){_0x2db630=![];}):(!_0x4f9424&&(_0x4aafc1=_0xc2b8c['query'][_0x42a702(0x1c7b)]),_0x541961!==_0x4f9424&&(_0xc2b8c[_0x42a702(0xae2)]['page']=0x1),!_0x541961&&(_0xc2b8c[_0x42a702(0xae2)][_0x42a702(0x1c7b)]=_0x4aafc1),_0xc2b8c[_0x42a702(0x2239)]());});function _0x4e3443(_0x559ceb){const _0x49aea0=_0x3800f1;_0xc2b8c[_0x49aea0(0x1c95)]=_0x559ceb||{'count':0x0,'rows':[]};}function _0x3057fc(){const _0x1fc915=_0x3800f1;_0xc2b8c['query'][_0x1fc915(0x184b)]=(_0xc2b8c['query'][_0x1fc915(0x1c7b)]-0x1)*_0xc2b8c[_0x1fc915(0xae2)]['limit'],_0x70411f[_0x1fc915(0x22b6)](_0x1fc915(0x1c60))?_0xc2b8c[_0x1fc915(0x2061)]=_0x28d33a['openchannelQueue']['get'](_0xc2b8c['query'],_0x4e3443)[_0x1fc915(0x1d77)]:(_0xc2b8c[_0x1fc915(0xae2)]['id']=_0xc2b8c['userProfile']['id'],_0xc2b8c[_0x1fc915(0xae2)]['section']='OpenchannelQueues',_0xc2b8c[_0x1fc915(0x2061)]=_0x28d33a['userProfile']['getResources'](_0xc2b8c[_0x1fc915(0xae2)],_0x4e3443)['$promise']);}function _0x553704(_0x7f7c8f,_0x431678){const _0x4d9a7e=_0x3800f1;_0x41876b[_0x4d9a7e(0xe27)]({'controller':_0x4d9a7e(0xf79),'controllerAs':'vm','templateUrl':_0x545202,'parent':angular['element'](_0x33cddf['body']),'targetEvent':_0x7f7c8f,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x431678,'openchannelQueues':_0xc2b8c[_0x4d9a7e(0x1c95)][_0x4d9a7e(0x2214)],'license':_0xc2b8c[_0x4d9a7e(0x8a5)],'setting':_0xc2b8c[_0x4d9a7e(0x9ca)],'crudPermissions':_0xc2b8c[_0x4d9a7e(0x1b1a)]}});}function _0x31fc68(_0x3618e5){const _0x405815=_0x3800f1;_0x28d33a[_0x405815(0x3a9)]['delete']({'id':_0x3618e5['id']})['$promise'][_0x405815(0x1cb0)](function(){const _0xe6b5e1=_0x405815;_0x39641b()['remove'](_0xc2b8c[_0xe6b5e1(0x1c95)][_0xe6b5e1(0x2214)],{'id':_0x3618e5['id']}),_0xc2b8c['openchannelQueues']['count']-=0x1,!_0xc2b8c[_0xe6b5e1(0x1c95)][_0xe6b5e1(0x2214)][_0xe6b5e1(0xfd0)]&&_0xc2b8c['getOpenchannelQueues'](),_0x421f69[_0xe6b5e1(0x829)]({'title':_0x39641b()[_0xe6b5e1(0xa75)](_0xe6b5e1(0x2892))+'\x20deleted!','msg':_0x3618e5[_0xe6b5e1(0x16b6)]?_0x3618e5['name']+_0xe6b5e1(0x3f5):''});})['catch'](function(_0x4f36b2){const _0x5df179=_0x405815;if(_0x4f36b2[_0x5df179(0x25c)]&&_0x4f36b2[_0x5df179(0x25c)][_0x5df179(0x1a7c)]&&_0x4f36b2[_0x5df179(0x25c)][_0x5df179(0x1a7c)][_0x5df179(0xfd0)]){_0xc2b8c['errors']=_0x4f36b2[_0x5df179(0x25c)][_0x5df179(0x1a7c)]||[{'message':_0x4f36b2['toString'](),'type':_0x5df179(0x145e)}];for(let _0x4470f7=0x0;_0x4470f7<_0x4f36b2['data'][_0x5df179(0x1a7c)][_0x5df179(0xfd0)];_0x4470f7++){_0x421f69[_0x5df179(0x218e)]({'title':_0x4f36b2[_0x5df179(0x25c)][_0x5df179(0x1a7c)][_0x4470f7][_0x5df179(0x66a)],'msg':_0x4f36b2[_0x5df179(0x25c)][_0x5df179(0x1a7c)][_0x4470f7]['message']});}}else _0x421f69[_0x5df179(0x218e)]({'title':_0x4f36b2[_0x5df179(0x291)]?'API:'+_0x4f36b2[_0x5df179(0x291)]+'\x20-\x20'+_0x4f36b2[_0x5df179(0xc22)]:_0x5df179(0x145e),'msg':_0x4f36b2[_0x5df179(0x25c)]?JSON[_0x5df179(0x2701)](_0x4f36b2[_0x5df179(0x25c)][_0x5df179(0x155e)]):_0x4f36b2['message']||_0x4f36b2[_0x5df179(0x147f)]()});});}function _0x2bbfb2(){const _0x1c2cd7=_0x3800f1,_0x5d0056=angular[_0x1c2cd7(0x17fe)](_0xc2b8c[_0x1c2cd7(0x188d)]);return _0xc2b8c[_0x1c2cd7(0x188d)]=[],_0x5d0056;}function _0x2f85e4(_0x25d312){const _0xd94fec=_0x3800f1,_0x3cde32=_0x41876b[_0xd94fec(0x1551)]()[_0xd94fec(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelQueues?')[_0xd94fec(0x49e)](_0xd94fec(0x204d)+_0xc2b8c[_0xd94fec(0x188d)][_0xd94fec(0xfd0)]+_0xd94fec(0x1d6c)+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20OpenchannelQueues')[_0xd94fec(0x728)](_0x25d312)['ok']('OK')['cancel']('CANCEL');_0x41876b['show'](_0x3cde32)['then'](function(){const _0x3815bd=_0xd94fec;_0xc2b8c[_0x3815bd(0x188d)][_0x3815bd(0xf90)](function(_0xb6a40b){_0x31fc68(_0xb6a40b);}),_0xc2b8c[_0x3815bd(0x188d)]=[];});}function _0x41d807(){const _0x18220b=_0x3800f1;_0xc2b8c[_0x18220b(0x188d)]=[];}function _0x242dc1(){const _0x1e0c45=_0x3800f1;_0xc2b8c[_0x1e0c45(0x188d)]=_0xc2b8c[_0x1e0c45(0x1c95)][_0x1e0c45(0x2214)];}}const _0x447306=_0x5b0fb9;;_0x132e9f[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6),'$translatePartialLoaderProvider'];function _0x132e9f(_0x3a4850,_0x3d6710){const _0x3f43ce=_0x5537c6;_0x3a4850[_0x3f43ce(0x27e0)](_0x3f43ce(0x182b),{'abstract':!![],'url':'/openchannel'})[_0x3f43ce(0x27e0)](_0x3f43ce(0x17b6),{'url':_0x3f43ce(0x43d),'views':{'content@app':{'templateUrl':_0x2e5db1,'controller':_0x3f43ce(0x1b4b)}},'resolve':{'openchannelQueues':[_0x3f43ce(0x1e0b),'Auth',function(_0x524e59,_0x3fdd5f){const _0x212eb4=_0x3f43ce;return _0x3fdd5f[_0x212eb4(0x22b6)](_0x212eb4(0x1c60))?_0x524e59[_0x212eb4(0x19a3)]('openchannelQueue@get',{'fields':_0x212eb4(0x22f3),'sort':_0x212eb4(0x282),'channel':_0x212eb4(0x15e0),'limit':0xa,'offset':0x0}):_0x524e59['resolve']('userProfile@getResources',{'id':_0x3fdd5f['getCurrentUser']()[_0x212eb4(0x13c1)],'section':'OpenchannelQueues','fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x212eb4(0x282),'channel':_0x212eb4(0x15e0),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3f43ce(0x1e0b),_0x3f43ce(0x1774),function(_0x298277,_0x491a4e){const _0x13b5ee=_0x3f43ce;return _0x491a4e[_0x13b5ee(0x22b6)](_0x13b5ee(0x1c60))?null:_0x298277[_0x13b5ee(0x19a3)]('userProfile@get',{'fields':_0x13b5ee(0x279),'id':_0x491a4e[_0x13b5ee(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x3f43ce(0x1e0b),_0x3f43ce(0x1774),function(_0x4d71c6,_0x163261){const _0x4a35fc=_0x3f43ce;return _0x163261[_0x4a35fc(0x22b6)](_0x4a35fc(0x1c60))?null:_0x4d71c6[_0x4a35fc(0x19a3)](_0x4a35fc(0x2182),{'fields':_0x4a35fc(0x1f5f),'userProfileId':_0x163261[_0x4a35fc(0x21e8)]()['userProfileId'],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':_0x3f43ce(0x15e0)})[_0x3f43ce(0x27e0)]('app.openchannel.openchannelQueues.edit',{'url':'/:id?tab','params':{'openchannelQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1402a2,'controller':'OpenchannelQueueController\x20as\x20vm'}},'resolve':{'openchannelQueue':[_0x3f43ce(0x1e0b),_0x3f43ce(0x225c),function(_0x215b42,_0x4784a1){const _0xae735f=_0x3f43ce;return _0x215b42['resolve'](_0xae735f(0x1b89),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','id':_0x4784a1['id']});}],'userProfileSection':[_0x3f43ce(0x1e0b),_0x3f43ce(0x1774),function(_0x5b228c,_0xcac7e0){const _0x5c5117=_0x3f43ce;return _0x5b228c[_0x5c5117(0x19a3)](_0x5c5117(0x2182),{'fields':_0x5c5117(0x1f5f),'userProfileId':_0xcac7e0[_0x5c5117(0x21e8)]()['userProfileId'],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':'openchannel'})['state']('app.openchannel.openchannelAccounts',{'url':_0x3f43ce(0x2781),'views':{'content@app':{'templateUrl':_0x1ab158,'controller':_0x3f43ce(0x8d9)}},'resolve':{'openchannelAccounts':['apiResolver','Auth',function(_0x2e319c,_0x5c088d){const _0x1632a6=_0x3f43ce;return _0x5c088d[_0x1632a6(0x22b6)](_0x1632a6(0x1c60))?_0x2e319c[_0x1632a6(0x19a3)](_0x1632a6(0x1183),{'fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x2e319c[_0x1632a6(0x19a3)]('userProfile@getResources',{'id':_0x5c088d[_0x1632a6(0x21e8)]()[_0x1632a6(0x13c1)],'section':_0x1632a6(0x1864),'fields':_0x1632a6(0x26b8),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x3f43ce(0x1e0b),_0x3f43ce(0x1774),function(_0x4f5027,_0x720c27){const _0x1c77f4=_0x3f43ce;return _0x720c27[_0x1c77f4(0x22b6)](_0x1c77f4(0x1c60))?null:_0x4f5027[_0x1c77f4(0x19a3)]('userProfile@get',{'fields':_0x1c77f4(0x279),'id':_0x720c27[_0x1c77f4(0x21e8)]()[_0x1c77f4(0x13c1)]});}],'userProfileSection':[_0x3f43ce(0x1e0b),_0x3f43ce(0x1774),function(_0x49ba24,_0x47a9b0){const _0x270cc7=_0x3f43ce;return _0x47a9b0[_0x270cc7(0x22b6)](_0x270cc7(0x1c60))?null:_0x49ba24['resolve'](_0x270cc7(0x2182),{'fields':_0x270cc7(0x1f5f),'userProfileId':_0x47a9b0['getCurrentUser']()['userProfileId'],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':_0x3f43ce(0x15e0)})[_0x3f43ce(0x27e0)](_0x3f43ce(0x1f01),{'url':_0x3f43ce(0x1bf2),'params':{'openchannelAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3a2653,'controller':'OpenchannelAccountController\x20as\x20vm'}},'resolve':{'openchannelAccount':[_0x3f43ce(0x1e0b),'$stateParams',function(_0x481d66,_0x3104ab){const _0x19183e=_0x3f43ce;return _0x481d66['resolve'](_0x19183e(0x1183),{'fields':_0x19183e(0x26b8),'id':_0x3104ab['id']});}],'userProfileSection':[_0x3f43ce(0x1e0b),_0x3f43ce(0x1774),function(_0x541fde,_0x11d720){const _0xb9fc9f=_0x3f43ce;return _0x541fde['resolve'](_0xb9fc9f(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x11d720[_0xb9fc9f(0x21e8)]()['userProfileId'],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':_0x3f43ce(0x15e0)}),_0x3d6710[_0x3f43ce(0x4e7)]('app/main/apps/openchannel');}angular[_0x5537c6(0x9ab)](_0x5537c6(0x182b),[_0x5537c6(0x2770),_0x5537c6(0x2135),'md.data.table',_0x5537c6(0xacf),'mdColorPicker',_0x5537c6(0xd19),'ng-sortable',_0x5537c6(0x2ec),'ngAnimate',_0x5537c6(0x167d),'mwFormBuilder',_0x5537c6(0x1b65),_0x5537c6(0x2166),_0x5537c6(0x3b9),_0x5537c6(0x7c9),_0x5537c6(0xeb5),'angularMaterialFormBuilder','material.components.expansionPanels',_0x5537c6(0x1cbd),'angular.filter',_0x5537c6(0x19f9)])[_0x5537c6(0xa60)](_0x132e9f)[_0x5537c6(0x6e5)](_0x5537c6(0x11f5),_0x48fc8c)[_0x5537c6(0x6e5)](_0x5537c6(0x14c5),_0x34c805)[_0x5537c6(0x6e5)](_0x5537c6(0xac9),_0x3357ad)[_0x5537c6(0x6e5)](_0x5537c6(0xa6b),_0x5ca6b0)[_0x5537c6(0x6e5)](_0x5537c6(0x26f4),_0x59b3e4)['controller'](_0x5537c6(0x2a0),_0x37bbbd)[_0x5537c6(0x6e5)](_0x5537c6(0xfdd),_0x43a0e1)[_0x5537c6(0x6e5)]('EditOpenchannelAccountAppdialogflowDialogController',_0x301c45)['controller'](_0x5537c6(0x1f27),_0x4a6f7b)[_0x5537c6(0x6e5)](_0x5537c6(0x889),_0x876d4b)[_0x5537c6(0x6e5)](_0x5537c6(0x181f),_0x4e0545)[_0x5537c6(0x6e5)](_0x5537c6(0x2cd),_0x58ac22)['controller'](_0x5537c6(0x1032),_0x14cbca)['controller'](_0x5537c6(0x26ba),_0x3a94b7)[_0x5537c6(0x6e5)](_0x5537c6(0x7b9),_0x5e67b7)['controller']('OpenchannelAccountInteractionsController',_0x2a1d87)['controller'](_0x5537c6(0xeb8),_0x1e3471)[_0x5537c6(0x6e5)](_0x5537c6(0x60a),_0x4da442)[_0x5537c6(0x6e5)](_0x5537c6(0x762),_0x567e47)[_0x5537c6(0x6e5)](_0x5537c6(0x1b7e),_0x590efa)[_0x5537c6(0x6e5)]('OpenchannelAccountsController',_0xb9dca)[_0x5537c6(0x6e5)](_0x5537c6(0xf79),_0x3dae5f)['controller'](_0x5537c6(0x168b),_0x2a153c)[_0x5537c6(0x6e5)](_0x5537c6(0x2467),_0x231e77)['controller']('OpenchannelQueueController',_0x5dd86b)[_0x5537c6(0x6e5)]('OpenchannelQueuesController',_0x447306);;const _0x318ce1=_0x5074a3['p']+_0x5537c6(0x2848);;const _0x26d434=_0x5074a3['p']+_0x5537c6(0x2761);;const _0x849fd7=_0x5074a3['p']+_0x5537c6(0x1753);;const _0x4ba5c3=_0x5074a3['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/view.html/view.html';;const _0x124059=_0x5074a3['p']+_0x5537c6(0x1a9);;const _0x5f1263=_0x5074a3['p']+'src/js/modules/main/apps/fax/views/realtime/agents/view.html/view.html';;const _0x567438=_0x5074a3['p']+_0x5537c6(0x16a5);;const _0x271134=_0x5074a3['p']+_0x5537c6(0x130a);;const _0x55cba2=_0x5074a3['p']+_0x5537c6(0x20d6);;_0x5caaa7['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x2168),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x406),_0x5537c6(0x142b),_0x5537c6(0x1986),'toasty',_0x5537c6(0x29de),_0x5537c6(0x1038),_0x5537c6(0x44a),'userProfileSection',_0x5537c6(0x1774)];function _0x5caaa7(_0x1a1cbd,_0x18b925,_0x2651e8,_0x5a2fe1,_0x122c93,_0x539145,_0x5ec168,_0x5cf78c,_0x9fc20a,_0x9f6658,_0x340a92,_0x55478e,_0x124d43){const _0x3cae85=_0x5537c6,_0x256786=this;_0x256786[_0x3cae85(0xe76)]=_0x124d43[_0x3cae85(0x21e8)](),_0x256786['count']=_0x9fc20a&&_0x9fc20a[_0x3cae85(0x184d)]?_0x9fc20a[_0x3cae85(0x184d)]:0x0,_0x256786['faxAccounts']=_0x9fc20a?_0x39641b()[_0x3cae85(0x2631)](_0x9fc20a['rows']?_0x9fc20a[_0x3cae85(0x2214)]:[],'id'):{},_0x256786[_0x3cae85(0x1038)]=_0x9f6658?_0x39641b()['keyBy'](_0x9f6658['rows']?_0x9f6658['rows']:[],'id'):{},_0x256786['userProfile']=_0x340a92,_0x256786['userProfileSection']=_0x55478e&&_0x55478e[_0x3cae85(0x184d)]==0x1?_0x55478e[_0x3cae85(0x2214)][0x0]:null,_0x256786[_0x3cae85(0x1b1a)]=_0x124d43['parseCrudPermissions'](_0x256786[_0x3cae85(0x2199)]?_0x256786[_0x3cae85(0x2199)][_0x3cae85(0x1b1a)]:null),_0x256786['query']={'sort':_0x3cae85(0x142a),'limit':0xa,'page':0x1},_0x256786[_0x3cae85(0x829)]=_0x5d8319,_0x256786['$onInit']=_0x41f9d5,_0x256786[_0x3cae85(0x8e2)]=_0x3f26f4,_0x256786[_0x3cae85(0x294c)]=_0x42109d,_0x256786['onFaxMessageSave']=_0x324e38,_0x256786[_0x3cae85(0x865)]=_0x440938,_0x256786[_0x3cae85(0x237f)]=[],_0x39641b()['forIn'](_0x256786[_0x3cae85(0x29de)],function(_0x5aa957){const _0x151770=_0x3cae85;_0x256786[_0x151770(0x237f)][_0x151770(0x2785)](_0x5aa957['id']);}),_0x5ec168['on']('faxAccount:save',_0x256786['onSave']),_0x5ec168['on'](_0x3cae85(0x9aa),_0x256786['onSave']),_0x5ec168['on'](_0x3cae85(0x769),_0x256786[_0x3cae85(0x740)]);function _0x41f9d5(){const _0x3b058d=_0x3cae85;_0x39641b()[_0x3b058d(0x1ebd)](_0x256786['faxAccounts'],function(_0x2b9602,_0xa174f9){const _0x4e31dd=_0x3b058d;_0x256786[_0x4e31dd(0x1038)][_0xa174f9]&&_0x39641b()[_0x4e31dd(0x9c1)](_0x2b9602,_0x256786[_0x4e31dd(0x1038)][_0xa174f9]);}),_0x39641b()[_0x3b058d(0x1ebd)](_0x256786[_0x3b058d(0x29de)],function(_0x53a949,_0x2a62ee){const _0xb2b830=_0x3b058d,_0x401d5e={'id':_0x2a62ee,'sort':_0xb2b830(0x7d0),'direction':'in','limit':0x1,'offset':0x0,'$gte':_0xb2b830(0x941)+_0x543b5a()()[_0xb2b830(0x1be0)]('day')['format']('YYYY-MM-DD\x20HH:mm:ss')};_0x539145[_0xb2b830(0xb91)]['getMessages'](_0x401d5e)[_0xb2b830(0x1d77)][_0xb2b830(0x1cb0)](function(_0x48658b){const _0x484b5c=_0xb2b830;return _0x48658b&&(_0x53a949['in']=_0x48658b['count']||0x0,_0x53a949[_0x484b5c(0xebc)]=_0x48658b[_0x484b5c(0x2214)]&&_0x48658b[_0x484b5c(0x2214)][_0x484b5c(0xfd0)]?_0x48658b[_0x484b5c(0x2214)][0x0][_0x484b5c(0x24cb)]:undefined),_0x401d5e[_0x484b5c(0x979)]=_0x484b5c(0x2500),_0x539145[_0x484b5c(0xb91)][_0x484b5c(0x10d6)](_0x401d5e)['$promise'];})[_0xb2b830(0x1cb0)](function(_0x4d0557){const _0x1344fa=_0xb2b830;_0x4d0557&&(_0x53a949[_0x1344fa(0x2500)]=_0x4d0557[_0x1344fa(0x184d)]||0x0,_0x53a949[_0x1344fa(0x13ef)]=_0x4d0557[_0x1344fa(0x2214)]&&_0x4d0557[_0x1344fa(0x2214)]['length']?_0x4d0557[_0x1344fa(0x2214)][0x0][_0x1344fa(0x24cb)]:undefined);})['catch'](function(_0x3bed2b){const _0x3f9c9b=_0xb2b830;console[_0x3f9c9b(0x1b4f)](_0x3bed2b);});});}function _0x42109d(_0x5eb050){const _0x2935ba=_0x3cae85;_0x256786[_0x2935ba(0x29de)][_0x5eb050['id']]&&_0x39641b()['merge'](_0x256786['faxAccounts'][_0x5eb050['id']],_0x5eb050);}function _0x324e38(_0x1220ed){const _0x20559f=_0x3cae85;_0x256786[_0x20559f(0x29de)][_0x1220ed[_0x20559f(0x18e9)]]&&(_0x1220ed['direction']=='in'?(_0x256786[_0x20559f(0x29de)][_0x1220ed['FaxAccountId']]['in']+=0x1,_0x256786[_0x20559f(0x29de)][_0x1220ed[_0x20559f(0x18e9)]]['lastIn']=_0x1220ed[_0x20559f(0x24cb)]):(_0x256786['faxAccounts'][_0x1220ed[_0x20559f(0x18e9)]][_0x20559f(0x2500)]+=0x1,_0x256786['faxAccounts'][_0x1220ed[_0x20559f(0x18e9)]][_0x20559f(0x13ef)]=_0x1220ed[_0x20559f(0x24cb)]));}function _0x440938(_0x249a35,_0x2d60a4){const _0x2ffe2a=_0x3cae85;_0x122c93['go'](_0x2ffe2a(0x240b),{'id':_0x2d60a4['id'],'faxAccount':_0x2d60a4});}let _0x3b738=!![],_0xa07229=0x1;_0x1a1cbd['$watch']('vm.query.filter',function(_0x47996d,_0x4020a3){const _0x51126b=_0x3cae85;_0x3b738?_0x18b925(function(){_0x3b738=![];}):(!_0x4020a3&&(_0xa07229=_0x256786[_0x51126b(0xae2)][_0x51126b(0x1c7b)]),_0x47996d!==_0x4020a3&&(_0x256786[_0x51126b(0xae2)]['page']=0x1),!_0x47996d&&(_0x256786[_0x51126b(0xae2)]['page']=_0xa07229),_0x256786[_0x51126b(0x8e2)]());});function _0x5d8319(_0x481d97){const _0xe996eb=_0x3cae85;_0x256786['faxAccounts']=_0x481d97?_0x39641b()[_0xe996eb(0x2631)](_0x481d97[_0xe996eb(0x2214)]?_0x481d97[_0xe996eb(0x2214)]:[],'id'):{};if(_0x481d97['rows']){_0x256786['order']=[];for(let _0x1f3e8f=0x0;_0x1f3e8f<_0x481d97[_0xe996eb(0x2214)][_0xe996eb(0xfd0)];_0x1f3e8f++){_0x256786[_0xe996eb(0x237f)][_0xe996eb(0x2785)](_0x481d97[_0xe996eb(0x2214)][_0x1f3e8f]['id']);}}_0x41f9d5();}function _0x3f26f4(){const _0x57554d=_0x3cae85;_0x256786[_0x57554d(0xae2)][_0x57554d(0x184b)]=(_0x256786[_0x57554d(0xae2)][_0x57554d(0x1c7b)]-0x1)*_0x256786[_0x57554d(0xae2)]['limit'],_0x124d43[_0x57554d(0x22b6)](_0x57554d(0x1c60))?_0x256786[_0x57554d(0x2061)]=_0x539145[_0x57554d(0xb91)]['get'](_0x256786[_0x57554d(0xae2)],_0x5d8319)[_0x57554d(0x1d77)]:(_0x256786[_0x57554d(0xae2)]['id']=_0x256786[_0x57554d(0x44a)]['id'],_0x256786[_0x57554d(0xae2)]['section']=_0x57554d(0x1ffe),_0x256786[_0x57554d(0x2061)]=_0x539145[_0x57554d(0x44a)][_0x57554d(0x1810)](_0x256786[_0x57554d(0xae2)],_0x5d8319)[_0x57554d(0x1d77)]);}_0x1a1cbd['$on']('$destroy',function(){const _0x4d8ab2=_0x3cae85;_0x5ec168[_0x4d8ab2(0xfb8)](_0x4d8ab2(0xc63)),_0x5ec168[_0x4d8ab2(0xfb8)]('faxAccount:update'),_0x5ec168[_0x4d8ab2(0xfb8)](_0x4d8ab2(0x769));});}const _0x5ba4ce=_0x5caaa7;;_0x305a9d[_0x5537c6(0x15b6)]=['$scope','$q','$timeout','$mdDialog','$document',_0x5537c6(0xc34),_0x5537c6(0x8de),_0x5537c6(0xc12),'rpcAgents','api',_0x5537c6(0x1986),_0x5537c6(0x9bf),_0x5537c6(0x125c),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x1774),'license',_0x5537c6(0x1714)];function _0x305a9d(_0x271916,_0x449b8e,_0x10ebaf,_0x52e54f,_0x1b6195,_0x14ed83,_0x132f1a,_0x13412d,_0x448e70,_0x3e31b2,_0x198311,_0x373ba2,_0x3f5619,_0x297892,_0x4e496b,_0x1c4f74,_0xc30fbd,_0x5d59bd){const _0x17f984=_0x5537c6,_0x224017=this,_0x3d7bed=[_0x17f984(0x70a),'online',_0x17f984(0x24a2),_0x17f984(0x25db),_0x17f984(0x16e6),'lastPauseAt',_0x17f984(0xdbd),_0x17f984(0x16aa),_0x17f984(0xf0c),_0x17f984(0x1c7d),'mailPause',_0x17f984(0x22d3),_0x17f984(0x24ff),_0x17f984(0x1ce),_0x17f984(0x2478),'chatCapacity',_0x17f984(0x391),_0x17f984(0x2789),_0x17f984(0x3d0),_0x17f984(0x9cd),_0x17f984(0x2451),_0x17f984(0x132d),'openchannelCurrentCapacity',_0x17f984(0x2947),_0x17f984(0x2472),_0x17f984(0x700),_0x17f984(0x2336),_0x17f984(0x2208),_0x17f984(0x1446),_0x17f984(0x11b2),_0x17f984(0xe82),_0x17f984(0x2453),_0x17f984(0x542),'voiceStatus','chatStatusTime',_0x17f984(0x22a6),_0x17f984(0x568),_0x17f984(0x9eb),_0x17f984(0x2064),_0x17f984(0x1997),_0x17f984(0xc9c),_0x17f984(0x11cf),_0x17f984(0x247),_0x17f984(0x24c5),'phoneBarEnableScreenRecordingByAgent',_0x17f984(0x1f23)],_0x1d6d4c=[_0x17f984(0xf0c),'openchannelPause','mailPause',_0x17f984(0x22d3),'whatsappPause',_0x17f984(0x1ce),_0x17f984(0x2478),_0x17f984(0xa28)];_0x224017[_0x17f984(0xe76)]=_0x1c4f74[_0x17f984(0x21e8)](),_0x224017[_0x17f984(0x46c)]=['ringing',_0x17f984(0x8d2),_0x17f984(0x5b2),_0x17f984(0x1e6f),_0x17f984(0x1abd)],_0x224017['pauses']=_0x132f1a||{'count':0x0,'rows':[]},_0x224017[_0x17f984(0x8a5)]=_0xc30fbd,_0x224017[_0x17f984(0x44a)]=_0x297892,_0x224017[_0x17f984(0x2199)]=_0x4e496b&&_0x4e496b['count']==0x1?_0x4e496b['rows'][0x0]:null,_0x224017[_0x17f984(0x1b1a)]=_0x1c4f74[_0x17f984(0x14ea)](_0x224017['userProfileSection']?_0x224017[_0x17f984(0x2199)][_0x17f984(0x1b1a)]:null),_0x224017['agents']=_0x13412d?_0x39641b()[_0x17f984(0x2631)](_0x13412d['rows']?_0x13412d[_0x17f984(0x2214)]:[],'id'):{},_0x224017[_0x17f984(0x212d)]=_0x448e70?_0x39641b()[_0x17f984(0x2631)](_0x448e70[_0x17f984(0x2214)]?_0x448e70[_0x17f984(0x2214)]:[],'id'):{},_0x224017['paginatedAgents']={},_0x224017['load']=![],_0x224017[_0x17f984(0x237f)]=[],_0x224017[_0x17f984(0x1fdd)]={};for(const _0x9c4a00 in _0x224017[_0x17f984(0xc12)]){typeof _0x224017[_0x17f984(0xc12)][_0x9c4a00]!==_0x17f984(0x16b5)&&(_0x224017[_0x17f984(0xc12)][_0x9c4a00][_0x17f984(0x1a8e)]=!![]);}_0x224017[_0x17f984(0xae2)]={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x224017[_0x17f984(0x1366)]=_0x5f5b70,_0x224017[_0x17f984(0x6ad)]=_0x2f8fcf,_0x224017[_0x17f984(0x785)]=_0x38c3b3,_0x224017['unPause']=_0x3c1473,_0x224017[_0x17f984(0x191a)]=_0x4a7b74,_0x224017['getAgentStatus']=_0x12f1da,_0x224017[_0x17f984(0xfe7)]=_0x5381d7,_0x224017[_0x17f984(0x1090)]=_0x51bf7a,_0x224017['checkPause']=_0x23a895,_0x224017['isPartialPause']=_0x292cc7,_0x224017[_0x17f984(0x294c)]=_0x5d370c,_0x224017['onUpdate']=_0x360da2,_0x224017[_0x17f984(0x1a34)]=_0x466ef0,_0x224017[_0x17f984(0x1978)]=_0x546087,_0x224017[_0x17f984(0x1b4a)]=_0x34eed7,_0x224017[_0x17f984(0xd97)]=_0x8e1a1c,_0x198311['on']('user:save',_0x224017[_0x17f984(0x294c)]),_0x198311['on'](_0x17f984(0x14c6),_0x224017['onUpdate']),_0x198311['on'](_0x17f984(0x2290),_0x224017[_0x17f984(0x1978)]),_0x198311['on'](_0x17f984(0x10b3),_0x224017['onComplete']),_0x466ef0();let _0x43e8fa=_0x5d59bd(function(){const _0x256b4f=_0x17f984;_0x224017[_0x256b4f(0x997)]&&(_0x224017[_0x256b4f(0x997)]=![],_0x466ef0());},0x3e7);function _0x466ef0(){const _0x1d938b=_0x17f984;_0x224017[_0x1d938b(0x997)]=![];const _0x2143af=_0x449b8e[_0x1d938b(0x11f4)]();_0x224017['promise']=_0x2143af['promise'],_0x224017['filteredAgents']=[],_0x224017[_0x1d938b(0x237f)]=[],_0x39641b()[_0x1d938b(0x1ebd)](_0x224017['agents'],function(_0x3cabbb,_0x56d987){const _0x32d88a=_0x1d938b;_0x224017[_0x32d88a(0x212d)][_0x56d987]&&_0x39641b()[_0x32d88a(0x9c1)](_0x3cabbb,_0x39641b()[_0x32d88a(0x169b)](_0x39641b()[_0x32d88a(0x1bd8)](_0x224017[_0x32d88a(0x212d)][_0x56d987],_0x1d6d4c),_0x3d7bed)),_0x5381d7(_0x3cabbb),_0x3cabbb['online']?(_0x224017[_0x32d88a(0xe0e)][_0x32d88a(0x2785)](_0x3cabbb),_0x224017[_0x32d88a(0x1fdd)][_0x3cabbb[_0x32d88a(0xdbd)]]=_0x56d987):_0x3cabbb[_0x32d88a(0xdb9)]=_0x39641b()['toNumber'](_0x543b5a()()[_0x32d88a(0x1f31)]('x'));});_0x224017[_0x1d938b(0xae2)][_0x1d938b(0x1ef1)]&&_0x39641b()[_0x1d938b(0x152a)](_0x224017[_0x1d938b(0xe0e)],function(_0x1ab1dd){const _0x7a742a=_0x1d938b;return _0x1ab1dd[_0x7a742a(0x1fbe)]!==_0x224017[_0x7a742a(0xae2)][_0x7a742a(0x1ef1)];});_0x224017[_0x1d938b(0xae2)][_0x1d938b(0x25ff)]&&_0x39641b()[_0x1d938b(0x152a)](_0x224017['filteredAgents'],function(_0x38c1a9){const _0x2c288e=_0x1d938b;return _0x38c1a9[_0x2c288e(0x16e6)]!==_0x224017[_0x2c288e(0xae2)][_0x2c288e(0x25ff)];});_0x224017[_0x1d938b(0xae2)]['filter']&&_0x39641b()['remove'](_0x224017[_0x1d938b(0xe0e)],function(_0x1af3c3){const _0xc01cf0=_0x1d938b;return _0x1af3c3['fullname'][_0xc01cf0(0x1680)]()[_0xc01cf0(0xd8a)](_0x224017[_0xc01cf0(0xae2)][_0xc01cf0(0x1c99)][_0xc01cf0(0x1680)]())<0x0;});_0x224017[_0x1d938b(0xe0e)]=_0x5c9f16(_0x224017['filteredAgents']);const _0x40aa35=(_0x224017[_0x1d938b(0xae2)]['page']-0x1)*_0x224017[_0x1d938b(0xae2)]['limit'];_0x224017[_0x1d938b(0x260a)]=_0x39641b()[_0x1d938b(0x276f)](_0x224017[_0x1d938b(0xe0e)],_0x40aa35)[_0x1d938b(0x14cb)](0x0,_0x224017['query'][_0x1d938b(0x236)]);for(let _0x3e1a71=0x0;_0x3e1a71<_0x224017[_0x1d938b(0x260a)][_0x1d938b(0xfd0)];_0x3e1a71+=0x1){_0x224017[_0x1d938b(0x237f)]['push'](_0x224017[_0x1d938b(0x260a)][_0x3e1a71]['id']);}_0x2143af[_0x1d938b(0x19a3)](),_0x224017[_0x1d938b(0x997)]=!![];}function _0x5d370c(_0x1d1a76){const _0x54005a=_0x17f984;_0x224017['agents'][_0x1d1a76['id']]&&(_0x39641b()['merge'](_0x224017[_0x54005a(0xc12)][_0x1d1a76['id']],_0x39641b()['pick'](_0x39641b()[_0x54005a(0x1bd8)](_0x1d1a76,_0x1d6d4c),_0x3d7bed)),_0x39641b()[_0x54005a(0x9c1)](_0x224017['rpcAgents'][_0x1d1a76['id']],_0x39641b()['pick'](_0x39641b()['omit'](_0x1d1a76,_0x1d6d4c),_0x3d7bed)),_0x5381d7(_0x224017[_0x54005a(0xc12)][_0x1d1a76['id']]));}function _0x360da2(_0x1d418a){const _0x1457ea=_0x17f984;_0x224017[_0x1457ea(0xc12)][_0x1d418a['id']]&&(_0x39641b()[_0x1457ea(0x9c1)](_0x224017[_0x1457ea(0xc12)][_0x1d418a['id']],_0x39641b()[_0x1457ea(0x169b)](_0x1d418a,_0x3d7bed)),_0x39641b()[_0x1457ea(0x9c1)](_0x224017['rpcAgents'][_0x1d418a['id']],_0x39641b()['pick'](_0x1d418a,_0x3d7bed)),_0x1d418a['lastPauseAt']&&(_0x224017[_0x1457ea(0xc12)][_0x1d418a['id']][_0x1457ea(0xdb9)]=_0x1d418a[_0x1457ea(0x25db)],_0x224017[_0x1457ea(0x212d)][_0x1d418a['id']][_0x1457ea(0xdb9)]=_0x1d418a[_0x1457ea(0x25db)]),_0x5381d7(_0x224017[_0x1457ea(0xc12)][_0x1d418a['id']]));}function _0x546087(_0x18f9e7){const _0x7b5be6=_0x17f984;_0x224017[_0x7b5be6(0xc12)][_0x224017[_0x7b5be6(0x1fdd)][_0x18f9e7[_0x7b5be6(0x7ea)]]]&&(_0x39641b()[_0x7b5be6(0x9c1)](_0x224017[_0x7b5be6(0xc12)][_0x224017[_0x7b5be6(0x1fdd)][_0x18f9e7[_0x7b5be6(0x7ea)]]],_0x39641b()[_0x7b5be6(0x169b)](_0x18f9e7,[_0x7b5be6(0x11cf),'destconnectedlinenum'])),_0x39641b()[_0x7b5be6(0x9c1)](_0x224017['rpcAgents'][_0x224017['agentInternal'][_0x18f9e7[_0x7b5be6(0x7ea)]]],_0x39641b()[_0x7b5be6(0x169b)](_0x18f9e7,[_0x7b5be6(0x11cf),_0x7b5be6(0x247)])));}function _0x34eed7(_0x2deb8c){const _0x13d66a=_0x17f984;_0x224017[_0x13d66a(0xc12)][_0x224017[_0x13d66a(0x1fdd)][_0x2deb8c[_0x13d66a(0x7ea)]]]&&(_0x224017['agents'][_0x224017['agentInternal'][_0x2deb8c[_0x13d66a(0x7ea)]]]=_0x39641b()[_0x13d66a(0x1bd8)](_0x224017['agents'][_0x224017[_0x13d66a(0x1fdd)][_0x2deb8c[_0x13d66a(0x7ea)]]],[_0x13d66a(0x11cf),'destconnectedlinenum']),_0x224017[_0x13d66a(0x212d)][_0x224017['agentInternal'][_0x2deb8c[_0x13d66a(0x7ea)]]]=_0x39641b()[_0x13d66a(0x1bd8)](_0x224017['rpcAgents'][_0x224017[_0x13d66a(0x1fdd)][_0x2deb8c[_0x13d66a(0x7ea)]]],[_0x13d66a(0x11cf),'destconnectedlinenum']));}function _0x5f5b70(_0x26167a){const _0x538daa=_0x17f984;return _0x3e31b2[_0x538daa(0xebe)]['logout']({'id':_0x26167a['id'],'device':_0x538daa(0x217b),'agent_id':_0x26167a['id'],'agent_name':_0x26167a[_0x538daa(0x16b6)]})['$promise'][_0x538daa(0x1cb0)](function(){const _0x3e56dd=_0x538daa;_0x373ba2['success']({'title':'Agent\x20logout','msg':_0x26167a[_0x3e56dd(0x1d14)]+_0x3e56dd(0x1540)}),_0x224017[_0x3e56dd(0xc12)][_0x26167a['id']]&&(_0x224017['agents'][_0x26167a['id']]['online']=![]),_0x224017['rpcAgents'][_0x26167a['id']]&&(_0x224017[_0x3e56dd(0x212d)][_0x26167a['id']][_0x3e56dd(0xa28)]=![]),_0x466ef0();})[_0x538daa(0x1c4)](function(_0x1655c9){const _0x15a231=_0x538daa;_0x373ba2['error']({'title':_0x1655c9['status']?'API:'+_0x1655c9[_0x15a231(0x291)]+'\x20-\x20'+_0x1655c9[_0x15a231(0xc22)]:_0x15a231(0xcd6),'msg':_0x1655c9[_0x15a231(0x25c)]?JSON[_0x15a231(0x2701)](_0x1655c9[_0x15a231(0x25c)][_0x15a231(0x155e)]):_0x1655c9['toString']()});});}function _0x38c3b3(_0x29308a,_0x504c33){const _0x4c2451=_0x17f984;return _0x3e31b2[_0x4c2451(0xebe)][_0x4c2451(0x785)]({'id':_0x29308a['id'],'type':_0x504c33})['$promise'][_0x4c2451(0x1cb0)](function(_0x1d836f){const _0x2d9703=_0x4c2451;_0x224017[_0x2d9703(0xc12)][_0x29308a['id']]&&_0x39641b()[_0x2d9703(0x9c1)](_0x224017[_0x2d9703(0xc12)][_0x29308a['id']],_0x39641b()['pick'](_0x1d836f,_0x3d7bed)),_0x224017[_0x2d9703(0x212d)][_0x29308a['id']]&&_0x39641b()['merge'](_0x224017[_0x2d9703(0x212d)][_0x29308a['id']],_0x39641b()[_0x2d9703(0x169b)](_0x1d836f,_0x3d7bed)),_0x5381d7(_0x224017[_0x2d9703(0xc12)][_0x29308a['id']]);})[_0x4c2451(0x1c4)](function(_0x1661ee){const _0x250fc9=_0x4c2451;_0x373ba2[_0x250fc9(0x218e)]({'title':_0x1661ee['status']?_0x250fc9(0xeb9)+_0x1661ee['status']+_0x250fc9(0x1657)+_0x1661ee[_0x250fc9(0xc22)]:_0x250fc9(0xcd6),'msg':_0x1661ee[_0x250fc9(0x25c)]?JSON[_0x250fc9(0x2701)](_0x1661ee[_0x250fc9(0x25c)][_0x250fc9(0x155e)]):_0x1661ee['toString']()});});}function _0x3c1473(_0x2bcbfe){const _0x4846ea=_0x17f984;return _0x3e31b2['user'][_0x4846ea(0xf5d)]({'id':_0x2bcbfe['id']})[_0x4846ea(0x1d77)][_0x4846ea(0x1cb0)](function(_0x4f951f){const _0x4a69d3=_0x4846ea;_0x224017[_0x4a69d3(0xc12)][_0x2bcbfe['id']]&&_0x39641b()[_0x4a69d3(0x9c1)](_0x224017[_0x4a69d3(0xc12)][_0x2bcbfe['id']],_0x39641b()[_0x4a69d3(0x169b)](_0x4f951f,_0x3d7bed)),_0x224017['rpcAgents'][_0x2bcbfe['id']]&&_0x39641b()['merge'](_0x224017[_0x4a69d3(0x212d)][_0x2bcbfe['id']],_0x39641b()[_0x4a69d3(0x169b)](_0x4f951f,_0x3d7bed)),_0x5381d7(_0x224017['agents'][_0x2bcbfe['id']]);})[_0x4846ea(0x1c4)](function(_0x2f0c6b){const _0x51827f=_0x4846ea;_0x373ba2[_0x51827f(0x218e)]({'title':_0x2f0c6b['status']?_0x51827f(0xeb9)+_0x2f0c6b[_0x51827f(0x291)]+'\x20-\x20'+_0x2f0c6b[_0x51827f(0xc22)]:'api.staff.save','msg':_0x2f0c6b[_0x51827f(0x25c)]?JSON['stringify'](_0x2f0c6b['data'][_0x51827f(0x155e)]):_0x2f0c6b[_0x51827f(0x147f)]()});});}function _0x4a7b74(_0x323958){const _0x3abbf1=_0x17f984;_0x52e54f['show'](_0x52e54f[_0x3abbf1(0x494)]()[_0x3abbf1(0x27e1)](!![])[_0x3abbf1(0x1386)](_0x3abbf1(0x1bc1))[_0x3abbf1(0x49e)](_0x3abbf1(0x26a))['ok']('Ok')[_0x3abbf1(0x728)](_0x323958));}function _0x2f8fcf(_0x3316bb,_0x77f132){const _0x1e83b4=_0x17f984;_0x52e54f[_0x1e83b4(0xe27)]({'controller':_0x1e83b4(0x7e6),'controllerAs':'vm','templateUrl':_0x535a6f,'parent':angular[_0x1e83b4(0x1853)](_0x1b6195[_0x1e83b4(0x1ed9)]),'targetEvent':_0x77f132,'clickOutsideToClose':!![],'locals':{'agent':_0x3316bb,'agents':[],'channel':_0x1e83b4(0x1944),'direction':_0x1e83b4(0x26c0),'crudPermissions':_0x224017['crudPermissions']}});}function _0x51bf7a(_0x568c3e){const _0x231c30=_0x17f984;return _0x568c3e===_0x231c30(0x785)||_0x568c3e===_0x231c30(0x1767);}function _0x23a895(_0x40679f){const _0x1d1251=_0x17f984;return _0x40679f===_0x1d1251(0x785);}function _0x292cc7(_0x424f5b){const _0x1a7f59=_0x17f984;return _0x424f5b===_0x1a7f59(0x1767);}function _0x13ab8f(_0x5ebc6b){const _0x1e7444=_0x17f984;return _0x5ebc6b===_0x1e7444(0x8df)||_0x5ebc6b===_0x1e7444(0x1c9d)||_0x5ebc6b===_0x1e7444(0x13a2)||_0x5ebc6b===_0x1e7444(0x1c7e)||_0x39641b()[_0x1e7444(0x958)](_0x5ebc6b);}function _0x12f1da(_0x3bdb0d,_0x2e6a3c){const _0xb69c1e=_0x17f984;if(_0x2e6a3c===_0xb69c1e(0x1fd4)){if(_0x3bdb0d[_0x2e6a3c+_0xb69c1e(0x938)]!==_0xb69c1e(0x8df))return _0x3bdb0d[_0x2e6a3c+_0xb69c1e(0x938)];if(_0x3bdb0d[_0x2e6a3c+'Pause'])return _0x3bdb0d[_0x2e6a3c+_0xb69c1e(0x938)]=_0xb69c1e(0x785),_0xb69c1e(0x785);return _0xb69c1e(0x8df);}else{if(_0x3bdb0d[_0x2e6a3c+'Pause'])return _0x3bdb0d[_0x2e6a3c+_0xb69c1e(0x938)]='pause',_0xb69c1e(0x785);return _0x3bdb0d[_0x2e6a3c+'Status'];}}function _0x5381d7(_0x89c3f8){const _0x44fbab=_0x17f984;let _0x4c3b50=_0x44fbab(0x1c9d);if(_0x39641b()['every']([_0x12f1da(_0x89c3f8,_0x44fbab(0x1fd4)),_0x12f1da(_0x89c3f8,_0x44fbab(0x174c)),_0x12f1da(_0x89c3f8,_0x44fbab(0x2651)),_0x12f1da(_0x89c3f8,_0x44fbab(0x15e0)),_0x12f1da(_0x89c3f8,_0x44fbab(0x689)),_0x12f1da(_0x89c3f8,'whatsapp'),_0x12f1da(_0x89c3f8,_0x44fbab(0x1944))],_0x51bf7a))_0x4c3b50=_0x44fbab(0x785);else{if(_0x39641b()[_0x44fbab(0x727)]([_0x12f1da(_0x89c3f8,_0x44fbab(0x1fd4)),_0x12f1da(_0x89c3f8,_0x44fbab(0x174c)),_0x12f1da(_0x89c3f8,_0x44fbab(0x2651)),_0x12f1da(_0x89c3f8,_0x44fbab(0x15e0)),_0x12f1da(_0x89c3f8,_0x44fbab(0x689)),_0x12f1da(_0x89c3f8,_0x44fbab(0x2476)),_0x12f1da(_0x89c3f8,'fax')],_0x51bf7a))_0x4c3b50='*pause';else _0x39641b()[_0x44fbab(0x1aa3)]([_0x12f1da(_0x89c3f8,_0x44fbab(0x1fd4)),_0x12f1da(_0x89c3f8,_0x44fbab(0x174c)),_0x12f1da(_0x89c3f8,_0x44fbab(0x2651)),_0x12f1da(_0x89c3f8,'openchannel'),_0x12f1da(_0x89c3f8,'sms'),_0x12f1da(_0x89c3f8,'whatsapp'),_0x12f1da(_0x89c3f8,_0x44fbab(0x1944))],_0x13ab8f)?_0x4c3b50='idle':_0x4c3b50=_0x44fbab(0x5b2);}_0x89c3f8[_0x44fbab(0x1fbe)]!==_0x4c3b50&&(_0x89c3f8['globalStatus']=_0x4c3b50,_0x89c3f8[_0x44fbab(0x1a8e)]?(_0x89c3f8[_0x44fbab(0x1a8e)]=![],_0x89c3f8['globalStatusTime']=_0x51bf7a(_0x4c3b50)?_0x39641b()['toNumber'](_0x543b5a()(_0x89c3f8[_0x44fbab(0x25db)])[_0x44fbab(0x1f31)]('x')):_0x39641b()[_0x44fbab(0xb33)]([_0x89c3f8[_0x44fbab(0xc9c)],_0x89c3f8['chatStatusTime'],_0x89c3f8[_0x44fbab(0x568)],_0x89c3f8[_0x44fbab(0x9eb)],_0x89c3f8[_0x44fbab(0x2064)],_0x89c3f8['openchannelStatusTime'],_0x89c3f8[_0x44fbab(0x1997)]])):_0x89c3f8[_0x44fbab(0xdb9)]=_0x39641b()[_0x44fbab(0x106d)](_0x543b5a()()[_0x44fbab(0x1f31)]('x')));}function _0x5c9f16(_0x29c8bb){const _0x3f0a77=_0x17f984,_0x491573=_0x39641b()[_0x3f0a77(0x1f2c)](_0x224017[_0x3f0a77(0xae2)][_0x3f0a77(0x237f)],'-')?_0x3f0a77(0x20a5):_0x3f0a77(0x24cc);return _0x39641b()[_0x3f0a77(0x17ca)](_0x29c8bb,[_0x224017['query']['order'][_0x3f0a77(0x288f)]('-','')],[_0x491573]);}function _0x2a52e5(){_0x43e8fa&&(_0x5d59bd['cancel'](_0x43e8fa),_0x43e8fa=null);}function _0x8e1a1c(_0x14bc9b,_0x655aef){const _0x2a5d48=_0x17f984;return _0x3e31b2[_0x2a5d48(0xebe)][_0x2a5d48(0x687)]({'id':_0x14bc9b['id']},{'screenrecording':_0x655aef})[_0x2a5d48(0x1d77)]['catch'](function(_0x3dd344){const _0x25ad59=_0x2a5d48;_0x373ba2['error']({'title':_0x3dd344[_0x25ad59(0x291)]?_0x25ad59(0xeb9)+_0x3dd344[_0x25ad59(0x291)]+_0x25ad59(0x1657)+_0x3dd344[_0x25ad59(0xc22)]:_0x25ad59(0x498),'msg':_0x3dd344[_0x25ad59(0x25c)]?JSON[_0x25ad59(0x2701)](_0x3dd344[_0x25ad59(0x25c)][_0x25ad59(0x155e)]):_0x3dd344['toString']()});});}_0x271916['$on'](_0x17f984(0x291c),function(){const _0x5a75e8=_0x17f984;_0x198311['removeAllListeners'](_0x5a75e8(0x2464)),_0x198311['removeAllListeners']('user:update'),_0x198311['removeAllListeners'](_0x5a75e8(0x2290)),_0x198311[_0x5a75e8(0xfb8)](_0x5a75e8(0x10b3)),_0x2a52e5();});}const _0x52b8df=_0x305a9d;;const _0x474deb=_0x5074a3['p']+_0x5537c6(0x2188);;const _0x1c94ff=_0x5074a3['p']+'src/js/modules/main/apps/fax/views/faxQueues/create/dialog.html/dialog.html';;_0x5c032f[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2168),'$mdDialog','$q',_0x5537c6(0x22bf),'$interval',_0x5537c6(0x971),_0x5537c6(0x2255),_0x5537c6(0x142b),_0x5537c6(0x1986),_0x5537c6(0x9bf),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x1774)];function _0x5c032f(_0x291683,_0x10378a,_0x259fcd,_0x5405f0,_0x1b1f79,_0x102d5e,_0x33839d,_0x188964,_0x331df4,_0x56941f,_0x3c9b1a,_0x3fe767,_0x34712a,_0x4966f8){const _0x191b3b=_0x5537c6,_0x219f0c=this,_0x411afb=['loggedIn','available',_0x191b3b(0x26b6),_0x191b3b(0x192a),_0x191b3b(0xfb2),_0x191b3b(0x2315),_0x191b3b(0x155e),_0x191b3b(0x737),'dialMethod',_0x191b3b(0xf67),'paused'];_0x219f0c[_0x191b3b(0xe76)]=_0x4966f8[_0x191b3b(0x21e8)](),_0x219f0c[_0x191b3b(0x184d)]=_0x33839d['count']?_0x33839d[_0x191b3b(0x184d)]:0x0,_0x219f0c[_0x191b3b(0x971)]=_0x33839d?_0x39641b()['keyBy'](_0x33839d[_0x191b3b(0x2214)]?_0x33839d['rows']:[],'id'):{},_0x219f0c[_0x191b3b(0x2255)]=_0x188964?_0x39641b()[_0x191b3b(0x2631)](_0x188964[_0x191b3b(0x2214)]?_0x188964['rows']:[],'id'):{},_0x219f0c[_0x191b3b(0x44a)]=_0x3fe767,_0x219f0c['userProfileSection']=_0x34712a&&_0x34712a[_0x191b3b(0x184d)]==0x1?_0x34712a['rows'][0x0]:null,_0x219f0c[_0x191b3b(0x1b1a)]=_0x4966f8[_0x191b3b(0x14ea)](_0x219f0c[_0x191b3b(0x2199)]?_0x219f0c['userProfileSection'][_0x191b3b(0x1b1a)]:null);_0x4966f8['hasRole'](_0x191b3b(0x1c60))?_0x219f0c[_0x191b3b(0xae2)]={'type':_0x191b3b(0x26c0),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x219f0c[_0x191b3b(0xae2)]={'id':_0x219f0c[_0x191b3b(0xe76)]['id'],'channel':_0x191b3b(0x1944),'type':_0x191b3b(0x26c0),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x219f0c[_0x191b3b(0x829)]=_0x1313e6,_0x219f0c[_0x191b3b(0x13e9)]=_0x4bb761,_0x219f0c[_0x191b3b(0x12ff)]=_0x219e1a,_0x219f0c[_0x191b3b(0x1be7)]=_0x4f427a,_0x219f0c['updateQueue']=_0x46a809,_0x219f0c[_0x191b3b(0x294c)]=_0x5346f1,_0x219f0c['onSaveMember']=_0x149818,_0x219f0c[_0x191b3b(0x365)]=_0x40bf19,_0x219f0c['onPause']=_0x4b426f,_0x219f0c[_0x191b3b(0x26c9)]=_0x2a35fc,_0x219f0c[_0x191b3b(0x3be)]=_0x331964,_0x219f0c['$onInit']=_0x50c5be,_0x219f0c[_0x191b3b(0x237f)]=[],_0x39641b()['forIn'](_0x219f0c['queues'],function(_0x35b1a9){const _0x171107=_0x191b3b;_0x219f0c[_0x171107(0x237f)][_0x171107(0x2785)](_0x35b1a9['id']);}),_0x56941f['on'](_0x191b3b(0x24c4),_0x219f0c[_0x191b3b(0x294c)]),_0x56941f['on'](_0x191b3b(0x15f0),_0x219f0c['onSaveMember']),_0x56941f['on'](_0x191b3b(0x1c5c),_0x219f0c[_0x191b3b(0x365)]),_0x56941f['on'](_0x191b3b(0x14c6),_0x219f0c[_0x191b3b(0x18e4)]),_0x56941f['on'](_0x191b3b(0x201e),_0x219f0c[_0x191b3b(0x3be)]),_0x56941f['on']('userVoiceQueue:save',_0x219f0c['onLogin']);function _0x50c5be(){const _0x172d91=_0x191b3b,_0x52a79c=[];return _0x39641b()[_0x172d91(0x1ebd)](_0x219f0c['queues'],function(_0x59388f,_0x50566b){const _0x1fe45d=_0x172d91;_0x59388f[_0x1fe45d(0x139c)]=0x0,_0x59388f[_0x1fe45d(0x29a2)]=0x0,_0x219f0c[_0x1fe45d(0x971)][_0x50566b][_0x1fe45d(0xc12)]={},_0x52a79c[_0x1fe45d(0x2785)](_0x331df4['faxQueue'][_0x1fe45d(0x11dd)]({'id':_0x50566b})[_0x1fe45d(0x1d77)]),_0x219f0c[_0x1fe45d(0x2255)][_0x50566b]&&_0x39641b()[_0x1fe45d(0x9c1)](_0x59388f,_0x39641b()['pick'](_0x219f0c[_0x1fe45d(0x2255)][_0x50566b],_0x411afb));}),_0x5405f0[_0x172d91(0x223b)](_0x52a79c)[_0x172d91(0x1cb0)](function(_0x16ec58){const _0x45f01f=_0x172d91;for(let _0x40ac95=0x0;_0x40ac95<_0x16ec58[_0x45f01f(0xfd0)];_0x40ac95+=0x1){for(let _0x71a036=0x0;_0x71a036<_0x16ec58[_0x40ac95][_0x45f01f(0x2214)][_0x45f01f(0xfd0)];_0x71a036++){_0x16ec58[_0x40ac95][_0x45f01f(0x2214)][_0x71a036][_0x45f01f(0x139c)]&&_0x219f0c[_0x45f01f(0x971)][_0x16ec58[_0x40ac95][_0x45f01f(0x2214)][_0x71a036]['FaxQueueId']][_0x45f01f(0x139c)]++,_0x219f0c[_0x45f01f(0x971)][_0x16ec58[_0x40ac95][_0x45f01f(0x2214)][_0x71a036][_0x45f01f(0x1a99)]]['loggedInDb']++,_0x219f0c['queues'][_0x16ec58[_0x40ac95]['rows'][_0x71a036][_0x45f01f(0x1a99)]][_0x45f01f(0xc12)][_0x16ec58[_0x40ac95][_0x45f01f(0x2214)][_0x71a036]['UserId']]=_0x16ec58[_0x40ac95][_0x45f01f(0x2214)][_0x71a036][_0x45f01f(0x1a99)];}}})[_0x172d91(0x1c4)](function(_0x599d43){const _0x27d864=_0x172d91;console[_0x27d864(0x218e)](_0x599d43);});}function _0x5346f1(_0xce34da){const _0x299f4f=_0x191b3b;_0x219f0c[_0x299f4f(0x971)][_0xce34da['id']]&&_0x39641b()[_0x299f4f(0x9c1)](_0x219f0c[_0x299f4f(0x971)][_0xce34da['id']],_0x39641b()[_0x299f4f(0x169b)](_0xce34da,_0x411afb));}function _0x149818(_0x2d6a0b){const _0x40e890=_0x191b3b;_0x219f0c[_0x40e890(0x971)][_0x2d6a0b['FaxQueueId']]&&_0x219f0c[_0x40e890(0x971)][_0x2d6a0b['FaxQueueId']]['loggedInDb']++;}function _0x40bf19(_0x2036f9){const _0x306409=_0x191b3b;_0x219f0c[_0x306409(0x971)][_0x2036f9[_0x306409(0x1a99)]]&&_0x219f0c['queues'][_0x2036f9[_0x306409(0x1a99)]]['loggedInDb']--;}function _0x4b426f(_0x548c9a){const _0x42000d=_0x191b3b;console[_0x42000d(0x1b4f)]('onPause',_0x548c9a);if(_0x548c9a[_0x42000d(0x2478)])_0x39641b()[_0x42000d(0x1ebd)](_0x219f0c['queues'],function(_0x5e6d01){const _0x381989=_0x42000d;_0x5e6d01['agents'][_0x548c9a['id']]&&(_0x5e6d01[_0x381989(0x139c)]+=0x1,console[_0x381989(0x1b4f)]('pause'));});else!_0x548c9a[_0x42000d(0x2478)]&&_0x39641b()[_0x42000d(0x1ebd)](_0x219f0c[_0x42000d(0x971)],function(_0x1d9e5e){const _0x153a86=_0x42000d;_0x1d9e5e[_0x153a86(0xc12)][_0x548c9a['id']]&&(_0x1d9e5e[_0x153a86(0x139c)]>0x0&&(_0x1d9e5e['paused']-=0x1,console[_0x153a86(0x1b4f)](_0x153a86(0xf5d))));});}function _0x2a35fc(_0x4dde3f){const _0x2e4d01=_0x191b3b;console[_0x2e4d01(0x1b4f)](_0x2e4d01(0x2557),_0x4dde3f),_0x219f0c[_0x2e4d01(0x971)][_0x4dde3f[_0x2e4d01(0x1a99)]]&&(_0x219f0c[_0x2e4d01(0x971)][_0x4dde3f[_0x2e4d01(0x1a99)]][_0x2e4d01(0x29a2)]+=0x1,_0x219f0c[_0x2e4d01(0x971)][_0x4dde3f['FaxQueueId']][_0x2e4d01(0xc12)][_0x4dde3f[_0x2e4d01(0x21ab)]]=_0x4dde3f[_0x2e4d01(0x1a99)]);}function _0x331964(_0x1a6ac2){const _0x42cf16=_0x191b3b;console[_0x42cf16(0x1b4f)](_0x42cf16(0x3be),_0x1a6ac2),_0x219f0c[_0x42cf16(0x971)][_0x1a6ac2['FaxQueueId']]&&_0x219f0c[_0x42cf16(0x971)][_0x1a6ac2['FaxQueueId']]['loggedInDb']>0x0&&(_0x219f0c[_0x42cf16(0x971)][_0x1a6ac2[_0x42cf16(0x1a99)]][_0x42cf16(0x29a2)]-=0x1,delete _0x219f0c[_0x42cf16(0x971)][_0x1a6ac2['FaxQueueId']][_0x42cf16(0xc12)][_0x1a6ac2[_0x42cf16(0x21ab)]]);}let _0x2d32e1=!![],_0x5f9fb9=0x1;_0x291683[_0x191b3b(0x614)]('vm.query.filter',function(_0x4574e6,_0x11b6ef){const _0x299c50=_0x191b3b;_0x2d32e1?_0x10378a(function(){_0x2d32e1=![];}):(!_0x11b6ef&&(_0x5f9fb9=_0x219f0c[_0x299c50(0xae2)][_0x299c50(0x1c7b)]),_0x4574e6!==_0x11b6ef&&(_0x219f0c[_0x299c50(0xae2)][_0x299c50(0x1c7b)]=0x1),!_0x4574e6&&(_0x219f0c[_0x299c50(0xae2)][_0x299c50(0x1c7b)]=_0x5f9fb9),_0x219f0c[_0x299c50(0x13e9)]());});function _0x1313e6(_0x4a4a44){const _0x1b8abb=_0x191b3b;_0x219f0c['count']=_0x4a4a44[_0x1b8abb(0x184d)],_0x219f0c[_0x1b8abb(0x971)]=_0x4a4a44?_0x39641b()[_0x1b8abb(0x2631)](_0x4a4a44[_0x1b8abb(0x2214)]?_0x4a4a44['rows']:[],'id'):{};if(_0x4a4a44['rows']){_0x219f0c[_0x1b8abb(0x237f)]=[];for(let _0x2d8808=0x0;_0x2d8808<_0x4a4a44[_0x1b8abb(0x2214)][_0x1b8abb(0xfd0)];_0x2d8808++){_0x219f0c[_0x1b8abb(0x237f)][_0x1b8abb(0x2785)](_0x4a4a44[_0x1b8abb(0x2214)][_0x2d8808]['id']);}}_0x50c5be();}function _0x4bb761(){const _0x495bbd=_0x191b3b;_0x219f0c['query'][_0x495bbd(0x184b)]=(_0x219f0c[_0x495bbd(0xae2)][_0x495bbd(0x1c7b)]-0x1)*_0x219f0c[_0x495bbd(0xae2)][_0x495bbd(0x236)],_0x4966f8['hasRole'](_0x495bbd(0x1c60))?_0x219f0c[_0x495bbd(0x2061)]=_0x331df4[_0x495bbd(0x54d)]['get'](_0x219f0c[_0x495bbd(0xae2)],_0x1313e6)['$promise']:(_0x219f0c['query']['id']=_0x219f0c[_0x495bbd(0x44a)]['id'],_0x219f0c[_0x495bbd(0xae2)]['section']=_0x495bbd(0x1972),_0x219f0c[_0x495bbd(0x2061)]=_0x331df4[_0x495bbd(0x44a)][_0x495bbd(0x1810)](_0x219f0c[_0x495bbd(0xae2)],_0x1313e6)[_0x495bbd(0x1d77)]);}function _0x219e1a(_0x11c1c3,_0x3d2151){const _0x4ed187=_0x191b3b;_0x259fcd[_0x4ed187(0xe27)]({'controller':_0x4ed187(0xeea),'controllerAs':'vm','templateUrl':_0x1c94ff,'parent':angular['element'](_0x1b1f79[_0x4ed187(0x1ed9)]),'targetEvent':_0x11c1c3,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x3d2151,'faxQueues':_0x39641b()[_0x4ed187(0x27aa)](_0x219f0c[_0x4ed187(0x971)]),'license':null,'setting':null,'crudPermissions':_0x219f0c['crudPermissions']}});}function _0x4f427a(_0x35a8f9,_0x14241a){const _0x5091e7=_0x191b3b;_0x259fcd[_0x5091e7(0xe27)]({'controller':_0x5091e7(0xe5e),'controllerAs':'vm','templateUrl':_0x474deb,'parent':angular[_0x5091e7(0x1853)](_0x1b1f79['body']),'targetEvent':_0x35a8f9,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x14241a,'faxQueues':_0x219f0c[_0x5091e7(0x971)]?_0x219f0c[_0x5091e7(0x971)][_0x5091e7(0x2214)]:[],'realtime':![],'crudPermissions':_0x219f0c[_0x5091e7(0x1b1a)]}});}function _0x46a809(_0x49c274){const _0x28caf8=_0x191b3b;return _0x331df4[_0x28caf8(0x54d)]['update'](_0x49c274)[_0x28caf8(0x1d77)][_0x28caf8(0x1cb0)](function(){const _0x5cdac7=_0x28caf8;_0x3c9b1a[_0x5cdac7(0x829)]({'title':_0x5cdac7(0x264c),'msg':_0x49c274['name']?_0x49c274[_0x5cdac7(0x16b6)]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x388d9e){const _0x16fa27=_0x28caf8;_0x3c9b1a['error']({'title':_0x16fa27(0x454),'msg':_0x388d9e[_0x16fa27(0x155e)]});});}_0x291683[_0x191b3b(0x1d6)](_0x191b3b(0x291c),function(){const _0x13778d=_0x191b3b;_0x56941f[_0x13778d(0xfb8)](_0x13778d(0x24c4)),_0x56941f['removeAllListeners'](_0x13778d(0x1c5c)),_0x56941f[_0x13778d(0xfb8)](_0x13778d(0x15f0)),_0x56941f[_0x13778d(0xfb8)]('user:update'),_0x56941f[_0x13778d(0xfb8)]('userVoiceQueue:remove'),_0x56941f[_0x13778d(0xfb8)](_0x13778d(0x828));});}const _0x3289bc=_0x5c032f;;function _0x4856ca(){const _0x5a99b7=_0x5537c6;return{'status':{'registered':_0x5a99b7(0x1170),'unregistered':'red-300-fg\x20icon-close-circle','lagged':_0x5a99b7(0x29a3),'reachable':_0x5a99b7(0x1170),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x5a99b7(0xb74)},'state':{'unknown':_0x5a99b7(0x181),'not_inuse':_0x5a99b7(0x25c2),'inuse':_0x5a99b7(0xd57),'busy':_0x5a99b7(0x35b),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':_0x5a99b7(0x181),'ringing':_0x5a99b7(0x1c43),'ringinuse':_0x5a99b7(0x1c43),'onhold':_0x5a99b7(0x1825)},'channelStatus':{'ring':_0x5a99b7(0x1c43),'up':_0x5a99b7(0x142f),'hangup':_0x5a99b7(0xe67)},'channelStatusOut':{'ring':_0x5a99b7(0x53c),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x5a99b7(0xe67)}};}const _0x825be1=_0x4856ca;;_0x500c29[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x1986)];function _0x500c29(_0x5b064b,_0x357399,_0x322ca9){const _0x2c4c25=_0x5537c6,_0x2882c9=this;_0x322ca9[_0x2c4c25(0x22e8)](),_0x322ca9[_0x2c4c25(0x8b0)](),_0x2882c9[_0x2c4c25(0x8ec)]=0x0;switch(_0x357399[_0x2c4c25(0x1970)][_0x2c4c25(0x16b6)]){case _0x2c4c25(0xdb7):_0x2882c9['selectedTab']=0x0;break;case _0x2c4c25(0x702):_0x2882c9[_0x2c4c25(0x8ec)]=0x1;break;case _0x2c4c25(0x734):_0x2882c9[_0x2c4c25(0x8ec)]=0x2;break;case _0x2c4c25(0x1076):_0x2882c9['selectedTab']=0x3;break;default:_0x2882c9[_0x2c4c25(0x8ec)]=0x0,_0x357399['go'](_0x2c4c25(0xdb7));}_0x5b064b[_0x2c4c25(0x614)](_0x2c4c25(0x1ced),function(_0x5a5309,_0x1d7c47){const _0x100483=_0x2c4c25;if(_0x5a5309!==_0x1d7c47)switch(_0x5a5309){case 0x0:_0x357399['go'](_0x100483(0xdb7));break;case 0x1:_0x357399['go'](_0x100483(0x702));break;case 0x2:_0x357399['go'](_0x100483(0x734));break;case 0x3:_0x357399['go'](_0x100483(0x1076));break;default:_0x357399['go']('app.fax.realtime.agents');}});}const _0x2e5a41=_0x500c29;;_0x4b1840[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x1363),_0x5537c6(0x1f95),_0x5537c6(0x142b),_0x5537c6(0x1986),_0x5537c6(0x125c),_0x5537c6(0x406),_0x5537c6(0x44a),_0x5537c6(0x2199),'Auth'];function _0x4b1840(_0x1dab70,_0x3afdf9,_0x324d53,_0x26dc0b,_0x521091,_0x1535c1,_0x1036bb,_0x51c5ea,_0x283102,_0x24519a,_0x5d58b7,_0x3f0f59){const _0x29ce7f=_0x5537c6,_0x393452=this,_0x372ec7=[_0x29ce7f(0x291),_0x29ce7f(0x71a),_0x29ce7f(0x11ee),_0x29ce7f(0x17d8),'port',_0x29ce7f(0xdbd),_0x29ce7f(0x27e0),'status'];_0x393452[_0x29ce7f(0xe76)]=_0x3f0f59['getCurrentUser'](),_0x393452['count']=_0x26dc0b['count'],_0x393452[_0x29ce7f(0x1363)]=_0x26dc0b?_0x26dc0b[_0x29ce7f(0x2214)]:[],_0x393452[_0x29ce7f(0x1f95)]=_0x521091?_0x521091[_0x29ce7f(0x2214)]?_0x521091[_0x29ce7f(0x2214)]:[]:[],_0x393452['query']={'fields':_0x29ce7f(0x43c),'active':!![],'sort':'-updatedAt','limit':0xa,'page':0x1},_0x393452[_0x29ce7f(0xf2b)]=_0x51c5ea[_0x29ce7f(0x291)],_0x393452[_0x29ce7f(0xc74)]=_0x51c5ea[_0x29ce7f(0x27e0)],_0x393452[_0x29ce7f(0x44a)]=_0x24519a,_0x393452['userProfileSection']=_0x5d58b7&&_0x5d58b7[_0x29ce7f(0x184d)]==0x1?_0x5d58b7[_0x29ce7f(0x2214)][0x0]:null,_0x393452['crudPermissions']=_0x3f0f59[_0x29ce7f(0x14ea)](_0x393452['userProfileSection']?_0x393452[_0x29ce7f(0x2199)][_0x29ce7f(0x1b1a)]:null),_0x393452[_0x29ce7f(0x829)]=_0x8ee1c3,_0x393452[_0x29ce7f(0x129c)]=_0x50a6e7,_0x393452['showInfo']=_0x2167e4,_0x393452[_0x29ce7f(0xe77)]=_0x373075,_0x393452[_0x29ce7f(0x2a1)]=_0x4a34d0,_0x393452[_0x29ce7f(0x294c)]=_0x4a47e1,_0x1036bb['on'](_0x29ce7f(0x21b2),_0x393452[_0x29ce7f(0x294c)]);function _0x50a6e7(){const _0x5d840e=_0x29ce7f;let _0x3f49c5;for(let _0x5ed0f4=0x0;_0x5ed0f4<_0x393452[_0x5d840e(0x1363)]['length'];_0x5ed0f4+=0x1){_0x3f49c5=_0x39641b()[_0x5d840e(0x3c2)](_0x393452['rpcTrunks'],['id',_0x393452[_0x5d840e(0x1363)][_0x5ed0f4]['id']]),_0x3f49c5>=0x0&&_0x39641b()[_0x5d840e(0x9c1)](_0x393452[_0x5d840e(0x1363)][_0x5ed0f4],_0x39641b()['pick'](_0x393452[_0x5d840e(0x1f95)][_0x3f49c5],_0x372ec7));}}function _0x2167e4(_0x1b8620){const _0x44d938=_0x29ce7f;_0x324d53[_0x44d938(0xe27)](_0x324d53[_0x44d938(0x494)]()['clickOutsideToClose'](!![])[_0x44d938(0x1386)]('Legend')[_0x44d938(0x49e)](_0x44d938(0x26a))['ok']('Ok')[_0x44d938(0x728)](_0x1b8620));}function _0x333792(_0x21fc1c,_0x5b820c,_0x51b333){const _0x46cad1=_0x29ce7f;_0x5b820c>=0x0&&_0x39641b()[_0x46cad1(0x9c1)](_0x21fc1c[_0x5b820c],_0x39641b()['pick'](_0x51b333,_0x372ec7));}function _0x4a47e1(_0x189c24){const _0x2aab2f=_0x29ce7f,_0x2bcea9=_0x39641b()[_0x2aab2f(0x3c2)](_0x393452[_0x2aab2f(0x1363)],['id',_0x189c24['id']]),_0x439d8e=_0x39641b()['findIndex'](_0x393452[_0x2aab2f(0x1f95)],['id',_0x189c24['id']]);_0x333792(_0x393452['trunks'],_0x2bcea9,_0x189c24),_0x333792(_0x393452[_0x2aab2f(0x1f95)],_0x439d8e,_0x189c24);}let _0x2a0015=!![],_0x43378e=0x1;_0x1dab70[_0x29ce7f(0x614)](_0x29ce7f(0x957),function(_0xac955e,_0x7d8e44){const _0x182945=_0x29ce7f;_0x2a0015?_0x3afdf9(function(){_0x2a0015=![];}):(!_0x7d8e44&&(_0x43378e=_0x393452[_0x182945(0xae2)]['page']),_0xac955e!==_0x7d8e44&&(_0x393452[_0x182945(0xae2)][_0x182945(0x1c7b)]=0x1),!_0xac955e&&(_0x393452['query'][_0x182945(0x1c7b)]=_0x43378e),_0x393452['getTrunks']());});function _0x8ee1c3(_0xa99677){const _0x58a381=_0x29ce7f;_0x393452[_0x58a381(0x184d)]=_0xa99677[_0x58a381(0x184d)],_0x393452[_0x58a381(0x1363)]=_0xa99677?_0xa99677[_0x58a381(0x2214)]?_0xa99677[_0x58a381(0x2214)]:[]:[],_0x50a6e7();}function _0x373075(){const _0x468812=_0x29ce7f;_0x393452['query'][_0x468812(0x184b)]=(_0x393452[_0x468812(0xae2)][_0x468812(0x1c7b)]-0x1)*_0x393452[_0x468812(0xae2)][_0x468812(0x236)],_0x3f0f59[_0x468812(0x22b6)](_0x468812(0x1c60))?_0x393452['promise']=_0x1535c1['trunk'][_0x468812(0xbf7)](_0x393452[_0x468812(0xae2)],_0x8ee1c3)[_0x468812(0x1d77)]:(_0x393452[_0x468812(0xae2)]['id']=_0x393452['userProfile']['id'],_0x393452[_0x468812(0xae2)][_0x468812(0x1f74)]=_0x468812(0x272b),_0x393452['promise']=_0x1535c1[_0x468812(0x44a)][_0x468812(0x1810)](_0x393452[_0x468812(0xae2)],_0x8ee1c3)[_0x468812(0x1d77)]);}_0x1dab70[_0x29ce7f(0x1d6)]('$destroy',function(){const _0x17f73b=_0x29ce7f;_0x1036bb[_0x17f73b(0xfb8)](_0x17f73b(0x21b2));});function _0x4a34d0(_0x4917e0,_0x293ae5){const _0x585ab2=_0x29ce7f;_0x283102['go'](_0x585ab2(0xbe6),{'id':_0x293ae5['id']});}}const _0x25fd40=_0x4b1840;;_0x33fb3c[_0x5537c6(0x15b6)]=['$stateProvider'];function _0x33fb3c(_0x5493fb){const _0xa3dba1=_0x5537c6;_0x5493fb[_0xa3dba1(0x27e0)](_0xa3dba1(0x13a6),{'url':'/realtime','views':{'content@app':{'templateUrl':_0x124059,'controller':'FaxRealtimeController\x20as\x20vm'}},'resolve':{'userProfile':[_0xa3dba1(0x1e0b),_0xa3dba1(0x1774),function(_0x1f1fc0,_0x1b762d){const _0x3331ec=_0xa3dba1;return _0x1b762d[_0x3331ec(0x22b6)](_0x3331ec(0x1c60))?null:_0x1f1fc0[_0x3331ec(0x19a3)](_0x3331ec(0x9ae),{'fields':_0x3331ec(0x279),'id':_0x1b762d['getCurrentUser']()[_0x3331ec(0x13c1)]});}],'userProfileSection':[_0xa3dba1(0x1e0b),'Auth',function(_0x4ec9ca,_0x10cafa){const _0x206245=_0xa3dba1;return _0x10cafa[_0x206245(0x22b6)](_0x206245(0x1c60))?null:_0x4ec9ca[_0x206245(0x19a3)](_0x206245(0x2182),{'fields':_0x206245(0x1f5f),'userProfileId':_0x10cafa[_0x206245(0x21e8)]()[_0x206245(0x13c1)],'sectionId':0x38e});}]},'authenticate':!![],'permissionId':0x38e})[_0xa3dba1(0x27e0)](_0xa3dba1(0xdb7),{'url':'/agents','controller':_0xa3dba1(0x813),'templateUrl':_0x5f1263,'resolve':{'pauses':[_0xa3dba1(0x1e0b),function(_0xefa3da){const _0x43bb09=_0xa3dba1;return _0xefa3da[_0x43bb09(0x19a3)]('pause@get',{'nolimit':!![]});}],'agents':['apiResolver',_0xa3dba1(0x1774),function(_0x2602a6,_0x5edbe0){const _0x345b59=_0xa3dba1;return _0x5edbe0[_0x345b59(0x22b6)]('admin')?_0x2602a6[_0x345b59(0x19a3)](_0x345b59(0x1c86),{'fields':_0x345b59(0x1599),'role':_0x345b59(0x1eff),'sort':'fullname','nolimit':!![]}):_0x2602a6[_0x345b59(0x19a3)](_0x345b59(0x12da),{'id':_0x5edbe0[_0x345b59(0x21e8)]()['userProfileId'],'section':'Agents','fields':_0x345b59(0x1599),'role':'agent','sort':_0x345b59(0x1d14),'nolimit':!![]});}],'userProfile':[_0xa3dba1(0x1e0b),_0xa3dba1(0x1774),function(_0xd7c6d7,_0x38c2e2){const _0x1e09f4=_0xa3dba1;return _0x38c2e2['hasRole'](_0x1e09f4(0x1c60))?null:_0xd7c6d7[_0x1e09f4(0x19a3)]('userProfile@get',{'fields':_0x1e09f4(0x279),'id':_0x38c2e2[_0x1e09f4(0x21e8)]()[_0x1e09f4(0x13c1)]});}],'userProfileSection':['apiResolver',_0xa3dba1(0x1774),function(_0x3d1bd1,_0x38b79c){const _0x54f9b8=_0xa3dba1;return _0x38b79c['hasRole']('admin')?null:_0x3d1bd1[_0x54f9b8(0x19a3)](_0x54f9b8(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x38b79c[_0x54f9b8(0x21e8)]()[_0x54f9b8(0x13c1)],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0x35b4a8){const _0x4b84cc=_0xa3dba1;return _0x35b4a8[_0x4b84cc(0x19a3)](_0x4b84cc(0x12c0));}]},'authenticate':!![],'permissionId':0x38e})[_0xa3dba1(0x27e0)](_0xa3dba1(0x702),{'url':_0xa3dba1(0x1c1a),'controller':'TrunksFaxRealtimeController\x20as\x20vm','templateUrl':_0x567438,'resolve':{'trunks':[_0xa3dba1(0x1e0b),_0xa3dba1(0x1774),function(_0x2aa9fa,_0x9f6243){const _0x50db37=_0xa3dba1;return _0x9f6243['hasRole']('admin')?_0x2aa9fa['resolve'](_0x50db37(0x99d),{'fields':_0x50db37(0x43c),'active':!![],'sort':_0x50db37(0x282),'limit':0xa,'offset':0x0}):_0x2aa9fa[_0x50db37(0x19a3)](_0x50db37(0x12da),{'id':_0x9f6243[_0x50db37(0x21e8)]()['userProfileId'],'section':_0x50db37(0x272b),'fields':'id,name','active':!![],'sort':_0x50db37(0x282),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0xa3dba1(0x1774),function(_0x277e67,_0x9e22a7){const _0x439327=_0xa3dba1;return _0x9e22a7[_0x439327(0x22b6)]('admin')?null:_0x277e67[_0x439327(0x19a3)](_0x439327(0x9ae),{'fields':_0x439327(0x279),'id':_0x9e22a7[_0x439327(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0xa3dba1(0x1e0b),_0xa3dba1(0x1774),function(_0x5176b5,_0x296068){const _0x5f4c10=_0xa3dba1;return _0x296068[_0x5f4c10(0x22b6)]('admin')?null:_0x5176b5[_0x5f4c10(0x19a3)](_0x5f4c10(0x2182),{'fields':_0x5f4c10(0x1f5f),'userProfileId':_0x296068[_0x5f4c10(0x21e8)]()[_0x5f4c10(0x13c1)],'sectionId':0x3f3});}],'rpcTrunks':[_0xa3dba1(0x1e0b),function(_0x2ca0b4){const _0x582f08=_0xa3dba1;return _0x2ca0b4[_0x582f08(0x19a3)]('rpc@getTrunks');}]},'authenticate':!![],'permissionId':0x38e})[_0xa3dba1(0x27e0)]('app.fax.realtime.queues',{'url':'/queues','controller':_0xa3dba1(0xd20),'templateUrl':_0x271134,'resolve':{'queues':['apiResolver',_0xa3dba1(0x1774),function(_0x59208f,_0x45d09d){const _0x5d473b=_0xa3dba1;return _0x45d09d[_0x5d473b(0x22b6)](_0x5d473b(0x1c60))?_0x59208f[_0x5d473b(0x19a3)](_0x5d473b(0x16d2),{'type':_0x5d473b(0x26c0),'sort':_0x5d473b(0x282),'limit':0xa,'offset':0x0}):_0x59208f[_0x5d473b(0x19a3)](_0x5d473b(0x12da),{'id':_0x45d09d['getCurrentUser']()[_0x5d473b(0x13c1)],'section':'FaxQueues','channel':_0x5d473b(0x1944),'type':_0x5d473b(0x26c0),'sort':_0x5d473b(0x282),'limit':0xa,'page':0x1});}],'userProfile':['apiResolver','Auth',function(_0x46ae08,_0xe082ee){const _0x3da027=_0xa3dba1;return _0xe082ee['hasRole'](_0x3da027(0x1c60))?null:_0x46ae08[_0x3da027(0x19a3)](_0x3da027(0x9ae),{'fields':_0x3da027(0x279),'id':_0xe082ee[_0x3da027(0x21e8)]()[_0x3da027(0x13c1)]});}],'userProfileSection':[_0xa3dba1(0x1e0b),_0xa3dba1(0x1774),function(_0x2026d1,_0x692be2){const _0x59d687=_0xa3dba1;return _0x692be2[_0x59d687(0x22b6)](_0x59d687(0x1c60))?null:_0x2026d1[_0x59d687(0x19a3)](_0x59d687(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x692be2['getCurrentUser']()['userProfileId'],'sectionId':0x385});}],'rpcQueues':[_0xa3dba1(0x1e0b),function(_0x4456b1){const _0x59fe80=_0xa3dba1;return _0x4456b1['resolve'](_0x59fe80(0x1968));}]},'authenticate':!![],'permissionId':0x38e})[_0xa3dba1(0x27e0)](_0xa3dba1(0x1076),{'url':'/accounts','controller':_0xa3dba1(0x158e),'templateUrl':_0x55cba2,'resolve':{'faxAccounts':[_0xa3dba1(0x1e0b),_0xa3dba1(0x1774),function(_0x3d63e5,_0x21c71e){const _0x3926c1=_0xa3dba1;return _0x21c71e[_0x3926c1(0x22b6)](_0x3926c1(0x1c60))?_0x3d63e5[_0x3926c1(0x19a3)](_0x3926c1(0x1e1a),{'sort':_0x3926c1(0x282),'limit':0xa,'offset':0x0}):_0x3d63e5['resolve']('userProfile@getResources',{'id':_0x21c71e[_0x3926c1(0x21e8)]()[_0x3926c1(0x13c1)],'section':_0x3926c1(0x1ffe),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0xa3dba1(0x1e0b),_0xa3dba1(0x1774),function(_0x2c2d8e,_0x587e4e){const _0x282e2c=_0xa3dba1;return _0x587e4e[_0x282e2c(0x22b6)](_0x282e2c(0x1c60))?null:_0x2c2d8e['resolve']('userProfile@get',{'fields':_0x282e2c(0x279),'id':_0x587e4e[_0x282e2c(0x21e8)]()['userProfileId']});}],'userProfileSection':['apiResolver','Auth',function(_0x459869,_0x454b5c){const _0x240f3a=_0xa3dba1;return _0x454b5c[_0x240f3a(0x22b6)](_0x240f3a(0x1c60))?null:_0x459869['resolve'](_0x240f3a(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x454b5c[_0x240f3a(0x21e8)]()[_0x240f3a(0x13c1)],'sectionId':0x386});}],'rpcFaxAccounts':[_0xa3dba1(0x1e0b),function(_0x8609ae){const _0x2c31e0=_0xa3dba1;return _0x8609ae[_0x2c31e0(0x19a3)](_0x2c31e0(0x1733));}]},'authenticate':!![],'permissionId':0x38e});}angular[_0x5537c6(0x9ab)](_0x5537c6(0x13a6),[])[_0x5537c6(0xa60)](_0x33fb3c)[_0x5537c6(0x6e5)](_0x5537c6(0x113b),_0x5ba4ce)[_0x5537c6(0x6e5)](_0x5537c6(0xdea),_0x52b8df)[_0x5537c6(0x6e5)](_0x5537c6(0x18ac),_0x3289bc)[_0x5537c6(0x234a)](_0x5537c6(0x125c),_0x825be1)[_0x5537c6(0x6e5)](_0x5537c6(0x1904),_0x2e5a41)[_0x5537c6(0x6e5)](_0x5537c6(0xb9b),_0x25fd40);;_0xa2b126[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0x29de),_0x5537c6(0xb91),'api',_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0xa2b126(_0x57ea01,_0xdb6ed2,_0x3e9bca,_0x5ba8cc,_0x57d243,_0x2edc14,_0x15b2c1,_0x414616,_0x3a144a,_0x267083,_0x1e1ab6,_0x31c32c,_0x13bbbc,_0x116a0c){const _0x3e22ee=_0x5537c6,_0x294394=this;_0x294394['currentUser']=_0x1e1ab6[_0x3e22ee(0x21e8)](),_0x294394[_0x3e22ee(0x1a7c)]=[],_0x294394[_0x3e22ee(0x9ca)]=_0x13bbbc,_0x294394['license']=_0x31c32c,_0x294394['crudPermissions']=_0x116a0c,_0x294394[_0x3e22ee(0xf4c)]={},_0x294394[_0x3e22ee(0x1b0c)]=_0x294394['setting']&&_0x294394[_0x3e22ee(0x9ca)][_0x3e22ee(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x294394[_0x3e22ee(0x1386)]=_0x3e22ee(0x1283),_0x294394[_0x3e22ee(0xb91)]=angular[_0x3e22ee(0x17fe)](_0x3a144a),_0x294394[_0x3e22ee(0x29de)]=_0x414616,_0x294394[_0x3e22ee(0x23dd)]=![];!_0x294394[_0x3e22ee(0xb91)]&&(_0x294394['faxAccount']={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x294394[_0x3e22ee(0x1386)]=_0x3e22ee(0x2160),_0x294394[_0x3e22ee(0x23dd)]=!![]);_0xdb6ed2[_0x3e22ee(0x1dfe)]['id']&&(_0x294394[_0x3e22ee(0xb91)][_0x3e22ee(0x18e9)]=_0xdb6ed2[_0x3e22ee(0x1dfe)]['id']);_0x294394['addNewFaxAccount']=_0x3002f7,_0x294394[_0x3e22ee(0x7f8)]=_0x2e415f,_0x294394[_0x3e22ee(0x373)]=_0x407d7d,_0x294394[_0x3e22ee(0x2c4)]=_0x3d3d57,_0x294394[_0x3e22ee(0xda0)]=_0x5178f6,_0x1e1ab6['hasRole'](_0x3e22ee(0x1c60))?_0x267083[_0x3e22ee(0x1ae0)]['get']({'fields':'id,name','sort':_0x3e22ee(0x16b6)})['$promise'][_0x3e22ee(0x1cb0)](function(_0x316768){const _0x3fb719=_0x3e22ee;_0x294394['trunks']=_0x316768[_0x3fb719(0x2214)]||[];})['catch'](function(_0x56c2f9){const _0x57eacb=_0x3e22ee;_0x15b2c1['error']({'title':_0x56c2f9[_0x57eacb(0x291)]?_0x57eacb(0xeb9)+_0x56c2f9[_0x57eacb(0x291)]+_0x57eacb(0x1657)+_0x56c2f9[_0x57eacb(0xc22)]:_0x57eacb(0x14fc),'msg':_0x56c2f9[_0x57eacb(0x25c)]?JSON[_0x57eacb(0x2701)](_0x56c2f9[_0x57eacb(0x25c)]):_0x56c2f9[_0x57eacb(0x147f)]()});}):_0x267083[_0x3e22ee(0x1ae0)][_0x3e22ee(0xbf7)]({'fields':_0x3e22ee(0x43c),'sort':_0x3e22ee(0x16b6)})[_0x3e22ee(0x1d77)][_0x3e22ee(0x1cb0)](function(_0x21e45b){const _0x4fbf69=_0x3e22ee;_0x294394[_0x4fbf69(0x1363)]=_0x21e45b[_0x4fbf69(0x2214)]||[];})[_0x3e22ee(0x1cb0)](function(){const _0x4ddc7f=_0x3e22ee;return _0x267083[_0x4ddc7f(0x2199)][_0x4ddc7f(0xbf7)]({'userProfileId':_0x294394['currentUser'][_0x4ddc7f(0x13c1)],'sectionId':0x3f3})[_0x4ddc7f(0x1d77)];})[_0x3e22ee(0x1cb0)](function(_0x293a10){const _0x4eb259=_0x3e22ee,_0x57f896=_0x293a10&&_0x293a10[_0x4eb259(0x2214)]?_0x293a10[_0x4eb259(0x2214)][0x0]:null;if(!_0x57f896){const _0x20f77e=[];let _0x426a5c=null;_0x294394[_0x4eb259(0xb91)]&&(_0x426a5c=_0x39641b()[_0x4eb259(0x13b4)](_0x294394['trunks'],{'id':Number(_0x294394[_0x4eb259(0xb91)][_0x4eb259(0x7ab)])}));for(let _0x45e1ba=0x0;_0x45e1ba<_0x294394[_0x4eb259(0x1363)][_0x4eb259(0xfd0)];_0x45e1ba++){_0x426a5c&&_0x294394['trunks'][_0x45e1ba]['id']===_0x426a5c['id']&&(_0x294394[_0x4eb259(0x1363)][_0x45e1ba][_0x4eb259(0x15da)]=![],_0x20f77e[_0x4eb259(0x2785)](_0x294394[_0x4eb259(0x1363)][_0x45e1ba]));}_0x294394[_0x4eb259(0x1363)]=_0x20f77e;}else{if(!_0x57f896['autoAssociation'])return _0x267083[_0x4eb259(0x1198)]['get']({'sectionId':_0x57f896['id']})[_0x4eb259(0x1d77)][_0x4eb259(0x1cb0)](function(_0xc2e173){const _0x4a2d6b=_0x4eb259,_0x278cfb=_0x39641b()[_0x4a2d6b(0x1de2)](_0xc2e173['rows'],function(_0x32f4f5){const _0x50f4c9=_0x4a2d6b;return _0x39641b()['find'](_0x294394[_0x50f4c9(0x1363)],{'id':_0x32f4f5[_0x50f4c9(0x2982)]});});let _0x4a5238=null;_0x294394[_0x4a2d6b(0xb91)]&&(_0x4a5238=_0x39641b()[_0x4a2d6b(0x13b4)](_0x294394[_0x4a2d6b(0x1363)],{'id':Number(_0x294394['faxAccount'][_0x4a2d6b(0x7ab)])}));if(_0x4a5238&&!_0x39641b()[_0x4a2d6b(0x727)](_0x278cfb,['id',_0x4a5238['id']])){const _0x2e2ca2=_0x39641b()[_0x4a2d6b(0x13b4)](_0x294394[_0x4a2d6b(0x1363)],{'id':_0x4a5238['id']});_0x2e2ca2[_0x4a2d6b(0x15da)]=![],_0x278cfb[_0x4a2d6b(0x2785)](_0x2e2ca2);}_0x294394[_0x4a2d6b(0x1363)]=_0x278cfb;});}})[_0x3e22ee(0x1c4)](function(_0x3652e8){const _0xff4c32=_0x3e22ee;_0x15b2c1[_0xff4c32(0x218e)]({'title':_0x3652e8[_0xff4c32(0x291)]?_0xff4c32(0xeb9)+_0x3652e8[_0xff4c32(0x291)]+_0xff4c32(0x1657)+_0x3652e8['statusText']:_0xff4c32(0x2040),'msg':_0x3652e8[_0xff4c32(0x25c)]?JSON[_0xff4c32(0x2701)](_0x3652e8[_0xff4c32(0x25c)]):_0x3652e8['toString']()});}),_0x1e1ab6[_0x3e22ee(0x22b6)](_0x3e22ee(0x1c60))?_0x267083[_0x3e22ee(0x22f2)][_0x3e22ee(0xbf7)]({'fields':_0x3e22ee(0x43c),'sort':'name'})['$promise']['then'](function(_0x3b0ab8){const _0x1dd07b=_0x3e22ee;_0x294394[_0x1dd07b(0x1046)]=_0x3b0ab8[_0x1dd07b(0x2214)]||[];})[_0x3e22ee(0x1c4)](function(_0x224788){const _0x4dec98=_0x3e22ee;_0x15b2c1[_0x4dec98(0x218e)]({'title':_0x224788[_0x4dec98(0x291)]?_0x4dec98(0xeb9)+_0x224788[_0x4dec98(0x291)]+_0x4dec98(0x1657)+_0x224788[_0x4dec98(0xc22)]:'SYSTEM:GET_LISTS','msg':_0x224788[_0x4dec98(0x25c)]?JSON[_0x4dec98(0x2701)](_0x224788[_0x4dec98(0x25c)]):_0x224788[_0x4dec98(0x147f)]()});}):_0x267083[_0x3e22ee(0x22f2)][_0x3e22ee(0xbf7)]({'fields':'id,name','sort':_0x3e22ee(0x16b6)})[_0x3e22ee(0x1d77)][_0x3e22ee(0x1cb0)](function(_0x295ebb){const _0xedd975=_0x3e22ee;_0x294394[_0xedd975(0x1046)]=_0x295ebb[_0xedd975(0x2214)]||[];})[_0x3e22ee(0x1cb0)](function(){const _0x45f1a1=_0x3e22ee;return _0x267083['userProfileSection'][_0x45f1a1(0xbf7)]({'userProfileId':_0x294394[_0x45f1a1(0xe76)][_0x45f1a1(0x13c1)],'sectionId':0x12d})[_0x45f1a1(0x1d77)];})[_0x3e22ee(0x1cb0)](function(_0x5dc673){const _0xe12c0=_0x3e22ee,_0x300f84=_0x5dc673&&_0x5dc673['rows']?_0x5dc673[_0xe12c0(0x2214)][0x0]:null;if(!_0x300f84){const _0x449ab2=[];let _0x5c9632=null;_0x294394[_0xe12c0(0xb91)]&&(_0x5c9632=_0x39641b()[_0xe12c0(0x13b4)](_0x294394[_0xe12c0(0x1046)],{'id':Number(_0x294394[_0xe12c0(0xb91)][_0xe12c0(0x20a6)])}));for(let _0xfcc74b=0x0;_0xfcc74b<_0x294394[_0xe12c0(0x1046)][_0xe12c0(0xfd0)];_0xfcc74b++){_0x5c9632&&_0x294394[_0xe12c0(0x1046)][_0xfcc74b]['id']===_0x5c9632['id']&&(_0x294394[_0xe12c0(0x1046)][_0xfcc74b][_0xe12c0(0x15da)]=![],_0x449ab2['push'](_0x294394[_0xe12c0(0x1046)][_0xfcc74b]));}_0x294394[_0xe12c0(0x1046)]=_0x449ab2;}else{if(!_0x300f84[_0xe12c0(0x12f4)])return _0x267083[_0xe12c0(0x1198)]['get']({'sectionId':_0x300f84['id']})[_0xe12c0(0x1d77)][_0xe12c0(0x1cb0)](function(_0xec7d19){const _0x325607=_0xe12c0,_0x30d6ae=_0x39641b()[_0x325607(0x1de2)](_0xec7d19[_0x325607(0x2214)],function(_0x11af36){const _0x3b7872=_0x325607;return _0x39641b()[_0x3b7872(0x13b4)](_0x294394[_0x3b7872(0x1046)],{'id':_0x11af36[_0x3b7872(0x2982)]});});let _0x135eef=null;_0x294394['faxAccount']&&(_0x135eef=_0x39641b()['find'](_0x294394[_0x325607(0x1046)],{'id':Number(_0x294394[_0x325607(0xb91)][_0x325607(0x20a6)])}));if(_0x135eef&&!_0x39641b()[_0x325607(0x727)](_0x30d6ae,['id',_0x135eef['id']])){const _0x3e4d3f=_0x39641b()[_0x325607(0x13b4)](_0x294394[_0x325607(0x1046)],{'id':_0x135eef['id']});_0x3e4d3f[_0x325607(0x15da)]=![],_0x30d6ae[_0x325607(0x2785)](_0x3e4d3f);}_0x294394[_0x325607(0x1046)]=_0x30d6ae;});}})['catch'](function(_0x42867f){const _0x2f1ecf=_0x3e22ee;_0x15b2c1[_0x2f1ecf(0x218e)]({'title':_0x42867f[_0x2f1ecf(0x291)]?_0x2f1ecf(0xeb9)+_0x42867f[_0x2f1ecf(0x291)]+'\x20-\x20'+_0x42867f[_0x2f1ecf(0xc22)]:_0x2f1ecf(0x113c),'msg':_0x42867f['data']?JSON['stringify'](_0x42867f['data']):_0x42867f[_0x2f1ecf(0x147f)]()});});function _0x3002f7(){const _0x4836c5=_0x3e22ee;_0x294394[_0x4836c5(0x1a7c)]=[],_0x267083[_0x4836c5(0xb91)][_0x4836c5(0x121c)](_0x294394[_0x4836c5(0xb91)])[_0x4836c5(0x1d77)][_0x4836c5(0x1cb0)](function(_0xb6c336){const _0x4caf78=_0x4836c5;_0x294394[_0x4caf78(0x29de)][_0x4caf78(0xf63)](_0xb6c336[_0x4caf78(0x19b2)]()),_0x15b2c1['success']({'title':_0x4caf78(0x1860),'msg':_0x294394['faxAccount'][_0x4caf78(0x16b6)]?_0x294394[_0x4caf78(0xb91)]['name']+_0x4caf78(0x470):''}),_0x5178f6(_0xb6c336);})['catch'](function(_0x1b70f9){const _0xfb5892=_0x4836c5;if(_0x1b70f9[_0xfb5892(0x25c)]&&_0x1b70f9['data']['errors']&&_0x1b70f9[_0xfb5892(0x25c)][_0xfb5892(0x1a7c)]['length']){_0x294394[_0xfb5892(0x1a7c)]=_0x1b70f9[_0xfb5892(0x25c)]['errors']||[{'message':_0x1b70f9[_0xfb5892(0x147f)](),'type':_0xfb5892(0x977)}];for(let _0xbe31cd=0x0;_0xbe31cd<_0x1b70f9[_0xfb5892(0x25c)][_0xfb5892(0x1a7c)]['length'];_0xbe31cd+=0x1){_0x15b2c1[_0xfb5892(0x218e)]({'title':_0x1b70f9['data'][_0xfb5892(0x1a7c)][_0xbe31cd][_0xfb5892(0x66a)],'msg':_0x1b70f9[_0xfb5892(0x25c)][_0xfb5892(0x1a7c)][_0xbe31cd][_0xfb5892(0x155e)]});}}else _0x15b2c1[_0xfb5892(0x218e)]({'title':_0x1b70f9[_0xfb5892(0x291)]?_0xfb5892(0xeb9)+_0x1b70f9[_0xfb5892(0x291)]+_0xfb5892(0x1657)+_0x1b70f9[_0xfb5892(0xc22)]:'api.faxAccount.save','msg':_0x1b70f9[_0xfb5892(0x25c)]?JSON[_0xfb5892(0x2701)](_0x1b70f9[_0xfb5892(0x25c)][_0xfb5892(0x155e)]):_0x1b70f9[_0xfb5892(0x147f)]()});});}function _0x2e415f(){const _0x172a17=_0x3e22ee;_0x294394['errors']=[],_0x267083['faxAccount'][_0x172a17(0xff3)](_0x294394[_0x172a17(0xb91)])[_0x172a17(0x1d77)][_0x172a17(0x1cb0)](function(_0x11fc4f){const _0x1f562a=_0x172a17,_0xddfee2=_0x39641b()[_0x1f562a(0x13b4)](_0x294394[_0x1f562a(0x29de)],{'id':_0x11fc4f['id']});_0xddfee2&&_0x39641b()[_0x1f562a(0x9c1)](_0xddfee2,_0x39641b()[_0x1f562a(0x169b)](_0x11fc4f[_0x1f562a(0x19b2)](),_0x39641b()[_0x1f562a(0x1be5)](_0xddfee2))),_0x15b2c1[_0x1f562a(0x829)]({'title':_0x1f562a(0x24eb),'msg':_0x294394[_0x1f562a(0xb91)][_0x1f562a(0x16b6)]?_0x294394[_0x1f562a(0xb91)][_0x1f562a(0x16b6)]+_0x1f562a(0xedb):''}),_0x5178f6(_0x11fc4f);})[_0x172a17(0x1c4)](function(_0x15ca23){const _0x366bae=_0x172a17;if(_0x15ca23[_0x366bae(0x25c)]&&_0x15ca23['data'][_0x366bae(0x1a7c)]&&_0x15ca23['data'][_0x366bae(0x1a7c)][_0x366bae(0xfd0)]){_0x294394[_0x366bae(0x1a7c)]=_0x15ca23[_0x366bae(0x25c)][_0x366bae(0x1a7c)]||[{'message':_0x15ca23['toString'](),'type':'api.faxAccount.update'}];for(let _0x5cb982=0x0;_0x5cb982<_0x15ca23[_0x366bae(0x25c)][_0x366bae(0x1a7c)][_0x366bae(0xfd0)];_0x5cb982++){_0x15b2c1[_0x366bae(0x218e)]({'title':_0x15ca23[_0x366bae(0x25c)][_0x366bae(0x1a7c)][_0x5cb982][_0x366bae(0x66a)],'msg':_0x15ca23[_0x366bae(0x25c)][_0x366bae(0x1a7c)][_0x5cb982]['message']});}}else _0x15b2c1[_0x366bae(0x218e)]({'title':_0x15ca23[_0x366bae(0x291)]?'API:'+_0x15ca23[_0x366bae(0x291)]+'\x20-\x20'+_0x15ca23[_0x366bae(0xc22)]:_0x366bae(0x182f),'msg':_0x15ca23[_0x366bae(0x25c)]?JSON[_0x366bae(0x2701)](_0x15ca23[_0x366bae(0x25c)][_0x366bae(0x155e)]):_0x15ca23[_0x366bae(0x147f)]()});});}function _0x407d7d(_0x55bb97){const _0x45257d=_0x3e22ee;_0x294394[_0x45257d(0x1a7c)]=[];const _0x59f5b7=_0x5ba8cc[_0x45257d(0x1551)]()[_0x45257d(0x1386)](_0x45257d(0x1a2e))[_0x45257d(0x862)](_0x45257d(0xe41))[_0x45257d(0x15ad)](_0x45257d(0xc77))['ok']('Delete')[_0x45257d(0x696)](_0x45257d(0xde1))['targetEvent'](_0x55bb97);_0x5ba8cc['show'](_0x59f5b7)[_0x45257d(0x1cb0)](function(){const _0x458f86=_0x45257d;_0x267083[_0x458f86(0xb91)][_0x458f86(0x111d)]({'id':_0x294394[_0x458f86(0xb91)]['id']})[_0x458f86(0x1d77)]['then'](function(){const _0xb926e1=_0x458f86;_0x39641b()[_0xb926e1(0x152a)](_0x294394['faxAccounts'],{'id':_0x294394[_0xb926e1(0xb91)]['id']}),_0x15b2c1['success']({'title':_0xb926e1(0x24aa),'msg':(_0x294394[_0xb926e1(0xb91)][_0xb926e1(0x16b6)]||'faxAccount')+_0xb926e1(0x3f5)}),_0x5178f6(_0x294394[_0xb926e1(0xb91)]);})[_0x458f86(0x1c4)](function(_0x1213ee){const _0x6a5e8f=_0x458f86;if(_0x1213ee[_0x6a5e8f(0x25c)]&&_0x1213ee[_0x6a5e8f(0x25c)][_0x6a5e8f(0x1a7c)]&&_0x1213ee['data'][_0x6a5e8f(0x1a7c)]['length']){_0x294394[_0x6a5e8f(0x1a7c)]=_0x1213ee['data'][_0x6a5e8f(0x1a7c)]||[{'message':_0x1213ee[_0x6a5e8f(0x147f)](),'type':_0x6a5e8f(0x1b19)}];for(let _0x103a40=0x0;_0x103a40<_0x1213ee['data'][_0x6a5e8f(0x1a7c)][_0x6a5e8f(0xfd0)];_0x103a40++){_0x15b2c1[_0x6a5e8f(0x218e)]({'title':_0x1213ee[_0x6a5e8f(0x25c)][_0x6a5e8f(0x1a7c)][_0x103a40][_0x6a5e8f(0x66a)],'msg':_0x1213ee[_0x6a5e8f(0x25c)][_0x6a5e8f(0x1a7c)][_0x103a40][_0x6a5e8f(0x155e)]});}}else _0x15b2c1[_0x6a5e8f(0x218e)]({'title':_0x1213ee[_0x6a5e8f(0x291)]?_0x6a5e8f(0xeb9)+_0x1213ee[_0x6a5e8f(0x291)]+_0x6a5e8f(0x1657)+_0x1213ee[_0x6a5e8f(0xc22)]:_0x6a5e8f(0x1b19),'msg':_0x1213ee[_0x6a5e8f(0x25c)]?JSON[_0x6a5e8f(0x2701)](_0x1213ee[_0x6a5e8f(0x25c)][_0x6a5e8f(0x155e)]):_0x1213ee[_0x6a5e8f(0x155e)]||_0x1213ee[_0x6a5e8f(0x147f)]()});});},function(){});}function _0x3d3d57(_0x3155c7){return _0x3155c7===null?undefined:new Date(_0x3155c7);}function _0x5178f6(_0x33edd3){const _0x29b93a=_0x3e22ee;_0x5ba8cc[_0x29b93a(0x1426)](_0x33edd3);}}const _0x13c28e=_0xa2b126;;const _0x59ddb4=_0x5074a3['p']+_0x5537c6(0x1cd2);;const _0x39fb83=_0x5074a3['p']+_0x5537c6(0x1f92);;const _0x2a338d=_0x5074a3['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotoif/dialog.html/dialog.html';;const _0x474060=_0x5074a3['p']+_0x5537c6(0x1b2b);;const _0x52025e=_0x5074a3['p']+_0x5537c6(0x39b);;const _0x345198=_0x5074a3['p']+_0x5537c6(0x45c);;const _0x40992c=_0x5074a3['p']+_0x5537c6(0x1179);;const _0x57e75f=_0x5074a3['p']+_0x5537c6(0x2529);;const _0x42fa56=_0x5074a3['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/tag/dialog.html/dialog.html';;_0x5a382b['$inject']=[_0x5537c6(0x142b),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x9bf),'Auth'];const _0x1fdc5e={'agent':_0x59ddb4,'close':_0x39fb83,'gotoif':_0x2a338d,'gotop':_0x474060,'interval':_0x52025e,'noop':_0x345198,'queue':_0x40992c,'system':_0x57e75f,'tag':_0x42fa56};function _0x5a382b(_0x1034f4,_0x17fdef,_0x3dfb91,_0x3b0894,_0x3c0939){const _0x3b2362=_0x5537c6,_0x3b7d96=this;_0x3b7d96[_0x3b2362(0xe76)]=_0x3c0939['getCurrentUser'](),_0x3b7d96[_0x3b2362(0xb91)]={},_0x3b7d96[_0x3b2362(0x23df)]={'count':0x0,'rows':[]},_0x3b7d96[_0x3b2362(0x14c4)]=[],_0x3b7d96[_0x3b2362(0x1b1a)],_0x3b7d96['query']={'sort':'priority'},_0x3b7d96[_0x3b2362(0x196f)]=_0x39641b()[_0x3b2362(0x988)](_0x39641b()[_0x3b2362(0x1d33)]([{'app':'Interval','appType':_0x3b2362(0x1ac8),'types':[_0x3b2362(0x2017),'custom',_0x3b2362(0x240)],'fields':[],'isApp':![]},{'app':_0x3b2362(0x1234),'appType':_0x3b2362(0x1234),'type':'noop','icon':_0x3b2362(0x33e),'interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':'Value','name':_0x3b2362(0x327),'type':_0x3b2362(0x19d3),'param':0x0}]},{'app':_0x3b2362(0x7be),'appType':'system','type':'system','icon':'icon-apps','interval':'*,*,*,*','required':!![],'isApp':!![],'extraApi':[{'name':'variables','field':{'name':_0x3b2362(0x1822),'key':_0x3b2362(0x16b6)},'route':'variable','filters':{'fields':_0x3b2362(0x43c),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x3b2362(0x1b9),'name':_0x3b2362(0xd0d),'type':_0x3b2362(0x19d3),'required':!![],'param':0x0},{'title':'Variable','name':'variable','type':_0x3b2362(0xb52),'values':_0x3b2362(0x9a9),'value':_0x3b2362(0x3f3),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':'None'}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':_0x3b2362(0x265b),'type':_0x3b2362(0x3da),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':'Priority','name':_0x3b2362(0x521),'type':'number','required':!![],'min':0x0,'param':0x0}]},{'app':_0x3b2362(0x13a0),'appType':_0x3b2362(0x13a0),'type':_0x3b2362(0x13a0),'icon':_0x3b2362(0x33e),'interval':_0x3b2362(0x965),'isApp':!![],'fields':[{'title':_0x3b2362(0x28f5),'name':_0x3b2362(0x166c),'type':_0x3b2362(0x19d3),'required':!![],'param':0x0},{'title':_0x3b2362(0xb24),'name':_0x3b2362(0xb24),'type':_0x3b2362(0x83d),'min':0x1,'required':!![],'param':0x1},{'title':_0x3b2362(0x17d),'name':_0x3b2362(0x17d),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':_0x3b2362(0x11cf),'appType':_0x3b2362(0x11cf),'foreignKey':_0x3b2362(0x1a99),'type':_0x3b2362(0x11cf),'icon':_0x3b2362(0x33e),'interval':_0x3b2362(0x965),'isApp':!![],'extraApi':[{'name':_0x3b2362(0x971),'field':{'name':_0x3b2362(0x11cf),'key':_0x3b2362(0x16b6)},'route':_0x3b2362(0x54d),'filters':{'fields':_0x3b2362(0x1896),'sort':_0x3b2362(0x16b6),'nolimit':!![]},'permissions':{'section':0x385}}],'fields':[{'title':_0x3b2362(0x2687),'name':_0x3b2362(0x11cf),'type':_0x3b2362(0xb52),'values':'queues','value':_0x3b2362(0x19b3),'option':_0x3b2362(0x19b3),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x3b2362(0xbcc),'name':'timeout','type':_0x3b2362(0x83d),'max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':'agent','appType':_0x3b2362(0x1eff),'type':_0x3b2362(0x1eff),'foreignKey':_0x3b2362(0x21ab),'icon':_0x3b2362(0x33e),'interval':_0x3b2362(0x965),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':'agent','key':_0x3b2362(0x16b6)},'route':'user','filters':{'fields':_0x3b2362(0x43c),'sort':'name','role':_0x3b2362(0x1eff),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x3b2362(0x30e),'name':'agent','type':'apiselect','values':'agents','value':_0x3b2362(0x302),'option':_0x3b2362(0x302),'required':!![],'param':0x0},{'title':_0x3b2362(0xbcc),'name':_0x3b2362(0x1719),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x3b2362(0xf3b),'appType':_0x3b2362(0xf3b),'type':_0x3b2362(0xf3b),'icon':_0x3b2362(0x33e),'interval':_0x3b2362(0x965),'isApp':!![],'fields':[{'title':_0x3b2362(0x2542),'name':_0x3b2362(0x1746),'type':_0x3b2362(0x19d3),'required':!![],'param':0x0}]},{'app':_0x3b2362(0x22b1),'appType':_0x3b2362(0x22b1),'type':_0x3b2362(0x22b1),'foreignKey':_0x3b2362(0x1754),'icon':_0x3b2362(0x33e),'interval':_0x3b2362(0x965),'isApp':!![],'extraApi':[{'name':_0x3b2362(0xfbf),'field':{'name':_0x3b2362(0x22b1),'key':_0x3b2362(0x16b6)},'route':_0x3b2362(0x22b1),'filters':{'fields':_0x3b2362(0x43c),'sort':_0x3b2362(0x16b6),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x3b2362(0xf2d),'name':_0x3b2362(0x22b1),'type':_0x3b2362(0xb52),'values':_0x3b2362(0xfbf),'value':_0x3b2362(0x52a),'option':_0x3b2362(0x52a),'required':!![],'param':0x0}]}],[_0x3b2362(0x22e1)]),{'isApp':![]}),_0x3b7d96[_0x3b2362(0x240)]={'group':{'name':_0x3b2362(0x2523),'pull':'clone'},'animation':0x64,'sort':![]},_0x3b7d96['applications']={'group':{'name':'opt2','put':'opt1'},'animation':0x64,'onAdd':function(_0x4ae282){const _0x3597e5=_0x3b2362;_0x1d5870(_0x4ae282,_0x4ae282[_0x3597e5(0x22e)]);},'onSort':function(){_0xef2900();}},_0x3b7d96[_0x3b2362(0x1a8e)]=_0x375d49,_0x3b7d96[_0x3b2362(0xb25)]=_0x138bd7,_0x3b7d96['getFaxAccountApps']=_0x4551d6,_0x3b7d96[_0x3b2362(0x1710)]=_0x1d5870,_0x3b7d96[_0x3b2362(0x1eee)]=_0x58aa46,_0x3b7d96[_0x3b2362(0xdf4)]=_0x1a72ba,_0x3b7d96[_0x3b2362(0x2481)]=_0x39547a,_0x3b7d96[_0x3b2362(0x463)]=_0xef2900,_0x3b7d96[_0x3b2362(0x22fc)]=_0x30c51a;function _0x375d49(_0x1bd288,_0x2deb2f){const _0x44eb42=_0x3b2362;_0x3b7d96['faxAccount']=_0x1bd288,_0x3b7d96[_0x44eb42(0x1b1a)]=typeof _0x2deb2f!==_0x44eb42(0x16b5)?_0x2deb2f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3b7d96[_0x44eb42(0x1f2f)][_0x44eb42(0x379)]=!_0x3b7d96[_0x44eb42(0x1b1a)]['canEdit']?!![]:![],_0x3b7d96['query']['id']=_0x1bd288['id'],_0x3b7d96[_0x44eb42(0xae2)][_0x44eb42(0xead)]=!![],_0x3b7d96[_0x44eb42(0xae2)][_0x44eb42(0x2282)]=!![],_0x3b7d96[_0x44eb42(0x6f7)](),_0x3b7d96[_0x44eb42(0x22fc)]();}function _0x138bd7(_0x3abdb8,_0x1e32cf,_0x35938d){const _0x5e0d23=_0x3b2362,_0x3e3f88=_0x17fdef[_0x5e0d23(0x1551)]()[_0x5e0d23(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0x5e0d23(0x49e)](_0x5e0d23(0x204d)+_0x3abdb8['app']+_0x5e0d23(0x1200)+'\x20will\x20be\x20deleted.')[_0x5e0d23(0x15ad)]('delete\x20application')[_0x5e0d23(0x728)](_0x35938d)['ok']('OK')[_0x5e0d23(0x696)](_0x5e0d23(0x24ba));_0x17fdef[_0x5e0d23(0xe27)](_0x3e3f88)[_0x5e0d23(0x1cb0)](function(){const _0x19e178=_0x5e0d23;_0x3b7d96[_0x19e178(0x23df)]['rows'][_0x19e178(0x159c)](_0x1e32cf,0x1),_0xef2900();},function(){console['log']('CANCEL');});}function _0x1d5870(_0x228f94,_0x1db545){const _0x2d9296=_0x3b2362;if(_0x3b7d96[_0x2d9296(0x23df)][_0x2d9296(0x2214)]['length']){const _0x3f489f=_0x3b7d96[_0x2d9296(0x23df)]['rows'][_0x1db545]?_0x3b7d96[_0x2d9296(0x23df)]['rows'][_0x1db545]:_0x3b7d96[_0x2d9296(0x23df)][_0x2d9296(0x2214)][0x0],_0x23b981=(_0x3f489f[_0x2d9296(0x299b)]||_0x3f489f[_0x2d9296(0x22e1)])[_0x2d9296(0x1680)]();_0x17fdef[_0x2d9296(0xe27)]({'controller':_0x2d9296(0x1c70)+_0x23b981+'DialogController','controllerAs':'vm','templateUrl':_0x1fdc5e[_0x23b981],'parent':angular[_0x2d9296(0x1853)](_0x3dfb91[_0x2d9296(0x1ed9)]),'targetEvent':_0x228f94,'clickOutsideToClose':!![],'locals':{'faxAccountApp':_0x3f489f,'faxAccount':_0x3b7d96[_0x2d9296(0xb91)],'crudPermissions':_0x3b7d96[_0x2d9296(0x1b1a)]}})[_0x2d9296(0x1cb0)](function(_0x5208e0){const _0x1a8a15=_0x2d9296;_0x5208e0&&(_0x5208e0['id']?_0x3b7d96[_0x1a8a15(0x23df)]['rows'][_0x1db545]=_0x5208e0:_0x3b7d96['faxAccountApps'][_0x1a8a15(0x2214)]['splice'](_0x1db545,0x0,_0x5208e0),_0xef2900());})['catch'](function(_0x2ef483){const _0x303f93=_0x2d9296;_0x2ef483&&_0x3b0894[_0x303f93(0x218e)]({'title':_0x2ef483[_0x303f93(0x291)]?_0x303f93(0xeb9)+_0x2ef483['status']+_0x303f93(0x1657)+_0x2ef483[_0x303f93(0xc22)]:_0x303f93(0xd95),'msg':_0x2ef483['data']?JSON[_0x303f93(0x2701)](_0x2ef483[_0x303f93(0x25c)]):_0x2ef483[_0x303f93(0x147f)]()});});}}function _0x58aa46(_0x1d3990,_0x3e0109){const _0x66720d=_0x3b2362;if(_0x3b7d96[_0x66720d(0x23df)][_0x66720d(0x2214)][_0x66720d(0xfd0)]){const _0x266123=_0x3b7d96[_0x66720d(0x23df)][_0x66720d(0x2214)][_0x3e0109]?_0x3b7d96[_0x66720d(0x23df)]['rows'][_0x3e0109]:_0x3b7d96['faxAccountApps']['rows'][0x0];_0x17fdef[_0x66720d(0xe27)]({'controller':_0x66720d(0x17b4),'controllerAs':'vm','templateUrl':_0x52025e,'parent':angular['element'](_0x3dfb91[_0x66720d(0x1ed9)]),'targetEvent':_0x1d3990,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x266123[_0x66720d(0x1ac8)],'IntervalId':_0x266123[_0x66720d(0x1a60)],'application':!![]},'intervals':[],'crudPermissions':_0x3b7d96[_0x66720d(0x1b1a)]}})[_0x66720d(0x1cb0)](function(_0x5f471f){const _0x591b7c=_0x66720d;_0x5f471f&&(_0x266123[_0x591b7c(0x1ac8)]=_0x5f471f[_0x591b7c(0x1ac8)]||'*,*,*,*',_0x266123[_0x591b7c(0x1a60)]=_0x5f471f[_0x591b7c(0x1a60)]||null,_0xef2900());});}}function _0xef2900(){const _0x3c21ff=_0x3b2362;let _0x568d8f=0x1,_0x3145f8=[];for(let _0x348bcf=0x0;_0x348bcf<_0x3b7d96[_0x3c21ff(0x23df)][_0x3c21ff(0x2214)][_0x3c21ff(0xfd0)];_0x348bcf++){const _0x4b4fd7=_0x3b7d96[_0x3c21ff(0x23df)]['rows'][_0x348bcf],_0x2f461c=[],_0x408621=[];_0x4b4fd7['intervals']=_0x4b4fd7['interval']!==_0x3c21ff(0x965)?[_0x4b4fd7['interval']]:_0x4b4fd7[_0x3c21ff(0x1a60)]?_0x39641b()[_0x3c21ff(0x1de2)](_0x39641b()[_0x3c21ff(0x1c99)](_0x3b7d96[_0x3c21ff(0xb4a)][_0x3c21ff(0x2214)],{'IntervalId':_0x4b4fd7[_0x3c21ff(0x1a60)]}),_0x3c21ff(0x1ac8)):[],_0x4b4fd7[_0x3c21ff(0x2056)]=_0x3b7d96[_0x3c21ff(0xb91)][_0x3c21ff(0x2056)],_0x4b4fd7[_0x3c21ff(0x26a2)]=_0x3b7d96[_0x3c21ff(0xb91)][_0x3c21ff(0x26a2)],_0x4b4fd7[_0x3c21ff(0x66a)]&&(_0x4b4fd7[_0x3c21ff(0x66a)]=_0x4b4fd7['type'][_0x3c21ff(0x1680)]()),_0x4b4fd7[_0x3c21ff(0x521)]=_0x2f461c[_0x3c21ff(0xfd0)]?_0x39641b()[_0x3c21ff(0x1f9e)](_0x2f461c)['priority']+0x1:_0x568d8f,_0x568d8f=(_0x408621[_0x3c21ff(0xfd0)]?_0x39641b()[_0x3c21ff(0x1f9e)](_0x408621)[_0x3c21ff(0x521)]:_0x4b4fd7[_0x3c21ff(0x521)])+0x1,_0x3145f8=_0x39641b()[_0x3c21ff(0x298a)](_0x3145f8,_0x2f461c,[_0x4b4fd7],_0x408621);}_0x1034f4[_0x3c21ff(0xb91)]['addApplications']({'id':_0x3b7d96[_0x3c21ff(0xb91)]['id']},_0x39641b()[_0x3c21ff(0x1d33)](_0x3145f8,'priority'))['$promise'][_0x3c21ff(0x1cb0)](function(_0x1ef17a){const _0x150ec4=_0x3c21ff;_0x3b7d96[_0x150ec4(0x23df)][_0x150ec4(0x2214)]=_0x1ef17a[_0x150ec4(0x2214)];})[_0x3c21ff(0x1c4)](function(_0x37dae2){const _0x4c9243=_0x3c21ff;console[_0x4c9243(0x218e)](_0x37dae2);});}function _0x1a8f33(_0x3c6e98){const _0x23033f=_0x3b2362;_0x3b7d96[_0x23033f(0x23df)]=_0x3c6e98||{'count':0x0,'rows':[]};}function _0x30c51a(){const _0x678f9b=_0x3b2362;return _0x1034f4[_0x678f9b(0x1ac8)][_0x678f9b(0xbf7)]({'fields':'id,interval,IntervalId'})['$promise'][_0x678f9b(0x1cb0)](function(_0x476265){_0x3b7d96['intervals']=_0x476265;})[_0x678f9b(0x1c4)](function(_0x1caaf4){console['error'](_0x1caaf4);});}function _0x4551d6(){const _0x33e782=_0x3b2362;_0x3b7d96[_0x33e782(0x2061)]=_0x1034f4['faxAccount'][_0x33e782(0x930)](_0x3b7d96[_0x33e782(0xae2)],_0x1a8f33)['$promise'];}function _0x1a72ba(_0x5bebae){const _0x5574c2=_0x3b2362;_0x39641b()[_0x5574c2(0x152a)](_0x3b7d96['faxAccountApps'][_0x5574c2(0x2214)],{'id':_0x5bebae['id']}),_0xef2900(),_0x3b0894[_0x5574c2(0x829)]({'title':_0x5574c2(0x2923),'msg':_0x5bebae[_0x5574c2(0x22e1)]?_0x5bebae[_0x5574c2(0x22e1)]+_0x5574c2(0x3f5):''});}function _0x39547a(_0x333310){const _0x395ec2=_0x3b2362,_0x1364cf=_0x17fdef[_0x395ec2(0x1551)]()['title'](_0x395ec2(0x2436))[_0x395ec2(0x49e)](''+_0x3b7d96[_0x395ec2(0x14c4)]['length']+_0x395ec2(0x1d6c)+_0x395ec2(0x1b6))['ariaLabel'](_0x395ec2(0x531))[_0x395ec2(0x728)](_0x333310)['ok']('OK')['cancel']('CANCEL');_0x17fdef[_0x395ec2(0xe27)](_0x1364cf)[_0x395ec2(0x1cb0)](function(){const _0x174bd1=_0x395ec2;_0x3b7d96[_0x174bd1(0x14c4)][_0x174bd1(0xf90)](function(_0x3ac1c8){const _0x14cf2f=_0x174bd1;_0x39641b()[_0x14cf2f(0x152a)](_0x3b7d96[_0x14cf2f(0x23df)][_0x14cf2f(0x2214)],{'id':_0x3ac1c8['id']});}),_0x3b7d96[_0x174bd1(0x14c4)]=[],_0xef2900();});}}const _0x2066de=_0x5a382b;;_0x4eec21[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0xb91),_0x5537c6(0x29de),_0x5537c6(0x217b),_0x5537c6(0x1ae),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x4eec21(_0x2aad94,_0x1042b3,_0x28041d,_0x2bef14,_0x519a63,_0x416dc9,_0x2ffa22,_0x1c3afe,_0x39e76e,_0x225530){const _0x176c06=_0x5537c6,_0x58b08a=this;_0x58b08a[_0x176c06(0xe76)]=_0x39e76e[_0x176c06(0x21e8)](),_0x58b08a[_0x176c06(0xb91)]=_0x519a63,_0x58b08a['crudPermissions']=_0x225530,_0x58b08a[_0x176c06(0x217b)]=_0x2ffa22,_0x58b08a['items']=[],_0x58b08a[_0x176c06(0x1372)]=[],_0x58b08a[_0x176c06(0x20bb)]=[],_0x58b08a[_0x176c06(0xbd5)]=[],_0x58b08a[_0x176c06(0x1456)]=[],_0x58b08a['pendingChanges']=![],_0x58b08a[_0x176c06(0x1a34)]=_0x4900a,_0x58b08a['saveAgents']=_0x103a4b,_0x58b08a['closeDialog']=_0xe189a6,_0x58b08a[_0x176c06(0x18c0)]={'readOnly':!_0x58b08a[_0x176c06(0x1b1a)]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x176c06(0x1d14),'line2':[_0x176c06(0x16b6),_0x176c06(0xdbd)],'line3':'','labelAll':_0x1c3afe[_0x176c06(0x25cc)]('APP.ALL_AGENTS'),'labelSelected':_0x1c3afe[_0x176c06(0x25cc)](_0x176c06(0x1cd5)),'transferCallback':function(){const _0x4f4b9c=_0x176c06,_0x19a63c=_0x39641b()[_0x4f4b9c(0x1423)](_0x58b08a[_0x4f4b9c(0x1456)],_0x58b08a[_0x4f4b9c(0x20bb)],'id');_0x58b08a[_0x4f4b9c(0x50c)]=_0x39641b()['isEmpty'](_0x19a63c)?![]:!![];}};function _0x4900a(){const _0x280ef1=_0x176c06;return _0x39e76e[_0x280ef1(0x22b6)](_0x280ef1(0x1c60))?_0x21c763()[_0x280ef1(0x1c4)](function(_0x371770){const _0x3ac7fd=_0x280ef1;_0x28041d[_0x3ac7fd(0x218e)]({'title':_0x371770['status']?_0x3ac7fd(0xeb9)+_0x371770[_0x3ac7fd(0x291)]+'\x20-\x20'+_0x371770[_0x3ac7fd(0xc22)]:_0x3ac7fd(0x799),'msg':_0x371770[_0x3ac7fd(0x291)]?JSON[_0x3ac7fd(0x2701)](_0x371770['data']):_0x371770[_0x3ac7fd(0x147f)]()});}):_0x5c7aa6()['then'](function(_0x154128){const _0x5702dc=_0x280ef1;return _0x58b08a[_0x5702dc(0x1f74)]=_0x154128,_0x21c763();})[_0x280ef1(0x1c4)](function(_0x5bdba6){const _0x370f07=_0x280ef1;_0x28041d[_0x370f07(0x218e)]({'title':_0x5bdba6['status']?_0x370f07(0xeb9)+_0x5bdba6[_0x370f07(0x291)]+_0x370f07(0x1657)+_0x5bdba6['statusText']:'SYSTEM:GET_AGENTS','msg':_0x5bdba6[_0x370f07(0x291)]?JSON['stringify'](_0x5bdba6[_0x370f07(0x25c)]):_0x5bdba6['toString']()});});}function _0x5c7aa6(){return _0x1042b3(function(_0x2e3a74,_0x304db8){const _0x39331b=a0_0x5cbd;_0x2bef14[_0x39331b(0x2199)][_0x39331b(0xbf7)]({'userProfileId':_0x58b08a[_0x39331b(0xe76)][_0x39331b(0x13c1)],'name':_0x39331b(0x2536)})[_0x39331b(0x1d77)][_0x39331b(0x1cb0)](function(_0x5f073e){const _0x19bada=_0x39331b,_0x396694=_0x5f073e&&_0x5f073e['rows']?_0x5f073e[_0x19bada(0x2214)][0x0]:null;_0x2e3a74(_0x396694);})[_0x39331b(0x1c4)](function(_0x4926de){_0x304db8(_0x4926de);});});}function _0x21c763(){return _0x1042b3(function(_0x5cd04f,_0x1f15ac){const _0x2fd4f4=a0_0x5cbd;return _0x4fd82a()[_0x2fd4f4(0x1cb0)](function(_0xc9e667){const _0xc7bcc6=_0x2fd4f4;return _0x58b08a[_0xc7bcc6(0x122f)]=_0xc9e667[_0xc7bcc6(0x2214)]?_0xc9e667['rows']:[],_0x39e76e[_0xc7bcc6(0x22b6)](_0xc7bcc6(0x1c60))?_0xc9e667:_0x58b08a[_0xc7bcc6(0x1f74)]?_0x58b08a[_0xc7bcc6(0x1f74)][_0xc7bcc6(0x12f4)]?_0xc9e667:_0xcdaa80():null;})[_0x2fd4f4(0x1cb0)](function(_0x816cfb){const _0x2b268c=_0x2fd4f4,_0x878813=_0x816cfb&&_0x816cfb[_0x2b268c(0x2214)]?_0x816cfb[_0x2b268c(0x2214)]:[];return _0x58b08a[_0x2b268c(0x1372)]=_0x39641b()[_0x2b268c(0x1de2)](_0x878813,function(_0x233a94){const _0x19831b=_0x2b268c;return _0x39641b()[_0x19831b(0x13b4)](_0x58b08a[_0x19831b(0x122f)],{'id':_0x39e76e[_0x19831b(0x22b6)](_0x19831b(0x1c60))||_0x58b08a['section']['autoAssociation']?_0x233a94['id']:_0x233a94[_0x19831b(0x2982)]});}),_0x58b08a['startingAllowedItems']=angular[_0x2b268c(0x17fe)](_0x58b08a[_0x2b268c(0x1372)]),_0x58b08a['items'][_0x2b268c(0xf90)](function(_0x328181){const _0x118724=_0x2b268c,_0x105970=_0x39641b()[_0x118724(0x13b4)](_0x58b08a[_0x118724(0x1372)],{'id':_0x328181['id']});_0x39e76e['hasRole'](_0x118724(0x1c60))?_0x328181[_0x118724(0x1a4f)]=!![]:_0x328181['isValid']=typeof _0x105970!==_0x118724(0x16b5)?!![]:![];}),_0x4896be();})[_0x2fd4f4(0x1cb0)](function(_0x4cc9b0){const _0x1605a9=_0x2fd4f4,_0x42e5dd=_0x4cc9b0&&_0x4cc9b0[_0x1605a9(0x2214)]?_0x4cc9b0['rows']:[];_0x58b08a[_0x1605a9(0x20bb)]=_0x39641b()[_0x1605a9(0x1de2)](_0x42e5dd,function(_0x40dd47){const _0x45787a=_0x1605a9,_0x93de6=_0x39641b()[_0x45787a(0x13b4)](_0x58b08a[_0x45787a(0x122f)],{'id':_0x40dd47['id']});return _0x93de6['penalty']=_0x40dd47[_0x45787a(0x215c)]?_0x45787a(0x455)+_0x40dd47[_0x45787a(0x215c)][_0x45787a(0x1cbc)]:'',_0x93de6[_0x45787a(0xdbd)]=typeof _0x40dd47[_0x45787a(0xdbd)]!=='undefined'?'<'+_0x40dd47[_0x45787a(0xdbd)]+'>':'',_0x93de6;}),_0x58b08a[_0x1605a9(0x1456)]=angular[_0x1605a9(0x17fe)](_0x58b08a[_0x1605a9(0x20bb)]),_0x58b08a['dualMultiselectOptions'][_0x1605a9(0x20bb)]=_0x58b08a[_0x1605a9(0x20bb)],_0x58b08a['dualMultiselectOptions']['items']=_0x39641b()[_0x1605a9(0x2128)](_0x58b08a[_0x1605a9(0x1372)],_0x58b08a['dualMultiselectOptions'][_0x1605a9(0x20bb)],'id'),_0x5cd04f();})[_0x2fd4f4(0x1c4)](function(_0x491b5d){_0x1f15ac(_0x491b5d);});});}function _0xcdaa80(){return _0x1042b3(function(_0x112b78,_0x163aa8){const _0x162a61=a0_0x5cbd;return _0x2bef14[_0x162a61(0x1198)][_0x162a61(0xbf7)]({'sectionId':_0x58b08a[_0x162a61(0x1f74)]['id'],'nolimit':!![]})[_0x162a61(0x1d77)][_0x162a61(0x1cb0)](function(_0x499d21){_0x112b78(_0x499d21);})[_0x162a61(0x1c4)](function(_0x495c6c){_0x163aa8(_0x495c6c);});});}function _0x4896be(){return _0x1042b3(function(_0x28d3fa,_0x13f4b1){const _0x993e6d=a0_0x5cbd;return _0x2bef14[_0x993e6d(0xb91)]['getAgents']({'id':_0x58b08a[_0x993e6d(0xb91)]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x993e6d(0x1eff)})['$promise'][_0x993e6d(0x1cb0)](function(_0x18c0ed){_0x28d3fa(_0x18c0ed);})['catch'](function(_0x12fbde){_0x13f4b1(_0x12fbde);});});}function _0x4fd82a(){return _0x1042b3(function(_0x3006a5,_0x1c3e57){const _0x28cf10=a0_0x5cbd;return _0x2bef14[_0x28cf10(0xebe)][_0x28cf10(0xbf7)]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x28cf10(0x1eff)})['$promise'][_0x28cf10(0x1cb0)](function(_0x2561f1){_0x3006a5(_0x2561f1);})[_0x28cf10(0x1c4)](function(_0x387df0){_0x1c3e57(_0x387df0);});});}function _0x31f3b5(_0xc1897){return _0x1042b3(function(_0x9f5a66,_0x33ddef){const _0x5bda77=a0_0x5cbd;_0x39641b()[_0x5bda77(0xce9)](_0xc1897)?_0x9f5a66():_0x2bef14[_0x5bda77(0xb91)][_0x5bda77(0x2057)]({'id':_0x58b08a[_0x5bda77(0xb91)]['id'],'ids':_0x39641b()[_0x5bda77(0x1de2)](_0xc1897,'id')})[_0x5bda77(0x1d77)][_0x5bda77(0x1cb0)](function(){_0x9f5a66();})['catch'](function(_0xff0edd){_0x33ddef(_0xff0edd);});});}function _0x21b0d9(_0x389ad6){return _0x1042b3(function(_0x15dcfb,_0x13e1e3){const _0x5f2d39=a0_0x5cbd;_0x39641b()[_0x5f2d39(0xce9)](_0x389ad6)?_0x15dcfb():_0x2bef14[_0x5f2d39(0xb91)][_0x5f2d39(0x223f)]({'id':_0x58b08a['faxAccount']['id'],'ids':_0x39641b()[_0x5f2d39(0x1de2)](_0x389ad6,'id')})[_0x5f2d39(0x1d77)]['then'](function(){_0x15dcfb();})[_0x5f2d39(0x1c4)](function(_0x536bf9){_0x13e1e3(_0x536bf9);});});}function _0x103a4b(){const _0x5e89d6=_0x176c06,_0x34bba1=_0x39641b()[_0x5e89d6(0x2128)](_0x58b08a[_0x5e89d6(0x1456)],_0x58b08a[_0x5e89d6(0x20bb)],'id'),_0x46163e=_0x39641b()[_0x5e89d6(0x2128)](_0x58b08a[_0x5e89d6(0x20bb)],_0x58b08a[_0x5e89d6(0x1456)],'id');return _0x21b0d9(_0x34bba1)[_0x5e89d6(0x1cb0)](function(){return _0x31f3b5(_0x46163e);})[_0x5e89d6(0x1cb0)](function(){const _0x1dc0f6=_0x5e89d6;_0x58b08a['pendingChanges']=![],_0x58b08a[_0x1dc0f6(0xbd5)]=angular[_0x1dc0f6(0x17fe)](_0x58b08a['allowedItems']),_0x58b08a[_0x1dc0f6(0x1456)]=angular[_0x1dc0f6(0x17fe)](_0x58b08a[_0x1dc0f6(0x20bb)]),_0x28041d['success']({'title':'SUCCESS','msg':_0x1dc0f6(0x976)});})[_0x5e89d6(0x1c4)](function(_0x1a389f){const _0x41bc0b=_0x5e89d6;_0x28041d[_0x41bc0b(0x218e)]({'title':_0x1a389f['status']?_0x41bc0b(0xeb9)+_0x1a389f[_0x41bc0b(0x291)]+'\x20-\x20'+_0x1a389f[_0x41bc0b(0xc22)]:_0x41bc0b(0x1221),'msg':_0x1a389f[_0x41bc0b(0x291)]?JSON[_0x41bc0b(0x2701)](_0x1a389f[_0x41bc0b(0x25c)]):_0x1a389f[_0x41bc0b(0x147f)]()});});}function _0xe189a6(){_0x2aad94['hide']();}}const _0x39b6c8=_0x4eec21;;_0x3d8464[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x5af),'faxAccount',_0x5537c6(0x142b),'Auth',_0x5537c6(0x1b1a)];function _0x3d8464(_0x30dfa4,_0x558da9,_0x40af53,_0x541355,_0x51fa50,_0x37e7f6,_0x589b06,_0x3fce7d){const _0x3cf21a=_0x5537c6,_0x113298=this;_0x113298[_0x3cf21a(0xe76)]=_0x589b06[_0x3cf21a(0x21e8)](),_0x113298[_0x3cf21a(0x1a7c)]=[],_0x113298[_0x3cf21a(0x1386)]='FAX.EDIT_'+(_0x541355[_0x3cf21a(0x299b)]||_0x541355[_0x3cf21a(0x22e1)])[_0x3cf21a(0x2335)](),_0x113298[_0x3cf21a(0x1eff)]=angular[_0x3cf21a(0x17fe)](_0x541355),_0x113298[_0x3cf21a(0x1b1a)]=_0x3fce7d,_0x113298[_0x3cf21a(0xf4c)]={};if(_0x113298[_0x3cf21a(0x1eff)]['appdata'])switch(_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x299b)]?_0x113298[_0x3cf21a(0x1eff)]['appType'][_0x3cf21a(0x1680)]():_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x22e1)][_0x3cf21a(0x1680)]()){case _0x3cf21a(0x197c):break;case'dialogflow':{const _0x361e81=_0x113298['agent']['appdata'][_0x3cf21a(0xbe1)](',');_0x113298[_0x3cf21a(0x1eff)]['key']=_0x361e81[0x0],_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x12b4)]=_0x361e81[0x1],_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x173a)]=_0x361e81[_0x3cf21a(0x14cb)](0x2,_0x361e81['length'])['join'](',');}break;case _0x3cf21a(0xece):{const _0xc359d2=_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x28df)][_0x3cf21a(0xbe1)](',');_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x2854)]=_0xc359d2[0x0],_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x12bf)]=_0xc359d2[0x1],_0x113298[_0x3cf21a(0x1eff)]['privateKey']=_0xc359d2[0x2],_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x12b4)]=_0xc359d2[0x3],_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x173a)]=_0xc359d2['slice'](0x4,_0xc359d2[_0x3cf21a(0xfd0)])[_0x3cf21a(0x1f66)](',');}break;case _0x3cf21a(0x123a):{const _0x58fe1b=_0x113298['agent']['appdata'][_0x3cf21a(0xbe1)](',');_0x113298[_0x3cf21a(0x1eff)]['accesskeyid']=_0x58fe1b[0x0],_0x113298['agent'][_0x3cf21a(0x21d9)]=_0x58fe1b[0x1],_0x113298['agent'][_0x3cf21a(0xd50)]=_0x58fe1b[0x2],_0x113298['agent'][_0x3cf21a(0x1c7f)]=_0x58fe1b[0x3],_0x113298[_0x3cf21a(0x1eff)]['welcomemessage']=_0x58fe1b['slice'](0x4,_0x58fe1b[_0x3cf21a(0xfd0)])['join'](',');}break;case _0x3cf21a(0x1f71):{const _0x4d4ad2=_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x28df)][_0x3cf21a(0xbe1)](',');_0x113298[_0x3cf21a(0x1eff)]['times']=isNaN(_0x4d4ad2[0x0])?_0x4d4ad2[0x0]:parseInt(_0x4d4ad2[0x0],0xa),_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x19d3)]=_0x4d4ad2['slice'](0x1,_0x4d4ad2[_0x3cf21a(0xfd0)])['join'](',');}break;case'message':_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x19d3)]=_0x113298['agent'][_0x3cf21a(0x28df)];break;case'set':_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x16b6)]=_0x113298['agent']['appdata'][_0x3cf21a(0xbe1)]('=')[0x0],_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x327)]=_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x28df)][_0x3cf21a(0xbe1)]('=')[0x1];break;case _0x3cf21a(0x4b4):_0x113298['agent'][_0x3cf21a(0x12a7)]=_0x113298['agent']['appdata'];break;default:{const _0x5e4d07=_0x113298['agent'][_0x3cf21a(0x28df)][_0x3cf21a(0xbe1)](',');_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x1eff)]=_0x39641b()[_0x3cf21a(0xce9)](_0x5e4d07[0x0])?_0x5e4d07[0x0]:isNaN(_0x5e4d07[0x0])?_0x5e4d07[0x0]:parseInt(_0x5e4d07[0x0],0xa),_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x1719)]=_0x39641b()[_0x3cf21a(0xce9)](_0x5e4d07[0x1])?_0x5e4d07[0x1]:isNaN(_0x5e4d07[0x1])?_0x5e4d07[0x1]:parseInt(_0x5e4d07[0x1],0xa);}break;}else _0x113298['agent'][_0x3cf21a(0x1719)]=0x1e;_0x113298['agent'][_0x3cf21a(0x66a)]&&_0x113298[_0x3cf21a(0x1eff)]['type'][_0x3cf21a(0x1680)]()==='outbound'&&_0x113298['agent'][_0x3cf21a(0x299b)][_0x3cf21a(0x1680)]()==='outbounddial'&&(_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x586)]=_0x113298['agent'][_0x3cf21a(0x1340)]?_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x1340)][_0x3cf21a(0xbe1)]('$')[0x0]:undefined,_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x1e7c)]=_0x113298[_0x3cf21a(0x1eff)][_0x3cf21a(0x2816)]?_0x3cf21a(0x25f9)+_0x113298['agent']['callerID']:undefined);_0x113298[_0x3cf21a(0x19ad)]=_0x40a787,_0x113298[_0x3cf21a(0xda0)]=_0x3a2d52,_0x589b06[_0x3cf21a(0x22b6)](_0x3cf21a(0x1c60))?_0x37e7f6[_0x3cf21a(0xebe)][_0x3cf21a(0xbf7)]({'fields':_0x3cf21a(0x43c),'sort':_0x3cf21a(0x16b6),'role':_0x3cf21a(0x1eff),'nolimit':_0x3cf21a(0x44d)})[_0x3cf21a(0x1d77)][_0x3cf21a(0x1cb0)](function(_0x37015a){const _0xd19500=_0x3cf21a;_0x113298[_0xd19500(0xc12)]=_0x37015a[_0xd19500(0x2214)]||[];})[_0x3cf21a(0x1c4)](function(_0x26848f){const _0x93d469=_0x3cf21a;_0x40af53[_0x93d469(0x218e)]({'title':_0x26848f[_0x93d469(0x291)]?_0x93d469(0xeb9)+_0x26848f['status']+'\x20-\x20'+_0x26848f[_0x93d469(0xc22)]:'SYSTEM:GET_AGENTS','msg':_0x26848f[_0x93d469(0x25c)]?JSON[_0x93d469(0x2701)](_0x26848f['data']):_0x26848f['toString']()});}):_0x37e7f6[_0x3cf21a(0xebe)]['get']({'fields':_0x3cf21a(0x43c),'sort':_0x3cf21a(0x16b6),'role':_0x3cf21a(0x1eff),'nolimit':_0x3cf21a(0x44d)})['$promise'][_0x3cf21a(0x1cb0)](function(_0x1a7eb7){const _0x39d357=_0x3cf21a;_0x113298[_0x39d357(0xc12)]=_0x1a7eb7[_0x39d357(0x2214)]||[];})[_0x3cf21a(0x1cb0)](function(){const _0x273a0c=_0x3cf21a;return _0x37e7f6[_0x273a0c(0x2199)][_0x273a0c(0xbf7)]({'userProfileId':_0x113298[_0x273a0c(0xe76)][_0x273a0c(0x13c1)],'sectionId':0xca})[_0x273a0c(0x1d77)];})[_0x3cf21a(0x1cb0)](function(_0x3a06e9){const _0x3d0420=_0x3cf21a,_0x2d9da7=_0x3a06e9&&_0x3a06e9['rows']?_0x3a06e9['rows'][0x0]:null;if(!_0x2d9da7){const _0x1a8e64=[];let _0x32e05c=null;_0x113298['agent']&&(_0x32e05c=_0x39641b()[_0x3d0420(0x13b4)](_0x113298[_0x3d0420(0xc12)],{'name':_0x113298[_0x3d0420(0x1eff)][_0x3d0420(0x1eff)]}));for(let _0x423fbe=0x0;_0x423fbe<_0x113298[_0x3d0420(0xc12)]['length'];_0x423fbe++){_0x32e05c&&_0x113298[_0x3d0420(0xc12)][_0x423fbe]['id']===_0x32e05c['id']&&(_0x113298['agents'][_0x423fbe][_0x3d0420(0x15da)]=![],_0x1a8e64[_0x3d0420(0x2785)](_0x113298[_0x3d0420(0xc12)][_0x423fbe]));}_0x113298['agents']=_0x1a8e64;}else{if(!_0x2d9da7['autoAssociation'])return _0x37e7f6[_0x3d0420(0x1198)][_0x3d0420(0xbf7)]({'sectionId':_0x2d9da7['id']})[_0x3d0420(0x1d77)][_0x3d0420(0x1cb0)](function(_0x12659c){const _0x59c4b6=_0x3d0420,_0x4855a3=_0x39641b()[_0x59c4b6(0x1de2)](_0x12659c[_0x59c4b6(0x2214)],function(_0x242a0e){const _0x34ea33=_0x59c4b6;return _0x39641b()[_0x34ea33(0x13b4)](_0x113298[_0x34ea33(0xc12)],{'id':_0x242a0e[_0x34ea33(0x2982)]});});let _0x2e38c8=null;_0x113298[_0x59c4b6(0x1eff)]&&(_0x2e38c8=_0x39641b()['find'](_0x113298['agents'],{'name':_0x113298[_0x59c4b6(0x1eff)][_0x59c4b6(0x1eff)]}));if(_0x2e38c8&&!_0x39641b()[_0x59c4b6(0x727)](_0x4855a3,['id',_0x2e38c8['id']])){const _0x2f6d40=_0x39641b()[_0x59c4b6(0x13b4)](_0x113298[_0x59c4b6(0xc12)],{'id':_0x2e38c8['id']});_0x2f6d40['canSelect']=![],_0x4855a3[_0x59c4b6(0x2785)](_0x2f6d40);}_0x113298['agents']=_0x4855a3;});}})[_0x3cf21a(0x1c4)](function(_0x38e79c){const _0x2e7167=_0x3cf21a;_0x40af53[_0x2e7167(0x218e)]({'title':_0x38e79c['status']?_0x2e7167(0xeb9)+_0x38e79c[_0x2e7167(0x291)]+'\x20-\x20'+_0x38e79c[_0x2e7167(0xc22)]:_0x2e7167(0x2159),'msg':_0x38e79c[_0x2e7167(0x25c)]?JSON['stringify'](_0x38e79c[_0x2e7167(0x25c)]):_0x38e79c['toString']()});});function _0x40a787(){const _0x2d1770=_0x3cf21a;_0x113298[_0x2d1770(0x1a7c)]=[];const _0x21b2f7=[];_0x113298['agent'][_0x2d1770(0x66a)]&&_0x113298[_0x2d1770(0x1eff)][_0x2d1770(0x66a)][_0x2d1770(0x1680)]()==='outbound'&&_0x113298[_0x2d1770(0x1eff)][_0x2d1770(0x299b)]===_0x2d1770(0x25f4)&&(_0x113298['agent']['phone']=_0x51fa50[_0x2d1770(0x325)]?(_0x113298['agent'][_0x2d1770(0x586)]||'')+_0x2d1770(0x19e4)+_0x51fa50['cutdigits']+'}':(_0x113298[_0x2d1770(0x1eff)][_0x2d1770(0x586)]||'')+_0x2d1770(0xcdd),_0x51fa50['recordingFormat']!==_0x2d1770(0x13b1)?_0x113298['agent'][_0x2d1770(0x2224)][_0x2d1770(0xd8a)](_0x2d1770(0x106a))<0x0&&(_0x113298[_0x2d1770(0x1eff)]['options']+='U(xcally-mixmonitor-context)'):_0x113298[_0x2d1770(0x1eff)][_0x2d1770(0x2224)]=_0x113298[_0x2d1770(0x1eff)]['options']['replace'](_0x2d1770(0x106a),''));const _0x3f996f=_0x39641b()[_0x2d1770(0x13b4)](_0x113298[_0x2d1770(0xc12)],{'name':_0x113298[_0x2d1770(0x1eff)]['agent']});_0x3f996f&&(_0x113298[_0x2d1770(0x1eff)][_0x2d1770(0x21ab)]=_0x3f996f['id']);if(_0x113298[_0x2d1770(0x1eff)]['appType']&&_0x113298[_0x2d1770(0x1eff)][_0x2d1770(0x299b)]==='custom'){}else switch((_0x113298[_0x2d1770(0x1eff)][_0x2d1770(0x22e1)]||_0x113298['agent'][_0x2d1770(0x299b)])[_0x2d1770(0x1680)]()){case _0x2d1770(0x19d1):_0x113298[_0x2d1770(0x1eff)][_0x2d1770(0x28df)]=_0x113298['agent'][_0x2d1770(0x16b6)]+'='+_0x113298[_0x2d1770(0x1eff)]['value'];break;case'custom':break;default:_0x21b2f7[0x0]=_0x113298[_0x2d1770(0x1eff)]['agent'],_0x21b2f7[0x1]=_0x113298[_0x2d1770(0x1eff)]['timeout'],_0x113298['agent'][_0x2d1770(0x28df)]=_0x21b2f7['join'](',');}_0x3a2d52(_0x113298[_0x2d1770(0x1eff)]);}function _0x3a2d52(_0x3a2d32){const _0x721804=_0x3cf21a;_0x30dfa4[_0x721804(0x1426)](_0x3a2d32);}}const _0x23ec31=_0x3d8464;;_0x194e8e['$inject']=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x5af),_0x5537c6(0xb91),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x194e8e(_0x3046f9,_0x1476cc,_0x268f15,_0x50e4a3,_0x2e9165,_0x372aef,_0x409c9a,_0x447789){const _0x5484ac=_0x5537c6,_0x4d3e74=this;_0x4d3e74[_0x5484ac(0xe76)]=_0x409c9a['getCurrentUser'](),_0x4d3e74['errors']=[],_0x4d3e74['title']=_0x5484ac(0xc13)+(_0x50e4a3[_0x5484ac(0x299b)]||_0x50e4a3[_0x5484ac(0x22e1)])[_0x5484ac(0x2335)](),_0x4d3e74['close']=angular[_0x5484ac(0x17fe)](_0x50e4a3),_0x4d3e74[_0x5484ac(0x1b1a)]=_0x447789,_0x4d3e74[_0x5484ac(0xf4c)]={};if(_0x4d3e74['close'][_0x5484ac(0x28df)])switch(_0x4d3e74['close'][_0x5484ac(0x299b)]?_0x4d3e74[_0x5484ac(0xf3b)][_0x5484ac(0x299b)]['toLowerCase']():_0x4d3e74[_0x5484ac(0xf3b)][_0x5484ac(0x22e1)][_0x5484ac(0x1680)]()){case _0x5484ac(0x197c):break;case _0x5484ac(0x711):{const _0x526e1b=_0x4d3e74[_0x5484ac(0xf3b)]['appdata'][_0x5484ac(0xbe1)](',');_0x4d3e74[_0x5484ac(0xf3b)][_0x5484ac(0xee8)]=_0x526e1b[0x0],_0x4d3e74['close']['language']=_0x526e1b[0x1],_0x4d3e74['close']['welcomemessage']=_0x526e1b['slice'](0x2,_0x526e1b[_0x5484ac(0xfd0)])[_0x5484ac(0x1f66)](',');}break;case _0x5484ac(0xece):{const _0x296ee1=_0x4d3e74[_0x5484ac(0xf3b)][_0x5484ac(0x28df)][_0x5484ac(0xbe1)](',');_0x4d3e74[_0x5484ac(0xf3b)][_0x5484ac(0x2854)]=_0x296ee1[0x0],_0x4d3e74['close']['clientEmail']=_0x296ee1[0x1],_0x4d3e74[_0x5484ac(0xf3b)]['privateKey']=_0x296ee1[0x2],_0x4d3e74[_0x5484ac(0xf3b)]['language']=_0x296ee1[0x3],_0x4d3e74[_0x5484ac(0xf3b)]['welcomemessage']=_0x296ee1[_0x5484ac(0x14cb)](0x4,_0x296ee1[_0x5484ac(0xfd0)])['join'](',');}break;case _0x5484ac(0x123a):{const _0x1bfed1=_0x4d3e74[_0x5484ac(0xf3b)]['appdata'][_0x5484ac(0xbe1)](',');_0x4d3e74[_0x5484ac(0xf3b)][_0x5484ac(0x413)]=_0x1bfed1[0x0],_0x4d3e74[_0x5484ac(0xf3b)]['secretaccesskey']=_0x1bfed1[0x1],_0x4d3e74[_0x5484ac(0xf3b)][_0x5484ac(0xd50)]=_0x1bfed1[0x2],_0x4d3e74[_0x5484ac(0xf3b)]['botname']=_0x1bfed1[0x3],_0x4d3e74['close'][_0x5484ac(0x173a)]=_0x1bfed1['slice'](0x4,_0x1bfed1[_0x5484ac(0xfd0)])['join'](',');}break;case'autoreply':{const _0xbfaabb=_0x4d3e74['close'][_0x5484ac(0x28df)]['split'](',');_0x4d3e74['close']['times']=isNaN(_0xbfaabb[0x0])?_0xbfaabb[0x0]:parseInt(_0xbfaabb[0x0],0xa),_0x4d3e74[_0x5484ac(0xf3b)]['text']=_0xbfaabb['slice'](0x1,_0xbfaabb['length'])[_0x5484ac(0x1f66)](',');}break;case _0x5484ac(0x155e):_0x4d3e74['close'][_0x5484ac(0x19d3)]=_0x4d3e74[_0x5484ac(0xf3b)][_0x5484ac(0x28df)];break;case _0x5484ac(0x19d1):_0x4d3e74['close'][_0x5484ac(0x16b6)]=_0x4d3e74[_0x5484ac(0xf3b)]['appdata'][_0x5484ac(0xbe1)]('=')[0x0],_0x4d3e74['close'][_0x5484ac(0x327)]=_0x4d3e74[_0x5484ac(0xf3b)][_0x5484ac(0x28df)]['split']('=')[0x1];break;case _0x5484ac(0x4b4):_0x4d3e74[_0x5484ac(0xf3b)][_0x5484ac(0x12a7)]=_0x4d3e74[_0x5484ac(0xf3b)][_0x5484ac(0x28df)];break;default:{const _0x4255ca=_0x4d3e74[_0x5484ac(0xf3b)]['appdata'][_0x5484ac(0xbe1)](',');_0x4d3e74[_0x5484ac(0xf3b)][_0x5484ac(0x1746)]=_0x39641b()[_0x5484ac(0xce9)](_0x4255ca[0x0])?_0x4255ca[0x0]:isNaN(_0x4255ca[0x0])?_0x4255ca[0x0]:parseInt(_0x4255ca[0x0],0xa);}break;}else{}_0x4d3e74['close'][_0x5484ac(0x66a)]&&_0x4d3e74[_0x5484ac(0xf3b)][_0x5484ac(0x66a)]['toLowerCase']()===_0x5484ac(0x895)&&_0x4d3e74[_0x5484ac(0xf3b)][_0x5484ac(0x299b)]['toLowerCase']()===_0x5484ac(0x20ff)&&(_0x4d3e74['close']['prefix']=_0x4d3e74['close'][_0x5484ac(0x1340)]?_0x4d3e74[_0x5484ac(0xf3b)]['phone']['split']('$')[0x0]:undefined,_0x4d3e74['close'][_0x5484ac(0x1e7c)]=_0x4d3e74[_0x5484ac(0xf3b)][_0x5484ac(0x2816)]?_0x5484ac(0x25f9)+_0x4d3e74[_0x5484ac(0xf3b)][_0x5484ac(0x2816)]:undefined);_0x4d3e74[_0x5484ac(0x19ad)]=_0x518516,_0x4d3e74[_0x5484ac(0xda0)]=_0x5bd7f6;function _0x518516(){const _0x43dbe2=_0x5484ac;_0x4d3e74[_0x43dbe2(0x1a7c)]=[];const _0x451790=[];_0x4d3e74['close'][_0x43dbe2(0x66a)]&&_0x4d3e74[_0x43dbe2(0xf3b)][_0x43dbe2(0x66a)][_0x43dbe2(0x1680)]()===_0x43dbe2(0x895)&&_0x4d3e74[_0x43dbe2(0xf3b)][_0x43dbe2(0x299b)]===_0x43dbe2(0x25f4)&&(_0x4d3e74[_0x43dbe2(0xf3b)][_0x43dbe2(0x1340)]=_0x2e9165[_0x43dbe2(0x325)]?(_0x4d3e74['close'][_0x43dbe2(0x586)]||'')+_0x43dbe2(0x19e4)+_0x2e9165[_0x43dbe2(0x325)]+'}':(_0x4d3e74[_0x43dbe2(0xf3b)][_0x43dbe2(0x586)]||'')+_0x43dbe2(0xcdd),_0x2e9165[_0x43dbe2(0xf8d)]!=='none'?_0x4d3e74[_0x43dbe2(0xf3b)][_0x43dbe2(0x2224)][_0x43dbe2(0xd8a)](_0x43dbe2(0x106a))<0x0&&(_0x4d3e74['close'][_0x43dbe2(0x2224)]+=_0x43dbe2(0x106a)):_0x4d3e74['close'][_0x43dbe2(0x2224)]=_0x4d3e74[_0x43dbe2(0xf3b)][_0x43dbe2(0x2224)][_0x43dbe2(0x288f)](_0x43dbe2(0x106a),''));if(_0x4d3e74[_0x43dbe2(0xf3b)]['appType']&&_0x4d3e74[_0x43dbe2(0xf3b)][_0x43dbe2(0x299b)]==='custom'){}else switch((_0x4d3e74[_0x43dbe2(0xf3b)][_0x43dbe2(0x22e1)]||_0x4d3e74[_0x43dbe2(0xf3b)][_0x43dbe2(0x299b)])[_0x43dbe2(0x1680)]()){case _0x43dbe2(0x19d1):_0x4d3e74['close']['appdata']=_0x4d3e74[_0x43dbe2(0xf3b)]['name']+'='+_0x4d3e74['close'][_0x43dbe2(0x327)];break;case _0x43dbe2(0x197c):break;default:_0x451790[0x0]=_0x4d3e74[_0x43dbe2(0xf3b)][_0x43dbe2(0x1746)],_0x4d3e74[_0x43dbe2(0xf3b)][_0x43dbe2(0x28df)]=_0x451790[_0x43dbe2(0x1f66)](',');}_0x5bd7f6(_0x4d3e74[_0x43dbe2(0xf3b)]);}function _0x5bd7f6(_0x2900a0){const _0x5d212b=_0x5484ac;_0x3046f9[_0x5d212b(0x1426)](_0x2900a0);}}const _0x2e3575=_0x194e8e;;_0x5cff74[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),'faxAccountApp',_0x5537c6(0xb91),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x5cff74(_0x4d2ee0,_0x25e644,_0x52837c,_0x19489d,_0x11612b,_0x2eb606,_0x17debe,_0x117f32){const _0x339c94=_0x5537c6,_0x55360d=this;_0x55360d[_0x339c94(0xe76)]=_0x17debe[_0x339c94(0x21e8)](),_0x55360d[_0x339c94(0x1a7c)]=[],_0x55360d[_0x339c94(0x1386)]=_0x339c94(0xc13)+(_0x19489d[_0x339c94(0x299b)]||_0x19489d[_0x339c94(0x22e1)])[_0x339c94(0x2335)](),_0x55360d['gotoif']=angular[_0x339c94(0x17fe)](_0x19489d),_0x55360d[_0x339c94(0x1b1a)]=_0x117f32,_0x55360d['hasModulePermissions']={};if(_0x55360d['gotoif'][_0x339c94(0x28df)])switch(_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x299b)]?_0x55360d['gotoif'][_0x339c94(0x299b)]['toLowerCase']():_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x22e1)][_0x339c94(0x1680)]()){case _0x339c94(0x197c):break;case _0x339c94(0x711):{const _0x49c0e9=_0x55360d[_0x339c94(0x13a0)]['appdata'][_0x339c94(0xbe1)](',');_0x55360d[_0x339c94(0x13a0)][_0x339c94(0xee8)]=_0x49c0e9[0x0],_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x12b4)]=_0x49c0e9[0x1],_0x55360d['gotoif'][_0x339c94(0x173a)]=_0x49c0e9[_0x339c94(0x14cb)](0x2,_0x49c0e9[_0x339c94(0xfd0)])[_0x339c94(0x1f66)](',');}break;case _0x339c94(0xece):{const _0x44b333=_0x55360d['gotoif'][_0x339c94(0x28df)]['split'](',');_0x55360d[_0x339c94(0x13a0)]['projectId']=_0x44b333[0x0],_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x12bf)]=_0x44b333[0x1],_0x55360d['gotoif'][_0x339c94(0x29d6)]=_0x44b333[0x2],_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x12b4)]=_0x44b333[0x3],_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x173a)]=_0x44b333['slice'](0x4,_0x44b333['length'])[_0x339c94(0x1f66)](',');}break;case _0x339c94(0x123a):{const _0x2e0db6=_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x28df)][_0x339c94(0xbe1)](',');_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x413)]=_0x2e0db6[0x0],_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x21d9)]=_0x2e0db6[0x1],_0x55360d[_0x339c94(0x13a0)][_0x339c94(0xd50)]=_0x2e0db6[0x2],_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x1c7f)]=_0x2e0db6[0x3],_0x55360d[_0x339c94(0x13a0)]['welcomemessage']=_0x2e0db6[_0x339c94(0x14cb)](0x4,_0x2e0db6[_0x339c94(0xfd0)])[_0x339c94(0x1f66)](',');}break;case'autoreply':{const _0x32b169=_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x28df)][_0x339c94(0xbe1)](',');_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x18a5)]=isNaN(_0x32b169[0x0])?_0x32b169[0x0]:parseInt(_0x32b169[0x0],0xa),_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x19d3)]=_0x32b169[_0x339c94(0x14cb)](0x1,_0x32b169[_0x339c94(0xfd0)])[_0x339c94(0x1f66)](',');}break;case _0x339c94(0x155e):_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x19d3)]=_0x55360d['gotoif'][_0x339c94(0x28df)];break;case'set':_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x16b6)]=_0x55360d[_0x339c94(0x13a0)]['appdata']['split']('=')[0x0],_0x55360d['gotoif'][_0x339c94(0x327)]=_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x28df)][_0x339c94(0xbe1)]('=')[0x1];break;case'agi':_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x12a7)]=_0x55360d['gotoif'][_0x339c94(0x28df)];break;default:{const _0xd55277=_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x28df)][_0x339c94(0xbe1)](',');_0x55360d[_0x339c94(0x13a0)]['condition']=_0x39641b()['isEmpty'](_0xd55277[0x0])?_0xd55277[0x0]:isNaN(_0xd55277[0x0])?_0xd55277[0x0]:parseInt(_0xd55277[0x0],0xa),_0x55360d['gotoif']['truepriority']=_0x39641b()[_0x339c94(0xce9)](_0xd55277[0x1])?_0xd55277[0x1]:isNaN(_0xd55277[0x1])?_0xd55277[0x1]:parseInt(_0xd55277[0x1],0xa),_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x17d)]=_0x39641b()[_0x339c94(0xce9)](_0xd55277[0x2])?_0xd55277[0x2]:isNaN(_0xd55277[0x2])?_0xd55277[0x2]:parseInt(_0xd55277[0x2],0xa);}break;}else{}_0x55360d[_0x339c94(0x13a0)]['type']&&_0x55360d[_0x339c94(0x13a0)]['type']['toLowerCase']()===_0x339c94(0x895)&&_0x55360d['gotoif'][_0x339c94(0x299b)]['toLowerCase']()===_0x339c94(0x20ff)&&(_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x586)]=_0x55360d['gotoif'][_0x339c94(0x1340)]?_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x1340)][_0x339c94(0xbe1)]('$')[0x0]:undefined,_0x55360d['gotoif'][_0x339c94(0x1e7c)]=_0x55360d['gotoif']['callerID']?'CALLERID(all)='+_0x55360d[_0x339c94(0x13a0)][_0x339c94(0x2816)]:undefined);_0x55360d[_0x339c94(0x19ad)]=_0xae5336,_0x55360d[_0x339c94(0xda0)]=_0x40509b;function _0xae5336(){const _0x510fed=_0x339c94;_0x55360d[_0x510fed(0x1a7c)]=[];const _0xe00025=[];_0x55360d['gotoif'][_0x510fed(0x66a)]&&_0x55360d[_0x510fed(0x13a0)]['type']['toLowerCase']()===_0x510fed(0x895)&&_0x55360d[_0x510fed(0x13a0)]['appType']==='outboundDial'&&(_0x55360d[_0x510fed(0x13a0)][_0x510fed(0x1340)]=_0x11612b[_0x510fed(0x325)]?(_0x55360d[_0x510fed(0x13a0)][_0x510fed(0x586)]||'')+_0x510fed(0x19e4)+_0x11612b[_0x510fed(0x325)]+'}':(_0x55360d['gotoif'][_0x510fed(0x586)]||'')+_0x510fed(0xcdd),_0x11612b['recordingFormat']!==_0x510fed(0x13b1)?_0x55360d[_0x510fed(0x13a0)]['options'][_0x510fed(0xd8a)](_0x510fed(0x106a))<0x0&&(_0x55360d[_0x510fed(0x13a0)][_0x510fed(0x2224)]+=_0x510fed(0x106a)):_0x55360d[_0x510fed(0x13a0)][_0x510fed(0x2224)]=_0x55360d['gotoif'][_0x510fed(0x2224)][_0x510fed(0x288f)](_0x510fed(0x106a),''));if(_0x55360d['gotoif'][_0x510fed(0x299b)]&&_0x55360d['gotoif'][_0x510fed(0x299b)]===_0x510fed(0x197c)){}else switch((_0x55360d[_0x510fed(0x13a0)]['app']||_0x55360d['gotoif'][_0x510fed(0x299b)])[_0x510fed(0x1680)]()){case _0x510fed(0x19d1):_0x55360d['gotoif'][_0x510fed(0x28df)]=_0x55360d[_0x510fed(0x13a0)][_0x510fed(0x16b6)]+'='+_0x55360d['gotoif'][_0x510fed(0x327)];break;case _0x510fed(0x197c):break;default:_0xe00025[0x0]=_0x55360d[_0x510fed(0x13a0)][_0x510fed(0x166c)],_0xe00025[0x1]=_0x55360d[_0x510fed(0x13a0)]['truepriority'],_0xe00025[0x2]=_0x55360d[_0x510fed(0x13a0)][_0x510fed(0x17d)],_0x55360d['gotoif'][_0x510fed(0x28df)]=_0xe00025['join'](',');}_0x40509b(_0x55360d['gotoif']);}function _0x40509b(_0x9015aa){const _0x32b399=_0x339c94;_0x4d2ee0[_0x32b399(0x1426)](_0x9015aa);}}const _0xbb55bf=_0x5cff74;;_0x47ad21[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty','faxAccountApp',_0x5537c6(0xb91),_0x5537c6(0x142b),'Auth',_0x5537c6(0x1b1a)];function _0x47ad21(_0x12d32e,_0x19cc3a,_0x5744de,_0x3c74a8,_0xa8e2b4,_0x3142b0,_0x43f228,_0x29d341){const _0xdba4f6=_0x5537c6,_0x176ed4=this;_0x176ed4[_0xdba4f6(0xe76)]=_0x43f228[_0xdba4f6(0x21e8)](),_0x176ed4[_0xdba4f6(0x1a7c)]=[],_0x176ed4[_0xdba4f6(0x1386)]='FAX.EDIT_'+(_0x3c74a8['appType']||_0x3c74a8['app'])[_0xdba4f6(0x2335)](),_0x176ed4[_0xdba4f6(0x265b)]=angular[_0xdba4f6(0x17fe)](_0x3c74a8),_0x176ed4[_0xdba4f6(0x1b1a)]=_0x29d341,_0x176ed4['hasModulePermissions']={};if(_0x176ed4[_0xdba4f6(0x265b)]['appdata'])switch(_0x176ed4['gotop'][_0xdba4f6(0x299b)]?_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x299b)][_0xdba4f6(0x1680)]():_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x22e1)][_0xdba4f6(0x1680)]()){case _0xdba4f6(0x197c):break;case'dialogflow':{const _0x491a2e=_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x28df)][_0xdba4f6(0xbe1)](',');_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0xee8)]=_0x491a2e[0x0],_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x12b4)]=_0x491a2e[0x1],_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x173a)]=_0x491a2e[_0xdba4f6(0x14cb)](0x2,_0x491a2e[_0xdba4f6(0xfd0)])[_0xdba4f6(0x1f66)](',');}break;case'dialogflowv2':{const _0xb0477b=_0x176ed4['gotop']['appdata'][_0xdba4f6(0xbe1)](',');_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x2854)]=_0xb0477b[0x0],_0x176ed4['gotop'][_0xdba4f6(0x12bf)]=_0xb0477b[0x1],_0x176ed4[_0xdba4f6(0x265b)]['privateKey']=_0xb0477b[0x2],_0x176ed4['gotop'][_0xdba4f6(0x12b4)]=_0xb0477b[0x3],_0x176ed4['gotop'][_0xdba4f6(0x173a)]=_0xb0477b['slice'](0x4,_0xb0477b[_0xdba4f6(0xfd0)])['join'](',');}break;case _0xdba4f6(0x123a):{const _0x173513=_0x176ed4['gotop'][_0xdba4f6(0x28df)][_0xdba4f6(0xbe1)](',');_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x413)]=_0x173513[0x0],_0x176ed4[_0xdba4f6(0x265b)]['secretaccesskey']=_0x173513[0x1],_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0xd50)]=_0x173513[0x2],_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x1c7f)]=_0x173513[0x3],_0x176ed4[_0xdba4f6(0x265b)]['welcomemessage']=_0x173513['slice'](0x4,_0x173513[_0xdba4f6(0xfd0)])[_0xdba4f6(0x1f66)](',');}break;case _0xdba4f6(0x1f71):{const _0x4edb05=_0x176ed4[_0xdba4f6(0x265b)]['appdata'][_0xdba4f6(0xbe1)](',');_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x18a5)]=isNaN(_0x4edb05[0x0])?_0x4edb05[0x0]:parseInt(_0x4edb05[0x0],0xa),_0x176ed4['gotop'][_0xdba4f6(0x19d3)]=_0x4edb05['slice'](0x1,_0x4edb05[_0xdba4f6(0xfd0)])['join'](',');}break;case _0xdba4f6(0x155e):_0x176ed4['gotop']['text']=_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x28df)];break;case _0xdba4f6(0x19d1):_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x16b6)]=_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x28df)][_0xdba4f6(0xbe1)]('=')[0x0],_0x176ed4[_0xdba4f6(0x265b)]['value']=_0x176ed4['gotop'][_0xdba4f6(0x28df)][_0xdba4f6(0xbe1)]('=')[0x1];break;case _0xdba4f6(0x4b4):_0x176ed4['gotop']['project']=_0x176ed4['gotop'][_0xdba4f6(0x28df)];break;default:{const _0x1d47ab=_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x28df)][_0xdba4f6(0xbe1)](',');_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x521)]=_0x39641b()[_0xdba4f6(0xce9)](_0x1d47ab[0x0])?_0x1d47ab[0x0]:isNaN(_0x1d47ab[0x0])?_0x1d47ab[0x0]:parseInt(_0x1d47ab[0x0],0xa);}break;}else{}_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x66a)]&&_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x66a)]['toLowerCase']()==='outbound'&&_0x176ed4['gotop'][_0xdba4f6(0x299b)][_0xdba4f6(0x1680)]()===_0xdba4f6(0x20ff)&&(_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x586)]=_0x176ed4['gotop'][_0xdba4f6(0x1340)]?_0x176ed4[_0xdba4f6(0x265b)]['phone']['split']('$')[0x0]:undefined,_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x1e7c)]=_0x176ed4[_0xdba4f6(0x265b)][_0xdba4f6(0x2816)]?'CALLERID(all)='+_0x176ed4[_0xdba4f6(0x265b)]['callerID']:undefined);_0x176ed4[_0xdba4f6(0x19ad)]=_0x3ec9dc,_0x176ed4[_0xdba4f6(0xda0)]=_0x406a7b;function _0x3ec9dc(){const _0x3ab4b6=_0xdba4f6;_0x176ed4[_0x3ab4b6(0x1a7c)]=[];const _0x32daaf=[];_0x176ed4[_0x3ab4b6(0x265b)][_0x3ab4b6(0x66a)]&&_0x176ed4[_0x3ab4b6(0x265b)]['type'][_0x3ab4b6(0x1680)]()==='outbound'&&_0x176ed4[_0x3ab4b6(0x265b)]['appType']===_0x3ab4b6(0x25f4)&&(_0x176ed4[_0x3ab4b6(0x265b)][_0x3ab4b6(0x1340)]=_0xa8e2b4[_0x3ab4b6(0x325)]?(_0x176ed4[_0x3ab4b6(0x265b)][_0x3ab4b6(0x586)]||'')+_0x3ab4b6(0x19e4)+_0xa8e2b4[_0x3ab4b6(0x325)]+'}':(_0x176ed4[_0x3ab4b6(0x265b)][_0x3ab4b6(0x586)]||'')+_0x3ab4b6(0xcdd),_0xa8e2b4[_0x3ab4b6(0xf8d)]!==_0x3ab4b6(0x13b1)?_0x176ed4[_0x3ab4b6(0x265b)][_0x3ab4b6(0x2224)][_0x3ab4b6(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0x176ed4[_0x3ab4b6(0x265b)]['options']+=_0x3ab4b6(0x106a)):_0x176ed4[_0x3ab4b6(0x265b)][_0x3ab4b6(0x2224)]=_0x176ed4['gotop'][_0x3ab4b6(0x2224)][_0x3ab4b6(0x288f)](_0x3ab4b6(0x106a),''));if(_0x176ed4[_0x3ab4b6(0x265b)][_0x3ab4b6(0x299b)]&&_0x176ed4[_0x3ab4b6(0x265b)][_0x3ab4b6(0x299b)]===_0x3ab4b6(0x197c)){}else switch((_0x176ed4[_0x3ab4b6(0x265b)][_0x3ab4b6(0x22e1)]||_0x176ed4[_0x3ab4b6(0x265b)][_0x3ab4b6(0x299b)])[_0x3ab4b6(0x1680)]()){case _0x3ab4b6(0x19d1):_0x176ed4[_0x3ab4b6(0x265b)]['appdata']=_0x176ed4[_0x3ab4b6(0x265b)]['name']+'='+_0x176ed4[_0x3ab4b6(0x265b)][_0x3ab4b6(0x327)];break;case'custom':break;default:_0x32daaf[0x0]=_0x176ed4[_0x3ab4b6(0x265b)]['priority'],_0x176ed4[_0x3ab4b6(0x265b)][_0x3ab4b6(0x28df)]=_0x32daaf[_0x3ab4b6(0x1f66)](',');}_0x406a7b(_0x176ed4[_0x3ab4b6(0x265b)]);}function _0x406a7b(_0x4254a6){const _0x67568=_0xdba4f6;_0x12d32e[_0x67568(0x1426)](_0x4254a6);}}const _0x366e9f=_0x47ad21;;_0x34a910[_0x5537c6(0x15b6)]=['$state',_0x5537c6(0xcb9),_0x5537c6(0x200d),_0x5537c6(0x1b2),'interval',_0x5537c6(0xb4a),_0x5537c6(0x9bf),'api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x34a910(_0x45e758,_0x291c4a,_0x30015d,_0x4a0af1,_0x8c71e0,_0x53202e,_0x52c135,_0x58c3e3,_0x20da72,_0x19ca96){const _0x3607b6=_0x5537c6,_0x248a21=this;_0x248a21['currentUser']=_0x20da72[_0x3607b6(0x21e8)](),_0x248a21['errors']=[],_0x248a21[_0x3607b6(0x1386)]=_0x3607b6(0x1571),_0x248a21[_0x3607b6(0x1ac8)]=angular[_0x3607b6(0x17fe)](_0x8c71e0),_0x248a21[_0x3607b6(0xb4a)]=_0x53202e,_0x248a21[_0x3607b6(0x18c1)]=![],_0x248a21[_0x3607b6(0x2025)]=[_0x3607b6(0x2017),'custom','list'],_0x248a21[_0x3607b6(0x1b1a)]=_0x19ca96,_0x248a21[_0x3607b6(0x1275)]=_0x4a0af1[_0x3607b6(0x1aae)](),_0x248a21[_0x3607b6(0x2055)]=_0x4a0af1['getMonthNumber'](),_0x248a21['monthName']=_0x4a0af1[_0x3607b6(0x7cc)](),_0x248a21[_0x3607b6(0x202d)]=_0x4a0af1[_0x3607b6(0xc1e)]();if(!_0x248a21[_0x3607b6(0x1ac8)])_0x248a21[_0x3607b6(0x1ac8)]={'interval':_0x3607b6(0x965)},_0x248a21['type']=_0x3607b6(0x2017),_0x248a21[_0x3607b6(0x1386)]=_0x3607b6(0x287b),_0x248a21[_0x3607b6(0x18c1)]=!![];else{if(_0x248a21[_0x3607b6(0x1ac8)]['interval']!==_0x3607b6(0x965)){_0x248a21[_0x3607b6(0x66a)]='custom';const _0x525974=_0x248a21[_0x3607b6(0x1ac8)][_0x3607b6(0x1ac8)]['split'](','),_0x55b762=_0x525974[0x0],_0x2edbec=_0x525974[0x1],_0x27e583=_0x525974[0x2],_0xd677b2=_0x525974[0x3];if(_0x55b762!=='*'){const _0x37e7db=_0x55b762[_0x3607b6(0xbe1)]('-')[0x0],_0x238671=_0x55b762['split']('-')[0x1];let _0x26a06e;_0x26a06e=new Date(),_0x26a06e[_0x3607b6(0x201b)](Number(_0x37e7db[_0x3607b6(0xbe1)](':')[0x0])),_0x26a06e['setMinutes'](Number(_0x37e7db[_0x3607b6(0xbe1)](':')[0x1])),_0x248a21['timeRangeFrom']=_0x26a06e,_0x26a06e=new Date(),_0x26a06e[_0x3607b6(0x201b)](Number(_0x238671[_0x3607b6(0xbe1)](':')[0x0])),_0x26a06e[_0x3607b6(0x1622)](Number(_0x238671[_0x3607b6(0xbe1)](':')[0x1])),_0x248a21[_0x3607b6(0x64a)]=_0x26a06e;}_0x2edbec!=='*'&&(_0x248a21['dayOfWeekFrom']=_0x2edbec['split']('-')[0x0],_0x248a21['dayOfWeekTo']=_0x2edbec[_0x3607b6(0xbe1)]('-')[0x1]),_0x27e583!=='*'&&(_0x248a21[_0x3607b6(0xd6f)]=_0x27e583['split']('-')[0x0],_0x248a21['monthDayTo']=_0x27e583[_0x3607b6(0xbe1)]('-')[0x1]),_0xd677b2!=='*'&&(_0x248a21['monthFrom']=_0xd677b2[_0x3607b6(0xbe1)]('-')[0x0],_0x248a21[_0x3607b6(0xa68)]=_0xd677b2[_0x3607b6(0xbe1)]('-')[0x1]);}else _0x248a21[_0x3607b6(0x66a)]=_0x3607b6(0x2017);}_0x45e758['params']['id']&&!_0x248a21['interval'][_0x3607b6(0x171b)]&&(_0x248a21[_0x3607b6(0x1ac8)][_0x3607b6(0x1a60)]=_0x45e758[_0x3607b6(0x1dfe)]['id']);_0x248a21[_0x3607b6(0x1ac8)][_0x3607b6(0x1a60)]&&_0x248a21[_0x3607b6(0x1ac8)][_0x3607b6(0x171b)]&&(_0x248a21[_0x3607b6(0x66a)]='list');_0x248a21[_0x3607b6(0x18b3)]=_0x394fe3,_0x248a21[_0x3607b6(0x1891)]=_0x58f547,_0x248a21[_0x3607b6(0xda0)]=_0x5e1b3f;_0x248a21[_0x3607b6(0x1ac8)]['application']&&(_0x20da72['hasRole'](_0x3607b6(0x1c60))?_0x58c3e3[_0x3607b6(0x1ac8)][_0x3607b6(0xbf7)]({'fields':'id,name,interval,IntervalId','IntervalId':_0x3607b6(0xd38),'nolimit':!![]})[_0x3607b6(0x1d77)][_0x3607b6(0x1cb0)](function(_0x568efe){const _0x12b86f=_0x3607b6;_0x248a21['intervals']=_0x568efe[_0x12b86f(0x2214)]||[];})[_0x3607b6(0x1c4)](function(_0x29b1b5){const _0x380492=_0x3607b6;_0x52c135['error']({'title':_0x29b1b5[_0x380492(0x291)]?_0x380492(0xeb9)+_0x29b1b5[_0x380492(0x291)]+_0x380492(0x1657)+_0x29b1b5[_0x380492(0xc22)]:'SYSTEM:GET_INTERVALS','msg':_0x29b1b5[_0x380492(0x25c)]?JSON['stringify'](_0x29b1b5[_0x380492(0x25c)]):_0x29b1b5[_0x380492(0x147f)]()});}):_0x58c3e3[_0x3607b6(0x1ac8)]['get']({'fields':_0x3607b6(0x872),'IntervalId':_0x3607b6(0xd38),'nolimit':!![]})[_0x3607b6(0x1d77)]['then'](function(_0x28aae2){const _0x5376fd=_0x3607b6;_0x248a21[_0x5376fd(0xb4a)]=_0x28aae2['rows']||[];})[_0x3607b6(0x1cb0)](function(){const _0x1a09e2=_0x3607b6;return _0x58c3e3[_0x1a09e2(0x2199)][_0x1a09e2(0xbf7)]({'userProfileId':_0x248a21[_0x1a09e2(0xe76)][_0x1a09e2(0x13c1)],'sectionId':0x3ec})['$promise'];})['then'](function(_0x4a15f3){const _0x5686ac=_0x3607b6,_0x20e22f=_0x4a15f3&&_0x4a15f3['rows']?_0x4a15f3[_0x5686ac(0x2214)][0x0]:null;if(!_0x20e22f)_0x248a21[_0x5686ac(0xb4a)]=[];else{if(!_0x20e22f['autoAssociation'])return _0x58c3e3[_0x5686ac(0x1198)][_0x5686ac(0xbf7)]({'sectionId':_0x20e22f['id']})[_0x5686ac(0x1d77)][_0x5686ac(0x1cb0)](function(_0x21d6c4){const _0x131864=_0x5686ac,_0x5992a2=_0x21d6c4&&_0x21d6c4[_0x131864(0x2214)]?_0x21d6c4[_0x131864(0x2214)]:[],_0xffc063=[];let _0x3c8925=null;_0x248a21[_0x131864(0x1ac8)]&&(_0x3c8925=_0x39641b()[_0x131864(0x13b4)](_0x248a21[_0x131864(0xb4a)],{'name':_0x248a21['interval'][_0x131864(0x1a60)]})),_0x3c8925&&!_0x39641b()['some'](_0x5992a2,['resourceId',_0x3c8925['id']])&&_0x248a21[_0x131864(0xb4a)][_0x131864(0xf90)](function(_0x45dc1a){const _0xadde94=_0x131864;_0x45dc1a['id']===_0x3c8925['id']&&(_0x45dc1a[_0xadde94(0x15da)]=![],_0xffc063[_0xadde94(0x2785)](_0x45dc1a));}),_0x248a21['intervals']=_0xffc063;});}})[_0x3607b6(0x1c4)](function(_0x422312){const _0x5bbaa1=_0x3607b6;_0x52c135[_0x5bbaa1(0x218e)]({'title':_0x422312[_0x5bbaa1(0x291)]?_0x5bbaa1(0xeb9)+_0x422312[_0x5bbaa1(0x291)]+_0x5bbaa1(0x1657)+_0x422312['statusText']:_0x5bbaa1(0xdac),'msg':_0x422312[_0x5bbaa1(0x25c)]?JSON[_0x5bbaa1(0x2701)](_0x422312['data']):_0x422312[_0x5bbaa1(0x147f)]()});}));function _0x3d8c6f(){const _0x5e4f4a=_0x3607b6;switch(_0x248a21[_0x5e4f4a(0x66a)]){case _0x5e4f4a(0x2017):case _0x5e4f4a(0x240):return _0x5e4f4a(0x965);case'custom':{const _0x434f43=[];if(_0x248a21[_0x5e4f4a(0x718)]!=='*'&&_0x248a21[_0x5e4f4a(0x718)]&&_0x248a21[_0x5e4f4a(0x64a)]){const _0x3f35da=(_0x248a21[_0x5e4f4a(0x718)][_0x5e4f4a(0x1169)]()<0xa?'0':'')+_0x248a21[_0x5e4f4a(0x718)][_0x5e4f4a(0x1169)]()+':'+((_0x248a21['timeRangeFrom'][_0x5e4f4a(0x851)]()<0xa?'0':'')+_0x248a21['timeRangeFrom'][_0x5e4f4a(0x851)]()),_0x20ca53=(_0x248a21[_0x5e4f4a(0x64a)][_0x5e4f4a(0x1169)]()<0xa?'0':'')+_0x248a21['timeRangeTo']['getHours']()+':'+((_0x248a21['timeRangeTo'][_0x5e4f4a(0x851)]()<0xa?'0':'')+_0x248a21[_0x5e4f4a(0x64a)]['getMinutes']());_0x434f43[_0x5e4f4a(0x2785)](_0x3f35da+'-'+_0x20ca53);}else _0x434f43[_0x5e4f4a(0x2785)]('*');return _0x248a21['dayOfWeekFrom']?_0x248a21[_0x5e4f4a(0x28db)]?_0x434f43['push'](_0x248a21[_0x5e4f4a(0x28a6)]+'-'+_0x248a21[_0x5e4f4a(0x28db)]):_0x434f43[_0x5e4f4a(0x2785)](_0x248a21[_0x5e4f4a(0x28a6)]):_0x434f43['push']('*'),_0x248a21[_0x5e4f4a(0xd6f)]?_0x248a21[_0x5e4f4a(0x194d)]?_0x434f43[_0x5e4f4a(0x2785)](_0x248a21[_0x5e4f4a(0xd6f)]+'-'+_0x248a21[_0x5e4f4a(0x194d)]):_0x434f43['push'](_0x248a21[_0x5e4f4a(0xd6f)]):_0x434f43[_0x5e4f4a(0x2785)]('*'),_0x248a21[_0x5e4f4a(0x1756)]?_0x248a21[_0x5e4f4a(0xa68)]?_0x434f43['push'](_0x248a21[_0x5e4f4a(0x1756)]+'-'+_0x248a21[_0x5e4f4a(0xa68)]):_0x434f43[_0x5e4f4a(0x2785)](_0x248a21[_0x5e4f4a(0x1756)]):_0x434f43[_0x5e4f4a(0x2785)]('*'),_0x434f43[_0x5e4f4a(0x1f66)]();}}}function _0x394fe3(){const _0x527886=_0x3607b6;_0x248a21['errors']=[],_0x248a21[_0x527886(0x1ac8)][_0x527886(0x1ac8)]=_0x3d8c6f(),_0x58c3e3[_0x527886(0x1ac8)][_0x527886(0x1c3f)](_0x248a21['interval'])[_0x527886(0x1d77)][_0x527886(0x1cb0)](function(_0x25424a){const _0x4c91b6=_0x527886;_0x248a21[_0x4c91b6(0xb4a)][_0x4c91b6(0x2785)](_0x25424a),_0x52c135['success']({'title':'Interval\x20properly\x20created','msg':_0x248a21[_0x4c91b6(0x1ac8)][_0x4c91b6(0x16b6)]?_0x248a21[_0x4c91b6(0x1ac8)][_0x4c91b6(0x16b6)]+_0x4c91b6(0x470):''}),_0x5e1b3f();})[_0x527886(0x1c4)](function(_0xf8aa0d){const _0x3e25fa=_0x527886;console[_0x3e25fa(0x218e)](_0xf8aa0d),_0x248a21[_0x3e25fa(0x1a7c)]=_0xf8aa0d[_0x3e25fa(0x25c)][_0x3e25fa(0x1a7c)]||[{'message':_0xf8aa0d['toString'](),'type':_0x3e25fa(0x24f7)}];});}function _0x58f547(){const _0x4886c4=_0x3607b6;_0x248a21[_0x4886c4(0x1a7c)]=[],_0x248a21[_0x4886c4(0x1ac8)][_0x4886c4(0x1ac8)]=_0x3d8c6f(),_0x248a21[_0x4886c4(0x1ac8)][_0x4886c4(0x171b)]?(_0x248a21[_0x4886c4(0x66a)]!==_0x4886c4(0x240)&&(_0x248a21[_0x4886c4(0x1ac8)][_0x4886c4(0x1a60)]=null),_0x5e1b3f(_0x248a21[_0x4886c4(0x1ac8)])):_0x58c3e3['interval'][_0x4886c4(0x687)]({'id':_0x248a21[_0x4886c4(0x1ac8)]['id']},_0x248a21[_0x4886c4(0x1ac8)])[_0x4886c4(0x1d77)]['then'](function(_0x3ef8b4){const _0x4c9b88=_0x4886c4,_0x32ddc5=_0x39641b()[_0x4c9b88(0x13b4)](_0x248a21[_0x4c9b88(0xb4a)],{'id':_0x3ef8b4['id']});_0x32ddc5&&_0x39641b()[_0x4c9b88(0x9c1)](_0x32ddc5,_0x3ef8b4),_0x52c135[_0x4c9b88(0x829)]({'title':_0x4c9b88(0x1498),'msg':_0x4c9b88(0x2994)}),_0x5e1b3f();})[_0x4886c4(0x1c4)](function(_0x34dfa5){const _0xb9c545=_0x4886c4;console[_0xb9c545(0x218e)](_0x34dfa5),_0x248a21[_0xb9c545(0x1a7c)]=_0x34dfa5[_0xb9c545(0x25c)][_0xb9c545(0x1a7c)]||[{'message':_0x34dfa5[_0xb9c545(0x147f)](),'type':'api.interval.update'}];});}function _0x5e1b3f(_0x255cf1){const _0x30b6b5=_0x3607b6;_0x291c4a[_0x30b6b5(0x1426)](_0x255cf1);}}const _0x2a6154=_0x34a910;;_0x555ae1[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x5af),_0x5537c6(0xb91),'api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x555ae1(_0x16ef3c,_0x5a2b5f,_0x337a69,_0x19707a,_0x308f21,_0x16cb70,_0x876dc6,_0x491257){const _0x5f3320=_0x5537c6,_0x276a94=this;_0x276a94[_0x5f3320(0xe76)]=_0x876dc6['getCurrentUser'](),_0x276a94[_0x5f3320(0x1a7c)]=[],_0x276a94[_0x5f3320(0x1386)]=_0x5f3320(0xc13)+(_0x19707a[_0x5f3320(0x299b)]||_0x19707a[_0x5f3320(0x22e1)])[_0x5f3320(0x2335)](),_0x276a94[_0x5f3320(0x1234)]=angular[_0x5f3320(0x17fe)](_0x19707a),_0x276a94[_0x5f3320(0x1b1a)]=_0x491257,_0x276a94['hasModulePermissions']={};if(_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x28df)])switch(_0x276a94['noop'][_0x5f3320(0x299b)]?_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x299b)]['toLowerCase']():_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x22e1)][_0x5f3320(0x1680)]()){case'custom':break;case _0x5f3320(0x711):{const _0x3a916e=_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x28df)][_0x5f3320(0xbe1)](',');_0x276a94['noop'][_0x5f3320(0xee8)]=_0x3a916e[0x0],_0x276a94['noop'][_0x5f3320(0x12b4)]=_0x3a916e[0x1],_0x276a94['noop'][_0x5f3320(0x173a)]=_0x3a916e[_0x5f3320(0x14cb)](0x2,_0x3a916e[_0x5f3320(0xfd0)])[_0x5f3320(0x1f66)](',');}break;case _0x5f3320(0xece):{const _0x5463dc=_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x28df)][_0x5f3320(0xbe1)](',');_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x2854)]=_0x5463dc[0x0],_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x12bf)]=_0x5463dc[0x1],_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x29d6)]=_0x5463dc[0x2],_0x276a94[_0x5f3320(0x1234)]['language']=_0x5463dc[0x3],_0x276a94['noop'][_0x5f3320(0x173a)]=_0x5463dc[_0x5f3320(0x14cb)](0x4,_0x5463dc[_0x5f3320(0xfd0)])[_0x5f3320(0x1f66)](',');}break;case'amazonlex':{const _0x14f20d=_0x276a94['noop']['appdata'][_0x5f3320(0xbe1)](',');_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x413)]=_0x14f20d[0x0],_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x21d9)]=_0x14f20d[0x1],_0x276a94['noop'][_0x5f3320(0xd50)]=_0x14f20d[0x2],_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x1c7f)]=_0x14f20d[0x3],_0x276a94[_0x5f3320(0x1234)]['welcomemessage']=_0x14f20d['slice'](0x4,_0x14f20d['length'])['join'](',');}break;case _0x5f3320(0x1f71):{const _0x2ed546=_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x28df)][_0x5f3320(0xbe1)](',');_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x18a5)]=isNaN(_0x2ed546[0x0])?_0x2ed546[0x0]:parseInt(_0x2ed546[0x0],0xa),_0x276a94['noop'][_0x5f3320(0x19d3)]=_0x2ed546[_0x5f3320(0x14cb)](0x1,_0x2ed546['length'])[_0x5f3320(0x1f66)](',');}break;case _0x5f3320(0x155e):_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x19d3)]=_0x276a94[_0x5f3320(0x1234)]['appdata'];break;case'set':_0x276a94[_0x5f3320(0x1234)]['name']=_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x28df)][_0x5f3320(0xbe1)]('=')[0x0],_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x327)]=_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x28df)][_0x5f3320(0xbe1)]('=')[0x1];break;case'agi':_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x12a7)]=_0x276a94[_0x5f3320(0x1234)]['appdata'];break;default:{const _0x5e0058=_0x276a94['noop'][_0x5f3320(0x28df)][_0x5f3320(0xbe1)](',');_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x327)]=_0x39641b()[_0x5f3320(0xce9)](_0x5e0058[0x0])?_0x5e0058[0x0]:isNaN(_0x5e0058[0x0])?_0x5e0058[0x0]:parseInt(_0x5e0058[0x0],0xa);}break;}else{}_0x276a94['noop'][_0x5f3320(0x66a)]&&_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x66a)]['toLowerCase']()===_0x5f3320(0x895)&&_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x299b)]['toLowerCase']()==='outbounddial'&&(_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x586)]=_0x276a94['noop'][_0x5f3320(0x1340)]?_0x276a94['noop']['phone']['split']('$')[0x0]:undefined,_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x1e7c)]=_0x276a94[_0x5f3320(0x1234)][_0x5f3320(0x2816)]?_0x5f3320(0x25f9)+_0x276a94['noop']['callerID']:undefined);_0x276a94[_0x5f3320(0x19ad)]=_0x10e50a,_0x276a94[_0x5f3320(0xda0)]=_0x35df9d;function _0x10e50a(){const _0x3c9163=_0x5f3320;_0x276a94[_0x3c9163(0x1a7c)]=[];const _0x5f3f51=[];_0x276a94[_0x3c9163(0x1234)][_0x3c9163(0x66a)]&&_0x276a94[_0x3c9163(0x1234)][_0x3c9163(0x66a)]['toLowerCase']()===_0x3c9163(0x895)&&_0x276a94[_0x3c9163(0x1234)][_0x3c9163(0x299b)]===_0x3c9163(0x25f4)&&(_0x276a94['noop'][_0x3c9163(0x1340)]=_0x308f21[_0x3c9163(0x325)]?(_0x276a94[_0x3c9163(0x1234)][_0x3c9163(0x586)]||'')+_0x3c9163(0x19e4)+_0x308f21[_0x3c9163(0x325)]+'}':(_0x276a94[_0x3c9163(0x1234)][_0x3c9163(0x586)]||'')+'${EXTEN}',_0x308f21['recordingFormat']!==_0x3c9163(0x13b1)?_0x276a94[_0x3c9163(0x1234)][_0x3c9163(0x2224)]['indexOf'](_0x3c9163(0x106a))<0x0&&(_0x276a94[_0x3c9163(0x1234)][_0x3c9163(0x2224)]+=_0x3c9163(0x106a)):_0x276a94[_0x3c9163(0x1234)][_0x3c9163(0x2224)]=_0x276a94[_0x3c9163(0x1234)][_0x3c9163(0x2224)][_0x3c9163(0x288f)](_0x3c9163(0x106a),''));if(_0x276a94[_0x3c9163(0x1234)][_0x3c9163(0x299b)]&&_0x276a94[_0x3c9163(0x1234)][_0x3c9163(0x299b)]===_0x3c9163(0x197c)){}else switch((_0x276a94[_0x3c9163(0x1234)][_0x3c9163(0x22e1)]||_0x276a94[_0x3c9163(0x1234)]['appType'])[_0x3c9163(0x1680)]()){case'set':_0x276a94['noop']['appdata']=_0x276a94[_0x3c9163(0x1234)][_0x3c9163(0x16b6)]+'='+_0x276a94[_0x3c9163(0x1234)][_0x3c9163(0x327)];break;case _0x3c9163(0x197c):break;default:_0x5f3f51[0x0]=_0x276a94['noop'][_0x3c9163(0x327)],_0x276a94['noop'][_0x3c9163(0x28df)]=_0x5f3f51[_0x3c9163(0x1f66)](',');}_0x35df9d(_0x276a94['noop']);}function _0x35df9d(_0xa3eb7c){const _0x2d3c77=_0x5f3320;_0x16ef3c[_0x2d3c77(0x1426)](_0xa3eb7c);}}const _0x40e585=_0x555ae1;;_0x206d50[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x5af),_0x5537c6(0xb91),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x206d50(_0x40775d,_0x1f44c4,_0x4c64b6,_0x1e998b,_0x2ec731,_0x1c7da0,_0x1e2fa0,_0x311be4){const _0x56f5fc=_0x5537c6,_0x27c1a0=this;_0x27c1a0[_0x56f5fc(0xe76)]=_0x1e2fa0[_0x56f5fc(0x21e8)](),_0x27c1a0[_0x56f5fc(0x1a7c)]=[],_0x27c1a0[_0x56f5fc(0x1386)]=_0x56f5fc(0xc13)+(_0x1e998b['appType']||_0x1e998b[_0x56f5fc(0x22e1)])[_0x56f5fc(0x2335)](),_0x27c1a0[_0x56f5fc(0x11cf)]=angular['copy'](_0x1e998b),_0x27c1a0[_0x56f5fc(0x1b1a)]=_0x311be4,_0x27c1a0[_0x56f5fc(0xf4c)]={};if(_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x28df)])switch(_0x27c1a0['queue']['appType']?_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x299b)][_0x56f5fc(0x1680)]():_0x27c1a0[_0x56f5fc(0x11cf)]['app'][_0x56f5fc(0x1680)]()){case _0x56f5fc(0x197c):break;case _0x56f5fc(0x711):{const _0x335e05=_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x28df)]['split'](',');_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0xee8)]=_0x335e05[0x0],_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x12b4)]=_0x335e05[0x1],_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x173a)]=_0x335e05[_0x56f5fc(0x14cb)](0x2,_0x335e05[_0x56f5fc(0xfd0)])[_0x56f5fc(0x1f66)](',');}break;case _0x56f5fc(0xece):{const _0x31c26d=_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x28df)][_0x56f5fc(0xbe1)](',');_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x2854)]=_0x31c26d[0x0],_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x12bf)]=_0x31c26d[0x1],_0x27c1a0[_0x56f5fc(0x11cf)]['privateKey']=_0x31c26d[0x2],_0x27c1a0['queue']['language']=_0x31c26d[0x3],_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x173a)]=_0x31c26d[_0x56f5fc(0x14cb)](0x4,_0x31c26d['length'])[_0x56f5fc(0x1f66)](',');}break;case _0x56f5fc(0x123a):{const _0x4bb397=_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x28df)]['split'](',');_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x413)]=_0x4bb397[0x0],_0x27c1a0['queue']['secretaccesskey']=_0x4bb397[0x1],_0x27c1a0['queue']['lexregion']=_0x4bb397[0x2],_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x1c7f)]=_0x4bb397[0x3],_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x173a)]=_0x4bb397[_0x56f5fc(0x14cb)](0x4,_0x4bb397['length'])[_0x56f5fc(0x1f66)](',');}break;case'autoreply':{const _0x1fcfe8=_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x28df)][_0x56f5fc(0xbe1)](',');_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x18a5)]=isNaN(_0x1fcfe8[0x0])?_0x1fcfe8[0x0]:parseInt(_0x1fcfe8[0x0],0xa),_0x27c1a0[_0x56f5fc(0x11cf)]['text']=_0x1fcfe8[_0x56f5fc(0x14cb)](0x1,_0x1fcfe8[_0x56f5fc(0xfd0)])[_0x56f5fc(0x1f66)](',');}break;case _0x56f5fc(0x155e):_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x19d3)]=_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x28df)];break;case'set':_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x16b6)]=_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x28df)][_0x56f5fc(0xbe1)]('=')[0x0],_0x27c1a0[_0x56f5fc(0x11cf)]['value']=_0x27c1a0['queue'][_0x56f5fc(0x28df)][_0x56f5fc(0xbe1)]('=')[0x1];break;case _0x56f5fc(0x4b4):_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x12a7)]=_0x27c1a0['queue'][_0x56f5fc(0x28df)];break;default:{const _0x84a9b2=_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x28df)][_0x56f5fc(0xbe1)](',');_0x27c1a0[_0x56f5fc(0x11cf)]['queue']=_0x39641b()['isEmpty'](_0x84a9b2[0x0])?_0x84a9b2[0x0]:isNaN(_0x84a9b2[0x0])?_0x84a9b2[0x0]:parseInt(_0x84a9b2[0x0],0xa),_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x1719)]=_0x39641b()[_0x56f5fc(0xce9)](_0x84a9b2[0x1])?_0x84a9b2[0x1]:isNaN(_0x84a9b2[0x1])?_0x84a9b2[0x1]:parseInt(_0x84a9b2[0x1],0xa);}break;}else _0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x11cf)]=0x12c,_0x27c1a0['queue'][_0x56f5fc(0x1719)]=0x12c;_0x27c1a0['queue'][_0x56f5fc(0x66a)]&&_0x27c1a0['queue']['type'][_0x56f5fc(0x1680)]()===_0x56f5fc(0x895)&&_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x299b)][_0x56f5fc(0x1680)]()===_0x56f5fc(0x20ff)&&(_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x586)]=_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x1340)]?_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x1340)][_0x56f5fc(0xbe1)]('$')[0x0]:undefined,_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x1e7c)]=_0x27c1a0['queue'][_0x56f5fc(0x2816)]?_0x56f5fc(0x25f9)+_0x27c1a0[_0x56f5fc(0x11cf)][_0x56f5fc(0x2816)]:undefined);_0x27c1a0[_0x56f5fc(0x19ad)]=_0x242fdc,_0x27c1a0['closeDialog']=_0x24394e,_0x1e2fa0[_0x56f5fc(0x22b6)](_0x56f5fc(0x1c60))?_0x1c7da0[_0x56f5fc(0x54d)][_0x56f5fc(0xbf7)]({'fields':'id,name,type','sort':_0x56f5fc(0x16b6),'nolimit':_0x56f5fc(0x44d)})['$promise']['then'](function(_0x479d5c){const _0x45d803=_0x56f5fc;_0x27c1a0[_0x45d803(0x971)]=_0x479d5c['rows']||[];})['catch'](function(_0x5c0f06){const _0xe950bc=_0x56f5fc;_0x4c64b6[_0xe950bc(0x218e)]({'title':_0x5c0f06['status']?_0xe950bc(0xeb9)+_0x5c0f06[_0xe950bc(0x291)]+_0xe950bc(0x1657)+_0x5c0f06[_0xe950bc(0xc22)]:'SYSTEM:GET_QUEUES','msg':_0x5c0f06[_0xe950bc(0x25c)]?JSON[_0xe950bc(0x2701)](_0x5c0f06[_0xe950bc(0x25c)]):_0x5c0f06[_0xe950bc(0x147f)]()});}):_0x1c7da0[_0x56f5fc(0x54d)][_0x56f5fc(0xbf7)]({'fields':_0x56f5fc(0x1896),'sort':_0x56f5fc(0x16b6),'nolimit':_0x56f5fc(0x44d)})[_0x56f5fc(0x1d77)][_0x56f5fc(0x1cb0)](function(_0x499ea){const _0x18eb50=_0x56f5fc;_0x27c1a0['queues']=_0x499ea[_0x18eb50(0x2214)]||[];})[_0x56f5fc(0x1cb0)](function(){const _0x45255b=_0x56f5fc;return _0x1c7da0[_0x45255b(0x2199)][_0x45255b(0xbf7)]({'userProfileId':_0x27c1a0[_0x45255b(0xe76)][_0x45255b(0x13c1)],'sectionId':0x385})[_0x45255b(0x1d77)];})[_0x56f5fc(0x1cb0)](function(_0x1263e9){const _0x3cbcc1=_0x56f5fc,_0x4073d1=_0x1263e9&&_0x1263e9[_0x3cbcc1(0x2214)]?_0x1263e9[_0x3cbcc1(0x2214)][0x0]:null;if(!_0x4073d1){const _0x233b69=[];let _0x2a4b0c=null;_0x27c1a0[_0x3cbcc1(0x11cf)]&&(_0x2a4b0c=_0x39641b()[_0x3cbcc1(0x13b4)](_0x27c1a0[_0x3cbcc1(0x971)],{'name':_0x27c1a0[_0x3cbcc1(0x11cf)][_0x3cbcc1(0x11cf)]}));for(let _0x20aa79=0x0;_0x20aa79<_0x27c1a0[_0x3cbcc1(0x971)][_0x3cbcc1(0xfd0)];_0x20aa79++){_0x2a4b0c&&_0x27c1a0[_0x3cbcc1(0x971)][_0x20aa79]['id']===_0x2a4b0c['id']&&(_0x27c1a0['queues'][_0x20aa79][_0x3cbcc1(0x15da)]=![],_0x233b69[_0x3cbcc1(0x2785)](_0x27c1a0[_0x3cbcc1(0x971)][_0x20aa79]));}_0x27c1a0[_0x3cbcc1(0x971)]=_0x233b69;}else{if(!_0x4073d1[_0x3cbcc1(0x12f4)])return _0x1c7da0['userProfileResource'][_0x3cbcc1(0xbf7)]({'sectionId':_0x4073d1['id']})[_0x3cbcc1(0x1d77)]['then'](function(_0x59f401){const _0x356571=_0x3cbcc1,_0x241ee=_0x39641b()['map'](_0x59f401[_0x356571(0x2214)],function(_0x1d0e79){const _0x4e03c5=_0x356571;return _0x39641b()[_0x4e03c5(0x13b4)](_0x27c1a0[_0x4e03c5(0x971)],{'id':_0x1d0e79['resourceId']});});let _0x147710=null;_0x27c1a0[_0x356571(0x11cf)]&&(_0x147710=_0x39641b()[_0x356571(0x13b4)](_0x27c1a0[_0x356571(0x971)],{'name':_0x27c1a0[_0x356571(0x11cf)][_0x356571(0x11cf)]}));if(_0x147710&&!_0x39641b()['some'](_0x241ee,['id',_0x147710['id']])){const _0x313b0b=_0x39641b()['find'](_0x27c1a0[_0x356571(0x971)],{'id':_0x147710['id']});_0x313b0b[_0x356571(0x15da)]=![],_0x241ee[_0x356571(0x2785)](_0x313b0b);}_0x27c1a0[_0x356571(0x971)]=_0x241ee;});}})[_0x56f5fc(0x1c4)](function(_0x2c87be){const _0x3b9c53=_0x56f5fc;_0x4c64b6[_0x3b9c53(0x218e)]({'title':_0x2c87be[_0x3b9c53(0x291)]?_0x3b9c53(0xeb9)+_0x2c87be['status']+_0x3b9c53(0x1657)+_0x2c87be[_0x3b9c53(0xc22)]:_0x3b9c53(0x1af2),'msg':_0x2c87be[_0x3b9c53(0x25c)]?JSON['stringify'](_0x2c87be[_0x3b9c53(0x25c)]):_0x2c87be[_0x3b9c53(0x147f)]()});});function _0x242fdc(){const _0x5da0da=_0x56f5fc;_0x27c1a0[_0x5da0da(0x1a7c)]=[];const _0x587f93=[];_0x27c1a0[_0x5da0da(0x11cf)][_0x5da0da(0x66a)]&&_0x27c1a0[_0x5da0da(0x11cf)][_0x5da0da(0x66a)][_0x5da0da(0x1680)]()==='outbound'&&_0x27c1a0[_0x5da0da(0x11cf)][_0x5da0da(0x299b)]===_0x5da0da(0x25f4)&&(_0x27c1a0[_0x5da0da(0x11cf)]['phone']=_0x2ec731['cutdigits']?(_0x27c1a0['queue'][_0x5da0da(0x586)]||'')+'${EXTEN:'+_0x2ec731['cutdigits']+'}':(_0x27c1a0['queue'][_0x5da0da(0x586)]||'')+_0x5da0da(0xcdd),_0x2ec731[_0x5da0da(0xf8d)]!==_0x5da0da(0x13b1)?_0x27c1a0['queue'][_0x5da0da(0x2224)]['indexOf'](_0x5da0da(0x106a))<0x0&&(_0x27c1a0[_0x5da0da(0x11cf)][_0x5da0da(0x2224)]+=_0x5da0da(0x106a)):_0x27c1a0[_0x5da0da(0x11cf)]['options']=_0x27c1a0[_0x5da0da(0x11cf)][_0x5da0da(0x2224)][_0x5da0da(0x288f)](_0x5da0da(0x106a),''));const _0x1ec531=_0x39641b()[_0x5da0da(0x13b4)](_0x27c1a0[_0x5da0da(0x971)],{'name':_0x27c1a0['queue']['queue']});_0x1ec531&&(_0x27c1a0[_0x5da0da(0x11cf)][_0x39641b()[_0x5da0da(0x432)]('fax')+'QueueId']=_0x1ec531['id']);if(_0x27c1a0['queue'][_0x5da0da(0x299b)]&&_0x27c1a0[_0x5da0da(0x11cf)][_0x5da0da(0x299b)]===_0x5da0da(0x197c)){}else switch((_0x27c1a0[_0x5da0da(0x11cf)][_0x5da0da(0x22e1)]||_0x27c1a0[_0x5da0da(0x11cf)][_0x5da0da(0x299b)])['toLowerCase']()){case _0x5da0da(0x19d1):_0x27c1a0[_0x5da0da(0x11cf)]['appdata']=_0x27c1a0['queue']['name']+'='+_0x27c1a0[_0x5da0da(0x11cf)][_0x5da0da(0x327)];break;case _0x5da0da(0x197c):break;default:_0x587f93[0x0]=_0x27c1a0[_0x5da0da(0x11cf)]['queue'],_0x587f93[0x1]=_0x27c1a0[_0x5da0da(0x11cf)][_0x5da0da(0x1719)],_0x27c1a0['queue'][_0x5da0da(0x28df)]=_0x587f93['join'](',');}_0x24394e(_0x27c1a0[_0x5da0da(0x11cf)]);}function _0x24394e(_0x1261d7){const _0xb2d328=_0x56f5fc;_0x40775d[_0xb2d328(0x1426)](_0x1261d7);}}const _0x4f2f53=_0x206d50;;_0x549ea6[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x5af),'faxAccount',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x549ea6(_0x3c772f,_0x1aa3ae,_0x46f655,_0x2ed845,_0xb0ae71,_0x513f3c,_0x3394e0,_0x65b6d6){const _0x51d1b9=_0x5537c6,_0xd10856=this;_0xd10856[_0x51d1b9(0xe76)]=_0x3394e0[_0x51d1b9(0x21e8)](),_0xd10856[_0x51d1b9(0x1a7c)]=[],_0xd10856[_0x51d1b9(0x1386)]=_0x51d1b9(0xc13)+(_0x2ed845[_0x51d1b9(0x299b)]||_0x2ed845[_0x51d1b9(0x22e1)])['toUpperCase'](),_0xd10856[_0x51d1b9(0x7be)]=angular[_0x51d1b9(0x17fe)](_0x2ed845),_0xd10856['crudPermissions']=_0x65b6d6,_0xd10856[_0x51d1b9(0xf4c)]={};if(_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x28df)])switch(_0xd10856['system'][_0x51d1b9(0x299b)]?_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x299b)][_0x51d1b9(0x1680)]():_0xd10856[_0x51d1b9(0x7be)]['app']['toLowerCase']()){case _0x51d1b9(0x197c):break;case _0x51d1b9(0x711):{const _0x9a6153=_0xd10856[_0x51d1b9(0x7be)]['appdata'][_0x51d1b9(0xbe1)](',');_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0xee8)]=_0x9a6153[0x0],_0xd10856['system'][_0x51d1b9(0x12b4)]=_0x9a6153[0x1],_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x173a)]=_0x9a6153[_0x51d1b9(0x14cb)](0x2,_0x9a6153[_0x51d1b9(0xfd0)])[_0x51d1b9(0x1f66)](',');}break;case _0x51d1b9(0xece):{const _0x22ce02=_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x28df)][_0x51d1b9(0xbe1)](',');_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x2854)]=_0x22ce02[0x0],_0xd10856['system'][_0x51d1b9(0x12bf)]=_0x22ce02[0x1],_0xd10856['system'][_0x51d1b9(0x29d6)]=_0x22ce02[0x2],_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x12b4)]=_0x22ce02[0x3],_0xd10856['system'][_0x51d1b9(0x173a)]=_0x22ce02['slice'](0x4,_0x22ce02[_0x51d1b9(0xfd0)])[_0x51d1b9(0x1f66)](',');}break;case _0x51d1b9(0x123a):{const _0x179a84=_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x28df)][_0x51d1b9(0xbe1)](',');_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x413)]=_0x179a84[0x0],_0xd10856['system']['secretaccesskey']=_0x179a84[0x1],_0xd10856[_0x51d1b9(0x7be)]['lexregion']=_0x179a84[0x2],_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x1c7f)]=_0x179a84[0x3],_0xd10856['system'][_0x51d1b9(0x173a)]=_0x179a84[_0x51d1b9(0x14cb)](0x4,_0x179a84[_0x51d1b9(0xfd0)])[_0x51d1b9(0x1f66)](',');}break;case _0x51d1b9(0x1f71):{const _0x24f3ed=_0xd10856['system'][_0x51d1b9(0x28df)][_0x51d1b9(0xbe1)](',');_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x18a5)]=isNaN(_0x24f3ed[0x0])?_0x24f3ed[0x0]:parseInt(_0x24f3ed[0x0],0xa),_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x19d3)]=_0x24f3ed[_0x51d1b9(0x14cb)](0x1,_0x24f3ed[_0x51d1b9(0xfd0)])[_0x51d1b9(0x1f66)](',');}break;case _0x51d1b9(0x155e):_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x19d3)]=_0xd10856['system'][_0x51d1b9(0x28df)];break;case _0x51d1b9(0x19d1):_0xd10856['system'][_0x51d1b9(0x16b6)]=_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x28df)][_0x51d1b9(0xbe1)]('=')[0x0],_0xd10856['system'][_0x51d1b9(0x327)]=_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x28df)][_0x51d1b9(0xbe1)]('=')[0x1];break;case _0x51d1b9(0x4b4):_0xd10856['system'][_0x51d1b9(0x12a7)]=_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x28df)];break;default:{const _0x5eb2e0=_0xd10856[_0x51d1b9(0x7be)]['appdata'][_0x51d1b9(0xbe1)](',');_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0xd0d)]=_0x39641b()[_0x51d1b9(0xce9)](_0x5eb2e0[0x0])?_0x5eb2e0[0x0]:isNaN(_0x5eb2e0[0x0])?_0x5eb2e0[0x0]:parseInt(_0x5eb2e0[0x0],0xa),_0xd10856['system'][_0x51d1b9(0x1822)]=_0x39641b()[_0x51d1b9(0xce9)](_0x5eb2e0[0x1])?_0x5eb2e0[0x1]:isNaN(_0x5eb2e0[0x1])?_0x5eb2e0[0x1]:parseInt(_0x5eb2e0[0x1],0xa);}}else _0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x1822)]='';_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x66a)]&&_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x66a)]['toLowerCase']()===_0x51d1b9(0x895)&&_0xd10856['system']['appType']['toLowerCase']()===_0x51d1b9(0x20ff)&&(_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x586)]=_0xd10856['system'][_0x51d1b9(0x1340)]?_0xd10856[_0x51d1b9(0x7be)][_0x51d1b9(0x1340)][_0x51d1b9(0xbe1)]('$')[0x0]:undefined,_0xd10856[_0x51d1b9(0x7be)]['callerId']=_0xd10856['system'][_0x51d1b9(0x2816)]?_0x51d1b9(0x25f9)+_0xd10856['system']['callerID']:undefined);_0xd10856[_0x51d1b9(0x19ad)]=_0x25d2c5,_0xd10856[_0x51d1b9(0xda0)]=_0x10e58e,_0x3394e0[_0x51d1b9(0x22b6)](_0x51d1b9(0x1c60))?_0x513f3c['variable'][_0x51d1b9(0xbf7)]({'fields':'id,name','sort':_0x51d1b9(0x16b6),'nolimit':'true'})[_0x51d1b9(0x1d77)][_0x51d1b9(0x1cb0)](function(_0x3660b6){const _0x1bbc52=_0x51d1b9;_0xd10856[_0x1bbc52(0x9a9)]=_0x3660b6[_0x1bbc52(0x2214)]||[];})[_0x51d1b9(0x1c4)](function(_0x2388cf){const _0xc0c360=_0x51d1b9;_0x46f655[_0xc0c360(0x218e)]({'title':_0x2388cf[_0xc0c360(0x291)]?_0xc0c360(0xeb9)+_0x2388cf[_0xc0c360(0x291)]+_0xc0c360(0x1657)+_0x2388cf['statusText']:_0xc0c360(0xe04),'msg':_0x2388cf[_0xc0c360(0x25c)]?JSON[_0xc0c360(0x2701)](_0x2388cf[_0xc0c360(0x25c)]):_0x2388cf[_0xc0c360(0x147f)]()});}):_0x513f3c['variable'][_0x51d1b9(0xbf7)]({'fields':_0x51d1b9(0x43c),'sort':_0x51d1b9(0x16b6),'nolimit':_0x51d1b9(0x44d)})['$promise'][_0x51d1b9(0x1cb0)](function(_0x128146){const _0x151582=_0x51d1b9;_0xd10856[_0x151582(0x9a9)]=_0x128146['rows']||[];})[_0x51d1b9(0x1cb0)](function(){const _0x519fa9=_0x51d1b9;return _0x513f3c[_0x519fa9(0x2199)][_0x519fa9(0xbf7)]({'userProfileId':_0xd10856[_0x519fa9(0xe76)]['userProfileId'],'sectionId':0x3f4})['$promise'];})[_0x51d1b9(0x1cb0)](function(_0x2bc28e){const _0x181b83=_0x51d1b9,_0x18c453=_0x2bc28e&&_0x2bc28e[_0x181b83(0x2214)]?_0x2bc28e[_0x181b83(0x2214)][0x0]:null;if(!_0x18c453){const _0x5e9331=[];let _0x19ed41=null;_0xd10856[_0x181b83(0x7be)]&&(_0x19ed41=_0x39641b()[_0x181b83(0x13b4)](_0xd10856[_0x181b83(0x9a9)],{'name':_0xd10856[_0x181b83(0x7be)][_0x181b83(0x1822)]}));for(let _0x2d427b=0x0;_0x2d427b<_0xd10856[_0x181b83(0x9a9)][_0x181b83(0xfd0)];_0x2d427b++){_0x19ed41&&_0xd10856[_0x181b83(0x9a9)][_0x2d427b]['id']===_0x19ed41['id']&&(_0xd10856[_0x181b83(0x9a9)][_0x2d427b][_0x181b83(0x15da)]=![],_0x5e9331[_0x181b83(0x2785)](_0xd10856[_0x181b83(0x9a9)][_0x2d427b]));}_0xd10856['variables']=_0x5e9331;}else{if(!_0x18c453[_0x181b83(0x12f4)])return _0x513f3c[_0x181b83(0x1198)][_0x181b83(0xbf7)]({'sectionId':_0x18c453['id']})[_0x181b83(0x1d77)][_0x181b83(0x1cb0)](function(_0x265af3){const _0x22f326=_0x181b83,_0x359fbe=_0x39641b()[_0x22f326(0x1de2)](_0x265af3[_0x22f326(0x2214)],function(_0x5ce491){const _0x411596=_0x22f326;return _0x39641b()[_0x411596(0x13b4)](_0xd10856[_0x411596(0x9a9)],{'id':_0x5ce491['resourceId']});});let _0xd6b8dc=null;_0xd10856[_0x22f326(0x7be)]&&(_0xd6b8dc=_0x39641b()[_0x22f326(0x13b4)](_0xd10856[_0x22f326(0x9a9)],{'name':_0xd10856[_0x22f326(0x7be)][_0x22f326(0x1822)]}));if(_0xd6b8dc&&!_0x39641b()[_0x22f326(0x727)](_0x359fbe,['id',_0xd6b8dc['id']])){const _0x157f15=_0x39641b()[_0x22f326(0x13b4)](_0xd10856[_0x22f326(0x9a9)],{'id':_0xd6b8dc['id']});_0x157f15[_0x22f326(0x15da)]=![],_0x359fbe[_0x22f326(0x2785)](_0x157f15);}_0xd10856[_0x22f326(0x9a9)]=_0x359fbe;});}})['catch'](function(_0x1731e1){const _0x5d4ea4=_0x51d1b9;_0x46f655[_0x5d4ea4(0x218e)]({'title':_0x1731e1[_0x5d4ea4(0x291)]?'API:'+_0x1731e1[_0x5d4ea4(0x291)]+_0x5d4ea4(0x1657)+_0x1731e1[_0x5d4ea4(0xc22)]:_0x5d4ea4(0xda5),'msg':_0x1731e1['data']?JSON['stringify'](_0x1731e1[_0x5d4ea4(0x25c)]):_0x1731e1[_0x5d4ea4(0x147f)]()});});function _0x25d2c5(){const _0x5e8ef1=_0x51d1b9;_0xd10856[_0x5e8ef1(0x1a7c)]=[];const _0x17dcf9=[];_0xd10856[_0x5e8ef1(0x7be)][_0x5e8ef1(0x66a)]&&_0xd10856[_0x5e8ef1(0x7be)][_0x5e8ef1(0x66a)]['toLowerCase']()==='outbound'&&_0xd10856['system'][_0x5e8ef1(0x299b)]===_0x5e8ef1(0x25f4)&&(_0xd10856[_0x5e8ef1(0x7be)][_0x5e8ef1(0x1340)]=_0xb0ae71[_0x5e8ef1(0x325)]?(_0xd10856['system'][_0x5e8ef1(0x586)]||'')+_0x5e8ef1(0x19e4)+_0xb0ae71[_0x5e8ef1(0x325)]+'}':(_0xd10856[_0x5e8ef1(0x7be)][_0x5e8ef1(0x586)]||'')+_0x5e8ef1(0xcdd),_0xb0ae71['recordingFormat']!=='none'?_0xd10856[_0x5e8ef1(0x7be)]['options'][_0x5e8ef1(0xd8a)](_0x5e8ef1(0x106a))<0x0&&(_0xd10856['system'][_0x5e8ef1(0x2224)]+=_0x5e8ef1(0x106a)):_0xd10856[_0x5e8ef1(0x7be)][_0x5e8ef1(0x2224)]=_0xd10856[_0x5e8ef1(0x7be)]['options'][_0x5e8ef1(0x288f)](_0x5e8ef1(0x106a),''));if(_0xd10856[_0x5e8ef1(0x7be)][_0x5e8ef1(0x299b)]&&_0xd10856[_0x5e8ef1(0x7be)][_0x5e8ef1(0x299b)]===_0x5e8ef1(0x197c)){}else switch((_0xd10856[_0x5e8ef1(0x7be)]['app']||_0xd10856[_0x5e8ef1(0x7be)]['appType'])[_0x5e8ef1(0x1680)]()){case _0x5e8ef1(0x19d1):_0xd10856[_0x5e8ef1(0x7be)][_0x5e8ef1(0x28df)]=_0xd10856['system'][_0x5e8ef1(0x16b6)]+'='+_0xd10856[_0x5e8ef1(0x7be)][_0x5e8ef1(0x327)];break;case _0x5e8ef1(0x197c):break;default:_0x17dcf9[0x0]=_0xd10856['system'][_0x5e8ef1(0xd0d)],_0x17dcf9[0x1]=_0xd10856[_0x5e8ef1(0x7be)][_0x5e8ef1(0x1822)],_0xd10856[_0x5e8ef1(0x7be)][_0x5e8ef1(0x28df)]=_0x17dcf9[_0x5e8ef1(0x1f66)](',');}_0x10e58e(_0xd10856[_0x5e8ef1(0x7be)]);}function _0x10e58e(_0x513ce2){_0x3c772f['hide'](_0x513ce2);}}const _0x2c92c8=_0x549ea6;;_0x363afb[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x5af),_0x5537c6(0xb91),_0x5537c6(0x142b),_0x5537c6(0x1774),'crudPermissions'];function _0x363afb(_0x5d3960,_0x15ae8a,_0xc5f2ce,_0xe2f9c9,_0x1e243d,_0x3c1f31,_0x170290,_0x9f58c7){const _0x1a26e1=_0x5537c6,_0x372a44=this;_0x372a44[_0x1a26e1(0xe76)]=_0x170290[_0x1a26e1(0x21e8)](),_0x372a44[_0x1a26e1(0x1a7c)]=[],_0x372a44['title']='FAX.EDIT_'+(_0xe2f9c9[_0x1a26e1(0x299b)]||_0xe2f9c9['app'])[_0x1a26e1(0x2335)](),_0x372a44['tag']=angular[_0x1a26e1(0x17fe)](_0xe2f9c9),_0x372a44[_0x1a26e1(0x1b1a)]=_0x9f58c7,_0x372a44[_0x1a26e1(0xf4c)]={};if(_0x372a44[_0x1a26e1(0x22b1)]['appdata'])switch(_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0x299b)]?_0x372a44['tag'][_0x1a26e1(0x299b)][_0x1a26e1(0x1680)]():_0x372a44['tag'][_0x1a26e1(0x22e1)]['toLowerCase']()){case'custom':break;case _0x1a26e1(0x711):{const _0x4dc002=_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0x28df)][_0x1a26e1(0xbe1)](',');_0x372a44['tag']['key']=_0x4dc002[0x0],_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0x12b4)]=_0x4dc002[0x1],_0x372a44[_0x1a26e1(0x22b1)]['welcomemessage']=_0x4dc002[_0x1a26e1(0x14cb)](0x2,_0x4dc002[_0x1a26e1(0xfd0)])['join'](',');}break;case _0x1a26e1(0xece):{const _0x550542=_0x372a44['tag'][_0x1a26e1(0x28df)]['split'](',');_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0x2854)]=_0x550542[0x0],_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0x12bf)]=_0x550542[0x1],_0x372a44['tag'][_0x1a26e1(0x29d6)]=_0x550542[0x2],_0x372a44[_0x1a26e1(0x22b1)]['language']=_0x550542[0x3],_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0x173a)]=_0x550542[_0x1a26e1(0x14cb)](0x4,_0x550542[_0x1a26e1(0xfd0)])['join'](',');}break;case _0x1a26e1(0x123a):{const _0x781089=_0x372a44[_0x1a26e1(0x22b1)]['appdata'][_0x1a26e1(0xbe1)](',');_0x372a44['tag'][_0x1a26e1(0x413)]=_0x781089[0x0],_0x372a44[_0x1a26e1(0x22b1)]['secretaccesskey']=_0x781089[0x1],_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0xd50)]=_0x781089[0x2],_0x372a44[_0x1a26e1(0x22b1)]['botname']=_0x781089[0x3],_0x372a44['tag']['welcomemessage']=_0x781089[_0x1a26e1(0x14cb)](0x4,_0x781089[_0x1a26e1(0xfd0)])[_0x1a26e1(0x1f66)](',');}break;case _0x1a26e1(0x1f71):{const _0x366fd4=_0x372a44['tag'][_0x1a26e1(0x28df)]['split'](',');_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0x18a5)]=isNaN(_0x366fd4[0x0])?_0x366fd4[0x0]:parseInt(_0x366fd4[0x0],0xa),_0x372a44[_0x1a26e1(0x22b1)]['text']=_0x366fd4[_0x1a26e1(0x14cb)](0x1,_0x366fd4[_0x1a26e1(0xfd0)])['join'](',');}break;case'message':_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0x19d3)]=_0x372a44[_0x1a26e1(0x22b1)]['appdata'];break;case'set':_0x372a44['tag'][_0x1a26e1(0x16b6)]=_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0x28df)][_0x1a26e1(0xbe1)]('=')[0x0],_0x372a44['tag'][_0x1a26e1(0x327)]=_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0x28df)][_0x1a26e1(0xbe1)]('=')[0x1];break;case _0x1a26e1(0x4b4):_0x372a44['tag'][_0x1a26e1(0x12a7)]=_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0x28df)];break;default:{const _0x4201e2=_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0x28df)][_0x1a26e1(0xbe1)](',');_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0x22b1)]=_0x39641b()[_0x1a26e1(0xce9)](_0x4201e2[0x0])?_0x4201e2[0x0]:isNaN(_0x4201e2[0x0])?_0x4201e2[0x0]:parseInt(_0x4201e2[0x0],0xa);}break;}else{}_0x372a44[_0x1a26e1(0x22b1)]['type']&&_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0x66a)]['toLowerCase']()==='outbound'&&_0x372a44['tag'][_0x1a26e1(0x299b)]['toLowerCase']()===_0x1a26e1(0x20ff)&&(_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0x586)]=_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0x1340)]?_0x372a44[_0x1a26e1(0x22b1)]['phone'][_0x1a26e1(0xbe1)]('$')[0x0]:undefined,_0x372a44['tag'][_0x1a26e1(0x1e7c)]=_0x372a44['tag']['callerID']?_0x1a26e1(0x25f9)+_0x372a44[_0x1a26e1(0x22b1)][_0x1a26e1(0x2816)]:undefined);_0x372a44[_0x1a26e1(0x19ad)]=_0x101330,_0x372a44[_0x1a26e1(0xda0)]=_0x19a866,_0x170290['hasRole'](_0x1a26e1(0x1c60))?_0x3c1f31['tag']['get']({'fields':_0x1a26e1(0x43c),'sort':_0x1a26e1(0x16b6),'nolimit':_0x1a26e1(0x44d)})[_0x1a26e1(0x1d77)]['then'](function(_0x43cf38){const _0x19f2c8=_0x1a26e1;_0x372a44['tags']=_0x43cf38[_0x19f2c8(0x2214)]||[];})[_0x1a26e1(0x1c4)](function(_0xe567e8){const _0x363b70=_0x1a26e1;_0xc5f2ce[_0x363b70(0x218e)]({'title':_0xe567e8[_0x363b70(0x291)]?'API:'+_0xe567e8[_0x363b70(0x291)]+_0x363b70(0x1657)+_0xe567e8[_0x363b70(0xc22)]:_0x363b70(0x12f9),'msg':_0xe567e8[_0x363b70(0x25c)]?JSON['stringify'](_0xe567e8[_0x363b70(0x25c)]):_0xe567e8[_0x363b70(0x147f)]()});}):_0x3c1f31[_0x1a26e1(0x22b1)][_0x1a26e1(0xbf7)]({'fields':_0x1a26e1(0x43c),'sort':_0x1a26e1(0x16b6),'nolimit':_0x1a26e1(0x44d)})[_0x1a26e1(0x1d77)][_0x1a26e1(0x1cb0)](function(_0x4a0e08){const _0x52c411=_0x1a26e1;_0x372a44[_0x52c411(0xfbf)]=_0x4a0e08[_0x52c411(0x2214)]||[];})['then'](function(){const _0x59e1f0=_0x1a26e1;return _0x3c1f31['userProfileSection'][_0x59e1f0(0xbf7)]({'userProfileId':_0x372a44[_0x59e1f0(0xe76)]['userProfileId'],'sectionId':0x3f0})[_0x59e1f0(0x1d77)];})[_0x1a26e1(0x1cb0)](function(_0x392df6){const _0x32f8e7=_0x1a26e1,_0x4a3646=_0x392df6&&_0x392df6[_0x32f8e7(0x2214)]?_0x392df6[_0x32f8e7(0x2214)][0x0]:null;if(!_0x4a3646){const _0x2f587e=[];let _0x1cf437=null;_0x372a44[_0x32f8e7(0x22b1)]&&(_0x1cf437=_0x39641b()[_0x32f8e7(0x13b4)](_0x372a44[_0x32f8e7(0xfbf)],{'name':_0x372a44[_0x32f8e7(0x22b1)]['tag']}));for(let _0x222f92=0x0;_0x222f92<_0x372a44[_0x32f8e7(0xfbf)][_0x32f8e7(0xfd0)];_0x222f92++){_0x1cf437&&_0x372a44['tags'][_0x222f92]['id']===_0x1cf437['id']&&(_0x372a44['tags'][_0x222f92]['canSelect']=![],_0x2f587e[_0x32f8e7(0x2785)](_0x372a44['tags'][_0x222f92]));}_0x372a44[_0x32f8e7(0xfbf)]=_0x2f587e;}else{if(!_0x4a3646[_0x32f8e7(0x12f4)])return _0x3c1f31['userProfileResource'][_0x32f8e7(0xbf7)]({'sectionId':_0x4a3646['id']})[_0x32f8e7(0x1d77)][_0x32f8e7(0x1cb0)](function(_0x5534f4){const _0x331d40=_0x32f8e7,_0x150c3c=_0x39641b()[_0x331d40(0x1de2)](_0x5534f4[_0x331d40(0x2214)],function(_0x3760bb){const _0x37232c=_0x331d40;return _0x39641b()[_0x37232c(0x13b4)](_0x372a44['tags'],{'id':_0x3760bb['resourceId']});});let _0x447d15=null;_0x372a44[_0x331d40(0x22b1)]&&(_0x447d15=_0x39641b()['find'](_0x372a44['tags'],{'name':_0x372a44[_0x331d40(0x22b1)][_0x331d40(0x22b1)]}));if(_0x447d15&&!_0x39641b()[_0x331d40(0x727)](_0x150c3c,['id',_0x447d15['id']])){const _0x5c9160=_0x39641b()[_0x331d40(0x13b4)](_0x372a44['tags'],{'id':_0x447d15['id']});_0x5c9160['canSelect']=![],_0x150c3c[_0x331d40(0x2785)](_0x5c9160);}_0x372a44[_0x331d40(0xfbf)]=_0x150c3c;});}})[_0x1a26e1(0x1c4)](function(_0xa13efd){const _0x4880f8=_0x1a26e1;_0xc5f2ce['error']({'title':_0xa13efd['status']?_0x4880f8(0xeb9)+_0xa13efd['status']+'\x20-\x20'+_0xa13efd[_0x4880f8(0xc22)]:_0x4880f8(0x808),'msg':_0xa13efd[_0x4880f8(0x25c)]?JSON[_0x4880f8(0x2701)](_0xa13efd[_0x4880f8(0x25c)]):_0xa13efd[_0x4880f8(0x147f)]()});});function _0x101330(){const _0x26769a=_0x1a26e1;_0x372a44['errors']=[];const _0x43b91a=[];_0x372a44[_0x26769a(0x22b1)]['type']&&_0x372a44[_0x26769a(0x22b1)]['type'][_0x26769a(0x1680)]()===_0x26769a(0x895)&&_0x372a44['tag'][_0x26769a(0x299b)]===_0x26769a(0x25f4)&&(_0x372a44[_0x26769a(0x22b1)][_0x26769a(0x1340)]=_0x1e243d[_0x26769a(0x325)]?(_0x372a44[_0x26769a(0x22b1)][_0x26769a(0x586)]||'')+_0x26769a(0x19e4)+_0x1e243d[_0x26769a(0x325)]+'}':(_0x372a44[_0x26769a(0x22b1)]['prefix']||'')+'${EXTEN}',_0x1e243d[_0x26769a(0xf8d)]!=='none'?_0x372a44['tag'][_0x26769a(0x2224)]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x372a44[_0x26769a(0x22b1)][_0x26769a(0x2224)]+=_0x26769a(0x106a)):_0x372a44[_0x26769a(0x22b1)][_0x26769a(0x2224)]=_0x372a44[_0x26769a(0x22b1)]['options']['replace'](_0x26769a(0x106a),''));const _0x31299b=_0x39641b()[_0x26769a(0x13b4)](_0x372a44[_0x26769a(0xfbf)],{'name':_0x372a44[_0x26769a(0x22b1)]['tag']});_0x31299b&&(_0x372a44[_0x26769a(0x22b1)][_0x26769a(0x1754)]=_0x31299b['id']);if(_0x372a44[_0x26769a(0x22b1)]['appType']&&_0x372a44['tag'][_0x26769a(0x299b)]==='custom'){}else switch((_0x372a44['tag'][_0x26769a(0x22e1)]||_0x372a44[_0x26769a(0x22b1)][_0x26769a(0x299b)])['toLowerCase']()){case'set':_0x372a44[_0x26769a(0x22b1)][_0x26769a(0x28df)]=_0x372a44[_0x26769a(0x22b1)][_0x26769a(0x16b6)]+'='+_0x372a44[_0x26769a(0x22b1)][_0x26769a(0x327)];break;case'custom':break;default:_0x43b91a[0x0]=_0x372a44['tag'][_0x26769a(0x22b1)],_0x372a44[_0x26769a(0x22b1)]['appdata']=_0x43b91a[_0x26769a(0x1f66)](',');}_0x19a866(_0x372a44[_0x26769a(0x22b1)]);}function _0x19a866(_0x1d9149){const _0x559206=_0x1a26e1;_0x5d3960[_0x559206(0x1426)](_0x1d9149);}}const _0x4eb22e=_0x363afb;;_0x344eae[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x1f10),_0x5537c6(0x406),'$mdSidenav','$mdDialog','$document',_0x5537c6(0x2168),'$translate',_0x5537c6(0x142b),'toasty','Auth'];function _0x344eae(_0x1f9ec3,_0x363052,_0x50115a,_0x2430bb,_0x4b3bd8,_0x56ea34,_0x276164,_0x5ce1d3,_0x334b5c,_0x5a117a,_0x4e3427){const _0x308739=_0x5537c6,_0x48af73=this;_0x48af73[_0x308739(0xe76)]=_0x4e3427['getCurrentUser'](),_0x48af73[_0x308739(0xdf2)]={'count':0x0,'rows':[]},_0x48af73[_0x308739(0x122a)]=[],_0x48af73[_0x308739(0x1b1a)],_0x48af73[_0x308739(0x2376)]={'first':_0x308739(0x29a0),'second':'2nd','third':_0x308739(0xfbe)},_0x48af73[_0x308739(0xae2)]={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':_0x308739(0x282),'limit':0xa,'page':0x1},_0x48af73[_0x308739(0x1a8e)]=_0x54ad75,_0x48af73['deleteConfirm']=_0x334df9,_0x48af73[_0x308739(0x829)]=_0x5b6a13,_0x48af73[_0x308739(0x640)]=_0x2e99a8,_0x48af73[_0x308739(0x932)]=_0xaae730,_0x48af73['deleteDisposition']=_0x50802c,_0x48af73[_0x308739(0x1ebf)]=_0x4b89bf,_0x48af73[_0x308739(0x1626)]=_0x48a4d0,_0x48af73[_0x308739(0x25ec)]=_0x1b5a67,_0x48af73[_0x308739(0x13ff)]=_0x5cc151;function _0x54ad75(_0x51f63f,_0x460f19){const _0x3593af=_0x308739;_0x48af73[_0x3593af(0xb91)]=_0x51f63f||{},_0x48af73[_0x3593af(0x1b1a)]=typeof _0x460f19!=='undefined'?_0x460f19:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x48af73['query']['FaxAccountId']=_0x48af73[_0x3593af(0xb91)]['id'],_0x48af73[_0x3593af(0xae2)]['id']=_0x48af73[_0x3593af(0xb91)]['id'],_0x2e99a8();}function _0xaae730(_0x5db593,_0x56d209){const _0x4210c2=_0x308739;_0x4b3bd8['show']({'controller':_0x4210c2(0x201d),'controllerAs':'vm','templateUrl':_0x3d7049,'parent':angular[_0x4210c2(0x1853)](_0x56ea34[_0x4210c2(0x1ed9)]),'targetEvent':_0x5db593,'clickOutsideToClose':!![],'locals':{'disposition':_0x56d209,'model':{'id':_0x48af73[_0x4210c2(0xb91)]['id'],'field':_0x4210c2(0x18e9),'route':_0x4210c2(0xb91)},'license':null,'setting':null,'crudPermissions':_0x48af73[_0x4210c2(0x1b1a)]}})['then'](function(_0x57bf95){if(_0x57bf95)_0x2e99a8();});}function _0x334df9(_0x124e2d,_0x39d56d){const _0xf4cf86=_0x308739,_0x123264=_0x39641b()[_0xf4cf86(0x727)](_0x48af73[_0xf4cf86(0xdf2)][_0xf4cf86(0x2214)],[_0xf4cf86(0x55e),_0x124e2d['id']]),_0x39a09e=_0x4b3bd8[_0xf4cf86(0x1551)]()[_0xf4cf86(0x1386)](_0x5ce1d3[_0xf4cf86(0x25cc)](_0xf4cf86(0x1d64)))[_0xf4cf86(0x862)](_0x5ce1d3[_0xf4cf86(0x25cc)](_0xf4cf86(0x250b)+(_0x123264?_0xf4cf86(0x13cb):_0xf4cf86(0x1089)),{'name':_0x124e2d[_0xf4cf86(0x16b6)]}))['ariaLabel'](_0xf4cf86(0x35d))[_0xf4cf86(0x728)](_0x39d56d)['ok']('OK')['cancel'](_0x5ce1d3[_0xf4cf86(0x25cc)](_0xf4cf86(0x2768)));_0x4b3bd8[_0xf4cf86(0xe27)](_0x39a09e)[_0xf4cf86(0x1cb0)](function(){_0x50802c(_0x124e2d);});}function _0x5b6a13(_0x4dc269){const _0x3a4396=_0x308739;_0x48af73[_0x3a4396(0xdf2)]=_0x4dc269||{'count':0x0,'rows':[]};}function _0x2e99a8(){const _0x4ac8dd=_0x308739;_0x48af73[_0x4ac8dd(0xae2)][_0x4ac8dd(0x184b)]=(_0x48af73[_0x4ac8dd(0xae2)][_0x4ac8dd(0x1c7b)]-0x1)*_0x48af73[_0x4ac8dd(0xae2)][_0x4ac8dd(0x236)],_0x48af73[_0x4ac8dd(0x2061)]=_0x334b5c['faxAccount'][_0x4ac8dd(0x640)](_0x48af73['query'],_0x5b6a13)[_0x4ac8dd(0x1d77)];}function _0x50802c(_0x3e4561){const _0x3109b0=_0x308739;_0x334b5c[_0x3109b0(0x1746)]['delete']({'id':_0x3e4561['id']})[_0x3109b0(0x1d77)]['then'](function(){const _0x374107=_0x3109b0;_0x2e99a8(),_0x5a117a[_0x374107(0x829)]({'title':_0x5ce1d3['instant'](_0x374107(0x1f96))});})['catch'](function(_0x403806){const _0x11fd87=_0x3109b0;if(_0x403806[_0x11fd87(0x25c)]&&_0x403806['data'][_0x11fd87(0x1a7c)]&&_0x403806[_0x11fd87(0x25c)]['errors']['length']){_0x48af73[_0x11fd87(0x1a7c)]=_0x403806['data'][_0x11fd87(0x1a7c)]||[{'message':_0x403806[_0x11fd87(0x147f)](),'type':_0x11fd87(0x2618)}];for(let _0x2d3ba1=0x0;_0x2d3ba1<_0x403806[_0x11fd87(0x25c)]['errors']['length'];_0x2d3ba1++){_0x5a117a['error']({'title':_0x403806['data'][_0x11fd87(0x1a7c)][_0x2d3ba1]['type'],'msg':_0x403806[_0x11fd87(0x25c)][_0x11fd87(0x1a7c)][_0x2d3ba1][_0x11fd87(0x155e)]});}}else _0x5a117a[_0x11fd87(0x218e)]({'title':_0x403806[_0x11fd87(0x291)]?_0x11fd87(0xeb9)+_0x403806[_0x11fd87(0x291)]+'\x20-\x20'+_0x403806[_0x11fd87(0xc22)]:'SYSTEM:DELETEdisposition','msg':_0x403806[_0x11fd87(0x25c)]?JSON[_0x11fd87(0x2701)](_0x403806['data'][_0x11fd87(0x155e)]):_0x403806[_0x11fd87(0x155e)]||_0x403806[_0x11fd87(0x147f)]()});});}function _0x4b89bf(){const _0x391d85=_0x308739,_0x43d45b=angular[_0x391d85(0x17fe)](_0x48af73[_0x391d85(0x122a)]);return _0x48af73[_0x391d85(0x122a)]=[],_0x43d45b;}function _0x48a4d0(_0x2916d2){const _0x1b12fd=_0x308739,_0x31bc49=_0x4b3bd8[_0x1b12fd(0x1551)]()['title'](_0x5ce1d3[_0x1b12fd(0x25cc)](_0x1b12fd(0x969)))[_0x1b12fd(0x862)](_0x5ce1d3[_0x1b12fd(0x25cc)](_0x1b12fd(0xb3c),{'total':_0x48af73['selectedDispositions'][_0x1b12fd(0xfd0)]}))[_0x1b12fd(0x15ad)]('Delete\x20dispositions')[_0x1b12fd(0x728)](_0x2916d2)['ok']('OK')['cancel'](_0x5ce1d3[_0x1b12fd(0x25cc)](_0x1b12fd(0x2768)));_0x4b3bd8[_0x1b12fd(0xe27)](_0x31bc49)[_0x1b12fd(0x1cb0)](function(){const _0xf16bf4=_0x1b12fd;_0x48af73[_0xf16bf4(0x122a)][_0xf16bf4(0xf90)](function(_0x439384){_0x50802c(_0x439384);}),_0x48af73['selectedDispositions']=[];});}function _0x1b5a67(){const _0x4cc4f2=_0x308739;_0x48af73[_0x4cc4f2(0x122a)]=[];}function _0x5cc151(){const _0x41878b=_0x308739;_0x48af73[_0x41878b(0x122a)]=_0x48af73[_0x41878b(0xdf2)][_0x41878b(0x2214)];}let _0x3dbf63=!![],_0x432ebd=0x1;_0x1f9ec3[_0x308739(0x614)](_0x308739(0xeb6),function(_0x26e3d6,_0x4cd11a){const _0x428542=_0x308739;_0x3dbf63?_0x276164(function(){_0x3dbf63=![];}):(!_0x4cd11a&&(_0x432ebd=_0x48af73[_0x428542(0xae2)][_0x428542(0x1c7b)]),_0x26e3d6!==_0x4cd11a&&(_0x48af73['query'][_0x428542(0x1c7b)]=0x1),!_0x26e3d6&&(_0x48af73[_0x428542(0xae2)][_0x428542(0x1c7b)]=_0x432ebd),_0x2e99a8());});}const _0x7f1509=_0x344eae;;_0x13a9f8[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),'$scope',_0x5537c6(0x406),'$q',_0x5537c6(0x1ae),_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1774)];function _0x13a9f8(_0x5b4e03,_0x1ccb6e,_0x2d5fea,_0x1b772,_0x45104c,_0xbc7a45,_0x308616,_0x360ec7,_0x39cd77,_0x1ccfe3,_0x184c0a){const _0x34e16f=_0x5537c6,_0x7657ec=this;_0x7657ec['currentUser']=_0x184c0a['getCurrentUser'](),_0x7657ec[_0x34e16f(0xb91)]={},_0x7657ec[_0x34e16f(0x305)]={'count':0x0,'rows':[]},_0x7657ec['selectedFaxAccountInteractions']=[],_0x7657ec[_0x34e16f(0x1b1a)],_0x7657ec[_0x34e16f(0xae2)]={'read':'null','closed':_0x34e16f(0xd38),'sort':_0x34e16f(0x1c45),'includeAll':_0x34e16f(0x44d),'limit':0xa,'page':0x1},_0x7657ec[_0x34e16f(0x1a8e)]=_0x4fa5cb,_0x7657ec[_0x34e16f(0xb25)]=_0x553db7,_0x7657ec[_0x34e16f(0x21f3)]=_0x1ed864,_0x7657ec[_0x34e16f(0x829)]=_0xd419e2,_0x7657ec[_0x34e16f(0x153a)]=_0x2d6b00,_0x7657ec['spyfaxInteraction']=_0xce8bd0,_0x7657ec['openAdvancedSearch']=_0x2f3742,_0x7657ec[_0x34e16f(0xd75)]=_0x4d8e94,_0x7657ec['deleteFaxAccountInteraction']=_0x2ad18f,_0x7657ec['deleteSelectedFaxAccountInteractions']=_0x47fdd1;function _0x4fa5cb(_0x1cfcf9,_0x36ed11){const _0x1f25aa=_0x34e16f;_0x7657ec[_0x1f25aa(0xb91)]=_0x1cfcf9,_0x7657ec[_0x1f25aa(0x1b1a)]=typeof _0x36ed11!==_0x1f25aa(0x16b5)?_0x36ed11:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x7657ec[_0x1f25aa(0xae2)][_0x1f25aa(0x18e9)]=_0x7657ec[_0x1f25aa(0xb91)]['id'],_0x7657ec[_0x1f25aa(0x16ad)]={'fields':_0x42b88b()},_0x28a32e();}function _0x28a32e(){const _0x54d3bd=_0x34e16f;return _0x1ccfe3[_0x54d3bd(0x22b1)][_0x54d3bd(0xbf7)]()[_0x54d3bd(0x1d77)]['then'](function(_0x41bba9){const _0x71bc18=_0x54d3bd;_0x7657ec[_0x71bc18(0xfbf)]=_0x41bba9||{'count':0x0,'rows':[]};})[_0x54d3bd(0x1cb0)](function(){const _0x2ed5f6=_0x54d3bd;_0x7657ec[_0x2ed5f6(0x789)]=_0x5892c2();});}function _0x5892c2(){const _0x28f0c6=_0x34e16f;return[{'name':_0x28f0c6(0x68d),'key':_0x28f0c6(0x24cb),'type':'date','label':_0x28f0c6(0xf5e)},{'name':_0x28f0c6(0x223c),'key':_0x28f0c6(0xfc1),'type':_0x28f0c6(0x220f),'label':_0x28f0c6(0x9e5),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x28f0c6(0x27a4)},{'value':null,'translate':_0x28f0c6(0x2706)}]},{'name':_0x28f0c6(0x938),'key':_0x28f0c6(0x22aa),'type':_0x28f0c6(0x220f),'label':_0x28f0c6(0x24b6),'customOptions':[{'value':0x0,'translate':_0x28f0c6(0x1bbd)},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0x28f0c6(0x2706)}]},{'name':_0x28f0c6(0x30e),'key':_0x28f0c6(0x21ab),'type':_0x28f0c6(0x220f),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x28f0c6(0xd38),'translate':_0x28f0c6(0x68f)},{'value':undefined,'translate':_0x28f0c6(0x2706)}]},{'name':_0x28f0c6(0xf2d),'key':'tag','type':_0x28f0c6(0x1d50),'label':'DASHBOARDS.SELECT_TAG','options':_0x7657ec[_0x28f0c6(0xfbf)][_0x28f0c6(0x2214)],'placeholder':'DASHBOARDS.TAGS'}];}function _0x42b88b(){const _0x51336f=_0x34e16f;return[{'name':'Id','column':'id','type':_0x51336f(0x83d)},{'name':_0x51336f(0x8d3),'column':_0x51336f(0x8d3),'type':_0x51336f(0x19e0),'options':{'searchFields':[_0x51336f(0x1491),_0x51336f(0x1fbb),_0x51336f(0x1e19)],'route':{'model':_0x51336f(0xbe7),'action':_0x51336f(0xbf7),'params':{'fields':_0x51336f(0x9b0),'Contact':_0x51336f(0xed6),'nolimit':!![]}},'extraOperators':[_0x51336f(0x1fb1)],'excludedOperators':[_0x51336f(0x15ce)]}},{'name':'Subject','column':'subject','type':'text','options':{'excludedOperators':['$eq',_0x51336f(0x15ce)]}},{'name':_0x51336f(0x269b),'column':_0x51336f(0x1cd0),'type':_0x51336f(0x19d3),'options':{'excludedOperators':['$eq',_0x51336f(0x15ce)]}},{'name':'Status','column':_0x51336f(0x22aa),'type':_0x51336f(0x220f),'values':[{'id':0x0,'translate':_0x51336f(0x1bbd)},{'id':0x1,'translate':_0x51336f(0x191b)}],'options':{'excludedOperators':['$ne']}},{'name':'Agent','column':'User','type':_0x51336f(0x19e0),'options':{'table':'i','route':{'model':_0x51336f(0xebe),'action':_0x51336f(0xbf7),'params':{'role':_0x51336f(0x1eff),'fields':_0x51336f(0x1d34),'nolimit':!![]}},'searchFields':[_0x51336f(0x1d14),'name'],'extraOperators':[_0x51336f(0x1fb1)],'excludedOperators':[_0x51336f(0x15ce)]}},{'name':_0x51336f(0x190),'column':_0x51336f(0xf2d),'type':'multiselect','options':{'route':{'model':_0x51336f(0x22b1),'action':_0x51336f(0xbf7),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x51336f(0x68d),'column':'createdAt','type':_0x51336f(0x18ec),'options':{'excludedOperators':[_0x51336f(0x15ce)]}},{'name':_0x51336f(0x946),'column':'unreadMessages','type':_0x51336f(0x220f),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x51336f(0x15ce)]}}];}function _0x2f3742(){const _0x4806f5=_0x34e16f;_0x308616[_0x4806f5(0xe27)]({'controller':_0x4806f5(0x15f7),'controllerAs':'vm','templateUrl':_0x3530d6,'parent':angular[_0x4806f5(0x1853)](_0x360ec7['body']),'clickOutsideToClose':![],'locals':{'fields':_0x7657ec[_0x4806f5(0x16ad)][_0x4806f5(0x355)],'color':undefined,'storagePath':_0x4806f5(0x16bb)},'fullscreen':!![]})[_0x4806f5(0x1cb0)](function(_0x445359){const _0x423ca3=_0x4806f5;_0x7657ec[_0x423ca3(0xae2)][_0x423ca3(0x24be)]=_0x445359===![]?undefined:_0x445359;if(_0x7657ec['query'][_0x423ca3(0x24be)])_0x2d6b00();else _0x445359===![]&&_0x2d6b00();})[_0x4806f5(0x1c4)](function(_0x53f471){const _0x401dac=_0x4806f5;_0x39cd77[_0x401dac(0x218e)]({'title':_0x401dac(0x2260),'msg':_0x53f471[_0x401dac(0x25c)]?JSON['stringify'](_0x53f471['data'][_0x401dac(0x155e)]):_0x53f471[_0x401dac(0x147f)]()});});}function _0x1ed864(_0x571e7b,_0x16adb2,_0x52dfa2){const _0x4eee21=_0x34e16f;return _0x1ccfe3[_0x4eee21(0x1480)][_0x4eee21(0x26ec)]({'id':_0x571e7b['id'],'exists':!![],'attachments':_0x52dfa2})[_0x4eee21(0x1d77)][_0x4eee21(0x1cb0)](function(_0x123fcf){const _0x149bc4=_0x4eee21,_0x3df8cd=[_0x123fcf[_0x149bc4(0xef0)]];let _0x2a6534=_0x149bc4(0x10e4)+_0x571e7b['id'];const _0x217de0=new Blob(_0x3df8cd,{'type':_0x123fcf[_0x149bc4(0x66a)]});_0x2a6534=_0x149bc4(0x1b5b)+_0x571e7b['id']+'.zip';const _0x14ea58=window[_0x149bc4(0x1db8)]['createElement']('a');_0x14ea58['setAttribute']('href',URL[_0x149bc4(0x2247)](_0x217de0)),_0x14ea58[_0x149bc4(0x23b9)](_0x149bc4(0x26ec),_0x2a6534),document[_0x149bc4(0x1ed9)][_0x149bc4(0x23de)](_0x14ea58),_0x14ea58[_0x149bc4(0x20b8)]();})[_0x4eee21(0x1c4)](function(_0x2129e7){const _0x10e4cb=_0x4eee21;if(_0x2129e7[_0x10e4cb(0x25c)]&&_0x2129e7[_0x10e4cb(0x25c)]['errors']&&_0x2129e7[_0x10e4cb(0x25c)]['errors'][_0x10e4cb(0xfd0)])for(let _0x1907d0=0x0;_0x1907d0<_0x2129e7[_0x10e4cb(0x25c)][_0x10e4cb(0x1a7c)]['length'];_0x1907d0+=0x1){_0x39cd77[_0x10e4cb(0x218e)]({'title':_0x2129e7[_0x10e4cb(0x25c)]['errors'][_0x1907d0]['type'],'msg':_0x2129e7['data']['errors'][_0x1907d0][_0x10e4cb(0x155e)]});}else _0x39cd77[_0x10e4cb(0x218e)]({'title':_0x2129e7['status']?'API:'+_0x2129e7[_0x10e4cb(0x291)]+'\x20-\x20'+_0x2129e7[_0x10e4cb(0xc22)]:'api.faxAccount.save','msg':_0x2129e7['data']?JSON[_0x10e4cb(0x2701)](_0x2129e7[_0x10e4cb(0x25c)]['message']):_0x2129e7['toString']()});});}function _0x553db7(_0xc17d1,_0x13f7bb){const _0x3977fc=_0x34e16f,_0x31d4e6=_0x308616[_0x3977fc(0x1551)]()['title'](_0x3977fc(0x9bc))[_0x3977fc(0x49e)](''+(_0xc17d1['name']||_0xc17d1['id']&&_0x39641b()[_0x3977fc(0x277)]('interaction\x20#')+_0xc17d1['id']||'interaction')+_0x3977fc(0x1200)+_0x3977fc(0x1b6))[_0x3977fc(0x15ad)](_0x3977fc(0x116f))[_0x3977fc(0x728)](_0x13f7bb)['ok']('OK')[_0x3977fc(0x696)](_0x3977fc(0x24ba));_0x308616[_0x3977fc(0xe27)](_0x31d4e6)[_0x3977fc(0x1cb0)](function(){_0x2ad18f(_0xc17d1);},function(){const _0xb13904=_0x3977fc;console[_0xb13904(0x1b4f)](_0xb13904(0x24ba));});}function _0xd419e2(_0x5fde4d){const _0x2777d2=_0x34e16f;_0x7657ec[_0x2777d2(0x305)]=_0x5fde4d||{'count':0x0,'rows':[]};for(let _0xbdd462=0x0;_0xbdd462<_0x7657ec[_0x2777d2(0x305)][_0x2777d2(0x2214)]['length'];_0xbdd462+=0x1){const _0xd889fb=_0x7657ec[_0x2777d2(0x305)]['rows'][_0xbdd462];_0x380b42(_0xd889fb),_0xd889fb[_0x2777d2(0x135d)]['name']=_0x34f924(_0xd889fb);}}function _0x2d6b00(){const _0x3e47ca=_0x34e16f;_0x7657ec['query'][_0x3e47ca(0x184b)]=(_0x7657ec['query'][_0x3e47ca(0x1c7b)]-0x1)*_0x7657ec['query'][_0x3e47ca(0x236)],_0x7657ec[_0x3e47ca(0x2061)]=_0x1ccfe3[_0x3e47ca(0x1480)][_0x3e47ca(0xbf7)](_0x7657ec[_0x3e47ca(0xae2)],_0xd419e2)[_0x3e47ca(0x1d77)];}function _0xce8bd0(_0xc19ece,_0x52e4b0){const _0x2d9487=_0x34e16f;_0x308616[_0x2d9487(0xe27)]({'controller':'AgentGeneralInteractionController','controllerAs':'vm','templateUrl':_0x50da87,'parent':angular[_0x2d9487(0x1853)](_0x360ec7[_0x2d9487(0x1ed9)]),'targetEvent':_0xc19ece,'clickOutsideToClose':!![],'onShowing':function(_0x104dc6){const _0x131366=_0x2d9487;_0x104dc6['vm'][_0x131366(0x1a8e)]({'id':0x1,'channel':_0x131366(0x1944),'interaction':_0x52e4b0,'spy':!![]},_0x1ccb6e[_0x131366(0x17bc)]['vm'][_0x131366(0x9ca)]);}});}function _0x2ad18f(_0x589a72){const _0x45a856=_0x34e16f;_0x1ccfe3[_0x45a856(0x1480)]['delete']({'id':_0x589a72['id']})[_0x45a856(0x1d77)][_0x45a856(0x1cb0)](function(){const _0x43cf2c=_0x45a856;_0x39641b()[_0x43cf2c(0x152a)](_0x7657ec[_0x43cf2c(0x305)]['rows'],{'id':_0x589a72['id']}),_0x7657ec[_0x43cf2c(0x305)][_0x43cf2c(0x184d)]-=0x1,!_0x7657ec['faxAccountInteractions'][_0x43cf2c(0x2214)][_0x43cf2c(0xfd0)]&&_0x2d6b00(),_0x39cd77['success']({'title':'Interaction\x20deleted!','msg':_0x589a72[_0x43cf2c(0x16b6)]?_0x589a72[_0x43cf2c(0x16b6)]+_0x43cf2c(0x3f5):''});})[_0x45a856(0x1c4)](function(_0x1fe735){const _0xf57902=_0x45a856;if(_0x1fe735[_0xf57902(0x25c)]&&_0x1fe735[_0xf57902(0x25c)][_0xf57902(0x1a7c)]&&_0x1fe735[_0xf57902(0x25c)][_0xf57902(0x1a7c)]['length']){_0x7657ec[_0xf57902(0x1a7c)]=_0x1fe735[_0xf57902(0x25c)][_0xf57902(0x1a7c)]||[{'message':_0x1fe735[_0xf57902(0x147f)](),'type':'SYSTEM:GETfaxAccount'}];for(let _0x449dea=0x0;_0x449dea<_0x1fe735[_0xf57902(0x25c)][_0xf57902(0x1a7c)]['length'];_0x449dea++){_0x39cd77[_0xf57902(0x218e)]({'title':_0x1fe735[_0xf57902(0x25c)]['errors'][_0x449dea]['type'],'msg':_0x1fe735['data'][_0xf57902(0x1a7c)][_0x449dea]['message']});}}else _0x39cd77[_0xf57902(0x218e)]({'title':_0x1fe735[_0xf57902(0x291)]?_0xf57902(0xeb9)+_0x1fe735[_0xf57902(0x291)]+_0xf57902(0x1657)+_0x1fe735[_0xf57902(0xc22)]:_0xf57902(0x2633),'msg':_0x1fe735[_0xf57902(0x25c)]?JSON[_0xf57902(0x2701)](_0x1fe735['data'][_0xf57902(0x155e)]):_0x1fe735[_0xf57902(0x155e)]||_0x1fe735['toString']()});});}function _0x4d8e94(){const _0x28861c=_0x34e16f,_0x2cbad7=angular[_0x28861c(0x17fe)](_0x7657ec[_0x28861c(0x224a)]);return _0x7657ec['selectedFaxAccountInteractions']=[],_0x2cbad7;}function _0x47fdd1(_0x4c58a9){const _0x20de12=_0x34e16f,_0x513687=_0x308616[_0x20de12(0x1551)]()[_0x20de12(0x1386)](_0x20de12(0xb2e))[_0x20de12(0x49e)](_0x20de12(0x204d)+_0x7657ec[_0x20de12(0x224a)][_0x20de12(0xfd0)]+_0x20de12(0x1d6c)+_0x20de12(0x1b6))['ariaLabel'](_0x20de12(0x8ca))['targetEvent'](_0x4c58a9)['ok']('OK')[_0x20de12(0x696)](_0x20de12(0x24ba));_0x308616['show'](_0x513687)[_0x20de12(0x1cb0)](function(){const _0x16b40d=_0x20de12;_0x7657ec[_0x16b40d(0x224a)][_0x16b40d(0xf90)](function(_0x21eafd){_0x2ad18f(_0x21eafd);}),_0x7657ec[_0x16b40d(0x224a)]=[];});}function _0x380b42(_0x3a262c){const _0x2c634c=_0x34e16f;_0x3a262c[_0x2c634c(0x8d3)]?(_0x3a262c[_0x2c634c(0x1325)]=(_0x3a262c[_0x2c634c(0x8d3)][_0x2c634c(0x1491)]||'')+'\x20'+(_0x3a262c[_0x2c634c(0x8d3)][_0x2c634c(0x1fbb)]||''),_0x3a262c[_0x2c634c(0x28b6)]=_0x3a262c['Contact'][_0x2c634c(0x1944)]):_0x3a262c[_0x2c634c(0x1325)]=_0x45104c[_0x2c634c(0x25cc)](_0x2c634c(0x2b9));}function _0x34f924(_0x350c93){const _0x302f3e=_0x34e16f;if(_0x350c93[_0x302f3e(0x21ab)])return _0x350c93[_0x302f3e(0x21ab)]===_0x7657ec[_0x302f3e(0xe76)]['id']?_0x45104c['instant'](_0x302f3e(0x1ea6)):_0x350c93[_0x302f3e(0x135d)][_0x302f3e(0x1d14)]+'\x20<'+_0x350c93[_0x302f3e(0x135d)][_0x302f3e(0xdbd)]+'>';return _0x45104c[_0x302f3e(0x25cc)](_0x302f3e(0x68f));}let _0x31f910=!![],_0x2e3d50=0x1;_0x1ccb6e['$watch']('vm_dc.query.filter',function(_0x5b91b5,_0x94451f){const _0x467fb5=_0x34e16f;_0x31f910?_0xbc7a45(function(){_0x31f910=![];}):(!_0x94451f&&(_0x2e3d50=_0x7657ec[_0x467fb5(0xae2)][_0x467fb5(0x1c7b)]),_0x5b91b5!==_0x94451f&&(_0x7657ec[_0x467fb5(0xae2)]['page']=0x1),!_0x5b91b5&&(_0x7657ec[_0x467fb5(0xae2)]['page']=_0x2e3d50),_0x2d6b00());});}const _0x10e9cd=_0x13a9f8;;const _0x16157a=_0x5074a3['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/agentadd/agentadd.html/agentadd.html';;_0x9101a9['$inject']=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1ae),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x142b),'toasty',_0x5537c6(0x1774),_0x5537c6(0xb91),_0x5537c6(0x2199)];function _0x9101a9(_0x3634dd,_0x112264,_0xf59de6,_0x3313f2,_0x4f35be,_0x2a2149,_0x29c66b,_0x4ac9c5,_0x5abeab,_0x20ed22,_0x3262b3,_0x288729){const _0x452222=_0x5537c6,_0x5d0ae5=this;_0x5d0ae5[_0x452222(0xe76)]=_0x20ed22[_0x452222(0x21e8)](),_0x5d0ae5['license']=_0x2a2149,_0x5d0ae5[_0x452222(0x9ca)]=_0x29c66b,_0x5d0ae5[_0x452222(0x1b0c)]=_0x5d0ae5[_0x452222(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5d0ae5[_0x452222(0x2404)]=_0x112264[_0x452222(0x2276)]()+_0x452222(0x138b)+_0x112264['host'](),_0x5d0ae5[_0x452222(0xb91)]=_0x3262b3||_0x3634dd[_0x452222(0x1dfe)][_0x452222(0xb91)]||{},_0x5d0ae5['userProfileSection']=_0x288729&&_0x288729['count']==0x1?_0x288729['rows'][0x0]:null,_0x5d0ae5[_0x452222(0x1b1a)]=_0x20ed22[_0x452222(0x14ea)](_0x5d0ae5['userProfileSection']?_0x5d0ae5[_0x452222(0x2199)][_0x452222(0x1b1a)]:null),_0x5d0ae5['hasModulePermissions']={},_0x5d0ae5[_0x452222(0x8ec)]=_0x3634dd['params'][_0x452222(0x291e)]||0x0,_0x5d0ae5['gotogoto']=_0x463c77,_0x5d0ae5[_0x452222(0x1379)]=_0x4a53d2,_0x5d0ae5[_0x452222(0x494)]=_0x5abeab[_0x452222(0x28c7)],_0x5d0ae5[_0x452222(0x13de)]=_0x2564fa,_0x5d0ae5[_0x452222(0x7f8)]=_0xb32d6e,_0x20ed22[_0x452222(0x22b6)](_0x452222(0x1c60))?_0x4ac9c5[_0x452222(0x1ae0)][_0x452222(0xbf7)]({'fields':_0x452222(0x43c),'sort':_0x452222(0x16b6)})[_0x452222(0x1d77)][_0x452222(0x1cb0)](function(_0x549b39){_0x5d0ae5['trunks']=_0x549b39['rows']||[];})[_0x452222(0x1c4)](function(_0x4dba99){const _0x4561c4=_0x452222;_0x5abeab[_0x4561c4(0x218e)]({'title':_0x4dba99[_0x4561c4(0x291)]?_0x4561c4(0xeb9)+_0x4dba99['status']+_0x4561c4(0x1657)+_0x4dba99[_0x4561c4(0xc22)]:_0x4561c4(0x14fc),'msg':_0x4dba99[_0x4561c4(0x25c)]?JSON[_0x4561c4(0x2701)](_0x4dba99[_0x4561c4(0x25c)]):_0x4dba99['toString']()});}):_0x4ac9c5['trunk']['get']({'fields':'id,name','sort':'name'})[_0x452222(0x1d77)][_0x452222(0x1cb0)](function(_0x232ea3){const _0x1a8ad4=_0x452222;_0x5d0ae5[_0x1a8ad4(0x1363)]=_0x232ea3[_0x1a8ad4(0x2214)]||[];})[_0x452222(0x1cb0)](function(){const _0x4c625b=_0x452222;return _0x4ac9c5[_0x4c625b(0x2199)][_0x4c625b(0xbf7)]({'userProfileId':_0x5d0ae5[_0x4c625b(0xe76)]['userProfileId'],'sectionId':0x3f3})['$promise'];})[_0x452222(0x1cb0)](function(_0x105815){const _0x2d3a36=_0x452222,_0x940306=_0x105815&&_0x105815['rows']?_0x105815[_0x2d3a36(0x2214)][0x0]:null;if(!_0x940306){const _0x324cbb=[];let _0x2e4ec3=null;_0x5d0ae5[_0x2d3a36(0xb91)]&&(_0x2e4ec3=_0x39641b()['find'](_0x5d0ae5[_0x2d3a36(0x1363)],{'id':Number(_0x5d0ae5[_0x2d3a36(0xb91)][_0x2d3a36(0x7ab)])}));for(let _0x3c8dfc=0x0;_0x3c8dfc<_0x5d0ae5['trunks'][_0x2d3a36(0xfd0)];_0x3c8dfc++){_0x2e4ec3&&_0x5d0ae5[_0x2d3a36(0x1363)][_0x3c8dfc]['id']===_0x2e4ec3['id']&&(_0x5d0ae5[_0x2d3a36(0x1363)][_0x3c8dfc][_0x2d3a36(0x15da)]=![],_0x324cbb[_0x2d3a36(0x2785)](_0x5d0ae5[_0x2d3a36(0x1363)][_0x3c8dfc]));}_0x5d0ae5['trunks']=_0x324cbb;}else{if(!_0x940306[_0x2d3a36(0x12f4)])return _0x4ac9c5[_0x2d3a36(0x1198)][_0x2d3a36(0xbf7)]({'sectionId':_0x940306['id']})[_0x2d3a36(0x1d77)][_0x2d3a36(0x1cb0)](function(_0x22e170){const _0xe935aa=_0x2d3a36,_0x237caa=_0x39641b()[_0xe935aa(0x1de2)](_0x22e170[_0xe935aa(0x2214)],function(_0x2787a0){const _0x55547c=_0xe935aa;return _0x39641b()['find'](_0x5d0ae5[_0x55547c(0x1363)],{'id':_0x2787a0[_0x55547c(0x2982)]});});let _0x164fcc=null;_0x5d0ae5[_0xe935aa(0xb91)]&&(_0x164fcc=_0x39641b()[_0xe935aa(0x13b4)](_0x5d0ae5['trunks'],{'id':Number(_0x5d0ae5[_0xe935aa(0xb91)]['TrunkId'])}));if(_0x164fcc&&!_0x39641b()[_0xe935aa(0x727)](_0x237caa,['id',_0x164fcc['id']])){const _0x4b3c32=_0x39641b()['find'](_0x5d0ae5[_0xe935aa(0x1363)],{'id':_0x164fcc['id']});_0x4b3c32[_0xe935aa(0x15da)]=![],_0x237caa[_0xe935aa(0x2785)](_0x4b3c32);}_0x5d0ae5[_0xe935aa(0x1363)]=_0x237caa;});}})[_0x452222(0x1c4)](function(_0x131dce){const _0x340c49=_0x452222;_0x5abeab['error']({'title':_0x131dce[_0x340c49(0x291)]?_0x340c49(0xeb9)+_0x131dce[_0x340c49(0x291)]+_0x340c49(0x1657)+_0x131dce[_0x340c49(0xc22)]:'SYSTEM:GETtrunks','msg':_0x131dce['data']?JSON[_0x340c49(0x2701)](_0x131dce['data']):_0x131dce['toString']()});}),_0x20ed22[_0x452222(0x22b6)](_0x452222(0x1c60))?_0x4ac9c5[_0x452222(0x22f2)][_0x452222(0xbf7)]({'fields':_0x452222(0x43c),'sort':'name'})[_0x452222(0x1d77)][_0x452222(0x1cb0)](function(_0x223239){const _0x5738b5=_0x452222;_0x5d0ae5[_0x5738b5(0x1046)]=_0x223239[_0x5738b5(0x2214)]||[];})[_0x452222(0x1c4)](function(_0xee1620){const _0x5553a4=_0x452222;_0x5abeab['error']({'title':_0xee1620['status']?'API:'+_0xee1620[_0x5553a4(0x291)]+_0x5553a4(0x1657)+_0xee1620[_0x5553a4(0xc22)]:_0x5553a4(0x149e),'msg':_0xee1620[_0x5553a4(0x25c)]?JSON[_0x5553a4(0x2701)](_0xee1620[_0x5553a4(0x25c)]):_0xee1620['toString']()});}):_0x4ac9c5['cmList']['get']({'fields':_0x452222(0x43c),'sort':'name'})['$promise'][_0x452222(0x1cb0)](function(_0x18d5f0){const _0x2a9308=_0x452222;_0x5d0ae5[_0x2a9308(0x1046)]=_0x18d5f0[_0x2a9308(0x2214)]||[];})['then'](function(){const _0x49373c=_0x452222;return _0x4ac9c5[_0x49373c(0x2199)]['get']({'userProfileId':_0x5d0ae5[_0x49373c(0xe76)]['userProfileId'],'sectionId':0x12d})[_0x49373c(0x1d77)];})[_0x452222(0x1cb0)](function(_0x4b47fb){const _0x14099b=_0x452222,_0x538886=_0x4b47fb&&_0x4b47fb[_0x14099b(0x2214)]?_0x4b47fb[_0x14099b(0x2214)][0x0]:null;if(!_0x538886){const _0x5d9297=[];let _0x15cf53=null;_0x5d0ae5[_0x14099b(0xb91)]&&(_0x15cf53=_0x39641b()[_0x14099b(0x13b4)](_0x5d0ae5[_0x14099b(0x1046)],{'id':Number(_0x5d0ae5['faxAccount']['ListId'])}));for(let _0x53265f=0x0;_0x53265f<_0x5d0ae5[_0x14099b(0x1046)][_0x14099b(0xfd0)];_0x53265f++){_0x15cf53&&_0x5d0ae5['lists'][_0x53265f]['id']===_0x15cf53['id']&&(_0x5d0ae5[_0x14099b(0x1046)][_0x53265f][_0x14099b(0x15da)]=![],_0x5d9297[_0x14099b(0x2785)](_0x5d0ae5['lists'][_0x53265f]));}_0x5d0ae5[_0x14099b(0x1046)]=_0x5d9297;}else{if(!_0x538886[_0x14099b(0x12f4)])return _0x4ac9c5[_0x14099b(0x1198)][_0x14099b(0xbf7)]({'sectionId':_0x538886['id']})[_0x14099b(0x1d77)][_0x14099b(0x1cb0)](function(_0x2bc176){const _0x1da809=_0x14099b,_0x1e5be0=_0x39641b()[_0x1da809(0x1de2)](_0x2bc176[_0x1da809(0x2214)],function(_0x4890e3){const _0x2ab905=_0x1da809;return _0x39641b()[_0x2ab905(0x13b4)](_0x5d0ae5[_0x2ab905(0x1046)],{'id':_0x4890e3[_0x2ab905(0x2982)]});});let _0x4ad8d5=null;_0x5d0ae5[_0x1da809(0xb91)]&&(_0x4ad8d5=_0x39641b()[_0x1da809(0x13b4)](_0x5d0ae5['lists'],{'id':Number(_0x5d0ae5[_0x1da809(0xb91)][_0x1da809(0x20a6)])}));if(_0x4ad8d5&&!_0x39641b()[_0x1da809(0x727)](_0x1e5be0,['id',_0x4ad8d5['id']])){const _0x844b28=_0x39641b()[_0x1da809(0x13b4)](_0x5d0ae5[_0x1da809(0x1046)],{'id':_0x4ad8d5['id']});_0x844b28[_0x1da809(0x15da)]=![],_0x1e5be0['push'](_0x844b28);}_0x5d0ae5['lists']=_0x1e5be0;});}})[_0x452222(0x1c4)](function(_0x3be7a2){const _0x5a6a4e=_0x452222;_0x5abeab[_0x5a6a4e(0x218e)]({'title':_0x3be7a2['status']?'API:'+_0x3be7a2['status']+_0x5a6a4e(0x1657)+_0x3be7a2[_0x5a6a4e(0xc22)]:_0x5a6a4e(0x113c),'msg':_0x3be7a2[_0x5a6a4e(0x25c)]?JSON[_0x5a6a4e(0x2701)](_0x3be7a2[_0x5a6a4e(0x25c)]):_0x3be7a2[_0x5a6a4e(0x147f)]()});}),_0x20ed22[_0x452222(0x22b6)](_0x452222(0x1c60))?_0x4ac9c5[_0x452222(0x785)][_0x452222(0xbf7)]({'fields':_0x452222(0x791),'sort':_0x452222(0x16b6),'nolimit':_0x452222(0x44d)})[_0x452222(0x1d77)][_0x452222(0x1cb0)](function(_0x3ebc7c){const _0x33d5ce=_0x452222;_0x5d0ae5[_0x33d5ce(0x8de)]=_0x3ebc7c[_0x33d5ce(0x2214)]||[];})['catch'](function(_0x7e7654){const _0x128e57=_0x452222;_0x5abeab['error']({'title':_0x7e7654['status']?_0x128e57(0xeb9)+_0x7e7654[_0x128e57(0x291)]+'\x20-\x20'+_0x7e7654['statusText']:_0x128e57(0x1589),'msg':_0x7e7654[_0x128e57(0x25c)]?JSON[_0x128e57(0x2701)](_0x7e7654['data']):_0x7e7654[_0x128e57(0x147f)]()});}):_0x4ac9c5[_0x452222(0x785)][_0x452222(0xbf7)]({'fields':'name,id','sort':_0x452222(0x16b6),'nolimit':_0x452222(0x44d)})[_0x452222(0x1d77)]['then'](function(_0x286a87){const _0x586032=_0x452222;_0x5d0ae5[_0x586032(0x8de)]=_0x286a87[_0x586032(0x2214)]||[];})[_0x452222(0x1cb0)](function(){const _0x297275=_0x452222;return _0x4ac9c5[_0x297275(0x2199)][_0x297275(0xbf7)]({'userProfileId':_0x5d0ae5[_0x297275(0xe76)][_0x297275(0x13c1)],'sectionId':0x3ed})[_0x297275(0x1d77)];})[_0x452222(0x1cb0)](function(_0x5c7ccb){const _0x2d6458=_0x452222,_0x43cb8c=_0x5c7ccb&&_0x5c7ccb[_0x2d6458(0x2214)]?_0x5c7ccb['rows'][0x0]:null;if(!_0x43cb8c)_0x5d0ae5[_0x2d6458(0x8de)]=[];else{if(!_0x43cb8c['autoAssociation'])return _0x4ac9c5[_0x2d6458(0x1198)]['get']({'sectionId':_0x43cb8c['id']})[_0x2d6458(0x1d77)][_0x2d6458(0x1cb0)](function(_0x5b2c6f){const _0x29bcaf=_0x2d6458,_0x25a539=_0x39641b()['map'](_0x5b2c6f[_0x29bcaf(0x2214)],function(_0x36b6f8){return _0x39641b()['find'](_0x5d0ae5['pauses'],{'id':_0x36b6f8['resourceId']});});_0x5d0ae5[_0x29bcaf(0x8de)]['forEach'](function(_0x1eca32){const _0x161d8f=_0x29bcaf;!_0x39641b()[_0x161d8f(0x727)](_0x25a539,['id',_0x1eca32['id']])&&(_0x1eca32[_0x161d8f(0x15da)]=![]),_0x25a539['push'](_0x1eca32);}),_0x5d0ae5[_0x29bcaf(0x8de)]=_0x25a539;});}})['catch'](function(_0x114d6b){const _0xd854b2=_0x452222;_0x5abeab[_0xd854b2(0x218e)]({'title':_0x114d6b[_0xd854b2(0x291)]?_0xd854b2(0xeb9)+_0x114d6b[_0xd854b2(0x291)]+'\x20-\x20'+_0x114d6b[_0xd854b2(0xc22)]:_0xd854b2(0x162),'msg':_0x114d6b['data']?JSON['stringify'](_0x114d6b[_0xd854b2(0x25c)]):_0x114d6b[_0xd854b2(0x147f)]()});});function _0x463c77(){const _0x19be09=_0x452222;if(_0x20ed22[_0x19be09(0x22b6)](_0x19be09(0x1c60)))_0x3634dd['go'](_0x19be09(0x1076),{});else return _0x4ac9c5[_0x19be09(0x2199)][_0x19be09(0xbf7)]({'userProfileId':_0x20ed22[_0x19be09(0x21e8)]()[_0x19be09(0x13c1)],'sectionId':0x38e})[_0x19be09(0x1d77)][_0x19be09(0x1cb0)](function(_0x1d72e1){const _0x4acd78=_0x19be09,_0x260b9c=_0x1d72e1&&_0x1d72e1['rows']?_0x1d72e1[_0x4acd78(0x2214)][0x0]:null;_0x260b9c&&_0x260b9c[_0x4acd78(0x281c)]?_0x3634dd['go']('app.fax.realtime.accounts',{}):_0x5abeab[_0x4acd78(0x28c7)]({'title':_0x4f35be[_0x4acd78(0x25cc)](_0x4acd78(0x370)),'msg':_0x4f35be['instant'](_0x4acd78(0x33a))});})['catch'](function(_0x54fa04){const _0x24c76e=_0x19be09;_0x5abeab[_0x24c76e(0x218e)]({'title':_0x54fa04['status']?_0x24c76e(0xeb9)+_0x54fa04['status']+_0x24c76e(0x1657)+_0x54fa04['statusText']:_0x24c76e(0x17ba),'msg':_0x54fa04[_0x24c76e(0x291)]?JSON[_0x24c76e(0x2701)](_0x54fa04[_0x24c76e(0x25c)]):_0x54fa04['toString']()});});}function _0x4a53d2(_0x4b6356,_0x52c67b){const _0xcd144d=_0x452222;_0xf59de6[_0xcd144d(0xe27)]({'controller':_0xcd144d(0x2340),'controllerAs':'vm','templateUrl':_0x16157a,'parent':angular[_0xcd144d(0x1853)](_0x3313f2[_0xcd144d(0x1ed9)]),'targetEvent':_0x52c67b,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x4b6356,'faxAccounts':_0x5d0ae5[_0xcd144d(0x29de)]?_0x5d0ae5[_0xcd144d(0x29de)][_0xcd144d(0x2214)]:[],'crudPermissions':_0x5d0ae5['crudPermissions'],'realtime':![]}});}function _0x2564fa(){const _0x56da0e=_0x452222;_0x3634dd['go'](_0x56da0e(0x2808),{},{'reload':_0x56da0e(0x2808)});}function _0xb32d6e(){const _0x3b0d6e=_0x452222;_0x4ac9c5[_0x3b0d6e(0xb91)][_0x3b0d6e(0xff3)](_0x5d0ae5[_0x3b0d6e(0xb91)])[_0x3b0d6e(0x1d77)][_0x3b0d6e(0x1cb0)](function(){const _0x290694=_0x3b0d6e;_0x5abeab[_0x290694(0x829)]({'title':_0x290694(0xe60),'msg':_0x5d0ae5[_0x290694(0xb91)][_0x290694(0x16b6)]?_0x5d0ae5[_0x290694(0xb91)][_0x290694(0x16b6)]+_0x290694(0x1068):''});})['catch'](function(_0x391815){const _0x2387bf=_0x3b0d6e;_0x5abeab[_0x2387bf(0x218e)]({'title':_0x391815[_0x2387bf(0x291)]?_0x2387bf(0xeb9)+_0x391815[_0x2387bf(0x291)]+_0x2387bf(0x1657)+_0x391815[_0x2387bf(0xc22)]:_0x2387bf(0x2633),'msg':_0x391815[_0x2387bf(0x25c)]?JSON['stringify'](_0x391815[_0x2387bf(0x25c)]):_0x391815[_0x2387bf(0x147f)]()});});}}const _0x4c9a39=_0x9101a9;;const _0x5ed520=_0x5074a3['p']+_0x5537c6(0x873);;_0x30d8b6[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),'$translate',_0x5537c6(0x29de),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x30d8b6(_0x7e0355,_0x3c09ac,_0x547675,_0x3bd4d5,_0xb7dae6,_0x1871e3,_0x33f2c4,_0x25a832,_0xf599da,_0x4ea931,_0x4444da,_0x4db959,_0x350e7e,_0x43fcb0,_0x100790,_0x564fe5,_0x2f5ecc){const _0x5f4ea6=_0x5537c6,_0x3bab8b=this;_0x3bab8b[_0x5f4ea6(0x8a5)]=_0x564fe5,_0x3bab8b[_0x5f4ea6(0x9ca)]=_0x2f5ecc,_0x3bab8b[_0x5f4ea6(0xe76)]=_0x100790[_0x5f4ea6(0x21e8)](),_0x3bab8b[_0x5f4ea6(0x29de)]=_0xf599da||{'count':0x0,'rows':[]},_0x3bab8b[_0x5f4ea6(0x44a)]=_0x4ea931,_0x3bab8b[_0x5f4ea6(0x2199)]=_0x4444da&&_0x4444da[_0x5f4ea6(0x184d)]==0x1?_0x4444da['rows'][0x0]:null,_0x3bab8b[_0x5f4ea6(0x1b1a)]=_0x100790['parseCrudPermissions'](_0x3bab8b[_0x5f4ea6(0x2199)]?_0x3bab8b['userProfileSection'][_0x5f4ea6(0x1b1a)]:null),_0x3bab8b[_0x5f4ea6(0xc83)]='faxAccounts',_0x3bab8b['listOrder']='',_0x3bab8b[_0x5f4ea6(0x1cdf)]=null,_0x3bab8b['selectedFaxAccounts']=[],_0x3bab8b[_0x5f4ea6(0xae2)]={'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':_0x5f4ea6(0x282),'limit':0xa,'page':0x1},_0x3bab8b[_0x5f4ea6(0x1aa1)]=_0x39641b()[_0x5f4ea6(0x2631)]([{'option':'yes','value':_0x5f4ea6(0x27e4)},{'option':'no','value':'\x27no\x27'}],function(_0x3e9b03){const _0x6a02ae=_0x5f4ea6;return _0x39641b()['replace'](_0x3e9b03[_0x6a02ae(0x327)],new RegExp('\x27','g'),'');}),_0x3bab8b[_0x5f4ea6(0x1735)]=_0x39641b()[_0x5f4ea6(0x2631)]([{'option':_0x5f4ea6(0x10a8),'value':_0x5f4ea6(0x2f0)},{'option':_0x5f4ea6(0x213c),'value':'\x274800\x27'},{'option':_0x5f4ea6(0x1f4d),'value':_0x5f4ea6(0x972)},{'option':'9600','value':'\x279600\x27'},{'option':_0x5f4ea6(0x1cd7),'value':_0x5f4ea6(0x140f)},{'option':_0x5f4ea6(0x2932),'value':'\x2714400\x27'}],function(_0x393c31){const _0x48d8c8=_0x5f4ea6;return _0x39641b()[_0x48d8c8(0x288f)](_0x393c31[_0x48d8c8(0x327)],new RegExp('\x27','g'),'');}),_0x3bab8b['arraymaxrate']=_0x39641b()['keyBy']([{'option':_0x5f4ea6(0x10a8),'value':_0x5f4ea6(0x2f0)},{'option':'4800','value':_0x5f4ea6(0xd3c)},{'option':_0x5f4ea6(0x1f4d),'value':_0x5f4ea6(0x972)},{'option':_0x5f4ea6(0x513),'value':_0x5f4ea6(0x29c1)},{'option':_0x5f4ea6(0x1cd7),'value':_0x5f4ea6(0x140f)},{'option':_0x5f4ea6(0x2932),'value':'\x2714400\x27'}],function(_0x2a156f){const _0x5d2dce=_0x5f4ea6;return _0x39641b()[_0x5d2dce(0x288f)](_0x2a156f[_0x5d2dce(0x327)],new RegExp('\x27','g'),'');}),_0x3bab8b['arraytech']=_0x39641b()[_0x5f4ea6(0x2631)]([{'option':_0x5f4ea6(0x2832),'value':_0x5f4ea6(0x261a)},{'option':_0x5f4ea6(0x9a4),'value':_0x5f4ea6(0x20ab)},{'option':'DADHI','value':'\x27DADHI\x27'},{'option':_0x5f4ea6(0x1e6e),'value':_0x5f4ea6(0x24fa)}],function(_0x1e7841){const _0x27ab8b=_0x5f4ea6;return _0x39641b()[_0x27ab8b(0x288f)](_0x1e7841[_0x27ab8b(0x327)],new RegExp('\x27','g'),'');}),_0x3bab8b[_0x5f4ea6(0x235d)]=_0xb3a41e,_0x3bab8b[_0x5f4ea6(0x1552)]=_0x53d32f,_0x3bab8b['gotorealtimegoto']=_0x40eb9c,_0x3bab8b[_0x5f4ea6(0x1379)]=_0x486e80,_0x3bab8b[_0x5f4ea6(0x27fe)]=_0x1e95f5,_0x3bab8b[_0x5f4ea6(0x829)]=_0x27ac1e,_0x3bab8b[_0x5f4ea6(0x8e2)]=_0x5df79f,_0x3bab8b['createOrEditFaxAccount']=_0x420813,_0x3bab8b['deleteFaxAccount']=_0x3c9e8c,_0x3bab8b[_0x5f4ea6(0x1b95)]=_0x399f46,_0x3bab8b[_0x5f4ea6(0x1b8f)]=_0x3f9e8f,_0x3bab8b[_0x5f4ea6(0x1007)]=_0x11a1eb,_0x3bab8b[_0x5f4ea6(0xe4e)]=_0xf9f7e3,_0x100790['hasRole'](_0x5f4ea6(0x1c60))?_0x4db959['trunk'][_0x5f4ea6(0xbf7)]({'fields':_0x5f4ea6(0x43c),'sort':'name'})[_0x5f4ea6(0x1d77)][_0x5f4ea6(0x1cb0)](function(_0x77e077){const _0x5e04c3=_0x5f4ea6;_0x3bab8b[_0x5e04c3(0x1363)]=_0x77e077['rows']||[];})[_0x5f4ea6(0x1c4)](function(_0x4f13f0){const _0x36f5cf=_0x5f4ea6;_0x43fcb0[_0x36f5cf(0x218e)]({'title':_0x4f13f0[_0x36f5cf(0x291)]?_0x36f5cf(0xeb9)+_0x4f13f0['status']+'\x20-\x20'+_0x4f13f0['statusText']:_0x36f5cf(0x14fc),'msg':_0x4f13f0[_0x36f5cf(0x25c)]?JSON[_0x36f5cf(0x2701)](_0x4f13f0[_0x36f5cf(0x25c)]):_0x4f13f0[_0x36f5cf(0x147f)]()});}):_0x4db959['trunk'][_0x5f4ea6(0xbf7)]({'fields':'id,name','sort':'name'})[_0x5f4ea6(0x1d77)][_0x5f4ea6(0x1cb0)](function(_0x34e613){const _0x3a890f=_0x5f4ea6;_0x3bab8b[_0x3a890f(0x1363)]=_0x34e613['rows']||[];})[_0x5f4ea6(0x1cb0)](function(){const _0x2e15fe=_0x5f4ea6;return _0x4db959[_0x2e15fe(0x2199)]['get']({'userProfileId':_0x3bab8b[_0x2e15fe(0xe76)][_0x2e15fe(0x13c1)],'sectionId':0x3f3})[_0x2e15fe(0x1d77)];})[_0x5f4ea6(0x1cb0)](function(_0x1eb528){const _0x1c9258=_0x5f4ea6,_0x4f388b=_0x1eb528&&_0x1eb528[_0x1c9258(0x2214)]?_0x1eb528[_0x1c9258(0x2214)][0x0]:null;if(!_0x4f388b){const _0x52efeb=[],_0x584dac=[];_0x3bab8b['faxAccounts'][_0x1c9258(0x2214)][_0x1c9258(0xf90)](function(_0x41b2b9){const _0x518a6c=_0x1c9258,_0x5cbe29=_0x39641b()['find'](_0x3bab8b[_0x518a6c(0x1363)],{'id':Number(_0x41b2b9['TrunkId'])});_0x584dac[_0x518a6c(0x2785)](_0x5cbe29);});for(let _0x1b5952=0x0;_0x1b5952<_0x3bab8b[_0x1c9258(0x1363)][_0x1c9258(0xfd0)];_0x1b5952++){const _0x4528af=_0x39641b()['some'](_0x584dac,{'id':_0x3bab8b['trunks'][_0x1b5952]['id']});_0x4528af&&(_0x3bab8b['trunks'][_0x1b5952][_0x1c9258(0x15da)]=![],_0x52efeb['push'](_0x3bab8b[_0x1c9258(0x1363)][_0x1b5952]));}_0x3bab8b[_0x1c9258(0x1363)]=_0x52efeb;}else{if(!_0x4f388b[_0x1c9258(0x12f4)])return _0x4db959[_0x1c9258(0x1198)][_0x1c9258(0xbf7)]({'sectionId':_0x4f388b['id']})[_0x1c9258(0x1d77)]['then'](function(_0x5526a8){const _0x579fab=_0x1c9258,_0x40b146=_0x39641b()[_0x579fab(0x1de2)](_0x5526a8[_0x579fab(0x2214)],function(_0x577817){return _0x39641b()['find'](_0x3bab8b['trunks'],{'id':_0x577817['resourceId']});});let _0x4ad478=null;_0x4ad478=[],_0x3bab8b[_0x579fab(0x29de)][_0x579fab(0x2214)][_0x579fab(0xf90)](function(_0x312391){const _0x30655c=_0x579fab,_0x3ae6f7=_0x39641b()[_0x30655c(0x13b4)](_0x3bab8b[_0x30655c(0x1363)],{'id':Number(_0x312391['TrunkId'])});_0x4ad478['push'](_0x3ae6f7);}),!_0x39641b()[_0x579fab(0xce9)](_0x4ad478)&&_0x4ad478[_0x579fab(0xf90)](function(_0x543941){const _0x16ed3b=_0x579fab;if(!_0x39641b()[_0x16ed3b(0x727)](_0x40b146,['id',_0x543941['id']])){const _0x42bdbc=_0x39641b()[_0x16ed3b(0x13b4)](_0x3bab8b[_0x16ed3b(0x1363)],{'id':_0x543941['id']});_0x42bdbc[_0x16ed3b(0x15da)]=![],_0x40b146[_0x16ed3b(0x2785)](_0x42bdbc);}}),_0x3bab8b['trunks']=_0x40b146;});}})['catch'](function(_0x2bad5c){const _0x326425=_0x5f4ea6;_0x43fcb0[_0x326425(0x218e)]({'title':_0x2bad5c[_0x326425(0x291)]?_0x326425(0xeb9)+_0x2bad5c[_0x326425(0x291)]+_0x326425(0x1657)+_0x2bad5c[_0x326425(0xc22)]:'SYSTEM:GETtrunks','msg':_0x2bad5c['data']?JSON[_0x326425(0x2701)](_0x2bad5c['data']):_0x2bad5c[_0x326425(0x147f)]()});}),_0x100790[_0x5f4ea6(0x22b6)](_0x5f4ea6(0x1c60))?_0x4db959[_0x5f4ea6(0x22f2)]['get']({'fields':_0x5f4ea6(0x43c),'sort':'name'})[_0x5f4ea6(0x1d77)][_0x5f4ea6(0x1cb0)](function(_0x3b14b3){const _0x40edf4=_0x5f4ea6;_0x3bab8b[_0x40edf4(0x1046)]=_0x3b14b3[_0x40edf4(0x2214)]||[];})[_0x5f4ea6(0x1c4)](function(_0xb451eb){const _0x193686=_0x5f4ea6;_0x43fcb0['error']({'title':_0xb451eb[_0x193686(0x291)]?_0x193686(0xeb9)+_0xb451eb[_0x193686(0x291)]+_0x193686(0x1657)+_0xb451eb[_0x193686(0xc22)]:_0x193686(0x149e),'msg':_0xb451eb[_0x193686(0x25c)]?JSON[_0x193686(0x2701)](_0xb451eb[_0x193686(0x25c)]):_0xb451eb[_0x193686(0x147f)]()});}):_0x4db959[_0x5f4ea6(0x22f2)][_0x5f4ea6(0xbf7)]({'fields':'id,name','sort':'name'})[_0x5f4ea6(0x1d77)][_0x5f4ea6(0x1cb0)](function(_0x40a289){const _0x37a585=_0x5f4ea6;_0x3bab8b[_0x37a585(0x1046)]=_0x40a289[_0x37a585(0x2214)]||[];})['then'](function(){const _0xcb17ee=_0x5f4ea6;return _0x4db959[_0xcb17ee(0x2199)][_0xcb17ee(0xbf7)]({'userProfileId':_0x3bab8b['currentUser'][_0xcb17ee(0x13c1)],'sectionId':0x12d})[_0xcb17ee(0x1d77)];})[_0x5f4ea6(0x1cb0)](function(_0x5f1f0d){const _0x965589=_0x5f4ea6,_0x270f2a=_0x5f1f0d&&_0x5f1f0d['rows']?_0x5f1f0d[_0x965589(0x2214)][0x0]:null;if(!_0x270f2a){const _0x14fa9b=[];let _0x18c904=null;_0x3bab8b[_0x965589(0xb91)]&&(_0x18c904=_0x39641b()[_0x965589(0x13b4)](_0x3bab8b[_0x965589(0x1046)],{'id':Number(_0x3bab8b[_0x965589(0xb91)][_0x965589(0x20a6)])}));for(let _0x22fe28=0x0;_0x22fe28<_0x3bab8b['lists']['length'];_0x22fe28++){_0x18c904&&_0x3bab8b['lists'][_0x22fe28]['id']===_0x18c904['id']&&(_0x3bab8b[_0x965589(0x1046)][_0x22fe28][_0x965589(0x15da)]=![],_0x14fa9b[_0x965589(0x2785)](_0x3bab8b[_0x965589(0x1046)][_0x22fe28]));}_0x3bab8b[_0x965589(0x1046)]=_0x14fa9b;}else{if(!_0x270f2a[_0x965589(0x12f4)])return _0x4db959['userProfileResource'][_0x965589(0xbf7)]({'sectionId':_0x270f2a['id']})[_0x965589(0x1d77)][_0x965589(0x1cb0)](function(_0x44c487){const _0x535baa=_0x965589,_0x1a4128=_0x39641b()[_0x535baa(0x1de2)](_0x44c487[_0x535baa(0x2214)],function(_0x11bac2){const _0x3ba77a=_0x535baa;return _0x39641b()['find'](_0x3bab8b[_0x3ba77a(0x1046)],{'id':_0x11bac2[_0x3ba77a(0x2982)]});});let _0x1347fd=null;_0x3bab8b[_0x535baa(0xb91)]&&(_0x1347fd=_0x39641b()['find'](_0x3bab8b['lists'],{'id':Number(_0x3bab8b[_0x535baa(0xb91)]['ListId'])}));if(_0x1347fd&&!_0x39641b()['some'](_0x1a4128,['id',_0x1347fd['id']])){const _0x2c45cc=_0x39641b()['find'](_0x3bab8b['lists'],{'id':_0x1347fd['id']});_0x2c45cc[_0x535baa(0x15da)]=![],_0x1a4128[_0x535baa(0x2785)](_0x2c45cc);}_0x3bab8b[_0x535baa(0x1046)]=_0x1a4128;});}})['catch'](function(_0x3fc753){const _0xa5a7b8=_0x5f4ea6;_0x43fcb0['error']({'title':_0x3fc753[_0xa5a7b8(0x291)]?_0xa5a7b8(0xeb9)+_0x3fc753['status']+_0xa5a7b8(0x1657)+_0x3fc753['statusText']:_0xa5a7b8(0x113c),'msg':_0x3fc753[_0xa5a7b8(0x25c)]?JSON[_0xa5a7b8(0x2701)](_0x3fc753['data']):_0x3fc753['toString']()});});function _0xb3a41e(_0x294d48){const _0x4cce36=_0x5f4ea6;_0x547675['go'](_0x4cce36(0x240b),{'id':_0x294d48['id'],'faxAccount':_0x294d48,'crudPermissions':_0x3bab8b[_0x4cce36(0x1b1a)]});}function _0x53d32f(_0x2b02dc){const _0x2d75dd=_0x5f4ea6;_0x547675['go'](_0x2d75dd(0x240b),{'id':_0x2b02dc['id'],'tab':0x5});}function _0x40eb9c(){const _0x393b60=_0x5f4ea6;if(_0x100790[_0x393b60(0x22b6)](_0x393b60(0x1c60)))_0x547675['go'](_0x393b60(0x1076),{});else return _0x4db959[_0x393b60(0x2199)]['get']({'userProfileId':_0x100790[_0x393b60(0x21e8)]()[_0x393b60(0x13c1)],'sectionId':0x38e})[_0x393b60(0x1d77)][_0x393b60(0x1cb0)](function(_0x4be7a4){const _0x4630f5=_0x393b60,_0x3fcb04=_0x4be7a4&&_0x4be7a4[_0x4630f5(0x2214)]?_0x4be7a4[_0x4630f5(0x2214)][0x0]:null;_0x3fcb04&&_0x3fcb04[_0x4630f5(0x281c)]?_0x547675['go']('app.fax.realtime.accounts',{}):_0x43fcb0[_0x4630f5(0x28c7)]({'title':_0x25a832[_0x4630f5(0x25cc)](_0x4630f5(0x370)),'msg':_0x25a832['instant'](_0x4630f5(0x33a))});})[_0x393b60(0x1c4)](function(_0x5e9a4c){const _0x45e13a=_0x393b60;_0x43fcb0[_0x45e13a(0x218e)]({'title':_0x5e9a4c[_0x45e13a(0x291)]?_0x45e13a(0xeb9)+_0x5e9a4c[_0x45e13a(0x291)]+_0x45e13a(0x1657)+_0x5e9a4c[_0x45e13a(0xc22)]:'USERPROFILE:GET_SECTION','msg':_0x5e9a4c['status']?JSON[_0x45e13a(0x2701)](_0x5e9a4c[_0x45e13a(0x25c)]):_0x5e9a4c[_0x45e13a(0x147f)]()});});}function _0x486e80(_0x2ec046,_0x1ee3d8){const _0x1321b6=_0x5f4ea6;_0xb7dae6[_0x1321b6(0xe27)]({'controller':'FaxAccountagentaddController','controllerAs':'vm','templateUrl':_0x16157a,'parent':angular['element'](_0x1871e3['body']),'targetEvent':_0x1ee3d8,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x2ec046,'faxAccounts':_0x3bab8b[_0x1321b6(0x29de)]?_0x3bab8b['faxAccounts'][_0x1321b6(0x2214)]:[],'crudPermissions':_0x3bab8b[_0x1321b6(0x1b1a)],'realtime':![]}});}function _0x1e95f5(_0x468d08,_0x4716b4){const _0x5d7ec5=_0x5f4ea6,_0x5e6fc9=_0xb7dae6[_0x5d7ec5(0x1551)]()['title'](_0x5d7ec5(0x140b)+_0x39641b()[_0x5d7ec5(0xa75)](_0x5d7ec5(0xb91))+'?')[_0x5d7ec5(0x49e)](''+(_0x468d08[_0x5d7ec5(0x16b6)]||_0x5d7ec5(0xb91))+''+_0x5d7ec5(0x1b6))[_0x5d7ec5(0x15ad)](_0x5d7ec5(0x1cdb))[_0x5d7ec5(0x728)](_0x4716b4)['ok']('OK')[_0x5d7ec5(0x696)]('CANCEL');_0xb7dae6['show'](_0x5e6fc9)[_0x5d7ec5(0x1cb0)](function(){_0x3c9e8c(_0x468d08);},function(){const _0x21b864=_0x5d7ec5;console[_0x21b864(0x1b4f)](_0x21b864(0x24ba));});}let _0x2b74b5=!![],_0x6a166f=0x1;_0x7e0355['$watch'](_0x5f4ea6(0x957),function(_0x390bbb,_0x79bb8d){const _0x34b747=_0x5f4ea6;_0x2b74b5?_0x33f2c4(function(){_0x2b74b5=![];}):(!_0x79bb8d&&(_0x6a166f=_0x3bab8b[_0x34b747(0xae2)][_0x34b747(0x1c7b)]),_0x390bbb!==_0x79bb8d&&(_0x3bab8b[_0x34b747(0xae2)][_0x34b747(0x1c7b)]=0x1),!_0x390bbb&&(_0x3bab8b['query'][_0x34b747(0x1c7b)]=_0x6a166f),_0x3bab8b[_0x34b747(0x8e2)]());});function _0x27ac1e(_0x5b4b7e){_0x3bab8b['faxAccounts']=_0x5b4b7e||{'count':0x0,'rows':[]};}function _0x5df79f(){const _0x5f3143=_0x5f4ea6;_0x3bab8b[_0x5f3143(0xae2)][_0x5f3143(0x184b)]=(_0x3bab8b[_0x5f3143(0xae2)][_0x5f3143(0x1c7b)]-0x1)*_0x3bab8b[_0x5f3143(0xae2)]['limit'],_0x100790[_0x5f3143(0x22b6)](_0x5f3143(0x1c60))?_0x3bab8b[_0x5f3143(0x2061)]=_0x4db959[_0x5f3143(0xb91)][_0x5f3143(0xbf7)](_0x3bab8b[_0x5f3143(0xae2)],_0x27ac1e)[_0x5f3143(0x1d77)]:(_0x3bab8b[_0x5f3143(0xae2)]['id']=_0x3bab8b[_0x5f3143(0x44a)]['id'],_0x3bab8b[_0x5f3143(0xae2)][_0x5f3143(0x1f74)]=_0x5f3143(0x1ffe),_0x3bab8b[_0x5f3143(0x2061)]=_0x4db959[_0x5f3143(0x44a)][_0x5f3143(0x1810)](_0x3bab8b[_0x5f3143(0xae2)],_0x27ac1e)[_0x5f3143(0x1d77)]);}function _0x420813(_0x595391,_0x19d8fc){const _0x78f984=_0x5f4ea6;_0xb7dae6['show']({'controller':_0x78f984(0x5ee),'controllerAs':'vm','templateUrl':_0x5ed520,'parent':angular[_0x78f984(0x1853)](_0x1871e3['body']),'targetEvent':_0x595391,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x19d8fc,'faxAccounts':_0x3bab8b[_0x78f984(0x29de)][_0x78f984(0x2214)],'license':_0x3bab8b[_0x78f984(0x8a5)],'setting':_0x3bab8b['setting'],'crudPermissions':_0x3bab8b[_0x78f984(0x1b1a)]}});}function _0x3c9e8c(_0x34cc93){const _0x413f6c=_0x5f4ea6;_0x4db959['faxAccount'][_0x413f6c(0x111d)]({'id':_0x34cc93['id']})[_0x413f6c(0x1d77)][_0x413f6c(0x1cb0)](function(){const _0x5dda89=_0x413f6c;_0x39641b()[_0x5dda89(0x152a)](_0x3bab8b['faxAccounts'][_0x5dda89(0x2214)],{'id':_0x34cc93['id']}),_0x3bab8b['faxAccounts']['count']-=0x1,!_0x3bab8b['faxAccounts'][_0x5dda89(0x2214)][_0x5dda89(0xfd0)]&&_0x3bab8b[_0x5dda89(0x8e2)](),_0x43fcb0[_0x5dda89(0x829)]({'title':_0x39641b()[_0x5dda89(0xa75)](_0x5dda89(0x14b7))+_0x5dda89(0x2663),'msg':_0x34cc93[_0x5dda89(0x16b6)]?_0x34cc93[_0x5dda89(0x16b6)]+_0x5dda89(0x3f5):''});})[_0x413f6c(0x1c4)](function(_0x4db333){const _0x4b4712=_0x413f6c;if(_0x4db333['data']&&_0x4db333[_0x4b4712(0x25c)][_0x4b4712(0x1a7c)]&&_0x4db333[_0x4b4712(0x25c)][_0x4b4712(0x1a7c)]['length']){_0x3bab8b[_0x4b4712(0x1a7c)]=_0x4db333[_0x4b4712(0x25c)][_0x4b4712(0x1a7c)]||[{'message':_0x4db333[_0x4b4712(0x147f)](),'type':_0x4b4712(0x1e2a)}];for(let _0x5cacc2=0x0;_0x5cacc2<_0x4db333[_0x4b4712(0x25c)][_0x4b4712(0x1a7c)][_0x4b4712(0xfd0)];_0x5cacc2++){_0x43fcb0[_0x4b4712(0x218e)]({'title':_0x4db333[_0x4b4712(0x25c)][_0x4b4712(0x1a7c)][_0x5cacc2]['type'],'msg':_0x4db333[_0x4b4712(0x25c)][_0x4b4712(0x1a7c)][_0x5cacc2][_0x4b4712(0x155e)]});}}else _0x43fcb0['error']({'title':_0x4db333[_0x4b4712(0x291)]?_0x4b4712(0xeb9)+_0x4db333['status']+_0x4b4712(0x1657)+_0x4db333[_0x4b4712(0xc22)]:_0x4b4712(0x1e2a),'msg':_0x4db333[_0x4b4712(0x25c)]?JSON['stringify'](_0x4db333[_0x4b4712(0x25c)][_0x4b4712(0x155e)]):_0x4db333[_0x4b4712(0x155e)]||_0x4db333[_0x4b4712(0x147f)]()});});}function _0x399f46(){const _0x4df5e3=_0x5f4ea6,_0x80bd59=angular[_0x4df5e3(0x17fe)](_0x3bab8b[_0x4df5e3(0xf91)]);return _0x3bab8b[_0x4df5e3(0xf91)]=[],_0x80bd59;}function _0x3f9e8f(_0x27e305){const _0x19b505=_0x5f4ea6,_0x211741=_0xb7dae6[_0x19b505(0x1551)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20faxAccounts?')[_0x19b505(0x49e)](_0x19b505(0x204d)+_0x3bab8b[_0x19b505(0xf91)][_0x19b505(0xfd0)]+_0x19b505(0x1d6c)+_0x19b505(0x1b6))['ariaLabel'](_0x19b505(0x1c09))[_0x19b505(0x728)](_0x27e305)['ok']('OK')['cancel'](_0x19b505(0x24ba));_0xb7dae6[_0x19b505(0xe27)](_0x211741)[_0x19b505(0x1cb0)](function(){const _0x46a2b4=_0x19b505;_0x3bab8b[_0x46a2b4(0xf91)][_0x46a2b4(0xf90)](function(_0x3f8b87){_0x3c9e8c(_0x3f8b87);}),_0x3bab8b['selectedFaxAccounts']=[];});}function _0x11a1eb(){const _0x134d03=_0x5f4ea6;_0x3bab8b[_0x134d03(0xf91)]=[];}function _0xf9f7e3(){const _0x4ea945=_0x5f4ea6;_0x3bab8b['selectedFaxAccounts']=_0x3bab8b[_0x4ea945(0x29de)][_0x4ea945(0x2214)];}}const _0xba7168=_0x30d8b6;;_0x3d7e0e['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog','$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x754),_0x5537c6(0x54d),'api','Auth',_0x5537c6(0x8a5),'setting','crudPermissions'];function _0x3d7e0e(_0x474c01,_0x35b77d,_0x10fefc,_0x205fa4,_0x50fd38,_0x2795a6,_0x5d26c7,_0x1714bf,_0x188117,_0x2a5973,_0x2eeed4,_0x1b66fd,_0x243182,_0x417b62){const _0x8403e2=_0x5537c6,_0x2e9bf0=this;_0x2e9bf0['currentUser']=_0x2eeed4['getCurrentUser'](),_0x2e9bf0[_0x8403e2(0x1a7c)]=[],_0x2e9bf0['setting']=_0x243182,_0x2e9bf0[_0x8403e2(0x8a5)]=_0x1b66fd,_0x2e9bf0[_0x8403e2(0x1b1a)]=_0x417b62,_0x2e9bf0[_0x8403e2(0xf4c)]={},_0x2e9bf0[_0x8403e2(0x1b0c)]=_0x2e9bf0[_0x8403e2(0x9ca)]&&_0x2e9bf0[_0x8403e2(0x9ca)][_0x8403e2(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2e9bf0[_0x8403e2(0x1386)]=_0x8403e2(0x72b),_0x2e9bf0[_0x8403e2(0x54d)]=angular[_0x8403e2(0x17fe)](_0x188117),_0x2e9bf0[_0x8403e2(0x754)]=_0x1714bf,_0x2e9bf0['newFaxQueue']=![];!_0x2e9bf0[_0x8403e2(0x54d)]&&(_0x2e9bf0[_0x8403e2(0x54d)]={'strategy':'beepall','timeout':0xa},_0x2e9bf0[_0x8403e2(0x1386)]=_0x8403e2(0x178),_0x2e9bf0[_0x8403e2(0x3ec)]=!![]);_0x2e9bf0[_0x8403e2(0xf28)]=_0x3e333a,_0x2e9bf0[_0x8403e2(0x2044)]=_0x3ead0c,_0x2e9bf0[_0x8403e2(0x8a9)]=_0x39c71c,_0x2e9bf0[_0x8403e2(0x2c4)]=_0x5c877a,_0x2e9bf0[_0x8403e2(0xda0)]=_0x31389a;function _0x3e333a(){const _0x3f3297=_0x8403e2;_0x2e9bf0[_0x3f3297(0x1a7c)]=[],_0x2a5973[_0x3f3297(0x54d)][_0x3f3297(0x1c3f)](_0x2e9bf0[_0x3f3297(0x54d)])[_0x3f3297(0x1d77)]['then'](function(_0x533e73){const _0x129c98=_0x3f3297;_0x2e9bf0[_0x129c98(0x754)]['unshift'](_0x533e73[_0x129c98(0x19b2)]()),_0x5d26c7[_0x129c98(0x829)]({'title':_0x129c98(0xc81),'msg':_0x2e9bf0[_0x129c98(0x54d)][_0x129c98(0x16b6)]?_0x2e9bf0['faxQueue'][_0x129c98(0x16b6)]+_0x129c98(0x470):''}),_0x31389a(_0x533e73);})[_0x3f3297(0x1c4)](function(_0x593b1b){const _0x46143e=_0x3f3297;if(_0x593b1b[_0x46143e(0x25c)]&&_0x593b1b[_0x46143e(0x25c)][_0x46143e(0x1a7c)]&&_0x593b1b[_0x46143e(0x25c)][_0x46143e(0x1a7c)][_0x46143e(0xfd0)]){_0x2e9bf0[_0x46143e(0x1a7c)]=_0x593b1b['data'][_0x46143e(0x1a7c)]||[{'message':_0x593b1b[_0x46143e(0x147f)](),'type':_0x46143e(0x25e6)}];for(let _0x11c1c0=0x0;_0x11c1c0<_0x593b1b[_0x46143e(0x25c)][_0x46143e(0x1a7c)]['length'];_0x11c1c0+=0x1){_0x5d26c7[_0x46143e(0x218e)]({'title':_0x593b1b[_0x46143e(0x25c)][_0x46143e(0x1a7c)][_0x11c1c0][_0x46143e(0x66a)],'msg':_0x593b1b['data']['errors'][_0x11c1c0][_0x46143e(0x155e)]});}}else _0x5d26c7['error']({'title':_0x593b1b[_0x46143e(0x291)]?_0x46143e(0xeb9)+_0x593b1b['status']+_0x46143e(0x1657)+_0x593b1b[_0x46143e(0xc22)]:_0x46143e(0x25e6),'msg':_0x593b1b[_0x46143e(0x25c)]?JSON[_0x46143e(0x2701)](_0x593b1b[_0x46143e(0x25c)][_0x46143e(0x155e)]):_0x593b1b[_0x46143e(0x147f)]()});});}function _0x3ead0c(){const _0xf7dd5d=_0x8403e2;_0x2e9bf0[_0xf7dd5d(0x1a7c)]=[],_0x2a5973['faxQueue'][_0xf7dd5d(0x687)]({'id':_0x2e9bf0[_0xf7dd5d(0x54d)]['id']},_0x2e9bf0[_0xf7dd5d(0x54d)])['$promise']['then'](function(_0x6b508){const _0x5c9f08=_0xf7dd5d,_0x636ffd=_0x39641b()[_0x5c9f08(0x13b4)](_0x2e9bf0[_0x5c9f08(0x754)],{'id':_0x6b508['id']});_0x636ffd&&_0x39641b()[_0x5c9f08(0x9c1)](_0x636ffd,_0x39641b()[_0x5c9f08(0x169b)](_0x6b508[_0x5c9f08(0x19b2)](),_0x39641b()[_0x5c9f08(0x1be5)](_0x636ffd))),_0x5d26c7[_0x5c9f08(0x829)]({'title':'FaxQueue\x20properly\x20saved!','msg':_0x2e9bf0[_0x5c9f08(0x54d)][_0x5c9f08(0x16b6)]?_0x2e9bf0[_0x5c9f08(0x54d)][_0x5c9f08(0x16b6)]+_0x5c9f08(0xedb):''}),_0x31389a(_0x6b508);})[_0xf7dd5d(0x1c4)](function(_0x345022){const _0x2a161e=_0xf7dd5d;if(_0x345022['data']&&_0x345022['data'][_0x2a161e(0x1a7c)]&&_0x345022['data']['errors']['length']){_0x2e9bf0[_0x2a161e(0x1a7c)]=_0x345022[_0x2a161e(0x25c)][_0x2a161e(0x1a7c)]||[{'message':_0x345022[_0x2a161e(0x147f)](),'type':_0x2a161e(0x1915)}];for(let _0x50f0cb=0x0;_0x50f0cb<_0x345022[_0x2a161e(0x25c)][_0x2a161e(0x1a7c)][_0x2a161e(0xfd0)];_0x50f0cb++){_0x5d26c7['error']({'title':_0x345022[_0x2a161e(0x25c)][_0x2a161e(0x1a7c)][_0x50f0cb]['type'],'msg':_0x345022[_0x2a161e(0x25c)][_0x2a161e(0x1a7c)][_0x50f0cb][_0x2a161e(0x155e)]});}}else _0x5d26c7[_0x2a161e(0x218e)]({'title':_0x345022[_0x2a161e(0x291)]?'API:'+_0x345022[_0x2a161e(0x291)]+'\x20-\x20'+_0x345022[_0x2a161e(0xc22)]:'api.faxQueue.update','msg':_0x345022['data']?JSON[_0x2a161e(0x2701)](_0x345022[_0x2a161e(0x25c)][_0x2a161e(0x155e)]):_0x345022[_0x2a161e(0x147f)]()});});}function _0x39c71c(_0x500b42){const _0x27d90e=_0x8403e2;_0x2e9bf0[_0x27d90e(0x1a7c)]=[];const _0xeb17b4=_0x205fa4[_0x27d90e(0x1551)]()['title'](_0x27d90e(0x1a2e))['content']('The\x20faxQueue\x20will\x20be\x20deleted.')[_0x27d90e(0x15ad)](_0x27d90e(0x23d))['ok']('Delete')[_0x27d90e(0x696)](_0x27d90e(0xde1))[_0x27d90e(0x728)](_0x500b42);_0x205fa4[_0x27d90e(0xe27)](_0xeb17b4)[_0x27d90e(0x1cb0)](function(){const _0x38e046=_0x27d90e;_0x2a5973['faxQueue'][_0x38e046(0x111d)]({'id':_0x2e9bf0[_0x38e046(0x54d)]['id']})['$promise'][_0x38e046(0x1cb0)](function(){const _0x2e963e=_0x38e046;_0x39641b()[_0x2e963e(0x152a)](_0x2e9bf0[_0x2e963e(0x754)],{'id':_0x2e9bf0[_0x2e963e(0x54d)]['id']}),_0x5d26c7[_0x2e963e(0x829)]({'title':_0x2e963e(0x1946),'msg':(_0x2e9bf0['faxQueue'][_0x2e963e(0x16b6)]||'faxQueue')+_0x2e963e(0x3f5)}),_0x31389a(_0x2e9bf0[_0x2e963e(0x54d)]);})['catch'](function(_0x5a2b3d){const _0x51d01a=_0x38e046;if(_0x5a2b3d[_0x51d01a(0x25c)]&&_0x5a2b3d[_0x51d01a(0x25c)][_0x51d01a(0x1a7c)]&&_0x5a2b3d[_0x51d01a(0x25c)][_0x51d01a(0x1a7c)][_0x51d01a(0xfd0)]){_0x2e9bf0[_0x51d01a(0x1a7c)]=_0x5a2b3d[_0x51d01a(0x25c)][_0x51d01a(0x1a7c)]||[{'message':_0x5a2b3d['toString'](),'type':'api.faxQueue.delete'}];for(let _0x29585c=0x0;_0x29585c<_0x5a2b3d[_0x51d01a(0x25c)][_0x51d01a(0x1a7c)][_0x51d01a(0xfd0)];_0x29585c++){_0x5d26c7[_0x51d01a(0x218e)]({'title':_0x5a2b3d[_0x51d01a(0x25c)][_0x51d01a(0x1a7c)][_0x29585c]['type'],'msg':_0x5a2b3d[_0x51d01a(0x25c)][_0x51d01a(0x1a7c)][_0x29585c][_0x51d01a(0x155e)]});}}else _0x5d26c7['error']({'title':_0x5a2b3d[_0x51d01a(0x291)]?_0x51d01a(0xeb9)+_0x5a2b3d['status']+'\x20-\x20'+_0x5a2b3d[_0x51d01a(0xc22)]:_0x51d01a(0x5cd),'msg':_0x5a2b3d['data']?JSON[_0x51d01a(0x2701)](_0x5a2b3d[_0x51d01a(0x25c)][_0x51d01a(0x155e)]):_0x5a2b3d[_0x51d01a(0x155e)]||_0x5a2b3d[_0x51d01a(0x147f)]()});});},function(){});}function _0x5c877a(_0x125e98){return _0x125e98===null?undefined:new Date(_0x125e98);}function _0x31389a(_0x160464){const _0x111261=_0x8403e2;_0x205fa4[_0x111261(0x1426)](_0x160464);}}const _0x52f939=_0x3d7e0e;;_0x196bc3[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x54d),'faxQueues',_0x5537c6(0x217b),_0x5537c6(0x1ae),_0x5537c6(0x1774),'crudPermissions'];function _0x196bc3(_0x440648,_0x54f565,_0x6c0df8,_0x23492d,_0x4035ef,_0x3a661e,_0x47488d,_0x148f51,_0x180121,_0x2a6225){const _0x40d06d=_0x5537c6,_0x2dd67b=this;_0x2dd67b['currentUser']=_0x180121[_0x40d06d(0x21e8)](),_0x2dd67b['faxQueue']=_0x4035ef,_0x2dd67b[_0x40d06d(0x1b1a)]=_0x2a6225,_0x2dd67b[_0x40d06d(0x217b)]=_0x47488d,_0x2dd67b[_0x40d06d(0x122f)]=[],_0x2dd67b['allowedItems']=[],_0x2dd67b[_0x40d06d(0x20bb)]=[],_0x2dd67b['startingAllowedItems']=[],_0x2dd67b[_0x40d06d(0x1456)]=[],_0x2dd67b[_0x40d06d(0x50c)]=![],_0x2dd67b[_0x40d06d(0x1a34)]=_0x327fdd,_0x2dd67b['saveAgents']=_0x570cf8,_0x2dd67b[_0x40d06d(0xda0)]=_0x20769b,_0x2dd67b[_0x40d06d(0x18c0)]={'readOnly':!_0x2dd67b[_0x40d06d(0x1b1a)][_0x40d06d(0xb3d)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x40d06d(0x16b6),'line1':'fullname','line2':[_0x40d06d(0x16b6),_0x40d06d(0xdbd)],'line3':'','labelAll':_0x148f51[_0x40d06d(0x25cc)](_0x40d06d(0x21e7)),'labelSelected':_0x148f51[_0x40d06d(0x25cc)](_0x40d06d(0x1cd5)),'transferCallback':function(){const _0x2efc91=_0x40d06d,_0x33e1f9=_0x39641b()['xorBy'](_0x2dd67b[_0x2efc91(0x1456)],_0x2dd67b[_0x2efc91(0x20bb)],'id');_0x2dd67b[_0x2efc91(0x50c)]=_0x39641b()[_0x2efc91(0xce9)](_0x33e1f9)?![]:!![];}};function _0x327fdd(){const _0x5e16ee=_0x40d06d;return _0x180121['hasRole']('admin')?_0x33421a()[_0x5e16ee(0x1c4)](function(_0x335101){const _0x5a4ea4=_0x5e16ee;_0x6c0df8[_0x5a4ea4(0x218e)]({'title':_0x335101[_0x5a4ea4(0x291)]?_0x5a4ea4(0xeb9)+_0x335101[_0x5a4ea4(0x291)]+_0x5a4ea4(0x1657)+_0x335101[_0x5a4ea4(0xc22)]:'SYSTEM:GET_AGENTS','msg':_0x335101[_0x5a4ea4(0x291)]?JSON[_0x5a4ea4(0x2701)](_0x335101['data']):_0x335101[_0x5a4ea4(0x147f)]()});}):_0x266e2d()[_0x5e16ee(0x1cb0)](function(_0x320020){return _0x2dd67b['section']=_0x320020,_0x33421a();})[_0x5e16ee(0x1c4)](function(_0x543644){const _0x5c20c0=_0x5e16ee;_0x6c0df8[_0x5c20c0(0x218e)]({'title':_0x543644['status']?'API:'+_0x543644[_0x5c20c0(0x291)]+_0x5c20c0(0x1657)+_0x543644[_0x5c20c0(0xc22)]:'SYSTEM:GET_AGENTS','msg':_0x543644[_0x5c20c0(0x291)]?JSON['stringify'](_0x543644['data']):_0x543644[_0x5c20c0(0x147f)]()});});}function _0x266e2d(){return _0x54f565(function(_0x5a80bb,_0x3bb029){const _0x202b95=a0_0x5cbd;_0x23492d[_0x202b95(0x2199)][_0x202b95(0xbf7)]({'userProfileId':_0x2dd67b[_0x202b95(0xe76)][_0x202b95(0x13c1)],'name':_0x202b95(0x2536)})[_0x202b95(0x1d77)][_0x202b95(0x1cb0)](function(_0x38c6c){const _0x356a74=_0x38c6c&&_0x38c6c['rows']?_0x38c6c['rows'][0x0]:null;_0x5a80bb(_0x356a74);})['catch'](function(_0x1c818a){_0x3bb029(_0x1c818a);});});}function _0x33421a(){return _0x54f565(function(_0x5b3cb4,_0x206db4){const _0x2056bd=a0_0x5cbd;return _0x2d8d44()[_0x2056bd(0x1cb0)](function(_0x165f73){const _0x25acfd=_0x2056bd;return _0x2dd67b[_0x25acfd(0x122f)]=_0x165f73[_0x25acfd(0x2214)]?_0x165f73[_0x25acfd(0x2214)]:[],_0x180121[_0x25acfd(0x22b6)](_0x25acfd(0x1c60))?_0x165f73:_0x2dd67b[_0x25acfd(0x1f74)]?_0x2dd67b['section'][_0x25acfd(0x12f4)]?_0x165f73:_0x4a13e0():null;})[_0x2056bd(0x1cb0)](function(_0x6e508b){const _0xe3c5c6=_0x2056bd,_0xf1ba0e=_0x6e508b&&_0x6e508b[_0xe3c5c6(0x2214)]?_0x6e508b['rows']:[];return _0x2dd67b[_0xe3c5c6(0x1372)]=_0x39641b()[_0xe3c5c6(0x1de2)](_0xf1ba0e,function(_0x283ff2){const _0x1dd177=_0xe3c5c6;return _0x39641b()[_0x1dd177(0x13b4)](_0x2dd67b['items'],{'id':_0x180121[_0x1dd177(0x22b6)](_0x1dd177(0x1c60))||_0x2dd67b[_0x1dd177(0x1f74)][_0x1dd177(0x12f4)]?_0x283ff2['id']:_0x283ff2[_0x1dd177(0x2982)]});}),_0x2dd67b['startingAllowedItems']=angular[_0xe3c5c6(0x17fe)](_0x2dd67b[_0xe3c5c6(0x1372)]),_0x2dd67b[_0xe3c5c6(0x122f)][_0xe3c5c6(0xf90)](function(_0xcef9fd){const _0x507ea4=_0xe3c5c6,_0x48dced=_0x39641b()[_0x507ea4(0x13b4)](_0x2dd67b[_0x507ea4(0x1372)],{'id':_0xcef9fd['id']});_0x180121[_0x507ea4(0x22b6)](_0x507ea4(0x1c60))?_0xcef9fd[_0x507ea4(0x1a4f)]=!![]:_0xcef9fd[_0x507ea4(0x1a4f)]=typeof _0x48dced!=='undefined'?!![]:![];}),_0xe38cc();})[_0x2056bd(0x1cb0)](function(_0x3235b3){const _0x111780=_0x2056bd,_0x1a77fb=_0x3235b3&&_0x3235b3[_0x111780(0x2214)]?_0x3235b3['rows']:[];_0x2dd67b['selectedItems']=_0x39641b()['map'](_0x1a77fb,function(_0x20a028){const _0x3bfba3=_0x111780,_0x395d7d=_0x39641b()['find'](_0x2dd67b['items'],{'id':_0x20a028['id']});return _0x395d7d[_0x3bfba3(0x1cbc)]=_0x20a028['UserFaxQueue']?'penalty\x20'+_0x20a028['UserFaxQueue'][_0x3bfba3(0x1cbc)]:'',_0x395d7d[_0x3bfba3(0xdbd)]=typeof _0x20a028['internal']!==_0x3bfba3(0x16b5)?'<'+_0x20a028[_0x3bfba3(0xdbd)]+'>':'',_0x395d7d;}),_0x2dd67b[_0x111780(0x1456)]=angular[_0x111780(0x17fe)](_0x2dd67b[_0x111780(0x20bb)]),_0x2dd67b[_0x111780(0x18c0)]['selectedItems']=_0x2dd67b['selectedItems'],_0x2dd67b[_0x111780(0x18c0)]['items']=_0x39641b()[_0x111780(0x2128)](_0x2dd67b['allowedItems'],_0x2dd67b[_0x111780(0x18c0)]['selectedItems'],'id'),_0x5b3cb4();})['catch'](function(_0x1fa718){_0x206db4(_0x1fa718);});});}function _0x4a13e0(){return _0x54f565(function(_0x4668ad,_0x33b617){const _0x531752=a0_0x5cbd;return _0x23492d[_0x531752(0x1198)][_0x531752(0xbf7)]({'sectionId':_0x2dd67b[_0x531752(0x1f74)]['id'],'nolimit':!![]})[_0x531752(0x1d77)][_0x531752(0x1cb0)](function(_0x2280b4){_0x4668ad(_0x2280b4);})[_0x531752(0x1c4)](function(_0x1810f5){_0x33b617(_0x1810f5);});});}function _0xe38cc(){return _0x54f565(function(_0x1d315e,_0x1e389c){const _0x1b507c=a0_0x5cbd;return _0x23492d[_0x1b507c(0x54d)][_0x1b507c(0x2348)]({'id':_0x2dd67b['faxQueue']['id'],'fields':_0x1b507c(0x251e),'nolimit':!![],'role':_0x1b507c(0x1eff)})['$promise'][_0x1b507c(0x1cb0)](function(_0x4abd7a){_0x1d315e(_0x4abd7a);})['catch'](function(_0x566f04){_0x1e389c(_0x566f04);});});}function _0x2d8d44(){return _0x54f565(function(_0x73ff8a,_0x2c652f){const _0x371b87=a0_0x5cbd;return _0x23492d['user'][_0x371b87(0xbf7)]({'fields':_0x371b87(0x251e),'nolimit':!![],'role':_0x371b87(0x1eff)})[_0x371b87(0x1d77)]['then'](function(_0x55509b){_0x73ff8a(_0x55509b);})[_0x371b87(0x1c4)](function(_0x13235e){_0x2c652f(_0x13235e);});});}function _0x2b2f7c(_0x44ab21){return _0x54f565(function(_0x19448a,_0x485af2){const _0x299f0a=a0_0x5cbd;_0x39641b()[_0x299f0a(0xce9)](_0x44ab21)?_0x19448a():_0x23492d[_0x299f0a(0x54d)][_0x299f0a(0x2057)]({'id':_0x2dd67b['faxQueue']['id'],'ids':_0x39641b()['map'](_0x44ab21,'id')})[_0x299f0a(0x1d77)][_0x299f0a(0x1cb0)](function(){_0x19448a();})['catch'](function(_0xb1a8b2){_0x485af2(_0xb1a8b2);});});}function _0x2fd3cc(_0x47760b){return _0x54f565(function(_0x575f38,_0x4d3c67){const _0x20a837=a0_0x5cbd;_0x39641b()['isEmpty'](_0x47760b)?_0x575f38():_0x23492d['faxQueue']['removeAgents']({'id':_0x2dd67b['faxQueue']['id'],'ids':_0x39641b()[_0x20a837(0x1de2)](_0x47760b,'id')})[_0x20a837(0x1d77)][_0x20a837(0x1cb0)](function(){_0x575f38();})[_0x20a837(0x1c4)](function(_0x95ffcf){_0x4d3c67(_0x95ffcf);});});}function _0x570cf8(){const _0x5534ae=_0x40d06d,_0x40c765=_0x39641b()[_0x5534ae(0x2128)](_0x2dd67b[_0x5534ae(0x1456)],_0x2dd67b[_0x5534ae(0x20bb)],'id'),_0x892a74=_0x39641b()[_0x5534ae(0x2128)](_0x2dd67b[_0x5534ae(0x20bb)],_0x2dd67b[_0x5534ae(0x1456)],'id');return _0x2fd3cc(_0x40c765)['then'](function(){return _0x2b2f7c(_0x892a74);})[_0x5534ae(0x1cb0)](function(){const _0x4a80a6=_0x5534ae;_0x2dd67b[_0x4a80a6(0x50c)]=![],_0x2dd67b[_0x4a80a6(0xbd5)]=angular[_0x4a80a6(0x17fe)](_0x2dd67b[_0x4a80a6(0x1372)]),_0x2dd67b[_0x4a80a6(0x1456)]=angular[_0x4a80a6(0x17fe)](_0x2dd67b[_0x4a80a6(0x20bb)]),_0x6c0df8[_0x4a80a6(0x829)]({'title':_0x4a80a6(0x201),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})['catch'](function(_0x16027f){const _0x33f819=_0x5534ae;_0x6c0df8[_0x33f819(0x218e)]({'title':_0x16027f[_0x33f819(0x291)]?_0x33f819(0xeb9)+_0x16027f['status']+_0x33f819(0x1657)+_0x16027f['statusText']:'SYSTEM:LISTS_ASSOCIATION','msg':_0x16027f[_0x33f819(0x291)]?JSON[_0x33f819(0x2701)](_0x16027f[_0x33f819(0x25c)]):_0x16027f[_0x33f819(0x147f)]()});});}function _0x20769b(){_0x440648['hide']();}}const _0x3f7c3a=_0x196bc3;;_0x83184b[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty',_0x5537c6(0x142b),'faxQueue',_0x5537c6(0x1ae),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x83184b(_0x3ad9c9,_0x1506fe,_0x4c6e64,_0x146173,_0x1bd37e,_0x13bc15,_0x35cc83,_0x21c308){const _0x69ab56=_0x5537c6,_0x57fa28=this;_0x57fa28[_0x69ab56(0xe76)]=_0x35cc83[_0x69ab56(0x21e8)](),_0x57fa28[_0x69ab56(0x54d)]=_0x1bd37e,_0x57fa28['crudPermissions']=_0x21c308,_0x57fa28[_0x69ab56(0x122f)]=[],_0x57fa28['allowedItems']=[],_0x57fa28['selectedItems']=[],_0x57fa28[_0x69ab56(0xbd5)]=[],_0x57fa28['startingSelectedItems']=[],_0x57fa28[_0x69ab56(0x50c)]=![],_0x57fa28[_0x69ab56(0x18c0)]={'readOnly':!_0x57fa28[_0x69ab56(0x1b1a)][_0x69ab56(0xb3d)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x69ab56(0x16b6),'line1':_0x69ab56(0x16b6),'line2':'','line3':'','labelAll':_0x13bc15[_0x69ab56(0x25cc)](_0x69ab56(0x1f3)),'labelSelected':_0x13bc15['instant'](_0x69ab56(0x1b5f)),'transferCallback':function(){const _0x111724=_0x69ab56,_0x4161fd=_0x39641b()[_0x111724(0x1423)](_0x57fa28['startingSelectedItems'],_0x57fa28[_0x111724(0x20bb)],'id');_0x57fa28[_0x111724(0x50c)]=_0x39641b()[_0x111724(0xce9)](_0x4161fd)?![]:!![];}},_0x57fa28['onInit']=_0x429e58,_0x57fa28[_0x69ab56(0x1c56)]=_0x2cf8d7,_0x57fa28['closeDialog']=_0x35253e;function _0x429e58(){const _0x4d219c=_0x69ab56;return _0x35cc83['hasRole'](_0x4d219c(0x1c60))?_0x21c025()[_0x4d219c(0x1c4)](function(_0x3c5514){const _0x1fc232=_0x4d219c;_0x4c6e64[_0x1fc232(0x218e)]({'title':_0x3c5514[_0x1fc232(0x291)]?'API:'+_0x3c5514[_0x1fc232(0x291)]+'\x20-\x20'+_0x3c5514['statusText']:'SYSTEM:GET_TEAMS','msg':_0x3c5514[_0x1fc232(0x291)]?JSON[_0x1fc232(0x2701)](_0x3c5514[_0x1fc232(0x25c)]):_0x3c5514[_0x1fc232(0x147f)]()});}):_0x4e50d0()[_0x4d219c(0x1cb0)](function(_0x5a81ef){return _0x57fa28['section']=_0x5a81ef,_0x21c025();})[_0x4d219c(0x1c4)](function(_0x274cc0){const _0x31794b=_0x4d219c;_0x4c6e64[_0x31794b(0x218e)]({'title':_0x274cc0['status']?_0x31794b(0xeb9)+_0x274cc0[_0x31794b(0x291)]+_0x31794b(0x1657)+_0x274cc0['statusText']:_0x31794b(0x2206),'msg':_0x274cc0[_0x31794b(0x291)]?JSON[_0x31794b(0x2701)](_0x274cc0[_0x31794b(0x25c)]):_0x274cc0[_0x31794b(0x147f)]()});});}function _0x4e50d0(){return _0x1506fe(function(_0x27a5b0,_0x4c1944){const _0x17f08f=a0_0x5cbd;_0x146173[_0x17f08f(0x2199)][_0x17f08f(0xbf7)]({'userProfileId':_0x57fa28['currentUser'][_0x17f08f(0x13c1)],'name':'Teams'})[_0x17f08f(0x1d77)][_0x17f08f(0x1cb0)](function(_0x177654){const _0x5f3ffb=_0x17f08f,_0x285a07=_0x177654&&_0x177654[_0x5f3ffb(0x2214)]?_0x177654[_0x5f3ffb(0x2214)][0x0]:null;_0x27a5b0(_0x285a07);})['catch'](function(_0x1386a5){_0x4c1944(_0x1386a5);});});}function _0x21c025(){return _0x1506fe(function(_0x28d6f8,_0x49ccec){const _0x249313=a0_0x5cbd;return _0x15d72f()[_0x249313(0x1cb0)](function(_0x1066f3){const _0x1cf6e5=_0x249313;return _0x57fa28[_0x1cf6e5(0x122f)]=_0x1066f3['rows']?_0x1066f3['rows']:[],_0x35cc83[_0x1cf6e5(0x22b6)]('admin')?_0x1066f3:_0x57fa28[_0x1cf6e5(0x1f74)]?_0x57fa28[_0x1cf6e5(0x1f74)]['autoAssociation']?_0x1066f3:_0x544b88():null;})[_0x249313(0x1cb0)](function(_0x5582c6){const _0x196048=_0x249313,_0x198cbc=_0x5582c6&&_0x5582c6[_0x196048(0x2214)]?_0x5582c6[_0x196048(0x2214)]:[];return _0x57fa28[_0x196048(0x1372)]=_0x39641b()[_0x196048(0x1de2)](_0x198cbc,function(_0x1df5e1){const _0x54b86c=_0x196048;return _0x39641b()[_0x54b86c(0x13b4)](_0x57fa28[_0x54b86c(0x122f)],{'id':_0x35cc83[_0x54b86c(0x22b6)]('admin')||_0x57fa28[_0x54b86c(0x1f74)][_0x54b86c(0x12f4)]?_0x1df5e1['id']:_0x1df5e1[_0x54b86c(0x2982)]});}),_0x57fa28['items'][_0x196048(0xf90)](function(_0x53d676){const _0x4d1e72=_0x196048,_0x37031a=_0x39641b()[_0x4d1e72(0x13b4)](_0x57fa28[_0x4d1e72(0x1372)],{'id':_0x53d676['id']});_0x35cc83[_0x4d1e72(0x22b6)](_0x4d1e72(0x1c60))?_0x53d676['isValid']=!![]:_0x53d676[_0x4d1e72(0x1a4f)]=typeof _0x37031a!==_0x4d1e72(0x16b5)?!![]:![];}),_0x54af66();})[_0x249313(0x1cb0)](function(_0x351f16){const _0x49cb4a=_0x249313,_0x378b24=_0x351f16&&_0x351f16['rows']?_0x351f16['rows']:[];_0x57fa28[_0x49cb4a(0x20bb)]=_0x39641b()['map'](_0x378b24,function(_0x3ca6b7){const _0x3713dc=_0x49cb4a;return _0x39641b()[_0x3713dc(0x13b4)](_0x57fa28['items'],{'id':_0x3ca6b7['id']});}),_0x57fa28[_0x49cb4a(0x1456)]=angular[_0x49cb4a(0x17fe)](_0x57fa28[_0x49cb4a(0x20bb)]),_0x57fa28['dualMultiselectOptions'][_0x49cb4a(0x20bb)]=_0x57fa28[_0x49cb4a(0x20bb)],_0x57fa28[_0x49cb4a(0x18c0)]['items']=_0x39641b()[_0x49cb4a(0x2128)](_0x57fa28[_0x49cb4a(0x1372)],_0x57fa28[_0x49cb4a(0x18c0)][_0x49cb4a(0x20bb)],'id'),_0x28d6f8();})[_0x249313(0x1c4)](function(_0x2d1994){_0x49ccec(_0x2d1994);});});}function _0x544b88(){return _0x1506fe(function(_0x555127,_0x224d14){const _0x5b6544=a0_0x5cbd;return _0x146173[_0x5b6544(0x1198)][_0x5b6544(0xbf7)]({'sectionId':_0x57fa28['section']['id'],'nolimit':!![]})[_0x5b6544(0x1d77)][_0x5b6544(0x1cb0)](function(_0x1ffb0d){_0x555127(_0x1ffb0d);})[_0x5b6544(0x1c4)](function(_0x5c1a70){_0x224d14(_0x5c1a70);});});}function _0x54af66(){return _0x1506fe(function(_0x2e2b83,_0x282737){const _0x1c1b01=a0_0x5cbd;return _0x146173['faxQueue'][_0x1c1b01(0x1407)]({'id':_0x57fa28['faxQueue']['id'],'fields':_0x1c1b01(0x43c),'nolimit':!![]})['$promise'][_0x1c1b01(0x1cb0)](function(_0x50f975){_0x2e2b83(_0x50f975);})['catch'](function(_0x4df104){_0x282737(_0x4df104);});});}function _0x15d72f(){return _0x1506fe(function(_0x387510,_0x5b356c){const _0x3f501b=a0_0x5cbd;return _0x146173[_0x3f501b(0xdfd)][_0x3f501b(0xbf7)]({'fields':_0x3f501b(0x43c),'nolimit':!![]})['$promise'][_0x3f501b(0x1cb0)](function(_0x20972c){_0x387510(_0x20972c);})[_0x3f501b(0x1c4)](function(_0x44c6cd){_0x5b356c(_0x44c6cd);});});}function _0x56b119(_0x574bba){return _0x1506fe(function(_0x48deed,_0x3de834){const _0x202689=a0_0x5cbd;_0x39641b()['isEmpty'](_0x574bba)?_0x48deed():_0x146173[_0x202689(0x54d)][_0x202689(0x28d9)]({'id':_0x57fa28['faxQueue']['id'],'ids':_0x39641b()[_0x202689(0x1de2)](_0x574bba,'id')})[_0x202689(0x1d77)]['then'](function(){_0x48deed();})[_0x202689(0x1c4)](function(_0x39a960){_0x3de834(_0x39a960);});});}function _0xaf226d(_0x467bbd){return _0x1506fe(function(_0x33ce26,_0x311907){const _0x575922=a0_0x5cbd;_0x39641b()[_0x575922(0xce9)](_0x467bbd)?_0x33ce26():_0x146173[_0x575922(0x54d)]['removeTeams']({'id':_0x57fa28[_0x575922(0x54d)]['id'],'ids':_0x39641b()[_0x575922(0x1de2)](_0x467bbd,'id')})[_0x575922(0x1d77)]['then'](function(){_0x33ce26();})[_0x575922(0x1c4)](function(_0xce72fb){_0x311907(_0xce72fb);});});}function _0x2cf8d7(){const _0x5af282=_0x69ab56,_0xe12d81=_0x39641b()[_0x5af282(0x2128)](_0x57fa28[_0x5af282(0x1456)],_0x57fa28[_0x5af282(0x20bb)],'id'),_0x390e28=_0x39641b()[_0x5af282(0x2128)](_0x57fa28[_0x5af282(0x20bb)],_0x57fa28[_0x5af282(0x1456)],'id');return _0xaf226d(_0xe12d81)['then'](function(){return _0x56b119(_0x390e28);})[_0x5af282(0x1cb0)](function(){const _0xe11fb7=_0x5af282;_0x57fa28[_0xe11fb7(0x50c)]=![],_0x57fa28['startingAllowedItems']=angular[_0xe11fb7(0x17fe)](_0x57fa28[_0xe11fb7(0x1372)]),_0x57fa28[_0xe11fb7(0x1456)]=angular[_0xe11fb7(0x17fe)](_0x57fa28[_0xe11fb7(0x20bb)]),_0x4c6e64[_0xe11fb7(0x829)]({'title':'SUCCESS','msg':_0xe11fb7(0xc72)});})[_0x5af282(0x1c4)](function(_0x57cd5b){const _0x52afba=_0x5af282;_0x4c6e64[_0x52afba(0x218e)]({'title':_0x57cd5b[_0x52afba(0x291)]?_0x52afba(0xeb9)+_0x57cd5b[_0x52afba(0x291)]+'\x20-\x20'+_0x57cd5b['statusText']:_0x52afba(0x1221),'msg':_0x57cd5b[_0x52afba(0x291)]?JSON[_0x52afba(0x2701)](_0x57cd5b[_0x52afba(0x25c)]):_0x57cd5b['toString']()});});}function _0x35253e(){const _0x232284=_0x69ab56;_0x3ad9c9[_0x232284(0x1426)]();}}const _0x4f8815=_0x83184b;;const _0x1a813e=_0x5074a3['p']+'src/js/modules/main/apps/fax/views/faxQueues/edit/teamadd/teamadd.html/teamadd.html';;_0x227199['$inject']=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1ae),'license',_0x5537c6(0x9ca),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x54d),_0x5537c6(0x2199)];function _0x227199(_0x3829d6,_0x3f8759,_0xf71e2b,_0x10a60c,_0xb11ba9,_0x2535b7,_0xdc4ebc,_0x4f5b00,_0x5c6afd,_0x22958d,_0x4f7548,_0x3a0d96){const _0xda9edd=_0x5537c6,_0x3a5ddc=this;_0x3a5ddc[_0xda9edd(0xe76)]=_0x22958d['getCurrentUser'](),_0x3a5ddc['license']=_0x2535b7,_0x3a5ddc[_0xda9edd(0x9ca)]=_0xdc4ebc,_0x3a5ddc[_0xda9edd(0x1b0c)]=_0x3a5ddc[_0xda9edd(0x9ca)][_0xda9edd(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a5ddc['location']=_0x3f8759[_0xda9edd(0x2276)]()+'://'+_0x3f8759['host'](),_0x3a5ddc[_0xda9edd(0x54d)]=_0x4f7548||_0x3829d6[_0xda9edd(0x1dfe)]['faxQueue']||{},_0x3a5ddc['userProfileSection']=_0x3a0d96&&_0x3a0d96[_0xda9edd(0x184d)]==0x1?_0x3a0d96[_0xda9edd(0x2214)][0x0]:null,_0x3a5ddc['crudPermissions']=_0x22958d[_0xda9edd(0x14ea)](_0x3a5ddc[_0xda9edd(0x2199)]?_0x3a5ddc[_0xda9edd(0x2199)]['crudPermissions']:null),_0x3a5ddc[_0xda9edd(0xf4c)]={},_0x3a5ddc[_0xda9edd(0x8ec)]=_0x3829d6[_0xda9edd(0x1dfe)][_0xda9edd(0x291e)]||0x0,_0x3a5ddc[_0xda9edd(0x1d63)]=_0x1afe94,_0x3a5ddc['agentadddialog']=_0xa7234f,_0x3a5ddc['alert']=_0x5c6afd[_0xda9edd(0x28c7)],_0x3a5ddc[_0xda9edd(0x1603)]=_0x15febc,_0x3a5ddc[_0xda9edd(0x2044)]=_0x14c57f;function _0x1afe94(_0x2ddc98,_0x247994){const _0x115c90=_0xda9edd;_0xf71e2b[_0x115c90(0xe27)]({'controller':_0x115c90(0x9ec),'controllerAs':'vm','templateUrl':_0x1a813e,'parent':angular[_0x115c90(0x1853)](_0x10a60c[_0x115c90(0x1ed9)]),'targetEvent':_0x247994,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x2ddc98,'faxQueues':_0x3a5ddc[_0x115c90(0x754)]?_0x3a5ddc[_0x115c90(0x754)][_0x115c90(0x2214)]:[],'crudPermissions':_0x3a5ddc[_0x115c90(0x1b1a)]}});}function _0xa7234f(_0x4ce979,_0x10842e){const _0x3ec294=_0xda9edd;_0xf71e2b[_0x3ec294(0xe27)]({'controller':_0x3ec294(0xe5e),'controllerAs':'vm','templateUrl':_0x474deb,'parent':angular[_0x3ec294(0x1853)](_0x10a60c[_0x3ec294(0x1ed9)]),'targetEvent':_0x10842e,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x4ce979,'faxQueues':_0x3a5ddc[_0x3ec294(0x754)]?_0x3a5ddc[_0x3ec294(0x754)]['rows']:[],'crudPermissions':_0x3a5ddc[_0x3ec294(0x1b1a)],'realtime':![]}});}function _0x15febc(){const _0x37c656=_0xda9edd;_0x3829d6['go'](_0x37c656(0x826),{},{'reload':_0x37c656(0x826)});}function _0x14c57f(){const _0x3de0e9=_0xda9edd;_0x4f5b00['faxQueue'][_0x3de0e9(0x687)]({'id':_0x3a5ddc[_0x3de0e9(0x54d)]['id']},_0x3a5ddc[_0x3de0e9(0x54d)])[_0x3de0e9(0x1d77)][_0x3de0e9(0x1cb0)](function(){const _0x424fcc=_0x3de0e9;_0x5c6afd[_0x424fcc(0x829)]({'title':'FaxQueue\x20updated!','msg':_0x3a5ddc[_0x424fcc(0x54d)][_0x424fcc(0x16b6)]?_0x3a5ddc[_0x424fcc(0x54d)][_0x424fcc(0x16b6)]+_0x424fcc(0x1068):''});})['catch'](function(_0x11e7c9){const _0x2d3b7d=_0x3de0e9;_0x5c6afd[_0x2d3b7d(0x218e)]({'title':_0x11e7c9[_0x2d3b7d(0x291)]?'API:'+_0x11e7c9['status']+_0x2d3b7d(0x1657)+_0x11e7c9[_0x2d3b7d(0xc22)]:_0x2d3b7d(0x2107),'msg':_0x11e7c9[_0x2d3b7d(0x25c)]?JSON[_0x2d3b7d(0x2701)](_0x11e7c9[_0x2d3b7d(0x25c)]):_0x11e7c9[_0x2d3b7d(0x147f)]()});});}}const _0x3285c9=_0x227199;;_0x1005d9[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),'$state',_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x754),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),'msUtils',_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x1005d9(_0x53e7a8,_0x4cd7c1,_0x572101,_0x1802f2,_0x200104,_0x37864f,_0x5c2e0a,_0x5657d8,_0x32785e,_0x3fd8d3,_0x44b4d6,_0x1b0b52,_0xab352c,_0x19a403,_0x4e272e,_0x14aac5,_0x391eca){const _0x5487d4=_0x5537c6,_0x348ca1=this;_0x348ca1[_0x5487d4(0x8a5)]=_0x14aac5,_0x348ca1[_0x5487d4(0x9ca)]=_0x391eca,_0x348ca1[_0x5487d4(0xe76)]=_0x4e272e['getCurrentUser'](),_0x348ca1['faxQueues']=_0x32785e||{'count':0x0,'rows':[]},_0x348ca1[_0x5487d4(0x44a)]=_0x3fd8d3,_0x348ca1[_0x5487d4(0x2199)]=_0x44b4d6&&_0x44b4d6['count']==0x1?_0x44b4d6[_0x5487d4(0x2214)][0x0]:null,_0x348ca1[_0x5487d4(0x1b1a)]=_0x4e272e[_0x5487d4(0x14ea)](_0x348ca1[_0x5487d4(0x2199)]?_0x348ca1[_0x5487d4(0x2199)][_0x5487d4(0x1b1a)]:null),_0x348ca1['table']=_0x5487d4(0x754),_0x348ca1['listOrder']='',_0x348ca1['listOrderAsc']=null,_0x348ca1['selectedFaxQueues']=[],_0x348ca1['query']={'fields':_0x5487d4(0x22f3),'sort':_0x5487d4(0x282),'channel':_0x5487d4(0x1944),'limit':0xa,'page':0x1},_0x348ca1['arraystrategy']=_0x39641b()[_0x5487d4(0x2631)]([{'option':'Beepall','value':_0x5487d4(0xcf1)},{'option':_0x5487d4(0x290b),'value':_0x5487d4(0x15b5)}],function(_0x4341a2){const _0x5d6e1b=_0x5487d4;return _0x39641b()[_0x5d6e1b(0x288f)](_0x4341a2[_0x5d6e1b(0x327)],new RegExp('\x27','g'),'');}),_0x348ca1[_0x5487d4(0x235d)]=_0x2c0bb3,_0x348ca1[_0x5487d4(0x1d63)]=_0xc5f507,_0x348ca1[_0x5487d4(0x1379)]=_0x3f275a,_0x348ca1[_0x5487d4(0x27fe)]=_0x1428c5,_0x348ca1[_0x5487d4(0x649)]=_0x22dd57,_0x348ca1[_0x5487d4(0x829)]=_0x167eb8,_0x348ca1[_0x5487d4(0x10b8)]=_0x560f7d,_0x348ca1[_0x5487d4(0x12ff)]=_0x2f60bf,_0x348ca1[_0x5487d4(0x8a9)]=_0x2244b9,_0x348ca1[_0x5487d4(0x12c4)]=_0x59ab70,_0x348ca1['deleteSelectedFaxQueues']=_0x2a034e,_0x348ca1[_0x5487d4(0x920)]=_0x19b5a0,_0x348ca1[_0x5487d4(0x1b5e)]=_0x31574a;function _0x2c0bb3(_0x4561f6){const _0xb28629=_0x5487d4;_0x572101['go'](_0xb28629(0x1499),{'id':_0x4561f6['id'],'faxQueue':_0x4561f6,'crudPermissions':_0x348ca1['crudPermissions']});}function _0xc5f507(_0x19d4fc,_0x42c48e){const _0xc301ec=_0x5487d4;_0x200104[_0xc301ec(0xe27)]({'controller':_0xc301ec(0x9ec),'controllerAs':'vm','templateUrl':_0x1a813e,'parent':angular[_0xc301ec(0x1853)](_0x37864f[_0xc301ec(0x1ed9)]),'targetEvent':_0x42c48e,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x19d4fc,'faxQueues':_0x348ca1['faxQueues']?_0x348ca1['faxQueues'][_0xc301ec(0x2214)]:[],'crudPermissions':_0x348ca1[_0xc301ec(0x1b1a)]}});}function _0x3f275a(_0x390318,_0x3e7697){const _0x19281f=_0x5487d4;_0x200104[_0x19281f(0xe27)]({'controller':_0x19281f(0xe5e),'controllerAs':'vm','templateUrl':_0x474deb,'parent':angular['element'](_0x37864f[_0x19281f(0x1ed9)]),'targetEvent':_0x3e7697,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x390318,'faxQueues':_0x348ca1[_0x19281f(0x754)]?_0x348ca1[_0x19281f(0x754)][_0x19281f(0x2214)]:[],'crudPermissions':_0x348ca1[_0x19281f(0x1b1a)],'realtime':![]}});}function _0x1428c5(_0x5929fd,_0x1e9ff5){const _0x24a00e=_0x5487d4,_0x687333=_0x200104['confirm']()[_0x24a00e(0x1386)](_0x24a00e(0x140b)+_0x39641b()[_0x24a00e(0xa75)]('faxQueue')+'?')[_0x24a00e(0x49e)](''+(_0x5929fd[_0x24a00e(0x16b6)]||_0x24a00e(0x54d))+_0x24a00e(0x1200)+_0x24a00e(0x1b6))[_0x24a00e(0x15ad)](_0x24a00e(0x854))[_0x24a00e(0x728)](_0x1e9ff5)['ok']('OK')[_0x24a00e(0x696)](_0x24a00e(0x24ba));_0x200104[_0x24a00e(0xe27)](_0x687333)[_0x24a00e(0x1cb0)](function(){_0x2244b9(_0x5929fd);},function(){const _0x53009f=_0x24a00e;console['log'](_0x53009f(0x24ba));});}function _0x22dd57(){const _0x1ccff7=_0x5487d4;if(_0x4e272e['hasRole'](_0x1ccff7(0x1c60)))_0x572101['go'](_0x1ccff7(0x734),{});else return _0x1b0b52[_0x1ccff7(0x2199)]['get']({'userProfileId':_0x4e272e[_0x1ccff7(0x21e8)]()[_0x1ccff7(0x13c1)],'sectionId':0x38e})[_0x1ccff7(0x1d77)][_0x1ccff7(0x1cb0)](function(_0xebe705){const _0x51300a=_0x1ccff7,_0x220b13=_0xebe705&&_0xebe705[_0x51300a(0x2214)]?_0xebe705[_0x51300a(0x2214)][0x0]:null;_0x220b13&&_0x220b13[_0x51300a(0x281c)]?_0x572101['go'](_0x51300a(0x734),{}):_0x19a403['info']({'title':_0x5657d8[_0x51300a(0x25cc)](_0x51300a(0x370)),'msg':_0x5657d8['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x1ccff7(0x1c4)](function(_0x1c085d){const _0x24ad13=_0x1ccff7;_0x19a403['error']({'title':_0x1c085d['status']?_0x24ad13(0xeb9)+_0x1c085d[_0x24ad13(0x291)]+_0x24ad13(0x1657)+_0x1c085d[_0x24ad13(0xc22)]:_0x24ad13(0x17ba),'msg':_0x1c085d['status']?JSON[_0x24ad13(0x2701)](_0x1c085d[_0x24ad13(0x25c)]):_0x1c085d['toString']()});});}let _0x4c7725=!![],_0x5ba14b=0x1;_0x53e7a8[_0x5487d4(0x614)](_0x5487d4(0x957),function(_0x2fe184,_0x48f29d){const _0x18af89=_0x5487d4;_0x4c7725?_0x5c2e0a(function(){_0x4c7725=![];}):(!_0x48f29d&&(_0x5ba14b=_0x348ca1[_0x18af89(0xae2)][_0x18af89(0x1c7b)]),_0x2fe184!==_0x48f29d&&(_0x348ca1[_0x18af89(0xae2)]['page']=0x1),!_0x2fe184&&(_0x348ca1[_0x18af89(0xae2)][_0x18af89(0x1c7b)]=_0x5ba14b),_0x348ca1['getFaxQueues']());});function _0x167eb8(_0x35b1c6){const _0x20475c=_0x5487d4;_0x348ca1[_0x20475c(0x754)]=_0x35b1c6||{'count':0x0,'rows':[]};}function _0x560f7d(){const _0x58fcde=_0x5487d4;_0x348ca1[_0x58fcde(0xae2)][_0x58fcde(0x184b)]=(_0x348ca1['query'][_0x58fcde(0x1c7b)]-0x1)*_0x348ca1[_0x58fcde(0xae2)]['limit'],_0x4e272e['hasRole'](_0x58fcde(0x1c60))?_0x348ca1[_0x58fcde(0x2061)]=_0x1b0b52[_0x58fcde(0x54d)]['get'](_0x348ca1[_0x58fcde(0xae2)],_0x167eb8)[_0x58fcde(0x1d77)]:(_0x348ca1['query']['id']=_0x348ca1[_0x58fcde(0x44a)]['id'],_0x348ca1[_0x58fcde(0xae2)][_0x58fcde(0x1f74)]=_0x58fcde(0x1972),_0x348ca1['promise']=_0x1b0b52[_0x58fcde(0x44a)][_0x58fcde(0x1810)](_0x348ca1[_0x58fcde(0xae2)],_0x167eb8)[_0x58fcde(0x1d77)]);}function _0x2f60bf(_0x8b565d,_0x2d7cb9){const _0x18bd8a=_0x5487d4;_0x200104['show']({'controller':_0x18bd8a(0xeea),'controllerAs':'vm','templateUrl':_0x1c94ff,'parent':angular[_0x18bd8a(0x1853)](_0x37864f[_0x18bd8a(0x1ed9)]),'targetEvent':_0x8b565d,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x2d7cb9,'faxQueues':_0x348ca1[_0x18bd8a(0x754)][_0x18bd8a(0x2214)],'license':_0x348ca1[_0x18bd8a(0x8a5)],'setting':_0x348ca1[_0x18bd8a(0x9ca)],'crudPermissions':_0x348ca1['crudPermissions']}});}function _0x2244b9(_0x5785c1){const _0xf89017=_0x5487d4;_0x1b0b52[_0xf89017(0x54d)][_0xf89017(0x111d)]({'id':_0x5785c1['id']})[_0xf89017(0x1d77)][_0xf89017(0x1cb0)](function(){const _0x27a5c0=_0xf89017;_0x39641b()[_0x27a5c0(0x152a)](_0x348ca1[_0x27a5c0(0x754)][_0x27a5c0(0x2214)],{'id':_0x5785c1['id']}),_0x348ca1[_0x27a5c0(0x754)][_0x27a5c0(0x184d)]-=0x1,!_0x348ca1[_0x27a5c0(0x754)][_0x27a5c0(0x2214)][_0x27a5c0(0xfd0)]&&_0x348ca1[_0x27a5c0(0x10b8)](),_0x19a403[_0x27a5c0(0x829)]({'title':_0x39641b()[_0x27a5c0(0xa75)](_0x27a5c0(0x2e6))+_0x27a5c0(0x2663),'msg':_0x5785c1['name']?_0x5785c1[_0x27a5c0(0x16b6)]+_0x27a5c0(0x3f5):''});})[_0xf89017(0x1c4)](function(_0x3d1560){const _0x45141b=_0xf89017;if(_0x3d1560[_0x45141b(0x25c)]&&_0x3d1560[_0x45141b(0x25c)][_0x45141b(0x1a7c)]&&_0x3d1560[_0x45141b(0x25c)]['errors'][_0x45141b(0xfd0)]){_0x348ca1[_0x45141b(0x1a7c)]=_0x3d1560[_0x45141b(0x25c)]['errors']||[{'message':_0x3d1560['toString'](),'type':'SYSTEM:DELETEfaxQueue'}];for(let _0x55a800=0x0;_0x55a800<_0x3d1560[_0x45141b(0x25c)][_0x45141b(0x1a7c)]['length'];_0x55a800++){_0x19a403['error']({'title':_0x3d1560[_0x45141b(0x25c)][_0x45141b(0x1a7c)][_0x55a800]['type'],'msg':_0x3d1560[_0x45141b(0x25c)][_0x45141b(0x1a7c)][_0x55a800][_0x45141b(0x155e)]});}}else _0x19a403['error']({'title':_0x3d1560[_0x45141b(0x291)]?_0x45141b(0xeb9)+_0x3d1560[_0x45141b(0x291)]+_0x45141b(0x1657)+_0x3d1560[_0x45141b(0xc22)]:_0x45141b(0x212c),'msg':_0x3d1560[_0x45141b(0x25c)]?JSON[_0x45141b(0x2701)](_0x3d1560['data'][_0x45141b(0x155e)]):_0x3d1560[_0x45141b(0x155e)]||_0x3d1560[_0x45141b(0x147f)]()});});}function _0x59ab70(){const _0x1fc6b1=_0x5487d4,_0x4f0068=angular[_0x1fc6b1(0x17fe)](_0x348ca1[_0x1fc6b1(0x2414)]);return _0x348ca1['selectedFaxQueues']=[],_0x4f0068;}function _0x2a034e(_0x210f8a){const _0x5a0e51=_0x5487d4,_0x558e2a=_0x200104[_0x5a0e51(0x1551)]()[_0x5a0e51(0x1386)](_0x5a0e51(0x1aa4))[_0x5a0e51(0x49e)](_0x5a0e51(0x204d)+_0x348ca1['selectedFaxQueues'][_0x5a0e51(0xfd0)]+'\x20selected'+_0x5a0e51(0x1b6))[_0x5a0e51(0x15ad)](_0x5a0e51(0x911))[_0x5a0e51(0x728)](_0x210f8a)['ok']('OK')[_0x5a0e51(0x696)]('CANCEL');_0x200104['show'](_0x558e2a)['then'](function(){const _0x1cb14e=_0x5a0e51;_0x348ca1[_0x1cb14e(0x2414)][_0x1cb14e(0xf90)](function(_0x3d426c){_0x2244b9(_0x3d426c);}),_0x348ca1[_0x1cb14e(0x2414)]=[];});}function _0x19b5a0(){const _0x7daccf=_0x5487d4;_0x348ca1[_0x7daccf(0x2414)]=[];}function _0x31574a(){const _0x4ea8e5=_0x5487d4;_0x348ca1[_0x4ea8e5(0x2414)]=_0x348ca1[_0x4ea8e5(0x754)][_0x4ea8e5(0x2214)];}}const _0xcbebd1=_0x1005d9;;_0x14a746[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6),_0x5537c6(0x1f2a)];function _0x14a746(_0x50c6ec,_0x4cbd30){const _0x430426=_0x5537c6;_0x50c6ec[_0x430426(0x27e0)](_0x430426(0x29b7),{'abstract':!![],'url':_0x430426(0xf93)})[_0x430426(0x27e0)]('app.fax.faxQueues',{'url':_0x430426(0x196),'views':{'content@app':{'templateUrl':_0x318ce1,'controller':_0x430426(0x1503)}},'resolve':{'faxQueues':[_0x430426(0x1e0b),_0x430426(0x1774),function(_0x484687,_0x5f3f1f){const _0x24b5f7=_0x430426;return _0x5f3f1f['hasRole']('admin')?_0x484687[_0x24b5f7(0x19a3)](_0x24b5f7(0x16d2),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x24b5f7(0x282),'channel':_0x24b5f7(0x1944),'limit':0xa,'offset':0x0}):_0x484687[_0x24b5f7(0x19a3)](_0x24b5f7(0x12da),{'id':_0x5f3f1f[_0x24b5f7(0x21e8)]()[_0x24b5f7(0x13c1)],'section':_0x24b5f7(0x1972),'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x24b5f7(0x282),'channel':_0x24b5f7(0x1944),'limit':0xa,'offset':0x0});}],'userProfile':[_0x430426(0x1e0b),_0x430426(0x1774),function(_0x24c127,_0xc9e77d){const _0x36c7c5=_0x430426;return _0xc9e77d['hasRole'](_0x36c7c5(0x1c60))?null:_0x24c127[_0x36c7c5(0x19a3)](_0x36c7c5(0x9ae),{'fields':_0x36c7c5(0x279),'id':_0xc9e77d['getCurrentUser']()[_0x36c7c5(0x13c1)]});}],'userProfileSection':[_0x430426(0x1e0b),_0x430426(0x1774),function(_0x1212af,_0x2aecf0){const _0x198838=_0x430426;return _0x2aecf0[_0x198838(0x22b6)](_0x198838(0x1c60))?null:_0x1212af[_0x198838(0x19a3)](_0x198838(0x2182),{'fields':_0x198838(0x1f5f),'userProfileId':_0x2aecf0[_0x198838(0x21e8)]()[_0x198838(0x13c1)],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':_0x430426(0x1944)})[_0x430426(0x27e0)](_0x430426(0x1499),{'url':_0x430426(0x1bf2),'params':{'faxQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x26d434,'controller':_0x430426(0x256f)}},'resolve':{'faxQueue':['apiResolver',_0x430426(0x225c),function(_0x414caf,_0x47da3d){const _0x2f011d=_0x430426;return _0x414caf[_0x2f011d(0x19a3)](_0x2f011d(0x16d2),{'fields':_0x2f011d(0x22f3),'id':_0x47da3d['id']});}],'userProfileSection':[_0x430426(0x1e0b),_0x430426(0x1774),function(_0x735bc8,_0x17e776){const _0x57a506=_0x430426;return _0x735bc8[_0x57a506(0x19a3)](_0x57a506(0x2182),{'fields':_0x57a506(0x1f5f),'userProfileId':_0x17e776[_0x57a506(0x21e8)]()['userProfileId'],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':'fax'})[_0x430426(0x27e0)](_0x430426(0x2808),{'url':_0x430426(0x1bea),'views':{'content@app':{'templateUrl':_0x849fd7,'controller':'FaxAccountsController\x20as\x20vm'}},'resolve':{'faxAccounts':[_0x430426(0x1e0b),_0x430426(0x1774),function(_0x2e2d7e,_0x4949af){const _0x1d27a8=_0x430426;return _0x4949af[_0x1d27a8(0x22b6)](_0x1d27a8(0x1c60))?_0x2e2d7e[_0x1d27a8(0x19a3)](_0x1d27a8(0x1e1a),{'fields':_0x1d27a8(0x2238),'sort':_0x1d27a8(0x282),'limit':0xa,'offset':0x0}):_0x2e2d7e[_0x1d27a8(0x19a3)]('userProfile@getResources',{'id':_0x4949af['getCurrentUser']()[_0x1d27a8(0x13c1)],'section':_0x1d27a8(0x1ffe),'fields':_0x1d27a8(0x2238),'sort':_0x1d27a8(0x282),'limit':0xa,'offset':0x0});}],'userProfile':[_0x430426(0x1e0b),_0x430426(0x1774),function(_0x3a3d72,_0x349b89){const _0x1e49a2=_0x430426;return _0x349b89[_0x1e49a2(0x22b6)]('admin')?null:_0x3a3d72[_0x1e49a2(0x19a3)](_0x1e49a2(0x9ae),{'fields':'id,name,crudPermissions','id':_0x349b89[_0x1e49a2(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x430426(0x1e0b),_0x430426(0x1774),function(_0x302b56,_0x553cb6){const _0xd889ab=_0x430426;return _0x553cb6['hasRole'](_0xd889ab(0x1c60))?null:_0x302b56[_0xd889ab(0x19a3)](_0xd889ab(0x2182),{'fields':_0xd889ab(0x1f5f),'userProfileId':_0x553cb6[_0xd889ab(0x21e8)]()['userProfileId'],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':'fax'})['state'](_0x430426(0x240b),{'url':_0x430426(0x1bf2),'params':{'faxAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4ba5c3,'controller':_0x430426(0x1b28)}},'resolve':{'faxAccount':[_0x430426(0x1e0b),_0x430426(0x225c),function(_0x1d5456,_0x127f00){const _0x36a819=_0x430426;return _0x1d5456[_0x36a819(0x19a3)](_0x36a819(0x1e1a),{'fields':_0x36a819(0x2238),'id':_0x127f00['id']});}],'userProfileSection':[_0x430426(0x1e0b),_0x430426(0x1774),function(_0x28ff7f,_0x576f65){const _0x981e08=_0x430426;return _0x28ff7f[_0x981e08(0x19a3)](_0x981e08(0x2182),{'fields':_0x981e08(0x1f5f),'userProfileId':_0x576f65['getCurrentUser']()[_0x981e08(0x13c1)],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':_0x430426(0x1944)}),_0x4cbd30[_0x430426(0x4e7)](_0x430426(0x1bfc));}angular[_0x5537c6(0x9ab)](_0x5537c6(0x29b7),[_0x5537c6(0x2770),_0x5537c6(0x2135),_0x5537c6(0x1260),_0x5537c6(0xacf),'mdColorPicker',_0x5537c6(0xd19),'ng-sortable',_0x5537c6(0x2ec),_0x5537c6(0x1890),_0x5537c6(0x167d),_0x5537c6(0x208f),'mwFormViewer',_0x5537c6(0x2166),_0x5537c6(0x3b9),_0x5537c6(0x7c9),_0x5537c6(0xeb5),_0x5537c6(0x27af),'material.components.expansionPanels',_0x5537c6(0x1cbd),_0x5537c6(0xd01),_0x5537c6(0x13a6)])['config'](_0x14a746)['controller']('CreateOrEditFaxAccountDialogController',_0x13c28e)['controller'](_0x5537c6(0x1ea9),_0x2066de)[_0x5537c6(0x6e5)](_0x5537c6(0x2340),_0x39b6c8)[_0x5537c6(0x6e5)](_0x5537c6(0xda1),_0x23ec31)['controller'](_0x5537c6(0x1308),_0x2e3575)[_0x5537c6(0x6e5)](_0x5537c6(0x2873),_0xbb55bf)[_0x5537c6(0x6e5)](_0x5537c6(0x151e),_0x366e9f)[_0x5537c6(0x6e5)](_0x5537c6(0x17b4),_0x2a6154)[_0x5537c6(0x6e5)]('EditFaxAccountAppnoopDialogController',_0x40e585)[_0x5537c6(0x6e5)]('EditFaxAccountAppqueueDialogController',_0x4f2f53)[_0x5537c6(0x6e5)]('EditFaxAccountAppsystemDialogController',_0x2c92c8)['controller'](_0x5537c6(0x34b),_0x4eb22e)[_0x5537c6(0x6e5)](_0x5537c6(0x1cf3),_0x7f1509)[_0x5537c6(0x6e5)](_0x5537c6(0x2074),_0x10e9cd)[_0x5537c6(0x6e5)]('FaxAccountController',_0x4c9a39)[_0x5537c6(0x6e5)](_0x5537c6(0x26bd),_0xba7168)[_0x5537c6(0x6e5)]('CreateOrEditFaxQueueDialogController',_0x52f939)[_0x5537c6(0x6e5)](_0x5537c6(0xe5e),_0x3f7c3a)[_0x5537c6(0x6e5)](_0x5537c6(0x9ec),_0x4f8815)[_0x5537c6(0x6e5)]('FaxQueueController',_0x3285c9)['controller'](_0x5537c6(0x1a41),_0xcbebd1);;const _0x28a737=_0x5074a3['p']+_0x5537c6(0x12db);;_0x352508['$inject']=[_0x5537c6(0xcb9),'$translate','$q',_0x5537c6(0x9bf),'disposition',_0x5537c6(0xf72),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x352508(_0x4233cc,_0x3b2fc3,_0x2e1562,_0x39ec03,_0x462723,_0x222541,_0x2c4f7f,_0x30048a,_0x33df4c,_0x2b97de,_0x42c87c){const _0x20384c=_0x5537c6,_0x4ee9a8=this;_0x4ee9a8[_0x20384c(0xe76)]=_0x30048a[_0x20384c(0x21e8)](),_0x4ee9a8[_0x20384c(0x1746)]=angular['copy'](_0x462723),_0x4ee9a8[_0x20384c(0x9ca)]=_0x42c87c,_0x4ee9a8['license']=_0x2b97de,_0x4ee9a8[_0x20384c(0x1b1a)]=_0x33df4c,_0x4ee9a8[_0x20384c(0x2965)]=![],_0x4ee9a8[_0x20384c(0x1a7c)]=[];!_0x4ee9a8['disposition']&&(_0x4ee9a8[_0x20384c(0x1746)]={'level':_0x20384c(0xf07)},_0x4ee9a8['newDisposition']=!![]);if(_0x222541){const _0x9a1268=_0x222541[_0x20384c(0x2198)];_0x4ee9a8['disposition'][_0x9a1268]=_0x222541['id'];}_0x4ee9a8['onInit']=_0x27fef1,_0x4ee9a8['onFirstLevelSelection']=_0x17b8f9,_0x4ee9a8[_0x20384c(0x1f59)]=_0x16289a,_0x4ee9a8['saveDisposition']=_0x47df43,_0x4ee9a8[_0x20384c(0x20b3)]=_0x2df79c,_0x4ee9a8[_0x20384c(0x2370)]=_0x38623a,_0x4ee9a8['closeDialog']=_0x3c3884;function _0x27fef1(){const _0xd1abf0=_0x20384c;let _0x3ff450=_0xd1abf0(0x1746);if(_0x222541)_0x3ff450=_0x222541[_0xd1abf0(0x15d0)];else{if(_0x4ee9a8[_0xd1abf0(0xe76)]['role']===_0xd1abf0(0xebe))_0x3ff450=_0xd1abf0(0x44a);}let _0x56bb81='get';if(_0x222541)_0x56bb81=_0xd1abf0(0x640);else{if(_0x4ee9a8['currentUser']['role']===_0xd1abf0(0xebe))_0x56bb81=_0xd1abf0(0x1810);}const _0x1a5b0e={'fields':_0xd1abf0(0x2999),'id':_0x222541?_0x222541['id']:undefined,'section':_0x4ee9a8[_0xd1abf0(0xe76)]['role']==='user'?_0xd1abf0(0x5d1):undefined,'MailAccountId':_0x222541?undefined:'null','FaxAccountId':_0x222541?undefined:'null','SmsAccountId':_0x222541?undefined:_0xd1abf0(0xd38),'OpenchannelAccountId':_0x222541?undefined:'null','ChatWebsiteId':_0x222541?undefined:'null','WhatsappAccountId':_0x222541?undefined:_0xd1abf0(0xd38),'ListId':_0x222541?undefined:_0xd1abf0(0xd38),'sort':'id','nolimit':_0xd1abf0(0x44d)};_0x1cba85(_0x3ff450,_0x56bb81,_0x1a5b0e)[_0xd1abf0(0x1cb0)](function(_0xaf2400){const _0x59f3cf=_0xd1abf0;_0x4ee9a8[_0x59f3cf(0xdf2)]=angular[_0x59f3cf(0x17fe)](_0xaf2400);if(!_0x4ee9a8[_0x59f3cf(0x2965)])_0x55287b();})['catch'](function(_0x10845b){const _0x133724=_0xd1abf0;_0x39ec03[_0x133724(0x218e)]({'title':_0x10845b[_0x133724(0x291)]?_0x133724(0xeb9)+_0x10845b[_0x133724(0x291)]+'\x20-\x20'+_0x10845b[_0x133724(0xc22)]:[_0x133724(0x142b),_0x3ff450,_0x56bb81][_0x133724(0x1f66)](':'),'msg':_0x10845b['data']?JSON[_0x133724(0x2701)](_0x10845b[_0x133724(0x25c)]['message']):_0x10845b[_0x133724(0x155e)]||_0x10845b['toString']()});});}function _0x55287b(){const _0x580eab=_0x20384c;if(_0x4ee9a8[_0x580eab(0x1746)][_0x580eab(0x3c9)]==='first')return;_0x4ee9a8[_0x580eab(0x2230)]=_0x39641b()['find'](_0x4ee9a8[_0x580eab(0xdf2)],['id',_0x4ee9a8[_0x580eab(0x1746)][_0x580eab(0x55e)]]);if(!_0x4ee9a8[_0x580eab(0x2230)]){_0x5bbe7e()[_0x580eab(0x1cb0)](function(_0x48cd00){const _0x645437=_0x580eab;_0x4ee9a8[_0x645437(0x1616)]=_0x48cd00;for(let _0x39ee7b=0x0;_0x39ee7b<_0x4ee9a8[_0x645437(0x1616)][_0x645437(0xfd0)];_0x39ee7b++){const _0x436d24=_0x4ee9a8[_0x645437(0x1616)][_0x39ee7b];if(_0x436d24['id']===_0x4ee9a8[_0x645437(0x1746)][_0x645437(0x55e)]){_0x4b3ab8(_0x436d24),_0x436d24[_0x645437(0x15da)]=![],_0x4ee9a8[_0x645437(0xdf2)][_0x645437(0x2785)](_0x436d24);break;}}});return;}_0x4b3ab8(_0x4ee9a8[_0x580eab(0x2230)]);}function _0x1cba85(_0x3b5f24,_0x4ecfe7,_0x31bd00){return _0x2e1562(function(_0x3291b5,_0x5dd11a){const _0x1057a2=a0_0x5cbd;_0x2c4f7f[_0x3b5f24][_0x4ecfe7](_0x31bd00)[_0x1057a2(0x1d77)][_0x1057a2(0x1cb0)](function(_0x398ffc){const _0x42ae00=_0x1057a2,_0x6b7dbc=_0x398ffc[_0x42ae00(0x2214)]||[];return _0x3291b5(_0x6b7dbc);})['catch'](function(_0x26151e){_0x5dd11a(_0x26151e);});});}function _0x5bbe7e(){return _0x2e1562(function(_0x3ae94a,_0x14ae4d){const _0x3f9cd4=a0_0x5cbd;_0x2c4f7f[_0x3f9cd4(0x1746)][_0x3f9cd4(0xbf7)]({'fields':'id,name,level,ParentId','sort':'id','nolimit':_0x3f9cd4(0x44d)})[_0x3f9cd4(0x1d77)][_0x3f9cd4(0x1cb0)](function(_0xe1be00){const _0x2444fe=_0x3f9cd4,_0x2c8fd8=_0xe1be00[_0x2444fe(0x2214)]||[];return _0x3ae94a(_0x2c8fd8);})['catch'](function(_0x1d39f6){_0x14ae4d(_0x1d39f6);});});}function _0x4b3ab8(_0x1e0afc){const _0x66da7c=_0x20384c;_0x1e0afc['level']==='first'?_0x4ee9a8[_0x66da7c(0x8ba)]=_0x1e0afc:(_0x4ee9a8[_0x66da7c(0x18fe)]=!![],_0x4ee9a8['secondLevelDisposition']=_0x1e0afc,_0x4ee9a8[_0x66da7c(0x8ba)]=_0x39641b()[_0x66da7c(0x13b4)](_0x4ee9a8[_0x66da7c(0xdf2)],['id',_0x4ee9a8['secondLevelDisposition'][_0x66da7c(0x55e)]]),!_0x4ee9a8['firstLevelDisposition']&&_0x5bbe7e()[_0x66da7c(0x1cb0)](function(){const _0x54b55b=_0x66da7c;_0x4ee9a8[_0x54b55b(0x8ba)]=_0x39641b()[_0x54b55b(0x13b4)](_0x4ee9a8['allDispositions'],['id',_0x4ee9a8['secondLevelDisposition'][_0x54b55b(0x55e)]]),_0x4ee9a8['firstLevelDisposition'][_0x54b55b(0x15da)]=![],_0x4ee9a8[_0x54b55b(0xdf2)][_0x54b55b(0x2785)](_0x4ee9a8['firstLevelDisposition']);}));}function _0x38623a(_0x397635){const _0x35f343=_0x20384c;_0x397635==='first'?(_0x4ee9a8[_0x35f343(0x8ba)]=undefined,_0x4ee9a8[_0x35f343(0x1aeb)]=undefined,_0x4ee9a8[_0x35f343(0x18fe)]=![]):_0x4ee9a8[_0x35f343(0x1aeb)]=undefined;}function _0x17b8f9(){const _0x49034b=_0x20384c;_0x4ee9a8[_0x49034b(0x1aeb)]=undefined,_0x4ee9a8[_0x49034b(0x18fe)]=_0x39641b()['some'](_0x4ee9a8[_0x49034b(0xdf2)],function(_0x4dad36){const _0x5ed55d=_0x49034b;return _0x4dad36[_0x5ed55d(0x55e)]===_0x4ee9a8[_0x5ed55d(0x8ba)]['id']&&_0x4dad36['id']!=_0x4ee9a8[_0x5ed55d(0x1746)]['id'];});}function _0x16289a(){const _0x38a2ba=_0x20384c;_0x4ee9a8['errors']=[];if(_0x4ee9a8[_0x38a2ba(0x1aeb)])_0x4ee9a8[_0x38a2ba(0x1746)]['ParentId']=_0x4ee9a8[_0x38a2ba(0x1aeb)]['id'],_0x4ee9a8['disposition'][_0x38a2ba(0x3c9)]='third';else _0x4ee9a8[_0x38a2ba(0x8ba)]&&(_0x4ee9a8['disposition'][_0x38a2ba(0x55e)]=_0x4ee9a8[_0x38a2ba(0x8ba)]['id'],_0x4ee9a8[_0x38a2ba(0x1746)][_0x38a2ba(0x3c9)]=_0x38a2ba(0x1e82));_0x2c4f7f[_0x38a2ba(0x1746)][_0x38a2ba(0x1c3f)](_0x4ee9a8[_0x38a2ba(0x1746)])[_0x38a2ba(0x1d77)][_0x38a2ba(0x1cb0)](function(_0x521e6a){const _0x4376b8=_0x38a2ba;_0x4ee9a8[_0x4376b8(0xdf2)]['unshift'](_0x521e6a['toJSON']()),_0x39ec03['success']({'title':_0x3b2fc3[_0x4376b8(0x25cc)](_0x4376b8(0x298e))}),_0x3c3884(!![]);})['catch'](function(_0x4d1605){const _0x1939df=_0x38a2ba;if(_0x4d1605[_0x1939df(0x25c)]&&_0x4d1605[_0x1939df(0x25c)]['errors']&&_0x4d1605[_0x1939df(0x25c)]['errors'][_0x1939df(0xfd0)]){_0x4ee9a8[_0x1939df(0x1a7c)]=_0x4d1605[_0x1939df(0x25c)][_0x1939df(0x1a7c)]||[{'message':_0x4d1605['toString'](),'type':_0x1939df(0x140c)}];for(let _0x48f3b2=0x0;_0x48f3b2<_0x4d1605['data'][_0x1939df(0x1a7c)][_0x1939df(0xfd0)];_0x48f3b2+=0x1){_0x39ec03[_0x1939df(0x218e)]({'title':_0x4d1605['data']['errors'][_0x48f3b2][_0x1939df(0x66a)],'msg':_0x4d1605['data']['errors'][_0x48f3b2][_0x1939df(0x155e)]});}}else _0x39ec03[_0x1939df(0x218e)]({'title':_0x4d1605[_0x1939df(0x291)]?_0x1939df(0xeb9)+_0x4d1605['status']+_0x1939df(0x1657)+_0x4d1605[_0x1939df(0xc22)]:_0x1939df(0x140c),'msg':_0x4d1605[_0x1939df(0x25c)]?JSON[_0x1939df(0x2701)](_0x4d1605[_0x1939df(0x25c)]['message']):_0x4d1605[_0x1939df(0x147f)]()});});}function _0x47df43(){const _0xbd92c2=_0x20384c;_0x4ee9a8[_0xbd92c2(0x1a7c)]=[];if(_0x4ee9a8[_0xbd92c2(0x1aeb)])_0x4ee9a8[_0xbd92c2(0x1746)][_0xbd92c2(0x55e)]=_0x4ee9a8[_0xbd92c2(0x1aeb)]['id'],_0x4ee9a8[_0xbd92c2(0x1746)][_0xbd92c2(0x3c9)]=_0xbd92c2(0x1dd0);else _0x4ee9a8[_0xbd92c2(0x8ba)]&&(_0x4ee9a8[_0xbd92c2(0x1746)]['ParentId']=_0x4ee9a8[_0xbd92c2(0x8ba)]['id'],_0x4ee9a8[_0xbd92c2(0x1746)]['level']='second');_0x2c4f7f['disposition'][_0xbd92c2(0x687)]({'id':_0x4ee9a8['disposition']['id']},_0x4ee9a8[_0xbd92c2(0x1746)])[_0xbd92c2(0x1d77)]['then'](function(_0x35b1e6){const _0x540ad4=_0xbd92c2,_0x34d8ab=_0x39641b()[_0x540ad4(0x13b4)](_0x4ee9a8[_0x540ad4(0xdf2)],{'id':_0x35b1e6['id']});_0x34d8ab&&_0x39641b()[_0x540ad4(0x9c1)](_0x34d8ab,_0x39641b()[_0x540ad4(0x169b)](_0x35b1e6[_0x540ad4(0x19b2)](),_0x39641b()[_0x540ad4(0x1be5)](_0x34d8ab))),_0x39ec03['success']({'title':_0x3b2fc3[_0x540ad4(0x25cc)](_0x540ad4(0x1bf))}),_0x3c3884(!![]);})['catch'](function(_0x201c05){const _0x323a24=_0xbd92c2;if(_0x201c05[_0x323a24(0x25c)]&&_0x201c05[_0x323a24(0x25c)][_0x323a24(0x1a7c)]&&_0x201c05[_0x323a24(0x25c)][_0x323a24(0x1a7c)][_0x323a24(0xfd0)]){_0x4ee9a8[_0x323a24(0x1a7c)]=_0x201c05[_0x323a24(0x25c)][_0x323a24(0x1a7c)]||[{'message':_0x201c05[_0x323a24(0x147f)](),'type':_0x323a24(0xfef)}];for(let _0x50c508=0x0;_0x50c508<_0x201c05['data'][_0x323a24(0x1a7c)][_0x323a24(0xfd0)];_0x50c508++){_0x39ec03[_0x323a24(0x218e)]({'title':_0x201c05[_0x323a24(0x25c)][_0x323a24(0x1a7c)][_0x50c508][_0x323a24(0x66a)],'msg':_0x201c05[_0x323a24(0x25c)][_0x323a24(0x1a7c)][_0x50c508]['message']});}}else _0x39ec03[_0x323a24(0x218e)]({'title':_0x201c05[_0x323a24(0x291)]?_0x323a24(0xeb9)+_0x201c05[_0x323a24(0x291)]+_0x323a24(0x1657)+_0x201c05[_0x323a24(0xc22)]:_0x323a24(0xfef),'msg':_0x201c05[_0x323a24(0x25c)]?JSON[_0x323a24(0x2701)](_0x201c05[_0x323a24(0x25c)]['message']):_0x201c05[_0x323a24(0x147f)]()});});}function _0x2df79c(_0x54d6ee){const _0x5c936e=_0x20384c;_0x4ee9a8[_0x5c936e(0x1a7c)]=[];const _0x3ab3eb=_0x39641b()[_0x5c936e(0x727)](_0x4ee9a8[_0x5c936e(0xdf2)],['ParentId',_0x4ee9a8['disposition']['id']]),_0x3ed67d=_0x4233cc[_0x5c936e(0x1551)]({'skipHide':!![]})[_0x5c936e(0x1386)](_0x3b2fc3[_0x5c936e(0x25cc)](_0x5c936e(0x1d64)))['content'](_0x3b2fc3['instant'](_0x5c936e(0x250b)+(_0x3ab3eb?_0x5c936e(0x13cb):_0x5c936e(0x1089)),{'name':_0x4ee9a8['disposition']['name']}))['ariaLabel'](_0x5c936e(0x35d))['ok'](_0x3b2fc3[_0x5c936e(0x25cc)]('APP.DELETE'))[_0x5c936e(0x696)](_0x3b2fc3['instant']('APP.CANCEL'))['targetEvent'](_0x54d6ee);_0x4233cc[_0x5c936e(0xe27)](_0x3ed67d)['then'](function(){const _0x503b51=_0x5c936e;_0x2c4f7f[_0x503b51(0x1746)][_0x503b51(0x111d)]({'id':_0x4ee9a8[_0x503b51(0x1746)]['id']})['$promise'][_0x503b51(0x1cb0)](function(){const _0x4f5551=_0x503b51;_0x39ec03['success']({'title':_0x3b2fc3[_0x4f5551(0x25cc)](_0x4f5551(0x1f96))}),_0x3c3884(!![]);})[_0x503b51(0x1c4)](function(_0x2f740b){const _0x551d4f=_0x503b51;if(_0x2f740b[_0x551d4f(0x25c)]&&_0x2f740b[_0x551d4f(0x25c)][_0x551d4f(0x1a7c)]&&_0x2f740b[_0x551d4f(0x25c)]['errors'][_0x551d4f(0xfd0)]){_0x4ee9a8[_0x551d4f(0x1a7c)]=_0x2f740b[_0x551d4f(0x25c)][_0x551d4f(0x1a7c)]||[{'message':_0x2f740b['toString'](),'type':_0x551d4f(0xe66)}];for(let _0x1bc182=0x0;_0x1bc182<_0x2f740b[_0x551d4f(0x25c)][_0x551d4f(0x1a7c)]['length'];_0x1bc182++){_0x39ec03[_0x551d4f(0x218e)]({'title':_0x2f740b['data'][_0x551d4f(0x1a7c)][_0x1bc182][_0x551d4f(0x66a)],'msg':_0x2f740b[_0x551d4f(0x25c)]['errors'][_0x1bc182][_0x551d4f(0x155e)]});}}else _0x39ec03[_0x551d4f(0x218e)]({'title':_0x2f740b[_0x551d4f(0x291)]?_0x551d4f(0xeb9)+_0x2f740b['status']+_0x551d4f(0x1657)+_0x2f740b[_0x551d4f(0xc22)]:_0x551d4f(0xe66),'msg':_0x2f740b['data']?JSON[_0x551d4f(0x2701)](_0x2f740b[_0x551d4f(0x25c)][_0x551d4f(0x155e)]):_0x2f740b[_0x551d4f(0x155e)]||_0x2f740b[_0x551d4f(0x147f)]()});});});}function _0x3c3884(_0xd9acc5){_0x4233cc['hide'](_0xd9acc5);}}const _0xe99590=_0x352508;;_0x7a0825[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x1f10),'$state',_0x5537c6(0x417),_0x5537c6(0xcb9),'$document','$timeout',_0x5537c6(0x1ae),'dispositions','userProfile',_0x5537c6(0x2199),_0x5537c6(0x142b),'toasty','Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x7a0825(_0x20f1d6,_0x7b11e3,_0x50386c,_0x58fa5c,_0x545dc8,_0x404a50,_0x2747c5,_0x578268,_0xd982cc,_0x2613a2,_0x84614a,_0x1cc190,_0x2f2117,_0xe27064,_0x52912e,_0x3985a4){const _0x382ffb=_0x5537c6,_0x109742=this;_0x109742[_0x382ffb(0x8a5)]=_0x52912e,_0x109742[_0x382ffb(0x9ca)]=_0x3985a4,_0x109742[_0x382ffb(0xe76)]=_0xe27064['getCurrentUser'](),_0x109742[_0x382ffb(0xdf2)]=_0xd982cc||{'count':0x0,'rows':[]},_0x109742[_0x382ffb(0x44a)]=_0x2613a2,_0x109742['userProfileSection']=_0x84614a&&_0x84614a[_0x382ffb(0x184d)]==0x1?_0x84614a[_0x382ffb(0x2214)][0x0]:null,_0x109742['crudPermissions']=_0xe27064['parseCrudPermissions'](_0x109742[_0x382ffb(0x2199)]?_0x109742[_0x382ffb(0x2199)][_0x382ffb(0x1b1a)]:null),_0x109742[_0x382ffb(0x122a)]=[],_0x109742[_0x382ffb(0x2376)]={'first':_0x382ffb(0x29a0),'second':_0x382ffb(0x26db),'third':_0x382ffb(0xfbe)},_0x109742['query']={'fields':_0x382ffb(0x1f4b),'sort':_0x382ffb(0x282),'MailAccountId':'null','FaxAccountId':_0x382ffb(0xd38),'SmsAccountId':'null','OpenchannelAccountId':_0x382ffb(0xd38),'ChatWebsiteId':_0x382ffb(0xd38),'WhatsappAccountId':_0x382ffb(0xd38),'ListId':'null','limit':0xa,'page':0x1},_0x109742['deleteconfirm']=_0x32d24c,_0x109742['success']=_0x374e1c,_0x109742['getDispositions']=_0xa903df,_0x109742[_0x382ffb(0x932)]=_0x43c85d,_0x109742['deleteDisposition']=_0x913fd4,_0x109742['exportSelectedDispositions']=_0x237c95,_0x109742[_0x382ffb(0x1626)]=_0x43d53f,_0x109742['deselectDispositions']=_0x30a18d,_0x109742[_0x382ffb(0x13ff)]=_0x535062;function _0x43c85d(_0x3768e3,_0x103d2b){const _0x16a77e=_0x382ffb;_0x545dc8[_0x16a77e(0xe27)]({'controller':_0x16a77e(0x201d),'controllerAs':'vm','templateUrl':_0x3d7049,'parent':angular[_0x16a77e(0x1853)](_0x404a50[_0x16a77e(0x1ed9)]),'targetEvent':_0x3768e3,'clickOutsideToClose':!![],'locals':{'disposition':_0x103d2b,'model':null,'license':_0x109742['license'],'setting':_0x109742[_0x16a77e(0x9ca)],'crudPermissions':_0x109742[_0x16a77e(0x1b1a)]}})[_0x16a77e(0x1cb0)](function(_0x1b6399){if(_0x1b6399===!![])_0xa903df();});}function _0x32d24c(_0xb72bfa,_0x52755e){const _0x2e83d3=_0x382ffb,_0x5e66b7=_0x39641b()[_0x2e83d3(0x727)](_0x109742['dispositions']['rows'],[_0x2e83d3(0x55e),_0xb72bfa['id']]),_0x2a495c=_0x545dc8[_0x2e83d3(0x1551)]()['title'](_0x578268[_0x2e83d3(0x25cc)](_0x2e83d3(0x1d64)))[_0x2e83d3(0x862)](_0x578268[_0x2e83d3(0x25cc)](_0x2e83d3(0x250b)+(_0x5e66b7?_0x2e83d3(0x13cb):'DISPOSITION_DELETE_MESSAGE'),{'name':_0xb72bfa[_0x2e83d3(0x16b6)]}))[_0x2e83d3(0x15ad)](_0x2e83d3(0x35d))[_0x2e83d3(0x728)](_0x52755e)['ok']('OK')[_0x2e83d3(0x696)](_0x578268['instant'](_0x2e83d3(0x2768)));_0x545dc8[_0x2e83d3(0xe27)](_0x2a495c)[_0x2e83d3(0x1cb0)](function(){_0x913fd4(_0xb72bfa);});}function _0x374e1c(_0x2eef2e){const _0x11f83a=_0x382ffb;_0x109742[_0x11f83a(0xdf2)]=_0x2eef2e||{'count':0x0,'rows':[]};}function _0xa903df(){const _0x335bab=_0x382ffb;_0x109742[_0x335bab(0xae2)][_0x335bab(0x184b)]=(_0x109742[_0x335bab(0xae2)][_0x335bab(0x1c7b)]-0x1)*_0x109742[_0x335bab(0xae2)][_0x335bab(0x236)],_0xe27064[_0x335bab(0x10fc)]()?_0x109742[_0x335bab(0x2061)]=_0x1cc190[_0x335bab(0x1746)][_0x335bab(0xbf7)](_0x109742[_0x335bab(0xae2)],_0x374e1c)[_0x335bab(0x1d77)]:(_0x109742[_0x335bab(0xae2)]['id']=_0x109742[_0x335bab(0x44a)]['id'],_0x109742[_0x335bab(0xae2)]['section']=_0x335bab(0x5d1),_0x109742[_0x335bab(0x2061)]=_0x1cc190[_0x335bab(0x44a)]['getResources'](_0x109742[_0x335bab(0xae2)],_0x374e1c)['$promise']);}function _0x913fd4(_0x1afcd6){const _0x314815=_0x382ffb;_0x1cc190[_0x314815(0x1746)][_0x314815(0x111d)]({'id':_0x1afcd6['id']})['$promise']['then'](function(){const _0x2b06c3=_0x314815;_0xa903df(),_0x2f2117[_0x2b06c3(0x829)]({'title':_0x578268[_0x2b06c3(0x25cc)](_0x2b06c3(0x1f96))});})[_0x314815(0x1c4)](function(_0x5da27f){const _0x50e63e=_0x314815;if(_0x5da27f[_0x50e63e(0x25c)]&&_0x5da27f[_0x50e63e(0x25c)]['errors']&&_0x5da27f[_0x50e63e(0x25c)][_0x50e63e(0x1a7c)][_0x50e63e(0xfd0)]){_0x109742['errors']=_0x5da27f[_0x50e63e(0x25c)]['errors']||[{'message':_0x5da27f[_0x50e63e(0x147f)](),'type':_0x50e63e(0x2618)}];for(let _0x14b3b5=0x0;_0x14b3b5<_0x5da27f[_0x50e63e(0x25c)][_0x50e63e(0x1a7c)][_0x50e63e(0xfd0)];_0x14b3b5++){_0x2f2117['error']({'title':_0x5da27f['data'][_0x50e63e(0x1a7c)][_0x14b3b5][_0x50e63e(0x66a)],'msg':_0x5da27f[_0x50e63e(0x25c)][_0x50e63e(0x1a7c)][_0x14b3b5][_0x50e63e(0x155e)]});}}else _0x2f2117[_0x50e63e(0x218e)]({'title':_0x5da27f[_0x50e63e(0x291)]?_0x50e63e(0xeb9)+_0x5da27f[_0x50e63e(0x291)]+_0x50e63e(0x1657)+_0x5da27f[_0x50e63e(0xc22)]:_0x50e63e(0x2618),'msg':_0x5da27f[_0x50e63e(0x25c)]?JSON[_0x50e63e(0x2701)](_0x5da27f['data']['message']):_0x5da27f[_0x50e63e(0x155e)]||_0x5da27f[_0x50e63e(0x147f)]()});});}function _0x237c95(){const _0x1620b9=_0x382ffb,_0x3f69ab=angular[_0x1620b9(0x17fe)](_0x109742[_0x1620b9(0x122a)]);return _0x109742[_0x1620b9(0x122a)]=[],_0x3f69ab;}function _0x43d53f(_0x1cc494){const _0xd5f9ef=_0x382ffb,_0x1b1462=_0x545dc8['confirm']()[_0xd5f9ef(0x1386)](_0x578268['instant'](_0xd5f9ef(0x969)))[_0xd5f9ef(0x862)](_0x578268[_0xd5f9ef(0x25cc)](_0xd5f9ef(0xb3c),{'total':_0x109742[_0xd5f9ef(0x122a)][_0xd5f9ef(0xfd0)]}))['ariaLabel'](_0xd5f9ef(0x1e1c))[_0xd5f9ef(0x728)](_0x1cc494)['ok']('OK')[_0xd5f9ef(0x696)](_0x578268[_0xd5f9ef(0x25cc)]('APP.CANCEL'));_0x545dc8[_0xd5f9ef(0xe27)](_0x1b1462)[_0xd5f9ef(0x1cb0)](function(){const _0x3520c1=_0xd5f9ef;_0x109742[_0x3520c1(0x122a)][_0x3520c1(0xf90)](function(_0x4239a4){_0x913fd4(_0x4239a4);}),_0x109742[_0x3520c1(0x122a)]=[];});}function _0x30a18d(){const _0x355c24=_0x382ffb;_0x109742[_0x355c24(0x122a)]=[];}function _0x535062(){const _0x91efa8=_0x382ffb;_0x109742['selectedDispositions']=_0x109742[_0x91efa8(0xdf2)]['rows'];}let _0x3ccbd7=!![],_0x1e27f8=0x1;_0x20f1d6[_0x382ffb(0x614)]('vm.query.filter',function(_0x39c6e9,_0x40e443){const _0x1eba7e=_0x382ffb;_0x3ccbd7?_0x2747c5(function(){_0x3ccbd7=![];}):(!_0x40e443&&(_0x1e27f8=_0x109742['query']['page']),_0x39c6e9!==_0x40e443&&(_0x109742['query'][_0x1eba7e(0x1c7b)]=0x1),!_0x39c6e9&&(_0x109742[_0x1eba7e(0xae2)][_0x1eba7e(0x1c7b)]=_0x1e27f8),_0xa903df());});}const _0x3250e8=_0x7a0825;;_0x417622['$inject']=[_0x5537c6(0xbd6)];function _0x417622(_0x1a8b6d){const _0x160e91=_0x5537c6;_0x1a8b6d[_0x160e91(0x27e0)]('app.tools.dispositions',{'url':_0x160e91(0x2992),'views':{'content@app':{'templateUrl':_0x28a737,'controller':_0x160e91(0x127a)}},'resolve':{'dispositions':['apiResolver',_0x160e91(0x1774),function(_0x1e581d,_0x19795d){const _0x5efd41=_0x160e91;return _0x19795d[_0x5efd41(0x22b6)]('admin')?_0x1e581d[_0x5efd41(0x19a3)]('disposition@get',{'fields':_0x5efd41(0x1f4b),'sort':_0x5efd41(0x282),'MailAccountId':_0x5efd41(0xd38),'FaxAccountId':_0x5efd41(0xd38),'SmsAccountId':_0x5efd41(0xd38),'OpenchannelAccountId':_0x5efd41(0xd38),'ChatWebsiteId':_0x5efd41(0xd38),'WhatsappAccountId':_0x5efd41(0xd38),'ListId':_0x5efd41(0xd38),'limit':0xa,'offset':0x0}):_0x1e581d[_0x5efd41(0x19a3)](_0x5efd41(0x12da),{'id':_0x19795d[_0x5efd41(0x21e8)]()['userProfileId'],'section':_0x5efd41(0x5d1),'fields':_0x5efd41(0x1f4b),'sort':_0x5efd41(0x282),'MailAccountId':_0x5efd41(0xd38),'FaxAccountId':_0x5efd41(0xd38),'SmsAccountId':_0x5efd41(0xd38),'OpenchannelAccountId':_0x5efd41(0xd38),'ChatWebsiteId':_0x5efd41(0xd38),'WhatsappAccountId':'null','ListId':'null','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x160e91(0x1774),function(_0x35ab44,_0x519d1e){const _0x15e716=_0x160e91;return _0x519d1e['hasRole'](_0x15e716(0x1c60))?null:_0x35ab44['resolve'](_0x15e716(0x9ae),{'fields':_0x15e716(0x279),'id':_0x519d1e[_0x15e716(0x21e8)]()[_0x15e716(0x13c1)]});}],'userProfileSection':[_0x160e91(0x1e0b),_0x160e91(0x1774),function(_0x5866e5,_0x5a44d4){const _0x2b0c08=_0x160e91;return _0x5a44d4[_0x2b0c08(0x22b6)](_0x2b0c08(0x1c60))?null:_0x5866e5['resolve'](_0x2b0c08(0x2182),{'fields':_0x2b0c08(0x1f5f),'userProfileId':_0x5a44d4['getCurrentUser']()[_0x2b0c08(0x13c1)],'sectionId':0x3ea});}]},'authenticate':!![],'permissionId':0x3ea,'bodyClass':_0x160e91(0x10f6)});}angular[_0x5537c6(0x9ab)](_0x5537c6(0x8b4),[])[_0x5537c6(0xa60)](_0x417622)[_0x5537c6(0x6e5)](_0x5537c6(0x201d),_0xe99590)[_0x5537c6(0x6e5)](_0x5537c6(0x1dcf),_0x3250e8);;const _0x3715a8=_0x5074a3['p']+_0x5537c6(0xb5e);;const _0x1845ac=_0x5074a3['p']+_0x5537c6(0x1146);;_0xd4a0e8['$inject']=[_0x5537c6(0xcb9),_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0xfd5),_0x5537c6(0x497),_0x5537c6(0x142b),_0x5537c6(0x1774),'license',_0x5537c6(0x9ca),'crudPermissions'];function _0xd4a0e8(_0x40e33f,_0x14efb9,_0x27efd2,_0x3021c6,_0x1a4d9e,_0x1d2575,_0x2cd9ef,_0x46286f,_0x54212c,_0x3eed10){const _0x557f4e=_0x5537c6,_0x366ce3=this;_0x366ce3[_0x557f4e(0xe76)]=_0x2cd9ef['getCurrentUser'](),_0x366ce3['trigger']=angular[_0x557f4e(0x17fe)](_0x1a4d9e),_0x366ce3['triggers']=angular[_0x557f4e(0x17fe)](_0x3021c6),_0x366ce3['setting']=_0x54212c,_0x366ce3[_0x557f4e(0x8a5)]=_0x46286f,_0x366ce3[_0x557f4e(0x1b1a)]=_0x3eed10,_0x366ce3[_0x557f4e(0xd59)]=![],_0x366ce3[_0x557f4e(0x1a7c)]=[];!_0x366ce3['trigger']&&(_0x366ce3[_0x557f4e(0x497)]={'channel':_0x557f4e(0x1fd4)},_0x366ce3[_0x557f4e(0xd59)]=!![]);_0x366ce3[_0x557f4e(0x6be)]=_0x49f307,_0x366ce3[_0x557f4e(0x1cba)]=_0x528bdc,_0x366ce3[_0x557f4e(0x2783)]=_0x5ea697,_0x366ce3['closeDialog']=_0x28b62b;function _0x49f307(){const _0x136ed9=_0x557f4e;_0x366ce3[_0x136ed9(0x1a7c)]=[],_0x1d2575[_0x136ed9(0x497)][_0x136ed9(0x1c3f)](_0x366ce3[_0x136ed9(0x497)])[_0x136ed9(0x1d77)][_0x136ed9(0x1cb0)](function(_0x4c9e52){const _0x5d5f0b=_0x136ed9;_0x366ce3[_0x5d5f0b(0xfd5)][_0x5d5f0b(0xf63)](_0x4c9e52[_0x5d5f0b(0x19b2)]()),_0x27efd2['success']({'title':_0x14efb9[_0x5d5f0b(0x25cc)](_0x5d5f0b(0x1ab0))}),_0x28b62b(_0x366ce3['triggers']);})[_0x136ed9(0x1c4)](function(_0xe0fbb){const _0x35d845=_0x136ed9;if(_0xe0fbb[_0x35d845(0x25c)]&&_0xe0fbb[_0x35d845(0x25c)][_0x35d845(0x1a7c)]&&_0xe0fbb[_0x35d845(0x25c)]['errors'][_0x35d845(0xfd0)]){_0x366ce3[_0x35d845(0x1a7c)]=_0xe0fbb[_0x35d845(0x25c)][_0x35d845(0x1a7c)]||[{'message':_0xe0fbb[_0x35d845(0x147f)](),'type':_0x35d845(0xfa3)}];for(let _0x47466e=0x0;_0x47466e<_0xe0fbb['data'][_0x35d845(0x1a7c)][_0x35d845(0xfd0)];_0x47466e+=0x1){_0x27efd2['error']({'title':_0xe0fbb['data'][_0x35d845(0x1a7c)][_0x47466e]['type'],'msg':_0xe0fbb[_0x35d845(0x25c)][_0x35d845(0x1a7c)][_0x47466e][_0x35d845(0x155e)]});}}else _0x27efd2[_0x35d845(0x218e)]({'title':_0xe0fbb['status']?'API:'+_0xe0fbb[_0x35d845(0x291)]+'\x20-\x20'+_0xe0fbb[_0x35d845(0xc22)]:_0x35d845(0xfa3),'msg':_0xe0fbb[_0x35d845(0x25c)]?JSON[_0x35d845(0x2701)](_0xe0fbb[_0x35d845(0x25c)][_0x35d845(0x155e)]):_0xe0fbb[_0x35d845(0x147f)]()});});}function _0x528bdc(){const _0x3a2970=_0x557f4e;_0x366ce3['errors']=[],_0x1d2575['trigger'][_0x3a2970(0x687)]({'id':_0x366ce3[_0x3a2970(0x497)]['id']},_0x366ce3[_0x3a2970(0x497)])[_0x3a2970(0x1d77)][_0x3a2970(0x1cb0)](function(){const _0x40cdcf=_0x3a2970;_0x366ce3[_0x40cdcf(0xfd5)]=_0x39641b()[_0x40cdcf(0x1de2)](_0x366ce3['triggers'],function(_0x1673a3){const _0x22a93c=_0x40cdcf;if(_0x1673a3['id']===_0x366ce3[_0x22a93c(0x497)]['id'])return _0x366ce3[_0x22a93c(0x497)];else return _0x1673a3;}),_0x27efd2[_0x40cdcf(0x829)]({'title':_0x14efb9[_0x40cdcf(0x25cc)](_0x40cdcf(0x1b37))}),_0x28b62b(_0x366ce3[_0x40cdcf(0xfd5)]);})[_0x3a2970(0x1c4)](function(_0x33adb4){const _0x3f120a=_0x3a2970;if(_0x33adb4['data']&&_0x33adb4['data'][_0x3f120a(0x1a7c)]&&_0x33adb4[_0x3f120a(0x25c)][_0x3f120a(0x1a7c)][_0x3f120a(0xfd0)]){_0x366ce3[_0x3f120a(0x1a7c)]=_0x33adb4[_0x3f120a(0x25c)][_0x3f120a(0x1a7c)]||[{'message':_0x33adb4['toString'](),'type':_0x3f120a(0x1311)}];for(let _0x41af19=0x0;_0x41af19<_0x33adb4['data'][_0x3f120a(0x1a7c)][_0x3f120a(0xfd0)];_0x41af19++){_0x27efd2[_0x3f120a(0x218e)]({'title':_0x33adb4[_0x3f120a(0x25c)][_0x3f120a(0x1a7c)][_0x41af19][_0x3f120a(0x66a)],'msg':_0x33adb4['data'][_0x3f120a(0x1a7c)][_0x41af19][_0x3f120a(0x155e)]});}}else _0x27efd2['error']({'title':_0x33adb4[_0x3f120a(0x291)]?_0x3f120a(0xeb9)+_0x33adb4[_0x3f120a(0x291)]+'\x20-\x20'+_0x33adb4[_0x3f120a(0xc22)]:_0x3f120a(0x1311),'msg':_0x33adb4[_0x3f120a(0x25c)]?JSON[_0x3f120a(0x2701)](_0x33adb4[_0x3f120a(0x25c)][_0x3f120a(0x155e)]):_0x33adb4[_0x3f120a(0x147f)]()});});}function _0x5ea697(_0x306017){const _0x7955cd=_0x557f4e;_0x366ce3[_0x7955cd(0x1a7c)]=[];const _0x2dd21b=_0x40e33f[_0x7955cd(0x1551)]({'skipHide':!![]})['title'](_0x14efb9[_0x7955cd(0x25cc)](_0x7955cd(0x5ad)))[_0x7955cd(0x862)](_0x14efb9['instant'](_0x7955cd(0x666),{'name':_0x366ce3[_0x7955cd(0x497)]['name']}))['ariaLabel'](_0x7955cd(0x936))['ok'](_0x14efb9[_0x7955cd(0x25cc)](_0x7955cd(0x2966)))['cancel'](_0x14efb9[_0x7955cd(0x25cc)](_0x7955cd(0x2768)))['targetEvent'](_0x306017);_0x40e33f['show'](_0x2dd21b)['then'](function(){const _0x21990f=_0x7955cd;_0x1d2575['trigger'][_0x21990f(0x111d)]({'id':_0x366ce3[_0x21990f(0x497)]['id']})[_0x21990f(0x1d77)]['then'](function(){const _0x53d1a0=_0x21990f;_0x366ce3[_0x53d1a0(0xfd5)]=_0x39641b()[_0x53d1a0(0x1c99)](_0x366ce3[_0x53d1a0(0xfd5)],function(_0xb5bc54){const _0x4dcf2f=_0x53d1a0;return _0xb5bc54['id']!==_0x366ce3[_0x4dcf2f(0x497)]['id'];}),_0x27efd2['success']({'title':_0x14efb9['instant'](_0x53d1a0(0xf29))}),_0x28b62b(_0x366ce3[_0x53d1a0(0xfd5)]);})[_0x21990f(0x1c4)](function(_0x155f70){const _0x676a01=_0x21990f;if(_0x155f70[_0x676a01(0x25c)]&&_0x155f70[_0x676a01(0x25c)]['errors']&&_0x155f70[_0x676a01(0x25c)][_0x676a01(0x1a7c)][_0x676a01(0xfd0)]){_0x366ce3['errors']=_0x155f70['data'][_0x676a01(0x1a7c)]||[{'message':_0x155f70[_0x676a01(0x147f)](),'type':_0x676a01(0x367)}];for(let _0x147509=0x0;_0x147509<_0x155f70[_0x676a01(0x25c)][_0x676a01(0x1a7c)][_0x676a01(0xfd0)];_0x147509++){_0x27efd2[_0x676a01(0x218e)]({'title':_0x155f70[_0x676a01(0x25c)][_0x676a01(0x1a7c)][_0x147509][_0x676a01(0x66a)],'msg':_0x155f70[_0x676a01(0x25c)]['errors'][_0x147509][_0x676a01(0x155e)]});}}else _0x27efd2[_0x676a01(0x218e)]({'title':_0x155f70[_0x676a01(0x291)]?'API:'+_0x155f70[_0x676a01(0x291)]+_0x676a01(0x1657)+_0x155f70['statusText']:_0x676a01(0x367),'msg':_0x155f70['data']?JSON[_0x676a01(0x2701)](_0x155f70[_0x676a01(0x25c)][_0x676a01(0x155e)]):_0x155f70['message']||_0x155f70[_0x676a01(0x147f)]()});});},function(){});}function _0x28b62b(_0x56c656){_0x40e33f['hide'](_0x56c656);}}const _0x368d5c=_0xd4a0e8;;const _0x53fab7=_0x5074a3['p']+_0x5537c6(0x1dd6);;_0x4a4bf6[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1ae),'$timeout',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),'api',_0x5537c6(0x1774)];function _0x4a4bf6(_0x6a41f2,_0x1fd159,_0x30a635,_0x2b6a64,_0x38788a,_0x1dfebd,_0x13c12f,_0x3aed54){const _0x552050=_0x5537c6,_0xda3dc6=this;_0xda3dc6['currentUser']=_0x3aed54[_0x552050(0x21e8)](),_0xda3dc6[_0x552050(0x497)]={},_0xda3dc6[_0x552050(0x93c)]={'count':0x0,'rows':[]},_0xda3dc6['selectedTriggerActions']=[],_0xda3dc6[_0x552050(0xae2)]={'fields':_0x552050(0x868),'limit':0xa,'page':0x1},_0xda3dc6['integrationTypes']={'zendesk':_0x552050(0x333),'salesforce':_0x552050(0x2558),'sugarcrm':_0x552050(0x1f4),'freshdesk':_0x552050(0x3f2),'desk':'Desk','zoho':_0x552050(0x1350),'vtiger':'vTiger','dynamics365':_0x552050(0x1615),'servicenow':'ServiceNow','freshsales':'Freshsales'},_0xda3dc6['motionBarOptions']={0x0:_0x552050(0x22c3),0x1:'CTI\x20URL',0x2:'Windows\x20App'},_0xda3dc6[_0x552050(0x1a34)]=_0x4c4a85,_0xda3dc6[_0x552050(0x829)]=_0x454094,_0xda3dc6[_0x552050(0x1a96)]=_0x4e2f77,_0xda3dc6['createOrEditTriggerAction']=_0x3d482c,_0xda3dc6[_0x552050(0x275d)]=_0x3c7fb8,_0xda3dc6['deleteConfirm']=_0x3357b8,_0xda3dc6['deleteSelectedTriggerActions']=_0x3a8410;function _0x4c4a85(_0x5492ec,_0x55d7a6){const _0x576d3d=_0x552050;_0xda3dc6[_0x576d3d(0x497)]=_0x5492ec,_0xda3dc6[_0x576d3d(0x1b1a)]=typeof _0x55d7a6!==_0x576d3d(0x16b5)?_0x55d7a6:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xda3dc6[_0x576d3d(0xae2)][_0x576d3d(0x13aa)]=_0xda3dc6['trigger']['id'],_0xda3dc6[_0x576d3d(0xae2)]['id']=_0xda3dc6[_0x576d3d(0x497)]['id'],_0x4e2f77();}function _0x4c087a(){const _0x2e0d3e=_0x552050;_0x3aed54['isAdmin']()?_0x13c12f[_0x2e0d3e(0x22f2)]['get']({'fields':_0x2e0d3e(0x43c),'sort':_0x2e0d3e(0x16b6),'nolimit':'true'})[_0x2e0d3e(0x1d77)][_0x2e0d3e(0x1cb0)](function(_0x58ed1c){const _0xcc180f=_0x2e0d3e;_0xda3dc6[_0xcc180f(0x1046)]=_0x58ed1c[_0xcc180f(0x2214)]||[];})[_0x2e0d3e(0x1c4)](function(_0x34f331){const _0x47981b=_0x2e0d3e;_0x1dfebd['error']({'title':_0x34f331[_0x47981b(0x291)]?_0x47981b(0xeb9)+_0x34f331['status']+'\x20-\x20'+_0x34f331[_0x47981b(0xc22)]:'SYSTEM:GET_LISTS','msg':_0x34f331[_0x47981b(0x25c)]?JSON[_0x47981b(0x2701)](_0x34f331[_0x47981b(0x25c)]):_0x34f331[_0x47981b(0x147f)]()});}):_0x13c12f[_0x2e0d3e(0x22f2)][_0x2e0d3e(0xbf7)]({'fields':_0x2e0d3e(0x43c),'sort':_0x2e0d3e(0x16b6),'nolimit':_0x2e0d3e(0x44d)})['$promise'][_0x2e0d3e(0x1cb0)](function(_0x449a8d){const _0x498fb9=_0x2e0d3e;_0xda3dc6[_0x498fb9(0x1046)]=_0x449a8d['rows']||[];})[_0x2e0d3e(0x1cb0)](function(){const _0x533f3c=_0x2e0d3e;return _0x13c12f[_0x533f3c(0x2199)][_0x533f3c(0xbf7)]({'userProfileId':_0xda3dc6[_0x533f3c(0xe76)][_0x533f3c(0x13c1)],'sectionId':0x12d})['$promise'];})[_0x2e0d3e(0x1cb0)](function(_0xf8bd12){const _0x1b99cf=_0x2e0d3e,_0x6c1605=_0xf8bd12&&_0xf8bd12[_0x1b99cf(0x2214)]?_0xf8bd12['rows'][0x0]:null;if(!_0x6c1605){const _0x23e60b=[],_0x1298f4=[];_0xda3dc6[_0x1b99cf(0x93c)][_0x1b99cf(0x2214)][_0x1b99cf(0xf90)](function(_0x4da54e){const _0x4a4e8c=_0x1b99cf;if(_0x4da54e[_0x4a4e8c(0x269a)]==='contactManager'){const _0x3a9f51=_0x39641b()[_0x4a4e8c(0x13b4)](_0xda3dc6[_0x4a4e8c(0x1046)],{'id':Number(_0x4da54e['data1'])});_0x1298f4['push'](_0x3a9f51);}});for(let _0x5a2bae=0x0;_0x5a2bae<_0xda3dc6[_0x1b99cf(0x1046)]['length'];_0x5a2bae++){const _0x119f2f=_0x39641b()[_0x1b99cf(0x727)](_0x1298f4,{'id':_0xda3dc6[_0x1b99cf(0x1046)][_0x5a2bae]['id']});_0x119f2f&&(_0xda3dc6[_0x1b99cf(0x1046)][_0x5a2bae]['canSelect']=![],_0x23e60b[_0x1b99cf(0x2785)](_0xda3dc6['lists'][_0x5a2bae]));}_0xda3dc6[_0x1b99cf(0x1046)]=_0x23e60b;}else{if(!_0x6c1605[_0x1b99cf(0x12f4)])return _0x13c12f[_0x1b99cf(0x1198)][_0x1b99cf(0xbf7)]({'sectionId':_0x6c1605['id']})[_0x1b99cf(0x1d77)][_0x1b99cf(0x1cb0)](function(_0x2d062e){const _0x455749=_0x1b99cf,_0x52bb8b=_0x39641b()[_0x455749(0x1de2)](_0x2d062e[_0x455749(0x2214)],function(_0x1c4b19){const _0x8519d6=_0x455749;return _0x39641b()[_0x8519d6(0x13b4)](_0xda3dc6[_0x8519d6(0x1046)],{'id':_0x1c4b19[_0x8519d6(0x2982)]});});let _0x13abdd=null;_0x13abdd=[],_0xda3dc6[_0x455749(0x93c)][_0x455749(0x2214)]['forEach'](function(_0x32a289){const _0x9e0412=_0x455749;if(_0x32a289['action']===_0x9e0412(0xd68)){const _0x59f5d9=_0x39641b()[_0x9e0412(0x13b4)](_0xda3dc6['lists'],{'id':Number(_0x32a289[_0x9e0412(0x200a)])});_0x13abdd['push'](_0x59f5d9);}}),!_0x39641b()[_0x455749(0xce9)](_0x13abdd)&&_0x13abdd[_0x455749(0xf90)](function(_0x3eddc4){const _0x36cdb7=_0x455749;if(!_0x39641b()[_0x36cdb7(0x727)](_0x52bb8b,['id',_0x3eddc4['id']])){const _0xc98d76=_0x39641b()['find'](_0xda3dc6[_0x36cdb7(0x1046)],{'id':_0x3eddc4['id']});_0xc98d76[_0x36cdb7(0x15da)]=![],_0x52bb8b[_0x36cdb7(0x2785)](_0xc98d76);}}),_0xda3dc6['lists']=_0x52bb8b;});}})['catch'](function(_0x11af66){const _0x58b4d8=_0x2e0d3e;_0x1dfebd[_0x58b4d8(0x218e)]({'title':_0x11af66[_0x58b4d8(0x291)]?_0x58b4d8(0xeb9)+_0x11af66[_0x58b4d8(0x291)]+_0x58b4d8(0x1657)+_0x11af66['statusText']:_0x58b4d8(0x113c),'msg':_0x11af66[_0x58b4d8(0x25c)]?JSON[_0x58b4d8(0x2701)](_0x11af66['data']):_0x11af66[_0x58b4d8(0x147f)]()});});}function _0x2bdbc5(){const _0x9e41d8=_0x552050,_0x1e5060=_0x39641b()(_0xda3dc6['triggerActions'][_0x9e41d8(0x2214)])[_0x9e41d8(0x1de2)](function(_0x1439a5){const _0x50a19f=_0x9e41d8;return _0x1439a5[_0x50a19f(0x269a)]==='integration'?_0x1439a5[_0x50a19f(0x200a)]:undefined;})[_0x9e41d8(0xc67)]()[_0x9e41d8(0x14bc)]()[_0x9e41d8(0x327)]();_0x1e5060[_0x9e41d8(0xf90)](function(_0x253f47){const _0x970be9=_0x9e41d8,_0x20e901=_0x253f47+_0x970be9(0x170d);if(!_0xda3dc6[_0x20e901]){const _0x2f1af1=_0x970be9(0x68b)+_0x39641b()[_0x970be9(0xa75)](_0x253f47)+_0x970be9(0x1649);_0x13c12f[_0x2f1af1][_0x970be9(0xbf7)]({'fields':_0x970be9(0x43c),'sort':'id','nolimit':_0x970be9(0x44d)})['$promise'][_0x970be9(0x1cb0)](function(_0x324a24){const _0x41f85c=_0x970be9;_0xda3dc6[_0x20e901]=_0x324a24[_0x41f85c(0x2214)]||[];})['catch'](function(_0x1c36f1){const _0x4f5b3a=_0x970be9;_0x1dfebd['error']({'title':_0x1c36f1[_0x4f5b3a(0x291)]?_0x4f5b3a(0xeb9)+_0x1c36f1[_0x4f5b3a(0x291)]+_0x4f5b3a(0x1657)+_0x1c36f1[_0x4f5b3a(0xc22)]:_0x4f5b3a(0x21df)+_0x20e901[_0x4f5b3a(0x2335)]()+_0x4f5b3a(0x21e),'msg':_0x1c36f1[_0x4f5b3a(0x25c)]?JSON[_0x4f5b3a(0x2701)](_0x1c36f1[_0x4f5b3a(0x25c)]):_0x1c36f1[_0x4f5b3a(0x147f)]()});});}});}function _0x31aa75(){const _0x31f430=_0x552050;_0x3aed54[_0x31f430(0x10fc)]()?_0x13c12f[_0x31f430(0x1c21)][_0x31f430(0xbf7)]({'fields':_0x31f430(0x43c),'sort':_0x31f430(0x16b6),'nolimit':_0x31f430(0x44d)})[_0x31f430(0x1d77)][_0x31f430(0x1cb0)](function(_0x5dea8d){const _0x5100ec=_0x31f430;_0xda3dc6[_0x5100ec(0x2981)]=_0x5dea8d[_0x5100ec(0x2214)]||[];})['catch'](function(_0x23bd8b){const _0x1419ea=_0x31f430;_0x1dfebd[_0x1419ea(0x218e)]({'title':_0x23bd8b[_0x1419ea(0x291)]?_0x1419ea(0xeb9)+_0x23bd8b[_0x1419ea(0x291)]+_0x1419ea(0x1657)+_0x23bd8b['statusText']:_0x1419ea(0x214c),'msg':_0x23bd8b[_0x1419ea(0x25c)]?JSON[_0x1419ea(0x2701)](_0x23bd8b[_0x1419ea(0x25c)]):_0x23bd8b[_0x1419ea(0x147f)]()});}):_0x13c12f['jscriptyProject'][_0x31f430(0xbf7)]({'fields':_0x31f430(0x43c),'sort':_0x31f430(0x16b6),'nolimit':_0x31f430(0x44d)})[_0x31f430(0x1d77)]['then'](function(_0x27374e){const _0x57ad5f=_0x31f430;_0xda3dc6[_0x57ad5f(0x2981)]=_0x27374e['rows']||[];})['then'](function(){const _0x6e12d4=_0x31f430;return _0x13c12f[_0x6e12d4(0x2199)][_0x6e12d4(0xbf7)]({'userProfileId':_0xda3dc6['currentUser'][_0x6e12d4(0x13c1)],'sectionId':0x6a5})['$promise'];})['then'](function(_0x265d77){const _0x1d279a=_0x31f430,_0x19cfcd=_0x265d77&&_0x265d77[_0x1d279a(0x2214)]?_0x265d77[_0x1d279a(0x2214)][0x0]:null;if(!_0x19cfcd){const _0x385705=[],_0x326541=[];_0xda3dc6[_0x1d279a(0x93c)][_0x1d279a(0x2214)][_0x1d279a(0xf90)](function(_0x4955ef){const _0x413890=_0x1d279a;if(_0x4955ef['action']===_0x413890(0x1e98)){const _0x5756de=_0x39641b()[_0x413890(0x13b4)](_0xda3dc6['projects'],{'id':Number(_0x4955ef['data1'])});_0x326541['push'](_0x5756de);}});for(let _0x5c424d=0x0;_0x5c424d<_0xda3dc6[_0x1d279a(0x2981)]['length'];_0x5c424d++){const _0x274949=_0x39641b()[_0x1d279a(0x727)](_0x326541,{'id':_0xda3dc6[_0x1d279a(0x2981)][_0x5c424d]['id']});_0x274949&&(_0xda3dc6['projects'][_0x5c424d][_0x1d279a(0x15da)]=![],_0x385705[_0x1d279a(0x2785)](_0xda3dc6[_0x1d279a(0x2981)][_0x5c424d]));}_0xda3dc6[_0x1d279a(0x2981)]=_0x385705;}else{if(!_0x19cfcd['autoAssociation'])return _0x13c12f[_0x1d279a(0x1198)]['get']({'sectionId':_0x19cfcd['id']})[_0x1d279a(0x1d77)][_0x1d279a(0x1cb0)](function(_0x2737b6){const _0x4d2b47=_0x1d279a,_0x43d076=_0x39641b()[_0x4d2b47(0x1de2)](_0x2737b6[_0x4d2b47(0x2214)],function(_0xd76ae4){const _0xf0952a=_0x4d2b47;return _0x39641b()[_0xf0952a(0x13b4)](_0xda3dc6[_0xf0952a(0x2981)],{'id':_0xd76ae4[_0xf0952a(0x2982)]});});let _0x40e210=null;_0x40e210=[],_0xda3dc6[_0x4d2b47(0x93c)][_0x4d2b47(0x2214)][_0x4d2b47(0xf90)](function(_0x2b148d){const _0x163ba1=_0x4d2b47;if(_0x2b148d['action']==='jscripty'){const _0x1895e4=_0x39641b()[_0x163ba1(0x13b4)](_0xda3dc6[_0x163ba1(0x2981)],{'id':Number(_0x2b148d[_0x163ba1(0x200a)])});_0x40e210[_0x163ba1(0x2785)](_0x1895e4);}}),!_0x39641b()['isEmpty'](_0x40e210)&&_0x40e210[_0x4d2b47(0xf90)](function(_0x11cadc){const _0xe8ceb2=_0x4d2b47;if(!_0x39641b()['some'](_0x43d076,['id',_0x11cadc['id']])){const _0x52d8d2=_0x39641b()[_0xe8ceb2(0x13b4)](_0xda3dc6[_0xe8ceb2(0x2981)],{'id':_0x11cadc['id']});_0x52d8d2['canSelect']=![],_0x43d076['push'](_0x52d8d2);}}),_0xda3dc6[_0x4d2b47(0x2981)]=_0x43d076;});}})['catch'](function(_0x52d19a){const _0x5b61c7=_0x31f430;_0x1dfebd[_0x5b61c7(0x218e)]({'title':_0x52d19a[_0x5b61c7(0x291)]?'API:'+_0x52d19a[_0x5b61c7(0x291)]+_0x5b61c7(0x1657)+_0x52d19a['statusText']:_0x5b61c7(0x2101),'msg':_0x52d19a[_0x5b61c7(0x25c)]?JSON[_0x5b61c7(0x2701)](_0x52d19a[_0x5b61c7(0x25c)]):_0x52d19a[_0x5b61c7(0x147f)]()});});}function _0x3bc811(){const _0x5cbdc6=_0x552050;_0x3aed54[_0x5cbdc6(0x10fc)]()?_0x13c12f[_0x5cbdc6(0x2330)]['get']({'fields':_0x5cbdc6(0x43c),'sort':'id','nolimit':_0x5cbdc6(0x44d)})[_0x5cbdc6(0x1d77)][_0x5cbdc6(0x1cb0)](function(_0x7d8411){const _0x4c5810=_0x5cbdc6;_0xda3dc6[_0x4c5810(0x9b4)]=_0x7d8411[_0x4c5810(0x2214)]||[];})[_0x5cbdc6(0x1c4)](function(_0x42ed2a){const _0x4a4ad0=_0x5cbdc6;_0x1dfebd['error']({'title':_0x42ed2a[_0x4a4ad0(0x291)]?'API:'+_0x42ed2a[_0x4a4ad0(0x291)]+_0x4a4ad0(0x1657)+_0x42ed2a[_0x4a4ad0(0xc22)]:_0x4a4ad0(0x1362),'msg':_0x42ed2a[_0x4a4ad0(0x25c)]?JSON[_0x4a4ad0(0x2701)](_0x42ed2a['data']):_0x42ed2a['toString']()});}):_0x13c12f[_0x5cbdc6(0x2330)][_0x5cbdc6(0xbf7)]({'fields':_0x5cbdc6(0x43c),'sort':'id','nolimit':_0x5cbdc6(0x44d)})[_0x5cbdc6(0x1d77)][_0x5cbdc6(0x1cb0)](function(_0x1b4859){const _0x144b1a=_0x5cbdc6;_0xda3dc6[_0x144b1a(0x9b4)]=_0x1b4859[_0x144b1a(0x2214)]||[];})[_0x5cbdc6(0x1cb0)](function(){const _0x2b7786=_0x5cbdc6;return _0x13c12f[_0x2b7786(0x2199)][_0x2b7786(0xbf7)]({'userProfileId':_0xda3dc6[_0x2b7786(0xe76)]['userProfileId'],'sectionId':0x3f1})[_0x2b7786(0x1d77)];})[_0x5cbdc6(0x1cb0)](function(_0xd59a9a){const _0x13de71=_0x5cbdc6,_0x533ee1=_0xd59a9a&&_0xd59a9a[_0x13de71(0x2214)]?_0xd59a9a[_0x13de71(0x2214)][0x0]:null;if(!_0x533ee1){const _0x389942=[],_0x5014db=[];_0xda3dc6[_0x13de71(0x93c)]['rows'][_0x13de71(0xf90)](function(_0x3eac42){const _0x14a485=_0x13de71;if(_0x39641b()['includes'](['motionbar',_0x14a485(0x64f)],_0x3eac42[_0x14a485(0x269a)])){const _0x112bef=_0x39641b()[_0x14a485(0x13b4)](_0xda3dc6[_0x14a485(0x9b4)],{'id':Number(_0x3eac42[_0x14a485(0xdde)])});_0x5014db[_0x14a485(0x2785)](_0x112bef);}});for(let _0x415708=0x0;_0x415708<_0xda3dc6[_0x13de71(0x9b4)]['length'];_0x415708++){const _0x3cc4b0=_0x39641b()[_0x13de71(0x727)](_0x5014db,{'id':_0xda3dc6[_0x13de71(0x9b4)][_0x415708]['id']});_0x3cc4b0&&(_0xda3dc6[_0x13de71(0x9b4)][_0x415708][_0x13de71(0x15da)]=![],_0x389942[_0x13de71(0x2785)](_0xda3dc6['templates'][_0x415708]));}_0xda3dc6[_0x13de71(0x9b4)]=_0x389942;}else{if(!_0x533ee1[_0x13de71(0x12f4)])return _0x13c12f[_0x13de71(0x1198)][_0x13de71(0xbf7)]({'sectionId':_0x533ee1['id']})[_0x13de71(0x1d77)][_0x13de71(0x1cb0)](function(_0x39e07a){const _0x3fc7a1=_0x13de71,_0x389855=_0x39641b()['map'](_0x39e07a[_0x3fc7a1(0x2214)],function(_0x36d2ba){const _0x5da75f=_0x3fc7a1;return _0x39641b()['find'](_0xda3dc6[_0x5da75f(0x9b4)],{'id':_0x36d2ba[_0x5da75f(0x2982)]});});let _0xed7653=null;_0xed7653=[],_0xda3dc6[_0x3fc7a1(0x93c)][_0x3fc7a1(0x2214)][_0x3fc7a1(0xf90)](function(_0x2aeaae){const _0x221c03=_0x3fc7a1;if(_0x39641b()[_0x221c03(0x250a)](['motionbar','browser'],_0x2aeaae[_0x221c03(0x269a)])){const _0x1a51e3=_0x39641b()['find'](_0xda3dc6[_0x221c03(0x9b4)],{'id':Number(_0x2aeaae[_0x221c03(0xdde)])});_0xed7653[_0x221c03(0x2785)](_0x1a51e3);}}),!_0x39641b()[_0x3fc7a1(0xce9)](_0xed7653)&&_0xed7653[_0x3fc7a1(0xf90)](function(_0x5a4d88){const _0x477ac8=_0x3fc7a1;if(!_0x39641b()[_0x477ac8(0x727)](_0x389855,['id',_0x5a4d88['id']])){const _0x465734=_0x39641b()['find'](_0xda3dc6[_0x477ac8(0x9b4)],{'id':_0x5a4d88['id']});_0x465734[_0x477ac8(0x15da)]=![],_0x389855[_0x477ac8(0x2785)](_0x465734);}}),_0xda3dc6[_0x3fc7a1(0x9b4)]=_0x389855;});}})[_0x5cbdc6(0x1c4)](function(_0x30daca){const _0x13a70f=_0x5cbdc6;_0x1dfebd['error']({'title':_0x30daca[_0x13a70f(0x291)]?'API:'+_0x30daca['status']+'\x20-\x20'+_0x30daca[_0x13a70f(0xc22)]:_0x13a70f(0x1362),'msg':_0x30daca[_0x13a70f(0x25c)]?JSON[_0x13a70f(0x2701)](_0x30daca[_0x13a70f(0x25c)]):_0x30daca[_0x13a70f(0x147f)]()});});}function _0x494fbd(){const _0x39582f=_0x552050;if(_0x39641b()['some'](_0xda3dc6[_0x39582f(0x93c)][_0x39582f(0x2214)],[_0x39582f(0x269a),_0x39582f(0xd68)])){if(!_0xda3dc6[_0x39582f(0x1046)])_0x4c087a();}_0x39641b()[_0x39582f(0x727)](_0xda3dc6['triggerActions'][_0x39582f(0x2214)],['action',_0x39582f(0x502)])&&_0x2bdbc5();if(_0x39641b()[_0x39582f(0x727)](_0xda3dc6[_0x39582f(0x93c)][_0x39582f(0x2214)],function(_0x23e0ad){const _0xcc8eba=_0x39582f;return _0x39641b()[_0xcc8eba(0x250a)]([_0xcc8eba(0x250e),'browser'],_0x23e0ad[_0xcc8eba(0x269a)]);})){if(!_0xda3dc6[_0x39582f(0x9b4)])_0x3bc811();}if(_0x39641b()['some'](_0xda3dc6[_0x39582f(0x93c)][_0x39582f(0x2214)],['action',_0x39582f(0x1e98)])){if(!_0xda3dc6[_0x39582f(0x2981)])_0x31aa75();}}function _0x454094(_0x4a66c6){const _0x45e06e=_0x552050;_0xda3dc6[_0x45e06e(0x93c)]=_0x4a66c6||{'count':0x0,'rows':[]},_0x494fbd();}function _0x4e2f77(){const _0x46f20d=_0x552050;_0xda3dc6[_0x46f20d(0xae2)][_0x46f20d(0x184b)]=(_0xda3dc6['query'][_0x46f20d(0x1c7b)]-0x1)*_0xda3dc6[_0x46f20d(0xae2)][_0x46f20d(0x236)],_0xda3dc6['promise']=_0x13c12f[_0x46f20d(0x497)]['getActions'](_0xda3dc6[_0x46f20d(0xae2)],_0x454094)['$promise'];}function _0x3d482c(_0x321fee,_0x32f3e6){const _0x1e24c2=_0x552050;_0x2b6a64[_0x1e24c2(0xe27)]({'controller':_0x1e24c2(0x1fad),'controllerAs':'vm','templateUrl':_0x53fab7,'parent':angular[_0x1e24c2(0x1853)](_0x38788a['body']),'targetEvent':_0x321fee,'clickOutsideToClose':!![],'locals':{'trigger':_0xda3dc6[_0x1e24c2(0x497)],'action':_0x32f3e6,'actions':_0xda3dc6['triggerActions']['rows'],'license':null,'setting':null,'crudPermissions':_0xda3dc6[_0x1e24c2(0x1b1a)]}})[_0x1e24c2(0x1cb0)](function(_0x1525b2){const _0x565b73=_0x1e24c2;_0x1525b2&&(_0xda3dc6[_0x565b73(0x93c)]={'count':_0x1525b2['length'],'rows':_0x1525b2},_0x494fbd());});}function _0x3357b8(_0x4d49ee,_0x12776a){const _0x25f0ec=_0x552050,_0x719f69=_0x2b6a64[_0x25f0ec(0x1551)]()[_0x25f0ec(0x1386)](_0x1fd159[_0x25f0ec(0x25cc)](_0x25f0ec(0x1f20)))[_0x25f0ec(0x15ad)](_0x25f0ec(0x17de))[_0x25f0ec(0x728)](_0x12776a)['ok']('OK')[_0x25f0ec(0x696)](_0x1fd159[_0x25f0ec(0x25cc)]('APP.CANCEL'));_0x2b6a64[_0x25f0ec(0xe27)](_0x719f69)[_0x25f0ec(0x1cb0)](function(){_0x335788(_0x4d49ee,!![]);});}function _0x335788(_0x1ea538,_0x42dd5b){const _0x293a0b=_0x552050;_0x13c12f[_0x293a0b(0x269a)][_0x293a0b(0x111d)]({'id':_0x1ea538['id']})[_0x293a0b(0x1d77)][_0x293a0b(0x1cb0)](function(){const _0x4a4ac2=_0x293a0b;_0x4e2f77(),_0x42dd5b&&_0x1dfebd[_0x4a4ac2(0x829)]({'title':_0x1fd159[_0x4a4ac2(0x25cc)](_0x4a4ac2(0x1406))});})[_0x293a0b(0x1c4)](function(_0x4dd59d){const _0x35a334=_0x293a0b;if(_0x4dd59d['data']&&_0x4dd59d[_0x35a334(0x25c)]['errors']&&_0x4dd59d[_0x35a334(0x25c)][_0x35a334(0x1a7c)][_0x35a334(0xfd0)]){_0xda3dc6[_0x35a334(0x1a7c)]=_0x4dd59d['data']['errors']||[{'message':_0x4dd59d[_0x35a334(0x147f)](),'type':_0x35a334(0x15e7)}];for(let _0x1cd743=0x0;_0x1cd743<_0x4dd59d['data'][_0x35a334(0x1a7c)]['length'];_0x1cd743++){_0x1dfebd['error']({'title':_0x4dd59d['data'][_0x35a334(0x1a7c)][_0x1cd743][_0x35a334(0x66a)],'msg':_0x4dd59d[_0x35a334(0x25c)][_0x35a334(0x1a7c)][_0x1cd743][_0x35a334(0x155e)]});}}else _0x1dfebd[_0x35a334(0x218e)]({'title':_0x4dd59d[_0x35a334(0x291)]?_0x35a334(0xeb9)+_0x4dd59d[_0x35a334(0x291)]+_0x35a334(0x1657)+_0x4dd59d['statusText']:'SYSTEM:GETtrigger','msg':_0x4dd59d[_0x35a334(0x25c)]?JSON[_0x35a334(0x2701)](_0x4dd59d['data'][_0x35a334(0x155e)]):_0x4dd59d[_0x35a334(0x155e)]||_0x4dd59d['toString']()});});}function _0x3c7fb8(){const _0x68804d=_0x552050,_0xddaa73=angular[_0x68804d(0x17fe)](_0xda3dc6[_0x68804d(0x2163)]);return _0xda3dc6[_0x68804d(0x2163)]=[],_0xddaa73;}function _0x3a8410(_0x453b1c){const _0x57d6ef=_0x552050,_0x58db34=_0x2b6a64[_0x57d6ef(0x1551)]()[_0x57d6ef(0x1386)](_0x1fd159['instant'](_0x57d6ef(0xfe8)))[_0x57d6ef(0x862)](_0x1fd159[_0x57d6ef(0x25cc)]('TOOLS.NOTIFICATIONS.ACTIONS_DELETE_MESSAGE',{'total':_0xda3dc6[_0x57d6ef(0x2163)][_0x57d6ef(0xfd0)]}))[_0x57d6ef(0x15ad)](_0x57d6ef(0xfd8))[_0x57d6ef(0x728)](_0x453b1c)['ok']('OK')[_0x57d6ef(0x696)](_0x1fd159[_0x57d6ef(0x25cc)](_0x57d6ef(0x2768)));_0x2b6a64[_0x57d6ef(0xe27)](_0x58db34)[_0x57d6ef(0x1cb0)](function(){const _0x571623=_0x57d6ef;_0xda3dc6[_0x571623(0x2163)][_0x571623(0xf90)](function(_0x2fe6e6){_0x335788(_0x2fe6e6);}),_0xda3dc6[_0x571623(0x2163)]=[],_0x1dfebd[_0x571623(0x829)]({'title':_0x1fd159[_0x571623(0x25cc)]('TOOLS.NOTIFICATIONS.ACTIONS_DELETED_SUCCESS_TITLE')});});}let _0x2a8a78=!![],_0x589adc=0x1;_0x6a41f2['$watch'](_0x552050(0xeb6),function(_0x2bcea6,_0x4d0643){const _0x2ef88b=_0x552050;_0x2a8a78?_0x30a635(function(){_0x2a8a78=![];}):(!_0x4d0643&&(_0x589adc=_0xda3dc6[_0x2ef88b(0xae2)][_0x2ef88b(0x1c7b)]),_0x2bcea6!==_0x4d0643&&(_0xda3dc6[_0x2ef88b(0xae2)][_0x2ef88b(0x1c7b)]=0x1),!_0x2bcea6&&(_0xda3dc6[_0x2ef88b(0xae2)][_0x2ef88b(0x1c7b)]=_0x589adc),_0x4e2f77());});}const _0x58920d=_0x4a4bf6;;_0x2ab34c[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0xcb9),'$translate','toasty',_0x5537c6(0x1ae1),_0x5537c6(0x269a),_0x5537c6(0x497),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),'crudPermissions'];function _0x2ab34c(_0x55c95c,_0x6a3b95,_0x4d817f,_0x2984ff,_0x211b42,_0xe62084,_0x4240e8,_0x1af61f,_0x15c714,_0x568699,_0x2d11f6,_0x1c4e65){const _0x20f3e5=_0x5537c6,_0x41163b=this;_0x41163b[_0x20f3e5(0xe76)]=_0x15c714['getCurrentUser'](),_0x41163b[_0x20f3e5(0x269a)]=angular[_0x20f3e5(0x17fe)](_0xe62084),_0x41163b['actions']=angular[_0x20f3e5(0x17fe)](_0x211b42),_0x41163b['setting']=_0x2d11f6,_0x41163b[_0x20f3e5(0x8a5)]=_0x568699,_0x41163b['crudPermissions']=_0x1c4e65,_0x41163b['newAction']=![],_0x41163b[_0x20f3e5(0x1a7c)]=[],_0x41163b[_0x20f3e5(0x497)]=angular[_0x20f3e5(0x17fe)](_0x4240e8);!_0x41163b[_0x20f3e5(0x269a)]&&(_0x41163b['action']={},_0x41163b['newAction']=!![]);_0x41163b[_0x20f3e5(0x269a)][_0x20f3e5(0x13aa)]=_0x55c95c[_0x20f3e5(0x1dfe)]['id']||undefined,_0x41163b[_0x20f3e5(0xbc4)]=[_0x20f3e5(0x1340),_0x20f3e5(0x1ce6),'fax'],_0x41163b[_0x20f3e5(0xa63)]=_0x303661,_0x41163b[_0x20f3e5(0x8d4)]=_0x21e286,_0x41163b['deleteAction']=_0x35e85e,_0x41163b[_0x20f3e5(0x1106)]=_0x5d530b,_0x41163b[_0x20f3e5(0x258e)]=_0x2b82c6,_0x41163b[_0x20f3e5(0x22f9)]=_0xaedc8b,_0x41163b[_0x20f3e5(0x1892)]=_0x4557e6,_0x41163b[_0x20f3e5(0x2158)]=_0x7607ad,_0x41163b[_0x20f3e5(0x1667)]=_0x3d46c6,_0x41163b[_0x20f3e5(0x579)]=_0x4ef58d,_0x41163b[_0x20f3e5(0x1193)]=_0x7c997,_0x41163b[_0x20f3e5(0x14de)]=_0x4f7f0c,_0x41163b[_0x20f3e5(0xda0)]=_0x3a3f63;function _0x5d530b(){const _0x1941f6=_0x20f3e5;_0x15c714['hasModulePermissions'](_0x1941f6(0x1294))[_0x1941f6(0x1cb0)](function(_0x5327b1){const _0x5c1495=_0x1941f6;_0x41163b[_0x5c1495(0x1bd1)]=_0x5327b1;})[_0x1941f6(0x1c4)](function(_0x4f6352){const _0x416150=_0x1941f6;_0x2984ff[_0x416150(0x218e)]({'title':_0x4f6352[_0x416150(0x291)]?_0x416150(0xeb9)+_0x4f6352[_0x416150(0x291)]+_0x416150(0x1657)+_0x4f6352[_0x416150(0xc22)]:_0x416150(0x1000),'msg':_0x4f6352['data']?JSON[_0x416150(0x2701)](_0x4f6352[_0x416150(0x25c)]):_0x4f6352[_0x416150(0x147f)]()});});if(_0x41163b[_0x1941f6(0x269a)][_0x1941f6(0x269a)])_0x8f329e();}function _0x2b82c6(){const _0x21aed8=_0x20f3e5,_0x30070f=[0x515,0x516,0x517,0x519,0x51a,0x51b,0x51c,0x51d,0x51e,0x51f];_0x15c714[_0x21aed8(0x2845)](_0x30070f)[_0x21aed8(0x1cb0)](function(_0x50afe2){const _0x3c9419=_0x21aed8;_0x41163b['hasSectionPermissions']=_0x39641b()[_0x3c9419(0x9c1)](_0x41163b[_0x3c9419(0x1f97)],_0x50afe2);})[_0x21aed8(0x1c4)](function(_0x4866b0){const _0x4f9f43=_0x21aed8;_0x2984ff['error']({'title':_0x4866b0[_0x4f9f43(0x291)]?_0x4f9f43(0xeb9)+_0x4866b0[_0x4f9f43(0x291)]+_0x4f9f43(0x1657)+_0x4866b0['statusText']:_0x4f9f43(0x25d1),'msg':_0x4866b0['data']?JSON[_0x4f9f43(0x2701)](_0x4866b0['data']):_0x4866b0[_0x4f9f43(0x147f)]()});});}function _0xaedc8b(){const _0x2afded=_0x20f3e5;if(!_0x41163b[_0x2afded(0x26ad)])_0x130447();}function _0x3da3a2(){const _0x2f86f0=_0x20f3e5;_0x15c714[_0x2f86f0(0x10fc)]()?_0x1af61f[_0x2f86f0(0x22f2)][_0x2f86f0(0xbf7)]({'fields':'id,name','sort':_0x2f86f0(0x16b6),'nolimit':_0x2f86f0(0x44d)})['$promise'][_0x2f86f0(0x1cb0)](function(_0x778d0a){const _0x5109bf=_0x2f86f0;_0x41163b[_0x5109bf(0x1046)]=_0x778d0a['rows']||[];})[_0x2f86f0(0x1c4)](function(_0x368139){const _0xe7482f=_0x2f86f0;_0x2984ff['error']({'title':_0x368139[_0xe7482f(0x291)]?_0xe7482f(0xeb9)+_0x368139[_0xe7482f(0x291)]+_0xe7482f(0x1657)+_0x368139[_0xe7482f(0xc22)]:'SYSTEM:GET_LISTS','msg':_0x368139['data']?JSON[_0xe7482f(0x2701)](_0x368139['data']):_0x368139[_0xe7482f(0x147f)]()});}):_0x1af61f[_0x2f86f0(0x22f2)]['get']({'fields':'id,name','sort':'name','nolimit':_0x2f86f0(0x44d)})[_0x2f86f0(0x1d77)][_0x2f86f0(0x1cb0)](function(_0x1dd5f0){_0x41163b['lists']=_0x1dd5f0['rows']||[];})[_0x2f86f0(0x1cb0)](function(){const _0x5a4dcc=_0x2f86f0;return _0x1af61f[_0x5a4dcc(0x2199)][_0x5a4dcc(0xbf7)]({'userProfileId':_0x41163b['currentUser']['userProfileId'],'sectionId':0x12d})['$promise'];})[_0x2f86f0(0x1cb0)](function(_0x58fa15){const _0x1a9611=_0x2f86f0,_0x396cb4=_0x58fa15&&_0x58fa15[_0x1a9611(0x2214)]?_0x58fa15[_0x1a9611(0x2214)][0x0]:null;if(!_0x396cb4){const _0x1402e8=[],_0x5c587d=[];_0x41163b[_0x1a9611(0x93c)][_0x1a9611(0x2214)][_0x1a9611(0xf90)](function(_0x3de282){const _0x10da78=_0x1a9611;if(_0x3de282[_0x10da78(0x269a)]===_0x10da78(0xd68)){const _0x279602=_0x39641b()[_0x10da78(0x13b4)](_0x41163b[_0x10da78(0x1046)],{'id':Number(_0x3de282['data1'])});_0x5c587d[_0x10da78(0x2785)](_0x279602);}});for(let _0x26e3a4=0x0;_0x26e3a4<_0x41163b[_0x1a9611(0x1046)][_0x1a9611(0xfd0)];_0x26e3a4++){const _0x5a2dc4=_0x39641b()[_0x1a9611(0x727)](_0x5c587d,{'id':_0x41163b[_0x1a9611(0x1046)][_0x26e3a4]['id']});_0x5a2dc4&&(_0x41163b[_0x1a9611(0x1046)][_0x26e3a4][_0x1a9611(0x15da)]=![],_0x1402e8[_0x1a9611(0x2785)](_0x41163b[_0x1a9611(0x1046)][_0x26e3a4]));}_0x41163b[_0x1a9611(0x1046)]=_0x1402e8;}else{if(!_0x396cb4[_0x1a9611(0x12f4)])return _0x1af61f[_0x1a9611(0x1198)][_0x1a9611(0xbf7)]({'sectionId':_0x396cb4['id']})[_0x1a9611(0x1d77)][_0x1a9611(0x1cb0)](function(_0x224e29){const _0x5206a=_0x1a9611,_0x34e056=_0x39641b()[_0x5206a(0x1de2)](_0x224e29[_0x5206a(0x2214)],function(_0x4d1414){const _0x3ceb63=_0x5206a;return _0x39641b()[_0x3ceb63(0x13b4)](_0x41163b['lists'],{'id':_0x4d1414[_0x3ceb63(0x2982)]});});let _0x793943=null;_0x793943=[],_0x41163b[_0x5206a(0x93c)][_0x5206a(0x2214)]['forEach'](function(_0x279812){const _0xecc712=_0x5206a;if(_0x279812[_0xecc712(0x269a)]==='contactManager'){const _0x6d55bc=_0x39641b()['find'](_0x41163b[_0xecc712(0x1046)],{'id':Number(_0x279812[_0xecc712(0x200a)])});_0x793943[_0xecc712(0x2785)](_0x6d55bc);}}),!_0x39641b()[_0x5206a(0xce9)](_0x793943)&&_0x793943[_0x5206a(0xf90)](function(_0x2c37a4){const _0x3739f4=_0x5206a;if(!_0x39641b()[_0x3739f4(0x727)](_0x34e056,['id',_0x2c37a4['id']])){const _0x276c67=_0x39641b()[_0x3739f4(0x13b4)](_0x41163b['lists'],{'id':_0x2c37a4['id']});_0x276c67[_0x3739f4(0x15da)]=![],_0x34e056[_0x3739f4(0x2785)](_0x276c67);}}),_0x41163b[_0x5206a(0x1046)]=_0x34e056;});}})['catch'](function(_0x3561b0){const _0x1e7731=_0x2f86f0;_0x2984ff[_0x1e7731(0x218e)]({'title':_0x3561b0[_0x1e7731(0x291)]?_0x1e7731(0xeb9)+_0x3561b0[_0x1e7731(0x291)]+_0x1e7731(0x1657)+_0x3561b0[_0x1e7731(0xc22)]:_0x1e7731(0x113c),'msg':_0x3561b0[_0x1e7731(0x25c)]?JSON[_0x1e7731(0x2701)](_0x3561b0[_0x1e7731(0x25c)]):_0x3561b0[_0x1e7731(0x147f)]()});});}function _0x3f5d2e(){const _0x2fbabb=_0x20f3e5;_0x1af61f[_0x2fbabb(0xbe7)][_0x2fbabb(0x1e57)]({})[_0x2fbabb(0x1d77)][_0x2fbabb(0x1cb0)](function(_0xb1999c){const _0x4f9182=_0x2fbabb;_0x41163b[_0x4f9182(0x13c0)]=[],_0x41163b['customFields']=[];const _0x2b750b=_0x39641b()[_0x4f9182(0x27aa)](_0xb1999c[_0x4f9182(0x19b2)]());for(let _0x4281ee=0x0;_0x4281ee<_0x2b750b['length'];_0x4281ee++){if(_0x39641b()['includes'](_0x41163b[_0x4f9182(0xbc4)],_0x2b750b[_0x4281ee][_0x4f9182(0x34f)]))_0x41163b[_0x4f9182(0x13c0)][_0x4f9182(0x2785)](_0x2b750b[_0x4281ee]);else{if(_0x39641b()[_0x4f9182(0x1f2c)](_0x2b750b[_0x4281ee][_0x4f9182(0x34f)],_0x4f9182(0x1e4b))){if(_0x2b750b[_0x4281ee][_0x4f9182(0x197c)][_0x4f9182(0x66a)]==='text')_0x41163b[_0x4f9182(0x2242)]['push'](_0x2b750b[_0x4281ee]);}}}})['catch'](function(_0x55474f){const _0x2811a3=_0x2fbabb;_0x2984ff[_0x2811a3(0x218e)]({'title':_0x55474f[_0x2811a3(0x291)]?_0x2811a3(0xeb9)+_0x55474f[_0x2811a3(0x291)]+_0x2811a3(0x1657)+_0x55474f[_0x2811a3(0xc22)]:_0x2811a3(0x2272),'msg':_0x55474f[_0x2811a3(0x25c)]?JSON[_0x2811a3(0x2701)](_0x55474f[_0x2811a3(0x25c)]):_0x55474f[_0x2811a3(0x147f)]()});});}function _0x130447(){const _0x3a800f=_0x20f3e5;_0x1af61f[_0x3a800f(0x22f2)][_0x3a800f(0x178f)]({'id':_0x41163b[_0x3a800f(0x269a)][_0x3a800f(0x200a)],'ListId':_0x41163b['action'][_0x3a800f(0x200a)]})[_0x3a800f(0x1d77)][_0x3a800f(0x1cb0)](function(_0x596149){const _0x25ed8b=_0x3a800f;_0x41163b[_0x25ed8b(0xc2a)]=_0x39641b()[_0x25ed8b(0x1c99)](_0x596149[_0x25ed8b(0x2214)],[_0x25ed8b(0x66a),'text']),_0x41163b[_0x25ed8b(0xc2a)]['forEach'](function(_0x1ad966){_0x1ad966['columnName']='cf_'+_0x1ad966['id'];});})[_0x3a800f(0x1c4)](function(_0x50ce69){const _0x434275=_0x3a800f;_0x2984ff[_0x434275(0x218e)]({'title':_0x50ce69[_0x434275(0x291)]?_0x434275(0xeb9)+_0x50ce69[_0x434275(0x291)]+'\x20-\x20'+_0x50ce69[_0x434275(0xc22)]:'SYSTEM:GET_LIST_CUSTOM_FIELDS','msg':_0x50ce69[_0x434275(0x25c)]?JSON[_0x434275(0x2701)](_0x50ce69['data']):_0x50ce69[_0x434275(0x147f)]()});});}function _0x5be7dc(){const _0x580115=_0x20f3e5;_0x15c714[_0x580115(0x10fc)]()?_0x1af61f[_0x580115(0x1c21)][_0x580115(0xbf7)]({'fields':_0x580115(0x43c),'sort':_0x580115(0x16b6),'nolimit':_0x580115(0x44d)})[_0x580115(0x1d77)][_0x580115(0x1cb0)](function(_0x48a42b){const _0x14c6c2=_0x580115;_0x41163b[_0x14c6c2(0x2981)]=_0x48a42b[_0x14c6c2(0x2214)]||[];})['catch'](function(_0x5a9da1){const _0x24f613=_0x580115;_0x2984ff[_0x24f613(0x218e)]({'title':_0x5a9da1[_0x24f613(0x291)]?_0x24f613(0xeb9)+_0x5a9da1['status']+_0x24f613(0x1657)+_0x5a9da1[_0x24f613(0xc22)]:_0x24f613(0x214c),'msg':_0x5a9da1[_0x24f613(0x25c)]?JSON[_0x24f613(0x2701)](_0x5a9da1[_0x24f613(0x25c)]):_0x5a9da1[_0x24f613(0x147f)]()});}):_0x1af61f['jscriptyProject'][_0x580115(0xbf7)]({'fields':_0x580115(0x43c),'sort':'name','nolimit':'true'})[_0x580115(0x1d77)][_0x580115(0x1cb0)](function(_0x34f798){const _0x208701=_0x580115;_0x41163b['projects']=_0x34f798[_0x208701(0x2214)]||[];})[_0x580115(0x1cb0)](function(){const _0x3c6b58=_0x580115;return _0x1af61f[_0x3c6b58(0x2199)][_0x3c6b58(0xbf7)]({'userProfileId':_0x41163b[_0x3c6b58(0xe76)][_0x3c6b58(0x13c1)],'sectionId':0x6a5})['$promise'];})['then'](function(_0x16b274){const _0x393435=_0x580115,_0x554ee1=_0x16b274&&_0x16b274[_0x393435(0x2214)]?_0x16b274[_0x393435(0x2214)][0x0]:null;if(!_0x554ee1){const _0x4edcb3=[],_0x7a867b=[];_0x41163b[_0x393435(0x93c)][_0x393435(0x2214)][_0x393435(0xf90)](function(_0x1970c7){const _0x365a86=_0x393435;if(_0x1970c7[_0x365a86(0x269a)]==='jscripty'){const _0xcdef94=_0x39641b()[_0x365a86(0x13b4)](_0x41163b['projects'],{'id':Number(_0x1970c7[_0x365a86(0x200a)])});_0x7a867b[_0x365a86(0x2785)](_0xcdef94);}});for(let _0x1ac655=0x0;_0x1ac655<_0x41163b[_0x393435(0x2981)][_0x393435(0xfd0)];_0x1ac655++){const _0x1d7662=_0x39641b()[_0x393435(0x727)](_0x7a867b,{'id':_0x41163b[_0x393435(0x2981)][_0x1ac655]['id']});_0x1d7662&&(_0x41163b[_0x393435(0x2981)][_0x1ac655][_0x393435(0x15da)]=![],_0x4edcb3['push'](_0x41163b[_0x393435(0x2981)][_0x1ac655]));}_0x41163b['projects']=_0x4edcb3;}else{if(!_0x554ee1[_0x393435(0x12f4)])return _0x1af61f['userProfileResource']['get']({'sectionId':_0x554ee1['id']})[_0x393435(0x1d77)][_0x393435(0x1cb0)](function(_0x2b0873){const _0x3b9efc=_0x393435,_0x20763f=_0x39641b()['map'](_0x2b0873['rows'],function(_0x713a3d){const _0xa675ef=a0_0x5cbd;return _0x39641b()[_0xa675ef(0x13b4)](_0x41163b[_0xa675ef(0x2981)],{'id':_0x713a3d['resourceId']});});let _0x561ed8=null;_0x561ed8=[],_0x41163b[_0x3b9efc(0x93c)][_0x3b9efc(0x2214)][_0x3b9efc(0xf90)](function(_0x512317){const _0x2a00f0=_0x3b9efc;if(_0x512317[_0x2a00f0(0x269a)]===_0x2a00f0(0x1e98)){const _0x5ab598=_0x39641b()[_0x2a00f0(0x13b4)](_0x41163b[_0x2a00f0(0x2981)],{'id':Number(_0x512317[_0x2a00f0(0x200a)])});_0x561ed8['push'](_0x5ab598);}}),!_0x39641b()[_0x3b9efc(0xce9)](_0x561ed8)&&_0x561ed8[_0x3b9efc(0xf90)](function(_0x48ea25){const _0x3db6bf=_0x3b9efc;if(!_0x39641b()['some'](_0x20763f,['id',_0x48ea25['id']])){const _0x508ad4=_0x39641b()['find'](_0x41163b[_0x3db6bf(0x2981)],{'id':_0x48ea25['id']});_0x508ad4[_0x3db6bf(0x15da)]=![],_0x20763f[_0x3db6bf(0x2785)](_0x508ad4);}}),_0x41163b[_0x3b9efc(0x2981)]=_0x20763f;});}})[_0x580115(0x1c4)](function(_0x54ab9c){const _0x1660b7=_0x580115;_0x2984ff[_0x1660b7(0x218e)]({'title':_0x54ab9c['status']?_0x1660b7(0xeb9)+_0x54ab9c[_0x1660b7(0x291)]+_0x1660b7(0x1657)+_0x54ab9c[_0x1660b7(0xc22)]:_0x1660b7(0x2101),'msg':_0x54ab9c[_0x1660b7(0x25c)]?JSON[_0x1660b7(0x2701)](_0x54ab9c[_0x1660b7(0x25c)]):_0x54ab9c[_0x1660b7(0x147f)]()});});}function _0x50120f(){const _0x3206dd=_0x20f3e5;_0x15c714['isAdmin']()?_0x1af61f[_0x3206dd(0x2330)]['get']({'fields':'id,name','sort':'id','nolimit':_0x3206dd(0x44d)})[_0x3206dd(0x1d77)][_0x3206dd(0x1cb0)](function(_0x134284){const _0x2d0381=_0x3206dd;_0x41163b['templates']=_0x134284[_0x2d0381(0x2214)]||[];})[_0x3206dd(0x1c4)](function(_0x44fdfc){const _0x4da081=_0x3206dd;_0x2984ff[_0x4da081(0x218e)]({'title':_0x44fdfc[_0x4da081(0x291)]?'API:'+_0x44fdfc[_0x4da081(0x291)]+_0x4da081(0x1657)+_0x44fdfc['statusText']:_0x4da081(0x1362),'msg':_0x44fdfc[_0x4da081(0x25c)]?JSON[_0x4da081(0x2701)](_0x44fdfc[_0x4da081(0x25c)]):_0x44fdfc[_0x4da081(0x147f)]()});}):_0x1af61f[_0x3206dd(0x2330)][_0x3206dd(0xbf7)]({'fields':_0x3206dd(0x43c),'sort':'id','nolimit':'true'})['$promise'][_0x3206dd(0x1cb0)](function(_0xb24cd1){const _0xed9be8=_0x3206dd;_0x41163b['templates']=_0xb24cd1[_0xed9be8(0x2214)]||[];})['then'](function(){const _0x3c524e=_0x3206dd;return _0x1af61f[_0x3c524e(0x2199)][_0x3c524e(0xbf7)]({'userProfileId':_0x41163b['currentUser'][_0x3c524e(0x13c1)],'sectionId':0x3f1})[_0x3c524e(0x1d77)];})[_0x3206dd(0x1cb0)](function(_0x1ad63a){const _0x132c27=_0x3206dd,_0x104e20=_0x1ad63a&&_0x1ad63a[_0x132c27(0x2214)]?_0x1ad63a[_0x132c27(0x2214)][0x0]:null;if(!_0x104e20){const _0x1e6653=[],_0x6ec40e=[];_0x41163b[_0x132c27(0x93c)][_0x132c27(0x2214)][_0x132c27(0xf90)](function(_0x71b88b){const _0x396f62=_0x132c27;if(_0x39641b()[_0x396f62(0x250a)](['motionbar','browser'],_0x71b88b['action'])){const _0x23f678=_0x39641b()[_0x396f62(0x13b4)](_0x41163b[_0x396f62(0x9b4)],{'id':Number(_0x71b88b[_0x396f62(0xdde)])});_0x6ec40e['push'](_0x23f678);}});for(let _0x13b5d2=0x0;_0x13b5d2<_0x41163b[_0x132c27(0x9b4)][_0x132c27(0xfd0)];_0x13b5d2++){const _0x17ed12=_0x39641b()['some'](_0x6ec40e,{'id':_0x41163b[_0x132c27(0x9b4)][_0x13b5d2]['id']});_0x17ed12&&(_0x41163b[_0x132c27(0x9b4)][_0x13b5d2][_0x132c27(0x15da)]=![],_0x1e6653[_0x132c27(0x2785)](_0x41163b[_0x132c27(0x9b4)][_0x13b5d2]));}_0x41163b[_0x132c27(0x9b4)]=_0x1e6653;}else{if(!_0x104e20[_0x132c27(0x12f4)])return _0x1af61f[_0x132c27(0x1198)][_0x132c27(0xbf7)]({'sectionId':_0x104e20['id']})['$promise']['then'](function(_0x3e2e07){const _0x37f031=_0x132c27,_0x5d034e=_0x39641b()[_0x37f031(0x1de2)](_0x3e2e07[_0x37f031(0x2214)],function(_0x1d506d){const _0x13e684=_0x37f031;return _0x39641b()[_0x13e684(0x13b4)](_0x41163b[_0x13e684(0x9b4)],{'id':_0x1d506d[_0x13e684(0x2982)]});});let _0x5b86d6=null;_0x5b86d6=[],_0x41163b['triggerActions']['rows']['forEach'](function(_0x142136){const _0x130a04=_0x37f031;if(_0x39641b()['includes']([_0x130a04(0x250e),'browser'],_0x142136['action'])){const _0x2da5cf=_0x39641b()['find'](_0x41163b['templates'],{'id':Number(_0x142136[_0x130a04(0xdde)])});_0x5b86d6[_0x130a04(0x2785)](_0x2da5cf);}}),!_0x39641b()[_0x37f031(0xce9)](_0x5b86d6)&&_0x5b86d6[_0x37f031(0xf90)](function(_0x38e50f){const _0x2e8b1f=_0x37f031;if(!_0x39641b()['some'](_0x5d034e,['id',_0x38e50f['id']])){const _0x2c5535=_0x39641b()[_0x2e8b1f(0x13b4)](_0x41163b[_0x2e8b1f(0x9b4)],{'id':_0x38e50f['id']});_0x2c5535[_0x2e8b1f(0x15da)]=![],_0x5d034e[_0x2e8b1f(0x2785)](_0x2c5535);}}),_0x41163b[_0x37f031(0x9b4)]=_0x5d034e;});}})[_0x3206dd(0x1c4)](function(_0x5b39c4){const _0x3351d4=_0x3206dd;_0x2984ff[_0x3351d4(0x218e)]({'title':_0x5b39c4[_0x3351d4(0x291)]?_0x3351d4(0xeb9)+_0x5b39c4[_0x3351d4(0x291)]+_0x3351d4(0x1657)+_0x5b39c4['statusText']:_0x3351d4(0x1362),'msg':_0x5b39c4[_0x3351d4(0x25c)]?JSON[_0x3351d4(0x2701)](_0x5b39c4['data']):_0x5b39c4[_0x3351d4(0x147f)]()});});}function _0x49ca9a(){const _0x4e85a5=_0x20f3e5;switch(_0x41163b[_0x4e85a5(0x269a)]['data1']){case'zendesk':return _0x41163b[_0x4e85a5(0x1f97)][0x515];case _0x4e85a5(0x236a):return _0x41163b['hasSectionPermissions'][0x516];case _0x4e85a5(0x1121):return _0x41163b[_0x4e85a5(0x1f97)][0x519];case _0x4e85a5(0x1ed1):return _0x41163b[_0x4e85a5(0x1f97)][0x517];case _0x4e85a5(0x25e5):return _0x41163b['hasSectionPermissions'][0x51a];case _0x4e85a5(0x1284):return _0x41163b['hasSectionPermissions'][0x51b];case _0x4e85a5(0x10a2):return _0x41163b[_0x4e85a5(0x1f97)][0x51c];case _0x4e85a5(0x1c54):return _0x41163b[_0x4e85a5(0x1f97)][0x51d];case _0x4e85a5(0x67b):return _0x41163b[_0x4e85a5(0x1f97)][0x51e];case _0x4e85a5(0x13dd):return _0x41163b[_0x4e85a5(0x1f97)][0x51f];}}function _0x994169(){const _0x4e21af=_0x20f3e5;_0x41163b['action'][_0x4e21af(0x200a)]=undefined,_0x41163b[_0x4e21af(0x269a)][_0x4e21af(0xdde)]=undefined,_0x41163b[_0x4e21af(0x269a)][_0x4e21af(0x810)]=undefined,_0x41163b['action'][_0x4e21af(0x14b1)]=undefined,_0x41163b[_0x4e21af(0x269a)][_0x4e21af(0x2561)]=_0x41163b[_0x4e21af(0x269a)][_0x4e21af(0x269a)]==='urlForward'?0x5:undefined;}function _0x8f329e(){const _0x2d7b7d=_0x20f3e5;switch(_0x41163b[_0x2d7b7d(0x269a)]['action']){case _0x2d7b7d(0xd68):if(!_0x41163b[_0x2d7b7d(0x1046)])_0x3da3a2();if(!_0x41163b[_0x2d7b7d(0x13c0)])_0x3f5d2e();_0x41163b[_0x2d7b7d(0x269a)][_0x2d7b7d(0x810)]=_0x41163b[_0x2d7b7d(0x269a)]['data3']?_0x41163b[_0x2d7b7d(0x269a)][_0x2d7b7d(0x810)][_0x2d7b7d(0xbe1)](','):[_0x2d7b7d(0x1340)];if(_0x41163b[_0x2d7b7d(0x269a)][_0x2d7b7d(0xdde)]==='1'&&!_0x41163b[_0x2d7b7d(0x269a)][_0x2d7b7d(0x14b1)])_0x41163b[_0x2d7b7d(0x269a)][_0x2d7b7d(0x14b1)]='phone';break;case _0x2d7b7d(0x1e98):if(!_0x41163b[_0x2d7b7d(0x2981)])_0x5be7dc();break;case'urlForward':if(!_0x41163b[_0x2d7b7d(0x269a)]['data5'])_0x41163b[_0x2d7b7d(0x269a)][_0x2d7b7d(0x2561)]=0x5;break;}}function _0x4557e6(){_0x994169(),_0x8f329e();}function _0x7607ad(){const _0x1215cf=_0x20f3e5;_0x41163b[_0x1215cf(0x269a)][_0x1215cf(0xdde)]=undefined,_0x41163b[_0x1215cf(0x269a)][_0x1215cf(0x810)]=undefined,_0x41163b['action'][_0x1215cf(0x7e2)]=_0x41163b[_0x1215cf(0x26ad)]?![]:!_0x49ca9a();const _0xfe7234=_0x1215cf(0x68b)+_0x39641b()[_0x1215cf(0x432)](_0x41163b[_0x1215cf(0x269a)][_0x1215cf(0x200a)])+'Account';_0x1af61f[_0xfe7234][_0x1215cf(0xbf7)]({'fields':_0x1215cf(0x43c),'sort':'id','nolimit':'true'})[_0x1215cf(0x1d77)][_0x1215cf(0x1cb0)](function(_0x203bb6){const _0x1187b7=_0x1215cf;_0x41163b['accounts']=_0x203bb6[_0x1187b7(0x2214)]||[];})[_0x1215cf(0x1c4)](function(_0x1a2101){const _0x51232e=_0x1215cf;_0x2984ff[_0x51232e(0x218e)]({'title':_0x1a2101[_0x51232e(0x291)]?'API:'+_0x1a2101['status']+'\x20-\x20'+_0x1a2101[_0x51232e(0xc22)]:_0x51232e(0x21df)+_0x41163b[_0x51232e(0x269a)]['data1'][_0x51232e(0x2335)]()+_0x51232e(0x21e),'msg':_0x1a2101[_0x51232e(0x25c)]?JSON['stringify'](_0x1a2101[_0x51232e(0x25c)]):_0x1a2101[_0x51232e(0x147f)]()});});}function _0x3d46c6(){_0x130447();}function _0x4ef58d(){const _0x8fece8=_0x20f3e5;if(_0x41163b[_0x8fece8(0x269a)]['data1']==='0'&&!_0x41163b[_0x8fece8(0x9b4)])_0x50120f();}function _0x7c997(){const _0x46f72f=_0x20f3e5;if(_0x41163b[_0x46f72f(0x269a)][_0x46f72f(0xdde)]==='0')_0x41163b[_0x46f72f(0x269a)][_0x46f72f(0x14b1)]=undefined;if(!_0x41163b[_0x46f72f(0x269a)]['data4']&&_0x41163b[_0x46f72f(0x269a)][_0x46f72f(0xdde)]==='1')_0x41163b[_0x46f72f(0x269a)][_0x46f72f(0x14b1)]='phone';}function _0x4f7f0c(){const _0x412df3=_0x20f3e5;_0x41163b[_0x412df3(0x269a)]['data3']=undefined;const _0x4da433='int'+_0x39641b()['capitalize'](_0x41163b[_0x412df3(0x269a)][_0x412df3(0x200a)])+_0x412df3(0x17b2);_0x1af61f[_0x4da433]['get']({'fields':_0x412df3(0x269c),'sort':'id','nolimit':_0x412df3(0x44d)})['$promise'][_0x412df3(0x1cb0)](function(_0x306111){const _0xca0381=_0x412df3;_0x41163b[_0xca0381(0xa06)]=_0x306111['rows']||[];})[_0x412df3(0x1c4)](function(_0x311a20){const _0x8e80e6=_0x412df3;_0x2984ff[_0x8e80e6(0x218e)]({'title':_0x311a20[_0x8e80e6(0x291)]?_0x8e80e6(0xeb9)+_0x311a20[_0x8e80e6(0x291)]+_0x8e80e6(0x1657)+_0x311a20['statusText']:_0x8e80e6(0x21df)+_0x41163b[_0x8e80e6(0x269a)]['data1'][_0x8e80e6(0x2335)]()+'CONFIGURATIONS','msg':_0x311a20[_0x8e80e6(0x25c)]?JSON[_0x8e80e6(0x2701)](_0x311a20[_0x8e80e6(0x25c)]):_0x311a20[_0x8e80e6(0x147f)]()});});}function _0x3bd60a(){const _0x46dc73=_0x20f3e5,_0x1b1a9f=angular[_0x46dc73(0x17fe)](_0x41163b[_0x46dc73(0x269a)]);if(_0x39641b()[_0x46dc73(0x216b)](_0x1b1a9f[_0x46dc73(0x810)]))_0x1b1a9f[_0x46dc73(0x810)]=_0x41163b[_0x46dc73(0x269a)][_0x46dc73(0x810)][_0x46dc73(0x1f66)](',');return _0x1b1a9f;}function _0x303661(){const _0x9e5c58=_0x20f3e5;_0x41163b[_0x9e5c58(0x1a7c)]=[];const _0x406b2e=_0x3bd60a();_0x1af61f['trigger']['addAction']({'id':_0x55c95c[_0x9e5c58(0x1dfe)]['id']},_0x406b2e)[_0x9e5c58(0x1d77)][_0x9e5c58(0x1cb0)](function(_0x313866){const _0x1a6f43=_0x9e5c58;_0x41163b[_0x1a6f43(0x1ae1)][_0x1a6f43(0xf63)](_0x313866['toJSON']()),_0x2984ff[_0x1a6f43(0x829)]({'title':_0x4d817f[_0x1a6f43(0x25cc)]('TOOLS.NOTIFICATIONS.ACTION_CREATED_SUCCESS_TITLE')}),_0x3a3f63(_0x41163b['actions']);})[_0x9e5c58(0x1c4)](function(_0x177e21){const _0xacf8d0=_0x9e5c58;if(_0x177e21[_0xacf8d0(0x25c)]&&_0x177e21[_0xacf8d0(0x25c)]['errors']&&_0x177e21['data']['errors'][_0xacf8d0(0xfd0)]){_0x41163b[_0xacf8d0(0x1a7c)]=_0x177e21[_0xacf8d0(0x25c)][_0xacf8d0(0x1a7c)]||[{'message':_0x177e21[_0xacf8d0(0x147f)](),'type':'api.action.save'}];for(let _0x4b3d0f=0x0;_0x4b3d0f<_0x177e21[_0xacf8d0(0x25c)][_0xacf8d0(0x1a7c)][_0xacf8d0(0xfd0)];_0x4b3d0f+=0x1){_0x2984ff[_0xacf8d0(0x218e)]({'title':_0x177e21[_0xacf8d0(0x25c)][_0xacf8d0(0x1a7c)][_0x4b3d0f][_0xacf8d0(0x66a)],'msg':_0x177e21['data'][_0xacf8d0(0x1a7c)][_0x4b3d0f][_0xacf8d0(0x155e)]});}}else _0x2984ff['error']({'title':_0x177e21[_0xacf8d0(0x291)]?_0xacf8d0(0xeb9)+_0x177e21['status']+_0xacf8d0(0x1657)+_0x177e21['statusText']:'api.action.save','msg':_0x177e21[_0xacf8d0(0x25c)]?JSON[_0xacf8d0(0x2701)](_0x177e21[_0xacf8d0(0x25c)][_0xacf8d0(0x155e)]):_0x177e21['toString']()});});}function _0x21e286(){const _0x3180e9=_0x20f3e5;_0x41163b[_0x3180e9(0x1a7c)]=[];const _0x5110c6=_0x3bd60a();_0x1af61f[_0x3180e9(0x269a)][_0x3180e9(0x687)]({'id':_0x5110c6['id']},_0x5110c6)[_0x3180e9(0x1d77)][_0x3180e9(0x1cb0)](function(){const _0x3b1fd6=_0x3180e9;_0x41163b[_0x3b1fd6(0x1ae1)]=_0x39641b()[_0x3b1fd6(0x1de2)](_0x41163b[_0x3b1fd6(0x1ae1)],function(_0x248ef0){if(_0x248ef0['id']===_0x5110c6['id'])return _0x5110c6;else return _0x248ef0;}),_0x2984ff[_0x3b1fd6(0x829)]({'title':_0x4d817f['instant'](_0x3b1fd6(0x478))}),_0x3a3f63(_0x41163b['actions']);})[_0x3180e9(0x1c4)](function(_0x4d6529){const _0x36cef3=_0x3180e9;if(_0x4d6529[_0x36cef3(0x25c)]&&_0x4d6529[_0x36cef3(0x25c)][_0x36cef3(0x1a7c)]&&_0x4d6529[_0x36cef3(0x25c)][_0x36cef3(0x1a7c)]['length']){_0x41163b['errors']=_0x4d6529[_0x36cef3(0x25c)][_0x36cef3(0x1a7c)]||[{'message':_0x4d6529[_0x36cef3(0x147f)](),'type':_0x36cef3(0x2421)}];for(let _0x4c45ae=0x0;_0x4c45ae<_0x4d6529[_0x36cef3(0x25c)]['errors'][_0x36cef3(0xfd0)];_0x4c45ae++){_0x2984ff[_0x36cef3(0x218e)]({'title':_0x4d6529[_0x36cef3(0x25c)][_0x36cef3(0x1a7c)][_0x4c45ae]['type'],'msg':_0x4d6529[_0x36cef3(0x25c)][_0x36cef3(0x1a7c)][_0x4c45ae][_0x36cef3(0x155e)]});}}else _0x2984ff[_0x36cef3(0x218e)]({'title':_0x4d6529[_0x36cef3(0x291)]?_0x36cef3(0xeb9)+_0x4d6529[_0x36cef3(0x291)]+_0x36cef3(0x1657)+_0x4d6529[_0x36cef3(0xc22)]:'api.action.update','msg':_0x4d6529['data']?JSON['stringify'](_0x4d6529[_0x36cef3(0x25c)][_0x36cef3(0x155e)]):_0x4d6529[_0x36cef3(0x147f)]()});});}function _0x35e85e(_0x3c54d9){const _0x4aa5fd=_0x20f3e5;_0x41163b[_0x4aa5fd(0x1a7c)]=[];const _0x52a37a=_0x6a3b95[_0x4aa5fd(0x1551)]({'skipHide':!![]})[_0x4aa5fd(0x1386)](_0x4d817f['instant'](_0x4aa5fd(0x1f20)))['ariaLabel'](_0x4aa5fd(0x17de))['ok'](_0x4d817f['instant'](_0x4aa5fd(0x2966)))[_0x4aa5fd(0x696)](_0x4d817f[_0x4aa5fd(0x25cc)](_0x4aa5fd(0x2768)))['targetEvent'](_0x3c54d9);_0x6a3b95[_0x4aa5fd(0xe27)](_0x52a37a)[_0x4aa5fd(0x1cb0)](function(){const _0x5bbc5f=_0x4aa5fd;_0x1af61f[_0x5bbc5f(0x269a)]['delete']({'id':_0x41163b['action']['id']})[_0x5bbc5f(0x1d77)]['then'](function(){const _0x1c0b91=_0x5bbc5f;_0x41163b[_0x1c0b91(0x1ae1)]=_0x39641b()[_0x1c0b91(0x1c99)](_0x41163b['actions'],function(_0x301b7f){const _0x4803ac=_0x1c0b91;return _0x301b7f['id']!==_0x41163b[_0x4803ac(0x269a)]['id'];}),_0x2984ff['success']({'title':_0x4d817f[_0x1c0b91(0x25cc)](_0x1c0b91(0x1406))}),_0x3a3f63(_0x41163b[_0x1c0b91(0x1ae1)]);})[_0x5bbc5f(0x1c4)](function(_0x70fce1){const _0x9ff305=_0x5bbc5f;if(_0x70fce1[_0x9ff305(0x25c)]&&_0x70fce1[_0x9ff305(0x25c)][_0x9ff305(0x1a7c)]&&_0x70fce1['data']['errors']['length']){_0x41163b[_0x9ff305(0x1a7c)]=_0x70fce1['data']['errors']||[{'message':_0x70fce1['toString'](),'type':'api.action.delete'}];for(let _0x447bf4=0x0;_0x447bf4<_0x70fce1[_0x9ff305(0x25c)][_0x9ff305(0x1a7c)][_0x9ff305(0xfd0)];_0x447bf4++){_0x2984ff[_0x9ff305(0x218e)]({'title':_0x70fce1[_0x9ff305(0x25c)][_0x9ff305(0x1a7c)][_0x447bf4][_0x9ff305(0x66a)],'msg':_0x70fce1[_0x9ff305(0x25c)][_0x9ff305(0x1a7c)][_0x447bf4]['message']});}}else _0x2984ff[_0x9ff305(0x218e)]({'title':_0x70fce1['status']?_0x9ff305(0xeb9)+_0x70fce1[_0x9ff305(0x291)]+_0x9ff305(0x1657)+_0x70fce1['statusText']:_0x9ff305(0x27d8),'msg':_0x70fce1['data']?JSON[_0x9ff305(0x2701)](_0x70fce1[_0x9ff305(0x25c)][_0x9ff305(0x155e)]):_0x70fce1[_0x9ff305(0x155e)]||_0x70fce1[_0x9ff305(0x147f)]()});});},function(){});}function _0x3a3f63(_0x4e6058){const _0x2c56c2=_0x20f3e5;_0x6a3b95[_0x2c56c2(0x1426)](_0x4e6058);}}const _0x27dbc1=_0x2ab34c;;const _0x5b5e60=_0x5074a3['p']+_0x5537c6(0x1e54);;_0x4350d8[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$q','$translate',_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1774)];function _0x4350d8(_0x50faf9,_0x48f182,_0x383e35,_0x519c44,_0x4de393,_0x52f514,_0x187f6a,_0x5ebaec,_0x30436f){const _0x168e2e=_0x5537c6,_0x3b3817=this;_0x3b3817[_0x168e2e(0xe76)]=_0x30436f[_0x168e2e(0x21e8)](),_0x3b3817[_0x168e2e(0x497)]={},_0x3b3817['triggerAllConditions']={'count':0x0,'rows':[]},_0x3b3817[_0x168e2e(0x9cf)]=[],_0x3b3817[_0x168e2e(0xae2)]={'fields':_0x168e2e(0x13ce),'limit':0xa,'page':0x1},_0x3b3817['fields']={'queue':_0x168e2e(0x2687),'lastevent':'Call_Status','routeId':_0x168e2e(0x15cf),'agent':_0x168e2e(0x30e),'account':_0x168e2e(0x1649),'interaction':_0x168e2e(0x2735),'message':_0x168e2e(0x27df)},_0x3b3817[_0x168e2e(0x507)]={'abandoned':'Abandon','timeout':_0x168e2e(0xbcc),'complete':'Hangup','rejected':'Reject','called':'Ring','connect':_0x168e2e(0x265d),'nosuchnumber':_0x168e2e(0xc40),'busy':_0x168e2e(0x1427),'noanswer':'NoAnswer','congestion':_0x168e2e(0xb7e),'agentreject':_0x168e2e(0x1ae4)},_0x3b3817[_0x168e2e(0x23d4)]={'in':_0x168e2e(0xab4),'out':_0x168e2e(0xf52),'accept':'Accepted','reject':_0x168e2e(0x221f)},_0x3b3817['onInit']=_0x2fef3e,_0x3b3817[_0x168e2e(0x829)]=_0x2f084f,_0x3b3817['getTriggerAllConditions']=_0x295bb7,_0x3b3817[_0x168e2e(0x1d40)]=_0x31442b,_0x3b3817[_0x168e2e(0x10f2)]=_0x5b3f24,_0x3b3817['deleteConfirm']=_0x37a4e4,_0x3b3817['deleteSelectedTriggerAllConditions']=_0x113baf;function _0x2fef3e(_0xb3d7f7,_0x30bc74){const _0x31414e=_0x168e2e;_0x3b3817[_0x31414e(0x497)]=_0xb3d7f7,_0x3b3817['crudPermissions']=typeof _0x30bc74!==_0x31414e(0x16b5)?_0x30bc74:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3b3817['query'][_0x31414e(0x4a5)]=_0x3b3817['trigger']['id'],_0x3b3817[_0x31414e(0xae2)]['id']=_0x3b3817[_0x31414e(0x497)]['id'],_0x295bb7();}function _0x3d2149(){const _0x16dbcc=_0x168e2e,_0x5b4fff=_0x3b3817['trigger'][_0x16dbcc(0x1072)],_0x155b1f=_0x3b3817[_0x16dbcc(0x497)][_0x16dbcc(0x1072)]+_0x3b3817[_0x16dbcc(0x497)][_0x16dbcc(0x1072)]===_0x16dbcc(0x174c)?_0x16dbcc(0x9dd):_0x16dbcc(0x170d),_0x4d6c76=_0x3b3817['trigger'][_0x16dbcc(0x1072)]+(_0x3b3817[_0x16dbcc(0x497)][_0x16dbcc(0x1072)]===_0x16dbcc(0x174c)?_0x16dbcc(0x11aa):_0x16dbcc(0x1649));let _0x24965b;switch(_0x3b3817[_0x16dbcc(0x497)][_0x16dbcc(0x1072)]){case _0x16dbcc(0x174c):_0x24965b=0x1f6;break;case'fax':_0x24965b=0x386;break;case _0x16dbcc(0x2651):_0x24965b=0x25a;break;case _0x16dbcc(0x15e0):_0x24965b=0x322;break;case _0x16dbcc(0x689):_0x24965b=0x2be;break;case _0x16dbcc(0x2476):_0x24965b=0x836;break;}_0x30436f[_0x16dbcc(0x10fc)]()?_0x5ebaec[_0x4d6c76][_0x16dbcc(0xbf7)]({'fields':_0x16dbcc(0x43c),'sort':'id','nolimit':_0x16dbcc(0x44d)})['$promise'][_0x16dbcc(0x1cb0)](function(_0x142e90){const _0x7176ee=_0x16dbcc;_0x3b3817[_0x155b1f]=_0x142e90[_0x7176ee(0x2214)]||[];})[_0x16dbcc(0x1c4)](function(_0x311ac8){const _0x4e30bf=_0x16dbcc;_0x187f6a[_0x4e30bf(0x218e)]({'title':_0x311ac8[_0x4e30bf(0x291)]?_0x4e30bf(0xeb9)+_0x311ac8['status']+_0x4e30bf(0x1657)+_0x311ac8[_0x4e30bf(0xc22)]:'SYSTEM:GET_'+_0x5b4fff[_0x4e30bf(0x2335)]()+_0x5b4fff===_0x4e30bf(0x174c)?_0x4e30bf(0x202a):_0x4e30bf(0x21e),'msg':_0x311ac8['data']?JSON[_0x4e30bf(0x2701)](_0x311ac8['data']):_0x311ac8['toString']()});}):_0x5ebaec[_0x4d6c76][_0x16dbcc(0xbf7)]({'fields':'id,name','sort':'id','nolimit':_0x16dbcc(0x44d)})[_0x16dbcc(0x1d77)][_0x16dbcc(0x1cb0)](function(_0x4e300a){const _0x4a4f71=_0x16dbcc;_0x3b3817[_0x155b1f]=_0x4e300a[_0x4a4f71(0x2214)]||[];})[_0x16dbcc(0x1cb0)](function(){const _0x54e72d=_0x16dbcc;return _0x5ebaec[_0x54e72d(0x2199)][_0x54e72d(0xbf7)]({'userProfileId':_0x3b3817[_0x54e72d(0xe76)][_0x54e72d(0x13c1)],'sectionId':_0x24965b})[_0x54e72d(0x1d77)];})[_0x16dbcc(0x1cb0)](function(_0x283b12){const _0x371bc1=_0x16dbcc,_0x20c613=_0x283b12&&_0x283b12[_0x371bc1(0x2214)]?_0x283b12[_0x371bc1(0x2214)][0x0]:null;if(!_0x20c613){const _0xd8c64f=[],_0x18ac72=[];_0x3b3817[_0x371bc1(0x13af)][_0x371bc1(0x2214)][_0x371bc1(0xf90)](function(_0x2a3516){const _0x4fb31a=_0x371bc1;if(_0x2a3516[_0x4fb31a(0x2198)]==='account'){const _0xcf6fc4=_0x39641b()[_0x4fb31a(0x13b4)](_0x3b3817[_0x155b1f],{'id':Number(_0x2a3516['value'])});_0x18ac72['push'](_0xcf6fc4);}});for(let _0x479102=0x0;_0x479102<_0x3b3817[_0x155b1f][_0x371bc1(0xfd0)];_0x479102++){const _0x4bd666=_0x39641b()[_0x371bc1(0x727)](_0x18ac72,{'id':_0x3b3817[_0x155b1f][_0x479102]['id']});_0x4bd666&&(_0x3b3817[_0x155b1f][_0x479102][_0x371bc1(0x15da)]=![],_0xd8c64f[_0x371bc1(0x2785)](_0x3b3817[_0x155b1f][_0x479102]));}_0x3b3817[_0x155b1f]=_0xd8c64f;}else{if(!_0x20c613[_0x371bc1(0x12f4)])return _0x5ebaec['userProfileResource'][_0x371bc1(0xbf7)]({'sectionId':_0x20c613['id']})[_0x371bc1(0x1d77)][_0x371bc1(0x1cb0)](function(_0x462e59){const _0x50830e=_0x371bc1,_0x2f0355=_0x39641b()[_0x50830e(0x1de2)](_0x462e59[_0x50830e(0x2214)],function(_0x1b31aa){const _0x5c7ed4=_0x50830e;return _0x39641b()[_0x5c7ed4(0x13b4)](_0x3b3817[_0x155b1f],{'id':_0x1b31aa['resourceId']});});let _0x42e020=null;_0x42e020=[],_0x3b3817[_0x50830e(0x13af)][_0x50830e(0x2214)][_0x50830e(0xf90)](function(_0x2a1000){const _0x106460=_0x50830e;if(_0x2a1000[_0x106460(0x2198)]===_0x106460(0x1539)){const _0x203797=_0x39641b()[_0x106460(0x13b4)](_0x3b3817[_0x155b1f],{'id':Number(_0x2a1000[_0x106460(0x327)])});_0x42e020['push'](_0x203797);}}),!_0x39641b()[_0x50830e(0xce9)](_0x42e020)&&_0x42e020[_0x50830e(0xf90)](function(_0x4a5d7){const _0x1d3378=_0x50830e;if(!_0x39641b()[_0x1d3378(0x727)](_0x2f0355,['id',_0x4a5d7['id']])){const _0x509a9d=_0x39641b()[_0x1d3378(0x13b4)](_0x3b3817[_0x155b1f],{'id':_0x4a5d7['id']});_0x509a9d[_0x1d3378(0x15da)]=![],_0x2f0355['push'](_0x509a9d);}}),_0x3b3817[_0x155b1f]=_0x2f0355;});}})[_0x16dbcc(0x1c4)](function(_0x579969){const _0x446a20=_0x16dbcc;_0x187f6a[_0x446a20(0x218e)]({'title':_0x579969[_0x446a20(0x291)]?'API:'+_0x579969[_0x446a20(0x291)]+'\x20-\x20'+_0x579969[_0x446a20(0xc22)]:_0x446a20(0x21df)+_0x5b4fff[_0x446a20(0x2335)]()+_0x5b4fff==='chat'?_0x446a20(0x202a):'ACCOUNTS','msg':_0x579969[_0x446a20(0x25c)]?JSON['stringify'](_0x579969['data']):_0x579969[_0x446a20(0x147f)]()});});}function _0x2e2bbb(){const _0x172f53=_0x168e2e,_0x1a493b=[{'id':0x191,'type':_0x172f53(0x26c0)},{'id':0x5dd,'type':'outbound'}];let _0x51a9e8=null;_0x30436f[_0x172f53(0x10fc)]()?_0x5ebaec[_0x172f53(0x26b3)][_0x172f53(0xbf7)]({'fields':_0x172f53(0x1896),'sort':_0x172f53(0x16b6),'nolimit':_0x172f53(0x44d)})[_0x172f53(0x1d77)][_0x172f53(0x1cb0)](function(_0x328573){const _0xe6ae50=_0x172f53;_0x3b3817[_0xe6ae50(0x971)]=_0x328573['rows']||[];})['catch'](function(_0x50ac5f){const _0x3ac600=_0x172f53;_0x187f6a[_0x3ac600(0x218e)]({'title':_0x50ac5f[_0x3ac600(0x291)]?_0x3ac600(0xeb9)+_0x50ac5f[_0x3ac600(0x291)]+_0x3ac600(0x1657)+_0x50ac5f['statusText']:_0x3ac600(0x25f2),'msg':_0x50ac5f[_0x3ac600(0x25c)]?JSON[_0x3ac600(0x2701)](_0x50ac5f[_0x3ac600(0x25c)]):_0x50ac5f['toString']()});}):_0x5ebaec[_0x172f53(0x26b3)][_0x172f53(0xbf7)]({'fields':'id,name,type','sort':_0x172f53(0x16b6),'nolimit':_0x172f53(0x44d)})[_0x172f53(0x1d77)]['then'](function(_0x372977){const _0x198f0d=_0x172f53;_0x51a9e8=_0x372977[_0x198f0d(0x2214)]||[];})[_0x172f53(0x1cb0)](function(){const _0x5424ca=_0x172f53,_0xd818f6=[];for(let _0x2ae1bd=0x0;_0x2ae1bd<_0x1a493b[_0x5424ca(0xfd0)];_0x2ae1bd++){_0xd818f6['push'](_0x5ebaec['userProfileSection'][_0x5424ca(0xbf7)]({'userProfileId':_0x3b3817['currentUser']['userProfileId'],'sectionId':_0x1a493b[_0x2ae1bd]['id']})['$promise']);}return _0x48f182[_0x5424ca(0x223b)](_0xd818f6);})['then'](function(_0x2c84db){const _0x57679d=_0x172f53,_0x1afd79=_0x39641b()[_0x57679d(0x1de2)](_0x2c84db,function(_0xd168b8){const _0x49a6e0=_0x57679d;return _0xd168b8&&_0xd168b8[_0x49a6e0(0x2214)]?_0xd168b8[_0x49a6e0(0x2214)][0x0]:null;}),_0x83ff5=[];for(let _0x5e624e=0x0;_0x5e624e<_0x1a493b['length'];_0x5e624e++){const _0x338779=_0x39641b()[_0x57679d(0x13b4)](_0x1afd79,[_0x57679d(0xec6),_0x1a493b[_0x5e624e]['id']]);if(_0x338779){if(!_0x338779[_0x57679d(0x12f4)])_0x83ff5[_0x57679d(0x2785)](_0x5ebaec[_0x57679d(0x1198)][_0x57679d(0xbf7)]({'sectionId':_0x338779['id']})['$promise']);else{const _0x3c4322=[];_0x51a9e8['forEach'](function(_0x56f746){const _0x4035fb=_0x57679d;_0x56f746[_0x4035fb(0x66a)]===_0x1a493b[_0x5e624e][_0x4035fb(0x66a)]&&_0x3c4322[_0x4035fb(0x2785)](_0x56f746);}),_0x83ff5[_0x57679d(0x2785)]({'rows':_0x3c4322,'count':_0x3c4322[_0x57679d(0xfd0)]});}}}return _0x48f182[_0x57679d(0x223b)](_0x83ff5);})[_0x172f53(0x1cb0)](function(_0x330c48){const _0x36aa28=_0x172f53,_0x28c297=[],_0x456977=[];_0x3b3817[_0x36aa28(0x13af)][_0x36aa28(0x2214)][_0x36aa28(0xf90)](function(_0x543808){const _0x22e866=_0x36aa28;if(_0x543808[_0x22e866(0x2198)]===_0x22e866(0x11cf)){const _0x2c2fef=_0x39641b()['find'](_0x51a9e8,{'name':_0x543808[_0x22e866(0x327)]});_0x456977[_0x22e866(0x2785)](_0x2c2fef);}});for(let _0x36c6d2=0x0;_0x36c6d2<_0x330c48[_0x36aa28(0xfd0)];_0x36c6d2++){const _0x1011c7=_0x330c48[_0x36c6d2][_0x36aa28(0x2214)]||[];_0x1011c7[_0x36aa28(0xf90)](function(_0x5d9914){const _0x48114c=_0x36aa28;_0x28c297[_0x48114c(0x2785)](_0x5d9914);});}!_0x39641b()[_0x36aa28(0xce9)](_0x456977)&&_0x456977[_0x36aa28(0xf90)](function(_0x525ff2){const _0xb2947=_0x36aa28;if(!_0x39641b()[_0xb2947(0x727)](_0x28c297,[_0xb2947(0x2982),_0x525ff2['id']])){const _0x545322=_0x39641b()['find'](_0x51a9e8,{'id':_0x525ff2['id']});_0x545322['canSelect']=![],_0x28c297[_0xb2947(0x2785)](_0x545322);}}),_0x3b3817[_0x36aa28(0x971)]=_0x28c297;})[_0x172f53(0x1c4)](function(_0x2362eb){const _0x463fef=_0x172f53;_0x187f6a[_0x463fef(0x218e)]({'title':_0x2362eb['status']?_0x463fef(0xeb9)+_0x2362eb['status']+_0x463fef(0x1657)+_0x2362eb[_0x463fef(0xc22)]:_0x463fef(0x277c),'msg':_0x2362eb['data']?JSON[_0x463fef(0x2701)](_0x2362eb[_0x463fef(0x25c)]):_0x2362eb[_0x463fef(0x147f)]()});});}function _0x370de0(){const _0x175d10=_0x168e2e;_0x30436f[_0x175d10(0x10fc)]()?_0x5ebaec[_0x175d10(0x1059)][_0x175d10(0xbf7)]({'fields':_0x175d10(0x286f),'type':_0x175d10(0x895),'VoiceExtensionId':_0x175d10(0xd38),'nolimit':_0x175d10(0x44d)})['$promise'][_0x175d10(0x1cb0)](function(_0x1fef2f){const _0x3c4b2f=_0x175d10;_0x3b3817[_0x3c4b2f(0xe57)]=_0x1fef2f['rows']||[];})['catch'](function(_0x4e71d3){const _0x40c3eb=_0x175d10;_0x187f6a[_0x40c3eb(0x218e)]({'title':_0x4e71d3[_0x40c3eb(0x291)]?_0x40c3eb(0xeb9)+_0x4e71d3['status']+_0x40c3eb(0x1657)+_0x4e71d3[_0x40c3eb(0xc22)]:_0x40c3eb(0x25ea),'msg':_0x4e71d3['data']?JSON['stringify'](_0x4e71d3[_0x40c3eb(0x25c)]):_0x4e71d3[_0x40c3eb(0x147f)]()});}):_0x5ebaec[_0x175d10(0x1059)]['get']({'fields':_0x175d10(0x286f),'type':'outbound','VoiceExtensionId':_0x175d10(0xd38),'nolimit':'true'})[_0x175d10(0x1d77)][_0x175d10(0x1cb0)](function(_0x5c9f95){const _0x58454c=_0x175d10;_0x3b3817[_0x58454c(0xe57)]=_0x5c9f95[_0x58454c(0x2214)]||[];})[_0x175d10(0x1cb0)](function(){const _0x86633a=_0x175d10;return _0x5ebaec[_0x86633a(0x2199)][_0x86633a(0xbf7)]({'userProfileId':_0x3b3817[_0x86633a(0xe76)][_0x86633a(0x13c1)],'sectionId':0x193})[_0x86633a(0x1d77)];})['then'](function(_0x32639a){const _0x5c8278=_0x175d10,_0x5a2be2=_0x32639a&&_0x32639a['rows']?_0x32639a[_0x5c8278(0x2214)][0x0]:null;if(!_0x5a2be2){const _0x370f3c=[],_0x14b5dd=[];_0x3b3817[_0x5c8278(0x13af)][_0x5c8278(0x2214)][_0x5c8278(0xf90)](function(_0x321e6d){const _0x519dec=_0x5c8278;if(_0x321e6d[_0x519dec(0x2198)]==='routeId'){const _0x4e9b43=_0x39641b()[_0x519dec(0x13b4)](_0x3b3817['outboundRoutes'],{'id':Number(_0x321e6d[_0x519dec(0x327)])});_0x14b5dd[_0x519dec(0x2785)](_0x4e9b43);}});for(let _0x162319=0x0;_0x162319<_0x3b3817[_0x5c8278(0xe57)]['length'];_0x162319++){const _0x1dc29b=_0x39641b()[_0x5c8278(0x727)](_0x14b5dd,{'id':_0x3b3817[_0x5c8278(0xe57)][_0x162319]['id']});_0x1dc29b&&(_0x3b3817[_0x5c8278(0xe57)][_0x162319]['canSelect']=![],_0x370f3c['push'](_0x3b3817['outboundRoutes'][_0x162319]));}_0x3b3817[_0x5c8278(0xe57)]=_0x370f3c;}else{if(!_0x5a2be2[_0x5c8278(0x12f4)])return _0x5ebaec[_0x5c8278(0x1198)]['get']({'sectionId':_0x5a2be2['id']})['$promise'][_0x5c8278(0x1cb0)](function(_0x3c72b9){const _0x9440e4=_0x5c8278,_0x4b9eb6=_0x39641b()[_0x9440e4(0x1de2)](_0x3c72b9[_0x9440e4(0x2214)],function(_0x2c1c53){const _0x53d26c=_0x9440e4;return _0x39641b()[_0x53d26c(0x13b4)](_0x3b3817['outboundRoutes'],{'id':_0x2c1c53['resourceId']});});let _0x36f317=null;_0x36f317=[],_0x3b3817[_0x9440e4(0x13af)]['rows'][_0x9440e4(0xf90)](function(_0x4eb97a){const _0x4e06b8=_0x9440e4;if(_0x4eb97a['field']==='routeId'){const _0x5cd382=_0x39641b()[_0x4e06b8(0x13b4)](_0x3b3817[_0x4e06b8(0xe57)],{'id':Number(_0x4eb97a[_0x4e06b8(0x327)])});_0x36f317['push'](_0x5cd382);}}),!_0x39641b()[_0x9440e4(0xce9)](_0x36f317)&&_0x36f317[_0x9440e4(0xf90)](function(_0x5279d8){const _0x59e04f=_0x9440e4;if(!_0x39641b()[_0x59e04f(0x727)](_0x4b9eb6,['id',_0x5279d8['id']])){const _0x30d2e8=_0x39641b()['find'](_0x3b3817[_0x59e04f(0xe57)],{'id':_0x5279d8['id']});_0x30d2e8[_0x59e04f(0x15da)]=![],_0x4b9eb6[_0x59e04f(0x2785)](_0x30d2e8);}}),_0x3b3817[_0x9440e4(0xe57)]=_0x4b9eb6;});}})[_0x175d10(0x1c4)](function(_0x3197d1){const _0x427456=_0x175d10;_0x187f6a[_0x427456(0x218e)]({'title':_0x3197d1[_0x427456(0x291)]?_0x427456(0xeb9)+_0x3197d1[_0x427456(0x291)]+_0x427456(0x1657)+_0x3197d1[_0x427456(0xc22)]:_0x427456(0x25ea),'msg':_0x3197d1[_0x427456(0x25c)]?JSON[_0x427456(0x2701)](_0x3197d1[_0x427456(0x25c)]):_0x3197d1[_0x427456(0x147f)]()});});}function _0x39a3ea(){const _0x4f5605=_0x168e2e;_0x30436f['isAdmin']()?_0x5ebaec['user'][_0x4f5605(0xbf7)]({'fields':_0x4f5605(0x1d34),'sort':_0x4f5605(0x16b6),'role':_0x4f5605(0x1eff),'nolimit':'true'})['$promise'][_0x4f5605(0x1cb0)](function(_0xe0c496){const _0x970017=_0x4f5605;_0x3b3817[_0x970017(0xc12)]=_0xe0c496[_0x970017(0x2214)]||[];})[_0x4f5605(0x1c4)](function(_0x4ec8c2){const _0x296c52=_0x4f5605;_0x187f6a[_0x296c52(0x218e)]({'title':_0x4ec8c2['status']?'API:'+_0x4ec8c2[_0x296c52(0x291)]+'\x20-\x20'+_0x4ec8c2[_0x296c52(0xc22)]:_0x296c52(0x799),'msg':_0x4ec8c2[_0x296c52(0x25c)]?JSON[_0x296c52(0x2701)](_0x4ec8c2[_0x296c52(0x25c)]):_0x4ec8c2['toString']()});}):_0x5ebaec[_0x4f5605(0xebe)]['get']({'fields':'id,name,fullname','sort':_0x4f5605(0x16b6),'role':'agent','nolimit':_0x4f5605(0x44d)})[_0x4f5605(0x1d77)][_0x4f5605(0x1cb0)](function(_0x286865){const _0x54472b=_0x4f5605;_0x3b3817[_0x54472b(0xc12)]=_0x286865[_0x54472b(0x2214)]||[];})[_0x4f5605(0x1cb0)](function(){const _0x1b5549=_0x4f5605;return _0x5ebaec[_0x1b5549(0x2199)][_0x1b5549(0xbf7)]({'userProfileId':_0x3b3817[_0x1b5549(0xe76)]['userProfileId'],'sectionId':0xca})['$promise'];})[_0x4f5605(0x1cb0)](function(_0x2d08cb){const _0xb56c61=_0x4f5605,_0xec1390=_0x2d08cb&&_0x2d08cb[_0xb56c61(0x2214)]?_0x2d08cb[_0xb56c61(0x2214)][0x0]:null;if(!_0xec1390){const _0x54df16=[],_0x123b83=[];_0x3b3817[_0xb56c61(0x13af)][_0xb56c61(0x2214)]['forEach'](function(_0x262e30){const _0x4a7df7=_0xb56c61;if(_0x262e30[_0x4a7df7(0x2198)]===_0x4a7df7(0x1eff)){const _0x4d72d3=_0x39641b()[_0x4a7df7(0x13b4)](_0x3b3817[_0x4a7df7(0xc12)],{'name':_0x262e30[_0x4a7df7(0x327)]});_0x123b83[_0x4a7df7(0x2785)](_0x4d72d3);}});for(let _0x28e6d5=0x0;_0x28e6d5<_0x3b3817[_0xb56c61(0xc12)][_0xb56c61(0xfd0)];_0x28e6d5++){const _0x15ed2a=_0x39641b()[_0xb56c61(0x727)](_0x123b83,{'id':_0x3b3817[_0xb56c61(0xc12)][_0x28e6d5]['id']});_0x15ed2a&&(_0x3b3817[_0xb56c61(0xc12)][_0x28e6d5][_0xb56c61(0x15da)]=![],_0x54df16[_0xb56c61(0x2785)](_0x3b3817[_0xb56c61(0xc12)][_0x28e6d5]));}_0x3b3817[_0xb56c61(0xc12)]=_0x54df16;}else{if(!_0xec1390[_0xb56c61(0x12f4)])return _0x5ebaec[_0xb56c61(0x1198)][_0xb56c61(0xbf7)]({'sectionId':_0xec1390['id']})[_0xb56c61(0x1d77)][_0xb56c61(0x1cb0)](function(_0x745cf8){const _0x2f7a58=_0xb56c61,_0x36cecf=_0x39641b()[_0x2f7a58(0x1de2)](_0x745cf8[_0x2f7a58(0x2214)],function(_0x10ad7c){const _0x304347=_0x2f7a58;return _0x39641b()['find'](_0x3b3817[_0x304347(0xc12)],{'id':_0x10ad7c['resourceId']});});let _0x2cde99=null;_0x2cde99=[],_0x3b3817[_0x2f7a58(0x13af)][_0x2f7a58(0x2214)][_0x2f7a58(0xf90)](function(_0x18de61){const _0x4aa297=_0x2f7a58;if(_0x18de61[_0x4aa297(0x2198)]==='agent'){const _0x3bf649=_0x39641b()[_0x4aa297(0x13b4)](_0x3b3817['agents'],{'name':_0x18de61[_0x4aa297(0x327)]});_0x2cde99[_0x4aa297(0x2785)](_0x3bf649);}}),!_0x39641b()['isEmpty'](_0x2cde99)&&_0x2cde99[_0x2f7a58(0xf90)](function(_0x51f642){const _0x23c55f=_0x2f7a58;if(!_0x39641b()[_0x23c55f(0x727)](_0x36cecf,['id',_0x51f642['id']])){const _0x598bbb=_0x39641b()[_0x23c55f(0x13b4)](_0x3b3817[_0x23c55f(0xc12)],{'id':_0x51f642['id']});_0x598bbb[_0x23c55f(0x15da)]=![],_0x36cecf[_0x23c55f(0x2785)](_0x598bbb);}}),_0x3b3817['agents']=_0x36cecf;});}})['catch'](function(_0x5cca13){const _0x384346=_0x4f5605;_0x187f6a[_0x384346(0x218e)]({'title':_0x5cca13[_0x384346(0x291)]?_0x384346(0xeb9)+_0x5cca13[_0x384346(0x291)]+'\x20-\x20'+_0x5cca13[_0x384346(0xc22)]:_0x384346(0x799),'msg':_0x5cca13[_0x384346(0x25c)]?JSON[_0x384346(0x2701)](_0x5cca13['data']):_0x5cca13[_0x384346(0x147f)]()});});}function _0x4d2604(){const _0x58529a=_0x168e2e;if(_0x3b3817[_0x58529a(0x497)]['channel']===_0x58529a(0x1fd4)){if(_0x39641b()[_0x58529a(0x727)](_0x3b3817['triggerAllConditions'][_0x58529a(0x2214)],[_0x58529a(0x2198),_0x58529a(0x11cf)])){if(!_0x3b3817[_0x58529a(0x971)])_0x2e2bbb();}if(_0x39641b()[_0x58529a(0x727)](_0x3b3817[_0x58529a(0x13af)][_0x58529a(0x2214)],[_0x58529a(0x2198),_0x58529a(0xedf)])){if(!_0x3b3817[_0x58529a(0xe57)])_0x370de0();}if(_0x39641b()['some'](_0x3b3817[_0x58529a(0x13af)][_0x58529a(0x2214)],[_0x58529a(0x2198),_0x58529a(0x1eff)])){if(!_0x3b3817[_0x58529a(0xc12)])_0x39a3ea();}}else _0x3d2149();}function _0x2f084f(_0x42dd39){const _0x5a8b3a=_0x168e2e;_0x3b3817[_0x5a8b3a(0x13af)]=_0x42dd39||{'count':0x0,'rows':[]},_0x4d2604();}function _0x295bb7(){const _0x5982cb=_0x168e2e;_0x3b3817['query'][_0x5982cb(0x184b)]=(_0x3b3817[_0x5982cb(0xae2)][_0x5982cb(0x1c7b)]-0x1)*_0x3b3817[_0x5982cb(0xae2)][_0x5982cb(0x236)],_0x3b3817[_0x5982cb(0x2061)]=_0x5ebaec[_0x5982cb(0x497)]['getAllConditions'](_0x3b3817[_0x5982cb(0xae2)],_0x2f084f)[_0x5982cb(0x1d77)];}function _0x31442b(_0x38c62f,_0x3f1799){const _0x2dd2d4=_0x168e2e;_0x4de393[_0x2dd2d4(0xe27)]({'controller':'CreateOrEditAllConditionDialogController','controllerAs':'vm','templateUrl':_0x5b5e60,'parent':angular[_0x2dd2d4(0x1853)](_0x52f514[_0x2dd2d4(0x1ed9)]),'targetEvent':_0x38c62f,'clickOutsideToClose':!![],'locals':{'trigger':_0x3b3817[_0x2dd2d4(0x497)],'allCondition':_0x3f1799,'allConditions':_0x3b3817[_0x2dd2d4(0x13af)][_0x2dd2d4(0x2214)],'license':null,'setting':null,'crudPermissions':_0x3b3817[_0x2dd2d4(0x1b1a)]}})[_0x2dd2d4(0x1cb0)](function(_0x17a1b6){const _0x3b7bda=_0x2dd2d4;_0x17a1b6&&(_0x3b3817['triggerAllConditions']={'count':_0x17a1b6[_0x3b7bda(0xfd0)],'rows':_0x17a1b6},_0x4d2604());});}function _0x37a4e4(_0xfd4a17,_0x162f32){const _0xb72ded=_0x168e2e,_0x36c88f=_0x4de393[_0xb72ded(0x1551)]()[_0xb72ded(0x1386)](_0x383e35[_0xb72ded(0x25cc)](_0xb72ded(0x2473)))['ariaLabel'](_0xb72ded(0x213f))[_0xb72ded(0x728)](_0x162f32)['ok']('OK')[_0xb72ded(0x696)](_0x383e35[_0xb72ded(0x25cc)](_0xb72ded(0x2768)));_0x4de393[_0xb72ded(0xe27)](_0x36c88f)[_0xb72ded(0x1cb0)](function(){_0x55bce4(_0xfd4a17,!![]);});}function _0x55bce4(_0x179946,_0x2ca90e){const _0x2d28b8=_0x168e2e;_0x5ebaec['condition'][_0x2d28b8(0x111d)]({'id':_0x179946['id']})[_0x2d28b8(0x1d77)][_0x2d28b8(0x1cb0)](function(){const _0x481eef=_0x2d28b8;_0x295bb7(),_0x2ca90e&&_0x187f6a['success']({'title':_0x383e35[_0x481eef(0x25cc)](_0x481eef(0x16de))});})[_0x2d28b8(0x1c4)](function(_0x1b47b6){const _0x4a76d5=_0x2d28b8;if(_0x1b47b6['data']&&_0x1b47b6['data'][_0x4a76d5(0x1a7c)]&&_0x1b47b6[_0x4a76d5(0x25c)][_0x4a76d5(0x1a7c)][_0x4a76d5(0xfd0)]){_0x3b3817[_0x4a76d5(0x1a7c)]=_0x1b47b6[_0x4a76d5(0x25c)][_0x4a76d5(0x1a7c)]||[{'message':_0x1b47b6[_0x4a76d5(0x147f)](),'type':'SYSTEM:GETtrigger'}];for(let _0x1bdd25=0x0;_0x1bdd25<_0x1b47b6[_0x4a76d5(0x25c)][_0x4a76d5(0x1a7c)]['length'];_0x1bdd25++){_0x187f6a[_0x4a76d5(0x218e)]({'title':_0x1b47b6[_0x4a76d5(0x25c)][_0x4a76d5(0x1a7c)][_0x1bdd25][_0x4a76d5(0x66a)],'msg':_0x1b47b6[_0x4a76d5(0x25c)]['errors'][_0x1bdd25][_0x4a76d5(0x155e)]});}}else _0x187f6a['error']({'title':_0x1b47b6[_0x4a76d5(0x291)]?_0x4a76d5(0xeb9)+_0x1b47b6[_0x4a76d5(0x291)]+_0x4a76d5(0x1657)+_0x1b47b6[_0x4a76d5(0xc22)]:_0x4a76d5(0x15e7),'msg':_0x1b47b6['data']?JSON[_0x4a76d5(0x2701)](_0x1b47b6[_0x4a76d5(0x25c)]['message']):_0x1b47b6[_0x4a76d5(0x155e)]||_0x1b47b6[_0x4a76d5(0x147f)]()});});}function _0x5b3f24(){const _0x4d38c4=_0x168e2e,_0x14fe55=angular[_0x4d38c4(0x17fe)](_0x3b3817[_0x4d38c4(0x9cf)]);return _0x3b3817[_0x4d38c4(0x9cf)]=[],_0x14fe55;}function _0x113baf(_0x52a0a2){const _0x182f2f=_0x168e2e,_0x5d93da=_0x4de393[_0x182f2f(0x1551)]()[_0x182f2f(0x1386)](_0x383e35[_0x182f2f(0x25cc)](_0x182f2f(0xda3)))[_0x182f2f(0x862)](_0x383e35[_0x182f2f(0x25cc)](_0x182f2f(0x181d),{'total':_0x3b3817[_0x182f2f(0x9cf)][_0x182f2f(0xfd0)]}))[_0x182f2f(0x15ad)](_0x182f2f(0x1d0c))['targetEvent'](_0x52a0a2)['ok']('OK')['cancel'](_0x383e35['instant']('APP.CANCEL'));_0x4de393[_0x182f2f(0xe27)](_0x5d93da)[_0x182f2f(0x1cb0)](function(){const _0x2ef822=_0x182f2f;_0x3b3817[_0x2ef822(0x9cf)][_0x2ef822(0xf90)](function(_0x4c4a96){_0x55bce4(_0x4c4a96);}),_0x3b3817[_0x2ef822(0x9cf)]=[],_0x187f6a[_0x2ef822(0x829)]({'title':_0x383e35[_0x2ef822(0x25cc)](_0x2ef822(0x25fe))});});}let _0x3f9fda=!![],_0x325265=0x1;_0x50faf9[_0x168e2e(0x614)]('vm_dc.query.filter',function(_0x357b86,_0x3f19f7){const _0x1b55ae=_0x168e2e;_0x3f9fda?_0x519c44(function(){_0x3f9fda=![];}):(!_0x3f19f7&&(_0x325265=_0x3b3817[_0x1b55ae(0xae2)][_0x1b55ae(0x1c7b)]),_0x357b86!==_0x3f19f7&&(_0x3b3817[_0x1b55ae(0xae2)][_0x1b55ae(0x1c7b)]=0x1),!_0x357b86&&(_0x3b3817[_0x1b55ae(0xae2)]['page']=_0x325265),_0x295bb7());});}const _0x522625=_0x4350d8;;_0x33e91b[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),'toasty','allconditions',_0x5537c6(0x1835),_0x5537c6(0x497),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x33e91b(_0x5de6ff,_0x2b5f8e,_0x27873c,_0x26077c,_0x549bce,_0x3ba2fa,_0xd205e0,_0x2e584b,_0x5ed10f,_0x58768d,_0x258a92,_0x3d95eb,_0x63cea1,_0x5de2f5,_0x19a925){const _0x46364c=_0x5537c6,_0x2c22e2=this;_0x2c22e2[_0x46364c(0xe76)]=_0x3d95eb[_0x46364c(0x21e8)](),_0x2c22e2[_0x46364c(0x1a7c)]=[],_0x2c22e2[_0x46364c(0x9ca)]=_0x5de2f5,_0x2c22e2[_0x46364c(0x8a5)]=_0x63cea1,_0x2c22e2[_0x46364c(0x1b1a)]=_0x19a925,_0x2c22e2[_0x46364c(0xf4c)]={},_0x2c22e2[_0x46364c(0x1b0c)]=_0x2c22e2['setting']&&_0x2c22e2[_0x46364c(0x9ca)][_0x46364c(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2c22e2[_0x46364c(0x1386)]=_0x46364c(0xdb5),_0x2c22e2[_0x46364c(0x1835)]=angular[_0x46364c(0x17fe)](_0x5ed10f),_0x2c22e2['allconditions']=_0x2e584b,_0x2c22e2[_0x46364c(0x28ad)]=![],_0x2c22e2['trigger']=angular[_0x46364c(0x17fe)](_0x58768d);!_0x2c22e2[_0x46364c(0x1835)]&&(_0x2c22e2[_0x46364c(0x1835)]={'field':_0x46364c(0x11cf),'operator':_0x46364c(0x1c53),'value':'in'},_0x2c22e2['title']=_0x46364c(0xd35),_0x2c22e2[_0x46364c(0x28ad)]=!![]);_0x2b5f8e[_0x46364c(0x1dfe)]['id']&&(_0x2c22e2['allCondition'][_0x46364c(0x4a5)]=_0x2b5f8e[_0x46364c(0x1dfe)]['id']);_0x2c22e2[_0x46364c(0x15de)]=_0x1090d6,_0x2c22e2[_0x46364c(0x263a)]=_0x5abfdf,_0x2c22e2[_0x46364c(0x59e)]=_0x4d293b,_0x2c22e2[_0x46364c(0x2c4)]=_0x14c9e6,_0x2c22e2[_0x46364c(0xda0)]=_0x47a1ed,_0x3d95eb[_0x46364c(0x22b6)](_0x46364c(0x1c60))?_0x258a92['chatWebsite'][_0x46364c(0xbf7)]({'fields':_0x46364c(0x43c),'sort':'id','nolimit':_0x46364c(0x44d)})[_0x46364c(0x1d77)][_0x46364c(0x1cb0)](function(_0x4f54c9){const _0x2be3eb=_0x46364c;_0x2c22e2[_0x2be3eb(0x1ad1)]=_0x4f54c9[_0x2be3eb(0x2214)]||[];})['catch'](function(_0x3c5ef0){const _0x79f24c=_0x46364c;_0xd205e0['error']({'title':_0x3c5ef0[_0x79f24c(0x291)]?_0x79f24c(0xeb9)+_0x3c5ef0['status']+_0x79f24c(0x1657)+_0x3c5ef0[_0x79f24c(0xc22)]:_0x79f24c(0x2103),'msg':_0x3c5ef0[_0x79f24c(0x25c)]?JSON[_0x79f24c(0x2701)](_0x3c5ef0[_0x79f24c(0x25c)]):_0x3c5ef0['toString']()});}):_0x258a92[_0x46364c(0x226c)]['get']({'fields':_0x46364c(0x43c),'sort':'id','nolimit':'true'})['$promise'][_0x46364c(0x1cb0)](function(_0x230f79){const _0x409091=_0x46364c;_0x2c22e2[_0x409091(0x1ad1)]=_0x230f79[_0x409091(0x2214)]||[];})[_0x46364c(0x1cb0)](function(){const _0x474d8b=_0x46364c;return _0x258a92[_0x474d8b(0x2199)][_0x474d8b(0xbf7)]({'userProfileId':_0x2c22e2[_0x474d8b(0xe76)][_0x474d8b(0x13c1)],'sectionId':0x1f6})['$promise'];})[_0x46364c(0x1cb0)](function(_0x556ce5){const _0x1ac0be=_0x46364c,_0x323c59=_0x556ce5&&_0x556ce5['rows']?_0x556ce5[_0x1ac0be(0x2214)][0x0]:null;if(!_0x323c59){const _0x31a8f9=[];let _0x801b67=null;_0x2c22e2['allCondition']&&(_0x801b67=_0x39641b()[_0x1ac0be(0x13b4)](_0x2c22e2[_0x1ac0be(0x1ad1)],{'id':Number(_0x2c22e2[_0x1ac0be(0x1835)]['value'])}));for(let _0x2bb9f1=0x0;_0x2bb9f1<_0x2c22e2[_0x1ac0be(0x1ad1)][_0x1ac0be(0xfd0)];_0x2bb9f1++){_0x801b67&&_0x2c22e2[_0x1ac0be(0x1ad1)][_0x2bb9f1]['id']===_0x801b67['id']&&(_0x2c22e2[_0x1ac0be(0x1ad1)][_0x2bb9f1][_0x1ac0be(0x15da)]=![],_0x31a8f9[_0x1ac0be(0x2785)](_0x2c22e2['chatAccounts'][_0x2bb9f1]));}_0x2c22e2[_0x1ac0be(0x1ad1)]=_0x31a8f9;}else{if(!_0x323c59[_0x1ac0be(0x12f4)])return _0x258a92[_0x1ac0be(0x1198)]['get']({'sectionId':_0x323c59['id']})['$promise'][_0x1ac0be(0x1cb0)](function(_0x36cb1f){const _0x3bdef4=_0x1ac0be,_0x468640=_0x39641b()[_0x3bdef4(0x1de2)](_0x36cb1f[_0x3bdef4(0x2214)],function(_0x14de11){const _0xb9387e=_0x3bdef4;return _0x39641b()[_0xb9387e(0x13b4)](_0x2c22e2[_0xb9387e(0x1ad1)],{'id':_0x14de11[_0xb9387e(0x2982)]});});let _0x1b2904=null;_0x2c22e2['allCondition']&&(_0x1b2904=_0x39641b()[_0x3bdef4(0x13b4)](_0x2c22e2[_0x3bdef4(0x1ad1)],{'id':Number(_0x2c22e2[_0x3bdef4(0x1835)][_0x3bdef4(0x327)])}));if(_0x1b2904&&!_0x39641b()[_0x3bdef4(0x727)](_0x468640,['id',_0x1b2904['id']])){const _0x38a0ad=_0x39641b()['find'](_0x2c22e2['chatAccounts'],{'id':_0x1b2904['id']});_0x38a0ad[_0x3bdef4(0x15da)]=![],_0x468640[_0x3bdef4(0x2785)](_0x38a0ad);}_0x2c22e2[_0x3bdef4(0x1ad1)]=_0x468640;});}})['catch'](function(_0x5a51fc){const _0x51e945=_0x46364c;_0xd205e0[_0x51e945(0x218e)]({'title':_0x5a51fc[_0x51e945(0x291)]?_0x51e945(0xeb9)+_0x5a51fc[_0x51e945(0x291)]+_0x51e945(0x1657)+_0x5a51fc['statusText']:_0x51e945(0x18e5),'msg':_0x5a51fc['data']?JSON[_0x51e945(0x2701)](_0x5a51fc['data']):_0x5a51fc[_0x51e945(0x147f)]()});}),_0x3d95eb[_0x46364c(0x22b6)]('admin')?_0x258a92['mailAccount'][_0x46364c(0xbf7)]({'fields':'id,name','sort':'id','nolimit':_0x46364c(0x44d)})[_0x46364c(0x1d77)][_0x46364c(0x1cb0)](function(_0xb77dea){_0x2c22e2['mailAccounts']=_0xb77dea['rows']||[];})[_0x46364c(0x1c4)](function(_0x4500c5){const _0x2db111=_0x46364c;_0xd205e0[_0x2db111(0x218e)]({'title':_0x4500c5[_0x2db111(0x291)]?_0x2db111(0xeb9)+_0x4500c5[_0x2db111(0x291)]+'\x20-\x20'+_0x4500c5[_0x2db111(0xc22)]:_0x2db111(0x3d7),'msg':_0x4500c5[_0x2db111(0x25c)]?JSON['stringify'](_0x4500c5['data']):_0x4500c5['toString']()});}):_0x258a92[_0x46364c(0x131c)][_0x46364c(0xbf7)]({'fields':_0x46364c(0x43c),'sort':'id','nolimit':_0x46364c(0x44d)})[_0x46364c(0x1d77)][_0x46364c(0x1cb0)](function(_0x221818){const _0x3135d4=_0x46364c;_0x2c22e2['mailAccounts']=_0x221818[_0x3135d4(0x2214)]||[];})['then'](function(){const _0x35eb33=_0x46364c;return _0x258a92[_0x35eb33(0x2199)]['get']({'userProfileId':_0x2c22e2[_0x35eb33(0xe76)][_0x35eb33(0x13c1)],'sectionId':0x25a})[_0x35eb33(0x1d77)];})[_0x46364c(0x1cb0)](function(_0x26ae8c){const _0xc8258a=_0x46364c,_0x4800bf=_0x26ae8c&&_0x26ae8c['rows']?_0x26ae8c[_0xc8258a(0x2214)][0x0]:null;if(!_0x4800bf){const _0x42b24e=[];let _0x3cb45f=null;_0x2c22e2[_0xc8258a(0x1835)]&&(_0x3cb45f=_0x39641b()[_0xc8258a(0x13b4)](_0x2c22e2[_0xc8258a(0x228e)],{'id':Number(_0x2c22e2[_0xc8258a(0x1835)][_0xc8258a(0x327)])}));for(let _0x472c6f=0x0;_0x472c6f<_0x2c22e2['mailAccounts']['length'];_0x472c6f++){_0x3cb45f&&_0x2c22e2[_0xc8258a(0x228e)][_0x472c6f]['id']===_0x3cb45f['id']&&(_0x2c22e2[_0xc8258a(0x228e)][_0x472c6f][_0xc8258a(0x15da)]=![],_0x42b24e[_0xc8258a(0x2785)](_0x2c22e2['mailAccounts'][_0x472c6f]));}_0x2c22e2[_0xc8258a(0x228e)]=_0x42b24e;}else{if(!_0x4800bf['autoAssociation'])return _0x258a92[_0xc8258a(0x1198)][_0xc8258a(0xbf7)]({'sectionId':_0x4800bf['id']})['$promise'][_0xc8258a(0x1cb0)](function(_0x122b4f){const _0x625441=_0xc8258a,_0x4f650c=_0x39641b()[_0x625441(0x1de2)](_0x122b4f[_0x625441(0x2214)],function(_0x326d4e){const _0x38acfd=_0x625441;return _0x39641b()[_0x38acfd(0x13b4)](_0x2c22e2[_0x38acfd(0x228e)],{'id':_0x326d4e['resourceId']});});let _0x4a66c7=null;_0x2c22e2[_0x625441(0x1835)]&&(_0x4a66c7=_0x39641b()[_0x625441(0x13b4)](_0x2c22e2[_0x625441(0x228e)],{'id':Number(_0x2c22e2[_0x625441(0x1835)][_0x625441(0x327)])}));if(_0x4a66c7&&!_0x39641b()[_0x625441(0x727)](_0x4f650c,['id',_0x4a66c7['id']])){const _0x44ba09=_0x39641b()['find'](_0x2c22e2[_0x625441(0x228e)],{'id':_0x4a66c7['id']});_0x44ba09[_0x625441(0x15da)]=![],_0x4f650c[_0x625441(0x2785)](_0x44ba09);}_0x2c22e2[_0x625441(0x228e)]=_0x4f650c;});}})[_0x46364c(0x1c4)](function(_0x89a390){const _0x3adc3d=_0x46364c;_0xd205e0['error']({'title':_0x89a390[_0x3adc3d(0x291)]?_0x3adc3d(0xeb9)+_0x89a390['status']+_0x3adc3d(0x1657)+_0x89a390['statusText']:_0x3adc3d(0x20f2),'msg':_0x89a390['data']?JSON[_0x3adc3d(0x2701)](_0x89a390[_0x3adc3d(0x25c)]):_0x89a390['toString']()});}),_0x3d95eb[_0x46364c(0x22b6)](_0x46364c(0x1c60))?_0x258a92['smsAccount'][_0x46364c(0xbf7)]({'fields':'id,name','sort':'id','nolimit':'true'})[_0x46364c(0x1d77)][_0x46364c(0x1cb0)](function(_0x1429f){const _0x59ce1d=_0x46364c;_0x2c22e2['smsAccounts']=_0x1429f[_0x59ce1d(0x2214)]||[];})[_0x46364c(0x1c4)](function(_0x28ff6c){const _0x2ae9bf=_0x46364c;_0xd205e0['error']({'title':_0x28ff6c[_0x2ae9bf(0x291)]?_0x2ae9bf(0xeb9)+_0x28ff6c[_0x2ae9bf(0x291)]+_0x2ae9bf(0x1657)+_0x28ff6c['statusText']:_0x2ae9bf(0x10bf),'msg':_0x28ff6c[_0x2ae9bf(0x25c)]?JSON[_0x2ae9bf(0x2701)](_0x28ff6c[_0x2ae9bf(0x25c)]):_0x28ff6c[_0x2ae9bf(0x147f)]()});}):_0x258a92[_0x46364c(0x658)][_0x46364c(0xbf7)]({'fields':_0x46364c(0x43c),'sort':'id','nolimit':'true'})['$promise'][_0x46364c(0x1cb0)](function(_0x3e2f10){const _0x3a4dd8=_0x46364c;_0x2c22e2[_0x3a4dd8(0x1ac)]=_0x3e2f10[_0x3a4dd8(0x2214)]||[];})[_0x46364c(0x1cb0)](function(){const _0x279a68=_0x46364c;return _0x258a92[_0x279a68(0x2199)][_0x279a68(0xbf7)]({'userProfileId':_0x2c22e2[_0x279a68(0xe76)][_0x279a68(0x13c1)],'sectionId':0x2be})[_0x279a68(0x1d77)];})[_0x46364c(0x1cb0)](function(_0x26cdb4){const _0x3202d2=_0x46364c,_0x32ffaf=_0x26cdb4&&_0x26cdb4[_0x3202d2(0x2214)]?_0x26cdb4['rows'][0x0]:null;if(!_0x32ffaf){const _0x2f839c=[];let _0x4bdd69=null;_0x2c22e2['allCondition']&&(_0x4bdd69=_0x39641b()[_0x3202d2(0x13b4)](_0x2c22e2[_0x3202d2(0x1ac)],{'id':Number(_0x2c22e2[_0x3202d2(0x1835)][_0x3202d2(0x327)])}));for(let _0x468f55=0x0;_0x468f55<_0x2c22e2[_0x3202d2(0x1ac)][_0x3202d2(0xfd0)];_0x468f55++){_0x4bdd69&&_0x2c22e2[_0x3202d2(0x1ac)][_0x468f55]['id']===_0x4bdd69['id']&&(_0x2c22e2[_0x3202d2(0x1ac)][_0x468f55][_0x3202d2(0x15da)]=![],_0x2f839c[_0x3202d2(0x2785)](_0x2c22e2[_0x3202d2(0x1ac)][_0x468f55]));}_0x2c22e2[_0x3202d2(0x1ac)]=_0x2f839c;}else{if(!_0x32ffaf[_0x3202d2(0x12f4)])return _0x258a92['userProfileResource'][_0x3202d2(0xbf7)]({'sectionId':_0x32ffaf['id']})['$promise'][_0x3202d2(0x1cb0)](function(_0x490dc8){const _0x44816a=_0x3202d2,_0x5bd729=_0x39641b()['map'](_0x490dc8['rows'],function(_0x5f5af4){const _0x274b0d=a0_0x5cbd;return _0x39641b()['find'](_0x2c22e2[_0x274b0d(0x1ac)],{'id':_0x5f5af4[_0x274b0d(0x2982)]});});let _0x51c408=null;_0x2c22e2[_0x44816a(0x1835)]&&(_0x51c408=_0x39641b()[_0x44816a(0x13b4)](_0x2c22e2[_0x44816a(0x1ac)],{'id':Number(_0x2c22e2['allCondition'][_0x44816a(0x327)])}));if(_0x51c408&&!_0x39641b()[_0x44816a(0x727)](_0x5bd729,['id',_0x51c408['id']])){const _0x503f75=_0x39641b()[_0x44816a(0x13b4)](_0x2c22e2[_0x44816a(0x1ac)],{'id':_0x51c408['id']});_0x503f75[_0x44816a(0x15da)]=![],_0x5bd729['push'](_0x503f75);}_0x2c22e2[_0x44816a(0x1ac)]=_0x5bd729;});}})[_0x46364c(0x1c4)](function(_0x317d42){const _0x4106d3=_0x46364c;_0xd205e0['error']({'title':_0x317d42[_0x4106d3(0x291)]?_0x4106d3(0xeb9)+_0x317d42['status']+_0x4106d3(0x1657)+_0x317d42[_0x4106d3(0xc22)]:'SYSTEM:GETsmsAccounts','msg':_0x317d42[_0x4106d3(0x25c)]?JSON[_0x4106d3(0x2701)](_0x317d42[_0x4106d3(0x25c)]):_0x317d42[_0x4106d3(0x147f)]()});}),_0x3d95eb[_0x46364c(0x22b6)]('admin')?_0x258a92[_0x46364c(0x83a)]['get']({'fields':_0x46364c(0x43c),'sort':'id','nolimit':_0x46364c(0x44d)})[_0x46364c(0x1d77)]['then'](function(_0x23a510){const _0x4cb289=_0x46364c;_0x2c22e2[_0x4cb289(0xbb3)]=_0x23a510[_0x4cb289(0x2214)]||[];})[_0x46364c(0x1c4)](function(_0x144798){const _0x3fd2a4=_0x46364c;_0xd205e0[_0x3fd2a4(0x218e)]({'title':_0x144798['status']?_0x3fd2a4(0xeb9)+_0x144798[_0x3fd2a4(0x291)]+_0x3fd2a4(0x1657)+_0x144798[_0x3fd2a4(0xc22)]:'SYSTEM:GET_WHATSAPPACCOUNTS','msg':_0x144798[_0x3fd2a4(0x25c)]?JSON[_0x3fd2a4(0x2701)](_0x144798[_0x3fd2a4(0x25c)]):_0x144798[_0x3fd2a4(0x147f)]()});}):_0x258a92[_0x46364c(0x83a)][_0x46364c(0xbf7)]({'fields':_0x46364c(0x43c),'sort':'id','nolimit':_0x46364c(0x44d)})[_0x46364c(0x1d77)]['then'](function(_0x3012de){const _0x522391=_0x46364c;_0x2c22e2[_0x522391(0xbb3)]=_0x3012de[_0x522391(0x2214)]||[];})[_0x46364c(0x1cb0)](function(){const _0x525315=_0x46364c;return _0x258a92[_0x525315(0x2199)]['get']({'userProfileId':_0x2c22e2[_0x525315(0xe76)][_0x525315(0x13c1)],'sectionId':0x836})[_0x525315(0x1d77)];})[_0x46364c(0x1cb0)](function(_0x21fee2){const _0x368709=_0x46364c,_0x238cd3=_0x21fee2&&_0x21fee2[_0x368709(0x2214)]?_0x21fee2['rows'][0x0]:null;if(!_0x238cd3){const _0x1c3382=[];let _0x29d85b=null;_0x2c22e2[_0x368709(0x1835)]&&(_0x29d85b=_0x39641b()['find'](_0x2c22e2['whatsappAccounts'],{'id':Number(_0x2c22e2[_0x368709(0x1835)][_0x368709(0x327)])}));for(let _0x2da900=0x0;_0x2da900<_0x2c22e2[_0x368709(0xbb3)][_0x368709(0xfd0)];_0x2da900++){_0x29d85b&&_0x2c22e2['whatsappAccounts'][_0x2da900]['id']===_0x29d85b['id']&&(_0x2c22e2[_0x368709(0xbb3)][_0x2da900]['canSelect']=![],_0x1c3382[_0x368709(0x2785)](_0x2c22e2[_0x368709(0xbb3)][_0x2da900]));}_0x2c22e2[_0x368709(0xbb3)]=_0x1c3382;}else{if(!_0x238cd3['autoAssociation'])return _0x258a92[_0x368709(0x1198)][_0x368709(0xbf7)]({'sectionId':_0x238cd3['id']})['$promise'][_0x368709(0x1cb0)](function(_0x3a8a2d){const _0x5425ca=_0x368709,_0x283212=_0x39641b()['map'](_0x3a8a2d[_0x5425ca(0x2214)],function(_0x4216f1){return _0x39641b()['find'](_0x2c22e2['whatsappAccounts'],{'id':_0x4216f1['resourceId']});});let _0x48dfb0=null;_0x2c22e2[_0x5425ca(0x1835)]&&(_0x48dfb0=_0x39641b()[_0x5425ca(0x13b4)](_0x2c22e2[_0x5425ca(0xbb3)],{'id':Number(_0x2c22e2[_0x5425ca(0x1835)][_0x5425ca(0x327)])}));if(_0x48dfb0&&!_0x39641b()[_0x5425ca(0x727)](_0x283212,['id',_0x48dfb0['id']])){const _0x87eab2=_0x39641b()['find'](_0x2c22e2['whatsappAccounts'],{'id':_0x48dfb0['id']});_0x87eab2[_0x5425ca(0x15da)]=![],_0x283212['push'](_0x87eab2);}_0x2c22e2[_0x5425ca(0xbb3)]=_0x283212;});}})[_0x46364c(0x1c4)](function(_0x1103c6){const _0x28b90d=_0x46364c;_0xd205e0['error']({'title':_0x1103c6[_0x28b90d(0x291)]?_0x28b90d(0xeb9)+_0x1103c6[_0x28b90d(0x291)]+_0x28b90d(0x1657)+_0x1103c6['statusText']:'SYSTEM:GETwhatsappAccounts','msg':_0x1103c6[_0x28b90d(0x25c)]?JSON['stringify'](_0x1103c6[_0x28b90d(0x25c)]):_0x1103c6['toString']()});}),_0x3d95eb[_0x46364c(0x22b6)](_0x46364c(0x1c60))?_0x258a92[_0x46364c(0xb91)]['get']({'fields':_0x46364c(0x43c),'sort':'id','nolimit':_0x46364c(0x44d)})['$promise']['then'](function(_0x355688){const _0x7e768e=_0x46364c;_0x2c22e2['faxAccounts']=_0x355688[_0x7e768e(0x2214)]||[];})['catch'](function(_0x2fb5ad){const _0x2e46c6=_0x46364c;_0xd205e0[_0x2e46c6(0x218e)]({'title':_0x2fb5ad[_0x2e46c6(0x291)]?_0x2e46c6(0xeb9)+_0x2fb5ad['status']+_0x2e46c6(0x1657)+_0x2fb5ad[_0x2e46c6(0xc22)]:_0x2e46c6(0x286),'msg':_0x2fb5ad[_0x2e46c6(0x25c)]?JSON[_0x2e46c6(0x2701)](_0x2fb5ad[_0x2e46c6(0x25c)]):_0x2fb5ad[_0x2e46c6(0x147f)]()});}):_0x258a92[_0x46364c(0xb91)][_0x46364c(0xbf7)]({'fields':_0x46364c(0x43c),'sort':'id','nolimit':_0x46364c(0x44d)})['$promise'][_0x46364c(0x1cb0)](function(_0x5f3b62){const _0x13fa40=_0x46364c;_0x2c22e2[_0x13fa40(0x29de)]=_0x5f3b62[_0x13fa40(0x2214)]||[];})[_0x46364c(0x1cb0)](function(){const _0x2d826b=_0x46364c;return _0x258a92[_0x2d826b(0x2199)][_0x2d826b(0xbf7)]({'userProfileId':_0x2c22e2[_0x2d826b(0xe76)][_0x2d826b(0x13c1)],'sectionId':0x386})[_0x2d826b(0x1d77)];})['then'](function(_0x3f70c1){const _0x265455=_0x46364c,_0x26b927=_0x3f70c1&&_0x3f70c1[_0x265455(0x2214)]?_0x3f70c1[_0x265455(0x2214)][0x0]:null;if(!_0x26b927){const _0x48f863=[];let _0x13ee4f=null;_0x2c22e2[_0x265455(0x1835)]&&(_0x13ee4f=_0x39641b()['find'](_0x2c22e2[_0x265455(0x29de)],{'id':Number(_0x2c22e2[_0x265455(0x1835)]['value'])}));for(let _0x58f8af=0x0;_0x58f8af<_0x2c22e2['faxAccounts']['length'];_0x58f8af++){_0x13ee4f&&_0x2c22e2[_0x265455(0x29de)][_0x58f8af]['id']===_0x13ee4f['id']&&(_0x2c22e2[_0x265455(0x29de)][_0x58f8af][_0x265455(0x15da)]=![],_0x48f863['push'](_0x2c22e2[_0x265455(0x29de)][_0x58f8af]));}_0x2c22e2['faxAccounts']=_0x48f863;}else{if(!_0x26b927[_0x265455(0x12f4)])return _0x258a92['userProfileResource'][_0x265455(0xbf7)]({'sectionId':_0x26b927['id']})['$promise']['then'](function(_0xcb6d86){const _0x491b18=_0x265455,_0x3ea8d3=_0x39641b()[_0x491b18(0x1de2)](_0xcb6d86[_0x491b18(0x2214)],function(_0x311c9e){const _0x526fe=_0x491b18;return _0x39641b()[_0x526fe(0x13b4)](_0x2c22e2[_0x526fe(0x29de)],{'id':_0x311c9e[_0x526fe(0x2982)]});});let _0x1e05e9=null;_0x2c22e2[_0x491b18(0x1835)]&&(_0x1e05e9=_0x39641b()[_0x491b18(0x13b4)](_0x2c22e2['faxAccounts'],{'id':Number(_0x2c22e2[_0x491b18(0x1835)][_0x491b18(0x327)])}));if(_0x1e05e9&&!_0x39641b()[_0x491b18(0x727)](_0x3ea8d3,['id',_0x1e05e9['id']])){const _0x1a38a7=_0x39641b()['find'](_0x2c22e2[_0x491b18(0x29de)],{'id':_0x1e05e9['id']});_0x1a38a7[_0x491b18(0x15da)]=![],_0x3ea8d3[_0x491b18(0x2785)](_0x1a38a7);}_0x2c22e2[_0x491b18(0x29de)]=_0x3ea8d3;});}})[_0x46364c(0x1c4)](function(_0x3d923d){const _0x354695=_0x46364c;_0xd205e0['error']({'title':_0x3d923d[_0x354695(0x291)]?_0x354695(0xeb9)+_0x3d923d[_0x354695(0x291)]+_0x354695(0x1657)+_0x3d923d[_0x354695(0xc22)]:_0x354695(0xf1f),'msg':_0x3d923d[_0x354695(0x25c)]?JSON[_0x354695(0x2701)](_0x3d923d[_0x354695(0x25c)]):_0x3d923d[_0x354695(0x147f)]()});}),_0x3d95eb['hasRole'](_0x46364c(0x1c60))?_0x258a92[_0x46364c(0x80e)][_0x46364c(0xbf7)]({'fields':_0x46364c(0x43c),'sort':'id','nolimit':_0x46364c(0x44d)})[_0x46364c(0x1d77)][_0x46364c(0x1cb0)](function(_0x5be703){const _0x1f410e=_0x46364c;_0x2c22e2[_0x1f410e(0xe5c)]=_0x5be703[_0x1f410e(0x2214)]||[];})[_0x46364c(0x1c4)](function(_0x2fbe88){const _0x33fa98=_0x46364c;_0xd205e0[_0x33fa98(0x218e)]({'title':_0x2fbe88[_0x33fa98(0x291)]?_0x33fa98(0xeb9)+_0x2fbe88['status']+_0x33fa98(0x1657)+_0x2fbe88[_0x33fa98(0xc22)]:_0x33fa98(0x223),'msg':_0x2fbe88[_0x33fa98(0x25c)]?JSON[_0x33fa98(0x2701)](_0x2fbe88['data']):_0x2fbe88['toString']()});}):_0x258a92['openchannelAccount'][_0x46364c(0xbf7)]({'fields':_0x46364c(0x43c),'sort':'id','nolimit':_0x46364c(0x44d)})[_0x46364c(0x1d77)]['then'](function(_0x585e6f){const _0x3f674a=_0x46364c;_0x2c22e2[_0x3f674a(0xe5c)]=_0x585e6f[_0x3f674a(0x2214)]||[];})[_0x46364c(0x1cb0)](function(){const _0x31c316=_0x46364c;return _0x258a92[_0x31c316(0x2199)]['get']({'userProfileId':_0x2c22e2['currentUser']['userProfileId'],'sectionId':0x322})['$promise'];})[_0x46364c(0x1cb0)](function(_0x21a420){const _0x350c66=_0x46364c,_0x330868=_0x21a420&&_0x21a420[_0x350c66(0x2214)]?_0x21a420[_0x350c66(0x2214)][0x0]:null;if(!_0x330868){const _0x4ac9e4=[];let _0x6b08c=null;_0x2c22e2['allCondition']&&(_0x6b08c=_0x39641b()[_0x350c66(0x13b4)](_0x2c22e2['openchannelAccounts'],{'id':Number(_0x2c22e2[_0x350c66(0x1835)][_0x350c66(0x327)])}));for(let _0x34e491=0x0;_0x34e491<_0x2c22e2[_0x350c66(0xe5c)][_0x350c66(0xfd0)];_0x34e491++){_0x6b08c&&_0x2c22e2[_0x350c66(0xe5c)][_0x34e491]['id']===_0x6b08c['id']&&(_0x2c22e2['openchannelAccounts'][_0x34e491]['canSelect']=![],_0x4ac9e4[_0x350c66(0x2785)](_0x2c22e2[_0x350c66(0xe5c)][_0x34e491]));}_0x2c22e2[_0x350c66(0xe5c)]=_0x4ac9e4;}else{if(!_0x330868[_0x350c66(0x12f4)])return _0x258a92[_0x350c66(0x1198)]['get']({'sectionId':_0x330868['id']})['$promise'][_0x350c66(0x1cb0)](function(_0x3cc1b2){const _0x481f6b=_0x350c66,_0x287350=_0x39641b()[_0x481f6b(0x1de2)](_0x3cc1b2[_0x481f6b(0x2214)],function(_0x589665){const _0x51a9f9=_0x481f6b;return _0x39641b()[_0x51a9f9(0x13b4)](_0x2c22e2[_0x51a9f9(0xe5c)],{'id':_0x589665[_0x51a9f9(0x2982)]});});let _0x522227=null;_0x2c22e2['allCondition']&&(_0x522227=_0x39641b()['find'](_0x2c22e2[_0x481f6b(0xe5c)],{'id':Number(_0x2c22e2[_0x481f6b(0x1835)][_0x481f6b(0x327)])}));if(_0x522227&&!_0x39641b()['some'](_0x287350,['id',_0x522227['id']])){const _0x4d02c7=_0x39641b()[_0x481f6b(0x13b4)](_0x2c22e2[_0x481f6b(0xe5c)],{'id':_0x522227['id']});_0x4d02c7['canSelect']=![],_0x287350[_0x481f6b(0x2785)](_0x4d02c7);}_0x2c22e2[_0x481f6b(0xe5c)]=_0x287350;});}})[_0x46364c(0x1c4)](function(_0x516d70){const _0x50ec91=_0x46364c;_0xd205e0['error']({'title':_0x516d70['status']?_0x50ec91(0xeb9)+_0x516d70[_0x50ec91(0x291)]+'\x20-\x20'+_0x516d70[_0x50ec91(0xc22)]:_0x50ec91(0x1908),'msg':_0x516d70[_0x50ec91(0x25c)]?JSON[_0x50ec91(0x2701)](_0x516d70[_0x50ec91(0x25c)]):_0x516d70[_0x50ec91(0x147f)]()});});const _0x20f28a=[{'id':0x191,'type':'inbound'},{'id':0x5dd,'type':_0x46364c(0x895)}];let _0x43dd9c=null;_0x3d95eb['hasRole'](_0x46364c(0x1c60))?_0x258a92['voiceQueue'][_0x46364c(0xbf7)]({'fields':_0x46364c(0x1896),'sort':_0x46364c(0x16b6),'nolimit':_0x46364c(0x44d)})[_0x46364c(0x1d77)][_0x46364c(0x1cb0)](function(_0xc1ab3f){const _0x1fda09=_0x46364c;_0x2c22e2[_0x1fda09(0x971)]=_0xc1ab3f['rows']||[];})[_0x46364c(0x1c4)](function(_0x2790ae){const _0x4f47fb=_0x46364c;_0xd205e0['error']({'title':_0x2790ae['status']?'API:'+_0x2790ae['status']+_0x4f47fb(0x1657)+_0x2790ae['statusText']:_0x4f47fb(0x277c),'msg':_0x2790ae[_0x4f47fb(0x25c)]?JSON[_0x4f47fb(0x2701)](_0x2790ae[_0x4f47fb(0x25c)]):_0x2790ae[_0x4f47fb(0x147f)]()});}):_0x258a92['voiceQueue'][_0x46364c(0xbf7)]({'fields':'id,name,type','sort':_0x46364c(0x16b6),'nolimit':_0x46364c(0x44d)})[_0x46364c(0x1d77)][_0x46364c(0x1cb0)](function(_0x467658){const _0x52ac72=_0x46364c;_0x43dd9c=_0x467658[_0x52ac72(0x2214)]||[];})[_0x46364c(0x1cb0)](function(){const _0x44dc14=_0x46364c,_0x2ca9dd=[];for(let _0x1506fd=0x0;_0x1506fd<_0x20f28a['length'];_0x1506fd++){_0x2ca9dd['push'](_0x258a92[_0x44dc14(0x2199)][_0x44dc14(0xbf7)]({'userProfileId':_0x2c22e2[_0x44dc14(0xe76)][_0x44dc14(0x13c1)],'sectionId':_0x20f28a[_0x1506fd]['id']})[_0x44dc14(0x1d77)]);}return _0x549bce['all'](_0x2ca9dd);})[_0x46364c(0x1cb0)](function(_0xedae68){const _0x184648=_0x46364c,_0x376fcb=_0x39641b()[_0x184648(0x1de2)](_0xedae68,function(_0x1faeb1){const _0x18dff6=_0x184648;return _0x1faeb1&&_0x1faeb1[_0x18dff6(0x2214)]?_0x1faeb1[_0x18dff6(0x2214)][0x0]:null;}),_0x71ec56=[];for(let _0x5a1229=0x0;_0x5a1229<_0x20f28a[_0x184648(0xfd0)];_0x5a1229++){const _0x3c5756=_0x39641b()['find'](_0x376fcb,['sectionId',_0x20f28a[_0x5a1229]['id']]);if(_0x3c5756){if(!_0x3c5756['autoAssociation'])_0x71ec56['push'](_0x258a92['userProfileResource'][_0x184648(0xbf7)]({'sectionId':_0x3c5756['id']})[_0x184648(0x1d77)]);else{const _0x4ef843=[];_0x43dd9c[_0x184648(0xf90)](function(_0x4126e8){const _0x255f0a=_0x184648;_0x4126e8[_0x255f0a(0x66a)]===_0x20f28a[_0x5a1229]['type']&&_0x4ef843[_0x255f0a(0x2785)](_0x4126e8);}),_0x71ec56[_0x184648(0x2785)]({'rows':_0x4ef843,'count':_0x4ef843['length']});}}}return _0x549bce[_0x184648(0x223b)](_0x71ec56);})[_0x46364c(0x1cb0)](function(_0x3714fb){const _0x476029=_0x46364c,_0x24a177=[];let _0x1cc5dc=null;_0x2c22e2[_0x476029(0x1835)]&&(_0x1cc5dc=_0x39641b()[_0x476029(0x13b4)](_0x43dd9c,{'name':_0x2c22e2[_0x476029(0x1835)][_0x476029(0x327)]}));for(let _0x4c0147=0x0;_0x4c0147<_0x3714fb[_0x476029(0xfd0)];_0x4c0147++){const _0x415130=_0x3714fb[_0x4c0147]['rows']||[];_0x415130[_0x476029(0xf90)](function(_0x3f3998){const _0x10ee77=_0x476029;_0x24a177[_0x10ee77(0x2785)](_0x3f3998);});}_0x1cc5dc&&!_0x39641b()[_0x476029(0x727)](_0x24a177,[_0x476029(0x2982),_0x1cc5dc['id']])&&_0x43dd9c['forEach'](function(_0x1e6f0d){const _0x48c21f=_0x476029;_0x1e6f0d['id']===_0x1cc5dc['id']&&(_0x1e6f0d[_0x48c21f(0x15da)]=![],_0x24a177['push'](_0x1e6f0d));}),_0x2c22e2['queues']=_0x24a177;})['catch'](function(_0x495c2b){const _0x5a45fd=_0x46364c;_0xd205e0[_0x5a45fd(0x218e)]({'title':_0x495c2b[_0x5a45fd(0x291)]?_0x5a45fd(0xeb9)+_0x495c2b[_0x5a45fd(0x291)]+_0x5a45fd(0x1657)+_0x495c2b['statusText']:_0x5a45fd(0x1af2),'msg':_0x495c2b[_0x5a45fd(0x25c)]?JSON[_0x5a45fd(0x2701)](_0x495c2b[_0x5a45fd(0x25c)]):_0x495c2b[_0x5a45fd(0x147f)]()});}),_0x3d95eb[_0x46364c(0x22b6)](_0x46364c(0x1c60))?_0x258a92[_0x46364c(0x1059)][_0x46364c(0xbf7)]({'fields':_0x46364c(0x286f),'type':_0x46364c(0x895),'VoiceExtensionId':'null','nolimit':_0x46364c(0x44d)})['$promise'][_0x46364c(0x1cb0)](function(_0x5194e7){_0x2c22e2['outboundRoutes']=_0x5194e7['rows']||[];})[_0x46364c(0x1c4)](function(_0x345e40){const _0x3f22ee=_0x46364c;_0xd205e0[_0x3f22ee(0x218e)]({'title':_0x345e40[_0x3f22ee(0x291)]?_0x3f22ee(0xeb9)+_0x345e40['status']+_0x3f22ee(0x1657)+_0x345e40['statusText']:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x345e40['data']?JSON[_0x3f22ee(0x2701)](_0x345e40[_0x3f22ee(0x25c)]):_0x345e40[_0x3f22ee(0x147f)]()});}):_0x258a92['voiceExtension'][_0x46364c(0xbf7)]({'fields':'id,exten','type':'outbound','VoiceExtensionId':_0x46364c(0xd38),'nolimit':_0x46364c(0x44d)})[_0x46364c(0x1d77)][_0x46364c(0x1cb0)](function(_0x4d3b26){const _0x20bcb9=_0x46364c;_0x2c22e2[_0x20bcb9(0xe57)]=_0x4d3b26[_0x20bcb9(0x2214)]||[];})['then'](function(){const _0xaaadef=_0x46364c;return _0x258a92[_0xaaadef(0x2199)][_0xaaadef(0xbf7)]({'userProfileId':_0x2c22e2[_0xaaadef(0xe76)][_0xaaadef(0x13c1)],'sectionId':0x193})[_0xaaadef(0x1d77)];})[_0x46364c(0x1cb0)](function(_0x109b0f){const _0x3a6cb8=_0x46364c,_0x49f839=_0x109b0f&&_0x109b0f[_0x3a6cb8(0x2214)]?_0x109b0f['rows'][0x0]:null;if(!_0x49f839){const _0x5e62ec=[];let _0x137f03=null;_0x2c22e2['allCondition']&&(_0x137f03=_0x39641b()[_0x3a6cb8(0x13b4)](_0x2c22e2[_0x3a6cb8(0xe57)],{'id':Number(_0x2c22e2[_0x3a6cb8(0x1835)]['value'])}));for(let _0x5e123d=0x0;_0x5e123d<_0x2c22e2[_0x3a6cb8(0xe57)][_0x3a6cb8(0xfd0)];_0x5e123d++){_0x137f03&&_0x2c22e2[_0x3a6cb8(0xe57)][_0x5e123d]['id']===_0x137f03['id']&&(_0x2c22e2[_0x3a6cb8(0xe57)][_0x5e123d][_0x3a6cb8(0x15da)]=![],_0x5e62ec['push'](_0x2c22e2[_0x3a6cb8(0xe57)][_0x5e123d]));}_0x2c22e2[_0x3a6cb8(0xe57)]=_0x5e62ec;}else{if(!_0x49f839['autoAssociation'])return _0x258a92[_0x3a6cb8(0x1198)]['get']({'sectionId':_0x49f839['id']})[_0x3a6cb8(0x1d77)][_0x3a6cb8(0x1cb0)](function(_0x1e603b){const _0x9bcaca=_0x3a6cb8,_0x1e44b0=_0x39641b()[_0x9bcaca(0x1de2)](_0x1e603b[_0x9bcaca(0x2214)],function(_0x5ed9d6){const _0x2fe859=_0x9bcaca;return _0x39641b()[_0x2fe859(0x13b4)](_0x2c22e2[_0x2fe859(0xe57)],{'id':_0x5ed9d6['resourceId']});});let _0x3c2f5a=null;_0x2c22e2[_0x9bcaca(0x1835)]&&(_0x3c2f5a=_0x39641b()[_0x9bcaca(0x13b4)](_0x2c22e2[_0x9bcaca(0xe57)],{'id':Number(_0x2c22e2[_0x9bcaca(0x1835)][_0x9bcaca(0x327)])}));if(_0x3c2f5a&&!_0x39641b()[_0x9bcaca(0x727)](_0x1e44b0,['id',_0x3c2f5a['id']])){const _0x41b3f1=_0x39641b()[_0x9bcaca(0x13b4)](_0x2c22e2['outboundRoutes'],{'id':_0x3c2f5a['id']});_0x41b3f1[_0x9bcaca(0x15da)]=![],_0x1e44b0[_0x9bcaca(0x2785)](_0x41b3f1);}_0x2c22e2['outboundRoutes']=_0x1e44b0;});}})[_0x46364c(0x1c4)](function(_0x5d6dd5){const _0x202b2b=_0x46364c;_0xd205e0['error']({'title':_0x5d6dd5['status']?'API:'+_0x5d6dd5['status']+_0x202b2b(0x1657)+_0x5d6dd5[_0x202b2b(0xc22)]:_0x202b2b(0x15c5),'msg':_0x5d6dd5[_0x202b2b(0x25c)]?JSON['stringify'](_0x5d6dd5[_0x202b2b(0x25c)]):_0x5d6dd5[_0x202b2b(0x147f)]()});}),_0x3d95eb['hasRole'](_0x46364c(0x1c60))?_0x258a92[_0x46364c(0xebe)]['get']({'fields':'id,name,fullname','sort':'name','role':_0x46364c(0x1eff),'nolimit':_0x46364c(0x44d)})[_0x46364c(0x1d77)][_0x46364c(0x1cb0)](function(_0x4d509b){const _0x38ec12=_0x46364c;_0x2c22e2[_0x38ec12(0xc12)]=_0x4d509b[_0x38ec12(0x2214)]||[];})[_0x46364c(0x1c4)](function(_0x5d3f1f){const _0x16f330=_0x46364c;_0xd205e0[_0x16f330(0x218e)]({'title':_0x5d3f1f[_0x16f330(0x291)]?_0x16f330(0xeb9)+_0x5d3f1f[_0x16f330(0x291)]+_0x16f330(0x1657)+_0x5d3f1f[_0x16f330(0xc22)]:_0x16f330(0x799),'msg':_0x5d3f1f['data']?JSON[_0x16f330(0x2701)](_0x5d3f1f[_0x16f330(0x25c)]):_0x5d3f1f[_0x16f330(0x147f)]()});}):_0x258a92[_0x46364c(0xebe)]['get']({'fields':_0x46364c(0x1d34),'sort':_0x46364c(0x16b6),'role':_0x46364c(0x1eff),'nolimit':'true'})['$promise'][_0x46364c(0x1cb0)](function(_0x44a29c){const _0x534d64=_0x46364c;_0x2c22e2[_0x534d64(0xc12)]=_0x44a29c[_0x534d64(0x2214)]||[];})[_0x46364c(0x1cb0)](function(){const _0x5e8a0a=_0x46364c;return _0x258a92[_0x5e8a0a(0x2199)][_0x5e8a0a(0xbf7)]({'userProfileId':_0x2c22e2[_0x5e8a0a(0xe76)][_0x5e8a0a(0x13c1)],'sectionId':0xca})[_0x5e8a0a(0x1d77)];})[_0x46364c(0x1cb0)](function(_0x148d64){const _0x4adf01=_0x46364c,_0x58b8b4=_0x148d64&&_0x148d64[_0x4adf01(0x2214)]?_0x148d64['rows'][0x0]:null;if(!_0x58b8b4){const _0x434b76=[];let _0x407479=null;_0x2c22e2[_0x4adf01(0x1835)]&&(_0x407479=_0x39641b()[_0x4adf01(0x13b4)](_0x2c22e2[_0x4adf01(0xc12)],{'name':_0x2c22e2[_0x4adf01(0x1835)][_0x4adf01(0x327)]}));for(let _0x1dab26=0x0;_0x1dab26<_0x2c22e2[_0x4adf01(0xc12)][_0x4adf01(0xfd0)];_0x1dab26++){_0x407479&&_0x2c22e2[_0x4adf01(0xc12)][_0x1dab26]['id']===_0x407479['id']&&(_0x2c22e2['agents'][_0x1dab26][_0x4adf01(0x15da)]=![],_0x434b76[_0x4adf01(0x2785)](_0x2c22e2['agents'][_0x1dab26]));}_0x2c22e2['agents']=_0x434b76;}else{if(!_0x58b8b4[_0x4adf01(0x12f4)])return _0x258a92[_0x4adf01(0x1198)][_0x4adf01(0xbf7)]({'sectionId':_0x58b8b4['id']})[_0x4adf01(0x1d77)][_0x4adf01(0x1cb0)](function(_0x9abc8a){const _0x341d9f=_0x4adf01,_0x4758bc=_0x39641b()[_0x341d9f(0x1de2)](_0x9abc8a[_0x341d9f(0x2214)],function(_0x305a01){const _0x58a217=_0x341d9f;return _0x39641b()[_0x58a217(0x13b4)](_0x2c22e2['agents'],{'id':_0x305a01[_0x58a217(0x2982)]});});let _0x4494d7=null;_0x2c22e2[_0x341d9f(0x1835)]&&(_0x4494d7=_0x39641b()[_0x341d9f(0x13b4)](_0x2c22e2[_0x341d9f(0xc12)],{'name':_0x2c22e2[_0x341d9f(0x1835)][_0x341d9f(0x327)]}));if(_0x4494d7&&!_0x39641b()['some'](_0x4758bc,['id',_0x4494d7['id']])){const _0x2ce11e=_0x39641b()['find'](_0x2c22e2['agents'],{'id':_0x4494d7['id']});_0x2ce11e[_0x341d9f(0x15da)]=![],_0x4758bc[_0x341d9f(0x2785)](_0x2ce11e);}_0x2c22e2[_0x341d9f(0xc12)]=_0x4758bc;});}})['catch'](function(_0x5a64b7){const _0x5c6bd5=_0x46364c;_0xd205e0[_0x5c6bd5(0x218e)]({'title':_0x5a64b7[_0x5c6bd5(0x291)]?_0x5c6bd5(0xeb9)+_0x5a64b7[_0x5c6bd5(0x291)]+_0x5c6bd5(0x1657)+_0x5a64b7[_0x5c6bd5(0xc22)]:_0x5c6bd5(0x2159),'msg':_0x5a64b7['data']?JSON['stringify'](_0x5a64b7[_0x5c6bd5(0x25c)]):_0x5a64b7[_0x5c6bd5(0x147f)]()});});function _0x1090d6(){const _0x3f7c40=_0x46364c;_0x2c22e2[_0x3f7c40(0x1a7c)]=[],_0x258a92[_0x3f7c40(0x497)][_0x3f7c40(0x170b)]({'id':_0x2b5f8e['params']['id']},_0x2c22e2[_0x3f7c40(0x1835)])[_0x3f7c40(0x1d77)][_0x3f7c40(0x1cb0)](function(_0x265db3){const _0x3f9a6c=_0x3f7c40;_0x2c22e2['allconditions'][_0x3f9a6c(0xf63)](_0x265db3[_0x3f9a6c(0x19b2)]()),_0xd205e0[_0x3f9a6c(0x829)]({'title':_0x3f9a6c(0x6f2),'msg':_0x2c22e2[_0x3f9a6c(0x1835)][_0x3f9a6c(0x16b6)]?_0x2c22e2[_0x3f9a6c(0x1835)][_0x3f9a6c(0x16b6)]+_0x3f9a6c(0x470):''}),_0x47a1ed(_0x265db3);})[_0x3f7c40(0x1c4)](function(_0xdb7f35){const _0x1cd60e=_0x3f7c40;if(_0xdb7f35[_0x1cd60e(0x25c)]&&_0xdb7f35[_0x1cd60e(0x25c)][_0x1cd60e(0x1a7c)]&&_0xdb7f35[_0x1cd60e(0x25c)][_0x1cd60e(0x1a7c)]['length']){_0x2c22e2['errors']=_0xdb7f35[_0x1cd60e(0x25c)][_0x1cd60e(0x1a7c)]||[{'message':_0xdb7f35[_0x1cd60e(0x147f)](),'type':_0x1cd60e(0x23a3)}];for(let _0x48d3dc=0x0;_0x48d3dc<_0xdb7f35[_0x1cd60e(0x25c)]['errors'][_0x1cd60e(0xfd0)];_0x48d3dc+=0x1){_0xd205e0[_0x1cd60e(0x218e)]({'title':_0xdb7f35[_0x1cd60e(0x25c)][_0x1cd60e(0x1a7c)][_0x48d3dc]['type'],'msg':_0xdb7f35[_0x1cd60e(0x25c)][_0x1cd60e(0x1a7c)][_0x48d3dc][_0x1cd60e(0x155e)]});}}else _0xd205e0['error']({'title':_0xdb7f35['status']?_0x1cd60e(0xeb9)+_0xdb7f35['status']+_0x1cd60e(0x1657)+_0xdb7f35['statusText']:_0x1cd60e(0x23a3),'msg':_0xdb7f35[_0x1cd60e(0x25c)]?JSON[_0x1cd60e(0x2701)](_0xdb7f35[_0x1cd60e(0x25c)][_0x1cd60e(0x155e)]):_0xdb7f35[_0x1cd60e(0x147f)]()});});}function _0x5abfdf(){const _0x430bd0=_0x46364c;_0x2c22e2['errors']=[],_0x258a92[_0x430bd0(0x166c)][_0x430bd0(0x687)]({'id':_0x2c22e2['allCondition']['id']},_0x2c22e2[_0x430bd0(0x1835)])[_0x430bd0(0x1d77)][_0x430bd0(0x1cb0)](function(_0x48d7b3){const _0x5e5e1d=_0x430bd0,_0x35b906=_0x39641b()['find'](_0x2c22e2[_0x5e5e1d(0x668)],{'id':_0x48d7b3['id']});_0x35b906&&_0x39641b()[_0x5e5e1d(0x9c1)](_0x35b906,_0x39641b()[_0x5e5e1d(0x169b)](_0x48d7b3[_0x5e5e1d(0x19b2)](),_0x39641b()[_0x5e5e1d(0x1be5)](_0x35b906))),_0xd205e0[_0x5e5e1d(0x829)]({'title':_0x5e5e1d(0x23fa),'msg':_0x2c22e2[_0x5e5e1d(0x1835)]['name']?_0x2c22e2[_0x5e5e1d(0x1835)]['name']+_0x5e5e1d(0xedb):''}),_0x47a1ed(_0x48d7b3);})[_0x430bd0(0x1c4)](function(_0x4c4c3e){const _0x1541a6=_0x430bd0;if(_0x4c4c3e[_0x1541a6(0x25c)]&&_0x4c4c3e[_0x1541a6(0x25c)][_0x1541a6(0x1a7c)]&&_0x4c4c3e[_0x1541a6(0x25c)][_0x1541a6(0x1a7c)][_0x1541a6(0xfd0)]){_0x2c22e2[_0x1541a6(0x1a7c)]=_0x4c4c3e[_0x1541a6(0x25c)][_0x1541a6(0x1a7c)]||[{'message':_0x4c4c3e[_0x1541a6(0x147f)](),'type':_0x1541a6(0x229f)}];for(let _0x2a01d5=0x0;_0x2a01d5<_0x4c4c3e[_0x1541a6(0x25c)][_0x1541a6(0x1a7c)][_0x1541a6(0xfd0)];_0x2a01d5++){_0xd205e0[_0x1541a6(0x218e)]({'title':_0x4c4c3e[_0x1541a6(0x25c)][_0x1541a6(0x1a7c)][_0x2a01d5]['type'],'msg':_0x4c4c3e[_0x1541a6(0x25c)][_0x1541a6(0x1a7c)][_0x2a01d5]['message']});}}else _0xd205e0['error']({'title':_0x4c4c3e[_0x1541a6(0x291)]?_0x1541a6(0xeb9)+_0x4c4c3e[_0x1541a6(0x291)]+_0x1541a6(0x1657)+_0x4c4c3e[_0x1541a6(0xc22)]:'api.condition.update','msg':_0x4c4c3e[_0x1541a6(0x25c)]?JSON[_0x1541a6(0x2701)](_0x4c4c3e['data'][_0x1541a6(0x155e)]):_0x4c4c3e[_0x1541a6(0x147f)]()});});}function _0x4d293b(_0xbf6cfd){const _0x703088=_0x46364c;_0x2c22e2[_0x703088(0x1a7c)]=[];const _0x1b6c12=_0x26077c[_0x703088(0x1551)]()[_0x703088(0x1386)](_0x703088(0x1a2e))[_0x703088(0x862)](_0x703088(0x1bc8))[_0x703088(0x15ad)](_0x703088(0x19bd))['ok']('Delete')[_0x703088(0x696)](_0x703088(0xde1))['targetEvent'](_0xbf6cfd);_0x26077c['show'](_0x1b6c12)[_0x703088(0x1cb0)](function(){const _0x5de017=_0x703088;_0x258a92[_0x5de017(0x166c)][_0x5de017(0x111d)]({'id':_0x2c22e2[_0x5de017(0x1835)]['id']})[_0x5de017(0x1d77)][_0x5de017(0x1cb0)](function(){const _0x4d5fd2=_0x5de017;_0x39641b()['remove'](_0x2c22e2[_0x4d5fd2(0x668)],{'id':_0x2c22e2['allCondition']['id']}),_0xd205e0[_0x4d5fd2(0x829)]({'title':_0x4d5fd2(0xc42),'msg':(_0x2c22e2['allCondition']['name']||_0x4d5fd2(0x1835))+'\x20has\x20been\x20deleted!'}),_0x47a1ed(_0x2c22e2[_0x4d5fd2(0x1835)]);})[_0x5de017(0x1c4)](function(_0x46af44){const _0x37e93d=_0x5de017;if(_0x46af44[_0x37e93d(0x25c)]&&_0x46af44[_0x37e93d(0x25c)][_0x37e93d(0x1a7c)]&&_0x46af44['data']['errors'][_0x37e93d(0xfd0)]){_0x2c22e2['errors']=_0x46af44['data'][_0x37e93d(0x1a7c)]||[{'message':_0x46af44[_0x37e93d(0x147f)](),'type':_0x37e93d(0xcc8)}];for(let _0x4067d1=0x0;_0x4067d1<_0x46af44[_0x37e93d(0x25c)][_0x37e93d(0x1a7c)][_0x37e93d(0xfd0)];_0x4067d1++){_0xd205e0[_0x37e93d(0x218e)]({'title':_0x46af44[_0x37e93d(0x25c)]['errors'][_0x4067d1][_0x37e93d(0x66a)],'msg':_0x46af44[_0x37e93d(0x25c)][_0x37e93d(0x1a7c)][_0x4067d1]['message']});}}else _0xd205e0[_0x37e93d(0x218e)]({'title':_0x46af44[_0x37e93d(0x291)]?_0x37e93d(0xeb9)+_0x46af44[_0x37e93d(0x291)]+_0x37e93d(0x1657)+_0x46af44[_0x37e93d(0xc22)]:_0x37e93d(0xcc8),'msg':_0x46af44[_0x37e93d(0x25c)]?JSON[_0x37e93d(0x2701)](_0x46af44[_0x37e93d(0x25c)][_0x37e93d(0x155e)]):_0x46af44[_0x37e93d(0x155e)]||_0x46af44['toString']()});});},function(){});}function _0x14c9e6(_0x14550a){return _0x14550a===null?undefined:new Date(_0x14550a);}function _0x47a1ed(_0x2d62fa){const _0x478b94=_0x46364c;_0x26077c[_0x478b94(0x1426)](_0x2d62fa);}}const _0x10b123=_0x33e91b;;const _0x58ea11=_0x5074a3['p']+_0x5537c6(0x2677);;_0x46de01[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$q','$translate',_0x5537c6(0x2168),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1774)];function _0x46de01(_0x482555,_0x6a77ad,_0x7acd22,_0x40300a,_0x1696a2,_0x405a96,_0x3359b0,_0x55c201,_0xe42eac){const _0x516cb6=_0x5537c6,_0x4850f1=this;_0x4850f1['currentUser']=_0xe42eac[_0x516cb6(0x21e8)](),_0x4850f1[_0x516cb6(0x497)]={},_0x4850f1[_0x516cb6(0x23ce)]={'count':0x0,'rows':[]},_0x4850f1[_0x516cb6(0xb9c)]=[],_0x4850f1[_0x516cb6(0xae2)]={'fields':_0x516cb6(0x13ce),'limit':0xa,'page':0x1},_0x4850f1[_0x516cb6(0x355)]={'queue':_0x516cb6(0x2687),'lastevent':_0x516cb6(0xebd),'routeId':_0x516cb6(0x15cf),'agent':_0x516cb6(0x30e),'account':_0x516cb6(0x1649),'interaction':_0x516cb6(0x2735),'message':_0x516cb6(0x27df)},_0x4850f1[_0x516cb6(0x507)]={'abandoned':_0x516cb6(0x2b7),'timeout':_0x516cb6(0xbcc),'complete':_0x516cb6(0x26e1),'rejected':_0x516cb6(0x951),'called':_0x516cb6(0x1805),'connect':_0x516cb6(0x265d),'nosuchnumber':_0x516cb6(0xc40),'busy':'Busy','noanswer':_0x516cb6(0x3b6),'congestion':_0x516cb6(0xb7e),'agentreject':_0x516cb6(0x1ae4)},_0x4850f1[_0x516cb6(0x23d4)]={'in':'Incoming','out':_0x516cb6(0xf52),'accept':_0x516cb6(0x1041),'reject':'Rejected'},_0x4850f1[_0x516cb6(0x1a34)]=_0x35f345,_0x4850f1['success']=_0x3ad30e,_0x4850f1['getTriggerAnyConditions']=_0x21a7b3,_0x4850f1[_0x516cb6(0xa04)]=_0x38f4a6,_0x4850f1[_0x516cb6(0x19d5)]=_0x51bfe9,_0x4850f1[_0x516cb6(0xb25)]=_0x7581d8,_0x4850f1[_0x516cb6(0x106f)]=_0x17e159,_0x4850f1[_0x516cb6(0x1eb3)]=_0x52382b;function _0x35f345(_0xe3b2db,_0x4b700d){const _0x24618a=_0x516cb6;_0x4850f1['trigger']=_0xe3b2db,_0x4850f1[_0x24618a(0x1b1a)]=typeof _0x4b700d!==_0x24618a(0x16b5)?_0x4b700d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4850f1['query'][_0x24618a(0xcca)]=_0x4850f1[_0x24618a(0x497)]['id'],_0x4850f1['query']['id']=_0x4850f1[_0x24618a(0x497)]['id'],_0x21a7b3();}function _0x4000aa(){const _0x3f558c=_0x516cb6,_0x2eb85e=_0x4850f1[_0x3f558c(0x497)][_0x3f558c(0x1072)]+_0x4850f1[_0x3f558c(0x497)][_0x3f558c(0x1072)]===_0x3f558c(0x174c)?'Websites':_0x3f558c(0x170d),_0x70936a=_0x4850f1[_0x3f558c(0x497)][_0x3f558c(0x1072)]+(_0x4850f1[_0x3f558c(0x497)][_0x3f558c(0x1072)]===_0x3f558c(0x174c)?_0x3f558c(0x11aa):_0x3f558c(0x1649));let _0x53398c;switch(_0x4850f1[_0x3f558c(0x497)]['channel']){case _0x3f558c(0x174c):_0x53398c=0x1f6;break;case _0x3f558c(0x1944):_0x53398c=0x386;break;case'mail':_0x53398c=0x25a;break;case _0x3f558c(0x15e0):_0x53398c=0x322;break;case'sms':_0x53398c=0x2be;break;case _0x3f558c(0x2476):_0x53398c=0x836;break;}if(_0xe42eac[_0x3f558c(0x10fc)]()){const _0x1d62b2=_0x4850f1[_0x3f558c(0x497)][_0x3f558c(0x1072)];_0x55c201[_0x70936a]['get']({'fields':_0x3f558c(0x43c),'sort':'id','nolimit':_0x3f558c(0x44d)})[_0x3f558c(0x1d77)]['then'](function(_0x515b6c){const _0x559e13=_0x3f558c;_0x4850f1[_0x2eb85e]=_0x515b6c[_0x559e13(0x2214)]||[];})['catch'](function(_0x48f233){const _0x3af21c=_0x3f558c;_0x3359b0['error']({'title':_0x48f233['status']?_0x3af21c(0xeb9)+_0x48f233[_0x3af21c(0x291)]+_0x3af21c(0x1657)+_0x48f233[_0x3af21c(0xc22)]:_0x3af21c(0x21df)+_0x1d62b2[_0x3af21c(0x2335)]()+_0x1d62b2===_0x3af21c(0x174c)?'WEBSITES':_0x3af21c(0x21e),'msg':_0x48f233[_0x3af21c(0x25c)]?JSON[_0x3af21c(0x2701)](_0x48f233['data']):_0x48f233['toString']()});});}else{const _0x3acd4d=_0x4850f1[_0x3f558c(0x497)][_0x3f558c(0x1072)];_0x55c201[_0x70936a][_0x3f558c(0xbf7)]({'fields':_0x3f558c(0x43c),'sort':'id','nolimit':'true'})[_0x3f558c(0x1d77)]['then'](function(_0x1dd812){const _0xca93fc=_0x3f558c;_0x4850f1[_0x2eb85e]=_0x1dd812[_0xca93fc(0x2214)]||[];})[_0x3f558c(0x1cb0)](function(){const _0x394737=_0x3f558c;return _0x55c201[_0x394737(0x2199)]['get']({'userProfileId':_0x4850f1[_0x394737(0xe76)]['userProfileId'],'sectionId':_0x53398c})[_0x394737(0x1d77)];})[_0x3f558c(0x1cb0)](function(_0x3258d8){const _0x12ce3a=_0x3f558c,_0x15553d=_0x3258d8&&_0x3258d8['rows']?_0x3258d8[_0x12ce3a(0x2214)][0x0]:null;if(!_0x15553d){const _0x595b60=[],_0x2c224f=[];_0x4850f1[_0x12ce3a(0x23ce)][_0x12ce3a(0x2214)][_0x12ce3a(0xf90)](function(_0x1f6b13){const _0x88990f=_0x12ce3a;if(_0x1f6b13[_0x88990f(0x2198)]===_0x88990f(0x1539)){const _0x32e357=_0x39641b()[_0x88990f(0x13b4)](_0x4850f1[_0x2eb85e],{'id':Number(_0x1f6b13[_0x88990f(0x327)])});_0x2c224f['push'](_0x32e357);}});for(let _0x3c0837=0x0;_0x3c0837<_0x4850f1[_0x2eb85e]['length'];_0x3c0837++){const _0x3fa4f1=_0x39641b()[_0x12ce3a(0x727)](_0x2c224f,{'id':_0x4850f1[_0x2eb85e][_0x3c0837]['id']});_0x3fa4f1&&(_0x4850f1[_0x2eb85e][_0x3c0837]['canSelect']=![],_0x595b60[_0x12ce3a(0x2785)](_0x4850f1[_0x2eb85e][_0x3c0837]));}_0x4850f1[_0x2eb85e]=_0x595b60;}else{if(!_0x15553d[_0x12ce3a(0x12f4)])return _0x55c201[_0x12ce3a(0x1198)][_0x12ce3a(0xbf7)]({'sectionId':_0x15553d['id']})[_0x12ce3a(0x1d77)][_0x12ce3a(0x1cb0)](function(_0x838878){const _0x4c1ff0=_0x12ce3a,_0x435ad1=_0x39641b()[_0x4c1ff0(0x1de2)](_0x838878[_0x4c1ff0(0x2214)],function(_0x5bd962){const _0x4acba6=_0x4c1ff0;return _0x39641b()['find'](_0x4850f1[_0x2eb85e],{'id':_0x5bd962[_0x4acba6(0x2982)]});});let _0x29672c=null;_0x29672c=[],_0x4850f1[_0x4c1ff0(0x23ce)][_0x4c1ff0(0x2214)]['forEach'](function(_0x333407){const _0x22c604=_0x4c1ff0;if(_0x333407[_0x22c604(0x2198)]===_0x22c604(0x1539)){const _0x992486=_0x39641b()[_0x22c604(0x13b4)](_0x4850f1[_0x2eb85e],{'id':Number(_0x333407[_0x22c604(0x327)])});_0x29672c[_0x22c604(0x2785)](_0x992486);}}),!_0x39641b()[_0x4c1ff0(0xce9)](_0x29672c)&&_0x29672c[_0x4c1ff0(0xf90)](function(_0x47372a){const _0x223802=_0x4c1ff0;if(!_0x39641b()['some'](_0x435ad1,['id',_0x47372a['id']])){const _0x30cb66=_0x39641b()['find'](_0x4850f1[_0x2eb85e],{'id':_0x47372a['id']});_0x30cb66[_0x223802(0x15da)]=![],_0x435ad1[_0x223802(0x2785)](_0x30cb66);}}),_0x4850f1[_0x2eb85e]=_0x435ad1;});}})[_0x3f558c(0x1c4)](function(_0x12f073){const _0x455f62=_0x3f558c;_0x3359b0[_0x455f62(0x218e)]({'title':_0x12f073[_0x455f62(0x291)]?_0x455f62(0xeb9)+_0x12f073[_0x455f62(0x291)]+'\x20-\x20'+_0x12f073[_0x455f62(0xc22)]:'SYSTEM:GET_'+_0x3acd4d[_0x455f62(0x2335)]()+_0x3acd4d===_0x455f62(0x174c)?_0x455f62(0x202a):_0x455f62(0x21e),'msg':_0x12f073[_0x455f62(0x25c)]?JSON[_0x455f62(0x2701)](_0x12f073[_0x455f62(0x25c)]):_0x12f073[_0x455f62(0x147f)]()});});}}function _0x265fcc(){const _0x15f450=_0x516cb6,_0x20d30d=[{'id':0x191,'type':'inbound'},{'id':0x5dd,'type':_0x15f450(0x895)}];let _0x1a702b=null;_0xe42eac[_0x15f450(0x10fc)]()?_0x55c201[_0x15f450(0x26b3)][_0x15f450(0xbf7)]({'fields':_0x15f450(0x1896),'sort':_0x15f450(0x16b6),'nolimit':_0x15f450(0x44d)})[_0x15f450(0x1d77)][_0x15f450(0x1cb0)](function(_0x4d16d5){const _0x62fc1b=_0x15f450;_0x4850f1[_0x62fc1b(0x971)]=_0x4d16d5[_0x62fc1b(0x2214)]||[];})['catch'](function(_0x3fb929){const _0x3d902f=_0x15f450;_0x3359b0[_0x3d902f(0x218e)]({'title':_0x3fb929[_0x3d902f(0x291)]?_0x3d902f(0xeb9)+_0x3fb929[_0x3d902f(0x291)]+_0x3d902f(0x1657)+_0x3fb929[_0x3d902f(0xc22)]:_0x3d902f(0x25f2),'msg':_0x3fb929[_0x3d902f(0x25c)]?JSON[_0x3d902f(0x2701)](_0x3fb929[_0x3d902f(0x25c)]):_0x3fb929['toString']()});}):_0x55c201[_0x15f450(0x26b3)]['get']({'fields':_0x15f450(0x1896),'sort':_0x15f450(0x16b6),'nolimit':_0x15f450(0x44d)})[_0x15f450(0x1d77)][_0x15f450(0x1cb0)](function(_0x4d9280){const _0x2009f0=_0x15f450;_0x1a702b=_0x4d9280[_0x2009f0(0x2214)]||[];})['then'](function(){const _0x33000d=_0x15f450,_0x316cff=[];for(let _0x25521b=0x0;_0x25521b<_0x20d30d[_0x33000d(0xfd0)];_0x25521b++){_0x316cff[_0x33000d(0x2785)](_0x55c201[_0x33000d(0x2199)][_0x33000d(0xbf7)]({'userProfileId':_0x4850f1[_0x33000d(0xe76)][_0x33000d(0x13c1)],'sectionId':_0x20d30d[_0x25521b]['id']})[_0x33000d(0x1d77)]);}return _0x6a77ad[_0x33000d(0x223b)](_0x316cff);})[_0x15f450(0x1cb0)](function(_0x49934e){const _0x5604d9=_0x15f450,_0xc91d6=_0x39641b()[_0x5604d9(0x1de2)](_0x49934e,function(_0x3fc8ee){const _0x28eef6=_0x5604d9;return _0x3fc8ee&&_0x3fc8ee[_0x28eef6(0x2214)]?_0x3fc8ee[_0x28eef6(0x2214)][0x0]:null;}),_0x44a793=[];for(let _0x506fb7=0x0;_0x506fb7<_0x20d30d[_0x5604d9(0xfd0)];_0x506fb7++){const _0x47d66a=_0x39641b()['find'](_0xc91d6,[_0x5604d9(0xec6),_0x20d30d[_0x506fb7]['id']]);if(_0x47d66a){if(!_0x47d66a['autoAssociation'])_0x44a793['push'](_0x55c201[_0x5604d9(0x1198)][_0x5604d9(0xbf7)]({'sectionId':_0x47d66a['id']})[_0x5604d9(0x1d77)]);else{const _0x1799e3=[];_0x1a702b[_0x5604d9(0xf90)](function(_0xee9a34){const _0x11161c=_0x5604d9;_0xee9a34[_0x11161c(0x66a)]===_0x20d30d[_0x506fb7][_0x11161c(0x66a)]&&_0x1799e3[_0x11161c(0x2785)](_0xee9a34);}),_0x44a793[_0x5604d9(0x2785)]({'rows':_0x1799e3,'count':_0x1799e3[_0x5604d9(0xfd0)]});}}}return _0x6a77ad['all'](_0x44a793);})['then'](function(_0x10720e){const _0x22edd1=_0x15f450,_0x273605=[],_0x288e1b=[];_0x4850f1['triggerAnyConditions'][_0x22edd1(0x2214)][_0x22edd1(0xf90)](function(_0x59288d){const _0x1c78cc=_0x22edd1;if(_0x59288d['field']===_0x1c78cc(0x11cf)){const _0x458147=_0x39641b()['find'](_0x1a702b,{'name':_0x59288d[_0x1c78cc(0x327)]});_0x288e1b[_0x1c78cc(0x2785)](_0x458147);}});for(let _0x20da4a=0x0;_0x20da4a<_0x10720e['length'];_0x20da4a++){const _0x5080cc=_0x10720e[_0x20da4a][_0x22edd1(0x2214)]||[];_0x5080cc[_0x22edd1(0xf90)](function(_0x4be979){const _0x523af6=_0x22edd1;_0x273605[_0x523af6(0x2785)](_0x4be979);});}!_0x39641b()[_0x22edd1(0xce9)](_0x288e1b)&&_0x288e1b[_0x22edd1(0xf90)](function(_0x34ba84){const _0x1a2820=_0x22edd1;if(!_0x39641b()[_0x1a2820(0x727)](_0x273605,['resourceId',_0x34ba84['id']])){const _0x55d57f=_0x39641b()['find'](_0x1a702b,{'id':_0x34ba84['id']});_0x55d57f[_0x1a2820(0x15da)]=![],_0x273605[_0x1a2820(0x2785)](_0x55d57f);}}),_0x4850f1[_0x22edd1(0x971)]=_0x273605;})[_0x15f450(0x1c4)](function(_0x164c58){const _0x115a7a=_0x15f450;_0x3359b0[_0x115a7a(0x218e)]({'title':_0x164c58[_0x115a7a(0x291)]?_0x115a7a(0xeb9)+_0x164c58[_0x115a7a(0x291)]+_0x115a7a(0x1657)+_0x164c58[_0x115a7a(0xc22)]:_0x115a7a(0x277c),'msg':_0x164c58[_0x115a7a(0x25c)]?JSON[_0x115a7a(0x2701)](_0x164c58[_0x115a7a(0x25c)]):_0x164c58[_0x115a7a(0x147f)]()});});}function _0x36feb9(){const _0x3f2b33=_0x516cb6;_0xe42eac['isAdmin']()?_0x55c201[_0x3f2b33(0x1059)][_0x3f2b33(0xbf7)]({'fields':_0x3f2b33(0x286f),'type':_0x3f2b33(0x895),'VoiceExtensionId':_0x3f2b33(0xd38),'nolimit':_0x3f2b33(0x44d)})[_0x3f2b33(0x1d77)]['then'](function(_0x261336){const _0x3c44c6=_0x3f2b33;_0x4850f1[_0x3c44c6(0xe57)]=_0x261336['rows']||[];})[_0x3f2b33(0x1c4)](function(_0x33957e){const _0x3d67e3=_0x3f2b33;_0x3359b0[_0x3d67e3(0x218e)]({'title':_0x33957e['status']?_0x3d67e3(0xeb9)+_0x33957e[_0x3d67e3(0x291)]+_0x3d67e3(0x1657)+_0x33957e[_0x3d67e3(0xc22)]:_0x3d67e3(0x25ea),'msg':_0x33957e[_0x3d67e3(0x25c)]?JSON[_0x3d67e3(0x2701)](_0x33957e[_0x3d67e3(0x25c)]):_0x33957e['toString']()});}):_0x55c201[_0x3f2b33(0x1059)][_0x3f2b33(0xbf7)]({'fields':_0x3f2b33(0x286f),'type':_0x3f2b33(0x895),'VoiceExtensionId':_0x3f2b33(0xd38),'nolimit':_0x3f2b33(0x44d)})[_0x3f2b33(0x1d77)][_0x3f2b33(0x1cb0)](function(_0xfd8e5e){const _0x5711c0=_0x3f2b33;_0x4850f1[_0x5711c0(0xe57)]=_0xfd8e5e[_0x5711c0(0x2214)]||[];})[_0x3f2b33(0x1cb0)](function(){const _0xb5cf9c=_0x3f2b33;return _0x55c201['userProfileSection'][_0xb5cf9c(0xbf7)]({'userProfileId':_0x4850f1['currentUser'][_0xb5cf9c(0x13c1)],'sectionId':0x193})[_0xb5cf9c(0x1d77)];})[_0x3f2b33(0x1cb0)](function(_0x5ebc22){const _0x36909a=_0x3f2b33,_0x24c2e4=_0x5ebc22&&_0x5ebc22[_0x36909a(0x2214)]?_0x5ebc22[_0x36909a(0x2214)][0x0]:null;if(!_0x24c2e4){const _0x4a2b9d=[],_0x3593fb=[];_0x4850f1['triggerAnyConditions'][_0x36909a(0x2214)][_0x36909a(0xf90)](function(_0x1658f4){const _0x1a2dfd=_0x36909a;if(_0x1658f4['field']===_0x1a2dfd(0xedf)){const _0x42ce40=_0x39641b()[_0x1a2dfd(0x13b4)](_0x4850f1['outboundRoutes'],{'id':Number(_0x1658f4[_0x1a2dfd(0x327)])});_0x3593fb[_0x1a2dfd(0x2785)](_0x42ce40);}});for(let _0x7cdc5c=0x0;_0x7cdc5c<_0x4850f1[_0x36909a(0xe57)][_0x36909a(0xfd0)];_0x7cdc5c++){const _0x4bf8e0=_0x39641b()[_0x36909a(0x727)](_0x3593fb,{'id':_0x4850f1[_0x36909a(0xe57)][_0x7cdc5c]['id']});_0x4bf8e0&&(_0x4850f1[_0x36909a(0xe57)][_0x7cdc5c][_0x36909a(0x15da)]=![],_0x4a2b9d['push'](_0x4850f1[_0x36909a(0xe57)][_0x7cdc5c]));}_0x4850f1['outboundRoutes']=_0x4a2b9d;}else{if(!_0x24c2e4[_0x36909a(0x12f4)])return _0x55c201[_0x36909a(0x1198)][_0x36909a(0xbf7)]({'sectionId':_0x24c2e4['id']})[_0x36909a(0x1d77)][_0x36909a(0x1cb0)](function(_0x53ab03){const _0x2eb225=_0x36909a,_0x2f99a6=_0x39641b()[_0x2eb225(0x1de2)](_0x53ab03[_0x2eb225(0x2214)],function(_0x33864b){const _0x35ccfe=_0x2eb225;return _0x39641b()[_0x35ccfe(0x13b4)](_0x4850f1[_0x35ccfe(0xe57)],{'id':_0x33864b['resourceId']});});let _0x2836d0=null;_0x2836d0=[],_0x4850f1[_0x2eb225(0x23ce)][_0x2eb225(0x2214)][_0x2eb225(0xf90)](function(_0x52b5e3){const _0x4686bc=_0x2eb225;if(_0x52b5e3['field']==='routeId'){const _0x30d9e7=_0x39641b()[_0x4686bc(0x13b4)](_0x4850f1['outboundRoutes'],{'id':Number(_0x52b5e3[_0x4686bc(0x327)])});_0x2836d0[_0x4686bc(0x2785)](_0x30d9e7);}}),!_0x39641b()[_0x2eb225(0xce9)](_0x2836d0)&&_0x2836d0[_0x2eb225(0xf90)](function(_0x380a6e){const _0x467b5b=_0x2eb225;if(!_0x39641b()[_0x467b5b(0x727)](_0x2f99a6,['id',_0x380a6e['id']])){const _0x5d39ee=_0x39641b()[_0x467b5b(0x13b4)](_0x4850f1[_0x467b5b(0xe57)],{'id':_0x380a6e['id']});_0x5d39ee[_0x467b5b(0x15da)]=![],_0x2f99a6[_0x467b5b(0x2785)](_0x5d39ee);}}),_0x4850f1[_0x2eb225(0xe57)]=_0x2f99a6;});}})[_0x3f2b33(0x1c4)](function(_0x212708){const _0x4a39ff=_0x3f2b33;_0x3359b0[_0x4a39ff(0x218e)]({'title':_0x212708[_0x4a39ff(0x291)]?_0x4a39ff(0xeb9)+_0x212708['status']+'\x20-\x20'+_0x212708[_0x4a39ff(0xc22)]:_0x4a39ff(0x25ea),'msg':_0x212708[_0x4a39ff(0x25c)]?JSON[_0x4a39ff(0x2701)](_0x212708[_0x4a39ff(0x25c)]):_0x212708[_0x4a39ff(0x147f)]()});});}function _0x4fc154(){const _0xaef13e=_0x516cb6;_0xe42eac[_0xaef13e(0x10fc)]()?_0x55c201[_0xaef13e(0xebe)][_0xaef13e(0xbf7)]({'fields':'id,name,fullname','sort':_0xaef13e(0x16b6),'role':'agent','nolimit':_0xaef13e(0x44d)})[_0xaef13e(0x1d77)]['then'](function(_0x283529){const _0x17d79c=_0xaef13e;_0x4850f1[_0x17d79c(0xc12)]=_0x283529[_0x17d79c(0x2214)]||[];})[_0xaef13e(0x1c4)](function(_0x234476){const _0x466c52=_0xaef13e;_0x3359b0[_0x466c52(0x218e)]({'title':_0x234476[_0x466c52(0x291)]?_0x466c52(0xeb9)+_0x234476['status']+_0x466c52(0x1657)+_0x234476[_0x466c52(0xc22)]:'SYSTEM:GET_AGENTS','msg':_0x234476[_0x466c52(0x25c)]?JSON[_0x466c52(0x2701)](_0x234476[_0x466c52(0x25c)]):_0x234476[_0x466c52(0x147f)]()});}):_0x55c201[_0xaef13e(0xebe)]['get']({'fields':'id,name,fullname','sort':_0xaef13e(0x16b6),'role':'agent','nolimit':_0xaef13e(0x44d)})[_0xaef13e(0x1d77)][_0xaef13e(0x1cb0)](function(_0x1cfc41){const _0x396ad3=_0xaef13e;_0x4850f1[_0x396ad3(0xc12)]=_0x1cfc41[_0x396ad3(0x2214)]||[];})[_0xaef13e(0x1cb0)](function(){const _0x3838bf=_0xaef13e;return _0x55c201[_0x3838bf(0x2199)][_0x3838bf(0xbf7)]({'userProfileId':_0x4850f1[_0x3838bf(0xe76)]['userProfileId'],'sectionId':0xca})['$promise'];})[_0xaef13e(0x1cb0)](function(_0x14dfef){const _0x1d3f8f=_0xaef13e,_0x3b3697=_0x14dfef&&_0x14dfef[_0x1d3f8f(0x2214)]?_0x14dfef[_0x1d3f8f(0x2214)][0x0]:null;if(!_0x3b3697){const _0x202e9d=[],_0x1c5ab8=[];_0x4850f1[_0x1d3f8f(0x23ce)][_0x1d3f8f(0x2214)][_0x1d3f8f(0xf90)](function(_0x24d4cb){const _0x5c69bb=_0x1d3f8f;if(_0x24d4cb[_0x5c69bb(0x2198)]===_0x5c69bb(0x1eff)){const _0xc87ff9=_0x39641b()[_0x5c69bb(0x13b4)](_0x4850f1['agents'],{'name':_0x24d4cb[_0x5c69bb(0x327)]});_0x1c5ab8[_0x5c69bb(0x2785)](_0xc87ff9);}});for(let _0x99476=0x0;_0x99476<_0x4850f1[_0x1d3f8f(0xc12)][_0x1d3f8f(0xfd0)];_0x99476++){const _0x36c8c8=_0x39641b()[_0x1d3f8f(0x727)](_0x1c5ab8,{'id':_0x4850f1[_0x1d3f8f(0xc12)][_0x99476]['id']});_0x36c8c8&&(_0x4850f1[_0x1d3f8f(0xc12)][_0x99476][_0x1d3f8f(0x15da)]=![],_0x202e9d['push'](_0x4850f1[_0x1d3f8f(0xc12)][_0x99476]));}_0x4850f1[_0x1d3f8f(0xc12)]=_0x202e9d;}else{if(!_0x3b3697[_0x1d3f8f(0x12f4)])return _0x55c201[_0x1d3f8f(0x1198)][_0x1d3f8f(0xbf7)]({'sectionId':_0x3b3697['id']})[_0x1d3f8f(0x1d77)][_0x1d3f8f(0x1cb0)](function(_0x239117){const _0x49c879=_0x1d3f8f,_0x4867a5=_0x39641b()[_0x49c879(0x1de2)](_0x239117[_0x49c879(0x2214)],function(_0x38191d){const _0x4a9aa2=_0x49c879;return _0x39641b()[_0x4a9aa2(0x13b4)](_0x4850f1[_0x4a9aa2(0xc12)],{'id':_0x38191d[_0x4a9aa2(0x2982)]});});let _0x52302a=null;_0x52302a=[],_0x4850f1[_0x49c879(0x23ce)]['rows'][_0x49c879(0xf90)](function(_0xcd3f97){const _0x4fa072=_0x49c879;if(_0xcd3f97[_0x4fa072(0x2198)]===_0x4fa072(0x1eff)){const _0x2c9560=_0x39641b()['find'](_0x4850f1[_0x4fa072(0xc12)],{'name':_0xcd3f97[_0x4fa072(0x327)]});_0x52302a['push'](_0x2c9560);}}),!_0x39641b()[_0x49c879(0xce9)](_0x52302a)&&_0x52302a[_0x49c879(0xf90)](function(_0x3e0831){const _0x1c4943=_0x49c879;if(!_0x39641b()[_0x1c4943(0x727)](_0x4867a5,['id',_0x3e0831['id']])){const _0x1a6fa9=_0x39641b()['find'](_0x4850f1[_0x1c4943(0xc12)],{'id':_0x3e0831['id']});_0x1a6fa9[_0x1c4943(0x15da)]=![],_0x4867a5[_0x1c4943(0x2785)](_0x1a6fa9);}}),_0x4850f1[_0x49c879(0xc12)]=_0x4867a5;});}})[_0xaef13e(0x1c4)](function(_0x355597){const _0x4c76e3=_0xaef13e;_0x3359b0[_0x4c76e3(0x218e)]({'title':_0x355597[_0x4c76e3(0x291)]?'API:'+_0x355597[_0x4c76e3(0x291)]+_0x4c76e3(0x1657)+_0x355597[_0x4c76e3(0xc22)]:_0x4c76e3(0x799),'msg':_0x355597['data']?JSON['stringify'](_0x355597[_0x4c76e3(0x25c)]):_0x355597[_0x4c76e3(0x147f)]()});});}function _0x56b7be(){const _0xe449df=_0x516cb6;if(_0x4850f1['trigger'][_0xe449df(0x1072)]===_0xe449df(0x1fd4)){if(_0x39641b()[_0xe449df(0x727)](_0x4850f1[_0xe449df(0x23ce)]['rows'],[_0xe449df(0x2198),'queue'])){if(!_0x4850f1[_0xe449df(0x971)])_0x265fcc();}if(_0x39641b()[_0xe449df(0x727)](_0x4850f1['triggerAnyConditions'][_0xe449df(0x2214)],[_0xe449df(0x2198),'routeId'])){if(!_0x4850f1[_0xe449df(0xe57)])_0x36feb9();}if(_0x39641b()[_0xe449df(0x727)](_0x4850f1[_0xe449df(0x23ce)][_0xe449df(0x2214)],[_0xe449df(0x2198),_0xe449df(0x1eff)])){if(!_0x4850f1[_0xe449df(0xc12)])_0x4fc154();}}else _0x4000aa();}function _0x3ad30e(_0x4c3a74){const _0x3c52d1=_0x516cb6;_0x4850f1[_0x3c52d1(0x23ce)]=_0x4c3a74||{'count':0x0,'rows':[]},_0x56b7be();}function _0x21a7b3(){const _0x37bfde=_0x516cb6;_0x4850f1['query']['offset']=(_0x4850f1[_0x37bfde(0xae2)][_0x37bfde(0x1c7b)]-0x1)*_0x4850f1[_0x37bfde(0xae2)][_0x37bfde(0x236)],_0x4850f1[_0x37bfde(0x2061)]=_0x55c201[_0x37bfde(0x497)][_0x37bfde(0x106e)](_0x4850f1[_0x37bfde(0xae2)],_0x3ad30e)[_0x37bfde(0x1d77)];}function _0x38f4a6(_0x236a4f,_0x407aea){const _0x35086f=_0x516cb6;_0x1696a2[_0x35086f(0xe27)]({'controller':'CreateOrEditAnyConditionDialogController','controllerAs':'vm','templateUrl':_0x58ea11,'parent':angular['element'](_0x405a96[_0x35086f(0x1ed9)]),'targetEvent':_0x236a4f,'clickOutsideToClose':!![],'locals':{'trigger':_0x4850f1[_0x35086f(0x497)],'anyCondition':_0x407aea,'anyConditions':_0x4850f1[_0x35086f(0x23ce)][_0x35086f(0x2214)],'license':null,'setting':null,'crudPermissions':_0x4850f1[_0x35086f(0x1b1a)]}})['then'](function(_0x1d941a){const _0x477e3d=_0x35086f;_0x1d941a&&(_0x4850f1[_0x477e3d(0x23ce)]={'count':_0x1d941a[_0x477e3d(0xfd0)],'rows':_0x1d941a},_0x56b7be());});}function _0x7581d8(_0x42dd23,_0x59f7ca){const _0x5e949c=_0x516cb6,_0x271fba=_0x1696a2[_0x5e949c(0x1551)]()[_0x5e949c(0x1386)](_0x7acd22[_0x5e949c(0x25cc)](_0x5e949c(0x2473)))[_0x5e949c(0x15ad)]('Delete\x20condition')[_0x5e949c(0x728)](_0x59f7ca)['ok']('OK')[_0x5e949c(0x696)](_0x7acd22[_0x5e949c(0x25cc)](_0x5e949c(0x2768)));_0x1696a2[_0x5e949c(0xe27)](_0x271fba)[_0x5e949c(0x1cb0)](function(){_0x17e159(_0x42dd23,!![]);});}function _0x17e159(_0x244da7,_0x535122){const _0x294f44=_0x516cb6;_0x55c201[_0x294f44(0x166c)][_0x294f44(0x111d)]({'id':_0x244da7['id']})[_0x294f44(0x1d77)][_0x294f44(0x1cb0)](function(){const _0x1dfbe3=_0x294f44;_0x21a7b3(),_0x535122&&_0x3359b0[_0x1dfbe3(0x829)]({'title':_0x7acd22['instant'](_0x1dfbe3(0x16de))});})['catch'](function(_0x4a6724){const _0x82b907=_0x294f44;if(_0x4a6724[_0x82b907(0x25c)]&&_0x4a6724['data'][_0x82b907(0x1a7c)]&&_0x4a6724[_0x82b907(0x25c)][_0x82b907(0x1a7c)][_0x82b907(0xfd0)]){_0x4850f1[_0x82b907(0x1a7c)]=_0x4a6724[_0x82b907(0x25c)][_0x82b907(0x1a7c)]||[{'message':_0x4a6724['toString'](),'type':'SYSTEM:GETtrigger'}];for(let _0x5557a0=0x0;_0x5557a0<_0x4a6724['data'][_0x82b907(0x1a7c)][_0x82b907(0xfd0)];_0x5557a0++){_0x3359b0[_0x82b907(0x218e)]({'title':_0x4a6724[_0x82b907(0x25c)][_0x82b907(0x1a7c)][_0x5557a0][_0x82b907(0x66a)],'msg':_0x4a6724[_0x82b907(0x25c)]['errors'][_0x5557a0][_0x82b907(0x155e)]});}}else _0x3359b0[_0x82b907(0x218e)]({'title':_0x4a6724['status']?'API:'+_0x4a6724[_0x82b907(0x291)]+'\x20-\x20'+_0x4a6724['statusText']:_0x82b907(0x15e7),'msg':_0x4a6724[_0x82b907(0x25c)]?JSON[_0x82b907(0x2701)](_0x4a6724[_0x82b907(0x25c)]['message']):_0x4a6724[_0x82b907(0x155e)]||_0x4a6724['toString']()});});}function _0x51bfe9(){const _0x28bc1c=_0x516cb6,_0xdf1c02=angular[_0x28bc1c(0x17fe)](_0x4850f1[_0x28bc1c(0xb9c)]);return _0x4850f1['selectedTriggerAnyConditions']=[],_0xdf1c02;}function _0x52382b(_0x36931d){const _0x41ae0e=_0x516cb6,_0x3383e2=_0x1696a2[_0x41ae0e(0x1551)]()['title'](_0x7acd22['instant'](_0x41ae0e(0xda3)))[_0x41ae0e(0x862)](_0x7acd22[_0x41ae0e(0x25cc)](_0x41ae0e(0x181d),{'total':_0x4850f1[_0x41ae0e(0xb9c)][_0x41ae0e(0xfd0)]}))[_0x41ae0e(0x15ad)](_0x41ae0e(0x1d0c))[_0x41ae0e(0x728)](_0x36931d)['ok']('OK')[_0x41ae0e(0x696)](_0x7acd22['instant']('APP.CANCEL'));_0x1696a2[_0x41ae0e(0xe27)](_0x3383e2)[_0x41ae0e(0x1cb0)](function(){const _0x1dfa53=_0x41ae0e;_0x4850f1[_0x1dfa53(0xb9c)]['forEach'](function(_0x4208a6){_0x17e159(_0x4208a6);}),_0x4850f1[_0x1dfa53(0xb9c)]=[],_0x3359b0['success']({'title':_0x7acd22[_0x1dfa53(0x25cc)]('TOOLS.NOTIFICATIONS.CONDITIONS_DELETED_SUCCESS_TITLE')});});}let _0x451ea7=!![],_0x30af58=0x1;_0x482555[_0x516cb6(0x614)](_0x516cb6(0xeb6),function(_0x51d9b4,_0x16c3c2){const _0x13fcf3=_0x516cb6;_0x451ea7?_0x40300a(function(){_0x451ea7=![];}):(!_0x16c3c2&&(_0x30af58=_0x4850f1[_0x13fcf3(0xae2)][_0x13fcf3(0x1c7b)]),_0x51d9b4!==_0x16c3c2&&(_0x4850f1[_0x13fcf3(0xae2)][_0x13fcf3(0x1c7b)]=0x1),!_0x51d9b4&&(_0x4850f1[_0x13fcf3(0xae2)][_0x13fcf3(0x1c7b)]=_0x30af58),_0x21a7b3());});}const _0xebbcc4=_0x46de01;;_0x3523fa[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),'allConditions','allCondition',_0x5537c6(0x497),'api',_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x3523fa(_0x4b7d83,_0x2bbd3c,_0x2449a9,_0x2087a4,_0x394b08,_0xec5f0a,_0x35a2dd,_0x45db1b,_0xadf15b,_0x3c3a70,_0x14f189,_0xac0d2c,_0x214806){const _0x4a1376=_0x5537c6,_0x295527=this;_0x295527[_0x4a1376(0xe76)]=_0x3c3a70[_0x4a1376(0x21e8)](),_0x295527['allCondition']=angular[_0x4a1376(0x17fe)](_0x35a2dd),_0x295527[_0x4a1376(0xfa4)]=angular[_0x4a1376(0x17fe)](_0xec5f0a),_0x295527[_0x4a1376(0x9ca)]=_0xac0d2c,_0x295527[_0x4a1376(0x8a5)]=_0x14f189,_0x295527[_0x4a1376(0x1b1a)]=_0x214806,_0x295527[_0x4a1376(0xf4c)]={},_0x295527[_0x4a1376(0x28ad)]=![],_0x295527[_0x4a1376(0x1a7c)]=[],_0x295527[_0x4a1376(0x497)]=angular['copy'](_0x45db1b);!_0x295527['allCondition']?(_0x295527[_0x4a1376(0x1835)]={'operator':_0x4a1376(0x1c53)},_0x295527[_0x4a1376(0x28ad)]=!![]):_0x242cc7();_0x295527[_0x4a1376(0x1835)][_0x4a1376(0x4a5)]=_0x4b7d83[_0x4a1376(0x1dfe)]['id']||undefined,_0x295527['callStatuses']=[{'name':_0x4a1376(0x2b7),'value':_0x4a1376(0x20fe)},{'name':'Timeout','value':_0x4a1376(0x1719)},{'name':'Hangup','value':_0x4a1376(0xa31)},{'name':'Reject','value':_0x4a1376(0x1fb6)},{'name':_0x4a1376(0x1805),'value':_0x4a1376(0x13d1)},{'name':_0x4a1376(0x265d),'value':_0x4a1376(0x8b0)},{'name':_0x4a1376(0xc40),'value':_0x4a1376(0xca0)},{'name':_0x4a1376(0x1427),'value':_0x4a1376(0x5b2)},{'name':_0x4a1376(0x3b6),'value':'noanswer'},{'name':_0x4a1376(0xb7e),'value':_0x4a1376(0x634)},{'name':_0x4a1376(0x1ae4),'value':_0x4a1376(0x97a)}],_0x295527[_0x4a1376(0x16b1)]=_0x58ab9c,_0x295527[_0x4a1376(0x15de)]=_0x20ca85,_0x295527['saveAllCondition']=_0x3c949f,_0x295527['deleteAllCondition']=_0x2f6ed9,_0x295527[_0x4a1376(0xda0)]=_0x476ca7;function _0x21363f(){const _0x28486b=_0x4a1376,_0x1f1ca3=[{'id':0x191,'type':_0x28486b(0x26c0)},{'id':0x5dd,'type':_0x28486b(0x895)}];let _0x29494a=null;_0x3c3a70[_0x28486b(0x10fc)]()?_0xadf15b[_0x28486b(0x26b3)][_0x28486b(0xbf7)]({'fields':_0x28486b(0x1896),'sort':_0x28486b(0x16b6),'nolimit':_0x28486b(0x44d)})[_0x28486b(0x1d77)][_0x28486b(0x1cb0)](function(_0x5029eb){const _0x50eb4f=_0x28486b;_0x295527[_0x50eb4f(0x971)]=_0x5029eb['rows']||[];})[_0x28486b(0x1c4)](function(_0x339bb2){const _0xf5b8a0=_0x28486b;_0x394b08['error']({'title':_0x339bb2[_0xf5b8a0(0x291)]?_0xf5b8a0(0xeb9)+_0x339bb2[_0xf5b8a0(0x291)]+'\x20-\x20'+_0x339bb2[_0xf5b8a0(0xc22)]:'SYSTEM:GET_VOICEQUEUES','msg':_0x339bb2[_0xf5b8a0(0x25c)]?JSON[_0xf5b8a0(0x2701)](_0x339bb2['data']):_0x339bb2[_0xf5b8a0(0x147f)]()});}):_0xadf15b[_0x28486b(0x26b3)][_0x28486b(0xbf7)]({'fields':_0x28486b(0x1896),'sort':_0x28486b(0x16b6),'nolimit':_0x28486b(0x44d)})['$promise']['then'](function(_0x38029a){const _0x58fbe6=_0x28486b;_0x29494a=_0x38029a[_0x58fbe6(0x2214)]||[];})['then'](function(){const _0x24e371=_0x28486b,_0x4d05a2=[];for(let _0x3fc7c8=0x0;_0x3fc7c8<_0x1f1ca3[_0x24e371(0xfd0)];_0x3fc7c8++){_0x4d05a2[_0x24e371(0x2785)](_0xadf15b[_0x24e371(0x2199)]['get']({'userProfileId':_0x295527[_0x24e371(0xe76)][_0x24e371(0x13c1)],'sectionId':_0x1f1ca3[_0x3fc7c8]['id']})['$promise']);}return _0x2449a9[_0x24e371(0x223b)](_0x4d05a2);})[_0x28486b(0x1cb0)](function(_0x21d323){const _0x5055bb=_0x28486b,_0x52bc61=_0x39641b()[_0x5055bb(0x1de2)](_0x21d323,function(_0xf7dfe1){const _0x7a9b92=_0x5055bb;return _0xf7dfe1&&_0xf7dfe1['rows']?_0xf7dfe1[_0x7a9b92(0x2214)][0x0]:null;}),_0x445a18=[];for(let _0x2ac5b0=0x0;_0x2ac5b0<_0x1f1ca3[_0x5055bb(0xfd0)];_0x2ac5b0++){const _0x5c6fa7=_0x39641b()['find'](_0x52bc61,['sectionId',_0x1f1ca3[_0x2ac5b0]['id']]);if(_0x5c6fa7){if(!_0x5c6fa7[_0x5055bb(0x12f4)])_0x445a18[_0x5055bb(0x2785)](_0xadf15b[_0x5055bb(0x1198)][_0x5055bb(0xbf7)]({'sectionId':_0x5c6fa7['id']})['$promise']);else{const _0x51d0da=[];_0x29494a['forEach'](function(_0x523187){const _0x2e8681=_0x5055bb;_0x523187[_0x2e8681(0x66a)]===_0x1f1ca3[_0x2ac5b0]['type']&&_0x51d0da['push'](_0x523187);}),_0x445a18[_0x5055bb(0x2785)]({'rows':_0x51d0da,'count':_0x51d0da[_0x5055bb(0xfd0)]});}}}return _0x2449a9['all'](_0x445a18);})[_0x28486b(0x1cb0)](function(_0x150a68){const _0x93c892=_0x28486b,_0x295035=[],_0x593fee=[];_0x295527[_0x93c892(0x1504)][_0x93c892(0x2214)][_0x93c892(0xf90)](function(_0x3c1903){const _0x15cb0d=_0x93c892;if(_0x3c1903[_0x15cb0d(0x2198)]===_0x15cb0d(0x11cf)){const _0x3184a7=_0x39641b()[_0x15cb0d(0x13b4)](_0x29494a,{'name':_0x3c1903[_0x15cb0d(0x327)]});_0x593fee[_0x15cb0d(0x2785)](_0x3184a7);}});for(let _0x2fcf85=0x0;_0x2fcf85<_0x150a68[_0x93c892(0xfd0)];_0x2fcf85++){const _0x115a8b=_0x150a68[_0x2fcf85][_0x93c892(0x2214)]||[];_0x115a8b[_0x93c892(0xf90)](function(_0x49158b){const _0xa72840=_0x93c892;_0x295035[_0xa72840(0x2785)](_0x49158b);});}!_0x39641b()[_0x93c892(0xce9)](_0x593fee)&&_0x593fee[_0x93c892(0xf90)](function(_0x115894){const _0x5489cd=_0x93c892;if(!_0x39641b()[_0x5489cd(0x727)](_0x295035,[_0x5489cd(0x2982),_0x115894['id']])){const _0x5460e4=_0x39641b()['find'](_0x29494a,{'id':_0x115894['id']});_0x5460e4[_0x5489cd(0x15da)]=![],_0x295035[_0x5489cd(0x2785)](_0x5460e4);}}),_0x295527['queues']=_0x295035;})[_0x28486b(0x1c4)](function(_0x5b0be9){const _0x5c1bf0=_0x28486b;_0x394b08[_0x5c1bf0(0x218e)]({'title':_0x5b0be9['status']?_0x5c1bf0(0xeb9)+_0x5b0be9[_0x5c1bf0(0x291)]+'\x20-\x20'+_0x5b0be9['statusText']:'SYSTEM:GET_QUEUES','msg':_0x5b0be9[_0x5c1bf0(0x25c)]?JSON['stringify'](_0x5b0be9['data']):_0x5b0be9[_0x5c1bf0(0x147f)]()});});}function _0x5e5737(){const _0x1f1513=_0x4a1376;_0x3c3a70['isAdmin']()?_0xadf15b[_0x1f1513(0x1059)][_0x1f1513(0xbf7)]({'fields':_0x1f1513(0x286f),'type':_0x1f1513(0x895),'VoiceExtensionId':_0x1f1513(0xd38),'nolimit':_0x1f1513(0x44d)})[_0x1f1513(0x1d77)][_0x1f1513(0x1cb0)](function(_0x262af9){const _0x1019f8=_0x1f1513;_0x295527[_0x1019f8(0xe57)]=_0x262af9['rows']||[];})[_0x1f1513(0x1c4)](function(_0x55101a){const _0x15055a=_0x1f1513;_0x394b08[_0x15055a(0x218e)]({'title':_0x55101a[_0x15055a(0x291)]?_0x15055a(0xeb9)+_0x55101a[_0x15055a(0x291)]+'\x20-\x20'+_0x55101a[_0x15055a(0xc22)]:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x55101a[_0x15055a(0x25c)]?JSON[_0x15055a(0x2701)](_0x55101a[_0x15055a(0x25c)]):_0x55101a['toString']()});}):_0xadf15b[_0x1f1513(0x1059)][_0x1f1513(0xbf7)]({'fields':'id,exten','type':_0x1f1513(0x895),'VoiceExtensionId':_0x1f1513(0xd38),'nolimit':_0x1f1513(0x44d)})[_0x1f1513(0x1d77)][_0x1f1513(0x1cb0)](function(_0x41736e){const _0x3ae020=_0x1f1513;_0x295527[_0x3ae020(0xe57)]=_0x41736e[_0x3ae020(0x2214)]||[];})[_0x1f1513(0x1cb0)](function(){const _0x213d7c=_0x1f1513;return _0xadf15b[_0x213d7c(0x2199)][_0x213d7c(0xbf7)]({'userProfileId':_0x295527[_0x213d7c(0xe76)]['userProfileId'],'sectionId':0x193})['$promise'];})[_0x1f1513(0x1cb0)](function(_0x4d44c0){const _0x1fa3bf=_0x1f1513,_0x41f2d8=_0x4d44c0&&_0x4d44c0['rows']?_0x4d44c0[_0x1fa3bf(0x2214)][0x0]:null;if(!_0x41f2d8){const _0x3b84d8=[],_0x3e5935=[];_0x295527[_0x1fa3bf(0x1504)][_0x1fa3bf(0x2214)][_0x1fa3bf(0xf90)](function(_0x3e94eb){const _0x3b2d64=_0x1fa3bf;if(_0x3e94eb['field']===_0x3b2d64(0xedf)){const _0x2163fc=_0x39641b()[_0x3b2d64(0x13b4)](_0x295527[_0x3b2d64(0xe57)],{'id':Number(_0x3e94eb[_0x3b2d64(0x327)])});_0x3e5935[_0x3b2d64(0x2785)](_0x2163fc);}});for(let _0x44027d=0x0;_0x44027d<_0x295527[_0x1fa3bf(0xe57)][_0x1fa3bf(0xfd0)];_0x44027d++){const _0xf344a0=_0x39641b()[_0x1fa3bf(0x727)](_0x3e5935,{'id':_0x295527[_0x1fa3bf(0xe57)][_0x44027d]['id']});_0xf344a0&&(_0x295527['outboundRoutes'][_0x44027d][_0x1fa3bf(0x15da)]=![],_0x3b84d8['push'](_0x295527[_0x1fa3bf(0xe57)][_0x44027d]));}_0x295527[_0x1fa3bf(0xe57)]=_0x3b84d8;}else{if(!_0x41f2d8['autoAssociation'])return _0xadf15b[_0x1fa3bf(0x1198)][_0x1fa3bf(0xbf7)]({'sectionId':_0x41f2d8['id']})['$promise'][_0x1fa3bf(0x1cb0)](function(_0x4503ee){const _0xd0a56=_0x1fa3bf,_0x3e6dd8=_0x39641b()[_0xd0a56(0x1de2)](_0x4503ee[_0xd0a56(0x2214)],function(_0x1357ee){const _0x271a70=_0xd0a56;return _0x39641b()[_0x271a70(0x13b4)](_0x295527[_0x271a70(0xe57)],{'id':_0x1357ee[_0x271a70(0x2982)]});});let _0x2a4578=null;_0x2a4578=[],_0x295527[_0xd0a56(0x1504)]['rows'][_0xd0a56(0xf90)](function(_0x5119a6){const _0x162d03=_0xd0a56;if(_0x5119a6[_0x162d03(0x2198)]===_0x162d03(0xedf)){const _0xc30135=_0x39641b()[_0x162d03(0x13b4)](_0x295527['outboundRoutes'],{'id':Number(_0x5119a6[_0x162d03(0x327)])});_0x2a4578[_0x162d03(0x2785)](_0xc30135);}}),!_0x39641b()['isEmpty'](_0x2a4578)&&_0x2a4578[_0xd0a56(0xf90)](function(_0x26c469){const _0x3c1822=_0xd0a56;if(!_0x39641b()[_0x3c1822(0x727)](_0x3e6dd8,['id',_0x26c469['id']])){const _0x5de30e=_0x39641b()[_0x3c1822(0x13b4)](_0x295527[_0x3c1822(0xe57)],{'id':_0x26c469['id']});_0x5de30e[_0x3c1822(0x15da)]=![],_0x3e6dd8[_0x3c1822(0x2785)](_0x5de30e);}}),_0x295527['outboundRoutes']=_0x3e6dd8;});}})[_0x1f1513(0x1c4)](function(_0x71296b){const _0x2d0a0d=_0x1f1513;_0x394b08[_0x2d0a0d(0x218e)]({'title':_0x71296b[_0x2d0a0d(0x291)]?'API:'+_0x71296b[_0x2d0a0d(0x291)]+_0x2d0a0d(0x1657)+_0x71296b[_0x2d0a0d(0xc22)]:_0x2d0a0d(0x25ea),'msg':_0x71296b[_0x2d0a0d(0x25c)]?JSON[_0x2d0a0d(0x2701)](_0x71296b[_0x2d0a0d(0x25c)]):_0x71296b[_0x2d0a0d(0x147f)]()});});}function _0x1a6e5d(){const _0x17f226=_0x4a1376;_0x3c3a70[_0x17f226(0x10fc)]()?_0xadf15b[_0x17f226(0xebe)][_0x17f226(0xbf7)]({'fields':_0x17f226(0x1d34),'sort':_0x17f226(0x16b6),'role':_0x17f226(0x1eff),'nolimit':_0x17f226(0x44d)})['$promise'][_0x17f226(0x1cb0)](function(_0x57afbd){const _0x6487d2=_0x17f226;_0x295527[_0x6487d2(0xc12)]=_0x57afbd[_0x6487d2(0x2214)]||[];})[_0x17f226(0x1c4)](function(_0x2cd9d8){const _0x4d5994=_0x17f226;_0x394b08[_0x4d5994(0x218e)]({'title':_0x2cd9d8[_0x4d5994(0x291)]?'API:'+_0x2cd9d8[_0x4d5994(0x291)]+'\x20-\x20'+_0x2cd9d8[_0x4d5994(0xc22)]:_0x4d5994(0x799),'msg':_0x2cd9d8[_0x4d5994(0x25c)]?JSON['stringify'](_0x2cd9d8[_0x4d5994(0x25c)]):_0x2cd9d8['toString']()});}):_0xadf15b[_0x17f226(0xebe)][_0x17f226(0xbf7)]({'fields':'id,name,fullname','sort':_0x17f226(0x16b6),'role':_0x17f226(0x1eff),'nolimit':'true'})['$promise'][_0x17f226(0x1cb0)](function(_0x4838dc){const _0x2186e8=_0x17f226;_0x295527[_0x2186e8(0xc12)]=_0x4838dc[_0x2186e8(0x2214)]||[];})[_0x17f226(0x1cb0)](function(){const _0x3be5d4=_0x17f226;return _0xadf15b['userProfileSection']['get']({'userProfileId':_0x295527[_0x3be5d4(0xe76)][_0x3be5d4(0x13c1)],'sectionId':0xca})[_0x3be5d4(0x1d77)];})['then'](function(_0x43b762){const _0x1310d5=_0x17f226,_0x14e4ed=_0x43b762&&_0x43b762[_0x1310d5(0x2214)]?_0x43b762[_0x1310d5(0x2214)][0x0]:null;if(!_0x14e4ed){const _0x5c7913=[],_0x12567f=[];_0x295527[_0x1310d5(0x1504)][_0x1310d5(0x2214)][_0x1310d5(0xf90)](function(_0x713353){const _0x55d93a=_0x1310d5;if(_0x713353[_0x55d93a(0x2198)]===_0x55d93a(0x1eff)){const _0x4928d5=_0x39641b()[_0x55d93a(0x13b4)](_0x295527[_0x55d93a(0xc12)],{'name':_0x713353['value']});_0x12567f[_0x55d93a(0x2785)](_0x4928d5);}});for(let _0x21021b=0x0;_0x21021b<_0x295527[_0x1310d5(0xc12)][_0x1310d5(0xfd0)];_0x21021b++){const _0x289f73=_0x39641b()[_0x1310d5(0x727)](_0x12567f,{'id':_0x295527[_0x1310d5(0xc12)][_0x21021b]['id']});_0x289f73&&(_0x295527[_0x1310d5(0xc12)][_0x21021b]['canSelect']=![],_0x5c7913[_0x1310d5(0x2785)](_0x295527[_0x1310d5(0xc12)][_0x21021b]));}_0x295527[_0x1310d5(0xc12)]=_0x5c7913;}else{if(!_0x14e4ed[_0x1310d5(0x12f4)])return _0xadf15b['userProfileResource']['get']({'sectionId':_0x14e4ed['id']})[_0x1310d5(0x1d77)][_0x1310d5(0x1cb0)](function(_0x1a5193){const _0x2e1bfd=_0x1310d5,_0x170b9c=_0x39641b()['map'](_0x1a5193[_0x2e1bfd(0x2214)],function(_0x36a4b5){const _0x3d214=_0x2e1bfd;return _0x39641b()['find'](_0x295527['agents'],{'id':_0x36a4b5[_0x3d214(0x2982)]});});let _0x532c1f=null;_0x532c1f=[],_0x295527[_0x2e1bfd(0x1504)][_0x2e1bfd(0x2214)][_0x2e1bfd(0xf90)](function(_0x276d22){const _0x4de7e7=_0x2e1bfd;if(_0x276d22['field']===_0x4de7e7(0x1eff)){const _0x35b742=_0x39641b()[_0x4de7e7(0x13b4)](_0x295527[_0x4de7e7(0xc12)],{'name':_0x276d22[_0x4de7e7(0x327)]});_0x532c1f[_0x4de7e7(0x2785)](_0x35b742);}}),!_0x39641b()[_0x2e1bfd(0xce9)](_0x532c1f)&&_0x532c1f[_0x2e1bfd(0xf90)](function(_0x35e83b){const _0x1ae184=_0x2e1bfd;if(!_0x39641b()['some'](_0x170b9c,['id',_0x35e83b['id']])){const _0x1e5b31=_0x39641b()[_0x1ae184(0x13b4)](_0x295527['agents'],{'id':_0x35e83b['id']});_0x1e5b31[_0x1ae184(0x15da)]=![],_0x170b9c[_0x1ae184(0x2785)](_0x1e5b31);}}),_0x295527[_0x2e1bfd(0xc12)]=_0x170b9c;});}})[_0x17f226(0x1c4)](function(_0x204d69){const _0x41edb6=_0x17f226;_0x394b08[_0x41edb6(0x218e)]({'title':_0x204d69[_0x41edb6(0x291)]?_0x41edb6(0xeb9)+_0x204d69[_0x41edb6(0x291)]+'\x20-\x20'+_0x204d69['statusText']:_0x41edb6(0x799),'msg':_0x204d69[_0x41edb6(0x25c)]?JSON[_0x41edb6(0x2701)](_0x204d69['data']):_0x204d69[_0x41edb6(0x147f)]()});});}function _0x364c8f(){const _0x3eee07=_0x4a1376,_0x2a3226=_0x295527[_0x3eee07(0x497)][_0x3eee07(0x1072)]+(_0x295527['trigger'][_0x3eee07(0x1072)]==='chat'?_0x3eee07(0x11aa):_0x3eee07(0x1649));let _0x5f15bf;switch(_0x295527[_0x3eee07(0x497)][_0x3eee07(0x1072)]){case _0x3eee07(0x174c):_0x5f15bf=0x1f6;break;case _0x3eee07(0x1944):_0x5f15bf=0x386;break;case _0x3eee07(0x2651):_0x5f15bf=0x25a;break;case'openchannel':_0x5f15bf=0x322;break;case'sms':_0x5f15bf=0x2be;break;case'whatsapp':_0x5f15bf=0x836;break;}if(_0x3c3a70[_0x3eee07(0x10fc)]()){const _0x20226e=_0x295527[_0x3eee07(0x497)][_0x3eee07(0x1072)];_0xadf15b[_0x2a3226]['get']({'fields':_0x3eee07(0x43c),'sort':'id','nolimit':'true'})[_0x3eee07(0x1d77)][_0x3eee07(0x1cb0)](function(_0x1b667c){const _0x23c760=_0x3eee07;_0x295527[_0x23c760(0x745)]=_0x1b667c[_0x23c760(0x2214)]||[];})[_0x3eee07(0x1c4)](function(_0x2d212c){const _0x21ce9e=_0x3eee07;_0x394b08[_0x21ce9e(0x218e)]({'title':_0x2d212c[_0x21ce9e(0x291)]?_0x21ce9e(0xeb9)+_0x2d212c[_0x21ce9e(0x291)]+_0x21ce9e(0x1657)+_0x2d212c[_0x21ce9e(0xc22)]:_0x21ce9e(0x21df)+_0x20226e[_0x21ce9e(0x2335)]()+_0x20226e===_0x21ce9e(0x174c)?_0x21ce9e(0x202a):_0x21ce9e(0x21e),'msg':_0x2d212c[_0x21ce9e(0x25c)]?JSON[_0x21ce9e(0x2701)](_0x2d212c[_0x21ce9e(0x25c)]):_0x2d212c['toString']()});});}else _0xadf15b[_0x2a3226][_0x3eee07(0xbf7)]({'fields':_0x3eee07(0x43c),'sort':'id','nolimit':_0x3eee07(0x44d)})[_0x3eee07(0x1d77)][_0x3eee07(0x1cb0)](function(_0x29214e){const _0xdf7830=_0x3eee07;_0x295527[_0xdf7830(0x745)]=_0x29214e['rows']||[];})[_0x3eee07(0x1cb0)](function(){const _0x4a3e75=_0x3eee07;return _0xadf15b[_0x4a3e75(0x2199)][_0x4a3e75(0xbf7)]({'userProfileId':_0x295527['currentUser'][_0x4a3e75(0x13c1)],'sectionId':_0x5f15bf})[_0x4a3e75(0x1d77)];})[_0x3eee07(0x1cb0)](function(_0x342d40){const _0x5c270a=_0x3eee07,_0x2ae16c=_0x342d40&&_0x342d40[_0x5c270a(0x2214)]?_0x342d40[_0x5c270a(0x2214)][0x0]:null;if(!_0x2ae16c){const _0x305300=[],_0x15e388=[];_0x295527[_0x5c270a(0x1504)][_0x5c270a(0x2214)][_0x5c270a(0xf90)](function(_0xf6d94b){const _0x1e7270=_0x5c270a;if(_0xf6d94b['field']===_0x1e7270(0x1539)){const _0x87ff66=_0x39641b()['find'](_0x295527[_0x1e7270(0x745)],{'id':Number(_0xf6d94b[_0x1e7270(0x327)])});_0x15e388[_0x1e7270(0x2785)](_0x87ff66);}});for(let _0x50609e=0x0;_0x50609e<_0x295527[_0x5c270a(0x745)][_0x5c270a(0xfd0)];_0x50609e++){const _0x1b5945=_0x39641b()[_0x5c270a(0x727)](_0x15e388,{'id':_0x295527['accounts'][_0x50609e]['id']});_0x1b5945&&(_0x295527[_0x5c270a(0x745)][_0x50609e][_0x5c270a(0x15da)]=![],_0x305300[_0x5c270a(0x2785)](_0x295527[_0x5c270a(0x745)][_0x50609e]));}_0x295527[_0x5c270a(0x745)]=_0x305300;}else{if(!_0x2ae16c[_0x5c270a(0x12f4)])return _0xadf15b[_0x5c270a(0x1198)][_0x5c270a(0xbf7)]({'sectionId':_0x2ae16c['id']})[_0x5c270a(0x1d77)][_0x5c270a(0x1cb0)](function(_0x1915f9){const _0x5839a7=_0x5c270a,_0x393fe1=_0x39641b()[_0x5839a7(0x1de2)](_0x1915f9[_0x5839a7(0x2214)],function(_0x1feed2){const _0x32f977=_0x5839a7;return _0x39641b()[_0x32f977(0x13b4)](_0x295527[_0x32f977(0x745)],{'id':_0x1feed2[_0x32f977(0x2982)]});});let _0x7d4362=null;_0x7d4362=[],_0x295527[_0x5839a7(0x1504)][_0x5839a7(0x2214)][_0x5839a7(0xf90)](function(_0x1843e6){const _0xafd47c=_0x5839a7;if(_0x1843e6[_0xafd47c(0x2198)]==='account'){const _0x55d88a=_0x39641b()['find'](_0x295527[_0xafd47c(0x745)],{'id':Number(_0x1843e6['value'])});_0x7d4362[_0xafd47c(0x2785)](_0x55d88a);}}),!_0x39641b()[_0x5839a7(0xce9)](_0x7d4362)&&_0x7d4362['forEach'](function(_0x31722a){const _0x503bd1=_0x5839a7;if(!_0x39641b()[_0x503bd1(0x727)](_0x393fe1,['id',_0x31722a['id']])){const _0x1be500=_0x39641b()[_0x503bd1(0x13b4)](_0x295527[_0x503bd1(0x745)],{'id':_0x31722a['id']});_0x1be500[_0x503bd1(0x15da)]=![],_0x393fe1[_0x503bd1(0x2785)](_0x1be500);}}),_0x295527[_0x5839a7(0x745)]=_0x393fe1;});}})['catch'](function(_0x303d87){const _0x25ee0b=_0x3eee07,_0x12f393=_0x295527[_0x25ee0b(0x497)][_0x25ee0b(0x1072)];_0x394b08[_0x25ee0b(0x218e)]({'title':_0x303d87['status']?_0x25ee0b(0xeb9)+_0x303d87['status']+_0x25ee0b(0x1657)+_0x303d87['statusText']:_0x25ee0b(0x21df)+_0x12f393[_0x25ee0b(0x2335)]()+_0x12f393===_0x25ee0b(0x174c)?_0x25ee0b(0x202a):'ACCOUNTS','msg':_0x303d87[_0x25ee0b(0x25c)]?JSON[_0x25ee0b(0x2701)](_0x303d87[_0x25ee0b(0x25c)]):_0x303d87[_0x25ee0b(0x147f)]()});});}function _0x242cc7(){const _0x375d87=_0x4a1376;switch(_0x295527[_0x375d87(0x1835)][_0x375d87(0x2198)]){case _0x375d87(0x11cf):if(!_0x295527[_0x375d87(0x971)])_0x21363f();break;case _0x375d87(0xedf):if(!_0x295527['outboundRoutes'])_0x5e5737();break;case _0x375d87(0x1eff):if(!_0x295527[_0x375d87(0xc12)])_0x1a6e5d();break;case _0x375d87(0x1539):_0x364c8f();break;}}function _0x58ab9c(){_0x242cc7();}function _0x20ca85(){const _0x5b974e=_0x4a1376;_0x295527['errors']=[],_0xadf15b[_0x5b974e(0x497)]['addAllCondition']({'id':_0x4b7d83[_0x5b974e(0x1dfe)]['id']},_0x295527[_0x5b974e(0x1835)])['$promise']['then'](function(_0x43e4a3){const _0x3d95=_0x5b974e;_0x295527['allConditions'][_0x3d95(0xf63)](_0x43e4a3[_0x3d95(0x19b2)]()),_0x394b08[_0x3d95(0x829)]({'title':_0x2087a4[_0x3d95(0x25cc)](_0x3d95(0x111e))}),_0x476ca7(_0x295527[_0x3d95(0xfa4)]);})['catch'](function(_0x2afac6){const _0x5e2d4b=_0x5b974e;if(_0x2afac6['data']&&_0x2afac6[_0x5e2d4b(0x25c)][_0x5e2d4b(0x1a7c)]&&_0x2afac6['data'][_0x5e2d4b(0x1a7c)][_0x5e2d4b(0xfd0)]){_0x295527[_0x5e2d4b(0x1a7c)]=_0x2afac6[_0x5e2d4b(0x25c)][_0x5e2d4b(0x1a7c)]||[{'message':_0x2afac6[_0x5e2d4b(0x147f)](),'type':_0x5e2d4b(0x23a3)}];for(let _0x5ec784=0x0;_0x5ec784<_0x2afac6[_0x5e2d4b(0x25c)][_0x5e2d4b(0x1a7c)][_0x5e2d4b(0xfd0)];_0x5ec784+=0x1){_0x394b08[_0x5e2d4b(0x218e)]({'title':_0x2afac6[_0x5e2d4b(0x25c)]['errors'][_0x5ec784][_0x5e2d4b(0x66a)],'msg':_0x2afac6['data'][_0x5e2d4b(0x1a7c)][_0x5ec784][_0x5e2d4b(0x155e)]});}}else _0x394b08['error']({'title':_0x2afac6[_0x5e2d4b(0x291)]?'API:'+_0x2afac6['status']+_0x5e2d4b(0x1657)+_0x2afac6[_0x5e2d4b(0xc22)]:_0x5e2d4b(0x23a3),'msg':_0x2afac6[_0x5e2d4b(0x25c)]?JSON['stringify'](_0x2afac6['data'][_0x5e2d4b(0x155e)]):_0x2afac6[_0x5e2d4b(0x147f)]()});});}function _0x3c949f(){const _0x3a3b2a=_0x4a1376;_0x295527['errors']=[],_0xadf15b[_0x3a3b2a(0x166c)]['update']({'id':_0x295527[_0x3a3b2a(0x1835)]['id']},_0x295527['allCondition'])['$promise'][_0x3a3b2a(0x1cb0)](function(){const _0x3d7c7f=_0x3a3b2a;_0x295527[_0x3d7c7f(0xfa4)]=_0x39641b()[_0x3d7c7f(0x1de2)](_0x295527['allConditions'],function(_0x164266){const _0x8ffe7e=_0x3d7c7f;if(_0x164266['id']===_0x295527[_0x8ffe7e(0x1835)]['id'])return _0x295527['allCondition'];else return _0x164266;}),_0x394b08['success']({'title':_0x2087a4[_0x3d7c7f(0x25cc)](_0x3d7c7f(0x2692))}),_0x476ca7(_0x295527[_0x3d7c7f(0xfa4)]);})[_0x3a3b2a(0x1c4)](function(_0x200632){const _0x579bc1=_0x3a3b2a;if(_0x200632[_0x579bc1(0x25c)]&&_0x200632['data'][_0x579bc1(0x1a7c)]&&_0x200632[_0x579bc1(0x25c)][_0x579bc1(0x1a7c)][_0x579bc1(0xfd0)]){_0x295527[_0x579bc1(0x1a7c)]=_0x200632['data'][_0x579bc1(0x1a7c)]||[{'message':_0x200632['toString'](),'type':_0x579bc1(0x229f)}];for(let _0x7c3aa5=0x0;_0x7c3aa5<_0x200632[_0x579bc1(0x25c)]['errors'][_0x579bc1(0xfd0)];_0x7c3aa5++){_0x394b08['error']({'title':_0x200632[_0x579bc1(0x25c)][_0x579bc1(0x1a7c)][_0x7c3aa5][_0x579bc1(0x66a)],'msg':_0x200632[_0x579bc1(0x25c)][_0x579bc1(0x1a7c)][_0x7c3aa5][_0x579bc1(0x155e)]});}}else _0x394b08['error']({'title':_0x200632[_0x579bc1(0x291)]?_0x579bc1(0xeb9)+_0x200632[_0x579bc1(0x291)]+'\x20-\x20'+_0x200632[_0x579bc1(0xc22)]:'api.condition.update','msg':_0x200632[_0x579bc1(0x25c)]?JSON['stringify'](_0x200632[_0x579bc1(0x25c)][_0x579bc1(0x155e)]):_0x200632['toString']()});});}function _0x2f6ed9(_0x557636){const _0x5a6bf1=_0x4a1376;_0x295527['errors']=[];const _0x45527d=_0x2bbd3c[_0x5a6bf1(0x1551)]({'skipHide':!![]})[_0x5a6bf1(0x1386)](_0x2087a4[_0x5a6bf1(0x25cc)]('TOOLS.NOTIFICATIONS.CONDITION_DELETE_TITLE'))[_0x5a6bf1(0x15ad)]('Delete\x20condition')['ok'](_0x2087a4[_0x5a6bf1(0x25cc)](_0x5a6bf1(0x2966)))[_0x5a6bf1(0x696)](_0x2087a4[_0x5a6bf1(0x25cc)](_0x5a6bf1(0x2768)))[_0x5a6bf1(0x728)](_0x557636);_0x2bbd3c[_0x5a6bf1(0xe27)](_0x45527d)['then'](function(){const _0x265ec7=_0x5a6bf1;_0xadf15b[_0x265ec7(0x166c)][_0x265ec7(0x111d)]({'id':_0x295527[_0x265ec7(0x1835)]['id']})[_0x265ec7(0x1d77)]['then'](function(){const _0x5f0381=_0x265ec7;_0x295527[_0x5f0381(0xfa4)]=_0x39641b()['filter'](_0x295527[_0x5f0381(0xfa4)],function(_0x747b9){return _0x747b9['id']!==_0x295527['allCondition']['id'];}),_0x394b08['success']({'title':_0x2087a4['instant']('TOOLS.NOTIFICATIONS.CONDITION_DELETED_SUCCESS_TITLE')}),_0x476ca7(_0x295527[_0x5f0381(0xfa4)]);})[_0x265ec7(0x1c4)](function(_0x124c65){const _0x4c9211=_0x265ec7;if(_0x124c65['data']&&_0x124c65[_0x4c9211(0x25c)][_0x4c9211(0x1a7c)]&&_0x124c65[_0x4c9211(0x25c)][_0x4c9211(0x1a7c)][_0x4c9211(0xfd0)]){_0x295527[_0x4c9211(0x1a7c)]=_0x124c65[_0x4c9211(0x25c)][_0x4c9211(0x1a7c)]||[{'message':_0x124c65[_0x4c9211(0x147f)](),'type':_0x4c9211(0xcc8)}];for(let _0x2e4efc=0x0;_0x2e4efc<_0x124c65[_0x4c9211(0x25c)][_0x4c9211(0x1a7c)]['length'];_0x2e4efc++){_0x394b08[_0x4c9211(0x218e)]({'title':_0x124c65[_0x4c9211(0x25c)][_0x4c9211(0x1a7c)][_0x2e4efc]['type'],'msg':_0x124c65[_0x4c9211(0x25c)][_0x4c9211(0x1a7c)][_0x2e4efc][_0x4c9211(0x155e)]});}}else _0x394b08[_0x4c9211(0x218e)]({'title':_0x124c65['status']?_0x4c9211(0xeb9)+_0x124c65[_0x4c9211(0x291)]+_0x4c9211(0x1657)+_0x124c65[_0x4c9211(0xc22)]:'api.condition.delete','msg':_0x124c65[_0x4c9211(0x25c)]?JSON['stringify'](_0x124c65[_0x4c9211(0x25c)][_0x4c9211(0x155e)]):_0x124c65['message']||_0x124c65[_0x4c9211(0x147f)]()});});},function(){});}function _0x476ca7(_0x474de9){_0x2bbd3c['hide'](_0x474de9);}}const _0x4584cd=_0x3523fa;;_0x456c56[_0x5537c6(0x15b6)]=['$state','$translate',_0x5537c6(0x8a5),'setting',_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x497),_0x5537c6(0x2199)];function _0x456c56(_0x2404bf,_0x5a6a65,_0x2fe7f1,_0x38bc7d,_0x4eedd9,_0x1aca32,_0x56937c,_0x297763,_0x3d119d){const _0x3ba110=_0x5537c6,_0x4dc4dc=this;_0x4dc4dc[_0x3ba110(0xe76)]=_0x56937c['getCurrentUser'](),_0x4dc4dc[_0x3ba110(0x8a5)]=_0x2fe7f1,_0x4dc4dc[_0x3ba110(0x9ca)]=_0x38bc7d,_0x4dc4dc[_0x3ba110(0x497)]=_0x297763||_0x2404bf[_0x3ba110(0x1dfe)][_0x3ba110(0x497)]||{},_0x4dc4dc[_0x3ba110(0x8ec)]=_0x2404bf['params']['tab']||0x0;_0x2404bf[_0x3ba110(0x1dfe)][_0x3ba110(0x1b1a)]?_0x4dc4dc[_0x3ba110(0x1b1a)]=_0x2404bf[_0x3ba110(0x1dfe)][_0x3ba110(0x1b1a)]:(_0x4dc4dc['userProfileSection']=_0x3d119d&&_0x3d119d[_0x3ba110(0x184d)]==0x1?_0x3d119d['rows'][0x0]:null,_0x4dc4dc[_0x3ba110(0x1b1a)]=_0x56937c[_0x3ba110(0x14ea)](_0x4dc4dc['userProfileSection']?_0x4dc4dc[_0x3ba110(0x2199)][_0x3ba110(0x1b1a)]:null));_0x4dc4dc[_0x3ba110(0xeb7)]=_0x5972a2,_0x4dc4dc[_0x3ba110(0x1cba)]=_0x2285b6;function _0x5972a2(){const _0x5548c8=_0x3ba110;_0x2404bf['go'](_0x5548c8(0xf53),{},{'reload':_0x5548c8(0xf53)});}function _0x2285b6(){const _0x5881b4=_0x3ba110;_0x4eedd9['trigger'][_0x5881b4(0x687)]({'id':_0x4dc4dc[_0x5881b4(0x497)]['id']},_0x4dc4dc[_0x5881b4(0x497)])[_0x5881b4(0x1d77)]['then'](function(){const _0x322c07=_0x5881b4;_0x1aca32[_0x322c07(0x829)]({'title':_0x5a6a65[_0x322c07(0x25cc)]('TOOLS.NOTIFICATIONS.TRIGGER_SAVED_SUCCESS_TITLE')});})[_0x5881b4(0x1c4)](function(_0x190dcc){const _0x8cacec=_0x5881b4;_0x1aca32[_0x8cacec(0x218e)]({'title':_0x190dcc[_0x8cacec(0x291)]?_0x8cacec(0xeb9)+_0x190dcc[_0x8cacec(0x291)]+'\x20-\x20'+_0x190dcc[_0x8cacec(0xc22)]:_0x8cacec(0x15e7),'msg':_0x190dcc['data']?JSON[_0x8cacec(0x2701)](_0x190dcc[_0x8cacec(0x25c)]):_0x190dcc['toString']()});});}}const _0x5811ae=_0x456c56;;const _0x100e69=_0x5074a3['p']+'src/js/modules/main/apps/tools/views/triggers/create/dialog.html/dialog.html';;_0x110139[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'$timeout',_0x5537c6(0x1ae),_0x5537c6(0xfd5),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),'license',_0x5537c6(0x9ca)];function _0x110139(_0x3ee045,_0x1c2b43,_0x36a66c,_0x34fb31,_0xbf5bab,_0x1ec7b4,_0x5df8a5,_0x8eb4a3,_0x2d8635,_0x4dcaf4,_0x18734d,_0x120364,_0x227bea,_0xd1394c){const _0x470e6f=_0x5537c6,_0x2557a6=this;_0x2557a6[_0x470e6f(0x8a5)]=_0x227bea,_0x2557a6[_0x470e6f(0x9ca)]=_0xd1394c,_0x2557a6[_0x470e6f(0xe76)]=_0x120364['getCurrentUser'](),_0x2557a6[_0x470e6f(0xfd5)]=_0x5df8a5||{'count':0x0,'rows':[]},_0x2557a6[_0x470e6f(0x44a)]=_0x8eb4a3,_0x2557a6[_0x470e6f(0x2199)]=_0x2d8635&&_0x2d8635[_0x470e6f(0x184d)]==0x1?_0x2d8635[_0x470e6f(0x2214)][0x0]:null,_0x2557a6['crudPermissions']=_0x120364[_0x470e6f(0x14ea)](_0x2557a6['userProfileSection']?_0x2557a6['userProfileSection'][_0x470e6f(0x1b1a)]:null),_0x2557a6[_0x470e6f(0x232)]=[],_0x2557a6['query']={'fields':'id,name,channel,status,description,createdAt,updatedAt','sort':_0x470e6f(0x282),'limit':0xa,'page':0x1},_0x2557a6[_0x470e6f(0x1dfb)]=_0x21bf31,_0x2557a6[_0x470e6f(0x20b5)]=_0x1a01b2,_0x2557a6[_0x470e6f(0x829)]=_0x292d38,_0x2557a6[_0x470e6f(0xf98)]=_0x860017,_0x2557a6['deleteconfirm']=_0x3b0c34,_0x2557a6[_0x470e6f(0x15f9)]=_0x447679,_0x2557a6[_0x470e6f(0x2940)]=_0x38982b,_0x2557a6['deselectTriggers']=_0x238ce8,_0x2557a6[_0x470e6f(0x1ef4)]=_0x37b849;function _0x21bf31(_0x1ad69d){const _0xb1f52f=_0x470e6f;_0x1c2b43['go'](_0xb1f52f(0x10a1),{'id':_0x1ad69d['id'],'trigger':_0x1ad69d,'crudPermissions':_0x2557a6['crudPermissions']});}function _0x1a01b2(_0x87d88a,_0x4a265a){const _0x54a9a7=_0x470e6f;if(_0x2557a6[_0x54a9a7(0x1b1a)][_0x54a9a7(0x2e2)]||_0x2557a6[_0x54a9a7(0x1b1a)]['canDelete']&&!_0x2557a6[_0x54a9a7(0x1b1a)][_0x54a9a7(0xb3d)]){_0x21bf31(_0x4a265a);return;}_0x36a66c['show']({'controller':_0x54a9a7(0x27b2),'controllerAs':'vm','templateUrl':_0x100e69,'parent':angular[_0x54a9a7(0x1853)](_0x34fb31[_0x54a9a7(0x1ed9)]),'targetEvent':_0x87d88a,'clickOutsideToClose':!![],'locals':{'trigger':_0x4a265a,'triggers':_0x2557a6[_0x54a9a7(0xfd5)][_0x54a9a7(0x2214)],'license':_0x2557a6['license'],'setting':_0x2557a6['setting'],'crudPermissions':_0x2557a6['crudPermissions']}})[_0x54a9a7(0x1cb0)](function(_0x5f1b00){const _0x37daa1=_0x54a9a7;_0x5f1b00&&(_0x2557a6['triggers']={'count':_0x5f1b00[_0x37daa1(0xfd0)],'rows':_0x5f1b00});});}function _0x292d38(_0x54e2c0){const _0x4f0049=_0x470e6f;_0x2557a6[_0x4f0049(0xfd5)]=_0x54e2c0||{'count':0x0,'rows':[]};}function _0x860017(){const _0x4afea8=_0x470e6f;_0x2557a6[_0x4afea8(0xae2)][_0x4afea8(0x184b)]=(_0x2557a6[_0x4afea8(0xae2)][_0x4afea8(0x1c7b)]-0x1)*_0x2557a6[_0x4afea8(0xae2)][_0x4afea8(0x236)],_0x120364[_0x4afea8(0x10fc)]()?_0x2557a6[_0x4afea8(0x2061)]=_0x4dcaf4[_0x4afea8(0x497)][_0x4afea8(0xbf7)](_0x2557a6[_0x4afea8(0xae2)],_0x292d38)[_0x4afea8(0x1d77)]:(_0x2557a6[_0x4afea8(0xae2)]['id']=_0x2557a6[_0x4afea8(0x44a)]['id'],_0x2557a6[_0x4afea8(0xae2)][_0x4afea8(0x1f74)]='Triggers',_0x2557a6[_0x4afea8(0x2061)]=_0x4dcaf4[_0x4afea8(0x44a)]['getResources'](_0x2557a6[_0x4afea8(0xae2)],_0x292d38)['$promise']);}function _0x3b0c34(_0x1f8f65,_0x45dc6d){const _0x1cb3e2=_0x470e6f,_0xf657fc=_0x36a66c['confirm']()[_0x1cb3e2(0x1386)](_0x1ec7b4[_0x1cb3e2(0x25cc)](_0x1cb3e2(0x5ad)))[_0x1cb3e2(0x862)](_0x1ec7b4[_0x1cb3e2(0x25cc)](_0x1cb3e2(0x666),{'name':_0x1f8f65[_0x1cb3e2(0x16b6)]}))['ariaLabel'](_0x1cb3e2(0x936))[_0x1cb3e2(0x728)](_0x45dc6d)['ok']('OK')[_0x1cb3e2(0x696)](_0x1ec7b4['instant']('APP.CANCEL'));_0x36a66c[_0x1cb3e2(0xe27)](_0xf657fc)[_0x1cb3e2(0x1cb0)](function(){_0x13bbd7(_0x1f8f65,!![]);});}function _0x13bbd7(_0x33e474,_0x485df4){const _0x4566cb=_0x470e6f;_0x4dcaf4[_0x4566cb(0x497)]['delete']({'id':_0x33e474['id']})[_0x4566cb(0x1d77)][_0x4566cb(0x1cb0)](function(){const _0x439eee=_0x4566cb;_0x860017(),_0x485df4&&_0x18734d[_0x439eee(0x829)]({'title':_0x1ec7b4['instant']('TOOLS.NOTIFICATIONS.TRIGGER_DELETED_SUCCESS_TITLE')});})[_0x4566cb(0x1c4)](function(_0x6d1094){const _0x19dead=_0x4566cb;if(_0x6d1094[_0x19dead(0x25c)]&&_0x6d1094[_0x19dead(0x25c)][_0x19dead(0x1a7c)]&&_0x6d1094[_0x19dead(0x25c)][_0x19dead(0x1a7c)]['length']){_0x2557a6[_0x19dead(0x1a7c)]=_0x6d1094[_0x19dead(0x25c)]['errors']||[{'message':_0x6d1094[_0x19dead(0x147f)](),'type':_0x19dead(0x1957)}];for(let _0x24e1d8=0x0;_0x24e1d8<_0x6d1094[_0x19dead(0x25c)][_0x19dead(0x1a7c)][_0x19dead(0xfd0)];_0x24e1d8++){_0x18734d[_0x19dead(0x218e)]({'title':_0x6d1094['data'][_0x19dead(0x1a7c)][_0x24e1d8][_0x19dead(0x66a)],'msg':_0x6d1094[_0x19dead(0x25c)][_0x19dead(0x1a7c)][_0x24e1d8][_0x19dead(0x155e)]});}}else _0x18734d[_0x19dead(0x218e)]({'title':_0x6d1094[_0x19dead(0x291)]?_0x19dead(0xeb9)+_0x6d1094[_0x19dead(0x291)]+_0x19dead(0x1657)+_0x6d1094[_0x19dead(0xc22)]:_0x19dead(0x1957),'msg':_0x6d1094[_0x19dead(0x25c)]?JSON[_0x19dead(0x2701)](_0x6d1094['data'][_0x19dead(0x155e)]):_0x6d1094[_0x19dead(0x155e)]||_0x6d1094[_0x19dead(0x147f)]()});});}function _0x447679(){const _0x40a385=_0x470e6f,_0x2990b1=angular[_0x40a385(0x17fe)](_0x2557a6[_0x40a385(0x232)]);return _0x2557a6[_0x40a385(0x232)]=[],_0x2990b1;}function _0x38982b(_0x3448b7){const _0x133614=_0x470e6f,_0x77bbdb=_0x36a66c[_0x133614(0x1551)]()['title'](_0x1ec7b4[_0x133614(0x25cc)](_0x133614(0x78f)))['content'](_0x1ec7b4[_0x133614(0x25cc)](_0x133614(0x27d7),{'total':_0x2557a6[_0x133614(0x232)]['length']}))['ariaLabel'](_0x133614(0x92c))['targetEvent'](_0x3448b7)['ok']('OK')[_0x133614(0x696)](_0x1ec7b4['instant'](_0x133614(0x2768)));_0x36a66c[_0x133614(0xe27)](_0x77bbdb)[_0x133614(0x1cb0)](function(){const _0x3f95ff=_0x133614;_0x2557a6[_0x3f95ff(0x232)]['forEach'](function(_0x647db2){_0x13bbd7(_0x647db2);}),_0x2557a6[_0x3f95ff(0x232)]=[],_0x18734d[_0x3f95ff(0x829)]({'title':_0x1ec7b4[_0x3f95ff(0x25cc)](_0x3f95ff(0x2756))});});}function _0x238ce8(){const _0xcbb2a1=_0x470e6f;_0x2557a6[_0xcbb2a1(0x232)]=[];}function _0x37b849(){const _0x48535d=_0x470e6f;_0x2557a6[_0x48535d(0x232)]=_0x2557a6[_0x48535d(0xfd5)]['rows'];}let _0xd6baff=!![],_0x167095=0x1;_0x3ee045[_0x470e6f(0x614)](_0x470e6f(0x957),function(_0x159098,_0x23148a){const _0xe3b3=_0x470e6f;_0xd6baff?_0xbf5bab(function(){_0xd6baff=![];}):(!_0x23148a&&(_0x167095=_0x2557a6[_0xe3b3(0xae2)]['page']),_0x159098!==_0x23148a&&(_0x2557a6[_0xe3b3(0xae2)]['page']=0x1),!_0x159098&&(_0x2557a6[_0xe3b3(0xae2)][_0xe3b3(0x1c7b)]=_0x167095),_0x860017());});}const _0x312331=_0x110139;;_0x498676[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6)];function _0x498676(_0x394177){const _0xf2a15c=_0x5537c6;_0x394177[_0xf2a15c(0x27e0)]('app.tools.triggers',{'url':_0xf2a15c(0x282e),'views':{'content@app':{'templateUrl':_0x3715a8,'controller':'TriggersController\x20as\x20vm'}},'resolve':{'triggers':['apiResolver',_0xf2a15c(0x1774),function(_0xaf00f6,_0x8c5da6){const _0x12448d=_0xf2a15c;return _0x8c5da6['hasRole'](_0x12448d(0x1c60))?_0xaf00f6[_0x12448d(0x19a3)]('trigger@get',{'fields':_0x12448d(0x1ee8),'sort':_0x12448d(0x282),'limit':0xa,'offset':0x0}):_0xaf00f6['resolve']('userProfile@getResources',{'id':_0x8c5da6[_0x12448d(0x21e8)]()[_0x12448d(0x13c1)],'section':_0x12448d(0x19c1),'fields':_0x12448d(0x1ee8),'sort':_0x12448d(0x282),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x492bd4,_0x193c1a){const _0x32996c=_0xf2a15c;return _0x193c1a[_0x32996c(0x22b6)](_0x32996c(0x1c60))?null:_0x492bd4[_0x32996c(0x19a3)](_0x32996c(0x9ae),{'fields':_0x32996c(0x279),'id':_0x193c1a['getCurrentUser']()[_0x32996c(0x13c1)]});}],'userProfileSection':['apiResolver','Auth',function(_0x1fee64,_0x4a60f8){const _0x5ba60b=_0xf2a15c;return _0x4a60f8[_0x5ba60b(0x22b6)]('admin')?null:_0x1fee64['resolve'](_0x5ba60b(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4a60f8[_0x5ba60b(0x21e8)]()[_0x5ba60b(0x13c1)],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':_0xf2a15c(0x10f6)})[_0xf2a15c(0x27e0)]('app.tools.triggers.edit',{'url':_0xf2a15c(0x1bf2),'params':{'trigger':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1845ac,'controller':'TriggerController\x20as\x20vm'}},'resolve':{'trigger':[_0xf2a15c(0x1e0b),_0xf2a15c(0x225c),function(_0xcbbe8e,_0x24492e){const _0x18f050=_0xf2a15c;return _0xcbbe8e[_0x18f050(0x19a3)](_0x18f050(0x1ee0),{'fields':_0x18f050(0x1ee8),'id':_0x24492e['id']});}],'userProfileSection':[_0xf2a15c(0x1e0b),'Auth',function(_0x17c9e9,_0xece4a6){const _0xea7f8f=_0xf2a15c;return _0x17c9e9[_0xea7f8f(0x19a3)](_0xea7f8f(0x2182),{'fields':_0xea7f8f(0x1f5f),'userProfileId':_0xece4a6[_0xea7f8f(0x21e8)]()['userProfileId'],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':_0xf2a15c(0x10f6)});}angular[_0x5537c6(0x9ab)]('app.tools.triggers',[])[_0x5537c6(0xa60)](_0x498676)[_0x5537c6(0x6e5)]('CreateOrEditTriggerDialogController',_0x368d5c)[_0x5537c6(0x6e5)](_0x5537c6(0x1c9),_0x58920d)[_0x5537c6(0x6e5)]('CreateOrEditActionDialogController',_0x27dbc1)['controller']('TriggerAllConditionsController',_0x522625)[_0x5537c6(0x6e5)](_0x5537c6(0x351),_0x10b123)[_0x5537c6(0x6e5)]('TriggerAnyConditionsController',_0xebbcc4)[_0x5537c6(0x6e5)](_0x5537c6(0x24df),_0x4584cd)[_0x5537c6(0x6e5)]('TriggerController',_0x5811ae)[_0x5537c6(0x6e5)](_0x5537c6(0x138a),_0x312331);;const _0x4fa67c=_0x5074a3['p']+'src/js/modules/main/apps/tools/views/cannedAnswers/cannedAnswers.html/cannedAnswers.html';;const _0x2b1ec4=_0x5074a3['p']+'src/js/modules/main/apps/tools/views/customDashboards/customDashboards.html/customDashboards.html';;const _0x38a5cf=_0x5074a3['p']+_0x5537c6(0xa13);;const _0x13841a=_0x5074a3['p']+_0x5537c6(0xa18);;const _0x1cf171=_0x5074a3['p']+_0x5537c6(0x1404);;const _0x573919=_0x5074a3['p']+_0x5537c6(0xd72);;const _0x14a7d3=_0x5074a3['p']+_0x5537c6(0x1941);;const _0x5a08cd=_0x5074a3['p']+_0x5537c6(0x137f);;const _0x538b44=_0x5074a3['p']+_0x5537c6(0x6d5);;const _0x47c543=_0x5074a3['p']+'src/js/modules/main/apps/tools/views/templates/templates.html/templates.html';;const _0x436b77=_0x5074a3['p']+_0x5537c6(0x2286);;const _0x4d44a4=_0x5074a3['p']+'src/js/modules/main/apps/tools/views/trunks/edit/view.html/view.html';;const _0x5a2703=_0x5074a3['p']+'src/js/modules/main/apps/tools/views/variables/variables.html/variables.html';;const _0x35045f=_0x5074a3['p']+_0x5537c6(0x1442);;_0x276045[_0x5537c6(0x15b6)]=['$scope','$window',_0x5537c6(0x406),'$mdSidenav','$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x2168),'$translate','cannedAnswers','userProfile',_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting'];function _0x276045(_0x51503d,_0x539b36,_0x2b33c,_0x338fdd,_0x103c3d,_0x4bcd89,_0x815f0c,_0xad38a,_0x28c77a,_0x35088c,_0x1eb05f,_0x2e455c,_0x3f3038,_0x24c9d2,_0x18c24f,_0x4cd48c,_0x38b2e4){const _0x4eba1b=_0x5537c6,_0x44ab18=this;_0x44ab18[_0x4eba1b(0x8a5)]=_0x4cd48c,_0x44ab18[_0x4eba1b(0x9ca)]=_0x38b2e4,_0x44ab18[_0x4eba1b(0xe76)]=_0x18c24f[_0x4eba1b(0x21e8)](),_0x44ab18[_0x4eba1b(0x1bec)]=_0x28c77a||{'count':0x0,'rows':[]},_0x44ab18['userProfile']=_0x35088c,_0x44ab18[_0x4eba1b(0x2199)]=_0x1eb05f&&_0x1eb05f['count']==0x1?_0x1eb05f[_0x4eba1b(0x2214)][0x0]:null,_0x44ab18[_0x4eba1b(0x1b1a)]=_0x18c24f[_0x4eba1b(0x14ea)](_0x44ab18[_0x4eba1b(0x2199)]?_0x44ab18[_0x4eba1b(0x2199)][_0x4eba1b(0x1b1a)]:null),_0x44ab18[_0x4eba1b(0xc83)]=_0x4eba1b(0x1bec),_0x44ab18['listOrder']='',_0x44ab18[_0x4eba1b(0x1cdf)]=null,_0x44ab18[_0x4eba1b(0x7ee)]=[],_0x44ab18[_0x4eba1b(0xae2)]={'fields':_0x4eba1b(0x1d68),'sort':_0x4eba1b(0x282),'MailAccountId':_0x4eba1b(0xd38),'FaxAccountId':_0x4eba1b(0xd38),'SmsAccountId':_0x4eba1b(0xd38),'OpenchannelAccountId':_0x4eba1b(0xd38),'ChatWebsiteId':_0x4eba1b(0xd38),'limit':0xa,'page':0x1},_0x44ab18[_0x4eba1b(0xc93)]=_0x29ee31,_0x44ab18[_0x4eba1b(0x27fe)]=_0x3ed02d,_0x44ab18[_0x4eba1b(0x829)]=_0x577108,_0x44ab18[_0x4eba1b(0x151d)]=_0x37a394,_0x44ab18['createOrEditCannedAnswer']=_0x2e7f81,_0x44ab18['deleteCannedAnswer']=_0x2b2b01,_0x44ab18[_0x4eba1b(0x1b21)]=_0x5d7022,_0x44ab18[_0x4eba1b(0xdc0)]=_0x4ac696,_0x44ab18[_0x4eba1b(0x1cb5)]=_0x3b2ed6,_0x44ab18[_0x4eba1b(0x2364)]=_0x506bbf;function _0x29ee31(_0x3c56ea,_0x4869a4){const _0x232b87=_0x4eba1b;_0x103c3d[_0x232b87(0xe27)]({'controller':_0x232b87(0x295a),'controllerAs':'vm','templateUrl':_0x35045f,'parent':angular[_0x232b87(0x1853)](_0x4bcd89[_0x232b87(0x1ed9)]),'targetEvent':_0x4869a4,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x3c56ea,'cannedAnswers':_0x44ab18[_0x232b87(0x1bec)][_0x232b87(0x2214)],'license':_0x44ab18[_0x232b87(0x8a5)],'setting':null,'crudPermissions':_0x44ab18[_0x232b87(0x1b1a)]}});}function _0x3ed02d(_0xc3375,_0x1b7ed7){const _0x2a1241=_0x4eba1b,_0x502bf1=_0x103c3d[_0x2a1241(0x1551)]()[_0x2a1241(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x39641b()[_0x2a1241(0xa75)](_0x2a1241(0x1c25))+'?')[_0x2a1241(0x49e)](''+(_0xc3375[_0x2a1241(0x16b6)]||_0x2a1241(0x1c25))+_0x2a1241(0x1200)+_0x2a1241(0x1b6))[_0x2a1241(0x15ad)](_0x2a1241(0x29ac))[_0x2a1241(0x728)](_0x1b7ed7)['ok']('OK')['cancel'](_0x2a1241(0x24ba));_0x103c3d[_0x2a1241(0xe27)](_0x502bf1)[_0x2a1241(0x1cb0)](function(){_0x2b2b01(_0xc3375);},function(){const _0x50dc2a=_0x2a1241;console[_0x50dc2a(0x1b4f)](_0x50dc2a(0x24ba));});}let _0x5e909a=!![],_0x4e77c6=0x1;_0x51503d[_0x4eba1b(0x614)](_0x4eba1b(0x957),function(_0x1256ad,_0x2434b3){const _0x2d624c=_0x4eba1b;_0x5e909a?_0x815f0c(function(){_0x5e909a=![];}):(!_0x2434b3&&(_0x4e77c6=_0x44ab18[_0x2d624c(0xae2)][_0x2d624c(0x1c7b)]),_0x1256ad!==_0x2434b3&&(_0x44ab18[_0x2d624c(0xae2)][_0x2d624c(0x1c7b)]=0x1),!_0x1256ad&&(_0x44ab18[_0x2d624c(0xae2)]['page']=_0x4e77c6),_0x44ab18[_0x2d624c(0x151d)]());});function _0x577108(_0x5f1e48){const _0x268145=_0x4eba1b;_0x44ab18[_0x268145(0x1bec)]=_0x5f1e48||{'count':0x0,'rows':[]};}function _0x37a394(){const _0x1bf5f8=_0x4eba1b;_0x44ab18[_0x1bf5f8(0xae2)][_0x1bf5f8(0x184b)]=(_0x44ab18[_0x1bf5f8(0xae2)][_0x1bf5f8(0x1c7b)]-0x1)*_0x44ab18[_0x1bf5f8(0xae2)][_0x1bf5f8(0x236)],_0x18c24f[_0x1bf5f8(0x22b6)](_0x1bf5f8(0x1c60))?_0x44ab18[_0x1bf5f8(0x2061)]=_0x2e455c[_0x1bf5f8(0x1c25)][_0x1bf5f8(0xbf7)](_0x44ab18[_0x1bf5f8(0xae2)],_0x577108)[_0x1bf5f8(0x1d77)]:(_0x44ab18[_0x1bf5f8(0xae2)]['id']=_0x44ab18[_0x1bf5f8(0x44a)]['id'],_0x44ab18[_0x1bf5f8(0xae2)][_0x1bf5f8(0x1f74)]=_0x1bf5f8(0x825),_0x44ab18['promise']=_0x2e455c[_0x1bf5f8(0x44a)][_0x1bf5f8(0x1810)](_0x44ab18[_0x1bf5f8(0xae2)],_0x577108)['$promise']);}function _0x2e7f81(_0x2ab738,_0x68561){const _0x8a1fac=_0x4eba1b;_0x103c3d['show']({'controller':_0x8a1fac(0x295a),'controllerAs':'vm','templateUrl':_0x35045f,'parent':angular[_0x8a1fac(0x1853)](_0x4bcd89[_0x8a1fac(0x1ed9)]),'targetEvent':_0x2ab738,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x68561,'cannedAnswers':_0x44ab18[_0x8a1fac(0x1bec)]['rows'],'license':_0x44ab18[_0x8a1fac(0x8a5)],'setting':_0x44ab18[_0x8a1fac(0x9ca)],'crudPermissions':_0x44ab18[_0x8a1fac(0x1b1a)]}});}function _0x2b2b01(_0x451b47){const _0x33fb20=_0x4eba1b;_0x2e455c[_0x33fb20(0x1c25)][_0x33fb20(0x111d)]({'id':_0x451b47['id']})['$promise'][_0x33fb20(0x1cb0)](function(){const _0x9da64=_0x33fb20;_0x39641b()['remove'](_0x44ab18[_0x9da64(0x1bec)]['rows'],{'id':_0x451b47['id']}),_0x44ab18['cannedAnswers'][_0x9da64(0x184d)]-=0x1,!_0x44ab18[_0x9da64(0x1bec)]['rows'][_0x9da64(0xfd0)]&&_0x44ab18[_0x9da64(0x151d)](),_0x24c9d2[_0x9da64(0x829)]({'title':_0x39641b()[_0x9da64(0xa75)](_0x9da64(0x137a))+'\x20deleted!','msg':_0x451b47['name']?_0x451b47['name']+'\x20has\x20been\x20deleted!':''});})[_0x33fb20(0x1c4)](function(_0x3fe5aa){const _0xc92959=_0x33fb20;if(_0x3fe5aa[_0xc92959(0x25c)]&&_0x3fe5aa[_0xc92959(0x25c)][_0xc92959(0x1a7c)]&&_0x3fe5aa['data'][_0xc92959(0x1a7c)][_0xc92959(0xfd0)]){_0x44ab18[_0xc92959(0x1a7c)]=_0x3fe5aa[_0xc92959(0x25c)][_0xc92959(0x1a7c)]||[{'message':_0x3fe5aa[_0xc92959(0x147f)](),'type':_0xc92959(0x1efe)}];for(let _0xa2e72=0x0;_0xa2e72<_0x3fe5aa[_0xc92959(0x25c)][_0xc92959(0x1a7c)][_0xc92959(0xfd0)];_0xa2e72++){_0x24c9d2[_0xc92959(0x218e)]({'title':_0x3fe5aa[_0xc92959(0x25c)][_0xc92959(0x1a7c)][_0xa2e72][_0xc92959(0x66a)],'msg':_0x3fe5aa[_0xc92959(0x25c)][_0xc92959(0x1a7c)][_0xa2e72][_0xc92959(0x155e)]});}}else _0x24c9d2['error']({'title':_0x3fe5aa[_0xc92959(0x291)]?_0xc92959(0xeb9)+_0x3fe5aa[_0xc92959(0x291)]+_0xc92959(0x1657)+_0x3fe5aa['statusText']:'SYSTEM:DELETEcannedAnswer','msg':_0x3fe5aa['data']?JSON[_0xc92959(0x2701)](_0x3fe5aa['data']['message']):_0x3fe5aa[_0xc92959(0x155e)]||_0x3fe5aa[_0xc92959(0x147f)]()});});}function _0x5d7022(){const _0x156fb8=_0x4eba1b,_0x187af9=angular[_0x156fb8(0x17fe)](_0x44ab18['selectedCannedAnswers']);return _0x44ab18[_0x156fb8(0x7ee)]=[],_0x187af9;}function _0x4ac696(_0x362808){const _0x400d84=_0x4eba1b,_0x49d394=_0x103c3d[_0x400d84(0x1551)]()[_0x400d84(0x1386)](_0x400d84(0x1c0d))['htmlContent'](_0x400d84(0x204d)+_0x44ab18[_0x400d84(0x7ee)][_0x400d84(0xfd0)]+_0x400d84(0x1d6c)+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x400d84(0xf42))[_0x400d84(0x728)](_0x362808)['ok']('OK')['cancel'](_0x400d84(0x24ba));_0x103c3d[_0x400d84(0xe27)](_0x49d394)[_0x400d84(0x1cb0)](function(){const _0x41e0f7=_0x400d84;_0x44ab18[_0x41e0f7(0x7ee)]['forEach'](function(_0x5c8153){_0x2b2b01(_0x5c8153);}),_0x44ab18['selectedCannedAnswers']=[];});}function _0x3b2ed6(){const _0x213a26=_0x4eba1b;_0x44ab18[_0x213a26(0x7ee)]=[];}function _0x506bbf(){const _0x5a6c2d=_0x4eba1b;_0x44ab18[_0x5a6c2d(0x7ee)]=_0x44ab18['cannedAnswers'][_0x5a6c2d(0x2214)];}}const _0x48bcbc=_0x276045;;_0x5b70e2[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x1bec),_0x5537c6(0x1c25),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x5b70e2(_0x4f058a,_0x28fc50,_0x29ec95,_0x57fb4a,_0x36c9c1,_0x436279,_0xef603a,_0x2496a4,_0x4aeb77,_0xd3b2f5,_0x59ab0a,_0x49d7b0,_0x4b18e1,_0x38a0e2){const _0x4ee25b=_0x5537c6,_0x3484cd=this;_0x3484cd[_0x4ee25b(0xe76)]=_0x59ab0a['getCurrentUser'](),_0x3484cd[_0x4ee25b(0x1a7c)]=[],_0x3484cd[_0x4ee25b(0x9ca)]=_0x4b18e1,_0x3484cd['license']=_0x49d7b0,_0x3484cd['crudPermissions']=_0x38a0e2,_0x3484cd['hasModulePermissions']={},_0x3484cd['passwordPattern']=_0x3484cd['setting']&&_0x3484cd['setting'][_0x4ee25b(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3484cd[_0x4ee25b(0x1386)]=_0x4ee25b(0x74d),_0x3484cd[_0x4ee25b(0x1c25)]=angular[_0x4ee25b(0x17fe)](_0x4aeb77),_0x3484cd[_0x4ee25b(0x1bec)]=_0x2496a4,_0x3484cd[_0x4ee25b(0x2252)]=![];!_0x3484cd[_0x4ee25b(0x1c25)]&&(_0x3484cd[_0x4ee25b(0x1c25)]={},_0x3484cd[_0x4ee25b(0x1386)]=_0x4ee25b(0x1b2e),_0x3484cd[_0x4ee25b(0x2252)]=!![]);_0x3484cd[_0x4ee25b(0x22eb)]=_0x1b05d8,_0x3484cd[_0x4ee25b(0x1662)]=_0x3056ee,_0x3484cd[_0x4ee25b(0x1b09)]=_0x279672,_0x3484cd['getDateFromString']=_0x1fc866,_0x3484cd[_0x4ee25b(0xda0)]=_0x29140f;function _0x1b05d8(){const _0x50d841=_0x4ee25b;_0x3484cd[_0x50d841(0x1a7c)]=[],_0xd3b2f5[_0x50d841(0x1c25)][_0x50d841(0x1c3f)](_0x3484cd[_0x50d841(0x1c25)])['$promise']['then'](function(_0x5bc6bd){const _0x179f66=_0x50d841;_0x3484cd['cannedAnswers'][_0x179f66(0xf63)](_0x5bc6bd[_0x179f66(0x19b2)]()),_0xef603a[_0x179f66(0x829)]({'title':_0x179f66(0x2219),'msg':_0x3484cd[_0x179f66(0x1c25)][_0x179f66(0x16b6)]?_0x3484cd[_0x179f66(0x1c25)][_0x179f66(0x16b6)]+_0x179f66(0x470):''}),_0x29140f(_0x5bc6bd);})[_0x50d841(0x1c4)](function(_0x2022be){const _0x247fac=_0x50d841;if(_0x2022be['data']&&_0x2022be['data']['errors']&&_0x2022be[_0x247fac(0x25c)][_0x247fac(0x1a7c)][_0x247fac(0xfd0)]){_0x3484cd[_0x247fac(0x1a7c)]=_0x2022be['data'][_0x247fac(0x1a7c)]||[{'message':_0x2022be[_0x247fac(0x147f)](),'type':_0x247fac(0x224)}];for(let _0x5b3688=0x0;_0x5b3688<_0x2022be[_0x247fac(0x25c)]['errors'][_0x247fac(0xfd0)];_0x5b3688+=0x1){_0xef603a[_0x247fac(0x218e)]({'title':_0x2022be[_0x247fac(0x25c)][_0x247fac(0x1a7c)][_0x5b3688][_0x247fac(0x66a)],'msg':_0x2022be[_0x247fac(0x25c)][_0x247fac(0x1a7c)][_0x5b3688][_0x247fac(0x155e)]});}}else _0xef603a[_0x247fac(0x218e)]({'title':_0x2022be[_0x247fac(0x291)]?'API:'+_0x2022be[_0x247fac(0x291)]+'\x20-\x20'+_0x2022be['statusText']:_0x247fac(0x224),'msg':_0x2022be[_0x247fac(0x25c)]?JSON[_0x247fac(0x2701)](_0x2022be['data'][_0x247fac(0x155e)]):_0x2022be[_0x247fac(0x147f)]()});});}function _0x3056ee(){const _0x17924e=_0x4ee25b;_0x3484cd[_0x17924e(0x1a7c)]=[],_0xd3b2f5['cannedAnswer'][_0x17924e(0x687)]({'id':_0x3484cd[_0x17924e(0x1c25)]['id']},_0x3484cd['cannedAnswer'])[_0x17924e(0x1d77)][_0x17924e(0x1cb0)](function(_0xc22928){const _0xe7b84f=_0x17924e,_0x4c95cc=_0x39641b()[_0xe7b84f(0x13b4)](_0x3484cd[_0xe7b84f(0x1bec)],{'id':_0xc22928['id']});_0x4c95cc&&_0x39641b()[_0xe7b84f(0x9c1)](_0x4c95cc,_0x39641b()[_0xe7b84f(0x169b)](_0xc22928['toJSON'](),_0x39641b()[_0xe7b84f(0x1be5)](_0x4c95cc))),_0xef603a[_0xe7b84f(0x829)]({'title':_0xe7b84f(0x20fa),'msg':_0x3484cd[_0xe7b84f(0x1c25)][_0xe7b84f(0x16b6)]?_0x3484cd[_0xe7b84f(0x1c25)][_0xe7b84f(0x16b6)]+_0xe7b84f(0xedb):''}),_0x29140f(_0xc22928);})['catch'](function(_0x599470){const _0x1ec1d1=_0x17924e;if(_0x599470['data']&&_0x599470['data'][_0x1ec1d1(0x1a7c)]&&_0x599470['data'][_0x1ec1d1(0x1a7c)]['length']){_0x3484cd[_0x1ec1d1(0x1a7c)]=_0x599470[_0x1ec1d1(0x25c)][_0x1ec1d1(0x1a7c)]||[{'message':_0x599470[_0x1ec1d1(0x147f)](),'type':_0x1ec1d1(0x922)}];for(let _0x2b6d18=0x0;_0x2b6d18<_0x599470['data']['errors']['length'];_0x2b6d18++){_0xef603a[_0x1ec1d1(0x218e)]({'title':_0x599470[_0x1ec1d1(0x25c)][_0x1ec1d1(0x1a7c)][_0x2b6d18][_0x1ec1d1(0x66a)],'msg':_0x599470['data'][_0x1ec1d1(0x1a7c)][_0x2b6d18]['message']});}}else _0xef603a['error']({'title':_0x599470['status']?_0x1ec1d1(0xeb9)+_0x599470[_0x1ec1d1(0x291)]+_0x1ec1d1(0x1657)+_0x599470[_0x1ec1d1(0xc22)]:_0x1ec1d1(0x922),'msg':_0x599470[_0x1ec1d1(0x25c)]?JSON[_0x1ec1d1(0x2701)](_0x599470[_0x1ec1d1(0x25c)][_0x1ec1d1(0x155e)]):_0x599470[_0x1ec1d1(0x147f)]()});});}function _0x279672(_0x35ade7){const _0x14da84=_0x4ee25b;_0x3484cd['errors']=[];const _0x5da576=_0x57fb4a[_0x14da84(0x1551)]()['title'](_0x14da84(0x1a2e))[_0x14da84(0x862)](_0x14da84(0xa44))[_0x14da84(0x15ad)](_0x14da84(0x16ff))['ok'](_0x14da84(0x2594))[_0x14da84(0x696)](_0x14da84(0xde1))[_0x14da84(0x728)](_0x35ade7);_0x57fb4a['show'](_0x5da576)[_0x14da84(0x1cb0)](function(){const _0x5a52d2=_0x14da84;_0xd3b2f5[_0x5a52d2(0x1c25)]['delete']({'id':_0x3484cd[_0x5a52d2(0x1c25)]['id']})['$promise'][_0x5a52d2(0x1cb0)](function(){const _0x199d9b=_0x5a52d2;_0x39641b()[_0x199d9b(0x152a)](_0x3484cd[_0x199d9b(0x1bec)],{'id':_0x3484cd[_0x199d9b(0x1c25)]['id']}),_0xef603a['success']({'title':_0x199d9b(0x1d25),'msg':(_0x3484cd[_0x199d9b(0x1c25)][_0x199d9b(0x16b6)]||_0x199d9b(0x1c25))+_0x199d9b(0x3f5)}),_0x29140f(_0x3484cd[_0x199d9b(0x1c25)]);})[_0x5a52d2(0x1c4)](function(_0x66c5db){const _0x26f0a1=_0x5a52d2;if(_0x66c5db['data']&&_0x66c5db[_0x26f0a1(0x25c)][_0x26f0a1(0x1a7c)]&&_0x66c5db[_0x26f0a1(0x25c)][_0x26f0a1(0x1a7c)][_0x26f0a1(0xfd0)]){_0x3484cd['errors']=_0x66c5db[_0x26f0a1(0x25c)]['errors']||[{'message':_0x66c5db['toString'](),'type':'api.cannedAnswer.delete'}];for(let _0x5d63ca=0x0;_0x5d63ca<_0x66c5db[_0x26f0a1(0x25c)][_0x26f0a1(0x1a7c)][_0x26f0a1(0xfd0)];_0x5d63ca++){_0xef603a['error']({'title':_0x66c5db[_0x26f0a1(0x25c)][_0x26f0a1(0x1a7c)][_0x5d63ca]['type'],'msg':_0x66c5db[_0x26f0a1(0x25c)][_0x26f0a1(0x1a7c)][_0x5d63ca][_0x26f0a1(0x155e)]});}}else _0xef603a['error']({'title':_0x66c5db['status']?_0x26f0a1(0xeb9)+_0x66c5db[_0x26f0a1(0x291)]+_0x26f0a1(0x1657)+_0x66c5db['statusText']:'api.cannedAnswer.delete','msg':_0x66c5db[_0x26f0a1(0x25c)]?JSON['stringify'](_0x66c5db[_0x26f0a1(0x25c)][_0x26f0a1(0x155e)]):_0x66c5db['message']||_0x66c5db['toString']()});});},function(){});}function _0x1fc866(_0xc45b5b){return _0xc45b5b===null?undefined:new Date(_0xc45b5b);}function _0x29140f(_0x4b646f){const _0x3c2349=_0x4ee25b;_0x57fb4a[_0x3c2349(0x1426)](_0x4b646f);}}const _0x11338a=_0x5b70e2;;_0x17f9d3['$inject']=[_0x5537c6(0x1463),'$state','$location',_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),'toasty','customDashboards',_0x5537c6(0x2821),_0x5537c6(0x142b),'Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x17f9d3(_0x5ae334,_0x2d6205,_0x1f9393,_0xdbaed4,_0x223d15,_0xc8b0df,_0x343652,_0x4067c7,_0x176051,_0x23554e,_0xd129a1,_0xd7752f,_0x4928ca,_0x1e2a6b){const _0x2dc9f9=_0x5537c6,_0x52f88d=this;_0x52f88d[_0x2dc9f9(0xe76)]=_0xd129a1[_0x2dc9f9(0x21e8)](),_0x52f88d['errors']=[],_0x52f88d[_0x2dc9f9(0x9ca)]=_0x4928ca,_0x52f88d[_0x2dc9f9(0x8a5)]=_0xd7752f,_0x52f88d[_0x2dc9f9(0x1b1a)]=_0x1e2a6b,_0x52f88d[_0x2dc9f9(0xf4c)]={},_0x52f88d[_0x2dc9f9(0x1b0c)]=_0x52f88d[_0x2dc9f9(0x9ca)]&&_0x52f88d['setting'][_0x2dc9f9(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x52f88d[_0x2dc9f9(0x1386)]=_0x2dc9f9(0xe97),_0x52f88d['customDashboard']=angular[_0x2dc9f9(0x17fe)](_0x176051),_0x52f88d[_0x2dc9f9(0x461)]=_0x4067c7,_0x52f88d[_0x2dc9f9(0x2493)]=![];!_0x52f88d[_0x2dc9f9(0x2821)]&&(_0x52f88d['customDashboard']={},_0x52f88d['title']=_0x2dc9f9(0x2662),_0x52f88d[_0x2dc9f9(0x2493)]=!![]);_0x52f88d[_0x2dc9f9(0x5d2)]=_0x3777bc,_0x52f88d['saveCustomDashboard']=_0x259764,_0x52f88d['deleteCustomDashboard']=_0x30fb9e,_0x52f88d[_0x2dc9f9(0x2c4)]=_0x5aef25,_0x52f88d[_0x2dc9f9(0xda0)]=_0x4a671e;function _0x3777bc(){const _0x5bcc5d=_0x2dc9f9;_0x52f88d['errors']=[],_0x23554e['dashboard'][_0x5bcc5d(0x1c3f)](_0x52f88d[_0x5bcc5d(0x2821)])[_0x5bcc5d(0x1d77)][_0x5bcc5d(0x1cb0)](function(_0xa215cd){const _0x560093=_0x5bcc5d;_0x52f88d[_0x560093(0x461)][_0x560093(0xf63)](_0xa215cd[_0x560093(0x19b2)]()),_0x343652[_0x560093(0x829)]({'title':'CustomDashboard\x20properly\x20created','msg':_0x52f88d[_0x560093(0x2821)][_0x560093(0x16b6)]?_0x52f88d[_0x560093(0x2821)][_0x560093(0x16b6)]+_0x560093(0x470):''}),_0x4a671e(_0xa215cd);})['catch'](function(_0x36bbd0){const _0x2b748d=_0x5bcc5d;if(_0x36bbd0[_0x2b748d(0x25c)]&&_0x36bbd0[_0x2b748d(0x25c)][_0x2b748d(0x1a7c)]&&_0x36bbd0[_0x2b748d(0x25c)][_0x2b748d(0x1a7c)][_0x2b748d(0xfd0)]){_0x52f88d[_0x2b748d(0x1a7c)]=_0x36bbd0[_0x2b748d(0x25c)]['errors']||[{'message':_0x36bbd0['toString'](),'type':_0x2b748d(0x28d1)}];for(let _0xca3c56=0x0;_0xca3c56<_0x36bbd0['data'][_0x2b748d(0x1a7c)][_0x2b748d(0xfd0)];_0xca3c56+=0x1){_0x343652[_0x2b748d(0x218e)]({'title':_0x36bbd0['data'][_0x2b748d(0x1a7c)][_0xca3c56][_0x2b748d(0x66a)],'msg':_0x36bbd0[_0x2b748d(0x25c)][_0x2b748d(0x1a7c)][_0xca3c56][_0x2b748d(0x155e)]});}}else _0x343652['error']({'title':_0x36bbd0[_0x2b748d(0x291)]?_0x2b748d(0xeb9)+_0x36bbd0['status']+_0x2b748d(0x1657)+_0x36bbd0[_0x2b748d(0xc22)]:'api.dashboard.save','msg':_0x36bbd0[_0x2b748d(0x25c)]?JSON[_0x2b748d(0x2701)](_0x36bbd0[_0x2b748d(0x25c)]['message']):_0x36bbd0['toString']()});});}function _0x259764(){const _0x4e9c8c=_0x2dc9f9;_0x52f88d[_0x4e9c8c(0x1a7c)]=[],_0x23554e['dashboard'][_0x4e9c8c(0x687)]({'id':_0x52f88d[_0x4e9c8c(0x2821)]['id']},_0x52f88d[_0x4e9c8c(0x2821)])[_0x4e9c8c(0x1d77)][_0x4e9c8c(0x1cb0)](function(_0x185387){const _0x29d1cf=_0x4e9c8c,_0x214f38=_0x39641b()[_0x29d1cf(0x13b4)](_0x52f88d[_0x29d1cf(0x461)],{'id':_0x185387['id']});_0x214f38&&_0x39641b()[_0x29d1cf(0x9c1)](_0x214f38,_0x39641b()[_0x29d1cf(0x169b)](_0x185387[_0x29d1cf(0x19b2)](),_0x39641b()['keys'](_0x214f38))),_0x343652[_0x29d1cf(0x829)]({'title':'CustomDashboard\x20properly\x20saved!','msg':_0x52f88d[_0x29d1cf(0x2821)][_0x29d1cf(0x16b6)]?_0x52f88d[_0x29d1cf(0x2821)][_0x29d1cf(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x4a671e(_0x185387);})['catch'](function(_0x2cb7d2){const _0x1ffb5c=_0x4e9c8c;if(_0x2cb7d2[_0x1ffb5c(0x25c)]&&_0x2cb7d2[_0x1ffb5c(0x25c)][_0x1ffb5c(0x1a7c)]&&_0x2cb7d2[_0x1ffb5c(0x25c)]['errors'][_0x1ffb5c(0xfd0)]){_0x52f88d[_0x1ffb5c(0x1a7c)]=_0x2cb7d2[_0x1ffb5c(0x25c)][_0x1ffb5c(0x1a7c)]||[{'message':_0x2cb7d2[_0x1ffb5c(0x147f)](),'type':'api.dashboard.update'}];for(let _0x373699=0x0;_0x373699<_0x2cb7d2[_0x1ffb5c(0x25c)][_0x1ffb5c(0x1a7c)]['length'];_0x373699++){_0x343652[_0x1ffb5c(0x218e)]({'title':_0x2cb7d2['data'][_0x1ffb5c(0x1a7c)][_0x373699]['type'],'msg':_0x2cb7d2[_0x1ffb5c(0x25c)][_0x1ffb5c(0x1a7c)][_0x373699][_0x1ffb5c(0x155e)]});}}else _0x343652['error']({'title':_0x2cb7d2[_0x1ffb5c(0x291)]?'API:'+_0x2cb7d2[_0x1ffb5c(0x291)]+_0x1ffb5c(0x1657)+_0x2cb7d2[_0x1ffb5c(0xc22)]:_0x1ffb5c(0xdd4),'msg':_0x2cb7d2['data']?JSON[_0x1ffb5c(0x2701)](_0x2cb7d2['data'][_0x1ffb5c(0x155e)]):_0x2cb7d2['toString']()});});}function _0x30fb9e(_0xa133e1){const _0x27b626=_0x2dc9f9;_0x52f88d[_0x27b626(0x1a7c)]=[];const _0x339356=_0xdbaed4['confirm']()[_0x27b626(0x1386)](_0x27b626(0x1a2e))[_0x27b626(0x862)](_0x27b626(0x176e))[_0x27b626(0x15ad)](_0x27b626(0x289a))['ok'](_0x27b626(0x2594))['cancel'](_0x27b626(0xde1))['targetEvent'](_0xa133e1);_0xdbaed4[_0x27b626(0xe27)](_0x339356)[_0x27b626(0x1cb0)](function(){const _0x14cb50=_0x27b626;_0x23554e['dashboard'][_0x14cb50(0x111d)]({'id':_0x52f88d[_0x14cb50(0x2821)]['id']})['$promise']['then'](function(){const _0x334522=_0x14cb50;_0x39641b()[_0x334522(0x152a)](_0x52f88d[_0x334522(0x461)],{'id':_0x52f88d[_0x334522(0x2821)]['id']}),_0x343652[_0x334522(0x829)]({'title':_0x334522(0xb70),'msg':(_0x52f88d[_0x334522(0x2821)][_0x334522(0x16b6)]||_0x334522(0x2821))+'\x20has\x20been\x20deleted!'}),_0x4a671e(_0x52f88d[_0x334522(0x2821)]);})['catch'](function(_0x167c7d){const _0x3cd97d=_0x14cb50;if(_0x167c7d[_0x3cd97d(0x25c)]&&_0x167c7d[_0x3cd97d(0x25c)][_0x3cd97d(0x1a7c)]&&_0x167c7d[_0x3cd97d(0x25c)][_0x3cd97d(0x1a7c)][_0x3cd97d(0xfd0)]){_0x52f88d[_0x3cd97d(0x1a7c)]=_0x167c7d[_0x3cd97d(0x25c)][_0x3cd97d(0x1a7c)]||[{'message':_0x167c7d[_0x3cd97d(0x147f)](),'type':_0x3cd97d(0x1549)}];for(let _0xd5a9dc=0x0;_0xd5a9dc<_0x167c7d[_0x3cd97d(0x25c)]['errors'][_0x3cd97d(0xfd0)];_0xd5a9dc++){_0x343652['error']({'title':_0x167c7d[_0x3cd97d(0x25c)]['errors'][_0xd5a9dc][_0x3cd97d(0x66a)],'msg':_0x167c7d[_0x3cd97d(0x25c)][_0x3cd97d(0x1a7c)][_0xd5a9dc][_0x3cd97d(0x155e)]});}}else _0x343652[_0x3cd97d(0x218e)]({'title':_0x167c7d['status']?_0x3cd97d(0xeb9)+_0x167c7d['status']+_0x3cd97d(0x1657)+_0x167c7d['statusText']:_0x3cd97d(0x1549),'msg':_0x167c7d[_0x3cd97d(0x25c)]?JSON[_0x3cd97d(0x2701)](_0x167c7d['data'][_0x3cd97d(0x155e)]):_0x167c7d[_0x3cd97d(0x155e)]||_0x167c7d['toString']()});});},function(){});}function _0x5aef25(_0x55043c){return _0x55043c===null?undefined:new Date(_0x55043c);}function _0x4a671e(_0x5d15c4){const _0x3a1926=_0x2dc9f9;_0xdbaed4[_0x3a1926(0x1426)](_0x5d15c4);}}const _0x2ac9c0=_0x17f9d3;;const _0x104548=_0x5074a3['p']+_0x5537c6(0x1236);;_0x3f94fe[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$window',_0x5537c6(0x406),'$mdSidenav',_0x5537c6(0xcb9),'$document',_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x461),'userProfile',_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x3f94fe(_0x4e5d05,_0x48669b,_0xed79b3,_0x616cc0,_0x53efbd,_0x486d41,_0x33869a,_0x33ff4a,_0x27cfd7,_0x4807c2,_0x571d68,_0x36b668,_0x1d2ddc,_0x40f051,_0xf41bf2,_0x1b378d,_0x25145d){const _0x5d831c=_0x5537c6,_0x46a389=this;_0x46a389[_0x5d831c(0x8a5)]=_0x1b378d,_0x46a389['setting']=_0x25145d,_0x46a389['currentUser']=_0xf41bf2['getCurrentUser'](),_0x46a389['customDashboards']=_0x27cfd7||{'count':0x0,'rows':[]},_0x46a389[_0x5d831c(0x44a)]=_0x4807c2,_0x46a389[_0x5d831c(0x2199)]=_0x571d68&&_0x571d68[_0x5d831c(0x184d)]==0x1?_0x571d68['rows'][0x0]:null,_0x46a389[_0x5d831c(0x1b1a)]=_0xf41bf2['parseCrudPermissions'](_0x46a389['userProfileSection']?_0x46a389[_0x5d831c(0x2199)][_0x5d831c(0x1b1a)]:null),_0x46a389[_0x5d831c(0xc83)]=_0x5d831c(0x461),_0x46a389['listOrder']='',_0x46a389[_0x5d831c(0x1cdf)]=null,_0x46a389[_0x5d831c(0x191)]=[],_0x46a389[_0x5d831c(0xae2)]={'fields':_0x5d831c(0x12e8),'sort':_0x5d831c(0x282),'limit':0xa,'page':0x1},_0x46a389[_0x5d831c(0x235d)]=_0x5b255f,_0x46a389['gotodashboardgoto']=_0x40e8d7,_0x46a389[_0x5d831c(0x27fe)]=_0x51662c,_0x46a389['success']=_0x55238b,_0x46a389[_0x5d831c(0x23c4)]=_0x547e35,_0x46a389[_0x5d831c(0x496)]=_0x169085,_0x46a389[_0x5d831c(0x671)]=_0x3b1509,_0x46a389[_0x5d831c(0x5d8)]=_0x1ea6ee,_0x46a389[_0x5d831c(0x18ee)]=_0x15dc2a,_0x46a389[_0x5d831c(0x29d3)]=_0x1827fc,_0x46a389[_0x5d831c(0xcb4)]=_0x1e210d;function _0x5b255f(_0x2514bc){const _0x41f827=_0x5d831c;_0xed79b3['go'](_0x41f827(0x1632),{'id':_0x2514bc['id'],'customDashboard':_0x2514bc,'crudPermissions':_0x46a389[_0x41f827(0x1b1a)]});}function _0x40e8d7(_0x1ceac1){const _0x4d07e1=_0x5d831c;_0xed79b3['go'](_0x4d07e1(0x7ae),{'id':_0x1ceac1['id']});}function _0x51662c(_0x55b3b8,_0x25d130){const _0x34dc2f=_0x5d831c,_0x83c033=_0x53efbd[_0x34dc2f(0x1551)]()[_0x34dc2f(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x39641b()['startCase']('customDashboard')+'?')['htmlContent'](''+(_0x55b3b8['name']||_0x34dc2f(0x2821))+''+_0x34dc2f(0x1b6))['ariaLabel'](_0x34dc2f(0x3f0))['targetEvent'](_0x25d130)['ok']('OK')['cancel'](_0x34dc2f(0x24ba));_0x53efbd[_0x34dc2f(0xe27)](_0x83c033)[_0x34dc2f(0x1cb0)](function(){_0x3b1509(_0x55b3b8);},function(){const _0x342861=_0x34dc2f;console[_0x342861(0x1b4f)](_0x342861(0x24ba));});}let _0x55b2dd=!![],_0x204f51=0x1;_0x4e5d05[_0x5d831c(0x614)](_0x5d831c(0x957),function(_0x3d7f0b,_0x32ebb5){const _0x4a6496=_0x5d831c;_0x55b2dd?_0x33869a(function(){_0x55b2dd=![];}):(!_0x32ebb5&&(_0x204f51=_0x46a389[_0x4a6496(0xae2)][_0x4a6496(0x1c7b)]),_0x3d7f0b!==_0x32ebb5&&(_0x46a389[_0x4a6496(0xae2)][_0x4a6496(0x1c7b)]=0x1),!_0x3d7f0b&&(_0x46a389[_0x4a6496(0xae2)][_0x4a6496(0x1c7b)]=_0x204f51),_0x46a389['getCustomDashboards']());});function _0x55238b(_0x3fe294){const _0x5f5a1e=_0x5d831c;_0x46a389[_0x5f5a1e(0x461)]=_0x3fe294||{'count':0x0,'rows':[]};}function _0x547e35(){const _0x535b94=_0x5d831c;_0x46a389[_0x535b94(0xae2)][_0x535b94(0x184b)]=(_0x46a389[_0x535b94(0xae2)][_0x535b94(0x1c7b)]-0x1)*_0x46a389['query'][_0x535b94(0x236)],_0xf41bf2[_0x535b94(0x22b6)](_0x535b94(0x1c60))?_0x46a389[_0x535b94(0x2061)]=_0x36b668[_0x535b94(0x1312)]['get'](_0x46a389['query'],_0x55238b)[_0x535b94(0x1d77)]:(_0x46a389[_0x535b94(0xae2)]['id']=_0x46a389['userProfile']['id'],_0x46a389[_0x535b94(0xae2)][_0x535b94(0x1f74)]='CustomDashboards',_0x46a389[_0x535b94(0x2061)]=_0x36b668[_0x535b94(0x44a)][_0x535b94(0x1810)](_0x46a389[_0x535b94(0xae2)],_0x55238b)['$promise']);}function _0x169085(_0x580e0e,_0x57d459){const _0x76cec4=_0x5d831c;_0x53efbd[_0x76cec4(0xe27)]({'controller':_0x76cec4(0x2552),'controllerAs':'vm','templateUrl':_0x104548,'parent':angular[_0x76cec4(0x1853)](_0x486d41[_0x76cec4(0x1ed9)]),'targetEvent':_0x580e0e,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x57d459,'customDashboards':_0x46a389[_0x76cec4(0x461)][_0x76cec4(0x2214)],'license':_0x46a389[_0x76cec4(0x8a5)],'setting':_0x46a389[_0x76cec4(0x9ca)],'crudPermissions':_0x46a389[_0x76cec4(0x1b1a)]}});}function _0x3b1509(_0x28c753){const _0x192766=_0x5d831c;_0x36b668[_0x192766(0x1312)][_0x192766(0x111d)]({'id':_0x28c753['id']})['$promise'][_0x192766(0x1cb0)](function(){const _0x5c0145=_0x192766;_0x39641b()[_0x5c0145(0x152a)](_0x46a389[_0x5c0145(0x461)][_0x5c0145(0x2214)],{'id':_0x28c753['id']}),_0x46a389[_0x5c0145(0x461)][_0x5c0145(0x184d)]-=0x1,!_0x46a389[_0x5c0145(0x461)][_0x5c0145(0x2214)][_0x5c0145(0xfd0)]&&_0x46a389['getCustomDashboards'](),_0x40f051[_0x5c0145(0x829)]({'title':_0x39641b()[_0x5c0145(0xa75)]('CustomDashboard')+'\x20deleted!','msg':_0x28c753[_0x5c0145(0x16b6)]?_0x28c753[_0x5c0145(0x16b6)]+_0x5c0145(0x3f5):''});})['catch'](function(_0x37831b){const _0x35cac1=_0x192766;if(_0x37831b[_0x35cac1(0x25c)]&&_0x37831b[_0x35cac1(0x25c)][_0x35cac1(0x1a7c)]&&_0x37831b[_0x35cac1(0x25c)]['errors'][_0x35cac1(0xfd0)]){_0x46a389[_0x35cac1(0x1a7c)]=_0x37831b[_0x35cac1(0x25c)][_0x35cac1(0x1a7c)]||[{'message':_0x37831b[_0x35cac1(0x147f)](),'type':_0x35cac1(0x240e)}];for(let _0x35f87e=0x0;_0x35f87e<_0x37831b[_0x35cac1(0x25c)][_0x35cac1(0x1a7c)][_0x35cac1(0xfd0)];_0x35f87e++){_0x40f051[_0x35cac1(0x218e)]({'title':_0x37831b[_0x35cac1(0x25c)][_0x35cac1(0x1a7c)][_0x35f87e][_0x35cac1(0x66a)],'msg':_0x37831b[_0x35cac1(0x25c)]['errors'][_0x35f87e]['message']});}}else _0x40f051['error']({'title':_0x37831b[_0x35cac1(0x291)]?'API:'+_0x37831b[_0x35cac1(0x291)]+'\x20-\x20'+_0x37831b[_0x35cac1(0xc22)]:_0x35cac1(0x240e),'msg':_0x37831b[_0x35cac1(0x25c)]?JSON[_0x35cac1(0x2701)](_0x37831b[_0x35cac1(0x25c)]['message']):_0x37831b[_0x35cac1(0x155e)]||_0x37831b[_0x35cac1(0x147f)]()});});}function _0x1ea6ee(){const _0x243f19=_0x5d831c,_0x22a842=angular['copy'](_0x46a389[_0x243f19(0x191)]);return _0x46a389[_0x243f19(0x191)]=[],_0x22a842;}function _0x15dc2a(_0x4e0c0d){const _0x3dbcd9=_0x5d831c,_0x21bf04=_0x53efbd['confirm']()[_0x3dbcd9(0x1386)](_0x3dbcd9(0x1b35))[_0x3dbcd9(0x49e)](''+_0x46a389[_0x3dbcd9(0x191)][_0x3dbcd9(0xfd0)]+_0x3dbcd9(0x1d6c)+_0x3dbcd9(0x1b6))['ariaLabel']('delete\x20CustomDashboards')[_0x3dbcd9(0x728)](_0x4e0c0d)['ok']('OK')['cancel'](_0x3dbcd9(0x24ba));_0x53efbd[_0x3dbcd9(0xe27)](_0x21bf04)[_0x3dbcd9(0x1cb0)](function(){const _0x571367=_0x3dbcd9;_0x46a389[_0x571367(0x191)][_0x571367(0xf90)](function(_0x48641d){_0x3b1509(_0x48641d);}),_0x46a389['selectedCustomDashboards']=[];});}function _0x1827fc(){const _0xadef71=_0x5d831c;_0x46a389[_0xadef71(0x191)]=[];}function _0x1e210d(){const _0x1a24eb=_0x5d831c;_0x46a389['selectedCustomDashboards']=_0x46a389['customDashboards'][_0x1a24eb(0x2214)];}}const _0x1c139f=_0x3f94fe;;_0x171abe[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x406),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x2821),_0x5537c6(0x461),'$translate'];function _0x171abe(_0xd80602,_0x4e9494,_0x8a6b08,_0x4a34b3,_0x170e5a,_0x45fb91,_0x5ed658){const _0x5e34c2=_0x5537c6,_0x4fce76=this;_0x4fce76['newCustomDashboard']=!![],_0x4fce76[_0x5e34c2(0x2821)]=angular['copy'](_0x170e5a),_0x4fce76[_0x5e34c2(0x461)]=_0x45fb91,_0x4fce76['title']=_0x5ed658[_0x5e34c2(0x25cc)](_0x5e34c2(0x96d));_0x170e5a&&_0x170e5a[_0x5e34c2(0x16b6)]&&(_0x4fce76['title']+=':\x20'+_0x170e5a[_0x5e34c2(0x16b6)]);_0x4fce76['cloneCustomDashboard']=_0x4dc274,_0x4fce76['closeDialog']=_0xa0aacc;function _0x4dc274(){const _0x243661=_0x5e34c2;return _0x4a34b3['dashboard'][_0x243661(0x11bc)]({'id':_0x170e5a['id'],'includeAll':!![]},_0x4fce76[_0x243661(0x2821)])[_0x243661(0x1d77)][_0x243661(0x1cb0)](function(_0x2b5a08){const _0x53272b=_0x243661;_0x4fce76[_0x53272b(0x461)][_0x53272b(0xf63)](_0x2b5a08[_0x53272b(0x19b2)]()),_0x8a6b08[_0x53272b(0x829)]({'title':_0x53272b(0x13fd),'msg':_0x4fce76[_0x53272b(0x2821)][_0x53272b(0x16b6)]?_0x4fce76[_0x53272b(0x2821)][_0x53272b(0x16b6)]+_0x53272b(0x2204):''}),_0x4e9494['go'](_0x53272b(0x1632),{'id':_0x2b5a08['id']}),_0xa0aacc(_0x2b5a08);})[_0x243661(0x1c4)](function(_0x349469){const _0x252f4f=_0x243661;if(_0x349469['data']&&_0x349469[_0x252f4f(0x25c)][_0x252f4f(0x1a7c)]&&_0x349469[_0x252f4f(0x25c)][_0x252f4f(0x1a7c)][_0x252f4f(0xfd0)]){_0x4fce76['errors']=_0x349469['data'][_0x252f4f(0x1a7c)]||[{'message':_0x349469[_0x252f4f(0x147f)](),'type':'api.dashboard.clone'}];for(let _0x4b54b8=0x0;_0x4b54b8<_0x349469[_0x252f4f(0x25c)][_0x252f4f(0x1a7c)]['length'];_0x4b54b8+=0x1){_0x8a6b08[_0x252f4f(0x218e)]({'title':_0x349469['data'][_0x252f4f(0x1a7c)][_0x4b54b8][_0x252f4f(0x66a)],'msg':_0x349469['data']['errors'][_0x4b54b8][_0x252f4f(0x155e)]});}}else _0x8a6b08[_0x252f4f(0x218e)]({'title':_0x349469['status']?_0x252f4f(0xeb9)+_0x349469[_0x252f4f(0x291)]+_0x252f4f(0x1657)+_0x349469['statusText']:'api.dashboard.clone','msg':_0x349469[_0x252f4f(0x25c)]?JSON[_0x252f4f(0x2701)](_0x349469['data'][_0x252f4f(0x155e)]):_0x349469['toString']()});});}function _0xa0aacc(_0x33fcb3){_0xd80602['hide'](_0x33fcb3);}}const _0x378821=_0x171abe;;const _0x1033a9=_0x5074a3['p']+_0x5537c6(0x15be);;_0x4aec65[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1986),'toasty',_0x5537c6(0x142b)];function _0x4aec65(_0x4d36c8,_0x17a0d1,_0x2eaac2,_0x1121a8,_0xa3d218){const _0x2c26ca=_0x5537c6,_0x490442=this;_0x490442['customDashboard']={},_0x490442[_0x2c26ca(0x278a)]=_0xa3d218[_0x2c26ca(0x1a00)]['getVoiceQueues']({'fields':'id,name'}),_0x490442[_0x2c26ca(0x1a8e)]=_0x550244,_0x490442[_0x2c26ca(0x3c1)]=_0x1abc41,_0x490442['deleteWidget']=_0x1abc81;function _0x550244(_0x4006af,_0x479569){const _0x99c049=_0x2c26ca;return _0x490442[_0x99c049(0x1b1a)]=typeof _0x479569!==_0x99c049(0x16b5)?_0x479569:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x490442[_0x99c049(0x2821)]=_0x4006af,_0x490442['customDashboard'][_0x99c049(0x2599)]={'enabled':!![],'handle':_0x99c049(0xbf0),'stop':_0x4de053},_0x490442[_0x99c049(0x2821)][_0x99c049(0x486)]={'enabled':!![],'handle':_0x99c049(0x2526),'stop':_0x4de053},_0x490442['customDashboard'][_0x99c049(0x23d2)]=[],_0xa3d218[_0x99c049(0x1312)][_0x99c049(0x1c15)]({'id':_0x4006af['id']})[_0x99c049(0x1d77)]['then'](function(_0xb7cbfa){const _0x2db1ba=_0x99c049;if(_0xb7cbfa&&_0xb7cbfa[_0x2db1ba(0x184d)]&&_0xb7cbfa[_0x2db1ba(0x2214)])for(let _0x3098dd=0x0;_0x3098dd<_0xb7cbfa['rows'][_0x2db1ba(0xfd0)];_0x3098dd+=0x1){_0xb7cbfa['rows'][_0x3098dd][_0x2db1ba(0x278a)]=_0x490442[_0x2db1ba(0x278a)],_0xb7cbfa[_0x2db1ba(0x2214)][_0x3098dd][_0x2db1ba(0x246a)]=_0x39641b()['map'](_0x490442[_0x2db1ba(0x278a)][_0x2db1ba(0x2214)],'id'),_0xb7cbfa[_0x2db1ba(0x2214)][_0x3098dd]['templateUrl']='app/core/directives/ms-widget-engine/ms-widget-engine-'+_0xb7cbfa[_0x2db1ba(0x2214)][_0x3098dd]['type']+_0x2db1ba(0x1d66)+_0xb7cbfa[_0x2db1ba(0x2214)][_0x3098dd][_0x2db1ba(0x66a)]+_0x2db1ba(0x109f),_0x490442[_0x2db1ba(0x2821)][_0x2db1ba(0x23d2)]['push'](_0xb7cbfa[_0x2db1ba(0x2214)][_0x3098dd]);}})[_0x99c049(0x1c4)](function(_0x580549){const _0x972e01=_0x99c049;console[_0x972e01(0x218e)](_0x580549);});}function _0x1abc41(_0x39cfc7){const _0x377125=_0x2c26ca;if(_0x39cfc7&&_0x39cfc7[_0x377125(0x13f4)])for(let _0x53f816=0x0;_0x53f816<_0x39cfc7[_0x377125(0x13f4)][_0x377125(0xfd0)];_0x53f816+=0x1){_0x39cfc7[_0x377125(0x13f4)][_0x53f816][_0x377125(0x16b6)]===_0x377125(0xf4a)&&(_0x39cfc7[_0x377125(0x1ffd)]=_0x39cfc7[_0x377125(0x13f4)][_0x53f816][_0x377125(0x66a)]),_0x39cfc7[_0x39cfc7['attrs'][_0x53f816][_0x377125(0x16b6)]]=_0x39cfc7[_0x377125(0x13f4)][_0x53f816][_0x377125(0x327)];}_0x4d36c8['show']({'controller':_0x377125(0x805),'controllerAs':'vm','templateUrl':_0x1033a9,'parent':angular['element'](_0x17a0d1['body']),'clickOutsideToClose':!![],'locals':{'dashboarditem':_0x39cfc7,'dashboard':_0x490442['customDashboard'][_0x377125(0x23d2)],'license':null,'setting':null,'crudPermissions':_0x490442[_0x377125(0x1b1a)]}})[_0x377125(0x1cb0)](function(_0xc91f67){const _0xc2557e=_0x377125;if(_0xc91f67)for(let _0x472c22=0x0;_0x472c22<_0x490442['customDashboard'][_0xc2557e(0x23d2)][_0xc2557e(0xfd0)];_0x472c22+=0x1){_0x490442['customDashboard']['widgets'][_0x472c22]['id']===_0xc91f67['id']&&(_0x490442['customDashboard']['widgets'][_0x472c22][_0xc2557e(0x13f4)]=_0xc91f67[_0xc2557e(0x13f4)],_0x490442[_0xc2557e(0x2821)]['widgets'][_0x472c22][_0xc2557e(0x278a)]=_0x490442[_0xc2557e(0x278a)],_0x490442[_0xc2557e(0x2821)][_0xc2557e(0x23d2)][_0x472c22][_0xc2557e(0x246a)]=_0x39641b()[_0xc2557e(0x1de2)](_0x490442[_0xc2557e(0x278a)][_0xc2557e(0x2214)],'id'),_0x490442[_0xc2557e(0x2821)][_0xc2557e(0x23d2)][_0x472c22][_0xc2557e(0x1da6)]=_0xc2557e(0x2862)+_0x490442['customDashboard'][_0xc2557e(0x23d2)][_0x472c22]['type']+_0xc2557e(0x1d66)+_0x490442[_0xc2557e(0x2821)][_0xc2557e(0x23d2)][_0x472c22][_0xc2557e(0x66a)]+_0xc2557e(0x109f));}});}function _0x1abc81(_0x55d395){const _0x5939c7=_0x2c26ca,_0x2a0c7b=_0x4d36c8[_0x5939c7(0x1551)]()[_0x5939c7(0x1386)](_0x5939c7(0x11d4)+_0x55d395['title']+'?')[_0x5939c7(0x1152)]('')[_0x5939c7(0x15ad)]('Delete\x20Widget')['ok'](_0x5939c7(0x2439))[_0x5939c7(0x696)]('NO');_0x4d36c8[_0x5939c7(0xe27)](_0x2a0c7b)['then'](function(){const _0xd7161f=_0x5939c7;return _0xa3d218['dashboardItem'][_0xd7161f(0x111d)]({'id':_0x55d395['id']})[_0xd7161f(0x1d77)][_0xd7161f(0x1cb0)](function(){const _0x58c8b3=_0xd7161f;_0x39641b()['remove'](_0x490442[_0x58c8b3(0x2821)][_0x58c8b3(0x23d2)],{'id':_0x55d395['id']}),_0x1121a8['success']({'title':_0x58c8b3(0x2630),'msg':_0x55d395['name']?_0x55d395[_0x58c8b3(0x16b6)]+'\x20has\x20been\x20deleted!':'Widget\x20has\x20been\x20deleted!'});})[_0xd7161f(0x1c4)](function(_0x461936){const _0x3a7af5=_0xd7161f;if(_0x461936[_0x3a7af5(0x25c)]&&_0x461936[_0x3a7af5(0x25c)][_0x3a7af5(0x1a7c)]&&_0x461936['data'][_0x3a7af5(0x1a7c)][_0x3a7af5(0xfd0)]){_0x490442['errors']=_0x461936[_0x3a7af5(0x25c)][_0x3a7af5(0x1a7c)]||[{'message':_0x461936[_0x3a7af5(0x147f)](),'type':_0x3a7af5(0x2459)}];for(let _0xe9303e=0x0;_0xe9303e<_0x461936[_0x3a7af5(0x25c)][_0x3a7af5(0x1a7c)]['length'];_0xe9303e++){_0x1121a8['error']({'title':_0x461936[_0x3a7af5(0x25c)][_0x3a7af5(0x1a7c)][_0xe9303e][_0x3a7af5(0x66a)],'msg':_0x461936[_0x3a7af5(0x25c)]['errors'][_0xe9303e][_0x3a7af5(0x155e)]});}}else _0x1121a8[_0x3a7af5(0x218e)]({'title':_0x461936['status']?_0x3a7af5(0xeb9)+_0x461936[_0x3a7af5(0x291)]+_0x3a7af5(0x1657)+_0x461936[_0x3a7af5(0xc22)]:'SYSTEM:DELETEdashboard','msg':_0x461936[_0x3a7af5(0x25c)]?JSON[_0x3a7af5(0x2701)](_0x461936[_0x3a7af5(0x25c)][_0x3a7af5(0x155e)]):_0x461936[_0x3a7af5(0x155e)]||_0x461936[_0x3a7af5(0x147f)]()});console['error'](_0x461936);});});}function _0x4de053(_0x4328d5,_0x3b667b,_0x5031c6){const _0x3c6bf5=_0x2c26ca;return _0xa3d218[_0x3c6bf5(0x220)][_0x3c6bf5(0x687)](_0x5031c6)[_0x3c6bf5(0x1d77)][_0x3c6bf5(0x1c4)](function(_0x48eab8){const _0x54640e=_0x3c6bf5;console[_0x54640e(0x218e)](_0x48eab8);});}}const _0x4fea17=_0x4aec65;;const _0x3eaf57=_0x5074a3['p']+_0x5537c6(0x13f6);;_0x5bcc93['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),'dashboard',_0x5537c6(0xfc4),'api','Auth',_0x5537c6(0x8a5),'setting','crudPermissions'];function _0x5bcc93(_0x599c82,_0xf240ec,_0x3d4e1f,_0x30d890,_0x574c02,_0xee922c,_0x2b6ca8,_0x1878cb,_0x3d24c6,_0x4dfc45,_0x29b17e,_0x4b5b47,_0x1d2e9e,_0x59116b){const _0x4b6f75=_0x5537c6,_0xa60500=this;_0xa60500[_0x4b6f75(0xe76)]=_0x29b17e['getCurrentUser'](),_0xa60500[_0x4b6f75(0x1a7c)]=[],_0xa60500[_0x4b6f75(0x9ca)]=_0x1d2e9e,_0xa60500[_0x4b6f75(0x8a5)]=_0x4b5b47,_0xa60500[_0x4b6f75(0x1b1a)]=_0x59116b,_0xa60500[_0x4b6f75(0xf4c)]={},_0xa60500[_0x4b6f75(0x1b0c)]=_0xa60500[_0x4b6f75(0x9ca)]&&_0xa60500['setting'][_0x4b6f75(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xa60500[_0x4b6f75(0x1386)]=_0x4b6f75(0xaa2),_0xa60500[_0x4b6f75(0xfc4)]=angular[_0x4b6f75(0x17fe)](_0x3d24c6),_0xa60500[_0x4b6f75(0x1312)]=_0x1878cb,_0xa60500['newDashboardItem']=![],_0xa60500[_0x4b6f75(0x11b6)]=[],_0xa60500['query']={'fields':_0x4b6f75(0x2308),'limit':0xa,'page':0x1,'sort':_0x4b6f75(0x282)};!_0xa60500[_0x4b6f75(0xfc4)]?(_0xa60500[_0x4b6f75(0xfc4)]={'type':_0x4b6f75(0x5d7),'attrUrl':_0x4b6f75(0x2993),'attrHourFormat':_0x4b6f75(0xec1),'attrTimezone':'0.00','attrMetric':_0x4b6f75(0x181c),'attrSerie1':'total','attrSerie2':_0x4b6f75(0xd38),'attrSerie3':_0x4b6f75(0xd38),'attrRefresh':0xa,'attrFontSize':0x14,'foreground':_0x4b6f75(0x20fc),'background':'#ffffff'},_0xa60500[_0x4b6f75(0x1386)]=_0x4b6f75(0xf26),_0xa60500[_0x4b6f75(0x2846)]=!![]):_0xa60500[_0x4b6f75(0xfc4)][_0x4b6f75(0x66a)]==_0x4b6f75(0x1ab1)&&(_0xa60500['apiName']=_0xa60500[_0x4b6f75(0xfc4)][_0x4b6f75(0x1ffd)]===_0x4b6f75(0x197c)?_0x4b6f75(0x1e32):_0x4b6f75(0x1f0c),_0x4dfc45[_0xa60500[_0x4b6f75(0x217d)]][_0x4b6f75(0xbf7)]({'fields':_0x4b6f75(0x1cfc)})['$promise'][_0x4b6f75(0x1cb0)](function(_0x225a8d){const _0x14a8e6=_0x4b6f75;_0xa60500['currentReport']=_0x39641b()[_0x14a8e6(0x13b4)](_0x225a8d['rows'],{'id':_0xa60500[_0x14a8e6(0xfc4)][_0x14a8e6(0xf4a)]}),_0xa60500[_0x14a8e6(0xfc4)][_0x14a8e6(0x16bf)]=_0xa60500['currentReport'][_0x14a8e6(0x16b6)],_0xa60500[_0x14a8e6(0xae2)][_0x14a8e6(0xbfb)]=_0xa60500['currentReport'][_0x14a8e6(0xbfb)];}));_0xa60500[_0x4b6f75(0x1839)]=_0x2a57bd,_0xa60500['saveDashboardItem']=_0x3e3a3b,_0xa60500['deleteDashboardItem']=_0x2ad70d,_0xa60500[_0x4b6f75(0x2c4)]=_0xd186c4,_0xa60500[_0x4b6f75(0x903)]=_0x4caeca,_0xa60500[_0x4b6f75(0x109e)]=_0x2e5a62,_0xa60500['closeReportDialog']=_0x448464,_0xa60500['searchReport']=_0x4026be,_0xa60500['closeDialog']=_0x37e669,_0x4dfc45['analyticTreeReport'][_0x4b6f75(0xbf7)]({})['$promise']['then'](function(_0x25dd9d){const _0x594c0d=_0x4b6f75;_0xa60500[_0x594c0d(0x1871)]=_0x25dd9d[_0x594c0d(0x2214)]||[];})[_0x4b6f75(0x1c4)](function(_0x96e8f2){const _0x4d6225=_0x4b6f75;_0x2b6ca8[_0x4d6225(0x218e)]({'title':_0x96e8f2[_0x4d6225(0x291)]?_0x4d6225(0xeb9)+_0x96e8f2[_0x4d6225(0x291)]+'\x20-\x20'+_0x96e8f2[_0x4d6225(0xc22)]:_0x4d6225(0x269e),'msg':_0x96e8f2['data']?JSON['stringify'](_0x96e8f2['data']):_0x96e8f2[_0x4d6225(0x147f)]()});});const _0x4d80a1=[{'id':0x191,'type':_0x4b6f75(0x26c0)},{'id':0x5dd,'type':_0x4b6f75(0x895)}];let _0x37e152=null;_0x29b17e[_0x4b6f75(0x22b6)](_0x4b6f75(0x1c60))?_0x4dfc45[_0x4b6f75(0x26b3)][_0x4b6f75(0xbf7)]({'fields':_0x4b6f75(0x1896),'sort':_0x4b6f75(0x16b6),'nolimit':_0x4b6f75(0x44d)})[_0x4b6f75(0x1d77)][_0x4b6f75(0x1cb0)](function(_0x545889){const _0x2e9278=_0x4b6f75;_0xa60500[_0x2e9278(0x278a)]=_0x545889['rows']||[];})[_0x4b6f75(0x1c4)](function(_0x57ce95){const _0x3ef639=_0x4b6f75;_0x2b6ca8[_0x3ef639(0x218e)]({'title':_0x57ce95[_0x3ef639(0x291)]?'API:'+_0x57ce95['status']+_0x3ef639(0x1657)+_0x57ce95[_0x3ef639(0xc22)]:_0x3ef639(0x25f2),'msg':_0x57ce95[_0x3ef639(0x25c)]?JSON[_0x3ef639(0x2701)](_0x57ce95['data']):_0x57ce95['toString']()});}):_0x4dfc45[_0x4b6f75(0x26b3)]['get']({'fields':'id,name,type','sort':_0x4b6f75(0x16b6),'nolimit':'true'})[_0x4b6f75(0x1d77)]['then'](function(_0x264659){const _0x3373e4=_0x4b6f75;_0x37e152=_0x264659[_0x3373e4(0x2214)]||[];})[_0x4b6f75(0x1cb0)](function(){const _0x1a19fa=_0x4b6f75,_0x50a2a2=[];for(let _0x256825=0x0;_0x256825<_0x4d80a1[_0x1a19fa(0xfd0)];_0x256825++){_0x50a2a2['push'](_0x4dfc45['userProfileSection'][_0x1a19fa(0xbf7)]({'userProfileId':_0xa60500[_0x1a19fa(0xe76)][_0x1a19fa(0x13c1)],'sectionId':_0x4d80a1[_0x256825]['id']})[_0x1a19fa(0x1d77)]);}return _0x574c02[_0x1a19fa(0x223b)](_0x50a2a2);})['then'](function(_0x23e663){const _0x29aec7=_0x4b6f75,_0x263b39=_0x39641b()[_0x29aec7(0x1de2)](_0x23e663,function(_0x5f0161){const _0x351397=_0x29aec7;return _0x5f0161&&_0x5f0161[_0x351397(0x2214)]?_0x5f0161['rows'][0x0]:null;}),_0x32b041=[];for(let _0x406171=0x0;_0x406171<_0x4d80a1[_0x29aec7(0xfd0)];_0x406171++){const _0x2ac8c9=_0x39641b()[_0x29aec7(0x13b4)](_0x263b39,[_0x29aec7(0xec6),_0x4d80a1[_0x406171]['id']]);if(_0x2ac8c9){if(!_0x2ac8c9[_0x29aec7(0x12f4)])_0x32b041[_0x29aec7(0x2785)](_0x4dfc45[_0x29aec7(0x1198)]['get']({'sectionId':_0x2ac8c9['id']})['$promise']);else{const _0x4d20fc=[];_0x37e152[_0x29aec7(0xf90)](function(_0x2c388d){const _0x30405c=_0x29aec7;_0x2c388d[_0x30405c(0x66a)]===_0x4d80a1[_0x406171]['type']&&_0x4d20fc['push'](_0x2c388d);}),_0x32b041[_0x29aec7(0x2785)]({'rows':_0x4d20fc,'count':_0x4d20fc[_0x29aec7(0xfd0)]});}}}return _0x574c02[_0x29aec7(0x223b)](_0x32b041);})['then'](function(_0x2ef8f3){const _0x448b96=_0x4b6f75,_0x1b36e5=[];let _0x134839=null;_0xa60500[_0x448b96(0xfc4)]&&(_0x134839=_0x39641b()[_0x448b96(0x13b4)](_0x37e152,{'id':Number(_0xa60500[_0x448b96(0xfc4)]['attrVoiceQueues'])}));for(let _0x519fad=0x0;_0x519fad<_0x2ef8f3[_0x448b96(0xfd0)];_0x519fad++){const _0x1e4fe7=_0x2ef8f3[_0x519fad][_0x448b96(0x2214)]||[];_0x1e4fe7['forEach'](function(_0x5cb621){const _0x50412b=_0x448b96;_0x1b36e5[_0x50412b(0x2785)](_0x5cb621);});}_0x134839&&!_0x39641b()[_0x448b96(0x727)](_0x1b36e5,[_0x448b96(0x2982),_0x134839['id']])&&_0x37e152['forEach'](function(_0x4e8ba0){const _0x13d161=_0x448b96;_0x4e8ba0['id']===_0x134839['id']&&(_0x4e8ba0[_0x13d161(0x15da)]=![],_0x1b36e5[_0x13d161(0x2785)](_0x4e8ba0));}),_0xa60500[_0x448b96(0x278a)]=_0x1b36e5;})['catch'](function(_0x128ddd){const _0xb27118=_0x4b6f75;_0x2b6ca8[_0xb27118(0x218e)]({'title':_0x128ddd[_0xb27118(0x291)]?_0xb27118(0xeb9)+_0x128ddd[_0xb27118(0x291)]+_0xb27118(0x1657)+_0x128ddd[_0xb27118(0xc22)]:_0xb27118(0x2394),'msg':_0x128ddd[_0xb27118(0x25c)]?JSON[_0xb27118(0x2701)](_0x128ddd['data']):_0x128ddd['toString']()});});function _0x2a57bd(){const _0x501243=_0x4b6f75;_0xa60500['errors']=[],_0x4dfc45['dashboard'][_0x501243(0x25ad)]({'id':_0xf240ec[_0x501243(0x1dfe)]['id']},_0xa60500[_0x501243(0xfc4)])[_0x501243(0x1d77)][_0x501243(0x1cb0)](function(_0x3e4fb9){const _0x3d738e=_0x501243;_0xa60500['dashboard'][_0x3d738e(0xf63)](_0x3e4fb9['toJSON']()),_0x2b6ca8['success']({'title':_0x3d738e(0xdc4),'msg':_0xa60500[_0x3d738e(0xfc4)][_0x3d738e(0x16b6)]?_0xa60500[_0x3d738e(0xfc4)][_0x3d738e(0x16b6)]+_0x3d738e(0x470):''}),_0x37e669(_0x3e4fb9);})['catch'](function(_0x1abf3d){const _0x53a887=_0x501243;if(_0x1abf3d['data']&&_0x1abf3d[_0x53a887(0x25c)][_0x53a887(0x1a7c)]&&_0x1abf3d[_0x53a887(0x25c)][_0x53a887(0x1a7c)]['length']){_0xa60500[_0x53a887(0x1a7c)]=_0x1abf3d[_0x53a887(0x25c)][_0x53a887(0x1a7c)]||[{'message':_0x1abf3d[_0x53a887(0x147f)](),'type':'api.dashboardItem.save'}];for(let _0x3595c9=0x0;_0x3595c9<_0x1abf3d[_0x53a887(0x25c)][_0x53a887(0x1a7c)]['length'];_0x3595c9+=0x1){_0x2b6ca8[_0x53a887(0x218e)]({'title':_0x1abf3d[_0x53a887(0x25c)][_0x53a887(0x1a7c)][_0x3595c9]['type'],'msg':_0x1abf3d[_0x53a887(0x25c)][_0x53a887(0x1a7c)][_0x3595c9][_0x53a887(0x155e)]});}}else _0x2b6ca8[_0x53a887(0x218e)]({'title':_0x1abf3d['status']?_0x53a887(0xeb9)+_0x1abf3d[_0x53a887(0x291)]+_0x53a887(0x1657)+_0x1abf3d['statusText']:_0x53a887(0x2142),'msg':_0x1abf3d[_0x53a887(0x25c)]?JSON[_0x53a887(0x2701)](_0x1abf3d[_0x53a887(0x25c)]['message']):_0x1abf3d[_0x53a887(0x147f)]()});});}function _0x3e3a3b(){const _0x4d35fe=_0x4b6f75;_0xa60500[_0x4d35fe(0x1a7c)]=[],_0x4dfc45[_0x4d35fe(0x220)][_0x4d35fe(0x687)]({'id':_0xa60500[_0x4d35fe(0xfc4)]['id']},_0xa60500['dashboarditem'])[_0x4d35fe(0x1d77)][_0x4d35fe(0x1cb0)](function(_0x427214){const _0xab05f7=_0x4d35fe,_0x4856c3=_0x39641b()[_0xab05f7(0x13b4)](_0xa60500['dashboard'],{'id':_0x427214['id']});_0x4856c3&&_0x39641b()[_0xab05f7(0x9c1)](_0x4856c3,_0x39641b()[_0xab05f7(0x169b)](_0x427214[_0xab05f7(0x19b2)](),_0x39641b()[_0xab05f7(0x1be5)](_0x4856c3))),_0x2b6ca8[_0xab05f7(0x829)]({'title':'DashboardItem\x20properly\x20saved!','msg':_0xa60500[_0xab05f7(0xfc4)][_0xab05f7(0x16b6)]?_0xa60500[_0xab05f7(0xfc4)]['name']+_0xab05f7(0xedb):''}),_0x37e669(_0x427214);})[_0x4d35fe(0x1c4)](function(_0x2e1e0e){const _0x50db5e=_0x4d35fe;if(_0x2e1e0e[_0x50db5e(0x25c)]&&_0x2e1e0e[_0x50db5e(0x25c)][_0x50db5e(0x1a7c)]&&_0x2e1e0e['data'][_0x50db5e(0x1a7c)][_0x50db5e(0xfd0)]){_0xa60500[_0x50db5e(0x1a7c)]=_0x2e1e0e[_0x50db5e(0x25c)]['errors']||[{'message':_0x2e1e0e[_0x50db5e(0x147f)](),'type':'api.dashboardItem.update'}];for(let _0x3b0344=0x0;_0x3b0344<_0x2e1e0e[_0x50db5e(0x25c)][_0x50db5e(0x1a7c)][_0x50db5e(0xfd0)];_0x3b0344++){_0x2b6ca8[_0x50db5e(0x218e)]({'title':_0x2e1e0e[_0x50db5e(0x25c)][_0x50db5e(0x1a7c)][_0x3b0344]['type'],'msg':_0x2e1e0e[_0x50db5e(0x25c)][_0x50db5e(0x1a7c)][_0x3b0344][_0x50db5e(0x155e)]});}}else _0x2b6ca8['error']({'title':_0x2e1e0e[_0x50db5e(0x291)]?_0x50db5e(0xeb9)+_0x2e1e0e[_0x50db5e(0x291)]+_0x50db5e(0x1657)+_0x2e1e0e[_0x50db5e(0xc22)]:_0x50db5e(0x248d),'msg':_0x2e1e0e[_0x50db5e(0x25c)]?JSON[_0x50db5e(0x2701)](_0x2e1e0e[_0x50db5e(0x25c)][_0x50db5e(0x155e)]):_0x2e1e0e[_0x50db5e(0x147f)]()});});}function _0x2ad70d(_0x479c20){const _0x34708e=_0x4b6f75;_0xa60500['errors']=[];const _0x3f6c1c=_0x30d890[_0x34708e(0x1551)]()['title'](_0x34708e(0x1a2e))['content'](_0x34708e(0x21d1))[_0x34708e(0x15ad)](_0x34708e(0x1750))['ok'](_0x34708e(0x2594))[_0x34708e(0x696)]('Cancel')[_0x34708e(0x728)](_0x479c20);_0x30d890[_0x34708e(0xe27)](_0x3f6c1c)[_0x34708e(0x1cb0)](function(){const _0x284f9b=_0x34708e;_0x4dfc45[_0x284f9b(0x220)][_0x284f9b(0x111d)]({'id':_0xa60500[_0x284f9b(0xfc4)]['id']})[_0x284f9b(0x1d77)][_0x284f9b(0x1cb0)](function(){const _0x520307=_0x284f9b;_0x39641b()[_0x520307(0x152a)](_0xa60500['dashboard'],{'id':_0xa60500[_0x520307(0xfc4)]['id']}),_0x2b6ca8[_0x520307(0x829)]({'title':_0x520307(0x6a0),'msg':(_0xa60500[_0x520307(0xfc4)][_0x520307(0x16b6)]||_0x520307(0xfc4))+'\x20has\x20been\x20deleted!'}),_0x37e669(_0xa60500[_0x520307(0xfc4)]);})['catch'](function(_0x49f7c8){const _0xc13b5=_0x284f9b;if(_0x49f7c8[_0xc13b5(0x25c)]&&_0x49f7c8[_0xc13b5(0x25c)][_0xc13b5(0x1a7c)]&&_0x49f7c8[_0xc13b5(0x25c)][_0xc13b5(0x1a7c)]['length']){_0xa60500[_0xc13b5(0x1a7c)]=_0x49f7c8['data'][_0xc13b5(0x1a7c)]||[{'message':_0x49f7c8[_0xc13b5(0x147f)](),'type':'api.dashboardItem.delete'}];for(let _0x10a45f=0x0;_0x10a45f<_0x49f7c8[_0xc13b5(0x25c)]['errors']['length'];_0x10a45f++){_0x2b6ca8[_0xc13b5(0x218e)]({'title':_0x49f7c8[_0xc13b5(0x25c)][_0xc13b5(0x1a7c)][_0x10a45f][_0xc13b5(0x66a)],'msg':_0x49f7c8[_0xc13b5(0x25c)][_0xc13b5(0x1a7c)][_0x10a45f][_0xc13b5(0x155e)]});}}else _0x2b6ca8[_0xc13b5(0x218e)]({'title':_0x49f7c8[_0xc13b5(0x291)]?_0xc13b5(0xeb9)+_0x49f7c8[_0xc13b5(0x291)]+_0xc13b5(0x1657)+_0x49f7c8[_0xc13b5(0xc22)]:_0xc13b5(0xd83),'msg':_0x49f7c8[_0xc13b5(0x25c)]?JSON[_0xc13b5(0x2701)](_0x49f7c8[_0xc13b5(0x25c)]['message']):_0x49f7c8[_0xc13b5(0x155e)]||_0x49f7c8[_0xc13b5(0x147f)]()});});},function(){});}function _0x2fa6e1(){const _0x5a3d34=_0x4b6f75,_0x39803b={'core':{'multiple':![],'animation':!![],'error':function(_0x43f797){const _0x441aa6=a0_0x5cbd;console[_0x441aa6(0x218e)]('treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20'+angular['toJson'](_0x43f797));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':['wholerow']};return _0xa60500['currentUser'][_0x5a3d34(0x26e6)]!==_0x5a3d34(0x1c60)?_0x4dfc45[_0x5a3d34(0x2199)][_0x5a3d34(0xbf7)]({'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xa60500[_0x5a3d34(0xe76)][_0x5a3d34(0x13c1)],'sectionId':0x4b3})[_0x5a3d34(0x1d77)][_0x5a3d34(0x1cb0)](function(_0x6684e8){const _0x30d320=_0x5a3d34;return _0xa60500[_0x30d320(0x2199)]=_0x6684e8&&_0x6684e8[_0x30d320(0x184d)]==0x1?_0x6684e8[_0x30d320(0x2214)][0x0]:null,_0x39803b;})[_0x5a3d34(0x1c4)](function(_0x1b5f50){const _0x530bc3=_0x5a3d34;_0x2b6ca8[_0x530bc3(0x218e)]({'title':_0x530bc3(0x2260),'msg':_0x1b5f50[_0x530bc3(0x155e)]});}):_0x39803b;}function _0x4d27cd(_0x20b1cd){return _0x20b1cd?{'loaded':_0x581ef6,'select_node':_0x4ae4d1}:{'loaded':_0x3e3869,'select_node':_0x1ddf06};}function _0x4ae4d1(_0x3d9324,_0x2a136c){const _0x533ab1=_0x4b6f75;_0xa60500['treeDefaultInstance'][_0x533ab1(0x735)](!![])[_0x533ab1(0x3bf)](),_0xa60500['treeDefaultInstance'][_0x533ab1(0x735)](!![])[_0x533ab1(0x1b7)](),_0xa60500[_0x533ab1(0x622)]=_0x2a136c[_0x533ab1(0x2013)],_0xa60500[_0x533ab1(0x622)][_0x533ab1(0x197c)]=!![],_0xa60500[_0x533ab1(0x275a)]=_0xa60500[_0x533ab1(0x20be)][_0x533ab1(0x735)](!![])[_0x533ab1(0x147d)](_0xa60500['currentNode'])[_0x533ab1(0x1f66)]('/\x20'),_0xa60500[_0x533ab1(0x217d)]=_0x533ab1(0x1e32),_0xa60500[_0x533ab1(0xae2)][_0x533ab1(0xbfb)]=_0x2a136c[_0x533ab1(0x2013)]['id'],_0x4caeca();}function _0x1ddf06(_0x1c9971,_0x3801bd){const _0x40759e=_0x4b6f75;_0xa60500['treeCustomInstance'][_0x40759e(0x735)](!![])[_0x40759e(0x3bf)](),_0xa60500[_0x40759e(0x20be)][_0x40759e(0x735)](!![])[_0x40759e(0x1b7)](),_0xa60500['currentNode']=_0x3801bd[_0x40759e(0x2013)],_0xa60500[_0x40759e(0x622)]['custom']=![],_0xa60500[_0x40759e(0x275a)]=_0xa60500[_0x40759e(0xfcd)][_0x40759e(0x735)](!![])[_0x40759e(0x147d)](_0xa60500['currentNode'])[_0x40759e(0x1f66)]('/\x20'),_0xa60500[_0x40759e(0x217d)]=_0x40759e(0x1f0c),_0xa60500[_0x40759e(0xae2)]['parent']=_0x3801bd['node']['id'],_0x4caeca();}function _0x581ef6(){const _0x2182a4=_0x4b6f75;if(!_0xa60500[_0x2182a4(0x2846)]&&_0xa60500['apiName']===_0x2182a4(0x1e32)){const _0x202038=_0xa60500[_0x2182a4(0x20be)]['jstree'](!![])[_0x2182a4(0x6b2)](_0xa60500[_0x2182a4(0xae2)][_0x2182a4(0xbfb)]);_0x4ae4d1(null,{'node':_0x202038,'selected':_0x202038['id']});}}function _0x3e3869(){const _0x582b5e=_0x4b6f75;if(!_0xa60500['newDashboardItem']&&_0xa60500['apiName']===_0x582b5e(0x1f0c)){const _0x444904=_0xa60500[_0x582b5e(0xfcd)][_0x582b5e(0x735)](!![])['get_node'](_0xa60500[_0x582b5e(0xae2)][_0x582b5e(0xbfb)]);_0x1ddf06(null,{'node':_0x444904,'selected':_0x444904['id']});}}function _0x4caeca(){const _0x173d1c=_0x4b6f75;_0xa60500['query'][_0x173d1c(0x184b)]=(_0xa60500[_0x173d1c(0xae2)][_0x173d1c(0x1c7b)]-0x1)*_0xa60500[_0x173d1c(0xae2)]['limit'];if(_0xa60500[_0x173d1c(0x217d)]){if(_0xa60500[_0x173d1c(0xe76)][_0x173d1c(0x26e6)]===_0x173d1c(0x1c60))_0xa60500['promise']=_0x4dfc45[_0xa60500[_0x173d1c(0x217d)]][_0x173d1c(0xbf7)](_0xa60500['query'],_0x2d2d60)['$promise'];else{if(!_0xa60500[_0x173d1c(0x2199)])return _0x2d2d60(null);else{if(_0xa60500[_0x173d1c(0x2199)][_0x173d1c(0x12f4)])_0xa60500['promise']=_0x4dfc45[_0xa60500[_0x173d1c(0x217d)]]['get'](_0xa60500[_0x173d1c(0xae2)],_0x2d2d60)[_0x173d1c(0x1d77)];else{let _0x15b454=[];_0xa60500['promise']=_0x4dfc45[_0xa60500[_0x173d1c(0x217d)]][_0x173d1c(0xbf7)](_0xa60500[_0x173d1c(0xae2)])['$promise'][_0x173d1c(0x1cb0)](function(_0x4dfcf1){const _0x293986=_0x173d1c;return _0x15b454=_0x4dfcf1&&_0x4dfcf1[_0x293986(0x2214)]?_0x4dfcf1[_0x293986(0x2214)]:[],_0x15b454[_0x293986(0xfd0)]>0x0?_0x4dfc45[_0x293986(0x1198)][_0x293986(0xbf7)]({'sectionId':_0xa60500[_0x293986(0x2199)]['id'],'type':_0xa60500['apiName']==='analyticDefaultReport'?_0x293986(0x1f5d):_0x293986(0xe44)})[_0x293986(0x1d77)][_0x293986(0x1cb0)](function(_0x439248){const _0x5dbd60=_0x293986,_0x4aa272=_0x439248&&_0x439248['rows']?_0x439248[_0x5dbd60(0x2214)]:[];if(_0x4aa272[_0x5dbd60(0xfd0)]>0x0){const _0x4f7118=[];return _0x15b454['forEach'](function(_0x3d0ce6){const _0x1ba886=_0x5dbd60,_0xb06319=_0x39641b()['find'](_0x4aa272,[_0x1ba886(0x2982),_0x3d0ce6['id']]);if(_0xb06319)_0x4f7118[_0x1ba886(0x2785)](_0x3d0ce6);}),_0x2d2d60({'count':_0x4f7118['length'],'rows':_0x4f7118});}else return _0x2d2d60(null);}):_0x2d2d60(null);})[_0x173d1c(0x1c4)](function(_0x5506b4){const _0x1404a6=_0x173d1c;_0x2b6ca8[_0x1404a6(0x218e)]({'title':_0x5506b4['status']?_0x1404a6(0xeb9)+_0x5506b4[_0x1404a6(0x291)]+'\x20-\x20'+_0x5506b4['statusText']:_0x1404a6(0x176d),'msg':_0x5506b4[_0x1404a6(0x25c)]?JSON['stringify'](_0x5506b4['data']):_0x5506b4[_0x1404a6(0x147f)]()});});}}}}}function _0x2d2d60(_0x2041ed){const _0x7c66a0=_0x4b6f75;_0xa60500[_0x7c66a0(0x2318)]=_0x2041ed||{'count':0x0,'rows':[]},!_0xa60500['newDashboardItem']&&_0xa60500[_0x7c66a0(0x11b6)]['push'](_0x39641b()['find'](_0xa60500['reports']['rows'],{'id':_0xa60500[_0x7c66a0(0x12df)]['id']}));}function _0x4026be(){const _0x2c54b1=_0x4b6f75;_0xa60500[_0x2c54b1(0xeda)]=_0xa60500[_0x2c54b1(0x1871)][0x0]?angular[_0x2c54b1(0x284c)](_0xa60500[_0x2c54b1(0x1871)][0x0][_0x2c54b1(0x1bd)]):[],_0xa60500['treeCustomData']=_0xa60500[_0x2c54b1(0x1871)][0x1]?angular[_0x2c54b1(0x284c)](_0xa60500[_0x2c54b1(0x1871)][0x1][_0x2c54b1(0x1bd)]):[],_0xa60500['treeConfig']=_0x2fa6e1(),_0xa60500['treeDefaultEvents']=_0x4d27cd(![]),_0xa60500['treeCustomEvents']=_0x4d27cd(!![]),_0x30d890[_0x2c54b1(0xe27)]({'controller':function(){return _0xa60500;},'controllerAs':'vm','templateUrl':_0x3eaf57,'autoWrap':!![],'skipHide':!![]});}function _0x2e5a62(){const _0x39de59=_0x4b6f75;_0xa60500[_0x39de59(0xfc4)][_0x39de59(0x16bf)]=_0xa60500[_0x39de59(0x11b6)][0x0][_0x39de59(0x16b6)],_0xa60500[_0x39de59(0xfc4)]['attrReport']=_0xa60500[_0x39de59(0x11b6)][0x0]['id'],_0xa60500[_0x39de59(0xfc4)]['reportType']=_0xa60500[_0x39de59(0x622)][_0x39de59(0x197c)]?_0x39de59(0x197c):'default';if(!_0xa60500['newDashboardItem']){const _0xfa06f6={'name':'attrReport','type':_0xa60500[_0x39de59(0xfc4)][_0x39de59(0x1ffd)],'value':_0xa60500[_0x39de59(0x11b6)][0x0]['id']};_0xa60500['dashboarditem']['attrs'][_0x39de59(0x159c)](_0x39641b()['findIndex'](_0xa60500['dashboarditem'][_0x39de59(0x13f4)],0x1,_0xfa06f6));}_0x599c82[_0x39de59(0xfe0)][_0x39de59(0x16bf)]['$setDirty'](),_0x30d890[_0x39de59(0x1426)]();}function _0x448464(){const _0x52fc4d=_0x4b6f75;_0x30d890[_0x52fc4d(0x1426)]();}function _0xd186c4(_0x4f5e0b){return _0x4f5e0b===null?undefined:new Date(_0x4f5e0b);}function _0x37e669(_0x158bcf){const _0x6bae7d=_0x4b6f75;_0x30d890[_0x6bae7d(0x1426)](_0x158bcf);}}const _0x6ec87e=_0x5bcc93;;const _0x1f44b0=_0x5074a3['p']+_0x5537c6(0x221d);;_0x12e622[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1ae),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x2821),'userProfileSection'];function _0x12e622(_0x2fdf31,_0x25cae7,_0x555f84,_0xb3e08f,_0x2f32a5,_0x3fc7e7,_0x3ee3a4,_0x4da60e,_0x59093b,_0x3a480a,_0x45dc26,_0x2a66b7){const _0x41f801=_0x5537c6,_0x576800=this;_0x576800[_0x41f801(0xe76)]=_0x3a480a[_0x41f801(0x21e8)](),_0x576800['license']=_0x3fc7e7,_0x576800[_0x41f801(0x9ca)]=_0x3ee3a4,_0x576800[_0x41f801(0x1b0c)]=_0x576800[_0x41f801(0x9ca)][_0x41f801(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x576800['location']=_0x25cae7[_0x41f801(0x2276)]()+_0x41f801(0x138b)+_0x25cae7['host'](),_0x576800['customDashboard']=_0x45dc26||_0x2fdf31[_0x41f801(0x1dfe)][_0x41f801(0x2821)]||{},_0x576800['userProfileSection']=_0x2a66b7&&_0x2a66b7['count']==0x1?_0x2a66b7[_0x41f801(0x2214)][0x0]:null,_0x576800[_0x41f801(0x1b1a)]=_0x3a480a[_0x41f801(0x14ea)](_0x576800[_0x41f801(0x2199)]?_0x576800[_0x41f801(0x2199)][_0x41f801(0x1b1a)]:null),_0x576800[_0x41f801(0xf4c)]={},_0x576800[_0x41f801(0x8ec)]=_0x2fdf31[_0x41f801(0x1dfe)][_0x41f801(0x291e)]||0x0,_0x576800[_0x41f801(0x388)]=_0x1df882,_0x576800[_0x41f801(0x47d)]=_0x11c2a2,_0x576800['alert']=_0x59093b[_0x41f801(0x28c7)],_0x576800['gotoCustomDashboards']=_0x11f634,_0x576800[_0x41f801(0xb03)]=_0x356c45;function _0x1df882(_0x585c3f,_0x1cb949){const _0xc1ac09=_0x41f801;_0x555f84[_0xc1ac09(0xe27)]({'controller':_0xc1ac09(0x168),'controllerAs':'vm','templateUrl':_0x1f44b0,'parent':angular[_0xc1ac09(0x1853)](_0xb3e08f['body']),'targetEvent':_0x1cb949,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x585c3f,'customDashboards':_0x576800['customDashboards']?_0x576800[_0xc1ac09(0x461)][_0xc1ac09(0x2214)]:[],'crudPermissions':_0x576800[_0xc1ac09(0x1b1a)]}});}function _0x11c2a2(_0x442282){const _0x4ac859=_0x41f801;_0x2fdf31['go'](_0x4ac859(0x7ae),{'id':_0x442282['id']});}function _0x11f634(){const _0x211096=_0x41f801;_0x2fdf31['go'](_0x211096(0x1185),{},{'reload':_0x211096(0x1185)});}function _0x356c45(){const _0x419255=_0x41f801;_0x4da60e[_0x419255(0x1312)][_0x419255(0x687)]({'id':_0x576800[_0x419255(0x2821)]['id']},_0x576800[_0x419255(0x2821)])[_0x419255(0x1d77)]['then'](function(){const _0x1ea347=_0x419255;_0x59093b[_0x1ea347(0x829)]({'title':'CustomDashboard\x20updated!','msg':_0x576800['customDashboard']['name']?_0x576800['customDashboard'][_0x1ea347(0x16b6)]+_0x1ea347(0x1068):''});})['catch'](function(_0x29ffe5){const _0x197057=_0x419255;_0x59093b[_0x197057(0x218e)]({'title':_0x29ffe5['status']?'API:'+_0x29ffe5[_0x197057(0x291)]+_0x197057(0x1657)+_0x29ffe5['statusText']:_0x197057(0x99f),'msg':_0x29ffe5[_0x197057(0x25c)]?JSON['stringify'](_0x29ffe5['data']):_0x29ffe5[_0x197057(0x147f)]()});});}}const _0x4d071f=_0x12e622;;_0x3f98ee['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog','$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0xb4a),_0x5537c6(0x1ac8),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x3f98ee(_0x3438f8,_0x5bfa21,_0x1637ff,_0x14388d,_0x1496b8,_0x7f5c60,_0x377b35,_0x26ddb6,_0x563676,_0x63e757,_0x38af40,_0x2ca66c,_0x57a8b7,_0x46fec9){const _0x266634=_0x5537c6,_0x516c5c=this;_0x516c5c[_0x266634(0xe76)]=_0x38af40[_0x266634(0x21e8)](),_0x516c5c[_0x266634(0x1a7c)]=[],_0x516c5c[_0x266634(0x9ca)]=_0x57a8b7,_0x516c5c[_0x266634(0x8a5)]=_0x2ca66c,_0x516c5c[_0x266634(0x1b1a)]=_0x46fec9,_0x516c5c[_0x266634(0xf4c)]={},_0x516c5c[_0x266634(0x1b0c)]=_0x516c5c[_0x266634(0x9ca)]&&_0x516c5c[_0x266634(0x9ca)][_0x266634(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x516c5c['title']=_0x266634(0x1571),_0x516c5c[_0x266634(0x1ac8)]=angular[_0x266634(0x17fe)](_0x563676),_0x516c5c[_0x266634(0xb4a)]=_0x26ddb6,_0x516c5c[_0x266634(0x18c1)]=![];!_0x516c5c[_0x266634(0x1ac8)]&&(_0x516c5c[_0x266634(0x1ac8)]={},_0x516c5c[_0x266634(0x1386)]=_0x266634(0x287b),_0x516c5c['newInterval']=!![]);_0x516c5c[_0x266634(0x18b3)]=_0x3d7a97,_0x516c5c[_0x266634(0x1891)]=_0x419c5d,_0x516c5c[_0x266634(0x6ce)]=_0x3276a7,_0x516c5c[_0x266634(0x2c4)]=_0x5b153e,_0x516c5c[_0x266634(0xda0)]=_0x1503e7;function _0x3d7a97(){const _0x4a5728=_0x266634;_0x516c5c['errors']=[],_0x63e757[_0x4a5728(0x1ac8)][_0x4a5728(0x1c3f)](_0x516c5c['interval'])['$promise'][_0x4a5728(0x1cb0)](function(_0x11015c){const _0x31a529=_0x4a5728;_0x516c5c['intervals'][_0x31a529(0xf63)](_0x11015c[_0x31a529(0x19b2)]()),_0x377b35['success']({'title':_0x31a529(0x1d4e),'msg':_0x516c5c['interval'][_0x31a529(0x16b6)]?_0x516c5c['interval'][_0x31a529(0x16b6)]+_0x31a529(0x470):''}),_0x1503e7(_0x11015c);})[_0x4a5728(0x1c4)](function(_0x7dc85c){const _0x1628ff=_0x4a5728;if(_0x7dc85c['data']&&_0x7dc85c['data'][_0x1628ff(0x1a7c)]&&_0x7dc85c[_0x1628ff(0x25c)][_0x1628ff(0x1a7c)]['length']){_0x516c5c[_0x1628ff(0x1a7c)]=_0x7dc85c['data'][_0x1628ff(0x1a7c)]||[{'message':_0x7dc85c[_0x1628ff(0x147f)](),'type':_0x1628ff(0x24f7)}];for(let _0x24aeba=0x0;_0x24aeba<_0x7dc85c['data'][_0x1628ff(0x1a7c)][_0x1628ff(0xfd0)];_0x24aeba+=0x1){_0x377b35[_0x1628ff(0x218e)]({'title':_0x7dc85c[_0x1628ff(0x25c)][_0x1628ff(0x1a7c)][_0x24aeba][_0x1628ff(0x66a)],'msg':_0x7dc85c['data'][_0x1628ff(0x1a7c)][_0x24aeba][_0x1628ff(0x155e)]});}}else _0x377b35['error']({'title':_0x7dc85c['status']?_0x1628ff(0xeb9)+_0x7dc85c[_0x1628ff(0x291)]+'\x20-\x20'+_0x7dc85c['statusText']:'api.interval.save','msg':_0x7dc85c['data']?JSON[_0x1628ff(0x2701)](_0x7dc85c[_0x1628ff(0x25c)][_0x1628ff(0x155e)]):_0x7dc85c[_0x1628ff(0x147f)]()});});}function _0x419c5d(){const _0x3a314b=_0x266634;_0x516c5c['errors']=[],_0x63e757[_0x3a314b(0x1ac8)][_0x3a314b(0x687)]({'id':_0x516c5c['interval']['id']},_0x516c5c['interval'])[_0x3a314b(0x1d77)][_0x3a314b(0x1cb0)](function(_0x145ea3){const _0x5f3cd0=_0x3a314b,_0x1dd3bb=_0x39641b()['find'](_0x516c5c[_0x5f3cd0(0xb4a)],{'id':_0x145ea3['id']});_0x1dd3bb&&_0x39641b()[_0x5f3cd0(0x9c1)](_0x1dd3bb,_0x39641b()['pick'](_0x145ea3[_0x5f3cd0(0x19b2)](),_0x39641b()[_0x5f3cd0(0x1be5)](_0x1dd3bb))),_0x377b35[_0x5f3cd0(0x829)]({'title':_0x5f3cd0(0x1498),'msg':_0x516c5c[_0x5f3cd0(0x1ac8)]['name']?_0x516c5c[_0x5f3cd0(0x1ac8)]['name']+'\x20has\x20been\x20saved!':''}),_0x1503e7(_0x145ea3);})[_0x3a314b(0x1c4)](function(_0x4787bf){const _0x34654a=_0x3a314b;if(_0x4787bf['data']&&_0x4787bf[_0x34654a(0x25c)][_0x34654a(0x1a7c)]&&_0x4787bf[_0x34654a(0x25c)][_0x34654a(0x1a7c)]['length']){_0x516c5c[_0x34654a(0x1a7c)]=_0x4787bf['data'][_0x34654a(0x1a7c)]||[{'message':_0x4787bf['toString'](),'type':'api.interval.update'}];for(let _0x56af4f=0x0;_0x56af4f<_0x4787bf[_0x34654a(0x25c)][_0x34654a(0x1a7c)][_0x34654a(0xfd0)];_0x56af4f++){_0x377b35[_0x34654a(0x218e)]({'title':_0x4787bf['data']['errors'][_0x56af4f][_0x34654a(0x66a)],'msg':_0x4787bf[_0x34654a(0x25c)][_0x34654a(0x1a7c)][_0x56af4f][_0x34654a(0x155e)]});}}else _0x377b35['error']({'title':_0x4787bf[_0x34654a(0x291)]?_0x34654a(0xeb9)+_0x4787bf['status']+'\x20-\x20'+_0x4787bf[_0x34654a(0xc22)]:_0x34654a(0x2505),'msg':_0x4787bf[_0x34654a(0x25c)]?JSON['stringify'](_0x4787bf['data'][_0x34654a(0x155e)]):_0x4787bf[_0x34654a(0x147f)]()});});}function _0x3276a7(_0x5ca232){const _0x233f43=_0x266634;_0x516c5c[_0x233f43(0x1a7c)]=[];const _0x48f49a=_0x14388d[_0x233f43(0x1551)]()[_0x233f43(0x1386)](_0x233f43(0x1a2e))[_0x233f43(0x862)](_0x233f43(0x2729))[_0x233f43(0x15ad)](_0x233f43(0x2805))['ok'](_0x233f43(0x2594))[_0x233f43(0x696)](_0x233f43(0xde1))[_0x233f43(0x728)](_0x5ca232);_0x14388d['show'](_0x48f49a)[_0x233f43(0x1cb0)](function(){const _0x5b8125=_0x233f43;_0x63e757[_0x5b8125(0x1ac8)]['delete']({'id':_0x516c5c['interval']['id']})[_0x5b8125(0x1d77)][_0x5b8125(0x1cb0)](function(){const _0x381326=_0x5b8125;_0x39641b()[_0x381326(0x152a)](_0x516c5c['intervals'],{'id':_0x516c5c['interval']['id']}),_0x377b35['success']({'title':_0x381326(0x2075),'msg':(_0x516c5c['interval'][_0x381326(0x16b6)]||_0x381326(0x1ac8))+'\x20has\x20been\x20deleted!'}),_0x1503e7(_0x516c5c[_0x381326(0x1ac8)]);})['catch'](function(_0x175d59){const _0x4ab57a=_0x5b8125;if(_0x175d59[_0x4ab57a(0x25c)]&&_0x175d59[_0x4ab57a(0x25c)][_0x4ab57a(0x1a7c)]&&_0x175d59[_0x4ab57a(0x25c)][_0x4ab57a(0x1a7c)][_0x4ab57a(0xfd0)]){_0x516c5c[_0x4ab57a(0x1a7c)]=_0x175d59[_0x4ab57a(0x25c)][_0x4ab57a(0x1a7c)]||[{'message':_0x175d59[_0x4ab57a(0x147f)](),'type':'api.interval.delete'}];for(let _0x452c81=0x0;_0x452c81<_0x175d59[_0x4ab57a(0x25c)][_0x4ab57a(0x1a7c)][_0x4ab57a(0xfd0)];_0x452c81++){_0x377b35[_0x4ab57a(0x218e)]({'title':_0x175d59[_0x4ab57a(0x25c)][_0x4ab57a(0x1a7c)][_0x452c81][_0x4ab57a(0x66a)],'msg':_0x175d59[_0x4ab57a(0x25c)]['errors'][_0x452c81][_0x4ab57a(0x155e)]});}}else _0x377b35['error']({'title':_0x175d59[_0x4ab57a(0x291)]?_0x4ab57a(0xeb9)+_0x175d59[_0x4ab57a(0x291)]+_0x4ab57a(0x1657)+_0x175d59[_0x4ab57a(0xc22)]:'api.interval.delete','msg':_0x175d59[_0x4ab57a(0x25c)]?JSON[_0x4ab57a(0x2701)](_0x175d59[_0x4ab57a(0x25c)][_0x4ab57a(0x155e)]):_0x175d59[_0x4ab57a(0x155e)]||_0x175d59[_0x4ab57a(0x147f)]()});});},function(){});}function _0x5b153e(_0x49eac5){return _0x49eac5===null?undefined:new Date(_0x49eac5);}function _0x1503e7(_0x2311f5){const _0x2c06b3=_0x266634;_0x14388d[_0x2c06b3(0x1426)](_0x2311f5);}}const _0x2063e0=_0x3f98ee;;_0x2080a[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),'$mdDialog',_0x5537c6(0x200d),'IndexFactory','interval',_0x5537c6(0xb4a),_0x5537c6(0x9bf),_0x5537c6(0x142b),'Auth',_0x5537c6(0x1b1a)];function _0x2080a(_0x2adaa4,_0x37f73d,_0x6873f8,_0x306c33,_0x17fc67,_0x505706,_0xc7c8bd,_0x56aaec,_0x9d2265,_0x408263){const _0x31c2ef=_0x5537c6,_0x11d3b6=this;_0x11d3b6[_0x31c2ef(0xe76)]=_0x9d2265['getCurrentUser'](),_0x11d3b6[_0x31c2ef(0x1a7c)]=[],_0x11d3b6[_0x31c2ef(0x1386)]=_0x31c2ef(0x1571),_0x11d3b6[_0x31c2ef(0x1ac8)]=angular['copy'](_0x17fc67),_0x11d3b6[_0x31c2ef(0xb4a)]=_0x505706,_0x11d3b6['newInterval']=![],_0x11d3b6[_0x31c2ef(0x2025)]=[_0x31c2ef(0x2017),'custom'],_0x11d3b6['crudPermissions']=_0x408263,_0x11d3b6['daysOfWeek']=_0x306c33[_0x31c2ef(0x1aae)](),_0x11d3b6['monthNumber']=_0x306c33['getMonthNumber'](),_0x11d3b6[_0x31c2ef(0x1534)]=_0x306c33[_0x31c2ef(0x7cc)](),_0x11d3b6[_0x31c2ef(0x202d)]=_0x306c33[_0x31c2ef(0xc1e)]();if(!_0x11d3b6[_0x31c2ef(0x1ac8)])_0x11d3b6['interval']={'interval':_0x31c2ef(0x965)},_0x11d3b6['type']=_0x31c2ef(0x2017),_0x11d3b6[_0x31c2ef(0x1386)]=_0x31c2ef(0x287b),_0x11d3b6[_0x31c2ef(0x18c1)]=!![];else{if(_0x11d3b6[_0x31c2ef(0x1ac8)]['interval']!==_0x31c2ef(0x965)){_0x11d3b6[_0x31c2ef(0x66a)]='custom';const _0x3ee184=_0x11d3b6[_0x31c2ef(0x1ac8)][_0x31c2ef(0x1ac8)]['split'](','),_0x2f9482=_0x3ee184[0x0],_0x388c08=_0x3ee184[0x1],_0x4c0efe=_0x3ee184[0x2],_0x321102=_0x3ee184[0x3];if(_0x2f9482!=='*'){const _0x2cafd4=_0x2f9482[_0x31c2ef(0xbe1)]('-')[0x0],_0x968fdc=_0x2f9482['split']('-')[0x1];let _0x168657;_0x168657=new Date(),_0x168657[_0x31c2ef(0x201b)](Number(_0x2cafd4[_0x31c2ef(0xbe1)](':')[0x0])),_0x168657[_0x31c2ef(0x1622)](Number(_0x2cafd4[_0x31c2ef(0xbe1)](':')[0x1])),_0x11d3b6[_0x31c2ef(0x718)]=_0x168657,_0x168657=new Date(),_0x168657[_0x31c2ef(0x201b)](Number(_0x968fdc[_0x31c2ef(0xbe1)](':')[0x0])),_0x168657[_0x31c2ef(0x1622)](Number(_0x968fdc[_0x31c2ef(0xbe1)](':')[0x1])),_0x11d3b6[_0x31c2ef(0x64a)]=_0x168657;}_0x388c08!=='*'&&(_0x11d3b6['dayOfWeekFrom']=_0x388c08[_0x31c2ef(0xbe1)]('-')[0x0],_0x11d3b6['dayOfWeekTo']=_0x388c08[_0x31c2ef(0xbe1)]('-')[0x1]),_0x4c0efe!=='*'&&(_0x11d3b6[_0x31c2ef(0xd6f)]=_0x4c0efe[_0x31c2ef(0xbe1)]('-')[0x0],_0x11d3b6[_0x31c2ef(0x194d)]=_0x4c0efe[_0x31c2ef(0xbe1)]('-')[0x1]),_0x321102!=='*'&&(_0x11d3b6[_0x31c2ef(0x1756)]=_0x321102[_0x31c2ef(0xbe1)]('-')[0x0],_0x11d3b6[_0x31c2ef(0xa68)]=_0x321102['split']('-')[0x1]);}else _0x11d3b6[_0x31c2ef(0x66a)]='always';}_0x2adaa4['params']['id']&&!_0x11d3b6[_0x31c2ef(0x1ac8)][_0x31c2ef(0x171b)]&&(_0x11d3b6['interval'][_0x31c2ef(0x1a60)]=_0x2adaa4['params']['id']);_0x11d3b6[_0x31c2ef(0x1ac8)]['IntervalId']&&_0x11d3b6['interval'][_0x31c2ef(0x171b)]&&(_0x11d3b6[_0x31c2ef(0x66a)]=_0x31c2ef(0x240));_0x11d3b6['addNewInterval']=_0x3e39a2,_0x11d3b6[_0x31c2ef(0x1891)]=_0x37d115,_0x11d3b6[_0x31c2ef(0xda0)]=_0x56c590;_0x11d3b6[_0x31c2ef(0x1ac8)][_0x31c2ef(0x171b)]&&(_0x9d2265[_0x31c2ef(0x22b6)]('admin')?_0x56aaec[_0x31c2ef(0x1ac8)][_0x31c2ef(0xbf7)]({'fields':_0x31c2ef(0x872),'IntervalId':_0x31c2ef(0xd38),'nolimit':!![]})[_0x31c2ef(0x1d77)][_0x31c2ef(0x1cb0)](function(_0x5b4763){const _0x300ac2=_0x31c2ef;_0x11d3b6[_0x300ac2(0xb4a)]=_0x5b4763['rows']||[];})['catch'](function(_0x315e1c){const _0x3e7b91=_0x31c2ef;_0xc7c8bd[_0x3e7b91(0x218e)]({'title':_0x315e1c[_0x3e7b91(0x291)]?'API:'+_0x315e1c[_0x3e7b91(0x291)]+_0x3e7b91(0x1657)+_0x315e1c[_0x3e7b91(0xc22)]:_0x3e7b91(0xdac),'msg':_0x315e1c[_0x3e7b91(0x25c)]?JSON['stringify'](_0x315e1c[_0x3e7b91(0x25c)]):_0x315e1c[_0x3e7b91(0x147f)]()});}):_0x56aaec[_0x31c2ef(0x1ac8)][_0x31c2ef(0xbf7)]({'fields':_0x31c2ef(0x872),'IntervalId':_0x31c2ef(0xd38),'nolimit':!![]})[_0x31c2ef(0x1d77)][_0x31c2ef(0x1cb0)](function(_0x15591e){const _0x2eec13=_0x31c2ef;_0x11d3b6[_0x2eec13(0xb4a)]=_0x15591e[_0x2eec13(0x2214)]||[];})[_0x31c2ef(0x1cb0)](function(){const _0xaa3963=_0x31c2ef;return _0x56aaec[_0xaa3963(0x2199)]['get']({'userProfileId':_0x11d3b6[_0xaa3963(0xe76)]['userProfileId'],'sectionId':0x3ec})[_0xaa3963(0x1d77)];})[_0x31c2ef(0x1cb0)](function(_0x156299){const _0x16db42=_0x31c2ef,_0x35acdc=_0x156299&&_0x156299['rows']?_0x156299[_0x16db42(0x2214)][0x0]:null;if(!_0x35acdc)_0x11d3b6['intervals']=[];else{if(!_0x35acdc[_0x16db42(0x12f4)])return _0x56aaec[_0x16db42(0x1198)]['get']({'sectionId':_0x35acdc['id']})[_0x16db42(0x1d77)]['then'](function(_0x4c80db){const _0xc93058=_0x16db42,_0x22a33b=_0x4c80db&&_0x4c80db[_0xc93058(0x2214)]?_0x4c80db['rows']:[],_0x5c6f1f=[];let _0x2ff994=null;_0x11d3b6[_0xc93058(0x1ac8)]&&(_0x2ff994=_0x39641b()['find'](_0x11d3b6[_0xc93058(0xb4a)],{'name':_0x11d3b6['interval'][_0xc93058(0x1a60)]})),_0x2ff994&&!_0x39641b()[_0xc93058(0x727)](_0x22a33b,[_0xc93058(0x2982),_0x2ff994['id']])&&_0x11d3b6[_0xc93058(0xb4a)]['forEach'](function(_0x1f0cef){const _0x39dea3=_0xc93058;_0x1f0cef['id']===_0x2ff994['id']&&(_0x1f0cef[_0x39dea3(0x15da)]=![],_0x5c6f1f[_0x39dea3(0x2785)](_0x1f0cef));}),_0x11d3b6[_0xc93058(0xb4a)]=_0x5c6f1f;});}})[_0x31c2ef(0x1c4)](function(_0x390c74){const _0x531174=_0x31c2ef;_0xc7c8bd[_0x531174(0x218e)]({'title':_0x390c74['status']?_0x531174(0xeb9)+_0x390c74[_0x531174(0x291)]+_0x531174(0x1657)+_0x390c74[_0x531174(0xc22)]:_0x531174(0xdac),'msg':_0x390c74[_0x531174(0x25c)]?JSON['stringify'](_0x390c74['data']):_0x390c74[_0x531174(0x147f)]()});}));function _0xe28ba1(){const _0x5f5055=_0x31c2ef;switch(_0x11d3b6['type']){case _0x5f5055(0x2017):case _0x5f5055(0x240):return _0x5f5055(0x965);case _0x5f5055(0x197c):{const _0x253b20=[];if(_0x11d3b6[_0x5f5055(0x718)]!=='*'&&_0x11d3b6[_0x5f5055(0x718)]&&_0x11d3b6['timeRangeTo']){const _0x30e573=(_0x11d3b6['timeRangeFrom'][_0x5f5055(0x1169)]()<0xa?'0':'')+_0x11d3b6[_0x5f5055(0x718)][_0x5f5055(0x1169)]()+':'+((_0x11d3b6[_0x5f5055(0x718)][_0x5f5055(0x851)]()<0xa?'0':'')+_0x11d3b6['timeRangeFrom'][_0x5f5055(0x851)]()),_0xa44dfe=(_0x11d3b6[_0x5f5055(0x64a)]['getHours']()<0xa?'0':'')+_0x11d3b6[_0x5f5055(0x64a)][_0x5f5055(0x1169)]()+':'+((_0x11d3b6['timeRangeTo']['getMinutes']()<0xa?'0':'')+_0x11d3b6[_0x5f5055(0x64a)]['getMinutes']());_0x253b20[_0x5f5055(0x2785)](_0x30e573+'-'+_0xa44dfe);}else _0x253b20[_0x5f5055(0x2785)]('*');return _0x11d3b6[_0x5f5055(0x28a6)]?_0x11d3b6[_0x5f5055(0x28db)]?_0x253b20[_0x5f5055(0x2785)](_0x11d3b6[_0x5f5055(0x28a6)]+'-'+_0x11d3b6[_0x5f5055(0x28db)]):_0x253b20[_0x5f5055(0x2785)](_0x11d3b6[_0x5f5055(0x28a6)]):_0x253b20[_0x5f5055(0x2785)]('*'),_0x11d3b6[_0x5f5055(0xd6f)]?_0x11d3b6[_0x5f5055(0x194d)]?_0x253b20[_0x5f5055(0x2785)](_0x11d3b6[_0x5f5055(0xd6f)]+'-'+_0x11d3b6[_0x5f5055(0x194d)]):_0x253b20[_0x5f5055(0x2785)](_0x11d3b6[_0x5f5055(0xd6f)]):_0x253b20[_0x5f5055(0x2785)]('*'),_0x11d3b6[_0x5f5055(0x1756)]?_0x11d3b6[_0x5f5055(0xa68)]?_0x253b20[_0x5f5055(0x2785)](_0x11d3b6[_0x5f5055(0x1756)]+'-'+_0x11d3b6[_0x5f5055(0xa68)]):_0x253b20[_0x5f5055(0x2785)](_0x11d3b6['monthFrom']):_0x253b20['push']('*'),_0x253b20[_0x5f5055(0x1f66)]();}}}function _0x3e39a2(){const _0xdea929=_0x31c2ef;_0x11d3b6[_0xdea929(0x1a7c)]=[],_0x11d3b6['interval'][_0xdea929(0x1ac8)]=_0xe28ba1(),_0x56aaec[_0xdea929(0x1ac8)]['save'](_0x11d3b6[_0xdea929(0x1ac8)])['$promise'][_0xdea929(0x1cb0)](function(_0x29f192){const _0xe87265=_0xdea929;_0x11d3b6['intervals'][_0xe87265(0x2785)](_0x29f192),_0xc7c8bd[_0xe87265(0x829)]({'title':_0xe87265(0x1d4e),'msg':_0x11d3b6[_0xe87265(0x1ac8)]['name']?_0x11d3b6[_0xe87265(0x1ac8)][_0xe87265(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x56c590();})[_0xdea929(0x1c4)](function(_0x5bdb38){const _0x46fd85=_0xdea929;console['error'](_0x5bdb38),_0x11d3b6[_0x46fd85(0x1a7c)]=_0x5bdb38['data'][_0x46fd85(0x1a7c)]||[{'message':_0x5bdb38[_0x46fd85(0x147f)](),'type':_0x46fd85(0x24f7)}];});}function _0x37d115(){const _0x447ed4=_0x31c2ef;_0x11d3b6[_0x447ed4(0x1a7c)]=[],_0x11d3b6[_0x447ed4(0x1ac8)]['interval']=_0xe28ba1(),_0x11d3b6[_0x447ed4(0x1ac8)][_0x447ed4(0x171b)]?(_0x11d3b6[_0x447ed4(0x66a)]!==_0x447ed4(0x240)&&(_0x11d3b6[_0x447ed4(0x1ac8)][_0x447ed4(0x1a60)]=null),_0x56c590(_0x11d3b6[_0x447ed4(0x1ac8)])):_0x56aaec[_0x447ed4(0x1ac8)][_0x447ed4(0x687)]({'id':_0x11d3b6[_0x447ed4(0x1ac8)]['id']},_0x11d3b6['interval'])[_0x447ed4(0x1d77)][_0x447ed4(0x1cb0)](function(_0x3ab59b){const _0x1fab2f=_0x447ed4,_0x502c8b=_0x39641b()[_0x1fab2f(0x13b4)](_0x11d3b6[_0x1fab2f(0xb4a)],{'id':_0x3ab59b['id']});_0x502c8b&&_0x39641b()[_0x1fab2f(0x9c1)](_0x502c8b,_0x3ab59b),_0xc7c8bd[_0x1fab2f(0x829)]({'title':_0x1fab2f(0x1498),'msg':_0x1fab2f(0x2994)}),_0x56c590();})[_0x447ed4(0x1c4)](function(_0x3909c4){const _0x56d2a7=_0x447ed4;console['error'](_0x3909c4),_0x11d3b6[_0x56d2a7(0x1a7c)]=_0x3909c4[_0x56d2a7(0x25c)][_0x56d2a7(0x1a7c)]||[{'message':_0x3909c4[_0x56d2a7(0x147f)](),'type':_0x56d2a7(0x2505)}];});}function _0x56c590(_0x321e49){const _0x26ef4d=_0x31c2ef;_0x37f73d[_0x26ef4d(0x1426)](_0x321e49);}}const _0x1f4cbd=_0x2080a;;const _0x1b764a=_0x5074a3['p']+_0x5537c6(0x1dbe);;_0x3f5f32['$inject']=[_0x5537c6(0x173),'$scope',_0x5537c6(0x406),'$q',_0x5537c6(0x1ae),'$timeout','$mdDialog',_0x5537c6(0x22bf),'toasty','api',_0x5537c6(0x1774)];function _0x3f5f32(_0xc45650,_0xf71f5f,_0x40ce64,_0x3d39a1,_0x3471ca,_0x481b94,_0x31ed7c,_0xf1e0ef,_0x2879a5,_0x41edb3,_0x373b12){const _0x3540a9=_0x5537c6,_0xda8a6f=this;_0xda8a6f[_0x3540a9(0xe76)]=_0x373b12['getCurrentUser'](),_0xda8a6f[_0x3540a9(0x1ac8)]={},_0xda8a6f[_0x3540a9(0x1233)]={'count':0x0,'rows':[]},_0xda8a6f[_0x3540a9(0xa37)]=[],_0xda8a6f[_0x3540a9(0x1b1a)],_0xda8a6f[_0x3540a9(0x831)]={'animation':0x64,'onSort':function(_0x1480b3){const _0x31a126=_0x3540a9;_0x41edb3[_0x31a126(0x1ac8)]['addIntervals']({'id':_0xda8a6f[_0x31a126(0x1ac8)]['id']},_0x1480b3[_0x31a126(0x1171)])[_0x31a126(0x1d77)][_0x31a126(0x1cb0)](function(_0x13aae0){const _0x201b8c=_0x31a126;_0xda8a6f[_0x201b8c(0x1233)][_0x201b8c(0x2214)]=_0x13aae0;})[_0x31a126(0x1c4)](function(_0x5f386f){const _0x4c46d0=_0x31a126;_0x2879a5[_0x4c46d0(0x218e)]({'title':_0x5f386f[_0x4c46d0(0x291)]?_0x4c46d0(0xeb9)+_0x5f386f[_0x4c46d0(0x291)]+'\x20-\x20'+_0x5f386f[_0x4c46d0(0xc22)]:_0x4c46d0(0xd99),'msg':_0x5f386f['data']?JSON[_0x4c46d0(0x2701)](_0x5f386f[_0x4c46d0(0x25c)]):_0x5f386f['toString']()});});}},_0xda8a6f[_0x3540a9(0xae2)]={'fields':_0x3540a9(0x2048),'nolimit':'true','limit':0xa,'page':0x1},_0xda8a6f[_0x3540a9(0x1a8e)]=_0x346425,_0xda8a6f[_0x3540a9(0xb25)]=_0x5d7c7d,_0xda8a6f['success']=_0x5c1a3c,_0xda8a6f[_0x3540a9(0xc1a)]=_0x1e2fb4,_0xda8a6f[_0x3540a9(0x104a)]=_0x5ae064,_0xda8a6f['exportSelectedIntervalIntervals']=_0x1a49af,_0xda8a6f[_0x3540a9(0x26b1)]=_0x28a62b,_0xda8a6f['deleteSelectedIntervalIntervals']=_0x310621;function _0x346425(_0x36d2d7,_0x509d45){const _0x1b610f=_0x3540a9;_0xda8a6f[_0x1b610f(0x1ac8)]=_0x36d2d7,_0xda8a6f[_0x1b610f(0x1b1a)]=typeof _0x509d45!==_0x1b610f(0x16b5)?_0x509d45:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xda8a6f['sortableTable'][_0x1b610f(0x379)]=!_0xda8a6f[_0x1b610f(0x1b1a)][_0x1b610f(0xb3d)]?!![]:![],_0xda8a6f[_0x1b610f(0xae2)]['id']=_0xda8a6f[_0x1b610f(0x1ac8)]['id'],_0x1e2fb4();}function _0x5d7c7d(_0x341c3a,_0x47635f){const _0xe47517=_0x3540a9,_0xb1771a=_0x31ed7c['confirm']()['title'](_0xe47517(0x1e5b))[_0xe47517(0x49e)](_0xe47517(0x204d)+(_0x341c3a[_0xe47517(0x16b6)]||_0x341c3a['id']&&_0x39641b()[_0xe47517(0x277)](_0xe47517(0x49a))+_0x341c3a['id']||_0xe47517(0x1ac8))+_0xe47517(0x1200)+'\x20will\x20be\x20deleted.')[_0xe47517(0x15ad)](_0xe47517(0x239))[_0xe47517(0x728)](_0x47635f)['ok']('OK')[_0xe47517(0x696)]('CANCEL');_0x31ed7c[_0xe47517(0xe27)](_0xb1771a)['then'](function(){_0x28a62b(_0x341c3a);},function(){const _0x50af54=_0xe47517;console[_0x50af54(0x1b4f)](_0x50af54(0x24ba));});}function _0x5c1a3c(_0x1a25b1){const _0x14ce0e=_0x3540a9;_0xda8a6f[_0x14ce0e(0x1233)]=_0x1a25b1||{'count':0x0,'rows':[]};}function _0x1e2fb4(){const _0x24824b=_0x3540a9;_0xda8a6f[_0x24824b(0xae2)]['offset']=(_0xda8a6f[_0x24824b(0xae2)][_0x24824b(0x1c7b)]-0x1)*_0xda8a6f['query'][_0x24824b(0x236)],_0xda8a6f['promise']=_0x41edb3['interval'][_0x24824b(0x22fc)](_0xda8a6f[_0x24824b(0xae2)],_0x5c1a3c)[_0x24824b(0x1d77)];}function _0x5ae064(_0x4ae698,_0x15d096){const _0x400275=_0x3540a9;_0x31ed7c[_0x400275(0xe27)]({'controller':'EditAppintervalDialogController','controllerAs':'vm','templateUrl':_0x1b764a,'parent':angular[_0x400275(0x1853)](_0xf1e0ef['body']),'targetEvent':_0x4ae698,'clickOutsideToClose':!![],'locals':{'interval':_0x15d096,'intervals':_0xda8a6f[_0x400275(0x1233)][_0x400275(0x2214)],'license':null,'setting':null,'crudPermissions':_0xda8a6f[_0x400275(0x1b1a)]}});}function _0x28a62b(_0x2201f7){const _0x222533=_0x3540a9;_0x41edb3[_0x222533(0x1ac8)][_0x222533(0x111d)]({'id':_0x2201f7['id']})['$promise'][_0x222533(0x1cb0)](function(){const _0x14f861=_0x222533;_0x39641b()[_0x14f861(0x152a)](_0xda8a6f[_0x14f861(0x1233)][_0x14f861(0x2214)],{'id':_0x2201f7['id']}),_0xda8a6f[_0x14f861(0x1233)][_0x14f861(0x184d)]-=0x1,!_0xda8a6f['intervalIntervals'][_0x14f861(0x2214)][_0x14f861(0xfd0)]&&_0x1e2fb4(),_0x2879a5[_0x14f861(0x829)]({'title':_0x14f861(0x15b1),'msg':_0x2201f7['name']?_0x2201f7[_0x14f861(0x16b6)]+_0x14f861(0x3f5):''});})[_0x222533(0x1c4)](function(_0x2f525){const _0x354808=_0x222533;if(_0x2f525[_0x354808(0x25c)]&&_0x2f525[_0x354808(0x25c)]['errors']&&_0x2f525[_0x354808(0x25c)][_0x354808(0x1a7c)]['length']){_0xda8a6f['errors']=_0x2f525[_0x354808(0x25c)][_0x354808(0x1a7c)]||[{'message':_0x2f525[_0x354808(0x147f)](),'type':_0x354808(0x1b58)}];for(let _0x2f6152=0x0;_0x2f6152<_0x2f525[_0x354808(0x25c)]['errors'][_0x354808(0xfd0)];_0x2f6152++){_0x2879a5[_0x354808(0x218e)]({'title':_0x2f525['data'][_0x354808(0x1a7c)][_0x2f6152]['type'],'msg':_0x2f525[_0x354808(0x25c)][_0x354808(0x1a7c)][_0x2f6152][_0x354808(0x155e)]});}}else _0x2879a5[_0x354808(0x218e)]({'title':_0x2f525['status']?'API:'+_0x2f525['status']+_0x354808(0x1657)+_0x2f525[_0x354808(0xc22)]:_0x354808(0x1b58),'msg':_0x2f525[_0x354808(0x25c)]?JSON[_0x354808(0x2701)](_0x2f525[_0x354808(0x25c)]['message']):_0x2f525[_0x354808(0x155e)]||_0x2f525[_0x354808(0x147f)]()});});}function _0x1a49af(){const _0x4d5467=_0x3540a9,_0x13f17c=angular[_0x4d5467(0x17fe)](_0xda8a6f[_0x4d5467(0xa37)]);return _0xda8a6f[_0x4d5467(0xa37)]=[],_0x13f17c;}function _0x310621(_0x1c7be2){const _0xe4461e=_0x3540a9,_0x50f1c3=_0x31ed7c[_0xe4461e(0x1551)]()['title'](_0xe4461e(0xc38))[_0xe4461e(0x49e)](_0xe4461e(0x204d)+_0xda8a6f[_0xe4461e(0xa37)][_0xe4461e(0xfd0)]+_0xe4461e(0x1d6c)+'\x20will\x20be\x20deleted.')['ariaLabel'](_0xe4461e(0x6d9))[_0xe4461e(0x728)](_0x1c7be2)['ok']('OK')[_0xe4461e(0x696)](_0xe4461e(0x24ba));_0x31ed7c['show'](_0x50f1c3)[_0xe4461e(0x1cb0)](function(){const _0x40d572=_0xe4461e;_0xda8a6f[_0x40d572(0xa37)][_0x40d572(0xf90)](function(_0x4c7905){_0x28a62b(_0x4c7905);}),_0xda8a6f[_0x40d572(0xa37)]=[];});}let _0x406796=!![],_0x1a3173=0x1;_0xf71f5f[_0x3540a9(0x614)]('vm_dc.query.filter',function(_0x19dc32,_0x1dd920){const _0x11ffea=_0x3540a9;_0x406796?_0x481b94(function(){_0x406796=![];}):(!_0x1dd920&&(_0x1a3173=_0xda8a6f[_0x11ffea(0xae2)]['page']),_0x19dc32!==_0x1dd920&&(_0xda8a6f[_0x11ffea(0xae2)][_0x11ffea(0x1c7b)]=0x1),!_0x19dc32&&(_0xda8a6f[_0x11ffea(0xae2)][_0x11ffea(0x1c7b)]=_0x1a3173),_0x1e2fb4());});}const _0x1e79a4=_0x3f5f32;;_0x4ca277[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$document',_0x5537c6(0x1ae),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x142b),_0x5537c6(0x9bf),'Auth',_0x5537c6(0x1ac8),_0x5537c6(0x2199)];function _0x4ca277(_0x5a8c7f,_0x3d0964,_0x2c92ed,_0x336490,_0x2ffe2f,_0x2314d8,_0x3f37b2,_0x19601f,_0x25e57e,_0x44da3f,_0x351db9,_0x423cf4){const _0x46c4de=_0x5537c6,_0x3a8462=this;_0x3a8462[_0x46c4de(0xe76)]=_0x44da3f['getCurrentUser'](),_0x3a8462[_0x46c4de(0x8a5)]=_0x2314d8,_0x3a8462[_0x46c4de(0x9ca)]=_0x3f37b2,_0x3a8462[_0x46c4de(0x1b0c)]=_0x3a8462[_0x46c4de(0x9ca)][_0x46c4de(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a8462[_0x46c4de(0x2404)]=_0x3d0964['protocol']()+_0x46c4de(0x138b)+_0x3d0964[_0x46c4de(0x17d8)](),_0x3a8462[_0x46c4de(0x1ac8)]=_0x351db9||_0x5a8c7f[_0x46c4de(0x1dfe)]['interval']||{},_0x3a8462[_0x46c4de(0x2199)]=_0x423cf4&&_0x423cf4[_0x46c4de(0x184d)]==0x1?_0x423cf4[_0x46c4de(0x2214)][0x0]:null,_0x3a8462[_0x46c4de(0x1b1a)]=_0x44da3f[_0x46c4de(0x14ea)](_0x3a8462[_0x46c4de(0x2199)]?_0x3a8462['userProfileSection'][_0x46c4de(0x1b1a)]:null),_0x3a8462[_0x46c4de(0xf4c)]={},_0x3a8462[_0x46c4de(0x8ec)]=_0x5a8c7f[_0x46c4de(0x1dfe)][_0x46c4de(0x291e)]||0x0,_0x3a8462[_0x46c4de(0x494)]=_0x25e57e[_0x46c4de(0x28c7)],_0x3a8462[_0x46c4de(0x184f)]=_0x12824e,_0x3a8462[_0x46c4de(0x1891)]=_0xcd0253;function _0x12824e(){const _0x122fa3=_0x46c4de;_0x5a8c7f['go'](_0x122fa3(0x115e),{},{'reload':_0x122fa3(0x115e)});}function _0xcd0253(){const _0x47fdab=_0x46c4de;_0x19601f[_0x47fdab(0x1ac8)][_0x47fdab(0x687)]({'id':_0x3a8462[_0x47fdab(0x1ac8)]['id']},_0x3a8462[_0x47fdab(0x1ac8)])[_0x47fdab(0x1d77)][_0x47fdab(0x1cb0)](function(){const _0x5d7bd1=_0x47fdab;_0x25e57e[_0x5d7bd1(0x829)]({'title':_0x5d7bd1(0x2758),'msg':_0x3a8462[_0x5d7bd1(0x1ac8)][_0x5d7bd1(0x16b6)]?_0x3a8462[_0x5d7bd1(0x1ac8)][_0x5d7bd1(0x16b6)]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0xa376b2){const _0x1e01b1=_0x47fdab;_0x25e57e['error']({'title':_0xa376b2[_0x1e01b1(0x291)]?_0x1e01b1(0xeb9)+_0xa376b2[_0x1e01b1(0x291)]+_0x1e01b1(0x1657)+_0xa376b2['statusText']:_0x1e01b1(0x1b58),'msg':_0xa376b2[_0x1e01b1(0x25c)]?JSON['stringify'](_0xa376b2[_0x1e01b1(0x25c)]):_0xa376b2['toString']()});});}}const _0x2d1b1e=_0x4ca277;;const _0x294674=_0x5074a3['p']+_0x5537c6(0x840);;_0x473745[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$window',_0x5537c6(0x406),'$mdSidenav',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),'$translate',_0x5537c6(0xb4a),'userProfile','userProfileSection',_0x5537c6(0x142b),_0x5537c6(0xde8),'toasty',_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x473745(_0x170cb4,_0x5fa886,_0x552391,_0x25c8f3,_0x3a4365,_0x32c5f5,_0xac1f6a,_0x5bfd08,_0xe554d0,_0x46b537,_0x198032,_0x181b97,_0x50586e,_0x825aea,_0x3dcefa,_0x5a152e,_0x58b977){const _0x3cee6f=_0x5537c6,_0x34348d=this;_0x34348d['license']=_0x5a152e,_0x34348d[_0x3cee6f(0x9ca)]=_0x58b977,_0x34348d[_0x3cee6f(0xe76)]=_0x3dcefa[_0x3cee6f(0x21e8)](),_0x34348d['intervals']=_0xe554d0||{'count':0x0,'rows':[]},_0x34348d[_0x3cee6f(0x44a)]=_0x46b537,_0x34348d[_0x3cee6f(0x2199)]=_0x198032&&_0x198032[_0x3cee6f(0x184d)]==0x1?_0x198032[_0x3cee6f(0x2214)][0x0]:null,_0x34348d[_0x3cee6f(0x1b1a)]=_0x3dcefa['parseCrudPermissions'](_0x34348d[_0x3cee6f(0x2199)]?_0x34348d['userProfileSection'][_0x3cee6f(0x1b1a)]:null),_0x34348d['table']=_0x3cee6f(0xb4a),_0x34348d['listOrder']='',_0x34348d[_0x3cee6f(0x1cdf)]=null,_0x34348d[_0x3cee6f(0x2723)]=[],_0x34348d[_0x3cee6f(0xae2)]={'fields':_0x3cee6f(0x12e8),'sort':_0x3cee6f(0x282),'IntervalId':_0x3cee6f(0xd38),'limit':0xa,'page':0x1},_0x34348d['editstate']=_0x53b44a,_0x34348d[_0x3cee6f(0x27fe)]=_0x534a51,_0x34348d['success']=_0x28b7ed,_0x34348d[_0x3cee6f(0x22fc)]=_0x4b26c9,_0x34348d[_0x3cee6f(0x19e6)]=_0x607038,_0x34348d[_0x3cee6f(0x6ce)]=_0x1b80aa,_0x34348d[_0x3cee6f(0x1787)]=_0x13dc53,_0x34348d[_0x3cee6f(0xcfd)]=_0x50077a,_0x34348d[_0x3cee6f(0x5f2)]=_0x177863,_0x34348d[_0x3cee6f(0x20ef)]=_0x150849;function _0x53b44a(_0x206991){const _0xfc6713=_0x3cee6f;_0x552391['go'](_0xfc6713(0x1538),{'id':_0x206991['id'],'interval':_0x206991,'crudPermissions':_0x34348d[_0xfc6713(0x1b1a)]});}function _0x534a51(_0x189b72,_0xeec752){const _0xf879dd=_0x3cee6f,_0x3aa3fb=_0x3a4365[_0xf879dd(0x1551)]()[_0xf879dd(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x39641b()[_0xf879dd(0xa75)]('interval')+'?')[_0xf879dd(0x49e)](''+(_0x189b72[_0xf879dd(0x16b6)]||'interval')+_0xf879dd(0x1200)+_0xf879dd(0x1b6))[_0xf879dd(0x15ad)]('delete\x20interval')[_0xf879dd(0x728)](_0xeec752)['ok']('OK')[_0xf879dd(0x696)](_0xf879dd(0x24ba));_0x3a4365[_0xf879dd(0xe27)](_0x3aa3fb)['then'](function(){_0x1b80aa(_0x189b72);},function(){const _0x14c36f=_0xf879dd;console[_0x14c36f(0x1b4f)](_0x14c36f(0x24ba));});}let _0x1a8a5f=!![],_0x40cdf3=0x1;_0x170cb4[_0x3cee6f(0x614)](_0x3cee6f(0x957),function(_0x3a7cf8,_0x5b56de){const _0x1d0c7c=_0x3cee6f;_0x1a8a5f?_0xac1f6a(function(){_0x1a8a5f=![];}):(!_0x5b56de&&(_0x40cdf3=_0x34348d['query'][_0x1d0c7c(0x1c7b)]),_0x3a7cf8!==_0x5b56de&&(_0x34348d[_0x1d0c7c(0xae2)][_0x1d0c7c(0x1c7b)]=0x1),!_0x3a7cf8&&(_0x34348d[_0x1d0c7c(0xae2)]['page']=_0x40cdf3),_0x34348d[_0x1d0c7c(0x22fc)]());});function _0x28b7ed(_0x5b2fd7){const _0x51c4a1=_0x3cee6f;_0x34348d[_0x51c4a1(0xb4a)]=_0x5b2fd7||{'count':0x0,'rows':[]};}function _0x4b26c9(){const _0x399ea6=_0x3cee6f;_0x34348d['query']['offset']=(_0x34348d[_0x399ea6(0xae2)]['page']-0x1)*_0x34348d[_0x399ea6(0xae2)][_0x399ea6(0x236)],_0x3dcefa[_0x399ea6(0x22b6)](_0x399ea6(0x1c60))?_0x34348d[_0x399ea6(0x2061)]=_0x181b97[_0x399ea6(0x1ac8)][_0x399ea6(0xbf7)](_0x34348d[_0x399ea6(0xae2)],_0x28b7ed)[_0x399ea6(0x1d77)]:(_0x34348d[_0x399ea6(0xae2)]['id']=_0x34348d[_0x399ea6(0x44a)]['id'],_0x34348d['query'][_0x399ea6(0x1f74)]=_0x399ea6(0xc69),_0x34348d[_0x399ea6(0x2061)]=_0x181b97['userProfile'][_0x399ea6(0x1810)](_0x34348d[_0x399ea6(0xae2)],_0x28b7ed)[_0x399ea6(0x1d77)]);}function _0x607038(_0x22686e,_0x22fb85){const _0x25a10f=_0x3cee6f;_0x3a4365['show']({'controller':_0x25a10f(0x1ff9),'controllerAs':'vm','templateUrl':_0x294674,'parent':angular[_0x25a10f(0x1853)](_0x32c5f5[_0x25a10f(0x1ed9)]),'targetEvent':_0x22686e,'clickOutsideToClose':!![],'locals':{'interval':_0x22fb85,'intervals':_0x34348d['intervals'][_0x25a10f(0x2214)],'license':_0x34348d['license'],'setting':_0x34348d['setting'],'crudPermissions':_0x34348d['crudPermissions']}});}function _0x1b80aa(_0x51b642){const _0x56e5b6=_0x3cee6f;_0x181b97[_0x56e5b6(0x1ac8)][_0x56e5b6(0x111d)]({'id':_0x51b642['id']})[_0x56e5b6(0x1d77)][_0x56e5b6(0x1cb0)](function(){const _0x21f994=_0x56e5b6;_0x39641b()[_0x21f994(0x152a)](_0x34348d[_0x21f994(0xb4a)][_0x21f994(0x2214)],{'id':_0x51b642['id']}),_0x34348d['intervals'][_0x21f994(0x184d)]-=0x1,!_0x34348d[_0x21f994(0xb4a)][_0x21f994(0x2214)]['length']&&_0x34348d['getIntervals'](),_0x825aea[_0x21f994(0x829)]({'title':_0x39641b()[_0x21f994(0xa75)](_0x21f994(0x1d81))+'\x20deleted!','msg':_0x51b642['name']?_0x51b642[_0x21f994(0x16b6)]+_0x21f994(0x3f5):''});})[_0x56e5b6(0x1c4)](function(_0x2c99c8){const _0x1d4453=_0x56e5b6;if(_0x2c99c8[_0x1d4453(0x25c)]&&_0x2c99c8[_0x1d4453(0x25c)][_0x1d4453(0x1a7c)]&&_0x2c99c8[_0x1d4453(0x25c)][_0x1d4453(0x1a7c)]['length']){_0x34348d['errors']=_0x2c99c8['data']['errors']||[{'message':_0x2c99c8[_0x1d4453(0x147f)](),'type':'SYSTEM:DELETEinterval'}];for(let _0x445ac8=0x0;_0x445ac8<_0x2c99c8[_0x1d4453(0x25c)][_0x1d4453(0x1a7c)][_0x1d4453(0xfd0)];_0x445ac8++){_0x825aea[_0x1d4453(0x218e)]({'title':_0x2c99c8[_0x1d4453(0x25c)][_0x1d4453(0x1a7c)][_0x445ac8][_0x1d4453(0x66a)],'msg':_0x2c99c8[_0x1d4453(0x25c)]['errors'][_0x445ac8][_0x1d4453(0x155e)]});}}else _0x825aea[_0x1d4453(0x218e)]({'title':_0x2c99c8[_0x1d4453(0x291)]?_0x1d4453(0xeb9)+_0x2c99c8['status']+_0x1d4453(0x1657)+_0x2c99c8['statusText']:_0x1d4453(0xe7a),'msg':_0x2c99c8['data']?JSON[_0x1d4453(0x2701)](_0x2c99c8['data'][_0x1d4453(0x155e)]):_0x2c99c8[_0x1d4453(0x155e)]||_0x2c99c8['toString']()});});}function _0x13dc53(){const _0x8b888c=_0x3cee6f,_0x3b786a=angular[_0x8b888c(0x17fe)](_0x34348d[_0x8b888c(0x2723)]);return _0x34348d['selectedIntervals']=[],_0x3b786a;}function _0x50077a(_0x547b99){const _0x1eb304=_0x3cee6f,_0x562f5d=_0x3a4365[_0x1eb304(0x1551)]()[_0x1eb304(0x1386)](_0x1eb304(0xc38))[_0x1eb304(0x49e)](_0x1eb304(0x204d)+_0x34348d[_0x1eb304(0x2723)]['length']+'\x20selected'+_0x1eb304(0x1b6))[_0x1eb304(0x15ad)](_0x1eb304(0x1aea))[_0x1eb304(0x728)](_0x547b99)['ok']('OK')[_0x1eb304(0x696)](_0x1eb304(0x24ba));_0x3a4365[_0x1eb304(0xe27)](_0x562f5d)[_0x1eb304(0x1cb0)](function(){const _0x22598d=_0x1eb304;_0x34348d[_0x22598d(0x2723)][_0x22598d(0xf90)](function(_0x36f168){_0x1b80aa(_0x36f168);}),_0x34348d[_0x22598d(0x2723)]=[];});}function _0x177863(){const _0x2d51e4=_0x3cee6f;_0x34348d[_0x2d51e4(0x2723)]=[];}function _0x150849(){const _0x41ee4b=_0x3cee6f;_0x34348d[_0x41ee4b(0x2723)]=_0x34348d[_0x41ee4b(0xb4a)][_0x41ee4b(0x2214)];}}const _0x3620ef=_0x473745;;_0x3cfd65[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state',_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x8de),_0x5537c6(0x785),_0x5537c6(0x142b),'Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x3cfd65(_0xad0022,_0x468b9e,_0x2ed713,_0x1cdb2f,_0x2b2866,_0x428fd2,_0x1d02f0,_0x47504e,_0x33e511,_0xae56f4,_0x28cbf6,_0x165423,_0x43ac86,_0x430757){const _0x314d9c=_0x5537c6,_0x722c84=this;_0x722c84['currentUser']=_0x28cbf6['getCurrentUser'](),_0x722c84[_0x314d9c(0x1a7c)]=[],_0x722c84[_0x314d9c(0x9ca)]=_0x43ac86,_0x722c84[_0x314d9c(0x8a5)]=_0x165423,_0x722c84['crudPermissions']=_0x430757,_0x722c84[_0x314d9c(0xf4c)]={},_0x722c84[_0x314d9c(0x1b0c)]=_0x722c84['setting']&&_0x722c84[_0x314d9c(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x722c84[_0x314d9c(0x1386)]=_0x314d9c(0x247f),_0x722c84[_0x314d9c(0x785)]=angular[_0x314d9c(0x17fe)](_0x33e511),_0x722c84['pauses']=_0x47504e,_0x722c84[_0x314d9c(0x18a)]=![];!_0x722c84[_0x314d9c(0x785)]&&(_0x722c84[_0x314d9c(0x785)]={},_0x722c84['title']=_0x314d9c(0xf99),_0x722c84['newPause']=!![]);_0x722c84[_0x314d9c(0x11cb)]=_0x280dac,_0x722c84[_0x314d9c(0xfc5)]=_0x4eba28,_0x722c84[_0x314d9c(0x17cd)]=_0x5ea8b1,_0x722c84['getDateFromString']=_0xb19feb,_0x722c84[_0x314d9c(0xda0)]=_0x1a1894;function _0x280dac(){const _0x17cd42=_0x314d9c;_0x722c84[_0x17cd42(0x1a7c)]=[],_0xae56f4['pause']['save'](_0x722c84[_0x17cd42(0x785)])[_0x17cd42(0x1d77)][_0x17cd42(0x1cb0)](function(_0x287208){const _0x14ccde=_0x17cd42;_0x722c84[_0x14ccde(0x8de)][_0x14ccde(0xf63)](_0x287208[_0x14ccde(0x19b2)]()),_0x1d02f0[_0x14ccde(0x829)]({'title':_0x14ccde(0x2419),'msg':_0x722c84[_0x14ccde(0x785)][_0x14ccde(0x16b6)]?_0x722c84['pause'][_0x14ccde(0x16b6)]+_0x14ccde(0x470):''}),_0x1a1894(_0x287208);})[_0x17cd42(0x1c4)](function(_0x26c116){const _0x3c2247=_0x17cd42;if(_0x26c116[_0x3c2247(0x25c)]&&_0x26c116[_0x3c2247(0x25c)][_0x3c2247(0x1a7c)]&&_0x26c116[_0x3c2247(0x25c)][_0x3c2247(0x1a7c)][_0x3c2247(0xfd0)]){_0x722c84[_0x3c2247(0x1a7c)]=_0x26c116['data'][_0x3c2247(0x1a7c)]||[{'message':_0x26c116[_0x3c2247(0x147f)](),'type':_0x3c2247(0x1963)}];for(let _0x5c8ee5=0x0;_0x5c8ee5<_0x26c116[_0x3c2247(0x25c)][_0x3c2247(0x1a7c)][_0x3c2247(0xfd0)];_0x5c8ee5+=0x1){_0x1d02f0[_0x3c2247(0x218e)]({'title':_0x26c116[_0x3c2247(0x25c)][_0x3c2247(0x1a7c)][_0x5c8ee5][_0x3c2247(0x66a)],'msg':_0x26c116[_0x3c2247(0x25c)][_0x3c2247(0x1a7c)][_0x5c8ee5][_0x3c2247(0x155e)]});}}else _0x1d02f0[_0x3c2247(0x218e)]({'title':_0x26c116[_0x3c2247(0x291)]?_0x3c2247(0xeb9)+_0x26c116[_0x3c2247(0x291)]+_0x3c2247(0x1657)+_0x26c116[_0x3c2247(0xc22)]:_0x3c2247(0x1963),'msg':_0x26c116[_0x3c2247(0x25c)]?JSON['stringify'](_0x26c116[_0x3c2247(0x25c)][_0x3c2247(0x155e)]):_0x26c116[_0x3c2247(0x147f)]()});});}function _0x4eba28(){const _0x1329fd=_0x314d9c;_0x722c84[_0x1329fd(0x1a7c)]=[],_0xae56f4[_0x1329fd(0x785)][_0x1329fd(0x687)]({'id':_0x722c84[_0x1329fd(0x785)]['id']},_0x722c84['pause'])[_0x1329fd(0x1d77)][_0x1329fd(0x1cb0)](function(_0x514c34){const _0x50b5bd=_0x1329fd,_0x540879=_0x39641b()[_0x50b5bd(0x13b4)](_0x722c84['pauses'],{'id':_0x514c34['id']});_0x540879&&_0x39641b()['merge'](_0x540879,_0x39641b()[_0x50b5bd(0x169b)](_0x514c34['toJSON'](),_0x39641b()['keys'](_0x540879))),_0x1d02f0[_0x50b5bd(0x829)]({'title':_0x50b5bd(0x16f9),'msg':_0x722c84[_0x50b5bd(0x785)][_0x50b5bd(0x16b6)]?_0x722c84[_0x50b5bd(0x785)][_0x50b5bd(0x16b6)]+_0x50b5bd(0xedb):''}),_0x1a1894(_0x514c34);})['catch'](function(_0x293d00){const _0x18b4ff=_0x1329fd;if(_0x293d00[_0x18b4ff(0x25c)]&&_0x293d00['data'][_0x18b4ff(0x1a7c)]&&_0x293d00[_0x18b4ff(0x25c)][_0x18b4ff(0x1a7c)][_0x18b4ff(0xfd0)]){_0x722c84[_0x18b4ff(0x1a7c)]=_0x293d00[_0x18b4ff(0x25c)]['errors']||[{'message':_0x293d00[_0x18b4ff(0x147f)](),'type':_0x18b4ff(0x2879)}];for(let _0x14f72c=0x0;_0x14f72c<_0x293d00['data']['errors']['length'];_0x14f72c++){_0x1d02f0[_0x18b4ff(0x218e)]({'title':_0x293d00[_0x18b4ff(0x25c)][_0x18b4ff(0x1a7c)][_0x14f72c][_0x18b4ff(0x66a)],'msg':_0x293d00[_0x18b4ff(0x25c)][_0x18b4ff(0x1a7c)][_0x14f72c][_0x18b4ff(0x155e)]});}}else _0x1d02f0[_0x18b4ff(0x218e)]({'title':_0x293d00[_0x18b4ff(0x291)]?_0x18b4ff(0xeb9)+_0x293d00[_0x18b4ff(0x291)]+'\x20-\x20'+_0x293d00['statusText']:_0x18b4ff(0x2879),'msg':_0x293d00['data']?JSON['stringify'](_0x293d00[_0x18b4ff(0x25c)][_0x18b4ff(0x155e)]):_0x293d00[_0x18b4ff(0x147f)]()});});}function _0x5ea8b1(_0x2b71a9){const _0x22f26e=_0x314d9c;_0x722c84[_0x22f26e(0x1a7c)]=[];const _0xc210e6=_0x1cdb2f[_0x22f26e(0x1551)]()['title']('Are\x20you\x20sure?')[_0x22f26e(0x862)](_0x22f26e(0x16f1))[_0x22f26e(0x15ad)](_0x22f26e(0x18c2))['ok'](_0x22f26e(0x2594))['cancel'](_0x22f26e(0xde1))[_0x22f26e(0x728)](_0x2b71a9);_0x1cdb2f[_0x22f26e(0xe27)](_0xc210e6)[_0x22f26e(0x1cb0)](function(){const _0x35f773=_0x22f26e;_0xae56f4[_0x35f773(0x785)][_0x35f773(0x111d)]({'id':_0x722c84[_0x35f773(0x785)]['id']})[_0x35f773(0x1d77)][_0x35f773(0x1cb0)](function(){const _0x5a3dcf=_0x35f773;_0x39641b()[_0x5a3dcf(0x152a)](_0x722c84[_0x5a3dcf(0x8de)],{'id':_0x722c84['pause']['id']}),_0x1d02f0['success']({'title':_0x5a3dcf(0x11ed),'msg':(_0x722c84[_0x5a3dcf(0x785)][_0x5a3dcf(0x16b6)]||_0x5a3dcf(0x785))+_0x5a3dcf(0x3f5)}),_0x1a1894(_0x722c84[_0x5a3dcf(0x785)]);})[_0x35f773(0x1c4)](function(_0x55b23b){const _0x55db71=_0x35f773;if(_0x55b23b[_0x55db71(0x25c)]&&_0x55b23b[_0x55db71(0x25c)]['errors']&&_0x55b23b['data']['errors'][_0x55db71(0xfd0)]){_0x722c84['errors']=_0x55b23b[_0x55db71(0x25c)][_0x55db71(0x1a7c)]||[{'message':_0x55b23b[_0x55db71(0x147f)](),'type':_0x55db71(0x18d1)}];for(let _0x42e622=0x0;_0x42e622<_0x55b23b[_0x55db71(0x25c)][_0x55db71(0x1a7c)]['length'];_0x42e622++){_0x1d02f0[_0x55db71(0x218e)]({'title':_0x55b23b[_0x55db71(0x25c)][_0x55db71(0x1a7c)][_0x42e622][_0x55db71(0x66a)],'msg':_0x55b23b[_0x55db71(0x25c)][_0x55db71(0x1a7c)][_0x42e622][_0x55db71(0x155e)]});}}else _0x1d02f0[_0x55db71(0x218e)]({'title':_0x55b23b[_0x55db71(0x291)]?_0x55db71(0xeb9)+_0x55b23b[_0x55db71(0x291)]+_0x55db71(0x1657)+_0x55b23b[_0x55db71(0xc22)]:_0x55db71(0x18d1),'msg':_0x55b23b[_0x55db71(0x25c)]?JSON[_0x55db71(0x2701)](_0x55b23b[_0x55db71(0x25c)]['message']):_0x55b23b[_0x55db71(0x155e)]||_0x55b23b[_0x55db71(0x147f)]()});});},function(){});}function _0xb19feb(_0x1873e6){return _0x1873e6===null?undefined:new Date(_0x1873e6);}function _0x1a1894(_0x134650){_0x1cdb2f['hide'](_0x134650);}}const _0x9fd33f=_0x3cfd65;;const _0x5efada=_0x5074a3['p']+_0x5537c6(0x1641);;_0x2ac0dd[_0x5537c6(0x15b6)]=['$scope','$window','$state',_0x5537c6(0x417),'$mdDialog',_0x5537c6(0x22bf),'$timeout','$translate','pauses','userProfile',_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x2ac0dd(_0x156086,_0x23d675,_0x534791,_0x9c20b7,_0x1384fd,_0x3f8893,_0x34e7cd,_0x52299d,_0x274866,_0x189aba,_0xc1569c,_0x17c838,_0x36ff49,_0x1e57e4,_0x55939d,_0x2ffe57,_0xf49dd7){const _0x48526e=_0x5537c6,_0x357d79=this;_0x357d79[_0x48526e(0x8a5)]=_0x2ffe57,_0x357d79[_0x48526e(0x9ca)]=_0xf49dd7,_0x357d79['currentUser']=_0x55939d[_0x48526e(0x21e8)](),_0x357d79[_0x48526e(0x8de)]=_0x274866||{'count':0x0,'rows':[]},_0x357d79[_0x48526e(0x44a)]=_0x189aba,_0x357d79['userProfileSection']=_0xc1569c&&_0xc1569c['count']==0x1?_0xc1569c[_0x48526e(0x2214)][0x0]:null,_0x357d79[_0x48526e(0x1b1a)]=_0x55939d['parseCrudPermissions'](_0x357d79[_0x48526e(0x2199)]?_0x357d79[_0x48526e(0x2199)][_0x48526e(0x1b1a)]:null),_0x357d79[_0x48526e(0xc83)]=_0x48526e(0x8de),_0x357d79[_0x48526e(0x1d20)]='',_0x357d79[_0x48526e(0x1cdf)]=null,_0x357d79[_0x48526e(0x1b07)]=[],_0x357d79[_0x48526e(0xae2)]={'fields':'createdAt,updatedAt,id,name,description','sort':_0x48526e(0x282),'limit':0xa,'page':0x1},_0x357d79[_0x48526e(0xc93)]=_0x4f720e,_0x357d79['deleteconfirm']=_0x3820e5,_0x357d79[_0x48526e(0x829)]=_0x407c75,_0x357d79[_0x48526e(0xf4b)]=_0x25cceb,_0x357d79['createOrEditPause']=_0x315f70,_0x357d79[_0x48526e(0x17cd)]=_0x6bf133,_0x357d79['exportSelectedPauses']=_0x4a0bea,_0x357d79['deleteSelectedPauses']=_0x32f286,_0x357d79[_0x48526e(0xdb0)]=_0x3465a1,_0x357d79[_0x48526e(0x111c)]=_0x2e4604;function _0x4f720e(_0x2e03e7,_0x3dc977){const _0x17a394=_0x48526e;_0x1384fd[_0x17a394(0xe27)]({'controller':'CreateOrEditPauseDialogController','controllerAs':'vm','templateUrl':_0x5efada,'parent':angular[_0x17a394(0x1853)](_0x3f8893[_0x17a394(0x1ed9)]),'targetEvent':_0x3dc977,'clickOutsideToClose':!![],'locals':{'pause':_0x2e03e7,'pauses':_0x357d79[_0x17a394(0x8de)][_0x17a394(0x2214)],'license':_0x357d79[_0x17a394(0x8a5)],'setting':null,'crudPermissions':_0x357d79[_0x17a394(0x1b1a)]}});}function _0x3820e5(_0x32be58,_0x2b6a23){const _0x1cf243=_0x48526e,_0x20e95b=_0x1384fd[_0x1cf243(0x1551)]()['title'](_0x1cf243(0x140b)+_0x39641b()[_0x1cf243(0xa75)]('pause')+'?')[_0x1cf243(0x49e)](''+(_0x32be58[_0x1cf243(0x16b6)]||_0x1cf243(0x785))+_0x1cf243(0x1200)+_0x1cf243(0x1b6))['ariaLabel'](_0x1cf243(0x2088))['targetEvent'](_0x2b6a23)['ok']('OK')[_0x1cf243(0x696)]('CANCEL');_0x1384fd['show'](_0x20e95b)[_0x1cf243(0x1cb0)](function(){_0x6bf133(_0x32be58);},function(){const _0x15a212=_0x1cf243;console[_0x15a212(0x1b4f)](_0x15a212(0x24ba));});}let _0x14c81b=!![],_0x4e200f=0x1;_0x156086['$watch'](_0x48526e(0x957),function(_0x135f01,_0xb7352a){const _0x55d359=_0x48526e;_0x14c81b?_0x34e7cd(function(){_0x14c81b=![];}):(!_0xb7352a&&(_0x4e200f=_0x357d79[_0x55d359(0xae2)]['page']),_0x135f01!==_0xb7352a&&(_0x357d79[_0x55d359(0xae2)][_0x55d359(0x1c7b)]=0x1),!_0x135f01&&(_0x357d79[_0x55d359(0xae2)][_0x55d359(0x1c7b)]=_0x4e200f),_0x357d79['getPauses']());});function _0x407c75(_0x5de8c3){const _0x28e298=_0x48526e;_0x357d79[_0x28e298(0x8de)]=_0x5de8c3||{'count':0x0,'rows':[]};}function _0x25cceb(){const _0x3fcc4a=_0x48526e;_0x357d79[_0x3fcc4a(0xae2)][_0x3fcc4a(0x184b)]=(_0x357d79[_0x3fcc4a(0xae2)][_0x3fcc4a(0x1c7b)]-0x1)*_0x357d79[_0x3fcc4a(0xae2)][_0x3fcc4a(0x236)],_0x55939d[_0x3fcc4a(0x22b6)]('admin')?_0x357d79[_0x3fcc4a(0x2061)]=_0x17c838[_0x3fcc4a(0x785)][_0x3fcc4a(0xbf7)](_0x357d79['query'],_0x407c75)[_0x3fcc4a(0x1d77)]:(_0x357d79[_0x3fcc4a(0xae2)]['id']=_0x357d79[_0x3fcc4a(0x44a)]['id'],_0x357d79[_0x3fcc4a(0xae2)][_0x3fcc4a(0x1f74)]='Pauses',_0x357d79[_0x3fcc4a(0x2061)]=_0x17c838[_0x3fcc4a(0x44a)][_0x3fcc4a(0x1810)](_0x357d79[_0x3fcc4a(0xae2)],_0x407c75)['$promise']);}function _0x315f70(_0x34a3a6,_0x1353fb){const _0xb2553e=_0x48526e;_0x1384fd[_0xb2553e(0xe27)]({'controller':_0xb2553e(0x1249),'controllerAs':'vm','templateUrl':_0x5efada,'parent':angular[_0xb2553e(0x1853)](_0x3f8893[_0xb2553e(0x1ed9)]),'targetEvent':_0x34a3a6,'clickOutsideToClose':!![],'locals':{'pause':_0x1353fb,'pauses':_0x357d79['pauses'][_0xb2553e(0x2214)],'license':_0x357d79[_0xb2553e(0x8a5)],'setting':_0x357d79[_0xb2553e(0x9ca)],'crudPermissions':_0x357d79['crudPermissions']}});}function _0x6bf133(_0x5376d7){const _0x509f67=_0x48526e;_0x17c838[_0x509f67(0x785)][_0x509f67(0x111d)]({'id':_0x5376d7['id']})[_0x509f67(0x1d77)][_0x509f67(0x1cb0)](function(){const _0x178793=_0x509f67;_0x39641b()['remove'](_0x357d79[_0x178793(0x8de)][_0x178793(0x2214)],{'id':_0x5376d7['id']}),_0x357d79[_0x178793(0x8de)]['count']-=0x1,!_0x357d79[_0x178793(0x8de)][_0x178793(0x2214)][_0x178793(0xfd0)]&&_0x357d79[_0x178793(0xf4b)](),_0x1e57e4[_0x178793(0x829)]({'title':_0x39641b()[_0x178793(0xa75)]('Pause')+_0x178793(0x2663),'msg':_0x5376d7[_0x178793(0x16b6)]?_0x5376d7[_0x178793(0x16b6)]+_0x178793(0x3f5):''});})[_0x509f67(0x1c4)](function(_0x34a226){const _0x404153=_0x509f67;if(_0x34a226['data']&&_0x34a226[_0x404153(0x25c)][_0x404153(0x1a7c)]&&_0x34a226[_0x404153(0x25c)][_0x404153(0x1a7c)][_0x404153(0xfd0)]){_0x357d79[_0x404153(0x1a7c)]=_0x34a226[_0x404153(0x25c)][_0x404153(0x1a7c)]||[{'message':_0x34a226[_0x404153(0x147f)](),'type':_0x404153(0x724)}];for(let _0xf1b276=0x0;_0xf1b276<_0x34a226['data'][_0x404153(0x1a7c)][_0x404153(0xfd0)];_0xf1b276++){_0x1e57e4[_0x404153(0x218e)]({'title':_0x34a226[_0x404153(0x25c)]['errors'][_0xf1b276][_0x404153(0x66a)],'msg':_0x34a226[_0x404153(0x25c)][_0x404153(0x1a7c)][_0xf1b276][_0x404153(0x155e)]});}}else _0x1e57e4['error']({'title':_0x34a226[_0x404153(0x291)]?_0x404153(0xeb9)+_0x34a226[_0x404153(0x291)]+'\x20-\x20'+_0x34a226[_0x404153(0xc22)]:_0x404153(0x724),'msg':_0x34a226[_0x404153(0x25c)]?JSON['stringify'](_0x34a226['data'][_0x404153(0x155e)]):_0x34a226[_0x404153(0x155e)]||_0x34a226['toString']()});});}function _0x4a0bea(){const _0x33863c=_0x48526e,_0x552aaf=angular['copy'](_0x357d79['selectedPauses']);return _0x357d79[_0x33863c(0x1b07)]=[],_0x552aaf;}function _0x32f286(_0x256645){const _0x53652a=_0x48526e,_0x1389f5=_0x1384fd['confirm']()['title'](_0x53652a(0x2853))[_0x53652a(0x49e)](''+_0x357d79[_0x53652a(0x1b07)]['length']+_0x53652a(0x1d6c)+_0x53652a(0x1b6))['ariaLabel'](_0x53652a(0x11c7))[_0x53652a(0x728)](_0x256645)['ok']('OK')['cancel']('CANCEL');_0x1384fd[_0x53652a(0xe27)](_0x1389f5)['then'](function(){const _0x1eaeba=_0x53652a;_0x357d79[_0x1eaeba(0x1b07)][_0x1eaeba(0xf90)](function(_0x2368d7){_0x6bf133(_0x2368d7);}),_0x357d79['selectedPauses']=[];});}function _0x3465a1(){const _0x1e716a=_0x48526e;_0x357d79[_0x1e716a(0x1b07)]=[];}function _0x2e4604(){const _0x4d80f2=_0x48526e;_0x357d79['selectedPauses']=_0x357d79[_0x4d80f2(0x8de)][_0x4d80f2(0x2214)];}}const _0x1af04b=_0x2ac0dd;;const _0x547e02=_0x5074a3['p']+_0x5537c6(0x314);;_0x6a9fe6['$inject']=['$scope',_0x5537c6(0x406),'$location',_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x1a22),_0x5537c6(0x263c),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x6a9fe6(_0x31cd6d,_0x5b5bce,_0x262941,_0x1754b1,_0x28a1e4,_0x4c372b,_0x43c966,_0x948617,_0x5da345,_0x5c31f7,_0x57a2d8,_0x3e6bd7,_0xb131fb,_0x3613f8){const _0x272c46=_0x5537c6,_0x2069cc=this;_0x2069cc[_0x272c46(0xe76)]=_0x57a2d8[_0x272c46(0x21e8)](),_0x2069cc[_0x272c46(0x1a7c)]=[],_0x2069cc[_0x272c46(0x9ca)]=_0xb131fb,_0x2069cc[_0x272c46(0x8a5)]=_0x3e6bd7,_0x2069cc['crudPermissions']=_0x3613f8,_0x2069cc[_0x272c46(0xf4c)]={},_0x2069cc[_0x272c46(0x1b0c)]=_0x2069cc[_0x272c46(0x9ca)]&&_0x2069cc[_0x272c46(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2069cc[_0x272c46(0x1386)]='TOOLS.EDIT_SCHEDULE',_0x2069cc[_0x272c46(0x263c)]=angular[_0x272c46(0x17fe)](_0x5da345),_0x2069cc[_0x272c46(0x1a22)]=_0x948617,_0x2069cc[_0x272c46(0xd14)]=![],_0x2069cc[_0x272c46(0x11b6)]=[],_0x2069cc['query']={'fields':'createdAt,updatedAt,id,name,description,table,parent,conditions,joins','limit':0xa,'page':0x1,'sort':'-updatedAt'};if(!_0x2069cc[_0x272c46(0x263c)])_0x2069cc['schedule']={'output':_0x272c46(0x189d),'active':!![],'startAt':new Date(),'endAt':new Date(Date['now']()+0x1e*0x18*0x3c*0x3c*0x3e8),'cron':_0x272c46(0x1d19),'subtractNumber':0x1,'subtractUnit':_0x272c46(0x23b3),'sendMail':![],'sendIfEmpty':!![]},_0x2069cc['title']=_0x272c46(0x9d2),_0x2069cc['newSchedule']=!![];else{_0x2069cc[_0x272c46(0x217d)]=_0x2069cc['schedule'][_0x272c46(0x22a0)]?_0x272c46(0x1f0c):_0x272c46(0x1e32);const _0x2b319b=_0x2069cc[_0x272c46(0x263c)][_0x272c46(0x22a0)]?_0x2069cc[_0x272c46(0x263c)][_0x272c46(0x22a0)]:_0x2069cc[_0x272c46(0x263c)]['CustomReportId'];_0x5c31f7[_0x2069cc['apiName']][_0x272c46(0xbf7)]({'fields':_0x272c46(0x1cfc)})[_0x272c46(0x1d77)]['then'](function(_0x3e66e5){const _0x3652f8=_0x272c46;_0x2069cc[_0x3652f8(0x12df)]=_0x39641b()[_0x3652f8(0x13b4)](_0x3e66e5[_0x3652f8(0x2214)],{'id':_0x2b319b}),_0x2069cc['schedule'][_0x3652f8(0x16bf)]=_0x2069cc[_0x3652f8(0x12df)][_0x3652f8(0x16b6)],_0x2069cc[_0x3652f8(0xae2)]['parent']=_0x2069cc[_0x3652f8(0x12df)][_0x3652f8(0xbfb)];});}_0x2069cc[_0x272c46(0x1468)]=_0x2aef32,_0x2069cc[_0x272c46(0x2657)]=_0x545ab6,_0x2069cc[_0x272c46(0xb48)]=_0x53bc57,_0x2069cc[_0x272c46(0x2c4)]=_0x37026b,_0x2069cc[_0x272c46(0x903)]=_0xf27ffa,_0x2069cc[_0x272c46(0x109e)]=_0x323fa3,_0x2069cc[_0x272c46(0x1137)]=_0x2fee2b,_0x2069cc[_0x272c46(0x21ac)]=_0x5aac31,_0x2069cc[_0x272c46(0xda0)]=_0xc31373,_0x5c31f7['analyticTreeReport'][_0x272c46(0xbf7)]({})['$promise'][_0x272c46(0x1cb0)](function(_0xa792ec){const _0x5d003b=_0x272c46;_0x2069cc[_0x5d003b(0x1871)]=_0xa792ec['rows']||[];})[_0x272c46(0x1c4)](function(_0x16f88a){const _0x3d61c2=_0x272c46;_0x43c966[_0x3d61c2(0x218e)]({'title':_0x16f88a[_0x3d61c2(0x291)]?_0x3d61c2(0xeb9)+_0x16f88a[_0x3d61c2(0x291)]+_0x3d61c2(0x1657)+_0x16f88a[_0x3d61c2(0xc22)]:_0x3d61c2(0x269e),'msg':_0x16f88a[_0x3d61c2(0x25c)]?JSON[_0x3d61c2(0x2701)](_0x16f88a[_0x3d61c2(0x25c)]):_0x16f88a[_0x3d61c2(0x147f)]()});}),_0x57a2d8[_0x272c46(0x22b6)]('admin')?_0x5c31f7['mailAccount'][_0x272c46(0xbf7)]({'fields':_0x272c46(0x43c),'sort':_0x272c46(0x16b6)})[_0x272c46(0x1d77)]['then'](function(_0xbea9f2){const _0x26a5ec=_0x272c46;_0x2069cc[_0x26a5ec(0x228e)]=_0xbea9f2['rows']||[];})[_0x272c46(0x1c4)](function(_0x5cc8dd){const _0x15bd65=_0x272c46;_0x43c966[_0x15bd65(0x218e)]({'title':_0x5cc8dd[_0x15bd65(0x291)]?'API:'+_0x5cc8dd[_0x15bd65(0x291)]+'\x20-\x20'+_0x5cc8dd[_0x15bd65(0xc22)]:_0x15bd65(0x3d7),'msg':_0x5cc8dd['data']?JSON['stringify'](_0x5cc8dd[_0x15bd65(0x25c)]):_0x5cc8dd['toString']()});}):_0x5c31f7[_0x272c46(0x131c)][_0x272c46(0xbf7)]({'fields':'id,name','sort':_0x272c46(0x16b6)})[_0x272c46(0x1d77)]['then'](function(_0x5ac954){const _0x3435a1=_0x272c46;_0x2069cc['mailAccounts']=_0x5ac954[_0x3435a1(0x2214)]||[];})[_0x272c46(0x1cb0)](function(){const _0x5b0ffb=_0x272c46;return _0x5c31f7[_0x5b0ffb(0x2199)][_0x5b0ffb(0xbf7)]({'userProfileId':_0x2069cc['currentUser'][_0x5b0ffb(0x13c1)],'sectionId':0x25a})['$promise'];})[_0x272c46(0x1cb0)](function(_0x428966){const _0x419b5b=_0x272c46,_0x56d909=_0x428966&&_0x428966[_0x419b5b(0x2214)]?_0x428966['rows'][0x0]:null;if(!_0x56d909){const _0x5dc1b2=[];let _0x55cf63=null;_0x2069cc[_0x419b5b(0x263c)]&&(_0x55cf63=_0x39641b()[_0x419b5b(0x13b4)](_0x2069cc[_0x419b5b(0x228e)],{'id':Number(_0x2069cc[_0x419b5b(0x263c)][_0x419b5b(0x1285)])}));for(let _0x2b9edd=0x0;_0x2b9edd<_0x2069cc['mailAccounts']['length'];_0x2b9edd++){_0x55cf63&&_0x2069cc['mailAccounts'][_0x2b9edd]['id']===_0x55cf63['id']&&(_0x2069cc[_0x419b5b(0x228e)][_0x2b9edd][_0x419b5b(0x15da)]=![],_0x5dc1b2[_0x419b5b(0x2785)](_0x2069cc[_0x419b5b(0x228e)][_0x2b9edd]));}_0x2069cc[_0x419b5b(0x228e)]=_0x5dc1b2;}else{if(!_0x56d909[_0x419b5b(0x12f4)])return _0x5c31f7[_0x419b5b(0x1198)][_0x419b5b(0xbf7)]({'sectionId':_0x56d909['id']})['$promise']['then'](function(_0x2e6e2d){const _0x852433=_0x419b5b,_0x41952c=_0x39641b()[_0x852433(0x1de2)](_0x2e6e2d['rows'],function(_0x381214){const _0x4d0bb0=_0x852433;return _0x39641b()['find'](_0x2069cc[_0x4d0bb0(0x228e)],{'id':_0x381214[_0x4d0bb0(0x2982)]});});let _0x1ac653=null;_0x2069cc[_0x852433(0x263c)]&&(_0x1ac653=_0x39641b()[_0x852433(0x13b4)](_0x2069cc['mailAccounts'],{'id':Number(_0x2069cc[_0x852433(0x263c)][_0x852433(0x1285)])}));if(_0x1ac653&&!_0x39641b()[_0x852433(0x727)](_0x41952c,['id',_0x1ac653['id']])){const _0x5789a8=_0x39641b()['find'](_0x2069cc[_0x852433(0x228e)],{'id':_0x1ac653['id']});_0x5789a8['canSelect']=![],_0x41952c[_0x852433(0x2785)](_0x5789a8);}_0x2069cc[_0x852433(0x228e)]=_0x41952c;});}})[_0x272c46(0x1c4)](function(_0x4ab705){const _0x104a8e=_0x272c46;_0x43c966['error']({'title':_0x4ab705[_0x104a8e(0x291)]?_0x104a8e(0xeb9)+_0x4ab705['status']+_0x104a8e(0x1657)+_0x4ab705['statusText']:'SYSTEM:GETmailAccounts','msg':_0x4ab705[_0x104a8e(0x25c)]?JSON[_0x104a8e(0x2701)](_0x4ab705[_0x104a8e(0x25c)]):_0x4ab705[_0x104a8e(0x147f)]()});});function _0x2aef32(){const _0x162d79=_0x272c46;_0x2069cc[_0x162d79(0x1a7c)]=[],_0x5c31f7[_0x162d79(0x263c)]['save'](_0x2069cc[_0x162d79(0x263c)])[_0x162d79(0x1d77)][_0x162d79(0x1cb0)](function(_0x1b4264){const _0x1a2afc=_0x162d79;_0x2069cc[_0x1a2afc(0x1a22)][_0x1a2afc(0xf63)](_0x1b4264[_0x1a2afc(0x19b2)]()),_0x43c966['success']({'title':_0x1a2afc(0x24c),'msg':_0x2069cc[_0x1a2afc(0x263c)][_0x1a2afc(0x16b6)]?_0x2069cc[_0x1a2afc(0x263c)][_0x1a2afc(0x16b6)]+'\x20has\x20been\x20created!':''}),_0xc31373(_0x1b4264);})[_0x162d79(0x1c4)](function(_0x4af391){const _0x227870=_0x162d79;if(_0x4af391[_0x227870(0x25c)]&&_0x4af391['data'][_0x227870(0x1a7c)]&&_0x4af391['data'][_0x227870(0x1a7c)][_0x227870(0xfd0)]){_0x2069cc[_0x227870(0x1a7c)]=_0x4af391[_0x227870(0x25c)][_0x227870(0x1a7c)]||[{'message':_0x4af391[_0x227870(0x147f)](),'type':_0x227870(0x345)}];for(let _0x8fe786=0x0;_0x8fe786<_0x4af391[_0x227870(0x25c)][_0x227870(0x1a7c)][_0x227870(0xfd0)];_0x8fe786+=0x1){_0x43c966[_0x227870(0x218e)]({'title':_0x4af391[_0x227870(0x25c)]['errors'][_0x8fe786][_0x227870(0x66a)],'msg':_0x4af391['data'][_0x227870(0x1a7c)][_0x8fe786][_0x227870(0x155e)]});}}else _0x43c966['error']({'title':_0x4af391[_0x227870(0x291)]?_0x227870(0xeb9)+_0x4af391[_0x227870(0x291)]+_0x227870(0x1657)+_0x4af391['statusText']:_0x227870(0x345),'msg':_0x4af391['data']?JSON[_0x227870(0x2701)](_0x4af391[_0x227870(0x25c)]['message']):_0x4af391[_0x227870(0x147f)]()});});}function _0x545ab6(){const _0x4493cb=_0x272c46;_0x2069cc[_0x4493cb(0x1a7c)]=[],_0x5c31f7[_0x4493cb(0x263c)]['update']({'id':_0x2069cc[_0x4493cb(0x263c)]['id']},_0x2069cc[_0x4493cb(0x263c)])['$promise'][_0x4493cb(0x1cb0)](function(_0x147f37){const _0x120c6c=_0x4493cb,_0x55d8c2=_0x39641b()[_0x120c6c(0x13b4)](_0x2069cc['schedules'],{'id':_0x147f37['id']});_0x55d8c2&&_0x39641b()[_0x120c6c(0x9c1)](_0x55d8c2,_0x39641b()[_0x120c6c(0x169b)](_0x147f37[_0x120c6c(0x19b2)](),_0x39641b()[_0x120c6c(0x1be5)](_0x55d8c2))),_0x43c966['success']({'title':_0x120c6c(0x1d0),'msg':_0x2069cc[_0x120c6c(0x263c)][_0x120c6c(0x16b6)]?_0x2069cc[_0x120c6c(0x263c)][_0x120c6c(0x16b6)]+_0x120c6c(0xedb):''}),_0xc31373(_0x147f37);})[_0x4493cb(0x1c4)](function(_0x4d4f66){const _0x19ba1d=_0x4493cb;if(_0x4d4f66[_0x19ba1d(0x25c)]&&_0x4d4f66[_0x19ba1d(0x25c)][_0x19ba1d(0x1a7c)]&&_0x4d4f66[_0x19ba1d(0x25c)]['errors'][_0x19ba1d(0xfd0)]){_0x2069cc[_0x19ba1d(0x1a7c)]=_0x4d4f66[_0x19ba1d(0x25c)][_0x19ba1d(0x1a7c)]||[{'message':_0x4d4f66[_0x19ba1d(0x147f)](),'type':_0x19ba1d(0x1777)}];for(let _0x46e317=0x0;_0x46e317<_0x4d4f66[_0x19ba1d(0x25c)][_0x19ba1d(0x1a7c)][_0x19ba1d(0xfd0)];_0x46e317++){_0x43c966[_0x19ba1d(0x218e)]({'title':_0x4d4f66[_0x19ba1d(0x25c)]['errors'][_0x46e317][_0x19ba1d(0x66a)],'msg':_0x4d4f66[_0x19ba1d(0x25c)][_0x19ba1d(0x1a7c)][_0x46e317]['message']});}}else _0x43c966['error']({'title':_0x4d4f66['status']?'API:'+_0x4d4f66[_0x19ba1d(0x291)]+_0x19ba1d(0x1657)+_0x4d4f66[_0x19ba1d(0xc22)]:_0x19ba1d(0x1777),'msg':_0x4d4f66[_0x19ba1d(0x25c)]?JSON['stringify'](_0x4d4f66[_0x19ba1d(0x25c)][_0x19ba1d(0x155e)]):_0x4d4f66[_0x19ba1d(0x147f)]()});});}function _0x53bc57(_0x2d0e3d){const _0x3d460e=_0x272c46;_0x2069cc[_0x3d460e(0x1a7c)]=[];const _0x50629e=_0x1754b1['confirm']()[_0x3d460e(0x1386)]('Are\x20you\x20sure?')[_0x3d460e(0x862)]('The\x20schedule\x20will\x20be\x20deleted.')[_0x3d460e(0x15ad)]('Delete\x20Schedule')['ok'](_0x3d460e(0x2594))[_0x3d460e(0x696)](_0x3d460e(0xde1))[_0x3d460e(0x728)](_0x2d0e3d);_0x1754b1['show'](_0x50629e)['then'](function(){const _0x1dd2d7=_0x3d460e;_0x5c31f7['schedule'][_0x1dd2d7(0x111d)]({'id':_0x2069cc[_0x1dd2d7(0x263c)]['id']})['$promise'][_0x1dd2d7(0x1cb0)](function(){const _0x1787ec=_0x1dd2d7;_0x39641b()['remove'](_0x2069cc[_0x1787ec(0x1a22)],{'id':_0x2069cc['schedule']['id']}),_0x43c966[_0x1787ec(0x829)]({'title':_0x1787ec(0x1932),'msg':(_0x2069cc[_0x1787ec(0x263c)]['name']||_0x1787ec(0x263c))+'\x20has\x20been\x20deleted!'}),_0xc31373(_0x2069cc['schedule']);})[_0x1dd2d7(0x1c4)](function(_0x3c6a56){const _0x521020=_0x1dd2d7;if(_0x3c6a56[_0x521020(0x25c)]&&_0x3c6a56['data'][_0x521020(0x1a7c)]&&_0x3c6a56['data'][_0x521020(0x1a7c)][_0x521020(0xfd0)]){_0x2069cc['errors']=_0x3c6a56[_0x521020(0x25c)][_0x521020(0x1a7c)]||[{'message':_0x3c6a56['toString'](),'type':_0x521020(0x1509)}];for(let _0x14ddd6=0x0;_0x14ddd6<_0x3c6a56[_0x521020(0x25c)][_0x521020(0x1a7c)][_0x521020(0xfd0)];_0x14ddd6++){_0x43c966[_0x521020(0x218e)]({'title':_0x3c6a56[_0x521020(0x25c)][_0x521020(0x1a7c)][_0x14ddd6][_0x521020(0x66a)],'msg':_0x3c6a56[_0x521020(0x25c)][_0x521020(0x1a7c)][_0x14ddd6][_0x521020(0x155e)]});}}else _0x43c966[_0x521020(0x218e)]({'title':_0x3c6a56[_0x521020(0x291)]?'API:'+_0x3c6a56['status']+_0x521020(0x1657)+_0x3c6a56[_0x521020(0xc22)]:_0x521020(0x1509),'msg':_0x3c6a56[_0x521020(0x25c)]?JSON[_0x521020(0x2701)](_0x3c6a56['data'][_0x521020(0x155e)]):_0x3c6a56[_0x521020(0x155e)]||_0x3c6a56['toString']()});});},function(){});}function _0x229af5(){const _0xe83a1=_0x272c46,_0x407e6d={'core':{'multiple':![],'animation':!![],'error':function(_0x418f43){const _0x1ae245=a0_0x5cbd;console[_0x1ae245(0x218e)](_0x1ae245(0x2859)+angular[_0x1ae245(0x393)](_0x418f43));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0xe83a1(0x522)]};return _0x2069cc[_0xe83a1(0xe76)][_0xe83a1(0x26e6)]!==_0xe83a1(0x1c60)?_0x5c31f7[_0xe83a1(0x2199)][_0xe83a1(0xbf7)]({'fields':_0xe83a1(0x1f5f),'userProfileId':_0x2069cc[_0xe83a1(0xe76)][_0xe83a1(0x13c1)],'sectionId':0x4b3})['$promise'][_0xe83a1(0x1cb0)](function(_0x343839){const _0x45e408=_0xe83a1;return _0x2069cc['userProfileSection']=_0x343839&&_0x343839[_0x45e408(0x184d)]==0x1?_0x343839[_0x45e408(0x2214)][0x0]:null,_0x407e6d;})[_0xe83a1(0x1c4)](function(_0x1bf750){const _0x57af63=_0xe83a1;_0x43c966[_0x57af63(0x218e)]({'title':'ERROR','msg':_0x1bf750[_0x57af63(0x155e)]});}):_0x407e6d;}function _0x24caf5(_0x355a88){return _0x355a88?{'loaded':_0x3f84cb,'select_node':_0x53279b}:{'loaded':_0x38b0cb,'select_node':_0xdedb57};}function _0x53279b(_0x21cc40,_0x367f97){const _0x535335=_0x272c46;_0x2069cc[_0x535335(0xfcd)]['jstree'](!![])[_0x535335(0x3bf)](),_0x2069cc[_0x535335(0xfcd)]['jstree'](!![])[_0x535335(0x1b7)](),_0x2069cc['currentNode']=_0x367f97[_0x535335(0x2013)],_0x2069cc[_0x535335(0x622)][_0x535335(0x197c)]=!![],_0x2069cc[_0x535335(0x275a)]=_0x2069cc[_0x535335(0x20be)][_0x535335(0x735)](!![])[_0x535335(0x147d)](_0x2069cc[_0x535335(0x622)])[_0x535335(0x1f66)]('/\x20'),_0x2069cc[_0x535335(0x217d)]='analyticCustomReport',_0x2069cc['query'][_0x535335(0xbfb)]=_0x367f97[_0x535335(0x2013)]['id'],_0xf27ffa();}function _0xdedb57(_0xbaa906,_0x428374){const _0x396242=_0x272c46;_0x2069cc['treeCustomInstance'][_0x396242(0x735)](!![])[_0x396242(0x3bf)](),_0x2069cc[_0x396242(0x20be)][_0x396242(0x735)](!![])['close_all'](),_0x2069cc['currentNode']=_0x428374[_0x396242(0x2013)],_0x2069cc['currentNode']['custom']=![],_0x2069cc[_0x396242(0x275a)]=_0x2069cc['treeDefaultInstance'][_0x396242(0x735)](!![])[_0x396242(0x147d)](_0x2069cc['currentNode'])[_0x396242(0x1f66)]('/\x20'),_0x2069cc[_0x396242(0x217d)]='analyticDefaultReport',_0x2069cc[_0x396242(0xae2)]['parent']=_0x428374['node']['id'],_0xf27ffa();}function _0x3f84cb(){const _0x39509d=_0x272c46;if(!_0x2069cc[_0x39509d(0xd14)]&&_0x2069cc[_0x39509d(0x217d)]===_0x39509d(0x1e32)){const _0xe9f95=_0x2069cc['treeCustomInstance'][_0x39509d(0x735)](!![])[_0x39509d(0x6b2)](_0x2069cc[_0x39509d(0xae2)]['parent']);_0x53279b(null,{'node':_0xe9f95,'selected':_0xe9f95['id']});}}function _0x38b0cb(){const _0x24734c=_0x272c46;if(!_0x2069cc[_0x24734c(0xd14)]&&_0x2069cc['apiName']===_0x24734c(0x1f0c)){const _0x474484=_0x2069cc[_0x24734c(0xfcd)][_0x24734c(0x735)](!![])[_0x24734c(0x6b2)](_0x2069cc[_0x24734c(0xae2)][_0x24734c(0xbfb)]);_0xdedb57(null,{'node':_0x474484,'selected':_0x474484['id']});}}function _0xf27ffa(){const _0x44a63e=_0x272c46;_0x2069cc['query'][_0x44a63e(0x184b)]=(_0x2069cc[_0x44a63e(0xae2)][_0x44a63e(0x1c7b)]-0x1)*_0x2069cc['query'][_0x44a63e(0x236)];if(_0x2069cc['apiName']){if(_0x2069cc[_0x44a63e(0xe76)][_0x44a63e(0x26e6)]===_0x44a63e(0x1c60))_0x2069cc[_0x44a63e(0x2061)]=_0x5c31f7[_0x2069cc['apiName']][_0x44a63e(0xbf7)](_0x2069cc[_0x44a63e(0xae2)],_0x45aeec)[_0x44a63e(0x1d77)];else{if(!_0x2069cc[_0x44a63e(0x2199)])return _0x45aeec(null);else{if(_0x2069cc[_0x44a63e(0x2199)][_0x44a63e(0x12f4)])_0x2069cc['promise']=_0x5c31f7[_0x2069cc[_0x44a63e(0x217d)]][_0x44a63e(0xbf7)](_0x2069cc['query'],_0x45aeec)[_0x44a63e(0x1d77)];else{let _0x5ac84d=[];_0x2069cc[_0x44a63e(0x2061)]=_0x5c31f7[_0x2069cc[_0x44a63e(0x217d)]][_0x44a63e(0xbf7)](_0x2069cc['query'])[_0x44a63e(0x1d77)]['then'](function(_0x4dddf8){const _0xe948fe=_0x44a63e;return _0x5ac84d=_0x4dddf8&&_0x4dddf8[_0xe948fe(0x2214)]?_0x4dddf8[_0xe948fe(0x2214)]:[],_0x5ac84d[_0xe948fe(0xfd0)]>0x0?_0x5c31f7['userProfileResource'][_0xe948fe(0xbf7)]({'sectionId':_0x2069cc[_0xe948fe(0x2199)]['id'],'type':_0x2069cc[_0xe948fe(0x217d)]===_0xe948fe(0x1f0c)?_0xe948fe(0x1f5d):_0xe948fe(0xe44)})[_0xe948fe(0x1d77)][_0xe948fe(0x1cb0)](function(_0x2ccb6c){const _0x5e9467=_0xe948fe,_0x4ec2e9=_0x2ccb6c&&_0x2ccb6c[_0x5e9467(0x2214)]?_0x2ccb6c[_0x5e9467(0x2214)]:[];if(_0x4ec2e9[_0x5e9467(0xfd0)]>0x0){const _0x46ead8=[];return _0x5ac84d[_0x5e9467(0xf90)](function(_0x4eac0f){const _0x15b867=_0x5e9467,_0x2ce79c=_0x39641b()[_0x15b867(0x13b4)](_0x4ec2e9,[_0x15b867(0x2982),_0x4eac0f['id']]);if(_0x2ce79c)_0x46ead8[_0x15b867(0x2785)](_0x4eac0f);}),_0x45aeec({'count':_0x46ead8['length'],'rows':_0x46ead8});}else return _0x45aeec(null);}):_0x45aeec(null);})['catch'](function(_0x30fe27){const _0x398521=_0x44a63e;_0x43c966[_0x398521(0x218e)]({'title':_0x30fe27[_0x398521(0x291)]?_0x398521(0xeb9)+_0x30fe27['status']+_0x398521(0x1657)+_0x30fe27[_0x398521(0xc22)]:'SYSTEM:GET_REPORTS','msg':_0x30fe27['data']?JSON[_0x398521(0x2701)](_0x30fe27[_0x398521(0x25c)]):_0x30fe27[_0x398521(0x147f)]()});});}}}}}function _0x45aeec(_0xae92f9){const _0x58c98f=_0x272c46;_0x2069cc[_0x58c98f(0x2318)]=_0xae92f9||{'count':0x0,'rows':[]},!_0x2069cc[_0x58c98f(0xd14)]&&_0x2069cc[_0x58c98f(0x11b6)][_0x58c98f(0x2785)](_0x39641b()[_0x58c98f(0x13b4)](_0x2069cc['reports'][_0x58c98f(0x2214)],{'id':_0x2069cc['currentReport']['id']}));}function _0x5aac31(){const _0x30f839=_0x272c46;_0x2069cc[_0x30f839(0xeda)]=_0x2069cc[_0x30f839(0x1871)][0x0]?angular[_0x30f839(0x284c)](_0x2069cc[_0x30f839(0x1871)][0x0]['tree']):[],_0x2069cc[_0x30f839(0xc92)]=_0x2069cc[_0x30f839(0x1871)][0x1]?angular[_0x30f839(0x284c)](_0x2069cc[_0x30f839(0x1871)][0x1][_0x30f839(0x1bd)]):[],_0x2069cc[_0x30f839(0x1a1d)]=_0x229af5(),_0x2069cc[_0x30f839(0x1058)]=_0x24caf5(![]),_0x2069cc['treeCustomEvents']=_0x24caf5(!![]),_0x1754b1['show']({'controller':function(){return _0x2069cc;},'controllerAs':'vm','templateUrl':_0x547e02,'autoWrap':!![],'skipHide':!![]});}function _0x323fa3(){const _0x549e40=_0x272c46;_0x2069cc['schedule'][_0x549e40(0x16bf)]=_0x2069cc['selectedReport'][0x0][_0x549e40(0x16b6)],_0x2069cc[_0x549e40(0x622)][_0x549e40(0x197c)]?(_0x2069cc[_0x549e40(0x263c)]['CustomReportId']=_0x2069cc[_0x549e40(0x11b6)][0x0]['id'],delete _0x2069cc['schedule'][_0x549e40(0x22a0)]):(_0x2069cc['schedule'][_0x549e40(0x22a0)]=_0x2069cc[_0x549e40(0x11b6)][0x0]['id'],delete _0x2069cc[_0x549e40(0x263c)][_0x549e40(0x251a)]),_0x31cd6d[_0x549e40(0xc97)][_0x549e40(0x16bf)]['$setDirty'](),_0x1754b1[_0x549e40(0x1426)]();}function _0x2fee2b(){const _0x14cbb1=_0x272c46;_0x1754b1[_0x14cbb1(0x1426)]();}function _0x37026b(_0x2d2003){return _0x2d2003===null?undefined:new Date(_0x2d2003);}function _0xc31373(_0x5a030c){const _0x267310=_0x272c46;_0x1754b1[_0x267310(0x1426)](_0x5a030c);}}const _0x2b908f=_0x6a9fe6;;const _0x1bc9fc=_0x5074a3['p']+_0x5537c6(0xcc1);;_0x218f74[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x1a22),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),'Auth','license',_0x5537c6(0x9ca)];function _0x218f74(_0x19f117,_0x515645,_0x92457c,_0x5c658e,_0x243dc3,_0x4f4caa,_0x135dc7,_0x1fcafe,_0x3b9011,_0x4c3bab,_0x5dd948,_0x25d94d,_0x4e3c26,_0x5ebc15,_0xd38cbd,_0x5ec4a0,_0x1d2a82){const _0x3b33bd=_0x5537c6,_0x593d39=this;_0x593d39[_0x3b33bd(0x8a5)]=_0x5ec4a0,_0x593d39['setting']=_0x1d2a82,_0x593d39[_0x3b33bd(0xe76)]=_0xd38cbd[_0x3b33bd(0x21e8)](),_0x593d39['schedules']=_0x3b9011||{'count':0x0,'rows':[]},_0x593d39[_0x3b33bd(0x44a)]=_0x4c3bab,_0x593d39[_0x3b33bd(0x2199)]=_0x5dd948&&_0x5dd948[_0x3b33bd(0x184d)]==0x1?_0x5dd948[_0x3b33bd(0x2214)][0x0]:null,_0x593d39[_0x3b33bd(0x1b1a)]=_0xd38cbd[_0x3b33bd(0x14ea)](_0x593d39[_0x3b33bd(0x2199)]?_0x593d39[_0x3b33bd(0x2199)][_0x3b33bd(0x1b1a)]:null),_0x593d39[_0x3b33bd(0xc83)]=_0x3b33bd(0x1a22),_0x593d39[_0x3b33bd(0x1d20)]='',_0x593d39['listOrderAsc']=null,_0x593d39['selectedScheduler']=[],_0x593d39['query']={'fields':_0x3b33bd(0x9d3),'sort':_0x3b33bd(0x282),'limit':0xa,'page':0x1},_0x593d39[_0x3b33bd(0x40e)]=_0x39641b()[_0x3b33bd(0x2631)]([{'option':_0x3b33bd(0xc59),'value':_0x3b33bd(0x28c3)},{'option':_0x3b33bd(0x194c),'value':'\x27pdf\x27'},{'option':_0x3b33bd(0x1897),'value':_0x3b33bd(0xa4f)}],function(_0x486182){const _0x23cfe1=_0x3b33bd;return _0x39641b()[_0x23cfe1(0x288f)](_0x486182[_0x23cfe1(0x327)],new RegExp('\x27','g'),'');}),_0x593d39[_0x3b33bd(0x1b0)]=_0x39641b()[_0x3b33bd(0x2631)]([{'option':_0x3b33bd(0x271),'value':_0x3b33bd(0x475)},{'option':_0x3b33bd(0xd1b),'value':_0x3b33bd(0x18bc)},{'option':_0x3b33bd(0x2215),'value':_0x3b33bd(0x249e)},{'option':'Weeks','value':_0x3b33bd(0x1c52)},{'option':_0x3b33bd(0x23f3),'value':_0x3b33bd(0xebb)},{'option':_0x3b33bd(0x1316),'value':'\x27quarters\x27'},{'option':_0x3b33bd(0x15a3),'value':_0x3b33bd(0x2392)}],function(_0x35c99f){const _0x9605fc=_0x3b33bd;return _0x39641b()[_0x9605fc(0x288f)](_0x35c99f[_0x9605fc(0x327)],new RegExp('\x27','g'),'');}),_0x593d39['editdialog']=_0x245a7c,_0x593d39[_0x3b33bd(0x17ef)]=_0x4d6811,_0x593d39[_0x3b33bd(0x27fe)]=_0x5e2dcb,_0x593d39[_0x3b33bd(0x829)]=_0x23bbd0,_0x593d39['getScheduler']=_0x5beb95,_0x593d39[_0x3b33bd(0x2156)]=_0x4f56d1,_0x593d39[_0x3b33bd(0xb48)]=_0x8a2092,_0x593d39[_0x3b33bd(0x41f)]=_0x111827,_0x593d39['deleteSelectedScheduler']=_0x2c1a2e,_0x593d39[_0x3b33bd(0xd2a)]=_0x3ab718,_0x593d39[_0x3b33bd(0x1b00)]=_0x58452a,_0x25d94d[_0x3b33bd(0x1df2)]['get']({})[_0x3b33bd(0x1d77)]['then'](function(_0x1fadb2){const _0x26e0d6=_0x3b33bd;_0x593d39['treeReports']=_0x1fadb2[_0x26e0d6(0x2214)]||[];})['catch'](function(_0xce8123){const _0x3d0dd4=_0x3b33bd;_0x5ebc15[_0x3d0dd4(0x218e)]({'title':_0xce8123[_0x3d0dd4(0x291)]?_0x3d0dd4(0xeb9)+_0xce8123[_0x3d0dd4(0x291)]+_0x3d0dd4(0x1657)+_0xce8123[_0x3d0dd4(0xc22)]:'SYSTEM:GET_TREEREPORTS','msg':_0xce8123[_0x3d0dd4(0x25c)]?JSON[_0x3d0dd4(0x2701)](_0xce8123['data']):_0xce8123['toString']()});}),_0xd38cbd[_0x3b33bd(0x22b6)]('admin')?_0x25d94d[_0x3b33bd(0x131c)][_0x3b33bd(0xbf7)]({'fields':_0x3b33bd(0x43c),'sort':_0x3b33bd(0x16b6)})[_0x3b33bd(0x1d77)][_0x3b33bd(0x1cb0)](function(_0x469b1e){const _0x3946e6=_0x3b33bd;_0x593d39[_0x3946e6(0x228e)]=_0x469b1e[_0x3946e6(0x2214)]||[];})['catch'](function(_0x4a14cb){const _0x32cb70=_0x3b33bd;_0x5ebc15[_0x32cb70(0x218e)]({'title':_0x4a14cb[_0x32cb70(0x291)]?_0x32cb70(0xeb9)+_0x4a14cb['status']+_0x32cb70(0x1657)+_0x4a14cb[_0x32cb70(0xc22)]:_0x32cb70(0x3d7),'msg':_0x4a14cb[_0x32cb70(0x25c)]?JSON[_0x32cb70(0x2701)](_0x4a14cb[_0x32cb70(0x25c)]):_0x4a14cb['toString']()});}):_0x25d94d[_0x3b33bd(0x131c)]['get']({'fields':_0x3b33bd(0x43c),'sort':'name'})[_0x3b33bd(0x1d77)]['then'](function(_0x2e30f6){const _0x554c7d=_0x3b33bd;_0x593d39['mailAccounts']=_0x2e30f6[_0x554c7d(0x2214)]||[];})[_0x3b33bd(0x1cb0)](function(){const _0x4075a4=_0x3b33bd;return _0x25d94d[_0x4075a4(0x2199)][_0x4075a4(0xbf7)]({'userProfileId':_0x593d39[_0x4075a4(0xe76)][_0x4075a4(0x13c1)],'sectionId':0x25a})[_0x4075a4(0x1d77)];})[_0x3b33bd(0x1cb0)](function(_0x35870c){const _0x32443a=_0x3b33bd,_0x4f4412=_0x35870c&&_0x35870c[_0x32443a(0x2214)]?_0x35870c[_0x32443a(0x2214)][0x0]:null;if(!_0x4f4412){const _0x8dffb0=[];let _0x3ee955=null;_0x593d39['schedule']&&(_0x3ee955=_0x39641b()[_0x32443a(0x13b4)](_0x593d39[_0x32443a(0x228e)],{'id':Number(_0x593d39[_0x32443a(0x263c)][_0x32443a(0x1285)])}));for(let _0x27e223=0x0;_0x27e223<_0x593d39[_0x32443a(0x228e)][_0x32443a(0xfd0)];_0x27e223++){_0x3ee955&&_0x593d39[_0x32443a(0x228e)][_0x27e223]['id']===_0x3ee955['id']&&(_0x593d39[_0x32443a(0x228e)][_0x27e223]['canSelect']=![],_0x8dffb0[_0x32443a(0x2785)](_0x593d39['mailAccounts'][_0x27e223]));}_0x593d39['mailAccounts']=_0x8dffb0;}else{if(!_0x4f4412['autoAssociation'])return _0x25d94d[_0x32443a(0x1198)][_0x32443a(0xbf7)]({'sectionId':_0x4f4412['id']})[_0x32443a(0x1d77)][_0x32443a(0x1cb0)](function(_0x149520){const _0x42dc3f=_0x32443a,_0x42c78d=_0x39641b()[_0x42dc3f(0x1de2)](_0x149520[_0x42dc3f(0x2214)],function(_0x342141){const _0x4c2f92=_0x42dc3f;return _0x39641b()['find'](_0x593d39[_0x4c2f92(0x228e)],{'id':_0x342141[_0x4c2f92(0x2982)]});});let _0xa22341=null;_0x593d39[_0x42dc3f(0x263c)]&&(_0xa22341=_0x39641b()[_0x42dc3f(0x13b4)](_0x593d39[_0x42dc3f(0x228e)],{'id':Number(_0x593d39['schedule'][_0x42dc3f(0x1285)])}));if(_0xa22341&&!_0x39641b()[_0x42dc3f(0x727)](_0x42c78d,['id',_0xa22341['id']])){const _0x2c20c3=_0x39641b()['find'](_0x593d39['mailAccounts'],{'id':_0xa22341['id']});_0x2c20c3[_0x42dc3f(0x15da)]=![],_0x42c78d['push'](_0x2c20c3);}_0x593d39[_0x42dc3f(0x228e)]=_0x42c78d;});}})[_0x3b33bd(0x1c4)](function(_0x4c6be8){const _0x5c0a29=_0x3b33bd;_0x5ebc15[_0x5c0a29(0x218e)]({'title':_0x4c6be8[_0x5c0a29(0x291)]?'API:'+_0x4c6be8[_0x5c0a29(0x291)]+'\x20-\x20'+_0x4c6be8['statusText']:_0x5c0a29(0x20f2),'msg':_0x4c6be8['data']?JSON[_0x5c0a29(0x2701)](_0x4c6be8[_0x5c0a29(0x25c)]):_0x4c6be8[_0x5c0a29(0x147f)]()});});function _0x245a7c(_0x8df9d9,_0x2ae6ae){const _0x20c56c=_0x3b33bd;_0x243dc3[_0x20c56c(0xe27)]({'controller':_0x20c56c(0x24cf),'controllerAs':'vm','templateUrl':_0x1bc9fc,'parent':angular[_0x20c56c(0x1853)](_0x4f4caa[_0x20c56c(0x1ed9)]),'targetEvent':_0x2ae6ae,'clickOutsideToClose':!![],'locals':{'schedule':_0x8df9d9,'schedules':_0x593d39[_0x20c56c(0x1a22)][_0x20c56c(0x2214)],'license':_0x593d39[_0x20c56c(0x8a5)],'setting':null,'crudPermissions':_0x593d39[_0x20c56c(0x1b1a)]}});}function _0x4d6811(_0x22464e,_0x4747be){const _0x58e104=_0x3b33bd,_0x517228=_0x243dc3[_0x58e104(0x1551)]()[_0x58e104(0x1386)](_0x58e104(0x1a31))[_0x58e104(0x49e)](_0x58e104(0x204d)+(_0x22464e[_0x58e104(0x16b6)]||_0x58e104(0x263c))+_0x58e104(0x1200)+'\x20will\x20be\x20run.')[_0x58e104(0x15ad)](_0x58e104(0x1c44))['targetEvent'](_0x4747be)['ok']('OK')[_0x58e104(0x696)](_0x58e104(0x24ba));_0x243dc3[_0x58e104(0xe27)](_0x517228)[_0x58e104(0x1cb0)](function(){const _0x497476=_0x58e104;return _0x25d94d[_0x497476(0x263c)]['run']({'id':_0x22464e['id']})[_0x497476(0x1d77)];},function(){console['log']('CANCEL');});}function _0x5e2dcb(_0x83cfb,_0x25a8ed){const _0x3b81ad=_0x3b33bd,_0x16b1ff=_0x243dc3[_0x3b81ad(0x1551)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x39641b()['startCase'](_0x3b81ad(0x263c))+'?')['htmlContent'](_0x3b81ad(0x204d)+(_0x83cfb[_0x3b81ad(0x16b6)]||_0x3b81ad(0x263c))+_0x3b81ad(0x1200)+_0x3b81ad(0x1b6))['ariaLabel'](_0x3b81ad(0x1c44))[_0x3b81ad(0x728)](_0x25a8ed)['ok']('OK')[_0x3b81ad(0x696)]('CANCEL');_0x243dc3[_0x3b81ad(0xe27)](_0x16b1ff)[_0x3b81ad(0x1cb0)](function(){_0x8a2092(_0x83cfb);},function(){const _0x594190=_0x3b81ad;console['log'](_0x594190(0x24ba));});}let _0x1aa5b1=!![],_0x220f2a=0x1;_0x19f117[_0x3b33bd(0x614)](_0x3b33bd(0x957),function(_0x3c0cc4,_0x151634){const _0x2120db=_0x3b33bd;_0x1aa5b1?_0x135dc7(function(){_0x1aa5b1=![];}):(!_0x151634&&(_0x220f2a=_0x593d39[_0x2120db(0xae2)][_0x2120db(0x1c7b)]),_0x3c0cc4!==_0x151634&&(_0x593d39[_0x2120db(0xae2)]['page']=0x1),!_0x3c0cc4&&(_0x593d39['query']['page']=_0x220f2a),_0x593d39[_0x2120db(0xf3e)]());});function _0x23bbd0(_0x5ad1b1){const _0x336299=_0x3b33bd;_0x593d39[_0x336299(0x1a22)]=_0x5ad1b1||{'count':0x0,'rows':[]};}function _0x5beb95(){const _0x1d19f2=_0x3b33bd;_0x593d39['query'][_0x1d19f2(0x184b)]=(_0x593d39[_0x1d19f2(0xae2)][_0x1d19f2(0x1c7b)]-0x1)*_0x593d39[_0x1d19f2(0xae2)][_0x1d19f2(0x236)],_0xd38cbd[_0x1d19f2(0x22b6)]('admin')?_0x593d39['promise']=_0x25d94d[_0x1d19f2(0x263c)][_0x1d19f2(0xbf7)](_0x593d39[_0x1d19f2(0xae2)],_0x23bbd0)[_0x1d19f2(0x1d77)]:(_0x593d39[_0x1d19f2(0xae2)]['id']=_0x593d39[_0x1d19f2(0x44a)]['id'],_0x593d39[_0x1d19f2(0xae2)][_0x1d19f2(0x1f74)]='Scheduler',_0x593d39[_0x1d19f2(0x2061)]=_0x25d94d['userProfile'][_0x1d19f2(0x1810)](_0x593d39[_0x1d19f2(0xae2)],_0x23bbd0)[_0x1d19f2(0x1d77)]);}function _0x4f56d1(_0x2c34e4,_0x48138d){const _0x5c78c0=_0x3b33bd;_0x243dc3[_0x5c78c0(0xe27)]({'controller':_0x5c78c0(0x24cf),'controllerAs':'vm','templateUrl':_0x1bc9fc,'parent':angular[_0x5c78c0(0x1853)](_0x4f4caa['body']),'targetEvent':_0x2c34e4,'clickOutsideToClose':!![],'locals':{'schedule':_0x48138d,'schedules':_0x593d39[_0x5c78c0(0x1a22)]['rows'],'license':_0x593d39[_0x5c78c0(0x8a5)],'setting':_0x593d39['setting'],'crudPermissions':_0x593d39['crudPermissions']}});}function _0x8a2092(_0x2f3555){const _0x37f53c=_0x3b33bd;_0x25d94d[_0x37f53c(0x263c)][_0x37f53c(0x111d)]({'id':_0x2f3555['id']})['$promise'][_0x37f53c(0x1cb0)](function(){const _0x24b7df=_0x37f53c;_0x39641b()[_0x24b7df(0x152a)](_0x593d39[_0x24b7df(0x1a22)][_0x24b7df(0x2214)],{'id':_0x2f3555['id']}),_0x593d39[_0x24b7df(0x1a22)]['count']-=0x1,!_0x593d39[_0x24b7df(0x1a22)]['rows']['length']&&_0x593d39[_0x24b7df(0xf3e)](),_0x5ebc15['success']({'title':_0x39641b()['startCase'](_0x24b7df(0x97e))+_0x24b7df(0x2663),'msg':_0x2f3555[_0x24b7df(0x16b6)]?_0x2f3555[_0x24b7df(0x16b6)]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x14cfd3){const _0x3241cd=_0x37f53c;if(_0x14cfd3[_0x3241cd(0x25c)]&&_0x14cfd3[_0x3241cd(0x25c)][_0x3241cd(0x1a7c)]&&_0x14cfd3['data'][_0x3241cd(0x1a7c)][_0x3241cd(0xfd0)]){_0x593d39[_0x3241cd(0x1a7c)]=_0x14cfd3['data']['errors']||[{'message':_0x14cfd3['toString'](),'type':_0x3241cd(0x1bb1)}];for(let _0x35a58b=0x0;_0x35a58b<_0x14cfd3['data'][_0x3241cd(0x1a7c)]['length'];_0x35a58b++){_0x5ebc15[_0x3241cd(0x218e)]({'title':_0x14cfd3['data']['errors'][_0x35a58b]['type'],'msg':_0x14cfd3[_0x3241cd(0x25c)][_0x3241cd(0x1a7c)][_0x35a58b]['message']});}}else _0x5ebc15[_0x3241cd(0x218e)]({'title':_0x14cfd3[_0x3241cd(0x291)]?_0x3241cd(0xeb9)+_0x14cfd3[_0x3241cd(0x291)]+'\x20-\x20'+_0x14cfd3['statusText']:_0x3241cd(0x1bb1),'msg':_0x14cfd3['data']?JSON[_0x3241cd(0x2701)](_0x14cfd3[_0x3241cd(0x25c)][_0x3241cd(0x155e)]):_0x14cfd3[_0x3241cd(0x155e)]||_0x14cfd3[_0x3241cd(0x147f)]()});});}function _0x111827(){const _0x196fb9=_0x3b33bd,_0x365e37=angular[_0x196fb9(0x17fe)](_0x593d39['selectedScheduler']);return _0x593d39[_0x196fb9(0x18f)]=[],_0x365e37;}function _0x2c1a2e(_0xf2c561){const _0x3b1f6c=_0x3b33bd,_0x128f1d=_0x243dc3[_0x3b1f6c(0x1551)]()[_0x3b1f6c(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20schedules?')['htmlContent'](_0x3b1f6c(0x204d)+_0x593d39['selectedScheduler']['length']+_0x3b1f6c(0x1d6c)+'\x20will\x20be\x20deleted.')[_0x3b1f6c(0x15ad)](_0x3b1f6c(0x788))[_0x3b1f6c(0x728)](_0xf2c561)['ok']('OK')['cancel'](_0x3b1f6c(0x24ba));_0x243dc3[_0x3b1f6c(0xe27)](_0x128f1d)[_0x3b1f6c(0x1cb0)](function(){const _0x15176c=_0x3b1f6c;_0x593d39['selectedScheduler']['forEach'](function(_0x9b274f){_0x8a2092(_0x9b274f);}),_0x593d39[_0x15176c(0x18f)]=[];});}function _0x3ab718(){const _0x24073d=_0x3b33bd;_0x593d39[_0x24073d(0x18f)]=[];}function _0x58452a(){const _0x58f4b4=_0x3b33bd;_0x593d39['selectedScheduler']=_0x593d39[_0x58f4b4(0x1a22)][_0x58f4b4(0x2214)];}}const _0x48b684=_0x218f74;;_0x3c9d6d[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),'$location','$mdDialog','$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0xe28),_0x5537c6(0x1e9),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x3c9d6d(_0x3f5f46,_0x2d097f,_0x33c814,_0x4225aa,_0x2a9df9,_0x33c5c8,_0x1ec99d,_0x5e3d3f,_0xdceb69,_0x4c26cd,_0x410d7b,_0x445a71,_0x4d2906,_0x3594a8){const _0x4bfed6=_0x5537c6,_0x2c63a2=this;_0x2c63a2['currentUser']=_0x410d7b[_0x4bfed6(0x21e8)](),_0x2c63a2[_0x4bfed6(0x1a7c)]=[],_0x2c63a2[_0x4bfed6(0x9ca)]=_0x4d2906,_0x2c63a2[_0x4bfed6(0x8a5)]=_0x445a71,_0x2c63a2[_0x4bfed6(0x1b1a)]=_0x3594a8,_0x2c63a2['hasModulePermissions']={},_0x2c63a2['passwordPattern']=_0x2c63a2[_0x4bfed6(0x9ca)]&&_0x2c63a2[_0x4bfed6(0x9ca)][_0x4bfed6(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2c63a2[_0x4bfed6(0x1386)]=_0x4bfed6(0x239d),_0x2c63a2[_0x4bfed6(0x1e9)]=angular['copy'](_0xdceb69),_0x2c63a2['sounds']=_0x5e3d3f,_0x2c63a2['newSound']=![];!_0x2c63a2[_0x4bfed6(0x1e9)]&&(_0x2c63a2['sound']={},_0x2c63a2[_0x4bfed6(0x1386)]=_0x4bfed6(0xb39),_0x2c63a2[_0x4bfed6(0x17bd)]=!![]);_0x2c63a2['addNewSound']=_0x54d7e1,_0x2c63a2[_0x4bfed6(0xf25)]=_0x463168,_0x2c63a2['deleteSound']=_0x40f9a4,_0x2c63a2[_0x4bfed6(0x2c4)]=_0x22ff0b,_0x2c63a2[_0x4bfed6(0xda0)]=_0x449644;function _0x54d7e1(){const _0xc5db0c=_0x4bfed6;_0x2c63a2[_0xc5db0c(0x1a7c)]=[],_0x4c26cd[_0xc5db0c(0x1e9)]['save'](_0x2c63a2[_0xc5db0c(0x1e9)])[_0xc5db0c(0x1d77)]['then'](function(_0x55fd25){const _0x4a1e70=_0xc5db0c;_0x2c63a2['sounds'][_0x4a1e70(0xf63)](_0x55fd25[_0x4a1e70(0x19b2)]()),_0x1ec99d['success']({'title':'Sound\x20properly\x20created','msg':_0x2c63a2[_0x4a1e70(0x1e9)][_0x4a1e70(0x16b6)]?_0x2c63a2[_0x4a1e70(0x1e9)][_0x4a1e70(0x16b6)]+_0x4a1e70(0x470):''}),_0x449644(_0x55fd25);})[_0xc5db0c(0x1c4)](function(_0x2e1bac){const _0x8cb37a=_0xc5db0c;if(_0x2e1bac[_0x8cb37a(0x25c)]&&_0x2e1bac[_0x8cb37a(0x25c)][_0x8cb37a(0x1a7c)]&&_0x2e1bac['data'][_0x8cb37a(0x1a7c)][_0x8cb37a(0xfd0)]){_0x2c63a2[_0x8cb37a(0x1a7c)]=_0x2e1bac[_0x8cb37a(0x25c)][_0x8cb37a(0x1a7c)]||[{'message':_0x2e1bac['toString'](),'type':_0x8cb37a(0x130e)}];for(let _0x1c73da=0x0;_0x1c73da<_0x2e1bac['data'][_0x8cb37a(0x1a7c)][_0x8cb37a(0xfd0)];_0x1c73da+=0x1){_0x1ec99d[_0x8cb37a(0x218e)]({'title':_0x2e1bac[_0x8cb37a(0x25c)]['errors'][_0x1c73da][_0x8cb37a(0x66a)],'msg':_0x2e1bac[_0x8cb37a(0x25c)][_0x8cb37a(0x1a7c)][_0x1c73da][_0x8cb37a(0x155e)]});}}else _0x1ec99d['error']({'title':_0x2e1bac['status']?'API:'+_0x2e1bac[_0x8cb37a(0x291)]+'\x20-\x20'+_0x2e1bac[_0x8cb37a(0xc22)]:_0x8cb37a(0x130e),'msg':_0x2e1bac[_0x8cb37a(0x25c)]?JSON[_0x8cb37a(0x2701)](_0x2e1bac[_0x8cb37a(0x25c)]['message']):_0x2e1bac['toString']()});});}function _0x463168(){const _0x558456=_0x4bfed6;_0x2c63a2[_0x558456(0x1a7c)]=[],_0x4c26cd[_0x558456(0x1e9)][_0x558456(0x687)]({'id':_0x2c63a2[_0x558456(0x1e9)]['id']},_0x2c63a2[_0x558456(0x1e9)])['$promise'][_0x558456(0x1cb0)](function(_0x42d5d2){const _0x55444b=_0x558456,_0x19d5b3=_0x39641b()['find'](_0x2c63a2[_0x55444b(0xe28)],{'id':_0x42d5d2['id']});_0x19d5b3&&_0x39641b()[_0x55444b(0x9c1)](_0x19d5b3,_0x39641b()[_0x55444b(0x169b)](_0x42d5d2['toJSON'](),_0x39641b()[_0x55444b(0x1be5)](_0x19d5b3))),_0x1ec99d[_0x55444b(0x829)]({'title':'Sound\x20properly\x20saved!','msg':_0x2c63a2['sound'][_0x55444b(0x16b6)]?_0x2c63a2[_0x55444b(0x1e9)][_0x55444b(0x16b6)]+_0x55444b(0xedb):''}),_0x449644(_0x42d5d2);})[_0x558456(0x1c4)](function(_0x14e70a){const _0x54c9d8=_0x558456;if(_0x14e70a[_0x54c9d8(0x25c)]&&_0x14e70a[_0x54c9d8(0x25c)][_0x54c9d8(0x1a7c)]&&_0x14e70a[_0x54c9d8(0x25c)][_0x54c9d8(0x1a7c)]['length']){_0x2c63a2[_0x54c9d8(0x1a7c)]=_0x14e70a[_0x54c9d8(0x25c)][_0x54c9d8(0x1a7c)]||[{'message':_0x14e70a['toString'](),'type':_0x54c9d8(0xd4a)}];for(let _0x23219b=0x0;_0x23219b<_0x14e70a[_0x54c9d8(0x25c)][_0x54c9d8(0x1a7c)]['length'];_0x23219b++){_0x1ec99d[_0x54c9d8(0x218e)]({'title':_0x14e70a[_0x54c9d8(0x25c)]['errors'][_0x23219b]['type'],'msg':_0x14e70a['data']['errors'][_0x23219b]['message']});}}else _0x1ec99d[_0x54c9d8(0x218e)]({'title':_0x14e70a['status']?_0x54c9d8(0xeb9)+_0x14e70a['status']+_0x54c9d8(0x1657)+_0x14e70a['statusText']:'api.sound.update','msg':_0x14e70a[_0x54c9d8(0x25c)]?JSON[_0x54c9d8(0x2701)](_0x14e70a[_0x54c9d8(0x25c)][_0x54c9d8(0x155e)]):_0x14e70a[_0x54c9d8(0x147f)]()});});}function _0x40f9a4(_0x5829ed){const _0x567d85=_0x4bfed6;_0x2c63a2[_0x567d85(0x1a7c)]=[];const _0x579ae7=_0x4225aa['confirm']()[_0x567d85(0x1386)](_0x567d85(0x1a2e))[_0x567d85(0x862)]('The\x20sound\x20will\x20be\x20deleted.')[_0x567d85(0x15ad)]('Delete\x20Sound')['ok']('Delete')['cancel']('Cancel')['targetEvent'](_0x5829ed);_0x4225aa[_0x567d85(0xe27)](_0x579ae7)[_0x567d85(0x1cb0)](function(){const _0x53c98f=_0x567d85;_0x4c26cd[_0x53c98f(0x1e9)]['delete']({'id':_0x2c63a2[_0x53c98f(0x1e9)]['id']})['$promise'][_0x53c98f(0x1cb0)](function(){const _0x372dc9=_0x53c98f;_0x39641b()[_0x372dc9(0x152a)](_0x2c63a2[_0x372dc9(0xe28)],{'id':_0x2c63a2[_0x372dc9(0x1e9)]['id']}),_0x1ec99d[_0x372dc9(0x829)]({'title':_0x372dc9(0x64c),'msg':(_0x2c63a2[_0x372dc9(0x1e9)]['name']||_0x372dc9(0x1e9))+_0x372dc9(0x3f5)}),_0x449644(_0x2c63a2[_0x372dc9(0x1e9)]);})['catch'](function(_0x32cc3a){const _0x4f6f3b=_0x53c98f;if(_0x32cc3a[_0x4f6f3b(0x25c)]&&_0x32cc3a[_0x4f6f3b(0x25c)][_0x4f6f3b(0x1a7c)]&&_0x32cc3a[_0x4f6f3b(0x25c)][_0x4f6f3b(0x1a7c)][_0x4f6f3b(0xfd0)]){_0x2c63a2['errors']=_0x32cc3a[_0x4f6f3b(0x25c)][_0x4f6f3b(0x1a7c)]||[{'message':_0x32cc3a[_0x4f6f3b(0x147f)](),'type':_0x4f6f3b(0x262a)}];for(let _0x4a4749=0x0;_0x4a4749<_0x32cc3a[_0x4f6f3b(0x25c)][_0x4f6f3b(0x1a7c)]['length'];_0x4a4749++){_0x1ec99d[_0x4f6f3b(0x218e)]({'title':_0x32cc3a['data'][_0x4f6f3b(0x1a7c)][_0x4a4749]['type'],'msg':_0x32cc3a[_0x4f6f3b(0x25c)]['errors'][_0x4a4749][_0x4f6f3b(0x155e)]});}}else _0x1ec99d['error']({'title':_0x32cc3a[_0x4f6f3b(0x291)]?'API:'+_0x32cc3a[_0x4f6f3b(0x291)]+'\x20-\x20'+_0x32cc3a[_0x4f6f3b(0xc22)]:_0x4f6f3b(0x262a),'msg':_0x32cc3a[_0x4f6f3b(0x25c)]?JSON['stringify'](_0x32cc3a[_0x4f6f3b(0x25c)][_0x4f6f3b(0x155e)]):_0x32cc3a[_0x4f6f3b(0x155e)]||_0x32cc3a[_0x4f6f3b(0x147f)]()});});},function(){});}function _0x22ff0b(_0x42eed6){return _0x42eed6===null?undefined:new Date(_0x42eed6);}function _0x449644(_0x21cb96){const _0x145a2b=_0x4bfed6;_0x4225aa[_0x145a2b(0x1426)](_0x21cb96);}}const _0x3eaede=_0x3c9d6d;;const _0x37f68f=_0x5074a3['p']+_0x5537c6(0x1cff);;const _0x5296d5=_0x5074a3['p']+'src/js/modules/main/apps/tools/views/sounds/upload/dialog.html/dialog.html';;_0x4983e7['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0xe28),_0x5537c6(0x44a),_0x5537c6(0x2199),'api','msUtils',_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting'];function _0x4983e7(_0x43acf1,_0x193be9,_0x1049da,_0xe0245e,_0x10c96e,_0x67cd88,_0x1604c3,_0x353f60,_0x4d59e8,_0x2072b2,_0x573bcc,_0x36f410,_0x170f5b,_0xf15272,_0x33e2be,_0x5ae3fc,_0x50cf0e){const _0x36f7d1=_0x5537c6,_0xaa7208=this;_0xaa7208['license']=_0x5ae3fc,_0xaa7208[_0x36f7d1(0x9ca)]=_0x50cf0e,_0xaa7208['currentUser']=_0x33e2be[_0x36f7d1(0x21e8)](),_0xaa7208[_0x36f7d1(0xe28)]=_0x4d59e8||{'count':0x0,'rows':[]},_0xaa7208[_0x36f7d1(0x44a)]=_0x2072b2,_0xaa7208[_0x36f7d1(0x2199)]=_0x573bcc&&_0x573bcc[_0x36f7d1(0x184d)]==0x1?_0x573bcc['rows'][0x0]:null,_0xaa7208[_0x36f7d1(0x1b1a)]=_0x33e2be[_0x36f7d1(0x14ea)](_0xaa7208[_0x36f7d1(0x2199)]?_0xaa7208[_0x36f7d1(0x2199)][_0x36f7d1(0x1b1a)]:null),_0xaa7208[_0x36f7d1(0xc83)]=_0x36f7d1(0xe28),_0xaa7208[_0x36f7d1(0x1d20)]='',_0xaa7208['listOrderAsc']=null,_0xaa7208[_0x36f7d1(0x1082)]=[],_0xaa7208[_0x36f7d1(0xae2)]={'fields':_0x36f7d1(0x2877),'sort':'-updatedAt','limit':0xa,'page':0x1},_0xaa7208[_0x36f7d1(0xc93)]=_0x2f56bb,_0xaa7208['downloadfile2']=_0x377061,_0xaa7208[_0x36f7d1(0x27fe)]=_0x42b4ea,_0xaa7208['success']=_0x20f77b,_0xaa7208[_0x36f7d1(0x86c)]=_0x1dee97,_0xaa7208[_0x36f7d1(0x1e31)]=_0x3b3064,_0xaa7208[_0x36f7d1(0x547)]=_0x5050d9,_0xaa7208['exportSelectedSounds']=_0x2a067c,_0xaa7208[_0x36f7d1(0x1b33)]=_0x476d27,_0xaa7208[_0x36f7d1(0x8da)]=_0x1c6584,_0xaa7208[_0x36f7d1(0x22c5)]=_0x33ece5,_0xaa7208[_0x36f7d1(0x164)]=_0x28a7e4;function _0x2f56bb(_0xacb2a,_0x45d816){const _0x3862ad=_0x36f7d1;_0x10c96e[_0x3862ad(0xe27)]({'controller':'CreateOrEditSoundDialogController','controllerAs':'vm','templateUrl':_0x37f68f,'parent':angular[_0x3862ad(0x1853)](_0x67cd88[_0x3862ad(0x1ed9)]),'targetEvent':_0x45d816,'clickOutsideToClose':!![],'locals':{'sound':_0xacb2a,'sounds':_0xaa7208[_0x3862ad(0xe28)][_0x3862ad(0x2214)],'license':_0xaa7208[_0x3862ad(0x8a5)],'setting':null,'crudPermissions':_0xaa7208[_0x3862ad(0x1b1a)]}});}function _0x377061(_0x162aee){const _0x285cb3=_0x36f7d1;return _0x36f410[_0x285cb3(0x1e9)][_0x285cb3(0x26ec)]({'id':_0x162aee['id']})[_0x285cb3(0x1d77)][_0x285cb3(0x1cb0)](function(_0x1e8e04){const _0x49caab=_0x285cb3,_0x6136a4=[_0x1e8e04[_0x49caab(0xef0)]];let _0x3b1687=_0x49caab(0x26ec);const _0x2cf149=new Blob(_0x6136a4,{'type':_0x1e8e04[_0x49caab(0x66a)]});_0x3b1687=_0x162aee[_0x49caab(0xae0)]?_0x162aee['save_name']+'.'+_0x162aee[_0x49caab(0xae0)]:_0x162aee[_0x49caab(0x144c)];const _0x4fd77a=window[_0x49caab(0x1db8)][_0x49caab(0x8c6)]('a');_0x4fd77a[_0x49caab(0x23b9)](_0x49caab(0x105b),URL[_0x49caab(0x2247)](_0x2cf149)),_0x4fd77a['setAttribute'](_0x49caab(0x26ec),_0x3b1687),document[_0x49caab(0x1ed9)][_0x49caab(0x23de)](_0x4fd77a),_0x4fd77a[_0x49caab(0x20b8)]();})['catch'](function(_0x39a626){const _0x330406=_0x285cb3;if(_0x39a626[_0x330406(0x25c)]&&_0x39a626['data'][_0x330406(0x1a7c)]&&_0x39a626[_0x330406(0x25c)]['errors'][_0x330406(0xfd0)])for(let _0x44749a=0x0;_0x44749a<_0x39a626[_0x330406(0x25c)][_0x330406(0x1a7c)][_0x330406(0xfd0)];_0x44749a++){_0xf15272[_0x330406(0x218e)]({'title':_0x39a626[_0x330406(0x25c)][_0x330406(0x1a7c)][_0x44749a][_0x330406(0x66a)],'msg':_0x39a626[_0x330406(0x25c)][_0x330406(0x1a7c)][_0x44749a]['message']});}else _0xf15272[_0x330406(0x218e)]({'title':_0x39a626['status']?_0x330406(0xeb9)+_0x39a626[_0x330406(0x291)]+_0x330406(0x1657)+_0x39a626[_0x330406(0xc22)]:_0x330406(0x130e),'msg':_0x39a626[_0x330406(0x25c)]?JSON[_0x330406(0x2701)](_0x39a626[_0x330406(0x25c)]['message']):_0x39a626[_0x330406(0x147f)]()});});}function _0x42b4ea(_0x4627bc,_0x559a82){const _0x5d0261=_0x36f7d1,_0x4acb9c=_0x10c96e[_0x5d0261(0x1551)]()[_0x5d0261(0x1386)](_0x5d0261(0x140b)+_0x39641b()['startCase']('sound')+'?')[_0x5d0261(0x49e)](_0x5d0261(0x204d)+(_0x4627bc['name']||_0x5d0261(0x1e9))+''+'\x20will\x20be\x20deleted.')[_0x5d0261(0x15ad)](_0x5d0261(0xffb))[_0x5d0261(0x728)](_0x559a82)['ok']('OK')['cancel']('CANCEL');_0x10c96e['show'](_0x4acb9c)[_0x5d0261(0x1cb0)](function(){_0x5050d9(_0x4627bc);},function(){const _0x2b3793=_0x5d0261;console[_0x2b3793(0x1b4f)](_0x2b3793(0x24ba));});}let _0x5d81b5=!![],_0x10c110=0x1;_0x43acf1[_0x36f7d1(0x614)](_0x36f7d1(0x957),function(_0x377df9,_0xa5179){const _0x3b7ef4=_0x36f7d1;_0x5d81b5?_0x1604c3(function(){_0x5d81b5=![];}):(!_0xa5179&&(_0x10c110=_0xaa7208[_0x3b7ef4(0xae2)][_0x3b7ef4(0x1c7b)]),_0x377df9!==_0xa5179&&(_0xaa7208[_0x3b7ef4(0xae2)][_0x3b7ef4(0x1c7b)]=0x1),!_0x377df9&&(_0xaa7208[_0x3b7ef4(0xae2)]['page']=_0x10c110),_0xaa7208[_0x3b7ef4(0x86c)]());});function _0x20f77b(_0x351dee){const _0x1f041c=_0x36f7d1;_0xaa7208[_0x1f041c(0xe28)]=_0x351dee||{'count':0x0,'rows':[]};}function _0x1dee97(){const _0x5b9f41=_0x36f7d1;_0xaa7208[_0x5b9f41(0xae2)][_0x5b9f41(0x184b)]=(_0xaa7208[_0x5b9f41(0xae2)][_0x5b9f41(0x1c7b)]-0x1)*_0xaa7208[_0x5b9f41(0xae2)][_0x5b9f41(0x236)],_0x33e2be[_0x5b9f41(0x22b6)](_0x5b9f41(0x1c60))?_0xaa7208[_0x5b9f41(0x2061)]=_0x36f410[_0x5b9f41(0x1e9)]['get'](_0xaa7208['query'],_0x20f77b)[_0x5b9f41(0x1d77)]:(_0xaa7208[_0x5b9f41(0xae2)]['id']=_0xaa7208[_0x5b9f41(0x44a)]['id'],_0xaa7208[_0x5b9f41(0xae2)]['section']='Sounds',_0xaa7208[_0x5b9f41(0x2061)]=_0x36f410[_0x5b9f41(0x44a)][_0x5b9f41(0x1810)](_0xaa7208[_0x5b9f41(0xae2)],_0x20f77b)['$promise']);}function _0x3b3064(_0x1c0717,_0x320331){const _0x495ee8=_0x36f7d1;_0x10c96e['show']({'controller':_0x495ee8(0x1eac),'controllerAs':'vm','templateUrl':_0x37f68f,'parent':angular[_0x495ee8(0x1853)](_0x67cd88[_0x495ee8(0x1ed9)]),'targetEvent':_0x1c0717,'clickOutsideToClose':!![],'locals':{'sound':_0x320331,'sounds':_0xaa7208[_0x495ee8(0xe28)]['rows'],'license':_0xaa7208[_0x495ee8(0x8a5)],'setting':_0xaa7208['setting'],'crudPermissions':_0xaa7208[_0x495ee8(0x1b1a)]}});}function _0x5050d9(_0x201bdd){const _0x59ae88=_0x36f7d1;_0x36f410[_0x59ae88(0x1e9)][_0x59ae88(0x111d)]({'id':_0x201bdd['id']})[_0x59ae88(0x1d77)]['then'](function(){const _0x3a4e05=_0x59ae88;_0x39641b()[_0x3a4e05(0x152a)](_0xaa7208['sounds'][_0x3a4e05(0x2214)],{'id':_0x201bdd['id']}),_0xaa7208[_0x3a4e05(0xe28)][_0x3a4e05(0x184d)]-=0x1,!_0xaa7208[_0x3a4e05(0xe28)][_0x3a4e05(0x2214)]['length']&&_0xaa7208['getSounds'](),_0xf15272[_0x3a4e05(0x829)]({'title':_0x39641b()['startCase']('Sound')+_0x3a4e05(0x2663),'msg':_0x201bdd['name']?_0x201bdd[_0x3a4e05(0x16b6)]+_0x3a4e05(0x3f5):''});})['catch'](function(_0x4a5684){const _0x15417f=_0x59ae88;if(_0x4a5684[_0x15417f(0x25c)]&&_0x4a5684[_0x15417f(0x25c)][_0x15417f(0x1a7c)]&&_0x4a5684['data']['errors']['length']){_0xaa7208[_0x15417f(0x1a7c)]=_0x4a5684[_0x15417f(0x25c)][_0x15417f(0x1a7c)]||[{'message':_0x4a5684['toString'](),'type':_0x15417f(0x1762)}];for(let _0x26a3d7=0x0;_0x26a3d7<_0x4a5684[_0x15417f(0x25c)][_0x15417f(0x1a7c)][_0x15417f(0xfd0)];_0x26a3d7++){_0xf15272[_0x15417f(0x218e)]({'title':_0x4a5684['data'][_0x15417f(0x1a7c)][_0x26a3d7]['type'],'msg':_0x4a5684[_0x15417f(0x25c)][_0x15417f(0x1a7c)][_0x26a3d7][_0x15417f(0x155e)]});}}else _0xf15272[_0x15417f(0x218e)]({'title':_0x4a5684[_0x15417f(0x291)]?_0x15417f(0xeb9)+_0x4a5684[_0x15417f(0x291)]+'\x20-\x20'+_0x4a5684[_0x15417f(0xc22)]:_0x15417f(0x1762),'msg':_0x4a5684[_0x15417f(0x25c)]?JSON['stringify'](_0x4a5684[_0x15417f(0x25c)][_0x15417f(0x155e)]):_0x4a5684[_0x15417f(0x155e)]||_0x4a5684[_0x15417f(0x147f)]()});});}function _0x2a067c(){const _0xf74e05=_0x36f7d1,_0x1261d0=angular['copy'](_0xaa7208[_0xf74e05(0x1082)]);return _0xaa7208['selectedSounds']=[],_0x1261d0;}function _0x476d27(_0x2bc256){const _0x1f2c72=_0x36f7d1,_0x1b8065=_0x10c96e[_0x1f2c72(0x1551)]()[_0x1f2c72(0x1386)](_0x1f2c72(0xe00))[_0x1f2c72(0x49e)](_0x1f2c72(0x204d)+_0xaa7208[_0x1f2c72(0x1082)][_0x1f2c72(0xfd0)]+_0x1f2c72(0x1d6c)+_0x1f2c72(0x1b6))['ariaLabel'](_0x1f2c72(0x266f))['targetEvent'](_0x2bc256)['ok']('OK')[_0x1f2c72(0x696)](_0x1f2c72(0x24ba));_0x10c96e[_0x1f2c72(0xe27)](_0x1b8065)[_0x1f2c72(0x1cb0)](function(){const _0x47e400=_0x1f2c72;_0xaa7208[_0x47e400(0x1082)]['forEach'](function(_0x25fdf8){_0x5050d9(_0x25fdf8);}),_0xaa7208['selectedSounds']=[];});}function _0x1c6584(){const _0x1b7f92=_0x36f7d1;_0xaa7208[_0x1b7f92(0x1082)]=[];}function _0x33ece5(){const _0x24e482=_0x36f7d1;_0xaa7208[_0x24e482(0x1082)]=_0xaa7208['sounds'][_0x24e482(0x2214)];}function _0x28a7e4(_0x37f7cb){const _0x1912c2=_0x36f7d1;_0x10c96e[_0x1912c2(0xe27)]({'controller':_0x1912c2(0x117d),'controllerAs':'vm','templateUrl':_0x5296d5,'parent':angular[_0x1912c2(0x1853)](_0x67cd88[_0x1912c2(0x1ed9)]),'targetEvent':_0x37f7cb,'clickOutsideToClose':!![],'locals':{'sounds':_0xaa7208[_0x1912c2(0xe28)][_0x1912c2(0x2214)]}});}}const _0x55f64d=_0x4983e7;;_0x332465['$inject']=['$cookies','$mdDialog','toasty','sounds','api',_0x5537c6(0x1774)];function _0x332465(_0x6923dc,_0x44d30b,_0x3e2919,_0x202303,_0x36bc60,_0x3a5c34){const _0x3d3370=_0x5537c6,_0x1c7f97=this,_0x38815d=0xf,_0x18dbfa=_0x38815d*0x400*0x400;_0x1c7f97[_0x3d3370(0xe76)]=_0x3a5c34[_0x3d3370(0x21e8)](),_0x1c7f97[_0x3d3370(0x1a7c)]=[],_0x1c7f97[_0x3d3370(0x1386)]=_0x3d3370(0x2429),_0x1c7f97[_0x3d3370(0xe28)]=_0x202303,_0x1c7f97[_0x3d3370(0x14a7)]=[],_0x1c7f97['uploadState']='none',_0x1c7f97[_0x3d3370(0x1e9)]={},_0x1c7f97['ngFlowOptions']={'maxChunkRetries':0x1,'chunkSize':_0x18dbfa,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':_0x3d3370(0x47e)},_0x1c7f97[_0x3d3370(0x125a)]={'flow':{}},_0x1c7f97['dropping']=![],_0x1c7f97['fileAdded']=_0x5a410a,_0x1c7f97[_0x3d3370(0x1c97)]=_0x2e6ef3,_0x1c7f97['fileSuccess']=_0xbe8540,_0x1c7f97['uploadError']=_0x6f616c,_0x1c7f97[_0x3d3370(0xccd)]=_0x20b20d,_0x1c7f97['closeDialog']=_0x309311;function _0x5a410a(_0x5b6066){const _0x22b8fe=_0x3d3370,_0x5bb3b1=[_0x22b8fe(0xcab),'mp3','gsm'];if(!_0x39641b()[_0x22b8fe(0x250a)](_0x5bb3b1,_0x5b6066[_0x22b8fe(0x1cb1)]()))return _0x3e2919[_0x22b8fe(0x218e)]({'title':_0x22b8fe(0x14d4)+_0x5b6066['getExtension'](),'msg':_0x22b8fe(0x4d4)+_0x5bb3b1[_0x22b8fe(0x1f66)]()}),![];if(_0x5b6066[_0x22b8fe(0x1813)]>_0x18dbfa)return _0x3e2919[_0x22b8fe(0x218e)]({'title':_0x22b8fe(0x2749),'msg':_0x22b8fe(0xe61)+_0x38815d+'MB'}),![];return _0x1c7f97[_0x22b8fe(0x1e9)]={'id':_0x5b6066['uniqueIdentifier'],'file':_0x5b6066},_0x1c7f97[_0x22b8fe(0x14a7)][_0x22b8fe(0xf63)](_0x1c7f97[_0x22b8fe(0x1e9)]),!![];}function _0x2e6ef3(){const _0x3bd34d=_0x3d3370;_0x1c7f97[_0x3bd34d(0xcc9)]=_0x3bd34d(0x2989),_0x1c7f97[_0x3bd34d(0x125a)][_0x3bd34d(0xacf)][_0x3bd34d(0xd56)][_0x3bd34d(0x5e7)]={'X-Requested-With':_0x3bd34d(0x2711),'Authorization':_0x3bd34d(0x1923)+_0x6923dc[_0x3bd34d(0xbf7)](_0x3bd34d(0x1b26))},_0x1c7f97['ngFlow']['flow']['opts'][_0x3bd34d(0xae2)]={'role':_0x1c7f97[_0x3bd34d(0xe76)][_0x3bd34d(0x26e6)],'userProfileId':_0x1c7f97[_0x3bd34d(0xe76)]['userProfileId']},_0x1c7f97[_0x3bd34d(0x125a)]['flow'][_0x3bd34d(0x1c97)]();}function _0xbe8540(_0x5f1aec,_0x2c152e){const _0x338a92=_0x3d3370;_0x1c7f97[_0x338a92(0xe28)]['unshift'](JSON[_0x338a92(0xefe)](_0x2c152e)),angular['forEach'](_0x1c7f97[_0x338a92(0x14a7)],function(_0x1fc44a){const _0x212ffc=_0x338a92;if(_0x1fc44a['id']===_0x5f1aec[_0x212ffc(0x27c2)]){const _0x41cfda=new FileReader();_0x41cfda['readAsDataURL'](_0x1fc44a[_0x212ffc(0x1ac4)]['file']),_0x41cfda['onload']=function(_0x3183ad){const _0x48b0d0=_0x212ffc;_0x1fc44a['url']=_0x3183ad[_0x48b0d0(0x251d)][_0x48b0d0(0x1205)];};}});}function _0x6f616c(){const _0x2ce0ce=_0x3d3370;_0x1c7f97[_0x2ce0ce(0x125a)][_0x2ce0ce(0xacf)]['cancel'](),_0x3e2919['error']({'title':'Upload\x20error','msg':_0x2ce0ce(0x224d)}),_0x1c7f97['uploadState']=_0x2ce0ce(0x1460);}function _0x20b20d(){const _0x314a4e=_0x3d3370;_0x1c7f97[_0x314a4e(0xcc9)]!==_0x314a4e(0x1460)&&(_0x1c7f97['uploadState']=_0x314a4e(0x1274),_0x3e2919[_0x314a4e(0x829)]({'title':_0x314a4e(0x1a51),'msg':_0x1c7f97[_0x314a4e(0x1e9)]['file'][_0x314a4e(0x16b6)]+_0x314a4e(0xdeb)}));}function _0x309311(){const _0xc14c04=_0x3d3370;_0x44d30b[_0xc14c04(0x1426)]();}}const _0x433ded=_0x332465;;_0x1864af[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x406),'$location',_0x5537c6(0xcb9),'$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0xfbf),_0x5537c6(0x22b1),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x1864af(_0x2aab83,_0x2688b7,_0x37850f,_0x2d7d87,_0x5a3f76,_0x28deed,_0x1a495d,_0x17f5ff,_0x11b124,_0x3ad47d,_0x40f7c3,_0x445b72,_0x473d70,_0x555e78){const _0x9263ff=_0x5537c6,_0x160b53=this;_0x160b53[_0x9263ff(0xe76)]=_0x40f7c3[_0x9263ff(0x21e8)](),_0x160b53[_0x9263ff(0x1a7c)]=[],_0x160b53[_0x9263ff(0x9ca)]=_0x473d70,_0x160b53[_0x9263ff(0x8a5)]=_0x445b72,_0x160b53[_0x9263ff(0x1b1a)]=_0x555e78,_0x160b53[_0x9263ff(0xf4c)]={},_0x160b53['passwordPattern']=_0x160b53[_0x9263ff(0x9ca)]&&_0x160b53['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x160b53[_0x9263ff(0x1386)]=_0x9263ff(0x18ef),_0x160b53[_0x9263ff(0x22b1)]=angular[_0x9263ff(0x17fe)](_0x11b124),_0x160b53[_0x9263ff(0xfbf)]=_0x17f5ff,_0x160b53[_0x9263ff(0x11f9)]=![];!_0x160b53[_0x9263ff(0x22b1)]&&(_0x160b53[_0x9263ff(0x22b1)]={},_0x160b53[_0x9263ff(0x1386)]='TOOLS.NEW_TAG',_0x160b53[_0x9263ff(0x11f9)]=!![]);_0x160b53['addNewTag']=_0x3af084,_0x160b53[_0x9263ff(0xea4)]=_0x3fdf61,_0x160b53['deleteTag']=_0x5a6c8a,_0x160b53['getDateFromString']=_0x4d51c2,_0x160b53['closeDialog']=_0x1d19e3;function _0x3af084(){const _0x4775e6=_0x9263ff;_0x160b53[_0x4775e6(0x1a7c)]=[],_0x3ad47d['tag'][_0x4775e6(0x1c3f)](_0x160b53[_0x4775e6(0x22b1)])[_0x4775e6(0x1d77)][_0x4775e6(0x1cb0)](function(_0x4cfbe7){const _0x408962=_0x4775e6;_0x160b53['tags']['unshift'](_0x4cfbe7[_0x408962(0x19b2)]()),_0x1a495d['success']({'title':_0x408962(0x1aad),'msg':_0x160b53['tag'][_0x408962(0x16b6)]?_0x160b53['tag'][_0x408962(0x16b6)]+_0x408962(0x470):''}),_0x1d19e3(_0x4cfbe7);})['catch'](function(_0x52c588){const _0x3d68ea=_0x4775e6;if(_0x52c588[_0x3d68ea(0x25c)]&&_0x52c588[_0x3d68ea(0x25c)]['errors']&&_0x52c588[_0x3d68ea(0x25c)][_0x3d68ea(0x1a7c)][_0x3d68ea(0xfd0)]){_0x160b53[_0x3d68ea(0x1a7c)]=_0x52c588['data'][_0x3d68ea(0x1a7c)]||[{'message':_0x52c588[_0x3d68ea(0x147f)](),'type':_0x3d68ea(0x1216)}];for(let _0x164574=0x0;_0x164574<_0x52c588[_0x3d68ea(0x25c)][_0x3d68ea(0x1a7c)][_0x3d68ea(0xfd0)];_0x164574+=0x1){_0x1a495d[_0x3d68ea(0x218e)]({'title':_0x52c588[_0x3d68ea(0x25c)][_0x3d68ea(0x1a7c)][_0x164574][_0x3d68ea(0x66a)],'msg':_0x52c588[_0x3d68ea(0x25c)][_0x3d68ea(0x1a7c)][_0x164574][_0x3d68ea(0x155e)]});}}else _0x1a495d['error']({'title':_0x52c588[_0x3d68ea(0x291)]?'API:'+_0x52c588[_0x3d68ea(0x291)]+_0x3d68ea(0x1657)+_0x52c588[_0x3d68ea(0xc22)]:_0x3d68ea(0x1216),'msg':_0x52c588[_0x3d68ea(0x25c)]?JSON[_0x3d68ea(0x2701)](_0x52c588[_0x3d68ea(0x25c)][_0x3d68ea(0x155e)]):_0x52c588[_0x3d68ea(0x147f)]()});});}function _0x3fdf61(){const _0x51f0e1=_0x9263ff;_0x160b53['errors']=[],_0x3ad47d[_0x51f0e1(0x22b1)]['update']({'id':_0x160b53['tag']['id']},_0x160b53[_0x51f0e1(0x22b1)])[_0x51f0e1(0x1d77)]['then'](function(_0xbec784){const _0x10f7d=_0x51f0e1,_0x5ac6ba=_0x39641b()['find'](_0x160b53[_0x10f7d(0xfbf)],{'id':_0xbec784['id']});_0x5ac6ba&&_0x39641b()[_0x10f7d(0x9c1)](_0x5ac6ba,_0x39641b()['pick'](_0xbec784['toJSON'](),_0x39641b()[_0x10f7d(0x1be5)](_0x5ac6ba))),_0x1a495d['success']({'title':_0x10f7d(0x60b),'msg':_0x160b53[_0x10f7d(0x22b1)][_0x10f7d(0x16b6)]?_0x160b53[_0x10f7d(0x22b1)][_0x10f7d(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x1d19e3(_0xbec784);})[_0x51f0e1(0x1c4)](function(_0x452fe3){const _0x35b55f=_0x51f0e1;if(_0x452fe3[_0x35b55f(0x25c)]&&_0x452fe3['data'][_0x35b55f(0x1a7c)]&&_0x452fe3[_0x35b55f(0x25c)][_0x35b55f(0x1a7c)][_0x35b55f(0xfd0)]){_0x160b53[_0x35b55f(0x1a7c)]=_0x452fe3[_0x35b55f(0x25c)][_0x35b55f(0x1a7c)]||[{'message':_0x452fe3['toString'](),'type':_0x35b55f(0x1631)}];for(let _0x1c9298=0x0;_0x1c9298<_0x452fe3[_0x35b55f(0x25c)][_0x35b55f(0x1a7c)][_0x35b55f(0xfd0)];_0x1c9298++){_0x1a495d['error']({'title':_0x452fe3['data'][_0x35b55f(0x1a7c)][_0x1c9298][_0x35b55f(0x66a)],'msg':_0x452fe3[_0x35b55f(0x25c)][_0x35b55f(0x1a7c)][_0x1c9298][_0x35b55f(0x155e)]});}}else _0x1a495d['error']({'title':_0x452fe3[_0x35b55f(0x291)]?_0x35b55f(0xeb9)+_0x452fe3[_0x35b55f(0x291)]+_0x35b55f(0x1657)+_0x452fe3[_0x35b55f(0xc22)]:'api.tag.update','msg':_0x452fe3[_0x35b55f(0x25c)]?JSON[_0x35b55f(0x2701)](_0x452fe3[_0x35b55f(0x25c)][_0x35b55f(0x155e)]):_0x452fe3[_0x35b55f(0x147f)]()});});}function _0x5a6c8a(_0x56a4b3){const _0x3e556d=_0x9263ff;_0x160b53[_0x3e556d(0x1a7c)]=[];const _0x43974b=_0x2d7d87[_0x3e556d(0x1551)]()['title'](_0x3e556d(0x1a2e))['content'](_0x3e556d(0x117f))[_0x3e556d(0x15ad)](_0x3e556d(0xa64))['ok'](_0x3e556d(0x2594))[_0x3e556d(0x696)](_0x3e556d(0xde1))[_0x3e556d(0x728)](_0x56a4b3);_0x2d7d87[_0x3e556d(0xe27)](_0x43974b)[_0x3e556d(0x1cb0)](function(){const _0x12c232=_0x3e556d;_0x3ad47d['tag'][_0x12c232(0x111d)]({'id':_0x160b53[_0x12c232(0x22b1)]['id']})[_0x12c232(0x1d77)][_0x12c232(0x1cb0)](function(){const _0x294b31=_0x12c232;_0x39641b()[_0x294b31(0x152a)](_0x160b53[_0x294b31(0xfbf)],{'id':_0x160b53[_0x294b31(0x22b1)]['id']}),_0x1a495d[_0x294b31(0x829)]({'title':'Tag\x20properly\x20deleted!','msg':(_0x160b53[_0x294b31(0x22b1)][_0x294b31(0x16b6)]||_0x294b31(0x22b1))+_0x294b31(0x3f5)}),_0x1d19e3(_0x160b53['tag']);})[_0x12c232(0x1c4)](function(_0x403c3b){const _0x79ab91=_0x12c232;if(_0x403c3b[_0x79ab91(0x25c)]&&_0x403c3b[_0x79ab91(0x25c)]['errors']&&_0x403c3b[_0x79ab91(0x25c)][_0x79ab91(0x1a7c)][_0x79ab91(0xfd0)]){_0x160b53['errors']=_0x403c3b['data'][_0x79ab91(0x1a7c)]||[{'message':_0x403c3b[_0x79ab91(0x147f)](),'type':'api.tag.delete'}];for(let _0x5d3b8c=0x0;_0x5d3b8c<_0x403c3b[_0x79ab91(0x25c)][_0x79ab91(0x1a7c)]['length'];_0x5d3b8c++){_0x1a495d['error']({'title':_0x403c3b[_0x79ab91(0x25c)][_0x79ab91(0x1a7c)][_0x5d3b8c][_0x79ab91(0x66a)],'msg':_0x403c3b[_0x79ab91(0x25c)][_0x79ab91(0x1a7c)][_0x5d3b8c][_0x79ab91(0x155e)]});}}else _0x1a495d[_0x79ab91(0x218e)]({'title':_0x403c3b[_0x79ab91(0x291)]?'API:'+_0x403c3b[_0x79ab91(0x291)]+'\x20-\x20'+_0x403c3b[_0x79ab91(0xc22)]:'api.tag.delete','msg':_0x403c3b[_0x79ab91(0x25c)]?JSON['stringify'](_0x403c3b[_0x79ab91(0x25c)][_0x79ab91(0x155e)]):_0x403c3b[_0x79ab91(0x155e)]||_0x403c3b[_0x79ab91(0x147f)]()});});},function(){});}function _0x4d51c2(_0x25c0bd){return _0x25c0bd===null?undefined:new Date(_0x25c0bd);}function _0x1d19e3(_0x2ac31e){const _0x5d1e4d=_0x9263ff;_0x2d7d87[_0x5d1e4d(0x1426)](_0x2ac31e);}}const _0x48c557=_0x1864af;;const _0x24f29c=_0x5074a3['p']+_0x5537c6(0x5c9);;_0x5126a2[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),'$document',_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0xfbf),_0x5537c6(0x44a),_0x5537c6(0x2199),'api',_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x5126a2(_0x20cd9c,_0x406de0,_0x256b5f,_0x2c59dc,_0x431713,_0x47530a,_0x479335,_0x58461e,_0x5c86de,_0xf43c88,_0x145b6e,_0x546ee5,_0x1935d5,_0x492184,_0x43903b,_0xfea57a,_0x47348c){const _0x3571e7=_0x5537c6,_0x33e43b=this;_0x33e43b[_0x3571e7(0x8a5)]=_0xfea57a,_0x33e43b[_0x3571e7(0x9ca)]=_0x47348c,_0x33e43b[_0x3571e7(0xe76)]=_0x43903b[_0x3571e7(0x21e8)](),_0x33e43b[_0x3571e7(0xfbf)]=_0x5c86de||{'count':0x0,'rows':[]},_0x33e43b[_0x3571e7(0x44a)]=_0xf43c88,_0x33e43b['userProfileSection']=_0x145b6e&&_0x145b6e[_0x3571e7(0x184d)]==0x1?_0x145b6e[_0x3571e7(0x2214)][0x0]:null,_0x33e43b[_0x3571e7(0x1b1a)]=_0x43903b[_0x3571e7(0x14ea)](_0x33e43b[_0x3571e7(0x2199)]?_0x33e43b[_0x3571e7(0x2199)]['crudPermissions']:null),_0x33e43b[_0x3571e7(0xc83)]='tags',_0x33e43b[_0x3571e7(0x1d20)]='',_0x33e43b[_0x3571e7(0x1cdf)]=null,_0x33e43b[_0x3571e7(0xfae)]=[],_0x33e43b['query']={'fields':_0x3571e7(0x1cc0),'sort':_0x3571e7(0x282),'limit':0xa,'page':0x1},_0x33e43b[_0x3571e7(0xc93)]=_0x553c5d,_0x33e43b[_0x3571e7(0x27fe)]=_0x1e934b,_0x33e43b[_0x3571e7(0x829)]=_0x89f911,_0x33e43b[_0x3571e7(0x128b)]=_0x237d8b,_0x33e43b['createOrEditTag']=_0x360f98,_0x33e43b['deleteTag']=_0x33d08d,_0x33e43b[_0x3571e7(0x1c80)]=_0x14ebbb,_0x33e43b['deleteSelectedTags']=_0x826673,_0x33e43b['deselectTags']=_0x1a5d5e,_0x33e43b[_0x3571e7(0x8a7)]=_0x40a02b;function _0x553c5d(_0x29a982,_0x16593f){const _0x551a00=_0x3571e7;_0x431713[_0x551a00(0xe27)]({'controller':_0x551a00(0x155a),'controllerAs':'vm','templateUrl':_0x24f29c,'parent':angular[_0x551a00(0x1853)](_0x47530a[_0x551a00(0x1ed9)]),'targetEvent':_0x16593f,'clickOutsideToClose':!![],'locals':{'tag':_0x29a982,'tags':_0x33e43b['tags'][_0x551a00(0x2214)],'license':_0x33e43b[_0x551a00(0x8a5)],'setting':null,'crudPermissions':_0x33e43b[_0x551a00(0x1b1a)]}});}function _0x1e934b(_0x2ae68a,_0x1f9431){const _0xeb2cad=_0x3571e7,_0x388e18=_0x431713[_0xeb2cad(0x1551)]()['title'](_0xeb2cad(0x140b)+_0x39641b()[_0xeb2cad(0xa75)](_0xeb2cad(0x22b1))+'?')['htmlContent'](_0xeb2cad(0x204d)+(_0x2ae68a[_0xeb2cad(0x16b6)]||_0xeb2cad(0x22b1))+_0xeb2cad(0x1200)+'\x20will\x20be\x20deleted.')[_0xeb2cad(0x15ad)]('delete\x20tag')[_0xeb2cad(0x728)](_0x1f9431)['ok']('OK')[_0xeb2cad(0x696)](_0xeb2cad(0x24ba));_0x431713[_0xeb2cad(0xe27)](_0x388e18)[_0xeb2cad(0x1cb0)](function(){_0x33d08d(_0x2ae68a);},function(){console['log']('CANCEL');});}let _0x34e185=!![],_0x3f1ba8=0x1;_0x20cd9c['$watch'](_0x3571e7(0x957),function(_0x3d3138,_0x582f42){const _0x25311c=_0x3571e7;_0x34e185?_0x479335(function(){_0x34e185=![];}):(!_0x582f42&&(_0x3f1ba8=_0x33e43b['query'][_0x25311c(0x1c7b)]),_0x3d3138!==_0x582f42&&(_0x33e43b[_0x25311c(0xae2)][_0x25311c(0x1c7b)]=0x1),!_0x3d3138&&(_0x33e43b[_0x25311c(0xae2)]['page']=_0x3f1ba8),_0x33e43b[_0x25311c(0x128b)]());});function _0x89f911(_0x2d438e){const _0x194fb6=_0x3571e7;_0x33e43b[_0x194fb6(0xfbf)]=_0x2d438e||{'count':0x0,'rows':[]};}function _0x237d8b(){const _0x45ed6b=_0x3571e7;_0x33e43b[_0x45ed6b(0xae2)][_0x45ed6b(0x184b)]=(_0x33e43b[_0x45ed6b(0xae2)]['page']-0x1)*_0x33e43b['query'][_0x45ed6b(0x236)],_0x43903b[_0x45ed6b(0x22b6)](_0x45ed6b(0x1c60))?_0x33e43b['promise']=_0x546ee5[_0x45ed6b(0x22b1)]['get'](_0x33e43b['query'],_0x89f911)[_0x45ed6b(0x1d77)]:(_0x33e43b[_0x45ed6b(0xae2)]['id']=_0x33e43b[_0x45ed6b(0x44a)]['id'],_0x33e43b[_0x45ed6b(0xae2)][_0x45ed6b(0x1f74)]='Tags',_0x33e43b[_0x45ed6b(0x2061)]=_0x546ee5[_0x45ed6b(0x44a)][_0x45ed6b(0x1810)](_0x33e43b[_0x45ed6b(0xae2)],_0x89f911)[_0x45ed6b(0x1d77)]);}function _0x360f98(_0x2502d2,_0x2faf75){const _0x329b38=_0x3571e7;_0x431713[_0x329b38(0xe27)]({'controller':_0x329b38(0x155a),'controllerAs':'vm','templateUrl':_0x24f29c,'parent':angular['element'](_0x47530a[_0x329b38(0x1ed9)]),'targetEvent':_0x2502d2,'clickOutsideToClose':!![],'locals':{'tag':_0x2faf75,'tags':_0x33e43b[_0x329b38(0xfbf)][_0x329b38(0x2214)],'license':_0x33e43b[_0x329b38(0x8a5)],'setting':_0x33e43b['setting'],'crudPermissions':_0x33e43b[_0x329b38(0x1b1a)]}});}function _0x33d08d(_0x4c1782){const _0x276296=_0x3571e7;_0x546ee5[_0x276296(0x22b1)]['delete']({'id':_0x4c1782['id']})[_0x276296(0x1d77)][_0x276296(0x1cb0)](function(){const _0x15c7fd=_0x276296;_0x39641b()[_0x15c7fd(0x152a)](_0x33e43b[_0x15c7fd(0xfbf)]['rows'],{'id':_0x4c1782['id']}),_0x33e43b['tags']['count']-=0x1,!_0x33e43b[_0x15c7fd(0xfbf)][_0x15c7fd(0x2214)][_0x15c7fd(0xfd0)]&&_0x33e43b[_0x15c7fd(0x128b)](),_0x492184[_0x15c7fd(0x829)]({'title':_0x39641b()[_0x15c7fd(0xa75)](_0x15c7fd(0xf2d))+'\x20deleted!','msg':_0x4c1782[_0x15c7fd(0x16b6)]?_0x4c1782[_0x15c7fd(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x276296(0x1c4)](function(_0x514f03){const _0x2b1c1f=_0x276296;if(_0x514f03['data']&&_0x514f03[_0x2b1c1f(0x25c)][_0x2b1c1f(0x1a7c)]&&_0x514f03['data']['errors']['length']){_0x33e43b[_0x2b1c1f(0x1a7c)]=_0x514f03[_0x2b1c1f(0x25c)][_0x2b1c1f(0x1a7c)]||[{'message':_0x514f03[_0x2b1c1f(0x147f)](),'type':_0x2b1c1f(0x19de)}];for(let _0xb71b7b=0x0;_0xb71b7b<_0x514f03['data']['errors'][_0x2b1c1f(0xfd0)];_0xb71b7b++){_0x492184[_0x2b1c1f(0x218e)]({'title':_0x514f03[_0x2b1c1f(0x25c)][_0x2b1c1f(0x1a7c)][_0xb71b7b]['type'],'msg':_0x514f03[_0x2b1c1f(0x25c)][_0x2b1c1f(0x1a7c)][_0xb71b7b][_0x2b1c1f(0x155e)]});}}else _0x492184['error']({'title':_0x514f03['status']?_0x2b1c1f(0xeb9)+_0x514f03[_0x2b1c1f(0x291)]+_0x2b1c1f(0x1657)+_0x514f03[_0x2b1c1f(0xc22)]:_0x2b1c1f(0x19de),'msg':_0x514f03[_0x2b1c1f(0x25c)]?JSON[_0x2b1c1f(0x2701)](_0x514f03[_0x2b1c1f(0x25c)][_0x2b1c1f(0x155e)]):_0x514f03[_0x2b1c1f(0x155e)]||_0x514f03[_0x2b1c1f(0x147f)]()});});}function _0x14ebbb(){const _0x253a58=_0x3571e7,_0x4237d9=angular[_0x253a58(0x17fe)](_0x33e43b[_0x253a58(0xfae)]);return _0x33e43b['selectedTags']=[],_0x4237d9;}function _0x826673(_0x339235){const _0x3f802c=_0x3571e7,_0x226e5a=_0x431713['confirm']()['title'](_0x3f802c(0x1d45))[_0x3f802c(0x49e)](''+_0x33e43b[_0x3f802c(0xfae)][_0x3f802c(0xfd0)]+'\x20selected'+_0x3f802c(0x1b6))[_0x3f802c(0x15ad)]('delete\x20Tags')[_0x3f802c(0x728)](_0x339235)['ok']('OK')[_0x3f802c(0x696)]('CANCEL');_0x431713[_0x3f802c(0xe27)](_0x226e5a)[_0x3f802c(0x1cb0)](function(){const _0x3f5618=_0x3f802c;_0x33e43b[_0x3f5618(0xfae)][_0x3f5618(0xf90)](function(_0x5d8090){_0x33d08d(_0x5d8090);}),_0x33e43b['selectedTags']=[];});}function _0x1a5d5e(){const _0x30bd1b=_0x3571e7;_0x33e43b[_0x30bd1b(0xfae)]=[];}function _0x40a02b(){const _0x32ac7f=_0x3571e7;_0x33e43b[_0x32ac7f(0xfae)]=_0x33e43b[_0x32ac7f(0xfbf)][_0x32ac7f(0x2214)];}}const _0x2c9b78=_0x5126a2;;_0x21b550[_0x5537c6(0x15b6)]=['$scope','$state',_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x9b4),'template',_0x5537c6(0x142b),_0x5537c6(0x1774),'license','setting',_0x5537c6(0x1b1a)];function _0x21b550(_0x462fbf,_0x2e1aba,_0x32b84c,_0x525e1b,_0x4906ae,_0x351de8,_0x3ea2d5,_0x305afb,_0x26e56d,_0xd951ca,_0x2bff0b,_0x3d2a7c,_0x1da8a0,_0x372eb3){const _0x22b823=_0x5537c6,_0x2d9549=this;_0x2d9549[_0x22b823(0xe76)]=_0x2bff0b['getCurrentUser'](),_0x2d9549['errors']=[],_0x2d9549[_0x22b823(0x9ca)]=_0x1da8a0,_0x2d9549['license']=_0x3d2a7c,_0x2d9549[_0x22b823(0x1b1a)]=_0x372eb3,_0x2d9549['hasModulePermissions']={},_0x2d9549[_0x22b823(0x1b0c)]=_0x2d9549[_0x22b823(0x9ca)]&&_0x2d9549['setting'][_0x22b823(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2d9549['title']=_0x22b823(0x2836),_0x2d9549[_0x22b823(0x2330)]=angular[_0x22b823(0x17fe)](_0x26e56d),_0x2d9549[_0x22b823(0x9b4)]=_0x305afb,_0x2d9549['newTemplate']=![];!_0x2d9549[_0x22b823(0x2330)]&&(_0x2d9549[_0x22b823(0x2330)]={},_0x2d9549['title']='TOOLS.NEW_TEMPLATE',_0x2d9549['newTemplate']=!![]);_0x2d9549[_0x22b823(0x1688)]=_0x2096b3,_0x2d9549[_0x22b823(0xc64)]=_0x3b926d,_0x2d9549[_0x22b823(0x14e2)]=_0xfad3e7,_0x2d9549[_0x22b823(0x2c4)]=_0x1c8104,_0x2d9549[_0x22b823(0xda0)]=_0x16ca40;function _0x2096b3(){const _0x50f6b8=_0x22b823;_0x2d9549['errors']=[],_0xd951ca[_0x50f6b8(0x2330)][_0x50f6b8(0x1c3f)](_0x2d9549[_0x50f6b8(0x2330)])[_0x50f6b8(0x1d77)][_0x50f6b8(0x1cb0)](function(_0x6eb578){const _0x1f6ecd=_0x50f6b8;_0x2d9549[_0x1f6ecd(0x9b4)][_0x1f6ecd(0xf63)](_0x6eb578[_0x1f6ecd(0x19b2)]()),_0x3ea2d5[_0x1f6ecd(0x829)]({'title':'Template\x20properly\x20created','msg':_0x2d9549[_0x1f6ecd(0x2330)][_0x1f6ecd(0x16b6)]?_0x2d9549['template'][_0x1f6ecd(0x16b6)]+_0x1f6ecd(0x470):''}),_0x16ca40(_0x6eb578);})[_0x50f6b8(0x1c4)](function(_0x261a4c){const _0x346236=_0x50f6b8;if(_0x261a4c[_0x346236(0x25c)]&&_0x261a4c[_0x346236(0x25c)][_0x346236(0x1a7c)]&&_0x261a4c[_0x346236(0x25c)][_0x346236(0x1a7c)][_0x346236(0xfd0)]){_0x2d9549[_0x346236(0x1a7c)]=_0x261a4c['data']['errors']||[{'message':_0x261a4c[_0x346236(0x147f)](),'type':_0x346236(0x87f)}];for(let _0x42c808=0x0;_0x42c808<_0x261a4c[_0x346236(0x25c)][_0x346236(0x1a7c)][_0x346236(0xfd0)];_0x42c808+=0x1){_0x3ea2d5[_0x346236(0x218e)]({'title':_0x261a4c[_0x346236(0x25c)][_0x346236(0x1a7c)][_0x42c808]['type'],'msg':_0x261a4c[_0x346236(0x25c)]['errors'][_0x42c808][_0x346236(0x155e)]});}}else _0x3ea2d5[_0x346236(0x218e)]({'title':_0x261a4c[_0x346236(0x291)]?_0x346236(0xeb9)+_0x261a4c[_0x346236(0x291)]+_0x346236(0x1657)+_0x261a4c['statusText']:_0x346236(0x87f),'msg':_0x261a4c['data']?JSON[_0x346236(0x2701)](_0x261a4c['data'][_0x346236(0x155e)]):_0x261a4c[_0x346236(0x147f)]()});});}function _0x3b926d(){const _0x371217=_0x22b823;_0x2d9549[_0x371217(0x1a7c)]=[],_0xd951ca['template'][_0x371217(0x687)]({'id':_0x2d9549[_0x371217(0x2330)]['id']},_0x2d9549[_0x371217(0x2330)])['$promise'][_0x371217(0x1cb0)](function(_0x2eae66){const _0x132176=_0x371217,_0x3a724d=_0x39641b()[_0x132176(0x13b4)](_0x2d9549[_0x132176(0x9b4)],{'id':_0x2eae66['id']});_0x3a724d&&_0x39641b()[_0x132176(0x9c1)](_0x3a724d,_0x39641b()[_0x132176(0x169b)](_0x2eae66[_0x132176(0x19b2)](),_0x39641b()[_0x132176(0x1be5)](_0x3a724d))),_0x3ea2d5['success']({'title':_0x132176(0x1e96),'msg':_0x2d9549['template'][_0x132176(0x16b6)]?_0x2d9549[_0x132176(0x2330)]['name']+_0x132176(0xedb):''}),_0x16ca40(_0x2eae66);})[_0x371217(0x1c4)](function(_0x30d53c){const _0x5a9877=_0x371217;if(_0x30d53c['data']&&_0x30d53c[_0x5a9877(0x25c)]['errors']&&_0x30d53c[_0x5a9877(0x25c)][_0x5a9877(0x1a7c)][_0x5a9877(0xfd0)]){_0x2d9549['errors']=_0x30d53c['data'][_0x5a9877(0x1a7c)]||[{'message':_0x30d53c[_0x5a9877(0x147f)](),'type':'api.template.update'}];for(let _0x294e76=0x0;_0x294e76<_0x30d53c[_0x5a9877(0x25c)][_0x5a9877(0x1a7c)]['length'];_0x294e76++){_0x3ea2d5['error']({'title':_0x30d53c['data'][_0x5a9877(0x1a7c)][_0x294e76]['type'],'msg':_0x30d53c['data'][_0x5a9877(0x1a7c)][_0x294e76]['message']});}}else _0x3ea2d5[_0x5a9877(0x218e)]({'title':_0x30d53c[_0x5a9877(0x291)]?_0x5a9877(0xeb9)+_0x30d53c[_0x5a9877(0x291)]+_0x5a9877(0x1657)+_0x30d53c[_0x5a9877(0xc22)]:_0x5a9877(0x1f37),'msg':_0x30d53c[_0x5a9877(0x25c)]?JSON[_0x5a9877(0x2701)](_0x30d53c['data'][_0x5a9877(0x155e)]):_0x30d53c[_0x5a9877(0x147f)]()});});}function _0xfad3e7(_0x27e0be){const _0x32c697=_0x22b823;_0x2d9549[_0x32c697(0x1a7c)]=[];const _0x3233bb=_0x525e1b[_0x32c697(0x1551)]()[_0x32c697(0x1386)]('Are\x20you\x20sure?')['content']('The\x20template\x20will\x20be\x20deleted.')[_0x32c697(0x15ad)](_0x32c697(0x2418))['ok'](_0x32c697(0x2594))[_0x32c697(0x696)](_0x32c697(0xde1))[_0x32c697(0x728)](_0x27e0be);_0x525e1b[_0x32c697(0xe27)](_0x3233bb)[_0x32c697(0x1cb0)](function(){const _0x4e4671=_0x32c697;_0xd951ca[_0x4e4671(0x2330)][_0x4e4671(0x111d)]({'id':_0x2d9549[_0x4e4671(0x2330)]['id']})[_0x4e4671(0x1d77)][_0x4e4671(0x1cb0)](function(){const _0x56ecae=_0x4e4671;_0x39641b()[_0x56ecae(0x152a)](_0x2d9549[_0x56ecae(0x9b4)],{'id':_0x2d9549[_0x56ecae(0x2330)]['id']}),_0x3ea2d5[_0x56ecae(0x829)]({'title':_0x56ecae(0x1a77),'msg':(_0x2d9549['template'][_0x56ecae(0x16b6)]||'template')+_0x56ecae(0x3f5)}),_0x16ca40(_0x2d9549[_0x56ecae(0x2330)]);})[_0x4e4671(0x1c4)](function(_0x4d9c0c){const _0x143e75=_0x4e4671;if(_0x4d9c0c[_0x143e75(0x25c)]&&_0x4d9c0c[_0x143e75(0x25c)]['errors']&&_0x4d9c0c['data'][_0x143e75(0x1a7c)]['length']){_0x2d9549[_0x143e75(0x1a7c)]=_0x4d9c0c[_0x143e75(0x25c)][_0x143e75(0x1a7c)]||[{'message':_0x4d9c0c[_0x143e75(0x147f)](),'type':_0x143e75(0x2361)}];for(let _0x21d485=0x0;_0x21d485<_0x4d9c0c['data']['errors'][_0x143e75(0xfd0)];_0x21d485++){_0x3ea2d5[_0x143e75(0x218e)]({'title':_0x4d9c0c[_0x143e75(0x25c)][_0x143e75(0x1a7c)][_0x21d485][_0x143e75(0x66a)],'msg':_0x4d9c0c['data']['errors'][_0x21d485][_0x143e75(0x155e)]});}}else _0x3ea2d5[_0x143e75(0x218e)]({'title':_0x4d9c0c[_0x143e75(0x291)]?_0x143e75(0xeb9)+_0x4d9c0c['status']+'\x20-\x20'+_0x4d9c0c[_0x143e75(0xc22)]:_0x143e75(0x2361),'msg':_0x4d9c0c[_0x143e75(0x25c)]?JSON[_0x143e75(0x2701)](_0x4d9c0c['data']['message']):_0x4d9c0c[_0x143e75(0x155e)]||_0x4d9c0c[_0x143e75(0x147f)]()});});},function(){});}function _0x1c8104(_0x109b80){return _0x109b80===null?undefined:new Date(_0x109b80);}function _0x16ca40(_0x3367d5){const _0x941f5a=_0x22b823;_0x525e1b[_0x941f5a(0x1426)](_0x3367d5);}}const _0x3c966d=_0x21b550;;const _0x249260=_0x5074a3['p']+'src/js/modules/main/apps/tools/views/templates/create/dialog.html/dialog.html';;_0x1133e7[_0x5537c6(0x15b6)]=['$scope','$window',_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),'$document',_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x9b4),'userProfile',_0x5537c6(0x2199),_0x5537c6(0x142b),'msUtils',_0x5537c6(0x9bf),'Auth','license',_0x5537c6(0x9ca)];function _0x1133e7(_0x3c28e8,_0x509757,_0x3fa191,_0x10a0ea,_0x2913f2,_0x31e7da,_0xc3fc9f,_0x364ddc,_0x5f4e19,_0x291f81,_0x15c3a2,_0x2a53f7,_0xd4d02b,_0x2506e9,_0x5ef4c8,_0x514197,_0x12f6ff){const _0xc8bc7a=_0x5537c6,_0x348b0d=this;_0x348b0d[_0xc8bc7a(0x8a5)]=_0x514197,_0x348b0d[_0xc8bc7a(0x9ca)]=_0x12f6ff,_0x348b0d[_0xc8bc7a(0xe76)]=_0x5ef4c8[_0xc8bc7a(0x21e8)](),_0x348b0d[_0xc8bc7a(0x9b4)]=_0x5f4e19||{'count':0x0,'rows':[]},_0x348b0d['userProfile']=_0x291f81,_0x348b0d['userProfileSection']=_0x15c3a2&&_0x15c3a2[_0xc8bc7a(0x184d)]==0x1?_0x15c3a2[_0xc8bc7a(0x2214)][0x0]:null,_0x348b0d[_0xc8bc7a(0x1b1a)]=_0x5ef4c8[_0xc8bc7a(0x14ea)](_0x348b0d[_0xc8bc7a(0x2199)]?_0x348b0d['userProfileSection'][_0xc8bc7a(0x1b1a)]:null),_0x348b0d[_0xc8bc7a(0xc83)]='templates',_0x348b0d[_0xc8bc7a(0x1d20)]='',_0x348b0d['listOrderAsc']=null,_0x348b0d[_0xc8bc7a(0x2752)]=[],_0x348b0d[_0xc8bc7a(0xae2)]={'fields':_0xc8bc7a(0x26e5),'sort':_0xc8bc7a(0x282),'limit':0xa,'page':0x1},_0x348b0d[_0xc8bc7a(0xc93)]=_0x506b6f,_0x348b0d[_0xc8bc7a(0x27fe)]=_0x5e21b6,_0x348b0d[_0xc8bc7a(0x829)]=_0x25b2be,_0x348b0d[_0xc8bc7a(0x260)]=_0xcf5b5e,_0x348b0d['createOrEditTemplate']=_0x1c4249,_0x348b0d[_0xc8bc7a(0x14e2)]=_0x35815f,_0x348b0d['exportSelectedTemplates']=_0x1f1837,_0x348b0d[_0xc8bc7a(0x1528)]=_0x5d5cf8,_0x348b0d[_0xc8bc7a(0x2678)]=_0x51027c,_0x348b0d[_0xc8bc7a(0x703)]=_0x14fa15;function _0x506b6f(_0x3b560d,_0x266092){const _0x7a414d=_0xc8bc7a;_0x2913f2['show']({'controller':_0x7a414d(0xd73),'controllerAs':'vm','templateUrl':_0x249260,'parent':angular[_0x7a414d(0x1853)](_0x31e7da[_0x7a414d(0x1ed9)]),'targetEvent':_0x266092,'clickOutsideToClose':!![],'locals':{'template':_0x3b560d,'templates':_0x348b0d[_0x7a414d(0x9b4)][_0x7a414d(0x2214)],'license':_0x348b0d[_0x7a414d(0x8a5)],'setting':null,'crudPermissions':_0x348b0d[_0x7a414d(0x1b1a)]}});}function _0x5e21b6(_0x1ac9ef,_0x5ed09f){const _0x22cc71=_0xc8bc7a,_0x3e30cd=_0x2913f2['confirm']()[_0x22cc71(0x1386)](_0x22cc71(0x140b)+_0x39641b()[_0x22cc71(0xa75)](_0x22cc71(0x2330))+'?')[_0x22cc71(0x49e)](''+(_0x1ac9ef[_0x22cc71(0x16b6)]||'template')+_0x22cc71(0x1200)+_0x22cc71(0x1b6))[_0x22cc71(0x15ad)](_0x22cc71(0x2731))['targetEvent'](_0x5ed09f)['ok']('OK')['cancel'](_0x22cc71(0x24ba));_0x2913f2['show'](_0x3e30cd)['then'](function(){_0x35815f(_0x1ac9ef);},function(){const _0x32f1eb=_0x22cc71;console['log'](_0x32f1eb(0x24ba));});}let _0x5bdb71=!![],_0x4e2c48=0x1;_0x3c28e8[_0xc8bc7a(0x614)]('vm.query.filter',function(_0x2ce663,_0x59577e){const _0x1ccbe8=_0xc8bc7a;_0x5bdb71?_0xc3fc9f(function(){_0x5bdb71=![];}):(!_0x59577e&&(_0x4e2c48=_0x348b0d['query'][_0x1ccbe8(0x1c7b)]),_0x2ce663!==_0x59577e&&(_0x348b0d[_0x1ccbe8(0xae2)][_0x1ccbe8(0x1c7b)]=0x1),!_0x2ce663&&(_0x348b0d[_0x1ccbe8(0xae2)][_0x1ccbe8(0x1c7b)]=_0x4e2c48),_0x348b0d[_0x1ccbe8(0x260)]());});function _0x25b2be(_0x190527){const _0x4d6e58=_0xc8bc7a;_0x348b0d[_0x4d6e58(0x9b4)]=_0x190527||{'count':0x0,'rows':[]};}function _0xcf5b5e(){const _0x4b8009=_0xc8bc7a;_0x348b0d[_0x4b8009(0xae2)][_0x4b8009(0x184b)]=(_0x348b0d[_0x4b8009(0xae2)][_0x4b8009(0x1c7b)]-0x1)*_0x348b0d[_0x4b8009(0xae2)][_0x4b8009(0x236)],_0x5ef4c8['hasRole'](_0x4b8009(0x1c60))?_0x348b0d['promise']=_0x2a53f7[_0x4b8009(0x2330)][_0x4b8009(0xbf7)](_0x348b0d[_0x4b8009(0xae2)],_0x25b2be)[_0x4b8009(0x1d77)]:(_0x348b0d['query']['id']=_0x348b0d['userProfile']['id'],_0x348b0d[_0x4b8009(0xae2)][_0x4b8009(0x1f74)]=_0x4b8009(0x2195),_0x348b0d[_0x4b8009(0x2061)]=_0x2a53f7['userProfile'][_0x4b8009(0x1810)](_0x348b0d['query'],_0x25b2be)[_0x4b8009(0x1d77)]);}function _0x1c4249(_0x4bb6f5,_0x4be5ea){const _0x431b5b=_0xc8bc7a;_0x2913f2[_0x431b5b(0xe27)]({'controller':'CreateOrEditTemplateDialogController','controllerAs':'vm','templateUrl':_0x249260,'parent':angular[_0x431b5b(0x1853)](_0x31e7da[_0x431b5b(0x1ed9)]),'targetEvent':_0x4bb6f5,'clickOutsideToClose':!![],'locals':{'template':_0x4be5ea,'templates':_0x348b0d[_0x431b5b(0x9b4)][_0x431b5b(0x2214)],'license':_0x348b0d[_0x431b5b(0x8a5)],'setting':_0x348b0d[_0x431b5b(0x9ca)],'crudPermissions':_0x348b0d[_0x431b5b(0x1b1a)]}});}function _0x35815f(_0x2107a8){const _0x42e0ad=_0xc8bc7a;_0x2a53f7[_0x42e0ad(0x2330)][_0x42e0ad(0x111d)]({'id':_0x2107a8['id']})[_0x42e0ad(0x1d77)]['then'](function(){const _0xc14b57=_0x42e0ad;_0x39641b()[_0xc14b57(0x152a)](_0x348b0d[_0xc14b57(0x9b4)]['rows'],{'id':_0x2107a8['id']}),_0x348b0d[_0xc14b57(0x9b4)][_0xc14b57(0x184d)]-=0x1,!_0x348b0d[_0xc14b57(0x9b4)][_0xc14b57(0x2214)][_0xc14b57(0xfd0)]&&_0x348b0d[_0xc14b57(0x260)](),_0x2506e9[_0xc14b57(0x829)]({'title':_0x39641b()[_0xc14b57(0xa75)](_0xc14b57(0x1f93))+_0xc14b57(0x2663),'msg':_0x2107a8[_0xc14b57(0x16b6)]?_0x2107a8['name']+_0xc14b57(0x3f5):''});})[_0x42e0ad(0x1c4)](function(_0x35098b){const _0x52aeed=_0x42e0ad;if(_0x35098b[_0x52aeed(0x25c)]&&_0x35098b[_0x52aeed(0x25c)]['errors']&&_0x35098b[_0x52aeed(0x25c)][_0x52aeed(0x1a7c)][_0x52aeed(0xfd0)]){_0x348b0d['errors']=_0x35098b[_0x52aeed(0x25c)][_0x52aeed(0x1a7c)]||[{'message':_0x35098b[_0x52aeed(0x147f)](),'type':_0x52aeed(0x884)}];for(let _0xe01429=0x0;_0xe01429<_0x35098b[_0x52aeed(0x25c)]['errors'][_0x52aeed(0xfd0)];_0xe01429++){_0x2506e9[_0x52aeed(0x218e)]({'title':_0x35098b[_0x52aeed(0x25c)][_0x52aeed(0x1a7c)][_0xe01429][_0x52aeed(0x66a)],'msg':_0x35098b[_0x52aeed(0x25c)][_0x52aeed(0x1a7c)][_0xe01429][_0x52aeed(0x155e)]});}}else _0x2506e9[_0x52aeed(0x218e)]({'title':_0x35098b[_0x52aeed(0x291)]?_0x52aeed(0xeb9)+_0x35098b[_0x52aeed(0x291)]+'\x20-\x20'+_0x35098b[_0x52aeed(0xc22)]:'SYSTEM:DELETEtemplate','msg':_0x35098b['data']?JSON[_0x52aeed(0x2701)](_0x35098b[_0x52aeed(0x25c)][_0x52aeed(0x155e)]):_0x35098b[_0x52aeed(0x155e)]||_0x35098b['toString']()});});}function _0x1f1837(){const _0x31a94f=_0xc8bc7a,_0xeeda03=angular['copy'](_0x348b0d[_0x31a94f(0x2752)]);return _0x348b0d[_0x31a94f(0x2752)]=[],_0xeeda03;}function _0x5d5cf8(_0x3e945d){const _0x5c71b1=_0xc8bc7a,_0x301182=_0x2913f2['confirm']()[_0x5c71b1(0x1386)](_0x5c71b1(0xa16))['htmlContent'](_0x5c71b1(0x204d)+_0x348b0d[_0x5c71b1(0x2752)][_0x5c71b1(0xfd0)]+_0x5c71b1(0x1d6c)+_0x5c71b1(0x1b6))[_0x5c71b1(0x15ad)](_0x5c71b1(0x1fcb))[_0x5c71b1(0x728)](_0x3e945d)['ok']('OK')[_0x5c71b1(0x696)](_0x5c71b1(0x24ba));_0x2913f2[_0x5c71b1(0xe27)](_0x301182)['then'](function(){const _0x63a6dd=_0x5c71b1;_0x348b0d[_0x63a6dd(0x2752)][_0x63a6dd(0xf90)](function(_0x3f627a){_0x35815f(_0x3f627a);}),_0x348b0d['selectedTemplates']=[];});}function _0x51027c(){const _0x5cf952=_0xc8bc7a;_0x348b0d[_0x5cf952(0x2752)]=[];}function _0x14fa15(){const _0xebb85c=_0xc8bc7a;_0x348b0d[_0xebb85c(0x2752)]=_0x348b0d[_0xebb85c(0x9b4)][_0xebb85c(0x2214)];}}const _0x1eb611=_0x1133e7;;_0x334499['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q','$translate','toasty',_0x5537c6(0x1363),_0x5537c6(0x1ae0),_0x5537c6(0x142b),_0x5537c6(0x1774),'license',_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x334499(_0x445f41,_0x1b3bd6,_0x50001d,_0x562894,_0x49e8c0,_0x2a48f4,_0x39e1ac,_0x41a771,_0x1fb046,_0x5ec8df,_0x114324,_0x2f80bf,_0x1e95d3,_0x39d99c){const _0x6967ca=_0x5537c6,_0x45ac13=this;_0x45ac13[_0x6967ca(0xe76)]=_0x114324[_0x6967ca(0x21e8)](),_0x45ac13['errors']=[],_0x45ac13['setting']=_0x1e95d3,_0x45ac13[_0x6967ca(0x8a5)]=_0x2f80bf,_0x45ac13[_0x6967ca(0x1b1a)]=_0x39d99c,_0x45ac13['hasModulePermissions']={},_0x45ac13[_0x6967ca(0x1b0c)]=_0x45ac13[_0x6967ca(0x9ca)]&&_0x45ac13[_0x6967ca(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x45ac13[_0x6967ca(0x1386)]=_0x6967ca(0x2902),_0x45ac13[_0x6967ca(0x1ae0)]=angular['copy'](_0x1fb046),_0x45ac13[_0x6967ca(0x1363)]=_0x41a771,_0x45ac13[_0x6967ca(0x1811)]=![];!_0x45ac13['trunk']&&(_0x45ac13['trunk']={'active':!![],'type':'friend','dtmfmode':_0x6967ca(0x1d94),'qualify':'yes','t38pt_udptl':'no'},_0x45ac13['title']='TOOLS.NEW_TRUNK',_0x45ac13['newTrunk']=!![]);_0x45ac13['addNewTrunk']=_0x5a735f,_0x45ac13[_0x6967ca(0x56f)]=_0x384339,_0x45ac13['deleteTrunk']=_0x2bb8dc,_0x45ac13['getDateFromString']=_0x40bdf7,_0x45ac13[_0x6967ca(0xda0)]=_0x3905ed;function _0x5a735f(){const _0x414eec=_0x6967ca;_0x45ac13[_0x414eec(0x1a7c)]=[],_0x5ec8df[_0x414eec(0x1ae0)][_0x414eec(0x1c3f)](_0x45ac13[_0x414eec(0x1ae0)])[_0x414eec(0x1d77)][_0x414eec(0x1cb0)](function(_0x221036){const _0x3ea1a8=_0x414eec;_0x45ac13[_0x3ea1a8(0x1363)][_0x3ea1a8(0xf63)](_0x221036[_0x3ea1a8(0x19b2)]()),_0x39e1ac[_0x3ea1a8(0x829)]({'title':'Trunk\x20properly\x20created','msg':_0x45ac13[_0x3ea1a8(0x1ae0)][_0x3ea1a8(0x16b6)]?_0x45ac13[_0x3ea1a8(0x1ae0)][_0x3ea1a8(0x16b6)]+_0x3ea1a8(0x470):''}),_0x3905ed(_0x221036);})['catch'](function(_0x1c18e7){const _0xf1e1a8=_0x414eec;if(_0x1c18e7[_0xf1e1a8(0x25c)]&&_0x1c18e7[_0xf1e1a8(0x25c)]['errors']&&_0x1c18e7[_0xf1e1a8(0x25c)][_0xf1e1a8(0x1a7c)][_0xf1e1a8(0xfd0)]){_0x45ac13[_0xf1e1a8(0x1a7c)]=_0x1c18e7[_0xf1e1a8(0x25c)][_0xf1e1a8(0x1a7c)]||[{'message':_0x1c18e7[_0xf1e1a8(0x147f)](),'type':_0xf1e1a8(0x2474)}];for(let _0x334681=0x0;_0x334681<_0x1c18e7[_0xf1e1a8(0x25c)][_0xf1e1a8(0x1a7c)]['length'];_0x334681+=0x1){_0x39e1ac[_0xf1e1a8(0x218e)]({'title':_0x1c18e7[_0xf1e1a8(0x25c)][_0xf1e1a8(0x1a7c)][_0x334681]['type'],'msg':_0x1c18e7[_0xf1e1a8(0x25c)]['errors'][_0x334681][_0xf1e1a8(0x155e)]});}}else _0x39e1ac[_0xf1e1a8(0x218e)]({'title':_0x1c18e7[_0xf1e1a8(0x291)]?_0xf1e1a8(0xeb9)+_0x1c18e7[_0xf1e1a8(0x291)]+_0xf1e1a8(0x1657)+_0x1c18e7[_0xf1e1a8(0xc22)]:_0xf1e1a8(0x2474),'msg':_0x1c18e7[_0xf1e1a8(0x25c)]?JSON[_0xf1e1a8(0x2701)](_0x1c18e7[_0xf1e1a8(0x25c)][_0xf1e1a8(0x155e)]):_0x1c18e7['toString']()});});}function _0x384339(){const _0x435295=_0x6967ca;_0x45ac13[_0x435295(0x1a7c)]=[],_0x5ec8df['trunk'][_0x435295(0x687)]({'id':_0x45ac13[_0x435295(0x1ae0)]['id']},_0x45ac13[_0x435295(0x1ae0)])[_0x435295(0x1d77)][_0x435295(0x1cb0)](function(_0x68fd26){const _0x9dab38=_0x435295,_0x5be841=_0x39641b()[_0x9dab38(0x13b4)](_0x45ac13[_0x9dab38(0x1363)],{'id':_0x68fd26['id']});_0x5be841&&_0x39641b()['merge'](_0x5be841,_0x39641b()[_0x9dab38(0x169b)](_0x68fd26['toJSON'](),_0x39641b()[_0x9dab38(0x1be5)](_0x5be841))),_0x39e1ac[_0x9dab38(0x829)]({'title':_0x9dab38(0x215),'msg':_0x45ac13[_0x9dab38(0x1ae0)][_0x9dab38(0x16b6)]?_0x45ac13[_0x9dab38(0x1ae0)][_0x9dab38(0x16b6)]+_0x9dab38(0xedb):''}),_0x3905ed(_0x68fd26);})[_0x435295(0x1c4)](function(_0x56471b){const _0x51f5c7=_0x435295;if(_0x56471b[_0x51f5c7(0x25c)]&&_0x56471b[_0x51f5c7(0x25c)][_0x51f5c7(0x1a7c)]&&_0x56471b[_0x51f5c7(0x25c)]['errors'][_0x51f5c7(0xfd0)]){_0x45ac13[_0x51f5c7(0x1a7c)]=_0x56471b['data'][_0x51f5c7(0x1a7c)]||[{'message':_0x56471b[_0x51f5c7(0x147f)](),'type':_0x51f5c7(0x719)}];for(let _0xc86ab0=0x0;_0xc86ab0<_0x56471b['data']['errors'][_0x51f5c7(0xfd0)];_0xc86ab0++){_0x39e1ac[_0x51f5c7(0x218e)]({'title':_0x56471b[_0x51f5c7(0x25c)][_0x51f5c7(0x1a7c)][_0xc86ab0][_0x51f5c7(0x66a)],'msg':_0x56471b[_0x51f5c7(0x25c)][_0x51f5c7(0x1a7c)][_0xc86ab0][_0x51f5c7(0x155e)]});}}else _0x39e1ac['error']({'title':_0x56471b[_0x51f5c7(0x291)]?'API:'+_0x56471b[_0x51f5c7(0x291)]+'\x20-\x20'+_0x56471b[_0x51f5c7(0xc22)]:_0x51f5c7(0x719),'msg':_0x56471b[_0x51f5c7(0x25c)]?JSON['stringify'](_0x56471b[_0x51f5c7(0x25c)][_0x51f5c7(0x155e)]):_0x56471b[_0x51f5c7(0x147f)]()});});}function _0x2bb8dc(_0x51edb8){const _0x2b8abf=_0x6967ca;_0x45ac13[_0x2b8abf(0x1a7c)]=[];const _0x7e48e2=_0x562894['confirm']()['title']('Are\x20you\x20sure?')[_0x2b8abf(0x862)](_0x2b8abf(0x2582))[_0x2b8abf(0x15ad)](_0x2b8abf(0x258a))['ok'](_0x2b8abf(0x2594))['cancel'](_0x2b8abf(0xde1))[_0x2b8abf(0x728)](_0x51edb8);_0x562894[_0x2b8abf(0xe27)](_0x7e48e2)[_0x2b8abf(0x1cb0)](function(){const _0x54adf9=_0x2b8abf;_0x5ec8df[_0x54adf9(0x1ae0)][_0x54adf9(0x111d)]({'id':_0x45ac13[_0x54adf9(0x1ae0)]['id']})[_0x54adf9(0x1d77)][_0x54adf9(0x1cb0)](function(){const _0x4cfe61=_0x54adf9;_0x39641b()[_0x4cfe61(0x152a)](_0x45ac13[_0x4cfe61(0x1363)],{'id':_0x45ac13[_0x4cfe61(0x1ae0)]['id']}),_0x39e1ac['success']({'title':_0x4cfe61(0x2069),'msg':(_0x45ac13[_0x4cfe61(0x1ae0)][_0x4cfe61(0x16b6)]||_0x4cfe61(0x1ae0))+_0x4cfe61(0x3f5)}),_0x3905ed(_0x45ac13[_0x4cfe61(0x1ae0)]);})[_0x54adf9(0x1c4)](function(_0x116968){const _0x35d914=_0x54adf9;if(_0x116968[_0x35d914(0x25c)]&&_0x116968[_0x35d914(0x25c)][_0x35d914(0x1a7c)]&&_0x116968[_0x35d914(0x25c)][_0x35d914(0x1a7c)][_0x35d914(0xfd0)]){_0x45ac13[_0x35d914(0x1a7c)]=_0x116968[_0x35d914(0x25c)][_0x35d914(0x1a7c)]||[{'message':_0x116968[_0x35d914(0x147f)](),'type':_0x35d914(0x20e3)}];for(let _0x819cc9=0x0;_0x819cc9<_0x116968[_0x35d914(0x25c)][_0x35d914(0x1a7c)][_0x35d914(0xfd0)];_0x819cc9++){_0x39e1ac['error']({'title':_0x116968[_0x35d914(0x25c)][_0x35d914(0x1a7c)][_0x819cc9][_0x35d914(0x66a)],'msg':_0x116968[_0x35d914(0x25c)][_0x35d914(0x1a7c)][_0x819cc9]['message']});}}else _0x39e1ac[_0x35d914(0x218e)]({'title':_0x116968['status']?_0x35d914(0xeb9)+_0x116968[_0x35d914(0x291)]+'\x20-\x20'+_0x116968[_0x35d914(0xc22)]:_0x35d914(0x20e3),'msg':_0x116968['data']?JSON[_0x35d914(0x2701)](_0x116968[_0x35d914(0x25c)]['message']):_0x116968[_0x35d914(0x155e)]||_0x116968[_0x35d914(0x147f)]()});});},function(){});}function _0x40bdf7(_0x5148eb){return _0x5148eb===null?undefined:new Date(_0x5148eb);}function _0x3905ed(_0x3bf2c7){const _0x45c031=_0x6967ca;_0x562894[_0x45c031(0x1426)](_0x3bf2c7);}}const _0x54633e=_0x334499;;_0x683642[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x406),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1ae0),_0x5537c6(0x1363),_0x5537c6(0x1ae)];function _0x683642(_0x4d6316,_0x51f405,_0x40a928,_0x24f50e,_0x3dd582,_0x2a8aa,_0x2b524c){const _0xcfc213=_0x5537c6,_0x1ee743=this;_0x1ee743[_0xcfc213(0x1811)]=!![],_0x1ee743['trunk']=angular['copy'](_0x3dd582),_0x1ee743[_0xcfc213(0x1363)]=_0x2a8aa,_0x1ee743[_0xcfc213(0x1386)]=_0x2b524c[_0xcfc213(0x25cc)](_0xcfc213(0x1c48));_0x3dd582&&_0x3dd582[_0xcfc213(0x16b6)]&&(_0x1ee743[_0xcfc213(0x1386)]+=':\x20'+_0x3dd582[_0xcfc213(0x16b6)]);_0x1ee743[_0xcfc213(0x2849)]=_0x280968,_0x1ee743[_0xcfc213(0xda0)]=_0x15c328;function _0x280968(){const _0x488433=_0xcfc213;return _0x24f50e[_0x488433(0x1ae0)][_0x488433(0x11bc)]({'id':_0x3dd582['id']},_0x1ee743[_0x488433(0x1ae0)])['$promise']['then'](function(_0x29a745){const _0x6ad427=_0x488433;_0x1ee743[_0x6ad427(0x1363)][_0x6ad427(0xf63)](_0x29a745['toJSON']()),_0x40a928[_0x6ad427(0x829)]({'title':_0x6ad427(0x10ec),'msg':_0x1ee743[_0x6ad427(0x1ae0)][_0x6ad427(0x16b6)]?_0x1ee743[_0x6ad427(0x1ae0)][_0x6ad427(0x16b6)]+_0x6ad427(0x2204):''}),_0x51f405['go'](_0x6ad427(0xbe6),{'id':_0x29a745['id']}),_0x15c328(_0x29a745);})[_0x488433(0x1c4)](function(_0x35d450){const _0x2f3e0f=_0x488433;if(_0x35d450[_0x2f3e0f(0x25c)]&&_0x35d450[_0x2f3e0f(0x25c)][_0x2f3e0f(0x1a7c)]&&_0x35d450['data'][_0x2f3e0f(0x1a7c)][_0x2f3e0f(0xfd0)]){_0x1ee743[_0x2f3e0f(0x1a7c)]=_0x35d450[_0x2f3e0f(0x25c)]['errors']||[{'message':_0x35d450[_0x2f3e0f(0x147f)](),'type':_0x2f3e0f(0x2830)}];for(let _0x1bd3ea=0x0;_0x1bd3ea<_0x35d450[_0x2f3e0f(0x25c)][_0x2f3e0f(0x1a7c)][_0x2f3e0f(0xfd0)];_0x1bd3ea+=0x1){_0x40a928['error']({'title':_0x35d450[_0x2f3e0f(0x25c)][_0x2f3e0f(0x1a7c)][_0x1bd3ea][_0x2f3e0f(0x66a)],'msg':_0x35d450['data'][_0x2f3e0f(0x1a7c)][_0x1bd3ea][_0x2f3e0f(0x155e)]});}}else _0x40a928['error']({'title':_0x35d450[_0x2f3e0f(0x291)]?_0x2f3e0f(0xeb9)+_0x35d450[_0x2f3e0f(0x291)]+_0x2f3e0f(0x1657)+_0x35d450['statusText']:_0x2f3e0f(0x2830),'msg':_0x35d450[_0x2f3e0f(0x25c)]?JSON[_0x2f3e0f(0x2701)](_0x35d450[_0x2f3e0f(0x25c)][_0x2f3e0f(0x155e)]):_0x35d450[_0x2f3e0f(0x147f)]()});});}function _0x15c328(_0x9f7e7e){const _0x343c7e=_0xcfc213;_0x4d6316[_0x343c7e(0x1426)](_0x9f7e7e);}}const _0x5cd9b0=_0x683642;;const _0x373406=_0x5074a3['p']+_0x5537c6(0x28e7);;_0x3225c8[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x1ae),'license',_0x5537c6(0x9ca),_0x5537c6(0x142b),_0x5537c6(0x9bf),'Auth',_0x5537c6(0x1ae0),_0x5537c6(0x2199)];function _0x3225c8(_0x333665,_0xe3c0c3,_0x7c1d77,_0x49e15c,_0x352c1e,_0x54ed0f,_0x442dfe,_0x4675dc,_0x4d3578,_0x4e718f,_0x2abd86,_0x5df03d){const _0x4ca06d=_0x5537c6,_0x32b884=this;_0x32b884[_0x4ca06d(0xe76)]=_0x4e718f[_0x4ca06d(0x21e8)](),_0x32b884[_0x4ca06d(0x8a5)]=_0x54ed0f,_0x32b884['setting']=_0x442dfe,_0x32b884[_0x4ca06d(0x1b0c)]=_0x32b884['setting'][_0x4ca06d(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x32b884['location']=_0xe3c0c3['protocol']()+_0x4ca06d(0x138b)+_0xe3c0c3[_0x4ca06d(0x17d8)](),_0x32b884[_0x4ca06d(0x1ae0)]=_0x2abd86||_0x333665[_0x4ca06d(0x1dfe)][_0x4ca06d(0x1ae0)]||{},_0x32b884[_0x4ca06d(0x2199)]=_0x5df03d&&_0x5df03d[_0x4ca06d(0x184d)]==0x1?_0x5df03d[_0x4ca06d(0x2214)][0x0]:null,_0x32b884[_0x4ca06d(0x1b1a)]=_0x4e718f[_0x4ca06d(0x14ea)](_0x32b884[_0x4ca06d(0x2199)]?_0x32b884['userProfileSection']['crudPermissions']:null),_0x32b884[_0x4ca06d(0xf4c)]={},_0x32b884[_0x4ca06d(0x8ec)]=_0x333665[_0x4ca06d(0x1dfe)][_0x4ca06d(0x291e)]||0x0,_0x32b884[_0x4ca06d(0x47d)]=_0xb0b17e,_0x32b884['clonedialog']=_0x93c5b9,_0x32b884[_0x4ca06d(0x494)]=_0x4d3578[_0x4ca06d(0x28c7)],_0x32b884[_0x4ca06d(0x185b)]=_0x22a64b,_0x32b884[_0x4ca06d(0x56f)]=_0x2af471,_0x4e718f['hasRole'](_0x4ca06d(0x1c60))?_0x4675dc[_0x4ca06d(0x1da5)][_0x4ca06d(0xbf7)]({'fields':_0x4ca06d(0x43c),'sort':_0x4ca06d(0x16b6)})[_0x4ca06d(0x1d77)][_0x4ca06d(0x1cb0)](function(_0x4c371d){const _0x4cd350=_0x4ca06d;_0x32b884[_0x4cd350(0x14f6)]=_0x4c371d[_0x4cd350(0x2214)]||[];})['catch'](function(_0x55379c){const _0x47a5b4=_0x4ca06d;_0x4d3578[_0x47a5b4(0x218e)]({'title':_0x55379c[_0x47a5b4(0x291)]?'API:'+_0x55379c['status']+'\x20-\x20'+_0x55379c[_0x47a5b4(0xc22)]:_0x47a5b4(0x2072),'msg':_0x55379c[_0x47a5b4(0x25c)]?JSON[_0x47a5b4(0x2701)](_0x55379c['data']):_0x55379c[_0x47a5b4(0x147f)]()});}):_0x4675dc['voiceContext'][_0x4ca06d(0xbf7)]({'fields':_0x4ca06d(0x43c),'sort':_0x4ca06d(0x16b6)})[_0x4ca06d(0x1d77)][_0x4ca06d(0x1cb0)](function(_0x245988){const _0x292f71=_0x4ca06d;_0x32b884[_0x292f71(0x14f6)]=_0x245988['rows']||[];})[_0x4ca06d(0x1cb0)](function(){const _0x39f53b=_0x4ca06d;return _0x4675dc[_0x39f53b(0x2199)][_0x39f53b(0xbf7)]({'userProfileId':_0x32b884['currentUser'][_0x39f53b(0x13c1)],'sectionId':0x195})[_0x39f53b(0x1d77)];})[_0x4ca06d(0x1cb0)](function(_0x13a10f){const _0x2d28d3=_0x4ca06d,_0x3ff62b=_0x13a10f&&_0x13a10f[_0x2d28d3(0x2214)]?_0x13a10f[_0x2d28d3(0x2214)][0x0]:null;if(!_0x3ff62b)return _0x4675dc[_0x2d28d3(0x1da5)][_0x2d28d3(0xbf7)]({'fields':_0x2d28d3(0x43c),'sort':_0x2d28d3(0x16b6),'defaultEntry':0x1})[_0x2d28d3(0x1d77)][_0x2d28d3(0x1cb0)](function(_0x18f890){const _0x1db137=_0x2d28d3;_0x32b884[_0x1db137(0x14f6)]=_0x18f890['rows']||[];});else{if(!_0x3ff62b[_0x2d28d3(0x12f4)])return _0x4675dc[_0x2d28d3(0x1198)][_0x2d28d3(0xbf7)]({'sectionId':_0x3ff62b['id']})[_0x2d28d3(0x1d77)]['then'](function(_0x55834c){const _0x3c7c92=_0x2d28d3,_0x3d7c0b=_0x39641b()[_0x3c7c92(0x1de2)](_0x55834c['rows'],function(_0x45e8dc){const _0x1be6cc=_0x3c7c92;return _0x39641b()['find'](_0x32b884[_0x1be6cc(0x14f6)],{'id':_0x45e8dc[_0x1be6cc(0x2982)]});});let _0x381fe3=null;_0x32b884[_0x3c7c92(0x1ae0)]&&(_0x381fe3=_0x39641b()[_0x3c7c92(0x13b4)](_0x32b884[_0x3c7c92(0x14f6)],{'name':_0x32b884[_0x3c7c92(0x1ae0)]['context']}));if(_0x381fe3&&!_0x39641b()[_0x3c7c92(0x727)](_0x3d7c0b,['id',_0x381fe3['id']])){const _0x25aced=_0x39641b()[_0x3c7c92(0x13b4)](_0x32b884[_0x3c7c92(0x14f6)],{'id':_0x381fe3['id']});_0x25aced[_0x3c7c92(0x15da)]=![],_0x3d7c0b[_0x3c7c92(0x2785)](_0x25aced);}_0x32b884[_0x3c7c92(0x14f6)]=_0x3d7c0b;});}})[_0x4ca06d(0x1c4)](function(_0x15e3b0){const _0x17c839=_0x4ca06d;_0x4d3578['error']({'title':_0x15e3b0[_0x17c839(0x291)]?_0x17c839(0xeb9)+_0x15e3b0[_0x17c839(0x291)]+_0x17c839(0x1657)+_0x15e3b0[_0x17c839(0xc22)]:_0x17c839(0x5ac),'msg':_0x15e3b0[_0x17c839(0x25c)]?JSON[_0x17c839(0x2701)](_0x15e3b0[_0x17c839(0x25c)]):_0x15e3b0['toString']()});});function _0xb0b17e(){const _0x2d189d=_0x4ca06d;if(_0x4e718f[_0x2d189d(0x22b6)](_0x2d189d(0x1c60)))_0x333665['go'](_0x2d189d(0x1bb2),{});else return _0x4675dc[_0x2d189d(0x2199)][_0x2d189d(0xbf7)]({'userProfileId':_0x4e718f[_0x2d189d(0x21e8)]()['userProfileId'],'sectionId':0x19b})[_0x2d189d(0x1d77)][_0x2d189d(0x1cb0)](function(_0x288dd8){const _0x1199e7=_0x2d189d,_0x3ed205=_0x288dd8&&_0x288dd8[_0x1199e7(0x2214)]?_0x288dd8[_0x1199e7(0x2214)][0x0]:null;_0x3ed205&&_0x3ed205['enabled']?_0x333665['go'](_0x1199e7(0x1bb2),{}):_0x4d3578[_0x1199e7(0x28c7)]({'title':_0x352c1e[_0x1199e7(0x25cc)](_0x1199e7(0x370)),'msg':_0x352c1e[_0x1199e7(0x25cc)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x2d189d(0x1c4)](function(_0x35a3d3){const _0x10c32b=_0x2d189d;_0x4d3578[_0x10c32b(0x218e)]({'title':_0x35a3d3[_0x10c32b(0x291)]?'API:'+_0x35a3d3[_0x10c32b(0x291)]+_0x10c32b(0x1657)+_0x35a3d3[_0x10c32b(0xc22)]:_0x10c32b(0x17ba),'msg':_0x35a3d3[_0x10c32b(0x291)]?JSON[_0x10c32b(0x2701)](_0x35a3d3[_0x10c32b(0x25c)]):_0x35a3d3[_0x10c32b(0x147f)]()});});}function _0x93c5b9(_0x342ef3,_0x52394c){const _0x4c173c=_0x4ca06d;_0x7c1d77[_0x4c173c(0xe27)]({'controller':_0x4c173c(0x143b),'controllerAs':'vm','templateUrl':_0x373406,'parent':angular[_0x4c173c(0x1853)](_0x49e15c['body']),'targetEvent':_0x52394c,'clickOutsideToClose':!![],'locals':{'trunk':_0x342ef3,'trunks':_0x32b884['trunks']?_0x32b884['trunks']['rows']:[],'crudPermissions':_0x32b884[_0x4c173c(0x1b1a)]}});}function _0x22a64b(){const _0x45aff4=_0x4ca06d;_0x333665['go'](_0x45aff4(0x2211),{},{'reload':_0x45aff4(0x2211)});}function _0x2af471(){const _0x35637d=_0x4ca06d;_0x4675dc[_0x35637d(0x1ae0)][_0x35637d(0x687)]({'id':_0x32b884[_0x35637d(0x1ae0)]['id']},_0x32b884[_0x35637d(0x1ae0)])[_0x35637d(0x1d77)][_0x35637d(0x1cb0)](function(){const _0x34341a=_0x35637d;_0x4d3578[_0x34341a(0x829)]({'title':_0x34341a(0x3b5),'msg':_0x32b884[_0x34341a(0x1ae0)]['name']?_0x32b884[_0x34341a(0x1ae0)]['name']+_0x34341a(0x1068):''});})[_0x35637d(0x1c4)](function(_0x30bd6a){const _0x3ef7a0=_0x35637d;_0x4d3578[_0x3ef7a0(0x218e)]({'title':_0x30bd6a[_0x3ef7a0(0x291)]?_0x3ef7a0(0xeb9)+_0x30bd6a['status']+_0x3ef7a0(0x1657)+_0x30bd6a[_0x3ef7a0(0xc22)]:_0x3ef7a0(0x25dd),'msg':_0x30bd6a[_0x3ef7a0(0x25c)]?JSON[_0x3ef7a0(0x2701)](_0x30bd6a[_0x3ef7a0(0x25c)]):_0x30bd6a[_0x3ef7a0(0x147f)]()});});}}const _0x1798ad=_0x3225c8;;const _0x5c162c=_0x5074a3['p']+_0x5537c6(0x73a);;_0x2c5cdc['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x2168),'$translate',_0x5537c6(0x1363),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),'msUtils','toasty',_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x2c5cdc(_0x1dd408,_0x1a23f5,_0x24151a,_0xdedd33,_0x4439a1,_0x323f36,_0x538e93,_0x4ab768,_0x28e9fc,_0x5510ab,_0x5c0114,_0xfcfa73,_0x4df9d8,_0x8820bc,_0x428e87,_0x49b5e3,_0x28f3fa){const _0x3ebd2f=_0x5537c6,_0x56057a=this;_0x56057a['license']=_0x49b5e3,_0x56057a['setting']=_0x28f3fa,_0x56057a['currentUser']=_0x428e87[_0x3ebd2f(0x21e8)](),_0x56057a['trunks']=_0x28e9fc||{'count':0x0,'rows':[]},_0x56057a[_0x3ebd2f(0x44a)]=_0x5510ab,_0x56057a[_0x3ebd2f(0x2199)]=_0x5c0114&&_0x5c0114[_0x3ebd2f(0x184d)]==0x1?_0x5c0114[_0x3ebd2f(0x2214)][0x0]:null,_0x56057a[_0x3ebd2f(0x1b1a)]=_0x428e87['parseCrudPermissions'](_0x56057a['userProfileSection']?_0x56057a[_0x3ebd2f(0x2199)][_0x3ebd2f(0x1b1a)]:null),_0x56057a['table']='trunks',_0x56057a[_0x3ebd2f(0x1d20)]='',_0x56057a[_0x3ebd2f(0x1cdf)]=null,_0x56057a['selectedTrunks']=[],_0x56057a[_0x3ebd2f(0xae2)]={'fields':_0x3ebd2f(0x26ed),'sort':_0x3ebd2f(0x282),'limit':0xa,'page':0x1},_0x56057a[_0x3ebd2f(0x101d)]=_0x39641b()[_0x3ebd2f(0x2631)]([{'option':_0x3ebd2f(0x1c36),'value':'\x27friend\x27'},{'option':'User','value':_0x3ebd2f(0xe2f)},{'option':'Peer','value':_0x3ebd2f(0x83c)}],function(_0x8eab0d){const _0x347a56=_0x3ebd2f;return _0x39641b()[_0x347a56(0x288f)](_0x8eab0d[_0x347a56(0x327)],new RegExp('\x27','g'),'');}),_0x56057a[_0x3ebd2f(0x1ca6)]=_0x39641b()[_0x3ebd2f(0x2631)]([{'option':'rfc2833','value':_0x3ebd2f(0x524)},{'option':_0x3ebd2f(0x28c7),'value':_0x3ebd2f(0x2118)},{'option':_0x3ebd2f(0xe3b),'value':_0x3ebd2f(0x822)},{'option':_0x3ebd2f(0x21cb),'value':_0x3ebd2f(0x1f55)},{'option':_0x3ebd2f(0x968),'value':'\x27auto\x27'}],function(_0x481409){const _0xc4df5a=_0x3ebd2f;return _0x39641b()[_0xc4df5a(0x288f)](_0x481409[_0xc4df5a(0x327)],new RegExp('\x27','g'),'');}),_0x56057a[_0x3ebd2f(0x571)]=_0x39641b()[_0x3ebd2f(0x2631)]([{'option':'force_rport','value':_0x3ebd2f(0x1f64)},{'option':_0x3ebd2f(0x18c7),'value':'\x27comedia\x27'},{'option':_0x3ebd2f(0x150d),'value':_0x3ebd2f(0x27e4)},{'option':'no','value':_0x3ebd2f(0x15b9)},{'option':_0x3ebd2f(0x382),'value':_0x3ebd2f(0x1d2c)},{'option':'route','value':_0x3ebd2f(0x1fcc)}],function(_0x113ab4){const _0x4e6243=_0x3ebd2f;return _0x39641b()[_0x4e6243(0x288f)](_0x113ab4[_0x4e6243(0x327)],new RegExp('\x27','g'),'');}),_0x56057a['arrayqualify']=_0x39641b()[_0x3ebd2f(0x2631)]([{'option':_0x3ebd2f(0x150d),'value':'\x27yes\x27'},{'option':'no','value':'\x27no\x27'}],function(_0x38f9fc){const _0x2b5c2b=_0x3ebd2f;return _0x39641b()[_0x2b5c2b(0x288f)](_0x38f9fc[_0x2b5c2b(0x327)],new RegExp('\x27','g'),'');}),_0x56057a[_0x3ebd2f(0x1462)]=_0x39641b()[_0x3ebd2f(0x2631)]([{'option':_0x3ebd2f(0xaba),'value':_0x3ebd2f(0x2079)},{'option':_0x3ebd2f(0x128d),'value':_0x3ebd2f(0x217a)},{'option':'gsm','value':_0x3ebd2f(0x24ce)},{'option':_0x3ebd2f(0x4a4),'value':'\x27g723\x27'},{'option':'g726','value':'\x27g726\x27'},{'option':'g722','value':'\x27g722\x27'},{'option':'g729','value':_0x3ebd2f(0x1b75)},{'option':_0x3ebd2f(0xff2),'value':_0x3ebd2f(0xfac)},{'option':_0x3ebd2f(0x14cc),'value':_0x3ebd2f(0x102f)},{'option':_0x3ebd2f(0x278c),'value':_0x3ebd2f(0x1ca5)}],function(_0x483e53){const _0x25bdde=_0x3ebd2f;return _0x39641b()[_0x25bdde(0x288f)](_0x483e53[_0x25bdde(0x327)],new RegExp('\x27','g'),'');}),_0x56057a[_0x3ebd2f(0x17e3)]=_0x39641b()[_0x3ebd2f(0x2631)]([{'option':_0x3ebd2f(0x477),'value':_0x3ebd2f(0x1f78)},{'option':_0x3ebd2f(0x9e9),'value':_0x3ebd2f(0x2443)},{'option':'very','value':_0x3ebd2f(0x28f7)}],function(_0xedd58b){return _0x39641b()['replace'](_0xedd58b['value'],new RegExp('\x27','g'),'');}),_0x56057a['arraydirectmedia']=_0x39641b()[_0x3ebd2f(0x2631)]([{'option':'yes','value':_0x3ebd2f(0x27e4)},{'option':'no','value':'\x27no\x27'},{'option':'nonat','value':_0x3ebd2f(0x28c0)},{'option':_0x3ebd2f(0x687),'value':_0x3ebd2f(0x2620)}],function(_0x4da06c){const _0x20dcc5=_0x3ebd2f;return _0x39641b()[_0x20dcc5(0x288f)](_0x4da06c[_0x20dcc5(0x327)],new RegExp('\x27','g'),'');}),_0x56057a[_0x3ebd2f(0x6e8)]=_0x39641b()[_0x3ebd2f(0x2631)]([{'option':_0x3ebd2f(0x150d),'value':_0x3ebd2f(0x27e4)},{'option':'no','value':_0x3ebd2f(0x15b9)}],function(_0x318249){const _0x59c5e4=_0x3ebd2f;return _0x39641b()[_0x59c5e4(0x288f)](_0x318249[_0x59c5e4(0x327)],new RegExp('\x27','g'),'');}),_0x56057a[_0x3ebd2f(0x2147)]=_0x39641b()[_0x3ebd2f(0x2631)]([{'option':'yes','value':_0x3ebd2f(0x27e4)},{'option':'no','value':'\x27no\x27'}],function(_0x910f79){const _0x54c31=_0x3ebd2f;return _0x39641b()[_0x54c31(0x288f)](_0x910f79[_0x54c31(0x327)],new RegExp('\x27','g'),'');}),_0x56057a[_0x3ebd2f(0x2c9)]=_0x39641b()[_0x3ebd2f(0x2631)]([{'option':_0x3ebd2f(0x150d),'value':'\x27yes\x27'},{'option':'no','value':_0x3ebd2f(0x15b9)}],function(_0xf1e00a){const _0x5c6885=_0x3ebd2f;return _0x39641b()[_0x5c6885(0x288f)](_0xf1e00a[_0x5c6885(0x327)],new RegExp('\x27','g'),'');}),_0x56057a['arraysendrpid']=_0x39641b()['keyBy']([{'option':_0x3ebd2f(0x150d),'value':'\x27yes\x27'},{'option':'no','value':'\x27no\x27'},{'option':_0x3ebd2f(0x1dbc),'value':_0x3ebd2f(0x2527)}],function(_0xfdf4b6){const _0x62ada7=_0x3ebd2f;return _0x39641b()['replace'](_0xfdf4b6[_0x62ada7(0x327)],new RegExp('\x27','g'),'');}),_0x56057a[_0x3ebd2f(0xa08)]=_0x39641b()['keyBy']([{'option':'yes','value':'\x27yes\x27'},{'option':'no','value':_0x3ebd2f(0x15b9)}],function(_0x7d0a9d){const _0x3e6ff7=_0x3ebd2f;return _0x39641b()[_0x3e6ff7(0x288f)](_0x7d0a9d[_0x3e6ff7(0x327)],new RegExp('\x27','g'),'');}),_0x56057a['arraytransport']=_0x39641b()['keyBy']([{'option':_0x3ebd2f(0xa9d),'value':'\x27udp\x27'},{'option':_0x3ebd2f(0x2828),'value':_0x3ebd2f(0xd76)},{'option':'ws','value':'\x27ws\x27'},{'option':_0x3ebd2f(0x1e14),'value':_0x3ebd2f(0x49d)},{'option':_0x3ebd2f(0x132c),'value':_0x3ebd2f(0x1393)}],function(_0x2715b2){return _0x39641b()['replace'](_0x2715b2['value'],new RegExp('\x27','g'),'');}),_0x56057a[_0x3ebd2f(0x1b79)]=_0x39641b()[_0x3ebd2f(0x2631)]([{'option':_0x3ebd2f(0x1ab8),'value':'\x27yes\x27'},{'option':'No','value':_0x3ebd2f(0x15b9)},{'option':'Always','value':_0x3ebd2f(0x2a2)}],function(_0x2ed063){const _0x280c7f=_0x3ebd2f;return _0x39641b()[_0x280c7f(0x288f)](_0x2ed063[_0x280c7f(0x327)],new RegExp('\x27','g'),'');}),_0x56057a[_0x3ebd2f(0x235d)]=_0x5e9adb,_0x56057a[_0x3ebd2f(0x388)]=_0x400876,_0x56057a[_0x3ebd2f(0x649)]=_0x51f6aa,_0x56057a[_0x3ebd2f(0x27fe)]=_0x201818,_0x56057a['success']=_0x30ca43,_0x56057a['getTrunks']=_0x31589b,_0x56057a[_0x3ebd2f(0x2865)]=_0x532679,_0x56057a[_0x3ebd2f(0x6e1)]=_0x411369,_0x56057a[_0x3ebd2f(0x1b2d)]=_0x5d1281,_0x56057a['deleteSelectedTrunks']=_0x2dffe6,_0x56057a[_0x3ebd2f(0x2565)]=_0x291278,_0x56057a[_0x3ebd2f(0xc30)]=_0x5a301b;function _0x5e9adb(_0x3b8637){_0x24151a['go']('app.tools.trunks.edit',{'id':_0x3b8637['id'],'trunk':_0x3b8637,'crudPermissions':_0x56057a['crudPermissions']});}function _0x400876(_0x2f4ada,_0xd47f87){const _0x2885b7=_0x3ebd2f;_0x4439a1[_0x2885b7(0xe27)]({'controller':_0x2885b7(0x143b),'controllerAs':'vm','templateUrl':_0x373406,'parent':angular[_0x2885b7(0x1853)](_0x323f36['body']),'targetEvent':_0xd47f87,'clickOutsideToClose':!![],'locals':{'trunk':_0x2f4ada,'trunks':_0x56057a[_0x2885b7(0x1363)]?_0x56057a['trunks'][_0x2885b7(0x2214)]:[],'crudPermissions':_0x56057a['crudPermissions']}});}function _0x51f6aa(){const _0x3b4a95=_0x3ebd2f;if(_0x428e87[_0x3b4a95(0x22b6)]('admin'))_0x24151a['go'](_0x3b4a95(0x1bb2),{});else return _0xfcfa73['userProfileSection'][_0x3b4a95(0xbf7)]({'userProfileId':_0x428e87[_0x3b4a95(0x21e8)]()[_0x3b4a95(0x13c1)],'sectionId':0x19b})['$promise'][_0x3b4a95(0x1cb0)](function(_0x4f3fa5){const _0x3d1df9=_0x3b4a95,_0x17d881=_0x4f3fa5&&_0x4f3fa5[_0x3d1df9(0x2214)]?_0x4f3fa5['rows'][0x0]:null;_0x17d881&&_0x17d881[_0x3d1df9(0x281c)]?_0x24151a['go']('app.voice.realtime.trunks',{}):_0x8820bc[_0x3d1df9(0x28c7)]({'title':_0x4ab768['instant'](_0x3d1df9(0x370)),'msg':_0x4ab768['instant'](_0x3d1df9(0x33a))});})[_0x3b4a95(0x1c4)](function(_0x25bea2){const _0x1394d0=_0x3b4a95;_0x8820bc[_0x1394d0(0x218e)]({'title':_0x25bea2[_0x1394d0(0x291)]?'API:'+_0x25bea2[_0x1394d0(0x291)]+_0x1394d0(0x1657)+_0x25bea2[_0x1394d0(0xc22)]:_0x1394d0(0x17ba),'msg':_0x25bea2[_0x1394d0(0x291)]?JSON[_0x1394d0(0x2701)](_0x25bea2[_0x1394d0(0x25c)]):_0x25bea2[_0x1394d0(0x147f)]()});});}function _0x201818(_0x3b90b7,_0x526300){const _0xc42b86=_0x3ebd2f,_0x2f2fe5=_0x4439a1[_0xc42b86(0x1551)]()[_0xc42b86(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x39641b()[_0xc42b86(0xa75)](_0xc42b86(0x1ae0))+'?')[_0xc42b86(0x49e)](_0xc42b86(0x204d)+(_0x3b90b7[_0xc42b86(0x16b6)]||'trunk')+_0xc42b86(0x1200)+_0xc42b86(0x1b6))[_0xc42b86(0x15ad)](_0xc42b86(0x1126))['targetEvent'](_0x526300)['ok']('OK')['cancel'](_0xc42b86(0x24ba));_0x4439a1[_0xc42b86(0xe27)](_0x2f2fe5)['then'](function(){_0x411369(_0x3b90b7);},function(){const _0x174333=_0xc42b86;console[_0x174333(0x1b4f)](_0x174333(0x24ba));});}let _0x348ca8=!![],_0x5c9db5=0x1;_0x1dd408['$watch'](_0x3ebd2f(0x957),function(_0x8cf6fa,_0x2a84e4){const _0x548708=_0x3ebd2f;_0x348ca8?_0x538e93(function(){_0x348ca8=![];}):(!_0x2a84e4&&(_0x5c9db5=_0x56057a[_0x548708(0xae2)][_0x548708(0x1c7b)]),_0x8cf6fa!==_0x2a84e4&&(_0x56057a[_0x548708(0xae2)][_0x548708(0x1c7b)]=0x1),!_0x8cf6fa&&(_0x56057a[_0x548708(0xae2)]['page']=_0x5c9db5),_0x56057a['getTrunks']());});function _0x30ca43(_0x14e6a4){_0x56057a['trunks']=_0x14e6a4||{'count':0x0,'rows':[]};}function _0x31589b(){const _0xe9c709=_0x3ebd2f;_0x56057a[_0xe9c709(0xae2)][_0xe9c709(0x184b)]=(_0x56057a[_0xe9c709(0xae2)][_0xe9c709(0x1c7b)]-0x1)*_0x56057a[_0xe9c709(0xae2)]['limit'],_0x428e87[_0xe9c709(0x22b6)](_0xe9c709(0x1c60))?_0x56057a[_0xe9c709(0x2061)]=_0xfcfa73[_0xe9c709(0x1ae0)][_0xe9c709(0xbf7)](_0x56057a[_0xe9c709(0xae2)],_0x30ca43)[_0xe9c709(0x1d77)]:(_0x56057a[_0xe9c709(0xae2)]['id']=_0x56057a[_0xe9c709(0x44a)]['id'],_0x56057a['query'][_0xe9c709(0x1f74)]=_0xe9c709(0x272b),_0x56057a['promise']=_0xfcfa73[_0xe9c709(0x44a)][_0xe9c709(0x1810)](_0x56057a['query'],_0x30ca43)[_0xe9c709(0x1d77)]);}function _0x532679(_0xaee0a6,_0x218fda){const _0x145dd8=_0x3ebd2f;_0x4439a1[_0x145dd8(0xe27)]({'controller':'CreateOrEditTrunkDialogController','controllerAs':'vm','templateUrl':_0x5c162c,'parent':angular[_0x145dd8(0x1853)](_0x323f36[_0x145dd8(0x1ed9)]),'targetEvent':_0xaee0a6,'clickOutsideToClose':!![],'locals':{'trunk':_0x218fda,'trunks':_0x56057a['trunks']['rows'],'license':_0x56057a[_0x145dd8(0x8a5)],'setting':_0x56057a[_0x145dd8(0x9ca)],'crudPermissions':_0x56057a[_0x145dd8(0x1b1a)]}});}function _0x411369(_0x1eac74){const _0x320308=_0x3ebd2f;_0xfcfa73[_0x320308(0x1ae0)][_0x320308(0x111d)]({'id':_0x1eac74['id']})[_0x320308(0x1d77)][_0x320308(0x1cb0)](function(){const _0x418f38=_0x320308;_0x39641b()[_0x418f38(0x152a)](_0x56057a[_0x418f38(0x1363)][_0x418f38(0x2214)],{'id':_0x1eac74['id']}),_0x56057a['trunks'][_0x418f38(0x184d)]-=0x1,!_0x56057a[_0x418f38(0x1363)][_0x418f38(0x2214)][_0x418f38(0xfd0)]&&_0x56057a[_0x418f38(0xe77)](),_0x8820bc[_0x418f38(0x829)]({'title':_0x39641b()['startCase'](_0x418f38(0xf67))+_0x418f38(0x2663),'msg':_0x1eac74[_0x418f38(0x16b6)]?_0x1eac74[_0x418f38(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x320308(0x1c4)](function(_0x4c9c6f){const _0xb77132=_0x320308;if(_0x4c9c6f[_0xb77132(0x25c)]&&_0x4c9c6f[_0xb77132(0x25c)][_0xb77132(0x1a7c)]&&_0x4c9c6f['data'][_0xb77132(0x1a7c)][_0xb77132(0xfd0)]){_0x56057a[_0xb77132(0x1a7c)]=_0x4c9c6f[_0xb77132(0x25c)][_0xb77132(0x1a7c)]||[{'message':_0x4c9c6f[_0xb77132(0x147f)](),'type':_0xb77132(0x17ff)}];for(let _0x2fa388=0x0;_0x2fa388<_0x4c9c6f[_0xb77132(0x25c)][_0xb77132(0x1a7c)]['length'];_0x2fa388++){_0x8820bc[_0xb77132(0x218e)]({'title':_0x4c9c6f[_0xb77132(0x25c)]['errors'][_0x2fa388][_0xb77132(0x66a)],'msg':_0x4c9c6f['data'][_0xb77132(0x1a7c)][_0x2fa388]['message']});}}else _0x8820bc['error']({'title':_0x4c9c6f[_0xb77132(0x291)]?_0xb77132(0xeb9)+_0x4c9c6f['status']+_0xb77132(0x1657)+_0x4c9c6f[_0xb77132(0xc22)]:_0xb77132(0x17ff),'msg':_0x4c9c6f[_0xb77132(0x25c)]?JSON[_0xb77132(0x2701)](_0x4c9c6f[_0xb77132(0x25c)][_0xb77132(0x155e)]):_0x4c9c6f[_0xb77132(0x155e)]||_0x4c9c6f['toString']()});});}function _0x5d1281(){const _0x53a459=_0x3ebd2f,_0x2d3854=angular[_0x53a459(0x17fe)](_0x56057a[_0x53a459(0x1cd6)]);return _0x56057a[_0x53a459(0x1cd6)]=[],_0x2d3854;}function _0x2dffe6(_0x11db8f){const _0x511ce4=_0x3ebd2f,_0x2d1464=_0x4439a1[_0x511ce4(0x1551)]()[_0x511ce4(0x1386)](_0x511ce4(0x168a))[_0x511ce4(0x49e)](_0x511ce4(0x204d)+_0x56057a[_0x511ce4(0x1cd6)]['length']+_0x511ce4(0x1d6c)+_0x511ce4(0x1b6))['ariaLabel']('delete\x20Trunks')['targetEvent'](_0x11db8f)['ok']('OK')[_0x511ce4(0x696)](_0x511ce4(0x24ba));_0x4439a1['show'](_0x2d1464)[_0x511ce4(0x1cb0)](function(){const _0x5868f4=_0x511ce4;_0x56057a['selectedTrunks'][_0x5868f4(0xf90)](function(_0x4763f5){_0x411369(_0x4763f5);}),_0x56057a[_0x5868f4(0x1cd6)]=[];});}function _0x291278(){const _0x3ff39d=_0x3ebd2f;_0x56057a[_0x3ff39d(0x1cd6)]=[];}function _0x5a301b(){const _0x1751c6=_0x3ebd2f;_0x56057a[_0x1751c6(0x1cd6)]=_0x56057a[_0x1751c6(0x1363)][_0x1751c6(0x2214)];}}const _0xe25dde=_0x2c5cdc;;_0x2c5b07['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x406),'$location','$mdDialog','$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0x9a9),_0x5537c6(0x1822),_0x5537c6(0x142b),_0x5537c6(0x1774),'license',_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x2c5b07(_0x28acde,_0x4ce9e5,_0x15764f,_0x9bcae2,_0x13c90d,_0x166904,_0x135aef,_0x485859,_0x1cd2a8,_0x1736f2,_0x5d69f3,_0x95a2b0,_0x4ff46e,_0x9d6d2b){const _0x49a89a=_0x5537c6,_0x3fb5de=this;_0x3fb5de[_0x49a89a(0xe76)]=_0x5d69f3['getCurrentUser'](),_0x3fb5de[_0x49a89a(0x1a7c)]=[],_0x3fb5de[_0x49a89a(0x9ca)]=_0x4ff46e,_0x3fb5de['license']=_0x95a2b0,_0x3fb5de[_0x49a89a(0x1b1a)]=_0x9d6d2b,_0x3fb5de['hasModulePermissions']={},_0x3fb5de[_0x49a89a(0x1b0c)]=_0x3fb5de[_0x49a89a(0x9ca)]&&_0x3fb5de['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3fb5de[_0x49a89a(0x1386)]=_0x49a89a(0x26bf),_0x3fb5de[_0x49a89a(0x1822)]=angular[_0x49a89a(0x17fe)](_0x1cd2a8),_0x3fb5de['variables']=_0x485859,_0x3fb5de[_0x49a89a(0x257a)]=![];!_0x3fb5de[_0x49a89a(0x1822)]&&(_0x3fb5de[_0x49a89a(0x1822)]={},_0x3fb5de[_0x49a89a(0x1386)]='TOOLS.NEW_VARIABLE',_0x3fb5de[_0x49a89a(0x257a)]=!![]);_0x3fb5de[_0x49a89a(0xbca)]=_0x34f2cc,_0x3fb5de[_0x49a89a(0x2070)]=_0x12f82b,_0x3fb5de[_0x49a89a(0x1dd4)]=_0xeb60b4,_0x3fb5de[_0x49a89a(0x2c4)]=_0x56012f,_0x3fb5de[_0x49a89a(0xda0)]=_0x6a661e;function _0x34f2cc(){const _0xce703a=_0x49a89a;_0x3fb5de['errors']=[],_0x1736f2[_0xce703a(0x1822)]['save'](_0x3fb5de[_0xce703a(0x1822)])[_0xce703a(0x1d77)][_0xce703a(0x1cb0)](function(_0xda0a04){const _0x5b0c77=_0xce703a;_0x3fb5de[_0x5b0c77(0x9a9)]['unshift'](_0xda0a04['toJSON']()),_0x135aef[_0x5b0c77(0x829)]({'title':_0x5b0c77(0x25b3),'msg':_0x3fb5de[_0x5b0c77(0x1822)][_0x5b0c77(0x16b6)]?_0x3fb5de[_0x5b0c77(0x1822)]['name']+_0x5b0c77(0x470):''}),_0x6a661e(_0xda0a04);})[_0xce703a(0x1c4)](function(_0x3fe49a){const _0x4e7761=_0xce703a;if(_0x3fe49a[_0x4e7761(0x25c)]&&_0x3fe49a['data'][_0x4e7761(0x1a7c)]&&_0x3fe49a[_0x4e7761(0x25c)]['errors'][_0x4e7761(0xfd0)]){_0x3fb5de[_0x4e7761(0x1a7c)]=_0x3fe49a[_0x4e7761(0x25c)]['errors']||[{'message':_0x3fe49a[_0x4e7761(0x147f)](),'type':_0x4e7761(0x190d)}];for(let _0x4f3f90=0x0;_0x4f3f90<_0x3fe49a[_0x4e7761(0x25c)][_0x4e7761(0x1a7c)][_0x4e7761(0xfd0)];_0x4f3f90+=0x1){_0x135aef[_0x4e7761(0x218e)]({'title':_0x3fe49a[_0x4e7761(0x25c)]['errors'][_0x4f3f90]['type'],'msg':_0x3fe49a['data']['errors'][_0x4f3f90]['message']});}}else _0x135aef[_0x4e7761(0x218e)]({'title':_0x3fe49a[_0x4e7761(0x291)]?'API:'+_0x3fe49a['status']+_0x4e7761(0x1657)+_0x3fe49a[_0x4e7761(0xc22)]:_0x4e7761(0x190d),'msg':_0x3fe49a[_0x4e7761(0x25c)]?JSON[_0x4e7761(0x2701)](_0x3fe49a[_0x4e7761(0x25c)][_0x4e7761(0x155e)]):_0x3fe49a['toString']()});});}function _0x12f82b(){const _0x1d508c=_0x49a89a;_0x3fb5de[_0x1d508c(0x1a7c)]=[],_0x1736f2[_0x1d508c(0x1822)][_0x1d508c(0x687)]({'id':_0x3fb5de['variable']['id']},_0x3fb5de[_0x1d508c(0x1822)])[_0x1d508c(0x1d77)][_0x1d508c(0x1cb0)](function(_0x4305c5){const _0x1b8ad3=_0x1d508c,_0x3143a6=_0x39641b()[_0x1b8ad3(0x13b4)](_0x3fb5de['variables'],{'id':_0x4305c5['id']});_0x3143a6&&_0x39641b()[_0x1b8ad3(0x9c1)](_0x3143a6,_0x39641b()[_0x1b8ad3(0x169b)](_0x4305c5[_0x1b8ad3(0x19b2)](),_0x39641b()[_0x1b8ad3(0x1be5)](_0x3143a6))),_0x135aef[_0x1b8ad3(0x829)]({'title':_0x1b8ad3(0x1118),'msg':_0x3fb5de[_0x1b8ad3(0x1822)][_0x1b8ad3(0x16b6)]?_0x3fb5de[_0x1b8ad3(0x1822)]['name']+_0x1b8ad3(0xedb):''}),_0x6a661e(_0x4305c5);})['catch'](function(_0x4cedd2){const _0x5cf1bc=_0x1d508c;if(_0x4cedd2[_0x5cf1bc(0x25c)]&&_0x4cedd2[_0x5cf1bc(0x25c)]['errors']&&_0x4cedd2[_0x5cf1bc(0x25c)][_0x5cf1bc(0x1a7c)][_0x5cf1bc(0xfd0)]){_0x3fb5de[_0x5cf1bc(0x1a7c)]=_0x4cedd2[_0x5cf1bc(0x25c)][_0x5cf1bc(0x1a7c)]||[{'message':_0x4cedd2['toString'](),'type':_0x5cf1bc(0xd23)}];for(let _0x4ca467=0x0;_0x4ca467<_0x4cedd2['data'][_0x5cf1bc(0x1a7c)]['length'];_0x4ca467++){_0x135aef[_0x5cf1bc(0x218e)]({'title':_0x4cedd2[_0x5cf1bc(0x25c)][_0x5cf1bc(0x1a7c)][_0x4ca467]['type'],'msg':_0x4cedd2[_0x5cf1bc(0x25c)]['errors'][_0x4ca467][_0x5cf1bc(0x155e)]});}}else _0x135aef[_0x5cf1bc(0x218e)]({'title':_0x4cedd2[_0x5cf1bc(0x291)]?_0x5cf1bc(0xeb9)+_0x4cedd2[_0x5cf1bc(0x291)]+_0x5cf1bc(0x1657)+_0x4cedd2[_0x5cf1bc(0xc22)]:_0x5cf1bc(0xd23),'msg':_0x4cedd2['data']?JSON[_0x5cf1bc(0x2701)](_0x4cedd2[_0x5cf1bc(0x25c)][_0x5cf1bc(0x155e)]):_0x4cedd2[_0x5cf1bc(0x147f)]()});});}function _0xeb60b4(_0x1f5a36){const _0x308bd5=_0x49a89a;_0x3fb5de[_0x308bd5(0x1a7c)]=[];const _0x459c6c=_0x9bcae2[_0x308bd5(0x1551)]()[_0x308bd5(0x1386)](_0x308bd5(0x1a2e))[_0x308bd5(0x862)]('The\x20variable\x20will\x20be\x20deleted.')[_0x308bd5(0x15ad)](_0x308bd5(0x1d6e))['ok'](_0x308bd5(0x2594))['cancel']('Cancel')[_0x308bd5(0x728)](_0x1f5a36);_0x9bcae2[_0x308bd5(0xe27)](_0x459c6c)[_0x308bd5(0x1cb0)](function(){const _0x3450b2=_0x308bd5;_0x1736f2[_0x3450b2(0x1822)][_0x3450b2(0x111d)]({'id':_0x3fb5de[_0x3450b2(0x1822)]['id']})[_0x3450b2(0x1d77)][_0x3450b2(0x1cb0)](function(){const _0x29c238=_0x3450b2;_0x39641b()[_0x29c238(0x152a)](_0x3fb5de[_0x29c238(0x9a9)],{'id':_0x3fb5de[_0x29c238(0x1822)]['id']}),_0x135aef[_0x29c238(0x829)]({'title':_0x29c238(0x162e),'msg':(_0x3fb5de[_0x29c238(0x1822)][_0x29c238(0x16b6)]||_0x29c238(0x1822))+'\x20has\x20been\x20deleted!'}),_0x6a661e(_0x3fb5de[_0x29c238(0x1822)]);})['catch'](function(_0x6c5ea3){const _0x505a34=_0x3450b2;if(_0x6c5ea3['data']&&_0x6c5ea3[_0x505a34(0x25c)]['errors']&&_0x6c5ea3['data']['errors'][_0x505a34(0xfd0)]){_0x3fb5de[_0x505a34(0x1a7c)]=_0x6c5ea3[_0x505a34(0x25c)][_0x505a34(0x1a7c)]||[{'message':_0x6c5ea3['toString'](),'type':_0x505a34(0x1e91)}];for(let _0x29af56=0x0;_0x29af56<_0x6c5ea3['data'][_0x505a34(0x1a7c)]['length'];_0x29af56++){_0x135aef[_0x505a34(0x218e)]({'title':_0x6c5ea3['data'][_0x505a34(0x1a7c)][_0x29af56][_0x505a34(0x66a)],'msg':_0x6c5ea3[_0x505a34(0x25c)][_0x505a34(0x1a7c)][_0x29af56][_0x505a34(0x155e)]});}}else _0x135aef['error']({'title':_0x6c5ea3['status']?'API:'+_0x6c5ea3[_0x505a34(0x291)]+'\x20-\x20'+_0x6c5ea3['statusText']:_0x505a34(0x1e91),'msg':_0x6c5ea3[_0x505a34(0x25c)]?JSON[_0x505a34(0x2701)](_0x6c5ea3[_0x505a34(0x25c)][_0x505a34(0x155e)]):_0x6c5ea3[_0x505a34(0x155e)]||_0x6c5ea3[_0x505a34(0x147f)]()});});},function(){});}function _0x56012f(_0x1c2e09){return _0x1c2e09===null?undefined:new Date(_0x1c2e09);}function _0x6a661e(_0x3ac5d4){const _0x39ca6e=_0x49a89a;_0x9bcae2[_0x39ca6e(0x1426)](_0x3ac5d4);}}const _0x20fa3e=_0x2c5b07;;const _0x4f7708=_0x5074a3['p']+_0x5537c6(0x10e3);;_0x4af319[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x9a9),'userProfile',_0x5537c6(0x2199),'api',_0x5537c6(0xde8),'toasty',_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x4af319(_0x978ddb,_0x1cae21,_0x1a2991,_0x1d8dd8,_0x308f1b,_0x4cce38,_0x317fd5,_0x170984,_0x1144d6,_0x2c19d8,_0x35e23c,_0x4778ba,_0x210798,_0x2317c7,_0x5fce59,_0x2b421d,_0x25aa72){const _0x118d49=_0x5537c6,_0x1b9461=this;_0x1b9461[_0x118d49(0x8a5)]=_0x2b421d,_0x1b9461[_0x118d49(0x9ca)]=_0x25aa72,_0x1b9461[_0x118d49(0xe76)]=_0x5fce59[_0x118d49(0x21e8)](),_0x1b9461['variables']=_0x1144d6||{'count':0x0,'rows':[]},_0x1b9461['userProfile']=_0x2c19d8,_0x1b9461[_0x118d49(0x2199)]=_0x35e23c&&_0x35e23c['count']==0x1?_0x35e23c[_0x118d49(0x2214)][0x0]:null,_0x1b9461[_0x118d49(0x1b1a)]=_0x5fce59[_0x118d49(0x14ea)](_0x1b9461[_0x118d49(0x2199)]?_0x1b9461[_0x118d49(0x2199)][_0x118d49(0x1b1a)]:null),_0x1b9461[_0x118d49(0xc83)]=_0x118d49(0x9a9),_0x1b9461[_0x118d49(0x1d20)]='',_0x1b9461[_0x118d49(0x1cdf)]=null,_0x1b9461[_0x118d49(0x2754)]=[],_0x1b9461[_0x118d49(0xae2)]={'fields':_0x118d49(0x12e8),'sort':_0x118d49(0x282),'limit':0xa,'page':0x1},_0x1b9461[_0x118d49(0xc93)]=_0x5e320d,_0x1b9461[_0x118d49(0x27fe)]=_0xe74d2f,_0x1b9461['success']=_0x2e3428,_0x1b9461[_0x118d49(0x8a2)]=_0x193ce7,_0x1b9461[_0x118d49(0x894)]=_0x231306,_0x1b9461['deleteVariable']=_0x598b92,_0x1b9461[_0x118d49(0x1fc8)]=_0x1c2bfc,_0x1b9461[_0x118d49(0x20c9)]=_0x42dcb5,_0x1b9461['deselectVariables']=_0x5602e6,_0x1b9461[_0x118d49(0x501)]=_0x80a886;function _0x5e320d(_0x178bf9,_0x1e4fd1){const _0x31e56f=_0x118d49;_0x308f1b[_0x31e56f(0xe27)]({'controller':_0x31e56f(0x15e2),'controllerAs':'vm','templateUrl':_0x4f7708,'parent':angular[_0x31e56f(0x1853)](_0x4cce38[_0x31e56f(0x1ed9)]),'targetEvent':_0x1e4fd1,'clickOutsideToClose':!![],'locals':{'variable':_0x178bf9,'variables':_0x1b9461[_0x31e56f(0x9a9)]['rows'],'license':_0x1b9461[_0x31e56f(0x8a5)],'setting':null,'crudPermissions':_0x1b9461[_0x31e56f(0x1b1a)]}});}function _0xe74d2f(_0x127ce0,_0x35223b){const _0x3c94c9=_0x118d49,_0x3cfef4=_0x308f1b[_0x3c94c9(0x1551)]()[_0x3c94c9(0x1386)](_0x3c94c9(0x140b)+_0x39641b()['startCase'](_0x3c94c9(0x1822))+'?')[_0x3c94c9(0x49e)](_0x3c94c9(0x204d)+(_0x127ce0[_0x3c94c9(0x16b6)]||_0x3c94c9(0x1822))+_0x3c94c9(0x1200)+_0x3c94c9(0x1b6))['ariaLabel'](_0x3c94c9(0x28fa))[_0x3c94c9(0x728)](_0x35223b)['ok']('OK')[_0x3c94c9(0x696)](_0x3c94c9(0x24ba));_0x308f1b['show'](_0x3cfef4)['then'](function(){_0x598b92(_0x127ce0);},function(){const _0xf85b18=_0x3c94c9;console[_0xf85b18(0x1b4f)](_0xf85b18(0x24ba));});}let _0x5d3a65=!![],_0x5cd85a=0x1;_0x978ddb[_0x118d49(0x614)](_0x118d49(0x957),function(_0x1d4567,_0x4d679f){const _0x50faff=_0x118d49;_0x5d3a65?_0x317fd5(function(){_0x5d3a65=![];}):(!_0x4d679f&&(_0x5cd85a=_0x1b9461[_0x50faff(0xae2)][_0x50faff(0x1c7b)]),_0x1d4567!==_0x4d679f&&(_0x1b9461[_0x50faff(0xae2)][_0x50faff(0x1c7b)]=0x1),!_0x1d4567&&(_0x1b9461[_0x50faff(0xae2)][_0x50faff(0x1c7b)]=_0x5cd85a),_0x1b9461[_0x50faff(0x8a2)]());});function _0x2e3428(_0x4e3b01){const _0x1f2d5f=_0x118d49;_0x1b9461[_0x1f2d5f(0x9a9)]=_0x4e3b01||{'count':0x0,'rows':[]};}function _0x193ce7(){const _0x26ce2b=_0x118d49;_0x1b9461[_0x26ce2b(0xae2)][_0x26ce2b(0x184b)]=(_0x1b9461[_0x26ce2b(0xae2)][_0x26ce2b(0x1c7b)]-0x1)*_0x1b9461[_0x26ce2b(0xae2)][_0x26ce2b(0x236)],_0x5fce59[_0x26ce2b(0x22b6)](_0x26ce2b(0x1c60))?_0x1b9461[_0x26ce2b(0x2061)]=_0x4778ba['variable'][_0x26ce2b(0xbf7)](_0x1b9461['query'],_0x2e3428)[_0x26ce2b(0x1d77)]:(_0x1b9461[_0x26ce2b(0xae2)]['id']=_0x1b9461['userProfile']['id'],_0x1b9461[_0x26ce2b(0xae2)]['section']=_0x26ce2b(0x1afe),_0x1b9461[_0x26ce2b(0x2061)]=_0x4778ba[_0x26ce2b(0x44a)][_0x26ce2b(0x1810)](_0x1b9461[_0x26ce2b(0xae2)],_0x2e3428)[_0x26ce2b(0x1d77)]);}function _0x231306(_0x213675,_0x3083c1){const _0x3af201=_0x118d49;_0x308f1b['show']({'controller':_0x3af201(0x15e2),'controllerAs':'vm','templateUrl':_0x4f7708,'parent':angular[_0x3af201(0x1853)](_0x4cce38[_0x3af201(0x1ed9)]),'targetEvent':_0x213675,'clickOutsideToClose':!![],'locals':{'variable':_0x3083c1,'variables':_0x1b9461[_0x3af201(0x9a9)]['rows'],'license':_0x1b9461[_0x3af201(0x8a5)],'setting':_0x1b9461['setting'],'crudPermissions':_0x1b9461['crudPermissions']}});}function _0x598b92(_0x2c058f){const _0x2fb883=_0x118d49;_0x4778ba[_0x2fb883(0x1822)][_0x2fb883(0x111d)]({'id':_0x2c058f['id']})[_0x2fb883(0x1d77)][_0x2fb883(0x1cb0)](function(){const _0x2cb237=_0x2fb883;_0x39641b()[_0x2cb237(0x152a)](_0x1b9461[_0x2cb237(0x9a9)]['rows'],{'id':_0x2c058f['id']}),_0x1b9461[_0x2cb237(0x9a9)][_0x2cb237(0x184d)]-=0x1,!_0x1b9461['variables'][_0x2cb237(0x2214)][_0x2cb237(0xfd0)]&&_0x1b9461[_0x2cb237(0x8a2)](),_0x2317c7['success']({'title':_0x39641b()[_0x2cb237(0xa75)](_0x2cb237(0x1b02))+_0x2cb237(0x2663),'msg':_0x2c058f[_0x2cb237(0x16b6)]?_0x2c058f[_0x2cb237(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x2fb883(0x1c4)](function(_0x287b54){const _0x301c9f=_0x2fb883;if(_0x287b54[_0x301c9f(0x25c)]&&_0x287b54[_0x301c9f(0x25c)]['errors']&&_0x287b54['data'][_0x301c9f(0x1a7c)]['length']){_0x1b9461[_0x301c9f(0x1a7c)]=_0x287b54[_0x301c9f(0x25c)][_0x301c9f(0x1a7c)]||[{'message':_0x287b54[_0x301c9f(0x147f)](),'type':_0x301c9f(0xbde)}];for(let _0x1e4b04=0x0;_0x1e4b04<_0x287b54['data'][_0x301c9f(0x1a7c)][_0x301c9f(0xfd0)];_0x1e4b04++){_0x2317c7[_0x301c9f(0x218e)]({'title':_0x287b54['data']['errors'][_0x1e4b04][_0x301c9f(0x66a)],'msg':_0x287b54[_0x301c9f(0x25c)][_0x301c9f(0x1a7c)][_0x1e4b04][_0x301c9f(0x155e)]});}}else _0x2317c7[_0x301c9f(0x218e)]({'title':_0x287b54[_0x301c9f(0x291)]?_0x301c9f(0xeb9)+_0x287b54[_0x301c9f(0x291)]+'\x20-\x20'+_0x287b54[_0x301c9f(0xc22)]:_0x301c9f(0xbde),'msg':_0x287b54[_0x301c9f(0x25c)]?JSON[_0x301c9f(0x2701)](_0x287b54[_0x301c9f(0x25c)]['message']):_0x287b54['message']||_0x287b54[_0x301c9f(0x147f)]()});});}function _0x1c2bfc(){const _0x540ad0=_0x118d49,_0x2fb9fa=angular[_0x540ad0(0x17fe)](_0x1b9461['selectedVariables']);return _0x1b9461[_0x540ad0(0x2754)]=[],_0x2fb9fa;}function _0x42dcb5(_0x17c6dc){const _0x1dfc51=_0x118d49,_0x1c0623=_0x308f1b[_0x1dfc51(0x1551)]()[_0x1dfc51(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20variables?')[_0x1dfc51(0x49e)](_0x1dfc51(0x204d)+_0x1b9461[_0x1dfc51(0x2754)][_0x1dfc51(0xfd0)]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x1dfc51(0x15ad)](_0x1dfc51(0x1c76))['targetEvent'](_0x17c6dc)['ok']('OK')[_0x1dfc51(0x696)]('CANCEL');_0x308f1b['show'](_0x1c0623)[_0x1dfc51(0x1cb0)](function(){const _0x511e18=_0x1dfc51;_0x1b9461[_0x511e18(0x2754)]['forEach'](function(_0x529d89){_0x598b92(_0x529d89);}),_0x1b9461[_0x511e18(0x2754)]=[];});}function _0x5602e6(){const _0x3eb4ed=_0x118d49;_0x1b9461[_0x3eb4ed(0x2754)]=[];}function _0x80a886(){const _0x4f8964=_0x118d49;_0x1b9461[_0x4f8964(0x2754)]=_0x1b9461[_0x4f8964(0x9a9)][_0x4f8964(0x2214)];}}const _0x29eed3=_0x4af319;;_0x2f3c64[_0x5537c6(0x15b6)]=['$stateProvider','$translatePartialLoaderProvider'];function _0x2f3c64(_0x3dd7bc,_0x473aff){const _0x115649=_0x5537c6;_0x3dd7bc[_0x115649(0x27e0)](_0x115649(0x26a9),{'abstract':!![],'url':_0x115649(0x16a7)})[_0x115649(0x27e0)]('app.tools.cannedAnswers',{'url':_0x115649(0x10b1),'views':{'content@app':{'templateUrl':_0x4fa67c,'controller':_0x115649(0xf92)}},'resolve':{'cannedAnswers':[_0x115649(0x1e0b),_0x115649(0x1774),function(_0x4ed6f4,_0x1fefff){const _0x5e5d48=_0x115649;return _0x1fefff[_0x5e5d48(0x22b6)](_0x5e5d48(0x1c60))?_0x4ed6f4[_0x5e5d48(0x19a3)](_0x5e5d48(0x12b6),{'fields':_0x5e5d48(0x1d68),'sort':_0x5e5d48(0x282),'MailAccountId':_0x5e5d48(0xd38),'FaxAccountId':'null','SmsAccountId':_0x5e5d48(0xd38),'OpenchannelAccountId':_0x5e5d48(0xd38),'ChatWebsiteId':'null','limit':0xa,'offset':0x0}):_0x4ed6f4[_0x5e5d48(0x19a3)]('userProfile@getResources',{'id':_0x1fefff['getCurrentUser']()[_0x5e5d48(0x13c1)],'section':'CannedAnswers','fields':'createdAt,updatedAt,id,key,value,description','sort':_0x5e5d48(0x282),'MailAccountId':'null','FaxAccountId':_0x5e5d48(0xd38),'SmsAccountId':_0x5e5d48(0xd38),'OpenchannelAccountId':'null','ChatWebsiteId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0x115649(0x1e0b),_0x115649(0x1774),function(_0x41828b,_0x5e68c9){const _0x149851=_0x115649;return _0x5e68c9['hasRole']('admin')?null:_0x41828b[_0x149851(0x19a3)](_0x149851(0x9ae),{'fields':'id,name,crudPermissions','id':_0x5e68c9[_0x149851(0x21e8)]()[_0x149851(0x13c1)]});}],'userProfileSection':[_0x115649(0x1e0b),'Auth',function(_0x1de712,_0x38f237){const _0x524fa0=_0x115649;return _0x38f237['hasRole'](_0x524fa0(0x1c60))?null:_0x1de712['resolve'](_0x524fa0(0x2182),{'fields':_0x524fa0(0x1f5f),'userProfileId':_0x38f237[_0x524fa0(0x21e8)]()[_0x524fa0(0x13c1)],'sectionId':0x3e9});}]},'authenticate':!![],'permissionId':0x3e9,'bodyClass':_0x115649(0x10f6)})[_0x115649(0x27e0)]('app.tools.customDashboards',{'url':_0x115649(0x1c79),'views':{'content@app':{'templateUrl':_0x2b1ec4,'controller':_0x115649(0x1820)}},'resolve':{'customDashboards':['apiResolver','Auth',function(_0x5d7628,_0x1d183d){const _0x423588=_0x115649;return _0x1d183d[_0x423588(0x22b6)](_0x423588(0x1c60))?_0x5d7628[_0x423588(0x19a3)](_0x423588(0x61d),{'fields':_0x423588(0x12e8),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x5d7628['resolve'](_0x423588(0x12da),{'id':_0x1d183d[_0x423588(0x21e8)]()['userProfileId'],'section':_0x423588(0x17f4),'fields':_0x423588(0x12e8),'sort':_0x423588(0x282),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x115649(0x1774),function(_0x340a6a,_0x3b603c){const _0x154199=_0x115649;return _0x3b603c[_0x154199(0x22b6)](_0x154199(0x1c60))?null:_0x340a6a[_0x154199(0x19a3)]('userProfile@get',{'fields':_0x154199(0x279),'id':_0x3b603c['getCurrentUser']()[_0x154199(0x13c1)]});}],'userProfileSection':[_0x115649(0x1e0b),'Auth',function(_0x566bc0,_0x4d3d78){const _0x1178bb=_0x115649;return _0x4d3d78['hasRole'](_0x1178bb(0x1c60))?null:_0x566bc0['resolve'](_0x1178bb(0x2182),{'fields':_0x1178bb(0x1f5f),'userProfileId':_0x4d3d78[_0x1178bb(0x21e8)]()['userProfileId'],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':_0x115649(0x10f6)})['state'](_0x115649(0x1632),{'url':_0x115649(0x1bf2),'params':{'customDashboard':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x38a5cf,'controller':_0x115649(0x27fa)}},'resolve':{'customDashboard':[_0x115649(0x1e0b),_0x115649(0x225c),function(_0x5c750b,_0x5aabc8){const _0x26620f=_0x115649;return _0x5c750b['resolve'](_0x26620f(0x61d),{'fields':_0x26620f(0x12e8),'id':_0x5aabc8['id']});}],'userProfileSection':[_0x115649(0x1e0b),_0x115649(0x1774),function(_0x9d412,_0xeae2fe){const _0x1cb393=_0x115649;return _0x9d412[_0x1cb393(0x19a3)](_0x1cb393(0x2182),{'fields':_0x1cb393(0x1f5f),'userProfileId':_0xeae2fe['getCurrentUser']()[_0x1cb393(0x13c1)],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':_0x115649(0x10f6)})[_0x115649(0x27e0)](_0x115649(0x115e),{'url':'/intervals','views':{'content@app':{'templateUrl':_0x13841a,'controller':_0x115649(0xb8d)}},'resolve':{'intervals':[_0x115649(0x1e0b),_0x115649(0x1774),function(_0x39742b,_0x3827c6){const _0x17e455=_0x115649;return _0x3827c6['hasRole'](_0x17e455(0x1c60))?_0x39742b['resolve']('interval@get',{'fields':_0x17e455(0x12e8),'sort':_0x17e455(0x282),'IntervalId':'null','limit':0xa,'offset':0x0}):_0x39742b['resolve']('userProfile@getResources',{'id':_0x3827c6[_0x17e455(0x21e8)]()['userProfileId'],'section':_0x17e455(0xc69),'fields':_0x17e455(0x12e8),'sort':_0x17e455(0x282),'IntervalId':_0x17e455(0xd38),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x4bf2da,_0x34e665){const _0x3f310c=_0x115649;return _0x34e665[_0x3f310c(0x22b6)](_0x3f310c(0x1c60))?null:_0x4bf2da['resolve'](_0x3f310c(0x9ae),{'fields':'id,name,crudPermissions','id':_0x34e665['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x115649(0x1e0b),'Auth',function(_0x5c3236,_0x4940ab){const _0x2554b1=_0x115649;return _0x4940ab['hasRole']('admin')?null:_0x5c3236[_0x2554b1(0x19a3)](_0x2554b1(0x2182),{'fields':_0x2554b1(0x1f5f),'userProfileId':_0x4940ab[_0x2554b1(0x21e8)]()[_0x2554b1(0x13c1)],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':_0x115649(0x10f6)})['state'](_0x115649(0x1538),{'url':_0x115649(0x1bf2),'params':{'interval':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1cf171,'controller':'IntervalController\x20as\x20vm'}},'resolve':{'interval':[_0x115649(0x1e0b),_0x115649(0x225c),function(_0x5004aa,_0x2424cd){const _0x204f79=_0x115649;return _0x5004aa[_0x204f79(0x19a3)]('interval@get',{'fields':'createdAt,updatedAt,id,name,description','id':_0x2424cd['id']});}],'userProfileSection':[_0x115649(0x1e0b),'Auth',function(_0x4f5639,_0x15dd48){const _0x1a8780=_0x115649;return _0x4f5639['resolve'](_0x1a8780(0x2182),{'fields':_0x1a8780(0x1f5f),'userProfileId':_0x15dd48[_0x1a8780(0x21e8)]()[_0x1a8780(0x13c1)],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':_0x115649(0x10f6)})[_0x115649(0x27e0)](_0x115649(0x3e0),{'url':_0x115649(0x55a),'views':{'content@app':{'templateUrl':_0x573919,'controller':_0x115649(0x2417)}},'resolve':{'pauses':[_0x115649(0x1e0b),_0x115649(0x1774),function(_0x5874c8,_0x1fccf5){const _0xae93=_0x115649;return _0x1fccf5[_0xae93(0x22b6)](_0xae93(0x1c60))?_0x5874c8[_0xae93(0x19a3)](_0xae93(0xeeb),{'fields':_0xae93(0x12e8),'sort':_0xae93(0x282),'limit':0xa,'offset':0x0}):_0x5874c8[_0xae93(0x19a3)](_0xae93(0x12da),{'id':_0x1fccf5['getCurrentUser']()[_0xae93(0x13c1)],'section':'Pauses','fields':_0xae93(0x12e8),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x5d86f7,_0x18e29c){const _0x1ad3df=_0x115649;return _0x18e29c[_0x1ad3df(0x22b6)](_0x1ad3df(0x1c60))?null:_0x5d86f7[_0x1ad3df(0x19a3)](_0x1ad3df(0x9ae),{'fields':_0x1ad3df(0x279),'id':_0x18e29c[_0x1ad3df(0x21e8)]()[_0x1ad3df(0x13c1)]});}],'userProfileSection':[_0x115649(0x1e0b),_0x115649(0x1774),function(_0x54200c,_0x39ddb0){const _0x5f4c44=_0x115649;return _0x39ddb0[_0x5f4c44(0x22b6)]('admin')?null:_0x54200c[_0x5f4c44(0x19a3)]('userProfileSection@get',{'fields':_0x5f4c44(0x1f5f),'userProfileId':_0x39ddb0[_0x5f4c44(0x21e8)]()[_0x5f4c44(0x13c1)],'sectionId':0x3ed});}]},'authenticate':!![],'permissionId':0x3ed,'bodyClass':_0x115649(0x10f6)})[_0x115649(0x27e0)](_0x115649(0x1893),{'url':_0x115649(0x24bb),'views':{'content@app':{'templateUrl':_0x14a7d3,'controller':_0x115649(0x1bb9)}},'resolve':{'schedules':[_0x115649(0x1e0b),'Auth',function(_0xb57823,_0x301081){const _0xb161ed=_0x115649;return _0x301081[_0xb161ed(0x22b6)]('admin')?_0xb57823['resolve']('schedule@get',{'fields':'createdAt,updatedAt,id,name,CustomReportId,DefaultReportId,output,active,startAt,endAt,cron,subtractNumber,subtractUnit,sendMail,MailAccountId,email,cc,bcc,sendIfEmpty,description','sort':_0xb161ed(0x282),'limit':0xa,'offset':0x0}):_0xb57823[_0xb161ed(0x19a3)]('userProfile@getResources',{'id':_0x301081[_0xb161ed(0x21e8)]()[_0xb161ed(0x13c1)],'section':_0xb161ed(0x1441),'fields':_0xb161ed(0x9d3),'sort':_0xb161ed(0x282),'limit':0xa,'offset':0x0});}],'userProfile':[_0x115649(0x1e0b),_0x115649(0x1774),function(_0x2cd05f,_0x49751a){const _0x3e1afd=_0x115649;return _0x49751a[_0x3e1afd(0x22b6)](_0x3e1afd(0x1c60))?null:_0x2cd05f['resolve'](_0x3e1afd(0x9ae),{'fields':_0x3e1afd(0x279),'id':_0x49751a[_0x3e1afd(0x21e8)]()[_0x3e1afd(0x13c1)]});}],'userProfileSection':[_0x115649(0x1e0b),'Auth',function(_0x2f003a,_0x372384){const _0x3a85cd=_0x115649;return _0x372384[_0x3a85cd(0x22b6)](_0x3a85cd(0x1c60))?null:_0x2f003a[_0x3a85cd(0x19a3)](_0x3a85cd(0x2182),{'fields':_0x3a85cd(0x1f5f),'userProfileId':_0x372384[_0x3a85cd(0x21e8)]()[_0x3a85cd(0x13c1)],'sectionId':0x3ee});}]},'authenticate':!![],'permissionId':0x3ee,'bodyClass':_0x115649(0x10f6)})[_0x115649(0x27e0)](_0x115649(0x29df),{'url':'/sounds','views':{'content@app':{'templateUrl':_0x5a08cd,'controller':'SoundsController\x20as\x20vm'}},'resolve':{'sounds':[_0x115649(0x1e0b),_0x115649(0x1774),function(_0x57876b,_0x1fb033){const _0x49a06c=_0x115649;return _0x1fb033['hasRole'](_0x49a06c(0x1c60))?_0x57876b[_0x49a06c(0x19a3)](_0x49a06c(0x1de3),{'fields':_0x49a06c(0x2877),'sort':_0x49a06c(0x282),'limit':0xa,'offset':0x0}):_0x57876b[_0x49a06c(0x19a3)](_0x49a06c(0x12da),{'id':_0x1fb033[_0x49a06c(0x21e8)]()[_0x49a06c(0x13c1)],'section':_0x49a06c(0x19f5),'fields':_0x49a06c(0x2877),'sort':_0x49a06c(0x282),'limit':0xa,'offset':0x0});}],'userProfile':[_0x115649(0x1e0b),_0x115649(0x1774),function(_0x1ad415,_0x47f87b){const _0x463f1c=_0x115649;return _0x47f87b[_0x463f1c(0x22b6)](_0x463f1c(0x1c60))?null:_0x1ad415[_0x463f1c(0x19a3)](_0x463f1c(0x9ae),{'fields':'id,name,crudPermissions','id':_0x47f87b[_0x463f1c(0x21e8)]()[_0x463f1c(0x13c1)]});}],'userProfileSection':[_0x115649(0x1e0b),_0x115649(0x1774),function(_0x461a4b,_0x493aca){const _0xd1b522=_0x115649;return _0x493aca['hasRole'](_0xd1b522(0x1c60))?null:_0x461a4b[_0xd1b522(0x19a3)](_0xd1b522(0x2182),{'fields':_0xd1b522(0x1f5f),'userProfileId':_0x493aca[_0xd1b522(0x21e8)]()[_0xd1b522(0x13c1)],'sectionId':0x3ef});}]},'authenticate':!![],'permissionId':0x3ef,'bodyClass':'tools'})['state']('app.tools.tags',{'url':_0x115649(0xcef),'views':{'content@app':{'templateUrl':_0x538b44,'controller':_0x115649(0x1d5)}},'resolve':{'tags':[_0x115649(0x1e0b),'Auth',function(_0x4121de,_0x35d348){const _0x5d3913=_0x115649;return _0x35d348[_0x5d3913(0x22b6)](_0x5d3913(0x1c60))?_0x4121de['resolve'](_0x5d3913(0x1f1),{'fields':_0x5d3913(0x1cc0),'sort':_0x5d3913(0x282),'limit':0xa,'offset':0x0}):_0x4121de[_0x5d3913(0x19a3)](_0x5d3913(0x12da),{'id':_0x35d348['getCurrentUser']()[_0x5d3913(0x13c1)],'section':_0x5d3913(0x190),'fields':_0x5d3913(0x1cc0),'sort':_0x5d3913(0x282),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x115649(0x1774),function(_0x52d355,_0x582ea2){const _0x5c2015=_0x115649;return _0x582ea2['hasRole'](_0x5c2015(0x1c60))?null:_0x52d355[_0x5c2015(0x19a3)](_0x5c2015(0x9ae),{'fields':_0x5c2015(0x279),'id':_0x582ea2[_0x5c2015(0x21e8)]()[_0x5c2015(0x13c1)]});}],'userProfileSection':[_0x115649(0x1e0b),_0x115649(0x1774),function(_0x30759e,_0x3be2e2){const _0x4360dc=_0x115649;return _0x3be2e2[_0x4360dc(0x22b6)](_0x4360dc(0x1c60))?null:_0x30759e[_0x4360dc(0x19a3)](_0x4360dc(0x2182),{'fields':_0x4360dc(0x1f5f),'userProfileId':_0x3be2e2['getCurrentUser']()[_0x4360dc(0x13c1)],'sectionId':0x3f0});}]},'authenticate':!![],'permissionId':0x3f0,'bodyClass':_0x115649(0x10f6)})['state'](_0x115649(0x589),{'url':_0x115649(0x171d),'views':{'content@app':{'templateUrl':_0x47c543,'controller':_0x115649(0x16be)}},'resolve':{'templates':[_0x115649(0x1e0b),'Auth',function(_0x1015fd,_0x3805ad){const _0x2ee7f8=_0x115649;return _0x3805ad[_0x2ee7f8(0x22b6)](_0x2ee7f8(0x1c60))?_0x1015fd[_0x2ee7f8(0x19a3)]('template@get',{'fields':'createdAt,updatedAt,id,name,html,description','sort':_0x2ee7f8(0x282),'limit':0xa,'offset':0x0}):_0x1015fd[_0x2ee7f8(0x19a3)]('userProfile@getResources',{'id':_0x3805ad[_0x2ee7f8(0x21e8)]()[_0x2ee7f8(0x13c1)],'section':_0x2ee7f8(0x2195),'fields':_0x2ee7f8(0x26e5),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x115649(0x1e0b),_0x115649(0x1774),function(_0x4abcf5,_0x56af00){const _0x5bd173=_0x115649;return _0x56af00[_0x5bd173(0x22b6)](_0x5bd173(0x1c60))?null:_0x4abcf5[_0x5bd173(0x19a3)]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x56af00[_0x5bd173(0x21e8)]()[_0x5bd173(0x13c1)]});}],'userProfileSection':[_0x115649(0x1e0b),_0x115649(0x1774),function(_0x4eae0e,_0xa48f1d){const _0x519b71=_0x115649;return _0xa48f1d['hasRole']('admin')?null:_0x4eae0e[_0x519b71(0x19a3)](_0x519b71(0x2182),{'fields':_0x519b71(0x1f5f),'userProfileId':_0xa48f1d[_0x519b71(0x21e8)]()['userProfileId'],'sectionId':0x3f1});}]},'authenticate':!![],'permissionId':0x3f1,'bodyClass':_0x115649(0x10f6)})[_0x115649(0x27e0)](_0x115649(0x2211),{'url':_0x115649(0x1c1a),'views':{'content@app':{'templateUrl':_0x436b77,'controller':_0x115649(0x13ea)}},'resolve':{'trunks':[_0x115649(0x1e0b),_0x115649(0x1774),function(_0x1882af,_0x546830){const _0x1ab810=_0x115649;return _0x546830[_0x1ab810(0x22b6)](_0x1ab810(0x1c60))?_0x1882af[_0x1ab810(0x19a3)]('trunk@get',{'fields':_0x1ab810(0x26ed),'sort':_0x1ab810(0x282),'limit':0xa,'offset':0x0}):_0x1882af[_0x1ab810(0x19a3)]('userProfile@getResources',{'id':_0x546830[_0x1ab810(0x21e8)]()['userProfileId'],'section':'Trunks','fields':_0x1ab810(0x26ed),'sort':_0x1ab810(0x282),'limit':0xa,'offset':0x0});}],'userProfile':[_0x115649(0x1e0b),_0x115649(0x1774),function(_0xe0036,_0x3b601d){const _0x47b0ae=_0x115649;return _0x3b601d[_0x47b0ae(0x22b6)](_0x47b0ae(0x1c60))?null:_0xe0036[_0x47b0ae(0x19a3)]('userProfile@get',{'fields':_0x47b0ae(0x279),'id':_0x3b601d['getCurrentUser']()[_0x47b0ae(0x13c1)]});}],'userProfileSection':[_0x115649(0x1e0b),'Auth',function(_0x324c6a,_0x39cdd7){const _0x312336=_0x115649;return _0x39cdd7[_0x312336(0x22b6)]('admin')?null:_0x324c6a[_0x312336(0x19a3)](_0x312336(0x2182),{'fields':_0x312336(0x1f5f),'userProfileId':_0x39cdd7[_0x312336(0x21e8)]()['userProfileId'],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':_0x115649(0x10f6)})['state'](_0x115649(0xbe6),{'url':_0x115649(0x1bf2),'params':{'trunk':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4d44a4,'controller':'TrunkController\x20as\x20vm'}},'resolve':{'trunk':[_0x115649(0x1e0b),_0x115649(0x225c),function(_0x58c652,_0xd2c4f2){const _0x14f340=_0x115649;return _0x58c652[_0x14f340(0x19a3)](_0x14f340(0x99d),{'fields':_0x14f340(0x26ed),'id':_0xd2c4f2['id']});}],'userProfileSection':['apiResolver',_0x115649(0x1774),function(_0x3b9b54,_0x2afc35){const _0x30d894=_0x115649;return _0x3b9b54['resolve'](_0x30d894(0x2182),{'fields':_0x30d894(0x1f5f),'userProfileId':_0x2afc35[_0x30d894(0x21e8)]()['userProfileId'],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':_0x115649(0x10f6)})[_0x115649(0x27e0)]('app.tools.variables',{'url':_0x115649(0x25b6),'views':{'content@app':{'templateUrl':_0x5a2703,'controller':_0x115649(0xe0f)}},'resolve':{'variables':[_0x115649(0x1e0b),'Auth',function(_0x2d0077,_0x8c2ef6){const _0x33dffd=_0x115649;return _0x8c2ef6['hasRole'](_0x33dffd(0x1c60))?_0x2d0077[_0x33dffd(0x19a3)](_0x33dffd(0x653),{'fields':_0x33dffd(0x12e8),'sort':_0x33dffd(0x282),'limit':0xa,'offset':0x0}):_0x2d0077[_0x33dffd(0x19a3)](_0x33dffd(0x12da),{'id':_0x8c2ef6['getCurrentUser']()['userProfileId'],'section':'Variables','fields':_0x33dffd(0x12e8),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x115649(0x1e0b),_0x115649(0x1774),function(_0x382b8f,_0x2c17da){const _0x26baa7=_0x115649;return _0x2c17da[_0x26baa7(0x22b6)](_0x26baa7(0x1c60))?null:_0x382b8f['resolve']('userProfile@get',{'fields':_0x26baa7(0x279),'id':_0x2c17da[_0x26baa7(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x115649(0x1e0b),_0x115649(0x1774),function(_0x52e73a,_0x5686c0){const _0x3e2d1c=_0x115649;return _0x5686c0[_0x3e2d1c(0x22b6)]('admin')?null:_0x52e73a['resolve'](_0x3e2d1c(0x2182),{'fields':_0x3e2d1c(0x1f5f),'userProfileId':_0x5686c0[_0x3e2d1c(0x21e8)]()[_0x3e2d1c(0x13c1)],'sectionId':0x3f4});}]},'authenticate':!![],'permissionId':0x3f4,'bodyClass':_0x115649(0x10f6)}),_0x473aff[_0x115649(0x4e7)](_0x115649(0x290d));}angular[_0x5537c6(0x9ab)](_0x5537c6(0x26a9),['ngCsv',_0x5537c6(0x2135),'md.data.table',_0x5537c6(0xacf),_0x5537c6(0x18f6),'ckeditor',_0x5537c6(0x44c),_0x5537c6(0x2ec),'ngAnimate',_0x5537c6(0x167d),_0x5537c6(0x208f),_0x5537c6(0x1b65),_0x5537c6(0x2166),'ngclipboard',_0x5537c6(0x7c9),_0x5537c6(0xeb5),_0x5537c6(0x27af),_0x5537c6(0x13b6),_0x5537c6(0x1cbd),_0x5537c6(0xd01),_0x5537c6(0x8b4),_0x5537c6(0xf53)])[_0x5537c6(0xa60)](_0x2f3c64)[_0x5537c6(0x6e5)](_0x5537c6(0x58c),_0x48bcbc)[_0x5537c6(0x6e5)](_0x5537c6(0x295a),_0x11338a)[_0x5537c6(0x6e5)](_0x5537c6(0x2552),_0x2ac9c0)[_0x5537c6(0x6e5)](_0x5537c6(0xd65),_0x1c139f)['controller'](_0x5537c6(0x168),_0x378821)['controller']('CustomDashboardItemsController',_0x4fea17)[_0x5537c6(0x6e5)]('CreateOrEditDashboardItemDialogController',_0x6ec87e)[_0x5537c6(0x6e5)](_0x5537c6(0x974),_0x4d071f)[_0x5537c6(0x6e5)](_0x5537c6(0x1ff9),_0x2063e0)[_0x5537c6(0x6e5)]('EditAppintervalDialogController',_0x1f4cbd)['controller'](_0x5537c6(0x134b),_0x1e79a4)[_0x5537c6(0x6e5)]('IntervalController',_0x2d1b1e)[_0x5537c6(0x6e5)]('IntervalsController',_0x3620ef)[_0x5537c6(0x6e5)](_0x5537c6(0x1249),_0x9fd33f)[_0x5537c6(0x6e5)](_0x5537c6(0x2570),_0x1af04b)['controller'](_0x5537c6(0x24cf),_0x2b908f)[_0x5537c6(0x6e5)](_0x5537c6(0x10a5),_0x48b684)[_0x5537c6(0x6e5)](_0x5537c6(0x1eac),_0x3eaede)[_0x5537c6(0x6e5)]('SoundsController',_0x55f64d)[_0x5537c6(0x6e5)](_0x5537c6(0x117d),_0x433ded)[_0x5537c6(0x6e5)](_0x5537c6(0x155a),_0x48c557)[_0x5537c6(0x6e5)](_0x5537c6(0x11be),_0x2c9b78)[_0x5537c6(0x6e5)]('CreateOrEditTemplateDialogController',_0x3c966d)[_0x5537c6(0x6e5)](_0x5537c6(0x1693),_0x1eb611)[_0x5537c6(0x6e5)](_0x5537c6(0x1b24),_0x54633e)[_0x5537c6(0x6e5)](_0x5537c6(0x143b),_0x5cd9b0)[_0x5537c6(0x6e5)](_0x5537c6(0xd08),_0x1798ad)[_0x5537c6(0x6e5)]('TrunksController',_0xe25dde)[_0x5537c6(0x6e5)]('CreateOrEditVariableDialogController',_0x20fa3e)['controller'](_0x5537c6(0x27b4),_0x29eed3);;const _0x33673d=_0x5074a3['p']+_0x5537c6(0x1385);;const _0x1c69e4=_0x5074a3['p']+_0x5537c6(0x1de1);;_0x201865['$inject']=[_0x5537c6(0xcb9),_0x5537c6(0x1f10),_0x5537c6(0x406),'$q',_0x5537c6(0x1774),_0x5537c6(0x9bf),'projects','project',_0x5537c6(0x142b),'openFromEditor','crudPermissions'];function _0x201865(_0x571a1e,_0xe9c9cc,_0x1ecd94,_0x3945d2,_0x1e0ae3,_0x27bbb4,_0x5926cf,_0x42f7b0,_0x325010,_0x13e6c8,_0x36a123){const _0xc4ad9a=_0x5537c6,_0x495ce2=this;_0x495ce2[_0xc4ad9a(0x1a7c)]=[],_0x495ce2['title']=_0xc4ad9a(0x241f),_0x495ce2[_0xc4ad9a(0x1b1a)]=_0x36a123,_0x495ce2[_0xc4ad9a(0x12a7)]=angular[_0xc4ad9a(0x17fe)](_0x42f7b0),_0x495ce2[_0xc4ad9a(0x2900)]=!![],_0x495ce2['projects']=_0x5926cf,_0x495ce2[_0xc4ad9a(0xdc9)]=![],_0x495ce2[_0xc4ad9a(0x274a)]=_0x13e6c8;!_0x495ce2[_0xc4ad9a(0x12a7)]&&(_0x495ce2[_0xc4ad9a(0x12a7)]={'name':'','description':''},_0x495ce2['title']=_0xc4ad9a(0x2571),_0x495ce2[_0xc4ad9a(0xdc9)]=!![]);_0x495ce2[_0xc4ad9a(0xd7c)]=_0x5f3380,_0x495ce2[_0xc4ad9a(0xeb3)]=_0x527c83,_0x495ce2['deleteProject']=_0x3b6d54,_0x495ce2[_0xc4ad9a(0xda0)]=_0x29d755;function _0x5f3380(){const _0x1ab176=_0xc4ad9a;_0x495ce2[_0x1ab176(0x1a7c)]=[],_0x325010[_0x1ab176(0xf61)][_0x1ab176(0x1c3f)](_0x495ce2['project'])[_0x1ab176(0x1d77)][_0x1ab176(0x1cb0)](function(_0x1275cf){const _0x13541e=_0x1ab176;return _0x325010[_0x13541e(0xebe)][_0x13541e(0xc46)]({'id':_0x1e0ae3[_0x13541e(0x21e8)]()['id'],'ids':[_0x1275cf['id']]})[_0x13541e(0x1d77)],_0x1275cf;})[_0x1ab176(0x1cb0)](function(_0x331213){const _0x1cb386=_0x1ab176;_0x495ce2[_0x1cb386(0x2981)][_0x1cb386(0xf63)](_0x331213),_0x27bbb4['success']({'title':_0x1cb386(0xc28),'msg':_0x495ce2[_0x1cb386(0x12a7)]['name']?_0x495ce2[_0x1cb386(0x12a7)][_0x1cb386(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x29d755(_0x331213),_0x495ce2[_0x1cb386(0x274a)]&&(_0x495ce2[_0x1cb386(0x2900)]?_0xe9c9cc['open'](_0x1cb386(0x2cb)+_0x331213['id'],_0x1cb386(0x22ac)):_0x1ecd94['go'](_0x1cb386(0x291d),{'id':_0x331213['id']}));})[_0x1ab176(0x1c4)](function(_0x1b1f8c){const _0x53ef39=_0x1ab176;if(_0x1b1f8c['data']&&_0x1b1f8c[_0x53ef39(0x25c)]['errors']&&_0x1b1f8c['data'][_0x53ef39(0x1a7c)][_0x53ef39(0xfd0)]){_0x495ce2[_0x53ef39(0x1a7c)]=_0x1b1f8c['data']['errors']||[{'message':_0x1b1f8c[_0x53ef39(0x147f)](),'type':'api.squareProject.save'}];for(let _0x21a881=0x0;_0x21a881<_0x1b1f8c[_0x53ef39(0x25c)][_0x53ef39(0x1a7c)][_0x53ef39(0xfd0)];_0x21a881++){_0x27bbb4['error']({'title':_0x1b1f8c['data'][_0x53ef39(0x1a7c)][_0x21a881][_0x53ef39(0x66a)],'msg':_0x1b1f8c[_0x53ef39(0x25c)][_0x53ef39(0x1a7c)][_0x21a881][_0x53ef39(0x155e)]});}}else _0x27bbb4[_0x53ef39(0x218e)]({'title':_0x1b1f8c[_0x53ef39(0x291)]?_0x53ef39(0xeb9)+_0x1b1f8c[_0x53ef39(0x291)]+_0x53ef39(0x1657)+_0x1b1f8c['statusText']:_0x53ef39(0xfaa),'msg':_0x1b1f8c[_0x53ef39(0x25c)]?JSON['stringify'](_0x1b1f8c['data']['message']):_0x1b1f8c[_0x53ef39(0x147f)]()});});}function _0x527c83(){const _0x7b7724=_0xc4ad9a;_0x495ce2[_0x7b7724(0x1a7c)]=[],_0x325010[_0x7b7724(0xf61)][_0x7b7724(0x687)]({'id':_0x495ce2[_0x7b7724(0x12a7)]['id']},_0x495ce2[_0x7b7724(0x12a7)])['$promise'][_0x7b7724(0x1cb0)](function(_0x2a3e83){const _0x4687c9=_0x7b7724,_0x11031e=_0x39641b()[_0x4687c9(0x13b4)](_0x495ce2[_0x4687c9(0x2981)],{'id':_0x2a3e83['id']});_0x11031e&&_0x39641b()[_0x4687c9(0x9c1)](_0x11031e,_0x2a3e83),_0x27bbb4[_0x4687c9(0x829)]({'title':_0x4687c9(0xf2c),'msg':_0x495ce2[_0x4687c9(0x12a7)]['name']?_0x495ce2[_0x4687c9(0x12a7)][_0x4687c9(0x16b6)]+_0x4687c9(0xedb):''}),_0x29d755(_0x2a3e83);})['catch'](function(_0x3e3452){const _0x2ffa95=_0x7b7724;if(_0x3e3452[_0x2ffa95(0x25c)]&&_0x3e3452[_0x2ffa95(0x25c)]['errors']&&_0x3e3452[_0x2ffa95(0x25c)][_0x2ffa95(0x1a7c)][_0x2ffa95(0xfd0)]){_0x495ce2['errors']=_0x3e3452[_0x2ffa95(0x25c)][_0x2ffa95(0x1a7c)]||[{'message':_0x3e3452['toString'](),'type':'api.squareProject.update'}];for(let _0x34ebff=0x0;_0x34ebff<_0x3e3452[_0x2ffa95(0x25c)][_0x2ffa95(0x1a7c)][_0x2ffa95(0xfd0)];_0x34ebff++){_0x27bbb4[_0x2ffa95(0x218e)]({'title':_0x3e3452[_0x2ffa95(0x25c)][_0x2ffa95(0x1a7c)][_0x34ebff][_0x2ffa95(0x66a)],'msg':_0x3e3452[_0x2ffa95(0x25c)]['errors'][_0x34ebff]['message']});}}else _0x27bbb4[_0x2ffa95(0x218e)]({'title':_0x3e3452[_0x2ffa95(0x291)]?_0x2ffa95(0xeb9)+_0x3e3452['status']+_0x2ffa95(0x1657)+_0x3e3452[_0x2ffa95(0xc22)]:'api.squareProject.update','msg':_0x3e3452[_0x2ffa95(0x25c)]?JSON[_0x2ffa95(0x2701)](_0x3e3452['data'][_0x2ffa95(0x155e)]):_0x3e3452[_0x2ffa95(0x147f)]()});});}function _0x3b6d54(){const _0x13f02d=_0xc4ad9a;_0x495ce2[_0x13f02d(0x1a7c)]=[];const _0x59616e=_0x571a1e['confirm']()['title']('Are\x20you\x20sure?')[_0x13f02d(0x862)](_0x13f02d(0x12e0))[_0x13f02d(0x15ad)](_0x13f02d(0x1c03))['ok'](_0x13f02d(0x2594))['cancel'](_0x13f02d(0xde1))[_0x13f02d(0x728)](event);_0x571a1e[_0x13f02d(0xe27)](_0x59616e)[_0x13f02d(0x1cb0)](function(){const _0x31089e=_0x13f02d;_0x325010['squareProject']['delete']({'id':_0x495ce2[_0x31089e(0x12a7)]['id']})[_0x31089e(0x1d77)][_0x31089e(0x1cb0)](function(){const _0x57bcd0=_0x31089e;return _0x325010[_0x57bcd0(0xf61)][_0x57bcd0(0x8e7)]({'id':_0x495ce2[_0x57bcd0(0x12a7)]['id']})[_0x57bcd0(0x1d77)];})[_0x31089e(0x1cb0)](function(_0x20780b){const _0x1e15ee=_0x31089e,_0x5235fe=[],_0x33c533=_0x20780b[_0x1e15ee(0x2214)];for(let _0x20cea3=0x0;_0x20cea3<_0x33c533[_0x1e15ee(0xfd0)];_0x20cea3++){_0x5235fe['push'](_0x325010[_0x1e15ee(0xebe)][_0x1e15ee(0xb8c)]({'id':_0x1e0ae3[_0x1e15ee(0x21e8)]()['id'],'ids':[_0x495ce2[_0x1e15ee(0x12a7)]['id']]})['$promise']);}return _0x3945d2[_0x1e15ee(0x223b)](_0x5235fe);})[_0x31089e(0x1cb0)](function(){const _0x3d0180=_0x31089e;_0x39641b()['remove'](_0x495ce2[_0x3d0180(0x2981)],{'id':_0x495ce2[_0x3d0180(0x12a7)]['id']}),_0x27bbb4[_0x3d0180(0x829)]({'title':_0x3d0180(0x1300),'msg':_0x495ce2[_0x3d0180(0x12a7)]['name']?_0x495ce2['project']['name']+'\x20has\x20been\x20deleted!':''}),_0x29d755(_0x495ce2[_0x3d0180(0x12a7)]);})[_0x31089e(0x1c4)](function(_0x3b2728){const _0x3903f1=_0x31089e;console['error'](_0x3b2728),_0x495ce2[_0x3903f1(0x1a7c)]=_0x3b2728[_0x3903f1(0x25c)][_0x3903f1(0x1a7c)]||[{'message':_0x3b2728['toString'](),'type':_0x3903f1(0x1e45)}];});},function(){});}function _0x29d755(_0x2d7c8a){const _0x590a1f=_0xc4ad9a;_0x571a1e[_0x590a1f(0x1426)](_0x2d7c8a);}}const _0x3986c1=_0x201865;;_0x2ae533[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'api','toasty',_0x5537c6(0x144f),_0x5537c6(0x212f),_0x5537c6(0x1d4),'ispeechTtsLanguage',_0x5537c6(0x20bf),'googleTtsLanguage',_0x5537c6(0x1e30),'trunks',_0x5537c6(0x971),_0x5537c6(0xe28),_0x5537c6(0x9a9),_0x5537c6(0x1f42),_0x5537c6(0x2981),_0x5537c6(0x14f6),_0x5537c6(0xb4a),'mailAccounts',_0x5537c6(0x9b4),_0x5537c6(0x1046),_0x5537c6(0x1d1),'saveCallback',_0x5537c6(0x2508),'awsPollyRegion',_0x5537c6(0x1ac),'pauses',_0x5537c6(0x1829),_0x5537c6(0x13c8),'awsLexRegion',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x2ae533(_0x23af9b,_0x33cdb9,_0x242d43,_0x4ac92f,_0x31cbc9,_0x269d96,_0x3d9c50,_0x426198,_0x4aac1a,_0x205dc5,_0x523b98,_0x1cc66a,_0x5f4923,_0x1c4b15,_0x2cc210,_0xbe9160,_0x3c611c,_0x5d8a8b,_0x14622c,_0x4aad13,_0x5e0898,_0xcc292d,_0xaf3466,_0xd0b13,_0x48b65b,_0x49e576,_0x266da5,_0x5ef853,_0x3f9b17,_0x54e7c6,_0x608449,_0x4cef19){const _0x5d8c46=_0x5537c6,_0x1cd75c=this,_0x25745b={'playback':[_0x5d8c46(0xb14)],'answer':[_0x5d8c46(0x1719)],'menu':[_0x5d8c46(0xb14),_0x5d8c46(0xa56),_0x5d8c46(0x45d),_0x5d8c46(0x22e6)],'getdigits':['file_id','variable_id',_0x5d8c46(0x520),_0x5d8c46(0x1e37),'retry'],'getsecretdigits':[_0x5d8c46(0xb14),_0x5d8c46(0x101e),_0x5d8c46(0x520),_0x5d8c46(0x1e37),_0x5d8c46(0x2829),'retry'],'vswitch':['variable_id'],'database':[_0x5d8c46(0x31a),_0x5d8c46(0xae2)],'ext_dial':['trunk_name',_0x5d8c46(0x1340),'timeout'],'set':[_0x5d8c46(0x101e)],'math':['variable_id'],'gotoc':[_0x5d8c46(0x2056),_0x5d8c46(0xd52),_0x5d8c46(0x521)],'system':[_0x5d8c46(0xd0d)],'agi':[_0x5d8c46(0xd0d)],'gotoif':[_0x5d8c46(0x166c)],'saydigits':['digits'],'saynumber':[_0x5d8c46(0x83d)],'sayphonetic':['text'],'record':[_0x5d8c46(0x1ac4),_0x5d8c46(0x1719)],'goal':[_0x5d8c46(0x1392)],'dial':[_0x5d8c46(0x22e3),_0x5d8c46(0x1719)],'queue':[_0x5d8c46(0x2303),_0x5d8c46(0x1719)],'callback':[_0x5d8c46(0x1cf8),_0x5d8c46(0x16b6),_0x5d8c46(0x1340),'delay'],'gotoiftime':[_0x5d8c46(0xc76)],'voicemail':['mailbox'],'subproject':[_0x5d8c46(0xc47)],'sendSMS':[_0x5d8c46(0x1df1),'to',_0x5d8c46(0x1577)],'sendMail':[_0x5d8c46(0x2328),'to'],'sendFax':[_0x5d8c46(0x2328),'to',_0x5d8c46(0x1e56)],'google_cloud_tts':[_0x5d8c46(0x17d7),_0x5d8c46(0x2248),_0x5d8c46(0x19d3)],'tts':[_0x5d8c46(0x19d3)],'ispeechtts':[_0x5d8c46(0x19d3),_0x5d8c46(0xee8),'speed'],'ispeechasr':[_0x5d8c46(0xee8),'timeout'],'custom_app':[_0x5d8c46(0x171b)],'googleasr':['key',_0x5d8c46(0x1719)],'awspolly':['aws_access_key_id',_0x5d8c46(0x1237),_0x5d8c46(0x19d3),_0x5d8c46(0x262c)],'lumenvoxtts':[_0x5d8c46(0x19d3)],'sestektts':['text'],'lumenvoxasr':['grammar'],'sestekasr':[_0x5d8c46(0x1859)],'tildeasr':[_0x5d8c46(0xa53),_0x5d8c46(0x1b45),_0x5d8c46(0xa0b)],'login':[_0x5d8c46(0xfb6)],'pause':[_0x5d8c46(0xfb6),_0x5d8c46(0x82f)],'unpause':['findBy'],'logout':['findBy'],'dialogflow':[_0x5d8c46(0xee8),_0x5d8c46(0x19d3),_0x5d8c46(0x25ba)],'awslex':[_0x5d8c46(0xb66),_0x5d8c46(0x1237),'aws_lex_region','aws_bot_name',_0x5d8c46(0x19d3)],'sesteknda':[_0x5d8c46(0x19d3),_0x5d8c46(0x2067),_0x5d8c46(0x1ba7),_0x5d8c46(0x381),_0x5d8c46(0x11d6)],'restapi':[_0x5d8c46(0x135b),_0x5d8c46(0x656)],'mrcpsynth':['text'],'mrcprecog':[_0x5d8c46(0x1859)],'dialogflowV2':[_0x5d8c46(0x2390),'client_email',_0x5d8c46(0x1998),_0x5d8c46(0x20cc),_0x5d8c46(0x19d3)]},_0x331ecd={'queue':[_0x5d8c46(0xb14)],'database':[_0x5d8c46(0x101e)],'pause':[_0x5d8c46(0x82f)]},_0x4d1498={'sendMail':['to','cc',_0x5d8c46(0xd11)],'voicemail':[_0x5d8c46(0x1b7a)]};_0x1cd75c[_0x5d8c46(0x91b)]=_0xcc292d[_0x5d8c46(0x1954)],_0x1cd75c[_0x5d8c46(0x2504)]=_0x39641b()['map'](_0xcc292d[_0x5d8c46(0x2504)],function(_0x204f7b){const _0x293c01=_0x5d8c46;return{'name':_0x204f7b[_0x293c01(0x16b6)],'value':_0x204f7b[_0x293c01(0x327)],'defaultValue':_0x331ecd[_0x1cd75c[_0x293c01(0x91b)]]&&_0x39641b()[_0x293c01(0x250a)](_0x331ecd[_0x1cd75c[_0x293c01(0x91b)]],_0x204f7b['name']),'required':_0x25745b[_0x1cd75c['cellName']]&&_0x39641b()[_0x293c01(0x250a)](_0x25745b[_0x1cd75c[_0x293c01(0x91b)]],_0x204f7b[_0x293c01(0x16b6)]),'help':_0x4d1498[_0x1cd75c[_0x293c01(0x91b)]]&&_0x39641b()[_0x293c01(0x250a)](_0x4d1498[_0x1cd75c[_0x293c01(0x91b)]],_0x204f7b[_0x293c01(0x16b6)])};}),_0x1cd75c[_0x5d8c46(0x27aa)]={'authMethod':[{'value':_0x5d8c46(0x27f2),'option':_0x5d8c46(0x23b4)},{'value':_0x5d8c46(0x1235),'option':_0x5d8c46(0x2253)}],'answer':[{'value':_0x5d8c46(0x150d),'option':_0x5d8c46(0x1ab8)},{'value':'no','option':'No'}],'ndagenerate_audio':[{'value':0x1,'option':_0x5d8c46(0x1ab8)},{'value':0x0,'option':'No'}],'ndaactivity_type':[{'value':_0x5d8c46(0x155e),'option':_0x5d8c46(0x27df)},{'value':_0x5d8c46(0x164d),'option':_0x5d8c46(0x156e)},{'value':_0x5d8c46(0x5e5),'option':'Contact\x20Relation\x20Update'},{'value':_0x5d8c46(0xae7),'option':'End\x20of\x20Conversation'}],'hiddendigitspos':[{'value':_0x5d8c46(0xf07),'option':_0x5d8c46(0x133c)},{'value':_0x5d8c46(0x1f9e),'option':_0x5d8c46(0x1c10)}],'recordingFormat':[{'value':'wav','option':'Wav'},{'value':_0x5d8c46(0x2331),'option':'Gsm'}],'intkey':[{'value':'#','option':'#'},{'value':'*','option':'*'}],'beep':[{'value':'BEEP','option':'Yes'},{'value':_0x5d8c46(0x2349),'option':'No'}],'model':_0x4ac92f,'ispeech_asr_language':_0x31cbc9,'ispeech_tts_language':_0x3d9c50,'languageCode':_0x426198,'ssmlGender':[{'value':_0x5d8c46(0x660),'option':_0x5d8c46(0xe8b)},{'value':_0x5d8c46(0x17c5),'option':'Male'}],'google_tts_language':_0x4aac1a,'google_asr_language':_0x269d96,'google_cloud_tts_text_type':[{'value':_0x5d8c46(0x19d3),'option':_0x5d8c46(0x620)},{'value':_0x5d8c46(0x1c82),'option':_0x5d8c46(0x10b0)}],'aws_polly_region':_0x48b65b,'aws_polly_voice':_0xd0b13,'aws_text_type':[{'value':'text','option':_0x5d8c46(0x620)},{'value':_0x5d8c46(0x1c82),'option':_0x5d8c46(0x10b0)}],'callback_priority':[{'option':'Highest','value':0x4},{'option':'High','value':0x3},{'option':_0x5d8c46(0x274b),'value':0x2},{'option':_0x5d8c46(0x1ec),'value':0x1},{'option':_0x5d8c46(0x1d1c),'value':0x0}],'findBy':[{'value':_0x5d8c46(0xdbd),'option':'Internal'},{'value':'phone','option':_0x5d8c46(0x722)},{'value':_0x5d8c46(0x1ce6),'option':_0x5d8c46(0x16a4)}],'dialogflow_language':_0x5ef853,'dialogflowV2_language':_0x3f9b17,'aws_lex_region':_0x54e7c6,'method':[{'value':_0x5d8c46(0x163a),'option':_0x5d8c46(0x163a)},{'value':_0x5d8c46(0x126c),'option':_0x5d8c46(0x126c)},{'value':_0x5d8c46(0xf66),'option':'PUT'},{'value':'DELETE','option':_0x5d8c46(0x9c7)}]},_0x1cd75c['crudPermissions']=_0x4cef19,_0x1cd75c['onInit']=_0x312e09,_0x1cd75c[_0x5d8c46(0xda0)]=_0x59cade,_0x1cd75c['getMap']=_0x42d438;function _0x312e09(){const _0x28dc8d=_0x5d8c46;_0x608449[_0x28dc8d(0x22b6)](_0x28dc8d(0x1c60))?_0x4a3fca():_0xcd207f();}function _0x42d438(_0x570dfa,_0x594762,_0x4a88b2,_0x1f2542){const _0x4f057e=_0x5d8c46;return _0x39641b()[_0x4f057e(0x1de2)](_0x570dfa,function(_0x25507b){const _0x4b5ad3=_0x4f057e;return{'value':_0x25507b[_0x594762],'option':_0x25507b[_0x4a88b2],'group':_0x1f2542?_0x25507b[_0x1f2542]:undefined,'canSelect':typeof _0x25507b[_0x4b5ad3(0x15da)]!=='undefined'?_0x25507b[_0x4b5ad3(0x15da)]:!![]};});}function _0x16acb0(_0x4c2e94,_0x4e7cd2,_0x278a38,_0x49b27b){const _0x20c9a6=_0x39641b()['filter'](_0x4c2e94,function(_0x1705e6){return _0x1705e6[_0x49b27b]===null;}),_0x3faeac=[];return _0x39641b()['forEach'](_0x20c9a6,function(_0x41e24b){const _0x85b200=a0_0x5cbd;_0x3faeac[_0x85b200(0x2785)]({'value':_0x41e24b[_0x4e7cd2],'option':_0x41e24b[_0x278a38]});const _0x789f65=_0x39641b()[_0x85b200(0x1c99)](_0x4c2e94,function(_0x569698){return _0x569698[_0x49b27b]===_0x41e24b['id'];});_0x39641b()['forEach'](_0x789f65,function(_0x3ed066){const _0xc7fccf=_0x85b200;_0x3faeac[_0xc7fccf(0x2785)]({'value':_0x3ed066[_0x4e7cd2],'option':_0xc7fccf(0x1657)+_0x3ed066[_0x278a38]});});}),_0x3faeac;}function _0x4a3fca(){const _0x4b1f3d=_0x5d8c46,_0x3473e8={'sip_id':_0x42d438(_0x205dc5,'id',_0x4b1f3d(0x1d14),_0x4b1f3d(0x26e6)),'trunk_name':_0x42d438(_0x523b98,_0x4b1f3d(0x16b6),_0x4b1f3d(0x16b6)),'trunk_id':_0x42d438(_0x523b98,'id',_0x4b1f3d(0x16b6)),'queue_id':_0x42d438(_0x1cc66a,'id',_0x4b1f3d(0x16b6)),'file_id':_0x42d438(_0x5f4923,'id',_0x4b1f3d(0x16b6)),'variable_id':_0x42d438(_0x1c4b15,'id',_0x4b1f3d(0x16b6)),'odbc_id':_0x42d438(_0x2cc210,'id','name'),'project_id':_0x42d438(_0xbe9160,'id','name'),'context':_0x42d438(_0x3c611c,'id',_0x4b1f3d(0x16b6)),'interval_id':_0x16acb0(_0x5d8a8b,'id','name',_0x4b1f3d(0x1a60)),'account_id':_0x42d438(_0x14622c,'id','name'),'template_id':_0x42d438(_0x4aad13,'id','name'),'list_id':_0x42d438(_0x5e0898,'id','name'),'sms_account_id':_0x42d438(_0x49e576,'id',_0x4b1f3d(0x16b6)),'pause_id':_0x42d438(_0x266da5,'id',_0x4b1f3d(0x16b6))},_0x3f6f07=_0x39641b()['merge'](_0x1cd75c[_0x4b1f3d(0x27aa)],_0x3473e8);_0x1cd75c['values']=_0x3f6f07;}function _0xcd207f(){const _0x3dbb46=_0x5d8c46,_0x16583f=['sip_id',_0x3dbb46(0x1a81),_0x3dbb46(0x23c5),_0x3dbb46(0x2303),_0x3dbb46(0xb14),_0x3dbb46(0x101e),_0x3dbb46(0x31a),_0x3dbb46(0xc47),'context',_0x3dbb46(0xc76),_0x3dbb46(0x2328),_0x3dbb46(0x2720),_0x3dbb46(0x1cf8),_0x3dbb46(0x1df1),_0x3dbb46(0x82f)];for(let _0x27d047=0x0;_0x27d047<_0x1cd75c[_0x3dbb46(0x2504)][_0x3dbb46(0xfd0)];_0x27d047++){if(_0x39641b()[_0x3dbb46(0x250a)](_0x16583f,_0x1cd75c[_0x3dbb46(0x2504)][_0x27d047][_0x3dbb46(0x16b6)]))switch(_0x1cd75c[_0x3dbb46(0x2504)][_0x27d047][_0x3dbb46(0x16b6)]){case _0x3dbb46(0x22e3):_0x4ef063();break;case _0x3dbb46(0x1a81):_0x55f391();break;case _0x3dbb46(0x23c5):_0x5560a7();break;case _0x3dbb46(0x2303):_0x4b7f23();break;case _0x3dbb46(0xb14):_0x4e8d7f();break;case'variable_id':_0x283b77();break;case _0x3dbb46(0x31a):_0x412e63();break;case _0x3dbb46(0xc47):_0x20683f();break;case _0x3dbb46(0x2056):_0x2cbdf2();break;case _0x3dbb46(0xc76):_0x235af4();break;case _0x3dbb46(0x2328):_0x3c590b();break;case _0x3dbb46(0x2720):_0x4cf45d();break;case _0x3dbb46(0x1cf8):_0x2ba44e();break;case _0x3dbb46(0x1df1):_0x235675();break;case _0x3dbb46(0x82f):_0x4e81bd();break;}}}function _0x4ef063(){const _0x1c95db=_0x5d8c46,_0x187927=Number(_0x39641b()[_0x1c95db(0x13b4)](_0x1cd75c[_0x1c95db(0x2504)],{'name':_0x1c95db(0x22e3)})[_0x1c95db(0x327)]),_0x762915=_0x39641b()[_0x1c95db(0x727)](_0x205dc5,{'id':_0x187927});if(!_0x762915&&_0x187927>0x0)return _0x33cdb9['user'][_0x1c95db(0xbf7)]({'id':_0x187927,'fields':_0x1c95db(0x1db1)})[_0x1c95db(0x1d77)][_0x1c95db(0x1cb0)](function(_0x5a95c7){const _0x46af79=_0x1c95db,_0x2d3e7b=_0x5a95c7[_0x46af79(0x19b2)]();_0x2d3e7b['canSelect']=![],_0x205dc5[_0x46af79(0x2785)](_0x2d3e7b),_0x1cd75c[_0x46af79(0x27aa)][_0x46af79(0x22e3)]=_0x42d438(_0x205dc5,'id',_0x46af79(0x1d14),_0x46af79(0x26e6));})[_0x1c95db(0x1c4)](function(_0x4ac000){const _0x59ad65=_0x1c95db;_0x242d43[_0x59ad65(0x218e)]({'title':_0x4ac000[_0x59ad65(0x291)]?_0x59ad65(0xeb9)+_0x4ac000[_0x59ad65(0x291)]+_0x59ad65(0x1657)+_0x4ac000[_0x59ad65(0xc22)]:'GET_USER','msg':_0x4ac000[_0x59ad65(0x25c)]?JSON[_0x59ad65(0x2701)](_0x4ac000[_0x59ad65(0x25c)]['message']):_0x4ac000['toString']()});});else _0x1cd75c[_0x1c95db(0x27aa)]['sip_id']=_0x42d438(_0x205dc5,'id',_0x1c95db(0x1d14),_0x1c95db(0x26e6));}function _0x2ba44e(){const _0x180c56=_0x5d8c46,_0x48c2c1=Number(_0x39641b()[_0x180c56(0x13b4)](_0x1cd75c[_0x180c56(0x2504)],{'name':_0x180c56(0x1cf8)})[_0x180c56(0x327)]),_0x539955=_0x39641b()[_0x180c56(0x727)](_0x5e0898,{'id':_0x48c2c1});if(!_0x539955&&_0x48c2c1>0x0)return _0x33cdb9[_0x180c56(0x22f2)]['get']({'id':_0x48c2c1,'fields':_0x180c56(0x43c)})[_0x180c56(0x1d77)][_0x180c56(0x1cb0)](function(_0x42bc41){const _0x2c1d87=_0x180c56,_0x56f7f7=_0x42bc41[_0x2c1d87(0x19b2)]();_0x56f7f7['canSelect']=![],_0x5e0898[_0x2c1d87(0x2785)](_0x56f7f7),_0x1cd75c[_0x2c1d87(0x27aa)][_0x2c1d87(0x1cf8)]=_0x42d438(_0x5e0898,'id',_0x2c1d87(0x16b6));})[_0x180c56(0x1c4)](function(_0x462fa1){const _0x29989a=_0x180c56;_0x242d43[_0x29989a(0x218e)]({'title':_0x462fa1['status']?_0x29989a(0xeb9)+_0x462fa1['status']+_0x29989a(0x1657)+_0x462fa1[_0x29989a(0xc22)]:_0x29989a(0x20ae),'msg':_0x462fa1[_0x29989a(0x25c)]?JSON[_0x29989a(0x2701)](_0x462fa1[_0x29989a(0x25c)][_0x29989a(0x155e)]):_0x462fa1[_0x29989a(0x147f)]()});});else _0x1cd75c['values'][_0x180c56(0x1cf8)]=_0x42d438(_0x5e0898,'id','name');}function _0x5560a7(){const _0x322fef=_0x5d8c46,_0x79860a=Number(_0x39641b()['find'](_0x1cd75c[_0x322fef(0x2504)],{'name':_0x322fef(0x23c5)})[_0x322fef(0x327)]),_0x121da6=_0x39641b()[_0x322fef(0x727)](_0x523b98,{'id':_0x79860a});if(!_0x121da6&&_0x79860a>0x0)return _0x33cdb9['trunk'][_0x322fef(0xbf7)]({'id':_0x79860a,'fields':_0x322fef(0x43c)})[_0x322fef(0x1d77)][_0x322fef(0x1cb0)](function(_0x1f6ee8){const _0xa1c350=_0x322fef,_0x4aae91=_0x1f6ee8[_0xa1c350(0x19b2)]();_0x4aae91['canSelect']=![],_0x523b98[_0xa1c350(0x2785)](_0x4aae91),_0x1cd75c['values'][_0xa1c350(0x23c5)]=_0x42d438(_0x523b98,'id',_0xa1c350(0x16b6));})[_0x322fef(0x1c4)](function(_0x35af11){const _0x491c4d=_0x322fef;_0x242d43[_0x491c4d(0x218e)]({'title':_0x35af11['status']?'API:'+_0x35af11[_0x491c4d(0x291)]+'\x20-\x20'+_0x35af11[_0x491c4d(0xc22)]:_0x491c4d(0x222f),'msg':_0x35af11['data']?JSON[_0x491c4d(0x2701)](_0x35af11['data'][_0x491c4d(0x155e)]):_0x35af11['toString']()});});else _0x1cd75c[_0x322fef(0x27aa)][_0x322fef(0x23c5)]=_0x42d438(_0x523b98,'id',_0x322fef(0x16b6));}function _0x55f391(){const _0xb591a1=_0x5d8c46,_0x105d91=_0x39641b()[_0xb591a1(0x13b4)](_0x1cd75c[_0xb591a1(0x2504)],{'name':_0xb591a1(0x1a81)})[_0xb591a1(0x327)],_0x3c0a8b=_0x39641b()[_0xb591a1(0x727)](_0x523b98,{'name':_0x105d91});if(!_0x3c0a8b&&_0x105d91)return _0x33cdb9['trunk'][_0xb591a1(0xbf7)]({'name':_0x105d91,'fields':_0xb591a1(0x43c)})['$promise'][_0xb591a1(0x1cb0)](function(_0x59a01f){const _0x4178ea=_0xb591a1;if(_0x59a01f[_0x4178ea(0x184d)]>0x0&&_0x59a01f[_0x4178ea(0x2214)][_0x4178ea(0xfd0)]>0x0){const _0x26b8cb=_0x59a01f[_0x4178ea(0x2214)][0x0];_0x26b8cb[_0x4178ea(0x15da)]=![],_0x523b98['push'](_0x26b8cb),_0x1cd75c[_0x4178ea(0x27aa)][_0x4178ea(0x1a81)]=_0x42d438(_0x523b98,_0x4178ea(0x16b6),_0x4178ea(0x16b6));}})['catch'](function(_0x2f13d4){const _0x1a4e6c=_0xb591a1;_0x242d43[_0x1a4e6c(0x218e)]({'title':_0x2f13d4[_0x1a4e6c(0x291)]?_0x1a4e6c(0xeb9)+_0x2f13d4['status']+_0x1a4e6c(0x1657)+_0x2f13d4[_0x1a4e6c(0xc22)]:_0x1a4e6c(0x222f),'msg':_0x2f13d4['data']?JSON[_0x1a4e6c(0x2701)](_0x2f13d4[_0x1a4e6c(0x25c)][_0x1a4e6c(0x155e)]):_0x2f13d4[_0x1a4e6c(0x147f)]()});});else _0x1cd75c['values'][_0xb591a1(0x1a81)]=_0x42d438(_0x523b98,_0xb591a1(0x16b6),_0xb591a1(0x16b6));}function _0x4b7f23(){const _0x19393c=_0x5d8c46,_0x25b577=Number(_0x39641b()[_0x19393c(0x13b4)](_0x1cd75c['attributes'],{'name':_0x19393c(0x2303)})[_0x19393c(0x327)]),_0x9825c9=_0x39641b()[_0x19393c(0x727)](_0x1cc66a,{'id':_0x25b577});if(!_0x9825c9&&_0x25b577>0x0)return _0x33cdb9['voiceQueue']['get']({'id':_0x25b577,'fields':_0x19393c(0x43c)})['$promise'][_0x19393c(0x1cb0)](function(_0x222283){const _0x824fd2=_0x19393c,_0x3a910f=_0x222283[_0x824fd2(0x19b2)]();_0x3a910f[_0x824fd2(0x15da)]=![],_0x1cc66a[_0x824fd2(0x2785)](_0x3a910f),_0x1cd75c[_0x824fd2(0x27aa)][_0x824fd2(0x2303)]=_0x42d438(_0x1cc66a,'id',_0x824fd2(0x16b6));})[_0x19393c(0x1c4)](function(_0x2c6530){const _0x4d716d=_0x19393c;_0x242d43[_0x4d716d(0x218e)]({'title':_0x2c6530['status']?_0x4d716d(0xeb9)+_0x2c6530[_0x4d716d(0x291)]+_0x4d716d(0x1657)+_0x2c6530['statusText']:_0x4d716d(0x1d61),'msg':_0x2c6530[_0x4d716d(0x25c)]?JSON['stringify'](_0x2c6530['data'][_0x4d716d(0x155e)]):_0x2c6530['toString']()});});else _0x1cd75c['values'][_0x19393c(0x2303)]=_0x42d438(_0x1cc66a,'id','name');}function _0x4e8d7f(){const _0x10f68e=_0x5d8c46,_0x5d1763=Number(_0x39641b()[_0x10f68e(0x13b4)](_0x1cd75c['attributes'],{'name':_0x10f68e(0xb14)})[_0x10f68e(0x327)]),_0x37afb9=_0x39641b()[_0x10f68e(0x727)](_0x5f4923,{'id':_0x5d1763});if(!_0x37afb9&&_0x5d1763>0x0)return _0x33cdb9[_0x10f68e(0x1e9)]['get']({'id':_0x5d1763,'fields':_0x10f68e(0x43c)})[_0x10f68e(0x1d77)][_0x10f68e(0x1cb0)](function(_0x294a2f){const _0x5a6127=_0x10f68e,_0x1a2c26=_0x294a2f[_0x5a6127(0x19b2)]();_0x1a2c26['canSelect']=![],_0x5f4923[_0x5a6127(0x2785)](_0x1a2c26),_0x1cd75c[_0x5a6127(0x27aa)][_0x5a6127(0xb14)]=_0x42d438(_0x5f4923,'id',_0x5a6127(0x16b6));})[_0x10f68e(0x1c4)](function(_0x3cf5c9){const _0x24b5ae=_0x10f68e;_0x242d43[_0x24b5ae(0x218e)]({'title':_0x3cf5c9[_0x24b5ae(0x291)]?'API:'+_0x3cf5c9[_0x24b5ae(0x291)]+'\x20-\x20'+_0x3cf5c9[_0x24b5ae(0xc22)]:_0x24b5ae(0x255c),'msg':_0x3cf5c9[_0x24b5ae(0x25c)]?JSON[_0x24b5ae(0x2701)](_0x3cf5c9['data'][_0x24b5ae(0x155e)]):_0x3cf5c9[_0x24b5ae(0x147f)]()});});else _0x1cd75c['values'][_0x10f68e(0xb14)]=_0x42d438(_0x5f4923,'id',_0x10f68e(0x16b6));}function _0x283b77(){const _0x1afe63=_0x5d8c46,_0x4e8f59=Number(_0x39641b()['find'](_0x1cd75c['attributes'],{'name':'variable_id'})[_0x1afe63(0x327)]),_0x357610=_0x39641b()['some'](_0x1c4b15,{'id':_0x4e8f59});if(!_0x357610&&_0x4e8f59>0x0)return _0x33cdb9[_0x1afe63(0x1822)]['get']({'id':_0x4e8f59,'fields':_0x1afe63(0x43c)})[_0x1afe63(0x1d77)][_0x1afe63(0x1cb0)](function(_0x15991e){const _0x146581=_0x1afe63,_0x479837=_0x15991e['toJSON']();_0x479837[_0x146581(0x15da)]=![],_0x1c4b15[_0x146581(0x2785)](_0x479837),_0x1cd75c[_0x146581(0x27aa)][_0x146581(0x101e)]=_0x42d438(_0x1c4b15,'id',_0x146581(0x16b6));})['catch'](function(_0x4c7b33){const _0x2283ad=_0x1afe63;_0x242d43['error']({'title':_0x4c7b33[_0x2283ad(0x291)]?'API:'+_0x4c7b33['status']+_0x2283ad(0x1657)+_0x4c7b33['statusText']:_0x2283ad(0x18bb),'msg':_0x4c7b33[_0x2283ad(0x25c)]?JSON[_0x2283ad(0x2701)](_0x4c7b33[_0x2283ad(0x25c)]['message']):_0x4c7b33['toString']()});});else _0x1cd75c[_0x1afe63(0x27aa)]['variable_id']=_0x42d438(_0x1c4b15,'id','name');}function _0x412e63(){const _0x22c858=_0x5d8c46,_0x4cf804=Number(_0x39641b()['find'](_0x1cd75c['attributes'],{'name':_0x22c858(0x31a)})[_0x22c858(0x327)]),_0x48eb33=_0x39641b()[_0x22c858(0x727)](_0x2cc210,{'id':_0x4cf804});if(!_0x48eb33&&_0x4cf804>0x0)return _0x33cdb9[_0x22c858(0xd7f)]['get']({'id':_0x4cf804,'fields':'id,name'})['$promise']['then'](function(_0x3da7fc){const _0x1b2ea6=_0x22c858,_0x24fb38=_0x3da7fc[_0x1b2ea6(0x19b2)]();_0x24fb38[_0x1b2ea6(0x15da)]=![],_0x2cc210[_0x1b2ea6(0x2785)](_0x24fb38),_0x1cd75c[_0x1b2ea6(0x27aa)][_0x1b2ea6(0x31a)]=_0x42d438(_0x2cc210,'id',_0x1b2ea6(0x16b6));})['catch'](function(_0x271bd9){const _0x35c472=_0x22c858;_0x242d43['error']({'title':_0x271bd9['status']?_0x35c472(0xeb9)+_0x271bd9[_0x35c472(0x291)]+'\x20-\x20'+_0x271bd9[_0x35c472(0xc22)]:'GET_ODBC','msg':_0x271bd9['data']?JSON['stringify'](_0x271bd9[_0x35c472(0x25c)][_0x35c472(0x155e)]):_0x271bd9['toString']()});});else _0x1cd75c['values'][_0x22c858(0x31a)]=_0x42d438(_0x2cc210,'id','name');}function _0x20683f(){const _0x18da5f=_0x5d8c46,_0x5b2cf4=Number(_0x39641b()['find'](_0x1cd75c[_0x18da5f(0x2504)],{'name':_0x18da5f(0xc47)})[_0x18da5f(0x327)]),_0x57cad5=_0x39641b()[_0x18da5f(0x727)](_0xbe9160,{'id':_0x5b2cf4});if(!_0x57cad5&&_0x5b2cf4>0x0)return _0x33cdb9['squareProject'][_0x18da5f(0xbf7)]({'id':_0x5b2cf4,'fields':_0x18da5f(0x43c)})['$promise'][_0x18da5f(0x1cb0)](function(_0x55de2e){const _0x321c06=_0x18da5f,_0x23c4ef=_0x55de2e[_0x321c06(0x19b2)]();_0x23c4ef[_0x321c06(0x15da)]=![],_0xbe9160[_0x321c06(0x2785)](_0x23c4ef),_0x1cd75c[_0x321c06(0x27aa)]['project_id']=_0x42d438(_0xbe9160,'id',_0x321c06(0x16b6));})['catch'](function(_0x199efd){const _0x3e4d94=_0x18da5f;_0x242d43[_0x3e4d94(0x218e)]({'title':_0x199efd[_0x3e4d94(0x291)]?_0x3e4d94(0xeb9)+_0x199efd['status']+'\x20-\x20'+_0x199efd[_0x3e4d94(0xc22)]:_0x3e4d94(0x5a6),'msg':_0x199efd['data']?JSON[_0x3e4d94(0x2701)](_0x199efd[_0x3e4d94(0x25c)]['message']):_0x199efd[_0x3e4d94(0x147f)]()});});else _0x1cd75c[_0x18da5f(0x27aa)]['project_id']=_0x42d438(_0xbe9160,'id',_0x18da5f(0x16b6));}function _0x2cbdf2(){const _0x5260e3=_0x5d8c46,_0x25d6bd=Number(_0x39641b()['find'](_0x1cd75c[_0x5260e3(0x2504)],{'name':_0x5260e3(0x2056)})[_0x5260e3(0x327)]),_0x4e83b1=_0x39641b()[_0x5260e3(0x727)](_0x3c611c,{'id':_0x25d6bd});if(!_0x4e83b1&&_0x25d6bd>0x0)return _0x33cdb9[_0x5260e3(0x1da5)]['get']({'id':_0x25d6bd,'fields':'id,name'})[_0x5260e3(0x1d77)]['then'](function(_0xc7d2aa){const _0x2cb861=_0x5260e3,_0x364b26=_0xc7d2aa['toJSON']();_0x364b26['canSelect']=![],_0x3c611c['push'](_0x364b26),_0x1cd75c[_0x2cb861(0x27aa)]['context']=_0x42d438(_0x3c611c,'id',_0x2cb861(0x16b6));})['catch'](function(_0x4c0c21){const _0x5840ad=_0x5260e3;_0x242d43[_0x5840ad(0x218e)]({'title':_0x4c0c21['status']?_0x5840ad(0xeb9)+_0x4c0c21[_0x5840ad(0x291)]+'\x20-\x20'+_0x4c0c21[_0x5840ad(0xc22)]:'GET_CONTEXT','msg':_0x4c0c21[_0x5840ad(0x25c)]?JSON[_0x5840ad(0x2701)](_0x4c0c21['data']['message']):_0x4c0c21[_0x5840ad(0x147f)]()});});else _0x1cd75c[_0x5260e3(0x27aa)][_0x5260e3(0x2056)]=_0x42d438(_0x3c611c,'id',_0x5260e3(0x16b6));}function _0x235af4(){const _0x410020=_0x5d8c46,_0x27048b=Number(_0x39641b()['find'](_0x1cd75c['attributes'],{'name':_0x410020(0xc76)})[_0x410020(0x327)]),_0x30366a=_0x39641b()['some'](_0x5d8a8b,{'id':_0x27048b});if(!_0x30366a&&_0x27048b>0x0)return _0x33cdb9[_0x410020(0x1ac8)][_0x410020(0xbf7)]({'id':_0x27048b,'fields':_0x410020(0x2904)})[_0x410020(0x1d77)][_0x410020(0x1cb0)](function(_0x3ac1e8){const _0x39ca81=_0x410020,_0x2bbcc4=_0x3ac1e8[_0x39ca81(0x19b2)]();_0x2bbcc4['canSelect']=![],_0x5d8a8b[_0x39ca81(0x2785)](_0x2bbcc4),_0x1cd75c[_0x39ca81(0x27aa)]['interval_id']=_0x42d438(_0x5d8a8b,'id',_0x39ca81(0x16b6),_0x39ca81(0x1a60));})[_0x410020(0x1c4)](function(_0x3f768b){const _0x31d940=_0x410020;_0x242d43['error']({'title':_0x3f768b[_0x31d940(0x291)]?'API:'+_0x3f768b[_0x31d940(0x291)]+'\x20-\x20'+_0x3f768b['statusText']:'GET_INTERVAL','msg':_0x3f768b[_0x31d940(0x25c)]?JSON[_0x31d940(0x2701)](_0x3f768b[_0x31d940(0x25c)]['message']):_0x3f768b[_0x31d940(0x147f)]()});});else _0x1cd75c[_0x410020(0x27aa)]['interval_id']=_0x42d438(_0x5d8a8b,'id',_0x410020(0x16b6),_0x410020(0x1a60));}function _0x3c590b(){const _0x4562b3=_0x5d8c46,_0x17e022=Number(_0x39641b()[_0x4562b3(0x13b4)](_0x1cd75c[_0x4562b3(0x2504)],{'name':'account_id'})[_0x4562b3(0x327)]),_0x2ebbcd=_0x39641b()[_0x4562b3(0x727)](_0x14622c,{'id':_0x17e022});if(!_0x2ebbcd&&_0x17e022>0x0)return _0x33cdb9[_0x4562b3(0x131c)][_0x4562b3(0xbf7)]({'id':_0x17e022,'fields':_0x4562b3(0x43c)})[_0x4562b3(0x1d77)][_0x4562b3(0x1cb0)](function(_0x3dd6ef){const _0xa97168=_0x4562b3,_0x71f9b9=_0x3dd6ef[_0xa97168(0x19b2)]();_0x71f9b9['canSelect']=![],_0x14622c[_0xa97168(0x2785)](_0x71f9b9),_0x1cd75c[_0xa97168(0x27aa)][_0xa97168(0x2328)]=_0x42d438(_0x14622c,'id',_0xa97168(0x16b6));})[_0x4562b3(0x1c4)](function(_0x1bc183){const _0x5d4ecc=_0x4562b3;_0x242d43[_0x5d4ecc(0x218e)]({'title':_0x1bc183['status']?_0x5d4ecc(0xeb9)+_0x1bc183[_0x5d4ecc(0x291)]+_0x5d4ecc(0x1657)+_0x1bc183[_0x5d4ecc(0xc22)]:'GET_MAIL_ACCOUNT','msg':_0x1bc183['data']?JSON[_0x5d4ecc(0x2701)](_0x1bc183[_0x5d4ecc(0x25c)][_0x5d4ecc(0x155e)]):_0x1bc183[_0x5d4ecc(0x147f)]()});});else _0x1cd75c[_0x4562b3(0x27aa)][_0x4562b3(0x2328)]=_0x42d438(_0x14622c,'id',_0x4562b3(0x16b6));}function _0x235675(){const _0xb0c5cb=_0x5d8c46,_0x1f9e48=Number(_0x39641b()[_0xb0c5cb(0x13b4)](_0x1cd75c[_0xb0c5cb(0x2504)],{'name':'sms_account_id'})['value']),_0x4bef6c=_0x39641b()[_0xb0c5cb(0x727)](_0x49e576,{'id':_0x1f9e48});if(!_0x4bef6c&&_0x1f9e48>0x0)return _0x33cdb9[_0xb0c5cb(0x658)][_0xb0c5cb(0xbf7)]({'id':_0x1f9e48,'fields':'id,name'})[_0xb0c5cb(0x1d77)][_0xb0c5cb(0x1cb0)](function(_0x2adddd){const _0x52b8d6=_0xb0c5cb,_0x78339d=_0x2adddd['toJSON']();_0x78339d['canSelect']=![],_0x49e576[_0x52b8d6(0x2785)](_0x78339d),_0x1cd75c[_0x52b8d6(0x27aa)][_0x52b8d6(0x1df1)]=_0x42d438(_0x49e576,'id',_0x52b8d6(0x16b6));})[_0xb0c5cb(0x1c4)](function(_0x4f54ba){const _0x341ed5=_0xb0c5cb;_0x242d43[_0x341ed5(0x218e)]({'title':_0x4f54ba[_0x341ed5(0x291)]?_0x341ed5(0xeb9)+_0x4f54ba[_0x341ed5(0x291)]+'\x20-\x20'+_0x4f54ba[_0x341ed5(0xc22)]:'GET_SMS_ACCOUNT','msg':_0x4f54ba['data']?JSON[_0x341ed5(0x2701)](_0x4f54ba['data']['message']):_0x4f54ba[_0x341ed5(0x147f)]()});});else _0x1cd75c['values'][_0xb0c5cb(0x1df1)]=_0x42d438(_0x49e576,'id',_0xb0c5cb(0x16b6));}function _0x4cf45d(){const _0x3170b3=_0x5d8c46,_0x4d96fe=Number(_0x39641b()[_0x3170b3(0x13b4)](_0x1cd75c['attributes'],{'name':_0x3170b3(0x2720)})[_0x3170b3(0x327)]),_0x254d1b=_0x39641b()[_0x3170b3(0x727)](_0x4aad13,{'id':_0x4d96fe});if(!_0x254d1b&&_0x4d96fe>0x0)return _0x33cdb9[_0x3170b3(0x2330)][_0x3170b3(0xbf7)]({'id':_0x4d96fe,'fields':_0x3170b3(0x43c)})[_0x3170b3(0x1d77)][_0x3170b3(0x1cb0)](function(_0x20c861){const _0x4e1d78=_0x3170b3,_0x3381ed=_0x20c861[_0x4e1d78(0x19b2)]();_0x3381ed[_0x4e1d78(0x15da)]=![],_0x4aad13[_0x4e1d78(0x2785)](_0x3381ed),_0x1cd75c[_0x4e1d78(0x27aa)][_0x4e1d78(0x2720)]=_0x42d438(_0x4aad13,'id',_0x4e1d78(0x16b6));})[_0x3170b3(0x1c4)](function(_0x3f1cb2){const _0x1ee69e=_0x3170b3;_0x242d43[_0x1ee69e(0x218e)]({'title':_0x3f1cb2['status']?_0x1ee69e(0xeb9)+_0x3f1cb2['status']+_0x1ee69e(0x1657)+_0x3f1cb2[_0x1ee69e(0xc22)]:_0x1ee69e(0x164b),'msg':_0x3f1cb2[_0x1ee69e(0x25c)]?JSON[_0x1ee69e(0x2701)](_0x3f1cb2[_0x1ee69e(0x25c)][_0x1ee69e(0x155e)]):_0x3f1cb2['toString']()});});else _0x1cd75c[_0x3170b3(0x27aa)][_0x3170b3(0x2720)]=_0x42d438(_0x4aad13,'id','name');}function _0x4e81bd(){const _0x79eefd=_0x5d8c46,_0x1f6371=Number(_0x39641b()['find'](_0x1cd75c[_0x79eefd(0x2504)],{'name':_0x79eefd(0x82f)})[_0x79eefd(0x327)]),_0x302692=_0x39641b()[_0x79eefd(0x727)](_0x266da5,{'id':_0x1f6371});if(!_0x302692&&_0x1f6371>0x0)return _0x33cdb9[_0x79eefd(0x785)]['get']({'id':_0x1f6371,'fields':_0x79eefd(0x43c)})[_0x79eefd(0x1d77)]['then'](function(_0x327986){const _0x11d02b=_0x79eefd,_0x249c86=_0x327986[_0x11d02b(0x19b2)]();_0x249c86[_0x11d02b(0x15da)]=![],_0x266da5[_0x11d02b(0x2785)](_0x249c86),_0x1cd75c[_0x11d02b(0x27aa)][_0x11d02b(0x82f)]=_0x42d438(_0x266da5,'id','name');})['catch'](function(_0x121042){const _0x35834d=_0x79eefd;_0x242d43['error']({'title':_0x121042[_0x35834d(0x291)]?_0x35834d(0xeb9)+_0x121042['status']+'\x20-\x20'+_0x121042['statusText']:_0x35834d(0x387),'msg':_0x121042[_0x35834d(0x25c)]?JSON['stringify'](_0x121042[_0x35834d(0x25c)][_0x35834d(0x155e)]):_0x121042[_0x35834d(0x147f)]()});});else _0x1cd75c[_0x79eefd(0x27aa)][_0x79eefd(0x82f)]=_0x42d438(_0x266da5,'id',_0x79eefd(0x16b6));}function _0x59cade(_0x595fbe){const _0x7268bb=_0x5d8c46;_0x595fbe&&_0xaf3466(_0x1cd75c[_0x7268bb(0x2504)]),_0x23af9b[_0x7268bb(0x1426)]();}}const _0x4fd633=_0x2ae533;;function _0x8e91f7(){const _0x3aaf24=_0x5537c6;return{'require':_0x3aaf24(0x26c1),'link':function(_0x24f8cb,_0x4a5ee5,_0x1ebe84,_0x577b5d){const _0x5a0aee=_0x3aaf24;_0x577b5d[_0x5a0aee(0x21e1)]['push'](function(_0x1ce266){return''+_0x1ce266;}),_0x577b5d[_0x5a0aee(0x14fd)][_0x5a0aee(0x2785)](function(_0x5cd9ca){return parseFloat(_0x5cd9ca);});}};}const _0x10ac0d=_0x8e91f7;;function _0x6e3880(){const _0x4a671f=_0x5537c6;return[{'value':'da','option':_0x4a671f(0x1f7)},{'value':'en','option':_0x4a671f(0xc8b)},{'value':'de','option':_0x4a671f(0x41b)},{'value':'it','option':_0x4a671f(0x2257)},{'value':'es','option':_0x4a671f(0x2672)},{'value':'fr','option':'French'},{'value':'id','option':_0x4a671f(0x600)},{'value':'ja','option':_0x4a671f(0x243f)},{'value':'ko','option':_0x4a671f(0x2773)},{'value':'nl','option':_0x4a671f(0x2027)},{'value':'no','option':_0x4a671f(0x12a8)},{'value':'pt','option':_0x4a671f(0xf02)},{'value':_0x4a671f(0x1b70),'option':_0x4a671f(0x1a45)},{'value':'ru','option':_0x4a671f(0x1dec)},{'value':'sv','option':_0x4a671f(0x15fe)},{'value':'th','option':_0x4a671f(0x20c)},{'value':'uk','option':_0x4a671f(0x526)},{'value':_0x4a671f(0x1261),'option':_0x4a671f(0xb4e)},{'value':_0x4a671f(0x219e),'option':_0x4a671f(0xf5c)},{'value':_0x4a671f(0x517),'option':_0x4a671f(0x1784)}];}function _0x49ef41(){const _0x1d4db8=_0x5537c6;return[{'value':'zh-HK','option':'Chinese\x20(Cantonese)'},{'value':_0x1d4db8(0x1261),'option':'Chinese\x20(Simplified)'},{'value':'zh-TW','option':'Chinese\x20(Traditional)'},{'value':'da','option':_0x1d4db8(0x1f7)},{'value':'nl','option':_0x1d4db8(0x2027)},{'value':'en','option':_0x1d4db8(0xc8b)},{'value':_0x1d4db8(0x23f6),'option':_0x1d4db8(0x4a2)},{'value':_0x1d4db8(0x453),'option':_0x1d4db8(0x1edf)},{'value':_0x1d4db8(0xe7d),'option':_0x1d4db8(0x28eb)},{'value':_0x1d4db8(0x1d09),'option':_0x1d4db8(0x57b)},{'value':_0x1d4db8(0x21fb),'option':'English\x20(US)'},{'value':'fr','option':_0x1d4db8(0x19a)},{'value':'fr-CA','option':_0x1d4db8(0x2207)},{'value':_0x1d4db8(0x1005),'option':_0x1d4db8(0x1ff2)},{'value':'de','option':_0x1d4db8(0x41b)},{'value':'hi','option':_0x1d4db8(0x1265)},{'value':'id','option':'Indonesian'},{'value':'it','option':_0x1d4db8(0x2257)},{'value':'ja','option':_0x1d4db8(0x243f)},{'value':'ko','option':_0x1d4db8(0x14f3)},{'value':'no','option':'Norwegian'},{'value':'pl','option':_0x1d4db8(0x2960)},{'value':_0x1d4db8(0x183f),'option':_0x1d4db8(0xa0f)},{'value':_0x1d4db8(0x272f),'option':_0x1d4db8(0x967)},{'value':'ru','option':'Russian'},{'value':'es','option':_0x1d4db8(0x2672)},{'value':_0x1d4db8(0x20bd),'option':_0x1d4db8(0x1051)},{'value':_0x1d4db8(0xf85),'option':_0x1d4db8(0x24bd)},{'value':'sw','option':_0x1d4db8(0x15fe)},{'value':'th','option':_0x1d4db8(0x20c)},{'value':'tr','option':_0x1d4db8(0x1543)},{'value':'uk','option':_0x1d4db8(0x526)}];}function _0x179347(){const _0x538e51=_0x5537c6;return[{'value':_0x538e51(0x180b),'option':_0x538e51(0x18ad)},{'value':_0x538e51(0x22d5),'option':_0x538e51(0x1257)},{'value':_0x538e51(0x9f4),'option':'Danish\x20(Denmark)'},{'value':_0x538e51(0x1a5e),'option':_0x538e51(0x10bb)},{'value':_0x538e51(0x138e),'option':_0x538e51(0x1f15)},{'value':_0x538e51(0x23f6),'option':'English\x20(Australian)'},{'value':_0x538e51(0x1d09),'option':_0x538e51(0x57b)},{'value':'en-GB','option':_0x538e51(0x212)},{'value':_0x538e51(0x21fb),'option':_0x538e51(0x146b)},{'value':'fi-FI','option':_0x538e51(0x2314)},{'value':_0x538e51(0x1a73),'option':_0x538e51(0xb08)},{'value':_0x538e51(0xd8d),'option':_0x538e51(0x2207)},{'value':_0x538e51(0x1005),'option':_0x538e51(0x4ee)},{'value':'hi-IN','option':_0x538e51(0x1e20)},{'value':_0x538e51(0x1fee),'option':'Hungarian\x20(Hungary)'},{'value':_0x538e51(0xdb8),'option':_0x538e51(0x481)},{'value':_0x538e51(0x1ec3),'option':_0x538e51(0x4ec)},{'value':_0x538e51(0x2496),'option':'Japanese\x20(Japan)'},{'value':'ko-KR','option':_0x538e51(0x2773)},{'value':'cmn-CN','option':'Mandarin\x20Chinese'},{'value':_0x538e51(0x1dfd),'option':_0x538e51(0x16fd)},{'value':_0x538e51(0x249),'option':_0x538e51(0x1816)},{'value':'pt-BR','option':_0x538e51(0xa0f)},{'value':'pt-PT','option':_0x538e51(0x967)},{'value':'ru-RU','option':_0x538e51(0xa89)},{'value':_0x538e51(0x1080),'option':_0x538e51(0x4ea)},{'value':_0x538e51(0xf85),'option':_0x538e51(0x24bd)},{'value':_0x538e51(0x4f1),'option':'Swedish\x20(Sweden)'},{'value':_0x538e51(0x183d),'option':_0x538e51(0x18d2)},{'value':_0x538e51(0x10e7),'option':'Ukrainian\x20(Ukraine)'},{'value':_0x538e51(0x296f),'option':_0x538e51(0x1d83)}];}function _0x522ebf(){const _0x3e0901=_0x5537c6;return[{'value':'af','option':_0x3e0901(0x19dd)},{'value':'sq','option':_0x3e0901(0x17fa)},{'value':'am','option':'Amharic'},{'value':'ar','option':'Arabic'},{'value':'hy','option':_0x3e0901(0x1d62)},{'value':'az','option':_0x3e0901(0x261)},{'value':'eu','option':'Basque'},{'value':'be','option':'Belarusian'},{'value':'bn','option':'Bengali'},{'value':'bh','option':_0x3e0901(0x1c4b)},{'value':'bs','option':_0x3e0901(0x1796)},{'value':'br','option':_0x3e0901(0x18a2)},{'value':'bg','option':_0x3e0901(0x119b)},{'value':'km','option':_0x3e0901(0x1687)},{'value':'ca','option':'Catalan'},{'value':'zh-CN','option':_0x3e0901(0xb4e)},{'value':'zh-TW','option':_0x3e0901(0x1784)},{'value':'co','option':_0x3e0901(0xd1f)},{'value':'hr','option':_0x3e0901(0x57f)},{'value':'cs','option':_0x3e0901(0xec7)},{'value':'da','option':_0x3e0901(0x1f7)},{'value':'nl','option':'Dutch'},{'value':'en','option':_0x3e0901(0xc8b)},{'value':'eo','option':_0x3e0901(0x136a)},{'value':'et','option':'Estonian'},{'value':'fo','option':_0x3e0901(0x7c0)},{'value':'tl','option':_0x3e0901(0xca5)},{'value':'fi','option':_0x3e0901(0x1c65)},{'value':'fr','option':_0x3e0901(0x19a)},{'value':'fy','option':'Frisian'},{'value':'gl','option':_0x3e0901(0x1296)},{'value':'ka','option':_0x3e0901(0xe2d)},{'value':'de','option':_0x3e0901(0x41b)},{'value':'el','option':'Greek'},{'value':'gn','option':_0x3e0901(0xf6e)},{'value':'gu','option':_0x3e0901(0x28bd)},{'value':'xx-hacker','option':_0x3e0901(0x900)},{'value':'ha','option':_0x3e0901(0x5c6)},{'value':'iw','option':_0x3e0901(0x1dc2)},{'value':'hi','option':_0x3e0901(0x1265)},{'value':'hu','option':_0x3e0901(0x376)},{'value':'is','option':'Icelandic'},{'value':'id','option':_0x3e0901(0x600)},{'value':'ia','option':_0x3e0901(0x181e)},{'value':'ga','option':_0x3e0901(0x25a1)},{'value':'it','option':_0x3e0901(0x2257)},{'value':'jw','option':_0x3e0901(0x25e3)},{'value':'ja','option':_0x3e0901(0x243f)},{'value':'kn','option':_0x3e0901(0x6e0)},{'value':'kk','option':'Kazakh'},{'value':'rw','option':'Kinyarwanda'},{'value':'rn','option':'Kirundi'},{'value':'xx-klingon','option':_0x3e0901(0x99b)},{'value':'ku','option':'Kurdish'},{'value':'ko','option':_0x3e0901(0x14f3)},{'value':'ky','option':_0x3e0901(0xe7b)},{'value':'lo','option':_0x3e0901(0x1dc6)},{'value':'la','option':_0x3e0901(0x1c34)},{'value':'lv','option':_0x3e0901(0x19c0)},{'value':'ln','option':_0x3e0901(0x148e)},{'value':'lt','option':'Lithuanian'},{'value':'mk','option':'Macedonian'},{'value':'mg','option':'Malagasy'},{'value':'ml','option':_0x3e0901(0x1b6d)},{'value':'mt','option':_0x3e0901(0x16af)},{'value':'mi','option':_0x3e0901(0x1623)},{'value':'mr','option':_0x3e0901(0x1bee)},{'value':'mo','option':_0x3e0901(0x19c7)},{'value':'mn','option':_0x3e0901(0x1f7c)},{'value':_0x3e0901(0x178c),'option':'Montenegrin'},{'value':'ne','option':_0x3e0901(0x19c8)},{'value':'no','option':_0x3e0901(0x12a8)},{'value':'nn','option':_0x3e0901(0x174b)},{'value':'oc','option':_0x3e0901(0x1d2)},{'value':'or','option':_0x3e0901(0x57a)},{'value':'om','option':'Oromo'},{'value':'ps','option':'Pashto'},{'value':'fa','option':_0x3e0901(0x2825)},{'value':_0x3e0901(0x1c42),'option':_0x3e0901(0xb93)},{'value':'pl','option':_0x3e0901(0x2960)},{'value':'pt-BR','option':'Portuguese\x20(Brazil)'},{'value':_0x3e0901(0x272f),'option':_0x3e0901(0x967)},{'value':'pa','option':_0x3e0901(0x1671)},{'value':'qu','option':_0x3e0901(0x1e63)},{'value':'ro','option':_0x3e0901(0x2178)},{'value':'rm','option':_0x3e0901(0x580)},{'value':'ru','option':_0x3e0901(0x1dec)},{'value':'gd','option':'Scots\x20Gaelic'},{'value':'sr','option':_0x3e0901(0x16b4)},{'value':'sh','option':_0x3e0901(0x260c)},{'value':'st','option':_0x3e0901(0x14ef)},{'value':'sn','option':'Shona'},{'value':'sd','option':_0x3e0901(0x1fab)},{'value':'si','option':_0x3e0901(0x12dc)},{'value':'sk','option':_0x3e0901(0x5d0)},{'value':'sl','option':_0x3e0901(0x125d)},{'value':'so','option':_0x3e0901(0x2193)},{'value':'es','option':'Spanish'},{'value':'su','option':_0x3e0901(0x1dc)},{'value':'sw','option':_0x3e0901(0x2763)},{'value':'sv','option':_0x3e0901(0x15fe)},{'value':'tg','option':_0x3e0901(0x1fd9)},{'value':'ta','option':_0x3e0901(0x1e83)},{'value':'tt','option':_0x3e0901(0x11cc)},{'value':'te','option':'Telugu'},{'value':'th','option':_0x3e0901(0x20c)},{'value':'ti','option':'Tigrinya'},{'value':'to','option':_0x3e0901(0x1ee5)},{'value':'tr','option':_0x3e0901(0x1543)},{'value':'tk','option':_0x3e0901(0x1674)},{'value':'tw','option':_0x3e0901(0x27fb)},{'value':'ug','option':_0x3e0901(0x29d1)},{'value':'uk','option':_0x3e0901(0x526)},{'value':'ur','option':_0x3e0901(0x2183)},{'value':'uz','option':_0x3e0901(0x179b)},{'value':'vi','option':_0x3e0901(0x23d9)},{'value':'cy','option':'Welsh'},{'value':'xh','option':_0x3e0901(0x2961)},{'value':'yi','option':_0x3e0901(0x830)},{'value':'yo','option':_0x3e0901(0x19ec)},{'value':'zu','option':_0x3e0901(0x11c9)}];}function _0x2138e7(){const _0x2a7667=_0x5537c6;return[{'value':_0x2a7667(0x295f),'option':_0x2a7667(0x9ef)},{'value':_0x2a7667(0x2395),'option':'Amharic\x20(Ethiopia)'},{'value':_0x2a7667(0x2034),'option':_0x2a7667(0xf7c)},{'value':_0x2a7667(0xcee),'option':_0x2a7667(0x1c71)},{'value':_0x2a7667(0xdb8),'option':_0x2a7667(0x481)},{'value':_0x2a7667(0xf06),'option':_0x2a7667(0x27c4)},{'value':_0x2a7667(0x26d9),'option':_0x2a7667(0x1fa5)},{'value':_0x2a7667(0x6c0),'option':_0x2a7667(0x28fd)},{'value':'ca-ES','option':_0x2a7667(0x116c)},{'value':_0x2a7667(0x22d5),'option':'Czech\x20(Czech\x20Republic)'},{'value':_0x2a7667(0x9f4),'option':_0x2a7667(0x966)},{'value':_0x2a7667(0x1a5e),'option':'German\x20(Germany)'},{'value':_0x2a7667(0x23f6),'option':_0x2a7667(0x4a2)},{'value':'en-CA','option':_0x2a7667(0x1edf)},{'value':'en-GH','option':_0x2a7667(0x1305)},{'value':_0x2a7667(0xe7d),'option':_0x2a7667(0x16a6)},{'value':_0x2a7667(0x1d09),'option':_0x2a7667(0x57b)},{'value':'en-IE','option':'English\x20(Ireland)'},{'value':_0x2a7667(0x964),'option':_0x2a7667(0x1824)},{'value':_0x2a7667(0xaa7),'option':_0x2a7667(0x17e2)},{'value':_0x2a7667(0x1742),'option':_0x2a7667(0x2448)},{'value':_0x2a7667(0x2454),'option':_0x2a7667(0xf0b)},{'value':'en-ZA','option':_0x2a7667(0x443)},{'value':_0x2a7667(0x1289),'option':_0x2a7667(0x7e0)},{'value':_0x2a7667(0x21fb),'option':_0x2a7667(0x14a1)},{'value':'es-AR','option':_0x2a7667(0xa2c)},{'value':_0x2a7667(0x28ef),'option':_0x2a7667(0x10b5)},{'value':_0x2a7667(0xb12),'option':_0x2a7667(0x429)},{'value':_0x2a7667(0x2733),'option':_0x2a7667(0xf6b)},{'value':'es-CR','option':_0x2a7667(0x981)},{'value':'es-EC','option':_0x2a7667(0x2533)},{'value':'es-SV','option':_0x2a7667(0x591)},{'value':_0x2a7667(0xf85),'option':_0x2a7667(0x24bd)},{'value':_0x2a7667(0x14f4),'option':_0x2a7667(0x129f)},{'value':_0x2a7667(0x1c31),'option':_0x2a7667(0x1306)},{'value':'es-HN','option':_0x2a7667(0x231a)},{'value':_0x2a7667(0x22e7),'option':'Spanish\x20(Mexico)'},{'value':_0x2a7667(0xe79),'option':_0x2a7667(0x259d)},{'value':_0x2a7667(0x2924),'option':'Spanish\x20(Panama)'},{'value':_0x2a7667(0x171e),'option':'Spanish\x20(Paraguay)'},{'value':_0x2a7667(0xf47),'option':_0x2a7667(0x1331)},{'value':_0x2a7667(0x1f70),'option':_0x2a7667(0x20e)},{'value':_0x2a7667(0xa91),'option':_0x2a7667(0x120f)},{'value':_0x2a7667(0x2920),'option':_0x2a7667(0x216a)},{'value':'es-VE','option':'Spanish\x20(Venezuela)'},{'value':_0x2a7667(0xb82),'option':_0x2a7667(0x1b67)},{'value':'fil-PH','option':_0x2a7667(0xb08)},{'value':'fr-CA','option':_0x2a7667(0x2207)},{'value':'fr-FR','option':_0x2a7667(0x4ee)},{'value':'gl-ES','option':_0x2a7667(0x368)},{'value':'ka-GE','option':_0x2a7667(0x31d)},{'value':_0x2a7667(0x845),'option':'Gujarati\x20(India)'},{'value':'hr-HR','option':'Croatian\x20(Croatia)'},{'value':_0x2a7667(0x18e6),'option':_0x2a7667(0x1d88)},{'value':_0x2a7667(0x1028),'option':_0x2a7667(0x29be)},{'value':'it-IT','option':_0x2a7667(0x4ec)},{'value':_0x2a7667(0x209a),'option':'Javanese\x20(Indonesia)'},{'value':'kn-IN','option':_0x2a7667(0x244e)},{'value':_0x2a7667(0x15d1),'option':'Khmer\x20(Cambodia)'},{'value':_0x2a7667(0x40d),'option':'Lao\x20(Laos)'},{'value':_0x2a7667(0x458),'option':_0x2a7667(0x2452)},{'value':'lt-LT','option':_0x2a7667(0x2555)},{'value':_0x2a7667(0x1fee),'option':_0x2a7667(0x1315)},{'value':_0x2a7667(0x2585),'option':_0x2a7667(0x19f1)},{'value':_0x2a7667(0x782),'option':_0x2a7667(0x24ef)},{'value':_0x2a7667(0x1660),'option':_0x2a7667(0x10bb)},{'value':_0x2a7667(0x240c),'option':_0x2a7667(0x440)},{'value':_0x2a7667(0x1dfd),'option':_0x2a7667(0x2117)},{'value':_0x2a7667(0x249),'option':'Polish\x20(Poland)'},{'value':_0x2a7667(0x183f),'option':_0x2a7667(0xa0f)},{'value':_0x2a7667(0x272f),'option':_0x2a7667(0x967)},{'value':_0x2a7667(0x670),'option':_0x2a7667(0x11bd)},{'value':_0x2a7667(0x804),'option':'Sinhala\x20(Srilanka)'},{'value':_0x2a7667(0x1080),'option':_0x2a7667(0x4ea)},{'value':_0x2a7667(0xc70),'option':_0x2a7667(0x1ade)},{'value':'su-ID','option':_0x2a7667(0xb7a)},{'value':'sw-TZ','option':_0x2a7667(0x2189)},{'value':_0x2a7667(0xd09),'option':_0x2a7667(0x74e)},{'value':_0x2a7667(0x1141),'option':_0x2a7667(0x2314)},{'value':_0x2a7667(0x4f1),'option':'Swedish\x20(Sweden)'},{'value':'ta-IN','option':'Tamil\x20(India)'},{'value':_0x2a7667(0x1994),'option':_0x2a7667(0x29a8)},{'value':'ta-LK','option':_0x2a7667(0xdc3)},{'value':_0x2a7667(0x2123),'option':_0x2a7667(0x17f6)},{'value':'te-IN','option':_0x2a7667(0x172e)},{'value':_0x2a7667(0x296f),'option':'Vietnamese\x20(Vietnam)'},{'value':_0x2a7667(0x183d),'option':_0x2a7667(0x18d2)},{'value':_0x2a7667(0x268f),'option':_0x2a7667(0xb2f)},{'value':_0x2a7667(0x25d4),'option':_0x2a7667(0xda4)},{'value':_0x2a7667(0x138e),'option':'Greek\x20(Greece)'},{'value':_0x2a7667(0x2264),'option':_0x2a7667(0x238a)},{'value':'ru-RU','option':_0x2a7667(0xa89)},{'value':'sr-RS','option':_0x2a7667(0x28d8)},{'value':_0x2a7667(0x10e7),'option':'Ukrainian\x20(Ukraine)'},{'value':_0x2a7667(0x3a6),'option':_0x2a7667(0x855)},{'value':_0x2a7667(0x7ac),'option':_0x2a7667(0x1ac0)},{'value':_0x2a7667(0x16e),'option':_0x2a7667(0x28b3)},{'value':_0x2a7667(0x299f),'option':'Arabic\x20(United\x20Arab\x20Emirates)'},{'value':_0x2a7667(0x1d0b),'option':_0x2a7667(0x1918)},{'value':_0x2a7667(0x210f),'option':_0x2a7667(0x1644)},{'value':_0x2a7667(0x162a),'option':_0x2a7667(0x1761)},{'value':_0x2a7667(0x21cf),'option':_0x2a7667(0x283e)},{'value':_0x2a7667(0x1d52),'option':'Arabic\x20(Kuwait)'},{'value':_0x2a7667(0x24c3),'option':_0x2a7667(0x296e)},{'value':_0x2a7667(0x1585),'option':'Arabic\x20(Tunisia)'},{'value':'ar-OM','option':_0x2a7667(0x1035)},{'value':_0x2a7667(0x13ed),'option':'Arabic\x20(State\x20of\x20Palestine)'},{'value':_0x2a7667(0x18fc),'option':'Arabic\x20(Qatar)'},{'value':_0x2a7667(0x1a3e),'option':_0x2a7667(0x2463)},{'value':'ar-EG','option':_0x2a7667(0x2354)},{'value':_0x2a7667(0xc71),'option':_0x2a7667(0x15b7)},{'value':_0x2a7667(0x2dd),'option':_0x2a7667(0x1e20)},{'value':'th-TH','option':_0x2a7667(0x17e)},{'value':_0x2a7667(0xc44),'option':'Korean\x20(South\x20Korea)'},{'value':'cmn-Hant-TW','option':'Chinese,\x20Mandarin\x20(Traditional,\x20Taiwan)'},{'value':'yue-Hant-HK','option':_0x2a7667(0x293)},{'value':_0x2a7667(0x2496),'option':_0x2a7667(0x1b15)},{'value':_0x2a7667(0xd6e),'option':_0x2a7667(0x1a7d)},{'value':_0x2a7667(0x2184),'option':_0x2a7667(0x25f8)}];}function _0x2f7eb7(){const _0x58507e=_0x5537c6;return[{'value':_0x58507e(0xdfa),'option':_0x58507e(0x166e)},{'value':_0x58507e(0x1984),'option':_0x58507e(0x16a0)},{'value':_0x58507e(0x1342),'option':'UK\x20English\x20Female'},{'value':'ukenglishmale','option':'UK\x20English\x20Male'},{'value':'auenglishfemale','option':_0x58507e(0x256e)},{'value':_0x58507e(0x838),'option':_0x58507e(0x858)},{'value':'usspanishmale','option':_0x58507e(0x99c)},{'value':'chchinesefemale','option':_0x58507e(0x1645)},{'value':_0x58507e(0x1676),'option':_0x58507e(0x1df8)},{'value':_0x58507e(0x2549),'option':_0x58507e(0x2191)},{'value':_0x58507e(0x188a),'option':'Taiwan\x20Chinese\x20Female'},{'value':'jpjapanesefemale','option':'Japanese\x20Female'},{'value':_0x58507e(0x12fd),'option':_0x58507e(0x194b)},{'value':_0x58507e(0x1b2a),'option':_0x58507e(0x7e5)},{'value':'krkoreanmale','option':'Korean\x20Male'},{'value':_0x58507e(0xaa5),'option':_0x58507e(0x24e6)},{'value':'huhungarianfemale','option':_0x58507e(0x4c0)},{'value':_0x58507e(0x1f0),'option':_0x58507e(0x8ea)},{'value':'eurportuguesefemale','option':_0x58507e(0xb21)},{'value':_0x58507e(0xa4a),'option':_0x58507e(0x5a0)},{'value':_0x58507e(0x1408),'option':_0x58507e(0x216c)},{'value':'eurspanishmale','option':'European\x20Spanish\x20Male'},{'value':_0x58507e(0x2102),'option':'European\x20Catalan\x20Female'},{'value':'eurczechfemale','option':'European\x20Czech\x20Female'},{'value':_0x58507e(0x1a9c),'option':_0x58507e(0xef4)},{'value':'eurfinnishfemale','option':'European\x20Finnish\x20Female'},{'value':'eurfrenchfemale','option':_0x58507e(0x2632)},{'value':_0x58507e(0x1956),'option':_0x58507e(0x1d4c)},{'value':_0x58507e(0x21e9),'option':_0x58507e(0x204e)},{'value':'eurdutchfemale','option':_0x58507e(0x22ea)},{'value':'eurpolishfemale','option':'European\x20Polish\x20Female'},{'value':'euritalianfemale','option':_0x58507e(0x12f0)},{'value':'euritalianmale','option':'European\x20Italian\x20Male'},{'value':_0x58507e(0xd96),'option':_0x58507e(0x1889)},{'value':_0x58507e(0x1a07),'option':_0x58507e(0x17c)},{'value':_0x58507e(0x1e1d),'option':_0x58507e(0x2522)},{'value':_0x58507e(0x25fa),'option':'European\x20German\x20Male'},{'value':_0x58507e(0x6eb),'option':_0x58507e(0x11da)},{'value':_0x58507e(0x1378),'option':'Russian\x20Male'},{'value':'swswedishfemale','option':_0x58507e(0x721)},{'value':_0x58507e(0xcbd),'option':_0x58507e(0x1b40)},{'value':'cafrenchmale','option':_0x58507e(0x49c)}];}function _0x172106(){const _0x46c4ee=_0x5537c6;return[{'value':_0x46c4ee(0x21fb),'option':_0x46c4ee(0x146b)},{'value':'en-CA','option':_0x46c4ee(0x1edf)},{'value':'en-GB','option':_0x46c4ee(0x212)},{'value':_0x46c4ee(0x23f6),'option':_0x46c4ee(0x4a2)},{'value':_0x46c4ee(0xf85),'option':_0x46c4ee(0x24bd)},{'value':_0x46c4ee(0x22e7),'option':_0x46c4ee(0x1354)},{'value':_0x46c4ee(0x1ec3),'option':_0x46c4ee(0x203)},{'value':_0x46c4ee(0x1005),'option':'German\x20(Germany)'},{'value':_0x46c4ee(0xd8d),'option':_0x46c4ee(0x2207)},{'value':_0x46c4ee(0x249),'option':_0x46c4ee(0x1816)},{'value':_0x46c4ee(0x272f),'option':_0x46c4ee(0x967)},{'value':_0x46c4ee(0x2149),'option':_0x46c4ee(0x52d)},{'value':_0x46c4ee(0x517),'option':_0x46c4ee(0x1ec2)},{'value':_0x46c4ee(0x9f4),'option':_0x46c4ee(0x966)},{'value':_0x46c4ee(0x2496),'option':'Japanese\x20(Japan)'},{'value':'ko-KR','option':_0x46c4ee(0x1011)},{'value':_0x46c4ee(0x1660),'option':_0x46c4ee(0x10bb)},{'value':_0x46c4ee(0x1dfd),'option':_0x46c4ee(0x16fd)},{'value':_0x46c4ee(0x183f),'option':_0x46c4ee(0xa0f)},{'value':_0x46c4ee(0xd39),'option':_0x46c4ee(0xa89)},{'value':_0x46c4ee(0x4f1),'option':_0x46c4ee(0x58e)},{'value':_0x46c4ee(0x1261),'option':_0x46c4ee(0x266b)},{'value':'zh-HK','option':'Chinese\x20(Hong\x20Kong)'}];}function _0x12b8ee(){const _0x3726dd=_0x5537c6;return[{'value':'0','option':_0x3726dd(0x2986)},{'value':_0x3726dd(0x18ec),'option':_0x3726dd(0xc0d)},{'value':_0x3726dd(0x468),'option':_0x3726dd(0x456)},{'value':_0x3726dd(0x28a3),'option':_0x3726dd(0x277e)},{'value':_0x3726dd(0x1e8d),'option':_0x3726dd(0x2635)},{'value':_0x3726dd(0x20ad),'option':'Numbers\x20to\x20999'},{'value':_0x3726dd(0x161a),'option':'Time'},{'value':_0x3726dd(0x2550),'option':_0x3726dd(0x142e)},{'value':'streets','option':_0x3726dd(0x2447)},{'value':_0x3726dd(0x7d5),'option':'US\x20City/States'}];}function _0x4f9f25(){const _0x474c74=_0x5537c6;return[{'value':_0x474c74(0x56b),'option':_0x474c74(0x342)},{'value':_0x474c74(0x281),'option':_0x474c74(0x954)},{'value':_0x474c74(0x1dc4),'option':_0x474c74(0x270e)},{'value':_0x474c74(0x26a0),'option':_0x474c74(0x20f3)},{'value':_0x474c74(0x1a25),'option':_0x474c74(0xa9a)},{'value':_0x474c74(0xda9),'option':'Celine\x20(French,\x20Female)'},{'value':_0x474c74(0x192b),'option':_0x474c74(0x569)},{'value':_0x474c74(0x29bc),'option':'Conchita\x20(Spanish,\x20Castilian,\x20Female)'},{'value':'Cristiano','option':_0x474c74(0x606)},{'value':_0x474c74(0x107c),'option':_0x474c74(0x182e)},{'value':_0x474c74(0x131e),'option':_0x474c74(0x462)},{'value':_0x474c74(0x1bef),'option':_0x474c74(0x2119)},{'value':'Ewa','option':_0x474c74(0x1da)},{'value':_0x474c74(0x2627),'option':'Filiz\x20(Turkish,\x20Female)'},{'value':'Geraint','option':_0x474c74(0x751)},{'value':_0x474c74(0x28dc),'option':_0x474c74(0x1151)},{'value':_0x474c74(0x28ff),'option':_0x474c74(0x16c4)},{'value':_0x474c74(0x23d8),'option':_0x474c74(0x843)},{'value':_0x474c74(0xcb5),'option':_0x474c74(0x294a)},{'value':_0x474c74(0x48e),'option':_0x474c74(0x219)},{'value':_0x474c74(0x1fc4),'option':_0x474c74(0x47b)},{'value':_0x474c74(0x10a9),'option':'Jan\x20(Polish,\x20Male)'},{'value':_0x474c74(0x912),'option':'Joanna\x20(English,\x20US,\x20Female)'},{'value':_0x474c74(0x175b),'option':_0x474c74(0x1cf1)},{'value':_0x474c74(0x14ab),'option':_0x474c74(0x79c)},{'value':_0x474c74(0x2918),'option':_0x474c74(0x2751)},{'value':_0x474c74(0x1ca2),'option':_0x474c74(0x36d)},{'value':_0x474c74(0x21f6),'option':'Kimberly\x20(English,\x20US,\x20Female)'},{'value':_0x474c74(0x27e8),'option':_0x474c74(0xba8)},{'value':_0x474c74(0x8f8),'option':'Lotte\x20(Dutch,\x20Female)'},{'value':'Mads','option':_0x474c74(0x185c)},{'value':_0x474c74(0x101f),'option':_0x474c74(0x528)},{'value':_0x474c74(0xf38),'option':'Marlene\x20(German,\x20Female)'},{'value':_0x474c74(0x187),'option':_0x474c74(0x22cc)},{'value':'Maxim','option':_0x474c74(0x28ea)},{'value':_0x474c74(0xbab),'option':_0x474c74(0x2609)},{'value':_0x474c74(0x1602),'option':'Mizuki\x20(Japanese,\x20Female)'},{'value':_0x474c74(0x1355),'option':_0x474c74(0x2342)},{'value':_0x474c74(0x235),'option':'Nicole\x20(English,\x20Austrialian,\x20Female)'},{'value':_0x474c74(0x2801),'option':_0x474c74(0x360)},{'value':_0x474c74(0x1a6f),'option':_0x474c74(0x1421)},{'value':'Ricardo','option':_0x474c74(0x79a)},{'value':_0x474c74(0x160c),'option':'Ruben\x20(Dutch,\x20Male)'},{'value':'Russell','option':_0x474c74(0x15eb)},{'value':_0x474c74(0x245f),'option':_0x474c74(0x2914)},{'value':'Tatyana','option':_0x474c74(0x2cc)},{'value':_0x474c74(0x6d6),'option':_0x474c74(0x1803)}];}function _0x325649(){const _0x513636=_0x5537c6;return[{'value':'us-east-1','option':_0x513636(0xe59)},{'value':_0x513636(0x11d8),'option':'US\x20East\x20(Ohio)'},{'value':_0x513636(0x29db),'option':_0x513636(0x146a)},{'value':'us-west-2','option':_0x513636(0x13fc)},{'value':_0x513636(0x1d05),'option':_0x513636(0x252d)},{'value':_0x513636(0x886),'option':'EU\x20(Ireland)'},{'value':_0x513636(0xf16),'option':_0x513636(0x1bcf)},{'value':_0x513636(0x26b4),'option':_0x513636(0x27e3)},{'value':_0x513636(0x1b9f),'option':_0x513636(0x1f4e)},{'value':_0x513636(0x1cae),'option':_0x513636(0x22e0)},{'value':_0x513636(0xb31),'option':'Asia\x20Pacific\x20(Sydney)'},{'value':_0x513636(0x18e2),'option':_0x513636(0x247d)},{'value':_0x513636(0x509),'option':_0x513636(0x13c4)},{'value':_0x513636(0xa7c),'option':_0x513636(0x13ae)},{'value':_0x513636(0x2032),'option':_0x513636(0x20e2)}];}function _0x23e106(){const _0x1a16bc=_0x5537c6;return[{'value':'us-east-1','option':_0x1a16bc(0xe59)},{'value':'us-west-2','option':_0x1a16bc(0x13fc)},{'value':_0x1a16bc(0x886),'option':_0x1a16bc(0x14ca)},{'value':_0x1a16bc(0xb31),'option':'Asia\x20Pacific\x20(Sydney)'}];};_0x191578['$inject']=['$mdDialog','toasty',_0x5537c6(0x23da),_0x5537c6(0x1fb3)];function _0x191578(_0x432ebb,_0x3ef9bd,_0x2c2b51,_0x193706){const _0x118606=_0x5537c6,_0x3948d2=this;_0x3948d2['project']={'preproduction':_0x2c2b51};function _0x488126(_0x18aa63){const _0x26299c=a0_0x5cbd;_0x18aa63?(_0x193706(_0x3948d2[_0x26299c(0x12a7)][_0x26299c(0x2082)]),_0x432ebb[_0x26299c(0x1426)](_0x3948d2[_0x26299c(0x12a7)]['preproduction'])):_0x432ebb['hide']();}_0x3948d2[_0x118606(0xda0)]=_0x488126;}const _0x2cad9d=_0x191578;;_0x40366c[_0x5537c6(0x15b6)]=['$mdDialog','saveCallback'];function _0x40366c(_0x4a98f1,_0x451af4){const _0x44756b=_0x5537c6,_0x279924=this,_0x206feb=0x5,_0x6129e2=_0x206feb*0x400*0x400;_0x279924['errors']=[],_0x279924[_0x44756b(0x15e8)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x6129e2,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x279924[_0x44756b(0x125a)]={'flow':{}},_0x279924['dropping']=![],_0x279924['closeDialog']=_0x3afb42,_0x279924[_0x44756b(0x15c2)]=_0x40f348;function _0x40f348(_0x12c7a2){const _0x37a76a=_0x44756b;_0x279924[_0x37a76a(0x1a7c)]=[];const _0x184d1f=['xml'];!_0x39641b()[_0x37a76a(0x250a)](_0x184d1f,_0x12c7a2[_0x37a76a(0x1cb1)]())&&_0x279924[_0x37a76a(0x1a7c)][_0x37a76a(0x2785)]({'message':_0x37a76a(0x10ce)+_0x12c7a2[_0x37a76a(0x1cb1)]()+'\x20is\x20not\x20supported!'});_0x12c7a2[_0x37a76a(0x1813)]>_0x6129e2&&_0x279924[_0x37a76a(0x1a7c)][_0x37a76a(0x2785)]({'message':_0x37a76a(0x166b)+_0x206feb+'MB'});if(!_0x279924['errors'][_0x37a76a(0xfd0)]){const _0x4e6899=new FileReader();_0x4e6899['onload']=function(_0x582207){const _0x3c3fc3=_0x37a76a;_0x3afb42(_0x582207[_0x3c3fc3(0x251d)][_0x3c3fc3(0x1205)]);},_0x4e6899[_0x37a76a(0x1cfe)](_0x12c7a2[_0x37a76a(0x1ac4)]);}}function _0x3afb42(_0x31e975){_0x31e975?(_0x451af4(_0x31e975),_0x4a98f1['hide'](_0x31e975)):_0x4a98f1['hide']();}}const _0xb268c0=_0x40366c;;_0x1c5d55[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'toasty',_0x5537c6(0x12a7),_0x5537c6(0x142b)];function _0x1c5d55(_0x42c87e,_0x27d905,_0x29aac9,_0x381f65){const _0x3caf67=_0x5537c6,_0x59ed87=this;_0x59ed87[_0x3caf67(0x12a7)]=_0x39641b()[_0x3caf67(0x11bc)](_0x29aac9);function _0xbc7d29(){const _0x7ccd3e=_0x3caf67;_0x59ed87[_0x7ccd3e(0x1a7c)]=[],_0x381f65['squareProject']['update']({'id':_0x59ed87['project']['id']},{'notes':_0x59ed87[_0x7ccd3e(0x12a7)][_0x7ccd3e(0x386)],'description':_0x59ed87[_0x7ccd3e(0x12a7)][_0x7ccd3e(0x2c1)]})[_0x7ccd3e(0x1d77)][_0x7ccd3e(0x1cb0)](function(_0x482938){const _0x296744=_0x7ccd3e;_0x27d905[_0x296744(0x829)]({'title':_0x296744(0xc29),'msg':_0x59ed87['project']['name']?_0x59ed87['project'][_0x296744(0x16b6)]+'\x20has\x20been\x20updated!':''}),_0x42c87e['hide'](_0x482938);})[_0x7ccd3e(0x1c4)](function(_0x576400){const _0x19d6a2=_0x7ccd3e;console['error'](_0x576400),_0x59ed87[_0x19d6a2(0x1a7c)]=_0x576400[_0x19d6a2(0x25c)][_0x19d6a2(0x1a7c)]||[{'message':_0x576400[_0x19d6a2(0x147f)](),'type':_0x19d6a2(0x1a61)}];});}function _0x37c94b(){const _0x345669=_0x3caf67;_0x42c87e[_0x345669(0x1426)]();}_0x59ed87[_0x3caf67(0xda0)]=_0x37c94b,_0x59ed87['save']=_0xbc7d29;}const _0x28f5b2=_0x1c5d55;;_0x5916fd[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x9bf),'projects',_0x5537c6(0x1f10),_0x5537c6(0x406)];function _0x5916fd(_0x451f5a,_0x573f0f,_0x377f84,_0x16a7b2,_0x2a0598){const _0x5a6b18=_0x5537c6,_0x522254=this;_0x522254[_0x5a6b18(0x2981)]=_0x377f84,_0x522254['id']='',_0x522254[_0x5a6b18(0x2900)]=!![];function _0x4d692d(_0x2baec3){const _0x3687b0=_0x5a6b18;_0x522254[_0x3687b0(0x1a7c)]=[],_0x2baec3?(_0x451f5a[_0x3687b0(0x1426)](),_0x522254[_0x3687b0(0x2900)]?_0x16a7b2['open']('/callysquare/projects/'+_0x522254['id'],_0x3687b0(0x22ac)):_0x2a0598['go']('app.callysquare.projects.edit',{'id':_0x522254['id']})):_0x451f5a['hide']();}_0x522254[_0x5a6b18(0xda0)]=_0x4d692d;}const _0x4caa58=_0x5916fd;;_0x35338a[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'toasty',_0x5537c6(0x142b),_0x5537c6(0x12a7),_0x5537c6(0x2981),_0x5537c6(0x1ae)];function _0x35338a(_0x1ab67c,_0x387af8,_0x4618d8,_0x447865,_0x498e79,_0x2bf5c4){const _0x2f688e=_0x5537c6,_0x4017fe=this;_0x4017fe['project']=_0x447865,_0x4017fe[_0x2f688e(0x1cbc)]=0x0,_0x4017fe[_0x2f688e(0x122f)]=[],_0x4017fe['selectedItems']=[],_0x4017fe['closeDialog']=_0x390910,_0x4017fe[_0x2f688e(0x18c0)]={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2f688e(0x16b6),'line1':_0x2f688e(0x1d14),'line2':[_0x2f688e(0x16b6),'internal'],'line3':_0x2f688e(0x1cbc),'labelAll':_0x2bf5c4[_0x2f688e(0x25cc)](_0x2f688e(0x1ef3)),'labelSelected':_0x2bf5c4['instant'](_0x2f688e(0x37d)),'transferCallback':function(_0x220abf,_0x27e7a2){const _0x343d62=_0x2f688e;_0x4618d8[_0x343d62(0xf61)][_0x27e7a2?_0x343d62(0x2284):'addUsers']({'id':_0x4017fe[_0x343d62(0x12a7)]['id'],'ids':_0x39641b()[_0x343d62(0x1de2)](_0x220abf,'id'),'penalty':_0x4017fe[_0x343d62(0x1cbc)]||0x0})[_0x343d62(0x1d77)][_0x343d62(0x1cb0)](function(){const _0x3cb1d2=_0x343d62;_0x387af8[_0x3cb1d2(0x829)]({'title':_0x3cb1d2(0x1ea4)+(_0x27e7a2?'removed':_0x3cb1d2(0x1624)),'msg':_0x3cb1d2(0x20cb)+(_0x27e7a2?_0x3cb1d2(0x503):_0x3cb1d2(0x1624))+'!'}),!_0x27e7a2&&_0x17b4dc();})[_0x343d62(0x1c4)](function(_0x484a25){const _0x1cd481=_0x343d62;_0x387af8[_0x1cd481(0x218e)]({'title':_0x484a25[_0x1cd481(0x291)]?_0x1cd481(0xeb9)+_0x484a25[_0x1cd481(0x291)]+_0x1cd481(0x1657)+_0x484a25[_0x1cd481(0xc22)]:_0x1cd481(0x239c),'msg':_0x484a25[_0x1cd481(0x291)]?JSON[_0x1cd481(0x2701)](_0x484a25[_0x1cd481(0x25c)]):_0x484a25['toString']()});});}};function _0x17b4dc(){const _0x522c67=_0x2f688e;return _0x4618d8[_0x522c67(0xf61)][_0x522c67(0x8e7)]({'id':_0x4017fe['project']['id'],'fields':_0x522c67(0x26e3),'nolimit':!![],'role':'user'})[_0x522c67(0x1d77)]['then'](function(_0x1ea354){const _0x29c3dd=_0x522c67;return _0x4017fe['selectedItems']=_0x1ea354[_0x29c3dd(0x2214)]?_0x39641b()['map'](_0x1ea354['rows'],function(_0x152d93){return _0x152d93;}):[],_0x4017fe['dualMultiselectOptions'][_0x29c3dd(0x20bb)]=_0x4017fe[_0x29c3dd(0x20bb)],_0x4618d8['user'][_0x29c3dd(0xbf7)]({'fields':_0x29c3dd(0x1eda),'role':_0x29c3dd(0xebe),'nolimit':!![]})['$promise'];})['then'](function(_0xc08786){const _0x1d44b9=_0x522c67;_0x4017fe[_0x1d44b9(0x122f)]=_0xc08786[_0x1d44b9(0x2214)]?_0x39641b()[_0x1d44b9(0x1de2)](_0xc08786['rows'],function(_0x1df310){return _0x1df310;}):[],_0x4017fe['dualMultiselectOptions'][_0x1d44b9(0x122f)]=_0x39641b()[_0x1d44b9(0x2128)](_0x4017fe[_0x1d44b9(0x122f)],_0x4017fe[_0x1d44b9(0x20bb)],'id');})[_0x522c67(0x1c4)](function(_0x2677ec){const _0x37d7d5=_0x522c67;_0x387af8[_0x37d7d5(0x218e)]({'title':_0x2677ec[_0x37d7d5(0x291)]?_0x37d7d5(0xeb9)+_0x2677ec['status']+_0x37d7d5(0x1657)+_0x2677ec[_0x37d7d5(0xc22)]:_0x37d7d5(0xa17),'msg':_0x2677ec['status']?JSON[_0x37d7d5(0x2701)](_0x2677ec['data']):_0x2677ec[_0x37d7d5(0x147f)]()});});}function _0x390910(){const _0x482a1b=_0x2f688e;_0x1ab67c[_0x482a1b(0x1426)]();}_0x17b4dc();}const _0x5ea63d=_0x35338a;;_0x25d002[_0x5537c6(0x15b6)]=['$mdDialog',_0x5537c6(0x9bf),_0x5537c6(0x12a7),_0x5537c6(0x23da),_0x5537c6(0x142b),_0x5537c6(0x1f10),_0x5537c6(0x406)];function _0x25d002(_0x50e9f4,_0x1d71c5,_0x30ae11,_0x43d387,_0x5cd4c9,_0x1e6bde,_0x454d66){const _0x567887=_0x5537c6,_0x4533a9=this;_0x4533a9[_0x567887(0x12a7)]=angular[_0x567887(0x17fe)](_0x30ae11),_0x4533a9[_0x567887(0x12a7)]['name']+=_0x567887(0x1b47),_0x4533a9[_0x567887(0x12a7)][_0x567887(0x2082)]=_0x43d387,_0x4533a9[_0x567887(0x2900)]=!![];function _0x4968c1(){const _0x1e63ec=_0x567887;delete _0x4533a9[_0x1e63ec(0x12a7)]['id'],_0x5cd4c9['squareProject']['save'](_0x4533a9['project'])[_0x1e63ec(0x1d77)][_0x1e63ec(0x1cb0)](function(_0x36102e){const _0x21ac53=_0x1e63ec;_0x1d71c5[_0x21ac53(0x829)]({'title':_0x21ac53(0xc28),'msg':_0x4533a9['project'][_0x21ac53(0x16b6)]?_0x4533a9[_0x21ac53(0x12a7)][_0x21ac53(0x16b6)]+_0x21ac53(0x470):''}),_0x50e9f4[_0x21ac53(0x1426)](_0x36102e),_0x4533a9[_0x21ac53(0x2900)]?_0x1e6bde[_0x21ac53(0x536)]('/callysquare/projects/'+_0x36102e['id'],'_blank'):_0x454d66['go']('app.callysquare.projects.edit',{'id':_0x36102e['id']});})[_0x1e63ec(0x1c4)](function(_0x134170){const _0x5f333a=_0x1e63ec;console[_0x5f333a(0x218e)](_0x134170),_0x4533a9[_0x5f333a(0x1a7c)]=_0x134170['data'][_0x5f333a(0x1a7c)]||[{'message':_0x134170[_0x5f333a(0x147f)](),'type':'api.squareProject.save'}];});}function _0x38611c(){const _0x5563a5=_0x567887;_0x50e9f4[_0x5563a5(0x1426)]();}_0x4533a9[_0x567887(0xda0)]=_0x38611c,_0x4533a9[_0x567887(0x1c3f)]=_0x4968c1;}const _0x4d9a39=_0x25d002;;const _0x1c3317=_0x5074a3['p']+_0x5537c6(0x1194);;const _0x2383aa=_0x5074a3['p']+_0x5537c6(0x16ed);;const _0x5a6437=_0x5074a3['p']+_0x5537c6(0x1330);;const _0x1c80a1=_0x5074a3['p']+_0x5537c6(0x1d30);;const _0x3ab0a8=_0x5074a3['p']+'src/js/modules/main/apps/callysquare/views/projects/edit/info/info.html/info.html';;const _0x3c9211=_0x5074a3['p']+_0x5537c6(0x1b03);;const _0x954bbe=_0x5074a3['p']+_0x5537c6(0x24a6);;_0x41e7fd[_0x5537c6(0x15b6)]=['$state',_0x5537c6(0x22bf),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),'toasty',_0x5537c6(0x142b),_0x5537c6(0x12a7),'users',_0x5537c6(0x1363),'queues',_0x5537c6(0xe28),'variables',_0x5537c6(0x1f42),_0x5537c6(0x14f6),_0x5537c6(0x2981),'intervals',_0x5537c6(0x228e),_0x5537c6(0x9b4),'lists',_0x5537c6(0x1ac),_0x5537c6(0x8de),_0x5537c6(0x2199),_0x5537c6(0x1774)];const _0x2c9e52=window[_0x5537c6(0x26e)],_0x1978a9=window['Editor'];function _0x41e7fd(_0xf42491,_0x45f5f8,_0x60f696,_0xd7daf6,_0x4c21a7,_0x530fd1,_0x18dfaa,_0x5b3697,_0x5766fb,_0x3c2ec5,_0x1668a0,_0x9f6ae4,_0x175eb0,_0x59a020,_0x3e2222,_0x476ef8,_0x389e50,_0x418409,_0x30605c,_0x144ea7,_0x5824da,_0x19acd1,_0x249c51,_0x2bdebb){const _0x5cecd5=_0x5537c6,_0x545f0f=this;_0x545f0f['currentUser']=_0x2bdebb['getCurrentUser'](),_0x545f0f[_0x5cecd5(0x12a7)]=_0x5b3697||{},_0x545f0f[_0x5cecd5(0x2199)]=_0x249c51&&_0x249c51[_0x5cecd5(0x184d)]==0x1?_0x249c51[_0x5cecd5(0x2214)][0x0]:null,_0x545f0f[_0x5cecd5(0x1b1a)]=_0x2bdebb[_0x5cecd5(0x14ea)](_0x545f0f[_0x5cecd5(0x2199)]?_0x545f0f[_0x5cecd5(0x2199)][_0x5cecd5(0x1b1a)]:null),_0x545f0f[_0x5cecd5(0x1a34)]=_0x16dcba,_0x545f0f['saveOrPublishProject']=_0x5e6d6d,_0x545f0f[_0x5cecd5(0x1219)]=_0x2bb18a,_0x545f0f[_0x5cecd5(0xdc9)]=_0x3bee66,_0x545f0f[_0x5cecd5(0x259f)]=_0x193670,_0x545f0f[_0x5cecd5(0xb22)]=_0x5e1509,_0x545f0f['newVariable']=_0x378238,_0x545f0f[_0x5cecd5(0x1ed8)]=_0x263b4a,_0x545f0f[_0x5cecd5(0x27ec)]=_0x4df8dc,_0x545f0f[_0x5cecd5(0x1c39)]=_0x4e589d,_0x545f0f['gotoProjects']=_0x154e83;function _0x16dcba(){const _0x31b22e=_0x5cecd5,_0x394224=new _0x2c9e52(_0x545f0f,new _0x1978a9(),document[_0x31b22e(0x26ee)](_0x31b22e(0x2601)));_0x394224['openString'](_0x545f0f[_0x31b22e(0x12a7)][_0x31b22e(0x2082)],_0x545f0f['project'][_0x31b22e(0x16b6)],_0x545f0f['project']);}function _0x2bb18a(_0x2cc533,_0x3a916b){const _0xdbdea5=_0x5cecd5;_0x60f696[_0xdbdea5(0xe27)]({'controller':'MxGraphDialogController','controllerAs':'vm','templateUrl':_0x1c3317,'parent':angular[_0xdbdea5(0x1853)](_0x45f5f8[_0xdbdea5(0x1ed9)]),'clickOutsideToClose':!![],'locals':{'users':_0x5766fb[_0xdbdea5(0x2214)]||[],'trunks':_0x3c2ec5[_0xdbdea5(0x2214)]||[],'queues':_0x1668a0[_0xdbdea5(0x2214)]||[],'sounds':_0x9f6ae4[_0xdbdea5(0x2214)]||[],'variables':_0x175eb0[_0xdbdea5(0x2214)]||[],'databases':_0x59a020['rows']||[],'contexts':_0x3e2222[_0xdbdea5(0x2214)]||[],'projects':_0x476ef8[_0xdbdea5(0x2214)]||[],'intervals':_0x389e50[_0xdbdea5(0x2214)]||[],'mailAccounts':_0x418409['rows']||[],'smsAccounts':_0x5824da[_0xdbdea5(0x2214)]||[],'pauses':_0x19acd1['rows']||[],'templates':_0x30605c['rows']||[],'lists':_0x144ea7[_0xdbdea5(0x2214)]||[],'cell':_0x2cc533,'saveCallback':_0x3a916b,'crudPermissions':_0x545f0f['crudPermissions']}});}function _0x3bee66(_0x3b681c){const _0x1d6952=_0x5cecd5;_0x60f696[_0x1d6952(0xe27)]({'controller':_0x1d6952(0xa9e),'controllerAs':'vm','templateUrl':_0x2383aa,'parent':angular[_0x1d6952(0x1853)](_0x45f5f8[_0x1d6952(0x1ed9)]),'clickOutsideToClose':!![],'locals':{'project':_0x3b681c,'projects':_0x476ef8['rows'],'openFromEditor':!![],'license':null,'setting':null,'crudPermissions':_0x545f0f[_0x1d6952(0x1b1a)]}});}function _0x193670(){const _0x1fa127=_0x5cecd5;_0x60f696[_0x1fa127(0xe27)]({'controller':_0x1fa127(0x15cc),'controllerAs':'vm','templateUrl':_0x5a6437,'parent':angular[_0x1fa127(0x1853)](_0x45f5f8[_0x1fa127(0x1ed9)]),'clickOutsideToClose':!![],'locals':{'projects':_0x476ef8[_0x1fa127(0x2214)]||[]}});}function _0x5e1509(_0x205d95){const _0x1ca106=_0x5cecd5;_0x60f696[_0x1ca106(0xe27)]({'controller':_0x1ca106(0x4b5),'controllerAs':'vm','templateUrl':_0x1c80a1,'parent':angular[_0x1ca106(0x1853)](_0x45f5f8[_0x1ca106(0x1ed9)]),'clickOutsideToClose':!![],'locals':{'project':_0x545f0f[_0x1ca106(0x12a7)],'currentXML':_0x205d95}})[_0x1ca106(0x1cb0)](function(_0x373210){_0x373210&&_0x476ef8['rows']['push'](_0x373210);});}function _0x4dcd0a(){return _0xd7daf6(function(_0x48059d,_0x59593f){const _0x23ee44=a0_0x5cbd;return _0x18dfaa[_0x23ee44(0x2199)][_0x23ee44(0xbf7)]({'userProfileId':_0x545f0f[_0x23ee44(0xe76)][_0x23ee44(0x13c1)],'sectionId':0x3f4})[_0x23ee44(0x1d77)][_0x23ee44(0x1cb0)](function(_0x3f89af){const _0x1d35c5=_0x23ee44,_0x157ceb=_0x3f89af[_0x1d35c5(0x2214)]?_0x3f89af[_0x1d35c5(0x2214)][0x0]:null,_0x592ad9=_0x2bdebb[_0x1d35c5(0x14ea)](_0x157ceb?_0x157ceb[_0x1d35c5(0x1b1a)]:null);_0x48059d(_0x592ad9);})[_0x23ee44(0x1c4)](function(_0x51a6fd){_0x59593f(_0x51a6fd);});});}function _0x378238(_0x12cb14){const _0xb07e1c=_0x5cecd5;return _0x4dcd0a()['then'](function(_0x8872d9){const _0xb28382=a0_0x5cbd;_0x8872d9[_0xb28382(0xb3d)]?_0x60f696[_0xb28382(0xe27)]({'controller':_0xb28382(0x15e2),'controllerAs':'vm','templateUrl':_0x4f7708,'parent':angular[_0xb28382(0x1853)](_0x45f5f8[_0xb28382(0x1ed9)]),'clickOutsideToClose':!![],'locals':{'variable':_0x12cb14,'variables':_0x175eb0[_0xb28382(0x2214)],'license':null,'setting':null,'crudPermissions':_0x8872d9}}):_0x530fd1[_0xb28382(0x28c7)]({'title':_0x4c21a7[_0xb28382(0x25cc)](_0xb28382(0x370)),'msg':_0x4c21a7[_0xb28382(0x25cc)](_0xb28382(0x247e))});})[_0xb07e1c(0x1c4)](function(_0x1374b7){const _0x660040=_0xb07e1c;_0x530fd1['error']({'title':_0x1374b7[_0x660040(0x291)]?_0x660040(0xeb9)+_0x1374b7[_0x660040(0x291)]+'\x20-\x20'+_0x1374b7['statusText']:_0x660040(0x1dea),'msg':_0x1374b7[_0x660040(0x25c)]?JSON[_0x660040(0x2701)](_0x1374b7[_0x660040(0x25c)]):_0x1374b7[_0x660040(0x147f)]()});});}function _0x263b4a(_0x2857fe){_0x60f696['show']({'controller':'MxGraphUpdateInfoController','controllerAs':'vm','templateUrl':_0x3ab0a8,'parent':angular['element'](_0x45f5f8['body']),'targetEvent':_0x2857fe,'clickOutsideToClose':!![],'locals':{'project':_0x545f0f['project']}})['then'](function(_0x84c934){const _0x5a6945=a0_0x5cbd;_0x84c934&&_0x39641b()[_0x5a6945(0x9c1)](_0x545f0f[_0x5a6945(0x12a7)],_0x84c934);});}function _0x4df8dc(_0x29cc92,_0x551333){const _0x527141=_0x5cecd5;_0x60f696[_0x527141(0xe27)]({'controller':'MxGraphEditXMLController','controllerAs':'vm','templateUrl':_0x3c9211,'parent':angular[_0x527141(0x1853)](_0x45f5f8[_0x527141(0x1ed9)]),'clickOutsideToClose':!![],'locals':{'currentXML':_0x29cc92,'saveCallback':_0x551333}})['then'](function(_0x1d87a7){const _0x1c3f6c=_0x527141;_0x1d87a7&&(_0x545f0f[_0x1c3f6c(0x12a7)][_0x1c3f6c(0x2082)]=_0x1d87a7);});}function _0x4e589d(_0x47f499){const _0x4141ab=_0x5cecd5;_0x60f696['show']({'controller':_0x4141ab(0x13b5),'controllerAs':'vm','templateUrl':_0x954bbe,'parent':angular['element'](_0x45f5f8[_0x4141ab(0x1ed9)]),'clickOutsideToClose':!![],'locals':{'saveCallback':_0x47f499}})[_0x4141ab(0x1cb0)](function(_0x48cbd8){const _0x5958a3=_0x4141ab;_0x48cbd8&&(_0x545f0f[_0x5958a3(0x12a7)][_0x5958a3(0x2082)]=_0x48cbd8);});}function _0x5e6d6d(_0x45ee4a,_0x11371d){const _0x19fe5a=_0x5cecd5,_0xc994f3={'preproduction':_0x45ee4a};_0x11371d&&(_0xc994f3[_0x19fe5a(0x10d4)]=_0x45ee4a),_0x18dfaa[_0x19fe5a(0xf61)]['update']({'id':_0x545f0f[_0x19fe5a(0x12a7)]['id']},_0xc994f3)[_0x19fe5a(0x1d77)]['then'](function(_0xe579c9){const _0x440cbd=_0x19fe5a;_0x530fd1['success']({'title':'Project\x20'+(_0x11371d?_0x440cbd(0x37a):_0x440cbd(0x167f))+'!','msg':_0x545f0f['project'][_0x440cbd(0x16b6)]?_0x545f0f['project'][_0x440cbd(0x16b6)]+_0x440cbd(0x195c)+(_0x11371d?'published':_0x440cbd(0x167f))+'!':''}),_0x545f0f['project']['preproduction']=_0xe579c9['preproduction'];})[_0x19fe5a(0x1c4)](function(_0x4bfaec){const _0x342496=_0x19fe5a;_0x530fd1['error']({'title':_0x4bfaec['status']?_0x342496(0xeb9)+_0x4bfaec[_0x342496(0x291)]+_0x342496(0x1657)+_0x4bfaec[_0x342496(0xc22)]:_0x342496(0x1490),'msg':_0x4bfaec['data']?JSON[_0x342496(0x2701)](_0x4bfaec[_0x342496(0x25c)]):_0x4bfaec[_0x342496(0x147f)]()});});}function _0x154e83(){const _0x36bfab=_0x5cecd5;_0xf42491['go'](_0x36bfab(0x74f),{},{'reload':'app.callysquare.projects'});}}const _0x1ebd45=_0x41e7fd;;_0x22533b['$inject']=[_0x5537c6(0x1463),'$state',_0x5537c6(0x417),'projects',_0x5537c6(0x44a),'userProfileSection','api',_0x5537c6(0xde8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),'toasty','Auth'];function _0x22533b(_0x28d7b2,_0x182fa3,_0x361d49,_0x36d6c5,_0x985380,_0xdab03f,_0x1ccf62,_0x39fb03,_0x1f89bd,_0x12d119,_0x37a94a,_0x4e0db9,_0x698625){const _0x8fdf26=_0x5537c6,_0x4cd9cc=this;_0x4cd9cc[_0x8fdf26(0xe76)]=_0x698625['getCurrentUser'](),_0x4cd9cc['projects']=_0x36d6c5||{'count':0x0,'rows':[]},_0x4cd9cc['userProfile']=_0x985380,_0x4cd9cc[_0x8fdf26(0x2199)]=_0xdab03f&&_0xdab03f['count']==0x1?_0xdab03f[_0x8fdf26(0x2214)][0x0]:null,_0x4cd9cc[_0x8fdf26(0x1b1a)]=_0x698625[_0x8fdf26(0x14ea)](_0x4cd9cc[_0x8fdf26(0x2199)]?_0x4cd9cc[_0x8fdf26(0x2199)][_0x8fdf26(0x1b1a)]:null),_0x4cd9cc[_0x8fdf26(0xc83)]=_0x8fdf26(0x2981),_0x4cd9cc[_0x8fdf26(0x1d20)]='',_0x4cd9cc[_0x8fdf26(0x1cdf)]=null,_0x4cd9cc[_0x8fdf26(0x166a)]=[],_0x4cd9cc[_0x8fdf26(0xae2)]={'fields':_0x8fdf26(0x563),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x4cd9cc[_0x8fdf26(0x235d)]=_0x208f81,_0x4cd9cc['deleteconfirm']=_0x3629fa,_0x4cd9cc[_0x8fdf26(0x829)]=_0x31b679,_0x4cd9cc[_0x8fdf26(0x1aff)]=_0xa5a73f,_0x4cd9cc[_0x8fdf26(0x1559)]=_0x459297,_0x4cd9cc[_0x8fdf26(0x1e66)]=_0x4c5488,_0x4cd9cc[_0x8fdf26(0x1a18)]=_0x42d858,_0x4cd9cc['deleteSelectedProjects']=_0x8a06a9,_0x4cd9cc[_0x8fdf26(0x706)]=_0x3f9aa1,_0x4cd9cc[_0x8fdf26(0x19cd)]=_0x1ab11f;function _0x208f81(_0x346b9c){const _0x313951=_0x8fdf26;_0x182fa3['go'](_0x313951(0x291d),{'id':_0x346b9c['id'],'crudPermissions':_0x4cd9cc[_0x313951(0x1b1a)]});}function _0x3629fa(_0x537315,_0x2362f3){const _0x2354bf=_0x8fdf26,_0x42fef8=_0x1f89bd[_0x2354bf(0x1551)]()[_0x2354bf(0x1386)](_0x2354bf(0x14ff))[_0x2354bf(0x49e)](_0x2354bf(0x204d)+_0x537315['name']+_0x2354bf(0x1200)+_0x2354bf(0x1b6))[_0x2354bf(0x15ad)](_0x2354bf(0x19d))['targetEvent'](_0x2362f3)['ok']('OK')[_0x2354bf(0x696)](_0x2354bf(0x24ba));_0x1f89bd[_0x2354bf(0xe27)](_0x42fef8)[_0x2354bf(0x1cb0)](function(){_0x4c5488(_0x537315);},function(){const _0x4c815e=_0x2354bf;console[_0x4c815e(0x1b4f)](_0x4c815e(0x24ba));});}let _0x3683a5=!![],_0x4c6d3b=0x1;_0x28d7b2[_0x8fdf26(0x614)]('vm.query.filter',function(_0x102fb7,_0x283fcc){const _0x81812e=_0x8fdf26;_0x3683a5?_0x37a94a(function(){_0x3683a5=![];}):(!_0x283fcc&&(_0x4c6d3b=_0x4cd9cc[_0x81812e(0xae2)][_0x81812e(0x1c7b)]),_0x102fb7!==_0x283fcc&&(_0x4cd9cc[_0x81812e(0xae2)][_0x81812e(0x1c7b)]=0x1),!_0x102fb7&&(_0x4cd9cc['query'][_0x81812e(0x1c7b)]=_0x4c6d3b),_0x4cd9cc[_0x81812e(0x1aff)]());});function _0x31b679(_0x24d382){_0x4cd9cc['projects']=_0x24d382||{'count':0x0,'rows':[]};}function _0xa5a73f(){const _0x49b868=_0x8fdf26;_0x4cd9cc[_0x49b868(0xae2)][_0x49b868(0x184b)]=(_0x4cd9cc[_0x49b868(0xae2)][_0x49b868(0x1c7b)]-0x1)*_0x4cd9cc[_0x49b868(0xae2)][_0x49b868(0x236)],_0x698625['hasRole'](_0x49b868(0x1c60))?_0x4cd9cc[_0x49b868(0x2061)]=_0x1ccf62[_0x49b868(0xf61)]['get'](_0x4cd9cc['query'],_0x31b679)[_0x49b868(0x1d77)]:(_0x4cd9cc[_0x49b868(0xae2)]['id']=_0x4cd9cc[_0x49b868(0x44a)]['id'],_0x4cd9cc[_0x49b868(0xae2)][_0x49b868(0x1f74)]=_0x49b868(0x1165),_0x4cd9cc[_0x49b868(0x2061)]=_0x1ccf62[_0x49b868(0x44a)]['getResources'](_0x4cd9cc[_0x49b868(0xae2)],_0x31b679)[_0x49b868(0x1d77)]);}function _0x459297(_0x1f9012,_0xac0498){const _0x348585=_0x8fdf26;_0x1f89bd[_0x348585(0xe27)]({'controller':'CreateOrEditSquareProjectDialogController','controllerAs':'vm','templateUrl':_0x2383aa,'parent':angular[_0x348585(0x1853)](_0x12d119[_0x348585(0x1ed9)]),'targetEvent':_0x1f9012,'clickOutsideToClose':!![],'locals':{'project':_0xac0498,'projects':_0x4cd9cc[_0x348585(0x2981)]['rows'],'openFromEditor':null,'setting':null,'crudPermissions':_0x4cd9cc[_0x348585(0x1b1a)]}});}function _0x4c5488(_0x2c1357){const _0x4d306a=_0x8fdf26;_0x1ccf62['squareProject'][_0x4d306a(0x111d)]({'id':_0x2c1357['id']})[_0x4d306a(0x1d77)][_0x4d306a(0x1cb0)](function(){const _0x108a7e=_0x4d306a;_0x39641b()[_0x108a7e(0x152a)](_0x4cd9cc[_0x108a7e(0x2981)]['rows'],{'id':_0x2c1357['id']}),_0x4cd9cc[_0x108a7e(0x2981)][_0x108a7e(0x184d)]-=0x1,!_0x4cd9cc[_0x108a7e(0x2981)][_0x108a7e(0x2214)][_0x108a7e(0xfd0)]&&_0x4cd9cc[_0x108a7e(0x1aff)](),_0x4e0db9['success']({'title':_0x108a7e(0x414),'msg':_0x2c1357[_0x108a7e(0x16b6)]?_0x2c1357['name']+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x315cb3){const _0x37ef94=_0x4d306a;if(_0x315cb3['data']&&_0x315cb3[_0x37ef94(0x25c)][_0x37ef94(0x1a7c)]&&_0x315cb3[_0x37ef94(0x25c)][_0x37ef94(0x1a7c)]['length']){_0x4cd9cc[_0x37ef94(0x1a7c)]=_0x315cb3[_0x37ef94(0x25c)][_0x37ef94(0x1a7c)]||[{'message':_0x315cb3['toString'](),'type':_0x37ef94(0x8cc)}];for(let _0x365590=0x0;_0x365590<_0x315cb3[_0x37ef94(0x25c)][_0x37ef94(0x1a7c)][_0x37ef94(0xfd0)];_0x365590++){_0x4e0db9[_0x37ef94(0x218e)]({'title':_0x315cb3[_0x37ef94(0x25c)][_0x37ef94(0x1a7c)][_0x365590]['type'],'msg':_0x315cb3[_0x37ef94(0x25c)][_0x37ef94(0x1a7c)][_0x365590][_0x37ef94(0x155e)]});}}else _0x4e0db9[_0x37ef94(0x218e)]({'title':_0x315cb3[_0x37ef94(0x291)]?_0x37ef94(0xeb9)+_0x315cb3[_0x37ef94(0x291)]+'\x20-\x20'+_0x315cb3['statusText']:_0x37ef94(0x8cc),'msg':_0x315cb3[_0x37ef94(0x25c)]?JSON['stringify'](_0x315cb3['data']['message']):_0x315cb3[_0x37ef94(0x155e)]||_0x315cb3[_0x37ef94(0x147f)]()});});}function _0x42d858(){const _0x6daad3=_0x8fdf26,_0x2d6e9d=angular[_0x6daad3(0x17fe)](_0x4cd9cc[_0x6daad3(0x166a)]);return _0x4cd9cc[_0x6daad3(0x166a)]=[],_0x2d6e9d;}function _0x8a06a9(_0x15609f){const _0x49efa3=_0x8fdf26,_0x20bef8=_0x1f89bd[_0x49efa3(0x1551)]()[_0x49efa3(0x1386)](_0x49efa3(0xc2d))[_0x49efa3(0x49e)](_0x49efa3(0x204d)+_0x4cd9cc['selectedProjects'][_0x49efa3(0xfd0)]+_0x49efa3(0x1d6c)+'\x20will\x20be\x20deleted.')[_0x49efa3(0x15ad)](_0x49efa3(0x2399))['targetEvent'](_0x15609f)['ok']('OK')[_0x49efa3(0x696)]('CANCEL');_0x1f89bd[_0x49efa3(0xe27)](_0x20bef8)['then'](function(){const _0x17a7b1=_0x49efa3;_0x4cd9cc['selectedProjects'][_0x17a7b1(0xf90)](function(_0x1d831e){_0x4c5488(_0x1d831e);}),_0x4cd9cc['selectedProjects']=[];});}function _0x3f9aa1(){_0x4cd9cc['selectedProjects']=[];}function _0x1ab11f(){const _0x3a000b=_0x8fdf26;_0x4cd9cc[_0x3a000b(0x166a)]=_0x4cd9cc[_0x3a000b(0x2981)][_0x3a000b(0x2214)];}}const _0x4787e2=_0x22533b;;_0x49aeea[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6)];function _0x49aeea(_0x5c286d){const _0x10f872=_0x5537c6;_0x5c286d[_0x10f872(0x27e0)]('app.callysquare.projects',{'url':'/projects','views':{'content@app':{'templateUrl':_0x33673d,'controller':'ProjectsController\x20as\x20vm'}},'resolve':{'projects':[_0x10f872(0x1e0b),_0x10f872(0x1774),function(_0x353fa4,_0x176986){const _0x9891c3=_0x10f872;return _0x176986[_0x9891c3(0x22b6)](_0x9891c3(0x1c60))?_0x353fa4[_0x9891c3(0x19a3)](_0x9891c3(0x395),{'fields':_0x9891c3(0x563),'sort':_0x9891c3(0x16b6),'limit':0xa,'offset':0x0}):_0x353fa4[_0x9891c3(0x19a3)](_0x9891c3(0x12da),{'id':_0x176986[_0x9891c3(0x21e8)]()[_0x9891c3(0x13c1)],'section':_0x9891c3(0x1165),'fields':_0x9891c3(0x563),'sort':_0x9891c3(0x16b6),'limit':0xa,'offset':0x0});}],'userProfile':[_0x10f872(0x1e0b),_0x10f872(0x1774),function(_0x3aacb4,_0x47ce30){const _0x1f01f1=_0x10f872;return _0x3aacb4['resolve'](_0x1f01f1(0x9ae),{'fields':_0x1f01f1(0x279),'id':_0x47ce30[_0x1f01f1(0x21e8)]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x10f872(0x1774),function(_0x5fa669,_0x24855c){const _0x37630d=_0x10f872;return _0x5fa669[_0x37630d(0x19a3)](_0x37630d(0x2182),{'fields':_0x37630d(0x1f5f),'userProfileId':_0x24855c[_0x37630d(0x21e8)]()[_0x37630d(0x13c1)],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':'callysquare'})['state'](_0x10f872(0x291d),{'url':_0x10f872(0x1906),'views':{'content@app':{'templateUrl':_0x1c69e4,'controller':'ProjectController\x20as\x20vm'}},'params':{'crudPermissions':undefined},'resolve':{'project':[_0x10f872(0x1e0b),_0x10f872(0x225c),function(_0x22247b,_0x157e76){const _0x351a5d=_0x10f872;return _0x22247b[_0x351a5d(0x19a3)]('squareProject@get',{'id':_0x157e76['id']});}],'users':[_0x10f872(0x1e0b),'Auth',function(_0x2e26f4,_0x41b5b0){const _0x462408=_0x10f872;return _0x41b5b0['hasRole'](_0x462408(0x1c60))?_0x2e26f4[_0x462408(0x19a3)]('user@get',{'fields':_0x462408(0x1db1),'sort':'name','nolimit':!![]}):_0x2e26f4['resolve']('userProfile@getResources',{'id':_0x41b5b0[_0x462408(0x21e8)]()[_0x462408(0x13c1)],'section':_0x462408(0x2653),'mergeResources':!![],'fields':_0x462408(0x1db1),'sort':_0x462408(0x16b6),'nolimit':!![]});}],'trunks':['apiResolver',_0x10f872(0x1774),function(_0x273768,_0x28f3e3){const _0x2dfcf3=_0x10f872;return _0x28f3e3[_0x2dfcf3(0x22b6)](_0x2dfcf3(0x1c60))?_0x273768['resolve'](_0x2dfcf3(0x99d),{'fields':_0x2dfcf3(0x43c),'sort':_0x2dfcf3(0x16b6),'nolimit':!![]}):_0x273768[_0x2dfcf3(0x19a3)]('userProfile@getResources',{'id':_0x28f3e3[_0x2dfcf3(0x21e8)]()[_0x2dfcf3(0x13c1)],'section':'Trunks','fields':_0x2dfcf3(0x43c),'sort':_0x2dfcf3(0x16b6),'nolimit':!![]});}],'queues':['apiResolver',_0x10f872(0x1774),function(_0x514081,_0x346290){const _0x40c521=_0x10f872;return _0x346290[_0x40c521(0x22b6)]('admin')?_0x514081[_0x40c521(0x19a3)](_0x40c521(0x1c4d),{'type':'inbound','fields':_0x40c521(0x43c),'sort':'name','nolimit':!![]}):_0x514081[_0x40c521(0x19a3)]('userProfile@getResources',{'id':_0x346290[_0x40c521(0x21e8)]()['userProfileId'],'section':_0x40c521(0x2382),'type':_0x40c521(0x26c0),'fields':_0x40c521(0x43c),'sort':_0x40c521(0x16b6),'nolimit':!![]});}],'sounds':[_0x10f872(0x1e0b),_0x10f872(0x1774),function(_0x2163db,_0x430cdf){const _0x3f573b=_0x10f872;return _0x430cdf[_0x3f573b(0x22b6)]('admin')?_0x2163db[_0x3f573b(0x19a3)](_0x3f573b(0x1de3),{'fields':_0x3f573b(0x43c),'sort':_0x3f573b(0x16b6),'nolimit':!![]}):_0x2163db[_0x3f573b(0x19a3)](_0x3f573b(0x12da),{'id':_0x430cdf['getCurrentUser']()[_0x3f573b(0x13c1)],'section':_0x3f573b(0x19f5),'fields':_0x3f573b(0x43c),'sort':_0x3f573b(0x16b6),'nolimit':!![]});}],'variables':[_0x10f872(0x1e0b),_0x10f872(0x1774),function(_0x952b8e,_0x13a881){const _0x3ff8fc=_0x10f872;return _0x13a881[_0x3ff8fc(0x22b6)](_0x3ff8fc(0x1c60))?_0x952b8e[_0x3ff8fc(0x19a3)]('variable@get',{'fields':_0x3ff8fc(0x43c),'sort':_0x3ff8fc(0x16b6),'nolimit':!![]}):_0x952b8e[_0x3ff8fc(0x19a3)](_0x3ff8fc(0x12da),{'id':_0x13a881['getCurrentUser']()['userProfileId'],'section':_0x3ff8fc(0x1afe),'fields':_0x3ff8fc(0x43c),'sort':'name','nolimit':!![]});}],'databases':[_0x10f872(0x1e0b),_0x10f872(0x1774),function(_0x264b3c,_0x513eca){const _0x1b3620=_0x10f872;return _0x513eca[_0x1b3620(0x22b6)](_0x1b3620(0x1c60))?_0x264b3c[_0x1b3620(0x19a3)](_0x1b3620(0x206a),{'fields':_0x1b3620(0x43c),'sort':'name','nolimit':!![]}):_0x264b3c[_0x1b3620(0x19a3)]('userProfile@getResources',{'id':_0x513eca[_0x1b3620(0x21e8)]()[_0x1b3620(0x13c1)],'section':_0x1b3620(0x2fa),'fields':_0x1b3620(0x43c),'sort':_0x1b3620(0x16b6),'nolimit':!![]});}],'projects':[_0x10f872(0x1e0b),'Auth',function(_0x5a26e4,_0x45d2a3){const _0x1af3a8=_0x10f872;return _0x45d2a3[_0x1af3a8(0x22b6)](_0x1af3a8(0x1c60))?_0x5a26e4['resolve']('squareProject@get',{'fields':_0x1af3a8(0x43c),'sort':'name','nolimit':!![]}):_0x5a26e4[_0x1af3a8(0x19a3)](_0x1af3a8(0x12da),{'id':_0x45d2a3[_0x1af3a8(0x21e8)]()[_0x1af3a8(0x13c1)],'section':_0x1af3a8(0x1165),'fields':_0x1af3a8(0x43c),'sort':_0x1af3a8(0x16b6),'nolimit':!![]});}],'contexts':['apiResolver',_0x10f872(0x1774),function(_0x3278d5,_0x32fb2a){const _0x2803a6=_0x10f872;return _0x32fb2a[_0x2803a6(0x22b6)](_0x2803a6(0x1c60))?_0x3278d5[_0x2803a6(0x19a3)]('voiceContext@get',{'fields':_0x2803a6(0x43c),'sort':'name','nolimit':!![]}):_0x3278d5[_0x2803a6(0x19a3)](_0x2803a6(0x12da),{'id':_0x32fb2a[_0x2803a6(0x21e8)]()['userProfileId'],'section':'Contexts','fields':_0x2803a6(0x43c),'sort':_0x2803a6(0x16b6),'nolimit':!![]});}],'intervals':[_0x10f872(0x1e0b),'Auth',function(_0x4bfa23,_0x2e0914){const _0x47dded=_0x10f872;return _0x2e0914['hasRole'](_0x47dded(0x1c60))?_0x4bfa23[_0x47dded(0x19a3)]('interval@get',{'fields':_0x47dded(0x2904),'sort':_0x47dded(0x16b6),'nolimit':!![]}):_0x4bfa23[_0x47dded(0x19a3)](_0x47dded(0x12da),{'id':_0x2e0914[_0x47dded(0x21e8)]()[_0x47dded(0x13c1)],'section':_0x47dded(0xc69),'fields':_0x47dded(0x2904),'sort':_0x47dded(0x16b6),'nolimit':!![]});}],'mailAccounts':[_0x10f872(0x1e0b),_0x10f872(0x1774),function(_0x24808c,_0x2d358a){const _0x18346c=_0x10f872;return _0x2d358a['hasRole'](_0x18346c(0x1c60))?_0x24808c['resolve']('mailAccount@get',{'fields':_0x18346c(0x43c),'sort':_0x18346c(0x16b6),'nolimit':!![]}):_0x24808c[_0x18346c(0x19a3)](_0x18346c(0x12da),{'id':_0x2d358a[_0x18346c(0x21e8)]()[_0x18346c(0x13c1)],'section':'MailAccounts','fields':'id,name','sort':_0x18346c(0x16b6),'nolimit':!![]});}],'templates':[_0x10f872(0x1e0b),'Auth',function(_0x47e12f,_0x5a28ec){const _0x13f5a6=_0x10f872;return _0x5a28ec['hasRole'](_0x13f5a6(0x1c60))?_0x47e12f[_0x13f5a6(0x19a3)](_0x13f5a6(0x215f),{'fields':'id,name','sort':_0x13f5a6(0x16b6),'nolimit':!![]}):_0x47e12f[_0x13f5a6(0x19a3)](_0x13f5a6(0x12da),{'id':_0x5a28ec[_0x13f5a6(0x21e8)]()[_0x13f5a6(0x13c1)],'section':_0x13f5a6(0x2195),'fields':_0x13f5a6(0x43c),'sort':'name','nolimit':!![]});}],'lists':[_0x10f872(0x1e0b),_0x10f872(0x1774),function(_0x445a5e,_0x503f03){const _0x4fcebf=_0x10f872;return _0x503f03[_0x4fcebf(0x22b6)](_0x4fcebf(0x1c60))?_0x445a5e[_0x4fcebf(0x19a3)](_0x4fcebf(0x1b1f),{'fields':_0x4fcebf(0x43c),'sort':'name','nolimit':!![]}):_0x445a5e['resolve'](_0x4fcebf(0x12da),{'id':_0x503f03[_0x4fcebf(0x21e8)]()[_0x4fcebf(0x13c1)],'section':_0x4fcebf(0x191f),'fields':'id,name','sort':_0x4fcebf(0x16b6),'nolimit':!![]});}],'smsAccounts':[_0x10f872(0x1e0b),_0x10f872(0x1774),function(_0x19a712,_0x8452a4){const _0x3ee6b3=_0x10f872;return _0x8452a4[_0x3ee6b3(0x22b6)](_0x3ee6b3(0x1c60))?_0x19a712[_0x3ee6b3(0x19a3)]('smsAccount@get',{'fields':_0x3ee6b3(0x43c),'sort':_0x3ee6b3(0x16b6),'nolimit':!![]}):_0x19a712[_0x3ee6b3(0x19a3)](_0x3ee6b3(0x12da),{'id':_0x8452a4[_0x3ee6b3(0x21e8)]()[_0x3ee6b3(0x13c1)],'section':_0x3ee6b3(0x1b3f),'fields':_0x3ee6b3(0x43c),'sort':_0x3ee6b3(0x16b6),'nolimit':!![]});}],'pauses':['apiResolver',_0x10f872(0x1774),function(_0x27d029,_0x243c1b){const _0x14be9e=_0x10f872;return _0x243c1b[_0x14be9e(0x22b6)](_0x14be9e(0x1c60))?_0x27d029[_0x14be9e(0x19a3)]('pause@get',{'fields':'id,name','sort':'name','nolimit':!![]}):_0x27d029[_0x14be9e(0x19a3)]('userProfile@getResources',{'id':_0x243c1b[_0x14be9e(0x21e8)]()[_0x14be9e(0x13c1)],'section':_0x14be9e(0x15f1),'fields':'id,name','sort':_0x14be9e(0x16b6),'nolimit':!![]});}],'userProfileSection':[_0x10f872(0x1e0b),_0x10f872(0x1774),function(_0x25e6fc,_0x492e4b){const _0x516666=_0x10f872;return _0x25e6fc['resolve'](_0x516666(0x2182),{'fields':_0x516666(0x1f5f),'userProfileId':_0x492e4b['getCurrentUser']()[_0x516666(0x13c1)],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x10f872(0xe18)});}angular[_0x5537c6(0x9ab)]('app.callysquare.projects',[])[_0x5537c6(0xa60)](_0x49aeea)['controller'](_0x5537c6(0xa9e),_0x3986c1)['controller']('MxGraphDialogController',_0x4fd633)[_0x5537c6(0x2838)](_0x5537c6(0x1ba5),_0x10ac0d)['factory'](_0x5537c6(0x144f),_0x12b8ee)[_0x5537c6(0x234a)](_0x5537c6(0x212f),_0x172106)['factory'](_0x5537c6(0x11c8),_0x2f7eb7)[_0x5537c6(0x234a)](_0x5537c6(0x20bf),_0x179347)['factory'](_0x5537c6(0x18a4),_0x522ebf)['factory'](_0x5537c6(0x1d4),_0x2138e7)[_0x5537c6(0x234a)](_0x5537c6(0x2508),_0x4f9f25)['factory'](_0x5537c6(0x282d),_0x325649)[_0x5537c6(0x234a)]('awsLexRegion',_0x23e106)[_0x5537c6(0x234a)](_0x5537c6(0x1829),_0x6e3880)[_0x5537c6(0x234a)](_0x5537c6(0x13c8),_0x49ef41)[_0x5537c6(0x6e5)]('MxGraphEditXMLController',_0x2cad9d)[_0x5537c6(0x6e5)](_0x5537c6(0x13b5),_0xb268c0)['controller'](_0x5537c6(0x187f),_0x28f5b2)[_0x5537c6(0x6e5)](_0x5537c6(0x15cc),_0x4caa58)['controller'](_0x5537c6(0x1e0c),_0x5ea63d)[_0x5537c6(0x6e5)](_0x5537c6(0x4b5),_0x4d9a39)[_0x5537c6(0x6e5)]('ProjectController',_0x1ebd45)['controller'](_0x5537c6(0x8fb),_0x4787e2);;const _0x667349=_0x5074a3['p']+_0x5537c6(0x1a57);;const _0x2b10fd=_0x5074a3['p']+'src/js/modules/main/apps/callysquare/views/squareRecordings/squareRecordings.html/squareRecordings.html';;_0x8f7ceb[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state',_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),'toasty',_0x5537c6(0x97b),_0x5537c6(0x1bde),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x8f7ceb(_0x21c5d0,_0x1b912a,_0x50c6b4,_0xf7e3d,_0x38055b,_0x5ec039,_0x5efc8e,_0x98b337,_0x31ea27,_0x115cb9,_0x388252,_0x173327,_0x5aa608,_0x5d5d73){const _0x12554a=_0x5537c6,_0x418ab8=this;_0x418ab8[_0x12554a(0xe76)]=_0x388252['getCurrentUser'](),_0x418ab8[_0x12554a(0x1a7c)]=[],_0x418ab8[_0x12554a(0x9ca)]=_0x5aa608,_0x418ab8[_0x12554a(0x8a5)]=_0x173327,_0x418ab8[_0x12554a(0x1b1a)]=_0x5d5d73,_0x418ab8[_0x12554a(0xf4c)]={},_0x418ab8[_0x12554a(0x1b0c)]=_0x418ab8[_0x12554a(0x9ca)]&&_0x418ab8['setting'][_0x12554a(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x418ab8['title']='CALLYSQUARE.EDIT_ODBC',_0x418ab8['odbc']=angular['copy'](_0x31ea27),_0x418ab8['odbcs']=_0x98b337,_0x418ab8['newOdbc']=![];!_0x418ab8['odbc']&&(_0x418ab8[_0x12554a(0x1bde)]={},_0x418ab8[_0x12554a(0x1386)]='CALLYSQUARE.NEW_ODBC',_0x418ab8[_0x12554a(0x1e0a)]=!![]);_0x418ab8[_0x12554a(0x336)]=_0x9d90f4,_0x418ab8[_0x12554a(0x23c8)]=_0x33e40e,_0x418ab8[_0x12554a(0x1cd1)]=_0x3b1a0d,_0x418ab8[_0x12554a(0x2c4)]=_0x5152a6,_0x418ab8[_0x12554a(0xda0)]=_0x368ad2;function _0x9d90f4(){const _0xe2759f=_0x12554a;_0x418ab8[_0xe2759f(0x1a7c)]=[],_0x115cb9[_0xe2759f(0xd7f)][_0xe2759f(0x1c3f)](_0x418ab8['odbc'])[_0xe2759f(0x1d77)][_0xe2759f(0x1cb0)](function(_0x345944){const _0x1a1d7f=_0xe2759f;_0x418ab8[_0x1a1d7f(0x97b)]['unshift'](_0x345944['toJSON']()),_0x5efc8e[_0x1a1d7f(0x829)]({'title':_0x1a1d7f(0x110a),'msg':_0x418ab8[_0x1a1d7f(0x1bde)][_0x1a1d7f(0x16b6)]?_0x418ab8['odbc']['name']+_0x1a1d7f(0x470):''}),_0x368ad2(_0x345944);})[_0xe2759f(0x1c4)](function(_0x3642fd){const _0x1d0423=_0xe2759f;if(_0x3642fd[_0x1d0423(0x25c)]&&_0x3642fd[_0x1d0423(0x25c)]['errors']&&_0x3642fd['data'][_0x1d0423(0x1a7c)][_0x1d0423(0xfd0)]){_0x418ab8[_0x1d0423(0x1a7c)]=_0x3642fd[_0x1d0423(0x25c)]['errors']||[{'message':_0x3642fd[_0x1d0423(0x147f)](),'type':_0x1d0423(0x249c)}];for(let _0x2d80a2=0x0;_0x2d80a2<_0x3642fd['data'][_0x1d0423(0x1a7c)][_0x1d0423(0xfd0)];_0x2d80a2+=0x1){_0x5efc8e[_0x1d0423(0x218e)]({'title':_0x3642fd[_0x1d0423(0x25c)]['errors'][_0x2d80a2]['type'],'msg':_0x3642fd[_0x1d0423(0x25c)][_0x1d0423(0x1a7c)][_0x2d80a2][_0x1d0423(0x155e)]});}}else _0x5efc8e[_0x1d0423(0x218e)]({'title':_0x3642fd[_0x1d0423(0x291)]?_0x1d0423(0xeb9)+_0x3642fd[_0x1d0423(0x291)]+_0x1d0423(0x1657)+_0x3642fd[_0x1d0423(0xc22)]:'api.squareOdbc.save','msg':_0x3642fd[_0x1d0423(0x25c)]?JSON['stringify'](_0x3642fd[_0x1d0423(0x25c)][_0x1d0423(0x155e)]):_0x3642fd[_0x1d0423(0x147f)]()});});}function _0x33e40e(){const _0x5120b6=_0x12554a;_0x418ab8[_0x5120b6(0x1a7c)]=[],_0x115cb9[_0x5120b6(0xd7f)]['update']({'id':_0x418ab8['odbc']['id']},_0x418ab8[_0x5120b6(0x1bde)])[_0x5120b6(0x1d77)][_0x5120b6(0x1cb0)](function(_0x2e0606){const _0x25c7a7=_0x5120b6,_0x1be994=_0x39641b()[_0x25c7a7(0x13b4)](_0x418ab8[_0x25c7a7(0x97b)],{'id':_0x2e0606['id']});_0x1be994&&_0x39641b()['merge'](_0x1be994,_0x39641b()[_0x25c7a7(0x169b)](_0x2e0606[_0x25c7a7(0x19b2)](),_0x39641b()[_0x25c7a7(0x1be5)](_0x1be994))),_0x5efc8e[_0x25c7a7(0x829)]({'title':_0x25c7a7(0x21c),'msg':_0x418ab8[_0x25c7a7(0x1bde)]['name']?_0x418ab8[_0x25c7a7(0x1bde)][_0x25c7a7(0x16b6)]+_0x25c7a7(0xedb):''}),_0x368ad2(_0x2e0606);})[_0x5120b6(0x1c4)](function(_0x38c40a){const _0x79ea14=_0x5120b6;if(_0x38c40a['data']&&_0x38c40a['data'][_0x79ea14(0x1a7c)]&&_0x38c40a[_0x79ea14(0x25c)][_0x79ea14(0x1a7c)]['length']){_0x418ab8[_0x79ea14(0x1a7c)]=_0x38c40a[_0x79ea14(0x25c)][_0x79ea14(0x1a7c)]||[{'message':_0x38c40a['toString'](),'type':_0x79ea14(0x1282)}];for(let _0x266503=0x0;_0x266503<_0x38c40a[_0x79ea14(0x25c)][_0x79ea14(0x1a7c)][_0x79ea14(0xfd0)];_0x266503++){_0x5efc8e['error']({'title':_0x38c40a['data'][_0x79ea14(0x1a7c)][_0x266503][_0x79ea14(0x66a)],'msg':_0x38c40a[_0x79ea14(0x25c)]['errors'][_0x266503]['message']});}}else _0x5efc8e[_0x79ea14(0x218e)]({'title':_0x38c40a[_0x79ea14(0x291)]?_0x79ea14(0xeb9)+_0x38c40a[_0x79ea14(0x291)]+'\x20-\x20'+_0x38c40a['statusText']:_0x79ea14(0x1282),'msg':_0x38c40a['data']?JSON[_0x79ea14(0x2701)](_0x38c40a[_0x79ea14(0x25c)][_0x79ea14(0x155e)]):_0x38c40a[_0x79ea14(0x147f)]()});});}function _0x3b1a0d(_0x3a2495){const _0x27c47a=_0x12554a;_0x418ab8[_0x27c47a(0x1a7c)]=[];const _0x37593d=_0xf7e3d[_0x27c47a(0x1551)]()[_0x27c47a(0x1386)](_0x27c47a(0x1a2e))['content'](_0x27c47a(0x1789))['ariaLabel'](_0x27c47a(0x120d))['ok'](_0x27c47a(0x2594))['cancel'](_0x27c47a(0xde1))['targetEvent'](_0x3a2495);_0xf7e3d[_0x27c47a(0xe27)](_0x37593d)['then'](function(){const _0x4fd55a=_0x27c47a;_0x115cb9['squareOdbc'][_0x4fd55a(0x111d)]({'id':_0x418ab8[_0x4fd55a(0x1bde)]['id']})[_0x4fd55a(0x1d77)]['then'](function(){const _0x30bd78=_0x4fd55a;_0x39641b()[_0x30bd78(0x152a)](_0x418ab8[_0x30bd78(0x97b)],{'id':_0x418ab8['odbc']['id']}),_0x5efc8e['success']({'title':_0x30bd78(0x1e61),'msg':(_0x418ab8[_0x30bd78(0x1bde)][_0x30bd78(0x16b6)]||'odbc')+_0x30bd78(0x3f5)}),_0x368ad2(_0x418ab8['odbc']);})[_0x4fd55a(0x1c4)](function(_0x37190a){const _0x144f34=_0x4fd55a;if(_0x37190a[_0x144f34(0x25c)]&&_0x37190a[_0x144f34(0x25c)][_0x144f34(0x1a7c)]&&_0x37190a[_0x144f34(0x25c)][_0x144f34(0x1a7c)][_0x144f34(0xfd0)]){_0x418ab8[_0x144f34(0x1a7c)]=_0x37190a[_0x144f34(0x25c)][_0x144f34(0x1a7c)]||[{'message':_0x37190a['toString'](),'type':_0x144f34(0x7f3)}];for(let _0x361ede=0x0;_0x361ede<_0x37190a['data']['errors']['length'];_0x361ede++){_0x5efc8e[_0x144f34(0x218e)]({'title':_0x37190a[_0x144f34(0x25c)][_0x144f34(0x1a7c)][_0x361ede][_0x144f34(0x66a)],'msg':_0x37190a['data']['errors'][_0x361ede][_0x144f34(0x155e)]});}}else _0x5efc8e[_0x144f34(0x218e)]({'title':_0x37190a[_0x144f34(0x291)]?_0x144f34(0xeb9)+_0x37190a[_0x144f34(0x291)]+_0x144f34(0x1657)+_0x37190a[_0x144f34(0xc22)]:_0x144f34(0x7f3),'msg':_0x37190a[_0x144f34(0x25c)]?JSON[_0x144f34(0x2701)](_0x37190a['data'][_0x144f34(0x155e)]):_0x37190a[_0x144f34(0x155e)]||_0x37190a['toString']()});});},function(){});}function _0x5152a6(_0x1dba9d){return _0x1dba9d===null?undefined:new Date(_0x1dba9d);}function _0x368ad2(_0x1b931d){const _0x24f1f7=_0x12554a;_0xf7e3d[_0x24f1f7(0x1426)](_0x1b931d);}}const _0x11104a=_0x8f7ceb;;const _0x265ce4=_0x5074a3['p']+'src/js/modules/main/apps/callysquare/views/odbcs/create/dialog.html/dialog.html';;_0x3aa650[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),'$document','$timeout',_0x5537c6(0x1ae),'odbcs',_0x5537c6(0x44a),'userProfileSection',_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x3aa650(_0x5dfe83,_0x31584f,_0x5c80c0,_0x30aea5,_0x364812,_0x2cfc9a,_0xef692a,_0x6f966f,_0x1f2d85,_0x4fe683,_0x5e18ab,_0x9ddc1d,_0x1a239a,_0x3d10b0,_0x37a3f8,_0x38d0b8,_0xe46ea4){const _0x14654d=_0x5537c6,_0x44d787=this;_0x44d787[_0x14654d(0x8a5)]=_0x38d0b8,_0x44d787[_0x14654d(0x9ca)]=_0xe46ea4,_0x44d787[_0x14654d(0xe76)]=_0x37a3f8[_0x14654d(0x21e8)](),_0x44d787[_0x14654d(0x97b)]=_0x1f2d85||{'count':0x0,'rows':[]},_0x44d787[_0x14654d(0x44a)]=_0x4fe683,_0x44d787[_0x14654d(0x2199)]=_0x5e18ab&&_0x5e18ab[_0x14654d(0x184d)]==0x1?_0x5e18ab[_0x14654d(0x2214)][0x0]:null,_0x44d787[_0x14654d(0x1b1a)]=_0x37a3f8[_0x14654d(0x14ea)](_0x44d787['userProfileSection']?_0x44d787[_0x14654d(0x2199)]['crudPermissions']:null),_0x44d787[_0x14654d(0xc83)]=_0x14654d(0x97b),_0x44d787[_0x14654d(0x1d20)]='',_0x44d787[_0x14654d(0x1cdf)]=null,_0x44d787[_0x14654d(0x1703)]=[],_0x44d787[_0x14654d(0xae2)]={'fields':_0x14654d(0x427),'sort':_0x14654d(0x282),'limit':0xa,'page':0x1},_0x44d787[_0x14654d(0xc93)]=_0x535c25,_0x44d787[_0x14654d(0x86f)]=_0x632c14,_0x44d787[_0x14654d(0x27fe)]=_0x3e0871,_0x44d787[_0x14654d(0x829)]=_0x168df8,_0x44d787['getODBC']=_0x45a704,_0x44d787['createOrEditOdbc']=_0x2978ef,_0x44d787[_0x14654d(0x1cd1)]=_0x47c29b,_0x44d787[_0x14654d(0x5bd)]=_0x2e10d7,_0x44d787[_0x14654d(0x1f4c)]=_0x8e2c18,_0x44d787['deselectODBC']=_0x31962f,_0x44d787['selectAllODBC']=_0x189cd6;function _0x535c25(_0xbc6227,_0x58cfae){const _0x3a57bc=_0x14654d;_0x364812[_0x3a57bc(0xe27)]({'controller':_0x3a57bc(0x2e1),'controllerAs':'vm','templateUrl':_0x265ce4,'parent':angular['element'](_0x2cfc9a['body']),'targetEvent':_0x58cfae,'clickOutsideToClose':!![],'locals':{'odbc':_0xbc6227,'odbcs':_0x44d787[_0x3a57bc(0x97b)]['rows'],'license':_0x44d787[_0x3a57bc(0x8a5)],'setting':null,'crudPermissions':_0x44d787[_0x3a57bc(0x1b1a)]}});}function _0x632c14(_0x3eb296){const _0x45e28c=_0x14654d;return _0x9ddc1d[_0x45e28c(0xd7f)][_0x45e28c(0x26a1)]({'id':_0x3eb296['id']})['$promise'][_0x45e28c(0x1cb0)](function(){const _0x227415=_0x45e28c;_0x3d10b0[_0x227415(0x829)]({'title':_0x227415(0x281f),'msg':_0x227415(0x1bca)});})[_0x45e28c(0x1c4)](function(_0x7c2d49){const _0x5e1bbd=_0x45e28c;_0x3d10b0['error']({'title':_0x5e1bbd(0x281f),'msg':_0x7c2d49[_0x5e1bbd(0x25c)]?JSON[_0x5e1bbd(0x2701)](_0x7c2d49[_0x5e1bbd(0x25c)]):_0x7c2d49[_0x5e1bbd(0x147f)]()});});}function _0x3e0871(_0x1a1395,_0x4ffbd0){const _0x50bae5=_0x14654d,_0x370632=_0x364812[_0x50bae5(0x1551)]()[_0x50bae5(0x1386)](_0x50bae5(0x140b)+_0x39641b()[_0x50bae5(0xa75)](_0x50bae5(0x1bde))+'?')[_0x50bae5(0x49e)](_0x50bae5(0x204d)+(_0x1a1395['name']||_0x50bae5(0x1bde))+''+_0x50bae5(0x1b6))['ariaLabel'](_0x50bae5(0xc16))['targetEvent'](_0x4ffbd0)['ok']('OK')['cancel'](_0x50bae5(0x24ba));_0x364812[_0x50bae5(0xe27)](_0x370632)['then'](function(){_0x47c29b(_0x1a1395);},function(){const _0xa390d4=_0x50bae5;console[_0xa390d4(0x1b4f)]('CANCEL');});}let _0x5c87f1=!![],_0x27ba98=0x1;_0x5dfe83[_0x14654d(0x614)](_0x14654d(0x957),function(_0x23b84e,_0x4d49a1){const _0x47b09b=_0x14654d;_0x5c87f1?_0xef692a(function(){_0x5c87f1=![];}):(!_0x4d49a1&&(_0x27ba98=_0x44d787['query'][_0x47b09b(0x1c7b)]),_0x23b84e!==_0x4d49a1&&(_0x44d787[_0x47b09b(0xae2)][_0x47b09b(0x1c7b)]=0x1),!_0x23b84e&&(_0x44d787[_0x47b09b(0xae2)]['page']=_0x27ba98),_0x44d787[_0x47b09b(0x1397)]());});function _0x168df8(_0x364a86){_0x44d787['odbcs']=_0x364a86||{'count':0x0,'rows':[]};}function _0x45a704(){const _0x400e10=_0x14654d;_0x44d787[_0x400e10(0xae2)]['offset']=(_0x44d787['query']['page']-0x1)*_0x44d787['query']['limit'],_0x37a3f8[_0x400e10(0x22b6)](_0x400e10(0x1c60))?_0x44d787['promise']=_0x9ddc1d[_0x400e10(0xd7f)]['get'](_0x44d787[_0x400e10(0xae2)],_0x168df8)['$promise']:(_0x44d787['query']['id']=_0x44d787[_0x400e10(0x44a)]['id'],_0x44d787[_0x400e10(0xae2)][_0x400e10(0x1f74)]=_0x400e10(0x2fa),_0x44d787[_0x400e10(0x2061)]=_0x9ddc1d[_0x400e10(0x44a)][_0x400e10(0x1810)](_0x44d787[_0x400e10(0xae2)],_0x168df8)[_0x400e10(0x1d77)]);}function _0x2978ef(_0x29f13a,_0x9fe01e){const _0xafb256=_0x14654d;_0x364812[_0xafb256(0xe27)]({'controller':_0xafb256(0x2e1),'controllerAs':'vm','templateUrl':_0x265ce4,'parent':angular[_0xafb256(0x1853)](_0x2cfc9a[_0xafb256(0x1ed9)]),'targetEvent':_0x29f13a,'clickOutsideToClose':!![],'locals':{'odbc':_0x9fe01e,'odbcs':_0x44d787['odbcs'][_0xafb256(0x2214)],'license':_0x44d787[_0xafb256(0x8a5)],'setting':_0x44d787[_0xafb256(0x9ca)],'crudPermissions':_0x44d787[_0xafb256(0x1b1a)]}});}function _0x47c29b(_0x2a5944){const _0x40be72=_0x14654d;_0x9ddc1d[_0x40be72(0xd7f)][_0x40be72(0x111d)]({'id':_0x2a5944['id']})[_0x40be72(0x1d77)]['then'](function(){const _0x8d5f75=_0x40be72;_0x39641b()[_0x8d5f75(0x152a)](_0x44d787['odbcs']['rows'],{'id':_0x2a5944['id']}),_0x44d787[_0x8d5f75(0x97b)][_0x8d5f75(0x184d)]-=0x1,!_0x44d787['odbcs'][_0x8d5f75(0x2214)][_0x8d5f75(0xfd0)]&&_0x44d787[_0x8d5f75(0x1397)](),_0x3d10b0[_0x8d5f75(0x829)]({'title':_0x39641b()[_0x8d5f75(0xa75)](_0x8d5f75(0x1776))+_0x8d5f75(0x2663),'msg':_0x2a5944[_0x8d5f75(0x16b6)]?_0x2a5944[_0x8d5f75(0x16b6)]+_0x8d5f75(0x3f5):''});})['catch'](function(_0x4f402f){const _0x478164=_0x40be72;if(_0x4f402f[_0x478164(0x25c)]&&_0x4f402f[_0x478164(0x25c)]['errors']&&_0x4f402f['data']['errors'][_0x478164(0xfd0)]){_0x44d787[_0x478164(0x1a7c)]=_0x4f402f[_0x478164(0x25c)][_0x478164(0x1a7c)]||[{'message':_0x4f402f['toString'](),'type':_0x478164(0xf5b)}];for(let _0x5adf88=0x0;_0x5adf88<_0x4f402f[_0x478164(0x25c)]['errors']['length'];_0x5adf88++){_0x3d10b0[_0x478164(0x218e)]({'title':_0x4f402f[_0x478164(0x25c)][_0x478164(0x1a7c)][_0x5adf88][_0x478164(0x66a)],'msg':_0x4f402f[_0x478164(0x25c)][_0x478164(0x1a7c)][_0x5adf88]['message']});}}else _0x3d10b0['error']({'title':_0x4f402f[_0x478164(0x291)]?_0x478164(0xeb9)+_0x4f402f[_0x478164(0x291)]+_0x478164(0x1657)+_0x4f402f[_0x478164(0xc22)]:_0x478164(0xf5b),'msg':_0x4f402f[_0x478164(0x25c)]?JSON[_0x478164(0x2701)](_0x4f402f[_0x478164(0x25c)][_0x478164(0x155e)]):_0x4f402f[_0x478164(0x155e)]||_0x4f402f[_0x478164(0x147f)]()});});}function _0x2e10d7(){const _0xe8ec80=_0x14654d,_0x5b3f01=angular[_0xe8ec80(0x17fe)](_0x44d787[_0xe8ec80(0x1703)]);return _0x44d787[_0xe8ec80(0x1703)]=[],_0x5b3f01;}function _0x8e2c18(_0x3bf97b){const _0x434a67=_0x14654d,_0x51136b=_0x364812[_0x434a67(0x1551)]()[_0x434a67(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20odbcs?')[_0x434a67(0x49e)](''+_0x44d787[_0x434a67(0x1703)][_0x434a67(0xfd0)]+_0x434a67(0x1d6c)+_0x434a67(0x1b6))['ariaLabel'](_0x434a67(0x1de))[_0x434a67(0x728)](_0x3bf97b)['ok']('OK')['cancel']('CANCEL');_0x364812['show'](_0x51136b)[_0x434a67(0x1cb0)](function(){const _0x2405e1=_0x434a67;_0x44d787[_0x2405e1(0x1703)][_0x2405e1(0xf90)](function(_0x431ec4){_0x47c29b(_0x431ec4);}),_0x44d787[_0x2405e1(0x1703)]=[];});}function _0x31962f(){const _0x720b26=_0x14654d;_0x44d787[_0x720b26(0x1703)]=[];}function _0x189cd6(){const _0x55d894=_0x14654d;_0x44d787['selectedODBC']=_0x44d787[_0x55d894(0x97b)][_0x55d894(0x2214)];}}const _0x1abad5=_0x3aa650;;_0x296bf1[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0xc66),_0x5537c6(0x562),'api',_0x5537c6(0x1774),'license',_0x5537c6(0x9ca),'crudPermissions'];function _0x296bf1(_0x409770,_0x43162c,_0x311906,_0x4988fd,_0x65b66b,_0x5e0693,_0x36bcb6,_0x86cade,_0x2670ba,_0x3f2413,_0x78f0f2,_0x3a80f7,_0x3e3644,_0x1f329b){const _0x24fb21=_0x5537c6,_0x2eeabb=this;_0x2eeabb[_0x24fb21(0xe76)]=_0x78f0f2['getCurrentUser'](),_0x2eeabb[_0x24fb21(0x1a7c)]=[],_0x2eeabb[_0x24fb21(0x9ca)]=_0x3e3644,_0x2eeabb[_0x24fb21(0x8a5)]=_0x3a80f7,_0x2eeabb[_0x24fb21(0x1b1a)]=_0x1f329b,_0x2eeabb[_0x24fb21(0xf4c)]={},_0x2eeabb['passwordPattern']=_0x2eeabb[_0x24fb21(0x9ca)]&&_0x2eeabb['setting'][_0x24fb21(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2eeabb[_0x24fb21(0x1386)]=_0x24fb21(0x1ee2),_0x2eeabb['squareRecording']=angular[_0x24fb21(0x17fe)](_0x2670ba),_0x2eeabb['squareRecordings']=_0x86cade,_0x2eeabb[_0x24fb21(0x1cda)]=![];!_0x2eeabb[_0x24fb21(0x562)]&&(_0x2eeabb['squareRecording']={},_0x2eeabb[_0x24fb21(0x1386)]=_0x24fb21(0x450),_0x2eeabb[_0x24fb21(0x1cda)]=!![]);_0x2eeabb[_0x24fb21(0xb17)]=_0x4ca18c,_0x2eeabb[_0x24fb21(0xa6d)]=_0x32a9cd,_0x2eeabb[_0x24fb21(0xbd8)]=_0x44121f,_0x2eeabb[_0x24fb21(0x2c4)]=_0x44276d,_0x2eeabb['closeDialog']=_0x2f8fa2;function _0x4ca18c(){const _0xfb5f69=_0x24fb21;_0x2eeabb[_0xfb5f69(0x1a7c)]=[],_0x3f2413[_0xfb5f69(0x562)][_0xfb5f69(0x1c3f)](_0x2eeabb[_0xfb5f69(0x562)])['$promise'][_0xfb5f69(0x1cb0)](function(_0x376ba1){const _0x26f232=_0xfb5f69;_0x2eeabb[_0x26f232(0xc66)][_0x26f232(0xf63)](_0x376ba1[_0x26f232(0x19b2)]()),_0x36bcb6[_0x26f232(0x829)]({'title':_0x26f232(0x1b18),'msg':_0x2eeabb['squareRecording'][_0x26f232(0x16b6)]?_0x2eeabb[_0x26f232(0x562)][_0x26f232(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x2f8fa2(_0x376ba1);})[_0xfb5f69(0x1c4)](function(_0x58b313){const _0x54b725=_0xfb5f69;if(_0x58b313[_0x54b725(0x25c)]&&_0x58b313['data']['errors']&&_0x58b313[_0x54b725(0x25c)][_0x54b725(0x1a7c)]['length']){_0x2eeabb[_0x54b725(0x1a7c)]=_0x58b313[_0x54b725(0x25c)]['errors']||[{'message':_0x58b313[_0x54b725(0x147f)](),'type':'api.squareRecording.save'}];for(let _0x447a80=0x0;_0x447a80<_0x58b313[_0x54b725(0x25c)]['errors'][_0x54b725(0xfd0)];_0x447a80+=0x1){_0x36bcb6[_0x54b725(0x218e)]({'title':_0x58b313[_0x54b725(0x25c)][_0x54b725(0x1a7c)][_0x447a80][_0x54b725(0x66a)],'msg':_0x58b313[_0x54b725(0x25c)][_0x54b725(0x1a7c)][_0x447a80][_0x54b725(0x155e)]});}}else _0x36bcb6[_0x54b725(0x218e)]({'title':_0x58b313[_0x54b725(0x291)]?_0x54b725(0xeb9)+_0x58b313[_0x54b725(0x291)]+'\x20-\x20'+_0x58b313[_0x54b725(0xc22)]:_0x54b725(0x970),'msg':_0x58b313['data']?JSON['stringify'](_0x58b313[_0x54b725(0x25c)]['message']):_0x58b313[_0x54b725(0x147f)]()});});}function _0x32a9cd(){const _0x3e4bfd=_0x24fb21;_0x2eeabb[_0x3e4bfd(0x1a7c)]=[],_0x3f2413['squareRecording'][_0x3e4bfd(0x687)]({'id':_0x2eeabb[_0x3e4bfd(0x562)]['id']},_0x2eeabb[_0x3e4bfd(0x562)])[_0x3e4bfd(0x1d77)][_0x3e4bfd(0x1cb0)](function(_0x5882b1){const _0x36a649=_0x3e4bfd,_0x5ee1af=_0x39641b()['find'](_0x2eeabb[_0x36a649(0xc66)],{'id':_0x5882b1['id']});_0x5ee1af&&_0x39641b()['merge'](_0x5ee1af,_0x39641b()['pick'](_0x5882b1[_0x36a649(0x19b2)](),_0x39641b()[_0x36a649(0x1be5)](_0x5ee1af))),_0x36bcb6[_0x36a649(0x829)]({'title':_0x36a649(0x293e),'msg':_0x2eeabb['squareRecording'][_0x36a649(0x16b6)]?_0x2eeabb['squareRecording'][_0x36a649(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x2f8fa2(_0x5882b1);})['catch'](function(_0x18da8d){const _0x10ea1b=_0x3e4bfd;if(_0x18da8d['data']&&_0x18da8d[_0x10ea1b(0x25c)][_0x10ea1b(0x1a7c)]&&_0x18da8d[_0x10ea1b(0x25c)][_0x10ea1b(0x1a7c)][_0x10ea1b(0xfd0)]){_0x2eeabb[_0x10ea1b(0x1a7c)]=_0x18da8d[_0x10ea1b(0x25c)][_0x10ea1b(0x1a7c)]||[{'message':_0x18da8d['toString'](),'type':_0x10ea1b(0x15f6)}];for(let _0x200ed1=0x0;_0x200ed1<_0x18da8d[_0x10ea1b(0x25c)]['errors'][_0x10ea1b(0xfd0)];_0x200ed1++){_0x36bcb6[_0x10ea1b(0x218e)]({'title':_0x18da8d[_0x10ea1b(0x25c)][_0x10ea1b(0x1a7c)][_0x200ed1][_0x10ea1b(0x66a)],'msg':_0x18da8d['data'][_0x10ea1b(0x1a7c)][_0x200ed1]['message']});}}else _0x36bcb6[_0x10ea1b(0x218e)]({'title':_0x18da8d['status']?_0x10ea1b(0xeb9)+_0x18da8d[_0x10ea1b(0x291)]+_0x10ea1b(0x1657)+_0x18da8d['statusText']:_0x10ea1b(0x15f6),'msg':_0x18da8d[_0x10ea1b(0x25c)]?JSON[_0x10ea1b(0x2701)](_0x18da8d[_0x10ea1b(0x25c)][_0x10ea1b(0x155e)]):_0x18da8d[_0x10ea1b(0x147f)]()});});}function _0x44121f(_0x505ec1){const _0x3c08bd=_0x24fb21;_0x2eeabb[_0x3c08bd(0x1a7c)]=[];const _0x5d9bd6=_0x4988fd[_0x3c08bd(0x1551)]()[_0x3c08bd(0x1386)]('Are\x20you\x20sure?')[_0x3c08bd(0x862)](_0x3c08bd(0x168e))[_0x3c08bd(0x15ad)](_0x3c08bd(0x10ba))['ok'](_0x3c08bd(0x2594))[_0x3c08bd(0x696)](_0x3c08bd(0xde1))['targetEvent'](_0x505ec1);_0x4988fd['show'](_0x5d9bd6)[_0x3c08bd(0x1cb0)](function(){const _0x4a1532=_0x3c08bd;_0x3f2413[_0x4a1532(0x562)][_0x4a1532(0x111d)]({'id':_0x2eeabb[_0x4a1532(0x562)]['id']})['$promise'][_0x4a1532(0x1cb0)](function(){const _0x117a32=_0x4a1532;_0x39641b()['remove'](_0x2eeabb[_0x117a32(0xc66)],{'id':_0x2eeabb[_0x117a32(0x562)]['id']}),_0x36bcb6['success']({'title':'SquareRecording\x20properly\x20deleted!','msg':(_0x2eeabb['squareRecording'][_0x117a32(0x16b6)]||'squareRecording')+_0x117a32(0x3f5)}),_0x2f8fa2(_0x2eeabb['squareRecording']);})['catch'](function(_0x9f31fb){const _0x54376e=_0x4a1532;if(_0x9f31fb[_0x54376e(0x25c)]&&_0x9f31fb['data'][_0x54376e(0x1a7c)]&&_0x9f31fb[_0x54376e(0x25c)][_0x54376e(0x1a7c)][_0x54376e(0xfd0)]){_0x2eeabb[_0x54376e(0x1a7c)]=_0x9f31fb[_0x54376e(0x25c)][_0x54376e(0x1a7c)]||[{'message':_0x9f31fb['toString'](),'type':_0x54376e(0x2bc)}];for(let _0x3b4fcc=0x0;_0x3b4fcc<_0x9f31fb[_0x54376e(0x25c)][_0x54376e(0x1a7c)][_0x54376e(0xfd0)];_0x3b4fcc++){_0x36bcb6[_0x54376e(0x218e)]({'title':_0x9f31fb['data']['errors'][_0x3b4fcc]['type'],'msg':_0x9f31fb[_0x54376e(0x25c)][_0x54376e(0x1a7c)][_0x3b4fcc][_0x54376e(0x155e)]});}}else _0x36bcb6[_0x54376e(0x218e)]({'title':_0x9f31fb['status']?'API:'+_0x9f31fb[_0x54376e(0x291)]+_0x54376e(0x1657)+_0x9f31fb[_0x54376e(0xc22)]:_0x54376e(0x2bc),'msg':_0x9f31fb[_0x54376e(0x25c)]?JSON['stringify'](_0x9f31fb[_0x54376e(0x25c)][_0x54376e(0x155e)]):_0x9f31fb['message']||_0x9f31fb[_0x54376e(0x147f)]()});});},function(){});}function _0x44276d(_0x3b26bf){return _0x3b26bf===null?undefined:new Date(_0x3b26bf);}function _0x2f8fa2(_0x168968){const _0x3a665d=_0x24fb21;_0x4988fd[_0x3a665d(0x1426)](_0x168968);}}const _0x425d6d=_0x296bf1;;const _0x185e9f=_0x5074a3['p']+_0x5537c6(0x1174);;_0x481efb[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$window',_0x5537c6(0x406),'$mdSidenav','$mdDialog','$document','$timeout',_0x5537c6(0x1ae),_0x5537c6(0xc66),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),'msUtils',_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x481efb(_0x1e8bed,_0x224fba,_0x407509,_0x14570c,_0x5e2ecd,_0x124e9a,_0xb760a2,_0x56d23d,_0x49b42c,_0x1e2a58,_0x1b51d6,_0x59091f,_0x332563,_0x18e3b6,_0x5c112,_0x1cf343,_0x3f0df2){const _0x3e5e3e=_0x5537c6,_0x2e1319=this;_0x2e1319[_0x3e5e3e(0x8a5)]=_0x1cf343,_0x2e1319[_0x3e5e3e(0x9ca)]=_0x3f0df2,_0x2e1319[_0x3e5e3e(0xe76)]=_0x5c112['getCurrentUser'](),_0x2e1319[_0x3e5e3e(0xc66)]=_0x49b42c||{'count':0x0,'rows':[]},_0x2e1319[_0x3e5e3e(0x44a)]=_0x1e2a58,_0x2e1319[_0x3e5e3e(0x2199)]=_0x1b51d6&&_0x1b51d6[_0x3e5e3e(0x184d)]==0x1?_0x1b51d6[_0x3e5e3e(0x2214)][0x0]:null,_0x2e1319['crudPermissions']=_0x5c112[_0x3e5e3e(0x14ea)](_0x2e1319[_0x3e5e3e(0x2199)]?_0x2e1319[_0x3e5e3e(0x2199)][_0x3e5e3e(0x1b1a)]:null),_0x2e1319['table']=_0x3e5e3e(0xc66),_0x2e1319['listOrder']='',_0x2e1319[_0x3e5e3e(0x1cdf)]=null,_0x2e1319[_0x3e5e3e(0x26ab)]=[],_0x2e1319[_0x3e5e3e(0xae2)]={'fields':_0x3e5e3e(0x1d7b),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x2e1319[_0x3e5e3e(0x1610)]=_0x5afefe,_0x2e1319[_0x3e5e3e(0x27fe)]=_0x314a6e,_0x2e1319[_0x3e5e3e(0x829)]=_0x1c71e6,_0x2e1319[_0x3e5e3e(0x28d7)]=_0x1b000b,_0x2e1319[_0x3e5e3e(0x1868)]=_0x339686,_0x2e1319[_0x3e5e3e(0xbd8)]=_0x2d9527,_0x2e1319['exportSelectedSquareRecordings']=_0x58ce9c,_0x2e1319[_0x3e5e3e(0x827)]=_0xe45702,_0x2e1319['deselectSquareRecordings']=_0x531903,_0x2e1319[_0x3e5e3e(0x1855)]=_0x2669d2;function _0x5afefe(_0x41eeba){const _0x472ed4=_0x3e5e3e;return _0x59091f[_0x472ed4(0x562)][_0x472ed4(0x26ec)]({'id':_0x41eeba['id']})[_0x472ed4(0x1d77)]['then'](function(_0x3b7d5d){const _0x122f9e=_0x472ed4,_0x5dceca=[_0x3b7d5d[_0x122f9e(0xef0)]];let _0x314dfa=_0x122f9e(0x26ec);const _0xcbb78b=new Blob(_0x5dceca,{'type':_0x3b7d5d[_0x122f9e(0x66a)]});_0x314dfa=_0x41eeba['uniqueid']+_0x41eeba[_0x122f9e(0x1f31)];const _0x70de62=window[_0x122f9e(0x1db8)][_0x122f9e(0x8c6)]('a');_0x70de62[_0x122f9e(0x23b9)](_0x122f9e(0x105b),URL['createObjectURL'](_0xcbb78b)),_0x70de62[_0x122f9e(0x23b9)](_0x122f9e(0x26ec),_0x314dfa),document['body'][_0x122f9e(0x23de)](_0x70de62),_0x70de62['click']();})[_0x472ed4(0x1c4)](function(_0x3d6383){const _0x32dabe=_0x472ed4;if(_0x3d6383[_0x32dabe(0x25c)]&&_0x3d6383[_0x32dabe(0x25c)][_0x32dabe(0x1a7c)]&&_0x3d6383[_0x32dabe(0x25c)][_0x32dabe(0x1a7c)]['length'])for(let _0x4ca511=0x0;_0x4ca511<_0x3d6383[_0x32dabe(0x25c)][_0x32dabe(0x1a7c)][_0x32dabe(0xfd0)];_0x4ca511++){_0x18e3b6[_0x32dabe(0x218e)]({'title':_0x3d6383['data'][_0x32dabe(0x1a7c)][_0x4ca511][_0x32dabe(0x66a)],'msg':_0x3d6383[_0x32dabe(0x25c)]['errors'][_0x4ca511][_0x32dabe(0x155e)]});}else _0x18e3b6[_0x32dabe(0x218e)]({'title':_0x3d6383[_0x32dabe(0x291)]?_0x32dabe(0xeb9)+_0x3d6383[_0x32dabe(0x291)]+'\x20-\x20'+_0x3d6383[_0x32dabe(0xc22)]:_0x32dabe(0x970),'msg':_0x3d6383[_0x32dabe(0x25c)]?JSON[_0x32dabe(0x2701)](_0x3d6383['data']['message']):_0x3d6383['toString']()});});}function _0x314a6e(_0x494937,_0x42fa10){const _0x2c2d7b=_0x3e5e3e,_0x30949b=_0x5e2ecd[_0x2c2d7b(0x1551)]()[_0x2c2d7b(0x1386)](_0x2c2d7b(0x140b)+_0x39641b()[_0x2c2d7b(0xa75)](_0x2c2d7b(0x562))+'?')[_0x2c2d7b(0x49e)](''+(_0x494937['name']||'squareRecording')+_0x2c2d7b(0x1200)+_0x2c2d7b(0x1b6))[_0x2c2d7b(0x15ad)](_0x2c2d7b(0x750))['targetEvent'](_0x42fa10)['ok']('OK')['cancel'](_0x2c2d7b(0x24ba));_0x5e2ecd[_0x2c2d7b(0xe27)](_0x30949b)[_0x2c2d7b(0x1cb0)](function(){_0x2d9527(_0x494937);},function(){const _0xa8bfe1=_0x2c2d7b;console[_0xa8bfe1(0x1b4f)]('CANCEL');});}let _0x3db03c=!![],_0x14e758=0x1;_0x1e8bed[_0x3e5e3e(0x614)](_0x3e5e3e(0x957),function(_0x3bf5b1,_0x562c14){const _0x31c5d9=_0x3e5e3e;_0x3db03c?_0xb760a2(function(){_0x3db03c=![];}):(!_0x562c14&&(_0x14e758=_0x2e1319[_0x31c5d9(0xae2)][_0x31c5d9(0x1c7b)]),_0x3bf5b1!==_0x562c14&&(_0x2e1319[_0x31c5d9(0xae2)][_0x31c5d9(0x1c7b)]=0x1),!_0x3bf5b1&&(_0x2e1319['query'][_0x31c5d9(0x1c7b)]=_0x14e758),_0x2e1319['getSquareRecordings']());});function _0x1c71e6(_0x43e281){const _0x425c31=_0x3e5e3e;_0x2e1319[_0x425c31(0xc66)]=_0x43e281||{'count':0x0,'rows':[]};}function _0x1b000b(){const _0x59fa75=_0x3e5e3e;_0x2e1319[_0x59fa75(0xae2)][_0x59fa75(0x184b)]=(_0x2e1319[_0x59fa75(0xae2)][_0x59fa75(0x1c7b)]-0x1)*_0x2e1319[_0x59fa75(0xae2)][_0x59fa75(0x236)],_0x5c112[_0x59fa75(0x22b6)](_0x59fa75(0x1c60))?_0x2e1319[_0x59fa75(0x2061)]=_0x59091f[_0x59fa75(0x562)]['get'](_0x2e1319[_0x59fa75(0xae2)],_0x1c71e6)[_0x59fa75(0x1d77)]:(_0x2e1319[_0x59fa75(0xae2)]['id']=_0x2e1319[_0x59fa75(0x44a)]['id'],_0x2e1319[_0x59fa75(0xae2)][_0x59fa75(0x1f74)]=_0x59fa75(0x1376),_0x2e1319[_0x59fa75(0x2061)]=_0x59091f[_0x59fa75(0x44a)][_0x59fa75(0x1810)](_0x2e1319[_0x59fa75(0xae2)],_0x1c71e6)['$promise']);}function _0x339686(_0x572b80,_0x371243){const _0x185245=_0x3e5e3e;_0x5e2ecd['show']({'controller':'CreateOrEditSquareRecordingDialogController','controllerAs':'vm','templateUrl':_0x185e9f,'parent':angular[_0x185245(0x1853)](_0x124e9a[_0x185245(0x1ed9)]),'targetEvent':_0x572b80,'clickOutsideToClose':!![],'locals':{'squareRecording':_0x371243,'squareRecordings':_0x2e1319[_0x185245(0xc66)][_0x185245(0x2214)],'license':_0x2e1319['license'],'setting':_0x2e1319['setting'],'crudPermissions':_0x2e1319[_0x185245(0x1b1a)]}});}function _0x2d9527(_0x4c409f){const _0x4ddecf=_0x3e5e3e;_0x59091f['squareRecording'][_0x4ddecf(0x111d)]({'id':_0x4c409f['id']})['$promise']['then'](function(){const _0xfff894=_0x4ddecf;_0x39641b()[_0xfff894(0x152a)](_0x2e1319[_0xfff894(0xc66)][_0xfff894(0x2214)],{'id':_0x4c409f['id']}),_0x2e1319[_0xfff894(0xc66)][_0xfff894(0x184d)]-=0x1,!_0x2e1319[_0xfff894(0xc66)][_0xfff894(0x2214)][_0xfff894(0xfd0)]&&_0x2e1319[_0xfff894(0x28d7)](),_0x18e3b6[_0xfff894(0x829)]({'title':_0x39641b()[_0xfff894(0xa75)](_0xfff894(0x955))+_0xfff894(0x2663),'msg':_0x4c409f['name']?_0x4c409f['name']+'\x20has\x20been\x20deleted!':''});})[_0x4ddecf(0x1c4)](function(_0x34e01f){const _0x125d1c=_0x4ddecf;if(_0x34e01f[_0x125d1c(0x25c)]&&_0x34e01f[_0x125d1c(0x25c)][_0x125d1c(0x1a7c)]&&_0x34e01f[_0x125d1c(0x25c)][_0x125d1c(0x1a7c)][_0x125d1c(0xfd0)]){_0x2e1319[_0x125d1c(0x1a7c)]=_0x34e01f[_0x125d1c(0x25c)][_0x125d1c(0x1a7c)]||[{'message':_0x34e01f[_0x125d1c(0x147f)](),'type':'SYSTEM:DELETEsquareRecording'}];for(let _0xc3d918=0x0;_0xc3d918<_0x34e01f[_0x125d1c(0x25c)][_0x125d1c(0x1a7c)][_0x125d1c(0xfd0)];_0xc3d918++){_0x18e3b6[_0x125d1c(0x218e)]({'title':_0x34e01f[_0x125d1c(0x25c)][_0x125d1c(0x1a7c)][_0xc3d918][_0x125d1c(0x66a)],'msg':_0x34e01f[_0x125d1c(0x25c)][_0x125d1c(0x1a7c)][_0xc3d918]['message']});}}else _0x18e3b6[_0x125d1c(0x218e)]({'title':_0x34e01f['status']?'API:'+_0x34e01f[_0x125d1c(0x291)]+_0x125d1c(0x1657)+_0x34e01f['statusText']:_0x125d1c(0x7fb),'msg':_0x34e01f[_0x125d1c(0x25c)]?JSON[_0x125d1c(0x2701)](_0x34e01f[_0x125d1c(0x25c)][_0x125d1c(0x155e)]):_0x34e01f[_0x125d1c(0x155e)]||_0x34e01f['toString']()});});}function _0x58ce9c(){const _0x5107b4=_0x3e5e3e,_0x367489=angular[_0x5107b4(0x17fe)](_0x2e1319[_0x5107b4(0x26ab)]);return _0x2e1319[_0x5107b4(0x26ab)]=[],_0x367489;}function _0xe45702(_0x4a213e){const _0x40cfcb=_0x3e5e3e,_0x77cf60=_0x5e2ecd['confirm']()['title'](_0x40cfcb(0x269d))[_0x40cfcb(0x49e)](''+_0x2e1319[_0x40cfcb(0x26ab)][_0x40cfcb(0xfd0)]+_0x40cfcb(0x1d6c)+_0x40cfcb(0x1b6))[_0x40cfcb(0x15ad)](_0x40cfcb(0xf13))['targetEvent'](_0x4a213e)['ok']('OK')[_0x40cfcb(0x696)]('CANCEL');_0x5e2ecd[_0x40cfcb(0xe27)](_0x77cf60)[_0x40cfcb(0x1cb0)](function(){const _0x11015b=_0x40cfcb;_0x2e1319[_0x11015b(0x26ab)][_0x11015b(0xf90)](function(_0x51d627){_0x2d9527(_0x51d627);}),_0x2e1319[_0x11015b(0x26ab)]=[];});}function _0x531903(){const _0x1659db=_0x3e5e3e;_0x2e1319[_0x1659db(0x26ab)]=[];}function _0x2669d2(){const _0x7a197d=_0x3e5e3e;_0x2e1319[_0x7a197d(0x26ab)]=_0x2e1319[_0x7a197d(0xc66)][_0x7a197d(0x2214)];}}const _0x5cf4f7=_0x481efb;;_0x543c40[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6),_0x5537c6(0x1f2a)];function _0x543c40(_0xd3d76b,_0x27f4d2){const _0x5ceddf=_0x5537c6;_0xd3d76b[_0x5ceddf(0x27e0)](_0x5ceddf(0xec4),{'abstract':!![],'url':_0x5ceddf(0x12f7)})[_0x5ceddf(0x27e0)]('app.callysquare.odbcs',{'url':_0x5ceddf(0x34d),'views':{'content@app':{'templateUrl':_0x667349,'controller':_0x5ceddf(0x1652)}},'resolve':{'odbcs':['apiResolver',_0x5ceddf(0x1774),function(_0x433e7f,_0x28daad){const _0x321373=_0x5ceddf;return _0x28daad['hasRole']('admin')?_0x433e7f[_0x321373(0x19a3)](_0x321373(0x206a),{'fields':_0x321373(0x427),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x433e7f[_0x321373(0x19a3)](_0x321373(0x12da),{'id':_0x28daad[_0x321373(0x21e8)]()[_0x321373(0x13c1)],'section':'ODBC','fields':_0x321373(0x427),'sort':_0x321373(0x282),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5ceddf(0x1e0b),_0x5ceddf(0x1774),function(_0x137df2,_0x512764){const _0x1482c0=_0x5ceddf;return _0x512764[_0x1482c0(0x22b6)](_0x1482c0(0x1c60))?null:_0x137df2[_0x1482c0(0x19a3)](_0x1482c0(0x9ae),{'fields':'id,name,crudPermissions','id':_0x512764[_0x1482c0(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x5ceddf(0x1e0b),_0x5ceddf(0x1774),function(_0x551281,_0x3eea6c){const _0x12e44e=_0x5ceddf;return _0x3eea6c['hasRole']('admin')?null:_0x551281['resolve'](_0x12e44e(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3eea6c[_0x12e44e(0x21e8)]()[_0x12e44e(0x13c1)],'sectionId':0x44d});}]},'authenticate':!![],'permissionId':0x44d,'bodyClass':_0x5ceddf(0xe18)})[_0x5ceddf(0x27e0)](_0x5ceddf(0x29a5),{'url':_0x5ceddf(0x876),'views':{'content@app':{'templateUrl':_0x2b10fd,'controller':_0x5ceddf(0x1bf4)}},'resolve':{'squareRecordings':['apiResolver','Auth',function(_0x5a11d5,_0x454684){const _0x16194c=_0x5ceddf;return _0x454684[_0x16194c(0x22b6)]('admin')?_0x5a11d5[_0x16194c(0x19a3)]('squareRecording@get',{'fields':'createdAt,updatedAt,id,filename,projectName,uniqueid,callerid,extension,audio,savePath,format','sort':_0x16194c(0x282),'limit':0xa,'offset':0x0}):_0x5a11d5[_0x16194c(0x19a3)](_0x16194c(0x12da),{'id':_0x454684[_0x16194c(0x21e8)]()[_0x16194c(0x13c1)],'section':'SquareRecordings','fields':_0x16194c(0x1d7b),'sort':_0x16194c(0x282),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5ceddf(0x1e0b),'Auth',function(_0x199d32,_0x4f2416){const _0x5959f6=_0x5ceddf;return _0x4f2416[_0x5959f6(0x22b6)](_0x5959f6(0x1c60))?null:_0x199d32[_0x5959f6(0x19a3)]('userProfile@get',{'fields':_0x5959f6(0x279),'id':_0x4f2416[_0x5959f6(0x21e8)]()[_0x5959f6(0x13c1)]});}],'userProfileSection':[_0x5ceddf(0x1e0b),'Auth',function(_0x5551fa,_0x39ba1){const _0x17fe76=_0x5ceddf;return _0x39ba1[_0x17fe76(0x22b6)](_0x17fe76(0x1c60))?null:_0x5551fa[_0x17fe76(0x19a3)]('userProfileSection@get',{'fields':_0x17fe76(0x1f5f),'userProfileId':_0x39ba1[_0x17fe76(0x21e8)]()[_0x17fe76(0x13c1)],'sectionId':0x44e});}]},'authenticate':!![],'permissionId':0x44e,'bodyClass':'callysquare'}),_0x27f4d2['addPart']('app/main/apps/callysquare');}angular['module'](_0x5537c6(0xec4),[_0x5537c6(0x2770),_0x5537c6(0x2135),'md.data.table',_0x5537c6(0xacf),_0x5537c6(0x18f6),_0x5537c6(0xd19),'ng-sortable',_0x5537c6(0x2ec),_0x5537c6(0x1890),_0x5537c6(0x167d),'mwFormBuilder',_0x5537c6(0x1b65),'mwFormUtils',_0x5537c6(0x3b9),_0x5537c6(0x7c9),_0x5537c6(0xeb5),_0x5537c6(0x27af),_0x5537c6(0x13b6),_0x5537c6(0x1cbd),'angular.filter',_0x5537c6(0x74f)])['config'](_0x543c40)['controller']('CreateOrEditOdbcDialogController',_0x11104a)[_0x5537c6(0x6e5)](_0x5537c6(0x1d7e),_0x1abad5)[_0x5537c6(0x6e5)](_0x5537c6(0x1779),_0x425d6d)[_0x5537c6(0x6e5)]('SquareRecordingsController',_0x5cf4f7);;const _0x2fce49=_0x5074a3['p']+_0x5537c6(0x28e8);;const _0x4222e5=_0x5074a3['p']+'src/js/modules/main/apps/analytics/views/extractedReports/extractedReports.html/extractedReports.html';;const _0x377423=_0x5074a3['p']+_0x5537c6(0x1869);;const _0x595ee7=_0x5074a3['p']+_0x5537c6(0x124d);var _0x4a3dc7=_0x5074a3(0xd5a);;_0x3ede8d[_0x5537c6(0x15b6)]=[_0x5537c6(0x21c8),'$mdDialog','toasty','report',_0x5537c6(0x142b),_0x5537c6(0x217d),'treeCustomData'];function _0x3ede8d(_0x2479a7,_0x2597d8,_0x2c2a09,_0x4305f3,_0x280d12,_0x28cb49,_0x39fa20){const _0x41a7e5=_0x5537c6,_0x3575e7=this;_0x3575e7['errors']=[],_0x3575e7[_0x41a7e5(0x16bf)]=angular[_0x41a7e5(0x17fe)](_0x4305f3),_0x3575e7[_0x41a7e5(0x16bf)][_0x41a7e5(0x16b6)]+=_0x41a7e5(0x26aa),_0x3575e7[_0x41a7e5(0xc92)]=_0x39fa20,_0x3575e7['treeCustomConfig']={'core':{'multiple':![],'animation':!![],'error':function(_0x4fef44){const _0x524917=_0x41a7e5;console[_0x524917(0x218e)]('treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20'+angular['toJson'](_0x4fef44));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x41a7e5(0x522)]},_0x3575e7[_0x41a7e5(0x1333)]={'select_node':_0x2695ce},_0x3575e7[_0x41a7e5(0x221b)]=_0x403d2c,_0x3575e7['closeDialog']=_0x21bd31;function _0x403d2c(){const _0xfa6747=_0x41a7e5;_0x3575e7[_0xfa6747(0x1a7c)]=[];let _0x2a7344;_0x280d12[_0xfa6747(0x1e32)][_0xfa6747(0x1c3f)]({'name':_0x3575e7[_0xfa6747(0x16bf)][_0xfa6747(0x16b6)],'description':_0x3575e7[_0xfa6747(0x16bf)][_0xfa6747(0x2c1)],'table':_0x3575e7[_0xfa6747(0x16bf)][_0xfa6747(0xc83)],'conditions':_0x3575e7[_0xfa6747(0x16bf)][_0xfa6747(0x14dc)],'joins':_0x3575e7[_0xfa6747(0x16bf)][_0xfa6747(0x1c18)],'parent':_0x3575e7[_0xfa6747(0x622)]['id']})[_0xfa6747(0x1d77)][_0xfa6747(0x1cb0)](function(_0xffc3db){const _0x310339=_0xfa6747;_0x2a7344=_0xffc3db,_0x2c2a09[_0x310339(0x829)]({'title':'Report\x20properly\x20copied!','msg':_0x3575e7[_0x310339(0x16bf)][_0x310339(0x16b6)]?_0x3575e7[_0x310339(0x16bf)]['name']+'\x20has\x20been\x20copied!':''});const _0x16d600={'fields':_0x310339(0x298b),'nolimit':!![]};return _0x16d600[_0x28cb49==='analyticCustomReport'?_0x310339(0x251a):'DefaultReportId']=_0x3575e7[_0x310339(0x16bf)]['id'],_0x280d12[_0x310339(0x14c8)]['get'](_0x16d600)[_0x310339(0x1d77)];})[_0xfa6747(0x1cb0)](function(_0x496472){const _0x1aed15=_0xfa6747,_0x68d0c8=_0x39641b()[_0x1aed15(0x1de2)](_0x496472[_0x1aed15(0x2214)],function(_0x3417b6){return _0x39641b()['extend']({},_0x3417b6,{'CustomReportId':_0x2a7344['id']});});return _0x280d12[_0x1aed15(0x14c8)][_0x1aed15(0xb2a)](_0x68d0c8)[_0x1aed15(0x1d77)];})['then'](function(){const _0xe4d02d=_0xfa6747;_0x2c2a09[_0xe4d02d(0x829)]({'title':_0xe4d02d(0x24b4),'msg':_0xe4d02d(0x90d)}),_0x21bd31();})[_0xfa6747(0x1c4)](function(_0xc186b9){const _0x35c00d=_0xfa6747;_0x2c2a09[_0x35c00d(0x218e)]({'title':_0xc186b9[_0x35c00d(0x291)]?_0x35c00d(0xeb9)+_0xc186b9[_0x35c00d(0x291)]+_0x35c00d(0x1657)+_0xc186b9[_0x35c00d(0xc22)]:'SYSTEM:COPYREPORT','msg':_0xc186b9['data']?JSON[_0x35c00d(0x2701)](_0xc186b9['data'][_0x35c00d(0x155e)]):_0xc186b9[_0x35c00d(0x147f)]()});});}function _0x2695ce(_0x25065d,_0x3c1794){const _0x59b197=_0x41a7e5;_0x3575e7['currentNode']=_0x3c1794[_0x59b197(0x2013)];}function _0x21bd31(){const _0x224bb3=_0x41a7e5;_0x2597d8[_0x224bb3(0x1426)]();}}const _0x11e00b=_0x3ede8d;;_0x5998d7[_0x5537c6(0x15b6)]=['$location',_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0x2318),_0x5537c6(0x16bf),_0x5537c6(0x142b),'apiName','currentNode',_0x5537c6(0xfc2),_0x5537c6(0x1b1a)];function _0x5998d7(_0x59f979,_0x3182f1,_0x2c20a7,_0x1dc65e,_0x180f80,_0x2e658a,_0x50ffca,_0x4a1ffe,_0x1120f0,_0x46fa37){const _0x3ad621=_0x5537c6,_0x124853=this;_0x124853[_0x3ad621(0x1a7c)]=[],_0x124853['joinTables']=[],_0x124853[_0x3ad621(0x1386)]=_0x3ad621(0xfa0),_0x124853[_0x3ad621(0x1b1a)]=_0x46fa37,_0x124853['report']=angular[_0x3ad621(0x17fe)](_0x180f80),_0x124853[_0x3ad621(0x2318)]=_0x1dc65e,_0x124853[_0x3ad621(0x12c1)]=![],_0x124853[_0x3ad621(0x225a)]=_0x1120f0[_0x3ad621(0xc80)](),_0x124853[_0x3ad621(0x28e6)]=[{'key':_0x3ad621(0x1f66),'value':_0x3ad621(0x4f6)},{'key':_0x3ad621(0x1f88),'value':_0x3ad621(0xe9c)},{'key':'right_join','value':_0x3ad621(0xaf5)},{'key':_0x3ad621(0x1a56),'value':_0x3ad621(0x13f1)}];!_0x124853['report']&&(_0x124853['report']={'name':'','table':_0x3ad621(0x112a),'description':'','parent':_0x4a1ffe['id']},_0x124853[_0x3ad621(0x1386)]=_0x3ad621(0x16d5),_0x124853[_0x3ad621(0x12c1)]=!![]);_0x124853[_0x3ad621(0x18d6)]=_0x2fefa0,_0x124853[_0x3ad621(0x2502)]=_0x180425,_0x124853['deleteReport']=_0x472521,_0x124853[_0x3ad621(0xda0)]=_0x5f1eda,_0x124853[_0x3ad621(0x564)]=_0x4faa72,_0x124853['removeJoin']=_0x570acd,_0x124853[_0x3ad621(0xc84)]=_0x5ce75b;function _0x570acd(_0x358b7a){const _0x3db934=_0x3ad621;_0x124853[_0x3db934(0x1f0d)][_0x3db934(0x159c)](_0x358b7a,0x1);}function _0x5ce75b(_0x301f14,_0x587250,_0x3b3d8f){const _0x20ecc2=_0x3ad621,_0x28a553=_0x39641b()[_0x20ecc2(0x13b4)](_0x124853[_0x20ecc2(0x225a)],{'name':_0x3b3d8f});_0x28a553&&_0x28a553['api']&&_0x2e658a[_0x28a553[_0x20ecc2(0x142b)]][_0x20ecc2(0x1e57)]()[_0x20ecc2(0x1d77)]['then'](function(_0x1a49b0){const _0x4254f1=_0x20ecc2;_0x301f14[_0x587250]=_0x39641b()[_0x4254f1(0x91f)](_0x39641b()[_0x4254f1(0x1be5)](_0x1a49b0),['$promise',_0x4254f1(0x248e)]);})['catch'](function(_0x58ad3d){const _0xc38523=_0x20ecc2;console[_0xc38523(0x218e)](_0x58ad3d);});}function _0x4faa72(_0x563854){const _0x269103=_0x3ad621;_0x563854&&(delete _0x124853[_0x269103(0x5fa)],_0x124853[_0x269103(0x1f0d)][_0x269103(0x2785)](_0x563854));}function _0x2fefa0(){const _0x531997=_0x3ad621;_0x124853[_0x531997(0x1a7c)]=[],_0x124853['report']['joins']=_0x39641b()['map'](_0x124853[_0x531997(0x1f0d)]||[],function(_0x2fd8c2){const _0x5956cb=_0x531997;return{'parentKey':_0x2fd8c2[_0x5956cb(0x550)],'foreignTable':_0x2fd8c2[_0x5956cb(0x16b6)],'foreignKey':_0x2fd8c2[_0x5956cb(0x2294)],'type':_0x2fd8c2[_0x5956cb(0x66a)][_0x5956cb(0x1680)]()};}),_0x124853['report'][_0x531997(0x1c18)]=JSON['stringify'](_0x124853[_0x531997(0x16bf)]['joins']),_0x2e658a[_0x50ffca][_0x531997(0x1c3f)](_0x124853[_0x531997(0x16bf)])[_0x531997(0x1d77)][_0x531997(0x1cb0)](function(_0x49ccfc){const _0x35e61=_0x531997;_0x124853['reports'][_0x35e61(0xf63)](_0x49ccfc),_0x2c20a7[_0x35e61(0x829)]({'title':_0x35e61(0x1d47),'msg':_0x124853[_0x35e61(0x16bf)][_0x35e61(0x16b6)]?_0x124853[_0x35e61(0x16bf)][_0x35e61(0x16b6)]+_0x35e61(0x470):''}),_0x5f1eda();})[_0x531997(0x1c4)](function(_0xc99a09){const _0x1612d4=_0x531997;if(_0xc99a09['data']&&_0xc99a09[_0x1612d4(0x25c)]['errors']&&_0xc99a09[_0x1612d4(0x25c)][_0x1612d4(0x1a7c)][_0x1612d4(0xfd0)]){_0x124853[_0x1612d4(0x1a7c)]=_0xc99a09[_0x1612d4(0x25c)]['errors']||[{'message':_0xc99a09['toString'](),'type':_0x1612d4(0x1731)}];for(let _0x23049b=0x0;_0x23049b<_0xc99a09['data'][_0x1612d4(0x1a7c)][_0x1612d4(0xfd0)];_0x23049b++){_0x2c20a7[_0x1612d4(0x218e)]({'title':_0xc99a09[_0x1612d4(0x25c)]['errors'][_0x23049b][_0x1612d4(0x66a)],'msg':_0xc99a09[_0x1612d4(0x25c)][_0x1612d4(0x1a7c)][_0x23049b][_0x1612d4(0x155e)]});}}else _0x2c20a7['error']({'title':_0xc99a09[_0x1612d4(0x291)]?'API:'+_0xc99a09[_0x1612d4(0x291)]+'\x20-\x20'+_0xc99a09[_0x1612d4(0xc22)]:_0x1612d4(0x1731),'msg':_0xc99a09[_0x1612d4(0x25c)]?JSON[_0x1612d4(0x2701)](_0xc99a09[_0x1612d4(0x25c)][_0x1612d4(0x155e)]):_0xc99a09[_0x1612d4(0x147f)]()});});}function _0x180425(){const _0x1196b1=_0x3ad621;_0x124853[_0x1196b1(0x1a7c)]=[],_0x2e658a[_0x50ffca]['update']({'id':_0x124853[_0x1196b1(0x16bf)]['id']},_0x124853[_0x1196b1(0x16bf)])[_0x1196b1(0x1d77)]['then'](function(_0x1036f0){const _0x3adbd1=_0x1196b1,_0x35255c=_0x39641b()['find'](_0x124853[_0x3adbd1(0x2318)],{'id':_0x1036f0['id']});_0x35255c&&_0x39641b()[_0x3adbd1(0x9c1)](_0x35255c,_0x1036f0),_0x2c20a7[_0x3adbd1(0x829)]({'title':'Report\x20properly\x20saved!','msg':_0x124853[_0x3adbd1(0x16bf)]['name']?_0x124853[_0x3adbd1(0x16bf)]['name']+_0x3adbd1(0xedb):''}),_0x5f1eda();})[_0x1196b1(0x1c4)](function(_0x2b2fb2){const _0xc8446e=_0x1196b1;if(_0x2b2fb2['data']&&_0x2b2fb2['data'][_0xc8446e(0x1a7c)]&&_0x2b2fb2[_0xc8446e(0x25c)]['errors']['length']){_0x124853['errors']=_0x2b2fb2[_0xc8446e(0x25c)]['errors']||[{'message':_0x2b2fb2[_0xc8446e(0x147f)](),'type':_0xc8446e(0x1648)}];for(let _0x360432=0x0;_0x360432<_0x2b2fb2['data'][_0xc8446e(0x1a7c)][_0xc8446e(0xfd0)];_0x360432++){_0x2c20a7[_0xc8446e(0x218e)]({'title':_0x2b2fb2[_0xc8446e(0x25c)][_0xc8446e(0x1a7c)][_0x360432][_0xc8446e(0x66a)],'msg':_0x2b2fb2[_0xc8446e(0x25c)][_0xc8446e(0x1a7c)][_0x360432][_0xc8446e(0x155e)]});}}else _0x2c20a7[_0xc8446e(0x218e)]({'title':_0x2b2fb2['status']?_0xc8446e(0xeb9)+_0x2b2fb2[_0xc8446e(0x291)]+_0xc8446e(0x1657)+_0x2b2fb2[_0xc8446e(0xc22)]:_0xc8446e(0x1648),'msg':_0x2b2fb2[_0xc8446e(0x25c)]?JSON[_0xc8446e(0x2701)](_0x2b2fb2[_0xc8446e(0x25c)][_0xc8446e(0x155e)]):_0x2b2fb2[_0xc8446e(0x147f)]()});});}function _0x472521(){const _0x59ca52=_0x3ad621;_0x124853['errors']=[];const _0xf30668=_0x3182f1['confirm']()[_0x59ca52(0x1386)](_0x59ca52(0x1a2e))[_0x59ca52(0x862)](_0x59ca52(0x5a7))['ariaLabel'](_0x59ca52(0x7fa))['ok']('Delete')['cancel'](_0x59ca52(0xde1))[_0x59ca52(0x728)](event);_0x3182f1[_0x59ca52(0xe27)](_0xf30668)[_0x59ca52(0x1cb0)](function(){const _0x265d02=_0x59ca52;_0x2e658a[_0x50ffca][_0x265d02(0x111d)]({'id':_0x124853[_0x265d02(0x16bf)]['id']})[_0x265d02(0x1d77)][_0x265d02(0x1cb0)](function(){const _0x57d96a=_0x265d02;_0x39641b()[_0x57d96a(0x152a)](_0x124853[_0x57d96a(0x2318)],{'id':_0x124853[_0x57d96a(0x16bf)]['id']}),_0x2c20a7['success']({'title':_0x57d96a(0x16f3),'msg':_0x124853[_0x57d96a(0x16bf)][_0x57d96a(0x16b6)]?_0x124853[_0x57d96a(0x16bf)][_0x57d96a(0x16b6)]+_0x57d96a(0x3f5):''}),_0x5f1eda();})['catch'](function(_0x5bb255){const _0x425f14=_0x265d02;_0x124853['errors']=_0x5bb255['data']['errors']||[{'message':_0x5bb255[_0x425f14(0x147f)](),'type':_0x425f14(0x271c)}];});},function(){});}function _0x5f1eda(){const _0x2f46cb=_0x3ad621;_0x3182f1[_0x2f46cb(0x1426)]();}}const _0x4cbdc8=_0x5998d7;;_0x1295f9[_0x5537c6(0x15b6)]=['$mdDialog','describeTable','toasty',_0x5537c6(0xf6d)];function _0x1295f9(_0x514eee,_0x45c367,_0x22ee70,_0x2e64cc){const _0x367bde=_0x5537c6,_0x236c5a=this;_0x236c5a[_0x367bde(0x16bf)]={},_0x236c5a[_0x367bde(0x14dc)]=_0x2e64cc[_0x367bde(0x1c35)],_0x236c5a['init']=_0x5153ba,_0x236c5a[_0x367bde(0x1dc7)]=_0x4e3ecb,_0x236c5a[_0x367bde(0x28e3)]=_0x3a99da,_0x236c5a['deleteConfirm']=_0x46bd28,_0x236c5a[_0x367bde(0x1164)]=_0x213451;function _0x5153ba(_0x7bc4cb,_0x36ccc0){const _0x3c834a=_0x367bde;_0x236c5a['report']=_0x7bc4cb,_0x236c5a[_0x3c834a(0x16bf)][_0x3c834a(0x166c)]=angular['fromJson'](_0x7bc4cb['conditions'])||{'group':{'operator':'AND','rules':[]}},_0x236c5a[_0x3c834a(0x1b1a)]=typeof _0x36ccc0!==_0x3c834a(0x16b5)?_0x36ccc0:{'readOnly':!![],'canEdit':![],'canDelete':![]};for(let _0x1948fd=0x0;_0x1948fd<_0x236c5a[_0x3c834a(0x16bf)][_0x3c834a(0x166c)][_0x3c834a(0x716)]['rules'][_0x3c834a(0xfd0)];_0x1948fd++){if(_0x236c5a[_0x3c834a(0x16bf)][_0x3c834a(0x166c)][_0x3c834a(0x716)][_0x3c834a(0x1d60)][_0x1948fd][_0x3c834a(0x2198)]){const _0x51d269=_0x236c5a[_0x3c834a(0x16bf)][_0x3c834a(0x166c)][_0x3c834a(0x716)][_0x3c834a(0x1d60)][_0x1948fd][_0x3c834a(0x2198)][_0x3c834a(0xbe1)]('.');_0x51d269[_0x3c834a(0xfd0)]===0x1&&(_0x236c5a['report']['condition'][_0x3c834a(0x716)][_0x3c834a(0x1d60)][_0x1948fd][_0x3c834a(0x2198)]=_0x236c5a[_0x3c834a(0x16bf)][_0x3c834a(0xc83)]+'.'+_0x236c5a[_0x3c834a(0x16bf)][_0x3c834a(0x166c)][_0x3c834a(0x716)][_0x3c834a(0x1d60)][_0x1948fd][_0x3c834a(0x2198)]);}}_0x45c367[_0x3c834a(0x27b0)](_0x236c5a[_0x3c834a(0x16bf)][_0x3c834a(0xc83)])[_0x3c834a(0x1cb0)](function(_0x273c9a){const _0x4bf183=_0x3c834a;_0x236c5a[_0x4bf183(0x1b1)]=_0x39641b()[_0x4bf183(0x91f)](_0x39641b()[_0x4bf183(0x1be5)](_0x273c9a),[_0x4bf183(0x1d77),'$resolved',_0x4bf183(0x24cb),'updatedAt']);})[_0x3c834a(0x1c4)](function(_0x198c40){const _0x2e1f68=_0x3c834a;_0x22ee70[_0x2e1f68(0x218e)]({'title':_0x198c40[_0x2e1f68(0x291)]?'API:'+_0x198c40[_0x2e1f68(0x291)]+_0x2e1f68(0x1657)+_0x198c40[_0x2e1f68(0xc22)]:_0x2e1f68(0x1048),'msg':_0x198c40['data']?JSON['stringify'](_0x198c40[_0x2e1f68(0x25c)]):_0x198c40[_0x2e1f68(0x147f)]()});});}function _0x4e3ecb(_0x5e07d0){_0x5e07d0['unshift']({'condition':'=','field':'','value':''});}function _0x3a99da(_0x4820f8){const _0x59771d=_0x367bde;_0x4820f8[_0x59771d(0x2785)]({'group':{'operator':_0x59771d(0x909),'rules':[]}});}function _0x46bd28(_0x45761f,_0x3b80ef,_0x5136ec){const _0xd1edf2=_0x367bde,_0x18293d=_0x514eee[_0xd1edf2(0x1551)]()[_0xd1edf2(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20item?')[_0xd1edf2(0x49e)](_0xd1edf2(0x1630))[_0xd1edf2(0x15ad)]('delete\x20item')[_0xd1edf2(0x728)](_0x5136ec)['ok']('OK')[_0xd1edf2(0x696)](_0xd1edf2(0x24ba));_0x514eee[_0xd1edf2(0xe27)](_0x18293d)['then'](function(){const _0x282dbd=_0xd1edf2;_0x45761f[_0x282dbd(0x159c)](_0x3b80ef,0x1);},function(){const _0x54a6e4=_0xd1edf2;console['log'](_0x54a6e4(0x24ba));});}function _0x213451(_0x156f0c){const _0x149f37=_0x367bde;return!_0x39641b()[_0x149f37(0x250a)](['IS\x20NULL',_0x149f37(0x2d0),_0x149f37(0x1e9f),'IS\x20NOT\x20EMPTY'],_0x156f0c);}}const _0x4b05f2=_0x1295f9;;_0x2409b9['$inject']=[_0x5537c6(0x142b)];function _0x2409b9(_0x42f242){const _0x30eaed=_0x5537c6,_0x2ccefd={'cm_companies':_0x30eaed(0x107a),'cm_contacts':_0x30eaed(0xbe7),'cm_hopper':'cmHopper','cm_hopper_final':_0x30eaed(0x145f),'cm_hopper_history':_0x30eaed(0x1e15),'cm_lists':'cmList','chat_websites':_0x30eaed(0x226c),'chat_queues':_0x30eaed(0x1e86),'chat_interactions':_0x30eaed(0x115b),'chat_messages':_0x30eaed(0x5a4),'chat_offline_messages':'chatOfflineMessage','report_chat_queue':_0x30eaed(0x2046),'report_chat_transfer':_0x30eaed(0xa2e),'mail_accounts':_0x30eaed(0x131c),'mail_queues':_0x30eaed(0x16e1),'mail_interactions':'mailInteraction','mail_messages':_0x30eaed(0x17aa),'report_mail_queue':_0x30eaed(0x1c12),'report_mail_transfer':_0x30eaed(0x1c06),'openchannel_accounts':_0x30eaed(0x80e),'openchannel_queues':_0x30eaed(0x3a9),'openchannel_interactions':_0x30eaed(0x1f5b),'openchannel_messages':'openchannelMessage','report_openchannel_queue':'openchannelQueueReport','report_openchannel_transfer':_0x30eaed(0x19ef),'sms_accounts':'smsAccount','sms_queues':_0x30eaed(0x62e),'sms_interactions':_0x30eaed(0xa71),'sms_messages':_0x30eaed(0x130f),'report_sms_queue':_0x30eaed(0x1533),'report_sms_transfer':_0x30eaed(0x2420),'fax_accounts':_0x30eaed(0xb91),'fax_queues':_0x30eaed(0x54d),'fax_interactions':'faxInteraction','fax_messages':'faxMessage','report_fax_transfer':_0x30eaed(0x9e7),'report_fax_queue':'faxQueueReport','report_call':_0x30eaed(0x11f2),'report_agent':_0x30eaed(0x247a),'report_square':_0x30eaed(0x12d9),'report_member':_0x30eaed(0x2534),'report_queue':'voiceQueueReport','report_square_details':_0x30eaed(0x950),'report_dial':_0x30eaed(0x593),'report_jscripty_sessions':_0x30eaed(0x425),'report_jscripty_questions':_0x30eaed(0x10ad),'report_jscripty_answers':_0x30eaed(0x1d59),'users':_0x30eaed(0xebe),'voice_recordings':_0x30eaed(0x23d1),'cdr':_0x30eaed(0x8ff),'whatsapp_accounts':'whatsappAccount','whatsapp_queues':_0x30eaed(0xea8),'whatsapp_interactions':_0x30eaed(0x197a),'whatsapp_messages':_0x30eaed(0x162c),'report_whatsapp_queue':_0x30eaed(0xf64),'report_whatsapp_transfer':_0x30eaed(0x108b)};return{'getMap':function(){const _0x44e411=_0x30eaed,_0x3a6c48=[];return _0x39641b()[_0x44e411(0x1ebd)](_0x2ccefd,function(_0x477d1d,_0xfcf3fb){const _0x379c4f=_0x44e411;_0x3a6c48[_0x379c4f(0x2785)]({'name':_0xfcf3fb,'api':_0x477d1d});}),_0x3a6c48;},'getColumns':function(_0x2af008){const _0x149ebd=_0x30eaed,_0x4a57e1=_0x2ccefd[_0x2af008];return _0x42f242[_0x4a57e1][_0x149ebd(0x1e57)]()[_0x149ebd(0x1d77)];}};}const _0x4f0b6d=_0x2409b9;;_0x1ad31f['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0x16bf),'reportFields','reportField',_0x5537c6(0x27b1),_0x5537c6(0x1b1),_0x5537c6(0xf6d),_0x5537c6(0x142b),_0x5537c6(0x1b1a)];function _0x1ad31f(_0x1ac825,_0x5b0f4b,_0x194a11,_0x3396e8,_0xaa0164,_0x13bea6,_0x334703,_0x579b6c,_0x14fdb2,_0x38f938,_0x396f9c,_0x49659f){const _0x331e63=_0x5537c6,_0x43528b=this;_0x43528b['errors']=[],_0x43528b['title']=_0x331e63(0x1d80),_0x43528b[_0x331e63(0x16bf)]=_0xaa0164,_0x43528b[_0x331e63(0x233f)]=angular[_0x331e63(0x17fe)](_0x334703),_0x43528b[_0x331e63(0x11a0)]=_0x13bea6,_0x43528b['metrics']=_0x579b6c,_0x43528b['columns']=_0x14fdb2,_0x43528b[_0x331e63(0xf6d)]=_0x38f938,_0x43528b[_0x331e63(0x13a7)]=![],_0x43528b[_0x331e63(0x1b1a)]=_0x49659f;if(!_0x43528b[_0x331e63(0x233f)])_0x43528b['reportField']={'type':_0x331e63(0xa9c),'function':null,'format':null,'groupBy':![],'orderBy':null},_0x43528b[_0x331e63(0x1386)]=_0x331e63(0x19d8),_0x43528b[_0x331e63(0x13a7)]=!![];else{_0x43528b['reportField'][_0x331e63(0x66a)]=_0x43528b[_0x331e63(0x233f)][_0x331e63(0x197c)]?_0x331e63(0x197c):_0x43528b['reportField'][_0x331e63(0x1d9a)]?_0x331e63(0x195f):_0x331e63(0xa9c);if(_0x43528b[_0x331e63(0x233f)][_0x331e63(0x2198)]&&!_0x43528b['reportField']['custom']&&_0x39641b()['isNil'](_0x43528b[_0x331e63(0x233f)][_0x331e63(0x1d9a)])){const _0x30e261=_0x43528b[_0x331e63(0x233f)]['field'][_0x331e63(0xbe1)]('.');_0x30e261[_0x331e63(0xfd0)]===0x1&&(_0x43528b[_0x331e63(0x233f)]['field']=_0x43528b[_0x331e63(0x16bf)][_0x331e63(0xc83)]+'.'+_0x43528b[_0x331e63(0x233f)][_0x331e63(0x2198)]);}}_0x43528b[_0x331e63(0x2319)]=_0x13213c,_0x43528b['saveReportField']=_0x4cf29c,_0x43528b[_0x331e63(0x28da)]=_0x436bcf,_0x43528b[_0x331e63(0xda0)]=_0x5b3d83;function _0x13213c(){const _0x560b40=_0x331e63;_0x43528b[_0x560b40(0x1a7c)]=[],_0x43528b[_0x560b40(0x233f)][_0x560b40(0x197c)]=_0x43528b[_0x560b40(0x233f)][_0x560b40(0x66a)]===_0x560b40(0x197c),_0x43528b[_0x560b40(0x233f)]['MetricId']=_0x43528b['reportField'][_0x560b40(0x66a)]==='metric'?_0x43528b[_0x560b40(0x233f)][_0x560b40(0x1d9a)]:null,_0x43528b[_0x560b40(0x233f)][_0x560b40(0x251a)]=_0x43528b['report']['id'],_0x396f9c[_0x560b40(0x14c8)][_0x560b40(0x1c3f)](_0x43528b['reportField'])[_0x560b40(0x1d77)]['then'](function(_0x2b6621){const _0x5de4ae=_0x560b40;_0x43528b[_0x5de4ae(0x11a0)][_0x5de4ae(0x2785)](_0x2b6621),_0x3396e8[_0x5de4ae(0x829)]({'title':'Report\x20field\x20properly\x20created','msg':_0x43528b[_0x5de4ae(0x233f)][_0x5de4ae(0x2198)]?_0x43528b['reportField'][_0x5de4ae(0x2198)]+_0x5de4ae(0x470):_0x43528b[_0x5de4ae(0x233f)][_0x5de4ae(0x66a)]+_0x5de4ae(0x470)}),_0x5b3d83();})[_0x560b40(0x1c4)](function(_0x86bfda){const _0x4aadb1=_0x560b40;_0x43528b['errors']=_0x86bfda['data']['errors']||[{'message':_0x86bfda[_0x4aadb1(0x147f)](),'type':'api.analyticFieldReport.save'}];});}function _0x4cf29c(){const _0x4ac7ec=_0x331e63;_0x43528b['errors']=[],_0x43528b[_0x4ac7ec(0x233f)][_0x4ac7ec(0x197c)]=_0x43528b[_0x4ac7ec(0x233f)][_0x4ac7ec(0x66a)]===_0x4ac7ec(0x197c),_0x43528b[_0x4ac7ec(0x233f)][_0x4ac7ec(0x1d9a)]=_0x43528b[_0x4ac7ec(0x233f)]['type']===_0x4ac7ec(0x195f)?_0x43528b[_0x4ac7ec(0x233f)][_0x4ac7ec(0x1d9a)]:null,_0x396f9c[_0x4ac7ec(0x14c8)][_0x4ac7ec(0x687)]({'id':_0x43528b[_0x4ac7ec(0x233f)]['id']},_0x43528b[_0x4ac7ec(0x233f)])['$promise'][_0x4ac7ec(0x1cb0)](function(_0x2bedb1){const _0x5a1930=_0x4ac7ec,_0x13e196=_0x39641b()[_0x5a1930(0x13b4)](_0x43528b[_0x5a1930(0x11a0)],{'id':_0x2bedb1['id']});_0x13e196&&_0x39641b()['merge'](_0x13e196,_0x2bedb1),_0x3396e8[_0x5a1930(0x829)]({'title':'Report\x20Field\x20properly\x20saved!','msg':_0x43528b[_0x5a1930(0x233f)]['field']?_0x43528b[_0x5a1930(0x233f)]['field']+'\x20has\x20been\x20saved!':''}),_0x5b3d83();})[_0x4ac7ec(0x1c4)](function(_0x343032){const _0x241c73=_0x4ac7ec;_0x43528b[_0x241c73(0x1a7c)]=_0x343032['data'][_0x241c73(0x1a7c)]||[{'message':_0x343032['toString'](),'type':_0x241c73(0x16c)}];});}function _0x436bcf(_0x47fffb){const _0x210978=_0x331e63;_0x43528b[_0x210978(0x1a7c)]=[];const _0x147c17=_0x194a11[_0x210978(0x1551)]()[_0x210978(0x1386)](_0x210978(0x1a2e))[_0x210978(0x862)](_0x210978(0x19b9))[_0x210978(0x15ad)](_0x210978(0x7fa))['ok'](_0x210978(0x2594))[_0x210978(0x696)](_0x210978(0xde1))[_0x210978(0x728)](_0x47fffb);_0x194a11[_0x210978(0xe27)](_0x147c17)[_0x210978(0x1cb0)](function(){const _0x525631=_0x210978;_0x396f9c[_0x525631(0x14c8)][_0x525631(0x111d)]({'id':_0x43528b[_0x525631(0x233f)]['id']})[_0x525631(0x1d77)][_0x525631(0x1cb0)](function(){const _0x2f8851=_0x525631;_0x39641b()[_0x2f8851(0x152a)](_0x43528b[_0x2f8851(0x11a0)],{'id':_0x43528b[_0x2f8851(0x233f)]['id']}),_0x3396e8['success']({'title':_0x2f8851(0x257f),'msg':_0x43528b[_0x2f8851(0x233f)][_0x2f8851(0x2198)]?_0x43528b[_0x2f8851(0x233f)][_0x2f8851(0x2198)]+_0x2f8851(0x3f5):''}),_0x5b3d83();})[_0x525631(0x1c4)](function(_0x59eddf){const _0x5f36a9=_0x525631;_0x43528b[_0x5f36a9(0x1a7c)]=_0x59eddf[_0x5f36a9(0x25c)]['errors']||[{'message':_0x59eddf[_0x5f36a9(0x147f)](),'type':_0x5f36a9(0x1c14)}];});},function(){});}function _0x5b3d83(){const _0x2142a1=_0x331e63;_0x194a11[_0x2142a1(0x1426)]();}}const _0x5a3501=_0x1ad31f;;const _0x4dfe34=_0x5074a3['p']+_0x5537c6(0x19ea);;_0xf9c69e['$inject']=[_0x5537c6(0x173),_0x5537c6(0x1463),_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0xfc2),_0x5537c6(0xf6d),_0x5537c6(0x1ae)];function _0xf9c69e(_0x41c5cd,_0xd7e234,_0x30e65e,_0x234ec2,_0x307c19,_0x4cbbc,_0x318fba,_0x2542fe,_0x35d145,_0x4acb3f){const _0x7eab68=_0x5537c6,_0x23c1b4=this;_0x23c1b4[_0x7eab68(0x16bf)]={},_0x23c1b4['reportFields']={'count':0x0,'rows':[]},_0x23c1b4[_0x7eab68(0xbf3)]=_0x39641b()[_0x7eab68(0x2631)](_0x35d145[_0x7eab68(0x2155)],_0x7eab68(0x327)),_0x23c1b4[_0x7eab68(0x2233)]=_0x39641b()[_0x7eab68(0x2631)](_0x35d145[_0x7eab68(0x169f)],_0x7eab68(0x327)),_0x23c1b4[_0x7eab68(0x1374)]=_0x39641b()[_0x7eab68(0x2631)](_0x35d145[_0x7eab68(0x107d)],_0x7eab68(0x327)),_0x23c1b4[_0x7eab68(0x17ca)]=_0x39641b()[_0x7eab68(0x2631)](_0x35d145[_0x7eab68(0x1251)],_0x7eab68(0x327)),_0x23c1b4['selectedReportFields']=[],_0x23c1b4[_0x7eab68(0xae2)]={'fields':'createdAt,updatedAt,id,field,alias,function,format,groupBy,orderBy,custom,MetricId','nolimit':!![]},_0x23c1b4[_0x7eab68(0x831)]={'animation':0x64,'onSort':function(_0xb30a0a){const _0x14028f=_0x7eab68;_0x318fba[_0x14028f(0x14c8)]['addFields']({'id':_0x23c1b4['report']['id']},_0xb30a0a[_0x14028f(0x1171)])[_0x14028f(0x1d77)][_0x14028f(0x1cb0)](function(_0x332361){const _0x482714=_0x14028f;_0x23c1b4[_0x482714(0x11a0)]['rows']=_0x332361;})[_0x14028f(0x1c4)](function(_0x23adb3){const _0xcbccea=_0x14028f;_0x4cbbc[_0xcbccea(0x218e)]({'title':_0x23adb3[_0xcbccea(0x291)]?_0xcbccea(0xeb9)+_0x23adb3[_0xcbccea(0x291)]+_0xcbccea(0x1657)+_0x23adb3['statusText']:_0xcbccea(0xbd4)});});}},_0x23c1b4[_0x7eab68(0x1a8e)]=_0x2053ec,_0x23c1b4['deleteConfirm']=_0x24d44c,_0x23c1b4[_0x7eab68(0x829)]=_0x4d5bf3,_0x23c1b4[_0x7eab68(0x35f)]=_0x4c5e7d,_0x23c1b4['createOrEditReportField']=_0x403d32,_0x23c1b4[_0x7eab68(0x28da)]=_0x1b1ed2,_0x23c1b4['deleteSelectedReportFields']=_0x42fd17,_0x23c1b4[_0x7eab68(0x22b0)]=_0x1ffd2d,_0x23c1b4[_0x7eab68(0x170)]=_0x2ad682;function _0x2053ec(_0x289ac6,_0x4b60d2){const _0x4b5fc0=_0x7eab68;_0x23c1b4[_0x4b5fc0(0x16bf)]=_0x289ac6,_0x23c1b4[_0x4b5fc0(0xae2)][_0x4b5fc0(0x251a)]=_0x23c1b4['report']['id'],_0x23c1b4[_0x4b5fc0(0x1b1a)]=typeof _0x4b60d2!==_0x4b5fc0(0x16b5)?_0x4b60d2:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x23c1b4['sortableTable'][_0x4b5fc0(0x379)]=!_0x23c1b4[_0x4b5fc0(0x1b1a)][_0x4b5fc0(0xb3d)]?!![]:![],_0x2542fe[_0x4b5fc0(0x27b0)](_0x23c1b4['report']['table'])[_0x4b5fc0(0x1cb0)](function(_0x272036){const _0x17b6eb=_0x4b5fc0;return _0x23c1b4[_0x17b6eb(0x1b1)]=_0x39641b()[_0x17b6eb(0x91f)](_0x39641b()['keys'](_0x272036),[_0x17b6eb(0x1d77),_0x17b6eb(0x248e)]),_0x318fba[_0x17b6eb(0xe71)][_0x17b6eb(0xbf7)]({'fields':_0x17b6eb(0x275c),'nolimit':!![]})['$promise'];})[_0x4b5fc0(0x1cb0)](function(_0x3bf1b6){const _0x3020b8=_0x4b5fc0;_0x23c1b4[_0x3020b8(0x27b1)]=_0x3bf1b6[_0x3020b8(0x2214)];})[_0x4b5fc0(0x1c4)](function(_0x2c135d){const _0x34f684=_0x4b5fc0;_0x4cbbc[_0x34f684(0x218e)]({'title':_0x2c135d[_0x34f684(0x291)]?_0x34f684(0xeb9)+_0x2c135d[_0x34f684(0x291)]+_0x34f684(0x1657)+_0x2c135d[_0x34f684(0xc22)]:_0x34f684(0x1048),'msg':_0x2c135d[_0x34f684(0x25c)]?JSON['stringify'](_0x2c135d[_0x34f684(0x25c)]):_0x2c135d[_0x34f684(0x147f)]()});}),_0x23c1b4[_0x4b5fc0(0x35f)]();}function _0x24d44c(_0x237b0a,_0x525c33){const _0x205556=_0x7eab68,_0x5dba50=_0x234ec2['confirm']()[_0x205556(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0x205556(0x49e)](_0x205556(0x204d)+_0x237b0a[_0x205556(0x2198)]+_0x205556(0x1200)+_0x205556(0x1b6))[_0x205556(0x15ad)](_0x205556(0x21ee))['targetEvent'](_0x525c33)['ok']('OK')[_0x205556(0x696)](_0x205556(0x24ba));_0x234ec2[_0x205556(0xe27)](_0x5dba50)['then'](function(){_0x1b1ed2(_0x237b0a);},function(){const _0x54cf0c=_0x205556;console[_0x54cf0c(0x1b4f)](_0x54cf0c(0x24ba));});}let _0x56bedd=!![];_0xd7e234[_0x7eab68(0x614)](_0x7eab68(0x101b),function(){_0x56bedd?_0x30e65e(function(){_0x56bedd=![];}):_0x23c1b4['getReportFields']();});function _0x4d5bf3(_0xd64b9){const _0x4e6f6f=_0x7eab68;_0x23c1b4[_0x4e6f6f(0x11a0)]=_0xd64b9||{'count':0x0,'rows':[]};}function _0x4c5e7d(){const _0x1463cd=_0x7eab68;_0x23c1b4[_0x1463cd(0x2061)]=_0x318fba[_0x1463cd(0x14c8)][_0x1463cd(0xbf7)](_0x23c1b4[_0x1463cd(0xae2)],_0x4d5bf3)['$promise'];}function _0x403d32(_0x212976,_0x3eab33){const _0x4ca0fd=_0x7eab68;_0x234ec2[_0x4ca0fd(0xe27)]({'controller':_0x4ca0fd(0x1a59),'controllerAs':'vm','templateUrl':_0x4dfe34,'parent':angular['element'](_0x307c19[_0x4ca0fd(0x1ed9)]),'targetEvent':_0x212976,'clickOutsideToClose':!![],'locals':{'report':_0x23c1b4['report'],'reportField':_0x3eab33,'reportFields':_0x23c1b4[_0x4ca0fd(0x11a0)][_0x4ca0fd(0x2214)],'metrics':_0x23c1b4[_0x4ca0fd(0x27b1)],'columns':_0x23c1b4[_0x4ca0fd(0x1b1)],'setting':null,'crudPermissions':_0x23c1b4[_0x4ca0fd(0x1b1a)]}});}function _0x1b1ed2(_0x4257a0){const _0x124333=_0x7eab68;_0x318fba[_0x124333(0x14c8)][_0x124333(0x111d)]({'id':_0x4257a0['id']})[_0x124333(0x1d77)][_0x124333(0x1cb0)](function(){const _0x5312b4=_0x124333;_0x23c1b4[_0x5312b4(0x121d)]=[],_0x39641b()[_0x5312b4(0x152a)](_0x23c1b4['reportFields']['rows'],{'id':_0x4257a0['id']}),_0x23c1b4[_0x5312b4(0x11a0)]['count']-=0x1,!_0x23c1b4['reportFields']['rows'][_0x5312b4(0xfd0)]&&_0x23c1b4[_0x5312b4(0x35f)](),_0x4cbbc[_0x5312b4(0x829)]({'title':'Field\x20deleted!','msg':_0x4257a0[_0x5312b4(0x2198)]?_0x4257a0[_0x5312b4(0x2198)]+_0x5312b4(0x3f5):''});})[_0x124333(0x1c4)](function(_0x4f8e6e){const _0x5162b5=_0x124333;_0x4cbbc['error']({'title':_0x4f8e6e[_0x5162b5(0x291)]?_0x5162b5(0xeb9)+_0x4f8e6e[_0x5162b5(0x291)]+_0x5162b5(0x1657)+_0x4f8e6e[_0x5162b5(0xc22)]:_0x5162b5(0xf1c),'msg':_0x4f8e6e[_0x5162b5(0x25c)]?JSON[_0x5162b5(0x2701)](_0x4f8e6e['data']):_0x4f8e6e[_0x5162b5(0x147f)]()});});}function _0x42fd17(_0x8a9b9c){const _0x42453b=_0x7eab68,_0x18605c=_0x234ec2[_0x42453b(0x1551)]()[_0x42453b(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x42453b(0x49e)](_0x42453b(0x204d)+_0x23c1b4[_0x42453b(0x121d)][_0x42453b(0xfd0)]+'\x20selected'+_0x42453b(0x1b6))[_0x42453b(0x15ad)]('delete\x20fields')[_0x42453b(0x728)](_0x8a9b9c)['ok']('OK')['cancel']('CANCEL');_0x234ec2[_0x42453b(0xe27)](_0x18605c)[_0x42453b(0x1cb0)](function(){const _0x2f14c3=_0x42453b;_0x23c1b4[_0x2f14c3(0x121d)]['forEach'](function(_0x31f0d1){_0x1b1ed2(_0x31f0d1);}),_0x23c1b4['selectedReportFields']=[];});}function _0x1ffd2d(_0x4725a7){const _0x348c9d=_0x7eab68,_0x2a4743=_0x39641b()['find'](_0x23c1b4[_0x348c9d(0x27b1)],{'id':_0x4725a7});return _0x2a4743?_0x2a4743[_0x348c9d(0x16b6)]:_0x4acb3f[_0x348c9d(0x25cc)](_0x348c9d(0x2619));}function _0x2ad682(_0x1f7f80){const _0x302606=_0x7eab68,_0x42361f=_0x39641b()[_0x302606(0x13b4)](_0x23c1b4['metrics'],{'id':_0x1f7f80});return _0x42361f?_0x42361f['metric']:_0x4acb3f[_0x302606(0x25cc)]('ANALYTICS.NO_METRIC_FOUND');}}const _0x1404b6=_0xf9c69e;;function _0x542b94(){const _0x4af4b2=_0x5537c6,_0x516c0b=[{'value':'SUM','option':function(_0x2b7971){const _0x4649fe=a0_0x5cbd;return _0x4649fe(0x168d)+_0x2b7971+')';}},{'value':_0x4af4b2(0x283c),'option':function(_0x44c248){const _0x2aec6f=_0x4af4b2;return _0x2aec6f(0x120e)+_0x44c248+')';}},{'value':_0x4af4b2(0x18ed),'option':function(_0x59ff99){const _0x22b84a=_0x4af4b2;return _0x22b84a(0x176f)+_0x59ff99+')';}},{'value':_0x4af4b2(0x1f1b),'option':function(_0x32377f){const _0x343884=_0x4af4b2;return _0x343884(0x14b8)+_0x32377f+')';}},{'value':_0x4af4b2(0x23e3),'option':function(_0x41d917){const _0x3b6686=_0x4af4b2;return _0x3b6686(0x774)+_0x41d917+')';}},{'value':_0x4af4b2(0x39c),'option':function(_0x23caee){const _0x51030f=_0x4af4b2;return _0x51030f(0x1c33)+_0x23caee+')';}},{'value':_0x4af4b2(0x21a1),'option':function(_0x21f323){const _0xf8116e=_0x4af4b2;return _0xf8116e(0x768)+_0x21f323+')';}},{'value':_0x4af4b2(0xe1e),'option':function(_0x3fac97){const _0xe53c13=_0x4af4b2;return'GROUP_CONCAT\x20('+_0x3fac97+_0xe53c13(0x2486)+_0x3fac97+_0xe53c13(0x1d21);}},{'value':'GROUP_CONCAT\x20DESC','option':function(_0x16a50f){const _0xed5748=_0x4af4b2;return _0xed5748(0x768)+_0x16a50f+_0xed5748(0x2486)+_0x16a50f+_0xed5748(0xbaa);}}],_0x209b77=[{'value':_0x4af4b2(0x206d),'option':function(_0x5b5708){const _0x3e3635=_0x4af4b2;return _0x3e3635(0x906)+_0x5b5708+')';}},{'value':_0x4af4b2(0x6c1),'option':function(_0x17476e){const _0x3cf583=_0x4af4b2;return _0x3cf583(0x102c)+_0x17476e+')';}},{'value':_0x4af4b2(0x632),'option':function(_0x399233){return'HOUR\x20('+_0x399233+')';}},{'value':'ROUND','option':function(_0x3eff65){const _0x4ef984=_0x4af4b2;return _0x4ef984(0x25f1)+_0x3eff65+')';}},{'value':_0x4af4b2(0x11c0),'option':function(_0x2eb93c){const _0x1d2bc8=_0x4af4b2;return _0x1d2bc8(0xa07)+_0x2eb93c+')';}}],_0x3919c4=[{'value':![],'option':function(){return'No';}},{'value':!![],'option':function(_0x815950){const _0x21c351=_0x4af4b2;return _0x21c351(0x1230)+_0x815950;}}],_0x16050c=[{'value':'ASC','option':function(_0x365391){const _0x15b2a8=_0x4af4b2;return'ORDER\x20BY\x20'+_0x365391+_0x15b2a8(0x12ae);}},{'value':_0x4af4b2(0x16b),'option':function(_0x33e4f8){const _0x2fa11c=_0x4af4b2;return'ORDER\x20BY\x20'+_0x33e4f8+_0x2fa11c(0x20f5);}}],_0x5af178=['=','!=','<','<=','>','>=','LIKE',_0x4af4b2(0x167b),_0x4af4b2(0x182),'IS\x20NOT\x20NULL','IS\x20EMPTY',_0x4af4b2(0x23b7)];return{'getFunctions':_0x516c0b,'getFormats':_0x209b77,'getGroupBy':_0x3919c4,'getOrderBy':_0x16050c,'getConditions':_0x5af178};}const _0x269c73=_0x542b94;;_0x44ba00['$inject']=[_0x5537c6(0x406),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x16bf),_0x5537c6(0x1774),_0x5537c6(0x2199)];function _0x44ba00(_0x2d4176,_0x13f191,_0x1b5c97,_0x2669fc,_0x400d63,_0x48225a){const _0x3a3a70=_0x5537c6,_0x3c4dad=this;_0x3c4dad[_0x3a3a70(0x16bf)]=_0x2669fc||{},_0x3c4dad[_0x3a3a70(0x2199)]=_0x48225a&&_0x48225a[_0x3a3a70(0x184d)]==0x1?_0x48225a[_0x3a3a70(0x2214)][0x0]:null,_0x3c4dad[_0x3a3a70(0x1b1a)]=_0x400d63[_0x3a3a70(0x14ea)](_0x3c4dad[_0x3a3a70(0x2199)]?_0x3c4dad['userProfileSection'][_0x3a3a70(0x1b1a)]:null),_0x3c4dad[_0x3a3a70(0x8ec)]=_0x2d4176[_0x3a3a70(0x1dfe)][_0x3a3a70(0x291e)]||0x0,_0x3c4dad[_0x3a3a70(0x2096)]=_0x315f3d,_0x3c4dad[_0x3a3a70(0x2502)]=_0x4235b1,_0x3c4dad[_0x3a3a70(0x1114)]=_0x5723e3,_0x3c4dad[_0x3a3a70(0x8d0)]=_0x12b41f,_0x3c4dad['mapArray']=_0x10ed7f,_0x3c4dad[_0x3a3a70(0x216b)]=_0x424152,_0x3c4dad[_0x3a3a70(0xf39)]=_0x5d3b9a;function _0x315f3d(){const _0x557400=_0x3a3a70;_0x2d4176['go'](_0x557400(0x1a53),{},{'reload':_0x557400(0x1a53)});}function _0x4235b1(){const _0x143d87=_0x3a3a70;_0x3c4dad['report']['conditions']=angular[_0x143d87(0x393)](_0x3c4dad[_0x143d87(0x16bf)]['condition']),_0x1b5c97[_0x143d87(0x1e32)]['update']({'id':_0x3c4dad['report']['id']},_0x39641b()[_0x143d87(0x1bd8)](_0x3c4dad['report'],_0x143d87(0x1c18)))[_0x143d87(0x1d77)][_0x143d87(0x1cb0)](function(){const _0x1aa977=_0x143d87;_0x13f191[_0x1aa977(0x829)]({'title':'Report\x20updated!','msg':_0x3c4dad['report'][_0x1aa977(0x16b6)]?_0x3c4dad[_0x1aa977(0x16bf)][_0x1aa977(0x16b6)]+_0x1aa977(0x1068):''});})[_0x143d87(0x1c4)](function(_0x660b8){const _0x18b3f3=_0x143d87;_0x13f191[_0x18b3f3(0x218e)]({'title':_0x660b8[_0x18b3f3(0x291)]?_0x18b3f3(0xeb9)+_0x660b8['status']+_0x18b3f3(0x1657)+_0x660b8[_0x18b3f3(0xc22)]:_0x18b3f3(0x55c),'msg':_0x660b8['data']?JSON[_0x18b3f3(0x2701)](_0x660b8[_0x18b3f3(0x25c)]):_0x660b8[_0x18b3f3(0x147f)]()});});}function _0x5723e3(){const _0x2efb11=_0x3a3a70;_0x3c4dad['columns']=[],_0x3c4dad[_0x2efb11(0x2214)]=[],_0x3c4dad[_0x2efb11(0x218e)]=![],_0x1b5c97[_0x2efb11(0x14c8)][_0x2efb11(0xbf7)]({'fields':_0x2efb11(0x1831),'nolimit':!![],'CustomReportId':_0x3c4dad[_0x2efb11(0x16bf)]['id']})[_0x2efb11(0x1d77)]['then'](function(_0x4d12ac){const _0x481130=_0x2efb11;return _0x3c4dad[_0x481130(0x1b1)]=_0x4d12ac?_0x4d12ac['rows']:[],_0x1b5c97[_0x481130(0x1e32)][_0x481130(0x2772)]({'id':_0x3c4dad[_0x481130(0x16bf)]['id']})['$promise'];})['then'](function(_0x4dce39){const _0x1b66ed=_0x2efb11;_0x3c4dad[_0x1b66ed(0x2214)]=_0x4dce39;})[_0x2efb11(0x1c4)](function(_0x44aa16){const _0x244cd0=_0x2efb11;console[_0x244cd0(0x1b4f)](_0x44aa16),_0x3c4dad[_0x244cd0(0x218e)]={'title':_0x44aa16[_0x244cd0(0x291)]?'API:'+_0x44aa16[_0x244cd0(0x291)]+_0x244cd0(0x1657)+_0x44aa16['statusText']:'SYSTEM:analyticFieldReport','msg':_0x44aa16[_0x244cd0(0x25c)]?_0x44aa16[_0x244cd0(0x25c)][_0x244cd0(0x155e)]:_0x44aa16[_0x244cd0(0x147f)](),'sql':_0x44aa16[_0x244cd0(0x25c)]?_0x44aa16[_0x244cd0(0x25c)][_0x244cd0(0xbfb)]?_0x44aa16['data'][_0x244cd0(0xbfb)]['sql']:_0x244cd0(0x28ee):_0x244cd0(0x28ee)},_0x13f191[_0x244cd0(0x218e)](_0x3c4dad[_0x244cd0(0x218e)]);});}function _0x5d3b9a(_0x53aa70,_0x4abfd1){const _0x46d6ac=_0x3a3a70;return _0x543b5a()(_0x4abfd1,_0x46d6ac(0x2963),!![])[_0x46d6ac(0x1a4f)]()&&(_0x4abfd1=_0x543b5a()(_0x4abfd1,'')[_0x46d6ac(0x1f31)](_0x46d6ac(0x2e8))),_0x4abfd1;}function _0x12b41f(){const _0x4937ca=_0x3a3a70;return _0x3c4dad['queryResult']=_0x4937ca(0x1ecb),_0x1b5c97[_0x4937ca(0x1e32)][_0x4937ca(0xae2)]({'id':_0x3c4dad['report']['id']})[_0x4937ca(0x1d77)][_0x4937ca(0x1cb0)](function(_0x47e64e){const _0x8f927=_0x4937ca;_0x3c4dad['queryResult']=_0x47e64e[_0x8f927(0x2205)];})[_0x4937ca(0x1c4)](function(_0x5f26a3){const _0x20e8b2=_0x4937ca;_0x3c4dad['queryResult']='',console['log'](_0x5f26a3),_0x3c4dad['error']={'title':_0x5f26a3[_0x20e8b2(0x291)]?_0x20e8b2(0xeb9)+_0x5f26a3[_0x20e8b2(0x291)]+_0x20e8b2(0x1657)+_0x5f26a3[_0x20e8b2(0xc22)]:'SYSTEM:analyticFieldReport','msg':_0x5f26a3['data']?_0x5f26a3[_0x20e8b2(0x25c)]['message']:_0x5f26a3[_0x20e8b2(0x147f)](),'sql':_0x5f26a3[_0x20e8b2(0x25c)]?_0x5f26a3[_0x20e8b2(0x25c)][_0x20e8b2(0xbfb)]?_0x5f26a3['data'][_0x20e8b2(0xbfb)][_0x20e8b2(0x2205)]:_0x20e8b2(0x28ee):_0x20e8b2(0x28ee)},_0x13f191[_0x20e8b2(0x218e)](_0x3c4dad[_0x20e8b2(0x218e)]);});}function _0x10ed7f(_0x237d9e,_0x596f6a){const _0x2cfc85=_0x3a3a70;if(_0x424152(_0x237d9e))return _0x39641b()[_0x2cfc85(0x1de2)](_0x237d9e,_0x596f6a)[_0x2cfc85(0x1f66)](',');return'';}function _0x424152(_0x3bf5c5){const _0x9a85f=_0x3a3a70;return _0x39641b()[_0x9a85f(0x216b)](_0x3bf5c5);}}const _0x3754bd=_0x44ba00;;_0x498e4a['$inject']=[_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0x16bf),'api',_0x5537c6(0x217d)];function _0x498e4a(_0x585283,_0x431aa4,_0x4bcd90,_0x36d31e,_0x491031,_0x2b771c){const _0x24906d=_0x5537c6,_0x34050c=this;_0x34050c[_0x24906d(0x1a7c)]=[],_0x34050c[_0x24906d(0x16bf)]=angular['copy'](_0x36d31e),_0x34050c[_0x24906d(0xf39)]=_0x5efc89,_0x34050c[_0x24906d(0xda0)]=_0x2627c9,_0x56210f();function _0x56210f(){const _0xb6fa1a=_0x24906d;_0x34050c[_0xb6fa1a(0x1b1)]=[],_0x34050c[_0xb6fa1a(0x2214)]=[],_0x34050c[_0xb6fa1a(0x218e)]=![];const _0x498c39={'fields':_0xb6fa1a(0x1831),'nolimit':!![]};_0x498c39[_0x2b771c===_0xb6fa1a(0x1e32)?_0xb6fa1a(0x251a):_0xb6fa1a(0x22a0)]=_0x34050c[_0xb6fa1a(0x16bf)]['id'],_0x34050c[_0xb6fa1a(0x2061)]=_0x491031['analyticFieldReport']['get'](_0x498c39)[_0xb6fa1a(0x1d77)][_0xb6fa1a(0x1cb0)](function(_0x56771e){const _0x1048f7=_0xb6fa1a;return _0x34050c[_0x1048f7(0x1b1)]=_0x56771e?_0x56771e[_0x1048f7(0x2214)]:[],_0x491031[_0x2b771c][_0x1048f7(0x2772)]({'id':_0x34050c[_0x1048f7(0x16bf)]['id']})[_0x1048f7(0x1d77)];})[_0xb6fa1a(0x1cb0)](function(_0x4753e9){const _0x3c5d45=_0xb6fa1a;_0x34050c[_0x3c5d45(0x2214)]=_0x4753e9;})[_0xb6fa1a(0x1c4)](function(_0x31e964){const _0x2f69b9=_0xb6fa1a;console[_0x2f69b9(0x1b4f)](_0x31e964),_0x34050c[_0x2f69b9(0x218e)]={'title':_0x31e964['status']?_0x2f69b9(0xeb9)+_0x31e964[_0x2f69b9(0x291)]+_0x2f69b9(0x1657)+_0x31e964[_0x2f69b9(0xc22)]:_0x2f69b9(0xd5d),'msg':_0x31e964[_0x2f69b9(0x25c)]?_0x31e964[_0x2f69b9(0x25c)][_0x2f69b9(0x155e)]:_0x31e964['toString'](),'sql':_0x31e964[_0x2f69b9(0x25c)]?_0x31e964[_0x2f69b9(0x25c)][_0x2f69b9(0xbfb)]?_0x31e964[_0x2f69b9(0x25c)][_0x2f69b9(0xbfb)]['sql']:_0x2f69b9(0x28ee):_0x2f69b9(0x28ee)},_0x4bcd90['error'](_0x34050c['error']);});}function _0x5efc89(_0x27fe7b,_0x523869){const _0x26802d=_0x24906d;return _0x543b5a()(_0x523869,'YYYY-MM-DDTHH:mm:ssZ',!![])[_0x26802d(0x1a4f)]()&&(_0x523869=_0x543b5a()(_0x523869,'')[_0x26802d(0x1f31)](_0x26802d(0x2e8))),_0x523869;}function _0x2627c9(){const _0x51b65e=_0x24906d;_0x431aa4[_0x51b65e(0x1426)]();}}const _0x40e364=_0x498e4a;;const _0x58127e=_0x5074a3['p']+_0x5537c6(0x11b4);;const _0x32ab48=_0x5074a3['p']+_0x5537c6(0x52f);;const _0x329ca4=_0x5074a3['p']+_0x5537c6(0xf00);;const _0x50a506=_0x5074a3['p']+'src/js/modules/main/apps/analytics/views/reports/create/dialog.html/dialog.html';;_0x1212e0[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2168),_0x5537c6(0x22bf),_0x5537c6(0xcb9),_0x5537c6(0x406),_0x5537c6(0x1f10),'$translate',_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0x1871),_0x5537c6(0x9bf),_0x5537c6(0x1774)];function _0x1212e0(_0xfd04fd,_0x566f97,_0x44ed42,_0x128fa5,_0x23cdda,_0x3adb2e,_0x3e56d6,_0x3daa61,_0x9db0a5,_0x4c9382,_0x57dc4e,_0xcb4bee,_0x36ad64){const _0x53a58e=_0x5537c6,_0x8e4cc5=this;_0x8e4cc5[_0x53a58e(0xe76)]=_0x36ad64['getCurrentUser'](),_0x8e4cc5['reports']={'count':0x0,'rows':[]},_0x8e4cc5[_0x53a58e(0x44a)]=_0x3daa61,_0x8e4cc5[_0x53a58e(0x2199)]=_0x9db0a5&&_0x9db0a5[_0x53a58e(0x184d)]==0x1?_0x9db0a5['rows'][0x0]:null,_0x8e4cc5[_0x53a58e(0x1b1a)]=_0x36ad64[_0x53a58e(0x14ea)](_0x8e4cc5[_0x53a58e(0x2199)]?_0x8e4cc5[_0x53a58e(0x2199)]['crudPermissions']:null),_0x8e4cc5[_0x53a58e(0x916)]=[],_0x8e4cc5['query']={'fields':_0x53a58e(0x2308),'limit':0xa,'page':0x1,'sort':_0x53a58e(0x282)},_0x8e4cc5['apiName']=null,_0x8e4cc5[_0x53a58e(0x275a)]='',_0x8e4cc5[_0x53a58e(0x1163)]=!![],_0x8e4cc5[_0x53a58e(0x235d)]=_0x5051d4,_0x8e4cc5['copydialog']=_0x3b1e84,_0x8e4cc5[_0x53a58e(0x1c81)]=_0x2d1c68,_0x8e4cc5[_0x53a58e(0x2610)]=_0x5be1de,_0x8e4cc5['downloadfile']=_0x12c69e,_0x8e4cc5['deleteconfirm']=_0x1fe851,_0x8e4cc5['success']=_0x10c7f7,_0x8e4cc5[_0x53a58e(0x903)]=_0x33b1a3,_0x8e4cc5[_0x53a58e(0x170c)]=_0x24298a,_0x8e4cc5[_0x53a58e(0x22f1)]=_0x288e73,_0x8e4cc5[_0x53a58e(0xfc6)]=_0xf95520,_0x8e4cc5[_0x53a58e(0x11ef)]=_0x6da12c,_0x8e4cc5['deleteSelectedReports']=_0x31a028,_0x8e4cc5['deselectReports']=_0x658f40,_0x8e4cc5[_0x53a58e(0x1cf6)]=_0x1bc762,_0x8e4cc5['treeDefaultData']=_0x57dc4e[_0x53a58e(0x2214)][0x0]?angular[_0x53a58e(0x284c)](_0x57dc4e['rows'][0x0][_0x53a58e(0x1bd)]):[],_0x8e4cc5[_0x53a58e(0xc92)]=_0x57dc4e[_0x53a58e(0x2214)][0x1]?angular[_0x53a58e(0x284c)](_0x57dc4e['rows'][0x1][_0x53a58e(0x1bd)]):[],_0x8e4cc5[_0x53a58e(0x116d)]=_0x3de4a6(![]),_0x8e4cc5[_0x53a58e(0x1225)]=_0x3de4a6(!![]),_0x8e4cc5[_0x53a58e(0x1058)]=_0x15d30a(![]),_0x8e4cc5[_0x53a58e(0x1333)]=_0x15d30a(!![]);function _0x5051d4(_0x42da1d){const _0x306e47=_0x53a58e;_0x23cdda['go'](_0x306e47(0xc2c),{'id':_0x42da1d['id'],'crudPermissions':_0x8e4cc5[_0x306e47(0x1b1a)]});}function _0x3b1e84(_0x231984,_0x4ad5c6){const _0x188986=_0x53a58e;_0x128fa5[_0x188986(0xe27)]({'controller':_0x188986(0xc9b),'controllerAs':'vm','templateUrl':_0x58127e,'parent':angular[_0x188986(0x1853)](_0x44ed42[_0x188986(0x1ed9)]),'targetEvent':_0x4ad5c6,'clickOutsideToClose':!![],'locals':{'report':_0x231984,'apiName':_0x8e4cc5['apiName'],'treeCustomData':_0x8e4cc5[_0x188986(0x20be)][_0x188986(0x735)](!![])['get_json']('#')}})[_0x188986(0x2e0)](function(){});}function _0x2d1c68(_0x27051b,_0x2d7c88){const _0x19be7e=_0x53a58e;_0x128fa5[_0x19be7e(0xe27)]({'controller':'PreviewReportDialogController','controllerAs':'vm','templateUrl':_0x32ab48,'parent':angular[_0x19be7e(0x1853)](_0x44ed42['body']),'targetEvent':_0x2d7c88,'clickOutsideToClose':!![],'locals':{'report':_0x27051b,'apiName':_0x8e4cc5['apiName']}});}function _0x5be1de(_0x216fc4,_0x1e8c6c){const _0x22ae9e=_0x53a58e;_0x128fa5['show']({'controller':_0x22ae9e(0x1aa8),'controllerAs':'vm','templateUrl':_0x329ca4,'parent':angular[_0x22ae9e(0x1853)](_0x44ed42[_0x22ae9e(0x1ed9)]),'targetEvent':_0x1e8c6c,'clickOutsideToClose':!![],'locals':{'report':_0x216fc4,'apiName':_0x8e4cc5[_0x22ae9e(0x217d)],'currentPath':_0x8e4cc5[_0x22ae9e(0x275a)]}});}function _0x12c69e(_0x5ba0f6){const _0x2e770b=_0x53a58e;let _0x28bed9;_0x4c9382[_0x2e770b(0xe71)][_0x2e770b(0xbf7)]({'fields':'id,name,metric,table','nolimit':!![]})[_0x2e770b(0x1d77)][_0x2e770b(0x1cb0)](function(_0x220a3e){const _0x3806f9=_0x2e770b;_0x28bed9=_0x39641b()[_0x3806f9(0x2631)](_0x220a3e[_0x3806f9(0x2214)],'id');const _0x45e3bb={'fields':'field,alias,function,format,groupBy,orderBy,custom,MetricId','nolimit':!![]};return _0x45e3bb[_0x8e4cc5['apiName']==='analyticCustomReport'?_0x3806f9(0x251a):_0x3806f9(0x22a0)]=_0x5ba0f6['id'],_0x4c9382[_0x3806f9(0x14c8)][_0x3806f9(0xbf7)](_0x45e3bb)[_0x3806f9(0x1d77)];})['then'](function(_0x455921){const _0x2209b3=_0x2e770b;for(let _0x3b1ac1=0x0;_0x3b1ac1<_0x455921['rows'][_0x2209b3(0xfd0)];_0x3b1ac1+=0x1){_0x455921['rows'][_0x3b1ac1][_0x2209b3(0x1d9a)]&&(_0x455921['rows'][_0x3b1ac1][_0x2209b3(0x2198)]=_0x28bed9[_0x455921[_0x2209b3(0x2214)][_0x3b1ac1]['MetricId']][_0x2209b3(0x195f)],_0x455921[_0x2209b3(0x2214)][_0x3b1ac1][_0x2209b3(0x197c)]=!![]),delete _0x455921[_0x2209b3(0x2214)][_0x3b1ac1][_0x2209b3(0x1d9a)];}const _0x2991b4=_0x3adb2e[_0x2209b3(0x1db8)][_0x2209b3(0x8c6)]('a');_0x2991b4[_0x2209b3(0x105b)]=_0x2209b3(0xd13)+_0x3adb2e[_0x2209b3(0x4af)](angular[_0x2209b3(0x393)]({'name':_0x5ba0f6['name'],'description':_0x5ba0f6[_0x2209b3(0x2c1)],'table':_0x5ba0f6[_0x2209b3(0xc83)],'conditions':_0x5ba0f6['conditions'],'joins':_0x5ba0f6[_0x2209b3(0x1c18)],'fields':_0x455921['rows']})),_0x2991b4[_0x2209b3(0x26ec)]=_0x5ba0f6[_0x2209b3(0x16b6)]+_0x2209b3(0x156c),_0x2991b4[_0x2209b3(0x251d)]=_0x2209b3(0x1d9f),_0x2991b4[_0x2209b3(0x20b8)](),_0xcb4bee[_0x2209b3(0x829)]({'title':_0x2209b3(0x5b3),'msg':_0x5ba0f6[_0x2209b3(0x16b6)]?_0x5ba0f6[_0x2209b3(0x16b6)]+'\x20has\x20been\x20downloaded!':''});})[_0x2e770b(0x1c4)](function(_0x390fb2){const _0x3b8ac2=_0x2e770b;_0xcb4bee[_0x3b8ac2(0x218e)]({'title':_0x390fb2[_0x3b8ac2(0x291)]?'API:'+_0x390fb2[_0x3b8ac2(0x291)]+'\x20-\x20'+_0x390fb2[_0x3b8ac2(0xc22)]:_0x3b8ac2(0x1c1f),'msg':_0x390fb2[_0x3b8ac2(0x25c)]?JSON['stringify'](_0x390fb2[_0x3b8ac2(0x25c)]):_0x390fb2[_0x3b8ac2(0x147f)]()});});}function _0x1fe851(_0x2d8eaa,_0x3fa109){const _0x4a0f1c=_0x53a58e,_0x429ea2=_0x128fa5['confirm']()['title'](_0x4a0f1c(0x1fde))[_0x4a0f1c(0x49e)](''+_0x2d8eaa['name']+''+'\x20will\x20be\x20deleted.')[_0x4a0f1c(0x15ad)]('delete\x20report')['targetEvent'](_0x3fa109)['ok']('OK')[_0x4a0f1c(0x696)](_0x4a0f1c(0x24ba));_0x128fa5[_0x4a0f1c(0xe27)](_0x429ea2)[_0x4a0f1c(0x1cb0)](function(){_0xf95520(_0x2d8eaa);},function(){const _0x3f2909=_0x4a0f1c;console[_0x3f2909(0x1b4f)](_0x3f2909(0x24ba));});}let _0x13b244=!![],_0x1e794c=0x1;_0xfd04fd[_0x53a58e(0x614)](_0x53a58e(0x957),function(_0x42b7f5,_0x1ebb77){const _0x5b7eea=_0x53a58e;_0x13b244?_0x566f97(function(){_0x13b244=![];}):(!_0x1ebb77&&(_0x1e794c=_0x8e4cc5[_0x5b7eea(0xae2)][_0x5b7eea(0x1c7b)]),_0x42b7f5!==_0x1ebb77&&(_0x8e4cc5[_0x5b7eea(0xae2)][_0x5b7eea(0x1c7b)]=0x1),!_0x42b7f5&&(_0x8e4cc5['query'][_0x5b7eea(0x1c7b)]=_0x1e794c),_0x8e4cc5[_0x5b7eea(0x903)]());}),_0xfd04fd[_0x53a58e(0x614)](_0x53a58e(0x1180),function(_0x3b4e99){const _0x2e16eb=_0x53a58e;_0x8e4cc5[_0x2e16eb(0xfcd)]&&_0x8e4cc5[_0x2e16eb(0xfcd)][_0x2e16eb(0x735)](!![])[_0x2e16eb(0x24be)](_0x3b4e99),_0x8e4cc5['treeCustomInstance']&&_0x8e4cc5['treeCustomInstance'][_0x2e16eb(0x735)](!![])[_0x2e16eb(0x24be)](_0x3b4e99);});function _0x10c7f7(_0x4ec32a){const _0xfe5bb9=_0x53a58e;_0x8e4cc5[_0xfe5bb9(0x2318)]=_0x4ec32a||{'count':0x0,'rows':[]};}function _0x33b1a3(){const _0x322d4e=_0x53a58e;_0x8e4cc5[_0x322d4e(0xae2)]['offset']=(_0x8e4cc5[_0x322d4e(0xae2)][_0x322d4e(0x1c7b)]-0x1)*_0x8e4cc5['query'][_0x322d4e(0x236)];if(_0x8e4cc5[_0x322d4e(0x217d)]){if(_0x8e4cc5[_0x322d4e(0xe76)][_0x322d4e(0x26e6)]===_0x322d4e(0x1c60)||_0x8e4cc5[_0x322d4e(0x2199)][_0x322d4e(0x12f4)])_0x8e4cc5[_0x322d4e(0x2061)]=_0x4c9382[_0x8e4cc5[_0x322d4e(0x217d)]][_0x322d4e(0xbf7)](_0x8e4cc5[_0x322d4e(0xae2)],_0x10c7f7)[_0x322d4e(0x1d77)];else{let _0x4b99fb=[];_0x8e4cc5[_0x322d4e(0x2061)]=_0x4c9382[_0x8e4cc5[_0x322d4e(0x217d)]][_0x322d4e(0xbf7)](_0x8e4cc5[_0x322d4e(0xae2)])[_0x322d4e(0x1d77)]['then'](function(_0x3f3dac){const _0x3534c2=_0x322d4e;return _0x4b99fb=_0x3f3dac&&_0x3f3dac['rows']?_0x3f3dac[_0x3534c2(0x2214)]:[],_0x4b99fb[_0x3534c2(0xfd0)]>0x0?_0x4c9382[_0x3534c2(0x1198)][_0x3534c2(0xbf7)]({'sectionId':_0x8e4cc5['userProfileSection']['id'],'type':_0x8e4cc5[_0x3534c2(0x217d)]===_0x3534c2(0x1f0c)?'DefaultReports':'CustomReports'})[_0x3534c2(0x1d77)]['then'](function(_0x1cad55){const _0x346ce2=_0x3534c2,_0x3dac5a=_0x1cad55&&_0x1cad55[_0x346ce2(0x2214)]?_0x1cad55[_0x346ce2(0x2214)]:[];if(_0x3dac5a[_0x346ce2(0xfd0)]>0x0){const _0x56fba2=[];return _0x4b99fb[_0x346ce2(0xf90)](function(_0x5d1d85){const _0x2f660f=_0x346ce2,_0x49d02b=_0x39641b()[_0x2f660f(0x13b4)](_0x3dac5a,[_0x2f660f(0x2982),_0x5d1d85['id']]);if(_0x49d02b)_0x56fba2[_0x2f660f(0x2785)](_0x5d1d85);}),_0x10c7f7({'count':_0x56fba2[_0x346ce2(0xfd0)],'rows':_0x56fba2});}else return _0x10c7f7(null);}):_0x10c7f7(null);});}}}function _0x24298a(_0x19a853,_0x14b0d9){const _0x2c4a1e=_0x53a58e;_0x128fa5[_0x2c4a1e(0xe27)]({'controller':_0x2c4a1e(0x2485),'controllerAs':'vm','templateUrl':_0x50a506,'parent':angular[_0x2c4a1e(0x1853)](_0x44ed42[_0x2c4a1e(0x1ed9)]),'targetEvent':_0x19a853,'clickOutsideToClose':!![],'locals':{'report':_0x14b0d9,'reports':_0x8e4cc5[_0x2c4a1e(0x2318)][_0x2c4a1e(0x2214)],'apiName':_0x8e4cc5[_0x2c4a1e(0x217d)],'currentNode':_0x8e4cc5[_0x2c4a1e(0x622)],'setting':null,'crudPermissions':_0x8e4cc5['crudPermissions']}});}function _0x288e73(_0x363776){const _0x11f880=_0x53a58e;if(_0x363776[_0x11f880(0x1ac4)][_0x11f880(0x66a)]===_0x11f880(0x3d1)){const _0x4e0d53=new FileReader();_0x4e0d53['onload']=function(_0x729f0a){const _0x1d3d16=_0x11f880;console[_0x1d3d16(0x1b4f)](_0x729f0a[_0x1d3d16(0x251d)][_0x1d3d16(0x1205)]);try{let _0x18bd95=atob(_0x729f0a[_0x1d3d16(0x251d)][_0x1d3d16(0x1205)][_0x1d3d16(0xbe1)](',')[0x1]);_0x18bd95=angular[_0x1d3d16(0x284c)](_0x18bd95),_0x4c9382[_0x1d3d16(0x1e32)][_0x1d3d16(0x1c3f)]({'name':_0x18bd95[_0x1d3d16(0x16b6)],'description':_0x18bd95[_0x1d3d16(0x2c1)],'table':_0x18bd95['table'],'conditions':_0x18bd95[_0x1d3d16(0x14dc)],'joins':_0x18bd95[_0x1d3d16(0x1c18)],'parent':_0x8e4cc5[_0x1d3d16(0x622)]['id']})[_0x1d3d16(0x1d77)][_0x1d3d16(0x1cb0)](function(_0x9a701a){const _0x2615d6=_0x1d3d16;_0x8e4cc5[_0x2615d6(0x2318)]['rows'][_0x2615d6(0xf63)](_0x9a701a),_0xcb4bee[_0x2615d6(0x829)]({'title':_0x2615d6(0x65d),'msg':_0x9a701a[_0x2615d6(0x16b6)]?_0x9a701a['name']+'\x20has\x20been\x20saved!':''});const _0x52e857=_0x39641b()['map'](_0x18bd95[_0x2615d6(0x355)],function(_0x50b9d4){const _0x4e10d1=_0x2615d6;return _0x39641b()[_0x4e10d1(0x2765)]({},_0x50b9d4,{'CustomReportId':_0x9a701a['id']});});return _0x4c9382[_0x2615d6(0x14c8)][_0x2615d6(0xb2a)](_0x52e857)[_0x2615d6(0x1d77)];})[_0x1d3d16(0x1cb0)](function(){const _0x429796=_0x1d3d16;_0xcb4bee[_0x429796(0x829)]({'title':_0x429796(0x2659),'msg':_0x429796(0x229)});})[_0x1d3d16(0x1c4)](function(_0x40a3ae){const _0x256119=_0x1d3d16;_0xcb4bee[_0x256119(0x218e)]({'title':_0x40a3ae[_0x256119(0x291)]?_0x256119(0xeb9)+_0x40a3ae['status']+_0x256119(0x1657)+_0x40a3ae[_0x256119(0xc22)]:'SYSTEM:GETanalyticReport','msg':_0x40a3ae[_0x256119(0x25c)]?JSON['stringify'](_0x40a3ae[_0x256119(0x25c)]):_0x40a3ae['toString']()});});}catch(_0x40cd63){console[_0x1d3d16(0x218e)](_0x40cd63),_0xcb4bee[_0x1d3d16(0x218e)]({'title':_0x1d3d16(0x1be2),'msg':_0x40cd63['toString']()});}},_0x4e0d53['readAsDataURL'](_0x363776[_0x11f880(0x1ac4)]);}else _0xcb4bee[_0x11f880(0x218e)]({'title':'Format\x20Error','msg':_0x11f880(0x877)});}function _0xf95520(_0x5144d7){const _0xf2579d=_0x53a58e;_0x8e4cc5['apiName']&&_0x4c9382[_0x8e4cc5[_0xf2579d(0x217d)]][_0xf2579d(0x111d)]({'id':_0x5144d7['id']})[_0xf2579d(0x1d77)][_0xf2579d(0x1cb0)](function(){const _0x4a1214=_0xf2579d;_0x39641b()['remove'](_0x8e4cc5[_0x4a1214(0x2318)][_0x4a1214(0x2214)],{'id':_0x5144d7['id']}),_0x8e4cc5[_0x4a1214(0x2318)][_0x4a1214(0x184d)]-=0x1,!_0x8e4cc5['reports'][_0x4a1214(0x2214)]['length']&&_0x8e4cc5[_0x4a1214(0x903)](),_0xcb4bee[_0x4a1214(0x829)]({'title':_0x4a1214(0x1607),'msg':_0x5144d7[_0x4a1214(0x16b6)]?_0x5144d7[_0x4a1214(0x16b6)]+_0x4a1214(0x3f5):''});})['catch'](function(_0x31262f){const _0x193d6f=_0xf2579d;if(_0x31262f['data']&&_0x31262f[_0x193d6f(0x25c)][_0x193d6f(0x1a7c)]&&_0x31262f[_0x193d6f(0x25c)][_0x193d6f(0x1a7c)]['length']){_0x8e4cc5[_0x193d6f(0x1a7c)]=_0x31262f[_0x193d6f(0x25c)][_0x193d6f(0x1a7c)]||[{'message':_0x31262f['toString'](),'type':'api.analyticreport.delete'}];for(let _0x1b3815=0x0;_0x1b3815<_0x31262f['data'][_0x193d6f(0x1a7c)]['length'];_0x1b3815++){_0xcb4bee[_0x193d6f(0x218e)]({'title':_0x31262f[_0x193d6f(0x25c)][_0x193d6f(0x1a7c)][_0x1b3815][_0x193d6f(0x66a)],'msg':_0x31262f[_0x193d6f(0x25c)][_0x193d6f(0x1a7c)][_0x1b3815][_0x193d6f(0x155e)]});}}else _0xcb4bee[_0x193d6f(0x218e)]({'title':_0x31262f['status']?_0x193d6f(0xeb9)+_0x31262f[_0x193d6f(0x291)]+_0x193d6f(0x1657)+_0x31262f['statusText']:_0x193d6f(0x15a6),'msg':_0x31262f['data']?JSON[_0x193d6f(0x2701)](_0x31262f[_0x193d6f(0x25c)][_0x193d6f(0x155e)]):_0x31262f['message']||_0x31262f['toString']()});});}function _0x6da12c(){const _0x13356a=_0x53a58e,_0x1ee518=angular[_0x13356a(0x17fe)](_0x8e4cc5[_0x13356a(0x916)]);return _0x8e4cc5[_0x13356a(0x916)]=[],_0x1ee518;}function _0x31a028(_0x1fe5cb){const _0x9f184e=_0x53a58e,_0x4deb9c=_0x128fa5[_0x9f184e(0x1551)]()[_0x9f184e(0x1386)](_0x9f184e(0x16ab))['htmlContent'](_0x9f184e(0x204d)+_0x8e4cc5[_0x9f184e(0x916)]['length']+_0x9f184e(0x1d6c)+_0x9f184e(0x1b6))[_0x9f184e(0x15ad)]('delete\x20Reports')['targetEvent'](_0x1fe5cb)['ok']('OK')[_0x9f184e(0x696)]('CANCEL');_0x128fa5['show'](_0x4deb9c)[_0x9f184e(0x1cb0)](function(){const _0x1ef115=_0x9f184e;_0x8e4cc5[_0x1ef115(0x916)]['forEach'](function(_0x2d5a5b){_0xf95520(_0x2d5a5b);}),_0x8e4cc5[_0x1ef115(0x916)]=[];});}function _0x658f40(){const _0x43f152=_0x53a58e;_0x8e4cc5[_0x43f152(0x916)]=[];}function _0x1bc762(){const _0x2806c0=_0x53a58e;_0x8e4cc5['selectedReports']=_0x8e4cc5[_0x2806c0(0x2318)]['rows'];}function _0x1e5220(_0x49cb64,_0x5a3dd6){const _0xd14f55=_0x53a58e;_0x8e4cc5[_0xd14f55(0xfcd)][_0xd14f55(0x735)](!![])['deselect_all'](),_0x8e4cc5[_0xd14f55(0xfcd)][_0xd14f55(0x735)](!![])[_0xd14f55(0x1b7)](),_0x8e4cc5['currentNode']=_0x5a3dd6[_0xd14f55(0x2013)],_0x8e4cc5[_0xd14f55(0x622)]['custom']=!![],_0x8e4cc5[_0xd14f55(0x275a)]=_0x8e4cc5['treeCustomInstance'][_0xd14f55(0x735)](!![])[_0xd14f55(0x147d)](_0x8e4cc5['currentNode'])[_0xd14f55(0x1f66)]('/\x20'),_0x8e4cc5[_0xd14f55(0x217d)]=_0xd14f55(0x1e32),_0x8e4cc5[_0xd14f55(0xae2)][_0xd14f55(0xbfb)]=_0x5a3dd6[_0xd14f55(0x2013)]['id'],_0x33b1a3();}function _0x201f5d(_0x21c4c8,_0xe3235f){const _0x4c8d89=_0x53a58e;_0x8e4cc5['treeCustomInstance'][_0x4c8d89(0x735)](!![])[_0x4c8d89(0x3bf)](),_0x8e4cc5['treeCustomInstance'][_0x4c8d89(0x735)](!![])[_0x4c8d89(0x1b7)](),_0x8e4cc5[_0x4c8d89(0x622)]=_0xe3235f['node'],_0x8e4cc5['currentNode'][_0x4c8d89(0x197c)]=![],_0x8e4cc5[_0x4c8d89(0x275a)]=_0x8e4cc5[_0x4c8d89(0xfcd)][_0x4c8d89(0x735)](!![])[_0x4c8d89(0x147d)](_0x8e4cc5[_0x4c8d89(0x622)])[_0x4c8d89(0x1f66)]('/\x20'),_0x8e4cc5['apiName']=_0x4c8d89(0x1f0c),_0x8e4cc5[_0x4c8d89(0xae2)]['parent']=_0xe3235f[_0x4c8d89(0x2013)]['id'],_0x33b1a3();}function _0x59e1ba(_0x336f5a,_0x550905){const _0x15647d=_0x53a58e,_0x36fbc4=angular[_0x15647d(0x393)](_0x8e4cc5['treeCustomInstance'][_0x15647d(0x735)](!![])['get_json']('#'));_0x4c9382[_0x15647d(0x1df2)]['update']({'id':0x2,'tree':_0x36fbc4})[_0x15647d(0x1d77)][_0x15647d(0x1cb0)](function(){const _0x14c987=_0x15647d;_0x57dc4e['rows'][0x1]&&(_0x57dc4e[_0x14c987(0x2214)][0x1][_0x14c987(0x1bd)]=_0x36fbc4),_0xcb4bee[_0x14c987(0x829)]({'title':_0x14c987(0x1a15),'msg':_0x550905[_0x14c987(0x2013)][_0x14c987(0x19d3)]?_0x550905['node'][_0x14c987(0x19d3)]+'\x20has\x20been\x20updated!':_0x14c987(0x175f)});})[_0x15647d(0x1c4)](function(_0x29ea6e){const _0x4fbb00=_0x15647d;_0xcb4bee[_0x4fbb00(0x218e)]({'title':_0x29ea6e[_0x4fbb00(0x291)]?_0x4fbb00(0xeb9)+_0x29ea6e[_0x4fbb00(0x291)]+_0x4fbb00(0x1657)+_0x29ea6e[_0x4fbb00(0xc22)]:_0x4fbb00(0x67d),'msg':_0x29ea6e['data']?JSON['stringify'](_0x29ea6e['data']):_0x29ea6e[_0x4fbb00(0x147f)]()});});}function _0x3de4a6(_0x185d74){const _0x2a36c0=_0x53a58e;return{'core':{'multiple':![],'animation':!![],'error':function(_0x106a25){const _0x10ffcd=a0_0x5cbd;console[_0x10ffcd(0x218e)](_0x10ffcd(0x2859)+angular[_0x10ffcd(0x393)](_0x106a25));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':_0x185d74?[_0x2a36c0(0x2053),'dnd',_0x2a36c0(0x24be),'state',_0x2a36c0(0x522)]:[_0x2a36c0(0x24be),'state','wholerow'],'contextmenu':{'items':function(_0x465810){const _0x457ed9=_0x2a36c0,_0x3231b8={};return _0x8e4cc5[_0x457ed9(0x1b1a)][_0x457ed9(0xb3d)]&&_0x39641b()[_0x457ed9(0xfad)](_0x3231b8,{'create':{'label':_0x3e56d6[_0x457ed9(0x25cc)]('ANALYTICS.CREATE'),'action':function(){const _0xc073c6=_0x457ed9;_0x465810=_0x8e4cc5[_0xc073c6(0x20be)][_0xc073c6(0x735)](!![])[_0xc073c6(0x295d)](_0x465810),_0x8e4cc5['treeCustomInstance'][_0xc073c6(0x735)](!![])[_0xc073c6(0xe09)](_0x465810);}},'rename':{'_disabled':_0x465810[_0x457ed9(0xbfb)]==='#','label':_0x3e56d6['instant'](_0x457ed9(0x1adb)),'action':function(){const _0x43e941=_0x457ed9;_0x8e4cc5[_0x43e941(0x20be)][_0x43e941(0x735)](!![])[_0x43e941(0xe09)](_0x465810);}}}),_0x8e4cc5[_0x457ed9(0x1b1a)][_0x457ed9(0x1570)]&&_0x39641b()[_0x457ed9(0xfad)](_0x3231b8,{'remove':{'_disabled':_0x465810['parent']==='#','label':_0x3e56d6['instant'](_0x457ed9(0x2b5)),'action':function(){const _0x435313=_0x457ed9,_0x216e6a=_0x128fa5[_0x435313(0x1551)]()[_0x435313(0x1386)](_0x435313(0x26c))[_0x435313(0x49e)](_0x435313(0x204d)+(_0x465810['text']?_0x465810[_0x435313(0x19d3)]:_0x435313(0x77d))+_0x435313(0x1200)+_0x435313(0x11f3))['ariaLabel'](_0x435313(0x1558))['ok']('OK')[_0x435313(0x696)]('CANCEL');_0x128fa5[_0x435313(0xe27)](_0x216e6a)['then'](function(){const _0x29402f=_0x435313;let _0x3bd9ab=_0x8e4cc5['treeCustomInstance'][_0x29402f(0x735)](!![])[_0x29402f(0x156b)](_0x465810);_0x3bd9ab=_0x8e4cc5['treeCustomInstance'][_0x29402f(0x735)](!![])[_0x29402f(0x6b2)](_0x3bd9ab),_0x8e4cc5[_0x29402f(0x20be)]['jstree'](!![])[_0x29402f(0x1e39)](_0x465810),_0x47432b([_0x465810['id']][_0x29402f(0x298a)](_0x465810['children_d']||[])),_0x8e4cc5['treeCustomInstance'][_0x29402f(0x735)](!![])[_0x29402f(0x210e)](_0x3bd9ab);});}}}),_0x3231b8;}}};}function _0x47432b(_0x1f9f3f){const _0x50fc8e=_0x53a58e;return _0x4c9382[_0x50fc8e(0x1e32)]['get']({'parent':_0x1f9f3f['join'](','),'fields':_0x50fc8e(0x43c)})[_0x50fc8e(0x1d77)][_0x50fc8e(0x1cb0)](function(_0x17763d){const _0x26481a=_0x50fc8e;_0x17763d&&_0x17763d['rows']&&_0x17763d['rows'][_0x26481a(0xf90)](function(_0xac558a){_0xf95520(_0xac558a);});})[_0x50fc8e(0x1c4)](function(_0x32137f){const _0xf53941=_0x50fc8e;_0xcb4bee['error']({'title':_0x32137f[_0xf53941(0x291)]?_0xf53941(0xeb9)+_0x32137f[_0xf53941(0x291)]+_0xf53941(0x1657)+_0x32137f['statusText']:'SYSTEM:DELETEreportsByParents','msg':_0x32137f[_0xf53941(0x25c)]?JSON[_0xf53941(0x2701)](_0x32137f[_0xf53941(0x25c)]):_0x32137f['toString']()});});}function _0x15d30a(_0xfcea8){return _0xfcea8?{'create_node':_0x59e1ba,'rename_node':_0x59e1ba,'move_node':_0x59e1ba,'delete_node':_0x59e1ba,'select_node':_0x1e5220}:{'select_node':_0x201f5d};}}const _0x4d0f9d=_0x1212e0;;const _0x1af08e=_0x5074a3['p']+_0x5537c6(0x259b);;_0x139791[_0x5537c6(0x15b6)]=[_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0x16bf),'api','apiName',_0x5537c6(0x22bf),_0x5537c6(0x275a)];function _0x139791(_0x319e9b,_0x2c8de4,_0x2322c7,_0x1348dc,_0x148019,_0x2bf310,_0x591142,_0x536486){const _0x476589=_0x5537c6,_0x494b28=this;_0x494b28[_0x476589(0x1a7c)]=[],_0x494b28[_0x476589(0x16bf)]=angular[_0x476589(0x17fe)](_0x1348dc),_0x494b28[_0x476589(0x12b7)]={},_0x494b28[_0x476589(0x61a)]=_0x34ca10,_0x494b28[_0x476589(0xda0)]=_0x2003aa,_0x494b28[_0x476589(0x2445)]=_0x3e9eac,_0x3e9eac();function _0x3e9eac(){const _0x914d02=_0x476589;_0x494b28[_0x914d02(0x12b7)]={'id':_0x494b28[_0x914d02(0x16bf)]['id'],'name':_0x494b28['report'][_0x914d02(0x16b6)],'startDate':new Date(_0x543b5a()()[_0x914d02(0x1be0)](_0x914d02(0x1a5))),'endDate':new Date(_0x543b5a()()[_0x914d02(0x1b4)](_0x914d02(0x1a5))),'output':_0x914d02(0x189d),'fullPath':_0x536486?_0x536486+'/'+_0x494b28[_0x914d02(0x16bf)]['name']:_0x494b28['report'][_0x914d02(0x16b6)]};}function _0x34ca10(_0x459487){const _0x298792=_0x476589;_0x494b28[_0x298792(0x1a7c)]=[],_0x494b28[_0x298792(0x12c7)]=_0x39641b()[_0x298792(0xfad)]({},_0x494b28[_0x298792(0x12b7)],{'startDate':_0x543b5a()(_0x494b28['export'][_0x298792(0x3e3)])['format'](_0x298792(0x2e8)),'endDate':_0x543b5a()(_0x494b28[_0x298792(0x12b7)][_0x298792(0x193a)])[_0x298792(0x1f31)](_0x298792(0x2e8))}),_0x148019[_0x2bf310][_0x298792(0x19fd)](_0x494b28[_0x298792(0x12c7)])[_0x298792(0x1d77)][_0x298792(0x1cb0)](function(_0x8c9fd5){const _0x5be960=_0x298792;_0x494b28[_0x5be960(0x12b7)]['output']===_0x5be960(0x152f)?_0x2c8de4[_0x5be960(0xe27)]({'controller':_0x5be960(0x158d),'controllerAs':'vm','templateUrl':_0x1af08e,'parent':angular['element'](_0x591142['body']),'targetEvent':_0x459487,'skipHide':!![],'locals':{'apiName':_0x2bf310,'exportDate':_0x494b28[_0x5be960(0x12c7)],'results':_0x8c9fd5},'resolve':{'columns':[_0x5be960(0x1e0b),function(_0x5f31b1){const _0x26c871=_0x5be960,_0x160761={'fields':'field,alias','nolimit':!![]};return _0x160761[_0x2bf310===_0x26c871(0x1e32)?_0x26c871(0x251a):_0x26c871(0x22a0)]=_0x494b28[_0x26c871(0x16bf)]['id'],_0x5f31b1[_0x26c871(0x19a3)]('analyticFieldReport@get',_0x160761);}]}}):(_0x2322c7[_0x5be960(0x829)]({'title':_0x5be960(0x1d5e),'msg':_0x494b28[_0x5be960(0x16bf)][_0x5be960(0x16b6)]?_0x494b28['report'][_0x5be960(0x16b6)]+'\x20has\x20been\x20run!':''}),_0x2003aa());})[_0x298792(0x1c4)](function(_0x581c5c){const _0x2322dc=_0x298792;_0x2322c7['error']({'title':_0x581c5c[_0x2322dc(0x291)]?_0x2322dc(0xeb9)+_0x581c5c[_0x2322dc(0x291)]+'\x20-\x20'+_0x581c5c[_0x2322dc(0xc22)]:'SYSTEM:DESCRIBE','msg':_0x581c5c[_0x2322dc(0x25c)]?JSON[_0x2322dc(0x2701)](_0x581c5c[_0x2322dc(0x25c)][_0x2322dc(0x155e)]):_0x581c5c[_0x2322dc(0x147f)]()});});}function _0x2003aa(){const _0x3a44a1=_0x476589;_0x2c8de4[_0x3a44a1(0x1426)]();}}const _0x31d6ea=_0x139791;;_0xf378e8[_0x5537c6(0x15b6)]=['$mdDialog',_0x5537c6(0x9bf),'api',_0x5537c6(0x1b1),_0x5537c6(0x2872),_0x5537c6(0x217d),_0x5537c6(0x12c7)];function _0xf378e8(_0x2de521,_0x1249c3,_0xc8b731,_0x2b769c,_0x36e97b,_0x30a5b2,_0x1ec4e6){const _0x1e3774=_0x5537c6,_0x5e9bc1=this;_0x5e9bc1[_0x1e3774(0x1a7c)]=[],_0x5e9bc1[_0x1e3774(0x1b1)]=_0x2b769c?_0x2b769c['rows']:[],_0x5e9bc1[_0x1e3774(0x2872)]=_0x36e97b||{'rows':[],'count':0x0},_0x5e9bc1[_0x1e3774(0xae2)]={'limit':0xa,'page':0x1},_0x5e9bc1['closeDialog']=_0x9e350d,_0x5e9bc1[_0x1e3774(0x2041)]=_0x52a52d,_0x5e9bc1[_0x1e3774(0xf39)]=_0x1a7c2b;function _0x52a52d(){const _0x37d524=_0x1e3774;_0x1ec4e6[_0x37d524(0x184b)]=(_0x5e9bc1[_0x37d524(0xae2)][_0x37d524(0x1c7b)]-0x1)*_0x5e9bc1[_0x37d524(0xae2)][_0x37d524(0x236)],_0x1ec4e6[_0x37d524(0x236)]=_0x5e9bc1[_0x37d524(0xae2)]['limit'],_0x5e9bc1[_0x37d524(0x2061)]=_0xc8b731[_0x30a5b2][_0x37d524(0x19fd)](_0x1ec4e6,_0x46ee69)['$promise'];}function _0x1a7c2b(_0x82c16b,_0x3b3d12){const _0x5c79ae=_0x1e3774;return _0x543b5a()(_0x3b3d12,'YYYY-MM-DDTHH:mm:ssZ',!![])['isValid']()&&(_0x3b3d12=_0x543b5a()(_0x3b3d12,'')[_0x5c79ae(0x1f31)]('YYYY-MM-DD\x20HH:mm:ss')),_0x3b3d12;}function _0x46ee69(_0x4d0856){const _0x3ef9ec=_0x1e3774;_0x5e9bc1[_0x3ef9ec(0x2872)]=_0x4d0856||{'count':0x0,'rows':[]};}function _0x9e350d(){const _0x5f552f=_0x1e3774;_0x2de521[_0x5f552f(0x1426)]();}}const _0xcab20=_0xf378e8;;_0x56b327['$inject']=[_0x5537c6(0xbd6)];function _0x56b327(_0x19177a){const _0x1dc067=_0x5537c6;_0x19177a['state'](_0x1dc067(0x1a53),{'url':'/reports','views':{'content@app':{'templateUrl':_0x377423,'controller':_0x1dc067(0xe9a)}},'resolve':{'treeReports':[_0x1dc067(0x1e0b),function(_0x56101d){const _0x56a65f=_0x1dc067;return _0x56101d['resolve'](_0x56a65f(0x21da),{'fields':'id,tree','limit':0xa,'offset':0x0});}],'userProfile':[_0x1dc067(0x1e0b),_0x1dc067(0x1774),function(_0x309964,_0x3f9d01){const _0x4e3502=_0x1dc067;return _0x309964[_0x4e3502(0x19a3)](_0x4e3502(0x9ae),{'fields':_0x4e3502(0x279),'id':_0x3f9d01[_0x4e3502(0x21e8)]()[_0x4e3502(0x13c1)]});}],'userProfileSection':[_0x1dc067(0x1e0b),_0x1dc067(0x1774),function(_0x3709ce,_0x245434){const _0x443e41=_0x1dc067;return _0x3709ce['resolve'](_0x443e41(0x2182),{'fields':_0x443e41(0x1f5f),'userProfileId':_0x245434[_0x443e41(0x21e8)]()[_0x443e41(0x13c1)],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':_0x1dc067(0x2084)})[_0x1dc067(0x27e0)]('app.analytics.reports.edit',{'url':_0x1dc067(0x1bf2),'views':{'content@app':{'templateUrl':_0x595ee7,'controller':'ReportController\x20as\x20vm'}},'resolve':{'report':['apiResolver',_0x1dc067(0x225c),'$q','describeTable',function(_0x48edbf,_0x1fe2bd,_0x15660a,_0x3ec12f){const _0x48549d=_0x1dc067;let _0x1edf7a;return _0x48edbf[_0x48549d(0x19a3)](_0x48549d(0x1637),{'fields':'createdAt,updatedAt,id,name,description,table,conditions,joins','id':_0x1fe2bd['id']})[_0x48549d(0x1cb0)](function(_0x25d2d5){const _0x29b9e8=_0x48549d,_0x4027a7=[];_0x1edf7a=_0x25d2d5;if(_0x1edf7a[_0x29b9e8(0x1c18)])try{_0x1edf7a[_0x29b9e8(0x1c18)]=JSON[_0x29b9e8(0xefe)](_0x1edf7a[_0x29b9e8(0x1c18)]);for(let _0x4158da=0x0;_0x4158da<_0x1edf7a['joins']['length'];_0x4158da+=0x1){_0x4027a7['push'](_0x3ec12f[_0x29b9e8(0x27b0)](_0x1edf7a['joins'][_0x4158da]['foreignTable']));}}catch(_0x5ce206){console[_0x29b9e8(0x1b4f)](_0x5ce206);}return _0x15660a['all'](_0x4027a7);})['then'](function(_0x18d623){const _0xa0966c=_0x48549d;for(let _0x186436=0x0;_0x186436<_0x18d623[_0xa0966c(0xfd0)];_0x186436+=0x1){_0x1edf7a[_0xa0966c(0x1c18)][_0x186436][_0xa0966c(0x1899)]=_0x39641b()[_0xa0966c(0x91f)](_0x39641b()[_0xa0966c(0x1be5)](_0x18d623[_0x186436]),[_0xa0966c(0x1d77),_0xa0966c(0x248e)]);}return _0x1edf7a;});}],'userProfileSection':[_0x1dc067(0x1e0b),_0x1dc067(0x1774),function(_0x2a4860,_0x5b7b01){const _0xaa2c2f=_0x1dc067;return _0x2a4860['resolve'](_0xaa2c2f(0x2182),{'fields':_0xaa2c2f(0x1f5f),'userProfileId':_0x5b7b01[_0xaa2c2f(0x21e8)]()[_0xaa2c2f(0x13c1)],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':'analytics'});}angular[_0x5537c6(0x9ab)](_0x5537c6(0x1a53),[_0x5537c6(0x23a)])[_0x5537c6(0xa60)](_0x56b327)[_0x5537c6(0x6e5)](_0x5537c6(0xc9b),_0x11e00b)[_0x5537c6(0x6e5)]('CreateOrEditReportDialogController',_0x4cbdc8)[_0x5537c6(0x6e5)](_0x5537c6(0x1444),_0x4b05f2)[_0x5537c6(0x234a)]('describeTable',_0x4f0b6d)[_0x5537c6(0x6e5)](_0x5537c6(0x1a59),_0x5a3501)[_0x5537c6(0x6e5)]('ReportFieldsController',_0x1404b6)[_0x5537c6(0x234a)]('sqlUtil',_0x269c73)[_0x5537c6(0x6e5)](_0x5537c6(0x267b),_0x3754bd)[_0x5537c6(0x6e5)](_0x5537c6(0x558),_0x40e364)[_0x5537c6(0x6e5)](_0x5537c6(0x665),_0x4d0f9d)[_0x5537c6(0x6e5)](_0x5537c6(0x1aa8),_0x31d6ea)[_0x5537c6(0x6e5)](_0x5537c6(0x158d),_0xcab20);;_0x182654['$inject']=['$scope',_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x1598),'extractedReport',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting','crudPermissions'];function _0x182654(_0x2fa8f7,_0x5508ef,_0x39a44f,_0x1d2904,_0x5bf5f8,_0x5eca03,_0x5d4d83,_0x4892ad,_0x2ae551,_0x48f7d3,_0xef892,_0x4dd6a8,_0x13ddb2,_0x1632f4){const _0x49959d=_0x5537c6,_0x2ef6af=this;_0x2ef6af[_0x49959d(0xe76)]=_0xef892[_0x49959d(0x21e8)](),_0x2ef6af['errors']=[],_0x2ef6af[_0x49959d(0x9ca)]=_0x13ddb2,_0x2ef6af[_0x49959d(0x8a5)]=_0x4dd6a8,_0x2ef6af[_0x49959d(0x1b1a)]=_0x1632f4,_0x2ef6af[_0x49959d(0xf4c)]={},_0x2ef6af[_0x49959d(0x1b0c)]=_0x2ef6af[_0x49959d(0x9ca)]&&_0x2ef6af[_0x49959d(0x9ca)][_0x49959d(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2ef6af[_0x49959d(0x1386)]=_0x49959d(0x335),_0x2ef6af[_0x49959d(0x3ce)]=angular[_0x49959d(0x17fe)](_0x2ae551),_0x2ef6af[_0x49959d(0x1598)]=_0x4892ad,_0x2ef6af['newExtractedReport']=![];!_0x2ef6af[_0x49959d(0x3ce)]&&(_0x2ef6af[_0x49959d(0x3ce)]={},_0x2ef6af[_0x49959d(0x1386)]=_0x49959d(0x1563),_0x2ef6af[_0x49959d(0x2540)]=!![]);_0x2ef6af[_0x49959d(0xa20)]=_0x2a2b3c,_0x2ef6af['saveExtractedReport']=_0x308708,_0x2ef6af[_0x49959d(0x250)]=_0x3ec8c7,_0x2ef6af[_0x49959d(0x2c4)]=_0x211b2d,_0x2ef6af[_0x49959d(0xda0)]=_0x26e811;function _0x2a2b3c(){const _0x553d5a=_0x49959d;_0x2ef6af[_0x553d5a(0x1a7c)]=[],_0x48f7d3[_0x553d5a(0x1f09)][_0x553d5a(0x1c3f)](_0x2ef6af[_0x553d5a(0x3ce)])[_0x553d5a(0x1d77)][_0x553d5a(0x1cb0)](function(_0x3f6a28){const _0x24fa6c=_0x553d5a;_0x2ef6af[_0x24fa6c(0x1598)][_0x24fa6c(0xf63)](_0x3f6a28[_0x24fa6c(0x19b2)]()),_0x5d4d83['success']({'title':_0x24fa6c(0x1ae7),'msg':_0x2ef6af[_0x24fa6c(0x3ce)][_0x24fa6c(0x16b6)]?_0x2ef6af['extractedReport'][_0x24fa6c(0x16b6)]+_0x24fa6c(0x470):''}),_0x26e811(_0x3f6a28);})[_0x553d5a(0x1c4)](function(_0x3eb78f){const _0x48cd15=_0x553d5a;if(_0x3eb78f[_0x48cd15(0x25c)]&&_0x3eb78f[_0x48cd15(0x25c)]['errors']&&_0x3eb78f[_0x48cd15(0x25c)][_0x48cd15(0x1a7c)][_0x48cd15(0xfd0)]){_0x2ef6af[_0x48cd15(0x1a7c)]=_0x3eb78f[_0x48cd15(0x25c)]['errors']||[{'message':_0x3eb78f[_0x48cd15(0x147f)](),'type':_0x48cd15(0x1f9d)}];for(let _0x452dc0=0x0;_0x452dc0<_0x3eb78f[_0x48cd15(0x25c)][_0x48cd15(0x1a7c)][_0x48cd15(0xfd0)];_0x452dc0+=0x1){_0x5d4d83['error']({'title':_0x3eb78f[_0x48cd15(0x25c)][_0x48cd15(0x1a7c)][_0x452dc0]['type'],'msg':_0x3eb78f[_0x48cd15(0x25c)][_0x48cd15(0x1a7c)][_0x452dc0][_0x48cd15(0x155e)]});}}else _0x5d4d83['error']({'title':_0x3eb78f[_0x48cd15(0x291)]?_0x48cd15(0xeb9)+_0x3eb78f['status']+_0x48cd15(0x1657)+_0x3eb78f[_0x48cd15(0xc22)]:_0x48cd15(0x1f9d),'msg':_0x3eb78f[_0x48cd15(0x25c)]?JSON[_0x48cd15(0x2701)](_0x3eb78f[_0x48cd15(0x25c)][_0x48cd15(0x155e)]):_0x3eb78f[_0x48cd15(0x147f)]()});});}function _0x308708(){const _0x334f47=_0x49959d;_0x2ef6af[_0x334f47(0x1a7c)]=[],_0x48f7d3[_0x334f47(0x1f09)][_0x334f47(0x687)]({'id':_0x2ef6af['extractedReport']['id']},_0x2ef6af[_0x334f47(0x3ce)])['$promise'][_0x334f47(0x1cb0)](function(_0x3828d1){const _0x56b453=_0x334f47,_0x1368ff=_0x39641b()[_0x56b453(0x13b4)](_0x2ef6af[_0x56b453(0x1598)],{'id':_0x3828d1['id']});_0x1368ff&&_0x39641b()[_0x56b453(0x9c1)](_0x1368ff,_0x39641b()[_0x56b453(0x169b)](_0x3828d1[_0x56b453(0x19b2)](),_0x39641b()['keys'](_0x1368ff))),_0x5d4d83[_0x56b453(0x829)]({'title':_0x56b453(0x3c8),'msg':_0x2ef6af['extractedReport']['name']?_0x2ef6af[_0x56b453(0x3ce)]['name']+'\x20has\x20been\x20saved!':''}),_0x26e811(_0x3828d1);})[_0x334f47(0x1c4)](function(_0x3f0766){const _0xc480dd=_0x334f47;if(_0x3f0766[_0xc480dd(0x25c)]&&_0x3f0766[_0xc480dd(0x25c)][_0xc480dd(0x1a7c)]&&_0x3f0766[_0xc480dd(0x25c)][_0xc480dd(0x1a7c)][_0xc480dd(0xfd0)]){_0x2ef6af[_0xc480dd(0x1a7c)]=_0x3f0766['data'][_0xc480dd(0x1a7c)]||[{'message':_0x3f0766[_0xc480dd(0x147f)](),'type':_0xc480dd(0x1fc6)}];for(let _0x322837=0x0;_0x322837<_0x3f0766[_0xc480dd(0x25c)][_0xc480dd(0x1a7c)][_0xc480dd(0xfd0)];_0x322837++){_0x5d4d83[_0xc480dd(0x218e)]({'title':_0x3f0766['data'][_0xc480dd(0x1a7c)][_0x322837][_0xc480dd(0x66a)],'msg':_0x3f0766[_0xc480dd(0x25c)]['errors'][_0x322837][_0xc480dd(0x155e)]});}}else _0x5d4d83[_0xc480dd(0x218e)]({'title':_0x3f0766['status']?_0xc480dd(0xeb9)+_0x3f0766[_0xc480dd(0x291)]+'\x20-\x20'+_0x3f0766[_0xc480dd(0xc22)]:_0xc480dd(0x1fc6),'msg':_0x3f0766[_0xc480dd(0x25c)]?JSON['stringify'](_0x3f0766[_0xc480dd(0x25c)][_0xc480dd(0x155e)]):_0x3f0766[_0xc480dd(0x147f)]()});});}function _0x3ec8c7(_0x2743fe){const _0x3d36b3=_0x49959d;_0x2ef6af[_0x3d36b3(0x1a7c)]=[];const _0x4a2d79=_0x1d2904[_0x3d36b3(0x1551)]()['title'](_0x3d36b3(0x1a2e))['content']('The\x20extractedReport\x20will\x20be\x20deleted.')[_0x3d36b3(0x15ad)]('Delete\x20ExtractedReport')['ok']('Delete')[_0x3d36b3(0x696)](_0x3d36b3(0xde1))[_0x3d36b3(0x728)](_0x2743fe);_0x1d2904[_0x3d36b3(0xe27)](_0x4a2d79)[_0x3d36b3(0x1cb0)](function(){const _0x4cd079=_0x3d36b3;_0x48f7d3[_0x4cd079(0x1f09)]['delete']({'id':_0x2ef6af['extractedReport']['id']})[_0x4cd079(0x1d77)][_0x4cd079(0x1cb0)](function(){const _0x14d135=_0x4cd079;_0x39641b()[_0x14d135(0x152a)](_0x2ef6af[_0x14d135(0x1598)],{'id':_0x2ef6af[_0x14d135(0x3ce)]['id']}),_0x5d4d83['success']({'title':_0x14d135(0xf73),'msg':(_0x2ef6af[_0x14d135(0x3ce)][_0x14d135(0x16b6)]||'extractedReport')+_0x14d135(0x3f5)}),_0x26e811(_0x2ef6af['extractedReport']);})[_0x4cd079(0x1c4)](function(_0xf7195b){const _0x15c680=_0x4cd079;if(_0xf7195b[_0x15c680(0x25c)]&&_0xf7195b[_0x15c680(0x25c)][_0x15c680(0x1a7c)]&&_0xf7195b[_0x15c680(0x25c)][_0x15c680(0x1a7c)][_0x15c680(0xfd0)]){_0x2ef6af[_0x15c680(0x1a7c)]=_0xf7195b[_0x15c680(0x25c)][_0x15c680(0x1a7c)]||[{'message':_0xf7195b['toString'](),'type':_0x15c680(0x62a)}];for(let _0x58e19a=0x0;_0x58e19a<_0xf7195b[_0x15c680(0x25c)][_0x15c680(0x1a7c)][_0x15c680(0xfd0)];_0x58e19a++){_0x5d4d83['error']({'title':_0xf7195b[_0x15c680(0x25c)][_0x15c680(0x1a7c)][_0x58e19a][_0x15c680(0x66a)],'msg':_0xf7195b[_0x15c680(0x25c)][_0x15c680(0x1a7c)][_0x58e19a][_0x15c680(0x155e)]});}}else _0x5d4d83['error']({'title':_0xf7195b[_0x15c680(0x291)]?_0x15c680(0xeb9)+_0xf7195b[_0x15c680(0x291)]+_0x15c680(0x1657)+_0xf7195b[_0x15c680(0xc22)]:_0x15c680(0x62a),'msg':_0xf7195b[_0x15c680(0x25c)]?JSON['stringify'](_0xf7195b[_0x15c680(0x25c)][_0x15c680(0x155e)]):_0xf7195b[_0x15c680(0x155e)]||_0xf7195b[_0x15c680(0x147f)]()});});},function(){});}function _0x211b2d(_0x11ebb7){return _0x11ebb7===null?undefined:new Date(_0x11ebb7);}function _0x26e811(_0x4e600c){const _0x50ee66=_0x49959d;_0x1d2904[_0x50ee66(0x1426)](_0x4e600c);}}const _0x4466d7=_0x182654;;const _0x5b871a=_0x5074a3['p']+_0x5537c6(0xf3d);;_0x5c9a23[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),'$document',_0x5537c6(0x2168),_0x5537c6(0x1ae),'extractedReports',_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x5c9a23(_0x17fbfb,_0xe91f94,_0x19caed,_0x1eb640,_0x107b6a,_0x489abf,_0x3cb793,_0xf571a8,_0x3e7298,_0x4258ec,_0x366cd9,_0x357a91,_0x5d0daa,_0x28ffcb,_0x4c32ef,_0x589390,_0x6b0f11){const _0x2fa884=_0x5537c6,_0x488c59=this;_0x488c59[_0x2fa884(0x8a5)]=_0x589390,_0x488c59['setting']=_0x6b0f11,_0x488c59['currentUser']=_0x4c32ef[_0x2fa884(0x21e8)](),_0x488c59['extractedReports']=_0x3e7298||{'count':0x0,'rows':[]},_0x488c59[_0x2fa884(0x44a)]=_0x4258ec,_0x488c59[_0x2fa884(0x2199)]=_0x366cd9&&_0x366cd9['count']==0x1?_0x366cd9[_0x2fa884(0x2214)][0x0]:null,_0x488c59[_0x2fa884(0x1b1a)]=_0x4c32ef[_0x2fa884(0x14ea)](_0x488c59['userProfileSection']?_0x488c59[_0x2fa884(0x2199)]['crudPermissions']:null),_0x488c59['table']=_0x2fa884(0x1598),_0x488c59[_0x2fa884(0x1d20)]='',_0x488c59[_0x2fa884(0x1cdf)]=null,_0x488c59[_0x2fa884(0x2686)]=[],_0x488c59['query']={'fields':_0x2fa884(0xae5),'sort':_0x2fa884(0x282),'limit':0xa,'page':0x1},_0x488c59[_0x2fa884(0xc93)]=_0x4cb4e8,_0x488c59[_0x2fa884(0x1610)]=_0x4052e7,_0x488c59[_0x2fa884(0x27fe)]=_0x931b60,_0x488c59[_0x2fa884(0x829)]=_0x1e2ab7,_0x488c59[_0x2fa884(0x678)]=_0x285c71,_0x488c59['createOrEditExtractedReport']=_0x2a178b,_0x488c59[_0x2fa884(0x250)]=_0x12f1a7,_0x488c59[_0x2fa884(0x1078)]=_0x2e4ebe,_0x488c59[_0x2fa884(0x1e52)]=_0x3b73cf,_0x488c59[_0x2fa884(0xc43)]=_0x2b6f54,_0x488c59[_0x2fa884(0x1bb8)]=_0x1956b3;function _0x4cb4e8(_0x4a863b,_0xfe6d15){const _0x16ac27=_0x2fa884;_0x107b6a[_0x16ac27(0xe27)]({'controller':_0x16ac27(0xb6b),'controllerAs':'vm','templateUrl':_0x5b871a,'parent':angular[_0x16ac27(0x1853)](_0x489abf[_0x16ac27(0x1ed9)]),'targetEvent':_0xfe6d15,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x4a863b,'extractedReports':_0x488c59[_0x16ac27(0x1598)][_0x16ac27(0x2214)],'license':_0x488c59[_0x16ac27(0x8a5)],'setting':null,'crudPermissions':_0x488c59['crudPermissions']}});}function _0x4052e7(_0x408d41){const _0x32fd28=_0x2fa884;return _0x357a91[_0x32fd28(0x1f09)][_0x32fd28(0x26ec)]({'id':_0x408d41['id']})[_0x32fd28(0x1d77)][_0x32fd28(0x1cb0)](function(_0x4d4c6b){const _0x1454b1=_0x32fd28,_0x4c536f=[_0x4d4c6b[_0x1454b1(0xef0)]];let _0x1eff56=_0x1454b1(0x26ec);const _0xb665cc=new Blob(_0x4c536f,{'type':_0x4d4c6b[_0x1454b1(0x66a)]});_0x1eff56=_0x408d41[_0x1454b1(0x1f86)];const _0x26d760=window[_0x1454b1(0x1db8)]['createElement']('a');_0x26d760[_0x1454b1(0x23b9)]('href',URL['createObjectURL'](_0xb665cc)),_0x26d760[_0x1454b1(0x23b9)]('download',_0x1eff56),document[_0x1454b1(0x1ed9)]['appendChild'](_0x26d760),_0x26d760[_0x1454b1(0x20b8)]();})['catch'](function(_0x550866){const _0x2acc9e=_0x32fd28;if(_0x550866[_0x2acc9e(0x25c)]&&_0x550866[_0x2acc9e(0x25c)][_0x2acc9e(0x1a7c)]&&_0x550866[_0x2acc9e(0x25c)][_0x2acc9e(0x1a7c)]['length'])for(let _0x88fac9=0x0;_0x88fac9<_0x550866[_0x2acc9e(0x25c)][_0x2acc9e(0x1a7c)]['length'];_0x88fac9++){_0x28ffcb[_0x2acc9e(0x218e)]({'title':_0x550866[_0x2acc9e(0x25c)]['errors'][_0x88fac9][_0x2acc9e(0x66a)],'msg':_0x550866[_0x2acc9e(0x25c)][_0x2acc9e(0x1a7c)][_0x88fac9][_0x2acc9e(0x155e)]});}else _0x28ffcb[_0x2acc9e(0x218e)]({'title':_0x550866[_0x2acc9e(0x291)]?_0x2acc9e(0xeb9)+_0x550866['status']+_0x2acc9e(0x1657)+_0x550866[_0x2acc9e(0xc22)]:_0x2acc9e(0x1f9d),'msg':_0x550866[_0x2acc9e(0x25c)]?JSON[_0x2acc9e(0x2701)](_0x550866[_0x2acc9e(0x25c)][_0x2acc9e(0x155e)]):_0x550866['toString']()});});}function _0x931b60(_0x2b422a,_0x3d672b){const _0x49fafa=_0x2fa884,_0x5db555=_0x107b6a[_0x49fafa(0x1551)]()[_0x49fafa(0x1386)](_0x49fafa(0x140b)+_0x39641b()[_0x49fafa(0xa75)]('extractedReport')+'?')[_0x49fafa(0x49e)](''+(_0x2b422a[_0x49fafa(0x16b6)]||_0x49fafa(0x3ce))+_0x49fafa(0x1200)+_0x49fafa(0x1b6))[_0x49fafa(0x15ad)]('delete\x20extractedReport')[_0x49fafa(0x728)](_0x3d672b)['ok']('OK')[_0x49fafa(0x696)](_0x49fafa(0x24ba));_0x107b6a[_0x49fafa(0xe27)](_0x5db555)[_0x49fafa(0x1cb0)](function(){_0x12f1a7(_0x2b422a);},function(){const _0x41175a=_0x49fafa;console[_0x41175a(0x1b4f)](_0x41175a(0x24ba));});}let _0x58edbc=!![],_0x294e59=0x1;_0x17fbfb[_0x2fa884(0x614)](_0x2fa884(0x957),function(_0x596244,_0x3b6fbf){const _0x59893a=_0x2fa884;_0x58edbc?_0x3cb793(function(){_0x58edbc=![];}):(!_0x3b6fbf&&(_0x294e59=_0x488c59['query']['page']),_0x596244!==_0x3b6fbf&&(_0x488c59['query']['page']=0x1),!_0x596244&&(_0x488c59[_0x59893a(0xae2)][_0x59893a(0x1c7b)]=_0x294e59),_0x488c59[_0x59893a(0x678)]());});function _0x1e2ab7(_0x11a17d){const _0x130b97=_0x2fa884;_0x488c59[_0x130b97(0x1598)]=_0x11a17d||{'count':0x0,'rows':[]};}function _0x285c71(){const _0x2c3dca=_0x2fa884;_0x488c59[_0x2c3dca(0xae2)][_0x2c3dca(0x184b)]=(_0x488c59[_0x2c3dca(0xae2)][_0x2c3dca(0x1c7b)]-0x1)*_0x488c59['query'][_0x2c3dca(0x236)],_0x4c32ef[_0x2c3dca(0x22b6)](_0x2c3dca(0x1c60))?_0x488c59[_0x2c3dca(0x2061)]=_0x357a91[_0x2c3dca(0x1f09)]['get'](_0x488c59[_0x2c3dca(0xae2)],_0x1e2ab7)[_0x2c3dca(0x1d77)]:(_0x488c59['query']['id']=_0x488c59[_0x2c3dca(0x44a)]['id'],_0x488c59[_0x2c3dca(0xae2)][_0x2c3dca(0x1f74)]='ExtractedReports',_0x488c59[_0x2c3dca(0x2061)]=_0x357a91['userProfile'][_0x2c3dca(0x1810)](_0x488c59['query'],_0x1e2ab7)[_0x2c3dca(0x1d77)]);}function _0x2a178b(_0x1c51cf,_0x1327f2){const _0x140dfd=_0x2fa884;_0x107b6a[_0x140dfd(0xe27)]({'controller':_0x140dfd(0xb6b),'controllerAs':'vm','templateUrl':_0x5b871a,'parent':angular[_0x140dfd(0x1853)](_0x489abf['body']),'targetEvent':_0x1c51cf,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x1327f2,'extractedReports':_0x488c59[_0x140dfd(0x1598)][_0x140dfd(0x2214)],'license':_0x488c59[_0x140dfd(0x8a5)],'setting':_0x488c59['setting'],'crudPermissions':_0x488c59[_0x140dfd(0x1b1a)]}});}function _0x12f1a7(_0x107231){const _0x155fbe=_0x2fa884;_0x357a91[_0x155fbe(0x1f09)]['delete']({'id':_0x107231['id']})[_0x155fbe(0x1d77)][_0x155fbe(0x1cb0)](function(){const _0x758b5d=_0x155fbe;_0x39641b()[_0x758b5d(0x152a)](_0x488c59[_0x758b5d(0x1598)][_0x758b5d(0x2214)],{'id':_0x107231['id']}),_0x488c59[_0x758b5d(0x1598)][_0x758b5d(0x184d)]-=0x1,!_0x488c59[_0x758b5d(0x1598)][_0x758b5d(0x2214)][_0x758b5d(0xfd0)]&&_0x488c59[_0x758b5d(0x678)](),_0x28ffcb[_0x758b5d(0x829)]({'title':_0x39641b()[_0x758b5d(0xa75)](_0x758b5d(0x254e))+'\x20deleted!','msg':_0x107231['name']?_0x107231[_0x758b5d(0x16b6)]+_0x758b5d(0x3f5):''});})[_0x155fbe(0x1c4)](function(_0x9e107c){const _0x2e073d=_0x155fbe;if(_0x9e107c[_0x2e073d(0x25c)]&&_0x9e107c['data'][_0x2e073d(0x1a7c)]&&_0x9e107c[_0x2e073d(0x25c)]['errors']['length']){_0x488c59[_0x2e073d(0x1a7c)]=_0x9e107c[_0x2e073d(0x25c)][_0x2e073d(0x1a7c)]||[{'message':_0x9e107c[_0x2e073d(0x147f)](),'type':'SYSTEM:DELETEanalyticExtractedReport'}];for(let _0x4e88e1=0x0;_0x4e88e1<_0x9e107c[_0x2e073d(0x25c)][_0x2e073d(0x1a7c)][_0x2e073d(0xfd0)];_0x4e88e1++){_0x28ffcb['error']({'title':_0x9e107c[_0x2e073d(0x25c)][_0x2e073d(0x1a7c)][_0x4e88e1][_0x2e073d(0x66a)],'msg':_0x9e107c[_0x2e073d(0x25c)][_0x2e073d(0x1a7c)][_0x4e88e1][_0x2e073d(0x155e)]});}}else _0x28ffcb[_0x2e073d(0x218e)]({'title':_0x9e107c['status']?_0x2e073d(0xeb9)+_0x9e107c['status']+_0x2e073d(0x1657)+_0x9e107c['statusText']:_0x2e073d(0xf5f),'msg':_0x9e107c[_0x2e073d(0x25c)]?JSON[_0x2e073d(0x2701)](_0x9e107c[_0x2e073d(0x25c)][_0x2e073d(0x155e)]):_0x9e107c[_0x2e073d(0x155e)]||_0x9e107c['toString']()});});}function _0x2e4ebe(){const _0x40a072=_0x2fa884,_0x542611=angular['copy'](_0x488c59[_0x40a072(0x2686)]);return _0x488c59[_0x40a072(0x2686)]=[],_0x542611;}function _0x3b73cf(_0x3d73bd){const _0x2e4056=_0x2fa884,_0xca018e=_0x107b6a[_0x2e4056(0x1551)]()['title'](_0x2e4056(0x2441))[_0x2e4056(0x49e)](_0x2e4056(0x204d)+_0x488c59[_0x2e4056(0x2686)][_0x2e4056(0xfd0)]+_0x2e4056(0x1d6c)+_0x2e4056(0x1b6))[_0x2e4056(0x15ad)](_0x2e4056(0x16d7))[_0x2e4056(0x728)](_0x3d73bd)['ok']('OK')['cancel'](_0x2e4056(0x24ba));_0x107b6a['show'](_0xca018e)['then'](function(){const _0x548f9b=_0x2e4056;_0x488c59[_0x548f9b(0x2686)][_0x548f9b(0xf90)](function(_0xb50989){_0x12f1a7(_0xb50989);}),_0x488c59[_0x548f9b(0x2686)]=[];});}function _0x2b6f54(){const _0x111e08=_0x2fa884;_0x488c59[_0x111e08(0x2686)]=[];}function _0x1956b3(){const _0x3ea662=_0x2fa884;_0x488c59[_0x3ea662(0x2686)]=_0x488c59[_0x3ea662(0x1598)][_0x3ea662(0x2214)];}}const _0x206841=_0x5c9a23;;_0x1c9075['$inject']=['$scope',_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),'metrics',_0x5537c6(0x195f),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x1c9075(_0x4b39f9,_0x4bf2c3,_0x4b8e31,_0xa3bb07,_0x11de5c,_0x8ee6f6,_0x1883cb,_0x3a4922,_0x3fb190,_0xf1920f,_0x340f63,_0x559358,_0x1aeb3a,_0xeb610b){const _0x254574=_0x5537c6,_0x16a854=this;_0x16a854['currentUser']=_0x340f63[_0x254574(0x21e8)](),_0x16a854['errors']=[],_0x16a854[_0x254574(0x9ca)]=_0x1aeb3a,_0x16a854[_0x254574(0x8a5)]=_0x559358,_0x16a854['crudPermissions']=_0xeb610b,_0x16a854[_0x254574(0xf4c)]={},_0x16a854[_0x254574(0x1b0c)]=_0x16a854[_0x254574(0x9ca)]&&_0x16a854[_0x254574(0x9ca)][_0x254574(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x16a854[_0x254574(0x1386)]=_0x254574(0x5be),_0x16a854[_0x254574(0x195f)]=angular[_0x254574(0x17fe)](_0x3fb190),_0x16a854['metrics']=_0x3a4922,_0x16a854[_0x254574(0x149d)]=![];!_0x16a854[_0x254574(0x195f)]&&(_0x16a854['metric']={'table':_0x254574(0x112a)},_0x16a854[_0x254574(0x1386)]='ANALYTICS.NEW_METRIC',_0x16a854[_0x254574(0x149d)]=!![]);_0x16a854[_0x254574(0x1210)]=_0x2ad112,_0x16a854['saveMetric']=_0x5ce1d7,_0x16a854[_0x254574(0x2004)]=_0xd4ff39,_0x16a854['getDateFromString']=_0x13e758,_0x16a854['closeDialog']=_0x390dda;function _0x2ad112(){const _0x3933d9=_0x254574;_0x16a854[_0x3933d9(0x1a7c)]=[],_0xf1920f[_0x3933d9(0xe71)][_0x3933d9(0x1c3f)](_0x16a854['metric'])[_0x3933d9(0x1d77)]['then'](function(_0x15c66b){const _0x3825ac=_0x3933d9;_0x16a854['metrics'][_0x3825ac(0xf63)](_0x15c66b[_0x3825ac(0x19b2)]()),_0x1883cb[_0x3825ac(0x829)]({'title':_0x3825ac(0x744),'msg':_0x16a854[_0x3825ac(0x195f)][_0x3825ac(0x16b6)]?_0x16a854[_0x3825ac(0x195f)][_0x3825ac(0x16b6)]+_0x3825ac(0x470):''}),_0x390dda(_0x15c66b);})[_0x3933d9(0x1c4)](function(_0x43b488){const _0xf9c7a2=_0x3933d9;if(_0x43b488[_0xf9c7a2(0x25c)]&&_0x43b488['data'][_0xf9c7a2(0x1a7c)]&&_0x43b488[_0xf9c7a2(0x25c)][_0xf9c7a2(0x1a7c)][_0xf9c7a2(0xfd0)]){_0x16a854['errors']=_0x43b488[_0xf9c7a2(0x25c)]['errors']||[{'message':_0x43b488[_0xf9c7a2(0x147f)](),'type':_0xf9c7a2(0x179d)}];for(let _0x317770=0x0;_0x317770<_0x43b488[_0xf9c7a2(0x25c)][_0xf9c7a2(0x1a7c)]['length'];_0x317770+=0x1){_0x1883cb['error']({'title':_0x43b488['data'][_0xf9c7a2(0x1a7c)][_0x317770]['type'],'msg':_0x43b488['data']['errors'][_0x317770][_0xf9c7a2(0x155e)]});}}else _0x1883cb[_0xf9c7a2(0x218e)]({'title':_0x43b488[_0xf9c7a2(0x291)]?_0xf9c7a2(0xeb9)+_0x43b488['status']+_0xf9c7a2(0x1657)+_0x43b488['statusText']:'api.analyticMetric.save','msg':_0x43b488[_0xf9c7a2(0x25c)]?JSON[_0xf9c7a2(0x2701)](_0x43b488[_0xf9c7a2(0x25c)][_0xf9c7a2(0x155e)]):_0x43b488[_0xf9c7a2(0x147f)]()});});}function _0x5ce1d7(){const _0x359c05=_0x254574;_0x16a854[_0x359c05(0x1a7c)]=[],_0xf1920f[_0x359c05(0xe71)][_0x359c05(0x687)]({'id':_0x16a854['metric']['id']},_0x16a854['metric'])[_0x359c05(0x1d77)]['then'](function(_0x853ac2){const _0x44549b=_0x359c05,_0x9c41ea=_0x39641b()[_0x44549b(0x13b4)](_0x16a854[_0x44549b(0x27b1)],{'id':_0x853ac2['id']});_0x9c41ea&&_0x39641b()[_0x44549b(0x9c1)](_0x9c41ea,_0x39641b()[_0x44549b(0x169b)](_0x853ac2[_0x44549b(0x19b2)](),_0x39641b()[_0x44549b(0x1be5)](_0x9c41ea))),_0x1883cb[_0x44549b(0x829)]({'title':_0x44549b(0x11a3),'msg':_0x16a854['metric'][_0x44549b(0x16b6)]?_0x16a854[_0x44549b(0x195f)][_0x44549b(0x16b6)]+_0x44549b(0xedb):''}),_0x390dda(_0x853ac2);})['catch'](function(_0x34919c){const _0x4fc6aa=_0x359c05;if(_0x34919c['data']&&_0x34919c[_0x4fc6aa(0x25c)][_0x4fc6aa(0x1a7c)]&&_0x34919c[_0x4fc6aa(0x25c)][_0x4fc6aa(0x1a7c)][_0x4fc6aa(0xfd0)]){_0x16a854[_0x4fc6aa(0x1a7c)]=_0x34919c[_0x4fc6aa(0x25c)][_0x4fc6aa(0x1a7c)]||[{'message':_0x34919c['toString'](),'type':_0x4fc6aa(0x1360)}];for(let _0xe042d1=0x0;_0xe042d1<_0x34919c[_0x4fc6aa(0x25c)][_0x4fc6aa(0x1a7c)][_0x4fc6aa(0xfd0)];_0xe042d1++){_0x1883cb[_0x4fc6aa(0x218e)]({'title':_0x34919c[_0x4fc6aa(0x25c)][_0x4fc6aa(0x1a7c)][_0xe042d1]['type'],'msg':_0x34919c['data'][_0x4fc6aa(0x1a7c)][_0xe042d1][_0x4fc6aa(0x155e)]});}}else _0x1883cb[_0x4fc6aa(0x218e)]({'title':_0x34919c[_0x4fc6aa(0x291)]?_0x4fc6aa(0xeb9)+_0x34919c[_0x4fc6aa(0x291)]+'\x20-\x20'+_0x34919c[_0x4fc6aa(0xc22)]:_0x4fc6aa(0x1360),'msg':_0x34919c['data']?JSON['stringify'](_0x34919c[_0x4fc6aa(0x25c)][_0x4fc6aa(0x155e)]):_0x34919c[_0x4fc6aa(0x147f)]()});});}function _0xd4ff39(_0x37d512){const _0x499e4d=_0x254574;_0x16a854[_0x499e4d(0x1a7c)]=[];const _0x12cf4c=_0xa3bb07[_0x499e4d(0x1551)]()[_0x499e4d(0x1386)](_0x499e4d(0x1a2e))[_0x499e4d(0x862)]('The\x20metric\x20will\x20be\x20deleted.')[_0x499e4d(0x15ad)](_0x499e4d(0x9fb))['ok'](_0x499e4d(0x2594))[_0x499e4d(0x696)](_0x499e4d(0xde1))[_0x499e4d(0x728)](_0x37d512);_0xa3bb07['show'](_0x12cf4c)[_0x499e4d(0x1cb0)](function(){const _0x9ca0fa=_0x499e4d;_0xf1920f[_0x9ca0fa(0xe71)]['delete']({'id':_0x16a854[_0x9ca0fa(0x195f)]['id']})['$promise'][_0x9ca0fa(0x1cb0)](function(){const _0x270997=_0x9ca0fa;_0x39641b()[_0x270997(0x152a)](_0x16a854[_0x270997(0x27b1)],{'id':_0x16a854['metric']['id']}),_0x1883cb[_0x270997(0x829)]({'title':_0x270997(0x1c94),'msg':(_0x16a854[_0x270997(0x195f)]['name']||_0x270997(0x195f))+_0x270997(0x3f5)}),_0x390dda(_0x16a854[_0x270997(0x195f)]);})['catch'](function(_0x1437f4){const _0x111490=_0x9ca0fa;if(_0x1437f4[_0x111490(0x25c)]&&_0x1437f4[_0x111490(0x25c)][_0x111490(0x1a7c)]&&_0x1437f4[_0x111490(0x25c)][_0x111490(0x1a7c)][_0x111490(0xfd0)]){_0x16a854['errors']=_0x1437f4[_0x111490(0x25c)][_0x111490(0x1a7c)]||[{'message':_0x1437f4[_0x111490(0x147f)](),'type':_0x111490(0xa05)}];for(let _0x52cfef=0x0;_0x52cfef<_0x1437f4[_0x111490(0x25c)][_0x111490(0x1a7c)]['length'];_0x52cfef++){_0x1883cb['error']({'title':_0x1437f4[_0x111490(0x25c)][_0x111490(0x1a7c)][_0x52cfef][_0x111490(0x66a)],'msg':_0x1437f4['data'][_0x111490(0x1a7c)][_0x52cfef][_0x111490(0x155e)]});}}else _0x1883cb[_0x111490(0x218e)]({'title':_0x1437f4['status']?_0x111490(0xeb9)+_0x1437f4[_0x111490(0x291)]+_0x111490(0x1657)+_0x1437f4[_0x111490(0xc22)]:_0x111490(0xa05),'msg':_0x1437f4['data']?JSON['stringify'](_0x1437f4[_0x111490(0x25c)][_0x111490(0x155e)]):_0x1437f4[_0x111490(0x155e)]||_0x1437f4[_0x111490(0x147f)]()});});},function(){});}function _0x13e758(_0x57c4c9){return _0x57c4c9===null?undefined:new Date(_0x57c4c9);}function _0x390dda(_0x502b9b){_0xa3bb07['hide'](_0x502b9b);}}const _0x4dd6c1=_0x1c9075;;const _0x6389d8=_0x5074a3['p']+'src/js/modules/main/apps/analytics/views/metrics/create/dialog.html/dialog.html';;_0x5d8b05[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),'$state',_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x27b1),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x5d8b05(_0x3f161f,_0x3b2471,_0x1e7d43,_0x402695,_0x4aaedd,_0x7e3404,_0x2e359d,_0x24e1a5,_0x1f1edb,_0x16ec72,_0x22b553,_0x5d0cf5,_0xd4917a,_0x518102,_0x54e4a0,_0x25b968,_0xc27ecf){const _0x5d49b4=_0x5537c6,_0x4056fc=this;_0x4056fc[_0x5d49b4(0x8a5)]=_0x25b968,_0x4056fc['setting']=_0xc27ecf,_0x4056fc[_0x5d49b4(0xe76)]=_0x54e4a0[_0x5d49b4(0x21e8)](),_0x4056fc[_0x5d49b4(0x27b1)]=_0x1f1edb||{'count':0x0,'rows':[]},_0x4056fc[_0x5d49b4(0x44a)]=_0x16ec72,_0x4056fc[_0x5d49b4(0x2199)]=_0x22b553&&_0x22b553['count']==0x1?_0x22b553[_0x5d49b4(0x2214)][0x0]:null,_0x4056fc['crudPermissions']=_0x54e4a0[_0x5d49b4(0x14ea)](_0x4056fc[_0x5d49b4(0x2199)]?_0x4056fc[_0x5d49b4(0x2199)][_0x5d49b4(0x1b1a)]:null),_0x4056fc['table']=_0x5d49b4(0x27b1),_0x4056fc[_0x5d49b4(0x1d20)]='',_0x4056fc['listOrderAsc']=null,_0x4056fc[_0x5d49b4(0x1203)]=[],_0x4056fc[_0x5d49b4(0xae2)]={'fields':_0x5d49b4(0x1e5c),'sort':_0x5d49b4(0x282),'limit':0xa,'page':0x1},_0x4056fc[_0x5d49b4(0x913)]=_0x39641b()[_0x5d49b4(0x2631)]([{'option':'Agent\x20Report','value':_0x5d49b4(0x975)},{'option':_0x5d49b4(0x5ed),'value':_0x5d49b4(0x1b56)},{'option':_0x5d49b4(0x17c6),'value':'\x27cdr\x27'},{'option':_0x5d49b4(0x11ad),'value':_0x5d49b4(0xa1d)},{'option':_0x5d49b4(0xc49),'value':_0x5d49b4(0xded)},{'option':'Chat\x20Messages','value':'\x27chat_messages\x27'},{'option':_0x5d49b4(0x189),'value':_0x5d49b4(0x26d2)},{'option':_0x5d49b4(0x1f56),'value':_0x5d49b4(0x13b7)},{'option':_0x5d49b4(0x14e5),'value':'\x27report_chat_queue\x27'},{'option':_0x5d49b4(0xecc),'value':'\x27report_chat_transfer\x27'},{'option':_0x5d49b4(0x963),'value':_0x5d49b4(0x1bc3)},{'option':_0x5d49b4(0x20a4),'value':_0x5d49b4(0x1806)},{'option':_0x5d49b4(0x1ab6),'value':_0x5d49b4(0x61c)},{'option':_0x5d49b4(0xe55),'value':_0x5d49b4(0x20d9)},{'option':_0x5d49b4(0x1c7a),'value':_0x5d49b4(0x17b9)},{'option':_0x5d49b4(0x1b61),'value':'\x27cm_hopper\x27'},{'option':_0x5d49b4(0xe45),'value':_0x5d49b4(0xf83)},{'option':_0x5d49b4(0x163b),'value':_0x5d49b4(0x101c)},{'option':_0x5d49b4(0x6da),'value':_0x5d49b4(0x120a)},{'option':_0x5d49b4(0x59f),'value':_0x5d49b4(0x1067)},{'option':_0x5d49b4(0x244d),'value':_0x5d49b4(0x882)},{'option':_0x5d49b4(0x2387),'value':_0x5d49b4(0x188b)},{'option':_0x5d49b4(0x1a35),'value':_0x5d49b4(0xca9)},{'option':_0x5d49b4(0x11ea),'value':_0x5d49b4(0x228)},{'option':_0x5d49b4(0x22f4),'value':_0x5d49b4(0xb90)},{'option':_0x5d49b4(0x1130),'value':'\x27fax_interactions\x27'},{'option':_0x5d49b4(0x214e),'value':_0x5d49b4(0x2f5)},{'option':_0x5d49b4(0xc8e),'value':_0x5d49b4(0xadc)},{'option':_0x5d49b4(0x1213),'value':'\x27report_fax_queue\x27'},{'option':'Fax\x20Report\x20Transfer','value':'\x27report_fax_transfer\x27'},{'option':_0x5d49b4(0x817),'value':_0x5d49b4(0x2616)},{'option':_0x5d49b4(0x127b),'value':'\x27report_jscripty_questions\x27'},{'option':_0x5d49b4(0x1a7f),'value':_0x5d49b4(0xe6b)},{'option':_0x5d49b4(0x191f),'value':_0x5d49b4(0x1e68)},{'option':_0x5d49b4(0x25d9),'value':'\x27report_member\x27'},{'option':_0x5d49b4(0x12a3),'value':'\x27openchannel_accounts\x27'},{'option':_0x5d49b4(0x26cc),'value':_0x5d49b4(0x23cd)},{'option':'Openchannel\x20Messages','value':_0x5d49b4(0xe1d)},{'option':'Openchannel\x20Queues','value':_0x5d49b4(0x3cd)},{'option':_0x5d49b4(0x292c),'value':_0x5d49b4(0x23eb)},{'option':_0x5d49b4(0x2fc),'value':_0x5d49b4(0x278d)},{'option':_0x5d49b4(0x24bf),'value':_0x5d49b4(0x1ae9)},{'option':_0x5d49b4(0xe21),'value':_0x5d49b4(0x925)},{'option':_0x5d49b4(0x11d2),'value':'\x27sms_interactions\x27'},{'option':'SMS\x20Messages','value':_0x5d49b4(0x90b)},{'option':'SMS\x20Queues','value':_0x5d49b4(0x177b)},{'option':_0x5d49b4(0x205c),'value':'\x27report_sms_queue\x27'},{'option':_0x5d49b4(0x26be),'value':'\x27report_sms_transfer\x27'},{'option':'Users','value':'\x27users\x27'},{'option':_0x5d49b4(0xc68),'value':_0x5d49b4(0x27c3)},{'option':_0x5d49b4(0x1d56),'value':_0x5d49b4(0x1227)},{'option':'Whatsapp\x20Interaction','value':_0x5d49b4(0xa5b)},{'option':_0x5d49b4(0x2073),'value':_0x5d49b4(0x2776)},{'option':'Whatsapp\x20Queues','value':_0x5d49b4(0x2045)},{'option':_0x5d49b4(0x46b),'value':_0x5d49b4(0x60e)},{'option':_0x5d49b4(0x1138),'value':'\x27report_whatsapp_transfer\x27'}],function(_0x33387c){const _0x157fd1=_0x5d49b4;return _0x39641b()[_0x157fd1(0x288f)](_0x33387c['value'],new RegExp('\x27','g'),'');}),_0x4056fc[_0x5d49b4(0xc93)]=_0x9fd8e4,_0x4056fc[_0x5d49b4(0x27fe)]=_0x6a6b31,_0x4056fc[_0x5d49b4(0x829)]=_0x5f3ff2,_0x4056fc[_0x5d49b4(0x230a)]=_0x20c1b7,_0x4056fc[_0x5d49b4(0x20bc)]=_0x417948,_0x4056fc[_0x5d49b4(0x2004)]=_0x6743a3,_0x4056fc[_0x5d49b4(0x256a)]=_0x2f442a,_0x4056fc[_0x5d49b4(0xb47)]=_0x268400,_0x4056fc[_0x5d49b4(0x11a1)]=_0x38ff0d,_0x4056fc[_0x5d49b4(0x1452)]=_0x1fcb40;function _0x9fd8e4(_0x538f25,_0x398359){const _0x408611=_0x5d49b4;_0x4aaedd[_0x408611(0xe27)]({'controller':_0x408611(0x2893),'controllerAs':'vm','templateUrl':_0x6389d8,'parent':angular[_0x408611(0x1853)](_0x7e3404[_0x408611(0x1ed9)]),'targetEvent':_0x398359,'clickOutsideToClose':!![],'locals':{'metric':_0x538f25,'metrics':_0x4056fc['metrics'][_0x408611(0x2214)],'license':_0x4056fc[_0x408611(0x8a5)],'setting':null,'crudPermissions':_0x4056fc['crudPermissions']}});}function _0x6a6b31(_0x2c7c5a,_0x380674){const _0x119bfb=_0x5d49b4,_0xce0862=_0x4aaedd[_0x119bfb(0x1551)]()[_0x119bfb(0x1386)](_0x119bfb(0x140b)+_0x39641b()['startCase']('metric')+'?')['htmlContent'](_0x119bfb(0x204d)+(_0x2c7c5a['name']||_0x119bfb(0x195f))+_0x119bfb(0x1200)+_0x119bfb(0x1b6))[_0x119bfb(0x15ad)]('delete\x20metric')[_0x119bfb(0x728)](_0x380674)['ok']('OK')[_0x119bfb(0x696)](_0x119bfb(0x24ba));_0x4aaedd[_0x119bfb(0xe27)](_0xce0862)['then'](function(){_0x6743a3(_0x2c7c5a);},function(){const _0x35cd18=_0x119bfb;console[_0x35cd18(0x1b4f)](_0x35cd18(0x24ba));});}let _0x24a032=!![],_0x1615b9=0x1;_0x3f161f[_0x5d49b4(0x614)](_0x5d49b4(0x957),function(_0x2b3d7f,_0x372e5c){const _0x3f46b7=_0x5d49b4;_0x24a032?_0x2e359d(function(){_0x24a032=![];}):(!_0x372e5c&&(_0x1615b9=_0x4056fc['query']['page']),_0x2b3d7f!==_0x372e5c&&(_0x4056fc[_0x3f46b7(0xae2)][_0x3f46b7(0x1c7b)]=0x1),!_0x2b3d7f&&(_0x4056fc['query']['page']=_0x1615b9),_0x4056fc[_0x3f46b7(0x230a)]());});function _0x5f3ff2(_0x1cc2e0){const _0x68fa8e=_0x5d49b4;_0x4056fc[_0x68fa8e(0x27b1)]=_0x1cc2e0||{'count':0x0,'rows':[]};}function _0x20c1b7(){const _0x363284=_0x5d49b4;_0x4056fc[_0x363284(0xae2)]['offset']=(_0x4056fc[_0x363284(0xae2)][_0x363284(0x1c7b)]-0x1)*_0x4056fc['query'][_0x363284(0x236)],_0x54e4a0[_0x363284(0x22b6)]('admin')?_0x4056fc[_0x363284(0x2061)]=_0x5d0cf5[_0x363284(0xe71)][_0x363284(0xbf7)](_0x4056fc[_0x363284(0xae2)],_0x5f3ff2)[_0x363284(0x1d77)]:(_0x4056fc[_0x363284(0xae2)]['id']=_0x4056fc[_0x363284(0x44a)]['id'],_0x4056fc['query'][_0x363284(0x1f74)]='Metrics',_0x4056fc[_0x363284(0x2061)]=_0x5d0cf5[_0x363284(0x44a)][_0x363284(0x1810)](_0x4056fc[_0x363284(0xae2)],_0x5f3ff2)[_0x363284(0x1d77)]);}function _0x417948(_0x3fc182,_0x5547ac){const _0x5e8f68=_0x5d49b4;_0x4aaedd['show']({'controller':_0x5e8f68(0x2893),'controllerAs':'vm','templateUrl':_0x6389d8,'parent':angular[_0x5e8f68(0x1853)](_0x7e3404[_0x5e8f68(0x1ed9)]),'targetEvent':_0x3fc182,'clickOutsideToClose':!![],'locals':{'metric':_0x5547ac,'metrics':_0x4056fc[_0x5e8f68(0x27b1)][_0x5e8f68(0x2214)],'license':_0x4056fc['license'],'setting':_0x4056fc['setting'],'crudPermissions':_0x4056fc[_0x5e8f68(0x1b1a)]}});}function _0x6743a3(_0x2b705c){const _0x129c58=_0x5d49b4;_0x5d0cf5[_0x129c58(0xe71)][_0x129c58(0x111d)]({'id':_0x2b705c['id']})[_0x129c58(0x1d77)][_0x129c58(0x1cb0)](function(){const _0x20a08d=_0x129c58;_0x39641b()['remove'](_0x4056fc['metrics'][_0x20a08d(0x2214)],{'id':_0x2b705c['id']}),_0x4056fc[_0x20a08d(0x27b1)][_0x20a08d(0x184d)]-=0x1,!_0x4056fc[_0x20a08d(0x27b1)][_0x20a08d(0x2214)][_0x20a08d(0xfd0)]&&_0x4056fc[_0x20a08d(0x230a)](),_0x518102[_0x20a08d(0x829)]({'title':_0x39641b()[_0x20a08d(0xa75)](_0x20a08d(0x18b4))+_0x20a08d(0x2663),'msg':_0x2b705c['name']?_0x2b705c[_0x20a08d(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x129c58(0x1c4)](function(_0x1c0034){const _0x5995c0=_0x129c58;if(_0x1c0034[_0x5995c0(0x25c)]&&_0x1c0034[_0x5995c0(0x25c)]['errors']&&_0x1c0034[_0x5995c0(0x25c)][_0x5995c0(0x1a7c)][_0x5995c0(0xfd0)]){_0x4056fc[_0x5995c0(0x1a7c)]=_0x1c0034[_0x5995c0(0x25c)][_0x5995c0(0x1a7c)]||[{'message':_0x1c0034[_0x5995c0(0x147f)](),'type':_0x5995c0(0x27b6)}];for(let _0x49c94=0x0;_0x49c94<_0x1c0034[_0x5995c0(0x25c)][_0x5995c0(0x1a7c)][_0x5995c0(0xfd0)];_0x49c94++){_0x518102['error']({'title':_0x1c0034[_0x5995c0(0x25c)]['errors'][_0x49c94][_0x5995c0(0x66a)],'msg':_0x1c0034[_0x5995c0(0x25c)][_0x5995c0(0x1a7c)][_0x49c94][_0x5995c0(0x155e)]});}}else _0x518102['error']({'title':_0x1c0034[_0x5995c0(0x291)]?_0x5995c0(0xeb9)+_0x1c0034[_0x5995c0(0x291)]+_0x5995c0(0x1657)+_0x1c0034[_0x5995c0(0xc22)]:_0x5995c0(0x27b6),'msg':_0x1c0034['data']?JSON[_0x5995c0(0x2701)](_0x1c0034[_0x5995c0(0x25c)][_0x5995c0(0x155e)]):_0x1c0034[_0x5995c0(0x155e)]||_0x1c0034[_0x5995c0(0x147f)]()});});}function _0x2f442a(){const _0x1fa5a0=_0x5d49b4,_0x776037=angular[_0x1fa5a0(0x17fe)](_0x4056fc[_0x1fa5a0(0x1203)]);return _0x4056fc[_0x1fa5a0(0x1203)]=[],_0x776037;}function _0x268400(_0x1fbdd5){const _0x36c597=_0x5d49b4,_0x164ebd=_0x4aaedd[_0x36c597(0x1551)]()[_0x36c597(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20metrics?')[_0x36c597(0x49e)](_0x36c597(0x204d)+_0x4056fc['selectedMetrics']['length']+_0x36c597(0x1d6c)+_0x36c597(0x1b6))[_0x36c597(0x15ad)](_0x36c597(0x34a))[_0x36c597(0x728)](_0x1fbdd5)['ok']('OK')['cancel'](_0x36c597(0x24ba));_0x4aaedd[_0x36c597(0xe27)](_0x164ebd)['then'](function(){const _0x1dfd80=_0x36c597;_0x4056fc['selectedMetrics'][_0x1dfd80(0xf90)](function(_0x3eca25){_0x6743a3(_0x3eca25);}),_0x4056fc['selectedMetrics']=[];});}function _0x38ff0d(){_0x4056fc['selectedMetrics']=[];}function _0x1fcb40(){const _0x100813=_0x5d49b4;_0x4056fc[_0x100813(0x1203)]=_0x4056fc[_0x100813(0x27b1)][_0x100813(0x2214)];}}const _0xf039e5=_0x5d8b05;;_0x4e8879['$inject']=['$stateProvider',_0x5537c6(0x1f2a)];function _0x4e8879(_0x35298a,_0x35f8f8){const _0x1ea42a=_0x5537c6;_0x35298a[_0x1ea42a(0x27e0)](_0x1ea42a(0x2148),{'abstract':!![],'url':_0x1ea42a(0x1e8e)})[_0x1ea42a(0x27e0)](_0x1ea42a(0x16d0),{'url':_0x1ea42a(0x25c0),'views':{'content@app':{'templateUrl':_0x2fce49,'controller':'MetricsController\x20as\x20vm'}},'resolve':{'metrics':['apiResolver',_0x1ea42a(0x1774),function(_0x5adc9f,_0x3fb80e){const _0x202eda=_0x1ea42a;return _0x3fb80e[_0x202eda(0x22b6)](_0x202eda(0x1c60))?_0x5adc9f[_0x202eda(0x19a3)](_0x202eda(0x1d9),{'fields':'createdAt,updatedAt,id,name,table,metric,description','sort':_0x202eda(0x282),'limit':0xa,'offset':0x0}):_0x5adc9f[_0x202eda(0x19a3)](_0x202eda(0x12da),{'id':_0x3fb80e[_0x202eda(0x21e8)]()[_0x202eda(0x13c1)],'section':'Metrics','fields':_0x202eda(0x1e5c),'sort':_0x202eda(0x282),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1ea42a(0x1e0b),_0x1ea42a(0x1774),function(_0x18522c,_0x49ad6c){const _0x2d20e3=_0x1ea42a;return _0x49ad6c['hasRole'](_0x2d20e3(0x1c60))?null:_0x18522c[_0x2d20e3(0x19a3)](_0x2d20e3(0x9ae),{'fields':_0x2d20e3(0x279),'id':_0x49ad6c['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x1ea42a(0x1e0b),_0x1ea42a(0x1774),function(_0x429553,_0x41f896){const _0x27fc9e=_0x1ea42a;return _0x41f896[_0x27fc9e(0x22b6)]('admin')?null:_0x429553['resolve'](_0x27fc9e(0x2182),{'fields':_0x27fc9e(0x1f5f),'userProfileId':_0x41f896[_0x27fc9e(0x21e8)]()[_0x27fc9e(0x13c1)],'sectionId':0x4b1});}]},'authenticate':!![],'permissionId':0x4b1,'bodyClass':_0x1ea42a(0x2084)})[_0x1ea42a(0x27e0)](_0x1ea42a(0x1a65),{'url':_0x1ea42a(0xd06),'views':{'content@app':{'templateUrl':_0x4222e5,'controller':_0x1ea42a(0xcc2)}},'resolve':{'extractedReports':[_0x1ea42a(0x1e0b),_0x1ea42a(0x1774),function(_0x1e67d8,_0xc1e950){const _0x5edfdc=_0x1ea42a;return _0xc1e950['hasRole'](_0x5edfdc(0x1c60))?_0x1e67d8[_0x5edfdc(0x19a3)](_0x5edfdc(0x10f1),{'fields':_0x5edfdc(0xae5),'sort':_0x5edfdc(0x282),'limit':0xa,'offset':0x0}):_0x1e67d8[_0x5edfdc(0x19a3)]('userProfile@getResources',{'id':_0xc1e950[_0x5edfdc(0x21e8)]()['userProfileId'],'section':'ExtractedReports','fields':'createdAt,updatedAt,id,name,basename,savename,type,startDate,endDate,status,output,reportId,reportType','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x1ea42a(0x1774),function(_0x170f63,_0x5e98e2){const _0x1cbdce=_0x1ea42a;return _0x5e98e2['hasRole'](_0x1cbdce(0x1c60))?null:_0x170f63['resolve'](_0x1cbdce(0x9ae),{'fields':_0x1cbdce(0x279),'id':_0x5e98e2['getCurrentUser']()[_0x1cbdce(0x13c1)]});}],'userProfileSection':[_0x1ea42a(0x1e0b),_0x1ea42a(0x1774),function(_0x30defc,_0x1892df){const _0x892185=_0x1ea42a;return _0x1892df[_0x892185(0x22b6)](_0x892185(0x1c60))?null:_0x30defc['resolve'](_0x892185(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1892df['getCurrentUser']()[_0x892185(0x13c1)],'sectionId':0x4b2});}]},'authenticate':!![],'permissionId':0x4b2,'bodyClass':'analytics'}),_0x35f8f8[_0x1ea42a(0x4e7)]('app/main/apps/analytics');}angular[_0x5537c6(0x9ab)](_0x5537c6(0x2148),[_0x5537c6(0x2770),'ngPassword',_0x5537c6(0x1260),_0x5537c6(0xacf),'mdColorPicker',_0x5537c6(0xd19),_0x5537c6(0x44c),_0x5537c6(0x2ec),'ngAnimate',_0x5537c6(0x167d),_0x5537c6(0x208f),_0x5537c6(0x1b65),'mwFormUtils',_0x5537c6(0x3b9),_0x5537c6(0x7c9),_0x5537c6(0xeb5),_0x5537c6(0x27af),_0x5537c6(0x13b6),_0x5537c6(0x1cbd),'angular.filter','app.analytics.reports'])[_0x5537c6(0xa60)](_0x4e8879)[_0x5537c6(0x6e5)](_0x5537c6(0xb6b),_0x4466d7)[_0x5537c6(0x6e5)]('ExtractedReportsController',_0x206841)[_0x5537c6(0x6e5)](_0x5537c6(0x2893),_0x4dd6c1)[_0x5537c6(0x6e5)]('MetricsController',_0xf039e5);;const _0x3de60c=_0x5074a3['p']+_0x5537c6(0x37b);;const _0x4b7422=_0x5074a3['p']+'src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/view.html/view.html';;const _0x4669ec=_0x5074a3['p']+_0x5537c6(0x1e01);;const _0x409691=_0x5074a3['p']+_0x5537c6(0x89c);;const _0x39215b=_0x5074a3['p']+_0x5537c6(0x1e6d);;const _0x5a6eed=_0x5074a3['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/view.html/view.html';;const _0xdd640e=_0x5074a3['p']+_0x5537c6(0x1dca);;const _0x33a88a=_0x5074a3['p']+'src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/view.html/view.html';;const _0x3cb839=_0x5074a3['p']+'src/js/modules/main/apps/integrations/views/deskAccounts/deskAccounts.html/deskAccounts.html';;const _0x2567d5=_0x5074a3['p']+'src/js/modules/main/apps/integrations/views/deskAccounts/edit/view.html/view.html';;const _0xb1f74b=_0x5074a3['p']+_0x5537c6(0xf32);;const _0x27b766=_0x5074a3['p']+_0x5537c6(0x1664);;const _0x439e26=_0x5074a3['p']+_0x5537c6(0xc9f);;const _0x56b8a2=_0x5074a3['p']+_0x5537c6(0x701);;const _0x2a63a7=_0x5074a3['p']+_0x5537c6(0x316);;const _0x57c379=_0x5074a3['p']+_0x5537c6(0xbb1);;const _0x1f4627=_0x5074a3['p']+_0x5537c6(0x23f9);;const _0xf47517=_0x5074a3['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/view.html/view.html';;const _0x4b0452=_0x5074a3['p']+_0x5537c6(0xcb1);;const _0x171142=_0x5074a3['p']+_0x5537c6(0x1eb1);;_0x4df5ed[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),'deskAccounts',_0x5537c6(0x1244),_0x5537c6(0x142b),'Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x4df5ed(_0x2fac62,_0x4df486,_0x41f71c,_0x5ca92e,_0x54b653,_0x56621b,_0x164990,_0x36089b,_0x206fae,_0x339a35,_0x58a9c2,_0x358fd1,_0x111a4f,_0x28c0a1){const _0x522aea=_0x5537c6,_0x38071f=this;_0x38071f['currentUser']=_0x58a9c2[_0x522aea(0x21e8)](),_0x38071f['errors']=[],_0x38071f[_0x522aea(0x9ca)]=_0x111a4f,_0x38071f[_0x522aea(0x8a5)]=_0x358fd1,_0x38071f['crudPermissions']=_0x28c0a1,_0x38071f[_0x522aea(0xf4c)]={},_0x38071f[_0x522aea(0x1b0c)]=_0x38071f[_0x522aea(0x9ca)]&&_0x38071f[_0x522aea(0x9ca)][_0x522aea(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x38071f[_0x522aea(0x1386)]='INTEGRATIONS.EDIT_DESKACCOUNT',_0x38071f[_0x522aea(0x1244)]=angular[_0x522aea(0x17fe)](_0x206fae),_0x38071f['deskAccounts']=_0x36089b,_0x38071f['newDeskAccount']=![];!_0x38071f[_0x522aea(0x1244)]&&(_0x38071f[_0x522aea(0x1244)]={'type':'integrationTab','authType':'basic','serverUrl':_0x41f71c[_0x522aea(0x2276)]()+_0x522aea(0x138b)+_0x41f71c['host']()+(_0x41f71c[_0x522aea(0x477)]()?':'+_0x41f71c[_0x522aea(0x477)]():'')},_0x38071f['title']=_0x522aea(0x38d),_0x38071f[_0x522aea(0x148c)]=!![]);_0x38071f[_0x522aea(0x763)]=_0x588ff0,_0x38071f[_0x522aea(0x1ccf)]=_0x1248e1,_0x38071f[_0x522aea(0xba1)]=_0x2ed9cc,_0x38071f[_0x522aea(0x2c4)]=_0x433bbe,_0x38071f[_0x522aea(0xda0)]=_0x256c6e;function _0x588ff0(){const _0x4dcb90=_0x522aea;_0x38071f[_0x4dcb90(0x1a7c)]=[],_0x339a35[_0x4dcb90(0x2559)][_0x4dcb90(0x1c3f)](_0x38071f['deskAccount'])['$promise'][_0x4dcb90(0x1cb0)](function(_0x2d167a){const _0x2d2f98=_0x4dcb90;_0x38071f[_0x2d2f98(0x1dc3)][_0x2d2f98(0xf63)](_0x2d167a[_0x2d2f98(0x19b2)]()),_0x164990[_0x2d2f98(0x829)]({'title':_0x2d2f98(0x1c49),'msg':_0x38071f['deskAccount'][_0x2d2f98(0x16b6)]?_0x38071f[_0x2d2f98(0x1244)]['name']+_0x2d2f98(0x470):''}),_0x256c6e(_0x2d167a);})['catch'](function(_0x77fd69){const _0x553211=_0x4dcb90;if(_0x77fd69[_0x553211(0x25c)]&&_0x77fd69['data']['errors']&&_0x77fd69[_0x553211(0x25c)][_0x553211(0x1a7c)]['length']){_0x38071f[_0x553211(0x1a7c)]=_0x77fd69[_0x553211(0x25c)]['errors']||[{'message':_0x77fd69['toString'](),'type':_0x553211(0x1e87)}];for(let _0xc46fa7=0x0;_0xc46fa7<_0x77fd69[_0x553211(0x25c)]['errors'][_0x553211(0xfd0)];_0xc46fa7+=0x1){_0x164990[_0x553211(0x218e)]({'title':_0x77fd69[_0x553211(0x25c)]['errors'][_0xc46fa7][_0x553211(0x66a)],'msg':_0x77fd69['data'][_0x553211(0x1a7c)][_0xc46fa7]['message']});}}else _0x164990['error']({'title':_0x77fd69['status']?_0x553211(0xeb9)+_0x77fd69[_0x553211(0x291)]+_0x553211(0x1657)+_0x77fd69[_0x553211(0xc22)]:_0x553211(0x1e87),'msg':_0x77fd69[_0x553211(0x25c)]?JSON['stringify'](_0x77fd69[_0x553211(0x25c)][_0x553211(0x155e)]):_0x77fd69[_0x553211(0x147f)]()});});}function _0x1248e1(){const _0x277d34=_0x522aea;_0x38071f[_0x277d34(0x1a7c)]=[],_0x339a35['intDeskAccount'][_0x277d34(0x687)]({'id':_0x38071f[_0x277d34(0x1244)]['id']},_0x38071f[_0x277d34(0x1244)])['$promise'][_0x277d34(0x1cb0)](function(_0x5792d5){const _0x13d8ba=_0x277d34,_0x1f7dcb=_0x39641b()[_0x13d8ba(0x13b4)](_0x38071f[_0x13d8ba(0x1dc3)],{'id':_0x5792d5['id']});_0x1f7dcb&&_0x39641b()[_0x13d8ba(0x9c1)](_0x1f7dcb,_0x39641b()[_0x13d8ba(0x169b)](_0x5792d5['toJSON'](),_0x39641b()[_0x13d8ba(0x1be5)](_0x1f7dcb))),_0x164990[_0x13d8ba(0x829)]({'title':_0x13d8ba(0x1de7),'msg':_0x38071f[_0x13d8ba(0x1244)]['name']?_0x38071f[_0x13d8ba(0x1244)][_0x13d8ba(0x16b6)]+_0x13d8ba(0xedb):''}),_0x256c6e(_0x5792d5);})[_0x277d34(0x1c4)](function(_0x1384d5){const _0x124c6c=_0x277d34;if(_0x1384d5[_0x124c6c(0x25c)]&&_0x1384d5['data'][_0x124c6c(0x1a7c)]&&_0x1384d5[_0x124c6c(0x25c)][_0x124c6c(0x1a7c)][_0x124c6c(0xfd0)]){_0x38071f[_0x124c6c(0x1a7c)]=_0x1384d5[_0x124c6c(0x25c)][_0x124c6c(0x1a7c)]||[{'message':_0x1384d5[_0x124c6c(0x147f)](),'type':_0x124c6c(0x145c)}];for(let _0x50ed5d=0x0;_0x50ed5d<_0x1384d5[_0x124c6c(0x25c)][_0x124c6c(0x1a7c)][_0x124c6c(0xfd0)];_0x50ed5d++){_0x164990['error']({'title':_0x1384d5[_0x124c6c(0x25c)]['errors'][_0x50ed5d][_0x124c6c(0x66a)],'msg':_0x1384d5[_0x124c6c(0x25c)][_0x124c6c(0x1a7c)][_0x50ed5d][_0x124c6c(0x155e)]});}}else _0x164990[_0x124c6c(0x218e)]({'title':_0x1384d5[_0x124c6c(0x291)]?_0x124c6c(0xeb9)+_0x1384d5[_0x124c6c(0x291)]+'\x20-\x20'+_0x1384d5[_0x124c6c(0xc22)]:_0x124c6c(0x145c),'msg':_0x1384d5[_0x124c6c(0x25c)]?JSON[_0x124c6c(0x2701)](_0x1384d5[_0x124c6c(0x25c)][_0x124c6c(0x155e)]):_0x1384d5[_0x124c6c(0x147f)]()});});}function _0x2ed9cc(_0x4fe4ed){const _0x11fbe0=_0x522aea;_0x38071f[_0x11fbe0(0x1a7c)]=[];const _0x481f5=_0x5ca92e[_0x11fbe0(0x1551)]()[_0x11fbe0(0x1386)]('Are\x20you\x20sure?')[_0x11fbe0(0x862)](_0x11fbe0(0x149f))[_0x11fbe0(0x15ad)](_0x11fbe0(0x165a))['ok'](_0x11fbe0(0x2594))[_0x11fbe0(0x696)](_0x11fbe0(0xde1))[_0x11fbe0(0x728)](_0x4fe4ed);_0x5ca92e[_0x11fbe0(0xe27)](_0x481f5)[_0x11fbe0(0x1cb0)](function(){const _0x159a94=_0x11fbe0;_0x339a35[_0x159a94(0x2559)][_0x159a94(0x111d)]({'id':_0x38071f['deskAccount']['id']})['$promise']['then'](function(){const _0x40e020=_0x159a94;_0x39641b()[_0x40e020(0x152a)](_0x38071f['deskAccounts'],{'id':_0x38071f[_0x40e020(0x1244)]['id']}),_0x164990[_0x40e020(0x829)]({'title':_0x40e020(0x1722),'msg':(_0x38071f[_0x40e020(0x1244)]['name']||_0x40e020(0x1244))+_0x40e020(0x3f5)}),_0x256c6e(_0x38071f[_0x40e020(0x1244)]);})[_0x159a94(0x1c4)](function(_0x443509){const _0x45019a=_0x159a94;if(_0x443509['data']&&_0x443509['data'][_0x45019a(0x1a7c)]&&_0x443509[_0x45019a(0x25c)]['errors'][_0x45019a(0xfd0)]){_0x38071f[_0x45019a(0x1a7c)]=_0x443509[_0x45019a(0x25c)][_0x45019a(0x1a7c)]||[{'message':_0x443509[_0x45019a(0x147f)](),'type':'api.intDeskAccount.delete'}];for(let _0x45c9d9=0x0;_0x45c9d9<_0x443509[_0x45019a(0x25c)]['errors']['length'];_0x45c9d9++){_0x164990[_0x45019a(0x218e)]({'title':_0x443509[_0x45019a(0x25c)]['errors'][_0x45c9d9]['type'],'msg':_0x443509['data']['errors'][_0x45c9d9][_0x45019a(0x155e)]});}}else _0x164990['error']({'title':_0x443509[_0x45019a(0x291)]?_0x45019a(0xeb9)+_0x443509[_0x45019a(0x291)]+_0x45019a(0x1657)+_0x443509[_0x45019a(0xc22)]:_0x45019a(0x5cf),'msg':_0x443509[_0x45019a(0x25c)]?JSON[_0x45019a(0x2701)](_0x443509[_0x45019a(0x25c)][_0x45019a(0x155e)]):_0x443509['message']||_0x443509[_0x45019a(0x147f)]()});});},function(){});}function _0x433bbe(_0x42601f){return _0x42601f===null?undefined:new Date(_0x42601f);}function _0x256c6e(_0x25cebe){const _0x12ee3a=_0x522aea;_0x5ca92e[_0x12ee3a(0x1426)](_0x25cebe);}}const _0x282028=_0x4df5ed;;const _0x579709=_0x5074a3['p']+_0x5537c6(0x27c6);;_0x451cee[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),'$state','$mdSidenav',_0x5537c6(0xcb9),'$document','$timeout','$translate',_0x5537c6(0x1dc3),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),'msUtils',_0x5537c6(0x9bf),'Auth',_0x5537c6(0x8a5),'setting'];function _0x451cee(_0x668c75,_0x181cae,_0x3a95b3,_0x18c9d0,_0x4bee75,_0x16164f,_0x46afe1,_0x33ea86,_0x388264,_0x1fb1dd,_0x40af41,_0x41d50a,_0x61ffd6,_0x2b328a,_0x5e9294,_0x34f53b,_0x4bf8dd){const _0x242583=_0x5537c6,_0x32bcce=this;_0x32bcce[_0x242583(0x8a5)]=_0x34f53b,_0x32bcce['setting']=_0x4bf8dd,_0x32bcce[_0x242583(0xe76)]=_0x5e9294[_0x242583(0x21e8)](),_0x32bcce['deskAccounts']=_0x388264||{'count':0x0,'rows':[]},_0x32bcce[_0x242583(0x44a)]=_0x1fb1dd,_0x32bcce[_0x242583(0x2199)]=_0x40af41&&_0x40af41['count']==0x1?_0x40af41['rows'][0x0]:null,_0x32bcce['crudPermissions']=_0x5e9294[_0x242583(0x14ea)](_0x32bcce[_0x242583(0x2199)]?_0x32bcce[_0x242583(0x2199)][_0x242583(0x1b1a)]:null),_0x32bcce['table']=_0x242583(0x1dc3),_0x32bcce[_0x242583(0x1d20)]='',_0x32bcce[_0x242583(0x1cdf)]=null,_0x32bcce[_0x242583(0x1fd0)]=[],_0x32bcce[_0x242583(0xae2)]={'fields':_0x242583(0x226f),'limit':0xa,'page':0x1},_0x32bcce[_0x242583(0x101d)]=_0x39641b()['keyBy']([{'option':'Integration_Tab','value':_0x242583(0x9f5)},{'option':_0x242583(0x1eb5),'value':'\x27newTab\x27'}],function(_0x2cb7d4){return _0x39641b()['replace'](_0x2cb7d4['value'],new RegExp('\x27','g'),'');}),_0x32bcce[_0x242583(0x2535)]=_0x39641b()[_0x242583(0x2631)]([{'option':'Basic','value':_0x242583(0x1686)}],function(_0x5d5785){return _0x39641b()['replace'](_0x5d5785['value'],new RegExp('\x27','g'),'');}),_0x32bcce[_0x242583(0x235d)]=_0x33a73f,_0x32bcce[_0x242583(0x6b1)]=_0xe9d3bc,_0x32bcce[_0x242583(0x27fe)]=_0x1216e2,_0x32bcce['success']=_0x1e076e,_0x32bcce[_0x242583(0x2881)]=_0x29b37b,_0x32bcce['createOrEditDeskAccount']=_0x315a69,_0x32bcce['deleteDeskAccount']=_0x51a0d5,_0x32bcce[_0x242583(0xa78)]=_0x4780c0,_0x32bcce['deleteSelectedDeskAccounts']=_0x16f33a,_0x32bcce['deselectDeskAccounts']=_0x3d80da,_0x32bcce[_0x242583(0x1f18)]=_0x3251d7;function _0x33a73f(_0x3ffb6a){const _0xd1c583=_0x242583;_0x3a95b3['go'](_0xd1c583(0x2157),{'id':_0x3ffb6a['id'],'deskAccount':_0x3ffb6a,'crudPermissions':_0x32bcce[_0xd1c583(0x1b1a)]});}function _0xe9d3bc(_0x4544d9){const _0x4b34b1=_0x242583;return _0x41d50a['intDeskAccount'][_0x4b34b1(0xc84)]({'id':_0x4544d9['id'],'test':!![]})[_0x4b34b1(0x1d77)][_0x4b34b1(0x1cb0)](function(){const _0x40690b=_0x4b34b1;_0x2b328a[_0x40690b(0x829)]({'title':_0x40690b(0x221c),'msg':'Connection\x20succeded!'});})[_0x4b34b1(0x1c4)](function(_0x402638){const _0x3bdc23=_0x4b34b1;_0x2b328a[_0x3bdc23(0x218e)]({'title':_0x3bdc23(0x221c),'msg':_0x402638[_0x3bdc23(0x25c)]?_0x402638[_0x3bdc23(0x25c)][_0x3bdc23(0x155e)]?_0x402638[_0x3bdc23(0x25c)]['message']:JSON['stringify'](_0x402638['data']):_0x402638[_0x3bdc23(0x147f)]()});});}function _0x1216e2(_0x102d4e,_0x5408f6){const _0x27701d=_0x242583,_0x509c62=_0x4bee75['confirm']()[_0x27701d(0x1386)](_0x27701d(0x140b)+_0x39641b()['startCase'](_0x27701d(0x1244))+'?')['htmlContent'](_0x27701d(0x204d)+(_0x102d4e[_0x27701d(0x16b6)]||_0x27701d(0x1244))+_0x27701d(0x1200)+_0x27701d(0x1b6))[_0x27701d(0x15ad)](_0x27701d(0x16c5))[_0x27701d(0x728)](_0x5408f6)['ok']('OK')[_0x27701d(0x696)](_0x27701d(0x24ba));_0x4bee75['show'](_0x509c62)[_0x27701d(0x1cb0)](function(){_0x51a0d5(_0x102d4e);},function(){const _0x9b1494=_0x27701d;console[_0x9b1494(0x1b4f)](_0x9b1494(0x24ba));});}let _0x360422=!![],_0x2e065f=0x1;_0x668c75[_0x242583(0x614)](_0x242583(0x957),function(_0x4147a5,_0x2f32a3){const _0x467c06=_0x242583;_0x360422?_0x46afe1(function(){_0x360422=![];}):(!_0x2f32a3&&(_0x2e065f=_0x32bcce[_0x467c06(0xae2)][_0x467c06(0x1c7b)]),_0x4147a5!==_0x2f32a3&&(_0x32bcce[_0x467c06(0xae2)][_0x467c06(0x1c7b)]=0x1),!_0x4147a5&&(_0x32bcce[_0x467c06(0xae2)][_0x467c06(0x1c7b)]=_0x2e065f),_0x32bcce[_0x467c06(0x2881)]());});function _0x1e076e(_0x5292ee){const _0x58fc49=_0x242583;_0x32bcce[_0x58fc49(0x1dc3)]=_0x5292ee||{'count':0x0,'rows':[]};}function _0x29b37b(){const _0xa1acf0=_0x242583;_0x32bcce[_0xa1acf0(0xae2)][_0xa1acf0(0x184b)]=(_0x32bcce[_0xa1acf0(0xae2)][_0xa1acf0(0x1c7b)]-0x1)*_0x32bcce[_0xa1acf0(0xae2)][_0xa1acf0(0x236)],_0x5e9294[_0xa1acf0(0x22b6)]('admin')?_0x32bcce['promise']=_0x41d50a[_0xa1acf0(0x2559)][_0xa1acf0(0xbf7)](_0x32bcce[_0xa1acf0(0xae2)],_0x1e076e)[_0xa1acf0(0x1d77)]:(_0x32bcce[_0xa1acf0(0xae2)]['id']=_0x32bcce[_0xa1acf0(0x44a)]['id'],_0x32bcce['query'][_0xa1acf0(0x1f74)]=_0xa1acf0(0x937),_0x32bcce[_0xa1acf0(0x2061)]=_0x41d50a[_0xa1acf0(0x44a)][_0xa1acf0(0x1810)](_0x32bcce['query'],_0x1e076e)[_0xa1acf0(0x1d77)]);}function _0x315a69(_0x5584df,_0x27a820){const _0x90e953=_0x242583;_0x4bee75[_0x90e953(0xe27)]({'controller':_0x90e953(0x457),'controllerAs':'vm','templateUrl':_0x579709,'parent':angular[_0x90e953(0x1853)](_0x16164f[_0x90e953(0x1ed9)]),'targetEvent':_0x5584df,'clickOutsideToClose':!![],'locals':{'deskAccount':_0x27a820,'deskAccounts':_0x32bcce[_0x90e953(0x1dc3)][_0x90e953(0x2214)],'license':_0x32bcce[_0x90e953(0x8a5)],'setting':_0x32bcce['setting'],'crudPermissions':_0x32bcce['crudPermissions']}});}function _0x51a0d5(_0x5c1ced){const _0x244c68=_0x242583;_0x41d50a[_0x244c68(0x2559)][_0x244c68(0x111d)]({'id':_0x5c1ced['id']})[_0x244c68(0x1d77)][_0x244c68(0x1cb0)](function(){const _0x841912=_0x244c68;_0x39641b()['remove'](_0x32bcce[_0x841912(0x1dc3)][_0x841912(0x2214)],{'id':_0x5c1ced['id']}),_0x32bcce[_0x841912(0x1dc3)][_0x841912(0x184d)]-=0x1,!_0x32bcce['deskAccounts'][_0x841912(0x2214)]['length']&&_0x32bcce[_0x841912(0x2881)](),_0x2b328a[_0x841912(0x829)]({'title':_0x39641b()['startCase'](_0x841912(0x146e))+_0x841912(0x2663),'msg':_0x5c1ced[_0x841912(0x16b6)]?_0x5c1ced['name']+_0x841912(0x3f5):''});})[_0x244c68(0x1c4)](function(_0x16137d){const _0x1cdd90=_0x244c68;if(_0x16137d['data']&&_0x16137d[_0x1cdd90(0x25c)][_0x1cdd90(0x1a7c)]&&_0x16137d[_0x1cdd90(0x25c)][_0x1cdd90(0x1a7c)][_0x1cdd90(0xfd0)]){_0x32bcce[_0x1cdd90(0x1a7c)]=_0x16137d[_0x1cdd90(0x25c)][_0x1cdd90(0x1a7c)]||[{'message':_0x16137d['toString'](),'type':_0x1cdd90(0xf55)}];for(let _0x45c58c=0x0;_0x45c58c<_0x16137d['data'][_0x1cdd90(0x1a7c)]['length'];_0x45c58c++){_0x2b328a[_0x1cdd90(0x218e)]({'title':_0x16137d[_0x1cdd90(0x25c)][_0x1cdd90(0x1a7c)][_0x45c58c][_0x1cdd90(0x66a)],'msg':_0x16137d['data'][_0x1cdd90(0x1a7c)][_0x45c58c][_0x1cdd90(0x155e)]});}}else _0x2b328a[_0x1cdd90(0x218e)]({'title':_0x16137d[_0x1cdd90(0x291)]?'API:'+_0x16137d['status']+_0x1cdd90(0x1657)+_0x16137d[_0x1cdd90(0xc22)]:_0x1cdd90(0xf55),'msg':_0x16137d['data']?JSON[_0x1cdd90(0x2701)](_0x16137d[_0x1cdd90(0x25c)]['message']):_0x16137d[_0x1cdd90(0x155e)]||_0x16137d[_0x1cdd90(0x147f)]()});});}function _0x4780c0(){const _0x1626f1=_0x242583,_0x4d78c3=angular[_0x1626f1(0x17fe)](_0x32bcce[_0x1626f1(0x1fd0)]);return _0x32bcce['selectedDeskAccounts']=[],_0x4d78c3;}function _0x16f33a(_0x10a98b){const _0x4f8ab2=_0x242583,_0x340b0b=_0x4bee75[_0x4f8ab2(0x1551)]()[_0x4f8ab2(0x1386)](_0x4f8ab2(0x17f5))[_0x4f8ab2(0x49e)](_0x4f8ab2(0x204d)+_0x32bcce[_0x4f8ab2(0x1fd0)][_0x4f8ab2(0xfd0)]+_0x4f8ab2(0x1d6c)+_0x4f8ab2(0x1b6))[_0x4f8ab2(0x15ad)](_0x4f8ab2(0x888))[_0x4f8ab2(0x728)](_0x10a98b)['ok']('OK')[_0x4f8ab2(0x696)](_0x4f8ab2(0x24ba));_0x4bee75[_0x4f8ab2(0xe27)](_0x340b0b)[_0x4f8ab2(0x1cb0)](function(){const _0x2b9fb7=_0x4f8ab2;_0x32bcce[_0x2b9fb7(0x1fd0)]['forEach'](function(_0x573922){_0x51a0d5(_0x573922);}),_0x32bcce[_0x2b9fb7(0x1fd0)]=[];});}function _0x3d80da(){const _0x54cec2=_0x242583;_0x32bcce[_0x54cec2(0x1fd0)]=[];}function _0x3251d7(){const _0x36a694=_0x242583;_0x32bcce['selectedDeskAccounts']=_0x32bcce[_0x36a694(0x1dc3)][_0x36a694(0x2214)];}}const _0x132c73=_0x451cee;;const _0x167b46=_0x5074a3['p']+_0x5537c6(0xe16);;const _0xc80d53=_0x5074a3['p']+_0x5537c6(0x298c);;_0x599d8b['$inject']=['$mdDialog','$document',_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774)];function _0x599d8b(_0x4db630,_0x3caeac,_0x3d629f,_0x48de60,_0x332420){const _0x1b264f=_0x5537c6,_0x3b8177=this;_0x3b8177[_0x1b264f(0xe76)]=_0x332420[_0x1b264f(0x21e8)](),_0x3b8177['deskAccount']={},_0x3b8177[_0x1b264f(0x289c)]={},_0x3b8177[_0x1b264f(0xa06)]=[],_0x3b8177[_0x1b264f(0x239a)]=-0x1,_0x3b8177[_0x1b264f(0x1b1a)],_0x3b8177[_0x1b264f(0x1a8e)]=_0x5302d8,_0x3b8177['getDeskConfiguration']=_0x29251f,_0x3b8177[_0x1b264f(0xd36)]=_0x305785,_0x3b8177['deleteDeskConfiguration']=_0x3df1f6,_0x3b8177[_0x1b264f(0xfae)]=[],_0x3b8177[_0x1b264f(0x2192)]=_0x139476,_0x3d629f['tag']['get']({'nolimit':!![],'sort':_0x1b264f(0x16b6)})[_0x1b264f(0x1d77)]['then'](function(_0x4b901){const _0x63d7a7=_0x1b264f;_0x3b8177[_0x63d7a7(0xfbf)]=_0x4b901['rows']?_0x4b901['rows']:[];})[_0x1b264f(0x1c4)](function(_0x13cb8b){const _0x1af425=_0x1b264f;_0x48de60[_0x1af425(0x218e)]({'title':_0x13cb8b[_0x1af425(0x291)]?_0x1af425(0xeb9)+_0x13cb8b[_0x1af425(0x291)]+_0x1af425(0x1657)+_0x13cb8b[_0x1af425(0xc22)]:_0x1af425(0x3ee),'msg':_0x13cb8b['data']?JSON['stringify'](_0x13cb8b['data']):_0x13cb8b[_0x1af425(0x147f)]()});});function _0x139476(){const _0x3ee379=_0x1b264f;_0x3d629f[_0x3ee379(0x231)][_0x3ee379(0xe53)]({'id':_0x3b8177['deskConfiguration']['id'],'ids':_0x3b8177[_0x3ee379(0xfae)]})[_0x3ee379(0x1d77)][_0x3ee379(0x1cb0)](function(){const _0x2676a4=_0x3ee379;_0x48de60[_0x2676a4(0x829)]({'title':_0x2676a4(0x3e9),'msg':_0x2676a4(0x26cb)});})[_0x3ee379(0x1c4)](function(_0x470397){const _0x30883a=_0x3ee379;_0x48de60[_0x30883a(0x218e)]({'title':_0x470397[_0x30883a(0x291)]?_0x30883a(0xeb9)+_0x470397[_0x30883a(0x291)]+_0x30883a(0x1657)+_0x470397[_0x30883a(0xc22)]:'SYSTEM:ADDTAGS','msg':_0x470397[_0x30883a(0x25c)]?JSON[_0x30883a(0x2701)](_0x470397[_0x30883a(0x25c)]):_0x470397['toString']()});});}function _0x5302d8(_0x508eb6,_0x23a052){const _0x538508=_0x1b264f;_0x3b8177[_0x538508(0x1244)]=_0x508eb6,_0x3b8177[_0x538508(0x1b1a)]=typeof _0x23a052!==_0x538508(0x16b5)?_0x23a052:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3d629f[_0x538508(0x2559)][_0x538508(0x618)]({'id':_0x3b8177['deskAccount']['id'],'sort':_0x538508(0x282)})[_0x538508(0x1d77)][_0x538508(0x1cb0)](function(_0x542bf5){const _0x11e8b0=_0x538508;return _0x3b8177[_0x11e8b0(0xa06)]=_0x542bf5[_0x11e8b0(0x2214)]?_0x542bf5[_0x11e8b0(0x2214)]:[],_0x3b8177['configurations'][_0x11e8b0(0xfd0)]&&_0x3b8177[_0x11e8b0(0x643)](0x0),_0x3d629f[_0x11e8b0(0x1822)][_0x11e8b0(0xbf7)]({'nolimit':!![],'sort':'name'})[_0x11e8b0(0x1d77)];})[_0x538508(0x1cb0)](function(_0xf049e1){const _0x2ced73=_0x538508;_0x3b8177[_0x2ced73(0x9a9)]=_0xf049e1['rows']?_0xf049e1[_0x2ced73(0x2214)]:[],_0x3b8177['variablesById']=_0x39641b()[_0x2ced73(0x2631)](_0x3b8177['variables'],'id');})[_0x538508(0x1c4)](function(_0xc66b32){const _0x6cbe1=_0x538508;_0x48de60[_0x6cbe1(0x218e)]({'title':_0xc66b32['status']?'API:'+_0xc66b32['status']+'\x20-\x20'+_0xc66b32[_0x6cbe1(0xc22)]:'SYSTEM:GETCONFIGURATION','msg':_0xc66b32['data']?JSON[_0x6cbe1(0x2701)](_0xc66b32[_0x6cbe1(0x25c)]):_0xc66b32[_0x6cbe1(0x147f)]()});});}function _0x29251f(_0x4d8f34){const _0x4fca63=_0x1b264f;_0x3b8177['deskConfiguration']=_0x3b8177['configurations'][_0x4d8f34],_0x3b8177[_0x4fca63(0x239a)]=_0x4d8f34,_0x3d629f['intDeskConfiguration'][_0x4fca63(0x243a)]({'id':_0x3b8177[_0x4fca63(0x289c)]['id']})[_0x4fca63(0x1d77)]['then'](function(_0x15549d){const _0x8979a1=_0x4fca63;return _0x3b8177[_0x8979a1(0x2388)]=_0x15549d[_0x8979a1(0x2214)]?_0x15549d[_0x8979a1(0x2214)]:[],_0x3d629f[_0x8979a1(0x231)]['getDescriptions']({'id':_0x3b8177[_0x8979a1(0x289c)]['id']})[_0x8979a1(0x1d77)];})[_0x4fca63(0x1cb0)](function(_0x3d69f0){const _0x3d3dda=_0x4fca63;return _0x3b8177[_0x3d3dda(0x310)]=_0x3d69f0[_0x3d3dda(0x2214)]?_0x3d69f0[_0x3d3dda(0x2214)]:[],_0x3d629f[_0x3d3dda(0x231)][_0x3d3dda(0xc84)]({'id':_0x3b8177[_0x3d3dda(0x289c)]['id']})[_0x3d3dda(0x1d77)];})[_0x4fca63(0x1cb0)](function(_0x4c0d29){const _0x1ab322=_0x4fca63;_0x3b8177[_0x1ab322(0x355)]=_0x4c0d29['rows']?_0x4c0d29[_0x1ab322(0x2214)]:[];})[_0x4fca63(0x1c4)](function(_0x57f62d){const _0x92e9e3=_0x4fca63;_0x48de60['error']({'title':_0x57f62d['status']?_0x92e9e3(0xeb9)+_0x57f62d['status']+'\x20-\x20'+_0x57f62d[_0x92e9e3(0xc22)]:'SYSTEM:GETConfigurations','msg':_0x57f62d[_0x92e9e3(0x25c)]?JSON[_0x92e9e3(0x2701)](_0x57f62d['data']):_0x57f62d[_0x92e9e3(0x147f)]()});}),_0x3d629f[_0x4fca63(0x231)][_0x4fca63(0x128b)]({'id':_0x3b8177['deskConfiguration']['id']})[_0x4fca63(0x1d77)][_0x4fca63(0x1cb0)](function(_0x525020){const _0xc658d0=_0x4fca63;_0x3b8177[_0xc658d0(0xfae)]=_0x525020[_0xc658d0(0x2214)]?_0x39641b()[_0xc658d0(0x1de2)](_0x525020[_0xc658d0(0x2214)],'id'):[];})[_0x4fca63(0x1c4)](function(_0x3d30de){const _0x2f38a1=_0x4fca63;_0x48de60[_0x2f38a1(0x218e)]({'title':_0x3d30de[_0x2f38a1(0x291)]?_0x2f38a1(0xeb9)+_0x3d30de[_0x2f38a1(0x291)]+_0x2f38a1(0x1657)+_0x3d30de[_0x2f38a1(0xc22)]:_0x2f38a1(0x3ee),'msg':_0x3d30de[_0x2f38a1(0x25c)]?JSON['stringify'](_0x3d30de[_0x2f38a1(0x25c)]):_0x3d30de[_0x2f38a1(0x147f)]()});});}function _0x305785(_0x38ef3b,_0x28bfb8){const _0x793f69=_0x1b264f;_0x4db630['show']({'controller':_0x793f69(0x29d2),'controllerAs':'vm','templateUrl':_0x167b46,'parent':angular[_0x793f69(0x1853)](_0x3caeac[_0x793f69(0x1ed9)]),'targetEvent':_0x38ef3b,'clickOutsideToClose':!![],'locals':{'deskConfiguration':_0x28bfb8,'configurations':_0x3b8177['configurations'],'license':null,'setting':null,'crudPermissions':_0x3b8177['crudPermissions']}})[_0x793f69(0x2e0)](function(){const _0x5980d7=_0x793f69;_0x3b8177[_0x5980d7(0x643)](0x0);});}function _0x3df1f6(_0x59ee3a,_0x4f844b){const _0x5925ca=_0x1b264f,_0x9f341=_0x4db630[_0x5925ca(0x1551)]()[_0x5925ca(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20deskConfiguration?')[_0x5925ca(0x49e)](_0x5925ca(0x204d)+(_0x4f844b['name']||_0x5925ca(0x289c))+''+_0x5925ca(0x1b6))[_0x5925ca(0x15ad)](_0x5925ca(0x13b3))[_0x5925ca(0x728)](_0x59ee3a)['ok']('OK')[_0x5925ca(0x696)](_0x5925ca(0x24ba));_0x4db630[_0x5925ca(0xe27)](_0x9f341)[_0x5925ca(0x1cb0)](function(){const _0x2d502c=_0x5925ca;_0x3d629f[_0x2d502c(0x231)]['delete']({'id':_0x4f844b['id']})[_0x2d502c(0x1d77)][_0x2d502c(0x1cb0)](function(){const _0x11ed46=_0x2d502c;_0x39641b()[_0x11ed46(0x152a)](_0x3b8177[_0x11ed46(0xa06)],{'id':_0x4f844b['id']}),_0x48de60['success']({'title':_0x11ed46(0x5d9),'msg':_0x4f844b['name']?_0x4f844b[_0x11ed46(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x2d502c(0x1c4)](function(_0x2888be){const _0x4a09fa=_0x2d502c;_0x48de60['error']({'title':_0x2888be['status']?_0x4a09fa(0xeb9)+_0x2888be['status']+_0x4a09fa(0x1657)+_0x2888be[_0x4a09fa(0xc22)]:'SYSTEM:DELETECONFIGURATION','msg':_0x2888be[_0x4a09fa(0x25c)]?JSON[_0x4a09fa(0x2701)](_0x2888be[_0x4a09fa(0x25c)]):_0x2888be['toString']()});})[_0x2d502c(0x2e0)](function(){const _0x1739c0=_0x2d502c;_0x3b8177[_0x1739c0(0x643)](0x0);});},function(){const _0x34f81f=_0x5925ca;console[_0x34f81f(0x1b4f)]('CANCEL');});}_0x3b8177['selectedSubjects']=[],_0x3b8177[_0x1b264f(0x1267)]=_0x3dbb74,_0x3b8177['deleteSubjectConfirm']=_0x49f452,_0x3b8177[_0x1b264f(0xf12)]=_0x1789e5;function _0x3dbb74(_0x1ff805,_0x4684a2){const _0x12dab4=_0x1b264f;_0x4db630['show']({'controller':_0x12dab4(0x298d),'controllerAs':'vm','templateUrl':_0xc80d53,'parent':angular[_0x12dab4(0x1853)](_0x3caeac['body']),'targetEvent':_0x1ff805,'clickOutsideToClose':!![],'locals':{'type':_0x12dab4(0x1e5d),'item':_0x4684a2,'items':_0x3b8177[_0x12dab4(0x2388)],'configuration':_0x3b8177[_0x12dab4(0x289c)],'account':_0x3b8177[_0x12dab4(0x1244)],'license':null,'setting':null,'crudPermissions':_0x3b8177['crudPermissions']}});}function _0xa14aa7(_0x27a9f2){const _0x595292=_0x1b264f;_0x3d629f['intDeskField'][_0x595292(0x111d)]({'id':_0x27a9f2['id']})[_0x595292(0x1d77)][_0x595292(0x1cb0)](function(){const _0x5c0e45=_0x595292;_0x39641b()[_0x5c0e45(0x152a)](_0x3b8177[_0x5c0e45(0x2388)],{'id':_0x27a9f2['id']}),_0x48de60['success']({'title':_0x5c0e45(0x1d11),'msg':_0x5c0e45(0x145d)});})[_0x595292(0x1c4)](function(_0x416739){const _0x4a44e8=_0x595292;_0x48de60[_0x4a44e8(0x218e)]({'title':_0x416739[_0x4a44e8(0x291)]?_0x4a44e8(0xeb9)+_0x416739[_0x4a44e8(0x291)]+_0x4a44e8(0x1657)+_0x416739[_0x4a44e8(0xc22)]:_0x4a44e8(0x13e5),'msg':_0x416739[_0x4a44e8(0x25c)]?JSON['stringify'](_0x416739[_0x4a44e8(0x25c)]):_0x416739[_0x4a44e8(0x147f)]()});});}function _0x49f452(_0x3bad76,_0x2a4e7f){const _0x886dbe=_0x1b264f,_0x111347=_0x4db630['confirm']()[_0x886dbe(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0x886dbe(0x49e)](_0x886dbe(0x14ee)+'\x20will\x20be\x20deleted.')[_0x886dbe(0x15ad)](_0x886dbe(0xbc3))[_0x886dbe(0x728)](_0x3bad76)['ok']('OK')[_0x886dbe(0x696)]('CANCEL');_0x4db630[_0x886dbe(0xe27)](_0x111347)[_0x886dbe(0x1cb0)](function(){_0xa14aa7(_0x2a4e7f);},function(){const _0x323234=_0x886dbe;console[_0x323234(0x1b4f)](_0x323234(0x24ba));});}function _0x1789e5(_0x294a41){const _0x4864cf=_0x1b264f,_0x1dcd64=_0x4db630[_0x4864cf(0x1551)]()[_0x4864cf(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')[_0x4864cf(0x49e)](''+_0x3b8177['selectedSubjects'][_0x4864cf(0xfd0)]+_0x4864cf(0x1d6c)+_0x4864cf(0x1b6))['ariaLabel']('delete\x20subjects')[_0x4864cf(0x728)](_0x294a41)['ok']('OK')['cancel'](_0x4864cf(0x24ba));_0x4db630[_0x4864cf(0xe27)](_0x1dcd64)[_0x4864cf(0x1cb0)](function(){const _0x10da45=_0x4864cf;_0x3b8177[_0x10da45(0x4df)]['forEach'](function(_0x50e803){_0xa14aa7(_0x50e803);}),_0x3b8177[_0x10da45(0x4df)]=[];});}_0x3b8177[_0x1b264f(0xac6)]=[],_0x3b8177['createOrEditDescription']=_0x1312f2,_0x3b8177['deleteDescriptionConfirm']=_0x404360,_0x3b8177['deleteSelectedDescriptions']=_0x51d0f5;function _0x1312f2(_0x4d1a58,_0x5c21fd){const _0x34a3f7=_0x1b264f;_0x4db630['show']({'controller':_0x34a3f7(0x298d),'controllerAs':'vm','templateUrl':_0xc80d53,'parent':angular[_0x34a3f7(0x1853)](_0x3caeac[_0x34a3f7(0x1ed9)]),'targetEvent':_0x4d1a58,'clickOutsideToClose':!![],'locals':{'type':_0x34a3f7(0x2c1),'item':_0x5c21fd,'items':_0x3b8177[_0x34a3f7(0x310)],'configuration':_0x3b8177[_0x34a3f7(0x289c)],'account':_0x3b8177['deskAccount'],'license':null,'setting':null,'crudPermissions':_0x3b8177[_0x34a3f7(0x1b1a)]}});}function _0x5a6293(_0x167afd){const _0x268173=_0x1b264f;_0x3d629f[_0x268173(0x220a)][_0x268173(0x111d)]({'id':_0x167afd['id']})[_0x268173(0x1d77)][_0x268173(0x1cb0)](function(){const _0x4e8568=_0x268173;_0x39641b()[_0x4e8568(0x152a)](_0x3b8177[_0x4e8568(0x310)],{'id':_0x167afd['id']}),_0x48de60[_0x4e8568(0x829)]({'title':_0x4e8568(0x24c0),'msg':_0x4e8568(0xb59)});})['catch'](function(_0x5244eb){const _0x44bd92=_0x268173;_0x48de60['error']({'title':_0x5244eb['status']?_0x44bd92(0xeb9)+_0x5244eb['status']+_0x44bd92(0x1657)+_0x5244eb[_0x44bd92(0xc22)]:_0x44bd92(0x13e5),'msg':_0x5244eb['data']?JSON[_0x44bd92(0x2701)](_0x5244eb[_0x44bd92(0x25c)]):_0x5244eb[_0x44bd92(0x147f)]()});});}function _0x404360(_0x3dee2b,_0x4a0235){const _0x1d87f8=_0x1b264f,_0x378db4=_0x4db630[_0x1d87f8(0x1551)]()[_0x1d87f8(0x1386)](_0x1d87f8(0x7d2))['htmlContent'](_0x1d87f8(0x18b8)+_0x1d87f8(0x1b6))[_0x1d87f8(0x15ad)]('delete\x20description')[_0x1d87f8(0x728)](_0x3dee2b)['ok']('OK')['cancel']('CANCEL');_0x4db630[_0x1d87f8(0xe27)](_0x378db4)[_0x1d87f8(0x1cb0)](function(){_0x5a6293(_0x4a0235);},function(){const _0x26441a=_0x1d87f8;console['log'](_0x26441a(0x24ba));});}function _0x51d0f5(_0x2a53c1){const _0xacefaa=_0x1b264f,_0x44653f=_0x4db630[_0xacefaa(0x1551)]()[_0xacefaa(0x1386)](_0xacefaa(0x2e7))['htmlContent'](''+_0x3b8177['selectedDescriptions'][_0xacefaa(0xfd0)]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0xacefaa(0x15ad)](_0xacefaa(0x1828))[_0xacefaa(0x728)](_0x2a53c1)['ok']('OK')[_0xacefaa(0x696)]('CANCEL');_0x4db630['show'](_0x44653f)[_0xacefaa(0x1cb0)](function(){const _0x4674cb=_0xacefaa;_0x3b8177[_0x4674cb(0xac6)]['forEach'](function(_0x340f3f){_0x5a6293(_0x340f3f);}),_0x3b8177['selectedDescriptions']=[];});}_0x3b8177['selectedFields']=[],_0x3b8177[_0x1b264f(0x5e9)]=_0x1b2f78,_0x3b8177['deleteFieldConfirm']=_0x5cf779,_0x3b8177[_0x1b264f(0xe40)]=_0x124509;function _0x1b2f78(_0x5e8206,_0xfc0bef){const _0x3a39dd=_0x1b264f;_0x4db630['show']({'controller':_0x3a39dd(0x298d),'controllerAs':'vm','templateUrl':_0xc80d53,'parent':angular[_0x3a39dd(0x1853)](_0x3caeac['body']),'targetEvent':_0x5e8206,'clickOutsideToClose':!![],'locals':{'type':_0x3a39dd(0x2198),'item':_0xfc0bef,'items':_0x3b8177[_0x3a39dd(0x355)],'configuration':_0x3b8177[_0x3a39dd(0x289c)],'account':_0x3b8177[_0x3a39dd(0x1244)],'license':null,'setting':null,'crudPermissions':_0x3b8177['crudPermissions']}});}function _0x1caa91(_0x4ff529){const _0x39e01e=_0x1b264f;_0x3d629f[_0x39e01e(0x220a)][_0x39e01e(0x111d)]({'id':_0x4ff529['id']})[_0x39e01e(0x1d77)][_0x39e01e(0x1cb0)](function(){const _0x2787ea=_0x39e01e;_0x39641b()[_0x2787ea(0x152a)](_0x3b8177[_0x2787ea(0x355)],{'id':_0x4ff529['id']}),_0x48de60[_0x2787ea(0x829)]({'title':_0x2787ea(0xd6b),'msg':_0x2787ea(0x2688)});})[_0x39e01e(0x1c4)](function(_0x190fd6){const _0x487ee4=_0x39e01e;_0x48de60[_0x487ee4(0x218e)]({'title':_0x190fd6[_0x487ee4(0x291)]?'API:'+_0x190fd6['status']+_0x487ee4(0x1657)+_0x190fd6[_0x487ee4(0xc22)]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x190fd6[_0x487ee4(0x25c)]?JSON[_0x487ee4(0x2701)](_0x190fd6[_0x487ee4(0x25c)]):_0x190fd6[_0x487ee4(0x147f)]()});});}function _0x5cf779(_0x519b8a,_0x2277bb){const _0x4469b7=_0x1b264f,_0x2a1b3a=_0x4db630[_0x4469b7(0x1551)]()['title'](_0x4469b7(0x21a9))[_0x4469b7(0x49e)](_0x4469b7(0xf1d)+_0x4469b7(0x1b6))['ariaLabel']('delete\x20field')[_0x4469b7(0x728)](_0x519b8a)['ok']('OK')['cancel'](_0x4469b7(0x24ba));_0x4db630[_0x4469b7(0xe27)](_0x2a1b3a)[_0x4469b7(0x1cb0)](function(){_0x1caa91(_0x2277bb);},function(){const _0x1b27f9=_0x4469b7;console[_0x1b27f9(0x1b4f)](_0x1b27f9(0x24ba));});}function _0x124509(_0x1aa345){const _0x1895dc=_0x1b264f,_0x21925f=_0x4db630['confirm']()[_0x1895dc(0x1386)](_0x1895dc(0x983))['htmlContent'](_0x1895dc(0x204d)+_0x3b8177[_0x1895dc(0x9b2)][_0x1895dc(0xfd0)]+'\x20selected'+_0x1895dc(0x1b6))['ariaLabel'](_0x1895dc(0x199d))['targetEvent'](_0x1aa345)['ok']('OK')[_0x1895dc(0x696)](_0x1895dc(0x24ba));_0x4db630['show'](_0x21925f)[_0x1895dc(0x1cb0)](function(){const _0x1ae6d5=_0x1895dc;_0x3b8177[_0x1ae6d5(0x9b2)]['forEach'](function(_0xed7899){_0x1caa91(_0xed7899);}),_0x3b8177[_0x1ae6d5(0x9b2)]=[];});}}const _0x4843d0=_0x599d8b;;_0x378411['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0xa06),_0x5537c6(0x289c),'api',_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x378411(_0x27bca0,_0x33d2a7,_0x58cb78,_0x3ab384,_0x3c77e1,_0x5d4113,_0x420679,_0x2c56f7,_0x147efc,_0x1896b4,_0x28f593,_0x526677,_0x4bbab1,_0xbc82fe){const _0x46d6f4=_0x5537c6,_0xcfb9d4=this;_0xcfb9d4[_0x46d6f4(0xe76)]=_0x28f593[_0x46d6f4(0x21e8)](),_0xcfb9d4[_0x46d6f4(0x1a7c)]=[],_0xcfb9d4['setting']=_0x4bbab1,_0xcfb9d4[_0x46d6f4(0x8a5)]=_0x526677,_0xcfb9d4[_0x46d6f4(0x1b1a)]=_0xbc82fe,_0xcfb9d4[_0x46d6f4(0xf4c)]={},_0xcfb9d4[_0x46d6f4(0x1b0c)]=_0xcfb9d4[_0x46d6f4(0x9ca)]&&_0xcfb9d4[_0x46d6f4(0x9ca)][_0x46d6f4(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xcfb9d4['title']=_0x46d6f4(0xec0),_0xcfb9d4[_0x46d6f4(0x289c)]=angular[_0x46d6f4(0x17fe)](_0x147efc),_0xcfb9d4[_0x46d6f4(0xa06)]=_0x2c56f7,_0xcfb9d4[_0x46d6f4(0x6e2)]=![];!_0xcfb9d4['deskConfiguration']&&(_0xcfb9d4[_0x46d6f4(0x289c)]={'channel':_0x46d6f4(0x1fd4),'type':_0x46d6f4(0x26c0)},_0xcfb9d4[_0x46d6f4(0x1386)]=_0x46d6f4(0xeab),_0xcfb9d4[_0x46d6f4(0x6e2)]=!![]);_0xcfb9d4[_0x46d6f4(0x552)]=_0x40eedb,_0xcfb9d4[_0x46d6f4(0x1a37)]=_0x4dfce3,_0xcfb9d4['deleteDeskConfiguration']=_0x1c5107,_0xcfb9d4['getDateFromString']=_0x53f740,_0xcfb9d4[_0x46d6f4(0xda0)]=_0x270214;function _0x40eedb(){const _0x5805c3=_0x46d6f4;_0xcfb9d4[_0x5805c3(0x1a7c)]=[],_0x1896b4[_0x5805c3(0x2559)]['addConfiguration']({'id':_0x33d2a7['params']['id']},_0xcfb9d4[_0x5805c3(0x289c)])[_0x5805c3(0x1d77)][_0x5805c3(0x1cb0)](function(_0x12318a){const _0x1306de=_0x5805c3;_0xcfb9d4[_0x1306de(0xa06)]['unshift'](_0x12318a[_0x1306de(0x19b2)]()),_0x420679[_0x1306de(0x829)]({'title':_0x1306de(0x1ca3),'msg':_0xcfb9d4[_0x1306de(0x289c)][_0x1306de(0x16b6)]?_0xcfb9d4[_0x1306de(0x289c)][_0x1306de(0x16b6)]+_0x1306de(0x470):''}),_0x270214(_0x12318a);})[_0x5805c3(0x1c4)](function(_0x33ee3f){const _0x55afaf=_0x5805c3;if(_0x33ee3f[_0x55afaf(0x25c)]&&_0x33ee3f['data']['errors']&&_0x33ee3f[_0x55afaf(0x25c)][_0x55afaf(0x1a7c)][_0x55afaf(0xfd0)]){_0xcfb9d4['errors']=_0x33ee3f[_0x55afaf(0x25c)][_0x55afaf(0x1a7c)]||[{'message':_0x33ee3f[_0x55afaf(0x147f)](),'type':_0x55afaf(0x29aa)}];for(let _0x1da5b1=0x0;_0x1da5b1<_0x33ee3f['data'][_0x55afaf(0x1a7c)][_0x55afaf(0xfd0)];_0x1da5b1+=0x1){_0x420679['error']({'title':_0x33ee3f[_0x55afaf(0x25c)]['errors'][_0x1da5b1][_0x55afaf(0x66a)],'msg':_0x33ee3f[_0x55afaf(0x25c)][_0x55afaf(0x1a7c)][_0x1da5b1]['message']});}}else _0x420679['error']({'title':_0x33ee3f['status']?'API:'+_0x33ee3f[_0x55afaf(0x291)]+'\x20-\x20'+_0x33ee3f['statusText']:_0x55afaf(0x29aa),'msg':_0x33ee3f[_0x55afaf(0x25c)]?JSON['stringify'](_0x33ee3f['data'][_0x55afaf(0x155e)]):_0x33ee3f[_0x55afaf(0x147f)]()});});}function _0x4dfce3(){const _0x151cb4=_0x46d6f4;_0xcfb9d4[_0x151cb4(0x1a7c)]=[],_0x1896b4[_0x151cb4(0x231)]['update']({'id':_0xcfb9d4[_0x151cb4(0x289c)]['id']},_0xcfb9d4[_0x151cb4(0x289c)])[_0x151cb4(0x1d77)]['then'](function(_0x5a55ab){const _0x1dd048=_0x151cb4,_0x49da1d=_0x39641b()['find'](_0xcfb9d4[_0x1dd048(0xa06)],{'id':_0x5a55ab['id']});_0x49da1d&&_0x39641b()[_0x1dd048(0x9c1)](_0x49da1d,_0x39641b()[_0x1dd048(0x169b)](_0x5a55ab[_0x1dd048(0x19b2)](),_0x39641b()[_0x1dd048(0x1be5)](_0x49da1d))),_0x420679[_0x1dd048(0x829)]({'title':'DeskConfiguration\x20properly\x20saved!','msg':_0xcfb9d4[_0x1dd048(0x289c)][_0x1dd048(0x16b6)]?_0xcfb9d4[_0x1dd048(0x289c)][_0x1dd048(0x16b6)]+_0x1dd048(0xedb):''}),_0x270214(_0x5a55ab);})[_0x151cb4(0x1c4)](function(_0x56ad19){const _0x420d27=_0x151cb4;if(_0x56ad19['data']&&_0x56ad19[_0x420d27(0x25c)]['errors']&&_0x56ad19['data']['errors'][_0x420d27(0xfd0)]){_0xcfb9d4['errors']=_0x56ad19['data'][_0x420d27(0x1a7c)]||[{'message':_0x56ad19[_0x420d27(0x147f)](),'type':'api.intDeskConfiguration.update'}];for(let _0x1c34f7=0x0;_0x1c34f7<_0x56ad19[_0x420d27(0x25c)]['errors'][_0x420d27(0xfd0)];_0x1c34f7++){_0x420679['error']({'title':_0x56ad19[_0x420d27(0x25c)][_0x420d27(0x1a7c)][_0x1c34f7][_0x420d27(0x66a)],'msg':_0x56ad19[_0x420d27(0x25c)][_0x420d27(0x1a7c)][_0x1c34f7]['message']});}}else _0x420679[_0x420d27(0x218e)]({'title':_0x56ad19['status']?_0x420d27(0xeb9)+_0x56ad19[_0x420d27(0x291)]+_0x420d27(0x1657)+_0x56ad19[_0x420d27(0xc22)]:_0x420d27(0x2951),'msg':_0x56ad19[_0x420d27(0x25c)]?JSON[_0x420d27(0x2701)](_0x56ad19[_0x420d27(0x25c)][_0x420d27(0x155e)]):_0x56ad19['toString']()});});}function _0x1c5107(_0x1aca85){const _0x32af17=_0x46d6f4;_0xcfb9d4[_0x32af17(0x1a7c)]=[];const _0x1cefbf=_0x3ab384['confirm']()[_0x32af17(0x1386)](_0x32af17(0x1a2e))[_0x32af17(0x862)](_0x32af17(0x10d5))['ariaLabel'](_0x32af17(0xaf4))['ok'](_0x32af17(0x2594))[_0x32af17(0x696)](_0x32af17(0xde1))['targetEvent'](_0x1aca85);_0x3ab384[_0x32af17(0xe27)](_0x1cefbf)[_0x32af17(0x1cb0)](function(){const _0xe77a6b=_0x32af17;_0x1896b4['intDeskConfiguration']['delete']({'id':_0xcfb9d4[_0xe77a6b(0x289c)]['id']})[_0xe77a6b(0x1d77)]['then'](function(){const _0x397dda=_0xe77a6b;_0x39641b()[_0x397dda(0x152a)](_0xcfb9d4[_0x397dda(0xa06)],{'id':_0xcfb9d4['deskConfiguration']['id']}),_0x420679[_0x397dda(0x829)]({'title':'DeskConfiguration\x20properly\x20deleted!','msg':(_0xcfb9d4['deskConfiguration'][_0x397dda(0x16b6)]||'deskConfiguration')+_0x397dda(0x3f5)}),_0x270214(_0xcfb9d4[_0x397dda(0x289c)]);})[_0xe77a6b(0x1c4)](function(_0x232d4d){const _0x55a061=_0xe77a6b;if(_0x232d4d[_0x55a061(0x25c)]&&_0x232d4d[_0x55a061(0x25c)][_0x55a061(0x1a7c)]&&_0x232d4d['data'][_0x55a061(0x1a7c)]['length']){_0xcfb9d4[_0x55a061(0x1a7c)]=_0x232d4d[_0x55a061(0x25c)][_0x55a061(0x1a7c)]||[{'message':_0x232d4d[_0x55a061(0x147f)](),'type':_0x55a061(0x15fd)}];for(let _0x408cea=0x0;_0x408cea<_0x232d4d[_0x55a061(0x25c)][_0x55a061(0x1a7c)][_0x55a061(0xfd0)];_0x408cea++){_0x420679['error']({'title':_0x232d4d['data'][_0x55a061(0x1a7c)][_0x408cea][_0x55a061(0x66a)],'msg':_0x232d4d[_0x55a061(0x25c)][_0x55a061(0x1a7c)][_0x408cea]['message']});}}else _0x420679[_0x55a061(0x218e)]({'title':_0x232d4d[_0x55a061(0x291)]?_0x55a061(0xeb9)+_0x232d4d['status']+_0x55a061(0x1657)+_0x232d4d[_0x55a061(0xc22)]:_0x55a061(0x15fd),'msg':_0x232d4d[_0x55a061(0x25c)]?JSON[_0x55a061(0x2701)](_0x232d4d[_0x55a061(0x25c)][_0x55a061(0x155e)]):_0x232d4d[_0x55a061(0x155e)]||_0x232d4d['toString']()});});},function(){});}function _0x53f740(_0x28c6d4){return _0x28c6d4===null?undefined:new Date(_0x28c6d4);}function _0x270214(_0x22f119){const _0x522476=_0x46d6f4;_0x3ab384[_0x522476(0x1426)](_0x22f119);}}const _0x401aa9=_0x378411;;_0x4b0b14[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog',_0x5537c6(0x9bf),_0x5537c6(0x2718),_0x5537c6(0x122f),_0x5537c6(0x583),_0x5537c6(0x1539),'type','api','Auth',_0x5537c6(0x1b1a)];function _0x4b0b14(_0x30601c,_0x2b8fdc,_0x401dc9,_0x2719fb,_0x45f59d,_0x54edfb,_0x25dc4f,_0x560000,_0x26f334,_0x40a169,_0x5e6ad2,_0x4b7dcc,_0x46dd09){const _0x559159=_0x5537c6,_0x1755d1=this;_0x1755d1['currentUser']=_0x4b7dcc[_0x559159(0x21e8)](),_0x1755d1[_0x559159(0x1a7c)]=[],_0x1755d1[_0x559159(0x1386)]=_0x559159(0xf08)+_0x39641b()[_0x559159(0x1002)](_0x40a169),_0x1755d1[_0x559159(0x583)]=angular[_0x559159(0x17fe)](_0x560000),_0x1755d1[_0x559159(0x122f)]=_0x25dc4f,_0x1755d1['type']=_0x40a169,_0x1755d1[_0x559159(0x1b1a)]=_0x46dd09,_0x1755d1['newItem']=![];!_0x1755d1[_0x559159(0x583)]&&(_0x1755d1[_0x559159(0x583)]={'type':_0x559159(0x1518)},_0x1755d1['item'][_0x39641b()['capitalize'](_0x40a169)+'Id']=_0x54edfb['id'],_0x1755d1[_0x559159(0x1386)]=_0x559159(0x15dd)+_0x39641b()[_0x559159(0x1002)](_0x40a169),_0x1755d1['newItem']=!![]);_0x1755d1[_0x559159(0x1286)]=_0x746a51,_0x1755d1[_0x559159(0x1a78)]=_0x595c3f,_0x1755d1[_0x559159(0x1177)]=_0x6ef09e,_0x1755d1[_0x559159(0x2f6)]=_0x423677,_0x1755d1[_0x559159(0xda0)]=_0x23125b,_0x5e6ad2[_0x559159(0x1822)][_0x559159(0xbf7)]({'nolimit':!![]})[_0x559159(0x1d77)][_0x559159(0x1cb0)](function(_0x52ae90){const _0x1762b7=_0x559159;return _0x1755d1[_0x1762b7(0x9a9)]=_0x52ae90[_0x1762b7(0x2214)]?_0x52ae90[_0x1762b7(0x2214)]:[],_0x5e6ad2['voiceAgentReport']['describe']()['$promise'];})[_0x559159(0x1cb0)](function(_0x12738d){const _0xfa095c=_0x559159;return _0x1755d1[_0xfa095c(0xbf1)]=_0x39641b()[_0xfa095c(0x91f)](_0x39641b()['keys'](_0x12738d),['$promise',_0xfa095c(0x248e),_0xfa095c(0x24cb),_0xfa095c(0x27ba),_0xfa095c(0x1867)]),_0x1755d1[_0xfa095c(0xbf1)][_0xfa095c(0x2785)](_0xfa095c(0x2110)),_0x5e6ad2[_0xfa095c(0x593)]['describe']()[_0xfa095c(0x1d77)];})[_0x559159(0x1cb0)](function(_0x534945){const _0x405c99=_0x559159;_0x1755d1[_0x405c99(0x1639)]=_0x39641b()[_0x405c99(0x91f)](_0x39641b()[_0x405c99(0x1be5)](_0x534945),['$promise',_0x405c99(0x248e),_0x405c99(0x24cb),_0x405c99(0x27ba),_0x405c99(0x1867)]),_0x1755d1['voiceDialReportColumns']['push']('recordingURL');})[_0x559159(0x1c4)](function(_0x5a7f8e){const _0x29e711=_0x559159;_0x45f59d[_0x29e711(0x218e)]({'title':_0x5a7f8e[_0x29e711(0x291)]?_0x29e711(0xeb9)+_0x5a7f8e[_0x29e711(0x291)]+_0x29e711(0x1657)+_0x5a7f8e[_0x29e711(0xc22)]:_0x29e711(0x262e),'msg':_0x5a7f8e[_0x29e711(0x25c)]?JSON[_0x29e711(0x2701)](_0x5a7f8e[_0x29e711(0x25c)]):_0x5a7f8e[_0x29e711(0x147f)]()});}),_0x5e6ad2[_0x559159(0x2559)]['getFields']({'id':_0x26f334['id'],'ticketType':_0x54edfb[_0x559159(0x161)]?_0x54edfb[_0x559159(0x161)]:undefined})[_0x559159(0x1d77)]['then'](function(_0x2e20fb){const _0x35daac=_0x559159;_0x1755d1[_0x35daac(0x1a28)]=!![],_0x1755d1[_0x35daac(0x355)]=_0x2e20fb[_0x35daac(0x2214)]?_0x2e20fb['rows']:[],_0x1755d1[_0x35daac(0x583)][_0x35daac(0x1e50)]&&(_0x1755d1['customField']=_0x39641b()['find'](_0x1755d1['fields'],{'id':_0x1755d1[_0x35daac(0x583)][_0x35daac(0x1e50)]}));})['catch'](function(_0x5b2a44){const _0x5c8502=_0x559159;_0x1755d1['accountConnected']=![],console[_0x5c8502(0x218e)](_0x5b2a44);});function _0x746a51(){const _0x5a0a38=_0x559159;_0x1755d1['errors']=[],_0x1755d1[_0x5a0a38(0x1d5a)]&&(_0x1755d1[_0x5a0a38(0x583)][_0x5a0a38(0x1e50)]=_0x1755d1[_0x5a0a38(0x1d5a)]['id'],_0x1755d1['item'][_0x5a0a38(0xc1f)]=_0x1755d1[_0x5a0a38(0x1d5a)][_0x5a0a38(0x16b6)],_0x1755d1[_0x5a0a38(0x583)]['customField']=_0x1755d1[_0x5a0a38(0x1d5a)]['custom']),_0x5e6ad2[_0x5a0a38(0x220a)][_0x5a0a38(0x1c3f)](_0x1755d1[_0x5a0a38(0x583)])['$promise'][_0x5a0a38(0x1cb0)](function(_0x44d35d){const _0x5b9f74=_0x5a0a38;_0x1755d1[_0x5b9f74(0x122f)][_0x5b9f74(0xf63)](_0x44d35d),_0x45f59d[_0x5b9f74(0x829)]({'title':_0x39641b()['capitalize'](_0x40a169)+_0x5b9f74(0x220c),'msg':_0x39641b()[_0x5b9f74(0x432)](_0x40a169)+_0x5b9f74(0x470)}),_0x23125b();})[_0x5a0a38(0x1c4)](function(_0x2801a6){const _0x5d7a8b=_0x5a0a38;console[_0x5d7a8b(0x218e)](_0x2801a6),_0x1755d1[_0x5d7a8b(0x1a7c)]=_0x2801a6[_0x5d7a8b(0x25c)][_0x5d7a8b(0x1a7c)]||[{'message':_0x2801a6[_0x5d7a8b(0x147f)](),'type':'api.item.save'}];});}function _0x595c3f(){const _0x1c752c=_0x559159;_0x1755d1[_0x1c752c(0x1a7c)]=[],_0x1755d1[_0x1c752c(0x1d5a)]&&(_0x1755d1[_0x1c752c(0x583)][_0x1c752c(0x1e50)]=_0x1755d1[_0x1c752c(0x1d5a)]['id'],_0x1755d1['item'][_0x1c752c(0xc1f)]=_0x1755d1[_0x1c752c(0x1d5a)][_0x1c752c(0x16b6)],_0x1755d1[_0x1c752c(0x583)][_0x1c752c(0x1d5a)]=_0x1755d1[_0x1c752c(0x1d5a)]['custom']),_0x5e6ad2[_0x1c752c(0x220a)][_0x1c752c(0x687)]({'id':_0x1755d1['item']['id']},_0x1755d1[_0x1c752c(0x583)])[_0x1c752c(0x1d77)]['then'](function(_0x102f0d){const _0x4c6c38=_0x1c752c,_0x934e60=_0x39641b()[_0x4c6c38(0x13b4)](_0x1755d1[_0x4c6c38(0x122f)],{'id':_0x102f0d['id']});_0x934e60&&_0x39641b()['merge'](_0x934e60,_0x102f0d),_0x45f59d[_0x4c6c38(0x829)]({'title':_0x39641b()[_0x4c6c38(0x432)](_0x40a169)+'\x20properly\x20saved!','msg':_0x39641b()[_0x4c6c38(0x432)](_0x40a169)+_0x4c6c38(0xedb)}),_0x23125b();})[_0x1c752c(0x1c4)](function(_0xad9bc0){const _0x47705d=_0x1c752c;console[_0x47705d(0x218e)](_0xad9bc0),_0x1755d1['errors']=_0xad9bc0[_0x47705d(0x25c)]['errors']||[{'message':_0xad9bc0[_0x47705d(0x147f)](),'type':_0x47705d(0x197e)}];});}function _0x6ef09e(_0x48388d){const _0x2c2afc=_0x559159;_0x1755d1['errors']=[];const _0x316121=_0x2719fb['confirm']()[_0x2c2afc(0x1386)]('Are\x20you\x20sure?')[_0x2c2afc(0x862)](_0x2c2afc(0xd4c)+_0x40a169+'\x20will\x20be\x20deleted.')[_0x2c2afc(0x15ad)](_0x2c2afc(0x1f6a)+_0x39641b()[_0x2c2afc(0x432)](_0x40a169))['ok']('Delete')[_0x2c2afc(0x696)](_0x2c2afc(0xde1))[_0x2c2afc(0x728)](_0x48388d);_0x2719fb['show'](_0x316121)[_0x2c2afc(0x1cb0)](function(){const _0x2ad29d=_0x2c2afc;_0x5e6ad2[_0x2ad29d(0x220a)][_0x2ad29d(0x111d)]({'id':_0x1755d1[_0x2ad29d(0x583)]['id']})[_0x2ad29d(0x1d77)]['then'](function(){const _0x28edf8=_0x2ad29d;_0x39641b()[_0x28edf8(0x152a)](_0x1755d1[_0x28edf8(0x122f)],{'id':_0x1755d1[_0x28edf8(0x583)]['id']}),_0x45f59d['success']({'title':_0x39641b()[_0x28edf8(0x432)](_0x40a169)+_0x28edf8(0x1621),'msg':_0x39641b()[_0x28edf8(0x432)](_0x40a169)+_0x28edf8(0x3f5)}),_0x23125b();})[_0x2ad29d(0x1c4)](function(_0x8f946c){const _0x1cb427=_0x2ad29d;console[_0x1cb427(0x218e)](_0x8f946c),_0x1755d1[_0x1cb427(0x1a7c)]=_0x8f946c[_0x1cb427(0x25c)][_0x1cb427(0x1a7c)]||[{'message':_0x8f946c[_0x1cb427(0x147f)](),'type':_0x1cb427(0x10e6)}];});},function(){});}function _0x423677(){const _0x55bf60=_0x559159;return _0x1755d1[_0x55bf60(0x583)][_0x55bf60(0x1e71)]!==undefined?_0x1755d1[_0x55bf60(0x583)][_0x55bf60(0x1e71)]:'Please\x20select\x20a\x20variable';}function _0x23125b(){const _0x3303fd=_0x559159;_0x2719fb[_0x3303fd(0x1426)]();}}const _0x4d90ae=_0x4b0b14;;_0x9dd62a[_0x5537c6(0x15b6)]=['$state',_0x5537c6(0x21c8),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x1ae),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x1244),'userProfileSection'];function _0x9dd62a(_0x449703,_0x599485,_0x1b41b4,_0x974783,_0x1dc859,_0x279854,_0x295538,_0x6172df,_0x11c105,_0xc14560,_0x2176af,_0x512aa0){const _0x16124b=_0x5537c6,_0x47d1ac=this;_0x47d1ac[_0x16124b(0xe76)]=_0xc14560[_0x16124b(0x21e8)](),_0x47d1ac[_0x16124b(0x8a5)]=_0x279854,_0x47d1ac[_0x16124b(0x9ca)]=_0x295538,_0x47d1ac[_0x16124b(0x1b0c)]=_0x47d1ac[_0x16124b(0x9ca)][_0x16124b(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x47d1ac[_0x16124b(0x2404)]=_0x599485[_0x16124b(0x2276)]()+_0x16124b(0x138b)+_0x599485['host'](),_0x47d1ac['deskAccount']=_0x2176af||_0x449703[_0x16124b(0x1dfe)]['deskAccount']||{},_0x47d1ac[_0x16124b(0x2199)]=_0x512aa0&&_0x512aa0['count']==0x1?_0x512aa0[_0x16124b(0x2214)][0x0]:null,_0x47d1ac[_0x16124b(0x1b1a)]=_0xc14560['parseCrudPermissions'](_0x47d1ac[_0x16124b(0x2199)]?_0x47d1ac[_0x16124b(0x2199)][_0x16124b(0x1b1a)]:null),_0x47d1ac[_0x16124b(0xf4c)]={},_0x47d1ac['selectedTab']=_0x449703['params'][_0x16124b(0x291e)]||0x0,_0x47d1ac[_0x16124b(0x494)]=_0x11c105[_0x16124b(0x28c7)],_0x47d1ac[_0x16124b(0x1a40)]=_0x100c2d,_0x47d1ac[_0x16124b(0x1ccf)]=_0x47e13c;function _0x100c2d(){const _0xb00988=_0x16124b;_0x449703['go']('app.integrations.deskAccounts',{},{'reload':_0xb00988(0x857)});}function _0x47e13c(){const _0x2f6aed=_0x16124b;_0x6172df[_0x2f6aed(0x2559)]['update']({'id':_0x47d1ac['deskAccount']['id']},_0x47d1ac[_0x2f6aed(0x1244)])[_0x2f6aed(0x1d77)][_0x2f6aed(0x1cb0)](function(){const _0x31fd63=_0x2f6aed;_0x11c105[_0x31fd63(0x829)]({'title':'DeskAccount\x20updated!','msg':_0x47d1ac['deskAccount'][_0x31fd63(0x16b6)]?_0x47d1ac[_0x31fd63(0x1244)][_0x31fd63(0x16b6)]+_0x31fd63(0x1068):''});})[_0x2f6aed(0x1c4)](function(_0x50d652){const _0x483310=_0x2f6aed;_0x11c105[_0x483310(0x218e)]({'title':_0x50d652[_0x483310(0x291)]?_0x483310(0xeb9)+_0x50d652[_0x483310(0x291)]+'\x20-\x20'+_0x50d652[_0x483310(0xc22)]:_0x483310(0x245c),'msg':_0x50d652[_0x483310(0x25c)]?JSON[_0x483310(0x2701)](_0x50d652[_0x483310(0x25c)]):_0x50d652[_0x483310(0x147f)]()});});}}const _0x58d675=_0x9dd62a;;_0x4e0703['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0x1697),_0x5537c6(0x1124),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x4e0703(_0x50e306,_0xafb2a0,_0x47159d,_0x1bc21e,_0xe47c3a,_0xf7d0cd,_0x294b5f,_0xa6c1f6,_0x25946e,_0x34cd2f,_0x9c78d3,_0x5e0ffd,_0xe7a162,_0x208bb9){const _0x10722d=_0x5537c6,_0x2adc26=this;_0x2adc26['currentUser']=_0x9c78d3[_0x10722d(0x21e8)](),_0x2adc26['errors']=[],_0x2adc26[_0x10722d(0x9ca)]=_0xe7a162,_0x2adc26[_0x10722d(0x8a5)]=_0x5e0ffd,_0x2adc26['crudPermissions']=_0x208bb9,_0x2adc26[_0x10722d(0xf4c)]={},_0x2adc26[_0x10722d(0x1b0c)]=_0x2adc26[_0x10722d(0x9ca)]&&_0x2adc26[_0x10722d(0x9ca)][_0x10722d(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2adc26['title']=_0x10722d(0xdc2),_0x2adc26[_0x10722d(0x1124)]=angular[_0x10722d(0x17fe)](_0x25946e),_0x2adc26[_0x10722d(0x1697)]=_0xa6c1f6,_0x2adc26['newDynamics365Account']=![];!_0x2adc26[_0x10722d(0x1124)]&&(_0x2adc26[_0x10722d(0x1124)]={'serverUrl':_0x47159d[_0x10722d(0x2276)]()+_0x10722d(0x138b)+_0x47159d[_0x10722d(0x17d8)]()+(_0x47159d['port']()?':'+_0x47159d[_0x10722d(0x477)]():'')},_0x2adc26[_0x10722d(0x1386)]='INTEGRATIONS.NEW_DYNAMICS365ACCOUNT',_0x2adc26[_0x10722d(0xa8d)]=!![]);_0x2adc26[_0x10722d(0x22b3)]=_0x3b62b0,_0x2adc26[_0x10722d(0x2499)]=_0x44739a,_0x2adc26[_0x10722d(0x155d)]=_0x5764a0,_0x2adc26[_0x10722d(0x2c4)]=_0xe039a5,_0x2adc26['closeDialog']=_0x32b7e9;function _0x3b62b0(){const _0x5abf7e=_0x10722d;_0x2adc26[_0x5abf7e(0x1a7c)]=[],_0x34cd2f[_0x5abf7e(0x24a4)][_0x5abf7e(0x1c3f)](_0x2adc26[_0x5abf7e(0x1124)])[_0x5abf7e(0x1d77)][_0x5abf7e(0x1cb0)](function(_0x4aa42a){const _0x224d80=_0x5abf7e;_0x2adc26['dynamics365Accounts'][_0x224d80(0xf63)](_0x4aa42a['toJSON']()),_0x294b5f[_0x224d80(0x829)]({'title':'Dynamics365Account\x20properly\x20created','msg':_0x2adc26['dynamics365Account'][_0x224d80(0x16b6)]?_0x2adc26[_0x224d80(0x1124)]['name']+_0x224d80(0x470):''}),_0x32b7e9(_0x4aa42a);})[_0x5abf7e(0x1c4)](function(_0x684fb7){const _0x49c8fe=_0x5abf7e;if(_0x684fb7[_0x49c8fe(0x25c)]&&_0x684fb7[_0x49c8fe(0x25c)][_0x49c8fe(0x1a7c)]&&_0x684fb7['data'][_0x49c8fe(0x1a7c)][_0x49c8fe(0xfd0)]){_0x2adc26[_0x49c8fe(0x1a7c)]=_0x684fb7[_0x49c8fe(0x25c)][_0x49c8fe(0x1a7c)]||[{'message':_0x684fb7[_0x49c8fe(0x147f)](),'type':_0x49c8fe(0x190c)}];for(let _0x2ec4c3=0x0;_0x2ec4c3<_0x684fb7[_0x49c8fe(0x25c)]['errors']['length'];_0x2ec4c3+=0x1){_0x294b5f['error']({'title':_0x684fb7['data'][_0x49c8fe(0x1a7c)][_0x2ec4c3][_0x49c8fe(0x66a)],'msg':_0x684fb7[_0x49c8fe(0x25c)][_0x49c8fe(0x1a7c)][_0x2ec4c3][_0x49c8fe(0x155e)]});}}else _0x294b5f[_0x49c8fe(0x218e)]({'title':_0x684fb7[_0x49c8fe(0x291)]?'API:'+_0x684fb7[_0x49c8fe(0x291)]+_0x49c8fe(0x1657)+_0x684fb7[_0x49c8fe(0xc22)]:_0x49c8fe(0x190c),'msg':_0x684fb7[_0x49c8fe(0x25c)]?JSON[_0x49c8fe(0x2701)](_0x684fb7[_0x49c8fe(0x25c)]['message']):_0x684fb7[_0x49c8fe(0x147f)]()});});}function _0x44739a(){const _0x27b525=_0x10722d;_0x2adc26['errors']=[],_0x34cd2f[_0x27b525(0x24a4)][_0x27b525(0x687)]({'id':_0x2adc26['dynamics365Account']['id']},_0x2adc26[_0x27b525(0x1124)])['$promise'][_0x27b525(0x1cb0)](function(_0x16b340){const _0x57525f=_0x27b525,_0x3f414b=_0x39641b()[_0x57525f(0x13b4)](_0x2adc26[_0x57525f(0x1697)],{'id':_0x16b340['id']});_0x3f414b&&_0x39641b()[_0x57525f(0x9c1)](_0x3f414b,_0x39641b()[_0x57525f(0x169b)](_0x16b340[_0x57525f(0x19b2)](),_0x39641b()[_0x57525f(0x1be5)](_0x3f414b))),_0x294b5f['success']({'title':_0x57525f(0x1f02),'msg':_0x2adc26[_0x57525f(0x1124)][_0x57525f(0x16b6)]?_0x2adc26[_0x57525f(0x1124)][_0x57525f(0x16b6)]+_0x57525f(0xedb):''}),_0x32b7e9(_0x16b340);})[_0x27b525(0x1c4)](function(_0x36f211){const _0x1a7416=_0x27b525;if(_0x36f211[_0x1a7416(0x25c)]&&_0x36f211['data'][_0x1a7416(0x1a7c)]&&_0x36f211[_0x1a7416(0x25c)][_0x1a7416(0x1a7c)][_0x1a7416(0xfd0)]){_0x2adc26['errors']=_0x36f211[_0x1a7416(0x25c)][_0x1a7416(0x1a7c)]||[{'message':_0x36f211[_0x1a7416(0x147f)](),'type':_0x1a7416(0x1ae2)}];for(let _0x41fe3f=0x0;_0x41fe3f<_0x36f211[_0x1a7416(0x25c)][_0x1a7416(0x1a7c)][_0x1a7416(0xfd0)];_0x41fe3f++){_0x294b5f[_0x1a7416(0x218e)]({'title':_0x36f211[_0x1a7416(0x25c)][_0x1a7416(0x1a7c)][_0x41fe3f][_0x1a7416(0x66a)],'msg':_0x36f211[_0x1a7416(0x25c)][_0x1a7416(0x1a7c)][_0x41fe3f][_0x1a7416(0x155e)]});}}else _0x294b5f[_0x1a7416(0x218e)]({'title':_0x36f211[_0x1a7416(0x291)]?_0x1a7416(0xeb9)+_0x36f211[_0x1a7416(0x291)]+'\x20-\x20'+_0x36f211[_0x1a7416(0xc22)]:'api.intDynamics365Account.update','msg':_0x36f211[_0x1a7416(0x25c)]?JSON['stringify'](_0x36f211['data'][_0x1a7416(0x155e)]):_0x36f211[_0x1a7416(0x147f)]()});});}function _0x5764a0(_0x550e8b){const _0xcbcd28=_0x10722d;_0x2adc26[_0xcbcd28(0x1a7c)]=[];const _0x2badc8=_0x1bc21e[_0xcbcd28(0x1551)]()['title'](_0xcbcd28(0x1a2e))[_0xcbcd28(0x862)](_0xcbcd28(0x1732))[_0xcbcd28(0x15ad)](_0xcbcd28(0x128a))['ok'](_0xcbcd28(0x2594))['cancel'](_0xcbcd28(0xde1))[_0xcbcd28(0x728)](_0x550e8b);_0x1bc21e[_0xcbcd28(0xe27)](_0x2badc8)[_0xcbcd28(0x1cb0)](function(){const _0x30037b=_0xcbcd28;_0x34cd2f[_0x30037b(0x24a4)][_0x30037b(0x111d)]({'id':_0x2adc26['dynamics365Account']['id']})[_0x30037b(0x1d77)][_0x30037b(0x1cb0)](function(){const _0xd71333=_0x30037b;_0x39641b()[_0xd71333(0x152a)](_0x2adc26['dynamics365Accounts'],{'id':_0x2adc26['dynamics365Account']['id']}),_0x294b5f[_0xd71333(0x829)]({'title':'Dynamics365Account\x20properly\x20deleted!','msg':(_0x2adc26[_0xd71333(0x1124)][_0xd71333(0x16b6)]||_0xd71333(0x1124))+_0xd71333(0x3f5)}),_0x32b7e9(_0x2adc26['dynamics365Account']);})['catch'](function(_0x3f6d27){const _0x4bf562=_0x30037b;if(_0x3f6d27[_0x4bf562(0x25c)]&&_0x3f6d27[_0x4bf562(0x25c)][_0x4bf562(0x1a7c)]&&_0x3f6d27[_0x4bf562(0x25c)][_0x4bf562(0x1a7c)][_0x4bf562(0xfd0)]){_0x2adc26[_0x4bf562(0x1a7c)]=_0x3f6d27[_0x4bf562(0x25c)][_0x4bf562(0x1a7c)]||[{'message':_0x3f6d27['toString'](),'type':'api.intDynamics365Account.delete'}];for(let _0x5e57ec=0x0;_0x5e57ec<_0x3f6d27['data']['errors'][_0x4bf562(0xfd0)];_0x5e57ec++){_0x294b5f[_0x4bf562(0x218e)]({'title':_0x3f6d27['data'][_0x4bf562(0x1a7c)][_0x5e57ec][_0x4bf562(0x66a)],'msg':_0x3f6d27[_0x4bf562(0x25c)][_0x4bf562(0x1a7c)][_0x5e57ec][_0x4bf562(0x155e)]});}}else _0x294b5f['error']({'title':_0x3f6d27[_0x4bf562(0x291)]?_0x4bf562(0xeb9)+_0x3f6d27[_0x4bf562(0x291)]+'\x20-\x20'+_0x3f6d27[_0x4bf562(0xc22)]:_0x4bf562(0x112b),'msg':_0x3f6d27[_0x4bf562(0x25c)]?JSON['stringify'](_0x3f6d27[_0x4bf562(0x25c)]['message']):_0x3f6d27['message']||_0x3f6d27[_0x4bf562(0x147f)]()});});},function(){});}function _0xe039a5(_0xcbfc1d){return _0xcbfc1d===null?undefined:new Date(_0xcbfc1d);}function _0x32b7e9(_0x1f986a){const _0x4b5987=_0x10722d;_0x1bc21e[_0x4b5987(0x1426)](_0x1f986a);}}const _0x23154d=_0x4e0703;;const _0x161b94=_0x5074a3['p']+_0x5537c6(0xb9e);;_0x2b464e['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),'$mdSidenav',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x1697),'userProfile',_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x2b464e(_0x145866,_0x4075ce,_0x36ab67,_0x422d93,_0xcf6e73,_0x34c76e,_0x8aaac1,_0x292c4c,_0x5ea447,_0x23b1d0,_0x5638f6,_0x3ae862,_0x46e555,_0x1be27c,_0x232c50,_0x57ca40,_0x4abfd9){const _0x1d48ef=_0x5537c6,_0x4db7dd=this;_0x4db7dd[_0x1d48ef(0x8a5)]=_0x57ca40,_0x4db7dd[_0x1d48ef(0x9ca)]=_0x4abfd9,_0x4db7dd[_0x1d48ef(0xe76)]=_0x232c50[_0x1d48ef(0x21e8)](),_0x4db7dd[_0x1d48ef(0x1697)]=_0x5ea447||{'count':0x0,'rows':[]},_0x4db7dd['userProfile']=_0x23b1d0,_0x4db7dd['userProfileSection']=_0x5638f6&&_0x5638f6[_0x1d48ef(0x184d)]==0x1?_0x5638f6[_0x1d48ef(0x2214)][0x0]:null,_0x4db7dd[_0x1d48ef(0x1b1a)]=_0x232c50[_0x1d48ef(0x14ea)](_0x4db7dd[_0x1d48ef(0x2199)]?_0x4db7dd[_0x1d48ef(0x2199)][_0x1d48ef(0x1b1a)]:null),_0x4db7dd[_0x1d48ef(0xc83)]=_0x1d48ef(0x1697),_0x4db7dd['listOrder']='',_0x4db7dd[_0x1d48ef(0x1cdf)]=null,_0x4db7dd[_0x1d48ef(0x1a14)]=[],_0x4db7dd['query']={'fields':_0x1d48ef(0x1c75),'limit':0xa,'page':0x1},_0x4db7dd[_0x1d48ef(0x235d)]=_0x48ba8b,_0x4db7dd[_0x1d48ef(0x6b1)]=_0xc4b93a,_0x4db7dd[_0x1d48ef(0x27fe)]=_0x46c5c5,_0x4db7dd[_0x1d48ef(0x829)]=_0x445f9e,_0x4db7dd['getDynamics365Accounts']=_0x13746f,_0x4db7dd[_0x1d48ef(0x2235)]=_0x3d0916,_0x4db7dd[_0x1d48ef(0x155d)]=_0x59fad6,_0x4db7dd['exportSelectedDynamics365Accounts']=_0x60fc57,_0x4db7dd['deleteSelectedDynamics365Accounts']=_0x35dea2,_0x4db7dd[_0x1d48ef(0x1ee)]=_0xd83f81,_0x4db7dd[_0x1d48ef(0x16e4)]=_0x5a7ba4;function _0x48ba8b(_0x500971){const _0x5b2157=_0x1d48ef;_0x36ab67['go'](_0x5b2157(0x244c),{'id':_0x500971['id'],'dynamics365Account':_0x500971,'crudPermissions':_0x4db7dd[_0x5b2157(0x1b1a)]});}function _0xc4b93a(_0xc504b){const _0x2511a2=_0x1d48ef;return _0x3ae862[_0x2511a2(0x24a4)][_0x2511a2(0xc84)]({'id':_0xc504b['id'],'test':!![]})[_0x2511a2(0x1d77)]['then'](function(){const _0x4d6a70=_0x2511a2;_0x1be27c[_0x4d6a70(0x829)]({'title':_0x4d6a70(0x9fa),'msg':'Connection\x20succeded!'});})[_0x2511a2(0x1c4)](function(_0x38bf31){const _0x134188=_0x2511a2;_0x1be27c[_0x134188(0x218e)]({'title':_0x134188(0x9fa),'msg':_0x38bf31[_0x134188(0x25c)]?_0x38bf31[_0x134188(0x25c)][_0x134188(0x155e)]?_0x38bf31[_0x134188(0x25c)][_0x134188(0x155e)]:JSON[_0x134188(0x2701)](_0x38bf31[_0x134188(0x25c)]):_0x38bf31[_0x134188(0x147f)]()});});}function _0x46c5c5(_0x132877,_0x447f82){const _0x3c525d=_0x1d48ef,_0x50b77c=_0xcf6e73[_0x3c525d(0x1551)]()[_0x3c525d(0x1386)](_0x3c525d(0x140b)+_0x39641b()[_0x3c525d(0xa75)](_0x3c525d(0x1124))+'?')[_0x3c525d(0x49e)](_0x3c525d(0x204d)+(_0x132877['name']||_0x3c525d(0x1124))+_0x3c525d(0x1200)+_0x3c525d(0x1b6))[_0x3c525d(0x15ad)](_0x3c525d(0xe5d))[_0x3c525d(0x728)](_0x447f82)['ok']('OK')[_0x3c525d(0x696)](_0x3c525d(0x24ba));_0xcf6e73[_0x3c525d(0xe27)](_0x50b77c)[_0x3c525d(0x1cb0)](function(){_0x59fad6(_0x132877);},function(){const _0x25428b=_0x3c525d;console[_0x25428b(0x1b4f)]('CANCEL');});}let _0x52f178=!![],_0xbf717b=0x1;_0x145866[_0x1d48ef(0x614)](_0x1d48ef(0x957),function(_0x139398,_0x1a0d0b){const _0x107e5d=_0x1d48ef;_0x52f178?_0x8aaac1(function(){_0x52f178=![];}):(!_0x1a0d0b&&(_0xbf717b=_0x4db7dd[_0x107e5d(0xae2)][_0x107e5d(0x1c7b)]),_0x139398!==_0x1a0d0b&&(_0x4db7dd[_0x107e5d(0xae2)][_0x107e5d(0x1c7b)]=0x1),!_0x139398&&(_0x4db7dd[_0x107e5d(0xae2)][_0x107e5d(0x1c7b)]=_0xbf717b),_0x4db7dd[_0x107e5d(0x2397)]());});function _0x445f9e(_0x3937b0){const _0x5678c2=_0x1d48ef;_0x4db7dd[_0x5678c2(0x1697)]=_0x3937b0||{'count':0x0,'rows':[]};}function _0x13746f(){const _0x46a597=_0x1d48ef;_0x4db7dd['query'][_0x46a597(0x184b)]=(_0x4db7dd[_0x46a597(0xae2)][_0x46a597(0x1c7b)]-0x1)*_0x4db7dd['query']['limit'],_0x232c50[_0x46a597(0x22b6)]('admin')?_0x4db7dd[_0x46a597(0x2061)]=_0x3ae862[_0x46a597(0x24a4)][_0x46a597(0xbf7)](_0x4db7dd[_0x46a597(0xae2)],_0x445f9e)[_0x46a597(0x1d77)]:(_0x4db7dd['query']['id']=_0x4db7dd['userProfile']['id'],_0x4db7dd['query'][_0x46a597(0x1f74)]=_0x46a597(0x88e),_0x4db7dd[_0x46a597(0x2061)]=_0x3ae862[_0x46a597(0x44a)]['getResources'](_0x4db7dd[_0x46a597(0xae2)],_0x445f9e)['$promise']);}function _0x3d0916(_0x3303aa,_0x42f03d){const _0x30cd1c=_0x1d48ef;_0xcf6e73['show']({'controller':_0x30cd1c(0x13a9),'controllerAs':'vm','templateUrl':_0x161b94,'parent':angular['element'](_0x34c76e['body']),'targetEvent':_0x3303aa,'clickOutsideToClose':!![],'locals':{'dynamics365Account':_0x42f03d,'dynamics365Accounts':_0x4db7dd[_0x30cd1c(0x1697)][_0x30cd1c(0x2214)],'license':_0x4db7dd[_0x30cd1c(0x8a5)],'setting':_0x4db7dd[_0x30cd1c(0x9ca)],'crudPermissions':_0x4db7dd[_0x30cd1c(0x1b1a)]}});}function _0x59fad6(_0x2042e4){const _0x26da5f=_0x1d48ef;_0x3ae862[_0x26da5f(0x24a4)][_0x26da5f(0x111d)]({'id':_0x2042e4['id']})[_0x26da5f(0x1d77)][_0x26da5f(0x1cb0)](function(){const _0x4ece9c=_0x26da5f;_0x39641b()[_0x4ece9c(0x152a)](_0x4db7dd['dynamics365Accounts']['rows'],{'id':_0x2042e4['id']}),_0x4db7dd[_0x4ece9c(0x1697)][_0x4ece9c(0x184d)]-=0x1,!_0x4db7dd[_0x4ece9c(0x1697)][_0x4ece9c(0x2214)]['length']&&_0x4db7dd[_0x4ece9c(0x2397)](),_0x1be27c[_0x4ece9c(0x829)]({'title':_0x39641b()['startCase']('Dynamics365Account')+_0x4ece9c(0x2663),'msg':_0x2042e4[_0x4ece9c(0x16b6)]?_0x2042e4[_0x4ece9c(0x16b6)]+_0x4ece9c(0x3f5):''});})[_0x26da5f(0x1c4)](function(_0x26b32c){const _0x15b0ca=_0x26da5f;if(_0x26b32c['data']&&_0x26b32c['data'][_0x15b0ca(0x1a7c)]&&_0x26b32c[_0x15b0ca(0x25c)][_0x15b0ca(0x1a7c)][_0x15b0ca(0xfd0)]){_0x4db7dd['errors']=_0x26b32c[_0x15b0ca(0x25c)][_0x15b0ca(0x1a7c)]||[{'message':_0x26b32c['toString'](),'type':'SYSTEM:DELETEintDynamics365Account'}];for(let _0x1f0ccf=0x0;_0x1f0ccf<_0x26b32c[_0x15b0ca(0x25c)]['errors']['length'];_0x1f0ccf++){_0x1be27c['error']({'title':_0x26b32c[_0x15b0ca(0x25c)][_0x15b0ca(0x1a7c)][_0x1f0ccf][_0x15b0ca(0x66a)],'msg':_0x26b32c[_0x15b0ca(0x25c)][_0x15b0ca(0x1a7c)][_0x1f0ccf][_0x15b0ca(0x155e)]});}}else _0x1be27c[_0x15b0ca(0x218e)]({'title':_0x26b32c[_0x15b0ca(0x291)]?_0x15b0ca(0xeb9)+_0x26b32c[_0x15b0ca(0x291)]+_0x15b0ca(0x1657)+_0x26b32c[_0x15b0ca(0xc22)]:_0x15b0ca(0x1584),'msg':_0x26b32c['data']?JSON['stringify'](_0x26b32c['data'][_0x15b0ca(0x155e)]):_0x26b32c[_0x15b0ca(0x155e)]||_0x26b32c['toString']()});});}function _0x60fc57(){const _0x5601c2=_0x1d48ef,_0x43b955=angular[_0x5601c2(0x17fe)](_0x4db7dd['selectedDynamics365Accounts']);return _0x4db7dd[_0x5601c2(0x1a14)]=[],_0x43b955;}function _0x35dea2(_0x12b044){const _0x606e6a=_0x1d48ef,_0x53d59d=_0xcf6e73[_0x606e6a(0x1551)]()['title'](_0x606e6a(0x19ce))[_0x606e6a(0x49e)](_0x606e6a(0x204d)+_0x4db7dd[_0x606e6a(0x1a14)]['length']+_0x606e6a(0x1d6c)+_0x606e6a(0x1b6))[_0x606e6a(0x15ad)](_0x606e6a(0x157f))[_0x606e6a(0x728)](_0x12b044)['ok']('OK')['cancel']('CANCEL');_0xcf6e73[_0x606e6a(0xe27)](_0x53d59d)[_0x606e6a(0x1cb0)](function(){const _0x1042ea=_0x606e6a;_0x4db7dd[_0x1042ea(0x1a14)][_0x1042ea(0xf90)](function(_0x3586f2){_0x59fad6(_0x3586f2);}),_0x4db7dd['selectedDynamics365Accounts']=[];});}function _0xd83f81(){const _0x32aabb=_0x1d48ef;_0x4db7dd[_0x32aabb(0x1a14)]=[];}function _0x5a7ba4(){const _0x529531=_0x1d48ef;_0x4db7dd[_0x529531(0x1a14)]=_0x4db7dd[_0x529531(0x1697)]['rows'];}}const _0x4eaeec=_0x2b464e;;const _0x372805=_0x5074a3['p']+_0x5537c6(0x1e72);;const _0x1706ac=_0x5074a3['p']+_0x5537c6(0x720);;_0x47e26f[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774)];function _0x47e26f(_0x1c35ef,_0x3e452e,_0x4d7f88,_0xd9c6c5,_0x4e2070){const _0x407c7a=_0x5537c6,_0x50b0d3=this;_0x50b0d3[_0x407c7a(0xe76)]=_0x4e2070[_0x407c7a(0x21e8)](),_0x50b0d3[_0x407c7a(0x1124)]={},_0x50b0d3[_0x407c7a(0x1c58)]={},_0x50b0d3[_0x407c7a(0xa06)]=[],_0x50b0d3[_0x407c7a(0x560)]=-0x1,_0x50b0d3[_0x407c7a(0x1b1a)],_0x50b0d3[_0x407c7a(0x1a8e)]=_0x450660,_0x50b0d3[_0x407c7a(0xc37)]=_0x152f82,_0x50b0d3['createOrEditDynamics365Configuration']=_0x4d551c,_0x50b0d3['deleteDynamics365Configuration']=_0x4da0e7;function _0x450660(_0x26b170,_0x26ae82){const _0x1b1499=_0x407c7a;_0x50b0d3[_0x1b1499(0x1124)]=_0x26b170,_0x50b0d3[_0x1b1499(0x1b1a)]=typeof _0x26ae82!==_0x1b1499(0x16b5)?_0x26ae82:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4d7f88[_0x1b1499(0x24a4)][_0x1b1499(0x618)]({'id':_0x50b0d3['dynamics365Account']['id'],'sort':_0x1b1499(0x282)})[_0x1b1499(0x1d77)][_0x1b1499(0x1cb0)](function(_0x2e2b11){const _0x248777=_0x1b1499;return _0x50b0d3[_0x248777(0xa06)]=_0x2e2b11['rows']?_0x2e2b11[_0x248777(0x2214)]:[],_0x50b0d3[_0x248777(0xa06)][_0x248777(0xfd0)]&&_0x50b0d3['getDynamics365Configuration'](0x0),_0x4d7f88[_0x248777(0x1822)]['get']({'nolimit':!![],'sort':_0x248777(0x16b6)})[_0x248777(0x1d77)];})[_0x1b1499(0x1cb0)](function(_0x3d167f){const _0x39d2d0=_0x1b1499;_0x50b0d3['variables']=_0x3d167f[_0x39d2d0(0x2214)]?_0x3d167f[_0x39d2d0(0x2214)]:[],_0x50b0d3[_0x39d2d0(0x1a3c)]=_0x39641b()[_0x39d2d0(0x2631)](_0x50b0d3[_0x39d2d0(0x9a9)],'id');})[_0x1b1499(0x1c4)](function(_0x55b073){const _0x3c3968=_0x1b1499;_0xd9c6c5[_0x3c3968(0x218e)]({'title':_0x55b073[_0x3c3968(0x291)]?_0x3c3968(0xeb9)+_0x55b073[_0x3c3968(0x291)]+'\x20-\x20'+_0x55b073[_0x3c3968(0xc22)]:_0x3c3968(0x1b0f),'msg':_0x55b073[_0x3c3968(0x25c)]?JSON['stringify'](_0x55b073[_0x3c3968(0x25c)]):_0x55b073['toString']()});});}function _0x152f82(_0x26ed7b){const _0x13be19=_0x407c7a;_0x50b0d3[_0x13be19(0x1c58)]=_0x50b0d3[_0x13be19(0xa06)][_0x26ed7b],_0x50b0d3[_0x13be19(0x560)]=_0x26ed7b,_0x4d7f88['intDynamics365Configuration']['getSubjects']({'id':_0x50b0d3[_0x13be19(0x1c58)]['id']})['$promise']['then'](function(_0x42a0d6){const _0x3af385=_0x13be19;return _0x50b0d3[_0x3af385(0x2388)]=_0x42a0d6[_0x3af385(0x2214)]?_0x42a0d6[_0x3af385(0x2214)]:[],_0x4d7f88[_0x3af385(0x2243)][_0x3af385(0xb6d)]({'id':_0x50b0d3['dynamics365Configuration']['id']})[_0x3af385(0x1d77)];})[_0x13be19(0x1cb0)](function(_0x24d18a){const _0x4ea719=_0x13be19;return _0x50b0d3[_0x4ea719(0x310)]=_0x24d18a[_0x4ea719(0x2214)]?_0x24d18a['rows']:[],_0x4d7f88[_0x4ea719(0x2243)][_0x4ea719(0xc84)]({'id':_0x50b0d3[_0x4ea719(0x1c58)]['id']})[_0x4ea719(0x1d77)];})[_0x13be19(0x1cb0)](function(_0x153858){const _0x3e7bfe=_0x13be19;_0x50b0d3[_0x3e7bfe(0x355)]=_0x153858[_0x3e7bfe(0x2214)]?_0x153858[_0x3e7bfe(0x2214)]:[];})[_0x13be19(0x1c4)](function(_0xce22bf){const _0xe84f6a=_0x13be19;_0xd9c6c5[_0xe84f6a(0x218e)]({'title':_0xce22bf[_0xe84f6a(0x291)]?_0xe84f6a(0xeb9)+_0xce22bf[_0xe84f6a(0x291)]+_0xe84f6a(0x1657)+_0xce22bf[_0xe84f6a(0xc22)]:'SYSTEM:GETConfigurations','msg':_0xce22bf[_0xe84f6a(0x25c)]?JSON[_0xe84f6a(0x2701)](_0xce22bf[_0xe84f6a(0x25c)]):_0xce22bf[_0xe84f6a(0x147f)]()});});}function _0x4d551c(_0x52c0a2,_0x559913){const _0x449f30=_0x407c7a;_0x1c35ef[_0x449f30(0xe27)]({'controller':'CreateOrEditDynamics365ConfigurationDialogController','controllerAs':'vm','templateUrl':_0x372805,'parent':angular['element'](_0x3e452e['body']),'targetEvent':_0x52c0a2,'clickOutsideToClose':!![],'locals':{'dynamics365Configuration':_0x559913,'configurations':_0x50b0d3[_0x449f30(0xa06)],'license':null,'setting':null,'crudPermissions':_0x50b0d3[_0x449f30(0x1b1a)]}})[_0x449f30(0x2e0)](function(){_0x50b0d3['getDynamics365Configuration'](0x0);});}function _0x4da0e7(_0x4fa96b,_0xc12eba){const _0x5617ca=_0x407c7a,_0x3a43f1=_0x1c35ef[_0x5617ca(0x1551)]()[_0x5617ca(0x1386)](_0x5617ca(0xcf4))[_0x5617ca(0x49e)](_0x5617ca(0x204d)+(_0xc12eba[_0x5617ca(0x16b6)]||_0x5617ca(0x1c58))+_0x5617ca(0x1200)+_0x5617ca(0x1b6))[_0x5617ca(0x15ad)](_0x5617ca(0xe7e))[_0x5617ca(0x728)](_0x4fa96b)['ok']('OK')[_0x5617ca(0x696)]('CANCEL');_0x1c35ef[_0x5617ca(0xe27)](_0x3a43f1)[_0x5617ca(0x1cb0)](function(){const _0x13a606=_0x5617ca;_0x4d7f88[_0x13a606(0x2243)][_0x13a606(0x111d)]({'id':_0xc12eba['id']})[_0x13a606(0x1d77)][_0x13a606(0x1cb0)](function(){const _0x3a37a5=_0x13a606;_0x39641b()[_0x3a37a5(0x152a)](_0x50b0d3[_0x3a37a5(0xa06)],{'id':_0xc12eba['id']}),_0xd9c6c5[_0x3a37a5(0x829)]({'title':_0x3a37a5(0x25d0),'msg':_0xc12eba[_0x3a37a5(0x16b6)]?_0xc12eba['name']+_0x3a37a5(0x3f5):''});})[_0x13a606(0x1c4)](function(_0x54ec9a){const _0x3264f2=_0x13a606;_0xd9c6c5[_0x3264f2(0x218e)]({'title':_0x54ec9a['status']?'API:'+_0x54ec9a[_0x3264f2(0x291)]+_0x3264f2(0x1657)+_0x54ec9a[_0x3264f2(0xc22)]:_0x3264f2(0x543),'msg':_0x54ec9a[_0x3264f2(0x25c)]?JSON[_0x3264f2(0x2701)](_0x54ec9a[_0x3264f2(0x25c)]):_0x54ec9a[_0x3264f2(0x147f)]()});})[_0x13a606(0x2e0)](function(){const _0x20df09=_0x13a606;_0x50b0d3[_0x20df09(0xc37)](0x0);});},function(){const _0x44de95=_0x5617ca;console[_0x44de95(0x1b4f)](_0x44de95(0x24ba));});}_0x50b0d3['selectedSubjects']=[],_0x50b0d3[_0x407c7a(0x1267)]=_0x45911f,_0x50b0d3[_0x407c7a(0x259e)]=_0x3b7df0,_0x50b0d3[_0x407c7a(0xf12)]=_0x46fa91;function _0x45911f(_0x38d7d0,_0x2d80f3){const _0xfadc3f=_0x407c7a;_0x1c35ef[_0xfadc3f(0xe27)]({'controller':_0xfadc3f(0x208),'controllerAs':'vm','templateUrl':_0x1706ac,'parent':angular[_0xfadc3f(0x1853)](_0x3e452e[_0xfadc3f(0x1ed9)]),'targetEvent':_0x38d7d0,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x2d80f3,'items':_0x50b0d3[_0xfadc3f(0x2388)],'configuration':_0x50b0d3[_0xfadc3f(0x1c58)],'account':_0x50b0d3[_0xfadc3f(0x1124)],'license':null,'setting':null,'crudPermissions':_0x50b0d3[_0xfadc3f(0x1b1a)]}});}function _0x3df509(_0x3f20fb){const _0x19566e=_0x407c7a;_0x4d7f88[_0x19566e(0x26f0)][_0x19566e(0x111d)]({'id':_0x3f20fb['id']})[_0x19566e(0x1d77)][_0x19566e(0x1cb0)](function(){const _0x1c924d=_0x19566e;_0x39641b()[_0x1c924d(0x152a)](_0x50b0d3['subjects'],{'id':_0x3f20fb['id']}),_0xd9c6c5[_0x1c924d(0x829)]({'title':_0x1c924d(0x1d11),'msg':'Subject\x20has\x20been\x20deleted!'});})['catch'](function(_0x36ad8f){const _0x5e729c=_0x19566e;_0xd9c6c5[_0x5e729c(0x218e)]({'title':_0x36ad8f['status']?_0x5e729c(0xeb9)+_0x36ad8f['status']+_0x5e729c(0x1657)+_0x36ad8f[_0x5e729c(0xc22)]:_0x5e729c(0x13e5),'msg':_0x36ad8f[_0x5e729c(0x25c)]?JSON[_0x5e729c(0x2701)](_0x36ad8f['data']):_0x36ad8f[_0x5e729c(0x147f)]()});});}function _0x3b7df0(_0x31cda2,_0xb5f20c){const _0x36ad3e=_0x407c7a,_0x5453bd=_0x1c35ef[_0x36ad3e(0x1551)]()['title'](_0x36ad3e(0xa59))['htmlContent'](_0x36ad3e(0x14ee)+_0x36ad3e(0x1b6))[_0x36ad3e(0x15ad)](_0x36ad3e(0xbc3))[_0x36ad3e(0x728)](_0x31cda2)['ok']('OK')[_0x36ad3e(0x696)]('CANCEL');_0x1c35ef[_0x36ad3e(0xe27)](_0x5453bd)[_0x36ad3e(0x1cb0)](function(){_0x3df509(_0xb5f20c);},function(){const _0x356e36=_0x36ad3e;console[_0x356e36(0x1b4f)](_0x356e36(0x24ba));});}function _0x46fa91(_0x6c1897){const _0x3c0456=_0x407c7a,_0x1b41ea=_0x1c35ef['confirm']()[_0x3c0456(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')[_0x3c0456(0x49e)](''+_0x50b0d3[_0x3c0456(0x4df)]['length']+_0x3c0456(0x1d6c)+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x3c0456(0x222e))[_0x3c0456(0x728)](_0x6c1897)['ok']('OK')['cancel'](_0x3c0456(0x24ba));_0x1c35ef[_0x3c0456(0xe27)](_0x1b41ea)['then'](function(){const _0x48c927=_0x3c0456;_0x50b0d3[_0x48c927(0x4df)][_0x48c927(0xf90)](function(_0x5b7dad){_0x3df509(_0x5b7dad);}),_0x50b0d3[_0x48c927(0x4df)]=[];});}_0x50b0d3['selectedDescriptions']=[],_0x50b0d3[_0x407c7a(0x14c7)]=_0x52c02f,_0x50b0d3[_0x407c7a(0xc09)]=_0x77c848,_0x50b0d3[_0x407c7a(0x2931)]=_0x2a9b77;function _0x52c02f(_0x11aeb8,_0x523cc0){const _0x5091f7=_0x407c7a;_0x1c35ef[_0x5091f7(0xe27)]({'controller':'CreateOrEditDynamics365AccountItemDialogController','controllerAs':'vm','templateUrl':_0x1706ac,'parent':angular[_0x5091f7(0x1853)](_0x3e452e[_0x5091f7(0x1ed9)]),'targetEvent':_0x11aeb8,'clickOutsideToClose':!![],'locals':{'type':_0x5091f7(0x2c1),'item':_0x523cc0,'items':_0x50b0d3[_0x5091f7(0x310)],'configuration':_0x50b0d3[_0x5091f7(0x1c58)],'account':_0x50b0d3[_0x5091f7(0x1124)],'license':null,'setting':null,'crudPermissions':_0x50b0d3['crudPermissions']}});}function _0x13084b(_0x192954){const _0x136fd6=_0x407c7a;_0x4d7f88[_0x136fd6(0x26f0)][_0x136fd6(0x111d)]({'id':_0x192954['id']})[_0x136fd6(0x1d77)][_0x136fd6(0x1cb0)](function(){const _0x251a66=_0x136fd6;_0x39641b()[_0x251a66(0x152a)](_0x50b0d3['descriptions'],{'id':_0x192954['id']}),_0xd9c6c5[_0x251a66(0x829)]({'title':_0x251a66(0x24c0),'msg':'Description\x20has\x20been\x20deleted!'});})[_0x136fd6(0x1c4)](function(_0xfb5704){const _0x272b7c=_0x136fd6;_0xd9c6c5[_0x272b7c(0x218e)]({'title':_0xfb5704[_0x272b7c(0x291)]?_0x272b7c(0xeb9)+_0xfb5704[_0x272b7c(0x291)]+_0x272b7c(0x1657)+_0xfb5704['statusText']:_0x272b7c(0x13e5),'msg':_0xfb5704[_0x272b7c(0x25c)]?JSON[_0x272b7c(0x2701)](_0xfb5704[_0x272b7c(0x25c)]):_0xfb5704[_0x272b7c(0x147f)]()});});}function _0x77c848(_0x15aad3,_0x2ef884){const _0x101ce3=_0x407c7a,_0x133367=_0x1c35ef[_0x101ce3(0x1551)]()[_0x101ce3(0x1386)](_0x101ce3(0x7d2))[_0x101ce3(0x49e)](_0x101ce3(0x18b8)+_0x101ce3(0x1b6))[_0x101ce3(0x15ad)](_0x101ce3(0x103d))['targetEvent'](_0x15aad3)['ok']('OK')['cancel'](_0x101ce3(0x24ba));_0x1c35ef[_0x101ce3(0xe27)](_0x133367)[_0x101ce3(0x1cb0)](function(){_0x13084b(_0x2ef884);},function(){const _0x498b56=_0x101ce3;console[_0x498b56(0x1b4f)](_0x498b56(0x24ba));});}function _0x2a9b77(_0x4f24b1){const _0x1d349a=_0x407c7a,_0x177c46=_0x1c35ef[_0x1d349a(0x1551)]()[_0x1d349a(0x1386)](_0x1d349a(0x2e7))[_0x1d349a(0x49e)](_0x1d349a(0x204d)+_0x50b0d3[_0x1d349a(0xac6)][_0x1d349a(0xfd0)]+_0x1d349a(0x1d6c)+_0x1d349a(0x1b6))[_0x1d349a(0x15ad)]('delete\x20descriptions')[_0x1d349a(0x728)](_0x4f24b1)['ok']('OK')[_0x1d349a(0x696)](_0x1d349a(0x24ba));_0x1c35ef[_0x1d349a(0xe27)](_0x177c46)['then'](function(){const _0x475ab9=_0x1d349a;_0x50b0d3[_0x475ab9(0xac6)][_0x475ab9(0xf90)](function(_0x2822a7){_0x13084b(_0x2822a7);}),_0x50b0d3[_0x475ab9(0xac6)]=[];});}_0x50b0d3[_0x407c7a(0x9b2)]=[],_0x50b0d3[_0x407c7a(0x5e9)]=_0x38103c,_0x50b0d3['deleteFieldConfirm']=_0x41949d,_0x50b0d3['deleteSelectedFields']=_0x409fa6;function _0x38103c(_0x428f2c,_0x2c50d2){const _0x116f2c=_0x407c7a;_0x1c35ef[_0x116f2c(0xe27)]({'controller':_0x116f2c(0x208),'controllerAs':'vm','templateUrl':_0x1706ac,'parent':angular['element'](_0x3e452e[_0x116f2c(0x1ed9)]),'targetEvent':_0x428f2c,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x2c50d2,'items':_0x50b0d3[_0x116f2c(0x355)],'configuration':_0x50b0d3['dynamics365Configuration'],'account':_0x50b0d3['dynamics365Account'],'license':null,'setting':null,'crudPermissions':_0x50b0d3[_0x116f2c(0x1b1a)]}});}function _0x319331(_0x18f3f8){const _0x459e3f=_0x407c7a;_0x4d7f88[_0x459e3f(0x26f0)]['delete']({'id':_0x18f3f8['id']})['$promise']['then'](function(){const _0x87221c=_0x459e3f;_0x39641b()[_0x87221c(0x152a)](_0x50b0d3[_0x87221c(0x355)],{'id':_0x18f3f8['id']}),_0xd9c6c5[_0x87221c(0x829)]({'title':_0x87221c(0xd6b),'msg':_0x87221c(0x2688)});})[_0x459e3f(0x1c4)](function(_0x413611){const _0x423da1=_0x459e3f;_0xd9c6c5[_0x423da1(0x218e)]({'title':_0x413611[_0x423da1(0x291)]?_0x423da1(0xeb9)+_0x413611[_0x423da1(0x291)]+_0x423da1(0x1657)+_0x413611[_0x423da1(0xc22)]:_0x423da1(0x13e5),'msg':_0x413611['data']?JSON['stringify'](_0x413611[_0x423da1(0x25c)]):_0x413611[_0x423da1(0x147f)]()});});}function _0x41949d(_0x26a3c8,_0x3d30f2){const _0x5dee95=_0x407c7a,_0x566476=_0x1c35ef[_0x5dee95(0x1551)]()[_0x5dee95(0x1386)](_0x5dee95(0x21a9))[_0x5dee95(0x49e)](_0x5dee95(0xf1d)+_0x5dee95(0x1b6))[_0x5dee95(0x15ad)]('delete\x20field')[_0x5dee95(0x728)](_0x26a3c8)['ok']('OK')[_0x5dee95(0x696)](_0x5dee95(0x24ba));_0x1c35ef[_0x5dee95(0xe27)](_0x566476)[_0x5dee95(0x1cb0)](function(){_0x319331(_0x3d30f2);},function(){const _0xd34ab7=_0x5dee95;console[_0xd34ab7(0x1b4f)]('CANCEL');});}function _0x409fa6(_0x523603){const _0x3dbaed=_0x407c7a,_0x168b83=_0x1c35ef[_0x3dbaed(0x1551)]()[_0x3dbaed(0x1386)](_0x3dbaed(0x983))[_0x3dbaed(0x49e)](_0x3dbaed(0x204d)+_0x50b0d3[_0x3dbaed(0x9b2)][_0x3dbaed(0xfd0)]+_0x3dbaed(0x1d6c)+_0x3dbaed(0x1b6))['ariaLabel']('delete\x20fields')[_0x3dbaed(0x728)](_0x523603)['ok']('OK')[_0x3dbaed(0x696)](_0x3dbaed(0x24ba));_0x1c35ef[_0x3dbaed(0xe27)](_0x168b83)[_0x3dbaed(0x1cb0)](function(){const _0x271906=_0x3dbaed;_0x50b0d3[_0x271906(0x9b2)]['forEach'](function(_0x59ee85){_0x319331(_0x59ee85);}),_0x50b0d3[_0x271906(0x9b2)]=[];});}}const _0x5ec901=_0x47e26f;;_0x8f9173['$inject']=[_0x5537c6(0x1463),'$state','$location',_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),'toasty','configurations',_0x5537c6(0x1c58),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x8f9173(_0x936503,_0x34f863,_0x4af53d,_0x45c614,_0x49fba2,_0x363265,_0x10fe90,_0x5c2026,_0x2e3d4c,_0x3a4229,_0x21daf1,_0x42004f,_0x39d452,_0x5297bd){const _0x171e8b=_0x5537c6,_0x362652=this;_0x362652['currentUser']=_0x21daf1[_0x171e8b(0x21e8)](),_0x362652[_0x171e8b(0x1a7c)]=[],_0x362652[_0x171e8b(0x9ca)]=_0x39d452,_0x362652[_0x171e8b(0x8a5)]=_0x42004f,_0x362652[_0x171e8b(0x1b1a)]=_0x5297bd,_0x362652[_0x171e8b(0xf4c)]={},_0x362652['passwordPattern']=_0x362652[_0x171e8b(0x9ca)]&&_0x362652[_0x171e8b(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x362652['title']=_0x171e8b(0x2016),_0x362652[_0x171e8b(0x1c58)]=angular[_0x171e8b(0x17fe)](_0x2e3d4c),_0x362652['configurations']=_0x5c2026,_0x362652['newDynamics365Configuration']=![];!_0x362652[_0x171e8b(0x1c58)]&&(_0x362652[_0x171e8b(0x1c58)]={'channel':'voice','type':_0x171e8b(0x26c0),'ticketType':_0x171e8b(0xc3c)},_0x362652[_0x171e8b(0x1386)]=_0x171e8b(0x2141),_0x362652[_0x171e8b(0x27c9)]=!![]);_0x362652[_0x171e8b(0x2241)]=_0x49c331,_0x362652['saveDynamics365Configuration']=_0x320ab4,_0x362652[_0x171e8b(0x2595)]=_0x41a6c7,_0x362652[_0x171e8b(0x2c4)]=_0x593568,_0x362652[_0x171e8b(0xda0)]=_0x48f2b7;function _0x49c331(){const _0x14c19a=_0x171e8b;_0x362652[_0x14c19a(0x1a7c)]=[],_0x3a4229[_0x14c19a(0x24a4)][_0x14c19a(0x1070)]({'id':_0x34f863['params']['id']},_0x362652['dynamics365Configuration'])[_0x14c19a(0x1d77)][_0x14c19a(0x1cb0)](function(_0x5d62ce){const _0x213ad5=_0x14c19a;_0x362652[_0x213ad5(0xa06)]['unshift'](_0x5d62ce[_0x213ad5(0x19b2)]()),_0x10fe90[_0x213ad5(0x829)]({'title':_0x213ad5(0x133f),'msg':_0x362652[_0x213ad5(0x1c58)][_0x213ad5(0x16b6)]?_0x362652['dynamics365Configuration'][_0x213ad5(0x16b6)]+_0x213ad5(0x470):''}),_0x48f2b7(_0x5d62ce);})['catch'](function(_0x2b8ed7){const _0x48eec0=_0x14c19a;if(_0x2b8ed7[_0x48eec0(0x25c)]&&_0x2b8ed7[_0x48eec0(0x25c)][_0x48eec0(0x1a7c)]&&_0x2b8ed7[_0x48eec0(0x25c)]['errors'][_0x48eec0(0xfd0)]){_0x362652['errors']=_0x2b8ed7[_0x48eec0(0x25c)][_0x48eec0(0x1a7c)]||[{'message':_0x2b8ed7[_0x48eec0(0x147f)](),'type':_0x48eec0(0xbe5)}];for(let _0x23a00b=0x0;_0x23a00b<_0x2b8ed7[_0x48eec0(0x25c)][_0x48eec0(0x1a7c)][_0x48eec0(0xfd0)];_0x23a00b+=0x1){_0x10fe90[_0x48eec0(0x218e)]({'title':_0x2b8ed7[_0x48eec0(0x25c)]['errors'][_0x23a00b][_0x48eec0(0x66a)],'msg':_0x2b8ed7[_0x48eec0(0x25c)][_0x48eec0(0x1a7c)][_0x23a00b][_0x48eec0(0x155e)]});}}else _0x10fe90[_0x48eec0(0x218e)]({'title':_0x2b8ed7[_0x48eec0(0x291)]?_0x48eec0(0xeb9)+_0x2b8ed7[_0x48eec0(0x291)]+_0x48eec0(0x1657)+_0x2b8ed7['statusText']:_0x48eec0(0xbe5),'msg':_0x2b8ed7[_0x48eec0(0x25c)]?JSON['stringify'](_0x2b8ed7['data'][_0x48eec0(0x155e)]):_0x2b8ed7[_0x48eec0(0x147f)]()});});}function _0x320ab4(){const _0x5c2d74=_0x171e8b;_0x362652[_0x5c2d74(0x1a7c)]=[],_0x3a4229[_0x5c2d74(0x2243)][_0x5c2d74(0x687)]({'id':_0x362652['dynamics365Configuration']['id']},_0x362652['dynamics365Configuration'])[_0x5c2d74(0x1d77)]['then'](function(_0x1d7de4){const _0x26ba01=_0x5c2d74,_0x2e7118=_0x39641b()[_0x26ba01(0x13b4)](_0x362652[_0x26ba01(0xa06)],{'id':_0x1d7de4['id']});_0x2e7118&&_0x39641b()[_0x26ba01(0x9c1)](_0x2e7118,_0x39641b()[_0x26ba01(0x169b)](_0x1d7de4[_0x26ba01(0x19b2)](),_0x39641b()[_0x26ba01(0x1be5)](_0x2e7118))),_0x10fe90[_0x26ba01(0x829)]({'title':'Dynamics365Configuration\x20properly\x20saved!','msg':_0x362652[_0x26ba01(0x1c58)][_0x26ba01(0x16b6)]?_0x362652[_0x26ba01(0x1c58)][_0x26ba01(0x16b6)]+_0x26ba01(0xedb):''}),_0x48f2b7(_0x1d7de4);})[_0x5c2d74(0x1c4)](function(_0x29929e){const _0x29f83=_0x5c2d74;if(_0x29929e[_0x29f83(0x25c)]&&_0x29929e[_0x29f83(0x25c)][_0x29f83(0x1a7c)]&&_0x29929e[_0x29f83(0x25c)][_0x29f83(0x1a7c)][_0x29f83(0xfd0)]){_0x362652[_0x29f83(0x1a7c)]=_0x29929e[_0x29f83(0x25c)][_0x29f83(0x1a7c)]||[{'message':_0x29929e[_0x29f83(0x147f)](),'type':'api.intDynamics365Configuration.update'}];for(let _0x4e5ead=0x0;_0x4e5ead<_0x29929e[_0x29f83(0x25c)][_0x29f83(0x1a7c)][_0x29f83(0xfd0)];_0x4e5ead++){_0x10fe90[_0x29f83(0x218e)]({'title':_0x29929e[_0x29f83(0x25c)][_0x29f83(0x1a7c)][_0x4e5ead][_0x29f83(0x66a)],'msg':_0x29929e[_0x29f83(0x25c)][_0x29f83(0x1a7c)][_0x4e5ead][_0x29f83(0x155e)]});}}else _0x10fe90[_0x29f83(0x218e)]({'title':_0x29929e['status']?_0x29f83(0xeb9)+_0x29929e[_0x29f83(0x291)]+_0x29f83(0x1657)+_0x29929e[_0x29f83(0xc22)]:_0x29f83(0x17eb),'msg':_0x29929e[_0x29f83(0x25c)]?JSON[_0x29f83(0x2701)](_0x29929e[_0x29f83(0x25c)][_0x29f83(0x155e)]):_0x29929e[_0x29f83(0x147f)]()});});}function _0x41a6c7(_0x49f75c){const _0x2d55bc=_0x171e8b;_0x362652[_0x2d55bc(0x1a7c)]=[];const _0x28b7d9=_0x45c614['confirm']()[_0x2d55bc(0x1386)](_0x2d55bc(0x1a2e))[_0x2d55bc(0x862)](_0x2d55bc(0x1086))[_0x2d55bc(0x15ad)](_0x2d55bc(0x2012))['ok']('Delete')[_0x2d55bc(0x696)]('Cancel')['targetEvent'](_0x49f75c);_0x45c614[_0x2d55bc(0xe27)](_0x28b7d9)[_0x2d55bc(0x1cb0)](function(){const _0x56bc7b=_0x2d55bc;_0x3a4229['intDynamics365Configuration'][_0x56bc7b(0x111d)]({'id':_0x362652['dynamics365Configuration']['id']})[_0x56bc7b(0x1d77)][_0x56bc7b(0x1cb0)](function(){const _0x1d5312=_0x56bc7b;_0x39641b()[_0x1d5312(0x152a)](_0x362652[_0x1d5312(0xa06)],{'id':_0x362652['dynamics365Configuration']['id']}),_0x10fe90['success']({'title':_0x1d5312(0x1b46),'msg':(_0x362652[_0x1d5312(0x1c58)][_0x1d5312(0x16b6)]||_0x1d5312(0x1c58))+_0x1d5312(0x3f5)}),_0x48f2b7(_0x362652[_0x1d5312(0x1c58)]);})[_0x56bc7b(0x1c4)](function(_0x5b8e68){const _0x2f3f74=_0x56bc7b;if(_0x5b8e68[_0x2f3f74(0x25c)]&&_0x5b8e68[_0x2f3f74(0x25c)][_0x2f3f74(0x1a7c)]&&_0x5b8e68[_0x2f3f74(0x25c)][_0x2f3f74(0x1a7c)]['length']){_0x362652[_0x2f3f74(0x1a7c)]=_0x5b8e68['data'][_0x2f3f74(0x1a7c)]||[{'message':_0x5b8e68[_0x2f3f74(0x147f)](),'type':_0x2f3f74(0x17cf)}];for(let _0x7861d2=0x0;_0x7861d2<_0x5b8e68['data'][_0x2f3f74(0x1a7c)][_0x2f3f74(0xfd0)];_0x7861d2++){_0x10fe90[_0x2f3f74(0x218e)]({'title':_0x5b8e68['data'][_0x2f3f74(0x1a7c)][_0x7861d2][_0x2f3f74(0x66a)],'msg':_0x5b8e68[_0x2f3f74(0x25c)][_0x2f3f74(0x1a7c)][_0x7861d2][_0x2f3f74(0x155e)]});}}else _0x10fe90[_0x2f3f74(0x218e)]({'title':_0x5b8e68[_0x2f3f74(0x291)]?_0x2f3f74(0xeb9)+_0x5b8e68['status']+'\x20-\x20'+_0x5b8e68[_0x2f3f74(0xc22)]:_0x2f3f74(0x17cf),'msg':_0x5b8e68['data']?JSON[_0x2f3f74(0x2701)](_0x5b8e68[_0x2f3f74(0x25c)]['message']):_0x5b8e68[_0x2f3f74(0x155e)]||_0x5b8e68[_0x2f3f74(0x147f)]()});});},function(){});}function _0x593568(_0x480f73){return _0x480f73===null?undefined:new Date(_0x480f73);}function _0x48f2b7(_0x585240){const _0x4fbb7f=_0x171e8b;_0x45c614[_0x4fbb7f(0x1426)](_0x585240);}}const _0xdecd5c=_0x8f9173;;_0x5f45f6[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0x2718),'items',_0x5537c6(0x583),_0x5537c6(0x1539),_0x5537c6(0x66a),_0x5537c6(0x142b),_0x5537c6(0x1774),'crudPermissions'];function _0x5f45f6(_0x3e7808,_0x5997dc,_0x224dac,_0x39cbfb,_0x3190c4,_0x1e233c,_0x67954f,_0x423b89,_0xa41512,_0x32be28,_0x4ffe0f,_0xc184d9,_0x4d7672){const _0x27197c=_0x5537c6,_0x2ea7f9=this;_0x2ea7f9[_0x27197c(0xe76)]=_0xc184d9[_0x27197c(0x21e8)](),_0x2ea7f9[_0x27197c(0x1a7c)]=[],_0x2ea7f9[_0x27197c(0x1386)]=_0x27197c(0xf08)+_0x39641b()[_0x27197c(0x1002)](_0x32be28),_0x2ea7f9[_0x27197c(0x583)]=angular['copy'](_0x423b89),_0x2ea7f9[_0x27197c(0x122f)]=_0x67954f,_0x2ea7f9[_0x27197c(0x66a)]=_0x32be28,_0x2ea7f9['crudPermissions']=_0x4d7672,_0x2ea7f9['newItem']=![];!_0x2ea7f9['item']&&(_0x2ea7f9['item']={'type':_0x27197c(0x1518)},_0x2ea7f9[_0x27197c(0x583)][_0x39641b()[_0x27197c(0x432)](_0x32be28)+'Id']=_0x1e233c['id'],_0x2ea7f9['title']=_0x27197c(0x15dd)+_0x39641b()[_0x27197c(0x1002)](_0x32be28),_0x2ea7f9[_0x27197c(0x1202)]=!![]);_0x2ea7f9[_0x27197c(0x1286)]=_0x6fe097,_0x2ea7f9[_0x27197c(0x1a78)]=_0x15a7bd,_0x2ea7f9['deleteItem']=_0x485cbe,_0x2ea7f9['getSelectedVariable']=_0x41840c,_0x2ea7f9['closeDialog']=_0x3cc748,_0x4ffe0f[_0x27197c(0x1822)]['get']({'nolimit':!![]})[_0x27197c(0x1d77)]['then'](function(_0x3e5e3a){const _0x44ba6f=_0x27197c;return _0x2ea7f9[_0x44ba6f(0x9a9)]=_0x3e5e3a[_0x44ba6f(0x2214)]?_0x3e5e3a['rows']:[],_0x4ffe0f[_0x44ba6f(0x247a)][_0x44ba6f(0x1e57)]()[_0x44ba6f(0x1d77)];})[_0x27197c(0x1cb0)](function(_0x24d0cc){const _0x1e9c64=_0x27197c;return _0x2ea7f9[_0x1e9c64(0xbf1)]=_0x39641b()[_0x1e9c64(0x91f)](_0x39641b()[_0x1e9c64(0x1be5)](_0x24d0cc),[_0x1e9c64(0x1d77),_0x1e9c64(0x248e),_0x1e9c64(0x24cb),_0x1e9c64(0x27ba),_0x1e9c64(0x1867)]),_0x2ea7f9[_0x1e9c64(0xbf1)][_0x1e9c64(0x2785)]('recordingURL'),_0x4ffe0f[_0x1e9c64(0x593)][_0x1e9c64(0x1e57)]()[_0x1e9c64(0x1d77)];})['then'](function(_0x2658f7){const _0xfb11f1=_0x27197c;_0x2ea7f9['voiceDialReportColumns']=_0x39641b()[_0xfb11f1(0x91f)](_0x39641b()[_0xfb11f1(0x1be5)](_0x2658f7),['$promise',_0xfb11f1(0x248e),_0xfb11f1(0x24cb),_0xfb11f1(0x27ba),_0xfb11f1(0x1867)]),_0x2ea7f9[_0xfb11f1(0x1639)][_0xfb11f1(0x2785)](_0xfb11f1(0x2110));})['catch'](function(_0x1d2b9b){const _0xe95c7a=_0x27197c;_0x3190c4[_0xe95c7a(0x218e)]({'title':_0x1d2b9b['status']?_0xe95c7a(0xeb9)+_0x1d2b9b['status']+_0xe95c7a(0x1657)+_0x1d2b9b['statusText']:_0xe95c7a(0x262e),'msg':_0x1d2b9b[_0xe95c7a(0x25c)]?JSON[_0xe95c7a(0x2701)](_0x1d2b9b['data']):_0x1d2b9b[_0xe95c7a(0x147f)]()});}),_0x4ffe0f[_0x27197c(0x24a4)][_0x27197c(0xc84)]({'id':_0xa41512['id'],'ticketType':_0x1e233c[_0x27197c(0x161)]?_0x1e233c['ticketType']:undefined})[_0x27197c(0x1d77)][_0x27197c(0x1cb0)](function(_0x461830){const _0x496cbf=_0x27197c;_0x2ea7f9[_0x496cbf(0x1a28)]=!![],_0x2ea7f9[_0x496cbf(0x355)]=_0x461830['rows']?_0x461830[_0x496cbf(0x2214)]:[],_0x2ea7f9[_0x496cbf(0x583)][_0x496cbf(0x1e50)]&&(_0x2ea7f9['customField']=_0x39641b()['find'](_0x2ea7f9[_0x496cbf(0x355)],{'id':_0x2ea7f9['item']['idField']}));})[_0x27197c(0x1c4)](function(_0x1ec920){const _0x4527b5=_0x27197c;_0x2ea7f9[_0x4527b5(0x1a28)]=![],console['error'](_0x1ec920);});function _0x6fe097(){const _0x14cd02=_0x27197c;_0x2ea7f9[_0x14cd02(0x1a7c)]=[],_0x2ea7f9[_0x14cd02(0x1d5a)]&&(_0x2ea7f9[_0x14cd02(0x583)][_0x14cd02(0x1e50)]=_0x2ea7f9[_0x14cd02(0x1d5a)]['id'],_0x2ea7f9['item'][_0x14cd02(0xc1f)]=_0x2ea7f9[_0x14cd02(0x1d5a)][_0x14cd02(0x16b6)],_0x2ea7f9['item'][_0x14cd02(0x1d5a)]=_0x2ea7f9[_0x14cd02(0x1d5a)][_0x14cd02(0x197c)]),_0x4ffe0f[_0x14cd02(0x26f0)]['save'](_0x2ea7f9[_0x14cd02(0x583)])['$promise'][_0x14cd02(0x1cb0)](function(_0x177551){const _0x5ae670=_0x14cd02;_0x2ea7f9[_0x5ae670(0x122f)][_0x5ae670(0xf63)](_0x177551),_0x3190c4[_0x5ae670(0x829)]({'title':_0x39641b()[_0x5ae670(0x432)](_0x32be28)+_0x5ae670(0x220c),'msg':_0x39641b()[_0x5ae670(0x432)](_0x32be28)+'\x20has\x20been\x20created!'}),_0x3cc748();})[_0x14cd02(0x1c4)](function(_0x12fa37){const _0x2fcb9d=_0x14cd02;console['error'](_0x12fa37),_0x2ea7f9[_0x2fcb9d(0x1a7c)]=_0x12fa37[_0x2fcb9d(0x25c)][_0x2fcb9d(0x1a7c)]||[{'message':_0x12fa37[_0x2fcb9d(0x147f)](),'type':_0x2fcb9d(0x1876)}];});}function _0x15a7bd(){const _0x498b28=_0x27197c;_0x2ea7f9[_0x498b28(0x1a7c)]=[],_0x2ea7f9[_0x498b28(0x1d5a)]&&(_0x2ea7f9[_0x498b28(0x583)][_0x498b28(0x1e50)]=_0x2ea7f9['customField']['id'],_0x2ea7f9[_0x498b28(0x583)][_0x498b28(0xc1f)]=_0x2ea7f9[_0x498b28(0x1d5a)][_0x498b28(0x16b6)],_0x2ea7f9[_0x498b28(0x583)]['customField']=_0x2ea7f9[_0x498b28(0x1d5a)][_0x498b28(0x197c)]),_0x4ffe0f[_0x498b28(0x26f0)]['update']({'id':_0x2ea7f9[_0x498b28(0x583)]['id']},_0x2ea7f9['item'])[_0x498b28(0x1d77)][_0x498b28(0x1cb0)](function(_0x5dc6e4){const _0x37824e=_0x498b28,_0x1f8d1c=_0x39641b()['find'](_0x2ea7f9[_0x37824e(0x122f)],{'id':_0x5dc6e4['id']});_0x1f8d1c&&_0x39641b()['merge'](_0x1f8d1c,_0x5dc6e4),_0x3190c4['success']({'title':_0x39641b()[_0x37824e(0x432)](_0x32be28)+_0x37824e(0xaf6),'msg':_0x39641b()[_0x37824e(0x432)](_0x32be28)+_0x37824e(0xedb)}),_0x3cc748();})['catch'](function(_0x759cd0){const _0x2b37c8=_0x498b28;console['error'](_0x759cd0),_0x2ea7f9[_0x2b37c8(0x1a7c)]=_0x759cd0[_0x2b37c8(0x25c)]['errors']||[{'message':_0x759cd0[_0x2b37c8(0x147f)](),'type':_0x2b37c8(0x197e)}];});}function _0x485cbe(_0x1f1115){const _0x19c442=_0x27197c;_0x2ea7f9[_0x19c442(0x1a7c)]=[];const _0x2cbdfe=_0x39cbfb[_0x19c442(0x1551)]()['title']('Are\x20you\x20sure?')[_0x19c442(0x862)]('The\x20'+_0x32be28+'\x20will\x20be\x20deleted.')[_0x19c442(0x15ad)]('Delete\x20'+_0x39641b()['capitalize'](_0x32be28))['ok'](_0x19c442(0x2594))[_0x19c442(0x696)]('Cancel')[_0x19c442(0x728)](_0x1f1115);_0x39cbfb[_0x19c442(0xe27)](_0x2cbdfe)['then'](function(){const _0x17d520=_0x19c442;_0x4ffe0f[_0x17d520(0x26f0)][_0x17d520(0x111d)]({'id':_0x2ea7f9[_0x17d520(0x583)]['id']})[_0x17d520(0x1d77)][_0x17d520(0x1cb0)](function(){const _0x122260=_0x17d520;_0x39641b()[_0x122260(0x152a)](_0x2ea7f9[_0x122260(0x122f)],{'id':_0x2ea7f9[_0x122260(0x583)]['id']}),_0x3190c4[_0x122260(0x829)]({'title':_0x39641b()[_0x122260(0x432)](_0x32be28)+_0x122260(0x1621),'msg':_0x39641b()['capitalize'](_0x32be28)+_0x122260(0x3f5)}),_0x3cc748();})[_0x17d520(0x1c4)](function(_0x35c13e){const _0x329fcf=_0x17d520;console['error'](_0x35c13e),_0x2ea7f9[_0x329fcf(0x1a7c)]=_0x35c13e[_0x329fcf(0x25c)][_0x329fcf(0x1a7c)]||[{'message':_0x35c13e[_0x329fcf(0x147f)](),'type':_0x329fcf(0x10e6)}];});},function(){});}function _0x41840c(){const _0x16f024=_0x27197c;return _0x2ea7f9[_0x16f024(0x583)][_0x16f024(0x1e71)]!==undefined?_0x2ea7f9[_0x16f024(0x583)][_0x16f024(0x1e71)]:'Please\x20select\x20a\x20variable';}function _0x3cc748(){const _0x5160c2=_0x27197c;_0x39cbfb[_0x5160c2(0x1426)]();}}const _0x1bfb94=_0x5f45f6;;_0x5e4045['$inject']=[_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x1ae),_0x5537c6(0x8a5),'setting',_0x5537c6(0x142b),'toasty','Auth','dynamics365Account',_0x5537c6(0x2199)];function _0x5e4045(_0x2902f0,_0x3395d5,_0x2c36ba,_0x2d5eec,_0x42c776,_0x449549,_0x180ba1,_0x4f37a2,_0x2d1944,_0x1eef6d,_0x497677,_0x5a0255){const _0x26c570=_0x5537c6,_0x578add=this;_0x578add[_0x26c570(0xe76)]=_0x1eef6d[_0x26c570(0x21e8)](),_0x578add[_0x26c570(0x8a5)]=_0x449549,_0x578add[_0x26c570(0x9ca)]=_0x180ba1,_0x578add[_0x26c570(0x1b0c)]=_0x578add[_0x26c570(0x9ca)][_0x26c570(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x578add[_0x26c570(0x2404)]=_0x3395d5[_0x26c570(0x2276)]()+_0x26c570(0x138b)+_0x3395d5[_0x26c570(0x17d8)](),_0x578add['dynamics365Account']=_0x497677||_0x2902f0[_0x26c570(0x1dfe)][_0x26c570(0x1124)]||{},_0x578add[_0x26c570(0x2199)]=_0x5a0255&&_0x5a0255[_0x26c570(0x184d)]==0x1?_0x5a0255[_0x26c570(0x2214)][0x0]:null,_0x578add[_0x26c570(0x1b1a)]=_0x1eef6d[_0x26c570(0x14ea)](_0x578add[_0x26c570(0x2199)]?_0x578add[_0x26c570(0x2199)][_0x26c570(0x1b1a)]:null),_0x578add['hasModulePermissions']={},_0x578add[_0x26c570(0x8ec)]=_0x2902f0[_0x26c570(0x1dfe)][_0x26c570(0x291e)]||0x0,_0x578add[_0x26c570(0x494)]=_0x2d1944[_0x26c570(0x28c7)],_0x578add[_0x26c570(0x1d42)]=_0x5a6b2e,_0x578add[_0x26c570(0x2499)]=_0x9f4bdc;function _0x5a6b2e(){const _0x5e9ba7=_0x26c570;_0x2902f0['go'](_0x5e9ba7(0x1f3e),{},{'reload':_0x5e9ba7(0x1f3e)});}function _0x9f4bdc(){const _0x4eae91=_0x26c570;_0x4f37a2[_0x4eae91(0x24a4)][_0x4eae91(0x687)]({'id':_0x578add[_0x4eae91(0x1124)]['id']},_0x578add[_0x4eae91(0x1124)])[_0x4eae91(0x1d77)]['then'](function(){const _0x1ed5a0=_0x4eae91;_0x2d1944[_0x1ed5a0(0x829)]({'title':_0x1ed5a0(0x11db),'msg':_0x578add['dynamics365Account'][_0x1ed5a0(0x16b6)]?_0x578add[_0x1ed5a0(0x1124)][_0x1ed5a0(0x16b6)]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x4a268f){const _0x4fa86a=_0x4eae91;_0x2d1944['error']({'title':_0x4a268f[_0x4fa86a(0x291)]?_0x4fa86a(0xeb9)+_0x4a268f[_0x4fa86a(0x291)]+_0x4fa86a(0x1657)+_0x4a268f[_0x4fa86a(0xc22)]:_0x4fa86a(0x6c9),'msg':_0x4a268f[_0x4fa86a(0x25c)]?JSON[_0x4fa86a(0x2701)](_0x4a268f[_0x4fa86a(0x25c)]):_0x4a268f['toString']()});});}}const _0x79a345=_0x5e4045;;_0x33be14[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state',_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x8aa),_0x5537c6(0x2065),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x33be14(_0x5332e2,_0x534609,_0x39bd60,_0x35abf9,_0x56f7d1,_0x1d2393,_0x1453ef,_0x1decc4,_0x53990f,_0x1994a2,_0x5dccba,_0x27e1ac,_0xe87c4f,_0x21595b){const _0x4cbd0e=_0x5537c6,_0x475d33=this;_0x475d33[_0x4cbd0e(0xe76)]=_0x5dccba[_0x4cbd0e(0x21e8)](),_0x475d33[_0x4cbd0e(0x1a7c)]=[],_0x475d33[_0x4cbd0e(0x9ca)]=_0xe87c4f,_0x475d33[_0x4cbd0e(0x8a5)]=_0x27e1ac,_0x475d33['crudPermissions']=_0x21595b,_0x475d33['hasModulePermissions']={},_0x475d33['passwordPattern']=_0x475d33[_0x4cbd0e(0x9ca)]&&_0x475d33[_0x4cbd0e(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x475d33[_0x4cbd0e(0x1386)]=_0x4cbd0e(0x1b99),_0x475d33[_0x4cbd0e(0x2065)]=angular[_0x4cbd0e(0x17fe)](_0x53990f),_0x475d33[_0x4cbd0e(0x8aa)]=_0x1decc4,_0x475d33['newFreshdeskAccount']=![];!_0x475d33[_0x4cbd0e(0x2065)]&&(_0x475d33[_0x4cbd0e(0x2065)]={'serverUrl':_0x39bd60[_0x4cbd0e(0x2276)]()+_0x4cbd0e(0x138b)+_0x39bd60[_0x4cbd0e(0x17d8)]()+(_0x39bd60['port']()?':'+_0x39bd60[_0x4cbd0e(0x477)]():'')},_0x475d33[_0x4cbd0e(0x1386)]=_0x4cbd0e(0xcbb),_0x475d33[_0x4cbd0e(0x299a)]=!![]);_0x475d33[_0x4cbd0e(0x154e)]=_0x225b8b,_0x475d33['saveFreshdeskAccount']=_0x3fc1f9,_0x475d33[_0x4cbd0e(0x1934)]=_0x2cec87,_0x475d33[_0x4cbd0e(0x2c4)]=_0x4b2c98,_0x475d33['closeDialog']=_0x1919a3;function _0x225b8b(){const _0xf59c1c=_0x4cbd0e;_0x475d33[_0xf59c1c(0x1a7c)]=[],_0x1994a2['intFreshdeskAccount']['save'](_0x475d33[_0xf59c1c(0x2065)])[_0xf59c1c(0x1d77)][_0xf59c1c(0x1cb0)](function(_0x4375ab){const _0x201c29=_0xf59c1c;_0x475d33[_0x201c29(0x8aa)][_0x201c29(0xf63)](_0x4375ab[_0x201c29(0x19b2)]()),_0x1453ef[_0x201c29(0x829)]({'title':_0x201c29(0xcf8),'msg':_0x475d33[_0x201c29(0x2065)][_0x201c29(0x16b6)]?_0x475d33[_0x201c29(0x2065)]['name']+'\x20has\x20been\x20created!':''}),_0x1919a3(_0x4375ab);})[_0xf59c1c(0x1c4)](function(_0x2ce7bc){const _0x42dfad=_0xf59c1c;if(_0x2ce7bc['data']&&_0x2ce7bc[_0x42dfad(0x25c)][_0x42dfad(0x1a7c)]&&_0x2ce7bc[_0x42dfad(0x25c)][_0x42dfad(0x1a7c)][_0x42dfad(0xfd0)]){_0x475d33[_0x42dfad(0x1a7c)]=_0x2ce7bc['data'][_0x42dfad(0x1a7c)]||[{'message':_0x2ce7bc[_0x42dfad(0x147f)](),'type':'api.intFreshdeskAccount.save'}];for(let _0x447ed2=0x0;_0x447ed2<_0x2ce7bc[_0x42dfad(0x25c)][_0x42dfad(0x1a7c)][_0x42dfad(0xfd0)];_0x447ed2+=0x1){_0x1453ef[_0x42dfad(0x218e)]({'title':_0x2ce7bc[_0x42dfad(0x25c)]['errors'][_0x447ed2][_0x42dfad(0x66a)],'msg':_0x2ce7bc['data'][_0x42dfad(0x1a7c)][_0x447ed2][_0x42dfad(0x155e)]});}}else _0x1453ef[_0x42dfad(0x218e)]({'title':_0x2ce7bc[_0x42dfad(0x291)]?_0x42dfad(0xeb9)+_0x2ce7bc['status']+'\x20-\x20'+_0x2ce7bc[_0x42dfad(0xc22)]:_0x42dfad(0x89e),'msg':_0x2ce7bc[_0x42dfad(0x25c)]?JSON[_0x42dfad(0x2701)](_0x2ce7bc[_0x42dfad(0x25c)][_0x42dfad(0x155e)]):_0x2ce7bc[_0x42dfad(0x147f)]()});});}function _0x3fc1f9(){const _0x254678=_0x4cbd0e;_0x475d33[_0x254678(0x1a7c)]=[],_0x1994a2['intFreshdeskAccount']['update']({'id':_0x475d33['freshdeskAccount']['id']},_0x475d33[_0x254678(0x2065)])[_0x254678(0x1d77)][_0x254678(0x1cb0)](function(_0x5d895d){const _0x67eb45=_0x254678,_0x122763=_0x39641b()['find'](_0x475d33['freshdeskAccounts'],{'id':_0x5d895d['id']});_0x122763&&_0x39641b()[_0x67eb45(0x9c1)](_0x122763,_0x39641b()[_0x67eb45(0x169b)](_0x5d895d[_0x67eb45(0x19b2)](),_0x39641b()[_0x67eb45(0x1be5)](_0x122763))),_0x1453ef[_0x67eb45(0x829)]({'title':'FreshdeskAccount\x20properly\x20saved!','msg':_0x475d33[_0x67eb45(0x2065)][_0x67eb45(0x16b6)]?_0x475d33['freshdeskAccount']['name']+_0x67eb45(0xedb):''}),_0x1919a3(_0x5d895d);})['catch'](function(_0x4102c8){const _0x28f17=_0x254678;if(_0x4102c8[_0x28f17(0x25c)]&&_0x4102c8['data'][_0x28f17(0x1a7c)]&&_0x4102c8[_0x28f17(0x25c)][_0x28f17(0x1a7c)][_0x28f17(0xfd0)]){_0x475d33[_0x28f17(0x1a7c)]=_0x4102c8['data'][_0x28f17(0x1a7c)]||[{'message':_0x4102c8[_0x28f17(0x147f)](),'type':_0x28f17(0x6f8)}];for(let _0x425fde=0x0;_0x425fde<_0x4102c8['data']['errors'][_0x28f17(0xfd0)];_0x425fde++){_0x1453ef[_0x28f17(0x218e)]({'title':_0x4102c8['data'][_0x28f17(0x1a7c)][_0x425fde][_0x28f17(0x66a)],'msg':_0x4102c8[_0x28f17(0x25c)]['errors'][_0x425fde]['message']});}}else _0x1453ef[_0x28f17(0x218e)]({'title':_0x4102c8[_0x28f17(0x291)]?_0x28f17(0xeb9)+_0x4102c8['status']+_0x28f17(0x1657)+_0x4102c8[_0x28f17(0xc22)]:_0x28f17(0x6f8),'msg':_0x4102c8[_0x28f17(0x25c)]?JSON['stringify'](_0x4102c8[_0x28f17(0x25c)][_0x28f17(0x155e)]):_0x4102c8[_0x28f17(0x147f)]()});});}function _0x2cec87(_0x41a67e){const _0x59ac66=_0x4cbd0e;_0x475d33[_0x59ac66(0x1a7c)]=[];const _0x30f459=_0x35abf9[_0x59ac66(0x1551)]()['title'](_0x59ac66(0x1a2e))[_0x59ac66(0x862)](_0x59ac66(0x186))[_0x59ac66(0x15ad)]('Delete\x20FreshdeskAccount')['ok'](_0x59ac66(0x2594))['cancel']('Cancel')['targetEvent'](_0x41a67e);_0x35abf9[_0x59ac66(0xe27)](_0x30f459)[_0x59ac66(0x1cb0)](function(){const _0x273367=_0x59ac66;_0x1994a2[_0x273367(0x2317)][_0x273367(0x111d)]({'id':_0x475d33[_0x273367(0x2065)]['id']})[_0x273367(0x1d77)][_0x273367(0x1cb0)](function(){const _0x52760b=_0x273367;_0x39641b()['remove'](_0x475d33[_0x52760b(0x8aa)],{'id':_0x475d33['freshdeskAccount']['id']}),_0x1453ef[_0x52760b(0x829)]({'title':_0x52760b(0x4bc),'msg':(_0x475d33['freshdeskAccount']['name']||_0x52760b(0x2065))+'\x20has\x20been\x20deleted!'}),_0x1919a3(_0x475d33[_0x52760b(0x2065)]);})[_0x273367(0x1c4)](function(_0x3ddce8){const _0x21c089=_0x273367;if(_0x3ddce8['data']&&_0x3ddce8[_0x21c089(0x25c)]['errors']&&_0x3ddce8['data'][_0x21c089(0x1a7c)][_0x21c089(0xfd0)]){_0x475d33[_0x21c089(0x1a7c)]=_0x3ddce8[_0x21c089(0x25c)]['errors']||[{'message':_0x3ddce8[_0x21c089(0x147f)](),'type':_0x21c089(0x1d58)}];for(let _0x268b61=0x0;_0x268b61<_0x3ddce8[_0x21c089(0x25c)]['errors'][_0x21c089(0xfd0)];_0x268b61++){_0x1453ef[_0x21c089(0x218e)]({'title':_0x3ddce8[_0x21c089(0x25c)][_0x21c089(0x1a7c)][_0x268b61][_0x21c089(0x66a)],'msg':_0x3ddce8[_0x21c089(0x25c)]['errors'][_0x268b61][_0x21c089(0x155e)]});}}else _0x1453ef[_0x21c089(0x218e)]({'title':_0x3ddce8[_0x21c089(0x291)]?'API:'+_0x3ddce8[_0x21c089(0x291)]+_0x21c089(0x1657)+_0x3ddce8[_0x21c089(0xc22)]:_0x21c089(0x1d58),'msg':_0x3ddce8[_0x21c089(0x25c)]?JSON[_0x21c089(0x2701)](_0x3ddce8[_0x21c089(0x25c)][_0x21c089(0x155e)]):_0x3ddce8[_0x21c089(0x155e)]||_0x3ddce8[_0x21c089(0x147f)]()});});},function(){});}function _0x4b2c98(_0x5e3670){return _0x5e3670===null?undefined:new Date(_0x5e3670);}function _0x1919a3(_0x431a2a){const _0x4ac1b4=_0x4cbd0e;_0x35abf9[_0x4ac1b4(0x1426)](_0x431a2a);}}const _0x536e82=_0x33be14;;const _0x1cbdc6=_0x5074a3['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/configurations/dialog.html/dialog.html';;const _0x1c91d0=_0x5074a3['p']+_0x5537c6(0x69b);;_0x4a860d['$inject']=[_0x5537c6(0xcb9),'$document',_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774)];function _0x4a860d(_0x391c3d,_0xf6f856,_0x2b708f,_0x8deb24,_0x27bc55){const _0x544365=_0x5537c6,_0x2cfd2e=this;_0x2cfd2e[_0x544365(0xe76)]=_0x27bc55[_0x544365(0x21e8)](),_0x2cfd2e[_0x544365(0x2065)]={},_0x2cfd2e['freshdeskConfiguration']={},_0x2cfd2e[_0x544365(0xa06)]=[],_0x2cfd2e[_0x544365(0x22e5)]=-0x1,_0x2cfd2e[_0x544365(0x1b1a)],_0x2cfd2e[_0x544365(0x1a8e)]=_0x29d1b6,_0x2cfd2e[_0x544365(0x1113)]=_0xf862c2,_0x2cfd2e[_0x544365(0xfd3)]=_0x146af0,_0x2cfd2e[_0x544365(0x5ef)]=_0x10d312,_0x2cfd2e[_0x544365(0xfae)]=[],_0x2cfd2e[_0x544365(0x2192)]=_0x48d655,_0x2b708f[_0x544365(0x22b1)][_0x544365(0xbf7)]({'nolimit':!![],'sort':'name'})[_0x544365(0x1d77)][_0x544365(0x1cb0)](function(_0x127eb4){const _0x1bb0a4=_0x544365;_0x2cfd2e[_0x1bb0a4(0xfbf)]=_0x127eb4['rows']?_0x127eb4['rows']:[];})[_0x544365(0x1c4)](function(_0x5efe93){const _0x59218e=_0x544365;_0x8deb24[_0x59218e(0x218e)]({'title':_0x5efe93[_0x59218e(0x291)]?_0x59218e(0xeb9)+_0x5efe93[_0x59218e(0x291)]+_0x59218e(0x1657)+_0x5efe93[_0x59218e(0xc22)]:_0x59218e(0x3ee),'msg':_0x5efe93[_0x59218e(0x25c)]?JSON[_0x59218e(0x2701)](_0x5efe93[_0x59218e(0x25c)]):_0x5efe93[_0x59218e(0x147f)]()});});function _0x48d655(){const _0x5de1df=_0x544365;_0x2b708f[_0x5de1df(0x29c2)][_0x5de1df(0xe53)]({'id':_0x2cfd2e[_0x5de1df(0x10be)]['id'],'ids':_0x2cfd2e[_0x5de1df(0xfae)]})['$promise'][_0x5de1df(0x1cb0)](function(){const _0x41ed7f=_0x5de1df;_0x8deb24['success']({'title':_0x41ed7f(0x3e9),'msg':'Tags\x20has\x20been\x20set!'});})['catch'](function(_0x38062d){const _0x1e3274=_0x5de1df;_0x8deb24[_0x1e3274(0x218e)]({'title':_0x38062d[_0x1e3274(0x291)]?_0x1e3274(0xeb9)+_0x38062d[_0x1e3274(0x291)]+'\x20-\x20'+_0x38062d[_0x1e3274(0xc22)]:_0x1e3274(0x2774),'msg':_0x38062d['data']?JSON[_0x1e3274(0x2701)](_0x38062d[_0x1e3274(0x25c)]):_0x38062d[_0x1e3274(0x147f)]()});});}function _0x29d1b6(_0xe96e09,_0x31cbd8){const _0x22cdf2=_0x544365;_0x2cfd2e['freshdeskAccount']=_0xe96e09,_0x2cfd2e[_0x22cdf2(0x1b1a)]=typeof _0x31cbd8!==_0x22cdf2(0x16b5)?_0x31cbd8:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2b708f['intFreshdeskAccount'][_0x22cdf2(0x618)]({'id':_0x2cfd2e['freshdeskAccount']['id'],'sort':'-updatedAt'})[_0x22cdf2(0x1d77)][_0x22cdf2(0x1cb0)](function(_0x5db2f1){const _0x47ec5f=_0x22cdf2;return _0x2cfd2e['configurations']=_0x5db2f1[_0x47ec5f(0x2214)]?_0x5db2f1[_0x47ec5f(0x2214)]:[],_0x2cfd2e['configurations'][_0x47ec5f(0xfd0)]&&_0x2cfd2e[_0x47ec5f(0x1113)](0x0),_0x2b708f['variable'][_0x47ec5f(0xbf7)]({'nolimit':!![],'sort':_0x47ec5f(0x16b6)})[_0x47ec5f(0x1d77)];})[_0x22cdf2(0x1cb0)](function(_0x29c979){const _0x282738=_0x22cdf2;_0x2cfd2e[_0x282738(0x9a9)]=_0x29c979[_0x282738(0x2214)]?_0x29c979[_0x282738(0x2214)]:[],_0x2cfd2e[_0x282738(0x1a3c)]=_0x39641b()['keyBy'](_0x2cfd2e[_0x282738(0x9a9)],'id');})['catch'](function(_0x48f6c4){const _0x353f4e=_0x22cdf2;_0x8deb24[_0x353f4e(0x218e)]({'title':_0x48f6c4[_0x353f4e(0x291)]?_0x353f4e(0xeb9)+_0x48f6c4[_0x353f4e(0x291)]+_0x353f4e(0x1657)+_0x48f6c4[_0x353f4e(0xc22)]:_0x353f4e(0x1b0f),'msg':_0x48f6c4['data']?JSON['stringify'](_0x48f6c4[_0x353f4e(0x25c)]):_0x48f6c4[_0x353f4e(0x147f)]()});});}function _0xf862c2(_0x81d676){const _0x2ca06d=_0x544365;_0x2cfd2e['freshdeskConfiguration']=_0x2cfd2e['configurations'][_0x81d676],_0x2cfd2e[_0x2ca06d(0x22e5)]=_0x81d676,_0x2b708f[_0x2ca06d(0x29c2)][_0x2ca06d(0x243a)]({'id':_0x2cfd2e[_0x2ca06d(0x10be)]['id']})['$promise'][_0x2ca06d(0x1cb0)](function(_0x1cdf6d){const _0x418570=_0x2ca06d;return _0x2cfd2e['subjects']=_0x1cdf6d['rows']?_0x1cdf6d['rows']:[],_0x2b708f[_0x418570(0x29c2)][_0x418570(0xb6d)]({'id':_0x2cfd2e[_0x418570(0x10be)]['id']})[_0x418570(0x1d77)];})[_0x2ca06d(0x1cb0)](function(_0x5c29e1){const _0xfa1fde=_0x2ca06d;return _0x2cfd2e['descriptions']=_0x5c29e1['rows']?_0x5c29e1[_0xfa1fde(0x2214)]:[],_0x2b708f[_0xfa1fde(0x29c2)]['getFields']({'id':_0x2cfd2e['freshdeskConfiguration']['id']})[_0xfa1fde(0x1d77)];})[_0x2ca06d(0x1cb0)](function(_0xfa2fad){const _0x378381=_0x2ca06d;_0x2cfd2e[_0x378381(0x355)]=_0xfa2fad['rows']?_0xfa2fad['rows']:[];})[_0x2ca06d(0x1c4)](function(_0x58549f){const _0x1046eb=_0x2ca06d;_0x8deb24[_0x1046eb(0x218e)]({'title':_0x58549f[_0x1046eb(0x291)]?'API:'+_0x58549f['status']+_0x1046eb(0x1657)+_0x58549f[_0x1046eb(0xc22)]:_0x1046eb(0x1e5f),'msg':_0x58549f['data']?JSON[_0x1046eb(0x2701)](_0x58549f[_0x1046eb(0x25c)]):_0x58549f[_0x1046eb(0x147f)]()});}),_0x2b708f[_0x2ca06d(0x29c2)][_0x2ca06d(0x128b)]({'id':_0x2cfd2e['freshdeskConfiguration']['id']})['$promise'][_0x2ca06d(0x1cb0)](function(_0x4e0be3){const _0x8b7190=_0x2ca06d;_0x2cfd2e[_0x8b7190(0xfae)]=_0x4e0be3[_0x8b7190(0x2214)]?_0x39641b()[_0x8b7190(0x1de2)](_0x4e0be3[_0x8b7190(0x2214)],'id'):[];})[_0x2ca06d(0x1c4)](function(_0x27554b){const _0x18566f=_0x2ca06d;_0x8deb24[_0x18566f(0x218e)]({'title':_0x27554b[_0x18566f(0x291)]?_0x18566f(0xeb9)+_0x27554b[_0x18566f(0x291)]+_0x18566f(0x1657)+_0x27554b[_0x18566f(0xc22)]:_0x18566f(0x3ee),'msg':_0x27554b[_0x18566f(0x25c)]?JSON[_0x18566f(0x2701)](_0x27554b[_0x18566f(0x25c)]):_0x27554b['toString']()});});}function _0x146af0(_0x2c3260,_0x4116a5){const _0x21f7d8=_0x544365;_0x391c3d['show']({'controller':'CreateOrEditFreshdeskConfigurationDialogController','controllerAs':'vm','templateUrl':_0x1cbdc6,'parent':angular[_0x21f7d8(0x1853)](_0xf6f856['body']),'targetEvent':_0x2c3260,'clickOutsideToClose':!![],'locals':{'freshdeskConfiguration':_0x4116a5,'configurations':_0x2cfd2e[_0x21f7d8(0xa06)],'license':null,'setting':null,'crudPermissions':_0x2cfd2e[_0x21f7d8(0x1b1a)]}})['finally'](function(){const _0x3fb041=_0x21f7d8;_0x2cfd2e[_0x3fb041(0x1113)](0x0);});}function _0x10d312(_0x4d89a1,_0x250a97){const _0x97bdc=_0x544365,_0x346d09=_0x391c3d[_0x97bdc(0x1551)]()['title'](_0x97bdc(0x16f6))[_0x97bdc(0x49e)](''+(_0x250a97[_0x97bdc(0x16b6)]||_0x97bdc(0x10be))+_0x97bdc(0x1200)+_0x97bdc(0x1b6))[_0x97bdc(0x15ad)](_0x97bdc(0x1a20))['targetEvent'](_0x4d89a1)['ok']('OK')[_0x97bdc(0x696)](_0x97bdc(0x24ba));_0x391c3d[_0x97bdc(0xe27)](_0x346d09)['then'](function(){const _0x502f5f=_0x97bdc;_0x2b708f[_0x502f5f(0x29c2)][_0x502f5f(0x111d)]({'id':_0x250a97['id']})['$promise'][_0x502f5f(0x1cb0)](function(){const _0x360a5c=_0x502f5f;_0x39641b()[_0x360a5c(0x152a)](_0x2cfd2e[_0x360a5c(0xa06)],{'id':_0x250a97['id']}),_0x8deb24['success']({'title':_0x360a5c(0x38e),'msg':_0x250a97['name']?_0x250a97['name']+_0x360a5c(0x3f5):''});})[_0x502f5f(0x1c4)](function(_0x488d8b){const _0x2e448f=_0x502f5f;_0x8deb24[_0x2e448f(0x218e)]({'title':_0x488d8b[_0x2e448f(0x291)]?_0x2e448f(0xeb9)+_0x488d8b[_0x2e448f(0x291)]+'\x20-\x20'+_0x488d8b[_0x2e448f(0xc22)]:'SYSTEM:DELETECONFIGURATION','msg':_0x488d8b[_0x2e448f(0x25c)]?JSON[_0x2e448f(0x2701)](_0x488d8b[_0x2e448f(0x25c)]):_0x488d8b[_0x2e448f(0x147f)]()});})[_0x502f5f(0x2e0)](function(){const _0x156dfc=_0x502f5f;_0x2cfd2e[_0x156dfc(0x1113)](0x0);});},function(){const _0xe26f5=_0x97bdc;console['log'](_0xe26f5(0x24ba));});}_0x2cfd2e[_0x544365(0x4df)]=[],_0x2cfd2e['createOrEditSubject']=_0xfafe8e,_0x2cfd2e[_0x544365(0x259e)]=_0x5dc2c8,_0x2cfd2e['deleteSelectedSubjects']=_0x3b35da;function _0xfafe8e(_0x312479,_0xdca206){const _0x386788=_0x544365;_0x391c3d[_0x386788(0xe27)]({'controller':'CreateOrEditFreshdeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x1c91d0,'parent':angular[_0x386788(0x1853)](_0xf6f856['body']),'targetEvent':_0x312479,'clickOutsideToClose':!![],'locals':{'type':_0x386788(0x1e5d),'item':_0xdca206,'items':_0x2cfd2e[_0x386788(0x2388)],'configuration':_0x2cfd2e[_0x386788(0x10be)],'account':_0x2cfd2e[_0x386788(0x2065)],'license':null,'setting':null,'crudPermissions':_0x2cfd2e['crudPermissions']}});}function _0x35ed32(_0x364430){const _0x1f3320=_0x544365;_0x2b708f[_0x1f3320(0x1830)][_0x1f3320(0x111d)]({'id':_0x364430['id']})[_0x1f3320(0x1d77)][_0x1f3320(0x1cb0)](function(){const _0x2d6653=_0x1f3320;_0x39641b()[_0x2d6653(0x152a)](_0x2cfd2e[_0x2d6653(0x2388)],{'id':_0x364430['id']}),_0x8deb24[_0x2d6653(0x829)]({'title':_0x2d6653(0x1d11),'msg':_0x2d6653(0x145d)});})[_0x1f3320(0x1c4)](function(_0x2bbbbd){const _0x97aca8=_0x1f3320;_0x8deb24['error']({'title':_0x2bbbbd[_0x97aca8(0x291)]?_0x97aca8(0xeb9)+_0x2bbbbd['status']+_0x97aca8(0x1657)+_0x2bbbbd[_0x97aca8(0xc22)]:_0x97aca8(0x13e5),'msg':_0x2bbbbd[_0x97aca8(0x25c)]?JSON[_0x97aca8(0x2701)](_0x2bbbbd[_0x97aca8(0x25c)]):_0x2bbbbd[_0x97aca8(0x147f)]()});});}function _0x5dc2c8(_0x3b3d50,_0x96238c){const _0x4888c9=_0x544365,_0x36ed8f=_0x391c3d['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0x4888c9(0x49e)]('Subject'+_0x4888c9(0x1b6))[_0x4888c9(0x15ad)](_0x4888c9(0xbc3))[_0x4888c9(0x728)](_0x3b3d50)['ok']('OK')[_0x4888c9(0x696)](_0x4888c9(0x24ba));_0x391c3d[_0x4888c9(0xe27)](_0x36ed8f)[_0x4888c9(0x1cb0)](function(){_0x35ed32(_0x96238c);},function(){const _0x1fa9a0=_0x4888c9;console['log'](_0x1fa9a0(0x24ba));});}function _0x3b35da(_0x3a8e6b){const _0x4b066a=_0x544365,_0x6a8734=_0x391c3d[_0x4b066a(0x1551)]()[_0x4b066a(0x1386)](_0x4b066a(0x1f8e))[_0x4b066a(0x49e)](_0x4b066a(0x204d)+_0x2cfd2e[_0x4b066a(0x4df)][_0x4b066a(0xfd0)]+_0x4b066a(0x1d6c)+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x4b066a(0x222e))[_0x4b066a(0x728)](_0x3a8e6b)['ok']('OK')[_0x4b066a(0x696)]('CANCEL');_0x391c3d['show'](_0x6a8734)[_0x4b066a(0x1cb0)](function(){const _0x1c8329=_0x4b066a;_0x2cfd2e[_0x1c8329(0x4df)][_0x1c8329(0xf90)](function(_0x4dc963){_0x35ed32(_0x4dc963);}),_0x2cfd2e[_0x1c8329(0x4df)]=[];});}_0x2cfd2e[_0x544365(0xac6)]=[],_0x2cfd2e[_0x544365(0x14c7)]=_0x77b4e6,_0x2cfd2e[_0x544365(0xc09)]=_0x18a6fe,_0x2cfd2e[_0x544365(0x2931)]=_0x133b92;function _0x77b4e6(_0x1cb069,_0x57f726){const _0x44d377=_0x544365;_0x391c3d[_0x44d377(0xe27)]({'controller':_0x44d377(0x15a0),'controllerAs':'vm','templateUrl':_0x1c91d0,'parent':angular[_0x44d377(0x1853)](_0xf6f856[_0x44d377(0x1ed9)]),'targetEvent':_0x1cb069,'clickOutsideToClose':!![],'locals':{'type':_0x44d377(0x2c1),'item':_0x57f726,'items':_0x2cfd2e['descriptions'],'configuration':_0x2cfd2e[_0x44d377(0x10be)],'account':_0x2cfd2e[_0x44d377(0x2065)],'license':null,'setting':null,'crudPermissions':_0x2cfd2e['crudPermissions']}});}function _0x3d2371(_0xad430f){const _0x1bcde1=_0x544365;_0x2b708f[_0x1bcde1(0x1830)][_0x1bcde1(0x111d)]({'id':_0xad430f['id']})['$promise'][_0x1bcde1(0x1cb0)](function(){const _0x4ed8bd=_0x1bcde1;_0x39641b()[_0x4ed8bd(0x152a)](_0x2cfd2e[_0x4ed8bd(0x310)],{'id':_0xad430f['id']}),_0x8deb24['success']({'title':'Description\x20deleted!','msg':_0x4ed8bd(0xb59)});})[_0x1bcde1(0x1c4)](function(_0x262c37){const _0xaeff78=_0x1bcde1;_0x8deb24[_0xaeff78(0x218e)]({'title':_0x262c37[_0xaeff78(0x291)]?'API:'+_0x262c37[_0xaeff78(0x291)]+'\x20-\x20'+_0x262c37[_0xaeff78(0xc22)]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x262c37[_0xaeff78(0x25c)]?JSON['stringify'](_0x262c37[_0xaeff78(0x25c)]):_0x262c37[_0xaeff78(0x147f)]()});});}function _0x18a6fe(_0x1ddddf,_0x6ff006){const _0x18f574=_0x544365,_0xd4802e=_0x391c3d[_0x18f574(0x1551)]()[_0x18f574(0x1386)](_0x18f574(0x7d2))[_0x18f574(0x49e)](_0x18f574(0x18b8)+_0x18f574(0x1b6))[_0x18f574(0x15ad)](_0x18f574(0x103d))[_0x18f574(0x728)](_0x1ddddf)['ok']('OK')['cancel']('CANCEL');_0x391c3d['show'](_0xd4802e)[_0x18f574(0x1cb0)](function(){_0x3d2371(_0x6ff006);},function(){const _0x5f5ac8=_0x18f574;console[_0x5f5ac8(0x1b4f)](_0x5f5ac8(0x24ba));});}function _0x133b92(_0x5ee282){const _0x5167e1=_0x544365,_0xf90c19=_0x391c3d[_0x5167e1(0x1551)]()['title'](_0x5167e1(0x2e7))[_0x5167e1(0x49e)](_0x5167e1(0x204d)+_0x2cfd2e[_0x5167e1(0xac6)]['length']+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x5167e1(0x15ad)]('delete\x20descriptions')['targetEvent'](_0x5ee282)['ok']('OK')[_0x5167e1(0x696)](_0x5167e1(0x24ba));_0x391c3d['show'](_0xf90c19)[_0x5167e1(0x1cb0)](function(){const _0x14874e=_0x5167e1;_0x2cfd2e[_0x14874e(0xac6)][_0x14874e(0xf90)](function(_0x2f99a0){_0x3d2371(_0x2f99a0);}),_0x2cfd2e[_0x14874e(0xac6)]=[];});}_0x2cfd2e[_0x544365(0x9b2)]=[],_0x2cfd2e[_0x544365(0x5e9)]=_0x13d19b,_0x2cfd2e['deleteFieldConfirm']=_0x4b5ab2,_0x2cfd2e[_0x544365(0xe40)]=_0x290bcc;function _0x13d19b(_0x288cec,_0x123c99){const _0x4361c7=_0x544365;_0x391c3d[_0x4361c7(0xe27)]({'controller':_0x4361c7(0x15a0),'controllerAs':'vm','templateUrl':_0x1c91d0,'parent':angular[_0x4361c7(0x1853)](_0xf6f856['body']),'targetEvent':_0x288cec,'clickOutsideToClose':!![],'locals':{'type':_0x4361c7(0x2198),'item':_0x123c99,'items':_0x2cfd2e[_0x4361c7(0x355)],'configuration':_0x2cfd2e[_0x4361c7(0x10be)],'account':_0x2cfd2e['freshdeskAccount'],'license':null,'setting':null,'crudPermissions':_0x2cfd2e[_0x4361c7(0x1b1a)]}});}function _0x464e42(_0x171c5b){const _0x1d27a7=_0x544365;_0x2b708f[_0x1d27a7(0x1830)][_0x1d27a7(0x111d)]({'id':_0x171c5b['id']})[_0x1d27a7(0x1d77)][_0x1d27a7(0x1cb0)](function(){const _0x40c150=_0x1d27a7;_0x39641b()[_0x40c150(0x152a)](_0x2cfd2e[_0x40c150(0x355)],{'id':_0x171c5b['id']}),_0x8deb24[_0x40c150(0x829)]({'title':_0x40c150(0xd6b),'msg':_0x40c150(0x2688)});})[_0x1d27a7(0x1c4)](function(_0x3fda30){const _0x2ad86b=_0x1d27a7;_0x8deb24[_0x2ad86b(0x218e)]({'title':_0x3fda30[_0x2ad86b(0x291)]?_0x2ad86b(0xeb9)+_0x3fda30[_0x2ad86b(0x291)]+_0x2ad86b(0x1657)+_0x3fda30['statusText']:_0x2ad86b(0x13e5),'msg':_0x3fda30['data']?JSON[_0x2ad86b(0x2701)](_0x3fda30[_0x2ad86b(0x25c)]):_0x3fda30['toString']()});});}function _0x4b5ab2(_0x22a4cb,_0xe46045){const _0x371e88=_0x544365,_0x374296=_0x391c3d[_0x371e88(0x1551)]()[_0x371e88(0x1386)](_0x371e88(0x21a9))[_0x371e88(0x49e)](_0x371e88(0xf1d)+'\x20will\x20be\x20deleted.')[_0x371e88(0x15ad)](_0x371e88(0x21ee))[_0x371e88(0x728)](_0x22a4cb)['ok']('OK')[_0x371e88(0x696)](_0x371e88(0x24ba));_0x391c3d[_0x371e88(0xe27)](_0x374296)['then'](function(){_0x464e42(_0xe46045);},function(){const _0x2bac1=_0x371e88;console[_0x2bac1(0x1b4f)](_0x2bac1(0x24ba));});}function _0x290bcc(_0x5e1055){const _0x3c9288=_0x544365,_0x28dc71=_0x391c3d[_0x3c9288(0x1551)]()[_0x3c9288(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')['htmlContent'](_0x3c9288(0x204d)+_0x2cfd2e['selectedFields'][_0x3c9288(0xfd0)]+'\x20selected'+_0x3c9288(0x1b6))[_0x3c9288(0x15ad)](_0x3c9288(0x199d))[_0x3c9288(0x728)](_0x5e1055)['ok']('OK')[_0x3c9288(0x696)](_0x3c9288(0x24ba));_0x391c3d[_0x3c9288(0xe27)](_0x28dc71)[_0x3c9288(0x1cb0)](function(){const _0x3e73c4=_0x3c9288;_0x2cfd2e[_0x3e73c4(0x9b2)][_0x3e73c4(0xf90)](function(_0xcbb03b){_0x464e42(_0xcbb03b);}),_0x2cfd2e[_0x3e73c4(0x9b2)]=[];});}}const _0x400822=_0x4a860d;;_0x59e612['$inject']=['$scope',_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0xa06),_0x5537c6(0x10be),_0x5537c6(0x142b),'Auth',_0x5537c6(0x8a5),'setting','crudPermissions'];function _0x59e612(_0x1ef380,_0x3c2c43,_0x114852,_0x32252a,_0x54ff1a,_0x1ab221,_0x20ac31,_0x1adc00,_0x5c1ab6,_0x586216,_0x2f5cc0,_0x1f12c3,_0x36e12c,_0xf4632a){const _0x56d033=_0x5537c6,_0x428bb3=this;_0x428bb3[_0x56d033(0xe76)]=_0x2f5cc0[_0x56d033(0x21e8)](),_0x428bb3[_0x56d033(0x1a7c)]=[],_0x428bb3[_0x56d033(0x9ca)]=_0x36e12c,_0x428bb3[_0x56d033(0x8a5)]=_0x1f12c3,_0x428bb3[_0x56d033(0x1b1a)]=_0xf4632a,_0x428bb3[_0x56d033(0xf4c)]={},_0x428bb3[_0x56d033(0x1b0c)]=_0x428bb3[_0x56d033(0x9ca)]&&_0x428bb3[_0x56d033(0x9ca)][_0x56d033(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x428bb3[_0x56d033(0x1386)]=_0x56d033(0xe81),_0x428bb3[_0x56d033(0x10be)]=angular[_0x56d033(0x17fe)](_0x5c1ab6),_0x428bb3[_0x56d033(0xa06)]=_0x1adc00,_0x428bb3[_0x56d033(0x1008)]=![];!_0x428bb3[_0x56d033(0x10be)]&&(_0x428bb3['freshdeskConfiguration']={'channel':_0x56d033(0x1fd4),'type':_0x56d033(0x26c0)},_0x428bb3[_0x56d033(0x1386)]=_0x56d033(0x272e),_0x428bb3[_0x56d033(0x1008)]=!![]);_0x428bb3[_0x56d033(0x10cd)]=_0x18a147,_0x428bb3['saveFreshdeskConfiguration']=_0x1733fd,_0x428bb3[_0x56d033(0x5ef)]=_0x448f13,_0x428bb3[_0x56d033(0x2c4)]=_0x1964a1,_0x428bb3['closeDialog']=_0x346396;function _0x18a147(){const _0x527e7b=_0x56d033;_0x428bb3[_0x527e7b(0x1a7c)]=[],_0x586216[_0x527e7b(0x2317)][_0x527e7b(0x1070)]({'id':_0x3c2c43['params']['id']},_0x428bb3[_0x527e7b(0x10be)])[_0x527e7b(0x1d77)][_0x527e7b(0x1cb0)](function(_0x23f3f4){const _0x41e961=_0x527e7b;_0x428bb3[_0x41e961(0xa06)][_0x41e961(0xf63)](_0x23f3f4[_0x41e961(0x19b2)]()),_0x20ac31[_0x41e961(0x829)]({'title':'FreshdeskConfiguration\x20properly\x20created','msg':_0x428bb3[_0x41e961(0x10be)][_0x41e961(0x16b6)]?_0x428bb3[_0x41e961(0x10be)][_0x41e961(0x16b6)]+_0x41e961(0x470):''}),_0x346396(_0x23f3f4);})['catch'](function(_0x3a3f8d){const _0x1c3c00=_0x527e7b;if(_0x3a3f8d[_0x1c3c00(0x25c)]&&_0x3a3f8d['data']['errors']&&_0x3a3f8d[_0x1c3c00(0x25c)][_0x1c3c00(0x1a7c)][_0x1c3c00(0xfd0)]){_0x428bb3['errors']=_0x3a3f8d[_0x1c3c00(0x25c)]['errors']||[{'message':_0x3a3f8d[_0x1c3c00(0x147f)](),'type':_0x1c3c00(0x54c)}];for(let _0x55fa7d=0x0;_0x55fa7d<_0x3a3f8d[_0x1c3c00(0x25c)][_0x1c3c00(0x1a7c)][_0x1c3c00(0xfd0)];_0x55fa7d+=0x1){_0x20ac31[_0x1c3c00(0x218e)]({'title':_0x3a3f8d[_0x1c3c00(0x25c)][_0x1c3c00(0x1a7c)][_0x55fa7d][_0x1c3c00(0x66a)],'msg':_0x3a3f8d[_0x1c3c00(0x25c)][_0x1c3c00(0x1a7c)][_0x55fa7d][_0x1c3c00(0x155e)]});}}else _0x20ac31[_0x1c3c00(0x218e)]({'title':_0x3a3f8d[_0x1c3c00(0x291)]?_0x1c3c00(0xeb9)+_0x3a3f8d[_0x1c3c00(0x291)]+_0x1c3c00(0x1657)+_0x3a3f8d['statusText']:_0x1c3c00(0x54c),'msg':_0x3a3f8d[_0x1c3c00(0x25c)]?JSON[_0x1c3c00(0x2701)](_0x3a3f8d['data'][_0x1c3c00(0x155e)]):_0x3a3f8d[_0x1c3c00(0x147f)]()});});}function _0x1733fd(){const _0x4ee729=_0x56d033;_0x428bb3['errors']=[],_0x586216[_0x4ee729(0x29c2)][_0x4ee729(0x687)]({'id':_0x428bb3[_0x4ee729(0x10be)]['id']},_0x428bb3[_0x4ee729(0x10be)])[_0x4ee729(0x1d77)]['then'](function(_0x2bbc8f){const _0x96dcfc=_0x4ee729,_0x3ab5a7=_0x39641b()[_0x96dcfc(0x13b4)](_0x428bb3['configurations'],{'id':_0x2bbc8f['id']});_0x3ab5a7&&_0x39641b()[_0x96dcfc(0x9c1)](_0x3ab5a7,_0x39641b()['pick'](_0x2bbc8f[_0x96dcfc(0x19b2)](),_0x39641b()[_0x96dcfc(0x1be5)](_0x3ab5a7))),_0x20ac31[_0x96dcfc(0x829)]({'title':'FreshdeskConfiguration\x20properly\x20saved!','msg':_0x428bb3[_0x96dcfc(0x10be)][_0x96dcfc(0x16b6)]?_0x428bb3[_0x96dcfc(0x10be)][_0x96dcfc(0x16b6)]+_0x96dcfc(0xedb):''}),_0x346396(_0x2bbc8f);})[_0x4ee729(0x1c4)](function(_0x30ca4d){const _0x501996=_0x4ee729;if(_0x30ca4d[_0x501996(0x25c)]&&_0x30ca4d['data']['errors']&&_0x30ca4d[_0x501996(0x25c)][_0x501996(0x1a7c)][_0x501996(0xfd0)]){_0x428bb3['errors']=_0x30ca4d[_0x501996(0x25c)]['errors']||[{'message':_0x30ca4d[_0x501996(0x147f)](),'type':_0x501996(0x1e42)}];for(let _0x14a884=0x0;_0x14a884<_0x30ca4d['data'][_0x501996(0x1a7c)][_0x501996(0xfd0)];_0x14a884++){_0x20ac31[_0x501996(0x218e)]({'title':_0x30ca4d['data']['errors'][_0x14a884][_0x501996(0x66a)],'msg':_0x30ca4d[_0x501996(0x25c)][_0x501996(0x1a7c)][_0x14a884][_0x501996(0x155e)]});}}else _0x20ac31['error']({'title':_0x30ca4d['status']?'API:'+_0x30ca4d[_0x501996(0x291)]+_0x501996(0x1657)+_0x30ca4d[_0x501996(0xc22)]:_0x501996(0x1e42),'msg':_0x30ca4d[_0x501996(0x25c)]?JSON[_0x501996(0x2701)](_0x30ca4d[_0x501996(0x25c)][_0x501996(0x155e)]):_0x30ca4d[_0x501996(0x147f)]()});});}function _0x448f13(_0x199ac2){const _0x109850=_0x56d033;_0x428bb3[_0x109850(0x1a7c)]=[];const _0x2c650c=_0x32252a[_0x109850(0x1551)]()[_0x109850(0x1386)]('Are\x20you\x20sure?')[_0x109850(0x862)]('The\x20freshdeskConfiguration\x20will\x20be\x20deleted.')[_0x109850(0x15ad)](_0x109850(0xb5c))['ok'](_0x109850(0x2594))[_0x109850(0x696)](_0x109850(0xde1))[_0x109850(0x728)](_0x199ac2);_0x32252a[_0x109850(0xe27)](_0x2c650c)[_0x109850(0x1cb0)](function(){const _0x34b9a0=_0x109850;_0x586216[_0x34b9a0(0x29c2)]['delete']({'id':_0x428bb3[_0x34b9a0(0x10be)]['id']})[_0x34b9a0(0x1d77)][_0x34b9a0(0x1cb0)](function(){const _0x1e754a=_0x34b9a0;_0x39641b()[_0x1e754a(0x152a)](_0x428bb3['configurations'],{'id':_0x428bb3[_0x1e754a(0x10be)]['id']}),_0x20ac31[_0x1e754a(0x829)]({'title':_0x1e754a(0x2122),'msg':(_0x428bb3[_0x1e754a(0x10be)][_0x1e754a(0x16b6)]||_0x1e754a(0x10be))+_0x1e754a(0x3f5)}),_0x346396(_0x428bb3[_0x1e754a(0x10be)]);})[_0x34b9a0(0x1c4)](function(_0x31f28a){const _0x29a88e=_0x34b9a0;if(_0x31f28a[_0x29a88e(0x25c)]&&_0x31f28a[_0x29a88e(0x25c)][_0x29a88e(0x1a7c)]&&_0x31f28a['data'][_0x29a88e(0x1a7c)][_0x29a88e(0xfd0)]){_0x428bb3[_0x29a88e(0x1a7c)]=_0x31f28a[_0x29a88e(0x25c)]['errors']||[{'message':_0x31f28a[_0x29a88e(0x147f)](),'type':'api.intFreshdeskConfiguration.delete'}];for(let _0x4394d4=0x0;_0x4394d4<_0x31f28a[_0x29a88e(0x25c)]['errors'][_0x29a88e(0xfd0)];_0x4394d4++){_0x20ac31[_0x29a88e(0x218e)]({'title':_0x31f28a[_0x29a88e(0x25c)][_0x29a88e(0x1a7c)][_0x4394d4][_0x29a88e(0x66a)],'msg':_0x31f28a[_0x29a88e(0x25c)][_0x29a88e(0x1a7c)][_0x4394d4]['message']});}}else _0x20ac31[_0x29a88e(0x218e)]({'title':_0x31f28a[_0x29a88e(0x291)]?_0x29a88e(0xeb9)+_0x31f28a[_0x29a88e(0x291)]+_0x29a88e(0x1657)+_0x31f28a['statusText']:_0x29a88e(0x572),'msg':_0x31f28a[_0x29a88e(0x25c)]?JSON['stringify'](_0x31f28a[_0x29a88e(0x25c)][_0x29a88e(0x155e)]):_0x31f28a[_0x29a88e(0x155e)]||_0x31f28a['toString']()});});},function(){});}function _0x1964a1(_0x4ea277){return _0x4ea277===null?undefined:new Date(_0x4ea277);}function _0x346396(_0x2bcea8){const _0x2929cc=_0x56d033;_0x32252a[_0x2929cc(0x1426)](_0x2bcea8);}}const _0x5ca787=_0x59e612;;_0x9e986e[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0x2718),_0x5537c6(0x122f),_0x5537c6(0x583),_0x5537c6(0x1539),'type',_0x5537c6(0x142b),_0x5537c6(0x1774),'crudPermissions'];function _0x9e986e(_0x55826,_0x50c9d5,_0x156dd4,_0x391414,_0x1a8dae,_0x32bfc4,_0xb5acc4,_0xcbafe7,_0x54dff6,_0x9ba7fd,_0x39add4,_0x12b539,_0x118acc){const _0x66397f=_0x5537c6,_0x5c4bce=this;_0x5c4bce[_0x66397f(0xe76)]=_0x12b539[_0x66397f(0x21e8)](),_0x5c4bce['errors']=[],_0x5c4bce[_0x66397f(0x1386)]=_0x66397f(0xf08)+_0x39641b()[_0x66397f(0x1002)](_0x9ba7fd),_0x5c4bce[_0x66397f(0x583)]=angular[_0x66397f(0x17fe)](_0xcbafe7),_0x5c4bce['items']=_0xb5acc4,_0x5c4bce[_0x66397f(0x66a)]=_0x9ba7fd,_0x5c4bce[_0x66397f(0x1b1a)]=_0x118acc,_0x5c4bce['newItem']=![];!_0x5c4bce[_0x66397f(0x583)]&&(_0x5c4bce[_0x66397f(0x583)]={'type':_0x66397f(0x1518)},_0x5c4bce[_0x66397f(0x583)][_0x39641b()[_0x66397f(0x432)](_0x9ba7fd)+'Id']=_0x32bfc4['id'],_0x5c4bce[_0x66397f(0x1386)]='INTEGRATIONS.NEW_'+_0x39641b()[_0x66397f(0x1002)](_0x9ba7fd),_0x5c4bce[_0x66397f(0x1202)]=!![]);_0x5c4bce['addNewItem']=_0x222041,_0x5c4bce[_0x66397f(0x1a78)]=_0x3dbdb0,_0x5c4bce['deleteItem']=_0x49b2fd,_0x5c4bce[_0x66397f(0x2f6)]=_0x3d5814,_0x5c4bce['closeDialog']=_0x2c6bba,_0x39add4[_0x66397f(0x1822)][_0x66397f(0xbf7)]({'nolimit':!![]})['$promise'][_0x66397f(0x1cb0)](function(_0x472e75){const _0x2f45b6=_0x66397f;return _0x5c4bce[_0x2f45b6(0x9a9)]=_0x472e75[_0x2f45b6(0x2214)]?_0x472e75['rows']:[],_0x39add4[_0x2f45b6(0x247a)][_0x2f45b6(0x1e57)]()[_0x2f45b6(0x1d77)];})[_0x66397f(0x1cb0)](function(_0x1a35e4){const _0x55cd69=_0x66397f;return _0x5c4bce[_0x55cd69(0xbf1)]=_0x39641b()[_0x55cd69(0x91f)](_0x39641b()[_0x55cd69(0x1be5)](_0x1a35e4),[_0x55cd69(0x1d77),_0x55cd69(0x248e),'createdAt',_0x55cd69(0x27ba),_0x55cd69(0x1867)]),_0x5c4bce[_0x55cd69(0xbf1)][_0x55cd69(0x2785)](_0x55cd69(0x2110)),_0x39add4['voiceDialReport'][_0x55cd69(0x1e57)]()['$promise'];})[_0x66397f(0x1cb0)](function(_0x536095){const _0x57a38e=_0x66397f;_0x5c4bce['voiceDialReportColumns']=_0x39641b()[_0x57a38e(0x91f)](_0x39641b()['keys'](_0x536095),[_0x57a38e(0x1d77),_0x57a38e(0x248e),_0x57a38e(0x24cb),_0x57a38e(0x27ba),_0x57a38e(0x1867)]),_0x5c4bce[_0x57a38e(0x1639)][_0x57a38e(0x2785)]('recordingURL');})[_0x66397f(0x1c4)](function(_0x376ed0){const _0x3bfa19=_0x66397f;_0x1a8dae[_0x3bfa19(0x218e)]({'title':_0x376ed0[_0x3bfa19(0x291)]?_0x3bfa19(0xeb9)+_0x376ed0['status']+'\x20-\x20'+_0x376ed0[_0x3bfa19(0xc22)]:_0x3bfa19(0x262e),'msg':_0x376ed0[_0x3bfa19(0x25c)]?JSON[_0x3bfa19(0x2701)](_0x376ed0[_0x3bfa19(0x25c)]):_0x376ed0[_0x3bfa19(0x147f)]()});}),_0x39add4['intFreshdeskAccount']['getFields']({'id':_0x54dff6['id'],'ticketType':_0x32bfc4[_0x66397f(0x161)]?_0x32bfc4[_0x66397f(0x161)]:undefined})[_0x66397f(0x1d77)][_0x66397f(0x1cb0)](function(_0x12f68a){const _0xd6f649=_0x66397f;_0x5c4bce['accountConnected']=!![],_0x5c4bce[_0xd6f649(0x355)]=_0x12f68a[_0xd6f649(0x2214)]?_0x12f68a['rows']:[],_0x5c4bce['item'][_0xd6f649(0x1e50)]&&(_0x5c4bce[_0xd6f649(0x1d5a)]=_0x39641b()[_0xd6f649(0x13b4)](_0x5c4bce[_0xd6f649(0x355)],{'id':_0x5c4bce[_0xd6f649(0x583)]['idField']}));})[_0x66397f(0x1c4)](function(_0x4effd2){const _0x23fe8b=_0x66397f;_0x5c4bce[_0x23fe8b(0x1a28)]=![],console[_0x23fe8b(0x218e)](_0x4effd2);});function _0x222041(){const _0x1a3d05=_0x66397f;_0x5c4bce[_0x1a3d05(0x1a7c)]=[],_0x5c4bce[_0x1a3d05(0x1d5a)]&&(_0x5c4bce[_0x1a3d05(0x583)][_0x1a3d05(0x1e50)]=_0x5c4bce[_0x1a3d05(0x1d5a)]['id'],_0x5c4bce['item'][_0x1a3d05(0xc1f)]=_0x5c4bce['customField'][_0x1a3d05(0x16b6)],_0x5c4bce['item'][_0x1a3d05(0x1d5a)]=_0x5c4bce[_0x1a3d05(0x1d5a)][_0x1a3d05(0x197c)]),_0x39add4[_0x1a3d05(0x1830)][_0x1a3d05(0x1c3f)](_0x5c4bce[_0x1a3d05(0x583)])[_0x1a3d05(0x1d77)]['then'](function(_0x1c2066){const _0x67e602=_0x1a3d05;_0x5c4bce[_0x67e602(0x122f)][_0x67e602(0xf63)](_0x1c2066),_0x1a8dae[_0x67e602(0x829)]({'title':_0x39641b()[_0x67e602(0x432)](_0x9ba7fd)+'\x20properly\x20created','msg':_0x39641b()[_0x67e602(0x432)](_0x9ba7fd)+_0x67e602(0x470)}),_0x2c6bba();})[_0x1a3d05(0x1c4)](function(_0x40b589){const _0x584757=_0x1a3d05;console['error'](_0x40b589),_0x5c4bce[_0x584757(0x1a7c)]=_0x40b589[_0x584757(0x25c)][_0x584757(0x1a7c)]||[{'message':_0x40b589[_0x584757(0x147f)](),'type':_0x584757(0x1876)}];});}function _0x3dbdb0(){const _0x4b4890=_0x66397f;_0x5c4bce['errors']=[],_0x5c4bce['customField']&&(_0x5c4bce[_0x4b4890(0x583)][_0x4b4890(0x1e50)]=_0x5c4bce[_0x4b4890(0x1d5a)]['id'],_0x5c4bce['item']['nameField']=_0x5c4bce[_0x4b4890(0x1d5a)][_0x4b4890(0x16b6)],_0x5c4bce[_0x4b4890(0x583)]['customField']=_0x5c4bce[_0x4b4890(0x1d5a)][_0x4b4890(0x197c)]),_0x39add4['intFreshdeskField'][_0x4b4890(0x687)]({'id':_0x5c4bce['item']['id']},_0x5c4bce[_0x4b4890(0x583)])[_0x4b4890(0x1d77)][_0x4b4890(0x1cb0)](function(_0xd12b2a){const _0x272bdd=_0x4b4890,_0x1d30b0=_0x39641b()['find'](_0x5c4bce['items'],{'id':_0xd12b2a['id']});_0x1d30b0&&_0x39641b()[_0x272bdd(0x9c1)](_0x1d30b0,_0xd12b2a),_0x1a8dae[_0x272bdd(0x829)]({'title':_0x39641b()[_0x272bdd(0x432)](_0x9ba7fd)+_0x272bdd(0xaf6),'msg':_0x39641b()[_0x272bdd(0x432)](_0x9ba7fd)+_0x272bdd(0xedb)}),_0x2c6bba();})[_0x4b4890(0x1c4)](function(_0x37c532){const _0x258978=_0x4b4890;console[_0x258978(0x218e)](_0x37c532),_0x5c4bce[_0x258978(0x1a7c)]=_0x37c532[_0x258978(0x25c)]['errors']||[{'message':_0x37c532[_0x258978(0x147f)](),'type':_0x258978(0x197e)}];});}function _0x49b2fd(_0x33b35e){const _0x3e2db9=_0x66397f;_0x5c4bce['errors']=[];const _0x21efc6=_0x391414[_0x3e2db9(0x1551)]()[_0x3e2db9(0x1386)]('Are\x20you\x20sure?')[_0x3e2db9(0x862)](_0x3e2db9(0xd4c)+_0x9ba7fd+_0x3e2db9(0x1b6))[_0x3e2db9(0x15ad)](_0x3e2db9(0x1f6a)+_0x39641b()['capitalize'](_0x9ba7fd))['ok']('Delete')[_0x3e2db9(0x696)](_0x3e2db9(0xde1))['targetEvent'](_0x33b35e);_0x391414[_0x3e2db9(0xe27)](_0x21efc6)['then'](function(){const _0x3de07b=_0x3e2db9;_0x39add4['intFreshdeskField']['delete']({'id':_0x5c4bce[_0x3de07b(0x583)]['id']})['$promise']['then'](function(){const _0x4f7494=_0x3de07b;_0x39641b()[_0x4f7494(0x152a)](_0x5c4bce[_0x4f7494(0x122f)],{'id':_0x5c4bce[_0x4f7494(0x583)]['id']}),_0x1a8dae['success']({'title':_0x39641b()[_0x4f7494(0x432)](_0x9ba7fd)+'\x20properly\x20deleted!','msg':_0x39641b()[_0x4f7494(0x432)](_0x9ba7fd)+_0x4f7494(0x3f5)}),_0x2c6bba();})[_0x3de07b(0x1c4)](function(_0x1fa27e){const _0x49556c=_0x3de07b;console[_0x49556c(0x218e)](_0x1fa27e),_0x5c4bce['errors']=_0x1fa27e[_0x49556c(0x25c)][_0x49556c(0x1a7c)]||[{'message':_0x1fa27e[_0x49556c(0x147f)](),'type':_0x49556c(0x10e6)}];});},function(){});}function _0x3d5814(){const _0x56e82f=_0x66397f;return _0x5c4bce[_0x56e82f(0x583)]['variableName']!==undefined?_0x5c4bce[_0x56e82f(0x583)][_0x56e82f(0x1e71)]:_0x56e82f(0x7c8);}function _0x2c6bba(){const _0x2e6e69=_0x66397f;_0x391414[_0x2e6e69(0x1426)]();}}const _0x1e980e=_0x9e986e;;_0x370e66['$inject']=[_0x5537c6(0x406),'$location',_0x5537c6(0xcb9),'$document',_0x5537c6(0x1ae),'license',_0x5537c6(0x9ca),'api',_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x2065),_0x5537c6(0x2199)];function _0x370e66(_0x2879df,_0x2a0bce,_0x4e81e5,_0x4c3a85,_0x98c277,_0x48262b,_0x592eda,_0xfa2c91,_0x169be1,_0x48288b,_0x2a13ea,_0x278679){const _0x4139ac=_0x5537c6,_0x59d413=this;_0x59d413[_0x4139ac(0xe76)]=_0x48288b[_0x4139ac(0x21e8)](),_0x59d413[_0x4139ac(0x8a5)]=_0x48262b,_0x59d413[_0x4139ac(0x9ca)]=_0x592eda,_0x59d413['passwordPattern']=_0x59d413[_0x4139ac(0x9ca)][_0x4139ac(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x59d413[_0x4139ac(0x2404)]=_0x2a0bce[_0x4139ac(0x2276)]()+_0x4139ac(0x138b)+_0x2a0bce[_0x4139ac(0x17d8)](),_0x59d413[_0x4139ac(0x2065)]=_0x2a13ea||_0x2879df[_0x4139ac(0x1dfe)][_0x4139ac(0x2065)]||{},_0x59d413['userProfileSection']=_0x278679&&_0x278679[_0x4139ac(0x184d)]==0x1?_0x278679[_0x4139ac(0x2214)][0x0]:null,_0x59d413['crudPermissions']=_0x48288b[_0x4139ac(0x14ea)](_0x59d413[_0x4139ac(0x2199)]?_0x59d413[_0x4139ac(0x2199)][_0x4139ac(0x1b1a)]:null),_0x59d413['hasModulePermissions']={},_0x59d413[_0x4139ac(0x8ec)]=_0x2879df['params']['tab']||0x0,_0x59d413['alert']=_0x169be1[_0x4139ac(0x28c7)],_0x59d413[_0x4139ac(0x16f7)]=_0x385121,_0x59d413['saveFreshdeskAccount']=_0x369f93;function _0x385121(){const _0x3eabf2=_0x4139ac;_0x2879df['go']('app.integrations.freshdeskAccounts',{},{'reload':_0x3eabf2(0x905)});}function _0x369f93(){const _0x24e357=_0x4139ac;_0xfa2c91[_0x24e357(0x2317)][_0x24e357(0x687)]({'id':_0x59d413[_0x24e357(0x2065)]['id']},_0x59d413['freshdeskAccount'])[_0x24e357(0x1d77)][_0x24e357(0x1cb0)](function(){const _0x4ff513=_0x24e357;_0x169be1[_0x4ff513(0x829)]({'title':_0x4ff513(0xc3d),'msg':_0x59d413[_0x4ff513(0x2065)][_0x4ff513(0x16b6)]?_0x59d413['freshdeskAccount'][_0x4ff513(0x16b6)]+_0x4ff513(0x1068):''});})['catch'](function(_0x46b830){const _0x4d743c=_0x24e357;_0x169be1[_0x4d743c(0x218e)]({'title':_0x46b830[_0x4d743c(0x291)]?_0x4d743c(0xeb9)+_0x46b830[_0x4d743c(0x291)]+_0x4d743c(0x1657)+_0x46b830[_0x4d743c(0xc22)]:_0x4d743c(0xab8),'msg':_0x46b830[_0x4d743c(0x25c)]?JSON[_0x4d743c(0x2701)](_0x46b830[_0x4d743c(0x25c)]):_0x46b830['toString']()});});}}const _0x2ae30f=_0x370e66;;const _0x184866=_0x5074a3['p']+_0x5537c6(0x1d0e);;_0x38c570['$inject']=['$scope',_0x5537c6(0x1f10),'$state','$mdSidenav',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x8aa),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),'Auth',_0x5537c6(0x8a5),'setting'];function _0x38c570(_0x208c60,_0x2ffdf7,_0x17b2b2,_0x2fb73a,_0x9bd7e6,_0x11d67f,_0x52e631,_0x11e189,_0x14034e,_0x451cf2,_0x4f329a,_0x4a7c71,_0x125b86,_0x5158ab,_0x3f1d6e,_0x306783,_0x408891){const _0x420339=_0x5537c6,_0x1255b3=this;_0x1255b3[_0x420339(0x8a5)]=_0x306783,_0x1255b3[_0x420339(0x9ca)]=_0x408891,_0x1255b3[_0x420339(0xe76)]=_0x3f1d6e[_0x420339(0x21e8)](),_0x1255b3[_0x420339(0x8aa)]=_0x14034e||{'count':0x0,'rows':[]},_0x1255b3['userProfile']=_0x451cf2,_0x1255b3['userProfileSection']=_0x4f329a&&_0x4f329a[_0x420339(0x184d)]==0x1?_0x4f329a[_0x420339(0x2214)][0x0]:null,_0x1255b3['crudPermissions']=_0x3f1d6e['parseCrudPermissions'](_0x1255b3[_0x420339(0x2199)]?_0x1255b3[_0x420339(0x2199)][_0x420339(0x1b1a)]:null),_0x1255b3[_0x420339(0xc83)]='freshdeskAccounts',_0x1255b3[_0x420339(0x1d20)]='',_0x1255b3[_0x420339(0x1cdf)]=null,_0x1255b3[_0x420339(0x203c)]=[],_0x1255b3[_0x420339(0xae2)]={'fields':_0x420339(0x4d0),'limit':0xa,'page':0x1},_0x1255b3[_0x420339(0x235d)]=_0x602051,_0x1255b3['testtestintegrationaccount']=_0x11ab2b,_0x1255b3['deleteconfirm']=_0x51ae0f,_0x1255b3['success']=_0x5f3aea,_0x1255b3[_0x420339(0x161e)]=_0x1d74be,_0x1255b3['createOrEditFreshdeskAccount']=_0x43c714,_0x1255b3[_0x420339(0x1934)]=_0x207886,_0x1255b3['exportSelectedFreshdeskAccounts']=_0x119320,_0x1255b3[_0x420339(0x2946)]=_0x5e3c98,_0x1255b3[_0x420339(0x2975)]=_0x3b5c49,_0x1255b3['selectAllFreshdeskAccounts']=_0x42b4d2;function _0x602051(_0x284735){const _0x45e908=_0x420339;_0x17b2b2['go'](_0x45e908(0x1df6),{'id':_0x284735['id'],'freshdeskAccount':_0x284735,'crudPermissions':_0x1255b3[_0x45e908(0x1b1a)]});}function _0x11ab2b(_0x1a07b2){const _0x37bfca=_0x420339;return _0x4a7c71[_0x37bfca(0x2317)][_0x37bfca(0xc84)]({'id':_0x1a07b2['id'],'test':!![]})[_0x37bfca(0x1d77)]['then'](function(){const _0x48b20e=_0x37bfca;_0x5158ab[_0x48b20e(0x829)]({'title':'FreshdeskAccount\x20properly\x20tested','msg':_0x48b20e(0x1bca)});})['catch'](function(_0x12e10d){const _0x3f5bc8=_0x37bfca;_0x5158ab[_0x3f5bc8(0x218e)]({'title':_0x3f5bc8(0x24a3),'msg':_0x12e10d[_0x3f5bc8(0x25c)]?_0x12e10d['data'][_0x3f5bc8(0x155e)]?_0x12e10d[_0x3f5bc8(0x25c)][_0x3f5bc8(0x155e)]:JSON[_0x3f5bc8(0x2701)](_0x12e10d[_0x3f5bc8(0x25c)]):_0x12e10d[_0x3f5bc8(0x147f)]()});});}function _0x51ae0f(_0x4f81d3,_0x14c8f0){const _0x4c4134=_0x420339,_0x2be1fa=_0x9bd7e6[_0x4c4134(0x1551)]()[_0x4c4134(0x1386)](_0x4c4134(0x140b)+_0x39641b()[_0x4c4134(0xa75)](_0x4c4134(0x2065))+'?')[_0x4c4134(0x49e)](_0x4c4134(0x204d)+(_0x4f81d3['name']||'freshdeskAccount')+''+_0x4c4134(0x1b6))[_0x4c4134(0x15ad)](_0x4c4134(0x853))['targetEvent'](_0x14c8f0)['ok']('OK')[_0x4c4134(0x696)](_0x4c4134(0x24ba));_0x9bd7e6['show'](_0x2be1fa)[_0x4c4134(0x1cb0)](function(){_0x207886(_0x4f81d3);},function(){const _0x5e2652=_0x4c4134;console[_0x5e2652(0x1b4f)](_0x5e2652(0x24ba));});}let _0x3e3018=!![],_0x2c931b=0x1;_0x208c60[_0x420339(0x614)](_0x420339(0x957),function(_0x22f354,_0x5eb57f){const _0x224f10=_0x420339;_0x3e3018?_0x52e631(function(){_0x3e3018=![];}):(!_0x5eb57f&&(_0x2c931b=_0x1255b3[_0x224f10(0xae2)]['page']),_0x22f354!==_0x5eb57f&&(_0x1255b3[_0x224f10(0xae2)]['page']=0x1),!_0x22f354&&(_0x1255b3[_0x224f10(0xae2)][_0x224f10(0x1c7b)]=_0x2c931b),_0x1255b3[_0x224f10(0x161e)]());});function _0x5f3aea(_0x472c4c){const _0x12212b=_0x420339;_0x1255b3[_0x12212b(0x8aa)]=_0x472c4c||{'count':0x0,'rows':[]};}function _0x1d74be(){const _0xfcf655=_0x420339;_0x1255b3['query'][_0xfcf655(0x184b)]=(_0x1255b3[_0xfcf655(0xae2)][_0xfcf655(0x1c7b)]-0x1)*_0x1255b3[_0xfcf655(0xae2)][_0xfcf655(0x236)],_0x3f1d6e[_0xfcf655(0x22b6)](_0xfcf655(0x1c60))?_0x1255b3[_0xfcf655(0x2061)]=_0x4a7c71[_0xfcf655(0x2317)]['get'](_0x1255b3[_0xfcf655(0xae2)],_0x5f3aea)[_0xfcf655(0x1d77)]:(_0x1255b3[_0xfcf655(0xae2)]['id']=_0x1255b3[_0xfcf655(0x44a)]['id'],_0x1255b3['query']['section']=_0xfcf655(0x7f7),_0x1255b3[_0xfcf655(0x2061)]=_0x4a7c71[_0xfcf655(0x44a)][_0xfcf655(0x1810)](_0x1255b3[_0xfcf655(0xae2)],_0x5f3aea)['$promise']);}function _0x43c714(_0x1fb6a6,_0xd4807a){const _0x367f22=_0x420339;_0x9bd7e6[_0x367f22(0xe27)]({'controller':_0x367f22(0x2ca),'controllerAs':'vm','templateUrl':_0x184866,'parent':angular[_0x367f22(0x1853)](_0x11d67f['body']),'targetEvent':_0x1fb6a6,'clickOutsideToClose':!![],'locals':{'freshdeskAccount':_0xd4807a,'freshdeskAccounts':_0x1255b3[_0x367f22(0x8aa)]['rows'],'license':_0x1255b3[_0x367f22(0x8a5)],'setting':_0x1255b3[_0x367f22(0x9ca)],'crudPermissions':_0x1255b3[_0x367f22(0x1b1a)]}});}function _0x207886(_0x5a4624){const _0x523940=_0x420339;_0x4a7c71['intFreshdeskAccount'][_0x523940(0x111d)]({'id':_0x5a4624['id']})[_0x523940(0x1d77)][_0x523940(0x1cb0)](function(){const _0x114a99=_0x523940;_0x39641b()[_0x114a99(0x152a)](_0x1255b3['freshdeskAccounts'][_0x114a99(0x2214)],{'id':_0x5a4624['id']}),_0x1255b3[_0x114a99(0x8aa)][_0x114a99(0x184d)]-=0x1,!_0x1255b3['freshdeskAccounts'][_0x114a99(0x2214)]['length']&&_0x1255b3[_0x114a99(0x161e)](),_0x5158ab[_0x114a99(0x829)]({'title':_0x39641b()[_0x114a99(0xa75)]('FreshdeskAccount')+_0x114a99(0x2663),'msg':_0x5a4624[_0x114a99(0x16b6)]?_0x5a4624[_0x114a99(0x16b6)]+_0x114a99(0x3f5):''});})[_0x523940(0x1c4)](function(_0x2757f7){const _0x381b61=_0x523940;if(_0x2757f7[_0x381b61(0x25c)]&&_0x2757f7[_0x381b61(0x25c)][_0x381b61(0x1a7c)]&&_0x2757f7[_0x381b61(0x25c)][_0x381b61(0x1a7c)][_0x381b61(0xfd0)]){_0x1255b3['errors']=_0x2757f7[_0x381b61(0x25c)]['errors']||[{'message':_0x2757f7[_0x381b61(0x147f)](),'type':_0x381b61(0x277b)}];for(let _0x3ac2b3=0x0;_0x3ac2b3<_0x2757f7[_0x381b61(0x25c)][_0x381b61(0x1a7c)][_0x381b61(0xfd0)];_0x3ac2b3++){_0x5158ab[_0x381b61(0x218e)]({'title':_0x2757f7[_0x381b61(0x25c)][_0x381b61(0x1a7c)][_0x3ac2b3][_0x381b61(0x66a)],'msg':_0x2757f7[_0x381b61(0x25c)][_0x381b61(0x1a7c)][_0x3ac2b3][_0x381b61(0x155e)]});}}else _0x5158ab[_0x381b61(0x218e)]({'title':_0x2757f7[_0x381b61(0x291)]?_0x381b61(0xeb9)+_0x2757f7[_0x381b61(0x291)]+'\x20-\x20'+_0x2757f7[_0x381b61(0xc22)]:_0x381b61(0x277b),'msg':_0x2757f7[_0x381b61(0x25c)]?JSON['stringify'](_0x2757f7[_0x381b61(0x25c)][_0x381b61(0x155e)]):_0x2757f7[_0x381b61(0x155e)]||_0x2757f7[_0x381b61(0x147f)]()});});}function _0x119320(){const _0x174b5b=_0x420339,_0x3171ab=angular[_0x174b5b(0x17fe)](_0x1255b3[_0x174b5b(0x203c)]);return _0x1255b3[_0x174b5b(0x203c)]=[],_0x3171ab;}function _0x5e3c98(_0x43fd31){const _0xa27d55=_0x420339,_0x5376a0=_0x9bd7e6[_0xa27d55(0x1551)]()['title'](_0xa27d55(0x1083))[_0xa27d55(0x49e)](_0xa27d55(0x204d)+_0x1255b3[_0xa27d55(0x203c)][_0xa27d55(0xfd0)]+_0xa27d55(0x1d6c)+'\x20will\x20be\x20deleted.')[_0xa27d55(0x15ad)]('delete\x20FreshdeskAccounts')[_0xa27d55(0x728)](_0x43fd31)['ok']('OK')[_0xa27d55(0x696)](_0xa27d55(0x24ba));_0x9bd7e6[_0xa27d55(0xe27)](_0x5376a0)[_0xa27d55(0x1cb0)](function(){const _0xf0a81e=_0xa27d55;_0x1255b3[_0xf0a81e(0x203c)]['forEach'](function(_0x8150cc){_0x207886(_0x8150cc);}),_0x1255b3[_0xf0a81e(0x203c)]=[];});}function _0x3b5c49(){const _0x527af2=_0x420339;_0x1255b3[_0x527af2(0x203c)]=[];}function _0x42b4d2(){const _0x1017f9=_0x420339;_0x1255b3[_0x1017f9(0x203c)]=_0x1255b3['freshdeskAccounts']['rows'];}}const _0x514be3=_0x38c570;;_0x54d8d4[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q','$translate','toasty',_0x5537c6(0x1d8),_0x5537c6(0x2779),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x54d8d4(_0x2e1f7e,_0x38dc42,_0x351167,_0x3d6b63,_0x971a01,_0x4c9498,_0x2ff916,_0x200157,_0x47c9f5,_0x3e55c4,_0xfb39a9,_0xd44f70,_0x3cf517,_0x162839){const _0x21be62=_0x5537c6,_0x3b74b7=this;_0x3b74b7[_0x21be62(0xe76)]=_0xfb39a9['getCurrentUser'](),_0x3b74b7['errors']=[],_0x3b74b7[_0x21be62(0x9ca)]=_0x3cf517,_0x3b74b7['license']=_0xd44f70,_0x3b74b7['crudPermissions']=_0x162839,_0x3b74b7[_0x21be62(0xf4c)]={},_0x3b74b7['passwordPattern']=_0x3b74b7['setting']&&_0x3b74b7[_0x21be62(0x9ca)][_0x21be62(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3b74b7['title']=_0x21be62(0x1798),_0x3b74b7['freshsalesAccount']=angular[_0x21be62(0x17fe)](_0x47c9f5),_0x3b74b7[_0x21be62(0x1d8)]=_0x200157,_0x3b74b7['newFreshsalesAccount']=![];!_0x3b74b7[_0x21be62(0x2779)]&&(_0x3b74b7[_0x21be62(0x2779)]={'serverUrl':_0x351167[_0x21be62(0x2276)]()+'://'+_0x351167[_0x21be62(0x17d8)]()+(_0x351167[_0x21be62(0x477)]()?':'+_0x351167[_0x21be62(0x477)]():'')},_0x3b74b7['title']='INTEGRATIONS.NEW_FRESHSALESACCOUNT',_0x3b74b7[_0x21be62(0x15e5)]=!![]);_0x3b74b7[_0x21be62(0x1fe7)]=_0x135c03,_0x3b74b7[_0x21be62(0x2780)]=_0x2383cd,_0x3b74b7[_0x21be62(0x2434)]=_0x156553,_0x3b74b7[_0x21be62(0x2c4)]=_0x13d71e,_0x3b74b7[_0x21be62(0xda0)]=_0x9c8700;function _0x135c03(){const _0x521d6a=_0x21be62;_0x3b74b7[_0x521d6a(0x1a7c)]=[],_0x3e55c4['intFreshsalesAccount'][_0x521d6a(0x1c3f)](_0x3b74b7[_0x521d6a(0x2779)])[_0x521d6a(0x1d77)][_0x521d6a(0x1cb0)](function(_0x345e9b){const _0x5ab358=_0x521d6a;_0x3b74b7[_0x5ab358(0x1d8)]['unshift'](_0x345e9b[_0x5ab358(0x19b2)]()),_0x2ff916[_0x5ab358(0x829)]({'title':_0x5ab358(0x19c9),'msg':_0x3b74b7['freshsalesAccount'][_0x5ab358(0x16b6)]?_0x3b74b7['freshsalesAccount'][_0x5ab358(0x16b6)]+_0x5ab358(0x470):''}),_0x9c8700(_0x345e9b);})['catch'](function(_0x4c5d85){const _0x21b3d3=_0x521d6a;if(_0x4c5d85['data']&&_0x4c5d85['data'][_0x21b3d3(0x1a7c)]&&_0x4c5d85[_0x21b3d3(0x25c)]['errors'][_0x21b3d3(0xfd0)]){_0x3b74b7['errors']=_0x4c5d85[_0x21b3d3(0x25c)][_0x21b3d3(0x1a7c)]||[{'message':_0x4c5d85[_0x21b3d3(0x147f)](),'type':_0x21b3d3(0xd46)}];for(let _0x3bba52=0x0;_0x3bba52<_0x4c5d85['data']['errors'][_0x21b3d3(0xfd0)];_0x3bba52+=0x1){_0x2ff916[_0x21b3d3(0x218e)]({'title':_0x4c5d85[_0x21b3d3(0x25c)][_0x21b3d3(0x1a7c)][_0x3bba52]['type'],'msg':_0x4c5d85[_0x21b3d3(0x25c)][_0x21b3d3(0x1a7c)][_0x3bba52][_0x21b3d3(0x155e)]});}}else _0x2ff916[_0x21b3d3(0x218e)]({'title':_0x4c5d85[_0x21b3d3(0x291)]?_0x21b3d3(0xeb9)+_0x4c5d85['status']+'\x20-\x20'+_0x4c5d85[_0x21b3d3(0xc22)]:_0x21b3d3(0xd46),'msg':_0x4c5d85[_0x21b3d3(0x25c)]?JSON[_0x21b3d3(0x2701)](_0x4c5d85[_0x21b3d3(0x25c)]['message']):_0x4c5d85['toString']()});});}function _0x2383cd(){const _0x443ae4=_0x21be62;_0x3b74b7[_0x443ae4(0x1a7c)]=[],_0x3e55c4[_0x443ae4(0xc8a)][_0x443ae4(0x687)]({'id':_0x3b74b7[_0x443ae4(0x2779)]['id']},_0x3b74b7[_0x443ae4(0x2779)])[_0x443ae4(0x1d77)][_0x443ae4(0x1cb0)](function(_0x518dbb){const _0x199e35=_0x443ae4,_0x36d142=_0x39641b()[_0x199e35(0x13b4)](_0x3b74b7[_0x199e35(0x1d8)],{'id':_0x518dbb['id']});_0x36d142&&_0x39641b()[_0x199e35(0x9c1)](_0x36d142,_0x39641b()[_0x199e35(0x169b)](_0x518dbb[_0x199e35(0x19b2)](),_0x39641b()[_0x199e35(0x1be5)](_0x36d142))),_0x2ff916[_0x199e35(0x829)]({'title':_0x199e35(0x52c),'msg':_0x3b74b7[_0x199e35(0x2779)]['name']?_0x3b74b7[_0x199e35(0x2779)][_0x199e35(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x9c8700(_0x518dbb);})[_0x443ae4(0x1c4)](function(_0x2bf47f){const _0x2a5f37=_0x443ae4;if(_0x2bf47f[_0x2a5f37(0x25c)]&&_0x2bf47f['data'][_0x2a5f37(0x1a7c)]&&_0x2bf47f[_0x2a5f37(0x25c)][_0x2a5f37(0x1a7c)][_0x2a5f37(0xfd0)]){_0x3b74b7['errors']=_0x2bf47f[_0x2a5f37(0x25c)][_0x2a5f37(0x1a7c)]||[{'message':_0x2bf47f[_0x2a5f37(0x147f)](),'type':_0x2a5f37(0x554)}];for(let _0x1c77e4=0x0;_0x1c77e4<_0x2bf47f[_0x2a5f37(0x25c)][_0x2a5f37(0x1a7c)][_0x2a5f37(0xfd0)];_0x1c77e4++){_0x2ff916[_0x2a5f37(0x218e)]({'title':_0x2bf47f[_0x2a5f37(0x25c)][_0x2a5f37(0x1a7c)][_0x1c77e4][_0x2a5f37(0x66a)],'msg':_0x2bf47f['data'][_0x2a5f37(0x1a7c)][_0x1c77e4]['message']});}}else _0x2ff916['error']({'title':_0x2bf47f[_0x2a5f37(0x291)]?'API:'+_0x2bf47f[_0x2a5f37(0x291)]+_0x2a5f37(0x1657)+_0x2bf47f['statusText']:'api.intFreshsalesAccount.update','msg':_0x2bf47f[_0x2a5f37(0x25c)]?JSON[_0x2a5f37(0x2701)](_0x2bf47f[_0x2a5f37(0x25c)][_0x2a5f37(0x155e)]):_0x2bf47f[_0x2a5f37(0x147f)]()});});}function _0x156553(_0x1b8af0){const _0x40463e=_0x21be62;_0x3b74b7[_0x40463e(0x1a7c)]=[];const _0x57b0e9=_0x3d6b63['confirm']()['title'](_0x40463e(0x1a2e))[_0x40463e(0x862)](_0x40463e(0x684))[_0x40463e(0x15ad)](_0x40463e(0x92a))['ok'](_0x40463e(0x2594))['cancel'](_0x40463e(0xde1))[_0x40463e(0x728)](_0x1b8af0);_0x3d6b63['show'](_0x57b0e9)[_0x40463e(0x1cb0)](function(){const _0x2a1d5f=_0x40463e;_0x3e55c4[_0x2a1d5f(0xc8a)][_0x2a1d5f(0x111d)]({'id':_0x3b74b7[_0x2a1d5f(0x2779)]['id']})['$promise'][_0x2a1d5f(0x1cb0)](function(){const _0x5cc905=_0x2a1d5f;_0x39641b()['remove'](_0x3b74b7[_0x5cc905(0x1d8)],{'id':_0x3b74b7[_0x5cc905(0x2779)]['id']}),_0x2ff916[_0x5cc905(0x829)]({'title':_0x5cc905(0x1977),'msg':(_0x3b74b7[_0x5cc905(0x2779)][_0x5cc905(0x16b6)]||'freshsalesAccount')+_0x5cc905(0x3f5)}),_0x9c8700(_0x3b74b7[_0x5cc905(0x2779)]);})['catch'](function(_0x2645cb){const _0x267cb2=_0x2a1d5f;if(_0x2645cb[_0x267cb2(0x25c)]&&_0x2645cb[_0x267cb2(0x25c)][_0x267cb2(0x1a7c)]&&_0x2645cb[_0x267cb2(0x25c)][_0x267cb2(0x1a7c)][_0x267cb2(0xfd0)]){_0x3b74b7[_0x267cb2(0x1a7c)]=_0x2645cb[_0x267cb2(0x25c)][_0x267cb2(0x1a7c)]||[{'message':_0x2645cb[_0x267cb2(0x147f)](),'type':'api.intFreshsalesAccount.delete'}];for(let _0x255c93=0x0;_0x255c93<_0x2645cb[_0x267cb2(0x25c)][_0x267cb2(0x1a7c)][_0x267cb2(0xfd0)];_0x255c93++){_0x2ff916['error']({'title':_0x2645cb[_0x267cb2(0x25c)][_0x267cb2(0x1a7c)][_0x255c93][_0x267cb2(0x66a)],'msg':_0x2645cb[_0x267cb2(0x25c)][_0x267cb2(0x1a7c)][_0x255c93][_0x267cb2(0x155e)]});}}else _0x2ff916[_0x267cb2(0x218e)]({'title':_0x2645cb[_0x267cb2(0x291)]?_0x267cb2(0xeb9)+_0x2645cb[_0x267cb2(0x291)]+_0x267cb2(0x1657)+_0x2645cb['statusText']:'api.intFreshsalesAccount.delete','msg':_0x2645cb[_0x267cb2(0x25c)]?JSON[_0x267cb2(0x2701)](_0x2645cb[_0x267cb2(0x25c)][_0x267cb2(0x155e)]):_0x2645cb[_0x267cb2(0x155e)]||_0x2645cb[_0x267cb2(0x147f)]()});});},function(){});}function _0x13d71e(_0x1e77db){return _0x1e77db===null?undefined:new Date(_0x1e77db);}function _0x9c8700(_0x26a6b9){const _0x96161b=_0x21be62;_0x3d6b63[_0x96161b(0x1426)](_0x26a6b9);}}const _0x56b72a=_0x54d8d4;;const _0x4a11fd=_0x5074a3['p']+_0x5537c6(0x1303);;const _0x37af8e=_0x5074a3['p']+'src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/item/dialog.html/dialog.html';;_0x3c4ccf['$inject']=[_0x5537c6(0xcb9),'$document',_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774)];function _0x3c4ccf(_0x14bad7,_0x77dd9f,_0x1c5e8f,_0x14de3b,_0x49aa85){const _0x1f0b85=_0x5537c6,_0x47619e=this;_0x47619e[_0x1f0b85(0xe76)]=_0x49aa85['getCurrentUser'](),_0x47619e[_0x1f0b85(0x2779)]={},_0x47619e[_0x1f0b85(0x1324)]={},_0x47619e[_0x1f0b85(0xa06)]=[],_0x47619e['selectedFreshsalesConfiguration']=-0x1,_0x47619e[_0x1f0b85(0x1b1a)],_0x47619e[_0x1f0b85(0x1a8e)]=_0x3f337a,_0x47619e['getFreshsalesConfiguration']=_0x2a7dc7,_0x47619e[_0x1f0b85(0x9ee)]=_0x19a206,_0x47619e[_0x1f0b85(0xb6a)]=_0x5f189c;function _0x3f337a(_0x5732e4,_0xc0ac13){const _0x1deb1c=_0x1f0b85;_0x47619e[_0x1deb1c(0x2779)]=_0x5732e4,_0x47619e[_0x1deb1c(0x1b1a)]=typeof _0xc0ac13!==_0x1deb1c(0x16b5)?_0xc0ac13:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1c5e8f['intFreshsalesAccount'][_0x1deb1c(0x618)]({'id':_0x47619e[_0x1deb1c(0x2779)]['id'],'sort':_0x1deb1c(0x282)})[_0x1deb1c(0x1d77)]['then'](function(_0x455d85){const _0x10b08e=_0x1deb1c;return _0x47619e[_0x10b08e(0xa06)]=_0x455d85[_0x10b08e(0x2214)]?_0x455d85['rows']:[],_0x47619e[_0x10b08e(0xa06)][_0x10b08e(0xfd0)]&&_0x47619e[_0x10b08e(0xef2)](0x0),_0x1c5e8f[_0x10b08e(0x1822)][_0x10b08e(0xbf7)]({'nolimit':!![],'sort':_0x10b08e(0x16b6)})[_0x10b08e(0x1d77)];})['then'](function(_0x3d007e){const _0x275457=_0x1deb1c;_0x47619e[_0x275457(0x9a9)]=_0x3d007e[_0x275457(0x2214)]?_0x3d007e[_0x275457(0x2214)]:[],_0x47619e[_0x275457(0x1a3c)]=_0x39641b()[_0x275457(0x2631)](_0x47619e[_0x275457(0x9a9)],'id');})[_0x1deb1c(0x1c4)](function(_0x53a611){const _0x2dc12a=_0x1deb1c;_0x14de3b['error']({'title':_0x53a611[_0x2dc12a(0x291)]?_0x2dc12a(0xeb9)+_0x53a611[_0x2dc12a(0x291)]+_0x2dc12a(0x1657)+_0x53a611['statusText']:'SYSTEM:GETCONFIGURATION','msg':_0x53a611[_0x2dc12a(0x25c)]?JSON[_0x2dc12a(0x2701)](_0x53a611[_0x2dc12a(0x25c)]):_0x53a611[_0x2dc12a(0x147f)]()});});}function _0x2a7dc7(_0x4d1f7f){const _0x3ca511=_0x1f0b85;_0x47619e['freshsalesConfiguration']=_0x47619e[_0x3ca511(0xa06)][_0x4d1f7f],_0x47619e['selectedFreshsalesConfiguration']=_0x4d1f7f,_0x1c5e8f[_0x3ca511(0x2085)][_0x3ca511(0x243a)]({'id':_0x47619e[_0x3ca511(0x1324)]['id']})[_0x3ca511(0x1d77)][_0x3ca511(0x1cb0)](function(_0x482c12){const _0x9461de=_0x3ca511;return _0x47619e[_0x9461de(0x2388)]=_0x482c12[_0x9461de(0x2214)]?_0x482c12[_0x9461de(0x2214)]:[],_0x1c5e8f[_0x9461de(0x2085)][_0x9461de(0xb6d)]({'id':_0x47619e[_0x9461de(0x1324)]['id']})['$promise'];})['then'](function(_0x3b141b){const _0x2ca7f7=_0x3ca511;return _0x47619e[_0x2ca7f7(0x310)]=_0x3b141b[_0x2ca7f7(0x2214)]?_0x3b141b['rows']:[],_0x1c5e8f['intFreshsalesConfiguration'][_0x2ca7f7(0xc84)]({'id':_0x47619e[_0x2ca7f7(0x1324)]['id']})[_0x2ca7f7(0x1d77)];})[_0x3ca511(0x1cb0)](function(_0x5e4fbf){const _0x59e984=_0x3ca511;_0x47619e[_0x59e984(0x355)]=_0x5e4fbf[_0x59e984(0x2214)]?_0x5e4fbf[_0x59e984(0x2214)]:[];})[_0x3ca511(0x1c4)](function(_0x1140dd){const _0x1f5fc9=_0x3ca511;_0x14de3b[_0x1f5fc9(0x218e)]({'title':_0x1140dd[_0x1f5fc9(0x291)]?_0x1f5fc9(0xeb9)+_0x1140dd[_0x1f5fc9(0x291)]+'\x20-\x20'+_0x1140dd['statusText']:_0x1f5fc9(0x1e5f),'msg':_0x1140dd[_0x1f5fc9(0x25c)]?JSON[_0x1f5fc9(0x2701)](_0x1140dd[_0x1f5fc9(0x25c)]):_0x1140dd[_0x1f5fc9(0x147f)]()});});}function _0x19a206(_0x53456c,_0x22ec75){const _0x414b1f=_0x1f0b85;_0x14bad7['show']({'controller':_0x414b1f(0x2422),'controllerAs':'vm','templateUrl':_0x4a11fd,'parent':angular['element'](_0x77dd9f[_0x414b1f(0x1ed9)]),'targetEvent':_0x53456c,'clickOutsideToClose':!![],'locals':{'freshsalesConfiguration':_0x22ec75,'configurations':_0x47619e['configurations'],'license':null,'setting':null,'crudPermissions':_0x47619e[_0x414b1f(0x1b1a)]}})[_0x414b1f(0x2e0)](function(){const _0x50aaf9=_0x414b1f;_0x47619e[_0x50aaf9(0xef2)](0x0);});}function _0x5f189c(_0x177862,_0x2df2a2){const _0x579c3b=_0x1f0b85,_0x178e5b=_0x14bad7[_0x579c3b(0x1551)]()[_0x579c3b(0x1386)](_0x579c3b(0x2909))[_0x579c3b(0x49e)](_0x579c3b(0x204d)+(_0x2df2a2[_0x579c3b(0x16b6)]||_0x579c3b(0x1324))+_0x579c3b(0x1200)+'\x20will\x20be\x20deleted.')[_0x579c3b(0x15ad)](_0x579c3b(0x233a))[_0x579c3b(0x728)](_0x177862)['ok']('OK')[_0x579c3b(0x696)](_0x579c3b(0x24ba));_0x14bad7[_0x579c3b(0xe27)](_0x178e5b)[_0x579c3b(0x1cb0)](function(){const _0x447f74=_0x579c3b;_0x1c5e8f[_0x447f74(0x2085)][_0x447f74(0x111d)]({'id':_0x2df2a2['id']})[_0x447f74(0x1d77)]['then'](function(){const _0x2839fa=_0x447f74;_0x39641b()[_0x2839fa(0x152a)](_0x47619e[_0x2839fa(0xa06)],{'id':_0x2df2a2['id']}),_0x14de3b[_0x2839fa(0x829)]({'title':_0x2839fa(0x91a),'msg':_0x2df2a2[_0x2839fa(0x16b6)]?_0x2df2a2['name']+_0x2839fa(0x3f5):''});})[_0x447f74(0x1c4)](function(_0x51c30a){const _0x4b4699=_0x447f74;_0x14de3b['error']({'title':_0x51c30a[_0x4b4699(0x291)]?_0x4b4699(0xeb9)+_0x51c30a['status']+_0x4b4699(0x1657)+_0x51c30a[_0x4b4699(0xc22)]:'SYSTEM:DELETECONFIGURATION','msg':_0x51c30a[_0x4b4699(0x25c)]?JSON[_0x4b4699(0x2701)](_0x51c30a[_0x4b4699(0x25c)]):_0x51c30a[_0x4b4699(0x147f)]()});})[_0x447f74(0x2e0)](function(){const _0x46a4a3=_0x447f74;_0x47619e[_0x46a4a3(0xef2)](0x0);});},function(){const _0x14121e=_0x579c3b;console[_0x14121e(0x1b4f)](_0x14121e(0x24ba));});}_0x47619e['selectedSubjects']=[],_0x47619e['createOrEditSubject']=_0x5bf3d5,_0x47619e['deleteSubjectConfirm']=_0x4ad493,_0x47619e[_0x1f0b85(0xf12)]=_0x597e29;function _0x5bf3d5(_0x599260,_0x263e52){const _0x15bc8f=_0x1f0b85;_0x14bad7[_0x15bc8f(0xe27)]({'controller':_0x15bc8f(0x18f0),'controllerAs':'vm','templateUrl':_0x37af8e,'parent':angular[_0x15bc8f(0x1853)](_0x77dd9f[_0x15bc8f(0x1ed9)]),'targetEvent':_0x599260,'clickOutsideToClose':!![],'locals':{'type':_0x15bc8f(0x1e5d),'item':_0x263e52,'items':_0x47619e['subjects'],'configuration':_0x47619e['freshsalesConfiguration'],'account':_0x47619e[_0x15bc8f(0x2779)],'license':null,'setting':null,'crudPermissions':_0x47619e[_0x15bc8f(0x1b1a)]}});}function _0x51b413(_0x1443c1){const _0x478118=_0x1f0b85;_0x1c5e8f[_0x478118(0x775)][_0x478118(0x111d)]({'id':_0x1443c1['id']})[_0x478118(0x1d77)]['then'](function(){const _0x506b13=_0x478118;_0x39641b()[_0x506b13(0x152a)](_0x47619e[_0x506b13(0x2388)],{'id':_0x1443c1['id']}),_0x14de3b['success']({'title':_0x506b13(0x1d11),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0x478118(0x1c4)](function(_0x3a9d37){const _0x30cfb2=_0x478118;_0x14de3b[_0x30cfb2(0x218e)]({'title':_0x3a9d37[_0x30cfb2(0x291)]?'API:'+_0x3a9d37[_0x30cfb2(0x291)]+'\x20-\x20'+_0x3a9d37[_0x30cfb2(0xc22)]:_0x30cfb2(0x13e5),'msg':_0x3a9d37[_0x30cfb2(0x25c)]?JSON[_0x30cfb2(0x2701)](_0x3a9d37[_0x30cfb2(0x25c)]):_0x3a9d37[_0x30cfb2(0x147f)]()});});}function _0x4ad493(_0x11c056,_0x18c3d6){const _0x578645=_0x1f0b85,_0x2588db=_0x14bad7['confirm']()[_0x578645(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')['htmlContent'](_0x578645(0x14ee)+_0x578645(0x1b6))[_0x578645(0x15ad)](_0x578645(0xbc3))[_0x578645(0x728)](_0x11c056)['ok']('OK')[_0x578645(0x696)](_0x578645(0x24ba));_0x14bad7['show'](_0x2588db)[_0x578645(0x1cb0)](function(){_0x51b413(_0x18c3d6);},function(){const _0xdaa623=_0x578645;console[_0xdaa623(0x1b4f)](_0xdaa623(0x24ba));});}function _0x597e29(_0x31852e){const _0x538463=_0x1f0b85,_0x2c0504=_0x14bad7['confirm']()[_0x538463(0x1386)](_0x538463(0x1f8e))[_0x538463(0x49e)](_0x538463(0x204d)+_0x47619e[_0x538463(0x4df)][_0x538463(0xfd0)]+_0x538463(0x1d6c)+_0x538463(0x1b6))[_0x538463(0x15ad)](_0x538463(0x222e))[_0x538463(0x728)](_0x31852e)['ok']('OK')[_0x538463(0x696)]('CANCEL');_0x14bad7[_0x538463(0xe27)](_0x2c0504)[_0x538463(0x1cb0)](function(){const _0x36f412=_0x538463;_0x47619e[_0x36f412(0x4df)][_0x36f412(0xf90)](function(_0x19850c){_0x51b413(_0x19850c);}),_0x47619e['selectedSubjects']=[];});}_0x47619e[_0x1f0b85(0xac6)]=[],_0x47619e[_0x1f0b85(0x14c7)]=_0x512b75,_0x47619e[_0x1f0b85(0xc09)]=_0x599590,_0x47619e[_0x1f0b85(0x2931)]=_0x3f7c3b;function _0x512b75(_0x225129,_0xc25e8a){const _0x3563c6=_0x1f0b85;_0x14bad7[_0x3563c6(0xe27)]({'controller':_0x3563c6(0x18f0),'controllerAs':'vm','templateUrl':_0x37af8e,'parent':angular[_0x3563c6(0x1853)](_0x77dd9f[_0x3563c6(0x1ed9)]),'targetEvent':_0x225129,'clickOutsideToClose':!![],'locals':{'type':_0x3563c6(0x2c1),'item':_0xc25e8a,'items':_0x47619e[_0x3563c6(0x310)],'configuration':_0x47619e['freshsalesConfiguration'],'account':_0x47619e[_0x3563c6(0x2779)],'license':null,'setting':null,'crudPermissions':_0x47619e[_0x3563c6(0x1b1a)]}});}function _0x443a03(_0x1b005d){const _0x20b58d=_0x1f0b85;_0x1c5e8f[_0x20b58d(0x775)][_0x20b58d(0x111d)]({'id':_0x1b005d['id']})['$promise']['then'](function(){const _0x34dbcb=_0x20b58d;_0x39641b()[_0x34dbcb(0x152a)](_0x47619e['descriptions'],{'id':_0x1b005d['id']}),_0x14de3b[_0x34dbcb(0x829)]({'title':_0x34dbcb(0x24c0),'msg':_0x34dbcb(0xb59)});})[_0x20b58d(0x1c4)](function(_0x3562d7){const _0x2ce6da=_0x20b58d;_0x14de3b['error']({'title':_0x3562d7[_0x2ce6da(0x291)]?_0x2ce6da(0xeb9)+_0x3562d7[_0x2ce6da(0x291)]+_0x2ce6da(0x1657)+_0x3562d7['statusText']:_0x2ce6da(0x13e5),'msg':_0x3562d7[_0x2ce6da(0x25c)]?JSON[_0x2ce6da(0x2701)](_0x3562d7[_0x2ce6da(0x25c)]):_0x3562d7['toString']()});});}function _0x599590(_0x112d72,_0x3925ae){const _0xa79c77=_0x1f0b85,_0x4d34e4=_0x14bad7[_0xa79c77(0x1551)]()[_0xa79c77(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?')[_0xa79c77(0x49e)](_0xa79c77(0x18b8)+'\x20will\x20be\x20deleted.')[_0xa79c77(0x15ad)](_0xa79c77(0x103d))['targetEvent'](_0x112d72)['ok']('OK')[_0xa79c77(0x696)](_0xa79c77(0x24ba));_0x14bad7[_0xa79c77(0xe27)](_0x4d34e4)[_0xa79c77(0x1cb0)](function(){_0x443a03(_0x3925ae);},function(){const _0x31c525=_0xa79c77;console[_0x31c525(0x1b4f)](_0x31c525(0x24ba));});}function _0x3f7c3b(_0xef1b13){const _0x6e14c3=_0x1f0b85,_0x1ecec8=_0x14bad7['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')[_0x6e14c3(0x49e)](_0x6e14c3(0x204d)+_0x47619e[_0x6e14c3(0xac6)]['length']+'\x20selected'+_0x6e14c3(0x1b6))[_0x6e14c3(0x15ad)](_0x6e14c3(0x1828))[_0x6e14c3(0x728)](_0xef1b13)['ok']('OK')[_0x6e14c3(0x696)]('CANCEL');_0x14bad7[_0x6e14c3(0xe27)](_0x1ecec8)[_0x6e14c3(0x1cb0)](function(){const _0x6a7a57=_0x6e14c3;_0x47619e[_0x6a7a57(0xac6)]['forEach'](function(_0x25e72c){_0x443a03(_0x25e72c);}),_0x47619e[_0x6a7a57(0xac6)]=[];});}_0x47619e[_0x1f0b85(0x9b2)]=[],_0x47619e[_0x1f0b85(0x5e9)]=_0xc81681,_0x47619e[_0x1f0b85(0x2398)]=_0x3088b1,_0x47619e[_0x1f0b85(0xe40)]=_0x57bfbc;function _0xc81681(_0x4eb702,_0x2ad65f){const _0x536179=_0x1f0b85;_0x14bad7['show']({'controller':_0x536179(0x18f0),'controllerAs':'vm','templateUrl':_0x37af8e,'parent':angular[_0x536179(0x1853)](_0x77dd9f[_0x536179(0x1ed9)]),'targetEvent':_0x4eb702,'clickOutsideToClose':!![],'locals':{'type':_0x536179(0x2198),'item':_0x2ad65f,'items':_0x47619e[_0x536179(0x355)],'configuration':_0x47619e['freshsalesConfiguration'],'account':_0x47619e[_0x536179(0x2779)],'license':null,'setting':null,'crudPermissions':_0x47619e[_0x536179(0x1b1a)]}});}function _0x183db3(_0x40c009){const _0x1ad256=_0x1f0b85;_0x1c5e8f[_0x1ad256(0x775)][_0x1ad256(0x111d)]({'id':_0x40c009['id']})[_0x1ad256(0x1d77)]['then'](function(){const _0x2bfe6f=_0x1ad256;_0x39641b()[_0x2bfe6f(0x152a)](_0x47619e[_0x2bfe6f(0x355)],{'id':_0x40c009['id']}),_0x14de3b[_0x2bfe6f(0x829)]({'title':'Field\x20deleted!','msg':_0x2bfe6f(0x2688)});})[_0x1ad256(0x1c4)](function(_0x3c239a){const _0x4d3934=_0x1ad256;_0x14de3b[_0x4d3934(0x218e)]({'title':_0x3c239a[_0x4d3934(0x291)]?_0x4d3934(0xeb9)+_0x3c239a[_0x4d3934(0x291)]+'\x20-\x20'+_0x3c239a[_0x4d3934(0xc22)]:_0x4d3934(0x13e5),'msg':_0x3c239a[_0x4d3934(0x25c)]?JSON['stringify'](_0x3c239a[_0x4d3934(0x25c)]):_0x3c239a['toString']()});});}function _0x3088b1(_0x54df2a,_0xce695f){const _0x18c135=_0x1f0b85,_0x520bd3=_0x14bad7[_0x18c135(0x1551)]()[_0x18c135(0x1386)](_0x18c135(0x21a9))[_0x18c135(0x49e)](_0x18c135(0xf1d)+_0x18c135(0x1b6))[_0x18c135(0x15ad)]('delete\x20field')[_0x18c135(0x728)](_0x54df2a)['ok']('OK')[_0x18c135(0x696)](_0x18c135(0x24ba));_0x14bad7[_0x18c135(0xe27)](_0x520bd3)['then'](function(){_0x183db3(_0xce695f);},function(){const _0x1db06f=_0x18c135;console['log'](_0x1db06f(0x24ba));});}function _0x57bfbc(_0x3893d2){const _0x2d0622=_0x1f0b85,_0x47265e=_0x14bad7[_0x2d0622(0x1551)]()[_0x2d0622(0x1386)](_0x2d0622(0x983))['htmlContent'](''+_0x47619e[_0x2d0622(0x9b2)][_0x2d0622(0xfd0)]+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20fields')['targetEvent'](_0x3893d2)['ok']('OK')[_0x2d0622(0x696)](_0x2d0622(0x24ba));_0x14bad7[_0x2d0622(0xe27)](_0x47265e)[_0x2d0622(0x1cb0)](function(){const _0x5d2825=_0x2d0622;_0x47619e[_0x5d2825(0x9b2)][_0x5d2825(0xf90)](function(_0x857ed2){_0x183db3(_0x857ed2);}),_0x47619e[_0x5d2825(0x9b2)]=[];});}}const _0x5416a1=_0x3c4ccf;;_0x5e29b7[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state',_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0xa06),'freshsalesConfiguration',_0x5537c6(0x142b),'Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x5e29b7(_0x354292,_0x38b75d,_0x3ee0de,_0x15c7ce,_0x48d31f,_0xc09368,_0x2e1dcb,_0x5d1657,_0x40d046,_0x4a8092,_0x5aa655,_0x511231,_0x42162b,_0x46a099){const _0x4e92d8=_0x5537c6,_0x2d732a=this;_0x2d732a[_0x4e92d8(0xe76)]=_0x5aa655[_0x4e92d8(0x21e8)](),_0x2d732a['errors']=[],_0x2d732a[_0x4e92d8(0x9ca)]=_0x42162b,_0x2d732a[_0x4e92d8(0x8a5)]=_0x511231,_0x2d732a['crudPermissions']=_0x46a099,_0x2d732a['hasModulePermissions']={},_0x2d732a['passwordPattern']=_0x2d732a[_0x4e92d8(0x9ca)]&&_0x2d732a['setting'][_0x4e92d8(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2d732a['title']=_0x4e92d8(0x205b),_0x2d732a[_0x4e92d8(0x1324)]=angular['copy'](_0x40d046),_0x2d732a[_0x4e92d8(0xa06)]=_0x5d1657,_0x2d732a['newFreshsalesConfiguration']=![];!_0x2d732a[_0x4e92d8(0x1324)]&&(_0x2d732a[_0x4e92d8(0x1324)]={'channel':_0x4e92d8(0x1fd4),'type':_0x4e92d8(0x26c0)},_0x2d732a[_0x4e92d8(0x1386)]=_0x4e92d8(0x237a),_0x2d732a[_0x4e92d8(0x18da)]=!![]);_0x2d732a['addNewFreshsalesConfiguration']=_0x3ed882,_0x2d732a[_0x4e92d8(0x14b0)]=_0x381bae,_0x2d732a[_0x4e92d8(0xb6a)]=_0x192b6a,_0x2d732a[_0x4e92d8(0x2c4)]=_0xa4203a,_0x2d732a[_0x4e92d8(0xda0)]=_0xcd2be9;function _0x3ed882(){const _0x39733d=_0x4e92d8;_0x2d732a[_0x39733d(0x1a7c)]=[],_0x4a8092[_0x39733d(0xc8a)][_0x39733d(0x1070)]({'id':_0x38b75d['params']['id']},_0x2d732a['freshsalesConfiguration'])[_0x39733d(0x1d77)][_0x39733d(0x1cb0)](function(_0x5160f0){const _0x176624=_0x39733d;_0x2d732a[_0x176624(0xa06)]['unshift'](_0x5160f0['toJSON']()),_0x2e1dcb[_0x176624(0x829)]({'title':_0x176624(0x2945),'msg':_0x2d732a[_0x176624(0x1324)][_0x176624(0x16b6)]?_0x2d732a[_0x176624(0x1324)]['name']+'\x20has\x20been\x20created!':''}),_0xcd2be9(_0x5160f0);})['catch'](function(_0x19d03a){const _0x5ffad6=_0x39733d;if(_0x19d03a['data']&&_0x19d03a[_0x5ffad6(0x25c)][_0x5ffad6(0x1a7c)]&&_0x19d03a[_0x5ffad6(0x25c)][_0x5ffad6(0x1a7c)][_0x5ffad6(0xfd0)]){_0x2d732a[_0x5ffad6(0x1a7c)]=_0x19d03a[_0x5ffad6(0x25c)][_0x5ffad6(0x1a7c)]||[{'message':_0x19d03a[_0x5ffad6(0x147f)](),'type':_0x5ffad6(0x2488)}];for(let _0x2db5f5=0x0;_0x2db5f5<_0x19d03a[_0x5ffad6(0x25c)][_0x5ffad6(0x1a7c)][_0x5ffad6(0xfd0)];_0x2db5f5+=0x1){_0x2e1dcb['error']({'title':_0x19d03a[_0x5ffad6(0x25c)]['errors'][_0x2db5f5]['type'],'msg':_0x19d03a[_0x5ffad6(0x25c)]['errors'][_0x2db5f5]['message']});}}else _0x2e1dcb[_0x5ffad6(0x218e)]({'title':_0x19d03a[_0x5ffad6(0x291)]?'API:'+_0x19d03a[_0x5ffad6(0x291)]+_0x5ffad6(0x1657)+_0x19d03a[_0x5ffad6(0xc22)]:_0x5ffad6(0x2488),'msg':_0x19d03a[_0x5ffad6(0x25c)]?JSON['stringify'](_0x19d03a[_0x5ffad6(0x25c)]['message']):_0x19d03a[_0x5ffad6(0x147f)]()});});}function _0x381bae(){const _0x4d8ca9=_0x4e92d8;_0x2d732a[_0x4d8ca9(0x1a7c)]=[],_0x4a8092[_0x4d8ca9(0x2085)][_0x4d8ca9(0x687)]({'id':_0x2d732a[_0x4d8ca9(0x1324)]['id']},_0x2d732a[_0x4d8ca9(0x1324)])[_0x4d8ca9(0x1d77)][_0x4d8ca9(0x1cb0)](function(_0x24ff3f){const _0x558813=_0x4d8ca9,_0x3a165e=_0x39641b()['find'](_0x2d732a[_0x558813(0xa06)],{'id':_0x24ff3f['id']});_0x3a165e&&_0x39641b()[_0x558813(0x9c1)](_0x3a165e,_0x39641b()[_0x558813(0x169b)](_0x24ff3f[_0x558813(0x19b2)](),_0x39641b()[_0x558813(0x1be5)](_0x3a165e))),_0x2e1dcb['success']({'title':_0x558813(0x2162),'msg':_0x2d732a[_0x558813(0x1324)][_0x558813(0x16b6)]?_0x2d732a[_0x558813(0x1324)][_0x558813(0x16b6)]+_0x558813(0xedb):''}),_0xcd2be9(_0x24ff3f);})['catch'](function(_0x535d37){const _0x2aff5c=_0x4d8ca9;if(_0x535d37['data']&&_0x535d37['data'][_0x2aff5c(0x1a7c)]&&_0x535d37[_0x2aff5c(0x25c)][_0x2aff5c(0x1a7c)][_0x2aff5c(0xfd0)]){_0x2d732a['errors']=_0x535d37[_0x2aff5c(0x25c)][_0x2aff5c(0x1a7c)]||[{'message':_0x535d37['toString'](),'type':_0x2aff5c(0x15f5)}];for(let _0x3e0e81=0x0;_0x3e0e81<_0x535d37[_0x2aff5c(0x25c)][_0x2aff5c(0x1a7c)][_0x2aff5c(0xfd0)];_0x3e0e81++){_0x2e1dcb[_0x2aff5c(0x218e)]({'title':_0x535d37[_0x2aff5c(0x25c)]['errors'][_0x3e0e81][_0x2aff5c(0x66a)],'msg':_0x535d37[_0x2aff5c(0x25c)][_0x2aff5c(0x1a7c)][_0x3e0e81][_0x2aff5c(0x155e)]});}}else _0x2e1dcb['error']({'title':_0x535d37[_0x2aff5c(0x291)]?'API:'+_0x535d37['status']+_0x2aff5c(0x1657)+_0x535d37[_0x2aff5c(0xc22)]:_0x2aff5c(0x15f5),'msg':_0x535d37['data']?JSON[_0x2aff5c(0x2701)](_0x535d37[_0x2aff5c(0x25c)][_0x2aff5c(0x155e)]):_0x535d37[_0x2aff5c(0x147f)]()});});}function _0x192b6a(_0x383b69){const _0x508c32=_0x4e92d8;_0x2d732a[_0x508c32(0x1a7c)]=[];const _0x5cbc0e=_0x15c7ce['confirm']()[_0x508c32(0x1386)](_0x508c32(0x1a2e))[_0x508c32(0x862)](_0x508c32(0x142d))['ariaLabel']('Delete\x20FreshsalesConfiguration')['ok'](_0x508c32(0x2594))[_0x508c32(0x696)](_0x508c32(0xde1))[_0x508c32(0x728)](_0x383b69);_0x15c7ce['show'](_0x5cbc0e)['then'](function(){const _0x5b1f6d=_0x508c32;_0x4a8092[_0x5b1f6d(0x2085)][_0x5b1f6d(0x111d)]({'id':_0x2d732a[_0x5b1f6d(0x1324)]['id']})[_0x5b1f6d(0x1d77)][_0x5b1f6d(0x1cb0)](function(){const _0x38b151=_0x5b1f6d;_0x39641b()['remove'](_0x2d732a[_0x38b151(0xa06)],{'id':_0x2d732a[_0x38b151(0x1324)]['id']}),_0x2e1dcb[_0x38b151(0x829)]({'title':_0x38b151(0xcc6),'msg':(_0x2d732a[_0x38b151(0x1324)]['name']||_0x38b151(0x1324))+'\x20has\x20been\x20deleted!'}),_0xcd2be9(_0x2d732a[_0x38b151(0x1324)]);})[_0x5b1f6d(0x1c4)](function(_0x43bd21){const _0x4323de=_0x5b1f6d;if(_0x43bd21['data']&&_0x43bd21[_0x4323de(0x25c)][_0x4323de(0x1a7c)]&&_0x43bd21[_0x4323de(0x25c)][_0x4323de(0x1a7c)][_0x4323de(0xfd0)]){_0x2d732a[_0x4323de(0x1a7c)]=_0x43bd21[_0x4323de(0x25c)]['errors']||[{'message':_0x43bd21[_0x4323de(0x147f)](),'type':_0x4323de(0x263f)}];for(let _0x10b47c=0x0;_0x10b47c<_0x43bd21[_0x4323de(0x25c)][_0x4323de(0x1a7c)]['length'];_0x10b47c++){_0x2e1dcb[_0x4323de(0x218e)]({'title':_0x43bd21[_0x4323de(0x25c)][_0x4323de(0x1a7c)][_0x10b47c][_0x4323de(0x66a)],'msg':_0x43bd21[_0x4323de(0x25c)][_0x4323de(0x1a7c)][_0x10b47c]['message']});}}else _0x2e1dcb[_0x4323de(0x218e)]({'title':_0x43bd21[_0x4323de(0x291)]?_0x4323de(0xeb9)+_0x43bd21['status']+_0x4323de(0x1657)+_0x43bd21['statusText']:_0x4323de(0x263f),'msg':_0x43bd21[_0x4323de(0x25c)]?JSON[_0x4323de(0x2701)](_0x43bd21[_0x4323de(0x25c)][_0x4323de(0x155e)]):_0x43bd21[_0x4323de(0x155e)]||_0x43bd21[_0x4323de(0x147f)]()});});},function(){});}function _0xa4203a(_0x320d5f){return _0x320d5f===null?undefined:new Date(_0x320d5f);}function _0xcd2be9(_0x4bdfcc){const _0x14631d=_0x4e92d8;_0x15c7ce[_0x14631d(0x1426)](_0x4bdfcc);}}const _0x4e5155=_0x5e29b7;;_0x3b125e[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),'$location','$mdDialog',_0x5537c6(0x9bf),_0x5537c6(0x2718),_0x5537c6(0x122f),_0x5537c6(0x583),_0x5537c6(0x1539),'type',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x3b125e(_0x2ba15e,_0x3878ed,_0x463461,_0x5ee64b,_0x1d411f,_0x4b67cb,_0x14f067,_0x5479d0,_0x30306d,_0x17ad54,_0x2941d2,_0x326d27,_0x2c66df){const _0x460c3b=_0x5537c6,_0x2dc56a=this;_0x2dc56a[_0x460c3b(0xe76)]=_0x326d27[_0x460c3b(0x21e8)](),_0x2dc56a['errors']=[],_0x2dc56a[_0x460c3b(0x1386)]='INTEGRATIONS.EDIT_'+_0x39641b()[_0x460c3b(0x1002)](_0x17ad54),_0x2dc56a[_0x460c3b(0x583)]=angular['copy'](_0x5479d0),_0x2dc56a[_0x460c3b(0x122f)]=_0x14f067,_0x2dc56a[_0x460c3b(0x66a)]=_0x17ad54,_0x2dc56a[_0x460c3b(0x1b1a)]=_0x2c66df,_0x2dc56a[_0x460c3b(0x1202)]=![];!_0x2dc56a[_0x460c3b(0x583)]&&(_0x2dc56a[_0x460c3b(0x583)]={'type':_0x460c3b(0x1518)},_0x2dc56a[_0x460c3b(0x583)][_0x39641b()[_0x460c3b(0x432)](_0x17ad54)+'Id']=_0x4b67cb['id'],_0x2dc56a[_0x460c3b(0x1386)]=_0x460c3b(0x15dd)+_0x39641b()[_0x460c3b(0x1002)](_0x17ad54),_0x2dc56a[_0x460c3b(0x1202)]=!![]);_0x2dc56a[_0x460c3b(0x1286)]=_0x1d9034,_0x2dc56a['saveItem']=_0x26bf22,_0x2dc56a[_0x460c3b(0x1177)]=_0x3cd146,_0x2dc56a[_0x460c3b(0x2f6)]=_0x55deb1,_0x2dc56a['closeDialog']=_0x7729a,_0x2941d2[_0x460c3b(0x1822)][_0x460c3b(0xbf7)]({'nolimit':!![]})[_0x460c3b(0x1d77)][_0x460c3b(0x1cb0)](function(_0x2bc916){const _0x32e44f=_0x460c3b;return _0x2dc56a[_0x32e44f(0x9a9)]=_0x2bc916[_0x32e44f(0x2214)]?_0x2bc916[_0x32e44f(0x2214)]:[],_0x2941d2['voiceAgentReport'][_0x32e44f(0x1e57)]()[_0x32e44f(0x1d77)];})[_0x460c3b(0x1cb0)](function(_0x7298dc){const _0x1336af=_0x460c3b;return _0x2dc56a[_0x1336af(0xbf1)]=_0x39641b()[_0x1336af(0x91f)](_0x39641b()[_0x1336af(0x1be5)](_0x7298dc),[_0x1336af(0x1d77),_0x1336af(0x248e),'createdAt',_0x1336af(0x27ba),_0x1336af(0x1867)]),_0x2dc56a[_0x1336af(0xbf1)][_0x1336af(0x2785)]('recordingURL'),_0x2941d2[_0x1336af(0x593)][_0x1336af(0x1e57)]()[_0x1336af(0x1d77)];})[_0x460c3b(0x1cb0)](function(_0x193ade){const _0x341298=_0x460c3b;_0x2dc56a[_0x341298(0x1639)]=_0x39641b()[_0x341298(0x91f)](_0x39641b()[_0x341298(0x1be5)](_0x193ade),['$promise',_0x341298(0x248e),_0x341298(0x24cb),'updatedAt',_0x341298(0x1867)]),_0x2dc56a[_0x341298(0x1639)][_0x341298(0x2785)](_0x341298(0x2110));})['catch'](function(_0x15c95b){const _0x5dfcf6=_0x460c3b;_0x1d411f[_0x5dfcf6(0x218e)]({'title':_0x15c95b[_0x5dfcf6(0x291)]?_0x5dfcf6(0xeb9)+_0x15c95b[_0x5dfcf6(0x291)]+_0x5dfcf6(0x1657)+_0x15c95b[_0x5dfcf6(0xc22)]:'SYSTEM:GETVARIABLES','msg':_0x15c95b['data']?JSON[_0x5dfcf6(0x2701)](_0x15c95b[_0x5dfcf6(0x25c)]):_0x15c95b[_0x5dfcf6(0x147f)]()});}),_0x2941d2[_0x460c3b(0xc8a)][_0x460c3b(0xc84)]({'id':_0x30306d['id'],'ticketType':_0x4b67cb[_0x460c3b(0x161)]?_0x4b67cb[_0x460c3b(0x161)]:undefined})[_0x460c3b(0x1d77)][_0x460c3b(0x1cb0)](function(_0x57b6d7){const _0x43d6dc=_0x460c3b;_0x2dc56a[_0x43d6dc(0x1a28)]=!![],_0x2dc56a[_0x43d6dc(0x355)]=_0x57b6d7[_0x43d6dc(0x2214)]?_0x57b6d7[_0x43d6dc(0x2214)]:[],_0x2dc56a[_0x43d6dc(0x583)][_0x43d6dc(0x1e50)]&&(_0x2dc56a[_0x43d6dc(0x1d5a)]=_0x39641b()['find'](_0x2dc56a[_0x43d6dc(0x355)],{'id':_0x2dc56a[_0x43d6dc(0x583)][_0x43d6dc(0x1e50)]}));})['catch'](function(_0x49ff19){const _0x515da7=_0x460c3b;_0x2dc56a[_0x515da7(0x1a28)]=![],console['error'](_0x49ff19);});function _0x1d9034(){const _0x448cee=_0x460c3b;_0x2dc56a['errors']=[],_0x2dc56a[_0x448cee(0x1d5a)]&&(_0x2dc56a['item'][_0x448cee(0x1e50)]=_0x2dc56a[_0x448cee(0x1d5a)]['id'],_0x2dc56a[_0x448cee(0x583)][_0x448cee(0xc1f)]=_0x2dc56a['customField'][_0x448cee(0x16b6)],_0x2dc56a[_0x448cee(0x583)][_0x448cee(0x1d5a)]=_0x2dc56a['customField'][_0x448cee(0x197c)]),_0x2941d2[_0x448cee(0x775)][_0x448cee(0x1c3f)](_0x2dc56a[_0x448cee(0x583)])[_0x448cee(0x1d77)][_0x448cee(0x1cb0)](function(_0x55e4a0){const _0x1d5904=_0x448cee;_0x2dc56a[_0x1d5904(0x122f)]['unshift'](_0x55e4a0),_0x1d411f['success']({'title':_0x39641b()['capitalize'](_0x17ad54)+_0x1d5904(0x220c),'msg':_0x39641b()[_0x1d5904(0x432)](_0x17ad54)+'\x20has\x20been\x20created!'}),_0x7729a();})[_0x448cee(0x1c4)](function(_0x3bb138){const _0x5db75f=_0x448cee;console[_0x5db75f(0x218e)](_0x3bb138),_0x2dc56a['errors']=_0x3bb138[_0x5db75f(0x25c)][_0x5db75f(0x1a7c)]||[{'message':_0x3bb138['toString'](),'type':'api.item.save'}];});}function _0x26bf22(){const _0x9a924b=_0x460c3b;_0x2dc56a[_0x9a924b(0x1a7c)]=[],_0x2dc56a[_0x9a924b(0x1d5a)]&&(_0x2dc56a[_0x9a924b(0x583)][_0x9a924b(0x1e50)]=_0x2dc56a[_0x9a924b(0x1d5a)]['id'],_0x2dc56a[_0x9a924b(0x583)][_0x9a924b(0xc1f)]=_0x2dc56a[_0x9a924b(0x1d5a)][_0x9a924b(0x16b6)],_0x2dc56a[_0x9a924b(0x583)]['customField']=_0x2dc56a[_0x9a924b(0x1d5a)][_0x9a924b(0x197c)]),_0x2941d2[_0x9a924b(0x775)][_0x9a924b(0x687)]({'id':_0x2dc56a[_0x9a924b(0x583)]['id']},_0x2dc56a[_0x9a924b(0x583)])[_0x9a924b(0x1d77)][_0x9a924b(0x1cb0)](function(_0x3bfb03){const _0x5725be=_0x9a924b,_0x4eb2f1=_0x39641b()[_0x5725be(0x13b4)](_0x2dc56a[_0x5725be(0x122f)],{'id':_0x3bfb03['id']});_0x4eb2f1&&_0x39641b()[_0x5725be(0x9c1)](_0x4eb2f1,_0x3bfb03),_0x1d411f[_0x5725be(0x829)]({'title':_0x39641b()[_0x5725be(0x432)](_0x17ad54)+_0x5725be(0xaf6),'msg':_0x39641b()[_0x5725be(0x432)](_0x17ad54)+_0x5725be(0xedb)}),_0x7729a();})[_0x9a924b(0x1c4)](function(_0x518e7f){const _0x2b56a7=_0x9a924b;console[_0x2b56a7(0x218e)](_0x518e7f),_0x2dc56a[_0x2b56a7(0x1a7c)]=_0x518e7f[_0x2b56a7(0x25c)]['errors']||[{'message':_0x518e7f[_0x2b56a7(0x147f)](),'type':_0x2b56a7(0x197e)}];});}function _0x3cd146(_0x4a92d0){const _0x13cf72=_0x460c3b;_0x2dc56a[_0x13cf72(0x1a7c)]=[];const _0x57f91d=_0x5ee64b[_0x13cf72(0x1551)]()[_0x13cf72(0x1386)](_0x13cf72(0x1a2e))[_0x13cf72(0x862)](_0x13cf72(0xd4c)+_0x17ad54+_0x13cf72(0x1b6))[_0x13cf72(0x15ad)](_0x13cf72(0x1f6a)+_0x39641b()[_0x13cf72(0x432)](_0x17ad54))['ok'](_0x13cf72(0x2594))['cancel']('Cancel')[_0x13cf72(0x728)](_0x4a92d0);_0x5ee64b['show'](_0x57f91d)[_0x13cf72(0x1cb0)](function(){const _0x308222=_0x13cf72;_0x2941d2[_0x308222(0x775)][_0x308222(0x111d)]({'id':_0x2dc56a[_0x308222(0x583)]['id']})[_0x308222(0x1d77)]['then'](function(){const _0x184eb6=_0x308222;_0x39641b()[_0x184eb6(0x152a)](_0x2dc56a[_0x184eb6(0x122f)],{'id':_0x2dc56a[_0x184eb6(0x583)]['id']}),_0x1d411f[_0x184eb6(0x829)]({'title':_0x39641b()[_0x184eb6(0x432)](_0x17ad54)+_0x184eb6(0x1621),'msg':_0x39641b()[_0x184eb6(0x432)](_0x17ad54)+_0x184eb6(0x3f5)}),_0x7729a();})['catch'](function(_0x219111){const _0x42a14d=_0x308222;console[_0x42a14d(0x218e)](_0x219111),_0x2dc56a[_0x42a14d(0x1a7c)]=_0x219111[_0x42a14d(0x25c)][_0x42a14d(0x1a7c)]||[{'message':_0x219111[_0x42a14d(0x147f)](),'type':'api.item.delete'}];});},function(){});}function _0x55deb1(){const _0x39be10=_0x460c3b;return _0x2dc56a[_0x39be10(0x583)][_0x39be10(0x1e71)]!==undefined?_0x2dc56a[_0x39be10(0x583)][_0x39be10(0x1e71)]:_0x39be10(0x7c8);}function _0x7729a(){const _0xa1e65a=_0x460c3b;_0x5ee64b[_0xa1e65a(0x1426)]();}}const _0x4682e9=_0x3b125e;;_0x24d082[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog',_0x5537c6(0x22bf),'$translate',_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x2779),_0x5537c6(0x2199)];function _0x24d082(_0x6562d2,_0x1c59f2,_0x1a6d45,_0x3114d8,_0xdd438f,_0x195303,_0x5095ce,_0x244a54,_0x45b875,_0x2b0ab7,_0x5aef5f,_0x1d4589){const _0x21b2b3=_0x5537c6,_0x13611e=this;_0x13611e['currentUser']=_0x2b0ab7[_0x21b2b3(0x21e8)](),_0x13611e['license']=_0x195303,_0x13611e['setting']=_0x5095ce,_0x13611e[_0x21b2b3(0x1b0c)]=_0x13611e[_0x21b2b3(0x9ca)][_0x21b2b3(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x13611e[_0x21b2b3(0x2404)]=_0x1c59f2[_0x21b2b3(0x2276)]()+_0x21b2b3(0x138b)+_0x1c59f2['host'](),_0x13611e[_0x21b2b3(0x2779)]=_0x5aef5f||_0x6562d2[_0x21b2b3(0x1dfe)][_0x21b2b3(0x2779)]||{},_0x13611e[_0x21b2b3(0x2199)]=_0x1d4589&&_0x1d4589[_0x21b2b3(0x184d)]==0x1?_0x1d4589[_0x21b2b3(0x2214)][0x0]:null,_0x13611e[_0x21b2b3(0x1b1a)]=_0x2b0ab7[_0x21b2b3(0x14ea)](_0x13611e[_0x21b2b3(0x2199)]?_0x13611e['userProfileSection'][_0x21b2b3(0x1b1a)]:null),_0x13611e['hasModulePermissions']={},_0x13611e[_0x21b2b3(0x8ec)]=_0x6562d2[_0x21b2b3(0x1dfe)][_0x21b2b3(0x291e)]||0x0,_0x13611e['alert']=_0x45b875['info'],_0x13611e[_0x21b2b3(0x16b9)]=_0x96cc6a,_0x13611e[_0x21b2b3(0x2780)]=_0x1ace05;function _0x96cc6a(){const _0x29a979=_0x21b2b3;_0x6562d2['go']('app.integrations.freshsalesAccounts',{},{'reload':_0x29a979(0x1ffa)});}function _0x1ace05(){const _0x103c1b=_0x21b2b3;_0x244a54[_0x103c1b(0xc8a)]['update']({'id':_0x13611e[_0x103c1b(0x2779)]['id']},_0x13611e[_0x103c1b(0x2779)])[_0x103c1b(0x1d77)][_0x103c1b(0x1cb0)](function(){const _0x4b78d8=_0x103c1b;_0x45b875[_0x4b78d8(0x829)]({'title':_0x4b78d8(0x25f3),'msg':_0x13611e['freshsalesAccount']['name']?_0x13611e['freshsalesAccount'][_0x4b78d8(0x16b6)]+_0x4b78d8(0x1068):''});})[_0x103c1b(0x1c4)](function(_0x3c3a52){const _0x293b68=_0x103c1b;_0x45b875[_0x293b68(0x218e)]({'title':_0x3c3a52['status']?_0x293b68(0xeb9)+_0x3c3a52[_0x293b68(0x291)]+_0x293b68(0x1657)+_0x3c3a52[_0x293b68(0xc22)]:_0x293b68(0x92d),'msg':_0x3c3a52[_0x293b68(0x25c)]?JSON[_0x293b68(0x2701)](_0x3c3a52['data']):_0x3c3a52['toString']()});});}}const _0x399486=_0x24d082;;const _0x41e9df=_0x5074a3['p']+'src/js/modules/main/apps/integrations/views/freshsalesAccounts/create/dialog.html/dialog.html';;_0x1c4ef7['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x1d8),_0x5537c6(0x44a),_0x5537c6(0x2199),'api','msUtils','toasty',_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x1c4ef7(_0x3f67c0,_0x30dddf,_0x40553b,_0x32e59f,_0x48903e,_0x49f600,_0x2e162a,_0x5382d4,_0x325f94,_0x174b31,_0x1bce59,_0x2a042b,_0x4b493d,_0x10aefd,_0x36b58c,_0x4ce6f5,_0x877e3a){const _0x238b56=_0x5537c6,_0x4e3846=this;_0x4e3846['license']=_0x4ce6f5,_0x4e3846[_0x238b56(0x9ca)]=_0x877e3a,_0x4e3846[_0x238b56(0xe76)]=_0x36b58c[_0x238b56(0x21e8)](),_0x4e3846[_0x238b56(0x1d8)]=_0x325f94||{'count':0x0,'rows':[]},_0x4e3846[_0x238b56(0x44a)]=_0x174b31,_0x4e3846['userProfileSection']=_0x1bce59&&_0x1bce59['count']==0x1?_0x1bce59[_0x238b56(0x2214)][0x0]:null,_0x4e3846[_0x238b56(0x1b1a)]=_0x36b58c[_0x238b56(0x14ea)](_0x4e3846[_0x238b56(0x2199)]?_0x4e3846['userProfileSection'][_0x238b56(0x1b1a)]:null),_0x4e3846['table']=_0x238b56(0x1d8),_0x4e3846['listOrder']='',_0x4e3846['listOrderAsc']=null,_0x4e3846[_0x238b56(0x1475)]=[],_0x4e3846['query']={'fields':_0x238b56(0x4d0),'limit':0xa,'page':0x1},_0x4e3846['editstate']=_0x90b705,_0x4e3846[_0x238b56(0x6b1)]=_0x409abe,_0x4e3846[_0x238b56(0x27fe)]=_0x256211,_0x4e3846['success']=_0xc72244,_0x4e3846[_0x238b56(0x1d57)]=_0x947728,_0x4e3846[_0x238b56(0x11d1)]=_0xd0a0ae,_0x4e3846[_0x238b56(0x2434)]=_0x560ba4,_0x4e3846[_0x238b56(0x303)]=_0x25a56b,_0x4e3846['deleteSelectedFreshsalesAccounts']=_0x1eaed0,_0x4e3846[_0x238b56(0x2907)]=_0x2c8cde,_0x4e3846[_0x238b56(0xbad)]=_0x5ad778;function _0x90b705(_0x54d3c8){const _0x18aa6e=_0x238b56;_0x40553b['go'](_0x18aa6e(0x849),{'id':_0x54d3c8['id'],'freshsalesAccount':_0x54d3c8,'crudPermissions':_0x4e3846[_0x18aa6e(0x1b1a)]});}function _0x409abe(_0x356f9d){const _0x27de5f=_0x238b56;return _0x2a042b[_0x27de5f(0xc8a)][_0x27de5f(0xc84)]({'id':_0x356f9d['id'],'test':!![]})['$promise'][_0x27de5f(0x1cb0)](function(){const _0x6739f3=_0x27de5f;_0x10aefd['success']({'title':_0x6739f3(0x1f6e),'msg':'Connection\x20succeded!'});})['catch'](function(_0x2c6a7c){const _0x500ce5=_0x27de5f;_0x10aefd['error']({'title':'FreshsalesAccount\x20properly\x20tested','msg':_0x2c6a7c[_0x500ce5(0x25c)]?_0x2c6a7c['data'][_0x500ce5(0x155e)]?_0x2c6a7c['data'][_0x500ce5(0x155e)]:JSON[_0x500ce5(0x2701)](_0x2c6a7c['data']):_0x2c6a7c[_0x500ce5(0x147f)]()});});}function _0x256211(_0x406f48,_0x984df5){const _0x4661bb=_0x238b56,_0x583bd7=_0x48903e[_0x4661bb(0x1551)]()[_0x4661bb(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x39641b()[_0x4661bb(0xa75)]('freshsalesAccount')+'?')[_0x4661bb(0x49e)](_0x4661bb(0x204d)+(_0x406f48[_0x4661bb(0x16b6)]||_0x4661bb(0x2779))+_0x4661bb(0x1200)+_0x4661bb(0x1b6))[_0x4661bb(0x15ad)](_0x4661bb(0x100c))['targetEvent'](_0x984df5)['ok']('OK')[_0x4661bb(0x696)]('CANCEL');_0x48903e['show'](_0x583bd7)[_0x4661bb(0x1cb0)](function(){_0x560ba4(_0x406f48);},function(){const _0x4f3c58=_0x4661bb;console['log'](_0x4f3c58(0x24ba));});}let _0x4f2ca7=!![],_0x522494=0x1;_0x3f67c0[_0x238b56(0x614)]('vm.query.filter',function(_0x5ef065,_0x53da8b){const _0x2fe628=_0x238b56;_0x4f2ca7?_0x2e162a(function(){_0x4f2ca7=![];}):(!_0x53da8b&&(_0x522494=_0x4e3846['query'][_0x2fe628(0x1c7b)]),_0x5ef065!==_0x53da8b&&(_0x4e3846[_0x2fe628(0xae2)][_0x2fe628(0x1c7b)]=0x1),!_0x5ef065&&(_0x4e3846[_0x2fe628(0xae2)][_0x2fe628(0x1c7b)]=_0x522494),_0x4e3846['getFreshsalesAccounts']());});function _0xc72244(_0x34946f){const _0x55df61=_0x238b56;_0x4e3846[_0x55df61(0x1d8)]=_0x34946f||{'count':0x0,'rows':[]};}function _0x947728(){const _0x4f0f70=_0x238b56;_0x4e3846[_0x4f0f70(0xae2)][_0x4f0f70(0x184b)]=(_0x4e3846[_0x4f0f70(0xae2)][_0x4f0f70(0x1c7b)]-0x1)*_0x4e3846[_0x4f0f70(0xae2)][_0x4f0f70(0x236)],_0x36b58c['hasRole'](_0x4f0f70(0x1c60))?_0x4e3846[_0x4f0f70(0x2061)]=_0x2a042b[_0x4f0f70(0xc8a)][_0x4f0f70(0xbf7)](_0x4e3846[_0x4f0f70(0xae2)],_0xc72244)['$promise']:(_0x4e3846[_0x4f0f70(0xae2)]['id']=_0x4e3846[_0x4f0f70(0x44a)]['id'],_0x4e3846[_0x4f0f70(0xae2)][_0x4f0f70(0x1f74)]=_0x4f0f70(0x1988),_0x4e3846['promise']=_0x2a042b[_0x4f0f70(0x44a)]['getResources'](_0x4e3846[_0x4f0f70(0xae2)],_0xc72244)[_0x4f0f70(0x1d77)]);}function _0xd0a0ae(_0x58dfb8,_0x1fa03e){const _0x47f969=_0x238b56;_0x48903e['show']({'controller':'CreateOrEditFreshsalesAccountDialogController','controllerAs':'vm','templateUrl':_0x41e9df,'parent':angular[_0x47f969(0x1853)](_0x49f600[_0x47f969(0x1ed9)]),'targetEvent':_0x58dfb8,'clickOutsideToClose':!![],'locals':{'freshsalesAccount':_0x1fa03e,'freshsalesAccounts':_0x4e3846[_0x47f969(0x1d8)][_0x47f969(0x2214)],'license':_0x4e3846[_0x47f969(0x8a5)],'setting':_0x4e3846['setting'],'crudPermissions':_0x4e3846[_0x47f969(0x1b1a)]}});}function _0x560ba4(_0x58c560){const _0x179ee0=_0x238b56;_0x2a042b[_0x179ee0(0xc8a)][_0x179ee0(0x111d)]({'id':_0x58c560['id']})[_0x179ee0(0x1d77)][_0x179ee0(0x1cb0)](function(){const _0x44fbee=_0x179ee0;_0x39641b()[_0x44fbee(0x152a)](_0x4e3846[_0x44fbee(0x1d8)][_0x44fbee(0x2214)],{'id':_0x58c560['id']}),_0x4e3846['freshsalesAccounts'][_0x44fbee(0x184d)]-=0x1,!_0x4e3846[_0x44fbee(0x1d8)][_0x44fbee(0x2214)][_0x44fbee(0xfd0)]&&_0x4e3846[_0x44fbee(0x1d57)](),_0x10aefd[_0x44fbee(0x829)]({'title':_0x39641b()[_0x44fbee(0xa75)](_0x44fbee(0x2908))+_0x44fbee(0x2663),'msg':_0x58c560[_0x44fbee(0x16b6)]?_0x58c560[_0x44fbee(0x16b6)]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x166829){const _0x575e32=_0x179ee0;if(_0x166829[_0x575e32(0x25c)]&&_0x166829[_0x575e32(0x25c)][_0x575e32(0x1a7c)]&&_0x166829[_0x575e32(0x25c)][_0x575e32(0x1a7c)]['length']){_0x4e3846[_0x575e32(0x1a7c)]=_0x166829[_0x575e32(0x25c)]['errors']||[{'message':_0x166829[_0x575e32(0x147f)](),'type':_0x575e32(0x126f)}];for(let _0x2de493=0x0;_0x2de493<_0x166829[_0x575e32(0x25c)][_0x575e32(0x1a7c)][_0x575e32(0xfd0)];_0x2de493++){_0x10aefd[_0x575e32(0x218e)]({'title':_0x166829[_0x575e32(0x25c)][_0x575e32(0x1a7c)][_0x2de493][_0x575e32(0x66a)],'msg':_0x166829[_0x575e32(0x25c)]['errors'][_0x2de493][_0x575e32(0x155e)]});}}else _0x10aefd['error']({'title':_0x166829[_0x575e32(0x291)]?_0x575e32(0xeb9)+_0x166829[_0x575e32(0x291)]+'\x20-\x20'+_0x166829[_0x575e32(0xc22)]:'SYSTEM:DELETEintFreshsalesAccount','msg':_0x166829['data']?JSON[_0x575e32(0x2701)](_0x166829[_0x575e32(0x25c)]['message']):_0x166829[_0x575e32(0x155e)]||_0x166829[_0x575e32(0x147f)]()});});}function _0x25a56b(){const _0xc490ad=_0x238b56,_0x4b2bca=angular[_0xc490ad(0x17fe)](_0x4e3846['selectedFreshsalesAccounts']);return _0x4e3846['selectedFreshsalesAccounts']=[],_0x4b2bca;}function _0x1eaed0(_0x38328a){const _0x4f38b7=_0x238b56,_0x42a58d=_0x48903e['confirm']()[_0x4f38b7(0x1386)](_0x4f38b7(0x5b5))[_0x4f38b7(0x49e)](_0x4f38b7(0x204d)+_0x4e3846[_0x4f38b7(0x1475)]['length']+'\x20selected'+_0x4f38b7(0x1b6))['ariaLabel'](_0x4f38b7(0x200b))['targetEvent'](_0x38328a)['ok']('OK')['cancel'](_0x4f38b7(0x24ba));_0x48903e[_0x4f38b7(0xe27)](_0x42a58d)[_0x4f38b7(0x1cb0)](function(){const _0x256b95=_0x4f38b7;_0x4e3846[_0x256b95(0x1475)][_0x256b95(0xf90)](function(_0x5dfd30){_0x560ba4(_0x5dfd30);}),_0x4e3846[_0x256b95(0x1475)]=[];});}function _0x2c8cde(){const _0x2a1b82=_0x238b56;_0x4e3846[_0x2a1b82(0x1475)]=[];}function _0x5ad778(){const _0x557ea6=_0x238b56;_0x4e3846[_0x557ea6(0x1475)]=_0x4e3846['freshsalesAccounts']['rows'];}}const _0x165243=_0x1c4ef7;;_0x36d56a[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog','$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x255e),_0x5537c6(0x276d),'api',_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x36d56a(_0x1a0264,_0x55c06d,_0x4dd4d7,_0x39048a,_0xe2eac0,_0x49b37e,_0x3f42f1,_0x5f4a3c,_0x18a327,_0x53a563,_0x594e6b,_0x40c865,_0x41f447,_0x8708a0){const _0xc3d48e=_0x5537c6,_0x53096f=this;_0x53096f[_0xc3d48e(0xe76)]=_0x594e6b[_0xc3d48e(0x21e8)](),_0x53096f[_0xc3d48e(0x1a7c)]=[],_0x53096f['setting']=_0x41f447,_0x53096f[_0xc3d48e(0x8a5)]=_0x40c865,_0x53096f[_0xc3d48e(0x1b1a)]=_0x8708a0,_0x53096f[_0xc3d48e(0xf4c)]={},_0x53096f[_0xc3d48e(0x1b0c)]=_0x53096f['setting']&&_0x53096f[_0xc3d48e(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x53096f[_0xc3d48e(0x1386)]=_0xc3d48e(0x532),_0x53096f[_0xc3d48e(0x276d)]=angular[_0xc3d48e(0x17fe)](_0x18a327),_0x53096f[_0xc3d48e(0x255e)]=_0x5f4a3c,_0x53096f[_0xc3d48e(0x2300)]=![];!_0x53096f[_0xc3d48e(0x276d)]&&(_0x53096f[_0xc3d48e(0x276d)]={'type':'integrationTab','serverUrl':_0x4dd4d7[_0xc3d48e(0x2276)]()+_0xc3d48e(0x138b)+_0x4dd4d7['host']()+(_0x4dd4d7[_0xc3d48e(0x477)]()?':'+_0x4dd4d7[_0xc3d48e(0x477)]():'')},_0x53096f[_0xc3d48e(0x1386)]=_0xc3d48e(0x2379),_0x53096f['newSalesforceAccount']=!![]);_0x53096f[_0xc3d48e(0x1d27)]=_0x38e029,_0x53096f['saveSalesforceAccount']=_0x412428,_0x53096f[_0xc3d48e(0x1650)]=_0x40ddd7,_0x53096f[_0xc3d48e(0x2c4)]=_0x3d4af7,_0x53096f[_0xc3d48e(0xda0)]=_0x560108;function _0x38e029(){const _0x58be95=_0xc3d48e;_0x53096f[_0x58be95(0x1a7c)]=[],_0x53a563['intSalesforceAccount'][_0x58be95(0x1c3f)](_0x53096f[_0x58be95(0x276d)])['$promise'][_0x58be95(0x1cb0)](function(_0x1ecb61){const _0x3dfd8d=_0x58be95;_0x53096f['salesforceAccounts'][_0x3dfd8d(0xf63)](_0x1ecb61[_0x3dfd8d(0x19b2)]()),_0x3f42f1[_0x3dfd8d(0x829)]({'title':_0x3dfd8d(0x1a0e),'msg':_0x53096f[_0x3dfd8d(0x276d)][_0x3dfd8d(0x16b6)]?_0x53096f[_0x3dfd8d(0x276d)][_0x3dfd8d(0x16b6)]+_0x3dfd8d(0x470):''}),_0x560108(_0x1ecb61);})[_0x58be95(0x1c4)](function(_0x245e79){const _0x270350=_0x58be95;if(_0x245e79[_0x270350(0x25c)]&&_0x245e79[_0x270350(0x25c)]['errors']&&_0x245e79[_0x270350(0x25c)][_0x270350(0x1a7c)]['length']){_0x53096f[_0x270350(0x1a7c)]=_0x245e79[_0x270350(0x25c)]['errors']||[{'message':_0x245e79['toString'](),'type':_0x270350(0xde9)}];for(let _0x3682df=0x0;_0x3682df<_0x245e79['data'][_0x270350(0x1a7c)]['length'];_0x3682df+=0x1){_0x3f42f1[_0x270350(0x218e)]({'title':_0x245e79[_0x270350(0x25c)]['errors'][_0x3682df][_0x270350(0x66a)],'msg':_0x245e79[_0x270350(0x25c)][_0x270350(0x1a7c)][_0x3682df][_0x270350(0x155e)]});}}else _0x3f42f1[_0x270350(0x218e)]({'title':_0x245e79['status']?_0x270350(0xeb9)+_0x245e79['status']+_0x270350(0x1657)+_0x245e79['statusText']:_0x270350(0xde9),'msg':_0x245e79['data']?JSON['stringify'](_0x245e79[_0x270350(0x25c)]['message']):_0x245e79[_0x270350(0x147f)]()});});}function _0x412428(){const _0x1b6a38=_0xc3d48e;_0x53096f[_0x1b6a38(0x1a7c)]=[],_0x53a563[_0x1b6a38(0x1186)][_0x1b6a38(0x687)]({'id':_0x53096f['salesforceAccount']['id']},_0x53096f[_0x1b6a38(0x276d)])['$promise']['then'](function(_0x4439b6){const _0x317368=_0x1b6a38,_0x57b03a=_0x39641b()[_0x317368(0x13b4)](_0x53096f['salesforceAccounts'],{'id':_0x4439b6['id']});_0x57b03a&&_0x39641b()['merge'](_0x57b03a,_0x39641b()[_0x317368(0x169b)](_0x4439b6[_0x317368(0x19b2)](),_0x39641b()[_0x317368(0x1be5)](_0x57b03a))),_0x3f42f1[_0x317368(0x829)]({'title':_0x317368(0x1438),'msg':_0x53096f[_0x317368(0x276d)][_0x317368(0x16b6)]?_0x53096f['salesforceAccount']['name']+'\x20has\x20been\x20saved!':''}),_0x560108(_0x4439b6);})[_0x1b6a38(0x1c4)](function(_0xd66b7b){const _0x24dc43=_0x1b6a38;if(_0xd66b7b[_0x24dc43(0x25c)]&&_0xd66b7b['data'][_0x24dc43(0x1a7c)]&&_0xd66b7b[_0x24dc43(0x25c)][_0x24dc43(0x1a7c)]['length']){_0x53096f['errors']=_0xd66b7b[_0x24dc43(0x25c)]['errors']||[{'message':_0xd66b7b['toString'](),'type':_0x24dc43(0x28c8)}];for(let _0x50e94e=0x0;_0x50e94e<_0xd66b7b[_0x24dc43(0x25c)]['errors'][_0x24dc43(0xfd0)];_0x50e94e++){_0x3f42f1[_0x24dc43(0x218e)]({'title':_0xd66b7b[_0x24dc43(0x25c)][_0x24dc43(0x1a7c)][_0x50e94e][_0x24dc43(0x66a)],'msg':_0xd66b7b[_0x24dc43(0x25c)][_0x24dc43(0x1a7c)][_0x50e94e][_0x24dc43(0x155e)]});}}else _0x3f42f1[_0x24dc43(0x218e)]({'title':_0xd66b7b[_0x24dc43(0x291)]?'API:'+_0xd66b7b[_0x24dc43(0x291)]+_0x24dc43(0x1657)+_0xd66b7b[_0x24dc43(0xc22)]:_0x24dc43(0x28c8),'msg':_0xd66b7b['data']?JSON[_0x24dc43(0x2701)](_0xd66b7b['data']['message']):_0xd66b7b[_0x24dc43(0x147f)]()});});}function _0x40ddd7(_0x15c06d){const _0x43b202=_0xc3d48e;_0x53096f[_0x43b202(0x1a7c)]=[];const _0xcfc88a=_0x39048a[_0x43b202(0x1551)]()[_0x43b202(0x1386)]('Are\x20you\x20sure?')['content'](_0x43b202(0xe6c))[_0x43b202(0x15ad)](_0x43b202(0x24b))['ok'](_0x43b202(0x2594))[_0x43b202(0x696)]('Cancel')[_0x43b202(0x728)](_0x15c06d);_0x39048a[_0x43b202(0xe27)](_0xcfc88a)[_0x43b202(0x1cb0)](function(){const _0x32bf51=_0x43b202;_0x53a563[_0x32bf51(0x1186)][_0x32bf51(0x111d)]({'id':_0x53096f[_0x32bf51(0x276d)]['id']})[_0x32bf51(0x1d77)][_0x32bf51(0x1cb0)](function(){const _0x2a2c28=_0x32bf51;_0x39641b()[_0x2a2c28(0x152a)](_0x53096f[_0x2a2c28(0x255e)],{'id':_0x53096f[_0x2a2c28(0x276d)]['id']}),_0x3f42f1[_0x2a2c28(0x829)]({'title':'SalesforceAccount\x20properly\x20deleted!','msg':(_0x53096f['salesforceAccount'][_0x2a2c28(0x16b6)]||_0x2a2c28(0x276d))+_0x2a2c28(0x3f5)}),_0x560108(_0x53096f[_0x2a2c28(0x276d)]);})[_0x32bf51(0x1c4)](function(_0x42b4b9){const _0x8aa372=_0x32bf51;if(_0x42b4b9[_0x8aa372(0x25c)]&&_0x42b4b9[_0x8aa372(0x25c)][_0x8aa372(0x1a7c)]&&_0x42b4b9[_0x8aa372(0x25c)][_0x8aa372(0x1a7c)][_0x8aa372(0xfd0)]){_0x53096f[_0x8aa372(0x1a7c)]=_0x42b4b9[_0x8aa372(0x25c)][_0x8aa372(0x1a7c)]||[{'message':_0x42b4b9['toString'](),'type':_0x8aa372(0xc04)}];for(let _0x280069=0x0;_0x280069<_0x42b4b9[_0x8aa372(0x25c)][_0x8aa372(0x1a7c)][_0x8aa372(0xfd0)];_0x280069++){_0x3f42f1[_0x8aa372(0x218e)]({'title':_0x42b4b9[_0x8aa372(0x25c)][_0x8aa372(0x1a7c)][_0x280069][_0x8aa372(0x66a)],'msg':_0x42b4b9[_0x8aa372(0x25c)]['errors'][_0x280069][_0x8aa372(0x155e)]});}}else _0x3f42f1[_0x8aa372(0x218e)]({'title':_0x42b4b9[_0x8aa372(0x291)]?_0x8aa372(0xeb9)+_0x42b4b9[_0x8aa372(0x291)]+_0x8aa372(0x1657)+_0x42b4b9[_0x8aa372(0xc22)]:'api.intSalesforceAccount.delete','msg':_0x42b4b9[_0x8aa372(0x25c)]?JSON['stringify'](_0x42b4b9[_0x8aa372(0x25c)][_0x8aa372(0x155e)]):_0x42b4b9['message']||_0x42b4b9[_0x8aa372(0x147f)]()});});},function(){});}function _0x3d4af7(_0x12b42d){return _0x12b42d===null?undefined:new Date(_0x12b42d);}function _0x560108(_0x3fd1df){const _0x5674eb=_0xc3d48e;_0x39048a[_0x5674eb(0x1426)](_0x3fd1df);}}const _0x4b78f4=_0x36d56a;;const _0x53c8fe=_0x5074a3['p']+'src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/configurations/dialog.html/dialog.html';;const _0x6718f7=_0x5074a3['p']+_0x5537c6(0x172d);;_0x24fb1b['$inject']=[_0x5537c6(0xcb9),'$document',_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774)];function _0x24fb1b(_0x3636f5,_0x2241a5,_0x2edc6d,_0x3f0424,_0x5956ea){const _0xe7b39c=_0x5537c6,_0x2637d9=this;_0x2637d9[_0xe7b39c(0xe76)]=_0x5956ea[_0xe7b39c(0x21e8)](),_0x2637d9[_0xe7b39c(0x276d)]={},_0x2637d9[_0xe7b39c(0x29ce)]={},_0x2637d9[_0xe7b39c(0xa06)]=[],_0x2637d9['selectedSalesforceConfiguration']=-0x1,_0x2637d9[_0xe7b39c(0x1b1a)],_0x2637d9[_0xe7b39c(0x1a8e)]=_0x1ff754,_0x2637d9[_0xe7b39c(0x26ca)]=_0x1a5534,_0x2637d9[_0xe7b39c(0x1843)]=_0x219758,_0x2637d9[_0xe7b39c(0xb8f)]=_0x30986d,_0x2637d9[_0xe7b39c(0x1da1)]=_0x31cf87;function _0x31cf87(){const _0x5c59a6=_0xe7b39c;return _0x2edc6d['intSalesforceConfiguration'][_0x5c59a6(0x687)]({'id':_0x2637d9[_0x5c59a6(0x29ce)]['id']},_0x2637d9[_0x5c59a6(0x29ce)])[_0x5c59a6(0x1d77)][_0x5c59a6(0x1cb0)](function(){_0x3f0424['success']({'title':'Module\x20updated!','msg':'Module\x20has\x20been\x20updated!'});})[_0x5c59a6(0x1c4)](function(_0x161765){const _0xfe2835=_0x5c59a6;_0x3f0424[_0xfe2835(0x218e)]({'title':_0x161765[_0xfe2835(0x291)]?_0xfe2835(0xeb9)+_0x161765[_0xfe2835(0x291)]+_0xfe2835(0x1657)+_0x161765[_0xfe2835(0xc22)]:_0xfe2835(0x22f8),'msg':_0x161765[_0xfe2835(0x25c)]?JSON[_0xfe2835(0x2701)](_0x161765[_0xfe2835(0x25c)]):_0x161765[_0xfe2835(0x147f)]()});});}function _0x1ff754(_0x48cc48,_0x2234fd){const _0x25a1b1=_0xe7b39c;_0x2637d9['salesforceAccount']=_0x48cc48,_0x2637d9[_0x25a1b1(0x1b1a)]=typeof _0x2234fd!==_0x25a1b1(0x16b5)?_0x2234fd:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2edc6d[_0x25a1b1(0x1186)]['getConfigurations']({'id':_0x2637d9[_0x25a1b1(0x276d)]['id'],'sort':_0x25a1b1(0x282)})[_0x25a1b1(0x1d77)][_0x25a1b1(0x1cb0)](function(_0x50a576){const _0x520269=_0x25a1b1;return _0x2637d9[_0x520269(0xa06)]=_0x50a576[_0x520269(0x2214)]?_0x50a576[_0x520269(0x2214)]:[],_0x2637d9[_0x520269(0xa06)][_0x520269(0xfd0)]&&_0x2637d9[_0x520269(0x26ca)](0x0),_0x2edc6d[_0x520269(0x1822)][_0x520269(0xbf7)]({'nolimit':!![],'sort':_0x520269(0x16b6)})[_0x520269(0x1d77)];})[_0x25a1b1(0x1cb0)](function(_0x155d42){const _0x53cc3d=_0x25a1b1;_0x2637d9[_0x53cc3d(0x9a9)]=_0x155d42['rows']?_0x155d42[_0x53cc3d(0x2214)]:[],_0x2637d9[_0x53cc3d(0x1a3c)]=_0x39641b()['keyBy'](_0x2637d9[_0x53cc3d(0x9a9)],'id');})[_0x25a1b1(0x1c4)](function(_0x40a9ec){const _0x2e3a4a=_0x25a1b1;_0x3f0424[_0x2e3a4a(0x218e)]({'title':_0x40a9ec[_0x2e3a4a(0x291)]?_0x2e3a4a(0xeb9)+_0x40a9ec['status']+_0x2e3a4a(0x1657)+_0x40a9ec[_0x2e3a4a(0xc22)]:_0x2e3a4a(0x1b0f),'msg':_0x40a9ec[_0x2e3a4a(0x25c)]?JSON[_0x2e3a4a(0x2701)](_0x40a9ec[_0x2e3a4a(0x25c)]):_0x40a9ec[_0x2e3a4a(0x147f)]()});});}function _0x1a5534(_0x426491){const _0x35176e=_0xe7b39c;_0x2637d9[_0x35176e(0x29ce)]=_0x2637d9[_0x35176e(0xa06)][_0x426491],_0x2637d9[_0x35176e(0x118a)]=_0x426491,_0x2edc6d[_0x35176e(0xbae)][_0x35176e(0x243a)]({'id':_0x2637d9[_0x35176e(0x29ce)]['id']})['$promise'][_0x35176e(0x1cb0)](function(_0x30b873){const _0x485619=_0x35176e;return _0x2637d9[_0x485619(0x2388)]=_0x30b873[_0x485619(0x2214)]?_0x30b873[_0x485619(0x2214)]:[],_0x2edc6d[_0x485619(0xbae)][_0x485619(0xb6d)]({'id':_0x2637d9[_0x485619(0x29ce)]['id']})[_0x485619(0x1d77)];})['then'](function(_0x2559c3){const _0x461410=_0x35176e;return _0x2637d9[_0x461410(0x310)]=_0x2559c3[_0x461410(0x2214)]?_0x2559c3[_0x461410(0x2214)]:[],_0x2edc6d[_0x461410(0xbae)]['getFields']({'id':_0x2637d9[_0x461410(0x29ce)]['id']})['$promise'];})[_0x35176e(0x1cb0)](function(_0x3a6bbd){const _0x46521d=_0x35176e;_0x2637d9[_0x46521d(0x355)]=_0x3a6bbd[_0x46521d(0x2214)]?_0x3a6bbd['rows']:[];})[_0x35176e(0x1c4)](function(_0x58fd5b){const _0xe3005b=_0x35176e;_0x3f0424[_0xe3005b(0x218e)]({'title':_0x58fd5b[_0xe3005b(0x291)]?_0xe3005b(0xeb9)+_0x58fd5b[_0xe3005b(0x291)]+_0xe3005b(0x1657)+_0x58fd5b[_0xe3005b(0xc22)]:_0xe3005b(0x1e5f),'msg':_0x58fd5b['data']?JSON['stringify'](_0x58fd5b[_0xe3005b(0x25c)]):_0x58fd5b['toString']()});});}function _0x219758(_0x1a775a,_0x44c407){const _0x14a360=_0xe7b39c;_0x3636f5[_0x14a360(0xe27)]({'controller':'CreateOrEditSalesforceConfigurationDialogController','controllerAs':'vm','templateUrl':_0x53c8fe,'parent':angular[_0x14a360(0x1853)](_0x2241a5[_0x14a360(0x1ed9)]),'targetEvent':_0x1a775a,'clickOutsideToClose':!![],'locals':{'salesforceConfiguration':_0x44c407,'configurations':_0x2637d9[_0x14a360(0xa06)],'license':null,'setting':null,'crudPermissions':_0x2637d9[_0x14a360(0x1b1a)]}})[_0x14a360(0x2e0)](function(){const _0x5cacbf=_0x14a360;_0x2637d9[_0x5cacbf(0x26ca)](0x0);});}function _0x30986d(_0x56e419,_0x5b4f4e){const _0x31dd43=_0xe7b39c,_0x1a99c1=_0x3636f5[_0x31dd43(0x1551)]()[_0x31dd43(0x1386)](_0x31dd43(0x1d2e))[_0x31dd43(0x49e)](_0x31dd43(0x204d)+(_0x5b4f4e['name']||'salesforceConfiguration')+_0x31dd43(0x1200)+_0x31dd43(0x1b6))[_0x31dd43(0x15ad)]('delete\x20salesforceConfiguration')['targetEvent'](_0x56e419)['ok']('OK')[_0x31dd43(0x696)](_0x31dd43(0x24ba));_0x3636f5[_0x31dd43(0xe27)](_0x1a99c1)['then'](function(){const _0x46cfaa=_0x31dd43;_0x2edc6d[_0x46cfaa(0xbae)][_0x46cfaa(0x111d)]({'id':_0x5b4f4e['id']})[_0x46cfaa(0x1d77)][_0x46cfaa(0x1cb0)](function(){const _0x3f4c13=_0x46cfaa;_0x39641b()[_0x3f4c13(0x152a)](_0x2637d9[_0x3f4c13(0xa06)],{'id':_0x5b4f4e['id']}),_0x3f0424[_0x3f4c13(0x829)]({'title':_0x3f4c13(0x28dd),'msg':_0x5b4f4e['name']?_0x5b4f4e[_0x3f4c13(0x16b6)]+_0x3f4c13(0x3f5):''});})[_0x46cfaa(0x1c4)](function(_0x54b671){const _0x1834be=_0x46cfaa;_0x3f0424[_0x1834be(0x218e)]({'title':_0x54b671[_0x1834be(0x291)]?'API:'+_0x54b671['status']+_0x1834be(0x1657)+_0x54b671['statusText']:_0x1834be(0x543),'msg':_0x54b671[_0x1834be(0x25c)]?JSON[_0x1834be(0x2701)](_0x54b671[_0x1834be(0x25c)]):_0x54b671[_0x1834be(0x147f)]()});})[_0x46cfaa(0x2e0)](function(){const _0x562bf7=_0x46cfaa;_0x2637d9[_0x562bf7(0x26ca)](0x0);});},function(){const _0xdaaeb4=_0x31dd43;console[_0xdaaeb4(0x1b4f)](_0xdaaeb4(0x24ba));});}_0x2637d9[_0xe7b39c(0x4df)]=[],_0x2637d9[_0xe7b39c(0x1267)]=_0x5be868,_0x2637d9[_0xe7b39c(0x259e)]=_0x63d02d,_0x2637d9[_0xe7b39c(0xf12)]=_0x6b097e;function _0x5be868(_0x1d6ec5,_0x309276){const _0x5145b8=_0xe7b39c;_0x3636f5[_0x5145b8(0xe27)]({'controller':_0x5145b8(0x1c8),'controllerAs':'vm','templateUrl':_0x6718f7,'parent':angular[_0x5145b8(0x1853)](_0x2241a5[_0x5145b8(0x1ed9)]),'targetEvent':_0x1d6ec5,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x309276,'items':_0x2637d9[_0x5145b8(0x2388)],'configuration':_0x2637d9[_0x5145b8(0x29ce)],'account':_0x2637d9[_0x5145b8(0x276d)],'license':null,'setting':null,'crudPermissions':_0x2637d9['crudPermissions']}});}function _0x4d5b08(_0x2548e3){const _0x45dd71=_0xe7b39c;_0x2edc6d['intSalesforceField'][_0x45dd71(0x111d)]({'id':_0x2548e3['id']})[_0x45dd71(0x1d77)][_0x45dd71(0x1cb0)](function(){const _0x34e604=_0x45dd71;_0x39641b()[_0x34e604(0x152a)](_0x2637d9['subjects'],{'id':_0x2548e3['id']}),_0x3f0424[_0x34e604(0x829)]({'title':'Subject\x20deleted!','msg':_0x34e604(0x145d)});})['catch'](function(_0x20807e){const _0x48a8fd=_0x45dd71;_0x3f0424[_0x48a8fd(0x218e)]({'title':_0x20807e['status']?_0x48a8fd(0xeb9)+_0x20807e['status']+'\x20-\x20'+_0x20807e[_0x48a8fd(0xc22)]:_0x48a8fd(0x13e5),'msg':_0x20807e['data']?JSON['stringify'](_0x20807e[_0x48a8fd(0x25c)]):_0x20807e[_0x48a8fd(0x147f)]()});});}function _0x63d02d(_0x4e3d72,_0x16f522){const _0x57d2e8=_0xe7b39c,_0xbd0079=_0x3636f5[_0x57d2e8(0x1551)]()[_0x57d2e8(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')['htmlContent']('Subject'+_0x57d2e8(0x1b6))['ariaLabel'](_0x57d2e8(0xbc3))[_0x57d2e8(0x728)](_0x4e3d72)['ok']('OK')[_0x57d2e8(0x696)](_0x57d2e8(0x24ba));_0x3636f5['show'](_0xbd0079)[_0x57d2e8(0x1cb0)](function(){_0x4d5b08(_0x16f522);},function(){const _0x19329e=_0x57d2e8;console[_0x19329e(0x1b4f)](_0x19329e(0x24ba));});}function _0x6b097e(_0x447c1e){const _0x24a1e7=_0xe7b39c,_0x352634=_0x3636f5[_0x24a1e7(0x1551)]()[_0x24a1e7(0x1386)](_0x24a1e7(0x1f8e))[_0x24a1e7(0x49e)](_0x24a1e7(0x204d)+_0x2637d9[_0x24a1e7(0x4df)][_0x24a1e7(0xfd0)]+_0x24a1e7(0x1d6c)+_0x24a1e7(0x1b6))['ariaLabel'](_0x24a1e7(0x222e))[_0x24a1e7(0x728)](_0x447c1e)['ok']('OK')['cancel'](_0x24a1e7(0x24ba));_0x3636f5['show'](_0x352634)['then'](function(){const _0x50c344=_0x24a1e7;_0x2637d9[_0x50c344(0x4df)][_0x50c344(0xf90)](function(_0x37e4a1){_0x4d5b08(_0x37e4a1);}),_0x2637d9[_0x50c344(0x4df)]=[];});}_0x2637d9[_0xe7b39c(0xac6)]=[],_0x2637d9[_0xe7b39c(0x14c7)]=_0x5e1261,_0x2637d9[_0xe7b39c(0xc09)]=_0x593bf4,_0x2637d9[_0xe7b39c(0x2931)]=_0x52ebbb;function _0x5e1261(_0x11e90e,_0x422fb9){const _0x37f4e7=_0xe7b39c;_0x3636f5['show']({'controller':_0x37f4e7(0x1c8),'controllerAs':'vm','templateUrl':_0x6718f7,'parent':angular[_0x37f4e7(0x1853)](_0x2241a5['body']),'targetEvent':_0x11e90e,'clickOutsideToClose':!![],'locals':{'type':_0x37f4e7(0x2c1),'item':_0x422fb9,'items':_0x2637d9[_0x37f4e7(0x310)],'configuration':_0x2637d9[_0x37f4e7(0x29ce)],'account':_0x2637d9[_0x37f4e7(0x276d)],'license':null,'setting':null,'crudPermissions':_0x2637d9[_0x37f4e7(0x1b1a)]}});}function _0x374acd(_0x1db525){const _0x14682c=_0xe7b39c;_0x2edc6d[_0x14682c(0x1a47)][_0x14682c(0x111d)]({'id':_0x1db525['id']})[_0x14682c(0x1d77)][_0x14682c(0x1cb0)](function(){const _0x121d78=_0x14682c;_0x39641b()[_0x121d78(0x152a)](_0x2637d9[_0x121d78(0x310)],{'id':_0x1db525['id']}),_0x3f0424['success']({'title':'Description\x20deleted!','msg':'Description\x20has\x20been\x20deleted!'});})[_0x14682c(0x1c4)](function(_0x567a85){const _0x4d99aa=_0x14682c;_0x3f0424[_0x4d99aa(0x218e)]({'title':_0x567a85[_0x4d99aa(0x291)]?'API:'+_0x567a85[_0x4d99aa(0x291)]+_0x4d99aa(0x1657)+_0x567a85[_0x4d99aa(0xc22)]:_0x4d99aa(0x13e5),'msg':_0x567a85['data']?JSON['stringify'](_0x567a85[_0x4d99aa(0x25c)]):_0x567a85[_0x4d99aa(0x147f)]()});});}function _0x593bf4(_0x594441,_0x1ec78c){const _0x5e80a5=_0xe7b39c,_0x45960e=_0x3636f5[_0x5e80a5(0x1551)]()[_0x5e80a5(0x1386)](_0x5e80a5(0x7d2))[_0x5e80a5(0x49e)](_0x5e80a5(0x18b8)+_0x5e80a5(0x1b6))[_0x5e80a5(0x15ad)](_0x5e80a5(0x103d))['targetEvent'](_0x594441)['ok']('OK')['cancel'](_0x5e80a5(0x24ba));_0x3636f5[_0x5e80a5(0xe27)](_0x45960e)[_0x5e80a5(0x1cb0)](function(){_0x374acd(_0x1ec78c);},function(){const _0x4249c7=_0x5e80a5;console[_0x4249c7(0x1b4f)](_0x4249c7(0x24ba));});}function _0x52ebbb(_0x122e27){const _0x55b294=_0xe7b39c,_0x2189f1=_0x3636f5[_0x55b294(0x1551)]()['title'](_0x55b294(0x2e7))[_0x55b294(0x49e)](_0x55b294(0x204d)+_0x2637d9[_0x55b294(0xac6)][_0x55b294(0xfd0)]+'\x20selected'+_0x55b294(0x1b6))[_0x55b294(0x15ad)](_0x55b294(0x1828))[_0x55b294(0x728)](_0x122e27)['ok']('OK')[_0x55b294(0x696)](_0x55b294(0x24ba));_0x3636f5['show'](_0x2189f1)[_0x55b294(0x1cb0)](function(){const _0x5754b8=_0x55b294;_0x2637d9['selectedDescriptions'][_0x5754b8(0xf90)](function(_0x3091b9){_0x374acd(_0x3091b9);}),_0x2637d9['selectedDescriptions']=[];});}_0x2637d9['selectedFields']=[],_0x2637d9[_0xe7b39c(0x5e9)]=_0x80ae2b,_0x2637d9[_0xe7b39c(0x2398)]=_0x45e68b,_0x2637d9[_0xe7b39c(0xe40)]=_0x2bcc4f;function _0x80ae2b(_0x16f816,_0x2e4153){const _0x5b23de=_0xe7b39c;_0x3636f5[_0x5b23de(0xe27)]({'controller':_0x5b23de(0x1c8),'controllerAs':'vm','templateUrl':_0x6718f7,'parent':angular[_0x5b23de(0x1853)](_0x2241a5['body']),'targetEvent':_0x16f816,'clickOutsideToClose':!![],'locals':{'type':_0x5b23de(0x2198),'item':_0x2e4153,'items':_0x2637d9[_0x5b23de(0x355)],'configuration':_0x2637d9[_0x5b23de(0x29ce)],'account':_0x2637d9[_0x5b23de(0x276d)],'license':null,'setting':null,'crudPermissions':_0x2637d9[_0x5b23de(0x1b1a)]}});}function _0x3671e2(_0x52a7e0){const _0x2b9acf=_0xe7b39c;_0x2edc6d[_0x2b9acf(0x1a47)]['delete']({'id':_0x52a7e0['id']})[_0x2b9acf(0x1d77)]['then'](function(){const _0x4a3af8=_0x2b9acf;_0x39641b()[_0x4a3af8(0x152a)](_0x2637d9[_0x4a3af8(0x355)],{'id':_0x52a7e0['id']}),_0x3f0424[_0x4a3af8(0x829)]({'title':_0x4a3af8(0xd6b),'msg':_0x4a3af8(0x2688)});})[_0x2b9acf(0x1c4)](function(_0x5ebf26){const _0x293483=_0x2b9acf;_0x3f0424[_0x293483(0x218e)]({'title':_0x5ebf26['status']?'API:'+_0x5ebf26[_0x293483(0x291)]+'\x20-\x20'+_0x5ebf26['statusText']:_0x293483(0x13e5),'msg':_0x5ebf26[_0x293483(0x25c)]?JSON['stringify'](_0x5ebf26[_0x293483(0x25c)]):_0x5ebf26['toString']()});});}function _0x45e68b(_0x355f3c,_0x24d49e){const _0x2ba34a=_0xe7b39c,_0x282818=_0x3636f5[_0x2ba34a(0x1551)]()[_0x2ba34a(0x1386)](_0x2ba34a(0x21a9))['htmlContent'](_0x2ba34a(0xf1d)+_0x2ba34a(0x1b6))[_0x2ba34a(0x15ad)]('delete\x20field')[_0x2ba34a(0x728)](_0x355f3c)['ok']('OK')[_0x2ba34a(0x696)](_0x2ba34a(0x24ba));_0x3636f5[_0x2ba34a(0xe27)](_0x282818)[_0x2ba34a(0x1cb0)](function(){_0x3671e2(_0x24d49e);},function(){const _0x446ff1=_0x2ba34a;console[_0x446ff1(0x1b4f)](_0x446ff1(0x24ba));});}function _0x2bcc4f(_0x267e93){const _0x4ae797=_0xe7b39c,_0x51cca9=_0x3636f5[_0x4ae797(0x1551)]()[_0x4ae797(0x1386)](_0x4ae797(0x983))[_0x4ae797(0x49e)](''+_0x2637d9[_0x4ae797(0x9b2)][_0x4ae797(0xfd0)]+_0x4ae797(0x1d6c)+_0x4ae797(0x1b6))['ariaLabel'](_0x4ae797(0x199d))['targetEvent'](_0x267e93)['ok']('OK')[_0x4ae797(0x696)](_0x4ae797(0x24ba));_0x3636f5[_0x4ae797(0xe27)](_0x51cca9)[_0x4ae797(0x1cb0)](function(){const _0x2861a2=_0x4ae797;_0x2637d9[_0x2861a2(0x9b2)]['forEach'](function(_0x43b42a){_0x3671e2(_0x43b42a);}),_0x2637d9[_0x2861a2(0x9b2)]=[];});}}const _0x5f2216=_0x24fb1b;;_0x52bc69[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0xa06),_0x5537c6(0x29ce),'api',_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x52bc69(_0x501f16,_0x1b72ee,_0x32c7ea,_0xb33b1b,_0x53a23b,_0x359263,_0x37e9e1,_0x1ec7a5,_0x26178a,_0x17d1da,_0x24ce57,_0x13ec23,_0x4bc192,_0x20fa2b){const _0x56284c=_0x5537c6,_0x479006=this;_0x479006[_0x56284c(0xe76)]=_0x24ce57[_0x56284c(0x21e8)](),_0x479006[_0x56284c(0x1a7c)]=[],_0x479006['setting']=_0x4bc192,_0x479006[_0x56284c(0x8a5)]=_0x13ec23,_0x479006[_0x56284c(0x1b1a)]=_0x20fa2b,_0x479006[_0x56284c(0xf4c)]={},_0x479006[_0x56284c(0x1b0c)]=_0x479006[_0x56284c(0x9ca)]&&_0x479006['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x479006[_0x56284c(0x1386)]=_0x56284c(0x279b),_0x479006[_0x56284c(0x29ce)]=angular[_0x56284c(0x17fe)](_0x26178a),_0x479006['configurations']=_0x1ec7a5,_0x479006[_0x56284c(0x1d9b)]=![];!_0x479006['salesforceConfiguration']&&(_0x479006[_0x56284c(0x29ce)]={'channel':_0x56284c(0x1fd4),'type':'inbound','ticketType':_0x56284c(0x16e0)},_0x479006['title']=_0x56284c(0xf18),_0x479006[_0x56284c(0x1d9b)]=!![]);_0x479006[_0x56284c(0x7af)]=_0x1661b5,_0x479006[_0x56284c(0x1eba)]=_0x3b13ef,_0x479006['deleteSalesforceConfiguration']=_0x4e98af,_0x479006[_0x56284c(0x2c4)]=_0x44969f,_0x479006[_0x56284c(0xda0)]=_0x5610f0;function _0x1661b5(){const _0x438352=_0x56284c;_0x479006[_0x438352(0x1a7c)]=[],_0x17d1da[_0x438352(0x1186)][_0x438352(0x1070)]({'id':_0x1b72ee['params']['id']},_0x479006[_0x438352(0x29ce)])[_0x438352(0x1d77)][_0x438352(0x1cb0)](function(_0x47b4cd){const _0xbb14d9=_0x438352;_0x479006[_0xbb14d9(0xa06)][_0xbb14d9(0xf63)](_0x47b4cd[_0xbb14d9(0x19b2)]()),_0x37e9e1[_0xbb14d9(0x829)]({'title':_0xbb14d9(0x24d8),'msg':_0x479006['salesforceConfiguration']['name']?_0x479006[_0xbb14d9(0x29ce)]['name']+_0xbb14d9(0x470):''}),_0x5610f0(_0x47b4cd);})[_0x438352(0x1c4)](function(_0x54e8f3){const _0xd3b1ab=_0x438352;if(_0x54e8f3[_0xd3b1ab(0x25c)]&&_0x54e8f3[_0xd3b1ab(0x25c)][_0xd3b1ab(0x1a7c)]&&_0x54e8f3[_0xd3b1ab(0x25c)]['errors'][_0xd3b1ab(0xfd0)]){_0x479006['errors']=_0x54e8f3[_0xd3b1ab(0x25c)][_0xd3b1ab(0x1a7c)]||[{'message':_0x54e8f3['toString'](),'type':_0xd3b1ab(0x1226)}];for(let _0x365907=0x0;_0x365907<_0x54e8f3[_0xd3b1ab(0x25c)][_0xd3b1ab(0x1a7c)][_0xd3b1ab(0xfd0)];_0x365907+=0x1){_0x37e9e1['error']({'title':_0x54e8f3[_0xd3b1ab(0x25c)][_0xd3b1ab(0x1a7c)][_0x365907][_0xd3b1ab(0x66a)],'msg':_0x54e8f3[_0xd3b1ab(0x25c)]['errors'][_0x365907][_0xd3b1ab(0x155e)]});}}else _0x37e9e1[_0xd3b1ab(0x218e)]({'title':_0x54e8f3[_0xd3b1ab(0x291)]?_0xd3b1ab(0xeb9)+_0x54e8f3[_0xd3b1ab(0x291)]+'\x20-\x20'+_0x54e8f3[_0xd3b1ab(0xc22)]:_0xd3b1ab(0x1226),'msg':_0x54e8f3['data']?JSON[_0xd3b1ab(0x2701)](_0x54e8f3[_0xd3b1ab(0x25c)][_0xd3b1ab(0x155e)]):_0x54e8f3['toString']()});});}function _0x3b13ef(){const _0x8cc7c1=_0x56284c;_0x479006['errors']=[],_0x17d1da[_0x8cc7c1(0xbae)][_0x8cc7c1(0x687)]({'id':_0x479006[_0x8cc7c1(0x29ce)]['id']},_0x479006[_0x8cc7c1(0x29ce)])['$promise'][_0x8cc7c1(0x1cb0)](function(_0xff64c){const _0x1bf993=_0x8cc7c1,_0x5de06a=_0x39641b()['find'](_0x479006[_0x1bf993(0xa06)],{'id':_0xff64c['id']});_0x5de06a&&_0x39641b()[_0x1bf993(0x9c1)](_0x5de06a,_0x39641b()[_0x1bf993(0x169b)](_0xff64c['toJSON'](),_0x39641b()[_0x1bf993(0x1be5)](_0x5de06a))),_0x37e9e1[_0x1bf993(0x829)]({'title':_0x1bf993(0x2513),'msg':_0x479006[_0x1bf993(0x29ce)][_0x1bf993(0x16b6)]?_0x479006[_0x1bf993(0x29ce)][_0x1bf993(0x16b6)]+_0x1bf993(0xedb):''}),_0x5610f0(_0xff64c);})[_0x8cc7c1(0x1c4)](function(_0x522a8a){const _0x533840=_0x8cc7c1;if(_0x522a8a[_0x533840(0x25c)]&&_0x522a8a['data'][_0x533840(0x1a7c)]&&_0x522a8a[_0x533840(0x25c)][_0x533840(0x1a7c)][_0x533840(0xfd0)]){_0x479006[_0x533840(0x1a7c)]=_0x522a8a[_0x533840(0x25c)][_0x533840(0x1a7c)]||[{'message':_0x522a8a[_0x533840(0x147f)](),'type':_0x533840(0xacd)}];for(let _0x5c0cd3=0x0;_0x5c0cd3<_0x522a8a[_0x533840(0x25c)][_0x533840(0x1a7c)]['length'];_0x5c0cd3++){_0x37e9e1[_0x533840(0x218e)]({'title':_0x522a8a['data'][_0x533840(0x1a7c)][_0x5c0cd3][_0x533840(0x66a)],'msg':_0x522a8a[_0x533840(0x25c)][_0x533840(0x1a7c)][_0x5c0cd3]['message']});}}else _0x37e9e1['error']({'title':_0x522a8a[_0x533840(0x291)]?'API:'+_0x522a8a[_0x533840(0x291)]+_0x533840(0x1657)+_0x522a8a[_0x533840(0xc22)]:_0x533840(0xacd),'msg':_0x522a8a[_0x533840(0x25c)]?JSON['stringify'](_0x522a8a['data'][_0x533840(0x155e)]):_0x522a8a[_0x533840(0x147f)]()});});}function _0x4e98af(_0x88c150){const _0x1be4b6=_0x56284c;_0x479006[_0x1be4b6(0x1a7c)]=[];const _0xfdfa04=_0xb33b1b[_0x1be4b6(0x1551)]()['title'](_0x1be4b6(0x1a2e))[_0x1be4b6(0x862)]('The\x20salesforceConfiguration\x20will\x20be\x20deleted.')[_0x1be4b6(0x15ad)]('Delete\x20SalesforceConfiguration')['ok'](_0x1be4b6(0x2594))[_0x1be4b6(0x696)]('Cancel')[_0x1be4b6(0x728)](_0x88c150);_0xb33b1b['show'](_0xfdfa04)['then'](function(){const _0x2c13cc=_0x1be4b6;_0x17d1da[_0x2c13cc(0xbae)][_0x2c13cc(0x111d)]({'id':_0x479006['salesforceConfiguration']['id']})[_0x2c13cc(0x1d77)][_0x2c13cc(0x1cb0)](function(){const _0x55af5c=_0x2c13cc;_0x39641b()[_0x55af5c(0x152a)](_0x479006[_0x55af5c(0xa06)],{'id':_0x479006[_0x55af5c(0x29ce)]['id']}),_0x37e9e1[_0x55af5c(0x829)]({'title':_0x55af5c(0x48a),'msg':(_0x479006['salesforceConfiguration'][_0x55af5c(0x16b6)]||_0x55af5c(0x29ce))+_0x55af5c(0x3f5)}),_0x5610f0(_0x479006[_0x55af5c(0x29ce)]);})['catch'](function(_0x620c5a){const _0x29a02=_0x2c13cc;if(_0x620c5a[_0x29a02(0x25c)]&&_0x620c5a[_0x29a02(0x25c)][_0x29a02(0x1a7c)]&&_0x620c5a[_0x29a02(0x25c)]['errors'][_0x29a02(0xfd0)]){_0x479006['errors']=_0x620c5a['data']['errors']||[{'message':_0x620c5a[_0x29a02(0x147f)](),'type':_0x29a02(0xd87)}];for(let _0x25e22e=0x0;_0x25e22e<_0x620c5a[_0x29a02(0x25c)]['errors'][_0x29a02(0xfd0)];_0x25e22e++){_0x37e9e1[_0x29a02(0x218e)]({'title':_0x620c5a[_0x29a02(0x25c)][_0x29a02(0x1a7c)][_0x25e22e][_0x29a02(0x66a)],'msg':_0x620c5a[_0x29a02(0x25c)][_0x29a02(0x1a7c)][_0x25e22e]['message']});}}else _0x37e9e1[_0x29a02(0x218e)]({'title':_0x620c5a[_0x29a02(0x291)]?_0x29a02(0xeb9)+_0x620c5a['status']+_0x29a02(0x1657)+_0x620c5a[_0x29a02(0xc22)]:_0x29a02(0xd87),'msg':_0x620c5a['data']?JSON[_0x29a02(0x2701)](_0x620c5a[_0x29a02(0x25c)][_0x29a02(0x155e)]):_0x620c5a[_0x29a02(0x155e)]||_0x620c5a[_0x29a02(0x147f)]()});});},function(){});}function _0x44969f(_0xce9478){return _0xce9478===null?undefined:new Date(_0xce9478);}function _0x5610f0(_0x2bd399){const _0x109d4b=_0x56284c;_0xb33b1b[_0x109d4b(0x1426)](_0x2bd399);}}const _0x9532a=_0x52bc69;;_0x49d5ab['$inject']=[_0x5537c6(0x1463),'$state','$location',_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0x2718),_0x5537c6(0x122f),'item',_0x5537c6(0x1539),_0x5537c6(0x66a),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x49d5ab(_0x212305,_0x257380,_0x24b7bf,_0x47230e,_0x6e8e94,_0x181650,_0x42f1b3,_0x2ce007,_0x5386b1,_0x2aa626,_0x1a9794,_0x1abfe3,_0x3f61a9){const _0x1a53bf=_0x5537c6,_0x373f98=this;_0x373f98[_0x1a53bf(0xe76)]=_0x1abfe3['getCurrentUser'](),_0x373f98[_0x1a53bf(0x1a7c)]=[],_0x373f98[_0x1a53bf(0x1386)]='INTEGRATIONS.EDIT_'+_0x39641b()[_0x1a53bf(0x1002)](_0x2aa626),_0x373f98[_0x1a53bf(0x583)]=angular[_0x1a53bf(0x17fe)](_0x2ce007),_0x373f98[_0x1a53bf(0x122f)]=_0x42f1b3,_0x373f98[_0x1a53bf(0x66a)]=_0x2aa626,_0x373f98['crudPermissions']=_0x3f61a9,_0x373f98['newItem']=![];!_0x373f98[_0x1a53bf(0x583)]&&(_0x373f98[_0x1a53bf(0x583)]={'type':'string'},_0x373f98[_0x1a53bf(0x583)][_0x39641b()[_0x1a53bf(0x432)](_0x2aa626)+'Id']=_0x181650['id'],_0x373f98['title']='INTEGRATIONS.NEW_'+_0x39641b()[_0x1a53bf(0x1002)](_0x2aa626),_0x373f98[_0x1a53bf(0x1202)]=!![]);_0x373f98[_0x1a53bf(0x1286)]=_0x3c0827,_0x373f98[_0x1a53bf(0x1a78)]=_0x4187a8,_0x373f98['deleteItem']=_0x3e0be0,_0x373f98[_0x1a53bf(0x2f6)]=_0x849963,_0x373f98[_0x1a53bf(0xda0)]=_0x480420,_0x1a9794[_0x1a53bf(0x1822)][_0x1a53bf(0xbf7)]({'nolimit':!![]})[_0x1a53bf(0x1d77)][_0x1a53bf(0x1cb0)](function(_0x42f111){const _0x555472=_0x1a53bf;return _0x373f98[_0x555472(0x9a9)]=_0x42f111[_0x555472(0x2214)]?_0x42f111['rows']:[],_0x1a9794['voiceAgentReport'][_0x555472(0x1e57)]()[_0x555472(0x1d77)];})['then'](function(_0x5d61e2){const _0x5bd2bc=_0x1a53bf;return _0x373f98['voiceAgentReportColumns']=_0x39641b()[_0x5bd2bc(0x91f)](_0x39641b()['keys'](_0x5d61e2),[_0x5bd2bc(0x1d77),_0x5bd2bc(0x248e),_0x5bd2bc(0x24cb),_0x5bd2bc(0x27ba),_0x5bd2bc(0x1867)]),_0x373f98[_0x5bd2bc(0xbf1)]['push']('recordingURL'),_0x1a9794[_0x5bd2bc(0x593)][_0x5bd2bc(0x1e57)]()['$promise'];})[_0x1a53bf(0x1cb0)](function(_0x1f7a99){const _0x19b4b9=_0x1a53bf;_0x373f98[_0x19b4b9(0x1639)]=_0x39641b()[_0x19b4b9(0x91f)](_0x39641b()[_0x19b4b9(0x1be5)](_0x1f7a99),[_0x19b4b9(0x1d77),_0x19b4b9(0x248e),'createdAt',_0x19b4b9(0x27ba),_0x19b4b9(0x1867)]),_0x373f98[_0x19b4b9(0x1639)][_0x19b4b9(0x2785)]('recordingURL');})[_0x1a53bf(0x1c4)](function(_0xbd6f5f){const _0x4f1c58=_0x1a53bf;_0x6e8e94['error']({'title':_0xbd6f5f[_0x4f1c58(0x291)]?_0x4f1c58(0xeb9)+_0xbd6f5f[_0x4f1c58(0x291)]+_0x4f1c58(0x1657)+_0xbd6f5f['statusText']:_0x4f1c58(0x262e),'msg':_0xbd6f5f[_0x4f1c58(0x25c)]?JSON['stringify'](_0xbd6f5f['data']):_0xbd6f5f[_0x4f1c58(0x147f)]()});}),_0x1a9794[_0x1a53bf(0x1186)]['getFields']({'id':_0x5386b1['id'],'ticketType':_0x181650['ticketType']?_0x181650[_0x1a53bf(0x161)]:undefined})[_0x1a53bf(0x1d77)][_0x1a53bf(0x1cb0)](function(_0x267890){const _0x5eb223=_0x1a53bf;_0x373f98[_0x5eb223(0x1a28)]=!![],_0x373f98['fields']=_0x267890[_0x5eb223(0x2214)]?_0x267890[_0x5eb223(0x2214)]:[],_0x373f98['item']['idField']&&(_0x373f98[_0x5eb223(0x1d5a)]=_0x39641b()['find'](_0x373f98[_0x5eb223(0x355)],{'id':_0x373f98[_0x5eb223(0x583)][_0x5eb223(0x1e50)]}));})['catch'](function(_0x44aaa2){const _0x1eb82b=_0x1a53bf;_0x373f98['accountConnected']=![],console[_0x1eb82b(0x218e)](_0x44aaa2);});function _0x3c0827(){const _0x17b8c6=_0x1a53bf;_0x373f98['errors']=[],_0x373f98[_0x17b8c6(0x1d5a)]&&(_0x373f98[_0x17b8c6(0x583)][_0x17b8c6(0x1e50)]=_0x373f98[_0x17b8c6(0x1d5a)]['id'],_0x373f98[_0x17b8c6(0x583)][_0x17b8c6(0xc1f)]=_0x373f98['customField'][_0x17b8c6(0x16b6)],_0x373f98[_0x17b8c6(0x583)][_0x17b8c6(0x1d5a)]=_0x373f98['customField']['custom']),_0x1a9794[_0x17b8c6(0x1a47)][_0x17b8c6(0x1c3f)](_0x373f98['item'])[_0x17b8c6(0x1d77)][_0x17b8c6(0x1cb0)](function(_0x508684){const _0x4e7bd3=_0x17b8c6;_0x373f98[_0x4e7bd3(0x122f)][_0x4e7bd3(0xf63)](_0x508684),_0x6e8e94['success']({'title':_0x39641b()[_0x4e7bd3(0x432)](_0x2aa626)+_0x4e7bd3(0x220c),'msg':_0x39641b()['capitalize'](_0x2aa626)+_0x4e7bd3(0x470)}),_0x480420();})[_0x17b8c6(0x1c4)](function(_0x3c2b6e){const _0x278104=_0x17b8c6;console[_0x278104(0x218e)](_0x3c2b6e),_0x373f98[_0x278104(0x1a7c)]=_0x3c2b6e[_0x278104(0x25c)][_0x278104(0x1a7c)]||[{'message':_0x3c2b6e[_0x278104(0x147f)](),'type':_0x278104(0x1876)}];});}function _0x4187a8(){const _0x44c95a=_0x1a53bf;_0x373f98[_0x44c95a(0x1a7c)]=[],_0x373f98[_0x44c95a(0x1d5a)]&&(_0x373f98['item'][_0x44c95a(0x1e50)]=_0x373f98[_0x44c95a(0x1d5a)]['id'],_0x373f98[_0x44c95a(0x583)][_0x44c95a(0xc1f)]=_0x373f98[_0x44c95a(0x1d5a)][_0x44c95a(0x16b6)],_0x373f98[_0x44c95a(0x583)]['customField']=_0x373f98[_0x44c95a(0x1d5a)][_0x44c95a(0x197c)]),_0x1a9794[_0x44c95a(0x1a47)][_0x44c95a(0x687)]({'id':_0x373f98[_0x44c95a(0x583)]['id']},_0x373f98['item'])[_0x44c95a(0x1d77)]['then'](function(_0x13695c){const _0x3c64b3=_0x44c95a,_0x46aca6=_0x39641b()[_0x3c64b3(0x13b4)](_0x373f98[_0x3c64b3(0x122f)],{'id':_0x13695c['id']});_0x46aca6&&_0x39641b()['merge'](_0x46aca6,_0x13695c),_0x6e8e94[_0x3c64b3(0x829)]({'title':_0x39641b()['capitalize'](_0x2aa626)+_0x3c64b3(0xaf6),'msg':_0x39641b()[_0x3c64b3(0x432)](_0x2aa626)+_0x3c64b3(0xedb)}),_0x480420();})[_0x44c95a(0x1c4)](function(_0x5ef1af){const _0x131fc1=_0x44c95a;console[_0x131fc1(0x218e)](_0x5ef1af),_0x373f98['errors']=_0x5ef1af[_0x131fc1(0x25c)][_0x131fc1(0x1a7c)]||[{'message':_0x5ef1af['toString'](),'type':'api.intItem.update'}];});}function _0x3e0be0(_0x325279){const _0x3a084f=_0x1a53bf;_0x373f98[_0x3a084f(0x1a7c)]=[];const _0xc57093=_0x47230e[_0x3a084f(0x1551)]()[_0x3a084f(0x1386)](_0x3a084f(0x1a2e))['content'](_0x3a084f(0xd4c)+_0x2aa626+_0x3a084f(0x1b6))[_0x3a084f(0x15ad)]('Delete\x20'+_0x39641b()[_0x3a084f(0x432)](_0x2aa626))['ok']('Delete')[_0x3a084f(0x696)](_0x3a084f(0xde1))['targetEvent'](_0x325279);_0x47230e[_0x3a084f(0xe27)](_0xc57093)[_0x3a084f(0x1cb0)](function(){const _0x533aac=_0x3a084f;_0x1a9794[_0x533aac(0x1a47)]['delete']({'id':_0x373f98['item']['id']})[_0x533aac(0x1d77)][_0x533aac(0x1cb0)](function(){const _0xb027c0=_0x533aac;_0x39641b()[_0xb027c0(0x152a)](_0x373f98[_0xb027c0(0x122f)],{'id':_0x373f98[_0xb027c0(0x583)]['id']}),_0x6e8e94[_0xb027c0(0x829)]({'title':_0x39641b()[_0xb027c0(0x432)](_0x2aa626)+_0xb027c0(0x1621),'msg':_0x39641b()[_0xb027c0(0x432)](_0x2aa626)+_0xb027c0(0x3f5)}),_0x480420();})[_0x533aac(0x1c4)](function(_0x4898f9){const _0xd64fb3=_0x533aac;console[_0xd64fb3(0x218e)](_0x4898f9),_0x373f98[_0xd64fb3(0x1a7c)]=_0x4898f9[_0xd64fb3(0x25c)][_0xd64fb3(0x1a7c)]||[{'message':_0x4898f9[_0xd64fb3(0x147f)](),'type':_0xd64fb3(0x10e6)}];});},function(){});}function _0x849963(){const _0x5b45f2=_0x1a53bf;return _0x373f98[_0x5b45f2(0x583)][_0x5b45f2(0x1e71)]!==undefined?_0x373f98[_0x5b45f2(0x583)]['variableName']:_0x5b45f2(0x7c8);}function _0x480420(){const _0x489704=_0x1a53bf;_0x47230e[_0x489704(0x1426)]();}}const _0x523fea=_0x49d5ab;;_0x47c142[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog',_0x5537c6(0x22bf),'$translate',_0x5537c6(0x8a5),'setting','api',_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x276d),'userProfileSection'];function _0x47c142(_0x4c99c5,_0x4df217,_0x3f6f0d,_0x221a28,_0x582006,_0x1cf17d,_0x51ebf0,_0x1bdadc,_0x4266ab,_0x17d301,_0x5b96bc,_0x1c4d71){const _0x137886=_0x5537c6,_0x152ec8=this;_0x152ec8[_0x137886(0xe76)]=_0x17d301['getCurrentUser'](),_0x152ec8[_0x137886(0x8a5)]=_0x1cf17d,_0x152ec8[_0x137886(0x9ca)]=_0x51ebf0,_0x152ec8[_0x137886(0x1b0c)]=_0x152ec8[_0x137886(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x152ec8[_0x137886(0x2404)]=_0x4df217[_0x137886(0x2276)]()+_0x137886(0x138b)+_0x4df217[_0x137886(0x17d8)](),_0x152ec8['salesforceAccount']=_0x5b96bc||_0x4c99c5['params'][_0x137886(0x276d)]||{},_0x152ec8[_0x137886(0x2199)]=_0x1c4d71&&_0x1c4d71[_0x137886(0x184d)]==0x1?_0x1c4d71[_0x137886(0x2214)][0x0]:null,_0x152ec8[_0x137886(0x1b1a)]=_0x17d301[_0x137886(0x14ea)](_0x152ec8[_0x137886(0x2199)]?_0x152ec8[_0x137886(0x2199)][_0x137886(0x1b1a)]:null),_0x152ec8[_0x137886(0xf4c)]={},_0x152ec8[_0x137886(0x8ec)]=_0x4c99c5[_0x137886(0x1dfe)][_0x137886(0x291e)]||0x0,_0x152ec8[_0x137886(0x494)]=_0x4266ab[_0x137886(0x28c7)],_0x152ec8[_0x137886(0x2991)]=_0x32c096,_0x152ec8[_0x137886(0x1773)]=_0x58027a;function _0x32c096(){const _0xfc6c20=_0x137886;_0x4c99c5['go'](_0xfc6c20(0x25f7),{},{'reload':_0xfc6c20(0x25f7)});}function _0x58027a(){const _0x5d6f44=_0x137886;_0x1bdadc[_0x5d6f44(0x1186)]['update']({'id':_0x152ec8[_0x5d6f44(0x276d)]['id']},_0x152ec8['salesforceAccount'])[_0x5d6f44(0x1d77)][_0x5d6f44(0x1cb0)](function(){const _0x52f388=_0x5d6f44;_0x4266ab[_0x52f388(0x829)]({'title':'SalesforceAccount\x20updated!','msg':_0x152ec8[_0x52f388(0x276d)][_0x52f388(0x16b6)]?_0x152ec8[_0x52f388(0x276d)][_0x52f388(0x16b6)]+_0x52f388(0x1068):''});})[_0x5d6f44(0x1c4)](function(_0xe6df91){const _0x15d854=_0x5d6f44;_0x4266ab[_0x15d854(0x218e)]({'title':_0xe6df91[_0x15d854(0x291)]?_0x15d854(0xeb9)+_0xe6df91['status']+_0x15d854(0x1657)+_0xe6df91[_0x15d854(0xc22)]:'SYSTEM:GETintSalesforceAccount','msg':_0xe6df91[_0x15d854(0x25c)]?JSON[_0x15d854(0x2701)](_0xe6df91[_0x15d854(0x25c)]):_0xe6df91[_0x15d854(0x147f)]()});});}}const _0x525c1a=_0x47c142;;const _0x4c555c=_0x5074a3['p']+'src/js/modules/main/apps/integrations/views/salesforceAccounts/create/dialog.html/dialog.html';;_0x1eaef9[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$window','$state',_0x5537c6(0x417),_0x5537c6(0xcb9),'$document',_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x255e),'userProfile',_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x1eaef9(_0x845bc4,_0x1dfa0c,_0x386804,_0x4f7c0b,_0x42e34a,_0x7272ed,_0x11255b,_0x50e44c,_0x72cd56,_0x21b3fc,_0x2d28bf,_0x1e08d5,_0x5880f2,_0x3359aa,_0x23d4c3,_0xb26d6b,_0x1410f3){const _0x5290c6=_0x5537c6,_0x472f8b=this;_0x472f8b['license']=_0xb26d6b,_0x472f8b['setting']=_0x1410f3,_0x472f8b[_0x5290c6(0xe76)]=_0x23d4c3[_0x5290c6(0x21e8)](),_0x472f8b[_0x5290c6(0x255e)]=_0x72cd56||{'count':0x0,'rows':[]},_0x472f8b[_0x5290c6(0x44a)]=_0x21b3fc,_0x472f8b[_0x5290c6(0x2199)]=_0x2d28bf&&_0x2d28bf['count']==0x1?_0x2d28bf['rows'][0x0]:null,_0x472f8b[_0x5290c6(0x1b1a)]=_0x23d4c3[_0x5290c6(0x14ea)](_0x472f8b[_0x5290c6(0x2199)]?_0x472f8b[_0x5290c6(0x2199)][_0x5290c6(0x1b1a)]:null),_0x472f8b['table']=_0x5290c6(0x255e),_0x472f8b[_0x5290c6(0x1d20)]='',_0x472f8b['listOrderAsc']=null,_0x472f8b[_0x5290c6(0x1eb6)]=[],_0x472f8b[_0x5290c6(0xae2)]={'fields':_0x5290c6(0x1403),'limit':0xa,'page':0x1},_0x472f8b['arraytype']=_0x39641b()[_0x5290c6(0x2631)]([{'option':_0x5290c6(0x232c),'value':_0x5290c6(0x9f5)},{'option':'New_Tab','value':_0x5290c6(0x23e1)}],function(_0x25f4c9){const _0x5c913a=_0x5290c6;return _0x39641b()[_0x5c913a(0x288f)](_0x25f4c9[_0x5c913a(0x327)],new RegExp('\x27','g'),'');}),_0x472f8b[_0x5290c6(0x235d)]=_0x17d40f,_0x472f8b[_0x5290c6(0x6b1)]=_0x1ecc49,_0x472f8b[_0x5290c6(0x27fe)]=_0x1cde91,_0x472f8b[_0x5290c6(0x829)]=_0x386f6c,_0x472f8b[_0x5290c6(0x24c1)]=_0x1c187b,_0x472f8b['createOrEditSalesforceAccount']=_0x24b5b6,_0x472f8b[_0x5290c6(0x1650)]=_0x5130e0,_0x472f8b[_0x5290c6(0x1a7a)]=_0x35a7f1,_0x472f8b[_0x5290c6(0xbc5)]=_0x1ace5a,_0x472f8b[_0x5290c6(0x401)]=_0x26a0c5,_0x472f8b['selectAllSalesforceAccounts']=_0x44c7cf;function _0x17d40f(_0x397b62){const _0x38344a=_0x5290c6;_0x386804['go'](_0x38344a(0x248c),{'id':_0x397b62['id'],'salesforceAccount':_0x397b62,'crudPermissions':_0x472f8b[_0x38344a(0x1b1a)]});}function _0x1ecc49(_0x5d2255){const _0x1cc5f5=_0x5290c6;return _0x1e08d5[_0x1cc5f5(0x1186)][_0x1cc5f5(0xc84)]({'id':_0x5d2255['id'],'test':!![]})[_0x1cc5f5(0x1d77)]['then'](function(){const _0x2811f7=_0x1cc5f5;_0x3359aa[_0x2811f7(0x829)]({'title':_0x2811f7(0xa50),'msg':'Connection\x20succeded!'});})['catch'](function(_0x97eb5b){const _0xc7baa9=_0x1cc5f5;_0x3359aa[_0xc7baa9(0x218e)]({'title':'SalesforceAccount\x20properly\x20tested','msg':_0x97eb5b[_0xc7baa9(0x25c)]?_0x97eb5b[_0xc7baa9(0x25c)][_0xc7baa9(0x155e)]?_0x97eb5b['data'][_0xc7baa9(0x155e)]:JSON[_0xc7baa9(0x2701)](_0x97eb5b['data']):_0x97eb5b[_0xc7baa9(0x147f)]()});});}function _0x1cde91(_0x2efda4,_0x2fdbae){const _0x22a2e9=_0x5290c6,_0x220ad7=_0x42e34a[_0x22a2e9(0x1551)]()[_0x22a2e9(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x39641b()[_0x22a2e9(0xa75)]('salesforceAccount')+'?')['htmlContent'](_0x22a2e9(0x204d)+(_0x2efda4[_0x22a2e9(0x16b6)]||_0x22a2e9(0x276d))+''+_0x22a2e9(0x1b6))['ariaLabel']('delete\x20salesforceAccount')[_0x22a2e9(0x728)](_0x2fdbae)['ok']('OK')[_0x22a2e9(0x696)](_0x22a2e9(0x24ba));_0x42e34a[_0x22a2e9(0xe27)](_0x220ad7)[_0x22a2e9(0x1cb0)](function(){_0x5130e0(_0x2efda4);},function(){const _0x39c36a=_0x22a2e9;console[_0x39c36a(0x1b4f)](_0x39c36a(0x24ba));});}let _0x112e87=!![],_0x424a53=0x1;_0x845bc4['$watch']('vm.query.filter',function(_0x2d870e,_0x2669b5){const _0xf99a0f=_0x5290c6;_0x112e87?_0x11255b(function(){_0x112e87=![];}):(!_0x2669b5&&(_0x424a53=_0x472f8b[_0xf99a0f(0xae2)][_0xf99a0f(0x1c7b)]),_0x2d870e!==_0x2669b5&&(_0x472f8b[_0xf99a0f(0xae2)][_0xf99a0f(0x1c7b)]=0x1),!_0x2d870e&&(_0x472f8b[_0xf99a0f(0xae2)][_0xf99a0f(0x1c7b)]=_0x424a53),_0x472f8b[_0xf99a0f(0x24c1)]());});function _0x386f6c(_0x201ed1){const _0x1a22d1=_0x5290c6;_0x472f8b[_0x1a22d1(0x255e)]=_0x201ed1||{'count':0x0,'rows':[]};}function _0x1c187b(){const _0x3d883d=_0x5290c6;_0x472f8b[_0x3d883d(0xae2)][_0x3d883d(0x184b)]=(_0x472f8b[_0x3d883d(0xae2)][_0x3d883d(0x1c7b)]-0x1)*_0x472f8b['query'][_0x3d883d(0x236)],_0x23d4c3['hasRole'](_0x3d883d(0x1c60))?_0x472f8b[_0x3d883d(0x2061)]=_0x1e08d5[_0x3d883d(0x1186)][_0x3d883d(0xbf7)](_0x472f8b[_0x3d883d(0xae2)],_0x386f6c)[_0x3d883d(0x1d77)]:(_0x472f8b[_0x3d883d(0xae2)]['id']=_0x472f8b['userProfile']['id'],_0x472f8b[_0x3d883d(0xae2)][_0x3d883d(0x1f74)]=_0x3d883d(0x9a5),_0x472f8b[_0x3d883d(0x2061)]=_0x1e08d5[_0x3d883d(0x44a)][_0x3d883d(0x1810)](_0x472f8b[_0x3d883d(0xae2)],_0x386f6c)[_0x3d883d(0x1d77)]);}function _0x24b5b6(_0x455699,_0x15f266){const _0x5d4ad7=_0x5290c6;_0x42e34a[_0x5d4ad7(0xe27)]({'controller':'CreateOrEditSalesforceAccountDialogController','controllerAs':'vm','templateUrl':_0x4c555c,'parent':angular[_0x5d4ad7(0x1853)](_0x7272ed[_0x5d4ad7(0x1ed9)]),'targetEvent':_0x455699,'clickOutsideToClose':!![],'locals':{'salesforceAccount':_0x15f266,'salesforceAccounts':_0x472f8b[_0x5d4ad7(0x255e)]['rows'],'license':_0x472f8b[_0x5d4ad7(0x8a5)],'setting':_0x472f8b[_0x5d4ad7(0x9ca)],'crudPermissions':_0x472f8b[_0x5d4ad7(0x1b1a)]}});}function _0x5130e0(_0x3c54c4){const _0x577ca4=_0x5290c6;_0x1e08d5[_0x577ca4(0x1186)]['delete']({'id':_0x3c54c4['id']})[_0x577ca4(0x1d77)][_0x577ca4(0x1cb0)](function(){const _0x52f0f5=_0x577ca4;_0x39641b()[_0x52f0f5(0x152a)](_0x472f8b['salesforceAccounts'][_0x52f0f5(0x2214)],{'id':_0x3c54c4['id']}),_0x472f8b[_0x52f0f5(0x255e)][_0x52f0f5(0x184d)]-=0x1,!_0x472f8b[_0x52f0f5(0x255e)][_0x52f0f5(0x2214)][_0x52f0f5(0xfd0)]&&_0x472f8b[_0x52f0f5(0x24c1)](),_0x3359aa[_0x52f0f5(0x829)]({'title':_0x39641b()[_0x52f0f5(0xa75)]('SalesforceAccount')+_0x52f0f5(0x2663),'msg':_0x3c54c4['name']?_0x3c54c4[_0x52f0f5(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x577ca4(0x1c4)](function(_0x28dbf8){const _0x47d2fb=_0x577ca4;if(_0x28dbf8['data']&&_0x28dbf8[_0x47d2fb(0x25c)]['errors']&&_0x28dbf8[_0x47d2fb(0x25c)][_0x47d2fb(0x1a7c)]['length']){_0x472f8b[_0x47d2fb(0x1a7c)]=_0x28dbf8[_0x47d2fb(0x25c)][_0x47d2fb(0x1a7c)]||[{'message':_0x28dbf8[_0x47d2fb(0x147f)](),'type':_0x47d2fb(0x784)}];for(let _0x2de6d8=0x0;_0x2de6d8<_0x28dbf8[_0x47d2fb(0x25c)][_0x47d2fb(0x1a7c)]['length'];_0x2de6d8++){_0x3359aa[_0x47d2fb(0x218e)]({'title':_0x28dbf8[_0x47d2fb(0x25c)][_0x47d2fb(0x1a7c)][_0x2de6d8]['type'],'msg':_0x28dbf8[_0x47d2fb(0x25c)][_0x47d2fb(0x1a7c)][_0x2de6d8][_0x47d2fb(0x155e)]});}}else _0x3359aa['error']({'title':_0x28dbf8[_0x47d2fb(0x291)]?_0x47d2fb(0xeb9)+_0x28dbf8[_0x47d2fb(0x291)]+_0x47d2fb(0x1657)+_0x28dbf8[_0x47d2fb(0xc22)]:'SYSTEM:DELETEintSalesforceAccount','msg':_0x28dbf8[_0x47d2fb(0x25c)]?JSON['stringify'](_0x28dbf8[_0x47d2fb(0x25c)]['message']):_0x28dbf8[_0x47d2fb(0x155e)]||_0x28dbf8['toString']()});});}function _0x35a7f1(){const _0x472c82=_0x5290c6,_0x3b54c4=angular[_0x472c82(0x17fe)](_0x472f8b[_0x472c82(0x1eb6)]);return _0x472f8b['selectedSalesforceAccounts']=[],_0x3b54c4;}function _0x1ace5a(_0x39d823){const _0xf7f612=_0x5290c6,_0x1c2737=_0x42e34a[_0xf7f612(0x1551)]()[_0xf7f612(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20salesforceAccounts?')['htmlContent'](_0xf7f612(0x204d)+_0x472f8b[_0xf7f612(0x1eb6)]['length']+_0xf7f612(0x1d6c)+'\x20will\x20be\x20deleted.')[_0xf7f612(0x15ad)](_0xf7f612(0x12ea))[_0xf7f612(0x728)](_0x39d823)['ok']('OK')['cancel'](_0xf7f612(0x24ba));_0x42e34a[_0xf7f612(0xe27)](_0x1c2737)[_0xf7f612(0x1cb0)](function(){const _0x161477=_0xf7f612;_0x472f8b[_0x161477(0x1eb6)][_0x161477(0xf90)](function(_0x252e26){_0x5130e0(_0x252e26);}),_0x472f8b[_0x161477(0x1eb6)]=[];});}function _0x26a0c5(){const _0x46fe2e=_0x5290c6;_0x472f8b[_0x46fe2e(0x1eb6)]=[];}function _0x44c7cf(){const _0x349fc5=_0x5290c6;_0x472f8b[_0x349fc5(0x1eb6)]=_0x472f8b[_0x349fc5(0x255e)][_0x349fc5(0x2214)];}}const _0x252395=_0x1eaef9;;_0x3add75[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state','$location',_0x5537c6(0xcb9),'$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0x1525),_0x5537c6(0x12bc),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x3add75(_0x2f2298,_0x361cdd,_0x161324,_0x359845,_0x1e2508,_0x3d1533,_0x1f256c,_0x1c5796,_0x20fd63,_0x4251e2,_0x4a2ba5,_0x3ed190,_0x159540,_0x22de5e){const _0x1ca8f2=_0x5537c6,_0x211360=this;_0x211360['currentUser']=_0x4a2ba5[_0x1ca8f2(0x21e8)](),_0x211360['errors']=[],_0x211360[_0x1ca8f2(0x9ca)]=_0x159540,_0x211360[_0x1ca8f2(0x8a5)]=_0x3ed190,_0x211360[_0x1ca8f2(0x1b1a)]=_0x22de5e,_0x211360[_0x1ca8f2(0xf4c)]={},_0x211360['passwordPattern']=_0x211360[_0x1ca8f2(0x9ca)]&&_0x211360[_0x1ca8f2(0x9ca)][_0x1ca8f2(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x211360[_0x1ca8f2(0x1386)]=_0x1ca8f2(0x1deb),_0x211360[_0x1ca8f2(0x12bc)]=angular[_0x1ca8f2(0x17fe)](_0x20fd63),_0x211360[_0x1ca8f2(0x1525)]=_0x1c5796,_0x211360['newServicenowAccount']=![];!_0x211360[_0x1ca8f2(0x12bc)]&&(_0x211360[_0x1ca8f2(0x12bc)]={'serverUrl':_0x161324['protocol']()+_0x1ca8f2(0x138b)+_0x161324['host']()+(_0x161324[_0x1ca8f2(0x477)]()?':'+_0x161324[_0x1ca8f2(0x477)]():'')},_0x211360['title']=_0x1ca8f2(0x1c8e),_0x211360[_0x1ca8f2(0xc45)]=!![]);_0x211360[_0x1ca8f2(0x7d8)]=_0x313369,_0x211360[_0x1ca8f2(0xa32)]=_0x3bda6f,_0x211360[_0x1ca8f2(0x69c)]=_0x252615,_0x211360['getDateFromString']=_0x43c743,_0x211360[_0x1ca8f2(0xda0)]=_0x457636;function _0x313369(){const _0x5a18c5=_0x1ca8f2;_0x211360['errors']=[],_0x4251e2[_0x5a18c5(0x901)]['save'](_0x211360[_0x5a18c5(0x12bc)])[_0x5a18c5(0x1d77)][_0x5a18c5(0x1cb0)](function(_0x2cf50a){const _0x2aaba5=_0x5a18c5;_0x211360['servicenowAccounts'][_0x2aaba5(0xf63)](_0x2cf50a[_0x2aaba5(0x19b2)]()),_0x1f256c[_0x2aaba5(0x829)]({'title':_0x2aaba5(0x81d),'msg':_0x211360['servicenowAccount'][_0x2aaba5(0x16b6)]?_0x211360[_0x2aaba5(0x12bc)][_0x2aaba5(0x16b6)]+_0x2aaba5(0x470):''}),_0x457636(_0x2cf50a);})['catch'](function(_0x19bf29){const _0x7bb804=_0x5a18c5;if(_0x19bf29[_0x7bb804(0x25c)]&&_0x19bf29['data'][_0x7bb804(0x1a7c)]&&_0x19bf29[_0x7bb804(0x25c)][_0x7bb804(0x1a7c)][_0x7bb804(0xfd0)]){_0x211360['errors']=_0x19bf29[_0x7bb804(0x25c)]['errors']||[{'message':_0x19bf29['toString'](),'type':_0x7bb804(0xeac)}];for(let _0x4d1d88=0x0;_0x4d1d88<_0x19bf29[_0x7bb804(0x25c)][_0x7bb804(0x1a7c)]['length'];_0x4d1d88+=0x1){_0x1f256c[_0x7bb804(0x218e)]({'title':_0x19bf29['data'][_0x7bb804(0x1a7c)][_0x4d1d88][_0x7bb804(0x66a)],'msg':_0x19bf29[_0x7bb804(0x25c)][_0x7bb804(0x1a7c)][_0x4d1d88][_0x7bb804(0x155e)]});}}else _0x1f256c[_0x7bb804(0x218e)]({'title':_0x19bf29[_0x7bb804(0x291)]?_0x7bb804(0xeb9)+_0x19bf29[_0x7bb804(0x291)]+_0x7bb804(0x1657)+_0x19bf29[_0x7bb804(0xc22)]:_0x7bb804(0xeac),'msg':_0x19bf29['data']?JSON[_0x7bb804(0x2701)](_0x19bf29['data'][_0x7bb804(0x155e)]):_0x19bf29[_0x7bb804(0x147f)]()});});}function _0x3bda6f(){const _0x5ad0b4=_0x1ca8f2;_0x211360['errors']=[],_0x4251e2['intServicenowAccount']['update']({'id':_0x211360[_0x5ad0b4(0x12bc)]['id']},_0x211360['servicenowAccount'])[_0x5ad0b4(0x1d77)]['then'](function(_0x33800e){const _0x2aa941=_0x5ad0b4,_0x2b63b3=_0x39641b()['find'](_0x211360['servicenowAccounts'],{'id':_0x33800e['id']});_0x2b63b3&&_0x39641b()[_0x2aa941(0x9c1)](_0x2b63b3,_0x39641b()[_0x2aa941(0x169b)](_0x33800e[_0x2aa941(0x19b2)](),_0x39641b()[_0x2aa941(0x1be5)](_0x2b63b3))),_0x1f256c[_0x2aa941(0x829)]({'title':_0x2aa941(0x1d7d),'msg':_0x211360['servicenowAccount']['name']?_0x211360['servicenowAccount'][_0x2aa941(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x457636(_0x33800e);})[_0x5ad0b4(0x1c4)](function(_0x217ac4){const _0x1954a1=_0x5ad0b4;if(_0x217ac4[_0x1954a1(0x25c)]&&_0x217ac4[_0x1954a1(0x25c)][_0x1954a1(0x1a7c)]&&_0x217ac4[_0x1954a1(0x25c)][_0x1954a1(0x1a7c)][_0x1954a1(0xfd0)]){_0x211360[_0x1954a1(0x1a7c)]=_0x217ac4[_0x1954a1(0x25c)][_0x1954a1(0x1a7c)]||[{'message':_0x217ac4[_0x1954a1(0x147f)](),'type':_0x1954a1(0x11b3)}];for(let _0x44182e=0x0;_0x44182e<_0x217ac4[_0x1954a1(0x25c)][_0x1954a1(0x1a7c)]['length'];_0x44182e++){_0x1f256c['error']({'title':_0x217ac4[_0x1954a1(0x25c)][_0x1954a1(0x1a7c)][_0x44182e][_0x1954a1(0x66a)],'msg':_0x217ac4[_0x1954a1(0x25c)][_0x1954a1(0x1a7c)][_0x44182e][_0x1954a1(0x155e)]});}}else _0x1f256c[_0x1954a1(0x218e)]({'title':_0x217ac4[_0x1954a1(0x291)]?_0x1954a1(0xeb9)+_0x217ac4[_0x1954a1(0x291)]+_0x1954a1(0x1657)+_0x217ac4['statusText']:_0x1954a1(0x11b3),'msg':_0x217ac4['data']?JSON['stringify'](_0x217ac4['data'][_0x1954a1(0x155e)]):_0x217ac4[_0x1954a1(0x147f)]()});});}function _0x252615(_0x38ed4f){const _0x4fdfdd=_0x1ca8f2;_0x211360['errors']=[];const _0xf031ab=_0x359845[_0x4fdfdd(0x1551)]()[_0x4fdfdd(0x1386)](_0x4fdfdd(0x1a2e))[_0x4fdfdd(0x862)](_0x4fdfdd(0x1eaf))[_0x4fdfdd(0x15ad)](_0x4fdfdd(0x1c4e))['ok']('Delete')['cancel'](_0x4fdfdd(0xde1))[_0x4fdfdd(0x728)](_0x38ed4f);_0x359845['show'](_0xf031ab)[_0x4fdfdd(0x1cb0)](function(){const _0x1184b3=_0x4fdfdd;_0x4251e2['intServicenowAccount'][_0x1184b3(0x111d)]({'id':_0x211360[_0x1184b3(0x12bc)]['id']})[_0x1184b3(0x1d77)][_0x1184b3(0x1cb0)](function(){const _0xedbdbd=_0x1184b3;_0x39641b()[_0xedbdbd(0x152a)](_0x211360['servicenowAccounts'],{'id':_0x211360[_0xedbdbd(0x12bc)]['id']}),_0x1f256c[_0xedbdbd(0x829)]({'title':_0xedbdbd(0x7c4),'msg':(_0x211360['servicenowAccount'][_0xedbdbd(0x16b6)]||_0xedbdbd(0x12bc))+_0xedbdbd(0x3f5)}),_0x457636(_0x211360[_0xedbdbd(0x12bc)]);})[_0x1184b3(0x1c4)](function(_0x532d13){const _0x1db03f=_0x1184b3;if(_0x532d13[_0x1db03f(0x25c)]&&_0x532d13[_0x1db03f(0x25c)][_0x1db03f(0x1a7c)]&&_0x532d13[_0x1db03f(0x25c)][_0x1db03f(0x1a7c)][_0x1db03f(0xfd0)]){_0x211360[_0x1db03f(0x1a7c)]=_0x532d13[_0x1db03f(0x25c)][_0x1db03f(0x1a7c)]||[{'message':_0x532d13[_0x1db03f(0x147f)](),'type':_0x1db03f(0x1d02)}];for(let _0xfd85f7=0x0;_0xfd85f7<_0x532d13[_0x1db03f(0x25c)][_0x1db03f(0x1a7c)][_0x1db03f(0xfd0)];_0xfd85f7++){_0x1f256c[_0x1db03f(0x218e)]({'title':_0x532d13['data'][_0x1db03f(0x1a7c)][_0xfd85f7]['type'],'msg':_0x532d13[_0x1db03f(0x25c)][_0x1db03f(0x1a7c)][_0xfd85f7][_0x1db03f(0x155e)]});}}else _0x1f256c[_0x1db03f(0x218e)]({'title':_0x532d13[_0x1db03f(0x291)]?_0x1db03f(0xeb9)+_0x532d13[_0x1db03f(0x291)]+_0x1db03f(0x1657)+_0x532d13[_0x1db03f(0xc22)]:_0x1db03f(0x1d02),'msg':_0x532d13[_0x1db03f(0x25c)]?JSON[_0x1db03f(0x2701)](_0x532d13[_0x1db03f(0x25c)][_0x1db03f(0x155e)]):_0x532d13[_0x1db03f(0x155e)]||_0x532d13['toString']()});});},function(){});}function _0x43c743(_0x2737bc){return _0x2737bc===null?undefined:new Date(_0x2737bc);}function _0x457636(_0x1ec23d){const _0x101175=_0x1ca8f2;_0x359845[_0x101175(0x1426)](_0x1ec23d);}}const _0x5e6e1d=_0x3add75;;const _0x224a82=_0x5074a3['p']+_0x5537c6(0x1c38);;const _0x16a355=_0x5074a3['p']+_0x5537c6(0x1905);;_0x4190e7[_0x5537c6(0x15b6)]=['$mdDialog','$document',_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774)];function _0x4190e7(_0x395ac0,_0x251f3c,_0x102f68,_0x15ee42,_0x16449f){const _0x182346=_0x5537c6,_0x45b8d6=this;_0x45b8d6[_0x182346(0xe76)]=_0x16449f[_0x182346(0x21e8)](),_0x45b8d6[_0x182346(0x12bc)]={},_0x45b8d6[_0x182346(0xddd)]={},_0x45b8d6[_0x182346(0xa06)]=[],_0x45b8d6[_0x182346(0x757)]=-0x1,_0x45b8d6['crudPermissions'],_0x45b8d6[_0x182346(0x1a8e)]=_0x2c6510,_0x45b8d6[_0x182346(0x23ea)]=_0x358f1e,_0x45b8d6[_0x182346(0xa48)]=_0x1e4eca,_0x45b8d6[_0x182346(0x1469)]=_0x2c1149;function _0x2c6510(_0x1a6666,_0x80c750){const _0x585aeb=_0x182346;_0x45b8d6[_0x585aeb(0x12bc)]=_0x1a6666,_0x45b8d6[_0x585aeb(0x1b1a)]=typeof _0x80c750!==_0x585aeb(0x16b5)?_0x80c750:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x102f68[_0x585aeb(0x901)][_0x585aeb(0x618)]({'id':_0x45b8d6[_0x585aeb(0x12bc)]['id'],'sort':_0x585aeb(0x282)})['$promise']['then'](function(_0x3ec92a){const _0x11fa3e=_0x585aeb;return _0x45b8d6[_0x11fa3e(0xa06)]=_0x3ec92a[_0x11fa3e(0x2214)]?_0x3ec92a['rows']:[],_0x45b8d6[_0x11fa3e(0xa06)]['length']&&_0x45b8d6[_0x11fa3e(0x23ea)](0x0),_0x102f68[_0x11fa3e(0x1822)][_0x11fa3e(0xbf7)]({'nolimit':!![],'sort':_0x11fa3e(0x16b6)})[_0x11fa3e(0x1d77)];})[_0x585aeb(0x1cb0)](function(_0x255fa5){const _0x413007=_0x585aeb;_0x45b8d6['variables']=_0x255fa5[_0x413007(0x2214)]?_0x255fa5[_0x413007(0x2214)]:[],_0x45b8d6['variablesById']=_0x39641b()['keyBy'](_0x45b8d6[_0x413007(0x9a9)],'id');})[_0x585aeb(0x1c4)](function(_0x3c00d9){const _0x28a70f=_0x585aeb;_0x15ee42[_0x28a70f(0x218e)]({'title':_0x3c00d9[_0x28a70f(0x291)]?_0x28a70f(0xeb9)+_0x3c00d9['status']+_0x28a70f(0x1657)+_0x3c00d9[_0x28a70f(0xc22)]:_0x28a70f(0x1b0f),'msg':_0x3c00d9[_0x28a70f(0x25c)]?JSON['stringify'](_0x3c00d9['data']):_0x3c00d9['toString']()});});}function _0x358f1e(_0x3e5005){const _0x2c2cea=_0x182346;_0x45b8d6['servicenowConfiguration']=_0x45b8d6[_0x2c2cea(0xa06)][_0x3e5005],_0x45b8d6[_0x2c2cea(0x757)]=_0x3e5005,_0x102f68[_0x2c2cea(0x739)][_0x2c2cea(0x243a)]({'id':_0x45b8d6['servicenowConfiguration']['id']})['$promise'][_0x2c2cea(0x1cb0)](function(_0x34e1c8){const _0x219298=_0x2c2cea;return _0x45b8d6['subjects']=_0x34e1c8[_0x219298(0x2214)]?_0x34e1c8[_0x219298(0x2214)]:[],_0x102f68[_0x219298(0x739)][_0x219298(0xb6d)]({'id':_0x45b8d6[_0x219298(0xddd)]['id']})[_0x219298(0x1d77)];})[_0x2c2cea(0x1cb0)](function(_0x2170b5){const _0x2fadba=_0x2c2cea;return _0x45b8d6[_0x2fadba(0x310)]=_0x2170b5[_0x2fadba(0x2214)]?_0x2170b5[_0x2fadba(0x2214)]:[],_0x102f68['intServicenowConfiguration'][_0x2fadba(0xc84)]({'id':_0x45b8d6[_0x2fadba(0xddd)]['id']})[_0x2fadba(0x1d77)];})[_0x2c2cea(0x1cb0)](function(_0x5e0f2e){const _0x547240=_0x2c2cea;_0x45b8d6['fields']=_0x5e0f2e[_0x547240(0x2214)]?_0x5e0f2e[_0x547240(0x2214)]:[];})[_0x2c2cea(0x1c4)](function(_0x763790){const _0x50ee54=_0x2c2cea;_0x15ee42[_0x50ee54(0x218e)]({'title':_0x763790[_0x50ee54(0x291)]?_0x50ee54(0xeb9)+_0x763790[_0x50ee54(0x291)]+_0x50ee54(0x1657)+_0x763790['statusText']:'SYSTEM:GETConfigurations','msg':_0x763790[_0x50ee54(0x25c)]?JSON['stringify'](_0x763790['data']):_0x763790['toString']()});});}function _0x1e4eca(_0x56c0b9,_0x5d5166){const _0x76a800=_0x182346;_0x395ac0[_0x76a800(0xe27)]({'controller':'CreateOrEditServicenowConfigurationDialogController','controllerAs':'vm','templateUrl':_0x224a82,'parent':angular[_0x76a800(0x1853)](_0x251f3c[_0x76a800(0x1ed9)]),'targetEvent':_0x56c0b9,'clickOutsideToClose':!![],'locals':{'servicenowConfiguration':_0x5d5166,'configurations':_0x45b8d6['configurations'],'license':null,'setting':null,'crudPermissions':_0x45b8d6[_0x76a800(0x1b1a)]}})[_0x76a800(0x2e0)](function(){_0x45b8d6['getServicenowConfiguration'](0x0);});}function _0x2c1149(_0x3bba29,_0x37487b){const _0x73dec0=_0x182346,_0x5b1df7=_0x395ac0[_0x73dec0(0x1551)]()['title'](_0x73dec0(0x63c))[_0x73dec0(0x49e)](_0x73dec0(0x204d)+(_0x37487b[_0x73dec0(0x16b6)]||'servicenowConfiguration')+''+_0x73dec0(0x1b6))[_0x73dec0(0x15ad)](_0x73dec0(0x23e0))[_0x73dec0(0x728)](_0x3bba29)['ok']('OK')['cancel']('CANCEL');_0x395ac0[_0x73dec0(0xe27)](_0x5b1df7)[_0x73dec0(0x1cb0)](function(){const _0x5e739d=_0x73dec0;_0x102f68['intServicenowConfiguration']['delete']({'id':_0x37487b['id']})['$promise']['then'](function(){const _0x584e60=a0_0x5cbd;_0x39641b()[_0x584e60(0x152a)](_0x45b8d6['configurations'],{'id':_0x37487b['id']}),_0x15ee42[_0x584e60(0x829)]({'title':'ServicenowConfiguration\x20deleted!','msg':_0x37487b[_0x584e60(0x16b6)]?_0x37487b[_0x584e60(0x16b6)]+_0x584e60(0x3f5):''});})[_0x5e739d(0x1c4)](function(_0x2dd02d){const _0x546577=_0x5e739d;_0x15ee42[_0x546577(0x218e)]({'title':_0x2dd02d[_0x546577(0x291)]?'API:'+_0x2dd02d[_0x546577(0x291)]+_0x546577(0x1657)+_0x2dd02d[_0x546577(0xc22)]:_0x546577(0x543),'msg':_0x2dd02d[_0x546577(0x25c)]?JSON['stringify'](_0x2dd02d['data']):_0x2dd02d[_0x546577(0x147f)]()});})[_0x5e739d(0x2e0)](function(){const _0x274717=_0x5e739d;_0x45b8d6[_0x274717(0x23ea)](0x0);});},function(){const _0x382c90=_0x73dec0;console[_0x382c90(0x1b4f)](_0x382c90(0x24ba));});}_0x45b8d6[_0x182346(0x4df)]=[],_0x45b8d6[_0x182346(0x1267)]=_0x14fc39,_0x45b8d6['deleteSubjectConfirm']=_0x358567,_0x45b8d6['deleteSelectedSubjects']=_0x30711a;function _0x14fc39(_0x2eb2c2,_0x411620){const _0x15f254=_0x182346;_0x395ac0[_0x15f254(0xe27)]({'controller':_0x15f254(0x273b),'controllerAs':'vm','templateUrl':_0x16a355,'parent':angular[_0x15f254(0x1853)](_0x251f3c[_0x15f254(0x1ed9)]),'targetEvent':_0x2eb2c2,'clickOutsideToClose':!![],'locals':{'type':_0x15f254(0x1e5d),'item':_0x411620,'items':_0x45b8d6[_0x15f254(0x2388)],'configuration':_0x45b8d6[_0x15f254(0xddd)],'account':_0x45b8d6[_0x15f254(0x12bc)],'license':null,'setting':null,'crudPermissions':_0x45b8d6['crudPermissions']}});}function _0x8a72f7(_0xb8af21){const _0x447b14=_0x182346;_0x102f68[_0x447b14(0x1ce8)][_0x447b14(0x111d)]({'id':_0xb8af21['id']})[_0x447b14(0x1d77)]['then'](function(){const _0x3a9bc9=_0x447b14;_0x39641b()[_0x3a9bc9(0x152a)](_0x45b8d6['subjects'],{'id':_0xb8af21['id']}),_0x15ee42[_0x3a9bc9(0x829)]({'title':_0x3a9bc9(0x1d11),'msg':_0x3a9bc9(0x145d)});})[_0x447b14(0x1c4)](function(_0x53d2e3){const _0x6fe7fe=_0x447b14;_0x15ee42[_0x6fe7fe(0x218e)]({'title':_0x53d2e3[_0x6fe7fe(0x291)]?'API:'+_0x53d2e3[_0x6fe7fe(0x291)]+_0x6fe7fe(0x1657)+_0x53d2e3[_0x6fe7fe(0xc22)]:_0x6fe7fe(0x13e5),'msg':_0x53d2e3['data']?JSON[_0x6fe7fe(0x2701)](_0x53d2e3['data']):_0x53d2e3[_0x6fe7fe(0x147f)]()});});}function _0x358567(_0x3afc16,_0xc137d2){const _0x33f94c=_0x182346,_0x154972=_0x395ac0[_0x33f94c(0x1551)]()[_0x33f94c(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0x33f94c(0x49e)](_0x33f94c(0x14ee)+_0x33f94c(0x1b6))[_0x33f94c(0x15ad)](_0x33f94c(0xbc3))[_0x33f94c(0x728)](_0x3afc16)['ok']('OK')['cancel'](_0x33f94c(0x24ba));_0x395ac0[_0x33f94c(0xe27)](_0x154972)[_0x33f94c(0x1cb0)](function(){_0x8a72f7(_0xc137d2);},function(){const _0x33ac0a=_0x33f94c;console[_0x33ac0a(0x1b4f)](_0x33ac0a(0x24ba));});}function _0x30711a(_0x1e6af2){const _0x54da2e=_0x182346,_0x5808aa=_0x395ac0['confirm']()['title'](_0x54da2e(0x1f8e))['htmlContent'](''+_0x45b8d6[_0x54da2e(0x4df)][_0x54da2e(0xfd0)]+_0x54da2e(0x1d6c)+_0x54da2e(0x1b6))[_0x54da2e(0x15ad)]('delete\x20subjects')[_0x54da2e(0x728)](_0x1e6af2)['ok']('OK')[_0x54da2e(0x696)](_0x54da2e(0x24ba));_0x395ac0[_0x54da2e(0xe27)](_0x5808aa)['then'](function(){const _0x1a94ac=_0x54da2e;_0x45b8d6[_0x1a94ac(0x4df)][_0x1a94ac(0xf90)](function(_0x4eb729){_0x8a72f7(_0x4eb729);}),_0x45b8d6[_0x1a94ac(0x4df)]=[];});}_0x45b8d6[_0x182346(0xac6)]=[],_0x45b8d6[_0x182346(0x14c7)]=_0x25e396,_0x45b8d6[_0x182346(0xc09)]=_0x55f792,_0x45b8d6[_0x182346(0x2931)]=_0x27cdba;function _0x25e396(_0x4810a1,_0x5a6785){const _0x3209b8=_0x182346;_0x395ac0[_0x3209b8(0xe27)]({'controller':_0x3209b8(0x273b),'controllerAs':'vm','templateUrl':_0x16a355,'parent':angular[_0x3209b8(0x1853)](_0x251f3c['body']),'targetEvent':_0x4810a1,'clickOutsideToClose':!![],'locals':{'type':_0x3209b8(0x2c1),'item':_0x5a6785,'items':_0x45b8d6['descriptions'],'configuration':_0x45b8d6[_0x3209b8(0xddd)],'account':_0x45b8d6[_0x3209b8(0x12bc)],'license':null,'setting':null,'crudPermissions':_0x45b8d6[_0x3209b8(0x1b1a)]}});}function _0x476264(_0x19bf00){const _0x5193d7=_0x182346;_0x102f68[_0x5193d7(0x1ce8)]['delete']({'id':_0x19bf00['id']})['$promise']['then'](function(){const _0x4af8ec=_0x5193d7;_0x39641b()[_0x4af8ec(0x152a)](_0x45b8d6['descriptions'],{'id':_0x19bf00['id']}),_0x15ee42[_0x4af8ec(0x829)]({'title':'Description\x20deleted!','msg':_0x4af8ec(0xb59)});})[_0x5193d7(0x1c4)](function(_0x1d0d85){const _0x8e8c13=_0x5193d7;_0x15ee42[_0x8e8c13(0x218e)]({'title':_0x1d0d85[_0x8e8c13(0x291)]?'API:'+_0x1d0d85[_0x8e8c13(0x291)]+_0x8e8c13(0x1657)+_0x1d0d85[_0x8e8c13(0xc22)]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x1d0d85[_0x8e8c13(0x25c)]?JSON['stringify'](_0x1d0d85[_0x8e8c13(0x25c)]):_0x1d0d85[_0x8e8c13(0x147f)]()});});}function _0x55f792(_0x1fdbc0,_0x324b85){const _0x46819f=_0x182346,_0x46a15c=_0x395ac0['confirm']()[_0x46819f(0x1386)](_0x46819f(0x7d2))[_0x46819f(0x49e)](_0x46819f(0x18b8)+'\x20will\x20be\x20deleted.')[_0x46819f(0x15ad)]('delete\x20description')[_0x46819f(0x728)](_0x1fdbc0)['ok']('OK')[_0x46819f(0x696)](_0x46819f(0x24ba));_0x395ac0['show'](_0x46a15c)[_0x46819f(0x1cb0)](function(){_0x476264(_0x324b85);},function(){const _0x389820=_0x46819f;console[_0x389820(0x1b4f)](_0x389820(0x24ba));});}function _0x27cdba(_0x483ba1){const _0x165d1c=_0x182346,_0x39aa78=_0x395ac0[_0x165d1c(0x1551)]()[_0x165d1c(0x1386)](_0x165d1c(0x2e7))[_0x165d1c(0x49e)](_0x165d1c(0x204d)+_0x45b8d6[_0x165d1c(0xac6)][_0x165d1c(0xfd0)]+'\x20selected'+_0x165d1c(0x1b6))[_0x165d1c(0x15ad)](_0x165d1c(0x1828))[_0x165d1c(0x728)](_0x483ba1)['ok']('OK')[_0x165d1c(0x696)](_0x165d1c(0x24ba));_0x395ac0[_0x165d1c(0xe27)](_0x39aa78)['then'](function(){const _0x25da2f=_0x165d1c;_0x45b8d6[_0x25da2f(0xac6)][_0x25da2f(0xf90)](function(_0xd185b){_0x476264(_0xd185b);}),_0x45b8d6[_0x25da2f(0xac6)]=[];});}_0x45b8d6[_0x182346(0x9b2)]=[],_0x45b8d6[_0x182346(0x5e9)]=_0x1df3de,_0x45b8d6['deleteFieldConfirm']=_0x26e95e,_0x45b8d6['deleteSelectedFields']=_0x28fa71;function _0x1df3de(_0x57b12d,_0xd9883f){const _0xd8df71=_0x182346;_0x395ac0[_0xd8df71(0xe27)]({'controller':_0xd8df71(0x273b),'controllerAs':'vm','templateUrl':_0x16a355,'parent':angular[_0xd8df71(0x1853)](_0x251f3c[_0xd8df71(0x1ed9)]),'targetEvent':_0x57b12d,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0xd9883f,'items':_0x45b8d6[_0xd8df71(0x355)],'configuration':_0x45b8d6[_0xd8df71(0xddd)],'account':_0x45b8d6[_0xd8df71(0x12bc)],'license':null,'setting':null,'crudPermissions':_0x45b8d6[_0xd8df71(0x1b1a)]}});}function _0x3ee942(_0x2cdacf){const _0x1861c8=_0x182346;_0x102f68[_0x1861c8(0x1ce8)][_0x1861c8(0x111d)]({'id':_0x2cdacf['id']})[_0x1861c8(0x1d77)]['then'](function(){const _0x345827=_0x1861c8;_0x39641b()[_0x345827(0x152a)](_0x45b8d6[_0x345827(0x355)],{'id':_0x2cdacf['id']}),_0x15ee42[_0x345827(0x829)]({'title':'Field\x20deleted!','msg':'Field\x20has\x20been\x20deleted!'});})['catch'](function(_0x87f809){const _0x51047e=_0x1861c8;_0x15ee42['error']({'title':_0x87f809[_0x51047e(0x291)]?_0x51047e(0xeb9)+_0x87f809[_0x51047e(0x291)]+'\x20-\x20'+_0x87f809[_0x51047e(0xc22)]:_0x51047e(0x13e5),'msg':_0x87f809['data']?JSON[_0x51047e(0x2701)](_0x87f809['data']):_0x87f809[_0x51047e(0x147f)]()});});}function _0x26e95e(_0x1bc8a0,_0x203586){const _0x5d60d7=_0x182346,_0x302a56=_0x395ac0['confirm']()[_0x5d60d7(0x1386)](_0x5d60d7(0x21a9))[_0x5d60d7(0x49e)]('Field'+'\x20will\x20be\x20deleted.')[_0x5d60d7(0x15ad)](_0x5d60d7(0x21ee))[_0x5d60d7(0x728)](_0x1bc8a0)['ok']('OK')[_0x5d60d7(0x696)]('CANCEL');_0x395ac0[_0x5d60d7(0xe27)](_0x302a56)[_0x5d60d7(0x1cb0)](function(){_0x3ee942(_0x203586);},function(){const _0x19f8d6=_0x5d60d7;console[_0x19f8d6(0x1b4f)](_0x19f8d6(0x24ba));});}function _0x28fa71(_0x29ad54){const _0x3f112f=_0x182346,_0x64d229=_0x395ac0[_0x3f112f(0x1551)]()[_0x3f112f(0x1386)](_0x3f112f(0x983))['htmlContent'](_0x3f112f(0x204d)+_0x45b8d6['selectedFields'][_0x3f112f(0xfd0)]+_0x3f112f(0x1d6c)+'\x20will\x20be\x20deleted.')[_0x3f112f(0x15ad)]('delete\x20fields')[_0x3f112f(0x728)](_0x29ad54)['ok']('OK')[_0x3f112f(0x696)](_0x3f112f(0x24ba));_0x395ac0['show'](_0x64d229)['then'](function(){const _0x18770b=_0x3f112f;_0x45b8d6[_0x18770b(0x9b2)][_0x18770b(0xf90)](function(_0xea13eb){_0x3ee942(_0xea13eb);}),_0x45b8d6[_0x18770b(0x9b2)]=[];});}}const _0x5dbd0f=_0x4190e7;;_0x4c47d2[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),'$location',_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),'configurations','servicenowConfiguration','api',_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting','crudPermissions'];function _0x4c47d2(_0x19faa8,_0x3c33c4,_0x41b76a,_0x48cd4c,_0x4cb142,_0x24351e,_0x2f9899,_0x31af67,_0x466bad,_0x50c779,_0xe093f5,_0x404f58,_0x3c02ea,_0x6015d5){const _0x4bb2b1=_0x5537c6,_0x418f3e=this;_0x418f3e[_0x4bb2b1(0xe76)]=_0xe093f5['getCurrentUser'](),_0x418f3e[_0x4bb2b1(0x1a7c)]=[],_0x418f3e[_0x4bb2b1(0x9ca)]=_0x3c02ea,_0x418f3e[_0x4bb2b1(0x8a5)]=_0x404f58,_0x418f3e[_0x4bb2b1(0x1b1a)]=_0x6015d5,_0x418f3e[_0x4bb2b1(0xf4c)]={},_0x418f3e[_0x4bb2b1(0x1b0c)]=_0x418f3e['setting']&&_0x418f3e[_0x4bb2b1(0x9ca)][_0x4bb2b1(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x418f3e[_0x4bb2b1(0x1386)]=_0x4bb2b1(0x14cd),_0x418f3e['servicenowConfiguration']=angular[_0x4bb2b1(0x17fe)](_0x466bad),_0x418f3e[_0x4bb2b1(0xa06)]=_0x31af67,_0x418f3e[_0x4bb2b1(0x1b74)]=![];!_0x418f3e[_0x4bb2b1(0xddd)]&&(_0x418f3e[_0x4bb2b1(0xddd)]={'channel':_0x4bb2b1(0x1fd4),'type':_0x4bb2b1(0x26c0)},_0x418f3e[_0x4bb2b1(0x1386)]='INTEGRATIONS.NEW_SERVICENOWCONFIGURATION',_0x418f3e[_0x4bb2b1(0x1b74)]=!![]);_0x418f3e['addNewServicenowConfiguration']=_0xc5ae53,_0x418f3e[_0x4bb2b1(0x1e8)]=_0x3a296e,_0x418f3e[_0x4bb2b1(0x1469)]=_0x337ad3,_0x418f3e[_0x4bb2b1(0x2c4)]=_0x474966,_0x418f3e[_0x4bb2b1(0xda0)]=_0xba37cb;function _0xc5ae53(){const _0x109300=_0x4bb2b1;_0x418f3e[_0x109300(0x1a7c)]=[],_0x50c779[_0x109300(0x901)][_0x109300(0x1070)]({'id':_0x3c33c4[_0x109300(0x1dfe)]['id']},_0x418f3e[_0x109300(0xddd)])[_0x109300(0x1d77)][_0x109300(0x1cb0)](function(_0x459f12){const _0x472130=_0x109300;_0x418f3e[_0x472130(0xa06)][_0x472130(0xf63)](_0x459f12[_0x472130(0x19b2)]()),_0x2f9899[_0x472130(0x829)]({'title':_0x472130(0x1a5a),'msg':_0x418f3e[_0x472130(0xddd)][_0x472130(0x16b6)]?_0x418f3e[_0x472130(0xddd)][_0x472130(0x16b6)]+_0x472130(0x470):''}),_0xba37cb(_0x459f12);})[_0x109300(0x1c4)](function(_0x3ce665){const _0x23af80=_0x109300;if(_0x3ce665[_0x23af80(0x25c)]&&_0x3ce665[_0x23af80(0x25c)][_0x23af80(0x1a7c)]&&_0x3ce665[_0x23af80(0x25c)][_0x23af80(0x1a7c)][_0x23af80(0xfd0)]){_0x418f3e['errors']=_0x3ce665[_0x23af80(0x25c)][_0x23af80(0x1a7c)]||[{'message':_0x3ce665[_0x23af80(0x147f)](),'type':_0x23af80(0x26e4)}];for(let _0x55706f=0x0;_0x55706f<_0x3ce665[_0x23af80(0x25c)][_0x23af80(0x1a7c)][_0x23af80(0xfd0)];_0x55706f+=0x1){_0x2f9899[_0x23af80(0x218e)]({'title':_0x3ce665[_0x23af80(0x25c)][_0x23af80(0x1a7c)][_0x55706f]['type'],'msg':_0x3ce665['data'][_0x23af80(0x1a7c)][_0x55706f][_0x23af80(0x155e)]});}}else _0x2f9899[_0x23af80(0x218e)]({'title':_0x3ce665[_0x23af80(0x291)]?_0x23af80(0xeb9)+_0x3ce665[_0x23af80(0x291)]+'\x20-\x20'+_0x3ce665[_0x23af80(0xc22)]:'api.intServicenowConfiguration.save','msg':_0x3ce665[_0x23af80(0x25c)]?JSON[_0x23af80(0x2701)](_0x3ce665[_0x23af80(0x25c)][_0x23af80(0x155e)]):_0x3ce665['toString']()});});}function _0x3a296e(){const _0x3b89ff=_0x4bb2b1;_0x418f3e['errors']=[],_0x50c779['intServicenowConfiguration'][_0x3b89ff(0x687)]({'id':_0x418f3e[_0x3b89ff(0xddd)]['id']},_0x418f3e[_0x3b89ff(0xddd)])[_0x3b89ff(0x1d77)][_0x3b89ff(0x1cb0)](function(_0x6524f3){const _0x175c43=_0x3b89ff,_0x14d2fa=_0x39641b()[_0x175c43(0x13b4)](_0x418f3e[_0x175c43(0xa06)],{'id':_0x6524f3['id']});_0x14d2fa&&_0x39641b()['merge'](_0x14d2fa,_0x39641b()[_0x175c43(0x169b)](_0x6524f3[_0x175c43(0x19b2)](),_0x39641b()['keys'](_0x14d2fa))),_0x2f9899[_0x175c43(0x829)]({'title':_0x175c43(0x24af),'msg':_0x418f3e[_0x175c43(0xddd)][_0x175c43(0x16b6)]?_0x418f3e['servicenowConfiguration'][_0x175c43(0x16b6)]+_0x175c43(0xedb):''}),_0xba37cb(_0x6524f3);})['catch'](function(_0x5f8724){const _0x7d9724=_0x3b89ff;if(_0x5f8724[_0x7d9724(0x25c)]&&_0x5f8724[_0x7d9724(0x25c)]['errors']&&_0x5f8724['data'][_0x7d9724(0x1a7c)]['length']){_0x418f3e[_0x7d9724(0x1a7c)]=_0x5f8724[_0x7d9724(0x25c)][_0x7d9724(0x1a7c)]||[{'message':_0x5f8724['toString'](),'type':_0x7d9724(0x244)}];for(let _0x5d797b=0x0;_0x5d797b<_0x5f8724[_0x7d9724(0x25c)][_0x7d9724(0x1a7c)]['length'];_0x5d797b++){_0x2f9899[_0x7d9724(0x218e)]({'title':_0x5f8724[_0x7d9724(0x25c)][_0x7d9724(0x1a7c)][_0x5d797b]['type'],'msg':_0x5f8724[_0x7d9724(0x25c)][_0x7d9724(0x1a7c)][_0x5d797b]['message']});}}else _0x2f9899[_0x7d9724(0x218e)]({'title':_0x5f8724[_0x7d9724(0x291)]?_0x7d9724(0xeb9)+_0x5f8724[_0x7d9724(0x291)]+'\x20-\x20'+_0x5f8724[_0x7d9724(0xc22)]:_0x7d9724(0x244),'msg':_0x5f8724['data']?JSON['stringify'](_0x5f8724[_0x7d9724(0x25c)][_0x7d9724(0x155e)]):_0x5f8724[_0x7d9724(0x147f)]()});});}function _0x337ad3(_0x2ee7f7){const _0x9bfff3=_0x4bb2b1;_0x418f3e[_0x9bfff3(0x1a7c)]=[];const _0x13576c=_0x48cd4c[_0x9bfff3(0x1551)]()['title'](_0x9bfff3(0x1a2e))[_0x9bfff3(0x862)](_0x9bfff3(0x1bd5))[_0x9bfff3(0x15ad)]('Delete\x20ServicenowConfiguration')['ok'](_0x9bfff3(0x2594))[_0x9bfff3(0x696)](_0x9bfff3(0xde1))[_0x9bfff3(0x728)](_0x2ee7f7);_0x48cd4c[_0x9bfff3(0xe27)](_0x13576c)[_0x9bfff3(0x1cb0)](function(){const _0x56e912=_0x9bfff3;_0x50c779[_0x56e912(0x739)][_0x56e912(0x111d)]({'id':_0x418f3e[_0x56e912(0xddd)]['id']})[_0x56e912(0x1d77)][_0x56e912(0x1cb0)](function(){const _0x302d18=_0x56e912;_0x39641b()['remove'](_0x418f3e[_0x302d18(0xa06)],{'id':_0x418f3e[_0x302d18(0xddd)]['id']}),_0x2f9899[_0x302d18(0x829)]({'title':_0x302d18(0x153f),'msg':(_0x418f3e[_0x302d18(0xddd)][_0x302d18(0x16b6)]||'servicenowConfiguration')+'\x20has\x20been\x20deleted!'}),_0xba37cb(_0x418f3e[_0x302d18(0xddd)]);})[_0x56e912(0x1c4)](function(_0x581c94){const _0x3f9a79=_0x56e912;if(_0x581c94[_0x3f9a79(0x25c)]&&_0x581c94[_0x3f9a79(0x25c)][_0x3f9a79(0x1a7c)]&&_0x581c94[_0x3f9a79(0x25c)][_0x3f9a79(0x1a7c)]['length']){_0x418f3e[_0x3f9a79(0x1a7c)]=_0x581c94[_0x3f9a79(0x25c)]['errors']||[{'message':_0x581c94[_0x3f9a79(0x147f)](),'type':_0x3f9a79(0x2887)}];for(let _0x48433b=0x0;_0x48433b<_0x581c94['data'][_0x3f9a79(0x1a7c)][_0x3f9a79(0xfd0)];_0x48433b++){_0x2f9899[_0x3f9a79(0x218e)]({'title':_0x581c94[_0x3f9a79(0x25c)][_0x3f9a79(0x1a7c)][_0x48433b]['type'],'msg':_0x581c94[_0x3f9a79(0x25c)][_0x3f9a79(0x1a7c)][_0x48433b]['message']});}}else _0x2f9899['error']({'title':_0x581c94['status']?'API:'+_0x581c94[_0x3f9a79(0x291)]+_0x3f9a79(0x1657)+_0x581c94[_0x3f9a79(0xc22)]:_0x3f9a79(0x2887),'msg':_0x581c94['data']?JSON[_0x3f9a79(0x2701)](_0x581c94[_0x3f9a79(0x25c)][_0x3f9a79(0x155e)]):_0x581c94[_0x3f9a79(0x155e)]||_0x581c94[_0x3f9a79(0x147f)]()});});},function(){});}function _0x474966(_0x182ef1){return _0x182ef1===null?undefined:new Date(_0x182ef1);}function _0xba37cb(_0x8de784){const _0xc4b518=_0x4bb2b1;_0x48cd4c[_0xc4b518(0x1426)](_0x8de784);}}const _0x51d181=_0x4c47d2;;_0x4eff8b[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog',_0x5537c6(0x9bf),_0x5537c6(0x2718),'items','item',_0x5537c6(0x1539),_0x5537c6(0x66a),'api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x4eff8b(_0x2110a1,_0x19f6dc,_0x4de271,_0xaa34e2,_0x5833d8,_0x2274cb,_0x5c2de5,_0x3958ec,_0x1955da,_0x2115d0,_0xa5d1de,_0x1a0e9d,_0x2dce39){const _0x35faea=_0x5537c6,_0x46ac64=this;_0x46ac64['currentUser']=_0x1a0e9d[_0x35faea(0x21e8)](),_0x46ac64[_0x35faea(0x1a7c)]=[],_0x46ac64[_0x35faea(0x1386)]='INTEGRATIONS.EDIT_'+_0x39641b()[_0x35faea(0x1002)](_0x2115d0),_0x46ac64['item']=angular[_0x35faea(0x17fe)](_0x3958ec),_0x46ac64['items']=_0x5c2de5,_0x46ac64[_0x35faea(0x66a)]=_0x2115d0,_0x46ac64['crudPermissions']=_0x2dce39,_0x46ac64[_0x35faea(0x1202)]=![];!_0x46ac64[_0x35faea(0x583)]&&(_0x46ac64[_0x35faea(0x583)]={'type':_0x35faea(0x1518)},_0x46ac64[_0x35faea(0x583)][_0x39641b()[_0x35faea(0x432)](_0x2115d0)+'Id']=_0x2274cb['id'],_0x46ac64[_0x35faea(0x1386)]=_0x35faea(0x15dd)+_0x39641b()[_0x35faea(0x1002)](_0x2115d0),_0x46ac64[_0x35faea(0x1202)]=!![]);_0x46ac64[_0x35faea(0x1286)]=_0x485cc4,_0x46ac64[_0x35faea(0x1a78)]=_0xbeea6e,_0x46ac64[_0x35faea(0x1177)]=_0x3aa5c3,_0x46ac64[_0x35faea(0x2f6)]=_0x2c5eac,_0x46ac64['closeDialog']=_0x5c1308,_0xa5d1de[_0x35faea(0x1822)]['get']({'nolimit':!![]})[_0x35faea(0x1d77)][_0x35faea(0x1cb0)](function(_0x379f57){const _0x48d949=_0x35faea;return _0x46ac64['variables']=_0x379f57[_0x48d949(0x2214)]?_0x379f57['rows']:[],_0xa5d1de[_0x48d949(0x247a)][_0x48d949(0x1e57)]()[_0x48d949(0x1d77)];})['then'](function(_0x54946e){const _0x526703=_0x35faea;return _0x46ac64[_0x526703(0xbf1)]=_0x39641b()['difference'](_0x39641b()[_0x526703(0x1be5)](_0x54946e),[_0x526703(0x1d77),_0x526703(0x248e),_0x526703(0x24cb),_0x526703(0x27ba),_0x526703(0x1867)]),_0x46ac64[_0x526703(0xbf1)][_0x526703(0x2785)]('recordingURL'),_0xa5d1de['voiceDialReport'][_0x526703(0x1e57)]()['$promise'];})[_0x35faea(0x1cb0)](function(_0x54bb75){const _0x26d6b5=_0x35faea;_0x46ac64[_0x26d6b5(0x1639)]=_0x39641b()[_0x26d6b5(0x91f)](_0x39641b()[_0x26d6b5(0x1be5)](_0x54bb75),[_0x26d6b5(0x1d77),_0x26d6b5(0x248e),_0x26d6b5(0x24cb),_0x26d6b5(0x27ba),_0x26d6b5(0x1867)]),_0x46ac64[_0x26d6b5(0x1639)][_0x26d6b5(0x2785)](_0x26d6b5(0x2110));})['catch'](function(_0x241252){const _0x59aaa4=_0x35faea;_0x5833d8['error']({'title':_0x241252[_0x59aaa4(0x291)]?_0x59aaa4(0xeb9)+_0x241252['status']+_0x59aaa4(0x1657)+_0x241252[_0x59aaa4(0xc22)]:'SYSTEM:GETVARIABLES','msg':_0x241252[_0x59aaa4(0x25c)]?JSON[_0x59aaa4(0x2701)](_0x241252[_0x59aaa4(0x25c)]):_0x241252[_0x59aaa4(0x147f)]()});}),_0xa5d1de[_0x35faea(0x901)]['getFields']({'id':_0x1955da['id'],'ticketType':_0x2274cb[_0x35faea(0x161)]?_0x2274cb[_0x35faea(0x161)]:undefined})[_0x35faea(0x1d77)][_0x35faea(0x1cb0)](function(_0x48f9a8){const _0x8fa9b5=_0x35faea;_0x46ac64[_0x8fa9b5(0x1a28)]=!![],_0x46ac64[_0x8fa9b5(0x355)]=_0x48f9a8['rows']?_0x48f9a8['rows']:[],_0x46ac64[_0x8fa9b5(0x583)][_0x8fa9b5(0x1e50)]&&(_0x46ac64[_0x8fa9b5(0x1d5a)]=_0x39641b()[_0x8fa9b5(0x13b4)](_0x46ac64[_0x8fa9b5(0x355)],{'id':_0x46ac64['item'][_0x8fa9b5(0x1e50)]}));})[_0x35faea(0x1c4)](function(_0x16681b){const _0x52c70d=_0x35faea;_0x46ac64[_0x52c70d(0x1a28)]=![],console[_0x52c70d(0x218e)](_0x16681b);});function _0x485cc4(){const _0x24c34f=_0x35faea;_0x46ac64[_0x24c34f(0x1a7c)]=[],_0x46ac64['customField']&&(_0x46ac64[_0x24c34f(0x583)][_0x24c34f(0x1e50)]=_0x46ac64[_0x24c34f(0x1d5a)]['id'],_0x46ac64[_0x24c34f(0x583)][_0x24c34f(0xc1f)]=_0x46ac64['customField']['name'],_0x46ac64[_0x24c34f(0x583)]['customField']=_0x46ac64[_0x24c34f(0x1d5a)][_0x24c34f(0x197c)]),_0xa5d1de[_0x24c34f(0x1ce8)][_0x24c34f(0x1c3f)](_0x46ac64[_0x24c34f(0x583)])[_0x24c34f(0x1d77)]['then'](function(_0x56c77b){const _0xfc9d37=_0x24c34f;_0x46ac64[_0xfc9d37(0x122f)][_0xfc9d37(0xf63)](_0x56c77b),_0x5833d8['success']({'title':_0x39641b()[_0xfc9d37(0x432)](_0x2115d0)+'\x20properly\x20created','msg':_0x39641b()[_0xfc9d37(0x432)](_0x2115d0)+_0xfc9d37(0x470)}),_0x5c1308();})[_0x24c34f(0x1c4)](function(_0x595af7){const _0x179338=_0x24c34f;console[_0x179338(0x218e)](_0x595af7),_0x46ac64[_0x179338(0x1a7c)]=_0x595af7[_0x179338(0x25c)]['errors']||[{'message':_0x595af7[_0x179338(0x147f)](),'type':_0x179338(0x1876)}];});}function _0xbeea6e(){const _0x3c2dc0=_0x35faea;_0x46ac64['errors']=[],_0x46ac64['customField']&&(_0x46ac64[_0x3c2dc0(0x583)][_0x3c2dc0(0x1e50)]=_0x46ac64[_0x3c2dc0(0x1d5a)]['id'],_0x46ac64['item'][_0x3c2dc0(0xc1f)]=_0x46ac64[_0x3c2dc0(0x1d5a)][_0x3c2dc0(0x16b6)],_0x46ac64[_0x3c2dc0(0x583)][_0x3c2dc0(0x1d5a)]=_0x46ac64[_0x3c2dc0(0x1d5a)][_0x3c2dc0(0x197c)]),_0xa5d1de[_0x3c2dc0(0x1ce8)][_0x3c2dc0(0x687)]({'id':_0x46ac64[_0x3c2dc0(0x583)]['id']},_0x46ac64[_0x3c2dc0(0x583)])['$promise'][_0x3c2dc0(0x1cb0)](function(_0x4d8732){const _0x15bc3c=_0x3c2dc0,_0x43d37c=_0x39641b()[_0x15bc3c(0x13b4)](_0x46ac64['items'],{'id':_0x4d8732['id']});_0x43d37c&&_0x39641b()[_0x15bc3c(0x9c1)](_0x43d37c,_0x4d8732),_0x5833d8['success']({'title':_0x39641b()[_0x15bc3c(0x432)](_0x2115d0)+_0x15bc3c(0xaf6),'msg':_0x39641b()[_0x15bc3c(0x432)](_0x2115d0)+_0x15bc3c(0xedb)}),_0x5c1308();})[_0x3c2dc0(0x1c4)](function(_0x1b959a){const _0x2e393b=_0x3c2dc0;console[_0x2e393b(0x218e)](_0x1b959a),_0x46ac64[_0x2e393b(0x1a7c)]=_0x1b959a[_0x2e393b(0x25c)][_0x2e393b(0x1a7c)]||[{'message':_0x1b959a[_0x2e393b(0x147f)](),'type':'api.intItem.update'}];});}function _0x3aa5c3(_0x4f7067){const _0xdf5e41=_0x35faea;_0x46ac64[_0xdf5e41(0x1a7c)]=[];const _0x52fd69=_0xaa34e2[_0xdf5e41(0x1551)]()[_0xdf5e41(0x1386)]('Are\x20you\x20sure?')[_0xdf5e41(0x862)]('The\x20'+_0x2115d0+_0xdf5e41(0x1b6))[_0xdf5e41(0x15ad)](_0xdf5e41(0x1f6a)+_0x39641b()[_0xdf5e41(0x432)](_0x2115d0))['ok']('Delete')[_0xdf5e41(0x696)](_0xdf5e41(0xde1))[_0xdf5e41(0x728)](_0x4f7067);_0xaa34e2[_0xdf5e41(0xe27)](_0x52fd69)[_0xdf5e41(0x1cb0)](function(){const _0x4580a4=_0xdf5e41;_0xa5d1de[_0x4580a4(0x1ce8)]['delete']({'id':_0x46ac64[_0x4580a4(0x583)]['id']})[_0x4580a4(0x1d77)][_0x4580a4(0x1cb0)](function(){const _0x422e4e=_0x4580a4;_0x39641b()['remove'](_0x46ac64[_0x422e4e(0x122f)],{'id':_0x46ac64[_0x422e4e(0x583)]['id']}),_0x5833d8[_0x422e4e(0x829)]({'title':_0x39641b()[_0x422e4e(0x432)](_0x2115d0)+'\x20properly\x20deleted!','msg':_0x39641b()[_0x422e4e(0x432)](_0x2115d0)+'\x20has\x20been\x20deleted!'}),_0x5c1308();})[_0x4580a4(0x1c4)](function(_0x1ef9ff){const _0x242514=_0x4580a4;console[_0x242514(0x218e)](_0x1ef9ff),_0x46ac64[_0x242514(0x1a7c)]=_0x1ef9ff[_0x242514(0x25c)]['errors']||[{'message':_0x1ef9ff[_0x242514(0x147f)](),'type':_0x242514(0x10e6)}];});},function(){});}function _0x2c5eac(){const _0x433a6c=_0x35faea;return _0x46ac64[_0x433a6c(0x583)][_0x433a6c(0x1e71)]!==undefined?_0x46ac64['item']['variableName']:_0x433a6c(0x7c8);}function _0x5c1308(){const _0x46f04d=_0x35faea;_0xaa34e2[_0x46f04d(0x1426)]();}}const _0x406293=_0x4eff8b;;_0x17d38f[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'$translate','license',_0x5537c6(0x9ca),'api','toasty',_0x5537c6(0x1774),_0x5537c6(0x12bc),_0x5537c6(0x2199)];function _0x17d38f(_0x1d931e,_0x20d43a,_0x320980,_0x5a8409,_0x50a606,_0x3e503b,_0x17a756,_0x25b1fb,_0x3defa7,_0x514a4d,_0x580f74,_0x53aa6f){const _0x1c519c=_0x5537c6,_0x1e761c=this;_0x1e761c['currentUser']=_0x514a4d[_0x1c519c(0x21e8)](),_0x1e761c['license']=_0x3e503b,_0x1e761c[_0x1c519c(0x9ca)]=_0x17a756,_0x1e761c['passwordPattern']=_0x1e761c[_0x1c519c(0x9ca)][_0x1c519c(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1e761c[_0x1c519c(0x2404)]=_0x20d43a[_0x1c519c(0x2276)]()+'://'+_0x20d43a[_0x1c519c(0x17d8)](),_0x1e761c['servicenowAccount']=_0x580f74||_0x1d931e[_0x1c519c(0x1dfe)]['servicenowAccount']||{},_0x1e761c[_0x1c519c(0x2199)]=_0x53aa6f&&_0x53aa6f[_0x1c519c(0x184d)]==0x1?_0x53aa6f[_0x1c519c(0x2214)][0x0]:null,_0x1e761c['crudPermissions']=_0x514a4d[_0x1c519c(0x14ea)](_0x1e761c[_0x1c519c(0x2199)]?_0x1e761c['userProfileSection']['crudPermissions']:null),_0x1e761c[_0x1c519c(0xf4c)]={},_0x1e761c['selectedTab']=_0x1d931e[_0x1c519c(0x1dfe)]['tab']||0x0,_0x1e761c[_0x1c519c(0x494)]=_0x3defa7['info'],_0x1e761c['gotoServicenowAccounts']=_0x3fae33,_0x1e761c[_0x1c519c(0xa32)]=_0x5efeac;function _0x3fae33(){const _0x3f695a=_0x1c519c;_0x1d931e['go'](_0x3f695a(0xc85),{},{'reload':_0x3f695a(0xc85)});}function _0x5efeac(){const _0x240ecb=_0x1c519c;_0x25b1fb[_0x240ecb(0x901)]['update']({'id':_0x1e761c[_0x240ecb(0x12bc)]['id']},_0x1e761c[_0x240ecb(0x12bc)])['$promise']['then'](function(){const _0x51a4a2=_0x240ecb;_0x3defa7['success']({'title':'ServicenowAccount\x20updated!','msg':_0x1e761c[_0x51a4a2(0x12bc)][_0x51a4a2(0x16b6)]?_0x1e761c['servicenowAccount'][_0x51a4a2(0x16b6)]+_0x51a4a2(0x1068):''});})[_0x240ecb(0x1c4)](function(_0x3cf2a7){const _0x24cc32=_0x240ecb;_0x3defa7['error']({'title':_0x3cf2a7[_0x24cc32(0x291)]?_0x24cc32(0xeb9)+_0x3cf2a7[_0x24cc32(0x291)]+_0x24cc32(0x1657)+_0x3cf2a7[_0x24cc32(0xc22)]:_0x24cc32(0x114f),'msg':_0x3cf2a7[_0x24cc32(0x25c)]?JSON['stringify'](_0x3cf2a7[_0x24cc32(0x25c)]):_0x3cf2a7[_0x24cc32(0x147f)]()});});}}const _0x1f34b2=_0x17d38f;;const _0x1fce4b=_0x5074a3['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/create/dialog.html/dialog.html';;_0x239c2b[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),'$state',_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'$timeout','$translate',_0x5537c6(0x1525),_0x5537c6(0x44a),_0x5537c6(0x2199),'api','msUtils',_0x5537c6(0x9bf),'Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x239c2b(_0x5de6c8,_0x171c43,_0x640973,_0x551c43,_0x4a9589,_0x4f922d,_0x460ff7,_0x4ca107,_0x4299d5,_0x380be5,_0x91466e,_0x2f167f,_0x3d0dea,_0x189164,_0x56d580,_0x17a96c,_0x2d2d7a){const _0x58e1d6=_0x5537c6,_0x3fbbdd=this;_0x3fbbdd[_0x58e1d6(0x8a5)]=_0x17a96c,_0x3fbbdd[_0x58e1d6(0x9ca)]=_0x2d2d7a,_0x3fbbdd[_0x58e1d6(0xe76)]=_0x56d580['getCurrentUser'](),_0x3fbbdd[_0x58e1d6(0x1525)]=_0x4299d5||{'count':0x0,'rows':[]},_0x3fbbdd['userProfile']=_0x380be5,_0x3fbbdd['userProfileSection']=_0x91466e&&_0x91466e[_0x58e1d6(0x184d)]==0x1?_0x91466e[_0x58e1d6(0x2214)][0x0]:null,_0x3fbbdd[_0x58e1d6(0x1b1a)]=_0x56d580[_0x58e1d6(0x14ea)](_0x3fbbdd[_0x58e1d6(0x2199)]?_0x3fbbdd['userProfileSection']['crudPermissions']:null),_0x3fbbdd[_0x58e1d6(0xc83)]=_0x58e1d6(0x1525),_0x3fbbdd['listOrder']='',_0x3fbbdd[_0x58e1d6(0x1cdf)]=null,_0x3fbbdd[_0x58e1d6(0x1e3d)]=[],_0x3fbbdd['query']={'fields':'createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','limit':0xa,'page':0x1},_0x3fbbdd[_0x58e1d6(0x235d)]=_0x321b9b,_0x3fbbdd[_0x58e1d6(0x6b1)]=_0x5cc2ce,_0x3fbbdd[_0x58e1d6(0x27fe)]=_0x5bc7b7,_0x3fbbdd[_0x58e1d6(0x829)]=_0x10c066,_0x3fbbdd['getServicenowAccounts']=_0x55deae,_0x3fbbdd[_0x58e1d6(0x286e)]=_0xd9c74f,_0x3fbbdd[_0x58e1d6(0x69c)]=_0x1a79d7,_0x3fbbdd[_0x58e1d6(0x90a)]=_0xdd690c,_0x3fbbdd['deleteSelectedServicenowAccounts']=_0x40b5fc,_0x3fbbdd[_0x58e1d6(0x3b7)]=_0x15826f,_0x3fbbdd[_0x58e1d6(0x1c6e)]=_0x16e793;function _0x321b9b(_0x56459f){const _0x30711e=_0x58e1d6;_0x640973['go'](_0x30711e(0x1f47),{'id':_0x56459f['id'],'servicenowAccount':_0x56459f,'crudPermissions':_0x3fbbdd[_0x30711e(0x1b1a)]});}function _0x5cc2ce(_0xfebfbe){const _0x5f2c8a=_0x58e1d6;return _0x2f167f['intServicenowAccount'][_0x5f2c8a(0xc84)]({'id':_0xfebfbe['id'],'test':!![]})[_0x5f2c8a(0x1d77)][_0x5f2c8a(0x1cb0)](function(){const _0x35ba13=_0x5f2c8a;_0x189164[_0x35ba13(0x829)]({'title':_0x35ba13(0x2809),'msg':_0x35ba13(0x1bca)});})[_0x5f2c8a(0x1c4)](function(_0x3169a7){const _0x3925e0=_0x5f2c8a;_0x189164['error']({'title':_0x3925e0(0x2809),'msg':_0x3169a7[_0x3925e0(0x25c)]?_0x3169a7[_0x3925e0(0x25c)][_0x3925e0(0x155e)]?_0x3169a7[_0x3925e0(0x25c)][_0x3925e0(0x155e)]:JSON[_0x3925e0(0x2701)](_0x3169a7[_0x3925e0(0x25c)]):_0x3169a7['toString']()});});}function _0x5bc7b7(_0x368acc,_0x4ede65){const _0x1e4882=_0x58e1d6,_0x4a30f1=_0x4a9589[_0x1e4882(0x1551)]()['title'](_0x1e4882(0x140b)+_0x39641b()[_0x1e4882(0xa75)]('servicenowAccount')+'?')['htmlContent'](_0x1e4882(0x204d)+(_0x368acc[_0x1e4882(0x16b6)]||'servicenowAccount')+_0x1e4882(0x1200)+_0x1e4882(0x1b6))[_0x1e4882(0x15ad)](_0x1e4882(0x2681))[_0x1e4882(0x728)](_0x4ede65)['ok']('OK')[_0x1e4882(0x696)]('CANCEL');_0x4a9589[_0x1e4882(0xe27)](_0x4a30f1)['then'](function(){_0x1a79d7(_0x368acc);},function(){const _0x61080c=_0x1e4882;console[_0x61080c(0x1b4f)](_0x61080c(0x24ba));});}let _0x36b7cd=!![],_0x42d580=0x1;_0x5de6c8[_0x58e1d6(0x614)](_0x58e1d6(0x957),function(_0x5c8eaf,_0x5bef48){const _0x54862c=_0x58e1d6;_0x36b7cd?_0x460ff7(function(){_0x36b7cd=![];}):(!_0x5bef48&&(_0x42d580=_0x3fbbdd['query'][_0x54862c(0x1c7b)]),_0x5c8eaf!==_0x5bef48&&(_0x3fbbdd[_0x54862c(0xae2)][_0x54862c(0x1c7b)]=0x1),!_0x5c8eaf&&(_0x3fbbdd[_0x54862c(0xae2)][_0x54862c(0x1c7b)]=_0x42d580),_0x3fbbdd['getServicenowAccounts']());});function _0x10c066(_0x2bd953){_0x3fbbdd['servicenowAccounts']=_0x2bd953||{'count':0x0,'rows':[]};}function _0x55deae(){const _0x36319b=_0x58e1d6;_0x3fbbdd[_0x36319b(0xae2)][_0x36319b(0x184b)]=(_0x3fbbdd[_0x36319b(0xae2)]['page']-0x1)*_0x3fbbdd['query'][_0x36319b(0x236)],_0x56d580[_0x36319b(0x22b6)](_0x36319b(0x1c60))?_0x3fbbdd[_0x36319b(0x2061)]=_0x2f167f[_0x36319b(0x901)][_0x36319b(0xbf7)](_0x3fbbdd['query'],_0x10c066)[_0x36319b(0x1d77)]:(_0x3fbbdd['query']['id']=_0x3fbbdd['userProfile']['id'],_0x3fbbdd['query']['section']=_0x36319b(0x340),_0x3fbbdd[_0x36319b(0x2061)]=_0x2f167f[_0x36319b(0x44a)]['getResources'](_0x3fbbdd[_0x36319b(0xae2)],_0x10c066)[_0x36319b(0x1d77)]);}function _0xd9c74f(_0x5929be,_0x303ba1){const _0x3b50dd=_0x58e1d6;_0x4a9589[_0x3b50dd(0xe27)]({'controller':_0x3b50dd(0x131b),'controllerAs':'vm','templateUrl':_0x1fce4b,'parent':angular['element'](_0x4f922d['body']),'targetEvent':_0x5929be,'clickOutsideToClose':!![],'locals':{'servicenowAccount':_0x303ba1,'servicenowAccounts':_0x3fbbdd[_0x3b50dd(0x1525)][_0x3b50dd(0x2214)],'license':_0x3fbbdd[_0x3b50dd(0x8a5)],'setting':_0x3fbbdd[_0x3b50dd(0x9ca)],'crudPermissions':_0x3fbbdd[_0x3b50dd(0x1b1a)]}});}function _0x1a79d7(_0x4d489b){const _0x523163=_0x58e1d6;_0x2f167f['intServicenowAccount']['delete']({'id':_0x4d489b['id']})['$promise'][_0x523163(0x1cb0)](function(){const _0x2ea519=_0x523163;_0x39641b()[_0x2ea519(0x152a)](_0x3fbbdd['servicenowAccounts'][_0x2ea519(0x2214)],{'id':_0x4d489b['id']}),_0x3fbbdd[_0x2ea519(0x1525)][_0x2ea519(0x184d)]-=0x1,!_0x3fbbdd[_0x2ea519(0x1525)]['rows'][_0x2ea519(0xfd0)]&&_0x3fbbdd[_0x2ea519(0x159e)](),_0x189164[_0x2ea519(0x829)]({'title':_0x39641b()[_0x2ea519(0xa75)](_0x2ea519(0x2014))+_0x2ea519(0x2663),'msg':_0x4d489b[_0x2ea519(0x16b6)]?_0x4d489b[_0x2ea519(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x523163(0x1c4)](function(_0x35ad79){const _0x5625f8=_0x523163;if(_0x35ad79[_0x5625f8(0x25c)]&&_0x35ad79['data'][_0x5625f8(0x1a7c)]&&_0x35ad79[_0x5625f8(0x25c)][_0x5625f8(0x1a7c)]['length']){_0x3fbbdd[_0x5625f8(0x1a7c)]=_0x35ad79['data'][_0x5625f8(0x1a7c)]||[{'message':_0x35ad79[_0x5625f8(0x147f)](),'type':'SYSTEM:DELETEintServicenowAccount'}];for(let _0x619d41=0x0;_0x619d41<_0x35ad79[_0x5625f8(0x25c)][_0x5625f8(0x1a7c)][_0x5625f8(0xfd0)];_0x619d41++){_0x189164[_0x5625f8(0x218e)]({'title':_0x35ad79[_0x5625f8(0x25c)]['errors'][_0x619d41][_0x5625f8(0x66a)],'msg':_0x35ad79[_0x5625f8(0x25c)]['errors'][_0x619d41][_0x5625f8(0x155e)]});}}else _0x189164[_0x5625f8(0x218e)]({'title':_0x35ad79[_0x5625f8(0x291)]?_0x5625f8(0xeb9)+_0x35ad79[_0x5625f8(0x291)]+_0x5625f8(0x1657)+_0x35ad79[_0x5625f8(0xc22)]:_0x5625f8(0x824),'msg':_0x35ad79[_0x5625f8(0x25c)]?JSON[_0x5625f8(0x2701)](_0x35ad79[_0x5625f8(0x25c)][_0x5625f8(0x155e)]):_0x35ad79[_0x5625f8(0x155e)]||_0x35ad79[_0x5625f8(0x147f)]()});});}function _0xdd690c(){const _0x30ba6e=_0x58e1d6,_0x42cb89=angular[_0x30ba6e(0x17fe)](_0x3fbbdd[_0x30ba6e(0x1e3d)]);return _0x3fbbdd[_0x30ba6e(0x1e3d)]=[],_0x42cb89;}function _0x40b5fc(_0x3737cb){const _0x587a08=_0x58e1d6,_0x16ef49=_0x4a9589[_0x587a08(0x1551)]()['title'](_0x587a08(0xe9d))[_0x587a08(0x49e)](_0x587a08(0x204d)+_0x3fbbdd[_0x587a08(0x1e3d)][_0x587a08(0xfd0)]+_0x587a08(0x1d6c)+_0x587a08(0x1b6))[_0x587a08(0x15ad)](_0x587a08(0xc8d))[_0x587a08(0x728)](_0x3737cb)['ok']('OK')['cancel']('CANCEL');_0x4a9589[_0x587a08(0xe27)](_0x16ef49)['then'](function(){const _0x23fb7=_0x587a08;_0x3fbbdd[_0x23fb7(0x1e3d)][_0x23fb7(0xf90)](function(_0x175356){_0x1a79d7(_0x175356);}),_0x3fbbdd[_0x23fb7(0x1e3d)]=[];});}function _0x15826f(){const _0x14b7c8=_0x58e1d6;_0x3fbbdd[_0x14b7c8(0x1e3d)]=[];}function _0x16e793(){const _0x162d46=_0x58e1d6;_0x3fbbdd[_0x162d46(0x1e3d)]=_0x3fbbdd[_0x162d46(0x1525)][_0x162d46(0x2214)];}}const _0x2f8c9e=_0x239c2b;;_0x498aa4[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state',_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),'sugarcrmAccounts','sugarcrmAccount',_0x5537c6(0x142b),'Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x498aa4(_0x4631c3,_0x2b177d,_0x57c5e7,_0x4e0b1b,_0x2f8f42,_0x20d0f9,_0x3c7820,_0x541864,_0x505463,_0x52ae97,_0x74a391,_0x4b0094,_0xbcf290,_0x59a85a){const _0x48b8c7=_0x5537c6,_0x24f9ab=this;_0x24f9ab[_0x48b8c7(0xe76)]=_0x74a391['getCurrentUser'](),_0x24f9ab[_0x48b8c7(0x1a7c)]=[],_0x24f9ab[_0x48b8c7(0x9ca)]=_0xbcf290,_0x24f9ab[_0x48b8c7(0x8a5)]=_0x4b0094,_0x24f9ab['crudPermissions']=_0x59a85a,_0x24f9ab['hasModulePermissions']={},_0x24f9ab[_0x48b8c7(0x1b0c)]=_0x24f9ab[_0x48b8c7(0x9ca)]&&_0x24f9ab[_0x48b8c7(0x9ca)][_0x48b8c7(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x24f9ab[_0x48b8c7(0x1386)]=_0x48b8c7(0x1d2d),_0x24f9ab[_0x48b8c7(0x25d7)]=angular[_0x48b8c7(0x17fe)](_0x505463),_0x24f9ab[_0x48b8c7(0x307)]=_0x541864,_0x24f9ab[_0x48b8c7(0x1cf0)]=![];!_0x24f9ab[_0x48b8c7(0x25d7)]&&(_0x24f9ab[_0x48b8c7(0x25d7)]={'serverUrl':_0x57c5e7[_0x48b8c7(0x2276)]()+_0x48b8c7(0x138b)+_0x57c5e7['host']()+(_0x57c5e7[_0x48b8c7(0x477)]()?':'+_0x57c5e7['port']():'')},_0x24f9ab['title']=_0x48b8c7(0x197f),_0x24f9ab['newSugarcrmAccount']=!![]);_0x24f9ab['addNewSugarcrmAccount']=_0x53e0dd,_0x24f9ab['saveSugarcrmAccount']=_0x17bd5e,_0x24f9ab[_0x48b8c7(0x12c8)]=_0x4dbded,_0x24f9ab[_0x48b8c7(0x2c4)]=_0x7e316d,_0x24f9ab[_0x48b8c7(0xda0)]=_0x5b528c;function _0x53e0dd(){const _0x4fe6f5=_0x48b8c7;_0x24f9ab[_0x4fe6f5(0x1a7c)]=[],_0x52ae97[_0x4fe6f5(0x3fa)]['save'](_0x24f9ab[_0x4fe6f5(0x25d7)])[_0x4fe6f5(0x1d77)][_0x4fe6f5(0x1cb0)](function(_0x4bbdba){const _0x283cdd=_0x4fe6f5;_0x24f9ab[_0x283cdd(0x307)][_0x283cdd(0xf63)](_0x4bbdba[_0x283cdd(0x19b2)]()),_0x3c7820['success']({'title':_0x283cdd(0x2173),'msg':_0x24f9ab[_0x283cdd(0x25d7)][_0x283cdd(0x16b6)]?_0x24f9ab[_0x283cdd(0x25d7)]['name']+_0x283cdd(0x470):''}),_0x5b528c(_0x4bbdba);})['catch'](function(_0x8c5f27){const _0x1a6f55=_0x4fe6f5;if(_0x8c5f27[_0x1a6f55(0x25c)]&&_0x8c5f27[_0x1a6f55(0x25c)][_0x1a6f55(0x1a7c)]&&_0x8c5f27['data'][_0x1a6f55(0x1a7c)][_0x1a6f55(0xfd0)]){_0x24f9ab[_0x1a6f55(0x1a7c)]=_0x8c5f27[_0x1a6f55(0x25c)][_0x1a6f55(0x1a7c)]||[{'message':_0x8c5f27[_0x1a6f55(0x147f)](),'type':_0x1a6f55(0xb57)}];for(let _0x233a10=0x0;_0x233a10<_0x8c5f27[_0x1a6f55(0x25c)][_0x1a6f55(0x1a7c)][_0x1a6f55(0xfd0)];_0x233a10+=0x1){_0x3c7820['error']({'title':_0x8c5f27['data'][_0x1a6f55(0x1a7c)][_0x233a10]['type'],'msg':_0x8c5f27['data']['errors'][_0x233a10][_0x1a6f55(0x155e)]});}}else _0x3c7820[_0x1a6f55(0x218e)]({'title':_0x8c5f27[_0x1a6f55(0x291)]?_0x1a6f55(0xeb9)+_0x8c5f27[_0x1a6f55(0x291)]+'\x20-\x20'+_0x8c5f27[_0x1a6f55(0xc22)]:_0x1a6f55(0xb57),'msg':_0x8c5f27[_0x1a6f55(0x25c)]?JSON[_0x1a6f55(0x2701)](_0x8c5f27[_0x1a6f55(0x25c)]['message']):_0x8c5f27[_0x1a6f55(0x147f)]()});});}function _0x17bd5e(){const _0x13d708=_0x48b8c7;_0x24f9ab[_0x13d708(0x1a7c)]=[],_0x52ae97[_0x13d708(0x3fa)][_0x13d708(0x687)]({'id':_0x24f9ab[_0x13d708(0x25d7)]['id']},_0x24f9ab[_0x13d708(0x25d7)])[_0x13d708(0x1d77)][_0x13d708(0x1cb0)](function(_0x517aa1){const _0x17d9e3=_0x13d708,_0x3f9a97=_0x39641b()['find'](_0x24f9ab[_0x17d9e3(0x307)],{'id':_0x517aa1['id']});_0x3f9a97&&_0x39641b()[_0x17d9e3(0x9c1)](_0x3f9a97,_0x39641b()[_0x17d9e3(0x169b)](_0x517aa1['toJSON'](),_0x39641b()[_0x17d9e3(0x1be5)](_0x3f9a97))),_0x3c7820[_0x17d9e3(0x829)]({'title':'SugarcrmAccount\x20properly\x20saved!','msg':_0x24f9ab['sugarcrmAccount'][_0x17d9e3(0x16b6)]?_0x24f9ab[_0x17d9e3(0x25d7)]['name']+_0x17d9e3(0xedb):''}),_0x5b528c(_0x517aa1);})[_0x13d708(0x1c4)](function(_0x350d45){const _0x9899c3=_0x13d708;if(_0x350d45['data']&&_0x350d45['data'][_0x9899c3(0x1a7c)]&&_0x350d45[_0x9899c3(0x25c)][_0x9899c3(0x1a7c)][_0x9899c3(0xfd0)]){_0x24f9ab[_0x9899c3(0x1a7c)]=_0x350d45['data'][_0x9899c3(0x1a7c)]||[{'message':_0x350d45[_0x9899c3(0x147f)](),'type':'api.intSugarcrmAccount.update'}];for(let _0x206c8f=0x0;_0x206c8f<_0x350d45[_0x9899c3(0x25c)][_0x9899c3(0x1a7c)]['length'];_0x206c8f++){_0x3c7820['error']({'title':_0x350d45[_0x9899c3(0x25c)][_0x9899c3(0x1a7c)][_0x206c8f]['type'],'msg':_0x350d45[_0x9899c3(0x25c)][_0x9899c3(0x1a7c)][_0x206c8f]['message']});}}else _0x3c7820['error']({'title':_0x350d45[_0x9899c3(0x291)]?_0x9899c3(0xeb9)+_0x350d45[_0x9899c3(0x291)]+_0x9899c3(0x1657)+_0x350d45[_0x9899c3(0xc22)]:_0x9899c3(0x1b44),'msg':_0x350d45[_0x9899c3(0x25c)]?JSON[_0x9899c3(0x2701)](_0x350d45[_0x9899c3(0x25c)][_0x9899c3(0x155e)]):_0x350d45[_0x9899c3(0x147f)]()});});}function _0x4dbded(_0x89fdad){const _0x18f3dd=_0x48b8c7;_0x24f9ab[_0x18f3dd(0x1a7c)]=[];const _0x71b466=_0x4e0b1b[_0x18f3dd(0x1551)]()[_0x18f3dd(0x1386)](_0x18f3dd(0x1a2e))['content'](_0x18f3dd(0xdd5))[_0x18f3dd(0x15ad)](_0x18f3dd(0x1c91))['ok'](_0x18f3dd(0x2594))['cancel'](_0x18f3dd(0xde1))[_0x18f3dd(0x728)](_0x89fdad);_0x4e0b1b[_0x18f3dd(0xe27)](_0x71b466)[_0x18f3dd(0x1cb0)](function(){const _0x24e73e=_0x18f3dd;_0x52ae97[_0x24e73e(0x3fa)][_0x24e73e(0x111d)]({'id':_0x24f9ab['sugarcrmAccount']['id']})[_0x24e73e(0x1d77)][_0x24e73e(0x1cb0)](function(){const _0x3cf5a5=_0x24e73e;_0x39641b()['remove'](_0x24f9ab[_0x3cf5a5(0x307)],{'id':_0x24f9ab[_0x3cf5a5(0x25d7)]['id']}),_0x3c7820['success']({'title':_0x3cf5a5(0x84c),'msg':(_0x24f9ab['sugarcrmAccount']['name']||_0x3cf5a5(0x25d7))+'\x20has\x20been\x20deleted!'}),_0x5b528c(_0x24f9ab['sugarcrmAccount']);})[_0x24e73e(0x1c4)](function(_0x5eff62){const _0xdd3609=_0x24e73e;if(_0x5eff62[_0xdd3609(0x25c)]&&_0x5eff62[_0xdd3609(0x25c)][_0xdd3609(0x1a7c)]&&_0x5eff62[_0xdd3609(0x25c)][_0xdd3609(0x1a7c)][_0xdd3609(0xfd0)]){_0x24f9ab[_0xdd3609(0x1a7c)]=_0x5eff62[_0xdd3609(0x25c)][_0xdd3609(0x1a7c)]||[{'message':_0x5eff62['toString'](),'type':_0xdd3609(0xbfc)}];for(let _0x36469c=0x0;_0x36469c<_0x5eff62['data'][_0xdd3609(0x1a7c)][_0xdd3609(0xfd0)];_0x36469c++){_0x3c7820['error']({'title':_0x5eff62[_0xdd3609(0x25c)][_0xdd3609(0x1a7c)][_0x36469c][_0xdd3609(0x66a)],'msg':_0x5eff62['data'][_0xdd3609(0x1a7c)][_0x36469c][_0xdd3609(0x155e)]});}}else _0x3c7820['error']({'title':_0x5eff62[_0xdd3609(0x291)]?_0xdd3609(0xeb9)+_0x5eff62[_0xdd3609(0x291)]+_0xdd3609(0x1657)+_0x5eff62[_0xdd3609(0xc22)]:_0xdd3609(0xbfc),'msg':_0x5eff62[_0xdd3609(0x25c)]?JSON[_0xdd3609(0x2701)](_0x5eff62['data']['message']):_0x5eff62['message']||_0x5eff62[_0xdd3609(0x147f)]()});});},function(){});}function _0x7e316d(_0x3a7cef){return _0x3a7cef===null?undefined:new Date(_0x3a7cef);}function _0x5b528c(_0x354171){const _0x335ccf=_0x48b8c7;_0x4e0b1b[_0x335ccf(0x1426)](_0x354171);}}const _0x2f8ad9=_0x498aa4;;const _0xe3921=_0x5074a3['p']+_0x5537c6(0x1933);;const _0x2dafcc=_0x5074a3['p']+'src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/item/dialog.html/dialog.html';;_0x430fa5[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$document',_0x5537c6(0x142b),'toasty',_0x5537c6(0x1774)];function _0x430fa5(_0x392fea,_0x3d98d4,_0x5506e3,_0x300378,_0x41e61a){const _0x2ff41a=_0x5537c6,_0x3b1a46=this;_0x3b1a46[_0x2ff41a(0xe76)]=_0x41e61a[_0x2ff41a(0x21e8)](),_0x3b1a46[_0x2ff41a(0x25d7)]={},_0x3b1a46[_0x2ff41a(0x25a9)]={},_0x3b1a46[_0x2ff41a(0xa06)]=[],_0x3b1a46['selectedSugarcrmConfiguration']=-0x1,_0x3b1a46[_0x2ff41a(0x1b1a)],_0x3b1a46[_0x2ff41a(0x1a8e)]=_0x3f620f,_0x3b1a46[_0x2ff41a(0x21ad)]=_0x18df2f,_0x3b1a46[_0x2ff41a(0x184a)]=_0x106a12,_0x3b1a46['deleteSugarcrmConfiguration']=_0x5517a6;function _0x3f620f(_0x1361dd,_0x4dbe5a){const _0x5e464f=_0x2ff41a;_0x3b1a46[_0x5e464f(0x25d7)]=_0x1361dd,_0x3b1a46[_0x5e464f(0x1b1a)]=typeof _0x4dbe5a!==_0x5e464f(0x16b5)?_0x4dbe5a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5506e3[_0x5e464f(0x3fa)]['getConfigurations']({'id':_0x3b1a46[_0x5e464f(0x25d7)]['id'],'sort':_0x5e464f(0x282)})[_0x5e464f(0x1d77)][_0x5e464f(0x1cb0)](function(_0x286c59){const _0x1ed577=_0x5e464f;return _0x3b1a46[_0x1ed577(0xa06)]=_0x286c59['rows']?_0x286c59[_0x1ed577(0x2214)]:[],_0x3b1a46['configurations'][_0x1ed577(0xfd0)]&&_0x3b1a46['getSugarcrmConfiguration'](0x0),_0x5506e3[_0x1ed577(0x1822)][_0x1ed577(0xbf7)]({'nolimit':!![],'sort':_0x1ed577(0x16b6)})[_0x1ed577(0x1d77)];})['then'](function(_0x200c61){const _0x4cef9f=_0x5e464f;_0x3b1a46[_0x4cef9f(0x9a9)]=_0x200c61['rows']?_0x200c61[_0x4cef9f(0x2214)]:[],_0x3b1a46[_0x4cef9f(0x1a3c)]=_0x39641b()['keyBy'](_0x3b1a46[_0x4cef9f(0x9a9)],'id');})[_0x5e464f(0x1c4)](function(_0x9277a){const _0x5f0342=_0x5e464f;_0x300378[_0x5f0342(0x218e)]({'title':_0x9277a[_0x5f0342(0x291)]?_0x5f0342(0xeb9)+_0x9277a[_0x5f0342(0x291)]+_0x5f0342(0x1657)+_0x9277a[_0x5f0342(0xc22)]:_0x5f0342(0x1b0f),'msg':_0x9277a[_0x5f0342(0x25c)]?JSON['stringify'](_0x9277a['data']):_0x9277a[_0x5f0342(0x147f)]()});});}function _0x18df2f(_0x1cd581){const _0x4441f3=_0x2ff41a;_0x3b1a46[_0x4441f3(0x25a9)]=_0x3b1a46[_0x4441f3(0xa06)][_0x1cd581],_0x3b1a46[_0x4441f3(0x21a2)]=_0x1cd581,_0x5506e3['intSugarcrmConfiguration'][_0x4441f3(0x243a)]({'id':_0x3b1a46[_0x4441f3(0x25a9)]['id']})['$promise']['then'](function(_0x4a0a67){const _0x4ca53d=_0x4441f3;return _0x3b1a46[_0x4ca53d(0x2388)]=_0x4a0a67[_0x4ca53d(0x2214)]?_0x4a0a67[_0x4ca53d(0x2214)]:[],_0x5506e3['intSugarcrmConfiguration'][_0x4ca53d(0xb6d)]({'id':_0x3b1a46[_0x4ca53d(0x25a9)]['id']})[_0x4ca53d(0x1d77)];})['then'](function(_0xbe4b7d){const _0x55d38e=_0x4441f3;return _0x3b1a46['descriptions']=_0xbe4b7d['rows']?_0xbe4b7d[_0x55d38e(0x2214)]:[],_0x5506e3[_0x55d38e(0x20dc)][_0x55d38e(0xc84)]({'id':_0x3b1a46['sugarcrmConfiguration']['id']})[_0x55d38e(0x1d77)];})['then'](function(_0x2abc89){const _0x394e84=_0x4441f3;_0x3b1a46['fields']=_0x2abc89['rows']?_0x2abc89[_0x394e84(0x2214)]:[];})[_0x4441f3(0x1c4)](function(_0x927e10){const _0x1dd139=_0x4441f3;_0x300378[_0x1dd139(0x218e)]({'title':_0x927e10['status']?_0x1dd139(0xeb9)+_0x927e10[_0x1dd139(0x291)]+'\x20-\x20'+_0x927e10[_0x1dd139(0xc22)]:'SYSTEM:GETConfigurations','msg':_0x927e10[_0x1dd139(0x25c)]?JSON[_0x1dd139(0x2701)](_0x927e10['data']):_0x927e10[_0x1dd139(0x147f)]()});});}function _0x106a12(_0x92ec,_0x273c47){const _0x5757be=_0x2ff41a;_0x392fea['show']({'controller':'CreateOrEditSugarcrmConfigurationDialogController','controllerAs':'vm','templateUrl':_0xe3921,'parent':angular[_0x5757be(0x1853)](_0x3d98d4[_0x5757be(0x1ed9)]),'targetEvent':_0x92ec,'clickOutsideToClose':!![],'locals':{'sugarcrmConfiguration':_0x273c47,'configurations':_0x3b1a46[_0x5757be(0xa06)],'license':null,'setting':null,'crudPermissions':_0x3b1a46['crudPermissions']}})[_0x5757be(0x2e0)](function(){const _0x2d7a9c=_0x5757be;_0x3b1a46[_0x2d7a9c(0x21ad)](0x0);});}function _0x5517a6(_0x48da13,_0x134aac){const _0x2962d9=_0x2ff41a,_0x4446b5=_0x392fea[_0x2962d9(0x1551)]()[_0x2962d9(0x1386)](_0x2962d9(0x1134))[_0x2962d9(0x49e)](_0x2962d9(0x204d)+(_0x134aac[_0x2962d9(0x16b6)]||_0x2962d9(0x25a9))+_0x2962d9(0x1200)+_0x2962d9(0x1b6))[_0x2962d9(0x15ad)](_0x2962d9(0x1d7c))[_0x2962d9(0x728)](_0x48da13)['ok']('OK')[_0x2962d9(0x696)](_0x2962d9(0x24ba));_0x392fea[_0x2962d9(0xe27)](_0x4446b5)['then'](function(){const _0x3b715a=_0x2962d9;_0x5506e3[_0x3b715a(0x20dc)]['delete']({'id':_0x134aac['id']})[_0x3b715a(0x1d77)]['then'](function(){const _0x3e91e2=_0x3b715a;_0x39641b()[_0x3e91e2(0x152a)](_0x3b1a46['configurations'],{'id':_0x134aac['id']}),_0x300378[_0x3e91e2(0x829)]({'title':_0x3e91e2(0x2777),'msg':_0x134aac[_0x3e91e2(0x16b6)]?_0x134aac[_0x3e91e2(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x3b715a(0x1c4)](function(_0x4a4d11){const _0x2c07a1=_0x3b715a;_0x300378[_0x2c07a1(0x218e)]({'title':_0x4a4d11[_0x2c07a1(0x291)]?'API:'+_0x4a4d11[_0x2c07a1(0x291)]+'\x20-\x20'+_0x4a4d11[_0x2c07a1(0xc22)]:'SYSTEM:DELETECONFIGURATION','msg':_0x4a4d11['data']?JSON[_0x2c07a1(0x2701)](_0x4a4d11[_0x2c07a1(0x25c)]):_0x4a4d11['toString']()});})[_0x3b715a(0x2e0)](function(){_0x3b1a46['getSugarcrmConfiguration'](0x0);});},function(){const _0x1d9cc4=_0x2962d9;console[_0x1d9cc4(0x1b4f)](_0x1d9cc4(0x24ba));});}_0x3b1a46[_0x2ff41a(0x4df)]=[],_0x3b1a46[_0x2ff41a(0x1267)]=_0x4f692b,_0x3b1a46[_0x2ff41a(0x259e)]=_0x4e62dd,_0x3b1a46['deleteSelectedSubjects']=_0x624d49;function _0x4f692b(_0x4045b2,_0x54e277){const _0x36f115=_0x2ff41a;_0x392fea['show']({'controller':'CreateOrEditSugarcrmAccountItemDialogController','controllerAs':'vm','templateUrl':_0x2dafcc,'parent':angular['element'](_0x3d98d4[_0x36f115(0x1ed9)]),'targetEvent':_0x4045b2,'clickOutsideToClose':!![],'locals':{'type':_0x36f115(0x1e5d),'item':_0x54e277,'items':_0x3b1a46[_0x36f115(0x2388)],'configuration':_0x3b1a46['sugarcrmConfiguration'],'account':_0x3b1a46[_0x36f115(0x25d7)],'license':null,'setting':null,'crudPermissions':_0x3b1a46[_0x36f115(0x1b1a)]}});}function _0x2a44e0(_0x27d212){const _0x4470d3=_0x2ff41a;_0x5506e3[_0x4470d3(0x26b0)][_0x4470d3(0x111d)]({'id':_0x27d212['id']})[_0x4470d3(0x1d77)]['then'](function(){const _0x25645b=_0x4470d3;_0x39641b()[_0x25645b(0x152a)](_0x3b1a46[_0x25645b(0x2388)],{'id':_0x27d212['id']}),_0x300378[_0x25645b(0x829)]({'title':_0x25645b(0x1d11),'msg':_0x25645b(0x145d)});})[_0x4470d3(0x1c4)](function(_0x3f5aa4){const _0x9cfb47=_0x4470d3;_0x300378[_0x9cfb47(0x218e)]({'title':_0x3f5aa4[_0x9cfb47(0x291)]?_0x9cfb47(0xeb9)+_0x3f5aa4[_0x9cfb47(0x291)]+_0x9cfb47(0x1657)+_0x3f5aa4['statusText']:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x3f5aa4[_0x9cfb47(0x25c)]?JSON[_0x9cfb47(0x2701)](_0x3f5aa4[_0x9cfb47(0x25c)]):_0x3f5aa4['toString']()});});}function _0x4e62dd(_0x37e8f3,_0x524d8e){const _0x1c3359=_0x2ff41a,_0x55b2fd=_0x392fea[_0x1c3359(0x1551)]()[_0x1c3359(0x1386)](_0x1c3359(0xa59))[_0x1c3359(0x49e)](_0x1c3359(0x14ee)+_0x1c3359(0x1b6))['ariaLabel'](_0x1c3359(0xbc3))[_0x1c3359(0x728)](_0x37e8f3)['ok']('OK')[_0x1c3359(0x696)](_0x1c3359(0x24ba));_0x392fea[_0x1c3359(0xe27)](_0x55b2fd)[_0x1c3359(0x1cb0)](function(){_0x2a44e0(_0x524d8e);},function(){const _0x5143ab=_0x1c3359;console[_0x5143ab(0x1b4f)](_0x5143ab(0x24ba));});}function _0x624d49(_0x33933d){const _0x22e6a2=_0x2ff41a,_0x560fed=_0x392fea[_0x22e6a2(0x1551)]()[_0x22e6a2(0x1386)](_0x22e6a2(0x1f8e))[_0x22e6a2(0x49e)](_0x22e6a2(0x204d)+_0x3b1a46['selectedSubjects'][_0x22e6a2(0xfd0)]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x22e6a2(0x15ad)](_0x22e6a2(0x222e))[_0x22e6a2(0x728)](_0x33933d)['ok']('OK')[_0x22e6a2(0x696)](_0x22e6a2(0x24ba));_0x392fea['show'](_0x560fed)[_0x22e6a2(0x1cb0)](function(){const _0x5a2cd9=_0x22e6a2;_0x3b1a46[_0x5a2cd9(0x4df)]['forEach'](function(_0x4771a1){_0x2a44e0(_0x4771a1);}),_0x3b1a46[_0x5a2cd9(0x4df)]=[];});}_0x3b1a46[_0x2ff41a(0xac6)]=[],_0x3b1a46[_0x2ff41a(0x14c7)]=_0xd16279,_0x3b1a46['deleteDescriptionConfirm']=_0x56a165,_0x3b1a46[_0x2ff41a(0x2931)]=_0x4b1a7c;function _0xd16279(_0x1d3c3e,_0x5ea3d0){const _0x2b51a8=_0x2ff41a;_0x392fea[_0x2b51a8(0xe27)]({'controller':_0x2b51a8(0x77f),'controllerAs':'vm','templateUrl':_0x2dafcc,'parent':angular['element'](_0x3d98d4['body']),'targetEvent':_0x1d3c3e,'clickOutsideToClose':!![],'locals':{'type':_0x2b51a8(0x2c1),'item':_0x5ea3d0,'items':_0x3b1a46['descriptions'],'configuration':_0x3b1a46[_0x2b51a8(0x25a9)],'account':_0x3b1a46[_0x2b51a8(0x25d7)],'license':null,'setting':null,'crudPermissions':_0x3b1a46[_0x2b51a8(0x1b1a)]}});}function _0x1ac2c7(_0x36427e){const _0x427a2b=_0x2ff41a;_0x5506e3[_0x427a2b(0x26b0)][_0x427a2b(0x111d)]({'id':_0x36427e['id']})['$promise']['then'](function(){const _0x3ca5d4=_0x427a2b;_0x39641b()[_0x3ca5d4(0x152a)](_0x3b1a46[_0x3ca5d4(0x310)],{'id':_0x36427e['id']}),_0x300378[_0x3ca5d4(0x829)]({'title':_0x3ca5d4(0x24c0),'msg':_0x3ca5d4(0xb59)});})['catch'](function(_0x5ef75a){const _0x44f7f7=_0x427a2b;_0x300378[_0x44f7f7(0x218e)]({'title':_0x5ef75a[_0x44f7f7(0x291)]?_0x44f7f7(0xeb9)+_0x5ef75a[_0x44f7f7(0x291)]+_0x44f7f7(0x1657)+_0x5ef75a[_0x44f7f7(0xc22)]:_0x44f7f7(0x13e5),'msg':_0x5ef75a[_0x44f7f7(0x25c)]?JSON[_0x44f7f7(0x2701)](_0x5ef75a[_0x44f7f7(0x25c)]):_0x5ef75a['toString']()});});}function _0x56a165(_0x249b2b,_0x5a4b87){const _0x33ffa1=_0x2ff41a,_0xa6b518=_0x392fea['confirm']()[_0x33ffa1(0x1386)](_0x33ffa1(0x7d2))[_0x33ffa1(0x49e)](_0x33ffa1(0x18b8)+_0x33ffa1(0x1b6))['ariaLabel'](_0x33ffa1(0x103d))['targetEvent'](_0x249b2b)['ok']('OK')[_0x33ffa1(0x696)]('CANCEL');_0x392fea[_0x33ffa1(0xe27)](_0xa6b518)['then'](function(){_0x1ac2c7(_0x5a4b87);},function(){const _0x5a7ecc=_0x33ffa1;console[_0x5a7ecc(0x1b4f)](_0x5a7ecc(0x24ba));});}function _0x4b1a7c(_0x39c2ce){const _0x21c94c=_0x2ff41a,_0x2f0ca5=_0x392fea[_0x21c94c(0x1551)]()[_0x21c94c(0x1386)](_0x21c94c(0x2e7))[_0x21c94c(0x49e)](_0x21c94c(0x204d)+_0x3b1a46['selectedDescriptions'][_0x21c94c(0xfd0)]+_0x21c94c(0x1d6c)+_0x21c94c(0x1b6))[_0x21c94c(0x15ad)]('delete\x20descriptions')[_0x21c94c(0x728)](_0x39c2ce)['ok']('OK')[_0x21c94c(0x696)]('CANCEL');_0x392fea['show'](_0x2f0ca5)['then'](function(){const _0x9fbe29=_0x21c94c;_0x3b1a46['selectedDescriptions']['forEach'](function(_0x5e0a11){_0x1ac2c7(_0x5e0a11);}),_0x3b1a46[_0x9fbe29(0xac6)]=[];});}_0x3b1a46['selectedFields']=[],_0x3b1a46[_0x2ff41a(0x5e9)]=_0x2220d2,_0x3b1a46[_0x2ff41a(0x2398)]=_0x2df167,_0x3b1a46[_0x2ff41a(0xe40)]=_0x4dc730;function _0x2220d2(_0x33d1a6,_0x4deac6){const _0x5f99df=_0x2ff41a;_0x392fea[_0x5f99df(0xe27)]({'controller':_0x5f99df(0x77f),'controllerAs':'vm','templateUrl':_0x2dafcc,'parent':angular[_0x5f99df(0x1853)](_0x3d98d4[_0x5f99df(0x1ed9)]),'targetEvent':_0x33d1a6,'clickOutsideToClose':!![],'locals':{'type':_0x5f99df(0x2198),'item':_0x4deac6,'items':_0x3b1a46['fields'],'configuration':_0x3b1a46['sugarcrmConfiguration'],'account':_0x3b1a46[_0x5f99df(0x25d7)],'license':null,'setting':null,'crudPermissions':_0x3b1a46[_0x5f99df(0x1b1a)]}});}function _0x2e77cc(_0x2a9bc9){const _0x140a33=_0x2ff41a;_0x5506e3[_0x140a33(0x26b0)][_0x140a33(0x111d)]({'id':_0x2a9bc9['id']})[_0x140a33(0x1d77)][_0x140a33(0x1cb0)](function(){const _0x5ebb95=_0x140a33;_0x39641b()[_0x5ebb95(0x152a)](_0x3b1a46[_0x5ebb95(0x355)],{'id':_0x2a9bc9['id']}),_0x300378['success']({'title':_0x5ebb95(0xd6b),'msg':_0x5ebb95(0x2688)});})[_0x140a33(0x1c4)](function(_0x52bcd9){const _0x24ddfe=_0x140a33;_0x300378[_0x24ddfe(0x218e)]({'title':_0x52bcd9['status']?'API:'+_0x52bcd9['status']+_0x24ddfe(0x1657)+_0x52bcd9[_0x24ddfe(0xc22)]:_0x24ddfe(0x13e5),'msg':_0x52bcd9[_0x24ddfe(0x25c)]?JSON['stringify'](_0x52bcd9['data']):_0x52bcd9['toString']()});});}function _0x2df167(_0x46bb63,_0x6ecaa6){const _0x342013=_0x2ff41a,_0x4a0dd5=_0x392fea['confirm']()[_0x342013(0x1386)](_0x342013(0x21a9))[_0x342013(0x49e)](_0x342013(0xf1d)+_0x342013(0x1b6))['ariaLabel']('delete\x20field')['targetEvent'](_0x46bb63)['ok']('OK')[_0x342013(0x696)](_0x342013(0x24ba));_0x392fea[_0x342013(0xe27)](_0x4a0dd5)['then'](function(){_0x2e77cc(_0x6ecaa6);},function(){console['log']('CANCEL');});}function _0x4dc730(_0x5706cb){const _0x1194dc=_0x2ff41a,_0x1e56cf=_0x392fea[_0x1194dc(0x1551)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x1194dc(0x49e)](_0x1194dc(0x204d)+_0x3b1a46[_0x1194dc(0x9b2)][_0x1194dc(0xfd0)]+_0x1194dc(0x1d6c)+_0x1194dc(0x1b6))['ariaLabel'](_0x1194dc(0x199d))[_0x1194dc(0x728)](_0x5706cb)['ok']('OK')['cancel'](_0x1194dc(0x24ba));_0x392fea['show'](_0x1e56cf)['then'](function(){const _0x3ff5aa=_0x1194dc;_0x3b1a46[_0x3ff5aa(0x9b2)][_0x3ff5aa(0xf90)](function(_0xf1cc1b){_0x2e77cc(_0xf1cc1b);}),_0x3b1a46[_0x3ff5aa(0x9b2)]=[];});}}const _0x512264=_0x430fa5;;_0xef22e4[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),'toasty',_0x5537c6(0xa06),_0x5537c6(0x25a9),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0xef22e4(_0x5f10d3,_0x342c55,_0x47d6ba,_0x3f93bd,_0x4058eb,_0x255858,_0x344953,_0x27e274,_0x4d9293,_0x293202,_0x1d1b0b,_0x3c9c71,_0x23147c,_0x350acf){const _0x2794a5=_0x5537c6,_0x32cc8d=this;_0x32cc8d[_0x2794a5(0xe76)]=_0x1d1b0b[_0x2794a5(0x21e8)](),_0x32cc8d[_0x2794a5(0x1a7c)]=[],_0x32cc8d[_0x2794a5(0x9ca)]=_0x23147c,_0x32cc8d['license']=_0x3c9c71,_0x32cc8d['crudPermissions']=_0x350acf,_0x32cc8d['hasModulePermissions']={},_0x32cc8d[_0x2794a5(0x1b0c)]=_0x32cc8d[_0x2794a5(0x9ca)]&&_0x32cc8d[_0x2794a5(0x9ca)][_0x2794a5(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x32cc8d[_0x2794a5(0x1386)]='INTEGRATIONS.EDIT_SUGARCRMCONFIGURATION',_0x32cc8d[_0x2794a5(0x25a9)]=angular[_0x2794a5(0x17fe)](_0x4d9293),_0x32cc8d[_0x2794a5(0xa06)]=_0x27e274,_0x32cc8d[_0x2794a5(0x2a9)]=![];!_0x32cc8d[_0x2794a5(0x25a9)]&&(_0x32cc8d['sugarcrmConfiguration']={'channel':'voice','type':_0x2794a5(0x26c0)},_0x32cc8d['title']=_0x2794a5(0x13fe),_0x32cc8d['newSugarcrmConfiguration']=!![]);_0x32cc8d[_0x2794a5(0x31c)]=_0x2fbb89,_0x32cc8d[_0x2794a5(0x1436)]=_0xd1a806,_0x32cc8d[_0x2794a5(0x1a2f)]=_0x2ef9ef,_0x32cc8d['getDateFromString']=_0x342998,_0x32cc8d['closeDialog']=_0x4be831;function _0x2fbb89(){const _0x4bd94c=_0x2794a5;_0x32cc8d['errors']=[],_0x293202[_0x4bd94c(0x3fa)]['addConfiguration']({'id':_0x342c55['params']['id']},_0x32cc8d[_0x4bd94c(0x25a9)])[_0x4bd94c(0x1d77)]['then'](function(_0x27d231){const _0x26e8ac=_0x4bd94c;_0x32cc8d[_0x26e8ac(0xa06)][_0x26e8ac(0xf63)](_0x27d231['toJSON']()),_0x344953[_0x26e8ac(0x829)]({'title':_0x26e8ac(0x12cf),'msg':_0x32cc8d[_0x26e8ac(0x25a9)][_0x26e8ac(0x16b6)]?_0x32cc8d[_0x26e8ac(0x25a9)][_0x26e8ac(0x16b6)]+_0x26e8ac(0x470):''}),_0x4be831(_0x27d231);})[_0x4bd94c(0x1c4)](function(_0x253b24){const _0x55bf4e=_0x4bd94c;if(_0x253b24[_0x55bf4e(0x25c)]&&_0x253b24['data'][_0x55bf4e(0x1a7c)]&&_0x253b24['data'][_0x55bf4e(0x1a7c)][_0x55bf4e(0xfd0)]){_0x32cc8d[_0x55bf4e(0x1a7c)]=_0x253b24[_0x55bf4e(0x25c)][_0x55bf4e(0x1a7c)]||[{'message':_0x253b24[_0x55bf4e(0x147f)](),'type':'api.intSugarcrmConfiguration.save'}];for(let _0xfef6a7=0x0;_0xfef6a7<_0x253b24[_0x55bf4e(0x25c)][_0x55bf4e(0x1a7c)][_0x55bf4e(0xfd0)];_0xfef6a7+=0x1){_0x344953[_0x55bf4e(0x218e)]({'title':_0x253b24[_0x55bf4e(0x25c)]['errors'][_0xfef6a7]['type'],'msg':_0x253b24['data'][_0x55bf4e(0x1a7c)][_0xfef6a7]['message']});}}else _0x344953[_0x55bf4e(0x218e)]({'title':_0x253b24[_0x55bf4e(0x291)]?_0x55bf4e(0xeb9)+_0x253b24[_0x55bf4e(0x291)]+_0x55bf4e(0x1657)+_0x253b24[_0x55bf4e(0xc22)]:_0x55bf4e(0x1ef6),'msg':_0x253b24['data']?JSON[_0x55bf4e(0x2701)](_0x253b24[_0x55bf4e(0x25c)][_0x55bf4e(0x155e)]):_0x253b24[_0x55bf4e(0x147f)]()});});}function _0xd1a806(){const _0x22f42f=_0x2794a5;_0x32cc8d[_0x22f42f(0x1a7c)]=[],_0x293202[_0x22f42f(0x20dc)][_0x22f42f(0x687)]({'id':_0x32cc8d['sugarcrmConfiguration']['id']},_0x32cc8d[_0x22f42f(0x25a9)])[_0x22f42f(0x1d77)][_0x22f42f(0x1cb0)](function(_0x33cdd9){const _0x3ad4f5=_0x22f42f,_0x5dc775=_0x39641b()[_0x3ad4f5(0x13b4)](_0x32cc8d['configurations'],{'id':_0x33cdd9['id']});_0x5dc775&&_0x39641b()['merge'](_0x5dc775,_0x39641b()[_0x3ad4f5(0x169b)](_0x33cdd9['toJSON'](),_0x39641b()['keys'](_0x5dc775))),_0x344953['success']({'title':_0x3ad4f5(0x1f44),'msg':_0x32cc8d[_0x3ad4f5(0x25a9)][_0x3ad4f5(0x16b6)]?_0x32cc8d[_0x3ad4f5(0x25a9)][_0x3ad4f5(0x16b6)]+_0x3ad4f5(0xedb):''}),_0x4be831(_0x33cdd9);})[_0x22f42f(0x1c4)](function(_0x86ed30){const _0x39eae3=_0x22f42f;if(_0x86ed30[_0x39eae3(0x25c)]&&_0x86ed30[_0x39eae3(0x25c)][_0x39eae3(0x1a7c)]&&_0x86ed30['data']['errors'][_0x39eae3(0xfd0)]){_0x32cc8d['errors']=_0x86ed30[_0x39eae3(0x25c)][_0x39eae3(0x1a7c)]||[{'message':_0x86ed30[_0x39eae3(0x147f)](),'type':_0x39eae3(0x95a)}];for(let _0x4482af=0x0;_0x4482af<_0x86ed30['data']['errors'][_0x39eae3(0xfd0)];_0x4482af++){_0x344953['error']({'title':_0x86ed30[_0x39eae3(0x25c)]['errors'][_0x4482af]['type'],'msg':_0x86ed30['data']['errors'][_0x4482af][_0x39eae3(0x155e)]});}}else _0x344953[_0x39eae3(0x218e)]({'title':_0x86ed30[_0x39eae3(0x291)]?'API:'+_0x86ed30[_0x39eae3(0x291)]+_0x39eae3(0x1657)+_0x86ed30[_0x39eae3(0xc22)]:_0x39eae3(0x95a),'msg':_0x86ed30[_0x39eae3(0x25c)]?JSON[_0x39eae3(0x2701)](_0x86ed30[_0x39eae3(0x25c)][_0x39eae3(0x155e)]):_0x86ed30[_0x39eae3(0x147f)]()});});}function _0x2ef9ef(_0x28c1ed){const _0x20ae1a=_0x2794a5;_0x32cc8d[_0x20ae1a(0x1a7c)]=[];const _0x542b06=_0x3f93bd[_0x20ae1a(0x1551)]()[_0x20ae1a(0x1386)](_0x20ae1a(0x1a2e))['content'](_0x20ae1a(0x1e69))[_0x20ae1a(0x15ad)](_0x20ae1a(0x1290))['ok']('Delete')[_0x20ae1a(0x696)](_0x20ae1a(0xde1))[_0x20ae1a(0x728)](_0x28c1ed);_0x3f93bd[_0x20ae1a(0xe27)](_0x542b06)[_0x20ae1a(0x1cb0)](function(){const _0x2acd40=_0x20ae1a;_0x293202['intSugarcrmConfiguration'][_0x2acd40(0x111d)]({'id':_0x32cc8d[_0x2acd40(0x25a9)]['id']})['$promise'][_0x2acd40(0x1cb0)](function(){const _0x16afa5=_0x2acd40;_0x39641b()[_0x16afa5(0x152a)](_0x32cc8d[_0x16afa5(0xa06)],{'id':_0x32cc8d[_0x16afa5(0x25a9)]['id']}),_0x344953[_0x16afa5(0x829)]({'title':_0x16afa5(0x29c7),'msg':(_0x32cc8d[_0x16afa5(0x25a9)][_0x16afa5(0x16b6)]||_0x16afa5(0x25a9))+_0x16afa5(0x3f5)}),_0x4be831(_0x32cc8d[_0x16afa5(0x25a9)]);})['catch'](function(_0x2f5361){const _0x1cd95c=_0x2acd40;if(_0x2f5361[_0x1cd95c(0x25c)]&&_0x2f5361['data'][_0x1cd95c(0x1a7c)]&&_0x2f5361[_0x1cd95c(0x25c)][_0x1cd95c(0x1a7c)]['length']){_0x32cc8d[_0x1cd95c(0x1a7c)]=_0x2f5361[_0x1cd95c(0x25c)]['errors']||[{'message':_0x2f5361[_0x1cd95c(0x147f)](),'type':_0x1cd95c(0x2988)}];for(let _0x2963c6=0x0;_0x2963c6<_0x2f5361[_0x1cd95c(0x25c)][_0x1cd95c(0x1a7c)]['length'];_0x2963c6++){_0x344953[_0x1cd95c(0x218e)]({'title':_0x2f5361['data'][_0x1cd95c(0x1a7c)][_0x2963c6][_0x1cd95c(0x66a)],'msg':_0x2f5361[_0x1cd95c(0x25c)][_0x1cd95c(0x1a7c)][_0x2963c6]['message']});}}else _0x344953[_0x1cd95c(0x218e)]({'title':_0x2f5361[_0x1cd95c(0x291)]?_0x1cd95c(0xeb9)+_0x2f5361[_0x1cd95c(0x291)]+'\x20-\x20'+_0x2f5361[_0x1cd95c(0xc22)]:_0x1cd95c(0x2988),'msg':_0x2f5361[_0x1cd95c(0x25c)]?JSON['stringify'](_0x2f5361['data'][_0x1cd95c(0x155e)]):_0x2f5361[_0x1cd95c(0x155e)]||_0x2f5361[_0x1cd95c(0x147f)]()});});},function(){});}function _0x342998(_0x1b4618){return _0x1b4618===null?undefined:new Date(_0x1b4618);}function _0x4be831(_0x5c2ef4){const _0x57a52a=_0x2794a5;_0x3f93bd[_0x57a52a(0x1426)](_0x5c2ef4);}}const _0xc4dca2=_0xef22e4;;_0xd7c89a['$inject']=[_0x5537c6(0x1463),'$state',_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0x2718),_0x5537c6(0x122f),_0x5537c6(0x583),'account',_0x5537c6(0x66a),_0x5537c6(0x142b),'Auth','crudPermissions'];function _0xd7c89a(_0x12a4ee,_0x2948c5,_0x2c1ec8,_0x26ee24,_0x1f135c,_0x27c690,_0x4d459d,_0x299921,_0x2aeeca,_0x116b23,_0x141ec2,_0x1f0854,_0x5e91fa){const _0x4d3fbf=_0x5537c6,_0x30ef9f=this;_0x30ef9f[_0x4d3fbf(0xe76)]=_0x1f0854[_0x4d3fbf(0x21e8)](),_0x30ef9f[_0x4d3fbf(0x1a7c)]=[],_0x30ef9f['title']=_0x4d3fbf(0xf08)+_0x39641b()[_0x4d3fbf(0x1002)](_0x116b23),_0x30ef9f[_0x4d3fbf(0x583)]=angular[_0x4d3fbf(0x17fe)](_0x299921),_0x30ef9f[_0x4d3fbf(0x122f)]=_0x4d459d,_0x30ef9f[_0x4d3fbf(0x66a)]=_0x116b23,_0x30ef9f[_0x4d3fbf(0x1b1a)]=_0x5e91fa,_0x30ef9f['newItem']=![];!_0x30ef9f[_0x4d3fbf(0x583)]&&(_0x30ef9f[_0x4d3fbf(0x583)]={'type':_0x4d3fbf(0x1518)},_0x30ef9f[_0x4d3fbf(0x583)][_0x39641b()[_0x4d3fbf(0x432)](_0x116b23)+'Id']=_0x27c690['id'],_0x30ef9f[_0x4d3fbf(0x1386)]='INTEGRATIONS.NEW_'+_0x39641b()[_0x4d3fbf(0x1002)](_0x116b23),_0x30ef9f[_0x4d3fbf(0x1202)]=!![]);_0x30ef9f[_0x4d3fbf(0x1286)]=_0x1f7b78,_0x30ef9f[_0x4d3fbf(0x1a78)]=_0x29ae53,_0x30ef9f[_0x4d3fbf(0x1177)]=_0x3fa0d5,_0x30ef9f[_0x4d3fbf(0x2f6)]=_0x539922,_0x30ef9f[_0x4d3fbf(0xda0)]=_0x1636e9,_0x141ec2['variable']['get']({'nolimit':!![]})[_0x4d3fbf(0x1d77)][_0x4d3fbf(0x1cb0)](function(_0x476d91){const _0x32aeee=_0x4d3fbf;return _0x30ef9f[_0x32aeee(0x9a9)]=_0x476d91[_0x32aeee(0x2214)]?_0x476d91['rows']:[],_0x141ec2[_0x32aeee(0x247a)][_0x32aeee(0x1e57)]()[_0x32aeee(0x1d77)];})[_0x4d3fbf(0x1cb0)](function(_0x27f5b5){const _0x178d49=_0x4d3fbf;return _0x30ef9f['voiceAgentReportColumns']=_0x39641b()[_0x178d49(0x91f)](_0x39641b()[_0x178d49(0x1be5)](_0x27f5b5),[_0x178d49(0x1d77),_0x178d49(0x248e),_0x178d49(0x24cb),_0x178d49(0x27ba),'sourceid']),_0x30ef9f[_0x178d49(0xbf1)][_0x178d49(0x2785)](_0x178d49(0x2110)),_0x141ec2[_0x178d49(0x593)][_0x178d49(0x1e57)]()[_0x178d49(0x1d77)];})[_0x4d3fbf(0x1cb0)](function(_0x1c1aa4){const _0x447e6c=_0x4d3fbf;_0x30ef9f['voiceDialReportColumns']=_0x39641b()[_0x447e6c(0x91f)](_0x39641b()[_0x447e6c(0x1be5)](_0x1c1aa4),['$promise','$resolved',_0x447e6c(0x24cb),_0x447e6c(0x27ba),_0x447e6c(0x1867)]),_0x30ef9f[_0x447e6c(0x1639)][_0x447e6c(0x2785)](_0x447e6c(0x2110));})[_0x4d3fbf(0x1c4)](function(_0x4e0fcb){const _0x56a632=_0x4d3fbf;_0x1f135c[_0x56a632(0x218e)]({'title':_0x4e0fcb[_0x56a632(0x291)]?_0x56a632(0xeb9)+_0x4e0fcb['status']+_0x56a632(0x1657)+_0x4e0fcb[_0x56a632(0xc22)]:'SYSTEM:GETVARIABLES','msg':_0x4e0fcb[_0x56a632(0x25c)]?JSON['stringify'](_0x4e0fcb[_0x56a632(0x25c)]):_0x4e0fcb[_0x56a632(0x147f)]()});}),_0x141ec2[_0x4d3fbf(0x3fa)][_0x4d3fbf(0xc84)]({'id':_0x2aeeca['id'],'ticketType':_0x27c690[_0x4d3fbf(0x161)]?_0x27c690[_0x4d3fbf(0x161)]:undefined})['$promise'][_0x4d3fbf(0x1cb0)](function(_0x2bc170){const _0xd2c356=_0x4d3fbf;_0x30ef9f[_0xd2c356(0x1a28)]=!![],_0x30ef9f['fields']=_0x2bc170[_0xd2c356(0x2214)]?_0x2bc170[_0xd2c356(0x2214)]:[],_0x30ef9f[_0xd2c356(0x583)]['idField']&&(_0x30ef9f[_0xd2c356(0x1d5a)]=_0x39641b()[_0xd2c356(0x13b4)](_0x30ef9f[_0xd2c356(0x355)],{'id':_0x30ef9f[_0xd2c356(0x583)]['idField']}));})[_0x4d3fbf(0x1c4)](function(_0x7124b9){const _0x4999d5=_0x4d3fbf;_0x30ef9f[_0x4999d5(0x1a28)]=![],console[_0x4999d5(0x218e)](_0x7124b9);});function _0x1f7b78(){const _0x22acc9=_0x4d3fbf;_0x30ef9f['errors']=[],_0x30ef9f[_0x22acc9(0x1d5a)]&&(_0x30ef9f['item'][_0x22acc9(0x1e50)]=_0x30ef9f[_0x22acc9(0x1d5a)]['id'],_0x30ef9f[_0x22acc9(0x583)][_0x22acc9(0xc1f)]=_0x30ef9f[_0x22acc9(0x1d5a)][_0x22acc9(0x16b6)],_0x30ef9f[_0x22acc9(0x583)][_0x22acc9(0x1d5a)]=_0x30ef9f[_0x22acc9(0x1d5a)][_0x22acc9(0x197c)]),_0x141ec2[_0x22acc9(0x26b0)][_0x22acc9(0x1c3f)](_0x30ef9f[_0x22acc9(0x583)])[_0x22acc9(0x1d77)][_0x22acc9(0x1cb0)](function(_0x38fc2e){const _0x27a45f=_0x22acc9;_0x30ef9f[_0x27a45f(0x122f)][_0x27a45f(0xf63)](_0x38fc2e),_0x1f135c[_0x27a45f(0x829)]({'title':_0x39641b()['capitalize'](_0x116b23)+_0x27a45f(0x220c),'msg':_0x39641b()['capitalize'](_0x116b23)+_0x27a45f(0x470)}),_0x1636e9();})[_0x22acc9(0x1c4)](function(_0x4d78b1){const _0x2e2f18=_0x22acc9;console['error'](_0x4d78b1),_0x30ef9f[_0x2e2f18(0x1a7c)]=_0x4d78b1[_0x2e2f18(0x25c)]['errors']||[{'message':_0x4d78b1[_0x2e2f18(0x147f)](),'type':_0x2e2f18(0x1876)}];});}function _0x29ae53(){const _0x1349e4=_0x4d3fbf;_0x30ef9f[_0x1349e4(0x1a7c)]=[],_0x30ef9f[_0x1349e4(0x1d5a)]&&(_0x30ef9f[_0x1349e4(0x583)]['idField']=_0x30ef9f[_0x1349e4(0x1d5a)]['id'],_0x30ef9f[_0x1349e4(0x583)][_0x1349e4(0xc1f)]=_0x30ef9f[_0x1349e4(0x1d5a)][_0x1349e4(0x16b6)],_0x30ef9f['item'][_0x1349e4(0x1d5a)]=_0x30ef9f['customField'][_0x1349e4(0x197c)]),_0x141ec2[_0x1349e4(0x26b0)]['update']({'id':_0x30ef9f[_0x1349e4(0x583)]['id']},_0x30ef9f[_0x1349e4(0x583)])['$promise']['then'](function(_0x4dffee){const _0x212cae=_0x1349e4,_0x32e34a=_0x39641b()[_0x212cae(0x13b4)](_0x30ef9f['items'],{'id':_0x4dffee['id']});_0x32e34a&&_0x39641b()[_0x212cae(0x9c1)](_0x32e34a,_0x4dffee),_0x1f135c[_0x212cae(0x829)]({'title':_0x39641b()[_0x212cae(0x432)](_0x116b23)+_0x212cae(0xaf6),'msg':_0x39641b()['capitalize'](_0x116b23)+_0x212cae(0xedb)}),_0x1636e9();})[_0x1349e4(0x1c4)](function(_0x370ed0){const _0x2f16df=_0x1349e4;console[_0x2f16df(0x218e)](_0x370ed0),_0x30ef9f[_0x2f16df(0x1a7c)]=_0x370ed0['data']['errors']||[{'message':_0x370ed0[_0x2f16df(0x147f)](),'type':_0x2f16df(0x197e)}];});}function _0x3fa0d5(_0x1cd7e9){const _0x4611ee=_0x4d3fbf;_0x30ef9f['errors']=[];const _0x1a69ff=_0x26ee24[_0x4611ee(0x1551)]()[_0x4611ee(0x1386)]('Are\x20you\x20sure?')[_0x4611ee(0x862)](_0x4611ee(0xd4c)+_0x116b23+_0x4611ee(0x1b6))[_0x4611ee(0x15ad)](_0x4611ee(0x1f6a)+_0x39641b()[_0x4611ee(0x432)](_0x116b23))['ok']('Delete')['cancel'](_0x4611ee(0xde1))[_0x4611ee(0x728)](_0x1cd7e9);_0x26ee24[_0x4611ee(0xe27)](_0x1a69ff)['then'](function(){const _0x48c385=_0x4611ee;_0x141ec2[_0x48c385(0x26b0)][_0x48c385(0x111d)]({'id':_0x30ef9f[_0x48c385(0x583)]['id']})[_0x48c385(0x1d77)][_0x48c385(0x1cb0)](function(){const _0x3a59cb=_0x48c385;_0x39641b()['remove'](_0x30ef9f[_0x3a59cb(0x122f)],{'id':_0x30ef9f['item']['id']}),_0x1f135c[_0x3a59cb(0x829)]({'title':_0x39641b()[_0x3a59cb(0x432)](_0x116b23)+_0x3a59cb(0x1621),'msg':_0x39641b()[_0x3a59cb(0x432)](_0x116b23)+'\x20has\x20been\x20deleted!'}),_0x1636e9();})[_0x48c385(0x1c4)](function(_0x186c49){const _0x5d1cb8=_0x48c385;console[_0x5d1cb8(0x218e)](_0x186c49),_0x30ef9f[_0x5d1cb8(0x1a7c)]=_0x186c49[_0x5d1cb8(0x25c)][_0x5d1cb8(0x1a7c)]||[{'message':_0x186c49[_0x5d1cb8(0x147f)](),'type':'api.item.delete'}];});},function(){});}function _0x539922(){const _0x4ac0db=_0x4d3fbf;return _0x30ef9f[_0x4ac0db(0x583)][_0x4ac0db(0x1e71)]!==undefined?_0x30ef9f['item'][_0x4ac0db(0x1e71)]:_0x4ac0db(0x7c8);}function _0x1636e9(){_0x26ee24['hide']();}}const _0x37d99a=_0xd7c89a;;_0x5d62eb[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$document',_0x5537c6(0x1ae),'license',_0x5537c6(0x9ca),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x25d7),'userProfileSection'];function _0x5d62eb(_0x7e1e61,_0x3ed287,_0x6fba7f,_0x99943c,_0x5c668c,_0x4d9d74,_0x24aa9f,_0x34b71f,_0x52b0e6,_0x47e307,_0x457eb,_0x1303ad){const _0x253d80=_0x5537c6,_0x26eab7=this;_0x26eab7[_0x253d80(0xe76)]=_0x47e307[_0x253d80(0x21e8)](),_0x26eab7[_0x253d80(0x8a5)]=_0x4d9d74,_0x26eab7[_0x253d80(0x9ca)]=_0x24aa9f,_0x26eab7[_0x253d80(0x1b0c)]=_0x26eab7[_0x253d80(0x9ca)][_0x253d80(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x26eab7[_0x253d80(0x2404)]=_0x3ed287['protocol']()+_0x253d80(0x138b)+_0x3ed287['host'](),_0x26eab7[_0x253d80(0x25d7)]=_0x457eb||_0x7e1e61[_0x253d80(0x1dfe)][_0x253d80(0x25d7)]||{},_0x26eab7['userProfileSection']=_0x1303ad&&_0x1303ad[_0x253d80(0x184d)]==0x1?_0x1303ad[_0x253d80(0x2214)][0x0]:null,_0x26eab7[_0x253d80(0x1b1a)]=_0x47e307[_0x253d80(0x14ea)](_0x26eab7[_0x253d80(0x2199)]?_0x26eab7['userProfileSection']['crudPermissions']:null),_0x26eab7[_0x253d80(0xf4c)]={},_0x26eab7[_0x253d80(0x8ec)]=_0x7e1e61[_0x253d80(0x1dfe)][_0x253d80(0x291e)]||0x0,_0x26eab7[_0x253d80(0x494)]=_0x52b0e6[_0x253d80(0x28c7)],_0x26eab7[_0x253d80(0x1a05)]=_0x44e0cf,_0x26eab7['saveSugarcrmAccount']=_0x48e4c0;function _0x44e0cf(){const _0x1f384d=_0x253d80;_0x7e1e61['go'](_0x1f384d(0x185e),{},{'reload':'app.integrations.sugarcrmAccounts'});}function _0x48e4c0(){const _0x12a52d=_0x253d80;_0x34b71f[_0x12a52d(0x3fa)][_0x12a52d(0x687)]({'id':_0x26eab7['sugarcrmAccount']['id']},_0x26eab7[_0x12a52d(0x25d7)])[_0x12a52d(0x1d77)][_0x12a52d(0x1cb0)](function(){const _0x58d702=_0x12a52d;_0x52b0e6[_0x58d702(0x829)]({'title':_0x58d702(0x51d),'msg':_0x26eab7[_0x58d702(0x25d7)][_0x58d702(0x16b6)]?_0x26eab7[_0x58d702(0x25d7)][_0x58d702(0x16b6)]+_0x58d702(0x1068):''});})[_0x12a52d(0x1c4)](function(_0x3cfd27){const _0x1c8000=_0x12a52d;_0x52b0e6[_0x1c8000(0x218e)]({'title':_0x3cfd27[_0x1c8000(0x291)]?_0x1c8000(0xeb9)+_0x3cfd27[_0x1c8000(0x291)]+_0x1c8000(0x1657)+_0x3cfd27[_0x1c8000(0xc22)]:_0x1c8000(0x1e4a),'msg':_0x3cfd27[_0x1c8000(0x25c)]?JSON['stringify'](_0x3cfd27[_0x1c8000(0x25c)]):_0x3cfd27[_0x1c8000(0x147f)]()});});}}const _0x544d77=_0x5d62eb;;const _0x158977=_0x5074a3['p']+_0x5537c6(0x1dd2);;_0x1c4283[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),'$document','$timeout',_0x5537c6(0x1ae),_0x5537c6(0x307),'userProfile',_0x5537c6(0x2199),'api','msUtils','toasty',_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x1c4283(_0x81727a,_0x383118,_0x27b68d,_0x2bc6e5,_0x2370ba,_0x566d73,_0x1b46f8,_0x1db0e1,_0x3d2341,_0x2cfb37,_0x3ac617,_0x4edb90,_0x314ec1,_0x49e3a3,_0x2fbbf0,_0x135e2e,_0x20c70c){const _0x35cd2f=_0x5537c6,_0x22b00f=this;_0x22b00f['license']=_0x135e2e,_0x22b00f[_0x35cd2f(0x9ca)]=_0x20c70c,_0x22b00f[_0x35cd2f(0xe76)]=_0x2fbbf0[_0x35cd2f(0x21e8)](),_0x22b00f[_0x35cd2f(0x307)]=_0x3d2341||{'count':0x0,'rows':[]},_0x22b00f[_0x35cd2f(0x44a)]=_0x2cfb37,_0x22b00f['userProfileSection']=_0x3ac617&&_0x3ac617[_0x35cd2f(0x184d)]==0x1?_0x3ac617[_0x35cd2f(0x2214)][0x0]:null,_0x22b00f['crudPermissions']=_0x2fbbf0[_0x35cd2f(0x14ea)](_0x22b00f[_0x35cd2f(0x2199)]?_0x22b00f[_0x35cd2f(0x2199)][_0x35cd2f(0x1b1a)]:null),_0x22b00f[_0x35cd2f(0xc83)]=_0x35cd2f(0x307),_0x22b00f[_0x35cd2f(0x1d20)]='',_0x22b00f['listOrderAsc']=null,_0x22b00f[_0x35cd2f(0x16cd)]=[],_0x22b00f[_0x35cd2f(0xae2)]={'fields':'createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','limit':0xa,'page':0x1},_0x22b00f['editstate']=_0x4c303c,_0x22b00f[_0x35cd2f(0x6b1)]=_0x14a4ed,_0x22b00f['deleteconfirm']=_0x63e6d,_0x22b00f[_0x35cd2f(0x829)]=_0x2a8a60,_0x22b00f[_0x35cd2f(0x10e9)]=_0x4cb21f,_0x22b00f[_0x35cd2f(0x183e)]=_0xa71bb6,_0x22b00f[_0x35cd2f(0x12c8)]=_0x890728,_0x22b00f[_0x35cd2f(0xce1)]=_0x1df6d7,_0x22b00f[_0x35cd2f(0x239e)]=_0x4fee72,_0x22b00f[_0x35cd2f(0x10e5)]=_0xe946fa,_0x22b00f['selectAllSugarcrmAccounts']=_0x966441;function _0x4c303c(_0x3a4e18){const _0x238689=_0x35cd2f;_0x27b68d['go']('app.integrations.sugarcrmAccounts.edit',{'id':_0x3a4e18['id'],'sugarcrmAccount':_0x3a4e18,'crudPermissions':_0x22b00f[_0x238689(0x1b1a)]});}function _0x14a4ed(_0x2af4cf){const _0x293ebc=_0x35cd2f;return _0x4edb90[_0x293ebc(0x3fa)][_0x293ebc(0xc84)]({'id':_0x2af4cf['id'],'test':!![]})[_0x293ebc(0x1d77)][_0x293ebc(0x1cb0)](function(){const _0x1e698e=_0x293ebc;_0x49e3a3[_0x1e698e(0x829)]({'title':'SugarcrmAccount\x20properly\x20tested','msg':_0x1e698e(0x1bca)});})['catch'](function(_0x128b34){const _0x521b76=_0x293ebc;_0x49e3a3[_0x521b76(0x218e)]({'title':_0x521b76(0x1fa8),'msg':_0x128b34[_0x521b76(0x25c)]?_0x128b34[_0x521b76(0x25c)][_0x521b76(0x155e)]?_0x128b34[_0x521b76(0x25c)]['message']:JSON[_0x521b76(0x2701)](_0x128b34['data']):_0x128b34[_0x521b76(0x147f)]()});});}function _0x63e6d(_0x5bbb93,_0x2247bb){const _0x5602fa=_0x35cd2f,_0x5e62c5=_0x2370ba[_0x5602fa(0x1551)]()['title'](_0x5602fa(0x140b)+_0x39641b()[_0x5602fa(0xa75)](_0x5602fa(0x25d7))+'?')[_0x5602fa(0x49e)](_0x5602fa(0x204d)+(_0x5bbb93[_0x5602fa(0x16b6)]||'sugarcrmAccount')+''+_0x5602fa(0x1b6))[_0x5602fa(0x15ad)](_0x5602fa(0x6d1))[_0x5602fa(0x728)](_0x2247bb)['ok']('OK')[_0x5602fa(0x696)](_0x5602fa(0x24ba));_0x2370ba[_0x5602fa(0xe27)](_0x5e62c5)[_0x5602fa(0x1cb0)](function(){_0x890728(_0x5bbb93);},function(){const _0x28dd23=_0x5602fa;console['log'](_0x28dd23(0x24ba));});}let _0x5ced9c=!![],_0x4d4fbb=0x1;_0x81727a[_0x35cd2f(0x614)](_0x35cd2f(0x957),function(_0x484519,_0x5f13a1){const _0x1a44dc=_0x35cd2f;_0x5ced9c?_0x1b46f8(function(){_0x5ced9c=![];}):(!_0x5f13a1&&(_0x4d4fbb=_0x22b00f['query']['page']),_0x484519!==_0x5f13a1&&(_0x22b00f['query'][_0x1a44dc(0x1c7b)]=0x1),!_0x484519&&(_0x22b00f['query'][_0x1a44dc(0x1c7b)]=_0x4d4fbb),_0x22b00f[_0x1a44dc(0x10e9)]());});function _0x2a8a60(_0x3d0b02){const _0x5c8b67=_0x35cd2f;_0x22b00f[_0x5c8b67(0x307)]=_0x3d0b02||{'count':0x0,'rows':[]};}function _0x4cb21f(){const _0x6f02bb=_0x35cd2f;_0x22b00f[_0x6f02bb(0xae2)]['offset']=(_0x22b00f[_0x6f02bb(0xae2)]['page']-0x1)*_0x22b00f[_0x6f02bb(0xae2)][_0x6f02bb(0x236)],_0x2fbbf0[_0x6f02bb(0x22b6)](_0x6f02bb(0x1c60))?_0x22b00f[_0x6f02bb(0x2061)]=_0x4edb90['intSugarcrmAccount']['get'](_0x22b00f[_0x6f02bb(0xae2)],_0x2a8a60)['$promise']:(_0x22b00f['query']['id']=_0x22b00f[_0x6f02bb(0x44a)]['id'],_0x22b00f[_0x6f02bb(0xae2)][_0x6f02bb(0x1f74)]='SugarcrmAccounts',_0x22b00f[_0x6f02bb(0x2061)]=_0x4edb90[_0x6f02bb(0x44a)][_0x6f02bb(0x1810)](_0x22b00f[_0x6f02bb(0xae2)],_0x2a8a60)[_0x6f02bb(0x1d77)]);}function _0xa71bb6(_0x6961f9,_0xa18e0a){const _0x19d72f=_0x35cd2f;_0x2370ba[_0x19d72f(0xe27)]({'controller':_0x19d72f(0x9bd),'controllerAs':'vm','templateUrl':_0x158977,'parent':angular['element'](_0x566d73[_0x19d72f(0x1ed9)]),'targetEvent':_0x6961f9,'clickOutsideToClose':!![],'locals':{'sugarcrmAccount':_0xa18e0a,'sugarcrmAccounts':_0x22b00f['sugarcrmAccounts'][_0x19d72f(0x2214)],'license':_0x22b00f[_0x19d72f(0x8a5)],'setting':_0x22b00f[_0x19d72f(0x9ca)],'crudPermissions':_0x22b00f['crudPermissions']}});}function _0x890728(_0x4ffe97){const _0x69211e=_0x35cd2f;_0x4edb90[_0x69211e(0x3fa)][_0x69211e(0x111d)]({'id':_0x4ffe97['id']})[_0x69211e(0x1d77)][_0x69211e(0x1cb0)](function(){const _0x3f4888=_0x69211e;_0x39641b()['remove'](_0x22b00f[_0x3f4888(0x307)][_0x3f4888(0x2214)],{'id':_0x4ffe97['id']}),_0x22b00f[_0x3f4888(0x307)][_0x3f4888(0x184d)]-=0x1,!_0x22b00f[_0x3f4888(0x307)][_0x3f4888(0x2214)][_0x3f4888(0xfd0)]&&_0x22b00f[_0x3f4888(0x10e9)](),_0x49e3a3[_0x3f4888(0x829)]({'title':_0x39641b()[_0x3f4888(0xa75)](_0x3f4888(0x206b))+_0x3f4888(0x2663),'msg':_0x4ffe97[_0x3f4888(0x16b6)]?_0x4ffe97[_0x3f4888(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x69211e(0x1c4)](function(_0x406e36){const _0x5078c0=_0x69211e;if(_0x406e36[_0x5078c0(0x25c)]&&_0x406e36[_0x5078c0(0x25c)][_0x5078c0(0x1a7c)]&&_0x406e36[_0x5078c0(0x25c)][_0x5078c0(0x1a7c)][_0x5078c0(0xfd0)]){_0x22b00f[_0x5078c0(0x1a7c)]=_0x406e36[_0x5078c0(0x25c)][_0x5078c0(0x1a7c)]||[{'message':_0x406e36[_0x5078c0(0x147f)](),'type':_0x5078c0(0xf41)}];for(let _0x26188e=0x0;_0x26188e<_0x406e36['data'][_0x5078c0(0x1a7c)][_0x5078c0(0xfd0)];_0x26188e++){_0x49e3a3[_0x5078c0(0x218e)]({'title':_0x406e36[_0x5078c0(0x25c)][_0x5078c0(0x1a7c)][_0x26188e][_0x5078c0(0x66a)],'msg':_0x406e36[_0x5078c0(0x25c)][_0x5078c0(0x1a7c)][_0x26188e][_0x5078c0(0x155e)]});}}else _0x49e3a3[_0x5078c0(0x218e)]({'title':_0x406e36['status']?'API:'+_0x406e36['status']+_0x5078c0(0x1657)+_0x406e36[_0x5078c0(0xc22)]:_0x5078c0(0xf41),'msg':_0x406e36[_0x5078c0(0x25c)]?JSON['stringify'](_0x406e36[_0x5078c0(0x25c)][_0x5078c0(0x155e)]):_0x406e36[_0x5078c0(0x155e)]||_0x406e36[_0x5078c0(0x147f)]()});});}function _0x1df6d7(){const _0x3aa69e=_0x35cd2f,_0x194541=angular[_0x3aa69e(0x17fe)](_0x22b00f['selectedSugarcrmAccounts']);return _0x22b00f[_0x3aa69e(0x16cd)]=[],_0x194541;}function _0x4fee72(_0x5369e2){const _0x2ce1c4=_0x35cd2f,_0x3ed216=_0x2370ba[_0x2ce1c4(0x1551)]()[_0x2ce1c4(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sugarcrmAccounts?')[_0x2ce1c4(0x49e)](_0x2ce1c4(0x204d)+_0x22b00f['selectedSugarcrmAccounts']['length']+'\x20selected'+_0x2ce1c4(0x1b6))[_0x2ce1c4(0x15ad)]('delete\x20SugarcrmAccounts')['targetEvent'](_0x5369e2)['ok']('OK')[_0x2ce1c4(0x696)](_0x2ce1c4(0x24ba));_0x2370ba['show'](_0x3ed216)[_0x2ce1c4(0x1cb0)](function(){const _0x3c7a4b=_0x2ce1c4;_0x22b00f[_0x3c7a4b(0x16cd)][_0x3c7a4b(0xf90)](function(_0x16ef58){_0x890728(_0x16ef58);}),_0x22b00f[_0x3c7a4b(0x16cd)]=[];});}function _0xe946fa(){const _0x5db4c4=_0x35cd2f;_0x22b00f[_0x5db4c4(0x16cd)]=[];}function _0x966441(){const _0x4ab5f7=_0x35cd2f;_0x22b00f[_0x4ab5f7(0x16cd)]=_0x22b00f[_0x4ab5f7(0x307)]['rows'];}}const _0x322d0d=_0x1c4283;;_0x472aa1[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),'$location',_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x23e),'vtigerAccount',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x472aa1(_0x2a3ea2,_0x40e981,_0x22d352,_0x3ddf93,_0xa2fdbe,_0x404280,_0x4ba9b0,_0x374df6,_0x4795bb,_0x373017,_0x3a1372,_0x2faeaa,_0x5a16bd,_0x46f547){const _0x29ce85=_0x5537c6,_0x17e892=this;_0x17e892['currentUser']=_0x3a1372[_0x29ce85(0x21e8)](),_0x17e892[_0x29ce85(0x1a7c)]=[],_0x17e892[_0x29ce85(0x9ca)]=_0x5a16bd,_0x17e892['license']=_0x2faeaa,_0x17e892[_0x29ce85(0x1b1a)]=_0x46f547,_0x17e892['hasModulePermissions']={},_0x17e892[_0x29ce85(0x1b0c)]=_0x17e892[_0x29ce85(0x9ca)]&&_0x17e892[_0x29ce85(0x9ca)][_0x29ce85(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x17e892['title']=_0x29ce85(0xc23),_0x17e892[_0x29ce85(0x1bc5)]=angular[_0x29ce85(0x17fe)](_0x4795bb),_0x17e892[_0x29ce85(0x23e)]=_0x374df6,_0x17e892['newVtigerAccount']=![];!_0x17e892[_0x29ce85(0x1bc5)]&&(_0x17e892[_0x29ce85(0x1bc5)]={'serverUrl':_0x22d352[_0x29ce85(0x2276)]()+_0x29ce85(0x138b)+_0x22d352['host']()+(_0x22d352[_0x29ce85(0x477)]()?':'+_0x22d352[_0x29ce85(0x477)]():'')},_0x17e892['title']=_0x29ce85(0x1400),_0x17e892[_0x29ce85(0x1238)]=!![]);_0x17e892[_0x29ce85(0x1909)]=_0xd2bd6e,_0x17e892[_0x29ce85(0x2f8)]=_0x5bf671,_0x17e892[_0x29ce85(0x3a2)]=_0x86030a,_0x17e892[_0x29ce85(0x2c4)]=_0x472937,_0x17e892[_0x29ce85(0xda0)]=_0x528326;function _0xd2bd6e(){const _0x3d7237=_0x29ce85;_0x17e892['errors']=[],_0x373017[_0x3d7237(0xe0d)][_0x3d7237(0x1c3f)](_0x17e892[_0x3d7237(0x1bc5)])['$promise'][_0x3d7237(0x1cb0)](function(_0x5b13a8){const _0x249007=_0x3d7237;_0x17e892[_0x249007(0x23e)]['unshift'](_0x5b13a8[_0x249007(0x19b2)]()),_0x4ba9b0[_0x249007(0x829)]({'title':_0x249007(0x104b),'msg':_0x17e892['vtigerAccount']['name']?_0x17e892['vtigerAccount'][_0x249007(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x528326(_0x5b13a8);})[_0x3d7237(0x1c4)](function(_0x4aa0bd){const _0xbcc618=_0x3d7237;if(_0x4aa0bd[_0xbcc618(0x25c)]&&_0x4aa0bd[_0xbcc618(0x25c)][_0xbcc618(0x1a7c)]&&_0x4aa0bd['data']['errors'][_0xbcc618(0xfd0)]){_0x17e892[_0xbcc618(0x1a7c)]=_0x4aa0bd[_0xbcc618(0x25c)][_0xbcc618(0x1a7c)]||[{'message':_0x4aa0bd[_0xbcc618(0x147f)](),'type':'api.intVtigerAccount.save'}];for(let _0x27be3a=0x0;_0x27be3a<_0x4aa0bd[_0xbcc618(0x25c)][_0xbcc618(0x1a7c)][_0xbcc618(0xfd0)];_0x27be3a+=0x1){_0x4ba9b0['error']({'title':_0x4aa0bd['data'][_0xbcc618(0x1a7c)][_0x27be3a]['type'],'msg':_0x4aa0bd['data'][_0xbcc618(0x1a7c)][_0x27be3a][_0xbcc618(0x155e)]});}}else _0x4ba9b0[_0xbcc618(0x218e)]({'title':_0x4aa0bd[_0xbcc618(0x291)]?'API:'+_0x4aa0bd[_0xbcc618(0x291)]+'\x20-\x20'+_0x4aa0bd[_0xbcc618(0xc22)]:_0xbcc618(0xd1a),'msg':_0x4aa0bd[_0xbcc618(0x25c)]?JSON[_0xbcc618(0x2701)](_0x4aa0bd[_0xbcc618(0x25c)]['message']):_0x4aa0bd[_0xbcc618(0x147f)]()});});}function _0x5bf671(){const _0x34dab7=_0x29ce85;_0x17e892[_0x34dab7(0x1a7c)]=[],_0x373017['intVtigerAccount']['update']({'id':_0x17e892['vtigerAccount']['id']},_0x17e892[_0x34dab7(0x1bc5)])[_0x34dab7(0x1d77)]['then'](function(_0x9b5c3f){const _0x4f9e39=_0x34dab7,_0x4cc7e2=_0x39641b()[_0x4f9e39(0x13b4)](_0x17e892[_0x4f9e39(0x23e)],{'id':_0x9b5c3f['id']});_0x4cc7e2&&_0x39641b()[_0x4f9e39(0x9c1)](_0x4cc7e2,_0x39641b()[_0x4f9e39(0x169b)](_0x9b5c3f[_0x4f9e39(0x19b2)](),_0x39641b()[_0x4f9e39(0x1be5)](_0x4cc7e2))),_0x4ba9b0[_0x4f9e39(0x829)]({'title':_0x4f9e39(0x1fe0),'msg':_0x17e892[_0x4f9e39(0x1bc5)][_0x4f9e39(0x16b6)]?_0x17e892[_0x4f9e39(0x1bc5)][_0x4f9e39(0x16b6)]+_0x4f9e39(0xedb):''}),_0x528326(_0x9b5c3f);})[_0x34dab7(0x1c4)](function(_0x5e65ed){const _0x241f1d=_0x34dab7;if(_0x5e65ed['data']&&_0x5e65ed[_0x241f1d(0x25c)][_0x241f1d(0x1a7c)]&&_0x5e65ed[_0x241f1d(0x25c)][_0x241f1d(0x1a7c)][_0x241f1d(0xfd0)]){_0x17e892[_0x241f1d(0x1a7c)]=_0x5e65ed[_0x241f1d(0x25c)]['errors']||[{'message':_0x5e65ed['toString'](),'type':_0x241f1d(0x1c0f)}];for(let _0x48ada8=0x0;_0x48ada8<_0x5e65ed['data'][_0x241f1d(0x1a7c)][_0x241f1d(0xfd0)];_0x48ada8++){_0x4ba9b0[_0x241f1d(0x218e)]({'title':_0x5e65ed[_0x241f1d(0x25c)]['errors'][_0x48ada8][_0x241f1d(0x66a)],'msg':_0x5e65ed[_0x241f1d(0x25c)]['errors'][_0x48ada8][_0x241f1d(0x155e)]});}}else _0x4ba9b0[_0x241f1d(0x218e)]({'title':_0x5e65ed['status']?_0x241f1d(0xeb9)+_0x5e65ed[_0x241f1d(0x291)]+'\x20-\x20'+_0x5e65ed['statusText']:'api.intVtigerAccount.update','msg':_0x5e65ed[_0x241f1d(0x25c)]?JSON['stringify'](_0x5e65ed['data']['message']):_0x5e65ed[_0x241f1d(0x147f)]()});});}function _0x86030a(_0x4dec3){const _0x3245ba=_0x29ce85;_0x17e892['errors']=[];const _0x45687c=_0x3ddf93[_0x3245ba(0x1551)]()[_0x3245ba(0x1386)]('Are\x20you\x20sure?')[_0x3245ba(0x862)](_0x3245ba(0x1827))[_0x3245ba(0x15ad)](_0x3245ba(0x26f2))['ok'](_0x3245ba(0x2594))[_0x3245ba(0x696)]('Cancel')['targetEvent'](_0x4dec3);_0x3ddf93[_0x3245ba(0xe27)](_0x45687c)[_0x3245ba(0x1cb0)](function(){const _0x4f1ced=_0x3245ba;_0x373017[_0x4f1ced(0xe0d)][_0x4f1ced(0x111d)]({'id':_0x17e892[_0x4f1ced(0x1bc5)]['id']})[_0x4f1ced(0x1d77)][_0x4f1ced(0x1cb0)](function(){const _0x51ab04=_0x4f1ced;_0x39641b()['remove'](_0x17e892['vtigerAccounts'],{'id':_0x17e892[_0x51ab04(0x1bc5)]['id']}),_0x4ba9b0[_0x51ab04(0x829)]({'title':_0x51ab04(0x2793),'msg':(_0x17e892['vtigerAccount'][_0x51ab04(0x16b6)]||_0x51ab04(0x1bc5))+_0x51ab04(0x3f5)}),_0x528326(_0x17e892[_0x51ab04(0x1bc5)]);})[_0x4f1ced(0x1c4)](function(_0x54022c){const _0x35706c=_0x4f1ced;if(_0x54022c[_0x35706c(0x25c)]&&_0x54022c[_0x35706c(0x25c)][_0x35706c(0x1a7c)]&&_0x54022c[_0x35706c(0x25c)]['errors']['length']){_0x17e892[_0x35706c(0x1a7c)]=_0x54022c[_0x35706c(0x25c)][_0x35706c(0x1a7c)]||[{'message':_0x54022c[_0x35706c(0x147f)](),'type':_0x35706c(0xe8d)}];for(let _0x4c31cb=0x0;_0x4c31cb<_0x54022c['data'][_0x35706c(0x1a7c)][_0x35706c(0xfd0)];_0x4c31cb++){_0x4ba9b0['error']({'title':_0x54022c[_0x35706c(0x25c)]['errors'][_0x4c31cb]['type'],'msg':_0x54022c[_0x35706c(0x25c)][_0x35706c(0x1a7c)][_0x4c31cb][_0x35706c(0x155e)]});}}else _0x4ba9b0[_0x35706c(0x218e)]({'title':_0x54022c[_0x35706c(0x291)]?'API:'+_0x54022c['status']+_0x35706c(0x1657)+_0x54022c['statusText']:_0x35706c(0xe8d),'msg':_0x54022c[_0x35706c(0x25c)]?JSON[_0x35706c(0x2701)](_0x54022c[_0x35706c(0x25c)][_0x35706c(0x155e)]):_0x54022c[_0x35706c(0x155e)]||_0x54022c[_0x35706c(0x147f)]()});});},function(){});}function _0x472937(_0x5e4c1d){return _0x5e4c1d===null?undefined:new Date(_0x5e4c1d);}function _0x528326(_0x599f60){const _0xe7c873=_0x29ce85;_0x3ddf93[_0xe7c873(0x1426)](_0x599f60);}}const _0x28d89f=_0x472aa1;;const _0x286669=_0x5074a3['p']+_0x5537c6(0x10a4);;const _0x3cd87d=_0x5074a3['p']+_0x5537c6(0x11fe);;_0x4208f1[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x142b),_0x5537c6(0x9bf),'Auth'];function _0x4208f1(_0x2fe80c,_0x39c1f5,_0x46b5e0,_0x2805e3,_0x2795da){const _0x4afc34=_0x5537c6,_0x437fd7=this;_0x437fd7[_0x4afc34(0xe76)]=_0x2795da[_0x4afc34(0x21e8)](),_0x437fd7['vtigerAccount']={},_0x437fd7[_0x4afc34(0x1d65)]={},_0x437fd7[_0x4afc34(0xa06)]=[],_0x437fd7[_0x4afc34(0x820)]=-0x1,_0x437fd7['crudPermissions'],_0x437fd7[_0x4afc34(0x1a8e)]=_0x1d6895,_0x437fd7[_0x4afc34(0x150a)]=_0x1a8b61,_0x437fd7['createOrEditVtigerConfiguration']=_0x3e6bb4,_0x437fd7[_0x4afc34(0x12dd)]=_0x2d6120;function _0x1d6895(_0x4ed0f8,_0x1ff104){const _0x309e67=_0x4afc34;_0x437fd7[_0x309e67(0x1bc5)]=_0x4ed0f8,_0x437fd7['crudPermissions']=typeof _0x1ff104!==_0x309e67(0x16b5)?_0x1ff104:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x46b5e0['intVtigerAccount']['getConfigurations']({'id':_0x437fd7['vtigerAccount']['id'],'sort':'-updatedAt'})[_0x309e67(0x1d77)][_0x309e67(0x1cb0)](function(_0x1e267b){const _0x39531e=_0x309e67;return _0x437fd7[_0x39531e(0xa06)]=_0x1e267b[_0x39531e(0x2214)]?_0x1e267b[_0x39531e(0x2214)]:[],_0x437fd7['configurations'][_0x39531e(0xfd0)]&&_0x437fd7['getVtigerConfiguration'](0x0),_0x46b5e0[_0x39531e(0x1822)][_0x39531e(0xbf7)]({'nolimit':!![],'sort':'name'})[_0x39531e(0x1d77)];})[_0x309e67(0x1cb0)](function(_0x5f4508){const _0x3b51be=_0x309e67;_0x437fd7['variables']=_0x5f4508['rows']?_0x5f4508[_0x3b51be(0x2214)]:[],_0x437fd7[_0x3b51be(0x1a3c)]=_0x39641b()[_0x3b51be(0x2631)](_0x437fd7[_0x3b51be(0x9a9)],'id');})[_0x309e67(0x1c4)](function(_0xfe5e01){const _0x35605f=_0x309e67;_0x2805e3[_0x35605f(0x218e)]({'title':_0xfe5e01[_0x35605f(0x291)]?_0x35605f(0xeb9)+_0xfe5e01[_0x35605f(0x291)]+_0x35605f(0x1657)+_0xfe5e01[_0x35605f(0xc22)]:_0x35605f(0x1b0f),'msg':_0xfe5e01['data']?JSON[_0x35605f(0x2701)](_0xfe5e01[_0x35605f(0x25c)]):_0xfe5e01[_0x35605f(0x147f)]()});});}function _0x1a8b61(_0x379b81){const _0x3582fb=_0x4afc34;_0x437fd7[_0x3582fb(0x1d65)]=_0x437fd7[_0x3582fb(0xa06)][_0x379b81],_0x437fd7[_0x3582fb(0x820)]=_0x379b81,_0x46b5e0[_0x3582fb(0x1301)][_0x3582fb(0x243a)]({'id':_0x437fd7[_0x3582fb(0x1d65)]['id']})[_0x3582fb(0x1d77)]['then'](function(_0x49157d){const _0x37da3b=_0x3582fb;return _0x437fd7[_0x37da3b(0x2388)]=_0x49157d['rows']?_0x49157d[_0x37da3b(0x2214)]:[],_0x46b5e0[_0x37da3b(0x1301)]['getDescriptions']({'id':_0x437fd7['vtigerConfiguration']['id']})[_0x37da3b(0x1d77)];})[_0x3582fb(0x1cb0)](function(_0x599617){const _0x5b8efd=_0x3582fb;return _0x437fd7[_0x5b8efd(0x310)]=_0x599617[_0x5b8efd(0x2214)]?_0x599617[_0x5b8efd(0x2214)]:[],_0x46b5e0[_0x5b8efd(0x1301)]['getFields']({'id':_0x437fd7['vtigerConfiguration']['id']})[_0x5b8efd(0x1d77)];})['then'](function(_0x14b7fb){const _0x2d38ac=_0x3582fb;_0x437fd7[_0x2d38ac(0x355)]=_0x14b7fb[_0x2d38ac(0x2214)]?_0x14b7fb['rows']:[];})[_0x3582fb(0x1c4)](function(_0x2694fe){const _0x1cb663=_0x3582fb;_0x2805e3['error']({'title':_0x2694fe[_0x1cb663(0x291)]?_0x1cb663(0xeb9)+_0x2694fe[_0x1cb663(0x291)]+'\x20-\x20'+_0x2694fe[_0x1cb663(0xc22)]:_0x1cb663(0x1e5f),'msg':_0x2694fe[_0x1cb663(0x25c)]?JSON['stringify'](_0x2694fe[_0x1cb663(0x25c)]):_0x2694fe[_0x1cb663(0x147f)]()});});}function _0x3e6bb4(_0x4ccae0,_0x480061){const _0x300241=_0x4afc34;_0x2fe80c[_0x300241(0xe27)]({'controller':_0x300241(0x36c),'controllerAs':'vm','templateUrl':_0x286669,'parent':angular['element'](_0x39c1f5[_0x300241(0x1ed9)]),'targetEvent':_0x4ccae0,'clickOutsideToClose':!![],'locals':{'vtigerConfiguration':_0x480061,'configurations':_0x437fd7['configurations'],'license':null,'setting':null,'crudPermissions':_0x437fd7[_0x300241(0x1b1a)]}})[_0x300241(0x2e0)](function(){_0x437fd7['getVtigerConfiguration'](0x0);});}function _0x2d6120(_0x3ae748,_0x3d5e48){const _0x295eca=_0x4afc34,_0x4db0a7=_0x2fe80c['confirm']()[_0x295eca(0x1386)](_0x295eca(0x2293))[_0x295eca(0x49e)](_0x295eca(0x204d)+(_0x3d5e48['name']||'vtigerConfiguration')+''+_0x295eca(0x1b6))[_0x295eca(0x15ad)](_0x295eca(0xa8b))[_0x295eca(0x728)](_0x3ae748)['ok']('OK')[_0x295eca(0x696)](_0x295eca(0x24ba));_0x2fe80c[_0x295eca(0xe27)](_0x4db0a7)[_0x295eca(0x1cb0)](function(){const _0x58b6a3=_0x295eca;_0x46b5e0[_0x58b6a3(0x1301)][_0x58b6a3(0x111d)]({'id':_0x3d5e48['id']})[_0x58b6a3(0x1d77)][_0x58b6a3(0x1cb0)](function(){const _0x208d10=_0x58b6a3;_0x39641b()[_0x208d10(0x152a)](_0x437fd7['configurations'],{'id':_0x3d5e48['id']}),_0x2805e3[_0x208d10(0x829)]({'title':'VtigerConfiguration\x20deleted!','msg':_0x3d5e48[_0x208d10(0x16b6)]?_0x3d5e48['name']+'\x20has\x20been\x20deleted!':''});})[_0x58b6a3(0x1c4)](function(_0x5b191b){const _0x4ed639=_0x58b6a3;_0x2805e3[_0x4ed639(0x218e)]({'title':_0x5b191b[_0x4ed639(0x291)]?_0x4ed639(0xeb9)+_0x5b191b[_0x4ed639(0x291)]+'\x20-\x20'+_0x5b191b[_0x4ed639(0xc22)]:'SYSTEM:DELETECONFIGURATION','msg':_0x5b191b[_0x4ed639(0x25c)]?JSON[_0x4ed639(0x2701)](_0x5b191b['data']):_0x5b191b['toString']()});})['finally'](function(){const _0x3045ca=_0x58b6a3;_0x437fd7[_0x3045ca(0x150a)](0x0);});},function(){const _0x54cc00=_0x295eca;console[_0x54cc00(0x1b4f)]('CANCEL');});}_0x437fd7[_0x4afc34(0x4df)]=[],_0x437fd7[_0x4afc34(0x1267)]=_0x498375,_0x437fd7[_0x4afc34(0x259e)]=_0x1c492d,_0x437fd7[_0x4afc34(0xf12)]=_0x6f307;function _0x498375(_0x4e4c17,_0x59d482){const _0x59b34b=_0x4afc34;_0x2fe80c[_0x59b34b(0xe27)]({'controller':_0x59b34b(0x1646),'controllerAs':'vm','templateUrl':_0x3cd87d,'parent':angular[_0x59b34b(0x1853)](_0x39c1f5[_0x59b34b(0x1ed9)]),'targetEvent':_0x4e4c17,'clickOutsideToClose':!![],'locals':{'type':_0x59b34b(0x1e5d),'item':_0x59d482,'items':_0x437fd7['subjects'],'configuration':_0x437fd7[_0x59b34b(0x1d65)],'account':_0x437fd7[_0x59b34b(0x1bc5)],'license':null,'setting':null,'crudPermissions':_0x437fd7['crudPermissions']}});}function _0x4c6221(_0x18ceb5){const _0x435027=_0x4afc34;_0x46b5e0[_0x435027(0x4a3)]['delete']({'id':_0x18ceb5['id']})['$promise'][_0x435027(0x1cb0)](function(){const _0x37967a=_0x435027;_0x39641b()['remove'](_0x437fd7[_0x37967a(0x2388)],{'id':_0x18ceb5['id']}),_0x2805e3[_0x37967a(0x829)]({'title':_0x37967a(0x1d11),'msg':_0x37967a(0x145d)});})[_0x435027(0x1c4)](function(_0x3c878a){const _0x36ebda=_0x435027;_0x2805e3[_0x36ebda(0x218e)]({'title':_0x3c878a[_0x36ebda(0x291)]?_0x36ebda(0xeb9)+_0x3c878a[_0x36ebda(0x291)]+_0x36ebda(0x1657)+_0x3c878a[_0x36ebda(0xc22)]:_0x36ebda(0x13e5),'msg':_0x3c878a['data']?JSON[_0x36ebda(0x2701)](_0x3c878a['data']):_0x3c878a[_0x36ebda(0x147f)]()});});}function _0x1c492d(_0x2398be,_0x19f0aa){const _0x19441d=_0x4afc34,_0x3de2fa=_0x2fe80c['confirm']()[_0x19441d(0x1386)](_0x19441d(0xa59))[_0x19441d(0x49e)](_0x19441d(0x14ee)+_0x19441d(0x1b6))[_0x19441d(0x15ad)](_0x19441d(0xbc3))['targetEvent'](_0x2398be)['ok']('OK')[_0x19441d(0x696)](_0x19441d(0x24ba));_0x2fe80c[_0x19441d(0xe27)](_0x3de2fa)[_0x19441d(0x1cb0)](function(){_0x4c6221(_0x19f0aa);},function(){const _0x467792=_0x19441d;console[_0x467792(0x1b4f)](_0x467792(0x24ba));});}function _0x6f307(_0x5f207b){const _0x286b70=_0x4afc34,_0x66f0bd=_0x2fe80c[_0x286b70(0x1551)]()[_0x286b70(0x1386)](_0x286b70(0x1f8e))[_0x286b70(0x49e)](_0x286b70(0x204d)+_0x437fd7['selectedSubjects']['length']+'\x20selected'+_0x286b70(0x1b6))['ariaLabel'](_0x286b70(0x222e))[_0x286b70(0x728)](_0x5f207b)['ok']('OK')['cancel']('CANCEL');_0x2fe80c[_0x286b70(0xe27)](_0x66f0bd)[_0x286b70(0x1cb0)](function(){const _0x1b0d32=_0x286b70;_0x437fd7[_0x1b0d32(0x4df)][_0x1b0d32(0xf90)](function(_0x325aab){_0x4c6221(_0x325aab);}),_0x437fd7[_0x1b0d32(0x4df)]=[];});}_0x437fd7[_0x4afc34(0xac6)]=[],_0x437fd7[_0x4afc34(0x14c7)]=_0x1adc4a,_0x437fd7[_0x4afc34(0xc09)]=_0x5647d5,_0x437fd7[_0x4afc34(0x2931)]=_0x530399;function _0x1adc4a(_0x160305,_0x282067){const _0x4323b1=_0x4afc34;_0x2fe80c[_0x4323b1(0xe27)]({'controller':_0x4323b1(0x1646),'controllerAs':'vm','templateUrl':_0x3cd87d,'parent':angular['element'](_0x39c1f5['body']),'targetEvent':_0x160305,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x282067,'items':_0x437fd7[_0x4323b1(0x310)],'configuration':_0x437fd7[_0x4323b1(0x1d65)],'account':_0x437fd7['vtigerAccount'],'license':null,'setting':null,'crudPermissions':_0x437fd7['crudPermissions']}});}function _0x5b4574(_0x4ea581){const _0x4c1b33=_0x4afc34;_0x46b5e0[_0x4c1b33(0x4a3)][_0x4c1b33(0x111d)]({'id':_0x4ea581['id']})[_0x4c1b33(0x1d77)][_0x4c1b33(0x1cb0)](function(){const _0x78bffe=_0x4c1b33;_0x39641b()[_0x78bffe(0x152a)](_0x437fd7[_0x78bffe(0x310)],{'id':_0x4ea581['id']}),_0x2805e3[_0x78bffe(0x829)]({'title':_0x78bffe(0x24c0),'msg':_0x78bffe(0xb59)});})['catch'](function(_0x4c9172){const _0x5cbbab=_0x4c1b33;_0x2805e3['error']({'title':_0x4c9172[_0x5cbbab(0x291)]?_0x5cbbab(0xeb9)+_0x4c9172[_0x5cbbab(0x291)]+'\x20-\x20'+_0x4c9172[_0x5cbbab(0xc22)]:_0x5cbbab(0x13e5),'msg':_0x4c9172['data']?JSON[_0x5cbbab(0x2701)](_0x4c9172[_0x5cbbab(0x25c)]):_0x4c9172[_0x5cbbab(0x147f)]()});});}function _0x5647d5(_0xbc769b,_0x110706){const _0x2cda78=_0x4afc34,_0x44c50b=_0x2fe80c[_0x2cda78(0x1551)]()[_0x2cda78(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?')['htmlContent'](_0x2cda78(0x18b8)+_0x2cda78(0x1b6))['ariaLabel'](_0x2cda78(0x103d))[_0x2cda78(0x728)](_0xbc769b)['ok']('OK')[_0x2cda78(0x696)](_0x2cda78(0x24ba));_0x2fe80c[_0x2cda78(0xe27)](_0x44c50b)[_0x2cda78(0x1cb0)](function(){_0x5b4574(_0x110706);},function(){const _0x981d0d=_0x2cda78;console[_0x981d0d(0x1b4f)](_0x981d0d(0x24ba));});}function _0x530399(_0x22234a){const _0x5f26bb=_0x4afc34,_0x583547=_0x2fe80c[_0x5f26bb(0x1551)]()[_0x5f26bb(0x1386)](_0x5f26bb(0x2e7))[_0x5f26bb(0x49e)](_0x5f26bb(0x204d)+_0x437fd7[_0x5f26bb(0xac6)][_0x5f26bb(0xfd0)]+_0x5f26bb(0x1d6c)+_0x5f26bb(0x1b6))[_0x5f26bb(0x15ad)](_0x5f26bb(0x1828))[_0x5f26bb(0x728)](_0x22234a)['ok']('OK')[_0x5f26bb(0x696)](_0x5f26bb(0x24ba));_0x2fe80c[_0x5f26bb(0xe27)](_0x583547)['then'](function(){const _0x3cf421=_0x5f26bb;_0x437fd7[_0x3cf421(0xac6)][_0x3cf421(0xf90)](function(_0x149519){_0x5b4574(_0x149519);}),_0x437fd7[_0x3cf421(0xac6)]=[];});}_0x437fd7[_0x4afc34(0x9b2)]=[],_0x437fd7['createOrEditField']=_0x4ab2bb,_0x437fd7[_0x4afc34(0x2398)]=_0x4e9828,_0x437fd7[_0x4afc34(0xe40)]=_0x29aff9;function _0x4ab2bb(_0x5df5b5,_0x387dfe){const _0x406d54=_0x4afc34;_0x2fe80c['show']({'controller':'CreateOrEditVtigerAccountItemDialogController','controllerAs':'vm','templateUrl':_0x3cd87d,'parent':angular['element'](_0x39c1f5['body']),'targetEvent':_0x5df5b5,'clickOutsideToClose':!![],'locals':{'type':_0x406d54(0x2198),'item':_0x387dfe,'items':_0x437fd7['fields'],'configuration':_0x437fd7['vtigerConfiguration'],'account':_0x437fd7[_0x406d54(0x1bc5)],'license':null,'setting':null,'crudPermissions':_0x437fd7[_0x406d54(0x1b1a)]}});}function _0x137418(_0x13fe08){const _0x2445ee=_0x4afc34;_0x46b5e0[_0x2445ee(0x4a3)][_0x2445ee(0x111d)]({'id':_0x13fe08['id']})[_0x2445ee(0x1d77)][_0x2445ee(0x1cb0)](function(){const _0x4f1a7a=_0x2445ee;_0x39641b()['remove'](_0x437fd7[_0x4f1a7a(0x355)],{'id':_0x13fe08['id']}),_0x2805e3[_0x4f1a7a(0x829)]({'title':_0x4f1a7a(0xd6b),'msg':_0x4f1a7a(0x2688)});})['catch'](function(_0x52e9bc){const _0x32f710=_0x2445ee;_0x2805e3[_0x32f710(0x218e)]({'title':_0x52e9bc[_0x32f710(0x291)]?_0x32f710(0xeb9)+_0x52e9bc[_0x32f710(0x291)]+_0x32f710(0x1657)+_0x52e9bc['statusText']:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x52e9bc[_0x32f710(0x25c)]?JSON[_0x32f710(0x2701)](_0x52e9bc[_0x32f710(0x25c)]):_0x52e9bc[_0x32f710(0x147f)]()});});}function _0x4e9828(_0x3d9a88,_0x2139cf){const _0x3a38fb=_0x4afc34,_0x19c60d=_0x2fe80c[_0x3a38fb(0x1551)]()[_0x3a38fb(0x1386)](_0x3a38fb(0x21a9))['htmlContent'](_0x3a38fb(0xf1d)+_0x3a38fb(0x1b6))[_0x3a38fb(0x15ad)]('delete\x20field')[_0x3a38fb(0x728)](_0x3d9a88)['ok']('OK')[_0x3a38fb(0x696)](_0x3a38fb(0x24ba));_0x2fe80c[_0x3a38fb(0xe27)](_0x19c60d)[_0x3a38fb(0x1cb0)](function(){_0x137418(_0x2139cf);},function(){const _0x4700fc=_0x3a38fb;console[_0x4700fc(0x1b4f)](_0x4700fc(0x24ba));});}function _0x29aff9(_0x39081e){const _0x3f9fd0=_0x4afc34,_0xbc6b0e=_0x2fe80c[_0x3f9fd0(0x1551)]()[_0x3f9fd0(0x1386)](_0x3f9fd0(0x983))[_0x3f9fd0(0x49e)](''+_0x437fd7[_0x3f9fd0(0x9b2)]['length']+_0x3f9fd0(0x1d6c)+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20fields')[_0x3f9fd0(0x728)](_0x39081e)['ok']('OK')[_0x3f9fd0(0x696)]('CANCEL');_0x2fe80c[_0x3f9fd0(0xe27)](_0xbc6b0e)[_0x3f9fd0(0x1cb0)](function(){const _0x4a2b05=_0x3f9fd0;_0x437fd7['selectedFields']['forEach'](function(_0x58128b){_0x137418(_0x58128b);}),_0x437fd7[_0x4a2b05(0x9b2)]=[];});}}const _0x150ed0=_0x4208f1;;_0x30bec8[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog','$q',_0x5537c6(0x1ae),'toasty',_0x5537c6(0xa06),_0x5537c6(0x1d65),_0x5537c6(0x142b),_0x5537c6(0x1774),'license',_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x30bec8(_0x519663,_0x1aa164,_0x2c903e,_0x4b44ce,_0x45663a,_0x328b07,_0x2c5826,_0x374a1e,_0x5d8481,_0x3d80ae,_0x17cf94,_0x2986be,_0x7e86f,_0x16fc3b){const _0x304f89=_0x5537c6,_0x1d24e7=this;_0x1d24e7[_0x304f89(0xe76)]=_0x17cf94[_0x304f89(0x21e8)](),_0x1d24e7[_0x304f89(0x1a7c)]=[],_0x1d24e7['setting']=_0x7e86f,_0x1d24e7[_0x304f89(0x8a5)]=_0x2986be,_0x1d24e7[_0x304f89(0x1b1a)]=_0x16fc3b,_0x1d24e7[_0x304f89(0xf4c)]={},_0x1d24e7[_0x304f89(0x1b0c)]=_0x1d24e7['setting']&&_0x1d24e7[_0x304f89(0x9ca)][_0x304f89(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1d24e7[_0x304f89(0x1386)]=_0x304f89(0x695),_0x1d24e7[_0x304f89(0x1d65)]=angular[_0x304f89(0x17fe)](_0x5d8481),_0x1d24e7[_0x304f89(0xa06)]=_0x374a1e,_0x1d24e7[_0x304f89(0xe0b)]=![];!_0x1d24e7['vtigerConfiguration']&&(_0x1d24e7[_0x304f89(0x1d65)]={'channel':_0x304f89(0x1fd4),'type':_0x304f89(0x26c0)},_0x1d24e7[_0x304f89(0x1386)]=_0x304f89(0x1f7b),_0x1d24e7[_0x304f89(0xe0b)]=!![]);_0x1d24e7[_0x304f89(0x25b4)]=_0x5be5a4,_0x1d24e7[_0x304f89(0xed3)]=_0x26fd0f,_0x1d24e7[_0x304f89(0x12dd)]=_0x9b6226,_0x1d24e7[_0x304f89(0x2c4)]=_0x44b08b,_0x1d24e7[_0x304f89(0xda0)]=_0x597168;function _0x5be5a4(){const _0x4d251a=_0x304f89;_0x1d24e7[_0x4d251a(0x1a7c)]=[],_0x3d80ae[_0x4d251a(0xe0d)][_0x4d251a(0x1070)]({'id':_0x1aa164[_0x4d251a(0x1dfe)]['id']},_0x1d24e7[_0x4d251a(0x1d65)])['$promise'][_0x4d251a(0x1cb0)](function(_0x4c89ca){const _0x412d4b=_0x4d251a;_0x1d24e7[_0x412d4b(0xa06)][_0x412d4b(0xf63)](_0x4c89ca[_0x412d4b(0x19b2)]()),_0x2c5826['success']({'title':_0x412d4b(0x24ae),'msg':_0x1d24e7[_0x412d4b(0x1d65)][_0x412d4b(0x16b6)]?_0x1d24e7[_0x412d4b(0x1d65)][_0x412d4b(0x16b6)]+_0x412d4b(0x470):''}),_0x597168(_0x4c89ca);})['catch'](function(_0x50e178){const _0x176269=_0x4d251a;if(_0x50e178[_0x176269(0x25c)]&&_0x50e178['data'][_0x176269(0x1a7c)]&&_0x50e178[_0x176269(0x25c)]['errors']['length']){_0x1d24e7['errors']=_0x50e178[_0x176269(0x25c)][_0x176269(0x1a7c)]||[{'message':_0x50e178[_0x176269(0x147f)](),'type':_0x176269(0x10a3)}];for(let _0x553640=0x0;_0x553640<_0x50e178[_0x176269(0x25c)][_0x176269(0x1a7c)]['length'];_0x553640+=0x1){_0x2c5826[_0x176269(0x218e)]({'title':_0x50e178[_0x176269(0x25c)][_0x176269(0x1a7c)][_0x553640][_0x176269(0x66a)],'msg':_0x50e178[_0x176269(0x25c)][_0x176269(0x1a7c)][_0x553640][_0x176269(0x155e)]});}}else _0x2c5826['error']({'title':_0x50e178[_0x176269(0x291)]?_0x176269(0xeb9)+_0x50e178[_0x176269(0x291)]+_0x176269(0x1657)+_0x50e178[_0x176269(0xc22)]:_0x176269(0x10a3),'msg':_0x50e178[_0x176269(0x25c)]?JSON[_0x176269(0x2701)](_0x50e178[_0x176269(0x25c)][_0x176269(0x155e)]):_0x50e178[_0x176269(0x147f)]()});});}function _0x26fd0f(){const _0x2cadaf=_0x304f89;_0x1d24e7[_0x2cadaf(0x1a7c)]=[],_0x3d80ae[_0x2cadaf(0x1301)][_0x2cadaf(0x687)]({'id':_0x1d24e7[_0x2cadaf(0x1d65)]['id']},_0x1d24e7[_0x2cadaf(0x1d65)])[_0x2cadaf(0x1d77)][_0x2cadaf(0x1cb0)](function(_0x8dae97){const _0x3245b3=_0x2cadaf,_0x2429e0=_0x39641b()[_0x3245b3(0x13b4)](_0x1d24e7[_0x3245b3(0xa06)],{'id':_0x8dae97['id']});_0x2429e0&&_0x39641b()['merge'](_0x2429e0,_0x39641b()['pick'](_0x8dae97[_0x3245b3(0x19b2)](),_0x39641b()['keys'](_0x2429e0))),_0x2c5826[_0x3245b3(0x829)]({'title':_0x3245b3(0x2292),'msg':_0x1d24e7[_0x3245b3(0x1d65)][_0x3245b3(0x16b6)]?_0x1d24e7[_0x3245b3(0x1d65)][_0x3245b3(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x597168(_0x8dae97);})['catch'](function(_0x58f2ea){const _0x2cdc28=_0x2cadaf;if(_0x58f2ea[_0x2cdc28(0x25c)]&&_0x58f2ea[_0x2cdc28(0x25c)][_0x2cdc28(0x1a7c)]&&_0x58f2ea[_0x2cdc28(0x25c)][_0x2cdc28(0x1a7c)][_0x2cdc28(0xfd0)]){_0x1d24e7[_0x2cdc28(0x1a7c)]=_0x58f2ea[_0x2cdc28(0x25c)][_0x2cdc28(0x1a7c)]||[{'message':_0x58f2ea[_0x2cdc28(0x147f)](),'type':'api.intVtigerConfiguration.update'}];for(let _0x31c18e=0x0;_0x31c18e<_0x58f2ea[_0x2cdc28(0x25c)][_0x2cdc28(0x1a7c)]['length'];_0x31c18e++){_0x2c5826[_0x2cdc28(0x218e)]({'title':_0x58f2ea[_0x2cdc28(0x25c)][_0x2cdc28(0x1a7c)][_0x31c18e][_0x2cdc28(0x66a)],'msg':_0x58f2ea[_0x2cdc28(0x25c)][_0x2cdc28(0x1a7c)][_0x31c18e][_0x2cdc28(0x155e)]});}}else _0x2c5826[_0x2cdc28(0x218e)]({'title':_0x58f2ea[_0x2cdc28(0x291)]?'API:'+_0x58f2ea[_0x2cdc28(0x291)]+_0x2cdc28(0x1657)+_0x58f2ea[_0x2cdc28(0xc22)]:_0x2cdc28(0x1f36),'msg':_0x58f2ea[_0x2cdc28(0x25c)]?JSON[_0x2cdc28(0x2701)](_0x58f2ea[_0x2cdc28(0x25c)][_0x2cdc28(0x155e)]):_0x58f2ea[_0x2cdc28(0x147f)]()});});}function _0x9b6226(_0x37c064){const _0x2f0be6=_0x304f89;_0x1d24e7[_0x2f0be6(0x1a7c)]=[];const _0x42524a=_0x4b44ce[_0x2f0be6(0x1551)]()[_0x2f0be6(0x1386)](_0x2f0be6(0x1a2e))[_0x2f0be6(0x862)](_0x2f0be6(0xaa1))['ariaLabel'](_0x2f0be6(0x1ef9))['ok'](_0x2f0be6(0x2594))[_0x2f0be6(0x696)]('Cancel')[_0x2f0be6(0x728)](_0x37c064);_0x4b44ce[_0x2f0be6(0xe27)](_0x42524a)[_0x2f0be6(0x1cb0)](function(){const _0x4589ce=_0x2f0be6;_0x3d80ae[_0x4589ce(0x1301)][_0x4589ce(0x111d)]({'id':_0x1d24e7[_0x4589ce(0x1d65)]['id']})[_0x4589ce(0x1d77)][_0x4589ce(0x1cb0)](function(){const _0x1ffced=_0x4589ce;_0x39641b()[_0x1ffced(0x152a)](_0x1d24e7[_0x1ffced(0xa06)],{'id':_0x1d24e7[_0x1ffced(0x1d65)]['id']}),_0x2c5826[_0x1ffced(0x829)]({'title':'VtigerConfiguration\x20properly\x20deleted!','msg':(_0x1d24e7['vtigerConfiguration'][_0x1ffced(0x16b6)]||_0x1ffced(0x1d65))+_0x1ffced(0x3f5)}),_0x597168(_0x1d24e7[_0x1ffced(0x1d65)]);})[_0x4589ce(0x1c4)](function(_0x37307c){const _0xfebcc3=_0x4589ce;if(_0x37307c[_0xfebcc3(0x25c)]&&_0x37307c[_0xfebcc3(0x25c)][_0xfebcc3(0x1a7c)]&&_0x37307c[_0xfebcc3(0x25c)][_0xfebcc3(0x1a7c)]['length']){_0x1d24e7[_0xfebcc3(0x1a7c)]=_0x37307c[_0xfebcc3(0x25c)][_0xfebcc3(0x1a7c)]||[{'message':_0x37307c[_0xfebcc3(0x147f)](),'type':_0xfebcc3(0xac1)}];for(let _0xa8401a=0x0;_0xa8401a<_0x37307c[_0xfebcc3(0x25c)]['errors'][_0xfebcc3(0xfd0)];_0xa8401a++){_0x2c5826[_0xfebcc3(0x218e)]({'title':_0x37307c['data'][_0xfebcc3(0x1a7c)][_0xa8401a][_0xfebcc3(0x66a)],'msg':_0x37307c[_0xfebcc3(0x25c)][_0xfebcc3(0x1a7c)][_0xa8401a]['message']});}}else _0x2c5826[_0xfebcc3(0x218e)]({'title':_0x37307c['status']?'API:'+_0x37307c['status']+_0xfebcc3(0x1657)+_0x37307c[_0xfebcc3(0xc22)]:_0xfebcc3(0xac1),'msg':_0x37307c[_0xfebcc3(0x25c)]?JSON['stringify'](_0x37307c[_0xfebcc3(0x25c)][_0xfebcc3(0x155e)]):_0x37307c[_0xfebcc3(0x155e)]||_0x37307c[_0xfebcc3(0x147f)]()});});},function(){});}function _0x44b08b(_0x7ca11e){return _0x7ca11e===null?undefined:new Date(_0x7ca11e);}function _0x597168(_0x48341b){const _0x3a1b63=_0x304f89;_0x4b44ce[_0x3a1b63(0x1426)](_0x48341b);}}const _0x348797=_0x30bec8;;_0x339335[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state',_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0x2718),'items',_0x5537c6(0x583),_0x5537c6(0x1539),_0x5537c6(0x66a),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x339335(_0x59bf81,_0xfc3e4c,_0x41580f,_0x31ff60,_0x436433,_0x416652,_0x3a0c52,_0x42d62c,_0x2ca736,_0x441693,_0x404409,_0x23cdea,_0x4f1a20){const _0xa534d4=_0x5537c6,_0x3ed3fd=this;_0x3ed3fd[_0xa534d4(0xe76)]=_0x23cdea[_0xa534d4(0x21e8)](),_0x3ed3fd[_0xa534d4(0x1a7c)]=[],_0x3ed3fd[_0xa534d4(0x1386)]=_0xa534d4(0xf08)+_0x39641b()[_0xa534d4(0x1002)](_0x441693),_0x3ed3fd[_0xa534d4(0x583)]=angular[_0xa534d4(0x17fe)](_0x42d62c),_0x3ed3fd[_0xa534d4(0x122f)]=_0x3a0c52,_0x3ed3fd[_0xa534d4(0x66a)]=_0x441693,_0x3ed3fd['crudPermissions']=_0x4f1a20,_0x3ed3fd[_0xa534d4(0x1202)]=![];!_0x3ed3fd[_0xa534d4(0x583)]&&(_0x3ed3fd[_0xa534d4(0x583)]={'type':'string'},_0x3ed3fd['item'][_0x39641b()[_0xa534d4(0x432)](_0x441693)+'Id']=_0x416652['id'],_0x3ed3fd['title']=_0xa534d4(0x15dd)+_0x39641b()['toUpper'](_0x441693),_0x3ed3fd[_0xa534d4(0x1202)]=!![]);_0x3ed3fd[_0xa534d4(0x1286)]=_0x2ad4ff,_0x3ed3fd['saveItem']=_0xc9d263,_0x3ed3fd[_0xa534d4(0x1177)]=_0x5da116,_0x3ed3fd['getSelectedVariable']=_0x251f88,_0x3ed3fd[_0xa534d4(0xda0)]=_0x5ba482,_0x404409[_0xa534d4(0x1822)][_0xa534d4(0xbf7)]({'nolimit':!![]})[_0xa534d4(0x1d77)][_0xa534d4(0x1cb0)](function(_0x1e6179){const _0x4beee5=_0xa534d4;return _0x3ed3fd['variables']=_0x1e6179['rows']?_0x1e6179[_0x4beee5(0x2214)]:[],_0x404409['voiceAgentReport'][_0x4beee5(0x1e57)]()[_0x4beee5(0x1d77)];})[_0xa534d4(0x1cb0)](function(_0x3a4de1){const _0x464796=_0xa534d4;return _0x3ed3fd[_0x464796(0xbf1)]=_0x39641b()[_0x464796(0x91f)](_0x39641b()[_0x464796(0x1be5)](_0x3a4de1),['$promise',_0x464796(0x248e),_0x464796(0x24cb),_0x464796(0x27ba),'sourceid']),_0x3ed3fd[_0x464796(0xbf1)][_0x464796(0x2785)]('recordingURL'),_0x404409[_0x464796(0x593)][_0x464796(0x1e57)]()['$promise'];})['then'](function(_0x5e6d2f){const _0x4a8708=_0xa534d4;_0x3ed3fd['voiceDialReportColumns']=_0x39641b()[_0x4a8708(0x91f)](_0x39641b()[_0x4a8708(0x1be5)](_0x5e6d2f),['$promise',_0x4a8708(0x248e),_0x4a8708(0x24cb),_0x4a8708(0x27ba),_0x4a8708(0x1867)]),_0x3ed3fd[_0x4a8708(0x1639)][_0x4a8708(0x2785)](_0x4a8708(0x2110));})['catch'](function(_0x4bca5a){const _0x1ca491=_0xa534d4;_0x436433[_0x1ca491(0x218e)]({'title':_0x4bca5a['status']?'API:'+_0x4bca5a[_0x1ca491(0x291)]+_0x1ca491(0x1657)+_0x4bca5a[_0x1ca491(0xc22)]:_0x1ca491(0x262e),'msg':_0x4bca5a['data']?JSON[_0x1ca491(0x2701)](_0x4bca5a[_0x1ca491(0x25c)]):_0x4bca5a[_0x1ca491(0x147f)]()});}),_0x404409[_0xa534d4(0xe0d)][_0xa534d4(0xc84)]({'id':_0x2ca736['id'],'ticketType':_0x416652['ticketType']?_0x416652['ticketType']:undefined})[_0xa534d4(0x1d77)][_0xa534d4(0x1cb0)](function(_0xefd91a){const _0x15a676=_0xa534d4;_0x3ed3fd[_0x15a676(0x1a28)]=!![],_0x3ed3fd[_0x15a676(0x355)]=_0xefd91a[_0x15a676(0x2214)]?_0xefd91a[_0x15a676(0x2214)]:[],_0x3ed3fd[_0x15a676(0x583)][_0x15a676(0x1e50)]&&(_0x3ed3fd[_0x15a676(0x1d5a)]=_0x39641b()[_0x15a676(0x13b4)](_0x3ed3fd[_0x15a676(0x355)],{'id':_0x3ed3fd['item'][_0x15a676(0x1e50)]}));})[_0xa534d4(0x1c4)](function(_0x510fab){const _0x2ac401=_0xa534d4;_0x3ed3fd[_0x2ac401(0x1a28)]=![],console[_0x2ac401(0x218e)](_0x510fab);});function _0x2ad4ff(){const _0x173c45=_0xa534d4;_0x3ed3fd[_0x173c45(0x1a7c)]=[],_0x3ed3fd[_0x173c45(0x1d5a)]&&(_0x3ed3fd['item']['idField']=_0x3ed3fd['customField']['id'],_0x3ed3fd['item']['nameField']=_0x3ed3fd[_0x173c45(0x1d5a)][_0x173c45(0x16b6)],_0x3ed3fd['item'][_0x173c45(0x1d5a)]=_0x3ed3fd['customField']['custom']),_0x404409[_0x173c45(0x4a3)][_0x173c45(0x1c3f)](_0x3ed3fd[_0x173c45(0x583)])[_0x173c45(0x1d77)][_0x173c45(0x1cb0)](function(_0x5b2d70){const _0x5ce300=_0x173c45;_0x3ed3fd['items']['unshift'](_0x5b2d70),_0x436433[_0x5ce300(0x829)]({'title':_0x39641b()['capitalize'](_0x441693)+_0x5ce300(0x220c),'msg':_0x39641b()['capitalize'](_0x441693)+_0x5ce300(0x470)}),_0x5ba482();})[_0x173c45(0x1c4)](function(_0x233ff9){const _0x22d5a0=_0x173c45;console[_0x22d5a0(0x218e)](_0x233ff9),_0x3ed3fd[_0x22d5a0(0x1a7c)]=_0x233ff9[_0x22d5a0(0x25c)]['errors']||[{'message':_0x233ff9[_0x22d5a0(0x147f)](),'type':'api.item.save'}];});}function _0xc9d263(){const _0x3d2f03=_0xa534d4;_0x3ed3fd['errors']=[],_0x3ed3fd[_0x3d2f03(0x1d5a)]&&(_0x3ed3fd[_0x3d2f03(0x583)][_0x3d2f03(0x1e50)]=_0x3ed3fd[_0x3d2f03(0x1d5a)]['id'],_0x3ed3fd[_0x3d2f03(0x583)][_0x3d2f03(0xc1f)]=_0x3ed3fd[_0x3d2f03(0x1d5a)]['name'],_0x3ed3fd[_0x3d2f03(0x583)][_0x3d2f03(0x1d5a)]=_0x3ed3fd[_0x3d2f03(0x1d5a)][_0x3d2f03(0x197c)]),_0x404409[_0x3d2f03(0x4a3)][_0x3d2f03(0x687)]({'id':_0x3ed3fd[_0x3d2f03(0x583)]['id']},_0x3ed3fd['item'])[_0x3d2f03(0x1d77)][_0x3d2f03(0x1cb0)](function(_0x48f0c8){const _0x460dde=_0x3d2f03,_0x42160f=_0x39641b()[_0x460dde(0x13b4)](_0x3ed3fd[_0x460dde(0x122f)],{'id':_0x48f0c8['id']});_0x42160f&&_0x39641b()[_0x460dde(0x9c1)](_0x42160f,_0x48f0c8),_0x436433[_0x460dde(0x829)]({'title':_0x39641b()[_0x460dde(0x432)](_0x441693)+_0x460dde(0xaf6),'msg':_0x39641b()[_0x460dde(0x432)](_0x441693)+'\x20has\x20been\x20saved!'}),_0x5ba482();})['catch'](function(_0xa43f06){const _0xd4b6fc=_0x3d2f03;console[_0xd4b6fc(0x218e)](_0xa43f06),_0x3ed3fd[_0xd4b6fc(0x1a7c)]=_0xa43f06[_0xd4b6fc(0x25c)]['errors']||[{'message':_0xa43f06[_0xd4b6fc(0x147f)](),'type':_0xd4b6fc(0x197e)}];});}function _0x5da116(_0xa4712b){const _0x160eb4=_0xa534d4;_0x3ed3fd[_0x160eb4(0x1a7c)]=[];const _0x3b3e84=_0x31ff60[_0x160eb4(0x1551)]()[_0x160eb4(0x1386)]('Are\x20you\x20sure?')['content'](_0x160eb4(0xd4c)+_0x441693+'\x20will\x20be\x20deleted.')[_0x160eb4(0x15ad)](_0x160eb4(0x1f6a)+_0x39641b()['capitalize'](_0x441693))['ok']('Delete')['cancel'](_0x160eb4(0xde1))['targetEvent'](_0xa4712b);_0x31ff60[_0x160eb4(0xe27)](_0x3b3e84)['then'](function(){const _0x1f6a54=_0x160eb4;_0x404409[_0x1f6a54(0x4a3)][_0x1f6a54(0x111d)]({'id':_0x3ed3fd['item']['id']})[_0x1f6a54(0x1d77)]['then'](function(){const _0x53a384=_0x1f6a54;_0x39641b()['remove'](_0x3ed3fd[_0x53a384(0x122f)],{'id':_0x3ed3fd['item']['id']}),_0x436433[_0x53a384(0x829)]({'title':_0x39641b()[_0x53a384(0x432)](_0x441693)+_0x53a384(0x1621),'msg':_0x39641b()[_0x53a384(0x432)](_0x441693)+_0x53a384(0x3f5)}),_0x5ba482();})['catch'](function(_0x5be4d9){const _0x2ad996=_0x1f6a54;console[_0x2ad996(0x218e)](_0x5be4d9),_0x3ed3fd[_0x2ad996(0x1a7c)]=_0x5be4d9['data'][_0x2ad996(0x1a7c)]||[{'message':_0x5be4d9['toString'](),'type':_0x2ad996(0x10e6)}];});},function(){});}function _0x251f88(){const _0x1e256d=_0xa534d4;return _0x3ed3fd[_0x1e256d(0x583)]['variableName']!==undefined?_0x3ed3fd[_0x1e256d(0x583)][_0x1e256d(0x1e71)]:'Please\x20select\x20a\x20variable';}function _0x5ba482(){const _0xfef6fc=_0xa534d4;_0x31ff60[_0xfef6fc(0x1426)]();}}const _0x125eb8=_0x339335;;_0x3c0273['$inject']=[_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog',_0x5537c6(0x22bf),'$translate',_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x142b),'toasty','Auth',_0x5537c6(0x1bc5),'userProfileSection'];function _0x3c0273(_0x507162,_0x1e3160,_0x3b5c2a,_0x1599de,_0x415817,_0x5e00ae,_0x148466,_0x2bdf6d,_0x23833a,_0x2f0f53,_0x9988b8,_0x5a458f){const _0x10fd4b=_0x5537c6,_0x30db0f=this;_0x30db0f[_0x10fd4b(0xe76)]=_0x2f0f53[_0x10fd4b(0x21e8)](),_0x30db0f[_0x10fd4b(0x8a5)]=_0x5e00ae,_0x30db0f['setting']=_0x148466,_0x30db0f['passwordPattern']=_0x30db0f[_0x10fd4b(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x30db0f['location']=_0x1e3160[_0x10fd4b(0x2276)]()+'://'+_0x1e3160[_0x10fd4b(0x17d8)](),_0x30db0f['vtigerAccount']=_0x9988b8||_0x507162[_0x10fd4b(0x1dfe)]['vtigerAccount']||{},_0x30db0f[_0x10fd4b(0x2199)]=_0x5a458f&&_0x5a458f[_0x10fd4b(0x184d)]==0x1?_0x5a458f[_0x10fd4b(0x2214)][0x0]:null,_0x30db0f['crudPermissions']=_0x2f0f53[_0x10fd4b(0x14ea)](_0x30db0f[_0x10fd4b(0x2199)]?_0x30db0f[_0x10fd4b(0x2199)][_0x10fd4b(0x1b1a)]:null),_0x30db0f[_0x10fd4b(0xf4c)]={},_0x30db0f[_0x10fd4b(0x8ec)]=_0x507162[_0x10fd4b(0x1dfe)][_0x10fd4b(0x291e)]||0x0,_0x30db0f[_0x10fd4b(0x494)]=_0x23833a[_0x10fd4b(0x28c7)],_0x30db0f['gotoVtigerAccounts']=_0x1a3b99,_0x30db0f[_0x10fd4b(0x2f8)]=_0x4639e5;function _0x1a3b99(){const _0x2e99c3=_0x10fd4b;_0x507162['go'](_0x2e99c3(0x2339),{},{'reload':_0x2e99c3(0x2339)});}function _0x4639e5(){const _0x2f6ee1=_0x10fd4b;_0x2bdf6d[_0x2f6ee1(0xe0d)]['update']({'id':_0x30db0f['vtigerAccount']['id']},_0x30db0f[_0x2f6ee1(0x1bc5)])[_0x2f6ee1(0x1d77)][_0x2f6ee1(0x1cb0)](function(){const _0x2a5121=_0x2f6ee1;_0x23833a[_0x2a5121(0x829)]({'title':_0x2a5121(0x2515),'msg':_0x30db0f['vtigerAccount'][_0x2a5121(0x16b6)]?_0x30db0f['vtigerAccount'][_0x2a5121(0x16b6)]+_0x2a5121(0x1068):''});})[_0x2f6ee1(0x1c4)](function(_0x260a44){const _0x570e6a=_0x2f6ee1;_0x23833a[_0x570e6a(0x218e)]({'title':_0x260a44['status']?_0x570e6a(0xeb9)+_0x260a44['status']+_0x570e6a(0x1657)+_0x260a44[_0x570e6a(0xc22)]:'SYSTEM:GETintVtigerAccount','msg':_0x260a44['data']?JSON['stringify'](_0x260a44[_0x570e6a(0x25c)]):_0x260a44[_0x570e6a(0x147f)]()});});}}const _0x134e65=_0x3c0273;;const _0x9224cd=_0x5074a3['p']+_0x5537c6(0xcfa);;_0x5e2a09['$inject']=[_0x5537c6(0x1463),'$window',_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),'$document',_0x5537c6(0x2168),_0x5537c6(0x1ae),'vtigerAccounts',_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x5e2a09(_0x18580b,_0x86d232,_0x4285af,_0x547dfd,_0x35724d,_0x14a0be,_0x9e6b1,_0x27a322,_0x579dee,_0x58ca6f,_0x3d1ffe,_0x4cf463,_0x499bbc,_0x5e50d2,_0x36d478,_0x49ad6e,_0x547728){const _0x2facce=_0x5537c6,_0x3cf7ab=this;_0x3cf7ab[_0x2facce(0x8a5)]=_0x49ad6e,_0x3cf7ab[_0x2facce(0x9ca)]=_0x547728,_0x3cf7ab['currentUser']=_0x36d478[_0x2facce(0x21e8)](),_0x3cf7ab['vtigerAccounts']=_0x579dee||{'count':0x0,'rows':[]},_0x3cf7ab[_0x2facce(0x44a)]=_0x58ca6f,_0x3cf7ab['userProfileSection']=_0x3d1ffe&&_0x3d1ffe[_0x2facce(0x184d)]==0x1?_0x3d1ffe[_0x2facce(0x2214)][0x0]:null,_0x3cf7ab[_0x2facce(0x1b1a)]=_0x36d478[_0x2facce(0x14ea)](_0x3cf7ab[_0x2facce(0x2199)]?_0x3cf7ab[_0x2facce(0x2199)][_0x2facce(0x1b1a)]:null),_0x3cf7ab[_0x2facce(0xc83)]='vtigerAccounts',_0x3cf7ab[_0x2facce(0x1d20)]='',_0x3cf7ab[_0x2facce(0x1cdf)]=null,_0x3cf7ab[_0x2facce(0x22a1)]=[],_0x3cf7ab[_0x2facce(0xae2)]={'fields':_0x2facce(0x2824),'limit':0xa,'page':0x1},_0x3cf7ab[_0x2facce(0x235d)]=_0x47bd5e,_0x3cf7ab['testtestintegrationaccount']=_0x2090e8,_0x3cf7ab['deleteconfirm']=_0x1d0d3c,_0x3cf7ab['success']=_0x808e4b,_0x3cf7ab[_0x2facce(0x168c)]=_0x323ebb,_0x3cf7ab[_0x2facce(0x304)]=_0x1e0556,_0x3cf7ab[_0x2facce(0x3a2)]=_0x35b4f2,_0x3cf7ab['exportSelectedVtigerAccounts']=_0x1d8aaf,_0x3cf7ab[_0x2facce(0x1628)]=_0x42186a,_0x3cf7ab['deselectVtigerAccounts']=_0x17b75b,_0x3cf7ab[_0x2facce(0x609)]=_0x3d071c;function _0x47bd5e(_0x424066){_0x4285af['go']('app.integrations.vtigerAccounts.edit',{'id':_0x424066['id'],'vtigerAccount':_0x424066,'crudPermissions':_0x3cf7ab['crudPermissions']});}function _0x2090e8(_0x10d446){const _0x3cee7e=_0x2facce;return _0x4cf463['intVtigerAccount'][_0x3cee7e(0xc84)]({'id':_0x10d446['id'],'test':!![]})[_0x3cee7e(0x1d77)]['then'](function(){const _0x5e50bd=_0x3cee7e;_0x5e50d2['success']({'title':_0x5e50bd(0x2261),'msg':_0x5e50bd(0x1bca)});})[_0x3cee7e(0x1c4)](function(_0xee9b6b){const _0x1f4c62=_0x3cee7e;_0x5e50d2['error']({'title':_0x1f4c62(0x2261),'msg':_0xee9b6b[_0x1f4c62(0x25c)]?_0xee9b6b[_0x1f4c62(0x25c)][_0x1f4c62(0x155e)]?_0xee9b6b[_0x1f4c62(0x25c)][_0x1f4c62(0x155e)]:JSON['stringify'](_0xee9b6b['data']):_0xee9b6b['toString']()});});}function _0x1d0d3c(_0x352852,_0x51ac5e){const _0x6741d4=_0x2facce,_0x226b9e=_0x35724d[_0x6741d4(0x1551)]()[_0x6741d4(0x1386)](_0x6741d4(0x140b)+_0x39641b()[_0x6741d4(0xa75)](_0x6741d4(0x1bc5))+'?')[_0x6741d4(0x49e)](_0x6741d4(0x204d)+(_0x352852[_0x6741d4(0x16b6)]||_0x6741d4(0x1bc5))+_0x6741d4(0x1200)+_0x6741d4(0x1b6))[_0x6741d4(0x15ad)](_0x6741d4(0x2655))[_0x6741d4(0x728)](_0x51ac5e)['ok']('OK')[_0x6741d4(0x696)](_0x6741d4(0x24ba));_0x35724d[_0x6741d4(0xe27)](_0x226b9e)[_0x6741d4(0x1cb0)](function(){_0x35b4f2(_0x352852);},function(){console['log']('CANCEL');});}let _0x3835db=!![],_0x5788ba=0x1;_0x18580b[_0x2facce(0x614)](_0x2facce(0x957),function(_0x3e80df,_0x51034d){const _0x1e02a8=_0x2facce;_0x3835db?_0x9e6b1(function(){_0x3835db=![];}):(!_0x51034d&&(_0x5788ba=_0x3cf7ab[_0x1e02a8(0xae2)][_0x1e02a8(0x1c7b)]),_0x3e80df!==_0x51034d&&(_0x3cf7ab[_0x1e02a8(0xae2)]['page']=0x1),!_0x3e80df&&(_0x3cf7ab[_0x1e02a8(0xae2)][_0x1e02a8(0x1c7b)]=_0x5788ba),_0x3cf7ab['getVtigerAccounts']());});function _0x808e4b(_0x234358){const _0x2d79e5=_0x2facce;_0x3cf7ab[_0x2d79e5(0x23e)]=_0x234358||{'count':0x0,'rows':[]};}function _0x323ebb(){const _0x316af4=_0x2facce;_0x3cf7ab[_0x316af4(0xae2)]['offset']=(_0x3cf7ab[_0x316af4(0xae2)][_0x316af4(0x1c7b)]-0x1)*_0x3cf7ab['query'][_0x316af4(0x236)],_0x36d478[_0x316af4(0x22b6)]('admin')?_0x3cf7ab['promise']=_0x4cf463['intVtigerAccount'][_0x316af4(0xbf7)](_0x3cf7ab['query'],_0x808e4b)[_0x316af4(0x1d77)]:(_0x3cf7ab[_0x316af4(0xae2)]['id']=_0x3cf7ab[_0x316af4(0x44a)]['id'],_0x3cf7ab[_0x316af4(0xae2)]['section']=_0x316af4(0x1bcd),_0x3cf7ab['promise']=_0x4cf463['userProfile']['getResources'](_0x3cf7ab['query'],_0x808e4b)[_0x316af4(0x1d77)]);}function _0x1e0556(_0x2bfa6f,_0xc4043a){const _0x3f5444=_0x2facce;_0x35724d[_0x3f5444(0xe27)]({'controller':_0x3f5444(0x1f62),'controllerAs':'vm','templateUrl':_0x9224cd,'parent':angular[_0x3f5444(0x1853)](_0x14a0be[_0x3f5444(0x1ed9)]),'targetEvent':_0x2bfa6f,'clickOutsideToClose':!![],'locals':{'vtigerAccount':_0xc4043a,'vtigerAccounts':_0x3cf7ab[_0x3f5444(0x23e)][_0x3f5444(0x2214)],'license':_0x3cf7ab[_0x3f5444(0x8a5)],'setting':_0x3cf7ab[_0x3f5444(0x9ca)],'crudPermissions':_0x3cf7ab[_0x3f5444(0x1b1a)]}});}function _0x35b4f2(_0x253ce2){const _0x4db5a7=_0x2facce;_0x4cf463[_0x4db5a7(0xe0d)][_0x4db5a7(0x111d)]({'id':_0x253ce2['id']})[_0x4db5a7(0x1d77)][_0x4db5a7(0x1cb0)](function(){const _0x565b8b=_0x4db5a7;_0x39641b()[_0x565b8b(0x152a)](_0x3cf7ab['vtigerAccounts'][_0x565b8b(0x2214)],{'id':_0x253ce2['id']}),_0x3cf7ab[_0x565b8b(0x23e)][_0x565b8b(0x184d)]-=0x1,!_0x3cf7ab[_0x565b8b(0x23e)][_0x565b8b(0x2214)][_0x565b8b(0xfd0)]&&_0x3cf7ab[_0x565b8b(0x168c)](),_0x5e50d2[_0x565b8b(0x829)]({'title':_0x39641b()[_0x565b8b(0xa75)](_0x565b8b(0x87b))+_0x565b8b(0x2663),'msg':_0x253ce2['name']?_0x253ce2['name']+_0x565b8b(0x3f5):''});})[_0x4db5a7(0x1c4)](function(_0x1996c9){const _0x1d8cb9=_0x4db5a7;if(_0x1996c9['data']&&_0x1996c9[_0x1d8cb9(0x25c)]['errors']&&_0x1996c9[_0x1d8cb9(0x25c)][_0x1d8cb9(0x1a7c)][_0x1d8cb9(0xfd0)]){_0x3cf7ab[_0x1d8cb9(0x1a7c)]=_0x1996c9[_0x1d8cb9(0x25c)][_0x1d8cb9(0x1a7c)]||[{'message':_0x1996c9[_0x1d8cb9(0x147f)](),'type':_0x1d8cb9(0x202f)}];for(let _0x2c4e1f=0x0;_0x2c4e1f<_0x1996c9['data'][_0x1d8cb9(0x1a7c)][_0x1d8cb9(0xfd0)];_0x2c4e1f++){_0x5e50d2['error']({'title':_0x1996c9[_0x1d8cb9(0x25c)]['errors'][_0x2c4e1f][_0x1d8cb9(0x66a)],'msg':_0x1996c9[_0x1d8cb9(0x25c)][_0x1d8cb9(0x1a7c)][_0x2c4e1f][_0x1d8cb9(0x155e)]});}}else _0x5e50d2[_0x1d8cb9(0x218e)]({'title':_0x1996c9[_0x1d8cb9(0x291)]?'API:'+_0x1996c9['status']+_0x1d8cb9(0x1657)+_0x1996c9[_0x1d8cb9(0xc22)]:_0x1d8cb9(0x202f),'msg':_0x1996c9[_0x1d8cb9(0x25c)]?JSON[_0x1d8cb9(0x2701)](_0x1996c9[_0x1d8cb9(0x25c)][_0x1d8cb9(0x155e)]):_0x1996c9['message']||_0x1996c9[_0x1d8cb9(0x147f)]()});});}function _0x1d8aaf(){const _0x5d154b=_0x2facce,_0x4fc7c9=angular[_0x5d154b(0x17fe)](_0x3cf7ab[_0x5d154b(0x22a1)]);return _0x3cf7ab['selectedVtigerAccounts']=[],_0x4fc7c9;}function _0x42186a(_0x4b5106){const _0x46e9c0=_0x2facce,_0x203c98=_0x35724d[_0x46e9c0(0x1551)]()[_0x46e9c0(0x1386)](_0x46e9c0(0x1fc3))[_0x46e9c0(0x49e)](_0x46e9c0(0x204d)+_0x3cf7ab['selectedVtigerAccounts'][_0x46e9c0(0xfd0)]+_0x46e9c0(0x1d6c)+_0x46e9c0(0x1b6))[_0x46e9c0(0x15ad)](_0x46e9c0(0x1d36))[_0x46e9c0(0x728)](_0x4b5106)['ok']('OK')['cancel'](_0x46e9c0(0x24ba));_0x35724d[_0x46e9c0(0xe27)](_0x203c98)[_0x46e9c0(0x1cb0)](function(){const _0x4690a7=_0x46e9c0;_0x3cf7ab['selectedVtigerAccounts']['forEach'](function(_0x55b4f9){_0x35b4f2(_0x55b4f9);}),_0x3cf7ab[_0x4690a7(0x22a1)]=[];});}function _0x17b75b(){_0x3cf7ab['selectedVtigerAccounts']=[];}function _0x3d071c(){const _0x5e40bc=_0x2facce;_0x3cf7ab[_0x5e40bc(0x22a1)]=_0x3cf7ab[_0x5e40bc(0x23e)][_0x5e40bc(0x2214)];}}const _0x259531=_0x5e2a09;;_0x2b7e2f[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog','$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x1c64),_0x5537c6(0x15fb),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),'crudPermissions'];function _0x2b7e2f(_0x283608,_0x637d83,_0x316f2d,_0x19ea6e,_0x24f37f,_0x31fdbf,_0xfc6c3c,_0x3b15cc,_0x2a8cac,_0xd69bca,_0xe298b7,_0x1800ba,_0x184f56,_0x49e274){const _0x547507=_0x5537c6,_0x2455e6=this;_0x2455e6[_0x547507(0xe76)]=_0xe298b7[_0x547507(0x21e8)](),_0x2455e6[_0x547507(0x1a7c)]=[],_0x2455e6[_0x547507(0x9ca)]=_0x184f56,_0x2455e6[_0x547507(0x8a5)]=_0x1800ba,_0x2455e6[_0x547507(0x1b1a)]=_0x49e274,_0x2455e6[_0x547507(0xf4c)]={},_0x2455e6[_0x547507(0x1b0c)]=_0x2455e6['setting']&&_0x2455e6[_0x547507(0x9ca)][_0x547507(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2455e6[_0x547507(0x1386)]=_0x547507(0xd94),_0x2455e6['zendeskAccount']=angular[_0x547507(0x17fe)](_0x2a8cac),_0x2455e6['zendeskAccounts']=_0x3b15cc,_0x2455e6[_0x547507(0x29dd)]=![];!_0x2455e6[_0x547507(0x15fb)]&&(_0x2455e6[_0x547507(0x15fb)]={'type':_0x547507(0x1b55),'authType':'password','serverUrl':_0x316f2d[_0x547507(0x2276)]()+'://'+_0x316f2d[_0x547507(0x17d8)]()+(_0x316f2d[_0x547507(0x477)]()?':'+_0x316f2d['port']():'')},_0x2455e6[_0x547507(0x1386)]=_0x547507(0x1a4),_0x2455e6['newZendeskAccount']=!![]);_0x2455e6['addNewZendeskAccount']=_0x22b63d,_0x2455e6['saveZendeskAccount']=_0x36d754,_0x2455e6[_0x547507(0x94a)]=_0x350058,_0x2455e6[_0x547507(0x2c4)]=_0x203a21,_0x2455e6[_0x547507(0xda0)]=_0x581f5d;function _0x22b63d(){const _0x446c82=_0x547507;_0x2455e6[_0x446c82(0x1a7c)]=[],_0xd69bca[_0x446c82(0x17a8)]['save'](_0x2455e6['zendeskAccount'])[_0x446c82(0x1d77)][_0x446c82(0x1cb0)](function(_0x2d24be){const _0x4da5e1=_0x446c82;_0x2455e6[_0x4da5e1(0x1c64)][_0x4da5e1(0xf63)](_0x2d24be[_0x4da5e1(0x19b2)]()),_0xfc6c3c[_0x4da5e1(0x829)]({'title':_0x4da5e1(0x10b4),'msg':_0x2455e6['zendeskAccount'][_0x4da5e1(0x16b6)]?_0x2455e6[_0x4da5e1(0x15fb)][_0x4da5e1(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x581f5d(_0x2d24be);})[_0x446c82(0x1c4)](function(_0x2e3621){const _0x52aa92=_0x446c82;if(_0x2e3621[_0x52aa92(0x25c)]&&_0x2e3621[_0x52aa92(0x25c)][_0x52aa92(0x1a7c)]&&_0x2e3621[_0x52aa92(0x25c)][_0x52aa92(0x1a7c)][_0x52aa92(0xfd0)]){_0x2455e6[_0x52aa92(0x1a7c)]=_0x2e3621[_0x52aa92(0x25c)][_0x52aa92(0x1a7c)]||[{'message':_0x2e3621[_0x52aa92(0x147f)](),'type':'api.intZendeskAccount.save'}];for(let _0x43716e=0x0;_0x43716e<_0x2e3621[_0x52aa92(0x25c)]['errors'][_0x52aa92(0xfd0)];_0x43716e+=0x1){_0xfc6c3c['error']({'title':_0x2e3621[_0x52aa92(0x25c)][_0x52aa92(0x1a7c)][_0x43716e][_0x52aa92(0x66a)],'msg':_0x2e3621[_0x52aa92(0x25c)][_0x52aa92(0x1a7c)][_0x43716e][_0x52aa92(0x155e)]});}}else _0xfc6c3c[_0x52aa92(0x218e)]({'title':_0x2e3621[_0x52aa92(0x291)]?_0x52aa92(0xeb9)+_0x2e3621[_0x52aa92(0x291)]+'\x20-\x20'+_0x2e3621[_0x52aa92(0xc22)]:'api.intZendeskAccount.save','msg':_0x2e3621['data']?JSON['stringify'](_0x2e3621['data'][_0x52aa92(0x155e)]):_0x2e3621[_0x52aa92(0x147f)]()});});}function _0x36d754(){const _0x58a0f9=_0x547507;_0x2455e6['errors']=[],_0xd69bca['intZendeskAccount'][_0x58a0f9(0x687)]({'id':_0x2455e6[_0x58a0f9(0x15fb)]['id']},_0x2455e6['zendeskAccount'])[_0x58a0f9(0x1d77)]['then'](function(_0x1be04a){const _0xb8b71=_0x58a0f9,_0x21bef9=_0x39641b()[_0xb8b71(0x13b4)](_0x2455e6[_0xb8b71(0x1c64)],{'id':_0x1be04a['id']});_0x21bef9&&_0x39641b()[_0xb8b71(0x9c1)](_0x21bef9,_0x39641b()[_0xb8b71(0x169b)](_0x1be04a[_0xb8b71(0x19b2)](),_0x39641b()[_0xb8b71(0x1be5)](_0x21bef9))),_0xfc6c3c['success']({'title':_0xb8b71(0x175c),'msg':_0x2455e6['zendeskAccount'][_0xb8b71(0x16b6)]?_0x2455e6[_0xb8b71(0x15fb)][_0xb8b71(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x581f5d(_0x1be04a);})[_0x58a0f9(0x1c4)](function(_0x4423d4){const _0x2f2e09=_0x58a0f9;if(_0x4423d4[_0x2f2e09(0x25c)]&&_0x4423d4[_0x2f2e09(0x25c)]['errors']&&_0x4423d4[_0x2f2e09(0x25c)][_0x2f2e09(0x1a7c)]['length']){_0x2455e6[_0x2f2e09(0x1a7c)]=_0x4423d4[_0x2f2e09(0x25c)]['errors']||[{'message':_0x4423d4[_0x2f2e09(0x147f)](),'type':_0x2f2e09(0x2323)}];for(let _0x414b15=0x0;_0x414b15<_0x4423d4[_0x2f2e09(0x25c)][_0x2f2e09(0x1a7c)][_0x2f2e09(0xfd0)];_0x414b15++){_0xfc6c3c['error']({'title':_0x4423d4[_0x2f2e09(0x25c)][_0x2f2e09(0x1a7c)][_0x414b15][_0x2f2e09(0x66a)],'msg':_0x4423d4['data'][_0x2f2e09(0x1a7c)][_0x414b15]['message']});}}else _0xfc6c3c[_0x2f2e09(0x218e)]({'title':_0x4423d4[_0x2f2e09(0x291)]?_0x2f2e09(0xeb9)+_0x4423d4[_0x2f2e09(0x291)]+_0x2f2e09(0x1657)+_0x4423d4[_0x2f2e09(0xc22)]:'api.intZendeskAccount.update','msg':_0x4423d4[_0x2f2e09(0x25c)]?JSON[_0x2f2e09(0x2701)](_0x4423d4[_0x2f2e09(0x25c)][_0x2f2e09(0x155e)]):_0x4423d4[_0x2f2e09(0x147f)]()});});}function _0x350058(_0x30c795){const _0x2f5ec2=_0x547507;_0x2455e6[_0x2f5ec2(0x1a7c)]=[];const _0x2e1aff=_0x19ea6e[_0x2f5ec2(0x1551)]()[_0x2f5ec2(0x1386)]('Are\x20you\x20sure?')[_0x2f5ec2(0x862)](_0x2f5ec2(0xf3f))[_0x2f5ec2(0x15ad)](_0x2f5ec2(0x236c))['ok'](_0x2f5ec2(0x2594))[_0x2f5ec2(0x696)]('Cancel')['targetEvent'](_0x30c795);_0x19ea6e[_0x2f5ec2(0xe27)](_0x2e1aff)['then'](function(){const _0x5c7ec2=_0x2f5ec2;_0xd69bca[_0x5c7ec2(0x17a8)][_0x5c7ec2(0x111d)]({'id':_0x2455e6['zendeskAccount']['id']})[_0x5c7ec2(0x1d77)][_0x5c7ec2(0x1cb0)](function(){const _0x5c334b=_0x5c7ec2;_0x39641b()[_0x5c334b(0x152a)](_0x2455e6['zendeskAccounts'],{'id':_0x2455e6[_0x5c334b(0x15fb)]['id']}),_0xfc6c3c[_0x5c334b(0x829)]({'title':_0x5c334b(0x1074),'msg':(_0x2455e6[_0x5c334b(0x15fb)][_0x5c334b(0x16b6)]||'zendeskAccount')+_0x5c334b(0x3f5)}),_0x581f5d(_0x2455e6['zendeskAccount']);})[_0x5c7ec2(0x1c4)](function(_0x5d9d49){const _0xcb3720=_0x5c7ec2;if(_0x5d9d49[_0xcb3720(0x25c)]&&_0x5d9d49[_0xcb3720(0x25c)][_0xcb3720(0x1a7c)]&&_0x5d9d49[_0xcb3720(0x25c)][_0xcb3720(0x1a7c)][_0xcb3720(0xfd0)]){_0x2455e6[_0xcb3720(0x1a7c)]=_0x5d9d49[_0xcb3720(0x25c)][_0xcb3720(0x1a7c)]||[{'message':_0x5d9d49[_0xcb3720(0x147f)](),'type':_0xcb3720(0xb9d)}];for(let _0x4ea7f5=0x0;_0x4ea7f5<_0x5d9d49[_0xcb3720(0x25c)]['errors'][_0xcb3720(0xfd0)];_0x4ea7f5++){_0xfc6c3c['error']({'title':_0x5d9d49[_0xcb3720(0x25c)]['errors'][_0x4ea7f5][_0xcb3720(0x66a)],'msg':_0x5d9d49[_0xcb3720(0x25c)][_0xcb3720(0x1a7c)][_0x4ea7f5][_0xcb3720(0x155e)]});}}else _0xfc6c3c[_0xcb3720(0x218e)]({'title':_0x5d9d49['status']?'API:'+_0x5d9d49[_0xcb3720(0x291)]+_0xcb3720(0x1657)+_0x5d9d49['statusText']:_0xcb3720(0xb9d),'msg':_0x5d9d49[_0xcb3720(0x25c)]?JSON[_0xcb3720(0x2701)](_0x5d9d49[_0xcb3720(0x25c)]['message']):_0x5d9d49['message']||_0x5d9d49[_0xcb3720(0x147f)]()});});},function(){});}function _0x203a21(_0x2c0d5a){return _0x2c0d5a===null?undefined:new Date(_0x2c0d5a);}function _0x581f5d(_0x20ae1e){const _0x43b2ff=_0x547507;_0x19ea6e[_0x43b2ff(0x1426)](_0x20ae1e);}}const _0x4ad1b2=_0x2b7e2f;;_0x4e9032['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x9bf),'configuration',_0x5537c6(0x122f),_0x5537c6(0x583),'account',_0x5537c6(0x66a),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x4e9032(_0x1dd228,_0x500fce,_0x59e2b3,_0x102463,_0x323d32,_0x4a88c2,_0x2cc2ff,_0x423a99,_0x36e23c,_0xa73fe2,_0x23facd,_0x190a56,_0x1fc491){const _0xb1920c=_0x5537c6,_0x2ff643=this;_0x2ff643[_0xb1920c(0xe76)]=_0x190a56[_0xb1920c(0x21e8)](),_0x2ff643['errors']=[],_0x2ff643[_0xb1920c(0x1386)]=_0xb1920c(0xf08)+_0x39641b()[_0xb1920c(0x1002)](_0xa73fe2),_0x2ff643[_0xb1920c(0x583)]=angular['copy'](_0x423a99),_0x2ff643['items']=_0x2cc2ff,_0x2ff643[_0xb1920c(0x66a)]=_0xa73fe2,_0x2ff643['crudPermissions']=_0x1fc491,_0x2ff643['newItem']=![];!_0x2ff643['item']&&(_0x2ff643['item']={'type':'string'},_0x2ff643['item'][_0x39641b()['capitalize'](_0xa73fe2)+'Id']=_0x4a88c2['id'],_0x2ff643[_0xb1920c(0x1386)]=_0xb1920c(0x15dd)+_0x39641b()[_0xb1920c(0x1002)](_0xa73fe2),_0x2ff643[_0xb1920c(0x1202)]=!![]);_0x2ff643[_0xb1920c(0x1286)]=_0x552f79,_0x2ff643[_0xb1920c(0x1a78)]=_0x559057,_0x2ff643[_0xb1920c(0x1177)]=_0x5f4bd5,_0x2ff643[_0xb1920c(0x2f6)]=_0x17f1f7,_0x2ff643[_0xb1920c(0xda0)]=_0x89c3a7,_0x23facd[_0xb1920c(0x1822)][_0xb1920c(0xbf7)]({'nolimit':!![]})[_0xb1920c(0x1d77)][_0xb1920c(0x1cb0)](function(_0x2ec858){const _0x2dbfcc=_0xb1920c;return _0x2ff643[_0x2dbfcc(0x9a9)]=_0x2ec858[_0x2dbfcc(0x2214)]?_0x2ec858[_0x2dbfcc(0x2214)]:[],_0x23facd['voiceAgentReport'][_0x2dbfcc(0x1e57)]()['$promise'];})['then'](function(_0x375456){const _0x10000b=_0xb1920c;return _0x2ff643[_0x10000b(0xbf1)]=_0x39641b()[_0x10000b(0x91f)](_0x39641b()[_0x10000b(0x1be5)](_0x375456),[_0x10000b(0x1d77),_0x10000b(0x248e),_0x10000b(0x24cb),_0x10000b(0x27ba),_0x10000b(0x1867)]),_0x2ff643['voiceAgentReportColumns']['push'](_0x10000b(0x2110)),_0x23facd['voiceDialReport'][_0x10000b(0x1e57)]()['$promise'];})['then'](function(_0x461d10){const _0x4c0351=_0xb1920c;_0x2ff643[_0x4c0351(0x1639)]=_0x39641b()[_0x4c0351(0x91f)](_0x39641b()[_0x4c0351(0x1be5)](_0x461d10),[_0x4c0351(0x1d77),_0x4c0351(0x248e),'createdAt',_0x4c0351(0x27ba),_0x4c0351(0x1867)]),_0x2ff643[_0x4c0351(0x1639)][_0x4c0351(0x2785)](_0x4c0351(0x2110));})['catch'](function(_0x423613){const _0x1c48a9=_0xb1920c;_0x323d32[_0x1c48a9(0x218e)]({'title':_0x423613[_0x1c48a9(0x291)]?'API:'+_0x423613['status']+_0x1c48a9(0x1657)+_0x423613['statusText']:'SYSTEM:GETVARIABLES','msg':_0x423613[_0x1c48a9(0x25c)]?JSON['stringify'](_0x423613[_0x1c48a9(0x25c)]):_0x423613[_0x1c48a9(0x147f)]()});}),_0x23facd[_0xb1920c(0x17a8)][_0xb1920c(0xc84)]({'id':_0x36e23c['id'],'ticketType':_0x4a88c2[_0xb1920c(0x161)]?_0x4a88c2[_0xb1920c(0x161)]:undefined})[_0xb1920c(0x1d77)][_0xb1920c(0x1cb0)](function(_0x7b788b){const _0x2c4840=_0xb1920c;_0x2ff643[_0x2c4840(0x1a28)]=!![],_0x2ff643[_0x2c4840(0x355)]=_0x7b788b['rows']?_0x7b788b[_0x2c4840(0x2214)]:[],_0x2ff643['item'][_0x2c4840(0x1e50)]&&(_0x2ff643[_0x2c4840(0x1d5a)]=_0x39641b()[_0x2c4840(0x13b4)](_0x2ff643['fields'],{'id':_0x2ff643[_0x2c4840(0x583)][_0x2c4840(0x1e50)]}));})['catch'](function(_0x64683c){const _0x5033a9=_0xb1920c;_0x2ff643[_0x5033a9(0x1a28)]=![],console[_0x5033a9(0x218e)](_0x64683c);});function _0x552f79(){const _0x3be815=_0xb1920c;_0x2ff643[_0x3be815(0x1a7c)]=[],_0x2ff643[_0x3be815(0x1d5a)]&&(_0x2ff643[_0x3be815(0x583)][_0x3be815(0x1e50)]=_0x2ff643[_0x3be815(0x1d5a)]['id'],_0x2ff643[_0x3be815(0x583)][_0x3be815(0xc1f)]=_0x2ff643[_0x3be815(0x1d5a)][_0x3be815(0x16b6)],_0x2ff643[_0x3be815(0x583)][_0x3be815(0x1d5a)]=_0x2ff643['customField']['custom']),_0x23facd['intZendeskField']['save'](_0x2ff643[_0x3be815(0x583)])[_0x3be815(0x1d77)]['then'](function(_0x54957e){const _0x321ab8=_0x3be815;_0x2ff643[_0x321ab8(0x122f)][_0x321ab8(0xf63)](_0x54957e),_0x323d32[_0x321ab8(0x829)]({'title':_0x39641b()[_0x321ab8(0x432)](_0xa73fe2)+_0x321ab8(0x220c),'msg':_0x39641b()[_0x321ab8(0x432)](_0xa73fe2)+_0x321ab8(0x470)}),_0x89c3a7();})[_0x3be815(0x1c4)](function(_0x3826ed){const _0x508352=_0x3be815;console[_0x508352(0x218e)](_0x3826ed),_0x2ff643['errors']=_0x3826ed[_0x508352(0x25c)][_0x508352(0x1a7c)]||[{'message':_0x3826ed['toString'](),'type':_0x508352(0x1876)}];});}function _0x559057(){const _0x40f554=_0xb1920c;_0x2ff643[_0x40f554(0x1a7c)]=[],_0x2ff643[_0x40f554(0x1d5a)]&&(_0x2ff643[_0x40f554(0x583)][_0x40f554(0x1e50)]=_0x2ff643['customField']['id'],_0x2ff643[_0x40f554(0x583)][_0x40f554(0xc1f)]=_0x2ff643[_0x40f554(0x1d5a)][_0x40f554(0x16b6)],_0x2ff643['item'][_0x40f554(0x1d5a)]=_0x2ff643[_0x40f554(0x1d5a)][_0x40f554(0x197c)]),_0x23facd[_0x40f554(0x24cd)][_0x40f554(0x687)]({'id':_0x2ff643[_0x40f554(0x583)]['id']},_0x2ff643['item'])[_0x40f554(0x1d77)][_0x40f554(0x1cb0)](function(_0x25063b){const _0x133d54=_0x40f554,_0x20d285=_0x39641b()['find'](_0x2ff643['items'],{'id':_0x25063b['id']});_0x20d285&&_0x39641b()['merge'](_0x20d285,_0x25063b),_0x323d32[_0x133d54(0x829)]({'title':_0x39641b()[_0x133d54(0x432)](_0xa73fe2)+'\x20properly\x20saved!','msg':_0x39641b()[_0x133d54(0x432)](_0xa73fe2)+_0x133d54(0xedb)}),_0x89c3a7();})[_0x40f554(0x1c4)](function(_0x598d38){const _0x179067=_0x40f554;console[_0x179067(0x218e)](_0x598d38),_0x2ff643[_0x179067(0x1a7c)]=_0x598d38[_0x179067(0x25c)]['errors']||[{'message':_0x598d38['toString'](),'type':_0x179067(0x197e)}];});}function _0x5f4bd5(_0x185235){const _0x1aa18a=_0xb1920c;_0x2ff643[_0x1aa18a(0x1a7c)]=[];const _0x7b117b=_0x102463[_0x1aa18a(0x1551)]()['title'](_0x1aa18a(0x1a2e))[_0x1aa18a(0x862)](_0x1aa18a(0xd4c)+_0xa73fe2+_0x1aa18a(0x1b6))[_0x1aa18a(0x15ad)](_0x1aa18a(0x1f6a)+_0x39641b()[_0x1aa18a(0x432)](_0xa73fe2))['ok'](_0x1aa18a(0x2594))[_0x1aa18a(0x696)](_0x1aa18a(0xde1))[_0x1aa18a(0x728)](_0x185235);_0x102463['show'](_0x7b117b)[_0x1aa18a(0x1cb0)](function(){const _0x166414=_0x1aa18a;_0x23facd[_0x166414(0x24cd)]['delete']({'id':_0x2ff643[_0x166414(0x583)]['id']})['$promise']['then'](function(){const _0x2e5c3c=_0x166414;_0x39641b()['remove'](_0x2ff643[_0x2e5c3c(0x122f)],{'id':_0x2ff643[_0x2e5c3c(0x583)]['id']}),_0x323d32['success']({'title':_0x39641b()['capitalize'](_0xa73fe2)+'\x20properly\x20deleted!','msg':_0x39641b()[_0x2e5c3c(0x432)](_0xa73fe2)+_0x2e5c3c(0x3f5)}),_0x89c3a7();})[_0x166414(0x1c4)](function(_0x3ce531){const _0x2be4ab=_0x166414;console[_0x2be4ab(0x218e)](_0x3ce531),_0x2ff643['errors']=_0x3ce531[_0x2be4ab(0x25c)]['errors']||[{'message':_0x3ce531[_0x2be4ab(0x147f)](),'type':_0x2be4ab(0x10e6)}];});},function(){});}function _0x17f1f7(){const _0x4aacfa=_0xb1920c;return _0x2ff643[_0x4aacfa(0x583)][_0x4aacfa(0x1e71)]!==undefined?_0x2ff643[_0x4aacfa(0x583)][_0x4aacfa(0x1e71)]:_0x4aacfa(0x7c8);}function _0x89c3a7(){const _0x59f08d=_0xb1920c;_0x102463[_0x59f08d(0x1426)]();}}const _0x1ad9ac=_0x4e9032;;_0xbece50['$inject']=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1ae),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x142b),'toasty',_0x5537c6(0x1774),_0x5537c6(0x15fb),_0x5537c6(0x2199)];function _0xbece50(_0x1a29b4,_0xf42402,_0x1c35dd,_0x6397cb,_0x32d7d5,_0x47bc09,_0xa0989,_0x19a2ba,_0x255ac2,_0x114965,_0x2c51d9,_0x58310a){const _0xf36a23=_0x5537c6,_0x3c6386=this;_0x3c6386['currentUser']=_0x114965[_0xf36a23(0x21e8)](),_0x3c6386[_0xf36a23(0x8a5)]=_0x47bc09,_0x3c6386['setting']=_0xa0989,_0x3c6386[_0xf36a23(0x1b0c)]=_0x3c6386[_0xf36a23(0x9ca)][_0xf36a23(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3c6386[_0xf36a23(0x2404)]=_0xf42402[_0xf36a23(0x2276)]()+_0xf36a23(0x138b)+_0xf42402[_0xf36a23(0x17d8)](),_0x3c6386[_0xf36a23(0x15fb)]=_0x2c51d9||_0x1a29b4['params'][_0xf36a23(0x15fb)]||{},_0x3c6386[_0xf36a23(0x2199)]=_0x58310a&&_0x58310a['count']==0x1?_0x58310a[_0xf36a23(0x2214)][0x0]:null,_0x3c6386[_0xf36a23(0x1b1a)]=_0x114965['parseCrudPermissions'](_0x3c6386[_0xf36a23(0x2199)]?_0x3c6386[_0xf36a23(0x2199)][_0xf36a23(0x1b1a)]:null),_0x3c6386[_0xf36a23(0xf4c)]={},_0x3c6386['selectedTab']=_0x1a29b4[_0xf36a23(0x1dfe)]['tab']||0x0,_0x3c6386[_0xf36a23(0x494)]=_0x255ac2[_0xf36a23(0x28c7)],_0x3c6386[_0xf36a23(0x1ca8)]=_0x3731bf,_0x3c6386[_0xf36a23(0x18e3)]=_0x11e29a;function _0x3731bf(){_0x1a29b4['go']('app.integrations.zendeskAccounts',{},{'reload':'app.integrations.zendeskAccounts'});}function _0x11e29a(){const _0x1b06b3=_0xf36a23;_0x19a2ba[_0x1b06b3(0x17a8)][_0x1b06b3(0x687)]({'id':_0x3c6386[_0x1b06b3(0x15fb)]['id']},_0x3c6386[_0x1b06b3(0x15fb)])[_0x1b06b3(0x1d77)][_0x1b06b3(0x1cb0)](function(){const _0x136671=_0x1b06b3;_0x255ac2['success']({'title':_0x136671(0xe87),'msg':_0x3c6386[_0x136671(0x15fb)][_0x136671(0x16b6)]?_0x3c6386['zendeskAccount']['name']+_0x136671(0x1068):''});})[_0x1b06b3(0x1c4)](function(_0x22f06f){const _0x5cc1d1=_0x1b06b3;_0x255ac2[_0x5cc1d1(0x218e)]({'title':_0x22f06f[_0x5cc1d1(0x291)]?_0x5cc1d1(0xeb9)+_0x22f06f['status']+_0x5cc1d1(0x1657)+_0x22f06f[_0x5cc1d1(0xc22)]:_0x5cc1d1(0x1ba4),'msg':_0x22f06f['data']?JSON[_0x5cc1d1(0x2701)](_0x22f06f[_0x5cc1d1(0x25c)]):_0x22f06f['toString']()});});}}const _0x40db45=_0xbece50;;const _0x464144=_0x5074a3['p']+_0x5537c6(0x36a);;const _0x3507b0=_0x5074a3['p']+_0x5537c6(0x1b42);;_0x5656fc[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774)];function _0x5656fc(_0x4cbd5c,_0x4bc6f9,_0x608efd,_0x1c3e6a,_0x5e209f){const _0x33c529=_0x5537c6,_0x38eb2e=this;_0x38eb2e[_0x33c529(0xe76)]=_0x5e209f['getCurrentUser'](),_0x38eb2e[_0x33c529(0x15fb)]={},_0x38eb2e[_0x33c529(0x23bb)]={},_0x38eb2e[_0x33c529(0x229a)]=[],_0x38eb2e[_0x33c529(0x1f04)]=-0x1,_0x38eb2e[_0x33c529(0x1b1a)],_0x38eb2e[_0x33c529(0x1a8e)]=_0x6a7769,_0x38eb2e[_0x33c529(0x9ba)]=_0x52a7fa,_0x38eb2e[_0x33c529(0x252f)]=_0x150928,_0x38eb2e[_0x33c529(0x1022)]=_0x5d8a0d,_0x38eb2e[_0x33c529(0xfae)]=[],_0x38eb2e[_0x33c529(0x2192)]=_0x532efc,_0x608efd['tag'][_0x33c529(0xbf7)]({'nolimit':!![],'sort':_0x33c529(0x16b6)})[_0x33c529(0x1d77)][_0x33c529(0x1cb0)](function(_0x39768a){const _0x5e65fd=_0x33c529;_0x38eb2e[_0x5e65fd(0xfbf)]=_0x39768a['rows']?_0x39768a['rows']:[];})['catch'](function(_0x2cb16e){const _0x3a6dee=_0x33c529;_0x1c3e6a[_0x3a6dee(0x218e)]({'title':_0x2cb16e[_0x3a6dee(0x291)]?_0x3a6dee(0xeb9)+_0x2cb16e[_0x3a6dee(0x291)]+_0x3a6dee(0x1657)+_0x2cb16e['statusText']:_0x3a6dee(0x3ee),'msg':_0x2cb16e['data']?JSON['stringify'](_0x2cb16e['data']):_0x2cb16e['toString']()});});function _0x532efc(){const _0x222a3e=_0x33c529;_0x608efd[_0x222a3e(0xc39)][_0x222a3e(0xe53)]({'id':_0x38eb2e[_0x222a3e(0x23bb)]['id'],'ids':_0x38eb2e[_0x222a3e(0xfae)]})['$promise'][_0x222a3e(0x1cb0)](function(){const _0x3592dd=_0x222a3e;_0x1c3e6a[_0x3592dd(0x829)]({'title':_0x3592dd(0x3e9),'msg':_0x3592dd(0x26cb)});})[_0x222a3e(0x1c4)](function(_0x4d4035){const _0x1f71c2=_0x222a3e;_0x1c3e6a[_0x1f71c2(0x218e)]({'title':_0x4d4035['status']?_0x1f71c2(0xeb9)+_0x4d4035['status']+_0x1f71c2(0x1657)+_0x4d4035['statusText']:_0x1f71c2(0x2774),'msg':_0x4d4035[_0x1f71c2(0x25c)]?JSON[_0x1f71c2(0x2701)](_0x4d4035['data']):_0x4d4035[_0x1f71c2(0x147f)]()});});}function _0x6a7769(_0x57fc72,_0x5ee8a3){const _0x1a3da6=_0x33c529;_0x38eb2e[_0x1a3da6(0x15fb)]=_0x57fc72,_0x38eb2e['crudPermissions']=typeof _0x5ee8a3!==_0x1a3da6(0x16b5)?_0x5ee8a3:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x608efd['intZendeskAccount'][_0x1a3da6(0x618)]({'id':_0x38eb2e['zendeskAccount']['id'],'sort':_0x1a3da6(0x282)})[_0x1a3da6(0x1d77)][_0x1a3da6(0x1cb0)](function(_0x2c6af1){const _0x806a2d=_0x1a3da6;return _0x38eb2e[_0x806a2d(0x229a)]=_0x2c6af1[_0x806a2d(0x2214)]?_0x2c6af1[_0x806a2d(0x2214)]:[],_0x38eb2e[_0x806a2d(0x229a)][_0x806a2d(0xfd0)]&&_0x38eb2e[_0x806a2d(0x9ba)](0x0),_0x608efd[_0x806a2d(0x1822)][_0x806a2d(0xbf7)]({'nolimit':!![],'sort':_0x806a2d(0x16b6)})[_0x806a2d(0x1d77)];})[_0x1a3da6(0x1cb0)](function(_0x4c0e18){const _0x2c81fb=_0x1a3da6;_0x38eb2e[_0x2c81fb(0x9a9)]=_0x4c0e18['rows']?_0x4c0e18[_0x2c81fb(0x2214)]:[],_0x38eb2e['variablesById']=_0x39641b()['keyBy'](_0x38eb2e[_0x2c81fb(0x9a9)],'id');})['catch'](function(_0xfdd2ec){const _0x40bfab=_0x1a3da6;_0x1c3e6a[_0x40bfab(0x218e)]({'title':_0xfdd2ec[_0x40bfab(0x291)]?_0x40bfab(0xeb9)+_0xfdd2ec['status']+'\x20-\x20'+_0xfdd2ec[_0x40bfab(0xc22)]:_0x40bfab(0x1b0f),'msg':_0xfdd2ec['data']?JSON[_0x40bfab(0x2701)](_0xfdd2ec[_0x40bfab(0x25c)]):_0xfdd2ec['toString']()});});}function _0x52a7fa(_0x3b7b1b){const _0x33d541=_0x33c529;_0x38eb2e[_0x33d541(0x23bb)]=_0x38eb2e['zendeskConfigurations'][_0x3b7b1b],_0x38eb2e['selectedZendeskConfiguration']=_0x3b7b1b,_0x608efd[_0x33d541(0xc39)][_0x33d541(0x243a)]({'id':_0x38eb2e['zendeskConfiguration']['id']})['$promise'][_0x33d541(0x1cb0)](function(_0x2f71e7){const _0x45ea57=_0x33d541;return _0x38eb2e[_0x45ea57(0x2388)]=_0x2f71e7['rows']?_0x2f71e7['rows']:[],_0x608efd[_0x45ea57(0xc39)][_0x45ea57(0xb6d)]({'id':_0x38eb2e[_0x45ea57(0x23bb)]['id']})[_0x45ea57(0x1d77)];})[_0x33d541(0x1cb0)](function(_0x39a46d){const _0x1eafbc=_0x33d541;return _0x38eb2e['descriptions']=_0x39a46d[_0x1eafbc(0x2214)]?_0x39a46d['rows']:[],_0x608efd['intZendeskConfiguration']['getFields']({'id':_0x38eb2e['zendeskConfiguration']['id']})['$promise'];})[_0x33d541(0x1cb0)](function(_0x3d3775){const _0x415ee7=_0x33d541;_0x38eb2e['fields']=_0x3d3775[_0x415ee7(0x2214)]?_0x3d3775[_0x415ee7(0x2214)]:[];})[_0x33d541(0x1c4)](function(_0x5ea247){const _0x51b4cd=_0x33d541;_0x1c3e6a[_0x51b4cd(0x218e)]({'title':_0x5ea247[_0x51b4cd(0x291)]?_0x51b4cd(0xeb9)+_0x5ea247[_0x51b4cd(0x291)]+_0x51b4cd(0x1657)+_0x5ea247[_0x51b4cd(0xc22)]:_0x51b4cd(0x1e5f),'msg':_0x5ea247[_0x51b4cd(0x25c)]?JSON[_0x51b4cd(0x2701)](_0x5ea247[_0x51b4cd(0x25c)]):_0x5ea247[_0x51b4cd(0x147f)]()});}),_0x608efd[_0x33d541(0xc39)]['getTags']({'id':_0x38eb2e[_0x33d541(0x23bb)]['id']})[_0x33d541(0x1d77)][_0x33d541(0x1cb0)](function(_0x12b681){const _0x1ffe87=_0x33d541;_0x38eb2e[_0x1ffe87(0xfae)]=_0x12b681[_0x1ffe87(0x2214)]?_0x39641b()[_0x1ffe87(0x1de2)](_0x12b681[_0x1ffe87(0x2214)],'id'):[];})[_0x33d541(0x1c4)](function(_0x287890){const _0x212215=_0x33d541;_0x1c3e6a[_0x212215(0x218e)]({'title':_0x287890[_0x212215(0x291)]?'API:'+_0x287890[_0x212215(0x291)]+_0x212215(0x1657)+_0x287890[_0x212215(0xc22)]:_0x212215(0x3ee),'msg':_0x287890['data']?JSON['stringify'](_0x287890[_0x212215(0x25c)]):_0x287890['toString']()});});}function _0x150928(_0x4984f5,_0x17cbfb){const _0x55846c=_0x33c529;_0x4cbd5c[_0x55846c(0xe27)]({'controller':'CreateOrEditZendeskConfigurationDialogController','controllerAs':'vm','templateUrl':_0x464144,'parent':angular[_0x55846c(0x1853)](_0x4bc6f9[_0x55846c(0x1ed9)]),'targetEvent':_0x4984f5,'clickOutsideToClose':!![],'locals':{'zendeskConfiguration':_0x17cbfb,'zendeskConfigurations':_0x38eb2e[_0x55846c(0x229a)],'license':null,'setting':null,'crudPermissions':_0x38eb2e[_0x55846c(0x1b1a)]}})[_0x55846c(0x2e0)](function(){const _0xda6ac5=_0x55846c;_0x38eb2e[_0xda6ac5(0x9ba)](0x0);});}function _0x5d8a0d(_0x248cfc,_0x46e841){const _0x33e097=_0x33c529,_0xf4ad64=_0x4cbd5c[_0x33e097(0x1551)]()[_0x33e097(0x1386)](_0x33e097(0x24fd))[_0x33e097(0x49e)](_0x33e097(0x204d)+(_0x46e841[_0x33e097(0x16b6)]||_0x33e097(0x23bb))+_0x33e097(0x1200)+_0x33e097(0x1b6))[_0x33e097(0x15ad)](_0x33e097(0xaf2))['targetEvent'](_0x248cfc)['ok']('OK')['cancel'](_0x33e097(0x24ba));_0x4cbd5c[_0x33e097(0xe27)](_0xf4ad64)['then'](function(){const _0x3342ca=_0x33e097;_0x608efd[_0x3342ca(0xc39)]['delete']({'id':_0x46e841['id']})[_0x3342ca(0x1d77)][_0x3342ca(0x1cb0)](function(){const _0x306dd8=_0x3342ca;_0x39641b()[_0x306dd8(0x152a)](_0x38eb2e[_0x306dd8(0x229a)],{'id':_0x46e841['id']}),_0x1c3e6a['success']({'title':'ZendeskConfiguration\x20deleted!','msg':_0x46e841[_0x306dd8(0x16b6)]?_0x46e841[_0x306dd8(0x16b6)]+_0x306dd8(0x3f5):''});})[_0x3342ca(0x1c4)](function(_0x33ed38){const _0x21dd1a=_0x3342ca;_0x1c3e6a[_0x21dd1a(0x218e)]({'title':_0x33ed38[_0x21dd1a(0x291)]?_0x21dd1a(0xeb9)+_0x33ed38[_0x21dd1a(0x291)]+'\x20-\x20'+_0x33ed38[_0x21dd1a(0xc22)]:'SYSTEM:DELETECONFIGURATION','msg':_0x33ed38[_0x21dd1a(0x25c)]?JSON[_0x21dd1a(0x2701)](_0x33ed38[_0x21dd1a(0x25c)]):_0x33ed38[_0x21dd1a(0x147f)]()});})[_0x3342ca(0x2e0)](function(){const _0xf19175=_0x3342ca;_0x38eb2e[_0xf19175(0x9ba)](0x0);});},function(){const _0x332343=_0x33e097;console[_0x332343(0x1b4f)](_0x332343(0x24ba));});}_0x38eb2e[_0x33c529(0x4df)]=[],_0x38eb2e['createOrEditSubject']=_0x51461a,_0x38eb2e[_0x33c529(0x259e)]=_0x1f1d2d,_0x38eb2e[_0x33c529(0xf12)]=_0x11bcf3;function _0x51461a(_0x57b914,_0xdb0d6f){const _0xb58e0c=_0x33c529;_0x4cbd5c[_0xb58e0c(0xe27)]({'controller':_0xb58e0c(0x136e),'controllerAs':'vm','templateUrl':_0x3507b0,'parent':angular[_0xb58e0c(0x1853)](_0x4bc6f9['body']),'targetEvent':_0x57b914,'clickOutsideToClose':!![],'locals':{'type':_0xb58e0c(0x1e5d),'item':_0xdb0d6f,'items':_0x38eb2e[_0xb58e0c(0x2388)],'configuration':_0x38eb2e['zendeskConfiguration'],'account':_0x38eb2e[_0xb58e0c(0x15fb)],'license':null,'setting':null,'crudPermissions':_0x38eb2e[_0xb58e0c(0x1b1a)]}});}function _0x5be7e4(_0x21a737){const _0x42fbe3=_0x33c529;_0x608efd['intZendeskField'][_0x42fbe3(0x111d)]({'id':_0x21a737['id']})[_0x42fbe3(0x1d77)]['then'](function(){const _0x145451=_0x42fbe3;_0x39641b()[_0x145451(0x152a)](_0x38eb2e[_0x145451(0x2388)],{'id':_0x21a737['id']}),_0x1c3e6a[_0x145451(0x829)]({'title':'Subject\x20deleted!','msg':'Subject\x20has\x20been\x20deleted!'});})[_0x42fbe3(0x1c4)](function(_0x5d43a8){const _0x3326d4=_0x42fbe3;_0x1c3e6a[_0x3326d4(0x218e)]({'title':_0x5d43a8['status']?'API:'+_0x5d43a8[_0x3326d4(0x291)]+_0x3326d4(0x1657)+_0x5d43a8['statusText']:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x5d43a8[_0x3326d4(0x25c)]?JSON[_0x3326d4(0x2701)](_0x5d43a8[_0x3326d4(0x25c)]):_0x5d43a8[_0x3326d4(0x147f)]()});});}function _0x1f1d2d(_0x1d4bfe,_0x2d0d8b){const _0x22111d=_0x33c529,_0x518603=_0x4cbd5c['confirm']()[_0x22111d(0x1386)](_0x22111d(0xa59))[_0x22111d(0x49e)](_0x22111d(0x14ee)+_0x22111d(0x1b6))['ariaLabel'](_0x22111d(0xbc3))[_0x22111d(0x728)](_0x1d4bfe)['ok']('OK')[_0x22111d(0x696)](_0x22111d(0x24ba));_0x4cbd5c[_0x22111d(0xe27)](_0x518603)[_0x22111d(0x1cb0)](function(){_0x5be7e4(_0x2d0d8b);},function(){const _0x1419a2=_0x22111d;console[_0x1419a2(0x1b4f)](_0x1419a2(0x24ba));});}function _0x11bcf3(_0x552a78){const _0x5f1b33=_0x33c529,_0x8142a0=_0x4cbd5c[_0x5f1b33(0x1551)]()[_0x5f1b33(0x1386)](_0x5f1b33(0x1f8e))[_0x5f1b33(0x49e)](_0x5f1b33(0x204d)+_0x38eb2e['selectedSubjects'][_0x5f1b33(0xfd0)]+_0x5f1b33(0x1d6c)+_0x5f1b33(0x1b6))[_0x5f1b33(0x15ad)](_0x5f1b33(0x222e))[_0x5f1b33(0x728)](_0x552a78)['ok']('OK')[_0x5f1b33(0x696)]('CANCEL');_0x4cbd5c[_0x5f1b33(0xe27)](_0x8142a0)[_0x5f1b33(0x1cb0)](function(){const _0x176c63=_0x5f1b33;_0x38eb2e[_0x176c63(0x4df)]['forEach'](function(_0x350c8a){_0x5be7e4(_0x350c8a);}),_0x38eb2e[_0x176c63(0x4df)]=[];});}_0x38eb2e[_0x33c529(0xac6)]=[],_0x38eb2e[_0x33c529(0x14c7)]=_0x2ca94e,_0x38eb2e[_0x33c529(0xc09)]=_0xd373cc,_0x38eb2e[_0x33c529(0x2931)]=_0x41b165;function _0x2ca94e(_0x11f8c0,_0x4ba9f0){const _0x40f328=_0x33c529;_0x4cbd5c[_0x40f328(0xe27)]({'controller':_0x40f328(0x136e),'controllerAs':'vm','templateUrl':_0x3507b0,'parent':angular[_0x40f328(0x1853)](_0x4bc6f9[_0x40f328(0x1ed9)]),'targetEvent':_0x11f8c0,'clickOutsideToClose':!![],'locals':{'type':_0x40f328(0x2c1),'item':_0x4ba9f0,'items':_0x38eb2e[_0x40f328(0x310)],'configuration':_0x38eb2e[_0x40f328(0x23bb)],'account':_0x38eb2e[_0x40f328(0x15fb)],'license':null,'setting':null,'crudPermissions':_0x38eb2e[_0x40f328(0x1b1a)]}});}function _0x5dd2bc(_0x2de5b2){const _0xcdee47=_0x33c529;_0x608efd[_0xcdee47(0x24cd)][_0xcdee47(0x111d)]({'id':_0x2de5b2['id']})[_0xcdee47(0x1d77)][_0xcdee47(0x1cb0)](function(){const _0x18275e=_0xcdee47;_0x39641b()[_0x18275e(0x152a)](_0x38eb2e[_0x18275e(0x310)],{'id':_0x2de5b2['id']}),_0x1c3e6a[_0x18275e(0x829)]({'title':_0x18275e(0x24c0),'msg':'Description\x20has\x20been\x20deleted!'});})[_0xcdee47(0x1c4)](function(_0x20c1bf){const _0x3d90a9=_0xcdee47;_0x1c3e6a[_0x3d90a9(0x218e)]({'title':_0x20c1bf['status']?_0x3d90a9(0xeb9)+_0x20c1bf[_0x3d90a9(0x291)]+_0x3d90a9(0x1657)+_0x20c1bf['statusText']:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x20c1bf[_0x3d90a9(0x25c)]?JSON[_0x3d90a9(0x2701)](_0x20c1bf[_0x3d90a9(0x25c)]):_0x20c1bf['toString']()});});}function _0xd373cc(_0x2dda9c,_0x59a02b){const _0x4aabcc=_0x33c529,_0x433f96=_0x4cbd5c['confirm']()[_0x4aabcc(0x1386)](_0x4aabcc(0x7d2))[_0x4aabcc(0x49e)](_0x4aabcc(0x18b8)+_0x4aabcc(0x1b6))[_0x4aabcc(0x15ad)](_0x4aabcc(0x103d))[_0x4aabcc(0x728)](_0x2dda9c)['ok']('OK')[_0x4aabcc(0x696)](_0x4aabcc(0x24ba));_0x4cbd5c['show'](_0x433f96)[_0x4aabcc(0x1cb0)](function(){_0x5dd2bc(_0x59a02b);},function(){const _0x418efb=_0x4aabcc;console[_0x418efb(0x1b4f)](_0x418efb(0x24ba));});}function _0x41b165(_0x50edad){const _0x240dac=_0x33c529,_0x1a607e=_0x4cbd5c[_0x240dac(0x1551)]()['title'](_0x240dac(0x2e7))[_0x240dac(0x49e)](_0x240dac(0x204d)+_0x38eb2e[_0x240dac(0xac6)][_0x240dac(0xfd0)]+_0x240dac(0x1d6c)+_0x240dac(0x1b6))['ariaLabel'](_0x240dac(0x1828))[_0x240dac(0x728)](_0x50edad)['ok']('OK')['cancel']('CANCEL');_0x4cbd5c[_0x240dac(0xe27)](_0x1a607e)[_0x240dac(0x1cb0)](function(){const _0x247195=_0x240dac;_0x38eb2e[_0x247195(0xac6)]['forEach'](function(_0x342926){_0x5dd2bc(_0x342926);}),_0x38eb2e[_0x247195(0xac6)]=[];});}_0x38eb2e[_0x33c529(0x9b2)]=[],_0x38eb2e[_0x33c529(0x5e9)]=_0x1ca845,_0x38eb2e['deleteFieldConfirm']=_0xe9f79b,_0x38eb2e[_0x33c529(0xe40)]=_0x2faa51;function _0x1ca845(_0x3764d1,_0x2d738d){const _0xf3f8b3=_0x33c529;_0x4cbd5c[_0xf3f8b3(0xe27)]({'controller':'CreateOrEditZendeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x3507b0,'parent':angular[_0xf3f8b3(0x1853)](_0x4bc6f9[_0xf3f8b3(0x1ed9)]),'targetEvent':_0x3764d1,'clickOutsideToClose':!![],'locals':{'type':_0xf3f8b3(0x2198),'item':_0x2d738d,'items':_0x38eb2e[_0xf3f8b3(0x355)],'configuration':_0x38eb2e['zendeskConfiguration'],'account':_0x38eb2e[_0xf3f8b3(0x15fb)],'license':null,'setting':null,'crudPermissions':_0x38eb2e['crudPermissions']}});}function _0x136122(_0x26922d){const _0x1ddd16=_0x33c529;_0x608efd['intZendeskField']['delete']({'id':_0x26922d['id']})[_0x1ddd16(0x1d77)][_0x1ddd16(0x1cb0)](function(){const _0x425064=_0x1ddd16;_0x39641b()[_0x425064(0x152a)](_0x38eb2e[_0x425064(0x355)],{'id':_0x26922d['id']}),_0x1c3e6a[_0x425064(0x829)]({'title':'Field\x20deleted!','msg':_0x425064(0x2688)});})[_0x1ddd16(0x1c4)](function(_0x5a53f6){const _0x10127d=_0x1ddd16;_0x1c3e6a[_0x10127d(0x218e)]({'title':_0x5a53f6[_0x10127d(0x291)]?'API:'+_0x5a53f6[_0x10127d(0x291)]+_0x10127d(0x1657)+_0x5a53f6[_0x10127d(0xc22)]:_0x10127d(0x13e5),'msg':_0x5a53f6[_0x10127d(0x25c)]?JSON[_0x10127d(0x2701)](_0x5a53f6[_0x10127d(0x25c)]):_0x5a53f6['toString']()});});}function _0xe9f79b(_0x1b2cde,_0x4efebc){const _0x429429=_0x33c529,_0x23c469=_0x4cbd5c[_0x429429(0x1551)]()[_0x429429(0x1386)](_0x429429(0x21a9))['htmlContent'](_0x429429(0xf1d)+_0x429429(0x1b6))[_0x429429(0x15ad)](_0x429429(0x21ee))[_0x429429(0x728)](_0x1b2cde)['ok']('OK')[_0x429429(0x696)](_0x429429(0x24ba));_0x4cbd5c[_0x429429(0xe27)](_0x23c469)['then'](function(){_0x136122(_0x4efebc);},function(){const _0x3a8387=_0x429429;console[_0x3a8387(0x1b4f)](_0x3a8387(0x24ba));});}function _0x2faa51(_0x12811f){const _0x2ef42d=_0x33c529,_0x5b82c3=_0x4cbd5c['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x2ef42d(0x49e)](_0x2ef42d(0x204d)+_0x38eb2e[_0x2ef42d(0x9b2)][_0x2ef42d(0xfd0)]+_0x2ef42d(0x1d6c)+_0x2ef42d(0x1b6))['ariaLabel']('delete\x20fields')[_0x2ef42d(0x728)](_0x12811f)['ok']('OK')[_0x2ef42d(0x696)](_0x2ef42d(0x24ba));_0x4cbd5c[_0x2ef42d(0xe27)](_0x5b82c3)['then'](function(){const _0x460e3=_0x2ef42d;_0x38eb2e['selectedFields']['forEach'](function(_0x425419){_0x136122(_0x425419);}),_0x38eb2e[_0x460e3(0x9b2)]=[];});}}const _0x168bac=_0x5656fc;;_0x3dfcfb[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x229a),'zendeskConfiguration','api','Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x3dfcfb(_0x2676e3,_0xfd9732,_0x19f0ba,_0x10a4d7,_0x56fcd2,_0xd66a09,_0x5a5f12,_0x10c16b,_0x1c0c69,_0x291496,_0x534094,_0x54bcda,_0x3e264b,_0x3dbb97){const _0x90528c=_0x5537c6,_0x525592=this;_0x525592[_0x90528c(0xe76)]=_0x534094[_0x90528c(0x21e8)](),_0x525592[_0x90528c(0x1a7c)]=[],_0x525592[_0x90528c(0x9ca)]=_0x3e264b,_0x525592[_0x90528c(0x8a5)]=_0x54bcda,_0x525592[_0x90528c(0x1b1a)]=_0x3dbb97,_0x525592[_0x90528c(0xf4c)]={},_0x525592['passwordPattern']=_0x525592[_0x90528c(0x9ca)]&&_0x525592[_0x90528c(0x9ca)][_0x90528c(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x525592['title']='INTEGRATIONS.EDIT_ZENDESKCONFIGURATION',_0x525592[_0x90528c(0x23bb)]=angular['copy'](_0x1c0c69),_0x525592[_0x90528c(0x229a)]=_0x10c16b,_0x525592[_0x90528c(0xf62)]=![];!_0x525592[_0x90528c(0x23bb)]&&(_0x525592['zendeskConfiguration']={'channel':_0x90528c(0x1fd4),'type':_0x90528c(0x26c0)},_0x525592[_0x90528c(0x1386)]=_0x90528c(0xd18),_0x525592[_0x90528c(0xf62)]=!![]);_0x525592[_0x90528c(0xc27)]=_0x155289,_0x525592['saveZendeskConfiguration']=_0x157c00,_0x525592['deleteZendeskConfiguration']=_0x5e9d09,_0x525592[_0x90528c(0x2c4)]=_0x5ad003,_0x525592['closeDialog']=_0x2a80ab;function _0x155289(){const _0x2536f9=_0x90528c;_0x525592[_0x2536f9(0x1a7c)]=[],_0x291496['intZendeskAccount']['addConfiguration']({'id':_0xfd9732[_0x2536f9(0x1dfe)]['id']},_0x525592[_0x2536f9(0x23bb)])[_0x2536f9(0x1d77)][_0x2536f9(0x1cb0)](function(_0x1a49e9){const _0x28d636=_0x2536f9;_0x525592[_0x28d636(0x229a)]['unshift'](_0x1a49e9[_0x28d636(0x19b2)]()),_0x5a5f12['success']({'title':_0x28d636(0x273e),'msg':_0x525592[_0x28d636(0x23bb)][_0x28d636(0x16b6)]?_0x525592['zendeskConfiguration'][_0x28d636(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x2a80ab(_0x1a49e9);})[_0x2536f9(0x1c4)](function(_0x2db3be){const _0x4b539b=_0x2536f9;if(_0x2db3be['data']&&_0x2db3be[_0x4b539b(0x25c)][_0x4b539b(0x1a7c)]&&_0x2db3be[_0x4b539b(0x25c)][_0x4b539b(0x1a7c)][_0x4b539b(0xfd0)]){_0x525592[_0x4b539b(0x1a7c)]=_0x2db3be[_0x4b539b(0x25c)][_0x4b539b(0x1a7c)]||[{'message':_0x2db3be[_0x4b539b(0x147f)](),'type':_0x4b539b(0x23c)}];for(let _0x17af93=0x0;_0x17af93<_0x2db3be[_0x4b539b(0x25c)]['errors'][_0x4b539b(0xfd0)];_0x17af93+=0x1){_0x5a5f12[_0x4b539b(0x218e)]({'title':_0x2db3be[_0x4b539b(0x25c)][_0x4b539b(0x1a7c)][_0x17af93]['type'],'msg':_0x2db3be['data'][_0x4b539b(0x1a7c)][_0x17af93][_0x4b539b(0x155e)]});}}else _0x5a5f12[_0x4b539b(0x218e)]({'title':_0x2db3be['status']?'API:'+_0x2db3be[_0x4b539b(0x291)]+'\x20-\x20'+_0x2db3be[_0x4b539b(0xc22)]:'api.intZendeskConfiguration.save','msg':_0x2db3be['data']?JSON[_0x4b539b(0x2701)](_0x2db3be[_0x4b539b(0x25c)][_0x4b539b(0x155e)]):_0x2db3be[_0x4b539b(0x147f)]()});});}function _0x157c00(){const _0x2a2430=_0x90528c;_0x525592[_0x2a2430(0x1a7c)]=[],_0x291496[_0x2a2430(0xc39)][_0x2a2430(0x687)]({'id':_0x525592[_0x2a2430(0x23bb)]['id']},_0x525592['zendeskConfiguration'])['$promise']['then'](function(_0x3d3e24){const _0x1c037d=_0x2a2430,_0x29eb55=_0x39641b()[_0x1c037d(0x13b4)](_0x525592[_0x1c037d(0x229a)],{'id':_0x3d3e24['id']});_0x29eb55&&_0x39641b()[_0x1c037d(0x9c1)](_0x29eb55,_0x39641b()[_0x1c037d(0x169b)](_0x3d3e24[_0x1c037d(0x19b2)](),_0x39641b()[_0x1c037d(0x1be5)](_0x29eb55))),_0x5a5f12[_0x1c037d(0x829)]({'title':_0x1c037d(0x196a),'msg':_0x525592[_0x1c037d(0x23bb)]['name']?_0x525592[_0x1c037d(0x23bb)][_0x1c037d(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x2a80ab(_0x3d3e24);})[_0x2a2430(0x1c4)](function(_0x1e6832){const _0x226e09=_0x2a2430;if(_0x1e6832[_0x226e09(0x25c)]&&_0x1e6832[_0x226e09(0x25c)][_0x226e09(0x1a7c)]&&_0x1e6832[_0x226e09(0x25c)]['errors'][_0x226e09(0xfd0)]){_0x525592['errors']=_0x1e6832[_0x226e09(0x25c)]['errors']||[{'message':_0x1e6832[_0x226e09(0x147f)](),'type':_0x226e09(0x264b)}];for(let _0x1a4621=0x0;_0x1a4621<_0x1e6832[_0x226e09(0x25c)][_0x226e09(0x1a7c)]['length'];_0x1a4621++){_0x5a5f12[_0x226e09(0x218e)]({'title':_0x1e6832[_0x226e09(0x25c)][_0x226e09(0x1a7c)][_0x1a4621]['type'],'msg':_0x1e6832['data'][_0x226e09(0x1a7c)][_0x1a4621][_0x226e09(0x155e)]});}}else _0x5a5f12[_0x226e09(0x218e)]({'title':_0x1e6832[_0x226e09(0x291)]?_0x226e09(0xeb9)+_0x1e6832['status']+_0x226e09(0x1657)+_0x1e6832[_0x226e09(0xc22)]:_0x226e09(0x264b),'msg':_0x1e6832['data']?JSON[_0x226e09(0x2701)](_0x1e6832[_0x226e09(0x25c)]['message']):_0x1e6832[_0x226e09(0x147f)]()});});}function _0x5e9d09(_0x353426){const _0x4917df=_0x90528c;_0x525592['errors']=[];const _0x44fc73=_0x10a4d7[_0x4917df(0x1551)]()[_0x4917df(0x1386)](_0x4917df(0x1a2e))['content'](_0x4917df(0x104f))[_0x4917df(0x15ad)]('Delete\x20ZendeskConfiguration')['ok'](_0x4917df(0x2594))[_0x4917df(0x696)](_0x4917df(0xde1))[_0x4917df(0x728)](_0x353426);_0x10a4d7['show'](_0x44fc73)[_0x4917df(0x1cb0)](function(){const _0x3c1cd1=_0x4917df;_0x291496[_0x3c1cd1(0xc39)][_0x3c1cd1(0x111d)]({'id':_0x525592[_0x3c1cd1(0x23bb)]['id']})['$promise'][_0x3c1cd1(0x1cb0)](function(){const _0x4c3f2d=_0x3c1cd1;_0x39641b()[_0x4c3f2d(0x152a)](_0x525592[_0x4c3f2d(0x229a)],{'id':_0x525592[_0x4c3f2d(0x23bb)]['id']}),_0x5a5f12[_0x4c3f2d(0x829)]({'title':_0x4c3f2d(0x217),'msg':(_0x525592[_0x4c3f2d(0x23bb)][_0x4c3f2d(0x16b6)]||_0x4c3f2d(0x23bb))+_0x4c3f2d(0x3f5)}),_0x2a80ab(_0x525592[_0x4c3f2d(0x23bb)]);})[_0x3c1cd1(0x1c4)](function(_0x596b2e){const _0x297f19=_0x3c1cd1;if(_0x596b2e[_0x297f19(0x25c)]&&_0x596b2e[_0x297f19(0x25c)][_0x297f19(0x1a7c)]&&_0x596b2e['data'][_0x297f19(0x1a7c)]['length']){_0x525592[_0x297f19(0x1a7c)]=_0x596b2e['data']['errors']||[{'message':_0x596b2e[_0x297f19(0x147f)](),'type':_0x297f19(0x21ff)}];for(let _0x370b38=0x0;_0x370b38<_0x596b2e[_0x297f19(0x25c)]['errors'][_0x297f19(0xfd0)];_0x370b38++){_0x5a5f12[_0x297f19(0x218e)]({'title':_0x596b2e[_0x297f19(0x25c)][_0x297f19(0x1a7c)][_0x370b38][_0x297f19(0x66a)],'msg':_0x596b2e[_0x297f19(0x25c)][_0x297f19(0x1a7c)][_0x370b38][_0x297f19(0x155e)]});}}else _0x5a5f12[_0x297f19(0x218e)]({'title':_0x596b2e[_0x297f19(0x291)]?_0x297f19(0xeb9)+_0x596b2e[_0x297f19(0x291)]+_0x297f19(0x1657)+_0x596b2e[_0x297f19(0xc22)]:'api.intZendeskConfiguration.delete','msg':_0x596b2e[_0x297f19(0x25c)]?JSON['stringify'](_0x596b2e[_0x297f19(0x25c)]['message']):_0x596b2e['message']||_0x596b2e['toString']()});});},function(){});}function _0x5ad003(_0x4cf98d){return _0x4cf98d===null?undefined:new Date(_0x4cf98d);}function _0x2a80ab(_0xc5d3ae){const _0x21dc15=_0x90528c;_0x10a4d7[_0x21dc15(0x1426)](_0xc5d3ae);}}const _0x2a8632=_0x3dfcfb;;const _0x4222d8=_0x5074a3['p']+_0x5537c6(0x20e1);;_0x1444e3[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),'$mdSidenav',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x1c64),'userProfile',_0x5537c6(0x2199),'api','msUtils','toasty','Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x1444e3(_0x533af9,_0x1d61d8,_0x5e53b9,_0x1bd80e,_0xe17c03,_0x341c59,_0x12bcd4,_0x10f3c4,_0x2f9841,_0x34774b,_0x49ac22,_0x1f7428,_0x186a71,_0x3c143c,_0x1e3e52,_0x6798e5,_0x46bd92){const _0x459100=_0x5537c6,_0x1ccb36=this;_0x1ccb36[_0x459100(0x8a5)]=_0x6798e5,_0x1ccb36['setting']=_0x46bd92,_0x1ccb36[_0x459100(0xe76)]=_0x1e3e52[_0x459100(0x21e8)](),_0x1ccb36['zendeskAccounts']=_0x2f9841||{'count':0x0,'rows':[]},_0x1ccb36[_0x459100(0x44a)]=_0x34774b,_0x1ccb36[_0x459100(0x2199)]=_0x49ac22&&_0x49ac22[_0x459100(0x184d)]==0x1?_0x49ac22[_0x459100(0x2214)][0x0]:null,_0x1ccb36['crudPermissions']=_0x1e3e52[_0x459100(0x14ea)](_0x1ccb36['userProfileSection']?_0x1ccb36[_0x459100(0x2199)][_0x459100(0x1b1a)]:null),_0x1ccb36['table']=_0x459100(0x1c64),_0x1ccb36['listOrder']='',_0x1ccb36['listOrderAsc']=null,_0x1ccb36[_0x459100(0x17f3)]=[],_0x1ccb36['query']={'fields':_0x459100(0x51c),'limit':0xa,'page':0x1},_0x1ccb36[_0x459100(0x101d)]=_0x39641b()[_0x459100(0x2631)]([{'option':_0x459100(0x232c),'value':_0x459100(0x9f5)},{'option':'New_Tab','value':_0x459100(0x23e1)}],function(_0x253ba9){const _0x5c28e2=_0x459100;return _0x39641b()['replace'](_0x253ba9[_0x5c28e2(0x327)],new RegExp('\x27','g'),'');}),_0x1ccb36[_0x459100(0x2535)]=_0x39641b()[_0x459100(0x2631)]([{'option':_0x459100(0x1b91),'value':_0x459100(0x1515)},{'option':_0x459100(0x5b0),'value':_0x459100(0x28f8)}],function(_0xc7c0ed){const _0x446fda=_0x459100;return _0x39641b()[_0x446fda(0x288f)](_0xc7c0ed['value'],new RegExp('\x27','g'),'');}),_0x1ccb36[_0x459100(0x235d)]=_0x4cf018,_0x1ccb36[_0x459100(0x6b1)]=_0x4ec550,_0x1ccb36['deleteconfirm']=_0x3ebd40,_0x1ccb36[_0x459100(0x829)]=_0x4853b2,_0x1ccb36[_0x459100(0x17c4)]=_0x56039f,_0x1ccb36[_0x459100(0x33b)]=_0x5ccc04,_0x1ccb36['deleteZendeskAccount']=_0xc515c0,_0x1ccb36['exportSelectedZendeskAccounts']=_0x1e7f60,_0x1ccb36[_0x459100(0xfff)]=_0x2c6789,_0x1ccb36[_0x459100(0x1119)]=_0x483d12,_0x1ccb36[_0x459100(0x1d46)]=_0x537ec7;function _0x4cf018(_0x3e97ca){const _0x124278=_0x459100;_0x5e53b9['go']('app.integrations.zendeskAccounts.edit',{'id':_0x3e97ca['id'],'zendeskAccount':_0x3e97ca,'crudPermissions':_0x1ccb36[_0x124278(0x1b1a)]});}function _0x4ec550(_0x1d1f74){const _0x1bcc00=_0x459100;return _0x1f7428[_0x1bcc00(0x17a8)][_0x1bcc00(0xc84)]({'id':_0x1d1f74['id'],'test':!![]})[_0x1bcc00(0x1d77)][_0x1bcc00(0x1cb0)](function(){const _0x1fe9dc=_0x1bcc00;_0x3c143c['success']({'title':_0x1fe9dc(0x1d9c),'msg':_0x1fe9dc(0x1bca)});})[_0x1bcc00(0x1c4)](function(_0x782bda){const _0x22ee9a=_0x1bcc00;_0x3c143c[_0x22ee9a(0x218e)]({'title':_0x22ee9a(0x1d9c),'msg':_0x782bda[_0x22ee9a(0x25c)]?_0x782bda['data'][_0x22ee9a(0x155e)]?_0x782bda[_0x22ee9a(0x25c)]['message']:JSON[_0x22ee9a(0x2701)](_0x782bda[_0x22ee9a(0x25c)]):_0x782bda['toString']()});});}function _0x3ebd40(_0x530130,_0x29aaf8){const _0x247915=_0x459100,_0x1211d2=_0xe17c03[_0x247915(0x1551)]()[_0x247915(0x1386)](_0x247915(0x140b)+_0x39641b()[_0x247915(0xa75)](_0x247915(0x15fb))+'?')[_0x247915(0x49e)](_0x247915(0x204d)+(_0x530130[_0x247915(0x16b6)]||_0x247915(0x15fb))+_0x247915(0x1200)+_0x247915(0x1b6))[_0x247915(0x15ad)](_0x247915(0x10dc))[_0x247915(0x728)](_0x29aaf8)['ok']('OK')[_0x247915(0x696)]('CANCEL');_0xe17c03[_0x247915(0xe27)](_0x1211d2)[_0x247915(0x1cb0)](function(){_0xc515c0(_0x530130);},function(){const _0x19f28f=_0x247915;console['log'](_0x19f28f(0x24ba));});}let _0x204d99=!![],_0x249fe4=0x1;_0x533af9[_0x459100(0x614)](_0x459100(0x957),function(_0x251150,_0x385b42){const _0x3486c9=_0x459100;_0x204d99?_0x12bcd4(function(){_0x204d99=![];}):(!_0x385b42&&(_0x249fe4=_0x1ccb36[_0x3486c9(0xae2)][_0x3486c9(0x1c7b)]),_0x251150!==_0x385b42&&(_0x1ccb36[_0x3486c9(0xae2)]['page']=0x1),!_0x251150&&(_0x1ccb36['query'][_0x3486c9(0x1c7b)]=_0x249fe4),_0x1ccb36[_0x3486c9(0x17c4)]());});function _0x4853b2(_0x1b2c10){const _0xf62129=_0x459100;_0x1ccb36[_0xf62129(0x1c64)]=_0x1b2c10||{'count':0x0,'rows':[]};}function _0x56039f(){const _0x3a6a6d=_0x459100;_0x1ccb36[_0x3a6a6d(0xae2)][_0x3a6a6d(0x184b)]=(_0x1ccb36[_0x3a6a6d(0xae2)][_0x3a6a6d(0x1c7b)]-0x1)*_0x1ccb36[_0x3a6a6d(0xae2)][_0x3a6a6d(0x236)],_0x1e3e52['hasRole'](_0x3a6a6d(0x1c60))?_0x1ccb36['promise']=_0x1f7428['intZendeskAccount'][_0x3a6a6d(0xbf7)](_0x1ccb36[_0x3a6a6d(0xae2)],_0x4853b2)[_0x3a6a6d(0x1d77)]:(_0x1ccb36[_0x3a6a6d(0xae2)]['id']=_0x1ccb36[_0x3a6a6d(0x44a)]['id'],_0x1ccb36[_0x3a6a6d(0xae2)]['section']=_0x3a6a6d(0x272d),_0x1ccb36[_0x3a6a6d(0x2061)]=_0x1f7428[_0x3a6a6d(0x44a)][_0x3a6a6d(0x1810)](_0x1ccb36[_0x3a6a6d(0xae2)],_0x4853b2)[_0x3a6a6d(0x1d77)]);}function _0x5ccc04(_0x5deb83,_0x3a2438){const _0x824036=_0x459100;_0xe17c03[_0x824036(0xe27)]({'controller':_0x824036(0x1e33),'controllerAs':'vm','templateUrl':_0x4222d8,'parent':angular[_0x824036(0x1853)](_0x341c59[_0x824036(0x1ed9)]),'targetEvent':_0x5deb83,'clickOutsideToClose':!![],'locals':{'zendeskAccount':_0x3a2438,'zendeskAccounts':_0x1ccb36[_0x824036(0x1c64)][_0x824036(0x2214)],'license':_0x1ccb36[_0x824036(0x8a5)],'setting':_0x1ccb36[_0x824036(0x9ca)],'crudPermissions':_0x1ccb36[_0x824036(0x1b1a)]}});}function _0xc515c0(_0x4409dc){const _0x51d8ee=_0x459100;_0x1f7428[_0x51d8ee(0x17a8)]['delete']({'id':_0x4409dc['id']})[_0x51d8ee(0x1d77)][_0x51d8ee(0x1cb0)](function(){const _0x437d2b=_0x51d8ee;_0x39641b()[_0x437d2b(0x152a)](_0x1ccb36[_0x437d2b(0x1c64)]['rows'],{'id':_0x4409dc['id']}),_0x1ccb36[_0x437d2b(0x1c64)]['count']-=0x1,!_0x1ccb36[_0x437d2b(0x1c64)][_0x437d2b(0x2214)][_0x437d2b(0xfd0)]&&_0x1ccb36['getZendeskAccounts'](),_0x3c143c[_0x437d2b(0x829)]({'title':_0x39641b()['startCase'](_0x437d2b(0x91d))+_0x437d2b(0x2663),'msg':_0x4409dc['name']?_0x4409dc[_0x437d2b(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x51d8ee(0x1c4)](function(_0x22c200){const _0x1f3e15=_0x51d8ee;if(_0x22c200[_0x1f3e15(0x25c)]&&_0x22c200[_0x1f3e15(0x25c)]['errors']&&_0x22c200[_0x1f3e15(0x25c)][_0x1f3e15(0x1a7c)][_0x1f3e15(0xfd0)]){_0x1ccb36[_0x1f3e15(0x1a7c)]=_0x22c200[_0x1f3e15(0x25c)][_0x1f3e15(0x1a7c)]||[{'message':_0x22c200[_0x1f3e15(0x147f)](),'type':_0x1f3e15(0x15b8)}];for(let _0x4691e2=0x0;_0x4691e2<_0x22c200[_0x1f3e15(0x25c)][_0x1f3e15(0x1a7c)][_0x1f3e15(0xfd0)];_0x4691e2++){_0x3c143c['error']({'title':_0x22c200[_0x1f3e15(0x25c)]['errors'][_0x4691e2][_0x1f3e15(0x66a)],'msg':_0x22c200[_0x1f3e15(0x25c)][_0x1f3e15(0x1a7c)][_0x4691e2][_0x1f3e15(0x155e)]});}}else _0x3c143c[_0x1f3e15(0x218e)]({'title':_0x22c200[_0x1f3e15(0x291)]?'API:'+_0x22c200[_0x1f3e15(0x291)]+'\x20-\x20'+_0x22c200[_0x1f3e15(0xc22)]:'SYSTEM:DELETEintZendeskAccount','msg':_0x22c200[_0x1f3e15(0x25c)]?JSON['stringify'](_0x22c200[_0x1f3e15(0x25c)][_0x1f3e15(0x155e)]):_0x22c200[_0x1f3e15(0x155e)]||_0x22c200['toString']()});});}function _0x1e7f60(){const _0x13e7a4=_0x459100,_0x1e3483=angular['copy'](_0x1ccb36['selectedZendeskAccounts']);return _0x1ccb36[_0x13e7a4(0x17f3)]=[],_0x1e3483;}function _0x2c6789(_0x38ecf7){const _0x1daf68=_0x459100,_0x34c58b=_0xe17c03[_0x1daf68(0x1551)]()[_0x1daf68(0x1386)](_0x1daf68(0x242b))[_0x1daf68(0x49e)](_0x1daf68(0x204d)+_0x1ccb36['selectedZendeskAccounts'][_0x1daf68(0xfd0)]+_0x1daf68(0x1d6c)+_0x1daf68(0x1b6))['ariaLabel'](_0x1daf68(0x1348))['targetEvent'](_0x38ecf7)['ok']('OK')['cancel']('CANCEL');_0xe17c03[_0x1daf68(0xe27)](_0x34c58b)[_0x1daf68(0x1cb0)](function(){const _0x2f2cbe=_0x1daf68;_0x1ccb36['selectedZendeskAccounts'][_0x2f2cbe(0xf90)](function(_0x2353e5){_0xc515c0(_0x2353e5);}),_0x1ccb36['selectedZendeskAccounts']=[];});}function _0x483d12(){const _0x250599=_0x459100;_0x1ccb36[_0x250599(0x17f3)]=[];}function _0x537ec7(){const _0x326363=_0x459100;_0x1ccb36[_0x326363(0x17f3)]=_0x1ccb36[_0x326363(0x1c64)][_0x326363(0x2214)];}}const _0x4dc5a0=_0x1444e3;;_0x416886[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state',_0x5537c6(0x21c8),'$mdDialog','$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0x1361),_0x5537c6(0x28a9),'api',_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x416886(_0x2f2a9b,_0x32821f,_0x359577,_0x2fb92c,_0x1faab2,_0x16c0b4,_0x238001,_0x4529ec,_0x567e24,_0x32bdc3,_0x2b5827,_0x194f39,_0x29dadb,_0x14fd1d){const _0x555d62=_0x5537c6,_0x502b75=this;_0x502b75['currentUser']=_0x2b5827[_0x555d62(0x21e8)](),_0x502b75[_0x555d62(0x1a7c)]=[],_0x502b75[_0x555d62(0x9ca)]=_0x29dadb,_0x502b75[_0x555d62(0x8a5)]=_0x194f39,_0x502b75['crudPermissions']=_0x14fd1d,_0x502b75[_0x555d62(0xf4c)]={},_0x502b75['passwordPattern']=_0x502b75[_0x555d62(0x9ca)]&&_0x502b75[_0x555d62(0x9ca)][_0x555d62(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x502b75[_0x555d62(0x1386)]=_0x555d62(0x465),_0x502b75[_0x555d62(0x28a9)]=angular[_0x555d62(0x17fe)](_0x567e24),_0x502b75[_0x555d62(0x1361)]=_0x4529ec,_0x502b75[_0x555d62(0x1a98)]=![];!_0x502b75[_0x555d62(0x28a9)]&&(_0x502b75[_0x555d62(0x28a9)]={'host':_0x555d62(0x211b),'zone':'EU','serverUrl':_0x359577['protocol']()+'://'+_0x359577[_0x555d62(0x17d8)]()+(_0x359577['port']()?':'+_0x359577[_0x555d62(0x477)]():'')},_0x502b75[_0x555d62(0x1386)]=_0x555d62(0x1370),_0x502b75[_0x555d62(0x1a98)]=!![]);_0x502b75[_0x555d62(0x21d8)]=_0x45aa48,_0x502b75['saveZohoAccount']=_0x3349a,_0x502b75[_0x555d62(0x289b)]=_0x77936c,_0x502b75[_0x555d62(0x2c4)]=_0x115224,_0x502b75[_0x555d62(0xda0)]=_0xf034ab;function _0x45aa48(){const _0x17dadc=_0x555d62;_0x502b75[_0x17dadc(0x1a7c)]=[],_0x32bdc3['intZohoAccount']['save'](_0x502b75['zohoAccount'])[_0x17dadc(0x1d77)][_0x17dadc(0x1cb0)](function(_0x4bbcc1){const _0x5d1fdb=_0x17dadc;_0x502b75['zohoAccounts'][_0x5d1fdb(0xf63)](_0x4bbcc1[_0x5d1fdb(0x19b2)]()),_0x238001[_0x5d1fdb(0x829)]({'title':_0x5d1fdb(0x2621),'msg':_0x502b75[_0x5d1fdb(0x28a9)][_0x5d1fdb(0x16b6)]?_0x502b75['zohoAccount'][_0x5d1fdb(0x16b6)]+'\x20has\x20been\x20created!':''}),_0xf034ab(_0x4bbcc1);})[_0x17dadc(0x1c4)](function(_0x4a2ded){const _0x247c7a=_0x17dadc;if(_0x4a2ded['data']&&_0x4a2ded[_0x247c7a(0x25c)][_0x247c7a(0x1a7c)]&&_0x4a2ded[_0x247c7a(0x25c)]['errors']['length']){_0x502b75[_0x247c7a(0x1a7c)]=_0x4a2ded['data'][_0x247c7a(0x1a7c)]||[{'message':_0x4a2ded['toString'](),'type':'api.intZohoAccount.save'}];for(let _0x167e04=0x0;_0x167e04<_0x4a2ded[_0x247c7a(0x25c)][_0x247c7a(0x1a7c)][_0x247c7a(0xfd0)];_0x167e04+=0x1){_0x238001['error']({'title':_0x4a2ded[_0x247c7a(0x25c)][_0x247c7a(0x1a7c)][_0x167e04][_0x247c7a(0x66a)],'msg':_0x4a2ded[_0x247c7a(0x25c)][_0x247c7a(0x1a7c)][_0x167e04][_0x247c7a(0x155e)]});}}else _0x238001[_0x247c7a(0x218e)]({'title':_0x4a2ded[_0x247c7a(0x291)]?_0x247c7a(0xeb9)+_0x4a2ded['status']+'\x20-\x20'+_0x4a2ded[_0x247c7a(0xc22)]:_0x247c7a(0x2680),'msg':_0x4a2ded[_0x247c7a(0x25c)]?JSON['stringify'](_0x4a2ded['data']['message']):_0x4a2ded['toString']()});});}function _0x3349a(){const _0x4ea6b0=_0x555d62;_0x502b75[_0x4ea6b0(0x1a7c)]=[],_0x32bdc3[_0x4ea6b0(0xdb4)][_0x4ea6b0(0x687)]({'id':_0x502b75['zohoAccount']['id']},_0x502b75[_0x4ea6b0(0x28a9)])[_0x4ea6b0(0x1d77)][_0x4ea6b0(0x1cb0)](function(_0x1e6c9d){const _0x65797a=_0x4ea6b0,_0x30ad6b=_0x39641b()[_0x65797a(0x13b4)](_0x502b75['zohoAccounts'],{'id':_0x1e6c9d['id']});_0x30ad6b&&_0x39641b()['merge'](_0x30ad6b,_0x39641b()[_0x65797a(0x169b)](_0x1e6c9d[_0x65797a(0x19b2)](),_0x39641b()[_0x65797a(0x1be5)](_0x30ad6b))),_0x238001[_0x65797a(0x829)]({'title':_0x65797a(0x2576),'msg':_0x502b75['zohoAccount'][_0x65797a(0x16b6)]?_0x502b75[_0x65797a(0x28a9)][_0x65797a(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0xf034ab(_0x1e6c9d);})['catch'](function(_0x77f807){const _0x41ca73=_0x4ea6b0;if(_0x77f807['data']&&_0x77f807['data'][_0x41ca73(0x1a7c)]&&_0x77f807[_0x41ca73(0x25c)]['errors'][_0x41ca73(0xfd0)]){_0x502b75[_0x41ca73(0x1a7c)]=_0x77f807[_0x41ca73(0x25c)][_0x41ca73(0x1a7c)]||[{'message':_0x77f807[_0x41ca73(0x147f)](),'type':'api.intZohoAccount.update'}];for(let _0x3b745f=0x0;_0x3b745f<_0x77f807[_0x41ca73(0x25c)]['errors'][_0x41ca73(0xfd0)];_0x3b745f++){_0x238001[_0x41ca73(0x218e)]({'title':_0x77f807[_0x41ca73(0x25c)]['errors'][_0x3b745f]['type'],'msg':_0x77f807[_0x41ca73(0x25c)][_0x41ca73(0x1a7c)][_0x3b745f][_0x41ca73(0x155e)]});}}else _0x238001[_0x41ca73(0x218e)]({'title':_0x77f807[_0x41ca73(0x291)]?_0x41ca73(0xeb9)+_0x77f807[_0x41ca73(0x291)]+_0x41ca73(0x1657)+_0x77f807[_0x41ca73(0xc22)]:_0x41ca73(0x2641),'msg':_0x77f807['data']?JSON[_0x41ca73(0x2701)](_0x77f807['data'][_0x41ca73(0x155e)]):_0x77f807['toString']()});});}function _0x77936c(_0x4035fd){const _0x36f665=_0x555d62;_0x502b75[_0x36f665(0x1a7c)]=[];const _0x5413e0=_0x2fb92c[_0x36f665(0x1551)]()[_0x36f665(0x1386)](_0x36f665(0x1a2e))[_0x36f665(0x862)](_0x36f665(0x1ad2))[_0x36f665(0x15ad)](_0x36f665(0xa11))['ok']('Delete')['cancel']('Cancel')[_0x36f665(0x728)](_0x4035fd);_0x2fb92c[_0x36f665(0xe27)](_0x5413e0)[_0x36f665(0x1cb0)](function(){const _0x1e5556=_0x36f665;_0x32bdc3[_0x1e5556(0xdb4)][_0x1e5556(0x111d)]({'id':_0x502b75[_0x1e5556(0x28a9)]['id']})[_0x1e5556(0x1d77)]['then'](function(){const _0x4dc75b=_0x1e5556;_0x39641b()[_0x4dc75b(0x152a)](_0x502b75[_0x4dc75b(0x1361)],{'id':_0x502b75[_0x4dc75b(0x28a9)]['id']}),_0x238001[_0x4dc75b(0x829)]({'title':_0x4dc75b(0x279c),'msg':(_0x502b75[_0x4dc75b(0x28a9)][_0x4dc75b(0x16b6)]||_0x4dc75b(0x28a9))+_0x4dc75b(0x3f5)}),_0xf034ab(_0x502b75[_0x4dc75b(0x28a9)]);})['catch'](function(_0x5cd49f){const _0x4b9f38=_0x1e5556;if(_0x5cd49f[_0x4b9f38(0x25c)]&&_0x5cd49f['data']['errors']&&_0x5cd49f[_0x4b9f38(0x25c)][_0x4b9f38(0x1a7c)][_0x4b9f38(0xfd0)]){_0x502b75[_0x4b9f38(0x1a7c)]=_0x5cd49f[_0x4b9f38(0x25c)][_0x4b9f38(0x1a7c)]||[{'message':_0x5cd49f[_0x4b9f38(0x147f)](),'type':_0x4b9f38(0x852)}];for(let _0x30c560=0x0;_0x30c560<_0x5cd49f[_0x4b9f38(0x25c)][_0x4b9f38(0x1a7c)][_0x4b9f38(0xfd0)];_0x30c560++){_0x238001[_0x4b9f38(0x218e)]({'title':_0x5cd49f[_0x4b9f38(0x25c)][_0x4b9f38(0x1a7c)][_0x30c560][_0x4b9f38(0x66a)],'msg':_0x5cd49f[_0x4b9f38(0x25c)][_0x4b9f38(0x1a7c)][_0x30c560][_0x4b9f38(0x155e)]});}}else _0x238001[_0x4b9f38(0x218e)]({'title':_0x5cd49f['status']?_0x4b9f38(0xeb9)+_0x5cd49f[_0x4b9f38(0x291)]+_0x4b9f38(0x1657)+_0x5cd49f['statusText']:_0x4b9f38(0x852),'msg':_0x5cd49f['data']?JSON[_0x4b9f38(0x2701)](_0x5cd49f['data']['message']):_0x5cd49f['message']||_0x5cd49f[_0x4b9f38(0x147f)]()});});},function(){});}function _0x115224(_0x24dcbc){return _0x24dcbc===null?undefined:new Date(_0x24dcbc);}function _0xf034ab(_0x3f898f){const _0xfbd663=_0x555d62;_0x2fb92c[_0xfbd663(0x1426)](_0x3f898f);}}const _0xf54cef=_0x416886;;const _0x93a1f9=_0x5074a3['p']+_0x5537c6(0x2514);;const _0x218772=_0x5074a3['p']+_0x5537c6(0x1555);;_0x565c30['$inject']=[_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774)];function _0x565c30(_0x5b351d,_0x2eea08,_0x50cc94,_0xa9087a,_0x30ea45){const _0x2eddd1=_0x5537c6,_0xcc91a1=this;_0xcc91a1[_0x2eddd1(0xe76)]=_0x30ea45[_0x2eddd1(0x21e8)](),_0xcc91a1[_0x2eddd1(0x28a9)]={},_0xcc91a1[_0x2eddd1(0x2942)]={},_0xcc91a1[_0x2eddd1(0xa06)]=[],_0xcc91a1['selectedZohoConfiguration']=-0x1,_0xcc91a1[_0x2eddd1(0x1b1a)],_0xcc91a1[_0x2eddd1(0x1a8e)]=_0x30344b,_0xcc91a1[_0x2eddd1(0x9a8)]=_0xb5e408,_0xcc91a1['createOrEditZohoConfiguration']=_0x32a79e,_0xcc91a1[_0x2eddd1(0x50b)]=_0x2e55a4,_0xcc91a1[_0x2eddd1(0x1da1)]=_0x195a93;function _0x195a93(){const _0x408d02=_0x2eddd1;return _0x50cc94[_0x408d02(0x1a17)][_0x408d02(0x687)]({'id':_0xcc91a1[_0x408d02(0x2942)]['id']},_0xcc91a1[_0x408d02(0x2942)])[_0x408d02(0x1d77)][_0x408d02(0x1cb0)](function(){const _0x3f7e0d=_0x408d02;_0xa9087a[_0x3f7e0d(0x829)]({'title':_0x3f7e0d(0x16d6),'msg':_0x3f7e0d(0x500)});})[_0x408d02(0x1c4)](function(_0x4538fe){const _0x291466=_0x408d02;_0xa9087a[_0x291466(0x218e)]({'title':_0x4538fe['status']?'API:'+_0x4538fe[_0x291466(0x291)]+_0x291466(0x1657)+_0x4538fe[_0x291466(0xc22)]:'SYSTEM:UPDATECONFIGURATIONFIELD','msg':_0x4538fe[_0x291466(0x25c)]?JSON[_0x291466(0x2701)](_0x4538fe[_0x291466(0x25c)]):_0x4538fe[_0x291466(0x147f)]()});});}function _0x30344b(_0x21db6a,_0x4b648d){const _0x5e0c0d=_0x2eddd1;_0xcc91a1[_0x5e0c0d(0x28a9)]=_0x21db6a,_0xcc91a1['crudPermissions']=typeof _0x4b648d!==_0x5e0c0d(0x16b5)?_0x4b648d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x50cc94[_0x5e0c0d(0xdb4)]['getConfigurations']({'id':_0xcc91a1[_0x5e0c0d(0x28a9)]['id'],'sort':_0x5e0c0d(0x282)})[_0x5e0c0d(0x1d77)][_0x5e0c0d(0x1cb0)](function(_0x4b96c8){const _0x451d82=_0x5e0c0d;return _0xcc91a1[_0x451d82(0xa06)]=_0x4b96c8['rows']?_0x4b96c8['rows']:[],_0xcc91a1[_0x451d82(0xa06)][_0x451d82(0xfd0)]&&_0xcc91a1[_0x451d82(0x9a8)](0x0),_0x50cc94[_0x451d82(0x1822)][_0x451d82(0xbf7)]({'nolimit':!![],'sort':'name'})[_0x451d82(0x1d77)];})[_0x5e0c0d(0x1cb0)](function(_0x439d0d){const _0xfa7f7d=_0x5e0c0d;_0xcc91a1[_0xfa7f7d(0x9a9)]=_0x439d0d[_0xfa7f7d(0x2214)]?_0x439d0d[_0xfa7f7d(0x2214)]:[],_0xcc91a1[_0xfa7f7d(0x1a3c)]=_0x39641b()[_0xfa7f7d(0x2631)](_0xcc91a1['variables'],'id');})[_0x5e0c0d(0x1c4)](function(_0x300f6f){const _0x3f3d5b=_0x5e0c0d;_0xa9087a['error']({'title':_0x300f6f[_0x3f3d5b(0x291)]?_0x3f3d5b(0xeb9)+_0x300f6f[_0x3f3d5b(0x291)]+_0x3f3d5b(0x1657)+_0x300f6f[_0x3f3d5b(0xc22)]:_0x3f3d5b(0x1b0f),'msg':_0x300f6f[_0x3f3d5b(0x25c)]?JSON[_0x3f3d5b(0x2701)](_0x300f6f[_0x3f3d5b(0x25c)]):_0x300f6f[_0x3f3d5b(0x147f)]()});});}function _0xb5e408(_0x469464){const _0x38dd32=_0x2eddd1;_0xcc91a1[_0x38dd32(0x2942)]=_0xcc91a1[_0x38dd32(0xa06)][_0x469464],_0xcc91a1['selectedZohoConfiguration']=_0x469464,_0x50cc94[_0x38dd32(0x1a17)][_0x38dd32(0x243a)]({'id':_0xcc91a1['zohoConfiguration']['id']})['$promise'][_0x38dd32(0x1cb0)](function(_0x7536d7){const _0xa8ea12=_0x38dd32;return _0xcc91a1[_0xa8ea12(0x2388)]=_0x7536d7[_0xa8ea12(0x2214)]?_0x7536d7[_0xa8ea12(0x2214)]:[],_0x50cc94['intZohoConfiguration'][_0xa8ea12(0xb6d)]({'id':_0xcc91a1[_0xa8ea12(0x2942)]['id']})[_0xa8ea12(0x1d77)];})['then'](function(_0xfc71e6){const _0x5a288f=_0x38dd32;return _0xcc91a1[_0x5a288f(0x310)]=_0xfc71e6['rows']?_0xfc71e6['rows']:[],_0x50cc94['intZohoConfiguration']['getFields']({'id':_0xcc91a1[_0x5a288f(0x2942)]['id']})['$promise'];})['then'](function(_0x1ba62d){const _0x4ec35c=_0x38dd32;_0xcc91a1[_0x4ec35c(0x355)]=_0x1ba62d[_0x4ec35c(0x2214)]?_0x1ba62d[_0x4ec35c(0x2214)]:[];})['catch'](function(_0x31f9e6){const _0x121ab5=_0x38dd32;_0xa9087a['error']({'title':_0x31f9e6[_0x121ab5(0x291)]?_0x121ab5(0xeb9)+_0x31f9e6[_0x121ab5(0x291)]+_0x121ab5(0x1657)+_0x31f9e6[_0x121ab5(0xc22)]:_0x121ab5(0x1e5f),'msg':_0x31f9e6['data']?JSON[_0x121ab5(0x2701)](_0x31f9e6[_0x121ab5(0x25c)]):_0x31f9e6[_0x121ab5(0x147f)]()});});}function _0x32a79e(_0xd611de,_0x410917){const _0x9f81bc=_0x2eddd1;_0x5b351d['show']({'controller':_0x9f81bc(0x1952),'controllerAs':'vm','templateUrl':_0x93a1f9,'parent':angular['element'](_0x2eea08[_0x9f81bc(0x1ed9)]),'targetEvent':_0xd611de,'clickOutsideToClose':!![],'locals':{'zohoConfiguration':_0x410917,'configurations':_0xcc91a1[_0x9f81bc(0xa06)],'license':null,'setting':null,'crudPermissions':_0xcc91a1[_0x9f81bc(0x1b1a)]}})['finally'](function(){const _0x22cb2c=_0x9f81bc;_0xcc91a1[_0x22cb2c(0x9a8)](0x0);});}function _0x2e55a4(_0x1f394c,_0x2c93e2){const _0x1f832f=_0x2eddd1,_0x91071d=_0x5b351d[_0x1f832f(0x1551)]()[_0x1f832f(0x1386)](_0x1f832f(0x2895))[_0x1f832f(0x49e)](''+(_0x2c93e2['name']||_0x1f832f(0x2942))+_0x1f832f(0x1200)+_0x1f832f(0x1b6))[_0x1f832f(0x15ad)]('delete\x20zohoConfiguration')[_0x1f832f(0x728)](_0x1f394c)['ok']('OK')[_0x1f832f(0x696)](_0x1f832f(0x24ba));_0x5b351d[_0x1f832f(0xe27)](_0x91071d)[_0x1f832f(0x1cb0)](function(){const _0x46f3e9=_0x1f832f;_0x50cc94[_0x46f3e9(0x1a17)]['delete']({'id':_0x2c93e2['id']})[_0x46f3e9(0x1d77)][_0x46f3e9(0x1cb0)](function(){const _0x41b704=_0x46f3e9;_0x39641b()[_0x41b704(0x152a)](_0xcc91a1[_0x41b704(0xa06)],{'id':_0x2c93e2['id']}),_0xa9087a[_0x41b704(0x829)]({'title':_0x41b704(0x10e1),'msg':_0x2c93e2['name']?_0x2c93e2[_0x41b704(0x16b6)]+_0x41b704(0x3f5):''});})[_0x46f3e9(0x1c4)](function(_0x43107f){const _0x11397b=_0x46f3e9;_0xa9087a[_0x11397b(0x218e)]({'title':_0x43107f[_0x11397b(0x291)]?_0x11397b(0xeb9)+_0x43107f[_0x11397b(0x291)]+'\x20-\x20'+_0x43107f[_0x11397b(0xc22)]:_0x11397b(0x543),'msg':_0x43107f['data']?JSON[_0x11397b(0x2701)](_0x43107f[_0x11397b(0x25c)]):_0x43107f['toString']()});})[_0x46f3e9(0x2e0)](function(){const _0x260153=_0x46f3e9;_0xcc91a1[_0x260153(0x9a8)](0x0);});},function(){const _0x436b0c=_0x1f832f;console[_0x436b0c(0x1b4f)]('CANCEL');});}_0xcc91a1[_0x2eddd1(0x4df)]=[],_0xcc91a1[_0x2eddd1(0x1267)]=_0x143b34,_0xcc91a1[_0x2eddd1(0x259e)]=_0x49df86,_0xcc91a1[_0x2eddd1(0xf12)]=_0x38dbc4;function _0x143b34(_0x5cf772,_0xbadfa2){const _0x45d3bb=_0x2eddd1;_0x5b351d['show']({'controller':_0x45d3bb(0x141c),'controllerAs':'vm','templateUrl':_0x218772,'parent':angular[_0x45d3bb(0x1853)](_0x2eea08[_0x45d3bb(0x1ed9)]),'targetEvent':_0x5cf772,'clickOutsideToClose':!![],'locals':{'type':_0x45d3bb(0x1e5d),'item':_0xbadfa2,'items':_0xcc91a1[_0x45d3bb(0x2388)],'configuration':_0xcc91a1[_0x45d3bb(0x2942)],'account':_0xcc91a1['zohoAccount'],'license':null,'setting':null,'crudPermissions':_0xcc91a1[_0x45d3bb(0x1b1a)]}});}function _0x6578f8(_0x65ea76){const _0x30cd17=_0x2eddd1;_0x50cc94[_0x30cd17(0x27a6)][_0x30cd17(0x111d)]({'id':_0x65ea76['id']})['$promise'][_0x30cd17(0x1cb0)](function(){const _0x167df6=_0x30cd17;_0x39641b()[_0x167df6(0x152a)](_0xcc91a1[_0x167df6(0x2388)],{'id':_0x65ea76['id']}),_0xa9087a[_0x167df6(0x829)]({'title':_0x167df6(0x1d11),'msg':_0x167df6(0x145d)});})['catch'](function(_0x306131){const _0x5660f1=_0x30cd17;_0xa9087a['error']({'title':_0x306131[_0x5660f1(0x291)]?'API:'+_0x306131[_0x5660f1(0x291)]+'\x20-\x20'+_0x306131[_0x5660f1(0xc22)]:_0x5660f1(0x13e5),'msg':_0x306131[_0x5660f1(0x25c)]?JSON[_0x5660f1(0x2701)](_0x306131[_0x5660f1(0x25c)]):_0x306131[_0x5660f1(0x147f)]()});});}function _0x49df86(_0x14791d,_0x43ae88){const _0x20e4ff=_0x2eddd1,_0xb8cfb0=_0x5b351d['confirm']()[_0x20e4ff(0x1386)](_0x20e4ff(0xa59))['htmlContent'](_0x20e4ff(0x14ee)+_0x20e4ff(0x1b6))['ariaLabel'](_0x20e4ff(0xbc3))[_0x20e4ff(0x728)](_0x14791d)['ok']('OK')[_0x20e4ff(0x696)](_0x20e4ff(0x24ba));_0x5b351d[_0x20e4ff(0xe27)](_0xb8cfb0)[_0x20e4ff(0x1cb0)](function(){_0x6578f8(_0x43ae88);},function(){const _0xa73eee=_0x20e4ff;console['log'](_0xa73eee(0x24ba));});}function _0x38dbc4(_0x1ae014){const _0x4f3796=_0x2eddd1,_0x18bda8=_0x5b351d[_0x4f3796(0x1551)]()[_0x4f3796(0x1386)](_0x4f3796(0x1f8e))[_0x4f3796(0x49e)](_0x4f3796(0x204d)+_0xcc91a1[_0x4f3796(0x4df)]['length']+_0x4f3796(0x1d6c)+_0x4f3796(0x1b6))['ariaLabel'](_0x4f3796(0x222e))[_0x4f3796(0x728)](_0x1ae014)['ok']('OK')[_0x4f3796(0x696)](_0x4f3796(0x24ba));_0x5b351d[_0x4f3796(0xe27)](_0x18bda8)[_0x4f3796(0x1cb0)](function(){const _0x34b0a3=_0x4f3796;_0xcc91a1[_0x34b0a3(0x4df)][_0x34b0a3(0xf90)](function(_0x592710){_0x6578f8(_0x592710);}),_0xcc91a1[_0x34b0a3(0x4df)]=[];});}_0xcc91a1[_0x2eddd1(0xac6)]=[],_0xcc91a1['createOrEditDescription']=_0x1a7f9a,_0xcc91a1[_0x2eddd1(0xc09)]=_0x4aab7b,_0xcc91a1[_0x2eddd1(0x2931)]=_0x36944b;function _0x1a7f9a(_0x4b62c8,_0x20e8ec){const _0x450da5=_0x2eddd1;_0x5b351d[_0x450da5(0xe27)]({'controller':_0x450da5(0x141c),'controllerAs':'vm','templateUrl':_0x218772,'parent':angular['element'](_0x2eea08[_0x450da5(0x1ed9)]),'targetEvent':_0x4b62c8,'clickOutsideToClose':!![],'locals':{'type':_0x450da5(0x2c1),'item':_0x20e8ec,'items':_0xcc91a1[_0x450da5(0x310)],'configuration':_0xcc91a1[_0x450da5(0x2942)],'account':_0xcc91a1[_0x450da5(0x28a9)],'license':null,'setting':null,'crudPermissions':_0xcc91a1[_0x450da5(0x1b1a)]}});}function _0x570bac(_0x3a6483){const _0x415e6b=_0x2eddd1;_0x50cc94[_0x415e6b(0x27a6)][_0x415e6b(0x111d)]({'id':_0x3a6483['id']})[_0x415e6b(0x1d77)][_0x415e6b(0x1cb0)](function(){const _0x50a924=_0x415e6b;_0x39641b()[_0x50a924(0x152a)](_0xcc91a1[_0x50a924(0x310)],{'id':_0x3a6483['id']}),_0xa9087a[_0x50a924(0x829)]({'title':_0x50a924(0x24c0),'msg':'Description\x20has\x20been\x20deleted!'});})[_0x415e6b(0x1c4)](function(_0x2fa26d){const _0x18597a=_0x415e6b;_0xa9087a[_0x18597a(0x218e)]({'title':_0x2fa26d[_0x18597a(0x291)]?_0x18597a(0xeb9)+_0x2fa26d[_0x18597a(0x291)]+_0x18597a(0x1657)+_0x2fa26d[_0x18597a(0xc22)]:_0x18597a(0x13e5),'msg':_0x2fa26d[_0x18597a(0x25c)]?JSON[_0x18597a(0x2701)](_0x2fa26d[_0x18597a(0x25c)]):_0x2fa26d[_0x18597a(0x147f)]()});});}function _0x4aab7b(_0x2cdae1,_0x280612){const _0x2065c2=_0x2eddd1,_0x43f483=_0x5b351d[_0x2065c2(0x1551)]()[_0x2065c2(0x1386)](_0x2065c2(0x7d2))['htmlContent'](_0x2065c2(0x18b8)+_0x2065c2(0x1b6))[_0x2065c2(0x15ad)](_0x2065c2(0x103d))[_0x2065c2(0x728)](_0x2cdae1)['ok']('OK')[_0x2065c2(0x696)](_0x2065c2(0x24ba));_0x5b351d['show'](_0x43f483)['then'](function(){_0x570bac(_0x280612);},function(){const _0x5de92c=_0x2065c2;console[_0x5de92c(0x1b4f)](_0x5de92c(0x24ba));});}function _0x36944b(_0x4a1181){const _0x2be01c=_0x2eddd1,_0x194f6d=_0x5b351d[_0x2be01c(0x1551)]()[_0x2be01c(0x1386)](_0x2be01c(0x2e7))[_0x2be01c(0x49e)](''+_0xcc91a1['selectedDescriptions'][_0x2be01c(0xfd0)]+'\x20selected'+_0x2be01c(0x1b6))[_0x2be01c(0x15ad)](_0x2be01c(0x1828))[_0x2be01c(0x728)](_0x4a1181)['ok']('OK')[_0x2be01c(0x696)]('CANCEL');_0x5b351d[_0x2be01c(0xe27)](_0x194f6d)[_0x2be01c(0x1cb0)](function(){const _0x49dc72=_0x2be01c;_0xcc91a1[_0x49dc72(0xac6)][_0x49dc72(0xf90)](function(_0x25f815){_0x570bac(_0x25f815);}),_0xcc91a1['selectedDescriptions']=[];});}_0xcc91a1[_0x2eddd1(0x9b2)]=[],_0xcc91a1[_0x2eddd1(0x5e9)]=_0x5bed05,_0xcc91a1['deleteFieldConfirm']=_0x20c1be,_0xcc91a1['deleteSelectedFields']=_0x1b0a9d;function _0x5bed05(_0x2f0ce7,_0x1e21c5){const _0xca762b=_0x2eddd1;_0x5b351d[_0xca762b(0xe27)]({'controller':_0xca762b(0x141c),'controllerAs':'vm','templateUrl':_0x218772,'parent':angular['element'](_0x2eea08['body']),'targetEvent':_0x2f0ce7,'clickOutsideToClose':!![],'locals':{'type':_0xca762b(0x2198),'item':_0x1e21c5,'items':_0xcc91a1[_0xca762b(0x355)],'configuration':_0xcc91a1['zohoConfiguration'],'account':_0xcc91a1[_0xca762b(0x28a9)],'license':null,'setting':null,'crudPermissions':_0xcc91a1[_0xca762b(0x1b1a)]}});}function _0x4293e7(_0x14d639){const _0x19d440=_0x2eddd1;_0x50cc94[_0x19d440(0x27a6)][_0x19d440(0x111d)]({'id':_0x14d639['id']})[_0x19d440(0x1d77)][_0x19d440(0x1cb0)](function(){const _0x3f5a96=_0x19d440;_0x39641b()[_0x3f5a96(0x152a)](_0xcc91a1['fields'],{'id':_0x14d639['id']}),_0xa9087a['success']({'title':_0x3f5a96(0xd6b),'msg':_0x3f5a96(0x2688)});})[_0x19d440(0x1c4)](function(_0x4329cc){const _0x2bad90=_0x19d440;_0xa9087a['error']({'title':_0x4329cc[_0x2bad90(0x291)]?_0x2bad90(0xeb9)+_0x4329cc[_0x2bad90(0x291)]+_0x2bad90(0x1657)+_0x4329cc[_0x2bad90(0xc22)]:_0x2bad90(0x13e5),'msg':_0x4329cc[_0x2bad90(0x25c)]?JSON[_0x2bad90(0x2701)](_0x4329cc['data']):_0x4329cc[_0x2bad90(0x147f)]()});});}function _0x20c1be(_0x22298d,_0xfb77a9){const _0x3d4aca=_0x2eddd1,_0x2fb62d=_0x5b351d[_0x3d4aca(0x1551)]()[_0x3d4aca(0x1386)](_0x3d4aca(0x21a9))['htmlContent'](_0x3d4aca(0xf1d)+_0x3d4aca(0x1b6))[_0x3d4aca(0x15ad)]('delete\x20field')[_0x3d4aca(0x728)](_0x22298d)['ok']('OK')[_0x3d4aca(0x696)](_0x3d4aca(0x24ba));_0x5b351d[_0x3d4aca(0xe27)](_0x2fb62d)[_0x3d4aca(0x1cb0)](function(){_0x4293e7(_0xfb77a9);},function(){const _0xa5a781=_0x3d4aca;console[_0xa5a781(0x1b4f)](_0xa5a781(0x24ba));});}function _0x1b0a9d(_0x236946){const _0x1fcab6=_0x2eddd1,_0x5e1cc3=_0x5b351d[_0x1fcab6(0x1551)]()[_0x1fcab6(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x1fcab6(0x49e)](''+_0xcc91a1['selectedFields'][_0x1fcab6(0xfd0)]+_0x1fcab6(0x1d6c)+_0x1fcab6(0x1b6))[_0x1fcab6(0x15ad)](_0x1fcab6(0x199d))[_0x1fcab6(0x728)](_0x236946)['ok']('OK')[_0x1fcab6(0x696)]('CANCEL');_0x5b351d[_0x1fcab6(0xe27)](_0x5e1cc3)[_0x1fcab6(0x1cb0)](function(){const _0xabbf32=_0x1fcab6;_0xcc91a1[_0xabbf32(0x9b2)][_0xabbf32(0xf90)](function(_0xe5e0fc){_0x4293e7(_0xe5e0fc);}),_0xcc91a1[_0xabbf32(0x9b2)]=[];});}}const _0x55f046=_0x565c30;;_0x2fa96d['$inject']=[_0x5537c6(0x1463),'$state',_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0xa06),_0x5537c6(0x2942),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),'crudPermissions'];function _0x2fa96d(_0x105010,_0x4cf222,_0x460894,_0x387055,_0xe96e68,_0x5394db,_0x2f3fbf,_0xe208da,_0x157d6f,_0x448421,_0xe72fca,_0xd3bae9,_0x1fad76,_0x314905){const _0x16bfcf=_0x5537c6,_0xa1070c=this;_0xa1070c[_0x16bfcf(0xe76)]=_0xe72fca[_0x16bfcf(0x21e8)](),_0xa1070c[_0x16bfcf(0x1a7c)]=[],_0xa1070c[_0x16bfcf(0x9ca)]=_0x1fad76,_0xa1070c[_0x16bfcf(0x8a5)]=_0xd3bae9,_0xa1070c['crudPermissions']=_0x314905,_0xa1070c[_0x16bfcf(0xf4c)]={},_0xa1070c['passwordPattern']=_0xa1070c[_0x16bfcf(0x9ca)]&&_0xa1070c[_0x16bfcf(0x9ca)][_0x16bfcf(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xa1070c[_0x16bfcf(0x1386)]=_0x16bfcf(0x5b6),_0xa1070c[_0x16bfcf(0x2942)]=angular['copy'](_0x157d6f),_0xa1070c[_0x16bfcf(0xa06)]=_0xe208da,_0xa1070c[_0x16bfcf(0xd24)]=![];!_0xa1070c['zohoConfiguration']&&(_0xa1070c['zohoConfiguration']={'channel':'voice','type':_0x16bfcf(0x26c0)},_0xa1070c[_0x16bfcf(0x1386)]='INTEGRATIONS.NEW_ZOHOCONFIGURATION',_0xa1070c['newZohoConfiguration']=!![]);_0xa1070c[_0x16bfcf(0x1579)]=_0x1e07ee,_0xa1070c[_0x16bfcf(0x19db)]=_0x2517b1,_0xa1070c[_0x16bfcf(0x50b)]=_0x5d1e01,_0xa1070c[_0x16bfcf(0x2c4)]=_0x5b237f,_0xa1070c[_0x16bfcf(0xda0)]=_0x44af98;function _0x1e07ee(){const _0x1009bb=_0x16bfcf;_0xa1070c['errors']=[],_0x448421[_0x1009bb(0xdb4)][_0x1009bb(0x1070)]({'id':_0x4cf222['params']['id']},_0xa1070c[_0x1009bb(0x2942)])['$promise'][_0x1009bb(0x1cb0)](function(_0x3c7872){const _0x3ba5ae=_0x1009bb;_0xa1070c[_0x3ba5ae(0xa06)]['unshift'](_0x3c7872[_0x3ba5ae(0x19b2)]()),_0x2f3fbf['success']({'title':_0x3ba5ae(0x28d2),'msg':_0xa1070c[_0x3ba5ae(0x2942)][_0x3ba5ae(0x16b6)]?_0xa1070c[_0x3ba5ae(0x2942)][_0x3ba5ae(0x16b6)]+_0x3ba5ae(0x470):''}),_0x44af98(_0x3c7872);})['catch'](function(_0x5d7e01){const _0x577fbc=_0x1009bb;if(_0x5d7e01[_0x577fbc(0x25c)]&&_0x5d7e01['data'][_0x577fbc(0x1a7c)]&&_0x5d7e01[_0x577fbc(0x25c)][_0x577fbc(0x1a7c)][_0x577fbc(0xfd0)]){_0xa1070c[_0x577fbc(0x1a7c)]=_0x5d7e01[_0x577fbc(0x25c)][_0x577fbc(0x1a7c)]||[{'message':_0x5d7e01['toString'](),'type':_0x577fbc(0x19e5)}];for(let _0x32bedc=0x0;_0x32bedc<_0x5d7e01[_0x577fbc(0x25c)][_0x577fbc(0x1a7c)][_0x577fbc(0xfd0)];_0x32bedc+=0x1){_0x2f3fbf[_0x577fbc(0x218e)]({'title':_0x5d7e01[_0x577fbc(0x25c)]['errors'][_0x32bedc]['type'],'msg':_0x5d7e01[_0x577fbc(0x25c)][_0x577fbc(0x1a7c)][_0x32bedc][_0x577fbc(0x155e)]});}}else _0x2f3fbf[_0x577fbc(0x218e)]({'title':_0x5d7e01[_0x577fbc(0x291)]?_0x577fbc(0xeb9)+_0x5d7e01[_0x577fbc(0x291)]+'\x20-\x20'+_0x5d7e01['statusText']:_0x577fbc(0x19e5),'msg':_0x5d7e01[_0x577fbc(0x25c)]?JSON[_0x577fbc(0x2701)](_0x5d7e01['data']['message']):_0x5d7e01[_0x577fbc(0x147f)]()});});}function _0x2517b1(){const _0x66c166=_0x16bfcf;_0xa1070c['errors']=[],_0x448421['intZohoConfiguration']['update']({'id':_0xa1070c[_0x66c166(0x2942)]['id']},_0xa1070c[_0x66c166(0x2942)])['$promise'][_0x66c166(0x1cb0)](function(_0x3f15b5){const _0x53c577=_0x66c166,_0x22052d=_0x39641b()['find'](_0xa1070c[_0x53c577(0xa06)],{'id':_0x3f15b5['id']});_0x22052d&&_0x39641b()[_0x53c577(0x9c1)](_0x22052d,_0x39641b()[_0x53c577(0x169b)](_0x3f15b5[_0x53c577(0x19b2)](),_0x39641b()[_0x53c577(0x1be5)](_0x22052d))),_0x2f3fbf[_0x53c577(0x829)]({'title':_0x53c577(0xbe4),'msg':_0xa1070c[_0x53c577(0x2942)][_0x53c577(0x16b6)]?_0xa1070c[_0x53c577(0x2942)][_0x53c577(0x16b6)]+_0x53c577(0xedb):''}),_0x44af98(_0x3f15b5);})[_0x66c166(0x1c4)](function(_0x1ef05a){const _0x23ba2e=_0x66c166;if(_0x1ef05a['data']&&_0x1ef05a[_0x23ba2e(0x25c)][_0x23ba2e(0x1a7c)]&&_0x1ef05a[_0x23ba2e(0x25c)][_0x23ba2e(0x1a7c)]['length']){_0xa1070c['errors']=_0x1ef05a[_0x23ba2e(0x25c)][_0x23ba2e(0x1a7c)]||[{'message':_0x1ef05a[_0x23ba2e(0x147f)](),'type':'api.intZohoConfiguration.update'}];for(let _0x3a9480=0x0;_0x3a9480<_0x1ef05a[_0x23ba2e(0x25c)]['errors'][_0x23ba2e(0xfd0)];_0x3a9480++){_0x2f3fbf[_0x23ba2e(0x218e)]({'title':_0x1ef05a['data']['errors'][_0x3a9480][_0x23ba2e(0x66a)],'msg':_0x1ef05a[_0x23ba2e(0x25c)]['errors'][_0x3a9480][_0x23ba2e(0x155e)]});}}else _0x2f3fbf[_0x23ba2e(0x218e)]({'title':_0x1ef05a[_0x23ba2e(0x291)]?_0x23ba2e(0xeb9)+_0x1ef05a[_0x23ba2e(0x291)]+'\x20-\x20'+_0x1ef05a[_0x23ba2e(0xc22)]:_0x23ba2e(0x14dd),'msg':_0x1ef05a[_0x23ba2e(0x25c)]?JSON[_0x23ba2e(0x2701)](_0x1ef05a['data'][_0x23ba2e(0x155e)]):_0x1ef05a[_0x23ba2e(0x147f)]()});});}function _0x5d1e01(_0x25affe){const _0x4690b8=_0x16bfcf;_0xa1070c['errors']=[];const _0x43690a=_0x387055[_0x4690b8(0x1551)]()['title'](_0x4690b8(0x1a2e))[_0x4690b8(0x862)](_0x4690b8(0x504))['ariaLabel']('Delete\x20ZohoConfiguration')['ok'](_0x4690b8(0x2594))[_0x4690b8(0x696)](_0x4690b8(0xde1))[_0x4690b8(0x728)](_0x25affe);_0x387055[_0x4690b8(0xe27)](_0x43690a)[_0x4690b8(0x1cb0)](function(){const _0x5516ff=_0x4690b8;_0x448421[_0x5516ff(0x1a17)][_0x5516ff(0x111d)]({'id':_0xa1070c['zohoConfiguration']['id']})[_0x5516ff(0x1d77)][_0x5516ff(0x1cb0)](function(){const _0x319ae2=_0x5516ff;_0x39641b()[_0x319ae2(0x152a)](_0xa1070c[_0x319ae2(0xa06)],{'id':_0xa1070c[_0x319ae2(0x2942)]['id']}),_0x2f3fbf[_0x319ae2(0x829)]({'title':_0x319ae2(0x2786),'msg':(_0xa1070c['zohoConfiguration'][_0x319ae2(0x16b6)]||'zohoConfiguration')+_0x319ae2(0x3f5)}),_0x44af98(_0xa1070c['zohoConfiguration']);})[_0x5516ff(0x1c4)](function(_0x479ac6){const _0x54dbf9=_0x5516ff;if(_0x479ac6['data']&&_0x479ac6[_0x54dbf9(0x25c)][_0x54dbf9(0x1a7c)]&&_0x479ac6['data'][_0x54dbf9(0x1a7c)][_0x54dbf9(0xfd0)]){_0xa1070c[_0x54dbf9(0x1a7c)]=_0x479ac6[_0x54dbf9(0x25c)][_0x54dbf9(0x1a7c)]||[{'message':_0x479ac6[_0x54dbf9(0x147f)](),'type':'api.intZohoConfiguration.delete'}];for(let _0x224df0=0x0;_0x224df0<_0x479ac6[_0x54dbf9(0x25c)][_0x54dbf9(0x1a7c)][_0x54dbf9(0xfd0)];_0x224df0++){_0x2f3fbf[_0x54dbf9(0x218e)]({'title':_0x479ac6[_0x54dbf9(0x25c)][_0x54dbf9(0x1a7c)][_0x224df0][_0x54dbf9(0x66a)],'msg':_0x479ac6[_0x54dbf9(0x25c)][_0x54dbf9(0x1a7c)][_0x224df0][_0x54dbf9(0x155e)]});}}else _0x2f3fbf[_0x54dbf9(0x218e)]({'title':_0x479ac6[_0x54dbf9(0x291)]?'API:'+_0x479ac6[_0x54dbf9(0x291)]+_0x54dbf9(0x1657)+_0x479ac6[_0x54dbf9(0xc22)]:'api.intZohoConfiguration.delete','msg':_0x479ac6[_0x54dbf9(0x25c)]?JSON['stringify'](_0x479ac6[_0x54dbf9(0x25c)][_0x54dbf9(0x155e)]):_0x479ac6[_0x54dbf9(0x155e)]||_0x479ac6[_0x54dbf9(0x147f)]()});});},function(){});}function _0x5b237f(_0x15376d){return _0x15376d===null?undefined:new Date(_0x15376d);}function _0x44af98(_0x267880){const _0xf8caa3=_0x16bfcf;_0x387055[_0xf8caa3(0x1426)](_0x267880);}}const _0x380aef=_0x2fa96d;;_0x9f378a[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0x2718),_0x5537c6(0x122f),_0x5537c6(0x583),_0x5537c6(0x1539),_0x5537c6(0x66a),'api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x9f378a(_0x26be2e,_0x51ea81,_0x495c4d,_0x3a7918,_0x380a05,_0x1163c7,_0x5c4fc5,_0x456d52,_0x141f3e,_0x4ef736,_0x270ce1,_0x8758cb,_0x2660e5){const _0xcdf58c=_0x5537c6,_0x1da0ae=this;_0x1da0ae[_0xcdf58c(0xe76)]=_0x8758cb[_0xcdf58c(0x21e8)](),_0x1da0ae['errors']=[],_0x1da0ae[_0xcdf58c(0x1386)]='INTEGRATIONS.EDIT_'+_0x39641b()[_0xcdf58c(0x1002)](_0x4ef736),_0x1da0ae['item']=angular[_0xcdf58c(0x17fe)](_0x456d52),_0x1da0ae['items']=_0x5c4fc5,_0x1da0ae[_0xcdf58c(0x66a)]=_0x4ef736,_0x1da0ae['crudPermissions']=_0x2660e5,_0x1da0ae[_0xcdf58c(0x1202)]=![];!_0x1da0ae[_0xcdf58c(0x583)]&&(_0x1da0ae['item']={'type':_0xcdf58c(0x1518)},_0x1da0ae[_0xcdf58c(0x583)][_0x39641b()['capitalize'](_0x4ef736)+'Id']=_0x1163c7['id'],_0x1da0ae[_0xcdf58c(0x1386)]='INTEGRATIONS.NEW_'+_0x39641b()[_0xcdf58c(0x1002)](_0x4ef736),_0x1da0ae[_0xcdf58c(0x1202)]=!![]);_0x1da0ae[_0xcdf58c(0x1286)]=_0x5245e2,_0x1da0ae[_0xcdf58c(0x1a78)]=_0x1cdaf9,_0x1da0ae[_0xcdf58c(0x1177)]=_0x5ae003,_0x1da0ae[_0xcdf58c(0x2f6)]=_0x51c400,_0x1da0ae[_0xcdf58c(0xda0)]=_0x500508,_0x270ce1[_0xcdf58c(0x1822)]['get']({'nolimit':!![]})[_0xcdf58c(0x1d77)][_0xcdf58c(0x1cb0)](function(_0x1b8921){const _0xb51c77=_0xcdf58c;return _0x1da0ae['variables']=_0x1b8921['rows']?_0x1b8921[_0xb51c77(0x2214)]:[],_0x270ce1[_0xb51c77(0x247a)][_0xb51c77(0x1e57)]()['$promise'];})[_0xcdf58c(0x1cb0)](function(_0x89404d){const _0x127b11=_0xcdf58c;return _0x1da0ae[_0x127b11(0xbf1)]=_0x39641b()['difference'](_0x39641b()[_0x127b11(0x1be5)](_0x89404d),[_0x127b11(0x1d77),'$resolved',_0x127b11(0x24cb),'updatedAt',_0x127b11(0x1867)]),_0x1da0ae[_0x127b11(0xbf1)]['push'](_0x127b11(0x2110)),_0x270ce1['voiceDialReport'][_0x127b11(0x1e57)]()['$promise'];})[_0xcdf58c(0x1cb0)](function(_0x36fc7f){const _0x80c724=_0xcdf58c;_0x1da0ae[_0x80c724(0x1639)]=_0x39641b()['difference'](_0x39641b()['keys'](_0x36fc7f),[_0x80c724(0x1d77),'$resolved',_0x80c724(0x24cb),_0x80c724(0x27ba),'sourceid']),_0x1da0ae[_0x80c724(0x1639)][_0x80c724(0x2785)]('recordingURL');})['catch'](function(_0x70c3a1){const _0x11be29=_0xcdf58c;_0x380a05[_0x11be29(0x218e)]({'title':_0x70c3a1[_0x11be29(0x291)]?_0x11be29(0xeb9)+_0x70c3a1[_0x11be29(0x291)]+_0x11be29(0x1657)+_0x70c3a1[_0x11be29(0xc22)]:_0x11be29(0x262e),'msg':_0x70c3a1[_0x11be29(0x25c)]?JSON['stringify'](_0x70c3a1[_0x11be29(0x25c)]):_0x70c3a1['toString']()});}),_0x270ce1[_0xcdf58c(0xdb4)][_0xcdf58c(0xc84)]({'id':_0x141f3e['id'],'ticketType':_0x1163c7[_0xcdf58c(0x161)]?_0x1163c7[_0xcdf58c(0x161)]:undefined})[_0xcdf58c(0x1d77)][_0xcdf58c(0x1cb0)](function(_0x2de483){const _0x23cbf0=_0xcdf58c;_0x1da0ae[_0x23cbf0(0x1a28)]=!![],_0x1da0ae['fields']=_0x2de483[_0x23cbf0(0x2214)]?_0x2de483['rows']:[],_0x1da0ae[_0x23cbf0(0x583)][_0x23cbf0(0x1e50)]&&(_0x1da0ae[_0x23cbf0(0x1d5a)]=_0x39641b()['find'](_0x1da0ae['fields'],{'id':_0x1da0ae[_0x23cbf0(0x583)][_0x23cbf0(0x1e50)]}));})[_0xcdf58c(0x1c4)](function(_0x31e019){const _0x3b0a8a=_0xcdf58c;_0x1da0ae[_0x3b0a8a(0x1a28)]=![],console['error'](_0x31e019);});function _0x5245e2(){const _0x8ac3b7=_0xcdf58c;_0x1da0ae[_0x8ac3b7(0x1a7c)]=[],_0x1da0ae['customField']&&(_0x1da0ae['item']['idField']=_0x1da0ae[_0x8ac3b7(0x1d5a)]['id'],_0x1da0ae[_0x8ac3b7(0x583)][_0x8ac3b7(0xc1f)]=_0x1da0ae[_0x8ac3b7(0x1d5a)][_0x8ac3b7(0x16b6)],_0x1da0ae[_0x8ac3b7(0x583)][_0x8ac3b7(0x1d5a)]=_0x1da0ae[_0x8ac3b7(0x1d5a)]['custom']),_0x270ce1['intZohoField'][_0x8ac3b7(0x1c3f)](_0x1da0ae[_0x8ac3b7(0x583)])[_0x8ac3b7(0x1d77)][_0x8ac3b7(0x1cb0)](function(_0x4826ba){const _0x391768=_0x8ac3b7;_0x1da0ae[_0x391768(0x122f)][_0x391768(0xf63)](_0x4826ba),_0x380a05['success']({'title':_0x39641b()['capitalize'](_0x4ef736)+'\x20properly\x20created','msg':_0x39641b()[_0x391768(0x432)](_0x4ef736)+_0x391768(0x470)}),_0x500508();})['catch'](function(_0x1f1997){const _0x1a05f3=_0x8ac3b7;console[_0x1a05f3(0x218e)](_0x1f1997),_0x1da0ae[_0x1a05f3(0x1a7c)]=_0x1f1997[_0x1a05f3(0x25c)][_0x1a05f3(0x1a7c)]||[{'message':_0x1f1997[_0x1a05f3(0x147f)](),'type':_0x1a05f3(0x1876)}];});}function _0x1cdaf9(){const _0x3c5ea0=_0xcdf58c;_0x1da0ae[_0x3c5ea0(0x1a7c)]=[],_0x1da0ae[_0x3c5ea0(0x1d5a)]&&(_0x1da0ae['item'][_0x3c5ea0(0x1e50)]=_0x1da0ae[_0x3c5ea0(0x1d5a)]['id'],_0x1da0ae[_0x3c5ea0(0x583)][_0x3c5ea0(0xc1f)]=_0x1da0ae[_0x3c5ea0(0x1d5a)][_0x3c5ea0(0x16b6)],_0x1da0ae[_0x3c5ea0(0x583)][_0x3c5ea0(0x1d5a)]=_0x1da0ae['customField']['custom']),_0x270ce1['intZohoField'][_0x3c5ea0(0x687)]({'id':_0x1da0ae[_0x3c5ea0(0x583)]['id']},_0x1da0ae[_0x3c5ea0(0x583)])['$promise'][_0x3c5ea0(0x1cb0)](function(_0x3ca36a){const _0x4608a3=_0x3c5ea0,_0x8bdd08=_0x39641b()['find'](_0x1da0ae[_0x4608a3(0x122f)],{'id':_0x3ca36a['id']});_0x8bdd08&&_0x39641b()[_0x4608a3(0x9c1)](_0x8bdd08,_0x3ca36a),_0x380a05['success']({'title':_0x39641b()['capitalize'](_0x4ef736)+_0x4608a3(0xaf6),'msg':_0x39641b()[_0x4608a3(0x432)](_0x4ef736)+_0x4608a3(0xedb)}),_0x500508();})[_0x3c5ea0(0x1c4)](function(_0x20c15e){const _0x49eaf2=_0x3c5ea0;console[_0x49eaf2(0x218e)](_0x20c15e),_0x1da0ae[_0x49eaf2(0x1a7c)]=_0x20c15e[_0x49eaf2(0x25c)]['errors']||[{'message':_0x20c15e[_0x49eaf2(0x147f)](),'type':'api.intItem.update'}];});}function _0x5ae003(_0x407f55){const _0x1d76b5=_0xcdf58c;_0x1da0ae[_0x1d76b5(0x1a7c)]=[];const _0x49dcb9=_0x3a7918[_0x1d76b5(0x1551)]()['title'](_0x1d76b5(0x1a2e))[_0x1d76b5(0x862)](_0x1d76b5(0xd4c)+_0x4ef736+_0x1d76b5(0x1b6))[_0x1d76b5(0x15ad)](_0x1d76b5(0x1f6a)+_0x39641b()[_0x1d76b5(0x432)](_0x4ef736))['ok']('Delete')[_0x1d76b5(0x696)]('Cancel')[_0x1d76b5(0x728)](_0x407f55);_0x3a7918[_0x1d76b5(0xe27)](_0x49dcb9)[_0x1d76b5(0x1cb0)](function(){const _0x1aa58b=_0x1d76b5;_0x270ce1['intZohoField'][_0x1aa58b(0x111d)]({'id':_0x1da0ae[_0x1aa58b(0x583)]['id']})['$promise'][_0x1aa58b(0x1cb0)](function(){const _0x3d0710=_0x1aa58b;_0x39641b()[_0x3d0710(0x152a)](_0x1da0ae[_0x3d0710(0x122f)],{'id':_0x1da0ae[_0x3d0710(0x583)]['id']}),_0x380a05[_0x3d0710(0x829)]({'title':_0x39641b()[_0x3d0710(0x432)](_0x4ef736)+_0x3d0710(0x1621),'msg':_0x39641b()[_0x3d0710(0x432)](_0x4ef736)+'\x20has\x20been\x20deleted!'}),_0x500508();})[_0x1aa58b(0x1c4)](function(_0x3a9a74){const _0x4c330c=_0x1aa58b;console[_0x4c330c(0x218e)](_0x3a9a74),_0x1da0ae[_0x4c330c(0x1a7c)]=_0x3a9a74[_0x4c330c(0x25c)][_0x4c330c(0x1a7c)]||[{'message':_0x3a9a74['toString'](),'type':_0x4c330c(0x10e6)}];});},function(){});}function _0x51c400(){const _0x36906b=_0xcdf58c;return _0x1da0ae[_0x36906b(0x583)][_0x36906b(0x1e71)]!==undefined?_0x1da0ae[_0x36906b(0x583)][_0x36906b(0x1e71)]:_0x36906b(0x7c8);}function _0x500508(){_0x3a7918['hide']();}}const _0x6b0f87=_0x9f378a;;_0x45a412['$inject']=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1ae),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x142b),'toasty','Auth',_0x5537c6(0x28a9),_0x5537c6(0x2199)];function _0x45a412(_0x461784,_0x8b1ac8,_0x488b9b,_0x5e4c44,_0x237bf9,_0x1bec93,_0xeb7877,_0x5468a0,_0x53df4f,_0x2b4ccf,_0xddb864,_0x4535ad){const _0x4be460=_0x5537c6,_0x1852f2=this;_0x1852f2[_0x4be460(0xe76)]=_0x2b4ccf[_0x4be460(0x21e8)](),_0x1852f2[_0x4be460(0x8a5)]=_0x1bec93,_0x1852f2[_0x4be460(0x9ca)]=_0xeb7877,_0x1852f2[_0x4be460(0x1b0c)]=_0x1852f2[_0x4be460(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1852f2['location']=_0x8b1ac8[_0x4be460(0x2276)]()+_0x4be460(0x138b)+_0x8b1ac8[_0x4be460(0x17d8)](),_0x1852f2[_0x4be460(0x28a9)]=_0xddb864||_0x461784['params'][_0x4be460(0x28a9)]||{},_0x1852f2['userProfileSection']=_0x4535ad&&_0x4535ad[_0x4be460(0x184d)]==0x1?_0x4535ad[_0x4be460(0x2214)][0x0]:null,_0x1852f2[_0x4be460(0x1b1a)]=_0x2b4ccf[_0x4be460(0x14ea)](_0x1852f2[_0x4be460(0x2199)]?_0x1852f2['userProfileSection'][_0x4be460(0x1b1a)]:null),_0x1852f2['hasModulePermissions']={},_0x1852f2['selectedTab']=_0x461784['params'][_0x4be460(0x291e)]||0x0,_0x1852f2[_0x4be460(0x494)]=_0x53df4f[_0x4be460(0x28c7)],_0x1852f2[_0x4be460(0x4ff)]=_0xa09ffd,_0x1852f2[_0x4be460(0x6c8)]=_0x3a031c;function _0xa09ffd(){const _0x19aca0=_0x4be460;_0x461784['go']('app.integrations.zohoAccounts',{},{'reload':_0x19aca0(0x421)});}function _0x3a031c(){const _0x1b2f6b=_0x4be460;_0x5468a0[_0x1b2f6b(0xdb4)]['update']({'id':_0x1852f2[_0x1b2f6b(0x28a9)]['id']},_0x1852f2[_0x1b2f6b(0x28a9)])[_0x1b2f6b(0x1d77)][_0x1b2f6b(0x1cb0)](function(){const _0x4c31e9=_0x1b2f6b;_0x53df4f[_0x4c31e9(0x829)]({'title':'ZohoAccount\x20updated!','msg':_0x1852f2[_0x4c31e9(0x28a9)][_0x4c31e9(0x16b6)]?_0x1852f2[_0x4c31e9(0x28a9)][_0x4c31e9(0x16b6)]+_0x4c31e9(0x1068):''});})[_0x1b2f6b(0x1c4)](function(_0x1f800b){const _0x522129=_0x1b2f6b;_0x53df4f[_0x522129(0x218e)]({'title':_0x1f800b[_0x522129(0x291)]?_0x522129(0xeb9)+_0x1f800b[_0x522129(0x291)]+'\x20-\x20'+_0x1f800b['statusText']:_0x522129(0xbd0),'msg':_0x1f800b[_0x522129(0x25c)]?JSON[_0x522129(0x2701)](_0x1f800b[_0x522129(0x25c)]):_0x1f800b[_0x522129(0x147f)]()});});}}const _0x2d76ab=_0x45a412;;const _0x3a13e3=_0x5074a3['p']+_0x5537c6(0x22de);;_0x3bb4e6[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'$timeout',_0x5537c6(0x1ae),_0x5537c6(0x1361),_0x5537c6(0x44a),'userProfileSection','api',_0x5537c6(0xde8),_0x5537c6(0x9bf),'Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x3bb4e6(_0xcc8bd7,_0x1c73db,_0xf60214,_0xe95fb7,_0x467958,_0x568e57,_0x4cede2,_0x127991,_0x55ee7b,_0x3326d1,_0xfa5ae8,_0x11fdb6,_0x242afb,_0x12c826,_0x11a1df,_0x48ffcb,_0x2c8f25){const _0x3a95ab=_0x5537c6,_0x511f4f=this;_0x511f4f[_0x3a95ab(0x8a5)]=_0x48ffcb,_0x511f4f[_0x3a95ab(0x9ca)]=_0x2c8f25,_0x511f4f[_0x3a95ab(0xe76)]=_0x11a1df['getCurrentUser'](),_0x511f4f[_0x3a95ab(0x1361)]=_0x55ee7b||{'count':0x0,'rows':[]},_0x511f4f['userProfile']=_0x3326d1,_0x511f4f['userProfileSection']=_0xfa5ae8&&_0xfa5ae8[_0x3a95ab(0x184d)]==0x1?_0xfa5ae8[_0x3a95ab(0x2214)][0x0]:null,_0x511f4f[_0x3a95ab(0x1b1a)]=_0x11a1df[_0x3a95ab(0x14ea)](_0x511f4f['userProfileSection']?_0x511f4f[_0x3a95ab(0x2199)][_0x3a95ab(0x1b1a)]:null),_0x511f4f[_0x3a95ab(0xc83)]='zohoAccounts',_0x511f4f[_0x3a95ab(0x1d20)]='',_0x511f4f['listOrderAsc']=null,_0x511f4f[_0x3a95ab(0x284d)]=[],_0x511f4f[_0x3a95ab(0xae2)]={'fields':'createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','limit':0xa,'page':0x1},_0x511f4f['arrayhost']=_0x39641b()[_0x3a95ab(0x2631)]([{'option':_0x3a95ab(0x211b),'value':_0x3a95ab(0xa14)},{'option':'zoho.eu','value':_0x3a95ab(0x187d)}],function(_0x31f178){const _0x8eadbb=_0x3a95ab;return _0x39641b()[_0x8eadbb(0x288f)](_0x31f178[_0x8eadbb(0x327)],new RegExp('\x27','g'),'');}),_0x511f4f['arrayzone']=_0x39641b()['keyBy']([{'option':'US','value':_0x3a95ab(0x14ae)},{'option':'AU','value':_0x3a95ab(0xe38)},{'option':'EU','value':'\x27EU\x27'},{'option':'IN','value':_0x3a95ab(0x1c8f)},{'option':'CN','value':'\x27CN\x27'}],function(_0x176460){const _0x53f92c=_0x3a95ab;return _0x39641b()['replace'](_0x176460[_0x53f92c(0x327)],new RegExp('\x27','g'),'');}),_0x511f4f['editstate']=_0x1722f0,_0x511f4f[_0x3a95ab(0x6b1)]=_0x553089,_0x511f4f[_0x3a95ab(0x27fe)]=_0x49d3f6,_0x511f4f[_0x3a95ab(0x829)]=_0x55270b,_0x511f4f[_0x3a95ab(0xa36)]=_0xfb069a,_0x511f4f['createOrEditZohoAccount']=_0x164efb,_0x511f4f[_0x3a95ab(0x289b)]=_0x1fc459,_0x511f4f[_0x3a95ab(0x53f)]=_0x5ceb82,_0x511f4f[_0x3a95ab(0x1718)]=_0x3e2dd0,_0x511f4f[_0x3a95ab(0x1acb)]=_0x150090,_0x511f4f[_0x3a95ab(0x2254)]=_0x417da9;function _0x1722f0(_0x9986dc){const _0x1053c4=_0x3a95ab;_0xf60214['go'](_0x1053c4(0x2797),{'id':_0x9986dc['id'],'zohoAccount':_0x9986dc,'crudPermissions':_0x511f4f[_0x1053c4(0x1b1a)]});}function _0x553089(_0x564484){const _0x18be89=_0x3a95ab;return _0x11fdb6[_0x18be89(0xdb4)][_0x18be89(0xc84)]({'id':_0x564484['id'],'test':!![]})[_0x18be89(0x1d77)][_0x18be89(0x1cb0)](function(){const _0x5a9bf7=_0x18be89;_0x12c826[_0x5a9bf7(0x829)]({'title':'ZohoAccount\x20properly\x20tested','msg':'Connection\x20succeded!'});})[_0x18be89(0x1c4)](function(_0x4e03a0){const _0x10fcb4=_0x18be89;_0x12c826[_0x10fcb4(0x218e)]({'title':_0x10fcb4(0x2249),'msg':_0x4e03a0[_0x10fcb4(0x25c)]?_0x4e03a0[_0x10fcb4(0x25c)]['message']?_0x4e03a0[_0x10fcb4(0x25c)]['message']:JSON[_0x10fcb4(0x2701)](_0x4e03a0['data']):_0x4e03a0[_0x10fcb4(0x147f)]()});});}function _0x49d3f6(_0x3d63ae,_0x266760){const _0x29e4fb=_0x3a95ab,_0x721bef=_0x467958[_0x29e4fb(0x1551)]()[_0x29e4fb(0x1386)](_0x29e4fb(0x140b)+_0x39641b()['startCase'](_0x29e4fb(0x28a9))+'?')[_0x29e4fb(0x49e)](_0x29e4fb(0x204d)+(_0x3d63ae[_0x29e4fb(0x16b6)]||_0x29e4fb(0x28a9))+_0x29e4fb(0x1200)+'\x20will\x20be\x20deleted.')[_0x29e4fb(0x15ad)](_0x29e4fb(0x5f7))[_0x29e4fb(0x728)](_0x266760)['ok']('OK')[_0x29e4fb(0x696)](_0x29e4fb(0x24ba));_0x467958[_0x29e4fb(0xe27)](_0x721bef)[_0x29e4fb(0x1cb0)](function(){_0x1fc459(_0x3d63ae);},function(){const _0x4023e0=_0x29e4fb;console[_0x4023e0(0x1b4f)](_0x4023e0(0x24ba));});}let _0x5a654a=!![],_0x27620f=0x1;_0xcc8bd7[_0x3a95ab(0x614)](_0x3a95ab(0x957),function(_0xb73540,_0x4ed418){const _0x30f158=_0x3a95ab;_0x5a654a?_0x4cede2(function(){_0x5a654a=![];}):(!_0x4ed418&&(_0x27620f=_0x511f4f[_0x30f158(0xae2)][_0x30f158(0x1c7b)]),_0xb73540!==_0x4ed418&&(_0x511f4f[_0x30f158(0xae2)]['page']=0x1),!_0xb73540&&(_0x511f4f[_0x30f158(0xae2)][_0x30f158(0x1c7b)]=_0x27620f),_0x511f4f[_0x30f158(0xa36)]());});function _0x55270b(_0x4a51ff){const _0x2de088=_0x3a95ab;_0x511f4f[_0x2de088(0x1361)]=_0x4a51ff||{'count':0x0,'rows':[]};}function _0xfb069a(){const _0x1a8bd2=_0x3a95ab;_0x511f4f[_0x1a8bd2(0xae2)][_0x1a8bd2(0x184b)]=(_0x511f4f[_0x1a8bd2(0xae2)]['page']-0x1)*_0x511f4f[_0x1a8bd2(0xae2)][_0x1a8bd2(0x236)],_0x11a1df[_0x1a8bd2(0x22b6)](_0x1a8bd2(0x1c60))?_0x511f4f[_0x1a8bd2(0x2061)]=_0x11fdb6[_0x1a8bd2(0xdb4)][_0x1a8bd2(0xbf7)](_0x511f4f['query'],_0x55270b)['$promise']:(_0x511f4f[_0x1a8bd2(0xae2)]['id']=_0x511f4f[_0x1a8bd2(0x44a)]['id'],_0x511f4f[_0x1a8bd2(0xae2)][_0x1a8bd2(0x1f74)]=_0x1a8bd2(0x282b),_0x511f4f[_0x1a8bd2(0x2061)]=_0x11fdb6[_0x1a8bd2(0x44a)][_0x1a8bd2(0x1810)](_0x511f4f[_0x1a8bd2(0xae2)],_0x55270b)[_0x1a8bd2(0x1d77)]);}function _0x164efb(_0x2747cb,_0x1b5a0c){const _0x56c95f=_0x3a95ab;_0x467958[_0x56c95f(0xe27)]({'controller':'CreateOrEditZohoAccountDialogController','controllerAs':'vm','templateUrl':_0x3a13e3,'parent':angular['element'](_0x568e57[_0x56c95f(0x1ed9)]),'targetEvent':_0x2747cb,'clickOutsideToClose':!![],'locals':{'zohoAccount':_0x1b5a0c,'zohoAccounts':_0x511f4f['zohoAccounts'][_0x56c95f(0x2214)],'license':_0x511f4f[_0x56c95f(0x8a5)],'setting':_0x511f4f['setting'],'crudPermissions':_0x511f4f['crudPermissions']}});}function _0x1fc459(_0x23d4cf){const _0x1214df=_0x3a95ab;_0x11fdb6[_0x1214df(0xdb4)][_0x1214df(0x111d)]({'id':_0x23d4cf['id']})['$promise'][_0x1214df(0x1cb0)](function(){const _0x3c9eae=_0x1214df;_0x39641b()[_0x3c9eae(0x152a)](_0x511f4f[_0x3c9eae(0x1361)][_0x3c9eae(0x2214)],{'id':_0x23d4cf['id']}),_0x511f4f['zohoAccounts'][_0x3c9eae(0x184d)]-=0x1,!_0x511f4f[_0x3c9eae(0x1361)][_0x3c9eae(0x2214)][_0x3c9eae(0xfd0)]&&_0x511f4f[_0x3c9eae(0xa36)](),_0x12c826[_0x3c9eae(0x829)]({'title':_0x39641b()[_0x3c9eae(0xa75)](_0x3c9eae(0x10f3))+'\x20deleted!','msg':_0x23d4cf[_0x3c9eae(0x16b6)]?_0x23d4cf[_0x3c9eae(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x1214df(0x1c4)](function(_0x136036){const _0x2329c0=_0x1214df;if(_0x136036['data']&&_0x136036['data'][_0x2329c0(0x1a7c)]&&_0x136036[_0x2329c0(0x25c)]['errors'][_0x2329c0(0xfd0)]){_0x511f4f['errors']=_0x136036[_0x2329c0(0x25c)][_0x2329c0(0x1a7c)]||[{'message':_0x136036[_0x2329c0(0x147f)](),'type':_0x2329c0(0x234)}];for(let _0x43348b=0x0;_0x43348b<_0x136036[_0x2329c0(0x25c)]['errors'][_0x2329c0(0xfd0)];_0x43348b++){_0x12c826['error']({'title':_0x136036[_0x2329c0(0x25c)][_0x2329c0(0x1a7c)][_0x43348b][_0x2329c0(0x66a)],'msg':_0x136036['data']['errors'][_0x43348b]['message']});}}else _0x12c826[_0x2329c0(0x218e)]({'title':_0x136036[_0x2329c0(0x291)]?_0x2329c0(0xeb9)+_0x136036[_0x2329c0(0x291)]+_0x2329c0(0x1657)+_0x136036[_0x2329c0(0xc22)]:_0x2329c0(0x234),'msg':_0x136036[_0x2329c0(0x25c)]?JSON[_0x2329c0(0x2701)](_0x136036[_0x2329c0(0x25c)][_0x2329c0(0x155e)]):_0x136036[_0x2329c0(0x155e)]||_0x136036[_0x2329c0(0x147f)]()});});}function _0x5ceb82(){const _0x1e30f7=_0x3a95ab,_0x439469=angular['copy'](_0x511f4f[_0x1e30f7(0x284d)]);return _0x511f4f['selectedZohoAccounts']=[],_0x439469;}function _0x3e2dd0(_0x39433f){const _0x590579=_0x3a95ab,_0x4002af=_0x467958[_0x590579(0x1551)]()[_0x590579(0x1386)](_0x590579(0x196c))[_0x590579(0x49e)](_0x590579(0x204d)+_0x511f4f['selectedZohoAccounts'][_0x590579(0xfd0)]+_0x590579(0x1d6c)+_0x590579(0x1b6))[_0x590579(0x15ad)](_0x590579(0x14a4))[_0x590579(0x728)](_0x39433f)['ok']('OK')['cancel'](_0x590579(0x24ba));_0x467958[_0x590579(0xe27)](_0x4002af)['then'](function(){const _0x893808=_0x590579;_0x511f4f['selectedZohoAccounts']['forEach'](function(_0x477cea){_0x1fc459(_0x477cea);}),_0x511f4f[_0x893808(0x284d)]=[];});}function _0x150090(){const _0x38b16f=_0x3a95ab;_0x511f4f[_0x38b16f(0x284d)]=[];}function _0x417da9(){const _0x52f079=_0x3a95ab;_0x511f4f[_0x52f079(0x284d)]=_0x511f4f['zohoAccounts']['rows'];}}const _0x3ebd4d=_0x3bb4e6;;_0x199210['$inject']=[_0x5537c6(0xbd6),'$translatePartialLoaderProvider'];function _0x199210(_0x3187f1,_0x38f5f9){const _0x3e9942=_0x5537c6;_0x3187f1[_0x3e9942(0x27e0)]('app.integrations',{'abstract':!![],'url':_0x3e9942(0x384)})[_0x3e9942(0x27e0)](_0x3e9942(0x1eab),{'url':_0x3e9942(0xb04),'views':{'content@app':{'templateUrl':_0x3de60c,'controller':_0x3e9942(0x1b8e)}},'resolve':{'zendeskAccounts':['apiResolver',_0x3e9942(0x1774),function(_0x26c80e,_0xdf06dc){const _0x3fe8c2=_0x3e9942;return _0xdf06dc['hasRole']('admin')?_0x26c80e[_0x3fe8c2(0x19a3)](_0x3fe8c2(0x20db),{'fields':_0x3fe8c2(0x51c),'limit':0xa,'offset':0x0}):_0x26c80e[_0x3fe8c2(0x19a3)]('userProfile@getResources',{'id':_0xdf06dc['getCurrentUser']()['userProfileId'],'section':_0x3fe8c2(0x272d),'fields':_0x3fe8c2(0x51c),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x3e9942(0x1774),function(_0x62b1e2,_0x2d7e3e){const _0x44e6fa=_0x3e9942;return _0x2d7e3e[_0x44e6fa(0x22b6)](_0x44e6fa(0x1c60))?null:_0x62b1e2[_0x44e6fa(0x19a3)](_0x44e6fa(0x9ae),{'fields':_0x44e6fa(0x279),'id':_0x2d7e3e[_0x44e6fa(0x21e8)]()[_0x44e6fa(0x13c1)]});}],'userProfileSection':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x1e640a,_0x526201){const _0x1c6858=_0x3e9942;return _0x526201['hasRole'](_0x1c6858(0x1c60))?null:_0x1e640a[_0x1c6858(0x19a3)](_0x1c6858(0x2182),{'fields':_0x1c6858(0x1f5f),'userProfileId':_0x526201['getCurrentUser']()[_0x1c6858(0x13c1)],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':_0x3e9942(0x1907)})[_0x3e9942(0x27e0)]('app.integrations.zendeskAccounts.edit',{'url':_0x3e9942(0x1bf2),'params':{'zendeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4b7422,'controller':_0x3e9942(0x26fe)}},'resolve':{'zendeskAccount':[_0x3e9942(0x1e0b),'$stateParams',function(_0x31c13a,_0x287de5){const _0x5ea68c=_0x3e9942;return _0x31c13a[_0x5ea68c(0x19a3)]('intZendeskAccount@get',{'fields':_0x5ea68c(0x51c),'id':_0x287de5['id']});}],'userProfileSection':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x1c7018,_0x3fa7e6){const _0x1346a1=_0x3e9942;return _0x1c7018[_0x1346a1(0x19a3)](_0x1346a1(0x2182),{'fields':_0x1346a1(0x1f5f),'userProfileId':_0x3fa7e6[_0x1346a1(0x21e8)]()[_0x1346a1(0x13c1)],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':_0x3e9942(0x1907)})[_0x3e9942(0x27e0)](_0x3e9942(0x25f7),{'url':'/salesforceAccounts','views':{'content@app':{'templateUrl':_0x4669ec,'controller':'SalesforceAccountsController\x20as\x20vm'}},'resolve':{'salesforceAccounts':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x14db6d,_0x391dfd){const _0x24a9d4=_0x3e9942;return _0x391dfd[_0x24a9d4(0x22b6)](_0x24a9d4(0x1c60))?_0x14db6d['resolve'](_0x24a9d4(0x134f),{'fields':_0x24a9d4(0x1403),'limit':0xa,'offset':0x0}):_0x14db6d['resolve']('userProfile@getResources',{'id':_0x391dfd[_0x24a9d4(0x21e8)]()[_0x24a9d4(0x13c1)],'section':_0x24a9d4(0x9a5),'fields':_0x24a9d4(0x1403),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x3eaca6,_0x55e46b){const _0x13f412=_0x3e9942;return _0x55e46b[_0x13f412(0x22b6)](_0x13f412(0x1c60))?null:_0x3eaca6[_0x13f412(0x19a3)](_0x13f412(0x9ae),{'fields':'id,name,crudPermissions','id':_0x55e46b[_0x13f412(0x21e8)]()[_0x13f412(0x13c1)]});}],'userProfileSection':['apiResolver',_0x3e9942(0x1774),function(_0xdf8180,_0x3f2f1c){const _0x4c29f1=_0x3e9942;return _0x3f2f1c[_0x4c29f1(0x22b6)](_0x4c29f1(0x1c60))?null:_0xdf8180['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3f2f1c['getCurrentUser']()[_0x4c29f1(0x13c1)],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':_0x3e9942(0x1907)})[_0x3e9942(0x27e0)](_0x3e9942(0x248c),{'url':_0x3e9942(0x1bf2),'params':{'salesforceAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x409691,'controller':_0x3e9942(0x117e)}},'resolve':{'salesforceAccount':[_0x3e9942(0x1e0b),_0x3e9942(0x225c),function(_0x14e525,_0x553da4){const _0x199095=_0x3e9942;return _0x14e525['resolve'](_0x199095(0x134f),{'fields':_0x199095(0x1403),'id':_0x553da4['id']});}],'userProfileSection':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x19e595,_0x23ac7a){const _0x5b0938=_0x3e9942;return _0x19e595[_0x5b0938(0x19a3)](_0x5b0938(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x23ac7a[_0x5b0938(0x21e8)]()[_0x5b0938(0x13c1)],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':_0x3e9942(0x1907)})[_0x3e9942(0x27e0)](_0x3e9942(0x905),{'url':_0x3e9942(0x1e53),'views':{'content@app':{'templateUrl':_0x39215b,'controller':'FreshdeskAccountsController\x20as\x20vm'}},'resolve':{'freshdeskAccounts':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x279e9d,_0x725d35){const _0x50e6a0=_0x3e9942;return _0x725d35[_0x50e6a0(0x22b6)]('admin')?_0x279e9d[_0x50e6a0(0x19a3)](_0x50e6a0(0xdbc),{'fields':_0x50e6a0(0x4d0),'limit':0xa,'offset':0x0}):_0x279e9d[_0x50e6a0(0x19a3)](_0x50e6a0(0x12da),{'id':_0x725d35['getCurrentUser']()['userProfileId'],'section':_0x50e6a0(0x7f7),'fields':_0x50e6a0(0x4d0),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x2db6fa,_0x4b6a94){const _0x5b16e6=_0x3e9942;return _0x4b6a94[_0x5b16e6(0x22b6)](_0x5b16e6(0x1c60))?null:_0x2db6fa[_0x5b16e6(0x19a3)](_0x5b16e6(0x9ae),{'fields':_0x5b16e6(0x279),'id':_0x4b6a94[_0x5b16e6(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x567fc9,_0x1674dc){const _0x43bff5=_0x3e9942;return _0x1674dc[_0x43bff5(0x22b6)](_0x43bff5(0x1c60))?null:_0x567fc9[_0x43bff5(0x19a3)]('userProfileSection@get',{'fields':_0x43bff5(0x1f5f),'userProfileId':_0x1674dc[_0x43bff5(0x21e8)]()[_0x43bff5(0x13c1)],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':_0x3e9942(0x1907)})[_0x3e9942(0x27e0)]('app.integrations.freshdeskAccounts.edit',{'url':_0x3e9942(0x1bf2),'params':{'freshdeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5a6eed,'controller':_0x3e9942(0x2140)}},'resolve':{'freshdeskAccount':[_0x3e9942(0x1e0b),'$stateParams',function(_0x11b868,_0x59f18a){const _0x11c2ec=_0x3e9942;return _0x11b868[_0x11c2ec(0x19a3)]('intFreshdeskAccount@get',{'fields':_0x11c2ec(0x4d0),'id':_0x59f18a['id']});}],'userProfileSection':[_0x3e9942(0x1e0b),'Auth',function(_0x2e7436,_0xddc028){const _0x402653=_0x3e9942;return _0x2e7436[_0x402653(0x19a3)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xddc028[_0x402653(0x21e8)]()[_0x402653(0x13c1)],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':_0x3e9942(0x1907)})[_0x3e9942(0x27e0)](_0x3e9942(0x185e),{'url':_0x3e9942(0x15c0),'views':{'content@app':{'templateUrl':_0xdd640e,'controller':_0x3e9942(0x1a9d)}},'resolve':{'sugarcrmAccounts':['apiResolver',_0x3e9942(0x1774),function(_0x35553e,_0x14df41){const _0x192c8c=_0x3e9942;return _0x14df41[_0x192c8c(0x22b6)](_0x192c8c(0x1c60))?_0x35553e[_0x192c8c(0x19a3)]('intSugarcrmAccount@get',{'fields':'createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','limit':0xa,'offset':0x0}):_0x35553e[_0x192c8c(0x19a3)](_0x192c8c(0x12da),{'id':_0x14df41[_0x192c8c(0x21e8)]()[_0x192c8c(0x13c1)],'section':_0x192c8c(0x1aca),'fields':_0x192c8c(0x203d),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x2749c5,_0xf1f483){const _0x28eab8=_0x3e9942;return _0xf1f483[_0x28eab8(0x22b6)](_0x28eab8(0x1c60))?null:_0x2749c5[_0x28eab8(0x19a3)](_0x28eab8(0x9ae),{'fields':_0x28eab8(0x279),'id':_0xf1f483['getCurrentUser']()[_0x28eab8(0x13c1)]});}],'userProfileSection':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x47f8f5,_0xd4e26e){const _0x50d7b2=_0x3e9942;return _0xd4e26e['hasRole'](_0x50d7b2(0x1c60))?null:_0x47f8f5[_0x50d7b2(0x19a3)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xd4e26e['getCurrentUser']()[_0x50d7b2(0x13c1)],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':_0x3e9942(0x1907)})['state'](_0x3e9942(0x1ea7),{'url':_0x3e9942(0x1bf2),'params':{'sugarcrmAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x33a88a,'controller':_0x3e9942(0x12f6)}},'resolve':{'sugarcrmAccount':[_0x3e9942(0x1e0b),_0x3e9942(0x225c),function(_0x31d092,_0x18959a){const _0x396240=_0x3e9942;return _0x31d092[_0x396240(0x19a3)](_0x396240(0x21ae),{'fields':'createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','id':_0x18959a['id']});}],'userProfileSection':['apiResolver',_0x3e9942(0x1774),function(_0x328f98,_0x5bc997){const _0x22fd26=_0x3e9942;return _0x328f98[_0x22fd26(0x19a3)](_0x22fd26(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5bc997['getCurrentUser']()[_0x22fd26(0x13c1)],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':_0x3e9942(0x1907)})[_0x3e9942(0x27e0)](_0x3e9942(0x857),{'url':'/deskAccounts','views':{'content@app':{'templateUrl':_0x3cb839,'controller':_0x3e9942(0x177e)}},'resolve':{'deskAccounts':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x3d9c09,_0x572f93){const _0x269f89=_0x3e9942;return _0x572f93[_0x269f89(0x22b6)](_0x269f89(0x1c60))?_0x3d9c09['resolve'](_0x269f89(0x21bb),{'fields':_0x269f89(0x226f),'limit':0xa,'offset':0x0}):_0x3d9c09['resolve']('userProfile@getResources',{'id':_0x572f93[_0x269f89(0x21e8)]()[_0x269f89(0x13c1)],'section':_0x269f89(0x937),'fields':'createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x385944,_0x252432){const _0xad4fe1=_0x3e9942;return _0x252432[_0xad4fe1(0x22b6)](_0xad4fe1(0x1c60))?null:_0x385944['resolve'](_0xad4fe1(0x9ae),{'fields':_0xad4fe1(0x279),'id':_0x252432[_0xad4fe1(0x21e8)]()[_0xad4fe1(0x13c1)]});}],'userProfileSection':['apiResolver',_0x3e9942(0x1774),function(_0x2fa699,_0x3d30f3){const _0x5c8961=_0x3e9942;return _0x3d30f3[_0x5c8961(0x22b6)](_0x5c8961(0x1c60))?null:_0x2fa699[_0x5c8961(0x19a3)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3d30f3[_0x5c8961(0x21e8)]()['userProfileId'],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':_0x3e9942(0x1907)})['state'](_0x3e9942(0x2157),{'url':'/:id?tab','params':{'deskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2567d5,'controller':'DeskAccountController\x20as\x20vm'}},'resolve':{'deskAccount':[_0x3e9942(0x1e0b),_0x3e9942(0x225c),function(_0x21f5ea,_0x27937f){const _0x8ed153=_0x3e9942;return _0x21f5ea[_0x8ed153(0x19a3)](_0x8ed153(0x21bb),{'fields':_0x8ed153(0x226f),'id':_0x27937f['id']});}],'userProfileSection':['apiResolver',_0x3e9942(0x1774),function(_0x312226,_0xb64725){const _0x5a7bab=_0x3e9942;return _0x312226['resolve'](_0x5a7bab(0x2182),{'fields':_0x5a7bab(0x1f5f),'userProfileId':_0xb64725[_0x5a7bab(0x21e8)]()[_0x5a7bab(0x13c1)],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':_0x3e9942(0x1907)})[_0x3e9942(0x27e0)](_0x3e9942(0x421),{'url':_0x3e9942(0x3a8),'views':{'content@app':{'templateUrl':_0xb1f74b,'controller':_0x3e9942(0x28e5)}},'resolve':{'zohoAccounts':['apiResolver','Auth',function(_0x45b01f,_0x573f88){const _0x530ce0=_0x3e9942;return _0x573f88['hasRole'](_0x530ce0(0x1c60))?_0x45b01f[_0x530ce0(0x19a3)](_0x530ce0(0x29cb),{'fields':'createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','limit':0xa,'offset':0x0}):_0x45b01f[_0x530ce0(0x19a3)]('userProfile@getResources',{'id':_0x573f88[_0x530ce0(0x21e8)]()[_0x530ce0(0x13c1)],'section':_0x530ce0(0x282b),'fields':_0x530ce0(0x1107),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x4d0c4d,_0x29e324){const _0x6098a9=_0x3e9942;return _0x29e324[_0x6098a9(0x22b6)](_0x6098a9(0x1c60))?null:_0x4d0c4d[_0x6098a9(0x19a3)](_0x6098a9(0x9ae),{'fields':'id,name,crudPermissions','id':_0x29e324['getCurrentUser']()[_0x6098a9(0x13c1)]});}],'userProfileSection':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0xd8a481,_0x208bc5){const _0x222940=_0x3e9942;return _0x208bc5[_0x222940(0x22b6)](_0x222940(0x1c60))?null:_0xd8a481[_0x222940(0x19a3)](_0x222940(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x208bc5[_0x222940(0x21e8)]()[_0x222940(0x13c1)],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0x3e9942(0x1907)})[_0x3e9942(0x27e0)]('app.integrations.zohoAccounts.edit',{'url':_0x3e9942(0x1bf2),'params':{'zohoAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x27b766,'controller':_0x3e9942(0x918)}},'resolve':{'zohoAccount':[_0x3e9942(0x1e0b),_0x3e9942(0x225c),function(_0x139646,_0x3a9123){const _0x2757a6=_0x3e9942;return _0x139646[_0x2757a6(0x19a3)](_0x2757a6(0x29cb),{'fields':_0x2757a6(0x1107),'id':_0x3a9123['id']});}],'userProfileSection':[_0x3e9942(0x1e0b),'Auth',function(_0x2f0a54,_0x41a18a){const _0x3e79d0=_0x3e9942;return _0x2f0a54[_0x3e79d0(0x19a3)](_0x3e79d0(0x2182),{'fields':_0x3e79d0(0x1f5f),'userProfileId':_0x41a18a[_0x3e79d0(0x21e8)]()[_0x3e79d0(0x13c1)],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':'integrations'})[_0x3e9942(0x27e0)](_0x3e9942(0x2339),{'url':_0x3e9942(0x2732),'views':{'content@app':{'templateUrl':_0x439e26,'controller':_0x3e9942(0x44b)}},'resolve':{'vtigerAccounts':['apiResolver',_0x3e9942(0x1774),function(_0x5b6fe7,_0x1335ec){const _0x51df2f=_0x3e9942;return _0x1335ec[_0x51df2f(0x22b6)](_0x51df2f(0x1c60))?_0x5b6fe7[_0x51df2f(0x19a3)](_0x51df2f(0x2990),{'fields':'createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl','limit':0xa,'offset':0x0}):_0x5b6fe7[_0x51df2f(0x19a3)]('userProfile@getResources',{'id':_0x1335ec['getCurrentUser']()[_0x51df2f(0x13c1)],'section':_0x51df2f(0x1bcd),'fields':_0x51df2f(0x2824),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x2f3d78,_0x30f108){const _0x37440b=_0x3e9942;return _0x30f108[_0x37440b(0x22b6)](_0x37440b(0x1c60))?null:_0x2f3d78['resolve'](_0x37440b(0x9ae),{'fields':_0x37440b(0x279),'id':_0x30f108[_0x37440b(0x21e8)]()[_0x37440b(0x13c1)]});}],'userProfileSection':[_0x3e9942(0x1e0b),'Auth',function(_0x3df6eb,_0x3ff0ac){const _0x48aefb=_0x3e9942;return _0x3ff0ac['hasRole'](_0x48aefb(0x1c60))?null:_0x3df6eb[_0x48aefb(0x19a3)](_0x48aefb(0x2182),{'fields':_0x48aefb(0x1f5f),'userProfileId':_0x3ff0ac[_0x48aefb(0x21e8)]()[_0x48aefb(0x13c1)],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':_0x3e9942(0x1907)})[_0x3e9942(0x27e0)]('app.integrations.vtigerAccounts.edit',{'url':_0x3e9942(0x1bf2),'params':{'vtigerAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x56b8a2,'controller':'VtigerAccountController\x20as\x20vm'}},'resolve':{'vtigerAccount':['apiResolver',_0x3e9942(0x225c),function(_0x267acb,_0x2be1be){const _0x2dbd25=_0x3e9942;return _0x267acb[_0x2dbd25(0x19a3)](_0x2dbd25(0x2990),{'fields':'createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl','id':_0x2be1be['id']});}],'userProfileSection':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x2f8b11,_0x56c235){const _0x283242=_0x3e9942;return _0x2f8b11['resolve'](_0x283242(0x2182),{'fields':_0x283242(0x1f5f),'userProfileId':_0x56c235['getCurrentUser']()[_0x283242(0x13c1)],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':_0x3e9942(0x1907)})[_0x3e9942(0x27e0)](_0x3e9942(0x1f3e),{'url':_0x3e9942(0x27ca),'views':{'content@app':{'templateUrl':_0x2a63a7,'controller':_0x3e9942(0x1678)}},'resolve':{'dynamics365Accounts':['apiResolver',_0x3e9942(0x1774),function(_0x39183f,_0xbd4c){const _0x588082=_0x3e9942;return _0xbd4c['hasRole'](_0x588082(0x1c60))?_0x39183f[_0x588082(0x19a3)]('intDynamics365Account@get',{'fields':'createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','limit':0xa,'offset':0x0}):_0x39183f[_0x588082(0x19a3)](_0x588082(0x12da),{'id':_0xbd4c[_0x588082(0x21e8)]()[_0x588082(0x13c1)],'section':'Dynamics365Accounts','fields':'createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x3e9942(0x1e0b),'Auth',function(_0x5f4f77,_0x4a5b97){const _0x5795c4=_0x3e9942;return _0x4a5b97['hasRole'](_0x5795c4(0x1c60))?null:_0x5f4f77[_0x5795c4(0x19a3)](_0x5795c4(0x9ae),{'fields':_0x5795c4(0x279),'id':_0x4a5b97[_0x5795c4(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x2d9321,_0x292703){const _0x50099a=_0x3e9942;return _0x292703[_0x50099a(0x22b6)]('admin')?null:_0x2d9321[_0x50099a(0x19a3)](_0x50099a(0x2182),{'fields':_0x50099a(0x1f5f),'userProfileId':_0x292703[_0x50099a(0x21e8)]()['userProfileId'],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':_0x3e9942(0x1907)})['state'](_0x3e9942(0x244c),{'url':'/:id?tab','params':{'dynamics365Account':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x57c379,'controller':_0x3e9942(0x26b)}},'resolve':{'dynamics365Account':[_0x3e9942(0x1e0b),'$stateParams',function(_0x27bdf7,_0x32cbdd){const _0x48ab53=_0x3e9942;return _0x27bdf7[_0x48ab53(0x19a3)](_0x48ab53(0x2538),{'fields':'createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','id':_0x32cbdd['id']});}],'userProfileSection':[_0x3e9942(0x1e0b),'Auth',function(_0x57a118,_0x60e9c4){const _0x559e26=_0x3e9942;return _0x57a118[_0x559e26(0x19a3)](_0x559e26(0x2182),{'fields':_0x559e26(0x1f5f),'userProfileId':_0x60e9c4[_0x559e26(0x21e8)]()[_0x559e26(0x13c1)],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':_0x3e9942(0x1907)})['state'](_0x3e9942(0xc85),{'url':_0x3e9942(0x21c9),'views':{'content@app':{'templateUrl':_0x1f4627,'controller':_0x3e9942(0x2229)}},'resolve':{'servicenowAccounts':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x4276c0,_0x3df201){const _0x571e04=_0x3e9942;return _0x3df201[_0x571e04(0x22b6)](_0x571e04(0x1c60))?_0x4276c0['resolve']('intServicenowAccount@get',{'fields':_0x571e04(0x1672),'limit':0xa,'offset':0x0}):_0x4276c0[_0x571e04(0x19a3)](_0x571e04(0x12da),{'id':_0x3df201[_0x571e04(0x21e8)]()[_0x571e04(0x13c1)],'section':_0x571e04(0x340),'fields':'createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x3e9942(0x1e0b),'Auth',function(_0x288cb9,_0x2bf40d){const _0xbaf77c=_0x3e9942;return _0x2bf40d[_0xbaf77c(0x22b6)](_0xbaf77c(0x1c60))?null:_0x288cb9[_0xbaf77c(0x19a3)](_0xbaf77c(0x9ae),{'fields':_0xbaf77c(0x279),'id':_0x2bf40d[_0xbaf77c(0x21e8)]()[_0xbaf77c(0x13c1)]});}],'userProfileSection':[_0x3e9942(0x1e0b),'Auth',function(_0x535d60,_0x39a6df){const _0x47d84c=_0x3e9942;return _0x39a6df[_0x47d84c(0x22b6)](_0x47d84c(0x1c60))?null:_0x535d60[_0x47d84c(0x19a3)](_0x47d84c(0x2182),{'fields':_0x47d84c(0x1f5f),'userProfileId':_0x39a6df[_0x47d84c(0x21e8)]()[_0x47d84c(0x13c1)],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':_0x3e9942(0x1907)})[_0x3e9942(0x27e0)]('app.integrations.servicenowAccounts.edit',{'url':_0x3e9942(0x1bf2),'params':{'servicenowAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xf47517,'controller':'ServicenowAccountController\x20as\x20vm'}},'resolve':{'servicenowAccount':[_0x3e9942(0x1e0b),_0x3e9942(0x225c),function(_0x1b90fd,_0x334b0d){const _0x819e7=_0x3e9942;return _0x1b90fd['resolve'](_0x819e7(0x233e),{'fields':_0x819e7(0x1672),'id':_0x334b0d['id']});}],'userProfileSection':['apiResolver',_0x3e9942(0x1774),function(_0x199551,_0x1202ae){const _0x4dd3f3=_0x3e9942;return _0x199551[_0x4dd3f3(0x19a3)](_0x4dd3f3(0x2182),{'fields':_0x4dd3f3(0x1f5f),'userProfileId':_0x1202ae['getCurrentUser']()[_0x4dd3f3(0x13c1)],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':'integrations'})['state'](_0x3e9942(0x1ffa),{'url':_0x3e9942(0x183b),'views':{'content@app':{'templateUrl':_0x4b0452,'controller':_0x3e9942(0x1010)}},'resolve':{'freshsalesAccounts':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x57bbf5,_0x10701e){const _0x192f1a=_0x3e9942;return _0x10701e[_0x192f1a(0x22b6)](_0x192f1a(0x1c60))?_0x57bbf5[_0x192f1a(0x19a3)](_0x192f1a(0x1b22),{'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','limit':0xa,'offset':0x0}):_0x57bbf5[_0x192f1a(0x19a3)](_0x192f1a(0x12da),{'id':_0x10701e[_0x192f1a(0x21e8)]()[_0x192f1a(0x13c1)],'section':'FreshsalesAccounts','fields':_0x192f1a(0x4d0),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x3c0db4,_0x512f20){const _0xae7e1e=_0x3e9942;return _0x512f20[_0xae7e1e(0x22b6)](_0xae7e1e(0x1c60))?null:_0x3c0db4['resolve'](_0xae7e1e(0x9ae),{'fields':_0xae7e1e(0x279),'id':_0x512f20['getCurrentUser']()[_0xae7e1e(0x13c1)]});}],'userProfileSection':[_0x3e9942(0x1e0b),_0x3e9942(0x1774),function(_0x10552f,_0x4a0fe3){const _0xd5e420=_0x3e9942;return _0x4a0fe3[_0xd5e420(0x22b6)](_0xd5e420(0x1c60))?null:_0x10552f[_0xd5e420(0x19a3)](_0xd5e420(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4a0fe3[_0xd5e420(0x21e8)]()[_0xd5e420(0x13c1)],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':_0x3e9942(0x1907)})[_0x3e9942(0x27e0)](_0x3e9942(0x849),{'url':'/:id?tab','params':{'freshsalesAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x171142,'controller':'FreshsalesAccountController\x20as\x20vm'}},'resolve':{'freshsalesAccount':[_0x3e9942(0x1e0b),_0x3e9942(0x225c),function(_0x395353,_0x210667){const _0x4a58a7=_0x3e9942;return _0x395353['resolve'](_0x4a58a7(0x1b22),{'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','id':_0x210667['id']});}],'userProfileSection':[_0x3e9942(0x1e0b),'Auth',function(_0x3cd77,_0x4670ca){const _0x9996f4=_0x3e9942;return _0x3cd77[_0x9996f4(0x19a3)](_0x9996f4(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4670ca[_0x9996f4(0x21e8)]()['userProfileId'],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':_0x3e9942(0x1907)}),_0x38f5f9['addPart'](_0x3e9942(0x8e0));}angular['module']('app.integrations',[_0x5537c6(0x2770),_0x5537c6(0x2135),_0x5537c6(0x1260),'flow',_0x5537c6(0x18f6),_0x5537c6(0xd19),'ng-sortable',_0x5537c6(0x2ec),_0x5537c6(0x1890),'mdPickers','mwFormBuilder',_0x5537c6(0x1b65),_0x5537c6(0x2166),_0x5537c6(0x3b9),_0x5537c6(0x7c9),_0x5537c6(0xeb5),_0x5537c6(0x27af),_0x5537c6(0x13b6),'chart.js','angular.filter'])['config'](_0x199210)[_0x5537c6(0x6e5)](_0x5537c6(0x457),_0x282028)['controller']('DeskAccountsController',_0x132c73)[_0x5537c6(0x6e5)](_0x5537c6(0x1d72),_0x4843d0)[_0x5537c6(0x6e5)](_0x5537c6(0x29d2),_0x401aa9)['controller'](_0x5537c6(0x298d),_0x4d90ae)[_0x5537c6(0x6e5)]('DeskAccountController',_0x58d675)[_0x5537c6(0x6e5)]('CreateOrEditDynamics365AccountDialogController',_0x23154d)[_0x5537c6(0x6e5)]('Dynamics365AccountsController',_0x4eaeec)[_0x5537c6(0x6e5)](_0x5537c6(0x870),_0x5ec901)[_0x5537c6(0x6e5)](_0x5537c6(0x58f),_0xdecd5c)[_0x5537c6(0x6e5)](_0x5537c6(0x208),_0x1bfb94)[_0x5537c6(0x6e5)](_0x5537c6(0x20df),_0x79a345)[_0x5537c6(0x6e5)](_0x5537c6(0x2ca),_0x536e82)[_0x5537c6(0x6e5)](_0x5537c6(0x1ad8),_0x400822)[_0x5537c6(0x6e5)](_0x5537c6(0x24c9),_0x5ca787)[_0x5537c6(0x6e5)]('CreateOrEditFreshdeskAccountItemDialogController',_0x1e980e)['controller']('FreshdeskAccountController',_0x2ae30f)[_0x5537c6(0x6e5)](_0x5537c6(0xfaf),_0x514be3)[_0x5537c6(0x6e5)]('CreateOrEditFreshsalesAccountDialogController',_0x56b72a)[_0x5537c6(0x6e5)](_0x5537c6(0x4b7),_0x5416a1)[_0x5537c6(0x6e5)]('CreateOrEditFreshsalesConfigurationDialogController',_0x4e5155)[_0x5537c6(0x6e5)](_0x5537c6(0x18f0),_0x4682e9)[_0x5537c6(0x6e5)](_0x5537c6(0x2524),_0x399486)[_0x5537c6(0x6e5)](_0x5537c6(0x22ec),_0x165243)[_0x5537c6(0x6e5)](_0x5537c6(0x15e9),_0x4b78f4)['controller']('SalesforceAccountConfigurationsController',_0x5f2216)['controller'](_0x5537c6(0x2115),_0x9532a)['controller']('CreateOrEditSalesforceAccountItemDialogController',_0x523fea)['controller'](_0x5537c6(0xa3f),_0x525c1a)[_0x5537c6(0x6e5)](_0x5537c6(0x1266),_0x252395)[_0x5537c6(0x6e5)](_0x5537c6(0x131b),_0x5e6e1d)[_0x5537c6(0x6e5)](_0x5537c6(0x27b),_0x5dbd0f)[_0x5537c6(0x6e5)](_0x5537c6(0x11a5),_0x51d181)['controller']('CreateOrEditServicenowAccountItemDialogController',_0x406293)['controller']('ServicenowAccountController',_0x1f34b2)[_0x5537c6(0x6e5)](_0x5537c6(0x2602),_0x2f8c9e)[_0x5537c6(0x6e5)](_0x5537c6(0x9bd),_0x2f8ad9)[_0x5537c6(0x6e5)](_0x5537c6(0x2f4),_0x512264)[_0x5537c6(0x6e5)](_0x5537c6(0x96a),_0xc4dca2)[_0x5537c6(0x6e5)]('CreateOrEditSugarcrmAccountItemDialogController',_0x37d99a)[_0x5537c6(0x6e5)](_0x5537c6(0x23ac),_0x544d77)[_0x5537c6(0x6e5)](_0x5537c6(0x15df),_0x322d0d)[_0x5537c6(0x6e5)](_0x5537c6(0x1f62),_0x28d89f)['controller']('VtigerAccountConfigurationsController',_0x150ed0)[_0x5537c6(0x6e5)](_0x5537c6(0x36c),_0x348797)['controller'](_0x5537c6(0x1646),_0x125eb8)[_0x5537c6(0x6e5)](_0x5537c6(0x18ce),_0x134e65)[_0x5537c6(0x6e5)]('VtigerAccountsController',_0x259531)[_0x5537c6(0x6e5)](_0x5537c6(0x1e33),_0x4ad1b2)[_0x5537c6(0x6e5)](_0x5537c6(0x136e),_0x1ad9ac)[_0x5537c6(0x6e5)](_0x5537c6(0x27bd),_0x40db45)['controller']('ZendeskAccountConfigurationsController',_0x168bac)['controller'](_0x5537c6(0x2c3),_0x2a8632)[_0x5537c6(0x6e5)](_0x5537c6(0x139e),_0x4dc5a0)[_0x5537c6(0x6e5)](_0x5537c6(0x2427),_0xf54cef)[_0x5537c6(0x6e5)](_0x5537c6(0xa86),_0x55f046)['controller'](_0x5537c6(0x1952),_0x380aef)[_0x5537c6(0x6e5)]('CreateOrEditZohoAccountItemDialogController',_0x6b0f87)[_0x5537c6(0x6e5)]('ZohoAccountController',_0x2d76ab)[_0x5537c6(0x6e5)](_0x5537c6(0x2033),_0x3ebd4d);;const _0x21231e=_0x5074a3['p']+'src/js/modules/main/apps/settings/views/license/license.html/license.html';;const _0x22379e=_0x5074a3['p']+_0x5537c6(0x2640);;const _0x43816e=_0x5074a3['p']+'src/js/modules/main/apps/settings/views/license/request/dialog.html/dialog.html';;_0x23ea19[_0x5537c6(0x15b6)]=[_0x5537c6(0x22bf),_0x5537c6(0xcb9),_0x5537c6(0x406),_0x5537c6(0x8a5),'toasty','api'];function _0x23ea19(_0x3c2824,_0x45cc1e,_0x3558eb,_0x2b2112,_0x374b57,_0x23436c){const _0x32e996=_0x5537c6,_0x4e6509=this;_0x4e6509[_0x32e996(0x8a5)]=_0x2b2112||{},_0x4e6509['agents']=0x0,_0x4e6509[_0x32e996(0x1e30)]=0x0,_0x4e6509[_0x32e996(0x5f8)]=0x0,_0x4e6509[_0x32e996(0x24f1)]=[{'name':_0x32e996(0x1fd4),'icon':_0x32e996(0x412)},{'name':_0x32e996(0x174c),'icon':_0x32e996(0x2181)},{'name':_0x32e996(0x2651),'icon':_0x32e996(0xfbd)},{'name':_0x32e996(0x1e48),'icon':'icon-message-text'},{'name':_0x32e996(0x1944),'icon':_0x32e996(0x16d3)},{'name':'openchannel','icon':'icon-google-earth'},{'name':_0x32e996(0x2476),'icon':'icon-whatsapp'}],_0x4e6509[_0x32e996(0x98d)]=[{'name':'cm','icon':'icon-account-circle'},{'name':_0x32e996(0x14f7),'icon':_0x32e996(0x1920)},{'name':_0x32e996(0x1e98),'icon':_0x32e996(0x1737)}],_0x4e6509[_0x32e996(0x1922)]=[{'name':_0x32e996(0x110c),'icon':_0x32e996(0x2169)},{'name':_0x32e996(0x11f6),'icon':_0x32e996(0xe49)},{'name':_0x32e996(0x197c),'icon':_0x32e996(0x17dc)},{'name':'screenrecording','icon':'icon-video'},{'name':'ai','icon':_0x32e996(0x1704)}],_0x4e6509[_0x32e996(0x6d4)]=[{'name':_0x32e996(0xe18),'icon':_0x32e996(0x18cf),'restart':!![],'label':_0x32e996(0x24f1),'enabled':_0x32e996(0x1fd4)},{'name':_0x32e996(0x18ba),'icon':_0x32e996(0x13ba),'restart':![],'label':_0x32e996(0x6d4),'enabled':_0x32e996(0x174c)}],_0x4e6509[_0x32e996(0x1c41)]=[{'name':_0x32e996(0x687),'icon':'icon-cloud-download'}],_0x23436c['user']['get']({'fields':'id','role':'agent','online':!![]})[_0x32e996(0x1d77)][_0x32e996(0x1cb0)](function(_0x4d01b7){const _0x44cb3b=_0x32e996;return _0x4e6509['agents']=_0x4d01b7&&_0x4d01b7['count']?_0x4d01b7['count']:0x0,_0x23436c[_0x44cb3b(0xebe)][_0x44cb3b(0xbf7)]({'fields':'id','role':'user,admin'})[_0x44cb3b(0x1d77)];})[_0x32e996(0x1cb0)](function(_0x1f16df){const _0x58d7aa=_0x32e996;return _0x4e6509[_0x58d7aa(0x1e30)]=_0x1f16df&&_0x1f16df[_0x58d7aa(0x184d)]?_0x1f16df[_0x58d7aa(0x184d)]:0x0,_0x23436c[_0x58d7aa(0xebe)][_0x58d7aa(0xbf7)]({'fields':'id','role':_0x58d7aa(0x2922)})['$promise'];})['then'](function(_0x141b6f){const _0x25282d=_0x32e996;_0x4e6509[_0x25282d(0x5f8)]=_0x141b6f&&_0x141b6f[_0x25282d(0x184d)]?_0x141b6f['count']:0x0;})[_0x32e996(0x1c4)](function(_0x373602){const _0xb83640=_0x32e996;console[_0xb83640(0x1b4f)](_0x373602);});function _0x4e4586(_0x322b88){const _0x2410b1=_0x32e996;_0x45cc1e[_0x2410b1(0xe27)]({'controller':_0x2410b1(0x2201),'controllerAs':'vm','templateUrl':_0x22379e,'parent':angular['element'](_0x3c2824[_0x2410b1(0x1ed9)]),'targetEvent':_0x322b88,'clickOutsideToClose':!![],'locals':{'license':_0x2b2112}});}function _0xf4d497(_0x56e329){const _0x1fece2=_0x32e996;_0x45cc1e[_0x1fece2(0xe27)]({'controller':_0x1fece2(0x1d8c),'controllerAs':'vm','templateUrl':_0x43816e,'parent':angular[_0x1fece2(0x1853)](_0x3c2824[_0x1fece2(0x1ed9)]),'targetEvent':_0x56e329,'clickOutsideToClose':!![],'locals':{'license':_0x2b2112,'channels':_0x4e6509[_0x1fece2(0x24f1)],'modules':_0x4e6509[_0x1fece2(0x98d)],'addons':_0x4e6509[_0x1fece2(0x1922)],'sessions':_0x4e6509[_0x1fece2(0x6d4)],'others':_0x4e6509[_0x1fece2(0x1c41)]}});}function _0x7dfb4c(){const _0x109ffa=_0x32e996;_0x3558eb['go'](_0x109ffa(0x1cd9),{'tab':0x1});}_0x4e6509['requestLicense']=_0xf4d497,_0x4e6509[_0x32e996(0x2010)]=_0x4e4586,_0x4e6509[_0x32e996(0x910)]=_0x7dfb4c;}const _0x2ca3fc=_0x23ea19;;_0xa4abd3[_0x5537c6(0x15b6)]=['$mdDialog',_0x5537c6(0x9bf),_0x5537c6(0x8a5),_0x5537c6(0x24f1),_0x5537c6(0x98d),_0x5537c6(0x1922),_0x5537c6(0x6d4),_0x5537c6(0x1c41),'api','Auth',_0x5537c6(0x1ae)];function _0xa4abd3(_0x2e3030,_0x57fb23,_0x5358a9,_0xa464e5,_0x2bfe21,_0x515c75,_0x5c43b0,_0x280d7f,_0x521b72,_0x4f0830,_0x331d19){const _0x3cf125=_0x5537c6,_0x40a057=this;_0x40a057[_0x3cf125(0x1a7c)]=[],_0x40a057[_0x3cf125(0xebe)]=_0x4f0830[_0x3cf125(0x21e8)](),_0x40a057[_0x3cf125(0x8a5)]=angular[_0x3cf125(0x17fe)](_0x5358a9),_0x40a057['channels']=_0xa464e5,_0x40a057['modules']=_0x2bfe21,_0x40a057[_0x3cf125(0x1922)]=_0x515c75,_0x40a057[_0x3cf125(0x6d4)]=_0x5c43b0,_0x40a057['others']=_0x280d7f,_0x40a057[_0x3cf125(0x8a5)]['name']=_0x40a057[_0x3cf125(0xebe)][_0x3cf125(0x1d14)],_0x40a057['license'][_0x3cf125(0x1e19)]=_0x40a057[_0x3cf125(0xebe)][_0x3cf125(0x1e19)],_0x40a057[_0x3cf125(0xe12)]=_0x52d7b4,_0x40a057['closeDialog']=_0x7df003;function _0x52d7b4(){const _0x21605f=_0x3cf125;_0x40a057[_0x21605f(0x1a7c)]=[],_0x40a057['table']=_0x21605f(0x675);for(const _0xe22418 in _0x40a057['license']){typeof _0x40a057[_0x21605f(0x8a5)][_0xe22418]!==_0x21605f(0x16b5)&&!_0x39641b()[_0x21605f(0x250a)](['$promise',_0x21605f(0x248e)],_0xe22418)&&(_0x5358a9[_0xe22418]===_0x40a057['license'][_0xe22418]?_0x40a057[_0x21605f(0xc83)]+='|'+_0xe22418+'|'+(_0x5358a9[_0xe22418]!==undefined?_0x5358a9[_0xe22418]:'')+'|'+_0x40a057[_0x21605f(0x8a5)][_0xe22418]+'|\x0a':_0x40a057[_0x21605f(0xc83)]+='|'+_0xe22418+_0x21605f(0x14b4)+(_0x5358a9[_0xe22418]!==undefined?_0x5358a9[_0xe22418]:'')+'{color}|*'+_0x40a057[_0x21605f(0x8a5)][_0xe22418]+_0x21605f(0x197d));}_0x521b72[_0x21605f(0x231f)]['save']({'key':_0x21605f(0x76c),'summary':'Motion\x20License\x20Request','description':_0x40a057[_0x21605f(0xc83)],'issuetype':'License\x20Request'})['$promise'][_0x21605f(0x1cb0)](function(){const _0x2eb7a5=_0x21605f;_0x57fb23[_0x2eb7a5(0x829)]({'title':'Request\x20sent!','msg':_0x331d19[_0x2eb7a5(0x25cc)](_0x2eb7a5(0x55d)),'timeout':0x3a98}),_0x7df003();})[_0x21605f(0x1c4)](function(_0x1cefaa){const _0x4e66e5=_0x21605f;console[_0x4e66e5(0x218e)](_0x1cefaa),_0x40a057[_0x4e66e5(0x1a7c)]=[{'message':_0x331d19[_0x4e66e5(0x25cc)](_0x4e66e5(0x1edb)),'type':'api.jira'}];});}function _0x7df003(){const _0x394d54=_0x3cf125;_0x2e3030[_0x394d54(0x1426)]();}}const _0x25529f=_0xa4abd3;;_0x104fc2[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x9bf),'license','api'];function _0x104fc2(_0x61f2db,_0x20015e,_0x3187a8,_0x5a33dd){const _0x11aa35=_0x5537c6,_0x2ad9c7=this;_0x2ad9c7['errors']=[],_0x2ad9c7['license']=angular[_0x11aa35(0x17fe)](_0x3187a8),_0x2ad9c7[_0x11aa35(0x1bab)],_0x2ad9c7[_0x11aa35(0x2010)]=_0x4f36f7,_0x2ad9c7[_0x11aa35(0xda0)]=_0x1029b6;function _0x4f36f7(){const _0x41c2cf=_0x11aa35;return _0x5a33dd[_0x41c2cf(0x8a5)][_0x41c2cf(0x687)]({'id':0x1,'key':_0x2ad9c7['licenseKey']})['$promise'][_0x41c2cf(0x1cb0)](function(_0x14bfea){const _0x31b3eb=_0x41c2cf;_0x14bfea&&(_0x14bfea[_0x31b3eb(0x7d1)]?_0x20015e[_0x31b3eb(0x218e)]({'title':_0x31b3eb(0x6b0),'msg':_0x31b3eb(0x21c5)}):_0x20015e[_0x31b3eb(0x829)]({'title':_0x31b3eb(0x8ee),'msg':'The\x20license\x20has\x20been\x20updated!'}));})[_0x41c2cf(0x1c4)](function(_0x4c2ab3){const _0x3b32b1=_0x41c2cf;_0x20015e[_0x3b32b1(0x218e)]({'title':_0x4c2ab3[_0x3b32b1(0x291)]?_0x3b32b1(0xeb9)+_0x4c2ab3[_0x3b32b1(0x291)]+_0x3b32b1(0x1657)+_0x4c2ab3['statusText']:'SYSTEM:UPDATElicense','msg':_0x4c2ab3[_0x3b32b1(0x25c)]?JSON[_0x3b32b1(0x2701)](_0x4c2ab3[_0x3b32b1(0x25c)]):_0x4c2ab3[_0x3b32b1(0x147f)]()});});}function _0x1029b6(){_0x61f2db['hide']();}}const _0x4a8734=_0x104fc2;;_0xc6c0fd['$inject']=[_0x5537c6(0xbd6)];function _0xc6c0fd(_0x2450e5){const _0x9355ff=_0x5537c6;_0x2450e5[_0x9355ff(0x27e0)](_0x9355ff(0x120c),{'url':_0x9355ff(0x1775),'views':{'content@app':{'templateUrl':_0x21231e,'controller':_0x9355ff(0x9d7)}},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x9355ff(0x285a)});}angular[_0x5537c6(0x9ab)](_0x5537c6(0x120c),[])[_0x5537c6(0xa60)](_0xc6c0fd)[_0x5537c6(0x6e5)](_0x5537c6(0x1ead),_0x2ca3fc)[_0x5537c6(0x6e5)](_0x5537c6(0x1d8c),_0x25529f)[_0x5537c6(0x6e5)](_0x5537c6(0x2201),_0x4a8734);;const _0x5cf0d3=_0x5074a3['p']+'src/js/modules/main/apps/settings/views/system/system.html/system.html';;_0x1c8e53[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x1714),_0x5537c6(0xcb9),'$state',_0x5537c6(0x7be),'processes',_0x5537c6(0x9bf),_0x5537c6(0x142b)];function _0x1c8e53(_0x20445d,_0x2dda7e,_0x5db2c3,_0x4d7efa,_0xec0f9b,_0x3dcd7f,_0x98dfb4,_0x528c38){const _0x132a9b=_0x5537c6,_0x406f8c=this;let _0x3c1acb=null;_0x406f8c[_0x132a9b(0x7be)]=_0xec0f9b||{},_0x406f8c['processes']=_0x3dcd7f?_0x3dcd7f[_0x132a9b(0x2214)]:[],_0x406f8c[_0x132a9b(0x93a)]=0x7,_0x406f8c[_0x132a9b(0x8ec)]=_0x4d7efa['params'][_0x132a9b(0x291e)]||0x0,_0x406f8c[_0x132a9b(0xb4f)]=_0x456445,_0x406f8c[_0x132a9b(0x2899)]=_0x29a4da,_0x406f8c[_0x132a9b(0x16f2)]=_0x142bc0,_0x406f8c[_0x132a9b(0x6e3)]=_0x358e79;function _0x142bc0(){const _0x2026d7=_0x132a9b;_0x2dda7e[_0x2026d7(0x696)](_0x3c1acb),_0x3c1acb=null;}function _0x358e79(_0x228dd0,_0x4e4b33,_0x2f5cda){const _0x5c9921=_0x132a9b,_0x522c8c=_0x5db2c3[_0x5c9921(0x1551)]()[_0x5c9921(0x1386)](_0x5c9921(0x28e9)+_0x4e4b33+'?')['textContent'](_0x5c9921(0x544)+_0x2f5cda['toUpperCase']())['ariaLabel'](_0x5c9921(0x28e1))[_0x5c9921(0x728)](_0x228dd0)['ok']('Ok')[_0x5c9921(0x696)](_0x5c9921(0xde1));_0x5db2c3[_0x5c9921(0xe27)](_0x522c8c)[_0x5c9921(0x1cb0)](function(){const _0x419865=_0x5c9921;return _0x528c38[_0x419865(0x2897)]['update']({'id':_0x4e4b33,'status':_0x2f5cda});})[_0x5c9921(0x1cb0)](function(){const _0x5eecff=_0x5c9921;_0x2dda7e(_0x406f8c[_0x5eecff(0x2899)],0x3e8,0x1);})[_0x5c9921(0x1cb0)](function(){const _0x35de32=_0x5c9921;_0x98dfb4[_0x35de32(0x829)]({'title':_0x35de32(0x22f5),'msg':_0x35de32(0x22d6)+_0x2f5cda});});}function _0x456445(){const _0x574717=_0x132a9b;return _0x528c38['system'][_0x574717(0xbf7)]()[_0x574717(0x1d77)][_0x574717(0x1cb0)](function(_0x527ca7){const _0x24b268=_0x574717;_0x39641b()['merge'](_0x406f8c[_0x24b268(0x7be)],_0x527ca7);})[_0x574717(0x1c4)](_0x406f8c[_0x574717(0x16f2)]);}function _0x29a4da(){const _0x25b1bd=_0x132a9b;return _0x528c38['pm2'][_0x25b1bd(0xbf7)]()[_0x25b1bd(0x1d77)]['then'](function(_0x4942c9){const _0x437d1b=_0x25b1bd;_0x39641b()[_0x437d1b(0x9c1)](_0x406f8c['processes'],_0x4942c9?_0x4942c9[_0x437d1b(0x2214)]:[]);})[_0x25b1bd(0x1c4)](_0x406f8c[_0x25b1bd(0x16f2)]);}_0x3c1acb=_0x2dda7e(_0x406f8c[_0x132a9b(0xb4f)],0x1388),_0x20445d[_0x132a9b(0x1d6)](_0x132a9b(0x291c),function(){const _0x1d093b=_0x132a9b;_0x406f8c[_0x1d093b(0x16f2)]();});}const _0x42c35c=_0x1c8e53;;_0x3cd0b5[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6)];function _0x3cd0b5(_0x5bd25a){const _0x14d4ed=_0x5537c6;_0x5bd25a['state'](_0x14d4ed(0x1cd9),{'url':_0x14d4ed(0x13ee),'views':{'content@app':{'templateUrl':_0x5cf0d3,'controller':_0x14d4ed(0x1a66)}},'resolve':{'system':['apiResolver',function(_0xa27516){return _0xa27516['resolve']('system@get');}],'processes':[_0x14d4ed(0x1e0b),function(_0x4444c2){const _0x5ae27b=_0x14d4ed;return _0x4444c2['resolve'](_0x5ae27b(0x109b));}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x14d4ed(0x285a)});}angular[_0x5537c6(0x9ab)](_0x5537c6(0x1cd9),[])[_0x5537c6(0xa60)](_0x3cd0b5)[_0x5537c6(0x6e5)]('SystemController',_0x42c35c);;const _0x355469=_0x5074a3['p']+'src/js/modules/main/apps/settings/views/updates/updates.html/updates.html';;_0x3eeb8b[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x1714),_0x5537c6(0x1f10),_0x5537c6(0x2168),_0x5537c6(0x142b)];function _0x3eeb8b(_0x347ea6,_0x3349d9,_0x4c99fa,_0x4ddab5,_0x1f7981){const _0x4eaf18=_0x5537c6,_0x4a6be8=this;_0x4a6be8[_0x4eaf18(0x1386)]=_0x4eaf18(0x245e),_0x4a6be8[_0x4eaf18(0x22d9)]=0x0,_0x4a6be8['updating']=!![],_0x4a6be8[_0x4eaf18(0x259c)]=_0x4eaf18(0x127f),_0x4a6be8[_0x4eaf18(0x829)]=!![],_0x4a6be8[_0x4eaf18(0x1ac8)]=_0x3349d9(function(){const _0x4250cc=_0x4eaf18;_0x4a6be8['progress']<0x5a&&(_0x4a6be8[_0x4250cc(0x22d9)]+=0x1);},0x3e8),_0x1f7981['version']['fetch']()[_0x4eaf18(0x1d77)][_0x4eaf18(0x1cb0)](function(_0x670e55){const _0x579805=_0x4eaf18;return _0x4a6be8['output']=_0x670e55[_0x579805(0x259c)]+_0x579805(0x1e77),_0x1f7981[_0x579805(0x23cc)][_0x579805(0x28d5)]()[_0x579805(0x1d77)];})[_0x4eaf18(0x1cb0)](function(_0x5e04a0){const _0x48ef9c=_0x4eaf18;return _0x4a6be8[_0x48ef9c(0x259c)]=_0x5e04a0['output']+_0x48ef9c(0x1e77),_0x1f7981[_0x48ef9c(0x23cc)][_0x48ef9c(0x1d49)]()[_0x48ef9c(0x1d77)];})['then'](function(_0x57412d){const _0x6d4ed5=_0x4eaf18;return _0x4a6be8[_0x6d4ed5(0x259c)]=_0x57412d[_0x6d4ed5(0x259c)]+_0x6d4ed5(0x1e77),_0x1f7981[_0x6d4ed5(0x23cc)][_0x6d4ed5(0xfe1)]()[_0x6d4ed5(0x1d77)];})[_0x4eaf18(0x1cb0)](function(_0x2f462d){const _0x50ecb1=_0x4eaf18;return _0x4a6be8[_0x50ecb1(0x259c)]=_0x2f462d[_0x50ecb1(0x259c)]+_0x50ecb1(0x1e77),_0x1f7981[_0x50ecb1(0x23cc)][_0x50ecb1(0x1f5e)]()['$promise'];})[_0x4eaf18(0x1cb0)](function(){const _0x3174dc=_0x4eaf18;_0x4a6be8['output']=_0x3174dc(0x1021),_0x4ddab5(function(){const _0x5d0eeb=_0x3174dc;_0x4a6be8[_0x5d0eeb(0xec3)]();},0x7530);})['catch'](function(_0x598a8e){const _0x2e7c05=_0x4eaf18;_0x4a6be8[_0x2e7c05(0x829)]=![],_0x4a6be8['stopInterval'](),_0x4a6be8[_0x2e7c05(0x259c)]=JSON[_0x2e7c05(0x2701)](_0x598a8e);});function _0x24c464(){const _0x102db2=_0x4eaf18;angular[_0x102db2(0x13b8)](_0x4a6be8['interval'])&&(_0x3349d9[_0x102db2(0x696)](_0x4a6be8[_0x102db2(0x1ac8)]),_0x4a6be8[_0x102db2(0x1ac8)]=undefined),_0x4a6be8[_0x102db2(0x22d9)]=0x64,_0x4a6be8[_0x102db2(0x18e1)]=![];}function _0x21c611(){const _0x15c8a8=_0x4eaf18;_0x4c99fa[_0x15c8a8(0x2404)][_0x15c8a8(0x5b9)]();}function _0x35f534(){_0x347ea6['hide']();}_0x4a6be8['closeDialog']=_0x35f534,_0x4a6be8[_0x4eaf18(0x5b9)]=_0x21c611,_0x4a6be8[_0x4eaf18(0xec3)]=_0x24c464;}const _0x4d5e66=_0x3eeb8b;;const _0x4f826=_0x5074a3['p']+_0x5537c6(0x353);;_0x3b6225[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x1714),_0x5537c6(0x22bf),_0x5537c6(0x23cc)];function _0x3b6225(_0x52ffcc,_0x5b131e,_0x2f7d78,_0x16920c){const _0x4962ff=_0x5537c6,_0x489354=this;_0x489354[_0x4962ff(0x23cc)]=_0x16920c||{};function _0x1aae96(_0xf69521){const _0x45704e=_0x4962ff,_0x3ce4c0=_0x52ffcc[_0x45704e(0x1551)]()['title'](_0x45704e(0x22fa))[_0x45704e(0x49e)](_0x45704e(0x6a9))[_0x45704e(0x15ad)]('')[_0x45704e(0x728)](_0xf69521)[_0x45704e(0x27e1)](!![])[_0x45704e(0xbfb)](angular[_0x45704e(0x1853)](_0x2f7d78[_0x45704e(0x1ed9)]))['ok'](_0x45704e(0x1507))['cancel']('Disagree');_0x52ffcc[_0x45704e(0xe27)](_0x3ce4c0)[_0x45704e(0x1cb0)](function(){const _0x20a38a=_0x45704e;_0x52ffcc['show']({'controller':_0x20a38a(0x73b),'controllerAs':'vm','templateUrl':_0x4f826,'parent':angular['element'](_0x2f7d78['body']),'targetEvent':_0xf69521,'clickOutsideToClose':![]});});}_0x489354['updateConfirm']=_0x1aae96;}const _0x1df15=_0x3b6225;;_0x2990ac['$inject']=['$stateProvider'];function _0x2990ac(_0x34f8e9){const _0x133765=_0x5537c6;_0x34f8e9[_0x133765(0x27e0)](_0x133765(0x1ce2),{'url':_0x133765(0x2935),'views':{'content@app':{'templateUrl':_0x355469,'controller':_0x133765(0xf30)}},'resolve':{'version':[_0x133765(0x1e0b),function(_0x3f7ee3){const _0xbf821b=_0x133765;return _0x3f7ee3['resolve'](_0xbf821b(0x21ea),{'latest':!![]});}],'userProfile':['apiResolver','Auth',function(_0x5121af,_0x3a84a2){const _0x3b3a2c=_0x133765;return _0x5121af[_0x3b3a2c(0x19a3)](_0x3b3a2c(0x9ae),{'fields':'id,name,crudPermissions','id':_0x3a84a2['getCurrentUser']()[_0x3b3a2c(0x13c1)]});}],'userProfileSection':[_0x133765(0x1e0b),_0x133765(0x1774),function(_0x5695de,_0x32a9f3){const _0x5bf54b=_0x133765;return _0x5695de['resolve'](_0x5bf54b(0x2182),{'fields':_0x5bf54b(0x1f5f),'userProfileId':_0x32a9f3['getCurrentUser']()['userProfileId'],'sectionId':0x578});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'});}angular[_0x5537c6(0x9ab)](_0x5537c6(0x1ce2),[])['config'](_0x2990ac)[_0x5537c6(0x6e5)](_0x5537c6(0x73b),_0x4d5e66)[_0x5537c6(0x6e5)](_0x5537c6(0x79e),_0x1df15);;const _0x39858c=_0x5074a3['p']+_0x5537c6(0x2269);;const _0x531e03=_0x5074a3['p']+_0x5537c6(0x279e);;const _0x16177e=_0x5074a3['p']+_0x5537c6(0x298);;const _0x47d6d1=_0x5074a3['p']+_0x5537c6(0x12ee);;const _0x7782ad=_0x5074a3['p']+_0x5537c6(0x1a54);;const _0x2ab188=_0x5074a3['p']+'src/js/modules/main/apps/settings/views/cloudProviders/create/dialog.html/dialog.html';;_0x54a54f[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$window','$state',_0x5537c6(0x417),'$mdDialog','$document',_0x5537c6(0x2168),_0x5537c6(0x1ae),'cloudProviders',_0x5537c6(0x142b),_0x5537c6(0xde8),'toasty',_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x54a54f(_0x106f19,_0x4f947d,_0x2339ae,_0x5f46d8,_0x1b8a8e,_0x53418e,_0x1f61bb,_0x18ed0d,_0x18b93e,_0x59f786,_0x26ef74,_0x3be5b3,_0x53fa1d,_0x4cf6b7,_0x39215f){const _0x5615d8=_0x5537c6,_0x4882bf=this;_0x4882bf[_0x5615d8(0x8a5)]=_0x4cf6b7,_0x4882bf['setting']=_0x39215f,_0x4882bf[_0x5615d8(0xe76)]=_0x53fa1d[_0x5615d8(0x21e8)](),_0x4882bf['cloudProviders']=_0x18b93e||{'count':0x0,'rows':[]},_0x4882bf[_0x5615d8(0xc83)]=_0x5615d8(0xfdc),_0x4882bf[_0x5615d8(0x1d20)]='',_0x4882bf[_0x5615d8(0x1cdf)]=null,_0x4882bf['selectedAiTools']=[],_0x4882bf[_0x5615d8(0xae2)]={'fields':_0x5615d8(0x1414),'sort':_0x5615d8(0x282),'limit':0xa,'page':0x1},_0x4882bf[_0x5615d8(0xf8c)]=_0x39641b()[_0x5615d8(0x2631)]([{'option':_0x5615d8(0xe2b),'value':_0x5615d8(0x1418)}],function(_0x2fdbc7){const _0x377efa=_0x5615d8;return _0x39641b()[_0x377efa(0x288f)](_0x2fdbc7['value'],new RegExp('\x27','g'),'');}),_0x4882bf[_0x5615d8(0xc93)]=_0x569349,_0x4882bf[_0x5615d8(0x27fe)]=_0x4a1ff5,_0x4882bf[_0x5615d8(0x829)]=_0x5cd1b2,_0x4882bf[_0x5615d8(0xfb7)]=_0x177c09,_0x4882bf[_0x5615d8(0x1cdc)]=_0x46e7af,_0x4882bf[_0x5615d8(0x1709)]=_0x177961,_0x4882bf['exportSelectedAiTools']=_0x5e94bd,_0x4882bf[_0x5615d8(0x1c07)]=_0x333d85,_0x4882bf['deselectAiTools']=_0x3510d2,_0x4882bf[_0x5615d8(0x1add)]=_0x41e9c0;function _0x569349(_0x235dfd,_0x211132){const _0x3a0050=_0x5615d8;_0x1b8a8e['show']({'controller':_0x3a0050(0x17f9),'controllerAs':'vm','templateUrl':_0x2ab188,'parent':angular[_0x3a0050(0x1853)](_0x53418e['body']),'targetEvent':_0x211132,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0x235dfd,'cloudProviders':_0x4882bf[_0x3a0050(0xfdc)][_0x3a0050(0x2214)],'license':_0x4882bf['license'],'setting':null,'crudPermissions':_0x4882bf[_0x3a0050(0x1b1a)]}});}function _0x4a1ff5(_0x12ab1b,_0x2c7c32){const _0x2fc426=_0x5615d8,_0x2cab5d=_0x1b8a8e[_0x2fc426(0x1551)]()[_0x2fc426(0x1386)](_0x2fc426(0x140b)+_0x39641b()[_0x2fc426(0xa75)](_0x2fc426(0x1f41))+'?')[_0x2fc426(0x49e)](_0x2fc426(0x204d)+(_0x12ab1b[_0x2fc426(0x16b6)]||_0x2fc426(0x1f41))+_0x2fc426(0x1200)+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x2fc426(0x154a))[_0x2fc426(0x728)](_0x2c7c32)['ok']('OK')['cancel'](_0x2fc426(0x24ba));_0x1b8a8e[_0x2fc426(0xe27)](_0x2cab5d)[_0x2fc426(0x1cb0)](function(){_0x177961(_0x12ab1b);},function(){const _0xddb1c6=_0x2fc426;console[_0xddb1c6(0x1b4f)](_0xddb1c6(0x24ba));});}let _0x34c047=!![],_0x5a29ec=0x1;_0x106f19[_0x5615d8(0x614)]('vm.query.filter',function(_0x101e2c,_0x1688db){const _0x266a17=_0x5615d8;_0x34c047?_0x1f61bb(function(){_0x34c047=![];}):(!_0x1688db&&(_0x5a29ec=_0x4882bf[_0x266a17(0xae2)][_0x266a17(0x1c7b)]),_0x101e2c!==_0x1688db&&(_0x4882bf[_0x266a17(0xae2)][_0x266a17(0x1c7b)]=0x1),!_0x101e2c&&(_0x4882bf['query'][_0x266a17(0x1c7b)]=_0x5a29ec),_0x4882bf[_0x266a17(0xfb7)]());});function _0x5cd1b2(_0x12c429){const _0x1485fe=_0x5615d8;_0x4882bf[_0x1485fe(0xfdc)]=_0x12c429||{'count':0x0,'rows':[]};}function _0x177c09(){const _0x1efa09=_0x5615d8;_0x4882bf[_0x1efa09(0xae2)][_0x1efa09(0x184b)]=(_0x4882bf[_0x1efa09(0xae2)][_0x1efa09(0x1c7b)]-0x1)*_0x4882bf[_0x1efa09(0xae2)][_0x1efa09(0x236)],_0x53fa1d['hasRole'](_0x1efa09(0x1c60))?_0x4882bf[_0x1efa09(0x2061)]=_0x59f786['cloudProvider'][_0x1efa09(0xbf7)](_0x4882bf[_0x1efa09(0xae2)],_0x5cd1b2)[_0x1efa09(0x1d77)]:(_0x4882bf[_0x1efa09(0xae2)]['id']=_0x4882bf[_0x1efa09(0x44a)]['id'],_0x4882bf[_0x1efa09(0xae2)][_0x1efa09(0x1f74)]=_0x1efa09(0x625),_0x4882bf[_0x1efa09(0x2061)]=_0x59f786[_0x1efa09(0x44a)][_0x1efa09(0x1810)](_0x4882bf['query'],_0x5cd1b2)[_0x1efa09(0x1d77)]);}function _0x46e7af(_0x4a9f98,_0x2f03d1){const _0x43e163=_0x5615d8;_0x1b8a8e[_0x43e163(0xe27)]({'controller':_0x43e163(0x17f9),'controllerAs':'vm','templateUrl':_0x2ab188,'parent':angular[_0x43e163(0x1853)](_0x53418e[_0x43e163(0x1ed9)]),'targetEvent':_0x4a9f98,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0x2f03d1,'cloudProviders':_0x4882bf[_0x43e163(0xfdc)][_0x43e163(0x2214)],'license':_0x4882bf['license'],'setting':_0x4882bf[_0x43e163(0x9ca)],'crudPermissions':_0x4882bf[_0x43e163(0x1b1a)]}});}function _0x177961(_0x995f67){const _0x2d627f=_0x5615d8;_0x59f786[_0x2d627f(0x1f41)][_0x2d627f(0x111d)]({'id':_0x995f67['id']})[_0x2d627f(0x1d77)]['then'](function(){const _0x526b74=_0x2d627f;_0x39641b()[_0x526b74(0x152a)](_0x4882bf['cloudProviders']['rows'],{'id':_0x995f67['id']}),_0x4882bf['cloudProviders'][_0x526b74(0x184d)]-=0x1,!_0x4882bf[_0x526b74(0xfdc)]['rows'][_0x526b74(0xfd0)]&&_0x4882bf[_0x526b74(0xfb7)](),_0x3be5b3['success']({'title':_0x39641b()[_0x526b74(0xa75)](_0x526b74(0x1eea))+_0x526b74(0x2663),'msg':_0x995f67[_0x526b74(0x16b6)]?_0x995f67['name']+_0x526b74(0x3f5):''});})[_0x2d627f(0x1c4)](function(_0x486c6b){const _0x1e8ebe=_0x2d627f;if(_0x486c6b[_0x1e8ebe(0x25c)]&&_0x486c6b[_0x1e8ebe(0x25c)][_0x1e8ebe(0x1a7c)]&&_0x486c6b[_0x1e8ebe(0x25c)][_0x1e8ebe(0x1a7c)]['length']){_0x4882bf['errors']=_0x486c6b['data'][_0x1e8ebe(0x1a7c)]||[{'message':_0x486c6b[_0x1e8ebe(0x147f)](),'type':_0x1e8ebe(0x170f)}];for(let _0x7bbe2a=0x0;_0x7bbe2a<_0x486c6b[_0x1e8ebe(0x25c)][_0x1e8ebe(0x1a7c)][_0x1e8ebe(0xfd0)];_0x7bbe2a++){_0x3be5b3[_0x1e8ebe(0x218e)]({'title':_0x486c6b[_0x1e8ebe(0x25c)]['errors'][_0x7bbe2a][_0x1e8ebe(0x66a)],'msg':_0x486c6b['data'][_0x1e8ebe(0x1a7c)][_0x7bbe2a][_0x1e8ebe(0x155e)]});}}else _0x3be5b3[_0x1e8ebe(0x218e)]({'title':_0x486c6b['status']?_0x1e8ebe(0xeb9)+_0x486c6b[_0x1e8ebe(0x291)]+_0x1e8ebe(0x1657)+_0x486c6b[_0x1e8ebe(0xc22)]:_0x1e8ebe(0x170f),'msg':_0x486c6b[_0x1e8ebe(0x25c)]?JSON[_0x1e8ebe(0x2701)](_0x486c6b[_0x1e8ebe(0x25c)]['message']):_0x486c6b['message']||_0x486c6b['toString']()});});}function _0x5e94bd(){const _0x328f2a=_0x5615d8,_0x2eb03f=angular[_0x328f2a(0x17fe)](_0x4882bf[_0x328f2a(0xf01)]);return _0x4882bf[_0x328f2a(0xf01)]=[],_0x2eb03f;}function _0x333d85(_0x45c289){const _0x5366fc=_0x5615d8,_0x485c5f=_0x1b8a8e['confirm']()[_0x5366fc(0x1386)](_0x5366fc(0x6e9))[_0x5366fc(0x49e)](_0x5366fc(0x204d)+_0x4882bf['selectedAiTools']['length']+_0x5366fc(0x1d6c)+_0x5366fc(0x1b6))[_0x5366fc(0x15ad)](_0x5366fc(0x1307))['targetEvent'](_0x45c289)['ok']('OK')[_0x5366fc(0x696)](_0x5366fc(0x24ba));_0x1b8a8e['show'](_0x485c5f)[_0x5366fc(0x1cb0)](function(){const _0x2c1f3e=_0x5366fc;_0x4882bf['selectedAiTools']['forEach'](function(_0x277797){_0x177961(_0x277797);}),_0x4882bf[_0x2c1f3e(0xf01)]=[];});}function _0x3510d2(){const _0x297d8f=_0x5615d8;_0x4882bf[_0x297d8f(0xf01)]=[];}function _0x41e9c0(){const _0x2d05ca=_0x5615d8;_0x4882bf[_0x2d05ca(0xf01)]=_0x4882bf['cloudProviders'][_0x2d05ca(0x2214)];}}const _0x298b0a=_0x54a54f;;_0x35f74a[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog','$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0xfdc),_0x5537c6(0x1f41),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x35f74a(_0x5bd994,_0x367fe4,_0x388270,_0x50157b,_0x45903e,_0xe7f1e8,_0x348e40,_0x428519,_0x285d88,_0x1a9da8,_0x4f41ec,_0x50c049,_0x2ec2a6){const _0x5d54c0=_0x5537c6,_0x3c4623=this;_0x3c4623['currentUser']=_0x4f41ec[_0x5d54c0(0x21e8)](),_0x3c4623[_0x5d54c0(0x1a7c)]=[],_0x3c4623[_0x5d54c0(0x9ca)]=_0x2ec2a6,_0x3c4623[_0x5d54c0(0x8a5)]=_0x50c049,_0x3c4623['hasModulePermissions']={},_0x3c4623[_0x5d54c0(0x1b0c)]=_0x3c4623[_0x5d54c0(0x9ca)]&&_0x3c4623[_0x5d54c0(0x9ca)][_0x5d54c0(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3c4623[_0x5d54c0(0x1386)]=_0x5d54c0(0x2835),_0x3c4623[_0x5d54c0(0x1f41)]=angular['copy'](_0x285d88),_0x3c4623['cloudProviders']=_0x428519,_0x3c4623['newCloudProvider']=![];!_0x3c4623[_0x5d54c0(0x1f41)]&&(_0x3c4623[_0x5d54c0(0x1f41)]={},_0x3c4623['title']=_0x5d54c0(0x1f9f),_0x3c4623[_0x5d54c0(0x28ae)]=!![]);_0x3c4623[_0x5d54c0(0x320)]=_0x1ee88d,_0x3c4623['saveCloudProvider']=_0x2dcb63,_0x3c4623[_0x5d54c0(0x1709)]=_0x6f40a3,_0x3c4623[_0x5d54c0(0x2c4)]=_0x1f175a,_0x3c4623[_0x5d54c0(0xda0)]=_0x3def2b;function _0x1ee88d(){const _0x293673=_0x5d54c0;_0x3c4623[_0x293673(0x1a7c)]=[],_0x1a9da8['cloudProvider'][_0x293673(0x1c3f)](_0x3c4623[_0x293673(0x1f41)])['$promise'][_0x293673(0x1cb0)](function(_0x7240cd){const _0x3fc2b8=_0x293673;_0x3c4623[_0x3fc2b8(0xfdc)]['unshift'](_0x7240cd[_0x3fc2b8(0x19b2)]()),_0x348e40[_0x3fc2b8(0x829)]({'title':'CloudProvider\x20properly\x20created','msg':_0x3c4623[_0x3fc2b8(0x1f41)][_0x3fc2b8(0x16b6)]?_0x3c4623[_0x3fc2b8(0x1f41)][_0x3fc2b8(0x16b6)]+_0x3fc2b8(0x470):''}),_0x3def2b(_0x7240cd);})['catch'](function(_0xdf4a47){const _0x1bdc35=_0x293673;if(_0xdf4a47[_0x1bdc35(0x25c)]&&_0xdf4a47[_0x1bdc35(0x25c)]['errors']&&_0xdf4a47[_0x1bdc35(0x25c)]['errors'][_0x1bdc35(0xfd0)]){_0x3c4623[_0x1bdc35(0x1a7c)]=_0xdf4a47[_0x1bdc35(0x25c)][_0x1bdc35(0x1a7c)]||[{'message':_0xdf4a47[_0x1bdc35(0x147f)](),'type':_0x1bdc35(0x180c)}];for(let _0x31f577=0x0;_0x31f577<_0xdf4a47[_0x1bdc35(0x25c)][_0x1bdc35(0x1a7c)][_0x1bdc35(0xfd0)];_0x31f577+=0x1){_0x348e40[_0x1bdc35(0x218e)]({'title':_0xdf4a47[_0x1bdc35(0x25c)][_0x1bdc35(0x1a7c)][_0x31f577]['type'],'msg':_0xdf4a47[_0x1bdc35(0x25c)][_0x1bdc35(0x1a7c)][_0x31f577][_0x1bdc35(0x155e)]});}}else _0x348e40[_0x1bdc35(0x218e)]({'title':_0xdf4a47['status']?_0x1bdc35(0xeb9)+_0xdf4a47[_0x1bdc35(0x291)]+_0x1bdc35(0x1657)+_0xdf4a47[_0x1bdc35(0xc22)]:_0x1bdc35(0x180c),'msg':_0xdf4a47['data']?JSON[_0x1bdc35(0x2701)](_0xdf4a47[_0x1bdc35(0x25c)][_0x1bdc35(0x155e)]):_0xdf4a47['toString']()});});}function _0x2dcb63(){const _0x475263=_0x5d54c0;_0x3c4623['errors']=[],_0x1a9da8[_0x475263(0x1f41)][_0x475263(0x687)]({'id':_0x3c4623[_0x475263(0x1f41)]['id']},_0x3c4623[_0x475263(0x1f41)])[_0x475263(0x1d77)]['then'](function(_0x263e47){const _0x4791e5=_0x475263,_0x1a124e=_0x39641b()[_0x4791e5(0x13b4)](_0x3c4623['cloudProviders'],{'id':_0x263e47['id']});_0x1a124e&&_0x39641b()[_0x4791e5(0x9c1)](_0x1a124e,_0x39641b()[_0x4791e5(0x169b)](_0x263e47['toJSON'](),_0x39641b()['keys'](_0x1a124e))),_0x348e40[_0x4791e5(0x829)]({'title':_0x4791e5(0x276e),'msg':_0x3c4623[_0x4791e5(0x1f41)][_0x4791e5(0x16b6)]?_0x3c4623[_0x4791e5(0x1f41)]['name']+_0x4791e5(0xedb):''}),_0x3def2b(_0x263e47);})['catch'](function(_0x498f4b){const _0x4bf8aa=_0x475263;if(_0x498f4b['data']&&_0x498f4b[_0x4bf8aa(0x25c)][_0x4bf8aa(0x1a7c)]&&_0x498f4b['data'][_0x4bf8aa(0x1a7c)][_0x4bf8aa(0xfd0)]){_0x3c4623[_0x4bf8aa(0x1a7c)]=_0x498f4b['data'][_0x4bf8aa(0x1a7c)]||[{'message':_0x498f4b[_0x4bf8aa(0x147f)](),'type':'api.cloudProvider.update'}];for(let _0x7842c0=0x0;_0x7842c0<_0x498f4b[_0x4bf8aa(0x25c)]['errors'][_0x4bf8aa(0xfd0)];_0x7842c0++){_0x348e40[_0x4bf8aa(0x218e)]({'title':_0x498f4b[_0x4bf8aa(0x25c)][_0x4bf8aa(0x1a7c)][_0x7842c0][_0x4bf8aa(0x66a)],'msg':_0x498f4b[_0x4bf8aa(0x25c)]['errors'][_0x7842c0][_0x4bf8aa(0x155e)]});}}else _0x348e40['error']({'title':_0x498f4b[_0x4bf8aa(0x291)]?_0x4bf8aa(0xeb9)+_0x498f4b['status']+'\x20-\x20'+_0x498f4b['statusText']:_0x4bf8aa(0x1477),'msg':_0x498f4b[_0x4bf8aa(0x25c)]?JSON[_0x4bf8aa(0x2701)](_0x498f4b[_0x4bf8aa(0x25c)][_0x4bf8aa(0x155e)]):_0x498f4b['toString']()});});}function _0x6f40a3(_0x514dae){const _0x64bb3=_0x5d54c0;_0x3c4623[_0x64bb3(0x1a7c)]=[];const _0x374b90=_0x50157b[_0x64bb3(0x1551)]()[_0x64bb3(0x1386)](_0x64bb3(0x1a2e))[_0x64bb3(0x862)]('The\x20cloudProvider\x20will\x20be\x20deleted.')['ariaLabel'](_0x64bb3(0x22be))['ok'](_0x64bb3(0x2594))['cancel'](_0x64bb3(0xde1))['targetEvent'](_0x514dae);_0x50157b[_0x64bb3(0xe27)](_0x374b90)[_0x64bb3(0x1cb0)](function(){const _0x53068a=_0x64bb3;_0x1a9da8[_0x53068a(0x1f41)][_0x53068a(0x111d)]({'id':_0x3c4623[_0x53068a(0x1f41)]['id']})['$promise']['then'](function(){const _0x586f1c=_0x53068a;_0x39641b()[_0x586f1c(0x152a)](_0x3c4623[_0x586f1c(0xfdc)],{'id':_0x3c4623[_0x586f1c(0x1f41)]['id']}),_0x348e40[_0x586f1c(0x829)]({'title':_0x586f1c(0x153d),'msg':(_0x3c4623[_0x586f1c(0x1f41)]['name']||_0x586f1c(0x1f41))+_0x586f1c(0x3f5)}),_0x3def2b(_0x3c4623['cloudProvider']);})[_0x53068a(0x1c4)](function(_0x1f75d6){const _0x134afd=_0x53068a;if(_0x1f75d6[_0x134afd(0x25c)]&&_0x1f75d6[_0x134afd(0x25c)][_0x134afd(0x1a7c)]&&_0x1f75d6['data']['errors']['length']){_0x3c4623[_0x134afd(0x1a7c)]=_0x1f75d6[_0x134afd(0x25c)][_0x134afd(0x1a7c)]||[{'message':_0x1f75d6[_0x134afd(0x147f)](),'type':_0x134afd(0x22c8)}];for(let _0x13ab72=0x0;_0x13ab72<_0x1f75d6[_0x134afd(0x25c)][_0x134afd(0x1a7c)]['length'];_0x13ab72++){_0x348e40[_0x134afd(0x218e)]({'title':_0x1f75d6['data']['errors'][_0x13ab72][_0x134afd(0x66a)],'msg':_0x1f75d6[_0x134afd(0x25c)]['errors'][_0x13ab72][_0x134afd(0x155e)]});}}else _0x348e40['error']({'title':_0x1f75d6[_0x134afd(0x291)]?_0x134afd(0xeb9)+_0x1f75d6[_0x134afd(0x291)]+_0x134afd(0x1657)+_0x1f75d6[_0x134afd(0xc22)]:'api.cloudProvider.delete','msg':_0x1f75d6[_0x134afd(0x25c)]?JSON['stringify'](_0x1f75d6[_0x134afd(0x25c)]['message']):_0x1f75d6[_0x134afd(0x155e)]||_0x1f75d6[_0x134afd(0x147f)]()});});},function(){});}function _0x1f175a(_0x1e658a){return _0x1e658a===null?undefined:new Date(_0x1e658a);}function _0x3def2b(_0x470d67){const _0x3db558=_0x5d54c0;_0x50157b[_0x3db558(0x1426)](_0x470d67);}}const _0x19e65f=_0x35f74a;;_0x4bece0[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),'$location',_0x5537c6(0xcb9),'$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0x1c32),_0x5537c6(0x136d),_0x5537c6(0x142b),'Auth',_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x4bece0(_0x49a3a0,_0x3eec89,_0x1b9164,_0x2a7f0c,_0x1b70b8,_0x4502aa,_0x1fef69,_0x21353f,_0x2d5e57,_0x3b103f,_0x146f5b,_0x294137,_0x3a3210,_0x3cc03f){const _0x5793c1=_0x5537c6,_0x147357=this;_0x147357[_0x5793c1(0xe76)]=_0x146f5b['getCurrentUser'](),_0x147357[_0x5793c1(0x1a7c)]=[],_0x147357['setting']=_0x3a3210,_0x147357[_0x5793c1(0x8a5)]=_0x294137,_0x147357[_0x5793c1(0x1b1a)]=_0x3cc03f,_0x147357['hasModulePermissions']={},_0x147357[_0x5793c1(0x1b0c)]=_0x147357['setting']&&_0x147357[_0x5793c1(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x147357[_0x5793c1(0x1386)]=_0x5793c1(0xdd2),_0x147357['customization']=angular['copy'](_0x2d5e57),_0x147357[_0x5793c1(0x1c32)]=_0x21353f,_0x147357[_0x5793c1(0x238e)]=![];!_0x147357[_0x5793c1(0x136d)]&&(_0x147357['customization']={},_0x147357[_0x5793c1(0x1386)]=_0x5793c1(0xc07),_0x147357['newCustomization']=!![]);_0x147357[_0x5793c1(0xd7e)]=_0x483e01,_0x147357['saveCustomization']=_0x5768b8,_0x147357['deleteCustomization']=_0x95c5b5,_0x147357[_0x5793c1(0x2c4)]=_0x51d48c,_0x147357[_0x5793c1(0xda0)]=_0x49be63;function _0x483e01(){const _0x3a4237=_0x5793c1;_0x147357[_0x3a4237(0x1a7c)]=[],_0x3b103f[_0x3a4237(0x9ca)][_0x3a4237(0x1c3f)](_0x147357['customization'])[_0x3a4237(0x1d77)][_0x3a4237(0x1cb0)](function(_0x2fba3a){const _0x938577=_0x3a4237;_0x147357[_0x938577(0x1c32)][_0x938577(0xf63)](_0x2fba3a['toJSON']()),_0x1fef69[_0x938577(0x829)]({'title':'Customization\x20properly\x20created','msg':_0x147357['customization'][_0x938577(0x16b6)]?_0x147357[_0x938577(0x136d)][_0x938577(0x16b6)]+_0x938577(0x470):''}),_0x49be63(_0x2fba3a);})['catch'](function(_0xd703b2){const _0x175495=_0x3a4237;if(_0xd703b2['data']&&_0xd703b2[_0x175495(0x25c)]['errors']&&_0xd703b2['data']['errors'][_0x175495(0xfd0)]){_0x147357[_0x175495(0x1a7c)]=_0xd703b2[_0x175495(0x25c)][_0x175495(0x1a7c)]||[{'message':_0xd703b2[_0x175495(0x147f)](),'type':_0x175495(0x1271)}];for(let _0xac1847=0x0;_0xac1847<_0xd703b2[_0x175495(0x25c)][_0x175495(0x1a7c)][_0x175495(0xfd0)];_0xac1847+=0x1){_0x1fef69[_0x175495(0x218e)]({'title':_0xd703b2['data'][_0x175495(0x1a7c)][_0xac1847][_0x175495(0x66a)],'msg':_0xd703b2['data'][_0x175495(0x1a7c)][_0xac1847]['message']});}}else _0x1fef69[_0x175495(0x218e)]({'title':_0xd703b2[_0x175495(0x291)]?_0x175495(0xeb9)+_0xd703b2[_0x175495(0x291)]+_0x175495(0x1657)+_0xd703b2['statusText']:_0x175495(0x1271),'msg':_0xd703b2[_0x175495(0x25c)]?JSON[_0x175495(0x2701)](_0xd703b2[_0x175495(0x25c)][_0x175495(0x155e)]):_0xd703b2[_0x175495(0x147f)]()});});}function _0x5768b8(){const _0x1f25b9=_0x5793c1;_0x147357['errors']=[],_0x3b103f[_0x1f25b9(0x9ca)][_0x1f25b9(0x687)]({'id':_0x147357[_0x1f25b9(0x136d)]['id']},_0x147357[_0x1f25b9(0x136d)])[_0x1f25b9(0x1d77)][_0x1f25b9(0x1cb0)](function(_0x1b0db1){const _0x2fa7ba=_0x1f25b9,_0x56f5c7=_0x39641b()['find'](_0x147357[_0x2fa7ba(0x1c32)],{'id':_0x1b0db1['id']});_0x56f5c7&&_0x39641b()['merge'](_0x56f5c7,_0x39641b()['pick'](_0x1b0db1[_0x2fa7ba(0x19b2)](),_0x39641b()[_0x2fa7ba(0x1be5)](_0x56f5c7))),_0x1fef69[_0x2fa7ba(0x829)]({'title':'Customization\x20properly\x20saved!','msg':_0x147357['customization'][_0x2fa7ba(0x16b6)]?_0x147357[_0x2fa7ba(0x136d)]['name']+_0x2fa7ba(0xedb):''}),_0x49be63(_0x1b0db1);})[_0x1f25b9(0x1c4)](function(_0x34c279){const _0x558ae3=_0x1f25b9;if(_0x34c279[_0x558ae3(0x25c)]&&_0x34c279['data']['errors']&&_0x34c279[_0x558ae3(0x25c)][_0x558ae3(0x1a7c)][_0x558ae3(0xfd0)]){_0x147357['errors']=_0x34c279[_0x558ae3(0x25c)][_0x558ae3(0x1a7c)]||[{'message':_0x34c279[_0x558ae3(0x147f)](),'type':_0x558ae3(0x184c)}];for(let _0x54d934=0x0;_0x54d934<_0x34c279[_0x558ae3(0x25c)][_0x558ae3(0x1a7c)][_0x558ae3(0xfd0)];_0x54d934++){_0x1fef69[_0x558ae3(0x218e)]({'title':_0x34c279[_0x558ae3(0x25c)][_0x558ae3(0x1a7c)][_0x54d934][_0x558ae3(0x66a)],'msg':_0x34c279[_0x558ae3(0x25c)][_0x558ae3(0x1a7c)][_0x54d934][_0x558ae3(0x155e)]});}}else _0x1fef69[_0x558ae3(0x218e)]({'title':_0x34c279[_0x558ae3(0x291)]?'API:'+_0x34c279[_0x558ae3(0x291)]+_0x558ae3(0x1657)+_0x34c279[_0x558ae3(0xc22)]:_0x558ae3(0x184c),'msg':_0x34c279['data']?JSON[_0x558ae3(0x2701)](_0x34c279[_0x558ae3(0x25c)][_0x558ae3(0x155e)]):_0x34c279['toString']()});});}function _0x95c5b5(_0x25b739){const _0x525245=_0x5793c1;_0x147357['errors']=[];const _0x31f5ec=_0x2a7f0c[_0x525245(0x1551)]()[_0x525245(0x1386)](_0x525245(0x1a2e))['content']('The\x20customization\x20will\x20be\x20deleted.')[_0x525245(0x15ad)](_0x525245(0x7fc))['ok']('Delete')[_0x525245(0x696)](_0x525245(0xde1))['targetEvent'](_0x25b739);_0x2a7f0c['show'](_0x31f5ec)['then'](function(){const _0x4e5e9b=_0x525245;_0x3b103f[_0x4e5e9b(0x9ca)][_0x4e5e9b(0x111d)]({'id':_0x147357[_0x4e5e9b(0x136d)]['id']})[_0x4e5e9b(0x1d77)]['then'](function(){const _0x2d7cbc=_0x4e5e9b;_0x39641b()[_0x2d7cbc(0x152a)](_0x147357[_0x2d7cbc(0x1c32)],{'id':_0x147357[_0x2d7cbc(0x136d)]['id']}),_0x1fef69[_0x2d7cbc(0x829)]({'title':'Customization\x20properly\x20deleted!','msg':(_0x147357['customization'][_0x2d7cbc(0x16b6)]||_0x2d7cbc(0x136d))+_0x2d7cbc(0x3f5)}),_0x49be63(_0x147357[_0x2d7cbc(0x136d)]);})[_0x4e5e9b(0x1c4)](function(_0x3bba39){const _0x3d4401=_0x4e5e9b;if(_0x3bba39['data']&&_0x3bba39[_0x3d4401(0x25c)][_0x3d4401(0x1a7c)]&&_0x3bba39[_0x3d4401(0x25c)][_0x3d4401(0x1a7c)][_0x3d4401(0xfd0)]){_0x147357[_0x3d4401(0x1a7c)]=_0x3bba39[_0x3d4401(0x25c)][_0x3d4401(0x1a7c)]||[{'message':_0x3bba39[_0x3d4401(0x147f)](),'type':'api.setting.delete'}];for(let _0x3e9c4d=0x0;_0x3e9c4d<_0x3bba39[_0x3d4401(0x25c)][_0x3d4401(0x1a7c)]['length'];_0x3e9c4d++){_0x1fef69[_0x3d4401(0x218e)]({'title':_0x3bba39[_0x3d4401(0x25c)][_0x3d4401(0x1a7c)][_0x3e9c4d][_0x3d4401(0x66a)],'msg':_0x3bba39[_0x3d4401(0x25c)][_0x3d4401(0x1a7c)][_0x3e9c4d][_0x3d4401(0x155e)]});}}else _0x1fef69[_0x3d4401(0x218e)]({'title':_0x3bba39[_0x3d4401(0x291)]?_0x3d4401(0xeb9)+_0x3bba39[_0x3d4401(0x291)]+_0x3d4401(0x1657)+_0x3bba39[_0x3d4401(0xc22)]:'api.setting.delete','msg':_0x3bba39[_0x3d4401(0x25c)]?JSON['stringify'](_0x3bba39[_0x3d4401(0x25c)]['message']):_0x3bba39[_0x3d4401(0x155e)]||_0x3bba39[_0x3d4401(0x147f)]()});});},function(){});}function _0x51d48c(_0x4c5625){return _0x4c5625===null?undefined:new Date(_0x4c5625);}function _0x49be63(_0x109e13){const _0x9e6198=_0x5793c1;_0x2a7f0c[_0x9e6198(0x1426)](_0x109e13);}}const _0x4afd27=_0x4bece0;;_0x39f7ed[_0x5537c6(0x15b6)]=[_0x5537c6(0x1c32),'api',_0x5537c6(0x9bf),'license',_0x5537c6(0x1774)];function _0x39f7ed(_0x2c55fe,_0x438403,_0x1439a4,_0x337bc4,_0x22415c){const _0x12f782=_0x5537c6,_0x4f29d9=this;_0x4f29d9['currentUser']=_0x22415c[_0x12f782(0x21e8)](),_0x4f29d9['license']=_0x337bc4,_0x4f29d9[_0x12f782(0x1c32)]=_0x2c55fe,_0x4f29d9[_0x12f782(0x136d)]={};_0x4f29d9[_0x12f782(0x1c32)]&&_0x4f29d9[_0x12f782(0x1c32)][_0x12f782(0x2214)]&&_0x4f29d9[_0x12f782(0x1c32)][_0x12f782(0x2214)][_0x12f782(0xfd0)]&&(_0x4f29d9[_0x12f782(0x136d)]=_0x4f29d9[_0x12f782(0x1c32)][_0x12f782(0x2214)][0x0]);_0x4f29d9['saveCustomization']=_0x2f9bf5;function _0x2f9bf5(){const _0x25fb79=_0x12f782;_0x4f29d9[_0x25fb79(0x136d)]['id']?_0x438403[_0x25fb79(0x9ca)][_0x25fb79(0x687)]({'id':_0x4f29d9[_0x25fb79(0x136d)]['id']},_0x4f29d9[_0x25fb79(0x136d)])[_0x25fb79(0x1d77)][_0x25fb79(0x1cb0)](function(){const _0x17b1d4=_0x25fb79;_0x1439a4['success']({'title':'Customization\x20updated!','msg':_0x4f29d9[_0x17b1d4(0x136d)][_0x17b1d4(0x16b6)]?_0x4f29d9[_0x17b1d4(0x136d)][_0x17b1d4(0x16b6)]+'\x20has\x20been\x20updated!':''});})[_0x25fb79(0x1c4)](function(_0x2fe42b){const _0x4945eb=_0x25fb79;_0x1439a4[_0x4945eb(0x218e)]({'title':_0x2fe42b[_0x4945eb(0x291)]?_0x4945eb(0xeb9)+_0x2fe42b[_0x4945eb(0x291)]+_0x4945eb(0x1657)+_0x2fe42b[_0x4945eb(0xc22)]:_0x4945eb(0x1740),'msg':_0x2fe42b[_0x4945eb(0x25c)]?JSON[_0x4945eb(0x2701)](_0x2fe42b[_0x4945eb(0x25c)]):_0x2fe42b['toString']()});}):_0x438403['setting'][_0x25fb79(0x1c3f)](_0x4f29d9[_0x25fb79(0x136d)])[_0x25fb79(0x1d77)]['then'](function(_0x88e85b){const _0x3637e8=_0x25fb79;_0x39641b()[_0x3637e8(0x9c1)](_0x4f29d9[_0x3637e8(0x136d)],_0x88e85b),_0x1439a4[_0x3637e8(0x829)]({'title':_0x3637e8(0x2959),'msg':_0x4f29d9[_0x3637e8(0x136d)][_0x3637e8(0x16b6)]?_0x4f29d9[_0x3637e8(0x136d)][_0x3637e8(0x16b6)]+_0x3637e8(0x1068):''});})[_0x25fb79(0x1c4)](function(_0x1f1287){const _0x3c531d=_0x25fb79;_0x1439a4[_0x3c531d(0x218e)]({'title':_0x1f1287[_0x3c531d(0x291)]?_0x3c531d(0xeb9)+_0x1f1287[_0x3c531d(0x291)]+_0x3c531d(0x1657)+_0x1f1287[_0x3c531d(0xc22)]:_0x3c531d(0x1740),'msg':_0x1f1287['data']?JSON['stringify'](_0x1f1287[_0x3c531d(0x25c)]):_0x1f1287['toString']()});});}}const _0x158a34=_0x39f7ed;;_0x2f4a52[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x9bf)];function _0x2f4a52(_0x35dd16,_0x2aa994){const _0x1485fc=_0x5537c6,_0x1568c4=this,_0x24e615=0x8,_0x57a724=_0x24e615*0x400*0x400;_0x1568c4['customization']={},_0x1568c4[_0x1485fc(0x15e8)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x57a724,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x1568c4[_0x1485fc(0x125a)]={'flow':{}},_0x1568c4[_0x1485fc(0x18dc)]=![],_0x1568c4['fileAdded']=_0x6a1b5b,_0x1568c4[_0x1485fc(0x1c97)]=_0xf6f742,_0x1568c4[_0x1485fc(0x200f)]=_0x48cce3,_0x1568c4[_0x1485fc(0x1a8e)]=_0x1dd086;function _0x1dd086(_0x2adf20){const _0x24d709=_0x1485fc;_0x1568c4['customization']=angular[_0x24d709(0x17fe)](_0x2adf20),_0x1568c4[_0x24d709(0x15e8)]['target']=_0x24d709(0x1a4a)[_0x24d709(0x288f)](':id',_0x1568c4[_0x24d709(0x136d)]['id']),_0x1568c4[_0x24d709(0x136d)][_0x24d709(0x105c)]=[];}function _0x6a1b5b(_0x1eeb88){const _0x3a18e1=_0x1485fc,_0x450b16=['png',_0x3a18e1(0xb97),_0x3a18e1(0x2316)];if(!_0x39641b()[_0x3a18e1(0x250a)](_0x450b16,_0x1eeb88[_0x3a18e1(0x1cb1)]()))return _0x2aa994[_0x3a18e1(0x218e)]({'title':_0x3a18e1(0x14d4)+_0x1eeb88[_0x3a18e1(0x1cb1)](),'msg':_0x3a18e1(0x4d4)+_0x450b16[_0x3a18e1(0x1f66)]()}),![];if(_0x1eeb88[_0x3a18e1(0x1813)]>_0x57a724)return _0x2aa994[_0x3a18e1(0x218e)]({'title':'File\x20too\x20big','msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x24e615+'MB'}),![];const _0x3646fd={'id':_0x1eeb88[_0x3a18e1(0x27c2)],'file':_0x1eeb88,'type':_0x3a18e1(0x2989)};return _0x1568c4[_0x3a18e1(0x136d)]['images']['unshift'](_0x3646fd),!![];}function _0xf6f742(){const _0x10e06f=_0x1485fc;_0x1568c4[_0x10e06f(0x125a)][_0x10e06f(0xacf)]['opts'][_0x10e06f(0x5e7)]={'X-Requested-With':_0x10e06f(0x2711),'Authorization':_0x10e06f(0x1923)+_0x35dd16[_0x10e06f(0xbf7)](_0x10e06f(0x1b26))},_0x1568c4[_0x10e06f(0x125a)][_0x10e06f(0xacf)][_0x10e06f(0x1c97)]();}function _0x48cce3(_0x4817a9){const _0x4b64c5=_0x1485fc;angular[_0x4b64c5(0xf90)](_0x1568c4[_0x4b64c5(0x136d)]['images'],function(_0x574abd){const _0x519789=_0x4b64c5;if(_0x574abd['id']===_0x4817a9[_0x519789(0x27c2)]){const _0x148643=new FileReader();_0x148643[_0x519789(0x245d)](_0x574abd[_0x519789(0x1ac4)][_0x519789(0x1ac4)]),_0x148643[_0x519789(0x198d)]=function(_0x2330ab){const _0x34bce=_0x519789;_0x574abd[_0x34bce(0x135b)]=_0x2330ab[_0x34bce(0x251d)][_0x34bce(0x1205)];},_0x574abd['type']=_0x519789(0x499);}});}}const _0x5df1bb=_0x2f4a52;;_0x5e2d20[_0x5537c6(0x15b6)]=['$cookies',_0x5537c6(0x9bf)];function _0x5e2d20(_0x3dac85,_0x4b315f){const _0x42b900=_0x5537c6,_0x41a5d5=this,_0x18473d=0x8,_0x231251=_0x18473d*0x400*0x400;_0x41a5d5['customization']={},_0x41a5d5[_0x42b900(0x15e8)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x231251,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x41a5d5[_0x42b900(0x125a)]={'flow':{}},_0x41a5d5[_0x42b900(0x18dc)]=![],_0x41a5d5[_0x42b900(0x15c2)]=_0x4ce38a,_0x41a5d5[_0x42b900(0x1c97)]=_0x41e2fe,_0x41a5d5[_0x42b900(0x200f)]=_0x24c814,_0x41a5d5[_0x42b900(0x1a8e)]=_0x2d119f;function _0x2d119f(_0x34f059){const _0x598643=_0x42b900;_0x41a5d5[_0x598643(0x136d)]=angular['copy'](_0x34f059),_0x41a5d5[_0x598643(0x15e8)][_0x598643(0x251d)]=_0x598643(0x3d6)[_0x598643(0x288f)](_0x598643(0xfa9),_0x41a5d5[_0x598643(0x136d)]['id']),_0x41a5d5[_0x598643(0x136d)][_0x598643(0x105c)]=[];}function _0x4ce38a(_0x1d3ae3){const _0x1bd9de=_0x42b900,_0x61d55d=[_0x1bd9de(0x844),_0x1bd9de(0xb97)];if(!_0x39641b()[_0x1bd9de(0x250a)](_0x61d55d,_0x1d3ae3[_0x1bd9de(0x1cb1)]()))return _0x4b315f[_0x1bd9de(0x218e)]({'title':_0x1bd9de(0x14d4)+_0x1d3ae3[_0x1bd9de(0x1cb1)](),'msg':_0x1bd9de(0x4d4)+_0x61d55d[_0x1bd9de(0x1f66)]()}),![];if(_0x1d3ae3[_0x1bd9de(0x1813)]>_0x231251)return _0x4b315f[_0x1bd9de(0x218e)]({'title':_0x1bd9de(0x2749),'msg':_0x1bd9de(0xe61)+_0x18473d+'MB'}),![];const _0x3688e9={'id':_0x1d3ae3[_0x1bd9de(0x27c2)],'file':_0x1d3ae3,'type':_0x1bd9de(0x2989)};return _0x41a5d5[_0x1bd9de(0x136d)][_0x1bd9de(0x105c)]['unshift'](_0x3688e9),!![];}function _0x41e2fe(){const _0x453ccd=_0x42b900;_0x41a5d5[_0x453ccd(0x125a)][_0x453ccd(0xacf)][_0x453ccd(0xd56)]['headers']={'X-Requested-With':_0x453ccd(0x2711),'Authorization':_0x453ccd(0x1923)+_0x3dac85[_0x453ccd(0xbf7)](_0x453ccd(0x1b26))},_0x41a5d5[_0x453ccd(0x125a)][_0x453ccd(0xacf)][_0x453ccd(0x1c97)]();}function _0x24c814(_0x10e0f6){const _0x1f0d3f=_0x42b900;angular[_0x1f0d3f(0xf90)](_0x41a5d5['customization']['images'],function(_0xe07a60){const _0x4c452c=_0x1f0d3f;if(_0xe07a60['id']===_0x10e0f6[_0x4c452c(0x27c2)]){const _0x481435=new FileReader();_0x481435[_0x4c452c(0x245d)](_0xe07a60[_0x4c452c(0x1ac4)]['file']),_0x481435[_0x4c452c(0x198d)]=function(_0x36c5fc){const _0x278971=_0x4c452c;_0xe07a60[_0x278971(0x135b)]=_0x36c5fc[_0x278971(0x251d)]['result'];},_0xe07a60[_0x4c452c(0x66a)]=_0x4c452c(0x499);}});}}const _0xd3526f=_0x5e2d20;;_0x4c5bf8[_0x5537c6(0x15b6)]=['$cookies','toasty'];function _0x4c5bf8(_0x3a1d55,_0xca3648){const _0x42fdad=_0x5537c6,_0x3da8f3=this,_0xe601d6=0x8,_0x114ec9=_0xe601d6*0x400*0x400;_0x3da8f3[_0x42fdad(0x136d)]={},_0x3da8f3[_0x42fdad(0x15e8)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x114ec9,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x3da8f3['ngFlow']={'flow':{}},_0x3da8f3[_0x42fdad(0x18dc)]=![],_0x3da8f3[_0x42fdad(0x15c2)]=_0x1c5597,_0x3da8f3[_0x42fdad(0x1c97)]=_0x117c37,_0x3da8f3['fileSuccess']=_0x22f41a,_0x3da8f3[_0x42fdad(0x1a8e)]=_0x52b440;function _0x52b440(_0x566ef4){const _0x562100=_0x42fdad;_0x3da8f3['customization']=angular[_0x562100(0x17fe)](_0x566ef4),_0x3da8f3[_0x562100(0x15e8)][_0x562100(0x251d)]=_0x562100(0xe01)[_0x562100(0x288f)](_0x562100(0xfa9),_0x3da8f3[_0x562100(0x136d)]['id']),_0x3da8f3[_0x562100(0x136d)]['images']=[];}function _0x1c5597(_0x4485f8){const _0x22823f=_0x42fdad,_0x6eed6b=[_0x22823f(0x844),_0x22823f(0xb97)];if(!_0x39641b()[_0x22823f(0x250a)](_0x6eed6b,_0x4485f8[_0x22823f(0x1cb1)]()))return _0xca3648[_0x22823f(0x218e)]({'title':'Invalid\x20extension:\x20'+_0x4485f8[_0x22823f(0x1cb1)](),'msg':_0x22823f(0x4d4)+_0x6eed6b[_0x22823f(0x1f66)]()}),![];if(_0x4485f8[_0x22823f(0x1813)]>_0x114ec9)return _0xca3648[_0x22823f(0x218e)]({'title':_0x22823f(0x2749),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0xe601d6+'MB'}),![];const _0x765263={'id':_0x4485f8[_0x22823f(0x27c2)],'file':_0x4485f8,'type':_0x22823f(0x2989)};return _0x3da8f3['customization'][_0x22823f(0x105c)][_0x22823f(0xf63)](_0x765263),!![];}function _0x117c37(){const _0x2de35a=_0x42fdad;_0x3da8f3[_0x2de35a(0x125a)]['flow'][_0x2de35a(0xd56)][_0x2de35a(0x5e7)]={'X-Requested-With':_0x2de35a(0x2711),'Authorization':_0x2de35a(0x1923)+_0x3a1d55[_0x2de35a(0xbf7)]('motion.token')},_0x3da8f3[_0x2de35a(0x125a)]['flow'][_0x2de35a(0x1c97)]();}function _0x22f41a(_0x262793){const _0x14ad87=_0x42fdad;angular[_0x14ad87(0xf90)](_0x3da8f3[_0x14ad87(0x136d)][_0x14ad87(0x105c)],function(_0x3358b5){const _0x1af8b8=_0x14ad87;if(_0x3358b5['id']===_0x262793['uniqueIdentifier']){const _0xe78816=new FileReader();_0xe78816[_0x1af8b8(0x245d)](_0x3358b5['file'][_0x1af8b8(0x1ac4)]),_0xe78816[_0x1af8b8(0x198d)]=function(_0x4773ef){const _0xd290dc=_0x1af8b8;_0x3358b5[_0xd290dc(0x135b)]=_0x4773ef['target'][_0xd290dc(0x1205)];},_0x3358b5[_0x1af8b8(0x66a)]=_0x1af8b8(0x499);}});}}const _0x16d8d2=_0x4c5bf8;;_0x1f090c[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x9bf)];function _0x1f090c(_0x4219d0,_0x231414){const _0x5c44a2=_0x5537c6,_0x27f891=this,_0x246867=0x8,_0x102ea8=_0x246867*0x400*0x400;_0x27f891[_0x5c44a2(0x136d)]={},_0x27f891[_0x5c44a2(0x15e8)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x102ea8,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x27f891['ngFlow']={'flow':{}},_0x27f891[_0x5c44a2(0x18dc)]=![],_0x27f891[_0x5c44a2(0x15c2)]=_0x5e2849,_0x27f891[_0x5c44a2(0x1c97)]=_0x5bc4ff,_0x27f891[_0x5c44a2(0x200f)]=_0x506689,_0x27f891['init']=_0x75ab98;function _0x75ab98(_0xf74d9a){const _0x83dd5c=_0x5c44a2;_0x27f891['customization']=angular['copy'](_0xf74d9a),_0x27f891[_0x83dd5c(0x15e8)][_0x83dd5c(0x251d)]=_0x83dd5c(0x1de8)[_0x83dd5c(0x288f)](':id',_0x27f891['customization']['id']),_0x27f891[_0x83dd5c(0x136d)][_0x83dd5c(0x105c)]=[];}function _0x5e2849(_0x5014ef){const _0x4911de=_0x5c44a2,_0x1899a7=[_0x4911de(0x844),_0x4911de(0xb97)];if(!_0x39641b()[_0x4911de(0x250a)](_0x1899a7,_0x5014ef[_0x4911de(0x1cb1)]()))return _0x231414['error']({'title':_0x4911de(0x14d4)+_0x5014ef[_0x4911de(0x1cb1)](),'msg':_0x4911de(0x4d4)+_0x1899a7[_0x4911de(0x1f66)]()}),![];if(_0x5014ef[_0x4911de(0x1813)]>_0x102ea8)return _0x231414['error']({'title':_0x4911de(0x2749),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x246867+'MB'}),![];const _0x3d40f2={'id':_0x5014ef['uniqueIdentifier'],'file':_0x5014ef,'type':'uploading'};return _0x27f891['customization'][_0x4911de(0x105c)]['unshift'](_0x3d40f2),!![];}function _0x5bc4ff(){const _0x1a374a=_0x5c44a2;_0x27f891[_0x1a374a(0x125a)][_0x1a374a(0xacf)][_0x1a374a(0xd56)][_0x1a374a(0x5e7)]={'X-Requested-With':_0x1a374a(0x2711),'Authorization':_0x1a374a(0x1923)+_0x4219d0[_0x1a374a(0xbf7)](_0x1a374a(0x1b26))},_0x27f891[_0x1a374a(0x125a)]['flow'][_0x1a374a(0x1c97)]();}function _0x506689(_0x243505){const _0xc0decb=_0x5c44a2;angular[_0xc0decb(0xf90)](_0x27f891['customization']['images'],function(_0x1ed703){const _0x2b9770=_0xc0decb;if(_0x1ed703['id']===_0x243505[_0x2b9770(0x27c2)]){const _0x1980a4=new FileReader();_0x1980a4[_0x2b9770(0x245d)](_0x1ed703[_0x2b9770(0x1ac4)][_0x2b9770(0x1ac4)]),_0x1980a4[_0x2b9770(0x198d)]=function(_0x14561e){const _0xf8cbb1=_0x2b9770;_0x1ed703['url']=_0x14561e[_0xf8cbb1(0x251d)]['result'];},_0x1ed703[_0x2b9770(0x66a)]=_0x2b9770(0x499);}});}}const _0x4f4717=_0x1f090c;;_0x4e1f8f[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x1f2d),_0x5537c6(0x261d),_0x5537c6(0x142b),_0x5537c6(0x1774),'license',_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x4e1f8f(_0xc59847,_0x9c2d20,_0x322031,_0x18caa6,_0x41cdfd,_0x3bebbe,_0x3050b5,_0x172adc,_0xeb9a34,_0x5b4dd2,_0x20e10e,_0x4c1cd2,_0x3eed27,_0x444d60){const _0x258ea6=_0x5537c6,_0x40983a=this;_0x40983a[_0x258ea6(0xe76)]=_0x20e10e['getCurrentUser'](),_0x40983a['errors']=[],_0x40983a[_0x258ea6(0x9ca)]=_0x3eed27,_0x40983a[_0x258ea6(0x8a5)]=_0x4c1cd2,_0x40983a[_0x258ea6(0x1b1a)]=_0x444d60,_0x40983a[_0x258ea6(0xf4c)]={},_0x40983a['passwordPattern']=_0x40983a[_0x258ea6(0x9ca)]&&_0x40983a[_0x258ea6(0x9ca)][_0x258ea6(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x40983a['title']=_0x258ea6(0xf5a),_0x40983a[_0x258ea6(0x261d)]=angular[_0x258ea6(0x17fe)](_0xeb9a34),_0x40983a[_0x258ea6(0x1f2d)]=_0x172adc,_0x40983a[_0x258ea6(0x2366)]=![];!_0x40983a[_0x258ea6(0x261d)]&&(_0x40983a[_0x258ea6(0x261d)]={'min_internal':0x3e8,'chatTimeout':0x1e,'phoneBarAutoUpdater':!![],'phoneBarAutoUpdaterUrl':_0x258ea6(0x24e2),'splitSizeCsv':0x1388,'splitSizePdf':0x3e8,'splitSizeXlsx':0x1388,'messagesAlignment':_0x258ea6(0x1d4a),'phoneBarRememberMeEnabled':!![],'allowedLoginAttempts':0x5,'blockDuration':0xa,'loginMailFrequency':0xa,'enforcePasswordHistory':!![],'passwordHistoryLimit':0x3},_0x40983a[_0x258ea6(0x1386)]=_0x258ea6(0x1574),_0x40983a[_0x258ea6(0x2366)]=!![]);_0x40983a[_0x258ea6(0x15db)]=_0x145a7f,_0x40983a[_0x258ea6(0x107b)]=_0x175c58,_0x40983a[_0x258ea6(0x1b9b)]=_0x13081c,_0x40983a[_0x258ea6(0x2c4)]=_0x747a06,_0x40983a[_0x258ea6(0xda0)]=_0x57008c,_0x5b4dd2[_0x258ea6(0x1f41)][_0x258ea6(0xbf7)]({'fields':'id,name','sort':_0x258ea6(0x16b6),'nolimit':_0x258ea6(0x44d)})[_0x258ea6(0x1d77)][_0x258ea6(0x1cb0)](function(_0x388d25){const _0xfad6a8=_0x258ea6;_0x40983a[_0xfad6a8(0xfdc)]=_0x388d25[_0xfad6a8(0x2214)]||[];})['catch'](function(_0x2d1de5){const _0x554c8b=_0x258ea6;_0x3050b5['error']({'title':_0x2d1de5['status']?_0x554c8b(0xeb9)+_0x2d1de5[_0x554c8b(0x291)]+'\x20-\x20'+_0x2d1de5['statusText']:_0x554c8b(0x13dc),'msg':_0x2d1de5[_0x554c8b(0x25c)]?JSON[_0x554c8b(0x2701)](_0x2d1de5[_0x554c8b(0x25c)]):_0x2d1de5['toString']()});});function _0x145a7f(){const _0x21a37d=_0x258ea6;_0x40983a[_0x21a37d(0x1a7c)]=[],_0x5b4dd2[_0x21a37d(0x9ca)][_0x21a37d(0x1c3f)](_0x40983a[_0x21a37d(0x261d)])['$promise'][_0x21a37d(0x1cb0)](function(_0x369d83){const _0x94dcb=_0x21a37d;_0x40983a[_0x94dcb(0x1f2d)]['unshift'](_0x369d83[_0x94dcb(0x19b2)]()),_0x3050b5['success']({'title':_0x94dcb(0x1f45),'msg':_0x40983a[_0x94dcb(0x261d)][_0x94dcb(0x16b6)]?_0x40983a[_0x94dcb(0x261d)][_0x94dcb(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x57008c(_0x369d83);})[_0x21a37d(0x1c4)](function(_0x250258){const _0x55cc19=_0x21a37d;if(_0x250258[_0x55cc19(0x25c)]&&_0x250258[_0x55cc19(0x25c)][_0x55cc19(0x1a7c)]&&_0x250258[_0x55cc19(0x25c)][_0x55cc19(0x1a7c)][_0x55cc19(0xfd0)]){_0x40983a[_0x55cc19(0x1a7c)]=_0x250258['data']['errors']||[{'message':_0x250258['toString'](),'type':'api.setting.save'}];for(let _0xf6ce47=0x0;_0xf6ce47<_0x250258[_0x55cc19(0x25c)][_0x55cc19(0x1a7c)][_0x55cc19(0xfd0)];_0xf6ce47+=0x1){_0x3050b5[_0x55cc19(0x218e)]({'title':_0x250258[_0x55cc19(0x25c)][_0x55cc19(0x1a7c)][_0xf6ce47][_0x55cc19(0x66a)],'msg':_0x250258[_0x55cc19(0x25c)][_0x55cc19(0x1a7c)][_0xf6ce47][_0x55cc19(0x155e)]});}}else _0x3050b5[_0x55cc19(0x218e)]({'title':_0x250258['status']?_0x55cc19(0xeb9)+_0x250258['status']+'\x20-\x20'+_0x250258[_0x55cc19(0xc22)]:'api.setting.save','msg':_0x250258[_0x55cc19(0x25c)]?JSON[_0x55cc19(0x2701)](_0x250258[_0x55cc19(0x25c)]['message']):_0x250258[_0x55cc19(0x147f)]()});});}function _0x175c58(){const _0x3fc072=_0x258ea6;_0x40983a[_0x3fc072(0x1a7c)]=[],_0x5b4dd2[_0x3fc072(0x9ca)]['update']({'id':_0x40983a[_0x3fc072(0x261d)]['id']},_0x40983a[_0x3fc072(0x261d)])['$promise'][_0x3fc072(0x1cb0)](function(_0x469667){const _0x25d100=_0x3fc072,_0x50caf5=_0x39641b()[_0x25d100(0x13b4)](_0x40983a['generals'],{'id':_0x469667['id']});_0x50caf5&&_0x39641b()[_0x25d100(0x9c1)](_0x50caf5,_0x39641b()[_0x25d100(0x169b)](_0x469667[_0x25d100(0x19b2)](),_0x39641b()['keys'](_0x50caf5))),_0x3050b5[_0x25d100(0x829)]({'title':_0x25d100(0xb4c),'msg':_0x40983a['general'][_0x25d100(0x16b6)]?_0x40983a[_0x25d100(0x261d)][_0x25d100(0x16b6)]+_0x25d100(0xedb):''}),_0x57008c(_0x469667);})[_0x3fc072(0x1c4)](function(_0x376066){const _0xd7366b=_0x3fc072;if(_0x376066[_0xd7366b(0x25c)]&&_0x376066[_0xd7366b(0x25c)]['errors']&&_0x376066[_0xd7366b(0x25c)]['errors'][_0xd7366b(0xfd0)]){_0x40983a[_0xd7366b(0x1a7c)]=_0x376066[_0xd7366b(0x25c)][_0xd7366b(0x1a7c)]||[{'message':_0x376066[_0xd7366b(0x147f)](),'type':_0xd7366b(0x184c)}];for(let _0x24a0fe=0x0;_0x24a0fe<_0x376066[_0xd7366b(0x25c)]['errors'][_0xd7366b(0xfd0)];_0x24a0fe++){_0x3050b5[_0xd7366b(0x218e)]({'title':_0x376066[_0xd7366b(0x25c)][_0xd7366b(0x1a7c)][_0x24a0fe][_0xd7366b(0x66a)],'msg':_0x376066[_0xd7366b(0x25c)][_0xd7366b(0x1a7c)][_0x24a0fe][_0xd7366b(0x155e)]});}}else _0x3050b5[_0xd7366b(0x218e)]({'title':_0x376066['status']?_0xd7366b(0xeb9)+_0x376066[_0xd7366b(0x291)]+_0xd7366b(0x1657)+_0x376066['statusText']:_0xd7366b(0x184c),'msg':_0x376066[_0xd7366b(0x25c)]?JSON[_0xd7366b(0x2701)](_0x376066[_0xd7366b(0x25c)][_0xd7366b(0x155e)]):_0x376066[_0xd7366b(0x147f)]()});});}function _0x13081c(_0xb3c00d){const _0xae6056=_0x258ea6;_0x40983a[_0xae6056(0x1a7c)]=[];const _0x359300=_0x18caa6['confirm']()[_0xae6056(0x1386)]('Are\x20you\x20sure?')[_0xae6056(0x862)](_0xae6056(0x231c))['ariaLabel'](_0xae6056(0x17b1))['ok'](_0xae6056(0x2594))[_0xae6056(0x696)](_0xae6056(0xde1))[_0xae6056(0x728)](_0xb3c00d);_0x18caa6[_0xae6056(0xe27)](_0x359300)[_0xae6056(0x1cb0)](function(){const _0x7c3c17=_0xae6056;_0x5b4dd2[_0x7c3c17(0x9ca)][_0x7c3c17(0x111d)]({'id':_0x40983a[_0x7c3c17(0x261d)]['id']})['$promise'][_0x7c3c17(0x1cb0)](function(){const _0x4b84fc=_0x7c3c17;_0x39641b()[_0x4b84fc(0x152a)](_0x40983a[_0x4b84fc(0x1f2d)],{'id':_0x40983a[_0x4b84fc(0x261d)]['id']}),_0x3050b5['success']({'title':_0x4b84fc(0x11d3),'msg':(_0x40983a[_0x4b84fc(0x261d)][_0x4b84fc(0x16b6)]||_0x4b84fc(0x261d))+_0x4b84fc(0x3f5)}),_0x57008c(_0x40983a[_0x4b84fc(0x261d)]);})[_0x7c3c17(0x1c4)](function(_0x572d2b){const _0x5b516f=_0x7c3c17;if(_0x572d2b[_0x5b516f(0x25c)]&&_0x572d2b['data'][_0x5b516f(0x1a7c)]&&_0x572d2b[_0x5b516f(0x25c)][_0x5b516f(0x1a7c)][_0x5b516f(0xfd0)]){_0x40983a[_0x5b516f(0x1a7c)]=_0x572d2b[_0x5b516f(0x25c)][_0x5b516f(0x1a7c)]||[{'message':_0x572d2b[_0x5b516f(0x147f)](),'type':_0x5b516f(0x174e)}];for(let _0x5e4c3e=0x0;_0x5e4c3e<_0x572d2b[_0x5b516f(0x25c)][_0x5b516f(0x1a7c)]['length'];_0x5e4c3e++){_0x3050b5[_0x5b516f(0x218e)]({'title':_0x572d2b[_0x5b516f(0x25c)][_0x5b516f(0x1a7c)][_0x5e4c3e][_0x5b516f(0x66a)],'msg':_0x572d2b[_0x5b516f(0x25c)]['errors'][_0x5e4c3e][_0x5b516f(0x155e)]});}}else _0x3050b5[_0x5b516f(0x218e)]({'title':_0x572d2b[_0x5b516f(0x291)]?_0x5b516f(0xeb9)+_0x572d2b['status']+_0x5b516f(0x1657)+_0x572d2b[_0x5b516f(0xc22)]:_0x5b516f(0x174e),'msg':_0x572d2b[_0x5b516f(0x25c)]?JSON['stringify'](_0x572d2b[_0x5b516f(0x25c)][_0x5b516f(0x155e)]):_0x572d2b[_0x5b516f(0x155e)]||_0x572d2b[_0x5b516f(0x147f)]()});});},function(){});}function _0x747a06(_0x408e0b){return _0x408e0b===null?undefined:new Date(_0x408e0b);}function _0x57008c(_0x41645c){const _0xe24858=_0x258ea6;_0x18caa6[_0xe24858(0x1426)](_0x41645c);}}const _0x32edd5=_0x4e1f8f;;_0x4fc19d['$inject']=[_0x5537c6(0x1f2d),_0x5537c6(0x142b),'toasty','license',_0x5537c6(0x1774)];function _0x4fc19d(_0x1d0a2c,_0x2a71de,_0x2952c2,_0x131a83,_0x106c75){const _0x31bcf2=_0x5537c6,_0x2d2239=this;_0x2d2239[_0x31bcf2(0xe76)]=_0x106c75['getCurrentUser'](),_0x2d2239[_0x31bcf2(0x8a5)]=_0x131a83,_0x2d2239[_0x31bcf2(0x1f2d)]=_0x1d0a2c,_0x2d2239['general']={};_0x2d2239['generals']&&_0x2d2239[_0x31bcf2(0x1f2d)][_0x31bcf2(0x2214)]&&_0x2d2239[_0x31bcf2(0x1f2d)][_0x31bcf2(0x2214)][_0x31bcf2(0xfd0)]&&(_0x2d2239[_0x31bcf2(0x261d)]=_0x2d2239[_0x31bcf2(0x1f2d)]['rows'][0x0]);_0x2a71de['cloudProvider']['get']({'fields':_0x31bcf2(0x43c),'sort':_0x31bcf2(0x16b6),'nolimit':'true'})[_0x31bcf2(0x1d77)]['then'](function(_0x427335){const _0x3583aa=_0x31bcf2;_0x2d2239[_0x3583aa(0xfdc)]=_0x427335[_0x3583aa(0x2214)]||[];})[_0x31bcf2(0x1c4)](function(_0x3c4fd9){const _0x222c2e=_0x31bcf2;_0x2952c2[_0x222c2e(0x218e)]({'title':_0x3c4fd9[_0x222c2e(0x291)]?_0x222c2e(0xeb9)+_0x3c4fd9[_0x222c2e(0x291)]+_0x222c2e(0x1657)+_0x3c4fd9[_0x222c2e(0xc22)]:_0x222c2e(0x13dc),'msg':_0x3c4fd9[_0x222c2e(0x25c)]?JSON[_0x222c2e(0x2701)](_0x3c4fd9[_0x222c2e(0x25c)]):_0x3c4fd9[_0x222c2e(0x147f)]()});}),_0x2d2239[_0x31bcf2(0x107b)]=_0x698dfc;function _0x698dfc(){const _0x165214=_0x31bcf2;_0x2d2239['general']['id']?_0x2a71de[_0x165214(0x9ca)][_0x165214(0x687)]({'id':_0x2d2239['general']['id']},_0x2d2239[_0x165214(0x261d)])[_0x165214(0x1d77)][_0x165214(0x1cb0)](function(){const _0x1fe242=_0x165214;_0x2952c2[_0x1fe242(0x829)]({'title':_0x1fe242(0x19b7),'msg':_0x2d2239[_0x1fe242(0x261d)][_0x1fe242(0x16b6)]?_0x2d2239[_0x1fe242(0x261d)][_0x1fe242(0x16b6)]+_0x1fe242(0x1068):''});})[_0x165214(0x1c4)](function(_0x2b1bb5){const _0x3ab165=_0x165214;_0x2952c2['error']({'title':_0x2b1bb5[_0x3ab165(0x291)]?_0x3ab165(0xeb9)+_0x2b1bb5[_0x3ab165(0x291)]+_0x3ab165(0x1657)+_0x2b1bb5[_0x3ab165(0xc22)]:_0x3ab165(0x1740),'msg':_0x2b1bb5[_0x3ab165(0x25c)]?JSON['stringify'](_0x2b1bb5[_0x3ab165(0x25c)]):_0x2b1bb5[_0x3ab165(0x147f)]()});}):_0x2a71de['setting'][_0x165214(0x1c3f)](_0x2d2239[_0x165214(0x261d)])[_0x165214(0x1d77)][_0x165214(0x1cb0)](function(_0x3c7b18){const _0x3f256d=_0x165214;_0x39641b()[_0x3f256d(0x9c1)](_0x2d2239['general'],_0x3c7b18),_0x2952c2[_0x3f256d(0x829)]({'title':'General\x20updated!','msg':_0x2d2239[_0x3f256d(0x261d)]['name']?_0x2d2239[_0x3f256d(0x261d)][_0x3f256d(0x16b6)]+_0x3f256d(0x1068):''});})[_0x165214(0x1c4)](function(_0x1892d4){const _0x93bdcd=_0x165214;_0x2952c2['error']({'title':_0x1892d4[_0x93bdcd(0x291)]?_0x93bdcd(0xeb9)+_0x1892d4[_0x93bdcd(0x291)]+_0x93bdcd(0x1657)+_0x1892d4[_0x93bdcd(0xc22)]:_0x93bdcd(0x1740),'msg':_0x1892d4['data']?JSON[_0x93bdcd(0x2701)](_0x1892d4[_0x93bdcd(0x25c)]):_0x1892d4['toString']()});});}}const _0x293c24=_0x4fc19d;;_0x511325['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x406),'$location','$mdDialog','$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0x2709),_0x5537c6(0x21cc),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting'];function _0x511325(_0x632dff,_0x33e3cf,_0x5b34d4,_0x1cd45d,_0x19f276,_0x538837,_0x4fedc4,_0x536213,_0x128312,_0x28751b,_0x1bfc58,_0x14b2e5,_0x258668){const _0x546d1e=_0x5537c6,_0x4247ff=this;_0x4247ff[_0x546d1e(0xe76)]=_0x1bfc58[_0x546d1e(0x21e8)](),_0x4247ff[_0x546d1e(0x1a7c)]=[],_0x4247ff[_0x546d1e(0x9ca)]=_0x258668,_0x4247ff[_0x546d1e(0x8a5)]=_0x14b2e5,_0x4247ff[_0x546d1e(0xf4c)]={},_0x4247ff[_0x546d1e(0x1b0c)]=_0x4247ff[_0x546d1e(0x9ca)]&&_0x4247ff[_0x546d1e(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4247ff[_0x546d1e(0x1386)]=_0x546d1e(0xb42),_0x4247ff[_0x546d1e(0x21cc)]=angular[_0x546d1e(0x17fe)](_0x128312),_0x4247ff['networks']=_0x536213,_0x4247ff[_0x546d1e(0x19a4)]=![];!_0x4247ff[_0x546d1e(0x21cc)]&&(_0x4247ff['network']={'type':_0x546d1e(0x8b3)},_0x4247ff[_0x546d1e(0x1386)]='SETTINGS.NEW_NETWORK',_0x4247ff[_0x546d1e(0x19a4)]=!![]);_0x4247ff[_0x546d1e(0x25c6)]=_0x221270,_0x4247ff[_0x546d1e(0x1cbf)]=_0x44b034,_0x4247ff['deleteNetwork']=_0x4b555b,_0x4247ff['getDateFromString']=_0x49de7f,_0x4247ff[_0x546d1e(0xda0)]=_0x2751ea;function _0x221270(){const _0x55ea63=_0x546d1e;_0x4247ff[_0x55ea63(0x1a7c)]=[],_0x28751b[_0x55ea63(0x21cc)][_0x55ea63(0x1c3f)](_0x4247ff[_0x55ea63(0x21cc)])[_0x55ea63(0x1d77)][_0x55ea63(0x1cb0)](function(_0x20585f){const _0x1eaede=_0x55ea63;_0x4247ff[_0x1eaede(0x2709)][_0x1eaede(0xf63)](_0x20585f[_0x1eaede(0x19b2)]()),_0x4fedc4[_0x1eaede(0x829)]({'title':_0x1eaede(0x20a8),'msg':_0x4247ff['network'][_0x1eaede(0x16b6)]?_0x4247ff[_0x1eaede(0x21cc)][_0x1eaede(0x16b6)]+_0x1eaede(0x470):''}),_0x2751ea(_0x20585f);})['catch'](function(_0x37da3c){const _0x4b898a=_0x55ea63;if(_0x37da3c[_0x4b898a(0x25c)]&&_0x37da3c[_0x4b898a(0x25c)]['errors']&&_0x37da3c[_0x4b898a(0x25c)][_0x4b898a(0x1a7c)]['length']){_0x4247ff['errors']=_0x37da3c[_0x4b898a(0x25c)][_0x4b898a(0x1a7c)]||[{'message':_0x37da3c['toString'](),'type':'api.network.save'}];for(let _0x539e19=0x0;_0x539e19<_0x37da3c[_0x4b898a(0x25c)][_0x4b898a(0x1a7c)][_0x4b898a(0xfd0)];_0x539e19+=0x1){_0x4fedc4[_0x4b898a(0x218e)]({'title':_0x37da3c[_0x4b898a(0x25c)][_0x4b898a(0x1a7c)][_0x539e19][_0x4b898a(0x66a)],'msg':_0x37da3c['data'][_0x4b898a(0x1a7c)][_0x539e19][_0x4b898a(0x155e)]});}}else _0x4fedc4['error']({'title':_0x37da3c['status']?_0x4b898a(0xeb9)+_0x37da3c[_0x4b898a(0x291)]+_0x4b898a(0x1657)+_0x37da3c['statusText']:_0x4b898a(0x281a),'msg':_0x37da3c[_0x4b898a(0x25c)]?JSON[_0x4b898a(0x2701)](_0x37da3c[_0x4b898a(0x25c)]['message']):_0x37da3c[_0x4b898a(0x147f)]()});});}function _0x44b034(){const _0x20b13c=_0x546d1e;_0x4247ff[_0x20b13c(0x1a7c)]=[],_0x28751b[_0x20b13c(0x21cc)]['update']({'id':_0x4247ff['network']['id']},_0x4247ff[_0x20b13c(0x21cc)])[_0x20b13c(0x1d77)][_0x20b13c(0x1cb0)](function(_0x387524){const _0x497ae9=_0x20b13c,_0x105641=_0x39641b()[_0x497ae9(0x13b4)](_0x4247ff[_0x497ae9(0x2709)],{'id':_0x387524['id']});_0x105641&&_0x39641b()[_0x497ae9(0x9c1)](_0x105641,_0x39641b()[_0x497ae9(0x169b)](_0x387524[_0x497ae9(0x19b2)](),_0x39641b()[_0x497ae9(0x1be5)](_0x105641))),_0x4fedc4[_0x497ae9(0x829)]({'title':_0x497ae9(0x286c),'msg':_0x4247ff[_0x497ae9(0x21cc)][_0x497ae9(0x16b6)]?_0x4247ff['network'][_0x497ae9(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x2751ea(_0x387524);})[_0x20b13c(0x1c4)](function(_0x36da9a){const _0xff2ab5=_0x20b13c;if(_0x36da9a[_0xff2ab5(0x25c)]&&_0x36da9a[_0xff2ab5(0x25c)][_0xff2ab5(0x1a7c)]&&_0x36da9a['data']['errors']['length']){_0x4247ff[_0xff2ab5(0x1a7c)]=_0x36da9a[_0xff2ab5(0x25c)][_0xff2ab5(0x1a7c)]||[{'message':_0x36da9a[_0xff2ab5(0x147f)](),'type':_0xff2ab5(0xde6)}];for(let _0x168fd0=0x0;_0x168fd0<_0x36da9a[_0xff2ab5(0x25c)][_0xff2ab5(0x1a7c)]['length'];_0x168fd0++){_0x4fedc4[_0xff2ab5(0x218e)]({'title':_0x36da9a[_0xff2ab5(0x25c)][_0xff2ab5(0x1a7c)][_0x168fd0][_0xff2ab5(0x66a)],'msg':_0x36da9a['data'][_0xff2ab5(0x1a7c)][_0x168fd0][_0xff2ab5(0x155e)]});}}else _0x4fedc4[_0xff2ab5(0x218e)]({'title':_0x36da9a[_0xff2ab5(0x291)]?_0xff2ab5(0xeb9)+_0x36da9a['status']+_0xff2ab5(0x1657)+_0x36da9a[_0xff2ab5(0xc22)]:_0xff2ab5(0xde6),'msg':_0x36da9a['data']?JSON[_0xff2ab5(0x2701)](_0x36da9a[_0xff2ab5(0x25c)][_0xff2ab5(0x155e)]):_0x36da9a['toString']()});});}function _0x4b555b(_0xe3c084){const _0xa4a6f6=_0x546d1e;_0x4247ff[_0xa4a6f6(0x1a7c)]=[];const _0x40c44e=_0x1cd45d[_0xa4a6f6(0x1551)]()['title'](_0xa4a6f6(0x1a2e))[_0xa4a6f6(0x862)](_0xa4a6f6(0x3ad))[_0xa4a6f6(0x15ad)](_0xa4a6f6(0xa45))['ok'](_0xa4a6f6(0x2594))[_0xa4a6f6(0x696)](_0xa4a6f6(0xde1))[_0xa4a6f6(0x728)](_0xe3c084);_0x1cd45d[_0xa4a6f6(0xe27)](_0x40c44e)[_0xa4a6f6(0x1cb0)](function(){const _0x404d43=_0xa4a6f6;_0x28751b[_0x404d43(0x21cc)][_0x404d43(0x111d)]({'id':_0x4247ff['network']['id']})['$promise'][_0x404d43(0x1cb0)](function(){const _0x51bf09=_0x404d43;_0x39641b()[_0x51bf09(0x152a)](_0x4247ff[_0x51bf09(0x2709)],{'id':_0x4247ff[_0x51bf09(0x21cc)]['id']}),_0x4fedc4[_0x51bf09(0x829)]({'title':'Network\x20properly\x20deleted!','msg':(_0x4247ff[_0x51bf09(0x21cc)][_0x51bf09(0x16b6)]||_0x51bf09(0x21cc))+_0x51bf09(0x3f5)}),_0x2751ea(_0x4247ff[_0x51bf09(0x21cc)]);})[_0x404d43(0x1c4)](function(_0x495ea9){const _0x5d5eb6=_0x404d43;if(_0x495ea9['data']&&_0x495ea9[_0x5d5eb6(0x25c)][_0x5d5eb6(0x1a7c)]&&_0x495ea9[_0x5d5eb6(0x25c)][_0x5d5eb6(0x1a7c)][_0x5d5eb6(0xfd0)]){_0x4247ff[_0x5d5eb6(0x1a7c)]=_0x495ea9[_0x5d5eb6(0x25c)]['errors']||[{'message':_0x495ea9[_0x5d5eb6(0x147f)](),'type':_0x5d5eb6(0x21a7)}];for(let _0x449ab9=0x0;_0x449ab9<_0x495ea9[_0x5d5eb6(0x25c)][_0x5d5eb6(0x1a7c)][_0x5d5eb6(0xfd0)];_0x449ab9++){_0x4fedc4[_0x5d5eb6(0x218e)]({'title':_0x495ea9[_0x5d5eb6(0x25c)][_0x5d5eb6(0x1a7c)][_0x449ab9]['type'],'msg':_0x495ea9[_0x5d5eb6(0x25c)][_0x5d5eb6(0x1a7c)][_0x449ab9]['message']});}}else _0x4fedc4[_0x5d5eb6(0x218e)]({'title':_0x495ea9[_0x5d5eb6(0x291)]?_0x5d5eb6(0xeb9)+_0x495ea9[_0x5d5eb6(0x291)]+_0x5d5eb6(0x1657)+_0x495ea9['statusText']:_0x5d5eb6(0x21a7),'msg':_0x495ea9[_0x5d5eb6(0x25c)]?JSON[_0x5d5eb6(0x2701)](_0x495ea9[_0x5d5eb6(0x25c)][_0x5d5eb6(0x155e)]):_0x495ea9['message']||_0x495ea9['toString']()});});},function(){});}function _0x49de7f(_0x42cff8){return _0x42cff8===null?undefined:new Date(_0x42cff8);}function _0x2751ea(_0xdf8be7){const _0xd7111b=_0x546d1e;_0x1cd45d[_0xd7111b(0x1426)](_0xdf8be7);}}const _0xffb594=_0x511325;;const _0x5e21ae=_0x5074a3['p']+_0x5537c6(0xbb4);;_0xc97f6d[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),'$mdSidenav',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),'networks',_0x5537c6(0x142b),'msUtils',_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0xc97f6d(_0x20ab54,_0x3e366c,_0xdd3814,_0x2c45d7,_0x59eddd,_0x2a0d49,_0x51f7ee,_0x4698ab,_0x3cb08d,_0xb92ca,_0x18a370,_0x829b0e,_0x44361a,_0x2b0c63,_0x19550){const _0x5abe76=_0x5537c6,_0x4b036b=this;_0x4b036b['license']=_0x2b0c63,_0x4b036b[_0x5abe76(0x9ca)]=_0x19550,_0x4b036b[_0x5abe76(0xe76)]=_0x44361a[_0x5abe76(0x21e8)](),_0x4b036b[_0x5abe76(0x2709)]=_0x3cb08d||{'count':0x0,'rows':[]},_0x4b036b['table']=_0x5abe76(0x2709),_0x4b036b[_0x5abe76(0x1d20)]='',_0x4b036b[_0x5abe76(0x1cdf)]=null,_0x4b036b[_0x5abe76(0xe32)]=[],_0x4b036b['query']={'fields':_0x5abe76(0x301),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x4b036b[_0x5abe76(0x101d)]=_0x39641b()[_0x5abe76(0x2631)]([{'option':_0x5abe76(0x2649),'value':_0x5abe76(0x566)},{'option':_0x5abe76(0x291b),'value':_0x5abe76(0xf88)},{'option':'Turn','value':_0x5abe76(0xaa8)},{'option':'Stun','value':_0x5abe76(0xd49)}],function(_0x3fd1a3){const _0x188be5=_0x5abe76;return _0x39641b()[_0x188be5(0x288f)](_0x3fd1a3[_0x188be5(0x327)],new RegExp('\x27','g'),'');}),_0x4b036b['editdialog']=_0x55c6d0,_0x4b036b[_0x5abe76(0x27fe)]=_0x6bd3f9,_0x4b036b[_0x5abe76(0x829)]=_0x48ee74,_0x4b036b[_0x5abe76(0x2df)]=_0x465f9f,_0x4b036b['createOrEditNetwork']=_0xec139c,_0x4b036b['deleteNetwork']=_0x53b516,_0x4b036b[_0x5abe76(0x2628)]=_0x35cb82,_0x4b036b[_0x5abe76(0xd12)]=_0x48bf25,_0x4b036b[_0x5abe76(0x986)]=_0x2cfe3d,_0x4b036b[_0x5abe76(0xea9)]=_0x35f30f;function _0x55c6d0(_0x435c4b,_0x374f94){const _0x1910d8=_0x5abe76;_0x59eddd[_0x1910d8(0xe27)]({'controller':_0x1910d8(0x4cd),'controllerAs':'vm','templateUrl':_0x5e21ae,'parent':angular['element'](_0x2a0d49[_0x1910d8(0x1ed9)]),'targetEvent':_0x374f94,'clickOutsideToClose':!![],'locals':{'network':_0x435c4b,'networks':_0x4b036b['networks'][_0x1910d8(0x2214)],'license':_0x4b036b['license'],'setting':null,'crudPermissions':_0x4b036b['crudPermissions']}});}function _0x6bd3f9(_0x43fd84,_0x28095b){const _0x15a99f=_0x5abe76,_0x39eb15=_0x59eddd[_0x15a99f(0x1551)]()['title'](_0x15a99f(0x140b)+_0x39641b()[_0x15a99f(0xa75)](_0x15a99f(0x21cc))+'?')['htmlContent'](''+(_0x43fd84[_0x15a99f(0x16b6)]||_0x15a99f(0x21cc))+_0x15a99f(0x1200)+_0x15a99f(0x1b6))[_0x15a99f(0x15ad)](_0x15a99f(0x1c5d))[_0x15a99f(0x728)](_0x28095b)['ok']('OK')[_0x15a99f(0x696)](_0x15a99f(0x24ba));_0x59eddd[_0x15a99f(0xe27)](_0x39eb15)[_0x15a99f(0x1cb0)](function(){_0x53b516(_0x43fd84);},function(){const _0x5cfdc6=_0x15a99f;console[_0x5cfdc6(0x1b4f)](_0x5cfdc6(0x24ba));});}let _0x4c4711=!![],_0x5de7cd=0x1;_0x20ab54[_0x5abe76(0x614)](_0x5abe76(0x957),function(_0x25aaa7,_0xe8c44){const _0x48b505=_0x5abe76;_0x4c4711?_0x51f7ee(function(){_0x4c4711=![];}):(!_0xe8c44&&(_0x5de7cd=_0x4b036b[_0x48b505(0xae2)]['page']),_0x25aaa7!==_0xe8c44&&(_0x4b036b[_0x48b505(0xae2)]['page']=0x1),!_0x25aaa7&&(_0x4b036b[_0x48b505(0xae2)]['page']=_0x5de7cd),_0x4b036b[_0x48b505(0x2df)]());});function _0x48ee74(_0x476864){_0x4b036b['networks']=_0x476864||{'count':0x0,'rows':[]};}function _0x465f9f(){const _0x4544b8=_0x5abe76;_0x4b036b[_0x4544b8(0xae2)][_0x4544b8(0x184b)]=(_0x4b036b['query'][_0x4544b8(0x1c7b)]-0x1)*_0x4b036b[_0x4544b8(0xae2)][_0x4544b8(0x236)],_0x44361a[_0x4544b8(0x22b6)](_0x4544b8(0x1c60))?_0x4b036b[_0x4544b8(0x2061)]=_0xb92ca[_0x4544b8(0x21cc)]['get'](_0x4b036b['query'],_0x48ee74)[_0x4544b8(0x1d77)]:(_0x4b036b[_0x4544b8(0xae2)]['id']=_0x4b036b[_0x4544b8(0x44a)]['id'],_0x4b036b[_0x4544b8(0xae2)][_0x4544b8(0x1f74)]=_0x4544b8(0x22af),_0x4b036b[_0x4544b8(0x2061)]=_0xb92ca[_0x4544b8(0x44a)]['getResources'](_0x4b036b[_0x4544b8(0xae2)],_0x48ee74)[_0x4544b8(0x1d77)]);}function _0xec139c(_0x451bbd,_0x3a5179){const _0x130b46=_0x5abe76;_0x59eddd[_0x130b46(0xe27)]({'controller':_0x130b46(0x4cd),'controllerAs':'vm','templateUrl':_0x5e21ae,'parent':angular['element'](_0x2a0d49[_0x130b46(0x1ed9)]),'targetEvent':_0x451bbd,'clickOutsideToClose':!![],'locals':{'network':_0x3a5179,'networks':_0x4b036b[_0x130b46(0x2709)][_0x130b46(0x2214)],'license':_0x4b036b[_0x130b46(0x8a5)],'setting':_0x4b036b[_0x130b46(0x9ca)],'crudPermissions':_0x4b036b[_0x130b46(0x1b1a)]}});}function _0x53b516(_0x140445){const _0x16c45f=_0x5abe76;_0xb92ca[_0x16c45f(0x21cc)][_0x16c45f(0x111d)]({'id':_0x140445['id']})[_0x16c45f(0x1d77)][_0x16c45f(0x1cb0)](function(){const _0x1041f2=_0x16c45f;_0x39641b()[_0x1041f2(0x152a)](_0x4b036b[_0x1041f2(0x2709)][_0x1041f2(0x2214)],{'id':_0x140445['id']}),_0x4b036b[_0x1041f2(0x2709)]['count']-=0x1,!_0x4b036b[_0x1041f2(0x2709)][_0x1041f2(0x2214)][_0x1041f2(0xfd0)]&&_0x4b036b[_0x1041f2(0x2df)](),_0x829b0e[_0x1041f2(0x829)]({'title':_0x39641b()[_0x1041f2(0xa75)](_0x1041f2(0x117b))+_0x1041f2(0x2663),'msg':_0x140445[_0x1041f2(0x16b6)]?_0x140445[_0x1041f2(0x16b6)]+_0x1041f2(0x3f5):''});})[_0x16c45f(0x1c4)](function(_0x3181d0){const _0x3604c8=_0x16c45f;if(_0x3181d0[_0x3604c8(0x25c)]&&_0x3181d0['data'][_0x3604c8(0x1a7c)]&&_0x3181d0['data'][_0x3604c8(0x1a7c)]['length']){_0x4b036b[_0x3604c8(0x1a7c)]=_0x3181d0[_0x3604c8(0x25c)][_0x3604c8(0x1a7c)]||[{'message':_0x3181d0['toString'](),'type':_0x3604c8(0x451)}];for(let _0x3f1ca0=0x0;_0x3f1ca0<_0x3181d0['data'][_0x3604c8(0x1a7c)][_0x3604c8(0xfd0)];_0x3f1ca0++){_0x829b0e[_0x3604c8(0x218e)]({'title':_0x3181d0[_0x3604c8(0x25c)][_0x3604c8(0x1a7c)][_0x3f1ca0][_0x3604c8(0x66a)],'msg':_0x3181d0[_0x3604c8(0x25c)][_0x3604c8(0x1a7c)][_0x3f1ca0]['message']});}}else _0x829b0e[_0x3604c8(0x218e)]({'title':_0x3181d0[_0x3604c8(0x291)]?_0x3604c8(0xeb9)+_0x3181d0[_0x3604c8(0x291)]+_0x3604c8(0x1657)+_0x3181d0['statusText']:_0x3604c8(0x451),'msg':_0x3181d0[_0x3604c8(0x25c)]?JSON[_0x3604c8(0x2701)](_0x3181d0[_0x3604c8(0x25c)]['message']):_0x3181d0[_0x3604c8(0x155e)]||_0x3181d0['toString']()});});}function _0x35cb82(){const _0x39044d=_0x5abe76,_0x46b2a7=angular['copy'](_0x4b036b[_0x39044d(0xe32)]);return _0x4b036b[_0x39044d(0xe32)]=[],_0x46b2a7;}function _0x48bf25(_0x48c83b){const _0x17e77f=_0x5abe76,_0x42053e=_0x59eddd[_0x17e77f(0x1551)]()[_0x17e77f(0x1386)](_0x17e77f(0x1b5a))[_0x17e77f(0x49e)](_0x17e77f(0x204d)+_0x4b036b[_0x17e77f(0xe32)][_0x17e77f(0xfd0)]+_0x17e77f(0x1d6c)+_0x17e77f(0x1b6))[_0x17e77f(0x15ad)]('delete\x20Networks')[_0x17e77f(0x728)](_0x48c83b)['ok']('OK')[_0x17e77f(0x696)](_0x17e77f(0x24ba));_0x59eddd[_0x17e77f(0xe27)](_0x42053e)[_0x17e77f(0x1cb0)](function(){const _0x52b97c=_0x17e77f;_0x4b036b[_0x52b97c(0xe32)][_0x52b97c(0xf90)](function(_0x484f09){_0x53b516(_0x484f09);}),_0x4b036b['selectedNetworks']=[];});}function _0x2cfe3d(){_0x4b036b['selectedNetworks']=[];}function _0x35f30f(){const _0x234dcc=_0x5abe76;_0x4b036b[_0x234dcc(0xe32)]=_0x4b036b[_0x234dcc(0x2709)]['rows'];}}const _0x25b378=_0xc97f6d;;_0x34171f[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state',_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x2857),'smtp','api',_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),'crudPermissions'];function _0x34171f(_0x30d524,_0x358861,_0x209a75,_0x155c27,_0x4c0b87,_0x44e908,_0x38ace4,_0xdedb76,_0x4fdb7c,_0x154c94,_0x410980,_0x2f7e26,_0x254a51,_0x55a69b){const _0x19f217=_0x5537c6,_0x4578fe=this;_0x4578fe[_0x19f217(0xe76)]=_0x410980['getCurrentUser'](),_0x4578fe['errors']=[],_0x4578fe[_0x19f217(0x9ca)]=_0x254a51,_0x4578fe[_0x19f217(0x8a5)]=_0x2f7e26,_0x4578fe[_0x19f217(0x1b1a)]=_0x55a69b,_0x4578fe[_0x19f217(0xf4c)]={},_0x4578fe[_0x19f217(0x1b0c)]=_0x4578fe[_0x19f217(0x9ca)]&&_0x4578fe[_0x19f217(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4578fe[_0x19f217(0x1386)]=_0x19f217(0x771),_0x4578fe[_0x19f217(0x1d3c)]=angular['copy'](_0x4fdb7c),_0x4578fe['smtps']=_0xdedb76,_0x4578fe[_0x19f217(0x265a)]=![];!_0x4578fe[_0x19f217(0x1d3c)]&&(_0x4578fe[_0x19f217(0x1d3c)]={'service':!![]},_0x4578fe[_0x19f217(0x1386)]='SETTINGS.NEW_SMTP',_0x4578fe['newSmtp']=!![]);_0x4578fe[_0x19f217(0x1c98)]=_0x357908,_0x4578fe['saveSmtp']=_0x2899a2,_0x4578fe[_0x19f217(0x32a)]=_0x39963a,_0x4578fe[_0x19f217(0x2c4)]=_0x5f2dbf,_0x4578fe[_0x19f217(0xda0)]=_0x3c322a;function _0x357908(){const _0x35d356=_0x19f217;_0x4578fe['errors']=[],_0x154c94[_0x35d356(0x131c)][_0x35d356(0x1c3f)](_0x4578fe[_0x35d356(0x1d3c)])['$promise'][_0x35d356(0x1cb0)](function(_0x12bea2){const _0x18e5a3=_0x35d356;_0x4578fe[_0x18e5a3(0x2857)]['unshift'](_0x12bea2[_0x18e5a3(0x19b2)]()),_0x38ace4['success']({'title':_0x18e5a3(0xa98),'msg':_0x4578fe[_0x18e5a3(0x1d3c)][_0x18e5a3(0x16b6)]?_0x4578fe[_0x18e5a3(0x1d3c)][_0x18e5a3(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x3c322a(_0x12bea2);})[_0x35d356(0x1c4)](function(_0x46b31d){const _0x3ec370=_0x35d356;if(_0x46b31d[_0x3ec370(0x25c)]&&_0x46b31d[_0x3ec370(0x25c)][_0x3ec370(0x1a7c)]&&_0x46b31d['data']['errors'][_0x3ec370(0xfd0)]){_0x4578fe[_0x3ec370(0x1a7c)]=_0x46b31d[_0x3ec370(0x25c)][_0x3ec370(0x1a7c)]||[{'message':_0x46b31d[_0x3ec370(0x147f)](),'type':_0x3ec370(0x2258)}];for(let _0x18cf3c=0x0;_0x18cf3c<_0x46b31d[_0x3ec370(0x25c)][_0x3ec370(0x1a7c)][_0x3ec370(0xfd0)];_0x18cf3c+=0x1){_0x38ace4['error']({'title':_0x46b31d[_0x3ec370(0x25c)][_0x3ec370(0x1a7c)][_0x18cf3c][_0x3ec370(0x66a)],'msg':_0x46b31d['data'][_0x3ec370(0x1a7c)][_0x18cf3c]['message']});}}else _0x38ace4['error']({'title':_0x46b31d['status']?'API:'+_0x46b31d['status']+_0x3ec370(0x1657)+_0x46b31d[_0x3ec370(0xc22)]:_0x3ec370(0x2258),'msg':_0x46b31d[_0x3ec370(0x25c)]?JSON[_0x3ec370(0x2701)](_0x46b31d[_0x3ec370(0x25c)][_0x3ec370(0x155e)]):_0x46b31d[_0x3ec370(0x147f)]()});});}function _0x2899a2(){const _0xd29733=_0x19f217;_0x4578fe[_0xd29733(0x1a7c)]=[],_0x154c94[_0xd29733(0x131c)]['update']({'id':_0x4578fe[_0xd29733(0x1d3c)]['id']},_0x4578fe['smtp'])[_0xd29733(0x1d77)][_0xd29733(0x1cb0)](function(_0x3588c0){const _0x4d49f5=_0xd29733,_0x6ec576=_0x39641b()[_0x4d49f5(0x13b4)](_0x4578fe[_0x4d49f5(0x2857)],{'id':_0x3588c0['id']});_0x6ec576&&_0x39641b()[_0x4d49f5(0x9c1)](_0x6ec576,_0x39641b()[_0x4d49f5(0x169b)](_0x3588c0[_0x4d49f5(0x19b2)](),_0x39641b()[_0x4d49f5(0x1be5)](_0x6ec576))),_0x38ace4['success']({'title':'Smtp\x20properly\x20saved!','msg':_0x4578fe[_0x4d49f5(0x1d3c)][_0x4d49f5(0x16b6)]?_0x4578fe[_0x4d49f5(0x1d3c)][_0x4d49f5(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x3c322a(_0x3588c0);})[_0xd29733(0x1c4)](function(_0xe96acb){const _0x1cd810=_0xd29733;if(_0xe96acb[_0x1cd810(0x25c)]&&_0xe96acb[_0x1cd810(0x25c)][_0x1cd810(0x1a7c)]&&_0xe96acb[_0x1cd810(0x25c)]['errors'][_0x1cd810(0xfd0)]){_0x4578fe[_0x1cd810(0x1a7c)]=_0xe96acb['data'][_0x1cd810(0x1a7c)]||[{'message':_0xe96acb[_0x1cd810(0x147f)](),'type':'api.mailAccount.update'}];for(let _0x1b8fc0=0x0;_0x1b8fc0<_0xe96acb[_0x1cd810(0x25c)]['errors'][_0x1cd810(0xfd0)];_0x1b8fc0++){_0x38ace4[_0x1cd810(0x218e)]({'title':_0xe96acb[_0x1cd810(0x25c)][_0x1cd810(0x1a7c)][_0x1b8fc0]['type'],'msg':_0xe96acb[_0x1cd810(0x25c)][_0x1cd810(0x1a7c)][_0x1b8fc0]['message']});}}else _0x38ace4[_0x1cd810(0x218e)]({'title':_0xe96acb['status']?_0x1cd810(0xeb9)+_0xe96acb[_0x1cd810(0x291)]+_0x1cd810(0x1657)+_0xe96acb['statusText']:'api.mailAccount.update','msg':_0xe96acb[_0x1cd810(0x25c)]?JSON['stringify'](_0xe96acb[_0x1cd810(0x25c)]['message']):_0xe96acb[_0x1cd810(0x147f)]()});});}function _0x39963a(_0x4e16ee){const _0x515e6f=_0x19f217;_0x4578fe[_0x515e6f(0x1a7c)]=[];const _0x372332=_0x155c27[_0x515e6f(0x1551)]()['title'](_0x515e6f(0x1a2e))[_0x515e6f(0x862)]('The\x20smtp\x20will\x20be\x20deleted.')['ariaLabel'](_0x515e6f(0x177c))['ok'](_0x515e6f(0x2594))[_0x515e6f(0x696)](_0x515e6f(0xde1))[_0x515e6f(0x728)](_0x4e16ee);_0x155c27['show'](_0x372332)[_0x515e6f(0x1cb0)](function(){const _0x368ef0=_0x515e6f;_0x154c94[_0x368ef0(0x131c)][_0x368ef0(0x111d)]({'id':_0x4578fe[_0x368ef0(0x1d3c)]['id']})[_0x368ef0(0x1d77)][_0x368ef0(0x1cb0)](function(){const _0x43c93b=_0x368ef0;_0x39641b()[_0x43c93b(0x152a)](_0x4578fe[_0x43c93b(0x2857)],{'id':_0x4578fe[_0x43c93b(0x1d3c)]['id']}),_0x38ace4[_0x43c93b(0x829)]({'title':_0x43c93b(0x83b),'msg':(_0x4578fe[_0x43c93b(0x1d3c)][_0x43c93b(0x16b6)]||_0x43c93b(0x1d3c))+'\x20has\x20been\x20deleted!'}),_0x3c322a(_0x4578fe[_0x43c93b(0x1d3c)]);})['catch'](function(_0x5b29e4){const _0x4cca1a=_0x368ef0;if(_0x5b29e4[_0x4cca1a(0x25c)]&&_0x5b29e4[_0x4cca1a(0x25c)]['errors']&&_0x5b29e4['data']['errors']['length']){_0x4578fe[_0x4cca1a(0x1a7c)]=_0x5b29e4[_0x4cca1a(0x25c)][_0x4cca1a(0x1a7c)]||[{'message':_0x5b29e4[_0x4cca1a(0x147f)](),'type':_0x4cca1a(0x19ca)}];for(let _0x5befbc=0x0;_0x5befbc<_0x5b29e4[_0x4cca1a(0x25c)]['errors'][_0x4cca1a(0xfd0)];_0x5befbc++){_0x38ace4[_0x4cca1a(0x218e)]({'title':_0x5b29e4[_0x4cca1a(0x25c)]['errors'][_0x5befbc][_0x4cca1a(0x66a)],'msg':_0x5b29e4[_0x4cca1a(0x25c)][_0x4cca1a(0x1a7c)][_0x5befbc]['message']});}}else _0x38ace4[_0x4cca1a(0x218e)]({'title':_0x5b29e4[_0x4cca1a(0x291)]?_0x4cca1a(0xeb9)+_0x5b29e4[_0x4cca1a(0x291)]+'\x20-\x20'+_0x5b29e4[_0x4cca1a(0xc22)]:_0x4cca1a(0x19ca),'msg':_0x5b29e4[_0x4cca1a(0x25c)]?JSON[_0x4cca1a(0x2701)](_0x5b29e4[_0x4cca1a(0x25c)][_0x4cca1a(0x155e)]):_0x5b29e4[_0x4cca1a(0x155e)]||_0x5b29e4['toString']()});});},function(){});}function _0x5f2dbf(_0x5983d1){return _0x5983d1===null?undefined:new Date(_0x5983d1);}function _0x3c322a(_0x23feb7){const _0x351521=_0x19f217;_0x155c27[_0x351521(0x1426)](_0x23feb7);}}const _0x4edac6=_0x34171f;;_0x5624b5[_0x5537c6(0x15b6)]=[_0x5537c6(0x2857),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x8a5),'Auth'];function _0x5624b5(_0x34d333,_0x70e1cd,_0x256c05,_0x3f7208,_0x51ce1e){const _0x46e400=_0x5537c6,_0x3e75f4=this;_0x3e75f4[_0x46e400(0xe76)]=_0x51ce1e[_0x46e400(0x21e8)](),_0x3e75f4[_0x46e400(0x8a5)]=_0x3f7208,_0x3e75f4['smtps']=_0x34d333,_0x3e75f4[_0x46e400(0x1d3c)]={};_0x3e75f4[_0x46e400(0x2857)]&&_0x3e75f4[_0x46e400(0x2857)][_0x46e400(0x2214)]&&_0x3e75f4[_0x46e400(0x2857)][_0x46e400(0x2214)][_0x46e400(0xfd0)]?_0x3e75f4[_0x46e400(0x1d3c)]=_0x3e75f4[_0x46e400(0x2857)][_0x46e400(0x2214)][0x0]:_0x3e75f4[_0x46e400(0x1d3c)]={'service':!![],'Smtp':{'service':null}};_0x3e75f4['saveSmtp']=_0x6caea3,_0x3e75f4[_0x46e400(0x268a)]=_0x65cb85;function _0x65cb85(){const _0x1cc1e6=_0x46e400;_0x3e75f4[_0x1cc1e6(0x1d3c)]['id']&&_0x70e1cd['mailAccount'][_0x1cc1e6(0x268a)]({'id':_0x3e75f4[_0x1cc1e6(0x1d3c)]['id']})[_0x1cc1e6(0x1d77)]['then'](function(){const _0x549a00=_0x1cc1e6;_0x256c05['success']({'title':_0x549a00(0x411),'msg':_0x3e75f4[_0x549a00(0x1d3c)][_0x549a00(0x16b6)]?_0x3e75f4[_0x549a00(0x1d3c)]['name']+'\x20has\x20been\x20verified!':''});})[_0x1cc1e6(0x1c4)](function(_0x29c941){const _0x42b5b1=_0x1cc1e6;_0x256c05[_0x42b5b1(0x218e)]({'title':_0x42b5b1(0x1fc0),'msg':_0x29c941[_0x42b5b1(0x25c)]?JSON[_0x42b5b1(0x2701)](_0x29c941[_0x42b5b1(0x25c)]):_0x29c941[_0x42b5b1(0x147f)](),'timeout':0x2710});});}function _0x6caea3(){const _0x1aed7e=_0x46e400;_0x3e75f4['smtp']['id']?_0x70e1cd['mailAccount'][_0x1aed7e(0x687)]({'id':_0x3e75f4[_0x1aed7e(0x1d3c)]['id']},_0x3e75f4['smtp'])[_0x1aed7e(0x1d77)][_0x1aed7e(0x1cb0)](function(){const _0x28721d=_0x1aed7e;_0x256c05[_0x28721d(0x829)]({'title':'Smtp\x20updated!','msg':_0x3e75f4['smtp']['name']?_0x3e75f4[_0x28721d(0x1d3c)][_0x28721d(0x16b6)]+'\x20has\x20been\x20updated!':''});})[_0x1aed7e(0x1c4)](function(_0x2cfcfd){const _0x33dcc4=_0x1aed7e;_0x256c05[_0x33dcc4(0x218e)]({'title':_0x2cfcfd[_0x33dcc4(0x291)]?_0x33dcc4(0xeb9)+_0x2cfcfd[_0x33dcc4(0x291)]+_0x33dcc4(0x1657)+_0x2cfcfd['statusText']:_0x33dcc4(0x1d2a),'msg':_0x2cfcfd['data']?JSON[_0x33dcc4(0x2701)](_0x2cfcfd['data']):_0x2cfcfd['toString']()});}):_0x70e1cd['mailAccount'][_0x1aed7e(0x1c3f)](_0x3e75f4[_0x1aed7e(0x1d3c)])['$promise'][_0x1aed7e(0x1cb0)](function(_0x180cac){const _0x4ac820=_0x1aed7e;_0x39641b()['merge'](_0x3e75f4[_0x4ac820(0x1d3c)],_0x180cac),_0x256c05['success']({'title':_0x4ac820(0x1d2f),'msg':_0x3e75f4[_0x4ac820(0x1d3c)][_0x4ac820(0x16b6)]?_0x3e75f4[_0x4ac820(0x1d3c)]['name']+_0x4ac820(0x1068):''});})['catch'](function(_0x52e29){const _0x30ee5c=_0x1aed7e;_0x256c05[_0x30ee5c(0x218e)]({'title':_0x52e29[_0x30ee5c(0x291)]?_0x30ee5c(0xeb9)+_0x52e29[_0x30ee5c(0x291)]+_0x30ee5c(0x1657)+_0x52e29[_0x30ee5c(0xc22)]:'SYSTEM:GETmailAccount','msg':_0x52e29['data']?JSON[_0x30ee5c(0x2701)](_0x52e29['data']):_0x52e29[_0x30ee5c(0x147f)]()});});}}const _0x259b9c=_0x5624b5;;_0x2db644[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6),_0x5537c6(0x1f2a)];function _0x2db644(_0x31ba20,_0x55d1c7){const _0x1da83c=_0x5537c6;_0x31ba20[_0x1da83c(0x27e0)]('app.settings',{'abstract':!![],'url':_0x1da83c(0xdd7)})['state'](_0x1da83c(0x11eb),{'url':_0x1da83c(0x1ad0),'views':{'content@app':{'templateUrl':_0x39858c,'controller':_0x1da83c(0x104d)}},'resolve':{'generals':[_0x1da83c(0x1e0b),function(_0x1bdb44){const _0x292574=_0x1da83c;return _0x1bdb44[_0x292574(0x19a3)](_0x292574(0x657),{'fields':_0x292574(0x599),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'})[_0x1da83c(0x27e0)](_0x1da83c(0x10bc),{'url':_0x1da83c(0x1f07),'views':{'content@app':{'templateUrl':_0x531e03,'controller':_0x1da83c(0x13b9)}},'resolve':{'smtps':[_0x1da83c(0x1e0b),function(_0x159738){const _0x3a3c0d=_0x1da83c;return _0x159738[_0x3a3c0d(0x19a3)]('mailAccount@get',{'fields':_0x3a3c0d(0x27c8),'service':'1','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x1da83c(0x285a)})[_0x1da83c(0x27e0)](_0x1da83c(0x2906),{'url':_0x1da83c(0x19bb),'views':{'content@app':{'templateUrl':_0x16177e,'controller':_0x1da83c(0xcaf)}},'resolve':{'networks':['apiResolver',function(_0x43b3f6){const _0x34d863=_0x1da83c;return _0x43b3f6[_0x34d863(0x19a3)](_0x34d863(0x1bd0),{'fields':_0x34d863(0x301),'sort':_0x34d863(0x282),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x1da83c(0x285a)})[_0x1da83c(0x27e0)]('app.settings.customizations',{'url':_0x1da83c(0x415),'views':{'content@app':{'templateUrl':_0x47d6d1,'controller':_0x1da83c(0x9fc)}},'resolve':{'customizations':['apiResolver',function(_0x11c6d0){const _0x4c7c7a=_0x1da83c;return _0x11c6d0[_0x4c7c7a(0x19a3)](_0x4c7c7a(0x657),{'fields':_0x4c7c7a(0x369),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x1da83c(0x285a)})[_0x1da83c(0x27e0)](_0x1da83c(0x1c0),{'url':'/cloudProviders','views':{'content@app':{'templateUrl':_0x7782ad,'controller':_0x1da83c(0x237d)}},'resolve':{'cloudProviders':[_0x1da83c(0x1e0b),function(_0xd2a901){const _0x200100=_0x1da83c;return _0xd2a901[_0x200100(0x19a3)](_0x200100(0xdce),{'fields':_0x200100(0x1414),'sort':_0x200100(0x282),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x1da83c(0x285a)}),_0x55d1c7[_0x1da83c(0x4e7)](_0x1da83c(0x654));}angular[_0x5537c6(0x9ab)](_0x5537c6(0x1b84),[_0x5537c6(0x2770),'ngPassword',_0x5537c6(0x1260),_0x5537c6(0xacf),_0x5537c6(0x18f6),_0x5537c6(0xd19),_0x5537c6(0x44c),_0x5537c6(0x2ec),_0x5537c6(0x1890),_0x5537c6(0x167d),_0x5537c6(0x208f),'mwFormViewer','mwFormUtils','ngclipboard',_0x5537c6(0x7c9),_0x5537c6(0xeb5),_0x5537c6(0x27af),_0x5537c6(0x13b6),_0x5537c6(0x1cbd),_0x5537c6(0xd01),'app.settings.updates','app.settings.license',_0x5537c6(0x1cd9)])['config'](_0x2db644)[_0x5537c6(0x6e5)](_0x5537c6(0xdca),_0x298b0a)[_0x5537c6(0x6e5)](_0x5537c6(0x17f9),_0x19e65f)[_0x5537c6(0x6e5)](_0x5537c6(0xce8),_0x4afd27)['controller'](_0x5537c6(0x24da),_0x158a34)[_0x5537c6(0x6e5)]('CustomizationfaviconController',_0x5df1bb)['controller'](_0x5537c6(0x1514),_0xd3526f)[_0x5537c6(0x6e5)](_0x5537c6(0x1878),_0x16d8d2)[_0x5537c6(0x6e5)](_0x5537c6(0x1364),_0x4f4717)[_0x5537c6(0x6e5)]('CreateOrEditGeneralDialogController',_0x32edd5)[_0x5537c6(0x6e5)](_0x5537c6(0x1967),_0x293c24)[_0x5537c6(0x6e5)](_0x5537c6(0x4cd),_0xffb594)[_0x5537c6(0x6e5)](_0x5537c6(0x20d3),_0x25b378)['controller']('CreateOrEditSmtpDialogController',_0x4edac6)[_0x5537c6(0x6e5)]('SmtpController',_0x259b9c);;const _0x4fa45b=_0x5074a3['p']+'src/js/modules/main/apps/motiondialer/views/realtime/realtime.html/realtime.html';;const _0x524405=_0x5074a3['p']+'src/js/modules/main/apps/motiondialer/views/realtime/agents/view.html/view.html';;const _0x3c97b8=_0x5074a3['p']+_0x5537c6(0x1009);;const _0x416b40=_0x5074a3['p']+_0x5537c6(0x192);;const _0x352a71=_0x5074a3['p']+_0x5537c6(0x1158);;const _0x423cde=_0x5074a3['p']+_0x5537c6(0x1a23);;const _0x2b8c0f=_0x5074a3['p']+_0x5537c6(0x21c2);;const _0xbcf966=_0x5074a3['p']+_0x5537c6(0x1fed);;_0x261394['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1f10),_0x5537c6(0x1ae),_0x5537c6(0x142b),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x1774),'socket',_0x5537c6(0x9bf),'agents',_0x5537c6(0xdf2)];function _0x261394(_0x5b745e,_0x810b2,_0x261f6b,_0x4b6f77,_0x14e240,_0x5988e8,_0x226677,_0x2955be,_0x4419f2,_0x3a8688,_0xd31318,_0x2bef9b,_0x56b6b8,_0x2357d9){const _0x46a66e=_0x5537c6,_0x292bbb=this;_0x292bbb[_0x46a66e(0xe76)]=_0x3a8688['getCurrentUser'](),_0x292bbb[_0x46a66e(0xc12)]=_0x56b6b8?_0x56b6b8:[],_0x292bbb[_0x46a66e(0xdf2)]=_0x2357d9,_0x292bbb[_0x46a66e(0x292f)]={'count':0x0,'rows':[]},_0x292bbb[_0x46a66e(0x16fe)]=![],_0x292bbb[_0x46a66e(0x576)]=!![],_0x292bbb[_0x46a66e(0x44a)]=_0x2955be,_0x292bbb[_0x46a66e(0x2199)]=_0x4419f2&&_0x4419f2[_0x46a66e(0x184d)]==0x1?_0x4419f2[_0x46a66e(0x2214)][0x0]:null,_0x292bbb[_0x46a66e(0x1b1a)]=_0x3a8688[_0x46a66e(0x14ea)](_0x292bbb[_0x46a66e(0x2199)]?_0x292bbb[_0x46a66e(0x2199)][_0x46a66e(0x1b1a)]:null),_0x292bbb[_0x46a66e(0xae2)]={'fields':_0x46a66e(0x66b),'type':_0x46a66e(0x895),'queuecallerexitreason':_0x46a66e(0x2021)+','+_0x46a66e(0x2778),'sort':_0x46a66e(0x282),'limit':0xa,'page':0x1},_0x292bbb[_0x46a66e(0x23a8)]=_0x28932a,_0x292bbb['refreshAbandonedCalls']=_0x58c8ea,_0x292bbb['assignTo']=_0x26b901,_0x292bbb[_0x46a66e(0xe1c)]=_0x166faf,_0x292bbb[_0x46a66e(0x14be)]=_0x2b5fcf,_0x292bbb[_0x46a66e(0x5c7)]=_0x50f689,_0xd31318[_0x46a66e(0x16b7)](_0x46a66e(0xaa0),_0x292bbb[_0x46a66e(0x14be)]),_0xd31318['on'](_0x46a66e(0x125e),_0x292bbb[_0x46a66e(0x5c7)]),_0x2b4d40();function _0x2b4d40(){const _0x2e99b7=_0x46a66e;let _0x3cd4e9=_0x14e240[_0x2e99b7(0x1b83)][_0x2e99b7(0x2091)](_0x2e99b7(0x161d)+_0x292bbb[_0x2e99b7(0xe76)]['id']);if(_0x3cd4e9)_0x3cd4e9=JSON[_0x2e99b7(0xefe)](_0x3cd4e9),_0x3cd4e9&&_0x3cd4e9[_0x2e99b7(0xae2)]&&(_0x292bbb[_0x2e99b7(0xae2)]=_0x39641b()[_0x2e99b7(0x9c1)](_0x3cd4e9[_0x2e99b7(0xae2)],_0x39641b()['omit'](_0x292bbb[_0x2e99b7(0xae2)],[_0x2e99b7(0x1381),_0x2e99b7(0x236),_0x2e99b7(0x1c7b)])),_0x292bbb[_0x2e99b7(0xae2)]=_0x39641b()[_0x2e99b7(0x1bd8)](_0x292bbb[_0x2e99b7(0xae2)],_0x2e99b7(0x1c99)));else{const _0x12401b={'$gte':_0x543b5a()()[_0x2e99b7(0x1be0)](_0x2e99b7(0x26ae))[_0x2e99b7(0x17d9)](0x0,!![])[_0x2e99b7(0x1f31)](),'$lte':_0x543b5a()()[_0x2e99b7(0x1b4)]('month')['utcOffset'](0x0,!![])[_0x2e99b7(0x1f31)]()};_0x292bbb[_0x2e99b7(0xae2)][_0x2e99b7(0x24cb)]=_0x12401b;}_0x3a8688[_0x2e99b7(0x22b6)](_0x2e99b7(0x1c60))?_0x226677['user'][_0x2e99b7(0x13e9)]({'id':_0x3a8688[_0x2e99b7(0x21e8)]()['id'],'fields':'id,name','channel':'voice','type':_0x2e99b7(0x895),'nolimit':!![]})[_0x2e99b7(0x1d77)]['then'](function(_0x36f34d){const _0xf12dc=_0x2e99b7;_0x292bbb['queues']=_0x36f34d||{'count':0x0,'rows':[]},_0x292bbb[_0xf12dc(0xb16)]=_0x39641b()[_0xf12dc(0x1db)](_0x39641b()[_0xf12dc(0x2631)](_0x292bbb[_0xf12dc(0x971)][_0xf12dc(0x2214)],_0xf12dc(0x16b6)),_0xf12dc(0x16b6));})[_0x2e99b7(0x1c4)](function(_0x164769){const _0x995b0d=_0x2e99b7;console[_0x995b0d(0x218e)](_0x164769);})['finally'](function(){const _0x1de562=_0x2e99b7;_0x292bbb[_0x1de562(0x789)]=_0x10c5a0(),_0x292bbb['getAbandonedCalls']();}):_0x226677[_0x2e99b7(0x44a)][_0x2e99b7(0x1810)]({'id':_0x292bbb[_0x2e99b7(0xe76)][_0x2e99b7(0x13c1)],'section':_0x2e99b7(0x1e28),'channel':'voice','type':_0x2e99b7(0x895),'sort':'-updatedAt','nolimit':!![]})[_0x2e99b7(0x1d77)][_0x2e99b7(0x1cb0)](function(_0xdc3c58){const _0xcc99ca=_0x2e99b7;_0x292bbb['queues']=_0xdc3c58||{'count':0x0,'rows':[]},_0x292bbb[_0xcc99ca(0xb16)]=_0x39641b()['mapValues'](_0x39641b()[_0xcc99ca(0x2631)](_0x292bbb['queues'][_0xcc99ca(0x2214)],_0xcc99ca(0x16b6)),_0xcc99ca(0x16b6));})[_0x2e99b7(0x1c4)](function(_0x4731a2){const _0x213873=_0x2e99b7;console[_0x213873(0x218e)](_0x4731a2);})[_0x2e99b7(0x2e0)](function(){_0x292bbb['quickFilters']=_0x10c5a0(),_0x292bbb['getAbandonedCalls']();});}function _0x10c5a0(){const _0x51f6d1=_0x46a66e;return[{'name':'Start\x20Date','key':_0x51f6d1(0x24cb),'type':_0x51f6d1(0x18ec),'label':_0x51f6d1(0xf5e)},{'name':_0x51f6d1(0x30e),'key':'lastAssignedTo','type':_0x51f6d1(0x220f),'label':'DASHBOARDS.SELECT_AGENT','options':_0x292bbb['agents'][_0x51f6d1(0x2214)],'customOptions':[{'value':_0x51f6d1(0x21de),'translate':_0x51f6d1(0x68f)},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x51f6d1(0xb34),'key':_0x51f6d1(0x11cf),'type':_0x51f6d1(0x1d50),'label':_0x51f6d1(0x519),'options':_0x292bbb[_0x51f6d1(0x971)][_0x51f6d1(0x2214)]}];}function _0x28932a(){const _0x3a3763=_0x46a66e;_0x292bbb[_0x3a3763(0x576)]=![],_0x292bbb[_0x3a3763(0x971)][_0x3a3763(0x184d)]>0x0?(_0x292bbb[_0x3a3763(0xae2)]['queue']=_0x292bbb['queues'][_0x3a3763(0x184d)]===0x1?_0x292bbb[_0x3a3763(0x971)][_0x3a3763(0x2214)][0x0]['name']:_0x292bbb[_0x3a3763(0xae2)][_0x3a3763(0x11cf)],_0x292bbb['query'][_0x3a3763(0x184b)]=(_0x292bbb[_0x3a3763(0xae2)][_0x3a3763(0x1c7b)]-0x1)*_0x292bbb[_0x3a3763(0xae2)][_0x3a3763(0x236)],_0x14e240[_0x3a3763(0x1b83)]['setItem']('motion2.realtime.abandoned.bull.abandonedCalls:'+_0x292bbb['currentUser']['id'],JSON['stringify']({'query':_0x39641b()[_0x3a3763(0x1bd8)](_0x292bbb[_0x3a3763(0xae2)],_0x3a3763(0x11cf))})),_0x292bbb[_0x3a3763(0x2061)]=_0x226677[_0x3a3763(0xc6f)][_0x3a3763(0x7dc)](_0x292bbb['query'],_0x45a12a)[_0x3a3763(0x1d77)]):_0x45a12a(null);}function _0x45a12a(_0x4e9d42){const _0x1ba6f9=_0x46a66e;_0x292bbb['abandonedCalls']=_0x4e9d42||{'count':0x0,'rows':[]},_0x292bbb[_0x1ba6f9(0x576)]=!![];}function _0x58c8ea(){const _0x5704b3=_0x46a66e;_0x292bbb[_0x5704b3(0x16fe)]=![],_0x292bbb['getAbandonedCalls']();}function _0x2b5fcf(_0x21e1f8){const _0x1b4428=_0x46a66e,_0x265300='outbound';_0x21e1f8&&_0x292bbb['queuesMap']&&_0x21e1f8[_0x1b4428(0x11cf)][_0x1b4428(0x66a)]===_0x265300&&_0x292bbb['queuesMap'][_0x21e1f8['queue']]&&(_0x292bbb[_0x1b4428(0x16fe)]=!![]);}function _0x50f689(_0x1b7c27){const _0x49287c=_0x46a66e;if(_0x1b7c27){const _0x490fb1=_0x39641b()[_0x49287c(0x3c2)](_0x292bbb[_0x49287c(0x292f)][_0x49287c(0x2214)],['id',_0x1b7c27['id']]);_0x490fb1>=0x0&&_0x39641b()[_0x49287c(0x9c1)](_0x292bbb['abandonedCalls']['rows'][_0x490fb1],_0x1b7c27);}}function _0x26b901(_0x351abc,_0x4782d9){const _0x3ed2f2=_0x46a66e;_0x351abc&&_0x226677[_0x3ed2f2(0xc6f)][_0x3ed2f2(0x687)]({'id':_0x351abc['id'],'lastAssignedTo':_0x4782d9?_0x4782d9[_0x3ed2f2(0x16b6)]:null,'assigned':_0x4782d9?!![]:![]})[_0x3ed2f2(0x1d77)][_0x3ed2f2(0x1c4)](function(_0x414149){const _0x197b37=_0x3ed2f2;console[_0x197b37(0x1b4f)](_0x414149);});}function _0x166faf(_0x73ac41){const _0x510bc5=_0x46a66e;_0x261f6b[_0x510bc5(0xe27)]({'controller':_0x510bc5(0x1c11),'controllerAs':'vm','templateUrl':_0xbcf966,'parent':angular[_0x510bc5(0x1853)](_0x4b6f77[_0x510bc5(0x1ed9)]),'targetEvent':_0x73ac41,'resolve':{'globalDispositions':[_0x510bc5(0x1e0b),function(_0x4a8ada){const _0x54f299=_0x510bc5;return _0x4a8ada['resolve'](_0x54f299(0x1c6f),{'MailAccountId':_0x54f299(0xd38),'FaxAccountId':_0x54f299(0xd38),'SmsAccountId':_0x54f299(0xd38),'WhatsappAccountId':_0x54f299(0xd38),'OpenchannelAccountId':_0x54f299(0xd38),'ChatWebsiteId':_0x54f299(0xd38),'ListId':_0x54f299(0xd38)});}]},'locals':{'dispositions':_0x292bbb[_0x510bc5(0xdf2)],'call':_0x73ac41}})[_0x510bc5(0x1cb0)](function(_0x4ec5fd){const _0x3eb991=_0x510bc5;if(_0x4ec5fd){const _0x131d06={'id':_0x73ac41['id'],'disposition':_0x4ec5fd['firstLevel']||null,'secondDisposition':_0x4ec5fd[_0x3eb991(0x11c2)]||null,'thirdDisposition':_0x4ec5fd['thirdLevel']||null};_0x226677['voiceQueueReport'][_0x3eb991(0x687)](_0x131d06)[_0x3eb991(0x1d77)]['catch'](function(_0x45cdaa){const _0x1c7a06=_0x3eb991;console[_0x1c7a06(0x1b4f)](_0x45cdaa);});}});}let _0x221824=!![],_0x11640b=0x1;_0x5b745e[_0x46a66e(0x614)](_0x46a66e(0x957),function(_0x288c99,_0x1bc05f){const _0x532f0b=_0x46a66e;_0x221824?_0x810b2(function(){_0x221824=![];}):(!_0x1bc05f&&(_0x11640b=_0x292bbb[_0x532f0b(0xae2)][_0x532f0b(0x1c7b)]),_0x288c99!==_0x1bc05f&&(_0x292bbb['query'][_0x532f0b(0x1c7b)]=0x1),!_0x288c99&&(_0x292bbb[_0x532f0b(0xae2)]['page']=_0x11640b),_0x292bbb[_0x532f0b(0x23a8)]());}),_0x5b745e[_0x46a66e(0x1d6)](_0x46a66e(0x291c),function(){const _0xc16d17=_0x46a66e;_0xd31318[_0xc16d17(0xfb8)](_0xc16d17(0xaa0)),_0xd31318['removeAllListeners'](_0xc16d17(0x125e));});}const _0x796fdb=_0x261394;;_0x4ce94f[_0x5537c6(0x15b6)]=['$scope','$q','$timeout',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0xc34),_0x5537c6(0x8de),_0x5537c6(0xc12),'rpcAgents',_0x5537c6(0x142b),_0x5537c6(0x1986),_0x5537c6(0x9bf),_0x5537c6(0x125c),_0x5537c6(0x44a),'userProfileSection',_0x5537c6(0x1774),_0x5537c6(0x8a5),'$interval'];function _0x4ce94f(_0x22009d,_0x3298cc,_0x29ad88,_0x445ece,_0x1dff4a,_0x57e32d,_0x4a3fff,_0xabef95,_0x5b3e19,_0x44593d,_0x307adf,_0x1e068f,_0x2f9d7e,_0x535b80,_0x2241e6,_0x1083de,_0x443992,_0x1e434c){const _0x717f98=_0x5537c6,_0x59842a=this,_0x3f22d7=[_0x717f98(0x70a),_0x717f98(0xa28),_0x717f98(0x24a2),_0x717f98(0x25db),_0x717f98(0x16e6),_0x717f98(0x25db),_0x717f98(0xdbd),_0x717f98(0x16aa),_0x717f98(0xf0c),_0x717f98(0x1c7d),_0x717f98(0x2035),_0x717f98(0x22d3),_0x717f98(0x24ff),'faxPause',_0x717f98(0x2478),_0x717f98(0x1aee),_0x717f98(0x391),'mailCapacity',_0x717f98(0x3d0),_0x717f98(0x9cd),_0x717f98(0x2451),_0x717f98(0x132d),_0x717f98(0x1cd3),_0x717f98(0x2947),_0x717f98(0x2472),_0x717f98(0x700),_0x717f98(0x2336),_0x717f98(0x2208),'openchannelStatus',_0x717f98(0x11b2),_0x717f98(0xe82),_0x717f98(0x2453),_0x717f98(0x542),_0x717f98(0x2de),_0x717f98(0x1b11),_0x717f98(0x22a6),_0x717f98(0x568),_0x717f98(0x9eb),_0x717f98(0x2064),_0x717f98(0x1997),_0x717f98(0xc9c),'queue',_0x717f98(0x247),_0x717f98(0x24c5),_0x717f98(0x2569),_0x717f98(0x1f23)],_0x3e24a4=[_0x717f98(0xf0c),_0x717f98(0x1c7d),_0x717f98(0x2035),'smsPause','whatsappPause',_0x717f98(0x1ce),_0x717f98(0x2478),'online'];_0x59842a['currentUser']=_0x1083de[_0x717f98(0x21e8)](),_0x59842a[_0x717f98(0x46c)]=['ringing',_0x717f98(0x8d2),_0x717f98(0x5b2),_0x717f98(0x1e6f),'not_inuse'],_0x59842a['pauses']=_0x4a3fff||{'count':0x0,'rows':[]},_0x59842a[_0x717f98(0x8a5)]=_0x443992,_0x59842a['userProfile']=_0x535b80,_0x59842a[_0x717f98(0x2199)]=_0x2241e6&&_0x2241e6[_0x717f98(0x184d)]==0x1?_0x2241e6['rows'][0x0]:null,_0x59842a['crudPermissions']=_0x1083de[_0x717f98(0x14ea)](_0x59842a[_0x717f98(0x2199)]?_0x59842a[_0x717f98(0x2199)][_0x717f98(0x1b1a)]:null),_0x59842a['agents']=_0xabef95?_0x39641b()[_0x717f98(0x2631)](_0xabef95[_0x717f98(0x2214)]?_0xabef95[_0x717f98(0x2214)]:[],'id'):{},_0x59842a[_0x717f98(0x212d)]=_0x5b3e19?_0x39641b()[_0x717f98(0x2631)](_0x5b3e19[_0x717f98(0x2214)]?_0x5b3e19[_0x717f98(0x2214)]:[],'id'):{},_0x59842a['paginatedAgents']={},_0x59842a[_0x717f98(0x997)]=![],_0x59842a[_0x717f98(0x237f)]=[],_0x59842a[_0x717f98(0x1fdd)]={};for(const _0x1050d0 in _0x59842a[_0x717f98(0xc12)]){typeof _0x59842a[_0x717f98(0xc12)][_0x1050d0]!=='undefined'&&(_0x59842a[_0x717f98(0xc12)][_0x1050d0]['init']=!![]);}_0x59842a[_0x717f98(0xae2)]={'limit':0xa,'page':0x1,'order':_0x717f98(0x1d14),'globalStatusFilter':'','pauseTypeFilter':''},_0x59842a[_0x717f98(0x1366)]=_0x333a20,_0x59842a[_0x717f98(0x6ad)]=_0x5cc5d4,_0x59842a[_0x717f98(0x785)]=_0x45c4ce,_0x59842a[_0x717f98(0x715)]=_0x19913a,_0x59842a[_0x717f98(0x191a)]=_0x14c576,_0x59842a[_0x717f98(0x616)]=_0x54ab1e,_0x59842a['getAgentGlobalStatus']=_0x26346b,_0x59842a[_0x717f98(0x1090)]=_0x2594ee,_0x59842a[_0x717f98(0x225e)]=_0x1d3bf4,_0x59842a[_0x717f98(0x1bc4)]=_0x2c5037,_0x59842a[_0x717f98(0x294c)]=_0x23ac92,_0x59842a[_0x717f98(0x13e7)]=_0x474dd6,_0x59842a['onInit']=_0x56b1ff,_0x59842a[_0x717f98(0x1978)]=_0x403a2d,_0x59842a[_0x717f98(0x1b4a)]=_0x1286c0,_0x59842a[_0x717f98(0xd97)]=_0x246e9f,_0x307adf['on'](_0x717f98(0x2464),_0x59842a['onSave']),_0x307adf['on']('user:update',_0x59842a[_0x717f98(0x13e7)]),_0x307adf['on']('user:agentconnect',_0x59842a[_0x717f98(0x1978)]),_0x307adf['on'](_0x717f98(0x10b3),_0x59842a['onComplete']),_0x56b1ff();let _0x37dbf9=_0x1e434c(function(){_0x59842a['load']&&(_0x59842a['load']=![],_0x56b1ff());},0x3e7);function _0x56b1ff(){const _0x2f7775=_0x717f98;_0x59842a['load']=![];const _0x36a5f6=_0x3298cc['defer']();_0x59842a[_0x2f7775(0x2061)]=_0x36a5f6['promise'],_0x59842a[_0x2f7775(0xe0e)]=[],_0x59842a[_0x2f7775(0x237f)]=[],_0x39641b()['forIn'](_0x59842a[_0x2f7775(0xc12)],function(_0x1cde8f,_0x2ad187){const _0x4a9a0c=_0x2f7775;_0x59842a['rpcAgents'][_0x2ad187]&&_0x39641b()[_0x4a9a0c(0x9c1)](_0x1cde8f,_0x39641b()[_0x4a9a0c(0x169b)](_0x39641b()[_0x4a9a0c(0x1bd8)](_0x59842a[_0x4a9a0c(0x212d)][_0x2ad187],_0x3e24a4),_0x3f22d7)),_0x26346b(_0x1cde8f),_0x1cde8f[_0x4a9a0c(0xa28)]?(_0x59842a[_0x4a9a0c(0xe0e)][_0x4a9a0c(0x2785)](_0x1cde8f),_0x59842a[_0x4a9a0c(0x1fdd)][_0x1cde8f[_0x4a9a0c(0xdbd)]]=_0x2ad187):_0x1cde8f['globalStatusTime']=_0x39641b()['toNumber'](_0x543b5a()()[_0x4a9a0c(0x1f31)]('x'));});_0x59842a['query']['globalStatusFilter']&&_0x39641b()[_0x2f7775(0x152a)](_0x59842a[_0x2f7775(0xe0e)],function(_0x55161b){const _0x112a5e=_0x2f7775;return _0x55161b[_0x112a5e(0x1fbe)]!==_0x59842a[_0x112a5e(0xae2)][_0x112a5e(0x1ef1)];});_0x59842a[_0x2f7775(0xae2)][_0x2f7775(0x25ff)]&&_0x39641b()[_0x2f7775(0x152a)](_0x59842a[_0x2f7775(0xe0e)],function(_0x23a840){const _0x5c29d6=_0x2f7775;return _0x23a840[_0x5c29d6(0x16e6)]!==_0x59842a[_0x5c29d6(0xae2)]['pauseTypeFilter'];});_0x59842a[_0x2f7775(0xae2)][_0x2f7775(0x1c99)]&&_0x39641b()[_0x2f7775(0x152a)](_0x59842a[_0x2f7775(0xe0e)],function(_0x4f5560){const _0x4ae75e=_0x2f7775;return _0x4f5560['fullname'][_0x4ae75e(0x1680)]()[_0x4ae75e(0xd8a)](_0x59842a[_0x4ae75e(0xae2)][_0x4ae75e(0x1c99)][_0x4ae75e(0x1680)]())<0x0;});_0x59842a['filteredAgents']=_0x2f1c47(_0x59842a[_0x2f7775(0xe0e)]);const _0x43a62d=(_0x59842a[_0x2f7775(0xae2)]['page']-0x1)*_0x59842a['query'][_0x2f7775(0x236)];_0x59842a[_0x2f7775(0x260a)]=_0x39641b()[_0x2f7775(0x276f)](_0x59842a['filteredAgents'],_0x43a62d)['slice'](0x0,_0x59842a[_0x2f7775(0xae2)]['limit']);for(let _0x3fd17c=0x0;_0x3fd17c<_0x59842a['paginatedAgents']['length'];_0x3fd17c+=0x1){_0x59842a[_0x2f7775(0x237f)][_0x2f7775(0x2785)](_0x59842a[_0x2f7775(0x260a)][_0x3fd17c]['id']);}_0x36a5f6[_0x2f7775(0x19a3)](),_0x59842a[_0x2f7775(0x997)]=!![];}function _0x23ac92(_0x4d3148){const _0x47865a=_0x717f98;_0x59842a['agents'][_0x4d3148['id']]&&(_0x39641b()['merge'](_0x59842a['agents'][_0x4d3148['id']],_0x39641b()[_0x47865a(0x169b)](_0x39641b()['omit'](_0x4d3148,_0x3e24a4),_0x3f22d7)),_0x39641b()[_0x47865a(0x9c1)](_0x59842a['rpcAgents'][_0x4d3148['id']],_0x39641b()['pick'](_0x39641b()[_0x47865a(0x1bd8)](_0x4d3148,_0x3e24a4),_0x3f22d7)),_0x26346b(_0x59842a[_0x47865a(0xc12)][_0x4d3148['id']]));}function _0x474dd6(_0x502d49){const _0x106a93=_0x717f98;_0x59842a['agents'][_0x502d49['id']]&&(_0x39641b()['merge'](_0x59842a[_0x106a93(0xc12)][_0x502d49['id']],_0x39641b()[_0x106a93(0x169b)](_0x502d49,_0x3f22d7)),_0x39641b()[_0x106a93(0x9c1)](_0x59842a[_0x106a93(0x212d)][_0x502d49['id']],_0x39641b()[_0x106a93(0x169b)](_0x502d49,_0x3f22d7)),_0x502d49['lastPauseAt']&&(_0x59842a['agents'][_0x502d49['id']][_0x106a93(0xdb9)]=_0x502d49[_0x106a93(0x25db)],_0x59842a[_0x106a93(0x212d)][_0x502d49['id']][_0x106a93(0xdb9)]=_0x502d49[_0x106a93(0x25db)]),_0x26346b(_0x59842a[_0x106a93(0xc12)][_0x502d49['id']]));}function _0x403a2d(_0x2515c4){const _0x56fc81=_0x717f98;_0x59842a[_0x56fc81(0xc12)][_0x59842a[_0x56fc81(0x1fdd)][_0x2515c4['destaccountcode']]]&&(_0x39641b()['merge'](_0x59842a[_0x56fc81(0xc12)][_0x59842a[_0x56fc81(0x1fdd)][_0x2515c4[_0x56fc81(0x7ea)]]],_0x39641b()['pick'](_0x2515c4,[_0x56fc81(0x11cf),_0x56fc81(0x247)])),_0x39641b()[_0x56fc81(0x9c1)](_0x59842a[_0x56fc81(0x212d)][_0x59842a[_0x56fc81(0x1fdd)][_0x2515c4[_0x56fc81(0x7ea)]]],_0x39641b()['pick'](_0x2515c4,['queue',_0x56fc81(0x247)])));}function _0x1286c0(_0x2d47f8){const _0x2d9bd1=_0x717f98;_0x59842a[_0x2d9bd1(0xc12)][_0x59842a[_0x2d9bd1(0x1fdd)][_0x2d47f8['destaccountcode']]]&&(_0x59842a[_0x2d9bd1(0xc12)][_0x59842a[_0x2d9bd1(0x1fdd)][_0x2d47f8[_0x2d9bd1(0x7ea)]]]=_0x39641b()[_0x2d9bd1(0x1bd8)](_0x59842a[_0x2d9bd1(0xc12)][_0x59842a[_0x2d9bd1(0x1fdd)][_0x2d47f8['destaccountcode']]],[_0x2d9bd1(0x11cf),_0x2d9bd1(0x247)]),_0x59842a[_0x2d9bd1(0x212d)][_0x59842a[_0x2d9bd1(0x1fdd)][_0x2d47f8[_0x2d9bd1(0x7ea)]]]=_0x39641b()[_0x2d9bd1(0x1bd8)](_0x59842a[_0x2d9bd1(0x212d)][_0x59842a[_0x2d9bd1(0x1fdd)][_0x2d47f8[_0x2d9bd1(0x7ea)]]],[_0x2d9bd1(0x11cf),_0x2d9bd1(0x247)]));}function _0x333a20(_0x415044){const _0x217b18=_0x717f98;return _0x44593d[_0x217b18(0xebe)][_0x217b18(0x1366)]({'id':_0x415044['id'],'device':_0x217b18(0x217b),'agent_id':_0x415044['id'],'agent_name':_0x415044['name']})[_0x217b18(0x1d77)]['then'](function(){const _0x2048b3=_0x217b18;_0x1e068f[_0x2048b3(0x829)]({'title':_0x2048b3(0x23af),'msg':_0x415044[_0x2048b3(0x1d14)]+_0x2048b3(0x1540)}),_0x59842a[_0x2048b3(0xc12)][_0x415044['id']]&&(_0x59842a[_0x2048b3(0xc12)][_0x415044['id']][_0x2048b3(0xa28)]=![]),_0x59842a['rpcAgents'][_0x415044['id']]&&(_0x59842a['rpcAgents'][_0x415044['id']][_0x2048b3(0xa28)]=![]),_0x56b1ff();})['catch'](function(_0x425515){const _0x73bf06=_0x217b18;_0x1e068f[_0x73bf06(0x218e)]({'title':_0x425515[_0x73bf06(0x291)]?_0x73bf06(0xeb9)+_0x425515[_0x73bf06(0x291)]+_0x73bf06(0x1657)+_0x425515[_0x73bf06(0xc22)]:'api.staff.save','msg':_0x425515[_0x73bf06(0x25c)]?JSON[_0x73bf06(0x2701)](_0x425515['data']['message']):_0x425515[_0x73bf06(0x147f)]()});});}function _0x45c4ce(_0x177c79,_0x32ad5e){const _0x16d410=_0x717f98;return _0x44593d['user'][_0x16d410(0x785)]({'id':_0x177c79['id'],'type':_0x32ad5e})[_0x16d410(0x1d77)][_0x16d410(0x1cb0)](function(_0xf95d52){const _0x575da1=_0x16d410;_0x59842a[_0x575da1(0xc12)][_0x177c79['id']]&&_0x39641b()[_0x575da1(0x9c1)](_0x59842a[_0x575da1(0xc12)][_0x177c79['id']],_0x39641b()[_0x575da1(0x169b)](_0xf95d52,_0x3f22d7)),_0x59842a[_0x575da1(0x212d)][_0x177c79['id']]&&_0x39641b()[_0x575da1(0x9c1)](_0x59842a['rpcAgents'][_0x177c79['id']],_0x39641b()[_0x575da1(0x169b)](_0xf95d52,_0x3f22d7)),_0x26346b(_0x59842a[_0x575da1(0xc12)][_0x177c79['id']]);})[_0x16d410(0x1c4)](function(_0x245457){const _0x5609ef=_0x16d410;_0x1e068f[_0x5609ef(0x218e)]({'title':_0x245457[_0x5609ef(0x291)]?_0x5609ef(0xeb9)+_0x245457[_0x5609ef(0x291)]+_0x5609ef(0x1657)+_0x245457[_0x5609ef(0xc22)]:'api.staff.save','msg':_0x245457['data']?JSON[_0x5609ef(0x2701)](_0x245457[_0x5609ef(0x25c)]['message']):_0x245457[_0x5609ef(0x147f)]()});});}function _0x19913a(_0x227a05){const _0x186981=_0x717f98;return _0x44593d[_0x186981(0xebe)]['unpause']({'id':_0x227a05['id']})['$promise'][_0x186981(0x1cb0)](function(_0x18406e){const _0x2ecbf6=_0x186981;_0x59842a['agents'][_0x227a05['id']]&&_0x39641b()['merge'](_0x59842a[_0x2ecbf6(0xc12)][_0x227a05['id']],_0x39641b()[_0x2ecbf6(0x169b)](_0x18406e,_0x3f22d7)),_0x59842a[_0x2ecbf6(0x212d)][_0x227a05['id']]&&_0x39641b()[_0x2ecbf6(0x9c1)](_0x59842a['rpcAgents'][_0x227a05['id']],_0x39641b()[_0x2ecbf6(0x169b)](_0x18406e,_0x3f22d7)),_0x26346b(_0x59842a[_0x2ecbf6(0xc12)][_0x227a05['id']]);})[_0x186981(0x1c4)](function(_0x512f8f){const _0x3982ba=_0x186981;_0x1e068f[_0x3982ba(0x218e)]({'title':_0x512f8f['status']?_0x3982ba(0xeb9)+_0x512f8f['status']+_0x3982ba(0x1657)+_0x512f8f[_0x3982ba(0xc22)]:_0x3982ba(0xcd6),'msg':_0x512f8f[_0x3982ba(0x25c)]?JSON[_0x3982ba(0x2701)](_0x512f8f['data'][_0x3982ba(0x155e)]):_0x512f8f[_0x3982ba(0x147f)]()});});}function _0x14c576(_0x350d3d){const _0x13604f=_0x717f98;_0x445ece[_0x13604f(0xe27)](_0x445ece[_0x13604f(0x494)]()['clickOutsideToClose'](!![])[_0x13604f(0x1386)](_0x13604f(0x1bc1))[_0x13604f(0x49e)](_0x13604f(0x26a))['ok']('Ok')[_0x13604f(0x728)](_0x350d3d));}function _0x5cc5d4(_0x2c3829,_0x134345){const _0x20f84d=_0x717f98;_0x445ece['show']({'controller':_0x20f84d(0x7e6),'controllerAs':'vm','templateUrl':_0x535a6f,'parent':angular['element'](_0x1dff4a[_0x20f84d(0x1ed9)]),'targetEvent':_0x134345,'clickOutsideToClose':!![],'locals':{'agent':_0x2c3829,'agents':[],'channel':'voice','direction':_0x20f84d(0x895),'crudPermissions':_0x59842a[_0x20f84d(0x1b1a)]}});}function _0x2594ee(_0x6c81a8){const _0x7f8826=_0x717f98;return _0x6c81a8===_0x7f8826(0x785)||_0x6c81a8==='*pause';}function _0x1d3bf4(_0x23cf38){const _0x89dc6d=_0x717f98;return _0x23cf38===_0x89dc6d(0x785);}function _0x2c5037(_0x217ffd){return _0x217ffd==='*pause';}function _0x222a4f(_0xefd42b){const _0x49642d=_0x717f98;return _0xefd42b==='idle'||_0xefd42b===_0x49642d(0x1c9d)||_0xefd42b==='unavailable'||_0xefd42b===_0x49642d(0x1c7e)||_0x39641b()['isNil'](_0xefd42b);}function _0x54ab1e(_0x129ba1,_0x43a148){const _0x10585b=_0x717f98;if(_0x43a148==='voice'){if(_0x129ba1[_0x43a148+'Status']!==_0x10585b(0x8df))return _0x129ba1[_0x43a148+_0x10585b(0x938)];if(_0x129ba1[_0x43a148+_0x10585b(0x1e09)])return _0x129ba1[_0x43a148+_0x10585b(0x938)]=_0x10585b(0x785),_0x10585b(0x785);return _0x10585b(0x8df);}else{if(_0x129ba1[_0x43a148+_0x10585b(0x1e09)])return _0x129ba1[_0x43a148+'Status']=_0x10585b(0x785),'pause';return _0x129ba1[_0x43a148+_0x10585b(0x938)];}}function _0x26346b(_0x511845){const _0x2876bb=_0x717f98;let _0x51ece3=_0x2876bb(0x1c9d);if(_0x39641b()[_0x2876bb(0x1aa3)]([_0x54ab1e(_0x511845,_0x2876bb(0x1fd4)),_0x54ab1e(_0x511845,_0x2876bb(0x174c)),_0x54ab1e(_0x511845,'mail'),_0x54ab1e(_0x511845,_0x2876bb(0x15e0)),_0x54ab1e(_0x511845,_0x2876bb(0x689)),_0x54ab1e(_0x511845,_0x2876bb(0x2476)),_0x54ab1e(_0x511845,_0x2876bb(0x1944))],_0x2594ee))_0x51ece3=_0x2876bb(0x785);else{if(_0x39641b()[_0x2876bb(0x727)]([_0x54ab1e(_0x511845,_0x2876bb(0x1fd4)),_0x54ab1e(_0x511845,_0x2876bb(0x174c)),_0x54ab1e(_0x511845,_0x2876bb(0x2651)),_0x54ab1e(_0x511845,_0x2876bb(0x15e0)),_0x54ab1e(_0x511845,_0x2876bb(0x689)),_0x54ab1e(_0x511845,_0x2876bb(0x2476)),_0x54ab1e(_0x511845,_0x2876bb(0x1944))],_0x2594ee))_0x51ece3=_0x2876bb(0x1767);else _0x39641b()[_0x2876bb(0x1aa3)]([_0x54ab1e(_0x511845,'voice'),_0x54ab1e(_0x511845,'chat'),_0x54ab1e(_0x511845,_0x2876bb(0x2651)),_0x54ab1e(_0x511845,'openchannel'),_0x54ab1e(_0x511845,'sms'),_0x54ab1e(_0x511845,_0x2876bb(0x2476)),_0x54ab1e(_0x511845,'fax')],_0x222a4f)?_0x51ece3=_0x2876bb(0x8df):_0x51ece3=_0x2876bb(0x5b2);}_0x511845['globalStatus']!==_0x51ece3&&(_0x511845['globalStatus']=_0x51ece3,_0x511845['init']?(_0x511845[_0x2876bb(0x1a8e)]=![],_0x511845[_0x2876bb(0xdb9)]=_0x2594ee(_0x51ece3)?_0x39641b()[_0x2876bb(0x106d)](_0x543b5a()(_0x511845[_0x2876bb(0x25db)])[_0x2876bb(0x1f31)]('x')):_0x39641b()['max']([_0x511845[_0x2876bb(0xc9c)],_0x511845[_0x2876bb(0x1b11)],_0x511845['mailStatusTime'],_0x511845['smsStatusTime'],_0x511845[_0x2876bb(0x2064)],_0x511845[_0x2876bb(0x22a6)],_0x511845['faxStatusTime']])):_0x511845['globalStatusTime']=_0x39641b()[_0x2876bb(0x106d)](_0x543b5a()()['format']('x')));}function _0x2f1c47(_0x2303ee){const _0xad64f4=_0x717f98,_0x54edc2=_0x39641b()[_0xad64f4(0x1f2c)](_0x59842a['query'][_0xad64f4(0x237f)],'-')?'desc':_0xad64f4(0x24cc);return _0x39641b()[_0xad64f4(0x17ca)](_0x2303ee,[_0x59842a[_0xad64f4(0xae2)][_0xad64f4(0x237f)]['replace']('-','')],[_0x54edc2]);}function _0x25d0ef(){const _0x11147b=_0x717f98;_0x37dbf9&&(_0x1e434c[_0x11147b(0x696)](_0x37dbf9),_0x37dbf9=null);}function _0x246e9f(_0x4c86bb,_0x3f3d56){const _0x2decd6=_0x717f98;return _0x44593d[_0x2decd6(0xebe)]['update']({'id':_0x4c86bb['id']},{'screenrecording':_0x3f3d56})[_0x2decd6(0x1d77)][_0x2decd6(0x1c4)](function(_0x523329){const _0x21233f=_0x2decd6;_0x1e068f['error']({'title':_0x523329[_0x21233f(0x291)]?_0x21233f(0xeb9)+_0x523329[_0x21233f(0x291)]+_0x21233f(0x1657)+_0x523329[_0x21233f(0xc22)]:_0x21233f(0x498),'msg':_0x523329[_0x21233f(0x25c)]?JSON[_0x21233f(0x2701)](_0x523329[_0x21233f(0x25c)][_0x21233f(0x155e)]):_0x523329[_0x21233f(0x147f)]()});});}_0x22009d[_0x717f98(0x1d6)](_0x717f98(0x291c),function(){const _0x426a1f=_0x717f98;_0x307adf['removeAllListeners'](_0x426a1f(0x2464)),_0x307adf[_0x426a1f(0xfb8)](_0x426a1f(0x14c6)),_0x307adf[_0x426a1f(0xfb8)](_0x426a1f(0x2290)),_0x307adf['removeAllListeners'](_0x426a1f(0x10b3)),_0x25d0ef();});}const _0x500861=_0x4ce94f;;const _0x20c5fa=_0x5074a3['p']+_0x5537c6(0x934);;_0x2716cd['$inject']=['$scope',_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1714),'rpcCampaigns',_0x5537c6(0xd5b),_0x5537c6(0x142b),_0x5537c6(0x1986),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x1774)];function _0x2716cd(_0x4c77ec,_0x34ade0,_0x5c552d,_0x3ac356,_0x4a535c,_0x3b5914,_0x23ddff,_0x27863c,_0x69dbcb,_0x16a7dc,_0x4c4a53,_0x479284){const _0x5b1b81=_0x5537c6,_0x115dde=this,_0x4c65c8=['name','active','limitCalls',_0x5b1b81(0x155e),'originated',_0x5b1b81(0x1a60),_0x5b1b81(0x1544),_0x5b1b81(0xf67),_0x5b1b81(0x7ab),_0x5b1b81(0xd30),_0x5b1b81(0x100e),_0x5b1b81(0x285e),_0x5b1b81(0x2c1)];_0x115dde['currentUser']=_0x479284[_0x5b1b81(0x21e8)](),_0x115dde[_0x5b1b81(0x184d)]=_0x23ddff[_0x5b1b81(0x184d)],_0x115dde['campaigns']=_0x23ddff?_0x39641b()[_0x5b1b81(0x2631)](_0x23ddff[_0x5b1b81(0x2214)]?_0x23ddff['rows']:[],'id'):{},_0x115dde[_0x5b1b81(0x4db)]=_0x3b5914?_0x39641b()[_0x5b1b81(0x2631)](_0x3b5914[_0x5b1b81(0x2214)]?_0x3b5914[_0x5b1b81(0x2214)]:[],'id'):{},_0x115dde[_0x5b1b81(0x44a)]=_0x16a7dc,_0x115dde[_0x5b1b81(0x2199)]=_0x4c4a53&&_0x4c4a53['count']==0x1?_0x4c4a53['rows'][0x0]:null,_0x115dde[_0x5b1b81(0x1b1a)]=_0x479284[_0x5b1b81(0x14ea)](_0x115dde[_0x5b1b81(0x2199)]?_0x115dde[_0x5b1b81(0x2199)][_0x5b1b81(0x1b1a)]:null),_0x115dde['query']={'sort':_0x5b1b81(0x282),'limit':0xa,'page':0x1},_0x115dde[_0x5b1b81(0x829)]=_0x261753,_0x115dde[_0x5b1b81(0x420)]=_0x2128fb,_0x115dde[_0x5b1b81(0x294c)]=_0x11b582,_0x115dde['$onInit']=_0x3d5233,_0x115dde[_0x5b1b81(0xd21)]=_0x3848df,_0x69dbcb[_0x5b1b81(0x16b7)](_0x5b1b81(0xe9f),_0x115dde['onSave']),_0x115dde[_0x5b1b81(0x1ac8)]=_0x4a535c(function(){},0x3e7);function _0x3d5233(){const _0x1eb504=_0x5b1b81;_0x39641b()[_0x1eb504(0x1ebd)](_0x115dde['campaigns'],function(_0x6b186e,_0x371d50){const _0x48bff9=_0x1eb504;_0x115dde[_0x48bff9(0x4db)][_0x371d50]&&_0x39641b()[_0x48bff9(0x9c1)](_0x6b186e,_0x39641b()[_0x48bff9(0x169b)](_0x115dde[_0x48bff9(0x4db)][_0x371d50],_0x4c65c8));});}function _0x11b582(_0x2e7612){const _0x3f5e30=_0x5b1b81;_0x115dde[_0x3f5e30(0xd5b)][_0x2e7612['id']]&&(_0x39641b()[_0x3f5e30(0x9c1)](_0x115dde[_0x3f5e30(0xd5b)][_0x2e7612['id']],_0x39641b()[_0x3f5e30(0x169b)](_0x2e7612,_0x4c65c8)),_0x39641b()[_0x3f5e30(0x9c1)](_0x115dde[_0x3f5e30(0x4db)][_0x2e7612['id']],_0x39641b()['pick'](_0x2e7612,_0x4c65c8)));}let _0x128faf=!![],_0x5913f7=0x1;_0x4c77ec['$watch'](_0x5b1b81(0x957),function(_0x4def42,_0x151c6d){const _0xfc99e1=_0x5b1b81;_0x128faf?_0x34ade0(function(){_0x128faf=![];}):(!_0x151c6d&&(_0x5913f7=_0x115dde[_0xfc99e1(0xae2)][_0xfc99e1(0x1c7b)]),_0x4def42!==_0x151c6d&&(_0x115dde[_0xfc99e1(0xae2)][_0xfc99e1(0x1c7b)]=0x1),!_0x4def42&&(_0x115dde[_0xfc99e1(0xae2)]['page']=_0x5913f7),_0x115dde[_0xfc99e1(0x420)]());});function _0x261753(_0x538db1){const _0x262896=_0x5b1b81;_0x115dde[_0x262896(0x184d)]=_0x538db1[_0x262896(0x184d)],_0x115dde[_0x262896(0xd5b)]=_0x538db1?_0x39641b()[_0x262896(0x2631)](_0x538db1[_0x262896(0x2214)]?_0x538db1[_0x262896(0x2214)]:[],'id'):{},_0x3d5233();}function _0x2128fb(){const _0x1ffcd0=_0x5b1b81;_0x115dde[_0x1ffcd0(0xae2)][_0x1ffcd0(0x184b)]=(_0x115dde[_0x1ffcd0(0xae2)][_0x1ffcd0(0x1c7b)]-0x1)*_0x115dde['query']['limit'],_0x479284['hasRole'](_0x1ffcd0(0x1c60))?_0x115dde[_0x1ffcd0(0x2061)]=_0x27863c[_0x1ffcd0(0x218c)][_0x1ffcd0(0xbf7)](_0x115dde[_0x1ffcd0(0xae2)],_0x261753)[_0x1ffcd0(0x1d77)]:(_0x115dde[_0x1ffcd0(0xae2)]['id']=_0x115dde['userProfile']['id'],_0x115dde[_0x1ffcd0(0xae2)]['section']='IvrCampaigns',_0x115dde['promise']=_0x27863c[_0x1ffcd0(0x44a)][_0x1ffcd0(0x1810)](_0x115dde[_0x1ffcd0(0xae2)],_0x261753)[_0x1ffcd0(0x1d77)]);}function _0x3848df(_0xe990f0,_0x200a47){const _0x3c139f=_0x5b1b81;_0x5c552d[_0x3c139f(0xe27)]({'controller':_0x3c139f(0x1f29),'controllerAs':'vm','templateUrl':_0x20c5fa,'parent':angular[_0x3c139f(0x1853)](_0x3ac356[_0x3c139f(0x1ed9)]),'targetEvent':_0xe990f0,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x200a47,'ivrCampaigns':_0x39641b()[_0x3c139f(0x27aa)](_0x115dde[_0x3c139f(0xd5b)]),'license':null,'setting':null,'crudPermissions':_0x115dde['crudPermissions']}});}_0x4c77ec[_0x5b1b81(0x1d6)](_0x5b1b81(0x291c),function(){const _0x118a29=_0x5b1b81;_0x69dbcb[_0x118a29(0xfb8)]('campaign:save'),_0x115dde[_0x118a29(0x1ac8)]&&_0x4a535c[_0x118a29(0x696)](_0x115dde['interval']);});}const _0x6037a7=_0x2716cd;;_0x5d787c[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$timeout',_0x5537c6(0xcb9),_0x5537c6(0xc12),_0x5537c6(0x971),'rpcVoiceQueuesChannels',_0x5537c6(0x142b),'socket',_0x5537c6(0x125c),_0x5537c6(0x9bf),'userProfile',_0x5537c6(0x2199),_0x5537c6(0x1774)];function _0x5d787c(_0x3d3200,_0x2ac1ff,_0x2cac31,_0x352c6f,_0x24db2d,_0x136783,_0x524212,_0x439214,_0x391ec9,_0x4e1c69,_0x48adb5,_0x268451,_0x3ddf88){const _0x24f35f=_0x5537c6,_0x3d09d4=this;_0x3d09d4['currentUser']=_0x3ddf88[_0x24f35f(0x21e8)](),_0x3d09d4[_0x24f35f(0xc12)]=_0x352c6f||{'count':0x0,'rows':[]},_0x3d09d4[_0x24f35f(0x971)]=_0x24db2d?_0x39641b()[_0x24f35f(0x2631)](_0x24db2d[_0x24f35f(0x2214)]?_0x24db2d[_0x24f35f(0x2214)]:[],'name'):{},_0x3d09d4[_0x24f35f(0x182d)]=_0x136783?_0x39641b()[_0x24f35f(0x2631)](_0x136783['rows']?_0x39641b()[_0x24f35f(0x1c99)](_0x136783[_0x24f35f(0x2214)],{'type':_0x24f35f(0x895)}):[],_0x24f35f(0x1425)):{},_0x3d09d4[_0x24f35f(0x4b1)]={},_0x3d09d4[_0x24f35f(0x44a)]=_0x48adb5,_0x3d09d4[_0x24f35f(0x2199)]=_0x268451&&_0x268451['count']==0x1?_0x268451['rows'][0x0]:null,_0x3d09d4[_0x24f35f(0x1b1a)]=_0x3ddf88[_0x24f35f(0x14ea)](_0x3d09d4[_0x24f35f(0x2199)]?_0x3d09d4['userProfileSection'][_0x24f35f(0x1b1a)]:null),_0x3d09d4['queryChannels']={'limit':0xa,'page':0x1},_0x3d09d4[_0x24f35f(0x265)]=_0x3ed0c9,_0x3d09d4[_0x24f35f(0x129c)]=_0x23483c,_0x3d09d4[_0x24f35f(0x294c)]=_0x2cd0f7,_0x3d09d4['onRemove']=_0x424f49,_0x3d09d4[_0x24f35f(0x15e3)]=_0x382254,_0x3d09d4[_0x24f35f(0xf9a)]=_0x35527d,_0x3d09d4[_0x24f35f(0x1f22)]=_0x573ec4,_0x439214['on']('voice_queue_channel:save',_0x3d09d4['onSave']),_0x439214['on']('voice_queue_channel:remove',_0x3d09d4[_0x24f35f(0x18c8)]);function _0x3ed0c9(_0x4e63a4){return _0x39641b()['size'](_0x4e63a4);}function _0x23483c(){const _0x4e2c73=_0x24f35f;_0x39641b()[_0x4e2c73(0x1ebd)](_0x3d09d4[_0x4e2c73(0x182d)],function(_0x8d6456,_0x526909){const _0x2bb6bc=_0x4e2c73;_0x39641b()[_0x2bb6bc(0x13b4)](_0x3d09d4[_0x2bb6bc(0x971)],{'name':_0x8d6456['name']})&&(_0x3d09d4[_0x2bb6bc(0x4b1)][_0x526909]=_0x8d6456);});}function _0x2cd0f7(_0x56c378){const _0x576c08=_0x24f35f;_0x56c378[_0x576c08(0x66a)]===_0x576c08(0x895)&&(_0x39641b()[_0x576c08(0x13b4)](_0x3d09d4[_0x576c08(0x971)],{'name':_0x56c378[_0x576c08(0x16b6)]})&&(_0x3d09d4['rpcVoiceQueuesChannels'][_0x56c378[_0x576c08(0x1425)]]=_0x56c378));}function _0x424f49(_0x1aef1e){const _0x25182d=_0x24f35f;_0x3d09d4[_0x25182d(0x4b1)][_0x1aef1e[_0x25182d(0x1425)]]&&delete _0x3d09d4['rpcVoiceQueuesChannels'][_0x1aef1e['uniqueid']];}function _0x382254(_0x2aab73){const _0x38ffb6=_0x24f35f;return _0x524212['rpc'][_0x38ffb6(0x2352)]({'uniqueid':_0x2aab73})[_0x38ffb6(0x1d77)]['then'](function(_0x280fa5){const _0x2f7491=_0x38ffb6;_0x4e1c69[_0x2f7491(0x829)]({'title':'Channel\x20'+_0x2aab73+_0x2f7491(0x2696),'msg':_0x280fa5[_0x2f7491(0x155e)]||''});})[_0x38ffb6(0x1c4)](function(_0x4ace37){const _0xb049d8=_0x38ffb6;_0x4e1c69[_0xb049d8(0x218e)]({'title':_0x4ace37[_0xb049d8(0x291)]+_0xb049d8(0x1657)+_0x4ace37['statusText'],'msg':JSON[_0xb049d8(0x2701)](_0x4ace37[_0xb049d8(0x25c)])||_0x4ace37[_0xb049d8(0x155e)][_0xb049d8(0x1f66)]('\x20')});});}function _0x35527d(_0x238ce6,_0xffe84a,_0x1c0c12){const _0x24e321=_0x24f35f;return _0x524212[_0x24e321(0x1a00)][_0x24e321(0xc58)]({'uniqueid':_0x238ce6,'exten':_0xffe84a,'context':_0x1c0c12})['$promise']['then'](function(_0xb02bd1){const _0x2cceef=_0x24e321;_0x4e1c69['success']({'title':'Channel\x20'+_0x238ce6+_0x2cceef(0x208c),'msg':_0xb02bd1[_0x2cceef(0x155e)]||''});})[_0x24e321(0x1c4)](function(_0x3dc2eb){const _0x4312db=_0x24e321;_0x4e1c69[_0x4312db(0x218e)]({'title':_0x3dc2eb['status']+_0x4312db(0x1657)+_0x3dc2eb[_0x4312db(0xc22)],'msg':JSON['stringify'](_0x3dc2eb[_0x4312db(0x25c)])||_0x3dc2eb[_0x4312db(0x155e)][_0x4312db(0x1f66)]('\x20')});});}function _0x573ec4(_0xbb515a,_0x330a81){const _0x23c775=_0x24f35f,_0x31defe=_0x2cac31[_0x23c775(0x2344)]()[_0x23c775(0x1386)](_0x23c775(0x252e))[_0x23c775(0x161f)](_0x23c775(0x1fef))[_0x23c775(0x728)](_0xbb515a)['ok']('Ok')['cancel'](_0x23c775(0xde1));return _0x2cac31['show'](_0x31defe)[_0x23c775(0x1cb0)](function(_0x750126){const _0xdb6501=_0x23c775;return _0x524212[_0xdb6501(0x1a00)][_0xdb6501(0xc58)]({'uniqueid':_0x330a81,'exten':_0x750126})['$promise'];})[_0x23c775(0x1cb0)](function(_0x1da1c0){const _0x54d225=_0x23c775;_0x4e1c69['success']({'title':_0x54d225(0x25af)+_0x330a81+_0x54d225(0x208c),'msg':_0x1da1c0[_0x54d225(0x155e)]||''});})['catch'](function(_0x28e31e){const _0x4e38fa=_0x23c775;_0x4e1c69[_0x4e38fa(0x218e)]({'title':_0x28e31e[_0x4e38fa(0x291)]+_0x4e38fa(0x1657)+_0x28e31e[_0x4e38fa(0xc22)],'msg':JSON[_0x4e38fa(0x2701)](_0x28e31e['data'])||_0x28e31e[_0x4e38fa(0x155e)][_0x4e38fa(0x1f66)]('\x20')});});}_0x3d3200['$on'](_0x24f35f(0x291c),function(){const _0x1709f8=_0x24f35f;_0x439214[_0x1709f8(0xfb8)](_0x1709f8(0x338)),_0x439214['removeAllListeners']('voice_queue_channel:remove');});}const _0x467fcf=_0x5d787c;;_0x116b67[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2168),'$interval',_0x5537c6(0x971),'rpcQueues','api',_0x5537c6(0x1986),_0x5537c6(0x44a),'userProfileSection',_0x5537c6(0x1774)];function _0x116b67(_0x578e89,_0x382257,_0xeadc9d,_0x249fe1,_0x558533,_0x57e9a3,_0x4f536c,_0x5c6225,_0x28854f,_0x4e4d56){const _0x1b48ca=_0x5537c6,_0x561d28=this,_0x4a4500=[_0x1b48ca(0x181c),'answered',_0x1b48ca(0x1bfa),_0x1b48ca(0x9f8),'sumBillable','outboundNoAnswerCallsDay',_0x1b48ca(0x26af),'outboundCongestionCallsDay',_0x1b48ca(0x20e6),'outboundUnknownCallsDay',_0x1b48ca(0x2450),_0x1b48ca(0x27cb),_0x1b48ca(0x661),_0x1b48ca(0x14d6),_0x1b48ca(0x1f24),_0x1b48ca(0x2368),'outboundRejectCallsDay'];_0x561d28[_0x1b48ca(0x184d)]=_0x249fe1[_0x1b48ca(0x184d)],_0x561d28[_0x1b48ca(0x971)]=_0x249fe1?_0x39641b()['keyBy'](_0x249fe1[_0x1b48ca(0x2214)]?_0x249fe1[_0x1b48ca(0x2214)]:[],'id'):{},_0x561d28['rpcQueues']=_0x558533?_0x39641b()['keyBy'](_0x558533[_0x1b48ca(0x2214)]?_0x558533[_0x1b48ca(0x2214)]:[],'id'):{},_0x561d28[_0x1b48ca(0x44a)]=_0x5c6225,_0x561d28['userProfileSection']=_0x28854f&&_0x28854f['count']==0x1?_0x28854f['rows'][0x0]:null,_0x561d28[_0x1b48ca(0x1b1a)]=_0x4e4d56['parseCrudPermissions'](_0x561d28[_0x1b48ca(0x2199)]?_0x561d28[_0x1b48ca(0x2199)][_0x1b48ca(0x1b1a)]:null);_0x4e4d56[_0x1b48ca(0x22b6)](_0x1b48ca(0x1c60))?_0x561d28[_0x1b48ca(0xae2)]={'type':'outbound','fields':_0x1b48ca(0x43c),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x561d28['query']={'id':_0x4e4d56[_0x1b48ca(0x21e8)]()['id'],'channel':'voice','type':'outbound','fields':_0x1b48ca(0x43c),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x561d28['success']=_0x4e9da8,_0x561d28[_0x1b48ca(0x13e9)]=_0x22271f,_0x561d28[_0x1b48ca(0x294c)]=_0x4df52d,_0x561d28[_0x1b48ca(0x129c)]=_0xd42236,_0x4f536c[_0x1b48ca(0x16b7)](_0x1b48ca(0x82a),_0x561d28['onSave']),_0x561d28['interval']=_0xeadc9d(function(){},0x3e7);function _0xd42236(){const _0x26fa1c=_0x1b48ca;_0x39641b()[_0x26fa1c(0x1ebd)](_0x561d28[_0x26fa1c(0x971)],function(_0x53de80,_0x481a27){const _0x4ca42c=_0x26fa1c;_0x561d28[_0x4ca42c(0x2255)][_0x481a27]&&_0x39641b()['merge'](_0x53de80,_0x39641b()[_0x4ca42c(0x169b)](_0x561d28[_0x4ca42c(0x2255)][_0x481a27],_0x4a4500));});}function _0x4df52d(_0x886500){const _0x228466=_0x1b48ca;_0x561d28[_0x228466(0x971)][_0x886500['id']]&&_0x39641b()[_0x228466(0x9c1)](_0x561d28[_0x228466(0x971)][_0x886500['id']],_0x39641b()[_0x228466(0x169b)](_0x886500,_0x4a4500));}let _0x2a4f50=!![],_0x280509=0x1;_0x578e89['$watch']('vm.query.filter',function(_0x26d31a,_0x408537){const _0x816b97=_0x1b48ca;_0x2a4f50?_0x382257(function(){_0x2a4f50=![];}):(!_0x408537&&(_0x280509=_0x561d28[_0x816b97(0xae2)][_0x816b97(0x1c7b)]),_0x26d31a!==_0x408537&&(_0x561d28['query']['page']=0x1),!_0x26d31a&&(_0x561d28['query'][_0x816b97(0x1c7b)]=_0x280509),_0x561d28[_0x816b97(0x13e9)]());});function _0x4e9da8(_0x2f935f){const _0x5cab34=_0x1b48ca;_0x561d28[_0x5cab34(0x184d)]=_0x2f935f[_0x5cab34(0x184d)],_0x561d28[_0x5cab34(0x971)]=_0x2f935f?_0x39641b()['keyBy'](_0x2f935f[_0x5cab34(0x2214)]?_0x2f935f[_0x5cab34(0x2214)]:[],'id'):{},_0xd42236();}function _0x22271f(){const _0x528c26=_0x1b48ca;_0x561d28[_0x528c26(0xae2)][_0x528c26(0x184b)]=(_0x561d28[_0x528c26(0xae2)][_0x528c26(0x1c7b)]-0x1)*_0x561d28[_0x528c26(0xae2)][_0x528c26(0x236)],_0x4e4d56[_0x528c26(0x22b6)](_0x528c26(0x1c60))?_0x561d28['promise']=_0x57e9a3['voiceQueue'][_0x528c26(0xbf7)](_0x561d28['query'],_0x4e9da8)[_0x528c26(0x1d77)]:(_0x561d28[_0x528c26(0xae2)]['id']=_0x561d28[_0x528c26(0x44a)]['id'],_0x561d28[_0x528c26(0xae2)][_0x528c26(0x1f74)]=_0x528c26(0x1e28),_0x561d28['promise']=_0x57e9a3['userProfile'][_0x528c26(0x1810)](_0x561d28['query'],_0x4e9da8)[_0x528c26(0x1d77)]);}_0x578e89[_0x1b48ca(0x1d6)]('$destroy',function(){const _0x56cee3=_0x1b48ca;_0x4f536c[_0x56cee3(0xfb8)]('voice_queue:save'),_0x561d28['interval']&&_0xeadc9d['cancel'](_0x561d28['interval']);});}const _0x154e45=_0x116b67;;const _0x810686=_0x5074a3['p']+_0x5537c6(0x2719);;const _0x5ae697=_0x5074a3['p']+'src/js/modules/main/apps/motiondialer/views/realtime/queues/predictive/dialog.html/dialog.html';;const _0x192df6=_0x5074a3['p']+_0x5537c6(0x1199);;_0x370cd4[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$timeout',_0x5537c6(0xcb9),'$q',_0x5537c6(0x22bf),_0x5537c6(0x1714),_0x5537c6(0x971),_0x5537c6(0x2255),_0x5537c6(0x142b),_0x5537c6(0x1986),'toasty',_0x5537c6(0x44a),'userProfileSection',_0x5537c6(0x1774)];function _0x370cd4(_0x39e7c7,_0x3cbe35,_0x29efe8,_0x497e3f,_0xeca83e,_0x5b615b,_0x4084d8,_0x222ca6,_0x28f2ad,_0x387f8a,_0x2655c3,_0x141add,_0x4f75e6,_0x3e8de4){const _0x4db2e7=_0x5537c6,_0x267865=this,_0x1786a5=[_0x4db2e7(0x22dc),_0x4db2e7(0x2803),'waiting','talking',_0x4db2e7(0xfb2),_0x4db2e7(0x2315),_0x4db2e7(0x155e),_0x4db2e7(0x737),_0x4db2e7(0xda8),_0x4db2e7(0xf67),'paused',_0x4db2e7(0x1b87),'startProgressive','erlangCalls',_0x4db2e7(0x15ac),_0x4db2e7(0x20a2),'erlangBusyFactor','dialPredictiveInterval',_0x4db2e7(0x124e),_0x4db2e7(0x171),_0x4db2e7(0x24d9),'predictiveIntervalTotalCalls',_0x4db2e7(0xdb2),_0x4db2e7(0x1840),_0x4db2e7(0x217e),_0x4db2e7(0x1ded),_0x4db2e7(0x2579)];_0x267865[_0x4db2e7(0xe76)]=_0x3e8de4['getCurrentUser'](),_0x267865['count']=_0x4084d8[_0x4db2e7(0x184d)]?_0x4084d8[_0x4db2e7(0x184d)]:0x0,_0x267865[_0x4db2e7(0x971)]=_0x4084d8?_0x39641b()[_0x4db2e7(0x2631)](_0x4084d8['rows']?_0x4084d8['rows']:[],'id'):{},_0x267865[_0x4db2e7(0x2255)]=_0x222ca6?_0x39641b()[_0x4db2e7(0x2631)](_0x222ca6['rows']?_0x222ca6[_0x4db2e7(0x2214)]:[],'id'):{},_0x267865['userProfile']=_0x141add,_0x267865[_0x4db2e7(0x2199)]=_0x4f75e6&&_0x4f75e6[_0x4db2e7(0x184d)]==0x1?_0x4f75e6['rows'][0x0]:null,_0x267865['crudPermissions']=_0x3e8de4[_0x4db2e7(0x14ea)](_0x267865[_0x4db2e7(0x2199)]?_0x267865[_0x4db2e7(0x2199)][_0x4db2e7(0x1b1a)]:null);_0x3e8de4[_0x4db2e7(0x22b6)]('admin')?_0x267865[_0x4db2e7(0xae2)]={'type':'outbound','sort':_0x4db2e7(0x282),'limit':0xa,'page':0x1}:_0x267865['query']={'id':_0x267865[_0x4db2e7(0xe76)]['id'],'channel':_0x4db2e7(0x1fd4),'type':_0x4db2e7(0x895),'sort':_0x4db2e7(0x282),'limit':0xa,'page':0x1};_0x267865[_0x4db2e7(0x829)]=_0x48b6d4,_0x267865[_0x4db2e7(0x13e9)]=_0x9ef491,_0x267865[_0x4db2e7(0x56d)]=_0x197f52,_0x267865[_0x4db2e7(0x20ec)]=_0x1584d6,_0x267865[_0x4db2e7(0x1be7)]=_0x84acca,_0x267865['updateQueue']=_0x324733,_0x267865['onSave']=_0x1ce8fa,_0x267865[_0x4db2e7(0xc88)]=_0x38957f,_0x267865[_0x4db2e7(0x18e4)]=_0x4c2119,_0x267865[_0x4db2e7(0x26c9)]=_0x4c4ced,_0x267865['onLogout']=_0x5f5d22,_0x267865[_0x4db2e7(0x129c)]=_0x3d8b8d,_0x267865['order']=[],_0x39641b()[_0x4db2e7(0x1ebd)](_0x267865[_0x4db2e7(0x971)],function(_0x3e2afe){_0x267865['order']['push'](_0x3e2afe['id']);}),_0x387f8a[_0x4db2e7(0x16b7)](_0x4db2e7(0x82a),_0x267865['onSave']),_0x267865['interval']=_0x5b615b(function(){},0x3e7),_0x387f8a['on'](_0x4db2e7(0x398),_0x267865[_0x4db2e7(0xc88)]),_0x387f8a['on'](_0x4db2e7(0x14c6),_0x267865[_0x4db2e7(0x18e4)]),_0x387f8a['on']('userVoiceQueue:remove',_0x267865[_0x4db2e7(0x3be)]),_0x387f8a['on'](_0x4db2e7(0x828),_0x267865['onLogin']);function _0x3d8b8d(){const _0x243323=_0x4db2e7,_0x2f2ec6=[];return _0x39641b()[_0x243323(0x1ebd)](_0x267865[_0x243323(0x971)],function(_0x4e6365,_0x3158da){const _0x4dcbb8=_0x243323;_0x4e6365[_0x4dcbb8(0x139c)]=0x0,_0x4e6365[_0x4dcbb8(0x29a2)]=0x0,_0x267865[_0x4dcbb8(0x971)][_0x3158da][_0x4dcbb8(0xc12)]={},_0x2f2ec6[_0x4dcbb8(0x2785)](_0x28f2ad[_0x4dcbb8(0x26b3)][_0x4dcbb8(0x11dd)]({'id':_0x3158da})[_0x4dcbb8(0x1d77)]),_0x267865[_0x4dcbb8(0x2255)][_0x3158da]&&_0x39641b()[_0x4dcbb8(0x9c1)](_0x4e6365,_0x39641b()[_0x4dcbb8(0x169b)](_0x267865[_0x4dcbb8(0x2255)][_0x3158da],_0x1786a5));}),_0x497e3f[_0x243323(0x223b)](_0x2f2ec6)['then'](function(_0x3373ac){const _0xff0670=_0x243323;for(let _0x322fbe=0x0;_0x322fbe<_0x3373ac[_0xff0670(0xfd0)];_0x322fbe+=0x1){for(let _0x5a2431=0x0;_0x5a2431<_0x3373ac[_0x322fbe]['rows'][_0xff0670(0xfd0)];_0x5a2431++){_0x3373ac[_0x322fbe]['rows'][_0x5a2431][_0xff0670(0x139c)]&&_0x267865[_0xff0670(0x971)][_0x3373ac[_0x322fbe][_0xff0670(0x2214)][_0x5a2431][_0xff0670(0x1116)]][_0xff0670(0x139c)]++,_0x267865[_0xff0670(0x971)][_0x3373ac[_0x322fbe][_0xff0670(0x2214)][_0x5a2431]['VoiceQueueId']][_0xff0670(0x29a2)]++,_0x267865[_0xff0670(0x971)][_0x3373ac[_0x322fbe][_0xff0670(0x2214)][_0x5a2431][_0xff0670(0x1116)]]['agents'][_0x3373ac[_0x322fbe][_0xff0670(0x2214)][_0x5a2431][_0xff0670(0x21ab)]]=_0x3373ac[_0x322fbe]['rows'][_0x5a2431][_0xff0670(0x1116)];}}})[_0x243323(0x1c4)](function(_0x1fb68e){console['error'](_0x1fb68e);});}function _0x1ce8fa(_0x86c6e5){const _0x244904=_0x4db2e7;_0x267865[_0x244904(0x971)][_0x86c6e5['id']]&&(_0x39641b()[_0x244904(0x9c1)](_0x267865['queues'][_0x86c6e5['id']],_0x39641b()['pick'](_0x86c6e5,_0x1786a5)),_0x39641b()[_0x244904(0x958)](_0x86c6e5[_0x244904(0x1b87)])&&(_0x267865[_0x244904(0x971)][_0x86c6e5['id']][_0x244904(0x1b87)]=undefined));}function _0x38957f(_0x3bb09d){const _0x4dfd56=_0x4db2e7;_0x267865[_0x4dfd56(0x971)][_0x3bb09d[_0x4dfd56(0x2240)]]&&_0x267865['queues'][_0x3bb09d[_0x4dfd56(0x2240)]][_0x4dfd56(0x29a2)]++;}function _0x4c2119(_0xce68d8){const _0x428063=_0x4db2e7;console[_0x428063(0x1b4f)]('onPause',_0xce68d8);if(_0xce68d8[_0x428063(0x2478)])_0x39641b()[_0x428063(0x1ebd)](_0x267865[_0x428063(0x971)],function(_0x16c50a){const _0x297bb0=_0x428063;_0x16c50a[_0x297bb0(0xc12)][_0xce68d8['id']]&&(_0x16c50a[_0x297bb0(0x139c)]+=0x1,console[_0x297bb0(0x1b4f)](_0x297bb0(0x785)));});else!_0xce68d8[_0x428063(0x2478)]&&_0x39641b()['forIn'](_0x267865[_0x428063(0x971)],function(_0x1259e0){const _0x3e6ebe=_0x428063;_0x1259e0[_0x3e6ebe(0xc12)][_0xce68d8['id']]&&(_0x1259e0[_0x3e6ebe(0x139c)]>0x0&&(_0x1259e0[_0x3e6ebe(0x139c)]-=0x1,console[_0x3e6ebe(0x1b4f)](_0x3e6ebe(0xf5d))));});}function _0x4c4ced(_0x4839e3){const _0x4f4de3=_0x4db2e7;console[_0x4f4de3(0x1b4f)](_0x4f4de3(0x2557),_0x4839e3),_0x267865[_0x4f4de3(0x971)][_0x4839e3[_0x4f4de3(0x1116)]]&&(_0x267865[_0x4f4de3(0x971)][_0x4839e3[_0x4f4de3(0x1116)]][_0x4f4de3(0x29a2)]+=0x1,_0x267865[_0x4f4de3(0x971)][_0x4839e3[_0x4f4de3(0x1116)]]['agents'][_0x4839e3[_0x4f4de3(0x21ab)]]=_0x4839e3[_0x4f4de3(0x1116)]);}function _0x5f5d22(_0x54399b){const _0x5081c5=_0x4db2e7;console['log']('onLogout',_0x54399b),_0x267865[_0x5081c5(0x971)][_0x54399b[_0x5081c5(0x1116)]]&&_0x267865[_0x5081c5(0x971)][_0x54399b[_0x5081c5(0x1116)]][_0x5081c5(0x29a2)]>0x0&&(_0x267865[_0x5081c5(0x971)][_0x54399b['VoiceQueueId']]['loggedInDb']-=0x1,delete _0x267865[_0x5081c5(0x971)][_0x54399b[_0x5081c5(0x1116)]][_0x5081c5(0xc12)][_0x54399b[_0x5081c5(0x21ab)]]);}let _0x152394=!![],_0x1b50b7=0x1;_0x39e7c7['$watch'](_0x4db2e7(0x957),function(_0x4b0ec8,_0x26a9ed){const _0x5146c4=_0x4db2e7;_0x152394?_0x3cbe35(function(){_0x152394=![];}):(!_0x26a9ed&&(_0x1b50b7=_0x267865[_0x5146c4(0xae2)][_0x5146c4(0x1c7b)]),_0x4b0ec8!==_0x26a9ed&&(_0x267865[_0x5146c4(0xae2)][_0x5146c4(0x1c7b)]=0x1),!_0x4b0ec8&&(_0x267865['query'][_0x5146c4(0x1c7b)]=_0x1b50b7),_0x267865[_0x5146c4(0x13e9)]());});function _0x48b6d4(_0x2ed07b){const _0x34b937=_0x4db2e7;_0x267865[_0x34b937(0x184d)]=_0x2ed07b[_0x34b937(0x184d)],_0x267865[_0x34b937(0x971)]=_0x2ed07b?_0x39641b()[_0x34b937(0x2631)](_0x2ed07b[_0x34b937(0x2214)]?_0x2ed07b[_0x34b937(0x2214)]:[],'id'):{};if(_0x2ed07b[_0x34b937(0x2214)]){_0x267865[_0x34b937(0x237f)]=[];for(let _0x4eb6c5=0x0;_0x4eb6c5<_0x2ed07b[_0x34b937(0x2214)][_0x34b937(0xfd0)];_0x4eb6c5++){_0x267865[_0x34b937(0x237f)][_0x34b937(0x2785)](_0x2ed07b[_0x34b937(0x2214)][_0x4eb6c5]['id']);}}_0x3d8b8d();}function _0x9ef491(){const _0x332cc9=_0x4db2e7;_0x267865[_0x332cc9(0xae2)][_0x332cc9(0x184b)]=(_0x267865['query'][_0x332cc9(0x1c7b)]-0x1)*_0x267865[_0x332cc9(0xae2)][_0x332cc9(0x236)],_0x3e8de4[_0x332cc9(0x22b6)](_0x332cc9(0x1c60))?_0x267865[_0x332cc9(0x2061)]=_0x28f2ad['voiceQueue'][_0x332cc9(0xbf7)](_0x267865[_0x332cc9(0xae2)],_0x48b6d4)[_0x332cc9(0x1d77)]:(_0x267865[_0x332cc9(0xae2)]['id']=_0x267865[_0x332cc9(0x44a)]['id'],_0x267865[_0x332cc9(0xae2)][_0x332cc9(0x1f74)]=_0x332cc9(0x1e28),_0x267865['promise']=_0x28f2ad[_0x332cc9(0x44a)][_0x332cc9(0x1810)](_0x267865['query'],_0x48b6d4)[_0x332cc9(0x1d77)]);}function _0x197f52(_0x2d86dd,_0x43ffd2){const _0x19a5b2=_0x4db2e7;_0x29efe8['show']({'controller':'CreateOrEditQueueCampaignDialogController','controllerAs':'vm','templateUrl':_0x810686,'parent':angular['element'](_0xeca83e[_0x19a5b2(0x1ed9)]),'targetEvent':_0x2d86dd,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x43ffd2,'queueCampaigns':_0x39641b()[_0x19a5b2(0x27aa)](_0x267865['queues']),'license':null,'setting':null,'crudPermissions':_0x267865[_0x19a5b2(0x1b1a)]}});}function _0x1584d6(_0x4dd4e4,_0x2c5039){const _0xdf35d7=_0x4db2e7;_0x29efe8[_0xdf35d7(0xe27)]({'controller':_0xdf35d7(0x25a8),'controllerAs':'vm','templateUrl':_0x5ae697,'parent':angular[_0xdf35d7(0x1853)](_0xeca83e['body']),'targetEvent':_0x4dd4e4,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x2c5039}});}function _0x84acca(_0x3088b9,_0x145115){const _0x7d38da=_0x4db2e7;_0x29efe8[_0x7d38da(0xe27)]({'controller':_0x7d38da(0xc10),'controllerAs':'vm','templateUrl':_0x192df6,'parent':angular[_0x7d38da(0x1853)](_0xeca83e[_0x7d38da(0x1ed9)]),'targetEvent':_0x3088b9,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x145115,'queueCampaigns':_0x267865[_0x7d38da(0x971)]?_0x267865['queues']['rows']:[],'realtime':!![],'crudPermissions':_0x267865[_0x7d38da(0x1b1a)]}});}function _0x324733(_0x40c793){const _0x51894e=_0x4db2e7;return _0x28f2ad[_0x51894e(0x26b3)][_0x51894e(0x687)](_0x40c793)['$promise'][_0x51894e(0x1cb0)](function(){const _0x3b5b7d=_0x51894e;_0x2655c3['success']({'title':_0x3b5b7d(0x264c),'msg':_0x40c793[_0x3b5b7d(0x16b6)]?_0x40c793[_0x3b5b7d(0x16b6)]+_0x3b5b7d(0x1068):''});})[_0x51894e(0x1c4)](function(_0x32c9c7){const _0x345a1d=_0x51894e;_0x2655c3[_0x345a1d(0x218e)]({'title':_0x345a1d(0x454),'msg':_0x32c9c7[_0x345a1d(0x155e)]});});}_0x39e7c7[_0x4db2e7(0x1d6)]('$destroy',function(){const _0x5bb559=_0x4db2e7;_0x387f8a[_0x5bb559(0xfb8)](_0x5bb559(0x82a)),_0x267865[_0x5bb559(0x1ac8)]&&_0x5b615b[_0x5bb559(0x696)](_0x267865[_0x5bb559(0x1ac8)]),_0x387f8a[_0x5bb559(0xfb8)]('userVoiceQueueRt:save'),_0x387f8a['removeAllListeners']('user:update'),_0x387f8a['removeAllListeners'](_0x5bb559(0x201e)),_0x387f8a['removeAllListeners'](_0x5bb559(0x828));});}const _0xd5573e=_0x370cd4;;_0x1e4cfe[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),_0x5537c6(0x1714),_0x5537c6(0x17b8)];function _0x1e4cfe(_0x2d42e7,_0x2ccbad,_0x39c7da){const _0x21959a=_0x5537c6,_0x56f876=this;_0x56f876[_0x21959a(0x17b8)]=_0x39c7da,_0x56f876[_0x21959a(0x22fd)]=_0x50f20c,_0x56f876[_0x21959a(0x1365)]=_0x5c9ef6,_0x56f876[_0x21959a(0xda0)]=_0x274a61;function _0x50f20c(_0x127a3b,_0x18d2df){const _0x4a5b2e=_0x21959a;return _0x543b5a()(_0x127a3b)[_0x4a5b2e(0x17a1)]('m',_0x18d2df)[_0x4a5b2e(0x1f31)](_0x4a5b2e(0xec1));}function _0x5c9ef6(_0xd764ec){const _0x5eb04d=_0x21959a;return _0x543b5a()(_0xd764ec)['format'](_0x5eb04d(0xec1));}function _0x274a61(){const _0x27ab45=_0x21959a;_0x2d42e7[_0x27ab45(0x1426)]();}}const _0x5ca286=_0x1e4cfe;;function _0xa1ae52(){const _0x3ad5a0=_0x5537c6;return{'status':{'registered':_0x3ad5a0(0x1170),'unregistered':_0x3ad5a0(0x29a3),'lagged':_0x3ad5a0(0x29a3),'reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':_0x3ad5a0(0x29a3),'unknown':_0x3ad5a0(0xb74)},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':_0x3ad5a0(0x25c2),'inuse':_0x3ad5a0(0xd57),'busy':_0x3ad5a0(0x35b),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':_0x3ad5a0(0x181),'ringing':'blue-300-fg\x20icon-phone-incoming','ringinuse':_0x3ad5a0(0x1c43),'onhold':_0x3ad5a0(0x1825)},'channelStatus':{'ring':_0x3ad5a0(0x1c43),'up':_0x3ad5a0(0x142f),'hangup':_0x3ad5a0(0xe67)},'channelStatusOut':{'ring':_0x3ad5a0(0x53c),'up':_0x3ad5a0(0x142f),'hangup':_0x3ad5a0(0xe67)}};}const _0x3ea4b4=_0xa1ae52;;_0x29f896[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x1986)];function _0x29f896(_0x448520,_0x42f603,_0x4d37cb){const _0x8b7594=_0x5537c6,_0xc0ffc5=this;_0x4d37cb[_0x8b7594(0x22e8)](),_0x4d37cb[_0x8b7594(0x8b0)](),_0xc0ffc5[_0x8b7594(0x8ec)]=0x0;switch(_0x42f603[_0x8b7594(0x1970)][_0x8b7594(0x16b6)]){case _0x8b7594(0x175a):_0xc0ffc5[_0x8b7594(0x8ec)]=0x0;break;case'app.motiondialer.realtime.queues':_0xc0ffc5[_0x8b7594(0x8ec)]=0x1;break;case _0x8b7594(0x48b):_0xc0ffc5[_0x8b7594(0x8ec)]=0x2;break;case _0x8b7594(0x1b31):_0xc0ffc5[_0x8b7594(0x8ec)]=0x3;break;case'app.motiondialer.realtime.queue_params':_0xc0ffc5[_0x8b7594(0x8ec)]=0x4;break;case _0x8b7594(0x1369):_0xc0ffc5[_0x8b7594(0x8ec)]=0x5;break;default:_0xc0ffc5[_0x8b7594(0x8ec)]=0x0,_0x42f603['go'](_0x8b7594(0x175a));}_0x448520[_0x8b7594(0x614)](_0x8b7594(0x1ced),function(_0x2f8547,_0x46af68){const _0xb6972a=_0x8b7594;if(_0x2f8547!==_0x46af68)switch(_0x2f8547){case 0x0:_0x42f603['go'](_0xb6972a(0x175a));break;case 0x1:_0x42f603['go'](_0xb6972a(0x7ba));break;case 0x2:_0x42f603['go'](_0xb6972a(0x48b));break;case 0x3:_0x42f603['go'](_0xb6972a(0x1b31));break;case 0x4:_0x42f603['go'](_0xb6972a(0xb9f));break;case 0x5:_0x42f603['go'](_0xb6972a(0x1369));break;default:_0x42f603['go'](_0xb6972a(0x175a));}});}const _0x1837f4=_0x29f896;;_0x1be2b3[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6)];function _0x1be2b3(_0x3fc8be){const _0x153452=_0x5537c6;_0x3fc8be[_0x153452(0x27e0)](_0x153452(0x1239),{'url':_0x153452(0x1625),'views':{'content@app':{'templateUrl':_0x4fa45b,'controller':_0x153452(0x1c20)}},'resolve':{'userProfile':[_0x153452(0x1e0b),'Auth',function(_0x3241e9,_0x1ecfe7){const _0x16e143=_0x153452;return _0x1ecfe7[_0x16e143(0x22b6)](_0x16e143(0x1c60))?null:_0x3241e9[_0x16e143(0x19a3)]('userProfile@get',{'fields':_0x16e143(0x279),'id':_0x1ecfe7[_0x16e143(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x153452(0x1e0b),'Auth',function(_0x16d26e,_0x561204){const _0x57e517=_0x153452;return _0x561204['hasRole']('admin')?null:_0x16d26e[_0x57e517(0x19a3)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x561204[_0x57e517(0x21e8)]()[_0x57e517(0x13c1)],'sectionId':0x5e6});}]},'authenticate':!![],'permissionId':0x5e6})[_0x153452(0x27e0)](_0x153452(0x175a),{'url':_0x153452(0xefc),'controller':_0x153452(0x27d1),'templateUrl':_0x524405,'resolve':{'pauses':[_0x153452(0x1e0b),function(_0x536f70){const _0x208fb8=_0x153452;return _0x536f70[_0x208fb8(0x19a3)](_0x208fb8(0xeeb),{'nolimit':!![]});}],'agents':[_0x153452(0x1e0b),_0x153452(0x1774),function(_0x409b6e,_0x25851c){const _0x5c2002=_0x153452;return _0x25851c['hasRole'](_0x5c2002(0x1c60))?_0x409b6e['resolve'](_0x5c2002(0x1c86),{'fields':_0x5c2002(0x1599),'role':_0x5c2002(0x1eff),'sort':_0x5c2002(0x1d14),'nolimit':!![]}):_0x409b6e[_0x5c2002(0x19a3)]('userProfile@getResources',{'id':_0x25851c[_0x5c2002(0x21e8)]()['userProfileId'],'section':_0x5c2002(0x2536),'fields':_0x5c2002(0x1599),'role':_0x5c2002(0x1eff),'sort':'fullname','nolimit':!![]});}],'userProfile':[_0x153452(0x1e0b),'Auth',function(_0x102b93,_0xdcd77a){const _0x53b85f=_0x153452;return _0xdcd77a['hasRole'](_0x53b85f(0x1c60))?null:_0x102b93[_0x53b85f(0x19a3)](_0x53b85f(0x9ae),{'fields':'id,name,crudPermissions','id':_0xdcd77a['getCurrentUser']()[_0x53b85f(0x13c1)]});}],'userProfileSection':[_0x153452(0x1e0b),_0x153452(0x1774),function(_0xa08ad2,_0x3e5586){const _0x34d9ba=_0x153452;return _0x3e5586[_0x34d9ba(0x22b6)]('admin')?null:_0xa08ad2[_0x34d9ba(0x19a3)](_0x34d9ba(0x2182),{'fields':_0x34d9ba(0x1f5f),'userProfileId':_0x3e5586[_0x34d9ba(0x21e8)]()[_0x34d9ba(0x13c1)],'sectionId':0xca});}],'rpcAgents':[_0x153452(0x1e0b),function(_0x5a86a9){const _0xbd6548=_0x153452;return _0x5a86a9[_0xbd6548(0x19a3)](_0xbd6548(0x12c0));}]},'authenticate':!![],'permissionId':0x5e6})[_0x153452(0x27e0)]('app.motiondialer.realtime.queues',{'url':_0x153452(0x1596),'controller':'QueuesMotionDialerRealtimeController\x20as\x20vm','templateUrl':_0x3c97b8,'resolve':{'queues':[_0x153452(0x1e0b),_0x153452(0x1774),function(_0xb2327e,_0x5e02fe){const _0x2233bc=_0x153452;return _0x5e02fe['hasRole'](_0x2233bc(0x1c60))?_0xb2327e['resolve'](_0x2233bc(0x1c4d),{'type':_0x2233bc(0x895),'sort':_0x2233bc(0x282),'limit':0xa,'offset':0x0}):_0xb2327e[_0x2233bc(0x19a3)](_0x2233bc(0x12da),{'id':_0x5e02fe[_0x2233bc(0x21e8)]()['userProfileId'],'section':_0x2233bc(0x1e28),'channel':_0x2233bc(0x1fd4),'type':_0x2233bc(0x895),'sort':_0x2233bc(0x282),'limit':0xa,'page':0x1});}],'userProfile':[_0x153452(0x1e0b),_0x153452(0x1774),function(_0x4b9492,_0x1e5a3e){const _0x173fe9=_0x153452;return _0x1e5a3e[_0x173fe9(0x22b6)](_0x173fe9(0x1c60))?null:_0x4b9492['resolve'](_0x173fe9(0x9ae),{'fields':'id,name,crudPermissions','id':_0x1e5a3e['getCurrentUser']()[_0x173fe9(0x13c1)]});}],'userProfileSection':[_0x153452(0x1e0b),_0x153452(0x1774),function(_0x256c5f,_0x3b44d3){const _0x43fac6=_0x153452;return _0x3b44d3['hasRole'](_0x43fac6(0x1c60))?null:_0x256c5f[_0x43fac6(0x19a3)](_0x43fac6(0x2182),{'fields':_0x43fac6(0x1f5f),'userProfileId':_0x3b44d3[_0x43fac6(0x21e8)]()[_0x43fac6(0x13c1)],'sectionId':0x5dd});}],'rpcQueues':['apiResolver',function(_0x338854){const _0x257da9=_0x153452;return _0x338854[_0x257da9(0x19a3)](_0x257da9(0xe6d));}]},'authenticate':!![],'permissionId':0x5e6})[_0x153452(0x27e0)](_0x153452(0x48b),{'url':_0x153452(0x30a),'controller':_0x153452(0x1966),'templateUrl':_0x416b40,'resolve':{'agents':[_0x153452(0x1e0b),_0x153452(0x1774),function(_0x58796c,_0x4ae88c){const _0xd94a27=_0x153452;return _0x4ae88c[_0xd94a27(0x22b6)](_0xd94a27(0x1c60))?_0x58796c[_0xd94a27(0x19a3)](_0xd94a27(0x1c86),{'fields':_0xd94a27(0xa40),'role':_0xd94a27(0x1eff),'nolimit':!![]}):_0x58796c[_0xd94a27(0x19a3)](_0xd94a27(0x12da),{'id':_0x4ae88c[_0xd94a27(0x21e8)]()[_0xd94a27(0x13c1)],'section':'Agents','fields':_0xd94a27(0xa40),'role':_0xd94a27(0x1eff),'nolimit':!![]});}],'queues':[_0x153452(0x1e0b),_0x153452(0x1774),function(_0x6f012e,_0x1d327b){const _0x16343f=_0x153452;return _0x1d327b[_0x16343f(0x22b6)](_0x16343f(0x1c60))?_0x6f012e[_0x16343f(0x19a3)]('voiceQueue@get',{'type':_0x16343f(0x895),'sort':_0x16343f(0x282),'nolimit':!![]}):_0x6f012e[_0x16343f(0x19a3)](_0x16343f(0x12da),{'id':_0x1d327b[_0x16343f(0x21e8)]()[_0x16343f(0x13c1)],'section':'QueueCampaigns','channel':_0x16343f(0x1fd4),'type':'outbound','sort':'-updatedAt','nolimit':!![]});}],'userProfile':[_0x153452(0x1e0b),'Auth',function(_0x372963,_0x53fff1){const _0x4d7a9c=_0x153452;return _0x53fff1[_0x4d7a9c(0x22b6)]('admin')?null:_0x372963[_0x4d7a9c(0x19a3)](_0x4d7a9c(0x9ae),{'fields':_0x4d7a9c(0x279),'id':_0x53fff1['getCurrentUser']()[_0x4d7a9c(0x13c1)]});}],'userProfileSection':['apiResolver','Auth',function(_0x1674db,_0x3c7e18){const _0x47326e=_0x153452;return _0x3c7e18[_0x47326e(0x22b6)](_0x47326e(0x1c60))?null:_0x1674db[_0x47326e(0x19a3)](_0x47326e(0x2182),{'fields':_0x47326e(0x1f5f),'userProfileId':_0x3c7e18[_0x47326e(0x21e8)]()[_0x47326e(0x13c1)],'sectionId':0x5dd});}],'rpcVoiceQueuesChannels':[_0x153452(0x1e0b),function(_0x134d5d){const _0x441785=_0x153452;return _0x134d5d['resolve'](_0x441785(0xd70));}]},'authenticate':!![],'permissionId':0x5e6})[_0x153452(0x27e0)](_0x153452(0x1b31),{'url':_0x153452(0x42a),'controller':_0x153452(0x2661),'templateUrl':_0x352a71,'resolve':{'agents':[_0x153452(0x1e0b),'Auth',function(_0x58c435,_0x29a7e3){const _0x310596=_0x153452;return _0x29a7e3[_0x310596(0x22b6)]('admin')?_0x58c435[_0x310596(0x19a3)](_0x310596(0x1c86),{'fields':_0x310596(0xa40),'role':_0x310596(0x1eff),'nolimit':!![]}):_0x58c435['resolve'](_0x310596(0x12da),{'id':_0x29a7e3['getCurrentUser']()[_0x310596(0x13c1)],'section':_0x310596(0x2536),'fields':_0x310596(0xa40),'role':_0x310596(0x1eff),'nolimit':!![]});}],'queues':[_0x153452(0x1e0b),_0x153452(0x1774),function(_0x1ef153,_0x1b244e){const _0x119af1=_0x153452;return _0x1b244e[_0x119af1(0x22b6)]('admin')?_0x1ef153[_0x119af1(0x19a3)](_0x119af1(0x1c4d),{'type':_0x119af1(0x895),'sort':_0x119af1(0x282),'nolimit':!![]}):_0x1ef153[_0x119af1(0x19a3)]('userProfile@getResources',{'id':_0x1b244e[_0x119af1(0x21e8)]()[_0x119af1(0x13c1)],'section':_0x119af1(0x1e28),'channel':_0x119af1(0x1fd4),'type':_0x119af1(0x895),'sort':_0x119af1(0x282),'nolimit':!![]});}],'dispositions':[_0x153452(0x1e0b),'Auth',function(_0x63e38d,_0x21351d){const _0x4891b9=_0x153452;return _0x21351d[_0x4891b9(0x22b6)](_0x4891b9(0x1c60))?_0x63e38d[_0x4891b9(0x19a3)](_0x4891b9(0x1c6f),{'fields':_0x4891b9(0xb83),'sort':_0x4891b9(0x282),'MailAccountId':_0x4891b9(0xd38),'FaxAccountId':_0x4891b9(0xd38),'SmsAccountId':_0x4891b9(0xd38),'WhatsappAccountId':_0x4891b9(0xd38),'OpenchannelAccountId':'null','ChatWebsiteId':'null','ListId':_0x4891b9(0xd38),'nolimit':!![]}):_0x63e38d[_0x4891b9(0x19a3)](_0x4891b9(0x12da),{'id':_0x21351d[_0x4891b9(0x21e8)]()[_0x4891b9(0x13c1)],'section':_0x4891b9(0x5d1),'fields':'createdAt,updatedAt,id,name','sort':'-updatedAt','MailAccountId':_0x4891b9(0xd38),'FaxAccountId':'null','SmsAccountId':_0x4891b9(0xd38),'WhatsappAccountId':_0x4891b9(0xd38),'OpenchannelAccountId':'null','ChatWebsiteId':_0x4891b9(0xd38),'ListId':_0x4891b9(0xd38),'nolimit':!![]});}],'userProfile':[_0x153452(0x1e0b),_0x153452(0x1774),function(_0x3a92ad,_0x3c17c7){const _0x59dbc5=_0x153452;return _0x3c17c7['hasRole'](_0x59dbc5(0x1c60))?null:_0x3a92ad[_0x59dbc5(0x19a3)]('userProfile@get',{'fields':_0x59dbc5(0x279),'id':_0x3c17c7[_0x59dbc5(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x153452(0x1e0b),_0x153452(0x1774),function(_0x5b7b58,_0x28f377){const _0x976319=_0x153452;return _0x28f377[_0x976319(0x22b6)](_0x976319(0x1c60))?null:_0x5b7b58[_0x976319(0x19a3)](_0x976319(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x28f377[_0x976319(0x21e8)]()[_0x976319(0x13c1)],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5e6})['state'](_0x153452(0xb9f),{'url':_0x153452(0x25c5),'controller':_0x153452(0x7cf),'templateUrl':_0x423cde,'resolve':{'queues':['apiResolver',_0x153452(0x1774),function(_0x25c6ba,_0xeed571){const _0x25f003=_0x153452;return _0xeed571[_0x25f003(0x22b6)](_0x25f003(0x1c60))?_0x25c6ba[_0x25f003(0x19a3)](_0x25f003(0x1c4d),{'type':_0x25f003(0x895),'fields':'id,name','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x25c6ba['resolve'](_0x25f003(0x12da),{'id':_0xeed571[_0x25f003(0x21e8)]()['userProfileId'],'section':_0x25f003(0x1e28),'channel':_0x25f003(0x1fd4),'type':_0x25f003(0x895),'sort':_0x25f003(0x282),'nolimit':!![]});}],'userProfile':[_0x153452(0x1e0b),_0x153452(0x1774),function(_0x9fa4d0,_0x3f9236){const _0x575715=_0x153452;return _0x3f9236[_0x575715(0x22b6)](_0x575715(0x1c60))?null:_0x9fa4d0[_0x575715(0x19a3)]('userProfile@get',{'fields':_0x575715(0x279),'id':_0x3f9236['getCurrentUser']()[_0x575715(0x13c1)]});}],'userProfileSection':[_0x153452(0x1e0b),_0x153452(0x1774),function(_0x13a452,_0x4bc1fb){const _0x58e750=_0x153452;return _0x4bc1fb[_0x58e750(0x22b6)](_0x58e750(0x1c60))?null:_0x13a452[_0x58e750(0x19a3)](_0x58e750(0x2182),{'fields':_0x58e750(0x1f5f),'userProfileId':_0x4bc1fb['getCurrentUser']()[_0x58e750(0x13c1)],'sectionId':0x5dd});}],'rpcQueues':['apiResolver',function(_0x2aea5e){const _0x2d2221=_0x153452;return _0x2aea5e[_0x2d2221(0x19a3)](_0x2d2221(0xe6d));}]},'authenticate':!![],'permissionId':0x5e6})[_0x153452(0x27e0)]('app.motiondialer.realtime.ivr_campaigns',{'url':_0x153452(0xdb3),'controller':_0x153452(0x12b2),'templateUrl':_0x2b8c0f,'resolve':{'campaigns':[_0x153452(0x1e0b),_0x153452(0x1774),function(_0x576202,_0x1af6f5){const _0x2f8d09=_0x153452;return _0x1af6f5[_0x2f8d09(0x22b6)](_0x2f8d09(0x1c60))?_0x576202[_0x2f8d09(0x19a3)](_0x2f8d09(0xb29),{'sort':_0x2f8d09(0x282),'limit':0xa,'offset':0x0}):_0x576202['resolve'](_0x2f8d09(0x12da),{'id':_0x1af6f5[_0x2f8d09(0x21e8)]()[_0x2f8d09(0x13c1)],'section':_0x2f8d09(0x2525),'sort':_0x2f8d09(0x282),'limit':0xa,'offset':0x0});}],'userProfile':[_0x153452(0x1e0b),_0x153452(0x1774),function(_0x3af675,_0x8de25f){const _0x2f986d=_0x153452;return _0x8de25f[_0x2f986d(0x22b6)](_0x2f986d(0x1c60))?null:_0x3af675[_0x2f986d(0x19a3)](_0x2f986d(0x9ae),{'fields':_0x2f986d(0x279),'id':_0x8de25f[_0x2f986d(0x21e8)]()['userProfileId']});}],'userProfileSection':['apiResolver','Auth',function(_0x3a6996,_0x2d853e){const _0x31e5ba=_0x153452;return _0x2d853e[_0x31e5ba(0x22b6)]('admin')?null:_0x3a6996['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2d853e['getCurrentUser']()['userProfileId'],'sectionId':0x5de});}],'rpcCampaigns':['apiResolver',function(_0x315d09){const _0x322496=_0x153452;return _0x315d09[_0x322496(0x19a3)]('rpc@getCampaigns');}]},'authenticate':!![],'permissionId':0x5e6});}angular[_0x5537c6(0x9ab)](_0x5537c6(0x1239),[])[_0x5537c6(0xa60)](_0x1be2b3)['controller']('AbandonedCallsMotionDialerRealtimeController',_0x796fdb)[_0x5537c6(0x6e5)](_0x5537c6(0x1751),_0x500861)[_0x5537c6(0x6e5)]('IvrCampaignsMotionDialerRealtimeController',_0x6037a7)[_0x5537c6(0x6e5)](_0x5537c6(0x880),_0x467fcf)[_0x5537c6(0x6e5)](_0x5537c6(0x179),_0x154e45)['controller'](_0x5537c6(0x878),_0xd5573e)[_0x5537c6(0x6e5)](_0x5537c6(0x25a8),_0x5ca286)[_0x5537c6(0x234a)]('helperClasses',_0x3ea4b4)['controller'](_0x5537c6(0xa88),_0x1837f4);;const _0x3d2c08=_0x5074a3['p']+_0x5537c6(0x1b51);;const _0x1f4700=_0x5074a3['p']+_0x5537c6(0x1447);;const _0x49fbc1=_0x5074a3['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/ivrCampaigns.html/ivrCampaigns.html';;const _0x5918b0=_0x5074a3['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/view.html/view.html';;_0x9dc9c7[_0x5537c6(0x15b6)]=['$scope','$state','$location',_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x1fda),_0x5537c6(0x1218),_0x5537c6(0x142b),_0x5537c6(0x1774),'license',_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x9dc9c7(_0x45caff,_0x21fe6e,_0x13b8be,_0x2ae862,_0x51c09b,_0x11666d,_0x495778,_0x2d2294,_0x87cc4b,_0x3e271e,_0x3b0a8d,_0x35c949,_0x4f7bf6,_0x32d81a){const _0x3f4e5e=_0x5537c6,_0x40f627=this;_0x40f627['currentUser']=_0x3b0a8d[_0x3f4e5e(0x21e8)](),_0x40f627[_0x3f4e5e(0x1a7c)]=[],_0x40f627['setting']=_0x4f7bf6,_0x40f627[_0x3f4e5e(0x8a5)]=_0x35c949,_0x40f627[_0x3f4e5e(0x1b1a)]=_0x32d81a,_0x40f627[_0x3f4e5e(0xf4c)]={},_0x40f627[_0x3f4e5e(0x1b0c)]=_0x40f627[_0x3f4e5e(0x9ca)]&&_0x40f627[_0x3f4e5e(0x9ca)][_0x3f4e5e(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x40f627[_0x3f4e5e(0x1386)]=_0x3f4e5e(0x127d),_0x40f627['ivrCampaign']=angular[_0x3f4e5e(0x17fe)](_0x87cc4b),_0x40f627[_0x3f4e5e(0x1fda)]=_0x2d2294,_0x40f627['newIvrCampaign']=![];!_0x40f627['ivrCampaign']&&(_0x40f627[_0x3f4e5e(0x1218)]={'active':!![],'type':_0x3f4e5e(0x242e),'dialCheckDuplicateType':_0x3f4e5e(0x2017),'dialCutDigit':0x0,'limitCalls':0x1e,'dialRandomLastDigitCallerIdNumber':0x0,'dialOriginateTimeout':0x1e,'dialGlobalMaxRetry':0x4,'dialCongestionMaxRetry':0x3,'dialCongestionRetryFrequency':0x96,'dialBusyMaxRetry':0x3,'dialBusyRetryFrequency':0x96,'dialNoAnswerMaxRetry':0x3,'dialNoAnswerRetryFrequency':0x96,'dialNoSuchNumberMaxRetry':0x3,'dialNoSuchNumberRetryFrequency':0x96,'dialDropMaxRetry':0x3,'dialDropRetryFrequency':0x96,'dialAbandonedMaxRetry':0x3,'dialAbandonedRetryFrequency':0x96,'dialMachineMaxRetry':0x3,'dialMachineRetryFrequency':0x96,'dialAgentRejectMaxRetry':0x3,'dialAgentRejectRetryFrequency':0x96,'dialOrderByScheduledAt':'ASC','dialGlobalInterval':_0x3f4e5e(0x164a),'dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388},_0x40f627[_0x3f4e5e(0x1386)]=_0x3f4e5e(0x1465),_0x40f627[_0x3f4e5e(0x4bd)]=!![]);_0x40f627[_0x3f4e5e(0x4e0)]=_0x53619b,_0x40f627[_0x3f4e5e(0x2506)]=_0x1c9175,_0x40f627[_0x3f4e5e(0x6c5)]=_0x5d5644,_0x40f627[_0x3f4e5e(0x2c4)]=_0x545d3c,_0x40f627[_0x3f4e5e(0xda0)]=_0x40ef2d,_0x3b0a8d[_0x3f4e5e(0x22b6)](_0x3f4e5e(0x1c60))?_0x3e271e[_0x3f4e5e(0x1ae0)][_0x3f4e5e(0xbf7)]({'fields':_0x3f4e5e(0x43c),'sort':_0x3f4e5e(0x16b6),'table':_0x3f4e5e(0x44d)})['$promise'][_0x3f4e5e(0x1cb0)](function(_0x1e42fb){_0x40f627['trunks']=_0x1e42fb['rows']||[];})['catch'](function(_0x3fa393){const _0x15867e=_0x3f4e5e;_0x495778['error']({'title':_0x3fa393[_0x15867e(0x291)]?_0x15867e(0xeb9)+_0x3fa393['status']+_0x15867e(0x1657)+_0x3fa393[_0x15867e(0xc22)]:_0x15867e(0x14fc),'msg':_0x3fa393['data']?JSON['stringify'](_0x3fa393['data']):_0x3fa393[_0x15867e(0x147f)]()});}):_0x3e271e[_0x3f4e5e(0x1ae0)][_0x3f4e5e(0xbf7)]({'fields':'id,name','sort':_0x3f4e5e(0x16b6),'table':'true'})[_0x3f4e5e(0x1d77)][_0x3f4e5e(0x1cb0)](function(_0x2e88fb){const _0x2478ae=_0x3f4e5e;_0x40f627[_0x2478ae(0x1363)]=_0x2e88fb[_0x2478ae(0x2214)]||[];})['then'](function(){const _0x14045b=_0x3f4e5e;return _0x3e271e[_0x14045b(0x2199)][_0x14045b(0xbf7)]({'userProfileId':_0x40f627[_0x14045b(0xe76)][_0x14045b(0x13c1)],'sectionId':0x3f3})[_0x14045b(0x1d77)];})[_0x3f4e5e(0x1cb0)](function(_0x20e14c){const _0x1f6ca1=_0x3f4e5e,_0x6a8845=_0x20e14c&&_0x20e14c[_0x1f6ca1(0x2214)]?_0x20e14c[_0x1f6ca1(0x2214)][0x0]:null;if(!_0x6a8845)_0x40f627[_0x1f6ca1(0x1363)]=[];else{if(!_0x6a8845['autoAssociation'])return _0x3e271e[_0x1f6ca1(0x1198)][_0x1f6ca1(0xbf7)]({'sectionId':_0x6a8845['id']})[_0x1f6ca1(0x1d77)][_0x1f6ca1(0x1cb0)](function(_0x321c94){const _0x585b34=_0x1f6ca1,_0x29d550=_0x39641b()[_0x585b34(0x1de2)](_0x321c94[_0x585b34(0x2214)],function(_0x36349c){const _0x1f1539=_0x585b34;return _0x39641b()[_0x1f1539(0x13b4)](_0x40f627[_0x1f1539(0x1363)],{'id':_0x36349c[_0x1f1539(0x2982)]});});_0x40f627[_0x585b34(0x1363)][_0x585b34(0xf90)](function(_0x2d6b1d){const _0x520c27=_0x585b34;!_0x39641b()[_0x520c27(0x727)](_0x29d550,['id',_0x2d6b1d['id']])&&(_0x2d6b1d[_0x520c27(0x15da)]=![]),_0x29d550[_0x520c27(0x2785)](_0x2d6b1d);}),_0x40f627[_0x585b34(0x1363)]=_0x29d550;});}})[_0x3f4e5e(0x1c4)](function(_0x2b63d7){const _0x414578=_0x3f4e5e;_0x495778[_0x414578(0x218e)]({'title':_0x2b63d7[_0x414578(0x291)]?_0x414578(0xeb9)+_0x2b63d7['status']+_0x414578(0x1657)+_0x2b63d7[_0x414578(0xc22)]:'SYSTEM:GETtrunks','msg':_0x2b63d7['data']?JSON['stringify'](_0x2b63d7[_0x414578(0x25c)]):_0x2b63d7[_0x414578(0x147f)]()});}),_0x3b0a8d[_0x3f4e5e(0x22b6)]('admin')?_0x3e271e['squareProject']['get']({'fields':_0x3f4e5e(0x43c),'sort':_0x3f4e5e(0x16b6)})[_0x3f4e5e(0x1d77)][_0x3f4e5e(0x1cb0)](function(_0x22c6a7){const _0x44c5a1=_0x3f4e5e;_0x40f627[_0x44c5a1(0x2981)]=_0x22c6a7[_0x44c5a1(0x2214)]||[];})[_0x3f4e5e(0x1c4)](function(_0x16b22e){const _0x540c8a=_0x3f4e5e;_0x495778['error']({'title':_0x16b22e[_0x540c8a(0x291)]?_0x540c8a(0xeb9)+_0x16b22e[_0x540c8a(0x291)]+'\x20-\x20'+_0x16b22e[_0x540c8a(0xc22)]:_0x540c8a(0x214c),'msg':_0x16b22e['data']?JSON[_0x540c8a(0x2701)](_0x16b22e[_0x540c8a(0x25c)]):_0x16b22e[_0x540c8a(0x147f)]()});}):_0x3e271e[_0x3f4e5e(0xf61)]['get']({'fields':_0x3f4e5e(0x43c),'sort':_0x3f4e5e(0x16b6)})['$promise'][_0x3f4e5e(0x1cb0)](function(_0x12ca16){const _0x3ba889=_0x3f4e5e;_0x40f627['projects']=_0x12ca16[_0x3ba889(0x2214)]||[];})['then'](function(){const _0x1445ca=_0x3f4e5e;return _0x3e271e[_0x1445ca(0x2199)][_0x1445ca(0xbf7)]({'userProfileId':_0x40f627[_0x1445ca(0xe76)][_0x1445ca(0x13c1)],'sectionId':0x44f})[_0x1445ca(0x1d77)];})[_0x3f4e5e(0x1cb0)](function(_0xfdb750){const _0x45d7a4=_0x3f4e5e,_0x275cde=_0xfdb750&&_0xfdb750[_0x45d7a4(0x2214)]?_0xfdb750[_0x45d7a4(0x2214)][0x0]:null;if(!_0x275cde){const _0xdf8c4c=[];let _0x2a208c=null;_0x40f627['ivrCampaign']&&(_0x2a208c=_0x39641b()['find'](_0x40f627[_0x45d7a4(0x2981)],{'id':Number(_0x40f627[_0x45d7a4(0x1218)][_0x45d7a4(0x1544)])}));for(let _0x3ed816=0x0;_0x3ed816<_0x40f627[_0x45d7a4(0x2981)]['length'];_0x3ed816++){_0x2a208c&&_0x40f627['projects'][_0x3ed816]['id']===_0x2a208c['id']&&(_0x40f627[_0x45d7a4(0x2981)][_0x3ed816][_0x45d7a4(0x15da)]=![],_0xdf8c4c[_0x45d7a4(0x2785)](_0x40f627[_0x45d7a4(0x2981)][_0x3ed816]));}_0x40f627['projects']=_0xdf8c4c;}else{if(!_0x275cde[_0x45d7a4(0x12f4)])return _0x3e271e['userProfileResource']['get']({'sectionId':_0x275cde['id']})['$promise'][_0x45d7a4(0x1cb0)](function(_0x18155c){const _0xb0c0f5=_0x45d7a4,_0x43c245=_0x39641b()[_0xb0c0f5(0x1de2)](_0x18155c[_0xb0c0f5(0x2214)],function(_0x4b7464){const _0x2be4c2=_0xb0c0f5;return _0x39641b()[_0x2be4c2(0x13b4)](_0x40f627[_0x2be4c2(0x2981)],{'id':_0x4b7464[_0x2be4c2(0x2982)]});});let _0x44e9f2=null;_0x40f627['ivrCampaign']&&(_0x44e9f2=_0x39641b()[_0xb0c0f5(0x13b4)](_0x40f627[_0xb0c0f5(0x2981)],{'id':Number(_0x40f627[_0xb0c0f5(0x1218)][_0xb0c0f5(0x1544)])}));if(_0x44e9f2&&!_0x39641b()['some'](_0x43c245,['id',_0x44e9f2['id']])){const _0x26cb16=_0x39641b()[_0xb0c0f5(0x13b4)](_0x40f627[_0xb0c0f5(0x2981)],{'id':_0x44e9f2['id']});_0x26cb16['canSelect']=![],_0x43c245['push'](_0x26cb16);}_0x40f627['projects']=_0x43c245;});}})[_0x3f4e5e(0x1c4)](function(_0x4631dd){const _0x378218=_0x3f4e5e;_0x495778[_0x378218(0x218e)]({'title':_0x4631dd[_0x378218(0x291)]?_0x378218(0xeb9)+_0x4631dd['status']+_0x378218(0x1657)+_0x4631dd[_0x378218(0xc22)]:_0x378218(0x2101),'msg':_0x4631dd['data']?JSON[_0x378218(0x2701)](_0x4631dd[_0x378218(0x25c)]):_0x4631dd[_0x378218(0x147f)]()});}),_0x3b0a8d[_0x3f4e5e(0x22b6)]('admin')?_0x3e271e[_0x3f4e5e(0x1ac8)][_0x3f4e5e(0xbf7)]({'fields':_0x3f4e5e(0x43c),'sort':_0x3f4e5e(0x16b6),'IntervalId':_0x3f4e5e(0xd38)})[_0x3f4e5e(0x1d77)][_0x3f4e5e(0x1cb0)](function(_0x23d6a1){const _0x5cdc50=_0x3f4e5e;_0x40f627[_0x5cdc50(0x1ac8)]=_0x23d6a1[_0x5cdc50(0x2214)]||[];})[_0x3f4e5e(0x1c4)](function(_0x4eeea2){const _0x491cd0=_0x3f4e5e;_0x495778[_0x491cd0(0x218e)]({'title':_0x4eeea2[_0x491cd0(0x291)]?'API:'+_0x4eeea2[_0x491cd0(0x291)]+_0x491cd0(0x1657)+_0x4eeea2['statusText']:'SYSTEM:GET_INTERVAL','msg':_0x4eeea2[_0x491cd0(0x25c)]?JSON[_0x491cd0(0x2701)](_0x4eeea2[_0x491cd0(0x25c)]):_0x4eeea2[_0x491cd0(0x147f)]()});}):_0x3e271e[_0x3f4e5e(0x1ac8)][_0x3f4e5e(0xbf7)]({'fields':_0x3f4e5e(0x43c),'sort':_0x3f4e5e(0x16b6),'IntervalId':_0x3f4e5e(0xd38)})[_0x3f4e5e(0x1d77)][_0x3f4e5e(0x1cb0)](function(_0x28ebfd){const _0x442176=_0x3f4e5e;_0x40f627[_0x442176(0x1ac8)]=_0x28ebfd['rows']||[];})[_0x3f4e5e(0x1cb0)](function(){const _0x11ffaf=_0x3f4e5e;return _0x3e271e[_0x11ffaf(0x2199)][_0x11ffaf(0xbf7)]({'userProfileId':_0x40f627[_0x11ffaf(0xe76)][_0x11ffaf(0x13c1)],'sectionId':0x3ec})[_0x11ffaf(0x1d77)];})[_0x3f4e5e(0x1cb0)](function(_0xbd7a4c){const _0x332e08=_0x3f4e5e,_0x203979=_0xbd7a4c&&_0xbd7a4c[_0x332e08(0x2214)]?_0xbd7a4c[_0x332e08(0x2214)][0x0]:null;if(!_0x203979){const _0x5ae1a7=[];let _0x7b9321=null;_0x40f627[_0x332e08(0x1218)]&&(_0x7b9321=_0x39641b()[_0x332e08(0x13b4)](_0x40f627[_0x332e08(0x1ac8)],{'id':Number(_0x40f627['ivrCampaign'][_0x332e08(0x1a60)])}));for(let _0x54eba3=0x0;_0x54eba3<_0x40f627[_0x332e08(0x1ac8)][_0x332e08(0xfd0)];_0x54eba3++){_0x7b9321&&_0x40f627[_0x332e08(0x1ac8)][_0x54eba3]['id']===_0x7b9321['id']&&(_0x40f627[_0x332e08(0x1ac8)][_0x54eba3][_0x332e08(0x15da)]=![],_0x5ae1a7[_0x332e08(0x2785)](_0x40f627[_0x332e08(0x1ac8)][_0x54eba3]));}_0x40f627[_0x332e08(0x1ac8)]=_0x5ae1a7;}else{if(!_0x203979[_0x332e08(0x12f4)])return _0x3e271e[_0x332e08(0x1198)]['get']({'sectionId':_0x203979['id']})[_0x332e08(0x1d77)][_0x332e08(0x1cb0)](function(_0x2b31ae){const _0x61e460=_0x332e08,_0x32ea5a=_0x39641b()[_0x61e460(0x1de2)](_0x2b31ae['rows'],function(_0x2473db){const _0x34ef1e=_0x61e460;return _0x39641b()[_0x34ef1e(0x13b4)](_0x40f627['interval'],{'id':_0x2473db['resourceId']});});let _0x5665fd=null;_0x40f627[_0x61e460(0x1218)]&&(_0x5665fd=_0x39641b()[_0x61e460(0x13b4)](_0x40f627[_0x61e460(0x1ac8)],{'id':Number(_0x40f627['ivrCampaign'][_0x61e460(0x1a60)])}));if(_0x5665fd&&!_0x39641b()['some'](_0x32ea5a,['id',_0x5665fd['id']])){const _0x2cb0bb=_0x39641b()[_0x61e460(0x13b4)](_0x40f627['interval'],{'id':_0x5665fd['id']});_0x2cb0bb[_0x61e460(0x15da)]=![],_0x32ea5a[_0x61e460(0x2785)](_0x2cb0bb);}_0x40f627[_0x61e460(0x1ac8)]=_0x32ea5a;});}})['catch'](function(_0x56d207){const _0x21dd17=_0x3f4e5e;_0x495778[_0x21dd17(0x218e)]({'title':_0x56d207[_0x21dd17(0x291)]?_0x21dd17(0xeb9)+_0x56d207['status']+'\x20-\x20'+_0x56d207[_0x21dd17(0xc22)]:_0x21dd17(0x1b58),'msg':_0x56d207[_0x21dd17(0x25c)]?JSON[_0x21dd17(0x2701)](_0x56d207[_0x21dd17(0x25c)]):_0x56d207[_0x21dd17(0x147f)]()});});function _0x53619b(){const _0x16ec6d=_0x3f4e5e;_0x40f627['errors']=[],_0x3e271e[_0x16ec6d(0x218c)][_0x16ec6d(0x1c3f)](_0x40f627['ivrCampaign'])[_0x16ec6d(0x1d77)]['then'](function(_0x737e71){const _0x12c6a1=_0x16ec6d;_0x40f627[_0x12c6a1(0x1fda)][_0x12c6a1(0xf63)](_0x737e71['toJSON']()),_0x495778[_0x12c6a1(0x829)]({'title':_0x12c6a1(0x4aa),'msg':_0x40f627[_0x12c6a1(0x1218)]['name']?_0x40f627[_0x12c6a1(0x1218)][_0x12c6a1(0x16b6)]+_0x12c6a1(0x470):''}),_0x40ef2d(_0x737e71);})['catch'](function(_0x3cfc6e){const _0x99b2a6=_0x16ec6d;if(_0x3cfc6e[_0x99b2a6(0x25c)]&&_0x3cfc6e['data']['errors']&&_0x3cfc6e[_0x99b2a6(0x25c)]['errors'][_0x99b2a6(0xfd0)]){_0x40f627['errors']=_0x3cfc6e['data'][_0x99b2a6(0x1a7c)]||[{'message':_0x3cfc6e[_0x99b2a6(0x147f)](),'type':_0x99b2a6(0x17bf)}];for(let _0x3a35af=0x0;_0x3a35af<_0x3cfc6e[_0x99b2a6(0x25c)]['errors']['length'];_0x3a35af+=0x1){_0x495778[_0x99b2a6(0x218e)]({'title':_0x3cfc6e['data'][_0x99b2a6(0x1a7c)][_0x3a35af]['type'],'msg':_0x3cfc6e[_0x99b2a6(0x25c)][_0x99b2a6(0x1a7c)][_0x3a35af][_0x99b2a6(0x155e)]});}}else _0x495778['error']({'title':_0x3cfc6e[_0x99b2a6(0x291)]?_0x99b2a6(0xeb9)+_0x3cfc6e[_0x99b2a6(0x291)]+'\x20-\x20'+_0x3cfc6e[_0x99b2a6(0xc22)]:'api.campaign.save','msg':_0x3cfc6e['data']?JSON['stringify'](_0x3cfc6e[_0x99b2a6(0x25c)][_0x99b2a6(0x155e)]):_0x3cfc6e['toString']()});});}function _0x1c9175(){const _0x5d412c=_0x3f4e5e;_0x40f627[_0x5d412c(0x1a7c)]=[],_0x3e271e[_0x5d412c(0x218c)][_0x5d412c(0x687)]({'id':_0x40f627['ivrCampaign']['id']},_0x40f627[_0x5d412c(0x1218)])[_0x5d412c(0x1d77)][_0x5d412c(0x1cb0)](function(_0x55638e){const _0x3f9fc2=_0x5d412c,_0x5512df=_0x39641b()[_0x3f9fc2(0x13b4)](_0x40f627[_0x3f9fc2(0x1fda)],{'id':_0x55638e['id']});_0x5512df&&_0x39641b()[_0x3f9fc2(0x9c1)](_0x5512df,_0x39641b()[_0x3f9fc2(0x169b)](_0x55638e[_0x3f9fc2(0x19b2)](),_0x39641b()[_0x3f9fc2(0x1be5)](_0x5512df))),_0x495778['success']({'title':'IvrCampaign\x20properly\x20saved!','msg':_0x40f627['ivrCampaign']['name']?_0x40f627[_0x3f9fc2(0x1218)]['name']+_0x3f9fc2(0xedb):''}),_0x40ef2d(_0x55638e);})[_0x5d412c(0x1c4)](function(_0x473079){const _0x4b5828=_0x5d412c;if(_0x473079['data']&&_0x473079[_0x4b5828(0x25c)][_0x4b5828(0x1a7c)]&&_0x473079[_0x4b5828(0x25c)]['errors'][_0x4b5828(0xfd0)]){_0x40f627[_0x4b5828(0x1a7c)]=_0x473079[_0x4b5828(0x25c)][_0x4b5828(0x1a7c)]||[{'message':_0x473079['toString'](),'type':_0x4b5828(0x8ce)}];for(let _0x4a85bf=0x0;_0x4a85bf<_0x473079['data'][_0x4b5828(0x1a7c)][_0x4b5828(0xfd0)];_0x4a85bf++){_0x495778['error']({'title':_0x473079[_0x4b5828(0x25c)][_0x4b5828(0x1a7c)][_0x4a85bf][_0x4b5828(0x66a)],'msg':_0x473079[_0x4b5828(0x25c)][_0x4b5828(0x1a7c)][_0x4a85bf][_0x4b5828(0x155e)]});}}else _0x495778[_0x4b5828(0x218e)]({'title':_0x473079[_0x4b5828(0x291)]?_0x4b5828(0xeb9)+_0x473079['status']+_0x4b5828(0x1657)+_0x473079['statusText']:_0x4b5828(0x8ce),'msg':_0x473079[_0x4b5828(0x25c)]?JSON[_0x4b5828(0x2701)](_0x473079[_0x4b5828(0x25c)][_0x4b5828(0x155e)]):_0x473079['toString']()});});}function _0x5d5644(_0x970b86){const _0xbfbef6=_0x3f4e5e;_0x40f627['errors']=[];const _0x43bc54=_0x2ae862[_0xbfbef6(0x1551)]()[_0xbfbef6(0x1386)](_0xbfbef6(0x1a2e))['content']('The\x20ivrCampaign\x20will\x20be\x20deleted.')[_0xbfbef6(0x15ad)](_0xbfbef6(0x28cd))['ok'](_0xbfbef6(0x2594))[_0xbfbef6(0x696)](_0xbfbef6(0xde1))[_0xbfbef6(0x728)](_0x970b86);_0x2ae862['show'](_0x43bc54)[_0xbfbef6(0x1cb0)](function(){const _0x20b8f9=_0xbfbef6;_0x3e271e[_0x20b8f9(0x218c)][_0x20b8f9(0x111d)]({'id':_0x40f627[_0x20b8f9(0x1218)]['id']})[_0x20b8f9(0x1d77)]['then'](function(){const _0xdfb75c=_0x20b8f9;_0x39641b()['remove'](_0x40f627[_0xdfb75c(0x1fda)],{'id':_0x40f627['ivrCampaign']['id']}),_0x495778['success']({'title':_0xdfb75c(0xdf1),'msg':(_0x40f627['ivrCampaign'][_0xdfb75c(0x16b6)]||_0xdfb75c(0x1218))+_0xdfb75c(0x3f5)}),_0x40ef2d(_0x40f627['ivrCampaign']);})[_0x20b8f9(0x1c4)](function(_0x13806a){const _0x59e6ca=_0x20b8f9;if(_0x13806a[_0x59e6ca(0x25c)]&&_0x13806a[_0x59e6ca(0x25c)][_0x59e6ca(0x1a7c)]&&_0x13806a[_0x59e6ca(0x25c)][_0x59e6ca(0x1a7c)][_0x59e6ca(0xfd0)]){_0x40f627[_0x59e6ca(0x1a7c)]=_0x13806a[_0x59e6ca(0x25c)][_0x59e6ca(0x1a7c)]||[{'message':_0x13806a['toString'](),'type':_0x59e6ca(0x26c3)}];for(let _0x2a338a=0x0;_0x2a338a<_0x13806a[_0x59e6ca(0x25c)]['errors']['length'];_0x2a338a++){_0x495778[_0x59e6ca(0x218e)]({'title':_0x13806a[_0x59e6ca(0x25c)][_0x59e6ca(0x1a7c)][_0x2a338a][_0x59e6ca(0x66a)],'msg':_0x13806a[_0x59e6ca(0x25c)]['errors'][_0x2a338a][_0x59e6ca(0x155e)]});}}else _0x495778[_0x59e6ca(0x218e)]({'title':_0x13806a[_0x59e6ca(0x291)]?'API:'+_0x13806a[_0x59e6ca(0x291)]+_0x59e6ca(0x1657)+_0x13806a[_0x59e6ca(0xc22)]:_0x59e6ca(0x26c3),'msg':_0x13806a[_0x59e6ca(0x25c)]?JSON[_0x59e6ca(0x2701)](_0x13806a[_0x59e6ca(0x25c)][_0x59e6ca(0x155e)]):_0x13806a[_0x59e6ca(0x155e)]||_0x13806a[_0x59e6ca(0x147f)]()});});},function(){});}function _0x545d3c(_0x312f2e){return _0x312f2e===null?undefined:new Date(_0x312f2e);}function _0x40ef2d(_0x3fecdd){const _0x21d598=_0x3f4e5e;_0x2ae862[_0x21d598(0x1426)](_0x3fecdd);}}const _0x3d7546=_0x9dc9c7;;_0x456c6b[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),'api','ivrCampaign',_0x5537c6(0x1ae),_0x5537c6(0x2168),'Auth',_0x5537c6(0x1b1a)];function _0x456c6b(_0x514c5b,_0x177ab9,_0x50c9ec,_0x308c50,_0x4ce688,_0x5e3a78,_0x1d0537,_0x32304e,_0x1f2ab5){const _0x2decd3=_0x5537c6,_0x355624=this;_0x355624[_0x2decd3(0xe76)]=_0x32304e[_0x2decd3(0x21e8)](),_0x355624[_0x2decd3(0x1218)]=_0x4ce688,_0x355624['crudPermissions']=_0x1f2ab5,_0x355624[_0x2decd3(0x2847)]=_0x2decd3(0x26b3),_0x355624[_0x2decd3(0x21eb)]=_0x2decd3(0xe93),_0x355624[_0x2decd3(0x45a)]=_0x2decd3(0x13a3),_0x355624['removeApi']=_0x2decd3(0x1980),_0x355624[_0x2decd3(0x122f)]=[],_0x355624[_0x2decd3(0x1372)]=[],_0x355624['selectedItems']=[],_0x355624[_0x2decd3(0xbd5)]=[],_0x355624[_0x2decd3(0x1456)]=[],_0x355624[_0x2decd3(0x50c)]=![],_0x355624[_0x2decd3(0x2279)]=![],_0x355624[_0x2decd3(0x18c0)]={'readOnly':!_0x355624['crudPermissions'][_0x2decd3(0xb3d)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x2decd3(0x16b6),'line1':_0x2decd3(0x16b6),'line2':'','line3':'','labelAll':_0x5e3a78[_0x2decd3(0x25cc)](_0x2decd3(0x1a90)),'labelSelected':_0x5e3a78[_0x2decd3(0x25cc)](_0x2decd3(0x8f4)),'transferCallback':function(){const _0x58724c=_0x2decd3,_0x20fa39=_0x39641b()[_0x58724c(0x1423)](_0x355624[_0x58724c(0x1456)],_0x355624['selectedItems'],'id');_0x355624[_0x58724c(0x50c)]=_0x39641b()[_0x58724c(0xce9)](_0x20fa39)?![]:!![];}},_0x355624[_0x2decd3(0x1a34)]=_0x2f186d,_0x355624['saveLists']=_0x417280,_0x355624[_0x2decd3(0xda0)]=_0x5a0a7d;function _0x2f186d(){const _0x541aa0=_0x2decd3;return _0x32304e[_0x541aa0(0x22b6)](_0x541aa0(0x1c60))?_0x18da2e()['catch'](function(_0xbd899f){const _0x5550cb=_0x541aa0;_0x50c9ec[_0x5550cb(0x218e)]({'title':_0xbd899f['status']?_0x5550cb(0xeb9)+_0xbd899f[_0x5550cb(0x291)]+_0x5550cb(0x1657)+_0xbd899f[_0x5550cb(0xc22)]:_0x5550cb(0xfa5),'msg':_0xbd899f[_0x5550cb(0x291)]?JSON[_0x5550cb(0x2701)](_0xbd899f['data']):_0xbd899f[_0x5550cb(0x147f)]()});}):_0x54416c()[_0x541aa0(0x1cb0)](function(_0x14f203){const _0x1551db=_0x541aa0;return _0x355624[_0x1551db(0x1f74)]=_0x14f203,_0x18da2e();})[_0x541aa0(0x1c4)](function(_0x16d8cc){const _0x54e1de=_0x541aa0;_0x50c9ec['error']({'title':_0x16d8cc['status']?_0x54e1de(0xeb9)+_0x16d8cc[_0x54e1de(0x291)]+_0x54e1de(0x1657)+_0x16d8cc['statusText']:'SYSTEM:GETLISTS','msg':_0x16d8cc[_0x54e1de(0x291)]?JSON['stringify'](_0x16d8cc[_0x54e1de(0x25c)]):_0x16d8cc[_0x54e1de(0x147f)]()});});}function _0x54416c(){return _0x177ab9(function(_0x2467af,_0x8e3401){const _0x58a773=a0_0x5cbd;_0x308c50[_0x58a773(0x2199)]['get']({'userProfileId':_0x355624['currentUser']['userProfileId'],'name':_0x58a773(0x191f)})['$promise'][_0x58a773(0x1cb0)](function(_0x34732c){const _0x163e28=_0x58a773,_0x8406c4=_0x34732c&&_0x34732c['rows']?_0x34732c[_0x163e28(0x2214)][0x0]:null;_0x2467af(_0x8406c4);})[_0x58a773(0x1c4)](function(_0xac85a1){_0x8e3401(_0xac85a1);});});}function _0x18da2e(){return _0x177ab9(function(_0x2b3594,_0x26f92b){const _0x26489f=a0_0x5cbd;return _0x50d14e()[_0x26489f(0x1cb0)](function(_0x5b687f){const _0x4ff361=_0x26489f;return _0x355624[_0x4ff361(0x122f)]=_0x5b687f[_0x4ff361(0x2214)]?_0x5b687f['rows']:[],_0x32304e[_0x4ff361(0x22b6)]('admin')?_0x5b687f:_0x355624[_0x4ff361(0x1f74)]?_0x355624[_0x4ff361(0x1f74)]['autoAssociation']?_0x5b687f:_0x51f6b6():null;})[_0x26489f(0x1cb0)](function(_0x577513){const _0x333b0e=_0x26489f,_0x193b46=_0x577513&&_0x577513[_0x333b0e(0x2214)]?_0x577513[_0x333b0e(0x2214)]:[];return _0x355624[_0x333b0e(0x1372)]=_0x39641b()[_0x333b0e(0x1de2)](_0x193b46,function(_0x3bb45b){const _0x497113=_0x333b0e;return _0x39641b()[_0x497113(0x13b4)](_0x355624['items'],{'id':_0x32304e['hasRole']('admin')||_0x355624['section'][_0x497113(0x12f4)]?_0x3bb45b['id']:_0x3bb45b[_0x497113(0x2982)]});}),_0x355624['startingAllowedItems']=angular[_0x333b0e(0x17fe)](_0x355624[_0x333b0e(0x1372)]),_0x355624[_0x333b0e(0x122f)]['forEach'](function(_0x5410ff){const _0x5da36e=_0x333b0e,_0x13d691=_0x39641b()[_0x5da36e(0x13b4)](_0x355624[_0x5da36e(0x1372)],{'id':_0x5410ff['id']});_0x355624[_0x5da36e(0xe76)][_0x5da36e(0x26e6)]===_0x5da36e(0x1c60)?_0x5410ff[_0x5da36e(0x1a4f)]=!![]:_0x5410ff[_0x5da36e(0x1a4f)]=typeof _0x13d691!==_0x5da36e(0x16b5)?!![]:![];}),_0x5d7028();})[_0x26489f(0x1cb0)](function(_0x2b15a6){const _0x523e85=_0x26489f,_0x397454=_0x2b15a6&&_0x2b15a6[_0x523e85(0x2214)]?_0x2b15a6['rows']:[];_0x355624[_0x523e85(0x20bb)]=_0x39641b()[_0x523e85(0x1de2)](_0x397454,function(_0x5b0f59){const _0x3fbe7d=_0x523e85;return _0x39641b()[_0x3fbe7d(0x13b4)](_0x355624[_0x3fbe7d(0x122f)],{'id':_0x5b0f59['id']});}),_0x355624[_0x523e85(0x1456)]=angular[_0x523e85(0x17fe)](_0x355624[_0x523e85(0x20bb)]),_0x355624[_0x523e85(0x18c0)][_0x523e85(0x20bb)]=_0x355624[_0x523e85(0x20bb)],_0x355624[_0x523e85(0x18c0)][_0x523e85(0x122f)]=_0x39641b()[_0x523e85(0x2128)](_0x355624['allowedItems'],_0x355624[_0x523e85(0x18c0)][_0x523e85(0x20bb)],'id'),_0x2b3594();})[_0x26489f(0x1c4)](function(_0x37f1e2){_0x26f92b(_0x37f1e2);});});}function _0x51f6b6(){return _0x177ab9(function(_0xe845d0,_0x1f3c80){const _0x28183f=a0_0x5cbd;return _0x308c50['userProfileResource'][_0x28183f(0xbf7)]({'sectionId':_0x355624[_0x28183f(0x1f74)]['id'],'nolimit':!![]})['$promise'][_0x28183f(0x1cb0)](function(_0x3aea9f){_0xe845d0(_0x3aea9f);})[_0x28183f(0x1c4)](function(_0x5530e1){_0x1f3c80(_0x5530e1);});});}function _0x5d7028(){return _0x177ab9(function(_0x269f6a,_0x4452bf){const _0x1abd79=a0_0x5cbd,_0x5b90c9=_0x308c50[_0x355624['apiRoute']];return _0x5b90c9[_0x355624[_0x1abd79(0x21eb)]]({'id':_0x355624['ivrCampaign']['id'],'fields':_0x1abd79(0x43c),'nolimit':!![]})[_0x1abd79(0x1d77)][_0x1abd79(0x1cb0)](function(_0x297b99){_0x269f6a(_0x297b99);})[_0x1abd79(0x1c4)](function(_0x151e96){_0x4452bf(_0x151e96);});});}function _0x50d14e(){return _0x177ab9(function(_0x3d8136,_0x8ab03b){const _0x2729fd=a0_0x5cbd;return _0x308c50[_0x2729fd(0x22f2)]['get']({'fields':_0x2729fd(0x43c),'nolimit':!![]})[_0x2729fd(0x1d77)][_0x2729fd(0x1cb0)](function(_0x2b30fe){_0x3d8136(_0x2b30fe);})[_0x2729fd(0x1c4)](function(_0x53514c){_0x8ab03b(_0x53514c);});});}function _0xbd1632(_0x28e72b){return _0x177ab9(function(_0x5b4917,_0xc44bb6){const _0x3d147a=a0_0x5cbd;if(_0x39641b()['isEmpty'](_0x28e72b))_0x5b4917();else{const _0x52595f=_0x308c50[_0x355624[_0x3d147a(0x2847)]];_0x52595f[_0x355624[_0x3d147a(0x45a)]]({'id':_0x355624['ivrCampaign']['id'],'ids':_0x39641b()[_0x3d147a(0x1de2)](_0x28e72b,'id')})[_0x3d147a(0x1d77)][_0x3d147a(0x1cb0)](function(){_0x5b4917();})[_0x3d147a(0x1c4)](function(_0x49fca4){_0xc44bb6(_0x49fca4);});}});}function _0x3a8faa(_0x163dd0){return _0x177ab9(function(_0x38baba,_0x589673){const _0x56dc17=a0_0x5cbd;if(_0x39641b()[_0x56dc17(0xce9)](_0x163dd0))_0x38baba();else{const _0x4a58ff=_0x308c50[_0x355624[_0x56dc17(0x2847)]];_0x4a58ff[_0x355624[_0x56dc17(0x9f3)]]({'id':_0x355624['ivrCampaign']['id'],'ids':_0x39641b()['map'](_0x163dd0,'id')})['$promise'][_0x56dc17(0x1cb0)](function(){_0x38baba();})[_0x56dc17(0x1c4)](function(_0x2a27cb){_0x589673(_0x2a27cb);});}});}function _0x417280(){const _0x37c868=_0x2decd3;_0x355624[_0x37c868(0x2279)]=!![];const _0x47f805=_0x39641b()[_0x37c868(0x2128)](_0x355624[_0x37c868(0x1456)],_0x355624[_0x37c868(0x20bb)],'id'),_0x3a448a=_0x39641b()[_0x37c868(0x2128)](_0x355624[_0x37c868(0x20bb)],_0x355624[_0x37c868(0x1456)],'id');return _0x3a8faa(_0x47f805)[_0x37c868(0x1cb0)](function(){return _0xbd1632(_0x3a448a);})[_0x37c868(0x1cb0)](function(){const _0x35aee3=_0x37c868;_0x355624[_0x35aee3(0x50c)]=![],_0x355624[_0x35aee3(0xbd5)]=angular[_0x35aee3(0x17fe)](_0x355624[_0x35aee3(0x1372)]),_0x355624[_0x35aee3(0x1456)]=angular[_0x35aee3(0x17fe)](_0x355624[_0x35aee3(0x20bb)]),_0x50c9ec['success']({'title':_0x35aee3(0x201),'msg':_0x35aee3(0x1a03)});})[_0x37c868(0x1c4)](function(_0x410d92){const _0x572bfc=_0x37c868;_0x50c9ec[_0x572bfc(0x218e)]({'title':_0x410d92['status']?_0x572bfc(0xeb9)+_0x410d92[_0x572bfc(0x291)]+_0x572bfc(0x1657)+_0x410d92[_0x572bfc(0xc22)]:_0x572bfc(0x1221),'msg':_0x410d92[_0x572bfc(0x291)]?JSON[_0x572bfc(0x2701)](_0x410d92[_0x572bfc(0x25c)]):_0x410d92['toString']()});})['finally'](function(){const _0x2c1952=_0x37c868;_0x355624[_0x2c1952(0x2279)]=![];});}function _0x5a0a7d(){const _0x4d9652=_0x2decd3;_0x514c5b[_0x4d9652(0x1426)]();}}const _0x4b65bb=_0x456c6b;;_0x53739a['$inject']=[_0x5537c6(0xcb9),_0x5537c6(0x406),_0x5537c6(0x9bf),'api','ivrCampaign',_0x5537c6(0x1fda),_0x5537c6(0x1ae)];function _0x53739a(_0x39b032,_0x3acae5,_0x33e2dd,_0x550761,_0x267817,_0x31aafc,_0x443d79){const _0x50b1fb=_0x5537c6,_0xf5599f=this;_0xf5599f[_0x50b1fb(0x4bd)]=!![],_0xf5599f['ivrCampaign']=angular[_0x50b1fb(0x17fe)](_0x267817),_0xf5599f[_0x50b1fb(0x1fda)]=_0x31aafc,_0xf5599f['title']=_0x443d79['instant']('MOTIONDIALER.CLONE_IVRCAMPAIGN');_0x267817&&_0x267817[_0x50b1fb(0x16b6)]&&(_0xf5599f[_0x50b1fb(0x1386)]+=':\x20'+_0x267817[_0x50b1fb(0x16b6)]);_0xf5599f[_0x50b1fb(0xa2a)]=_0x278366,_0xf5599f[_0x50b1fb(0xda0)]=_0xd0a81b;function _0x278366(){const _0x5d9cc4=_0x50b1fb;return _0x550761['campaign']['clone']({'id':_0x267817['id']},_0xf5599f[_0x5d9cc4(0x1218)])[_0x5d9cc4(0x1d77)][_0x5d9cc4(0x1cb0)](function(_0x5a1dbd){const _0x4aaf8c=_0x5d9cc4;_0xf5599f[_0x4aaf8c(0x1fda)][_0x4aaf8c(0xf63)](_0x5a1dbd[_0x4aaf8c(0x19b2)]()),_0x33e2dd[_0x4aaf8c(0x829)]({'title':_0x4aaf8c(0x25e4),'msg':_0xf5599f['ivrCampaign'][_0x4aaf8c(0x16b6)]?_0xf5599f[_0x4aaf8c(0x1218)][_0x4aaf8c(0x16b6)]+_0x4aaf8c(0x2204):''}),_0x3acae5['go'](_0x4aaf8c(0x7cd),{'id':_0x5a1dbd['id']}),_0xd0a81b(_0x5a1dbd);})[_0x5d9cc4(0x1c4)](function(_0x2c3685){const _0x4b8e51=_0x5d9cc4;if(_0x2c3685[_0x4b8e51(0x25c)]&&_0x2c3685[_0x4b8e51(0x25c)][_0x4b8e51(0x1a7c)]&&_0x2c3685[_0x4b8e51(0x25c)][_0x4b8e51(0x1a7c)]['length']){_0xf5599f[_0x4b8e51(0x1a7c)]=_0x2c3685[_0x4b8e51(0x25c)][_0x4b8e51(0x1a7c)]||[{'message':_0x2c3685[_0x4b8e51(0x147f)](),'type':_0x4b8e51(0x253b)}];for(let _0x355d06=0x0;_0x355d06<_0x2c3685[_0x4b8e51(0x25c)][_0x4b8e51(0x1a7c)]['length'];_0x355d06+=0x1){_0x33e2dd['error']({'title':_0x2c3685[_0x4b8e51(0x25c)][_0x4b8e51(0x1a7c)][_0x355d06]['type'],'msg':_0x2c3685[_0x4b8e51(0x25c)][_0x4b8e51(0x1a7c)][_0x355d06][_0x4b8e51(0x155e)]});}}else _0x33e2dd[_0x4b8e51(0x218e)]({'title':_0x2c3685[_0x4b8e51(0x291)]?_0x4b8e51(0xeb9)+_0x2c3685[_0x4b8e51(0x291)]+_0x4b8e51(0x1657)+_0x2c3685[_0x4b8e51(0xc22)]:_0x4b8e51(0x253b),'msg':_0x2c3685[_0x4b8e51(0x25c)]?JSON[_0x4b8e51(0x2701)](_0x2c3685[_0x4b8e51(0x25c)]['message']):_0x2c3685[_0x4b8e51(0x147f)]()});});}function _0xd0a81b(_0x3c96d3){const _0x2e8baa=_0x50b1fb;_0x39b032[_0x2e8baa(0x1426)](_0x3c96d3);}}const _0x1beecc=_0x53739a;;_0x43d837['$inject']=[_0x5537c6(0x173),_0x5537c6(0x1463),_0x5537c6(0x406),'$q',_0x5537c6(0x1ae),'$timeout',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),'api',_0x5537c6(0x1774)];function _0x43d837(_0xdaa0a3,_0x1a7cb4,_0x394ab5,_0x24537d,_0x4a3c70,_0x575e09,_0x4b7ad3,_0x3398fd,_0x37f6fd,_0x317642,_0x47221f){const _0xf1b3bf=_0x5537c6,_0xc0505c=this;_0xc0505c[_0xf1b3bf(0xe76)]=_0x47221f['getCurrentUser'](),_0xc0505c[_0xf1b3bf(0x1218)]={},_0xc0505c[_0xf1b3bf(0x27b5)]={'count':0x0,'rows':[]},_0xc0505c[_0xf1b3bf(0x160)]=[],_0xc0505c[_0xf1b3bf(0x1b1a)],_0xc0505c[_0xf1b3bf(0xae2)]={'fields':_0xf1b3bf(0x1be4),'sort':_0xf1b3bf(0x7d0),'limit':0xa,'page':0x1},_0xc0505c['init']=_0x3b25b1,_0xc0505c[_0xf1b3bf(0xb25)]=_0x1f66ed,_0xc0505c['success']=_0x5c7dcd,_0xc0505c[_0xf1b3bf(0xcd4)]=_0x1c628d,_0xc0505c[_0xf1b3bf(0x25c4)]=_0x5e1dd1,_0xc0505c['deleteIvrCampaignHopperBlack']=_0x4b6086,_0xc0505c[_0xf1b3bf(0x19cc)]=_0x2776c7;function _0x3b25b1(_0x4ae232,_0x48db26){const _0x5e068d=_0xf1b3bf;_0xc0505c['ivrCampaign']=_0x4ae232,_0xc0505c['crudPermissions']=typeof _0x48db26!=='undefined'?_0x48db26:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xc0505c['query'][_0x5e068d(0x21c1)]=_0xc0505c[_0x5e068d(0x1218)]['id'],_0xc0505c[_0x5e068d(0xae2)]['id']=_0xc0505c[_0x5e068d(0x1218)]['id'],_0x1c628d();}function _0x1f66ed(_0x3ee8f5,_0xe091af){const _0x4fa39e=_0xf1b3bf,_0x1f99a0=_0x4b7ad3[_0x4fa39e(0x1551)]()[_0x4fa39e(0x1386)](_0x4fa39e(0x23a5))[_0x4fa39e(0x49e)](_0x4fa39e(0x204d)+(_0x3ee8f5[_0x4fa39e(0x16b6)]||_0x3ee8f5['id']&&_0x39641b()[_0x4fa39e(0x277)]('hopperBlack\x20#')+_0x3ee8f5['id']||_0x4fa39e(0x939))+_0x4fa39e(0x1200)+'\x20will\x20be\x20deleted.')[_0x4fa39e(0x15ad)](_0x4fa39e(0x2009))['targetEvent'](_0xe091af)['ok']('OK')['cancel']('CANCEL');_0x4b7ad3[_0x4fa39e(0xe27)](_0x1f99a0)[_0x4fa39e(0x1cb0)](function(){_0x4b6086(_0x3ee8f5);},function(){const _0x2e1a31=_0x4fa39e;console[_0x2e1a31(0x1b4f)](_0x2e1a31(0x24ba));});}function _0x5c7dcd(_0x3fd9aa){_0xc0505c['ivrCampaignHopperBlacks']=_0x3fd9aa||{'count':0x0,'rows':[]};}function _0x1c628d(){const _0x27f77f=_0xf1b3bf;_0xc0505c['query']['offset']=(_0xc0505c['query']['page']-0x1)*_0xc0505c['query'][_0x27f77f(0x236)],_0xc0505c[_0x27f77f(0x2061)]=_0x317642[_0x27f77f(0x218c)]['getHopperBlacks'](_0xc0505c[_0x27f77f(0xae2)],_0x5c7dcd)[_0x27f77f(0x1d77)];}function _0x4b6086(_0x568b74){const _0x526e2a=_0xf1b3bf;_0x317642['hopperBlack']['delete']({'id':_0x568b74['id']})['$promise'][_0x526e2a(0x1cb0)](function(){const _0x301856=_0x526e2a;_0x39641b()[_0x301856(0x152a)](_0xc0505c['ivrCampaignHopperBlacks'][_0x301856(0x2214)],{'id':_0x568b74['id']}),_0xc0505c[_0x301856(0x27b5)]['count']-=0x1,!_0xc0505c[_0x301856(0x27b5)]['rows'][_0x301856(0xfd0)]&&_0x1c628d(),_0x37f6fd[_0x301856(0x829)]({'title':_0x301856(0x1e0f),'msg':_0x568b74['name']?_0x568b74['name']+_0x301856(0x3f5):''});})[_0x526e2a(0x1c4)](function(_0x5021a5){const _0x189127=_0x526e2a;if(_0x5021a5['data']&&_0x5021a5[_0x189127(0x25c)]['errors']&&_0x5021a5['data'][_0x189127(0x1a7c)][_0x189127(0xfd0)]){_0xc0505c[_0x189127(0x1a7c)]=_0x5021a5[_0x189127(0x25c)][_0x189127(0x1a7c)]||[{'message':_0x5021a5['toString'](),'type':_0x189127(0x2049)}];for(let _0x3f5a91=0x0;_0x3f5a91<_0x5021a5[_0x189127(0x25c)][_0x189127(0x1a7c)][_0x189127(0xfd0)];_0x3f5a91++){_0x37f6fd[_0x189127(0x218e)]({'title':_0x5021a5[_0x189127(0x25c)][_0x189127(0x1a7c)][_0x3f5a91][_0x189127(0x66a)],'msg':_0x5021a5[_0x189127(0x25c)][_0x189127(0x1a7c)][_0x3f5a91][_0x189127(0x155e)]});}}else _0x37f6fd[_0x189127(0x218e)]({'title':_0x5021a5['status']?'API:'+_0x5021a5[_0x189127(0x291)]+_0x189127(0x1657)+_0x5021a5[_0x189127(0xc22)]:_0x189127(0x2049),'msg':_0x5021a5['data']?JSON[_0x189127(0x2701)](_0x5021a5[_0x189127(0x25c)][_0x189127(0x155e)]):_0x5021a5[_0x189127(0x155e)]||_0x5021a5[_0x189127(0x147f)]()});});}function _0x5e1dd1(){const _0x723a33=_0xf1b3bf,_0x45b0a1=angular[_0x723a33(0x17fe)](_0xc0505c[_0x723a33(0x160)]);return _0xc0505c[_0x723a33(0x160)]=[],_0x45b0a1;}function _0x2776c7(_0x5d37ba){const _0x40966c=_0xf1b3bf,_0x35ae62=_0x4b7ad3[_0x40966c(0x1551)]()[_0x40966c(0x1386)](_0x40966c(0x29bf))['htmlContent'](_0x40966c(0x204d)+_0xc0505c['selectedIvrCampaignHopperBlacks']['length']+_0x40966c(0x1d6c)+_0x40966c(0x1b6))[_0x40966c(0x15ad)]('delete\x20hopperBlacks')['targetEvent'](_0x5d37ba)['ok']('OK')['cancel'](_0x40966c(0x24ba));_0x4b7ad3[_0x40966c(0xe27)](_0x35ae62)[_0x40966c(0x1cb0)](function(){const _0x148933=_0x40966c;_0xc0505c[_0x148933(0x160)]['forEach'](function(_0x311cb6){_0x4b6086(_0x311cb6);}),_0xc0505c[_0x148933(0x160)]=[];});}let _0x14c0b6=!![],_0x46d701=0x1;_0x1a7cb4['$watch']('vm_dc.query.filter',function(_0x23201a,_0x1bc1a0){const _0x5872fd=_0xf1b3bf;_0x14c0b6?_0x575e09(function(){_0x14c0b6=![];}):(!_0x1bc1a0&&(_0x46d701=_0xc0505c[_0x5872fd(0xae2)]['page']),_0x23201a!==_0x1bc1a0&&(_0xc0505c[_0x5872fd(0xae2)][_0x5872fd(0x1c7b)]=0x1),!_0x23201a&&(_0xc0505c[_0x5872fd(0xae2)]['page']=_0x46d701),_0x1c628d());});}const _0x3062e4=_0x43d837;;_0x544f2e[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x1463),'$state','$q',_0x5537c6(0x1ae),'$timeout',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),'api','Auth'];function _0x544f2e(_0x3f7d71,_0x65973c,_0x5a905f,_0xeaed5a,_0x2ee521,_0x49ed74,_0x1dc2e6,_0xa86c59,_0x7138b4,_0x26369f,_0x2144bc){const _0xae4be4=_0x5537c6,_0x58a824=this;_0x58a824['currentUser']=_0x2144bc[_0xae4be4(0x21e8)](),_0x58a824['contacts']={},_0x58a824['ivrCampaign']={},_0x58a824[_0xae4be4(0x1ae8)]={'count':0x0,'rows':[]},_0x58a824[_0xae4be4(0x1d1d)]=[],_0x58a824[_0xae4be4(0x1b1a)],_0x58a824[_0xae4be4(0xae2)]={'fields':_0xae4be4(0x2153),'sort':_0xae4be4(0x7d0),'limit':0xa,'page':0x1},_0x58a824[_0xae4be4(0x1a8e)]=_0x1b0083,_0x58a824[_0xae4be4(0xb25)]=_0x4e9bde,_0x58a824['success']=_0x25628e,_0x58a824[_0xae4be4(0x279f)]=_0x39360f,_0x58a824['exportSelectedIvrCampaignHopperFinals']=_0x148c02,_0x58a824[_0xae4be4(0x19b5)]=_0x36a2bd,_0x58a824['deleteSelectedIvrCampaignHopperFinals']=_0x1b620a,_0x58a824[_0xae4be4(0xaa9)]=_0x5ae241,_0x58a824[_0xae4be4(0x98c)]=_0x499784,_0x58a824['countContactsIvrCampaignHopperFinal']=_0xd9c3a0,_0x58a824[_0xae4be4(0x505)]=_0x5e1467,_0x58a824[_0xae4be4(0x2295)]=_0x3b65af;function _0x1b0083(_0x148856,_0x4c3c83){const _0x34654b=_0xae4be4;_0x58a824[_0x34654b(0x1218)]=_0x148856,_0x58a824[_0x34654b(0x1b1a)]=typeof _0x4c3c83!==_0x34654b(0x16b5)?_0x4c3c83:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x58a824[_0x34654b(0xae2)][_0x34654b(0x21c1)]=_0x58a824[_0x34654b(0x1218)]['id'],_0x58a824[_0x34654b(0xae2)]['id']=_0x58a824[_0x34654b(0x1218)]['id'],_0x39360f();}function _0x4e9bde(_0x324b48,_0x48f1d2){const _0x56403a=_0xae4be4,_0x53b6ce=_0x1dc2e6[_0x56403a(0x1551)]()['title'](_0x56403a(0x264d))['htmlContent'](''+(_0x324b48[_0x56403a(0x16b6)]||_0x324b48['id']&&_0x39641b()[_0x56403a(0x277)](_0x56403a(0x252b))+_0x324b48['id']||_0x56403a(0x20dd))+_0x56403a(0x1200)+_0x56403a(0x1b6))[_0x56403a(0x15ad)](_0x56403a(0x25d8))['targetEvent'](_0x48f1d2)['ok']('OK')[_0x56403a(0x696)](_0x56403a(0x24ba));_0x1dc2e6[_0x56403a(0xe27)](_0x53b6ce)[_0x56403a(0x1cb0)](function(){_0x36a2bd(_0x324b48);},function(){const _0x5b3275=_0x56403a;console['log'](_0x5b3275(0x24ba));});}function _0x25628e(_0x2a1136){_0x58a824['ivrCampaignHopperFinals']=_0x2a1136||{'count':0x0,'rows':[]};}function _0x39360f(){const _0x54c9df=_0xae4be4;_0x58a824['query'][_0x54c9df(0x184b)]=(_0x58a824[_0x54c9df(0xae2)][_0x54c9df(0x1c7b)]-0x1)*_0x58a824['query'][_0x54c9df(0x236)],_0x58a824[_0x54c9df(0x2061)]=_0x26369f[_0x54c9df(0x218c)][_0x54c9df(0x64e)](_0x58a824['query'],_0x25628e)[_0x54c9df(0x1d77)];}function _0x36a2bd(_0x4f2aa1){const _0x5a63eb=_0xae4be4;_0x26369f[_0x5a63eb(0x20dd)][_0x5a63eb(0x111d)]({'id':_0x4f2aa1['id']})['$promise'][_0x5a63eb(0x1cb0)](function(){const _0xa1be22=_0x5a63eb;_0x39641b()['remove'](_0x58a824[_0xa1be22(0x1ae8)][_0xa1be22(0x2214)],{'id':_0x4f2aa1['id']}),_0x58a824[_0xa1be22(0x1ae8)][_0xa1be22(0x184d)]-=0x1,!_0x58a824[_0xa1be22(0x1ae8)][_0xa1be22(0x2214)][_0xa1be22(0xfd0)]&&_0x39360f(),_0x7138b4['success']({'title':_0xa1be22(0xc60),'msg':_0x4f2aa1[_0xa1be22(0x16b6)]?_0x4f2aa1['name']+_0xa1be22(0x3f5):''});})['catch'](function(_0x44f734){const _0x1fd701=_0x5a63eb;if(_0x44f734[_0x1fd701(0x25c)]&&_0x44f734[_0x1fd701(0x25c)][_0x1fd701(0x1a7c)]&&_0x44f734[_0x1fd701(0x25c)][_0x1fd701(0x1a7c)]['length']){_0x58a824[_0x1fd701(0x1a7c)]=_0x44f734[_0x1fd701(0x25c)]['errors']||[{'message':_0x44f734[_0x1fd701(0x147f)](),'type':_0x1fd701(0x2049)}];for(let _0x58cfea=0x0;_0x58cfea<_0x44f734[_0x1fd701(0x25c)][_0x1fd701(0x1a7c)]['length'];_0x58cfea++){_0x7138b4[_0x1fd701(0x218e)]({'title':_0x44f734[_0x1fd701(0x25c)][_0x1fd701(0x1a7c)][_0x58cfea][_0x1fd701(0x66a)],'msg':_0x44f734[_0x1fd701(0x25c)][_0x1fd701(0x1a7c)][_0x58cfea][_0x1fd701(0x155e)]});}}else _0x7138b4[_0x1fd701(0x218e)]({'title':_0x44f734['status']?_0x1fd701(0xeb9)+_0x44f734['status']+'\x20-\x20'+_0x44f734[_0x1fd701(0xc22)]:_0x1fd701(0x2049),'msg':_0x44f734[_0x1fd701(0x25c)]?JSON[_0x1fd701(0x2701)](_0x44f734[_0x1fd701(0x25c)][_0x1fd701(0x155e)]):_0x44f734[_0x1fd701(0x155e)]||_0x44f734[_0x1fd701(0x147f)]()});});}function _0x148c02(){const _0x235e71=_0xae4be4,_0x12eedb=angular['copy'](_0x58a824[_0x235e71(0x1d1d)]);return _0x58a824['selectedIvrCampaignHopperFinals']=[],_0x12eedb;}function _0x1b620a(_0x36c856){const _0xa1a7a8=_0xae4be4,_0x451e5f=_0x1dc2e6[_0xa1a7a8(0x1551)]()[_0xa1a7a8(0x1386)](_0xa1a7a8(0x943))[_0xa1a7a8(0x49e)](_0xa1a7a8(0x204d)+_0x58a824[_0xa1a7a8(0x1d1d)][_0xa1a7a8(0xfd0)]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0xa1a7a8(0x15ad)]('delete\x20hopperFinals')[_0xa1a7a8(0x728)](_0x36c856)['ok']('OK')['cancel'](_0xa1a7a8(0x24ba));_0x1dc2e6[_0xa1a7a8(0xe27)](_0x451e5f)[_0xa1a7a8(0x1cb0)](function(){const _0x144c5b=_0xa1a7a8;_0x58a824[_0x144c5b(0x1d1d)][_0x144c5b(0xf90)](function(_0x471d9c){_0x36a2bd(_0x471d9c);}),_0x58a824[_0x144c5b(0x1d1d)]=[];});}function _0x499784(_0x4dafaf){const _0x494064=_0xae4be4;_0x26369f['cmHopperFinal'][_0x494064(0x98c)]({'id':_0x58a824[_0x494064(0xae2)]['id'],'state':_0x4dafaf})[_0x494064(0x1d77)][_0x494064(0x1cb0)](function(_0x3cf378){const _0x21e5eb=_0x494064;_0x39641b()[_0x21e5eb(0x958)](_0x3cf378)&&_0x39641b()[_0x21e5eb(0x958)](_0x3cf378[0x0])?_0x7138b4['info']({'title':_0x21e5eb(0x9ce),'msg':'0'}):_0x7138b4[_0x21e5eb(0x28c7)]({'title':'Restored\x20Contacts','msg':JSON[_0x21e5eb(0x2701)](_0x3cf378[0x0][_0x21e5eb(0xf17)])});})['catch'](function(_0x5edf2a){const _0x27b369=_0x494064;_0x7138b4['error']({'title':_0x5edf2a[_0x27b369(0x291)]?_0x27b369(0xeb9)+_0x5edf2a[_0x27b369(0x291)]+_0x27b369(0x1657)+_0x5edf2a[_0x27b369(0xc22)]:_0x27b369(0x272a),'msg':_0x5edf2a['data']?JSON[_0x27b369(0x2701)](_0x5edf2a[_0x27b369(0x25c)]['message']):_0x5edf2a[_0x27b369(0x155e)]||_0x5edf2a[_0x27b369(0x147f)]()});});}function _0xd9c3a0(_0x56499a){const _0x563f68=_0xae4be4;_0x26369f[_0x563f68(0x145f)][_0x563f68(0x27f6)]({'id':_0x56499a})[_0x563f68(0x1d77)][_0x563f68(0x1cb0)](function(_0x54bc7b){const _0xa59da8=_0x563f68;_0x39641b()[_0xa59da8(0x9c1)](_0x58a824[_0xa59da8(0x7eb)],_0x54bc7b[0x0]);})[_0x563f68(0x1c4)](function(_0x14350f){const _0x2ea7fc=_0x563f68;_0x7138b4[_0x2ea7fc(0x218e)]({'title':_0x14350f['status']?_0x2ea7fc(0xeb9)+_0x14350f[_0x2ea7fc(0x291)]+_0x2ea7fc(0x1657)+_0x14350f[_0x2ea7fc(0xc22)]:_0x2ea7fc(0x2049),'msg':_0x14350f[_0x2ea7fc(0x25c)]?JSON[_0x2ea7fc(0x2701)](_0x14350f[_0x2ea7fc(0x25c)][_0x2ea7fc(0x155e)]):_0x14350f[_0x2ea7fc(0x155e)]||_0x14350f['toString']()});});}function _0x3b65af(_0x3a6497){const _0x5e6351=_0xae4be4,_0x86fea3=_0x1dc2e6[_0x5e6351(0x1551)]()[_0x5e6351(0x1386)](_0x5e6351(0x2104))['htmlContent']('\x20Contacts\x20selected'+'\x20will\x20be\x20restored.')[_0x5e6351(0x15ad)](_0x5e6351(0x20b))[_0x5e6351(0x728)](_0x3a6497)['ok']('OK')[_0x5e6351(0x696)](_0x5e6351(0x24ba));_0x1dc2e6[_0x5e6351(0xe27)](_0x86fea3)['then'](function(){const _0x2bcd23=_0x5e6351;_0x58a824[_0x2bcd23(0x1d1d)][_0x2bcd23(0xf90)](function(_0x5b50d7){_0x5ae241(_0x5b50d7);}),_0x58a824[_0x2bcd23(0x1d1d)]=[];});}function _0x5e1467(_0x510e68,_0x34a532){const _0xb2fa51=_0xae4be4,_0x2567d3=_0x1dc2e6[_0xb2fa51(0x1551)]()[_0xb2fa51(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20contact?')[_0xb2fa51(0x49e)](_0xb2fa51(0x204d)+'Contact'+_0xb2fa51(0x1200)+_0xb2fa51(0x1031))[_0xb2fa51(0x15ad)](_0xb2fa51(0x7a1))['targetEvent'](_0x34a532)['ok']('OK')[_0xb2fa51(0x696)](_0xb2fa51(0x24ba));_0x1dc2e6[_0xb2fa51(0xe27)](_0x2567d3)[_0xb2fa51(0x1cb0)](function(){_0x5ae241(_0x510e68);},function(){const _0x5a6d7b=_0xb2fa51;console[_0x5a6d7b(0x1b4f)](_0x5a6d7b(0x24ba));});}function _0x3b3ab8(_0x29bb33){const _0x16145b=_0xae4be4,_0x203e63={};return _0x203e63[_0x16145b(0x1340)]=_0x29bb33[_0x16145b(0x17d3)],_0x203e63[_0x16145b(0x2251)]=_0x543b5a()()['format'](_0x16145b(0x2e8)),_0x203e63[_0x16145b(0x1969)]=0x0,_0x203e63[_0x16145b(0x1c8b)]=0x0,_0x203e63[_0x16145b(0x23ba)]=0x0,_0x203e63[_0x16145b(0xace)]=0x0,_0x203e63[_0x16145b(0xb96)]=_0x29bb33['ContactId'],_0x203e63[_0x16145b(0x20a6)]=_0x29bb33[_0x16145b(0x20a6)],_0x203e63[_0x16145b(0x21ab)]=_0x29bb33[_0x16145b(0x1eec)]?null:_0x29bb33[_0x16145b(0x21ab)],_0x203e63[_0x16145b(0x1116)]=_0x29bb33['VoiceQueueId'],_0x203e63[_0x16145b(0x21c1)]=_0x29bb33['CampaignId'],_0x203e63[_0x16145b(0x521)]=_0x29bb33['recallme']?0x3:0x2,_0x203e63[_0x16145b(0x1858)]=_0x29bb33['recallme']?!![]:![],_0x203e63;}function _0x21a2f3(_0x3cf0d7){const _0x535254=_0xae4be4,_0x5f4cde={};return _0x5f4cde[_0x535254(0x17d3)]=_0x3cf0d7[_0x535254(0x17d3)],_0x5f4cde[_0x535254(0xbb5)]=_0x3cf0d7[_0x535254(0xbb5)],_0x5f4cde[_0x535254(0x2251)]=_0x543b5a()()[_0x535254(0x1f31)](_0x535254(0x2e8)),_0x5f4cde[_0x535254(0x1969)]=_0x3cf0d7['countbusyretry'],_0x5f4cde[_0x535254(0x1c8b)]=_0x3cf0d7[_0x535254(0x1c8b)],_0x5f4cde[_0x535254(0x23ba)]=_0x3cf0d7['countnoanswerretry'],_0x5f4cde[_0x535254(0xace)]=_0x3cf0d7[_0x535254(0xace)],_0x5f4cde[_0x535254(0xb96)]=_0x3cf0d7[_0x535254(0xb96)],_0x5f4cde['ListId']=_0x3cf0d7[_0x535254(0x20a6)],_0x5f4cde[_0x535254(0x21ab)]=_0x2144bc[_0x535254(0x21e8)]()['id'],_0x5f4cde['VoiceQueueId']=_0x3cf0d7['VoiceQueueId'],_0x5f4cde['CampaignId']=_0x3cf0d7[_0x535254(0x21c1)],_0x5f4cde[_0x535254(0x206e)]=_0x543b5a()()[_0x535254(0x1f31)](_0x535254(0x2e8)),_0x5f4cde[_0x535254(0xfc3)]=!![],_0x5f4cde['state']=0x19,_0x5f4cde[_0x535254(0x448)]=_0x535254(0x12f1),_0x5f4cde[_0x535254(0x218c)]=_0x3cf0d7[_0x535254(0x218c)],_0x5f4cde['campaigntype']=_0x3cf0d7['VoiceQueueId']?_0x535254(0x11cf):_0x535254(0x242e),_0x5f4cde;}function _0x5ae241(_0x87005a){const _0x1f354f=_0xae4be4;_0x26369f[_0x1f354f(0x145f)][_0x1f354f(0x1fb7)](_0x87005a)['$promise'][_0x1f354f(0x1cb0)](function(_0x1d0ecd){const _0x51e69e=_0x1f354f;_0x7138b4[_0x51e69e(0x28c7)]({'title':_0x51e69e(0x109a),'msg':'Contact\x20ID\x20'+_0x1d0ecd[_0x51e69e(0xb96)]});})[_0x1f354f(0x1c4)](function(_0x4093c7){const _0x5dab52=_0x1f354f;_0x4093c7[_0x5dab52(0x25c)]===_0x5dab52(0xd6d)?_0x26369f[_0x5dab52(0x26bc)][_0x5dab52(0x1c3f)](_0x3b3ab8(_0x87005a))[_0x5dab52(0x1d77)][_0x5dab52(0x1cb0)](function(_0x320188){const _0x5883b3=_0x5dab52;_0x7138b4[_0x5883b3(0x28c7)]({'title':_0x5883b3(0x2791),'msg':_0x5883b3(0x615)+_0x320188[_0x5883b3(0xb96)]}),_0x320188[_0x5883b3(0xb96)]&&_0x26369f['cmHopperHistory'][_0x5883b3(0x1c3f)](_0x21a2f3(_0x87005a));})[_0x5dab52(0x1c4)](function(_0x4f000d){const _0x292579=_0x5dab52;!_0x39641b()[_0x292579(0x958)](_0x4f000d['data'])&&_0x4f000d['data'][_0x292579(0x155e)]==='Validation\x20error'?_0x7138b4[_0x292579(0x28c7)]({'title':_0x292579(0x109a),'msg':_0x292579(0x615)+_0x87005a[_0x292579(0xb96)]}):_0x7138b4[_0x292579(0x218e)]({'title':_0x4f000d[_0x292579(0x291)]?_0x292579(0xeb9)+_0x4f000d[_0x292579(0x291)]+_0x292579(0x1657)+_0x4f000d[_0x292579(0xc22)]:'SYSTEM:GETvoiceQueue','msg':_0x4f000d[_0x292579(0x25c)]?JSON[_0x292579(0x2701)](_0x4f000d[_0x292579(0x25c)][_0x292579(0x155e)]):_0x4f000d[_0x292579(0x155e)]||_0x4f000d[_0x292579(0x147f)]()});}):_0x7138b4[_0x5dab52(0x218e)]({'title':_0x4093c7[_0x5dab52(0x291)]?'API:'+_0x4093c7[_0x5dab52(0x291)]+_0x5dab52(0x1657)+_0x4093c7[_0x5dab52(0xc22)]:_0x5dab52(0x272a),'msg':_0x4093c7[_0x5dab52(0x25c)]?JSON['stringify'](_0x4093c7[_0x5dab52(0x25c)][_0x5dab52(0x155e)]):_0x4093c7[_0x5dab52(0x155e)]||_0x4093c7[_0x5dab52(0x147f)]()});});}let _0x378df5=!![],_0x440071=0x1;_0x65973c['$watch'](_0xae4be4(0xeb6),function(_0x1bca67,_0x5301e9){const _0xbc3b75=_0xae4be4;_0x378df5?_0x49ed74(function(){_0x378df5=![];}):(!_0x5301e9&&(_0x440071=_0x58a824[_0xbc3b75(0xae2)][_0xbc3b75(0x1c7b)]),_0x1bca67!==_0x5301e9&&(_0x58a824[_0xbc3b75(0xae2)][_0xbc3b75(0x1c7b)]=0x1),!_0x1bca67&&(_0x58a824[_0xbc3b75(0xae2)][_0xbc3b75(0x1c7b)]=_0x440071),_0x39360f());});}const _0x5bf115=_0x544f2e;;_0x5e8e3a[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),'$scope',_0x5537c6(0x406),'$q',_0x5537c6(0x1ae),_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1774)];function _0x5e8e3a(_0x5b6694,_0x61952f,_0x139b7a,_0x80ec7,_0x4248bc,_0x5bfbbf,_0x7286f2,_0x30c09f,_0x35dd3a,_0x5bb2bd,_0x50ac92){const _0xd879a0=_0x5537c6,_0x8438b3=this;_0x8438b3[_0xd879a0(0xe76)]=_0x50ac92[_0xd879a0(0x21e8)](),_0x8438b3['ivrCampaign']={},_0x8438b3[_0xd879a0(0xdc6)]={'count':0x0,'rows':[]},_0x8438b3[_0xd879a0(0xdf0)]=[],_0x8438b3[_0xd879a0(0x1b1a)],_0x8438b3['query']={'fields':'createdAt,updatedAt,uniqueid,ContactId,calleridnum,calleridname,statedesc,scheduledat,starttime,responsetime,endtime','sort':_0xd879a0(0x7d0),'limit':0xa,'page':0x1},_0x8438b3[_0xd879a0(0x1a8e)]=_0x176594,_0x8438b3['deleteConfirm']=_0x39cace,_0x8438b3['success']=_0x2dc6c6,_0x8438b3[_0xd879a0(0x1015)]=_0x3e6d93,_0x8438b3[_0xd879a0(0x1b93)]=_0xa8ad9e,_0x8438b3['deleteIvrCampaignHopperHistory']=_0x1667df,_0x8438b3[_0xd879a0(0x1351)]=_0x40c997;function _0x176594(_0x30c76b,_0x2d446b){const _0x2f1a89=_0xd879a0;_0x8438b3[_0x2f1a89(0x1218)]=_0x30c76b,_0x8438b3[_0x2f1a89(0x1b1a)]=typeof _0x2d446b!==_0x2f1a89(0x16b5)?_0x2d446b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x8438b3[_0x2f1a89(0xae2)][_0x2f1a89(0x21c1)]=_0x8438b3['ivrCampaign']['id'],_0x8438b3['query']['id']=_0x8438b3[_0x2f1a89(0x1218)]['id'],_0x3e6d93();}function _0x39cace(_0x24146f,_0x5e75f3){const _0x4ad1d2=_0xd879a0,_0x5096c5=_0x7286f2[_0x4ad1d2(0x1551)]()[_0x4ad1d2(0x1386)](_0x4ad1d2(0x5d6))[_0x4ad1d2(0x49e)](_0x4ad1d2(0x204d)+(_0x24146f['name']||_0x24146f['id']&&_0x39641b()['upperFirst'](_0x4ad1d2(0x7a8))+_0x24146f['id']||_0x4ad1d2(0x3db))+_0x4ad1d2(0x1200)+'\x20will\x20be\x20deleted.')[_0x4ad1d2(0x15ad)](_0x4ad1d2(0x16d9))[_0x4ad1d2(0x728)](_0x5e75f3)['ok']('OK')[_0x4ad1d2(0x696)]('CANCEL');_0x7286f2['show'](_0x5096c5)[_0x4ad1d2(0x1cb0)](function(){_0x1667df(_0x24146f);},function(){const _0x319292=_0x4ad1d2;console['log'](_0x319292(0x24ba));});}function _0x2dc6c6(_0x18d2d7){_0x8438b3['ivrCampaignHopperHistories']=_0x18d2d7||{'count':0x0,'rows':[]};}function _0x3e6d93(){const _0x46535c=_0xd879a0;_0x8438b3['query']['offset']=(_0x8438b3[_0x46535c(0xae2)][_0x46535c(0x1c7b)]-0x1)*_0x8438b3[_0x46535c(0xae2)][_0x46535c(0x236)],_0x8438b3['promise']=_0x5bb2bd[_0x46535c(0x218c)][_0x46535c(0x116a)](_0x8438b3[_0x46535c(0xae2)],_0x2dc6c6)[_0x46535c(0x1d77)];}function _0x1667df(_0x55365e){const _0x2d65ef=_0xd879a0;_0x5bb2bd['hopperHistory'][_0x2d65ef(0x111d)]({'id':_0x55365e['id']})[_0x2d65ef(0x1d77)][_0x2d65ef(0x1cb0)](function(){const _0x3d7e63=_0x2d65ef;_0x39641b()[_0x3d7e63(0x152a)](_0x8438b3[_0x3d7e63(0xdc6)]['rows'],{'id':_0x55365e['id']}),_0x8438b3['ivrCampaignHopperHistories'][_0x3d7e63(0x184d)]-=0x1,!_0x8438b3['ivrCampaignHopperHistories'][_0x3d7e63(0x2214)][_0x3d7e63(0xfd0)]&&_0x3e6d93(),_0x35dd3a[_0x3d7e63(0x829)]({'title':_0x3d7e63(0xe5b),'msg':_0x55365e[_0x3d7e63(0x16b6)]?_0x55365e[_0x3d7e63(0x16b6)]+_0x3d7e63(0x3f5):''});})[_0x2d65ef(0x1c4)](function(_0x31d787){const _0x2e6cb8=_0x2d65ef;if(_0x31d787[_0x2e6cb8(0x25c)]&&_0x31d787[_0x2e6cb8(0x25c)][_0x2e6cb8(0x1a7c)]&&_0x31d787[_0x2e6cb8(0x25c)]['errors'][_0x2e6cb8(0xfd0)]){_0x8438b3[_0x2e6cb8(0x1a7c)]=_0x31d787[_0x2e6cb8(0x25c)]['errors']||[{'message':_0x31d787['toString'](),'type':_0x2e6cb8(0x2049)}];for(let _0x1d9f2d=0x0;_0x1d9f2d<_0x31d787['data'][_0x2e6cb8(0x1a7c)][_0x2e6cb8(0xfd0)];_0x1d9f2d++){_0x35dd3a[_0x2e6cb8(0x218e)]({'title':_0x31d787['data']['errors'][_0x1d9f2d]['type'],'msg':_0x31d787['data']['errors'][_0x1d9f2d][_0x2e6cb8(0x155e)]});}}else _0x35dd3a[_0x2e6cb8(0x218e)]({'title':_0x31d787['status']?_0x2e6cb8(0xeb9)+_0x31d787[_0x2e6cb8(0x291)]+_0x2e6cb8(0x1657)+_0x31d787[_0x2e6cb8(0xc22)]:'SYSTEM:GETcampaign','msg':_0x31d787[_0x2e6cb8(0x25c)]?JSON[_0x2e6cb8(0x2701)](_0x31d787[_0x2e6cb8(0x25c)][_0x2e6cb8(0x155e)]):_0x31d787['message']||_0x31d787[_0x2e6cb8(0x147f)]()});});}function _0xa8ad9e(){const _0x3eac28=_0xd879a0,_0x1ecd15=angular[_0x3eac28(0x17fe)](_0x8438b3[_0x3eac28(0xdf0)]);return _0x8438b3[_0x3eac28(0xdf0)]=[],_0x1ecd15;}function _0x40c997(_0x5efdd6){const _0x2cc63a=_0xd879a0,_0x55849e=_0x7286f2[_0x2cc63a(0x1551)]()['title'](_0x2cc63a(0x295e))[_0x2cc63a(0x49e)](''+_0x8438b3['selectedIvrCampaignHopperHistories'][_0x2cc63a(0xfd0)]+'\x20selected'+_0x2cc63a(0x1b6))[_0x2cc63a(0x15ad)]('delete\x20hopperHistories')[_0x2cc63a(0x728)](_0x5efdd6)['ok']('OK')[_0x2cc63a(0x696)](_0x2cc63a(0x24ba));_0x7286f2['show'](_0x55849e)['then'](function(){const _0x159782=_0x2cc63a;_0x8438b3[_0x159782(0xdf0)][_0x159782(0xf90)](function(_0x1eb65e){_0x1667df(_0x1eb65e);}),_0x8438b3[_0x159782(0xdf0)]=[];});}let _0x580d3d=!![],_0x423d2a=0x1;_0x61952f[_0xd879a0(0x614)](_0xd879a0(0xeb6),function(_0x249488,_0x393940){const _0x3ada2a=_0xd879a0;_0x580d3d?_0x5bfbbf(function(){_0x580d3d=![];}):(!_0x393940&&(_0x423d2a=_0x8438b3[_0x3ada2a(0xae2)][_0x3ada2a(0x1c7b)]),_0x249488!==_0x393940&&(_0x8438b3[_0x3ada2a(0xae2)][_0x3ada2a(0x1c7b)]=0x1),!_0x249488&&(_0x8438b3[_0x3ada2a(0xae2)][_0x3ada2a(0x1c7b)]=_0x423d2a),_0x3e6d93());});}const _0x42ebfb=_0x5e8e3a;;_0x15bf16[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),'$scope','$state','$q',_0x5537c6(0x1ae),_0x5537c6(0x2168),_0x5537c6(0xcb9),'$document',_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1774)];function _0x15bf16(_0x2d6fd7,_0x4e0df2,_0xf315b5,_0xb988d3,_0x4af0f6,_0x56119b,_0x127407,_0x56e9bc,_0x235404,_0x264f3e,_0x24e7a1){const _0x5bb6f5=_0x5537c6,_0x4fdd3a=this;_0x4fdd3a[_0x5bb6f5(0xe76)]=_0x24e7a1[_0x5bb6f5(0x21e8)](),_0x4fdd3a['ivrCampaign']={},_0x4fdd3a[_0x5bb6f5(0xb0c)]={'count':0x0,'rows':[]},_0x4fdd3a['selectedIvrCampaignHoppers']=[],_0x4fdd3a[_0x5bb6f5(0x1b1a)],_0x4fdd3a[_0x5bb6f5(0xae2)]={'fields':_0x5bb6f5(0x2799),'sort':_0x5bb6f5(0x282),'limit':0xa,'page':0x1},_0x4fdd3a[_0x5bb6f5(0x234b)]=_0x39641b()[_0x5bb6f5(0x2631)]([{'option':_0x5bb6f5(0xc6c),'value':_0x5bb6f5(0x4d3)},{'option':_0x5bb6f5(0x1173),'value':_0x5bb6f5(0xf37)},{'option':'Medium','value':_0x5bb6f5(0x1f8d)},{'option':_0x5bb6f5(0x1ec),'value':_0x5bb6f5(0x11e4)},{'option':_0x5bb6f5(0x1d1c),'value':_0x5bb6f5(0xbbb)}],function(_0x37bcda){const _0x5e31a6=_0x5bb6f5;return _0x39641b()[_0x5e31a6(0x288f)](_0x37bcda['value'],new RegExp('\x27','g'),'');}),_0x4fdd3a[_0x5bb6f5(0x1a8e)]=_0x4cd088,_0x4fdd3a[_0x5bb6f5(0xb25)]=_0x451172,_0x4fdd3a[_0x5bb6f5(0x829)]=_0x571fb4,_0x4fdd3a[_0x5bb6f5(0x2047)]=_0x650961,_0x4fdd3a['createOrEditIvrCampaignHopper']=_0x47589e,_0x4fdd3a[_0x5bb6f5(0xfb0)]=_0xcbb297,_0x4fdd3a[_0x5bb6f5(0x2792)]=_0x58659f,_0x4fdd3a['deleteSelectedIvrCampaignHoppers']=_0x5d7575,_0x24e7a1[_0x5bb6f5(0x22b6)](_0x5bb6f5(0x1c60))?_0x264f3e[_0x5bb6f5(0xebe)]['get']({'fields':_0x5bb6f5(0x43c),'role':_0x5bb6f5(0x1eff),'sort':_0x5bb6f5(0x16b6),'nolimit':'true'})['$promise']['then'](function(_0xb37604){const _0xfdc712=_0x5bb6f5;_0x4fdd3a['agents']=_0xb37604[_0xfdc712(0x2214)]||[];})[_0x5bb6f5(0x1c4)](function(_0x42c34e){const _0x64d784=_0x5bb6f5;_0x235404[_0x64d784(0x218e)]({'title':_0x42c34e[_0x64d784(0x291)]?'API:'+_0x42c34e[_0x64d784(0x291)]+'\x20-\x20'+_0x42c34e[_0x64d784(0xc22)]:_0x64d784(0x799),'msg':_0x42c34e[_0x64d784(0x25c)]?JSON[_0x64d784(0x2701)](_0x42c34e[_0x64d784(0x25c)]):_0x42c34e[_0x64d784(0x147f)]()});}):_0x264f3e[_0x5bb6f5(0xebe)][_0x5bb6f5(0xbf7)]({'fields':'id,name','role':_0x5bb6f5(0x1eff),'sort':'name','nolimit':'true'})[_0x5bb6f5(0x1d77)][_0x5bb6f5(0x1cb0)](function(_0x3cd800){const _0x1689bb=_0x5bb6f5;_0x4fdd3a[_0x1689bb(0xc12)]=_0x3cd800['rows']||[];})[_0x5bb6f5(0x1cb0)](function(){const _0x5ba215=_0x5bb6f5;return _0x264f3e[_0x5ba215(0x2199)][_0x5ba215(0xbf7)]({'userProfileId':_0x4fdd3a[_0x5ba215(0xe76)][_0x5ba215(0x13c1)],'sectionId':0xca})[_0x5ba215(0x1d77)];})[_0x5bb6f5(0x1cb0)](function(_0x5e04c9){const _0x5e45c1=_0x5bb6f5,_0x115c1f=_0x5e04c9&&_0x5e04c9[_0x5e45c1(0x2214)]?_0x5e04c9['rows'][0x0]:null;if(!_0x115c1f)_0x4fdd3a[_0x5e45c1(0xc12)]=[];else{if(!_0x115c1f[_0x5e45c1(0x12f4)])return _0x264f3e[_0x5e45c1(0x1198)]['get']({'sectionId':_0x115c1f['id']})['$promise'][_0x5e45c1(0x1cb0)](function(_0x518d39){const _0x38a9a7=_0x5e45c1,_0x5bfc7d=_0x39641b()[_0x38a9a7(0x1de2)](_0x518d39[_0x38a9a7(0x2214)],function(_0x400d48){const _0xa7caec=_0x38a9a7;return _0x39641b()[_0xa7caec(0x13b4)](_0x4fdd3a[_0xa7caec(0xc12)],{'id':_0x400d48[_0xa7caec(0x2982)]});});_0x4fdd3a['agents'][_0x38a9a7(0xf90)](function(_0x40476c){const _0x5c4a82=_0x38a9a7;!_0x39641b()['some'](_0x5bfc7d,['id',_0x40476c['id']])&&(_0x40476c['canSelect']=![]),_0x5bfc7d[_0x5c4a82(0x2785)](_0x40476c);}),_0x4fdd3a[_0x38a9a7(0xc12)]=_0x5bfc7d;});}})[_0x5bb6f5(0x1c4)](function(_0x16c6f3){const _0x3db386=_0x5bb6f5;_0x235404[_0x3db386(0x218e)]({'title':_0x16c6f3[_0x3db386(0x291)]?_0x3db386(0xeb9)+_0x16c6f3[_0x3db386(0x291)]+'\x20-\x20'+_0x16c6f3[_0x3db386(0xc22)]:_0x3db386(0x2159),'msg':_0x16c6f3[_0x3db386(0x25c)]?JSON[_0x3db386(0x2701)](_0x16c6f3[_0x3db386(0x25c)]):_0x16c6f3[_0x3db386(0x147f)]()});});function _0x4cd088(_0x3c562f,_0x4ded87){const _0x3b3785=_0x5bb6f5;_0x4fdd3a[_0x3b3785(0x1218)]=_0x3c562f,_0x4fdd3a[_0x3b3785(0x1b1a)]=typeof _0x4ded87!==_0x3b3785(0x16b5)?_0x4ded87:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4fdd3a[_0x3b3785(0xae2)][_0x3b3785(0x21c1)]=_0x4fdd3a[_0x3b3785(0x1218)]['id'],_0x4fdd3a['query']['id']=_0x4fdd3a[_0x3b3785(0x1218)]['id'],_0x650961();}function _0x451172(_0x3662ed,_0x4729fe){const _0x1cf92b=_0x5bb6f5,_0x262877=_0x127407[_0x1cf92b(0x1551)]()['title'](_0x1cf92b(0x82c))['htmlContent'](_0x1cf92b(0x204d)+(_0x3662ed[_0x1cf92b(0x16b6)]||_0x3662ed['id']&&_0x39641b()[_0x1cf92b(0x277)](_0x1cf92b(0xe3a))+_0x3662ed['id']||_0x1cf92b(0x2151))+''+_0x1cf92b(0x1b6))[_0x1cf92b(0x15ad)](_0x1cf92b(0xcf0))[_0x1cf92b(0x728)](_0x4729fe)['ok']('OK')[_0x1cf92b(0x696)]('CANCEL');_0x127407['show'](_0x262877)[_0x1cf92b(0x1cb0)](function(){_0x58659f(_0x3662ed);},function(){const _0x22f6e1=_0x1cf92b;console[_0x22f6e1(0x1b4f)]('CANCEL');});}function _0x571fb4(_0x5a9102){const _0xe38d3f=_0x5bb6f5;_0x4fdd3a[_0xe38d3f(0xb0c)]=_0x5a9102||{'count':0x0,'rows':[]};}function _0x650961(){const _0x9c156d=_0x5bb6f5;_0x4fdd3a[_0x9c156d(0xae2)]['offset']=(_0x4fdd3a[_0x9c156d(0xae2)][_0x9c156d(0x1c7b)]-0x1)*_0x4fdd3a[_0x9c156d(0xae2)][_0x9c156d(0x236)],_0x4fdd3a[_0x9c156d(0x2061)]=_0x264f3e[_0x9c156d(0x218c)][_0x9c156d(0xb46)](_0x4fdd3a['query'],_0x571fb4)[_0x9c156d(0x1d77)];}function _0x47589e(_0x359980,_0x53b3ac){const _0x4f760d=_0x5bb6f5;_0x127407[_0x4f760d(0xe27)]({'controller':'CreateOrEditHopperCampaignIdDialogController','controllerAs':'vm','templateUrl':_0xf0b411,'parent':angular[_0x4f760d(0x1853)](_0x56e9bc[_0x4f760d(0x1ed9)]),'targetEvent':_0x359980,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x4fdd3a['ivrCampaign'],'hopper':_0x53b3ac,'hoppers':_0x4fdd3a[_0x4f760d(0xb0c)][_0x4f760d(0x2214)],'license':null,'setting':null,'crudPermissions':_0x4fdd3a[_0x4f760d(0x1b1a)]}});}function _0x58659f(_0x22a648){const _0x46638c=_0x5bb6f5;_0x264f3e[_0x46638c(0x26bc)]['delete']({'id':_0x22a648['id']})[_0x46638c(0x1d77)][_0x46638c(0x1cb0)](function(){const _0x25f79c=_0x46638c;_0x39641b()[_0x25f79c(0x152a)](_0x4fdd3a[_0x25f79c(0xb0c)][_0x25f79c(0x2214)],{'id':_0x22a648['id']}),_0x4fdd3a[_0x25f79c(0xb0c)][_0x25f79c(0x184d)]-=0x1,!_0x4fdd3a[_0x25f79c(0xb0c)][_0x25f79c(0x2214)]['length']&&_0x650961(),_0x235404[_0x25f79c(0x829)]({'title':_0x25f79c(0x1aaa),'msg':_0x22a648['name']?_0x22a648['name']+_0x25f79c(0x3f5):''});})['catch'](function(_0x1f84d7){const _0x3b3ae6=_0x46638c;if(_0x1f84d7[_0x3b3ae6(0x25c)]&&_0x1f84d7['data'][_0x3b3ae6(0x1a7c)]&&_0x1f84d7[_0x3b3ae6(0x25c)]['errors'][_0x3b3ae6(0xfd0)]){_0x4fdd3a[_0x3b3ae6(0x1a7c)]=_0x1f84d7[_0x3b3ae6(0x25c)][_0x3b3ae6(0x1a7c)]||[{'message':_0x1f84d7[_0x3b3ae6(0x147f)](),'type':_0x3b3ae6(0x2049)}];for(let _0x113919=0x0;_0x113919<_0x1f84d7[_0x3b3ae6(0x25c)]['errors'][_0x3b3ae6(0xfd0)];_0x113919++){_0x235404[_0x3b3ae6(0x218e)]({'title':_0x1f84d7['data']['errors'][_0x113919][_0x3b3ae6(0x66a)],'msg':_0x1f84d7[_0x3b3ae6(0x25c)][_0x3b3ae6(0x1a7c)][_0x113919][_0x3b3ae6(0x155e)]});}}else _0x235404[_0x3b3ae6(0x218e)]({'title':_0x1f84d7[_0x3b3ae6(0x291)]?'API:'+_0x1f84d7[_0x3b3ae6(0x291)]+'\x20-\x20'+_0x1f84d7[_0x3b3ae6(0xc22)]:'SYSTEM:GETcampaign','msg':_0x1f84d7['data']?JSON['stringify'](_0x1f84d7['data'][_0x3b3ae6(0x155e)]):_0x1f84d7[_0x3b3ae6(0x155e)]||_0x1f84d7[_0x3b3ae6(0x147f)]()});});}function _0xcbb297(){const _0x515101=_0x5bb6f5,_0x5d9a96=angular[_0x515101(0x17fe)](_0x4fdd3a[_0x515101(0x26a6)]);return _0x4fdd3a[_0x515101(0x26a6)]=[],_0x5d9a96;}function _0x5d7575(_0x103892){const _0xb7ed59=_0x5bb6f5,_0x2a2598=_0x127407[_0xb7ed59(0x1551)]()[_0xb7ed59(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hoppers?')['htmlContent'](_0xb7ed59(0x204d)+_0x4fdd3a[_0xb7ed59(0x26a6)][_0xb7ed59(0xfd0)]+'\x20selected'+_0xb7ed59(0x1b6))['ariaLabel'](_0xb7ed59(0x28b9))[_0xb7ed59(0x728)](_0x103892)['ok']('OK')['cancel'](_0xb7ed59(0x24ba));_0x127407[_0xb7ed59(0xe27)](_0x2a2598)['then'](function(){const _0x4e8ab1=_0xb7ed59;_0x4fdd3a['selectedIvrCampaignHoppers']['forEach'](function(_0xefe33d){_0x58659f(_0xefe33d);}),_0x4fdd3a[_0x4e8ab1(0x26a6)]=[];});}let _0x477935=!![],_0x5201a3=0x1;_0x4e0df2[_0x5bb6f5(0x614)](_0x5bb6f5(0xeb6),function(_0x30432b,_0x3a3330){const _0x21b674=_0x5bb6f5;_0x477935?_0x56119b(function(){_0x477935=![];}):(!_0x3a3330&&(_0x5201a3=_0x4fdd3a['query'][_0x21b674(0x1c7b)]),_0x30432b!==_0x3a3330&&(_0x4fdd3a[_0x21b674(0xae2)]['page']=0x1),!_0x30432b&&(_0x4fdd3a[_0x21b674(0xae2)][_0x21b674(0x1c7b)]=_0x5201a3),_0x650961());});}const _0x3480ac=_0x15bf16;;_0x5ea22d[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),'$location',_0x5537c6(0xcb9),'$q','$translate',_0x5537c6(0x9bf),'hoppers',_0x5537c6(0x2151),_0x5537c6(0x142b),'Auth',_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x5ea22d(_0x1f4356,_0x380f7f,_0x216d12,_0x52119f,_0x3867a,_0x40748f,_0xe50ddf,_0x13d4e6,_0x49e8e6,_0x4814b6,_0xebf83f,_0xf5eaf4,_0x305b63,_0x211266){const _0x61a559=_0x5537c6,_0x360670=this;_0x360670['currentUser']=_0xebf83f[_0x61a559(0x21e8)](),_0x360670['errors']=[],_0x360670[_0x61a559(0x9ca)]=_0x305b63,_0x360670[_0x61a559(0x8a5)]=_0xf5eaf4,_0x360670[_0x61a559(0x1b1a)]=_0x211266,_0x360670[_0x61a559(0xf4c)]={},_0x360670[_0x61a559(0x1b0c)]=_0x360670[_0x61a559(0x9ca)]&&_0x360670['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x360670[_0x61a559(0x1386)]=_0x61a559(0x2285),_0x360670[_0x61a559(0x2151)]=angular[_0x61a559(0x17fe)](_0x49e8e6),_0x360670['hoppers']=_0x13d4e6,_0x360670['newHopper']=![];!_0x360670[_0x61a559(0x2151)]&&(_0x360670[_0x61a559(0x2151)]={},_0x360670[_0x61a559(0x1386)]=_0x61a559(0x2407),_0x360670[_0x61a559(0x25f0)]=!![]);_0x380f7f['params']['id']&&(_0x360670[_0x61a559(0x2151)]['CampaignId']=_0x380f7f[_0x61a559(0x1dfe)]['id']);_0x360670[_0x61a559(0x3fe)]=_0x2b2b95,_0x360670[_0x61a559(0x1f48)]=_0x364c07,_0x360670[_0x61a559(0xbb8)]=_0x5ce591,_0x360670['getDateFromString']=_0xedaef4,_0x360670[_0x61a559(0xda0)]=_0x171d02,_0xebf83f['hasRole'](_0x61a559(0x1c60))?_0x4814b6['user'][_0x61a559(0xbf7)]({'fields':_0x61a559(0x43c),'role':_0x61a559(0x1eff),'sort':_0x61a559(0x16b6),'nolimit':_0x61a559(0x44d)})[_0x61a559(0x1d77)]['then'](function(_0x1cf757){const _0x52e498=_0x61a559;_0x360670[_0x52e498(0xc12)]=_0x1cf757['rows']||[];})[_0x61a559(0x1c4)](function(_0x1e7642){const _0x55c78c=_0x61a559;_0xe50ddf['error']({'title':_0x1e7642[_0x55c78c(0x291)]?'API:'+_0x1e7642[_0x55c78c(0x291)]+_0x55c78c(0x1657)+_0x1e7642['statusText']:_0x55c78c(0x799),'msg':_0x1e7642['data']?JSON[_0x55c78c(0x2701)](_0x1e7642[_0x55c78c(0x25c)]):_0x1e7642[_0x55c78c(0x147f)]()});}):_0x4814b6['user'][_0x61a559(0xbf7)]({'fields':_0x61a559(0x43c),'role':_0x61a559(0x1eff),'sort':'name','nolimit':'true'})[_0x61a559(0x1d77)][_0x61a559(0x1cb0)](function(_0x148f60){const _0x1d5cb3=_0x61a559;_0x360670[_0x1d5cb3(0xc12)]=_0x148f60[_0x1d5cb3(0x2214)]||[];})[_0x61a559(0x1cb0)](function(){const _0x53d05c=_0x61a559;return _0x4814b6[_0x53d05c(0x2199)][_0x53d05c(0xbf7)]({'userProfileId':_0x360670['currentUser']['userProfileId'],'sectionId':0xca})[_0x53d05c(0x1d77)];})['then'](function(_0xe99756){const _0x51be68=_0x61a559,_0xdd8888=_0xe99756&&_0xe99756[_0x51be68(0x2214)]?_0xe99756[_0x51be68(0x2214)][0x0]:null;if(!_0xdd8888)_0x360670['agents']=[];else{if(!_0xdd8888[_0x51be68(0x12f4)])return _0x4814b6['userProfileResource'][_0x51be68(0xbf7)]({'sectionId':_0xdd8888['id']})[_0x51be68(0x1d77)][_0x51be68(0x1cb0)](function(_0x966f9d){const _0x3bf33e=_0x51be68,_0x24a084=_0x39641b()[_0x3bf33e(0x1de2)](_0x966f9d[_0x3bf33e(0x2214)],function(_0x200c54){const _0x4a15d3=_0x3bf33e;return _0x39641b()['find'](_0x360670[_0x4a15d3(0xc12)],{'id':_0x200c54['resourceId']});});_0x360670[_0x3bf33e(0xc12)][_0x3bf33e(0xf90)](function(_0x64bc0e){const _0xf8e39c=_0x3bf33e;!_0x39641b()[_0xf8e39c(0x727)](_0x24a084,['id',_0x64bc0e['id']])&&(_0x64bc0e[_0xf8e39c(0x15da)]=![]),_0x24a084['push'](_0x64bc0e);}),_0x360670['agents']=_0x24a084;});}})[_0x61a559(0x1c4)](function(_0x38512a){const _0x46c09f=_0x61a559;_0xe50ddf[_0x46c09f(0x218e)]({'title':_0x38512a['status']?'API:'+_0x38512a[_0x46c09f(0x291)]+'\x20-\x20'+_0x38512a[_0x46c09f(0xc22)]:_0x46c09f(0x2159),'msg':_0x38512a['data']?JSON[_0x46c09f(0x2701)](_0x38512a[_0x46c09f(0x25c)]):_0x38512a[_0x46c09f(0x147f)]()});});function _0x2b2b95(){const _0x5b8f91=_0x61a559;_0x360670[_0x5b8f91(0x1a7c)]=[],_0x4814b6['cmHopper'][_0x5b8f91(0x1c3f)](_0x360670['hopper'])[_0x5b8f91(0x1d77)][_0x5b8f91(0x1cb0)](function(_0x3c538e){const _0x21f818=_0x5b8f91;_0x360670[_0x21f818(0xe3c)]['unshift'](_0x3c538e['toJSON']()),_0xe50ddf[_0x21f818(0x829)]({'title':_0x21f818(0x255),'msg':_0x360670[_0x21f818(0x2151)][_0x21f818(0x16b6)]?_0x360670[_0x21f818(0x2151)][_0x21f818(0x16b6)]+_0x21f818(0x470):''}),_0x171d02(_0x3c538e);})[_0x5b8f91(0x1c4)](function(_0x4078e5){const _0x1b9905=_0x5b8f91;if(_0x4078e5[_0x1b9905(0x25c)]&&_0x4078e5[_0x1b9905(0x25c)]['errors']&&_0x4078e5['data'][_0x1b9905(0x1a7c)][_0x1b9905(0xfd0)]){_0x360670[_0x1b9905(0x1a7c)]=_0x4078e5[_0x1b9905(0x25c)][_0x1b9905(0x1a7c)]||[{'message':_0x4078e5[_0x1b9905(0x147f)](),'type':_0x1b9905(0x2e4)}];for(let _0x5c6c06=0x0;_0x5c6c06<_0x4078e5[_0x1b9905(0x25c)][_0x1b9905(0x1a7c)][_0x1b9905(0xfd0)];_0x5c6c06+=0x1){_0xe50ddf[_0x1b9905(0x218e)]({'title':_0x4078e5[_0x1b9905(0x25c)][_0x1b9905(0x1a7c)][_0x5c6c06][_0x1b9905(0x66a)],'msg':_0x4078e5[_0x1b9905(0x25c)][_0x1b9905(0x1a7c)][_0x5c6c06][_0x1b9905(0x155e)]});}}else _0xe50ddf[_0x1b9905(0x218e)]({'title':_0x4078e5[_0x1b9905(0x291)]?_0x1b9905(0xeb9)+_0x4078e5['status']+_0x1b9905(0x1657)+_0x4078e5[_0x1b9905(0xc22)]:'api.cmHopper.save','msg':_0x4078e5['data']?JSON[_0x1b9905(0x2701)](_0x4078e5[_0x1b9905(0x25c)][_0x1b9905(0x155e)]):_0x4078e5['toString']()});});}function _0x364c07(){const _0x4f6689=_0x61a559;_0x360670[_0x4f6689(0x1a7c)]=[];let _0x13e925,_0x3101f4,_0x3e70bd,_0xf86535;_0x360670['hopper'][_0x4f6689(0x21ab)]=_0x360670[_0x4f6689(0x2151)][_0x4f6689(0x1858)]?_0x360670[_0x4f6689(0x2151)][_0x4f6689(0x21ab)]:null,_0x360670[_0x4f6689(0x2151)][_0x4f6689(0x189b)]=_0xebf83f[_0x4f6689(0x21e8)]()['id'],_0x4814b6[_0x4f6689(0x26bc)]['get']({'id':_0x360670[_0x4f6689(0x2151)]['id'],'attributes':['scheduledat']})[_0x4f6689(0x1d77)][_0x4f6689(0x1cb0)](function(_0x291b38){const _0x103064=_0x4f6689;_0x39641b()['isNil'](_0x291b38)||_0x39641b()[_0x103064(0xce9)](_0x291b38)?_0x13e925=_0x543b5a()()['format']('YYYY-MM-DD\x20HH:mm:ss'):_0x13e925=_0x291b38[_0x103064(0x2251)];})[_0x4f6689(0x2e0)](function(){const _0x282085=_0x4f6689;_0x4814b6[_0x282085(0x26bc)][_0x282085(0x687)]({'id':_0x360670[_0x282085(0x2151)]['id']},_0x39641b()['omit'](_0x360670['hopper'],[_0x282085(0x1116),_0x282085(0x21c1),_0x282085(0xb96),_0x282085(0x20a6)]))[_0x282085(0x1d77)][_0x282085(0x1cb0)](function(_0x1268b1){const _0x126e64=_0x282085;_0x3101f4=_0x1268b1,_0x4814b6[_0x126e64(0xbe7)]['get']({'id':_0x3101f4[_0x126e64(0xb96)],'attributes':[_0x126e64(0x1491),'lastName']})[_0x126e64(0x1d77)][_0x126e64(0x1cb0)](function(_0x976f70){const _0x54dd45=_0x126e64;!_0x39641b()[_0x54dd45(0x958)](_0x976f70)&&!_0x39641b()[_0x54dd45(0x958)](_0x976f70[_0x54dd45(0x1491)])&&(_0x3e70bd=_0x976f70[_0x54dd45(0x1491)],!_0x39641b()[_0x54dd45(0x958)](_0x976f70[_0x54dd45(0x1fbb)])&&(_0x3e70bd+='\x20'+_0x976f70[_0x54dd45(0x1fbb)]));})[_0x126e64(0x1c4)](function(){_0x3e70bd=undefined;})[_0x126e64(0x2e0)](function(){const _0x215fac=_0x126e64;_0x4814b6[_0x215fac(0x218c)][_0x215fac(0xbf7)]({'raw':![],'id':_0x3101f4['CampaignId'],'attributes':[_0x215fac(0x16b6)]})[_0x215fac(0x1d77)][_0x215fac(0x1cb0)](function(_0x44c39f){const _0xebbec2=_0x215fac;_0xf86535=_0x44c39f[_0xebbec2(0x16b6)];})[_0x215fac(0x1c4)](function(){_0xf86535=undefined;})[_0x215fac(0x2e0)](function(){const _0x1f0647=_0x215fac;_0x4814b6['cmHopperHistory']['save']({'state':0x18,'statedesc':_0x1f0647(0x5ba),'scheduledat':_0x13e925,'calleridnum':_0x3101f4['phone'],'calleridname':_0x3e70bd,'campaigntype':_0x3101f4[_0x1f0647(0x1116)]?_0x1f0647(0x11cf):_0x1f0647(0x242e),'campaign':_0xf86535,'editedat':_0x543b5a()()[_0x1f0647(0x1f31)]('YYYY-MM-DD\x20HH:mm:ss'),'edited':!![],'ListId':_0x3101f4['ListId'],'UserId':_0xebf83f['getCurrentUser']()['id'],'VoiceQueueId':_0x3101f4['VoiceQueueId'],'CampaignId':_0x3101f4['CampaignId'],'ContactId':_0x3101f4[_0x1f0647(0xb96)],'callback':_0x3101f4[_0x1f0647(0x2170)],'callbackuniqueid':_0x3101f4[_0x1f0647(0x82e)],'countbusyretry':_0x3101f4['countbusyretry'],'countcongestionretry':_0x3101f4[_0x1f0647(0x1c8b)],'countglobal':_0x3101f4[_0x1f0647(0xace)],'countnoanswerretry':_0x3101f4[_0x1f0647(0x23ba)],'followuptime':_0x3101f4['followuptime'],'recallme':_0x3101f4[_0x1f0647(0x1858)]});});});const _0x5f4a52=_0x39641b()[_0x126e64(0x13b4)](_0x360670['hoppers'],{'id':_0x1268b1['id']});_0x5f4a52&&_0x39641b()[_0x126e64(0x9c1)](_0x5f4a52,_0x39641b()[_0x126e64(0x169b)](_0x1268b1[_0x126e64(0x19b2)](),_0x39641b()[_0x126e64(0x1be5)](_0x5f4a52))),_0xe50ddf[_0x126e64(0x829)]({'title':_0x126e64(0x1277),'msg':_0x360670[_0x126e64(0x2151)][_0x126e64(0x16b6)]?_0x360670[_0x126e64(0x2151)][_0x126e64(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x171d02(_0x1268b1);})[_0x282085(0x1c4)](function(_0x5e46d4){const _0x28cdcd=_0x282085;if(_0x5e46d4[_0x28cdcd(0x25c)]&&_0x5e46d4['data'][_0x28cdcd(0x1a7c)]&&_0x5e46d4['data'][_0x28cdcd(0x1a7c)][_0x28cdcd(0xfd0)]){_0x360670[_0x28cdcd(0x1a7c)]=_0x5e46d4['data']['errors']||[{'message':_0x5e46d4[_0x28cdcd(0x147f)](),'type':_0x28cdcd(0xfec)}];for(let _0x374ff0=0x0;_0x374ff0<_0x5e46d4[_0x28cdcd(0x25c)][_0x28cdcd(0x1a7c)]['length'];_0x374ff0++){_0xe50ddf[_0x28cdcd(0x218e)]({'title':_0x5e46d4[_0x28cdcd(0x25c)]['errors'][_0x374ff0][_0x28cdcd(0x66a)],'msg':_0x5e46d4[_0x28cdcd(0x25c)][_0x28cdcd(0x1a7c)][_0x374ff0][_0x28cdcd(0x155e)]});}}else _0xe50ddf[_0x28cdcd(0x218e)]({'title':_0x5e46d4[_0x28cdcd(0x291)]?_0x28cdcd(0xeb9)+_0x5e46d4[_0x28cdcd(0x291)]+'\x20-\x20'+_0x5e46d4[_0x28cdcd(0xc22)]:'api.cmHopper.update','msg':_0x5e46d4[_0x28cdcd(0x25c)]?JSON[_0x28cdcd(0x2701)](_0x5e46d4[_0x28cdcd(0x25c)]['message']):_0x5e46d4[_0x28cdcd(0x147f)]()});});});}function _0x5ce591(_0x1ff243){const _0x44ed90=_0x61a559;_0x360670[_0x44ed90(0x1a7c)]=[];const _0x221b9f=_0x52119f[_0x44ed90(0x1551)]()[_0x44ed90(0x1386)](_0x44ed90(0x1a2e))[_0x44ed90(0x862)](_0x44ed90(0x1188))[_0x44ed90(0x15ad)]('Delete\x20Hopper')['ok']('Delete')[_0x44ed90(0x696)](_0x44ed90(0xde1))[_0x44ed90(0x728)](_0x1ff243);_0x52119f['show'](_0x221b9f)[_0x44ed90(0x1cb0)](function(){const _0x177548=_0x44ed90;_0x4814b6['cmHopper'][_0x177548(0x111d)]({'id':_0x360670[_0x177548(0x2151)]['id']})[_0x177548(0x1d77)][_0x177548(0x1cb0)](function(){const _0x2e7820=_0x177548;_0x39641b()[_0x2e7820(0x152a)](_0x360670[_0x2e7820(0xe3c)],{'id':_0x360670[_0x2e7820(0x2151)]['id']}),_0xe50ddf[_0x2e7820(0x829)]({'title':'Hopper\x20properly\x20deleted!','msg':(_0x360670[_0x2e7820(0x2151)][_0x2e7820(0x16b6)]||'hopper')+_0x2e7820(0x3f5)}),_0x171d02(_0x360670['hopper']);})[_0x177548(0x1c4)](function(_0x16f740){const _0x113d3f=_0x177548;if(_0x16f740[_0x113d3f(0x25c)]&&_0x16f740['data']['errors']&&_0x16f740[_0x113d3f(0x25c)][_0x113d3f(0x1a7c)]['length']){_0x360670[_0x113d3f(0x1a7c)]=_0x16f740[_0x113d3f(0x25c)][_0x113d3f(0x1a7c)]||[{'message':_0x16f740[_0x113d3f(0x147f)](),'type':'api.cmHopper.delete'}];for(let _0x487040=0x0;_0x487040<_0x16f740[_0x113d3f(0x25c)]['errors'][_0x113d3f(0xfd0)];_0x487040++){_0xe50ddf[_0x113d3f(0x218e)]({'title':_0x16f740[_0x113d3f(0x25c)][_0x113d3f(0x1a7c)][_0x487040][_0x113d3f(0x66a)],'msg':_0x16f740['data'][_0x113d3f(0x1a7c)][_0x487040][_0x113d3f(0x155e)]});}}else _0xe50ddf['error']({'title':_0x16f740[_0x113d3f(0x291)]?_0x113d3f(0xeb9)+_0x16f740[_0x113d3f(0x291)]+_0x113d3f(0x1657)+_0x16f740[_0x113d3f(0xc22)]:_0x113d3f(0x9fd),'msg':_0x16f740[_0x113d3f(0x25c)]?JSON['stringify'](_0x16f740['data'][_0x113d3f(0x155e)]):_0x16f740[_0x113d3f(0x155e)]||_0x16f740[_0x113d3f(0x147f)]()});});},function(){});}function _0xedaef4(_0x47a00c){return _0x47a00c===null?undefined:new Date(_0x47a00c);}function _0x171d02(_0x5d682f){const _0x41469e=_0x61a559;_0x52119f[_0x41469e(0x1426)](_0x5d682f);}}const _0x3172fe=_0x5ea22d;;_0x78e7c4[_0x5537c6(0x15b6)]=['api','toasty'];function _0x78e7c4(_0x444868,_0x4010b0){const _0x12a55f=_0x5537c6,_0xaa624d=this;_0xaa624d[_0x12a55f(0x1218)]={},_0xaa624d['init']=_0x33eb9c;function _0x33eb9c(_0x1501ac){const _0x32c2da=_0x12a55f;_0xaa624d[_0x32c2da(0x1218)]=_0x1501ac,_0x444868[_0x32c2da(0x26bc)]['get']({'limit':0x0,'CampaignId':_0x1501ac['id']})[_0x32c2da(0x1d77)][_0x32c2da(0x1cb0)](function(_0x342135){const _0x392ff1=_0x32c2da;return _0xaa624d[_0x392ff1(0x181c)]=_0x342135['count']||0x0,_0x444868[_0x392ff1(0x26bc)][_0x392ff1(0xbf7)]({'limit':0x0,'CampaignId':_0x1501ac['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})[_0x392ff1(0x1d77)];})['then'](function(_0x1ceda3){const _0x275ad8=_0x32c2da;return _0xaa624d[_0x275ad8(0xafe)]=_0x1ceda3[_0x275ad8(0x184d)]||0x0,_0x444868[_0x275ad8(0x145f)][_0x275ad8(0xbf7)]({'limit':0x0,'CampaignId':_0x1501ac['id']})[_0x275ad8(0x1d77)];})['then'](function(_0xb33e34){const _0x5139ad=_0x32c2da;_0xaa624d[_0x5139ad(0x22aa)]=_0xb33e34[_0x5139ad(0x184d)]||0x0;})[_0x32c2da(0x1c4)](function(_0x5e5549){const _0x5a9a1f=_0x32c2da;_0x4010b0[_0x5a9a1f(0x218e)]({'title':_0x5e5549['status']?_0x5a9a1f(0xeb9)+_0x5e5549[_0x5a9a1f(0x291)]+'\x20-\x20'+_0x5e5549[_0x5a9a1f(0xc22)]:'SYSTEM:GETTAGS','msg':_0x5e5549[_0x5a9a1f(0x25c)]?JSON['stringify'](_0x5e5549[_0x5a9a1f(0x25c)]):_0x5e5549[_0x5a9a1f(0x147f)]()});});}}const _0x4c5708=_0x78e7c4;;_0x5678d9[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty',_0x5537c6(0x142b),_0x5537c6(0x1218),'$translate',_0x5537c6(0x2168),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x5678d9(_0x18698a,_0x27dd62,_0x2f2e26,_0x3828a0,_0x355c9a,_0x5ca6c1,_0x4898ae,_0x4e85f0,_0x1c302f){const _0x394ec0=_0x5537c6,_0x53c90e=this;_0x53c90e['currentUser']=_0x4e85f0[_0x394ec0(0x21e8)](),_0x53c90e[_0x394ec0(0x1218)]=_0x355c9a,_0x53c90e[_0x394ec0(0x1b1a)]=_0x1c302f,_0x53c90e[_0x394ec0(0x2847)]=_0x394ec0(0x218c),_0x53c90e['getApi']=_0x394ec0(0x1fa7),_0x53c90e[_0x394ec0(0x45a)]=_0x394ec0(0x285),_0x53c90e[_0x394ec0(0x9f3)]=_0x394ec0(0x157b),_0x53c90e[_0x394ec0(0x122f)]=[],_0x53c90e[_0x394ec0(0x1372)]=[],_0x53c90e['selectedItems']=[],_0x53c90e[_0x394ec0(0xbd5)]=[],_0x53c90e[_0x394ec0(0x1456)]=[],_0x53c90e[_0x394ec0(0x50c)]=![],_0x53c90e[_0x394ec0(0x2279)]=![],_0x53c90e['dualMultiselectOptions']={'readOnly':!_0x53c90e[_0x394ec0(0x1b1a)][_0x394ec0(0xb3d)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':'name','line1':_0x394ec0(0x16b6),'line2':'','line3':'','labelAll':_0x5ca6c1[_0x394ec0(0x25cc)]('MOTIONDIALER.ALL_LISTS'),'labelSelected':_0x5ca6c1['instant'](_0x394ec0(0x8f4)),'transferCallback':function(){const _0x2f47c3=_0x394ec0,_0x46d446=_0x39641b()[_0x2f47c3(0x1423)](_0x53c90e[_0x2f47c3(0x1456)],_0x53c90e[_0x2f47c3(0x20bb)],'id');_0x53c90e[_0x2f47c3(0x50c)]=_0x39641b()[_0x2f47c3(0xce9)](_0x46d446)?![]:!![];}},_0x53c90e[_0x394ec0(0x1a34)]=_0x4b6cdc,_0x53c90e[_0x394ec0(0x24f8)]=_0x490cdc,_0x53c90e['closeDialog']=_0x1e04a8;function _0x4b6cdc(){const _0x502a36=_0x394ec0;return _0x4e85f0['hasRole']('admin')?_0x3838bb()['catch'](function(_0x751498){const _0x2a2e72=a0_0x5cbd;_0x2f2e26[_0x2a2e72(0x218e)]({'title':_0x751498[_0x2a2e72(0x291)]?_0x2a2e72(0xeb9)+_0x751498['status']+_0x2a2e72(0x1657)+_0x751498[_0x2a2e72(0xc22)]:_0x2a2e72(0xfa5),'msg':_0x751498['status']?JSON[_0x2a2e72(0x2701)](_0x751498[_0x2a2e72(0x25c)]):_0x751498[_0x2a2e72(0x147f)]()});}):_0x43f800()[_0x502a36(0x1cb0)](function(_0x5e06cb){const _0x61e058=_0x502a36;return _0x53c90e[_0x61e058(0x1f74)]=_0x5e06cb,_0x3838bb();})[_0x502a36(0x1c4)](function(_0x3c1ab7){const _0x5bd6a2=_0x502a36;_0x2f2e26[_0x5bd6a2(0x218e)]({'title':_0x3c1ab7[_0x5bd6a2(0x291)]?_0x5bd6a2(0xeb9)+_0x3c1ab7[_0x5bd6a2(0x291)]+'\x20-\x20'+_0x3c1ab7['statusText']:_0x5bd6a2(0xfa5),'msg':_0x3c1ab7[_0x5bd6a2(0x291)]?JSON[_0x5bd6a2(0x2701)](_0x3c1ab7[_0x5bd6a2(0x25c)]):_0x3c1ab7[_0x5bd6a2(0x147f)]()});});}function _0x43f800(){return _0x27dd62(function(_0x167888,_0x587d0e){const _0x5e175c=a0_0x5cbd;_0x3828a0['userProfileSection']['get']({'userProfileId':_0x53c90e[_0x5e175c(0xe76)][_0x5e175c(0x13c1)],'name':_0x5e175c(0x191f)})[_0x5e175c(0x1d77)][_0x5e175c(0x1cb0)](function(_0x3e60e8){const _0x32bb40=_0x5e175c,_0x100c6c=_0x3e60e8&&_0x3e60e8[_0x32bb40(0x2214)]?_0x3e60e8['rows'][0x0]:null;_0x167888(_0x100c6c);})[_0x5e175c(0x1c4)](function(_0x4498d5){_0x587d0e(_0x4498d5);});});}function _0x3838bb(){return _0x27dd62(function(_0x36846f,_0x566665){const _0x123e07=a0_0x5cbd;return _0x4ffb95()[_0x123e07(0x1cb0)](function(_0x3c623c){const _0x28fd82=_0x123e07;return _0x53c90e[_0x28fd82(0x122f)]=_0x3c623c[_0x28fd82(0x2214)]?_0x3c623c[_0x28fd82(0x2214)]:[],_0x4e85f0[_0x28fd82(0x22b6)](_0x28fd82(0x1c60))?_0x3c623c:_0x53c90e[_0x28fd82(0x1f74)]?_0x53c90e[_0x28fd82(0x1f74)][_0x28fd82(0x12f4)]?_0x3c623c:_0x1474aa():null;})[_0x123e07(0x1cb0)](function(_0x2c94f8){const _0x4a6f3a=_0x123e07,_0x40eae3=_0x2c94f8&&_0x2c94f8[_0x4a6f3a(0x2214)]?_0x2c94f8[_0x4a6f3a(0x2214)]:[];return _0x53c90e[_0x4a6f3a(0x1372)]=_0x39641b()[_0x4a6f3a(0x1de2)](_0x40eae3,function(_0x283a7b){const _0xbdbb2f=_0x4a6f3a;return _0x39641b()[_0xbdbb2f(0x13b4)](_0x53c90e[_0xbdbb2f(0x122f)],{'id':_0x4e85f0[_0xbdbb2f(0x22b6)](_0xbdbb2f(0x1c60))||_0x53c90e[_0xbdbb2f(0x1f74)][_0xbdbb2f(0x12f4)]?_0x283a7b['id']:_0x283a7b[_0xbdbb2f(0x2982)]});}),_0x53c90e[_0x4a6f3a(0xbd5)]=angular[_0x4a6f3a(0x17fe)](_0x53c90e[_0x4a6f3a(0x1372)]),_0x53c90e[_0x4a6f3a(0x122f)][_0x4a6f3a(0xf90)](function(_0x4735e8){const _0x39a315=_0x4a6f3a,_0x56bfcd=_0x39641b()[_0x39a315(0x13b4)](_0x53c90e[_0x39a315(0x1372)],{'id':_0x4735e8['id']});_0x53c90e['currentUser'][_0x39a315(0x26e6)]===_0x39a315(0x1c60)?_0x4735e8[_0x39a315(0x1a4f)]=!![]:_0x4735e8[_0x39a315(0x1a4f)]=typeof _0x56bfcd!==_0x39a315(0x16b5)?!![]:![];}),_0x1e59e1();})[_0x123e07(0x1cb0)](function(_0xbc8987){const _0x1f91f0=_0x123e07,_0x8ec047=_0xbc8987&&_0xbc8987[_0x1f91f0(0x2214)]?_0xbc8987[_0x1f91f0(0x2214)]:[];_0x53c90e['selectedItems']=_0x39641b()[_0x1f91f0(0x1de2)](_0x8ec047,function(_0x45161a){const _0x3037ba=_0x1f91f0;return _0x39641b()['find'](_0x53c90e[_0x3037ba(0x122f)],{'id':_0x45161a['id']});}),_0x53c90e[_0x1f91f0(0x1456)]=angular[_0x1f91f0(0x17fe)](_0x53c90e[_0x1f91f0(0x20bb)]),_0x53c90e['dualMultiselectOptions'][_0x1f91f0(0x20bb)]=_0x53c90e[_0x1f91f0(0x20bb)],_0x53c90e['dualMultiselectOptions'][_0x1f91f0(0x122f)]=_0x39641b()[_0x1f91f0(0x2128)](_0x53c90e['allowedItems'],_0x53c90e[_0x1f91f0(0x18c0)][_0x1f91f0(0x20bb)],'id'),_0x36846f();})[_0x123e07(0x1c4)](function(_0x4ad1b9){_0x566665(_0x4ad1b9);});});}function _0x1474aa(){return _0x27dd62(function(_0xd6c8ea,_0x49d90f){const _0x30b2e=a0_0x5cbd;return _0x3828a0[_0x30b2e(0x1198)][_0x30b2e(0xbf7)]({'sectionId':_0x53c90e[_0x30b2e(0x1f74)]['id'],'nolimit':!![]})[_0x30b2e(0x1d77)][_0x30b2e(0x1cb0)](function(_0x50373a){_0xd6c8ea(_0x50373a);})[_0x30b2e(0x1c4)](function(_0x2390cd){_0x49d90f(_0x2390cd);});});}function _0x1e59e1(){return _0x27dd62(function(_0x6e185e,_0x2d2608){const _0x586af7=a0_0x5cbd,_0x1906c9=_0x3828a0[_0x53c90e[_0x586af7(0x2847)]];return _0x1906c9[_0x53c90e[_0x586af7(0x21eb)]]({'id':_0x53c90e['ivrCampaign']['id'],'fields':'id,name','nolimit':!![]})[_0x586af7(0x1d77)][_0x586af7(0x1cb0)](function(_0x296f49){_0x6e185e(_0x296f49);})[_0x586af7(0x1c4)](function(_0x338f00){_0x2d2608(_0x338f00);});});}function _0x4ffb95(){return _0x27dd62(function(_0x301347,_0x30cc46){const _0x580501=a0_0x5cbd;return _0x3828a0[_0x580501(0x22f2)][_0x580501(0xbf7)]({'fields':_0x580501(0x43c),'nolimit':!![]})['$promise'][_0x580501(0x1cb0)](function(_0x441a9b){_0x301347(_0x441a9b);})['catch'](function(_0x3f975e){_0x30cc46(_0x3f975e);});});}function _0x11d76a(_0xaba32d){return _0x27dd62(function(_0x1512ff,_0xf2582a){const _0x473c99=a0_0x5cbd;if(_0x39641b()[_0x473c99(0xce9)](_0xaba32d))_0x1512ff();else{const _0x587592=_0x3828a0[_0x53c90e[_0x473c99(0x2847)]];_0x587592[_0x53c90e['addApi']]({'id':_0x53c90e[_0x473c99(0x1218)]['id'],'ids':_0x39641b()[_0x473c99(0x1de2)](_0xaba32d,'id')})['$promise'][_0x473c99(0x1cb0)](function(){_0x1512ff();})[_0x473c99(0x1c4)](function(_0x34891b){_0xf2582a(_0x34891b);});}});}function _0x1dfe51(_0x57d92b){return _0x27dd62(function(_0x76a3b3,_0x3c0a8d){const _0x346ad2=a0_0x5cbd;if(_0x39641b()['isEmpty'](_0x57d92b))_0x76a3b3();else{const _0x3f7e1a=_0x3828a0[_0x53c90e[_0x346ad2(0x2847)]];_0x3f7e1a[_0x53c90e['removeApi']]({'id':_0x53c90e[_0x346ad2(0x1218)]['id'],'ids':_0x39641b()[_0x346ad2(0x1de2)](_0x57d92b,'id')})[_0x346ad2(0x1d77)][_0x346ad2(0x1cb0)](function(){_0x76a3b3();})[_0x346ad2(0x1c4)](function(_0x434da3){_0x3c0a8d(_0x434da3);});}});}function _0x490cdc(){const _0x3a2434=_0x394ec0;_0x53c90e[_0x3a2434(0x2279)]=!![];const _0x3218b7=_0x39641b()[_0x3a2434(0x2128)](_0x53c90e[_0x3a2434(0x1456)],_0x53c90e[_0x3a2434(0x20bb)],'id'),_0x58d189=_0x39641b()[_0x3a2434(0x2128)](_0x53c90e[_0x3a2434(0x20bb)],_0x53c90e[_0x3a2434(0x1456)],'id');return _0x1dfe51(_0x3218b7)[_0x3a2434(0x1cb0)](function(){return _0x11d76a(_0x58d189);})[_0x3a2434(0x1cb0)](function(){const _0x42a802=_0x3a2434;_0x53c90e[_0x42a802(0x50c)]=![],_0x53c90e[_0x42a802(0xbd5)]=angular['copy'](_0x53c90e['allowedItems']),_0x53c90e[_0x42a802(0x1456)]=angular['copy'](_0x53c90e[_0x42a802(0x20bb)]),_0x2f2e26['success']({'title':_0x42a802(0x201),'msg':_0x42a802(0x1a03)});})[_0x3a2434(0x1c4)](function(_0x106db6){const _0x53f671=_0x3a2434;_0x2f2e26['error']({'title':_0x106db6['status']?'API:'+_0x106db6[_0x53f671(0x291)]+_0x53f671(0x1657)+_0x106db6['statusText']:'SYSTEM:LISTS_ASSOCIATION','msg':_0x106db6[_0x53f671(0x291)]?JSON[_0x53f671(0x2701)](_0x106db6[_0x53f671(0x25c)]):_0x106db6[_0x53f671(0x147f)]()});})[_0x3a2434(0x2e0)](function(){const _0x1fe831=_0x3a2434;_0x53c90e[_0x1fe831(0x2279)]=![];});}function _0x1e04a8(){const _0x4907dc=_0x394ec0;_0x18698a[_0x4907dc(0x1426)]();}}const _0x14a5e8=_0x5678d9;;_0x180e17[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0xcb9),'toasty',_0x5537c6(0x142b),_0x5537c6(0x1218),_0x5537c6(0x1e06),_0x5537c6(0x2941),'$q'];function _0x180e17(_0x4a2283,_0x319dfb,_0x31a66e,_0x5373da,_0xec116d,_0x176780,_0x5960b1,_0x4f4266){const _0x2de7f9=_0x5537c6,_0x9da94f=this;_0x9da94f['selected']=[],_0x9da94f['items']=_0x176780?_0x176780:[],_0x9da94f[_0x2de7f9(0x2279)]=![],_0x9da94f[_0x2de7f9(0xda0)]=_0x394492,_0x9da94f[_0x2de7f9(0x23b2)]=_0x594a3e,_0x9da94f['toggle']=_0x56bbe5,_0x9da94f[_0x2de7f9(0x143f)]=_0x56a9c1,_0x9da94f['isChecked']=_0xb3d2b0,_0x9da94f[_0x2de7f9(0xe47)]=_0xb2cdf4,_0x9da94f[_0x2de7f9(0x1f57)]=_0x5ba271;function _0x56bbe5(_0x3f7385,_0x4df9fe){const _0x59dd41=_0x2de7f9,_0x56234b=_0x4df9fe[_0x59dd41(0xd8a)](_0x3f7385);_0x56234b>-0x1?_0x4df9fe[_0x59dd41(0x159c)](_0x56234b,0x1):_0x4df9fe['push'](_0x3f7385);}function _0x594a3e(_0x5c5203,_0x472c0a){const _0x8ccdf1=_0x2de7f9;return _0x472c0a[_0x8ccdf1(0xd8a)](_0x5c5203)>-0x1;}function _0x56a9c1(){const _0x33da99=_0x2de7f9;return _0x9da94f['selected'][_0x33da99(0xfd0)]!==0x0&&_0x9da94f[_0x33da99(0x1a9b)][_0x33da99(0xfd0)]!==_0x9da94f[_0x33da99(0x122f)][_0x33da99(0xfd0)];}function _0xb3d2b0(){const _0x4474e7=_0x2de7f9;return _0x9da94f[_0x4474e7(0x1a9b)][_0x4474e7(0xfd0)]===_0x9da94f['items'][_0x4474e7(0xfd0)];}function _0xb2cdf4(){const _0x448c11=_0x2de7f9;if(_0x9da94f['selected'][_0x448c11(0xfd0)]===_0x9da94f[_0x448c11(0x122f)][_0x448c11(0xfd0)])_0x9da94f[_0x448c11(0x1a9b)]=[];else(_0x9da94f[_0x448c11(0x1a9b)]['length']===0x0||_0x9da94f['selected']['length']>0x0)&&(_0x9da94f['selected']=_0x9da94f[_0x448c11(0x122f)]['slice'](0x0));}function _0x394492(){const _0x47efa7=_0x2de7f9;_0x319dfb[_0x47efa7(0x1426)]();}function _0x5ba271(){const _0x1bc7ec=_0x2de7f9;_0x9da94f[_0x1bc7ec(0x2279)]=!![];const _0x15bfda=_0x212981();_0x15bfda[_0x1bc7ec(0x2e0)](function(){const _0x4c47c7=_0x1bc7ec;_0x9da94f[_0x4c47c7(0x2279)]=![],_0x394492();});}function _0x212981(){return _0x4f4266(function(_0x380bb1){const _0x197142=a0_0x5cbd;for(let _0x35a76c=0x0;_0x35a76c<_0x9da94f[_0x197142(0x1a9b)][_0x197142(0xfd0)];_0x35a76c+=0x1){_0x352b70(_0xec116d['id'],_0x9da94f[_0x197142(0x1a9b)][_0x35a76c]);}_0x3b07d8(_0x380bb1);});}function _0x352b70(_0x3044d9,_0x509d04){const _0x2219fb=_0x2de7f9,_0xe85336=_0x509d04['id'];_0x5960b1[_0x2219fb(0x273)](function(){const _0x1d2dae=_0x2219fb;return _0x5373da[_0x1d2dae(0x218c)][_0x1d2dae(0x157b)]({'id':_0x3044d9,'ids':_0xe85336})['$promise']['then'](function(){const _0x275cab=_0x1d2dae;return _0x5373da[_0x275cab(0x218c)][_0x275cab(0x285)]({'id':_0x3044d9,'ids':_0xe85336,'dialCheckDuplicateType':_0x275cab(0x382)})[_0x275cab(0x1d77)];})[_0x1d2dae(0x1cb0)](function(){const _0x1b0aed=_0x1d2dae;_0x31a66e[_0x1b0aed(0x829)]({'title':_0x1b0aed(0xcf9),'msg':'List\x20'+_0x509d04[_0x1b0aed(0x16b6)]+_0x1b0aed(0x1e07)});})[_0x1d2dae(0x1c4)](function(_0x2a8100){const _0x12894a=_0x1d2dae;_0x31a66e['error']({'title':_0x2a8100['status']?_0x12894a(0xeb9)+_0x2a8100[_0x12894a(0x291)]+_0x12894a(0x1657)+_0x2a8100[_0x12894a(0xc22)]:_0x12894a(0x2587),'msg':_0x2a8100[_0x12894a(0x291)]?JSON[_0x12894a(0x2701)](_0x2a8100['data']):_0x2a8100[_0x12894a(0x147f)]()});});});}function _0x3b07d8(_0x2a7067){const _0x4a393d=_0x2de7f9;_0x5960b1[_0x4a393d(0x273)](function(){return _0x2a7067();});}}const _0x3c6c9f=_0x180e17;;const _0x1842af=_0x5074a3['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/clone/clone.html/clone.html';;const _0x1fdde4=_0x5074a3['p']+_0x5537c6(0x8bf);;const _0x2f59b7=_0x5074a3['p']+_0x5537c6(0xc03);;const _0x44178a=_0x5074a3['p']+_0x5537c6(0x22fe);;_0x116fbf[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog','$document',_0x5537c6(0x1ae),_0x5537c6(0x8a5),'setting',_0x5537c6(0x142b),_0x5537c6(0x9bf),'Auth',_0x5537c6(0x1218),_0x5537c6(0x2199)];function _0x116fbf(_0x5429d1,_0x1b817a,_0x23a712,_0x1936b5,_0x2f12e8,_0x8256b7,_0x7278ae,_0x2007ad,_0x1b6881,_0x31e26c,_0x504240,_0x5ed60b){const _0x3f6cb2=_0x5537c6,_0x3a225c=this;_0x3a225c[_0x3f6cb2(0xe76)]=_0x31e26c[_0x3f6cb2(0x21e8)](),_0x3a225c[_0x3f6cb2(0x8a5)]=_0x8256b7,_0x3a225c[_0x3f6cb2(0x9ca)]=_0x7278ae,_0x3a225c[_0x3f6cb2(0x1b0c)]=_0x3a225c[_0x3f6cb2(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a225c[_0x3f6cb2(0x2404)]=_0x1b817a[_0x3f6cb2(0x2276)]()+_0x3f6cb2(0x138b)+_0x1b817a[_0x3f6cb2(0x17d8)](),_0x3a225c[_0x3f6cb2(0x1218)]=_0x504240||_0x5429d1['params']['ivrCampaign']||{},_0x3a225c[_0x3f6cb2(0x2199)]=_0x5ed60b&&_0x5ed60b[_0x3f6cb2(0x184d)]==0x1?_0x5ed60b['rows'][0x0]:null,_0x3a225c[_0x3f6cb2(0x1b1a)]=_0x31e26c[_0x3f6cb2(0x14ea)](_0x3a225c[_0x3f6cb2(0x2199)]?_0x3a225c['userProfileSection']['crudPermissions']:null),_0x3a225c['hasModulePermissions']={},_0x3a225c[_0x3f6cb2(0x8ec)]=_0x5429d1[_0x3f6cb2(0x1dfe)][_0x3f6cb2(0x291e)]||0x0,_0x3a225c[_0x3f6cb2(0x388)]=_0x3bd945,_0x3a225c[_0x3f6cb2(0xb80)]=_0x5bf511,_0x3a225c['blacklistadddialog']=_0x46e198,_0x3a225c[_0x3f6cb2(0x20c4)]=_0x8f0307,_0x3a225c[_0x3f6cb2(0x47d)]=_0x6afb4b,_0x3a225c[_0x3f6cb2(0x494)]=_0x1b6881['info'],_0x3a225c[_0x3f6cb2(0x1e2d)]=_0x1875af,_0x3a225c['saveIvrCampaign']=_0x132e28,_0x31e26c['hasRole'](_0x3f6cb2(0x1c60))?_0x2007ad[_0x3f6cb2(0x1ae0)][_0x3f6cb2(0xbf7)]({'fields':_0x3f6cb2(0x43c),'sort':'name'})[_0x3f6cb2(0x1d77)]['then'](function(_0x50e53a){const _0x410f5c=_0x3f6cb2;_0x3a225c['trunks']=_0x50e53a[_0x410f5c(0x2214)]||[];})[_0x3f6cb2(0x1c4)](function(_0x7bce19){const _0x554025=_0x3f6cb2;_0x1b6881['error']({'title':_0x7bce19[_0x554025(0x291)]?_0x554025(0xeb9)+_0x7bce19[_0x554025(0x291)]+_0x554025(0x1657)+_0x7bce19['statusText']:_0x554025(0x14fc),'msg':_0x7bce19['data']?JSON[_0x554025(0x2701)](_0x7bce19[_0x554025(0x25c)]):_0x7bce19[_0x554025(0x147f)]()});}):_0x2007ad['trunk']['get']({'fields':_0x3f6cb2(0x43c),'sort':_0x3f6cb2(0x16b6)})[_0x3f6cb2(0x1d77)]['then'](function(_0x5bf87b){const _0x14b8ca=_0x3f6cb2;_0x3a225c['trunks']=_0x5bf87b[_0x14b8ca(0x2214)]||[];})[_0x3f6cb2(0x1cb0)](function(){const _0x30fed1=_0x3f6cb2;return _0x2007ad['userProfileSection'][_0x30fed1(0xbf7)]({'userProfileId':_0x3a225c[_0x30fed1(0xe76)][_0x30fed1(0x13c1)],'sectionId':0x3f3})[_0x30fed1(0x1d77)];})['then'](function(_0x73f13b){const _0xffb358=_0x3f6cb2,_0xf2ae8b=_0x73f13b&&_0x73f13b[_0xffb358(0x2214)]?_0x73f13b[_0xffb358(0x2214)][0x0]:null;if(!_0xf2ae8b)_0x3a225c[_0xffb358(0x1363)]=[];else{if(!_0xf2ae8b[_0xffb358(0x12f4)])return _0x2007ad[_0xffb358(0x1198)][_0xffb358(0xbf7)]({'sectionId':_0xf2ae8b['id']})['$promise'][_0xffb358(0x1cb0)](function(_0x4c2989){const _0x3901c5=_0xffb358,_0x46e15b=_0x39641b()[_0x3901c5(0x1de2)](_0x4c2989[_0x3901c5(0x2214)],function(_0x2b649e){const _0x1a5f53=_0x3901c5;return _0x39641b()['find'](_0x3a225c['trunks'],{'id':_0x2b649e[_0x1a5f53(0x2982)]});});_0x3a225c['trunks'][_0x3901c5(0xf90)](function(_0x37e953){const _0x2ec295=_0x3901c5;!_0x39641b()[_0x2ec295(0x727)](_0x46e15b,['id',_0x37e953['id']])&&(_0x37e953[_0x2ec295(0x15da)]=![]),_0x46e15b[_0x2ec295(0x2785)](_0x37e953);}),_0x3a225c[_0x3901c5(0x1363)]=_0x46e15b;});}})[_0x3f6cb2(0x1c4)](function(_0x795bc8){const _0x249367=_0x3f6cb2;_0x1b6881[_0x249367(0x218e)]({'title':_0x795bc8[_0x249367(0x291)]?_0x249367(0xeb9)+_0x795bc8[_0x249367(0x291)]+_0x249367(0x1657)+_0x795bc8[_0x249367(0xc22)]:_0x249367(0x2040),'msg':_0x795bc8[_0x249367(0x25c)]?JSON[_0x249367(0x2701)](_0x795bc8['data']):_0x795bc8[_0x249367(0x147f)]()});}),_0x31e26c[_0x3f6cb2(0x22b6)](_0x3f6cb2(0x1c60))?_0x2007ad[_0x3f6cb2(0xf61)][_0x3f6cb2(0xbf7)]({'fields':_0x3f6cb2(0x43c),'sort':_0x3f6cb2(0x16b6)})['$promise']['then'](function(_0x3bb630){const _0x397d61=_0x3f6cb2;_0x3a225c[_0x397d61(0x2981)]=_0x3bb630[_0x397d61(0x2214)]||[];})[_0x3f6cb2(0x1c4)](function(_0x3fb5f0){const _0xd15d9a=_0x3f6cb2;_0x1b6881[_0xd15d9a(0x218e)]({'title':_0x3fb5f0[_0xd15d9a(0x291)]?_0xd15d9a(0xeb9)+_0x3fb5f0[_0xd15d9a(0x291)]+_0xd15d9a(0x1657)+_0x3fb5f0[_0xd15d9a(0xc22)]:_0xd15d9a(0x214c),'msg':_0x3fb5f0[_0xd15d9a(0x25c)]?JSON[_0xd15d9a(0x2701)](_0x3fb5f0[_0xd15d9a(0x25c)]):_0x3fb5f0[_0xd15d9a(0x147f)]()});}):_0x2007ad[_0x3f6cb2(0xf61)][_0x3f6cb2(0xbf7)]({'fields':'id,name','sort':_0x3f6cb2(0x16b6)})[_0x3f6cb2(0x1d77)]['then'](function(_0x1495c8){const _0xb2f571=_0x3f6cb2;_0x3a225c[_0xb2f571(0x2981)]=_0x1495c8['rows']||[];})['then'](function(){const _0x441ca4=_0x3f6cb2;return _0x2007ad[_0x441ca4(0x2199)][_0x441ca4(0xbf7)]({'userProfileId':_0x3a225c[_0x441ca4(0xe76)]['userProfileId'],'sectionId':0x44f})[_0x441ca4(0x1d77)];})[_0x3f6cb2(0x1cb0)](function(_0x1d2930){const _0x14235f=_0x3f6cb2,_0x9c3bbd=_0x1d2930&&_0x1d2930['rows']?_0x1d2930['rows'][0x0]:null;if(!_0x9c3bbd){const _0x38164b=[];let _0x3961cb=null;_0x3a225c[_0x14235f(0x1218)]&&(_0x3961cb=_0x39641b()[_0x14235f(0x13b4)](_0x3a225c[_0x14235f(0x2981)],{'id':Number(_0x3a225c[_0x14235f(0x1218)][_0x14235f(0x1544)])}));for(let _0x16f1ca=0x0;_0x16f1ca<_0x3a225c[_0x14235f(0x2981)][_0x14235f(0xfd0)];_0x16f1ca++){_0x3961cb&&_0x3a225c[_0x14235f(0x2981)][_0x16f1ca]['id']===_0x3961cb['id']&&(_0x3a225c[_0x14235f(0x2981)][_0x16f1ca]['canSelect']=![],_0x38164b[_0x14235f(0x2785)](_0x3a225c[_0x14235f(0x2981)][_0x16f1ca]));}_0x3a225c[_0x14235f(0x2981)]=_0x38164b;}else{if(!_0x9c3bbd[_0x14235f(0x12f4)])return _0x2007ad[_0x14235f(0x1198)][_0x14235f(0xbf7)]({'sectionId':_0x9c3bbd['id']})[_0x14235f(0x1d77)][_0x14235f(0x1cb0)](function(_0x260daa){const _0x5a89ec=_0x14235f,_0x36cfac=_0x39641b()[_0x5a89ec(0x1de2)](_0x260daa[_0x5a89ec(0x2214)],function(_0x3387ad){const _0x3d3d5e=_0x5a89ec;return _0x39641b()[_0x3d3d5e(0x13b4)](_0x3a225c['projects'],{'id':_0x3387ad[_0x3d3d5e(0x2982)]});});let _0xcb5468=null;_0x3a225c['ivrCampaign']&&(_0xcb5468=_0x39641b()[_0x5a89ec(0x13b4)](_0x3a225c[_0x5a89ec(0x2981)],{'id':Number(_0x3a225c[_0x5a89ec(0x1218)][_0x5a89ec(0x1544)])}));if(_0xcb5468&&!_0x39641b()[_0x5a89ec(0x727)](_0x36cfac,['id',_0xcb5468['id']])){const _0x15b00b=_0x39641b()[_0x5a89ec(0x13b4)](_0x3a225c[_0x5a89ec(0x2981)],{'id':_0xcb5468['id']});_0x15b00b[_0x5a89ec(0x15da)]=![],_0x36cfac[_0x5a89ec(0x2785)](_0x15b00b);}_0x3a225c[_0x5a89ec(0x2981)]=_0x36cfac;});}})[_0x3f6cb2(0x1c4)](function(_0x4711d6){const _0x3f5128=_0x3f6cb2;_0x1b6881[_0x3f5128(0x218e)]({'title':_0x4711d6[_0x3f5128(0x291)]?_0x3f5128(0xeb9)+_0x4711d6[_0x3f5128(0x291)]+_0x3f5128(0x1657)+_0x4711d6[_0x3f5128(0xc22)]:_0x3f5128(0x2101),'msg':_0x4711d6[_0x3f5128(0x25c)]?JSON[_0x3f5128(0x2701)](_0x4711d6[_0x3f5128(0x25c)]):_0x4711d6[_0x3f5128(0x147f)]()});}),_0x31e26c[_0x3f6cb2(0x22b6)](_0x3f6cb2(0x1c60))?_0x2007ad['interval'][_0x3f6cb2(0xbf7)]({'fields':_0x3f6cb2(0x43c),'sort':_0x3f6cb2(0x16b6),'IntervalId':_0x3f6cb2(0xd38)})['$promise']['then'](function(_0x208954){const _0x4b13b6=_0x3f6cb2;_0x3a225c[_0x4b13b6(0x1ac8)]=_0x208954['rows']||[];})[_0x3f6cb2(0x1c4)](function(_0x300931){const _0x19d70e=_0x3f6cb2;_0x1b6881[_0x19d70e(0x218e)]({'title':_0x300931['status']?'API:'+_0x300931[_0x19d70e(0x291)]+_0x19d70e(0x1657)+_0x300931[_0x19d70e(0xc22)]:_0x19d70e(0x1917),'msg':_0x300931[_0x19d70e(0x25c)]?JSON[_0x19d70e(0x2701)](_0x300931[_0x19d70e(0x25c)]):_0x300931['toString']()});}):_0x2007ad['interval'][_0x3f6cb2(0xbf7)]({'fields':_0x3f6cb2(0x43c),'sort':'name','IntervalId':_0x3f6cb2(0xd38)})['$promise'][_0x3f6cb2(0x1cb0)](function(_0x51a008){const _0x5ee164=_0x3f6cb2;_0x3a225c[_0x5ee164(0x1ac8)]=_0x51a008[_0x5ee164(0x2214)]||[];})[_0x3f6cb2(0x1cb0)](function(){const _0x803981=_0x3f6cb2;return _0x2007ad[_0x803981(0x2199)][_0x803981(0xbf7)]({'userProfileId':_0x3a225c[_0x803981(0xe76)][_0x803981(0x13c1)],'sectionId':0x3ec})['$promise'];})[_0x3f6cb2(0x1cb0)](function(_0xb8865a){const _0x16b307=_0x3f6cb2,_0x1ca552=_0xb8865a&&_0xb8865a[_0x16b307(0x2214)]?_0xb8865a['rows'][0x0]:null;if(!_0x1ca552){const _0x20d221=[];let _0x4be8a1=null;_0x3a225c[_0x16b307(0x1218)]&&(_0x4be8a1=_0x39641b()[_0x16b307(0x13b4)](_0x3a225c[_0x16b307(0x1ac8)],{'id':Number(_0x3a225c['ivrCampaign'][_0x16b307(0x1a60)])}));for(let _0x244331=0x0;_0x244331<_0x3a225c[_0x16b307(0x1ac8)][_0x16b307(0xfd0)];_0x244331++){_0x4be8a1&&_0x3a225c[_0x16b307(0x1ac8)][_0x244331]['id']===_0x4be8a1['id']&&(_0x3a225c[_0x16b307(0x1ac8)][_0x244331][_0x16b307(0x15da)]=![],_0x20d221[_0x16b307(0x2785)](_0x3a225c[_0x16b307(0x1ac8)][_0x244331]));}_0x3a225c[_0x16b307(0x1ac8)]=_0x20d221;}else{if(!_0x1ca552[_0x16b307(0x12f4)])return _0x2007ad['userProfileResource'][_0x16b307(0xbf7)]({'sectionId':_0x1ca552['id']})[_0x16b307(0x1d77)]['then'](function(_0x339eb4){const _0x34e96e=_0x16b307,_0x44cd3a=_0x39641b()['map'](_0x339eb4[_0x34e96e(0x2214)],function(_0x5d7b78){const _0x9de0a2=_0x34e96e;return _0x39641b()[_0x9de0a2(0x13b4)](_0x3a225c[_0x9de0a2(0x1ac8)],{'id':_0x5d7b78[_0x9de0a2(0x2982)]});});let _0x3efa10=null;_0x3a225c[_0x34e96e(0x1218)]&&(_0x3efa10=_0x39641b()[_0x34e96e(0x13b4)](_0x3a225c['interval'],{'id':Number(_0x3a225c[_0x34e96e(0x1218)]['IntervalId'])}));if(_0x3efa10&&!_0x39641b()[_0x34e96e(0x727)](_0x44cd3a,['id',_0x3efa10['id']])){const _0x2acf69=_0x39641b()[_0x34e96e(0x13b4)](_0x3a225c['interval'],{'id':_0x3efa10['id']});_0x2acf69[_0x34e96e(0x15da)]=![],_0x44cd3a['push'](_0x2acf69);}_0x3a225c[_0x34e96e(0x1ac8)]=_0x44cd3a;});}})['catch'](function(_0xc5395a){const _0x1f3fa3=_0x3f6cb2;_0x1b6881[_0x1f3fa3(0x218e)]({'title':_0xc5395a[_0x1f3fa3(0x291)]?_0x1f3fa3(0xeb9)+_0xc5395a['status']+_0x1f3fa3(0x1657)+_0xc5395a[_0x1f3fa3(0xc22)]:'SYSTEM:GETinterval','msg':_0xc5395a[_0x1f3fa3(0x25c)]?JSON[_0x1f3fa3(0x2701)](_0xc5395a[_0x1f3fa3(0x25c)]):_0xc5395a[_0x1f3fa3(0x147f)]()});});function _0x3bd945(_0x1d76bc,_0x267c80){const _0x276636=_0x3f6cb2;_0x23a712['show']({'controller':'IvrCampaigncloneController','controllerAs':'vm','templateUrl':_0x1842af,'parent':angular[_0x276636(0x1853)](_0x1936b5['body']),'targetEvent':_0x267c80,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x1d76bc,'ivrCampaigns':_0x3a225c['ivrCampaigns']?_0x3a225c['ivrCampaigns'][_0x276636(0x2214)]:[],'crudPermissions':_0x3a225c[_0x276636(0x1b1a)]}});}function _0x5bf511(_0x4f54d7,_0x698da0){const _0x5b532d=_0x3f6cb2;_0x23a712['show']({'controller':_0x5b532d(0x1c8c),'controllerAs':'vm','templateUrl':_0x1fdde4,'parent':angular['element'](_0x1936b5[_0x5b532d(0x1ed9)]),'targetEvent':_0x698da0,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x4f54d7,'ivrCampaigns':_0x3a225c['ivrCampaigns']?_0x3a225c['ivrCampaigns'][_0x5b532d(0x2214)]:[],'crudPermissions':_0x3a225c[_0x5b532d(0x1b1a)]}});}function _0x46e198(_0x18de60,_0x27f7a4){const _0x71c37a=_0x3f6cb2;_0x23a712[_0x71c37a(0xe27)]({'controller':_0x71c37a(0xc3b),'controllerAs':'vm','templateUrl':_0x2f59b7,'parent':angular[_0x71c37a(0x1853)](_0x1936b5['body']),'targetEvent':_0x27f7a4,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x18de60,'ivrCampaigns':_0x3a225c[_0x71c37a(0x1fda)]?_0x3a225c['ivrCampaigns'][_0x71c37a(0x2214)]:[],'crudPermissions':_0x3a225c[_0x71c37a(0x1b1a)]}});}function _0x411cb9(_0x1319d0,_0x13c196){const _0x4f9da6=_0x3f6cb2,_0x42cf15=_0x13c196['id'];_0x2007ad[_0x4f9da6(0x218c)]['removeLists']({'id':_0x1319d0,'ids':_0x42cf15})[_0x4f9da6(0x1d77)][_0x4f9da6(0x1cb0)](function(){const _0x8a3f2d=_0x4f9da6;return _0x2007ad[_0x8a3f2d(0x218c)]['addLists']({'id':_0x1319d0,'ids':_0x42cf15,'dialCheckDuplicateType':_0x8a3f2d(0x382)})['$promise'];})['then'](function(){const _0x873fcd=_0x4f9da6;_0x1b6881['success']({'title':_0x873fcd(0xcf9),'msg':_0x873fcd(0x8ae)+_0x13c196[_0x873fcd(0x16b6)]+_0x873fcd(0x1e07)});})[_0x4f9da6(0x1c4)](function(_0x436c48){const _0x48bc85=_0x4f9da6;_0x1b6881[_0x48bc85(0x218e)]({'title':_0x436c48[_0x48bc85(0x291)]?_0x48bc85(0xeb9)+_0x436c48[_0x48bc85(0x291)]+_0x48bc85(0x1657)+_0x436c48[_0x48bc85(0xc22)]:'SYSTEM:ivrCampaign.REMOVELIST','msg':_0x436c48[_0x48bc85(0x291)]?JSON['stringify'](_0x436c48[_0x48bc85(0x25c)]):_0x436c48[_0x48bc85(0x147f)]()});});}function _0x8f0307(_0x2e0308,_0xfdfe70){const _0x1cab14=_0x3f6cb2;_0x2007ad[_0x1cab14(0x218c)]['getLists']({'id':_0x2e0308['id'],'fields':_0x1cab14(0x43c),'nolimit':!![]})[_0x1cab14(0x1d77)]['then'](function(_0x2a1989){const _0x51d520=_0x1cab14;if(_0x39641b()[_0x51d520(0x958)](_0x2a1989[_0x51d520(0x2214)])||_0x39641b()[_0x51d520(0xce9)](_0x2a1989[_0x51d520(0x2214)]))_0x1b6881['info']({'title':_0x51d520(0x430)});else{if(_0x2a1989[_0x51d520(0x2214)][_0x51d520(0xfd0)]===0x1){const _0x175894=_0x23a712['confirm']()[_0x51d520(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20reset\x20the\x20list\x20'+_0x2a1989['rows'][0x0][_0x51d520(0x16b6)]+'\x20?')[_0x51d520(0x49e)](_0x51d520(0x204d)+_0x2a1989['rows'][0x0][_0x51d520(0x16b6)]+_0x51d520(0x1200)+_0x51d520(0x1575))[_0x51d520(0x15ad)](_0x51d520(0x2794))[_0x51d520(0x728)](_0xfdfe70)['ok']('OK')['cancel']('CANCEL');_0x23a712[_0x51d520(0xe27)](_0x175894)[_0x51d520(0x1cb0)](function(){const _0x5a99fe=_0x51d520;_0x411cb9(_0x3a225c[_0x5a99fe(0x1218)]['id'],_0x2a1989[_0x5a99fe(0x2214)][0x0]);});}else _0x23a712[_0x51d520(0xe27)]({'controller':_0x51d520(0x1013),'controllerAs':'vm','templateUrl':_0x44178a,'parent':angular[_0x51d520(0x1853)](_0x1936b5['body']),'targetEvent':_0xfdfe70,'clickOutsideToClose':![],'locals':{'ivrCampaign':_0x2e0308,'listsCampaign':_0x2a1989?_0x2a1989['rows']:[]}});}})['catch'](function(_0x82c64d){const _0x4aa1cc=_0x1cab14;_0x1b6881[_0x4aa1cc(0x218e)]({'title':_0x82c64d[_0x4aa1cc(0x291)]?_0x4aa1cc(0xeb9)+_0x82c64d[_0x4aa1cc(0x291)]+'\x20-\x20'+_0x82c64d[_0x4aa1cc(0xc22)]:_0x4aa1cc(0xea5),'msg':_0x82c64d[_0x4aa1cc(0x291)]?JSON['stringify'](_0x82c64d[_0x4aa1cc(0x25c)]):_0x82c64d['toString']()});});}function _0x6afb4b(){const _0x4e0200=_0x3f6cb2;if(_0x31e26c['hasRole'](_0x4e0200(0x1c60)))_0x5429d1['go'](_0x4e0200(0x1369),{});else return _0x2007ad[_0x4e0200(0x2199)][_0x4e0200(0xbf7)]({'userProfileId':_0x31e26c['getCurrentUser']()[_0x4e0200(0x13c1)],'sectionId':0x5e6})[_0x4e0200(0x1d77)][_0x4e0200(0x1cb0)](function(_0x20ca8f){const _0xa7d040=_0x4e0200,_0x3370c0=_0x20ca8f&&_0x20ca8f[_0xa7d040(0x2214)]?_0x20ca8f[_0xa7d040(0x2214)][0x0]:null;_0x3370c0&&_0x3370c0['enabled']?_0x5429d1['go'](_0xa7d040(0x1369),{}):_0x1b6881[_0xa7d040(0x28c7)]({'title':_0x2f12e8[_0xa7d040(0x25cc)](_0xa7d040(0x370)),'msg':_0x2f12e8[_0xa7d040(0x25cc)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x4e0200(0x1c4)](function(_0x13c1f2){const _0x27377c=_0x4e0200;_0x1b6881['error']({'title':_0x13c1f2['status']?_0x27377c(0xeb9)+_0x13c1f2[_0x27377c(0x291)]+_0x27377c(0x1657)+_0x13c1f2['statusText']:_0x27377c(0x17ba),'msg':_0x13c1f2[_0x27377c(0x291)]?JSON['stringify'](_0x13c1f2['data']):_0x13c1f2[_0x27377c(0x147f)]()});});}function _0x1875af(){const _0x44191a=_0x3f6cb2;_0x5429d1['go'](_0x44191a(0x712),{},{'reload':_0x44191a(0x712)});}function _0x132e28(){const _0x4e2691=_0x3f6cb2;_0x2007ad[_0x4e2691(0x218c)][_0x4e2691(0x687)]({'id':_0x3a225c[_0x4e2691(0x1218)]['id']},_0x3a225c[_0x4e2691(0x1218)])[_0x4e2691(0x1d77)][_0x4e2691(0x1cb0)](function(){const _0x312614=_0x4e2691;_0x1b6881[_0x312614(0x829)]({'title':_0x312614(0x5e1),'msg':_0x3a225c[_0x312614(0x1218)][_0x312614(0x16b6)]?_0x3a225c[_0x312614(0x1218)][_0x312614(0x16b6)]+_0x312614(0x1068):''});})['catch'](function(_0x19c9c0){const _0x252f76=_0x4e2691;_0x1b6881[_0x252f76(0x218e)]({'title':_0x19c9c0[_0x252f76(0x291)]?_0x252f76(0xeb9)+_0x19c9c0['status']+_0x252f76(0x1657)+_0x19c9c0['statusText']:_0x252f76(0x2049),'msg':_0x19c9c0[_0x252f76(0x25c)]?JSON[_0x252f76(0x2701)](_0x19c9c0[_0x252f76(0x25c)]):_0x19c9c0[_0x252f76(0x147f)]()});});}}const _0x367180=_0x116fbf;;_0x5a95bf[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),'$mdDialog','$document',_0x5537c6(0x2168),'$translate',_0x5537c6(0x1fda),'userProfile',_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),'toasty',_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x5a95bf(_0x2f2c74,_0x362ea4,_0x140cc9,_0x3ac418,_0x21607d,_0x2f3e86,_0x36dbea,_0x4e173f,_0x4b3bcf,_0x283b2,_0x526d7c,_0x2a2337,_0x340f0f,_0x4659ec,_0x4e5947,_0x1697c9,_0x40f8fd){const _0x3be93a=_0x5537c6,_0x256e9d=this;_0x256e9d[_0x3be93a(0x8a5)]=_0x1697c9,_0x256e9d[_0x3be93a(0x9ca)]=_0x40f8fd,_0x256e9d[_0x3be93a(0xe76)]=_0x4e5947['getCurrentUser'](),_0x256e9d[_0x3be93a(0x1fda)]=_0x4b3bcf||{'count':0x0,'rows':[]},_0x256e9d[_0x3be93a(0x44a)]=_0x283b2,_0x256e9d[_0x3be93a(0x2199)]=_0x526d7c&&_0x526d7c['count']==0x1?_0x526d7c['rows'][0x0]:null,_0x256e9d['crudPermissions']=_0x4e5947[_0x3be93a(0x14ea)](_0x256e9d[_0x3be93a(0x2199)]?_0x256e9d[_0x3be93a(0x2199)][_0x3be93a(0x1b1a)]:null),_0x256e9d[_0x3be93a(0xc83)]=_0x3be93a(0x1fda),_0x256e9d[_0x3be93a(0x1d20)]='',_0x256e9d['listOrderAsc']=null,_0x256e9d[_0x3be93a(0x619)]=[],_0x256e9d[_0x3be93a(0xae2)]={'fields':_0x3be93a(0x108d),'type':'ivr','sort':'-updatedAt','limit':0xa,'page':0x1},_0x256e9d[_0x3be93a(0xe8e)]=_0x39641b()['keyBy']([{'option':'ALWAYS','value':_0x3be93a(0x2a2)},{'option':'NEVER','value':_0x3be93a(0x1d2c)},{'option':_0x3be93a(0x1fa9),'value':_0x3be93a(0x1cdd)}],function(_0x1ccc42){const _0x1fd28f=_0x3be93a;return _0x39641b()[_0x1fd28f(0x288f)](_0x1ccc42[_0x1fd28f(0x327)],new RegExp('\x27','g'),'');}),_0x256e9d[_0x3be93a(0x1c24)]=_0x39641b()[_0x3be93a(0x2631)]([{'option':_0x3be93a(0x16b),'value':_0x3be93a(0x59a)},{'option':'ASC','value':'\x27ASC\x27'}],function(_0x58da47){const _0x3bbdae=_0x3be93a;return _0x39641b()[_0x3bbdae(0x288f)](_0x58da47[_0x3bbdae(0x327)],new RegExp('\x27','g'),'');}),_0x256e9d['editstate']=_0x54ae73,_0x256e9d[_0x3be93a(0x388)]=_0x51f4fd,_0x256e9d[_0x3be93a(0xb80)]=_0x104552,_0x256e9d[_0x3be93a(0x1345)]=_0x426678,_0x256e9d['deleteconfirm']=_0x5794af,_0x256e9d['gotorealtimegoto']=_0x5f2cf4,_0x256e9d['success']=_0x377a1d,_0x256e9d[_0x3be93a(0xe4b)]=_0xfddf4f,_0x256e9d[_0x3be93a(0xd21)]=_0x5606fa,_0x256e9d[_0x3be93a(0x6c5)]=_0x58f0d0,_0x256e9d[_0x3be93a(0xf3c)]=_0x35a041,_0x256e9d[_0x3be93a(0x28b)]=_0x145560,_0x256e9d[_0x3be93a(0x1e47)]=_0x518a91,_0x256e9d[_0x3be93a(0x17d5)]=_0x1b1a18,_0x4e5947['hasRole']('admin')?_0x2a2337[_0x3be93a(0x1ae0)]['get']({'fields':'id,name','sort':_0x3be93a(0x16b6),'table':_0x3be93a(0x44d)})[_0x3be93a(0x1d77)][_0x3be93a(0x1cb0)](function(_0x44ee1f){const _0x2228cf=_0x3be93a;_0x256e9d[_0x2228cf(0x1363)]=_0x44ee1f[_0x2228cf(0x2214)]||[];})[_0x3be93a(0x1c4)](function(_0x4bbac4){const _0x4f9bf5=_0x3be93a;_0x4659ec[_0x4f9bf5(0x218e)]({'title':_0x4bbac4[_0x4f9bf5(0x291)]?_0x4f9bf5(0xeb9)+_0x4bbac4[_0x4f9bf5(0x291)]+_0x4f9bf5(0x1657)+_0x4bbac4[_0x4f9bf5(0xc22)]:_0x4f9bf5(0x14fc),'msg':_0x4bbac4['data']?JSON[_0x4f9bf5(0x2701)](_0x4bbac4[_0x4f9bf5(0x25c)]):_0x4bbac4[_0x4f9bf5(0x147f)]()});}):_0x2a2337[_0x3be93a(0x1ae0)][_0x3be93a(0xbf7)]({'fields':_0x3be93a(0x43c),'sort':_0x3be93a(0x16b6),'table':'true'})[_0x3be93a(0x1d77)][_0x3be93a(0x1cb0)](function(_0x386978){const _0x54f268=_0x3be93a;_0x256e9d[_0x54f268(0x1363)]=_0x386978[_0x54f268(0x2214)]||[];})[_0x3be93a(0x1cb0)](function(){const _0x230a81=_0x3be93a;return _0x2a2337[_0x230a81(0x2199)][_0x230a81(0xbf7)]({'userProfileId':_0x256e9d[_0x230a81(0xe76)][_0x230a81(0x13c1)],'sectionId':0x3f3})[_0x230a81(0x1d77)];})[_0x3be93a(0x1cb0)](function(_0x5163e1){const _0x491f84=_0x3be93a,_0xf1e73d=_0x5163e1&&_0x5163e1['rows']?_0x5163e1[_0x491f84(0x2214)][0x0]:null;if(!_0xf1e73d)_0x256e9d[_0x491f84(0x1363)]=[];else{if(!_0xf1e73d[_0x491f84(0x12f4)])return _0x2a2337[_0x491f84(0x1198)][_0x491f84(0xbf7)]({'sectionId':_0xf1e73d['id']})[_0x491f84(0x1d77)][_0x491f84(0x1cb0)](function(_0x148841){const _0x3820ce=_0x491f84,_0x3fea47=_0x39641b()['map'](_0x148841[_0x3820ce(0x2214)],function(_0x54df6b){const _0x255201=_0x3820ce;return _0x39641b()[_0x255201(0x13b4)](_0x256e9d[_0x255201(0x1363)],{'id':_0x54df6b[_0x255201(0x2982)]});});_0x256e9d[_0x3820ce(0x1363)][_0x3820ce(0xf90)](function(_0x42200e){const _0x3e2753=_0x3820ce;!_0x39641b()['some'](_0x3fea47,['id',_0x42200e['id']])&&(_0x42200e[_0x3e2753(0x15da)]=![]),_0x3fea47[_0x3e2753(0x2785)](_0x42200e);}),_0x256e9d[_0x3820ce(0x1363)]=_0x3fea47;});}})['catch'](function(_0x237677){const _0x48273d=_0x3be93a;_0x4659ec[_0x48273d(0x218e)]({'title':_0x237677[_0x48273d(0x291)]?_0x48273d(0xeb9)+_0x237677[_0x48273d(0x291)]+_0x48273d(0x1657)+_0x237677[_0x48273d(0xc22)]:'SYSTEM:GETtrunks','msg':_0x237677[_0x48273d(0x25c)]?JSON[_0x48273d(0x2701)](_0x237677[_0x48273d(0x25c)]):_0x237677[_0x48273d(0x147f)]()});}),_0x4e5947[_0x3be93a(0x22b6)](_0x3be93a(0x1c60))?_0x2a2337[_0x3be93a(0xf61)][_0x3be93a(0xbf7)]({'fields':_0x3be93a(0x43c),'sort':_0x3be93a(0x16b6)})[_0x3be93a(0x1d77)]['then'](function(_0xd6bcd1){const _0x1ebb3d=_0x3be93a;_0x256e9d[_0x1ebb3d(0x2981)]=_0xd6bcd1[_0x1ebb3d(0x2214)]||[];})[_0x3be93a(0x1c4)](function(_0x43cace){const _0xb48e39=_0x3be93a;_0x4659ec['error']({'title':_0x43cace[_0xb48e39(0x291)]?'API:'+_0x43cace[_0xb48e39(0x291)]+_0xb48e39(0x1657)+_0x43cace['statusText']:_0xb48e39(0x214c),'msg':_0x43cace[_0xb48e39(0x25c)]?JSON[_0xb48e39(0x2701)](_0x43cace[_0xb48e39(0x25c)]):_0x43cace[_0xb48e39(0x147f)]()});}):_0x2a2337[_0x3be93a(0xf61)][_0x3be93a(0xbf7)]({'fields':_0x3be93a(0x43c),'sort':'name'})[_0x3be93a(0x1d77)][_0x3be93a(0x1cb0)](function(_0x36625d){const _0x33f374=_0x3be93a;_0x256e9d[_0x33f374(0x2981)]=_0x36625d[_0x33f374(0x2214)]||[];})[_0x3be93a(0x1cb0)](function(){const _0x3e04c9=_0x3be93a;return _0x2a2337[_0x3e04c9(0x2199)][_0x3e04c9(0xbf7)]({'userProfileId':_0x256e9d['currentUser']['userProfileId'],'sectionId':0x44f})[_0x3e04c9(0x1d77)];})['then'](function(_0x24cbe0){const _0x309197=_0x3be93a,_0x2da1db=_0x24cbe0&&_0x24cbe0[_0x309197(0x2214)]?_0x24cbe0[_0x309197(0x2214)][0x0]:null;if(!_0x2da1db){const _0x4a6831=[],_0x5ad0bc=[];_0x256e9d[_0x309197(0x1fda)][_0x309197(0x2214)][_0x309197(0xf90)](function(_0x495515){const _0x1f37af=_0x309197,_0x327d60=_0x39641b()[_0x1f37af(0x13b4)](_0x256e9d[_0x1f37af(0x2981)],{'id':Number(_0x495515[_0x1f37af(0x1544)])});_0x5ad0bc[_0x1f37af(0x2785)](_0x327d60);});for(let _0x3f45ae=0x0;_0x3f45ae<_0x256e9d[_0x309197(0x2981)][_0x309197(0xfd0)];_0x3f45ae++){const _0x30a34f=_0x39641b()['some'](_0x5ad0bc,{'id':_0x256e9d[_0x309197(0x2981)][_0x3f45ae]['id']});_0x30a34f&&(_0x256e9d[_0x309197(0x2981)][_0x3f45ae][_0x309197(0x15da)]=![],_0x4a6831[_0x309197(0x2785)](_0x256e9d[_0x309197(0x2981)][_0x3f45ae]));}_0x256e9d[_0x309197(0x2981)]=_0x4a6831;}else{if(!_0x2da1db['autoAssociation'])return _0x2a2337['userProfileResource'][_0x309197(0xbf7)]({'sectionId':_0x2da1db['id']})[_0x309197(0x1d77)]['then'](function(_0xe437ba){const _0x280cd0=_0x309197,_0x573364=_0x39641b()[_0x280cd0(0x1de2)](_0xe437ba[_0x280cd0(0x2214)],function(_0x272730){const _0x13f9c2=_0x280cd0;return _0x39641b()[_0x13f9c2(0x13b4)](_0x256e9d[_0x13f9c2(0x2981)],{'id':_0x272730['resourceId']});});let _0x3cf255=null;_0x3cf255=[],_0x256e9d['ivrCampaigns']['rows'][_0x280cd0(0xf90)](function(_0xecaa5d){const _0x56375a=_0x280cd0,_0x471eda=_0x39641b()['find'](_0x256e9d[_0x56375a(0x2981)],{'id':Number(_0xecaa5d['SquareProjectId'])});_0x3cf255[_0x56375a(0x2785)](_0x471eda);}),!_0x39641b()['isEmpty'](_0x3cf255)&&_0x3cf255[_0x280cd0(0xf90)](function(_0xd7bae2){const _0x45200a=_0x280cd0;if(!_0x39641b()[_0x45200a(0x727)](_0x573364,['id',_0xd7bae2['id']])){const _0x1f60f5=_0x39641b()['find'](_0x256e9d[_0x45200a(0x2981)],{'id':_0xd7bae2['id']});_0x1f60f5['canSelect']=![],_0x573364[_0x45200a(0x2785)](_0x1f60f5);}}),_0x256e9d[_0x280cd0(0x2981)]=_0x573364;});}})[_0x3be93a(0x1c4)](function(_0xad8792){const _0x4d89d3=_0x3be93a;_0x4659ec[_0x4d89d3(0x218e)]({'title':_0xad8792[_0x4d89d3(0x291)]?_0x4d89d3(0xeb9)+_0xad8792['status']+_0x4d89d3(0x1657)+_0xad8792[_0x4d89d3(0xc22)]:_0x4d89d3(0x2101),'msg':_0xad8792[_0x4d89d3(0x25c)]?JSON['stringify'](_0xad8792[_0x4d89d3(0x25c)]):_0xad8792['toString']()});}),_0x4e5947[_0x3be93a(0x22b6)](_0x3be93a(0x1c60))?_0x2a2337[_0x3be93a(0x1ac8)][_0x3be93a(0xbf7)]({'fields':'id,name','sort':'name','IntervalId':'null'})[_0x3be93a(0x1d77)][_0x3be93a(0x1cb0)](function(_0x502dc0){const _0x4b5db6=_0x3be93a;_0x256e9d[_0x4b5db6(0x1ac8)]=_0x502dc0[_0x4b5db6(0x2214)]||[];})[_0x3be93a(0x1c4)](function(_0x4f86ba){const _0x35727c=_0x3be93a;_0x4659ec[_0x35727c(0x218e)]({'title':_0x4f86ba[_0x35727c(0x291)]?'API:'+_0x4f86ba[_0x35727c(0x291)]+'\x20-\x20'+_0x4f86ba[_0x35727c(0xc22)]:_0x35727c(0x1917),'msg':_0x4f86ba[_0x35727c(0x25c)]?JSON['stringify'](_0x4f86ba[_0x35727c(0x25c)]):_0x4f86ba[_0x35727c(0x147f)]()});}):_0x2a2337[_0x3be93a(0x1ac8)][_0x3be93a(0xbf7)]({'fields':'id,name','sort':_0x3be93a(0x16b6),'IntervalId':'null'})[_0x3be93a(0x1d77)][_0x3be93a(0x1cb0)](function(_0x8043ff){const _0x43baff=_0x3be93a;_0x256e9d[_0x43baff(0x1ac8)]=_0x8043ff[_0x43baff(0x2214)]||[];})[_0x3be93a(0x1cb0)](function(){const _0x57eaad=_0x3be93a;return _0x2a2337[_0x57eaad(0x2199)][_0x57eaad(0xbf7)]({'userProfileId':_0x256e9d[_0x57eaad(0xe76)][_0x57eaad(0x13c1)],'sectionId':0x3ec})[_0x57eaad(0x1d77)];})[_0x3be93a(0x1cb0)](function(_0x25f8d8){const _0x3fbc3b=_0x3be93a,_0x566855=_0x25f8d8&&_0x25f8d8[_0x3fbc3b(0x2214)]?_0x25f8d8[_0x3fbc3b(0x2214)][0x0]:null;if(!_0x566855){const _0x543b4c=[];let _0x13f742=null;_0x256e9d[_0x3fbc3b(0x1218)]&&(_0x13f742=_0x39641b()[_0x3fbc3b(0x13b4)](_0x256e9d['interval'],{'id':Number(_0x256e9d[_0x3fbc3b(0x1218)][_0x3fbc3b(0x1a60)])}));for(let _0x444961=0x0;_0x444961<_0x256e9d['interval']['length'];_0x444961++){_0x13f742&&_0x256e9d[_0x3fbc3b(0x1ac8)][_0x444961]['id']===_0x13f742['id']&&(_0x256e9d[_0x3fbc3b(0x1ac8)][_0x444961]['canSelect']=![],_0x543b4c['push'](_0x256e9d[_0x3fbc3b(0x1ac8)][_0x444961]));}_0x256e9d[_0x3fbc3b(0x1ac8)]=_0x543b4c;}else{if(!_0x566855[_0x3fbc3b(0x12f4)])return _0x2a2337['userProfileResource']['get']({'sectionId':_0x566855['id']})[_0x3fbc3b(0x1d77)][_0x3fbc3b(0x1cb0)](function(_0x3162ab){const _0x58784e=_0x3fbc3b,_0x42cba1=_0x39641b()[_0x58784e(0x1de2)](_0x3162ab[_0x58784e(0x2214)],function(_0x53c3db){const _0x59d361=_0x58784e;return _0x39641b()[_0x59d361(0x13b4)](_0x256e9d[_0x59d361(0x1ac8)],{'id':_0x53c3db['resourceId']});});let _0x426704=null;_0x256e9d[_0x58784e(0x1218)]&&(_0x426704=_0x39641b()[_0x58784e(0x13b4)](_0x256e9d[_0x58784e(0x1ac8)],{'id':Number(_0x256e9d['ivrCampaign']['IntervalId'])}));if(_0x426704&&!_0x39641b()['some'](_0x42cba1,['id',_0x426704['id']])){const _0x596384=_0x39641b()[_0x58784e(0x13b4)](_0x256e9d[_0x58784e(0x1ac8)],{'id':_0x426704['id']});_0x596384[_0x58784e(0x15da)]=![],_0x42cba1['push'](_0x596384);}_0x256e9d['interval']=_0x42cba1;});}})[_0x3be93a(0x1c4)](function(_0x332874){const _0x31c3e1=_0x3be93a;_0x4659ec[_0x31c3e1(0x218e)]({'title':_0x332874['status']?'API:'+_0x332874['status']+_0x31c3e1(0x1657)+_0x332874['statusText']:'SYSTEM:GETinterval','msg':_0x332874[_0x31c3e1(0x25c)]?JSON['stringify'](_0x332874[_0x31c3e1(0x25c)]):_0x332874['toString']()});});function _0x54ae73(_0x298a9e){_0x140cc9['go']('app.motiondialer.ivrCampaigns.edit',{'id':_0x298a9e['id'],'ivrCampaign':_0x298a9e,'crudPermissions':_0x256e9d['crudPermissions']});}function _0x51f4fd(_0x16ba29,_0x132e67){const _0x123767=_0x3be93a;_0x21607d['show']({'controller':_0x123767(0x1c3d),'controllerAs':'vm','templateUrl':_0x1842af,'parent':angular[_0x123767(0x1853)](_0x2f3e86[_0x123767(0x1ed9)]),'targetEvent':_0x132e67,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x16ba29,'ivrCampaigns':_0x256e9d['ivrCampaigns']?_0x256e9d[_0x123767(0x1fda)]['rows']:[],'crudPermissions':_0x256e9d['crudPermissions']}});}function _0x104552(_0x20bd5f,_0x2f7cfd){const _0x5e09b1=_0x3be93a;_0x21607d['show']({'controller':_0x5e09b1(0x1c8c),'controllerAs':'vm','templateUrl':_0x1fdde4,'parent':angular['element'](_0x2f3e86[_0x5e09b1(0x1ed9)]),'targetEvent':_0x2f7cfd,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x20bd5f,'ivrCampaigns':_0x256e9d['ivrCampaigns']?_0x256e9d[_0x5e09b1(0x1fda)][_0x5e09b1(0x2214)]:[],'crudPermissions':_0x256e9d[_0x5e09b1(0x1b1a)]}});}function _0x426678(_0x27c1d5,_0x5922b8){const _0x3e25f9=_0x3be93a;_0x21607d[_0x3e25f9(0xe27)]({'controller':_0x3e25f9(0xc3b),'controllerAs':'vm','templateUrl':_0x2f59b7,'parent':angular[_0x3e25f9(0x1853)](_0x2f3e86[_0x3e25f9(0x1ed9)]),'targetEvent':_0x5922b8,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x27c1d5,'ivrCampaigns':_0x256e9d[_0x3e25f9(0x1fda)]?_0x256e9d[_0x3e25f9(0x1fda)][_0x3e25f9(0x2214)]:[],'crudPermissions':_0x256e9d['crudPermissions']}});}function _0x5794af(_0x13dbb7,_0x3916be){const _0x5b14f9=_0x3be93a,_0xb1b571=_0x21607d['confirm']()[_0x5b14f9(0x1386)](_0x5b14f9(0x140b)+_0x39641b()[_0x5b14f9(0xa75)]('ivrCampaign')+'?')['htmlContent'](_0x5b14f9(0x204d)+(_0x13dbb7['name']||_0x5b14f9(0x1218))+''+'\x20will\x20be\x20deleted.')[_0x5b14f9(0x15ad)](_0x5b14f9(0x1bc9))[_0x5b14f9(0x728)](_0x3916be)['ok']('OK')[_0x5b14f9(0x696)](_0x5b14f9(0x24ba));_0x21607d['show'](_0xb1b571)['then'](function(){_0x58f0d0(_0x13dbb7);},function(){const _0x4ba370=_0x5b14f9;console[_0x4ba370(0x1b4f)](_0x4ba370(0x24ba));});}function _0x5f2cf4(){const _0x4afc60=_0x3be93a;if(_0x4e5947[_0x4afc60(0x22b6)]('admin'))_0x140cc9['go'](_0x4afc60(0x1369),{});else return _0x2a2337[_0x4afc60(0x2199)]['get']({'userProfileId':_0x4e5947[_0x4afc60(0x21e8)]()['userProfileId'],'sectionId':0x5e6})['$promise'][_0x4afc60(0x1cb0)](function(_0x307a7f){const _0x4d93d1=_0x4afc60,_0x1505f9=_0x307a7f&&_0x307a7f['rows']?_0x307a7f[_0x4d93d1(0x2214)][0x0]:null;_0x1505f9&&_0x1505f9[_0x4d93d1(0x281c)]?_0x140cc9['go']('app.motiondialer.realtime.ivr_campaigns',{}):_0x4659ec[_0x4d93d1(0x28c7)]({'title':_0x4e173f[_0x4d93d1(0x25cc)](_0x4d93d1(0x370)),'msg':_0x4e173f['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x4afc60(0x1c4)](function(_0x55de1d){const _0x2e7e43=_0x4afc60;_0x4659ec[_0x2e7e43(0x218e)]({'title':_0x55de1d[_0x2e7e43(0x291)]?_0x2e7e43(0xeb9)+_0x55de1d['status']+_0x2e7e43(0x1657)+_0x55de1d['statusText']:_0x2e7e43(0x17ba),'msg':_0x55de1d[_0x2e7e43(0x291)]?JSON['stringify'](_0x55de1d[_0x2e7e43(0x25c)]):_0x55de1d[_0x2e7e43(0x147f)]()});});}let _0x5de7cc=!![],_0x3c935a=0x1;_0x2f2c74[_0x3be93a(0x614)]('vm.query.filter',function(_0xeff2d8,_0x153dee){const _0x4e1e38=_0x3be93a;_0x5de7cc?_0x36dbea(function(){_0x5de7cc=![];}):(!_0x153dee&&(_0x3c935a=_0x256e9d[_0x4e1e38(0xae2)][_0x4e1e38(0x1c7b)]),_0xeff2d8!==_0x153dee&&(_0x256e9d['query'][_0x4e1e38(0x1c7b)]=0x1),!_0xeff2d8&&(_0x256e9d['query']['page']=_0x3c935a),_0x256e9d[_0x4e1e38(0xe4b)]());});function _0x377a1d(_0xe28fbd){const _0xd428e2=_0x3be93a;_0x256e9d[_0xd428e2(0x1fda)]=_0xe28fbd||{'count':0x0,'rows':[]};}function _0xfddf4f(){const _0x366915=_0x3be93a;_0x256e9d[_0x366915(0xae2)]['offset']=(_0x256e9d[_0x366915(0xae2)][_0x366915(0x1c7b)]-0x1)*_0x256e9d[_0x366915(0xae2)]['limit'],_0x4e5947[_0x366915(0x22b6)](_0x366915(0x1c60))?_0x256e9d[_0x366915(0x2061)]=_0x2a2337[_0x366915(0x218c)]['get'](_0x256e9d[_0x366915(0xae2)],_0x377a1d)[_0x366915(0x1d77)]:(_0x256e9d[_0x366915(0xae2)]['id']=_0x256e9d['userProfile']['id'],_0x256e9d['query'][_0x366915(0x1f74)]=_0x366915(0x2525),_0x256e9d['promise']=_0x2a2337[_0x366915(0x44a)][_0x366915(0x1810)](_0x256e9d[_0x366915(0xae2)],_0x377a1d)['$promise']);}function _0x5606fa(_0x3f7552,_0x2287f4){const _0x4bef95=_0x3be93a;_0x21607d[_0x4bef95(0xe27)]({'controller':_0x4bef95(0x1f29),'controllerAs':'vm','templateUrl':_0x20c5fa,'parent':angular[_0x4bef95(0x1853)](_0x2f3e86[_0x4bef95(0x1ed9)]),'targetEvent':_0x3f7552,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x2287f4,'ivrCampaigns':_0x256e9d[_0x4bef95(0x1fda)][_0x4bef95(0x2214)],'license':_0x256e9d[_0x4bef95(0x8a5)],'setting':_0x256e9d[_0x4bef95(0x9ca)],'crudPermissions':_0x256e9d[_0x4bef95(0x1b1a)]}});}function _0x58f0d0(_0x4a9c76){const _0x3b1820=_0x3be93a;_0x2a2337[_0x3b1820(0x218c)]['delete']({'id':_0x4a9c76['id']})[_0x3b1820(0x1d77)]['then'](function(){const _0x161fee=_0x3b1820;_0x39641b()[_0x161fee(0x152a)](_0x256e9d['ivrCampaigns']['rows'],{'id':_0x4a9c76['id']}),_0x256e9d[_0x161fee(0x1fda)][_0x161fee(0x184d)]-=0x1,!_0x256e9d['ivrCampaigns']['rows']['length']&&_0x256e9d[_0x161fee(0xe4b)](),_0x4659ec['success']({'title':_0x39641b()['startCase'](_0x161fee(0x3c0))+_0x161fee(0x2663),'msg':_0x4a9c76[_0x161fee(0x16b6)]?_0x4a9c76[_0x161fee(0x16b6)]+_0x161fee(0x3f5):''});})[_0x3b1820(0x1c4)](function(_0x33d7b9){const _0x15d999=_0x3b1820;if(_0x33d7b9[_0x15d999(0x25c)]&&_0x33d7b9[_0x15d999(0x25c)]['errors']&&_0x33d7b9[_0x15d999(0x25c)][_0x15d999(0x1a7c)]['length']){_0x256e9d[_0x15d999(0x1a7c)]=_0x33d7b9[_0x15d999(0x25c)][_0x15d999(0x1a7c)]||[{'message':_0x33d7b9[_0x15d999(0x147f)](),'type':_0x15d999(0x20a1)}];for(let _0x453da3=0x0;_0x453da3<_0x33d7b9[_0x15d999(0x25c)]['errors'][_0x15d999(0xfd0)];_0x453da3++){_0x4659ec[_0x15d999(0x218e)]({'title':_0x33d7b9['data']['errors'][_0x453da3]['type'],'msg':_0x33d7b9[_0x15d999(0x25c)][_0x15d999(0x1a7c)][_0x453da3][_0x15d999(0x155e)]});}}else _0x4659ec[_0x15d999(0x218e)]({'title':_0x33d7b9['status']?'API:'+_0x33d7b9[_0x15d999(0x291)]+'\x20-\x20'+_0x33d7b9[_0x15d999(0xc22)]:_0x15d999(0x20a1),'msg':_0x33d7b9[_0x15d999(0x25c)]?JSON['stringify'](_0x33d7b9[_0x15d999(0x25c)]['message']):_0x33d7b9[_0x15d999(0x155e)]||_0x33d7b9[_0x15d999(0x147f)]()});});}function _0x35a041(){const _0x23f247=_0x3be93a,_0x2c49b4=angular['copy'](_0x256e9d[_0x23f247(0x619)]);return _0x256e9d[_0x23f247(0x619)]=[],_0x2c49b4;}function _0x145560(_0x17bc78){const _0x3996b2=_0x3be93a,_0x532803=_0x21607d['confirm']()[_0x3996b2(0x1386)](_0x3996b2(0x292b))[_0x3996b2(0x49e)](_0x3996b2(0x204d)+_0x256e9d['selectedIvrCampaigns'][_0x3996b2(0xfd0)]+'\x20selected'+_0x3996b2(0x1b6))[_0x3996b2(0x15ad)]('delete\x20IvrCampaigns')[_0x3996b2(0x728)](_0x17bc78)['ok']('OK')[_0x3996b2(0x696)](_0x3996b2(0x24ba));_0x21607d[_0x3996b2(0xe27)](_0x532803)[_0x3996b2(0x1cb0)](function(){const _0x4a5c77=_0x3996b2;_0x256e9d[_0x4a5c77(0x619)]['forEach'](function(_0x554e61){_0x58f0d0(_0x554e61);}),_0x256e9d[_0x4a5c77(0x619)]=[];});}function _0x518a91(){const _0x1ae191=_0x3be93a;_0x256e9d[_0x1ae191(0x619)]=[];}function _0x1b1a18(){const _0x19d995=_0x3be93a;_0x256e9d[_0x19d995(0x619)]=_0x256e9d[_0x19d995(0x1fda)]['rows'];}}const _0x37a751=_0x5a95bf;;_0x243c44['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x406),'$location','$mdDialog','$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0x1f65),_0x5537c6(0x17b8),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x243c44(_0x2fb1be,_0x492fc1,_0x150312,_0x273306,_0x362cbd,_0x5ae812,_0x1ed132,_0x10bcf7,_0x193026,_0x3c61c7,_0x342971,_0x565f5,_0x25ad41,_0x43e233){const _0x2b5975=_0x5537c6,_0x41689b=this;_0x41689b['currentUser']=_0x342971['getCurrentUser'](),_0x41689b[_0x2b5975(0x1a7c)]=[],_0x41689b[_0x2b5975(0x9ca)]=_0x25ad41,_0x41689b[_0x2b5975(0x8a5)]=_0x565f5,_0x41689b[_0x2b5975(0x1b1a)]=_0x43e233,_0x41689b['hasModulePermissions']={},_0x41689b[_0x2b5975(0x1b0c)]=_0x41689b[_0x2b5975(0x9ca)]&&_0x41689b[_0x2b5975(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x41689b[_0x2b5975(0x1386)]='MOTIONDIALER.EDIT_QUEUECAMPAIGN',_0x41689b[_0x2b5975(0x17b8)]=angular[_0x2b5975(0x17fe)](_0x193026),_0x41689b[_0x2b5975(0x1f65)]=_0x10bcf7,_0x41689b[_0x2b5975(0x158c)]=![];!_0x41689b[_0x2b5975(0x17b8)]&&(_0x41689b[_0x2b5975(0x17b8)]={'dialActive':!![],'type':_0x2b5975(0x895),'dialCheckDuplicateType':_0x2b5975(0x2017),'dialCutDigit':0x0,'autopause':'no','ringinuse':'no','timeoutrestart':'no','setinterfacevar':'no','setqueuevar':'no','setqueueentryvar':'no','dialOrderByScheduledAt':_0x2b5975(0x1a52),'dialGlobalInterval':'07:00-22:00,*,*,*','dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388,'dialMethod':_0x2b5975(0x875),'dialPowerLevel':0x1,'dialPredictiveOptimization':_0x2b5975(0xa99),'dialPredictiveOptimizationPercentage':0x3,'dialPredictiveInterval':0xa,'dialLimitQueue':0x0,'dialRandomLastDigitCallerIdNumber':0x0,'dialOriginateTimeout':0x1e,'dialQueueOptions':_0x2b5975(0x18e7),'dialQueueTimeout':0x3,'strategy':_0x2b5975(0x199),'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},_0x41689b[_0x2b5975(0x1386)]=_0x2b5975(0x1efb),_0x41689b[_0x2b5975(0x158c)]=!![]);_0x41689b[_0x2b5975(0x1a5f)]=_0x7c5a29,_0x41689b[_0x2b5975(0x70e)]=_0x44b845,_0x41689b[_0x2b5975(0x42f)]=_0x587a0e,_0x41689b['getDateFromString']=_0xf1db4a,_0x41689b[_0x2b5975(0xda0)]=_0x1e334a,_0x342971[_0x2b5975(0x22b6)](_0x2b5975(0x1c60))?_0x3c61c7[_0x2b5975(0x1ae0)][_0x2b5975(0xbf7)]({'fields':_0x2b5975(0x43c),'sort':_0x2b5975(0x16b6)})[_0x2b5975(0x1d77)][_0x2b5975(0x1cb0)](function(_0x2a4a5c){const _0x12d8d0=_0x2b5975;_0x41689b[_0x12d8d0(0x1363)]=_0x2a4a5c[_0x12d8d0(0x2214)]||[];})[_0x2b5975(0x1c4)](function(_0x1c9b1e){const _0x33745b=_0x2b5975;_0x1ed132[_0x33745b(0x218e)]({'title':_0x1c9b1e[_0x33745b(0x291)]?_0x33745b(0xeb9)+_0x1c9b1e[_0x33745b(0x291)]+_0x33745b(0x1657)+_0x1c9b1e[_0x33745b(0xc22)]:_0x33745b(0x14fc),'msg':_0x1c9b1e[_0x33745b(0x25c)]?JSON[_0x33745b(0x2701)](_0x1c9b1e[_0x33745b(0x25c)]):_0x1c9b1e[_0x33745b(0x147f)]()});}):_0x3c61c7[_0x2b5975(0x1ae0)][_0x2b5975(0xbf7)]({'fields':_0x2b5975(0x43c),'sort':_0x2b5975(0x16b6)})[_0x2b5975(0x1d77)][_0x2b5975(0x1cb0)](function(_0x335ebd){const _0x2404f3=_0x2b5975;_0x41689b[_0x2404f3(0x1363)]=_0x335ebd['rows']||[];})['then'](function(){const _0x1a4241=_0x2b5975;return _0x3c61c7[_0x1a4241(0x2199)][_0x1a4241(0xbf7)]({'userProfileId':_0x41689b[_0x1a4241(0xe76)][_0x1a4241(0x13c1)],'sectionId':0x3f3})[_0x1a4241(0x1d77)];})[_0x2b5975(0x1cb0)](function(_0x2f3ad1){const _0x40e6d3=_0x2b5975,_0x1a74a7=_0x2f3ad1&&_0x2f3ad1['rows']?_0x2f3ad1['rows'][0x0]:null;if(!_0x1a74a7){const _0xcff3df=[];let _0x436c71=null;_0x41689b[_0x40e6d3(0x17b8)]&&(_0x436c71=_0x39641b()[_0x40e6d3(0x13b4)](_0x41689b[_0x40e6d3(0x1363)],{'id':Number(_0x41689b[_0x40e6d3(0x17b8)][_0x40e6d3(0x7ab)])}));for(let _0x1944bc=0x0;_0x1944bc<_0x41689b[_0x40e6d3(0x1363)][_0x40e6d3(0xfd0)];_0x1944bc++){_0x436c71&&_0x41689b[_0x40e6d3(0x1363)][_0x1944bc]['id']===_0x436c71['id']&&(_0x41689b['trunks'][_0x1944bc]['canSelect']=![],_0xcff3df['push'](_0x41689b[_0x40e6d3(0x1363)][_0x1944bc]));}_0x41689b[_0x40e6d3(0x1363)]=_0xcff3df;}else{if(!_0x1a74a7['autoAssociation'])return _0x3c61c7['userProfileResource'][_0x40e6d3(0xbf7)]({'sectionId':_0x1a74a7['id']})['$promise'][_0x40e6d3(0x1cb0)](function(_0x573ede){const _0x651ea5=_0x40e6d3,_0x155fa0=_0x39641b()[_0x651ea5(0x1de2)](_0x573ede[_0x651ea5(0x2214)],function(_0x2f1767){const _0x26f1bb=_0x651ea5;return _0x39641b()[_0x26f1bb(0x13b4)](_0x41689b[_0x26f1bb(0x1363)],{'id':_0x2f1767[_0x26f1bb(0x2982)]});});let _0x49afa6=null;_0x41689b['queueCampaign']&&(_0x49afa6=_0x39641b()[_0x651ea5(0x13b4)](_0x41689b[_0x651ea5(0x1363)],{'id':Number(_0x41689b[_0x651ea5(0x17b8)]['TrunkId'])}));if(_0x49afa6&&!_0x39641b()[_0x651ea5(0x727)](_0x155fa0,['id',_0x49afa6['id']])){const _0x218b4b=_0x39641b()[_0x651ea5(0x13b4)](_0x41689b[_0x651ea5(0x1363)],{'id':_0x49afa6['id']});_0x218b4b[_0x651ea5(0x15da)]=![],_0x155fa0[_0x651ea5(0x2785)](_0x218b4b);}_0x41689b['trunks']=_0x155fa0;});}})['catch'](function(_0x3f1c4f){const _0x255d31=_0x2b5975;_0x1ed132['error']({'title':_0x3f1c4f[_0x255d31(0x291)]?_0x255d31(0xeb9)+_0x3f1c4f['status']+_0x255d31(0x1657)+_0x3f1c4f['statusText']:'SYSTEM:GETtrunks','msg':_0x3f1c4f[_0x255d31(0x25c)]?JSON['stringify'](_0x3f1c4f['data']):_0x3f1c4f[_0x255d31(0x147f)]()});}),_0x342971[_0x2b5975(0x22b6)](_0x2b5975(0x1c60))?_0x3c61c7[_0x2b5975(0x1ac8)][_0x2b5975(0xbf7)]({'fields':'id,name','sort':'name','IntervalId':_0x2b5975(0xd38)})[_0x2b5975(0x1d77)]['then'](function(_0x5e3a26){const _0x531fdd=_0x2b5975;_0x41689b[_0x531fdd(0x1ac8)]=_0x5e3a26[_0x531fdd(0x2214)]||[];})[_0x2b5975(0x1c4)](function(_0x18dbf9){const _0x2fab60=_0x2b5975;_0x1ed132['error']({'title':_0x18dbf9[_0x2fab60(0x291)]?'API:'+_0x18dbf9[_0x2fab60(0x291)]+_0x2fab60(0x1657)+_0x18dbf9['statusText']:'SYSTEM:GET_INTERVAL','msg':_0x18dbf9[_0x2fab60(0x25c)]?JSON[_0x2fab60(0x2701)](_0x18dbf9['data']):_0x18dbf9[_0x2fab60(0x147f)]()});}):_0x3c61c7[_0x2b5975(0x1ac8)][_0x2b5975(0xbf7)]({'fields':_0x2b5975(0x43c),'sort':_0x2b5975(0x16b6),'IntervalId':_0x2b5975(0xd38)})[_0x2b5975(0x1d77)]['then'](function(_0x4ea345){const _0x4afd0a=_0x2b5975;_0x41689b[_0x4afd0a(0x1ac8)]=_0x4ea345[_0x4afd0a(0x2214)]||[];})['then'](function(){const _0x27f129=_0x2b5975;return _0x3c61c7[_0x27f129(0x2199)][_0x27f129(0xbf7)]({'userProfileId':_0x41689b[_0x27f129(0xe76)]['userProfileId'],'sectionId':0x3ec})[_0x27f129(0x1d77)];})[_0x2b5975(0x1cb0)](function(_0x53d938){const _0x3d54d3=_0x2b5975,_0x381231=_0x53d938&&_0x53d938[_0x3d54d3(0x2214)]?_0x53d938['rows'][0x0]:null;if(!_0x381231){const _0x2c4157=[];let _0x2e8e6d=null;_0x41689b[_0x3d54d3(0x17b8)]&&(_0x2e8e6d=_0x39641b()[_0x3d54d3(0x13b4)](_0x41689b[_0x3d54d3(0x1ac8)],{'id':Number(_0x41689b[_0x3d54d3(0x17b8)][_0x3d54d3(0x1a60)])}));for(let _0x13fdd7=0x0;_0x13fdd7<_0x41689b[_0x3d54d3(0x1ac8)]['length'];_0x13fdd7++){_0x2e8e6d&&_0x41689b[_0x3d54d3(0x1ac8)][_0x13fdd7]['id']===_0x2e8e6d['id']&&(_0x41689b['interval'][_0x13fdd7]['canSelect']=![],_0x2c4157[_0x3d54d3(0x2785)](_0x41689b[_0x3d54d3(0x1ac8)][_0x13fdd7]));}_0x41689b[_0x3d54d3(0x1ac8)]=_0x2c4157;}else{if(!_0x381231[_0x3d54d3(0x12f4)])return _0x3c61c7[_0x3d54d3(0x1198)][_0x3d54d3(0xbf7)]({'sectionId':_0x381231['id']})[_0x3d54d3(0x1d77)][_0x3d54d3(0x1cb0)](function(_0x4a3e85){const _0x3cf10b=_0x3d54d3,_0x3a8cc1=_0x39641b()[_0x3cf10b(0x1de2)](_0x4a3e85[_0x3cf10b(0x2214)],function(_0x379420){const _0x1f1dc5=_0x3cf10b;return _0x39641b()[_0x1f1dc5(0x13b4)](_0x41689b[_0x1f1dc5(0x1ac8)],{'id':_0x379420[_0x1f1dc5(0x2982)]});});let _0x171c64=null;_0x41689b[_0x3cf10b(0x17b8)]&&(_0x171c64=_0x39641b()[_0x3cf10b(0x13b4)](_0x41689b[_0x3cf10b(0x1ac8)],{'id':Number(_0x41689b[_0x3cf10b(0x17b8)]['IntervalId'])}));if(_0x171c64&&!_0x39641b()['some'](_0x3a8cc1,['id',_0x171c64['id']])){const _0x9d90bc=_0x39641b()[_0x3cf10b(0x13b4)](_0x41689b[_0x3cf10b(0x1ac8)],{'id':_0x171c64['id']});_0x9d90bc[_0x3cf10b(0x15da)]=![],_0x3a8cc1[_0x3cf10b(0x2785)](_0x9d90bc);}_0x41689b[_0x3cf10b(0x1ac8)]=_0x3a8cc1;});}})[_0x2b5975(0x1c4)](function(_0x1c6bcb){const _0x192608=_0x2b5975;_0x1ed132[_0x192608(0x218e)]({'title':_0x1c6bcb['status']?'API:'+_0x1c6bcb['status']+_0x192608(0x1657)+_0x1c6bcb[_0x192608(0xc22)]:_0x192608(0x1b58),'msg':_0x1c6bcb[_0x192608(0x25c)]?JSON[_0x192608(0x2701)](_0x1c6bcb[_0x192608(0x25c)]):_0x1c6bcb[_0x192608(0x147f)]()});});function _0x7c5a29(){const _0x2a41bc=_0x2b5975;_0x41689b[_0x2a41bc(0x1a7c)]=[],_0x3c61c7[_0x2a41bc(0x26b3)][_0x2a41bc(0x1c3f)](_0x41689b[_0x2a41bc(0x17b8)])[_0x2a41bc(0x1d77)][_0x2a41bc(0x1cb0)](function(_0x1303f8){const _0x243d97=_0x2a41bc;_0x41689b[_0x243d97(0x1f65)]['unshift'](_0x1303f8[_0x243d97(0x19b2)]()),_0x1ed132['success']({'title':'QueueCampaign\x20properly\x20created','msg':_0x41689b[_0x243d97(0x17b8)][_0x243d97(0x16b6)]?_0x41689b[_0x243d97(0x17b8)][_0x243d97(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x1e334a(_0x1303f8);})[_0x2a41bc(0x1c4)](function(_0x398bd3){const _0x24ebcf=_0x2a41bc;if(_0x398bd3[_0x24ebcf(0x25c)]&&_0x398bd3[_0x24ebcf(0x25c)]['errors']&&_0x398bd3[_0x24ebcf(0x25c)][_0x24ebcf(0x1a7c)][_0x24ebcf(0xfd0)]){_0x41689b[_0x24ebcf(0x1a7c)]=_0x398bd3[_0x24ebcf(0x25c)]['errors']||[{'message':_0x398bd3[_0x24ebcf(0x147f)](),'type':'api.voiceQueue.save'}];for(let _0x5d8e8e=0x0;_0x5d8e8e<_0x398bd3[_0x24ebcf(0x25c)]['errors'][_0x24ebcf(0xfd0)];_0x5d8e8e+=0x1){_0x1ed132[_0x24ebcf(0x218e)]({'title':_0x398bd3['data'][_0x24ebcf(0x1a7c)][_0x5d8e8e][_0x24ebcf(0x66a)],'msg':_0x398bd3['data'][_0x24ebcf(0x1a7c)][_0x5d8e8e]['message']});}}else _0x1ed132[_0x24ebcf(0x218e)]({'title':_0x398bd3[_0x24ebcf(0x291)]?_0x24ebcf(0xeb9)+_0x398bd3[_0x24ebcf(0x291)]+'\x20-\x20'+_0x398bd3[_0x24ebcf(0xc22)]:_0x24ebcf(0x1bb),'msg':_0x398bd3[_0x24ebcf(0x25c)]?JSON[_0x24ebcf(0x2701)](_0x398bd3[_0x24ebcf(0x25c)][_0x24ebcf(0x155e)]):_0x398bd3[_0x24ebcf(0x147f)]()});});}function _0x44b845(){const _0x30bba7=_0x2b5975;_0x41689b[_0x30bba7(0x1a7c)]=[],_0x3c61c7[_0x30bba7(0x26b3)][_0x30bba7(0x687)]({'id':_0x41689b[_0x30bba7(0x17b8)]['id']},_0x41689b[_0x30bba7(0x17b8)])['$promise'][_0x30bba7(0x1cb0)](function(_0x3eb232){const _0x5c74a7=_0x30bba7,_0x28552e=_0x39641b()[_0x5c74a7(0x13b4)](_0x41689b['queueCampaigns'],{'id':_0x3eb232['id']});_0x28552e&&_0x39641b()['merge'](_0x28552e,_0x39641b()['pick'](_0x3eb232[_0x5c74a7(0x19b2)](),_0x39641b()[_0x5c74a7(0x1be5)](_0x28552e))),_0x1ed132[_0x5c74a7(0x829)]({'title':_0x5c74a7(0x28d3),'msg':_0x41689b[_0x5c74a7(0x17b8)][_0x5c74a7(0x16b6)]?_0x41689b[_0x5c74a7(0x17b8)]['name']+'\x20has\x20been\x20saved!':''}),_0x1e334a(_0x3eb232);})['catch'](function(_0x19840f){const _0x22215d=_0x30bba7;if(_0x19840f[_0x22215d(0x25c)]&&_0x19840f['data']['errors']&&_0x19840f[_0x22215d(0x25c)]['errors'][_0x22215d(0xfd0)]){_0x41689b[_0x22215d(0x1a7c)]=_0x19840f[_0x22215d(0x25c)][_0x22215d(0x1a7c)]||[{'message':_0x19840f['toString'](),'type':'api.voiceQueue.update'}];for(let _0x9e3c83=0x0;_0x9e3c83<_0x19840f['data'][_0x22215d(0x1a7c)][_0x22215d(0xfd0)];_0x9e3c83++){_0x1ed132[_0x22215d(0x218e)]({'title':_0x19840f[_0x22215d(0x25c)][_0x22215d(0x1a7c)][_0x9e3c83][_0x22215d(0x66a)],'msg':_0x19840f['data'][_0x22215d(0x1a7c)][_0x9e3c83][_0x22215d(0x155e)]});}}else _0x1ed132['error']({'title':_0x19840f['status']?_0x22215d(0xeb9)+_0x19840f[_0x22215d(0x291)]+_0x22215d(0x1657)+_0x19840f[_0x22215d(0xc22)]:_0x22215d(0x2396),'msg':_0x19840f[_0x22215d(0x25c)]?JSON['stringify'](_0x19840f[_0x22215d(0x25c)][_0x22215d(0x155e)]):_0x19840f['toString']()});});}function _0x587a0e(_0x2bfc37){const _0x55d947=_0x2b5975;_0x41689b[_0x55d947(0x1a7c)]=[];const _0x117991=_0x273306[_0x55d947(0x1551)]()['title']('Are\x20you\x20sure?')[_0x55d947(0x862)](_0x55d947(0x88a))['ariaLabel'](_0x55d947(0x3f6))['ok'](_0x55d947(0x2594))[_0x55d947(0x696)](_0x55d947(0xde1))['targetEvent'](_0x2bfc37);_0x273306[_0x55d947(0xe27)](_0x117991)[_0x55d947(0x1cb0)](function(){const _0x194be9=_0x55d947;_0x3c61c7[_0x194be9(0x26b3)]['delete']({'id':_0x41689b[_0x194be9(0x17b8)]['id']})[_0x194be9(0x1d77)]['then'](function(){const _0x2c73a1=_0x194be9;_0x39641b()[_0x2c73a1(0x152a)](_0x41689b['queueCampaigns'],{'id':_0x41689b['queueCampaign']['id']}),_0x1ed132[_0x2c73a1(0x829)]({'title':_0x2c73a1(0x2971),'msg':(_0x41689b['queueCampaign'][_0x2c73a1(0x16b6)]||'queueCampaign')+'\x20has\x20been\x20deleted!'}),_0x1e334a(_0x41689b[_0x2c73a1(0x17b8)]);})[_0x194be9(0x1c4)](function(_0x96b4e9){const _0x490c0c=_0x194be9;if(_0x96b4e9[_0x490c0c(0x25c)]&&_0x96b4e9['data'][_0x490c0c(0x1a7c)]&&_0x96b4e9[_0x490c0c(0x25c)][_0x490c0c(0x1a7c)]['length']){_0x41689b[_0x490c0c(0x1a7c)]=_0x96b4e9['data']['errors']||[{'message':_0x96b4e9[_0x490c0c(0x147f)](),'type':_0x490c0c(0x1cb2)}];for(let _0xa9472=0x0;_0xa9472<_0x96b4e9[_0x490c0c(0x25c)][_0x490c0c(0x1a7c)][_0x490c0c(0xfd0)];_0xa9472++){_0x1ed132['error']({'title':_0x96b4e9[_0x490c0c(0x25c)][_0x490c0c(0x1a7c)][_0xa9472]['type'],'msg':_0x96b4e9['data']['errors'][_0xa9472]['message']});}}else _0x1ed132['error']({'title':_0x96b4e9[_0x490c0c(0x291)]?'API:'+_0x96b4e9[_0x490c0c(0x291)]+_0x490c0c(0x1657)+_0x96b4e9['statusText']:_0x490c0c(0x1cb2),'msg':_0x96b4e9[_0x490c0c(0x25c)]?JSON[_0x490c0c(0x2701)](_0x96b4e9['data'][_0x490c0c(0x155e)]):_0x96b4e9['message']||_0x96b4e9[_0x490c0c(0x147f)]()});});},function(){});}function _0xf1db4a(_0x4bbb80){return _0x4bbb80===null?undefined:new Date(_0x4bbb80);}function _0x1e334a(_0x920e28){const _0x406215=_0x2b5975;_0x273306[_0x406215(0x1426)](_0x920e28);}}const _0x28804f=_0x243c44;;_0x24b0f4[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty','api',_0x5537c6(0x17b8),_0x5537c6(0x1f65),_0x5537c6(0x217b),_0x5537c6(0x1ae),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x24b0f4(_0x3ff0ef,_0x4a8ba6,_0x96da09,_0x3cda8a,_0x21e9c7,_0x4a3b24,_0x239b86,_0xd54927,_0x3a89b2,_0x3ff071){const _0x5cb83b=_0x5537c6,_0x2ebaf0=this;_0x2ebaf0[_0x5cb83b(0xe76)]=_0x3a89b2[_0x5cb83b(0x21e8)](),_0x2ebaf0['queueCampaign']=_0x21e9c7,_0x2ebaf0[_0x5cb83b(0x1b1a)]=_0x3ff071,_0x2ebaf0[_0x5cb83b(0x1cbc)]=0x0,_0x2ebaf0['realtime']=_0x239b86,_0x2ebaf0['items']=[],_0x2ebaf0[_0x5cb83b(0x1372)]=[],_0x2ebaf0[_0x5cb83b(0x20bb)]=[],_0x2ebaf0[_0x5cb83b(0xbd5)]=[],_0x2ebaf0[_0x5cb83b(0x1456)]=[],_0x2ebaf0[_0x5cb83b(0x50c)]=![],_0x2ebaf0[_0x5cb83b(0x1a34)]=_0x2d2a25,_0x2ebaf0[_0x5cb83b(0x1dd5)]=_0xcaab7e,_0x2ebaf0[_0x5cb83b(0xda0)]=_0x21b263,_0x2ebaf0['dualMultiselectOptions']={'readOnly':!_0x2ebaf0[_0x5cb83b(0x1b1a)][_0x5cb83b(0xb3d)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5cb83b(0x16b6),'line1':_0x5cb83b(0x1d14),'line2':[_0x5cb83b(0x16b6),'internal'],'line3':_0x5cb83b(0x1cbc),'labelAll':_0xd54927[_0x5cb83b(0x25cc)](_0x5cb83b(0x21e7)),'labelSelected':_0xd54927[_0x5cb83b(0x25cc)](_0x5cb83b(0x1cd5)),'transferCallback':function(_0x5f568f,_0x647eb6){const _0x25394f=_0x5cb83b;_0x647eb6?_0x5f568f['forEach'](function(_0x1ef65d){const _0x2c7d11=a0_0x5cbd;_0x1ef65d[_0x2c7d11(0x1cbc)]=undefined;}):_0x5f568f[_0x25394f(0xf90)](function(_0x5c7b02){const _0x5e40a1=_0x25394f;_0x5c7b02[_0x5e40a1(0x1cbc)]=_0x5e40a1(0x455)+_0x2ebaf0[_0x5e40a1(0x1cbc)];});const _0x2b2335=_0x39641b()[_0x25394f(0x218a)](_0x2ebaf0[_0x25394f(0x1456)],_0x2ebaf0[_0x25394f(0x20bb)],function(_0x2add7d,_0x1b988e){const _0x51eb65=_0x25394f;return _0x2add7d['id']===_0x1b988e['id']&&_0x2add7d[_0x51eb65(0x1cbc)]===_0x1b988e[_0x51eb65(0x1cbc)];});_0x2ebaf0[_0x25394f(0x50c)]=_0x39641b()[_0x25394f(0xce9)](_0x2b2335)?![]:!![];}};function _0x2d2a25(){const _0x1ac602=_0x5cb83b;return _0x3a89b2['hasRole'](_0x1ac602(0x1c60))?_0x40c737()[_0x1ac602(0x1c4)](function(_0x5984a7){const _0x122cdb=_0x1ac602;_0x96da09[_0x122cdb(0x218e)]({'title':_0x5984a7[_0x122cdb(0x291)]?'API:'+_0x5984a7[_0x122cdb(0x291)]+_0x122cdb(0x1657)+_0x5984a7['statusText']:_0x122cdb(0x799),'msg':_0x5984a7[_0x122cdb(0x291)]?JSON[_0x122cdb(0x2701)](_0x5984a7[_0x122cdb(0x25c)]):_0x5984a7['toString']()});}):_0x25fc91()[_0x1ac602(0x1cb0)](function(_0x6190fe){const _0x406ac2=_0x1ac602;return _0x2ebaf0[_0x406ac2(0x1f74)]=_0x6190fe,_0x40c737();})[_0x1ac602(0x1c4)](function(_0x43bb8b){const _0x389948=_0x1ac602;_0x96da09['error']({'title':_0x43bb8b[_0x389948(0x291)]?'API:'+_0x43bb8b['status']+_0x389948(0x1657)+_0x43bb8b[_0x389948(0xc22)]:_0x389948(0x799),'msg':_0x43bb8b[_0x389948(0x291)]?JSON[_0x389948(0x2701)](_0x43bb8b[_0x389948(0x25c)]):_0x43bb8b[_0x389948(0x147f)]()});});}function _0x25fc91(){return _0x4a8ba6(function(_0x2f78d1,_0x19a8c2){const _0xcc3ba1=a0_0x5cbd;_0x3cda8a['userProfileSection'][_0xcc3ba1(0xbf7)]({'userProfileId':_0x2ebaf0[_0xcc3ba1(0xe76)][_0xcc3ba1(0x13c1)],'name':_0xcc3ba1(0x2536)})['$promise'][_0xcc3ba1(0x1cb0)](function(_0x296c57){const _0x1678f4=_0xcc3ba1,_0x1c22f8=_0x296c57&&_0x296c57[_0x1678f4(0x2214)]?_0x296c57['rows'][0x0]:null;_0x2f78d1(_0x1c22f8);})[_0xcc3ba1(0x1c4)](function(_0x4d333d){_0x19a8c2(_0x4d333d);});});}function _0x40c737(){return _0x4a8ba6(function(_0x37dc58,_0x4cdc1e){const _0x5ade15=a0_0x5cbd;return _0x4f11ee()['then'](function(_0x35397c){const _0x45c618=a0_0x5cbd;return _0x2ebaf0['items']=_0x35397c[_0x45c618(0x2214)]?_0x35397c[_0x45c618(0x2214)]:[],_0x3a89b2['hasRole']('admin')?_0x35397c:_0x2ebaf0[_0x45c618(0x1f74)]?_0x2ebaf0[_0x45c618(0x1f74)]['autoAssociation']?_0x35397c:_0x51fe0f():null;})['then'](function(_0x3e9dc5){const _0x8e1cb6=a0_0x5cbd,_0x24216b=_0x3e9dc5&&_0x3e9dc5[_0x8e1cb6(0x2214)]?_0x3e9dc5['rows']:[];return _0x2ebaf0[_0x8e1cb6(0x1372)]=_0x39641b()[_0x8e1cb6(0x1de2)](_0x24216b,function(_0x287bc5){const _0x5d926f=_0x8e1cb6;return _0x39641b()['find'](_0x2ebaf0[_0x5d926f(0x122f)],{'id':_0x3a89b2[_0x5d926f(0x22b6)](_0x5d926f(0x1c60))||_0x2ebaf0[_0x5d926f(0x1f74)][_0x5d926f(0x12f4)]?_0x287bc5['id']:_0x287bc5[_0x5d926f(0x2982)]});}),_0x2ebaf0[_0x8e1cb6(0xbd5)]=angular[_0x8e1cb6(0x17fe)](_0x2ebaf0[_0x8e1cb6(0x1372)]),_0x2ebaf0[_0x8e1cb6(0x122f)]['forEach'](function(_0x30ac2a){const _0x8deed6=_0x8e1cb6,_0x5c58b8=_0x39641b()[_0x8deed6(0x13b4)](_0x2ebaf0[_0x8deed6(0x1372)],{'id':_0x30ac2a['id']});_0x3a89b2[_0x8deed6(0x22b6)]('admin')?_0x30ac2a[_0x8deed6(0x1a4f)]=!![]:_0x30ac2a[_0x8deed6(0x1a4f)]=typeof _0x5c58b8!==_0x8deed6(0x16b5)?!![]:![];}),_0x3533e3();})[_0x5ade15(0x1cb0)](function(_0x3e9ddd){const _0x578998=_0x5ade15,_0x3fdc94=_0x3e9ddd&&_0x3e9ddd[_0x578998(0x2214)]?_0x3e9ddd[_0x578998(0x2214)]:[];_0x2ebaf0['selectedItems']=_0x39641b()[_0x578998(0x1de2)](_0x3fdc94,function(_0x244c7a){const _0x1ed924=_0x578998,_0x3fe72b=_0x39641b()[_0x1ed924(0x13b4)](_0x2ebaf0['items'],{'id':_0x244c7a['id']});return _0x3fe72b['penalty']=_0x244c7a['UserVoiceQueue']?_0x1ed924(0x455)+_0x244c7a['UserVoiceQueue']['penalty']:'',_0x3fe72b[_0x1ed924(0xdbd)]=typeof _0x244c7a['internal']!==_0x1ed924(0x16b5)?'<'+_0x244c7a[_0x1ed924(0xdbd)]+'>':'',_0x3fe72b;}),_0x2ebaf0[_0x578998(0x1456)]=angular[_0x578998(0x17fe)](_0x2ebaf0[_0x578998(0x20bb)]),_0x2ebaf0['dualMultiselectOptions'][_0x578998(0x20bb)]=_0x2ebaf0[_0x578998(0x20bb)],_0x2ebaf0[_0x578998(0x18c0)][_0x578998(0x122f)]=_0x39641b()[_0x578998(0x2128)](_0x2ebaf0[_0x578998(0x1372)],_0x2ebaf0['dualMultiselectOptions'][_0x578998(0x20bb)],'id'),_0x37dc58();})[_0x5ade15(0x1c4)](function(_0x51210a){_0x4cdc1e(_0x51210a);});});}function _0x51fe0f(){return _0x4a8ba6(function(_0x43fa63,_0x62869){const _0x5864d7=a0_0x5cbd;return _0x3cda8a[_0x5864d7(0x1198)][_0x5864d7(0xbf7)]({'sectionId':_0x2ebaf0['section']['id'],'nolimit':!![]})[_0x5864d7(0x1d77)][_0x5864d7(0x1cb0)](function(_0x278a56){_0x43fa63(_0x278a56);})[_0x5864d7(0x1c4)](function(_0x43be54){_0x62869(_0x43be54);});});}function _0x3533e3(){return _0x4a8ba6(function(_0x17621d,_0x2b6543){const _0x39d09e=a0_0x5cbd;return _0x3cda8a['voiceQueue'][_0x39d09e(0x2348)]({'id':_0x2ebaf0['queueCampaign']['id'],'fields':_0x39d09e(0x251e),'nolimit':!![],'role':_0x39d09e(0x1eff)})[_0x39d09e(0x1d77)][_0x39d09e(0x1cb0)](function(_0x48b1d4){_0x17621d(_0x48b1d4);})[_0x39d09e(0x1c4)](function(_0x5601eb){_0x2b6543(_0x5601eb);});});}function _0x4f11ee(){return _0x4a8ba6(function(_0x5025d5,_0x311208){const _0x1a7607=a0_0x5cbd;return _0x3cda8a['user'][_0x1a7607(0xbf7)]({'fields':_0x1a7607(0x251e),'nolimit':!![],'role':_0x1a7607(0x1eff)})['$promise'][_0x1a7607(0x1cb0)](function(_0x3793eb){_0x5025d5(_0x3793eb);})['catch'](function(_0x3ee4b5){_0x311208(_0x3ee4b5);});});}function _0x591474(_0x1d19e0){return _0x4a8ba6(function(_0x197ec6,_0x132b7a){const _0x1ad26c=a0_0x5cbd;if(_0x39641b()[_0x1ad26c(0xce9)](_0x1d19e0))_0x197ec6();else{const _0x53e806=[],_0x2574cd=_0x39641b()[_0x1ad26c(0x1374)](_0x1d19e0,_0x1ad26c(0x1cbc));for(let _0x19d183=0x0;_0x19d183'+'\x20will\x20be\x20deleted.')[_0x5d128b(0x15ad)](_0x5d128b(0x72e))[_0x5d128b(0x728)](_0xf4538a)['ok']('OK')[_0x5d128b(0x696)](_0x5d128b(0x24ba));_0x3539cd['show'](_0x1257e4)[_0x5d128b(0x1cb0)](function(){const _0xf31fa7=_0x5d128b;_0x57bafe[_0xf31fa7(0x1a32)][_0xf31fa7(0xf90)](function(_0x5f0f73){_0x7e3b07(_0x5f0f73);}),_0x57bafe[_0xf31fa7(0x1a32)]=[];});}let _0x4ce00b=!![],_0x2e94d2=0x1;_0x176876[_0x46cf50(0x614)](_0x46cf50(0xeb6),function(_0x46e289,_0x2f4f76){const _0x50c965=_0x46cf50;_0x4ce00b?_0x398acd(function(){_0x4ce00b=![];}):(!_0x2f4f76&&(_0x2e94d2=_0x57bafe[_0x50c965(0xae2)][_0x50c965(0x1c7b)]),_0x46e289!==_0x2f4f76&&(_0x57bafe[_0x50c965(0xae2)][_0x50c965(0x1c7b)]=0x1),!_0x46e289&&(_0x57bafe[_0x50c965(0xae2)][_0x50c965(0x1c7b)]=_0x2e94d2),_0x50f5ff());});}const _0x2ca263=_0x23f48f;;_0x5471c3['$inject']=['$cookies','$scope','$state','$q','$translate',_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1774)];function _0x5471c3(_0x1317c0,_0x3caba1,_0x2fd87f,_0x5e1ce7,_0x94692f,_0x562c80,_0x29839b,_0x3a13a6,_0x208e40,_0x3d0829,_0x20c17f){const _0x290e14=_0x5537c6,_0x21a12a=this;_0x21a12a[_0x290e14(0xe76)]=_0x20c17f[_0x290e14(0x21e8)](),_0x21a12a[_0x290e14(0x7eb)]={},_0x21a12a['queueCampaign']={},_0x21a12a[_0x290e14(0xff6)]={'count':0x0,'rows':[]},_0x21a12a[_0x290e14(0x242f)]=[],_0x21a12a['crudPermissions'],_0x21a12a[_0x290e14(0xae2)]={'fields':_0x290e14(0x97c),'sort':_0x290e14(0x7d0),'limit':0xa,'page':0x1},_0x21a12a[_0x290e14(0x1a8e)]=_0x5c06fd,_0x21a12a[_0x290e14(0xb25)]=_0x48f7ac,_0x21a12a['success']=_0xac0ea3,_0x21a12a['getQueueCampaignHopperFinals']=_0x52b860,_0x21a12a[_0x290e14(0x2116)]=_0x3973e7,_0x21a12a['deleteQueueCampaignHopperFinal']=_0x52baf1,_0x21a12a[_0x290e14(0x293b)]=_0x82ffb6,_0x21a12a[_0x290e14(0x25cf)]=_0x769993,_0x21a12a[_0x290e14(0x11cd)]=_0x49372c,_0x21a12a[_0x290e14(0x2938)]=_0x19e7b4,_0x21a12a[_0x290e14(0x505)]=_0x4dc67c,_0x21a12a[_0x290e14(0x1fb)]=_0x9193f5;function _0x5c06fd(_0x22c90f,_0x194fcf){const _0x13a30c=_0x290e14;_0x21a12a[_0x13a30c(0x17b8)]=_0x22c90f,_0x21a12a[_0x13a30c(0x1b1a)]=typeof _0x194fcf!==_0x13a30c(0x16b5)?_0x194fcf:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x21a12a[_0x13a30c(0xae2)]['VoiceQueueId']=_0x21a12a[_0x13a30c(0x17b8)]['id'],_0x21a12a[_0x13a30c(0xae2)]['id']=_0x21a12a[_0x13a30c(0x17b8)]['id'],_0x52b860();}function _0x48f7ac(_0x57b953,_0x478011){const _0x9d912d=_0x290e14,_0x36e678=_0x29839b[_0x9d912d(0x1551)]()['title'](_0x9d912d(0x264d))[_0x9d912d(0x49e)](_0x9d912d(0x204d)+(_0x57b953[_0x9d912d(0x16b6)]||_0x57b953['id']&&_0x39641b()[_0x9d912d(0x277)]('hopperFinal\x20#')+_0x57b953['id']||'hopperFinal')+_0x9d912d(0x1200)+_0x9d912d(0x1b6))[_0x9d912d(0x15ad)]('delete\x20hopperFinal')[_0x9d912d(0x728)](_0x478011)['ok']('OK')[_0x9d912d(0x696)](_0x9d912d(0x24ba));_0x29839b[_0x9d912d(0xe27)](_0x36e678)['then'](function(){_0x52baf1(_0x57b953);},function(){const _0x2f3b43=_0x9d912d;console[_0x2f3b43(0x1b4f)](_0x2f3b43(0x24ba));});}function _0xac0ea3(_0x4eb2d9){_0x21a12a['queueCampaignHopperFinals']=_0x4eb2d9||{'count':0x0,'rows':[]};}function _0x52b860(){const _0x1fc08d=_0x290e14;_0x21a12a['query'][_0x1fc08d(0x184b)]=(_0x21a12a[_0x1fc08d(0xae2)]['page']-0x1)*_0x21a12a[_0x1fc08d(0xae2)][_0x1fc08d(0x236)],_0x21a12a[_0x1fc08d(0x2061)]=_0x3d0829['voiceQueue'][_0x1fc08d(0x64e)](_0x21a12a[_0x1fc08d(0xae2)],_0xac0ea3)[_0x1fc08d(0x1d77)];}function _0x52baf1(_0x2d948a){const _0x150381=_0x290e14;_0x3d0829[_0x150381(0x20dd)][_0x150381(0x111d)]({'id':_0x2d948a['id']})['$promise']['then'](function(){const _0x54afa1=_0x150381;_0x39641b()[_0x54afa1(0x152a)](_0x21a12a['queueCampaignHopperFinals']['rows'],{'id':_0x2d948a['id']}),_0x21a12a['queueCampaignHopperFinals'][_0x54afa1(0x184d)]-=0x1,!_0x21a12a[_0x54afa1(0xff6)][_0x54afa1(0x2214)][_0x54afa1(0xfd0)]&&_0x52b860(),_0x208e40[_0x54afa1(0x829)]({'title':_0x54afa1(0xc60),'msg':_0x2d948a[_0x54afa1(0x16b6)]?_0x2d948a[_0x54afa1(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x150381(0x1c4)](function(_0xd07fff){const _0x4fc9d5=_0x150381;if(_0xd07fff['data']&&_0xd07fff[_0x4fc9d5(0x25c)]['errors']&&_0xd07fff[_0x4fc9d5(0x25c)][_0x4fc9d5(0x1a7c)][_0x4fc9d5(0xfd0)]){_0x21a12a[_0x4fc9d5(0x1a7c)]=_0xd07fff[_0x4fc9d5(0x25c)][_0x4fc9d5(0x1a7c)]||[{'message':_0xd07fff[_0x4fc9d5(0x147f)](),'type':_0x4fc9d5(0x272a)}];for(let _0x12e306=0x0;_0x12e306<_0xd07fff[_0x4fc9d5(0x25c)][_0x4fc9d5(0x1a7c)][_0x4fc9d5(0xfd0)];_0x12e306++){_0x208e40[_0x4fc9d5(0x218e)]({'title':_0xd07fff['data'][_0x4fc9d5(0x1a7c)][_0x12e306][_0x4fc9d5(0x66a)],'msg':_0xd07fff[_0x4fc9d5(0x25c)]['errors'][_0x12e306][_0x4fc9d5(0x155e)]});}}else _0x208e40[_0x4fc9d5(0x218e)]({'title':_0xd07fff['status']?_0x4fc9d5(0xeb9)+_0xd07fff[_0x4fc9d5(0x291)]+_0x4fc9d5(0x1657)+_0xd07fff[_0x4fc9d5(0xc22)]:_0x4fc9d5(0x272a),'msg':_0xd07fff['data']?JSON[_0x4fc9d5(0x2701)](_0xd07fff[_0x4fc9d5(0x25c)][_0x4fc9d5(0x155e)]):_0xd07fff[_0x4fc9d5(0x155e)]||_0xd07fff[_0x4fc9d5(0x147f)]()});});}function _0x3973e7(){const _0x3e316d=_0x290e14,_0x2cd65c=angular[_0x3e316d(0x17fe)](_0x21a12a[_0x3e316d(0x242f)]);return _0x21a12a[_0x3e316d(0x242f)]=[],_0x2cd65c;}function _0x82ffb6(_0x57bf22){const _0x246a98=_0x290e14,_0x56738c=_0x29839b[_0x246a98(0x1551)]()[_0x246a98(0x1386)](_0x246a98(0x943))['htmlContent'](''+_0x21a12a[_0x246a98(0x242f)][_0x246a98(0xfd0)]+_0x246a98(0x1d6c)+_0x246a98(0x1b6))['ariaLabel'](_0x246a98(0x578))['targetEvent'](_0x57bf22)['ok']('OK')[_0x246a98(0x696)]('CANCEL');_0x29839b[_0x246a98(0xe27)](_0x56738c)['then'](function(){const _0x51e0ef=_0x246a98;_0x21a12a[_0x51e0ef(0x242f)][_0x51e0ef(0xf90)](function(_0x589731){_0x52baf1(_0x589731);}),_0x21a12a[_0x51e0ef(0x242f)]=[];});}function _0x49372c(_0x5f5bad){const _0x14cc1b=_0x290e14;_0x3d0829[_0x14cc1b(0x145f)]['moveContactsQueueCampaignHopperFinal']({'id':_0x21a12a[_0x14cc1b(0xae2)]['id'],'state':_0x5f5bad})[_0x14cc1b(0x1d77)][_0x14cc1b(0x1cb0)](function(_0x5f4eb3){const _0x505677=_0x14cc1b;_0x39641b()[_0x505677(0x958)](_0x5f4eb3)&&_0x39641b()[_0x505677(0x958)](_0x5f4eb3[0x0])?_0x208e40['info']({'title':_0x505677(0x9ce),'msg':'0'}):_0x208e40[_0x505677(0x28c7)]({'title':_0x505677(0x9ce),'msg':JSON['stringify'](_0x5f4eb3[0x0][_0x505677(0xf17)])});})['catch'](function(_0x2f0e2f){const _0x7dde07=_0x14cc1b;_0x208e40[_0x7dde07(0x218e)]({'title':_0x2f0e2f[_0x7dde07(0x291)]?_0x7dde07(0xeb9)+_0x2f0e2f[_0x7dde07(0x291)]+_0x7dde07(0x1657)+_0x2f0e2f['statusText']:_0x7dde07(0x272a),'msg':_0x2f0e2f[_0x7dde07(0x25c)]?JSON[_0x7dde07(0x2701)](_0x2f0e2f[_0x7dde07(0x25c)][_0x7dde07(0x155e)]):_0x2f0e2f[_0x7dde07(0x155e)]||_0x2f0e2f[_0x7dde07(0x147f)]()});});}function _0x19e7b4(_0xc5da4a){const _0x5ddccf=_0x290e14;_0x3d0829[_0x5ddccf(0x145f)][_0x5ddccf(0x2938)]({'id':_0xc5da4a})[_0x5ddccf(0x1d77)][_0x5ddccf(0x1cb0)](function(_0x5ed83c){const _0x1ddec3=_0x5ddccf;_0x39641b()[_0x1ddec3(0x9c1)](_0x21a12a[_0x1ddec3(0x7eb)],_0x5ed83c[0x0]);})['catch'](function(_0x5411c4){const _0x269b85=_0x5ddccf;_0x208e40[_0x269b85(0x218e)]({'title':_0x5411c4[_0x269b85(0x291)]?_0x269b85(0xeb9)+_0x5411c4[_0x269b85(0x291)]+'\x20-\x20'+_0x5411c4[_0x269b85(0xc22)]:'SYSTEM:GETvoiceQueue','msg':_0x5411c4['data']?JSON[_0x269b85(0x2701)](_0x5411c4[_0x269b85(0x25c)][_0x269b85(0x155e)]):_0x5411c4['message']||_0x5411c4['toString']()});});}function _0x9193f5(_0x39a458){const _0x5f34f5=_0x290e14,_0xc1fbaf=_0x29839b[_0x5f34f5(0x1551)]()['title']('Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20selected\x20contacts?')['htmlContent'](_0x5f34f5(0x210d)+'\x20will\x20be\x20restored.')[_0x5f34f5(0x15ad)](_0x5f34f5(0x20b))['targetEvent'](_0x39a458)['ok']('OK')['cancel'](_0x5f34f5(0x24ba));_0x29839b[_0x5f34f5(0xe27)](_0xc1fbaf)[_0x5f34f5(0x1cb0)](function(){const _0x20a718=_0x5f34f5;_0x21a12a[_0x20a718(0x242f)][_0x20a718(0xf90)](function(_0xd742de){_0x769993(_0xd742de);}),_0x21a12a['selectedQueueCampaignHopperFinals']=[];});}function _0x4dc67c(_0x3d53c8,_0xadb39f){const _0x1347fb=_0x290e14,_0x5ad0b7=_0x29839b['confirm']()[_0x1347fb(0x1386)](_0x1347fb(0x1901))['htmlContent'](_0x1347fb(0x204d)+'Contact'+_0x1347fb(0x1200)+_0x1347fb(0x1031))[_0x1347fb(0x15ad)](_0x1347fb(0x7a1))[_0x1347fb(0x728)](_0xadb39f)['ok']('OK')[_0x1347fb(0x696)](_0x1347fb(0x24ba));_0x29839b['show'](_0x5ad0b7)['then'](function(){_0x769993(_0x3d53c8);},function(){const _0x56366c=_0x1347fb;console['log'](_0x56366c(0x24ba));});}function _0x572951(_0x3af6e6){const _0x49782f=_0x290e14,_0x28d8f5={};return _0x28d8f5[_0x49782f(0x1340)]=_0x3af6e6[_0x49782f(0x17d3)],_0x28d8f5[_0x49782f(0x2251)]=_0x543b5a()()[_0x49782f(0x1f31)](_0x49782f(0x2e8)),_0x28d8f5['countbusyretry']=0x0,_0x28d8f5['countcongestionretry']=0x0,_0x28d8f5[_0x49782f(0x23ba)]=0x0,_0x28d8f5[_0x49782f(0xace)]=0x0,_0x28d8f5['ContactId']=_0x3af6e6[_0x49782f(0xb96)],_0x28d8f5['ListId']=_0x3af6e6[_0x49782f(0x20a6)],_0x28d8f5[_0x49782f(0x21ab)]=_0x3af6e6['deleted']?null:_0x3af6e6['UserId'],_0x28d8f5['VoiceQueueId']=_0x3af6e6[_0x49782f(0x1116)],_0x28d8f5[_0x49782f(0x21c1)]=_0x3af6e6[_0x49782f(0x21c1)],_0x28d8f5['priority']=_0x3af6e6[_0x49782f(0x1858)]?0x3:0x2,_0x28d8f5['recallme']=_0x3af6e6[_0x49782f(0x1858)]?!![]:![],_0x28d8f5;}function _0x1f281d(_0x1e3e63){const _0x160041=_0x290e14,_0x38b8fe={};return _0x38b8fe[_0x160041(0x17d3)]=_0x1e3e63['calleridnum'],_0x38b8fe[_0x160041(0xbb5)]=_0x1e3e63[_0x160041(0xbb5)],_0x38b8fe[_0x160041(0x2251)]=_0x543b5a()()[_0x160041(0x1f31)](_0x160041(0x2e8)),_0x38b8fe[_0x160041(0x1969)]=_0x1e3e63[_0x160041(0x1969)],_0x38b8fe[_0x160041(0x1c8b)]=_0x1e3e63[_0x160041(0x1c8b)],_0x38b8fe[_0x160041(0x23ba)]=_0x1e3e63[_0x160041(0x23ba)],_0x38b8fe[_0x160041(0xace)]=_0x1e3e63[_0x160041(0xace)],_0x38b8fe[_0x160041(0xb96)]=_0x1e3e63[_0x160041(0xb96)],_0x38b8fe['ListId']=_0x1e3e63[_0x160041(0x20a6)],_0x38b8fe[_0x160041(0x21ab)]=_0x20c17f[_0x160041(0x21e8)]()['id'],_0x38b8fe[_0x160041(0x1116)]=_0x1e3e63['VoiceQueueId'],_0x38b8fe[_0x160041(0x21c1)]=_0x1e3e63[_0x160041(0x21c1)],_0x38b8fe[_0x160041(0x206e)]=_0x543b5a()()[_0x160041(0x1f31)]('YYYY-MM-DD\x20HH:mm:ss'),_0x38b8fe[_0x160041(0xfc3)]=!![],_0x38b8fe['state']=0x19,_0x38b8fe[_0x160041(0x448)]='Restored',_0x38b8fe[_0x160041(0x218c)]=_0x1e3e63[_0x160041(0x218c)],_0x38b8fe[_0x160041(0x1605)]=_0x1e3e63[_0x160041(0x1116)]?_0x160041(0x11cf):_0x160041(0x242e),_0x38b8fe;}function _0x769993(_0x528ae2){const _0x22c2cb=_0x290e14;_0x3d0829[_0x22c2cb(0x145f)]['checkContactHopper'](_0x528ae2)['$promise'][_0x22c2cb(0x1cb0)](function(_0xd7342){const _0x24b96c=_0x22c2cb;_0x208e40['info']({'title':_0x24b96c(0x109a),'msg':_0x24b96c(0x615)+_0xd7342[_0x24b96c(0xb96)]});})['catch'](function(_0x4fa252){const _0x487d4a=_0x22c2cb;_0x4fa252[_0x487d4a(0x25c)]==='Not\x20Found'?_0x3d0829['cmHopper'][_0x487d4a(0x1c3f)](_0x572951(_0x528ae2))['$promise']['then'](function(_0xab2c05){const _0x4bb5ad=_0x487d4a;_0x208e40['info']({'title':'Restored\x20Contact','msg':'Contact\x20ID\x20'+_0xab2c05[_0x4bb5ad(0xb96)]}),_0xab2c05[_0x4bb5ad(0xb96)]&&_0x3d0829[_0x4bb5ad(0x1e15)]['save'](_0x1f281d(_0x528ae2));})[_0x487d4a(0x1c4)](function(_0x13410c){const _0x4638aa=_0x487d4a;!_0x39641b()['isNil'](_0x13410c[_0x4638aa(0x25c)])&&_0x13410c['data']['message']===_0x4638aa(0xb89)?_0x208e40[_0x4638aa(0x28c7)]({'title':_0x4638aa(0x109a),'msg':_0x4638aa(0x615)+_0x528ae2[_0x4638aa(0xb96)]}):_0x208e40[_0x4638aa(0x218e)]({'title':_0x13410c['status']?_0x4638aa(0xeb9)+_0x13410c[_0x4638aa(0x291)]+'\x20-\x20'+_0x13410c[_0x4638aa(0xc22)]:'SYSTEM:GETvoiceQueue','msg':_0x13410c['data']?JSON[_0x4638aa(0x2701)](_0x13410c[_0x4638aa(0x25c)][_0x4638aa(0x155e)]):_0x13410c['message']||_0x13410c[_0x4638aa(0x147f)]()});}):_0x208e40[_0x487d4a(0x218e)]({'title':_0x4fa252['status']?_0x487d4a(0xeb9)+_0x4fa252[_0x487d4a(0x291)]+_0x487d4a(0x1657)+_0x4fa252[_0x487d4a(0xc22)]:_0x487d4a(0x272a),'msg':_0x4fa252[_0x487d4a(0x25c)]?JSON[_0x487d4a(0x2701)](_0x4fa252['data']['message']):_0x4fa252[_0x487d4a(0x155e)]||_0x4fa252['toString']()});});}let _0x259a67=!![],_0x2665cc=0x1;_0x3caba1['$watch'](_0x290e14(0xeb6),function(_0x4add7b,_0x477662){const _0x24bb73=_0x290e14;_0x259a67?_0x562c80(function(){_0x259a67=![];}):(!_0x477662&&(_0x2665cc=_0x21a12a[_0x24bb73(0xae2)][_0x24bb73(0x1c7b)]),_0x4add7b!==_0x477662&&(_0x21a12a['query'][_0x24bb73(0x1c7b)]=0x1),!_0x4add7b&&(_0x21a12a[_0x24bb73(0xae2)]['page']=_0x2665cc),_0x52b860());});}const _0x349af5=_0x5471c3;;_0x42b20f['$inject']=[_0x5537c6(0x173),_0x5537c6(0x1463),_0x5537c6(0x406),'$q',_0x5537c6(0x1ae),_0x5537c6(0x2168),_0x5537c6(0xcb9),'$document','toasty',_0x5537c6(0x142b),_0x5537c6(0x1774)];function _0x42b20f(_0x275e7d,_0xe776d7,_0x3ec53a,_0x51a6d4,_0x489e66,_0x48e312,_0x35e408,_0x401021,_0x16243f,_0x55bc31,_0x27c754){const _0x211306=_0x5537c6,_0x55c97f=this;_0x55c97f[_0x211306(0xe76)]=_0x27c754[_0x211306(0x21e8)](),_0x55c97f[_0x211306(0x17b8)]={},_0x55c97f[_0x211306(0x1d8e)]={'count':0x0,'rows':[]},_0x55c97f[_0x211306(0x4ac)]=[],_0x55c97f['crudPermissions'],_0x55c97f['query']={'fields':_0x211306(0xaff),'sort':_0x211306(0x7d0),'limit':0xa,'page':0x1},_0x55c97f[_0x211306(0x1a8e)]=_0x598caf,_0x55c97f['deleteConfirm']=_0x22463c,_0x55c97f[_0x211306(0x829)]=_0x11eaf5,_0x55c97f[_0x211306(0xeca)]=_0x355493,_0x55c97f[_0x211306(0x2011)]=_0x46dcbf,_0x55c97f[_0x211306(0x8c7)]=_0x23568d,_0x55c97f['deleteSelectedQueueCampaignHopperHistories']=_0x4c611b;function _0x598caf(_0x57a4a0,_0x541419){const _0x1b91ed=_0x211306;_0x55c97f[_0x1b91ed(0x17b8)]=_0x57a4a0,_0x55c97f[_0x1b91ed(0x1b1a)]=typeof _0x541419!=='undefined'?_0x541419:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x55c97f[_0x1b91ed(0xae2)]['VoiceQueueId']=_0x55c97f['queueCampaign']['id'],_0x55c97f[_0x1b91ed(0xae2)]['id']=_0x55c97f[_0x1b91ed(0x17b8)]['id'],_0x355493();}function _0x22463c(_0x4a7f50,_0x4fce1d){const _0x487196=_0x211306,_0x3f1464=_0x35e408[_0x487196(0x1551)]()[_0x487196(0x1386)](_0x487196(0x5d6))[_0x487196(0x49e)](''+(_0x4a7f50[_0x487196(0x16b6)]||_0x4a7f50['id']&&_0x39641b()[_0x487196(0x277)](_0x487196(0x7a8))+_0x4a7f50['id']||'hopperHistory')+_0x487196(0x1200)+'\x20will\x20be\x20deleted.')[_0x487196(0x15ad)](_0x487196(0x16d9))[_0x487196(0x728)](_0x4fce1d)['ok']('OK')[_0x487196(0x696)](_0x487196(0x24ba));_0x35e408[_0x487196(0xe27)](_0x3f1464)[_0x487196(0x1cb0)](function(){_0x23568d(_0x4a7f50);},function(){const _0xfc1868=_0x487196;console[_0xfc1868(0x1b4f)](_0xfc1868(0x24ba));});}function _0x11eaf5(_0x2f0700){const _0x4a6320=_0x211306;_0x55c97f[_0x4a6320(0x1d8e)]=_0x2f0700||{'count':0x0,'rows':[]};}function _0x355493(){const _0x12bf5f=_0x211306;_0x55c97f[_0x12bf5f(0xae2)][_0x12bf5f(0x184b)]=(_0x55c97f[_0x12bf5f(0xae2)][_0x12bf5f(0x1c7b)]-0x1)*_0x55c97f[_0x12bf5f(0xae2)]['limit'],_0x55c97f[_0x12bf5f(0x2061)]=_0x55bc31['voiceQueue'][_0x12bf5f(0x116a)](_0x55c97f['query'],_0x11eaf5)[_0x12bf5f(0x1d77)];}function _0x23568d(_0x2787de){const _0x557099=_0x211306;_0x55bc31[_0x557099(0x3db)][_0x557099(0x111d)]({'id':_0x2787de['id']})[_0x557099(0x1d77)][_0x557099(0x1cb0)](function(){const _0x16619f=_0x557099;_0x39641b()[_0x16619f(0x152a)](_0x55c97f['queueCampaignHopperHistories']['rows'],{'id':_0x2787de['id']}),_0x55c97f[_0x16619f(0x1d8e)][_0x16619f(0x184d)]-=0x1,!_0x55c97f[_0x16619f(0x1d8e)][_0x16619f(0x2214)][_0x16619f(0xfd0)]&&_0x355493(),_0x16243f[_0x16619f(0x829)]({'title':'HopperHistory\x20deleted!','msg':_0x2787de['name']?_0x2787de[_0x16619f(0x16b6)]+_0x16619f(0x3f5):''});})[_0x557099(0x1c4)](function(_0xafbc34){const _0xf6fd30=_0x557099;if(_0xafbc34[_0xf6fd30(0x25c)]&&_0xafbc34[_0xf6fd30(0x25c)]['errors']&&_0xafbc34[_0xf6fd30(0x25c)][_0xf6fd30(0x1a7c)][_0xf6fd30(0xfd0)]){_0x55c97f['errors']=_0xafbc34[_0xf6fd30(0x25c)][_0xf6fd30(0x1a7c)]||[{'message':_0xafbc34[_0xf6fd30(0x147f)](),'type':_0xf6fd30(0x272a)}];for(let _0x336fce=0x0;_0x336fce<_0xafbc34[_0xf6fd30(0x25c)][_0xf6fd30(0x1a7c)][_0xf6fd30(0xfd0)];_0x336fce++){_0x16243f['error']({'title':_0xafbc34[_0xf6fd30(0x25c)][_0xf6fd30(0x1a7c)][_0x336fce]['type'],'msg':_0xafbc34[_0xf6fd30(0x25c)][_0xf6fd30(0x1a7c)][_0x336fce][_0xf6fd30(0x155e)]});}}else _0x16243f[_0xf6fd30(0x218e)]({'title':_0xafbc34[_0xf6fd30(0x291)]?_0xf6fd30(0xeb9)+_0xafbc34[_0xf6fd30(0x291)]+_0xf6fd30(0x1657)+_0xafbc34[_0xf6fd30(0xc22)]:'SYSTEM:GETvoiceQueue','msg':_0xafbc34['data']?JSON['stringify'](_0xafbc34[_0xf6fd30(0x25c)][_0xf6fd30(0x155e)]):_0xafbc34[_0xf6fd30(0x155e)]||_0xafbc34['toString']()});});}function _0x46dcbf(){const _0x500f8b=_0x211306,_0xc4d888=angular[_0x500f8b(0x17fe)](_0x55c97f[_0x500f8b(0x4ac)]);return _0x55c97f[_0x500f8b(0x4ac)]=[],_0xc4d888;}function _0x4c611b(_0x7ff517){const _0x571b30=_0x211306,_0x1c324f=_0x35e408[_0x571b30(0x1551)]()[_0x571b30(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperHistories?')[_0x571b30(0x49e)](''+_0x55c97f[_0x571b30(0x4ac)][_0x571b30(0xfd0)]+_0x571b30(0x1d6c)+_0x571b30(0x1b6))[_0x571b30(0x15ad)](_0x571b30(0x1bb5))[_0x571b30(0x728)](_0x7ff517)['ok']('OK')[_0x571b30(0x696)]('CANCEL');_0x35e408[_0x571b30(0xe27)](_0x1c324f)['then'](function(){const _0x4f017c=_0x571b30;_0x55c97f['selectedQueueCampaignHopperHistories'][_0x4f017c(0xf90)](function(_0xfa18ac){_0x23568d(_0xfa18ac);}),_0x55c97f[_0x4f017c(0x4ac)]=[];});}let _0x41c6a8=!![],_0x544307=0x1;_0xe776d7[_0x211306(0x614)](_0x211306(0xeb6),function(_0xff012,_0x21ad1b){const _0x3118ac=_0x211306;_0x41c6a8?_0x48e312(function(){_0x41c6a8=![];}):(!_0x21ad1b&&(_0x544307=_0x55c97f[_0x3118ac(0xae2)][_0x3118ac(0x1c7b)]),_0xff012!==_0x21ad1b&&(_0x55c97f[_0x3118ac(0xae2)]['page']=0x1),!_0xff012&&(_0x55c97f[_0x3118ac(0xae2)]['page']=_0x544307),_0x355493());});}const _0x3daa54=_0x42b20f;;_0x2a391c[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),_0x5537c6(0x1463),'$state','$q',_0x5537c6(0x1ae),'$timeout',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1774)];function _0x2a391c(_0x33c915,_0x1fbdf8,_0x315947,_0x10046b,_0x3ec7c1,_0x326394,_0x16df63,_0x427565,_0x36a8e5,_0x311420,_0x56d9e0){const _0x1e4264=_0x5537c6,_0x560fa1=this;_0x560fa1['currentUser']=_0x56d9e0['getCurrentUser'](),_0x560fa1['queueCampaign']={},_0x560fa1[_0x1e4264(0x25e1)]={'count':0x0,'rows':[]},_0x560fa1[_0x1e4264(0xcf7)]=[],_0x560fa1['crudPermissions'],_0x560fa1[_0x1e4264(0xae2)]={'fields':'createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority,recallme,UserId','sort':_0x1e4264(0x282),'limit':0xa,'page':0x1},_0x560fa1['arraypriority']=_0x39641b()[_0x1e4264(0x2631)]([{'option':_0x1e4264(0xc6c),'value':'\x274\x27'},{'option':_0x1e4264(0x1173),'value':_0x1e4264(0xf37)},{'option':_0x1e4264(0x274b),'value':'\x272\x27'},{'option':_0x1e4264(0x1ec),'value':_0x1e4264(0x11e4)},{'option':_0x1e4264(0x1d1c),'value':_0x1e4264(0xbbb)}],function(_0x32e058){const _0x1faee2=_0x1e4264;return _0x39641b()[_0x1faee2(0x288f)](_0x32e058['value'],new RegExp('\x27','g'),'');}),_0x560fa1[_0x1e4264(0x1a8e)]=_0x4fe253,_0x560fa1[_0x1e4264(0xb25)]=_0x3a5d49,_0x560fa1[_0x1e4264(0x829)]=_0x4e5c49,_0x560fa1[_0x1e4264(0x22b8)]=_0x41b45f,_0x560fa1['createOrEditQueueCampaignHopper']=_0x42ad43,_0x560fa1[_0x1e4264(0x27eb)]=_0x19e0cd,_0x560fa1['deleteQueueCampaignHopper']=_0x5507b1,_0x560fa1['deleteSelectedQueueCampaignHoppers']=_0x2c445f,_0x56d9e0[_0x1e4264(0x22b6)](_0x1e4264(0x1c60))?_0x311420['user'][_0x1e4264(0xbf7)]({'fields':_0x1e4264(0x43c),'role':_0x1e4264(0x1eff),'sort':_0x1e4264(0x16b6),'nolimit':_0x1e4264(0x44d)})[_0x1e4264(0x1d77)][_0x1e4264(0x1cb0)](function(_0x2480fc){const _0x1ed398=_0x1e4264;_0x560fa1[_0x1ed398(0xc12)]=_0x2480fc[_0x1ed398(0x2214)]||[];})['catch'](function(_0x18d2ee){const _0x1a4b07=_0x1e4264;_0x36a8e5[_0x1a4b07(0x218e)]({'title':_0x18d2ee[_0x1a4b07(0x291)]?'API:'+_0x18d2ee['status']+'\x20-\x20'+_0x18d2ee['statusText']:_0x1a4b07(0x799),'msg':_0x18d2ee[_0x1a4b07(0x25c)]?JSON[_0x1a4b07(0x2701)](_0x18d2ee['data']):_0x18d2ee['toString']()});}):_0x311420[_0x1e4264(0xebe)]['get']({'fields':_0x1e4264(0x43c),'role':'agent','sort':_0x1e4264(0x16b6),'nolimit':'true'})['$promise'][_0x1e4264(0x1cb0)](function(_0x52b485){const _0x5e5293=_0x1e4264;_0x560fa1['agents']=_0x52b485[_0x5e5293(0x2214)]||[];})[_0x1e4264(0x1cb0)](function(){const _0x58ad86=_0x1e4264;return _0x311420[_0x58ad86(0x2199)][_0x58ad86(0xbf7)]({'userProfileId':_0x560fa1[_0x58ad86(0xe76)]['userProfileId'],'sectionId':0xca})['$promise'];})['then'](function(_0x5bb74c){const _0x3efa33=_0x1e4264,_0x3f9d70=_0x5bb74c&&_0x5bb74c[_0x3efa33(0x2214)]?_0x5bb74c['rows'][0x0]:null;if(!_0x3f9d70){const _0x577804=[];let _0x12a28b=null;_0x560fa1['queueCampaign']&&(_0x12a28b=_0x39641b()[_0x3efa33(0x13b4)](_0x560fa1[_0x3efa33(0xc12)],{'id':Number(_0x560fa1[_0x3efa33(0x17b8)][_0x3efa33(0x21ab)])}));for(let _0x555a07=0x0;_0x555a07<_0x560fa1[_0x3efa33(0xc12)][_0x3efa33(0xfd0)];_0x555a07++){_0x12a28b&&_0x560fa1['agents'][_0x555a07]['id']===_0x12a28b['id']&&(_0x560fa1[_0x3efa33(0xc12)][_0x555a07][_0x3efa33(0x15da)]=![],_0x577804[_0x3efa33(0x2785)](_0x560fa1[_0x3efa33(0xc12)][_0x555a07]));}_0x560fa1[_0x3efa33(0xc12)]=_0x577804;}else{if(!_0x3f9d70['autoAssociation'])return _0x311420[_0x3efa33(0x1198)][_0x3efa33(0xbf7)]({'sectionId':_0x3f9d70['id']})['$promise'][_0x3efa33(0x1cb0)](function(_0x1cca78){const _0x157fc0=_0x3efa33,_0x1747fc=_0x39641b()[_0x157fc0(0x1de2)](_0x1cca78['rows'],function(_0x4cd624){const _0x23137e=_0x157fc0;return _0x39641b()[_0x23137e(0x13b4)](_0x560fa1['agents'],{'id':_0x4cd624[_0x23137e(0x2982)]});});let _0x559cad=null;_0x560fa1[_0x157fc0(0x17b8)]&&(_0x559cad=_0x39641b()[_0x157fc0(0x13b4)](_0x560fa1['agents'],{'id':Number(_0x560fa1[_0x157fc0(0x17b8)]['UserId'])}));if(_0x559cad&&!_0x39641b()[_0x157fc0(0x727)](_0x1747fc,['id',_0x559cad['id']])){const _0x352cfd=_0x39641b()[_0x157fc0(0x13b4)](_0x560fa1[_0x157fc0(0xc12)],{'id':_0x559cad['id']});_0x352cfd['canSelect']=![],_0x1747fc[_0x157fc0(0x2785)](_0x352cfd);}_0x560fa1['agents']=_0x1747fc;});}})['catch'](function(_0x36bd14){const _0x37dd6d=_0x1e4264;_0x36a8e5[_0x37dd6d(0x218e)]({'title':_0x36bd14[_0x37dd6d(0x291)]?_0x37dd6d(0xeb9)+_0x36bd14[_0x37dd6d(0x291)]+_0x37dd6d(0x1657)+_0x36bd14[_0x37dd6d(0xc22)]:_0x37dd6d(0x2159),'msg':_0x36bd14['data']?JSON[_0x37dd6d(0x2701)](_0x36bd14[_0x37dd6d(0x25c)]):_0x36bd14[_0x37dd6d(0x147f)]()});});function _0x4fe253(_0x23e46d,_0x36b215){const _0x7f19ff=_0x1e4264;_0x560fa1[_0x7f19ff(0x17b8)]=_0x23e46d,_0x560fa1[_0x7f19ff(0x1b1a)]=typeof _0x36b215!==_0x7f19ff(0x16b5)?_0x36b215:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x560fa1[_0x7f19ff(0xae2)][_0x7f19ff(0x1116)]=_0x560fa1['queueCampaign']['id'],_0x560fa1[_0x7f19ff(0xae2)]['id']=_0x560fa1['queueCampaign']['id'],_0x41b45f();}function _0x3a5d49(_0x180a42,_0x27901c){const _0x40c820=_0x1e4264,_0x391338=_0x16df63[_0x40c820(0x1551)]()['title'](_0x40c820(0x82c))[_0x40c820(0x49e)](''+(_0x180a42[_0x40c820(0x16b6)]||_0x180a42['id']&&_0x39641b()['upperFirst']('hopper\x20#')+_0x180a42['id']||'hopper')+_0x40c820(0x1200)+_0x40c820(0x1b6))[_0x40c820(0x15ad)]('delete\x20hopper')['targetEvent'](_0x27901c)['ok']('OK')[_0x40c820(0x696)]('CANCEL');_0x16df63[_0x40c820(0xe27)](_0x391338)[_0x40c820(0x1cb0)](function(){_0x5507b1(_0x180a42);},function(){const _0x24dc16=_0x40c820;console[_0x24dc16(0x1b4f)](_0x24dc16(0x24ba));});}function _0x4e5c49(_0x593739){_0x560fa1['queueCampaignHoppers']=_0x593739||{'count':0x0,'rows':[]};}function _0x41b45f(){const _0x582da2=_0x1e4264;_0x560fa1[_0x582da2(0xae2)]['offset']=(_0x560fa1[_0x582da2(0xae2)][_0x582da2(0x1c7b)]-0x1)*_0x560fa1[_0x582da2(0xae2)][_0x582da2(0x236)],_0x560fa1[_0x582da2(0x2061)]=_0x311420[_0x582da2(0x26b3)][_0x582da2(0xb46)](_0x560fa1[_0x582da2(0xae2)],_0x4e5c49)[_0x582da2(0x1d77)];}function _0x42ad43(_0x42011f,_0x52d694){const _0x3efafd=_0x1e4264;_0x16df63[_0x3efafd(0xe27)]({'controller':'CreateOrEditHopperVoiceQueueIdDialogController','controllerAs':'vm','templateUrl':_0x30626d,'parent':angular['element'](_0x427565[_0x3efafd(0x1ed9)]),'targetEvent':_0x42011f,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x560fa1['queueCampaign'],'hopper':_0x52d694,'hoppers':_0x560fa1['queueCampaignHoppers'][_0x3efafd(0x2214)],'license':null,'setting':null,'crudPermissions':_0x560fa1['crudPermissions']}});}function _0x5507b1(_0x388c54){const _0x475f14=_0x1e4264;_0x311420[_0x475f14(0x26bc)][_0x475f14(0x111d)]({'id':_0x388c54['id']})[_0x475f14(0x1d77)][_0x475f14(0x1cb0)](function(){const _0x392038=_0x475f14;_0x39641b()['remove'](_0x560fa1[_0x392038(0x25e1)]['rows'],{'id':_0x388c54['id']}),_0x560fa1[_0x392038(0x25e1)][_0x392038(0x184d)]-=0x1,!_0x560fa1[_0x392038(0x25e1)][_0x392038(0x2214)][_0x392038(0xfd0)]&&_0x41b45f(),_0x36a8e5[_0x392038(0x829)]({'title':_0x392038(0x1aaa),'msg':_0x388c54[_0x392038(0x16b6)]?_0x388c54[_0x392038(0x16b6)]+_0x392038(0x3f5):''});})['catch'](function(_0x4d73e0){const _0x2cce59=_0x475f14;if(_0x4d73e0['data']&&_0x4d73e0[_0x2cce59(0x25c)]['errors']&&_0x4d73e0['data'][_0x2cce59(0x1a7c)]['length']){_0x560fa1[_0x2cce59(0x1a7c)]=_0x4d73e0['data']['errors']||[{'message':_0x4d73e0[_0x2cce59(0x147f)](),'type':_0x2cce59(0x272a)}];for(let _0x12d5a9=0x0;_0x12d5a9<_0x4d73e0[_0x2cce59(0x25c)]['errors'][_0x2cce59(0xfd0)];_0x12d5a9++){_0x36a8e5[_0x2cce59(0x218e)]({'title':_0x4d73e0['data'][_0x2cce59(0x1a7c)][_0x12d5a9]['type'],'msg':_0x4d73e0[_0x2cce59(0x25c)]['errors'][_0x12d5a9][_0x2cce59(0x155e)]});}}else _0x36a8e5['error']({'title':_0x4d73e0['status']?_0x2cce59(0xeb9)+_0x4d73e0[_0x2cce59(0x291)]+_0x2cce59(0x1657)+_0x4d73e0[_0x2cce59(0xc22)]:'SYSTEM:GETvoiceQueue','msg':_0x4d73e0[_0x2cce59(0x25c)]?JSON[_0x2cce59(0x2701)](_0x4d73e0['data']['message']):_0x4d73e0[_0x2cce59(0x155e)]||_0x4d73e0[_0x2cce59(0x147f)]()});});}function _0x19e0cd(){const _0x3cb894=_0x1e4264,_0x11e1e7=angular['copy'](_0x560fa1['selectedQueueCampaignHoppers']);return _0x560fa1[_0x3cb894(0xcf7)]=[],_0x11e1e7;}function _0x2c445f(_0x5416b6){const _0x20ffa3=_0x1e4264,_0xe5d1ec=_0x16df63[_0x20ffa3(0x1551)]()[_0x20ffa3(0x1386)](_0x20ffa3(0x1a6))[_0x20ffa3(0x49e)](''+_0x560fa1[_0x20ffa3(0xcf7)][_0x20ffa3(0xfd0)]+_0x20ffa3(0x1d6c)+_0x20ffa3(0x1b6))[_0x20ffa3(0x15ad)](_0x20ffa3(0x28b9))['targetEvent'](_0x5416b6)['ok']('OK')[_0x20ffa3(0x696)]('CANCEL');_0x16df63[_0x20ffa3(0xe27)](_0xe5d1ec)[_0x20ffa3(0x1cb0)](function(){const _0x2e7e20=_0x20ffa3;_0x560fa1['selectedQueueCampaignHoppers'][_0x2e7e20(0xf90)](function(_0x27ecd3){_0x5507b1(_0x27ecd3);}),_0x560fa1[_0x2e7e20(0xcf7)]=[];});}let _0x232273=!![],_0xf1eba0=0x1;_0x1fbdf8[_0x1e4264(0x614)](_0x1e4264(0xeb6),function(_0x23fe90,_0x3a49fc){const _0x14d619=_0x1e4264;_0x232273?_0x326394(function(){_0x232273=![];}):(!_0x3a49fc&&(_0xf1eba0=_0x560fa1[_0x14d619(0xae2)][_0x14d619(0x1c7b)]),_0x23fe90!==_0x3a49fc&&(_0x560fa1[_0x14d619(0xae2)][_0x14d619(0x1c7b)]=0x1),!_0x23fe90&&(_0x560fa1[_0x14d619(0xae2)]['page']=_0xf1eba0),_0x41b45f());});}const _0x6f7acc=_0x2a391c;;_0x23a244[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0xe3c),_0x5537c6(0x2151),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x23a244(_0x30a417,_0x3f2081,_0x1a5c5a,_0x1aea8a,_0x2fb46b,_0x2124ce,_0x599fd8,_0x39e6f2,_0x3ad7a7,_0x4f59cf,_0x47012e,_0x1d9c8e,_0x3a1f73,_0x43bf62){const _0x9c0eb6=_0x5537c6,_0x4a0a92=this;_0x4a0a92[_0x9c0eb6(0xe76)]=_0x47012e['getCurrentUser'](),_0x4a0a92['errors']=[],_0x4a0a92['setting']=_0x3a1f73,_0x4a0a92[_0x9c0eb6(0x8a5)]=_0x1d9c8e,_0x4a0a92[_0x9c0eb6(0x1b1a)]=_0x43bf62,_0x4a0a92[_0x9c0eb6(0xf4c)]={},_0x4a0a92[_0x9c0eb6(0x1b0c)]=_0x4a0a92['setting']&&_0x4a0a92[_0x9c0eb6(0x9ca)][_0x9c0eb6(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4a0a92[_0x9c0eb6(0x1386)]=_0x9c0eb6(0x2285),_0x4a0a92['hopper']=angular[_0x9c0eb6(0x17fe)](_0x3ad7a7),_0x4a0a92[_0x9c0eb6(0xe3c)]=_0x39e6f2,_0x4a0a92[_0x9c0eb6(0x25f0)]=![];!_0x4a0a92[_0x9c0eb6(0x2151)]&&(_0x4a0a92[_0x9c0eb6(0x2151)]={},_0x4a0a92[_0x9c0eb6(0x1386)]=_0x9c0eb6(0x2407),_0x4a0a92['newHopper']=!![]);_0x3f2081[_0x9c0eb6(0x1dfe)]['id']&&(_0x4a0a92[_0x9c0eb6(0x2151)]['VoiceQueueId']=_0x3f2081[_0x9c0eb6(0x1dfe)]['id']);_0x4a0a92[_0x9c0eb6(0x3fe)]=_0x26789b,_0x4a0a92[_0x9c0eb6(0x1f48)]=_0x3d90a8,_0x4a0a92['deleteHopper']=_0x1201e4,_0x4a0a92[_0x9c0eb6(0x2c4)]=_0x3c4ea9,_0x4a0a92['closeDialog']=_0x294faa,_0x47012e['hasRole'](_0x9c0eb6(0x1c60))?_0x4f59cf[_0x9c0eb6(0xebe)]['get']({'fields':'id,name','role':_0x9c0eb6(0x1eff),'sort':_0x9c0eb6(0x16b6),'nolimit':_0x9c0eb6(0x44d)})[_0x9c0eb6(0x1d77)][_0x9c0eb6(0x1cb0)](function(_0x2a9634){const _0x4a9d84=_0x9c0eb6;_0x4a0a92[_0x4a9d84(0xc12)]=_0x2a9634[_0x4a9d84(0x2214)]||[];})['catch'](function(_0x32657a){const _0xaf00ea=_0x9c0eb6;_0x599fd8['error']({'title':_0x32657a[_0xaf00ea(0x291)]?_0xaf00ea(0xeb9)+_0x32657a['status']+_0xaf00ea(0x1657)+_0x32657a[_0xaf00ea(0xc22)]:_0xaf00ea(0x799),'msg':_0x32657a[_0xaf00ea(0x25c)]?JSON['stringify'](_0x32657a[_0xaf00ea(0x25c)]):_0x32657a[_0xaf00ea(0x147f)]()});}):_0x4f59cf[_0x9c0eb6(0xebe)]['get']({'fields':_0x9c0eb6(0x43c),'role':_0x9c0eb6(0x1eff),'sort':_0x9c0eb6(0x16b6),'nolimit':_0x9c0eb6(0x44d)})[_0x9c0eb6(0x1d77)]['then'](function(_0x552781){const _0x793197=_0x9c0eb6;_0x4a0a92['agents']=_0x552781[_0x793197(0x2214)]||[];})['then'](function(){const _0x317ab5=_0x9c0eb6;return _0x4f59cf[_0x317ab5(0x2199)][_0x317ab5(0xbf7)]({'userProfileId':_0x4a0a92[_0x317ab5(0xe76)][_0x317ab5(0x13c1)],'sectionId':0xca})[_0x317ab5(0x1d77)];})[_0x9c0eb6(0x1cb0)](function(_0x21419a){const _0x415e0e=_0x9c0eb6,_0x422446=_0x21419a&&_0x21419a[_0x415e0e(0x2214)]?_0x21419a['rows'][0x0]:null;if(!_0x422446){const _0x55d20f=[];let _0x508b8e=null;_0x4a0a92['hopper']&&(_0x508b8e=_0x39641b()[_0x415e0e(0x13b4)](_0x4a0a92['agents'],{'id':Number(_0x4a0a92[_0x415e0e(0x2151)][_0x415e0e(0x21ab)])}));for(let _0x404754=0x0;_0x404754<_0x4a0a92[_0x415e0e(0xc12)][_0x415e0e(0xfd0)];_0x404754++){_0x508b8e&&_0x4a0a92[_0x415e0e(0xc12)][_0x404754]['id']===_0x508b8e['id']&&(_0x4a0a92[_0x415e0e(0xc12)][_0x404754][_0x415e0e(0x15da)]=![],_0x55d20f[_0x415e0e(0x2785)](_0x4a0a92[_0x415e0e(0xc12)][_0x404754]));}_0x4a0a92[_0x415e0e(0xc12)]=_0x55d20f;}else{if(!_0x422446[_0x415e0e(0x12f4)])return _0x4f59cf[_0x415e0e(0x1198)][_0x415e0e(0xbf7)]({'sectionId':_0x422446['id']})[_0x415e0e(0x1d77)]['then'](function(_0x5a7ced){const _0x11b536=_0x415e0e,_0x4a1cba=_0x39641b()[_0x11b536(0x1de2)](_0x5a7ced[_0x11b536(0x2214)],function(_0x839cf3){const _0x4861e9=_0x11b536;return _0x39641b()[_0x4861e9(0x13b4)](_0x4a0a92[_0x4861e9(0xc12)],{'id':_0x839cf3[_0x4861e9(0x2982)]});});let _0x419c6c=null;_0x4a0a92[_0x11b536(0x2151)]&&(_0x419c6c=_0x39641b()['find'](_0x4a0a92[_0x11b536(0xc12)],{'id':Number(_0x4a0a92[_0x11b536(0x2151)][_0x11b536(0x21ab)])}));if(_0x419c6c&&!_0x39641b()[_0x11b536(0x727)](_0x4a1cba,['id',_0x419c6c['id']])){const _0x1c47df=_0x39641b()[_0x11b536(0x13b4)](_0x4a0a92[_0x11b536(0xc12)],{'id':_0x419c6c['id']});_0x1c47df['canSelect']=![],_0x4a1cba[_0x11b536(0x2785)](_0x1c47df);}_0x4a0a92[_0x11b536(0xc12)]=_0x4a1cba;});}})['catch'](function(_0x2ff6a0){const _0x5b20b2=_0x9c0eb6;_0x599fd8[_0x5b20b2(0x218e)]({'title':_0x2ff6a0[_0x5b20b2(0x291)]?'API:'+_0x2ff6a0[_0x5b20b2(0x291)]+_0x5b20b2(0x1657)+_0x2ff6a0[_0x5b20b2(0xc22)]:_0x5b20b2(0x2159),'msg':_0x2ff6a0[_0x5b20b2(0x25c)]?JSON[_0x5b20b2(0x2701)](_0x2ff6a0[_0x5b20b2(0x25c)]):_0x2ff6a0['toString']()});});function _0x26789b(){const _0x42435b=_0x9c0eb6;_0x4a0a92['errors']=[],_0x4f59cf[_0x42435b(0x26bc)][_0x42435b(0x1c3f)](_0x4a0a92[_0x42435b(0x2151)])[_0x42435b(0x1d77)][_0x42435b(0x1cb0)](function(_0x2eba1a){const _0x37ef5a=_0x42435b;_0x4a0a92[_0x37ef5a(0xe3c)][_0x37ef5a(0xf63)](_0x2eba1a[_0x37ef5a(0x19b2)]()),_0x599fd8['success']({'title':'Hopper\x20properly\x20created','msg':_0x4a0a92[_0x37ef5a(0x2151)][_0x37ef5a(0x16b6)]?_0x4a0a92[_0x37ef5a(0x2151)][_0x37ef5a(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x294faa(_0x2eba1a);})['catch'](function(_0x3f52a1){const _0x32262f=_0x42435b;if(_0x3f52a1[_0x32262f(0x25c)]&&_0x3f52a1['data'][_0x32262f(0x1a7c)]&&_0x3f52a1['data'][_0x32262f(0x1a7c)][_0x32262f(0xfd0)]){_0x4a0a92[_0x32262f(0x1a7c)]=_0x3f52a1['data'][_0x32262f(0x1a7c)]||[{'message':_0x3f52a1['toString'](),'type':_0x32262f(0x2e4)}];for(let _0x27f3d3=0x0;_0x27f3d3<_0x3f52a1[_0x32262f(0x25c)][_0x32262f(0x1a7c)]['length'];_0x27f3d3+=0x1){_0x599fd8[_0x32262f(0x218e)]({'title':_0x3f52a1[_0x32262f(0x25c)][_0x32262f(0x1a7c)][_0x27f3d3]['type'],'msg':_0x3f52a1[_0x32262f(0x25c)]['errors'][_0x27f3d3][_0x32262f(0x155e)]});}}else _0x599fd8[_0x32262f(0x218e)]({'title':_0x3f52a1[_0x32262f(0x291)]?'API:'+_0x3f52a1[_0x32262f(0x291)]+_0x32262f(0x1657)+_0x3f52a1[_0x32262f(0xc22)]:_0x32262f(0x2e4),'msg':_0x3f52a1[_0x32262f(0x25c)]?JSON[_0x32262f(0x2701)](_0x3f52a1[_0x32262f(0x25c)]['message']):_0x3f52a1['toString']()});});}function _0x3d90a8(){const _0x16e05d=_0x9c0eb6;_0x4a0a92[_0x16e05d(0x1a7c)]=[];let _0x2f079c,_0x2a2ef0,_0x3d8979,_0x58b3a4;_0x4a0a92[_0x16e05d(0x2151)][_0x16e05d(0x21ab)]=_0x4a0a92['hopper'][_0x16e05d(0x1858)]?_0x4a0a92[_0x16e05d(0x2151)][_0x16e05d(0x21ab)]:null,_0x4a0a92[_0x16e05d(0x2151)][_0x16e05d(0x189b)]=_0x47012e[_0x16e05d(0x21e8)]()['id'],_0x4f59cf[_0x16e05d(0x26bc)][_0x16e05d(0xbf7)]({'id':_0x4a0a92[_0x16e05d(0x2151)]['id'],'attributes':[_0x16e05d(0x2251)]})[_0x16e05d(0x1d77)][_0x16e05d(0x1cb0)](function(_0x471fda){const _0x54cfb9=_0x16e05d;_0x39641b()[_0x54cfb9(0x958)](_0x471fda)||_0x39641b()[_0x54cfb9(0xce9)](_0x471fda)?_0x2f079c=_0x543b5a()()[_0x54cfb9(0x1f31)]('YYYY-MM-DD\x20HH:mm:ss'):_0x2f079c=_0x471fda[_0x54cfb9(0x2251)];})['finally'](function(){const _0x5e7e15=_0x16e05d;_0x4f59cf['cmHopper'][_0x5e7e15(0x687)]({'id':_0x4a0a92['hopper']['id']},_0x39641b()[_0x5e7e15(0x1bd8)](_0x4a0a92[_0x5e7e15(0x2151)],[_0x5e7e15(0x1116),_0x5e7e15(0x21c1),_0x5e7e15(0xb96),'ListId']))['$promise']['then'](function(_0x51c1de){const _0x1d8a17=_0x5e7e15;_0x2a2ef0=_0x51c1de,_0x4f59cf['cmContact'][_0x1d8a17(0xbf7)]({'id':_0x2a2ef0['ContactId'],'attributes':[_0x1d8a17(0x1491),_0x1d8a17(0x1fbb)]})['$promise'][_0x1d8a17(0x1cb0)](function(_0x1f5bef){const _0x44a48b=_0x1d8a17;!_0x39641b()[_0x44a48b(0x958)](_0x1f5bef)&&!_0x39641b()['isNil'](_0x1f5bef['firstName'])&&(_0x3d8979=_0x1f5bef[_0x44a48b(0x1491)],!_0x39641b()['isNil'](_0x1f5bef[_0x44a48b(0x1fbb)])&&(_0x3d8979+='\x20'+_0x1f5bef[_0x44a48b(0x1fbb)]));})[_0x1d8a17(0x1c4)](function(){_0x3d8979=undefined;})[_0x1d8a17(0x2e0)](function(){const _0x46f798=_0x1d8a17;_0x4f59cf[_0x46f798(0x26b3)][_0x46f798(0xbf7)]({'raw':![],'id':_0x2a2ef0['VoiceQueueId'],'attributes':[_0x46f798(0x16b6)]})[_0x46f798(0x1d77)]['then'](function(_0x8fa546){const _0x840987=_0x46f798;_0x58b3a4=_0x8fa546[_0x840987(0x16b6)];})['catch'](function(){_0x58b3a4=undefined;})['finally'](function(){const _0x519bf4=_0x46f798;_0x4f59cf['cmHopperHistory'][_0x519bf4(0x1c3f)]({'state':0x18,'statedesc':_0x519bf4(0x5ba),'scheduledat':_0x2f079c,'calleridnum':_0x2a2ef0[_0x519bf4(0x1340)],'calleridname':_0x3d8979,'campaigntype':_0x2a2ef0[_0x519bf4(0x1116)]?_0x519bf4(0x11cf):_0x519bf4(0x242e),'campaign':_0x58b3a4,'editedat':_0x543b5a()()[_0x519bf4(0x1f31)](_0x519bf4(0x2e8)),'edited':!![],'ListId':_0x2a2ef0['ListId'],'UserId':_0x47012e[_0x519bf4(0x21e8)]()['id'],'VoiceQueueId':_0x2a2ef0['VoiceQueueId'],'CampaignId':_0x2a2ef0[_0x519bf4(0x21c1)],'ContactId':_0x2a2ef0[_0x519bf4(0xb96)],'callback':_0x2a2ef0[_0x519bf4(0x2170)],'callbackuniqueid':_0x2a2ef0[_0x519bf4(0x82e)],'countbusyretry':_0x2a2ef0[_0x519bf4(0x1969)],'countcongestionretry':_0x2a2ef0[_0x519bf4(0x1c8b)],'countglobal':_0x2a2ef0[_0x519bf4(0xace)],'countnoanswerretry':_0x2a2ef0[_0x519bf4(0x23ba)],'followuptime':_0x2a2ef0[_0x519bf4(0x2458)],'recallme':_0x2a2ef0[_0x519bf4(0x1858)]});});});const _0x5cc602=_0x39641b()[_0x1d8a17(0x13b4)](_0x4a0a92[_0x1d8a17(0xe3c)],{'id':_0x51c1de['id']});_0x5cc602&&_0x39641b()['merge'](_0x5cc602,_0x39641b()['pick'](_0x51c1de['toJSON'](),_0x39641b()[_0x1d8a17(0x1be5)](_0x5cc602))),_0x599fd8[_0x1d8a17(0x829)]({'title':_0x1d8a17(0x1277),'msg':_0x4a0a92[_0x1d8a17(0x2151)]['name']?_0x4a0a92[_0x1d8a17(0x2151)][_0x1d8a17(0x16b6)]+_0x1d8a17(0xedb):''}),_0x294faa(_0x51c1de);})[_0x5e7e15(0x1c4)](function(_0x4eaadc){const _0xf2f14c=_0x5e7e15;if(_0x4eaadc[_0xf2f14c(0x25c)]&&_0x4eaadc[_0xf2f14c(0x25c)][_0xf2f14c(0x1a7c)]&&_0x4eaadc['data'][_0xf2f14c(0x1a7c)][_0xf2f14c(0xfd0)]){_0x4a0a92[_0xf2f14c(0x1a7c)]=_0x4eaadc['data']['errors']||[{'message':_0x4eaadc[_0xf2f14c(0x147f)](),'type':_0xf2f14c(0xfec)}];for(let _0x4f7ae0=0x0;_0x4f7ae0<_0x4eaadc[_0xf2f14c(0x25c)][_0xf2f14c(0x1a7c)][_0xf2f14c(0xfd0)];_0x4f7ae0++){_0x599fd8['error']({'title':_0x4eaadc[_0xf2f14c(0x25c)][_0xf2f14c(0x1a7c)][_0x4f7ae0][_0xf2f14c(0x66a)],'msg':_0x4eaadc['data']['errors'][_0x4f7ae0][_0xf2f14c(0x155e)]});}}else _0x599fd8[_0xf2f14c(0x218e)]({'title':_0x4eaadc[_0xf2f14c(0x291)]?'API:'+_0x4eaadc[_0xf2f14c(0x291)]+_0xf2f14c(0x1657)+_0x4eaadc[_0xf2f14c(0xc22)]:_0xf2f14c(0xfec),'msg':_0x4eaadc[_0xf2f14c(0x25c)]?JSON['stringify'](_0x4eaadc['data'][_0xf2f14c(0x155e)]):_0x4eaadc[_0xf2f14c(0x147f)]()});});});}function _0x1201e4(_0x1fc554){const _0x51c6cb=_0x9c0eb6;_0x4a0a92[_0x51c6cb(0x1a7c)]=[];const _0x105ef8=_0x1aea8a['confirm']()[_0x51c6cb(0x1386)]('Are\x20you\x20sure?')['content']('The\x20hopper\x20will\x20be\x20deleted.')[_0x51c6cb(0x15ad)]('Delete\x20Hopper')['ok']('Delete')[_0x51c6cb(0x696)](_0x51c6cb(0xde1))[_0x51c6cb(0x728)](_0x1fc554);_0x1aea8a['show'](_0x105ef8)[_0x51c6cb(0x1cb0)](function(){const _0x7ac447=_0x51c6cb;_0x4f59cf[_0x7ac447(0x26bc)][_0x7ac447(0x111d)]({'id':_0x4a0a92['hopper']['id']})[_0x7ac447(0x1d77)][_0x7ac447(0x1cb0)](function(){const _0x1534fb=_0x7ac447;_0x39641b()[_0x1534fb(0x152a)](_0x4a0a92[_0x1534fb(0xe3c)],{'id':_0x4a0a92['hopper']['id']}),_0x599fd8[_0x1534fb(0x829)]({'title':_0x1534fb(0x6ee),'msg':(_0x4a0a92[_0x1534fb(0x2151)][_0x1534fb(0x16b6)]||_0x1534fb(0x2151))+_0x1534fb(0x3f5)}),_0x294faa(_0x4a0a92['hopper']);})[_0x7ac447(0x1c4)](function(_0x9a7455){const _0x2e6389=_0x7ac447;if(_0x9a7455[_0x2e6389(0x25c)]&&_0x9a7455[_0x2e6389(0x25c)]['errors']&&_0x9a7455[_0x2e6389(0x25c)][_0x2e6389(0x1a7c)][_0x2e6389(0xfd0)]){_0x4a0a92[_0x2e6389(0x1a7c)]=_0x9a7455[_0x2e6389(0x25c)]['errors']||[{'message':_0x9a7455[_0x2e6389(0x147f)](),'type':'api.cmHopper.delete'}];for(let _0x173fb3=0x0;_0x173fb3<_0x9a7455['data']['errors'][_0x2e6389(0xfd0)];_0x173fb3++){_0x599fd8[_0x2e6389(0x218e)]({'title':_0x9a7455['data'][_0x2e6389(0x1a7c)][_0x173fb3][_0x2e6389(0x66a)],'msg':_0x9a7455['data']['errors'][_0x173fb3][_0x2e6389(0x155e)]});}}else _0x599fd8[_0x2e6389(0x218e)]({'title':_0x9a7455[_0x2e6389(0x291)]?_0x2e6389(0xeb9)+_0x9a7455[_0x2e6389(0x291)]+_0x2e6389(0x1657)+_0x9a7455[_0x2e6389(0xc22)]:_0x2e6389(0x9fd),'msg':_0x9a7455[_0x2e6389(0x25c)]?JSON['stringify'](_0x9a7455[_0x2e6389(0x25c)][_0x2e6389(0x155e)]):_0x9a7455['message']||_0x9a7455[_0x2e6389(0x147f)]()});});},function(){});}function _0x3c4ea9(_0x1d9af4){return _0x1d9af4===null?undefined:new Date(_0x1d9af4);}function _0x294faa(_0x4924ea){const _0x480971=_0x9c0eb6;_0x1aea8a[_0x480971(0x1426)](_0x4924ea);}}const _0x43f365=_0x23a244;;_0x176b48[_0x5537c6(0x15b6)]=[_0x5537c6(0x142b),_0x5537c6(0x9bf)];function _0x176b48(_0x4a3b56,_0x4869d1){const _0x3ef7c4=_0x5537c6,_0x141903=this;_0x141903[_0x3ef7c4(0x17b8)]={},_0x141903[_0x3ef7c4(0x1a8e)]=_0x3b7d61;function _0x3b7d61(_0x2d5d9d){const _0x1ba241=_0x3ef7c4;_0x141903[_0x1ba241(0x17b8)]=_0x2d5d9d,_0x4a3b56['cmHopper'][_0x1ba241(0xbf7)]({'limit':0x0,'VoiceQueueId':_0x2d5d9d['id']})[_0x1ba241(0x1d77)][_0x1ba241(0x1cb0)](function(_0x2a1497){const _0x3968bd=_0x1ba241;return _0x141903[_0x3968bd(0x181c)]=_0x2a1497[_0x3968bd(0x184d)]||0x0,_0x4a3b56['cmHopper'][_0x3968bd(0xbf7)]({'limit':0x0,'VoiceQueueId':_0x2d5d9d['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})[_0x3968bd(0x1d77)];})[_0x1ba241(0x1cb0)](function(_0x15ec68){const _0x1f69bb=_0x1ba241;return _0x141903['fresh']=_0x15ec68[_0x1f69bb(0x184d)]||0x0,_0x4a3b56[_0x1f69bb(0x145f)][_0x1f69bb(0xbf7)]({'limit':0x0,'VoiceQueueId':_0x2d5d9d['id']})[_0x1f69bb(0x1d77)];})[_0x1ba241(0x1cb0)](function(_0xf13ce0){const _0x8ed3d=_0x1ba241;_0x141903[_0x8ed3d(0x22aa)]=_0xf13ce0[_0x8ed3d(0x184d)]||0x0;})[_0x1ba241(0x1c4)](function(_0xa14b5a){const _0x1d0776=_0x1ba241;_0x4869d1[_0x1d0776(0x218e)]({'title':_0xa14b5a[_0x1d0776(0x291)]?_0x1d0776(0xeb9)+_0xa14b5a[_0x1d0776(0x291)]+'\x20-\x20'+_0xa14b5a['statusText']:'SYSTEM:GETTAGS','msg':_0xa14b5a['data']?JSON[_0x1d0776(0x2701)](_0xa14b5a[_0x1d0776(0x25c)]):_0xa14b5a[_0x1d0776(0x147f)]()});});}}const _0xa1b039=_0x176b48;;_0x1e6de1['$inject']=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),'api',_0x5537c6(0x17b8),_0x5537c6(0x1ae),_0x5537c6(0x2168),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x1e6de1(_0x574f91,_0x3ceff6,_0xd2e887,_0x467f39,_0x37e88a,_0x3a1741,_0x4794ae,_0x9dc97a,_0x46fbb5){const _0x4d9650=_0x5537c6,_0x59f73f=this;_0x59f73f[_0x4d9650(0xe76)]=_0x9dc97a[_0x4d9650(0x21e8)](),_0x59f73f[_0x4d9650(0x17b8)]=_0x37e88a,_0x59f73f[_0x4d9650(0x1b1a)]=_0x46fbb5,_0x59f73f[_0x4d9650(0x2847)]=_0x4d9650(0x26b3),_0x59f73f[_0x4d9650(0x21eb)]='getLists',_0x59f73f[_0x4d9650(0x45a)]=_0x4d9650(0x285),_0x59f73f[_0x4d9650(0x9f3)]='removeLists',_0x59f73f['items']=[],_0x59f73f[_0x4d9650(0x1372)]=[],_0x59f73f[_0x4d9650(0x20bb)]=[],_0x59f73f[_0x4d9650(0xbd5)]=[],_0x59f73f[_0x4d9650(0x1456)]=[],_0x59f73f[_0x4d9650(0x50c)]=![],_0x59f73f[_0x4d9650(0x2279)]=![],_0x59f73f[_0x4d9650(0x18c0)]={'readOnly':!_0x59f73f[_0x4d9650(0x1b1a)][_0x4d9650(0xb3d)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x4d9650(0x16b6),'line1':'name','line2':'','line3':'','labelAll':_0x3a1741['instant'](_0x4d9650(0x1a90)),'labelSelected':_0x3a1741['instant'](_0x4d9650(0x8f4)),'transferCallback':function(){const _0x291dd1=_0x4d9650,_0x577f7c=_0x39641b()['xorBy'](_0x59f73f['startingSelectedItems'],_0x59f73f['selectedItems'],'id');_0x59f73f[_0x291dd1(0x50c)]=_0x39641b()[_0x291dd1(0xce9)](_0x577f7c)?![]:!![];}},_0x59f73f[_0x4d9650(0x1a34)]=_0x4d1a46,_0x59f73f[_0x4d9650(0x24f8)]=_0x4698cd,_0x59f73f['closeDialog']=_0x50a9f6;function _0x4d1a46(){const _0x5b9279=_0x4d9650;return _0x9dc97a[_0x5b9279(0x22b6)]('admin')?_0x37c2e6()[_0x5b9279(0x1c4)](function(_0x18b4df){const _0x38a406=_0x5b9279;_0xd2e887['error']({'title':_0x18b4df[_0x38a406(0x291)]?_0x38a406(0xeb9)+_0x18b4df[_0x38a406(0x291)]+'\x20-\x20'+_0x18b4df[_0x38a406(0xc22)]:_0x38a406(0xfa5),'msg':_0x18b4df[_0x38a406(0x291)]?JSON[_0x38a406(0x2701)](_0x18b4df[_0x38a406(0x25c)]):_0x18b4df[_0x38a406(0x147f)]()});}):_0x1a0bf8()['then'](function(_0x48ce9b){const _0xb7013=_0x5b9279;return _0x59f73f[_0xb7013(0x1f74)]=_0x48ce9b,_0x37c2e6();})[_0x5b9279(0x1c4)](function(_0x5e47de){const _0x5efc2a=_0x5b9279;_0xd2e887[_0x5efc2a(0x218e)]({'title':_0x5e47de[_0x5efc2a(0x291)]?_0x5efc2a(0xeb9)+_0x5e47de[_0x5efc2a(0x291)]+_0x5efc2a(0x1657)+_0x5e47de[_0x5efc2a(0xc22)]:_0x5efc2a(0xfa5),'msg':_0x5e47de[_0x5efc2a(0x291)]?JSON[_0x5efc2a(0x2701)](_0x5e47de['data']):_0x5e47de[_0x5efc2a(0x147f)]()});});}function _0x1a0bf8(){return _0x3ceff6(function(_0x18281f,_0x132ec5){const _0x986f63=a0_0x5cbd;_0x467f39[_0x986f63(0x2199)][_0x986f63(0xbf7)]({'userProfileId':_0x59f73f[_0x986f63(0xe76)][_0x986f63(0x13c1)],'name':_0x986f63(0x191f)})[_0x986f63(0x1d77)][_0x986f63(0x1cb0)](function(_0x33ee2d){const _0x12835e=_0x986f63,_0x3a0c77=_0x33ee2d&&_0x33ee2d[_0x12835e(0x2214)]?_0x33ee2d[_0x12835e(0x2214)][0x0]:null;_0x18281f(_0x3a0c77);})[_0x986f63(0x1c4)](function(_0x4a0883){_0x132ec5(_0x4a0883);});});}function _0x37c2e6(){return _0x3ceff6(function(_0x43626d,_0x1f360e){const _0x3f2fac=a0_0x5cbd;return _0x11030a()[_0x3f2fac(0x1cb0)](function(_0x680e31){const _0x562211=_0x3f2fac;return _0x59f73f['items']=_0x680e31[_0x562211(0x2214)]?_0x680e31[_0x562211(0x2214)]:[],_0x9dc97a[_0x562211(0x22b6)]('admin')?_0x680e31:_0x59f73f[_0x562211(0x1f74)]?_0x59f73f[_0x562211(0x1f74)][_0x562211(0x12f4)]?_0x680e31:_0x52c55e():null;})[_0x3f2fac(0x1cb0)](function(_0x447a1d){const _0x1736b=_0x3f2fac,_0x1778c5=_0x447a1d&&_0x447a1d[_0x1736b(0x2214)]?_0x447a1d['rows']:[];return _0x59f73f[_0x1736b(0x1372)]=_0x39641b()[_0x1736b(0x1de2)](_0x1778c5,function(_0x425315){const _0x9fbda6=_0x1736b;return _0x39641b()[_0x9fbda6(0x13b4)](_0x59f73f['items'],{'id':_0x9dc97a['hasRole'](_0x9fbda6(0x1c60))||_0x59f73f['section'][_0x9fbda6(0x12f4)]?_0x425315['id']:_0x425315[_0x9fbda6(0x2982)]});}),_0x59f73f['startingAllowedItems']=angular[_0x1736b(0x17fe)](_0x59f73f['allowedItems']),_0x59f73f[_0x1736b(0x122f)]['forEach'](function(_0x1568fb){const _0x49a209=_0x1736b,_0x16ff8f=_0x39641b()[_0x49a209(0x13b4)](_0x59f73f['allowedItems'],{'id':_0x1568fb['id']});_0x59f73f['currentUser'][_0x49a209(0x26e6)]===_0x49a209(0x1c60)?_0x1568fb[_0x49a209(0x1a4f)]=!![]:_0x1568fb[_0x49a209(0x1a4f)]=typeof _0x16ff8f!=='undefined'?!![]:![];}),_0x425509();})[_0x3f2fac(0x1cb0)](function(_0x1853f2){const _0x1fe20c=_0x3f2fac,_0x2f90a5=_0x1853f2&&_0x1853f2['rows']?_0x1853f2[_0x1fe20c(0x2214)]:[];_0x59f73f[_0x1fe20c(0x20bb)]=_0x39641b()['map'](_0x2f90a5,function(_0x5baaa5){const _0x41008e=_0x1fe20c;return _0x39641b()['find'](_0x59f73f[_0x41008e(0x122f)],{'id':_0x5baaa5['id']});}),_0x59f73f['startingSelectedItems']=angular['copy'](_0x59f73f['selectedItems']),_0x59f73f[_0x1fe20c(0x18c0)]['selectedItems']=_0x59f73f['selectedItems'],_0x59f73f[_0x1fe20c(0x18c0)][_0x1fe20c(0x122f)]=_0x39641b()[_0x1fe20c(0x2128)](_0x59f73f[_0x1fe20c(0x1372)],_0x59f73f[_0x1fe20c(0x18c0)][_0x1fe20c(0x20bb)],'id'),_0x43626d();})['catch'](function(_0x12821a){_0x1f360e(_0x12821a);});});}function _0x52c55e(){return _0x3ceff6(function(_0x47c038,_0x2352e9){const _0x4da61c=a0_0x5cbd;return _0x467f39[_0x4da61c(0x1198)][_0x4da61c(0xbf7)]({'sectionId':_0x59f73f[_0x4da61c(0x1f74)]['id'],'nolimit':!![]})[_0x4da61c(0x1d77)]['then'](function(_0x146314){_0x47c038(_0x146314);})['catch'](function(_0x4562b8){_0x2352e9(_0x4562b8);});});}function _0x425509(){return _0x3ceff6(function(_0x59da59,_0x28db98){const _0x1b7aea=a0_0x5cbd,_0x3425ab=_0x467f39[_0x59f73f['apiRoute']];return _0x3425ab[_0x59f73f[_0x1b7aea(0x21eb)]]({'id':_0x59f73f[_0x1b7aea(0x17b8)]['id'],'fields':_0x1b7aea(0x43c),'nolimit':!![]})[_0x1b7aea(0x1d77)]['then'](function(_0x4d409a){_0x59da59(_0x4d409a);})['catch'](function(_0x3c5c6e){_0x28db98(_0x3c5c6e);});});}function _0x11030a(){return _0x3ceff6(function(_0x3af47b,_0x6535c3){const _0x2e8cbe=a0_0x5cbd;return _0x467f39[_0x2e8cbe(0x22f2)]['get']({'fields':_0x2e8cbe(0x43c),'nolimit':!![]})[_0x2e8cbe(0x1d77)][_0x2e8cbe(0x1cb0)](function(_0x522d3e){_0x3af47b(_0x522d3e);})['catch'](function(_0x3db3ef){_0x6535c3(_0x3db3ef);});});}function _0x3e4adc(_0x34e5fc){return _0x3ceff6(function(_0x4efc3b,_0x21149d){const _0x543bad=a0_0x5cbd;if(_0x39641b()[_0x543bad(0xce9)](_0x34e5fc))_0x4efc3b();else{const _0x675e16=_0x467f39[_0x59f73f[_0x543bad(0x2847)]];_0x675e16[_0x59f73f[_0x543bad(0x45a)]]({'id':_0x59f73f[_0x543bad(0x17b8)]['id'],'ids':_0x39641b()[_0x543bad(0x1de2)](_0x34e5fc,'id')})['$promise'][_0x543bad(0x1cb0)](function(){_0x4efc3b();})['catch'](function(_0x3cdf39){_0x21149d(_0x3cdf39);});}});}function _0x3c23e2(_0x3bc933){return _0x3ceff6(function(_0x567089,_0x1b64c0){const _0x1277e0=a0_0x5cbd;if(_0x39641b()['isEmpty'](_0x3bc933))_0x567089();else{const _0x1dfd30=_0x467f39[_0x59f73f[_0x1277e0(0x2847)]];_0x1dfd30[_0x59f73f[_0x1277e0(0x9f3)]]({'id':_0x59f73f[_0x1277e0(0x17b8)]['id'],'ids':_0x39641b()[_0x1277e0(0x1de2)](_0x3bc933,'id')})[_0x1277e0(0x1d77)]['then'](function(){_0x567089();})[_0x1277e0(0x1c4)](function(_0x5ed413){_0x1b64c0(_0x5ed413);});}});}function _0x4698cd(){const _0x42968e=_0x4d9650;_0x59f73f['loading']=!![];const _0x55b79f=_0x39641b()[_0x42968e(0x2128)](_0x59f73f['startingSelectedItems'],_0x59f73f[_0x42968e(0x20bb)],'id'),_0x5c6db8=_0x39641b()['differenceBy'](_0x59f73f[_0x42968e(0x20bb)],_0x59f73f[_0x42968e(0x1456)],'id');return _0x3c23e2(_0x55b79f)[_0x42968e(0x1cb0)](function(){return _0x3e4adc(_0x5c6db8);})[_0x42968e(0x1cb0)](function(){const _0x45c31c=_0x42968e;_0x59f73f['pendingChanges']=![],_0x59f73f[_0x45c31c(0xbd5)]=angular[_0x45c31c(0x17fe)](_0x59f73f[_0x45c31c(0x1372)]),_0x59f73f[_0x45c31c(0x1456)]=angular[_0x45c31c(0x17fe)](_0x59f73f['selectedItems']),_0xd2e887[_0x45c31c(0x829)]({'title':_0x45c31c(0x201),'msg':_0x45c31c(0x1a03)});})[_0x42968e(0x1c4)](function(_0x4c30fe){const _0x6123c=_0x42968e;_0xd2e887[_0x6123c(0x218e)]({'title':_0x4c30fe['status']?_0x6123c(0xeb9)+_0x4c30fe['status']+_0x6123c(0x1657)+_0x4c30fe[_0x6123c(0xc22)]:_0x6123c(0x1221),'msg':_0x4c30fe['status']?JSON[_0x6123c(0x2701)](_0x4c30fe[_0x6123c(0x25c)]):_0x4c30fe[_0x6123c(0x147f)]()});})[_0x42968e(0x2e0)](function(){const _0x94ba28=_0x42968e;_0x59f73f[_0x94ba28(0x2279)]=![];});}function _0x50a9f6(){const _0x368b3b=_0x4d9650;_0x574f91[_0x368b3b(0x1426)]();}}const _0x345fdb=_0x1e6de1;;_0x1750c4['$inject']=[_0x5537c6(0x1463),_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x17b8),_0x5537c6(0x1e06),'Sequence','$q'];function _0x1750c4(_0x585897,_0x102530,_0x1382b8,_0x49caae,_0x221cdd,_0x519f45,_0x31a4c1,_0x56e97b){const _0x44af59=_0x5537c6,_0x4046dd=this;_0x4046dd[_0x44af59(0x1a9b)]=[],_0x4046dd[_0x44af59(0x122f)]=_0x519f45?_0x519f45:[],_0x4046dd['loading']=![],_0x4046dd['closeDialog']=_0x361b66,_0x4046dd[_0x44af59(0x23b2)]=_0x4b187a,_0x4046dd[_0x44af59(0x2322)]=_0x18c644,_0x4046dd[_0x44af59(0x143f)]=_0x238622,_0x4046dd[_0x44af59(0x5f6)]=_0x33e92c,_0x4046dd['toggleAll']=_0x5a8942,_0x4046dd[_0x44af59(0x1f57)]=_0x29d924;function _0x18c644(_0x32827f,_0x219f6d){const _0x4d8634=_0x44af59,_0x2132a9=_0x219f6d['indexOf'](_0x32827f);_0x2132a9>-0x1?_0x219f6d[_0x4d8634(0x159c)](_0x2132a9,0x1):_0x219f6d[_0x4d8634(0x2785)](_0x32827f);}function _0x4b187a(_0x1546d9,_0x5cbd69){const _0x453a05=_0x44af59;return _0x5cbd69[_0x453a05(0xd8a)](_0x1546d9)>-0x1;}function _0x238622(){const _0x4fe1d9=_0x44af59;return _0x4046dd[_0x4fe1d9(0x1a9b)]['length']!==0x0&&_0x4046dd[_0x4fe1d9(0x1a9b)]['length']!==_0x4046dd[_0x4fe1d9(0x122f)][_0x4fe1d9(0xfd0)];}function _0x33e92c(){const _0x29761b=_0x44af59;return _0x4046dd[_0x29761b(0x1a9b)][_0x29761b(0xfd0)]===_0x4046dd[_0x29761b(0x122f)]['length'];}function _0x5a8942(){const _0x5de231=_0x44af59;if(_0x4046dd[_0x5de231(0x1a9b)]['length']===_0x4046dd[_0x5de231(0x122f)]['length'])_0x4046dd[_0x5de231(0x1a9b)]=[];else(_0x4046dd['selected'][_0x5de231(0xfd0)]===0x0||_0x4046dd[_0x5de231(0x1a9b)][_0x5de231(0xfd0)]>0x0)&&(_0x4046dd[_0x5de231(0x1a9b)]=_0x4046dd[_0x5de231(0x122f)][_0x5de231(0x14cb)](0x0));}function _0x361b66(){const _0x13bc11=_0x44af59;_0x102530[_0x13bc11(0x1426)]();}function _0x29d924(){const _0x2cee98=_0x44af59;_0x4046dd[_0x2cee98(0x2279)]=!![];const _0x52cc94=_0x3c8865();_0x52cc94[_0x2cee98(0x2e0)](function(){const _0x906fc3=_0x2cee98;_0x4046dd[_0x906fc3(0x2279)]=![],_0x361b66();});}function _0x3c8865(){return _0x56e97b(function(_0x54d93f){for(let _0x2ba7f7=0x0;_0x2ba7f7<_0x4046dd['selected']['length'];_0x2ba7f7+=0x1){_0x37e6cf(_0x221cdd['id'],_0x4046dd['selected'][_0x2ba7f7]);}_0x259dac(_0x54d93f);});}function _0x37e6cf(_0x2ecc1b,_0x1ba85a){const _0xd4d98b=_0x44af59,_0x1e6d70=_0x1ba85a['id'];_0x31a4c1[_0xd4d98b(0x273)](function(){const _0x326011=_0xd4d98b;return _0x49caae[_0x326011(0x26b3)][_0x326011(0x157b)]({'id':_0x2ecc1b,'ids':_0x1e6d70})['$promise']['then'](function(){const _0x220cad=_0x326011;return _0x49caae[_0x220cad(0x26b3)][_0x220cad(0x285)]({'id':_0x2ecc1b,'ids':_0x1e6d70,'dialCheckDuplicateType':_0x220cad(0x382)})[_0x220cad(0x1d77)];})[_0x326011(0x1cb0)](function(){const _0x44c3d7=_0x326011;_0x1382b8[_0x44c3d7(0x829)]({'title':_0x44c3d7(0xcf9),'msg':_0x44c3d7(0x8ae)+_0x1ba85a[_0x44c3d7(0x16b6)]+_0x44c3d7(0x1e07)});})[_0x326011(0x1c4)](function(_0x5820b3){const _0x38a958=_0x326011;_0x1382b8[_0x38a958(0x218e)]({'title':_0x5820b3[_0x38a958(0x291)]?_0x38a958(0xeb9)+_0x5820b3[_0x38a958(0x291)]+'\x20-\x20'+_0x5820b3[_0x38a958(0xc22)]:_0x38a958(0x2587),'msg':_0x5820b3[_0x38a958(0x291)]?JSON[_0x38a958(0x2701)](_0x5820b3[_0x38a958(0x25c)]):_0x5820b3[_0x38a958(0x147f)]()});});});}function _0x259dac(_0x1f3e2f){_0x31a4c1['enqueue'](function(){return _0x1f3e2f();});}}const _0x2c29ef=_0x1750c4;;_0x37897c[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty',_0x5537c6(0x142b),'queueCampaign',_0x5537c6(0x1ae),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x37897c(_0x56f6e5,_0x50bd31,_0x1954fd,_0x3f060d,_0x8e695a,_0x5ed939,_0x3a1884,_0x369bc7){const _0xfd9d45=_0x5537c6,_0x4dd2d8=this;_0x4dd2d8['currentUser']=_0x3a1884['getCurrentUser'](),_0x4dd2d8[_0xfd9d45(0x17b8)]=_0x8e695a,_0x4dd2d8['crudPermissions']=_0x369bc7,_0x4dd2d8[_0xfd9d45(0x1cbc)]=0x0,_0x4dd2d8[_0xfd9d45(0x122f)]=[],_0x4dd2d8[_0xfd9d45(0x1372)]=[],_0x4dd2d8[_0xfd9d45(0x20bb)]=[],_0x4dd2d8[_0xfd9d45(0xbd5)]=[],_0x4dd2d8[_0xfd9d45(0x1456)]=[],_0x4dd2d8['pendingChanges']=![],_0x4dd2d8[_0xfd9d45(0x18c0)]={'readOnly':!_0x4dd2d8[_0xfd9d45(0x1b1a)][_0xfd9d45(0xb3d)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0xfd9d45(0x16b6),'line1':_0xfd9d45(0x16b6),'line2':'','line3':'','labelAll':_0x5ed939[_0xfd9d45(0x25cc)](_0xfd9d45(0x1f3)),'labelSelected':_0x5ed939[_0xfd9d45(0x25cc)](_0xfd9d45(0x1b5f)),'transferCallback':function(_0x1f6263,_0x1c836d){const _0x57693c=_0xfd9d45;_0x1c836d?_0x1f6263[_0x57693c(0xf90)](function(_0x268e3a){const _0xd72075=_0x57693c;_0x268e3a[_0xd72075(0x1cbc)]=undefined;}):_0x1f6263['forEach'](function(_0xb5fccd){const _0x29a41f=_0x57693c;_0xb5fccd[_0x29a41f(0x1cbc)]=_0x29a41f(0x455)+_0x4dd2d8[_0x29a41f(0x1cbc)];});const _0x22c5bb=_0x39641b()[_0x57693c(0x1423)](_0x4dd2d8[_0x57693c(0x1456)],_0x4dd2d8[_0x57693c(0x20bb)],'id');_0x4dd2d8[_0x57693c(0x50c)]=_0x39641b()['isEmpty'](_0x22c5bb)?![]:!![];}},_0x4dd2d8[_0xfd9d45(0x1a34)]=_0x41d0bf,_0x4dd2d8[_0xfd9d45(0x1c56)]=_0x34311f,_0x4dd2d8[_0xfd9d45(0xda0)]=_0x28d3fd;function _0x41d0bf(){const _0x10a774=_0xfd9d45;return _0x3a1884['hasRole']('admin')?_0x33b960()['catch'](function(_0x26f455){const _0x252ab7=a0_0x5cbd;_0x1954fd[_0x252ab7(0x218e)]({'title':_0x26f455['status']?_0x252ab7(0xeb9)+_0x26f455['status']+_0x252ab7(0x1657)+_0x26f455[_0x252ab7(0xc22)]:_0x252ab7(0x2206),'msg':_0x26f455[_0x252ab7(0x291)]?JSON[_0x252ab7(0x2701)](_0x26f455[_0x252ab7(0x25c)]):_0x26f455[_0x252ab7(0x147f)]()});}):_0x5c68d3()[_0x10a774(0x1cb0)](function(_0x2f1995){const _0x514f20=_0x10a774;return _0x4dd2d8[_0x514f20(0x1f74)]=_0x2f1995,_0x33b960();})[_0x10a774(0x1c4)](function(_0x281362){const _0x2b4d7e=_0x10a774;_0x1954fd[_0x2b4d7e(0x218e)]({'title':_0x281362[_0x2b4d7e(0x291)]?_0x2b4d7e(0xeb9)+_0x281362[_0x2b4d7e(0x291)]+'\x20-\x20'+_0x281362[_0x2b4d7e(0xc22)]:_0x2b4d7e(0x2206),'msg':_0x281362['status']?JSON[_0x2b4d7e(0x2701)](_0x281362[_0x2b4d7e(0x25c)]):_0x281362[_0x2b4d7e(0x147f)]()});});}function _0x5c68d3(){return _0x50bd31(function(_0x124b78,_0x52741){const _0x2bd1bb=a0_0x5cbd;_0x3f060d[_0x2bd1bb(0x2199)][_0x2bd1bb(0xbf7)]({'userProfileId':_0x4dd2d8['currentUser'][_0x2bd1bb(0x13c1)],'name':_0x2bd1bb(0x492)})[_0x2bd1bb(0x1d77)]['then'](function(_0x21f80b){const _0x3500ed=_0x2bd1bb,_0x525dbc=_0x21f80b&&_0x21f80b[_0x3500ed(0x2214)]?_0x21f80b[_0x3500ed(0x2214)][0x0]:null;_0x124b78(_0x525dbc);})[_0x2bd1bb(0x1c4)](function(_0x28a103){_0x52741(_0x28a103);});});}function _0x33b960(){return _0x50bd31(function(_0x15fc7a,_0x17f637){const _0x75de41=a0_0x5cbd;return _0x35ef99()[_0x75de41(0x1cb0)](function(_0x4f0905){const _0xc380d9=_0x75de41;return _0x4dd2d8['items']=_0x4f0905[_0xc380d9(0x2214)]?_0x4f0905[_0xc380d9(0x2214)]:[],_0x3a1884['hasRole'](_0xc380d9(0x1c60))?_0x4f0905:_0x4dd2d8['section']?_0x4dd2d8['section'][_0xc380d9(0x12f4)]?_0x4f0905:_0x2ebf33():null;})[_0x75de41(0x1cb0)](function(_0x1b438a){const _0x254bac=_0x75de41,_0x1c1659=_0x1b438a&&_0x1b438a['rows']?_0x1b438a['rows']:[];return _0x4dd2d8[_0x254bac(0x1372)]=_0x39641b()[_0x254bac(0x1de2)](_0x1c1659,function(_0x9454f2){const _0x4a5741=_0x254bac;return _0x39641b()[_0x4a5741(0x13b4)](_0x4dd2d8[_0x4a5741(0x122f)],{'id':_0x3a1884[_0x4a5741(0x22b6)](_0x4a5741(0x1c60))||_0x4dd2d8[_0x4a5741(0x1f74)]['autoAssociation']?_0x9454f2['id']:_0x9454f2[_0x4a5741(0x2982)]});}),_0x4dd2d8[_0x254bac(0x122f)][_0x254bac(0xf90)](function(_0x34b7f5){const _0x159a61=_0x254bac,_0x5e0956=_0x39641b()[_0x159a61(0x13b4)](_0x4dd2d8['allowedItems'],{'id':_0x34b7f5['id']});_0x3a1884[_0x159a61(0x22b6)](_0x159a61(0x1c60))?_0x34b7f5[_0x159a61(0x1a4f)]=!![]:_0x34b7f5[_0x159a61(0x1a4f)]=typeof _0x5e0956!==_0x159a61(0x16b5)?!![]:![];}),_0x44d175();})[_0x75de41(0x1cb0)](function(_0x3c5f53){const _0x38ad44=_0x75de41,_0x47fb9b=_0x3c5f53&&_0x3c5f53['rows']?_0x3c5f53[_0x38ad44(0x2214)]:[];_0x4dd2d8[_0x38ad44(0x20bb)]=_0x39641b()['map'](_0x47fb9b,function(_0x2c6afc){const _0x2c46d5=_0x38ad44;return _0x39641b()[_0x2c46d5(0x13b4)](_0x4dd2d8['items'],{'id':_0x2c6afc['id']});}),_0x4dd2d8[_0x38ad44(0x1456)]=angular[_0x38ad44(0x17fe)](_0x4dd2d8[_0x38ad44(0x20bb)]),_0x4dd2d8[_0x38ad44(0x18c0)][_0x38ad44(0x20bb)]=_0x4dd2d8[_0x38ad44(0x20bb)],_0x4dd2d8[_0x38ad44(0x18c0)][_0x38ad44(0x122f)]=_0x39641b()[_0x38ad44(0x2128)](_0x4dd2d8[_0x38ad44(0x1372)],_0x4dd2d8['dualMultiselectOptions']['selectedItems'],'id'),_0x15fc7a();})[_0x75de41(0x1c4)](function(_0x493043){_0x17f637(_0x493043);});});}function _0x2ebf33(){return _0x50bd31(function(_0x504ac2,_0x3d48e0){const _0x85c1ea=a0_0x5cbd;return _0x3f060d['userProfileResource'][_0x85c1ea(0xbf7)]({'sectionId':_0x4dd2d8[_0x85c1ea(0x1f74)]['id'],'nolimit':!![]})[_0x85c1ea(0x1d77)]['then'](function(_0x1bb172){_0x504ac2(_0x1bb172);})['catch'](function(_0x4a40aa){_0x3d48e0(_0x4a40aa);});});}function _0x44d175(){return _0x50bd31(function(_0x445c4c,_0xbcaa3f){const _0x2a8498=a0_0x5cbd;return _0x3f060d[_0x2a8498(0x26b3)][_0x2a8498(0x1407)]({'id':_0x4dd2d8[_0x2a8498(0x17b8)]['id'],'fields':_0x2a8498(0x43c),'nolimit':!![]})[_0x2a8498(0x1d77)][_0x2a8498(0x1cb0)](function(_0x25b3b3){_0x445c4c(_0x25b3b3);})[_0x2a8498(0x1c4)](function(_0x7a661a){_0xbcaa3f(_0x7a661a);});});}function _0x35ef99(){return _0x50bd31(function(_0x40bfaf,_0x181fa6){const _0x572aad=a0_0x5cbd;return _0x3f060d[_0x572aad(0xdfd)][_0x572aad(0xbf7)]({'fields':_0x572aad(0x43c),'nolimit':!![]})[_0x572aad(0x1d77)][_0x572aad(0x1cb0)](function(_0x2e4d88){_0x40bfaf(_0x2e4d88);})['catch'](function(_0x353bec){_0x181fa6(_0x353bec);});});}function _0x3852f7(_0x1a7f09){return _0x50bd31(function(_0x3b3342,_0x20979e){const _0x12f995=a0_0x5cbd;if(_0x39641b()[_0x12f995(0xce9)](_0x1a7f09))_0x3b3342();else{const _0x586930=_0x39641b()['map'](_0x1a7f09,function(_0x7692ef){const _0x331e34=_0x12f995;return{'id':_0x7692ef['id'],'penalty':_0x39641b()[_0x331e34(0x1730)](_0x7692ef[_0x331e34(0x1cbc)],'penalty\x20')};});return _0x3f060d[_0x12f995(0x26b3)][_0x12f995(0x28d9)]({'id':_0x4dd2d8[_0x12f995(0x17b8)]['id'],'teams':_0x586930})[_0x12f995(0x1d77)][_0x12f995(0x1cb0)](function(){_0x3b3342();})['catch'](function(_0x10f06d){_0x20979e(_0x10f06d);});}});}function _0x40b3b6(_0x5aafcc){return _0x50bd31(function(_0x1904fb,_0x4ceb65){const _0x5c22df=a0_0x5cbd;_0x39641b()[_0x5c22df(0xce9)](_0x5aafcc)?_0x1904fb():_0x3f060d[_0x5c22df(0x26b3)][_0x5c22df(0xfcc)]({'id':_0x4dd2d8['queueCampaign']['id'],'ids':_0x39641b()[_0x5c22df(0x1de2)](_0x5aafcc,'id')})[_0x5c22df(0x1d77)][_0x5c22df(0x1cb0)](function(){_0x1904fb();})[_0x5c22df(0x1c4)](function(_0x7ebf85){_0x4ceb65(_0x7ebf85);});});}function _0x34311f(){const _0xb99525=_0xfd9d45,_0x8d63ca=_0x39641b()[_0xb99525(0x2128)](_0x4dd2d8[_0xb99525(0x1456)],_0x4dd2d8['selectedItems'],'id'),_0x58edfd=_0x39641b()[_0xb99525(0x2128)](_0x4dd2d8[_0xb99525(0x20bb)],_0x4dd2d8['startingSelectedItems'],'id');return _0x40b3b6(_0x8d63ca)[_0xb99525(0x1cb0)](function(){return _0x3852f7(_0x58edfd);})['then'](function(){const _0x126c3=_0xb99525;_0x4dd2d8[_0x126c3(0x50c)]=![],_0x4dd2d8[_0x126c3(0xbd5)]=angular[_0x126c3(0x17fe)](_0x4dd2d8[_0x126c3(0x1372)]),_0x4dd2d8[_0x126c3(0x1456)]=angular['copy'](_0x4dd2d8[_0x126c3(0x20bb)]),_0x1954fd[_0x126c3(0x829)]({'title':'SUCCESS','msg':'Teams\x20association\x20has\x20been\x20updated!'});})[_0xb99525(0x1c4)](function(_0x518c53){const _0x2d7464=_0xb99525;_0x1954fd[_0x2d7464(0x218e)]({'title':_0x518c53[_0x2d7464(0x291)]?_0x2d7464(0xeb9)+_0x518c53['status']+'\x20-\x20'+_0x518c53[_0x2d7464(0xc22)]:_0x2d7464(0x1221),'msg':_0x518c53[_0x2d7464(0x291)]?JSON[_0x2d7464(0x2701)](_0x518c53[_0x2d7464(0x25c)]):_0x518c53['toString']()});});}function _0x28d3fd(){const _0x5acd49=_0xfd9d45;_0x56f6e5[_0x5acd49(0x1426)]();}}const _0x459587=_0x37897c;;const _0x58c80c=_0x5074a3['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/clone/clone.html/clone.html';;const _0x3b2b2d=_0x5074a3['p']+_0x5537c6(0x277a);;const _0x350739=_0x5074a3['p']+_0x5537c6(0xd47);;const _0x47738e=_0x5074a3['p']+_0x5537c6(0x2400);;const _0xbdcff2=_0x5074a3['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/resetlist/resetlist.html/resetlist.html';;_0x3da3fb['$inject']=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'$translate',_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x17b8),_0x5537c6(0x2199)];function _0x3da3fb(_0x51b825,_0x1a8686,_0x3767c4,_0x3af08f,_0x2668c2,_0x284b13,_0xd4929e,_0x39e37e,_0x3b072f,_0x481787,_0xc2f39c,_0x19bbef){const _0x5d8548=_0x5537c6,_0x14d4db=this;_0x14d4db[_0x5d8548(0xe76)]=_0x481787[_0x5d8548(0x21e8)](),_0x14d4db['license']=_0x284b13,_0x14d4db['setting']=_0xd4929e,_0x14d4db[_0x5d8548(0x1b0c)]=_0x14d4db['setting'][_0x5d8548(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x14d4db['location']=_0x1a8686[_0x5d8548(0x2276)]()+_0x5d8548(0x138b)+_0x1a8686[_0x5d8548(0x17d8)](),_0x14d4db['queueCampaign']=_0xc2f39c||_0x51b825[_0x5d8548(0x1dfe)][_0x5d8548(0x17b8)]||{},_0x14d4db[_0x5d8548(0x2199)]=_0x19bbef&&_0x19bbef['count']==0x1?_0x19bbef[_0x5d8548(0x2214)][0x0]:null,_0x14d4db['crudPermissions']=_0x481787[_0x5d8548(0x14ea)](_0x14d4db[_0x5d8548(0x2199)]?_0x14d4db[_0x5d8548(0x2199)][_0x5d8548(0x1b1a)]:null),_0x14d4db[_0x5d8548(0xf4c)]={},_0x14d4db[_0x5d8548(0x8ec)]=_0x51b825[_0x5d8548(0x1dfe)][_0x5d8548(0x291e)]||0x0,_0x14d4db[_0x5d8548(0x388)]=_0x1f0250,_0x14d4db[_0x5d8548(0xb80)]=_0xf466d1,_0x14d4db['blacklistadddialog']=_0x58d90b,_0x14d4db[_0x5d8548(0x1d63)]=_0x53c05c,_0x14d4db['agentadddialog']=_0x592a80,_0x14d4db[_0x5d8548(0x20c4)]=_0x1708bd,_0x14d4db['gotogoto']=_0x557816,_0x14d4db[_0x5d8548(0x494)]=_0x3b072f[_0x5d8548(0x28c7)],_0x14d4db[_0x5d8548(0x26ea)]=_0x562aeb,_0x14d4db[_0x5d8548(0x70e)]=_0x6633e1,_0x481787[_0x5d8548(0x22b6)](_0x5d8548(0x1c60))?_0x39e37e['voiceMusicOnHold'][_0x5d8548(0xbf7)]({'fields':_0x5d8548(0x43c),'nolimit':_0x5d8548(0x44d)})[_0x5d8548(0x1d77)][_0x5d8548(0x1cb0)](function(_0x26c02e){const _0x19c52b=_0x5d8548;_0x14d4db[_0x19c52b(0x1bd2)]=_0x26c02e[_0x19c52b(0x2214)]||[];})[_0x5d8548(0x1c4)](function(_0x461645){const _0x1e8cda=_0x5d8548;_0x3b072f[_0x1e8cda(0x218e)]({'title':_0x461645[_0x1e8cda(0x291)]?_0x1e8cda(0xeb9)+_0x461645[_0x1e8cda(0x291)]+_0x1e8cda(0x1657)+_0x461645[_0x1e8cda(0xc22)]:_0x1e8cda(0x341),'msg':_0x461645[_0x1e8cda(0x25c)]?JSON[_0x1e8cda(0x2701)](_0x461645[_0x1e8cda(0x25c)]):_0x461645[_0x1e8cda(0x147f)]()});}):_0x39e37e[_0x5d8548(0x157d)][_0x5d8548(0xbf7)]({'fields':'id,name','nolimit':_0x5d8548(0x44d)})['$promise']['then'](function(_0x1e8960){const _0xcfdc04=_0x5d8548;_0x14d4db[_0xcfdc04(0x1bd2)]=_0x1e8960[_0xcfdc04(0x2214)]||[];})[_0x5d8548(0x1cb0)](function(){const _0x5caf2d=_0x5d8548;return _0x39e37e[_0x5caf2d(0x2199)][_0x5caf2d(0xbf7)]({'userProfileId':_0x14d4db[_0x5caf2d(0xe76)][_0x5caf2d(0x13c1)],'sectionId':0x197})['$promise'];})[_0x5d8548(0x1cb0)](function(_0x1a8fa2){const _0x368583=_0x5d8548,_0x4ab75a=_0x1a8fa2&&_0x1a8fa2[_0x368583(0x2214)]?_0x1a8fa2[_0x368583(0x2214)][0x0]:null;if(!_0x4ab75a)return _0x39e37e['voiceMusicOnHold'][_0x368583(0xbf7)]({'fields':'id,name','nolimit':'true','defaultEntry':0x1})['$promise'][_0x368583(0x1cb0)](function(_0x37e629){const _0x1a8de9=_0x368583;_0x14d4db['musiconholds']=_0x37e629[_0x1a8de9(0x2214)]||[];});else{if(!_0x4ab75a[_0x368583(0x12f4)])return _0x39e37e[_0x368583(0x1198)][_0x368583(0xbf7)]({'sectionId':_0x4ab75a['id']})[_0x368583(0x1d77)][_0x368583(0x1cb0)](function(_0x5b973d){const _0x4b964f=_0x368583,_0x2de3c8=_0x39641b()['map'](_0x5b973d[_0x4b964f(0x2214)],function(_0x4c0801){const _0x307c3a=_0x4b964f;return _0x39641b()['find'](_0x14d4db[_0x307c3a(0x1bd2)],{'id':_0x4c0801[_0x307c3a(0x2982)]});});let _0x273f1c=null;_0x14d4db[_0x4b964f(0x17b8)]&&(_0x273f1c=_0x39641b()[_0x4b964f(0x13b4)](_0x14d4db['musiconholds'],{'name':_0x14d4db['queueCampaign'][_0x4b964f(0x15ae)]}));if(_0x273f1c&&!_0x39641b()['some'](_0x2de3c8,['id',_0x273f1c['id']])){const _0x1ade95=_0x39641b()[_0x4b964f(0x13b4)](_0x14d4db['musiconholds'],{'id':_0x273f1c['id']});_0x1ade95[_0x4b964f(0x15da)]=![],_0x2de3c8[_0x4b964f(0x2785)](_0x1ade95);}_0x14d4db[_0x4b964f(0x1bd2)]=_0x2de3c8;});}})[_0x5d8548(0x1c4)](function(_0x4766db){const _0x2ae51a=_0x5d8548;_0x3b072f[_0x2ae51a(0x218e)]({'title':_0x4766db['status']?_0x2ae51a(0xeb9)+_0x4766db[_0x2ae51a(0x291)]+_0x2ae51a(0x1657)+_0x4766db[_0x2ae51a(0xc22)]:_0x2ae51a(0x2477),'msg':_0x4766db[_0x2ae51a(0x25c)]?JSON['stringify'](_0x4766db['data']):_0x4766db[_0x2ae51a(0x147f)]()});}),_0x481787['hasRole'](_0x5d8548(0x1c60))?_0x39e37e['trunk'][_0x5d8548(0xbf7)]({'fields':'id,name','sort':_0x5d8548(0x16b6)})[_0x5d8548(0x1d77)]['then'](function(_0x3bfe0f){const _0x14f847=_0x5d8548;_0x14d4db[_0x14f847(0x1363)]=_0x3bfe0f[_0x14f847(0x2214)]||[];})['catch'](function(_0x21da7e){const _0x591765=_0x5d8548;_0x3b072f[_0x591765(0x218e)]({'title':_0x21da7e[_0x591765(0x291)]?_0x591765(0xeb9)+_0x21da7e[_0x591765(0x291)]+_0x591765(0x1657)+_0x21da7e['statusText']:_0x591765(0x14fc),'msg':_0x21da7e[_0x591765(0x25c)]?JSON[_0x591765(0x2701)](_0x21da7e[_0x591765(0x25c)]):_0x21da7e[_0x591765(0x147f)]()});}):_0x39e37e['trunk']['get']({'fields':'id,name','sort':'name'})[_0x5d8548(0x1d77)][_0x5d8548(0x1cb0)](function(_0xfe3bcc){const _0x2343fb=_0x5d8548;_0x14d4db[_0x2343fb(0x1363)]=_0xfe3bcc['rows']||[];})[_0x5d8548(0x1cb0)](function(){const _0x462c59=_0x5d8548;return _0x39e37e[_0x462c59(0x2199)][_0x462c59(0xbf7)]({'userProfileId':_0x14d4db[_0x462c59(0xe76)][_0x462c59(0x13c1)],'sectionId':0x3f3})['$promise'];})[_0x5d8548(0x1cb0)](function(_0x3f4475){const _0x408b76=_0x5d8548,_0x5bc5fa=_0x3f4475&&_0x3f4475[_0x408b76(0x2214)]?_0x3f4475['rows'][0x0]:null;if(!_0x5bc5fa){const _0x62a38a=[];let _0x4aae58=null;_0x14d4db['queueCampaign']&&(_0x4aae58=_0x39641b()[_0x408b76(0x13b4)](_0x14d4db[_0x408b76(0x1363)],{'id':Number(_0x14d4db[_0x408b76(0x17b8)]['TrunkId'])}));for(let _0x8c58f2=0x0;_0x8c58f2<_0x14d4db['trunks'][_0x408b76(0xfd0)];_0x8c58f2++){_0x4aae58&&_0x14d4db[_0x408b76(0x1363)][_0x8c58f2]['id']===_0x4aae58['id']&&(_0x14d4db[_0x408b76(0x1363)][_0x8c58f2][_0x408b76(0x15da)]=![],_0x62a38a[_0x408b76(0x2785)](_0x14d4db[_0x408b76(0x1363)][_0x8c58f2]));}_0x14d4db['trunks']=_0x62a38a;}else{if(!_0x5bc5fa[_0x408b76(0x12f4)])return _0x39e37e[_0x408b76(0x1198)][_0x408b76(0xbf7)]({'sectionId':_0x5bc5fa['id']})['$promise']['then'](function(_0xe8b6a){const _0x450c00=_0x408b76,_0x57b7d5=_0x39641b()[_0x450c00(0x1de2)](_0xe8b6a[_0x450c00(0x2214)],function(_0x5874c0){const _0x4543d2=_0x450c00;return _0x39641b()[_0x4543d2(0x13b4)](_0x14d4db[_0x4543d2(0x1363)],{'id':_0x5874c0[_0x4543d2(0x2982)]});});let _0x58b794=null;_0x14d4db[_0x450c00(0x17b8)]&&(_0x58b794=_0x39641b()[_0x450c00(0x13b4)](_0x14d4db[_0x450c00(0x1363)],{'id':Number(_0x14d4db['queueCampaign'][_0x450c00(0x7ab)])}));if(_0x58b794&&!_0x39641b()['some'](_0x57b7d5,['id',_0x58b794['id']])){const _0x367b72=_0x39641b()['find'](_0x14d4db[_0x450c00(0x1363)],{'id':_0x58b794['id']});_0x367b72[_0x450c00(0x15da)]=![],_0x57b7d5[_0x450c00(0x2785)](_0x367b72);}_0x14d4db[_0x450c00(0x1363)]=_0x57b7d5;});}})[_0x5d8548(0x1c4)](function(_0x50e91e){const _0x46d756=_0x5d8548;_0x3b072f[_0x46d756(0x218e)]({'title':_0x50e91e['status']?_0x46d756(0xeb9)+_0x50e91e['status']+_0x46d756(0x1657)+_0x50e91e[_0x46d756(0xc22)]:_0x46d756(0x2040),'msg':_0x50e91e[_0x46d756(0x25c)]?JSON[_0x46d756(0x2701)](_0x50e91e[_0x46d756(0x25c)]):_0x50e91e[_0x46d756(0x147f)]()});}),_0x481787[_0x5d8548(0x22b6)](_0x5d8548(0x1c60))?_0x39e37e['squareProject'][_0x5d8548(0xbf7)]({'fields':'id,name','sort':_0x5d8548(0x16b6)})[_0x5d8548(0x1d77)]['then'](function(_0x5c6151){const _0x442b5d=_0x5d8548;_0x14d4db[_0x442b5d(0x2981)]=_0x5c6151[_0x442b5d(0x2214)]||[];})[_0x5d8548(0x1c4)](function(_0x20e717){const _0x292176=_0x5d8548;_0x3b072f[_0x292176(0x218e)]({'title':_0x20e717[_0x292176(0x291)]?_0x292176(0xeb9)+_0x20e717['status']+'\x20-\x20'+_0x20e717[_0x292176(0xc22)]:'SYSTEM:GET_PROJECTS','msg':_0x20e717[_0x292176(0x25c)]?JSON['stringify'](_0x20e717[_0x292176(0x25c)]):_0x20e717[_0x292176(0x147f)]()});}):_0x39e37e[_0x5d8548(0xf61)][_0x5d8548(0xbf7)]({'fields':_0x5d8548(0x43c),'sort':'name'})[_0x5d8548(0x1d77)][_0x5d8548(0x1cb0)](function(_0x49db78){const _0x245480=_0x5d8548;_0x14d4db[_0x245480(0x2981)]=_0x49db78[_0x245480(0x2214)]||[];})[_0x5d8548(0x1cb0)](function(){const _0x9cf4a=_0x5d8548;return _0x39e37e['userProfileSection'][_0x9cf4a(0xbf7)]({'userProfileId':_0x14d4db['currentUser'][_0x9cf4a(0x13c1)],'sectionId':0x44f})[_0x9cf4a(0x1d77)];})['then'](function(_0x3660d1){const _0x331f94=_0x5d8548,_0x4ba065=_0x3660d1&&_0x3660d1[_0x331f94(0x2214)]?_0x3660d1['rows'][0x0]:null;if(!_0x4ba065){const _0x4288ca=[];let _0x448f23=null;_0x14d4db[_0x331f94(0x17b8)]&&(_0x448f23=_0x39641b()[_0x331f94(0x13b4)](_0x14d4db[_0x331f94(0x2981)],{'name':_0x14d4db['queueCampaign'][_0x331f94(0x100e)]}));for(let _0x55bc65=0x0;_0x55bc65<_0x14d4db['projects']['length'];_0x55bc65++){_0x448f23&&_0x14d4db['projects'][_0x55bc65]['id']===_0x448f23['id']&&(_0x14d4db[_0x331f94(0x2981)][_0x55bc65][_0x331f94(0x15da)]=![],_0x4288ca[_0x331f94(0x2785)](_0x14d4db['projects'][_0x55bc65]));}_0x14d4db[_0x331f94(0x2981)]=_0x4288ca;}else{if(!_0x4ba065[_0x331f94(0x12f4)])return _0x39e37e['userProfileResource']['get']({'sectionId':_0x4ba065['id']})[_0x331f94(0x1d77)][_0x331f94(0x1cb0)](function(_0x44a8c1){const _0x2933a3=_0x331f94,_0x1040ad=_0x39641b()[_0x2933a3(0x1de2)](_0x44a8c1[_0x2933a3(0x2214)],function(_0x46108d){const _0x38c071=_0x2933a3;return _0x39641b()[_0x38c071(0x13b4)](_0x14d4db[_0x38c071(0x2981)],{'id':_0x46108d[_0x38c071(0x2982)]});});let _0x403e41=null;_0x14d4db[_0x2933a3(0x17b8)]&&(_0x403e41=_0x39641b()[_0x2933a3(0x13b4)](_0x14d4db['projects'],{'name':_0x14d4db[_0x2933a3(0x17b8)]['dialQueueProject']}));if(_0x403e41&&!_0x39641b()['some'](_0x1040ad,['id',_0x403e41['id']])){const _0x338db9=_0x39641b()[_0x2933a3(0x13b4)](_0x14d4db[_0x2933a3(0x2981)],{'id':_0x403e41['id']});_0x338db9[_0x2933a3(0x15da)]=![],_0x1040ad['push'](_0x338db9);}_0x14d4db[_0x2933a3(0x2981)]=_0x1040ad;});}})['catch'](function(_0x1dc794){const _0x483d8c=_0x5d8548;_0x3b072f['error']({'title':_0x1dc794[_0x483d8c(0x291)]?_0x483d8c(0xeb9)+_0x1dc794[_0x483d8c(0x291)]+'\x20-\x20'+_0x1dc794[_0x483d8c(0xc22)]:'SYSTEM:GETprojects','msg':_0x1dc794[_0x483d8c(0x25c)]?JSON[_0x483d8c(0x2701)](_0x1dc794[_0x483d8c(0x25c)]):_0x1dc794['toString']()});}),_0x481787[_0x5d8548(0x22b6)]('admin')?_0x39e37e[_0x5d8548(0x1ac8)][_0x5d8548(0xbf7)]({'fields':_0x5d8548(0x43c),'sort':_0x5d8548(0x16b6),'IntervalId':_0x5d8548(0xd38)})[_0x5d8548(0x1d77)][_0x5d8548(0x1cb0)](function(_0x591fd5){_0x14d4db['interval']=_0x591fd5['rows']||[];})[_0x5d8548(0x1c4)](function(_0x16b9f6){const _0x3f0512=_0x5d8548;_0x3b072f[_0x3f0512(0x218e)]({'title':_0x16b9f6['status']?'API:'+_0x16b9f6[_0x3f0512(0x291)]+_0x3f0512(0x1657)+_0x16b9f6[_0x3f0512(0xc22)]:_0x3f0512(0x1917),'msg':_0x16b9f6[_0x3f0512(0x25c)]?JSON[_0x3f0512(0x2701)](_0x16b9f6[_0x3f0512(0x25c)]):_0x16b9f6[_0x3f0512(0x147f)]()});}):_0x39e37e['interval'][_0x5d8548(0xbf7)]({'fields':_0x5d8548(0x43c),'sort':_0x5d8548(0x16b6),'IntervalId':_0x5d8548(0xd38)})[_0x5d8548(0x1d77)][_0x5d8548(0x1cb0)](function(_0x520e72){const _0x2e5ae2=_0x5d8548;_0x14d4db[_0x2e5ae2(0x1ac8)]=_0x520e72[_0x2e5ae2(0x2214)]||[];})[_0x5d8548(0x1cb0)](function(){const _0x548da2=_0x5d8548;return _0x39e37e[_0x548da2(0x2199)][_0x548da2(0xbf7)]({'userProfileId':_0x14d4db[_0x548da2(0xe76)][_0x548da2(0x13c1)],'sectionId':0x3ec})[_0x548da2(0x1d77)];})[_0x5d8548(0x1cb0)](function(_0x54aa8e){const _0x472199=_0x5d8548,_0x1fd1f5=_0x54aa8e&&_0x54aa8e[_0x472199(0x2214)]?_0x54aa8e[_0x472199(0x2214)][0x0]:null;if(!_0x1fd1f5){const _0x8a5cd8=[];let _0x21ff7c=null;_0x14d4db[_0x472199(0x17b8)]&&(_0x21ff7c=_0x39641b()[_0x472199(0x13b4)](_0x14d4db['interval'],{'id':Number(_0x14d4db[_0x472199(0x17b8)][_0x472199(0x1a60)])}));for(let _0x1abce0=0x0;_0x1abce0<_0x14d4db[_0x472199(0x1ac8)][_0x472199(0xfd0)];_0x1abce0++){_0x21ff7c&&_0x14d4db[_0x472199(0x1ac8)][_0x1abce0]['id']===_0x21ff7c['id']&&(_0x14d4db[_0x472199(0x1ac8)][_0x1abce0][_0x472199(0x15da)]=![],_0x8a5cd8[_0x472199(0x2785)](_0x14d4db[_0x472199(0x1ac8)][_0x1abce0]));}_0x14d4db[_0x472199(0x1ac8)]=_0x8a5cd8;}else{if(!_0x1fd1f5['autoAssociation'])return _0x39e37e[_0x472199(0x1198)][_0x472199(0xbf7)]({'sectionId':_0x1fd1f5['id']})[_0x472199(0x1d77)][_0x472199(0x1cb0)](function(_0x18f63a){const _0x2d97e4=_0x472199,_0x484a0a=_0x39641b()[_0x2d97e4(0x1de2)](_0x18f63a[_0x2d97e4(0x2214)],function(_0x1d38f8){const _0xc0cbd9=_0x2d97e4;return _0x39641b()[_0xc0cbd9(0x13b4)](_0x14d4db['interval'],{'id':_0x1d38f8[_0xc0cbd9(0x2982)]});});let _0x2d1b08=null;_0x14d4db[_0x2d97e4(0x17b8)]&&(_0x2d1b08=_0x39641b()['find'](_0x14d4db['interval'],{'id':Number(_0x14d4db[_0x2d97e4(0x17b8)]['IntervalId'])}));if(_0x2d1b08&&!_0x39641b()[_0x2d97e4(0x727)](_0x484a0a,['id',_0x2d1b08['id']])){const _0x2097cd=_0x39641b()[_0x2d97e4(0x13b4)](_0x14d4db[_0x2d97e4(0x1ac8)],{'id':_0x2d1b08['id']});_0x2097cd[_0x2d97e4(0x15da)]=![],_0x484a0a[_0x2d97e4(0x2785)](_0x2097cd);}_0x14d4db[_0x2d97e4(0x1ac8)]=_0x484a0a;});}})[_0x5d8548(0x1c4)](function(_0x46e17b){const _0x3e46df=_0x5d8548;_0x3b072f[_0x3e46df(0x218e)]({'title':_0x46e17b[_0x3e46df(0x291)]?'API:'+_0x46e17b[_0x3e46df(0x291)]+_0x3e46df(0x1657)+_0x46e17b[_0x3e46df(0xc22)]:'SYSTEM:GETinterval','msg':_0x46e17b[_0x3e46df(0x25c)]?JSON[_0x3e46df(0x2701)](_0x46e17b[_0x3e46df(0x25c)]):_0x46e17b[_0x3e46df(0x147f)]()});}),_0x481787[_0x5d8548(0x22b6)](_0x5d8548(0x1c60))?_0x39e37e[_0x5d8548(0x785)][_0x5d8548(0xbf7)]({'fields':_0x5d8548(0x791),'sort':'name','nolimit':_0x5d8548(0x44d)})['$promise'][_0x5d8548(0x1cb0)](function(_0x272aae){const _0x536617=_0x5d8548;_0x14d4db[_0x536617(0x8de)]=_0x272aae[_0x536617(0x2214)]||[];})['catch'](function(_0x25aa54){const _0x35d2cf=_0x5d8548;_0x3b072f[_0x35d2cf(0x218e)]({'title':_0x25aa54[_0x35d2cf(0x291)]?_0x35d2cf(0xeb9)+_0x25aa54['status']+'\x20-\x20'+_0x25aa54[_0x35d2cf(0xc22)]:_0x35d2cf(0x1589),'msg':_0x25aa54[_0x35d2cf(0x25c)]?JSON[_0x35d2cf(0x2701)](_0x25aa54[_0x35d2cf(0x25c)]):_0x25aa54['toString']()});}):_0x39e37e[_0x5d8548(0x785)][_0x5d8548(0xbf7)]({'fields':_0x5d8548(0x791),'sort':_0x5d8548(0x16b6),'nolimit':'true'})[_0x5d8548(0x1d77)][_0x5d8548(0x1cb0)](function(_0x2463ea){const _0x5c735b=_0x5d8548;_0x14d4db[_0x5c735b(0x8de)]=_0x2463ea[_0x5c735b(0x2214)]||[];})['then'](function(){const _0x1815e0=_0x5d8548;return _0x39e37e[_0x1815e0(0x2199)]['get']({'userProfileId':_0x14d4db[_0x1815e0(0xe76)][_0x1815e0(0x13c1)],'sectionId':0x3ed})[_0x1815e0(0x1d77)];})[_0x5d8548(0x1cb0)](function(_0x4ca000){const _0x583e94=_0x5d8548,_0x1c409e=_0x4ca000&&_0x4ca000['rows']?_0x4ca000[_0x583e94(0x2214)][0x0]:null;if(!_0x1c409e)_0x14d4db[_0x583e94(0x8de)]=[];else{if(!_0x1c409e[_0x583e94(0x12f4)])return _0x39e37e[_0x583e94(0x1198)][_0x583e94(0xbf7)]({'sectionId':_0x1c409e['id']})[_0x583e94(0x1d77)][_0x583e94(0x1cb0)](function(_0x1904b3){const _0x29ff45=_0x583e94,_0x3c97b4=_0x39641b()['map'](_0x1904b3[_0x29ff45(0x2214)],function(_0x2e5aa1){const _0x1586cc=_0x29ff45;return _0x39641b()[_0x1586cc(0x13b4)](_0x14d4db[_0x1586cc(0x8de)],{'id':_0x2e5aa1[_0x1586cc(0x2982)]});});_0x14d4db['pauses'][_0x29ff45(0xf90)](function(_0x4a983c){const _0xac0d47=_0x29ff45;!_0x39641b()[_0xac0d47(0x727)](_0x3c97b4,['id',_0x4a983c['id']])&&(_0x4a983c[_0xac0d47(0x15da)]=![]),_0x3c97b4[_0xac0d47(0x2785)](_0x4a983c);}),_0x14d4db[_0x29ff45(0x8de)]=_0x3c97b4;});}})['catch'](function(_0x39bc40){const _0x29eab1=_0x5d8548;_0x3b072f[_0x29eab1(0x218e)]({'title':_0x39bc40[_0x29eab1(0x291)]?_0x29eab1(0xeb9)+_0x39bc40[_0x29eab1(0x291)]+_0x29eab1(0x1657)+_0x39bc40[_0x29eab1(0xc22)]:'SYSTEM:GETpauses','msg':_0x39bc40[_0x29eab1(0x25c)]?JSON[_0x29eab1(0x2701)](_0x39bc40[_0x29eab1(0x25c)]):_0x39bc40[_0x29eab1(0x147f)]()});});function _0x1f0250(_0x5c6bd0,_0x5824db){const _0x3b2e07=_0x5d8548;_0x3767c4[_0x3b2e07(0xe27)]({'controller':_0x3b2e07(0x8e6),'controllerAs':'vm','templateUrl':_0x58c80c,'parent':angular[_0x3b2e07(0x1853)](_0x3af08f[_0x3b2e07(0x1ed9)]),'targetEvent':_0x5824db,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x5c6bd0,'queueCampaigns':_0x14d4db['queueCampaigns']?_0x14d4db[_0x3b2e07(0x1f65)]['rows']:[],'crudPermissions':_0x14d4db[_0x3b2e07(0x1b1a)]}});}function _0xf466d1(_0x16bd4a,_0x3c701){const _0x296dba=_0x5d8548;_0x3767c4['show']({'controller':_0x296dba(0x9b6),'controllerAs':'vm','templateUrl':_0x3b2b2d,'parent':angular[_0x296dba(0x1853)](_0x3af08f[_0x296dba(0x1ed9)]),'targetEvent':_0x3c701,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x16bd4a,'queueCampaigns':_0x14d4db[_0x296dba(0x1f65)]?_0x14d4db[_0x296dba(0x1f65)][_0x296dba(0x2214)]:[],'crudPermissions':_0x14d4db[_0x296dba(0x1b1a)]}});}function _0x58d90b(_0x2266d9,_0x255c94){const _0x300919=_0x5d8548;_0x3767c4[_0x300919(0xe27)]({'controller':'QueueCampaignblacklistaddController','controllerAs':'vm','templateUrl':_0x350739,'parent':angular['element'](_0x3af08f[_0x300919(0x1ed9)]),'targetEvent':_0x255c94,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x2266d9,'queueCampaigns':_0x14d4db[_0x300919(0x1f65)]?_0x14d4db[_0x300919(0x1f65)]['rows']:[],'crudPermissions':_0x14d4db['crudPermissions']}});}function _0x53c05c(_0x2f8e5d,_0x56626a){const _0x146f94=_0x5d8548;_0x3767c4['show']({'controller':_0x146f94(0x2884),'controllerAs':'vm','templateUrl':_0x47738e,'parent':angular[_0x146f94(0x1853)](_0x3af08f[_0x146f94(0x1ed9)]),'targetEvent':_0x56626a,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x2f8e5d,'queueCampaigns':_0x14d4db[_0x146f94(0x1f65)]?_0x14d4db['queueCampaigns']['rows']:[],'crudPermissions':_0x14d4db[_0x146f94(0x1b1a)]}});}function _0x592a80(_0x438dc0,_0x338293){const _0x41a480=_0x5d8548;_0x3767c4[_0x41a480(0xe27)]({'controller':'QueueCampaignagentaddController','controllerAs':'vm','templateUrl':_0x192df6,'parent':angular[_0x41a480(0x1853)](_0x3af08f[_0x41a480(0x1ed9)]),'targetEvent':_0x338293,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x438dc0,'queueCampaigns':_0x14d4db[_0x41a480(0x1f65)]?_0x14d4db[_0x41a480(0x1f65)]['rows']:[],'crudPermissions':_0x14d4db[_0x41a480(0x1b1a)],'realtime':![]}});}function _0x1d8575(_0x330f64,_0x4eebd0){const _0x529315=_0x5d8548,_0x377f24=_0x4eebd0['id'];_0x39e37e[_0x529315(0x26b3)][_0x529315(0x157b)]({'id':_0x330f64,'ids':_0x377f24})[_0x529315(0x1d77)][_0x529315(0x1cb0)](function(){const _0xd57017=_0x529315;return _0x39e37e[_0xd57017(0x26b3)][_0xd57017(0x285)]({'id':_0x330f64,'ids':_0x377f24,'dialCheckDuplicateType':_0xd57017(0x382)})[_0xd57017(0x1d77)];})[_0x529315(0x1cb0)](function(){const _0x57dbeb=_0x529315;_0x3b072f[_0x57dbeb(0x829)]({'title':_0x57dbeb(0xcf9),'msg':_0x57dbeb(0x8ae)+_0x4eebd0[_0x57dbeb(0x16b6)]+_0x57dbeb(0x1e07)});})['catch'](function(_0x5d01d2){const _0xd4f70a=_0x529315;_0x3b072f[_0xd4f70a(0x218e)]({'title':_0x5d01d2[_0xd4f70a(0x291)]?'API:'+_0x5d01d2[_0xd4f70a(0x291)]+_0xd4f70a(0x1657)+_0x5d01d2[_0xd4f70a(0xc22)]:_0xd4f70a(0x29a4),'msg':_0x5d01d2[_0xd4f70a(0x291)]?JSON['stringify'](_0x5d01d2[_0xd4f70a(0x25c)]):_0x5d01d2[_0xd4f70a(0x147f)]()});});}function _0x1708bd(_0x459b53,_0x5364cc){const _0x2eaaee=_0x5d8548;_0x39e37e[_0x2eaaee(0x26b3)]['getLists']({'id':_0x459b53['id'],'fields':'id,name','nolimit':!![]})[_0x2eaaee(0x1d77)][_0x2eaaee(0x1cb0)](function(_0x17d195){const _0x92d9fa=_0x2eaaee;if(_0x39641b()[_0x92d9fa(0x958)](_0x17d195[_0x92d9fa(0x2214)])||_0x39641b()[_0x92d9fa(0xce9)](_0x17d195['rows']))_0x3b072f[_0x92d9fa(0x28c7)]({'title':'Campaign\x20Without\x20Lists'});else{if(_0x17d195[_0x92d9fa(0x2214)][_0x92d9fa(0xfd0)]===0x1){const _0x1247f3=_0x3767c4['confirm']()[_0x92d9fa(0x1386)](_0x92d9fa(0xf4f)+_0x17d195[_0x92d9fa(0x2214)][0x0][_0x92d9fa(0x16b6)]+'\x20?')[_0x92d9fa(0x49e)](_0x92d9fa(0x204d)+_0x17d195[_0x92d9fa(0x2214)][0x0][_0x92d9fa(0x16b6)]+_0x92d9fa(0x1200)+_0x92d9fa(0x1575))[_0x92d9fa(0x15ad)](_0x92d9fa(0x2794))[_0x92d9fa(0x728)](_0x5364cc)['ok']('OK')['cancel'](_0x92d9fa(0x24ba));_0x3767c4['show'](_0x1247f3)['then'](function(){const _0x26c74b=_0x92d9fa;_0x1d8575(_0x14d4db[_0x26c74b(0x17b8)]['id'],_0x17d195['rows'][0x0]);});}else _0x3767c4['show']({'controller':_0x92d9fa(0x277d),'controllerAs':'vm','templateUrl':_0xbdcff2,'parent':angular['element'](_0x3af08f[_0x92d9fa(0x1ed9)]),'targetEvent':_0x5364cc,'clickOutsideToClose':![],'locals':{'queueCampaign':_0x459b53,'listsCampaign':_0x17d195?_0x17d195[_0x92d9fa(0x2214)]:[]}});}})[_0x2eaaee(0x1c4)](function(_0xd88d85){const _0x3f7efc=_0x2eaaee;_0x3b072f[_0x3f7efc(0x218e)]({'title':_0xd88d85[_0x3f7efc(0x291)]?'API:'+_0xd88d85[_0x3f7efc(0x291)]+'\x20-\x20'+_0xd88d85[_0x3f7efc(0xc22)]:_0x3f7efc(0xea5),'msg':_0xd88d85[_0x3f7efc(0x291)]?JSON[_0x3f7efc(0x2701)](_0xd88d85[_0x3f7efc(0x25c)]):_0xd88d85[_0x3f7efc(0x147f)]()});});}function _0x557816(){const _0x252ec5=_0x5d8548;if(_0x481787[_0x252ec5(0x22b6)](_0x252ec5(0x1c60)))_0x51b825['go'](_0x252ec5(0x7ba),{});else return _0x39e37e[_0x252ec5(0x2199)][_0x252ec5(0xbf7)]({'userProfileId':_0x481787[_0x252ec5(0x21e8)]()[_0x252ec5(0x13c1)],'sectionId':0x5e6})[_0x252ec5(0x1d77)]['then'](function(_0x44230b){const _0x235db0=_0x252ec5,_0xc3b1ae=_0x44230b&&_0x44230b[_0x235db0(0x2214)]?_0x44230b[_0x235db0(0x2214)][0x0]:null;_0xc3b1ae&&_0xc3b1ae[_0x235db0(0x281c)]?_0x51b825['go'](_0x235db0(0x7ba),{}):_0x3b072f[_0x235db0(0x28c7)]({'title':_0x2668c2[_0x235db0(0x25cc)](_0x235db0(0x370)),'msg':_0x2668c2['instant'](_0x235db0(0x33a))});})[_0x252ec5(0x1c4)](function(_0x1b5038){const _0x201532=_0x252ec5;_0x3b072f[_0x201532(0x218e)]({'title':_0x1b5038[_0x201532(0x291)]?_0x201532(0xeb9)+_0x1b5038[_0x201532(0x291)]+'\x20-\x20'+_0x1b5038[_0x201532(0xc22)]:'USERPROFILE:GET_SECTION','msg':_0x1b5038[_0x201532(0x291)]?JSON[_0x201532(0x2701)](_0x1b5038[_0x201532(0x25c)]):_0x1b5038[_0x201532(0x147f)]()});});}function _0x562aeb(){const _0x50e9f2=_0x5d8548;_0x51b825['go'](_0x50e9f2(0x2556),{},{'reload':_0x50e9f2(0x2556)});}function _0x6633e1(){const _0x3723f5=_0x5d8548;_0x39e37e[_0x3723f5(0x26b3)][_0x3723f5(0x687)]({'id':_0x14d4db[_0x3723f5(0x17b8)]['id']},_0x14d4db[_0x3723f5(0x17b8)])[_0x3723f5(0x1d77)]['then'](function(){const _0x1f1d04=_0x3723f5;_0x3b072f[_0x1f1d04(0x829)]({'title':'QueueCampaign\x20updated!','msg':_0x14d4db['queueCampaign'][_0x1f1d04(0x16b6)]?_0x14d4db[_0x1f1d04(0x17b8)][_0x1f1d04(0x16b6)]+_0x1f1d04(0x1068):''});})[_0x3723f5(0x1c4)](function(_0x532f08){const _0x31c0e1=_0x3723f5;_0x3b072f[_0x31c0e1(0x218e)]({'title':_0x532f08[_0x31c0e1(0x291)]?_0x31c0e1(0xeb9)+_0x532f08[_0x31c0e1(0x291)]+'\x20-\x20'+_0x532f08['statusText']:_0x31c0e1(0x272a),'msg':_0x532f08['data']?JSON[_0x31c0e1(0x2701)](_0x532f08[_0x31c0e1(0x25c)]):_0x532f08[_0x31c0e1(0x147f)]()});});}}const _0x5aa7a4=_0x3da3fb;;_0x6d35c4[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x1f65),'userProfile',_0x5537c6(0x2199),_0x5537c6(0x142b),'msUtils','toasty',_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x6d35c4(_0xf6d135,_0x21a9e9,_0x789f4,_0x235100,_0x220655,_0x10be20,_0x53dbe3,_0x3e83cd,_0x539ae2,_0xbce034,_0x34a3ca,_0x1bc62b,_0x2bcc32,_0x5eba4f,_0x3b77c9,_0x1c1694,_0x535dd4){const _0x6ec143=_0x5537c6,_0x5e9948=this;_0x5e9948[_0x6ec143(0x8a5)]=_0x1c1694,_0x5e9948[_0x6ec143(0x9ca)]=_0x535dd4,_0x5e9948[_0x6ec143(0xe76)]=_0x3b77c9['getCurrentUser'](),_0x5e9948[_0x6ec143(0x1f65)]=_0x539ae2||{'count':0x0,'rows':[]},_0x5e9948[_0x6ec143(0x44a)]=_0xbce034,_0x5e9948[_0x6ec143(0x2199)]=_0x34a3ca&&_0x34a3ca[_0x6ec143(0x184d)]==0x1?_0x34a3ca[_0x6ec143(0x2214)][0x0]:null,_0x5e9948[_0x6ec143(0x1b1a)]=_0x3b77c9['parseCrudPermissions'](_0x5e9948['userProfileSection']?_0x5e9948[_0x6ec143(0x2199)][_0x6ec143(0x1b1a)]:null),_0x5e9948['table']=_0x6ec143(0x1f65),_0x5e9948[_0x6ec143(0x1d20)]='',_0x5e9948[_0x6ec143(0x1cdf)]=null,_0x5e9948['selectedQueueCampaigns']=[],_0x5e9948[_0x6ec143(0xae2)]={'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':_0x6ec143(0x895),'sort':_0x6ec143(0x282),'channel':'voice','limit':0xa,'page':0x1},_0x5e9948['arraydialCheckDuplicateType']=_0x39641b()[_0x6ec143(0x2631)]([{'option':_0x6ec143(0x10f9),'value':_0x6ec143(0x2a2)},{'option':_0x6ec143(0x6b9),'value':_0x6ec143(0x1d2c)},{'option':'ONLY_IF_OPEN','value':_0x6ec143(0x1cdd)}],function(_0x3bc67a){const _0x2c3903=_0x6ec143;return _0x39641b()[_0x2c3903(0x288f)](_0x3bc67a['value'],new RegExp('\x27','g'),'');}),_0x5e9948['arrayautopause']=_0x39641b()[_0x6ec143(0x2631)]([{'option':_0x6ec143(0x1ab8),'value':_0x6ec143(0xe4d)},{'option':'No','value':_0x6ec143(0x15b9)}],function(_0x114798){const _0xf91f08=_0x6ec143;return _0x39641b()[_0xf91f08(0x288f)](_0x114798[_0xf91f08(0x327)],new RegExp('\x27','g'),'');}),_0x5e9948[_0x6ec143(0x2200)]=_0x39641b()[_0x6ec143(0x2631)]([{'option':_0x6ec143(0x1ab8),'value':_0x6ec143(0x27e4)},{'option':'No','value':'\x27no\x27'}],function(_0x4af548){const _0x1de124=_0x6ec143;return _0x39641b()[_0x1de124(0x288f)](_0x4af548[_0x1de124(0x327)],new RegExp('\x27','g'),'');}),_0x5e9948['arraytimeoutrestart']=_0x39641b()[_0x6ec143(0x2631)]([{'option':_0x6ec143(0x1ab8),'value':'\x27yes\x27'},{'option':'No','value':'\x27no\x27'}],function(_0x100699){const _0x23c8f7=_0x6ec143;return _0x39641b()[_0x23c8f7(0x288f)](_0x100699[_0x23c8f7(0x327)],new RegExp('\x27','g'),'');}),_0x5e9948[_0x6ec143(0xe10)]=_0x39641b()[_0x6ec143(0x2631)]([{'option':_0x6ec143(0x210b),'value':'\x27\x27'},{'option':_0x6ec143(0xcab),'value':_0x6ec143(0x2329)},{'option':_0x6ec143(0x1f63),'value':_0x6ec143(0x1e04)},{'option':_0x6ec143(0x2331),'value':_0x6ec143(0x24ce)}],function(_0x282ed7){const _0x571de7=_0x6ec143;return _0x39641b()[_0x571de7(0x288f)](_0x282ed7['value'],new RegExp('\x27','g'),'');}),_0x5e9948[_0x6ec143(0x1bb7)]=_0x39641b()[_0x6ec143(0x2631)]([{'option':_0x6ec143(0x1ab8),'value':'\x27yes\x27'},{'option':'No','value':_0x6ec143(0x15b9)}],function(_0x547bfa){const _0x1ec631=_0x6ec143;return _0x39641b()[_0x1ec631(0x288f)](_0x547bfa[_0x1ec631(0x327)],new RegExp('\x27','g'),'');}),_0x5e9948[_0x6ec143(0x1964)]=_0x39641b()[_0x6ec143(0x2631)]([{'option':_0x6ec143(0x1ab8),'value':'\x27yes\x27'},{'option':'No','value':_0x6ec143(0x15b9)}],function(_0x13d65e){const _0x448708=_0x6ec143;return _0x39641b()[_0x448708(0x288f)](_0x13d65e[_0x448708(0x327)],new RegExp('\x27','g'),'');}),_0x5e9948[_0x6ec143(0x1f00)]=_0x39641b()['keyBy']([{'option':_0x6ec143(0x1ab8),'value':_0x6ec143(0x27e4)},{'option':'No','value':'\x27no\x27'}],function(_0x32a0bc){return _0x39641b()['replace'](_0x32a0bc['value'],new RegExp('\x27','g'),'');}),_0x5e9948['arraydialOrderByScheduledAt']=_0x39641b()[_0x6ec143(0x2631)]([{'option':_0x6ec143(0x16b),'value':'\x27DESC\x27'},{'option':_0x6ec143(0x1a52),'value':_0x6ec143(0x2658)}],function(_0x35114c){const _0x401cef=_0x6ec143;return _0x39641b()[_0x401cef(0x288f)](_0x35114c[_0x401cef(0x327)],new RegExp('\x27','g'),'');}),_0x5e9948[_0x6ec143(0x485)]=_0x39641b()[_0x6ec143(0x2631)]([{'option':'Progressive','value':_0x6ec143(0xabf)},{'option':_0x6ec143(0x2928),'value':_0x6ec143(0x27ad)},{'option':_0x6ec143(0x2507),'value':_0x6ec143(0x1a0c)},{'option':'Preview','value':_0x6ec143(0x2037)},{'option':_0x6ec143(0xf19),'value':'\x27booked\x27'}],function(_0x3932fe){const _0x4b1f28=_0x6ec143;return _0x39641b()['replace'](_0x3932fe[_0x4b1f28(0x327)],new RegExp('\x27','g'),'');}),_0x5e9948[_0x6ec143(0x13c6)]=_0x39641b()[_0x6ec143(0x2631)]([{'option':_0x6ec143(0x283f),'value':_0x6ec143(0x217c)},{'option':_0x6ec143(0x2274),'value':'\x27dropRate\x27'}],function(_0x4dd327){const _0x383e49=_0x6ec143;return _0x39641b()[_0x383e49(0x288f)](_0x4dd327[_0x383e49(0x327)],new RegExp('\x27','g'),'');}),_0x5e9948[_0x6ec143(0xa7e)]=_0x39641b()[_0x6ec143(0x2631)]([{'option':_0x6ec143(0xaf3),'value':_0x6ec143(0x15b5)},{'option':_0x6ec143(0x150f),'value':_0x6ec143(0x13c2),'ngIf':_0x6ec143(0xb5a)},{'option':_0x6ec143(0x1a55),'value':'\x27leastrecent\x27','ngIf':_0x6ec143(0x1729)},{'option':_0x6ec143(0x2679),'value':'\x27fewestcalls\x27','ngIf':_0x6ec143(0x1729)},{'option':_0x6ec143(0x1cb3),'value':_0x6ec143(0x3f7),'ngIf':_0x6ec143(0x1729)},{'option':'Linear','value':_0x6ec143(0x230b),'ngIf':_0x6ec143(0x1729)},{'option':_0x6ec143(0x10c6),'value':'\x27wrandom\x27','ngIf':_0x6ec143(0x1729)}],function(_0x106d88){const _0x43cd11=_0x6ec143;return _0x39641b()[_0x43cd11(0x288f)](_0x106d88[_0x43cd11(0x327)],new RegExp('\x27','g'),'');}),_0x5e9948[_0x6ec143(0x235d)]=_0x5e598c,_0x5e9948['clonedialog']=_0x244bac,_0x5e9948[_0x6ec143(0xb80)]=_0x2aa6f0,_0x5e9948['blacklistadddialog']=_0x30c05e,_0x5e9948['teamadddialog']=_0x4d5570,_0x5e9948['agentadddialog']=_0x1b88e1,_0x5e9948[_0x6ec143(0x27fe)]=_0x3b32eb,_0x5e9948[_0x6ec143(0x649)]=_0x134608,_0x5e9948[_0x6ec143(0x829)]=_0x32ea89,_0x5e9948[_0x6ec143(0x274e)]=_0x31e6ce,_0x5e9948['createOrEditQueueCampaign']=_0x16f1f1,_0x5e9948['deleteQueueCampaign']=_0xa3266c,_0x5e9948[_0x6ec143(0x2217)]=_0x260560,_0x5e9948[_0x6ec143(0x261b)]=_0xfa03dc,_0x5e9948['deselectQueueCampaigns']=_0x271b68,_0x5e9948[_0x6ec143(0x216d)]=_0xb1df71,_0x3b77c9[_0x6ec143(0x22b6)](_0x6ec143(0x1c60))?_0x1bc62b[_0x6ec143(0x1ae0)]['get']({'fields':'id,name','sort':_0x6ec143(0x16b6)})[_0x6ec143(0x1d77)][_0x6ec143(0x1cb0)](function(_0x506f5b){const _0x507505=_0x6ec143;_0x5e9948[_0x507505(0x1363)]=_0x506f5b['rows']||[];})[_0x6ec143(0x1c4)](function(_0xcddfce){const _0x1159a0=_0x6ec143;_0x5eba4f[_0x1159a0(0x218e)]({'title':_0xcddfce[_0x1159a0(0x291)]?'API:'+_0xcddfce[_0x1159a0(0x291)]+'\x20-\x20'+_0xcddfce[_0x1159a0(0xc22)]:_0x1159a0(0x14fc),'msg':_0xcddfce[_0x1159a0(0x25c)]?JSON[_0x1159a0(0x2701)](_0xcddfce[_0x1159a0(0x25c)]):_0xcddfce[_0x1159a0(0x147f)]()});}):_0x1bc62b['trunk'][_0x6ec143(0xbf7)]({'fields':'id,name','sort':_0x6ec143(0x16b6)})[_0x6ec143(0x1d77)][_0x6ec143(0x1cb0)](function(_0x45be47){const _0x4ea2a0=_0x6ec143;_0x5e9948[_0x4ea2a0(0x1363)]=_0x45be47[_0x4ea2a0(0x2214)]||[];})[_0x6ec143(0x1cb0)](function(){const _0x1378e3=_0x6ec143;return _0x1bc62b['userProfileSection'][_0x1378e3(0xbf7)]({'userProfileId':_0x5e9948['currentUser']['userProfileId'],'sectionId':0x3f3})[_0x1378e3(0x1d77)];})[_0x6ec143(0x1cb0)](function(_0x57ed13){const _0x4c9866=_0x6ec143,_0x2435b8=_0x57ed13&&_0x57ed13[_0x4c9866(0x2214)]?_0x57ed13[_0x4c9866(0x2214)][0x0]:null;if(!_0x2435b8){const _0x22b15e=[],_0x479925=[];_0x5e9948['queueCampaigns'][_0x4c9866(0x2214)][_0x4c9866(0xf90)](function(_0x14d537){const _0x14fd97=_0x4c9866,_0x3f7615=_0x39641b()['find'](_0x5e9948[_0x14fd97(0x1363)],{'id':Number(_0x14d537[_0x14fd97(0x7ab)])});_0x479925['push'](_0x3f7615);});for(let _0x2409ca=0x0;_0x2409ca<_0x5e9948['trunks'][_0x4c9866(0xfd0)];_0x2409ca++){const _0x5cb852=_0x39641b()[_0x4c9866(0x727)](_0x479925,{'id':_0x5e9948[_0x4c9866(0x1363)][_0x2409ca]['id']});_0x5cb852&&(_0x5e9948[_0x4c9866(0x1363)][_0x2409ca][_0x4c9866(0x15da)]=![],_0x22b15e[_0x4c9866(0x2785)](_0x5e9948[_0x4c9866(0x1363)][_0x2409ca]));}_0x5e9948[_0x4c9866(0x1363)]=_0x22b15e;}else{if(!_0x2435b8[_0x4c9866(0x12f4)])return _0x1bc62b[_0x4c9866(0x1198)][_0x4c9866(0xbf7)]({'sectionId':_0x2435b8['id']})[_0x4c9866(0x1d77)]['then'](function(_0x510907){const _0x3b7285=_0x4c9866,_0x5311e2=_0x39641b()[_0x3b7285(0x1de2)](_0x510907[_0x3b7285(0x2214)],function(_0x1d0e66){const _0x4272cd=_0x3b7285;return _0x39641b()[_0x4272cd(0x13b4)](_0x5e9948['trunks'],{'id':_0x1d0e66['resourceId']});});let _0x742434=null;_0x742434=[],_0x5e9948[_0x3b7285(0x1f65)][_0x3b7285(0x2214)][_0x3b7285(0xf90)](function(_0xb85f83){const _0x5d5c3d=_0x3b7285,_0x3a7e21=_0x39641b()[_0x5d5c3d(0x13b4)](_0x5e9948['trunks'],{'id':Number(_0xb85f83[_0x5d5c3d(0x7ab)])});_0x742434[_0x5d5c3d(0x2785)](_0x3a7e21);}),!_0x39641b()[_0x3b7285(0xce9)](_0x742434)&&_0x742434[_0x3b7285(0xf90)](function(_0x35d08b){const _0xefaf0=_0x3b7285;if(!_0x39641b()[_0xefaf0(0x727)](_0x5311e2,['id',_0x35d08b['id']])){const _0x407fb0=_0x39641b()[_0xefaf0(0x13b4)](_0x5e9948[_0xefaf0(0x1363)],{'id':_0x35d08b['id']});_0x407fb0[_0xefaf0(0x15da)]=![],_0x5311e2[_0xefaf0(0x2785)](_0x407fb0);}}),_0x5e9948[_0x3b7285(0x1363)]=_0x5311e2;});}})['catch'](function(_0x31bc45){const _0x43d5c4=_0x6ec143;_0x5eba4f[_0x43d5c4(0x218e)]({'title':_0x31bc45['status']?'API:'+_0x31bc45[_0x43d5c4(0x291)]+_0x43d5c4(0x1657)+_0x31bc45[_0x43d5c4(0xc22)]:'SYSTEM:GETtrunks','msg':_0x31bc45[_0x43d5c4(0x25c)]?JSON[_0x43d5c4(0x2701)](_0x31bc45[_0x43d5c4(0x25c)]):_0x31bc45['toString']()});}),_0x3b77c9[_0x6ec143(0x22b6)](_0x6ec143(0x1c60))?_0x1bc62b[_0x6ec143(0x1ac8)][_0x6ec143(0xbf7)]({'fields':_0x6ec143(0x43c),'sort':_0x6ec143(0x16b6),'IntervalId':_0x6ec143(0xd38)})[_0x6ec143(0x1d77)][_0x6ec143(0x1cb0)](function(_0x34e980){_0x5e9948['interval']=_0x34e980['rows']||[];})[_0x6ec143(0x1c4)](function(_0x2a211b){const _0x51e214=_0x6ec143;_0x5eba4f[_0x51e214(0x218e)]({'title':_0x2a211b[_0x51e214(0x291)]?_0x51e214(0xeb9)+_0x2a211b[_0x51e214(0x291)]+_0x51e214(0x1657)+_0x2a211b[_0x51e214(0xc22)]:_0x51e214(0x1917),'msg':_0x2a211b[_0x51e214(0x25c)]?JSON[_0x51e214(0x2701)](_0x2a211b[_0x51e214(0x25c)]):_0x2a211b[_0x51e214(0x147f)]()});}):_0x1bc62b[_0x6ec143(0x1ac8)][_0x6ec143(0xbf7)]({'fields':'id,name','sort':_0x6ec143(0x16b6),'IntervalId':'null'})['$promise'][_0x6ec143(0x1cb0)](function(_0x366ac0){const _0x521a1c=_0x6ec143;_0x5e9948[_0x521a1c(0x1ac8)]=_0x366ac0[_0x521a1c(0x2214)]||[];})[_0x6ec143(0x1cb0)](function(){const _0x1b3cd4=_0x6ec143;return _0x1bc62b[_0x1b3cd4(0x2199)][_0x1b3cd4(0xbf7)]({'userProfileId':_0x5e9948[_0x1b3cd4(0xe76)][_0x1b3cd4(0x13c1)],'sectionId':0x3ec})[_0x1b3cd4(0x1d77)];})[_0x6ec143(0x1cb0)](function(_0x335246){const _0x817505=_0x6ec143,_0x4fa3ab=_0x335246&&_0x335246[_0x817505(0x2214)]?_0x335246[_0x817505(0x2214)][0x0]:null;if(!_0x4fa3ab){const _0x32d0c9=[];let _0x3cd04c=null;_0x5e9948[_0x817505(0x17b8)]&&(_0x3cd04c=_0x39641b()[_0x817505(0x13b4)](_0x5e9948['interval'],{'id':Number(_0x5e9948[_0x817505(0x17b8)][_0x817505(0x1a60)])}));for(let _0x442ee6=0x0;_0x442ee6<_0x5e9948[_0x817505(0x1ac8)][_0x817505(0xfd0)];_0x442ee6++){_0x3cd04c&&_0x5e9948[_0x817505(0x1ac8)][_0x442ee6]['id']===_0x3cd04c['id']&&(_0x5e9948[_0x817505(0x1ac8)][_0x442ee6][_0x817505(0x15da)]=![],_0x32d0c9[_0x817505(0x2785)](_0x5e9948['interval'][_0x442ee6]));}_0x5e9948[_0x817505(0x1ac8)]=_0x32d0c9;}else{if(!_0x4fa3ab[_0x817505(0x12f4)])return _0x1bc62b[_0x817505(0x1198)][_0x817505(0xbf7)]({'sectionId':_0x4fa3ab['id']})[_0x817505(0x1d77)][_0x817505(0x1cb0)](function(_0x2222db){const _0x45058f=_0x817505,_0x4e8c2e=_0x39641b()[_0x45058f(0x1de2)](_0x2222db[_0x45058f(0x2214)],function(_0x188df7){const _0x2179ee=_0x45058f;return _0x39641b()[_0x2179ee(0x13b4)](_0x5e9948[_0x2179ee(0x1ac8)],{'id':_0x188df7['resourceId']});});let _0x544b11=null;_0x5e9948[_0x45058f(0x17b8)]&&(_0x544b11=_0x39641b()[_0x45058f(0x13b4)](_0x5e9948['interval'],{'id':Number(_0x5e9948[_0x45058f(0x17b8)][_0x45058f(0x1a60)])}));if(_0x544b11&&!_0x39641b()['some'](_0x4e8c2e,['id',_0x544b11['id']])){const _0x14ca80=_0x39641b()['find'](_0x5e9948[_0x45058f(0x1ac8)],{'id':_0x544b11['id']});_0x14ca80['canSelect']=![],_0x4e8c2e[_0x45058f(0x2785)](_0x14ca80);}_0x5e9948[_0x45058f(0x1ac8)]=_0x4e8c2e;});}})['catch'](function(_0x280351){const _0x108fcd=_0x6ec143;_0x5eba4f[_0x108fcd(0x218e)]({'title':_0x280351[_0x108fcd(0x291)]?_0x108fcd(0xeb9)+_0x280351[_0x108fcd(0x291)]+_0x108fcd(0x1657)+_0x280351['statusText']:_0x108fcd(0x1b58),'msg':_0x280351[_0x108fcd(0x25c)]?JSON[_0x108fcd(0x2701)](_0x280351[_0x108fcd(0x25c)]):_0x280351['toString']()});});function _0x5e598c(_0x229eb7){const _0x567126=_0x6ec143;_0x789f4['go'](_0x567126(0x1467),{'id':_0x229eb7['id'],'queueCampaign':_0x229eb7,'crudPermissions':_0x5e9948[_0x567126(0x1b1a)]});}function _0x244bac(_0x588232,_0x27fde8){const _0x115423=_0x6ec143;_0x220655[_0x115423(0xe27)]({'controller':_0x115423(0x8e6),'controllerAs':'vm','templateUrl':_0x58c80c,'parent':angular[_0x115423(0x1853)](_0x10be20[_0x115423(0x1ed9)]),'targetEvent':_0x27fde8,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x588232,'queueCampaigns':_0x5e9948[_0x115423(0x1f65)]?_0x5e9948[_0x115423(0x1f65)][_0x115423(0x2214)]:[],'crudPermissions':_0x5e9948['crudPermissions']}});}function _0x2aa6f0(_0x259b1d,_0x5133c7){const _0x53c41c=_0x6ec143;_0x220655[_0x53c41c(0xe27)]({'controller':'QueueCampaignlistaddController','controllerAs':'vm','templateUrl':_0x3b2b2d,'parent':angular[_0x53c41c(0x1853)](_0x10be20['body']),'targetEvent':_0x5133c7,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x259b1d,'queueCampaigns':_0x5e9948['queueCampaigns']?_0x5e9948[_0x53c41c(0x1f65)][_0x53c41c(0x2214)]:[],'crudPermissions':_0x5e9948[_0x53c41c(0x1b1a)]}});}function _0x30c05e(_0x310a12,_0x2a4275){const _0x384e78=_0x6ec143;_0x220655['show']({'controller':_0x384e78(0x389),'controllerAs':'vm','templateUrl':_0x350739,'parent':angular[_0x384e78(0x1853)](_0x10be20[_0x384e78(0x1ed9)]),'targetEvent':_0x2a4275,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x310a12,'queueCampaigns':_0x5e9948[_0x384e78(0x1f65)]?_0x5e9948[_0x384e78(0x1f65)][_0x384e78(0x2214)]:[],'crudPermissions':_0x5e9948[_0x384e78(0x1b1a)]}});}function _0x4d5570(_0x268706,_0x27c71c){const _0x54f96a=_0x6ec143;_0x220655[_0x54f96a(0xe27)]({'controller':_0x54f96a(0x2884),'controllerAs':'vm','templateUrl':_0x47738e,'parent':angular[_0x54f96a(0x1853)](_0x10be20['body']),'targetEvent':_0x27c71c,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x268706,'queueCampaigns':_0x5e9948[_0x54f96a(0x1f65)]?_0x5e9948[_0x54f96a(0x1f65)][_0x54f96a(0x2214)]:[],'crudPermissions':_0x5e9948[_0x54f96a(0x1b1a)]}});}function _0x1b88e1(_0x5bdce0,_0x59a383){const _0x12008b=_0x6ec143;_0x220655[_0x12008b(0xe27)]({'controller':'QueueCampaignagentaddController','controllerAs':'vm','templateUrl':_0x192df6,'parent':angular[_0x12008b(0x1853)](_0x10be20[_0x12008b(0x1ed9)]),'targetEvent':_0x59a383,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x5bdce0,'queueCampaigns':_0x5e9948[_0x12008b(0x1f65)]?_0x5e9948['queueCampaigns']['rows']:[],'crudPermissions':_0x5e9948[_0x12008b(0x1b1a)],'realtime':![]}});}function _0x3b32eb(_0x13fb3f,_0x2da7b5){const _0x4df42d=_0x6ec143,_0x59f7bb=_0x220655[_0x4df42d(0x1551)]()[_0x4df42d(0x1386)](_0x4df42d(0x140b)+_0x39641b()[_0x4df42d(0xa75)](_0x4df42d(0x17b8))+'?')[_0x4df42d(0x49e)](_0x4df42d(0x204d)+(_0x13fb3f[_0x4df42d(0x16b6)]||_0x4df42d(0x17b8))+_0x4df42d(0x1200)+_0x4df42d(0x1b6))[_0x4df42d(0x15ad)](_0x4df42d(0x1ba3))[_0x4df42d(0x728)](_0x2da7b5)['ok']('OK')[_0x4df42d(0x696)](_0x4df42d(0x24ba));_0x220655[_0x4df42d(0xe27)](_0x59f7bb)[_0x4df42d(0x1cb0)](function(){_0xa3266c(_0x13fb3f);},function(){const _0x168592=_0x4df42d;console[_0x168592(0x1b4f)](_0x168592(0x24ba));});}function _0x134608(){const _0x21c76a=_0x6ec143;if(_0x3b77c9[_0x21c76a(0x22b6)](_0x21c76a(0x1c60)))_0x789f4['go']('app.motiondialer.realtime.queues',{});else return _0x1bc62b[_0x21c76a(0x2199)]['get']({'userProfileId':_0x3b77c9[_0x21c76a(0x21e8)]()['userProfileId'],'sectionId':0x5e6})['$promise'][_0x21c76a(0x1cb0)](function(_0x344ec9){const _0x2ffc70=_0x21c76a,_0x32d4dd=_0x344ec9&&_0x344ec9[_0x2ffc70(0x2214)]?_0x344ec9[_0x2ffc70(0x2214)][0x0]:null;_0x32d4dd&&_0x32d4dd[_0x2ffc70(0x281c)]?_0x789f4['go']('app.motiondialer.realtime.queues',{}):_0x5eba4f[_0x2ffc70(0x28c7)]({'title':_0x3e83cd[_0x2ffc70(0x25cc)](_0x2ffc70(0x370)),'msg':_0x3e83cd[_0x2ffc70(0x25cc)](_0x2ffc70(0x33a))});})[_0x21c76a(0x1c4)](function(_0x519785){const _0x2907ee=_0x21c76a;_0x5eba4f['error']({'title':_0x519785['status']?_0x2907ee(0xeb9)+_0x519785[_0x2907ee(0x291)]+'\x20-\x20'+_0x519785[_0x2907ee(0xc22)]:_0x2907ee(0x17ba),'msg':_0x519785[_0x2907ee(0x291)]?JSON['stringify'](_0x519785[_0x2907ee(0x25c)]):_0x519785[_0x2907ee(0x147f)]()});});}let _0x47761a=!![],_0x1762f3=0x1;_0xf6d135['$watch']('vm.query.filter',function(_0x8533e4,_0x26e2ea){const _0x1c1196=_0x6ec143;_0x47761a?_0x53dbe3(function(){_0x47761a=![];}):(!_0x26e2ea&&(_0x1762f3=_0x5e9948['query']['page']),_0x8533e4!==_0x26e2ea&&(_0x5e9948[_0x1c1196(0xae2)]['page']=0x1),!_0x8533e4&&(_0x5e9948[_0x1c1196(0xae2)][_0x1c1196(0x1c7b)]=_0x1762f3),_0x5e9948['getQueueCampaigns']());});function _0x32ea89(_0x394b30){const _0x3a64a9=_0x6ec143;_0x5e9948[_0x3a64a9(0x1f65)]=_0x394b30||{'count':0x0,'rows':[]};}function _0x31e6ce(){const _0x3e4eae=_0x6ec143;_0x5e9948['query'][_0x3e4eae(0x184b)]=(_0x5e9948[_0x3e4eae(0xae2)]['page']-0x1)*_0x5e9948[_0x3e4eae(0xae2)][_0x3e4eae(0x236)],_0x3b77c9[_0x3e4eae(0x22b6)](_0x3e4eae(0x1c60))?_0x5e9948[_0x3e4eae(0x2061)]=_0x1bc62b[_0x3e4eae(0x26b3)][_0x3e4eae(0xbf7)](_0x5e9948[_0x3e4eae(0xae2)],_0x32ea89)[_0x3e4eae(0x1d77)]:(_0x5e9948[_0x3e4eae(0xae2)]['id']=_0x5e9948[_0x3e4eae(0x44a)]['id'],_0x5e9948['query']['section']=_0x3e4eae(0x1e28),_0x5e9948[_0x3e4eae(0x2061)]=_0x1bc62b[_0x3e4eae(0x44a)][_0x3e4eae(0x1810)](_0x5e9948['query'],_0x32ea89)[_0x3e4eae(0x1d77)]);}function _0x16f1f1(_0x12def7,_0xbe468){const _0x16aaec=_0x6ec143;_0x220655[_0x16aaec(0xe27)]({'controller':_0x16aaec(0x1c3),'controllerAs':'vm','templateUrl':_0x810686,'parent':angular[_0x16aaec(0x1853)](_0x10be20[_0x16aaec(0x1ed9)]),'targetEvent':_0x12def7,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0xbe468,'queueCampaigns':_0x5e9948[_0x16aaec(0x1f65)][_0x16aaec(0x2214)],'license':_0x5e9948[_0x16aaec(0x8a5)],'setting':_0x5e9948[_0x16aaec(0x9ca)],'crudPermissions':_0x5e9948[_0x16aaec(0x1b1a)]}});}function _0xa3266c(_0x9fd63f){const _0x3be22e=_0x6ec143;_0x1bc62b['voiceQueue']['delete']({'id':_0x9fd63f['id']})[_0x3be22e(0x1d77)]['then'](function(){const _0x22b1fe=_0x3be22e;_0x39641b()[_0x22b1fe(0x152a)](_0x5e9948['queueCampaigns']['rows'],{'id':_0x9fd63f['id']}),_0x5e9948[_0x22b1fe(0x1f65)][_0x22b1fe(0x184d)]-=0x1,!_0x5e9948[_0x22b1fe(0x1f65)][_0x22b1fe(0x2214)]['length']&&_0x5e9948['getQueueCampaigns'](),_0x5eba4f[_0x22b1fe(0x829)]({'title':_0x39641b()[_0x22b1fe(0xa75)](_0x22b1fe(0x2433))+'\x20deleted!','msg':_0x9fd63f['name']?_0x9fd63f[_0x22b1fe(0x16b6)]+_0x22b1fe(0x3f5):''});})[_0x3be22e(0x1c4)](function(_0x4aafa4){const _0x3cb670=_0x3be22e;if(_0x4aafa4['data']&&_0x4aafa4['data'][_0x3cb670(0x1a7c)]&&_0x4aafa4[_0x3cb670(0x25c)][_0x3cb670(0x1a7c)][_0x3cb670(0xfd0)]){_0x5e9948[_0x3cb670(0x1a7c)]=_0x4aafa4[_0x3cb670(0x25c)][_0x3cb670(0x1a7c)]||[{'message':_0x4aafa4['toString'](),'type':_0x3cb670(0x12af)}];for(let _0x2e17c4=0x0;_0x2e17c4<_0x4aafa4[_0x3cb670(0x25c)][_0x3cb670(0x1a7c)][_0x3cb670(0xfd0)];_0x2e17c4++){_0x5eba4f[_0x3cb670(0x218e)]({'title':_0x4aafa4['data'][_0x3cb670(0x1a7c)][_0x2e17c4][_0x3cb670(0x66a)],'msg':_0x4aafa4[_0x3cb670(0x25c)][_0x3cb670(0x1a7c)][_0x2e17c4]['message']});}}else _0x5eba4f[_0x3cb670(0x218e)]({'title':_0x4aafa4['status']?_0x3cb670(0xeb9)+_0x4aafa4[_0x3cb670(0x291)]+_0x3cb670(0x1657)+_0x4aafa4[_0x3cb670(0xc22)]:_0x3cb670(0x12af),'msg':_0x4aafa4[_0x3cb670(0x25c)]?JSON['stringify'](_0x4aafa4[_0x3cb670(0x25c)][_0x3cb670(0x155e)]):_0x4aafa4[_0x3cb670(0x155e)]||_0x4aafa4[_0x3cb670(0x147f)]()});});}function _0x260560(){const _0x33ae16=_0x6ec143,_0x132426=angular[_0x33ae16(0x17fe)](_0x5e9948[_0x33ae16(0xd3d)]);return _0x5e9948['selectedQueueCampaigns']=[],_0x132426;}function _0xfa03dc(_0x14c808){const _0x107d34=_0x6ec143,_0x57b8d6=_0x220655[_0x107d34(0x1551)]()['title'](_0x107d34(0x18d9))[_0x107d34(0x49e)](_0x107d34(0x204d)+_0x5e9948['selectedQueueCampaigns']['length']+_0x107d34(0x1d6c)+_0x107d34(0x1b6))[_0x107d34(0x15ad)](_0x107d34(0xbe9))[_0x107d34(0x728)](_0x14c808)['ok']('OK')[_0x107d34(0x696)](_0x107d34(0x24ba));_0x220655['show'](_0x57b8d6)[_0x107d34(0x1cb0)](function(){const _0x532cf9=_0x107d34;_0x5e9948[_0x532cf9(0xd3d)][_0x532cf9(0xf90)](function(_0x2fe944){_0xa3266c(_0x2fe944);}),_0x5e9948['selectedQueueCampaigns']=[];});}function _0x271b68(){const _0x1ee4cc=_0x6ec143;_0x5e9948[_0x1ee4cc(0xd3d)]=[];}function _0xb1df71(){const _0xb01472=_0x6ec143;_0x5e9948[_0xb01472(0xd3d)]=_0x5e9948[_0xb01472(0x1f65)][_0xb01472(0x2214)];}}const _0x222ce3=_0x6d35c4;;_0x363ad3[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6),_0x5537c6(0x1f2a)];function _0x363ad3(_0x7d554e,_0x4ccecc){const _0x56085d=_0x5537c6;_0x7d554e[_0x56085d(0x27e0)](_0x56085d(0xd64),{'abstract':!![],'url':'/motiondialer'})['state'](_0x56085d(0x2556),{'url':_0x56085d(0x262f),'views':{'content@app':{'templateUrl':_0x3d2c08,'controller':'QueueCampaignsController\x20as\x20vm'}},'resolve':{'queueCampaigns':[_0x56085d(0x1e0b),_0x56085d(0x1774),function(_0x103cd6,_0x4d80a8){const _0x196068=_0x56085d;return _0x4d80a8[_0x196068(0x22b6)](_0x196068(0x1c60))?_0x103cd6[_0x196068(0x19a3)](_0x196068(0x1c4d),{'fields':_0x196068(0x2444),'type':_0x196068(0x895),'sort':_0x196068(0x282),'channel':_0x196068(0x1fd4),'limit':0xa,'offset':0x0}):_0x103cd6['resolve'](_0x196068(0x12da),{'id':_0x4d80a8[_0x196068(0x21e8)]()[_0x196068(0x13c1)],'section':_0x196068(0x1e28),'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':_0x196068(0x895),'sort':'-updatedAt','channel':_0x196068(0x1fd4),'limit':0xa,'offset':0x0});}],'userProfile':[_0x56085d(0x1e0b),_0x56085d(0x1774),function(_0xd4d91b,_0x2eb672){const _0x2d8bbf=_0x56085d;return _0x2eb672[_0x2d8bbf(0x22b6)](_0x2d8bbf(0x1c60))?null:_0xd4d91b[_0x2d8bbf(0x19a3)]('userProfile@get',{'fields':_0x2d8bbf(0x279),'id':_0x2eb672[_0x2d8bbf(0x21e8)]()[_0x2d8bbf(0x13c1)]});}],'userProfileSection':['apiResolver',_0x56085d(0x1774),function(_0x4dc635,_0x974d87){const _0x2ccd31=_0x56085d;return _0x974d87[_0x2ccd31(0x22b6)](_0x2ccd31(0x1c60))?null:_0x4dc635['resolve']('userProfileSection@get',{'fields':_0x2ccd31(0x1f5f),'userProfileId':_0x974d87[_0x2ccd31(0x21e8)]()['userProfileId'],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0x56085d(0x13ac)})[_0x56085d(0x27e0)](_0x56085d(0x1467),{'url':'/:id?tab','params':{'queueCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1f4700,'controller':'QueueCampaignController\x20as\x20vm'}},'resolve':{'queueCampaign':[_0x56085d(0x1e0b),_0x56085d(0x225c),function(_0x474cd9,_0xfeecc){const _0x5a0b1d=_0x56085d;return _0x474cd9[_0x5a0b1d(0x19a3)](_0x5a0b1d(0x1c4d),{'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':_0xfeecc['id']});}],'userProfileSection':[_0x56085d(0x1e0b),_0x56085d(0x1774),function(_0xc96b24,_0xa0b03b){const _0x49ae08=_0x56085d;return _0xc96b24[_0x49ae08(0x19a3)](_0x49ae08(0x2182),{'fields':_0x49ae08(0x1f5f),'userProfileId':_0xa0b03b[_0x49ae08(0x21e8)]()[_0x49ae08(0x13c1)],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0x56085d(0x13ac)})['state']('app.motiondialer.ivrCampaigns',{'url':_0x56085d(0x2645),'views':{'content@app':{'templateUrl':_0x49fbc1,'controller':_0x56085d(0x20d7)}},'resolve':{'ivrCampaigns':[_0x56085d(0x1e0b),'Auth',function(_0x49c445,_0x330def){const _0x4a4b63=_0x56085d;return _0x330def[_0x4a4b63(0x22b6)]('admin')?_0x49c445[_0x4a4b63(0x19a3)](_0x4a4b63(0xb29),{'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':_0x4a4b63(0x242e),'sort':_0x4a4b63(0x282),'limit':0xa,'offset':0x0}):_0x49c445[_0x4a4b63(0x19a3)]('userProfile@getResources',{'id':_0x330def[_0x4a4b63(0x21e8)]()[_0x4a4b63(0x13c1)],'section':_0x4a4b63(0x2525),'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':_0x4a4b63(0x242e),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x56085d(0x1774),function(_0x3eefbe,_0x206b92){const _0x23961b=_0x56085d;return _0x206b92[_0x23961b(0x22b6)](_0x23961b(0x1c60))?null:_0x3eefbe[_0x23961b(0x19a3)](_0x23961b(0x9ae),{'fields':_0x23961b(0x279),'id':_0x206b92[_0x23961b(0x21e8)]()['userProfileId']});}],'userProfileSection':[_0x56085d(0x1e0b),'Auth',function(_0x45484e,_0xf689d2){const _0x2aaaaf=_0x56085d;return _0xf689d2[_0x2aaaaf(0x22b6)](_0x2aaaaf(0x1c60))?null:_0x45484e['resolve'](_0x2aaaaf(0x2182),{'fields':_0x2aaaaf(0x1f5f),'userProfileId':_0xf689d2[_0x2aaaaf(0x21e8)]()[_0x2aaaaf(0x13c1)],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':_0x56085d(0x13ac)})[_0x56085d(0x27e0)](_0x56085d(0x7cd),{'url':_0x56085d(0x1bf2),'params':{'ivrCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5918b0,'controller':_0x56085d(0x2831)}},'resolve':{'ivrCampaign':[_0x56085d(0x1e0b),_0x56085d(0x225c),function(_0x1931d4,_0x25871b){const _0x1fe4d5=_0x56085d;return _0x1931d4[_0x1fe4d5(0x19a3)](_0x1fe4d5(0xb29),{'fields':'createdAt,updatedAt,id,name,active,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,SquareProjectId,limitCalls,description,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,dialOrderByScheduledAt,dialGlobalInterval,dialTimezone,dialPrefix,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength','id':_0x25871b['id']});}],'userProfileSection':[_0x56085d(0x1e0b),'Auth',function(_0x156452,_0x28cd4d){const _0xbf4eb5=_0x56085d;return _0x156452[_0xbf4eb5(0x19a3)]('userProfileSection@get',{'fields':_0xbf4eb5(0x1f5f),'userProfileId':_0x28cd4d[_0xbf4eb5(0x21e8)]()[_0xbf4eb5(0x13c1)],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':_0x56085d(0x13ac)}),_0x4ccecc[_0x56085d(0x4e7)](_0x56085d(0xc94));}angular['module']('app.motiondialer',[_0x5537c6(0x2770),_0x5537c6(0x2135),_0x5537c6(0x1260),_0x5537c6(0xacf),_0x5537c6(0x18f6),'ckeditor',_0x5537c6(0x44c),_0x5537c6(0x2ec),_0x5537c6(0x1890),_0x5537c6(0x167d),'mwFormBuilder',_0x5537c6(0x1b65),'mwFormUtils',_0x5537c6(0x3b9),_0x5537c6(0x7c9),_0x5537c6(0xeb5),_0x5537c6(0x27af),_0x5537c6(0x13b6),_0x5537c6(0x1cbd),'angular.filter',_0x5537c6(0x1239)])[_0x5537c6(0xa60)](_0x363ad3)[_0x5537c6(0x6e5)](_0x5537c6(0x1f29),_0x3d7546)[_0x5537c6(0x6e5)](_0x5537c6(0xc3b),_0x4b65bb)['controller'](_0x5537c6(0x1c3d),_0x1beecc)[_0x5537c6(0x6e5)](_0x5537c6(0x23bf),_0x3062e4)[_0x5537c6(0x6e5)]('IvrCampaignHopperFinalsController',_0x5bf115)[_0x5537c6(0x6e5)](_0x5537c6(0x460),_0x42ebfb)[_0x5537c6(0x6e5)](_0x5537c6(0x2697),_0x3480ac)['controller'](_0x5537c6(0x1601),_0x3172fe)[_0x5537c6(0x6e5)](_0x5537c6(0x7f5),_0x4c5708)[_0x5537c6(0x6e5)](_0x5537c6(0x1c8c),_0x14a5e8)[_0x5537c6(0x6e5)](_0x5537c6(0x1013),_0x3c6c9f)[_0x5537c6(0x6e5)](_0x5537c6(0x135c),_0x367180)[_0x5537c6(0x6e5)]('IvrCampaignsController',_0x37a751)[_0x5537c6(0x6e5)](_0x5537c6(0x1c3),_0x28804f)['controller'](_0x5537c6(0xc10),_0xabd899)[_0x5537c6(0x6e5)]('QueueCampaignblacklistaddController',_0x2c064b)['controller'](_0x5537c6(0x8e6),_0x466df6)[_0x5537c6(0x6e5)](_0x5537c6(0x1cbe),_0x2ca263)[_0x5537c6(0x6e5)](_0x5537c6(0x1b64),_0x349af5)[_0x5537c6(0x6e5)]('QueueCampaignHopperHistoriesController',_0x3daa54)[_0x5537c6(0x6e5)](_0x5537c6(0x10c8),_0x6f7acc)[_0x5537c6(0x6e5)](_0x5537c6(0x1acc),_0x43f365)[_0x5537c6(0x6e5)](_0x5537c6(0x25b5),_0xa1b039)[_0x5537c6(0x6e5)](_0x5537c6(0x9b6),_0x345fdb)[_0x5537c6(0x6e5)]('QueueCampaignresetlistController',_0x2c29ef)['controller'](_0x5537c6(0x2884),_0x459587)[_0x5537c6(0x6e5)]('QueueCampaignController',_0x5aa7a4)[_0x5537c6(0x6e5)](_0x5537c6(0x1a12),_0x222ce3);;const _0x5e93e7=_0x5074a3['p']+_0x5537c6(0x23c2);;_0x294e8b[_0x5537c6(0x15b6)]=[_0x5537c6(0x28c7),_0x5537c6(0x8a5),_0x5537c6(0x142b)];function _0x35aae4(_0x8c4464){const _0x34d075=_0x5537c6,_0x381748=_0x543b5a()(_0x8c4464);return _0x381748[_0x34d075(0x1a4f)]()?_0x381748[_0x34d075(0x1f31)](_0x34d075(0x12ec)):'';}function _0x294e8b(_0x13d58a,_0x4519a0,_0x38cf8e){const _0x33b1dc=_0x5537c6,_0x14b94b=this;_0x14b94b[_0x33b1dc(0x29ae)]=_0x38cf8e[_0x33b1dc(0x29ae)],_0x14b94b[_0x33b1dc(0x28c7)]={..._0x13d58a,'buildDate':_0x35aae4(_0x13d58a['buildDate']),'commitDate':_0x35aae4(_0x13d58a[_0x33b1dc(0x1ab)]),'client':{'name':_0x33b1dc(0x18c6),'version':_0x33b1dc(0xee4),'shortHash':_0x33b1dc(0x1c78),'branch':_0x33b1dc(0x344),'tag':'','committedOn':_0x33b1dc(0xe3d),'buildDate':_0x33b1dc(0x1f81)}},_0x14b94b['license']=_0x4519a0;}const _0x2c0dc4=_0x294e8b;;_0x1ca2c4[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6)];function _0x1ca2c4(_0x4762a7){const _0x42945=_0x5537c6;_0x4762a7[_0x42945(0x27e0)]('app.help.about',{'url':_0x42945(0xc31),'views':{'content@app':{'templateUrl':_0x5e93e7,'controller':_0x42945(0x3d9)}},'resolve':{'info':[_0x42945(0x1e0b),function(_0x215dc6){const _0x1dff4d=_0x42945;return _0x215dc6['resolve'](_0x1dff4d(0x21ea));}]},'authenticate':!![],'permissionId':0x640,'bodyClass':'help'});}angular[_0x5537c6(0x9ab)](_0x5537c6(0x19a1),[])[_0x5537c6(0xa60)](_0x1ca2c4)[_0x5537c6(0x6e5)](_0x5537c6(0xdc5),_0x2c0dc4);;_0x91f8fe[_0x5537c6(0x15b6)]=['$stateProvider',_0x5537c6(0x1f2a)];function _0x91f8fe(_0x51c141,_0x30572a){const _0x4165aa=_0x5537c6;_0x51c141[_0x4165aa(0x27e0)](_0x4165aa(0x82b),{'abstract':!![],'url':_0x4165aa(0x1dbf)}),_0x30572a[_0x4165aa(0x4e7)](_0x4165aa(0xedd));}angular[_0x5537c6(0x9ab)]('app.help',[_0x5537c6(0x2770),_0x5537c6(0x2135),_0x5537c6(0x1260),_0x5537c6(0xacf),_0x5537c6(0x18f6),_0x5537c6(0xd19),_0x5537c6(0x44c),_0x5537c6(0x2ec),_0x5537c6(0x1890),_0x5537c6(0x167d),_0x5537c6(0x208f),_0x5537c6(0x1b65),_0x5537c6(0x2166),_0x5537c6(0x3b9),'angular-cron-jobs',_0x5537c6(0xeb5),_0x5537c6(0x27af),'material.components.expansionPanels','chart.js',_0x5537c6(0xd01),_0x5537c6(0x19a1)])['config'](_0x91f8fe);;const _0x24521d=_0x5074a3['p']+_0x5537c6(0x2268);;const _0x678024=_0x5074a3['p']+_0x5537c6(0x4d5);;_0x38acd3[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state','$location',_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x2981),_0x5537c6(0x12a7),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x38acd3(_0x1c06e3,_0x2dbbd3,_0x3ba929,_0x538460,_0x2f5dde,_0x4920da,_0x394e85,_0x552858,_0x3829e4,_0x14e5b4,_0x26bba5,_0x2c3d8b,_0x5b2eff,_0x4616c2){const _0x3e23aa=_0x5537c6,_0x403ca7=this;_0x403ca7[_0x3e23aa(0xe76)]=_0x26bba5[_0x3e23aa(0x21e8)](),_0x403ca7[_0x3e23aa(0x1a7c)]=[],_0x403ca7[_0x3e23aa(0x9ca)]=_0x5b2eff,_0x403ca7[_0x3e23aa(0x8a5)]=_0x2c3d8b,_0x403ca7[_0x3e23aa(0x1b1a)]=_0x4616c2,_0x403ca7[_0x3e23aa(0xf4c)]={},_0x403ca7[_0x3e23aa(0x1b0c)]=_0x403ca7[_0x3e23aa(0x9ca)]&&_0x403ca7[_0x3e23aa(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x403ca7[_0x3e23aa(0x1386)]='JSCRIPTY.EDIT_PROJECT',_0x403ca7[_0x3e23aa(0x12a7)]=angular['copy'](_0x3829e4),_0x403ca7[_0x3e23aa(0x2981)]=_0x552858,_0x403ca7[_0x3e23aa(0xdc9)]=![];!_0x403ca7['project']&&(_0x403ca7[_0x3e23aa(0x12a7)]={'enableUncompleteSave':!![],'sendUnpauseOnSubmit':!![]},_0x403ca7[_0x3e23aa(0x1386)]=_0x3e23aa(0x21b),_0x403ca7[_0x3e23aa(0xdc9)]=!![]);_0x403ca7[_0x3e23aa(0xd7c)]=_0x5e77fd,_0x403ca7[_0x3e23aa(0xeb3)]=_0x2ef32b,_0x403ca7[_0x3e23aa(0x1e66)]=_0x256fed,_0x403ca7[_0x3e23aa(0x2c4)]=_0x1e33ff,_0x403ca7['closeDialog']=_0x4b7883;function _0x5e77fd(){const _0x426199=_0x3e23aa;_0x403ca7[_0x426199(0x1a7c)]=[],_0x14e5b4['jscriptyProject'][_0x426199(0x1c3f)](_0x403ca7['project'])['$promise'][_0x426199(0x1cb0)](function(_0x4c67da){const _0x5404d6=_0x426199;_0x403ca7['projects'][_0x5404d6(0xf63)](_0x4c67da[_0x5404d6(0x19b2)]()),_0x394e85[_0x5404d6(0x829)]({'title':_0x5404d6(0xc28),'msg':_0x403ca7[_0x5404d6(0x12a7)]['name']?_0x403ca7[_0x5404d6(0x12a7)][_0x5404d6(0x16b6)]+_0x5404d6(0x470):''}),_0x4b7883(_0x4c67da);})[_0x426199(0x1c4)](function(_0xb851f3){const _0x12999d=_0x426199;if(_0xb851f3[_0x12999d(0x25c)]&&_0xb851f3[_0x12999d(0x25c)][_0x12999d(0x1a7c)]&&_0xb851f3['data'][_0x12999d(0x1a7c)][_0x12999d(0xfd0)]){_0x403ca7[_0x12999d(0x1a7c)]=_0xb851f3[_0x12999d(0x25c)]['errors']||[{'message':_0xb851f3[_0x12999d(0x147f)](),'type':_0x12999d(0x64d)}];for(let _0x1701e5=0x0;_0x1701e5<_0xb851f3['data']['errors']['length'];_0x1701e5+=0x1){_0x394e85[_0x12999d(0x218e)]({'title':_0xb851f3[_0x12999d(0x25c)][_0x12999d(0x1a7c)][_0x1701e5][_0x12999d(0x66a)],'msg':_0xb851f3[_0x12999d(0x25c)][_0x12999d(0x1a7c)][_0x1701e5][_0x12999d(0x155e)]});}}else _0x394e85['error']({'title':_0xb851f3[_0x12999d(0x291)]?_0x12999d(0xeb9)+_0xb851f3['status']+'\x20-\x20'+_0xb851f3[_0x12999d(0xc22)]:_0x12999d(0x64d),'msg':_0xb851f3['data']?JSON[_0x12999d(0x2701)](_0xb851f3[_0x12999d(0x25c)][_0x12999d(0x155e)]):_0xb851f3[_0x12999d(0x147f)]()});});}function _0x2ef32b(){const _0x4cec6d=_0x3e23aa;_0x403ca7[_0x4cec6d(0x1a7c)]=[],_0x14e5b4[_0x4cec6d(0x1c21)]['update']({'id':_0x403ca7[_0x4cec6d(0x12a7)]['id']},_0x403ca7[_0x4cec6d(0x12a7)])[_0x4cec6d(0x1d77)][_0x4cec6d(0x1cb0)](function(_0x4d49ab){const _0x3503d3=_0x4cec6d,_0x2f49b7=_0x39641b()[_0x3503d3(0x13b4)](_0x403ca7['projects'],{'id':_0x4d49ab['id']});_0x2f49b7&&_0x39641b()['merge'](_0x2f49b7,_0x39641b()['pick'](_0x4d49ab[_0x3503d3(0x19b2)](),_0x39641b()[_0x3503d3(0x1be5)](_0x2f49b7))),_0x394e85[_0x3503d3(0x829)]({'title':'Project\x20properly\x20saved!','msg':_0x403ca7[_0x3503d3(0x12a7)][_0x3503d3(0x16b6)]?_0x403ca7[_0x3503d3(0x12a7)][_0x3503d3(0x16b6)]+_0x3503d3(0xedb):''}),_0x4b7883(_0x4d49ab);})[_0x4cec6d(0x1c4)](function(_0x3fb63a){const _0x507fec=_0x4cec6d;if(_0x3fb63a[_0x507fec(0x25c)]&&_0x3fb63a[_0x507fec(0x25c)][_0x507fec(0x1a7c)]&&_0x3fb63a['data'][_0x507fec(0x1a7c)][_0x507fec(0xfd0)]){_0x403ca7[_0x507fec(0x1a7c)]=_0x3fb63a[_0x507fec(0x25c)]['errors']||[{'message':_0x3fb63a[_0x507fec(0x147f)](),'type':'api.jscriptyProject.update'}];for(let _0x248002=0x0;_0x248002<_0x3fb63a[_0x507fec(0x25c)][_0x507fec(0x1a7c)][_0x507fec(0xfd0)];_0x248002++){_0x394e85[_0x507fec(0x218e)]({'title':_0x3fb63a[_0x507fec(0x25c)][_0x507fec(0x1a7c)][_0x248002]['type'],'msg':_0x3fb63a[_0x507fec(0x25c)][_0x507fec(0x1a7c)][_0x248002][_0x507fec(0x155e)]});}}else _0x394e85[_0x507fec(0x218e)]({'title':_0x3fb63a[_0x507fec(0x291)]?_0x507fec(0xeb9)+_0x3fb63a[_0x507fec(0x291)]+_0x507fec(0x1657)+_0x3fb63a[_0x507fec(0xc22)]:'api.jscriptyProject.update','msg':_0x3fb63a[_0x507fec(0x25c)]?JSON[_0x507fec(0x2701)](_0x3fb63a['data'][_0x507fec(0x155e)]):_0x3fb63a[_0x507fec(0x147f)]()});});}function _0x256fed(_0x374200){const _0x543e6b=_0x3e23aa;_0x403ca7[_0x543e6b(0x1a7c)]=[];const _0x1bb3f6=_0x538460[_0x543e6b(0x1551)]()['title'](_0x543e6b(0x1a2e))['content'](_0x543e6b(0x12e0))[_0x543e6b(0x15ad)](_0x543e6b(0x1c03))['ok'](_0x543e6b(0x2594))[_0x543e6b(0x696)](_0x543e6b(0xde1))[_0x543e6b(0x728)](_0x374200);_0x538460['show'](_0x1bb3f6)[_0x543e6b(0x1cb0)](function(){const _0x33b9ed=_0x543e6b;_0x14e5b4['jscriptyProject'][_0x33b9ed(0x111d)]({'id':_0x403ca7[_0x33b9ed(0x12a7)]['id']})['$promise']['then'](function(){const _0x549f08=_0x33b9ed;_0x39641b()['remove'](_0x403ca7[_0x549f08(0x2981)],{'id':_0x403ca7['project']['id']}),_0x394e85['success']({'title':_0x549f08(0x1300),'msg':(_0x403ca7[_0x549f08(0x12a7)][_0x549f08(0x16b6)]||_0x549f08(0x12a7))+_0x549f08(0x3f5)}),_0x4b7883(_0x403ca7['project']);})['catch'](function(_0x3270cc){const _0x4dae4c=_0x33b9ed;if(_0x3270cc[_0x4dae4c(0x25c)]&&_0x3270cc[_0x4dae4c(0x25c)]['errors']&&_0x3270cc[_0x4dae4c(0x25c)][_0x4dae4c(0x1a7c)][_0x4dae4c(0xfd0)]){_0x403ca7[_0x4dae4c(0x1a7c)]=_0x3270cc[_0x4dae4c(0x25c)]['errors']||[{'message':_0x3270cc[_0x4dae4c(0x147f)](),'type':'api.jscriptyProject.delete'}];for(let _0xa49696=0x0;_0xa49696<_0x3270cc[_0x4dae4c(0x25c)][_0x4dae4c(0x1a7c)][_0x4dae4c(0xfd0)];_0xa49696++){_0x394e85[_0x4dae4c(0x218e)]({'title':_0x3270cc[_0x4dae4c(0x25c)][_0x4dae4c(0x1a7c)][_0xa49696][_0x4dae4c(0x66a)],'msg':_0x3270cc['data'][_0x4dae4c(0x1a7c)][_0xa49696][_0x4dae4c(0x155e)]});}}else _0x394e85[_0x4dae4c(0x218e)]({'title':_0x3270cc[_0x4dae4c(0x291)]?_0x4dae4c(0xeb9)+_0x3270cc[_0x4dae4c(0x291)]+_0x4dae4c(0x1657)+_0x3270cc[_0x4dae4c(0xc22)]:_0x4dae4c(0x229d),'msg':_0x3270cc[_0x4dae4c(0x25c)]?JSON[_0x4dae4c(0x2701)](_0x3270cc[_0x4dae4c(0x25c)][_0x4dae4c(0x155e)]):_0x3270cc[_0x4dae4c(0x155e)]||_0x3270cc['toString']()});});},function(){});}function _0x1e33ff(_0x5e9848){return _0x5e9848===null?undefined:new Date(_0x5e9848);}function _0x4b7883(_0x267c45){_0x538460['hide'](_0x267c45);}}const _0x5be484=_0x38acd3;;_0xf22590[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$document','$window',_0x5537c6(0x142b),_0x5537c6(0x9bf),'dateFilterLocalizationFactory'];function _0xf22590(_0x39c977,_0x210c23,_0x57c0cd,_0x3b5626,_0x47732f,_0x2c3865){const _0x54c1a4=_0x5537c6,_0x405c32=this;_0x405c32[_0x54c1a4(0x12a7)]={},_0x405c32[_0x54c1a4(0xd31)]=_0x2c3865;const _0x108b34=new Date();_0x108b34['setHours'](0x0,0x0,0x0,0x0),_0x405c32[_0x54c1a4(0x1fb2)]={'dateStart':new Date(_0x108b34[_0x54c1a4(0x2516)](),_0x108b34[_0x54c1a4(0x1c4c)](),0x1),'dateEnd':new Date(_0x108b34[_0x54c1a4(0x2516)](),_0x108b34[_0x54c1a4(0x1c4c)]()+0x1,0x0),'selectedTemplate':'TM'},_0x405c32[_0x54c1a4(0x1a8e)]=_0x1217b2,_0x405c32['getSummary']=_0x5e65a9,_0x405c32[_0x54c1a4(0x1ec5)]=_0x24f8ae;function _0x24f8ae(){const _0x426de9=_0x54c1a4;return _0x405c32[_0x426de9(0x2860)]=![],_0x3b5626[_0x426de9(0x1c21)][_0x426de9(0x1ec5)]({'id':_0x405c32['project']['id'],'sort':_0x426de9(0x537),'createdAt':{'$gte':_0x543b5a()(_0x405c32['pickerModel'][_0x426de9(0x5fc)])[_0x426de9(0x17a1)](0x0,_0x426de9(0x1de0))[_0x426de9(0x17a1)](0x0,_0x426de9(0x22d))['add'](0x0,'seconds')[_0x426de9(0x17d9)](0x0,!![])['format'](),'$lte':_0x543b5a()(_0x405c32['pickerModel'][_0x426de9(0x5a8)])[_0x426de9(0x17a1)](0x17,_0x426de9(0x1de0))[_0x426de9(0x17a1)](0x3b,_0x426de9(0x22d))[_0x426de9(0x17a1)](0x3b,_0x426de9(0x479))[_0x426de9(0x17d9)](0x0,!![])[_0x426de9(0x1f31)]()},'nolimit':!![]})[_0x426de9(0x1d77)][_0x426de9(0x1cb0)](function(_0x493cea){const _0x36f164=_0x426de9;if(_0x493cea&&_0x493cea[_0x36f164(0x2214)]&&typeof _0x493cea[_0x36f164(0x184d)]!=='undefined'){_0x405c32['answers']={};for(let _0x5d989f=0x0,_0x17c717=_0x493cea['count'];_0x5d989f<_0x17c717;_0x5d989f++){_0x493cea['rows'][_0x5d989f][_0x36f164(0x2438)]&&(_0x405c32[_0x36f164(0x2860)]=!![],typeof _0x405c32[_0x36f164(0x2814)][_0x493cea[_0x36f164(0x2214)][_0x5d989f][_0x36f164(0x2438)]]==='undefined'&&(_0x405c32[_0x36f164(0x2814)][_0x493cea['rows'][_0x5d989f][_0x36f164(0x2438)]]={'question':_0x493cea[_0x36f164(0x2214)][_0x5d989f][_0x36f164(0x2823)],'answers':{},'sum':0x0}),_0x493cea[_0x36f164(0x2214)][_0x5d989f][_0x36f164(0x24d5)]===''&&(_0x493cea['rows'][_0x5d989f]['answer']=_0x36f164(0x21ce)),_0x405c32[_0x36f164(0x2814)][_0x493cea[_0x36f164(0x2214)][_0x5d989f][_0x36f164(0x2438)]][_0x36f164(0x2814)][_0x493cea['rows'][_0x5d989f][_0x36f164(0x24d5)]]?_0x405c32[_0x36f164(0x2814)][_0x493cea[_0x36f164(0x2214)][_0x5d989f][_0x36f164(0x2438)]][_0x36f164(0x2814)][_0x493cea[_0x36f164(0x2214)][_0x5d989f][_0x36f164(0x24d5)]]+=0x1:_0x405c32[_0x36f164(0x2814)][_0x493cea[_0x36f164(0x2214)][_0x5d989f][_0x36f164(0x2438)]][_0x36f164(0x2814)][_0x493cea[_0x36f164(0x2214)][_0x5d989f][_0x36f164(0x24d5)]]=0x1,_0x405c32['answers'][_0x493cea[_0x36f164(0x2214)][_0x5d989f][_0x36f164(0x2438)]][_0x36f164(0x1e23)]+=0x1);}}})['catch'](function(_0x4d766c){const _0x1a7d53=_0x426de9;_0x47732f['error']({'title':_0x4d766c[_0x1a7d53(0x291)]?_0x1a7d53(0xeb9)+_0x4d766c[_0x1a7d53(0x291)]+'\x20-\x20'+_0x4d766c[_0x1a7d53(0xc22)]:_0x1a7d53(0x9f6),'msg':_0x4d766c[_0x1a7d53(0x25c)]?JSON[_0x1a7d53(0x2701)](_0x4d766c['data']):_0x4d766c[_0x1a7d53(0x147f)]()});});}function _0x1217b2(_0x1382f2){const _0x3493e5=_0x54c1a4;_0x405c32[_0x3493e5(0x12a7)]=_0x1382f2,_0x405c32[_0x3493e5(0x1ec5)]();}function _0x5e65a9(){const _0x149586=_0x54c1a4;return _0x3b5626[_0x149586(0x1c21)][_0x149586(0x14d3)]({'id':_0x405c32['project']['id'],'startTime':{'$gte':_0x405c32['pickerModel'][_0x149586(0x5fc)],'$lte':_0x543b5a()(_0x405c32[_0x149586(0x1fb2)][_0x149586(0x5a8)])[_0x149586(0x17a1)](0x17,_0x149586(0x1de0))['add'](0x3b,_0x149586(0x22d))['add'](0x3b,'seconds')[_0x149586(0x1f31)]()},'nolimit':!![]})[_0x149586(0x1d77)][_0x149586(0x1cb0)](function(_0x380622){const _0x1c96e4=_0x149586;if(typeof _0x380622[_0x1c96e4(0xfd0)]!==_0x1c96e4(0x16b5)){const _0x37ac2b=[_0x380622[_0x1c96e4(0xef0)]],_0x2c1f29=new Blob(_0x37ac2b,{'type':_0x380622[_0x1c96e4(0x66a)]}),_0x593855=window[_0x1c96e4(0x1db8)][_0x1c96e4(0x8c6)]('a');_0x593855[_0x1c96e4(0x23b9)](_0x1c96e4(0x105b),URL[_0x1c96e4(0x2247)](_0x2c1f29)),_0x593855[_0x1c96e4(0x23b9)](_0x1c96e4(0x26ec),'jscriptyProjectSummary_'+_0x405c32[_0x1c96e4(0x12a7)]['id']+_0x1c96e4(0x285c)),_0x593855[_0x1c96e4(0x20b8)]();}else _0x47732f[_0x1c96e4(0x28c7)]({'title':_0x1c96e4(0x19f0),'msg':_0x1c96e4(0x608)});})[_0x149586(0x1c4)](function(_0x53f002){const _0x50db7d=_0x149586;_0x47732f[_0x50db7d(0x218e)]({'title':_0x53f002[_0x50db7d(0x291)]?_0x50db7d(0xeb9)+_0x53f002[_0x50db7d(0x291)]+_0x50db7d(0x1657)+_0x53f002[_0x50db7d(0xc22)]:_0x50db7d(0xf7f),'msg':_0x53f002['data']?JSON['stringify'](_0x53f002['data']):_0x53f002[_0x50db7d(0x147f)]()});});}}const _0x4554e2=_0xf22590;;function _0x12c700(){const _0x589ae7=_0x5537c6,_0x24627b=this;_0x24627b[_0x589ae7(0x12a7)]={},_0x24627b[_0x589ae7(0x1e4d)]={'questionTypes':[_0x589ae7(0x19d3),_0x589ae7(0x2424),_0x589ae7(0x24a5),'checkbox',_0x589ae7(0x220f),'number',_0x589ae7(0x18ec),_0x589ae7(0x161a),_0x589ae7(0x1e19),_0x589ae7(0x124b),_0x589ae7(0x135b)],'elementTypes':[_0x589ae7(0x2823),_0x589ae7(0x3ba)]},_0x24627b[_0x589ae7(0x1a8e)]=_0x47e125,_0x24627b['isJsonString']=_0x813d8d;function _0x813d8d(_0x5f0890){const _0xca55a6=_0x589ae7;if(_0x39641b()['isNil'](_0x5f0890))return![];try{JSON[_0xca55a6(0xefe)](_0x5f0890);}catch(_0x3e5f2c){return![];}return!![];}function _0x47e125(_0x5560bd){const _0x20df91=_0x589ae7;_0x24627b[_0x20df91(0x12a7)]=_0x5560bd;if(_0x39641b()['isObjectLike'](_0x5560bd[_0x20df91(0x1b8c)]))_0x24627b['project']['formData']=_0x5560bd['formData'];else _0x24627b[_0x20df91(0xe62)](_0x5560bd[_0x20df91(0x1b8c)])?_0x24627b[_0x20df91(0x12a7)][_0x20df91(0x1b8c)]=JSON[_0x20df91(0xefe)](_0x5560bd[_0x20df91(0x1b8c)]):_0x24627b[_0x20df91(0x12a7)][_0x20df91(0x1b8c)]={};}}const _0x2dc363=_0x12c700;;_0x20af71['$inject']=[_0x5537c6(0xcb9),_0x5537c6(0x406),'toasty','api',_0x5537c6(0x12a7),'projects','$translate'];function _0x20af71(_0x5f2d9d,_0x426c31,_0x37dc99,_0x478ae5,_0x200cad,_0xfc367a,_0x3eb82d){const _0x1397d6=_0x5537c6,_0x199523=this;_0x199523['newProject']=!![],_0x199523[_0x1397d6(0x12a7)]=angular[_0x1397d6(0x17fe)](_0x200cad),_0x199523[_0x1397d6(0x2981)]=_0xfc367a,_0x199523[_0x1397d6(0x1386)]=_0x3eb82d[_0x1397d6(0x25cc)](_0x1397d6(0xb6e));_0x200cad&&_0x200cad[_0x1397d6(0x16b6)]&&(_0x199523[_0x1397d6(0x1386)]+=':\x20'+_0x200cad[_0x1397d6(0x16b6)]);_0x199523[_0x1397d6(0x2054)]=_0x11f262,_0x199523['closeDialog']=_0x257198;function _0x11f262(){const _0x4c8e66=_0x1397d6;return _0x478ae5['jscriptyProject'][_0x4c8e66(0x11bc)]({'id':_0x200cad['id']},_0x199523[_0x4c8e66(0x12a7)])[_0x4c8e66(0x1d77)][_0x4c8e66(0x1cb0)](function(_0x44bbe2){const _0x34fbd9=_0x4c8e66;_0x199523[_0x34fbd9(0x2981)]['unshift'](_0x44bbe2[_0x34fbd9(0x19b2)]()),_0x37dc99[_0x34fbd9(0x829)]({'title':_0x34fbd9(0x1793),'msg':_0x199523[_0x34fbd9(0x12a7)][_0x34fbd9(0x16b6)]?_0x199523[_0x34fbd9(0x12a7)][_0x34fbd9(0x16b6)]+'\x20has\x20been\x20cloned!':''}),_0x426c31['go'](_0x34fbd9(0x16f4),{'id':_0x44bbe2['id']}),_0x257198(_0x44bbe2);})['catch'](function(_0xa2d260){const _0x3161d2=_0x4c8e66;if(_0xa2d260[_0x3161d2(0x25c)]&&_0xa2d260[_0x3161d2(0x25c)][_0x3161d2(0x1a7c)]&&_0xa2d260['data'][_0x3161d2(0x1a7c)]['length']){_0x199523[_0x3161d2(0x1a7c)]=_0xa2d260[_0x3161d2(0x25c)][_0x3161d2(0x1a7c)]||[{'message':_0xa2d260['toString'](),'type':_0x3161d2(0x848)}];for(let _0x1fdcb4=0x0;_0x1fdcb4<_0xa2d260['data'][_0x3161d2(0x1a7c)][_0x3161d2(0xfd0)];_0x1fdcb4+=0x1){_0x37dc99[_0x3161d2(0x218e)]({'title':_0xa2d260['data'][_0x3161d2(0x1a7c)][_0x1fdcb4]['type'],'msg':_0xa2d260[_0x3161d2(0x25c)][_0x3161d2(0x1a7c)][_0x1fdcb4]['message']});}}else _0x37dc99['error']({'title':_0xa2d260[_0x3161d2(0x291)]?_0x3161d2(0xeb9)+_0xa2d260[_0x3161d2(0x291)]+_0x3161d2(0x1657)+_0xa2d260[_0x3161d2(0xc22)]:'api.jscriptyProject.clone','msg':_0xa2d260[_0x3161d2(0x25c)]?JSON['stringify'](_0xa2d260['data'][_0x3161d2(0x155e)]):_0xa2d260[_0x3161d2(0x147f)]()});});}function _0x257198(_0x29c581){const _0x343185=_0x1397d6;_0x5f2d9d[_0x343185(0x1426)](_0x29c581);}}const _0x4b45d4=_0x20af71;;_0x24d7e5['$inject']=['$q',_0x5537c6(0xcb9),_0x5537c6(0x1463)];function _0x24d7e5(_0xe9f6f6,_0x181ebf,_0x376bc5){const _0x80e3b5=_0x5537c6,_0x258cd4=this;_0x258cd4[_0x80e3b5(0x12a7)]={},_0x258cd4[_0x80e3b5(0x1ea1)]={},_0x258cd4[_0x80e3b5(0xf4e)]={},_0x258cd4[_0x80e3b5(0x1a8e)]=_0xe505d9,_0x258cd4[_0x80e3b5(0x1160)]=_0x301783,_0x258cd4[_0x80e3b5(0x2130)]=_0x482eab;function _0xe505d9(_0x2162cc){const _0x3a825b=_0x80e3b5;_0x258cd4[_0x3a825b(0x12a7)]=_0x2162cc,_0x376bc5[_0x3a825b(0x1d6)](_0x3a825b(0x2748),function(_0x21609f,_0x3063e0){const _0x370494=_0x3a825b;if(_0x3063e0[_0x370494(0x46a)]&&_0x258cd4[_0x370494(0x12a7)][_0x370494(0x1b8c)]&&_0x258cd4[_0x370494(0x12a7)][_0x370494(0x1b8c)][_0x370494(0x1064)])for(let _0x1a82db=0x0,_0x2a21ff=_0x258cd4[_0x370494(0x12a7)][_0x370494(0x1b8c)]['pages'][_0x370494(0xfd0)];_0x1a82db<_0x2a21ff;_0x1a82db++){if(_0x3063e0[_0x370494(0x46a)]['number']<_0x1a82db+0x1&&_0x258cd4[_0x370494(0x12a7)]['formData'][_0x370494(0x1064)][_0x1a82db][_0x370494(0x263)])for(let _0x49210b=0x0,_0x7f060f=_0x258cd4[_0x370494(0x12a7)][_0x370494(0x1b8c)]['pages'][_0x1a82db]['elements'][_0x370494(0xfd0)];_0x49210b<_0x7f060f;_0x49210b++){_0x258cd4[_0x370494(0x12a7)]['formData'][_0x370494(0x1064)][_0x1a82db][_0x370494(0x263)][_0x49210b][_0x370494(0x66a)]===_0x370494(0x2823)&&_0x258cd4['project'][_0x370494(0x1b8c)]['pages'][_0x1a82db]['elements'][_0x49210b][_0x370494(0x2823)]&&delete _0x258cd4[_0x370494(0x1ea1)][_0x258cd4[_0x370494(0x12a7)][_0x370494(0x1b8c)]['pages'][_0x1a82db][_0x370494(0x263)][_0x49210b]['question']['id']];}}});}function _0x301783(_0x49be98){const _0x41d681=_0x80e3b5,_0x31d879=_0xe9f6f6[_0x41d681(0x11f4)](),_0x30100f=_0x181ebf[_0x41d681(0x1551)]()[_0x41d681(0x1386)](_0x41d681(0x1542))[_0x41d681(0x1152)]('')[_0x41d681(0x15ad)](_0x41d681(0xbce))['targetEvent'](_0x49be98)['ok'](_0x41d681(0xe6f))['cancel'](_0x41d681(0x24ba));return _0x181ebf[_0x41d681(0xe27)](_0x30100f)[_0x41d681(0x1cb0)](function(){const _0x3501f8=_0x41d681;_0x31d879[_0x3501f8(0x19a3)](!![]);},function(){_0x31d879['reject']();}),_0x31d879[_0x41d681(0x2061)];}function _0x482eab(){const _0x3d25ec=_0x80e3b5;_0x258cd4[_0x3d25ec(0xf4e)][_0x3d25ec(0x28d5)]&&_0x258cd4[_0x3d25ec(0xf4e)][_0x3d25ec(0x28d5)]();}}const _0x1d0cdb=_0x24d7e5;;const _0x195a71=_0x5074a3['p']+_0x5537c6(0x80c);;_0xb73648[_0x5537c6(0x15b6)]=['$cookies','$scope',_0x5537c6(0x406),'$q','$translate',_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x142b),'Auth'];function _0xb73648(_0x5c374a,_0x539c32,_0x2fb562,_0x4f9645,_0x491011,_0x3a5d87,_0x3b8d03,_0x52e96d,_0x238996,_0x5ee03d,_0x24a380){const _0x26d5b8=_0x5537c6,_0x8d390=this;_0x8d390[_0x26d5b8(0xe76)]=_0x24a380[_0x26d5b8(0x21e8)](),_0x8d390[_0x26d5b8(0x12a7)]={},_0x8d390[_0x26d5b8(0x10d0)]={'count':0x0,'rows':[]},_0x8d390[_0x26d5b8(0xa70)]=[],_0x8d390[_0x26d5b8(0x1b1a)],_0x8d390[_0x26d5b8(0xae2)]={'fields':_0x26d5b8(0x1702),'sort':_0x26d5b8(0x104c),'limit':0xa,'page':0x1},_0x8d390[_0x26d5b8(0x1a8e)]=_0x36550f,_0x8d390[_0x26d5b8(0xb25)]=_0x4f59d6,_0x8d390[_0x26d5b8(0x829)]=_0x181d94,_0x8d390[_0x26d5b8(0x14c1)]=_0x1f2f69,_0x8d390[_0x26d5b8(0x2c6)]=_0x4d9914,_0x8d390['showQuestionsProjectSession']=_0x103626,_0x8d390[_0x26d5b8(0x2531)]=_0x344969,_0x8d390['deleteProjectSession']=_0x12b642,_0x8d390['deleteSelectedProjectSessions']=_0x20c01a;function _0x36550f(_0x1a6217,_0x401a39){const _0x2e8508=_0x26d5b8;_0x8d390[_0x2e8508(0x12a7)]=_0x1a6217,_0x8d390[_0x2e8508(0x1b1a)]=typeof _0x401a39!==_0x2e8508(0x16b5)?_0x401a39:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x8d390[_0x2e8508(0xae2)]['id']=_0x8d390[_0x2e8508(0x12a7)]['id'],_0x1f2f69();}function _0x4f59d6(_0x20c220,_0xd78202){const _0x151a87=_0x26d5b8,_0x335e75=_0x3b8d03[_0x151a87(0x1551)]()[_0x151a87(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20session?')[_0x151a87(0x49e)](''+(_0x20c220['name']||_0x20c220['id']&&_0x39641b()[_0x151a87(0x277)](_0x151a87(0x18d0))+_0x20c220['id']||_0x151a87(0xb77))+_0x151a87(0x1200)+'\x20will\x20be\x20deleted.')[_0x151a87(0x15ad)](_0x151a87(0xaa3))['targetEvent'](_0xd78202)['ok']('OK')[_0x151a87(0x696)]('CANCEL');_0x3b8d03[_0x151a87(0xe27)](_0x335e75)[_0x151a87(0x1cb0)](function(){_0x12b642(_0x20c220);},function(){const _0x2e16d0=_0x151a87;console[_0x2e16d0(0x1b4f)](_0x2e16d0(0x24ba));});}function _0x181d94(_0x1ce169){const _0x102108=_0x26d5b8;_0x8d390[_0x102108(0x10d0)]=_0x1ce169||{'count':0x0,'rows':[]};}function _0x1f2f69(){const _0x34ec73=_0x26d5b8;_0x8d390[_0x34ec73(0xae2)][_0x34ec73(0x184b)]=(_0x8d390[_0x34ec73(0xae2)]['page']-0x1)*_0x8d390[_0x34ec73(0xae2)]['limit'],_0x8d390[_0x34ec73(0x2061)]=_0x5ee03d['jscriptyProject'][_0x34ec73(0x1ee6)](_0x8d390[_0x34ec73(0xae2)],_0x181d94)[_0x34ec73(0x1d77)];}function _0x4d9914(_0x234361,_0x5dca6b){const _0x289303=_0x26d5b8;_0x3b8d03[_0x289303(0xe27)]({'controller':'CreateOrEditSessionDialogController','controllerAs':'vm','templateUrl':_0x195a71,'parent':angular[_0x289303(0x1853)](_0x52e96d['body']),'targetEvent':_0x234361,'clickOutsideToClose':!![],'locals':{'project':_0x8d390[_0x289303(0x12a7)],'session':_0x5dca6b,'sessions':_0x8d390[_0x289303(0x10d0)]['rows'],'license':null,'setting':null,'crudPermissions':_0x8d390[_0x289303(0x1b1a)]}});}function _0x103626(_0x1f76d5,_0x4b83b5){const _0x1f1500=_0x26d5b8;_0x3b8d03[_0x1f1500(0xe27)]({'controller':_0x1f1500(0x16a2),'controllerAs':'vm','templateUrl':_0x195a71,'parent':angular[_0x1f1500(0x1853)](_0x52e96d[_0x1f1500(0x1ed9)]),'targetEvent':_0x1f76d5,'clickOutsideToClose':!![],'resolve':{'questions':[_0x1f1500(0x1e0b),function(_0x1c9046){const _0x51cda7=_0x1f1500;return _0x1c9046['resolve'](_0x51cda7(0x2432),{'fields':_0x51cda7(0x7bc),'sort':'id','id':_0x4b83b5['id']});}]},'locals':{'project':_0x8d390['project'],'session':_0x4b83b5}});}function _0x12b642(_0xd1f851){const _0x4a102e=_0x26d5b8;_0x5ee03d[_0x4a102e(0x425)][_0x4a102e(0x111d)]({'id':_0xd1f851['id']})[_0x4a102e(0x1d77)]['then'](function(){const _0x2a327b=_0x4a102e;_0x39641b()['remove'](_0x8d390[_0x2a327b(0x10d0)][_0x2a327b(0x2214)],{'id':_0xd1f851['id']}),_0x8d390[_0x2a327b(0x10d0)][_0x2a327b(0x184d)]-=0x1,!_0x8d390[_0x2a327b(0x10d0)][_0x2a327b(0x2214)]['length']&&_0x1f2f69(),_0x238996['success']({'title':_0x2a327b(0xee6),'msg':_0xd1f851[_0x2a327b(0x16b6)]?_0xd1f851[_0x2a327b(0x16b6)]+_0x2a327b(0x3f5):''});})[_0x4a102e(0x1c4)](function(_0x3a228e){const _0x553212=_0x4a102e;if(_0x3a228e[_0x553212(0x25c)]&&_0x3a228e[_0x553212(0x25c)]['errors']&&_0x3a228e[_0x553212(0x25c)]['errors'][_0x553212(0xfd0)]){_0x8d390['errors']=_0x3a228e[_0x553212(0x25c)][_0x553212(0x1a7c)]||[{'message':_0x3a228e['toString'](),'type':_0x553212(0x1433)}];for(let _0x127716=0x0;_0x127716<_0x3a228e['data']['errors'][_0x553212(0xfd0)];_0x127716++){_0x238996[_0x553212(0x218e)]({'title':_0x3a228e['data'][_0x553212(0x1a7c)][_0x127716][_0x553212(0x66a)],'msg':_0x3a228e[_0x553212(0x25c)]['errors'][_0x127716]['message']});}}else _0x238996['error']({'title':_0x3a228e['status']?_0x553212(0xeb9)+_0x3a228e['status']+_0x553212(0x1657)+_0x3a228e[_0x553212(0xc22)]:_0x553212(0x1433),'msg':_0x3a228e['data']?JSON[_0x553212(0x2701)](_0x3a228e['data'][_0x553212(0x155e)]):_0x3a228e['message']||_0x3a228e['toString']()});});}function _0x344969(){const _0x2c65f7=_0x26d5b8,_0x496836=angular[_0x2c65f7(0x17fe)](_0x8d390['selectedProjectSessions']);return _0x8d390['selectedProjectSessions']=[],_0x496836;}function _0x20c01a(_0x3bed87){const _0x3f902e=_0x26d5b8,_0x31e493=_0x3b8d03['confirm']()[_0x3f902e(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sessions?')['htmlContent'](_0x3f902e(0x204d)+_0x8d390[_0x3f902e(0xa70)][_0x3f902e(0xfd0)]+_0x3f902e(0x1d6c)+_0x3f902e(0x1b6))[_0x3f902e(0x15ad)]('delete\x20sessions')[_0x3f902e(0x728)](_0x3bed87)['ok']('OK')[_0x3f902e(0x696)](_0x3f902e(0x24ba));_0x3b8d03[_0x3f902e(0xe27)](_0x31e493)[_0x3f902e(0x1cb0)](function(){const _0x1af73f=_0x3f902e;_0x8d390['selectedProjectSessions'][_0x1af73f(0xf90)](function(_0x297713){_0x12b642(_0x297713);}),_0x8d390[_0x1af73f(0xa70)]=[];});}let _0x357c24=!![],_0x15f397=0x1;_0x539c32[_0x26d5b8(0x614)](_0x26d5b8(0xeb6),function(_0x59611b,_0x8c47d5){const _0x152798=_0x26d5b8;_0x357c24?_0x3a5d87(function(){_0x357c24=![];}):(!_0x8c47d5&&(_0x15f397=_0x8d390[_0x152798(0xae2)][_0x152798(0x1c7b)]),_0x59611b!==_0x8c47d5&&(_0x8d390[_0x152798(0xae2)][_0x152798(0x1c7b)]=0x1),!_0x59611b&&(_0x8d390[_0x152798(0xae2)]['page']=_0x15f397),_0x1f2f69());});}const _0x13f6d1=_0xb73648;;_0x6578d3[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x9bf),_0x5537c6(0xb77),_0x5537c6(0xb84),'project'];function _0x6578d3(_0x342090,_0x331c15,_0x4fa244,_0x5a3ece,_0x4f0656,_0x52ea89,_0x377cea,_0x1cb3e1){const _0x5be8ac=_0x5537c6,_0xc14a1f=this;_0xc14a1f[_0x5be8ac(0x1386)]=_0x5be8ac(0x206c),_0xc14a1f[_0x5be8ac(0xb77)]=_0x52ea89,_0xc14a1f[_0x5be8ac(0xb84)]=_0x377cea,_0xc14a1f[_0x5be8ac(0x12a7)]=_0x1cb3e1;function _0x54cf5d(_0x4a3045){_0x5a3ece['hide'](_0x4a3045);}_0xc14a1f[_0x5be8ac(0xda0)]=_0x54cf5d;}const _0x43fa4c=_0x6578d3;;const _0x121e50=_0x5074a3['p']+_0x5537c6(0x90c);;_0x3f68fa[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),'$location',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1ae),'license','setting',_0x5537c6(0x142b),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x12a7),_0x5537c6(0x2199)];function _0x3f68fa(_0xe723cc,_0x537785,_0xdfa66d,_0x261837,_0x1b3164,_0x5abba3,_0x3bf1f0,_0x2573d6,_0x3e0b30,_0x44c24d,_0x67b764,_0x570267){const _0x264514=_0x5537c6,_0x4023ac=this;_0x4023ac['currentUser']=_0x44c24d[_0x264514(0x21e8)](),_0x4023ac[_0x264514(0x8a5)]=_0x5abba3,_0x4023ac[_0x264514(0x9ca)]=_0x3bf1f0,_0x4023ac['passwordPattern']=_0x4023ac['setting'][_0x264514(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4023ac['location']=_0x537785[_0x264514(0x2276)]()+_0x264514(0x138b)+_0x537785[_0x264514(0x17d8)](),_0x4023ac[_0x264514(0x12a7)]=_0x67b764||_0xe723cc['params']['project']||{},_0x4023ac[_0x264514(0x2199)]=_0x570267&&_0x570267['count']==0x1?_0x570267['rows'][0x0]:null,_0x4023ac['crudPermissions']=_0x44c24d['parseCrudPermissions'](_0x4023ac[_0x264514(0x2199)]?_0x4023ac[_0x264514(0x2199)][_0x264514(0x1b1a)]:null),_0x4023ac[_0x264514(0xf4c)]={},_0x4023ac[_0x264514(0x8ec)]=_0xe723cc[_0x264514(0x1dfe)][_0x264514(0x291e)]||0x0,_0x4023ac['clonedialog']=_0x453506,_0x4023ac[_0x264514(0x494)]=_0x3e0b30[_0x264514(0x28c7)],_0x4023ac[_0x264514(0x1fcd)]=_0x1c1e79,_0x4023ac[_0x264514(0xeb3)]=_0x24eec7;function _0x453506(_0x1689e1,_0xcfe587){const _0x2d9c6b=_0x264514;_0xdfa66d[_0x2d9c6b(0xe27)]({'controller':_0x2d9c6b(0xcc0),'controllerAs':'vm','templateUrl':_0x121e50,'parent':angular['element'](_0x261837['body']),'targetEvent':_0xcfe587,'clickOutsideToClose':!![],'locals':{'project':_0x1689e1,'projects':_0x4023ac[_0x2d9c6b(0x2981)]?_0x4023ac['projects'][_0x2d9c6b(0x2214)]:[],'crudPermissions':_0x4023ac[_0x2d9c6b(0x1b1a)]}});}function _0x1c1e79(){const _0x45a864=_0x264514;_0xe723cc['go'](_0x45a864(0xa79),{},{'reload':_0x45a864(0xa79)});}function _0x24eec7(){const _0x56847a=_0x264514;_0x2573d6[_0x56847a(0x1c21)]['update']({'id':_0x4023ac[_0x56847a(0x12a7)]['id']},_0x4023ac[_0x56847a(0x12a7)])['$promise'][_0x56847a(0x1cb0)](function(){const _0x276c6d=_0x56847a;_0x3e0b30[_0x276c6d(0x829)]({'title':_0x276c6d(0xc29),'msg':_0x4023ac['project'][_0x276c6d(0x16b6)]?_0x4023ac[_0x276c6d(0x12a7)][_0x276c6d(0x16b6)]+'\x20has\x20been\x20updated!':''});})[_0x56847a(0x1c4)](function(_0x65a0b6){const _0x16f1c7=_0x56847a;_0x3e0b30[_0x16f1c7(0x218e)]({'title':_0x65a0b6[_0x16f1c7(0x291)]?_0x16f1c7(0xeb9)+_0x65a0b6[_0x16f1c7(0x291)]+'\x20-\x20'+_0x65a0b6[_0x16f1c7(0xc22)]:'SYSTEM:GETjscriptyProject','msg':_0x65a0b6[_0x16f1c7(0x25c)]?JSON[_0x16f1c7(0x2701)](_0x65a0b6[_0x16f1c7(0x25c)]):_0x65a0b6[_0x16f1c7(0x147f)]()});});}}const _0x13aea7=_0x3f68fa;;const _0x20276e=_0x5074a3['p']+_0x5537c6(0xa81);;_0x4205de[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),'$document','$timeout','$translate',_0x5537c6(0x2981),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x4205de(_0x537455,_0x184f87,_0x346e6b,_0x4a1a98,_0x22333f,_0x1d0838,_0x4cdfa7,_0x14ed24,_0x41f8da,_0x2c7f86,_0x215299,_0x4abde1,_0x4a4dd7,_0x1732dd,_0x775a26,_0x3047ab,_0x329cb2){const _0x545589=_0x5537c6,_0x5202a0=this;_0x5202a0[_0x545589(0x8a5)]=_0x3047ab,_0x5202a0[_0x545589(0x9ca)]=_0x329cb2,_0x5202a0['currentUser']=_0x775a26['getCurrentUser'](),_0x5202a0[_0x545589(0x2981)]=_0x41f8da||{'count':0x0,'rows':[]},_0x5202a0['userProfile']=_0x2c7f86,_0x5202a0[_0x545589(0x2199)]=_0x215299&&_0x215299['count']==0x1?_0x215299[_0x545589(0x2214)][0x0]:null,_0x5202a0[_0x545589(0x1b1a)]=_0x775a26[_0x545589(0x14ea)](_0x5202a0['userProfileSection']?_0x5202a0['userProfileSection'][_0x545589(0x1b1a)]:null),_0x5202a0['table']='projects',_0x5202a0[_0x545589(0x1d20)]='',_0x5202a0[_0x545589(0x1cdf)]=null,_0x5202a0[_0x545589(0x166a)]=[],_0x5202a0[_0x545589(0xae2)]={'fields':'createdAt,updatedAt,id,name,enableUncompleteSave,sendUnpauseOnSubmit,description,formData','sort':_0x545589(0x282),'limit':0xa,'page':0x1},_0x5202a0[_0x545589(0x235d)]=_0xd2e1dd,_0x5202a0[_0x545589(0x388)]=_0x4be87d,_0x5202a0['sessionsgoto']=_0x4e5f03,_0x5202a0[_0x545589(0x27fe)]=_0x39b1b3,_0x5202a0['success']=_0x389e1c,_0x5202a0[_0x545589(0x1aff)]=_0x35157f,_0x5202a0['createOrEditProject']=_0x1f0072,_0x5202a0['deleteProject']=_0x3788bf,_0x5202a0['exportSelectedProjects']=_0x353440,_0x5202a0[_0x545589(0x1e78)]=_0x583538,_0x5202a0[_0x545589(0x706)]=_0x418752,_0x5202a0[_0x545589(0x19cd)]=_0x3ee0e3;function _0xd2e1dd(_0x6cc749){const _0x141fe1=_0x545589;_0x346e6b['go']('app.jscripty.projects.edit',{'id':_0x6cc749['id'],'project':_0x6cc749,'crudPermissions':_0x5202a0[_0x141fe1(0x1b1a)]});}function _0x4be87d(_0x46bfb2,_0x3d4150){const _0x2b7711=_0x545589;_0x22333f[_0x2b7711(0xe27)]({'controller':_0x2b7711(0xcc0),'controllerAs':'vm','templateUrl':_0x121e50,'parent':angular[_0x2b7711(0x1853)](_0x1d0838[_0x2b7711(0x1ed9)]),'targetEvent':_0x3d4150,'clickOutsideToClose':!![],'locals':{'project':_0x46bfb2,'projects':_0x5202a0[_0x2b7711(0x2981)]?_0x5202a0['projects'][_0x2b7711(0x2214)]:[],'crudPermissions':_0x5202a0[_0x2b7711(0x1b1a)]}});}function _0x4e5f03(_0x2b350b){const _0xaa5604=_0x545589;_0x346e6b['go'](_0xaa5604(0x16f4),{'id':_0x2b350b['id'],'tab':0x3});}function _0x39b1b3(_0x3a688f,_0x1234e6){const _0x349bb8=_0x545589,_0x33edfa=_0x22333f['confirm']()[_0x349bb8(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x39641b()[_0x349bb8(0xa75)](_0x349bb8(0x12a7))+'?')[_0x349bb8(0x49e)](''+(_0x3a688f[_0x349bb8(0x16b6)]||'project')+_0x349bb8(0x1200)+'\x20will\x20be\x20deleted.')[_0x349bb8(0x15ad)](_0x349bb8(0x19d))[_0x349bb8(0x728)](_0x1234e6)['ok']('OK')[_0x349bb8(0x696)](_0x349bb8(0x24ba));_0x22333f[_0x349bb8(0xe27)](_0x33edfa)['then'](function(){_0x3788bf(_0x3a688f);},function(){const _0x33138b=_0x349bb8;console[_0x33138b(0x1b4f)](_0x33138b(0x24ba));});}let _0x4e4d9e=!![],_0x4a8440=0x1;_0x537455[_0x545589(0x614)](_0x545589(0x957),function(_0x493031,_0xddd7c2){const _0x47fcda=_0x545589;_0x4e4d9e?_0x4cdfa7(function(){_0x4e4d9e=![];}):(!_0xddd7c2&&(_0x4a8440=_0x5202a0['query'][_0x47fcda(0x1c7b)]),_0x493031!==_0xddd7c2&&(_0x5202a0[_0x47fcda(0xae2)]['page']=0x1),!_0x493031&&(_0x5202a0[_0x47fcda(0xae2)][_0x47fcda(0x1c7b)]=_0x4a8440),_0x5202a0[_0x47fcda(0x1aff)]());});function _0x389e1c(_0x54a926){const _0x2ac186=_0x545589;_0x5202a0[_0x2ac186(0x2981)]=_0x54a926||{'count':0x0,'rows':[]};}function _0x35157f(){const _0x37c5a8=_0x545589;_0x5202a0['query'][_0x37c5a8(0x184b)]=(_0x5202a0[_0x37c5a8(0xae2)][_0x37c5a8(0x1c7b)]-0x1)*_0x5202a0[_0x37c5a8(0xae2)][_0x37c5a8(0x236)],_0x775a26[_0x37c5a8(0x22b6)](_0x37c5a8(0x1c60))?_0x5202a0[_0x37c5a8(0x2061)]=_0x4abde1['jscriptyProject']['get'](_0x5202a0[_0x37c5a8(0xae2)],_0x389e1c)[_0x37c5a8(0x1d77)]:(_0x5202a0['query']['id']=_0x5202a0['userProfile']['id'],_0x5202a0[_0x37c5a8(0xae2)][_0x37c5a8(0x1f74)]=_0x37c5a8(0x871),_0x5202a0[_0x37c5a8(0x2061)]=_0x4abde1[_0x37c5a8(0x44a)][_0x37c5a8(0x1810)](_0x5202a0[_0x37c5a8(0xae2)],_0x389e1c)['$promise']);}function _0x1f0072(_0x52c883,_0x45378e){const _0x2eba32=_0x545589;_0x22333f[_0x2eba32(0xe27)]({'controller':_0x2eba32(0x1c37),'controllerAs':'vm','templateUrl':_0x20276e,'parent':angular[_0x2eba32(0x1853)](_0x1d0838[_0x2eba32(0x1ed9)]),'targetEvent':_0x52c883,'clickOutsideToClose':!![],'locals':{'project':_0x45378e,'projects':_0x5202a0[_0x2eba32(0x2981)]['rows'],'license':_0x5202a0[_0x2eba32(0x8a5)],'setting':_0x5202a0[_0x2eba32(0x9ca)],'crudPermissions':_0x5202a0[_0x2eba32(0x1b1a)]}});}function _0x3788bf(_0x272698){const _0x1926a6=_0x545589;_0x4abde1[_0x1926a6(0x1c21)]['delete']({'id':_0x272698['id']})[_0x1926a6(0x1d77)]['then'](function(){const _0x2d9a6f=_0x1926a6;_0x39641b()[_0x2d9a6f(0x152a)](_0x5202a0['projects'][_0x2d9a6f(0x2214)],{'id':_0x272698['id']}),_0x5202a0[_0x2d9a6f(0x2981)]['count']-=0x1,!_0x5202a0[_0x2d9a6f(0x2981)][_0x2d9a6f(0x2214)][_0x2d9a6f(0xfd0)]&&_0x5202a0['getProjects'](),_0x1732dd['success']({'title':_0x39641b()[_0x2d9a6f(0xa75)]('Project')+_0x2d9a6f(0x2663),'msg':_0x272698[_0x2d9a6f(0x16b6)]?_0x272698[_0x2d9a6f(0x16b6)]+_0x2d9a6f(0x3f5):''});})['catch'](function(_0x811d83){const _0x2aba94=_0x1926a6;if(_0x811d83['data']&&_0x811d83['data']['errors']&&_0x811d83[_0x2aba94(0x25c)][_0x2aba94(0x1a7c)][_0x2aba94(0xfd0)]){_0x5202a0['errors']=_0x811d83[_0x2aba94(0x25c)][_0x2aba94(0x1a7c)]||[{'message':_0x811d83[_0x2aba94(0x147f)](),'type':_0x2aba94(0x4bf)}];for(let _0x18771e=0x0;_0x18771e<_0x811d83[_0x2aba94(0x25c)][_0x2aba94(0x1a7c)]['length'];_0x18771e++){_0x1732dd[_0x2aba94(0x218e)]({'title':_0x811d83['data']['errors'][_0x18771e][_0x2aba94(0x66a)],'msg':_0x811d83[_0x2aba94(0x25c)][_0x2aba94(0x1a7c)][_0x18771e][_0x2aba94(0x155e)]});}}else _0x1732dd['error']({'title':_0x811d83['status']?_0x2aba94(0xeb9)+_0x811d83[_0x2aba94(0x291)]+_0x2aba94(0x1657)+_0x811d83[_0x2aba94(0xc22)]:_0x2aba94(0x4bf),'msg':_0x811d83[_0x2aba94(0x25c)]?JSON[_0x2aba94(0x2701)](_0x811d83[_0x2aba94(0x25c)][_0x2aba94(0x155e)]):_0x811d83[_0x2aba94(0x155e)]||_0x811d83['toString']()});});}function _0x353440(){const _0xd0d242=_0x545589,_0x4db065=angular['copy'](_0x5202a0[_0xd0d242(0x166a)]);return _0x5202a0['selectedProjects']=[],_0x4db065;}function _0x583538(_0x266f07){const _0x3f8cf6=_0x545589,_0x380485=_0x22333f[_0x3f8cf6(0x1551)]()[_0x3f8cf6(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20projects?')[_0x3f8cf6(0x49e)](''+_0x5202a0['selectedProjects']['length']+_0x3f8cf6(0x1d6c)+_0x3f8cf6(0x1b6))['ariaLabel']('delete\x20Projects')[_0x3f8cf6(0x728)](_0x266f07)['ok']('OK')['cancel'](_0x3f8cf6(0x24ba));_0x22333f['show'](_0x380485)[_0x3f8cf6(0x1cb0)](function(){const _0x75db90=_0x3f8cf6;_0x5202a0['selectedProjects']['forEach'](function(_0x5afcc7){_0x3788bf(_0x5afcc7);}),_0x5202a0[_0x75db90(0x166a)]=[];});}function _0x418752(){const _0x4cad24=_0x545589;_0x5202a0[_0x4cad24(0x166a)]=[];}function _0x3ee0e3(){const _0x5cacd3=_0x545589;_0x5202a0[_0x5cacd3(0x166a)]=_0x5202a0[_0x5cacd3(0x2981)]['rows'];}}const _0x5c5efd=_0x4205de;;_0x2e3c20[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6),'$translatePartialLoaderProvider'];function _0x2e3c20(_0x46e5e4,_0x54db6c){const _0x1a702d=_0x5537c6;_0x46e5e4[_0x1a702d(0x27e0)](_0x1a702d(0xfca),{'abstract':!![],'url':_0x1a702d(0x12cb)})[_0x1a702d(0x27e0)](_0x1a702d(0xa79),{'url':_0x1a702d(0x286a),'views':{'content@app':{'templateUrl':_0x24521d,'controller':_0x1a702d(0xaec)}},'resolve':{'projects':[_0x1a702d(0x1e0b),_0x1a702d(0x1774),function(_0x1d975a,_0x5a9ca0){const _0x225c51=_0x1a702d;return _0x5a9ca0[_0x225c51(0x22b6)]('admin')?_0x1d975a[_0x225c51(0x19a3)]('jscriptyProject@get',{'fields':_0x225c51(0xbaf),'sort':_0x225c51(0x282),'limit':0xa,'offset':0x0}):_0x1d975a[_0x225c51(0x19a3)](_0x225c51(0x12da),{'id':_0x5a9ca0[_0x225c51(0x21e8)]()[_0x225c51(0x13c1)],'section':_0x225c51(0x871),'fields':'createdAt,updatedAt,id,name,enableUncompleteSave,sendUnpauseOnSubmit,description,formData','sort':_0x225c51(0x282),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x611ef,_0x124c24){const _0x3ae8d2=_0x1a702d;return _0x124c24[_0x3ae8d2(0x22b6)](_0x3ae8d2(0x1c60))?null:_0x611ef['resolve'](_0x3ae8d2(0x9ae),{'fields':'id,name,crudPermissions','id':_0x124c24[_0x3ae8d2(0x21e8)]()[_0x3ae8d2(0x13c1)]});}],'userProfileSection':['apiResolver',_0x1a702d(0x1774),function(_0x56cb81,_0x33afec){const _0x5da0dd=_0x1a702d;return _0x33afec[_0x5da0dd(0x22b6)](_0x5da0dd(0x1c60))?null:_0x56cb81[_0x5da0dd(0x19a3)](_0x5da0dd(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x33afec[_0x5da0dd(0x21e8)]()[_0x5da0dd(0x13c1)],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':_0x1a702d(0x1e98)})['state'](_0x1a702d(0x16f4),{'url':_0x1a702d(0x1bf2),'params':{'project':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x678024,'controller':_0x1a702d(0xa26)}},'resolve':{'project':['apiResolver',_0x1a702d(0x225c),function(_0x4c5821,_0x6f02e8){const _0x4662bf=_0x1a702d;return _0x4c5821['resolve'](_0x4662bf(0x792),{'fields':_0x4662bf(0xbaf),'id':_0x6f02e8['id']});}],'userProfileSection':['apiResolver',_0x1a702d(0x1774),function(_0xeb45d5,_0x23e611){const _0x48e52f=_0x1a702d;return _0xeb45d5[_0x48e52f(0x19a3)]('userProfileSection@get',{'fields':_0x48e52f(0x1f5f),'userProfileId':_0x23e611[_0x48e52f(0x21e8)]()['userProfileId'],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':_0x1a702d(0x1e98)}),_0x54db6c[_0x1a702d(0x4e7)](_0x1a702d(0x1f8));}angular['module'](_0x5537c6(0xfca),['ngCsv',_0x5537c6(0x2135),_0x5537c6(0x1260),_0x5537c6(0xacf),'mdColorPicker',_0x5537c6(0xd19),_0x5537c6(0x44c),_0x5537c6(0x2ec),'ngAnimate',_0x5537c6(0x167d),_0x5537c6(0x208f),_0x5537c6(0x1b65),_0x5537c6(0x2166),_0x5537c6(0x3b9),_0x5537c6(0x7c9),_0x5537c6(0xeb5),_0x5537c6(0x27af),_0x5537c6(0x13b6),'chart.js',_0x5537c6(0xd01)])[_0x5537c6(0xa60)](_0x2e3c20)['controller'](_0x5537c6(0x1c37),_0x5be484)[_0x5537c6(0x6e5)](_0x5537c6(0xfa8),_0x4554e2)[_0x5537c6(0x6e5)](_0x5537c6(0x180f),_0x2dc363)[_0x5537c6(0x6e5)]('ProjectcloneController',_0x4b45d4)[_0x5537c6(0x6e5)](_0x5537c6(0x16e7),_0x1d0cdb)[_0x5537c6(0x6e5)](_0x5537c6(0x88f),_0x13f6d1)[_0x5537c6(0x6e5)](_0x5537c6(0x16a2),_0x43fa4c)[_0x5537c6(0x6e5)](_0x5537c6(0x729),_0x13aea7)[_0x5537c6(0x6e5)]('JscriptyProjectsController',_0x5c5efd);;const _0x45dbfa=_0x5074a3['p']+_0x5537c6(0x11c5);;const _0x3b3dcf=_0x5074a3['p']+_0x5537c6(0x16cc);;_0x1e45be[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$state',_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),'plugins',_0x5537c6(0xfd2),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x1e45be(_0xebbc21,_0x38d667,_0xfc220d,_0x4d6ccc,_0x567f24,_0x3b0ddb,_0x15b20c,_0x30df47,_0x158b6c,_0x4a0476,_0x563851,_0x243961,_0x468732,_0x95f8b3){const _0x33fff1=_0x5537c6,_0x5aa366=this;_0x5aa366[_0x33fff1(0xe76)]=_0x563851['getCurrentUser'](),_0x5aa366['errors']=[],_0x5aa366[_0x33fff1(0x9ca)]=_0x468732,_0x5aa366['license']=_0x243961,_0x5aa366[_0x33fff1(0x1b1a)]=_0x95f8b3,_0x5aa366[_0x33fff1(0xf4c)]={},_0x5aa366[_0x33fff1(0x1b0c)]=_0x5aa366[_0x33fff1(0x9ca)]&&_0x5aa366['setting'][_0x33fff1(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5aa366[_0x33fff1(0x1386)]=_0x33fff1(0x9be),_0x5aa366['plugin']=angular[_0x33fff1(0x17fe)](_0x158b6c),_0x5aa366[_0x33fff1(0x14e0)]=_0x30df47,_0x5aa366[_0x33fff1(0x1222)]=![];!_0x5aa366[_0x33fff1(0xfd2)]&&(_0x5aa366['plugin']={},_0x5aa366[_0x33fff1(0x1386)]=_0x33fff1(0x1659),_0x5aa366[_0x33fff1(0x1222)]=!![]);_0x5aa366[_0x33fff1(0x1739)]=_0x3d7f08,_0x5aa366[_0x33fff1(0x573)]=_0x4013d0,_0x5aa366[_0x33fff1(0x2905)]=_0x36b7c3,_0x5aa366[_0x33fff1(0x2c4)]=_0x550bd5,_0x5aa366[_0x33fff1(0xda0)]=_0x2eaecf;function _0x3d7f08(){const _0x548538=_0x33fff1;_0x5aa366['errors']=[],_0x4a0476[_0x548538(0xfd2)][_0x548538(0x1c3f)](_0x5aa366[_0x548538(0xfd2)])['$promise'][_0x548538(0x1cb0)](function(_0x37f01d){const _0x15e7af=_0x548538;_0x5aa366[_0x15e7af(0x14e0)][_0x15e7af(0xf63)](_0x37f01d['toJSON']()),_0x15b20c[_0x15e7af(0x829)]({'title':'Plugin\x20properly\x20created','msg':_0x5aa366[_0x15e7af(0xfd2)][_0x15e7af(0x16b6)]?_0x5aa366[_0x15e7af(0xfd2)][_0x15e7af(0x16b6)]+_0x15e7af(0x470):''}),_0x2eaecf(_0x37f01d);})[_0x548538(0x1c4)](function(_0x3f64ec){const _0xbe9a9b=_0x548538;if(_0x3f64ec[_0xbe9a9b(0x25c)]&&_0x3f64ec[_0xbe9a9b(0x25c)]['errors']&&_0x3f64ec[_0xbe9a9b(0x25c)][_0xbe9a9b(0x1a7c)][_0xbe9a9b(0xfd0)]){_0x5aa366[_0xbe9a9b(0x1a7c)]=_0x3f64ec[_0xbe9a9b(0x25c)][_0xbe9a9b(0x1a7c)]||[{'message':_0x3f64ec[_0xbe9a9b(0x147f)](),'type':'api.plugin.save'}];for(let _0x54271a=0x0;_0x54271a<_0x3f64ec[_0xbe9a9b(0x25c)][_0xbe9a9b(0x1a7c)]['length'];_0x54271a+=0x1){_0x15b20c[_0xbe9a9b(0x218e)]({'title':_0x3f64ec['data']['errors'][_0x54271a]['type'],'msg':_0x3f64ec[_0xbe9a9b(0x25c)][_0xbe9a9b(0x1a7c)][_0x54271a][_0xbe9a9b(0x155e)]});}}else _0x15b20c['error']({'title':_0x3f64ec[_0xbe9a9b(0x291)]?_0xbe9a9b(0xeb9)+_0x3f64ec['status']+_0xbe9a9b(0x1657)+_0x3f64ec['statusText']:_0xbe9a9b(0x14eb),'msg':_0x3f64ec['data']?JSON[_0xbe9a9b(0x2701)](_0x3f64ec[_0xbe9a9b(0x25c)][_0xbe9a9b(0x155e)]):_0x3f64ec[_0xbe9a9b(0x147f)]()});});}function _0x4013d0(){const _0xba650a=_0x33fff1;_0x5aa366[_0xba650a(0x1a7c)]=[],_0x4a0476[_0xba650a(0xfd2)][_0xba650a(0x687)]({'id':_0x5aa366[_0xba650a(0xfd2)]['id']},_0x5aa366[_0xba650a(0xfd2)])[_0xba650a(0x1d77)]['then'](function(_0x26ced7){const _0x4d2ca5=_0xba650a,_0x12dfcd=_0x39641b()[_0x4d2ca5(0x13b4)](_0x5aa366[_0x4d2ca5(0x14e0)],{'id':_0x26ced7['id']});_0x12dfcd&&_0x39641b()['merge'](_0x12dfcd,_0x39641b()[_0x4d2ca5(0x169b)](_0x26ced7['toJSON'](),_0x39641b()[_0x4d2ca5(0x1be5)](_0x12dfcd))),_0x15b20c[_0x4d2ca5(0x829)]({'title':_0x4d2ca5(0x2306),'msg':_0x5aa366[_0x4d2ca5(0xfd2)]['name']?_0x5aa366[_0x4d2ca5(0xfd2)][_0x4d2ca5(0x16b6)]+_0x4d2ca5(0xedb):''}),_0x2eaecf(_0x26ced7);})[_0xba650a(0x1c4)](function(_0x50afc2){const _0x3ba73c=_0xba650a;if(_0x50afc2['data']&&_0x50afc2[_0x3ba73c(0x25c)][_0x3ba73c(0x1a7c)]&&_0x50afc2[_0x3ba73c(0x25c)][_0x3ba73c(0x1a7c)][_0x3ba73c(0xfd0)]){_0x5aa366[_0x3ba73c(0x1a7c)]=_0x50afc2['data'][_0x3ba73c(0x1a7c)]||[{'message':_0x50afc2[_0x3ba73c(0x147f)](),'type':_0x3ba73c(0x1950)}];for(let _0x392a83=0x0;_0x392a83<_0x50afc2[_0x3ba73c(0x25c)][_0x3ba73c(0x1a7c)][_0x3ba73c(0xfd0)];_0x392a83++){_0x15b20c[_0x3ba73c(0x218e)]({'title':_0x50afc2['data'][_0x3ba73c(0x1a7c)][_0x392a83][_0x3ba73c(0x66a)],'msg':_0x50afc2['data']['errors'][_0x392a83][_0x3ba73c(0x155e)]});}}else _0x15b20c['error']({'title':_0x50afc2[_0x3ba73c(0x291)]?_0x3ba73c(0xeb9)+_0x50afc2[_0x3ba73c(0x291)]+_0x3ba73c(0x1657)+_0x50afc2['statusText']:_0x3ba73c(0x1950),'msg':_0x50afc2[_0x3ba73c(0x25c)]?JSON[_0x3ba73c(0x2701)](_0x50afc2[_0x3ba73c(0x25c)]['message']):_0x50afc2[_0x3ba73c(0x147f)]()});});}function _0x36b7c3(_0xd8319){const _0x531574=_0x33fff1;_0x5aa366['errors']=[];const _0x59818e=_0x4d6ccc['confirm']()['title'](_0x531574(0x1a2e))[_0x531574(0x862)](_0x531574(0x207f))[_0x531574(0x15ad)](_0x531574(0x7f0))['ok'](_0x531574(0x2594))[_0x531574(0x696)](_0x531574(0xde1))[_0x531574(0x728)](_0xd8319);_0x4d6ccc[_0x531574(0xe27)](_0x59818e)['then'](function(){const _0x18d6e5=_0x531574;_0x4a0476[_0x18d6e5(0xfd2)][_0x18d6e5(0x111d)]({'id':_0x5aa366[_0x18d6e5(0xfd2)]['id']})[_0x18d6e5(0x1d77)][_0x18d6e5(0x1cb0)](function(){const _0x5d4863=_0x18d6e5;_0x39641b()[_0x5d4863(0x152a)](_0x5aa366['plugins'],{'id':_0x5aa366[_0x5d4863(0xfd2)]['id']}),_0x15b20c['success']({'title':_0x5d4863(0x77e),'msg':(_0x5aa366['plugin'][_0x5d4863(0x16b6)]||'plugin')+'\x20has\x20been\x20deleted!'}),_0x2eaecf(_0x5aa366[_0x5d4863(0xfd2)]);})[_0x18d6e5(0x1c4)](function(_0x5d640b){const _0x29a2b8=_0x18d6e5;if(_0x5d640b[_0x29a2b8(0x25c)]&&_0x5d640b['data'][_0x29a2b8(0x1a7c)]&&_0x5d640b['data'][_0x29a2b8(0x1a7c)][_0x29a2b8(0xfd0)]){_0x5aa366['errors']=_0x5d640b['data'][_0x29a2b8(0x1a7c)]||[{'message':_0x5d640b[_0x29a2b8(0x147f)](),'type':_0x29a2b8(0x1395)}];for(let _0x3b402b=0x0;_0x3b402b<_0x5d640b[_0x29a2b8(0x25c)][_0x29a2b8(0x1a7c)]['length'];_0x3b402b++){_0x15b20c[_0x29a2b8(0x218e)]({'title':_0x5d640b[_0x29a2b8(0x25c)]['errors'][_0x3b402b][_0x29a2b8(0x66a)],'msg':_0x5d640b['data'][_0x29a2b8(0x1a7c)][_0x3b402b][_0x29a2b8(0x155e)]});}}else _0x15b20c['error']({'title':_0x5d640b[_0x29a2b8(0x291)]?_0x29a2b8(0xeb9)+_0x5d640b['status']+_0x29a2b8(0x1657)+_0x5d640b['statusText']:'api.plugin.delete','msg':_0x5d640b[_0x29a2b8(0x25c)]?JSON[_0x29a2b8(0x2701)](_0x5d640b[_0x29a2b8(0x25c)][_0x29a2b8(0x155e)]):_0x5d640b[_0x29a2b8(0x155e)]||_0x5d640b[_0x29a2b8(0x147f)]()});});},function(){});}function _0x550bd5(_0x1e3a24){return _0x1e3a24===null?undefined:new Date(_0x1e3a24);}function _0x2eaecf(_0x124434){const _0xbb54d2=_0x33fff1;_0x4d6ccc[_0xbb54d2(0x1426)](_0x124434);}}const _0x2951ca=_0x1e45be;;_0x1d10b9[_0x5537c6(0x15b6)]=['$state',_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$document',_0x5537c6(0x1ae),_0x5537c6(0x8a5),_0x5537c6(0x9ca),'api',_0x5537c6(0x9bf),'Auth','plugin',_0x5537c6(0x2199)];function _0x1d10b9(_0x32a23d,_0x2b376b,_0x1fa470,_0x48e3f2,_0x5b6889,_0x42112a,_0x11b668,_0x176524,_0x5e1084,_0x54638a,_0x163f79,_0x7148da){const _0x257fd5=_0x5537c6,_0xe568d8=this;_0xe568d8[_0x257fd5(0xe76)]=_0x54638a[_0x257fd5(0x21e8)](),_0xe568d8[_0x257fd5(0x8a5)]=_0x42112a,_0xe568d8['setting']=_0x11b668,_0xe568d8[_0x257fd5(0x1b0c)]=_0xe568d8['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xe568d8[_0x257fd5(0x2404)]=_0x2b376b[_0x257fd5(0x2276)]()+_0x257fd5(0x138b)+_0x2b376b['host'](),_0xe568d8[_0x257fd5(0xfd2)]=_0x163f79||_0x32a23d['params'][_0x257fd5(0xfd2)]||{},_0xe568d8['userProfileSection']=_0x7148da&&_0x7148da[_0x257fd5(0x184d)]==0x1?_0x7148da['rows'][0x0]:null,_0xe568d8[_0x257fd5(0x1b1a)]=_0x54638a['parseCrudPermissions'](_0xe568d8[_0x257fd5(0x2199)]?_0xe568d8[_0x257fd5(0x2199)][_0x257fd5(0x1b1a)]:null),_0xe568d8[_0x257fd5(0xf4c)]={},_0xe568d8['selectedTab']=_0x32a23d[_0x257fd5(0x1dfe)][_0x257fd5(0x291e)]||0x0,_0xe568d8[_0x257fd5(0x494)]=_0x5e1084[_0x257fd5(0x28c7)],_0xe568d8[_0x257fd5(0x1220)]=_0x30e7da,_0xe568d8['savePlugin']=_0x5a365a;function _0x30e7da(){const _0x28f8a0=_0x257fd5;_0x32a23d['go'](_0x28f8a0(0x174),{},{'reload':_0x28f8a0(0x174)});}function _0x5a365a(){const _0x4a6b2b=_0x257fd5;_0x176524[_0x4a6b2b(0xfd2)][_0x4a6b2b(0x687)]({'id':_0xe568d8['plugin']['id']},_0xe568d8[_0x4a6b2b(0xfd2)])['$promise'][_0x4a6b2b(0x1cb0)](function(){const _0x59cc93=_0x4a6b2b;_0x5e1084[_0x59cc93(0x829)]({'title':_0x59cc93(0x23b6),'msg':_0xe568d8[_0x59cc93(0xfd2)][_0x59cc93(0x16b6)]?_0xe568d8[_0x59cc93(0xfd2)]['name']+_0x59cc93(0x1068):''});})[_0x4a6b2b(0x1c4)](function(_0x20bfc8){const _0x297b38=_0x4a6b2b;_0x5e1084[_0x297b38(0x218e)]({'title':_0x20bfc8['status']?_0x297b38(0xeb9)+_0x20bfc8[_0x297b38(0x291)]+_0x297b38(0x1657)+_0x20bfc8['statusText']:_0x297b38(0x1e44),'msg':_0x20bfc8['data']?JSON[_0x297b38(0x2701)](_0x20bfc8[_0x297b38(0x25c)]):_0x20bfc8[_0x297b38(0x147f)]()});});}}const _0x2f6add=_0x1d10b9;;const _0x4c649c=_0x5074a3['p']+_0x5537c6(0x923);;const _0x3f7803=_0x5074a3['p']+_0x5537c6(0x1432);;_0x10ab7c[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),_0x5537c6(0x417),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x14e0),'userProfile',_0x5537c6(0x2199),'api','msUtils',_0x5537c6(0x9bf),_0x5537c6(0x1774),'license',_0x5537c6(0x9ca)];function _0x10ab7c(_0x20331f,_0xf25a25,_0x5dec7a,_0x4d0a56,_0x3ff5af,_0x11f10e,_0x2ab2d7,_0x1888c1,_0x5691e1,_0x294b08,_0x56022d,_0x141cca,_0x88a12c,_0x2070ae,_0x31a717,_0xb62511,_0x56f3b5){const _0x2db93f=_0x5537c6,_0x11f327=this;_0x11f327[_0x2db93f(0x8a5)]=_0xb62511,_0x11f327['setting']=_0x56f3b5,_0x11f327[_0x2db93f(0xe76)]=_0x31a717[_0x2db93f(0x21e8)](),_0x11f327[_0x2db93f(0x14e0)]=_0x5691e1||{'count':0x0,'rows':[]},_0x11f327['userProfile']=_0x294b08,_0x11f327['userProfileSection']=_0x56022d&&_0x56022d['count']==0x1?_0x56022d[_0x2db93f(0x2214)][0x0]:null,_0x11f327[_0x2db93f(0x1b1a)]=_0x31a717[_0x2db93f(0x14ea)](_0x11f327[_0x2db93f(0x2199)]?_0x11f327[_0x2db93f(0x2199)][_0x2db93f(0x1b1a)]:null),_0x11f327[_0x2db93f(0xc83)]=_0x2db93f(0x14e0),_0x11f327[_0x2db93f(0x1d20)]='',_0x11f327[_0x2db93f(0x1cdf)]=null,_0x11f327[_0x2db93f(0x235a)]=[],_0x11f327[_0x2db93f(0xae2)]={'fields':_0x2db93f(0x13ad),'sort':_0x2db93f(0x16b6),'limit':0xa,'page':0x1},_0x11f327[_0x2db93f(0x2997)]=![],_0x11f327[_0x2db93f(0xc57)]=_0x39641b()['keyBy']([{'option':_0x2db93f(0x1288),'value':_0x2db93f(0x2a2)},{'option':'Admin\x20Only','value':'\x27adminOnly\x27'},{'option':_0x2db93f(0xbee),'value':_0x2db93f(0x224e)},{'option':_0x2db93f(0x358),'value':_0x2db93f(0x1d2c)}],function(_0x4473c6){const _0x386771=_0x2db93f;return _0x39641b()[_0x386771(0x288f)](_0x4473c6['value'],new RegExp('\x27','g'),'');}),_0x11f327[_0x2db93f(0x1910)]=_0x47992d,_0x11f327[_0x2db93f(0x235d)]=_0x14c4f2,_0x11f327[_0x2db93f(0x1eb9)]=_0x2db368,_0x11f327['restartplugin']=_0x2f4d37,_0x11f327[_0x2db93f(0x1610)]=_0xa918f9,_0x11f327[_0x2db93f(0x1d89)]=_0x46ae58,_0x11f327[_0x2db93f(0x27fe)]=_0x36c301,_0x11f327[_0x2db93f(0x829)]=_0x4fa5ad,_0x11f327[_0x2db93f(0x100d)]=_0x2958df,_0x11f327['createOrEditPlugin']=_0x2e76e0,_0x11f327[_0x2db93f(0x2905)]=_0x1c6499,_0x11f327['exportSelectedPlugins']=_0x2eca02,_0x11f327[_0x2db93f(0x14d7)]=_0x280c54,_0x11f327[_0x2db93f(0x4c5)]=_0x423d05,_0x11f327[_0x2db93f(0x29c5)]=_0x131af8,_0x11f327[_0x2db93f(0x17d2)]=_0x77df94;function _0x47992d(_0x4fd5f){const _0x326804=_0x2db93f;if(_0x4fd5f[_0x326804(0x66a)]===_0x326804(0x1fe8))_0x11f327[_0x326804(0x2997)]=!![],_0x141cca[_0x326804(0x2897)][_0x326804(0x1c3f)]({'name':_0x4fd5f[_0x326804(0x79f)],'script':_0x4fd5f[_0x326804(0x1fe)]+'/'+_0x4fd5f['scriptPath']})['$promise'][_0x326804(0x1cb0)](function(){const _0x418caf=_0x326804;return _0x4fd5f['active']=!![],_0x141cca[_0x418caf(0xfd2)][_0x418caf(0x687)]({'id':_0x4fd5f['id']},_0x4fd5f)['$promise'];})['then'](function(){const _0x287d35=_0x326804;_0x11f327[_0x287d35(0x2997)]=![],_0x2070ae[_0x287d35(0x829)]({'title':_0x287d35(0x1268),'msg':_0x4fd5f[_0x287d35(0x16b6)]?_0x4fd5f['name']+_0x287d35(0x228b):''});})[_0x326804(0x1c4)](function(_0x723dc3){const _0x82d2f8=_0x326804;if(_0x723dc3[_0x82d2f8(0x25c)]&&_0x723dc3[_0x82d2f8(0x25c)]['errors']&&_0x723dc3[_0x82d2f8(0x25c)][_0x82d2f8(0x1a7c)][_0x82d2f8(0xfd0)]){_0x11f327['errors']=_0x723dc3['data']['errors']||[{'message':_0x723dc3[_0x82d2f8(0x147f)](),'type':_0x82d2f8(0x27dd)}];for(let _0xe58aa4=0x0;_0xe58aa4<_0x723dc3['data']['errors'][_0x82d2f8(0xfd0)];_0xe58aa4++){_0x2070ae[_0x82d2f8(0x218e)]({'title':_0x723dc3[_0x82d2f8(0x25c)]['errors'][_0xe58aa4][_0x82d2f8(0x66a)],'msg':_0x723dc3['data'][_0x82d2f8(0x1a7c)][_0xe58aa4][_0x82d2f8(0x155e)]});}}else _0x2070ae[_0x82d2f8(0x218e)]({'title':_0x723dc3[_0x82d2f8(0x291)]?_0x82d2f8(0xeb9)+_0x723dc3[_0x82d2f8(0x291)]+'\x20-\x20'+_0x723dc3[_0x82d2f8(0xc22)]:_0x82d2f8(0x27dd),'msg':_0x723dc3[_0x82d2f8(0x25c)]?JSON[_0x82d2f8(0x2701)](_0x723dc3['data']['message']):_0x723dc3[_0x82d2f8(0x155e)]||_0x723dc3[_0x82d2f8(0x147f)]()});});else return _0x4fd5f[_0x326804(0x1a4b)]=!![],_0x141cca[_0x326804(0xfd2)]['update']({'id':_0x4fd5f['id']},_0x4fd5f)[_0x326804(0x1d77)][_0x326804(0x1cb0)](function(){const _0x16bdc8=_0x326804;_0x2070ae[_0x16bdc8(0x829)]({'title':_0x16bdc8(0x1268),'msg':_0x4fd5f[_0x16bdc8(0x16b6)]?_0x4fd5f['name']+'\x20has\x20been\x20installed!':''});})[_0x326804(0x1c4)](function(_0x1eca64){const _0x1edd40=_0x326804;if(_0x1eca64[_0x1edd40(0x25c)]&&_0x1eca64['data']['errors']&&_0x1eca64[_0x1edd40(0x25c)][_0x1edd40(0x1a7c)][_0x1edd40(0xfd0)]){_0x11f327[_0x1edd40(0x1a7c)]=_0x1eca64[_0x1edd40(0x25c)][_0x1edd40(0x1a7c)]||[{'message':_0x1eca64[_0x1edd40(0x147f)](),'type':_0x1edd40(0x1950)}];for(let _0x3f7336=0x0;_0x3f7336<_0x1eca64['data'][_0x1edd40(0x1a7c)]['length'];_0x3f7336++){_0x2070ae[_0x1edd40(0x218e)]({'title':_0x1eca64[_0x1edd40(0x25c)]['errors'][_0x3f7336]['type'],'msg':_0x1eca64[_0x1edd40(0x25c)]['errors'][_0x3f7336][_0x1edd40(0x155e)]});}}else _0x2070ae[_0x1edd40(0x218e)]({'title':_0x1eca64[_0x1edd40(0x291)]?_0x1edd40(0xeb9)+_0x1eca64[_0x1edd40(0x291)]+_0x1edd40(0x1657)+_0x1eca64['statusText']:'api.plugin.update','msg':_0x1eca64[_0x1edd40(0x25c)]?JSON[_0x1edd40(0x2701)](_0x1eca64[_0x1edd40(0x25c)][_0x1edd40(0x155e)]):_0x1eca64[_0x1edd40(0x155e)]||_0x1eca64[_0x1edd40(0x147f)]()});});}function _0x14c4f2(_0x40e64f){const _0x727445=_0x2db93f;_0x5dec7a['go'](_0x727445(0x1a85),{'id':_0x40e64f['id'],'plugin':_0x40e64f,'crudPermissions':_0x11f327['crudPermissions']});}function _0x2db368(_0x55cb3d,_0x41908d){const _0x3be54b=_0x2db93f,_0x63358=_0x3ff5af[_0x3be54b(0x1551)]()[_0x3be54b(0x1386)](_0x3be54b(0x28a2))['htmlContent'](_0x3be54b(0x204d)+(_0x55cb3d[_0x3be54b(0x16b6)]||_0x3be54b(0xfd2))+_0x3be54b(0x1200)+_0x3be54b(0x19f4))[_0x3be54b(0x15ad)](_0x3be54b(0x1eca))[_0x3be54b(0x728)](_0x41908d)['ok']('OK')[_0x3be54b(0x696)](_0x3be54b(0x24ba));_0x3ff5af[_0x3be54b(0xe27)](_0x63358)[_0x3be54b(0x1cb0)](function(){_0x451977(_0x55cb3d);},function(){const _0x2c709b=_0x3be54b;console[_0x2c709b(0x1b4f)](_0x2c709b(0x24ba));});}function _0x451977(_0x5a6d4a){const _0x4a529f=_0x2db93f;_0x141cca[_0x4a529f(0x2897)]['get']()['$promise'][_0x4a529f(0x1cb0)](function(_0x424c0e){const _0x21730c=_0x4a529f;if(!_0x424c0e||!_0x424c0e[_0x21730c(0x2214)])throw new Error(_0x21730c(0x1252));const _0x2bb481=_0x39641b()[_0x21730c(0x13b4)](_0x424c0e[_0x21730c(0x2214)],{'name':_0x5a6d4a[_0x21730c(0x79f)]});if(!_0x2bb481)throw new Error('No\x20corresponding\x20process\x20found');_0x141cca['pm2']['update']({'id':_0x2bb481[_0x21730c(0x6a7)],'status':_0x21730c(0x1b98)})[_0x21730c(0x1d77)]['then'](function(){const _0x26494d=_0x21730c;_0x2070ae[_0x26494d(0x829)]({'title':_0x26494d(0x2246),'msg':_0x26494d(0x12f2)});});})['catch'](function(_0x5de14f){const _0x55bba1=_0x4a529f;if(_0x5de14f[_0x55bba1(0x25c)]&&_0x5de14f[_0x55bba1(0x25c)][_0x55bba1(0x1a7c)]&&_0x5de14f[_0x55bba1(0x25c)][_0x55bba1(0x1a7c)][_0x55bba1(0xfd0)]){_0x11f327[_0x55bba1(0x1a7c)]=_0x5de14f['data']['errors']||[{'message':_0x5de14f[_0x55bba1(0x147f)](),'type':_0x55bba1(0x1ddc)}];for(let _0x541fcf=0x0;_0x541fcf<_0x5de14f[_0x55bba1(0x25c)][_0x55bba1(0x1a7c)][_0x55bba1(0xfd0)];_0x541fcf++){_0x2070ae[_0x55bba1(0x218e)]({'title':_0x5de14f[_0x55bba1(0x25c)][_0x55bba1(0x1a7c)][_0x541fcf][_0x55bba1(0x66a)],'msg':_0x5de14f['data']['errors'][_0x541fcf]['message']});}}else _0x2070ae[_0x55bba1(0x218e)]({'title':_0x5de14f['status']?_0x55bba1(0xeb9)+_0x5de14f[_0x55bba1(0x291)]+_0x55bba1(0x1657)+_0x5de14f[_0x55bba1(0xc22)]:_0x55bba1(0x1ddc),'msg':_0x5de14f[_0x55bba1(0x25c)]?JSON['stringify'](_0x5de14f[_0x55bba1(0x25c)]['message']):_0x5de14f[_0x55bba1(0x155e)]||_0x5de14f[_0x55bba1(0x147f)]()});});}function _0x2f4d37(_0x5576e6,_0x9d174c){const _0xd613bd=_0x2db93f,_0x47f4af=_0x3ff5af[_0xd613bd(0x1551)]()[_0xd613bd(0x1386)](_0xd613bd(0xec5))['htmlContent'](_0xd613bd(0x204d)+(_0x5576e6[_0xd613bd(0x16b6)]||'plugin')+_0xd613bd(0x1200)+_0xd613bd(0x9ad))[_0xd613bd(0x15ad)](_0xd613bd(0x31f))[_0xd613bd(0x728)](_0x9d174c)['ok']('OK')['cancel'](_0xd613bd(0x24ba));_0x3ff5af[_0xd613bd(0xe27)](_0x47f4af)[_0xd613bd(0x1cb0)](function(){_0x2c85e8(_0x5576e6);},function(){const _0x3761fb=_0xd613bd;console[_0x3761fb(0x1b4f)](_0x3761fb(0x24ba));});}function _0x2c85e8(_0x5a530b){const _0x47a8fd=_0x2db93f;_0x141cca[_0x47a8fd(0x2897)][_0x47a8fd(0xbf7)]()[_0x47a8fd(0x1d77)][_0x47a8fd(0x1cb0)](function(_0x3c4616){const _0x1391dc=_0x47a8fd;if(!_0x3c4616||!_0x3c4616[_0x1391dc(0x2214)])throw new Error(_0x1391dc(0x1252));const _0x4fee71=_0x39641b()[_0x1391dc(0x13b4)](_0x3c4616[_0x1391dc(0x2214)],{'name':_0x5a530b[_0x1391dc(0x79f)]});if(!_0x4fee71)throw new Error(_0x1391dc(0x6fd));_0x141cca['pm2'][_0x1391dc(0x687)]({'id':_0x4fee71[_0x1391dc(0x6a7)],'status':_0x1391dc(0xa28)})['$promise']['then'](function(){const _0x5cf194=_0x1391dc;_0x2070ae[_0x5cf194(0x829)]({'title':'Process\x20restarted!','msg':_0x5cf194(0x1757)});});})['catch'](function(_0x57971c){const _0x30d8a1=_0x47a8fd;if(_0x57971c[_0x30d8a1(0x25c)]&&_0x57971c[_0x30d8a1(0x25c)]['errors']&&_0x57971c[_0x30d8a1(0x25c)]['errors']['length']){_0x11f327['errors']=_0x57971c[_0x30d8a1(0x25c)][_0x30d8a1(0x1a7c)]||[{'message':_0x57971c[_0x30d8a1(0x147f)](),'type':_0x30d8a1(0x1ddc)}];for(let _0x228df8=0x0;_0x228df8<_0x57971c[_0x30d8a1(0x25c)][_0x30d8a1(0x1a7c)][_0x30d8a1(0xfd0)];_0x228df8++){_0x2070ae[_0x30d8a1(0x218e)]({'title':_0x57971c[_0x30d8a1(0x25c)][_0x30d8a1(0x1a7c)][_0x228df8][_0x30d8a1(0x66a)],'msg':_0x57971c[_0x30d8a1(0x25c)][_0x30d8a1(0x1a7c)][_0x228df8][_0x30d8a1(0x155e)]});}}else _0x2070ae[_0x30d8a1(0x218e)]({'title':_0x57971c['status']?_0x30d8a1(0xeb9)+_0x57971c['status']+_0x30d8a1(0x1657)+_0x57971c['statusText']:_0x30d8a1(0x1ddc),'msg':_0x57971c[_0x30d8a1(0x25c)]?JSON[_0x30d8a1(0x2701)](_0x57971c[_0x30d8a1(0x25c)][_0x30d8a1(0x155e)]):_0x57971c[_0x30d8a1(0x155e)]||_0x57971c[_0x30d8a1(0x147f)]()});});}function _0xa918f9(_0x8f8f14){const _0x94724f=_0x2db93f;return _0x141cca[_0x94724f(0xfd2)][_0x94724f(0x26ec)]({'id':_0x8f8f14['id']})[_0x94724f(0x1d77)][_0x94724f(0x1cb0)](function(_0x2f006c){const _0x4bd7a9=_0x94724f,_0x31a162=[_0x2f006c[_0x4bd7a9(0xef0)]];let _0x126f8d=_0x4bd7a9(0x26ec);const _0x168090=new Blob(_0x31a162,{'type':_0x2f006c[_0x4bd7a9(0x66a)]});_0x126f8d=_0x8f8f14[_0x4bd7a9(0x16b6)]['replace']('\x20','_')['toLowerCase']()+_0x4bd7a9(0x1b16);const _0x529794=window[_0x4bd7a9(0x1db8)][_0x4bd7a9(0x8c6)]('a');_0x529794['setAttribute']('href',URL['createObjectURL'](_0x168090)),_0x529794[_0x4bd7a9(0x23b9)](_0x4bd7a9(0x26ec),_0x126f8d),document['body'][_0x4bd7a9(0x23de)](_0x529794),_0x529794[_0x4bd7a9(0x20b8)]();})[_0x94724f(0x1c4)](function(_0x1b82a3){const _0x564cf4=_0x94724f;if(_0x1b82a3[_0x564cf4(0x25c)]&&_0x1b82a3[_0x564cf4(0x25c)][_0x564cf4(0x1a7c)]&&_0x1b82a3[_0x564cf4(0x25c)][_0x564cf4(0x1a7c)][_0x564cf4(0xfd0)])for(let _0x48761a=0x0;_0x48761a<_0x1b82a3[_0x564cf4(0x25c)][_0x564cf4(0x1a7c)][_0x564cf4(0xfd0)];_0x48761a++){_0x2070ae[_0x564cf4(0x218e)]({'title':_0x1b82a3[_0x564cf4(0x25c)][_0x564cf4(0x1a7c)][_0x48761a][_0x564cf4(0x66a)],'msg':_0x1b82a3['data'][_0x564cf4(0x1a7c)][_0x48761a][_0x564cf4(0x155e)]});}else _0x2070ae[_0x564cf4(0x218e)]({'title':_0x1b82a3['status']?_0x564cf4(0xeb9)+_0x1b82a3[_0x564cf4(0x291)]+'\x20-\x20'+_0x1b82a3[_0x564cf4(0xc22)]:_0x564cf4(0x14eb),'msg':_0x1b82a3['data']?JSON[_0x564cf4(0x2701)](_0x1b82a3['data'][_0x564cf4(0x155e)]):_0x1b82a3[_0x564cf4(0x147f)]()});});}function _0x46ae58(_0x5a1ffd,_0x4409a6){const _0x3a0b1f=_0x2db93f,_0x598a65=_0x3ff5af['confirm']()[_0x3a0b1f(0x1386)](_0x3a0b1f(0x1c2c))[_0x3a0b1f(0x49e)](_0x3a0b1f(0x204d)+(_0x5a1ffd[_0x3a0b1f(0x16b6)]||_0x3a0b1f(0xfd2))+_0x3a0b1f(0x1200)+'\x20will\x20be\x20uninstalled.')['ariaLabel'](_0x3a0b1f(0x28bf))[_0x3a0b1f(0x728)](_0x4409a6)['ok']('OK')[_0x3a0b1f(0x696)]('CANCEL');_0x3ff5af[_0x3a0b1f(0xe27)](_0x598a65)[_0x3a0b1f(0x1cb0)](function(){_0x396506(_0x5a1ffd);},function(){const _0x31adc8=_0x3a0b1f;console[_0x31adc8(0x1b4f)](_0x31adc8(0x24ba));});}function _0x396506(_0x1d5f8b){const _0x37d37d=_0x2db93f;return _0x1d5f8b['type']===_0x37d37d(0x1fe8)&&_0x141cca['pm2'][_0x37d37d(0xbf7)]()[_0x37d37d(0x1d77)][_0x37d37d(0x1cb0)](function(_0x1d20b5){const _0x4e97d2=_0x37d37d;if(!_0x1d20b5||!_0x1d20b5['rows'])throw new Error(_0x4e97d2(0x1252));const _0x2df5c2=_0x39641b()['find'](_0x1d20b5[_0x4e97d2(0x2214)],{'name':_0x1d5f8b[_0x4e97d2(0x79f)]});if(!_0x2df5c2)throw new Error(_0x4e97d2(0x6fd));_0x141cca[_0x4e97d2(0x2897)][_0x4e97d2(0x111d)]({'id':_0x2df5c2['pm_id'],'name':_0x1d5f8b['scriptName']})['$promise'];})[_0x37d37d(0x1c4)](function(_0x487e39){const _0x31d805=_0x37d37d;_0x2070ae[_0x31d805(0x218e)]({'title':_0x487e39[_0x31d805(0x291)]?'API:'+_0x487e39[_0x31d805(0x291)]+_0x31d805(0x1657)+_0x487e39[_0x31d805(0xc22)]:_0x31d805(0xa2b),'msg':_0x487e39[_0x31d805(0x25c)]?JSON[_0x31d805(0x2701)](_0x487e39[_0x31d805(0x25c)][_0x31d805(0x155e)]):_0x487e39['message']||_0x487e39['toString']()});}),_0x1d5f8b[_0x37d37d(0x1a4b)]=![],_0x141cca[_0x37d37d(0xfd2)]['update']({'id':_0x1d5f8b['id']},_0x1d5f8b)[_0x37d37d(0x1d77)][_0x37d37d(0x1cb0)](function(){const _0x508a17=_0x37d37d;_0x2070ae[_0x508a17(0x829)]({'title':_0x508a17(0x535),'msg':_0x1d5f8b[_0x508a17(0x16b6)]?_0x1d5f8b[_0x508a17(0x16b6)]+_0x508a17(0xd4d):''});})[_0x37d37d(0x1c4)](function(_0x2f75d6){const _0x24a759=_0x37d37d;if(_0x2f75d6[_0x24a759(0x25c)]&&_0x2f75d6[_0x24a759(0x25c)][_0x24a759(0x1a7c)]&&_0x2f75d6[_0x24a759(0x25c)][_0x24a759(0x1a7c)][_0x24a759(0xfd0)]){_0x11f327[_0x24a759(0x1a7c)]=_0x2f75d6['data'][_0x24a759(0x1a7c)]||[{'message':_0x2f75d6[_0x24a759(0x147f)](),'type':_0x24a759(0x1950)}];for(let _0x27900a=0x0;_0x27900a<_0x2f75d6[_0x24a759(0x25c)][_0x24a759(0x1a7c)][_0x24a759(0xfd0)];_0x27900a++){_0x2070ae['error']({'title':_0x2f75d6[_0x24a759(0x25c)]['errors'][_0x27900a][_0x24a759(0x66a)],'msg':_0x2f75d6['data'][_0x24a759(0x1a7c)][_0x27900a][_0x24a759(0x155e)]});}}else _0x2070ae[_0x24a759(0x218e)]({'title':_0x2f75d6['status']?'API:'+_0x2f75d6[_0x24a759(0x291)]+_0x24a759(0x1657)+_0x2f75d6[_0x24a759(0xc22)]:_0x24a759(0x1950),'msg':_0x2f75d6[_0x24a759(0x25c)]?JSON['stringify'](_0x2f75d6['data']['message']):_0x2f75d6['message']||_0x2f75d6[_0x24a759(0x147f)]()});});}function _0x36c301(_0xf52a10,_0x131804){const _0x537e98=_0x2db93f,_0x3c1e4c=_0x3ff5af[_0x537e98(0x1551)]()[_0x537e98(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x39641b()[_0x537e98(0xa75)](_0x537e98(0xfd2))+'?')[_0x537e98(0x49e)](_0x537e98(0x204d)+(_0xf52a10[_0x537e98(0x16b6)]||_0x537e98(0xfd2))+''+_0x537e98(0x1b6))[_0x537e98(0x15ad)](_0x537e98(0x65f))[_0x537e98(0x728)](_0x131804)['ok']('OK')['cancel'](_0x537e98(0x24ba));_0x3ff5af[_0x537e98(0xe27)](_0x3c1e4c)[_0x537e98(0x1cb0)](function(){_0x1c6499(_0xf52a10);},function(){const _0x5643a2=_0x537e98;console['log'](_0x5643a2(0x24ba));});}let _0x1e80c8=!![],_0x2898c4=0x1;_0x20331f[_0x2db93f(0x614)](_0x2db93f(0x957),function(_0x45c4ed,_0xf58c8e){const _0x356359=_0x2db93f;_0x1e80c8?_0x2ab2d7(function(){_0x1e80c8=![];}):(!_0xf58c8e&&(_0x2898c4=_0x11f327[_0x356359(0xae2)][_0x356359(0x1c7b)]),_0x45c4ed!==_0xf58c8e&&(_0x11f327[_0x356359(0xae2)][_0x356359(0x1c7b)]=0x1),!_0x45c4ed&&(_0x11f327[_0x356359(0xae2)]['page']=_0x2898c4),_0x11f327[_0x356359(0x100d)]());});function _0x4fa5ad(_0x18c84d){const _0x32cf34=_0x2db93f;_0x11f327[_0x32cf34(0x14e0)]=_0x18c84d||{'count':0x0,'rows':[]};}function _0x2958df(){const _0xd30535=_0x2db93f;_0x11f327[_0xd30535(0xae2)][_0xd30535(0x184b)]=(_0x11f327[_0xd30535(0xae2)][_0xd30535(0x1c7b)]-0x1)*_0x11f327[_0xd30535(0xae2)][_0xd30535(0x236)],_0x31a717[_0xd30535(0x22b6)](_0xd30535(0x1c60))?_0x11f327[_0xd30535(0x2061)]=_0x141cca[_0xd30535(0xfd2)][_0xd30535(0xbf7)](_0x11f327[_0xd30535(0xae2)],_0x4fa5ad)[_0xd30535(0x1d77)]:(_0x11f327[_0xd30535(0xae2)]['id']=_0x11f327['userProfile']['id'],_0x11f327[_0xd30535(0xae2)][_0xd30535(0x1f74)]=_0xd30535(0x27e6),_0x11f327[_0xd30535(0x2061)]=_0x141cca['userProfile'][_0xd30535(0x1810)](_0x11f327[_0xd30535(0xae2)],_0x4fa5ad)[_0xd30535(0x1d77)]);}function _0x2e76e0(_0x57a775,_0x2df7e4){const _0x416556=_0x2db93f;_0x3ff5af[_0x416556(0xe27)]({'controller':_0x416556(0x1039),'controllerAs':'vm','templateUrl':_0x4c649c,'parent':angular[_0x416556(0x1853)](_0x11f10e[_0x416556(0x1ed9)]),'targetEvent':_0x57a775,'clickOutsideToClose':!![],'locals':{'plugin':_0x2df7e4,'plugins':_0x11f327[_0x416556(0x14e0)][_0x416556(0x2214)],'license':_0x11f327['license'],'setting':_0x11f327['setting'],'crudPermissions':_0x11f327[_0x416556(0x1b1a)]}});}function _0x1c6499(_0x1c0ac6){const _0x32e1f1=_0x2db93f;_0x1c0ac6[_0x32e1f1(0x1a4b)]&&_0x1c0ac6[_0x32e1f1(0x66a)]=='script'&&_0x141cca['pm2'][_0x32e1f1(0xbf7)]()[_0x32e1f1(0x1d77)][_0x32e1f1(0x1cb0)](function(_0x515470){const _0x42dcc4=_0x32e1f1;if(!_0x515470||!_0x515470['rows'])return _0x2070ae['error']({'title':_0x42dcc4(0x173c),'msg':'Failed\x20to\x20retrieve\x20pm2\x20processes'});const _0xdf1f22=_0x39641b()['find'](_0x515470[_0x42dcc4(0x2214)],{'name':_0x1c0ac6['scriptName']});if(!_0xdf1f22){console[_0x42dcc4(0x1b4f)](_0x42dcc4(0x1a87),_0x1c0ac6['scriptName']);return;}_0x141cca[_0x42dcc4(0x2897)]['delete']({'id':_0xdf1f22['pm_id'],'name':_0x1c0ac6[_0x42dcc4(0x79f)]})[_0x42dcc4(0x1d77)];})['catch'](function(){const _0x5b2d8b=_0x32e1f1;return _0x2070ae['error']({'title':_0x5b2d8b(0x1c2a),'msg':'Failed\x20to\x20delete\x20the\x20attached\x20pm2\x20process'});}),_0x141cca[_0x32e1f1(0xfd2)][_0x32e1f1(0x111d)]({'id':_0x1c0ac6['id']})[_0x32e1f1(0x1d77)][_0x32e1f1(0x1cb0)](function(){const _0x3fe02e=_0x32e1f1;_0x39641b()[_0x3fe02e(0x152a)](_0x11f327[_0x3fe02e(0x14e0)][_0x3fe02e(0x2214)],{'id':_0x1c0ac6['id']}),_0x11f327[_0x3fe02e(0x14e0)]['count']-=0x1,!_0x11f327[_0x3fe02e(0x14e0)][_0x3fe02e(0x2214)][_0x3fe02e(0xfd0)]&&_0x11f327[_0x3fe02e(0x100d)](),_0x2070ae[_0x3fe02e(0x829)]({'title':_0x39641b()[_0x3fe02e(0xa75)](_0x3fe02e(0x2002))+'\x20deleted!','msg':_0x1c0ac6[_0x3fe02e(0x16b6)]?_0x1c0ac6[_0x3fe02e(0x16b6)]+'\x20has\x20been\x20deleted!':''});})[_0x32e1f1(0x1c4)](function(_0x1a844f){const _0x277170=_0x32e1f1;if(_0x1a844f['data']&&_0x1a844f['data'][_0x277170(0x1a7c)]&&_0x1a844f[_0x277170(0x25c)]['errors'][_0x277170(0xfd0)]){_0x11f327[_0x277170(0x1a7c)]=_0x1a844f['data']['errors']||[{'message':_0x1a844f['toString'](),'type':_0x277170(0x990)}];for(let _0x1a7656=0x0;_0x1a7656<_0x1a844f[_0x277170(0x25c)][_0x277170(0x1a7c)][_0x277170(0xfd0)];_0x1a7656++){_0x2070ae[_0x277170(0x218e)]({'title':_0x1a844f[_0x277170(0x25c)][_0x277170(0x1a7c)][_0x1a7656][_0x277170(0x66a)],'msg':_0x1a844f[_0x277170(0x25c)][_0x277170(0x1a7c)][_0x1a7656][_0x277170(0x155e)]});}}else _0x2070ae[_0x277170(0x218e)]({'title':_0x1a844f[_0x277170(0x291)]?'API:'+_0x1a844f['status']+'\x20-\x20'+_0x1a844f[_0x277170(0xc22)]:'SYSTEM:DELETEplugin','msg':_0x1a844f[_0x277170(0x25c)]?JSON[_0x277170(0x2701)](_0x1a844f[_0x277170(0x25c)][_0x277170(0x155e)]):_0x1a844f[_0x277170(0x155e)]||_0x1a844f['toString']()});});}function _0x2eca02(){const _0xa8d586=_0x2db93f,_0x1a6b02=angular[_0xa8d586(0x17fe)](_0x11f327[_0xa8d586(0x235a)]);return _0x11f327[_0xa8d586(0x235a)]=[],_0x1a6b02;}function _0x280c54(_0x30319f){const _0x870dc8=_0x2db93f,_0x5c5d1a=_0x3ff5af['confirm']()[_0x870dc8(0x1386)](_0x870dc8(0x146d))[_0x870dc8(0x49e)](_0x870dc8(0x204d)+_0x11f327['selectedPlugins'][_0x870dc8(0xfd0)]+_0x870dc8(0x1d6c)+_0x870dc8(0x1b6))[_0x870dc8(0x15ad)]('delete\x20Plugins')[_0x870dc8(0x728)](_0x30319f)['ok']('OK')[_0x870dc8(0x696)](_0x870dc8(0x24ba));_0x3ff5af[_0x870dc8(0xe27)](_0x5c5d1a)[_0x870dc8(0x1cb0)](function(){const _0x55ab16=_0x870dc8;_0x11f327['selectedPlugins'][_0x55ab16(0xf90)](function(_0x173a55){_0x1c6499(_0x173a55);}),_0x11f327[_0x55ab16(0x235a)]=[];});}function _0x423d05(){_0x11f327['selectedPlugins']=[];}function _0x131af8(){const _0x3ecd08=_0x2db93f;_0x11f327[_0x3ecd08(0x235a)]=_0x11f327[_0x3ecd08(0x14e0)][_0x3ecd08(0x2214)];}function _0x77df94(_0x408c04){const _0x2fdf45=_0x2db93f;_0x3ff5af[_0x2fdf45(0xe27)]({'controller':_0x2fdf45(0xb94),'controllerAs':'vm','templateUrl':_0x3f7803,'parent':angular[_0x2fdf45(0x1853)](_0x11f10e[_0x2fdf45(0x1ed9)]),'targetEvent':_0x408c04,'clickOutsideToClose':!![],'locals':{'plugins':_0x11f327[_0x2fdf45(0x14e0)][_0x2fdf45(0x2214)]}});}}const _0x140c97=_0x10ab7c;;_0x42f382[_0x5537c6(0x15b6)]=['$cookies','$mdDialog',_0x5537c6(0x9bf),'plugins',_0x5537c6(0x142b),_0x5537c6(0x1774)];function _0x42f382(_0x1865bb,_0x1d9ea3,_0x5af8b4,_0x5f4ef5,_0x5e6fdc,_0x389a3d){const _0x4a3cdc=_0x5537c6,_0x5676ff=this,_0x2c7b91=0x2,_0xcfe8d4=_0x2c7b91*0x400*0x400;_0x5676ff[_0x4a3cdc(0xe76)]=_0x389a3d[_0x4a3cdc(0x21e8)](),_0x5676ff[_0x4a3cdc(0x1a7c)]=[],_0x5676ff[_0x4a3cdc(0x1386)]='MARKETPLACE.UPLOAD_PLUGIN',_0x5676ff['plugins']=_0x5f4ef5,_0x5676ff['uploadPlugins']=[],_0x5676ff[_0x4a3cdc(0xcc9)]=_0x4a3cdc(0x13b1),_0x5676ff[_0x4a3cdc(0xfd2)]={},_0x5676ff[_0x4a3cdc(0x15e8)]={'maxChunkRetries':0x1,'chunkSize':_0xcfe8d4,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':'api/plugins'},_0x5676ff['ngFlow']={'flow':{}},_0x5676ff[_0x4a3cdc(0x18dc)]=![],_0x5676ff[_0x4a3cdc(0x15c2)]=_0x4d9a9e,_0x5676ff[_0x4a3cdc(0x1c97)]=_0x6dc87c,_0x5676ff[_0x4a3cdc(0x200f)]=_0x134d38,_0x5676ff['uploadError']=_0x5e180e,_0x5676ff['uploadComplete']=_0xee8629,_0x5676ff['closeDialog']=_0x4c8a2b;function _0x4d9a9e(_0x5d853d){const _0x2a4d3a=_0x4a3cdc,_0x143fa1=[_0x2a4d3a(0x11b1)];if(!_0x39641b()[_0x2a4d3a(0x250a)](_0x143fa1,_0x5d853d[_0x2a4d3a(0x1cb1)]()))return _0x5af8b4['error']({'title':_0x2a4d3a(0x14d4)+_0x5d853d[_0x2a4d3a(0x1cb1)](),'msg':_0x2a4d3a(0x4d4)+_0x143fa1[_0x2a4d3a(0x1f66)]()}),![];if(_0x5d853d[_0x2a4d3a(0x1813)]>_0xcfe8d4)return _0x5af8b4[_0x2a4d3a(0x218e)]({'title':_0x2a4d3a(0x2749),'msg':_0x2a4d3a(0xe61)+_0x2c7b91+'MB'}),![];return _0x5676ff[_0x2a4d3a(0xfd2)]={'id':_0x5d853d['uniqueIdentifier'],'file':_0x5d853d},_0x5676ff['uploadPlugins'][_0x2a4d3a(0xf63)](_0x5676ff[_0x2a4d3a(0xfd2)]),!![];}function _0x6dc87c(){const _0x1eb653=_0x4a3cdc;_0x5676ff['uploadState']='uploading',_0x5676ff[_0x1eb653(0x125a)][_0x1eb653(0xacf)]['opts']['headers']={'X-Requested-With':_0x1eb653(0x2711),'Authorization':_0x1eb653(0x1923)+_0x1865bb[_0x1eb653(0xbf7)](_0x1eb653(0x1b26))},_0x5676ff[_0x1eb653(0x125a)][_0x1eb653(0xacf)]['opts'][_0x1eb653(0xae2)]={'role':_0x5676ff['currentUser'][_0x1eb653(0x26e6)],'userProfileId':_0x5676ff['currentUser']['userProfileId']},_0x5676ff[_0x1eb653(0x125a)][_0x1eb653(0xacf)][_0x1eb653(0x1c97)]();}function _0x134d38(_0x39eac1,_0x57a127){const _0x165cc2=_0x4a3cdc;_0x5676ff[_0x165cc2(0x14e0)][_0x165cc2(0xf63)](JSON[_0x165cc2(0xefe)](_0x57a127)),angular['forEach'](_0x5676ff['uploadPlugins'],function(_0x566028){const _0x433055=_0x165cc2;if(_0x566028['id']===_0x39eac1[_0x433055(0x27c2)]){const _0x7602dd=new FileReader();_0x7602dd[_0x433055(0x245d)](_0x566028[_0x433055(0x1ac4)][_0x433055(0x1ac4)]),_0x7602dd[_0x433055(0x198d)]=function(_0x51b7bf){const _0x262b87=_0x433055;_0x566028[_0x262b87(0x135b)]=_0x51b7bf[_0x262b87(0x251d)][_0x262b87(0x1205)];};}});}function _0x5e180e(){const _0x922ac=_0x4a3cdc;_0x5676ff[_0x922ac(0x125a)]['flow'][_0x922ac(0x696)](),_0x5af8b4[_0x922ac(0x218e)]({'title':_0x922ac(0x29f),'msg':_0x922ac(0x267a)}),_0x5676ff['uploadState']=_0x922ac(0x1460);}function _0xee8629(){const _0x118c99=_0x4a3cdc;_0x5676ff[_0x118c99(0xcc9)]!=='failed'&&(_0x5676ff[_0x118c99(0xcc9)]=_0x118c99(0x1274),_0x5af8b4['success']({'title':_0x118c99(0x1a51),'msg':_0x5676ff[_0x118c99(0xfd2)][_0x118c99(0x1ac4)][_0x118c99(0x16b6)]+_0x118c99(0xdeb)}));}function _0x4c8a2b(){const _0x907c3a=_0x4a3cdc;_0x1d9ea3[_0x907c3a(0x1426)]();}}const _0x46275d=_0x42f382;;_0x3be1ac['$inject']=[_0x5537c6(0xbd6),_0x5537c6(0x1f2a)];function _0x3be1ac(_0x3b8635,_0xd80013){const _0x6f8848=_0x5537c6;_0x3b8635[_0x6f8848(0x27e0)](_0x6f8848(0x1484),{'abstract':!![],'url':'/marketplace'})['state'](_0x6f8848(0x174),{'url':_0x6f8848(0x709),'views':{'content@app':{'templateUrl':_0x45dbfa,'controller':_0x6f8848(0x104e)}},'resolve':{'plugins':['apiResolver',_0x6f8848(0x1774),function(_0x2d7559,_0x21e2fa){const _0x241717=_0x6f8848;return _0x21e2fa[_0x241717(0x22b6)](_0x241717(0x1c60))?_0x2d7559[_0x241717(0x19a3)](_0x241717(0x21fa),{'fields':'createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version','sort':_0x241717(0x16b6),'limit':0xa,'offset':0x0}):_0x2d7559[_0x241717(0x19a3)](_0x241717(0x12da),{'id':_0x21e2fa[_0x241717(0x21e8)]()[_0x241717(0x13c1)],'section':_0x241717(0x27e6),'fields':_0x241717(0x13ad),'sort':_0x241717(0x16b6),'limit':0xa,'offset':0x0});}],'userProfile':[_0x6f8848(0x1e0b),'Auth',function(_0x370c42,_0x33b689){const _0x1a8b5d=_0x6f8848;return _0x33b689[_0x1a8b5d(0x22b6)](_0x1a8b5d(0x1c60))?null:_0x370c42['resolve'](_0x1a8b5d(0x9ae),{'fields':_0x1a8b5d(0x279),'id':_0x33b689[_0x1a8b5d(0x21e8)]()[_0x1a8b5d(0x13c1)]});}],'userProfileSection':['apiResolver',_0x6f8848(0x1774),function(_0x5e81cc,_0x210927){const _0x59c4a1=_0x6f8848;return _0x210927[_0x59c4a1(0x22b6)](_0x59c4a1(0x1c60))?null:_0x5e81cc[_0x59c4a1(0x19a3)](_0x59c4a1(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x210927['getCurrentUser']()['userProfileId'],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':_0x6f8848(0x270c)})['state']('app.marketplace.plugins.edit',{'url':_0x6f8848(0x1bf2),'params':{'plugin':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3b3dcf,'controller':_0x6f8848(0x807)}},'resolve':{'plugin':[_0x6f8848(0x1e0b),'$stateParams',function(_0x183efc,_0x22febe){const _0x322b8b=_0x6f8848;return _0x183efc['resolve'](_0x322b8b(0x21fa),{'fields':_0x322b8b(0x13ad),'id':_0x22febe['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x4f64eb,_0x566d66){const _0x10c73e=_0x6f8848;return _0x4f64eb[_0x10c73e(0x19a3)]('userProfileSection@get',{'fields':_0x10c73e(0x1f5f),'userProfileId':_0x566d66[_0x10c73e(0x21e8)]()['userProfileId'],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':_0x6f8848(0x270c)}),_0xd80013[_0x6f8848(0x4e7)]('app/main/apps/marketplace');}angular[_0x5537c6(0x9ab)](_0x5537c6(0x1484),['ngCsv','ngPassword',_0x5537c6(0x1260),'flow',_0x5537c6(0x18f6),_0x5537c6(0xd19),_0x5537c6(0x44c),_0x5537c6(0x2ec),'ngAnimate',_0x5537c6(0x167d),_0x5537c6(0x208f),_0x5537c6(0x1b65),_0x5537c6(0x2166),_0x5537c6(0x3b9),_0x5537c6(0x7c9),'ngEmbed','angularMaterialFormBuilder','material.components.expansionPanels','chart.js',_0x5537c6(0xd01)])['config'](_0x3be1ac)['controller'](_0x5537c6(0x1039),_0x2951ca)[_0x5537c6(0x6e5)]('MarketplacePluginController',_0x2f6add)[_0x5537c6(0x6e5)](_0x5537c6(0x233c),_0x140c97)[_0x5537c6(0x6e5)]('UploadPluginDialogController',_0x46275d);;const _0x4ad37c=_0x5074a3['p']+'src/js/modules/main/apps/plugins/views/plugin/plugin.html/plugin.html';;_0x1f620a[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x1463),_0x5537c6(0x254f),_0x5537c6(0x142b),_0x5537c6(0x1986),_0x5537c6(0x1774)];function _0x1f620a(_0x59975d,_0x2c4ed4,_0x2e4815,_0x41135c,_0x527fe9,_0x3c8959){const _0x45d842=_0x5537c6,_0x21b06a=this;_0x21b06a[_0x45d842(0xe76)]=_0x3c8959[_0x45d842(0x21e8)](),_0x21b06a[_0x45d842(0xfd2)]={},_0x21b06a[_0x45d842(0xee2)]=_0x485181,_0x41135c[_0x45d842(0xfd2)][_0x45d842(0xbf7)]({'id':_0x59975d['params']['id']})[_0x45d842(0x1d77)][_0x45d842(0x1cb0)](function(_0x1d61b4){const _0x264383=_0x45d842;if(_0x1d61b4)return _0x21b06a[_0x264383(0xfd2)]=_0x1d61b4,_0x41135c[_0x264383(0xfd2)][_0x264383(0xbf7)]({'id':_0x21b06a['plugin']['id']})[_0x264383(0x1d77)];})[_0x45d842(0x1c4)](function(){const _0x131e36=_0x45d842;_0x21b06a[_0x131e36(0xfd2)]=undefined;});function _0x485181(){const _0x6ba6ca=_0x45d842;return _0x2e4815['trustAsResourceUrl'](_0x21b06a[_0x6ba6ca(0xfd2)][_0x6ba6ca(0x2c2)]);}}const _0x1a6a7a=_0x1f620a;;_0x463529[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6)];function _0x463529(_0x53f26c){const _0x2c5634=_0x5537c6;_0x53f26c[_0x2c5634(0x27e0)](_0x2c5634(0x26b5),{'url':'/plugin/:id','views':{'content@app':{'templateUrl':_0x4ad37c,'controller':'PluginController\x20as\x20vm'}},'resolve':{},'authenticate':!![],'bodyClass':'plugins'});}angular[_0x5537c6(0x9ab)]('app.plugins.plugin',[])[_0x5537c6(0xa60)](_0x463529)[_0x5537c6(0x6e5)](_0x5537c6(0x1061),_0x1a6a7a);;_0x4d48f9[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6),_0x5537c6(0x1f2a)];function _0x4d48f9(_0x390ca8,_0x29be10){const _0x27efcc=_0x5537c6;_0x390ca8[_0x27efcc(0x27e0)]('app.plugins',{'abstract':!![],'url':_0x27efcc(0x709)}),_0x29be10[_0x27efcc(0x4e7)](_0x27efcc(0xd03));}angular[_0x5537c6(0x9ab)]('app.plugins',[_0x5537c6(0x2770),_0x5537c6(0x2135),_0x5537c6(0x1260),_0x5537c6(0xacf),'mdColorPicker',_0x5537c6(0xd19),_0x5537c6(0x44c),_0x5537c6(0x2ec),_0x5537c6(0x1890),_0x5537c6(0x167d),_0x5537c6(0x208f),'mwFormViewer',_0x5537c6(0x2166),_0x5537c6(0x3b9),_0x5537c6(0x7c9),_0x5537c6(0xeb5),'angularMaterialFormBuilder','material.components.expansionPanels',_0x5537c6(0x1cbd),'angular.filter',_0x5537c6(0x26b5)])[_0x5537c6(0xa60)](_0x4d48f9);;const _0x24dbe2=_0x5074a3['p']+_0x5537c6(0x23c1);;_0x55469d[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x540),_0x5537c6(0xd97),'api',_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),_0x5537c6(0x1b1a)];function _0x55469d(_0x5708be,_0x1aa6c6,_0xa97fd5,_0x5f0580,_0x9378f7,_0x57947f,_0x443f00,_0x52cf75,_0x496681,_0x1207d2,_0x1c7a5f,_0x1ad20d,_0xe6faf2,_0x4289bb){const _0x32bfe0=_0x5537c6,_0x41bf8c=this;_0x41bf8c[_0x32bfe0(0xe76)]=_0x1c7a5f['getCurrentUser'](),_0x41bf8c[_0x32bfe0(0x1a7c)]=[],_0x41bf8c['setting']=_0xe6faf2,_0x41bf8c[_0x32bfe0(0x8a5)]=_0x1ad20d,_0x41bf8c[_0x32bfe0(0x1b1a)]=_0x4289bb,_0x41bf8c[_0x32bfe0(0xf4c)]={},_0x41bf8c['passwordPattern']=_0x41bf8c[_0x32bfe0(0x9ca)]&&_0x41bf8c[_0x32bfe0(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x41bf8c['title']=_0x32bfe0(0x2c0),_0x41bf8c['screenRecording']=angular[_0x32bfe0(0x17fe)](_0x496681),_0x41bf8c[_0x32bfe0(0x540)]=_0x52cf75,_0x41bf8c[_0x32bfe0(0x2312)]=![];!_0x41bf8c[_0x32bfe0(0xd97)]&&(_0x41bf8c['screenRecording']={},_0x41bf8c[_0x32bfe0(0x1386)]=_0x32bfe0(0xd61),_0x41bf8c[_0x32bfe0(0x2312)]=!![]);_0x41bf8c[_0x32bfe0(0x2880)]=_0x247e4c,_0x41bf8c[_0x32bfe0(0x1dc8)]=_0x2adf7c,_0x41bf8c[_0x32bfe0(0x947)]=_0x21d812,_0x41bf8c[_0x32bfe0(0x2c4)]=_0x2c74ff,_0x41bf8c[_0x32bfe0(0xda0)]=_0x35c9ca,_0x1207d2[_0x32bfe0(0xebe)]['get']({'fields':_0x32bfe0(0x1d34),'sort':_0x32bfe0(0x16b6),'nolimit':_0x32bfe0(0x44d)})[_0x32bfe0(0x1d77)][_0x32bfe0(0x1cb0)](function(_0x19f13f){const _0xf90baa=_0x32bfe0;_0x41bf8c['users']=_0x19f13f[_0xf90baa(0x2214)]||[];})[_0x32bfe0(0x1c4)](function(_0x3e2ce8){const _0x45268b=_0x32bfe0;_0x443f00[_0x45268b(0x218e)]({'title':_0x3e2ce8['status']?_0x45268b(0xeb9)+_0x3e2ce8[_0x45268b(0x291)]+'\x20-\x20'+_0x3e2ce8[_0x45268b(0xc22)]:_0x45268b(0x124f),'msg':_0x3e2ce8[_0x45268b(0x25c)]?JSON['stringify'](_0x3e2ce8[_0x45268b(0x25c)]):_0x3e2ce8[_0x45268b(0x147f)]()});});function _0x247e4c(){const _0x344479=_0x32bfe0;_0x41bf8c[_0x344479(0x1a7c)]=[],_0x1207d2[_0x344479(0xd97)]['save'](_0x41bf8c[_0x344479(0xd97)])['$promise'][_0x344479(0x1cb0)](function(_0x62e9fa){const _0x2feac6=_0x344479;_0x41bf8c['screenRecordings'][_0x2feac6(0xf63)](_0x62e9fa[_0x2feac6(0x19b2)]()),_0x443f00[_0x2feac6(0x829)]({'title':_0x2feac6(0x1620),'msg':_0x41bf8c[_0x2feac6(0xd97)][_0x2feac6(0x16b6)]?_0x41bf8c[_0x2feac6(0xd97)][_0x2feac6(0x16b6)]+'\x20has\x20been\x20created!':''}),_0x35c9ca(_0x62e9fa);})[_0x344479(0x1c4)](function(_0x4ae63e){const _0x2c7e97=_0x344479;if(_0x4ae63e[_0x2c7e97(0x25c)]&&_0x4ae63e[_0x2c7e97(0x25c)][_0x2c7e97(0x1a7c)]&&_0x4ae63e[_0x2c7e97(0x25c)][_0x2c7e97(0x1a7c)][_0x2c7e97(0xfd0)]){_0x41bf8c[_0x2c7e97(0x1a7c)]=_0x4ae63e['data'][_0x2c7e97(0x1a7c)]||[{'message':_0x4ae63e[_0x2c7e97(0x147f)](),'type':_0x2c7e97(0x1d29)}];for(let _0x44cb49=0x0;_0x44cb49<_0x4ae63e['data']['errors']['length'];_0x44cb49+=0x1){_0x443f00[_0x2c7e97(0x218e)]({'title':_0x4ae63e[_0x2c7e97(0x25c)][_0x2c7e97(0x1a7c)][_0x44cb49][_0x2c7e97(0x66a)],'msg':_0x4ae63e[_0x2c7e97(0x25c)][_0x2c7e97(0x1a7c)][_0x44cb49][_0x2c7e97(0x155e)]});}}else _0x443f00['error']({'title':_0x4ae63e[_0x2c7e97(0x291)]?_0x2c7e97(0xeb9)+_0x4ae63e[_0x2c7e97(0x291)]+_0x2c7e97(0x1657)+_0x4ae63e[_0x2c7e97(0xc22)]:_0x2c7e97(0x1d29),'msg':_0x4ae63e[_0x2c7e97(0x25c)]?JSON[_0x2c7e97(0x2701)](_0x4ae63e[_0x2c7e97(0x25c)][_0x2c7e97(0x155e)]):_0x4ae63e[_0x2c7e97(0x147f)]()});});}function _0x2adf7c(){const _0x19e223=_0x32bfe0;_0x41bf8c[_0x19e223(0x1a7c)]=[],_0x1207d2['screenRecording'][_0x19e223(0x687)]({'id':_0x41bf8c[_0x19e223(0xd97)]['id']},_0x41bf8c['screenRecording'])[_0x19e223(0x1d77)][_0x19e223(0x1cb0)](function(_0x2304f7){const _0x4b4231=_0x19e223,_0x50a5d1=_0x39641b()['find'](_0x41bf8c['screenRecordings'],{'id':_0x2304f7['id']});_0x50a5d1&&_0x39641b()[_0x4b4231(0x9c1)](_0x50a5d1,_0x39641b()[_0x4b4231(0x169b)](_0x2304f7[_0x4b4231(0x19b2)](),_0x39641b()[_0x4b4231(0x1be5)](_0x50a5d1))),_0x443f00['success']({'title':'screenRecording\x20properly\x20saved!','msg':_0x41bf8c[_0x4b4231(0xd97)][_0x4b4231(0x16b6)]?_0x41bf8c[_0x4b4231(0xd97)][_0x4b4231(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x35c9ca(_0x2304f7);})['catch'](function(_0x283e24){const _0x47403d=_0x19e223;if(_0x283e24[_0x47403d(0x25c)]&&_0x283e24[_0x47403d(0x25c)][_0x47403d(0x1a7c)]&&_0x283e24[_0x47403d(0x25c)][_0x47403d(0x1a7c)][_0x47403d(0xfd0)]){_0x41bf8c[_0x47403d(0x1a7c)]=_0x283e24[_0x47403d(0x25c)][_0x47403d(0x1a7c)]||[{'message':_0x283e24[_0x47403d(0x147f)](),'type':_0x47403d(0x245a)}];for(let _0x1cf91a=0x0;_0x1cf91a<_0x283e24[_0x47403d(0x25c)][_0x47403d(0x1a7c)][_0x47403d(0xfd0)];_0x1cf91a++){_0x443f00[_0x47403d(0x218e)]({'title':_0x283e24[_0x47403d(0x25c)][_0x47403d(0x1a7c)][_0x1cf91a][_0x47403d(0x66a)],'msg':_0x283e24['data'][_0x47403d(0x1a7c)][_0x1cf91a][_0x47403d(0x155e)]});}}else _0x443f00[_0x47403d(0x218e)]({'title':_0x283e24[_0x47403d(0x291)]?'API:'+_0x283e24['status']+'\x20-\x20'+_0x283e24[_0x47403d(0xc22)]:_0x47403d(0x245a),'msg':_0x283e24[_0x47403d(0x25c)]?JSON[_0x47403d(0x2701)](_0x283e24[_0x47403d(0x25c)][_0x47403d(0x155e)]):_0x283e24[_0x47403d(0x147f)]()});});}function _0x21d812(_0x4b9adc){const _0x206e0c=_0x32bfe0;_0x41bf8c[_0x206e0c(0x1a7c)]=[];const _0x2a6f64=_0x5f0580[_0x206e0c(0x1551)]()[_0x206e0c(0x1386)](_0x206e0c(0x1a2e))[_0x206e0c(0x862)]('The\x20screenRecording\x20will\x20be\x20deleted.')[_0x206e0c(0x15ad)]('Delete\x20screenRecording')['ok'](_0x206e0c(0x2594))[_0x206e0c(0x696)]('Cancel')[_0x206e0c(0x728)](_0x4b9adc);_0x5f0580[_0x206e0c(0xe27)](_0x2a6f64)[_0x206e0c(0x1cb0)](function(){const _0x5c45e3=_0x206e0c;_0x1207d2['screenRecording']['delete']({'id':_0x41bf8c[_0x5c45e3(0xd97)]['id']})[_0x5c45e3(0x1d77)][_0x5c45e3(0x1cb0)](function(){const _0x53adc4=_0x5c45e3;_0x39641b()[_0x53adc4(0x152a)](_0x41bf8c[_0x53adc4(0x540)],{'id':_0x41bf8c[_0x53adc4(0xd97)]['id']}),_0x443f00[_0x53adc4(0x829)]({'title':_0x53adc4(0x1057),'msg':(_0x41bf8c[_0x53adc4(0xd97)][_0x53adc4(0x16b6)]||_0x53adc4(0xd97))+_0x53adc4(0x3f5)}),_0x35c9ca(_0x41bf8c[_0x53adc4(0xd97)]);})[_0x5c45e3(0x1c4)](function(_0x4fcbd0){const _0x3eb49d=_0x5c45e3;if(_0x4fcbd0[_0x3eb49d(0x25c)]&&_0x4fcbd0[_0x3eb49d(0x25c)][_0x3eb49d(0x1a7c)]&&_0x4fcbd0['data'][_0x3eb49d(0x1a7c)][_0x3eb49d(0xfd0)]){_0x41bf8c[_0x3eb49d(0x1a7c)]=_0x4fcbd0['data'][_0x3eb49d(0x1a7c)]||[{'message':_0x4fcbd0['toString'](),'type':_0x3eb49d(0x4cc)}];for(let _0xc22050=0x0;_0xc22050<_0x4fcbd0[_0x3eb49d(0x25c)][_0x3eb49d(0x1a7c)][_0x3eb49d(0xfd0)];_0xc22050++){_0x443f00[_0x3eb49d(0x218e)]({'title':_0x4fcbd0[_0x3eb49d(0x25c)][_0x3eb49d(0x1a7c)][_0xc22050]['type'],'msg':_0x4fcbd0[_0x3eb49d(0x25c)][_0x3eb49d(0x1a7c)][_0xc22050][_0x3eb49d(0x155e)]});}}else _0x443f00[_0x3eb49d(0x218e)]({'title':_0x4fcbd0[_0x3eb49d(0x291)]?_0x3eb49d(0xeb9)+_0x4fcbd0[_0x3eb49d(0x291)]+_0x3eb49d(0x1657)+_0x4fcbd0[_0x3eb49d(0xc22)]:_0x3eb49d(0x4cc),'msg':_0x4fcbd0[_0x3eb49d(0x25c)]?JSON[_0x3eb49d(0x2701)](_0x4fcbd0[_0x3eb49d(0x25c)][_0x3eb49d(0x155e)]):_0x4fcbd0[_0x3eb49d(0x155e)]||_0x4fcbd0['toString']()});});},function(){});}function _0x2c74ff(_0x307703){return _0x307703===null?undefined:new Date(_0x307703);}function _0x35c9ca(_0x48663){const _0x3d1c73=_0x32bfe0;_0x5f0580[_0x3d1c73(0x1426)](_0x48663);}}const _0x4ca68a=_0x55469d;;_0x21e88b[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0xcb9),_0x5537c6(0x9bf),'api','recording',_0x5537c6(0x2310),_0x5537c6(0x10f8),_0x5537c6(0x669),'elementTag','$q'];function _0x21e88b(_0x811847,_0x1d5710,_0x2fb4ee,_0x26d027,_0xc0e674,_0x5a2d4b,_0x4f275e,_0x48404c,_0x2db4dc,_0xc099d0){const _0x5af27f=_0x5537c6,_0x563d1d=this;_0x563d1d[_0x5af27f(0x2279)]=![],_0x563d1d['recording']=Object[_0x5af27f(0xfad)]({},_0xc0e674),_0x563d1d[_0x5af27f(0x15d0)]=_0x5af27f(0xd97),_0x563d1d[_0x5af27f(0x1853)]=_0x2db4dc,_0x563d1d[_0x5af27f(0x2310)]=Object['assign']({},_0x5a2d4b),_0x563d1d[_0x5af27f(0x1fe)]=_0x48404c,_0x563d1d[_0x5af27f(0x10f8)]=_0x4f275e,_0x563d1d['app']='video',_0x563d1d[_0x5af27f(0xf72)]=_0x5af27f(0xd97),console[_0x5af27f(0x1b4f)](_0x5af27f(0x2888),_0x563d1d[_0x5af27f(0x1fe)]),console[_0x5af27f(0x1b4f)](_0x5af27f(0x27a7),_0x563d1d[_0x5af27f(0x1b6f)][_0x563d1d['path']]),_0x563d1d[_0x5af27f(0x179a)]=_0x563d1d[_0x5af27f(0x1b6f)][_0x563d1d[_0x5af27f(0x1fe)]][_0x5af27f(0xd8a)]('/')>-0x1?_0x563d1d[_0x5af27f(0x1b6f)][_0x563d1d['path']][_0x5af27f(0x2371)](_0x563d1d[_0x5af27f(0x1b6f)][_0x563d1d[_0x5af27f(0x1fe)]][_0x5af27f(0x142c)]('/')+0x1):_0x563d1d[_0x5af27f(0x1b6f)][_0x563d1d[_0x5af27f(0x1fe)]][_0x5af27f(0xd8a)]('\x5c')>-0x1?_0x563d1d['recording'][_0x563d1d[_0x5af27f(0x1fe)]]['substring'](_0x563d1d[_0x5af27f(0x1b6f)][_0x563d1d[_0x5af27f(0x1fe)]][_0x5af27f(0x142c)]('\x5c')+0x1):_0x563d1d[_0x5af27f(0x1b6f)][_0x563d1d['path']],_0x563d1d[_0x5af27f(0x1f31)]=![];_0x39641b()[_0x5af27f(0x958)](_0x563d1d[_0x5af27f(0x1b6f)][_0x5af27f(0x1f31)])&&(_0x563d1d[_0x5af27f(0x1b6f)][_0x5af27f(0x1f31)]=_0x563d1d[_0x5af27f(0x179a)][_0x5af27f(0x14cb)](_0x563d1d[_0x5af27f(0x179a)][_0x5af27f(0x142c)]('.')));(_0x563d1d[_0x5af27f(0x1b6f)]['format']===_0x5af27f(0x211c)&&_0x563d1d['element']===_0x5af27f(0x297d)||_0x563d1d[_0x5af27f(0x1b6f)]['format']===_0x5af27f(0x2006)&&_0x563d1d[_0x5af27f(0x1853)]===_0x5af27f(0x121f))&&(_0x563d1d[_0x5af27f(0x1f31)]=!![]);_0x563d1d[_0x5af27f(0x18d3)]=!![];_0x563d1d['format']&&_0x42dd67();function _0x42dd67(){const _0x4950aa=_0x5af27f,_0x1193fb=_0xc099d0[_0x4950aa(0x11f4)]();return _0x26d027[_0x4950aa(0xd97)][_0x4950aa(0x26ec)]({'id':_0x563d1d[_0x4950aa(0x1b6f)]['id'],'path':String(_0x563d1d[_0x4950aa(0x1fe)])})[_0x4950aa(0x1d77)]['then'](function(){const _0x28c02b=_0x4950aa;_0x563d1d[_0x28c02b(0x1f31)]=!![],_0x563d1d[_0x28c02b(0x18d3)]=!![],_0x1193fb['resolve']();})[_0x4950aa(0x1c4)](function(){const _0x5124e1=_0x4950aa;console[_0x5124e1(0x1b4f)](_0x5124e1(0x12d5)),_0x563d1d['format']=![],_0x563d1d[_0x5124e1(0x18d3)]=![],_0x1193fb[_0x5124e1(0x19a3)]();}),_0x1193fb[_0x4950aa(0x2061)];}if(!_0x39641b()['isNil'](_0x5a2d4b[_0x5af27f(0x238b)])&&_0x5a2d4b[_0x5af27f(0x238b)]){_0x563d1d['properties']=Object[_0x5af27f(0xfad)]({},_0xc0e674);const _0x193d90=Object[_0x5af27f(0x1be5)](_0xc0e674);_0x193d90[_0x5af27f(0xf90)](function(_0x58a087){const _0x2b9041=_0x5af27f;String(_0x58a087[0x0][_0x2b9041(0x2335)]())===String(_0x58a087[0x0])&&delete _0x563d1d[_0x2b9041(0x238b)][_0x58a087];}),_0x563d1d[_0x5af27f(0x2898)]={};if(!_0x39641b()[_0x5af27f(0x958)](_0x5a2d4b[_0x5af27f(0x17fb)])&&_0x5a2d4b[_0x5af27f(0x17fb)]['length']>0x0){_0x563d1d['propertiesDefault']=Object[_0x5af27f(0xfad)]({},_0xc0e674);const _0x235445=_0x5a2d4b[_0x5af27f(0x17fb)],_0x43cf56=Object['keys'](_0xc0e674);let _0x237c1b=!![];_0x43cf56[_0x5af27f(0xf90)](function(_0x7aab15){const _0xbe28d6=_0x5af27f;_0x237c1b=!![],_0x235445['forEach'](function(_0x4acc09){String(_0x7aab15)===String(_0x4acc09)&&(_0x237c1b=![]);}),_0x237c1b&&delete _0x563d1d[_0xbe28d6(0x2898)][_0x7aab15];}),_0x563d1d[_0x5af27f(0x238b)]=_0x563d1d[_0x5af27f(0x2898)];}if(!_0x39641b()['isNil'](_0x5a2d4b[_0x5af27f(0x1881)])&&_0x5a2d4b[_0x5af27f(0x1881)][_0x5af27f(0xfd0)]>0x0){_0x563d1d['propertiesExtra']={};const _0x43c87a=_0x5a2d4b['extraData'];for(let _0x12c8f4=0x0;_0x12c8f4<_0x43c87a['length'];_0x12c8f4++){const _0x2a4d5a=_0x43c87a[_0x12c8f4][_0x5af27f(0x27aa)],_0xe0eae8=_0x43c87a[_0x12c8f4][_0x5af27f(0xf72)];for(let _0x77a65c=0x0;_0x77a65c<_0x2a4d5a[_0x5af27f(0xfd0)];_0x77a65c++){_0x563d1d[_0x5af27f(0x206)][_0x2a4d5a[_0x77a65c][_0x5af27f(0x19d3)]]=_0xc0e674[_0xe0eae8][_0x2a4d5a[_0x77a65c]['key']];}}_0x563d1d['properties']=Object[_0x5af27f(0xfad)]({},_0x563d1d[_0x5af27f(0x2898)],_0x563d1d[_0x5af27f(0x206)]);}}_0x563d1d[_0x5af27f(0xda0)]=_0x49d5e2;function _0x49d5e2(){const _0x459cc8=_0x5af27f;_0x1d5710[_0x459cc8(0x1426)]();}}const _0x373157=_0x21e88b;;const _0x52b3f8=_0x5074a3['p']+_0x5537c6(0x2727);;const _0x548fdc=_0x5074a3['p']+'src/js/modules/main/apps/video/views/screenRecordings/partialViews/play.html/play.html';;_0x4afe7b['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x1f10),_0x5537c6(0x406),'$mdSidenav',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x540),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),'license',_0x5537c6(0x9ca)];function _0x4afe7b(_0x56e0b9,_0x44b567,_0x2dd644,_0x2633b3,_0x2434ad,_0x324f96,_0x5ebd3d,_0x30a93c,_0x40b830,_0x536664,_0x467f98,_0x369ef3,_0x1bbaa4,_0x57dc52,_0x1fe9eb,_0x4912d0,_0x23903a){const _0x51dd62=_0x5537c6,_0x23fd72=this;_0x23fd72['license']=_0x4912d0,_0x23fd72[_0x51dd62(0x9ca)]=_0x23903a,_0x23fd72[_0x51dd62(0xe76)]=_0x1fe9eb[_0x51dd62(0x21e8)](),_0x23fd72['screenRecordings']=_0x40b830||{'count':0x0,'rows':[]},_0x23fd72[_0x51dd62(0x44a)]=_0x536664,_0x23fd72['userProfileSection']=_0x467f98&&_0x467f98['count']==0x1?_0x467f98[_0x51dd62(0x2214)][0x0]:null,_0x23fd72[_0x51dd62(0x1b1a)]=_0x1fe9eb[_0x51dd62(0x14ea)](_0x23fd72['userProfileSection']?_0x23fd72[_0x51dd62(0x2199)][_0x51dd62(0x1b1a)]:null),_0x23fd72[_0x51dd62(0xc83)]=_0x51dd62(0x540),_0x23fd72[_0x51dd62(0x1d20)]='',_0x23fd72[_0x51dd62(0x1cdf)]=null,_0x23fd72['selectedScreenRecordings']=[],_0x23fd72[_0x51dd62(0xae2)]={'fields':_0x51dd62(0x242c),'createdAt':'@msUtils.firstLastDayMonth()','includeAll':_0x51dd62(0x44d),'sort':_0x51dd62(0x282),'limit':0xa,'page':0x1},_0x23fd72['query'][_0x51dd62(0x24cb)]=_0x1bbaa4[_0x51dd62(0xa1e)](),_0x23fd72['quickFilters']=_0x2091d3();function _0x2091d3(){const _0x1b6318=_0x51dd62;return[{'name':_0x1b6318(0x68d),'key':'createdAt','type':_0x1b6318(0x18ec),'label':_0x1b6318(0x2186)}];}_0x23fd72[_0x51dd62(0xcd7)]=_0x2b81e5,_0x23fd72[_0x51dd62(0x1610)]=_0x2a94f3,_0x23fd72['deleteconfirm']=_0x342485,_0x23fd72[_0x51dd62(0x829)]=_0x58f2fd,_0x23fd72['getScreenRecordings']=_0x2018fd,_0x23fd72[_0x51dd62(0xfea)]=_0xabd4cd,_0x23fd72[_0x51dd62(0x947)]=_0x459763,_0x23fd72['exportSelectedScreenRecordings']=_0x5a2dbb,_0x23fd72[_0x51dd62(0x11b8)]=_0x534917,_0x23fd72['deselectScreenRecordings']=_0x49f683,_0x23fd72[_0x51dd62(0x1142)]=_0x4b8eea,_0x23fd72[_0x51dd62(0x553)]=_0x1c3d7,_0x369ef3[_0x51dd62(0xebe)][_0x51dd62(0xbf7)]({'fields':_0x51dd62(0x1d34),'sort':_0x51dd62(0x16b6),'nolimit':_0x51dd62(0x44d)})[_0x51dd62(0x1d77)]['then'](function(_0x79c40b){const _0x2cc7b7=_0x51dd62;_0x23fd72[_0x2cc7b7(0x1e30)]=_0x79c40b['rows']||[];})[_0x51dd62(0x1c4)](function(_0x67de68){const _0x1ae40d=_0x51dd62;_0x57dc52[_0x1ae40d(0x218e)]({'title':_0x67de68[_0x1ae40d(0x291)]?'API:'+_0x67de68[_0x1ae40d(0x291)]+_0x1ae40d(0x1657)+_0x67de68[_0x1ae40d(0xc22)]:_0x1ae40d(0x124f),'msg':_0x67de68['data']?JSON[_0x1ae40d(0x2701)](_0x67de68[_0x1ae40d(0x25c)]):_0x67de68[_0x1ae40d(0x147f)]()});});function _0x2b81e5(_0x2c8055,_0x32fc61,_0x498add,_0x32c985,_0x46d715){const _0x2a77b7=_0x51dd62,_0x23bf54={'upperTitle':![],'lowerTitle':!![],'properties':!![],'propertiesIcon':_0x2a77b7(0x11ab),'propertiesList':['format',_0x2a77b7(0x1472),_0x2a77b7(0x2483),_0x2a77b7(0x88c),_0x2a77b7(0xecd),_0x2a77b7(0x24cb)],'extraData':[{'model':_0x2a77b7(0x1597),'values':[{'key':'name','text':_0x2a77b7(0x1b12)}]}]},_0x5ffa8d={};_0x5ffa8d['route']=_0x2a77b7(0xd97),_0x5ffa8d['name']='screenRecordings',_0x5ffa8d[_0x2a77b7(0xf72)]=_0x2a77b7(0xd97),_0x5ffa8d[_0x2a77b7(0x1334)]=_0x2a77b7(0xd97),_0x32c985=String(_0x32c985);const _0x38ca8c=String(_0x498add);console[_0x2a77b7(0x1b4f)](_0x2a77b7(0xc5e),String(_0x498add)),_0x2434ad[_0x2a77b7(0xe27)]({'controller':'ScreenRecordingplayController','controllerAs':'vm','templateUrl':_0x548fdc,'parent':angular[_0x2a77b7(0x1853)](_0x324f96[_0x2a77b7(0x1ed9)]),'targetEvent':_0x32fc61,'clickOutsideToClose':!![],'locals':{'recording':_0x2c8055,'recordings':_0x23fd72['screenRecordings'][_0x2a77b7(0x2214)],'license':_0x23fd72[_0x2a77b7(0x8a5)],'setting':null,'item':_0x5ffa8d,'actionOptions':_0x23bf54,'label':_0x32c985,'varPath':_0x38ca8c,'elementTag':String(_0x46d715)}});}function _0x2a94f3(_0x37f207){const _0x4c0695=_0x51dd62;let _0x3dd30f=![];const _0x3dc74b=!_0x39641b()[_0x4c0695(0x958)](_0x37f207['format'])?_0x37f207['format']:_0x37f207[_0x4c0695(0x327)]['substring'](_0x37f207[_0x4c0695(0x327)][_0x4c0695(0x142c)]('.'));_0x3dd30f=_0x3dc74b==='.mp4'?!![]:![];const _0x41153d=_0x37f207[_0x4c0695(0x327)]['lastIndexOf']('/')>-0x1?_0x37f207['value'][_0x4c0695(0x2371)](_0x37f207[_0x4c0695(0x327)]['lastIndexOf']('/')+0x1):_0x37f207[_0x4c0695(0x327)][_0x4c0695(0x142c)]('\x5c')>-0x1?_0x37f207['value']['substring'](_0x37f207[_0x4c0695(0x327)][_0x4c0695(0x142c)]('\x5c')+0x1):_0x37f207[_0x4c0695(0x327)];return _0x369ef3['screenRecording']['download']({'id':_0x37f207['id']})[_0x4c0695(0x1d77)][_0x4c0695(0x1cb0)](function(_0x858a7b){const _0x4fada0=_0x4c0695,_0x2fdc7a=[_0x858a7b[_0x4fada0(0xef0)]];let _0x298100=_0x4fada0(0x26ec);const _0x2f2c28=new Blob(_0x2fdc7a,{'type':_0x858a7b[_0x4fada0(0x66a)]});_0x298100=_0x41153d;const _0x6761f6=window[_0x4fada0(0x1db8)]['createElement']('a');_0x6761f6[_0x4fada0(0x23b9)](_0x4fada0(0x105b),URL[_0x4fada0(0x2247)](_0x2f2c28)),_0x6761f6[_0x4fada0(0x23b9)](_0x4fada0(0x26ec),_0x298100),document['body'][_0x4fada0(0x23de)](_0x6761f6),_0x6761f6['click']();})[_0x4c0695(0x1c4)](function(_0x5a8478){const _0x570240=_0x4c0695;if(_0x5a8478[_0x570240(0x25c)]&&_0x5a8478[_0x570240(0x25c)]['errors']&&_0x5a8478[_0x570240(0x25c)]['errors'][_0x570240(0xfd0)])for(let _0x1622b7=0x0;_0x1622b7<_0x5a8478[_0x570240(0x25c)][_0x570240(0x1a7c)]['length'];_0x1622b7++){_0x57dc52[_0x570240(0x218e)]({'title':_0x5a8478['data']['errors'][_0x1622b7][_0x570240(0x66a)],'msg':_0x5a8478[_0x570240(0x25c)][_0x570240(0x1a7c)][_0x1622b7]['message']});}else{if(String(_0x5a8478[_0x570240(0x291)])==='404'&&_0x3dd30f===![])_0x57dc52[_0x570240(0x28c7)]({'title':_0x30a93c[_0x570240(0x25cc)]('APP.CANT_DOWNLOAD_THIS_FILE'),'msg':_0x30a93c[_0x570240(0x25cc)]('APP.WRONG_EXTENSION')});else String(_0x5a8478['status'])==='404'?_0x57dc52['info']({'title':_0x30a93c[_0x570240(0x25cc)]('APP.CANT_DOWNLOAD_THIS_FILE'),'msg':_0x30a93c[_0x570240(0x25cc)](_0x570240(0x869))}):_0x57dc52[_0x570240(0x218e)]({'title':_0x5a8478[_0x570240(0x291)]?'API:'+_0x5a8478[_0x570240(0x291)]+_0x570240(0x1657)+_0x5a8478['statusText']:_0x570240(0x1d29),'msg':_0x5a8478[_0x570240(0x25c)]?JSON[_0x570240(0x2701)](_0x5a8478[_0x570240(0x25c)]['message']):_0x5a8478['toString']()});}});}function _0x342485(_0xc1b492,_0x483fa9){const _0x9fb3a3=_0x51dd62,_0x47c4c0=_0x2434ad['confirm']()[_0x9fb3a3(0x1386)](_0x9fb3a3(0x140b)+_0x39641b()[_0x9fb3a3(0xa75)](_0x9fb3a3(0xd97))+'?')[_0x9fb3a3(0x49e)](_0x9fb3a3(0x204d)+(_0xc1b492['name']||_0x9fb3a3(0xd97))+_0x9fb3a3(0x1200)+_0x9fb3a3(0x1b6))[_0x9fb3a3(0x15ad)]('delete\x20screenRecording')['targetEvent'](_0x483fa9)['ok']('OK')['cancel'](_0x9fb3a3(0x24ba));_0x2434ad[_0x9fb3a3(0xe27)](_0x47c4c0)[_0x9fb3a3(0x1cb0)](function(){_0x459763(_0xc1b492);},function(){console['log']('CANCEL');});}let _0x3bb2ce=!![],_0xa78776=0x1;_0x56e0b9[_0x51dd62(0x614)](_0x51dd62(0x957),function(_0x5252d1,_0x39fb90){const _0x30ca7f=_0x51dd62;_0x3bb2ce?_0x5ebd3d(function(){_0x3bb2ce=![];}):(!_0x39fb90&&(_0xa78776=_0x23fd72['query']['page']),_0x5252d1!==_0x39fb90&&(_0x23fd72[_0x30ca7f(0xae2)]['page']=0x1),!_0x5252d1&&(_0x23fd72[_0x30ca7f(0xae2)][_0x30ca7f(0x1c7b)]=_0xa78776),_0x23fd72[_0x30ca7f(0x17b5)]());});function _0x1c3d7(_0x4bc1ea){const _0x50c808=_0x51dd62,_0x4582ec=Math[_0x50c808(0x3aa)](_0x4bc1ea/0x3e8%0x3c),_0x22029a=Math['floor'](_0x4bc1ea/(0x3e8*0x3c)%0x3c),_0x32c760=Math[_0x50c808(0x3aa)](_0x4bc1ea/(0x3e8*0x3c*0x3c)%0x18),_0xc7e236=_0x32c760<0xa?'0'+String(_0x32c760):String(_0x32c760),_0x403343=_0x22029a<0xa?'0'+String(_0x22029a):String(_0x22029a),_0x4b7206=_0x4582ec<0xa?'0'+String(_0x4582ec):String(_0x4582ec);return _0xc7e236+':'+_0x403343+':'+_0x4b7206;}function _0x58f2fd(_0x3f2380){const _0x16d86f=_0x51dd62;_0x23fd72[_0x16d86f(0x540)]=_0x3f2380||{'count':0x0,'rows':[]};}function _0x2018fd(){const _0x3e60a3=_0x51dd62;_0x23fd72[_0x3e60a3(0xae2)][_0x3e60a3(0x184b)]=(_0x23fd72['query'][_0x3e60a3(0x1c7b)]-0x1)*_0x23fd72[_0x3e60a3(0xae2)]['limit'],_0x1fe9eb[_0x3e60a3(0x22b6)](_0x3e60a3(0x1c60))?_0x23fd72[_0x3e60a3(0x2061)]=_0x369ef3[_0x3e60a3(0xd97)]['get'](_0x23fd72[_0x3e60a3(0xae2)],_0x58f2fd)[_0x3e60a3(0x1d77)]:(_0x23fd72['query']['id']=_0x23fd72[_0x3e60a3(0x44a)]['id'],_0x23fd72[_0x3e60a3(0xae2)][_0x3e60a3(0x1f74)]=_0x3e60a3(0x1a83),_0x23fd72[_0x3e60a3(0x2061)]=_0x369ef3[_0x3e60a3(0x44a)]['getResources'](_0x23fd72[_0x3e60a3(0xae2)],_0x58f2fd)['$promise']);}function _0xabd4cd(_0x1b3209,_0x528cb2){const _0x336c69=_0x51dd62;_0x2434ad[_0x336c69(0xe27)]({'controller':_0x336c69(0x14af),'controllerAs':'vm','templateUrl':_0x52b3f8,'parent':angular[_0x336c69(0x1853)](_0x324f96[_0x336c69(0x1ed9)]),'targetEvent':_0x1b3209,'clickOutsideToClose':!![],'locals':{'screenRecording':_0x528cb2,'screenRecordings':_0x23fd72[_0x336c69(0x540)][_0x336c69(0x2214)],'license':_0x23fd72[_0x336c69(0x8a5)],'setting':_0x23fd72[_0x336c69(0x9ca)],'crudPermissions':_0x23fd72['crudPermissions']}});}function _0x459763(_0x41b5e7){const _0x18145a=_0x51dd62;_0x369ef3[_0x18145a(0xd97)]['delete']({'id':_0x41b5e7['id']})[_0x18145a(0x1d77)][_0x18145a(0x1cb0)](function(){const _0x33fd22=_0x18145a;_0x39641b()['remove'](_0x23fd72['screenRecordings']['rows'],{'id':_0x41b5e7['id']}),_0x23fd72[_0x33fd22(0x540)][_0x33fd22(0x184d)]-=0x1,!_0x23fd72[_0x33fd22(0x540)][_0x33fd22(0x2214)]['length']&&_0x23fd72[_0x33fd22(0x17b5)](),_0x57dc52[_0x33fd22(0x829)]({'title':_0x39641b()[_0x33fd22(0xa75)](_0x33fd22(0xd97))+_0x33fd22(0x2663),'msg':_0x41b5e7[_0x33fd22(0x16b6)]?_0x41b5e7['name']+_0x33fd22(0x3f5):''});})[_0x18145a(0x1c4)](function(_0x113315){const _0x2aaa90=_0x18145a;if(_0x113315['data']&&_0x113315[_0x2aaa90(0x25c)][_0x2aaa90(0x1a7c)]&&_0x113315[_0x2aaa90(0x25c)]['errors'][_0x2aaa90(0xfd0)]){_0x23fd72[_0x2aaa90(0x1a7c)]=_0x113315[_0x2aaa90(0x25c)][_0x2aaa90(0x1a7c)]||[{'message':_0x113315['toString'](),'type':_0x2aaa90(0xe0a)}];for(let _0x256687=0x0;_0x256687<_0x113315[_0x2aaa90(0x25c)][_0x2aaa90(0x1a7c)][_0x2aaa90(0xfd0)];_0x256687++){_0x57dc52[_0x2aaa90(0x218e)]({'title':_0x113315[_0x2aaa90(0x25c)]['errors'][_0x256687]['type'],'msg':_0x113315[_0x2aaa90(0x25c)]['errors'][_0x256687][_0x2aaa90(0x155e)]});}}else _0x57dc52[_0x2aaa90(0x218e)]({'title':_0x113315[_0x2aaa90(0x291)]?_0x2aaa90(0xeb9)+_0x113315['status']+_0x2aaa90(0x1657)+_0x113315[_0x2aaa90(0xc22)]:_0x2aaa90(0xe0a),'msg':_0x113315[_0x2aaa90(0x25c)]?JSON[_0x2aaa90(0x2701)](_0x113315[_0x2aaa90(0x25c)][_0x2aaa90(0x155e)]):_0x113315[_0x2aaa90(0x155e)]||_0x113315[_0x2aaa90(0x147f)]()});});}function _0x5a2dbb(){const _0xd415f1=_0x51dd62,_0x12161e=angular[_0xd415f1(0x17fe)](_0x23fd72[_0xd415f1(0xadd)]);return _0x23fd72[_0xd415f1(0xadd)]=[],_0x12161e;}function _0x534917(_0x2fafb4){const _0x3ec413=_0x51dd62,_0x39ae39=_0x2434ad['confirm']()[_0x3ec413(0x1386)](_0x3ec413(0x26d8))[_0x3ec413(0x49e)](_0x3ec413(0x204d)+_0x23fd72['selectedScreenRecordings'][_0x3ec413(0xfd0)]+_0x3ec413(0x1d6c)+'\x20will\x20be\x20deleted.')[_0x3ec413(0x15ad)](_0x3ec413(0xb5f))['targetEvent'](_0x2fafb4)['ok']('OK')[_0x3ec413(0x696)](_0x3ec413(0x24ba));_0x2434ad[_0x3ec413(0xe27)](_0x39ae39)['then'](function(){const _0x5a6a55=_0x3ec413;_0x23fd72['selectedScreenRecordings'][_0x5a6a55(0xf90)](function(_0xf4e044){_0x459763(_0xf4e044);}),_0x23fd72['selectedScreenRecordings']=[];});}function _0x49f683(){const _0x15835e=_0x51dd62;_0x23fd72[_0x15835e(0xadd)]=[];}function _0x4b8eea(){const _0x280ad1=_0x51dd62;_0x23fd72[_0x280ad1(0xadd)]=_0x23fd72['screenRecordings']['rows'];}}const _0x26d7d2=_0x4afe7b;;_0x1dce25['$inject']=[_0x5537c6(0xbd6),'$translatePartialLoaderProvider'];function _0x1dce25(_0x4010f2,_0x59ea10){const _0x28b5b0=_0x5537c6;_0x4010f2[_0x28b5b0(0x27e0)](_0x28b5b0(0x1f28),{'abstract':!![],'url':_0x28b5b0(0x1335)})[_0x28b5b0(0x27e0)](_0x28b5b0(0x1339),{'url':_0x28b5b0(0x26a5),'views':{'content@app':{'templateUrl':_0x24dbe2,'controller':_0x28b5b0(0x186a)}},'resolve':{'screenRecordings':[_0x28b5b0(0x1e0b),_0x28b5b0(0x1774),_0x28b5b0(0xde8),function(_0xb773b4,_0x267f23,_0x186cae){const _0x4ea733=_0x28b5b0;return _0x267f23[_0x4ea733(0x22b6)](_0x4ea733(0x1c60))?_0xb773b4[_0x4ea733(0x19a3)]('screenRecording@get',{'fields':_0x4ea733(0x242c),'createdAt':_0x186cae[_0x4ea733(0xa1e)](),'includeAll':_0x4ea733(0x44d),'sort':_0x4ea733(0x282),'limit':0xa,'offset':0x0}):_0xb773b4[_0x4ea733(0x19a3)]('userProfile@getResources',{'id':_0x267f23[_0x4ea733(0x21e8)]()[_0x4ea733(0x13c1)],'section':_0x4ea733(0x1a83),'fields':_0x4ea733(0x242c),'createdAt':_0x186cae[_0x4ea733(0xa1e)](),'includeAll':'true','sort':_0x4ea733(0x282),'limit':0xa,'offset':0x0});}],'userProfile':[_0x28b5b0(0x1e0b),_0x28b5b0(0x1774),function(_0x4971c4,_0x4f2cdd){const _0x167e4f=_0x28b5b0;return _0x4f2cdd['hasRole'](_0x167e4f(0x1c60))?null:_0x4971c4['resolve'](_0x167e4f(0x9ae),{'fields':_0x167e4f(0x279),'id':_0x4f2cdd[_0x167e4f(0x21e8)]()[_0x167e4f(0x13c1)]});}],'userProfileSection':[_0x28b5b0(0x1e0b),_0x28b5b0(0x1774),function(_0x4f5695,_0x567f5d){const _0x29a2f3=_0x28b5b0;return _0x567f5d[_0x29a2f3(0x22b6)](_0x29a2f3(0x1c60))?null:_0x4f5695[_0x29a2f3(0x19a3)](_0x29a2f3(0x2182),{'fields':_0x29a2f3(0x1f5f),'userProfileId':_0x567f5d[_0x29a2f3(0x21e8)]()['userProfileId'],'sectionId':0x7d1});}]},'authenticate':!![],'permissionId':0x7d1,'bodyClass':'video'}),_0x59ea10[_0x28b5b0(0x4e7)](_0x28b5b0(0x1042));}angular[_0x5537c6(0x9ab)](_0x5537c6(0x1f28),[_0x5537c6(0x2770),_0x5537c6(0x2135),_0x5537c6(0x1260),_0x5537c6(0xacf),_0x5537c6(0x18f6),_0x5537c6(0xd19),_0x5537c6(0x44c),_0x5537c6(0x2ec),_0x5537c6(0x1890),'mdPickers',_0x5537c6(0x208f),_0x5537c6(0x1b65),'mwFormUtils',_0x5537c6(0x3b9),'angular-cron-jobs','ngEmbed','angularMaterialFormBuilder',_0x5537c6(0x13b6),'chart.js',_0x5537c6(0xd01)])[_0x5537c6(0xa60)](_0x1dce25)[_0x5537c6(0x6e5)](_0x5537c6(0x14af),_0x4ca68a)['controller'](_0x5537c6(0x13d9),_0x373157)['controller'](_0x5537c6(0x39d),_0x26d7d2);;const _0x605b1c=_0x5074a3['p']+_0x5537c6(0x220b);;const _0x38968c=_0x5074a3['p']+_0x5537c6(0x17ec);;const _0x1e7e06=_0x5074a3['p']+_0x5537c6(0x823);;_0x2fe6a4[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),'$q','$timeout',_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0xc34),_0x5537c6(0x8de),_0x5537c6(0xc12),_0x5537c6(0x212d),_0x5537c6(0x142b),_0x5537c6(0x1986),_0x5537c6(0x9bf),_0x5537c6(0x125c),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x1714)];function _0x2fe6a4(_0x2f824c,_0x5e1ced,_0x46ba88,_0x3eed2d,_0x4c0c60,_0x3eef8f,_0x112b85,_0x1aa823,_0xdb3b28,_0x2ce79d,_0x308527,_0x445766,_0x11101e,_0x1d602d,_0x27745f,_0x460070,_0x3ba9a8,_0x5bd506){const _0x5860cf=_0x5537c6,_0x642892=this,_0x4ab298=[_0x5860cf(0x70a),_0x5860cf(0xa28),_0x5860cf(0x24a2),'lastPauseAt',_0x5860cf(0x16e6),_0x5860cf(0x25db),_0x5860cf(0xdbd),_0x5860cf(0x16aa),_0x5860cf(0xf0c),_0x5860cf(0x1c7d),_0x5860cf(0x2035),_0x5860cf(0x22d3),'whatsappPause',_0x5860cf(0x1ce),_0x5860cf(0x2478),_0x5860cf(0x1aee),_0x5860cf(0x391),_0x5860cf(0x2789),_0x5860cf(0x3d0),_0x5860cf(0x9cd),_0x5860cf(0x2451),_0x5860cf(0x132d),_0x5860cf(0x1cd3),_0x5860cf(0x2947),_0x5860cf(0x2472),'whatsappCurrentCapacity',_0x5860cf(0x2336),_0x5860cf(0x2208),'openchannelStatus',_0x5860cf(0x11b2),_0x5860cf(0xe82),_0x5860cf(0x2453),'faxStatus','voiceStatus',_0x5860cf(0x1b11),'openchannelStatusTime',_0x5860cf(0x568),_0x5860cf(0x9eb),'whatsappStatusTime',_0x5860cf(0x1997),_0x5860cf(0xc9c),_0x5860cf(0x11cf),_0x5860cf(0x247),_0x5860cf(0x24c5),_0x5860cf(0x2569),_0x5860cf(0x1f23)],_0x2ee724=[_0x5860cf(0xf0c),_0x5860cf(0x1c7d),_0x5860cf(0x2035),_0x5860cf(0x22d3),_0x5860cf(0x24ff),_0x5860cf(0x1ce),_0x5860cf(0x2478),_0x5860cf(0xa28)];_0x642892['currentUser']=_0x460070[_0x5860cf(0x21e8)](),_0x642892[_0x5860cf(0x46c)]=[_0x5860cf(0x1c7e),_0x5860cf(0x8d2),_0x5860cf(0x5b2),_0x5860cf(0x1e6f),_0x5860cf(0x1abd)],_0x642892[_0x5860cf(0x8de)]=_0x112b85||{'count':0x0,'rows':[]},_0x642892[_0x5860cf(0x8a5)]=_0x3ba9a8,_0x642892[_0x5860cf(0x44a)]=_0x1d602d,_0x642892[_0x5860cf(0x2199)]=_0x27745f&&_0x27745f[_0x5860cf(0x184d)]==0x1?_0x27745f[_0x5860cf(0x2214)][0x0]:null,_0x642892['crudPermissions']=_0x460070[_0x5860cf(0x14ea)](_0x642892['userProfileSection']?_0x642892[_0x5860cf(0x2199)]['crudPermissions']:null),_0x642892[_0x5860cf(0xc12)]=_0x1aa823?_0x39641b()[_0x5860cf(0x2631)](_0x1aa823[_0x5860cf(0x2214)]?_0x1aa823[_0x5860cf(0x2214)]:[],'id'):{},_0x642892[_0x5860cf(0x212d)]=_0xdb3b28?_0x39641b()[_0x5860cf(0x2631)](_0xdb3b28[_0x5860cf(0x2214)]?_0xdb3b28[_0x5860cf(0x2214)]:[],'id'):{},_0x642892[_0x5860cf(0x260a)]={},_0x642892[_0x5860cf(0x997)]=![],_0x642892[_0x5860cf(0x237f)]=[],_0x642892['agentInternal']={};for(const _0x25eda6 in _0x642892[_0x5860cf(0xc12)]){typeof _0x642892[_0x5860cf(0xc12)][_0x25eda6]!==_0x5860cf(0x16b5)&&(_0x642892[_0x5860cf(0xc12)][_0x25eda6][_0x5860cf(0x1a8e)]=!![]);}_0x642892['query']={'limit':0xa,'page':0x1,'order':_0x5860cf(0x1d14),'globalStatusFilter':'','pauseTypeFilter':''},_0x642892[_0x5860cf(0x1366)]=_0x2822ee,_0x642892[_0x5860cf(0x6ad)]=_0x3bce4c,_0x642892['pause']=_0x27b897,_0x642892[_0x5860cf(0x715)]=_0x5d18e8,_0x642892['showInfo']=_0x2e455e,_0x642892[_0x5860cf(0x616)]=_0x165597,_0x642892[_0x5860cf(0xfe7)]=_0xae4448,_0x642892[_0x5860cf(0x1090)]=_0x4898e1,_0x642892[_0x5860cf(0x225e)]=_0x2bf01b,_0x642892[_0x5860cf(0x1bc4)]=_0x356396,_0x642892['onSave']=_0xe4c04a,_0x642892[_0x5860cf(0x13e7)]=_0x15a85b,_0x642892[_0x5860cf(0x1a34)]=_0x39aa49,_0x642892[_0x5860cf(0x1978)]=_0x564c4b,_0x642892['onComplete']=_0x76582e,_0x642892[_0x5860cf(0xd97)]=_0x259fc3,_0x308527['on'](_0x5860cf(0x2464),_0x642892['onSave']),_0x308527['on'](_0x5860cf(0x14c6),_0x642892[_0x5860cf(0x13e7)]),_0x308527['on'](_0x5860cf(0x2290),_0x642892[_0x5860cf(0x1978)]),_0x308527['on']('user:agentcomplete',_0x642892[_0x5860cf(0x1b4a)]),_0x39aa49();let _0x48b381=_0x5bd506(function(){const _0x3545fc=_0x5860cf;_0x642892['load']&&(_0x642892[_0x3545fc(0x997)]=![],_0x39aa49());},0x3e7);function _0x39aa49(){const _0x1c3879=_0x5860cf;_0x642892['load']=![];const _0xdf3adf=_0x5e1ced[_0x1c3879(0x11f4)]();_0x642892[_0x1c3879(0x2061)]=_0xdf3adf[_0x1c3879(0x2061)],_0x642892[_0x1c3879(0xe0e)]=[],_0x642892['order']=[],_0x39641b()[_0x1c3879(0x1ebd)](_0x642892['agents'],function(_0x47c8a7,_0x10f6a1){const _0x1f4f7f=_0x1c3879;_0x642892[_0x1f4f7f(0x212d)][_0x10f6a1]&&_0x39641b()[_0x1f4f7f(0x9c1)](_0x47c8a7,_0x39641b()[_0x1f4f7f(0x169b)](_0x39641b()['omit'](_0x642892[_0x1f4f7f(0x212d)][_0x10f6a1],_0x2ee724),_0x4ab298)),_0xae4448(_0x47c8a7),_0x47c8a7['online']?(_0x642892[_0x1f4f7f(0xe0e)][_0x1f4f7f(0x2785)](_0x47c8a7),_0x642892['agentInternal'][_0x47c8a7[_0x1f4f7f(0xdbd)]]=_0x10f6a1):_0x47c8a7[_0x1f4f7f(0xdb9)]=_0x39641b()['toNumber'](_0x543b5a()()[_0x1f4f7f(0x1f31)]('x'));});_0x642892[_0x1c3879(0xae2)][_0x1c3879(0x1ef1)]&&_0x39641b()[_0x1c3879(0x152a)](_0x642892[_0x1c3879(0xe0e)],function(_0x248c0d){const _0xaeb309=_0x1c3879;return _0x248c0d[_0xaeb309(0x1fbe)]!==_0x642892[_0xaeb309(0xae2)][_0xaeb309(0x1ef1)];});_0x642892[_0x1c3879(0xae2)][_0x1c3879(0x25ff)]&&_0x39641b()[_0x1c3879(0x152a)](_0x642892['filteredAgents'],function(_0x4653fc){const _0x3558af=_0x1c3879;return _0x4653fc[_0x3558af(0x16e6)]!==_0x642892[_0x3558af(0xae2)]['pauseTypeFilter'];});_0x642892[_0x1c3879(0xae2)][_0x1c3879(0x1c99)]&&_0x39641b()['remove'](_0x642892[_0x1c3879(0xe0e)],function(_0x1dc0ac){const _0x23514e=_0x1c3879;return _0x1dc0ac[_0x23514e(0x1d14)][_0x23514e(0x1680)]()[_0x23514e(0xd8a)](_0x642892[_0x23514e(0xae2)][_0x23514e(0x1c99)]['toLowerCase']())<0x0;});_0x642892['filteredAgents']=_0x129547(_0x642892['filteredAgents']);const _0x166d64=(_0x642892[_0x1c3879(0xae2)]['page']-0x1)*_0x642892[_0x1c3879(0xae2)][_0x1c3879(0x236)];_0x642892[_0x1c3879(0x260a)]=_0x39641b()['drop'](_0x642892[_0x1c3879(0xe0e)],_0x166d64)['slice'](0x0,_0x642892[_0x1c3879(0xae2)][_0x1c3879(0x236)]);for(let _0x139f38=0x0;_0x139f38<_0x642892['paginatedAgents']['length'];_0x139f38+=0x1){_0x642892[_0x1c3879(0x237f)]['push'](_0x642892[_0x1c3879(0x260a)][_0x139f38]['id']);}_0xdf3adf[_0x1c3879(0x19a3)](),_0x642892[_0x1c3879(0x997)]=!![];}function _0xe4c04a(_0x19c683){const _0x3df1a6=_0x5860cf;_0x642892[_0x3df1a6(0xc12)][_0x19c683['id']]&&(_0x39641b()[_0x3df1a6(0x9c1)](_0x642892['agents'][_0x19c683['id']],_0x39641b()['pick'](_0x39641b()[_0x3df1a6(0x1bd8)](_0x19c683,_0x2ee724),_0x4ab298)),_0x39641b()[_0x3df1a6(0x9c1)](_0x642892[_0x3df1a6(0x212d)][_0x19c683['id']],_0x39641b()['pick'](_0x39641b()[_0x3df1a6(0x1bd8)](_0x19c683,_0x2ee724),_0x4ab298)),_0xae4448(_0x642892[_0x3df1a6(0xc12)][_0x19c683['id']]));}function _0x15a85b(_0x397c03){const _0x23f53f=_0x5860cf;_0x642892[_0x23f53f(0xc12)][_0x397c03['id']]&&(_0x39641b()['merge'](_0x642892[_0x23f53f(0xc12)][_0x397c03['id']],_0x39641b()['pick'](_0x397c03,_0x4ab298)),_0x39641b()[_0x23f53f(0x9c1)](_0x642892[_0x23f53f(0x212d)][_0x397c03['id']],_0x39641b()[_0x23f53f(0x169b)](_0x397c03,_0x4ab298)),_0x397c03['lastPauseAt']&&(_0x642892[_0x23f53f(0xc12)][_0x397c03['id']]['globalStatusTime']=_0x397c03[_0x23f53f(0x25db)],_0x642892['rpcAgents'][_0x397c03['id']][_0x23f53f(0xdb9)]=_0x397c03[_0x23f53f(0x25db)]),_0xae4448(_0x642892[_0x23f53f(0xc12)][_0x397c03['id']]));}function _0x564c4b(_0x4d5728){const _0x3f4510=_0x5860cf;_0x642892['agents'][_0x642892['agentInternal'][_0x4d5728[_0x3f4510(0x7ea)]]]&&(_0x39641b()[_0x3f4510(0x9c1)](_0x642892[_0x3f4510(0xc12)][_0x642892[_0x3f4510(0x1fdd)][_0x4d5728[_0x3f4510(0x7ea)]]],_0x39641b()['pick'](_0x4d5728,[_0x3f4510(0x11cf),_0x3f4510(0x247)])),_0x39641b()[_0x3f4510(0x9c1)](_0x642892[_0x3f4510(0x212d)][_0x642892['agentInternal'][_0x4d5728[_0x3f4510(0x7ea)]]],_0x39641b()[_0x3f4510(0x169b)](_0x4d5728,['queue',_0x3f4510(0x247)])));}function _0x76582e(_0x5281b9){const _0x3f0ff2=_0x5860cf;_0x642892[_0x3f0ff2(0xc12)][_0x642892[_0x3f0ff2(0x1fdd)][_0x5281b9[_0x3f0ff2(0x7ea)]]]&&(_0x642892[_0x3f0ff2(0xc12)][_0x642892[_0x3f0ff2(0x1fdd)][_0x5281b9[_0x3f0ff2(0x7ea)]]]=_0x39641b()['omit'](_0x642892[_0x3f0ff2(0xc12)][_0x642892[_0x3f0ff2(0x1fdd)][_0x5281b9[_0x3f0ff2(0x7ea)]]],[_0x3f0ff2(0x11cf),_0x3f0ff2(0x247)]),_0x642892[_0x3f0ff2(0x212d)][_0x642892[_0x3f0ff2(0x1fdd)][_0x5281b9['destaccountcode']]]=_0x39641b()[_0x3f0ff2(0x1bd8)](_0x642892[_0x3f0ff2(0x212d)][_0x642892[_0x3f0ff2(0x1fdd)][_0x5281b9[_0x3f0ff2(0x7ea)]]],[_0x3f0ff2(0x11cf),_0x3f0ff2(0x247)]));}function _0x2822ee(_0xa95999){const _0x32c0bb=_0x5860cf;return _0x2ce79d[_0x32c0bb(0xebe)][_0x32c0bb(0x1366)]({'id':_0xa95999['id'],'device':_0x32c0bb(0x217b),'agent_id':_0xa95999['id'],'agent_name':_0xa95999['name']})[_0x32c0bb(0x1d77)]['then'](function(){const _0x591a73=_0x32c0bb;_0x445766[_0x591a73(0x829)]({'title':_0x591a73(0x23af),'msg':_0xa95999[_0x591a73(0x1d14)]+_0x591a73(0x1540)}),_0x642892[_0x591a73(0xc12)][_0xa95999['id']]&&(_0x642892['agents'][_0xa95999['id']]['online']=![]),_0x642892[_0x591a73(0x212d)][_0xa95999['id']]&&(_0x642892[_0x591a73(0x212d)][_0xa95999['id']][_0x591a73(0xa28)]=![]),_0x39aa49();})[_0x32c0bb(0x1c4)](function(_0x3a62be){const _0x1ed698=_0x32c0bb;_0x445766[_0x1ed698(0x218e)]({'title':_0x3a62be[_0x1ed698(0x291)]?'API:'+_0x3a62be[_0x1ed698(0x291)]+_0x1ed698(0x1657)+_0x3a62be[_0x1ed698(0xc22)]:_0x1ed698(0xcd6),'msg':_0x3a62be[_0x1ed698(0x25c)]?JSON[_0x1ed698(0x2701)](_0x3a62be['data'][_0x1ed698(0x155e)]):_0x3a62be[_0x1ed698(0x147f)]()});});}function _0x27b897(_0x7f058d,_0x102f7b){const _0x20b821=_0x5860cf;return _0x2ce79d[_0x20b821(0xebe)][_0x20b821(0x785)]({'id':_0x7f058d['id'],'type':_0x102f7b})['$promise'][_0x20b821(0x1cb0)](function(_0xe25206){const _0x5ed808=_0x20b821;_0x642892[_0x5ed808(0xc12)][_0x7f058d['id']]&&_0x39641b()[_0x5ed808(0x9c1)](_0x642892[_0x5ed808(0xc12)][_0x7f058d['id']],_0x39641b()['pick'](_0xe25206,_0x4ab298)),_0x642892[_0x5ed808(0x212d)][_0x7f058d['id']]&&_0x39641b()['merge'](_0x642892[_0x5ed808(0x212d)][_0x7f058d['id']],_0x39641b()[_0x5ed808(0x169b)](_0xe25206,_0x4ab298)),_0xae4448(_0x642892[_0x5ed808(0xc12)][_0x7f058d['id']]);})[_0x20b821(0x1c4)](function(_0x915017){const _0x2fa7fa=_0x20b821;_0x445766[_0x2fa7fa(0x218e)]({'title':_0x915017[_0x2fa7fa(0x291)]?'API:'+_0x915017[_0x2fa7fa(0x291)]+_0x2fa7fa(0x1657)+_0x915017['statusText']:_0x2fa7fa(0xcd6),'msg':_0x915017[_0x2fa7fa(0x25c)]?JSON[_0x2fa7fa(0x2701)](_0x915017[_0x2fa7fa(0x25c)][_0x2fa7fa(0x155e)]):_0x915017[_0x2fa7fa(0x147f)]()});});}function _0x5d18e8(_0x1b8f54){const _0x39d1b4=_0x5860cf;return _0x2ce79d[_0x39d1b4(0xebe)]['unpause']({'id':_0x1b8f54['id']})[_0x39d1b4(0x1d77)][_0x39d1b4(0x1cb0)](function(_0x2d2e1c){const _0x496eb7=_0x39d1b4;_0x642892[_0x496eb7(0xc12)][_0x1b8f54['id']]&&_0x39641b()[_0x496eb7(0x9c1)](_0x642892[_0x496eb7(0xc12)][_0x1b8f54['id']],_0x39641b()[_0x496eb7(0x169b)](_0x2d2e1c,_0x4ab298)),_0x642892[_0x496eb7(0x212d)][_0x1b8f54['id']]&&_0x39641b()[_0x496eb7(0x9c1)](_0x642892[_0x496eb7(0x212d)][_0x1b8f54['id']],_0x39641b()[_0x496eb7(0x169b)](_0x2d2e1c,_0x4ab298)),_0xae4448(_0x642892[_0x496eb7(0xc12)][_0x1b8f54['id']]);})[_0x39d1b4(0x1c4)](function(_0x11ca23){const _0x1cc1c1=_0x39d1b4;_0x445766[_0x1cc1c1(0x218e)]({'title':_0x11ca23[_0x1cc1c1(0x291)]?'API:'+_0x11ca23['status']+_0x1cc1c1(0x1657)+_0x11ca23[_0x1cc1c1(0xc22)]:_0x1cc1c1(0xcd6),'msg':_0x11ca23['data']?JSON[_0x1cc1c1(0x2701)](_0x11ca23['data'][_0x1cc1c1(0x155e)]):_0x11ca23[_0x1cc1c1(0x147f)]()});});}function _0x2e455e(_0x3a3054){const _0x2131af=_0x5860cf;_0x3eed2d['show'](_0x3eed2d[_0x2131af(0x494)]()[_0x2131af(0x27e1)](!![])[_0x2131af(0x1386)]('Legend')['htmlContent'](_0x2131af(0x26a))['ok']('Ok')[_0x2131af(0x728)](_0x3a3054));}function _0x3bce4c(_0x2aaac6,_0x22da46){const _0x4b0285=_0x5860cf;_0x3eed2d['show']({'controller':_0x4b0285(0x7e6),'controllerAs':'vm','templateUrl':_0x535a6f,'parent':angular[_0x4b0285(0x1853)](_0x4c0c60['body']),'targetEvent':_0x22da46,'clickOutsideToClose':!![],'locals':{'agent':_0x2aaac6,'agents':[],'channel':_0x4b0285(0x2476),'direction':_0x4b0285(0x26c0),'crudPermissions':_0x642892[_0x4b0285(0x1b1a)]}});}function _0x4898e1(_0x5db3ba){const _0x267c16=_0x5860cf;return _0x5db3ba===_0x267c16(0x785)||_0x5db3ba===_0x267c16(0x1767);}function _0x2bf01b(_0x3d9ba3){const _0x303f8b=_0x5860cf;return _0x3d9ba3===_0x303f8b(0x785);}function _0x356396(_0x406fd6){return _0x406fd6==='*pause';}function _0x50437d(_0xd4241c){const _0x1287c7=_0x5860cf;return _0xd4241c===_0x1287c7(0x8df)||_0xd4241c===_0x1287c7(0x1c9d)||_0xd4241c===_0x1287c7(0x13a2)||_0xd4241c===_0x1287c7(0x1c7e)||_0x39641b()[_0x1287c7(0x958)](_0xd4241c);}function _0x165597(_0x3106fd,_0x1b3102){const _0xbfbcc7=_0x5860cf;if(_0x1b3102===_0xbfbcc7(0x1fd4)){if(_0x3106fd[_0x1b3102+_0xbfbcc7(0x938)]!==_0xbfbcc7(0x8df))return _0x3106fd[_0x1b3102+'Status'];if(_0x3106fd[_0x1b3102+_0xbfbcc7(0x1e09)])return _0x3106fd[_0x1b3102+_0xbfbcc7(0x938)]=_0xbfbcc7(0x785),_0xbfbcc7(0x785);return _0xbfbcc7(0x8df);}else{if(_0x3106fd[_0x1b3102+_0xbfbcc7(0x1e09)])return _0x3106fd[_0x1b3102+'Status']=_0xbfbcc7(0x785),'pause';return _0x3106fd[_0x1b3102+_0xbfbcc7(0x938)];}}function _0xae4448(_0x5f44c1){const _0x2be5a0=_0x5860cf;let _0xd47d9e=_0x2be5a0(0x1c9d);if(_0x39641b()[_0x2be5a0(0x1aa3)]([_0x165597(_0x5f44c1,_0x2be5a0(0x1fd4)),_0x165597(_0x5f44c1,_0x2be5a0(0x174c)),_0x165597(_0x5f44c1,_0x2be5a0(0x2651)),_0x165597(_0x5f44c1,_0x2be5a0(0x15e0)),_0x165597(_0x5f44c1,_0x2be5a0(0x689)),_0x165597(_0x5f44c1,'whatsapp'),_0x165597(_0x5f44c1,'fax')],_0x4898e1))_0xd47d9e=_0x2be5a0(0x785);else{if(_0x39641b()[_0x2be5a0(0x727)]([_0x165597(_0x5f44c1,'voice'),_0x165597(_0x5f44c1,'chat'),_0x165597(_0x5f44c1,_0x2be5a0(0x2651)),_0x165597(_0x5f44c1,_0x2be5a0(0x15e0)),_0x165597(_0x5f44c1,_0x2be5a0(0x689)),_0x165597(_0x5f44c1,_0x2be5a0(0x2476)),_0x165597(_0x5f44c1,_0x2be5a0(0x1944))],_0x4898e1))_0xd47d9e=_0x2be5a0(0x1767);else _0x39641b()['every']([_0x165597(_0x5f44c1,_0x2be5a0(0x1fd4)),_0x165597(_0x5f44c1,'chat'),_0x165597(_0x5f44c1,'mail'),_0x165597(_0x5f44c1,_0x2be5a0(0x15e0)),_0x165597(_0x5f44c1,'sms'),_0x165597(_0x5f44c1,_0x2be5a0(0x2476)),_0x165597(_0x5f44c1,_0x2be5a0(0x1944))],_0x50437d)?_0xd47d9e=_0x2be5a0(0x8df):_0xd47d9e=_0x2be5a0(0x5b2);}_0x5f44c1[_0x2be5a0(0x1fbe)]!==_0xd47d9e&&(_0x5f44c1[_0x2be5a0(0x1fbe)]=_0xd47d9e,_0x5f44c1[_0x2be5a0(0x1a8e)]?(_0x5f44c1[_0x2be5a0(0x1a8e)]=![],_0x5f44c1[_0x2be5a0(0xdb9)]=_0x4898e1(_0xd47d9e)?_0x39641b()[_0x2be5a0(0x106d)](_0x543b5a()(_0x5f44c1['lastPauseAt'])[_0x2be5a0(0x1f31)]('x')):_0x39641b()[_0x2be5a0(0xb33)]([_0x5f44c1[_0x2be5a0(0xc9c)],_0x5f44c1['chatStatusTime'],_0x5f44c1[_0x2be5a0(0x568)],_0x5f44c1[_0x2be5a0(0x9eb)],_0x5f44c1[_0x2be5a0(0x2064)],_0x5f44c1[_0x2be5a0(0x22a6)],_0x5f44c1[_0x2be5a0(0x1997)]])):_0x5f44c1[_0x2be5a0(0xdb9)]=_0x39641b()['toNumber'](_0x543b5a()()[_0x2be5a0(0x1f31)]('x')));}function _0x129547(_0x855608){const _0x41c441=_0x5860cf,_0x30404f=_0x39641b()[_0x41c441(0x1f2c)](_0x642892[_0x41c441(0xae2)][_0x41c441(0x237f)],'-')?_0x41c441(0x20a5):_0x41c441(0x24cc);return _0x39641b()[_0x41c441(0x17ca)](_0x855608,[_0x642892[_0x41c441(0xae2)][_0x41c441(0x237f)]['replace']('-','')],[_0x30404f]);}function _0x263d24(){_0x48b381&&(_0x5bd506['cancel'](_0x48b381),_0x48b381=null);}function _0x259fc3(_0x521a74,_0x2664d8){const _0x567b3e=_0x5860cf;return _0x2ce79d[_0x567b3e(0xebe)][_0x567b3e(0x687)]({'id':_0x521a74['id']},{'screenrecording':_0x2664d8})[_0x567b3e(0x1d77)][_0x567b3e(0x1c4)](function(_0x24ca71){const _0x2d54cf=_0x567b3e;_0x445766['error']({'title':_0x24ca71[_0x2d54cf(0x291)]?_0x2d54cf(0xeb9)+_0x24ca71[_0x2d54cf(0x291)]+_0x2d54cf(0x1657)+_0x24ca71[_0x2d54cf(0xc22)]:_0x2d54cf(0x498),'msg':_0x24ca71[_0x2d54cf(0x25c)]?JSON[_0x2d54cf(0x2701)](_0x24ca71[_0x2d54cf(0x25c)][_0x2d54cf(0x155e)]):_0x24ca71['toString']()});});}_0x2f824c[_0x5860cf(0x1d6)](_0x5860cf(0x291c),function(){const _0x353893=_0x5860cf;_0x308527[_0x353893(0xfb8)](_0x353893(0x2464)),_0x308527[_0x353893(0xfb8)](_0x353893(0x14c6)),_0x308527['removeAllListeners'](_0x353893(0x2290)),_0x308527[_0x353893(0xfb8)]('user:agentcomplete'),_0x263d24();});}const _0x5d51d1=_0x2fe6a4;;const _0x1f8bbb=_0x5074a3['p']+_0x5537c6(0x1981);;const _0x40a20c=_0x5074a3['p']+_0x5537c6(0x1938);;_0x1717b9[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x2168),_0x5537c6(0xcb9),'$q',_0x5537c6(0x22bf),_0x5537c6(0x1714),_0x5537c6(0x971),_0x5537c6(0x2255),_0x5537c6(0x142b),_0x5537c6(0x1986),_0x5537c6(0x9bf),_0x5537c6(0x44a),_0x5537c6(0x2199),'Auth'];function _0x1717b9(_0x14f46c,_0x308ac8,_0x1ececc,_0x539957,_0x266e70,_0x33fc7d,_0x6c8558,_0x47ae73,_0x50f3e3,_0x2ef734,_0x489cb7,_0x2fa473,_0x3acee7,_0x366375){const _0x30f48e=_0x5537c6,_0x109983=this,_0x22bd37=['loggedIn',_0x30f48e(0x2803),_0x30f48e(0x26b6),'talking',_0x30f48e(0xfb2),_0x30f48e(0x2315),_0x30f48e(0x155e),_0x30f48e(0x737),_0x30f48e(0xda8),_0x30f48e(0xf67),_0x30f48e(0x139c)];_0x109983[_0x30f48e(0xe76)]=_0x366375['getCurrentUser'](),_0x109983[_0x30f48e(0x184d)]=_0x6c8558[_0x30f48e(0x184d)]?_0x6c8558[_0x30f48e(0x184d)]:0x0,_0x109983[_0x30f48e(0x971)]=_0x6c8558?_0x39641b()[_0x30f48e(0x2631)](_0x6c8558[_0x30f48e(0x2214)]?_0x6c8558['rows']:[],'id'):{},_0x109983[_0x30f48e(0x2255)]=_0x47ae73?_0x39641b()[_0x30f48e(0x2631)](_0x47ae73[_0x30f48e(0x2214)]?_0x47ae73[_0x30f48e(0x2214)]:[],'id'):{},_0x109983['userProfile']=_0x2fa473,_0x109983[_0x30f48e(0x2199)]=_0x3acee7&&_0x3acee7['count']==0x1?_0x3acee7[_0x30f48e(0x2214)][0x0]:null,_0x109983['crudPermissions']=_0x366375[_0x30f48e(0x14ea)](_0x109983[_0x30f48e(0x2199)]?_0x109983[_0x30f48e(0x2199)][_0x30f48e(0x1b1a)]:null);_0x366375[_0x30f48e(0x22b6)](_0x30f48e(0x1c60))?_0x109983[_0x30f48e(0xae2)]={'type':_0x30f48e(0x26c0),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x109983[_0x30f48e(0xae2)]={'id':_0x109983[_0x30f48e(0xe76)]['id'],'channel':_0x30f48e(0x2476),'type':'inbound','sort':_0x30f48e(0x282),'limit':0xa,'page':0x1};_0x109983[_0x30f48e(0x829)]=_0x3038b2,_0x109983[_0x30f48e(0x13e9)]=_0xb1f543,_0x109983['createOrEditWhatsappQueue']=_0x3226e9,_0x109983[_0x30f48e(0x1be7)]=_0x3ffd48,_0x109983[_0x30f48e(0x25f6)]=_0x8c7478,_0x109983[_0x30f48e(0x294c)]=_0x1571dc,_0x109983[_0x30f48e(0xc88)]=_0x53b3d3,_0x109983[_0x30f48e(0x365)]=_0x1a0588,_0x109983[_0x30f48e(0x18e4)]=_0xcbc539,_0x109983['onLogin']=_0x33f8ff,_0x109983['onLogout']=_0x405c22,_0x109983['$onInit']=_0x513cc4,_0x109983[_0x30f48e(0x237f)]=[],_0x39641b()[_0x30f48e(0x1ebd)](_0x109983[_0x30f48e(0x971)],function(_0xea1031){const _0x3ce844=_0x30f48e;_0x109983[_0x3ce844(0x237f)][_0x3ce844(0x2785)](_0xea1031['id']);}),_0x2ef734['on'](_0x30f48e(0x2682),_0x109983[_0x30f48e(0x294c)]),_0x2ef734['on']('userWhatsappQueue:save',_0x109983['onSaveMember']),_0x2ef734['on'](_0x30f48e(0x924),_0x109983['onRemoveMember']),_0x2ef734['on'](_0x30f48e(0x14c6),_0x109983['onPause']),_0x2ef734['on']('userVoiceQueue:remove',_0x109983[_0x30f48e(0x3be)]),_0x2ef734['on'](_0x30f48e(0x828),_0x109983[_0x30f48e(0x26c9)]);function _0x513cc4(){const _0xc365f3=_0x30f48e,_0x3a789c=[];return _0x39641b()['forIn'](_0x109983[_0xc365f3(0x971)],function(_0x59f6e8,_0xea724e){const _0x54b65c=_0xc365f3;_0x59f6e8['paused']=0x0,_0x59f6e8[_0x54b65c(0x29a2)]=0x0,_0x109983[_0x54b65c(0x971)][_0xea724e][_0x54b65c(0xc12)]={},_0x3a789c[_0x54b65c(0x2785)](_0x50f3e3[_0x54b65c(0xea8)][_0x54b65c(0x11dd)]({'id':_0xea724e})['$promise']),_0x109983['rpcQueues'][_0xea724e]&&_0x39641b()[_0x54b65c(0x9c1)](_0x59f6e8,_0x39641b()['pick'](_0x109983['rpcQueues'][_0xea724e],_0x22bd37));}),_0x539957[_0xc365f3(0x223b)](_0x3a789c)[_0xc365f3(0x1cb0)](function(_0x35da3d){const _0x565908=_0xc365f3;for(let _0x59ade7=0x0;_0x59ade7<_0x35da3d[_0x565908(0xfd0)];_0x59ade7+=0x1){for(let _0x23705c=0x0;_0x23705c<_0x35da3d[_0x59ade7][_0x565908(0x2214)][_0x565908(0xfd0)];_0x23705c++){_0x35da3d[_0x59ade7][_0x565908(0x2214)][_0x23705c][_0x565908(0x139c)]&&_0x109983['queues'][_0x35da3d[_0x59ade7]['rows'][_0x23705c]['WhatsappQueueId']][_0x565908(0x139c)]++,_0x109983[_0x565908(0x971)][_0x35da3d[_0x59ade7][_0x565908(0x2214)][_0x23705c]['WhatsappQueueId']][_0x565908(0x29a2)]++,_0x109983['queues'][_0x35da3d[_0x59ade7][_0x565908(0x2214)][_0x23705c][_0x565908(0x4f2)]][_0x565908(0xc12)][_0x35da3d[_0x59ade7][_0x565908(0x2214)][_0x23705c]['UserId']]=_0x35da3d[_0x59ade7][_0x565908(0x2214)][_0x23705c]['WhatsappQueueId'];}}})[_0xc365f3(0x1c4)](function(_0x51fe57){const _0xe6bb57=_0xc365f3;console[_0xe6bb57(0x218e)](_0x51fe57);});}function _0x1571dc(_0x5e6722){const _0x541742=_0x30f48e;_0x109983['queues'][_0x5e6722['id']]&&_0x39641b()[_0x541742(0x9c1)](_0x109983[_0x541742(0x971)][_0x5e6722['id']],_0x39641b()['pick'](_0x5e6722,_0x22bd37));}function _0x53b3d3(_0x373348){const _0x5ab474=_0x30f48e;_0x109983[_0x5ab474(0x971)][_0x373348[_0x5ab474(0x4f2)]]&&_0x109983[_0x5ab474(0x971)][_0x373348[_0x5ab474(0x4f2)]][_0x5ab474(0x29a2)]++;}function _0x1a0588(_0x42be2a){const _0x209919=_0x30f48e;_0x109983['queues'][_0x42be2a[_0x209919(0x4f2)]]&&_0x109983[_0x209919(0x971)][_0x42be2a[_0x209919(0x4f2)]]['loggedInDb']--;}function _0xcbc539(_0x4973fb){const _0x390016=_0x30f48e;console['log'](_0x390016(0x18e4),_0x4973fb);if(_0x4973fb[_0x390016(0x2478)])_0x39641b()[_0x390016(0x1ebd)](_0x109983[_0x390016(0x971)],function(_0x29deb7){const _0x5e189f=_0x390016;_0x29deb7['agents'][_0x4973fb['id']]&&(_0x29deb7[_0x5e189f(0x139c)]+=0x1,console[_0x5e189f(0x1b4f)](_0x5e189f(0x785)));});else!_0x4973fb[_0x390016(0x2478)]&&_0x39641b()[_0x390016(0x1ebd)](_0x109983[_0x390016(0x971)],function(_0x18083d){const _0x1284e1=_0x390016;_0x18083d['agents'][_0x4973fb['id']]&&(_0x18083d[_0x1284e1(0x139c)]>0x0&&(_0x18083d['paused']-=0x1,console['log']('unpause')));});}function _0x33f8ff(_0x24239d){const _0x3a9a01=_0x30f48e;console['log']('onLogged',_0x24239d),_0x109983['queues'][_0x24239d[_0x3a9a01(0x4f2)]]&&(_0x109983[_0x3a9a01(0x971)][_0x24239d[_0x3a9a01(0x4f2)]][_0x3a9a01(0x29a2)]+=0x1,_0x109983['queues'][_0x24239d[_0x3a9a01(0x4f2)]][_0x3a9a01(0xc12)][_0x24239d[_0x3a9a01(0x21ab)]]=_0x24239d[_0x3a9a01(0x4f2)]);}function _0x405c22(_0x8f9993){const _0x335cad=_0x30f48e;console['log'](_0x335cad(0x3be),_0x8f9993),_0x109983['queues'][_0x8f9993[_0x335cad(0x4f2)]]&&_0x109983[_0x335cad(0x971)][_0x8f9993['WhatsappQueueId']][_0x335cad(0x29a2)]>0x0&&(_0x109983[_0x335cad(0x971)][_0x8f9993[_0x335cad(0x4f2)]][_0x335cad(0x29a2)]-=0x1,delete _0x109983[_0x335cad(0x971)][_0x8f9993['WhatsappQueueId']][_0x335cad(0xc12)][_0x8f9993[_0x335cad(0x21ab)]]);}let _0xea49d6=!![],_0x3a9495=0x1;_0x14f46c['$watch'](_0x30f48e(0x957),function(_0xf2fcc9,_0x4c1f2c){const _0x1a7507=_0x30f48e;_0xea49d6?_0x308ac8(function(){_0xea49d6=![];}):(!_0x4c1f2c&&(_0x3a9495=_0x109983['query'][_0x1a7507(0x1c7b)]),_0xf2fcc9!==_0x4c1f2c&&(_0x109983[_0x1a7507(0xae2)][_0x1a7507(0x1c7b)]=0x1),!_0xf2fcc9&&(_0x109983[_0x1a7507(0xae2)][_0x1a7507(0x1c7b)]=_0x3a9495),_0x109983[_0x1a7507(0x13e9)]());});function _0x3038b2(_0x97e5c1){const _0x137a45=_0x30f48e;_0x109983['count']=_0x97e5c1[_0x137a45(0x184d)],_0x109983['queues']=_0x97e5c1?_0x39641b()['keyBy'](_0x97e5c1[_0x137a45(0x2214)]?_0x97e5c1['rows']:[],'id'):{};if(_0x97e5c1[_0x137a45(0x2214)]){_0x109983[_0x137a45(0x237f)]=[];for(let _0x2f95f6=0x0;_0x2f95f6<_0x97e5c1[_0x137a45(0x2214)][_0x137a45(0xfd0)];_0x2f95f6++){_0x109983[_0x137a45(0x237f)]['push'](_0x97e5c1[_0x137a45(0x2214)][_0x2f95f6]['id']);}}_0x513cc4();}function _0xb1f543(){const _0x27810d=_0x30f48e;_0x109983[_0x27810d(0xae2)]['offset']=(_0x109983['query'][_0x27810d(0x1c7b)]-0x1)*_0x109983['query'][_0x27810d(0x236)],_0x366375['hasRole'](_0x27810d(0x1c60))?_0x109983[_0x27810d(0x2061)]=_0x50f3e3['whatsappQueue'][_0x27810d(0xbf7)](_0x109983['query'],_0x3038b2)[_0x27810d(0x1d77)]:(_0x109983[_0x27810d(0xae2)]['id']=_0x109983['userProfile']['id'],_0x109983[_0x27810d(0xae2)]['section']=_0x27810d(0x2962),_0x109983[_0x27810d(0x2061)]=_0x50f3e3[_0x27810d(0x44a)][_0x27810d(0x1810)](_0x109983[_0x27810d(0xae2)],_0x3038b2)[_0x27810d(0x1d77)]);}function _0x3226e9(_0x129445,_0x134bcb){const _0x54f539=_0x30f48e;_0x1ececc[_0x54f539(0xe27)]({'controller':_0x54f539(0x2654),'controllerAs':'vm','templateUrl':_0x1f8bbb,'parent':angular[_0x54f539(0x1853)](_0x266e70[_0x54f539(0x1ed9)]),'targetEvent':_0x129445,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x134bcb,'whatsappQueues':_0x39641b()[_0x54f539(0x27aa)](_0x109983[_0x54f539(0x971)]),'license':null,'setting':null,'crudPermissions':_0x109983['crudPermissions']}});}function _0x3ffd48(_0x28dffc,_0x15b640){const _0x39e3f6=_0x30f48e;_0x1ececc[_0x39e3f6(0xe27)]({'controller':_0x39e3f6(0x29c3),'controllerAs':'vm','templateUrl':_0x40a20c,'parent':angular[_0x39e3f6(0x1853)](_0x266e70[_0x39e3f6(0x1ed9)]),'targetEvent':_0x28dffc,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x15b640,'whatsappQueues':_0x109983[_0x39e3f6(0x971)]?_0x109983[_0x39e3f6(0x971)]['rows']:[],'realtime':![],'crudPermissions':_0x109983['crudPermissions']}});}function _0x8c7478(_0x12b563){const _0x5d1c07=_0x30f48e;return _0x50f3e3[_0x5d1c07(0xea8)][_0x5d1c07(0x687)](_0x12b563)[_0x5d1c07(0x1d77)][_0x5d1c07(0x1cb0)](function(){const _0xa957c0=_0x5d1c07;_0x489cb7[_0xa957c0(0x829)]({'title':_0xa957c0(0x264c),'msg':_0x12b563[_0xa957c0(0x16b6)]?_0x12b563[_0xa957c0(0x16b6)]+_0xa957c0(0x1068):''});})[_0x5d1c07(0x1c4)](function(_0x29f4c5){const _0x4e8c12=_0x5d1c07;_0x489cb7['error']({'title':_0x4e8c12(0x454),'msg':_0x29f4c5['message']});});}_0x14f46c[_0x30f48e(0x1d6)]('$destroy',function(){const _0x4131b4=_0x30f48e;_0x2ef734[_0x4131b4(0xfb8)](_0x4131b4(0x2682)),_0x2ef734[_0x4131b4(0xfb8)](_0x4131b4(0x924)),_0x2ef734['removeAllListeners'](_0x4131b4(0x121e)),_0x2ef734['removeAllListeners'](_0x4131b4(0x14c6)),_0x2ef734[_0x4131b4(0xfb8)]('userVoiceQueue:remove'),_0x2ef734[_0x4131b4(0xfb8)](_0x4131b4(0x828));});}const _0x5acee9=_0x1717b9;;function _0x1660ec(){const _0x342840=_0x5537c6;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':_0x342840(0x1170),'unreachable':'red-300-fg\x20icon-close-circle','unknown':'grey-fg\x20icon-minus-circle'},'state':{'unknown':_0x342840(0x181),'not_inuse':_0x342840(0x25c2),'inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0x342840(0x35b),'invalid':_0x342840(0x181),'unavailable':_0x342840(0x181),'ringing':_0x342840(0x1c43),'ringinuse':_0x342840(0x1c43),'onhold':_0x342840(0x1825)},'channelStatus':{'ring':_0x342840(0x1c43),'up':_0x342840(0x142f),'hangup':'red-300-fg\x20icon-phone-hangup'},'channelStatusOut':{'ring':_0x342840(0x53c),'up':_0x342840(0x142f),'hangup':'red-300-fg\x20icon-phone-hangup'}};}const _0x58d894=_0x1660ec;;_0x1a7ec1[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x1986)];function _0x1a7ec1(_0x303fd5,_0xd1240f,_0x4ca320){const _0x56279c=_0x5537c6,_0x458c7a=this;_0x4ca320[_0x56279c(0x22e8)](),_0x4ca320[_0x56279c(0x8b0)](),_0x458c7a['selectedTab']=0x0;switch(_0xd1240f[_0x56279c(0x1970)][_0x56279c(0x16b6)]){case'app.whatsapp.realtime.agents':_0x458c7a[_0x56279c(0x8ec)]=0x0;break;case _0x56279c(0x1001):_0x458c7a[_0x56279c(0x8ec)]=0x1;break;default:_0x458c7a[_0x56279c(0x8ec)]=0x0,_0xd1240f['go'](_0x56279c(0x1be3));}_0x303fd5['$watch'](_0x56279c(0x1ced),function(_0x5265fa,_0x196cc0){const _0x157df0=_0x56279c;if(_0x5265fa!==_0x196cc0)switch(_0x5265fa){case 0x0:_0xd1240f['go'](_0x157df0(0x1be3));break;case 0x1:_0xd1240f['go'](_0x157df0(0x1001));break;default:_0xd1240f['go']('app.whatsapp.realtime.agents');break;}});}const _0x3ac086=_0x1a7ec1;;_0x51aea2['$inject']=[_0x5537c6(0xbd6)];function _0x51aea2(_0xefd5dd){const _0x13493f=_0x5537c6;_0xefd5dd[_0x13493f(0x27e0)]('app.whatsapp.realtime',{'url':_0x13493f(0x1625),'views':{'content@app':{'templateUrl':_0x605b1c,'controller':_0x13493f(0x2f7)}},'resolve':{'userProfile':[_0x13493f(0x1e0b),_0x13493f(0x1774),function(_0x1d3079,_0x336b96){const _0xe27bf0=_0x13493f;return _0x336b96[_0xe27bf0(0x22b6)](_0xe27bf0(0x1c60))?null:_0x1d3079[_0xe27bf0(0x19a3)](_0xe27bf0(0x9ae),{'fields':_0xe27bf0(0x279),'id':_0x336b96[_0xe27bf0(0x21e8)]()[_0xe27bf0(0x13c1)]});}],'userProfileSection':[_0x13493f(0x1e0b),'Auth',function(_0x874893,_0x279792){const _0x1f1fff=_0x13493f;return _0x279792[_0x1f1fff(0x22b6)](_0x1f1fff(0x1c60))?null:_0x874893[_0x1f1fff(0x19a3)](_0x1f1fff(0x2182),{'fields':_0x1f1fff(0x1f5f),'userProfileId':_0x279792[_0x1f1fff(0x21e8)]()[_0x1f1fff(0x13c1)],'sectionId':0x83e});}]},'authenticate':!![],'permissionId':0x83e})[_0x13493f(0x27e0)](_0x13493f(0x1be3),{'url':_0x13493f(0xefc),'controller':_0x13493f(0x150c),'templateUrl':_0x38968c,'resolve':{'pauses':[_0x13493f(0x1e0b),function(_0x2e8fe7){const _0x39cfcd=_0x13493f;return _0x2e8fe7[_0x39cfcd(0x19a3)](_0x39cfcd(0xeeb),{'nolimit':!![]});}],'agents':[_0x13493f(0x1e0b),_0x13493f(0x1774),function(_0xc95ad,_0xfb17d5){const _0x524599=_0x13493f;return _0xfb17d5[_0x524599(0x22b6)](_0x524599(0x1c60))?_0xc95ad[_0x524599(0x19a3)]('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':_0x524599(0x1eff),'sort':_0x524599(0x1d14),'nolimit':!![]}):_0xc95ad[_0x524599(0x19a3)](_0x524599(0x12da),{'id':_0xfb17d5[_0x524599(0x21e8)]()['userProfileId'],'section':_0x524599(0x2536),'fields':_0x524599(0x1599),'role':'agent','sort':_0x524599(0x1d14),'nolimit':!![]});}],'userProfile':[_0x13493f(0x1e0b),_0x13493f(0x1774),function(_0x476953,_0x5cd94e){const _0x4f9823=_0x13493f;return _0x5cd94e['hasRole'](_0x4f9823(0x1c60))?null:_0x476953[_0x4f9823(0x19a3)](_0x4f9823(0x9ae),{'fields':_0x4f9823(0x279),'id':_0x5cd94e[_0x4f9823(0x21e8)]()[_0x4f9823(0x13c1)]});}],'userProfileSection':[_0x13493f(0x1e0b),_0x13493f(0x1774),function(_0x5cf4d0,_0x26938f){const _0x4c8085=_0x13493f;return _0x26938f['hasRole']('admin')?null:_0x5cf4d0['resolve'](_0x4c8085(0x2182),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x26938f[_0x4c8085(0x21e8)]()['userProfileId'],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0x500e53){const _0x230c54=_0x13493f;return _0x500e53[_0x230c54(0x19a3)]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x83e})[_0x13493f(0x27e0)]('app.whatsapp.realtime.queues',{'url':_0x13493f(0x1596),'controller':'QueuesWhatsappRealtimeController\x20as\x20vm','templateUrl':_0x1e7e06,'resolve':{'queues':['apiResolver',_0x13493f(0x1774),function(_0x116d9d,_0x22c6d4){const _0x5b88a3=_0x13493f;return _0x22c6d4[_0x5b88a3(0x22b6)](_0x5b88a3(0x1c60))?_0x116d9d[_0x5b88a3(0x19a3)](_0x5b88a3(0x1f3b),{'type':_0x5b88a3(0x26c0),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x116d9d[_0x5b88a3(0x19a3)](_0x5b88a3(0x12da),{'id':_0x22c6d4['getCurrentUser']()[_0x5b88a3(0x13c1)],'section':_0x5b88a3(0x2962),'channel':'whatsapp','type':_0x5b88a3(0x26c0),'sort':_0x5b88a3(0x282),'limit':0xa,'page':0x1});}],'userProfile':[_0x13493f(0x1e0b),'Auth',function(_0x361816,_0x496e73){const _0x4c6f95=_0x13493f;return _0x496e73['hasRole']('admin')?null:_0x361816[_0x4c6f95(0x19a3)]('userProfile@get',{'fields':_0x4c6f95(0x279),'id':_0x496e73['getCurrentUser']()[_0x4c6f95(0x13c1)]});}],'userProfileSection':[_0x13493f(0x1e0b),_0x13493f(0x1774),function(_0x260395,_0x3db4f2){const _0x4476c6=_0x13493f;return _0x3db4f2[_0x4476c6(0x22b6)](_0x4476c6(0x1c60))?null:_0x260395['resolve'](_0x4476c6(0x2182),{'fields':_0x4476c6(0x1f5f),'userProfileId':_0x3db4f2[_0x4476c6(0x21e8)]()[_0x4476c6(0x13c1)],'sectionId':0x835});}],'rpcQueues':[_0x13493f(0x1e0b),function(_0x442019){return _0x442019['resolve']('rpc@getWhatsappQueues');}]},'authenticate':!![],'permissionId':0x83e});}angular[_0x5537c6(0x9ab)]('app.whatsapp.realtime',[])[_0x5537c6(0xa60)](_0x51aea2)[_0x5537c6(0x6e5)](_0x5537c6(0x746),_0x5d51d1)[_0x5537c6(0x6e5)](_0x5537c6(0x27a3),_0x5acee9)['factory'](_0x5537c6(0x125c),_0x58d894)['controller'](_0x5537c6(0xf40),_0x3ac086);;const _0x26ceaf=_0x5074a3['p']+'src/js/modules/main/apps/whatsapp/views/whatsappQueues/whatsappQueues.html/whatsappQueues.html';;const _0x5af478=_0x5074a3['p']+_0x5537c6(0x1b81);;const _0x5d939f=_0x5074a3['p']+_0x5537c6(0x25ca);;const _0x28d275=_0x5074a3['p']+_0x5537c6(0x2921);;_0x3f26de[_0x5537c6(0x15b6)]=['$scope','$state',_0x5537c6(0x21c8),'$mdDialog','$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0xbb3),_0x5537c6(0x83a),_0x5537c6(0x142b),'Auth',_0x5537c6(0x8a5),'setting','crudPermissions'];function _0x3f26de(_0x2dcea2,_0x55fd0d,_0x284302,_0x5093cf,_0x3ca3db,_0x40f851,_0x5cf724,_0x44b767,_0x563f92,_0xb47bf0,_0x58ba4b,_0x42b749,_0x353172,_0x3f9fa1){const _0x102db5=_0x5537c6,_0x15ad5a=this;_0x15ad5a[_0x102db5(0xe76)]=_0x58ba4b[_0x102db5(0x21e8)](),_0x15ad5a[_0x102db5(0x1a7c)]=[],_0x15ad5a[_0x102db5(0x9ca)]=_0x353172,_0x15ad5a['license']=_0x42b749,_0x15ad5a[_0x102db5(0x1b1a)]=_0x3f9fa1,_0x15ad5a[_0x102db5(0xf4c)]={},_0x15ad5a['passwordPattern']=_0x15ad5a[_0x102db5(0x9ca)]&&_0x15ad5a[_0x102db5(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x15ad5a[_0x102db5(0x1386)]='WHATSAPP.EDIT_WHATSAPPACCOUNT',_0x15ad5a[_0x102db5(0x83a)]=angular[_0x102db5(0x17fe)](_0x563f92),_0x15ad5a[_0x102db5(0xbb3)]=_0x44b767,_0x15ad5a['newWhatsappAccount']=![];!_0x15ad5a[_0x102db5(0x83a)]&&(_0x15ad5a['whatsappAccount']={'remote':_0x284302[_0x102db5(0x2276)]()+'://'+_0x284302[_0x102db5(0x17d8)]()+(_0x284302[_0x102db5(0x477)]()?':'+_0x284302[_0x102db5(0x477)]():''),'type':_0x102db5(0x10dd),'notificationSound':!![],'queueTransferTimeout':0x12c,'waitForTheAssignedAgent':0xa,'agentTransferTimeout':0x12c},_0x15ad5a['title']=_0x102db5(0x281b),_0x15ad5a[_0x102db5(0xecb)]=!![]);_0x55fd0d[_0x102db5(0x1dfe)]['id']&&(_0x15ad5a['whatsappAccount'][_0x102db5(0xfc8)]=_0x55fd0d['params']['id']);_0x15ad5a[_0x102db5(0x935)]=_0x5a2368,_0x15ad5a[_0x102db5(0x1b72)]=_0x42a058,_0x15ad5a['deleteWhatsappAccount']=_0x335f16,_0x15ad5a[_0x102db5(0x2c4)]=_0x351101,_0x15ad5a[_0x102db5(0xda0)]=_0x28f515,_0x58ba4b['hasRole'](_0x102db5(0x1c60))?_0xb47bf0[_0x102db5(0x22f2)][_0x102db5(0xbf7)]({'fields':_0x102db5(0x43c),'sort':'name'})['$promise'][_0x102db5(0x1cb0)](function(_0x2b76a5){const _0x30d065=_0x102db5;_0x15ad5a[_0x30d065(0x1046)]=_0x2b76a5[_0x30d065(0x2214)]||[];})['catch'](function(_0x42a05e){const _0x490262=_0x102db5;_0x5cf724['error']({'title':_0x42a05e[_0x490262(0x291)]?_0x490262(0xeb9)+_0x42a05e['status']+_0x490262(0x1657)+_0x42a05e['statusText']:_0x490262(0x149e),'msg':_0x42a05e[_0x490262(0x25c)]?JSON[_0x490262(0x2701)](_0x42a05e['data']):_0x42a05e['toString']()});}):_0xb47bf0['cmList'][_0x102db5(0xbf7)]({'fields':_0x102db5(0x43c),'sort':_0x102db5(0x16b6)})['$promise']['then'](function(_0x1e1831){const _0x38551d=_0x102db5;_0x15ad5a['lists']=_0x1e1831[_0x38551d(0x2214)]||[];})[_0x102db5(0x1cb0)](function(){const _0x20a4a0=_0x102db5;return _0xb47bf0[_0x20a4a0(0x2199)][_0x20a4a0(0xbf7)]({'userProfileId':_0x15ad5a[_0x20a4a0(0xe76)]['userProfileId'],'sectionId':0x12d})[_0x20a4a0(0x1d77)];})[_0x102db5(0x1cb0)](function(_0x2456b7){const _0x2ea32d=_0x102db5,_0x153368=_0x2456b7&&_0x2456b7['rows']?_0x2456b7[_0x2ea32d(0x2214)][0x0]:null;if(!_0x153368){const _0x3e9c53=[];let _0x2bc624=null;_0x15ad5a[_0x2ea32d(0x83a)]&&(_0x2bc624=_0x39641b()[_0x2ea32d(0x13b4)](_0x15ad5a['lists'],{'id':Number(_0x15ad5a[_0x2ea32d(0x83a)][_0x2ea32d(0x20a6)])}));for(let _0x1cbef9=0x0;_0x1cbef9<_0x15ad5a['lists']['length'];_0x1cbef9++){_0x2bc624&&_0x15ad5a[_0x2ea32d(0x1046)][_0x1cbef9]['id']===_0x2bc624['id']&&(_0x15ad5a[_0x2ea32d(0x1046)][_0x1cbef9][_0x2ea32d(0x15da)]=![],_0x3e9c53['push'](_0x15ad5a[_0x2ea32d(0x1046)][_0x1cbef9]));}_0x15ad5a[_0x2ea32d(0x1046)]=_0x3e9c53;}else{if(!_0x153368[_0x2ea32d(0x12f4)])return _0xb47bf0[_0x2ea32d(0x1198)][_0x2ea32d(0xbf7)]({'sectionId':_0x153368['id']})[_0x2ea32d(0x1d77)][_0x2ea32d(0x1cb0)](function(_0x47e801){const _0x5486fb=_0x2ea32d,_0x244eb4=_0x39641b()['map'](_0x47e801[_0x5486fb(0x2214)],function(_0x2bc4b4){const _0x17a1a4=_0x5486fb;return _0x39641b()[_0x17a1a4(0x13b4)](_0x15ad5a[_0x17a1a4(0x1046)],{'id':_0x2bc4b4[_0x17a1a4(0x2982)]});});let _0x5eab16=null;_0x15ad5a[_0x5486fb(0x83a)]&&(_0x5eab16=_0x39641b()[_0x5486fb(0x13b4)](_0x15ad5a['lists'],{'id':Number(_0x15ad5a[_0x5486fb(0x83a)][_0x5486fb(0x20a6)])}));if(_0x5eab16&&!_0x39641b()[_0x5486fb(0x727)](_0x244eb4,['id',_0x5eab16['id']])){const _0x28754c=_0x39641b()[_0x5486fb(0x13b4)](_0x15ad5a[_0x5486fb(0x1046)],{'id':_0x5eab16['id']});_0x28754c[_0x5486fb(0x15da)]=![],_0x244eb4[_0x5486fb(0x2785)](_0x28754c);}_0x15ad5a['lists']=_0x244eb4;});}})['catch'](function(_0x3a5950){const _0x33e2e1=_0x102db5;_0x5cf724['error']({'title':_0x3a5950[_0x33e2e1(0x291)]?'API:'+_0x3a5950[_0x33e2e1(0x291)]+_0x33e2e1(0x1657)+_0x3a5950[_0x33e2e1(0xc22)]:_0x33e2e1(0x113c),'msg':_0x3a5950[_0x33e2e1(0x25c)]?JSON['stringify'](_0x3a5950[_0x33e2e1(0x25c)]):_0x3a5950['toString']()});}),_0x58ba4b['hasRole'](_0x102db5(0x1c60))?_0xb47bf0[_0x102db5(0x785)][_0x102db5(0xbf7)]({'fields':_0x102db5(0x791),'sort':_0x102db5(0x16b6),'nolimit':_0x102db5(0x44d)})[_0x102db5(0x1d77)][_0x102db5(0x1cb0)](function(_0xa84904){const _0x18017f=_0x102db5;_0x15ad5a[_0x18017f(0x8de)]=_0xa84904[_0x18017f(0x2214)]||[];})[_0x102db5(0x1c4)](function(_0x51bf49){const _0x345327=_0x102db5;_0x5cf724[_0x345327(0x218e)]({'title':_0x51bf49[_0x345327(0x291)]?_0x345327(0xeb9)+_0x51bf49[_0x345327(0x291)]+_0x345327(0x1657)+_0x51bf49['statusText']:_0x345327(0x1589),'msg':_0x51bf49[_0x345327(0x25c)]?JSON['stringify'](_0x51bf49['data']):_0x51bf49[_0x345327(0x147f)]()});}):_0xb47bf0['pause']['get']({'fields':_0x102db5(0x791),'sort':_0x102db5(0x16b6),'nolimit':'true'})[_0x102db5(0x1d77)]['then'](function(_0x48cdc1){const _0x269b68=_0x102db5;_0x15ad5a[_0x269b68(0x8de)]=_0x48cdc1[_0x269b68(0x2214)]||[];})[_0x102db5(0x1cb0)](function(){const _0x19de64=_0x102db5;return _0xb47bf0[_0x19de64(0x2199)]['get']({'userProfileId':_0x15ad5a[_0x19de64(0xe76)][_0x19de64(0x13c1)],'sectionId':0x3ed})[_0x19de64(0x1d77)];})[_0x102db5(0x1cb0)](function(_0x1f12e6){const _0x10ef0d=_0x102db5,_0x33bbab=_0x1f12e6&&_0x1f12e6[_0x10ef0d(0x2214)]?_0x1f12e6['rows'][0x0]:null;if(!_0x33bbab)_0x15ad5a[_0x10ef0d(0x8de)]=[];else{if(!_0x33bbab[_0x10ef0d(0x12f4)])return _0xb47bf0['userProfileResource'][_0x10ef0d(0xbf7)]({'sectionId':_0x33bbab['id']})['$promise'][_0x10ef0d(0x1cb0)](function(_0x1204fe){const _0x421062=_0x10ef0d,_0x2763f1=_0x39641b()[_0x421062(0x1de2)](_0x1204fe[_0x421062(0x2214)],function(_0x13af6c){const _0x3b85e1=_0x421062;return _0x39641b()['find'](_0x15ad5a['pauses'],{'id':_0x13af6c[_0x3b85e1(0x2982)]});});_0x15ad5a[_0x421062(0x8de)]['forEach'](function(_0x4abcb1){const _0x227dcb=_0x421062;!_0x39641b()[_0x227dcb(0x727)](_0x2763f1,['id',_0x4abcb1['id']])&&(_0x4abcb1['canSelect']=![]),_0x2763f1[_0x227dcb(0x2785)](_0x4abcb1);}),_0x15ad5a[_0x421062(0x8de)]=_0x2763f1;});}})[_0x102db5(0x1c4)](function(_0x34491){const _0x51c643=_0x102db5;_0x5cf724[_0x51c643(0x218e)]({'title':_0x34491[_0x51c643(0x291)]?_0x51c643(0xeb9)+_0x34491[_0x51c643(0x291)]+_0x51c643(0x1657)+_0x34491['statusText']:_0x51c643(0x162),'msg':_0x34491[_0x51c643(0x25c)]?JSON[_0x51c643(0x2701)](_0x34491['data']):_0x34491[_0x51c643(0x147f)]()});});function _0x5a2368(){const _0x540c24=_0x102db5;_0x15ad5a[_0x540c24(0x1a7c)]=[],_0xb47bf0[_0x540c24(0x83a)]['save'](_0x15ad5a[_0x540c24(0x83a)])[_0x540c24(0x1d77)][_0x540c24(0x1cb0)](function(_0x1ce4ba){const _0x2b72ca=_0x540c24;_0x15ad5a['whatsappAccounts']['unshift'](_0x1ce4ba[_0x2b72ca(0x19b2)]()),_0x5cf724[_0x2b72ca(0x829)]({'title':_0x2b72ca(0xbd7),'msg':_0x15ad5a['whatsappAccount'][_0x2b72ca(0x16b6)]?_0x15ad5a[_0x2b72ca(0x83a)]['name']+'\x20has\x20been\x20created!':''}),_0x28f515(_0x1ce4ba);})[_0x540c24(0x1c4)](function(_0x334dc4){const _0x1aff32=_0x540c24;if(_0x334dc4[_0x1aff32(0x25c)]&&_0x334dc4[_0x1aff32(0x25c)]['errors']&&_0x334dc4[_0x1aff32(0x25c)]['errors'][_0x1aff32(0xfd0)]){_0x15ad5a[_0x1aff32(0x1a7c)]=_0x334dc4[_0x1aff32(0x25c)]['errors']||[{'message':_0x334dc4[_0x1aff32(0x147f)](),'type':'api.whatsappAccount.save'}];for(let _0x108b86=0x0;_0x108b86<_0x334dc4[_0x1aff32(0x25c)]['errors'][_0x1aff32(0xfd0)];_0x108b86+=0x1){_0x5cf724[_0x1aff32(0x218e)]({'title':_0x334dc4[_0x1aff32(0x25c)][_0x1aff32(0x1a7c)][_0x108b86][_0x1aff32(0x66a)],'msg':_0x334dc4['data'][_0x1aff32(0x1a7c)][_0x108b86][_0x1aff32(0x155e)]});}}else _0x5cf724[_0x1aff32(0x218e)]({'title':_0x334dc4[_0x1aff32(0x291)]?_0x1aff32(0xeb9)+_0x334dc4[_0x1aff32(0x291)]+_0x1aff32(0x1657)+_0x334dc4[_0x1aff32(0xc22)]:_0x1aff32(0x787),'msg':_0x334dc4[_0x1aff32(0x25c)]?JSON[_0x1aff32(0x2701)](_0x334dc4[_0x1aff32(0x25c)]['message']):_0x334dc4['toString']()});});}function _0x42a058(){const _0x25f80f=_0x102db5;_0x15ad5a[_0x25f80f(0x1a7c)]=[],_0xb47bf0[_0x25f80f(0x83a)]['update']({'id':_0x15ad5a[_0x25f80f(0x83a)]['id']},_0x15ad5a[_0x25f80f(0x83a)])[_0x25f80f(0x1d77)][_0x25f80f(0x1cb0)](function(_0x46256c){const _0x528082=_0x25f80f,_0x2bf55a=_0x39641b()[_0x528082(0x13b4)](_0x15ad5a['whatsappAccounts'],{'id':_0x46256c['id']});_0x2bf55a&&_0x39641b()[_0x528082(0x9c1)](_0x2bf55a,_0x39641b()[_0x528082(0x169b)](_0x46256c['toJSON'](),_0x39641b()['keys'](_0x2bf55a))),_0x5cf724[_0x528082(0x829)]({'title':_0x528082(0xe89),'msg':_0x15ad5a[_0x528082(0x83a)][_0x528082(0x16b6)]?_0x15ad5a[_0x528082(0x83a)][_0x528082(0x16b6)]+_0x528082(0xedb):''}),_0x28f515(_0x46256c);})[_0x25f80f(0x1c4)](function(_0x2c9246){const _0x4b1ebe=_0x25f80f;if(_0x2c9246['data']&&_0x2c9246[_0x4b1ebe(0x25c)][_0x4b1ebe(0x1a7c)]&&_0x2c9246[_0x4b1ebe(0x25c)][_0x4b1ebe(0x1a7c)][_0x4b1ebe(0xfd0)]){_0x15ad5a['errors']=_0x2c9246[_0x4b1ebe(0x25c)][_0x4b1ebe(0x1a7c)]||[{'message':_0x2c9246[_0x4b1ebe(0x147f)](),'type':_0x4b1ebe(0x864)}];for(let _0x423a1b=0x0;_0x423a1b<_0x2c9246[_0x4b1ebe(0x25c)][_0x4b1ebe(0x1a7c)][_0x4b1ebe(0xfd0)];_0x423a1b++){_0x5cf724[_0x4b1ebe(0x218e)]({'title':_0x2c9246[_0x4b1ebe(0x25c)][_0x4b1ebe(0x1a7c)][_0x423a1b][_0x4b1ebe(0x66a)],'msg':_0x2c9246[_0x4b1ebe(0x25c)][_0x4b1ebe(0x1a7c)][_0x423a1b][_0x4b1ebe(0x155e)]});}}else _0x5cf724[_0x4b1ebe(0x218e)]({'title':_0x2c9246[_0x4b1ebe(0x291)]?'API:'+_0x2c9246[_0x4b1ebe(0x291)]+_0x4b1ebe(0x1657)+_0x2c9246[_0x4b1ebe(0xc22)]:_0x4b1ebe(0x864),'msg':_0x2c9246[_0x4b1ebe(0x25c)]?JSON['stringify'](_0x2c9246['data']['message']):_0x2c9246[_0x4b1ebe(0x147f)]()});});}function _0x335f16(_0x3839bc){const _0x4ecf0a=_0x102db5;_0x15ad5a[_0x4ecf0a(0x1a7c)]=[];const _0x57b2de=_0x5093cf[_0x4ecf0a(0x1551)]()['title'](_0x4ecf0a(0x1a2e))[_0x4ecf0a(0x862)](_0x4ecf0a(0x27c0))[_0x4ecf0a(0x15ad)](_0x4ecf0a(0x1f50))['ok'](_0x4ecf0a(0x2594))[_0x4ecf0a(0x696)](_0x4ecf0a(0xde1))[_0x4ecf0a(0x728)](_0x3839bc);_0x5093cf[_0x4ecf0a(0xe27)](_0x57b2de)['then'](function(){const _0x59a38a=_0x4ecf0a;_0xb47bf0[_0x59a38a(0x83a)][_0x59a38a(0x111d)]({'id':_0x15ad5a[_0x59a38a(0x83a)]['id']})[_0x59a38a(0x1d77)][_0x59a38a(0x1cb0)](function(){const _0x404480=_0x59a38a;_0x39641b()[_0x404480(0x152a)](_0x15ad5a[_0x404480(0xbb3)],{'id':_0x15ad5a[_0x404480(0x83a)]['id']}),_0x5cf724[_0x404480(0x829)]({'title':_0x404480(0x2666),'msg':(_0x15ad5a[_0x404480(0x83a)][_0x404480(0x16b6)]||_0x404480(0x83a))+_0x404480(0x3f5)}),_0x28f515(_0x15ad5a[_0x404480(0x83a)]);})['catch'](function(_0x427121){const _0x5cdd6b=_0x59a38a;if(_0x427121[_0x5cdd6b(0x25c)]&&_0x427121[_0x5cdd6b(0x25c)][_0x5cdd6b(0x1a7c)]&&_0x427121['data']['errors'][_0x5cdd6b(0xfd0)]){_0x15ad5a[_0x5cdd6b(0x1a7c)]=_0x427121['data'][_0x5cdd6b(0x1a7c)]||[{'message':_0x427121[_0x5cdd6b(0x147f)](),'type':_0x5cdd6b(0x65a)}];for(let _0x137353=0x0;_0x137353<_0x427121[_0x5cdd6b(0x25c)][_0x5cdd6b(0x1a7c)][_0x5cdd6b(0xfd0)];_0x137353++){_0x5cf724[_0x5cdd6b(0x218e)]({'title':_0x427121[_0x5cdd6b(0x25c)][_0x5cdd6b(0x1a7c)][_0x137353]['type'],'msg':_0x427121[_0x5cdd6b(0x25c)][_0x5cdd6b(0x1a7c)][_0x137353]['message']});}}else _0x5cf724[_0x5cdd6b(0x218e)]({'title':_0x427121[_0x5cdd6b(0x291)]?_0x5cdd6b(0xeb9)+_0x427121['status']+'\x20-\x20'+_0x427121['statusText']:_0x5cdd6b(0x65a),'msg':_0x427121[_0x5cdd6b(0x25c)]?JSON[_0x5cdd6b(0x2701)](_0x427121['data'][_0x5cdd6b(0x155e)]):_0x427121[_0x5cdd6b(0x155e)]||_0x427121[_0x5cdd6b(0x147f)]()});});},function(){});}function _0x351101(_0x55fa89){return _0x55fa89===null?undefined:new Date(_0x55fa89);}function _0x28f515(_0x3c2701){const _0x270a1d=_0x102db5;_0x5093cf[_0x270a1d(0x1426)](_0x3c2701);}}const _0x5dbcf7=_0x3f26de;;const _0x2c40d0=_0x5074a3['p']+_0x5537c6(0x24b8);;const _0x41584e=_0x5074a3['p']+_0x5537c6(0x2273);;const _0x29bb1f=_0x5074a3['p']+_0x5537c6(0x15ba);;const _0x57dc85=_0x5074a3['p']+_0x5537c6(0xa72);;const _0xd4ed77=_0x5074a3['p']+_0x5537c6(0x79b);;const _0xf295f8=_0x5074a3['p']+_0x5537c6(0x18fb);;const _0xcac58a=_0x5074a3['p']+_0x5537c6(0x11de);;const _0x1880d0=_0x5074a3['p']+_0x5537c6(0x1826);;const _0x57e1f7=_0x5074a3['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/noop/dialog.html/dialog.html';;const _0x2a5ad1=_0x5074a3['p']+_0x5537c6(0x1207);;const _0x124e43=_0x5074a3['p']+_0x5537c6(0x1e6a);;const _0x1464af=_0x5074a3['p']+_0x5537c6(0xac4);;_0x577659[_0x5537c6(0x15b6)]=[_0x5537c6(0x142b),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x9bf),'Auth'];const _0x3ac50b={'agent':_0x2c40d0,'amazonlex':_0x41584e,'autoreply':_0x29bb1f,'close':_0x57dc85,'dialogflow':_0xd4ed77,'gotoif':_0xf295f8,'gotop':_0xcac58a,'interval':_0x1880d0,'noop':_0x57e1f7,'queue':_0x2a5ad1,'system':_0x124e43,'tag':_0x1464af};function _0x577659(_0x44044d,_0x571829,_0x11024e,_0x2c9d82,_0x507957){const _0x3f403e=_0x5537c6,_0x15ee4b=this;_0x15ee4b[_0x3f403e(0xe76)]=_0x507957[_0x3f403e(0x21e8)](),_0x15ee4b[_0x3f403e(0x83a)]={},_0x15ee4b[_0x3f403e(0x7d4)]={'count':0x0,'rows':[]},_0x15ee4b['selectedWhatsappAccountApps']=[],_0x15ee4b[_0x3f403e(0x1b1a)],_0x15ee4b[_0x3f403e(0xae2)]={'sort':_0x3f403e(0x521)},_0x15ee4b[_0x3f403e(0x196f)]=_0x39641b()[_0x3f403e(0x988)](_0x39641b()[_0x3f403e(0x1d33)]([{'app':_0x3f403e(0x1d81),'appType':_0x3f403e(0x1ac8),'types':[_0x3f403e(0x2017),'custom',_0x3f403e(0x240)],'fields':[],'isApp':![]},{'app':_0x3f403e(0x1234),'appType':_0x3f403e(0x1234),'type':_0x3f403e(0x1234),'icon':'icon-apps','interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':_0x3f403e(0x1e10),'name':_0x3f403e(0x327),'type':_0x3f403e(0x19d3),'param':0x0}]},{'app':_0x3f403e(0x7be),'appType':'system','type':_0x3f403e(0x7be),'icon':_0x3f403e(0x33e),'interval':_0x3f403e(0x965),'required':!![],'isApp':!![],'extraApi':[{'name':_0x3f403e(0x9a9),'field':{'name':_0x3f403e(0x1822),'key':_0x3f403e(0x16b6)},'route':_0x3f403e(0x1822),'filters':{'fields':_0x3f403e(0x43c),'sort':_0x3f403e(0x16b6),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x3f403e(0x1b9),'name':'command','type':_0x3f403e(0x19d3),'required':!![],'param':0x0},{'title':_0x3f403e(0x1b02),'name':'variable','type':_0x3f403e(0xb52),'values':_0x3f403e(0x9a9),'value':'variable.name','option':'variable.name','defaultValues':[{'value':'\x27\x27','option':_0x3f403e(0x2001)}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':_0x3f403e(0x265b),'type':'goto','icon':_0x3f403e(0x33e),'interval':_0x3f403e(0x965),'isApp':!![],'fields':[{'title':_0x3f403e(0x1240),'name':_0x3f403e(0x521),'type':_0x3f403e(0x83d),'required':!![],'min':0x0,'param':0x0}]},{'app':'gotoif','appType':_0x3f403e(0x13a0),'type':'gotoif','icon':_0x3f403e(0x33e),'interval':_0x3f403e(0x965),'isApp':!![],'fields':[{'title':_0x3f403e(0x28f5),'name':_0x3f403e(0x166c),'type':_0x3f403e(0x19d3),'required':!![],'param':0x0},{'title':_0x3f403e(0xb24),'name':'truepriority','type':'number','min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':_0x3f403e(0x17d),'type':_0x3f403e(0x83d),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x3f403e(0x11cf),'appType':_0x3f403e(0x11cf),'foreignKey':_0x3f403e(0x4f2),'type':_0x3f403e(0x11cf),'icon':_0x3f403e(0x33e),'interval':_0x3f403e(0x965),'isApp':!![],'extraApi':[{'name':_0x3f403e(0x971),'field':{'name':_0x3f403e(0x11cf),'key':'name'},'route':_0x3f403e(0xea8),'filters':{'fields':_0x3f403e(0x1896),'sort':_0x3f403e(0x16b6),'nolimit':!![]},'permissions':{'section':0x836}}],'fields':[{'title':'Queue','name':_0x3f403e(0x11cf),'type':_0x3f403e(0xb52),'values':_0x3f403e(0x971),'value':'queue.name','option':_0x3f403e(0x19b3),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':_0x3f403e(0x1719),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x3f403e(0x1eff),'appType':_0x3f403e(0x1eff),'type':_0x3f403e(0x1eff),'foreignKey':_0x3f403e(0x21ab),'icon':_0x3f403e(0x33e),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':'agents','field':{'name':'agent','key':_0x3f403e(0x16b6)},'route':_0x3f403e(0xebe),'filters':{'fields':_0x3f403e(0x43c),'sort':_0x3f403e(0x16b6),'nolimit':!![],'role':_0x3f403e(0x1eff)},'permissions':{'section':0xca}}],'fields':[{'title':_0x3f403e(0x30e),'name':_0x3f403e(0x1eff),'type':'apiselect','values':_0x3f403e(0xc12),'value':_0x3f403e(0x302),'option':_0x3f403e(0x302),'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':_0x3f403e(0x83d),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x3f403e(0x1f71),'appType':'autoreply','type':'autoreply','icon':'icon-apps','interval':_0x3f403e(0x965),'isApp':!![],'fields':[{'title':_0x3f403e(0x18a5),'name':_0x3f403e(0x18a5),'type':_0x3f403e(0x220f),'defaultValue':'1','values':[{'option':_0x3f403e(0x431),'value':'1'},{'option':'Always','value':'0'}],'required':!![],'param':0x0},{'title':_0x3f403e(0x620),'name':_0x3f403e(0x19d3),'type':_0x3f403e(0x2424),'required':!![],'param':0x1}]},{'app':_0x3f403e(0xf3b),'appType':_0x3f403e(0xf3b),'type':_0x3f403e(0xf3b),'icon':_0x3f403e(0x33e),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x3f403e(0x2542),'name':'disposition','type':_0x3f403e(0x19d3),'required':!![],'param':0x0}]},{'app':'tag','appType':_0x3f403e(0x22b1),'type':'tag','foreignKey':_0x3f403e(0x1754),'icon':_0x3f403e(0x33e),'interval':_0x3f403e(0x965),'isApp':!![],'extraApi':[{'name':'tags','field':{'name':_0x3f403e(0x22b1),'key':'name'},'route':_0x3f403e(0x22b1),'filters':{'fields':_0x3f403e(0x43c),'sort':_0x3f403e(0x16b6),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x3f403e(0xf2d),'name':'tag','type':_0x3f403e(0xb52),'values':_0x3f403e(0xfbf),'value':'tag.name','option':_0x3f403e(0x52a),'required':!![],'param':0x0}]},{'app':_0x3f403e(0x711),'appType':_0x3f403e(0x711),'type':_0x3f403e(0x711),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x3f403e(0xad8),'name':_0x3f403e(0xee8),'type':'text','required':!![],'param':0x0},{'title':_0x3f403e(0x12b4),'name':_0x3f403e(0x12b4),'type':_0x3f403e(0x220f),'defaultValue':_0x3f403e(0x1ffc),'values':[{'option':_0x3f403e(0x1f7),'value':_0x3f403e(0x1dac)},{'option':_0x3f403e(0xc8b),'value':_0x3f403e(0x1ffc)},{'option':_0x3f403e(0x41b),'value':_0x3f403e(0x134a)},{'option':_0x3f403e(0x2257),'value':_0x3f403e(0x6a6)},{'option':_0x3f403e(0x2672),'value':'\x27es\x27'},{'option':'French','value':_0x3f403e(0x1040)},{'option':_0x3f403e(0x600),'value':_0x3f403e(0x1cf7)},{'option':_0x3f403e(0x243f),'value':_0x3f403e(0x5c5)},{'option':_0x3f403e(0x2773),'value':'\x27ko\x27'},{'option':_0x3f403e(0x2027),'value':_0x3f403e(0x1298)},{'option':'Norwegian','value':_0x3f403e(0x15b9)},{'option':_0x3f403e(0xf02),'value':_0x3f403e(0x16db)},{'option':_0x3f403e(0x1a45),'value':_0x3f403e(0x741)},{'option':_0x3f403e(0x1dec),'value':_0x3f403e(0x258b)},{'option':'Swedish','value':'\x27sv\x27'},{'option':_0x3f403e(0x20c),'value':'\x27th\x27'},{'option':_0x3f403e(0x526),'value':_0x3f403e(0x199c)},{'option':_0x3f403e(0xb4e),'value':_0x3f403e(0x18f1)},{'option':_0x3f403e(0xf5c),'value':_0x3f403e(0x1d01)},{'option':_0x3f403e(0x1784),'value':_0x3f403e(0xad9)}],'required':!![],'param':0x1},{'title':_0x3f403e(0x173a),'name':'welcomemessage','type':_0x3f403e(0x2424),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x3f403e(0x385),'appType':_0x3f403e(0xece),'type':_0x3f403e(0xece),'icon':'icon-apps','interval':_0x3f403e(0x965),'isApp':!![],'fields':[{'title':_0x3f403e(0x1e76),'name':_0x3f403e(0x2854),'type':_0x3f403e(0x19d3),'required':!![],'param':0x0},{'title':_0x3f403e(0x9e0),'name':_0x3f403e(0x12bf),'type':_0x3f403e(0x19d3),'required':!![],'param':0x1},{'title':_0x3f403e(0x2393),'name':_0x3f403e(0x29d6),'type':_0x3f403e(0x2424),'required':!![],'param':0x2},{'title':_0x3f403e(0x12b4),'name':_0x3f403e(0x12b4),'type':_0x3f403e(0x220f),'defaultValue':_0x3f403e(0x1ffc),'values':[{'value':'\x27zh-HK\x27','option':_0x3f403e(0x261e)},{'value':_0x3f403e(0x18f1),'option':'Chinese\x20(Simplified)'},{'value':'\x27zh-TW\x27','option':'Chinese\x20(Traditional)'},{'value':'\x27da\x27','option':_0x3f403e(0x1f7)},{'value':_0x3f403e(0x1298),'option':'Dutch'},{'value':_0x3f403e(0x1ffc),'option':_0x3f403e(0xc8b)},{'value':_0x3f403e(0x1548),'option':'English\x20(Australia)'},{'value':_0x3f403e(0x9ed),'option':'English\x20(Canada)'},{'value':_0x3f403e(0x21a8),'option':'English\x20(Great\x20Britain)'},{'value':_0x3f403e(0x17d0),'option':'English\x20(India)'},{'value':'\x27en-US\x27','option':_0x3f403e(0x146b)},{'value':_0x3f403e(0x1040),'option':_0x3f403e(0x19a)},{'value':_0x3f403e(0x271a),'option':_0x3f403e(0x2207)},{'value':'\x27fr-FR\x27','option':_0x3f403e(0xe34)},{'value':_0x3f403e(0x134a),'option':_0x3f403e(0x41b)},{'value':'\x27hi\x27','option':_0x3f403e(0x1265)},{'value':_0x3f403e(0x1cf7),'option':_0x3f403e(0x600)},{'value':'\x27it\x27','option':_0x3f403e(0x2257)},{'value':_0x3f403e(0x5c5),'option':_0x3f403e(0x243f)},{'value':_0x3f403e(0x1ce3),'option':_0x3f403e(0x14f3)},{'value':_0x3f403e(0x15b9),'option':_0x3f403e(0x12a8)},{'value':'\x27pl\x27','option':_0x3f403e(0x2960)},{'value':_0x3f403e(0x1ccb),'option':_0x3f403e(0xa0f)},{'value':'\x27pt-PT\x27','option':'Portuguese\x20(Portugal)'},{'value':'\x27ru\x27','option':_0x3f403e(0x1dec)},{'value':_0x3f403e(0xb87),'option':_0x3f403e(0x2672)},{'value':_0x3f403e(0x1ff7),'option':'Spanish\x20(Latin\x20America)'},{'value':_0x3f403e(0x22ed),'option':_0x3f403e(0x24bd)},{'value':_0x3f403e(0x21c7),'option':_0x3f403e(0x15fe)},{'value':_0x3f403e(0x1047),'option':_0x3f403e(0x20c)},{'value':_0x3f403e(0x21cd),'option':_0x3f403e(0x1543)},{'value':_0x3f403e(0x199c),'option':_0x3f403e(0x526)}],'required':!![],'param':0x3},{'title':'welcomemessage','name':_0x3f403e(0x173a),'type':'textarea','maxlength':0xff,'param':0x4,'help':!![]}]},{'app':_0x3f403e(0x123a),'appType':_0x3f403e(0x123a),'type':_0x3f403e(0x123a),'icon':_0x3f403e(0x33e),'interval':_0x3f403e(0x965),'isApp':!![],'fields':[{'title':'accesskeyid','name':_0x3f403e(0x413),'type':_0x3f403e(0x19d3),'required':!![],'param':0x0},{'title':'secretaccesskey','name':_0x3f403e(0x21d9),'type':_0x3f403e(0x19d3),'required':!![],'param':0x1},{'title':_0x3f403e(0xd50),'name':_0x3f403e(0xd50),'type':_0x3f403e(0x220f),'defaultValue':_0x3f403e(0x1c93),'values':[{'option':_0x3f403e(0xe59),'value':_0x3f403e(0x1c93)},{'option':'US\x20West\x20(Oregon)','value':_0x3f403e(0x2646)},{'option':_0x3f403e(0x14ca),'value':'\x27eu-west-1\x27'},{'option':'Asia\x20Pacific\x20(Sydney)','value':'\x27ap-southeast-2\x27'}],'required':!![],'param':0x2},{'title':_0x3f403e(0x1c7f),'name':_0x3f403e(0x1c7f),'type':_0x3f403e(0x19d3),'required':!![],'param':0x3},{'title':'welcomemessage','name':_0x3f403e(0x173a),'type':_0x3f403e(0x2424),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],[_0x3f403e(0x22e1)]),{'isApp':![]}),_0x15ee4b[_0x3f403e(0x240)]={'group':{'name':'opt1','pull':_0x3f403e(0x11bc)},'animation':0x64,'sort':![]},_0x15ee4b[_0x3f403e(0x1f2f)]={'group':{'name':'opt2','put':_0x3f403e(0x2523)},'animation':0x64,'onAdd':function(_0x23c72f){const _0x4df530=_0x3f403e;_0xf01e63(_0x23c72f,_0x23c72f[_0x4df530(0x22e)]);},'onSort':function(){_0x3efc63();}},_0x15ee4b[_0x3f403e(0x1a8e)]=_0x4e57e8,_0x15ee4b['deleteConfirm']=_0x2aa188,_0x15ee4b[_0x3f403e(0x1dd1)]=_0x1f60b0,_0x15ee4b[_0x3f403e(0x1466)]=_0xf01e63,_0x15ee4b['editInterval']=_0x33340d,_0x15ee4b['deleteWhatsappAccountApp']=_0x1d413e,_0x15ee4b[_0x3f403e(0x2449)]=_0x329b9b,_0x15ee4b[_0x3f403e(0x463)]=_0x3efc63,_0x15ee4b[_0x3f403e(0x22fc)]=_0xc7ea09;function _0x4e57e8(_0x389223,_0x1893f8){const _0x1f3375=_0x3f403e;_0x15ee4b[_0x1f3375(0x83a)]=_0x389223,_0x15ee4b['crudPermissions']=typeof _0x1893f8!==_0x1f3375(0x16b5)?_0x1893f8:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x15ee4b['applications'][_0x1f3375(0x379)]=!_0x15ee4b[_0x1f3375(0x1b1a)][_0x1f3375(0xb3d)]?!![]:![],_0x15ee4b[_0x1f3375(0xae2)]['id']=_0x389223['id'],_0x15ee4b[_0x1f3375(0xae2)]['isApp']=!![],_0x15ee4b[_0x1f3375(0xae2)][_0x1f3375(0x2282)]=!![],_0x15ee4b[_0x1f3375(0x1dd1)](),_0x15ee4b[_0x1f3375(0x22fc)]();}function _0x2aa188(_0x2a4b47,_0x4c2a1b,_0x18bed4){const _0x1cfd07=_0x3f403e,_0x54a5d9=_0x571829[_0x1cfd07(0x1551)]()[_0x1cfd07(0x1386)](_0x1cfd07(0xf35))[_0x1cfd07(0x49e)](_0x1cfd07(0x204d)+_0x2a4b47[_0x1cfd07(0x22e1)]+_0x1cfd07(0x1200)+_0x1cfd07(0x1b6))[_0x1cfd07(0x15ad)](_0x1cfd07(0x2998))[_0x1cfd07(0x728)](_0x18bed4)['ok']('OK')[_0x1cfd07(0x696)](_0x1cfd07(0x24ba));_0x571829[_0x1cfd07(0xe27)](_0x54a5d9)['then'](function(){const _0x5677ce=_0x1cfd07;_0x15ee4b[_0x5677ce(0x7d4)][_0x5677ce(0x2214)][_0x5677ce(0x159c)](_0x4c2a1b,0x1),_0x3efc63();},function(){const _0x43cbf0=_0x1cfd07;console[_0x43cbf0(0x1b4f)](_0x43cbf0(0x24ba));});}function _0xf01e63(_0xa9dbc2,_0x49aa57){const _0x5721bc=_0x3f403e;if(_0x15ee4b[_0x5721bc(0x7d4)][_0x5721bc(0x2214)][_0x5721bc(0xfd0)]){const _0x56a5e7=_0x15ee4b[_0x5721bc(0x7d4)]['rows'][_0x49aa57]?_0x15ee4b['whatsappAccountApps'][_0x5721bc(0x2214)][_0x49aa57]:_0x15ee4b[_0x5721bc(0x7d4)][_0x5721bc(0x2214)][0x0],_0x12c258=(_0x56a5e7[_0x5721bc(0x299b)]||_0x56a5e7[_0x5721bc(0x22e1)])[_0x5721bc(0x1680)]();_0x571829[_0x5721bc(0xe27)]({'controller':'EditWhatsappAccountApp'+_0x12c258+_0x5721bc(0x198f),'controllerAs':'vm','templateUrl':_0x3ac50b[_0x12c258],'parent':angular[_0x5721bc(0x1853)](_0x11024e[_0x5721bc(0x1ed9)]),'targetEvent':_0xa9dbc2,'clickOutsideToClose':!![],'locals':{'whatsappAccountApp':_0x56a5e7,'whatsappAccount':_0x15ee4b['whatsappAccount'],'crudPermissions':_0x15ee4b[_0x5721bc(0x1b1a)]}})[_0x5721bc(0x1cb0)](function(_0x261769){const _0x403559=_0x5721bc;_0x261769&&(_0x261769['id']?_0x15ee4b[_0x403559(0x7d4)][_0x403559(0x2214)][_0x49aa57]=_0x261769:_0x15ee4b['whatsappAccountApps'][_0x403559(0x2214)]['splice'](_0x49aa57,0x0,_0x261769),_0x3efc63());})[_0x5721bc(0x1c4)](function(_0x5352b3){const _0x2129fe=_0x5721bc;_0x5352b3&&_0x2c9d82[_0x2129fe(0x218e)]({'title':_0x5352b3['status']?'API:'+_0x5352b3[_0x2129fe(0x291)]+_0x2129fe(0x1657)+_0x5352b3[_0x2129fe(0xc22)]:_0x2129fe(0xd95),'msg':_0x5352b3[_0x2129fe(0x25c)]?JSON['stringify'](_0x5352b3[_0x2129fe(0x25c)]):_0x5352b3['toString']()});});}}function _0x33340d(_0x5be8b6,_0x232831){const _0x1487d7=_0x3f403e;if(_0x15ee4b[_0x1487d7(0x7d4)]['rows']['length']){const _0x3f72ff=_0x15ee4b[_0x1487d7(0x7d4)][_0x1487d7(0x2214)][_0x232831]?_0x15ee4b[_0x1487d7(0x7d4)][_0x1487d7(0x2214)][_0x232831]:_0x15ee4b['whatsappAccountApps'][_0x1487d7(0x2214)][0x0];_0x571829['show']({'controller':_0x1487d7(0x25b1),'controllerAs':'vm','templateUrl':_0x1880d0,'parent':angular['element'](_0x11024e['body']),'targetEvent':_0x5be8b6,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x3f72ff['interval'],'IntervalId':_0x3f72ff[_0x1487d7(0x1a60)],'application':!![]},'intervals':[],'crudPermissions':_0x15ee4b['crudPermissions']}})[_0x1487d7(0x1cb0)](function(_0x4580c5){const _0x4f222e=_0x1487d7;_0x4580c5&&(_0x3f72ff[_0x4f222e(0x1ac8)]=_0x4580c5[_0x4f222e(0x1ac8)]||_0x4f222e(0x965),_0x3f72ff[_0x4f222e(0x1a60)]=_0x4580c5['IntervalId']||null,_0x3efc63());});}}function _0x3efc63(){const _0x40f33b=_0x3f403e;let _0x112ceb=0x1,_0x3dc6ff=[];for(let _0x233b77=0x0;_0x233b77<_0x15ee4b[_0x40f33b(0x7d4)][_0x40f33b(0x2214)]['length'];_0x233b77++){const _0x3bb4bd=_0x15ee4b['whatsappAccountApps'][_0x40f33b(0x2214)][_0x233b77],_0x1d220b=[],_0x2c0c48=[];_0x3bb4bd['intervals']=_0x3bb4bd[_0x40f33b(0x1ac8)]!=='*,*,*,*'?[_0x3bb4bd[_0x40f33b(0x1ac8)]]:_0x3bb4bd[_0x40f33b(0x1a60)]?_0x39641b()['map'](_0x39641b()[_0x40f33b(0x1c99)](_0x15ee4b[_0x40f33b(0xb4a)][_0x40f33b(0x2214)],{'IntervalId':_0x3bb4bd['IntervalId']}),'interval'):[],_0x3bb4bd[_0x40f33b(0x2056)]=_0x15ee4b['whatsappAccount'][_0x40f33b(0x2056)],_0x3bb4bd[_0x40f33b(0x26a2)]=_0x15ee4b[_0x40f33b(0x83a)][_0x40f33b(0x26a2)],_0x3bb4bd[_0x40f33b(0x66a)]&&(_0x3bb4bd[_0x40f33b(0x66a)]=_0x3bb4bd[_0x40f33b(0x66a)][_0x40f33b(0x1680)]()),_0x3bb4bd[_0x40f33b(0x521)]=_0x1d220b[_0x40f33b(0xfd0)]?_0x39641b()[_0x40f33b(0x1f9e)](_0x1d220b)[_0x40f33b(0x521)]+0x1:_0x112ceb,_0x112ceb=(_0x2c0c48[_0x40f33b(0xfd0)]?_0x39641b()[_0x40f33b(0x1f9e)](_0x2c0c48)[_0x40f33b(0x521)]:_0x3bb4bd['priority'])+0x1,_0x3dc6ff=_0x39641b()[_0x40f33b(0x298a)](_0x3dc6ff,_0x1d220b,[_0x3bb4bd],_0x2c0c48);}_0x44044d[_0x40f33b(0x83a)][_0x40f33b(0x2598)]({'id':_0x15ee4b[_0x40f33b(0x83a)]['id']},_0x39641b()['sortBy'](_0x3dc6ff,'priority'))['$promise']['then'](function(_0x4d3214){const _0x4aacd6=_0x40f33b;_0x15ee4b[_0x4aacd6(0x7d4)]['rows']=_0x4d3214[_0x4aacd6(0x2214)];})[_0x40f33b(0x1c4)](function(_0x43513c){const _0x1ce6f9=_0x40f33b;console[_0x1ce6f9(0x218e)](_0x43513c);});}function _0x5f42c7(_0x3f2eed){_0x15ee4b['whatsappAccountApps']=_0x3f2eed||{'count':0x0,'rows':[]};}function _0xc7ea09(){const _0x38779d=_0x3f403e;return _0x44044d[_0x38779d(0x1ac8)]['get']({'fields':_0x38779d(0x18b2)})[_0x38779d(0x1d77)]['then'](function(_0x49aaf4){const _0x588aca=_0x38779d;_0x15ee4b[_0x588aca(0xb4a)]=_0x49aaf4;})[_0x38779d(0x1c4)](function(_0x31ada7){const _0x488af2=_0x38779d;console[_0x488af2(0x218e)](_0x31ada7);});}function _0x1f60b0(){const _0x3b20f3=_0x3f403e;_0x15ee4b[_0x3b20f3(0x2061)]=_0x44044d[_0x3b20f3(0x83a)][_0x3b20f3(0x930)](_0x15ee4b[_0x3b20f3(0xae2)],_0x5f42c7)['$promise'];}function _0x1d413e(_0x350a92){const _0x36a0f0=_0x3f403e;_0x39641b()[_0x36a0f0(0x152a)](_0x15ee4b['whatsappAccountApps'][_0x36a0f0(0x2214)],{'id':_0x350a92['id']}),_0x3efc63(),_0x2c9d82[_0x36a0f0(0x829)]({'title':_0x36a0f0(0x2923),'msg':_0x350a92[_0x36a0f0(0x22e1)]?_0x350a92[_0x36a0f0(0x22e1)]+_0x36a0f0(0x3f5):''});}function _0x329b9b(_0x219b98){const _0x478e13=_0x3f403e,_0x32d288=_0x571829[_0x478e13(0x1551)]()[_0x478e13(0x1386)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')[_0x478e13(0x49e)](_0x478e13(0x204d)+_0x15ee4b[_0x478e13(0xc5f)][_0x478e13(0xfd0)]+'\x20selected'+_0x478e13(0x1b6))[_0x478e13(0x15ad)](_0x478e13(0x531))[_0x478e13(0x728)](_0x219b98)['ok']('OK')[_0x478e13(0x696)](_0x478e13(0x24ba));_0x571829[_0x478e13(0xe27)](_0x32d288)[_0x478e13(0x1cb0)](function(){const _0x4ded8b=_0x478e13;_0x15ee4b[_0x4ded8b(0xc5f)][_0x4ded8b(0xf90)](function(_0x1cf954){const _0x151dbe=_0x4ded8b;_0x39641b()[_0x151dbe(0x152a)](_0x15ee4b[_0x151dbe(0x7d4)][_0x151dbe(0x2214)],{'id':_0x1cf954['id']});}),_0x15ee4b[_0x4ded8b(0xc5f)]=[],_0x3efc63();});}}const _0x466e41=_0x577659;;_0x50667f[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),'api',_0x5537c6(0x83a),'whatsappAccounts',_0x5537c6(0x217b),_0x5537c6(0x1ae),'Auth',_0x5537c6(0x1b1a)];function _0x50667f(_0x1c34ef,_0x53fb9d,_0x194c96,_0x57bcf1,_0x399a7d,_0x459704,_0x1b703f,_0x542e16,_0x3ea501,_0x520c0f){const _0x403327=_0x5537c6,_0x2f822c=this;_0x2f822c[_0x403327(0xe76)]=_0x3ea501[_0x403327(0x21e8)](),_0x2f822c['whatsappAccount']=_0x399a7d,_0x2f822c[_0x403327(0x1b1a)]=_0x520c0f,_0x2f822c[_0x403327(0x217b)]=_0x1b703f,_0x2f822c['items']=[],_0x2f822c[_0x403327(0x1372)]=[],_0x2f822c['selectedItems']=[],_0x2f822c[_0x403327(0xbd5)]=[],_0x2f822c['startingSelectedItems']=[],_0x2f822c[_0x403327(0x50c)]=![],_0x2f822c[_0x403327(0x1a34)]=_0x2328d7,_0x2f822c[_0x403327(0x1dd5)]=_0x199f0c,_0x2f822c['closeDialog']=_0x2fccdd,_0x2f822c[_0x403327(0x18c0)]={'readOnly':!_0x2f822c[_0x403327(0x1b1a)][_0x403327(0xb3d)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x403327(0x16b6),'line1':'fullname','line2':[_0x403327(0x16b6),_0x403327(0xdbd)],'line3':'','labelAll':_0x542e16[_0x403327(0x25cc)]('APP.ALL_AGENTS'),'labelSelected':_0x542e16[_0x403327(0x25cc)]('APP.SELECTED_AGENTS'),'transferCallback':function(){const _0x468969=_0x403327,_0x28ec73=_0x39641b()['xorBy'](_0x2f822c[_0x468969(0x1456)],_0x2f822c[_0x468969(0x20bb)],'id');_0x2f822c['pendingChanges']=_0x39641b()['isEmpty'](_0x28ec73)?![]:!![];}};function _0x2328d7(){const _0x5e4d5c=_0x403327;return _0x3ea501[_0x5e4d5c(0x22b6)](_0x5e4d5c(0x1c60))?_0x3a965a()[_0x5e4d5c(0x1c4)](function(_0x130d54){const _0x46a96c=_0x5e4d5c;_0x194c96[_0x46a96c(0x218e)]({'title':_0x130d54['status']?_0x46a96c(0xeb9)+_0x130d54[_0x46a96c(0x291)]+'\x20-\x20'+_0x130d54['statusText']:_0x46a96c(0x799),'msg':_0x130d54[_0x46a96c(0x291)]?JSON[_0x46a96c(0x2701)](_0x130d54['data']):_0x130d54[_0x46a96c(0x147f)]()});}):_0x2b589e()[_0x5e4d5c(0x1cb0)](function(_0x4e0144){const _0x1e381b=_0x5e4d5c;return _0x2f822c[_0x1e381b(0x1f74)]=_0x4e0144,_0x3a965a();})[_0x5e4d5c(0x1c4)](function(_0x5223f3){const _0x5b663b=_0x5e4d5c;_0x194c96[_0x5b663b(0x218e)]({'title':_0x5223f3['status']?_0x5b663b(0xeb9)+_0x5223f3[_0x5b663b(0x291)]+_0x5b663b(0x1657)+_0x5223f3['statusText']:'SYSTEM:GET_AGENTS','msg':_0x5223f3['status']?JSON[_0x5b663b(0x2701)](_0x5223f3[_0x5b663b(0x25c)]):_0x5223f3[_0x5b663b(0x147f)]()});});}function _0x2b589e(){return _0x53fb9d(function(_0x5718da,_0xf58c97){const _0x4bce84=a0_0x5cbd;_0x57bcf1[_0x4bce84(0x2199)][_0x4bce84(0xbf7)]({'userProfileId':_0x2f822c[_0x4bce84(0xe76)][_0x4bce84(0x13c1)],'name':_0x4bce84(0x2536)})[_0x4bce84(0x1d77)][_0x4bce84(0x1cb0)](function(_0x425282){const _0x466255=_0x4bce84,_0x56e1f2=_0x425282&&_0x425282[_0x466255(0x2214)]?_0x425282[_0x466255(0x2214)][0x0]:null;_0x5718da(_0x56e1f2);})[_0x4bce84(0x1c4)](function(_0x2d7997){_0xf58c97(_0x2d7997);});});}function _0x3a965a(){return _0x53fb9d(function(_0x2e2d2b,_0x5ee088){const _0x249a27=a0_0x5cbd;return _0xe18b43()[_0x249a27(0x1cb0)](function(_0x4bd0cd){const _0x5c4c5c=_0x249a27;return _0x2f822c[_0x5c4c5c(0x122f)]=_0x4bd0cd['rows']?_0x4bd0cd['rows']:[],_0x3ea501[_0x5c4c5c(0x22b6)](_0x5c4c5c(0x1c60))?_0x4bd0cd:_0x2f822c[_0x5c4c5c(0x1f74)]?_0x2f822c[_0x5c4c5c(0x1f74)][_0x5c4c5c(0x12f4)]?_0x4bd0cd:_0x333049():null;})['then'](function(_0x49990d){const _0x131ca5=_0x249a27,_0x15681a=_0x49990d&&_0x49990d[_0x131ca5(0x2214)]?_0x49990d[_0x131ca5(0x2214)]:[];return _0x2f822c[_0x131ca5(0x1372)]=_0x39641b()[_0x131ca5(0x1de2)](_0x15681a,function(_0x51b90d){const _0x3000ac=_0x131ca5;return _0x39641b()[_0x3000ac(0x13b4)](_0x2f822c[_0x3000ac(0x122f)],{'id':_0x3ea501[_0x3000ac(0x22b6)](_0x3000ac(0x1c60))||_0x2f822c[_0x3000ac(0x1f74)][_0x3000ac(0x12f4)]?_0x51b90d['id']:_0x51b90d['resourceId']});}),_0x2f822c['startingAllowedItems']=angular[_0x131ca5(0x17fe)](_0x2f822c[_0x131ca5(0x1372)]),_0x2f822c[_0x131ca5(0x122f)][_0x131ca5(0xf90)](function(_0x365293){const _0x123aa1=_0x131ca5,_0x5bf904=_0x39641b()['find'](_0x2f822c['allowedItems'],{'id':_0x365293['id']});_0x3ea501[_0x123aa1(0x22b6)]('admin')?_0x365293[_0x123aa1(0x1a4f)]=!![]:_0x365293['isValid']=typeof _0x5bf904!==_0x123aa1(0x16b5)?!![]:![];}),_0x1b2727();})[_0x249a27(0x1cb0)](function(_0x1150dc){const _0x5ba46f=_0x249a27,_0x492e05=_0x1150dc&&_0x1150dc[_0x5ba46f(0x2214)]?_0x1150dc[_0x5ba46f(0x2214)]:[];_0x2f822c[_0x5ba46f(0x20bb)]=_0x39641b()[_0x5ba46f(0x1de2)](_0x492e05,function(_0x12e553){const _0x1559fa=_0x5ba46f,_0x17f379=_0x39641b()[_0x1559fa(0x13b4)](_0x2f822c[_0x1559fa(0x122f)],{'id':_0x12e553['id']});return _0x17f379['penalty']=_0x12e553[_0x1559fa(0x1857)]?_0x1559fa(0x455)+_0x12e553[_0x1559fa(0x1857)]['penalty']:'',_0x17f379[_0x1559fa(0xdbd)]=typeof _0x12e553[_0x1559fa(0xdbd)]!==_0x1559fa(0x16b5)?'<'+_0x12e553['internal']+'>':'',_0x17f379;}),_0x2f822c[_0x5ba46f(0x1456)]=angular[_0x5ba46f(0x17fe)](_0x2f822c['selectedItems']),_0x2f822c['dualMultiselectOptions'][_0x5ba46f(0x20bb)]=_0x2f822c[_0x5ba46f(0x20bb)],_0x2f822c['dualMultiselectOptions'][_0x5ba46f(0x122f)]=_0x39641b()[_0x5ba46f(0x2128)](_0x2f822c[_0x5ba46f(0x1372)],_0x2f822c[_0x5ba46f(0x18c0)]['selectedItems'],'id'),_0x2e2d2b();})[_0x249a27(0x1c4)](function(_0x32db6){_0x5ee088(_0x32db6);});});}function _0x333049(){return _0x53fb9d(function(_0x8fa340,_0x3fb076){const _0x4a7e91=a0_0x5cbd;return _0x57bcf1[_0x4a7e91(0x1198)]['get']({'sectionId':_0x2f822c[_0x4a7e91(0x1f74)]['id'],'nolimit':!![]})[_0x4a7e91(0x1d77)][_0x4a7e91(0x1cb0)](function(_0x4fe1be){_0x8fa340(_0x4fe1be);})['catch'](function(_0x31b8ed){_0x3fb076(_0x31b8ed);});});}function _0x1b2727(){return _0x53fb9d(function(_0x5b8f73,_0x5beb78){const _0x53a956=a0_0x5cbd;return _0x57bcf1['whatsappAccount']['getAgents']({'id':_0x2f822c[_0x53a956(0x83a)]['id'],'fields':_0x53a956(0x251e),'nolimit':!![],'role':'agent'})['$promise']['then'](function(_0x49b323){_0x5b8f73(_0x49b323);})['catch'](function(_0x334a29){_0x5beb78(_0x334a29);});});}function _0xe18b43(){return _0x53fb9d(function(_0x53ff35,_0x31f8d6){const _0x38337c=a0_0x5cbd;return _0x57bcf1[_0x38337c(0xebe)][_0x38337c(0xbf7)]({'fields':_0x38337c(0x251e),'nolimit':!![],'role':_0x38337c(0x1eff)})['$promise'][_0x38337c(0x1cb0)](function(_0x5e636c){_0x53ff35(_0x5e636c);})[_0x38337c(0x1c4)](function(_0x594d74){_0x31f8d6(_0x594d74);});});}function _0x5e200e(_0x274699){return _0x53fb9d(function(_0xd47b9c,_0x18792e){const _0x16f5c2=a0_0x5cbd;_0x39641b()[_0x16f5c2(0xce9)](_0x274699)?_0xd47b9c():_0x57bcf1[_0x16f5c2(0x83a)][_0x16f5c2(0x2057)]({'id':_0x2f822c[_0x16f5c2(0x83a)]['id'],'ids':_0x39641b()[_0x16f5c2(0x1de2)](_0x274699,'id')})[_0x16f5c2(0x1d77)]['then'](function(){_0xd47b9c();})[_0x16f5c2(0x1c4)](function(_0x2bb178){_0x18792e(_0x2bb178);});});}function _0xf0692a(_0x2f052e){return _0x53fb9d(function(_0x43fbd1,_0x12b97e){const _0x123e2b=a0_0x5cbd;_0x39641b()[_0x123e2b(0xce9)](_0x2f052e)?_0x43fbd1():_0x57bcf1['whatsappAccount'][_0x123e2b(0x223f)]({'id':_0x2f822c['whatsappAccount']['id'],'ids':_0x39641b()[_0x123e2b(0x1de2)](_0x2f052e,'id')})[_0x123e2b(0x1d77)][_0x123e2b(0x1cb0)](function(){_0x43fbd1();})[_0x123e2b(0x1c4)](function(_0x40df60){_0x12b97e(_0x40df60);});});}function _0x199f0c(){const _0x2b6e3f=_0x403327,_0x27d0d0=_0x39641b()[_0x2b6e3f(0x2128)](_0x2f822c[_0x2b6e3f(0x1456)],_0x2f822c['selectedItems'],'id'),_0x5f5c92=_0x39641b()[_0x2b6e3f(0x2128)](_0x2f822c['selectedItems'],_0x2f822c[_0x2b6e3f(0x1456)],'id');return _0xf0692a(_0x27d0d0)['then'](function(){return _0x5e200e(_0x5f5c92);})[_0x2b6e3f(0x1cb0)](function(){const _0x42a607=_0x2b6e3f;_0x2f822c[_0x42a607(0x50c)]=![],_0x2f822c[_0x42a607(0xbd5)]=angular[_0x42a607(0x17fe)](_0x2f822c[_0x42a607(0x1372)]),_0x2f822c[_0x42a607(0x1456)]=angular[_0x42a607(0x17fe)](_0x2f822c[_0x42a607(0x20bb)]),_0x194c96[_0x42a607(0x829)]({'title':'SUCCESS','msg':_0x42a607(0x976)});})['catch'](function(_0x4edc0b){const _0x56be9d=_0x2b6e3f;_0x194c96['error']({'title':_0x4edc0b[_0x56be9d(0x291)]?'API:'+_0x4edc0b['status']+_0x56be9d(0x1657)+_0x4edc0b['statusText']:_0x56be9d(0x1221),'msg':_0x4edc0b[_0x56be9d(0x291)]?JSON[_0x56be9d(0x2701)](_0x4edc0b['data']):_0x4edc0b[_0x56be9d(0x147f)]()});});}function _0x2fccdd(){_0x1c34ef['hide']();}}const _0x29a049=_0x50667f;;_0x54eb77[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x2702),_0x5537c6(0x83a),'api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x54eb77(_0x338957,_0x350d48,_0x1cd8ef,_0x5a7901,_0x494293,_0x28a957,_0x3105c3,_0x386373){const _0x263fc4=_0x5537c6,_0x2c9fe5=this;_0x2c9fe5[_0x263fc4(0xe76)]=_0x3105c3['getCurrentUser'](),_0x2c9fe5['errors']=[],_0x2c9fe5[_0x263fc4(0x1386)]=_0x263fc4(0x1537)+(_0x5a7901['appType']||_0x5a7901[_0x263fc4(0x22e1)])[_0x263fc4(0x2335)](),_0x2c9fe5[_0x263fc4(0x1eff)]=angular[_0x263fc4(0x17fe)](_0x5a7901),_0x2c9fe5[_0x263fc4(0x1b1a)]=_0x386373,_0x2c9fe5[_0x263fc4(0xf4c)]={};if(_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x28df)])switch(_0x2c9fe5['agent'][_0x263fc4(0x299b)]?_0x2c9fe5[_0x263fc4(0x1eff)]['appType'][_0x263fc4(0x1680)]():_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x22e1)][_0x263fc4(0x1680)]()){case _0x263fc4(0x197c):break;case _0x263fc4(0x711):{const _0x516e26=_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x28df)][_0x263fc4(0xbe1)](',');_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0xee8)]=_0x516e26[0x0],_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x12b4)]=_0x516e26[0x1],_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x173a)]=_0x516e26[_0x263fc4(0x14cb)](0x2,_0x516e26['length'])[_0x263fc4(0x1f66)](',');}break;case _0x263fc4(0xece):{const _0x14e93a=_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x28df)][_0x263fc4(0xbe1)](',');_0x2c9fe5['agent'][_0x263fc4(0x2854)]=_0x14e93a[0x0],_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x12bf)]=_0x14e93a[0x1],_0x2c9fe5[_0x263fc4(0x1eff)]['privateKey']=_0x14e93a[0x2],_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x12b4)]=_0x14e93a[0x3],_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x173a)]=_0x14e93a[_0x263fc4(0x14cb)](0x4,_0x14e93a[_0x263fc4(0xfd0)])[_0x263fc4(0x1f66)](',');}break;case _0x263fc4(0x123a):{const _0xfe0de1=_0x2c9fe5['agent']['appdata'][_0x263fc4(0xbe1)](',');_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x413)]=_0xfe0de1[0x0],_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x21d9)]=_0xfe0de1[0x1],_0x2c9fe5['agent'][_0x263fc4(0xd50)]=_0xfe0de1[0x2],_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x1c7f)]=_0xfe0de1[0x3],_0x2c9fe5['agent'][_0x263fc4(0x173a)]=_0xfe0de1['slice'](0x4,_0xfe0de1[_0x263fc4(0xfd0)])[_0x263fc4(0x1f66)](',');}break;case _0x263fc4(0x1f71):{const _0x3bc6a9=_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x28df)][_0x263fc4(0xbe1)](',');_0x2c9fe5['agent'][_0x263fc4(0x18a5)]=isNaN(_0x3bc6a9[0x0])?_0x3bc6a9[0x0]:parseInt(_0x3bc6a9[0x0],0xa),_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x19d3)]=_0x3bc6a9[_0x263fc4(0x14cb)](0x1,_0x3bc6a9['length'])[_0x263fc4(0x1f66)](',');}break;case'message':_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x19d3)]=_0x2c9fe5['agent'][_0x263fc4(0x28df)];break;case _0x263fc4(0x19d1):_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x16b6)]=_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x28df)]['split']('=')[0x0],_0x2c9fe5[_0x263fc4(0x1eff)]['value']=_0x2c9fe5['agent']['appdata'][_0x263fc4(0xbe1)]('=')[0x1];break;case'agi':_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x12a7)]=_0x2c9fe5['agent']['appdata'];break;default:{const _0x219d47=_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x28df)][_0x263fc4(0xbe1)](',');_0x2c9fe5['agent'][_0x263fc4(0x1eff)]=_0x39641b()['isEmpty'](_0x219d47[0x0])?_0x219d47[0x0]:isNaN(_0x219d47[0x0])?_0x219d47[0x0]:parseInt(_0x219d47[0x0],0xa),_0x2c9fe5[_0x263fc4(0x1eff)]['timeout']=_0x39641b()[_0x263fc4(0xce9)](_0x219d47[0x1])?_0x219d47[0x1]:isNaN(_0x219d47[0x1])?_0x219d47[0x1]:parseInt(_0x219d47[0x1],0xa);}break;}else _0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x1719)]=0x1e;_0x2c9fe5[_0x263fc4(0x1eff)]['type']&&_0x2c9fe5[_0x263fc4(0x1eff)]['type'][_0x263fc4(0x1680)]()==='outbound'&&_0x2c9fe5['agent'][_0x263fc4(0x299b)]['toLowerCase']()===_0x263fc4(0x20ff)&&(_0x2c9fe5['agent'][_0x263fc4(0x586)]=_0x2c9fe5[_0x263fc4(0x1eff)]['phone']?_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x1340)][_0x263fc4(0xbe1)]('$')[0x0]:undefined,_0x2c9fe5['agent']['callerId']=_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x2816)]?'CALLERID(all)='+_0x2c9fe5[_0x263fc4(0x1eff)][_0x263fc4(0x2816)]:undefined);_0x2c9fe5[_0x263fc4(0x2357)]=_0x269081,_0x2c9fe5[_0x263fc4(0xda0)]=_0x112280,_0x3105c3[_0x263fc4(0x22b6)]('admin')?_0x28a957['user'][_0x263fc4(0xbf7)]({'fields':_0x263fc4(0x43c),'sort':_0x263fc4(0x16b6),'nolimit':'true','role':_0x263fc4(0x1eff)})[_0x263fc4(0x1d77)][_0x263fc4(0x1cb0)](function(_0x5a88f8){const _0x597318=_0x263fc4;_0x2c9fe5[_0x597318(0xc12)]=_0x5a88f8[_0x597318(0x2214)]||[];})['catch'](function(_0x4049de){const _0x26e51e=_0x263fc4;_0x1cd8ef['error']({'title':_0x4049de[_0x26e51e(0x291)]?_0x26e51e(0xeb9)+_0x4049de[_0x26e51e(0x291)]+'\x20-\x20'+_0x4049de[_0x26e51e(0xc22)]:_0x26e51e(0x799),'msg':_0x4049de[_0x26e51e(0x25c)]?JSON[_0x26e51e(0x2701)](_0x4049de[_0x26e51e(0x25c)]):_0x4049de[_0x26e51e(0x147f)]()});}):_0x28a957[_0x263fc4(0xebe)]['get']({'fields':_0x263fc4(0x43c),'sort':_0x263fc4(0x16b6),'nolimit':'true','role':_0x263fc4(0x1eff)})['$promise'][_0x263fc4(0x1cb0)](function(_0x1b0acc){const _0x1d06df=_0x263fc4;_0x2c9fe5['agents']=_0x1b0acc[_0x1d06df(0x2214)]||[];})[_0x263fc4(0x1cb0)](function(){const _0x15a9c9=_0x263fc4;return _0x28a957['userProfileSection'][_0x15a9c9(0xbf7)]({'userProfileId':_0x2c9fe5[_0x15a9c9(0xe76)][_0x15a9c9(0x13c1)],'sectionId':0xca})['$promise'];})[_0x263fc4(0x1cb0)](function(_0x28a07d){const _0x532a88=_0x263fc4,_0x498cd3=_0x28a07d&&_0x28a07d[_0x532a88(0x2214)]?_0x28a07d[_0x532a88(0x2214)][0x0]:null;if(!_0x498cd3){const _0x5227f7=[];let _0x520a1a=null;_0x2c9fe5[_0x532a88(0x1eff)]&&(_0x520a1a=_0x39641b()['find'](_0x2c9fe5[_0x532a88(0xc12)],{'name':_0x2c9fe5['agent']['agent']}));for(let _0x1b1d3e=0x0;_0x1b1d3e<_0x2c9fe5[_0x532a88(0xc12)]['length'];_0x1b1d3e++){_0x520a1a&&_0x2c9fe5[_0x532a88(0xc12)][_0x1b1d3e]['id']===_0x520a1a['id']&&(_0x2c9fe5[_0x532a88(0xc12)][_0x1b1d3e][_0x532a88(0x15da)]=![],_0x5227f7['push'](_0x2c9fe5['agents'][_0x1b1d3e]));}_0x2c9fe5[_0x532a88(0xc12)]=_0x5227f7;}else{if(!_0x498cd3[_0x532a88(0x12f4)])return _0x28a957[_0x532a88(0x1198)][_0x532a88(0xbf7)]({'sectionId':_0x498cd3['id']})[_0x532a88(0x1d77)]['then'](function(_0x29af6c){const _0x2556d0=_0x532a88,_0x279f5e=_0x39641b()[_0x2556d0(0x1de2)](_0x29af6c[_0x2556d0(0x2214)],function(_0x424076){const _0xa927f7=_0x2556d0;return _0x39641b()[_0xa927f7(0x13b4)](_0x2c9fe5['agents'],{'id':_0x424076[_0xa927f7(0x2982)]});});let _0x4607e4=null;_0x2c9fe5['agent']&&(_0x4607e4=_0x39641b()[_0x2556d0(0x13b4)](_0x2c9fe5[_0x2556d0(0xc12)],{'name':_0x2c9fe5['agent'][_0x2556d0(0x1eff)]}));if(_0x4607e4&&!_0x39641b()[_0x2556d0(0x727)](_0x279f5e,['id',_0x4607e4['id']])){const _0x307c4f=_0x39641b()[_0x2556d0(0x13b4)](_0x2c9fe5[_0x2556d0(0xc12)],{'id':_0x4607e4['id']});_0x307c4f[_0x2556d0(0x15da)]=![],_0x279f5e[_0x2556d0(0x2785)](_0x307c4f);}_0x2c9fe5[_0x2556d0(0xc12)]=_0x279f5e;});}})[_0x263fc4(0x1c4)](function(_0x90d28e){const _0x527a0b=_0x263fc4;_0x1cd8ef['error']({'title':_0x90d28e['status']?_0x527a0b(0xeb9)+_0x90d28e['status']+_0x527a0b(0x1657)+_0x90d28e[_0x527a0b(0xc22)]:'SYSTEM:GETagents','msg':_0x90d28e[_0x527a0b(0x25c)]?JSON[_0x527a0b(0x2701)](_0x90d28e['data']):_0x90d28e[_0x527a0b(0x147f)]()});});function _0x269081(){const _0x28db09=_0x263fc4;_0x2c9fe5[_0x28db09(0x1a7c)]=[];const _0x2cafae=[];_0x2c9fe5['agent'][_0x28db09(0x66a)]&&_0x2c9fe5[_0x28db09(0x1eff)][_0x28db09(0x66a)][_0x28db09(0x1680)]()===_0x28db09(0x895)&&_0x2c9fe5[_0x28db09(0x1eff)]['appType']===_0x28db09(0x25f4)&&(_0x2c9fe5[_0x28db09(0x1eff)][_0x28db09(0x1340)]=_0x494293['cutdigits']?(_0x2c9fe5[_0x28db09(0x1eff)][_0x28db09(0x586)]||'')+_0x28db09(0x19e4)+_0x494293['cutdigits']+'}':(_0x2c9fe5[_0x28db09(0x1eff)][_0x28db09(0x586)]||'')+_0x28db09(0xcdd),_0x494293[_0x28db09(0xf8d)]!==_0x28db09(0x13b1)?_0x2c9fe5[_0x28db09(0x1eff)][_0x28db09(0x2224)][_0x28db09(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0x2c9fe5[_0x28db09(0x1eff)]['options']+=_0x28db09(0x106a)):_0x2c9fe5[_0x28db09(0x1eff)][_0x28db09(0x2224)]=_0x2c9fe5[_0x28db09(0x1eff)][_0x28db09(0x2224)]['replace'](_0x28db09(0x106a),''));const _0x186821=_0x39641b()[_0x28db09(0x13b4)](_0x2c9fe5['agents'],{'name':_0x2c9fe5[_0x28db09(0x1eff)][_0x28db09(0x1eff)]});_0x186821&&(_0x2c9fe5[_0x28db09(0x1eff)][_0x28db09(0x21ab)]=_0x186821['id']);if(_0x2c9fe5[_0x28db09(0x1eff)][_0x28db09(0x299b)]&&_0x2c9fe5[_0x28db09(0x1eff)][_0x28db09(0x299b)]===_0x28db09(0x197c)){}else switch((_0x2c9fe5[_0x28db09(0x1eff)][_0x28db09(0x22e1)]||_0x2c9fe5[_0x28db09(0x1eff)][_0x28db09(0x299b)])['toLowerCase']()){case _0x28db09(0x19d1):_0x2c9fe5[_0x28db09(0x1eff)][_0x28db09(0x28df)]=_0x2c9fe5['agent'][_0x28db09(0x16b6)]+'='+_0x2c9fe5[_0x28db09(0x1eff)]['value'];break;case _0x28db09(0x197c):break;default:_0x2cafae[0x0]=_0x2c9fe5[_0x28db09(0x1eff)][_0x28db09(0x1eff)],_0x2cafae[0x1]=_0x2c9fe5['agent'][_0x28db09(0x1719)],_0x2c9fe5['agent'][_0x28db09(0x28df)]=_0x2cafae[_0x28db09(0x1f66)](',');}_0x112280(_0x2c9fe5[_0x28db09(0x1eff)]);}function _0x112280(_0x58a12a){const _0x184729=_0x263fc4;_0x338957[_0x184729(0x1426)](_0x58a12a);}}const _0x568158=_0x54eb77;;_0x264dc0[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x2702),'whatsappAccount','api','Auth',_0x5537c6(0x1b1a)];function _0x264dc0(_0xfb7ecd,_0x2ae1bb,_0x8f3937,_0x399fcd,_0x39fd07,_0x42acef,_0x17d425,_0x5b59a7){const _0x18b4e7=_0x5537c6,_0x213d5b=this;_0x213d5b['currentUser']=_0x17d425[_0x18b4e7(0x21e8)](),_0x213d5b['errors']=[],_0x213d5b['title']=_0x18b4e7(0x1537)+(_0x399fcd[_0x18b4e7(0x299b)]||_0x399fcd['app'])[_0x18b4e7(0x2335)](),_0x213d5b['amazonlex']=angular[_0x18b4e7(0x17fe)](_0x399fcd),_0x213d5b[_0x18b4e7(0x1b1a)]=_0x5b59a7,_0x213d5b['hasModulePermissions']={};if(_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x28df)])switch(_0x213d5b['amazonlex']['appType']?_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x299b)]['toLowerCase']():_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x22e1)][_0x18b4e7(0x1680)]()){case _0x18b4e7(0x197c):break;case _0x18b4e7(0x711):{const _0x47e49b=_0x213d5b['amazonlex']['appdata']['split'](',');_0x213d5b['amazonlex']['key']=_0x47e49b[0x0],_0x213d5b['amazonlex'][_0x18b4e7(0x12b4)]=_0x47e49b[0x1],_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x173a)]=_0x47e49b[_0x18b4e7(0x14cb)](0x2,_0x47e49b[_0x18b4e7(0xfd0)])[_0x18b4e7(0x1f66)](',');}break;case'dialogflowv2':{const _0x43bf4d=_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x28df)][_0x18b4e7(0xbe1)](',');_0x213d5b[_0x18b4e7(0x123a)]['projectId']=_0x43bf4d[0x0],_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x12bf)]=_0x43bf4d[0x1],_0x213d5b[_0x18b4e7(0x123a)]['privateKey']=_0x43bf4d[0x2],_0x213d5b['amazonlex'][_0x18b4e7(0x12b4)]=_0x43bf4d[0x3],_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x173a)]=_0x43bf4d['slice'](0x4,_0x43bf4d[_0x18b4e7(0xfd0)])[_0x18b4e7(0x1f66)](',');}break;case _0x18b4e7(0x123a):{const _0x46746c=_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x28df)][_0x18b4e7(0xbe1)](',');_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x413)]=_0x46746c[0x0],_0x213d5b[_0x18b4e7(0x123a)]['secretaccesskey']=_0x46746c[0x1],_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0xd50)]=_0x46746c[0x2],_0x213d5b[_0x18b4e7(0x123a)]['botname']=_0x46746c[0x3],_0x213d5b[_0x18b4e7(0x123a)]['welcomemessage']=_0x46746c[_0x18b4e7(0x14cb)](0x4,_0x46746c['length'])[_0x18b4e7(0x1f66)](',');}break;case _0x18b4e7(0x1f71):{const _0x5e8ee1=_0x213d5b['amazonlex'][_0x18b4e7(0x28df)]['split'](',');_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x18a5)]=isNaN(_0x5e8ee1[0x0])?_0x5e8ee1[0x0]:parseInt(_0x5e8ee1[0x0],0xa),_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x19d3)]=_0x5e8ee1[_0x18b4e7(0x14cb)](0x1,_0x5e8ee1[_0x18b4e7(0xfd0)])['join'](',');}break;case _0x18b4e7(0x155e):_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x19d3)]=_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x28df)];break;case _0x18b4e7(0x19d1):_0x213d5b[_0x18b4e7(0x123a)]['name']=_0x213d5b['amazonlex'][_0x18b4e7(0x28df)]['split']('=')[0x0],_0x213d5b['amazonlex']['value']=_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x28df)][_0x18b4e7(0xbe1)]('=')[0x1];break;case _0x18b4e7(0x4b4):_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x12a7)]=_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x28df)];break;default:{const _0x3f3dc2=_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x28df)][_0x18b4e7(0xbe1)](',');_0x213d5b[_0x18b4e7(0x123a)]['accesskeyid']=_0x39641b()[_0x18b4e7(0xce9)](_0x3f3dc2[0x0])?_0x3f3dc2[0x0]:isNaN(_0x3f3dc2[0x0])?_0x3f3dc2[0x0]:parseInt(_0x3f3dc2[0x0],0xa),_0x213d5b[_0x18b4e7(0x123a)]['secretaccesskey']=_0x39641b()['isEmpty'](_0x3f3dc2[0x1])?_0x3f3dc2[0x1]:isNaN(_0x3f3dc2[0x1])?_0x3f3dc2[0x1]:parseInt(_0x3f3dc2[0x1],0xa),_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0xd50)]=_0x39641b()[_0x18b4e7(0xce9)](_0x3f3dc2[0x2])?_0x3f3dc2[0x2]:isNaN(_0x3f3dc2[0x2])?_0x3f3dc2[0x2]:parseInt(_0x3f3dc2[0x2],0xa),_0x213d5b[_0x18b4e7(0x123a)]['botname']=_0x39641b()[_0x18b4e7(0xce9)](_0x3f3dc2[0x3])?_0x3f3dc2[0x3]:isNaN(_0x3f3dc2[0x3])?_0x3f3dc2[0x3]:parseInt(_0x3f3dc2[0x3],0xa),_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x173a)]=_0x39641b()[_0x18b4e7(0xce9)](_0x3f3dc2[0x4])?_0x3f3dc2[0x4]:isNaN(_0x3f3dc2[0x4])?_0x3f3dc2[0x4]:parseInt(_0x3f3dc2[0x4],0xa);}break;}else _0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0xd50)]=_0x18b4e7(0x512);_0x213d5b[_0x18b4e7(0x123a)]['type']&&_0x213d5b[_0x18b4e7(0x123a)]['type'][_0x18b4e7(0x1680)]()===_0x18b4e7(0x895)&&_0x213d5b[_0x18b4e7(0x123a)]['appType'][_0x18b4e7(0x1680)]()==='outbounddial'&&(_0x213d5b['amazonlex'][_0x18b4e7(0x586)]=_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x1340)]?_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x1340)][_0x18b4e7(0xbe1)]('$')[0x0]:undefined,_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x1e7c)]=_0x213d5b['amazonlex']['callerID']?'CALLERID(all)='+_0x213d5b[_0x18b4e7(0x123a)][_0x18b4e7(0x2816)]:undefined);_0x213d5b[_0x18b4e7(0x2357)]=_0x41ebe3,_0x213d5b[_0x18b4e7(0xda0)]=_0x334082;function _0x41ebe3(){const _0x3dde89=_0x18b4e7;_0x213d5b[_0x3dde89(0x1a7c)]=[];const _0x499a2e=[];_0x213d5b['amazonlex'][_0x3dde89(0x66a)]&&_0x213d5b['amazonlex']['type'][_0x3dde89(0x1680)]()===_0x3dde89(0x895)&&_0x213d5b[_0x3dde89(0x123a)][_0x3dde89(0x299b)]==='outboundDial'&&(_0x213d5b[_0x3dde89(0x123a)][_0x3dde89(0x1340)]=_0x39fd07[_0x3dde89(0x325)]?(_0x213d5b[_0x3dde89(0x123a)]['prefix']||'')+_0x3dde89(0x19e4)+_0x39fd07[_0x3dde89(0x325)]+'}':(_0x213d5b[_0x3dde89(0x123a)][_0x3dde89(0x586)]||'')+_0x3dde89(0xcdd),_0x39fd07[_0x3dde89(0xf8d)]!==_0x3dde89(0x13b1)?_0x213d5b['amazonlex'][_0x3dde89(0x2224)]['indexOf'](_0x3dde89(0x106a))<0x0&&(_0x213d5b[_0x3dde89(0x123a)]['options']+=_0x3dde89(0x106a)):_0x213d5b[_0x3dde89(0x123a)][_0x3dde89(0x2224)]=_0x213d5b[_0x3dde89(0x123a)][_0x3dde89(0x2224)][_0x3dde89(0x288f)](_0x3dde89(0x106a),''));if(_0x213d5b[_0x3dde89(0x123a)][_0x3dde89(0x299b)]&&_0x213d5b[_0x3dde89(0x123a)][_0x3dde89(0x299b)]===_0x3dde89(0x197c)){}else switch((_0x213d5b[_0x3dde89(0x123a)][_0x3dde89(0x22e1)]||_0x213d5b[_0x3dde89(0x123a)][_0x3dde89(0x299b)])['toLowerCase']()){case'set':_0x213d5b[_0x3dde89(0x123a)][_0x3dde89(0x28df)]=_0x213d5b[_0x3dde89(0x123a)][_0x3dde89(0x16b6)]+'='+_0x213d5b['amazonlex'][_0x3dde89(0x327)];break;case _0x3dde89(0x197c):break;default:_0x499a2e[0x0]=_0x213d5b['amazonlex'][_0x3dde89(0x413)],_0x499a2e[0x1]=_0x213d5b['amazonlex']['secretaccesskey'],_0x499a2e[0x2]=_0x213d5b[_0x3dde89(0x123a)][_0x3dde89(0xd50)],_0x499a2e[0x3]=_0x213d5b[_0x3dde89(0x123a)]['botname'],_0x499a2e[0x4]=_0x213d5b[_0x3dde89(0x123a)][_0x3dde89(0x173a)],_0x213d5b['amazonlex'][_0x3dde89(0x28df)]=_0x499a2e['join'](',');}_0x334082(_0x213d5b[_0x3dde89(0x123a)]);}function _0x334082(_0x3c37fc){_0xfb7ecd['hide'](_0x3c37fc);}}const _0x24176a=_0x264dc0;;_0x34ceea[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x2702),_0x5537c6(0x83a),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x34ceea(_0x46df9a,_0x440d4d,_0x2a896e,_0x2e1061,_0x507a26,_0x5caa13,_0x243912,_0x3cd50b){const _0x1ef0ba=_0x5537c6,_0x38a7bb=this;_0x38a7bb[_0x1ef0ba(0xe76)]=_0x243912[_0x1ef0ba(0x21e8)](),_0x38a7bb[_0x1ef0ba(0x1a7c)]=[],_0x38a7bb[_0x1ef0ba(0x1386)]=_0x1ef0ba(0x1537)+(_0x2e1061[_0x1ef0ba(0x299b)]||_0x2e1061['app'])['toUpperCase'](),_0x38a7bb['autoreply']=angular[_0x1ef0ba(0x17fe)](_0x2e1061),_0x38a7bb[_0x1ef0ba(0x1b1a)]=_0x3cd50b,_0x38a7bb[_0x1ef0ba(0xf4c)]={};if(_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x28df)])switch(_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x299b)]?_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x299b)][_0x1ef0ba(0x1680)]():_0x38a7bb[_0x1ef0ba(0x1f71)]['app'][_0x1ef0ba(0x1680)]()){case'custom':break;case _0x1ef0ba(0x711):{const _0x497ae0=_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x28df)]['split'](',');_0x38a7bb[_0x1ef0ba(0x1f71)]['key']=_0x497ae0[0x0],_0x38a7bb[_0x1ef0ba(0x1f71)]['language']=_0x497ae0[0x1],_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x173a)]=_0x497ae0['slice'](0x2,_0x497ae0[_0x1ef0ba(0xfd0)])[_0x1ef0ba(0x1f66)](',');}break;case _0x1ef0ba(0xece):{const _0x1a0384=_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x28df)][_0x1ef0ba(0xbe1)](',');_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x2854)]=_0x1a0384[0x0],_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x12bf)]=_0x1a0384[0x1],_0x38a7bb[_0x1ef0ba(0x1f71)]['privateKey']=_0x1a0384[0x2],_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x12b4)]=_0x1a0384[0x3],_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x173a)]=_0x1a0384[_0x1ef0ba(0x14cb)](0x4,_0x1a0384[_0x1ef0ba(0xfd0)])[_0x1ef0ba(0x1f66)](',');}break;case _0x1ef0ba(0x123a):{const _0x22d733=_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x28df)][_0x1ef0ba(0xbe1)](',');_0x38a7bb[_0x1ef0ba(0x1f71)]['accesskeyid']=_0x22d733[0x0],_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x21d9)]=_0x22d733[0x1],_0x38a7bb[_0x1ef0ba(0x1f71)]['lexregion']=_0x22d733[0x2],_0x38a7bb[_0x1ef0ba(0x1f71)]['botname']=_0x22d733[0x3],_0x38a7bb['autoreply'][_0x1ef0ba(0x173a)]=_0x22d733[_0x1ef0ba(0x14cb)](0x4,_0x22d733[_0x1ef0ba(0xfd0)])[_0x1ef0ba(0x1f66)](',');}break;case _0x1ef0ba(0x1f71):{const _0x2769c7=_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x28df)][_0x1ef0ba(0xbe1)](',');_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x18a5)]=isNaN(_0x2769c7[0x0])?_0x2769c7[0x0]:parseInt(_0x2769c7[0x0],0xa),_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x19d3)]=_0x2769c7['slice'](0x1,_0x2769c7[_0x1ef0ba(0xfd0)])[_0x1ef0ba(0x1f66)](',');}break;case'message':_0x38a7bb[_0x1ef0ba(0x1f71)]['text']=_0x38a7bb['autoreply'][_0x1ef0ba(0x28df)];break;case _0x1ef0ba(0x19d1):_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x16b6)]=_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x28df)][_0x1ef0ba(0xbe1)]('=')[0x0],_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x327)]=_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x28df)]['split']('=')[0x1];break;case _0x1ef0ba(0x4b4):_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x12a7)]=_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x28df)];break;default:{const _0x273cf3=_0x38a7bb['autoreply'][_0x1ef0ba(0x28df)]['split'](',');_0x38a7bb['autoreply']['times']=_0x39641b()[_0x1ef0ba(0xce9)](_0x273cf3[0x0])?_0x273cf3[0x0]:isNaN(_0x273cf3[0x0])?_0x273cf3[0x0]:parseInt(_0x273cf3[0x0],0xa),_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x19d3)]=_0x39641b()[_0x1ef0ba(0xce9)](_0x273cf3[0x1])?_0x273cf3[0x1]:isNaN(_0x273cf3[0x1])?_0x273cf3[0x1]:parseInt(_0x273cf3[0x1],0xa);}break;}else _0x38a7bb['autoreply'][_0x1ef0ba(0x18a5)]=0x1;_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x66a)]&&_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x66a)]['toLowerCase']()===_0x1ef0ba(0x895)&&_0x38a7bb['autoreply'][_0x1ef0ba(0x299b)]['toLowerCase']()===_0x1ef0ba(0x20ff)&&(_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x586)]=_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x1340)]?_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x1340)][_0x1ef0ba(0xbe1)]('$')[0x0]:undefined,_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x1e7c)]=_0x38a7bb[_0x1ef0ba(0x1f71)][_0x1ef0ba(0x2816)]?_0x1ef0ba(0x25f9)+_0x38a7bb['autoreply'][_0x1ef0ba(0x2816)]:undefined);_0x38a7bb[_0x1ef0ba(0x2357)]=_0x4d719f,_0x38a7bb['closeDialog']=_0x204787;function _0x4d719f(){const _0x882827=_0x1ef0ba;_0x38a7bb[_0x882827(0x1a7c)]=[];const _0x40c310=[];_0x38a7bb[_0x882827(0x1f71)][_0x882827(0x66a)]&&_0x38a7bb['autoreply'][_0x882827(0x66a)][_0x882827(0x1680)]()===_0x882827(0x895)&&_0x38a7bb['autoreply'][_0x882827(0x299b)]===_0x882827(0x25f4)&&(_0x38a7bb['autoreply'][_0x882827(0x1340)]=_0x507a26[_0x882827(0x325)]?(_0x38a7bb[_0x882827(0x1f71)][_0x882827(0x586)]||'')+_0x882827(0x19e4)+_0x507a26[_0x882827(0x325)]+'}':(_0x38a7bb[_0x882827(0x1f71)][_0x882827(0x586)]||'')+_0x882827(0xcdd),_0x507a26[_0x882827(0xf8d)]!==_0x882827(0x13b1)?_0x38a7bb[_0x882827(0x1f71)][_0x882827(0x2224)][_0x882827(0xd8a)](_0x882827(0x106a))<0x0&&(_0x38a7bb[_0x882827(0x1f71)][_0x882827(0x2224)]+=_0x882827(0x106a)):_0x38a7bb[_0x882827(0x1f71)]['options']=_0x38a7bb['autoreply']['options'][_0x882827(0x288f)]('U(xcally-mixmonitor-context)',''));if(_0x38a7bb[_0x882827(0x1f71)][_0x882827(0x299b)]&&_0x38a7bb[_0x882827(0x1f71)][_0x882827(0x299b)]===_0x882827(0x197c)){}else switch((_0x38a7bb['autoreply'][_0x882827(0x22e1)]||_0x38a7bb[_0x882827(0x1f71)][_0x882827(0x299b)])['toLowerCase']()){case _0x882827(0x19d1):_0x38a7bb['autoreply'][_0x882827(0x28df)]=_0x38a7bb['autoreply'][_0x882827(0x16b6)]+'='+_0x38a7bb[_0x882827(0x1f71)][_0x882827(0x327)];break;case _0x882827(0x197c):break;default:_0x40c310[0x0]=_0x38a7bb[_0x882827(0x1f71)][_0x882827(0x18a5)],_0x40c310[0x1]=_0x38a7bb[_0x882827(0x1f71)][_0x882827(0x19d3)],_0x38a7bb['autoreply'][_0x882827(0x28df)]=_0x40c310[_0x882827(0x1f66)](',');}_0x204787(_0x38a7bb[_0x882827(0x1f71)]);}function _0x204787(_0x2047f9){const _0x5aeee2=_0x1ef0ba;_0x46df9a[_0x5aeee2(0x1426)](_0x2047f9);}}const _0x388b54=_0x34ceea;;_0x54d475[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x2702),_0x5537c6(0x83a),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x54d475(_0x397b1a,_0x1eabd3,_0x500537,_0x300317,_0x2dac46,_0x34aa98,_0x129942,_0x1b9a5d){const _0x56d8e0=_0x5537c6,_0x417b63=this;_0x417b63['currentUser']=_0x129942['getCurrentUser'](),_0x417b63[_0x56d8e0(0x1a7c)]=[],_0x417b63[_0x56d8e0(0x1386)]=_0x56d8e0(0x1537)+(_0x300317[_0x56d8e0(0x299b)]||_0x300317[_0x56d8e0(0x22e1)])[_0x56d8e0(0x2335)](),_0x417b63['close']=angular[_0x56d8e0(0x17fe)](_0x300317),_0x417b63[_0x56d8e0(0x1b1a)]=_0x1b9a5d,_0x417b63[_0x56d8e0(0xf4c)]={};if(_0x417b63[_0x56d8e0(0xf3b)]['appdata'])switch(_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x299b)]?_0x417b63['close'][_0x56d8e0(0x299b)]['toLowerCase']():_0x417b63['close']['app'][_0x56d8e0(0x1680)]()){case _0x56d8e0(0x197c):break;case _0x56d8e0(0x711):{const _0x5199dd=_0x417b63['close'][_0x56d8e0(0x28df)]['split'](',');_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0xee8)]=_0x5199dd[0x0],_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x12b4)]=_0x5199dd[0x1],_0x417b63['close'][_0x56d8e0(0x173a)]=_0x5199dd['slice'](0x2,_0x5199dd[_0x56d8e0(0xfd0)])[_0x56d8e0(0x1f66)](',');}break;case _0x56d8e0(0xece):{const _0x55c7b1=_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x28df)][_0x56d8e0(0xbe1)](',');_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x2854)]=_0x55c7b1[0x0],_0x417b63['close'][_0x56d8e0(0x12bf)]=_0x55c7b1[0x1],_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x29d6)]=_0x55c7b1[0x2],_0x417b63['close'][_0x56d8e0(0x12b4)]=_0x55c7b1[0x3],_0x417b63[_0x56d8e0(0xf3b)]['welcomemessage']=_0x55c7b1[_0x56d8e0(0x14cb)](0x4,_0x55c7b1[_0x56d8e0(0xfd0)])[_0x56d8e0(0x1f66)](',');}break;case _0x56d8e0(0x123a):{const _0xd584e7=_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x28df)][_0x56d8e0(0xbe1)](',');_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x413)]=_0xd584e7[0x0],_0x417b63[_0x56d8e0(0xf3b)]['secretaccesskey']=_0xd584e7[0x1],_0x417b63['close'][_0x56d8e0(0xd50)]=_0xd584e7[0x2],_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x1c7f)]=_0xd584e7[0x3],_0x417b63['close'][_0x56d8e0(0x173a)]=_0xd584e7[_0x56d8e0(0x14cb)](0x4,_0xd584e7[_0x56d8e0(0xfd0)])[_0x56d8e0(0x1f66)](',');}break;case'autoreply':{const _0x2d2af0=_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x28df)][_0x56d8e0(0xbe1)](',');_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x18a5)]=isNaN(_0x2d2af0[0x0])?_0x2d2af0[0x0]:parseInt(_0x2d2af0[0x0],0xa),_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x19d3)]=_0x2d2af0[_0x56d8e0(0x14cb)](0x1,_0x2d2af0[_0x56d8e0(0xfd0)])['join'](',');}break;case _0x56d8e0(0x155e):_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x19d3)]=_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x28df)];break;case _0x56d8e0(0x19d1):_0x417b63['close'][_0x56d8e0(0x16b6)]=_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x28df)]['split']('=')[0x0],_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x327)]=_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x28df)][_0x56d8e0(0xbe1)]('=')[0x1];break;case'agi':_0x417b63[_0x56d8e0(0xf3b)]['project']=_0x417b63[_0x56d8e0(0xf3b)]['appdata'];break;default:{const _0x49fdd4=_0x417b63[_0x56d8e0(0xf3b)]['appdata'][_0x56d8e0(0xbe1)](',');_0x417b63[_0x56d8e0(0xf3b)]['disposition']=_0x39641b()[_0x56d8e0(0xce9)](_0x49fdd4[0x0])?_0x49fdd4[0x0]:isNaN(_0x49fdd4[0x0])?_0x49fdd4[0x0]:parseInt(_0x49fdd4[0x0],0xa);}break;}else{}_0x417b63[_0x56d8e0(0xf3b)]['type']&&_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x66a)][_0x56d8e0(0x1680)]()===_0x56d8e0(0x895)&&_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x299b)][_0x56d8e0(0x1680)]()===_0x56d8e0(0x20ff)&&(_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x586)]=_0x417b63['close'][_0x56d8e0(0x1340)]?_0x417b63['close']['phone'][_0x56d8e0(0xbe1)]('$')[0x0]:undefined,_0x417b63[_0x56d8e0(0xf3b)][_0x56d8e0(0x1e7c)]=_0x417b63['close'][_0x56d8e0(0x2816)]?_0x56d8e0(0x25f9)+_0x417b63[_0x56d8e0(0xf3b)]['callerID']:undefined);_0x417b63[_0x56d8e0(0x2357)]=_0x1910cb,_0x417b63[_0x56d8e0(0xda0)]=_0x56fee2;function _0x1910cb(){const _0x2cb691=_0x56d8e0;_0x417b63[_0x2cb691(0x1a7c)]=[];const _0x2f046a=[];_0x417b63[_0x2cb691(0xf3b)][_0x2cb691(0x66a)]&&_0x417b63[_0x2cb691(0xf3b)]['type']['toLowerCase']()===_0x2cb691(0x895)&&_0x417b63[_0x2cb691(0xf3b)][_0x2cb691(0x299b)]==='outboundDial'&&(_0x417b63[_0x2cb691(0xf3b)]['phone']=_0x2dac46['cutdigits']?(_0x417b63['close'][_0x2cb691(0x586)]||'')+_0x2cb691(0x19e4)+_0x2dac46[_0x2cb691(0x325)]+'}':(_0x417b63[_0x2cb691(0xf3b)][_0x2cb691(0x586)]||'')+_0x2cb691(0xcdd),_0x2dac46['recordingFormat']!=='none'?_0x417b63[_0x2cb691(0xf3b)][_0x2cb691(0x2224)]['indexOf'](_0x2cb691(0x106a))<0x0&&(_0x417b63['close'][_0x2cb691(0x2224)]+=_0x2cb691(0x106a)):_0x417b63[_0x2cb691(0xf3b)][_0x2cb691(0x2224)]=_0x417b63['close'][_0x2cb691(0x2224)]['replace']('U(xcally-mixmonitor-context)',''));if(_0x417b63[_0x2cb691(0xf3b)]['appType']&&_0x417b63['close'][_0x2cb691(0x299b)]===_0x2cb691(0x197c)){}else switch((_0x417b63[_0x2cb691(0xf3b)]['app']||_0x417b63['close']['appType'])[_0x2cb691(0x1680)]()){case _0x2cb691(0x19d1):_0x417b63[_0x2cb691(0xf3b)][_0x2cb691(0x28df)]=_0x417b63['close'][_0x2cb691(0x16b6)]+'='+_0x417b63[_0x2cb691(0xf3b)]['value'];break;case _0x2cb691(0x197c):break;default:_0x2f046a[0x0]=_0x417b63['close']['disposition'],_0x417b63['close'][_0x2cb691(0x28df)]=_0x2f046a[_0x2cb691(0x1f66)](',');}_0x56fee2(_0x417b63[_0x2cb691(0xf3b)]);}function _0x56fee2(_0x36d0f0){const _0x2e337f=_0x56d8e0;_0x397b1a[_0x2e337f(0x1426)](_0x36d0f0);}}const _0x4ad82c=_0x54d475;;_0x24741c[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty','whatsappAccountApp',_0x5537c6(0x83a),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x24741c(_0x43ebda,_0x460d7a,_0xc19572,_0x32ce8e,_0x1b7bc3,_0x2fd68b,_0x57205f,_0x4083d3){const _0x56e966=_0x5537c6,_0xeb1a9e=this;_0xeb1a9e[_0x56e966(0xe76)]=_0x57205f[_0x56e966(0x21e8)](),_0xeb1a9e[_0x56e966(0x1a7c)]=[],_0xeb1a9e[_0x56e966(0x1386)]=_0x56e966(0x1537)+(_0x32ce8e['appType']||_0x32ce8e[_0x56e966(0x22e1)])[_0x56e966(0x2335)](),_0xeb1a9e[_0x56e966(0x711)]=angular[_0x56e966(0x17fe)](_0x32ce8e),_0xeb1a9e['crudPermissions']=_0x4083d3,_0xeb1a9e[_0x56e966(0xf4c)]={};if(_0xeb1a9e[_0x56e966(0x711)]['appdata'])switch(_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x299b)]?_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x299b)][_0x56e966(0x1680)]():_0xeb1a9e['dialogflow'][_0x56e966(0x22e1)][_0x56e966(0x1680)]()){case _0x56e966(0x197c):break;case _0x56e966(0x711):{const _0xc08cd3=_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x28df)][_0x56e966(0xbe1)](',');_0xeb1a9e[_0x56e966(0x711)]['key']=_0xc08cd3[0x0],_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x12b4)]=_0xc08cd3[0x1],_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x173a)]=_0xc08cd3[_0x56e966(0x14cb)](0x2,_0xc08cd3[_0x56e966(0xfd0)])[_0x56e966(0x1f66)](',');}break;case _0x56e966(0xece):{const _0x53e5f8=_0xeb1a9e[_0x56e966(0x711)]['appdata'][_0x56e966(0xbe1)](',');_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x2854)]=_0x53e5f8[0x0],_0xeb1a9e['dialogflow'][_0x56e966(0x12bf)]=_0x53e5f8[0x1],_0xeb1a9e['dialogflow']['privateKey']=_0x53e5f8[0x2],_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x12b4)]=_0x53e5f8[0x3],_0xeb1a9e['dialogflow'][_0x56e966(0x173a)]=_0x53e5f8['slice'](0x4,_0x53e5f8[_0x56e966(0xfd0)])['join'](',');}break;case _0x56e966(0x123a):{const _0x11c051=_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x28df)][_0x56e966(0xbe1)](',');_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x413)]=_0x11c051[0x0],_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x21d9)]=_0x11c051[0x1],_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0xd50)]=_0x11c051[0x2],_0xeb1a9e['dialogflow']['botname']=_0x11c051[0x3],_0xeb1a9e['dialogflow'][_0x56e966(0x173a)]=_0x11c051[_0x56e966(0x14cb)](0x4,_0x11c051[_0x56e966(0xfd0)])[_0x56e966(0x1f66)](',');}break;case'autoreply':{const _0x5ecb28=_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x28df)][_0x56e966(0xbe1)](',');_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x18a5)]=isNaN(_0x5ecb28[0x0])?_0x5ecb28[0x0]:parseInt(_0x5ecb28[0x0],0xa),_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x19d3)]=_0x5ecb28[_0x56e966(0x14cb)](0x1,_0x5ecb28['length'])['join'](',');}break;case _0x56e966(0x155e):_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x19d3)]=_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x28df)];break;case _0x56e966(0x19d1):_0xeb1a9e['dialogflow']['name']=_0xeb1a9e[_0x56e966(0x711)]['appdata']['split']('=')[0x0],_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x327)]=_0xeb1a9e['dialogflow'][_0x56e966(0x28df)][_0x56e966(0xbe1)]('=')[0x1];break;case _0x56e966(0x4b4):_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x12a7)]=_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x28df)];break;default:{const _0x354386=_0xeb1a9e[_0x56e966(0x711)]['appdata'][_0x56e966(0xbe1)](',');_0xeb1a9e[_0x56e966(0x711)]['key']=_0x39641b()[_0x56e966(0xce9)](_0x354386[0x0])?_0x354386[0x0]:isNaN(_0x354386[0x0])?_0x354386[0x0]:parseInt(_0x354386[0x0],0xa),_0xeb1a9e[_0x56e966(0x711)]['language']=_0x39641b()[_0x56e966(0xce9)](_0x354386[0x1])?_0x354386[0x1]:isNaN(_0x354386[0x1])?_0x354386[0x1]:parseInt(_0x354386[0x1],0xa),_0xeb1a9e[_0x56e966(0x711)]['welcomemessage']=_0x39641b()[_0x56e966(0xce9)](_0x354386[0x2])?_0x354386[0x2]:isNaN(_0x354386[0x2])?_0x354386[0x2]:parseInt(_0x354386[0x2],0xa);}break;}else _0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x12b4)]='en';_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x66a)]&&_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x66a)][_0x56e966(0x1680)]()===_0x56e966(0x895)&&_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x299b)]['toLowerCase']()==='outbounddial'&&(_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x586)]=_0xeb1a9e['dialogflow'][_0x56e966(0x1340)]?_0xeb1a9e[_0x56e966(0x711)]['phone'][_0x56e966(0xbe1)]('$')[0x0]:undefined,_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x1e7c)]=_0xeb1a9e[_0x56e966(0x711)]['callerID']?_0x56e966(0x25f9)+_0xeb1a9e[_0x56e966(0x711)][_0x56e966(0x2816)]:undefined);_0xeb1a9e[_0x56e966(0x2357)]=_0x5bad0c,_0xeb1a9e[_0x56e966(0xda0)]=_0x278620;function _0x5bad0c(){const _0x380a47=_0x56e966;_0xeb1a9e[_0x380a47(0x1a7c)]=[];const _0x3b3fbd=[];_0xeb1a9e[_0x380a47(0x711)][_0x380a47(0x66a)]&&_0xeb1a9e['dialogflow']['type'][_0x380a47(0x1680)]()===_0x380a47(0x895)&&_0xeb1a9e[_0x380a47(0x711)][_0x380a47(0x299b)]===_0x380a47(0x25f4)&&(_0xeb1a9e[_0x380a47(0x711)][_0x380a47(0x1340)]=_0x1b7bc3[_0x380a47(0x325)]?(_0xeb1a9e['dialogflow'][_0x380a47(0x586)]||'')+_0x380a47(0x19e4)+_0x1b7bc3['cutdigits']+'}':(_0xeb1a9e[_0x380a47(0x711)][_0x380a47(0x586)]||'')+'${EXTEN}',_0x1b7bc3[_0x380a47(0xf8d)]!=='none'?_0xeb1a9e[_0x380a47(0x711)][_0x380a47(0x2224)][_0x380a47(0xd8a)](_0x380a47(0x106a))<0x0&&(_0xeb1a9e[_0x380a47(0x711)][_0x380a47(0x2224)]+='U(xcally-mixmonitor-context)'):_0xeb1a9e[_0x380a47(0x711)][_0x380a47(0x2224)]=_0xeb1a9e[_0x380a47(0x711)]['options'][_0x380a47(0x288f)](_0x380a47(0x106a),''));if(_0xeb1a9e[_0x380a47(0x711)]['appType']&&_0xeb1a9e['dialogflow']['appType']===_0x380a47(0x197c)){}else switch((_0xeb1a9e[_0x380a47(0x711)][_0x380a47(0x22e1)]||_0xeb1a9e['dialogflow']['appType'])[_0x380a47(0x1680)]()){case _0x380a47(0x19d1):_0xeb1a9e['dialogflow'][_0x380a47(0x28df)]=_0xeb1a9e[_0x380a47(0x711)][_0x380a47(0x16b6)]+'='+_0xeb1a9e[_0x380a47(0x711)][_0x380a47(0x327)];break;case _0x380a47(0x197c):break;default:_0x3b3fbd[0x0]=_0xeb1a9e[_0x380a47(0x711)]['key'],_0x3b3fbd[0x1]=_0xeb1a9e['dialogflow'][_0x380a47(0x12b4)],_0x3b3fbd[0x2]=_0xeb1a9e[_0x380a47(0x711)][_0x380a47(0x173a)],_0xeb1a9e[_0x380a47(0x711)][_0x380a47(0x28df)]=_0x3b3fbd[_0x380a47(0x1f66)](',');}_0x278620(_0xeb1a9e[_0x380a47(0x711)]);}function _0x278620(_0x4e3265){const _0x4a17d0=_0x56e966;_0x43ebda[_0x4a17d0(0x1426)](_0x4e3265);}}const _0x47899b=_0x24741c;;_0x29bef4['$inject']=['$mdDialog','$q',_0x5537c6(0x9bf),_0x5537c6(0x2702),_0x5537c6(0x83a),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x29bef4(_0x4c666e,_0x308a05,_0x355551,_0x5da79e,_0x90bc74,_0x39fa0a,_0x3b4390,_0x25bebf){const _0x88f754=_0x5537c6,_0x4b1a34=this;_0x4b1a34[_0x88f754(0xe76)]=_0x3b4390[_0x88f754(0x21e8)](),_0x4b1a34[_0x88f754(0x1a7c)]=[],_0x4b1a34[_0x88f754(0x1386)]='WHATSAPP.EDIT_'+(_0x5da79e['appType']||_0x5da79e[_0x88f754(0x22e1)])['toUpperCase'](),_0x4b1a34[_0x88f754(0x13a0)]=angular['copy'](_0x5da79e),_0x4b1a34[_0x88f754(0x1b1a)]=_0x25bebf,_0x4b1a34[_0x88f754(0xf4c)]={};if(_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x28df)])switch(_0x4b1a34[_0x88f754(0x13a0)]['appType']?_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x299b)][_0x88f754(0x1680)]():_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x22e1)][_0x88f754(0x1680)]()){case'custom':break;case'dialogflow':{const _0xd2c56b=_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x28df)]['split'](',');_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0xee8)]=_0xd2c56b[0x0],_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x12b4)]=_0xd2c56b[0x1],_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x173a)]=_0xd2c56b[_0x88f754(0x14cb)](0x2,_0xd2c56b[_0x88f754(0xfd0)])[_0x88f754(0x1f66)](',');}break;case _0x88f754(0xece):{const _0x1d3684=_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x28df)][_0x88f754(0xbe1)](',');_0x4b1a34['gotoif'][_0x88f754(0x2854)]=_0x1d3684[0x0],_0x4b1a34[_0x88f754(0x13a0)]['clientEmail']=_0x1d3684[0x1],_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x29d6)]=_0x1d3684[0x2],_0x4b1a34[_0x88f754(0x13a0)]['language']=_0x1d3684[0x3],_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x173a)]=_0x1d3684['slice'](0x4,_0x1d3684['length'])[_0x88f754(0x1f66)](',');}break;case _0x88f754(0x123a):{const _0x1e2d85=_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x28df)][_0x88f754(0xbe1)](',');_0x4b1a34['gotoif'][_0x88f754(0x413)]=_0x1e2d85[0x0],_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x21d9)]=_0x1e2d85[0x1],_0x4b1a34['gotoif'][_0x88f754(0xd50)]=_0x1e2d85[0x2],_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x1c7f)]=_0x1e2d85[0x3],_0x4b1a34[_0x88f754(0x13a0)]['welcomemessage']=_0x1e2d85['slice'](0x4,_0x1e2d85['length'])[_0x88f754(0x1f66)](',');}break;case _0x88f754(0x1f71):{const _0x1ba667=_0x4b1a34['gotoif'][_0x88f754(0x28df)]['split'](',');_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x18a5)]=isNaN(_0x1ba667[0x0])?_0x1ba667[0x0]:parseInt(_0x1ba667[0x0],0xa),_0x4b1a34[_0x88f754(0x13a0)]['text']=_0x1ba667[_0x88f754(0x14cb)](0x1,_0x1ba667[_0x88f754(0xfd0)])[_0x88f754(0x1f66)](',');}break;case _0x88f754(0x155e):_0x4b1a34[_0x88f754(0x13a0)]['text']=_0x4b1a34[_0x88f754(0x13a0)]['appdata'];break;case _0x88f754(0x19d1):_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x16b6)]=_0x4b1a34[_0x88f754(0x13a0)]['appdata']['split']('=')[0x0],_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x327)]=_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x28df)][_0x88f754(0xbe1)]('=')[0x1];break;case _0x88f754(0x4b4):_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x12a7)]=_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x28df)];break;default:{const _0xae8375=_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x28df)][_0x88f754(0xbe1)](',');_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x166c)]=_0x39641b()['isEmpty'](_0xae8375[0x0])?_0xae8375[0x0]:isNaN(_0xae8375[0x0])?_0xae8375[0x0]:parseInt(_0xae8375[0x0],0xa),_0x4b1a34[_0x88f754(0x13a0)]['truepriority']=_0x39641b()[_0x88f754(0xce9)](_0xae8375[0x1])?_0xae8375[0x1]:isNaN(_0xae8375[0x1])?_0xae8375[0x1]:parseInt(_0xae8375[0x1],0xa),_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x17d)]=_0x39641b()[_0x88f754(0xce9)](_0xae8375[0x2])?_0xae8375[0x2]:isNaN(_0xae8375[0x2])?_0xae8375[0x2]:parseInt(_0xae8375[0x2],0xa);}break;}else{}_0x4b1a34[_0x88f754(0x13a0)]['type']&&_0x4b1a34[_0x88f754(0x13a0)]['type']['toLowerCase']()===_0x88f754(0x895)&&_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x299b)][_0x88f754(0x1680)]()==='outbounddial'&&(_0x4b1a34['gotoif'][_0x88f754(0x586)]=_0x4b1a34['gotoif']['phone']?_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x1340)]['split']('$')[0x0]:undefined,_0x4b1a34['gotoif'][_0x88f754(0x1e7c)]=_0x4b1a34[_0x88f754(0x13a0)][_0x88f754(0x2816)]?_0x88f754(0x25f9)+_0x4b1a34[_0x88f754(0x13a0)]['callerID']:undefined);_0x4b1a34[_0x88f754(0x2357)]=_0x370c66,_0x4b1a34[_0x88f754(0xda0)]=_0x11ddde;function _0x370c66(){const _0x37def9=_0x88f754;_0x4b1a34[_0x37def9(0x1a7c)]=[];const _0x398f58=[];_0x4b1a34[_0x37def9(0x13a0)][_0x37def9(0x66a)]&&_0x4b1a34[_0x37def9(0x13a0)]['type'][_0x37def9(0x1680)]()==='outbound'&&_0x4b1a34[_0x37def9(0x13a0)]['appType']==='outboundDial'&&(_0x4b1a34[_0x37def9(0x13a0)]['phone']=_0x90bc74[_0x37def9(0x325)]?(_0x4b1a34[_0x37def9(0x13a0)][_0x37def9(0x586)]||'')+_0x37def9(0x19e4)+_0x90bc74[_0x37def9(0x325)]+'}':(_0x4b1a34['gotoif'][_0x37def9(0x586)]||'')+_0x37def9(0xcdd),_0x90bc74[_0x37def9(0xf8d)]!=='none'?_0x4b1a34['gotoif'][_0x37def9(0x2224)][_0x37def9(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0x4b1a34[_0x37def9(0x13a0)]['options']+=_0x37def9(0x106a)):_0x4b1a34[_0x37def9(0x13a0)][_0x37def9(0x2224)]=_0x4b1a34[_0x37def9(0x13a0)][_0x37def9(0x2224)][_0x37def9(0x288f)](_0x37def9(0x106a),''));if(_0x4b1a34['gotoif'][_0x37def9(0x299b)]&&_0x4b1a34['gotoif'][_0x37def9(0x299b)]===_0x37def9(0x197c)){}else switch((_0x4b1a34[_0x37def9(0x13a0)]['app']||_0x4b1a34[_0x37def9(0x13a0)][_0x37def9(0x299b)])['toLowerCase']()){case'set':_0x4b1a34[_0x37def9(0x13a0)][_0x37def9(0x28df)]=_0x4b1a34[_0x37def9(0x13a0)]['name']+'='+_0x4b1a34[_0x37def9(0x13a0)][_0x37def9(0x327)];break;case'custom':break;default:_0x398f58[0x0]=_0x4b1a34[_0x37def9(0x13a0)][_0x37def9(0x166c)],_0x398f58[0x1]=_0x4b1a34[_0x37def9(0x13a0)]['truepriority'],_0x398f58[0x2]=_0x4b1a34[_0x37def9(0x13a0)]['falsepriority'],_0x4b1a34[_0x37def9(0x13a0)]['appdata']=_0x398f58['join'](',');}_0x11ddde(_0x4b1a34['gotoif']);}function _0x11ddde(_0xc4b6e3){_0x4c666e['hide'](_0xc4b6e3);}}const _0x205782=_0x29bef4;;_0x301c14[_0x5537c6(0x15b6)]=['$mdDialog','$q',_0x5537c6(0x9bf),'whatsappAccountApp','whatsappAccount','api',_0x5537c6(0x1774),'crudPermissions'];function _0x301c14(_0x17db4d,_0x4a9e2e,_0x39b59b,_0x158cce,_0x5220e3,_0x4b980e,_0x53b6f6,_0x18e55c){const _0x1b28f2=_0x5537c6,_0x22de0e=this;_0x22de0e[_0x1b28f2(0xe76)]=_0x53b6f6['getCurrentUser'](),_0x22de0e['errors']=[],_0x22de0e[_0x1b28f2(0x1386)]=_0x1b28f2(0x1537)+(_0x158cce[_0x1b28f2(0x299b)]||_0x158cce[_0x1b28f2(0x22e1)])['toUpperCase'](),_0x22de0e['gotop']=angular['copy'](_0x158cce),_0x22de0e[_0x1b28f2(0x1b1a)]=_0x18e55c,_0x22de0e[_0x1b28f2(0xf4c)]={};if(_0x22de0e['gotop'][_0x1b28f2(0x28df)])switch(_0x22de0e[_0x1b28f2(0x265b)]['appType']?_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x299b)][_0x1b28f2(0x1680)]():_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x22e1)][_0x1b28f2(0x1680)]()){case'custom':break;case'dialogflow':{const _0x2e707d=_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x28df)][_0x1b28f2(0xbe1)](',');_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0xee8)]=_0x2e707d[0x0],_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x12b4)]=_0x2e707d[0x1],_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x173a)]=_0x2e707d[_0x1b28f2(0x14cb)](0x2,_0x2e707d[_0x1b28f2(0xfd0)])[_0x1b28f2(0x1f66)](',');}break;case _0x1b28f2(0xece):{const _0x590efe=_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x28df)][_0x1b28f2(0xbe1)](',');_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x2854)]=_0x590efe[0x0],_0x22de0e['gotop'][_0x1b28f2(0x12bf)]=_0x590efe[0x1],_0x22de0e['gotop'][_0x1b28f2(0x29d6)]=_0x590efe[0x2],_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x12b4)]=_0x590efe[0x3],_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x173a)]=_0x590efe[_0x1b28f2(0x14cb)](0x4,_0x590efe[_0x1b28f2(0xfd0)])[_0x1b28f2(0x1f66)](',');}break;case _0x1b28f2(0x123a):{const _0x1abf02=_0x22de0e[_0x1b28f2(0x265b)]['appdata'][_0x1b28f2(0xbe1)](',');_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x413)]=_0x1abf02[0x0],_0x22de0e['gotop']['secretaccesskey']=_0x1abf02[0x1],_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0xd50)]=_0x1abf02[0x2],_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x1c7f)]=_0x1abf02[0x3],_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x173a)]=_0x1abf02[_0x1b28f2(0x14cb)](0x4,_0x1abf02['length'])[_0x1b28f2(0x1f66)](',');}break;case _0x1b28f2(0x1f71):{const _0x17be04=_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x28df)]['split'](',');_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x18a5)]=isNaN(_0x17be04[0x0])?_0x17be04[0x0]:parseInt(_0x17be04[0x0],0xa),_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x19d3)]=_0x17be04[_0x1b28f2(0x14cb)](0x1,_0x17be04[_0x1b28f2(0xfd0)])[_0x1b28f2(0x1f66)](',');}break;case _0x1b28f2(0x155e):_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x19d3)]=_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x28df)];break;case'set':_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x16b6)]=_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x28df)][_0x1b28f2(0xbe1)]('=')[0x0],_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x327)]=_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x28df)][_0x1b28f2(0xbe1)]('=')[0x1];break;case'agi':_0x22de0e['gotop'][_0x1b28f2(0x12a7)]=_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x28df)];break;default:{const _0x1b8a16=_0x22de0e['gotop'][_0x1b28f2(0x28df)][_0x1b28f2(0xbe1)](',');_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x521)]=_0x39641b()[_0x1b28f2(0xce9)](_0x1b8a16[0x0])?_0x1b8a16[0x0]:isNaN(_0x1b8a16[0x0])?_0x1b8a16[0x0]:parseInt(_0x1b8a16[0x0],0xa);}break;}else{}_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x66a)]&&_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x66a)][_0x1b28f2(0x1680)]()===_0x1b28f2(0x895)&&_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x299b)][_0x1b28f2(0x1680)]()==='outbounddial'&&(_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x586)]=_0x22de0e['gotop'][_0x1b28f2(0x1340)]?_0x22de0e[_0x1b28f2(0x265b)]['phone']['split']('$')[0x0]:undefined,_0x22de0e[_0x1b28f2(0x265b)]['callerId']=_0x22de0e[_0x1b28f2(0x265b)][_0x1b28f2(0x2816)]?'CALLERID(all)='+_0x22de0e[_0x1b28f2(0x265b)]['callerID']:undefined);_0x22de0e[_0x1b28f2(0x2357)]=_0xc36bfa,_0x22de0e[_0x1b28f2(0xda0)]=_0x24d877;function _0xc36bfa(){const _0xc7e064=_0x1b28f2;_0x22de0e[_0xc7e064(0x1a7c)]=[];const _0x57c5b9=[];_0x22de0e[_0xc7e064(0x265b)][_0xc7e064(0x66a)]&&_0x22de0e[_0xc7e064(0x265b)][_0xc7e064(0x66a)][_0xc7e064(0x1680)]()===_0xc7e064(0x895)&&_0x22de0e[_0xc7e064(0x265b)]['appType']===_0xc7e064(0x25f4)&&(_0x22de0e[_0xc7e064(0x265b)][_0xc7e064(0x1340)]=_0x5220e3['cutdigits']?(_0x22de0e[_0xc7e064(0x265b)][_0xc7e064(0x586)]||'')+_0xc7e064(0x19e4)+_0x5220e3[_0xc7e064(0x325)]+'}':(_0x22de0e[_0xc7e064(0x265b)][_0xc7e064(0x586)]||'')+_0xc7e064(0xcdd),_0x5220e3[_0xc7e064(0xf8d)]!==_0xc7e064(0x13b1)?_0x22de0e['gotop'][_0xc7e064(0x2224)][_0xc7e064(0xd8a)](_0xc7e064(0x106a))<0x0&&(_0x22de0e['gotop'][_0xc7e064(0x2224)]+=_0xc7e064(0x106a)):_0x22de0e[_0xc7e064(0x265b)]['options']=_0x22de0e['gotop']['options'][_0xc7e064(0x288f)](_0xc7e064(0x106a),''));if(_0x22de0e[_0xc7e064(0x265b)][_0xc7e064(0x299b)]&&_0x22de0e[_0xc7e064(0x265b)]['appType']==='custom'){}else switch((_0x22de0e[_0xc7e064(0x265b)]['app']||_0x22de0e['gotop'][_0xc7e064(0x299b)])[_0xc7e064(0x1680)]()){case _0xc7e064(0x19d1):_0x22de0e['gotop'][_0xc7e064(0x28df)]=_0x22de0e[_0xc7e064(0x265b)]['name']+'='+_0x22de0e[_0xc7e064(0x265b)][_0xc7e064(0x327)];break;case _0xc7e064(0x197c):break;default:_0x57c5b9[0x0]=_0x22de0e[_0xc7e064(0x265b)]['priority'],_0x22de0e[_0xc7e064(0x265b)]['appdata']=_0x57c5b9[_0xc7e064(0x1f66)](',');}_0x24d877(_0x22de0e['gotop']);}function _0x24d877(_0x264d54){const _0xd88a59=_0x1b28f2;_0x17db4d[_0xd88a59(0x1426)](_0x264d54);}}const _0x53cc2f=_0x301c14;;_0x3b4326[_0x5537c6(0x15b6)]=['$state',_0x5537c6(0xcb9),_0x5537c6(0x200d),_0x5537c6(0x1b2),_0x5537c6(0x1ac8),'intervals',_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1774),'crudPermissions'];function _0x3b4326(_0x3ae6ff,_0x2d8d94,_0x22bcbd,_0x22f9ef,_0x497479,_0x54807e,_0x33bc2d,_0x4b2244,_0x51d059,_0xa3595f){const _0xdd88b2=_0x5537c6,_0x55a02d=this;_0x55a02d[_0xdd88b2(0xe76)]=_0x51d059[_0xdd88b2(0x21e8)](),_0x55a02d[_0xdd88b2(0x1a7c)]=[],_0x55a02d[_0xdd88b2(0x1386)]=_0xdd88b2(0x1571),_0x55a02d['interval']=angular[_0xdd88b2(0x17fe)](_0x497479),_0x55a02d['intervals']=_0x54807e,_0x55a02d[_0xdd88b2(0x18c1)]=![],_0x55a02d[_0xdd88b2(0x2025)]=[_0xdd88b2(0x2017),'custom',_0xdd88b2(0x240)],_0x55a02d[_0xdd88b2(0x1b1a)]=_0xa3595f,_0x55a02d[_0xdd88b2(0x1275)]=_0x22f9ef[_0xdd88b2(0x1aae)](),_0x55a02d[_0xdd88b2(0x2055)]=_0x22f9ef[_0xdd88b2(0xa76)](),_0x55a02d['monthName']=_0x22f9ef['getMonthName'](),_0x55a02d[_0xdd88b2(0x202d)]=_0x22f9ef['getDaysOfMonth']();if(!_0x55a02d[_0xdd88b2(0x1ac8)])_0x55a02d['interval']={'interval':'*,*,*,*'},_0x55a02d[_0xdd88b2(0x66a)]=_0xdd88b2(0x2017),_0x55a02d[_0xdd88b2(0x1386)]=_0xdd88b2(0x287b),_0x55a02d[_0xdd88b2(0x18c1)]=!![];else{if(_0x55a02d[_0xdd88b2(0x1ac8)][_0xdd88b2(0x1ac8)]!==_0xdd88b2(0x965)){_0x55a02d[_0xdd88b2(0x66a)]='custom';const _0x5330b3=_0x55a02d[_0xdd88b2(0x1ac8)][_0xdd88b2(0x1ac8)][_0xdd88b2(0xbe1)](','),_0x1c6b37=_0x5330b3[0x0],_0x2fac37=_0x5330b3[0x1],_0x4c1320=_0x5330b3[0x2],_0x127eae=_0x5330b3[0x3];if(_0x1c6b37!=='*'){const _0x40adf3=_0x1c6b37[_0xdd88b2(0xbe1)]('-')[0x0],_0x2ab9d8=_0x1c6b37['split']('-')[0x1];let _0x35791c;_0x35791c=new Date(),_0x35791c['setHours'](Number(_0x40adf3[_0xdd88b2(0xbe1)](':')[0x0])),_0x35791c[_0xdd88b2(0x1622)](Number(_0x40adf3[_0xdd88b2(0xbe1)](':')[0x1])),_0x55a02d[_0xdd88b2(0x718)]=_0x35791c,_0x35791c=new Date(),_0x35791c[_0xdd88b2(0x201b)](Number(_0x2ab9d8[_0xdd88b2(0xbe1)](':')[0x0])),_0x35791c['setMinutes'](Number(_0x2ab9d8[_0xdd88b2(0xbe1)](':')[0x1])),_0x55a02d['timeRangeTo']=_0x35791c;}_0x2fac37!=='*'&&(_0x55a02d['dayOfWeekFrom']=_0x2fac37[_0xdd88b2(0xbe1)]('-')[0x0],_0x55a02d['dayOfWeekTo']=_0x2fac37[_0xdd88b2(0xbe1)]('-')[0x1]),_0x4c1320!=='*'&&(_0x55a02d[_0xdd88b2(0xd6f)]=_0x4c1320[_0xdd88b2(0xbe1)]('-')[0x0],_0x55a02d[_0xdd88b2(0x194d)]=_0x4c1320[_0xdd88b2(0xbe1)]('-')[0x1]),_0x127eae!=='*'&&(_0x55a02d[_0xdd88b2(0x1756)]=_0x127eae['split']('-')[0x0],_0x55a02d[_0xdd88b2(0xa68)]=_0x127eae[_0xdd88b2(0xbe1)]('-')[0x1]);}else _0x55a02d[_0xdd88b2(0x66a)]=_0xdd88b2(0x2017);}_0x3ae6ff['params']['id']&&!_0x55a02d[_0xdd88b2(0x1ac8)]['application']&&(_0x55a02d[_0xdd88b2(0x1ac8)][_0xdd88b2(0x1a60)]=_0x3ae6ff['params']['id']);_0x55a02d[_0xdd88b2(0x1ac8)]['IntervalId']&&_0x55a02d[_0xdd88b2(0x1ac8)]['application']&&(_0x55a02d[_0xdd88b2(0x66a)]=_0xdd88b2(0x240));_0x55a02d[_0xdd88b2(0x18b3)]=_0x3e41c3,_0x55a02d['saveInterval']=_0x98df43,_0x55a02d[_0xdd88b2(0xda0)]=_0x3b645f;_0x55a02d[_0xdd88b2(0x1ac8)]['application']&&(_0x51d059[_0xdd88b2(0x22b6)](_0xdd88b2(0x1c60))?_0x4b2244[_0xdd88b2(0x1ac8)][_0xdd88b2(0xbf7)]({'fields':_0xdd88b2(0x872),'IntervalId':_0xdd88b2(0xd38),'nolimit':!![]})[_0xdd88b2(0x1d77)][_0xdd88b2(0x1cb0)](function(_0x1ea688){const _0x2326b3=_0xdd88b2;_0x55a02d[_0x2326b3(0xb4a)]=_0x1ea688['rows']||[];})[_0xdd88b2(0x1c4)](function(_0x20057f){const _0x40f40f=_0xdd88b2;_0x33bc2d[_0x40f40f(0x218e)]({'title':_0x20057f[_0x40f40f(0x291)]?'API:'+_0x20057f['status']+'\x20-\x20'+_0x20057f[_0x40f40f(0xc22)]:_0x40f40f(0xdac),'msg':_0x20057f[_0x40f40f(0x25c)]?JSON[_0x40f40f(0x2701)](_0x20057f[_0x40f40f(0x25c)]):_0x20057f[_0x40f40f(0x147f)]()});}):_0x4b2244['interval'][_0xdd88b2(0xbf7)]({'fields':_0xdd88b2(0x872),'IntervalId':_0xdd88b2(0xd38),'nolimit':!![]})['$promise'][_0xdd88b2(0x1cb0)](function(_0x391bf4){const _0x3e4047=_0xdd88b2;_0x55a02d[_0x3e4047(0xb4a)]=_0x391bf4['rows']||[];})['then'](function(){const _0x16c930=_0xdd88b2;return _0x4b2244[_0x16c930(0x2199)][_0x16c930(0xbf7)]({'userProfileId':_0x55a02d[_0x16c930(0xe76)][_0x16c930(0x13c1)],'sectionId':0x3ec})['$promise'];})[_0xdd88b2(0x1cb0)](function(_0x3ad840){const _0x49ce8b=_0xdd88b2,_0x20d388=_0x3ad840&&_0x3ad840['rows']?_0x3ad840['rows'][0x0]:null;if(!_0x20d388)_0x55a02d[_0x49ce8b(0xb4a)]=[];else{if(!_0x20d388[_0x49ce8b(0x12f4)])return _0x4b2244[_0x49ce8b(0x1198)][_0x49ce8b(0xbf7)]({'sectionId':_0x20d388['id']})[_0x49ce8b(0x1d77)]['then'](function(_0x406316){const _0x2843d4=_0x49ce8b,_0x149142=_0x406316&&_0x406316[_0x2843d4(0x2214)]?_0x406316[_0x2843d4(0x2214)]:[],_0x1122ca=[];let _0x33d74d=null;_0x55a02d[_0x2843d4(0x1ac8)]&&(_0x33d74d=_0x39641b()[_0x2843d4(0x13b4)](_0x55a02d[_0x2843d4(0xb4a)],{'name':_0x55a02d[_0x2843d4(0x1ac8)][_0x2843d4(0x1a60)]})),_0x33d74d&&!_0x39641b()[_0x2843d4(0x727)](_0x149142,['resourceId',_0x33d74d['id']])&&_0x55a02d['intervals']['forEach'](function(_0x47aa7a){const _0x5e235c=_0x2843d4;_0x47aa7a['id']===_0x33d74d['id']&&(_0x47aa7a[_0x5e235c(0x15da)]=![],_0x1122ca[_0x5e235c(0x2785)](_0x47aa7a));}),_0x55a02d[_0x2843d4(0xb4a)]=_0x1122ca;});}})[_0xdd88b2(0x1c4)](function(_0x499cf2){const _0x526581=_0xdd88b2;_0x33bc2d[_0x526581(0x218e)]({'title':_0x499cf2['status']?'API:'+_0x499cf2[_0x526581(0x291)]+_0x526581(0x1657)+_0x499cf2[_0x526581(0xc22)]:_0x526581(0xdac),'msg':_0x499cf2[_0x526581(0x25c)]?JSON[_0x526581(0x2701)](_0x499cf2[_0x526581(0x25c)]):_0x499cf2['toString']()});}));function _0x1a8d9a(){const _0x402257=_0xdd88b2;switch(_0x55a02d[_0x402257(0x66a)]){case _0x402257(0x2017):case _0x402257(0x240):return _0x402257(0x965);case'custom':{const _0x323823=[];if(_0x55a02d[_0x402257(0x718)]!=='*'&&_0x55a02d[_0x402257(0x718)]&&_0x55a02d['timeRangeTo']){const _0x11f029=(_0x55a02d[_0x402257(0x718)][_0x402257(0x1169)]()<0xa?'0':'')+_0x55a02d[_0x402257(0x718)]['getHours']()+':'+((_0x55a02d[_0x402257(0x718)][_0x402257(0x851)]()<0xa?'0':'')+_0x55a02d['timeRangeFrom'][_0x402257(0x851)]()),_0x3e8c95=(_0x55a02d[_0x402257(0x64a)]['getHours']()<0xa?'0':'')+_0x55a02d[_0x402257(0x64a)]['getHours']()+':'+((_0x55a02d[_0x402257(0x64a)][_0x402257(0x851)]()<0xa?'0':'')+_0x55a02d['timeRangeTo']['getMinutes']());_0x323823['push'](_0x11f029+'-'+_0x3e8c95);}else _0x323823[_0x402257(0x2785)]('*');return _0x55a02d[_0x402257(0x28a6)]?_0x55a02d['dayOfWeekTo']?_0x323823['push'](_0x55a02d[_0x402257(0x28a6)]+'-'+_0x55a02d['dayOfWeekTo']):_0x323823['push'](_0x55a02d[_0x402257(0x28a6)]):_0x323823[_0x402257(0x2785)]('*'),_0x55a02d[_0x402257(0xd6f)]?_0x55a02d[_0x402257(0x194d)]?_0x323823[_0x402257(0x2785)](_0x55a02d['monthDayFrom']+'-'+_0x55a02d[_0x402257(0x194d)]):_0x323823[_0x402257(0x2785)](_0x55a02d['monthDayFrom']):_0x323823[_0x402257(0x2785)]('*'),_0x55a02d[_0x402257(0x1756)]?_0x55a02d[_0x402257(0xa68)]?_0x323823['push'](_0x55a02d[_0x402257(0x1756)]+'-'+_0x55a02d[_0x402257(0xa68)]):_0x323823[_0x402257(0x2785)](_0x55a02d[_0x402257(0x1756)]):_0x323823[_0x402257(0x2785)]('*'),_0x323823[_0x402257(0x1f66)]();}}}function _0x3e41c3(){const _0x55a8e2=_0xdd88b2;_0x55a02d[_0x55a8e2(0x1a7c)]=[],_0x55a02d[_0x55a8e2(0x1ac8)][_0x55a8e2(0x1ac8)]=_0x1a8d9a(),_0x4b2244[_0x55a8e2(0x1ac8)]['save'](_0x55a02d[_0x55a8e2(0x1ac8)])['$promise'][_0x55a8e2(0x1cb0)](function(_0x306e5c){const _0x254a0f=_0x55a8e2;_0x55a02d[_0x254a0f(0xb4a)][_0x254a0f(0x2785)](_0x306e5c),_0x33bc2d[_0x254a0f(0x829)]({'title':_0x254a0f(0x1d4e),'msg':_0x55a02d[_0x254a0f(0x1ac8)][_0x254a0f(0x16b6)]?_0x55a02d[_0x254a0f(0x1ac8)]['name']+_0x254a0f(0x470):''}),_0x3b645f();})['catch'](function(_0x5e9085){const _0x53dc18=_0x55a8e2;console[_0x53dc18(0x218e)](_0x5e9085),_0x55a02d['errors']=_0x5e9085[_0x53dc18(0x25c)]['errors']||[{'message':_0x5e9085[_0x53dc18(0x147f)](),'type':_0x53dc18(0x24f7)}];});}function _0x98df43(){const _0x14df32=_0xdd88b2;_0x55a02d[_0x14df32(0x1a7c)]=[],_0x55a02d[_0x14df32(0x1ac8)][_0x14df32(0x1ac8)]=_0x1a8d9a(),_0x55a02d[_0x14df32(0x1ac8)][_0x14df32(0x171b)]?(_0x55a02d[_0x14df32(0x66a)]!==_0x14df32(0x240)&&(_0x55a02d[_0x14df32(0x1ac8)]['IntervalId']=null),_0x3b645f(_0x55a02d[_0x14df32(0x1ac8)])):_0x4b2244['interval'][_0x14df32(0x687)]({'id':_0x55a02d[_0x14df32(0x1ac8)]['id']},_0x55a02d['interval'])[_0x14df32(0x1d77)][_0x14df32(0x1cb0)](function(_0x3f9916){const _0x391b75=_0x14df32,_0x58a4f2=_0x39641b()[_0x391b75(0x13b4)](_0x55a02d[_0x391b75(0xb4a)],{'id':_0x3f9916['id']});_0x58a4f2&&_0x39641b()[_0x391b75(0x9c1)](_0x58a4f2,_0x3f9916),_0x33bc2d[_0x391b75(0x829)]({'title':_0x391b75(0x1498),'msg':_0x391b75(0x2994)}),_0x3b645f();})['catch'](function(_0x28a22e){const _0x6f3b3b=_0x14df32;console[_0x6f3b3b(0x218e)](_0x28a22e),_0x55a02d['errors']=_0x28a22e[_0x6f3b3b(0x25c)][_0x6f3b3b(0x1a7c)]||[{'message':_0x28a22e[_0x6f3b3b(0x147f)](),'type':_0x6f3b3b(0x2505)}];});}function _0x3b645f(_0x31156f){_0x2d8d94['hide'](_0x31156f);}}const _0x28316b=_0x3b4326;;_0x243982[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x2702),_0x5537c6(0x83a),'api',_0x5537c6(0x1774),_0x5537c6(0x1b1a)];function _0x243982(_0x168848,_0x27e9d8,_0x112213,_0x4a2841,_0x412b8e,_0x15d5aa,_0x405bb6,_0x40138a){const _0x508d6f=_0x5537c6,_0x54c26c=this;_0x54c26c[_0x508d6f(0xe76)]=_0x405bb6[_0x508d6f(0x21e8)](),_0x54c26c[_0x508d6f(0x1a7c)]=[],_0x54c26c[_0x508d6f(0x1386)]='WHATSAPP.EDIT_'+(_0x4a2841['appType']||_0x4a2841[_0x508d6f(0x22e1)])['toUpperCase'](),_0x54c26c['noop']=angular[_0x508d6f(0x17fe)](_0x4a2841),_0x54c26c[_0x508d6f(0x1b1a)]=_0x40138a,_0x54c26c[_0x508d6f(0xf4c)]={};if(_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x28df)])switch(_0x54c26c['noop'][_0x508d6f(0x299b)]?_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x299b)][_0x508d6f(0x1680)]():_0x54c26c['noop'][_0x508d6f(0x22e1)][_0x508d6f(0x1680)]()){case'custom':break;case'dialogflow':{const _0x13ee51=_0x54c26c['noop'][_0x508d6f(0x28df)][_0x508d6f(0xbe1)](',');_0x54c26c['noop']['key']=_0x13ee51[0x0],_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x12b4)]=_0x13ee51[0x1],_0x54c26c[_0x508d6f(0x1234)]['welcomemessage']=_0x13ee51[_0x508d6f(0x14cb)](0x2,_0x13ee51[_0x508d6f(0xfd0)])[_0x508d6f(0x1f66)](',');}break;case'dialogflowv2':{const _0x4ae2ea=_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x28df)][_0x508d6f(0xbe1)](',');_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x2854)]=_0x4ae2ea[0x0],_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x12bf)]=_0x4ae2ea[0x1],_0x54c26c['noop'][_0x508d6f(0x29d6)]=_0x4ae2ea[0x2],_0x54c26c[_0x508d6f(0x1234)]['language']=_0x4ae2ea[0x3],_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x173a)]=_0x4ae2ea['slice'](0x4,_0x4ae2ea[_0x508d6f(0xfd0)])['join'](',');}break;case'amazonlex':{const _0x3d14f3=_0x54c26c[_0x508d6f(0x1234)]['appdata'][_0x508d6f(0xbe1)](',');_0x54c26c['noop'][_0x508d6f(0x413)]=_0x3d14f3[0x0],_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x21d9)]=_0x3d14f3[0x1],_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0xd50)]=_0x3d14f3[0x2],_0x54c26c['noop'][_0x508d6f(0x1c7f)]=_0x3d14f3[0x3],_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x173a)]=_0x3d14f3[_0x508d6f(0x14cb)](0x4,_0x3d14f3[_0x508d6f(0xfd0)])['join'](',');}break;case _0x508d6f(0x1f71):{const _0x105713=_0x54c26c['noop']['appdata'][_0x508d6f(0xbe1)](',');_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x18a5)]=isNaN(_0x105713[0x0])?_0x105713[0x0]:parseInt(_0x105713[0x0],0xa),_0x54c26c[_0x508d6f(0x1234)]['text']=_0x105713[_0x508d6f(0x14cb)](0x1,_0x105713['length'])['join'](',');}break;case'message':_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x19d3)]=_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x28df)];break;case _0x508d6f(0x19d1):_0x54c26c[_0x508d6f(0x1234)]['name']=_0x54c26c['noop'][_0x508d6f(0x28df)][_0x508d6f(0xbe1)]('=')[0x0],_0x54c26c[_0x508d6f(0x1234)]['value']=_0x54c26c['noop'][_0x508d6f(0x28df)][_0x508d6f(0xbe1)]('=')[0x1];break;case _0x508d6f(0x4b4):_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x12a7)]=_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x28df)];break;default:{const _0xff3bac=_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x28df)]['split'](',');_0x54c26c[_0x508d6f(0x1234)]['value']=_0x39641b()[_0x508d6f(0xce9)](_0xff3bac[0x0])?_0xff3bac[0x0]:isNaN(_0xff3bac[0x0])?_0xff3bac[0x0]:parseInt(_0xff3bac[0x0],0xa);}break;}else{}_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x66a)]&&_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x66a)][_0x508d6f(0x1680)]()==='outbound'&&_0x54c26c[_0x508d6f(0x1234)]['appType'][_0x508d6f(0x1680)]()==='outbounddial'&&(_0x54c26c[_0x508d6f(0x1234)]['prefix']=_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x1340)]?_0x54c26c['noop'][_0x508d6f(0x1340)]['split']('$')[0x0]:undefined,_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x1e7c)]=_0x54c26c[_0x508d6f(0x1234)][_0x508d6f(0x2816)]?_0x508d6f(0x25f9)+_0x54c26c[_0x508d6f(0x1234)]['callerID']:undefined);_0x54c26c['saveWhatsappAccountApp']=_0x1aa97f,_0x54c26c[_0x508d6f(0xda0)]=_0x5463b8;function _0x1aa97f(){const _0x228d80=_0x508d6f;_0x54c26c[_0x228d80(0x1a7c)]=[];const _0x295dcf=[];_0x54c26c['noop'][_0x228d80(0x66a)]&&_0x54c26c[_0x228d80(0x1234)][_0x228d80(0x66a)]['toLowerCase']()===_0x228d80(0x895)&&_0x54c26c['noop'][_0x228d80(0x299b)]===_0x228d80(0x25f4)&&(_0x54c26c[_0x228d80(0x1234)][_0x228d80(0x1340)]=_0x412b8e[_0x228d80(0x325)]?(_0x54c26c[_0x228d80(0x1234)][_0x228d80(0x586)]||'')+_0x228d80(0x19e4)+_0x412b8e[_0x228d80(0x325)]+'}':(_0x54c26c[_0x228d80(0x1234)][_0x228d80(0x586)]||'')+_0x228d80(0xcdd),_0x412b8e[_0x228d80(0xf8d)]!==_0x228d80(0x13b1)?_0x54c26c['noop'][_0x228d80(0x2224)][_0x228d80(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0x54c26c['noop'][_0x228d80(0x2224)]+=_0x228d80(0x106a)):_0x54c26c[_0x228d80(0x1234)][_0x228d80(0x2224)]=_0x54c26c[_0x228d80(0x1234)]['options'][_0x228d80(0x288f)]('U(xcally-mixmonitor-context)',''));if(_0x54c26c[_0x228d80(0x1234)][_0x228d80(0x299b)]&&_0x54c26c['noop'][_0x228d80(0x299b)]==='custom'){}else switch((_0x54c26c[_0x228d80(0x1234)][_0x228d80(0x22e1)]||_0x54c26c[_0x228d80(0x1234)]['appType'])['toLowerCase']()){case _0x228d80(0x19d1):_0x54c26c[_0x228d80(0x1234)]['appdata']=_0x54c26c[_0x228d80(0x1234)][_0x228d80(0x16b6)]+'='+_0x54c26c[_0x228d80(0x1234)][_0x228d80(0x327)];break;case _0x228d80(0x197c):break;default:_0x295dcf[0x0]=_0x54c26c['noop']['value'],_0x54c26c[_0x228d80(0x1234)][_0x228d80(0x28df)]=_0x295dcf['join'](',');}_0x5463b8(_0x54c26c[_0x228d80(0x1234)]);}function _0x5463b8(_0xecdc45){const _0x9b2907=_0x508d6f;_0x168848[_0x9b2907(0x1426)](_0xecdc45);}}const _0x99ac4e=_0x243982;;_0x51e908[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q','toasty','whatsappAccountApp',_0x5537c6(0x83a),_0x5537c6(0x142b),_0x5537c6(0x1774),'crudPermissions'];function _0x51e908(_0x11a3fd,_0x335dcf,_0x350a52,_0x26acc8,_0x401bb8,_0x4a357f,_0x113594,_0xd1729c){const _0x34e7b7=_0x5537c6,_0x4e5508=this;_0x4e5508['currentUser']=_0x113594[_0x34e7b7(0x21e8)](),_0x4e5508['errors']=[],_0x4e5508[_0x34e7b7(0x1386)]=_0x34e7b7(0x1537)+(_0x26acc8[_0x34e7b7(0x299b)]||_0x26acc8[_0x34e7b7(0x22e1)])['toUpperCase'](),_0x4e5508[_0x34e7b7(0x11cf)]=angular[_0x34e7b7(0x17fe)](_0x26acc8),_0x4e5508[_0x34e7b7(0x1b1a)]=_0xd1729c,_0x4e5508[_0x34e7b7(0xf4c)]={};if(_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x28df)])switch(_0x4e5508['queue'][_0x34e7b7(0x299b)]?_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x299b)][_0x34e7b7(0x1680)]():_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x22e1)][_0x34e7b7(0x1680)]()){case _0x34e7b7(0x197c):break;case'dialogflow':{const _0x4ffb07=_0x4e5508[_0x34e7b7(0x11cf)]['appdata'][_0x34e7b7(0xbe1)](',');_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0xee8)]=_0x4ffb07[0x0],_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x12b4)]=_0x4ffb07[0x1],_0x4e5508['queue'][_0x34e7b7(0x173a)]=_0x4ffb07[_0x34e7b7(0x14cb)](0x2,_0x4ffb07[_0x34e7b7(0xfd0)])['join'](',');}break;case _0x34e7b7(0xece):{const _0x19c62f=_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x28df)]['split'](',');_0x4e5508['queue'][_0x34e7b7(0x2854)]=_0x19c62f[0x0],_0x4e5508[_0x34e7b7(0x11cf)]['clientEmail']=_0x19c62f[0x1],_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x29d6)]=_0x19c62f[0x2],_0x4e5508['queue'][_0x34e7b7(0x12b4)]=_0x19c62f[0x3],_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x173a)]=_0x19c62f[_0x34e7b7(0x14cb)](0x4,_0x19c62f['length'])['join'](',');}break;case _0x34e7b7(0x123a):{const _0x1fc95e=_0x4e5508['queue'][_0x34e7b7(0x28df)][_0x34e7b7(0xbe1)](',');_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x413)]=_0x1fc95e[0x0],_0x4e5508[_0x34e7b7(0x11cf)]['secretaccesskey']=_0x1fc95e[0x1],_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0xd50)]=_0x1fc95e[0x2],_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x1c7f)]=_0x1fc95e[0x3],_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x173a)]=_0x1fc95e[_0x34e7b7(0x14cb)](0x4,_0x1fc95e[_0x34e7b7(0xfd0)])['join'](',');}break;case _0x34e7b7(0x1f71):{const _0xff6915=_0x4e5508['queue']['appdata'][_0x34e7b7(0xbe1)](',');_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x18a5)]=isNaN(_0xff6915[0x0])?_0xff6915[0x0]:parseInt(_0xff6915[0x0],0xa),_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x19d3)]=_0xff6915['slice'](0x1,_0xff6915[_0x34e7b7(0xfd0)])[_0x34e7b7(0x1f66)](',');}break;case _0x34e7b7(0x155e):_0x4e5508['queue'][_0x34e7b7(0x19d3)]=_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x28df)];break;case _0x34e7b7(0x19d1):_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x16b6)]=_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x28df)]['split']('=')[0x0],_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x327)]=_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x28df)]['split']('=')[0x1];break;case _0x34e7b7(0x4b4):_0x4e5508['queue'][_0x34e7b7(0x12a7)]=_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x28df)];break;default:{const _0x3fb642=_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x28df)][_0x34e7b7(0xbe1)](',');_0x4e5508['queue'][_0x34e7b7(0x11cf)]=_0x39641b()[_0x34e7b7(0xce9)](_0x3fb642[0x0])?_0x3fb642[0x0]:isNaN(_0x3fb642[0x0])?_0x3fb642[0x0]:parseInt(_0x3fb642[0x0],0xa),_0x4e5508[_0x34e7b7(0x11cf)]['timeout']=_0x39641b()[_0x34e7b7(0xce9)](_0x3fb642[0x1])?_0x3fb642[0x1]:isNaN(_0x3fb642[0x1])?_0x3fb642[0x1]:parseInt(_0x3fb642[0x1],0xa);}break;}else _0x4e5508['queue']['queue']=0x12c,_0x4e5508[_0x34e7b7(0x11cf)]['timeout']=0x12c;_0x4e5508[_0x34e7b7(0x11cf)]['type']&&_0x4e5508['queue']['type'][_0x34e7b7(0x1680)]()===_0x34e7b7(0x895)&&_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x299b)][_0x34e7b7(0x1680)]()===_0x34e7b7(0x20ff)&&(_0x4e5508['queue'][_0x34e7b7(0x586)]=_0x4e5508['queue'][_0x34e7b7(0x1340)]?_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x1340)][_0x34e7b7(0xbe1)]('$')[0x0]:undefined,_0x4e5508[_0x34e7b7(0x11cf)][_0x34e7b7(0x1e7c)]=_0x4e5508['queue']['callerID']?_0x34e7b7(0x25f9)+_0x4e5508['queue'][_0x34e7b7(0x2816)]:undefined);_0x4e5508[_0x34e7b7(0x2357)]=_0x1bc582,_0x4e5508[_0x34e7b7(0xda0)]=_0x214c9a,_0x113594[_0x34e7b7(0x22b6)](_0x34e7b7(0x1c60))?_0x4a357f[_0x34e7b7(0xea8)][_0x34e7b7(0xbf7)]({'fields':'id,name,type','sort':_0x34e7b7(0x16b6),'nolimit':_0x34e7b7(0x44d)})['$promise']['then'](function(_0xfb5e9d){const _0x4c68dc=_0x34e7b7;_0x4e5508[_0x4c68dc(0x971)]=_0xfb5e9d[_0x4c68dc(0x2214)]||[];})[_0x34e7b7(0x1c4)](function(_0x4ae8b1){const _0x2760c3=_0x34e7b7;_0x350a52[_0x2760c3(0x218e)]({'title':_0x4ae8b1[_0x2760c3(0x291)]?_0x2760c3(0xeb9)+_0x4ae8b1[_0x2760c3(0x291)]+_0x2760c3(0x1657)+_0x4ae8b1['statusText']:'SYSTEM:GET_QUEUES','msg':_0x4ae8b1[_0x2760c3(0x25c)]?JSON[_0x2760c3(0x2701)](_0x4ae8b1[_0x2760c3(0x25c)]):_0x4ae8b1[_0x2760c3(0x147f)]()});}):_0x4a357f['whatsappQueue'][_0x34e7b7(0xbf7)]({'fields':'id,name,type','sort':_0x34e7b7(0x16b6),'nolimit':_0x34e7b7(0x44d)})[_0x34e7b7(0x1d77)]['then'](function(_0x5d118a){const _0x59702d=_0x34e7b7;_0x4e5508[_0x59702d(0x971)]=_0x5d118a[_0x59702d(0x2214)]||[];})[_0x34e7b7(0x1cb0)](function(){const _0x30956b=_0x34e7b7;return _0x4a357f[_0x30956b(0x2199)][_0x30956b(0xbf7)]({'userProfileId':_0x4e5508[_0x30956b(0xe76)][_0x30956b(0x13c1)],'sectionId':0x836})['$promise'];})[_0x34e7b7(0x1cb0)](function(_0x3a4c65){const _0x5e7340=_0x34e7b7,_0x373a88=_0x3a4c65&&_0x3a4c65['rows']?_0x3a4c65[_0x5e7340(0x2214)][0x0]:null;if(!_0x373a88){const _0x4c0038=[];let _0x3f4e13=null;_0x4e5508[_0x5e7340(0x11cf)]&&(_0x3f4e13=_0x39641b()[_0x5e7340(0x13b4)](_0x4e5508[_0x5e7340(0x971)],{'name':_0x4e5508[_0x5e7340(0x11cf)]['queue']}));for(let _0x3951a8=0x0;_0x3951a8<_0x4e5508['queues'][_0x5e7340(0xfd0)];_0x3951a8++){_0x3f4e13&&_0x4e5508[_0x5e7340(0x971)][_0x3951a8]['id']===_0x3f4e13['id']&&(_0x4e5508[_0x5e7340(0x971)][_0x3951a8][_0x5e7340(0x15da)]=![],_0x4c0038[_0x5e7340(0x2785)](_0x4e5508['queues'][_0x3951a8]));}_0x4e5508[_0x5e7340(0x971)]=_0x4c0038;}else{if(!_0x373a88[_0x5e7340(0x12f4)])return _0x4a357f[_0x5e7340(0x1198)]['get']({'sectionId':_0x373a88['id']})[_0x5e7340(0x1d77)][_0x5e7340(0x1cb0)](function(_0x5873e7){const _0x140e3=_0x5e7340,_0x550207=_0x39641b()[_0x140e3(0x1de2)](_0x5873e7[_0x140e3(0x2214)],function(_0x1cf333){const _0x3edfd1=_0x140e3;return _0x39641b()[_0x3edfd1(0x13b4)](_0x4e5508['queues'],{'id':_0x1cf333['resourceId']});});let _0x19bb3f=null;_0x4e5508[_0x140e3(0x11cf)]&&(_0x19bb3f=_0x39641b()[_0x140e3(0x13b4)](_0x4e5508[_0x140e3(0x971)],{'name':_0x4e5508[_0x140e3(0x11cf)][_0x140e3(0x11cf)]}));if(_0x19bb3f&&!_0x39641b()['some'](_0x550207,['id',_0x19bb3f['id']])){const _0x56b1b1=_0x39641b()[_0x140e3(0x13b4)](_0x4e5508[_0x140e3(0x971)],{'id':_0x19bb3f['id']});_0x56b1b1[_0x140e3(0x15da)]=![],_0x550207[_0x140e3(0x2785)](_0x56b1b1);}_0x4e5508['queues']=_0x550207;});}})[_0x34e7b7(0x1c4)](function(_0xe80547){const _0x2dd117=_0x34e7b7;_0x350a52['error']({'title':_0xe80547[_0x2dd117(0x291)]?'API:'+_0xe80547['status']+_0x2dd117(0x1657)+_0xe80547['statusText']:_0x2dd117(0x1af2),'msg':_0xe80547[_0x2dd117(0x25c)]?JSON['stringify'](_0xe80547[_0x2dd117(0x25c)]):_0xe80547[_0x2dd117(0x147f)]()});});function _0x1bc582(){const _0x2a8829=_0x34e7b7;_0x4e5508['errors']=[];const _0x1672bd=[];_0x4e5508[_0x2a8829(0x11cf)][_0x2a8829(0x66a)]&&_0x4e5508[_0x2a8829(0x11cf)]['type'][_0x2a8829(0x1680)]()===_0x2a8829(0x895)&&_0x4e5508[_0x2a8829(0x11cf)][_0x2a8829(0x299b)]===_0x2a8829(0x25f4)&&(_0x4e5508['queue'][_0x2a8829(0x1340)]=_0x401bb8[_0x2a8829(0x325)]?(_0x4e5508[_0x2a8829(0x11cf)][_0x2a8829(0x586)]||'')+_0x2a8829(0x19e4)+_0x401bb8['cutdigits']+'}':(_0x4e5508['queue'][_0x2a8829(0x586)]||'')+_0x2a8829(0xcdd),_0x401bb8[_0x2a8829(0xf8d)]!==_0x2a8829(0x13b1)?_0x4e5508['queue'][_0x2a8829(0x2224)][_0x2a8829(0xd8a)](_0x2a8829(0x106a))<0x0&&(_0x4e5508['queue'][_0x2a8829(0x2224)]+=_0x2a8829(0x106a)):_0x4e5508[_0x2a8829(0x11cf)]['options']=_0x4e5508[_0x2a8829(0x11cf)][_0x2a8829(0x2224)][_0x2a8829(0x288f)](_0x2a8829(0x106a),''));const _0x3db601=_0x39641b()[_0x2a8829(0x13b4)](_0x4e5508[_0x2a8829(0x971)],{'name':_0x4e5508[_0x2a8829(0x11cf)][_0x2a8829(0x11cf)]});_0x3db601&&(_0x4e5508[_0x2a8829(0x11cf)][_0x39641b()[_0x2a8829(0x432)]('whatsapp')+'QueueId']=_0x3db601['id']);if(_0x4e5508[_0x2a8829(0x11cf)]['appType']&&_0x4e5508[_0x2a8829(0x11cf)][_0x2a8829(0x299b)]==='custom'){}else switch((_0x4e5508[_0x2a8829(0x11cf)]['app']||_0x4e5508['queue']['appType'])[_0x2a8829(0x1680)]()){case _0x2a8829(0x19d1):_0x4e5508[_0x2a8829(0x11cf)][_0x2a8829(0x28df)]=_0x4e5508[_0x2a8829(0x11cf)][_0x2a8829(0x16b6)]+'='+_0x4e5508['queue'][_0x2a8829(0x327)];break;case _0x2a8829(0x197c):break;default:_0x1672bd[0x0]=_0x4e5508['queue'][_0x2a8829(0x11cf)],_0x1672bd[0x1]=_0x4e5508[_0x2a8829(0x11cf)][_0x2a8829(0x1719)],_0x4e5508['queue'][_0x2a8829(0x28df)]=_0x1672bd[_0x2a8829(0x1f66)](',');}_0x214c9a(_0x4e5508['queue']);}function _0x214c9a(_0x1f69c8){const _0x3d1235=_0x34e7b7;_0x11a3fd[_0x3d1235(0x1426)](_0x1f69c8);}}const _0x203d1c=_0x51e908;;_0x55f9d1[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),'whatsappAccountApp','whatsappAccount',_0x5537c6(0x142b),'Auth','crudPermissions'];function _0x55f9d1(_0x249514,_0x385a63,_0xcbe37d,_0x30ecb9,_0x363633,_0x2aec03,_0x7dd843,_0x4705a9){const _0x3175bc=_0x5537c6,_0x1e9c27=this;_0x1e9c27[_0x3175bc(0xe76)]=_0x7dd843[_0x3175bc(0x21e8)](),_0x1e9c27[_0x3175bc(0x1a7c)]=[],_0x1e9c27[_0x3175bc(0x1386)]='WHATSAPP.EDIT_'+(_0x30ecb9[_0x3175bc(0x299b)]||_0x30ecb9[_0x3175bc(0x22e1)])[_0x3175bc(0x2335)](),_0x1e9c27['system']=angular[_0x3175bc(0x17fe)](_0x30ecb9),_0x1e9c27[_0x3175bc(0x1b1a)]=_0x4705a9,_0x1e9c27[_0x3175bc(0xf4c)]={};if(_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x28df)])switch(_0x1e9c27['system'][_0x3175bc(0x299b)]?_0x1e9c27['system'][_0x3175bc(0x299b)]['toLowerCase']():_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x22e1)][_0x3175bc(0x1680)]()){case'custom':break;case _0x3175bc(0x711):{const _0xc63174=_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x28df)][_0x3175bc(0xbe1)](',');_0x1e9c27['system'][_0x3175bc(0xee8)]=_0xc63174[0x0],_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x12b4)]=_0xc63174[0x1],_0x1e9c27[_0x3175bc(0x7be)]['welcomemessage']=_0xc63174[_0x3175bc(0x14cb)](0x2,_0xc63174[_0x3175bc(0xfd0)])[_0x3175bc(0x1f66)](',');}break;case _0x3175bc(0xece):{const _0x3a7862=_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x28df)][_0x3175bc(0xbe1)](',');_0x1e9c27['system'][_0x3175bc(0x2854)]=_0x3a7862[0x0],_0x1e9c27['system'][_0x3175bc(0x12bf)]=_0x3a7862[0x1],_0x1e9c27[_0x3175bc(0x7be)]['privateKey']=_0x3a7862[0x2],_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x12b4)]=_0x3a7862[0x3],_0x1e9c27[_0x3175bc(0x7be)]['welcomemessage']=_0x3a7862[_0x3175bc(0x14cb)](0x4,_0x3a7862[_0x3175bc(0xfd0)])[_0x3175bc(0x1f66)](',');}break;case _0x3175bc(0x123a):{const _0x1c7b7b=_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x28df)]['split'](',');_0x1e9c27['system']['accesskeyid']=_0x1c7b7b[0x0],_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x21d9)]=_0x1c7b7b[0x1],_0x1e9c27[_0x3175bc(0x7be)]['lexregion']=_0x1c7b7b[0x2],_0x1e9c27['system'][_0x3175bc(0x1c7f)]=_0x1c7b7b[0x3],_0x1e9c27['system'][_0x3175bc(0x173a)]=_0x1c7b7b[_0x3175bc(0x14cb)](0x4,_0x1c7b7b[_0x3175bc(0xfd0)])[_0x3175bc(0x1f66)](',');}break;case _0x3175bc(0x1f71):{const _0xbb423c=_0x1e9c27['system'][_0x3175bc(0x28df)][_0x3175bc(0xbe1)](',');_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x18a5)]=isNaN(_0xbb423c[0x0])?_0xbb423c[0x0]:parseInt(_0xbb423c[0x0],0xa),_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x19d3)]=_0xbb423c['slice'](0x1,_0xbb423c[_0x3175bc(0xfd0)])['join'](',');}break;case _0x3175bc(0x155e):_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x19d3)]=_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x28df)];break;case _0x3175bc(0x19d1):_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x16b6)]=_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x28df)][_0x3175bc(0xbe1)]('=')[0x0],_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x327)]=_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x28df)][_0x3175bc(0xbe1)]('=')[0x1];break;case'agi':_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x12a7)]=_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x28df)];break;default:{const _0x1567f3=_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x28df)]['split'](',');_0x1e9c27[_0x3175bc(0x7be)]['command']=_0x39641b()[_0x3175bc(0xce9)](_0x1567f3[0x0])?_0x1567f3[0x0]:isNaN(_0x1567f3[0x0])?_0x1567f3[0x0]:parseInt(_0x1567f3[0x0],0xa),_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x1822)]=_0x39641b()[_0x3175bc(0xce9)](_0x1567f3[0x1])?_0x1567f3[0x1]:isNaN(_0x1567f3[0x1])?_0x1567f3[0x1]:parseInt(_0x1567f3[0x1],0xa);}break;}else _0x1e9c27[_0x3175bc(0x7be)]['variable']='';_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x66a)]&&_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x66a)][_0x3175bc(0x1680)]()===_0x3175bc(0x895)&&_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x299b)][_0x3175bc(0x1680)]()===_0x3175bc(0x20ff)&&(_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x586)]=_0x1e9c27['system']['phone']?_0x1e9c27['system'][_0x3175bc(0x1340)]['split']('$')[0x0]:undefined,_0x1e9c27[_0x3175bc(0x7be)]['callerId']=_0x1e9c27['system'][_0x3175bc(0x2816)]?_0x3175bc(0x25f9)+_0x1e9c27[_0x3175bc(0x7be)][_0x3175bc(0x2816)]:undefined);_0x1e9c27['saveWhatsappAccountApp']=_0x1b7f69,_0x1e9c27[_0x3175bc(0xda0)]=_0x38e237,_0x7dd843['hasRole'](_0x3175bc(0x1c60))?_0x2aec03['variable'][_0x3175bc(0xbf7)]({'fields':_0x3175bc(0x43c),'sort':'name','nolimit':_0x3175bc(0x44d)})[_0x3175bc(0x1d77)][_0x3175bc(0x1cb0)](function(_0x55424e){const _0x9e81dd=_0x3175bc;_0x1e9c27[_0x9e81dd(0x9a9)]=_0x55424e[_0x9e81dd(0x2214)]||[];})['catch'](function(_0x5be1f0){const _0x393295=_0x3175bc;_0xcbe37d[_0x393295(0x218e)]({'title':_0x5be1f0[_0x393295(0x291)]?_0x393295(0xeb9)+_0x5be1f0['status']+_0x393295(0x1657)+_0x5be1f0[_0x393295(0xc22)]:'SYSTEM:GET_VARIABLES','msg':_0x5be1f0['data']?JSON[_0x393295(0x2701)](_0x5be1f0[_0x393295(0x25c)]):_0x5be1f0['toString']()});}):_0x2aec03[_0x3175bc(0x1822)][_0x3175bc(0xbf7)]({'fields':_0x3175bc(0x43c),'sort':_0x3175bc(0x16b6),'nolimit':'true'})[_0x3175bc(0x1d77)][_0x3175bc(0x1cb0)](function(_0x189b09){const _0x13253d=_0x3175bc;_0x1e9c27[_0x13253d(0x9a9)]=_0x189b09[_0x13253d(0x2214)]||[];})[_0x3175bc(0x1cb0)](function(){const _0x188c79=_0x3175bc;return _0x2aec03[_0x188c79(0x2199)][_0x188c79(0xbf7)]({'userProfileId':_0x1e9c27[_0x188c79(0xe76)][_0x188c79(0x13c1)],'sectionId':0x3f4})[_0x188c79(0x1d77)];})[_0x3175bc(0x1cb0)](function(_0x2d4275){const _0x3c47d9=_0x3175bc,_0x2711ac=_0x2d4275&&_0x2d4275[_0x3c47d9(0x2214)]?_0x2d4275[_0x3c47d9(0x2214)][0x0]:null;if(!_0x2711ac){const _0x149eb2=[];let _0x2ed35d=null;_0x1e9c27[_0x3c47d9(0x7be)]&&(_0x2ed35d=_0x39641b()[_0x3c47d9(0x13b4)](_0x1e9c27[_0x3c47d9(0x9a9)],{'name':_0x1e9c27[_0x3c47d9(0x7be)][_0x3c47d9(0x1822)]}));for(let _0x379309=0x0;_0x379309<_0x1e9c27['variables'][_0x3c47d9(0xfd0)];_0x379309++){_0x2ed35d&&_0x1e9c27['variables'][_0x379309]['id']===_0x2ed35d['id']&&(_0x1e9c27[_0x3c47d9(0x9a9)][_0x379309][_0x3c47d9(0x15da)]=![],_0x149eb2[_0x3c47d9(0x2785)](_0x1e9c27['variables'][_0x379309]));}_0x1e9c27[_0x3c47d9(0x9a9)]=_0x149eb2;}else{if(!_0x2711ac[_0x3c47d9(0x12f4)])return _0x2aec03[_0x3c47d9(0x1198)][_0x3c47d9(0xbf7)]({'sectionId':_0x2711ac['id']})[_0x3c47d9(0x1d77)][_0x3c47d9(0x1cb0)](function(_0x4b1b06){const _0x3f81c0=_0x3c47d9,_0x239442=_0x39641b()[_0x3f81c0(0x1de2)](_0x4b1b06['rows'],function(_0x4beb8f){const _0x4f7bd6=_0x3f81c0;return _0x39641b()[_0x4f7bd6(0x13b4)](_0x1e9c27[_0x4f7bd6(0x9a9)],{'id':_0x4beb8f[_0x4f7bd6(0x2982)]});});let _0xe3a67d=null;_0x1e9c27[_0x3f81c0(0x7be)]&&(_0xe3a67d=_0x39641b()[_0x3f81c0(0x13b4)](_0x1e9c27[_0x3f81c0(0x9a9)],{'name':_0x1e9c27[_0x3f81c0(0x7be)][_0x3f81c0(0x1822)]}));if(_0xe3a67d&&!_0x39641b()[_0x3f81c0(0x727)](_0x239442,['id',_0xe3a67d['id']])){const _0x1778af=_0x39641b()['find'](_0x1e9c27[_0x3f81c0(0x9a9)],{'id':_0xe3a67d['id']});_0x1778af[_0x3f81c0(0x15da)]=![],_0x239442[_0x3f81c0(0x2785)](_0x1778af);}_0x1e9c27[_0x3f81c0(0x9a9)]=_0x239442;});}})[_0x3175bc(0x1c4)](function(_0x282adc){const _0x2ee229=_0x3175bc;_0xcbe37d[_0x2ee229(0x218e)]({'title':_0x282adc[_0x2ee229(0x291)]?_0x2ee229(0xeb9)+_0x282adc[_0x2ee229(0x291)]+_0x2ee229(0x1657)+_0x282adc[_0x2ee229(0xc22)]:'SYSTEM:GETvariables','msg':_0x282adc[_0x2ee229(0x25c)]?JSON['stringify'](_0x282adc[_0x2ee229(0x25c)]):_0x282adc[_0x2ee229(0x147f)]()});});function _0x1b7f69(){const _0xaa492f=_0x3175bc;_0x1e9c27[_0xaa492f(0x1a7c)]=[];const _0x6080cd=[];_0x1e9c27[_0xaa492f(0x7be)][_0xaa492f(0x66a)]&&_0x1e9c27[_0xaa492f(0x7be)][_0xaa492f(0x66a)]['toLowerCase']()===_0xaa492f(0x895)&&_0x1e9c27[_0xaa492f(0x7be)][_0xaa492f(0x299b)]===_0xaa492f(0x25f4)&&(_0x1e9c27[_0xaa492f(0x7be)]['phone']=_0x363633[_0xaa492f(0x325)]?(_0x1e9c27[_0xaa492f(0x7be)]['prefix']||'')+_0xaa492f(0x19e4)+_0x363633[_0xaa492f(0x325)]+'}':(_0x1e9c27[_0xaa492f(0x7be)][_0xaa492f(0x586)]||'')+_0xaa492f(0xcdd),_0x363633[_0xaa492f(0xf8d)]!==_0xaa492f(0x13b1)?_0x1e9c27['system']['options'][_0xaa492f(0xd8a)]('U(xcally-mixmonitor-context)')<0x0&&(_0x1e9c27[_0xaa492f(0x7be)][_0xaa492f(0x2224)]+=_0xaa492f(0x106a)):_0x1e9c27[_0xaa492f(0x7be)][_0xaa492f(0x2224)]=_0x1e9c27['system'][_0xaa492f(0x2224)]['replace']('U(xcally-mixmonitor-context)',''));if(_0x1e9c27[_0xaa492f(0x7be)][_0xaa492f(0x299b)]&&_0x1e9c27['system']['appType']===_0xaa492f(0x197c)){}else switch((_0x1e9c27['system'][_0xaa492f(0x22e1)]||_0x1e9c27[_0xaa492f(0x7be)][_0xaa492f(0x299b)])[_0xaa492f(0x1680)]()){case _0xaa492f(0x19d1):_0x1e9c27['system'][_0xaa492f(0x28df)]=_0x1e9c27['system']['name']+'='+_0x1e9c27['system'][_0xaa492f(0x327)];break;case _0xaa492f(0x197c):break;default:_0x6080cd[0x0]=_0x1e9c27[_0xaa492f(0x7be)][_0xaa492f(0xd0d)],_0x6080cd[0x1]=_0x1e9c27[_0xaa492f(0x7be)][_0xaa492f(0x1822)],_0x1e9c27[_0xaa492f(0x7be)][_0xaa492f(0x28df)]=_0x6080cd['join'](',');}_0x38e237(_0x1e9c27['system']);}function _0x38e237(_0x11dd62){const _0x21c342=_0x3175bc;_0x249514[_0x21c342(0x1426)](_0x11dd62);}}const _0x7a1ec7=_0x55f9d1;;_0x48ce1a[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x2702),_0x5537c6(0x83a),_0x5537c6(0x142b),_0x5537c6(0x1774),'crudPermissions'];function _0x48ce1a(_0xbb249b,_0x381837,_0x79ebdf,_0x3bc206,_0x1e3126,_0x5deffb,_0x59789b,_0x5d365c){const _0x4bcef1=_0x5537c6,_0x1c8587=this;_0x1c8587['currentUser']=_0x59789b['getCurrentUser'](),_0x1c8587[_0x4bcef1(0x1a7c)]=[],_0x1c8587[_0x4bcef1(0x1386)]='WHATSAPP.EDIT_'+(_0x3bc206[_0x4bcef1(0x299b)]||_0x3bc206[_0x4bcef1(0x22e1)])[_0x4bcef1(0x2335)](),_0x1c8587['tag']=angular[_0x4bcef1(0x17fe)](_0x3bc206),_0x1c8587['crudPermissions']=_0x5d365c,_0x1c8587[_0x4bcef1(0xf4c)]={};if(_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x28df)])switch(_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x299b)]?_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x299b)]['toLowerCase']():_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x22e1)][_0x4bcef1(0x1680)]()){case'custom':break;case _0x4bcef1(0x711):{const _0x24307e=_0x1c8587['tag'][_0x4bcef1(0x28df)][_0x4bcef1(0xbe1)](',');_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0xee8)]=_0x24307e[0x0],_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x12b4)]=_0x24307e[0x1],_0x1c8587[_0x4bcef1(0x22b1)]['welcomemessage']=_0x24307e['slice'](0x2,_0x24307e[_0x4bcef1(0xfd0)])[_0x4bcef1(0x1f66)](',');}break;case _0x4bcef1(0xece):{const _0x5ec346=_0x1c8587['tag'][_0x4bcef1(0x28df)][_0x4bcef1(0xbe1)](',');_0x1c8587['tag'][_0x4bcef1(0x2854)]=_0x5ec346[0x0],_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x12bf)]=_0x5ec346[0x1],_0x1c8587['tag'][_0x4bcef1(0x29d6)]=_0x5ec346[0x2],_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x12b4)]=_0x5ec346[0x3],_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x173a)]=_0x5ec346[_0x4bcef1(0x14cb)](0x4,_0x5ec346['length'])[_0x4bcef1(0x1f66)](',');}break;case _0x4bcef1(0x123a):{const _0x29966a=_0x1c8587['tag'][_0x4bcef1(0x28df)][_0x4bcef1(0xbe1)](',');_0x1c8587['tag']['accesskeyid']=_0x29966a[0x0],_0x1c8587[_0x4bcef1(0x22b1)]['secretaccesskey']=_0x29966a[0x1],_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0xd50)]=_0x29966a[0x2],_0x1c8587[_0x4bcef1(0x22b1)]['botname']=_0x29966a[0x3],_0x1c8587[_0x4bcef1(0x22b1)]['welcomemessage']=_0x29966a[_0x4bcef1(0x14cb)](0x4,_0x29966a['length'])['join'](',');}break;case _0x4bcef1(0x1f71):{const _0x29e5b0=_0x1c8587[_0x4bcef1(0x22b1)]['appdata'][_0x4bcef1(0xbe1)](',');_0x1c8587['tag'][_0x4bcef1(0x18a5)]=isNaN(_0x29e5b0[0x0])?_0x29e5b0[0x0]:parseInt(_0x29e5b0[0x0],0xa),_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x19d3)]=_0x29e5b0[_0x4bcef1(0x14cb)](0x1,_0x29e5b0[_0x4bcef1(0xfd0)])['join'](',');}break;case _0x4bcef1(0x155e):_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x19d3)]=_0x1c8587['tag']['appdata'];break;case _0x4bcef1(0x19d1):_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x16b6)]=_0x1c8587[_0x4bcef1(0x22b1)]['appdata'][_0x4bcef1(0xbe1)]('=')[0x0],_0x1c8587[_0x4bcef1(0x22b1)]['value']=_0x1c8587['tag'][_0x4bcef1(0x28df)]['split']('=')[0x1];break;case _0x4bcef1(0x4b4):_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x12a7)]=_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x28df)];break;default:{const _0x566a36=_0x1c8587[_0x4bcef1(0x22b1)]['appdata']['split'](',');_0x1c8587[_0x4bcef1(0x22b1)]['tag']=_0x39641b()[_0x4bcef1(0xce9)](_0x566a36[0x0])?_0x566a36[0x0]:isNaN(_0x566a36[0x0])?_0x566a36[0x0]:parseInt(_0x566a36[0x0],0xa);}break;}else{}_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x66a)]&&_0x1c8587['tag'][_0x4bcef1(0x66a)][_0x4bcef1(0x1680)]()===_0x4bcef1(0x895)&&_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x299b)]['toLowerCase']()===_0x4bcef1(0x20ff)&&(_0x1c8587[_0x4bcef1(0x22b1)]['prefix']=_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x1340)]?_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x1340)][_0x4bcef1(0xbe1)]('$')[0x0]:undefined,_0x1c8587['tag'][_0x4bcef1(0x1e7c)]=_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x2816)]?_0x4bcef1(0x25f9)+_0x1c8587[_0x4bcef1(0x22b1)][_0x4bcef1(0x2816)]:undefined);_0x1c8587[_0x4bcef1(0x2357)]=_0xcc7d8d,_0x1c8587['closeDialog']=_0x4090cd,_0x59789b[_0x4bcef1(0x22b6)](_0x4bcef1(0x1c60))?_0x5deffb[_0x4bcef1(0x22b1)][_0x4bcef1(0xbf7)]({'fields':_0x4bcef1(0x43c),'sort':_0x4bcef1(0x16b6),'nolimit':_0x4bcef1(0x44d)})[_0x4bcef1(0x1d77)][_0x4bcef1(0x1cb0)](function(_0x50e3f9){const _0x2965d1=_0x4bcef1;_0x1c8587[_0x2965d1(0xfbf)]=_0x50e3f9[_0x2965d1(0x2214)]||[];})['catch'](function(_0x2619bd){const _0x1840bd=_0x4bcef1;_0x79ebdf[_0x1840bd(0x218e)]({'title':_0x2619bd['status']?_0x1840bd(0xeb9)+_0x2619bd[_0x1840bd(0x291)]+'\x20-\x20'+_0x2619bd[_0x1840bd(0xc22)]:_0x1840bd(0x12f9),'msg':_0x2619bd[_0x1840bd(0x25c)]?JSON[_0x1840bd(0x2701)](_0x2619bd[_0x1840bd(0x25c)]):_0x2619bd[_0x1840bd(0x147f)]()});}):_0x5deffb[_0x4bcef1(0x22b1)][_0x4bcef1(0xbf7)]({'fields':_0x4bcef1(0x43c),'sort':'name','nolimit':_0x4bcef1(0x44d)})[_0x4bcef1(0x1d77)][_0x4bcef1(0x1cb0)](function(_0x130707){const _0x4afe3a=_0x4bcef1;_0x1c8587['tags']=_0x130707[_0x4afe3a(0x2214)]||[];})[_0x4bcef1(0x1cb0)](function(){const _0x2f6e50=_0x4bcef1;return _0x5deffb[_0x2f6e50(0x2199)][_0x2f6e50(0xbf7)]({'userProfileId':_0x1c8587[_0x2f6e50(0xe76)][_0x2f6e50(0x13c1)],'sectionId':0x3f0})[_0x2f6e50(0x1d77)];})[_0x4bcef1(0x1cb0)](function(_0x2f1535){const _0xadaaee=_0x4bcef1,_0x3d7cae=_0x2f1535&&_0x2f1535['rows']?_0x2f1535[_0xadaaee(0x2214)][0x0]:null;if(!_0x3d7cae){const _0x33709a=[];let _0x10689a=null;_0x1c8587['tag']&&(_0x10689a=_0x39641b()[_0xadaaee(0x13b4)](_0x1c8587['tags'],{'name':_0x1c8587[_0xadaaee(0x22b1)][_0xadaaee(0x22b1)]}));for(let _0x5c7987=0x0;_0x5c7987<_0x1c8587[_0xadaaee(0xfbf)][_0xadaaee(0xfd0)];_0x5c7987++){_0x10689a&&_0x1c8587[_0xadaaee(0xfbf)][_0x5c7987]['id']===_0x10689a['id']&&(_0x1c8587[_0xadaaee(0xfbf)][_0x5c7987][_0xadaaee(0x15da)]=![],_0x33709a['push'](_0x1c8587[_0xadaaee(0xfbf)][_0x5c7987]));}_0x1c8587['tags']=_0x33709a;}else{if(!_0x3d7cae['autoAssociation'])return _0x5deffb[_0xadaaee(0x1198)][_0xadaaee(0xbf7)]({'sectionId':_0x3d7cae['id']})[_0xadaaee(0x1d77)][_0xadaaee(0x1cb0)](function(_0x1a4498){const _0x44dd50=_0xadaaee,_0xb3584b=_0x39641b()[_0x44dd50(0x1de2)](_0x1a4498[_0x44dd50(0x2214)],function(_0x1faced){const _0x5abca7=_0x44dd50;return _0x39641b()[_0x5abca7(0x13b4)](_0x1c8587[_0x5abca7(0xfbf)],{'id':_0x1faced['resourceId']});});let _0x380a33=null;_0x1c8587[_0x44dd50(0x22b1)]&&(_0x380a33=_0x39641b()[_0x44dd50(0x13b4)](_0x1c8587['tags'],{'name':_0x1c8587[_0x44dd50(0x22b1)][_0x44dd50(0x22b1)]}));if(_0x380a33&&!_0x39641b()[_0x44dd50(0x727)](_0xb3584b,['id',_0x380a33['id']])){const _0x82df=_0x39641b()['find'](_0x1c8587['tags'],{'id':_0x380a33['id']});_0x82df[_0x44dd50(0x15da)]=![],_0xb3584b['push'](_0x82df);}_0x1c8587[_0x44dd50(0xfbf)]=_0xb3584b;});}})['catch'](function(_0x357433){const _0xb5d864=_0x4bcef1;_0x79ebdf[_0xb5d864(0x218e)]({'title':_0x357433['status']?'API:'+_0x357433[_0xb5d864(0x291)]+'\x20-\x20'+_0x357433[_0xb5d864(0xc22)]:_0xb5d864(0x808),'msg':_0x357433[_0xb5d864(0x25c)]?JSON[_0xb5d864(0x2701)](_0x357433[_0xb5d864(0x25c)]):_0x357433[_0xb5d864(0x147f)]()});});function _0xcc7d8d(){const _0xd71cef=_0x4bcef1;_0x1c8587['errors']=[];const _0x1002b3=[];_0x1c8587['tag'][_0xd71cef(0x66a)]&&_0x1c8587['tag'][_0xd71cef(0x66a)][_0xd71cef(0x1680)]()===_0xd71cef(0x895)&&_0x1c8587[_0xd71cef(0x22b1)][_0xd71cef(0x299b)]===_0xd71cef(0x25f4)&&(_0x1c8587['tag']['phone']=_0x1e3126['cutdigits']?(_0x1c8587['tag'][_0xd71cef(0x586)]||'')+_0xd71cef(0x19e4)+_0x1e3126[_0xd71cef(0x325)]+'}':(_0x1c8587['tag'][_0xd71cef(0x586)]||'')+_0xd71cef(0xcdd),_0x1e3126[_0xd71cef(0xf8d)]!==_0xd71cef(0x13b1)?_0x1c8587[_0xd71cef(0x22b1)][_0xd71cef(0x2224)][_0xd71cef(0xd8a)](_0xd71cef(0x106a))<0x0&&(_0x1c8587[_0xd71cef(0x22b1)][_0xd71cef(0x2224)]+=_0xd71cef(0x106a)):_0x1c8587[_0xd71cef(0x22b1)]['options']=_0x1c8587['tag'][_0xd71cef(0x2224)]['replace'](_0xd71cef(0x106a),''));const _0x5bd98c=_0x39641b()['find'](_0x1c8587['tags'],{'name':_0x1c8587['tag'][_0xd71cef(0x22b1)]});_0x5bd98c&&(_0x1c8587[_0xd71cef(0x22b1)][_0xd71cef(0x1754)]=_0x5bd98c['id']);if(_0x1c8587[_0xd71cef(0x22b1)][_0xd71cef(0x299b)]&&_0x1c8587[_0xd71cef(0x22b1)][_0xd71cef(0x299b)]==='custom'){}else switch((_0x1c8587[_0xd71cef(0x22b1)]['app']||_0x1c8587['tag'][_0xd71cef(0x299b)])[_0xd71cef(0x1680)]()){case'set':_0x1c8587[_0xd71cef(0x22b1)]['appdata']=_0x1c8587[_0xd71cef(0x22b1)][_0xd71cef(0x16b6)]+'='+_0x1c8587[_0xd71cef(0x22b1)][_0xd71cef(0x327)];break;case _0xd71cef(0x197c):break;default:_0x1002b3[0x0]=_0x1c8587['tag'][_0xd71cef(0x22b1)],_0x1c8587['tag'][_0xd71cef(0x28df)]=_0x1002b3[_0xd71cef(0x1f66)](',');}_0x4090cd(_0x1c8587['tag']);}function _0x4090cd(_0x186cec){_0xbb249b['hide'](_0x186cec);}}const _0x466aee=_0x48ce1a;;_0x523948[_0x5537c6(0x15b6)]=[_0x5537c6(0x173),'$scope',_0x5537c6(0x406),'$q',_0x5537c6(0x1ae),_0x5537c6(0x2168),_0x5537c6(0xcb9),_0x5537c6(0x22bf),'toasty','api',_0x5537c6(0x1774)];function _0x523948(_0x2fe20e,_0x7899ec,_0x15f842,_0x46b2ef,_0x3bf9b5,_0xac0a07,_0x5d122c,_0x30bc83,_0x34a516,_0x3d6ac5,_0x1322d6){const _0x40c3b4=_0x5537c6,_0xb598ea=this;_0xb598ea[_0x40c3b4(0xe76)]=_0x1322d6[_0x40c3b4(0x21e8)](),_0xb598ea[_0x40c3b4(0x83a)]={},_0xb598ea[_0x40c3b4(0x1450)]={'count':0x0,'rows':[]},_0xb598ea[_0x40c3b4(0x1568)]=[],_0xb598ea[_0x40c3b4(0x1b1a)],_0xb598ea[_0x40c3b4(0xae2)]={'read':_0x40c3b4(0xd38),'closed':_0x40c3b4(0xd38),'sort':'-createdAt','includeAll':'true','limit':0xa,'page':0x1},_0xb598ea[_0x40c3b4(0x1a8e)]=_0x242e11,_0xb598ea[_0x40c3b4(0xb25)]=_0x3c5358,_0xb598ea[_0x40c3b4(0x629)]=_0x24d9bf,_0xb598ea['success']=_0x508793,_0xb598ea[_0x40c3b4(0x245b)]=_0x27bb1c,_0xb598ea[_0x40c3b4(0x22db)]=_0x24096b,_0xb598ea[_0x40c3b4(0x1ede)]=_0x14234f,_0xb598ea[_0x40c3b4(0xdcf)]=_0x27a201,_0xb598ea[_0x40c3b4(0x17da)]=_0x249472,_0xb598ea[_0x40c3b4(0x171c)]=_0x1b0cac;function _0x242e11(_0x520cc8,_0x50f066){const _0x27e506=_0x40c3b4;_0xb598ea['whatsappAccount']=_0x520cc8,_0xb598ea[_0x27e506(0x1b1a)]=typeof _0x50f066!=='undefined'?_0x50f066:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xb598ea['query'][_0x27e506(0xfc8)]=_0xb598ea[_0x27e506(0x83a)]['id'],_0xb598ea[_0x27e506(0x16ad)]={'fields':_0x5e0c88()},_0x3e45bf();}function _0x3e45bf(){const _0x4dfaee=_0x40c3b4;return _0x3d6ac5[_0x4dfaee(0x22b1)][_0x4dfaee(0xbf7)]()['$promise'][_0x4dfaee(0x1cb0)](function(_0x2111f5){const _0x54edcf=_0x4dfaee;_0xb598ea[_0x54edcf(0xfbf)]=_0x2111f5||{'count':0x0,'rows':[]};})['then'](function(){const _0x5a2640=_0x4dfaee;_0xb598ea[_0x5a2640(0x789)]=_0xf457ce();});}function _0xf457ce(){const _0x990fae=_0x40c3b4;return[{'name':'Start\x20Date','key':_0x990fae(0x24cb),'type':_0x990fae(0x18ec),'label':_0x990fae(0xf5e)},{'name':_0x990fae(0x223c),'key':_0x990fae(0xfc1),'type':'select','label':_0x990fae(0x9e5),'customOptions':[{'value':0x0,'translate':_0x990fae(0x1115)},{'value':0x1,'translate':_0x990fae(0x27a4)},{'value':null,'translate':_0x990fae(0x2706)}]},{'name':_0x990fae(0x938),'key':_0x990fae(0x22aa),'type':_0x990fae(0x220f),'label':_0x990fae(0x24b6),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x990fae(0x191b)},{'value':null,'translate':_0x990fae(0x2706)}]},{'name':_0x990fae(0x30e),'key':_0x990fae(0x21ab),'type':_0x990fae(0x220f),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':'null','translate':_0x990fae(0x68f)},{'value':undefined,'translate':_0x990fae(0x2706)}]},{'name':_0x990fae(0xf2d),'key':'tag','type':_0x990fae(0x1d50),'label':_0x990fae(0x3c3),'options':_0xb598ea['tags']['rows'],'placeholder':_0x990fae(0x62b)}];}function _0x5e0c88(){const _0x3ca3da=_0x40c3b4;return[{'name':'Id','column':'id','type':_0x3ca3da(0x83d)},{'name':_0x3ca3da(0x8d3),'column':_0x3ca3da(0x8d3),'type':_0x3ca3da(0x19e0),'options':{'searchFields':[_0x3ca3da(0x1491),_0x3ca3da(0x1fbb),_0x3ca3da(0x1e19)],'route':{'model':_0x3ca3da(0xbe7),'action':'get','params':{'fields':_0x3ca3da(0x9b0),'Contact':_0x3ca3da(0xed6),'nolimit':!![]}},'extraOperators':[_0x3ca3da(0x1fb1)],'excludedOperators':[_0x3ca3da(0x15ce)]}},{'name':_0x3ca3da(0x228c),'column':_0x3ca3da(0x1e5d),'type':_0x3ca3da(0x19d3),'options':{'excludedOperators':[_0x3ca3da(0x1c5e),_0x3ca3da(0x15ce)]}},{'name':_0x3ca3da(0x269b),'column':_0x3ca3da(0x1cd0),'type':'text','options':{'excludedOperators':[_0x3ca3da(0x1c5e),'$ne']}},{'name':_0x3ca3da(0x938),'column':'closed','type':_0x3ca3da(0x220f),'values':[{'id':0x0,'translate':_0x3ca3da(0x1bbd)},{'id':0x1,'translate':_0x3ca3da(0x191b)}],'options':{'excludedOperators':[_0x3ca3da(0x15ce)]}},{'name':_0x3ca3da(0x30e),'column':_0x3ca3da(0x1597),'type':_0x3ca3da(0x19e0),'options':{'table':'i','route':{'model':'user','action':'get','params':{'role':_0x3ca3da(0x1eff),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':['fullname','name'],'extraOperators':['$substring'],'excludedOperators':[_0x3ca3da(0x15ce)]}},{'name':_0x3ca3da(0x190),'column':_0x3ca3da(0xf2d),'type':_0x3ca3da(0x1d50),'options':{'route':{'model':_0x3ca3da(0x22b1),'action':_0x3ca3da(0xbf7),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':'Start\x20Date','column':_0x3ca3da(0x24cb),'type':'date','options':{'excludedOperators':[_0x3ca3da(0x15ce)]}},{'name':_0x3ca3da(0x946),'column':_0x3ca3da(0x1554),'type':_0x3ca3da(0x220f),'values':[{'id':0x1,'translate':_0x3ca3da(0x27a4)},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x3ca3da(0x15ce)]}}];}function _0x14234f(){const _0x12bdb2=_0x40c3b4;_0x5d122c['show']({'controller':_0x12bdb2(0x15f7),'controllerAs':'vm','templateUrl':_0x3530d6,'parent':angular[_0x12bdb2(0x1853)](_0x30bc83[_0x12bdb2(0x1ed9)]),'clickOutsideToClose':![],'locals':{'fields':_0xb598ea[_0x12bdb2(0x16ad)][_0x12bdb2(0x355)],'color':undefined,'storagePath':_0x12bdb2(0x240d)},'fullscreen':!![]})[_0x12bdb2(0x1cb0)](function(_0x25892b){const _0x3c43c7=_0x12bdb2;_0xb598ea[_0x3c43c7(0xae2)][_0x3c43c7(0x24be)]=_0x25892b===![]?undefined:_0x25892b;if(_0xb598ea[_0x3c43c7(0xae2)]['search'])_0x27bb1c();else _0x25892b===![]&&_0x27bb1c();})[_0x12bdb2(0x1c4)](function(_0x1e6c57){const _0x3631c1=_0x12bdb2;_0x34a516[_0x3631c1(0x218e)]({'title':_0x3631c1(0x2260),'msg':_0x1e6c57[_0x3631c1(0x25c)]?JSON[_0x3631c1(0x2701)](_0x1e6c57[_0x3631c1(0x25c)]['message']):_0x1e6c57['toString']()});});}function _0x24d9bf(_0x255ac1,_0x1b7860,_0xca4ff1){const _0x4016c2=_0x40c3b4;return _0x3d6ac5[_0x4016c2(0x197a)][_0x4016c2(0x26ec)]({'id':_0x255ac1['id'],'exists':!![],'attachments':_0xca4ff1})['$promise'][_0x4016c2(0x1cb0)](function(_0x41c575){const _0x3aacbd=_0x4016c2,_0x45af86=[_0x41c575[_0x3aacbd(0xef0)]];let _0x475c19=_0x3aacbd(0x10e4)+_0x255ac1['id'];const _0x40f406=new Blob(_0x45af86,{'type':_0x41c575[_0x3aacbd(0x66a)]});_0x475c19='whatsapp-interaction'+_0x255ac1['id']+_0x3aacbd(0x1b16);const _0x1e5028=window[_0x3aacbd(0x1db8)][_0x3aacbd(0x8c6)]('a');_0x1e5028[_0x3aacbd(0x23b9)](_0x3aacbd(0x105b),URL[_0x3aacbd(0x2247)](_0x40f406)),_0x1e5028['setAttribute'](_0x3aacbd(0x26ec),_0x475c19),document['body'][_0x3aacbd(0x23de)](_0x1e5028),_0x1e5028[_0x3aacbd(0x20b8)]();})[_0x4016c2(0x1c4)](function(_0x59d461){const _0x1e2488=_0x4016c2;if(_0x59d461[_0x1e2488(0x25c)]&&_0x59d461['data'][_0x1e2488(0x1a7c)]&&_0x59d461[_0x1e2488(0x25c)][_0x1e2488(0x1a7c)][_0x1e2488(0xfd0)])for(let _0x364d53=0x0;_0x364d53<_0x59d461['data'][_0x1e2488(0x1a7c)][_0x1e2488(0xfd0)];_0x364d53+=0x1){_0x34a516['error']({'title':_0x59d461['data'][_0x1e2488(0x1a7c)][_0x364d53][_0x1e2488(0x66a)],'msg':_0x59d461[_0x1e2488(0x25c)][_0x1e2488(0x1a7c)][_0x364d53][_0x1e2488(0x155e)]});}else _0x34a516['error']({'title':_0x59d461[_0x1e2488(0x291)]?'API:'+_0x59d461[_0x1e2488(0x291)]+_0x1e2488(0x1657)+_0x59d461[_0x1e2488(0xc22)]:_0x1e2488(0x787),'msg':_0x59d461[_0x1e2488(0x25c)]?JSON[_0x1e2488(0x2701)](_0x59d461[_0x1e2488(0x25c)]['message']):_0x59d461['toString']()});});}function _0x3c5358(_0x4ee43d,_0x3b23b6){const _0x5a6fa2=_0x40c3b4,_0x1a4e85=_0x5d122c['confirm']()[_0x5a6fa2(0x1386)](_0x5a6fa2(0x9bc))['htmlContent'](_0x5a6fa2(0x204d)+(_0x4ee43d[_0x5a6fa2(0x16b6)]||_0x4ee43d['id']&&_0x39641b()[_0x5a6fa2(0x277)](_0x5a6fa2(0xf82))+_0x4ee43d['id']||'interaction')+_0x5a6fa2(0x1200)+'\x20will\x20be\x20deleted.')[_0x5a6fa2(0x15ad)](_0x5a6fa2(0x116f))[_0x5a6fa2(0x728)](_0x3b23b6)['ok']('OK')[_0x5a6fa2(0x696)](_0x5a6fa2(0x24ba));_0x5d122c[_0x5a6fa2(0xe27)](_0x1a4e85)[_0x5a6fa2(0x1cb0)](function(){_0x249472(_0x4ee43d);},function(){const _0x11633e=_0x5a6fa2;console[_0x11633e(0x1b4f)](_0x11633e(0x24ba));});}function _0x508793(_0x3e5875){const _0xbbaa0f=_0x40c3b4;_0xb598ea[_0xbbaa0f(0x1450)]=_0x3e5875||{'count':0x0,'rows':[]};for(let _0x5d9f51=0x0;_0x5d9f51<_0xb598ea[_0xbbaa0f(0x1450)][_0xbbaa0f(0x2214)][_0xbbaa0f(0xfd0)];_0x5d9f51+=0x1){const _0x2fe9a4=_0xb598ea['whatsappAccountInteractions'][_0xbbaa0f(0x2214)][_0x5d9f51];_0x5a8143(_0x2fe9a4),_0x2fe9a4[_0xbbaa0f(0x135d)]['name']=_0x4a375a(_0x2fe9a4);}}function _0x27bb1c(){const _0x525e11=_0x40c3b4;_0xb598ea['query'][_0x525e11(0x184b)]=(_0xb598ea['query'][_0x525e11(0x1c7b)]-0x1)*_0xb598ea[_0x525e11(0xae2)][_0x525e11(0x236)],_0xb598ea[_0x525e11(0x2061)]=_0x3d6ac5[_0x525e11(0x197a)][_0x525e11(0xbf7)](_0xb598ea[_0x525e11(0xae2)],_0x508793)[_0x525e11(0x1d77)];}function _0x24096b(_0x4773f4,_0x4dfd84){const _0xcac34e=_0x40c3b4;_0x5d122c['show']({'controller':_0xcac34e(0x4b2),'controllerAs':'vm','templateUrl':_0x50da87,'parent':angular[_0xcac34e(0x1853)](_0x30bc83[_0xcac34e(0x1ed9)]),'targetEvent':_0x4773f4,'clickOutsideToClose':!![],'onShowing':function(_0x3c6179){const _0x121b58=_0xcac34e;_0x3c6179['vm'][_0x121b58(0x1a8e)]({'id':0x1,'channel':_0x121b58(0x2476),'interaction':_0x4dfd84,'spy':!![]},_0x7899ec[_0x121b58(0x17bc)]['vm'][_0x121b58(0x9ca)]);}});}function _0x249472(_0x5cc370){const _0x448207=_0x40c3b4;_0x3d6ac5[_0x448207(0x197a)][_0x448207(0x111d)]({'id':_0x5cc370['id']})[_0x448207(0x1d77)][_0x448207(0x1cb0)](function(){const _0x1e09f9=_0x448207;_0x39641b()[_0x1e09f9(0x152a)](_0xb598ea[_0x1e09f9(0x1450)][_0x1e09f9(0x2214)],{'id':_0x5cc370['id']}),_0xb598ea['whatsappAccountInteractions']['count']-=0x1,!_0xb598ea['whatsappAccountInteractions'][_0x1e09f9(0x2214)]['length']&&_0x27bb1c(),_0x34a516[_0x1e09f9(0x829)]({'title':_0x1e09f9(0x1c2b),'msg':_0x5cc370[_0x1e09f9(0x16b6)]?_0x5cc370['name']+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x2dc89f){const _0x30f32c=_0x448207;if(_0x2dc89f[_0x30f32c(0x25c)]&&_0x2dc89f['data'][_0x30f32c(0x1a7c)]&&_0x2dc89f[_0x30f32c(0x25c)][_0x30f32c(0x1a7c)][_0x30f32c(0xfd0)]){_0xb598ea['errors']=_0x2dc89f[_0x30f32c(0x25c)][_0x30f32c(0x1a7c)]||[{'message':_0x2dc89f[_0x30f32c(0x147f)](),'type':'SYSTEM:GETwhatsappAccount'}];for(let _0x43b73a=0x0;_0x43b73a<_0x2dc89f[_0x30f32c(0x25c)][_0x30f32c(0x1a7c)][_0x30f32c(0xfd0)];_0x43b73a++){_0x34a516[_0x30f32c(0x218e)]({'title':_0x2dc89f['data'][_0x30f32c(0x1a7c)][_0x43b73a][_0x30f32c(0x66a)],'msg':_0x2dc89f['data'][_0x30f32c(0x1a7c)][_0x43b73a][_0x30f32c(0x155e)]});}}else _0x34a516[_0x30f32c(0x218e)]({'title':_0x2dc89f[_0x30f32c(0x291)]?_0x30f32c(0xeb9)+_0x2dc89f[_0x30f32c(0x291)]+_0x30f32c(0x1657)+_0x2dc89f[_0x30f32c(0xc22)]:'SYSTEM:GETwhatsappAccount','msg':_0x2dc89f[_0x30f32c(0x25c)]?JSON[_0x30f32c(0x2701)](_0x2dc89f[_0x30f32c(0x25c)][_0x30f32c(0x155e)]):_0x2dc89f[_0x30f32c(0x155e)]||_0x2dc89f[_0x30f32c(0x147f)]()});});}function _0x27a201(){const _0x3df547=_0x40c3b4,_0x4778d6=angular[_0x3df547(0x17fe)](_0xb598ea[_0x3df547(0x1568)]);return _0xb598ea['selectedWhatsappAccountInteractions']=[],_0x4778d6;}function _0x1b0cac(_0x435912){const _0x5b1463=_0x40c3b4,_0x19c821=_0x5d122c[_0x5b1463(0x1551)]()['title'](_0x5b1463(0xb2e))['htmlContent'](_0x5b1463(0x204d)+_0xb598ea[_0x5b1463(0x1568)][_0x5b1463(0xfd0)]+_0x5b1463(0x1d6c)+_0x5b1463(0x1b6))['ariaLabel'](_0x5b1463(0x8ca))[_0x5b1463(0x728)](_0x435912)['ok']('OK')[_0x5b1463(0x696)](_0x5b1463(0x24ba));_0x5d122c['show'](_0x19c821)[_0x5b1463(0x1cb0)](function(){const _0x3d58c6=_0x5b1463;_0xb598ea['selectedWhatsappAccountInteractions'][_0x3d58c6(0xf90)](function(_0x27fc2f){_0x249472(_0x27fc2f);}),_0xb598ea[_0x3d58c6(0x1568)]=[];});}function _0x5a8143(_0x5f4b63){const _0x3903f6=_0x40c3b4;_0x5f4b63[_0x3903f6(0x8d3)]?_0x5f4b63[_0x3903f6(0x1325)]=(_0x5f4b63[_0x3903f6(0x8d3)][_0x3903f6(0x1491)]||'')+'\x20'+(_0x5f4b63[_0x3903f6(0x8d3)][_0x3903f6(0x1fbb)]||''):_0x5f4b63[_0x3903f6(0x1325)]=_0x3bf9b5[_0x3903f6(0x25cc)](_0x3903f6(0x2b9));}function _0x4a375a(_0x5c1bf7){const _0x1d95de=_0x40c3b4;if(_0x5c1bf7[_0x1d95de(0x21ab)])return _0x5c1bf7[_0x1d95de(0x21ab)]===_0xb598ea['currentUser']['id']?_0x3bf9b5[_0x1d95de(0x25cc)]('DASHBOARDS.ME'):_0x5c1bf7[_0x1d95de(0x135d)]['fullname']+'\x20<'+_0x5c1bf7['Owner']['internal']+'>';return _0x3bf9b5[_0x1d95de(0x25cc)](_0x1d95de(0x68f));}let _0x5ef2b7=!![],_0x273bc9=0x1;_0x7899ec[_0x40c3b4(0x614)]('vm_dc.query.filter',function(_0x3d23e6,_0x2b2d2b){const _0x136d94=_0x40c3b4;_0x5ef2b7?_0xac0a07(function(){_0x5ef2b7=![];}):(!_0x2b2d2b&&(_0x273bc9=_0xb598ea[_0x136d94(0xae2)][_0x136d94(0x1c7b)]),_0x3d23e6!==_0x2b2d2b&&(_0xb598ea[_0x136d94(0xae2)][_0x136d94(0x1c7b)]=0x1),!_0x3d23e6&&(_0xb598ea[_0x136d94(0xae2)]['page']=_0x273bc9),_0x27bb1c());});}const _0x4c9049=_0x523948;;const _0x365a4a=_0x5074a3['p']+_0x5537c6(0x6ae);;_0x4e2a28['$inject']=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1ae),_0x5537c6(0x8a5),'setting','api','toasty',_0x5537c6(0x1774),_0x5537c6(0x83a),_0x5537c6(0x2199)];function _0x4e2a28(_0x35b5a9,_0x3aa1a3,_0x59185f,_0x44fa47,_0x235ee6,_0xaa4a38,_0x412b73,_0xde04c7,_0x3ce053,_0x529d85,_0x558125,_0xcccde2){const _0x489342=_0x5537c6,_0x143606=this;_0x143606[_0x489342(0xe76)]=_0x529d85[_0x489342(0x21e8)](),_0x143606[_0x489342(0x8a5)]=_0xaa4a38,_0x143606[_0x489342(0x9ca)]=_0x412b73,_0x143606['passwordPattern']=_0x143606[_0x489342(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x143606['location']=_0x3aa1a3[_0x489342(0x2276)]()+_0x489342(0x138b)+_0x3aa1a3['host'](),_0x143606[_0x489342(0x83a)]=_0x558125||_0x35b5a9[_0x489342(0x1dfe)][_0x489342(0x83a)]||{},_0x143606[_0x489342(0x2199)]=_0xcccde2&&_0xcccde2['count']==0x1?_0xcccde2[_0x489342(0x2214)][0x0]:null,_0x143606['crudPermissions']=_0x529d85[_0x489342(0x14ea)](_0x143606[_0x489342(0x2199)]?_0x143606[_0x489342(0x2199)][_0x489342(0x1b1a)]:null),_0x143606[_0x489342(0xf4c)]={},_0x143606[_0x489342(0x8ec)]=_0x35b5a9[_0x489342(0x1dfe)]['tab']||0x0,_0x143606['agentadddialog']=_0xe6190b,_0x143606[_0x489342(0x494)]=_0x3ce053[_0x489342(0x28c7)],_0x143606[_0x489342(0x15bd)]=_0x6f4009,_0x143606[_0x489342(0x1b72)]=_0x5659d8,_0x529d85['hasRole']('admin')?_0xde04c7[_0x489342(0x22f2)][_0x489342(0xbf7)]({'fields':'id,name','sort':'name'})[_0x489342(0x1d77)][_0x489342(0x1cb0)](function(_0x4286ff){const _0x34a307=_0x489342;_0x143606[_0x34a307(0x1046)]=_0x4286ff[_0x34a307(0x2214)]||[];})['catch'](function(_0x294963){const _0x40e9a6=_0x489342;_0x3ce053[_0x40e9a6(0x218e)]({'title':_0x294963['status']?_0x40e9a6(0xeb9)+_0x294963[_0x40e9a6(0x291)]+'\x20-\x20'+_0x294963[_0x40e9a6(0xc22)]:_0x40e9a6(0x149e),'msg':_0x294963[_0x40e9a6(0x25c)]?JSON[_0x40e9a6(0x2701)](_0x294963[_0x40e9a6(0x25c)]):_0x294963['toString']()});}):_0xde04c7[_0x489342(0x22f2)]['get']({'fields':'id,name','sort':'name'})[_0x489342(0x1d77)][_0x489342(0x1cb0)](function(_0x4312d1){const _0x55b2d0=_0x489342;_0x143606[_0x55b2d0(0x1046)]=_0x4312d1[_0x55b2d0(0x2214)]||[];})[_0x489342(0x1cb0)](function(){const _0xd4630d=_0x489342;return _0xde04c7[_0xd4630d(0x2199)][_0xd4630d(0xbf7)]({'userProfileId':_0x143606['currentUser'][_0xd4630d(0x13c1)],'sectionId':0x12d})[_0xd4630d(0x1d77)];})[_0x489342(0x1cb0)](function(_0x5af72f){const _0x4add1f=_0x489342,_0x19dbd2=_0x5af72f&&_0x5af72f[_0x4add1f(0x2214)]?_0x5af72f[_0x4add1f(0x2214)][0x0]:null;if(!_0x19dbd2){const _0x1ce70e=[];let _0x5a3cdf=null;_0x143606[_0x4add1f(0x83a)]&&(_0x5a3cdf=_0x39641b()['find'](_0x143606[_0x4add1f(0x1046)],{'id':Number(_0x143606[_0x4add1f(0x83a)][_0x4add1f(0x20a6)])}));for(let _0x4f0116=0x0;_0x4f0116<_0x143606[_0x4add1f(0x1046)]['length'];_0x4f0116++){_0x5a3cdf&&_0x143606['lists'][_0x4f0116]['id']===_0x5a3cdf['id']&&(_0x143606[_0x4add1f(0x1046)][_0x4f0116]['canSelect']=![],_0x1ce70e['push'](_0x143606['lists'][_0x4f0116]));}_0x143606[_0x4add1f(0x1046)]=_0x1ce70e;}else{if(!_0x19dbd2[_0x4add1f(0x12f4)])return _0xde04c7[_0x4add1f(0x1198)]['get']({'sectionId':_0x19dbd2['id']})['$promise']['then'](function(_0x5d60bf){const _0x4f7b65=_0x4add1f,_0x4ebc69=_0x39641b()[_0x4f7b65(0x1de2)](_0x5d60bf[_0x4f7b65(0x2214)],function(_0x42977d){const _0x32257a=_0x4f7b65;return _0x39641b()[_0x32257a(0x13b4)](_0x143606[_0x32257a(0x1046)],{'id':_0x42977d[_0x32257a(0x2982)]});});let _0xff413c=null;_0x143606[_0x4f7b65(0x83a)]&&(_0xff413c=_0x39641b()[_0x4f7b65(0x13b4)](_0x143606[_0x4f7b65(0x1046)],{'id':Number(_0x143606[_0x4f7b65(0x83a)][_0x4f7b65(0x20a6)])}));if(_0xff413c&&!_0x39641b()[_0x4f7b65(0x727)](_0x4ebc69,['id',_0xff413c['id']])){const _0x374a0b=_0x39641b()['find'](_0x143606['lists'],{'id':_0xff413c['id']});_0x374a0b[_0x4f7b65(0x15da)]=![],_0x4ebc69[_0x4f7b65(0x2785)](_0x374a0b);}_0x143606[_0x4f7b65(0x1046)]=_0x4ebc69;});}})[_0x489342(0x1c4)](function(_0xdbe6a1){const _0x5757f9=_0x489342;_0x3ce053[_0x5757f9(0x218e)]({'title':_0xdbe6a1['status']?_0x5757f9(0xeb9)+_0xdbe6a1[_0x5757f9(0x291)]+_0x5757f9(0x1657)+_0xdbe6a1['statusText']:_0x5757f9(0x113c),'msg':_0xdbe6a1[_0x5757f9(0x25c)]?JSON['stringify'](_0xdbe6a1['data']):_0xdbe6a1[_0x5757f9(0x147f)]()});}),_0x529d85[_0x489342(0x22b6)](_0x489342(0x1c60))?_0xde04c7[_0x489342(0x785)][_0x489342(0xbf7)]({'fields':_0x489342(0x791),'sort':_0x489342(0x16b6),'nolimit':_0x489342(0x44d)})[_0x489342(0x1d77)][_0x489342(0x1cb0)](function(_0x335844){const _0x5172b0=_0x489342;_0x143606[_0x5172b0(0x8de)]=_0x335844[_0x5172b0(0x2214)]||[];})[_0x489342(0x1c4)](function(_0x325343){const _0x166b71=_0x489342;_0x3ce053[_0x166b71(0x218e)]({'title':_0x325343[_0x166b71(0x291)]?_0x166b71(0xeb9)+_0x325343[_0x166b71(0x291)]+_0x166b71(0x1657)+_0x325343[_0x166b71(0xc22)]:'SYSTEM:GET_PAUSES','msg':_0x325343[_0x166b71(0x25c)]?JSON['stringify'](_0x325343[_0x166b71(0x25c)]):_0x325343['toString']()});}):_0xde04c7[_0x489342(0x785)][_0x489342(0xbf7)]({'fields':_0x489342(0x791),'sort':_0x489342(0x16b6),'nolimit':_0x489342(0x44d)})['$promise']['then'](function(_0x24acca){const _0x480cd9=_0x489342;_0x143606[_0x480cd9(0x8de)]=_0x24acca[_0x480cd9(0x2214)]||[];})[_0x489342(0x1cb0)](function(){const _0x3e6ebc=_0x489342;return _0xde04c7['userProfileSection'][_0x3e6ebc(0xbf7)]({'userProfileId':_0x143606[_0x3e6ebc(0xe76)]['userProfileId'],'sectionId':0x3ed})['$promise'];})[_0x489342(0x1cb0)](function(_0xcae429){const _0x149186=_0x489342,_0x1960c0=_0xcae429&&_0xcae429['rows']?_0xcae429['rows'][0x0]:null;if(!_0x1960c0)_0x143606['pauses']=[];else{if(!_0x1960c0[_0x149186(0x12f4)])return _0xde04c7[_0x149186(0x1198)][_0x149186(0xbf7)]({'sectionId':_0x1960c0['id']})[_0x149186(0x1d77)][_0x149186(0x1cb0)](function(_0x5aed14){const _0x1409ff=_0x149186,_0x2e84a9=_0x39641b()[_0x1409ff(0x1de2)](_0x5aed14[_0x1409ff(0x2214)],function(_0x398887){const _0xf4694b=_0x1409ff;return _0x39641b()[_0xf4694b(0x13b4)](_0x143606['pauses'],{'id':_0x398887[_0xf4694b(0x2982)]});});_0x143606[_0x1409ff(0x8de)][_0x1409ff(0xf90)](function(_0x4ba995){const _0x2c1dd4=_0x1409ff;!_0x39641b()[_0x2c1dd4(0x727)](_0x2e84a9,['id',_0x4ba995['id']])&&(_0x4ba995[_0x2c1dd4(0x15da)]=![]),_0x2e84a9[_0x2c1dd4(0x2785)](_0x4ba995);}),_0x143606[_0x1409ff(0x8de)]=_0x2e84a9;});}})[_0x489342(0x1c4)](function(_0x755194){const _0x772cea=_0x489342;_0x3ce053[_0x772cea(0x218e)]({'title':_0x755194[_0x772cea(0x291)]?_0x772cea(0xeb9)+_0x755194[_0x772cea(0x291)]+_0x772cea(0x1657)+_0x755194['statusText']:'SYSTEM:GETpauses','msg':_0x755194[_0x772cea(0x25c)]?JSON[_0x772cea(0x2701)](_0x755194[_0x772cea(0x25c)]):_0x755194[_0x772cea(0x147f)]()});});function _0xe6190b(_0x143a13,_0x5cf258){const _0x221b48=_0x489342;_0x59185f[_0x221b48(0xe27)]({'controller':_0x221b48(0x2903),'controllerAs':'vm','templateUrl':_0x365a4a,'parent':angular[_0x221b48(0x1853)](_0x44fa47[_0x221b48(0x1ed9)]),'targetEvent':_0x5cf258,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x143a13,'whatsappAccounts':_0x143606['whatsappAccounts']?_0x143606[_0x221b48(0xbb3)][_0x221b48(0x2214)]:[],'crudPermissions':_0x143606['crudPermissions'],'realtime':![]}});}function _0x6f4009(){const _0x1ee67d=_0x489342;_0x35b5a9['go'](_0x1ee67d(0x1454),{},{'reload':_0x1ee67d(0x1454)});}function _0x5659d8(){const _0x8209ff=_0x489342;_0xde04c7['whatsappAccount'][_0x8209ff(0x687)]({'id':_0x143606['whatsappAccount']['id']},_0x143606[_0x8209ff(0x83a)])[_0x8209ff(0x1d77)][_0x8209ff(0x1cb0)](function(){const _0xf6c94=_0x8209ff;_0x3ce053['success']({'title':_0xf6c94(0x7b6),'msg':_0x143606[_0xf6c94(0x83a)][_0xf6c94(0x16b6)]?_0x143606[_0xf6c94(0x83a)][_0xf6c94(0x16b6)]+_0xf6c94(0x1068):''});})[_0x8209ff(0x1c4)](function(_0x1f25ab){const _0x32ea33=_0x8209ff;_0x3ce053[_0x32ea33(0x218e)]({'title':_0x1f25ab[_0x32ea33(0x291)]?'API:'+_0x1f25ab[_0x32ea33(0x291)]+_0x32ea33(0x1657)+_0x1f25ab[_0x32ea33(0xc22)]:'SYSTEM:GETwhatsappAccount','msg':_0x1f25ab[_0x32ea33(0x25c)]?JSON[_0x32ea33(0x2701)](_0x1f25ab[_0x32ea33(0x25c)]):_0x1f25ab[_0x32ea33(0x147f)]()});});}}const _0x312da9=_0x4e2a28;;const _0x32a32c=_0x5074a3['p']+_0x5537c6(0xf4d);;_0x14076a['$inject']=[_0x5537c6(0x173),_0x5537c6(0x1463),_0x5537c6(0x406),'$q','$translate',_0x5537c6(0x2168),'$mdDialog',_0x5537c6(0x22bf),_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0x1774)];function _0x14076a(_0x54d290,_0x148b3f,_0x5b4064,_0xd4b5a1,_0x28fbd1,_0xd81501,_0x13c756,_0x4b5d4e,_0xabc00c,_0x2428c1,_0x552251){const _0x43fdb6=_0x5537c6,_0x8bf6e1=this;_0x8bf6e1[_0x43fdb6(0xe76)]=_0x552251[_0x43fdb6(0x21e8)](),_0x8bf6e1['whatsappAccount']={},_0x8bf6e1[_0x43fdb6(0x21a6)]={'count':0x0,'rows':[]},_0x8bf6e1[_0x43fdb6(0x1f87)]=[],_0x8bf6e1[_0x43fdb6(0x1b1a)],_0x8bf6e1['query']={'fields':_0x43fdb6(0x1d68),'limit':0xa,'page':0x1},_0x8bf6e1['init']=_0x17da5c,_0x8bf6e1['deleteConfirm']=_0xe2484f,_0x8bf6e1['success']=_0x1845e9,_0x8bf6e1[_0x43fdb6(0x8a8)]=_0x422365,_0x8bf6e1[_0x43fdb6(0x270b)]=_0x2b5da4,_0x8bf6e1[_0x43fdb6(0xe39)]=_0x47bb65,_0x8bf6e1['deleteWhatsappAccountWhatsappCannedAnswer']=_0x2a5a17,_0x8bf6e1[_0x43fdb6(0x4b0)]=_0x5239c2;function _0x17da5c(_0x4a7b5b,_0x125f73){const _0x22ad7b=_0x43fdb6;_0x8bf6e1[_0x22ad7b(0x83a)]=_0x4a7b5b,_0x8bf6e1[_0x22ad7b(0x1b1a)]=typeof _0x125f73!=='undefined'?_0x125f73:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x8bf6e1['query'][_0x22ad7b(0xfc8)]=_0x8bf6e1[_0x22ad7b(0x83a)]['id'],_0x8bf6e1[_0x22ad7b(0xae2)]['id']=_0x8bf6e1[_0x22ad7b(0x83a)]['id'],_0x422365();}function _0xe2484f(_0x11296b,_0xab27a8){const _0x4750d9=_0x43fdb6,_0x1d4dd5=_0x13c756['confirm']()[_0x4750d9(0x1386)](_0x4750d9(0x1d0d))['htmlContent'](_0x4750d9(0x204d)+(_0x11296b[_0x4750d9(0x16b6)]||_0x11296b['id']&&_0x39641b()[_0x4750d9(0x277)]('whatsappCannedAnswer\x20#')+_0x11296b['id']||_0x4750d9(0xb06))+_0x4750d9(0x1200)+_0x4750d9(0x1b6))[_0x4750d9(0x15ad)]('delete\x20whatsappCannedAnswer')[_0x4750d9(0x728)](_0xab27a8)['ok']('OK')[_0x4750d9(0x696)]('CANCEL');_0x13c756[_0x4750d9(0xe27)](_0x1d4dd5)['then'](function(){_0x2a5a17(_0x11296b);},function(){const _0x1d9f30=_0x4750d9;console[_0x1d9f30(0x1b4f)]('CANCEL');});}function _0x1845e9(_0x67beef){_0x8bf6e1['whatsappAccountWhatsappCannedAnswers']=_0x67beef||{'count':0x0,'rows':[]};}function _0x422365(){const _0x5e227a=_0x43fdb6;_0x8bf6e1['query']['offset']=(_0x8bf6e1[_0x5e227a(0xae2)][_0x5e227a(0x1c7b)]-0x1)*_0x8bf6e1['query']['limit'],_0x8bf6e1[_0x5e227a(0x2061)]=_0x2428c1[_0x5e227a(0x83a)][_0x5e227a(0x1ec5)](_0x8bf6e1[_0x5e227a(0xae2)],_0x1845e9)[_0x5e227a(0x1d77)];}function _0x2b5da4(_0x4296fd,_0x2f2507){const _0x287019=_0x43fdb6;_0x13c756[_0x287019(0xe27)]({'controller':_0x287019(0x2129),'controllerAs':'vm','templateUrl':_0x32a32c,'parent':angular[_0x287019(0x1853)](_0x4b5d4e[_0x287019(0x1ed9)]),'targetEvent':_0x4296fd,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x8bf6e1[_0x287019(0x83a)],'whatsappCannedAnswer':_0x2f2507,'whatsappCannedAnswers':_0x8bf6e1['whatsappAccountWhatsappCannedAnswers'][_0x287019(0x2214)],'license':null,'setting':null,'crudPermissions':_0x8bf6e1['crudPermissions']}});}function _0x2a5a17(_0x4f126d){const _0x214988=_0x43fdb6;_0x2428c1[_0x214988(0x1c25)][_0x214988(0x111d)]({'id':_0x4f126d['id']})[_0x214988(0x1d77)]['then'](function(){const _0x218439=_0x214988;_0x39641b()[_0x218439(0x152a)](_0x8bf6e1[_0x218439(0x21a6)][_0x218439(0x2214)],{'id':_0x4f126d['id']}),_0x8bf6e1[_0x218439(0x21a6)][_0x218439(0x184d)]-=0x1,!_0x8bf6e1[_0x218439(0x21a6)][_0x218439(0x2214)][_0x218439(0xfd0)]&&_0x422365(),_0xabc00c[_0x218439(0x829)]({'title':'WhatsappCannedAnswer\x20deleted!','msg':_0x4f126d[_0x218439(0x16b6)]?_0x4f126d[_0x218439(0x16b6)]+_0x218439(0x3f5):''});})[_0x214988(0x1c4)](function(_0x39d425){const _0xdd8da9=_0x214988;if(_0x39d425[_0xdd8da9(0x25c)]&&_0x39d425['data'][_0xdd8da9(0x1a7c)]&&_0x39d425[_0xdd8da9(0x25c)][_0xdd8da9(0x1a7c)][_0xdd8da9(0xfd0)]){_0x8bf6e1[_0xdd8da9(0x1a7c)]=_0x39d425[_0xdd8da9(0x25c)][_0xdd8da9(0x1a7c)]||[{'message':_0x39d425['toString'](),'type':_0xdd8da9(0xca6)}];for(let _0xf5d9e7=0x0;_0xf5d9e7<_0x39d425[_0xdd8da9(0x25c)][_0xdd8da9(0x1a7c)][_0xdd8da9(0xfd0)];_0xf5d9e7++){_0xabc00c['error']({'title':_0x39d425['data'][_0xdd8da9(0x1a7c)][_0xf5d9e7][_0xdd8da9(0x66a)],'msg':_0x39d425['data'][_0xdd8da9(0x1a7c)][_0xf5d9e7]['message']});}}else _0xabc00c[_0xdd8da9(0x218e)]({'title':_0x39d425[_0xdd8da9(0x291)]?'API:'+_0x39d425[_0xdd8da9(0x291)]+_0xdd8da9(0x1657)+_0x39d425[_0xdd8da9(0xc22)]:_0xdd8da9(0xca6),'msg':_0x39d425[_0xdd8da9(0x25c)]?JSON[_0xdd8da9(0x2701)](_0x39d425['data'][_0xdd8da9(0x155e)]):_0x39d425[_0xdd8da9(0x155e)]||_0x39d425['toString']()});});}function _0x47bb65(){const _0x2fa25b=_0x43fdb6,_0x9de823=angular[_0x2fa25b(0x17fe)](_0x8bf6e1['selectedWhatsappAccountWhatsappCannedAnswers']);return _0x8bf6e1[_0x2fa25b(0x1f87)]=[],_0x9de823;}function _0x5239c2(_0x41b731){const _0x3b75b9=_0x43fdb6,_0x383eea=_0x13c756['confirm']()[_0x3b75b9(0x1386)](_0x3b75b9(0x8d6))['htmlContent'](_0x3b75b9(0x204d)+_0x8bf6e1[_0x3b75b9(0x1f87)][_0x3b75b9(0xfd0)]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x3b75b9(0x15ad)](_0x3b75b9(0x28b7))[_0x3b75b9(0x728)](_0x41b731)['ok']('OK')[_0x3b75b9(0x696)](_0x3b75b9(0x24ba));_0x13c756[_0x3b75b9(0xe27)](_0x383eea)['then'](function(){const _0x5f0681=_0x3b75b9;_0x8bf6e1[_0x5f0681(0x1f87)][_0x5f0681(0xf90)](function(_0x53d522){_0x2a5a17(_0x53d522);}),_0x8bf6e1[_0x5f0681(0x1f87)]=[];});}let _0x116136=!![],_0x5df4cf=0x1;_0x148b3f[_0x43fdb6(0x614)]('vm_dc.query.filter',function(_0x2e9a3c,_0x16c6c7){const _0x1c1ff8=_0x43fdb6;_0x116136?_0xd81501(function(){_0x116136=![];}):(!_0x16c6c7&&(_0x5df4cf=_0x8bf6e1['query']['page']),_0x2e9a3c!==_0x16c6c7&&(_0x8bf6e1[_0x1c1ff8(0xae2)][_0x1c1ff8(0x1c7b)]=0x1),!_0x2e9a3c&&(_0x8bf6e1[_0x1c1ff8(0xae2)][_0x1c1ff8(0x1c7b)]=_0x5df4cf),_0x422365());});}const _0x4aef3b=_0x14076a;;_0xcf8359[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),'$mdDialog','$q',_0x5537c6(0x1ae),_0x5537c6(0x9bf),_0x5537c6(0x10de),'whatsappCannedAnswer',_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca),'crudPermissions'];function _0xcf8359(_0x54a3cd,_0x201be1,_0x248f2a,_0x3076c1,_0x2f72a2,_0x2f0522,_0x10c336,_0x50966e,_0x549cb9,_0xa34a43,_0x3bde84,_0x1f88ba,_0x165af1,_0x49a145){const _0x3f0ddf=_0x5537c6,_0x2058c6=this;_0x2058c6['currentUser']=_0x3bde84[_0x3f0ddf(0x21e8)](),_0x2058c6[_0x3f0ddf(0x1a7c)]=[],_0x2058c6[_0x3f0ddf(0x9ca)]=_0x165af1,_0x2058c6['license']=_0x1f88ba,_0x2058c6['crudPermissions']=_0x49a145,_0x2058c6[_0x3f0ddf(0xf4c)]={},_0x2058c6[_0x3f0ddf(0x1b0c)]=_0x2058c6['setting']&&_0x2058c6[_0x3f0ddf(0x9ca)][_0x3f0ddf(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2058c6[_0x3f0ddf(0x1386)]=_0x3f0ddf(0x20e9),_0x2058c6['whatsappCannedAnswer']=angular[_0x3f0ddf(0x17fe)](_0x549cb9),_0x2058c6[_0x3f0ddf(0x10de)]=_0x50966e,_0x2058c6[_0x3f0ddf(0xc4e)]=![];!_0x2058c6['whatsappCannedAnswer']&&(_0x2058c6[_0x3f0ddf(0xb06)]={},_0x2058c6[_0x3f0ddf(0x1386)]=_0x3f0ddf(0x1aba),_0x2058c6[_0x3f0ddf(0xc4e)]=!![]);_0x201be1[_0x3f0ddf(0x1dfe)]['id']&&(_0x2058c6[_0x3f0ddf(0xb06)][_0x3f0ddf(0xfc8)]=_0x201be1[_0x3f0ddf(0x1dfe)]['id']);_0x2058c6[_0x3f0ddf(0xdf6)]=_0x46a8e5,_0x2058c6['saveWhatsappCannedAnswer']=_0x4adc05,_0x2058c6[_0x3f0ddf(0xa90)]=_0x24a218,_0x2058c6[_0x3f0ddf(0x2c4)]=_0x274ea7,_0x2058c6[_0x3f0ddf(0xda0)]=_0x428bbf;function _0x46a8e5(){const _0x5e5f91=_0x3f0ddf;_0x2058c6[_0x5e5f91(0x1a7c)]=[],_0xa34a43[_0x5e5f91(0x1c25)]['save'](_0x2058c6[_0x5e5f91(0xb06)])['$promise'][_0x5e5f91(0x1cb0)](function(_0x3f7f02){const _0x4a58c2=_0x5e5f91;_0x2058c6[_0x4a58c2(0x10de)][_0x4a58c2(0xf63)](_0x3f7f02[_0x4a58c2(0x19b2)]()),_0x10c336[_0x4a58c2(0x829)]({'title':_0x4a58c2(0xd07),'msg':_0x2058c6['whatsappCannedAnswer'][_0x4a58c2(0x16b6)]?_0x2058c6[_0x4a58c2(0xb06)]['name']+_0x4a58c2(0x470):''}),_0x428bbf(_0x3f7f02);})[_0x5e5f91(0x1c4)](function(_0x3151f1){const _0x4235ff=_0x5e5f91;if(_0x3151f1['data']&&_0x3151f1[_0x4235ff(0x25c)]['errors']&&_0x3151f1[_0x4235ff(0x25c)][_0x4235ff(0x1a7c)]['length']){_0x2058c6[_0x4235ff(0x1a7c)]=_0x3151f1[_0x4235ff(0x25c)][_0x4235ff(0x1a7c)]||[{'message':_0x3151f1[_0x4235ff(0x147f)](),'type':_0x4235ff(0x224)}];for(let _0x2cae0f=0x0;_0x2cae0f<_0x3151f1[_0x4235ff(0x25c)][_0x4235ff(0x1a7c)][_0x4235ff(0xfd0)];_0x2cae0f+=0x1){_0x10c336[_0x4235ff(0x218e)]({'title':_0x3151f1['data'][_0x4235ff(0x1a7c)][_0x2cae0f]['type'],'msg':_0x3151f1[_0x4235ff(0x25c)][_0x4235ff(0x1a7c)][_0x2cae0f][_0x4235ff(0x155e)]});}}else _0x10c336[_0x4235ff(0x218e)]({'title':_0x3151f1['status']?_0x4235ff(0xeb9)+_0x3151f1[_0x4235ff(0x291)]+_0x4235ff(0x1657)+_0x3151f1['statusText']:_0x4235ff(0x224),'msg':_0x3151f1['data']?JSON['stringify'](_0x3151f1[_0x4235ff(0x25c)]['message']):_0x3151f1[_0x4235ff(0x147f)]()});});}function _0x4adc05(){const _0x1de82a=_0x3f0ddf;_0x2058c6['errors']=[],_0xa34a43[_0x1de82a(0x1c25)][_0x1de82a(0x687)]({'id':_0x2058c6[_0x1de82a(0xb06)]['id']},_0x2058c6['whatsappCannedAnswer'])[_0x1de82a(0x1d77)][_0x1de82a(0x1cb0)](function(_0x28a585){const _0x1349e9=_0x1de82a,_0x377c5a=_0x39641b()['find'](_0x2058c6[_0x1349e9(0x10de)],{'id':_0x28a585['id']});_0x377c5a&&_0x39641b()[_0x1349e9(0x9c1)](_0x377c5a,_0x39641b()['pick'](_0x28a585['toJSON'](),_0x39641b()[_0x1349e9(0x1be5)](_0x377c5a))),_0x10c336['success']({'title':_0x1349e9(0x26e2),'msg':_0x2058c6['whatsappCannedAnswer'][_0x1349e9(0x16b6)]?_0x2058c6[_0x1349e9(0xb06)][_0x1349e9(0x16b6)]+_0x1349e9(0xedb):''}),_0x428bbf(_0x28a585);})[_0x1de82a(0x1c4)](function(_0x4ac312){const _0x511a23=_0x1de82a;if(_0x4ac312[_0x511a23(0x25c)]&&_0x4ac312[_0x511a23(0x25c)][_0x511a23(0x1a7c)]&&_0x4ac312['data'][_0x511a23(0x1a7c)]['length']){_0x2058c6[_0x511a23(0x1a7c)]=_0x4ac312[_0x511a23(0x25c)]['errors']||[{'message':_0x4ac312[_0x511a23(0x147f)](),'type':'api.cannedAnswer.update'}];for(let _0x5e6833=0x0;_0x5e6833<_0x4ac312[_0x511a23(0x25c)][_0x511a23(0x1a7c)][_0x511a23(0xfd0)];_0x5e6833++){_0x10c336['error']({'title':_0x4ac312[_0x511a23(0x25c)][_0x511a23(0x1a7c)][_0x5e6833][_0x511a23(0x66a)],'msg':_0x4ac312[_0x511a23(0x25c)][_0x511a23(0x1a7c)][_0x5e6833][_0x511a23(0x155e)]});}}else _0x10c336[_0x511a23(0x218e)]({'title':_0x4ac312['status']?_0x511a23(0xeb9)+_0x4ac312[_0x511a23(0x291)]+'\x20-\x20'+_0x4ac312[_0x511a23(0xc22)]:_0x511a23(0x922),'msg':_0x4ac312['data']?JSON[_0x511a23(0x2701)](_0x4ac312[_0x511a23(0x25c)][_0x511a23(0x155e)]):_0x4ac312[_0x511a23(0x147f)]()});});}function _0x24a218(_0x2afb1b){const _0x5c4d5e=_0x3f0ddf;_0x2058c6[_0x5c4d5e(0x1a7c)]=[];const _0x44a6dc=_0x3076c1[_0x5c4d5e(0x1551)]()['title'](_0x5c4d5e(0x1a2e))[_0x5c4d5e(0x862)](_0x5c4d5e(0x1609))['ariaLabel'](_0x5c4d5e(0x137c))['ok'](_0x5c4d5e(0x2594))['cancel'](_0x5c4d5e(0xde1))[_0x5c4d5e(0x728)](_0x2afb1b);_0x3076c1['show'](_0x44a6dc)[_0x5c4d5e(0x1cb0)](function(){const _0x3d8aa0=_0x5c4d5e;_0xa34a43[_0x3d8aa0(0x1c25)]['delete']({'id':_0x2058c6[_0x3d8aa0(0xb06)]['id']})[_0x3d8aa0(0x1d77)]['then'](function(){const _0xb988fc=_0x3d8aa0;_0x39641b()[_0xb988fc(0x152a)](_0x2058c6[_0xb988fc(0x10de)],{'id':_0x2058c6['whatsappCannedAnswer']['id']}),_0x10c336[_0xb988fc(0x829)]({'title':_0xb988fc(0x2626),'msg':(_0x2058c6['whatsappCannedAnswer'][_0xb988fc(0x16b6)]||_0xb988fc(0xb06))+_0xb988fc(0x3f5)}),_0x428bbf(_0x2058c6[_0xb988fc(0xb06)]);})[_0x3d8aa0(0x1c4)](function(_0x234531){const _0x288fc5=_0x3d8aa0;if(_0x234531[_0x288fc5(0x25c)]&&_0x234531[_0x288fc5(0x25c)][_0x288fc5(0x1a7c)]&&_0x234531[_0x288fc5(0x25c)][_0x288fc5(0x1a7c)]['length']){_0x2058c6['errors']=_0x234531['data'][_0x288fc5(0x1a7c)]||[{'message':_0x234531[_0x288fc5(0x147f)](),'type':_0x288fc5(0x1399)}];for(let _0x40bf9d=0x0;_0x40bf9d<_0x234531['data']['errors'][_0x288fc5(0xfd0)];_0x40bf9d++){_0x10c336['error']({'title':_0x234531[_0x288fc5(0x25c)][_0x288fc5(0x1a7c)][_0x40bf9d][_0x288fc5(0x66a)],'msg':_0x234531[_0x288fc5(0x25c)]['errors'][_0x40bf9d]['message']});}}else _0x10c336[_0x288fc5(0x218e)]({'title':_0x234531[_0x288fc5(0x291)]?_0x288fc5(0xeb9)+_0x234531[_0x288fc5(0x291)]+_0x288fc5(0x1657)+_0x234531[_0x288fc5(0xc22)]:_0x288fc5(0x1399),'msg':_0x234531[_0x288fc5(0x25c)]?JSON[_0x288fc5(0x2701)](_0x234531['data'][_0x288fc5(0x155e)]):_0x234531['message']||_0x234531[_0x288fc5(0x147f)]()});});},function(){});}function _0x274ea7(_0x24b85a){return _0x24b85a===null?undefined:new Date(_0x24b85a);}function _0x428bbf(_0x1a303e){_0x3076c1['hide'](_0x1a303e);}}const _0x2cc20f=_0xcf8359;;_0x15975e[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x1f10),_0x5537c6(0x406),'$mdSidenav',_0x5537c6(0xcb9),'$document',_0x5537c6(0x2168),_0x5537c6(0x1ae),_0x5537c6(0x142b),_0x5537c6(0x9bf),'Auth'];function _0x15975e(_0x1fffc3,_0x11346f,_0x4a2ee1,_0x546930,_0x521877,_0x5ed49e,_0x174447,_0x3861ea,_0x4503b0,_0x4cea4a,_0x5d44a6){const _0x4e9f66=_0x5537c6,_0xfce904=this;_0xfce904[_0x4e9f66(0xe76)]=_0x5d44a6[_0x4e9f66(0x21e8)](),_0xfce904[_0x4e9f66(0xdf2)]={'count':0x0,'rows':[]},_0xfce904[_0x4e9f66(0x122a)]=[],_0xfce904['crudPermissions'],_0xfce904[_0x4e9f66(0x2376)]={'first':'1st','second':'2nd','third':'3rd'},_0xfce904[_0x4e9f66(0xae2)]={'fields':_0x4e9f66(0x1f4b),'sort':_0x4e9f66(0x282),'limit':0xa,'page':0x1},_0xfce904['init']=_0x1c42f4,_0xfce904[_0x4e9f66(0xb25)]=_0x5c5ccc,_0xfce904[_0x4e9f66(0x829)]=_0x19536e,_0xfce904[_0x4e9f66(0x640)]=_0xaf6ce2,_0xfce904[_0x4e9f66(0x932)]=_0x46bfd6,_0xfce904[_0x4e9f66(0x20b3)]=_0x4fa3e1,_0xfce904[_0x4e9f66(0x1ebf)]=_0x48480e,_0xfce904['deleteSelectedDispositions']=_0x41af2f,_0xfce904[_0x4e9f66(0x25ec)]=_0x20755e,_0xfce904[_0x4e9f66(0x13ff)]=_0x51e0bf;function _0x1c42f4(_0x488925,_0x52dc0f){const _0x2cc66f=_0x4e9f66;_0xfce904['whatsappAccount']=_0x488925||{},_0xfce904['crudPermissions']=typeof _0x52dc0f!==_0x2cc66f(0x16b5)?_0x52dc0f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xfce904[_0x2cc66f(0xae2)][_0x2cc66f(0xfc8)]=_0xfce904['whatsappAccount']['id'],_0xfce904['query']['id']=_0xfce904[_0x2cc66f(0x83a)]['id'],_0xaf6ce2();}function _0x46bfd6(_0x161bdb,_0x424c32){const _0x479a2d=_0x4e9f66;_0x521877[_0x479a2d(0xe27)]({'controller':'CreateOrEditDispositionDialogController','controllerAs':'vm','templateUrl':_0x3d7049,'parent':angular[_0x479a2d(0x1853)](_0x5ed49e[_0x479a2d(0x1ed9)]),'targetEvent':_0x161bdb,'clickOutsideToClose':!![],'locals':{'disposition':_0x424c32,'model':{'id':_0xfce904[_0x479a2d(0x83a)]['id'],'field':_0x479a2d(0xfc8),'route':_0x479a2d(0x83a)},'license':null,'setting':null,'crudPermissions':_0xfce904[_0x479a2d(0x1b1a)]}})['then'](function(_0x43fe3d){if(_0x43fe3d)_0xaf6ce2();});}function _0x5c5ccc(_0x2c3c1b,_0x5ca57a){const _0x3283c9=_0x4e9f66,_0x343cd6=_0x39641b()['some'](_0xfce904[_0x3283c9(0xdf2)][_0x3283c9(0x2214)],[_0x3283c9(0x55e),_0x2c3c1b['id']]),_0x320522=_0x521877[_0x3283c9(0x1551)]()[_0x3283c9(0x1386)](_0x3861ea['instant'](_0x3283c9(0x1d64)))[_0x3283c9(0x862)](_0x3861ea[_0x3283c9(0x25cc)]('TOOLS.NOTIFICATIONS.'+(_0x343cd6?_0x3283c9(0x13cb):_0x3283c9(0x1089)),{'name':_0x2c3c1b[_0x3283c9(0x16b6)]}))[_0x3283c9(0x15ad)](_0x3283c9(0x35d))[_0x3283c9(0x728)](_0x5ca57a)['ok']('OK')[_0x3283c9(0x696)](_0x3861ea[_0x3283c9(0x25cc)]('APP.CANCEL'));_0x521877[_0x3283c9(0xe27)](_0x320522)[_0x3283c9(0x1cb0)](function(){_0x4fa3e1(_0x2c3c1b);});}function _0x19536e(_0x5aaca1){const _0x59dfa0=_0x4e9f66;_0xfce904[_0x59dfa0(0xdf2)]=_0x5aaca1||{'count':0x0,'rows':[]};}function _0xaf6ce2(){const _0x31f98a=_0x4e9f66;_0xfce904[_0x31f98a(0xae2)][_0x31f98a(0x184b)]=(_0xfce904[_0x31f98a(0xae2)][_0x31f98a(0x1c7b)]-0x1)*_0xfce904[_0x31f98a(0xae2)]['limit'],_0xfce904[_0x31f98a(0x2061)]=_0x4503b0['whatsappAccount'][_0x31f98a(0x640)](_0xfce904[_0x31f98a(0xae2)],_0x19536e)['$promise'];}function _0x4fa3e1(_0x383bd1){const _0x10f988=_0x4e9f66;_0x4503b0[_0x10f988(0x1746)][_0x10f988(0x111d)]({'id':_0x383bd1['id']})[_0x10f988(0x1d77)][_0x10f988(0x1cb0)](function(){const _0x1e137a=_0x10f988;_0xaf6ce2(),_0x4cea4a[_0x1e137a(0x829)]({'title':_0x3861ea[_0x1e137a(0x25cc)](_0x1e137a(0x1f96))});})[_0x10f988(0x1c4)](function(_0x288d5f){const _0x60ba92=_0x10f988;if(_0x288d5f['data']&&_0x288d5f[_0x60ba92(0x25c)][_0x60ba92(0x1a7c)]&&_0x288d5f['data'][_0x60ba92(0x1a7c)][_0x60ba92(0xfd0)]){_0xfce904[_0x60ba92(0x1a7c)]=_0x288d5f[_0x60ba92(0x25c)][_0x60ba92(0x1a7c)]||[{'message':_0x288d5f[_0x60ba92(0x147f)](),'type':_0x60ba92(0x2618)}];for(let _0x38e062=0x0;_0x38e062<_0x288d5f[_0x60ba92(0x25c)][_0x60ba92(0x1a7c)][_0x60ba92(0xfd0)];_0x38e062++){_0x4cea4a[_0x60ba92(0x218e)]({'title':_0x288d5f['data'][_0x60ba92(0x1a7c)][_0x38e062]['type'],'msg':_0x288d5f['data'][_0x60ba92(0x1a7c)][_0x38e062][_0x60ba92(0x155e)]});}}else _0x4cea4a[_0x60ba92(0x218e)]({'title':_0x288d5f[_0x60ba92(0x291)]?_0x60ba92(0xeb9)+_0x288d5f[_0x60ba92(0x291)]+_0x60ba92(0x1657)+_0x288d5f[_0x60ba92(0xc22)]:_0x60ba92(0x2618),'msg':_0x288d5f[_0x60ba92(0x25c)]?JSON['stringify'](_0x288d5f['data'][_0x60ba92(0x155e)]):_0x288d5f[_0x60ba92(0x155e)]||_0x288d5f[_0x60ba92(0x147f)]()});});}function _0x48480e(){const _0x14c0b4=_0x4e9f66,_0x1a3a78=angular['copy'](_0xfce904[_0x14c0b4(0x122a)]);return _0xfce904[_0x14c0b4(0x122a)]=[],_0x1a3a78;}function _0x41af2f(_0xe2b97d){const _0x33d197=_0x4e9f66,_0x60770d=_0x521877[_0x33d197(0x1551)]()[_0x33d197(0x1386)](_0x3861ea[_0x33d197(0x25cc)]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE'))[_0x33d197(0x862)](_0x3861ea[_0x33d197(0x25cc)](_0x33d197(0xb3c),{'total':_0xfce904['selectedDispositions'][_0x33d197(0xfd0)]}))[_0x33d197(0x15ad)]('Delete\x20dispositions')[_0x33d197(0x728)](_0xe2b97d)['ok']('OK')[_0x33d197(0x696)](_0x3861ea[_0x33d197(0x25cc)]('APP.CANCEL'));_0x521877['show'](_0x60770d)[_0x33d197(0x1cb0)](function(){const _0x45e632=_0x33d197;_0xfce904[_0x45e632(0x122a)][_0x45e632(0xf90)](function(_0x4895db){_0x4fa3e1(_0x4895db);}),_0xfce904[_0x45e632(0x122a)]=[];});}function _0x20755e(){_0xfce904['selectedDispositions']=[];}function _0x51e0bf(){const _0x3d8779=_0x4e9f66;_0xfce904[_0x3d8779(0x122a)]=_0xfce904['dispositions'][_0x3d8779(0x2214)];}let _0x3911a1=!![],_0x5ddd8a=0x1;_0x1fffc3['$watch'](_0x4e9f66(0xeb6),function(_0x449321,_0x522823){const _0x3e77b2=_0x4e9f66;_0x3911a1?_0x174447(function(){_0x3911a1=![];}):(!_0x522823&&(_0x5ddd8a=_0xfce904['query'][_0x3e77b2(0x1c7b)]),_0x449321!==_0x522823&&(_0xfce904[_0x3e77b2(0xae2)]['page']=0x1),!_0x449321&&(_0xfce904[_0x3e77b2(0xae2)][_0x3e77b2(0x1c7b)]=_0x5ddd8a),_0xaf6ce2());});}const _0x49637d=_0x15975e;;const _0x28c78f=_0x5074a3['p']+_0x5537c6(0x2347);;_0xa10d4b[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x1f10),'$state',_0x5537c6(0x417),'$mdDialog',_0x5537c6(0x22bf),'$timeout',_0x5537c6(0x1ae),_0x5537c6(0xbb3),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0xa10d4b(_0x5bfb47,_0x20f611,_0x5264e4,_0x3c1756,_0x2dba,_0x5407ad,_0x56d7c0,_0x2180ca,_0x5ae820,_0x2e1c4e,_0x3617b5,_0x2a4e04,_0x58452c,_0x2d000f,_0x475903,_0x25a363,_0x29a881){const _0x16f7c6=_0x5537c6,_0xee152b=this;_0xee152b[_0x16f7c6(0x8a5)]=_0x25a363,_0xee152b[_0x16f7c6(0x9ca)]=_0x29a881,_0xee152b[_0x16f7c6(0xe76)]=_0x475903['getCurrentUser'](),_0xee152b['whatsappAccounts']=_0x5ae820||{'count':0x0,'rows':[]},_0xee152b[_0x16f7c6(0x44a)]=_0x2e1c4e,_0xee152b[_0x16f7c6(0x2199)]=_0x3617b5&&_0x3617b5['count']==0x1?_0x3617b5[_0x16f7c6(0x2214)][0x0]:null,_0xee152b[_0x16f7c6(0x1b1a)]=_0x475903[_0x16f7c6(0x14ea)](_0xee152b[_0x16f7c6(0x2199)]?_0xee152b[_0x16f7c6(0x2199)][_0x16f7c6(0x1b1a)]:null),_0xee152b[_0x16f7c6(0xc83)]=_0x16f7c6(0xbb3),_0xee152b[_0x16f7c6(0x1d20)]='',_0xee152b[_0x16f7c6(0x1cdf)]=null,_0xee152b[_0x16f7c6(0x112e)]=[],_0xee152b[_0x16f7c6(0xae2)]={'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':_0x16f7c6(0x282),'limit':0xa,'page':0x1},_0xee152b[_0x16f7c6(0x101d)]=_0x39641b()[_0x16f7c6(0x2631)]([{'option':'Twilio','value':_0x16f7c6(0x17d1)}],function(_0x132714){const _0x524c21=_0x16f7c6;return _0x39641b()['replace'](_0x132714[_0x524c21(0x327)],new RegExp('\x27','g'),'');}),_0xee152b[_0x16f7c6(0x235d)]=_0x25b2e9,_0xee152b[_0x16f7c6(0x1552)]=_0x55d8d0,_0xee152b[_0x16f7c6(0x1379)]=_0x4bf676,_0xee152b[_0x16f7c6(0x27fe)]=_0x37b809,_0xee152b[_0x16f7c6(0x829)]=_0x179176,_0xee152b[_0x16f7c6(0x1758)]=_0x1cb5d5,_0xee152b[_0x16f7c6(0x16eb)]=_0x3a8670,_0xee152b[_0x16f7c6(0x21f8)]=_0x5007c8,_0xee152b[_0x16f7c6(0x9b9)]=_0x2717dd,_0xee152b[_0x16f7c6(0xe6e)]=_0x3b0191,_0xee152b[_0x16f7c6(0x2c7)]=_0x3c002d,_0xee152b['selectAllWhatsappAccounts']=_0x5d49e5,_0x475903['hasRole'](_0x16f7c6(0x1c60))?_0x2a4e04[_0x16f7c6(0x22f2)][_0x16f7c6(0xbf7)]({'fields':_0x16f7c6(0x43c),'sort':_0x16f7c6(0x16b6)})['$promise'][_0x16f7c6(0x1cb0)](function(_0x1ded32){const _0x120020=_0x16f7c6;_0xee152b[_0x120020(0x1046)]=_0x1ded32[_0x120020(0x2214)]||[];})[_0x16f7c6(0x1c4)](function(_0x4cd20b){const _0x43ccb1=_0x16f7c6;_0x2d000f[_0x43ccb1(0x218e)]({'title':_0x4cd20b[_0x43ccb1(0x291)]?'API:'+_0x4cd20b['status']+_0x43ccb1(0x1657)+_0x4cd20b[_0x43ccb1(0xc22)]:_0x43ccb1(0x149e),'msg':_0x4cd20b[_0x43ccb1(0x25c)]?JSON[_0x43ccb1(0x2701)](_0x4cd20b['data']):_0x4cd20b[_0x43ccb1(0x147f)]()});}):_0x2a4e04[_0x16f7c6(0x22f2)][_0x16f7c6(0xbf7)]({'fields':'id,name','sort':_0x16f7c6(0x16b6)})[_0x16f7c6(0x1d77)][_0x16f7c6(0x1cb0)](function(_0x4a1dad){const _0x23c729=_0x16f7c6;_0xee152b['lists']=_0x4a1dad[_0x23c729(0x2214)]||[];})['then'](function(){const _0x2f77ce=_0x16f7c6;return _0x2a4e04['userProfileSection']['get']({'userProfileId':_0xee152b[_0x2f77ce(0xe76)][_0x2f77ce(0x13c1)],'sectionId':0x12d})[_0x2f77ce(0x1d77)];})['then'](function(_0x24c207){const _0x89ed5e=_0x16f7c6,_0x426cf3=_0x24c207&&_0x24c207[_0x89ed5e(0x2214)]?_0x24c207['rows'][0x0]:null;if(!_0x426cf3){const _0xa72674=[];let _0x195b60=null;_0xee152b[_0x89ed5e(0x83a)]&&(_0x195b60=_0x39641b()[_0x89ed5e(0x13b4)](_0xee152b['lists'],{'id':Number(_0xee152b['whatsappAccount'][_0x89ed5e(0x20a6)])}));for(let _0x471a90=0x0;_0x471a90<_0xee152b[_0x89ed5e(0x1046)][_0x89ed5e(0xfd0)];_0x471a90++){_0x195b60&&_0xee152b[_0x89ed5e(0x1046)][_0x471a90]['id']===_0x195b60['id']&&(_0xee152b[_0x89ed5e(0x1046)][_0x471a90][_0x89ed5e(0x15da)]=![],_0xa72674[_0x89ed5e(0x2785)](_0xee152b[_0x89ed5e(0x1046)][_0x471a90]));}_0xee152b[_0x89ed5e(0x1046)]=_0xa72674;}else{if(!_0x426cf3[_0x89ed5e(0x12f4)])return _0x2a4e04['userProfileResource'][_0x89ed5e(0xbf7)]({'sectionId':_0x426cf3['id']})['$promise'][_0x89ed5e(0x1cb0)](function(_0x2651ab){const _0x340297=_0x89ed5e,_0x2d732f=_0x39641b()[_0x340297(0x1de2)](_0x2651ab[_0x340297(0x2214)],function(_0x3d81dd){const _0xe2a675=_0x340297;return _0x39641b()[_0xe2a675(0x13b4)](_0xee152b[_0xe2a675(0x1046)],{'id':_0x3d81dd[_0xe2a675(0x2982)]});});let _0x3f79ac=null;_0xee152b[_0x340297(0x83a)]&&(_0x3f79ac=_0x39641b()[_0x340297(0x13b4)](_0xee152b[_0x340297(0x1046)],{'id':Number(_0xee152b['whatsappAccount'][_0x340297(0x20a6)])}));if(_0x3f79ac&&!_0x39641b()[_0x340297(0x727)](_0x2d732f,['id',_0x3f79ac['id']])){const _0x2e2ee8=_0x39641b()['find'](_0xee152b[_0x340297(0x1046)],{'id':_0x3f79ac['id']});_0x2e2ee8[_0x340297(0x15da)]=![],_0x2d732f[_0x340297(0x2785)](_0x2e2ee8);}_0xee152b['lists']=_0x2d732f;});}})[_0x16f7c6(0x1c4)](function(_0x333a4a){const _0x5f2fcf=_0x16f7c6;_0x2d000f[_0x5f2fcf(0x218e)]({'title':_0x333a4a[_0x5f2fcf(0x291)]?_0x5f2fcf(0xeb9)+_0x333a4a[_0x5f2fcf(0x291)]+_0x5f2fcf(0x1657)+_0x333a4a[_0x5f2fcf(0xc22)]:_0x5f2fcf(0x113c),'msg':_0x333a4a[_0x5f2fcf(0x25c)]?JSON['stringify'](_0x333a4a['data']):_0x333a4a['toString']()});}),_0x475903[_0x16f7c6(0x22b6)](_0x16f7c6(0x1c60))?_0x2a4e04[_0x16f7c6(0x785)][_0x16f7c6(0xbf7)]({'fields':_0x16f7c6(0x791),'sort':_0x16f7c6(0x16b6),'nolimit':_0x16f7c6(0x44d)})['$promise'][_0x16f7c6(0x1cb0)](function(_0x4bf857){const _0x3d5e58=_0x16f7c6;_0xee152b[_0x3d5e58(0x8de)]=_0x4bf857[_0x3d5e58(0x2214)]||[];})['catch'](function(_0x294d08){const _0x5a5100=_0x16f7c6;_0x2d000f[_0x5a5100(0x218e)]({'title':_0x294d08[_0x5a5100(0x291)]?_0x5a5100(0xeb9)+_0x294d08['status']+'\x20-\x20'+_0x294d08[_0x5a5100(0xc22)]:_0x5a5100(0x1589),'msg':_0x294d08['data']?JSON[_0x5a5100(0x2701)](_0x294d08[_0x5a5100(0x25c)]):_0x294d08[_0x5a5100(0x147f)]()});}):_0x2a4e04[_0x16f7c6(0x785)][_0x16f7c6(0xbf7)]({'fields':'name,id','sort':_0x16f7c6(0x16b6),'nolimit':_0x16f7c6(0x44d)})[_0x16f7c6(0x1d77)][_0x16f7c6(0x1cb0)](function(_0x24c9c6){const _0x96822f=_0x16f7c6;_0xee152b[_0x96822f(0x8de)]=_0x24c9c6[_0x96822f(0x2214)]||[];})[_0x16f7c6(0x1cb0)](function(){const _0x398f42=_0x16f7c6;return _0x2a4e04['userProfileSection'][_0x398f42(0xbf7)]({'userProfileId':_0xee152b[_0x398f42(0xe76)]['userProfileId'],'sectionId':0x3ed})[_0x398f42(0x1d77)];})[_0x16f7c6(0x1cb0)](function(_0x4939f5){const _0x1d4749=_0x16f7c6,_0x418654=_0x4939f5&&_0x4939f5[_0x1d4749(0x2214)]?_0x4939f5['rows'][0x0]:null;if(!_0x418654)_0xee152b[_0x1d4749(0x8de)]=[];else{if(!_0x418654[_0x1d4749(0x12f4)])return _0x2a4e04['userProfileResource'][_0x1d4749(0xbf7)]({'sectionId':_0x418654['id']})[_0x1d4749(0x1d77)][_0x1d4749(0x1cb0)](function(_0x20920a){const _0x517e0b=_0x1d4749,_0x15adfe=_0x39641b()[_0x517e0b(0x1de2)](_0x20920a['rows'],function(_0xc279cd){const _0x37d2c3=_0x517e0b;return _0x39641b()['find'](_0xee152b[_0x37d2c3(0x8de)],{'id':_0xc279cd[_0x37d2c3(0x2982)]});});_0xee152b[_0x517e0b(0x8de)][_0x517e0b(0xf90)](function(_0x7ad34d){const _0x1b56c2=_0x517e0b;!_0x39641b()[_0x1b56c2(0x727)](_0x15adfe,['id',_0x7ad34d['id']])&&(_0x7ad34d[_0x1b56c2(0x15da)]=![]),_0x15adfe[_0x1b56c2(0x2785)](_0x7ad34d);}),_0xee152b[_0x517e0b(0x8de)]=_0x15adfe;});}})['catch'](function(_0x3eb80c){const _0x3e52b1=_0x16f7c6;_0x2d000f[_0x3e52b1(0x218e)]({'title':_0x3eb80c[_0x3e52b1(0x291)]?'API:'+_0x3eb80c[_0x3e52b1(0x291)]+'\x20-\x20'+_0x3eb80c['statusText']:'SYSTEM:GETpauses','msg':_0x3eb80c[_0x3e52b1(0x25c)]?JSON[_0x3e52b1(0x2701)](_0x3eb80c[_0x3e52b1(0x25c)]):_0x3eb80c['toString']()});});function _0x25b2e9(_0x56cbcc){const _0x2fa0c3=_0x16f7c6;_0x5264e4['go'](_0x2fa0c3(0x40c),{'id':_0x56cbcc['id'],'whatsappAccount':_0x56cbcc,'crudPermissions':_0xee152b[_0x2fa0c3(0x1b1a)]});}function _0x55d8d0(_0x1bcf4c){const _0x32c152=_0x16f7c6;_0x5264e4['go'](_0x32c152(0x40c),{'id':_0x1bcf4c['id'],'tab':0x5});}function _0x4bf676(_0x9b74a,_0x10813a){const _0x237da8=_0x16f7c6;_0x2dba[_0x237da8(0xe27)]({'controller':'WhatsappAccountagentaddController','controllerAs':'vm','templateUrl':_0x365a4a,'parent':angular[_0x237da8(0x1853)](_0x5407ad['body']),'targetEvent':_0x10813a,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x9b74a,'whatsappAccounts':_0xee152b[_0x237da8(0xbb3)]?_0xee152b[_0x237da8(0xbb3)][_0x237da8(0x2214)]:[],'crudPermissions':_0xee152b['crudPermissions'],'realtime':![]}});}function _0x37b809(_0x571b29,_0x1df42b){const _0x2f6122=_0x16f7c6,_0x24f02f=_0x2dba[_0x2f6122(0x1551)]()[_0x2f6122(0x1386)](_0x2f6122(0x140b)+_0x39641b()[_0x2f6122(0xa75)](_0x2f6122(0x83a))+'?')[_0x2f6122(0x49e)](_0x2f6122(0x204d)+(_0x571b29[_0x2f6122(0x16b6)]||'whatsappAccount')+_0x2f6122(0x1200)+_0x2f6122(0x1b6))[_0x2f6122(0x15ad)](_0x2f6122(0x8cd))['targetEvent'](_0x1df42b)['ok']('OK')[_0x2f6122(0x696)](_0x2f6122(0x24ba));_0x2dba[_0x2f6122(0xe27)](_0x24f02f)[_0x2f6122(0x1cb0)](function(){_0x5007c8(_0x571b29);},function(){const _0x3d310f=_0x2f6122;console[_0x3d310f(0x1b4f)]('CANCEL');});}let _0x359a18=!![],_0x52421d=0x1;_0x5bfb47[_0x16f7c6(0x614)](_0x16f7c6(0x957),function(_0x4f67ae,_0x1b3508){const _0x360dd0=_0x16f7c6;_0x359a18?_0x56d7c0(function(){_0x359a18=![];}):(!_0x1b3508&&(_0x52421d=_0xee152b[_0x360dd0(0xae2)][_0x360dd0(0x1c7b)]),_0x4f67ae!==_0x1b3508&&(_0xee152b['query'][_0x360dd0(0x1c7b)]=0x1),!_0x4f67ae&&(_0xee152b['query']['page']=_0x52421d),_0xee152b[_0x360dd0(0x1758)]());});function _0x179176(_0x120133){const _0x3a20d7=_0x16f7c6;_0xee152b[_0x3a20d7(0xbb3)]=_0x120133||{'count':0x0,'rows':[]};}function _0x1cb5d5(){const _0x20b97f=_0x16f7c6;_0xee152b[_0x20b97f(0xae2)][_0x20b97f(0x184b)]=(_0xee152b[_0x20b97f(0xae2)][_0x20b97f(0x1c7b)]-0x1)*_0xee152b['query'][_0x20b97f(0x236)],_0x475903['hasRole'](_0x20b97f(0x1c60))?_0xee152b[_0x20b97f(0x2061)]=_0x2a4e04[_0x20b97f(0x83a)][_0x20b97f(0xbf7)](_0xee152b[_0x20b97f(0xae2)],_0x179176)[_0x20b97f(0x1d77)]:(_0xee152b[_0x20b97f(0xae2)]['id']=_0xee152b[_0x20b97f(0x44a)]['id'],_0xee152b[_0x20b97f(0xae2)][_0x20b97f(0x1f74)]='WhatsappAccounts',_0xee152b[_0x20b97f(0x2061)]=_0x2a4e04['userProfile'][_0x20b97f(0x1810)](_0xee152b[_0x20b97f(0xae2)],_0x179176)[_0x20b97f(0x1d77)]);}function _0x3a8670(_0x45cc96,_0x14b606){const _0x26dea6=_0x16f7c6;_0x2dba[_0x26dea6(0xe27)]({'controller':_0x26dea6(0x1242),'controllerAs':'vm','templateUrl':_0x28c78f,'parent':angular[_0x26dea6(0x1853)](_0x5407ad[_0x26dea6(0x1ed9)]),'targetEvent':_0x45cc96,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x14b606,'whatsappAccounts':_0xee152b['whatsappAccounts']['rows'],'license':_0xee152b[_0x26dea6(0x8a5)],'setting':_0xee152b['setting'],'crudPermissions':_0xee152b['crudPermissions']}});}function _0x5007c8(_0x107c73){const _0x11e56b=_0x16f7c6;_0x2a4e04[_0x11e56b(0x83a)][_0x11e56b(0x111d)]({'id':_0x107c73['id']})[_0x11e56b(0x1d77)][_0x11e56b(0x1cb0)](function(){const _0x34202c=_0x11e56b;_0x39641b()[_0x34202c(0x152a)](_0xee152b[_0x34202c(0xbb3)][_0x34202c(0x2214)],{'id':_0x107c73['id']}),_0xee152b[_0x34202c(0xbb3)][_0x34202c(0x184d)]-=0x1,!_0xee152b[_0x34202c(0xbb3)][_0x34202c(0x2214)][_0x34202c(0xfd0)]&&_0xee152b[_0x34202c(0x1758)](),_0x2d000f[_0x34202c(0x829)]({'title':_0x39641b()[_0x34202c(0xa75)]('WhatsappAccount')+_0x34202c(0x2663),'msg':_0x107c73['name']?_0x107c73[_0x34202c(0x16b6)]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x2abd22){const _0x434472=_0x11e56b;if(_0x2abd22[_0x434472(0x25c)]&&_0x2abd22[_0x434472(0x25c)]['errors']&&_0x2abd22[_0x434472(0x25c)][_0x434472(0x1a7c)][_0x434472(0xfd0)]){_0xee152b[_0x434472(0x1a7c)]=_0x2abd22[_0x434472(0x25c)][_0x434472(0x1a7c)]||[{'message':_0x2abd22[_0x434472(0x147f)](),'type':'SYSTEM:DELETEwhatsappAccount'}];for(let _0x2d66cc=0x0;_0x2d66cc<_0x2abd22[_0x434472(0x25c)][_0x434472(0x1a7c)]['length'];_0x2d66cc++){_0x2d000f[_0x434472(0x218e)]({'title':_0x2abd22[_0x434472(0x25c)]['errors'][_0x2d66cc][_0x434472(0x66a)],'msg':_0x2abd22[_0x434472(0x25c)]['errors'][_0x2d66cc][_0x434472(0x155e)]});}}else _0x2d000f[_0x434472(0x218e)]({'title':_0x2abd22[_0x434472(0x291)]?'API:'+_0x2abd22[_0x434472(0x291)]+'\x20-\x20'+_0x2abd22[_0x434472(0xc22)]:_0x434472(0x1464),'msg':_0x2abd22[_0x434472(0x25c)]?JSON[_0x434472(0x2701)](_0x2abd22['data'][_0x434472(0x155e)]):_0x2abd22['message']||_0x2abd22[_0x434472(0x147f)]()});});}function _0x2717dd(){const _0x437e11=_0x16f7c6,_0x3c58f7=angular[_0x437e11(0x17fe)](_0xee152b[_0x437e11(0x112e)]);return _0xee152b['selectedWhatsappAccounts']=[],_0x3c58f7;}function _0x3b0191(_0x562080){const _0x10bec5=_0x16f7c6,_0x4c3aaf=_0x2dba[_0x10bec5(0x1551)]()[_0x10bec5(0x1386)](_0x10bec5(0x225))[_0x10bec5(0x49e)](_0x10bec5(0x204d)+_0xee152b[_0x10bec5(0x112e)][_0x10bec5(0xfd0)]+'\x20selected'+_0x10bec5(0x1b6))[_0x10bec5(0x15ad)]('delete\x20WhatsappAccounts')['targetEvent'](_0x562080)['ok']('OK')[_0x10bec5(0x696)](_0x10bec5(0x24ba));_0x2dba[_0x10bec5(0xe27)](_0x4c3aaf)[_0x10bec5(0x1cb0)](function(){const _0x3e520a=_0x10bec5;_0xee152b['selectedWhatsappAccounts'][_0x3e520a(0xf90)](function(_0x3d2fa0){_0x5007c8(_0x3d2fa0);}),_0xee152b[_0x3e520a(0x112e)]=[];});}function _0x3c002d(){const _0x554cea=_0x16f7c6;_0xee152b[_0x554cea(0x112e)]=[];}function _0x5d49e5(){const _0x4227b9=_0x16f7c6;_0xee152b[_0x4227b9(0x112e)]=_0xee152b['whatsappAccounts'][_0x4227b9(0x2214)];}}const _0x4e00bd=_0xa10d4b;;_0x19d340['$inject']=[_0x5537c6(0x1463),_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),'$q','$translate',_0x5537c6(0x9bf),_0x5537c6(0x6d8),_0x5537c6(0xea8),_0x5537c6(0x142b),_0x5537c6(0x1774),_0x5537c6(0x8a5),'setting',_0x5537c6(0x1b1a)];function _0x19d340(_0x361f1f,_0x2c03b2,_0x56dd29,_0x26d7ab,_0x445b26,_0x404696,_0x41d4e5,_0x49792a,_0x268370,_0x14efcb,_0x415e1f,_0x443581,_0x7b10bc,_0x2d4b78){const _0x44605a=_0x5537c6,_0x5cf80f=this;_0x5cf80f[_0x44605a(0xe76)]=_0x415e1f[_0x44605a(0x21e8)](),_0x5cf80f[_0x44605a(0x1a7c)]=[],_0x5cf80f[_0x44605a(0x9ca)]=_0x7b10bc,_0x5cf80f[_0x44605a(0x8a5)]=_0x443581,_0x5cf80f[_0x44605a(0x1b1a)]=_0x2d4b78,_0x5cf80f[_0x44605a(0xf4c)]={},_0x5cf80f[_0x44605a(0x1b0c)]=_0x5cf80f['setting']&&_0x5cf80f[_0x44605a(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5cf80f['title']=_0x44605a(0x294),_0x5cf80f[_0x44605a(0xea8)]=angular[_0x44605a(0x17fe)](_0x268370),_0x5cf80f['whatsappQueues']=_0x49792a,_0x5cf80f[_0x44605a(0x1edd)]=![];!_0x5cf80f[_0x44605a(0xea8)]&&(_0x5cf80f['whatsappQueue']={'strategy':_0x44605a(0x19bf),'timeout':0xa},_0x5cf80f[_0x44605a(0x1386)]=_0x44605a(0xde3),_0x5cf80f[_0x44605a(0x1edd)]=!![]);_0x5cf80f[_0x44605a(0x1150)]=_0x2f0f33,_0x5cf80f[_0x44605a(0x21d3)]=_0x2c4e9b,_0x5cf80f[_0x44605a(0x266)]=_0x5de7e6,_0x5cf80f['getDateFromString']=_0x3b6825,_0x5cf80f['closeDialog']=_0x156319;function _0x2f0f33(){const _0x42dcb7=_0x44605a;_0x5cf80f[_0x42dcb7(0x1a7c)]=[],_0x14efcb[_0x42dcb7(0xea8)][_0x42dcb7(0x1c3f)](_0x5cf80f[_0x42dcb7(0xea8)])[_0x42dcb7(0x1d77)][_0x42dcb7(0x1cb0)](function(_0x10e1e7){const _0x1c1a4a=_0x42dcb7;_0x5cf80f[_0x1c1a4a(0x6d8)]['unshift'](_0x10e1e7[_0x1c1a4a(0x19b2)]()),_0x41d4e5[_0x1c1a4a(0x829)]({'title':_0x1c1a4a(0x1c1b),'msg':_0x5cf80f[_0x1c1a4a(0xea8)][_0x1c1a4a(0x16b6)]?_0x5cf80f[_0x1c1a4a(0xea8)]['name']+_0x1c1a4a(0x470):''}),_0x156319(_0x10e1e7);})[_0x42dcb7(0x1c4)](function(_0x36500e){const _0x4a9fa6=_0x42dcb7;if(_0x36500e['data']&&_0x36500e[_0x4a9fa6(0x25c)][_0x4a9fa6(0x1a7c)]&&_0x36500e[_0x4a9fa6(0x25c)][_0x4a9fa6(0x1a7c)]['length']){_0x5cf80f['errors']=_0x36500e['data'][_0x4a9fa6(0x1a7c)]||[{'message':_0x36500e[_0x4a9fa6(0x147f)](),'type':_0x4a9fa6(0xa65)}];for(let _0xb13fb9=0x0;_0xb13fb9<_0x36500e['data'][_0x4a9fa6(0x1a7c)][_0x4a9fa6(0xfd0)];_0xb13fb9+=0x1){_0x41d4e5[_0x4a9fa6(0x218e)]({'title':_0x36500e[_0x4a9fa6(0x25c)]['errors'][_0xb13fb9]['type'],'msg':_0x36500e['data'][_0x4a9fa6(0x1a7c)][_0xb13fb9][_0x4a9fa6(0x155e)]});}}else _0x41d4e5[_0x4a9fa6(0x218e)]({'title':_0x36500e[_0x4a9fa6(0x291)]?_0x4a9fa6(0xeb9)+_0x36500e[_0x4a9fa6(0x291)]+_0x4a9fa6(0x1657)+_0x36500e[_0x4a9fa6(0xc22)]:_0x4a9fa6(0xa65),'msg':_0x36500e[_0x4a9fa6(0x25c)]?JSON[_0x4a9fa6(0x2701)](_0x36500e[_0x4a9fa6(0x25c)][_0x4a9fa6(0x155e)]):_0x36500e[_0x4a9fa6(0x147f)]()});});}function _0x2c4e9b(){const _0x5cba71=_0x44605a;_0x5cf80f[_0x5cba71(0x1a7c)]=[],_0x14efcb[_0x5cba71(0xea8)][_0x5cba71(0x687)]({'id':_0x5cf80f[_0x5cba71(0xea8)]['id']},_0x5cf80f[_0x5cba71(0xea8)])[_0x5cba71(0x1d77)][_0x5cba71(0x1cb0)](function(_0x41a9c){const _0x15dd95=_0x5cba71,_0x16a79b=_0x39641b()['find'](_0x5cf80f['whatsappQueues'],{'id':_0x41a9c['id']});_0x16a79b&&_0x39641b()['merge'](_0x16a79b,_0x39641b()[_0x15dd95(0x169b)](_0x41a9c[_0x15dd95(0x19b2)](),_0x39641b()[_0x15dd95(0x1be5)](_0x16a79b))),_0x41d4e5[_0x15dd95(0x829)]({'title':_0x15dd95(0x23aa),'msg':_0x5cf80f['whatsappQueue'][_0x15dd95(0x16b6)]?_0x5cf80f[_0x15dd95(0xea8)][_0x15dd95(0x16b6)]+'\x20has\x20been\x20saved!':''}),_0x156319(_0x41a9c);})[_0x5cba71(0x1c4)](function(_0x1eb104){const _0x491ab2=_0x5cba71;if(_0x1eb104[_0x491ab2(0x25c)]&&_0x1eb104[_0x491ab2(0x25c)][_0x491ab2(0x1a7c)]&&_0x1eb104['data'][_0x491ab2(0x1a7c)]['length']){_0x5cf80f['errors']=_0x1eb104['data'][_0x491ab2(0x1a7c)]||[{'message':_0x1eb104[_0x491ab2(0x147f)](),'type':_0x491ab2(0x2878)}];for(let _0x5640be=0x0;_0x5640be<_0x1eb104[_0x491ab2(0x25c)]['errors']['length'];_0x5640be++){_0x41d4e5[_0x491ab2(0x218e)]({'title':_0x1eb104[_0x491ab2(0x25c)][_0x491ab2(0x1a7c)][_0x5640be]['type'],'msg':_0x1eb104[_0x491ab2(0x25c)][_0x491ab2(0x1a7c)][_0x5640be][_0x491ab2(0x155e)]});}}else _0x41d4e5['error']({'title':_0x1eb104[_0x491ab2(0x291)]?_0x491ab2(0xeb9)+_0x1eb104[_0x491ab2(0x291)]+'\x20-\x20'+_0x1eb104[_0x491ab2(0xc22)]:_0x491ab2(0x2878),'msg':_0x1eb104['data']?JSON[_0x491ab2(0x2701)](_0x1eb104['data'][_0x491ab2(0x155e)]):_0x1eb104[_0x491ab2(0x147f)]()});});}function _0x5de7e6(_0x42d704){const _0x371a46=_0x44605a;_0x5cf80f['errors']=[];const _0x4dfb9b=_0x26d7ab[_0x371a46(0x1551)]()[_0x371a46(0x1386)]('Are\x20you\x20sure?')[_0x371a46(0x862)](_0x371a46(0x1d96))[_0x371a46(0x15ad)](_0x371a46(0x22d1))['ok'](_0x371a46(0x2594))[_0x371a46(0x696)](_0x371a46(0xde1))[_0x371a46(0x728)](_0x42d704);_0x26d7ab[_0x371a46(0xe27)](_0x4dfb9b)[_0x371a46(0x1cb0)](function(){const _0x27f219=_0x371a46;_0x14efcb[_0x27f219(0xea8)][_0x27f219(0x111d)]({'id':_0x5cf80f[_0x27f219(0xea8)]['id']})['$promise'][_0x27f219(0x1cb0)](function(){const _0x311a8c=_0x27f219;_0x39641b()[_0x311a8c(0x152a)](_0x5cf80f[_0x311a8c(0x6d8)],{'id':_0x5cf80f['whatsappQueue']['id']}),_0x41d4e5[_0x311a8c(0x829)]({'title':'WhatsappQueue\x20properly\x20deleted!','msg':(_0x5cf80f['whatsappQueue'][_0x311a8c(0x16b6)]||_0x311a8c(0xea8))+'\x20has\x20been\x20deleted!'}),_0x156319(_0x5cf80f['whatsappQueue']);})[_0x27f219(0x1c4)](function(_0x4283fb){const _0x24a114=_0x27f219;if(_0x4283fb[_0x24a114(0x25c)]&&_0x4283fb[_0x24a114(0x25c)]['errors']&&_0x4283fb[_0x24a114(0x25c)][_0x24a114(0x1a7c)][_0x24a114(0xfd0)]){_0x5cf80f['errors']=_0x4283fb['data'][_0x24a114(0x1a7c)]||[{'message':_0x4283fb[_0x24a114(0x147f)](),'type':_0x24a114(0x1947)}];for(let _0x3ec793=0x0;_0x3ec793<_0x4283fb['data'][_0x24a114(0x1a7c)][_0x24a114(0xfd0)];_0x3ec793++){_0x41d4e5['error']({'title':_0x4283fb['data'][_0x24a114(0x1a7c)][_0x3ec793]['type'],'msg':_0x4283fb[_0x24a114(0x25c)][_0x24a114(0x1a7c)][_0x3ec793][_0x24a114(0x155e)]});}}else _0x41d4e5['error']({'title':_0x4283fb[_0x24a114(0x291)]?_0x24a114(0xeb9)+_0x4283fb['status']+_0x24a114(0x1657)+_0x4283fb[_0x24a114(0xc22)]:_0x24a114(0x1947),'msg':_0x4283fb['data']?JSON['stringify'](_0x4283fb['data'][_0x24a114(0x155e)]):_0x4283fb[_0x24a114(0x155e)]||_0x4283fb[_0x24a114(0x147f)]()});});},function(){});}function _0x3b6825(_0x54f5fb){return _0x54f5fb===null?undefined:new Date(_0x54f5fb);}function _0x156319(_0xa67549){const _0x57b29b=_0x44605a;_0x26d7ab[_0x57b29b(0x1426)](_0xa67549);}}const _0x2f7c74=_0x19d340;;_0x2a94f6['$inject']=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),'api','whatsappQueue',_0x5537c6(0x6d8),_0x5537c6(0x217b),_0x5537c6(0x1ae),'Auth','crudPermissions'];function _0x2a94f6(_0xd45245,_0x1b3976,_0x4e72a8,_0x2b8acc,_0x41ba65,_0x6d3503,_0xcbf556,_0x49f7be,_0x19ff32,_0x2fc8af){const _0x3c7ce3=_0x5537c6,_0x244c03=this;_0x244c03[_0x3c7ce3(0xe76)]=_0x19ff32[_0x3c7ce3(0x21e8)](),_0x244c03[_0x3c7ce3(0xea8)]=_0x41ba65,_0x244c03['crudPermissions']=_0x2fc8af,_0x244c03[_0x3c7ce3(0x217b)]=_0xcbf556,_0x244c03[_0x3c7ce3(0x122f)]=[],_0x244c03[_0x3c7ce3(0x1372)]=[],_0x244c03['selectedItems']=[],_0x244c03[_0x3c7ce3(0xbd5)]=[],_0x244c03['startingSelectedItems']=[],_0x244c03[_0x3c7ce3(0x50c)]=![],_0x244c03[_0x3c7ce3(0x1a34)]=_0x411a6d,_0x244c03[_0x3c7ce3(0x1dd5)]=_0x57ee5f,_0x244c03['closeDialog']=_0x27e121,_0x244c03[_0x3c7ce3(0x18c0)]={'readOnly':!_0x244c03[_0x3c7ce3(0x1b1a)][_0x3c7ce3(0xb3d)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x3c7ce3(0x16b6),'line1':_0x3c7ce3(0x1d14),'line2':[_0x3c7ce3(0x16b6),_0x3c7ce3(0xdbd)],'line3':'','labelAll':_0x49f7be[_0x3c7ce3(0x25cc)]('APP.ALL_AGENTS'),'labelSelected':_0x49f7be[_0x3c7ce3(0x25cc)](_0x3c7ce3(0x1cd5)),'transferCallback':function(){const _0x39b8b0=_0x3c7ce3,_0x10d8fa=_0x39641b()[_0x39b8b0(0x1423)](_0x244c03[_0x39b8b0(0x1456)],_0x244c03[_0x39b8b0(0x20bb)],'id');_0x244c03[_0x39b8b0(0x50c)]=_0x39641b()[_0x39b8b0(0xce9)](_0x10d8fa)?![]:!![];}};function _0x411a6d(){const _0x303c7a=_0x3c7ce3;return _0x19ff32[_0x303c7a(0x22b6)](_0x303c7a(0x1c60))?_0x2f1172()[_0x303c7a(0x1c4)](function(_0x4fd16a){const _0x288543=_0x303c7a;_0x4e72a8['error']({'title':_0x4fd16a[_0x288543(0x291)]?_0x288543(0xeb9)+_0x4fd16a[_0x288543(0x291)]+_0x288543(0x1657)+_0x4fd16a[_0x288543(0xc22)]:_0x288543(0x799),'msg':_0x4fd16a[_0x288543(0x291)]?JSON['stringify'](_0x4fd16a['data']):_0x4fd16a['toString']()});}):_0x102161()[_0x303c7a(0x1cb0)](function(_0x552716){const _0x1446c0=_0x303c7a;return _0x244c03[_0x1446c0(0x1f74)]=_0x552716,_0x2f1172();})[_0x303c7a(0x1c4)](function(_0x4325e9){const _0x226f1e=_0x303c7a;_0x4e72a8['error']({'title':_0x4325e9[_0x226f1e(0x291)]?_0x226f1e(0xeb9)+_0x4325e9['status']+_0x226f1e(0x1657)+_0x4325e9['statusText']:_0x226f1e(0x799),'msg':_0x4325e9[_0x226f1e(0x291)]?JSON['stringify'](_0x4325e9[_0x226f1e(0x25c)]):_0x4325e9[_0x226f1e(0x147f)]()});});}function _0x102161(){return _0x1b3976(function(_0x29fe8e,_0xc1840b){const _0x244ecd=a0_0x5cbd;_0x2b8acc[_0x244ecd(0x2199)]['get']({'userProfileId':_0x244c03[_0x244ecd(0xe76)][_0x244ecd(0x13c1)],'name':_0x244ecd(0x2536)})['$promise'][_0x244ecd(0x1cb0)](function(_0x248293){const _0x4edbef=_0x244ecd,_0x37e3da=_0x248293&&_0x248293[_0x4edbef(0x2214)]?_0x248293['rows'][0x0]:null;_0x29fe8e(_0x37e3da);})[_0x244ecd(0x1c4)](function(_0x590bb2){_0xc1840b(_0x590bb2);});});}function _0x2f1172(){return _0x1b3976(function(_0x4ad41c,_0x49d0dd){const _0x5d025a=a0_0x5cbd;return _0x3c57a2()['then'](function(_0x16b89e){const _0xb565db=a0_0x5cbd;return _0x244c03[_0xb565db(0x122f)]=_0x16b89e[_0xb565db(0x2214)]?_0x16b89e['rows']:[],_0x19ff32[_0xb565db(0x22b6)](_0xb565db(0x1c60))?_0x16b89e:_0x244c03[_0xb565db(0x1f74)]?_0x244c03[_0xb565db(0x1f74)][_0xb565db(0x12f4)]?_0x16b89e:_0x5c4ce0():null;})[_0x5d025a(0x1cb0)](function(_0x7f552){const _0x345105=_0x5d025a,_0x3fde05=_0x7f552&&_0x7f552[_0x345105(0x2214)]?_0x7f552['rows']:[];return _0x244c03[_0x345105(0x1372)]=_0x39641b()[_0x345105(0x1de2)](_0x3fde05,function(_0x10a636){const _0x4854b7=_0x345105;return _0x39641b()[_0x4854b7(0x13b4)](_0x244c03[_0x4854b7(0x122f)],{'id':_0x19ff32['hasRole'](_0x4854b7(0x1c60))||_0x244c03[_0x4854b7(0x1f74)][_0x4854b7(0x12f4)]?_0x10a636['id']:_0x10a636[_0x4854b7(0x2982)]});}),_0x244c03[_0x345105(0xbd5)]=angular[_0x345105(0x17fe)](_0x244c03[_0x345105(0x1372)]),_0x244c03[_0x345105(0x122f)][_0x345105(0xf90)](function(_0x32a5b9){const _0x3f0ba5=_0x345105,_0x4b2199=_0x39641b()[_0x3f0ba5(0x13b4)](_0x244c03[_0x3f0ba5(0x1372)],{'id':_0x32a5b9['id']});_0x19ff32[_0x3f0ba5(0x22b6)](_0x3f0ba5(0x1c60))?_0x32a5b9[_0x3f0ba5(0x1a4f)]=!![]:_0x32a5b9['isValid']=typeof _0x4b2199!=='undefined'?!![]:![];}),_0x120435();})[_0x5d025a(0x1cb0)](function(_0xe52e07){const _0x137bd6=_0x5d025a,_0x4528f9=_0xe52e07&&_0xe52e07[_0x137bd6(0x2214)]?_0xe52e07[_0x137bd6(0x2214)]:[];_0x244c03[_0x137bd6(0x20bb)]=_0x39641b()[_0x137bd6(0x1de2)](_0x4528f9,function(_0x28ce2d){const _0x396cc4=_0x137bd6,_0x4ad9a1=_0x39641b()[_0x396cc4(0x13b4)](_0x244c03['items'],{'id':_0x28ce2d['id']});return _0x4ad9a1[_0x396cc4(0x1cbc)]=_0x28ce2d[_0x396cc4(0x2851)]?_0x396cc4(0x455)+_0x28ce2d[_0x396cc4(0x2851)]['penalty']:'',_0x4ad9a1[_0x396cc4(0xdbd)]=typeof _0x28ce2d['internal']!==_0x396cc4(0x16b5)?'<'+_0x28ce2d[_0x396cc4(0xdbd)]+'>':'',_0x4ad9a1;}),_0x244c03['startingSelectedItems']=angular[_0x137bd6(0x17fe)](_0x244c03[_0x137bd6(0x20bb)]),_0x244c03[_0x137bd6(0x18c0)][_0x137bd6(0x20bb)]=_0x244c03[_0x137bd6(0x20bb)],_0x244c03[_0x137bd6(0x18c0)][_0x137bd6(0x122f)]=_0x39641b()[_0x137bd6(0x2128)](_0x244c03['allowedItems'],_0x244c03[_0x137bd6(0x18c0)][_0x137bd6(0x20bb)],'id'),_0x4ad41c();})[_0x5d025a(0x1c4)](function(_0x36a27c){_0x49d0dd(_0x36a27c);});});}function _0x5c4ce0(){return _0x1b3976(function(_0xb61cf5,_0x53b96f){const _0x39d6b3=a0_0x5cbd;return _0x2b8acc[_0x39d6b3(0x1198)][_0x39d6b3(0xbf7)]({'sectionId':_0x244c03[_0x39d6b3(0x1f74)]['id'],'nolimit':!![]})[_0x39d6b3(0x1d77)][_0x39d6b3(0x1cb0)](function(_0x29f96b){_0xb61cf5(_0x29f96b);})[_0x39d6b3(0x1c4)](function(_0x1c2faf){_0x53b96f(_0x1c2faf);});});}function _0x120435(){return _0x1b3976(function(_0x5e6008,_0x199ff1){const _0x477aec=a0_0x5cbd;return _0x2b8acc[_0x477aec(0xea8)][_0x477aec(0x2348)]({'id':_0x244c03['whatsappQueue']['id'],'fields':_0x477aec(0x251e),'nolimit':!![],'role':_0x477aec(0x1eff)})[_0x477aec(0x1d77)][_0x477aec(0x1cb0)](function(_0x239818){_0x5e6008(_0x239818);})['catch'](function(_0x4a605a){_0x199ff1(_0x4a605a);});});}function _0x3c57a2(){return _0x1b3976(function(_0x1a3abf,_0x30cd6b){const _0x4e834c=a0_0x5cbd;return _0x2b8acc['user'][_0x4e834c(0xbf7)]({'fields':_0x4e834c(0x251e),'nolimit':!![],'role':'agent'})[_0x4e834c(0x1d77)][_0x4e834c(0x1cb0)](function(_0x13723d){_0x1a3abf(_0x13723d);})[_0x4e834c(0x1c4)](function(_0x55657e){_0x30cd6b(_0x55657e);});});}function _0x1cd598(_0x166ba1){return _0x1b3976(function(_0x4d9476,_0x161faf){const _0x4c327c=a0_0x5cbd;_0x39641b()[_0x4c327c(0xce9)](_0x166ba1)?_0x4d9476():_0x2b8acc[_0x4c327c(0xea8)][_0x4c327c(0x2057)]({'id':_0x244c03[_0x4c327c(0xea8)]['id'],'ids':_0x39641b()[_0x4c327c(0x1de2)](_0x166ba1,'id')})[_0x4c327c(0x1d77)][_0x4c327c(0x1cb0)](function(){_0x4d9476();})[_0x4c327c(0x1c4)](function(_0x67b166){_0x161faf(_0x67b166);});});}function _0x2b1311(_0x4242d0){return _0x1b3976(function(_0xa0522c,_0x48ef15){const _0x1bd1d4=a0_0x5cbd;_0x39641b()[_0x1bd1d4(0xce9)](_0x4242d0)?_0xa0522c():_0x2b8acc['whatsappQueue'][_0x1bd1d4(0x223f)]({'id':_0x244c03[_0x1bd1d4(0xea8)]['id'],'ids':_0x39641b()[_0x1bd1d4(0x1de2)](_0x4242d0,'id')})[_0x1bd1d4(0x1d77)]['then'](function(){_0xa0522c();})['catch'](function(_0x2bff02){_0x48ef15(_0x2bff02);});});}function _0x57ee5f(){const _0x423c4f=_0x3c7ce3,_0x34e6a6=_0x39641b()[_0x423c4f(0x2128)](_0x244c03['startingSelectedItems'],_0x244c03[_0x423c4f(0x20bb)],'id'),_0x4bceea=_0x39641b()[_0x423c4f(0x2128)](_0x244c03['selectedItems'],_0x244c03['startingSelectedItems'],'id');return _0x2b1311(_0x34e6a6)['then'](function(){return _0x1cd598(_0x4bceea);})[_0x423c4f(0x1cb0)](function(){const _0x316cba=_0x423c4f;_0x244c03['pendingChanges']=![],_0x244c03['startingAllowedItems']=angular[_0x316cba(0x17fe)](_0x244c03['allowedItems']),_0x244c03[_0x316cba(0x1456)]=angular[_0x316cba(0x17fe)](_0x244c03[_0x316cba(0x20bb)]),_0x4e72a8[_0x316cba(0x829)]({'title':_0x316cba(0x201),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x423c4f(0x1c4)](function(_0x222618){const _0x3f4890=_0x423c4f;_0x4e72a8['error']({'title':_0x222618['status']?_0x3f4890(0xeb9)+_0x222618['status']+_0x3f4890(0x1657)+_0x222618[_0x3f4890(0xc22)]:_0x3f4890(0x1221),'msg':_0x222618[_0x3f4890(0x291)]?JSON[_0x3f4890(0x2701)](_0x222618[_0x3f4890(0x25c)]):_0x222618[_0x3f4890(0x147f)]()});});}function _0x27e121(){const _0x3f8f0a=_0x3c7ce3;_0xd45245[_0x3f8f0a(0x1426)]();}}const _0x416d8d=_0x2a94f6;;_0x111a7d[_0x5537c6(0x15b6)]=[_0x5537c6(0xcb9),'$q',_0x5537c6(0x9bf),_0x5537c6(0x142b),_0x5537c6(0xea8),_0x5537c6(0x1ae),_0x5537c6(0x1774),'crudPermissions'];function _0x111a7d(_0x39af8e,_0x19011b,_0x153225,_0x268b06,_0x5c848c,_0x566f5c,_0x40633b,_0x562e93){const _0x446abf=_0x5537c6,_0x46ed4d=this;_0x46ed4d[_0x446abf(0xe76)]=_0x40633b['getCurrentUser'](),_0x46ed4d[_0x446abf(0xea8)]=_0x5c848c,_0x46ed4d[_0x446abf(0x1b1a)]=_0x562e93,_0x46ed4d[_0x446abf(0x122f)]=[],_0x46ed4d[_0x446abf(0x1372)]=[],_0x46ed4d['selectedItems']=[],_0x46ed4d[_0x446abf(0xbd5)]=[],_0x46ed4d[_0x446abf(0x1456)]=[],_0x46ed4d[_0x446abf(0x50c)]=![],_0x46ed4d[_0x446abf(0x18c0)]={'readOnly':!_0x46ed4d[_0x446abf(0x1b1a)][_0x446abf(0xb3d)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x446abf(0x16b6),'line1':_0x446abf(0x16b6),'line2':'','line3':'','labelAll':_0x566f5c[_0x446abf(0x25cc)]('APP.ALL_TEAMS'),'labelSelected':_0x566f5c[_0x446abf(0x25cc)]('APP.SELECTED_TEAMS'),'transferCallback':function(){const _0x1ca744=_0x446abf,_0x2a8d14=_0x39641b()[_0x1ca744(0x1423)](_0x46ed4d[_0x1ca744(0x1456)],_0x46ed4d['selectedItems'],'id');_0x46ed4d[_0x1ca744(0x50c)]=_0x39641b()[_0x1ca744(0xce9)](_0x2a8d14)?![]:!![];}},_0x46ed4d[_0x446abf(0x1a34)]=_0x10b374,_0x46ed4d['saveTeams']=_0x8d5115,_0x46ed4d[_0x446abf(0xda0)]=_0x292103;function _0x10b374(){const _0x5a10d0=_0x446abf;return _0x40633b[_0x5a10d0(0x22b6)](_0x5a10d0(0x1c60))?_0x54d6ab()[_0x5a10d0(0x1c4)](function(_0x56cccc){const _0x285452=_0x5a10d0;_0x153225[_0x285452(0x218e)]({'title':_0x56cccc['status']?_0x285452(0xeb9)+_0x56cccc[_0x285452(0x291)]+'\x20-\x20'+_0x56cccc[_0x285452(0xc22)]:_0x285452(0x2206),'msg':_0x56cccc['status']?JSON[_0x285452(0x2701)](_0x56cccc[_0x285452(0x25c)]):_0x56cccc[_0x285452(0x147f)]()});}):_0x5dfb3b()[_0x5a10d0(0x1cb0)](function(_0x5e0453){const _0x457d25=_0x5a10d0;return _0x46ed4d[_0x457d25(0x1f74)]=_0x5e0453,_0x54d6ab();})[_0x5a10d0(0x1c4)](function(_0x3e35d9){const _0x3aa3cf=_0x5a10d0;_0x153225[_0x3aa3cf(0x218e)]({'title':_0x3e35d9[_0x3aa3cf(0x291)]?'API:'+_0x3e35d9['status']+'\x20-\x20'+_0x3e35d9['statusText']:_0x3aa3cf(0x2206),'msg':_0x3e35d9[_0x3aa3cf(0x291)]?JSON[_0x3aa3cf(0x2701)](_0x3e35d9[_0x3aa3cf(0x25c)]):_0x3e35d9[_0x3aa3cf(0x147f)]()});});}function _0x5dfb3b(){return _0x19011b(function(_0x40c891,_0x57f3cd){const _0x363ccc=a0_0x5cbd;_0x268b06[_0x363ccc(0x2199)][_0x363ccc(0xbf7)]({'userProfileId':_0x46ed4d[_0x363ccc(0xe76)][_0x363ccc(0x13c1)],'name':_0x363ccc(0x492)})[_0x363ccc(0x1d77)]['then'](function(_0x459a71){const _0x4f8f16=_0x363ccc,_0x6036a=_0x459a71&&_0x459a71[_0x4f8f16(0x2214)]?_0x459a71['rows'][0x0]:null;_0x40c891(_0x6036a);})[_0x363ccc(0x1c4)](function(_0x2c6c15){_0x57f3cd(_0x2c6c15);});});}function _0x54d6ab(){return _0x19011b(function(_0x2ecfc4,_0x56ec06){const _0x5a5633=a0_0x5cbd;return _0x1ff80c()[_0x5a5633(0x1cb0)](function(_0x5f439d){const _0x44be98=_0x5a5633;return _0x46ed4d[_0x44be98(0x122f)]=_0x5f439d[_0x44be98(0x2214)]?_0x5f439d[_0x44be98(0x2214)]:[],_0x40633b[_0x44be98(0x22b6)](_0x44be98(0x1c60))?_0x5f439d:_0x46ed4d[_0x44be98(0x1f74)]?_0x46ed4d[_0x44be98(0x1f74)][_0x44be98(0x12f4)]?_0x5f439d:_0x29ad4c():null;})['then'](function(_0x93c094){const _0x315db0=_0x5a5633,_0x820673=_0x93c094&&_0x93c094[_0x315db0(0x2214)]?_0x93c094['rows']:[];return _0x46ed4d[_0x315db0(0x1372)]=_0x39641b()[_0x315db0(0x1de2)](_0x820673,function(_0x1a8ef0){const _0x4f7cf7=_0x315db0;return _0x39641b()[_0x4f7cf7(0x13b4)](_0x46ed4d[_0x4f7cf7(0x122f)],{'id':_0x40633b[_0x4f7cf7(0x22b6)](_0x4f7cf7(0x1c60))||_0x46ed4d[_0x4f7cf7(0x1f74)][_0x4f7cf7(0x12f4)]?_0x1a8ef0['id']:_0x1a8ef0['resourceId']});}),_0x46ed4d[_0x315db0(0x122f)][_0x315db0(0xf90)](function(_0x428327){const _0x350179=_0x315db0,_0x5d8132=_0x39641b()[_0x350179(0x13b4)](_0x46ed4d['allowedItems'],{'id':_0x428327['id']});_0x40633b[_0x350179(0x22b6)](_0x350179(0x1c60))?_0x428327['isValid']=!![]:_0x428327[_0x350179(0x1a4f)]=typeof _0x5d8132!==_0x350179(0x16b5)?!![]:![];}),_0x533ee7();})['then'](function(_0x4ee258){const _0x241dfd=_0x5a5633,_0x35cff1=_0x4ee258&&_0x4ee258[_0x241dfd(0x2214)]?_0x4ee258[_0x241dfd(0x2214)]:[];_0x46ed4d['selectedItems']=_0x39641b()[_0x241dfd(0x1de2)](_0x35cff1,function(_0x4ef918){const _0x3c5406=_0x241dfd;return _0x39641b()[_0x3c5406(0x13b4)](_0x46ed4d[_0x3c5406(0x122f)],{'id':_0x4ef918['id']});}),_0x46ed4d[_0x241dfd(0x1456)]=angular[_0x241dfd(0x17fe)](_0x46ed4d[_0x241dfd(0x20bb)]),_0x46ed4d[_0x241dfd(0x18c0)][_0x241dfd(0x20bb)]=_0x46ed4d[_0x241dfd(0x20bb)],_0x46ed4d[_0x241dfd(0x18c0)]['items']=_0x39641b()[_0x241dfd(0x2128)](_0x46ed4d[_0x241dfd(0x1372)],_0x46ed4d['dualMultiselectOptions'][_0x241dfd(0x20bb)],'id'),_0x2ecfc4();})['catch'](function(_0x252b9c){_0x56ec06(_0x252b9c);});});}function _0x29ad4c(){return _0x19011b(function(_0x3e518e,_0x7632be){const _0x24ee58=a0_0x5cbd;return _0x268b06[_0x24ee58(0x1198)][_0x24ee58(0xbf7)]({'sectionId':_0x46ed4d['section']['id'],'nolimit':!![]})[_0x24ee58(0x1d77)][_0x24ee58(0x1cb0)](function(_0x4730e2){_0x3e518e(_0x4730e2);})['catch'](function(_0x2df915){_0x7632be(_0x2df915);});});}function _0x533ee7(){return _0x19011b(function(_0x52d883,_0x290f0c){const _0x3af525=a0_0x5cbd;return _0x268b06['whatsappQueue'][_0x3af525(0x1407)]({'id':_0x46ed4d['whatsappQueue']['id'],'fields':_0x3af525(0x43c),'nolimit':!![]})[_0x3af525(0x1d77)]['then'](function(_0x7f23e6){_0x52d883(_0x7f23e6);})['catch'](function(_0x5aee14){_0x290f0c(_0x5aee14);});});}function _0x1ff80c(){return _0x19011b(function(_0x45e00e,_0x22c997){const _0x172989=a0_0x5cbd;return _0x268b06['team']['get']({'fields':_0x172989(0x43c),'nolimit':!![]})[_0x172989(0x1d77)][_0x172989(0x1cb0)](function(_0xdfdb62){_0x45e00e(_0xdfdb62);})[_0x172989(0x1c4)](function(_0x33460a){_0x22c997(_0x33460a);});});}function _0x377446(_0x421bde){return _0x19011b(function(_0xbdedc3,_0x4c4874){const _0x121875=a0_0x5cbd;_0x39641b()['isEmpty'](_0x421bde)?_0xbdedc3():_0x268b06[_0x121875(0xea8)][_0x121875(0x28d9)]({'id':_0x46ed4d[_0x121875(0xea8)]['id'],'ids':_0x39641b()['map'](_0x421bde,'id')})[_0x121875(0x1d77)][_0x121875(0x1cb0)](function(){_0xbdedc3();})[_0x121875(0x1c4)](function(_0x2b2761){_0x4c4874(_0x2b2761);});});}function _0x4eb9d5(_0x29ea53){return _0x19011b(function(_0x5f4a6e,_0x562340){const _0x1136eb=a0_0x5cbd;_0x39641b()[_0x1136eb(0xce9)](_0x29ea53)?_0x5f4a6e():_0x268b06[_0x1136eb(0xea8)]['removeTeams']({'id':_0x46ed4d[_0x1136eb(0xea8)]['id'],'ids':_0x39641b()[_0x1136eb(0x1de2)](_0x29ea53,'id')})['$promise'][_0x1136eb(0x1cb0)](function(){_0x5f4a6e();})[_0x1136eb(0x1c4)](function(_0x1fe162){_0x562340(_0x1fe162);});});}function _0x8d5115(){const _0x1ce38b=_0x446abf,_0x3a2fa7=_0x39641b()['differenceBy'](_0x46ed4d[_0x1ce38b(0x1456)],_0x46ed4d['selectedItems'],'id'),_0x1294fc=_0x39641b()[_0x1ce38b(0x2128)](_0x46ed4d[_0x1ce38b(0x20bb)],_0x46ed4d['startingSelectedItems'],'id');return _0x4eb9d5(_0x3a2fa7)[_0x1ce38b(0x1cb0)](function(){return _0x377446(_0x1294fc);})[_0x1ce38b(0x1cb0)](function(){const _0x769d98=_0x1ce38b;_0x46ed4d[_0x769d98(0x50c)]=![],_0x46ed4d[_0x769d98(0xbd5)]=angular[_0x769d98(0x17fe)](_0x46ed4d[_0x769d98(0x1372)]),_0x46ed4d[_0x769d98(0x1456)]=angular[_0x769d98(0x17fe)](_0x46ed4d[_0x769d98(0x20bb)]),_0x153225['success']({'title':_0x769d98(0x201),'msg':_0x769d98(0xc72)});})[_0x1ce38b(0x1c4)](function(_0x4d508c){const _0xc613e5=_0x1ce38b;_0x153225[_0xc613e5(0x218e)]({'title':_0x4d508c[_0xc613e5(0x291)]?_0xc613e5(0xeb9)+_0x4d508c[_0xc613e5(0x291)]+_0xc613e5(0x1657)+_0x4d508c[_0xc613e5(0xc22)]:_0xc613e5(0x1221),'msg':_0x4d508c[_0xc613e5(0x291)]?JSON[_0xc613e5(0x2701)](_0x4d508c[_0xc613e5(0x25c)]):_0x4d508c['toString']()});});}function _0x292103(){_0x39af8e['hide']();}}const _0x1ab6fb=_0x111a7d;;const _0x2a1972=_0x5074a3['p']+_0x5537c6(0x21b0);;_0x3dc836[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),_0x5537c6(0x21c8),_0x5537c6(0xcb9),_0x5537c6(0x22bf),_0x5537c6(0x1ae),'license',_0x5537c6(0x9ca),'api',_0x5537c6(0x9bf),'Auth',_0x5537c6(0xea8),_0x5537c6(0x2199)];function _0x3dc836(_0x32c76c,_0x186d5a,_0x120a12,_0x30d29e,_0x92b8b4,_0x603564,_0x59698b,_0x1ebb9b,_0x3a72fb,_0x4e59b2,_0xb3c1bb,_0x5d68a3){const _0x2618b1=_0x5537c6,_0x498018=this;_0x498018[_0x2618b1(0xe76)]=_0x4e59b2[_0x2618b1(0x21e8)](),_0x498018[_0x2618b1(0x8a5)]=_0x603564,_0x498018[_0x2618b1(0x9ca)]=_0x59698b,_0x498018['passwordPattern']=_0x498018[_0x2618b1(0x9ca)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x498018[_0x2618b1(0x2404)]=_0x186d5a[_0x2618b1(0x2276)]()+_0x2618b1(0x138b)+_0x186d5a['host'](),_0x498018[_0x2618b1(0xea8)]=_0xb3c1bb||_0x32c76c[_0x2618b1(0x1dfe)][_0x2618b1(0xea8)]||{},_0x498018[_0x2618b1(0x2199)]=_0x5d68a3&&_0x5d68a3[_0x2618b1(0x184d)]==0x1?_0x5d68a3[_0x2618b1(0x2214)][0x0]:null,_0x498018['crudPermissions']=_0x4e59b2[_0x2618b1(0x14ea)](_0x498018['userProfileSection']?_0x498018[_0x2618b1(0x2199)][_0x2618b1(0x1b1a)]:null),_0x498018['hasModulePermissions']={},_0x498018[_0x2618b1(0x8ec)]=_0x32c76c[_0x2618b1(0x1dfe)][_0x2618b1(0x291e)]||0x0,_0x498018[_0x2618b1(0x1d63)]=_0x29d57f,_0x498018[_0x2618b1(0x1379)]=_0x3f065b,_0x498018[_0x2618b1(0x494)]=_0x3a72fb['info'],_0x498018['gotoWhatsappQueues']=_0x25a769,_0x498018[_0x2618b1(0x21d3)]=_0x2c5745;function _0x29d57f(_0x10c8d9,_0x316f16){const _0x1823de=_0x2618b1;_0x120a12['show']({'controller':_0x1823de(0x1347),'controllerAs':'vm','templateUrl':_0x2a1972,'parent':angular['element'](_0x30d29e[_0x1823de(0x1ed9)]),'targetEvent':_0x316f16,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x10c8d9,'whatsappQueues':_0x498018[_0x1823de(0x6d8)]?_0x498018[_0x1823de(0x6d8)][_0x1823de(0x2214)]:[],'crudPermissions':_0x498018[_0x1823de(0x1b1a)]}});}function _0x3f065b(_0x52bbe8,_0x1fd04c){const _0x3ca3eb=_0x2618b1;_0x120a12[_0x3ca3eb(0xe27)]({'controller':_0x3ca3eb(0x29c3),'controllerAs':'vm','templateUrl':_0x40a20c,'parent':angular[_0x3ca3eb(0x1853)](_0x30d29e[_0x3ca3eb(0x1ed9)]),'targetEvent':_0x1fd04c,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x52bbe8,'whatsappQueues':_0x498018[_0x3ca3eb(0x6d8)]?_0x498018['whatsappQueues'][_0x3ca3eb(0x2214)]:[],'crudPermissions':_0x498018[_0x3ca3eb(0x1b1a)],'realtime':![]}});}function _0x25a769(){const _0x27c130=_0x2618b1;_0x32c76c['go'](_0x27c130(0x77c),{},{'reload':_0x27c130(0x77c)});}function _0x2c5745(){const _0x3cbc6b=_0x2618b1;_0x1ebb9b[_0x3cbc6b(0xea8)][_0x3cbc6b(0x687)]({'id':_0x498018[_0x3cbc6b(0xea8)]['id']},_0x498018['whatsappQueue'])['$promise'][_0x3cbc6b(0x1cb0)](function(){const _0x3ea4da=_0x3cbc6b;_0x3a72fb['success']({'title':_0x3ea4da(0x10c7),'msg':_0x498018[_0x3ea4da(0xea8)][_0x3ea4da(0x16b6)]?_0x498018[_0x3ea4da(0xea8)][_0x3ea4da(0x16b6)]+_0x3ea4da(0x1068):''});})[_0x3cbc6b(0x1c4)](function(_0x58382c){const _0x2b8257=_0x3cbc6b;_0x3a72fb[_0x2b8257(0x218e)]({'title':_0x58382c[_0x2b8257(0x291)]?_0x2b8257(0xeb9)+_0x58382c[_0x2b8257(0x291)]+_0x2b8257(0x1657)+_0x58382c[_0x2b8257(0xc22)]:_0x2b8257(0x2068),'msg':_0x58382c['data']?JSON[_0x2b8257(0x2701)](_0x58382c[_0x2b8257(0x25c)]):_0x58382c[_0x2b8257(0x147f)]()});});}}const _0x2a966b=_0x3dc836;;_0x5223ee[_0x5537c6(0x15b6)]=['$scope',_0x5537c6(0x1f10),_0x5537c6(0x406),'$mdSidenav',_0x5537c6(0xcb9),'$document',_0x5537c6(0x2168),'$translate',_0x5537c6(0x6d8),_0x5537c6(0x44a),_0x5537c6(0x2199),_0x5537c6(0x142b),_0x5537c6(0xde8),_0x5537c6(0x9bf),_0x5537c6(0x1774),_0x5537c6(0x8a5),_0x5537c6(0x9ca)];function _0x5223ee(_0x9315b3,_0x3676d1,_0x4fb1a9,_0x164b67,_0x192133,_0x54ab48,_0x3517aa,_0x370fb6,_0x31fb3a,_0x141f5a,_0x13d693,_0x5b0bb2,_0x2f9b44,_0x14d816,_0x4e5f86,_0x5f33ac,_0x54e883){const _0x212358=_0x5537c6,_0x47c8df=this;_0x47c8df['license']=_0x5f33ac,_0x47c8df[_0x212358(0x9ca)]=_0x54e883,_0x47c8df[_0x212358(0xe76)]=_0x4e5f86[_0x212358(0x21e8)](),_0x47c8df[_0x212358(0x6d8)]=_0x31fb3a||{'count':0x0,'rows':[]},_0x47c8df[_0x212358(0x44a)]=_0x141f5a,_0x47c8df[_0x212358(0x2199)]=_0x13d693&&_0x13d693[_0x212358(0x184d)]==0x1?_0x13d693[_0x212358(0x2214)][0x0]:null,_0x47c8df['crudPermissions']=_0x4e5f86['parseCrudPermissions'](_0x47c8df[_0x212358(0x2199)]?_0x47c8df[_0x212358(0x2199)]['crudPermissions']:null),_0x47c8df[_0x212358(0xc83)]=_0x212358(0x6d8),_0x47c8df[_0x212358(0x1d20)]='',_0x47c8df['listOrderAsc']=null,_0x47c8df[_0x212358(0xf05)]=[],_0x47c8df[_0x212358(0xae2)]={'fields':_0x212358(0x22f3),'sort':_0x212358(0x282),'channel':'whatsapp','limit':0xa,'page':0x1},_0x47c8df['arraystrategy']=_0x39641b()[_0x212358(0x2631)]([{'option':_0x212358(0xfd9),'value':_0x212358(0xcf1)},{'option':_0x212358(0x290b),'value':_0x212358(0x15b5)}],function(_0x127d55){const _0xc8848b=_0x212358;return _0x39641b()[_0xc8848b(0x288f)](_0x127d55[_0xc8848b(0x327)],new RegExp('\x27','g'),'');}),_0x47c8df[_0x212358(0x235d)]=_0x3cbc8b,_0x47c8df['teamadddialog']=_0x304bf7,_0x47c8df[_0x212358(0x1379)]=_0x20ea25,_0x47c8df['deleteconfirm']=_0x12d863,_0x47c8df[_0x212358(0x649)]=_0x2b37ea,_0x47c8df[_0x212358(0x829)]=_0x46183b,_0x47c8df[_0x212358(0xc5c)]=_0x2c576e,_0x47c8df[_0x212358(0x163e)]=_0x5d9ff5,_0x47c8df['deleteWhatsappQueue']=_0x431444,_0x47c8df[_0x212358(0xd02)]=_0x283b1a,_0x47c8df[_0x212358(0x642)]=_0x461db2,_0x47c8df[_0x212358(0x15fa)]=_0x337d06,_0x47c8df[_0x212358(0x6e4)]=_0x5d9144;function _0x3cbc8b(_0x68276f){const _0x5664ed=_0x212358;_0x4fb1a9['go'](_0x5664ed(0x1bc2),{'id':_0x68276f['id'],'whatsappQueue':_0x68276f,'crudPermissions':_0x47c8df[_0x5664ed(0x1b1a)]});}function _0x304bf7(_0x598941,_0x53a3cc){const _0x1c2d3d=_0x212358;_0x192133[_0x1c2d3d(0xe27)]({'controller':_0x1c2d3d(0x1347),'controllerAs':'vm','templateUrl':_0x2a1972,'parent':angular[_0x1c2d3d(0x1853)](_0x54ab48['body']),'targetEvent':_0x53a3cc,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x598941,'whatsappQueues':_0x47c8df[_0x1c2d3d(0x6d8)]?_0x47c8df[_0x1c2d3d(0x6d8)]['rows']:[],'crudPermissions':_0x47c8df[_0x1c2d3d(0x1b1a)]}});}function _0x20ea25(_0x5252a4,_0x538c73){const _0x6647cc=_0x212358;_0x192133[_0x6647cc(0xe27)]({'controller':_0x6647cc(0x29c3),'controllerAs':'vm','templateUrl':_0x40a20c,'parent':angular[_0x6647cc(0x1853)](_0x54ab48[_0x6647cc(0x1ed9)]),'targetEvent':_0x538c73,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x5252a4,'whatsappQueues':_0x47c8df[_0x6647cc(0x6d8)]?_0x47c8df[_0x6647cc(0x6d8)][_0x6647cc(0x2214)]:[],'crudPermissions':_0x47c8df['crudPermissions'],'realtime':![]}});}function _0x12d863(_0xd2fde0,_0x18ddb3){const _0x443c48=_0x212358,_0x2d9c9e=_0x192133['confirm']()[_0x443c48(0x1386)](_0x443c48(0x140b)+_0x39641b()[_0x443c48(0xa75)](_0x443c48(0xea8))+'?')[_0x443c48(0x49e)](_0x443c48(0x204d)+(_0xd2fde0[_0x443c48(0x16b6)]||_0x443c48(0xea8))+_0x443c48(0x1200)+_0x443c48(0x1b6))[_0x443c48(0x15ad)](_0x443c48(0x445))[_0x443c48(0x728)](_0x18ddb3)['ok']('OK')['cancel'](_0x443c48(0x24ba));_0x192133[_0x443c48(0xe27)](_0x2d9c9e)[_0x443c48(0x1cb0)](function(){_0x431444(_0xd2fde0);},function(){const _0x221362=_0x443c48;console[_0x221362(0x1b4f)](_0x221362(0x24ba));});}function _0x2b37ea(){const _0x474938=_0x212358;if(_0x4e5f86[_0x474938(0x22b6)](_0x474938(0x1c60)))_0x4fb1a9['go'](_0x474938(0x1001),{});else return _0x5b0bb2[_0x474938(0x2199)][_0x474938(0xbf7)]({'userProfileId':_0x4e5f86['getCurrentUser']()[_0x474938(0x13c1)],'sectionId':0x83e})[_0x474938(0x1d77)][_0x474938(0x1cb0)](function(_0x1b9a1f){const _0x3f3ebf=_0x474938,_0x1daf22=_0x1b9a1f&&_0x1b9a1f[_0x3f3ebf(0x2214)]?_0x1b9a1f['rows'][0x0]:null;_0x1daf22&&_0x1daf22[_0x3f3ebf(0x281c)]?_0x4fb1a9['go']('app.whatsapp.realtime.queues',{}):_0x14d816[_0x3f3ebf(0x28c7)]({'title':_0x370fb6[_0x3f3ebf(0x25cc)](_0x3f3ebf(0x370)),'msg':_0x370fb6[_0x3f3ebf(0x25cc)](_0x3f3ebf(0x33a))});})[_0x474938(0x1c4)](function(_0x1df71f){const _0x50e953=_0x474938;_0x14d816[_0x50e953(0x218e)]({'title':_0x1df71f[_0x50e953(0x291)]?_0x50e953(0xeb9)+_0x1df71f[_0x50e953(0x291)]+_0x50e953(0x1657)+_0x1df71f[_0x50e953(0xc22)]:_0x50e953(0x17ba),'msg':_0x1df71f['status']?JSON[_0x50e953(0x2701)](_0x1df71f[_0x50e953(0x25c)]):_0x1df71f[_0x50e953(0x147f)]()});});}let _0x420f5e=!![],_0x2d8553=0x1;_0x9315b3[_0x212358(0x614)](_0x212358(0x957),function(_0x395339,_0x19a667){const _0x1a89f0=_0x212358;_0x420f5e?_0x3517aa(function(){_0x420f5e=![];}):(!_0x19a667&&(_0x2d8553=_0x47c8df[_0x1a89f0(0xae2)][_0x1a89f0(0x1c7b)]),_0x395339!==_0x19a667&&(_0x47c8df[_0x1a89f0(0xae2)][_0x1a89f0(0x1c7b)]=0x1),!_0x395339&&(_0x47c8df[_0x1a89f0(0xae2)][_0x1a89f0(0x1c7b)]=_0x2d8553),_0x47c8df[_0x1a89f0(0xc5c)]());});function _0x46183b(_0x692ab6){const _0x57cde0=_0x212358;_0x47c8df[_0x57cde0(0x6d8)]=_0x692ab6||{'count':0x0,'rows':[]};}function _0x2c576e(){const _0x52a573=_0x212358;_0x47c8df['query'][_0x52a573(0x184b)]=(_0x47c8df[_0x52a573(0xae2)][_0x52a573(0x1c7b)]-0x1)*_0x47c8df[_0x52a573(0xae2)]['limit'],_0x4e5f86['hasRole'](_0x52a573(0x1c60))?_0x47c8df[_0x52a573(0x2061)]=_0x5b0bb2['whatsappQueue'][_0x52a573(0xbf7)](_0x47c8df[_0x52a573(0xae2)],_0x46183b)[_0x52a573(0x1d77)]:(_0x47c8df[_0x52a573(0xae2)]['id']=_0x47c8df[_0x52a573(0x44a)]['id'],_0x47c8df[_0x52a573(0xae2)][_0x52a573(0x1f74)]=_0x52a573(0x2962),_0x47c8df['promise']=_0x5b0bb2['userProfile']['getResources'](_0x47c8df['query'],_0x46183b)[_0x52a573(0x1d77)]);}function _0x5d9ff5(_0x50eb27,_0x30450d){const _0x1db188=_0x212358;_0x192133[_0x1db188(0xe27)]({'controller':_0x1db188(0x2654),'controllerAs':'vm','templateUrl':_0x1f8bbb,'parent':angular[_0x1db188(0x1853)](_0x54ab48['body']),'targetEvent':_0x50eb27,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x30450d,'whatsappQueues':_0x47c8df['whatsappQueues'][_0x1db188(0x2214)],'license':_0x47c8df[_0x1db188(0x8a5)],'setting':_0x47c8df[_0x1db188(0x9ca)],'crudPermissions':_0x47c8df[_0x1db188(0x1b1a)]}});}function _0x431444(_0x41198e){const _0x23765b=_0x212358;_0x5b0bb2[_0x23765b(0xea8)]['delete']({'id':_0x41198e['id']})[_0x23765b(0x1d77)]['then'](function(){const _0x53a4d6=_0x23765b;_0x39641b()[_0x53a4d6(0x152a)](_0x47c8df[_0x53a4d6(0x6d8)][_0x53a4d6(0x2214)],{'id':_0x41198e['id']}),_0x47c8df[_0x53a4d6(0x6d8)]['count']-=0x1,!_0x47c8df['whatsappQueues']['rows']['length']&&_0x47c8df[_0x53a4d6(0xc5c)](),_0x14d816[_0x53a4d6(0x829)]({'title':_0x39641b()[_0x53a4d6(0xa75)]('WhatsappQueue')+'\x20deleted!','msg':_0x41198e[_0x53a4d6(0x16b6)]?_0x41198e[_0x53a4d6(0x16b6)]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x357331){const _0x47002d=_0x23765b;if(_0x357331['data']&&_0x357331[_0x47002d(0x25c)][_0x47002d(0x1a7c)]&&_0x357331[_0x47002d(0x25c)][_0x47002d(0x1a7c)]['length']){_0x47c8df[_0x47002d(0x1a7c)]=_0x357331[_0x47002d(0x25c)][_0x47002d(0x1a7c)]||[{'message':_0x357331[_0x47002d(0x147f)](),'type':_0x47002d(0x2970)}];for(let _0x2a56af=0x0;_0x2a56af<_0x357331['data'][_0x47002d(0x1a7c)][_0x47002d(0xfd0)];_0x2a56af++){_0x14d816[_0x47002d(0x218e)]({'title':_0x357331['data'][_0x47002d(0x1a7c)][_0x2a56af][_0x47002d(0x66a)],'msg':_0x357331[_0x47002d(0x25c)][_0x47002d(0x1a7c)][_0x2a56af][_0x47002d(0x155e)]});}}else _0x14d816[_0x47002d(0x218e)]({'title':_0x357331[_0x47002d(0x291)]?_0x47002d(0xeb9)+_0x357331['status']+'\x20-\x20'+_0x357331['statusText']:_0x47002d(0x2970),'msg':_0x357331[_0x47002d(0x25c)]?JSON[_0x47002d(0x2701)](_0x357331['data'][_0x47002d(0x155e)]):_0x357331[_0x47002d(0x155e)]||_0x357331['toString']()});});}function _0x283b1a(){const _0x2352e6=_0x212358,_0x58997d=angular[_0x2352e6(0x17fe)](_0x47c8df[_0x2352e6(0xf05)]);return _0x47c8df['selectedWhatsappQueues']=[],_0x58997d;}function _0x461db2(_0x48357d){const _0x31ca72=_0x212358,_0x3b3ec0=_0x192133[_0x31ca72(0x1551)]()[_0x31ca72(0x1386)](_0x31ca72(0x24ac))[_0x31ca72(0x49e)](_0x31ca72(0x204d)+_0x47c8df[_0x31ca72(0xf05)]['length']+_0x31ca72(0x1d6c)+_0x31ca72(0x1b6))[_0x31ca72(0x15ad)](_0x31ca72(0x149a))['targetEvent'](_0x48357d)['ok']('OK')[_0x31ca72(0x696)](_0x31ca72(0x24ba));_0x192133[_0x31ca72(0xe27)](_0x3b3ec0)[_0x31ca72(0x1cb0)](function(){const _0x113413=_0x31ca72;_0x47c8df['selectedWhatsappQueues']['forEach'](function(_0x116eb3){_0x431444(_0x116eb3);}),_0x47c8df[_0x113413(0xf05)]=[];});}function _0x337d06(){_0x47c8df['selectedWhatsappQueues']=[];}function _0x5d9144(){const _0x10303c=_0x212358;_0x47c8df[_0x10303c(0xf05)]=_0x47c8df[_0x10303c(0x6d8)][_0x10303c(0x2214)];}}const _0x514f79=_0x5223ee;;_0x36897d[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6),_0x5537c6(0x1f2a)];function _0x36897d(_0xa2c921,_0x344768){const _0x5816f0=_0x5537c6;_0xa2c921[_0x5816f0(0x27e0)](_0x5816f0(0x1770),{'abstract':!![],'url':'/whatsapp'})[_0x5816f0(0x27e0)](_0x5816f0(0x77c),{'url':_0x5816f0(0x1608),'views':{'content@app':{'templateUrl':_0x26ceaf,'controller':'WhatsappQueuesController\x20as\x20vm'}},'resolve':{'whatsappQueues':['apiResolver','Auth',function(_0x352503,_0xa2fc51){const _0x4f4c2c=_0x5816f0;return _0xa2fc51['hasRole'](_0x4f4c2c(0x1c60))?_0x352503[_0x4f4c2c(0x19a3)]('whatsappQueue@get',{'fields':_0x4f4c2c(0x22f3),'sort':_0x4f4c2c(0x282),'channel':_0x4f4c2c(0x2476),'limit':0xa,'offset':0x0}):_0x352503[_0x4f4c2c(0x19a3)]('userProfile@getResources',{'id':_0xa2fc51[_0x4f4c2c(0x21e8)]()[_0x4f4c2c(0x13c1)],'section':_0x4f4c2c(0x2962),'fields':_0x4f4c2c(0x22f3),'sort':_0x4f4c2c(0x282),'channel':_0x4f4c2c(0x2476),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5816f0(0x1e0b),_0x5816f0(0x1774),function(_0x3049cd,_0x38f965){const _0x16c9b8=_0x5816f0;return _0x38f965[_0x16c9b8(0x22b6)](_0x16c9b8(0x1c60))?null:_0x3049cd['resolve']('userProfile@get',{'fields':_0x16c9b8(0x279),'id':_0x38f965[_0x16c9b8(0x21e8)]()[_0x16c9b8(0x13c1)]});}],'userProfileSection':['apiResolver',_0x5816f0(0x1774),function(_0x57f76c,_0x540915){const _0x3ef77e=_0x5816f0;return _0x540915[_0x3ef77e(0x22b6)](_0x3ef77e(0x1c60))?null:_0x57f76c['resolve'](_0x3ef77e(0x2182),{'fields':_0x3ef77e(0x1f5f),'userProfileId':_0x540915[_0x3ef77e(0x21e8)]()['userProfileId'],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':'whatsapp'})[_0x5816f0(0x27e0)](_0x5816f0(0x1bc2),{'url':_0x5816f0(0x1bf2),'params':{'whatsappQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5af478,'controller':_0x5816f0(0xdfb)}},'resolve':{'whatsappQueue':[_0x5816f0(0x1e0b),_0x5816f0(0x225c),function(_0x3c6d44,_0x1d7061){const _0x5e389b=_0x5816f0;return _0x3c6d44[_0x5e389b(0x19a3)]('whatsappQueue@get',{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','id':_0x1d7061['id']});}],'userProfileSection':[_0x5816f0(0x1e0b),_0x5816f0(0x1774),function(_0x1e8d98,_0xdfd3f){const _0x10f7a7=_0x5816f0;return _0x1e8d98['resolve']('userProfileSection@get',{'fields':_0x10f7a7(0x1f5f),'userProfileId':_0xdfd3f[_0x10f7a7(0x21e8)]()[_0x10f7a7(0x13c1)],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':'whatsapp'})[_0x5816f0(0x27e0)](_0x5816f0(0x1454),{'url':_0x5816f0(0x6ac),'views':{'content@app':{'templateUrl':_0x5d939f,'controller':'WhatsappAccountsController\x20as\x20vm'}},'resolve':{'whatsappAccounts':['apiResolver',_0x5816f0(0x1774),function(_0x3795af,_0x293226){const _0x4d5a93=_0x5816f0;return _0x293226[_0x4d5a93(0x22b6)](_0x4d5a93(0x1c60))?_0x3795af[_0x4d5a93(0x19a3)]('whatsappAccount@get',{'fields':_0x4d5a93(0x1d08),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x3795af[_0x4d5a93(0x19a3)](_0x4d5a93(0x12da),{'id':_0x293226[_0x4d5a93(0x21e8)]()[_0x4d5a93(0x13c1)],'section':_0x4d5a93(0x10c4),'fields':_0x4d5a93(0x1d08),'sort':_0x4d5a93(0x282),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x36f707,_0x5854a9){const _0x194650=_0x5816f0;return _0x5854a9[_0x194650(0x22b6)](_0x194650(0x1c60))?null:_0x36f707[_0x194650(0x19a3)](_0x194650(0x9ae),{'fields':_0x194650(0x279),'id':_0x5854a9[_0x194650(0x21e8)]()[_0x194650(0x13c1)]});}],'userProfileSection':[_0x5816f0(0x1e0b),_0x5816f0(0x1774),function(_0xa5528,_0x49f167){const _0x333d1e=_0x5816f0;return _0x49f167[_0x333d1e(0x22b6)](_0x333d1e(0x1c60))?null:_0xa5528[_0x333d1e(0x19a3)]('userProfileSection@get',{'fields':_0x333d1e(0x1f5f),'userProfileId':_0x49f167[_0x333d1e(0x21e8)]()[_0x333d1e(0x13c1)],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':_0x5816f0(0x2476)})[_0x5816f0(0x27e0)](_0x5816f0(0x40c),{'url':_0x5816f0(0x1bf2),'params':{'whatsappAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x28d275,'controller':_0x5816f0(0x1f16)}},'resolve':{'whatsappAccount':[_0x5816f0(0x1e0b),_0x5816f0(0x225c),function(_0x48189a,_0x4e0e35){const _0x2802ea=_0x5816f0;return _0x48189a[_0x2802ea(0x19a3)](_0x2802ea(0xa74),{'fields':_0x2802ea(0x1d08),'id':_0x4e0e35['id']});}],'userProfileSection':[_0x5816f0(0x1e0b),_0x5816f0(0x1774),function(_0x4903fb,_0x188dac){const _0x1e3b1a=_0x5816f0;return _0x4903fb[_0x1e3b1a(0x19a3)](_0x1e3b1a(0x2182),{'fields':_0x1e3b1a(0x1f5f),'userProfileId':_0x188dac['getCurrentUser']()[_0x1e3b1a(0x13c1)],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':_0x5816f0(0x2476)}),_0x344768[_0x5816f0(0x4e7)]('app/main/apps/whatsapp');}angular[_0x5537c6(0x9ab)](_0x5537c6(0x1770),[_0x5537c6(0x2770),_0x5537c6(0x2135),'md.data.table',_0x5537c6(0xacf),'mdColorPicker',_0x5537c6(0xd19),_0x5537c6(0x44c),_0x5537c6(0x2ec),_0x5537c6(0x1890),_0x5537c6(0x167d),_0x5537c6(0x208f),_0x5537c6(0x1b65),'mwFormUtils','ngclipboard',_0x5537c6(0x7c9),_0x5537c6(0xeb5),_0x5537c6(0x27af),_0x5537c6(0x13b6),_0x5537c6(0x1cbd),'angular.filter',_0x5537c6(0x20b4)])[_0x5537c6(0xa60)](_0x36897d)[_0x5537c6(0x6e5)]('CreateOrEditWhatsappAccountDialogController',_0x5dbcf7)[_0x5537c6(0x6e5)]('WhatsappAccountActionsController',_0x466e41)[_0x5537c6(0x6e5)](_0x5537c6(0x2903),_0x29a049)[_0x5537c6(0x6e5)]('EditWhatsappAccountAppagentDialogController',_0x568158)[_0x5537c6(0x6e5)](_0x5537c6(0x218d),_0x24176a)['controller'](_0x5537c6(0x1556),_0x388b54)[_0x5537c6(0x6e5)](_0x5537c6(0xde4),_0x4ad82c)[_0x5537c6(0x6e5)](_0x5537c6(0xe8a),_0x47899b)[_0x5537c6(0x6e5)](_0x5537c6(0x2890),_0x205782)['controller'](_0x5537c6(0x251f),_0x53cc2f)['controller']('EditWhatsappAccountAppintervalDialogController',_0x28316b)[_0x5537c6(0x6e5)](_0x5537c6(0x1894),_0x99ac4e)[_0x5537c6(0x6e5)]('EditWhatsappAccountAppqueueDialogController',_0x203d1c)[_0x5537c6(0x6e5)]('EditWhatsappAccountAppsystemDialogController',_0x7a1ec7)['controller'](_0x5537c6(0x2374),_0x466aee)['controller'](_0x5537c6(0x1375),_0x4c9049)[_0x5537c6(0x6e5)](_0x5537c6(0x10eb),_0x312da9)[_0x5537c6(0x6e5)](_0x5537c6(0x15dc),_0x4aef3b)[_0x5537c6(0x6e5)](_0x5537c6(0x2129),_0x2cc20f)[_0x5537c6(0x6e5)](_0x5537c6(0x22ca),_0x49637d)[_0x5537c6(0x6e5)](_0x5537c6(0x221e),_0x4e00bd)[_0x5537c6(0x6e5)](_0x5537c6(0x2654),_0x2f7c74)[_0x5537c6(0x6e5)](_0x5537c6(0x29c3),_0x416d8d)[_0x5537c6(0x6e5)](_0x5537c6(0x1347),_0x1ab6fb)['controller']('WhatsappQueueController',_0x2a966b)[_0x5537c6(0x6e5)](_0x5537c6(0x2121),_0x514f79);;const _0x43649b=_0x5074a3['p']+_0x5537c6(0x1c77);;const _0x454c10=_0x5074a3['p']+_0x5537c6(0xc32);;const _0x57a773=_0x5074a3['p']+_0x5537c6(0x1818);;const _0x4ee7f7=_0x5074a3['p']+_0x5537c6(0x19d2);;const _0x25e1bd=_0x5074a3['p']+_0x5537c6(0x22c);;const _0x5df8b6=_0x5074a3['p']+'src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar.html/vertical-navigation-fullwidth-toolbar.html';;const _0xcad046=_0x5074a3['p']+_0x5537c6(0x1ebe);;;_0x52bca0[_0x5537c6(0x15b6)]=[_0x5537c6(0x406),'$window','$cookies',_0x5537c6(0x2168),_0x5537c6(0x142b),'Auth',_0x5537c6(0x9ca)];function _0x52bca0(_0x3342e7,_0x3797dd,_0x47d840,_0x4c8342,_0x25c2ba,_0x18b87a,_0xe4dc11){const _0x2cc418=_0x5537c6,_0x13d0e8=this;_0x13d0e8[_0x2cc418(0x2410)]=![],_0x13d0e8[_0x2cc418(0x995)]=![],_0x13d0e8['baseUrl']=_0x25c2ba['baseUrl'];function _0x4028e3(){const _0x585788=_0x2cc418;if(_0x3342e7[_0x585788(0x1dfe)][_0x585788(0xae3)]&&_0x3342e7[_0x585788(0x1dfe)]['userId'])return _0x18b87a[_0x585788(0x214b)](),_0x13d0e8['progresslogin']=!![],_0x47d840['put']('motion.token',_0x3342e7[_0x585788(0x1dfe)]['token']),_0x25c2ba[_0x585788(0xebe)][_0x585788(0xbf7)]({'id':_0x3342e7[_0x585788(0x1dfe)]['userId']})[_0x585788(0x1d77)][_0x585788(0x1cb0)](function(_0x41271b){const _0x545653=_0x585788;_0x41271b&&(_0x18b87a[_0x545653(0x2018)](_0x41271b),_0x3342e7['go'](_0x545653(0x1647)));})[_0x585788(0x2e0)](function(){const _0x1f56fa=_0x585788;_0x13d0e8[_0x1f56fa(0x2410)]=![];});else _0x18b87a[_0x585788(0x8c3)]()&&_0x3342e7['go'](_0x585788(0x1647));_0x13d0e8[_0x585788(0x995)]=_0xe4dc11[_0x585788(0x995)];}function _0x333fe5(){const _0x4565af=_0x2cc418;return _0x13d0e8['progresslogin']=!![],_0x13d0e8[_0x4565af(0x155e)]='',_0x18b87a['login'](_0x13d0e8[_0x4565af(0x2699)])['then'](function(){const _0x28d31b=_0x4565af;return _0x3342e7['go'](_0x28d31b(0x1647));})[_0x4565af(0x1c4)](function(_0x51e755){const _0x4e9592=_0x4565af;_0x13d0e8[_0x4e9592(0x155e)]=_0x51e755[_0x4e9592(0x25c)]?_0x51e755[_0x4e9592(0x25c)][_0x4e9592(0x155e)]:_0x51e755[_0x4e9592(0x155e)];})['finally'](function(){const _0x4b61b4=_0x4565af;_0x13d0e8[_0x4b61b4(0x2410)]=![];});}function _0x59e67d(_0x1ad782){const _0x188571=_0x2cc418;_0x13d0e8['message']='',_0x3797dd['location'][_0x188571(0x105b)]=_0x18b87a['loginSSO'](_0x1ad782);}_0x13d0e8[_0x2cc418(0x22c4)]=_0x333fe5,_0x13d0e8['loginOauth']=_0x59e67d,_0x13d0e8[_0x2cc418(0x1a34)]=_0x4028e3,_0x13d0e8[_0x2cc418(0x1a34)]();}const _0x533e7b=_0x52bca0;;_0x412afc[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6),_0x5537c6(0x1f2a)];function _0x412afc(_0x14dd69,_0x58d972){const _0x546f67=_0x5537c6;_0x14dd69['state']('app.login',{'url':_0x546f67(0x2604),'views':{'main@':{'templateUrl':_0x454c10,'controller':_0x546f67(0x11ba)},'content@app.login':{'templateUrl':_0x43649b,'controller':_0x546f67(0x29b4)}},'bodyClass':'login'}),_0x58d972[_0x546f67(0x4e7)](_0x546f67(0x2105));}angular[_0x5537c6(0x9ab)](_0x5537c6(0xf2e),[])[_0x5537c6(0xa60)](_0x412afc)[_0x5537c6(0x6e5)](_0x5537c6(0x1129),_0x533e7b);;const _0x3f730e=_0x5074a3['p']+_0x5537c6(0x530);;_0x1d80c9['$inject']=[_0x5537c6(0x1774),'toasty',_0x5537c6(0x1ae),'$state',_0x5537c6(0x142b)];function _0x1d80c9(_0xb10f74,_0x1a3c58,_0x103e36,_0x5c6da4,_0x4708b9){const _0x341bca=_0x5537c6,_0xf3fe08=this;_0xf3fe08['form']={},_0xf3fe08[_0x341bca(0x29ae)]=_0x4708b9[_0x341bca(0x29ae)];function _0x56aeef(){const _0x104d6b=_0x341bca;_0xb10f74[_0x104d6b(0x8c3)]()&&_0x5c6da4['go'](_0x104d6b(0x1647));}function _0x3c2c30(){const _0x4e40e0=_0x341bca;return _0x4708b9[_0x4e40e0(0x2759)]['forgot'](_0xf3fe08['form'])[_0x4e40e0(0x1d77)]['then'](function(){const _0x42cff5=_0x4e40e0;_0x1a3c58[_0x42cff5(0x829)]({'title':_0x103e36[_0x42cff5(0x25cc)](_0x42cff5(0x1145)),'msg':_0x103e36[_0x42cff5(0x25cc)](_0x42cff5(0x1931))});})['catch'](function(_0x34494a){const _0x4af027=_0x4e40e0;_0x34494a&&_0x1a3c58[_0x4af027(0x218e)]({'title':_0x103e36['instant'](_0x4af027(0xf89)),'msg':_0x34494a[_0x4af027(0x25c)]?_0x34494a[_0x4af027(0x25c)]['message']||_0x34494a[_0x4af027(0x155e)]||_0x34494a:_0x34494a[_0x4af027(0x155e)]||_0x34494a});});}_0xf3fe08[_0x341bca(0x1c19)]=_0x3c2c30,_0xf3fe08[_0x341bca(0x1a34)]=_0x56aeef;}const _0xdc35e5=_0x1d80c9;;_0x2d80e3[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6),'$translatePartialLoaderProvider'];function _0x2d80e3(_0x152338,_0x3ad9d0){const _0x405b9c=_0x5537c6;_0x152338[_0x405b9c(0x27e0)](_0x405b9c(0x218f),{'url':_0x405b9c(0xf9e),'views':{'main@':{'templateUrl':_0x454c10,'controller':'MainController\x20as\x20vm'},'content@app.forgot':{'templateUrl':_0x3f730e,'controller':_0x405b9c(0xafc)}},'bodyClass':'forgot'}),_0x3ad9d0[_0x405b9c(0x4e7)]('app/forgot');}angular[_0x5537c6(0x9ab)](_0x5537c6(0x218f),[])[_0x5537c6(0xa60)](_0x2d80e3)[_0x5537c6(0x6e5)]('ForgotPasswordController',_0xdc35e5);;const _0x2b820f=_0x5074a3['p']+'src/js/modules/reset/reset.html/reset.html';;_0x17a9ef[_0x5537c6(0x15b6)]=['Auth',_0x5537c6(0x9bf),_0x5537c6(0x1ae),_0x5537c6(0x406),_0x5537c6(0x142b),_0x5537c6(0x225c)];function _0x17a9ef(_0x19f123,_0x2086b8,_0x4f6aae,_0x2c5ec5,_0x2b4496,_0x462ef4){const _0x4a883a=_0x5537c6,_0x8a7867=this;_0x8a7867[_0x4a883a(0x2699)]={'token':_0x462ef4[_0x4a883a(0xae3)]},_0x8a7867['setting']={},_0x8a7867['baseUrl']=_0x2b4496[_0x4a883a(0x29ae)];function _0xc0d681(){const _0x45bee9=_0x4a883a;return _0x19f123[_0x45bee9(0x8c3)]()&&_0x2c5ec5['go'](_0x45bee9(0x1647)),_0x2b4496['setting']['gdpr']({'id':0x1})[_0x45bee9(0x1d77)][_0x45bee9(0x1cb0)](function(_0x599dd1){const _0x338687=_0x45bee9;_0x8a7867['setting']=_0x599dd1,_0x8a7867[_0x338687(0x1b0c)]=_0x8a7867[_0x338687(0x9ca)][_0x338687(0x1102)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'';})[_0x45bee9(0x1c4)](function(_0x556c67){const _0x5b9f1e=_0x45bee9;_0x556c67&&_0x2086b8[_0x5b9f1e(0x218e)]({'title':_0x5b9f1e(0x1619),'msg':_0x556c67[_0x5b9f1e(0x25c)]?_0x556c67['data'][_0x5b9f1e(0x155e)]||_0x556c67[_0x5b9f1e(0x155e)]||_0x556c67:_0x556c67[_0x5b9f1e(0x155e)]||_0x556c67});});}function _0x24b076(){const _0x1859e9=_0x4a883a;return _0x2b4496[_0x1859e9(0x2759)][_0x1859e9(0x28d5)](_0x8a7867[_0x1859e9(0x2699)])['$promise'][_0x1859e9(0x1cb0)](function(){const _0x2d61fd=_0x1859e9;_0x2086b8['success']({'title':_0x4f6aae[_0x2d61fd(0x25cc)](_0x2d61fd(0x1d6d)),'msg':_0x4f6aae[_0x2d61fd(0x25cc)](_0x2d61fd(0x1077))}),_0x2c5ec5['go'](_0x2d61fd(0xf2e));})[_0x1859e9(0x1c4)](function(_0x132873){const _0x4c4156=_0x1859e9;_0x132873&&_0x2086b8[_0x4c4156(0x218e)]({'title':_0x4f6aae[_0x4c4156(0x25cc)]('RESETPASSWORD.PASSWORD_RESET_ERROR'),'msg':_0x132873['data']?_0x132873['data'][_0x4c4156(0x155e)]||_0x132873['message']||_0x132873:_0x132873[_0x4c4156(0x155e)]||_0x132873});});}_0x8a7867[_0x4a883a(0x1695)]=_0x24b076,_0x8a7867[_0x4a883a(0x1a34)]=_0xc0d681;}const _0x4c8f79=_0x17a9ef;;_0x320113['$inject']=[_0x5537c6(0xbd6),_0x5537c6(0x1f2a)];function _0x320113(_0x5debfb,_0x3eefe2){const _0x1408df=_0x5537c6;_0x5debfb[_0x1408df(0x27e0)](_0x1408df(0x29b6),{'url':_0x1408df(0x21ec),'views':{'main@':{'templateUrl':_0x454c10,'controller':'MainController\x20as\x20vm'},'content@app.reset':{'templateUrl':_0x2b820f,'controller':_0x1408df(0x1f32)}},'bodyClass':_0x1408df(0x28d5)}),_0x3eefe2[_0x1408df(0x4e7)](_0x1408df(0xbf2));}angular[_0x5537c6(0x9ab)]('app.reset',[])[_0x5537c6(0xa60)](_0x320113)[_0x5537c6(0x6e5)](_0x5537c6(0x12d6),_0x4c8f79);;const _0x2266af=_0x5074a3['p']+_0x5537c6(0x22c1);;_0x30f139[_0x5537c6(0x15b6)]=['$state',_0x5537c6(0x2168),'$q','msNavigationService'];function _0x30f139(_0x442d77,_0x10b739,_0x1c1fa3,_0x143c4c){const _0x3fa640=this;function _0x31969f(_0x452e39){const _0x33892d=a0_0x5cbd;let _0x4153d5=[];const _0xc30628=_0x143c4c[_0x33892d(0x27e)](),_0x7cb2b8=_0x1c1fa3[_0x33892d(0x11f4)]();for(let _0x405978=0x0;_0x405978<_0xc30628[_0x33892d(0xfd0)];_0x405978+=0x1){_0xc30628[_0x405978][_0x33892d(0x19c3)]&&_0x4153d5[_0x33892d(0x2785)](_0xc30628[_0x405978]);}return _0x452e39&&(_0x4153d5=_0x4153d5['filter'](function(_0x3ea79d){const _0x3875c4=_0x33892d;if(_0x3ea79d[_0x3875c4(0x1386)][_0x3875c4(0x1680)]()[_0x3875c4(0x250a)](_0x452e39['toLowerCase']()))return!![];})),_0x10b739(function(){const _0x4367b7=_0x33892d;_0x7cb2b8[_0x4367b7(0x19a3)](_0x4153d5);},0x3e8),_0x7cb2b8['promise'];}function _0x590797(_0x2a9992){const _0x5d55ec=a0_0x5cbd;_0x2a9992['uisref']&&(_0x2a9992[_0x5d55ec(0x1349)]?_0x442d77['go'](_0x2a9992[_0x5d55ec(0x27e0)],_0x2a9992[_0x5d55ec(0x1349)]):_0x442d77['go'](_0x2a9992[_0x5d55ec(0x27e0)]));}_0x3fa640['search']=_0x31969f,_0x3fa640['searchResultClick']=_0x590797;}const _0x5d0e1f=_0x30f139;;_0x1c6719[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6),'$translatePartialLoaderProvider'];function _0x1c6719(_0x128bee,_0x147103){const _0x429c3f=_0x5537c6;_0x128bee['state']('app.errors_error-404',{'url':_0x429c3f(0xdae),'views':{'main@':{'templateUrl':_0x454c10,'controller':_0x429c3f(0x11ba)},'content@app.errors_error-404':{'templateUrl':_0x2266af,'controller':_0x429c3f(0x14e9)}},'params':{'status':0x194,'statusText':'','data':{},'config':{}},'bodyClass':_0x429c3f(0x690)}),_0x147103[_0x429c3f(0x4e7)](_0x429c3f(0x1c26));}angular[_0x5537c6(0x9ab)](_0x5537c6(0x16df),[])[_0x5537c6(0xa60)](_0x1c6719)[_0x5537c6(0x6e5)](_0x5537c6(0x1973),_0x5d0e1f);;const _0x1bd4b9=_0x5074a3['p']+_0x5537c6(0x19a7);;_0x2001b2[_0x5537c6(0x15b6)]=['$state','$http'];function _0x2001b2(_0xc04cbf,_0x591ca5){const _0xfed3dd=_0x5537c6,_0x170253=this;function _0x124fae(){const _0x72fec2=a0_0x5cbd;_0x591ca5[_0x72fec2(0x2d4)]('/api/jira',_0x170253[_0x72fec2(0x218e)])[_0x72fec2(0x1cb0)](function(_0x5b816c){const _0xe44f37=_0x72fec2;_0x170253[_0xe44f37(0x199f)]=!![],_0x5b816c[_0xe44f37(0x25c)]&&(_0x170253[_0xe44f37(0x23ae)]=_0x5b816c['data']['id']);},function(){const _0x2bcbc2=_0x72fec2;_0x170253[_0x2bcbc2(0x199f)]=![];});}_0x170253[_0xfed3dd(0x23ae)]='',_0x170253['send']=![],_0x170253[_0xfed3dd(0x218e)]=_0xc04cbf[_0xfed3dd(0x1dfe)],_0x170253['sendReport']=_0x124fae;}const _0x68fc0a=_0x2001b2;;_0x1588c8['$inject']=[_0x5537c6(0xbd6),'$translatePartialLoaderProvider'];function _0x1588c8(_0x27e780,_0x1c5efc){const _0x3e5ebb=_0x5537c6;_0x27e780['state'](_0x3e5ebb(0x931),{'url':'/errors/error-500','views':{'main@':{'templateUrl':_0x454c10,'controller':_0x3e5ebb(0x11ba)},'content@app.errors_error-500':{'templateUrl':_0x1bd4b9,'controller':'Error500Controller\x20as\x20vm'}},'params':{'status':0x1f4,'statusText':'','data':{},'config':{}},'bodyClass':'error-500'}),_0x1c5efc[_0x3e5ebb(0x4e7)]('app/errors/500');}angular[_0x5537c6(0x9ab)](_0x5537c6(0x17df),[])['config'](_0x1588c8)[_0x5537c6(0x6e5)](_0x5537c6(0x1696),_0x68fc0a);;angular[_0x5537c6(0x9ab)](_0x5537c6(0x1a86),['app.errors.error-404','app.errors.error-500']);;_0x3dacb4[_0x5537c6(0x15b6)]=[_0x5537c6(0x354)];function _0x3dacb4(_0xb58784){const _0x18baaf=_0x5537c6,_0x4ab534={};return _0x4ab534[_0x18baaf(0x29ae)]=!![]?'/':0x0,_0x4ab534[_0x18baaf(0x2759)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x2624),{},{'local':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2624)},'forgot':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/auth/local/forgot'},'reset':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x12fc),'params':{'token':_0x18baaf(0x4f7)}},'user':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x40a),'params':{'token':'@token'}},'google':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x10fe)}}),_0x4ab534[_0x18baaf(0x231f)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x4ad)),_0x4ab534['rpc']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/rpc',{},{'startMonitor':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1ea),'params':{'uniqueid':_0x18baaf(0xf96)}},'stopMonitor':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x4f8),'params':{'uniqueid':_0x18baaf(0xf96)}},'getVoiceChannels':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1299)},'getVoiceQueues':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x21f7)},'getChatQueues':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/rpc/chat/queues'},'getMailQueues':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x21f2)},'getSmsQueues':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xc62)},'getWhatsappQueues':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xc62)},'getOpenchannelQueues':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2837)},'getFaxQueues':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x21fd)},'getVoiceQueuesPreview':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x915)},'getVoiceQueuesChannels':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/rpc/voice/queues/channels'},'getVoiceQueuesChannel':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/rpc/voice/queues/channels/:uniqueid'},'getVoiceQueuesChannelHangup':{'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0x241e)},'getVoiceQueuesChannelRedirect':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1fa2)},'getOutbound':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xe17)},'getOutboundChannels':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x107e)},'getAgents':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x25d3)},'setAgentCapacity':{'method':'put','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1e84),'params':{'id':'@id'}},'getTelephones':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1a13)},'getTrunks':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/rpc/trunks'},'getCampaigns':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x85a)},'getMailAccounts':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x390)},'getFaxAccounts':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/rpc/fax/accounts'},'getChatQueuesWaitingInteractions':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x4dc)},'getMailQueuesWaitingInteractions':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0xf6f)},'getOpenchannelQueuesWaitingInteractions':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1b20)},'getOpenchannelQueuesIdWaitingInteractions':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x201f)},'getSmsQueuesWaitingInteractions':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x2197)},'getFaxQueuesWaitingInteractions':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/rpc/fax/queues/waitinginteractions'},'getWhatsappQueuesWaitingInteractions':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2179)},'mailQueueNotify':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2642),'params':{'id':_0x18baaf(0x22fb)}},'chatQueueNotify':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/rpc/chat/queues/:id/notify','params':{'id':_0x18baaf(0x22fb)}},'faxQueueNotify':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x743),'params':{'id':'@id'}},'smsQueueNotify':{'method':'post','url':_0x4ab534['baseUrl']+_0x18baaf(0x37c),'params':{'id':'@id'}},'openchannelQueueNotify':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x482),'params':{'id':_0x18baaf(0x22fb)}},'agentNotify':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x778),'params':{'id':_0x18baaf(0x22fb)}}}),_0x4ab534[_0x18baaf(0x23cc)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x641),{},{'fetch':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1a97)},'reset':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1e7a)},'pull':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/version/pull'},'restart':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x25fb)},'migrations':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x123f)}}),_0x4ab534[_0x18baaf(0x7be)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/system',{},{'killProcess':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/system/process/:pid/kill','params':{'pid':_0x18baaf(0x1416)}}}),_0x4ab534[_0x18baaf(0x2897)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0xe91),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f),'isArray':!![]}}),_0x4ab534[_0x18baaf(0xebe)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2822),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1911)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xd16),'params':{'includeAll':_0x18baaf(0x2690)}},'bulkCreate':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/users/create_many','isArray':!![]},'addContacts':{'isArray':!![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/users/:id/contacts'},'changePassword':{'isArray':![],'method':_0x18baaf(0x135f),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2802)},'addQueues':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x7e4)},'removeQueues':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534['baseUrl']+'api/users/:id/queues'},'addAvatar':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/users/:id/avatar'},'getAvatar':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/users/:id/avatar'},'getContacts':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x3e8)},'getQueues':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x7e4)},'getVoiceQueuesRt':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x12e2)},'getGroups':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x7da)},'getRecordings':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x21b1)},'getScreenRecordings':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/users/:id/screen_recordings'},'getChatInteractions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1c9e)},'getOpenchannelInteractions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xcc5)},'getMailInteractions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2544)},'getSmsInteractions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/users/:id/sms/interactions'},'getFaxInteractions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/users/:id/fax/interactions'},'getWhatsappInteractions':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x6ed)},'login':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/users/:id/login'},'logout':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1a82)},'pause':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0xfb3)},'unpause':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/users/:id/unpause'},'getTeams':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/users/:id/teams'},'addTeams':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x288d)},'removeTeams':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x288d)},'getLists':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x4c8)},'getAgents':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x160d)},'addChatInteractions':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/users/:id/chat_interactions'},'removeChatInteractions':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534['baseUrl']+_0x18baaf(0x26a7)},'addMailInteractions':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/users/:id/mail_interactions'},'removeMailInteractions':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xec2)},'addFaxInteractions':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/users/:id/fax_interactions'},'removeFaxInteractions':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/users/:id/fax_interactions'},'addSmsInteractions':{'isArray':!![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x70d)},'removeSmsInteractions':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/users/:id/sms_interactions'},'addOpenchannelInteractions':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x21d0)},'removeOpenchannelInteractions':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534['baseUrl']+'api/users/:id/openchannel_interactions'},'addWhatsappInteractions':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0xd00)},'removeWhatsappInteractions':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xd00)},'getVoicePrefixes':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1c89)},'getFaxAccounts':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x237)},'addFaxAccounts':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x237)},'removeFaxAccounts':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x237)},'getMailAccounts':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xe80)},'addMailAccounts':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xe80)},'removeMailAccounts':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xe80)},'getOpenchannelAccounts':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2401)},'addOpenchannelAccounts':{'isArray':!![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/users/:id/openchannel_accounts'},'removeOpenchannelAccounts':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2401)},'getSmsAccounts':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x348)},'addSmsAccounts':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x348)},'removeSmsAccounts':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534['baseUrl']+_0x18baaf(0x348)},'getChatWebsites':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/users/:id/chat_websites'},'addChatWebsites':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x138f)},'removeChatWebsites':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x138f)},'getWhatsappAccounts':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x10d3)},'addWhatsappAccounts':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x10d3)},'removeWhatsappAccounts':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534['baseUrl']+_0x18baaf(0x10d3)},'getSquareProjects':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1062)},'addSquareProjects':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1062)},'removeSquareProjects':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534['baseUrl']+'api/users/:id/square_projects'},'getScheduledCalls':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1814)},'getApiKey':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x253d)},'createApiKey':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x253d)},'removeApiKey':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/users/:id/api_key'},'whoami':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1d04)}}),_0x4ab534[_0x18baaf(0x2668)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x332),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1d13)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1ee3),'params':{'includeAll':'@includeAll'}}}),_0x4ab534[_0x18baaf(0x1da5)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/contexts/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1ca)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/contexts/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x1059)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x644),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x165b)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x594),'params':{'includeAll':_0x18baaf(0x2690)}},'addApplications':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1215)}}),_0x4ab534['voiceMusicOnHold']=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x48c),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x27b3)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x269f),'params':{'includeAll':_0x18baaf(0x2690)}},'addSound':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/mohs/:id/sounds'},'removeSound':{'isArray':![],'method':'delete','url':_0x4ab534['baseUrl']+_0x18baaf(0xd92)},'getSounds':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/voice/mohs/:id/sounds'}}),_0x4ab534[_0x18baaf(0x26b3)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/queues/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0x1250)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2bb),'params':{'includeAll':_0x18baaf(0x2690)}},'getHoppers':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x24a0)},'getHopperHistories':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/queues/:id/hopper_histories'},'getHopperFinals':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x233)},'getHopperBlacks':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x419)},'getTeams':{'isArray':![],'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0x363)},'addTeams':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x363)},'removeTeams':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x363)},'addAgents':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x756)},'removeAgents':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534['baseUrl']+_0x18baaf(0x756)},'getAgents':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/queues/:id/users'},'getMembers':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1682)},'getLists':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/queues/:id/lists'},'addLists':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xce7)},'removeLists':{'isArray':!![],'method':'delete','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/queues/:id/lists'},'getBlackLists':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x2614)},'addBlackLists':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/queues/:id/blacklists'},'removeBlackLists':{'isArray':!![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2614)}}),_0x4ab534[_0x18baaf(0x23d1)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x14d8),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x9e8)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/voice/recordings/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}},'download':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/recordings/:id/download','responseType':_0x18baaf(0x1b92),'cache':![],'transformResponse':function(_0x41b81f,_0x5657a5){const _0x49ef46=_0x18baaf,_0x2e68b8=_0x5657a5();return{'type':_0x2e68b8[_0x49ef46(0x1613)],'length':_0x2e68b8['content-length'],'buffer':_0x41b81f};}},'downloads':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x16cf)},'runTranscribe':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x4ef)},'downloadTranscribe':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x4ef),'responseType':_0x18baaf(0x1b92),'cache':![],'transformResponse':function(_0x48d260,_0x4967f6){const _0x11978e=_0x18baaf,_0x5964bf=_0x4967f6();return{'type':_0x5964bf[_0x11978e(0x1613)],'length':_0x5964bf['content-length'],'buffer':_0x48d260};}}}),_0x4ab534['screenRecording']=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x2287),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x73c)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1bc6),'params':{'includeAll':_0x18baaf(0x2690)}},'download':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1fea),'responseType':_0x18baaf(0x1b92),'cache':![],'transformResponse':function(_0x134946,_0x37cc9c){const _0x110eb6=_0x18baaf,_0x864399=_0x37cc9c();return{'type':_0x864399[_0x110eb6(0x1613)],'length':_0x864399[_0x110eb6(0xbeb)],'buffer':_0x134946};}}}),_0x4ab534['voiceMail']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1bb0),{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/mails/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/mails/:id/clone','params':{'includeAll':'@includeAll'}},'getMessages':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/mails/:id/messages'}}),_0x4ab534['voiceMailMessage']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/mails/messages/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0x21e2)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1291),'params':{'includeAll':_0x18baaf(0x2690)}},'download':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x291f),'responseType':_0x18baaf(0x1b92),'cache':![],'transformResponse':function(_0x10e749,_0x45589e){const _0x407169=_0x18baaf,_0x122bae=_0x45589e();return{'type':_0x122bae['content-type'],'length':_0x122bae[_0x407169(0xbeb)],'buffer':_0x10e749};}}}),_0x4ab534[_0x18baaf(0x11f2)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x797),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x4b9)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x5ca),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x593)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x7db),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x8a4)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2358),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x247a)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x1522),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x5df)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/voice/agents/reports/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0xc6f)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xa02),{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/queues/reports/describe'},'clone':{'method':'post','url':_0x4ab534['baseUrl']+'api/voice/queues/reports/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}},'getVoiceQueuesReport':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/queues/reports/index'}}),_0x4ab534['memberReport']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1e62),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0x313)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x110d),'params':{'includeAll':'@includeAll'}}}),_0x4ab534[_0x18baaf(0x1ae0)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xb32),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/trunks/describe'},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xbfa),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x1045)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x29da),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/transfers/reports/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/voice/transfers/reports/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534['mailServerOut']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x266a),{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1550)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/mail/out_servers/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x4ab534[_0x18baaf(0x131c)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/mail/accounts/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x16d)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1357),'params':{'includeAll':_0x18baaf(0x2690)}},'addDisposition':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/mail/accounts/:id/dispositions'},'getDispositions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x22b9)},'removeDispositions':{'isArray':![],'method':'delete','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x22b9)},'addAnswer':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1872)},'getAnswers':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1872)},'removeAnswers':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1872)},'getImap':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0xc7e)},'addImap':{'isArray':![],'method':'post','url':_0x4ab534['baseUrl']+_0x18baaf(0xc7e)},'removeImap':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/mail/accounts/:id/in_servers'},'getSmtp':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1b34)},'addSmtp':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1b34)},'removeSmtp':{'isArray':![],'method':'delete','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1b34)},'addInteraction':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/mail/accounts/:id/interactions'},'getInteractions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x289)},'addApplications':{'isArray':![],'method':'post','url':_0x4ab534['baseUrl']+_0x18baaf(0x3b0)},'getApplications':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x3b0)},'getMessages':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x764)},'send':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x115a)},'verifySmtp':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x211d)},'addAgents':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x225f)},'removeAgents':{'isArray':![],'method':'delete','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x225f)},'getAgents':{'isArray':![],'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0x225f)}}),_0x4ab534[_0x18baaf(0x16e1)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x19f),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x940)},'clone':{'method':'post','url':_0x4ab534['baseUrl']+'api/mail/queues/:id/clone','params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/mail/queues/:id/members'},'getTeams':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x2266)},'addTeams':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/mail/queues/:id/teams'},'removeTeams':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2266)},'addAgents':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/mail/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2297)},'getAgents':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2297)}}),_0x4ab534[_0x18baaf(0xdbe)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/mail/substatuses/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0xdcd)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/mail/substatuses/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x8e9)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1591),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2717)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2807),'params':{'includeAll':_0x18baaf(0x2690)}},'addMessage':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/mail/interactions/:id/messages'},'getMessages':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1a10)},'addTags':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xeaf)},'removeTags':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xeaf)},'download':{'isArray':![],'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0x1fff),'responseType':_0x18baaf(0x1b92),'cache':![],'transformResponse':function(_0x1091ab,_0x31e435){const _0x14d737=_0x18baaf,_0xe4aff8=_0x31e435();return{'type':_0xe4aff8[_0x14d737(0x1613)],'length':_0xe4aff8[_0x14d737(0xbeb)],'buffer':_0x1091ab};}}}),_0x4ab534[_0x18baaf(0x17aa)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x20e5),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x86d)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2213),'params':{'includeAll':'@includeAll'}},'accept':{'isArray':![],'method':_0x18baaf(0x135f),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x21e0)},'reject':{'isArray':![],'method':'put','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xd0a)},'download':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1b04),'responseType':_0x18baaf(0x1b92),'cache':![],'transformResponse':function(_0x576bec,_0x29f07f){const _0x182b66=_0x18baaf,_0x325078=_0x29f07f();return{'type':_0x325078['content-type'],'length':_0x325078[_0x182b66(0xbeb)],'buffer':_0x576bec};}}}),_0x4ab534[_0x18baaf(0x56e)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/mail/applications/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x698)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/mail/applications/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x4ab534[_0x18baaf(0x1c12)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2689),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x23be)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/mail/reports/queue/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x1312)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/dashboards/:id',{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x10da)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/dashboards/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}},'addItem':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x21fe)},'getItems':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x21fe)}}),_0x4ab534[_0x18baaf(0x220)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1dba),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/dashboards/items/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/dashboards/items/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534['faxAccount']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xba2),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1747)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x63d),'params':{'includeAll':_0x18baaf(0x2690)}},'addDisposition':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/fax/accounts/:id/dispositions'},'getDispositions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x28c9)},'removeDispositions':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534['baseUrl']+_0x18baaf(0x28c9)},'addAnswer':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x8e3)},'getAnswers':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/fax/accounts/:id/canned_answers'},'removeAnswers':{'isArray':![],'method':'delete','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x8e3)},'addInteraction':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x28fe)},'getInteractions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x28fe)},'addApplications':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2590)},'getApplications':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2590)},'addAccountApplications':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2812)},'updateAccountApplications':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2518)},'getMessages':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/fax/accounts/:id/messages'},'send':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2172)},'addAgents':{'isArray':!![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xcae)},'removeAgents':{'isArray':![],'method':'delete','url':_0x4ab534['baseUrl']+'api/fax/accounts/:id/users'},'getAgents':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0xcae)}}),_0x4ab534[_0x18baaf(0x1531)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x28f4),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0xc00)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x27cc),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x1480)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x1861),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x6ca)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xcea),'params':{'includeAll':'@includeAll'}},'addMessage':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xd17)},'getMessages':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xd17)},'addTags':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x96f)},'removeTags':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/fax/interactions/:id/tags'},'download':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x3cc),'responseType':_0x18baaf(0x1b92),'cache':![],'transformResponse':function(_0x4a1e7b,_0x5c72af){const _0x12b9e1=_0x18baaf,_0x3a51f3=_0x5c72af();return{'type':_0x3a51f3[_0x12b9e1(0x1613)],'length':_0x3a51f3[_0x12b9e1(0xbeb)],'buffer':_0x4a1e7b};}}}),_0x4ab534['faxMessage']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xf0e),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0x48d)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x194a),'params':{'includeAll':_0x18baaf(0x2690)}},'accept':{'isArray':![],'method':'put','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1f13)},'reject':{'isArray':![],'method':'put','url':_0x4ab534['baseUrl']+'api/fax/messages/:id/reject'},'download':{'isArray':![],'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0x1338),'responseType':_0x18baaf(0x1b92),'cache':![],'transformResponse':function(_0x368269,_0x5a1bff){const _0x1031cc=_0x18baaf,_0x3a7e5b=_0x5a1bff();return{'type':_0x3a7e5b[_0x1031cc(0x1613)],'length':_0x3a7e5b[_0x1031cc(0xbeb)],'buffer':_0x368269};}}}),_0x4ab534[_0x18baaf(0x54d)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x621),{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x962)},'clone':{'method':'post','url':_0x4ab534['baseUrl']+_0x18baaf(0x13f9),'params':{'includeAll':_0x18baaf(0x2690)}},'getMembers':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x194)},'getTeams':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2026)},'addTeams':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2026)},'removeTeams':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2026)},'addAgents':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/fax/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534['baseUrl']+'api/fax/queues/:id/users'},'getAgents':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2334)}}),_0x4ab534[_0x18baaf(0x1be)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x18cc),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x25bf)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1bfb),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x658)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0xe22),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xad1)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x177f),'params':{'includeAll':_0x18baaf(0x2690)}},'addDisposition':{'isArray':![],'method':'post','url':_0x4ab534['baseUrl']+_0x18baaf(0x13a1)},'getDispositions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/sms/accounts/:id/dispositions'},'removeDispositions':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534['baseUrl']+_0x18baaf(0x13a1)},'addAnswer':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1c59)},'getAnswers':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1c59)},'removeAnswers':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1c59)},'notify':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1cc5)},'addApplications':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x27fd)},'getApplications':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x27fd)},'getInteractions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1401)},'send':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2934)},'status':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x19ba)},'statusGet':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x19ba)},'addAgents':{'isArray':!![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x8b5)},'removeAgents':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/sms/accounts/:id/users'},'getAgents':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x8b5)}}),_0x4ab534['smsApplication']=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x12f5),{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x275e)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/sms/applications/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534['smsInteraction']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/sms/interactions/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xb01)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x109d),'params':{'includeAll':'@includeAll'}},'addMessage':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x9d9)},'getMessages':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x9d9)},'addTags':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2095)},'removeTags':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534['baseUrl']+_0x18baaf(0x2095)},'download':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/sms/interactions/:id/download','responseType':'arraybuffer','cache':![],'transformResponse':function(_0xb908d7,_0x45ec16){const _0x44e02f=_0x18baaf,_0x515f45=_0x45ec16();return{'type':_0x515f45[_0x44e02f(0x1613)],'length':_0x515f45['content-length'],'buffer':_0xb908d7};}}}),_0x4ab534[_0x18baaf(0x130f)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0xefd),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/sms/messages/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x319),'params':{'includeAll':_0x18baaf(0x2690)}},'accept':{'isArray':![],'method':_0x18baaf(0x135f),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x5b8)},'reject':{'isArray':![],'method':_0x18baaf(0x135f),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x27dc)},'status':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1870)}}),_0x4ab534[_0x18baaf(0x62e)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/sms/queues/:id',{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2346)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1b41),'params':{'includeAll':_0x18baaf(0x2690)}},'getMembers':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x213b)},'getTeams':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/sms/queues/:id/teams'},'addTeams':{'isArray':!![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/sms/queues/:id/teams'},'removeTeams':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xb00)},'addAgents':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/sms/queues/:id/users'},'removeAgents':{'isArray':![],'method':'delete','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x22b7)},'getAgents':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x22b7)}}),_0x4ab534[_0x18baaf(0x80e)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/openchannel/accounts/:id',{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x37f)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1856),'params':{'includeAll':_0x18baaf(0x2690)}},'addDisposition':{'isArray':![],'method':'post','url':_0x4ab534['baseUrl']+_0x18baaf(0x2187)},'getDispositions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2187)},'removeDispositions':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2187)},'addAnswer':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/openchannel/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2413)},'removeAnswers':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2413)},'notify':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1cb4)},'addApplications':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x893)},'getApplications':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/openchannel/accounts/:id/applications'},'getInteractions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2804)},'addAgents':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x22c2)},'removeAgents':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x22c2)},'getAgents':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/openchannel/accounts/:id/users'},'send':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xc82)}}),_0x4ab534[_0x18baaf(0x815)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/openchannel/applications/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x11e6)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x128e),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x1f5b)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x5aa),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0x16f)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/openchannel/interactions/:id/clone','params':{'includeAll':'@includeAll'}},'addMessage':{'isArray':![],'method':'post','url':_0x4ab534['baseUrl']+_0x18baaf(0x1d1f)},'getMessages':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/openchannel/interactions/:id/messages'},'addTags':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x11fb)},'removeTags':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/openchannel/interactions/:id/tags'},'download':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x14a9),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0x1dec39,_0x40101e){const _0x7e5384=_0x18baaf,_0x232545=_0x40101e();return{'type':_0x232545['content-type'],'length':_0x232545[_0x7e5384(0xbeb)],'buffer':_0x1dec39};}}}),_0x4ab534['openchannelMessage']=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x14ba),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xa8e)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1bdf),'params':{'includeAll':_0x18baaf(0x2690)}},'accept':{'isArray':![],'method':_0x18baaf(0x135f),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x81b)},'reject':{'isArray':![],'method':_0x18baaf(0x135f),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2ef)}}),_0x4ab534['openchannelQueue']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/openchannel/queues/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1f08)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x22cf),'params':{'includeAll':_0x18baaf(0x2690)}},'getMembers':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1d9e)},'getTeams':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/openchannel/queues/:id/teams'},'addTeams':{'isArray':!![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xef5)},'removeTeams':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/openchannel/queues/:id/teams'},'addAgents':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2383)},'removeAgents':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2383)},'getAgents':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x2383)}}),_0x4ab534[_0x18baaf(0x226c)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1c40),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x24e7)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/chat/websites/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}},'addDisposition':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1f77)},'getDispositions':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1f77)},'removeDispositions':{'isArray':![],'method':'delete','url':_0x4ab534['baseUrl']+_0x18baaf(0x1f77)},'addAnswer':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x781)},'getAnswers':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x781)},'removeAnswers':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x781)},'addLogo':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/websites/:id/logo'},'addAvatar':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x933)},'addCustomerAvatar':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/websites/:id/customer_avatar'},'addSystemAvatar':{'isArray':![],'method':'post','url':_0x4ab534['baseUrl']+'api/chat/websites/:id/system_avatar'},'getLogo':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1482)},'getAvatar':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/websites/:id/avatar'},'getCustomerAvatar':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/chat/websites/:id/customer_avatar'},'getSystemAvatar':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/websites/:id/system_avatar'},'notify':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x961)},'offline':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2969)},'addInteraction':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x225d)},'getInteractions':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x225d)},'getSnippet':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xc2e)},'addApplications':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x5f4)},'getApplications':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x5f4)},'addProactiveActions':{'isArray':![],'method':'post','url':_0x4ab534['baseUrl']+_0x18baaf(0xafd)},'getProactiveActions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xafd)},'getFields':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2093)},'getOfflineMessages':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/websites/:id/offline_messages'},'addAgents':{'isArray':!![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xba5)},'removeAgents':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534['baseUrl']+_0x18baaf(0xba5)},'getAgents':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/websites/:id/users'}}),_0x4ab534['openchannelQueueReport']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1cc3),{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x63f)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1983),'params':{'includeAll':'@includeAll'}}}),_0x4ab534['chatApplication']=_0xb58784(_0x4ab534['baseUrl']+'api/chat/applications/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x23e8)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x27a1),'params':{'includeAll':'@includeAll'}}}),_0x4ab534[_0x18baaf(0x115b)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x733),{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/chat/interactions/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x28cc),'params':{'includeAll':'@includeAll'}},'createVidaooSession':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x242a)},'customUpdate':{'isArray':![],'method':_0x18baaf(0x135f),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2597)},'abandon':{'isArray':![],'method':'put','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xa5a)},'attachmentUpload':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/interactions/:id/attachment_upload'},'attachmentDownload':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xa01)},'close':{'isArray':![],'method':_0x18baaf(0x135f),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x38a)},'addMessage':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1e9b)},'getMessages':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1e9b)},'getMyMessages':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x343)},'addTags':{'isArray':![],'method':'post','url':_0x4ab534['baseUrl']+_0x18baaf(0x8ad)},'removeTags':{'isArray':![],'method':'delete','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x8ad)},'download':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/chat/interactions/:id/download','responseType':_0x18baaf(0x1b92),'cache':![],'transformResponse':function(_0x2193a7,_0x5d4f74){const _0x2c5811=_0x18baaf,_0x147ef8=_0x5d4f74();return{'type':_0x147ef8[_0x2c5811(0x1613)],'length':_0x147ef8[_0x2c5811(0xbeb)],'buffer':_0x2193a7};}}}),_0x4ab534[_0x18baaf(0x5a4)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x667),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1f1c)},'clone':{'method':'post','url':_0x4ab534['baseUrl']+_0x18baaf(0x2532),'params':{'includeAll':_0x18baaf(0x2690)}},'accept':{'isArray':![],'method':_0x18baaf(0x135f),'url':_0x4ab534['baseUrl']+_0x18baaf(0xae1)},'reject':{'isArray':![],'method':_0x18baaf(0x135f),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1262)}}),_0x4ab534[_0x18baaf(0x16a9)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/offline_messages/:id',{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/offline_messages/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2167),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x1e86)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0xb30),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xf45)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x171a),'params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/chat/queues/:id/members'},'getTeams':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1b9a)},'addTeams':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1b9a)},'removeTeams':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1b9a)},'addAgents':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/queues/:id/users'},'getAgents':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/queues/:id/users'}}),_0x4ab534[_0x18baaf(0x20da)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/groups/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1204)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x114d),'params':{'includeAll':'@includeAll'}},'getUnread':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0xcac)},'addMembers':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x290f)},'getMembers':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/groups/:id/members'},'removeMembers':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x290f)},'addMessage':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/groups/:id/messages'},'getMessages':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2896)}}),_0x4ab534[_0x18baaf(0x28fc)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/proactive_actions/:id',{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x27e9)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x28d6),'params':{'includeAll':'@includeAll'}}}),_0x4ab534[_0x18baaf(0x107a)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1595),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x16ba)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/cm/companies/:id/clone','params':{'includeAll':'@includeAll'}},'addContacts':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/cm/companies/:id/contacts'},'getContacts':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xa6c)}}),_0x4ab534['cmContact']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x8c2),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/cm/contacts/describe'},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/cm/contacts/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}},'merge':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/cm/contacts/merge'},'bulkCreate':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x2979)},'getTags':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x772)},'setTags':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x772)},'getHoppers':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x139f)},'getHopperHistories':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xc2b)},'getHopperFinals':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x7b0)},'getJscriptySessions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/cm/contacts/:id/jscripty_sessions'},'upload':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x258)},'import':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xd6c)}}),_0x4ab534[_0x18baaf(0x26bc)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x1eb0),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xd9f)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/cm/hopper/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}},'getPreview':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/cm/hopper/preview'},'getOpenContacts':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1353)}}),_0x4ab534[_0x18baaf(0x1b1e)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1afa),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x24d3)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/cm/hopper_black/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x145f)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2790),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x25a3)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1f49),'params':{'includeAll':'@includeAll'}},'countContactsQueueCampaignHopperFinal':{'isArray':!![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1521)},'countContactsIvrCampaignHopperFinal':{'isArray':!![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0xbe3)},'moveContactsQueueCampaignHopperFinal':{'isArray':!![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1bce)},'moveContactsIvrCampaignHopperFinal':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xce6)},'checkContactHopper':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x839)}}),_0x4ab534[_0x18baaf(0x1e15)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0xfd4),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x6f3)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2227),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0xc36)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x15d9),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x50a)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1017),'params':{'includeAll':'@includeAll'}}}),_0x4ab534[_0x18baaf(0x269a)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/actions/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x2161)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xea2),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x1bcc)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x6bc),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/automations/describe'},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xb62),'params':{'includeAll':_0x18baaf(0x2690)}},'addConditions':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/automations/:id/conditions'},'getConditions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1033)},'addActions':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2612)},'getActions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2612)}}),_0x4ab534[_0x18baaf(0x1c25)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/canned_answers/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x119d)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1ad7),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534['disposition']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/dispositions/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1f3a)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1bd6),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534['condition']=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0xcd1),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x2742)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x816),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x1ac8)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/intervals/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x58b)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/intervals/:id/clone','params':{'includeAll':'@includeAll'}},'addInterval':{'isArray':![],'method':'post','url':_0x4ab534['baseUrl']+_0x18baaf(0x1a2c)},'getIntervals':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/intervals/:id/sub_intervals'},'addIntervals':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0xb65)}}),_0x4ab534[_0x18baaf(0x785)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x337),{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/pauses/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xf56),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x8ff)]=_0xb58784(_0x4ab534['baseUrl']+'api/cdr/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1efd)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1445),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x523)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1496),{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x164f)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x11fa),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x263c)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x200),{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x96c)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x68c),'params':{'includeAll':_0x18baaf(0x2690)}},'run':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x9c2)}}),_0x4ab534[_0x18baaf(0x1e9)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1a2b),{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/sounds/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/sounds/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}},'download':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x189a),'responseType':_0x18baaf(0x1b92),'cache':![],'transformResponse':function(_0x52900c,_0x139e78){const _0x3ed6f0=_0x18baaf,_0x195f00=_0x139e78();return{'type':_0x195f00[_0x3ed6f0(0x1613)],'length':_0x195f00[_0x3ed6f0(0xbeb)],'buffer':_0x52900c};}},'delete':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/sounds/:id'}}),_0x4ab534['tag']=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x1f38),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x222c)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xbbd),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x2330)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x11e7),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x175e)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x29a),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x497)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1e17),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1bd9)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2738),'params':{'includeAll':'@includeAll'}},'addAllCondition':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/triggers/:id/all_conditions'},'addAnyCondition':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xf24)},'getAllConditions':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x4ab)},'getAnyConditions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xf24)},'addAction':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x5b7)},'getActions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x5b7)}}),_0x4ab534[_0x18baaf(0x1822)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/variables/:id',{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x251b)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x263d),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534['integration']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x508),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x26eb),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x14b3)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x73e),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x4eb)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x21a4),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x1e32)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1658),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/analytics/custom_reports/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xffd),'params':{'includeAll':'@includeAll'}},'preview':{'isArray':!![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1808)},'run':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/analytics/custom_reports/:id/run'},'query':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/analytics/custom_reports/:id/query'}}),_0x4ab534[_0x18baaf(0x1f0c)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x1b8d),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1c62)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x16a3),'params':{'includeAll':_0x18baaf(0x2690)}},'preview':{'isArray':!![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x26c5)},'run':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1120)},'query':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x23d0)}}),_0x4ab534[_0x18baaf(0x1f09)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/analytics/extracted_reports/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0xa5e)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2059),'params':{'includeAll':_0x18baaf(0x2690)}},'download':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x814),'responseType':_0x18baaf(0x1b92),'cache':![],'transformResponse':function(_0x32ff91,_0x421812){const _0x1665ae=_0x18baaf,_0x2cabb6=_0x421812();return{'type':_0x2cabb6['content-type'],'length':_0x2cabb6[_0x1665ae(0xbeb)],'buffer':_0x32ff91};}}}),_0x4ab534[_0x18baaf(0xe71)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/analytics/metrics/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2471)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1517),'params':{'includeAll':'@includeAll'}}}),_0x4ab534['analyticFieldReport']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/analytics/field_reports/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x72c)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1424),'params':{'includeAll':_0x18baaf(0x2690)}},'bulkCreate':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1642),'isArray':!![]},'bulkDestroy':{'method':'delete','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2583),'isArray':!![]},'addFields':{'isArray':!![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xd10)}}),_0x4ab534['analyticTreeReport']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/analytics/tree_reports/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/analytics/tree_reports/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1e2f),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x1186)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x15c9),{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1aed)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x2210),'params':{'includeAll':_0x18baaf(0x2690)}},'getConfigurations':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x585)},'addConfiguration':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x585)},'getFields':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x2177)}}),_0x4ab534[_0x18baaf(0xbae)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/salesforce/configurations/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xf2f)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x20ce),'params':{'includeAll':_0x18baaf(0x2690)}},'getFields':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1e70)},'getSubjects':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x7b2)},'getDescriptions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x2954)}}),_0x4ab534[_0x18baaf(0x1a47)]=_0xb58784(_0x4ab534['baseUrl']+'api/integrations/salesforce/fields/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xbc2)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x428),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x3fa)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x1d74),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2995)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x6df),'params':{'includeAll':_0x18baaf(0x2690)}},'getConfigurations':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/integrations/sugarcrm/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/sugarcrm/accounts/:id/configurations'},'getFields':{'isArray':![],'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0x2332)}}),_0x4ab534[_0x18baaf(0x20dc)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/sugarcrm/configurations/:id',{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/integrations/sugarcrm/configurations/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x7c3),'params':{'includeAll':_0x18baaf(0x2690)}},'getFields':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1004)},'getSubjects':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1b4d)},'getDescriptions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x29ad)}}),_0x4ab534[_0x18baaf(0x26b0)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/sugarcrm/fields/:id',{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/sugarcrm/fields/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1bdd),'params':{'includeAll':'@includeAll'}}}),_0x4ab534[_0x18baaf(0x2559)]=_0xb58784(_0x4ab534['baseUrl']+'api/integrations/desk/accounts/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1ca4)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x7b4),'params':{'includeAll':_0x18baaf(0x2690)}},'getConfigurations':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1760)},'addConfiguration':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1760)},'getFields':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0xcfe)}}),_0x4ab534[_0x18baaf(0x231)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x3a5),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/desk/configurations/describe'},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x5eb),'params':{'includeAll':_0x18baaf(0x2690)}},'getFields':{'isArray':![],'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0x3d4)},'getSubjects':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x874)},'getDescriptions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x24f2)},'getTags':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1232)},'setTags':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1232)}}),_0x4ab534[_0x18baaf(0x220a)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2957),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/desk/fields/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x7cb),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0xdb4)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xb7c),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x309)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1fe1),'params':{'includeAll':_0x18baaf(0x2690)}},'getConfigurations':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1398)},'addConfiguration':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1398)},'getFields':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/zoho/accounts/:id/fields'}}),_0x4ab534[_0x18baaf(0x1a17)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x3ef),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x227e)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/zoho/configurations/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}},'getFields':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1321)},'getSubjects':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1a01)},'getDescriptions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1003)}}),_0x4ab534['intZohoField']=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x1273),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1523)},'clone':{'method':'post','url':_0x4ab534['baseUrl']+_0x18baaf(0x2889),'params':{'includeAll':'@includeAll'}}}),_0x4ab534[_0x18baaf(0x17a8)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x18a1),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x220d)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x247b),'params':{'includeAll':_0x18baaf(0x2690)}},'getConfigurations':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1725)},'addConfiguration':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1725)},'getFields':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x33f)}}),_0x4ab534['intZendeskConfiguration']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/zendesk/configurations/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x264f)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/integrations/zendesk/configurations/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}},'getFields':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1573)},'getSubjects':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/zendesk/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xcfc)},'getTags':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x14e4)},'setTags':{'isArray':!![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x14e4)}}),_0x4ab534[_0x18baaf(0x24cd)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/zendesk/fields/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x26dc)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x158f),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x2317)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1f90),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1328)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x28ab),'params':{'includeAll':_0x18baaf(0x2690)}},'getConfigurations':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/freshdesk/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/freshdesk/accounts/:id/configurations'},'getFields':{'isArray':![],'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0x1f76)}}),_0x4ab534[_0x18baaf(0x29c2)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x19d9),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1975)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2715),'params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1b86)},'getSubjects':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/freshdesk/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x25b8)},'getTags':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x16dc)},'setTags':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/freshdesk/configurations/:id/tags'}}),_0x4ab534[_0x18baaf(0x1830)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1fe5),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/freshdesk/fields/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/freshdesk/fields/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0xe0d)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/vtiger/accounts/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/integrations/vtiger/accounts/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1263),'params':{'includeAll':_0x18baaf(0x2690)}},'getConfigurations':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/vtiger/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xb99)},'getFields':{'isArray':![],'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0x2146)}}),_0x4ab534[_0x18baaf(0x1301)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/vtiger/configurations/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x361)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x410),'params':{'includeAll':_0x18baaf(0x2690)}},'getFields':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/vtiger/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x116e)},'getDescriptions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x330)}}),_0x4ab534[_0x18baaf(0x4a3)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2180),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x123c)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x12d1),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x901)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0xb0b),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/servicenow/accounts/describe'},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/servicenow/accounts/:id/clone','params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x6af)},'addConfiguration':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/servicenow/accounts/:id/configurations'},'getFields':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/servicenow/accounts/:id/fields'}}),_0x4ab534[_0x18baaf(0x739)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x17a3),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x24e1)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x27e2),'params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/servicenow/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x349)},'getDescriptions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x16b3)}}),_0x4ab534[_0x18baaf(0x1ce8)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x188),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x7d7)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/servicenow/fields/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534['intDynamics365Account']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xf8e),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x255d)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/dynamics365/accounts/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}},'getConfigurations':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/dynamics365/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2377)},'getFields':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x294e)}}),_0x4ab534['intDynamics365Configuration']=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x898),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/dynamics365/configurations/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x14cf),'params':{'includeAll':_0x18baaf(0x2690)}},'getFields':{'isArray':![],'method':'get','url':_0x4ab534['baseUrl']+'api/integrations/dynamics365/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0x1643)},'getDescriptions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x149c)}}),_0x4ab534[_0x18baaf(0x26f0)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x1e81),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0x19fe)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/integrations/dynamics365/fields/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534['intFreshsalesAccount']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xb43),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2111)},'clone':{'method':'post','url':_0x4ab534['baseUrl']+_0x18baaf(0x15c3),'params':{'includeAll':_0x18baaf(0x2690)}},'getConfigurations':{'isArray':![],'method':'get','url':_0x4ab534['baseUrl']+'api/integrations/freshsales/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/freshsales/accounts/:id/configurations'},'getFields':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/freshsales/accounts/:id/fields'}}),_0x4ab534[_0x18baaf(0x2085)]=_0xb58784(_0x4ab534['baseUrl']+'api/integrations/freshsales/configurations/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x20eb)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xe37),'params':{'includeAll':_0x18baaf(0x2690)}},'getSubjects':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x2674)},'getDescriptions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1d23)},'getFields':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/freshsales/configurations/:id/fields'}}),_0x4ab534[_0x18baaf(0x775)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/integrations/freshsales/fields/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1d87)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x187b),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534['network']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/networks/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1926)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/networks/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x4ab534['chatQueueReport']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/reports/queue/:id',{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x2605)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x12cc),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534['chatInternalMessage']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x230d),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/internal/messages/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1abf),'params':{'includeAll':'@includeAll'}},'getUsers':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/internal/messages/users'}}),_0x4ab534['jscriptyAnswerReport']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1df),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/jscripty/answers/reports/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x794),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534['jscriptyQuestionReport']=_0xb58784(_0x4ab534['baseUrl']+'api/jscripty/questions/reports/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/jscripty/questions/reports/describe'},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xca2),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534['jscriptySessionReport']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xa0c),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xe4f)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/jscripty/sessions/reports/:id/clone','params':{'includeAll':'@includeAll'}},'getQuestions':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1ef8)}}),_0x4ab534[_0x18baaf(0x1533)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x118f),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1156)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/sms/reports/queue/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x4ab534[_0x18baaf(0x12d9)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x14b2),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1f5c)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x126d),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x950)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/square/details/reports/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x21d5)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x6f6),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534['jscriptyProject']=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x677),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2327)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/jscripty/projects/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}},'getSessions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x29cc)},'getAnswers':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x3ea)},'getSummary':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x99e),'responseType':_0x18baaf(0x1b92),'cache':![],'transformResponse':function(_0x122360,_0x4cfdd8){const _0xd5d38=_0x18baaf,_0x555ee5=_0x4cfdd8();return{'type':_0x555ee5[_0xd5d38(0x1613)],'length':_0x555ee5['content-length'],'buffer':_0x122360};}}}),_0x4ab534[_0x18baaf(0x9ca)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x81c),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1bf5)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x88d),'params':{'includeAll':_0x18baaf(0x2690)}},'addLogo':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1a91)},'addLogoLogin':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x612)},'getLogo':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/settings/:id/logo'},'getLogoLogin':{'isArray':![],'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0x612)},'gdpr':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1d22)},'addPreferred':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/settings/:id/preferred'},'getPreferred':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x26d7)},'addFavicon':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x196b)},'getFavicon':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x196b)},'getDate':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xeba)}}),_0x4ab534[_0x18baaf(0xd7f)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x24f9),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x449)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x22f7),'params':{'includeAll':_0x18baaf(0x2690)}},'test':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x19e8)}}),_0x4ab534[_0x18baaf(0xf61)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xcf2),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4ab534['baseUrl']+'api/square/projects/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x172),'params':{'includeAll':_0x18baaf(0x2690)}},'addUsers':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1766)},'removeUsers':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/square/projects/:id/users'},'getUsers':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1766)}}),_0x4ab534[_0x18baaf(0x562)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1d03),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xcbc)},'clone':{'method':'post','url':_0x4ab534['baseUrl']+_0x18baaf(0x2479),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1ba),'responseType':_0x18baaf(0x1b92),'cache':![],'transformResponse':function(_0x47afb6,_0x344460){const _0x6b199a=_0x18baaf,_0x819009=_0x344460();return{'type':_0x819009[_0x6b199a(0x1613)],'length':_0x819009[_0x6b199a(0xbeb)],'buffer':_0x47afb6};}}}),_0x4ab534['squareMessage']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1254),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/square/messages/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xd53),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0xdfd)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/teams/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1690)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1919),'params':{'includeAll':_0x18baaf(0x2690)}},'getQueues':{'isArray':!![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x356)},'addQueues':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x356)},'removeQueues':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x356)},'addAgents':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/teams/:id/users'},'removeAgents':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/teams/:id/users'},'getAgents':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1ac2)}}),_0x4ab534[_0x18baaf(0x8a5)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2b4),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x8ef)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x9d4),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x218c)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x3ca),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x890)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1c50),'params':{'includeAll':_0x18baaf(0x2690)}},'getHoppers':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/campaigns/:id/hoppers'},'getHopperHistories':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xcf6)},'getHopperFinals':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x17f7)},'getHopperBlacks':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x75d)},'getLists':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x114c)},'addLists':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/campaigns/:id/lists'},'removeLists':{'isArray':!![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x114c)},'getBlackLists':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1939)},'addBlackLists':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1939)},'removeBlackLists':{'isArray':!![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1939)}}),_0x4ab534['migration']=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x2676),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xed4)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x280f),'params':{'includeAll':'@includeAll'}}}),_0x4ab534[_0x18baaf(0x21d7)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x2245),{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0xb4b)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x2673),'params':{'includeAll':_0x18baaf(0x2690)}},'download':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1683),'responseType':_0x18baaf(0x1b92),'cache':![],'transformResponse':function(_0x411208,_0x237288){const _0x3e1ccd=_0x18baaf,_0x27abcc=_0x237288();return{'type':_0x27abcc[_0x3e1ccd(0x1613)],'length':_0x27abcc[_0x3e1ccd(0xbeb)],'buffer':_0x411208};}}}),_0x4ab534['plugin']=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x193c),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xcc7)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x21f9),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x6b4),'responseType':_0x18baaf(0x1b92),'cache':![],'transformResponse':function(_0x1398a2,_0x277a23){const _0x53c800=_0x18baaf,_0x24e23c=_0x277a23();return{'type':_0x24e23c[_0x53c800(0x1613)],'length':_0x24e23c[_0x53c800(0xbeb)],'buffer':_0x1398a2};}},'upload':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1f80)},'delete':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x193c)},'webhookGet':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x10c3)},'webhookPost':{'isArray':![],'method':'post','url':_0x4ab534['baseUrl']+'api/plugins/webhook'}}),_0x4ab534[_0x18baaf(0x1c06)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x8f7),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/mail/reports/transfer/describe'},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/mail/reports/transfer/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0xa2e)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x12e4),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x4e5)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/chat/reports/transfer/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x9e7)]=_0xb58784(_0x4ab534['baseUrl']+'api/fax/reports/transfer/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1270)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1848),'params':{'includeAll':'@includeAll'}}}),_0x4ab534[_0x18baaf(0x19ef)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x123d),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x39f)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1a71),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x2420)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x3e4),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/sms/reports/transfer/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1526),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x22f2)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x21bc),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x2ba)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x76e),'params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/cm/lists/:id/dispositions'},'getDispositions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/cm/lists/:id/dispositions'},'removeDispositions':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/cm/lists/:id/dispositions'},'addContacts':{'isArray':![],'method':'post','url':_0x4ab534['baseUrl']+_0x18baaf(0x598)},'getContacts':{'isArray':!![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x598)},'getContactsCsv':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x28a0),'responseType':_0x18baaf(0x1b92),'cache':![],'transformResponse':function(_0x1a1dbe,_0x23d150){const _0x492ce4=_0x18baaf,_0x40b5ff=_0x23d150();return{'type':_0x40b5ff['content-type'],'length':_0x40b5ff[_0x492ce4(0xbeb)],'buffer':_0x1a1dbe};}},'addCustomField':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x297c)},'getCustomFields':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x297c)},'addAgents':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1320)},'removeAgents':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1320)},'getAgents':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+'api/cm/lists/:id/users'}}),_0x4ab534[_0x18baaf(0x152c)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x266c),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/voice/prefixes/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xc91),'params':{'includeAll':_0x18baaf(0x2690)}},'addAgents':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x960)},'removeAgents':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x960)},'getAgents':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x960)}}),_0x4ab534[_0x18baaf(0x44a)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1413),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1565)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1b54),'params':{'includeAll':_0x18baaf(0x2690)}},'addSections':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x246e)},'removeSections':{'isArray':![],'method':'delete','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x246e)},'getSections':{'isArray':!![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x246e)},'addResources':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2d1)},'removeResources':{'isArray':![],'method':'delete','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/userProfiles/:id/resources'},'getResources':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2d1)}}),_0x4ab534[_0x18baaf(0x2199)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1bf9),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534['baseUrl']+_0x18baaf(0xe46)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x246),'params':{'includeAll':'@includeAll'}}}),_0x4ab534[_0x18baaf(0x1198)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2ff),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2901)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x6cc),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x163c)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x86e),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x119c)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+'api/notifications/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}},'sendNotification':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+'api/notifications/'}}),_0x4ab534[_0x18baaf(0x83a)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/whatsapp/accounts/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1862)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1434),'params':{'includeAll':_0x18baaf(0x2690)}},'addDisposition':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1d37)},'getDispositions':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1d37)},'removeDispositions':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1d37)},'addAnswer':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xc1d)},'getAnswers':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/whatsapp/accounts/:id/canned_answers'},'removeAnswers':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xc1d)},'addAgents':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/whatsapp/accounts/:id/users'},'removeAgents':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1e35)},'getAgents':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1e35)},'addApplications':{'isArray':![],'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x17a7)},'getApplications':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x17a7)},'notify':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x846)},'send':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1665)}}),_0x4ab534[_0x18baaf(0xd51)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/whatsapp/applications/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xb18)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0x6cb),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x197a)]=_0xb58784(_0x4ab534['baseUrl']+_0x18baaf(0x175d),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/whatsapp/interactions/describe'},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534['baseUrl']+_0x18baaf(0xe29),'params':{'includeAll':_0x18baaf(0x2690)}},'addMessage':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xdd1)},'getMessages':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xdd1)},'addTags':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2267)},'removeTags':{'isArray':![],'method':'delete','url':_0x4ab534['baseUrl']+_0x18baaf(0x2267)},'download':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x292a),'responseType':_0x18baaf(0x1b92),'cache':![],'transformResponse':function(_0x4acb47,_0x2607bd){const _0x2b1801=_0x18baaf,_0x34f601=_0x2607bd();return{'type':_0x34f601[_0x2b1801(0x1613)],'length':_0x34f601[_0x2b1801(0xbeb)],'buffer':_0x4acb47};}}}),_0x4ab534['whatsappMessage']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/whatsapp/messages/:id',{'id':'@id'},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xc5a)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xb7b),'params':{'includeAll':'@includeAll'}},'accept':{'isArray':![],'method':_0x18baaf(0x135f),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1f40)},'reject':{'isArray':![],'method':_0x18baaf(0x135f),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1e90)},'status':{'isArray':![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2c5)}}),_0x4ab534[_0x18baaf(0xf64)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x287e),{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xb27)},'clone':{'method':'post','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x2660),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0x108b)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/whatsapp/reports/transfer/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x27d0)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x8bb),'params':{'includeAll':_0x18baaf(0x2690)}}}),_0x4ab534[_0x18baaf(0xea8)]=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x162f),{'id':_0x18baaf(0x22fb)},{'update':{'method':'put'},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x631)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+'api/whatsapp/queues/:id/clone','params':{'includeAll':_0x18baaf(0x2690)}},'getMembers':{'isArray':![],'method':'get','url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1764)},'getTeams':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xf7e)},'addTeams':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0xf7e)},'removeTeams':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534['baseUrl']+_0x18baaf(0xf7e)},'addAgents':{'isArray':!![],'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x726)},'removeAgents':{'isArray':![],'method':_0x18baaf(0x111d),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x726)},'getAgents':{'isArray':![],'method':_0x18baaf(0xbf7),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x726)}}),_0x4ab534['cloudProvider']=_0xb58784(_0x4ab534[_0x18baaf(0x29ae)]+'api/cloudProviders/:id',{'id':_0x18baaf(0x22fb)},{'update':{'method':_0x18baaf(0x135f)},'describe':{'method':_0x18baaf(0xbf7),'url':_0x4ab534['baseUrl']+_0x18baaf(0x1887)},'clone':{'method':_0x18baaf(0x2d4),'url':_0x4ab534[_0x18baaf(0x29ae)]+_0x18baaf(0x1d86),'params':{'includeAll':'@includeAll'}}}),_0x4ab534;}const _0x3d0e4e=_0x3dacb4;;_0x1ea475[_0x5537c6(0x15b6)]=[_0x5537c6(0x1b10),'$translatePartialLoaderProvider',_0x5537c6(0x26f1)];function _0x1ea475(_0x20d621,_0x174db1,_0x53b6ad){const _0x3fc12e=_0x5537c6;_0x53b6ad[_0x3fc12e(0x238)]({'position':_0x3fc12e(0x1044),'sound':![],'html':!![],'theme':'material'}),_0x20d621[_0x3fc12e(0xcd8)](_0x3fc12e(0x1094),{'urlTemplate':_0x3fc12e(0x249f)}),_0x20d621[_0x3fc12e(0x174a)]('en'),_0x174db1[_0x3fc12e(0x4e7)](_0x3fc12e(0x1845)),_0x20d621['useSanitizeValueStrategy'](null);}const _0x53da84=_0x1ea475;;_0x24533b[_0x5537c6(0x15b6)]=[_0x5537c6(0x1a62),_0x5537c6(0x1ae),_0x5537c6(0x173),_0x5537c6(0x142b),_0x5537c6(0x9bf)];function _0x24533b(_0x7e42f,_0x1b779c,_0x2c6164,_0x24903b,_0x27a691){const _0x211d9f=_0x5537c6,_0x4fc01f=this;_0x4fc01f[_0x211d9f(0x1e08)]=_0x7e42f[_0x211d9f(0x1e08)],_0x4fc01f[_0x211d9f(0x979)]=_0x211d9f(0xd32);const _0x14f3db=['ar','fa','he'],_0x27ebce=_0x2c6164[_0x211d9f(0xbf7)]('motion.language');_0x27ebce&&(_0x1b779c[_0x211d9f(0x1ddd)](_0x27ebce),_0x14f3db[_0x211d9f(0xd8a)](_0x27ebce)>=0x0&&_0x24903b[_0x211d9f(0x9ca)][_0x211d9f(0xbf7)]({'id':0x1})[_0x211d9f(0x1d77)]['then'](function(_0x4883c2){const _0x90f89f=_0x211d9f;_0x4883c2&&_0x4883c2['rtlSupport']&&(_0x4fc01f[_0x90f89f(0x979)]=_0x90f89f(0xdef));})[_0x211d9f(0x1c4)](function(_0x382526){const _0x46d684=_0x211d9f;_0x382526&&_0x27a691[_0x46d684(0x218e)]({'title':_0x46d684(0x1619),'msg':_0x382526['data']?_0x382526[_0x46d684(0x25c)][_0x46d684(0x155e)]||_0x382526['message']||_0x382526:_0x382526[_0x46d684(0x155e)]||_0x382526});}));}const _0x287da9=_0x24533b;;_0x2bb3af[_0x5537c6(0x15b6)]=[_0x5537c6(0x1ae)],_0x262c44[_0x5537c6(0x15b6)]=[_0x5537c6(0xc34),'$translate'];function _0x262c44(_0x480297,_0x16f084){return function(_0x2cfaa4){const _0x2541ad=a0_0x5cbd,_0x4c8718=new Date(),_0x30e58=new Date(_0x2cfaa4);if(_0x30e58[_0x2541ad(0x1ccc)]()===_0x4c8718[_0x2541ad(0x1ccc)]()&&_0x30e58[_0x2541ad(0x1c4c)]()===_0x4c8718['getMonth']()&&_0x30e58['getFullYear']()===_0x4c8718[_0x2541ad(0x2516)]())return _0x480297(_0x2541ad(0x18ec))(_0x30e58['getTime'](),_0x2541ad(0x2841));if(_0x30e58['getDate']()===_0x4c8718[_0x2541ad(0x1ccc)]()-0x1&&_0x30e58[_0x2541ad(0x1c4c)]()===_0x4c8718['getMonth']()&&_0x30e58[_0x2541ad(0x2516)]()===_0x4c8718['getFullYear']())return _0x16f084[_0x2541ad(0x25cc)](_0x2541ad(0xa39))+'\x20'+_0x480297(_0x2541ad(0x18ec))(_0x30e58[_0x2541ad(0xab7)](),_0x2541ad(0x2841));return _0x480297(_0x2541ad(0x18ec))(_0x30e58[_0x2541ad(0xab7)](),_0x2541ad(0x12c9));};}function _0x4f42ae(){return function(_0x309cb1,_0x4b7be5,_0x516d1f){const _0x402a82={};let _0x5e9ec9=0x0,_0x1001a1;for(_0x1001a1 in _0x309cb1){_0x5e9ec9>=_0x516d1f&&(_0x402a82[_0x1001a1]=_0x309cb1[_0x1001a1]);if(++_0x5e9ec9===_0x516d1f+_0x4b7be5)break;}return _0x402a82;};}function _0x1a0f6e(){const _0x218e09=_0x5537c6,_0x305588=[{'value':'jan'},{'value':'feb'},{'value':_0x218e09(0x809)},{'value':_0x218e09(0x23f0)},{'value':_0x218e09(0x1c69)},{'value':_0x218e09(0x78a)},{'value':_0x218e09(0x8e5)},{'value':_0x218e09(0x738)},{'value':_0x218e09(0x289e)},{'value':_0x218e09(0x2745)},{'value':_0x218e09(0x1505)},{'value':_0x218e09(0x347)}],_0x140a2f=[{'value':'1'},{'value':'2'},{'value':'3'},{'value':'4'},{'value':'5'},{'value':'6'},{'value':'7'},{'value':'8'},{'value':'9'},{'value':'10'},{'value':'11'},{'value':'12'}],_0x4b41e0=[{'value':_0x218e09(0x2355)},{'value':_0x218e09(0x140a)},{'value':'wed'},{'value':_0x218e09(0xaad)},{'value':_0x218e09(0x1bf0)},{'value':_0x218e09(0x15d4)},{'value':_0x218e09(0x12a2)}],_0xcd3ef9=[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 _0x305588;},'getMonthNumber':function(){return _0x140a2f;},'getDaysOfWeek':function(){return _0x4b41e0;},'getDaysOfMonth':function(){return _0xcd3ef9;}};}function _0x2bb3af(_0x46110e){const _0x15812c=_0x5537c6;return{'Today':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0x257e)),'Yesterday':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0xa39)),'This\x20Week':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0x16b0)),'Last\x20Week':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0x89b)),'This\x20Month':_0x46110e[_0x15812c(0x25cc)]('DASHBOARDS.THIS_MONTH'),'Last\x20Month':_0x46110e['instant'](_0x15812c(0x141a)),'This\x20Year':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0x201a)),'Last\x20Year':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0x45b)),'January':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0x1588)),'February':_0x46110e['instant'](_0x15812c(0xa95)),'March':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0xb72)),'April':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0x1161)),'May':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0x23ff)),'June':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0x68a)),'July':_0x46110e['instant'](_0x15812c(0xd0c)),'August':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0xc6a)),'September':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0x25e0)),'October':_0x46110e['instant'](_0x15812c(0x1e25)),'November':_0x46110e[_0x15812c(0x25cc)]('DASHBOARDS.NOVEMBER'),'December':_0x46110e['instant'](_0x15812c(0x2b0)),'Mon':_0x46110e['instant']('DASHBOARDS.MON'),'Tue':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0x169d)),'Wed':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0x17e4)),'Thu':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0x1411)),'Fri':_0x46110e['instant'](_0x15812c(0x67a)),'Sat':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0x114e)),'Sun':_0x46110e[_0x15812c(0x25cc)](_0x15812c(0x64b))};}function _0x157c49(){return{'enqueue':function(_0x18d3d5){const _0xfa792a=a0_0x5cbd;this[_0xfa792a(0x1dfc)]=this[_0xfa792a(0x1dfc)]?this[_0xfa792a(0x1dfc)][_0xfa792a(0x2e0)](_0x18d3d5):_0x18d3d5();}};};const _0x3af932=_0x5074a3['p']+'src/js/modules/toolbar/layouts/vertical-navigation/toolbar.html/toolbar.html';;;const _0x12f896=_0x5074a3['p']+'src/js/modules/navigation/layouts/horizontal-navigation/navigation.html/navigation.html';;const _0x37ea3c=_0x5074a3['p']+_0x5537c6(0x1bbf);;const _0x37d17c=_0x5074a3['p']+'src/js/modules/navigation/layouts/vertical-navigation-fullwidth-toolbar-2/navigation.html/navigation.html';;;const _0x257932=_0x5074a3['p']+_0x5537c6(0x2551);;;const _0x545a6f=_0x5074a3['p']+_0x5537c6(0x139a);;;const _0x1407c7=_0x5074a3['p']+_0x5537c6(0x1d4d);;_0x5b6926[_0x5537c6(0x15b6)]=[_0x5537c6(0xbd6),_0x5537c6(0x506),_0x5537c6(0x191c)];function _0x5b6926(_0x29036f,_0xad9155,_0x1009be){const _0x4f7d92=_0x5537c6;_0x1009be['html5Mode'](!![]),_0xad9155[_0x4f7d92(0x1d60)][_0x4f7d92(0xed7)](_0x4f7d92(0x27d));let _0x5e93d7;angular[_0x4f7d92(0x1da7)]([_0x4f7d92(0xfe3)])['invoke']([_0x4f7d92(0x173),function(_0x2fa8b3){_0x5e93d7=_0x2fa8b3;}]);const _0x5c1ddf=_0x5e93d7[_0x4f7d92(0xbf7)](_0x4f7d92(0x1422))||'verticalNavigation',_0x170819={'verticalNavigation':{'main':_0xcad046,'toolbar':_0x3af932,'navigation':_0x37ea3c,'header':_0x257932,'footer':_0x545a6f},'verticalNavigationFullwidthToolbar':{'main':_0x5df8b6,'toolbar':'','navigation':_0x37ea3c},'verticalNavigationFullwidthToolbar2':{'main':_0x25e1bd,'toolbar':'','navigation':_0x37d17c},'horizontalNavigation':{'main':_0x4ee7f7,'toolbar':'','navigation':_0x12f896},'contentOnly':{'main':_0x454c10,'toolbar':'','navigation':''},'contentWithToolbar':{'main':_0x57a773,'toolbar':'','navigation':''}};_0x29036f[_0x4f7d92(0x27e0)](_0x4f7d92(0x22e1),{'abstract':!![],'views':{'main@':{'templateUrl':_0x170819[_0x5c1ddf][_0x4f7d92(0x26ac)],'controller':_0x4f7d92(0x11ba)},'toolbar@app':{'templateUrl':_0x170819[_0x5c1ddf][_0x4f7d92(0x1699)],'controller':'ToolbarController\x20as\x20vm'},'navigation@app':{'templateUrl':_0x170819[_0x5c1ddf][_0x4f7d92(0x511)],'controller':_0x4f7d92(0x28be)},'quickPanel@app':{'templateUrl':_0x1407c7,'controller':_0x4f7d92(0xee0)},'header@app':{'templateUrl':_0x170819[_0x5c1ddf][_0x4f7d92(0x18bf)],'controller':_0x4f7d92(0x1fca)},'footer@app':{'templateUrl':_0x170819[_0x5c1ddf]['footer'],'controller':'FooterController\x20as\x20vm'}},'resolve':{'license':[_0x4f7d92(0x1e0b),function(_0x2e0886){const _0x1d2917=_0x4f7d92;return _0x2e0886[_0x1d2917(0x19a3)](_0x1d2917(0x1b53));}],'setting':[_0x4f7d92(0x1e0b),function(_0x1f50a1){const _0x4f5ec2=_0x4f7d92;return _0x1f50a1[_0x4f5ec2(0x19a3)](_0x4f5ec2(0x657),{'id':0x1});}]}});}const _0xd0bc22=_0x5b6926;;_0x16802e['$inject']=[_0x5537c6(0x108a),_0x5537c6(0x2275)];function _0x16802e(_0x355b1a,_0x319a3d){const _0x1d3257=_0x5537c6;_0x355b1a['onStart']({},_0x319a3d['showLoadingIndicator']),_0x355b1a[_0x1d3257(0x23cb)]({},_0x319a3d['hideLoadingIndicator']);}const _0x3f7e38=_0x16802e;var _0x5222e0=_0x5074a3(0x15ef);;_0x159d03[_0x5537c6(0x15b6)]=[_0x5537c6(0x1196),_0x5537c6(0x1774)];function _0x159d03(_0x223352,_0x20acca){let _0x2f3dac;function _0x5d3f8f(){const _0xad7d54=a0_0x5cbd,_0x332622=!![]?window['io']:0x0,_0x9b8981={'query':_0xad7d54(0x1ec1)+_0x20acca[_0xad7d54(0x21e8)]()['id'],'transports':[_0xad7d54(0x2648),_0xad7d54(0x5f5)]};_0x2f3dac=!![]?_0x332622(_0x9b8981):0x0;}return{'connect':_0x5d3f8f,'on':function(_0x4334f7,_0x429419){const _0x2162b2=a0_0x5cbd;_0x429419=_0x429419||angular[_0x2162b2(0x1234)],!_0x2f3dac&&_0x5d3f8f(),_0x2f3dac['on'](_0x4334f7,function(){const _0x1cada3=_0x2162b2,_0x36fcf3=arguments;_0x223352[_0x1cada3(0x652)](function(){const _0x2c0e0c=_0x1cada3;_0x429419[_0x2c0e0c(0x86b)](_0x2f3dac,_0x36fcf3);});});},'onWithoutApply':function(_0x8c2320,_0x54c813){const _0xd259d6=a0_0x5cbd;_0x54c813=_0x54c813||angular[_0xd259d6(0x1234)],!_0x2f3dac&&_0x5d3f8f(),_0x2f3dac['on'](_0x8c2320,function(){const _0x3b4e6a=_0xd259d6;_0x54c813[_0x3b4e6a(0x86b)](_0x2f3dac,arguments);});},'emit':function(_0x3077b8,_0x10c89a,_0x42941a){const _0x2acfd2=a0_0x5cbd;_0x42941a=_0x42941a||angular[_0x2acfd2(0x1234)],!_0x2f3dac&&_0x5d3f8f(),_0x2f3dac[_0x2acfd2(0x27da)](_0x3077b8,_0x10c89a,function(){const _0x40b296=_0x2acfd2,_0x2dd8a7=arguments;_0x223352[_0x40b296(0x652)](function(){const _0x395044=_0x40b296;_0x42941a[_0x395044(0x86b)](_0x2f3dac,_0x2dd8a7);});});},'removeAllListeners':function(_0x20e9da){!_0x2f3dac&&_0x5d3f8f(),_0x2f3dac['removeAllListeners'](_0x20e9da);},'removeListener':function(_0x3fa05,_0x5ec309){const _0x588c8a=a0_0x5cbd;!_0x2f3dac&&_0x5d3f8f(),_0x2f3dac[_0x588c8a(0x1e1b)](_0x3fa05,_0x5ec309);},'disconnect':function(){const _0x27fda5=a0_0x5cbd;!_0x2f3dac&&_0x5d3f8f(),_0x2f3dac[_0x27fda5(0x22e8)]();}};}const _0x5238b1=_0x159d03;;_0x958c86[_0x5537c6(0x15b6)]=[_0x5537c6(0x1463),_0x5537c6(0x1196),_0x5537c6(0x1ae),'msNavigationService',_0x5537c6(0x1014),_0x5537c6(0x1774),'toasty',_0x5537c6(0x8a5),_0x5537c6(0x142b),_0x5537c6(0x9ca)];function _0x958c86(_0x16200e,_0xf77411,_0x2a2009,_0x1f70ab,_0x5684bf,_0x4cd4ae,_0x31a5cb,_0x4c1a68,_0x3d8908,_0x57de4a){const _0x307198=_0x5537c6,_0xe0fc5b=this;_0x31a5cb[_0x307198(0x20a0)]();function _0x45a4da(){const _0x45ded1=_0x307198;return _0x4cd4ae[_0x45ded1(0x21e8)]()&&_0x4cd4ae[_0x45ded1(0x22b6)](_0x45ded1(0x1eff));}_0xe0fc5b[_0x307198(0xfbb)]=_0x45a4da;function _0x3f98bf(_0x39c3b5,_0x195b58){const _0xc11f98=_0x307198;return{'id':_0x39c3b5,'title':_0x195b58['name']||_0xc11f98(0x4cb),'state':_0xc11f98(0x7ae),'stateParams':_0x195b58,'weight':0x2,'hidden':function(){const _0xb229b9=_0xc11f98;return _0x4cd4ae[_0xb229b9(0x22b6)](_0xb229b9(0x1eff))||!_0x4cd4ae[_0xb229b9(0x39e)](_0x39c3b5)&&!_0x4cd4ae[_0xb229b9(0x22b6)]('admin');}};}function _0x3ba8bc(_0x5afc8c,_0xfe44be){const _0x723c15=_0x307198;return{'id':_0x5afc8c,'title':_0xfe44be[_0x723c15(0x16b6)]||_0x723c15(0x4cb),'state':_0x723c15(0x26b5),'stateParams':_0xfe44be,'weight':0x2,'hidden':function(){const _0x521e14=_0x723c15;return _0x4cd4ae[_0x521e14(0x22b6)]('agent')||!_0x4cd4ae[_0x521e14(0x39e)](_0x5afc8c)&&!_0x4cd4ae[_0x521e14(0x22b6)](_0x521e14(0x1c60));}};}function _0x3bdb1d(_0x715694,_0x78144){const _0x17b95c=_0x307198,_0x3105aa={'user':_0x39641b()[_0x17b95c(0x169b)](_0x4cd4ae[_0x17b95c(0x21e8)](),['id','name',_0x17b95c(0x1d14),_0x17b95c(0x1e19),_0x17b95c(0x26e6),_0x17b95c(0xdbd),_0x17b95c(0x230)])};_0x78144[_0x17b95c(0x1c08)]=_0x32329f()[_0x17b95c(0x1778)](_0x78144['agentUrl'],_0x3105aa),_0x5684bf[_0x17b95c(0x1a78)](_0x17b95c(0xacb)+_0x715694,{'id':_0x715694,'title':_0x78144[_0x17b95c(0x16b6)],'translate':_0x78144[_0x17b95c(0x16b6)],'state':_0x17b95c(0x1f6c)+_0x78144['id'],'stateParams':_0x78144,'view':_0x17b95c(0xfd2),'icon':_0x78144[_0x17b95c(0xe3f)],'weight':0xc,'hidden':function(){const _0x1ab44a=_0x17b95c;return!_0x4cd4ae[_0x1ab44a(0x39e)](_0x715694);}});}_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x196f),{'title':'APPS','group':!![],'weight':0x1,'hidden':function(){const _0x3b137b=_0x307198;return _0x4cd4ae[_0x3b137b(0x22b6)](_0x3b137b(0x1eff));}}),_0x3d8908[_0x307198(0x23cc)][_0x307198(0xbf7)]()[_0x307198(0x1d77)][_0x307198(0x1cb0)](function(_0x18c46e){const _0x386be3=_0x307198;_0xe0fc5b[_0x386be3(0x23cc)]=_0x18c46e&&_0x18c46e[_0x386be3(0x1970)]?_0x18c46e[_0x386be3(0x1970)]:_0x386be3(0x1916);})[_0x307198(0x1c4)](function(){const _0x68637c=_0x307198;_0xe0fc5b['version']=_0x68637c(0x1916);})[_0x307198(0x2e0)](function(){const _0x23a995=_0x307198;_0x1f70ab['saveItem'](_0x23a995(0x23cc),{'title':_0x23a995(0x193d)+_0xe0fc5b[_0x23a995(0x23cc)],'group':!![],'weight':0x2,'hidden':function(){const _0x345bf2=_0x23a995;return _0x4cd4ae[_0x345bf2(0x22b6)](_0x345bf2(0x1eff));}});});function _0x2165f1(_0xa26701){const _0x318cd8=_0x307198;return _0x39641b()[_0x318cd8(0x1de2)](_0xa26701[_0x318cd8(0x27a5)],function(_0x57b6df){return _0x57b6df['id'];});}_0x4cd4ae[_0x307198(0x8c3)]()&&(_0x4c1a68[_0x307198(0x189c)]&&_0x31a5cb[_0x307198(0x1752)]({'msg':_0x2a2009['instant']('DASHBOARDS.LICENSE_EXPIRE_REMAINING_DAYS'),'showClose':!![],'timeout':![]}),_0x3d8908['dashboard'][_0x307198(0xbf7)]()[_0x307198(0x1d77)][_0x307198(0x1cb0)](function(_0x307df0){const _0xc44ff7=_0x307198;let _0x4ab7cc=0x0;for(let _0x5d99b2=0x0;_0x5d99b2<_0x307df0[_0xc44ff7(0x2214)][_0xc44ff7(0xfd0)];_0x5d99b2+=0x1){_0x4ab7cc=0x1869f+_0x307df0[_0xc44ff7(0x2214)][_0x5d99b2]['id'],_0x1f70ab[_0xc44ff7(0x1a78)]('apps.dashboards.custom_'+_0x4ab7cc,_0x3f98bf(_0x4ab7cc,_0x307df0[_0xc44ff7(0x2214)][_0x5d99b2]));}}),_0x3d8908[_0x307198(0xfd2)][_0x307198(0xbf7)]({'active':!![]})[_0x307198(0x1d77)][_0x307198(0x1cb0)](function(_0x43e81d){const _0x509ef8=_0x307198;let _0x38b5b1=0x0;if(_0x43e81d[_0x509ef8(0x184d)]){const _0x83a9f1=_0x39641b()[_0x509ef8(0x1c99)](_0x43e81d[_0x509ef8(0x2214)],function(_0x15a029){const _0x51f619=_0x509ef8;return _0x15a029['sidebar']!=_0x51f619(0x382)&&_0x15a029[_0x51f619(0x153c)]!=_0x51f619(0x126e);});if(_0x83a9f1[_0x509ef8(0xfd0)]>0x0){_0x1f70ab[_0x509ef8(0x1a78)](_0x509ef8(0x1846),{'id':0x76c,'title':_0x509ef8(0x27e6),'translate':_0x509ef8(0x281d),'icon':'icon-apps','permissions':{'hidden':!![]},'weight':0x11,'hidden':function(){const _0x53b193=_0x509ef8;return _0x4cd4ae[_0x53b193(0x22b6)]('agent')||!_0x4cd4ae[_0x53b193(0x1e7b)](_0x2165f1(this))&&!_0x4cd4ae[_0x53b193(0x22b6)](_0x53b193(0x1c60));}});for(let _0x379743=0x0;_0x379743<_0x83a9f1['length'];_0x379743+=0x1){_0x38b5b1=0x15b38+_0x83a9f1[_0x379743]['id'],_0x1f70ab[_0x509ef8(0x1a78)](_0x509ef8(0x2694)+_0x38b5b1,_0x3ba8bc(_0x38b5b1,_0x83a9f1[_0x379743]));}_0x1f70ab['sort']();}const _0x4042c2=_0x39641b()[_0x509ef8(0x1c99)](_0x43e81d[_0x509ef8(0x2214)],function(_0x220964){const _0x51bd9f=_0x509ef8;return _0x220964['sidebar']!=_0x51bd9f(0x382)&&_0x220964['sidebar']!=_0x51bd9f(0x1380);});if(_0x4042c2[_0x509ef8(0xfd0)]>0x0)for(let _0x84f867=0x0;_0x84f867<_0x4042c2[_0x509ef8(0xfd0)];_0x84f867+=0x1){_0x38b5b1=0x15b38+_0x4042c2[_0x84f867]['id'],_0x3bdb1d(_0x38b5b1,_0x4042c2[_0x84f867]);}}})),_0x4c1a68[_0x307198(0x197c)]&&!_0x57de4a[_0x307198(0x27f5)]&&_0x57de4a[_0x307198(0xa23)]&&angular[_0x307198(0x1853)](_0x307198(0x6dc))['html'](_0x57de4a[_0x307198(0xa23)]),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x836),{'id':0x64,'title':_0x307198(0x6a5),'translate':_0x307198(0x1f06),'icon':'icon-tile-four','weight':0x2,'hidden':function(){const _0x43488a=_0x307198;return _0x4cd4ae[_0x43488a(0x22b6)](_0x43488a(0x1eff))||!_0x4cd4ae['hasChildrenPermissions'](_0x2165f1(this))&&!_0x4cd4ae['hasRole'](_0x43488a(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)]('apps.dashboards.general',{'id':0x65,'title':_0x307198(0x13c7),'route':'','translate':'DASHBOARDS.GENERAL','state':_0x307198(0x1647),'weight':0x1,'hidden':function(){const _0x588fcc=_0x307198;return _0x4cd4ae[_0x588fcc(0x22b6)](_0x588fcc(0x1eff))||!_0x4cd4ae['hasPermission'](0x65)&&!_0x4cd4ae[_0x588fcc(0x22b6)](_0x588fcc(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)]('apps.staff',{'id':0xc8,'title':'Staff','translate':_0x307198(0x183),'icon':_0x307198(0x22b),'weight':0x3,'hidden':function(){const _0x48d1bc=_0x307198;return _0x4cd4ae[_0x48d1bc(0x22b6)](_0x48d1bc(0x1eff))||!_0x4cd4ae[_0x48d1bc(0x1e7b)](_0x2165f1(this))&&!_0x4cd4ae['hasRole'](_0x48d1bc(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)]('apps.staff.users',{'id':0xc9,'title':'Users','route':_0x307198(0xebe),'translate':_0x307198(0x362),'state':'app.staff.users','weight':0x1,'permissions':{'hidden':!![]},'hidden':function(){const _0x45a80a=_0x307198;return _0x4cd4ae[_0x45a80a(0x22b6)]('agent')||_0x4cd4ae[_0x45a80a(0x22b6)](_0x45a80a(0xebe))||!_0x4cd4ae[_0x45a80a(0x39e)](0xc9)&&!_0x4cd4ae[_0x45a80a(0x22b6)](_0x45a80a(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0xf7d),{'id':0xca,'title':_0x307198(0x2536),'route':_0x307198(0xebe),'translate':_0x307198(0x179f),'state':'app.staff.agents','weight':0x1,'hidden':function(){const _0x4bbda9=_0x307198;return _0x4cd4ae[_0x4bbda9(0x22b6)]('agent')||!_0x4cd4ae[_0x4bbda9(0x39e)](0xca)&&!_0x4cd4ae[_0x4bbda9(0x22b6)](_0x4bbda9(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x1993),{'id':0xcb,'title':_0x307198(0x16d1),'route':_0x307198(0xebe),'translate':_0x307198(0x12de),'state':_0x307198(0x7a3),'weight':0x1,'hidden':function(){const _0x2efda1=_0x307198;return _0x4cd4ae[_0x2efda1(0x22b6)](_0x2efda1(0x1eff))||!_0x4cd4ae[_0x2efda1(0x39e)](0xcb)&&!_0x4cd4ae[_0x2efda1(0x22b6)](_0x2efda1(0x1c60));}}),_0x1f70ab['saveItem'](_0x307198(0x1ea3),{'id':0xcc,'title':_0x307198(0x492),'route':_0x307198(0xdfd),'translate':_0x307198(0x1e0d),'state':'app.staff.teams','weight':0x1,'hidden':function(){const _0x57486a=_0x307198;return _0x4cd4ae[_0x57486a(0x22b6)]('agent')||!_0x4cd4ae[_0x57486a(0x39e)](0xcc)&&!_0x4cd4ae[_0x57486a(0x22b6)]('admin');}}),_0x1f70ab['saveItem'](_0x307198(0x1940),{'id':0xcd,'title':'UserProfiles','route':_0x307198(0x44a),'translate':_0x307198(0x1875),'state':'app.staff.userProfiles','weight':0x1,'permissions':{'hidden':!![]},'hidden':function(){const _0x46f3d2=_0x307198;return _0x4cd4ae[_0x46f3d2(0x22b6)](_0x46f3d2(0x1eff))||!_0x4cd4ae[_0x46f3d2(0x39e)](0xcd)&&!_0x4cd4ae[_0x46f3d2(0x22b6)](_0x46f3d2(0x1c60));}}),_0x1f70ab['saveItem'](_0x307198(0xbc8),{'id':0x12c,'title':_0x307198(0x953),'translate':_0x307198(0x1987),'icon':_0x307198(0xdd9),'weight':0x4,'license':'cm','hidden':function(){const _0x4425e3=_0x307198;return!_0x4c1a68['cm']||_0x4cd4ae[_0x4425e3(0x22b6)](_0x4425e3(0x1eff))||!_0x4cd4ae['hasChildrenPermissions'](_0x2165f1(this))&&!_0x4cd4ae[_0x4425e3(0x22b6)]('admin');}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0xc25),{'id':0x12d,'title':_0x307198(0x191f),'route':_0x307198(0x22f2),'translate':_0x307198(0x113a),'state':'app.contactmanager.lists','weight':0x2,'hidden':function(){const _0x313d39=_0x307198;return _0x4cd4ae[_0x313d39(0x22b6)](_0x313d39(0x1eff))||!_0x4cd4ae[_0x313d39(0x39e)](0x12d)&&!_0x4cd4ae['hasRole']('admin');}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x597),{'id':0x12e,'title':_0x307198(0x963),'route':_0x307198(0x107a),'translate':_0x307198(0x93f),'state':_0x307198(0x26f8),'weight':0x3,'hidden':function(){const _0x5e2157=_0x307198;return _0x4cd4ae[_0x5e2157(0x22b6)](_0x5e2157(0x1eff))||!_0x4cd4ae['hasPermission'](0x12e)&&!_0x4cd4ae[_0x5e2157(0x22b6)](_0x5e2157(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x198),{'id':0x130,'title':'GlobalCustomFields','route':_0x307198(0xc36),'translate':_0x307198(0xa2f),'state':_0x307198(0x269),'weight':0x4,'permissions':{'association':![]},'hidden':function(){const _0x110e7d=_0x307198;return _0x4cd4ae[_0x110e7d(0x22b6)](_0x110e7d(0x1eff))||!_0x4cd4ae[_0x110e7d(0x39e)](0x130)&&!_0x4cd4ae[_0x110e7d(0x22b6)](_0x110e7d(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x6e6),{'id':0x12f,'title':_0x307198(0x20a4),'route':'','translate':_0x307198(0x23e4),'state':_0x307198(0x27ff),'weight':0x1,'permissions':{'association':![]},'hidden':function(){const _0x5a9a2a=_0x307198;return _0x4cd4ae[_0x5a9a2a(0x22b6)](_0x5a9a2a(0x1eff))||!_0x4cd4ae[_0x5a9a2a(0x39e)](0x12f)&&!_0x4cd4ae['hasRole'](_0x5a9a2a(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x2721),{'id':0x190,'title':_0x307198(0x165),'translate':'VOICE.VOICE','icon':_0x307198(0x412),'weight':0x5,'license':_0x307198(0x1fd4),'hidden':function(){const _0x33cf3f=_0x307198;return!_0x4c1a68[_0x33cf3f(0x1fd4)]||_0x4cd4ae['hasRole']('agent')||!_0x4cd4ae['hasChildrenPermissions'](_0x2165f1(this))&&!_0x4cd4ae['hasRole'](_0x33cf3f(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x1419),{'id':0x191,'title':'VoiceQueues','route':_0x307198(0x26b3),'translate':_0x307198(0x1c6a),'state':_0x307198(0x12a6),'weight':0x1,'channel':_0x307198(0x1fd4),'hidden':function(){const _0x69114e=_0x307198;return _0x4cd4ae[_0x69114e(0x22b6)](_0x69114e(0x1eff))||!_0x4cd4ae['hasPermission'](0x191)&&!_0x4cd4ae[_0x69114e(0x22b6)](_0x69114e(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0xa38),{'id':0x192,'title':_0x307198(0x23e2),'route':_0x307198(0x1059),'translate':_0x307198(0xd0b),'state':_0x307198(0x1802),'weight':0x1,'hidden':function(){const _0x77db00=_0x307198;return _0x4cd4ae[_0x77db00(0x22b6)](_0x77db00(0x1eff))||!_0x4cd4ae[_0x77db00(0x39e)](0x192)&&!_0x4cd4ae['hasRole']('admin');}}),_0x1f70ab[_0x307198(0x1a78)]('apps.voice.outboundroutes',{'id':0x193,'title':_0x307198(0x257c),'route':_0x307198(0x1059),'translate':'VOICE.OUTBOUNDROUTES','state':_0x307198(0x2143),'weight':0x1,'hidden':function(){const _0x24b42c=_0x307198;return _0x4cd4ae[_0x24b42c(0x22b6)](_0x24b42c(0x1eff))||!_0x4cd4ae['hasPermission'](0x193)&&!_0x4cd4ae[_0x24b42c(0x22b6)](_0x24b42c(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x2150),{'id':0x194,'title':'InternalRoutes','route':'voiceExtension','translate':'VOICE.INTERNALROUTES','state':_0x307198(0x525),'weight':0x1,'hidden':function(){const _0xb9c31e=_0x307198;return _0x4cd4ae['hasRole'](_0xb9c31e(0x1eff))||!_0x4cd4ae[_0xb9c31e(0x39e)](0x194)&&!_0x4cd4ae[_0xb9c31e(0x22b6)](_0xb9c31e(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x1b1d),{'id':0x195,'title':_0x307198(0x208a),'route':_0x307198(0x1da5),'translate':_0x307198(0x2974),'state':'app.voice.contexts','weight':0x1,'hidden':function(){const _0x134ae6=_0x307198;return _0x4cd4ae[_0x134ae6(0x22b6)](_0x134ae6(0x1eff))||!_0x4cd4ae[_0x134ae6(0x39e)](0x195)&&!_0x4cd4ae[_0x134ae6(0x22b6)](_0x134ae6(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x244a),{'id':0x196,'title':_0x307198(0x317),'route':'voiceMail','translate':'VOICE.VOICEMAILS','state':'app.voice.voicemails','weight':0x1,'hidden':function(){const _0x131ba8=_0x307198;return _0x4cd4ae[_0x131ba8(0x22b6)](_0x131ba8(0x1eff))||!_0x4cd4ae[_0x131ba8(0x39e)](0x196)&&!_0x4cd4ae[_0x131ba8(0x22b6)]('admin');}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x16b2),{'id':0x197,'title':_0x307198(0x22ab),'route':'voiceMusicOnHold','translate':_0x307198(0x42b),'state':'app.voice.musiconholds','weight':0x1,'hidden':function(){const _0x3e0531=_0x307198;return _0x4cd4ae[_0x3e0531(0x22b6)](_0x3e0531(0x1eff))||!_0x4cd4ae[_0x3e0531(0x39e)](0x197)&&!_0x4cd4ae[_0x3e0531(0x22b6)](_0x3e0531(0x1c60));}}),_0x1f70ab['saveItem'](_0x307198(0x1ff6),{'id':0x198,'title':_0x307198(0x2ce),'route':_0x307198(0x23d1),'translate':_0x307198(0x38f),'state':_0x307198(0x1b39),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x5e4c60=_0x307198;return _0x4cd4ae[_0x5e4c60(0x22b6)]('agent')||!_0x4cd4ae[_0x5e4c60(0x39e)](0x198)&&!_0x4cd4ae[_0x5e4c60(0x22b6)](_0x5e4c60(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)]('apps.voice.chanSpies',{'id':0x199,'title':_0x307198(0x10c9),'route':'voiceChanSpy','translate':_0x307198(0xe06),'state':'app.voice.chanSpies','weight':0x1,'hidden':function(){const _0x5cc422=_0x307198;return _0x4cd4ae['hasRole'](_0x5cc422(0x1eff))||!_0x4cd4ae[_0x5cc422(0x39e)](0x199)&&!_0x4cd4ae[_0x5cc422(0x22b6)]('admin');}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0xd3a),{'id':0x19a,'title':_0x307198(0x111b),'route':_0x307198(0x152c),'translate':_0x307198(0x1694),'state':_0x307198(0x1db0),'weight':0x1,'hidden':function(){const _0x18dc86=_0x307198;return _0x4cd4ae[_0x18dc86(0x22b6)](_0x18dc86(0x1eff))||!_0x4cd4ae[_0x18dc86(0x39e)](0x19a)&&!_0x4cd4ae[_0x18dc86(0x22b6)](_0x18dc86(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x276c),{'id':0x19b,'title':'Realtime','route':'','translate':_0x307198(0x182a),'state':_0x307198(0xb19),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x58a77f=_0x307198;return _0x4cd4ae[_0x58a77f(0x22b6)]('agent')||!_0x4cd4ae[_0x58a77f(0x39e)](0x19b)&&!_0x4cd4ae['hasRole']('admin');}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x262),{'id':0x1f4,'title':_0x307198(0x1394),'translate':_0x307198(0x268b),'icon':_0x307198(0x2181),'weight':0x6,'license':_0x307198(0x174c),'hidden':function(){const _0x1fbb26=_0x307198;return!_0x4c1a68[_0x1fbb26(0x174c)]||_0x4cd4ae[_0x1fbb26(0x22b6)](_0x1fbb26(0x1eff))||!_0x4cd4ae['hasChildrenPermissions'](_0x2165f1(this))&&!_0x4cd4ae['hasRole'](_0x1fbb26(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x205e),{'id':0x1f5,'title':_0x307198(0x23a4),'route':'chatQueue','translate':_0x307198(0x1d1b),'state':_0x307198(0x1c96),'weight':0x1,'channel':_0x307198(0x174c),'hidden':function(){const _0x2e14a4=_0x307198;return _0x4cd4ae[_0x2e14a4(0x22b6)]('agent')||!_0x4cd4ae[_0x2e14a4(0x39e)](0x1f5)&&!_0x4cd4ae[_0x2e14a4(0x22b6)](_0x2e14a4(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x1b49),{'id':0x1f6,'title':_0x307198(0x1c4a),'route':_0x307198(0x226c),'translate':_0x307198(0xa25),'state':_0x307198(0x6ba),'weight':0x1,'channel':_0x307198(0x174c),'hidden':function(){const _0x344829=_0x307198;return _0x4cd4ae[_0x344829(0x22b6)](_0x344829(0x1eff))||!_0x4cd4ae[_0x344829(0x39e)](0x1f6)&&!_0x4cd4ae['hasRole']('admin');}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x78e),{'id':0x1fe,'title':'Realtime','route':'','translate':_0x307198(0x234d),'state':_0x307198(0x2468),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x3719a6=_0x307198;return _0x4cd4ae[_0x3719a6(0x22b6)](_0x3719a6(0x1eff))||!_0x4cd4ae[_0x3719a6(0x39e)](0x1fe)&&!_0x4cd4ae['hasRole']('admin');}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0xfb5),{'id':0x258,'title':'Mail','translate':_0x307198(0x1ad5),'icon':_0x307198(0xfbd),'weight':0x7,'license':_0x307198(0x2651),'hidden':function(){const _0x5798ee=_0x307198;return!_0x4c1a68[_0x5798ee(0x2651)]||_0x4cd4ae[_0x5798ee(0x22b6)]('agent')||!_0x4cd4ae['hasChildrenPermissions'](_0x2165f1(this))&&!_0x4cd4ae[_0x5798ee(0x22b6)]('admin');}}),_0x1f70ab['saveItem']('apps.mail.mailQueues',{'id':0x259,'title':_0x307198(0x25fc),'route':'mailQueue','translate':_0x307198(0x4c9),'state':_0x307198(0x1f17),'weight':0x1,'channel':_0x307198(0x2651),'hidden':function(){const _0x2b56d5=_0x307198;return _0x4cd4ae[_0x2b56d5(0x22b6)](_0x2b56d5(0x1eff))||!_0x4cd4ae[_0x2b56d5(0x39e)](0x259)&&!_0x4cd4ae[_0x2b56d5(0x22b6)](_0x2b56d5(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x2537),{'id':0x25a,'title':'MailAccounts','route':'mailAccount','translate':_0x307198(0x1479),'state':_0x307198(0x226d),'weight':0x1,'channel':_0x307198(0x2651),'hidden':function(){const _0x57c55e=_0x307198;return _0x4cd4ae[_0x57c55e(0x22b6)](_0x57c55e(0x1eff))||!_0x4cd4ae[_0x57c55e(0x39e)](0x25a)&&!_0x4cd4ae[_0x57c55e(0x22b6)](_0x57c55e(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)]('apps.mail.mailSubtatuses',{'id':0x25b,'title':_0x307198(0x1629),'route':'mailSubstatus','translate':_0x307198(0x1eb),'state':'app.mail.mailSubtatuses','weight':0x1,'channel':_0x307198(0x2651),'permissions':{'association':![]},'hidden':function(){const _0x1ad35b=_0x307198;return _0x4cd4ae['hasRole'](_0x1ad35b(0x1eff))||!_0x4cd4ae[_0x1ad35b(0x39e)](0x25b)&&!_0x4cd4ae[_0x1ad35b(0x22b6)](_0x1ad35b(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x28c1),{'id':0x262,'title':_0x307198(0x15aa),'route':'','translate':_0x307198(0xc02),'state':_0x307198(0x4e3),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x189723=_0x307198;return _0x4cd4ae[_0x189723(0x22b6)](_0x189723(0x1eff))||!_0x4cd4ae['hasPermission'](0x262)&&!_0x4cd4ae[_0x189723(0x22b6)](_0x189723(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x1663),{'id':0x2bc,'title':_0x307198(0x1a6a),'translate':_0x307198(0x8db),'icon':_0x307198(0x1cce),'weight':0x8,'license':'messaging','hidden':function(){const _0x296967=_0x307198;return!_0x4c1a68[_0x296967(0x1e48)]||_0x4cd4ae[_0x296967(0x22b6)](_0x296967(0x1eff))||!_0x4cd4ae[_0x296967(0x1e7b)](_0x2165f1(this))&&!_0x4cd4ae[_0x296967(0x22b6)](_0x296967(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0xcdb),{'id':0x2bd,'title':'SmsQueues','route':_0x307198(0x62e),'translate':_0x307198(0x28a1),'state':_0x307198(0xb02),'weight':0x1,'channel':_0x307198(0x689),'hidden':function(){const _0x5840a7=_0x307198;return _0x4cd4ae[_0x5840a7(0x22b6)](_0x5840a7(0x1eff))||!_0x4cd4ae[_0x5840a7(0x39e)](0x2bd)&&!_0x4cd4ae[_0x5840a7(0x22b6)](_0x5840a7(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)]('apps.sms.smsAccounts',{'id':0x2be,'title':_0x307198(0x1b3f),'route':_0x307198(0x658),'translate':_0x307198(0x22ee),'state':_0x307198(0xa9f),'weight':0x1,'channel':_0x307198(0x689),'hidden':function(){const _0x1c720e=_0x307198;return _0x4cd4ae[_0x1c720e(0x22b6)](_0x1c720e(0x1eff))||!_0x4cd4ae[_0x1c720e(0x39e)](0x2be)&&!_0x4cd4ae[_0x1c720e(0x22b6)](_0x1c720e(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0xe74),{'id':0x2c6,'title':_0x307198(0x15aa),'route':'','translate':_0x307198(0x1db6),'state':'app.sms.realtime','weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x55aa5e=_0x307198;return _0x4cd4ae[_0x55aa5e(0x22b6)](_0x55aa5e(0x1eff))||!_0x4cd4ae[_0x55aa5e(0x39e)](0x2c6)&&!_0x4cd4ae[_0x55aa5e(0x22b6)](_0x55aa5e(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)]('apps.openchannel',{'id':0x320,'title':'Openchannel','translate':'OPENCHANNEL.OPENCHANNEL','icon':_0x307198(0x694),'weight':0x9,'license':_0x307198(0x15e0),'hidden':function(){const _0x462880=_0x307198;return!_0x4c1a68[_0x462880(0x15e0)]||_0x4cd4ae[_0x462880(0x22b6)]('agent')||!_0x4cd4ae[_0x462880(0x1e7b)](_0x2165f1(this))&&!_0x4cd4ae['hasRole']('admin');}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x11e1),{'id':0x321,'title':_0x307198(0x1765),'route':_0x307198(0x3a9),'translate':_0x307198(0x2da),'state':'app.openchannel.openchannelQueues','weight':0x1,'channel':_0x307198(0x246d),'hidden':function(){const _0x5c0b46=_0x307198;return _0x4cd4ae[_0x5c0b46(0x22b6)](_0x5c0b46(0x1eff))||!_0x4cd4ae['hasPermission'](0x321)&&!_0x4cd4ae[_0x5c0b46(0x22b6)]('admin');}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x311),{'id':0x322,'title':_0x307198(0x1864),'route':_0x307198(0x80e),'translate':_0x307198(0x1aa0),'state':'app.openchannel.openchannelAccounts','weight':0x1,'channel':_0x307198(0x246d),'hidden':function(){const _0x5aa860=_0x307198;return _0x4cd4ae[_0x5aa860(0x22b6)](_0x5aa860(0x1eff))||!_0x4cd4ae[_0x5aa860(0x39e)](0x322)&&!_0x4cd4ae[_0x5aa860(0x22b6)](_0x5aa860(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x100a),{'id':0x32a,'title':'Realtime','route':'','translate':'OPENCHANNEL.REALTIME','state':_0x307198(0x19f9),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x362476=_0x307198;return _0x4cd4ae[_0x362476(0x22b6)](_0x362476(0x1eff))||!_0x4cd4ae[_0x362476(0x39e)](0x32a)&&!_0x4cd4ae[_0x362476(0x22b6)](_0x362476(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0xbdd),{'id':0x384,'title':_0x307198(0x1985),'translate':_0x307198(0xb0f),'icon':_0x307198(0x16d3),'weight':0xa,'license':_0x307198(0x1944),'hidden':function(){const _0x237587=_0x307198;return!_0x4c1a68[_0x237587(0x1944)]||_0x4cd4ae[_0x237587(0x22b6)](_0x237587(0x1eff))||!_0x4cd4ae[_0x237587(0x1e7b)](_0x2165f1(this))&&!_0x4cd4ae['hasRole'](_0x237587(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x1485),{'id':0x385,'title':'FaxQueues','route':_0x307198(0x54d),'translate':_0x307198(0x1d6b),'state':'app.fax.faxQueues','weight':0x1,'channel':'fax','hidden':function(){const _0x195d72=_0x307198;return _0x4cd4ae[_0x195d72(0x22b6)](_0x195d72(0x1eff))||!_0x4cd4ae['hasPermission'](0x385)&&!_0x4cd4ae[_0x195d72(0x22b6)](_0x195d72(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)]('apps.fax.faxAccounts',{'id':0x386,'title':_0x307198(0x1ffe),'route':'faxAccount','translate':_0x307198(0x5de),'state':_0x307198(0x2808),'weight':0x1,'channel':_0x307198(0x1944),'hidden':function(){const _0x47f7f2=_0x307198;return _0x4cd4ae[_0x47f7f2(0x22b6)](_0x47f7f2(0x1eff))||!_0x4cd4ae['hasPermission'](0x386)&&!_0x4cd4ae[_0x47f7f2(0x22b6)]('admin');}}),_0x1f70ab['saveItem'](_0x307198(0x51e),{'id':0x38e,'title':'Realtime','route':'','translate':_0x307198(0x9b7),'state':'app.fax.realtime','weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x4087a4=_0x307198;return _0x4cd4ae['hasRole'](_0x4087a4(0x1eff))||!_0x4cd4ae[_0x4087a4(0x39e)](0x38e)&&!_0x4cd4ae[_0x4087a4(0x22b6)]('admin');}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x1f05),{'id':0x3e8,'title':_0x307198(0x89a),'translate':'TOOLS.TOOLS','icon':'icon-auto-fix','weight':0xf,'hidden':function(){const _0x3ffc01=_0x307198;return _0x4cd4ae[_0x3ffc01(0x22b6)](_0x3ffc01(0x1eff))||!_0x4cd4ae[_0x3ffc01(0x1e7b)](_0x2165f1(this))&&!_0x4cd4ae['hasRole'](_0x3ffc01(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x16fa),{'id':0x3e9,'title':_0x307198(0x825),'route':_0x307198(0x1c25),'translate':_0x307198(0x27d6),'state':_0x307198(0x9f7),'weight':0x1,'hidden':function(){const _0x4727b8=_0x307198;return _0x4cd4ae[_0x4727b8(0x22b6)]('agent')||!_0x4cd4ae[_0x4727b8(0x39e)](0x3e9)&&!_0x4cd4ae[_0x4727b8(0x22b6)]('admin');}}),_0x1f70ab['saveItem'](_0x307198(0xa87),{'id':0x3eb,'title':'CustomDashboards','route':_0x307198(0x1312),'translate':_0x307198(0xacc),'state':_0x307198(0x1185),'weight':0x3,'hidden':function(){const _0x58329a=_0x307198;return _0x4cd4ae[_0x58329a(0x22b6)](_0x58329a(0x1eff))||!_0x4cd4ae[_0x58329a(0x39e)](0x3eb)&&!_0x4cd4ae[_0x58329a(0x22b6)](_0x58329a(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x1c63),{'id':0x3ec,'title':'Intervals','route':'interval','translate':'TOOLS.INTERVALS','state':_0x307198(0x115e),'weight':0x4,'hidden':function(){const _0xdbac4b=_0x307198;return _0x4cd4ae[_0xdbac4b(0x22b6)]('agent')||!_0x4cd4ae[_0xdbac4b(0x39e)](0x3ec)&&!_0x4cd4ae[_0xdbac4b(0x22b6)](_0xdbac4b(0x1c60));}}),_0x1f70ab['saveItem'](_0x307198(0x95d),{'id':0x3ed,'title':_0x307198(0x15f1),'route':_0x307198(0x785),'translate':_0x307198(0x2567),'state':_0x307198(0x3e0),'weight':0x5,'hidden':function(){const _0x7ac78a=_0x307198;return _0x4cd4ae[_0x7ac78a(0x22b6)]('agent')||!_0x4cd4ae[_0x7ac78a(0x39e)](0x3ed)&&!_0x4cd4ae['hasRole'](_0x7ac78a(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x2466),{'id':0x3ee,'title':_0x307198(0x1441),'route':_0x307198(0x263c),'translate':_0x307198(0x86a),'state':'app.tools.schedules','weight':0x6,'hidden':function(){const _0x2632bc=_0x307198;return _0x4cd4ae['hasRole'](_0x2632bc(0x1eff))||!_0x4cd4ae[_0x2632bc(0x39e)](0x3ee)&&!_0x4cd4ae[_0x2632bc(0x22b6)]('admin');}}),_0x1f70ab['saveItem'](_0x307198(0x101a),{'id':0x3ef,'title':_0x307198(0x19f5),'route':'sound','translate':_0x307198(0x1d51),'state':'app.tools.sounds','weight':0x7,'hidden':function(){const _0x246fef=_0x307198;return _0x4cd4ae['hasRole'](_0x246fef(0x1eff))||!_0x4cd4ae[_0x246fef(0x39e)](0x3ef)&&!_0x4cd4ae['hasRole'](_0x246fef(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x25ee),{'id':0x3f0,'title':_0x307198(0x190),'route':_0x307198(0x22b1),'translate':_0x307198(0x209c),'state':_0x307198(0x168f),'weight':0x8,'hidden':function(){const _0x23075c=_0x307198;return _0x4cd4ae['hasRole'](_0x23075c(0x1eff))||!_0x4cd4ae[_0x23075c(0x39e)](0x3f0)&&!_0x4cd4ae[_0x23075c(0x22b6)](_0x23075c(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)]('apps.tools.templates',{'id':0x3f1,'title':_0x307198(0x2195),'route':_0x307198(0x2330),'translate':_0x307198(0x13c5),'state':_0x307198(0x589),'weight':0x9,'hidden':function(){const _0x43bcbb=_0x307198;return _0x4cd4ae['hasRole'](_0x43bcbb(0x1eff))||!_0x4cd4ae[_0x43bcbb(0x39e)](0x3f1)&&!_0x4cd4ae[_0x43bcbb(0x22b6)](_0x43bcbb(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)]('apps.tools.trunks',{'id':0x3f3,'title':_0x307198(0x272b),'route':'trunk','translate':_0x307198(0xcc4),'state':_0x307198(0x2211),'weight':0xb,'hidden':function(){const _0x1970ac=_0x307198;return _0x4cd4ae[_0x1970ac(0x22b6)]('agent')||!_0x4cd4ae[_0x1970ac(0x39e)](0x3f3)&&!_0x4cd4ae[_0x1970ac(0x22b6)](_0x1970ac(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)]('apps.tools.variables',{'id':0x3f4,'title':'Variables','route':_0x307198(0x1822),'translate':'TOOLS.VARIABLES','state':_0x307198(0x9c8),'weight':0xc,'hidden':function(){const _0x15e0df=_0x307198;return _0x4cd4ae[_0x15e0df(0x22b6)]('agent')||!_0x4cd4ae['hasPermission'](0x3f4)&&!_0x4cd4ae['hasRole'](_0x15e0df(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x18f9),{'id':0x3ea,'title':_0x307198(0x5d1),'route':_0x307198(0x1746),'translate':_0x307198(0x1925),'state':_0x307198(0x8b4),'weight':0x2,'hidden':function(){const _0x2f5412=_0x307198;return _0x4cd4ae[_0x2f5412(0x22b6)](_0x2f5412(0x1eff))||!_0x4cd4ae[_0x2f5412(0x39e)](0x3ea)&&!_0x4cd4ae[_0x2f5412(0x22b6)](_0x2f5412(0x1c60));}}),_0x1f70ab['saveItem'](_0x307198(0x2367),{'id':0x3f2,'title':_0x307198(0x19c1),'route':'','translate':_0x307198(0x1e26),'state':'app.tools.triggers','weight':0xa,'hidden':function(){const _0x5632b9=_0x307198;return _0x4cd4ae[_0x5632b9(0x22b6)](_0x5632b9(0x1eff))||!_0x4cd4ae[_0x5632b9(0x39e)](0x3f2)&&!_0x4cd4ae['hasRole'](_0x5632b9(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)]('apps.callysquare',{'id':0x44c,'title':_0x307198(0x1ff3),'translate':_0x307198(0x61b),'icon':_0x307198(0x18cf),'weight':0xd,'license':_0x307198(0x1fd4),'hidden':function(){const _0x1cf5d7=_0x307198;return!_0x4c1a68[_0x1cf5d7(0x1fd4)]||_0x4cd4ae[_0x1cf5d7(0x22b6)]('agent')||!_0x4cd4ae[_0x1cf5d7(0x1e7b)](_0x2165f1(this))&&!_0x4cd4ae[_0x1cf5d7(0x22b6)](_0x1cf5d7(0x1c60));}}),_0x1f70ab['saveItem']('apps.callysquare.odbcs',{'id':0x44d,'title':_0x307198(0x2fa),'route':_0x307198(0xd7f),'translate':_0x307198(0x1c55),'state':_0x307198(0x13d5),'weight':0x2,'hidden':function(){const _0xc6c7ea=_0x307198;return _0x4cd4ae[_0xc6c7ea(0x22b6)](_0xc6c7ea(0x1eff))||!_0x4cd4ae[_0xc6c7ea(0x39e)](0x44d)&&!_0x4cd4ae[_0xc6c7ea(0x22b6)]('admin');}}),_0x1f70ab['saveItem'](_0x307198(0x253a),{'id':0x44e,'title':_0x307198(0x1376),'route':_0x307198(0x562),'translate':_0x307198(0x151b),'state':_0x307198(0x29a5),'weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x858ab2=_0x307198;return _0x4cd4ae[_0x858ab2(0x22b6)](_0x858ab2(0x1eff))||!_0x4cd4ae['hasPermission'](0x44e)&&!_0x4cd4ae['hasRole'](_0x858ab2(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x1ee7),{'id':0x44f,'title':_0x307198(0x871),'route':_0x307198(0xf61),'translate':_0x307198(0x3b4),'state':'app.callysquare.projects','weight':0x1,'hidden':function(){const _0x3500a7=_0x307198;return _0x4cd4ae[_0x3500a7(0x22b6)](_0x3500a7(0x1eff))||!_0x4cd4ae['hasPermission'](0x44f)&&!_0x4cd4ae['hasRole']('admin');}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0xc7c),{'id':0x4b0,'title':'Analytics','translate':'ANALYTICS.ANALYTICS','icon':_0x307198(0x15a5),'weight':0x10,'hidden':function(){const _0x1e5dc3=_0x307198;return _0x4cd4ae[_0x1e5dc3(0x22b6)](_0x1e5dc3(0x1eff))||!_0x4cd4ae[_0x1e5dc3(0x1e7b)](_0x2165f1(this))&&!_0x4cd4ae[_0x1e5dc3(0x22b6)]('admin');}}),_0x1f70ab['saveItem'](_0x307198(0x204b),{'id':0x4b1,'title':_0x307198(0x2019),'route':'analyticMetric','translate':_0x307198(0x27b7),'state':_0x307198(0x16d0),'weight':0x3,'hidden':function(){const _0x329dab=_0x307198;return _0x4cd4ae[_0x329dab(0x22b6)](_0x329dab(0x1eff))||!_0x4cd4ae[_0x329dab(0x39e)](0x4b1)&&!_0x4cd4ae[_0x329dab(0x22b6)](_0x329dab(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x1bdc),{'id':0x4b2,'title':_0x307198(0x23ca),'route':'analyticExtractedReport','translate':_0x307198(0x1f89),'state':_0x307198(0x1a65),'weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x31b749=_0x307198;return _0x4cd4ae[_0x31b749(0x22b6)](_0x31b749(0x1eff))||!_0x4cd4ae[_0x31b749(0x39e)](0x4b2)&&!_0x4cd4ae['hasRole'](_0x31b749(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x1fa4),{'id':0x4b3,'title':'Reports','route':'','translate':_0x307198(0x489),'state':'app.analytics.reports','weight':0x1,'hidden':function(){const _0x186674=_0x307198;return _0x4cd4ae[_0x186674(0x22b6)]('agent')||!_0x4cd4ae[_0x186674(0x39e)](0x4b3)&&!_0x4cd4ae[_0x186674(0x22b6)]('admin');}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x12d4),{'id':0x514,'title':'Integrations','translate':_0x307198(0x1060),'icon':_0x307198(0x2250),'weight':0x11,'hidden':function(){const _0x3f0cfb=_0x307198;return _0x4cd4ae['hasRole'](_0x3f0cfb(0x1eff))||!_0x4cd4ae[_0x3f0cfb(0x1e7b)](_0x2165f1(this))&&!_0x4cd4ae['hasRole'](_0x3f0cfb(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)]('apps.integrations.zendeskAccounts',{'id':0x515,'title':'ZendeskAccounts','route':'intZendeskAccount','translate':_0x307198(0x21e3),'state':_0x307198(0x1eab),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x135829=_0x307198;return _0x4cd4ae[_0x135829(0x22b6)](_0x135829(0x1eff))||!_0x4cd4ae['hasPermission'](0x515)&&!_0x4cd4ae[_0x135829(0x22b6)](_0x135829(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0xcdf),{'id':0x516,'title':_0x307198(0x9a5),'route':_0x307198(0x1186),'translate':_0x307198(0x2622),'state':_0x307198(0x25f7),'weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x4422ee=_0x307198;return _0x4cd4ae[_0x4422ee(0x22b6)](_0x4422ee(0x1eff))||!_0x4cd4ae[_0x4422ee(0x39e)](0x516)&&!_0x4cd4ae[_0x4422ee(0x22b6)](_0x4422ee(0x1c60));}}),_0x1f70ab['saveItem'](_0x307198(0x3fc),{'id':0x517,'title':_0x307198(0x7f7),'route':_0x307198(0x2317),'translate':_0x307198(0x2202),'state':_0x307198(0x905),'weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x5f18b3=_0x307198;return _0x4cd4ae[_0x5f18b3(0x22b6)](_0x5f18b3(0x1eff))||!_0x4cd4ae['hasPermission'](0x517)&&!_0x4cd4ae[_0x5f18b3(0x22b6)](_0x5f18b3(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)]('apps.integrations.sugarcrmAccounts',{'id':0x519,'title':'SugarcrmAccounts','route':_0x307198(0x3fa),'translate':_0x307198(0x271d),'state':_0x307198(0x185e),'weight':0x4,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x3c5267=_0x307198;return _0x4cd4ae[_0x3c5267(0x22b6)](_0x3c5267(0x1eff))||!_0x4cd4ae[_0x3c5267(0x39e)](0x519)&&!_0x4cd4ae[_0x3c5267(0x22b6)]('admin');}}),_0x1f70ab[_0x307198(0x1a78)]('apps.integrations.deskAccounts',{'id':0x51a,'title':_0x307198(0x937),'route':'intDeskAccount','translate':'INTEGRATIONS.DESKACCOUNTS','state':'app.integrations.deskAccounts','weight':0x5,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x40f9d5=_0x307198;return _0x4cd4ae[_0x40f9d5(0x22b6)](_0x40f9d5(0x1eff))||!_0x4cd4ae[_0x40f9d5(0x39e)](0x51a)&&!_0x4cd4ae[_0x40f9d5(0x22b6)](_0x40f9d5(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x293f),{'id':0x51b,'title':_0x307198(0x282b),'route':_0x307198(0xdb4),'translate':'INTEGRATIONS.ZOHOACCOUNTS','state':'app.integrations.zohoAccounts','weight':0x6,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0xe349ea=_0x307198;return _0x4cd4ae['hasRole']('agent')||!_0x4cd4ae[_0xe349ea(0x39e)](0x51b)&&!_0x4cd4ae[_0xe349ea(0x22b6)](_0xe349ea(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x1148),{'id':0x51c,'title':_0x307198(0x1bcd),'route':'intVtigerAccount','translate':_0x307198(0x2625),'state':_0x307198(0x2339),'weight':0x7,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0xa2710e=_0x307198;return _0x4cd4ae[_0xa2710e(0x22b6)](_0xa2710e(0x1eff))||!_0x4cd4ae['hasPermission'](0x51c)&&!_0x4cd4ae[_0xa2710e(0x22b6)](_0xa2710e(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)]('apps.integrations.dynamics365Accounts',{'id':0x51d,'title':_0x307198(0x88e),'route':'intDynamics365Account','translate':_0x307198(0x28b1),'state':_0x307198(0x1f3e),'weight':0x8,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x40c7f5=_0x307198;return _0x4cd4ae['hasRole'](_0x40c7f5(0x1eff))||!_0x4cd4ae[_0x40c7f5(0x39e)](0x51d)&&!_0x4cd4ae[_0x40c7f5(0x22b6)](_0x40c7f5(0x1c60));}}),_0x1f70ab['saveItem'](_0x307198(0x1675),{'id':0x51e,'title':_0x307198(0x340),'route':_0x307198(0x901),'translate':_0x307198(0x283b),'state':_0x307198(0xc85),'weight':0x9,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x4e3d1e=_0x307198;return _0x4cd4ae['hasRole'](_0x4e3d1e(0x1eff))||!_0x4cd4ae[_0x4e3d1e(0x39e)](0x51e)&&!_0x4cd4ae[_0x4e3d1e(0x22b6)](_0x4e3d1e(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x2608),{'id':0x518,'title':'FreshsalesAccounts','route':_0x307198(0xc8a),'translate':_0x307198(0x1d32),'state':_0x307198(0x1ffa),'weight':0xa,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0xb363fb=_0x307198;return _0x4cd4ae['hasRole']('agent')||!_0x4cd4ae[_0xb363fb(0x39e)](0x518)&&!_0x4cd4ae[_0xb363fb(0x22b6)](_0xb363fb(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x1493),{'id':0x578,'title':'Settings','translate':_0x307198(0xf48),'icon':'icon-cog','weight':0x14,'permissions':{'hidden':!![]},'hidden':function(){const _0x1ad7f5=_0x307198;return _0x4cd4ae[_0x1ad7f5(0x22b6)](_0x1ad7f5(0x1eff))||!_0x4cd4ae[_0x1ad7f5(0x39e)](0x578)&&!_0x4cd4ae[_0x1ad7f5(0x22b6)](_0x1ad7f5(0x1c60))||_0x4cd4ae[_0x1ad7f5(0x22b6)](_0x1ad7f5(0x1c60))&&!_0x4cd4ae[_0x1ad7f5(0x21e8)]()['settingsEnabled'];}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x16f8),{'id':0x579,'title':_0x307198(0x13c7),'route':_0x307198(0x9ca),'translate':_0x307198(0x21d6),'state':_0x307198(0x11eb),'weight':0x1,'hidden':function(){const _0x410769=_0x307198;return _0x4cd4ae[_0x410769(0x22b6)](_0x410769(0x1eff))||!_0x4cd4ae[_0x410769(0x39e)](0x578)&&!_0x4cd4ae[_0x410769(0x22b6)](_0x410769(0x1c60));}}),_0x1f70ab['saveItem'](_0x307198(0x8dc),{'id':0x57a,'title':_0x307198(0x2482),'route':_0x307198(0x131c),'translate':_0x307198(0x2305),'state':_0x307198(0x10bc),'weight':0x1,'hidden':function(){const _0xb218a=_0x307198;return _0x4cd4ae[_0xb218a(0x22b6)](_0xb218a(0x1eff))||!_0x4cd4ae[_0xb218a(0x39e)](0x578)&&!_0x4cd4ae[_0xb218a(0x22b6)](_0xb218a(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x232a),{'id':0x57b,'title':_0x307198(0x22af),'route':_0x307198(0x21cc),'translate':_0x307198(0x1b66),'state':_0x307198(0x2906),'weight':0x1,'hidden':function(){const _0x5488f8=_0x307198;return _0x4cd4ae['hasRole'](_0x5488f8(0x1eff))||!_0x4cd4ae['hasPermission'](0x578)&&!_0x4cd4ae[_0x5488f8(0x22b6)](_0x5488f8(0x1c60));}}),_0x1f70ab['saveItem']('apps.settings.customizations',{'id':0x57f,'title':_0x307198(0x1053),'route':_0x307198(0x9ca),'translate':_0x307198(0x298f),'state':_0x307198(0x1412),'weight':0x1,'hidden':function(){const _0x2a108f=_0x307198;return!_0x4c1a68[_0x2a108f(0x197c)]||_0x4cd4ae[_0x2a108f(0x22b6)]('agent')||!_0x4cd4ae[_0x2a108f(0x39e)](0x578)&&!_0x4cd4ae[_0x2a108f(0x22b6)]('admin');}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x299c),{'id':0x580,'title':_0x307198(0x625),'route':_0x307198(0x1f41),'translate':_0x307198(0x1e51),'state':_0x307198(0x1c0),'weight':0x1,'hidden':function(){const _0x1df552=_0x307198;return!_0x4c1a68['ai']||_0x4cd4ae[_0x1df552(0x22b6)](_0x1df552(0x1eff))||!_0x4cd4ae[_0x1df552(0x39e)](0x578)&&!_0x4cd4ae[_0x1df552(0x22b6)](_0x1df552(0x1c60));}}),_0x1f70ab['saveItem'](_0x307198(0x15b0),{'id':0x57c,'title':_0x307198(0x6a8),'route':'','translate':_0x307198(0x1937),'state':_0x307198(0x1ce2),'weight':0x1,'hidden':function(){const _0x543095=_0x307198;return!_0x4c1a68[_0x543095(0x687)]||_0x4cd4ae[_0x543095(0x22b6)](_0x543095(0x1eff))||!_0x4cd4ae[_0x543095(0x39e)](0x578)&&!_0x4cd4ae[_0x543095(0x22b6)](_0x543095(0x1c60));}}),_0x1f70ab['saveItem'](_0x307198(0x672),{'id':0x57d,'title':_0x307198(0x1ace),'route':'','translate':_0x307198(0x1b3b),'state':_0x307198(0x120c),'weight':0x1,'hidden':function(){const _0x113c8a=_0x307198;return _0x4cd4ae['hasRole']('agent')||!_0x4cd4ae['hasPermission'](0x578)&&!_0x4cd4ae[_0x113c8a(0x22b6)](_0x113c8a(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x1e6),{'id':0x57e,'title':_0x307198(0x850),'route':'','translate':'SETTINGS.SYSTEM','state':'app.settings.system','weight':0x1,'hidden':function(){const _0x3a0dca=_0x307198;return _0x4cd4ae[_0x3a0dca(0x22b6)](_0x3a0dca(0x1eff))||!_0x4cd4ae[_0x3a0dca(0x39e)](0x578)&&!_0x4cd4ae[_0x3a0dca(0x22b6)]('admin');}}),_0x1f70ab['saveItem'](_0x307198(0x1e5a),{'id':0x5dc,'title':_0x307198(0x249d),'translate':'MOTIONDIALER.MOTIONDIALER','icon':_0x307198(0x2637),'weight':0x5,'license':'dialer','hidden':function(){const _0x545164=_0x307198;return!_0x4c1a68[_0x545164(0x14f7)]||_0x4cd4ae[_0x545164(0x22b6)](_0x545164(0x1eff))||!_0x4cd4ae[_0x545164(0x1e7b)](_0x2165f1(this))&&!_0x4cd4ae[_0x545164(0x22b6)](_0x545164(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)]('apps.motiondialer.queueCampaigns',{'id':0x5dd,'title':'QueueCampaigns','route':_0x307198(0x26b3),'translate':_0x307198(0x567),'state':_0x307198(0x2556),'weight':0x1,'channel':'bull','hidden':function(){const _0x3a0e90=_0x307198;return _0x4cd4ae[_0x3a0e90(0x22b6)](_0x3a0e90(0x1eff))||!_0x4cd4ae[_0x3a0e90(0x39e)](0x5dd)&&!_0x4cd4ae[_0x3a0e90(0x22b6)](_0x3a0e90(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x281e),{'id':0x5de,'title':_0x307198(0x2525),'route':_0x307198(0x218c),'translate':_0x307198(0xb55),'state':_0x307198(0x712),'weight':0x1,'hidden':function(){const _0x3a404b=_0x307198;return _0x4cd4ae[_0x3a404b(0x22b6)]('agent')||!_0x4cd4ae['hasPermission'](0x5de)&&!_0x4cd4ae['hasRole'](_0x3a404b(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x31b),{'id':0x5e6,'title':_0x307198(0x15aa),'route':'','translate':_0x307198(0xb1f),'state':_0x307198(0x1239),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x33c2c2=_0x307198;return _0x4cd4ae[_0x33c2c2(0x22b6)](_0x33c2c2(0x1eff))||!_0x4cd4ae[_0x33c2c2(0x39e)](0x5e6)&&!_0x4cd4ae[_0x33c2c2(0x22b6)](_0x33c2c2(0x1c60));}}),_0x1f70ab['saveItem'](_0x307198(0x1cc),{'id':0x640,'title':_0x307198(0x28cf),'translate':_0x307198(0xcb8),'icon':_0x307198(0x2788),'weight':0x15,'permissions':{'association':![]},'hidden':function(){const _0x5d9c7e=_0x307198;return _0x4cd4ae[_0x5d9c7e(0x22b6)](_0x5d9c7e(0x1eff))||!_0x4cd4ae[_0x5d9c7e(0x39e)](0x640)&&!_0x4cd4ae['hasRole'](_0x5d9c7e(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x1557),{'id':0x641,'title':'About','route':'','translate':_0x307198(0x14a5),'state':_0x307198(0x19a1),'weight':0x1,'hidden':function(){const _0x3fa3b2=_0x307198;return _0x4cd4ae['hasRole'](_0x3fa3b2(0x1eff))||!_0x4cd4ae[_0x3fa3b2(0x39e)](0x640)&&!_0x4cd4ae['hasRole'](_0x3fa3b2(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0xc1c),{'id':0x6a4,'title':_0x307198(0x1e98),'translate':_0x307198(0x22e2),'icon':'icon-script','weight':0xe,'license':_0x307198(0x1e98),'hidden':function(){const _0x3d7ad5=_0x307198;return!_0x4c1a68[_0x3d7ad5(0x1e98)]||_0x4cd4ae[_0x3d7ad5(0x22b6)](_0x3d7ad5(0x1eff))||!_0x4cd4ae[_0x3d7ad5(0x1e7b)](_0x2165f1(this))&&!_0x4cd4ae[_0x3d7ad5(0x22b6)](_0x3d7ad5(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0xcbe),{'id':0x6a5,'title':_0x307198(0x871),'route':_0x307198(0x1c21),'translate':_0x307198(0x1cd),'state':_0x307198(0xa79),'weight':0x1,'hidden':function(){const _0x5674da=_0x307198;return _0x4cd4ae['hasRole']('agent')||!_0x4cd4ae['hasPermission'](0x6a5)&&!_0x4cd4ae[_0x5674da(0x22b6)](_0x5674da(0x1c60));}}),_0x1f70ab['saveItem'](_0x307198(0x2647),{'id':0x708,'title':'Marketplace','translate':_0x307198(0x605),'icon':_0x307198(0x26ce),'weight':0x12,'hidden':function(){const _0x4e37b4=_0x307198;return _0x4cd4ae[_0x4e37b4(0x22b6)](_0x4e37b4(0x1eff))||!_0x4cd4ae[_0x4e37b4(0x1e7b)](_0x2165f1(this))&&!_0x4cd4ae[_0x4e37b4(0x22b6)](_0x4e37b4(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x28ba),{'id':0x709,'title':_0x307198(0x27e6),'route':_0x307198(0xfd2),'translate':_0x307198(0x1ffb),'state':_0x307198(0x174),'weight':0x1,'hidden':function(){const _0x52db10=_0x307198;return _0x4cd4ae[_0x52db10(0x22b6)]('agent')||!_0x4cd4ae[_0x52db10(0x39e)](0x709)&&!_0x4cd4ae[_0x52db10(0x22b6)](_0x52db10(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x2925),{'id':0x7d0,'title':_0x307198(0x21ed),'translate':_0x307198(0x11bb),'icon':'icon-video','weight':0xc,'license':_0x307198(0x24c5),'hidden':function(){const _0x4f145f=_0x307198;return!_0x4c1a68[_0x4f145f(0x24c5)]||_0x4cd4ae[_0x4f145f(0x22b6)](_0x4f145f(0x1eff))||!_0x4cd4ae['hasChildrenPermissions'](_0x2165f1(this))&&!_0x4cd4ae[_0x4f145f(0x22b6)]('admin');}}),_0x1f70ab[_0x307198(0x1a78)]('apps.video.screenRecordings',{'id':0x7d1,'title':_0x307198(0x1a83),'route':_0x307198(0xd97),'translate':_0x307198(0x23a9),'state':_0x307198(0x1339),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x27fe49=_0x307198;return _0x4cd4ae[_0x27fe49(0x22b6)](_0x27fe49(0x1eff))||!_0x4cd4ae[_0x27fe49(0x39e)](0x7d1)&&!_0x4cd4ae[_0x27fe49(0x22b6)]('admin');}}),_0x1f70ab[_0x307198(0x1a78)]('apps.whatsapp',{'id':0x834,'title':'Whatsapp','translate':_0x307198(0x243d),'icon':'icon-whatsapp','weight':0xb,'license':_0x307198(0x2476),'hidden':function(){const _0x5d9896=_0x307198;return!_0x4c1a68[_0x5d9896(0x2476)]||_0x4cd4ae[_0x5d9896(0x22b6)](_0x5d9896(0x1eff))||!_0x4cd4ae['hasChildrenPermissions'](_0x2165f1(this))&&!_0x4cd4ae[_0x5d9896(0x22b6)](_0x5d9896(0x1c60));}}),_0x1f70ab['saveItem']('apps.whatsapp.whatsappQueues',{'id':0x835,'title':_0x307198(0x2962),'route':_0x307198(0xea8),'translate':_0x307198(0x627),'state':_0x307198(0x77c),'weight':0x1,'channel':_0x307198(0x2476),'hidden':function(){const _0x1c0529=_0x307198;return _0x4cd4ae['hasRole'](_0x1c0529(0x1eff))||!_0x4cd4ae[_0x1c0529(0x39e)](0x835)&&!_0x4cd4ae['hasRole'](_0x1c0529(0x1c60));}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x187e),{'id':0x836,'title':_0x307198(0x10c4),'route':_0x307198(0x83a),'translate':_0x307198(0x69d),'state':_0x307198(0x1454),'weight':0x1,'channel':_0x307198(0x2476),'hidden':function(){const _0x28f678=_0x307198;return _0x4cd4ae[_0x28f678(0x22b6)](_0x28f678(0x1eff))||!_0x4cd4ae[_0x28f678(0x39e)](0x836)&&!_0x4cd4ae[_0x28f678(0x22b6)]('admin');}}),_0x1f70ab[_0x307198(0x1a78)](_0x307198(0x213a),{'id':0x83e,'title':'Realtime','route':'','translate':'APP.REALTIME','state':_0x307198(0x20b4),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x354e65=_0x307198;return _0x4cd4ae[_0x354e65(0x22b6)]('agent')||!_0x4cd4ae['hasPermission'](0x83e)&&!_0x4cd4ae[_0x354e65(0x22b6)](_0x354e65(0x1c60));}}),_0x1f70ab[_0x307198(0x1381)](),_0x5684bf[_0x307198(0x1a78)]('apps',{'title':'APPS','group':!![],'weight':0x1}),_0x5684bf[_0x307198(0x1a78)](_0x307198(0x18f3),{'id':0x64,'title':_0x307198(0x43b),'translate':_0x307198(0x1162),'icon':_0x307198(0x6aa),'weight':0x1}),_0x5684bf[_0x307198(0x1a78)](_0x307198(0x548),{'id':0x65,'title':_0x307198(0x27f8),'translate':'DASHBOARDS.DASHBOARD','state':'dashboard','view':_0x307198(0x1312),'icon':_0x307198(0xe2e),'iconClass':_0x307198(0xabd),'weight':0x1,'hidden':function(){return!_0x4cd4ae['hasPermission'](0x65);}}),_0x5684bf['saveItem'](_0x307198(0x2442),{'id':0x66,'title':_0x307198(0x20a4),'translate':'DASHBOARDS.CONTACTS','state':_0x307198(0x7eb),'view':'contacts','icon':'icon-account-circle','iconClass':_0x307198(0x2983),'weight':0x2,'hidden':function(){const _0x588a6c=_0x307198;return!_0x4c1a68['cm']||!_0x4cd4ae[_0x588a6c(0x39e)](0x66);}}),_0x5684bf[_0x307198(0x1a78)]('apps.home.mycontacts',{'id':0x67,'title':_0x307198(0x20a4),'translate':_0x307198(0x22ae),'state':_0x307198(0x2362),'view':_0x307198(0x2362),'icon':'icon-account-multiple','iconClass':_0x307198(0x2983),'weight':0x3,'hidden':function(){return!_0x4c1a68['cm']||!_0x4cd4ae['hasPermission'](0x67);}}),_0x5684bf[_0x307198(0x1a78)](_0x307198(0x248),{'id':0x71,'title':_0x307198(0x14ec),'translate':_0x307198(0x113f),'state':_0x307198(0x293d),'view':_0x307198(0x293d),'icon':_0x307198(0x23fc),'iconClass':'blue-grey-fg','weight':0x3,'hidden':function(){const _0x144945=_0x307198;return!_0x4c1a68['dialer']||!_0x4cd4ae[_0x144945(0x39e)](0x71);}}),_0x5684bf[_0x307198(0x1a78)]('apps.home.voice',{'id':0x6e,'title':_0x307198(0x165),'translate':_0x307198(0x1fb0),'state':_0x307198(0x1fd4),'view':'voice','icon':_0x307198(0x412),'iconClass':'blue-A700-fg','weight':0x4,'hidden':function(){const _0x316e9b=_0x307198;return!_0x4c1a68[_0x316e9b(0x1fd4)]||!_0x4cd4ae[_0x316e9b(0x39e)](0x6e);}}),_0x5684bf['saveItem']('apps.home.abandoned',{'id':0x6f,'title':_0x307198(0xd15),'translate':_0x307198(0xa4c),'state':_0x307198(0x20fe),'view':'abandoned','icon':_0x307198(0xd82),'iconClass':_0x307198(0x42c),'weight':0x5,'hidden':function(){const _0x1f9b97=_0x307198;return!_0x4c1a68['voice']||!_0x4cd4ae[_0x1f9b97(0x39e)](0x6f);}}),_0x5684bf['saveItem']('apps.home.recordings',{'id':0x68,'title':_0x307198(0x2176),'translate':'DASHBOARDS.RECORDINGS','state':_0x307198(0x1e4e),'view':_0x307198(0x1e4e),'icon':_0x307198(0xc4a),'iconClass':_0x307198(0x2868),'weight':0x6,'hidden':function(){const _0x4b34c2=_0x307198;return!_0x4c1a68['voice']||!_0x4cd4ae[_0x4b34c2(0x39e)](0x68);}}),_0x5684bf['saveItem'](_0x307198(0x218),{'id':0x69,'title':_0x307198(0x1394),'translate':'DASHBOARDS.CHAT','state':_0x307198(0x174c),'view':_0x307198(0x174c),'icon':_0x307198(0x2181),'iconClass':_0x307198(0x10df),'weight':0x7,'hidden':function(){const _0x1f9827=_0x307198;return!_0x4c1a68[_0x1f9827(0x174c)]||!_0x4cd4ae[_0x1f9827(0x39e)](0x69);}}),_0x5684bf[_0x307198(0x1a78)](_0x307198(0x1a29),{'id':0x6a,'title':_0x307198(0x20c2),'translate':_0x307198(0x106b),'state':'mail','view':'mail','icon':_0x307198(0xfbd),'iconClass':'teal-fg','weight':0x8,'hidden':function(){const _0x564edb=_0x307198;return!_0x4c1a68[_0x564edb(0x2651)]||!_0x4cd4ae[_0x564edb(0x39e)](0x6a);}}),_0x5684bf[_0x307198(0x1a78)](_0x307198(0xbf8),{'id':0x6b,'title':_0x307198(0x1a6a),'translate':_0x307198(0x1eb7),'state':'sms','view':_0x307198(0x689),'icon':_0x307198(0x1cce),'iconClass':_0x307198(0x14c9),'weight':0x9,'hidden':function(){const _0x5d7a27=_0x307198;return!_0x4c1a68[_0x5d7a27(0x1e48)]||!_0x4cd4ae[_0x5d7a27(0x39e)](0x6b);}}),_0x5684bf[_0x307198(0x1a78)](_0x307198(0x299),{'id':0x6c,'title':_0x307198(0x2589),'translate':_0x307198(0x97d),'state':_0x307198(0x15e0),'view':_0x307198(0x15e0),'icon':'icon-google-earth','iconClass':_0x307198(0x1fa3),'weight':0xa,'hidden':function(){const _0x371847=_0x307198;return!_0x4c1a68[_0x371847(0x15e0)]||!_0x4cd4ae[_0x371847(0x39e)](0x6c);}}),_0x5684bf[_0x307198(0x1a78)](_0x307198(0x56a),{'id':0x6d,'title':_0x307198(0x1985),'translate':'DASHBOARDS.FAX','state':'fax','view':'fax','icon':_0x307198(0x16d3),'iconClass':'blue-grey-A200-fg','weight':0xb,'hidden':function(){const _0x1fc024=_0x307198;return!_0x4c1a68[_0x1fc024(0x1944)]||!_0x4cd4ae[_0x1fc024(0x39e)](0x6d);}}),_0x5684bf['saveItem'](_0x307198(0xd29),{'id':0x72,'title':_0x307198(0x195e),'translate':_0x307198(0x1e3c),'state':_0x307198(0x2476),'view':_0x307198(0x2476),'icon':_0x307198(0x213d),'iconClass':'lime-A700-fg','weight':0xc,'hidden':function(){const _0x451289=_0x307198;return!_0x4c1a68[_0x451289(0x2476)]||!_0x4cd4ae[_0x451289(0x39e)](0x72);}}),_0x16200e[_0x307198(0x1d6)]('$viewContentAnimationEnded',function(_0x494193){const _0x38faa9=_0x307198;_0x494193['targetScope'][_0x38faa9(0x1d15)]===_0x16200e[_0x38faa9(0x1d15)]&&_0xf77411[_0x38faa9(0x692)](_0x38faa9(0x22e9));});}const _0x3a5e09=_0x958c86;;const _0x435d6f=[_0x5537c6(0x1d0a),_0x5537c6(0x22ad),_0x5537c6(0x3e2),_0x5537c6(0x1f2b),_0x5537c6(0x1795),'app.quick-panel',_0x5537c6(0xa35),_0x5537c6(0x25e),'app.dashboards',_0x5537c6(0x323),'app.contactmanager',_0x5537c6(0x29bb),_0x5537c6(0x800),_0x5537c6(0x2426),_0x5537c6(0x6d0),_0x5537c6(0x182b),_0x5537c6(0x29b7),'app.tools','app.callysquare',_0x5537c6(0x2148),_0x5537c6(0x1a38),'app.settings',_0x5537c6(0xd64),'app.help',_0x5537c6(0xfca),_0x5537c6(0x1484),'app.plugins',_0x5537c6(0x1f28),_0x5537c6(0x1770),_0x5537c6(0xf2e),_0x5537c6(0x218f),_0x5537c6(0x29b6),_0x5537c6(0x1a86)];angular[_0x5537c6(0x9ab)](_0x5537c6(0x2232),_0x435d6f)[_0x5537c6(0x234a)](_0x5537c6(0x142b),_0x3d0e4e)[_0x5537c6(0xa60)](_0x53da84)['controller'](_0x5537c6(0x46e),_0x287da9)[_0x5537c6(0x1c99)](_0x5537c6(0x188e),_0x4f42ae)[_0x5537c6(0x1c99)](_0x5537c6(0x1143),_0x262c44)[_0x5537c6(0x234a)](_0x5537c6(0x1b2),_0x1a0f6e)[_0x5537c6(0x234a)](_0x5537c6(0x240a),_0x2bb3af)[_0x5537c6(0x234a)]('Sequence',_0x157c49)[_0x5537c6(0xa60)](_0xd0bc22)['run'](_0x3f7e38)[_0x5537c6(0x234a)]('socket',_0x5238b1)['controller'](_0x5537c6(0x1f43),_0x3a5e09);},0x1a2c:(_0xbc8fc4,_0x5c731a,_0x50df82)=>{const _0xbe2f12=a0_0x1c5fe4;var _0x4bec01={'./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 _0x43c30b(_0x1cdb9a){var _0x347312=_0xa562f2(_0x1cdb9a);return _0x50df82(_0x347312);}function _0xa562f2(_0x4f8ca4){const _0x3687fa=a0_0x5cbd;if(!_0x50df82['o'](_0x4bec01,_0x4f8ca4)){var _0x1bc0c6=new Error(_0x3687fa(0x12d8)+_0x4f8ca4+'\x27');_0x1bc0c6[_0x3687fa(0x23ae)]='MODULE_NOT_FOUND';throw _0x1bc0c6;}return _0x4bec01[_0x4f8ca4];}_0x43c30b[_0xbe2f12(0x1be5)]=function _0x292f8b(){const _0x5ce9c1=_0xbe2f12;return Object[_0x5ce9c1(0x1be5)](_0x4bec01);},_0x43c30b['resolve']=_0xa562f2,_0xbc8fc4['exports']=_0x43c30b,_0x43c30b['id']=0x1a2c;},0x1666:_0x2fc124=>{const _0x24f081=a0_0x1c5fe4;'use strict';_0x2fc124[_0x24f081(0x2fb)]=angular;}},0x0,[[0x2069,0x29a,0x301]]]); \ No newline at end of file diff --git a/public/index.html b/public/index.html index d0e504a..cc64bf1 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 6ac8fc9..2345bf4 100644 --- a/public/runtime-472ac7a6568b98562237.js +++ b/public/runtime-472ac7a6568b98562237.js @@ -1 +1 @@ -var a1_0x2c6a=["hasOwnProperty","slice","return this","children","length","define cannot be used indirect","bind","call","loaded","splice","push","webpackChunkmotion_client","paths","apply","default","object","exports"];!function(r,a){!function(a){for(;--a;)r.push(r.shift())}(++a)}(a1_0x2c6a,355);var a1_0x16ac=function(r,a){return a1_0x2c6a[r-=331]};(()=>{"use strict";var r,a={},e={};function n(r){var t=a1_0x16ac;if(e[r])return e[r][t(332)];var o=e[r]={id:r,loaded:!1,exports:{}};return a[r][t(340)](o[t(332)],o,o.exports,n),o[t(341)]=!0,o[t(332)]}n.m=a,n.amdD=function(){throw new Error(a1_0x16ac(338))},n.n=r=>{var a=a1_0x16ac,e=r&&r.__esModule?()=>r[a(347)]:()=>r;return n.d(e,{a:e}),e},n.d=(r,a)=>{for(var e in a)n.o(a,e)&&!n.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:a[e]})},n.g=function(){var r=a1_0x16ac;if(typeof globalThis===r(331))return globalThis;try{return this||new Function(r(335))()}catch(a){if(typeof window===r(331))return window}}(),r=a1_0x16ac,n.o=(a,e)=>Object.prototype[r(333)].call(a,e),n.nmd=r=>{var a=a1_0x16ac;return r[a(345)]=[],r[a(336)]||(r.children=[]),r},n.p="/",(()=>{var r=a1_0x16ac,a={666:0},e=[],t=()=>{};function o(){for(var r,t=a1_0x16ac,o=0;o{}),r}n.x=()=>{var r=a1_0x16ac;n.x=()=>{},i=i[r(334)]();for(var a=0;a{for(var o,c,i=a1_0x16ac,[f,s,l,x]=r,d=0,p=[];d{"use strict";var r,e,n={},t={};function a(r){var e=a1_0x274b;if(t[r])return t[r][e(295)];var o=t[r]={id:r,loaded:!1,exports:{}};return n[r][e(307)](o[e(295)],o,o[e(295)],a),o.loaded=!0,o.exports}a.m=n,a[a1_0x274b(305)]=function(){throw new Error("define cannot be used indirect")},a.n=r=>{var e=a1_0x274b,n=r&&r[e(308)]?()=>r[e(303)]:()=>r;return a.d(n,{a:n}),n},a.d=(r,e)=>{var n=a1_0x274b;for(var t in e)a.o(e,t)&&!a.o(r,t)&&Object[n(294)](r,t,{enumerable:!0,get:e[t]})},a.g=function(){var r=a1_0x274b;if(typeof globalThis===r(296))return globalThis;try{return this||new Function(r(306))()}catch(r){if("object"==typeof window)return window}}(),e=a1_0x274b,a.o=(r,n)=>Object[e(310)][e(309)][e(307)](r,n),a[(r=a1_0x274b)(298)]=e=>(e[r(304)]=[],e.children||(e.children=[]),e),a.p="/",(()=>{var r=a1_0x274b,e={666:0},n=[],t=()=>{};function o(){for(var r,t=a1_0x274b,o=0;o{}),r}a.x=()=>{var r=a1_0x274b;a.x=()=>{},u=u.slice();for(var e=0;e{for(var o,i,u=a1_0x274b,[c,b,d,s]=r,x=0,l=[];x{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"hideWhenOffline":{"type":"boolean","default":false},"agentIdentifier":{"type":"string","default":"website_alias"},"waitForTheAssignedAgent":{"type":"integer","default":10},"alignment":{"type":"string","default":"bottom_right"},"verticalAlignment":{"type":"integer","default":30},"messagesAlignment":{"type":"string","default":"alternate"},"defaultTitle":{"type":"string"},"customerAvatar":{"type":"string"},"showCustomerAvatar":{"type":"boolean","default":false},"messageFontSize":{"type":"integer","default":12},"backgroundColor":{"type":"string","default":"#fafafa"},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"systemAlias":{"type":"string","default":"System"},"systemAvatar":{"type":"string"},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false},"vidaooEscalation":{"type":"boolean","default":false},"vidaooApiKey":{"type":"string","default":false}},"required":["name","address","key","color","color_button","textColor","backgroundColor"]}}}},"responses":{"201":{"description":"ChatWebsite successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatWebsite"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/describe":{"get":{"summary":"Gets table info about Websites","security":[{"BearerAuth":[]}],"operationId":"describeChatWebsite","tags":["Chat Websites"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}":{"get":{"summary":"Gets a single Website","security":[{"BearerAuth":[]}],"operationId":"getChatWebsiteById","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite to get"}],"responses":{"200":{"description":"ChatWebsite with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatWebsite"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatWebsite not found"}}},"put":{"summary":"Update an existing Website","security":[{"BearerAuth":[]}],"operationId":"updateChatWebsiteById","tags":["Chat Websites"],"requestBody":{"required":true,"description":"data for updating a new Website","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"},"description":{"type":"string"},"mapKey":{"type":"string","default":"email"},"mapKeyOffline":{"type":"string","default":"email"},"key":{"type":"string"},"agentAlias":{"type":"string","default":"Agent"},"customerAlias":{"type":"string","default":"Me"},"color":{"type":"string","default":"#011F6A"},"color_button":{"type":"string","default":"#011F6A"},"textColor":{"type":"string","default":"#ffffff"},"fontSize":{"type":"integer","default":15},"remote":{"type":"string"},"animation":{"type":"boolean","default":true},"header_shape":{"type":"string","enum":["rounded","squared"],"default":"rounded"},"header_online":{"type":"string","default":"We are here!"},"start_chat_button":{"type":"string","default":"Chat"},"offline_chat_button":{"type":"string","default":"Send"},"header_offline":{"type":"string","default":"Contact us"},"download_transcript":{"type":"boolean","default":true},"timeout":{"type":"integer","default":0},"whiteLabel":{"type":"string","default":"Powered by xCALLY"},"defaultWhiteLabel":{"type":"boolean","default":true},"sitepic":{"type":"string"},"closingQuestion":{"type":"string","default":"Do you want to close the interaction?"},"formSubmitSuccessMessage":{"type":"string","default":"Form properly submitted"},"formSubmitFailureMessage":{"type":"string","default":"Form submission error"},"noteTitle":{"type":"string","default":"Note"},"placeholderMessage":{"type":"string","default":"Type a message"},"closingMessage":{"type":"string","default":"Thanks you for your time!"},"closingMessageButton":{"type":"string","default":"Send"},"skipMessageButton":{"type":"string","default":"Skip"},"conditionAgreement":{"type":"boolean","default":false},"enableRating":{"type":"boolean","default":false},"enableFeedback":{"type":"boolean","default":false},"enableSendButton":{"type":"boolean","default":false},"feedbackTitle":{"type":"string","default":"Feedback"},"ratingType":{"type":"string","enum":["star","thumb"],"default":"star"},"ratingStarsNumber":{"type":"integer","default":5},"onlineForm":{"type":"string","default":"{\"items\":[{\"type\":\"input\",\"variable\":null,\"config\":{\"placeholder\":\"name\",\"type\":\"text\",\"required\":true},\"props\":{\"title\":\"name\",\"helpText\":\"\"}},{\"type\":\"input\",\"props\":{\"title\":\"email\",\"helpText\":\"\"},\"config\":{\"required\":true,\"placeholder\":\"email\",\"type\":\"email\"},\"variable\":null}],\"fromKey\":1}"},"offlineForm":{"type":"string","default":"{\"items\":[{\"type\":\"input\",\"props\":{\"title\":\"email\",\"helpText\":\"\"},\"config\":{\"required\":true,\"placeholder\":\"email\",\"type\":\"email\"},\"variable\":null},{\"type\":\"textarea\",\"config\":{\"placeholder\":\"Comments\"},\"props\":{\"title\":\"Comments\",\"helpText\":\"Leave your comments\"}}],\"fromKey\":0}"},"token":{"type":"string","default":"sUS2aAfQTKplrp7C7e7Y0msoJi1Tvt11"},"autoclose":{"type":"boolean","default":true},"enableCustomerWriting":{"type":"boolean","default":false},"forwardTranscript":{"type":"boolean","default":false},"forwardTranscriptMessage":{"type":"string"},"forwardOffline":{"type":"boolean","default":false},"forwardOfflineAddress":{"type":"string"},"waitingTitle":{"type":"string","default":"All of our agents are busy at this time. Your chat is very important to us."},"waitingMessage":{"type":"string","default":"Please hold and we will answer your request as soon as possible."},"offlineMessageSubject":{"type":"string","default":"New offline message from websiteName"},"offlineMessageBody":{"type":"string","default":"You received a new offline message from websiteName. Here you can find the details of the request:"},"enableUnmanagedNote":{"type":"boolean","default":true},"unmanagedMessage":{"type":"string","default":"Your request has not been processed."},"skipUnmanaged":{"type":"string","default":"Skip"},"sendUnmanaged":{"type":"string","default":"Send"},"enableCustomerAttachment":{"type":"boolean","default":false},"enableCustomerCheckmarks":{"type":"boolean","default":false},"agentAvatar":{"type":"string"},"showAgentAvatar":{"type":"boolean","default":false},"timezone":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"hideWhenOffline":{"type":"boolean","default":false},"agentIdentifier":{"type":"string","default":"website_alias"},"waitForTheAssignedAgent":{"type":"integer","default":10},"alignment":{"type":"string","default":"bottom_right"},"verticalAlignment":{"type":"integer","default":30},"messagesAlignment":{"type":"string","default":"alternate"},"defaultTitle":{"type":"string"},"customerAvatar":{"type":"string"},"showCustomerAvatar":{"type":"boolean","default":false},"messageFontSize":{"type":"integer","default":12},"backgroundColor":{"type":"string","default":"#fafafa"},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"systemAlias":{"type":"string","default":"System"},"systemAvatar":{"type":"string"},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false},"vidaooEscalation":{"type":"boolean","default":false},"vidaooApiKey":{"type":"string","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatWebsite not found"}}}},"/chat/websites/{id}/dispositions":{"get":{"summary":"Gets account dispositions","security":[{"BearerAuth":[]}],"operationId":"getDispositions","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new disposition","security":[{"BearerAuth":[]}],"operationId":"addDisposition","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes canned answers from account","security":[{"BearerAuth":[]}],"operationId":"removeDispositions","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/canned_answers":{"get":{"summary":"Gets account canned answers","security":[{"BearerAuth":[]}],"operationId":"getAnswers","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new canned answer","security":[{"BearerAuth":[]}],"operationId":"addAnswer","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes canned answers from account","security":[{"BearerAuth":[]}],"operationId":"removeAnswers","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/logo":{"get":{"summary":"Get logo","operationId":"getLogo","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Add logo","security":[{"BearerAuth":[]}],"operationId":"postaddLogo","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/avatar":{"get":{"summary":"Get avatar","operationId":"getAvatar","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Add avatar","security":[{"BearerAuth":[]}],"operationId":"postaddAvatar","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/customer_avatar":{"get":{"summary":"Get Customer Avatar","operationId":"getCustomerAvatar","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Add customer avatar","security":[{"BearerAuth":[]}],"operationId":"postaddCustomerAvatar","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/system_avatar":{"get":{"summary":"Get System Avatar","operationId":"getSystemAvatar","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Add system avatar","security":[{"BearerAuth":[]}],"operationId":"postaddSystemAvatar","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/interactions":{"get":{"summary":"Gets Website Interactions","security":[{"BearerAuth":[]}],"operationId":"getInteractions","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new interactions","security":[{"BearerAuth":[]}],"operationId":"addInteraction","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/snippet":{"get":{"summary":"Gets Website Snippet","operationId":"getSnippet","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/chat/websites/{id}/applications":{"get":{"summary":"Gets Website Applications","security":[{"BearerAuth":[]}],"operationId":"getApplications","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new applications","security":[{"BearerAuth":[]}],"operationId":"addApplications","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/proactive_actions":{"get":{"summary":"Gets Website Proactive Actions","security":[{"BearerAuth":[]}],"operationId":"getProactiveActions","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new Proactive Actions","security":[{"BearerAuth":[]}],"operationId":"addProactiveActions","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/fields":{"get":{"summary":"Gets Website Fields","operationId":"getFields","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/chat/websites/{id}/offline_messages":{"get":{"summary":"Gets Website Offline Messages","security":[{"BearerAuth":[]}],"operationId":"getOfflineMessages","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/users":{"get":{"summary":"Gets agents from website","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a website","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a website","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/notify":{"post":{"summary":"Notify new message","operationId":"notify","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"201":{"description":"successfully created"}}}},"/chat/websites/{id}/offline":{"post":{"summary":"Offline message","operationId":"offline","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"201":{"description":"successfully created"}}}},"/chat/websites/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Website","security":[{"BearerAuth":[]}],"operationId":"deleteChatWebsiteById","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatWebsite not found"}}}},"/cloudProviders":{"get":{"summary":"Gets a list of CloudProviders","security":[{"BearerAuth":[]}],"operationId":"listAllCloudProvider","tags":["CloudProviders"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CloudProvider"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of CloudProviders","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CloudProvider"}}}}},"206":{"description":"Partial (paged) collection of CloudProviders","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CloudProvider"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new CloudProvider","security":[{"BearerAuth":[]}],"operationId":"createCloudProvider","tags":["CloudProviders"],"requestBody":{"required":true,"description":"data for creating a new CloudProvider","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"service":{"type":"string","enum":["AmazonAWS","Google"]},"data1":{"type":"string"},"data2":{"type":"string"}},"required":["name","service"]}}}},"responses":{"201":{"description":"CloudProvider successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudProvider"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cloudProviders/{id}":{"get":{"summary":"Gets a single CloudProvider","security":[{"BearerAuth":[]}],"operationId":"getCloudProviderById","tags":["CloudProviders"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CloudProvider to get"}],"responses":{"200":{"description":"CloudProvider with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudProvider"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CloudProvider not found"}}},"put":{"summary":"Update an existing CloudProvider","security":[{"BearerAuth":[]}],"operationId":"updateCloudProviderById","tags":["CloudProviders"],"requestBody":{"required":true,"description":"data for updating a new CloudProvider","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"service":{"type":"string","enum":["AmazonAWS","Google"]},"data1":{"type":"string"},"data2":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CloudProvider to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CloudProvider not found"}}}},"/cloudProviders/{id}/destroy_many":{"delete":{"summary":"Destroy an existing CloudProvider","security":[{"BearerAuth":[]}],"operationId":"deleteCloudProviderById","tags":["CloudProviders"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CloudProvider to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CloudProvider not found"}}}},"/cm/companies":{"get":{"summary":"Gets a list of Companies","security":[{"BearerAuth":[]}],"operationId":"listAllCmCompany","tags":["Cm Companies"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CmCompany"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Companies","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmCompany"}}}}},"206":{"description":"Partial (paged) collection of Companies","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmCompany"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Company","security":[{"BearerAuth":[]}],"operationId":"createCmCompany","tags":["Cm Companies"],"requestBody":{"required":true,"description":"data for creating a new Company","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"vat":{"type":"string"},"companyId":{"type":"string"},"website":{"type":"string"},"phone":{"type":"string"},"fax":{"type":"string"},"type":{"type":"string"},"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"email":{"type":"string"},"emailDomain":{"type":"string"},"sStreet":{"type":"string"},"sPostalCode":{"type":"string"},"sCity":{"type":"string"},"sCountry":{"type":"string"},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"CmCompany successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmCompany"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/companies/describe":{"get":{"summary":"Gets table info about Companies","security":[{"BearerAuth":[]}],"operationId":"describeCmCompany","tags":["Cm Companies"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/companies/{id}":{"get":{"summary":"Gets a single Company","security":[{"BearerAuth":[]}],"operationId":"getCmCompanyById","tags":["Cm Companies"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmCompany to get"}],"responses":{"200":{"description":"CmCompany with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmCompany"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmCompany not found"}}},"put":{"summary":"Update an existing Company","security":[{"BearerAuth":[]}],"operationId":"updateCmCompanyById","tags":["Cm Companies"],"requestBody":{"required":true,"description":"data for updating a new Company","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"vat":{"type":"string"},"companyId":{"type":"string"},"website":{"type":"string"},"phone":{"type":"string"},"fax":{"type":"string"},"type":{"type":"string"},"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"email":{"type":"string"},"emailDomain":{"type":"string"},"sStreet":{"type":"string"},"sPostalCode":{"type":"string"},"sCity":{"type":"string"},"sCountry":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmCompany to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmCompany not found"}}}},"/cm/companies/{id}/contacts":{"get":{"summary":"Gets List Contacts","security":[{"BearerAuth":[]}],"operationId":"getContacts","tags":["Cm Companies"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmCompany"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new contacts","security":[{"BearerAuth":[]}],"operationId":"addContacts","tags":["Cm Companies"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmCompany"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/companies/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Company","security":[{"BearerAuth":[]}],"operationId":"deleteCmCompanyById","tags":["Cm Companies"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmCompany to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmCompany not found"}}}},"/cm/contacts":{"get":{"summary":"Gets a list of Contacts","security":[{"BearerAuth":[]}],"operationId":"listAllCmContact","tags":["Cm Contacts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CmContact"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Contacts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmContact"}}}}},"206":{"description":"Partial (paged) collection of Contacts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmContact"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/describe":{"get":{"summary":"Gets table info about Contacts","security":[{"BearerAuth":[]}],"operationId":"describeCmContact","tags":["Cm Contacts"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/{id}":{"get":{"summary":"Gets a single Contact","security":[{"BearerAuth":[]}],"operationId":"show","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"put":{"summary":"Update a single Contact","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/{id}/tags":{"get":{"summary":"Gets configurations tags","security":[{"BearerAuth":[]}],"operationId":"getTags","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Sets new tags","security":[{"BearerAuth":[]}],"operationId":"setTags","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/{id}/hoppers":{"get":{"summary":"Gets contact hoppers","security":[{"BearerAuth":[]}],"operationId":"getHoppers","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/{id}/hopper_histories":{"get":{"summary":"Gets contact hopper histories","security":[{"BearerAuth":[]}],"operationId":"getHopperHistories","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/{id}/hopper_finals":{"get":{"summary":"Gets contact hopper finals","security":[{"BearerAuth":[]}],"operationId":"getHopperFinals","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/{id}/jscripty_sessions":{"get":{"summary":"Gets contact hopper blacks","security":[{"BearerAuth":[]}],"operationId":"getJscriptySessions","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/merge":{"post":{"summary":"Merge Contact","security":[{"BearerAuth":[]}],"operationId":"merge","tags":["Cm Contacts"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/":{"post":{"summary":"Create Contact","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Cm Contacts"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/create_many":{"post":{"summary":"Create Contacts","security":[{"BearerAuth":[]}],"operationId":"bulkCreate","tags":["Cm Contacts"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/upload":{"post":{"summary":"Upload csv","security":[{"BearerAuth":[]}],"operationId":"postupload","tags":["Cm contacts"],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/upload/{id}":{"post":{"summary":"Import new contacts by csv","security":[{"BearerAuth":[]}],"operationId":"import","tags":["Cm contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Contact","security":[{"BearerAuth":[]}],"operationId":"deleteCmContactById","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmContact not found"}}}},"/cm/custom_fields":{"get":{"summary":"Gets a list of Custom Fields","security":[{"BearerAuth":[]}],"operationId":"listAllCmCustomField","tags":["Cm Custom Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CmCustomField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Custom Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmCustomField"}}}}},"206":{"description":"Partial (paged) collection of Custom Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmCustomField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/custom_fields/{id}":{"get":{"summary":"Gets a single Custom Field","security":[{"BearerAuth":[]}],"operationId":"getCmCustomFieldById","tags":["Cm Custom Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmCustomField to get"}],"responses":{"200":{"description":"CmCustomField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmCustomField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmCustomField not found"}}},"put":{"summary":"Update an existing Custom Field","security":[{"BearerAuth":[]}],"operationId":"updateCmCustomFieldById","tags":["Cm Custom Fields"],"requestBody":{"required":true,"description":"data for updating a new Custom Field","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"alias":{"type":"string"},"type":{"type":"string"},"values":{"type":"string"},"required":{"type":"boolean","default":false},"clickToAction":{"type":"boolean","default":false},"actionType":{"type":"string","enum":["voice"]}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmCustomField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmCustomField not found"}}}},"/cm/custom_fields/":{"post":{"summary":"Create a new custom field","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Custom Fields"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/custom_fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Custom Field","security":[{"BearerAuth":[]}],"operationId":"deleteCmCustomFieldById","tags":["Cm Custom Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmCustomField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmCustomField not found"}}}},"/cm/hopper":{"get":{"summary":"Gets a list of Hopper","security":[{"BearerAuth":[]}],"operationId":"listAllCmHopper","tags":["Cm Hopper"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CmHopper"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Hopper","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmHopper"}}}}},"206":{"description":"Partial (paged) collection of Hopper","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmHopper"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Hopper","security":[{"BearerAuth":[]}],"operationId":"createCmHopper","tags":["Cm Hopper"],"requestBody":{"required":true,"description":"data for creating a new Hopper","content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"type":"string"},"active":{"type":"boolean","default":false},"scheduledat":{"type":"string","default":"2020-11-27 10:41:25"},"countbusyretry":{"type":"integer","default":0},"countcongestionretry":{"type":"integer","default":0},"countnoanswerretry":{"type":"integer","default":0},"callback":{"type":"boolean","default":false},"callbackuniqueid":{"type":"string","default":null},"callbackat":{"type":"string"},"priority":{"type":"integer","default":2},"recallme":{"type":"boolean","default":false},"ContactId":{"type":"integer"},"ListId":{"type":"integer"},"UserId":{"type":"integer"},"VoiceQueueId":{"type":"integer"},"CampaignId":{"type":"integer"},"countnosuchnumberretry":{"type":"integer","default":0},"countdropretry":{"type":"integer","default":0},"countabandonedretry":{"type":"integer","default":0},"countmachineretry":{"type":"integer","default":0},"countagentrejectretry":{"type":"integer","default":0}},"required":["phone"]}}}},"responses":{"201":{"description":"CmHopper successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmHopper"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper/describe":{"get":{"summary":"Gets table info about Hopper","security":[{"BearerAuth":[]}],"operationId":"describeCmHopper","tags":["Cm Hopper"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper/opencontacts":{"get":{"summary":"Gets Open Contacts","security":[{"BearerAuth":[]}],"operationId":"getOpenContacts","tags":["Cm Hopper"],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper/{id}":{"get":{"summary":"Gets a single Hopper","security":[{"BearerAuth":[]}],"operationId":"getCmHopperById","tags":["Cm Hopper"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopper to get"}],"responses":{"200":{"description":"CmHopper with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmHopper"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmHopper not found"}}},"put":{"summary":"Update an existing Hopper","security":[{"BearerAuth":[]}],"operationId":"updateCmHopperById","tags":["Cm Hopper"],"requestBody":{"required":true,"description":"data for updating a new Hopper","content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"type":"string"},"active":{"type":"boolean","default":false},"scheduledat":{"type":"string","default":"2020-11-27 10:41:25"},"countbusyretry":{"type":"integer","default":0},"countcongestionretry":{"type":"integer","default":0},"countnoanswerretry":{"type":"integer","default":0},"callback":{"type":"boolean","default":false},"callbackuniqueid":{"type":"string","default":null},"callbackat":{"type":"string"},"priority":{"type":"integer","default":2},"recallme":{"type":"boolean","default":false},"ContactId":{"type":"integer"},"ListId":{"type":"integer"},"UserId":{"type":"integer"},"VoiceQueueId":{"type":"integer"},"CampaignId":{"type":"integer"},"countnosuchnumberretry":{"type":"integer","default":0},"countdropretry":{"type":"integer","default":0},"countabandonedretry":{"type":"integer","default":0},"countmachineretry":{"type":"integer","default":0},"countagentrejectretry":{"type":"integer","default":0}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopper to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmHopper not found"}}},"delete":{"summary":"Delete Hopper","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Cm Hopper"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopper"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper/preview":{"post":{"summary":"Gets Preview Dialer Contacts","security":[{"BearerAuth":[]}],"operationId":"getPreview","tags":["Cm Hopper"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_black":{"get":{"summary":"Gets a list of Hopper Black","security":[{"BearerAuth":[]}],"operationId":"listAllCmHopperBlack","tags":["Cm Hopper Black"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CmHopperBlack"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Hopper Black","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmHopperBlack"}}}}},"206":{"description":"Partial (paged) collection of Hopper Black","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmHopperBlack"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_black/describe":{"get":{"summary":"Gets table info about Hopper Black","security":[{"BearerAuth":[]}],"operationId":"describeCmHopperBlack","tags":["Cm Hopper Black"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_black/{id}":{"get":{"summary":"Gets a single Hopper Black","security":[{"BearerAuth":[]}],"operationId":"getCmHopperBlackById","tags":["Cm Hopper Black"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperBlack to get"}],"responses":{"200":{"description":"CmHopperBlack with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmHopperBlack"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmHopperBlack not found"}}},"put":{"summary":"Update an existing Hopper Black","security":[{"BearerAuth":[]}],"operationId":"updateCmHopperBlackById","tags":["Cm Hopper Black"],"requestBody":{"required":true,"description":"data for updating a new Hopper Black","content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"type":"string"},"ContactId":{"type":"integer"},"ListId":{"type":"integer"},"VoiceQueueId":{"type":"integer"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperBlack to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmHopperBlack not found"}}}},"/cm/hopper_black/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Hopper Black","security":[{"BearerAuth":[]}],"operationId":"deleteCmHopperBlackById","tags":["Cm Hopper Black"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperBlack to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmHopperBlack not found"}}}},"/cm/hopper_final":{"get":{"summary":"Gets a list of HopperFinal","security":[{"BearerAuth":[]}],"operationId":"listAllCmHopperFinal","tags":["Cm Hopper Final"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CmHopperFinal"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of HopperFinal","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmHopperFinal"}}}}},"206":{"description":"Partial (paged) collection of HopperFinal","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmHopperFinal"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_final/describe":{"get":{"summary":"Gets table info about HopperFinal","security":[{"BearerAuth":[]}],"operationId":"describeCmHopperFinal","tags":["Cm Hopper Final"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_final/{id}":{"get":{"summary":"Gets a single HopperFinal","security":[{"BearerAuth":[]}],"operationId":"getCmHopperFinalById","tags":["Cm Hopper Final"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperFinal to get"}],"responses":{"200":{"description":"CmHopperFinal with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmHopperFinal"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmHopperFinal not found"}}},"put":{"summary":"Update a single hopper final","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Cm Hopper Final"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperFinal"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_final/voice/queue/countAttributes/{id}":{"get":{"summary":"Return number contacts for attributes","security":[{"BearerAuth":[]}],"operationId":"countContactsQueueCampaignHopperFinal","tags":["Cm Hopper Final"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperFinal"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_final/campaign/countAttributes/{id}":{"get":{"summary":"Return number contacts for attributes","security":[{"BearerAuth":[]}],"operationId":"countContactsIvrCampaignHopperFinal","tags":["Cm Hopper Final"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperFinal"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_final/voice/queue/moveContacts/{id}":{"post":{"summary":"Move contacts in hopper","security":[{"BearerAuth":[]}],"operationId":"moveContactsQueueCampaignHopperFinal","tags":["Cm Hopper Final"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperFinal"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_final/voice/campaign/moveContacts/{id}":{"post":{"summary":"Move contacts in hopper","security":[{"BearerAuth":[]}],"operationId":"moveContactsIvrCampaignHopperFinal","tags":["Cm Hopper Final"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperFinal"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_final/checkContactHopper":{"post":{"summary":"Check if contact is in hopper","security":[{"BearerAuth":[]}],"operationId":"checkContactHopper","tags":["Cm Hopper Final"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_history":{"get":{"summary":"Gets a list of HopperHistory","security":[{"BearerAuth":[]}],"operationId":"listAllCmHopperHistory","tags":["Cm Hopper History"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CmHopperHistory"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of HopperHistory","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmHopperHistory"}}}}},"206":{"description":"Partial (paged) collection of HopperHistory","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmHopperHistory"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new HopperHistory","security":[{"BearerAuth":[]}],"operationId":"createCmHopperHistory","tags":["Cm Hopper History"],"requestBody":{"required":true,"description":"data for creating a new HopperHistory","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"integer"},"statedesc":{"type":"string"},"scheduledat":{"type":"string"},"countbusyretry":{"type":"integer","default":0},"countcongestionretry":{"type":"integer","default":0},"countnoanswerretry":{"type":"integer","default":0},"countglobal":{"type":"integer","default":0},"uniqueid":{"type":"string"},"originatecalleridnum":{"type":"string"},"originatecalleridname":{"type":"string"},"calleridnum":{"type":"string"},"calleridname":{"type":"string"},"starttime":{"type":"string"},"responsetime":{"type":"string"},"answertime":{"type":"string"},"droptime":{"type":"string"},"endtime":{"type":"string"},"ringtime":{"type":"integer","default":0},"holdtime":{"type":"integer","default":0},"talktime":{"type":"integer","default":0},"followuptime":{"type":"integer","default":0},"dropreason":{"type":"string"},"campaign":{"type":"string"},"campaigntype":{"type":"string"},"membername":{"type":"string"},"reason":{"type":"string"},"amd":{"type":"boolean","default":false},"fax":{"type":"boolean","default":false},"callback":{"type":"boolean","default":false},"callbackuniqueid":{"type":"string","default":null},"callbackat":{"type":"string"},"recallme":{"type":"boolean","default":false},"editedat":{"type":"string"},"edited":{"type":"boolean","default":false},"countnosuchnumberretry":{"type":"integer","default":0},"countdropretry":{"type":"integer","default":0},"countabandonedretry":{"type":"integer","default":0},"countmachineretry":{"type":"integer","default":0},"countagentrejectretry":{"type":"integer","default":0}}}}}},"responses":{"201":{"description":"CmHopperHistory successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmHopperHistory"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_history/describe":{"get":{"summary":"Gets table info about HopperHistory","security":[{"BearerAuth":[]}],"operationId":"describeCmHopperHistory","tags":["Cm Hopper History"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_history/{id}":{"get":{"summary":"Gets a single HopperHistory","security":[{"BearerAuth":[]}],"operationId":"getCmHopperHistoryById","tags":["Cm Hopper History"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperHistory to get"}],"responses":{"200":{"description":"CmHopperHistory with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmHopperHistory"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmHopperHistory not found"}}},"put":{"summary":"Update a single hopper history","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Cm Hopper History"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperHistory"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/lists":{"get":{"summary":"Gets a list of Lists","security":[{"BearerAuth":[]}],"operationId":"listAllCmList","tags":["Cm Lists"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CmList"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Lists","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmList"}}}}},"206":{"description":"Partial (paged) collection of Lists","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmList"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new List","security":[{"BearerAuth":[]}],"operationId":"createCmList","tags":["Cm Lists"],"requestBody":{"required":true,"description":"data for creating a new List","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"dialPrefix":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"CmList successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmList"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/lists/describe":{"get":{"summary":"Gets table info about Lists","security":[{"BearerAuth":[]}],"operationId":"describeCmList","tags":["Cm Lists"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/lists/{id}":{"get":{"summary":"Gets a single List","security":[{"BearerAuth":[]}],"operationId":"getCmListById","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList to get"}],"responses":{"200":{"description":"CmList with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmList"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmList not found"}}},"put":{"summary":"Update an existing List","security":[{"BearerAuth":[]}],"operationId":"updateCmListById","tags":["Cm Lists"],"requestBody":{"required":true,"description":"data for updating a new List","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"dialPrefix":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmList not found"}}}},"/cm/lists/{id}/dispositions":{"get":{"summary":"Gets list dispositions","security":[{"BearerAuth":[]}],"operationId":"getDispositions","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new disposition","security":[{"BearerAuth":[]}],"operationId":"addDisposition","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes dispositions from account","security":[{"BearerAuth":[]}],"operationId":"removeDispositions","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/lists/{id}/contacts":{"get":{"summary":"Gets List Contacts","security":[{"BearerAuth":[]}],"operationId":"getContacts","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new contacts","security":[{"BearerAuth":[]}],"operationId":"addContacts","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/lists/{id}/contacts/csv":{"get":{"summary":"Gets CSV List Contacts","security":[{"BearerAuth":[]}],"operationId":"getContactsCsv","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/lists/{id}/fields":{"get":{"summary":"Gets Custom Fields","security":[{"BearerAuth":[]}],"operationId":"getCustomFields","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new custom field","security":[{"BearerAuth":[]}],"operationId":"addCustomField","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/lists/{id}/users":{"get":{"summary":"Gets agents from list","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Adds agents to a list","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a list","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/lists/{id}/destroy_many":{"delete":{"summary":"Destroy an existing List","security":[{"BearerAuth":[]}],"operationId":"deleteCmListById","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmList not found"}}}},"/conditions/{id}":{"put":{"summary":"Update an existing Condition","security":[{"BearerAuth":[]}],"operationId":"updateConditionById","tags":["Conditions"],"requestBody":{"required":true,"description":"data for updating a new Condition","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"field":{"type":"string"},"operator":{"type":"string"},"value":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Condition to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Condition not found"}}}},"/conditions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Condition","security":[{"BearerAuth":[]}],"operationId":"deleteConditionById","tags":["Conditions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Condition to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Condition not found"}}}},"/dashboards":{"get":{"summary":"Gets a list of Dashboards","security":[{"BearerAuth":[]}],"operationId":"listAllDashboard","tags":["Dashboards"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Dashboard"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Dashboards","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dashboard"}}}}},"206":{"description":"Partial (paged) collection of Dashboards","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dashboard"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Dashboard","security":[{"BearerAuth":[]}],"operationId":"createDashboard","tags":["Dashboards"],"requestBody":{"required":true,"description":"data for creating a new Dashboard","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"Dashboard successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboard"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/dashboards/{id}":{"get":{"summary":"Gets a single Dashboard","security":[{"BearerAuth":[]}],"operationId":"getDashboardById","tags":["Dashboards"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dashboard to get"}],"responses":{"200":{"description":"Dashboard with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboard"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dashboard not found"}}},"put":{"summary":"Update an existing Dashboard","security":[{"BearerAuth":[]}],"operationId":"updateDashboardById","tags":["Dashboards"],"requestBody":{"required":true,"description":"data for updating a new Dashboard","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dashboard to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dashboard not found"}}}},"/dashboards/{id}/items":{"get":{"summary":"Gets items","security":[{"BearerAuth":[]}],"operationId":"getItems","tags":["Dashboards"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dashboard"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new item","security":[{"BearerAuth":[]}],"operationId":"addItem","tags":["Dashboards"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dashboard"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/dashboards/clone":{"post":{"summary":"Clone an existing Dashboard","security":[{"BearerAuth":[]}],"operationId":"cloneDashboard","tags":["Dashboards"],"requestBody":{"required":true,"description":"data for creating a new Dashboard","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"id of the Dashboard to clone"},"name":{"type":"string"},"description":{"type":"string"}},"required":["id"]}}}},"responses":{"201":{"description":"Dashboard successfully cloned. Returns the cloned object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboard"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/dashboards/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Dashboard","security":[{"BearerAuth":[]}],"operationId":"deleteDashboardById","tags":["Dashboards"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dashboard to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dashboard not found"}}}},"/dashboards/items/{id}":{"get":{"summary":"Gets a single Dashboard Item","security":[{"BearerAuth":[]}],"operationId":"getDashboardItemById","tags":["Dashboard Items"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DashboardItem to get"}],"responses":{"200":{"description":"DashboardItem with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardItem"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DashboardItem not found"}}},"put":{"summary":"Update an existing item","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Dashboard Items"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DashboardItem"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/dashboards/items/":{"post":{"summary":"Create dasboard item","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Dashboard Items"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/dashboards/items/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Dashboard Item","security":[{"BearerAuth":[]}],"operationId":"deleteDashboardItemById","tags":["Dashboard Items"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DashboardItem to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DashboardItem not found"}}}},"/dispositions":{"get":{"summary":"Gets a list of Dispositions","security":[{"BearerAuth":[]}],"operationId":"listAllDisposition","tags":["Dispositions"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Disposition"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Dispositions","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Disposition"}}}}},"206":{"description":"Partial (paged) collection of Dispositions","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Disposition"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Disposition","security":[{"BearerAuth":[]}],"operationId":"createDisposition","tags":["Dispositions"],"requestBody":{"required":true,"description":"data for creating a new Disposition","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"level":{"type":"string","enum":["first","second","third"],"default":"first"},"description":{"type":"string"}},"required":["name","level"]}}}},"responses":{"201":{"description":"Disposition successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Disposition"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/dispositions/{id}":{"get":{"summary":"Gets a single Disposition","security":[{"BearerAuth":[]}],"operationId":"getDispositionById","tags":["Dispositions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Disposition to get"}],"responses":{"200":{"description":"Disposition with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Disposition"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Disposition not found"}}},"put":{"summary":"Update an existing Disposition","security":[{"BearerAuth":[]}],"operationId":"updateDispositionById","tags":["Dispositions"],"requestBody":{"required":true,"description":"data for updating a new Disposition","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"level":{"type":"string","enum":["first","second","third"],"default":"first"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Disposition to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Disposition not found"}}}},"/dispositions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Disposition","security":[{"BearerAuth":[]}],"operationId":"deleteDispositionById","tags":["Dispositions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Disposition to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Disposition not found"}}}},"/fax/accounts":{"get":{"summary":"Gets a list of Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllFaxAccount","tags":["Fax Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FaxAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxAccount"}}}}},"206":{"description":"Partial (paged) collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Account","security":[{"BearerAuth":[]}],"operationId":"createFaxAccount","tags":["Fax Accounts"],"requestBody":{"required":true,"description":"data for creating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"ecm":{"type":"string","enum":["yes","no"],"default":"yes"},"headerinfo":{"type":"string","default":"xCALLY Motion Fax"},"localstationid":{"type":"string"},"minrate":{"type":"string","enum":["2400","4800","7200","9600","12000","14400"],"default":"4800"},"maxrate":{"type":"string","enum":["2400","4800","7200","9600","12000","14400"],"default":"14400"},"modem":{"type":"string","default":"v17,v27,v29"},"gateway":{"type":"string","default":"no"},"faxdetect":{"type":"string","default":"no"},"t38timeout":{"type":"integer","default":5000},"tech":{"type":"string","enum":["SIP","IAX","DADHI","KHOMP"],"default":"SIP"},"key":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled","default":null},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false}},"required":["name","key"]}}}},"responses":{"201":{"description":"FaxAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/describe":{"get":{"summary":"Gets table info about Accounts","security":[{"BearerAuth":[]}],"operationId":"describeFaxAccount","tags":["Fax Accounts"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/{id}":{"get":{"summary":"Gets a single Account","security":[{"BearerAuth":[]}],"operationId":"getFaxAccountById","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount to get"}],"responses":{"200":{"description":"FaxAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxAccount not found"}}},"put":{"summary":"Update an existing Account","security":[{"BearerAuth":[]}],"operationId":"updateFaxAccountById","tags":["Fax Accounts"],"requestBody":{"required":true,"description":"data for updating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"ecm":{"type":"string","enum":["yes","no"],"default":"yes"},"headerinfo":{"type":"string","default":"xCALLY Motion Fax"},"localstationid":{"type":"string"},"minrate":{"type":"string","enum":["2400","4800","7200","9600","12000","14400"],"default":"4800"},"maxrate":{"type":"string","enum":["2400","4800","7200","9600","12000","14400"],"default":"14400"},"modem":{"type":"string","default":"v17,v27,v29"},"gateway":{"type":"string","default":"no"},"faxdetect":{"type":"string","default":"no"},"t38timeout":{"type":"integer","default":5000},"tech":{"type":"string","enum":["SIP","IAX","DADHI","KHOMP"],"default":"SIP"},"key":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled","default":null},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxAccount not found"}}}},"/fax/accounts/{id}/dispositions":{"get":{"summary":"Gets account dispositions","security":[{"BearerAuth":[]}],"operationId":"getDispositions","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new disposition","security":[{"BearerAuth":[]}],"operationId":"addDisposition","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes dispositions from account","security":[{"BearerAuth":[]}],"operationId":"removeDispositions","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/{id}/canned_answers":{"get":{"summary":"Gets account canned answers","security":[{"BearerAuth":[]}],"operationId":"getAnswers","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new canned answer","security":[{"BearerAuth":[]}],"operationId":"addAnswer","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes canned answers from account","security":[{"BearerAuth":[]}],"operationId":"removeAnswers","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/{id}/interactions":{"get":{"summary":"Gets account interactions","security":[{"BearerAuth":[]}],"operationId":"getInteractions","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new interactions","security":[{"BearerAuth":[]}],"operationId":"addInteraction","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/{id}/applications":{"get":{"summary":"Gets account pplications","security":[{"BearerAuth":[]}],"operationId":"getApplications","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new applications","security":[{"BearerAuth":[]}],"operationId":"addApplications","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/{id}/messages":{"get":{"summary":"Gets account messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/{id}/users":{"get":{"summary":"Gets agents from fax account","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a fax account","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a fax account","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/addaccountapplications":{"post":{"summary":"Creates new account and applications","security":[{"BearerAuth":[]}],"operationId":"addAccountApplications","tags":["Fax Accounts"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/updateaccountapplications":{"post":{"summary":"Update account and applications","security":[{"BearerAuth":[]}],"operationId":"updateAccountApplications","tags":["Fax Accounts"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/{id}/send":{"post":{"summary":"Send new fax","security":[{"BearerAuth":[]}],"operationId":"send","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Account","security":[{"BearerAuth":[]}],"operationId":"deleteFaxAccountById","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxAccount not found"}}}},"/fax/applications":{"get":{"summary":"Gets a list of Applications","security":[{"BearerAuth":[]}],"operationId":"listAllFaxApplication","tags":["Fax Applications"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FaxApplication"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Applications","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxApplication"}}}}},"206":{"description":"Partial (paged) collection of Applications","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxApplication"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Application","security":[{"BearerAuth":[]}],"operationId":"createFaxApplication","tags":["Fax Applications"],"requestBody":{"required":true,"description":"data for creating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}},"required":["priority","app"]}}}},"responses":{"201":{"description":"FaxApplication successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/applications/{id}":{"get":{"summary":"Gets a single Application","security":[{"BearerAuth":[]}],"operationId":"getFaxApplicationById","tags":["Fax Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxApplication to get"}],"responses":{"200":{"description":"FaxApplication with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxApplication not found"}}},"put":{"summary":"Update an existing Application","security":[{"BearerAuth":[]}],"operationId":"updateFaxApplicationById","tags":["Fax Applications"],"requestBody":{"required":true,"description":"data for updating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxApplication to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxApplication not found"}}}},"/fax/applications/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Application","security":[{"BearerAuth":[]}],"operationId":"deleteFaxApplicationById","tags":["Fax Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxApplication to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxApplication not found"}}}},"/fax/interactions":{"get":{"summary":"Gets a list of Interactions","security":[{"BearerAuth":[]}],"operationId":"listAllFaxInteraction","tags":["Fax Interactions"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FaxInteraction"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxInteraction"}}}}},"206":{"description":"Partial (paged) collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxInteraction"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Interaction","security":[{"BearerAuth":[]}],"operationId":"createFaxInteraction","tags":["Fax Interactions"],"requestBody":{"required":true,"description":"data for creating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"read1stAt":{"type":"string"},"fax":{"type":"string"},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"}},"required":["firstMsgDirection","lastMsgDirection"]}}}},"responses":{"201":{"description":"FaxInteraction successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/interactions/describe":{"get":{"summary":"Gets table info about Interactions","security":[{"BearerAuth":[]}],"operationId":"describeFaxInteraction","tags":["Fax Interactions"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/interactions/{id}":{"get":{"summary":"Gets a single Interaction","security":[{"BearerAuth":[]}],"operationId":"getFaxInteractionById","tags":["Fax Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxInteraction to get"}],"responses":{"200":{"description":"FaxInteraction with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxInteraction not found"}}},"put":{"summary":"Update an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"updateFaxInteractionById","tags":["Fax Interactions"],"requestBody":{"required":true,"description":"data for updating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"read1stAt":{"type":"string"},"fax":{"type":"string"},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxInteraction to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxInteraction not found"}}}},"/fax/interactions/{id}/messages":{"get":{"summary":"Gets interaction messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Fax Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new messages","security":[{"BearerAuth":[]}],"operationId":"addMessage","tags":["Fax Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/interactions/{id}/download":{"get":{"summary":"Get interactions","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Fax Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/interactions/{id}/tags":{"post":{"summary":"Add tags to the interaction","security":[{"BearerAuth":[]}],"operationId":"addTags","tags":["Fax Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes tags from interaction","security":[{"BearerAuth":[]}],"operationId":"removeTags","tags":["Fax Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxInteraction"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/interactions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"deleteFaxInteractionById","tags":["Fax Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxInteraction to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxInteraction not found"}}}},"/fax/messages":{"get":{"summary":"Gets a list of Messages","security":[{"BearerAuth":[]}],"operationId":"listAllFaxMessage","tags":["Fax Messages"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FaxMessage"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxMessage"}}}}},"206":{"description":"Partial (paged) collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxMessage"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/messages/describe":{"get":{"summary":"Gets table info about Messages","security":[{"BearerAuth":[]}],"operationId":"describeFaxMessage","tags":["Fax Messages"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/messages/{id}":{"get":{"summary":"Gets a single Message","security":[{"BearerAuth":[]}],"operationId":"getFaxMessageById","tags":["Fax Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxMessage to get"}],"responses":{"200":{"description":"FaxMessage with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxMessage not found"}}},"put":{"summary":"Update an existing Message","security":[{"BearerAuth":[]}],"operationId":"updateFaxMessageById","tags":["Fax Messages"],"requestBody":{"required":true,"description":"data for updating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"failMessage":{"type":"string","default":null},"readAt":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxMessage to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxMessage not found"}}}},"/fax/messages/{id}/download":{"get":{"summary":"Get message","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Fax Message"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxMessage"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/messages/":{"post":{"summary":"Create message and send Fax","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Fax Messages"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/messages/{id}/accept":{"put":{"summary":"Accepts message","security":[{"BearerAuth":[]}],"operationId":"accept","tags":["Fax Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/messages/{id}/reject":{"put":{"summary":"Rejects message","security":[{"BearerAuth":[]}],"operationId":"reject","tags":["Fax Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/messages/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Message","security":[{"BearerAuth":[]}],"operationId":"deleteFaxMessageById","tags":["Fax Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxMessage to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxMessage not found"}}}},"/fax/queues":{"get":{"summary":"Gets a list of Queues","security":[{"BearerAuth":[]}],"operationId":"listAllFaxQueue","tags":["Fax Queues"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FaxQueue"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxQueue"}}}}},"206":{"description":"Partial (paged) collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxQueue"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Queue","security":[{"BearerAuth":[]}],"operationId":"createFaxQueue","tags":["Fax Queues"],"requestBody":{"required":true,"description":"data for creating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]},"lastAgent":{"type":"integer","default":0}},"required":["name","timeout","strategy"]}}}},"responses":{"201":{"description":"FaxQueue successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/queues/describe":{"get":{"summary":"Gets table info about Queues","security":[{"BearerAuth":[]}],"operationId":"describeFaxQueue","tags":["Fax Queues"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/queues/{id}":{"get":{"summary":"Gets a single Queue","security":[{"BearerAuth":[]}],"operationId":"getFaxQueueById","tags":["Fax Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue to get"}],"responses":{"200":{"description":"FaxQueue with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxQueue not found"}}},"put":{"summary":"Update an existing Queue","security":[{"BearerAuth":[]}],"operationId":"updateFaxQueueById","tags":["Fax Queues"],"requestBody":{"required":true,"description":"data for updating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]},"lastAgent":{"type":"integer","default":0}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxQueue not found"}}}},"/fax/queues/{id}/members":{"get":{"summary":"GetMembers","security":[{"BearerAuth":[]}],"operationId":"getMembers","tags":["Fax Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/queues/{id}/teams":{"get":{"summary":"Gets queues list","security":[{"BearerAuth":[]}],"operationId":"getTeams","tags":["Fax Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add teams to a queue","security":[{"BearerAuth":[]}],"operationId":"addTeams","tags":["Fax Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove teams from a queue","security":[{"BearerAuth":[]}],"operationId":"removeTeams","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/queues/{id}/users":{"get":{"summary":"Gets queue agents","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Fax Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a queue","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Fax Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a queue","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Fax Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/queues/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Queue","security":[{"BearerAuth":[]}],"operationId":"deleteFaxQueueById","tags":["Fax Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxQueue not found"}}}},"/fax/reports/queue":{"get":{"summary":"Gets a list of Fax Queue Reports","security":[{"BearerAuth":[]}],"operationId":"listAllFaxQueueReport","tags":["Fax Queue Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FaxQueueReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Fax Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxQueueReport"}}}}},"206":{"description":"Partial (paged) collection of Fax Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxQueueReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Fax Queue Report","security":[{"BearerAuth":[]}],"operationId":"createFaxQueueReport","tags":["Fax Queue Reports"],"requestBody":{"required":true,"description":"data for creating a new Fax Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}},"required":["uniqueid"]}}}},"responses":{"201":{"description":"FaxQueueReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/reports/queue/describe":{"get":{"summary":"Gets table info about Fax Queue Reports","security":[{"BearerAuth":[]}],"operationId":"describeFaxQueueReport","tags":["Fax Queue Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/reports/queue/{id}":{"get":{"summary":"Gets a single Fax Queue Report","security":[{"BearerAuth":[]}],"operationId":"getFaxQueueReportById","tags":["Fax Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueueReport to get"}],"responses":{"200":{"description":"FaxQueueReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxQueueReport not found"}}},"put":{"summary":"Update an existing Fax Queue Report","security":[{"BearerAuth":[]}],"operationId":"updateFaxQueueReportById","tags":["Fax Queue Reports"],"requestBody":{"required":true,"description":"data for updating a new Fax Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueueReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxQueueReport not found"}}}},"/fax/reports/queue/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Fax Queue Report","security":[{"BearerAuth":[]}],"operationId":"deleteFaxQueueReportById","tags":["Fax Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueueReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxQueueReport not found"}}}},"/fax/reports/transfer":{"get":{"summary":"Gets a list of Fax Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"listAllFaxTransferReport","tags":["Fax Transfer Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FaxTransferReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Fax Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxTransferReport"}}}}},"206":{"description":"Partial (paged) collection of Fax Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxTransferReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Fax Transfer Report","security":[{"BearerAuth":[]}],"operationId":"createFaxTransferReport","tags":["Fax Transfer Reports"],"requestBody":{"required":true,"description":"data for creating a new Fax Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}},"required":["uniqueid","type","transferredAt"]}}}},"responses":{"201":{"description":"FaxTransferReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/reports/transfer/describe":{"get":{"summary":"Gets table info about Fax Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"describeFaxTransferReport","tags":["Fax Transfer Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/reports/transfer/{id}":{"get":{"summary":"Gets a single Fax Transfer Report","security":[{"BearerAuth":[]}],"operationId":"getFaxTransferReportById","tags":["Fax Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxTransferReport to get"}],"responses":{"200":{"description":"FaxTransferReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxTransferReport not found"}}},"put":{"summary":"Update an existing Fax Transfer Report","security":[{"BearerAuth":[]}],"operationId":"updateFaxTransferReportById","tags":["Fax Transfer Reports"],"requestBody":{"required":true,"description":"data for updating a new Fax Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxTransferReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxTransferReport not found"}}}},"/fax/reports/transfer/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Fax Transfer Report","security":[{"BearerAuth":[]}],"operationId":"deleteFaxTransferReportById","tags":["Fax Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxTransferReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxTransferReport not found"}}}},"/integrations/desk/accounts":{"get":{"summary":"Gets a list of Desk Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllDeskAccount","tags":["Desk Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each DeskAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Desk Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeskAccount"}}}}},"206":{"description":"Partial (paged) collection of Desk Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeskAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Desk Account","security":[{"BearerAuth":[]}],"operationId":"createDeskAccount","tags":["Desk Accounts"],"requestBody":{"required":true,"description":"data for creating a new Desk Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"remoteUri":{"type":"string"},"authType":{"type":"string","enum":["basic"],"default":"basic"},"password":{"type":"string"},"consumerKey":{"type":"string"},"consumerSecret":{"type":"string"},"token":{"type":"string"},"tokenSecret":{"type":"string"},"serverUrl":{"type":"string"},"type":{"type":"string","enum":["integrationTab","newTab"],"default":"integrationTab"}}}}}},"responses":{"201":{"description":"DeskAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/accounts/{id}":{"get":{"summary":"Gets a single Desk Account","security":[{"BearerAuth":[]}],"operationId":"getDeskAccountById","tags":["Desk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskAccount to get"}],"responses":{"200":{"description":"DeskAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskAccount not found"}}},"put":{"summary":"Update an existing Desk Account","security":[{"BearerAuth":[]}],"operationId":"updateDeskAccountById","tags":["Desk Accounts"],"requestBody":{"required":true,"description":"data for updating a new Desk Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"remoteUri":{"type":"string"},"authType":{"type":"string","enum":["basic"],"default":"basic"},"password":{"type":"string"},"consumerKey":{"type":"string"},"consumerSecret":{"type":"string"},"token":{"type":"string"},"tokenSecret":{"type":"string"},"serverUrl":{"type":"string"},"type":{"type":"string","enum":["integrationTab","newTab"],"default":"integrationTab"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskAccount not found"}}}},"/integrations/desk/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Desk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Desk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Desk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Desk Account","security":[{"BearerAuth":[]}],"operationId":"deleteDeskAccountById","tags":["Desk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskAccount not found"}}}},"/integrations/desk/configurations":{"get":{"summary":"Gets a list of Desk Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllDeskConfiguration","tags":["Desk Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each DeskConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Desk Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeskConfiguration"}}}}},"206":{"description":"Partial (paged) collection of Desk Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeskConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Desk Configuration","security":[{"BearerAuth":[]}],"operationId":"createDeskConfiguration","tags":["Desk Configurations"],"requestBody":{"required":true,"description":"data for creating a new Desk Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"DeskConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/configurations/{id}":{"get":{"summary":"Gets a single Desk Configuration","security":[{"BearerAuth":[]}],"operationId":"getDeskConfigurationById","tags":["Desk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskConfiguration to get"}],"responses":{"200":{"description":"DeskConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskConfiguration not found"}}},"put":{"summary":"Update an existing Desk Configuration","security":[{"BearerAuth":[]}],"operationId":"updateDeskConfigurationById","tags":["Desk Configurations"],"requestBody":{"required":true,"description":"data for updating a new Desk Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskConfiguration not found"}}}},"/integrations/desk/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Desk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Desk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Desk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/configurations/{id}/tags":{"get":{"summary":"Gets configurations tags","security":[{"BearerAuth":[]}],"operationId":"getTags","tags":["Desk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Sets new tags","security":[{"BearerAuth":[]}],"operationId":"setTags","tags":["Desk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskConfiguration"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Desk Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteDeskConfigurationById","tags":["Desk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskConfiguration not found"}}}},"/integrations/desk/fields":{"get":{"summary":"Gets a list of Desk Fields","security":[{"BearerAuth":[]}],"operationId":"listAllDeskField","tags":["Desk Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each DeskField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Desk Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeskField"}}}}},"206":{"description":"Partial (paged) collection of Desk Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeskField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Desk Field","security":[{"BearerAuth":[]}],"operationId":"createDeskField","tags":["Desk Fields"],"requestBody":{"required":true,"description":"data for creating a new Desk Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"DeskField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/fields/{id}":{"get":{"summary":"Gets a single Desk Field","security":[{"BearerAuth":[]}],"operationId":"getDeskFieldById","tags":["Desk Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskField to get"}],"responses":{"200":{"description":"DeskField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskField not found"}}},"put":{"summary":"Update an existing Desk Field","security":[{"BearerAuth":[]}],"operationId":"updateDeskFieldById","tags":["Desk Fields"],"requestBody":{"required":true,"description":"data for updating a new Desk Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskField not found"}}}},"/integrations/desk/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Desk Field","security":[{"BearerAuth":[]}],"operationId":"deleteDeskFieldById","tags":["Desk Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskField not found"}}}},"/integrations/dynamics365/accounts":{"get":{"summary":"Gets a list of Dynamics365 Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllDynamics365Account","tags":["Dynamics365 Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Dynamics365Account"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Dynamics365 Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dynamics365Account"}}}}},"206":{"description":"Partial (paged) collection of Dynamics365 Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dynamics365Account"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Dynamics365 Account","security":[{"BearerAuth":[]}],"operationId":"createDynamics365Account","tags":["Dynamics365 Accounts"],"requestBody":{"required":true,"description":"data for creating a new Dynamics365 Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"remoteUri":{"type":"string"},"tenantId":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"serverUrl":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"Dynamics365Account successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dynamics365Account"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/dynamics365/accounts/{id}":{"get":{"summary":"Gets a single Dynamics365 Account","security":[{"BearerAuth":[]}],"operationId":"getDynamics365AccountById","tags":["Dynamics365 Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Account to get"}],"responses":{"200":{"description":"Dynamics365Account with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dynamics365Account"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Account not found"}}},"put":{"summary":"Update an existing Dynamics365 Account","security":[{"BearerAuth":[]}],"operationId":"updateDynamics365AccountById","tags":["Dynamics365 Accounts"],"requestBody":{"required":true,"description":"data for updating a new Dynamics365 Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"remoteUri":{"type":"string"},"tenantId":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"serverUrl":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Account to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Account not found"}}}},"/integrations/dynamics365/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Dynamics365 Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Account"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Dynamics365 Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Account"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/dynamics365/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Dynamics365 Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Account"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/dynamics365/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Dynamics365 Account","security":[{"BearerAuth":[]}],"operationId":"deleteDynamics365AccountById","tags":["Dynamics365 Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Account to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Account not found"}}}},"/integrations/dynamics365/configurations":{"get":{"summary":"Gets a list of Dynamics365 Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllDynamics365Configuration","tags":["Dynamics365 Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Dynamics365Configuration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Dynamics365 Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dynamics365Configuration"}}}}},"206":{"description":"Partial (paged) collection of Dynamics365 Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dynamics365Configuration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Dynamics365 Configuration","security":[{"BearerAuth":[]}],"operationId":"createDynamics365Configuration","tags":["Dynamics365 Configurations"],"requestBody":{"required":true,"description":"data for creating a new Dynamics365 Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"ticketType":{"type":"string","enum":["incident","phonecall"],"default":"incident"}}}}}},"responses":{"201":{"description":"Dynamics365Configuration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dynamics365Configuration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/dynamics365/configurations/{id}":{"get":{"summary":"Gets a single Dynamics365 Configuration","security":[{"BearerAuth":[]}],"operationId":"getDynamics365ConfigurationById","tags":["Dynamics365 Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Configuration to get"}],"responses":{"200":{"description":"Dynamics365Configuration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dynamics365Configuration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Configuration not found"}}},"put":{"summary":"Update an existing Dynamics365 Configuration","security":[{"BearerAuth":[]}],"operationId":"updateDynamics365ConfigurationById","tags":["Dynamics365 Configurations"],"requestBody":{"required":true,"description":"data for updating a new Dynamics365 Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"ticketType":{"type":"string","enum":["incident","phonecall"],"default":"incident"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Configuration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Configuration not found"}}}},"/integrations/dynamics365/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Dynamics365 Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Configuration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/dynamics365/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Dynamics365 Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Configuration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/dynamics365/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Dynamics365 Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Configuration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/dynamics365/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Dynamics365 Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteDynamics365ConfigurationById","tags":["Dynamics365 Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Configuration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Configuration not found"}}}},"/integrations/dynamics365/fields":{"get":{"summary":"Gets a list of Dynamics365 Fields","security":[{"BearerAuth":[]}],"operationId":"listAllDynamics365Field","tags":["Dynamics365 Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Dynamics365Field"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Dynamics365 Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dynamics365Field"}}}}},"206":{"description":"Partial (paged) collection of Dynamics365 Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dynamics365Field"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Dynamics365 Field","security":[{"BearerAuth":[]}],"operationId":"createDynamics365Field","tags":["Dynamics365 Fields"],"requestBody":{"required":true,"description":"data for creating a new Dynamics365 Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"Dynamics365Field successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dynamics365Field"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/dynamics365/fields/{id}":{"get":{"summary":"Gets a single Dynamics365 Field","security":[{"BearerAuth":[]}],"operationId":"getDynamics365FieldById","tags":["Dynamics365 Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Field to get"}],"responses":{"200":{"description":"Dynamics365Field with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dynamics365Field"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Field not found"}}},"put":{"summary":"Update an existing Dynamics365 Field","security":[{"BearerAuth":[]}],"operationId":"updateDynamics365FieldById","tags":["Dynamics365 Fields"],"requestBody":{"required":true,"description":"data for updating a new Dynamics365 Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Field to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Field not found"}}}},"/integrations/dynamics365/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Dynamics365 Field","security":[{"BearerAuth":[]}],"operationId":"deleteDynamics365FieldById","tags":["Dynamics365 Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Field to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Field not found"}}}},"/integrations":{"get":{"summary":"Gets a list of Integrations","security":[{"BearerAuth":[]}],"operationId":"listAllIntegration","tags":["Integrations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Integration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Integrations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Integration"}}}}},"206":{"description":"Partial (paged) collection of Integrations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Integration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Integration","security":[{"BearerAuth":[]}],"operationId":"createIntegration","tags":["Integrations"],"requestBody":{"required":true,"description":"data for creating a new Integration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"},"main":{"type":"string","default":"app.js"},"filename":{"type":"string"},"path":{"type":"string"},"type":{"type":"string"},"size":{"type":"integer"},"active":{"type":"boolean","default":false},"author":{"type":"string"},"logo":{"type":"string"},"state":{"type":"string"},"description":{"type":"string"},"title":{"type":"string"},"remoteUri":{"type":"string"},"link":{"type":"string","default":"#"}},"required":["name","version"]}}}},"responses":{"201":{"description":"Integration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/{id}":{"get":{"summary":"Gets a single Integration","security":[{"BearerAuth":[]}],"operationId":"getIntegrationById","tags":["Integrations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Integration to get"}],"responses":{"200":{"description":"Integration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Integration not found"}}},"put":{"summary":"Update an existing Integration","security":[{"BearerAuth":[]}],"operationId":"updateIntegrationById","tags":["Integrations"],"requestBody":{"required":true,"description":"data for updating a new Integration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"},"main":{"type":"string","default":"app.js"},"filename":{"type":"string"},"path":{"type":"string"},"type":{"type":"string"},"size":{"type":"integer"},"active":{"type":"boolean","default":false},"author":{"type":"string"},"logo":{"type":"string"},"state":{"type":"string"},"description":{"type":"string"},"title":{"type":"string"},"remoteUri":{"type":"string"},"link":{"type":"string","default":"#"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Integration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Integration not found"}}}},"/integrations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Integration","security":[{"BearerAuth":[]}],"operationId":"deleteIntegrationById","tags":["Integrations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Integration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Integration not found"}}}},"/integrations/reports":{"get":{"summary":"Gets a list of Integration Reports","security":[{"BearerAuth":[]}],"operationId":"listAllIntegrationReport","tags":["Integration Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each IntegrationReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Integration Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationReport"}}}}},"206":{"description":"Partial (paged) collection of Integration Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Integration Report","security":[{"BearerAuth":[]}],"operationId":"createIntegrationReport","tags":["Integration Reports"],"requestBody":{"required":true,"description":"data for creating a new Integration Report","content":{"application/json":{"schema":{"type":"object","properties":{"integration":{"type":"string"},"eventChannel":{"type":"string"},"exitStatus":{"type":"string"},"ticketId":{"type":"string"},"integrationId":{"type":"integer"},"contacts":{"type":"string"},"uniqueid":{"type":"string"},"calleridnum":{"type":"string"},"calleridname":{"type":"string"},"queue":{"type":"string"},"interface":{"type":"string"},"membername":{"type":"string"},"agentcalledAt":{"type":"string"},"agentconnectAt":{"type":"string"},"holdtime":{"type":"integer"},"agentcomplete":{"type":"boolean","default":false},"agentcompleteAt":{"type":"string"},"talktime":{"type":"integer"},"agentacw":{"type":"boolean","default":false},"acwtime":{"type":"integer"},"reason":{"type":"string"},"agentringnoanswer":{"type":"boolean","default":false},"agentringnoanswerAt":{"type":"string"},"agentdump":{"type":"boolean","default":false},"agentdumpAt":{"type":"string"},"lastevent":{"type":"string"},"channel":{"type":"string"},"channelstate":{"type":"integer"},"channelstatedesc":{"type":"string"},"connectedlinenum":{"type":"string"},"connectedlinename":{"type":"string"},"language":{"type":"string"},"accountcode":{"type":"string"},"context":{"type":"string"},"exten":{"type":"string"},"priority":{"type":"string"},"destchannel":{"type":"string"},"destchannelstate":{"type":"integer"},"destchannelstatedesc":{"type":"string"},"destcalleridnum":{"type":"string"},"destcalleridname":{"type":"string"},"destconnectedlinenum":{"type":"string"},"destconnectedlinename":{"type":"string"},"destlanguage":{"type":"string"},"destaccountcode":{"type":"string"},"destcontext":{"type":"string"},"destexten":{"type":"string"},"destpriority":{"type":"string"},"destuniqueid":{"type":"string"},"messageId":{"type":"string"},"inReplyTo":{"type":"string"},"subject":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"cc":{"type":"string"},"attachment":{"type":"string"},"html":{"type":"string"},"text":{"type":"string"},"status":{"type":"string","enum":["SENT","SENDING","RECEIVED","FAILED"]},"url":{"type":"string"},"app":{"type":"string"},"appdata":{"type":"string"},"projectId":{"type":"integer"}}}}}},"responses":{"201":{"description":"IntegrationReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/reports/describe":{"get":{"summary":"Gets table info about Integration Reports","security":[{"BearerAuth":[]}],"operationId":"describeIntegrationReport","tags":["Integration Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/reports/{id}":{"get":{"summary":"Gets a single Integration Report","security":[{"BearerAuth":[]}],"operationId":"getIntegrationReportById","tags":["Integration Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the IntegrationReport to get"}],"responses":{"200":{"description":"IntegrationReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"IntegrationReport not found"}}},"put":{"summary":"Update an existing Integration Report","security":[{"BearerAuth":[]}],"operationId":"updateIntegrationReportById","tags":["Integration Reports"],"requestBody":{"required":true,"description":"data for updating a new Integration Report","content":{"application/json":{"schema":{"type":"object","properties":{"integration":{"type":"string"},"eventChannel":{"type":"string"},"exitStatus":{"type":"string"},"ticketId":{"type":"string"},"integrationId":{"type":"integer"},"contacts":{"type":"string"},"uniqueid":{"type":"string"},"calleridnum":{"type":"string"},"calleridname":{"type":"string"},"queue":{"type":"string"},"interface":{"type":"string"},"membername":{"type":"string"},"agentcalledAt":{"type":"string"},"agentconnectAt":{"type":"string"},"holdtime":{"type":"integer"},"agentcomplete":{"type":"boolean","default":false},"agentcompleteAt":{"type":"string"},"talktime":{"type":"integer"},"agentacw":{"type":"boolean","default":false},"acwtime":{"type":"integer"},"reason":{"type":"string"},"agentringnoanswer":{"type":"boolean","default":false},"agentringnoanswerAt":{"type":"string"},"agentdump":{"type":"boolean","default":false},"agentdumpAt":{"type":"string"},"lastevent":{"type":"string"},"channel":{"type":"string"},"channelstate":{"type":"integer"},"channelstatedesc":{"type":"string"},"connectedlinenum":{"type":"string"},"connectedlinename":{"type":"string"},"language":{"type":"string"},"accountcode":{"type":"string"},"context":{"type":"string"},"exten":{"type":"string"},"priority":{"type":"string"},"destchannel":{"type":"string"},"destchannelstate":{"type":"integer"},"destchannelstatedesc":{"type":"string"},"destcalleridnum":{"type":"string"},"destcalleridname":{"type":"string"},"destconnectedlinenum":{"type":"string"},"destconnectedlinename":{"type":"string"},"destlanguage":{"type":"string"},"destaccountcode":{"type":"string"},"destcontext":{"type":"string"},"destexten":{"type":"string"},"destpriority":{"type":"string"},"destuniqueid":{"type":"string"},"messageId":{"type":"string"},"inReplyTo":{"type":"string"},"subject":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"cc":{"type":"string"},"attachment":{"type":"string"},"html":{"type":"string"},"text":{"type":"string"},"status":{"type":"string","enum":["SENT","SENDING","RECEIVED","FAILED"]},"url":{"type":"string"},"app":{"type":"string"},"appdata":{"type":"string"},"projectId":{"type":"integer"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the IntegrationReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"IntegrationReport not found"}}}},"/integrations/reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Integration Report","security":[{"BearerAuth":[]}],"operationId":"deleteIntegrationReportById","tags":["Integration Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the IntegrationReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"IntegrationReport not found"}}}},"/intervals":{"get":{"summary":"Gets a list of Intervals","security":[{"BearerAuth":[]}],"operationId":"listAllInterval","tags":["Intervals"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Interval"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Intervals","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Interval"}}}}},"206":{"description":"Partial (paged) collection of Intervals","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Interval"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Interval","security":[{"BearerAuth":[]}],"operationId":"createInterval","tags":["Intervals"],"requestBody":{"required":true,"description":"data for creating a new Interval","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string"}}}}}},"responses":{"201":{"description":"Interval successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Interval"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/intervals/{id}":{"get":{"summary":"Gets a single Interval","security":[{"BearerAuth":[]}],"operationId":"getIntervalById","tags":["Intervals"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Interval to get"}],"responses":{"200":{"description":"Interval with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Interval"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Interval not found"}}},"put":{"summary":"Update an existing Interval","security":[{"BearerAuth":[]}],"operationId":"updateIntervalById","tags":["Intervals"],"requestBody":{"required":true,"description":"data for updating a new Interval","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Interval to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Interval not found"}}}},"/intervals/{id}/sub_intervals":{"get":{"summary":"Get sub intervals set","security":[{"BearerAuth":[]}],"operationId":"getIntervals","tags":["Intervals"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Interval"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new sub interval","security":[{"BearerAuth":[]}],"operationId":"addInterval","tags":["Intervals"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Interval"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/intervals/{id}/sub_intervals/create_many":{"post":{"summary":"Create new sub intervals set","security":[{"BearerAuth":[]}],"operationId":"addIntervals","tags":["Intervals"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Interval"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/intervals/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Interval","security":[{"BearerAuth":[]}],"operationId":"deleteIntervalById","tags":["Intervals"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Interval to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Interval not found"}}}},"/integrations/freshdesk/accounts":{"get":{"summary":"Gets a list of Freshdesk Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllFreshdeskAccount","tags":["Freshdesk Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FreshdeskAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Freshdesk Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshdeskAccount"}}}}},"206":{"description":"Partial (paged) collection of Freshdesk Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshdeskAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Freshdesk Account","security":[{"BearerAuth":[]}],"operationId":"createFreshdeskAccount","tags":["Freshdesk Accounts"],"requestBody":{"required":true,"description":"data for creating a new Freshdesk Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"apiKey":{"type":"string"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"}}}}}},"responses":{"201":{"description":"FreshdeskAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshdeskAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/accounts/{id}":{"get":{"summary":"Gets a single Freshdesk Account","security":[{"BearerAuth":[]}],"operationId":"getFreshdeskAccountById","tags":["Freshdesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskAccount to get"}],"responses":{"200":{"description":"FreshdeskAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshdeskAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskAccount not found"}}},"put":{"summary":"Update an existing Freshdesk Account","security":[{"BearerAuth":[]}],"operationId":"updateFreshdeskAccountById","tags":["Freshdesk Accounts"],"requestBody":{"required":true,"description":"data for updating a new Freshdesk Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"apiKey":{"type":"string"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskAccount not found"}}}},"/integrations/freshdesk/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Freshdesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Freshdesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Freshdesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Freshdesk Account","security":[{"BearerAuth":[]}],"operationId":"deleteFreshdeskAccountById","tags":["Freshdesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskAccount not found"}}}},"/integrations/freshdesk/configurations":{"get":{"summary":"Gets a list of Freshdesk Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllFreshdeskConfiguration","tags":["Freshdesk Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FreshdeskConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Freshdesk Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshdeskConfiguration"}}}}},"206":{"description":"Partial (paged) collection of Freshdesk Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshdeskConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Freshdesk Configuration","security":[{"BearerAuth":[]}],"operationId":"createFreshdeskConfiguration","tags":["Freshdesk Configurations"],"requestBody":{"required":true,"description":"data for creating a new Freshdesk Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"FreshdeskConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshdeskConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/configurations/{id}":{"get":{"summary":"Gets a single Freshdesk Configuration","security":[{"BearerAuth":[]}],"operationId":"getFreshdeskConfigurationById","tags":["Freshdesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskConfiguration to get"}],"responses":{"200":{"description":"FreshdeskConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshdeskConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskConfiguration not found"}}},"put":{"summary":"Update an existing Freshdesk Configuration","security":[{"BearerAuth":[]}],"operationId":"updateFreshdeskConfigurationById","tags":["Freshdesk Configurations"],"requestBody":{"required":true,"description":"data for updating a new Freshdesk Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskConfiguration not found"}}}},"/integrations/freshdesk/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Freshdesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Freshdesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Freshdesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/configurations/{id}/tags":{"get":{"summary":"Gets configurations tags","security":[{"BearerAuth":[]}],"operationId":"getTags","tags":["Freshdesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Sets new tags","security":[{"BearerAuth":[]}],"operationId":"setTags","tags":["Freshdesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskConfiguration"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Freshdesk Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteFreshdeskConfigurationById","tags":["Freshdesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskConfiguration not found"}}}},"/integrations/freshdesk/fields":{"get":{"summary":"Gets a list of Freshdesk Fields","security":[{"BearerAuth":[]}],"operationId":"listAllFreshdeskField","tags":["Freshdesk Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FreshdeskField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Freshdesk Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshdeskField"}}}}},"206":{"description":"Partial (paged) collection of Freshdesk Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshdeskField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Freshdesk Field","security":[{"BearerAuth":[]}],"operationId":"createFreshdeskField","tags":["Freshdesk Fields"],"requestBody":{"required":true,"description":"data for creating a new Freshdesk Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"FreshdeskField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshdeskField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/fields/{id}":{"get":{"summary":"Gets a single Freshdesk Field","security":[{"BearerAuth":[]}],"operationId":"getFreshdeskFieldById","tags":["Freshdesk Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskField to get"}],"responses":{"200":{"description":"FreshdeskField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshdeskField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskField not found"}}},"put":{"summary":"Update an existing Freshdesk Field","security":[{"BearerAuth":[]}],"operationId":"updateFreshdeskFieldById","tags":["Freshdesk Fields"],"requestBody":{"required":true,"description":"data for updating a new Freshdesk Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskField not found"}}}},"/integrations/freshdesk/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Freshdesk Field","security":[{"BearerAuth":[]}],"operationId":"deleteFreshdeskFieldById","tags":["Freshdesk Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskField not found"}}}},"/integrations/freshsales/accounts":{"get":{"summary":"Gets a list of Freshsales Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllFreshsalesAccount","tags":["Freshsales Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FreshsalesAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Freshsales Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshsalesAccount"}}}}},"206":{"description":"Partial (paged) collection of Freshsales Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshsalesAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Freshsales Account","security":[{"BearerAuth":[]}],"operationId":"createFreshsalesAccount","tags":["Freshsales Accounts"],"requestBody":{"required":true,"description":"data for creating a new Freshsales Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"apiKey":{"type":"string"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"}}}}}},"responses":{"201":{"description":"FreshsalesAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshsalesAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshsales/accounts/{id}":{"get":{"summary":"Gets a single Freshsales Account","security":[{"BearerAuth":[]}],"operationId":"getFreshsalesAccountById","tags":["Freshsales Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesAccount to get"}],"responses":{"200":{"description":"FreshsalesAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshsalesAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesAccount not found"}}},"put":{"summary":"Update an existing Freshsales Account","security":[{"BearerAuth":[]}],"operationId":"updateFreshsalesAccountById","tags":["Freshsales Accounts"],"requestBody":{"required":true,"description":"data for updating a new Freshsales Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"apiKey":{"type":"string"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesAccount not found"}}}},"/integrations/freshsales/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Freshsales Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Freshsales Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshsales/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Freshsales Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshsales/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Freshsales Account","security":[{"BearerAuth":[]}],"operationId":"deleteFreshsalesAccountById","tags":["Freshsales Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesAccount not found"}}}},"/integrations/freshsales/configurations":{"get":{"summary":"Gets a list of Freshsales Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllFreshsalesConfiguration","tags":["Freshsales Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FreshsalesConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Freshsales Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshsalesConfiguration"}}}}},"206":{"description":"Partial (paged) collection of Freshsales Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshsalesConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Freshsales Configuration","security":[{"BearerAuth":[]}],"operationId":"createFreshsalesConfiguration","tags":["Freshsales Configurations"],"requestBody":{"required":true,"description":"data for creating a new Freshsales Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"FreshsalesConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshsalesConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshsales/configurations/{id}":{"get":{"summary":"Gets a single Freshsales Configuration","security":[{"BearerAuth":[]}],"operationId":"getFreshsalesConfigurationById","tags":["Freshsales Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesConfiguration to get"}],"responses":{"200":{"description":"FreshsalesConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshsalesConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesConfiguration not found"}}},"put":{"summary":"Update an existing Freshsales Configuration","security":[{"BearerAuth":[]}],"operationId":"updateFreshsalesConfigurationById","tags":["Freshsales Configurations"],"requestBody":{"required":true,"description":"data for updating a new Freshsales Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesConfiguration not found"}}}},"/integrations/freshsales/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Freshsales Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshsales/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Freshsales Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshsales/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Freshsales Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshsales/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Freshsales Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteFreshsalesConfigurationById","tags":["Freshsales Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesConfiguration not found"}}}},"/integrations/freshsales/fields":{"get":{"summary":"Gets a list of Freshsales Fields","security":[{"BearerAuth":[]}],"operationId":"listAllFreshsalesField","tags":["Freshsales Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FreshsalesField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Freshsales Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshsalesField"}}}}},"206":{"description":"Partial (paged) collection of Freshsales Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshsalesField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Freshsales Field","security":[{"BearerAuth":[]}],"operationId":"createFreshsalesField","tags":["Freshsales Fields"],"requestBody":{"required":true,"description":"data for creating a new Freshsales Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"FreshsalesField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshsalesField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshsales/fields/{id}":{"get":{"summary":"Gets a single Freshsales Field","security":[{"BearerAuth":[]}],"operationId":"getFreshsalesFieldById","tags":["Freshsales Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesField to get"}],"responses":{"200":{"description":"FreshsalesField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshsalesField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesField not found"}}},"put":{"summary":"Update an existing Freshsales Field","security":[{"BearerAuth":[]}],"operationId":"updateFreshsalesFieldById","tags":["Freshsales Fields"],"requestBody":{"required":true,"description":"data for updating a new Freshsales Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesField not found"}}}},"/integrations/freshsales/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Freshsales Field","security":[{"BearerAuth":[]}],"operationId":"deleteFreshsalesFieldById","tags":["Freshsales Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesField not found"}}}},"/integrations/salesforce/accounts":{"get":{"summary":"Gets a list of Salesforce Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllSalesforceAccount","tags":["Salesforce Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SalesforceAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Salesforce Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SalesforceAccount"}}}}},"206":{"description":"Partial (paged) collection of Salesforce Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SalesforceAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Salesforce Account","security":[{"BearerAuth":[]}],"operationId":"createSalesforceAccount","tags":["Salesforce Accounts"],"requestBody":{"required":true,"description":"data for creating a new Salesforce Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"remoteUri":{"type":"string"},"password":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"securityToken":{"type":"string"},"serverUrl":{"type":"string"},"type":{"type":"string","enum":["integrationTab","newTab"],"default":"integrationTab"}}}}}},"responses":{"201":{"description":"SalesforceAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/salesforce/accounts/{id}":{"get":{"summary":"Gets a single Salesforce Account","security":[{"BearerAuth":[]}],"operationId":"getSalesforceAccountById","tags":["Salesforce Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceAccount to get"}],"responses":{"200":{"description":"SalesforceAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceAccount not found"}}},"put":{"summary":"Update an existing Salesforce Account","security":[{"BearerAuth":[]}],"operationId":"updateSalesforceAccountById","tags":["Salesforce Accounts"],"requestBody":{"required":true,"description":"data for updating a new Salesforce Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"remoteUri":{"type":"string"},"password":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"securityToken":{"type":"string"},"serverUrl":{"type":"string"},"type":{"type":"string","enum":["integrationTab","newTab"],"default":"integrationTab"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceAccount not found"}}}},"/integrations/salesforce/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Salesforce Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Salesforce Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/salesforce/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Salesforce Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/salesforce/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Salesforce Account","security":[{"BearerAuth":[]}],"operationId":"deleteSalesforceAccountById","tags":["Salesforce Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceAccount not found"}}}},"/integrations/salesforce/configurations":{"get":{"summary":"Gets a list of Salesforce Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllSalesforceConfiguration","tags":["Salesforce Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SalesforceConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Salesforce Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SalesforceConfiguration"}}}}},"206":{"description":"Partial (paged) collection of Salesforce Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SalesforceConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Salesforce Configuration","security":[{"BearerAuth":[]}],"operationId":"createSalesforceConfiguration","tags":["Salesforce Configurations"],"requestBody":{"required":true,"description":"data for creating a new Salesforce Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"ticketType":{"type":"string","enum":["Task","Case"],"default":"Task"},"moduleSearch":{"type":"string","enum":["contact_lead","contact","lead"],"default":"contact_lead"},"moduleCreate":{"type":"string","enum":["nothing","contact","lead"],"default":"lead"}}}}}},"responses":{"201":{"description":"SalesforceConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/salesforce/configurations/{id}":{"get":{"summary":"Gets a single Salesforce Configuration","security":[{"BearerAuth":[]}],"operationId":"getSalesforceConfigurationById","tags":["Salesforce Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceConfiguration to get"}],"responses":{"200":{"description":"SalesforceConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceConfiguration not found"}}},"put":{"summary":"Update an existing Salesforce Configuration","security":[{"BearerAuth":[]}],"operationId":"updateSalesforceConfigurationById","tags":["Salesforce Configurations"],"requestBody":{"required":true,"description":"data for updating a new Salesforce Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"ticketType":{"type":"string","enum":["Task","Case"],"default":"Task"},"moduleSearch":{"type":"string","enum":["contact_lead","contact","lead"],"default":"contact_lead"},"moduleCreate":{"type":"string","enum":["nothing","contact","lead"],"default":"lead"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceConfiguration not found"}}}},"/integrations/salesforce/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Salesforce Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/salesforce/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Salesforce Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/salesforce/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Salesforce Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/salesforce/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Salesforce Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteSalesforceConfigurationById","tags":["Salesforce Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceConfiguration not found"}}}},"/integrations/salesforce/fields":{"get":{"summary":"Gets a list of Salesforce Fields","security":[{"BearerAuth":[]}],"operationId":"listAllSalesforceField","tags":["Salesforce Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SalesforceField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Salesforce Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SalesforceField"}}}}},"206":{"description":"Partial (paged) collection of Salesforce Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SalesforceField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Salesforce Field","security":[{"BearerAuth":[]}],"operationId":"createSalesforceField","tags":["Salesforce Fields"],"requestBody":{"required":true,"description":"data for creating a new Salesforce Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"SalesforceField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/salesforce/fields/{id}":{"get":{"summary":"Gets a single Salesforce Field","security":[{"BearerAuth":[]}],"operationId":"getSalesforceFieldById","tags":["Salesforce Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceField to get"}],"responses":{"200":{"description":"SalesforceField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceField not found"}}},"put":{"summary":"Update an existing Salesforce Field","security":[{"BearerAuth":[]}],"operationId":"updateSalesforceFieldById","tags":["Salesforce Fields"],"requestBody":{"required":true,"description":"data for updating a new Salesforce Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceField not found"}}}},"/integrations/salesforce/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Salesforce Field","security":[{"BearerAuth":[]}],"operationId":"deleteSalesforceFieldById","tags":["Salesforce Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceField not found"}}}},"/integrations/servicenow/accounts":{"get":{"summary":"Gets a list of Servicenow Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllServicenowAccount","tags":["Servicenow Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ServicenowAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Servicenow Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServicenowAccount"}}}}},"206":{"description":"Partial (paged) collection of Servicenow Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServicenowAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Servicenow Account","security":[{"BearerAuth":[]}],"operationId":"createServicenowAccount","tags":["Servicenow Accounts"],"requestBody":{"required":true,"description":"data for creating a new Servicenow Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"email":{"type":"string"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"}}}}}},"responses":{"201":{"description":"ServicenowAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicenowAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/servicenow/accounts/{id}":{"get":{"summary":"Gets a single Servicenow Account","security":[{"BearerAuth":[]}],"operationId":"getServicenowAccountById","tags":["Servicenow Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowAccount to get"}],"responses":{"200":{"description":"ServicenowAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicenowAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowAccount not found"}}},"put":{"summary":"Update an existing Servicenow Account","security":[{"BearerAuth":[]}],"operationId":"updateServicenowAccountById","tags":["Servicenow Accounts"],"requestBody":{"required":true,"description":"data for updating a new Servicenow Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"email":{"type":"string"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowAccount not found"}}}},"/integrations/servicenow/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Servicenow Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Servicenow Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/servicenow/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Servicenow Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/servicenow/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Servicenow Account","security":[{"BearerAuth":[]}],"operationId":"deleteServicenowAccountById","tags":["Servicenow Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowAccount not found"}}}},"/integrations/servicenow/configurations":{"get":{"summary":"Gets a list of Servicenow Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllServicenowConfiguration","tags":["Servicenow Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ServicenowConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Servicenow Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServicenowConfiguration"}}}}},"206":{"description":"Partial (paged) collection of Servicenow Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServicenowConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Servicenow Configuration","security":[{"BearerAuth":[]}],"operationId":"createServicenowConfiguration","tags":["Servicenow Configurations"],"requestBody":{"required":true,"description":"data for creating a new Servicenow Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"ServicenowConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicenowConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/servicenow/configurations/{id}":{"get":{"summary":"Gets a single Servicenow Configuration","security":[{"BearerAuth":[]}],"operationId":"getServicenowConfigurationById","tags":["Servicenow Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowConfiguration to get"}],"responses":{"200":{"description":"ServicenowConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicenowConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowConfiguration not found"}}},"put":{"summary":"Update an existing Servicenow Configuration","security":[{"BearerAuth":[]}],"operationId":"updateServicenowConfigurationById","tags":["Servicenow Configurations"],"requestBody":{"required":true,"description":"data for updating a new Servicenow Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowConfiguration not found"}}}},"/integrations/servicenow/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Servicenow Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/servicenow/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Servicenow Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/servicenow/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Servicenow Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/servicenow/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Servicenow Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteServicenowConfigurationById","tags":["Servicenow Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowConfiguration not found"}}}},"/integrations/servicenow/fields":{"get":{"summary":"Gets a list of Servicenow Fields","security":[{"BearerAuth":[]}],"operationId":"listAllServicenowField","tags":["Servicenow Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ServicenowField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Servicenow Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServicenowField"}}}}},"206":{"description":"Partial (paged) collection of Servicenow Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServicenowField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Servicenow Field","security":[{"BearerAuth":[]}],"operationId":"createServicenowField","tags":["Servicenow Fields"],"requestBody":{"required":true,"description":"data for creating a new Servicenow Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"ServicenowField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicenowField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/servicenow/fields/{id}":{"get":{"summary":"Gets a single Servicenow Field","security":[{"BearerAuth":[]}],"operationId":"getServicenowFieldById","tags":["Servicenow Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowField to get"}],"responses":{"200":{"description":"ServicenowField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicenowField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowField not found"}}},"put":{"summary":"Update an existing Servicenow Field","security":[{"BearerAuth":[]}],"operationId":"updateServicenowFieldById","tags":["Servicenow Fields"],"requestBody":{"required":true,"description":"data for updating a new Servicenow Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowField not found"}}}},"/integrations/servicenow/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Servicenow Field","security":[{"BearerAuth":[]}],"operationId":"deleteServicenowFieldById","tags":["Servicenow Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowField not found"}}}},"/integrations/sugarcrm/accounts":{"get":{"summary":"Gets a list of Sugarcrm Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllSugarcrmAccount","tags":["Sugarcrm Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SugarcrmAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Sugarcrm Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SugarcrmAccount"}}}}},"206":{"description":"Partial (paged) collection of Sugarcrm Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SugarcrmAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Sugarcrm Account","security":[{"BearerAuth":[]}],"operationId":"createSugarcrmAccount","tags":["Sugarcrm Accounts"],"requestBody":{"required":true,"description":"data for creating a new Sugarcrm Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"}}}}}},"responses":{"201":{"description":"SugarcrmAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SugarcrmAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/sugarcrm/accounts/{id}":{"get":{"summary":"Gets a single Sugarcrm Account","security":[{"BearerAuth":[]}],"operationId":"getSugarcrmAccountById","tags":["Sugarcrm Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmAccount to get"}],"responses":{"200":{"description":"SugarcrmAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SugarcrmAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmAccount not found"}}},"put":{"summary":"Update an existing Sugarcrm Account","security":[{"BearerAuth":[]}],"operationId":"updateSugarcrmAccountById","tags":["Sugarcrm Accounts"],"requestBody":{"required":true,"description":"data for updating a new Sugarcrm Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmAccount not found"}}}},"/integrations/sugarcrm/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Sugarcrm Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Sugarcrm Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/sugarcrm/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Sugarcrm Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/sugarcrm/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Sugarcrm Account","security":[{"BearerAuth":[]}],"operationId":"deleteSugarcrmAccountById","tags":["Sugarcrm Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmAccount not found"}}}},"/integrations/sugarcrm/configurations":{"get":{"summary":"Gets a list of SugarCRM Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllSugarcrmConfiguration","tags":["SugarCRM Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SugarcrmConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of SugarCRM Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SugarcrmConfiguration"}}}}},"206":{"description":"Partial (paged) collection of SugarCRM Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SugarcrmConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new SugarCRM Configuration","security":[{"BearerAuth":[]}],"operationId":"createSugarcrmConfiguration","tags":["SugarCRM Configurations"],"requestBody":{"required":true,"description":"data for creating a new SugarCRM Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"SugarcrmConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SugarcrmConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/sugarcrm/configurations/{id}":{"get":{"summary":"Gets a single SugarCRM Configuration","security":[{"BearerAuth":[]}],"operationId":"getSugarcrmConfigurationById","tags":["SugarCRM Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmConfiguration to get"}],"responses":{"200":{"description":"SugarcrmConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SugarcrmConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmConfiguration not found"}}},"put":{"summary":"Update an existing SugarCRM Configuration","security":[{"BearerAuth":[]}],"operationId":"updateSugarcrmConfigurationById","tags":["SugarCRM Configurations"],"requestBody":{"required":true,"description":"data for updating a new SugarCRM Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmConfiguration not found"}}}},"/integrations/sugarcrm/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Sugarcrm Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/sugarcrm/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Sugarcrm Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/sugarcrm/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Sugarcrm Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/sugarcrm/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing SugarCRM Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteSugarcrmConfigurationById","tags":["SugarCRM Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmConfiguration not found"}}}},"/integrations/sugarcrm/fields":{"get":{"summary":"Gets a list of Sugarcrm Fields","security":[{"BearerAuth":[]}],"operationId":"listAllSugarcrmField","tags":["Sugarcrm Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SugarcrmField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Sugarcrm Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SugarcrmField"}}}}},"206":{"description":"Partial (paged) collection of Sugarcrm Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SugarcrmField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Sugarcrm Field","security":[{"BearerAuth":[]}],"operationId":"createSugarcrmField","tags":["Sugarcrm Fields"],"requestBody":{"required":true,"description":"data for creating a new Sugarcrm Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"SugarcrmField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SugarcrmField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/sugarcrm/fields/{id}":{"get":{"summary":"Gets a single Sugarcrm Field","security":[{"BearerAuth":[]}],"operationId":"getSugarcrmFieldById","tags":["Sugarcrm Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmField to get"}],"responses":{"200":{"description":"SugarcrmField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SugarcrmField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmField not found"}}},"put":{"summary":"Update an existing Sugarcrm Field","security":[{"BearerAuth":[]}],"operationId":"updateSugarcrmFieldById","tags":["Sugarcrm Fields"],"requestBody":{"required":true,"description":"data for updating a new Sugarcrm Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmField not found"}}}},"/integrations/sugarcrm/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Sugarcrm Field","security":[{"BearerAuth":[]}],"operationId":"deleteSugarcrmFieldById","tags":["Sugarcrm Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmField not found"}}}},"/integrations/vtiger/accounts":{"get":{"summary":"Gets a list of Vtiger Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllVtigerAccount","tags":["Vtiger Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VtigerAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Vtiger Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VtigerAccount"}}}}},"206":{"description":"Partial (paged) collection of Vtiger Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VtigerAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Vtiger Account","security":[{"BearerAuth":[]}],"operationId":"createVtigerAccount","tags":["Vtiger Accounts"],"requestBody":{"required":true,"description":"data for creating a new Vtiger Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"moduleName":{"type":"string","default":"HelpDesk"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"},"accessKey":{"type":"string"}},"required":["name","username","moduleName","remoteUri","accessKey"]}}}},"responses":{"201":{"description":"VtigerAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VtigerAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/vtiger/accounts/{id}":{"get":{"summary":"Gets a single Vtiger Account","security":[{"BearerAuth":[]}],"operationId":"getVtigerAccountById","tags":["Vtiger Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerAccount to get"}],"responses":{"200":{"description":"VtigerAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VtigerAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerAccount not found"}}},"put":{"summary":"Update an existing Vtiger Account","security":[{"BearerAuth":[]}],"operationId":"updateVtigerAccountById","tags":["Vtiger Accounts"],"requestBody":{"required":true,"description":"data for updating a new Vtiger Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"moduleName":{"type":"string","default":"HelpDesk"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"},"accessKey":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerAccount not found"}}}},"/integrations/vtiger/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Vtiger Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Vtiger Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/vtiger/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Vtiger Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/vtiger/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Vtiger Account","security":[{"BearerAuth":[]}],"operationId":"deleteVtigerAccountById","tags":["Vtiger Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerAccount not found"}}}},"/integrations/vtiger/configurations":{"get":{"summary":"Gets a list of Vtiger Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllVtigerConfiguration","tags":["Vtiger Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VtigerConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Vtiger Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VtigerConfiguration"}}}}},"206":{"description":"Partial (paged) collection of Vtiger Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VtigerConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Vtiger Configuration","security":[{"BearerAuth":[]}],"operationId":"createVtigerConfiguration","tags":["Vtiger Configurations"],"requestBody":{"required":true,"description":"data for creating a new Vtiger Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"VtigerConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VtigerConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/vtiger/configurations/{id}":{"get":{"summary":"Gets a single Vtiger Configuration","security":[{"BearerAuth":[]}],"operationId":"getVtigerConfigurationById","tags":["Vtiger Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerConfiguration to get"}],"responses":{"200":{"description":"VtigerConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VtigerConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerConfiguration not found"}}},"put":{"summary":"Update an existing Vtiger Configuration","security":[{"BearerAuth":[]}],"operationId":"updateVtigerConfigurationById","tags":["Vtiger Configurations"],"requestBody":{"required":true,"description":"data for updating a new Vtiger Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerConfiguration not found"}}}},"/integrations/vtiger/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Vtiger Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/vtiger/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Vtiger Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/vtiger/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Vtiger Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/vtiger/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Vtiger Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteVtigerConfigurationById","tags":["Vtiger Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerConfiguration not found"}}}},"/integrations/vtiger/fields":{"get":{"summary":"Gets a list of Vtiger Fields","security":[{"BearerAuth":[]}],"operationId":"listAllVtigerField","tags":["Vtiger Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VtigerField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Vtiger Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VtigerField"}}}}},"206":{"description":"Partial (paged) collection of Vtiger Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VtigerField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Vtiger Field","security":[{"BearerAuth":[]}],"operationId":"createVtigerField","tags":["Vtiger Fields"],"requestBody":{"required":true,"description":"data for creating a new Vtiger Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"VtigerField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VtigerField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/vtiger/fields/{id}":{"get":{"summary":"Gets a single Vtiger Field","security":[{"BearerAuth":[]}],"operationId":"getVtigerFieldById","tags":["Vtiger Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerField to get"}],"responses":{"200":{"description":"VtigerField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VtigerField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerField not found"}}},"put":{"summary":"Update an existing Vtiger Field","security":[{"BearerAuth":[]}],"operationId":"updateVtigerFieldById","tags":["Vtiger Fields"],"requestBody":{"required":true,"description":"data for updating a new Vtiger Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerField not found"}}}},"/integrations/vtiger/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Vtiger Field","security":[{"BearerAuth":[]}],"operationId":"deleteVtigerFieldById","tags":["Vtiger Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerField not found"}}}},"/integrations/zendesk/accounts":{"get":{"summary":"Gets a list of Zendesk Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllZendeskAccount","tags":["Zendesk Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ZendeskAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Zendesk Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZendeskAccount"}}}}},"206":{"description":"Partial (paged) collection of Zendesk Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZendeskAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Zendesk Account","security":[{"BearerAuth":[]}],"operationId":"createZendeskAccount","tags":["Zendesk Accounts"],"requestBody":{"required":true,"description":"data for creating a new Zendesk Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"token":{"type":"string"},"remoteUri":{"type":"string"},"authType":{"type":"string","enum":["password","token"],"default":"password"},"serverUrl":{"type":"string"},"type":{"type":"string","enum":["integrationTab","newTab"],"default":"integrationTab"}}}}}},"responses":{"201":{"description":"ZendeskAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZendeskAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/accounts/{id}":{"get":{"summary":"Gets a single Zendesk Account","security":[{"BearerAuth":[]}],"operationId":"getZendeskAccountById","tags":["Zendesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskAccount to get"}],"responses":{"200":{"description":"ZendeskAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZendeskAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskAccount not found"}}},"put":{"summary":"Update an existing Zendesk Account","security":[{"BearerAuth":[]}],"operationId":"updateZendeskAccountById","tags":["Zendesk Accounts"],"requestBody":{"required":true,"description":"data for updating a new Zendesk Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"token":{"type":"string"},"remoteUri":{"type":"string"},"authType":{"type":"string","enum":["password","token"],"default":"password"},"serverUrl":{"type":"string"},"type":{"type":"string","enum":["integrationTab","newTab"],"default":"integrationTab"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskAccount not found"}}}},"/integrations/zendesk/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Zendesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Zendesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Zendesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Zendesk Account","security":[{"BearerAuth":[]}],"operationId":"deleteZendeskAccountById","tags":["Zendesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskAccount not found"}}}},"/integrations/zendesk/configurations":{"get":{"summary":"Gets a list of Zendesk Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllZendeskConfiguration","tags":["Zendesk Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ZendeskConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Zendesk Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZendeskConfiguration"}}}}},"206":{"description":"Partial (paged) collection of Zendesk Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZendeskConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Zendesk Configuration","security":[{"BearerAuth":[]}],"operationId":"createZendeskConfiguration","tags":["Zendesk Configurations"],"requestBody":{"required":true,"description":"data for creating a new Zendesk Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"ZendeskConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZendeskConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/configurations/{id}":{"get":{"summary":"Gets a single Zendesk Configuration","security":[{"BearerAuth":[]}],"operationId":"getZendeskConfigurationById","tags":["Zendesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskConfiguration to get"}],"responses":{"200":{"description":"ZendeskConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZendeskConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskConfiguration not found"}}},"put":{"summary":"Update an existing Zendesk Configuration","security":[{"BearerAuth":[]}],"operationId":"updateZendeskConfigurationById","tags":["Zendesk Configurations"],"requestBody":{"required":true,"description":"data for updating a new Zendesk Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskConfiguration not found"}}}},"/integrations/zendesk/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Zendesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Zendesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Zendesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/configurations/{id}/tags":{"get":{"summary":"Gets configurations tags","security":[{"BearerAuth":[]}],"operationId":"getTags","tags":["Zendesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Sets new tags","security":[{"BearerAuth":[]}],"operationId":"setTags","tags":["Zendesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskConfiguration"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Zendesk Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteZendeskConfigurationById","tags":["Zendesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskConfiguration not found"}}}},"/integrations/zendesk/fields":{"get":{"summary":"Gets a list of Zendesk Fields","security":[{"BearerAuth":[]}],"operationId":"listAllZendeskField","tags":["Zendesk Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ZendeskField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Zendesk Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZendeskField"}}}}},"206":{"description":"Partial (paged) collection of Zendesk Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZendeskField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Zendesk Field","security":[{"BearerAuth":[]}],"operationId":"createZendeskField","tags":["Zendesk Fields"],"requestBody":{"required":true,"description":"data for creating a new Zendesk Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"ZendeskField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZendeskField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/fields/{id}":{"get":{"summary":"Gets a single Zendesk Field","security":[{"BearerAuth":[]}],"operationId":"getZendeskFieldById","tags":["Zendesk Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskField to get"}],"responses":{"200":{"description":"ZendeskField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZendeskField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskField not found"}}},"put":{"summary":"Update an existing Zendesk Field","security":[{"BearerAuth":[]}],"operationId":"updateZendeskFieldById","tags":["Zendesk Fields"],"requestBody":{"required":true,"description":"data for updating a new Zendesk Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskField not found"}}}},"/integrations/zendesk/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Zendesk Field","security":[{"BearerAuth":[]}],"operationId":"deleteZendeskFieldById","tags":["Zendesk Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskField not found"}}}},"/integrations/zoho/accounts":{"get":{"summary":"Gets a list of Zoho Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllZohoAccount","tags":["Zoho Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ZohoAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Zoho Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZohoAccount"}}}}},"206":{"description":"Partial (paged) collection of Zoho Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZohoAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Zoho Account","security":[{"BearerAuth":[]}],"operationId":"createZohoAccount","tags":["Zoho Accounts"],"requestBody":{"required":true,"description":"data for creating a new Zoho Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"host":{"type":"string"},"zone":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"serverUrl":{"type":"string"},"code":{"type":"string"},"refreshToken":{"type":"string"}}}}}},"responses":{"201":{"description":"ZohoAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZohoAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zoho/accounts/{id}":{"get":{"summary":"Gets a single Zoho Account","security":[{"BearerAuth":[]}],"operationId":"getZohoAccountById","tags":["Zoho Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoAccount to get"}],"responses":{"200":{"description":"ZohoAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZohoAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoAccount not found"}}},"put":{"summary":"Update an existing Zoho Account","security":[{"BearerAuth":[]}],"operationId":"updateZohoAccountById","tags":["Zoho Accounts"],"requestBody":{"required":true,"description":"data for updating a new Zoho Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"host":{"type":"string"},"zone":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"serverUrl":{"type":"string"},"code":{"type":"string"},"refreshToken":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoAccount not found"}}}},"/integrations/zoho/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Zoho Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Zoho Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zoho/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Zoho Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zoho/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Zoho Account","security":[{"BearerAuth":[]}],"operationId":"deleteZohoAccountById","tags":["Zoho Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoAccount not found"}}}},"/integrations/zoho/configurations":{"get":{"summary":"Gets a list of Zoho Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllZohoConfiguration","tags":["Zoho Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ZohoConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Zoho Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZohoConfiguration"}}}}},"206":{"description":"Partial (paged) collection of Zoho Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZohoConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Zoho Configuration","security":[{"BearerAuth":[]}],"operationId":"createZohoConfiguration","tags":["Zoho Configurations"],"requestBody":{"required":true,"description":"data for creating a new Zoho Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"moduleCreate":{"type":"string","enum":["lead","contact","nothing"],"default":"lead"},"moduleSearch":{"type":"string","enum":["contact_lead","contact","lead"],"default":"contact_lead"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"ZohoConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZohoConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zoho/configurations/{id}":{"get":{"summary":"Gets a single Zoho Configuration","security":[{"BearerAuth":[]}],"operationId":"getZohoConfigurationById","tags":["Zoho Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoConfiguration to get"}],"responses":{"200":{"description":"ZohoConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZohoConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoConfiguration not found"}}},"put":{"summary":"Update an existing Zoho Configuration","security":[{"BearerAuth":[]}],"operationId":"updateZohoConfigurationById","tags":["Zoho Configurations"],"requestBody":{"required":true,"description":"data for updating a new Zoho Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"moduleCreate":{"type":"string","enum":["lead","contact","nothing"],"default":"lead"},"moduleSearch":{"type":"string","enum":["contact_lead","contact","lead"],"default":"contact_lead"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoConfiguration not found"}}}},"/integrations/zoho/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Zoho Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zoho/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Zoho Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zoho/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Zoho Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zoho/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Zoho Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteZohoConfigurationById","tags":["Zoho Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoConfiguration not found"}}}},"/integrations/zoho/fields":{"get":{"summary":"Gets a list of Zoho Fields","security":[{"BearerAuth":[]}],"operationId":"listAllZohoField","tags":["Zoho Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ZohoField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Zoho Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZohoField"}}}}},"206":{"description":"Partial (paged) collection of Zoho Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZohoField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Zoho Field","security":[{"BearerAuth":[]}],"operationId":"createZohoField","tags":["Zoho Fields"],"requestBody":{"required":true,"description":"data for creating a new Zoho Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"ZohoField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZohoField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zoho/fields/{id}":{"get":{"summary":"Gets a single Zoho Field","security":[{"BearerAuth":[]}],"operationId":"getZohoFieldById","tags":["Zoho Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoField to get"}],"responses":{"200":{"description":"ZohoField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZohoField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoField not found"}}},"put":{"summary":"Update an existing Zoho Field","security":[{"BearerAuth":[]}],"operationId":"updateZohoFieldById","tags":["Zoho Fields"],"requestBody":{"required":true,"description":"data for updating a new Zoho Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoField not found"}}}},"/integrations/zoho/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Zoho Field","security":[{"BearerAuth":[]}],"operationId":"deleteZohoFieldById","tags":["Zoho Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoField not found"}}}},"/jira":{"post":{"summary":"Creates a new issue","security":[{"BearerAuth":[]}],"operationId":"createJiraIssue","tags":["Issue"],"requestBody":{"required":true,"description":"Issue content","content":{"application/json":{"schema":{"type":"object","properties":{"issuetype":{"type":"string","description":"the issue type","default":"Bug"},"summary":{"type":"string","description":"short description of the issue"},"description":{"type":"string","description":"the issue full description"}},"required":["summary","description"]}}}},"responses":{"201":{"description":"issue submitted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/answers/reports":{"get":{"summary":"Gets a list of Reports","security":[{"BearerAuth":[]}],"operationId":"listAllJscriptyAnswerReport","tags":["JscriptyAnswerReport"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each JscriptyAnswerReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JscriptyAnswerReport"}}}}},"206":{"description":"Partial (paged) collection of Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JscriptyAnswerReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Report","security":[{"BearerAuth":[]}],"operationId":"createJscriptyAnswerReport","tags":["JscriptyAnswerReport"],"requestBody":{"required":true,"description":"data for creating a new Report","content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"},"membername":{"type":"string"},"projectname":{"type":"string"},"queue":{"type":"string"},"uniqueid":{"type":"string"},"calleridname":{"type":"string"},"calleridnum":{"type":"string"},"questionId":{"type":"string"}}}}}},"responses":{"201":{"description":"JscriptyAnswerReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptyAnswerReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/answers/reports/describe":{"get":{"summary":"Gets table info about Reports","security":[{"BearerAuth":[]}],"operationId":"describeJscriptyAnswerReport","tags":["JscriptyAnswerReport"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/answers/reports/{id}":{"get":{"summary":"Gets a single Report","security":[{"BearerAuth":[]}],"operationId":"getJscriptyAnswerReportById","tags":["JscriptyAnswerReport"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyAnswerReport to get"}],"responses":{"200":{"description":"JscriptyAnswerReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptyAnswerReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyAnswerReport not found"}}},"put":{"summary":"Update an existing Report","security":[{"BearerAuth":[]}],"operationId":"updateJscriptyAnswerReportById","tags":["JscriptyAnswerReport"],"requestBody":{"required":true,"description":"data for updating a new Report","content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"},"membername":{"type":"string"},"projectname":{"type":"string"},"queue":{"type":"string"},"uniqueid":{"type":"string"},"calleridname":{"type":"string"},"calleridnum":{"type":"string"},"questionId":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyAnswerReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyAnswerReport not found"}}}},"/jscripty/answers/reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Report","security":[{"BearerAuth":[]}],"operationId":"deleteJscriptyAnswerReportById","tags":["JscriptyAnswerReport"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyAnswerReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyAnswerReport not found"}}}},"/jscripty/projects":{"get":{"summary":"Gets a list of Projects","security":[{"BearerAuth":[]}],"operationId":"listAllJscriptyProject","tags":["Jscripty Projects"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each JscriptyProject"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Projects","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JscriptyProject"}}}}},"206":{"description":"Partial (paged) collection of Projects","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JscriptyProject"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Project","security":[{"BearerAuth":[]}],"operationId":"createJscriptyProject","tags":["Jscripty Projects"],"requestBody":{"required":true,"description":"data for creating a new Project","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"formData":{"type":"string"},"enableUncompleteSave":{"type":"boolean","default":true},"sendUnpauseOnSubmit":{"type":"boolean","default":false}}}}}},"responses":{"201":{"description":"JscriptyProject successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptyProject"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/projects/{id}":{"get":{"summary":"Gets a single Project","security":[{"BearerAuth":[]}],"operationId":"getJscriptyProjectById","tags":["Jscripty Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyProject to get"}],"responses":{"200":{"description":"JscriptyProject with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptyProject"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyProject not found"}}},"put":{"summary":"Update an existing Project","security":[{"BearerAuth":[]}],"operationId":"updateJscriptyProjectById","tags":["Jscripty Projects"],"requestBody":{"required":true,"description":"data for updating a new Project","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"formData":{"type":"string"},"enableUncompleteSave":{"type":"boolean","default":true},"sendUnpauseOnSubmit":{"type":"boolean","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyProject to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyProject not found"}}}},"/jscripty/projects/{id}/sessions":{"get":{"summary":"Gets jscripty project sessions","security":[{"BearerAuth":[]}],"operationId":"getSessions","tags":["Jscripty Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyProject"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/projects/{id}/answers":{"get":{"summary":"Gets jscripty project answers","security":[{"BearerAuth":[]}],"operationId":"getAnswers","tags":["Jscripty Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyProject"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/projects/{id}/summary":{"get":{"summary":"Gets jscripty project summary","security":[{"BearerAuth":[]}],"operationId":"getSummary","tags":["Jscripty Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyProject"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/projects/clone":{"post":{"summary":"Clone an existing Project","security":[{"BearerAuth":[]}],"operationId":"cloneJscriptyProject","tags":["Jscripty Projects"],"requestBody":{"required":true,"description":"data for creating a new Project","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"id of the Project to clone"},"name":{"type":"string"},"description":{"type":"string"},"formData":{"type":"string"},"enableUncompleteSave":{"type":"boolean","default":true},"sendUnpauseOnSubmit":{"type":"boolean","default":false}},"required":["id"]}}}},"responses":{"201":{"description":"JscriptyProject successfully cloned. Returns the cloned object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptyProject"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/projects/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Project","security":[{"BearerAuth":[]}],"operationId":"deleteJscriptyProjectById","tags":["Jscripty Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyProject to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyProject not found"}}}},"/jscripty/questions/reports":{"get":{"summary":"Gets a list of Reports","security":[{"BearerAuth":[]}],"operationId":"listAllJscriptyQuestionReport","tags":["JscriptyQuestionReport"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each JscriptyQuestionReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JscriptyQuestionReport"}}}}},"206":{"description":"Partial (paged) collection of Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JscriptyQuestionReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Report","security":[{"BearerAuth":[]}],"operationId":"createJscriptyQuestionReport","tags":["JscriptyQuestionReport"],"requestBody":{"required":true,"description":"data for creating a new Report","content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"},"membername":{"type":"string"},"projectname":{"type":"string"},"queue":{"type":"string"},"uniqueid":{"type":"string"},"calleridname":{"type":"string"},"calleridnum":{"type":"string"},"questionId":{"type":"string"}}}}}},"responses":{"201":{"description":"JscriptyQuestionReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptyQuestionReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/questions/reports/describe":{"get":{"summary":"Gets table info about Reports","security":[{"BearerAuth":[]}],"operationId":"describeJscriptyQuestionReport","tags":["JscriptyQuestionReport"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/questions/reports/{id}":{"get":{"summary":"Gets a single Report","security":[{"BearerAuth":[]}],"operationId":"getJscriptyQuestionReportById","tags":["JscriptyQuestionReport"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyQuestionReport to get"}],"responses":{"200":{"description":"JscriptyQuestionReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptyQuestionReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyQuestionReport not found"}}},"put":{"summary":"Update an existing Report","security":[{"BearerAuth":[]}],"operationId":"updateJscriptyQuestionReportById","tags":["JscriptyQuestionReport"],"requestBody":{"required":true,"description":"data for updating a new Report","content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"},"membername":{"type":"string"},"projectname":{"type":"string"},"queue":{"type":"string"},"uniqueid":{"type":"string"},"calleridname":{"type":"string"},"calleridnum":{"type":"string"},"questionId":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyQuestionReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyQuestionReport not found"}}}},"/jscripty/questions/reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Report","security":[{"BearerAuth":[]}],"operationId":"deleteJscriptyQuestionReportById","tags":["JscriptyQuestionReport"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyQuestionReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyQuestionReport not found"}}}},"/jscripty/sessions/reports":{"get":{"summary":"Gets a list of Reports","security":[{"BearerAuth":[]}],"operationId":"listAllJscriptySessionReport","tags":["JscriptySessionReport"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each JscriptySessionReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JscriptySessionReport"}}}}},"206":{"description":"Partial (paged) collection of Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JscriptySessionReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Report","security":[{"BearerAuth":[]}],"operationId":"createJscriptySessionReport","tags":["JscriptySessionReport"],"requestBody":{"required":true,"description":"data for creating a new Report","content":{"application/json":{"schema":{"type":"object","properties":{"starttime":{"type":"string"},"endtime":{"type":"string"},"membername":{"type":"string"},"projectname":{"type":"string"},"queue":{"type":"string"},"uniqueid":{"type":"string"},"calleridname":{"type":"string"},"calleridnum":{"type":"string"},"completed":{"type":"boolean","default":false}}}}}},"responses":{"201":{"description":"JscriptySessionReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptySessionReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/sessions/reports/describe":{"get":{"summary":"Gets table info about Reports","security":[{"BearerAuth":[]}],"operationId":"describeJscriptySessionReport","tags":["JscriptySessionReport"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/sessions/reports/{id}":{"get":{"summary":"Gets a single Report","security":[{"BearerAuth":[]}],"operationId":"getJscriptySessionReportById","tags":["JscriptySessionReport"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptySessionReport to get"}],"responses":{"200":{"description":"JscriptySessionReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptySessionReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptySessionReport not found"}}},"put":{"summary":"Update an existing Report","security":[{"BearerAuth":[]}],"operationId":"updateJscriptySessionReportById","tags":["JscriptySessionReport"],"requestBody":{"required":true,"description":"data for updating a new Report","content":{"application/json":{"schema":{"type":"object","properties":{"starttime":{"type":"string"},"endtime":{"type":"string"},"membername":{"type":"string"},"projectname":{"type":"string"},"queue":{"type":"string"},"uniqueid":{"type":"string"},"calleridname":{"type":"string"},"calleridnum":{"type":"string"},"completed":{"type":"boolean","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptySessionReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptySessionReport not found"}}}},"/jscripty/sessions/reports/{id}/questions":{"get":{"summary":"Gets Jscripty Session questions","security":[{"BearerAuth":[]}],"operationId":"getQuestions","tags":["JscriptySessionReport"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptySessionReport"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/sessions/reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Report","security":[{"BearerAuth":[]}],"operationId":"deleteJscriptySessionReportById","tags":["JscriptySessionReport"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptySessionReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptySessionReport not found"}}}},"/license/":{"get":{"summary":"Gets License Info","operationId":"index","tags":["License"],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/license/{id}":{"put":{"summary":"Update License Info","security":[{"BearerAuth":[]}],"operationId":"update","tags":["License"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the License"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts":{"get":{"summary":"Gets a list of Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllMailAccount","tags":["Mail Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MailAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailAccount"}}}}},"206":{"description":"Partial (paged) collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/describe":{"get":{"summary":"Gets table info about Accounts","security":[{"BearerAuth":[]}],"operationId":"describeMailAccount","tags":["Mail Accounts"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}":{"get":{"summary":"Gets a single Account","security":[{"BearerAuth":[]}],"operationId":"getMailAccountById","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount to get"}],"responses":{"200":{"description":"MailAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailAccount not found"}}},"put":{"summary":"Update an existing Account","security":[{"BearerAuth":[]}],"operationId":"updateMailAccountById","tags":["Mail Accounts"],"requestBody":{"required":true,"description":"data for updating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string"},"name":{"type":"string"},"service":{"type":"boolean","default":false},"email":{"type":"string"},"active":{"type":"boolean","default":true},"key":{"type":"string"},"template":{"type":"string"},"markAsUnread":{"type":"boolean","default":false},"fontFamily":{"type":"string","default":"Arial,Helvetica,sans-serif"},"fontSize":{"type":"integer","default":13},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}
Subject : {{message.subject}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled","default":null},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailAccount not found"}}},"delete":{"summary":"Deletes a mail account","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/dispositions":{"get":{"summary":"Gets account dispositions","security":[{"BearerAuth":[]}],"operationId":"getDispositions","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new disposition","security":[{"BearerAuth":[]}],"operationId":"addDisposition","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes dispositions from account","security":[{"BearerAuth":[]}],"operationId":"removeDispositions","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/canned_answers":{"get":{"summary":"Gets account canned answers","security":[{"BearerAuth":[]}],"operationId":"getAnswers","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new canned answer","security":[{"BearerAuth":[]}],"operationId":"addAnswer","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes canned answers from account","security":[{"BearerAuth":[]}],"operationId":"removeAnswers","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/in_servers":{"get":{"summary":"Gets account IMAP server","security":[{"BearerAuth":[]}],"operationId":"getImap","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new IMAP server","security":[{"BearerAuth":[]}],"operationId":"addImap","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes IMAP server from an account","security":[{"BearerAuth":[]}],"operationId":"removeImap","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/out_servers":{"get":{"summary":"Gets account SMTP server","security":[{"BearerAuth":[]}],"operationId":"getSmtp","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new SMTP server","security":[{"BearerAuth":[]}],"operationId":"addSmtp","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes SMTP server from an account","security":[{"BearerAuth":[]}],"operationId":"removeSmtp","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/interactions":{"get":{"summary":"Gets account interactions","security":[{"BearerAuth":[]}],"operationId":"getInteractions","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new interactions","security":[{"BearerAuth":[]}],"operationId":"addInteraction","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/applications":{"get":{"summary":"Gets account applications","security":[{"BearerAuth":[]}],"operationId":"getApplications","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new applications","security":[{"BearerAuth":[]}],"operationId":"addApplications","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/messages":{"get":{"summary":"Gets account messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/verify":{"get":{"summary":"Verify mail account","security":[{"BearerAuth":[]}],"operationId":"verifySmtp","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/users":{"get":{"summary":"Gets agents from mail account","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a mail account","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a mail account","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/":{"post":{"summary":"Create a mail account","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Mail Accounts"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/send":{"post":{"summary":"Send new mail","security":[{"BearerAuth":[]}],"operationId":"send","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/applications/{id}":{"get":{"summary":"Gets a single Application","security":[{"BearerAuth":[]}],"operationId":"getMailApplicationById","tags":["Mail Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailApplication to get"}],"responses":{"200":{"description":"MailApplication with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailApplication not found"}}},"put":{"summary":"Update an existing Application","security":[{"BearerAuth":[]}],"operationId":"updateMailApplicationById","tags":["Mail Applications"],"requestBody":{"required":true,"description":"data for updating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailApplication to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailApplication not found"}}}},"/mail/applications/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Application","security":[{"BearerAuth":[]}],"operationId":"deleteMailApplicationById","tags":["Mail Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailApplication to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailApplication not found"}}}},"/mail/interactions":{"get":{"summary":"Gets a list of Interactions","security":[{"BearerAuth":[]}],"operationId":"listAllMailInteraction","tags":["Mail Interactions"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MailInteraction"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailInteraction"}}}}},"206":{"description":"Partial (paged) collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailInteraction"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Interaction","security":[{"BearerAuth":[]}],"operationId":"createMailInteraction","tags":["Mail Interactions"],"requestBody":{"required":true,"description":"data for creating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"inReplyTo":{"type":"string"},"to":{"type":"string"},"cc":{"type":"string"},"subject":{"type":"string"},"attach":{"type":"boolean","default":false},"read1stAt":{"type":"string"},"substatus":{"type":"string"},"substatusAt":{"type":"string"},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgBody":{"type":"string"},"lastMsgText":{"type":"string"}},"required":["firstMsgDirection","lastMsgDirection"]}}}},"responses":{"201":{"description":"MailInteraction successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/interactions/describe":{"get":{"summary":"Gets table info about Interactions","security":[{"BearerAuth":[]}],"operationId":"describeMailInteraction","tags":["Mail Interactions"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/interactions/{id}":{"get":{"summary":"Gets a single Interaction","security":[{"BearerAuth":[]}],"operationId":"getMailInteractionById","tags":["Mail Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailInteraction to get"}],"responses":{"200":{"description":"MailInteraction with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailInteraction not found"}}},"put":{"summary":"Update an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"updateMailInteractionById","tags":["Mail Interactions"],"requestBody":{"required":true,"description":"data for updating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"inReplyTo":{"type":"string"},"to":{"type":"string"},"cc":{"type":"string"},"subject":{"type":"string"},"attach":{"type":"boolean","default":false},"read1stAt":{"type":"string"},"substatus":{"type":"string"},"substatusAt":{"type":"string"},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgBody":{"type":"string"},"lastMsgText":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailInteraction to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailInteraction not found"}}}},"/mail/interactions/{id}/messages":{"get":{"summary":"Gets interaction messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Mail Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new message","security":[{"BearerAuth":[]}],"operationId":"addMessage","tags":["Mail Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/interactions/{id}/download":{"get":{"summary":"Gets interaction","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Mail Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/interactions/{id}/tags":{"post":{"summary":"Add tags to the interaction","security":[{"BearerAuth":[]}],"operationId":"addTags","tags":["Mail Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes tags from interaction","security":[{"BearerAuth":[]}],"operationId":"removeTags","tags":["Mail Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailInteraction"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/interactions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"deleteMailInteractionById","tags":["Mail Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailInteraction to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailInteraction not found"}}}},"/mail/messages":{"get":{"summary":"Gets a list of Messages","security":[{"BearerAuth":[]}],"operationId":"listAllMailMessage","tags":["Mail Messages"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MailMessage"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailMessage"}}}}},"206":{"description":"Partial (paged) collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailMessage"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/messages/describe":{"get":{"summary":"Gets table info about Messages","security":[{"BearerAuth":[]}],"operationId":"describeMailMessage","tags":["Mail Messages"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/messages/{id}":{"get":{"summary":"Gets a single Message","security":[{"BearerAuth":[]}],"operationId":"getMailMessageById","tags":["Mail Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailMessage to get"}],"responses":{"200":{"description":"MailMessage with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailMessage not found"}}},"put":{"summary":"Update an existing Message","security":[{"BearerAuth":[]}],"operationId":"updateMailMessageById","tags":["Mail Messages"],"requestBody":{"required":true,"description":"data for updating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"plainBody":{"type":"string"},"read":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"messageId":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"cc":{"type":"string"},"bcc":{"type":"string"},"subject":{"type":"string"},"sentAt":{"type":"string"},"attach":{"type":"integer","default":0},"secret":{"type":"boolean","default":false},"readAt":{"type":"string"},"originTo":{"type":"string"},"originCc":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailMessage to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailMessage not found"}}}},"/mail/messages/{id}/download":{"get":{"summary":"Gets message","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Mail Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailMessage"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/messages/":{"post":{"summary":"Create a message","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Mail Messages"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/messages/{id}/accept":{"put":{"summary":"Accepts message","security":[{"BearerAuth":[]}],"operationId":"accept","tags":["Mail Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/messages/{id}/reject":{"put":{"summary":"Rejects message","security":[{"BearerAuth":[]}],"operationId":"reject","tags":["Mail Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/messages/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Message","security":[{"BearerAuth":[]}],"operationId":"deleteMailMessageById","tags":["Mail Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailMessage to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailMessage not found"}}}},"/mail/queues":{"get":{"summary":"Gets a list of Queues","security":[{"BearerAuth":[]}],"operationId":"listAllMailQueue","tags":["Mail Queues"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MailQueue"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailQueue"}}}}},"206":{"description":"Partial (paged) collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailQueue"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Queue","security":[{"BearerAuth":[]}],"operationId":"createMailQueue","tags":["Mail Queues"],"requestBody":{"required":true,"description":"data for creating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]}}}}}},"responses":{"201":{"description":"MailQueue successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/queues/describe":{"get":{"summary":"Gets table info about Queues","security":[{"BearerAuth":[]}],"operationId":"describeMailQueue","tags":["Mail Queues"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/queues/{id}":{"get":{"summary":"Gets a single Queue","security":[{"BearerAuth":[]}],"operationId":"getMailQueueById","tags":["Mail Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue to get"}],"responses":{"200":{"description":"MailQueue with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailQueue not found"}}},"put":{"summary":"Update an existing Queue","security":[{"BearerAuth":[]}],"operationId":"updateMailQueueById","tags":["Mail Queues"],"requestBody":{"required":true,"description":"data for updating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailQueue not found"}}}},"/mail/queues/{id}/members":{"get":{"summary":"GetMembers","security":[{"BearerAuth":[]}],"operationId":"getMembers","tags":["Mail Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/queues/{id}/teams":{"get":{"summary":"Gets queues list","security":[{"BearerAuth":[]}],"operationId":"getTeams","tags":["Mail Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add teams to a queue","security":[{"BearerAuth":[]}],"operationId":"addTeams","tags":["Mail Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove teams from a queue","security":[{"BearerAuth":[]}],"operationId":"removeTeams","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/queues/{id}/users":{"get":{"summary":"Gets queue agents","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Mail Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a queue","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Mail Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a queue","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Mail Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/queues/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Queue","security":[{"BearerAuth":[]}],"operationId":"deleteMailQueueById","tags":["Mail Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailQueue not found"}}}},"/mail/reports/queue":{"get":{"summary":"Gets a list of Mail Queue Reports","security":[{"BearerAuth":[]}],"operationId":"listAllMailQueueReport","tags":["Mail Queue Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MailQueueReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Mail Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailQueueReport"}}}}},"206":{"description":"Partial (paged) collection of Mail Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailQueueReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Mail Queue Report","security":[{"BearerAuth":[]}],"operationId":"createMailQueueReport","tags":["Mail Queue Reports"],"requestBody":{"required":true,"description":"data for creating a new Mail Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}},"required":["uniqueid"]}}}},"responses":{"201":{"description":"MailQueueReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/reports/queue/describe":{"get":{"summary":"Gets table info about Mail Queue Reports","security":[{"BearerAuth":[]}],"operationId":"describeMailQueueReport","tags":["Mail Queue Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/reports/queue/{id}":{"get":{"summary":"Gets a single Mail Queue Report","security":[{"BearerAuth":[]}],"operationId":"getMailQueueReportById","tags":["Mail Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueueReport to get"}],"responses":{"200":{"description":"MailQueueReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailQueueReport not found"}}},"put":{"summary":"Update an existing Mail Queue Report","security":[{"BearerAuth":[]}],"operationId":"updateMailQueueReportById","tags":["Mail Queue Reports"],"requestBody":{"required":true,"description":"data for updating a new Mail Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueueReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailQueueReport not found"}}}},"/mail/reports/queue/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Mail Queue Report","security":[{"BearerAuth":[]}],"operationId":"deleteMailQueueReportById","tags":["Mail Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueueReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailQueueReport not found"}}}},"/mail/out_servers":{"get":{"summary":"Gets a list of SMTPs","security":[{"BearerAuth":[]}],"operationId":"listAllMailServerOut","tags":["Mail SMTP"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MailServerOut"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of SMTPs","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailServerOut"}}}}},"206":{"description":"Partial (paged) collection of SMTPs","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailServerOut"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new SMTP","security":[{"BearerAuth":[]}],"operationId":"createMailServerOut","tags":["Mail SMTP"],"requestBody":{"required":true,"description":"data for creating a new SMTP","content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string"},"host":{"type":"string"},"user":{"type":"string"},"pass":{"type":"string"},"port":{"type":"integer"},"secure":{"type":"boolean","default":false},"service":{"type":"string"},"authentication":{"type":"boolean","default":true}}}}}},"responses":{"201":{"description":"MailServerOut successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailServerOut"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/out_servers/{id}":{"get":{"summary":"Gets a single SMTP","security":[{"BearerAuth":[]}],"operationId":"getMailServerOutById","tags":["Mail SMTP"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailServerOut to get"}],"responses":{"200":{"description":"MailServerOut with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailServerOut"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailServerOut not found"}}},"put":{"summary":"Update an existing SMTP","security":[{"BearerAuth":[]}],"operationId":"updateMailServerOutById","tags":["Mail SMTP"],"requestBody":{"required":true,"description":"data for updating a new SMTP","content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string"},"host":{"type":"string"},"user":{"type":"string"},"pass":{"type":"string"},"port":{"type":"integer"},"secure":{"type":"boolean","default":false},"service":{"type":"string"},"authentication":{"type":"boolean","default":true}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailServerOut to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailServerOut not found"}}}},"/mail/out_servers/{id}/destroy_many":{"delete":{"summary":"Destroy an existing SMTP","security":[{"BearerAuth":[]}],"operationId":"deleteMailServerOutById","tags":["Mail SMTP"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailServerOut to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailServerOut not found"}}}},"/mail/substatuses":{"get":{"summary":"Gets a list of Substatuses","security":[{"BearerAuth":[]}],"operationId":"listAllMailSubstatus","tags":["Mail Substatuses"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MailSubstatus"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Substatuses","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailSubstatus"}}}}},"206":{"description":"Partial (paged) collection of Substatuses","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailSubstatus"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Queue","security":[{"BearerAuth":[]}],"operationId":"createMailSubstatus","tags":["Mail Substatuses"],"requestBody":{"required":true,"description":"data for creating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"MailSubstatus successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailSubstatus"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/substatuses/describe":{"get":{"summary":"Gets table info about Substatuses","security":[{"BearerAuth":[]}],"operationId":"describeMailSubstatus","tags":["Mail Substatuses"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/substatuses/{id}":{"get":{"summary":"Gets a single Queue","security":[{"BearerAuth":[]}],"operationId":"getMailSubstatusById","tags":["Mail Substatuses"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailSubstatus to get"}],"responses":{"200":{"description":"MailSubstatus with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailSubstatus"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailSubstatus not found"}}},"put":{"summary":"Update an existing Queue","security":[{"BearerAuth":[]}],"operationId":"updateMailSubstatusById","tags":["Mail Substatuses"],"requestBody":{"required":true,"description":"data for updating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailSubstatus to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailSubstatus not found"}}}},"/mail/substatuses/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Queue","security":[{"BearerAuth":[]}],"operationId":"deleteMailSubstatusById","tags":["Mail Substatuses"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailSubstatus to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailSubstatus not found"}}}},"/mail/reports/transfer":{"get":{"summary":"Gets a list of Mail Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"listAllMailTransferReport","tags":["Mail Transfer Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MailTransferReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Mail Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailTransferReport"}}}}},"206":{"description":"Partial (paged) collection of Mail Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailTransferReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Mail Transfer Report","security":[{"BearerAuth":[]}],"operationId":"createMailTransferReport","tags":["Mail Transfer Reports"],"requestBody":{"required":true,"description":"data for creating a new Mail Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}},"required":["uniqueid","type","transferredAt"]}}}},"responses":{"201":{"description":"MailTransferReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/reports/transfer/describe":{"get":{"summary":"Gets table info about Mail Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"describeMailTransferReport","tags":["Mail Transfer Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/reports/transfer/{id}":{"get":{"summary":"Gets a single Mail Transfer Report","security":[{"BearerAuth":[]}],"operationId":"getMailTransferReportById","tags":["Mail Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailTransferReport to get"}],"responses":{"200":{"description":"MailTransferReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailTransferReport not found"}}},"put":{"summary":"Update an existing Mail Transfer Report","security":[{"BearerAuth":[]}],"operationId":"updateMailTransferReportById","tags":["Mail Transfer Reports"],"requestBody":{"required":true,"description":"data for updating a new Mail Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailTransferReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailTransferReport not found"}}}},"/mail/reports/transfer/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Mail Transfer Report","security":[{"BearerAuth":[]}],"operationId":"deleteMailTransferReportById","tags":["Mail Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailTransferReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailTransferReport not found"}}}},"/members/reports":{"get":{"summary":"Gets a list of Member Reports","security":[{"BearerAuth":[]}],"operationId":"listAllMemberReport","tags":["Member Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MemberReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Member Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MemberReport"}}}}},"206":{"description":"Partial (paged) collection of Member Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MemberReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/members/reports/describe":{"get":{"summary":"Gets table info about Member Reports","security":[{"BearerAuth":[]}],"operationId":"describeMemberReport","tags":["Member Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/members/reports/{id}":{"get":{"summary":"Gets a single Member Report","security":[{"BearerAuth":[]}],"operationId":"getMemberReportById","tags":["Member Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MemberReport to get"}],"responses":{"200":{"description":"MemberReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MemberReport not found"}}}},"/migrations":{"get":{"summary":"Gets a list of Migrations","operationId":"listAllMigration","tags":["Migrations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Migration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Migrations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Migration"}}}}},"206":{"description":"Partial (paged) collection of Migrations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Migration"}}}}}}}},"/networks":{"get":{"summary":"Gets a list of Networks","security":[{"BearerAuth":[]}],"operationId":"listAllNetwork","tags":["Networks"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Network"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Networks","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Network"}}}}},"206":{"description":"Partial (paged) collection of Networks","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Network"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/networks/{id}":{"get":{"summary":"Gets a single Network","security":[{"BearerAuth":[]}],"operationId":"getNetworkById","tags":["Networks"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Network to get"}],"responses":{"200":{"description":"Network with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Network"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Network not found"}}},"put":{"summary":"Update an existing network","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Networks"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Network"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Deletes a network","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Networks"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Network"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/networks/":{"post":{"summary":"Create a new network","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Networks"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/notifications/":{"post":{"summary":"Send notification to user","security":[{"BearerAuth":[]}],"operationId":"sendNotification","tags":["Notifications"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts":{"get":{"summary":"Gets a list of Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllOpenchannelAccount","tags":["Openchannel Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each OpenchannelAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelAccount"}}}}},"206":{"description":"Partial (paged) collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Account","security":[{"BearerAuth":[]}],"operationId":"createOpenchannelAccount","tags":["Openchannel Accounts"],"requestBody":{"required":true,"description":"data for creating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"token":{"type":"string","default":"opoXzKt8ZC9vMwf35tCZb0Y8Ci6w5NXM"},"replyUri":{"type":"string"},"key":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"mapKey":{"type":"string"},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled","default":null},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false}},"required":["name","key"]}}}},"responses":{"201":{"description":"OpenchannelAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts/describe":{"get":{"summary":"Gets table info about Accounts","security":[{"BearerAuth":[]}],"operationId":"describeOpenchannelAccount","tags":["Openchannel Accounts"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts/{id}":{"get":{"summary":"Gets a single Account","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelAccountById","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount to get"}],"responses":{"200":{"description":"OpenchannelAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelAccount not found"}}},"put":{"summary":"Update an existing Account","security":[{"BearerAuth":[]}],"operationId":"updateOpenchannelAccountById","tags":["Openchannel Accounts"],"requestBody":{"required":true,"description":"data for updating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"token":{"type":"string","default":"HgITaNXHR7se5sobT0VIEUDhnuXiOOoL"},"replyUri":{"type":"string"},"key":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"mapKey":{"type":"string"},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled","default":null},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelAccount not found"}}}},"/openchannel/accounts/{id}/dispositions":{"get":{"summary":"Gets account dispositions","security":[{"BearerAuth":[]}],"operationId":"getDispositions","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new disposition","security":[{"BearerAuth":[]}],"operationId":"addDisposition","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes dispositions from account","security":[{"BearerAuth":[]}],"operationId":"removeDispositions","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts/{id}/canned_answers":{"get":{"summary":"Gets account canned answers","security":[{"BearerAuth":[]}],"operationId":"getAnswers","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new canned answer","security":[{"BearerAuth":[]}],"operationId":"addAnswer","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes canned answers from account","security":[{"BearerAuth":[]}],"operationId":"removeAnswers","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts/{id}/applications":{"get":{"summary":"Gets account applications","security":[{"BearerAuth":[]}],"operationId":"getApplications","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new applications","security":[{"BearerAuth":[]}],"operationId":"addApplications","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts/{id}/interactions":{"get":{"summary":"Gets Openchannel Account Interactions","security":[{"BearerAuth":[]}],"operationId":"getInteractions","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts/{id}/users":{"get":{"summary":"Gets agents from openchannel account","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a openchannel account","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a openchannel account","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts/{id}/notify":{"post":{"summary":"Notify new message","operationId":"notify","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"201":{"description":"successfully created"}}}},"/openchannel/accounts/{id}/send":{"post":{"summary":"Send new openchannel message","security":[{"BearerAuth":[]}],"operationId":"send","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Account","security":[{"BearerAuth":[]}],"operationId":"deleteOpenchannelAccountById","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelAccount not found"}}}},"/openchannel/applications":{"get":{"summary":"Gets a list of Applications","security":[{"BearerAuth":[]}],"operationId":"listAllOpenchannelApplication","tags":["Openchannel Applications"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each OpenchannelApplication"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Applications","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelApplication"}}}}},"206":{"description":"Partial (paged) collection of Applications","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelApplication"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Application","security":[{"BearerAuth":[]}],"operationId":"createOpenchannelApplication","tags":["Openchannel Applications"],"requestBody":{"required":true,"description":"data for creating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}},"required":["priority","app"]}}}},"responses":{"201":{"description":"OpenchannelApplication successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/applications/{id}":{"get":{"summary":"Gets a single Application","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelApplicationById","tags":["Openchannel Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelApplication to get"}],"responses":{"200":{"description":"OpenchannelApplication with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelApplication not found"}}},"put":{"summary":"Update an existing Application","security":[{"BearerAuth":[]}],"operationId":"updateOpenchannelApplicationById","tags":["Openchannel Applications"],"requestBody":{"required":true,"description":"data for updating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelApplication to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelApplication not found"}}}},"/openchannel/applications/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Application","security":[{"BearerAuth":[]}],"operationId":"deleteOpenchannelApplicationById","tags":["Openchannel Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelApplication to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelApplication not found"}}}},"/openchannel/interactions":{"get":{"summary":"Gets a list of Interactions","security":[{"BearerAuth":[]}],"operationId":"listAllOpenchannelInteraction","tags":["Openchannel Interactions"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each OpenchannelInteraction"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelInteraction"}}}}},"206":{"description":"Partial (paged) collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelInteraction"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Interaction","security":[{"BearerAuth":[]}],"operationId":"createOpenchannelInteraction","tags":["Openchannel Interactions"],"requestBody":{"required":true,"description":"data for creating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"read1stAt":{"type":"string"},"threadId":{"type":"string"},"externalUrl":{"type":"string"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"from":{"type":"string"}},"required":["lastMsgDirection"]}}}},"responses":{"201":{"description":"OpenchannelInteraction successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/interactions/describe":{"get":{"summary":"Gets table info about Interactions","security":[{"BearerAuth":[]}],"operationId":"describeOpenchannelInteraction","tags":["Openchannel Interactions"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/interactions/{id}":{"get":{"summary":"Gets a single Interaction","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelInteractionById","tags":["Openchannel Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelInteraction to get"}],"responses":{"200":{"description":"OpenchannelInteraction with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelInteraction not found"}}},"put":{"summary":"Update an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"updateOpenchannelInteractionById","tags":["Openchannel Interactions"],"requestBody":{"required":true,"description":"data for updating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"read1stAt":{"type":"string"},"threadId":{"type":"string"},"externalUrl":{"type":"string"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"from":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelInteraction to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelInteraction not found"}}}},"/openchannel/interactions/{id}/messages":{"get":{"summary":"Gets interaction messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Openchannel Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new messages","security":[{"BearerAuth":[]}],"operationId":"addMessage","tags":["Openchannel Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/interactions/{id}/download":{"get":{"summary":"Gets interaction","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Openchannel Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/interactions/{id}/tags":{"post":{"summary":"Add tags to the interaction","security":[{"BearerAuth":[]}],"operationId":"addTags","tags":["Openchannel Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes tags from interaction","security":[{"BearerAuth":[]}],"operationId":"removeTags","tags":["Openchannel Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelInteraction"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/interactions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"deleteOpenchannelInteractionById","tags":["Openchannel Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelInteraction to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelInteraction not found"}}}},"/openchannel/messages":{"get":{"summary":"Gets a list of Messages","security":[{"BearerAuth":[]}],"operationId":"listAllOpenchannelMessage","tags":["Openchannel Messages"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each OpenchannelMessage"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelMessage"}}}}},"206":{"description":"Partial (paged) collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelMessage"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Message","security":[{"BearerAuth":[]}],"operationId":"createOpenchannelMessage","tags":["Openchannel Messages"],"requestBody":{"required":true,"description":"data for creating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"secret":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"readAt":{"type":"string"},"providerName":{"type":"string"},"providerResponse":{"type":"string"}},"required":["body","direction"]}}}},"responses":{"201":{"description":"OpenchannelMessage successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/messages/describe":{"get":{"summary":"Gets table info about Messages","security":[{"BearerAuth":[]}],"operationId":"describeOpenchannelMessage","tags":["Openchannel Messages"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/messages/{id}":{"get":{"summary":"Gets a single Message","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelMessageById","tags":["Openchannel Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelMessage to get"}],"responses":{"200":{"description":"OpenchannelMessage with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelMessage not found"}}},"put":{"summary":"Update an existing Message","security":[{"BearerAuth":[]}],"operationId":"updateOpenchannelMessageById","tags":["Openchannel Messages"],"requestBody":{"required":true,"description":"data for updating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"secret":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"readAt":{"type":"string"},"providerName":{"type":"string"},"providerResponse":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelMessage to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelMessage not found"}}}},"/openchannel/messages/{id}/accept":{"put":{"summary":"Accepts message","security":[{"BearerAuth":[]}],"operationId":"accept","tags":["Openchannel Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/messages/{id}/reject":{"put":{"summary":"Rejects message","security":[{"BearerAuth":[]}],"operationId":"reject","tags":["Openchannel Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/messages/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Message","security":[{"BearerAuth":[]}],"operationId":"deleteOpenchannelMessageById","tags":["Openchannel Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelMessage to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelMessage not found"}}}},"/openchannel/queues":{"get":{"summary":"Gets a list of Queues","security":[{"BearerAuth":[]}],"operationId":"listAllOpenchannelQueue","tags":["Openchannel Queues"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each OpenchannelQueue"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelQueue"}}}}},"206":{"description":"Partial (paged) collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelQueue"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Queue","security":[{"BearerAuth":[]}],"operationId":"createOpenchannelQueue","tags":["Openchannel Queues"],"requestBody":{"required":true,"description":"data for creating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]}}}}}},"responses":{"201":{"description":"OpenchannelQueue successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/queues/describe":{"get":{"summary":"Gets table info about Queues","security":[{"BearerAuth":[]}],"operationId":"describeOpenchannelQueue","tags":["Openchannel Queues"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/queues/{id}":{"get":{"summary":"Gets a single Queue","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelQueueById","tags":["Openchannel Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue to get"}],"responses":{"200":{"description":"OpenchannelQueue with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelQueue not found"}}},"put":{"summary":"Update an existing Queue","security":[{"BearerAuth":[]}],"operationId":"updateOpenchannelQueueById","tags":["Openchannel Queues"],"requestBody":{"required":true,"description":"data for updating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelQueue not found"}}}},"/openchannel/queues/{id}/members":{"get":{"summary":"GetMembers","security":[{"BearerAuth":[]}],"operationId":"getMembers","tags":["Openchannel Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/queues/{id}/teams":{"get":{"summary":"Gets queues list","security":[{"BearerAuth":[]}],"operationId":"getTeams","tags":["Openchannel Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add teams to a queue","security":[{"BearerAuth":[]}],"operationId":"addTeams","tags":["Openchannel Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove teams from a queue","security":[{"BearerAuth":[]}],"operationId":"removeTeams","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/queues/{id}/users":{"get":{"summary":"Gets queue agents","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Openchannel Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a queue","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Openchannel Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a queue","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Openchannel Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/queues/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Queue","security":[{"BearerAuth":[]}],"operationId":"deleteOpenchannelQueueById","tags":["Openchannel Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelQueue not found"}}}},"/openchannel/reports/queue":{"get":{"summary":"Gets a list of Openchannel Queue Reports","security":[{"BearerAuth":[]}],"operationId":"listAllOpenchannelQueueReport","tags":["Openchannel Queue Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each OpenchannelQueueReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Openchannel Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelQueueReport"}}}}},"206":{"description":"Partial (paged) collection of Openchannel Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelQueueReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Openchannel Queue Report","security":[{"BearerAuth":[]}],"operationId":"createOpenchannelQueueReport","tags":["Openchannel Queue Reports"],"requestBody":{"required":true,"description":"data for creating a new Openchannel Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}},"required":["uniqueid"]}}}},"responses":{"201":{"description":"OpenchannelQueueReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/reports/queue/describe":{"get":{"summary":"Gets table info about Openchannel Queue Reports","security":[{"BearerAuth":[]}],"operationId":"describeOpenchannelQueueReport","tags":["Openchannel Queue Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/reports/queue/{id}":{"get":{"summary":"Gets a single Openchannel Queue Report","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelQueueReportById","tags":["Openchannel Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueueReport to get"}],"responses":{"200":{"description":"OpenchannelQueueReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelQueueReport not found"}}},"put":{"summary":"Update an existing Openchannel Queue Report","security":[{"BearerAuth":[]}],"operationId":"updateOpenchannelQueueReportById","tags":["Openchannel Queue Reports"],"requestBody":{"required":true,"description":"data for updating a new Openchannel Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueueReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelQueueReport not found"}}}},"/openchannel/reports/queue/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Openchannel Queue Report","security":[{"BearerAuth":[]}],"operationId":"deleteOpenchannelQueueReportById","tags":["Openchannel Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueueReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelQueueReport not found"}}}},"/openchannel/reports/transfer":{"get":{"summary":"Gets a list of Openchannel Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"listAllOpenchannelTransferReport","tags":["Openchannel Transfer Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each OpenchannelTransferReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Openchannel Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelTransferReport"}}}}},"206":{"description":"Partial (paged) collection of Openchannel Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelTransferReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Openchannel Transfer Report","security":[{"BearerAuth":[]}],"operationId":"createOpenchannelTransferReport","tags":["Openchannel Transfer Reports"],"requestBody":{"required":true,"description":"data for creating a new Openchannel Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}},"required":["uniqueid","type","transferredAt"]}}}},"responses":{"201":{"description":"OpenchannelTransferReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/reports/transfer/describe":{"get":{"summary":"Gets table info about Openchannel Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"describeOpenchannelTransferReport","tags":["Openchannel Transfer Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/reports/transfer/{id}":{"get":{"summary":"Gets a single Openchannel Transfer Report","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelTransferReportById","tags":["Openchannel Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelTransferReport to get"}],"responses":{"200":{"description":"OpenchannelTransferReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelTransferReport not found"}}},"put":{"summary":"Update an existing Openchannel Transfer Report","security":[{"BearerAuth":[]}],"operationId":"updateOpenchannelTransferReportById","tags":["Openchannel Transfer Reports"],"requestBody":{"required":true,"description":"data for updating a new Openchannel Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelTransferReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelTransferReport not found"}}}},"/openchannel/reports/transfer/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Openchannel Transfer Report","security":[{"BearerAuth":[]}],"operationId":"deleteOpenchannelTransferReportById","tags":["Openchannel Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelTransferReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelTransferReport not found"}}}},"/pauses":{"get":{"summary":"Gets a list of Pauses","security":[{"BearerAuth":[]}],"operationId":"listAllPause","tags":["Pauses"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Pause"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Pauses","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Pause"}}}}},"206":{"description":"Partial (paged) collection of Pauses","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Pause"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Pause","security":[{"BearerAuth":[]}],"operationId":"createPause","tags":["Pauses"],"requestBody":{"required":true,"description":"data for creating a new Pause","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"Pause successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pause"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/pauses/{id}":{"get":{"summary":"Gets a single Pause","security":[{"BearerAuth":[]}],"operationId":"getPauseById","tags":["Pauses"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Pause to get"}],"responses":{"200":{"description":"Pause with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pause"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Pause not found"}}},"put":{"summary":"Update an existing Pause","security":[{"BearerAuth":[]}],"operationId":"updatePauseById","tags":["Pauses"],"requestBody":{"required":true,"description":"data for updating a new Pause","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Pause to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Pause not found"}}}},"/pauses/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Pause","security":[{"BearerAuth":[]}],"operationId":"deletePauseById","tags":["Pauses"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Pause to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Pause not found"}}}},"/plugins":{"get":{"summary":"Gets a list of Plugins","security":[{"BearerAuth":[]}],"operationId":"listAllPlugin","tags":["Plugins"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Plugin"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Plugins","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Plugin"}}}}},"206":{"description":"Partial (paged) collection of Plugins","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Plugin"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/plugins/webhook":{"get":{"summary":"Redirect a plugin request to the specified path","operationId":"webhookGet","tags":["Plugins"],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Redirect a plugin request to the specified path","operationId":"webhookPost","tags":["Plugins"],"responses":{"201":{"description":"successfully created"}}}},"/plugins/{id}":{"get":{"summary":"Gets a single Plugin","security":[{"BearerAuth":[]}],"operationId":"getPluginById","tags":["Plugins"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Plugin to get"}],"responses":{"200":{"description":"Plugin with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Plugin"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Plugin not found"}}},"put":{"summary":"Update an existing plugin","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Plugins"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Plugin"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Delete a plugin","security":[{"BearerAuth":[]}],"operationId":"delete","tags":["Plugins"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Plugin"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/plugins/{id}/download":{"get":{"summary":"Download plugin source code","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Plugins"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Plugin"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/plugins/":{"post":{"summary":"Upload new plugin","security":[{"BearerAuth":[]}],"operationId":"postupload","tags":["Plugins"],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/pm2":{"get":{"summary":"Gets pm2 processes","security":[{"BearerAuth":[]}],"operationId":"getPm2Processes","tags":["Pm2"],"responses":{"200":{"description":"list of processes","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Start a single pm2 process","security":[{"BearerAuth":[]}],"operationId":"startPm2Process","tags":["Pm2"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the process"}],"requestBody":{"required":true,"description":"process data","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"process name"},"script":{"type":"string","description":"script name"}},"required":["name","script"]}}}},"responses":{"201":{"description":"successfully started"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Process not found"}}}},"/pm2/{id}":{"get":{"summary":"Gets a single pm2 process by id","security":[{"BearerAuth":[]}],"operationId":"getPm2Process","tags":["Pm2"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the process"}],"responses":{"200":{"description":"process information","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Process not found"}}},"put":{"summary":"Update an existing process","security":[{"BearerAuth":[]}],"operationId":"updatePm2Process","tags":["Pm2"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the process"}],"requestBody":{"required":true,"description":"process data","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"process name"},"script":{"type":"string","description":"script name"}},"required":["name","script"]}}}},"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Process not found"}}},"delete":{"summary":"Delete an existing process by id","security":[{"BearerAuth":[]}],"operationId":"deletePm2Process","tags":["Pm2"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the process"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Process not found"}}}},"/rpc/voice/channels":{"get":{"summary":"Gets a list of RTVoiceChannels","security":[{"BearerAuth":[]}],"operationId":"getRTVoiceChannels","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTVoiceChannels","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/voice/channels/{uniqueid}/mixmonitor":{"get":{"summary":"Gets a list of RTVoiceChannelMixMonitor","security":[{"BearerAuth":[]}],"operationId":"getRTVoiceChannelMixMonitor","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"uniqueid","schema":{"type":"integer"},"required":true,"description":"unique id of the channel"}],"responses":{"200":{"description":"list of RTVoiceChannelMixMonitor","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/voice/channels/{uniqueid}/stopmixmonitor":{"get":{"summary":"Gets a list of RTVoiceChannelStopMixMonitor","security":[{"BearerAuth":[]}],"operationId":"getRTVoiceChannelStopMixMonitor","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"uniqueid","schema":{"type":"integer"},"required":true,"description":"unique id of the channel"}],"responses":{"200":{"description":"list of RTVoiceChannelStopMixMonitor","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/voice/queues":{"get":{"summary":"Gets a list of RTVoiceQueues","security":[{"BearerAuth":[]}],"operationId":"getRTVoiceQueues","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTVoiceQueues","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/chat/queues":{"get":{"summary":"Gets a list of RTChatQueues","security":[{"BearerAuth":[]}],"operationId":"getRTChatQueues","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTChatQueues","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/mail/queues":{"get":{"summary":"Gets a list of RTMailQueues","security":[{"BearerAuth":[]}],"operationId":"getRTMailQueues","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTMailQueues","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/mail/accounts":{"get":{"summary":"Gets a list of RTMailAccounts","security":[{"BearerAuth":[]}],"operationId":"getRTMailAccounts","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTMailAccounts","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/openchannel/queues":{"get":{"summary":"Gets a list of RTOpenchannelQueues","security":[{"BearerAuth":[]}],"operationId":"getRTOpenchannelQueues","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTOpenchannelQueues","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/sms/queues":{"get":{"summary":"Gets a list of RTSmsQueues","security":[{"BearerAuth":[]}],"operationId":"getRTSmsQueues","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTSmsQueues","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/whatsapp/queues":{"get":{"summary":"Gets a list of RTWhatsappQueues","security":[{"BearerAuth":[]}],"operationId":"getRTWhatsappQueues","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTWhatsappQueues","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/fax/queues":{"get":{"summary":"Gets a list of RTFaxQueues","security":[{"BearerAuth":[]}],"operationId":"getRTFaxQueues","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTFaxQueues","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/voice/queues/preview/{id}":{"get":{"summary":"Gets a single preview contact","security":[{"BearerAuth":[]}],"operationId":"getRTVoiceQueuePreview","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the preview"}],"responses":{"200":{"description":"preview contact","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"preview contact not found"}}}},"/rpc/voice/queues/channels":{"get":{"summary":"Gets a list of RTVoiceQueuesChannels","security":[{"BearerAuth":[]}],"operationId":"getRTVoiceQueuesChannels","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTVoiceQueuesChannels","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/voice/queues/channels/{uniqueid}":{"get":{"summary":"Gets a single RTVoiceQueueChannel","security":[{"BearerAuth":[]}],"operationId":"getRTVoiceQueueChannel","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"uniqueid","schema":{"type":"integer"},"required":true,"description":"unique id of the channel"}],"responses":{"200":{"description":"RT Voice Queue Channel","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Channel not found"}}}},"/rpc/voice/queues/channels/{uniqueid}/hangup":{"get":{"summary":"Hangup a single RTVoiceQueueChannel","security":[{"BearerAuth":[]}],"operationId":"hangupRTVoiceQueueChannel","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"uniqueid","schema":{"type":"integer"},"required":true,"description":"unique id of the channel"}],"responses":{"200":{"description":"Hangup ok"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Channel not found"}}}},"/rpc/voice/queues/channels/{uniqueid}/redirect/{exten}":{"get":{"summary":"Redirect a single RTVoiceQueueChannel to a specific extension.","security":[{"BearerAuth":[]}],"operationId":"redirectRTVoiceQueueChannel","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"uniqueid","schema":{"type":"integer"},"required":true,"description":"unique id of the channel"},{"in":"path","name":"exten","schema":{"type":"string"},"required":true,"description":"extension name"}],"responses":{"200":{"description":"Redirect ok"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Channel or extension not found"}}}},"/rpc/voice/queues/{id}":{"get":{"summary":"Gets a single RTVoiceQueue","security":[{"BearerAuth":[]}],"operationId":"getRTVoiceQueue","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"RT Voice Queue","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"RT Voice Queue not found"}}}},"/rpc/outbound":{"get":{"summary":"Gets a list of RTOutbound","security":[{"BearerAuth":[]}],"operationId":"getRTOutbound","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTOutbound","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/outbound/channels":{"get":{"summary":"Gets a list of RTOutboundChannels","security":[{"BearerAuth":[]}],"operationId":"getRTOutboundChannels","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTOutboundChannels","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/agents":{"get":{"summary":"Gets a list of RTAgents","security":[{"BearerAuth":[]}],"operationId":"getRTAgents","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTAgents","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/agents/{id}/capacity":{"put":{"summary":"Sets agent capacity","security":[{"BearerAuth":[]}],"operationId":"putRTAgentCapacity","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the agent"}],"requestBody":{"required":true,"description":"Desired capacity payload","content":{"application/json":{"schema":{"type":"object","properties":{"capacity":{"type":"integer","description":"the desired capacity"},"interaction":{"type":"object","description":"interaction"}},"required":["capacity","interaction"]}}}},"responses":{"200":{"description":"Capacity updated","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"agent id"},"capacity":{"type":"integer","description":"agent capacity"}},"required":["id","capacity"]}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Agent not found"}}}},"/rpc/telephones":{"get":{"summary":"Gets a list of RTTelephones","security":[{"BearerAuth":[]}],"operationId":"getRTTelephones","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTTelephones","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/trunks":{"get":{"summary":"Gets a list of RTTrunks","security":[{"BearerAuth":[]}],"operationId":"getRTTrunks","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTTrunks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/campaigns":{"get":{"summary":"Gets a list of campaigns","security":[{"BearerAuth":[]}],"operationId":"getCampaigns","tags":["RPC Realtime"],"responses":{"200":{"description":"list of campaigns","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/fax/accounts":{"get":{"summary":"Gets a list of FaxAccounts","security":[{"BearerAuth":[]}],"operationId":"getFaxAccounts","tags":["RPC Realtime"],"responses":{"200":{"description":"list of FaxAccounts","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/chat/queues/waitinginteractions":{"get":{"summary":"Gets a list of chatQueuesWaitingInteractions","security":[{"BearerAuth":[]}],"operationId":"getChatQueuesWaitingInteractions","tags":["RPC Realtime"],"responses":{"200":{"description":"list of chatQueuesWaitingInteractions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/mail/queues/waitinginteractions":{"get":{"summary":"Gets a list of mailQueuesWaitingInteractions","security":[{"BearerAuth":[]}],"operationId":"getMailQueuesWaitingInteractions","tags":["RPC Realtime"],"responses":{"200":{"description":"list of mailQueuesWaitingInteractions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/openchannel/queues/waitinginteractions":{"get":{"summary":"Gets a list of openchannelQueuesWaitingInteractions","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelQueuesWaitingInteractions","tags":["RPC Realtime"],"responses":{"200":{"description":"list of openchannelQueuesWaitingInteractions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/openchannel/queues/{id}/waitinginteractions":{"get":{"summary":"Gets a list of openchannelQueuesIdWaitingInteractions for the queue","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelQueuesWaitingInteractionsForId","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"list of openchannelQueuesIdWaitingInteractions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/sms/queues/waitinginteractions":{"get":{"summary":"Gets a list of smsQueuesWaitingInteractions","security":[{"BearerAuth":[]}],"operationId":"getSmsQueuesWaitingInteractions","tags":["RPC Realtime"],"responses":{"200":{"description":"list of getSmsQueuesWaitingInteractions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/whatsapp/queues/waitinginteractions":{"get":{"summary":"Gets a list of whatsappQueuesWaitingInteractions","security":[{"BearerAuth":[]}],"operationId":"getWhatsappQueuesWaitingInteractions","tags":["RPC Realtime"],"responses":{"200":{"description":"list of whatsappQueuesWaitingInteractions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/fax/queues/waitinginteractions":{"get":{"summary":"Gets a list of faxQueuesWaitingInteractions","security":[{"BearerAuth":[]}],"operationId":"getFaxQueuesWaitingInteractions","tags":["RPC Realtime"],"responses":{"200":{"description":"list of faxQueuesWaitingInteractions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/mail/queues/{id}/notify":{"post":{"summary":"Notify message to a specific mail queue","security":[{"BearerAuth":[]}],"operationId":"postMailQueueNotify","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the agent"}],"requestBody":{"required":true,"description":"message to be notified","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Notification","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Agent not found"}}}},"/rpc/mail/queues/{id}":{"get":{"summary":"Gets a single RTMailQueue","security":[{"BearerAuth":[]}],"operationId":"getRTMailQueue","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Queue","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Queue not found"}}}},"/rpc/chat/queues/{id}/notify":{"post":{"summary":"Notify message to a specific chat queue","security":[{"BearerAuth":[]}],"operationId":"postChatQueueNotify","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the agent"}],"responses":{"200":{"description":"Notification","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Agent not found"}}}},"/rpc/chat/queues/{id}":{"get":{"summary":"Gets a single RTChatQueue","security":[{"BearerAuth":[]}],"operationId":"getRTChatQueue","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Queue","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Queue not found"}}}},"/rpc/fax/queues/{id}/notify":{"post":{"summary":"Notify message to a specific fax queue","security":[{"BearerAuth":[]}],"operationId":"postFaxQueueNotify","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Notification","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Queue not found"}}}},"/rpc/fax/queues/{id}":{"get":{"summary":"Gets a single RTFaxQueue","security":[{"BearerAuth":[]}],"operationId":"getRTFaxQueue","tags":["RPC Realtimen"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Queue","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Queue not found"}}}},"/rpc/openchannel/queues/{id}/notify":{"post":{"summary":"Notify message to a specific openchannel queue","security":[{"BearerAuth":[]}],"operationId":"postOpenchannelQueueNotify","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Notification","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Process not found"}}}},"/rpc/openchannel/queues/{id}":{"get":{"summary":"Gets a single RTOpenchannelQueue","security":[{"BearerAuth":[]}],"operationId":"getRTOpenchannelQueue","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Queue","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Queue not found"}}}},"/rpc/sms/queues/{id}/notify":{"post":{"summary":"Notify message to a specific sms queue","security":[{"BearerAuth":[]}],"operationId":"postSmsQueueNotify","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Notification","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Process not found"}}}},"/rpc/whatsapp/queues/{id}/notify":{"post":{"summary":"Notify message to a specific agent","security":[{"BearerAuth":[]}],"operationId":"postAgentNotify","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the agent"}],"responses":{"200":{"description":"Notification","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Agent not found"}}}},"/rpc/sms/queues/{id}":{"get":{"summary":"Gets a single RTSmsQueue","security":[{"BearerAuth":[]}],"operationId":"getRTSmsQueue","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Queue","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Queue not found"}}}},"/rpc/whatsapp/queues/{id}":{"get":{"summary":"Gets a single RTWhatsappQueue","security":[{"BearerAuth":[]}],"operationId":"getRTWhatsappQueue","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Queue","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Queue not found"}}}},"/schedules":{"get":{"summary":"Gets a list of Schedules","security":[{"BearerAuth":[]}],"operationId":"listAllSchedule","tags":["Schedules"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Schedule"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Schedules","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Schedule"}}}}},"206":{"description":"Partial (paged) collection of Schedules","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Schedule"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Schedule","security":[{"BearerAuth":[]}],"operationId":"createSchedule","tags":["Schedules"],"requestBody":{"required":true,"description":"data for creating a new Schedule","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"active":{"type":"boolean","default":false},"cron":{"type":"string","default":"0 0 * * *"},"startAt":{"type":"string"},"endAt":{"type":"string"},"subtractNumber":{"type":"integer","default":1},"subtractUnit":{"type":"string","enum":["years","quarters","months","weeks","days","hours","minutes"],"default":"days"},"output":{"type":"string","enum":["csv","pdf","xlsx"],"default":"csv"},"type":{"type":"string","enum":["custom","default"],"default":"custom"},"sendMail":{"type":"boolean","default":false},"email":{"type":"string"},"cc":{"type":"string"},"bcc":{"type":"string"},"sendIfEmpty":{"type":"boolean","default":true}},"required":["name","active","cron","startAt","endAt","subtractNumber","subtractUnit","output","type"]}}}},"responses":{"201":{"description":"Schedule successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/schedules/{id}":{"get":{"summary":"Gets a single Schedule","security":[{"BearerAuth":[]}],"operationId":"getScheduleById","tags":["Schedules"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Schedule to get"}],"responses":{"200":{"description":"Schedule with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Schedule not found"}}},"put":{"summary":"Update an existing Schedule","security":[{"BearerAuth":[]}],"operationId":"updateScheduleById","tags":["Schedules"],"requestBody":{"required":true,"description":"data for updating a new Schedule","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"active":{"type":"boolean","default":false},"cron":{"type":"string","default":"0 0 * * *"},"startAt":{"type":"string"},"endAt":{"type":"string"},"subtractNumber":{"type":"integer","default":1},"subtractUnit":{"type":"string","enum":["years","quarters","months","weeks","days","hours","minutes"],"default":"days"},"output":{"type":"string","enum":["csv","pdf","xlsx"],"default":"csv"},"type":{"type":"string","enum":["custom","default"],"default":"custom"},"sendMail":{"type":"boolean","default":false},"email":{"type":"string"},"cc":{"type":"string"},"bcc":{"type":"string"},"sendIfEmpty":{"type":"boolean","default":true}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Schedule to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Schedule not found"}}}},"/schedules/{id}/run":{"get":{"summary":"Run Scheduler","security":[{"BearerAuth":[]}],"operationId":"run","tags":["Schedules"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Schedule"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/schedules/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Schedule","security":[{"BearerAuth":[]}],"operationId":"deleteScheduleById","tags":["Schedules"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Schedule to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Schedule not found"}}}},"/screen/recordings":{"get":{"summary":"Gets a list of Recordings","security":[{"BearerAuth":[]}],"operationId":"listAllScreenRecording","tags":["Screen Recordings"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ScreenRecording"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Recordings","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScreenRecording"}}}}},"206":{"description":"Partial (paged) collection of Recordings","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScreenRecording"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Recording","security":[{"BearerAuth":[]}],"operationId":"createScreenRecording","tags":["Screen Recordings"],"requestBody":{"required":true,"description":"data for creating a new Recording","content":{"application/json":{"schema":{"type":"object","properties":{"format":{"type":"string"},"interactionid":{"type":"string"},"channel":{"type":"string"},"value":{"type":"string"},"rating":{"type":"integer"},"duration":{"type":"integer"},"startedAt":{"type":"string"},"closedAt":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}}}}}},"responses":{"201":{"description":"ScreenRecording successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenRecording"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/screen/recordings/describe":{"get":{"summary":"Gets table info about Recordings","security":[{"BearerAuth":[]}],"operationId":"describeScreenRecording","tags":["Screen Recordings"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/screen/recordings/{id}":{"get":{"summary":"Gets a single Recording","security":[{"BearerAuth":[]}],"operationId":"getScreenRecordingById","tags":["Screen Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ScreenRecording to get"}],"responses":{"200":{"description":"ScreenRecording with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenRecording"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ScreenRecording not found"}}},"put":{"summary":"Update an existing Recording","security":[{"BearerAuth":[]}],"operationId":"updateScreenRecordingById","tags":["Screen Recordings"],"requestBody":{"required":true,"description":"data for updating a new Recording","content":{"application/json":{"schema":{"type":"object","properties":{"format":{"type":"string"},"interactionid":{"type":"string"},"channel":{"type":"string"},"value":{"type":"string"},"rating":{"type":"integer"},"duration":{"type":"integer"},"startedAt":{"type":"string"},"closedAt":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ScreenRecording to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ScreenRecording not found"}}},"delete":{"summary":"Delete screen recording","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Screen Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ScreenRecording"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/screen/recordings/{id}/download":{"get":{"summary":"Download Recording","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Screen Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ScreenRecording"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/settings":{"get":{"summary":"Gets a list of Settings","security":[{"BearerAuth":[]}],"operationId":"listAllSetting","tags":["Settings"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Setting"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Settings","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Setting"}}}}},"206":{"description":"Partial (paged) collection of Settings","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Setting"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/settings/now":{"get":{"summary":"Get Server Current Date","operationId":"getDate","tags":["Settings"],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/settings/{id}":{"get":{"summary":"Gets a single Setting","operationId":"getSettingById","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting to get"}],"responses":{"200":{"description":"Setting with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Setting"}}}},"404":{"description":"Setting not found"}}},"put":{"summary":"Update an existing Setting","security":[{"BearerAuth":[]}],"operationId":"updateSettingById","tags":["Settings"],"requestBody":{"required":true,"description":"data for updating a new Setting","content":{"application/json":{"schema":{"type":"object","properties":{"min_internal":{"type":"integer","default":1000},"min_mailbox":{"type":"integer","default":1000},"agi_port":{"type":"integer","default":4573},"soundPath":{"type":"string","default":"/var/opt/motion2/server/files/sounds/converted"},"logo":{"type":"string"},"defaultLogo":{"type":"boolean","default":true},"loginLogo":{"type":"string"},"defaultLoginLogo":{"type":"boolean","default":true},"headerWhiteLabel":{"type":"string"},"defaultHeaderWhiteLabel":{"type":"boolean","default":true},"securePassword":{"type":"boolean","default":true},"firstSetup":{"type":"boolean","default":true},"stunaddr":{"type":"string"},"turnaddr":{"type":"string"},"turnusername":{"type":"string"},"turnpassword":{"type":"string"},"pageTitle":{"type":"string"},"defaultPageTitle":{"type":"boolean","default":true},"callRecordingEncryption":{"type":"boolean","default":false},"passwordExpiresDays":{"type":"integer","default":90},"phoneBarAutoUpdater":{"type":"boolean","default":true},"phoneBarAutoUpdaterUrl":{"type":"string","default":"https://www.xcally.com/bar/phonebar/autoupdater.xml"},"enableEmailPreview":{"type":"boolean","default":false},"split":{"type":"boolean","default":true},"splitSizeCsv":{"type":"integer","default":5000},"splitSizePdf":{"type":"integer","default":5000},"splitSizeXlsx":{"type":"integer","default":5000},"messagesAlignment":{"type":"string","default":"alternate"},"chatTimeout":{"type":"integer","default":30},"phoneBarRememberMeEnabled":{"type":"boolean","default":true},"preferred":{"type":"string"},"defaultPreferred":{"type":"boolean","default":true},"rtlSupport":{"type":"boolean","default":false},"defaultScreenRecordingPath":{"type":"string"},"allowedLoginAttempts":{"type":"integer","default":5},"blockDuration":{"type":"integer","default":10},"favicon":{"type":"string"},"defaultFavicon":{"type":"boolean","default":true},"loginMailFrequency":{"type":"integer","default":10},"transcribe":{"type":"boolean","default":false},"automaticTranscribe":{"type":"boolean","default":false},"transcribeAccountId":{"type":"integer"},"transcribeRegion":{"type":"string"},"sentiment":{"type":"boolean","default":false},"automaticSentiment":{"type":"boolean","default":false},"sentimentAccountId":{"type":"integer"},"sentimentRegion":{"type":"string"},"language":{"type":"string"},"bucket":{"type":"string"},"googleSsoEnabled":{"type":"boolean","default":false},"enforcePasswordHistory":{"type":"boolean","default":true},"passwordHistoryLimit":{"type":"integer","default":3}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Setting not found"}}}},"/settings/{id}/logo":{"get":{"summary":"Get logo","operationId":"getLogo","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Add logo","security":[{"BearerAuth":[]}],"operationId":"postaddLogo","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/settings/{id}/logo_login":{"get":{"summary":"Get logo login","operationId":"getLogoLogin","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Add logo login","security":[{"BearerAuth":[]}],"operationId":"postaddLogoLogin","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/settings/{id}/gdpr":{"get":{"summary":"Get gdpr settings","operationId":"gdpr","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/settings/{id}/preferred":{"get":{"summary":"Get Preferred","operationId":"getPreferred","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Add Preferred","security":[{"BearerAuth":[]}],"operationId":"postaddPreferred","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/settings/{id}/favicon":{"get":{"summary":"Get Favicon","operationId":"getFavicon","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Add Favicon","security":[{"BearerAuth":[]}],"operationId":"postaddFavicon","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts":{"get":{"summary":"Gets a list of Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllSmsAccount","tags":["Sms Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SmsAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsAccount"}}}}},"206":{"description":"Partial (paged) collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Account","security":[{"BearerAuth":[]}],"operationId":"createSmsAccount","tags":["Sms Accounts"],"requestBody":{"required":true,"description":"data for creating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"key":{"type":"string"},"remote":{"type":"string"},"token":{"type":"string","default":"XiWeIvQm9jR44uKXXbaTAMRW3cKSKIDM"},"phone":{"type":"string"},"type":{"type":"string","enum":["twilio","skebby","connectel","clicksend","plivo","clickatell","csc","infobip","intelepeer"]},"accountSid":{"type":"string"},"authId":{"type":"string"},"authToken":{"type":"string"},"smsMethod":{"type":"string","enum":["SI","TI","GP"]},"username":{"type":"string"},"password":{"type":"string"},"apiKey":{"type":"string"},"senderString":{"type":"string"},"deliveryReport":{"type":"boolean","default":false},"description":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"baseUrl":{"type":"string"},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false}},"required":["name","key","remote"]}}}},"responses":{"201":{"description":"SmsAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts/describe":{"get":{"summary":"Gets table info about Accounts","security":[{"BearerAuth":[]}],"operationId":"describeSmsAccount","tags":["Sms Accounts"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts/{id}":{"get":{"summary":"Gets a single Account","security":[{"BearerAuth":[]}],"operationId":"getSmsAccountById","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount to get"}],"responses":{"200":{"description":"SmsAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsAccount not found"}}},"put":{"summary":"Update an existing Account","security":[{"BearerAuth":[]}],"operationId":"updateSmsAccountById","tags":["Sms Accounts"],"requestBody":{"required":true,"description":"data for updating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"key":{"type":"string"},"remote":{"type":"string"},"token":{"type":"string","default":"5sbjWGiIAFCaMsOZLSTaVBFZQrZ6BXaO"},"phone":{"type":"string"},"type":{"type":"string","enum":["twilio","skebby","connectel","clicksend","plivo","clickatell","csc","infobip","intelepeer"]},"accountSid":{"type":"string"},"authId":{"type":"string"},"authToken":{"type":"string"},"smsMethod":{"type":"string","enum":["SI","TI","GP"]},"username":{"type":"string"},"password":{"type":"string"},"apiKey":{"type":"string"},"senderString":{"type":"string"},"deliveryReport":{"type":"boolean","default":false},"description":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"baseUrl":{"type":"string"},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsAccount not found"}}}},"/sms/accounts/{id}/dispositions":{"get":{"summary":"Gets account dispositions","security":[{"BearerAuth":[]}],"operationId":"getDispositions","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new disposition","security":[{"BearerAuth":[]}],"operationId":"addDisposition","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes dispositions from account","security":[{"BearerAuth":[]}],"operationId":"removeDispositions","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts/{id}/canned_answers":{"get":{"summary":"Gets account canned answers","security":[{"BearerAuth":[]}],"operationId":"getAnswers","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new canned answer","security":[{"BearerAuth":[]}],"operationId":"addAnswer","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes canned answers from account","security":[{"BearerAuth":[]}],"operationId":"removeAnswers","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts/{id}/applications":{"get":{"summary":"Gets account applications","security":[{"BearerAuth":[]}],"operationId":"getApplications","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new applications","security":[{"BearerAuth":[]}],"operationId":"addApplications","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts/{id}/interactions":{"get":{"summary":"Gets Sms Account interactions","security":[{"BearerAuth":[]}],"operationId":"getInteractions","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts/{id}/status":{"get":{"summary":"Receive message status as get request","operationId":"statusGet","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Receive message status","operationId":"status","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"201":{"description":"successfully created"}}}},"/sms/accounts/{id}/users":{"get":{"summary":"Gets agents from sms account","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a sms account","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a sms account","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts/{id}/notify":{"post":{"summary":"Notify new message","operationId":"notify","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"201":{"description":"successfully created"}}}},"/sms/accounts/{id}/send":{"post":{"summary":"Send new sms message","security":[{"BearerAuth":[]}],"operationId":"send","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Account","security":[{"BearerAuth":[]}],"operationId":"deleteSmsAccountById","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsAccount not found"}}}},"/sms/applications":{"get":{"summary":"Gets a list of Applications","security":[{"BearerAuth":[]}],"operationId":"listAllSmsApplication","tags":["Sms Applications"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SmsApplication"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Applications","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsApplication"}}}}},"206":{"description":"Partial (paged) collection of Applications","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsApplication"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Application","security":[{"BearerAuth":[]}],"operationId":"createSmsApplication","tags":["Sms Applications"],"requestBody":{"required":true,"description":"data for creating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}},"required":["priority","app"]}}}},"responses":{"201":{"description":"SmsApplication successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/applications/{id}":{"get":{"summary":"Gets a single Application","security":[{"BearerAuth":[]}],"operationId":"getSmsApplicationById","tags":["Sms Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsApplication to get"}],"responses":{"200":{"description":"SmsApplication with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsApplication not found"}}},"put":{"summary":"Update an existing Application","security":[{"BearerAuth":[]}],"operationId":"updateSmsApplicationById","tags":["Sms Applications"],"requestBody":{"required":true,"description":"data for updating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsApplication to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsApplication not found"}}}},"/sms/applications/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Application","security":[{"BearerAuth":[]}],"operationId":"deleteSmsApplicationById","tags":["Sms Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsApplication to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsApplication not found"}}}},"/sms/interactions":{"get":{"summary":"Gets a list of Interactions","security":[{"BearerAuth":[]}],"operationId":"listAllSmsInteraction","tags":["Sms Interactions"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SmsInteraction"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsInteraction"}}}}},"206":{"description":"Partial (paged) collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsInteraction"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Interaction","security":[{"BearerAuth":[]}],"operationId":"createSmsInteraction","tags":["Sms Interactions"],"requestBody":{"required":true,"description":"data for creating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"phone":{"type":"string"},"read1stAt":{"type":"string"},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"}},"required":["firstMsgDirection","lastMsgDirection"]}}}},"responses":{"201":{"description":"SmsInteraction successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/interactions/describe":{"get":{"summary":"Gets table info about Interactions","security":[{"BearerAuth":[]}],"operationId":"describeSmsInteraction","tags":["Sms Interactions"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/interactions/{id}":{"get":{"summary":"Gets a single Interaction","security":[{"BearerAuth":[]}],"operationId":"getSmsInteractionById","tags":["Sms Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsInteraction to get"}],"responses":{"200":{"description":"SmsInteraction with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsInteraction not found"}}},"put":{"summary":"Update an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"updateSmsInteractionById","tags":["Sms Interactions"],"requestBody":{"required":true,"description":"data for updating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"phone":{"type":"string"},"read1stAt":{"type":"string"},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsInteraction to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsInteraction not found"}}}},"/sms/interactions/{id}/messages":{"get":{"summary":"Gets interaction messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Sms Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new messages","security":[{"BearerAuth":[]}],"operationId":"addMessage","tags":["Sms Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/interactions/{id}/download":{"get":{"summary":"Gets interaction","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Sms Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/interactions/{id}/tags":{"post":{"summary":"Add tags to the interaction","security":[{"BearerAuth":[]}],"operationId":"addTags","tags":["Sms Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes tags from interaction","security":[{"BearerAuth":[]}],"operationId":"removeTags","tags":["Sms Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsInteraction"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/interactions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"deleteSmsInteractionById","tags":["Sms Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsInteraction to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsInteraction not found"}}}},"/sms/messages":{"get":{"summary":"Gets a list of Messages","security":[{"BearerAuth":[]}],"operationId":"listAllSmsMessage","tags":["Sms Messages"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SmsMessage"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsMessage"}}}}},"206":{"description":"Partial (paged) collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsMessage"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Message","security":[{"BearerAuth":[]}],"operationId":"createSmsMessage","tags":["Sms Messages"],"requestBody":{"required":true,"description":"data for creating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"messageId":{"type":"string"},"phone":{"type":"string"},"readAt":{"type":"string"},"secret":{"type":"boolean","default":false},"providerName":{"type":"string"},"providerResponse":{"type":"string"}},"required":["body","direction"]}}}},"responses":{"201":{"description":"SmsMessage successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/messages/describe":{"get":{"summary":"Gets table info about Messages","security":[{"BearerAuth":[]}],"operationId":"describeSmsMessage","tags":["Sms Messages"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/messages/{id}":{"get":{"summary":"Gets a single Message","security":[{"BearerAuth":[]}],"operationId":"getSmsMessageById","tags":["Sms Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsMessage to get"}],"responses":{"200":{"description":"SmsMessage with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsMessage not found"}}},"put":{"summary":"Update an existing Message","security":[{"BearerAuth":[]}],"operationId":"updateSmsMessageById","tags":["Sms Messages"],"requestBody":{"required":true,"description":"data for updating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"messageId":{"type":"string"},"phone":{"type":"string"},"readAt":{"type":"string"},"secret":{"type":"boolean","default":false},"providerName":{"type":"string"},"providerResponse":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsMessage to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsMessage not found"}}}},"/sms/messages/{id}/status":{"post":{"summary":"Receive message status","operationId":"status","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsMessage"}],"responses":{"201":{"description":"successfully created"}}}},"/sms/messages/{id}/accept":{"put":{"summary":"Accepts message","security":[{"BearerAuth":[]}],"operationId":"accept","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/messages/{id}/reject":{"put":{"summary":"Rejects message","security":[{"BearerAuth":[]}],"operationId":"reject","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/messages/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Message","security":[{"BearerAuth":[]}],"operationId":"deleteSmsMessageById","tags":["Sms Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsMessage to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsMessage not found"}}}},"/sms/queues":{"get":{"summary":"Gets a list of Queues","security":[{"BearerAuth":[]}],"operationId":"listAllSmsQueue","tags":["Sms Queues"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SmsQueue"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsQueue"}}}}},"206":{"description":"Partial (paged) collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsQueue"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Queue","security":[{"BearerAuth":[]}],"operationId":"createSmsQueue","tags":["Sms Queues"],"requestBody":{"required":true,"description":"data for creating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]}}}}}},"responses":{"201":{"description":"SmsQueue successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/queues/describe":{"get":{"summary":"Gets table info about Queues","security":[{"BearerAuth":[]}],"operationId":"describeSmsQueue","tags":["Sms Queues"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/queues/{id}":{"get":{"summary":"Gets a single Queue","security":[{"BearerAuth":[]}],"operationId":"getSmsQueueById","tags":["Sms Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue to get"}],"responses":{"200":{"description":"SmsQueue with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsQueue not found"}}},"put":{"summary":"Update an existing Queue","security":[{"BearerAuth":[]}],"operationId":"updateSmsQueueById","tags":["Sms Queues"],"requestBody":{"required":true,"description":"data for updating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsQueue not found"}}}},"/sms/queues/{id}/members":{"get":{"summary":"GetMembers","security":[{"BearerAuth":[]}],"operationId":"getMembers","tags":["Sms Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/queues/{id}/teams":{"get":{"summary":"Gets queues list","security":[{"BearerAuth":[]}],"operationId":"getTeams","tags":["Sms Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add teams to a queue","security":[{"BearerAuth":[]}],"operationId":"addTeams","tags":["Sms Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove teams from a queue","security":[{"BearerAuth":[]}],"operationId":"removeTeams","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/queues/{id}/users":{"get":{"summary":"Gets queue agents","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Sms Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a queue","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Sms Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a queue","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Sms Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/queues/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Queue","security":[{"BearerAuth":[]}],"operationId":"deleteSmsQueueById","tags":["Sms Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsQueue not found"}}}},"/sms/reports/queue":{"get":{"summary":"Gets a list of Sms Queue Reports","security":[{"BearerAuth":[]}],"operationId":"listAllSmsQueueReport","tags":["Sms Queue Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SmsQueueReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Sms Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsQueueReport"}}}}},"206":{"description":"Partial (paged) collection of Sms Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsQueueReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Sms Queue Report","security":[{"BearerAuth":[]}],"operationId":"createSmsQueueReport","tags":["Sms Queue Reports"],"requestBody":{"required":true,"description":"data for creating a new Sms Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}},"required":["uniqueid"]}}}},"responses":{"201":{"description":"SmsQueueReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/reports/queue/describe":{"get":{"summary":"Gets table info about Sms Queue Reports","security":[{"BearerAuth":[]}],"operationId":"describeSmsQueueReport","tags":["Sms Queue Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/reports/queue/{id}":{"get":{"summary":"Gets a single Sms Queue Report","security":[{"BearerAuth":[]}],"operationId":"getSmsQueueReportById","tags":["Sms Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueueReport to get"}],"responses":{"200":{"description":"SmsQueueReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsQueueReport not found"}}},"put":{"summary":"Update an existing Sms Queue Report","security":[{"BearerAuth":[]}],"operationId":"updateSmsQueueReportById","tags":["Sms Queue Reports"],"requestBody":{"required":true,"description":"data for updating a new Sms Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueueReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsQueueReport not found"}}}},"/sms/reports/queue/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Sms Queue Report","security":[{"BearerAuth":[]}],"operationId":"deleteSmsQueueReportById","tags":["Sms Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueueReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsQueueReport not found"}}}},"/sms/reports/transfer":{"get":{"summary":"Gets a list of Sms Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"listAllSmsTransferReport","tags":["Sms Transfer Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SmsTransferReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Sms Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsTransferReport"}}}}},"206":{"description":"Partial (paged) collection of Sms Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsTransferReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Sms Transfer Report","security":[{"BearerAuth":[]}],"operationId":"createSmsTransferReport","tags":["Sms Transfer Reports"],"requestBody":{"required":true,"description":"data for creating a new Sms Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}},"required":["uniqueid","type","transferredAt"]}}}},"responses":{"201":{"description":"SmsTransferReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/reports/transfer/describe":{"get":{"summary":"Gets table info about Sms Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"describeSmsTransferReport","tags":["Sms Transfer Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/reports/transfer/{id}":{"get":{"summary":"Gets a single Sms Transfer Report","security":[{"BearerAuth":[]}],"operationId":"getSmsTransferReportById","tags":["Sms Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsTransferReport to get"}],"responses":{"200":{"description":"SmsTransferReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsTransferReport not found"}}},"put":{"summary":"Update an existing Sms Transfer Report","security":[{"BearerAuth":[]}],"operationId":"updateSmsTransferReportById","tags":["Sms Transfer Reports"],"requestBody":{"required":true,"description":"data for updating a new Sms Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsTransferReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsTransferReport not found"}}}},"/sms/reports/transfer/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Sms Transfer Report","security":[{"BearerAuth":[]}],"operationId":"deleteSmsTransferReportById","tags":["Sms Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsTransferReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsTransferReport not found"}}}},"/sounds":{"get":{"summary":"Gets a list of Sounds","security":[{"BearerAuth":[]}],"operationId":"listAllSound","tags":["Sounds"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Sound"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Sounds","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Sound"}}}}},"206":{"description":"Partial (paged) collection of Sounds","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Sound"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sounds/{id}":{"get":{"summary":"Gets a single Sound","security":[{"BearerAuth":[]}],"operationId":"getSoundById","tags":["Sounds"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Sound to get"}],"responses":{"200":{"description":"Sound with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sound"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Sound not found"}}},"put":{"summary":"Update an existing new sound","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Sounds"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Sound"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Deletes a sound","security":[{"BearerAuth":[]}],"operationId":"delete","tags":["Sounds"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Sound"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sounds/{id}/download":{"get":{"summary":"Download Sound","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Sounds"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Sound"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sounds/":{"post":{"summary":"Create a new sound","security":[{"BearerAuth":[]}],"operationId":"postcreate","tags":["Sounds"],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/messages":{"get":{"summary":"Gets a list of Messages","security":[{"BearerAuth":[]}],"operationId":"listAllSquareMessage","tags":["Square Messages"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SquareMessage"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareMessage"}}}}},"206":{"description":"Partial (paged) collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareMessage"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Message","security":[{"BearerAuth":[]}],"operationId":"createSquareMessage","tags":["Square Messages"],"requestBody":{"required":true,"description":"data for creating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"body":{"type":"string"},"direction":{"type":"string","enum":["in","out"],"default":"out"},"providerName":{"type":"string"},"providerResponse":{"type":"string"}},"required":["body","direction"]}}}},"responses":{"201":{"description":"SquareMessage successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/messages/{id}":{"get":{"summary":"Gets a single Message","security":[{"BearerAuth":[]}],"operationId":"getSquareMessageById","tags":["Square Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareMessage to get"}],"responses":{"200":{"description":"SquareMessage with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareMessage not found"}}},"put":{"summary":"Update an existing Message","security":[{"BearerAuth":[]}],"operationId":"updateSquareMessageById","tags":["Square Messages"],"requestBody":{"required":true,"description":"data for updating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"body":{"type":"string"},"direction":{"type":"string","enum":["in","out"],"default":"out"},"providerName":{"type":"string"},"providerResponse":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareMessage to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareMessage not found"}}}},"/square/messages/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Message","security":[{"BearerAuth":[]}],"operationId":"deleteSquareMessageById","tags":["Square Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareMessage to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareMessage not found"}}}},"/square/odbc":{"get":{"summary":"Gets a list of ODBCs","security":[{"BearerAuth":[]}],"operationId":"listAllSquareOdbc","tags":["Square ODBC"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SquareOdbc"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of ODBCs","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareOdbc"}}}}},"206":{"description":"Partial (paged) collection of ODBCs","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareOdbc"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new ODBC","security":[{"BearerAuth":[]}],"operationId":"createSquareOdbc","tags":["Square ODBC"],"requestBody":{"required":true,"description":"data for creating a new ODBC","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"dsn":{"type":"string"},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"SquareOdbc successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareOdbc"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/odbc/{id}":{"get":{"summary":"Gets a single ODBC","security":[{"BearerAuth":[]}],"operationId":"getSquareOdbcById","tags":["Square ODBC"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareOdbc to get"}],"responses":{"200":{"description":"SquareOdbc with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareOdbc"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareOdbc not found"}}},"put":{"summary":"Update an existing ODBC","security":[{"BearerAuth":[]}],"operationId":"updateSquareOdbcById","tags":["Square ODBC"],"requestBody":{"required":true,"description":"data for updating a new ODBC","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"dsn":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareOdbc to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareOdbc not found"}}}},"/square/odbc/{id}/test":{"get":{"summary":"Test Odbc","security":[{"BearerAuth":[]}],"operationId":"test","tags":["Square ODBC"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareOdbc"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/odbc/{id}/destroy_many":{"delete":{"summary":"Destroy an existing ODBC","security":[{"BearerAuth":[]}],"operationId":"deleteSquareOdbcById","tags":["Square ODBC"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareOdbc to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareOdbc not found"}}}},"/square/projects":{"get":{"summary":"Gets a list of Projects","security":[{"BearerAuth":[]}],"operationId":"listAllSquareProject","tags":["Square Projects"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SquareProject"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Projects","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareProject"}}}}},"206":{"description":"Partial (paged) collection of Projects","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareProject"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Project","security":[{"BearerAuth":[]}],"operationId":"createSquareProject","tags":["Square Projects"],"requestBody":{"required":true,"description":"data for creating a new Project","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"notes":{"type":"string"},"preproduction":{"type":"object"},"production":{"type":"object"}},"required":["name"]}}}},"responses":{"201":{"description":"SquareProject successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareProject"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/projects/{id}":{"get":{"summary":"Gets a single Project","security":[{"BearerAuth":[]}],"operationId":"getSquareProjectById","tags":["Square Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareProject to get"}],"responses":{"200":{"description":"SquareProject with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareProject"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareProject not found"}}},"put":{"summary":"Update an existing Project","security":[{"BearerAuth":[]}],"operationId":"updateSquareProjectById","tags":["Square Projects"],"requestBody":{"required":true,"description":"data for updating a new Project","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"notes":{"type":"string"},"preproduction":{"type":"object"},"production":{"type":"object"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareProject to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareProject not found"}}}},"/square/projects/{id}/users":{"get":{"summary":"Gets users permissions from Project","security":[{"BearerAuth":[]}],"operationId":"getUsers","tags":["Square Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareProject"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Adds user permissions to a Project","security":[{"BearerAuth":[]}],"operationId":"addUsers","tags":["Square Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareProject"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes user permissions from a Project","security":[{"BearerAuth":[]}],"operationId":"removeUsers","tags":["Square Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareProject"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/projects/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Project","security":[{"BearerAuth":[]}],"operationId":"deleteSquareProjectById","tags":["Square Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareProject to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareProject not found"}}}},"/square/recordings":{"get":{"summary":"Gets a list of Recordings","security":[{"BearerAuth":[]}],"operationId":"listAllSquareRecording","tags":["Square Recordings"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SquareRecording"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Recordings","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareRecording"}}}}},"206":{"description":"Partial (paged) collection of Recordings","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareRecording"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Recording","security":[{"BearerAuth":[]}],"operationId":"createSquareRecording","tags":["Square Recordings"],"requestBody":{"required":true,"description":"data for creating a new Recording","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"callerid":{"type":"string"},"calleridname":{"type":"string"},"context":{"type":"string"},"extension":{"type":"string"},"priority":{"type":"string"},"accountcode":{"type":"string"},"dnid":{"type":"string"},"projectName":{"type":"string"},"saveName":{"type":"string"},"filename":{"type":"string"},"savePath":{"type":"string"},"format":{"type":"string"}}}}}},"responses":{"201":{"description":"SquareRecording successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareRecording"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/recordings/{id}":{"get":{"summary":"Gets a single Recording","security":[{"BearerAuth":[]}],"operationId":"getSquareRecordingById","tags":["Square Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareRecording to get"}],"responses":{"200":{"description":"SquareRecording with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareRecording"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareRecording not found"}}},"put":{"summary":"Update an existing Recording","security":[{"BearerAuth":[]}],"operationId":"updateSquareRecordingById","tags":["Square Recordings"],"requestBody":{"required":true,"description":"data for updating a new Recording","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"callerid":{"type":"string"},"calleridname":{"type":"string"},"context":{"type":"string"},"extension":{"type":"string"},"priority":{"type":"string"},"accountcode":{"type":"string"},"dnid":{"type":"string"},"projectName":{"type":"string"},"saveName":{"type":"string"},"filename":{"type":"string"},"savePath":{"type":"string"},"format":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareRecording to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareRecording not found"}}}},"/square/recordings/{id}/download":{"get":{"summary":"Download Recording","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Square Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareRecording"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/recordings/{id}/delete":{"delete":{"summary":"Delete recording","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Square Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareRecording"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/reports":{"get":{"summary":"Gets a list of Square Reports","security":[{"BearerAuth":[]}],"operationId":"listAllSquareReport","tags":["Square Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SquareReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Square Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareReport"}}}}},"206":{"description":"Partial (paged) collection of Square Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Square Report","security":[{"BearerAuth":[]}],"operationId":"createSquareReport","tags":["Square Reports"],"requestBody":{"required":true,"description":"data for creating a new Square Report","content":{"application/json":{"schema":{"type":"object","properties":{"network":{"type":"string"},"network_script":{"type":"string"},"request":{"type":"string"},"channel":{"type":"string"},"language":{"type":"string"},"type":{"type":"string"},"uniqueid":{"type":"string"},"version":{"type":"string"},"callerid":{"type":"string"},"calleridname":{"type":"string"},"callingpres":{"type":"string"},"callingani2":{"type":"string"},"callington":{"type":"string"},"callingtns":{"type":"string"},"dnid":{"type":"string"},"rdnis":{"type":"string"},"context":{"type":"string"},"extension":{"type":"string"},"priority":{"type":"string"},"enhanced":{"type":"string"},"accountcode":{"type":"string"},"threadid":{"type":"string"},"project_name":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"bot":{"type":"boolean","default":false}}}}}},"responses":{"201":{"description":"SquareReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/reports/describe":{"get":{"summary":"Gets table info about Square Reports","security":[{"BearerAuth":[]}],"operationId":"describeSquareReport","tags":["Square Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/reports/{id}":{"get":{"summary":"Gets a single Square Report","security":[{"BearerAuth":[]}],"operationId":"getSquareReportById","tags":["Square Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareReport to get"}],"responses":{"200":{"description":"SquareReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareReport not found"}}},"put":{"summary":"Update an existing Square Report","security":[{"BearerAuth":[]}],"operationId":"updateSquareReportById","tags":["Square Reports"],"requestBody":{"required":true,"description":"data for updating a new Square Report","content":{"application/json":{"schema":{"type":"object","properties":{"network":{"type":"string"},"network_script":{"type":"string"},"request":{"type":"string"},"channel":{"type":"string"},"language":{"type":"string"},"type":{"type":"string"},"uniqueid":{"type":"string"},"version":{"type":"string"},"callerid":{"type":"string"},"calleridname":{"type":"string"},"callingpres":{"type":"string"},"callingani2":{"type":"string"},"callington":{"type":"string"},"callingtns":{"type":"string"},"dnid":{"type":"string"},"rdnis":{"type":"string"},"context":{"type":"string"},"extension":{"type":"string"},"priority":{"type":"string"},"enhanced":{"type":"string"},"accountcode":{"type":"string"},"threadid":{"type":"string"},"project_name":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"bot":{"type":"boolean","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareReport not found"}}}},"/square/reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Square Report","security":[{"BearerAuth":[]}],"operationId":"deleteSquareReportById","tags":["Square Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareReport not found"}}}},"/square/details/reports":{"get":{"summary":"Gets a list of Square Detail Reports","security":[{"BearerAuth":[]}],"operationId":"listAllSquareDetailsReport","tags":["Square Details Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SquareDetailsReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Square Detail Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareDetailsReport"}}}}},"206":{"description":"Partial (paged) collection of Square Detail Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareDetailsReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Square Detail Report","security":[{"BearerAuth":[]}],"operationId":"createSquareDetailsReport","tags":["Square Details Reports"],"requestBody":{"required":true,"description":"data for creating a new Square Detail Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"node":{"type":"string"},"application":{"type":"string"},"data":{"type":"string"},"project_name":{"type":"string"},"callerid":{"type":"string"}}}}}},"responses":{"201":{"description":"SquareDetailsReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareDetailsReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/details/reports/describe":{"get":{"summary":"Gets table info about Square Detail Reports","security":[{"BearerAuth":[]}],"operationId":"describeSquareDetailsReport","tags":["Square Details Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/details/reports/{id}":{"get":{"summary":"Gets a single Square Detail Report","security":[{"BearerAuth":[]}],"operationId":"getSquareDetailsReportById","tags":["Square Details Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareDetailsReport to get"}],"responses":{"200":{"description":"SquareDetailsReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareDetailsReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareDetailsReport not found"}}},"put":{"summary":"Update an existing Square Detail Report","security":[{"BearerAuth":[]}],"operationId":"updateSquareDetailsReportById","tags":["Square Details Reports"],"requestBody":{"required":true,"description":"data for updating a new Square Detail Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"node":{"type":"string"},"application":{"type":"string"},"data":{"type":"string"},"project_name":{"type":"string"},"callerid":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareDetailsReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareDetailsReport not found"}}}},"/square/details/reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Square Detail Report","security":[{"BearerAuth":[]}],"operationId":"deleteSquareDetailsReportById","tags":["Square Details Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareDetailsReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareDetailsReport not found"}}}},"/system":{"get":{"summary":"Gets system information","security":[{"BearerAuth":[]}],"operationId":"getSystemInformation","tags":["System Information"],"responses":{"200":{"description":"system information","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/system/process":{"get":{"summary":"Gets process information","security":[{"BearerAuth":[]}],"operationId":"getSystemProcessInformation","tags":["System Information"],"responses":{"200":{"description":"process information","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/tags":{"get":{"summary":"Gets a list of Tags","security":[{"BearerAuth":[]}],"operationId":"listAllTag","tags":["Tags"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Tag"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Tags","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}}}}},"206":{"description":"Partial (paged) collection of Tags","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Tag","security":[{"BearerAuth":[]}],"operationId":"createTag","tags":["Tags"],"requestBody":{"required":true,"description":"data for creating a new Tag","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"color":{"type":"string","default":"#0091EA"},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"Tag successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/tags/{id}":{"get":{"summary":"Gets a single Tag","security":[{"BearerAuth":[]}],"operationId":"getTagById","tags":["Tags"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Tag to get"}],"responses":{"200":{"description":"Tag with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Tag not found"}}},"put":{"summary":"Update an existing Tag","security":[{"BearerAuth":[]}],"operationId":"updateTagById","tags":["Tags"],"requestBody":{"required":true,"description":"data for updating a new Tag","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"color":{"type":"string","default":"#0091EA"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Tag to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Tag not found"}}}},"/tags/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Tag","security":[{"BearerAuth":[]}],"operationId":"deleteTagById","tags":["Tags"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Tag to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Tag not found"}}}},"/teams":{"get":{"summary":"Gets a list of Teams","security":[{"BearerAuth":[]}],"operationId":"listAllTeam","tags":["Teams"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Team"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Teams","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Team"}}}}},"206":{"description":"Partial (paged) collection of Teams","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Team"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Team","security":[{"BearerAuth":[]}],"operationId":"createTeam","tags":["Teams"],"requestBody":{"required":true,"description":"data for creating a new Team","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"Team successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/teams/{id}":{"get":{"summary":"Gets a single Team","security":[{"BearerAuth":[]}],"operationId":"getTeamById","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team to get"}],"responses":{"200":{"description":"Team with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Team not found"}}},"put":{"summary":"Update an existing Team","security":[{"BearerAuth":[]}],"operationId":"updateTeamById","tags":["Teams"],"requestBody":{"required":true,"description":"data for updating a new Team","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Team not found"}}}},"/teams/{id}/queues":{"get":{"summary":"Gets Queues list","security":[{"BearerAuth":[]}],"operationId":"getQueues","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add queues to a team","security":[{"BearerAuth":[]}],"operationId":"addQueues","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove queues to a team","security":[{"BearerAuth":[]}],"operationId":"removeQueues","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/teams/{id}/users":{"get":{"summary":"Gets agents from team","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Adds agents to a team","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a team","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/teams/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Team","security":[{"BearerAuth":[]}],"operationId":"deleteTeamById","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Team not found"}}}},"/templates":{"get":{"summary":"Gets a list of Templates","security":[{"BearerAuth":[]}],"operationId":"listAllTemplate","tags":["Templates"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Template"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Templates","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Template"}}}}},"206":{"description":"Partial (paged) collection of Templates","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Template"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Template","security":[{"BearerAuth":[]}],"operationId":"createTemplate","tags":["Templates"],"requestBody":{"required":true,"description":"data for creating a new Template","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"html":{"type":"string"}}}}}},"responses":{"201":{"description":"Template successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/templates/{id}":{"get":{"summary":"Gets a single Template","security":[{"BearerAuth":[]}],"operationId":"getTemplateById","tags":["Templates"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Template to get"}],"responses":{"200":{"description":"Template with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Template not found"}}},"put":{"summary":"Update an existing Template","security":[{"BearerAuth":[]}],"operationId":"updateTemplateById","tags":["Templates"],"requestBody":{"required":true,"description":"data for updating a new Template","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"html":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Template to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Template not found"}}}},"/templates/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Template","security":[{"BearerAuth":[]}],"operationId":"deleteTemplateById","tags":["Templates"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Template to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Template not found"}}}},"/triggers":{"get":{"summary":"Gets a list of Triggers","security":[{"BearerAuth":[]}],"operationId":"listAllTrigger","tags":["Triggers"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Trigger"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Triggers","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Trigger"}}}}},"206":{"description":"Partial (paged) collection of Triggers","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Trigger"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Trigger","security":[{"BearerAuth":[]}],"operationId":"createTrigger","tags":["Triggers"],"requestBody":{"required":true,"description":"data for creating a new Trigger","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"channel":{"type":"string"},"description":{"type":"string"},"status":{"type":"boolean","default":false}}}}}},"responses":{"201":{"description":"Trigger successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Trigger"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/triggers/{id}":{"get":{"summary":"Gets a single Trigger","security":[{"BearerAuth":[]}],"operationId":"getTriggerById","tags":["Triggers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger to get"}],"responses":{"200":{"description":"Trigger with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Trigger"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Trigger not found"}}},"put":{"summary":"Update an existing Trigger","security":[{"BearerAuth":[]}],"operationId":"updateTriggerById","tags":["Triggers"],"requestBody":{"required":true,"description":"data for updating a new Trigger","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"channel":{"type":"string"},"description":{"type":"string"},"status":{"type":"boolean","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Trigger not found"}}}},"/triggers/{id}/all_conditions":{"get":{"summary":"Gets \"AND\" Trigger Conditions","security":[{"BearerAuth":[]}],"operationId":"getAllConditions","tags":["Triggers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new \"AND\"condition","security":[{"BearerAuth":[]}],"operationId":"addAllCondition","tags":["Triggers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/triggers/{id}/any_conditions":{"get":{"summary":"Gets \"OR\" Trigger Conditions","security":[{"BearerAuth":[]}],"operationId":"getAnyConditions","tags":["Triggers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new \"OR\"condition","security":[{"BearerAuth":[]}],"operationId":"addAnyCondition","tags":["Triggers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/triggers/{id}/actions":{"get":{"summary":"Gets Trigger Actions","security":[{"BearerAuth":[]}],"operationId":"getActions","tags":["Triggers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new actions","security":[{"BearerAuth":[]}],"operationId":"addAction","tags":["Triggers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/triggers/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Trigger","security":[{"BearerAuth":[]}],"operationId":"deleteTriggerById","tags":["Triggers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Trigger not found"}}}},"/trunks":{"get":{"summary":"Gets a list of Trunks","security":[{"BearerAuth":[]}],"operationId":"listAllTrunk","tags":["Trunks"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Trunk"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Trunks","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Trunk"}}}}},"206":{"description":"Partial (paged) collection of Trunks","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Trunk"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/trunks/{id}":{"get":{"summary":"Gets a single Trunk","security":[{"BearerAuth":[]}],"operationId":"getTrunkById","tags":["Trunks"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trunk to get"}],"responses":{"200":{"description":"Trunk with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Trunk"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Trunk not found"}}},"put":{"summary":"Update an existing trunk","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Trunks"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trunk"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Deletes a trunk","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Trunks"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trunk"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/trunks/clone":{"post":{"summary":"Clone an existing Trunk","security":[{"BearerAuth":[]}],"operationId":"cloneTrunk","tags":["Trunks"],"requestBody":{"required":true,"description":"data for creating a new Trunk","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"id of the Trunk to clone"},"name":{"type":"string"},"type":{"type":"string","enum":["friend","user","peer"],"default":"friend"},"context":{"type":"string","default":"from-voip-provider"},"callingpres":{"type":"string","enum":["ALLOWED_NOT_SCREENED","ALLOWED_PASSED_SCREEN","ALLOWED_FAILED_SCREEN","ALLOWED","PROHIB_NOT_SCREENED","PROHIB_PASSED_SCREEN","PROHIB_FAILED_SCREEN","PROHIB"]},"deny":{"type":"string"},"permit":{"type":"string"},"secret":{"type":"string"},"md5secret":{"type":"string"},"remotesecret":{"type":"string"},"transport":{"type":"string","description":"String is deprecated. Please use an Array as [\"udp\", \"tcp\"]","default":"udp"},"dtmfmode":{"type":"string","enum":["rfc2833","info","shortinfo","inband","auto"],"default":"rfc2833"},"directmedia":{"type":"string","enum":["yes","no","nonat","update","outgoing"],"default":"no"},"directrtpsetup":{"type":"string","enum":["yes","no"],"default":"no"},"directmediapermit":{"type":"string"},"directmediadeny":{"type":"string"},"nat":{"type":"string","description":"String is deprecated. Please use an Array as [\"force_rport\", \"comedia\"]","default":"force_rport,comedia"},"callgroup":{"type":"string"},"namedcallgroup":{"type":"string"},"pickupgroup":{"type":"string"},"namedpickupgroup":{"type":"string"},"language":{"type":"string","default":"en"},"tonezone":{"type":"string"},"disallow":{"type":"string","default":"all"},"allow":{"type":"string","description":"String is deprecated. Please use an Array as [\"ulaw\", \"alaw\", \"alaw\"]","default":"ulaw;alaw;gsm"},"autoframing":{"type":"string","enum":["yes","no"]},"insecure":{"type":"string","description":"String is deprecated. Please use an Array as [\"port\", \"invite\"]","default":"port,invite"},"trustrpid":{"type":"string","enum":["yes","no"],"default":"no"},"trust_id_outbound":{"type":"string","enum":["yes","no"],"default":"no"},"progressinband":{"type":"string","enum":["yes","no","never"]},"promiscredir":{"type":"string","enum":["yes","no"]},"useclientcode":{"type":"string","enum":["yes","no"]},"accountcode":{"type":"integer"},"setvar":{"type":"string"},"callerid":{"type":"string","default":"\"\" <>"},"amaflags":{"type":"string"},"callcounter":{"type":"string","enum":["yes","no"],"default":"yes"},"busylevel":{"type":"integer"},"allowoverlap":{"type":"string","enum":["yes","no"]},"allowsubscribe":{"type":"string","enum":["yes","no"]},"allowtransfer":{"type":"string","enum":["yes","no"]},"ignoresdpversion":{"type":"string","enum":["yes","no"]},"subscribecontext":{"type":"string"},"template":{"type":"string"},"videosupport":{"type":"string","enum":["yes","no","always"],"default":"no"},"maxcallbitrate":{"type":"integer"},"rfc2833compensate":{"type":"string","enum":["yes","no"]},"mailbox":{"type":"string"},"session_timers":{"type":"string","enum":["accept","refuse","originate"]},"session_expires":{"type":"integer"},"session_minse":{"type":"integer"},"session_refresher":{"type":"string","enum":["uac","uas"],"default":"uas"},"t38pt_usertpsource":{"type":"string"},"regexten":{"type":"string"},"fromdomain":{"type":"string"},"fromuser":{"type":"string"},"port":{"type":"integer"},"qualify":{"type":"string","enum":["yes","no"],"default":"yes"},"keepalive":{"type":"integer"},"defaultip":{"type":"string"},"defaultuser":{"type":"string"},"rtptimeout":{"type":"integer"},"rtpholdtimeout":{"type":"integer"},"rtpkeepalive":{"type":"integer"},"sendrpid":{"type":"string","enum":["yes","no","pai"],"default":"no"},"outboundproxy":{"type":"string"},"callbackextension":{"type":"string"},"timert1":{"type":"integer"},"timerb":{"type":"integer"},"qualifyfreq":{"type":"integer"},"contactpermit":{"type":"string"},"contactdeny":{"type":"string"},"contactacl":{"type":"string"},"unsolicited_mailbox":{"type":"string"},"use_q850_reason":{"type":"string"},"maxforwards":{"type":"integer"},"encryption":{"type":"string","enum":["yes","no"],"default":"no"},"avpf":{"type":"string","enum":["yes","no"]},"force_avp":{"type":"string","enum":["yes","no"]},"icesupport":{"type":"string","enum":["yes","no"]},"dtlsenable":{"type":"string","enum":["yes","no"]},"dtlsverify":{"type":"string","enum":["yes","no","fingerprint","certificate"]},"dtlsrekey":{"type":"integer"},"dtlscertfile":{"type":"string"},"dtlsprivatekey":{"type":"string"},"dtlscipher":{"type":"string"},"dtlscafile":{"type":"string"},"dtlscapath":{"type":"string"},"dtlssetup":{"type":"string","enum":["active","passive","actpass"]},"dtlsfingerprint":{"type":"string"},"usereqphone":{"type":"string","enum":["yes","no"],"default":"no"},"recordonfeature":{"type":"string"},"recordofffeature":{"type":"string"},"call_limit":{"type":"integer","default":1000},"registertrying":{"type":"string","enum":["yes","no"]},"subscribemwi":{"type":"string","enum":["yes","no"]},"vmexten":{"type":"string"},"mohinterpret":{"type":"string"},"mohsuggest":{"type":"string"},"parkinglot":{"type":"string"},"description":{"type":"string"},"host":{"type":"string","default":"dynamic"},"canreinvite":{"type":"string","enum":["yes","no","nonat","update","update,nonat"],"default":"no"},"registry":{"type":"string"},"otherFields":{"type":"string"},"active":{"type":"boolean","default":true},"t38pt_udptl":{"type":"string","default":"no"}},"required":["id"]}}}},"responses":{"201":{"description":"Trunk successfully cloned. Returns the cloned object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Trunk"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/trunks/":{"post":{"summary":"Create a new trunk","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Trunks"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users":{"get":{"summary":"Gets a list of Users","security":[{"BearerAuth":[]}],"operationId":"listUsers","tags":["Users"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each User"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Users","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/User"}}}}},"206":{"description":"Partial (paged) collection of Users","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/User"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Create a new User","security":[{"BearerAuth":[]}],"operationId":"postCreateUser","tags":["Users"],"requestBody":{"required":true,"description":"user to be created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"responses":{"201":{"description":"user created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/describe":{"get":{"summary":"Gets table info about Users","security":[{"BearerAuth":[]}],"operationId":"describeUsers","tags":["Users"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/whoami":{"get":{"summary":"Gets current user","security":[{"BearerAuth":[]}],"operationId":"getWhoAmI","tags":["Users"],"responses":{"200":{"description":"current user information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}":{"get":{"summary":"Gets a user by id","security":[{"BearerAuth":[]}],"operationId":"getUserById","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user to get"}],"responses":{"200":{"description":"user information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"put":{"summary":"Update an existing User","security":[{"BearerAuth":[]}],"operationId":"putUpdateUser","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"user properties to be updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"responses":{"200":{"description":"user updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove a user","security":[{"BearerAuth":[]}],"operationId":"deleteUser","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"204":{"description":"user deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"user not found"}}}},"/users/{id}/avatar":{"get":{"summary":"Gets a user avatar by id","security":[{"BearerAuth":[]}],"operationId":"getUserAvatarById","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user avatar","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add avatar","security":[{"BearerAuth":[]}],"operationId":"postAddAvatar","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"Add avatar","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"avatar added"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/contacts":{"get":{"summary":"Gets a user contacts by id","security":[{"BearerAuth":[]}],"operationId":"getUserContactsById","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user contacts list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user contacts list","type":"array","items":{"$ref":"#/components/schemas/CmContact"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add contacts to a user","security":[{"BearerAuth":[]}],"operationId":"postAddUserContact","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"user contacts to be added","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"contacts added"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/queues":{"get":{"summary":"Gets a user queues list by user id","security":[{"BearerAuth":[]}],"operationId":"getUserQueues","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"channel","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string","enum":["voice","mail","chat","fax","sms","whatsapp","openchannel"]},"description":"channel to filter for (e.g. mail, voice...)","examples":{"fields":{"value":"mail","summary":"A call returning only queues for channel = mail"}}}],"responses":{"200":{"description":"user queues list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user queues list","type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/VoiceQueue"},{"$ref":"#/components/schemas/MailQueue"},{"$ref":"#/components/schemas/ChatQueue"},{"$ref":"#/components/schemas/FaxQueue"},{"$ref":"#/components/schemas/SmsQueue"},{"$ref":"#/components/schemas/OpenchannelQueue"},{"$ref":"#/components/schemas/WhatsappQueue"}]}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add queues to an agent","security":[{"BearerAuth":[]}],"operationId":"postAddQueuesToAgent","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"Add queues to an agent","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"queues added"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove one or more queues from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserQueues","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the voice queues to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove voice queues with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"queues deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/queues_rt":{"get":{"summary":"Gets a user UserVoiceQueuesRt list by user id","security":[{"BearerAuth":[]}],"operationId":"getUserVoiceQueuesRt","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user UserVoiceQueuesRt list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user UserVoiceQueueRt list","type":"array","items":{"$ref":"#/components/schemas/UserVoiceQueueRt"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/groups":{"get":{"summary":"Gets a user ChatGroups list by user id","security":[{"BearerAuth":[]}],"operationId":"getChatGroups","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user ChatGroups list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user ChatGroups list","type":"array","items":{"$ref":"#/components/schemas/ChatGroup"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/recordings":{"get":{"summary":"Gets a user VoiceRecording list by user id","security":[{"BearerAuth":[]}],"operationId":"getVoiceRecordings","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user VoiceRecording list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user VoiceRecording list","type":"array","items":{"$ref":"#/components/schemas/VoiceRecording"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/screen_recordings":{"get":{"summary":"Gets a user ScreenRecording list by user id","security":[{"BearerAuth":[]}],"operationId":"getScreenRecordings","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user ScreenRecording list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user ScreenRecording list","type":"array","items":{"$ref":"#/components/schemas/ScreenRecording"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/chat/interactions":{"get":{"summary":"Gets a user ChatInteraction list by user id","security":[{"BearerAuth":[]}],"operationId":"getChatInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user ChatInteraction list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user ChatInteraction list","type":"array","items":{"$ref":"#/components/schemas/ChatInteraction"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/openchannel/interactions":{"get":{"summary":"Gets a user OpenchannelInteraction list by user id","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user OpenchannelInteraction list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user OpenchannelInteraction list","type":"array","items":{"$ref":"#/components/schemas/OpenchannelInteraction"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/mail/interactions":{"get":{"summary":"Gets a user MailInteraction list by user id","security":[{"BearerAuth":[]}],"operationId":"getMailInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user MailInteraction list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user MailInteraction list","type":"array","items":{"$ref":"#/components/schemas/MailInteraction"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/sms/interactions":{"get":{"summary":"Gets a user SmsInteraction list by user id","security":[{"BearerAuth":[]}],"operationId":"getSmsInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user SmsInteraction list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user SmsInteraction list","type":"array","items":{"$ref":"#/components/schemas/SmsInteraction"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/fax/interactions":{"get":{"summary":"Gets a user FaxInteraction list by user id","security":[{"BearerAuth":[]}],"operationId":"getFaxInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user FaxInteraction list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user FaxInteraction list","type":"array","items":{"$ref":"#/components/schemas/FaxInteraction"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/whatsapp/interactions":{"get":{"summary":"Gets a user WhatsappInteraction list by user id","security":[{"BearerAuth":[]}],"operationId":"getWhatsappInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user WhatsappInteraction list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user WhatsappInteraction list","type":"array","items":{"$ref":"#/components/schemas/WhatsappInteraction"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/teams":{"get":{"summary":"Gets a user Teams list by user id","security":[{"BearerAuth":[]}],"operationId":"getTeamss","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user Teams list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user Teams list","type":"array","items":{"$ref":"#/components/schemas/Team"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add teams to an agent","security":[{"BearerAuth":[]}],"operationId":"postPause","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"teams to be added","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"responses":{"201":{"description":"teams added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove one or more teams from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserTeams","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the teams to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove teams with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"teams deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/lists":{"get":{"summary":"Gets a user CmList list by user id","security":[{"BearerAuth":[]}],"operationId":"getCmLists","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user CmList list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user CmList list","type":"array","items":{"$ref":"#/components/schemas/CmList"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/agents":{"get":{"summary":"Gets a user Agents list by user id","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user Agents list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user Agents list","type":"array","items":{"$ref":"#/components/schemas/User"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/prefixes":{"get":{"summary":"Gets a user VoicePrefix list by user id","security":[{"BearerAuth":[]}],"operationId":"getVoicePrefixes","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user VoicePrefix list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user VoicePrefix list","type":"array","items":{"$ref":"#/components/schemas/VoicePrefix"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/fax_accounts":{"get":{"summary":"Gets a user FaxAccount list by user id","security":[{"BearerAuth":[]}],"operationId":"getFaxAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user FaxAccount list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user FaxAccount list","type":"array","items":{"$ref":"#/components/schemas/FaxAccount"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add a Fax Account to a user","security":[{"BearerAuth":[]}],"operationId":"postUserFaxAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"fax accounts to be added","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"fax accounts identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"fax accounts added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove fax accounts from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserFaxAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the fax accounts to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove fax accounts with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"fax accounts deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/mail_accounts":{"get":{"summary":"Gets a user MailAccount list by user id","security":[{"BearerAuth":[]}],"operationId":"getMailAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user MailAccount list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user MailAccount list","type":"array","items":{"$ref":"#/components/schemas/MailAccount"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add a mail Account to a user","security":[{"BearerAuth":[]}],"operationId":"postUserMailAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"mail accounts to be added","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"mail accounts identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"mail accounts added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove mail accounts from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserMailAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the mail accounts to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove mail accounts with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"mail accounts deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/openchannel_accounts":{"get":{"summary":"Gets a user OpenchannelAccount list by user id","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user OpenchannelAccount list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user OpenchannelAccount list","type":"array","items":{"$ref":"#/components/schemas/OpenchannelAccount"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add a openchannel Account to a user","security":[{"BearerAuth":[]}],"operationId":"postUserOpenchannelAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"openchannel accounts to be added","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"openchannel accounts identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"openchannel accounts added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove openchannel accounts from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserOpenchannelAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the openchannel accounts to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove openchannel accounts with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"openchannel accounts deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/sms_accounts":{"get":{"summary":"Gets a user SmsAccount list by user id","security":[{"BearerAuth":[]}],"operationId":"getSmsAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user SmsAccount list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user SmsAccount list","type":"array","items":{"$ref":"#/components/schemas/SmsAccount"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add a sms Account to a user","security":[{"BearerAuth":[]}],"operationId":"postUserSmsAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"sms accounts to be added","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"sms accounts identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"sms accounts added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove sms accounts from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserSmsAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the sms accounts to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove sms accounts with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"sms accounts deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/chat_websites":{"get":{"summary":"Gets a user ChatWebsite list by user id","security":[{"BearerAuth":[]}],"operationId":"getChatWebsites","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user ChatWebsite list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user ChatWebsite list","type":"array","items":{"$ref":"#/components/schemas/ChatWebsite"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add a Chat Website to a user","security":[{"BearerAuth":[]}],"operationId":"postUserChatWebsites","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"chat websites to be added","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"chat websites identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"chat websites added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove chat websites from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserChatWebsites","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the chat websites to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove chat websites with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"chat websites deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/whatsapp_accounts":{"get":{"summary":"Gets a user WhatsappAccount list by user id","security":[{"BearerAuth":[]}],"operationId":"getWhatsappAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user WhatsappAccount list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user WhatsappAccount list","type":"array","items":{"$ref":"#/components/schemas/WhatsappAccount"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add a whatsapp Account to a user","security":[{"BearerAuth":[]}],"operationId":"postUserWhatsappAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"whatsapp accounts to be added","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"whatsapp accounts identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"whatsapp accounts added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove whatsapp accounts from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserWhatsappAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the whatsapp accounts to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove whatsapp accounts with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"whatsapp accounts deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/square_projects":{"get":{"summary":"Gets a user SquareProject list by user id","security":[{"BearerAuth":[]}],"operationId":"getSquareProjects","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user SquareProject list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user SquareProject list","type":"array","items":{"$ref":"#/components/schemas/SquareProject"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add a Square Project to a user","security":[{"BearerAuth":[]}],"operationId":"postUserSquareProject","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"square project to be added","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"square project identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"square project added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove one or more Square Project from a user","security":[{"BearerAuth":[]}],"operationId":"deleteSquareProjects","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the square project to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove square project with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"square project deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/scheduled_calls":{"get":{"summary":"Gets a user scheduled calls list by user id","security":[{"BearerAuth":[]}],"operationId":"getScheduledCalls","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user scheduled calls list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user scheduled calls list","type":"array","items":{"type":"object"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/api_key":{"get":{"summary":"Gets a user api key by user id","security":[{"BearerAuth":[]}],"operationId":"getApiKey","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user api keys list result","content":{"application/json":{"schema":{"type":"object","properties":{"api_key":{"type":"string","description":"api key token"}}}}}},"204":{"description":"No API access key found!","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"error message","default":"No API access key found!"}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Create a new API access key for the user","security":[{"BearerAuth":[]}],"operationId":"postCreateApiKey","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"tags":["Users"],"responses":{"201":{"description":"the api key that has been created","content":{"application/json":{"schema":{"type":"object","properties":{"api_key":{"type":"string","description":"api key token"}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove API access key for the user","security":[{"BearerAuth":[]}],"operationId":"deleteUserApiKey","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"204":{"description":"user apikey deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"user not found"}}}},"/users/create_many":{"post":{"summary":"Create several Users","security":[{"BearerAuth":[]}],"operationId":"postCreateUsers","tags":["Users"],"requestBody":{"required":true,"description":"users to be created","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/User"}}}}},"responses":{"201":{"description":"users created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/login":{"post":{"summary":"perform SIP Login","security":[{"BearerAuth":[]}],"operationId":"postSipLogin","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"Login","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"SIP Login success"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/logout":{"post":{"summary":"perform SIP logout","security":[{"BearerAuth":[]}],"operationId":"postSipLogout","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"201":{"description":"SIP logout success"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/pause":{"post":{"summary":"set pause status","security":[{"BearerAuth":[]}],"operationId":"postPause","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"pause payload","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"status updated successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/unpause":{"post":{"summary":"unset pause status","security":[{"BearerAuth":[]}],"operationId":"postUnpause","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"unpause payload","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"status updated successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/chat_interactions":{"post":{"summary":"Add chat interaction tabs to an agent","security":[{"BearerAuth":[]}],"operationId":"postUserChatInteraction","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"chat interaction tabs","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"chat interactions identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"chat interaction tabs added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove chat interactions from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserChatInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the chat interactions to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove chat interactions with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"chat interactions deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/mail_interactions":{"post":{"summary":"Add mail interaction tabs to an agent","security":[{"BearerAuth":[]}],"operationId":"postUserMailInteraction","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"mail interaction tabs","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"mail interactions identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"mail interaction tabs added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove mail interactions from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserMailInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the mail interactions to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove mail interactions with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"mail interactions deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/fax_interactions":{"post":{"summary":"Add fax interaction tabs to an agent","security":[{"BearerAuth":[]}],"operationId":"postUserFaxInteraction","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"fax interaction tabs","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"fax interactions identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"fax interaction tabs added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove fax interactions from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserFaxInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the fax interactions to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove fax interactions with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"fax interactions deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/sms_interactions":{"post":{"summary":"Add sms interaction tabs to an agent","security":[{"BearerAuth":[]}],"operationId":"postUserSmsInteraction","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"sms interaction tabs","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"sms interactions identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"sms interaction tabs added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove sms_interactions from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserSmsInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the sms interactions to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove sms interactions with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"sms interactions deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/openchannel_interactions":{"post":{"summary":"Add openchannel interaction tabs to an agent","security":[{"BearerAuth":[]}],"operationId":"postUserOpenchannelInteraction","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"openchannel interaction tabs","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"openchannel interactions identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"openchannel interaction tabs added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove openchannel interactions from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserOpenchannelInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the openchannel interactions to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove openchannel interactions with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"openchannel interactions deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/whatsapp_interactions":{"post":{"summary":"Add whatsapp interaction tabs to an agent","security":[{"BearerAuth":[]}],"operationId":"postUserWhatsappInteraction","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"whatsapp interaction tabs","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"whatsapp interactions identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"whatsapp interaction tabs added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove whatsapp_interactions from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserWhatsappInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the whatsapp interactions to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove whatsapp interactions with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"whatsapp interactions deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/password":{"put":{"summary":"Update an existing User","security":[{"BearerAuth":[]}],"operationId":"putUpdateUser","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"old password and new password","content":{"application/json":{"schema":{"type":"object","properties":{"oldPassword":{"type":"string","format":"password","description":"old password"},"newPassword":{"type":"string","format":"password","description":"new password"}},"required":["oldPassword","newPassword"]}}}},"responses":{"200":{"description":"user password updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfiles":{"get":{"summary":"Gets a list of User Profiles","security":[{"BearerAuth":[]}],"operationId":"listAllUserProfile","tags":["User Profiles"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each UserProfile"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of User Profiles","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserProfile"}}}}},"206":{"description":"Partial (paged) collection of User Profiles","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserProfile"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new User Profile","security":[{"BearerAuth":[]}],"operationId":"createUserProfile","tags":["User Profiles"],"requestBody":{"required":true,"description":"data for creating a new User Profile","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"crudPermissions":{"type":"string","default":"r"},"description":{"type":"string"}},"required":["name","crudPermissions"]}}}},"responses":{"201":{"description":"UserProfile successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfile"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfiles/describe":{"get":{"summary":"Gets table info about User Profiles","security":[{"BearerAuth":[]}],"operationId":"describeUserProfile","tags":["User Profiles"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfiles/{id}":{"get":{"summary":"Gets a single User Profile","security":[{"BearerAuth":[]}],"operationId":"getUserProfileById","tags":["User Profiles"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile to get"}],"responses":{"200":{"description":"UserProfile with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfile"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfile not found"}}},"put":{"summary":"Update an existing User Profile","security":[{"BearerAuth":[]}],"operationId":"updateUserProfileById","tags":["User Profiles"],"requestBody":{"required":true,"description":"data for updating a new User Profile","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"crudPermissions":{"type":"string","default":"r"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfile not found"}}}},"/userProfiles/{id}/sections":{"get":{"summary":"Get sections associated to a User Profile","security":[{"BearerAuth":[]}],"operationId":"getSections","tags":["User Profiles"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add sections' permissions to User Profile","security":[{"BearerAuth":[]}],"operationId":"addSections","tags":["User Profiles"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes sections' permissions from User Profile","security":[{"BearerAuth":[]}],"operationId":"removeSections","tags":["User Profiles"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfiles/{id}/resources":{"get":{"summary":"Get Resources assigned to a Section","security":[{"BearerAuth":[]}],"operationId":"getResources","tags":["User Profiles"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add resources' permissions to User Profile","security":[{"BearerAuth":[]}],"operationId":"addResources","tags":["User Profiles"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes resources' permissions from User Profile","security":[{"BearerAuth":[]}],"operationId":"removeResources","tags":["User Profiles"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfiles/clone":{"post":{"summary":"Clone an existing User Profile","security":[{"BearerAuth":[]}],"operationId":"cloneUserProfile","tags":["User Profiles"],"requestBody":{"required":true,"description":"data for creating a new User Profile","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"id of the User Profile to clone"},"name":{"type":"string"},"crudPermissions":{"type":"string","default":"r"},"description":{"type":"string"}},"required":["id"]}}}},"responses":{"201":{"description":"UserProfile successfully cloned. Returns the cloned object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfile"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfiles/{id}/destroy_many":{"delete":{"summary":"Destroy an existing User Profile","security":[{"BearerAuth":[]}],"operationId":"deleteUserProfileById","tags":["User Profiles"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfile not found"}}}},"/userProfile/resources":{"get":{"summary":"Gets a list of User Profile Resources","security":[{"BearerAuth":[]}],"operationId":"listAllUserProfileResource","tags":["User Profile Resources"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each UserProfileResource"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of User Profile Resources","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserProfileResource"}}}}},"206":{"description":"Partial (paged) collection of User Profile Resources","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserProfileResource"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new User Profile Resource","security":[{"BearerAuth":[]}],"operationId":"createUserProfileResource","tags":["User Profile Resources"],"requestBody":{"required":true,"description":"data for creating a new User Profile Resource","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"resourceId":{"type":"integer"},"type":{"type":"string"}},"required":["name","resourceId","type"]}}}},"responses":{"201":{"description":"UserProfileResource successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileResource"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfile/resources/describe":{"get":{"summary":"Gets table info about User Profile Resources","security":[{"BearerAuth":[]}],"operationId":"describeUserProfileResource","tags":["User Profile Resources"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfile/resources/{id}":{"get":{"summary":"Gets a single User Profile Resource","security":[{"BearerAuth":[]}],"operationId":"getUserProfileResourceById","tags":["User Profile Resources"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfileResource to get"}],"responses":{"200":{"description":"UserProfileResource with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileResource"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfileResource not found"}}},"put":{"summary":"Update an existing User Profile Resource","security":[{"BearerAuth":[]}],"operationId":"updateUserProfileResourceById","tags":["User Profile Resources"],"requestBody":{"required":true,"description":"data for updating a new User Profile Resource","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"resourceId":{"type":"integer"},"type":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfileResource to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfileResource not found"}}}},"/userProfile/resources/{id}/destroy_many":{"delete":{"summary":"Destroy an existing User Profile Resource","security":[{"BearerAuth":[]}],"operationId":"deleteUserProfileResourceById","tags":["User Profile Resources"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfileResource to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfileResource not found"}}}},"/userProfile/sections":{"get":{"summary":"Gets a list of User Profile Sections","security":[{"BearerAuth":[]}],"operationId":"listAllUserProfileSection","tags":["User Profile Sections"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each UserProfileSection"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of User Profile Sections","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserProfileSection"}}}}},"206":{"description":"Partial (paged) collection of User Profile Sections","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserProfileSection"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new User Profile Section","security":[{"BearerAuth":[]}],"operationId":"createUserProfileSection","tags":["User Profile Sections"],"requestBody":{"required":true,"description":"data for creating a new User Profile Section","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"category":{"type":"string"},"sectionId":{"type":"integer"},"enabled":{"type":"boolean","default":null},"autoAssociation":{"type":"boolean","default":null},"crudPermissions":{"type":"string"}},"required":["name","category","sectionId"]}}}},"responses":{"201":{"description":"UserProfileSection successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileSection"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfile/sections/describe":{"get":{"summary":"Gets table info about User Profile Sections","security":[{"BearerAuth":[]}],"operationId":"describeUserProfileSection","tags":["User Profile Sections"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfile/sections/{id}":{"get":{"summary":"Gets a single User Profile Section","security":[{"BearerAuth":[]}],"operationId":"getUserProfileSectionById","tags":["User Profile Sections"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfileSection to get"}],"responses":{"200":{"description":"UserProfileSection with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileSection"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfileSection not found"}}},"put":{"summary":"Update an existing User Profile Section","security":[{"BearerAuth":[]}],"operationId":"updateUserProfileSectionById","tags":["User Profile Sections"],"requestBody":{"required":true,"description":"data for updating a new User Profile Section","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"category":{"type":"string"},"sectionId":{"type":"integer"},"enabled":{"type":"boolean","default":null},"autoAssociation":{"type":"boolean","default":null},"crudPermissions":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfileSection to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfileSection not found"}}}},"/userProfile/sections/{id}/destroy_many":{"delete":{"summary":"Destroy an existing User Profile Section","security":[{"BearerAuth":[]}],"operationId":"deleteUserProfileSectionById","tags":["User Profile Sections"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfileSection to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfileSection not found"}}}},"/variables":{"get":{"summary":"Gets a list of Variables","security":[{"BearerAuth":[]}],"operationId":"listAllVariable","tags":["Variables"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Variable"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Variables","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Variable"}}}}},"206":{"description":"Partial (paged) collection of Variables","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Variable"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Variable","security":[{"BearerAuth":[]}],"operationId":"createVariable","tags":["Variables"],"requestBody":{"required":true,"description":"data for creating a new Variable","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"Variable successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Variable"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/variables/{id}":{"get":{"summary":"Gets a single Variable","security":[{"BearerAuth":[]}],"operationId":"getVariableById","tags":["Variables"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Variable to get"}],"responses":{"200":{"description":"Variable with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Variable"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Variable not found"}}},"put":{"summary":"Update an existing Variable","security":[{"BearerAuth":[]}],"operationId":"updateVariableById","tags":["Variables"],"requestBody":{"required":true,"description":"data for updating a new Variable","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Variable to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Variable not found"}}}},"/variables/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Variable","security":[{"BearerAuth":[]}],"operationId":"deleteVariableById","tags":["Variables"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Variable to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Variable not found"}}}},"/version":{"get":{"summary":"Gets version","operationId":"getVersion","tags":["Version"],"responses":{"200":{"description":"full server version infomation","content":{"application/json":{"schema":{"type":"object","properties":{"current":{"type":"string","description":"current product version (semver)"},"phonebar":{"type":"string","description":"current phonebar version (semver)"},"shortHash":{"type":"string","description":"latest server git sha hash"},"branch":{"type":"string","description":"server git branch"},"tag":{"type":"string","description":"server git tag (s)"},"committedOn":{"type":"string","format":"date","description":"last commit date"},"buildDate":{"type":"string","format":"date","description":"buildDate date"}},"required":["current","phonebar","shortHash","branch","tag","committedOn","buildDate"]}}}}}}},"/version/fetch":{"get":{"summary":"Fetch git version","security":[{"BearerAuth":[]}],"operationId":"fetchVersion","tags":["Version"],"responses":{"200":{"description":"operation successfull","content":{"application/json":{"schema":{"type":"object","properties":{"output":{"type":"string","default":"git fetch origin master","description":"current output"}},"required":["output"]}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/version/reset":{"get":{"summary":"Reset git version","security":[{"BearerAuth":[]}],"operationId":"resetVersion","tags":["Version"],"responses":{"200":{"description":"operation successfull","content":{"application/json":{"schema":{"type":"object","properties":{"output":{"type":"string","default":"git reset --hard","description":"current output"}},"required":["output"]}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/version/pull":{"get":{"summary":"Pull git version","security":[{"BearerAuth":[]}],"operationId":"pullVersion","tags":["Version"],"responses":{"200":{"description":"operation successfull","content":{"application/json":{"schema":{"type":"object","properties":{"output":{"type":"string","description":"current output"}},"required":["output"]}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/version/restart":{"get":{"summary":"Restart motion2 after update","security":[{"BearerAuth":[]}],"operationId":"restartVersion","tags":["Version"],"responses":{"200":{"description":"operation successfull","content":{"application/json":{"schema":{"type":"object","properties":{"output":{"type":"string","default":"Your system has been restarted successfully","description":"current output"}},"required":["output"]}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/version/migrations":{"get":{"summary":"Launch database migrations","security":[{"BearerAuth":[]}],"operationId":"migrateVersion","tags":["Version"],"responses":{"200":{"description":"operation successfull","content":{"application/json":{"schema":{"type":"object","properties":{"output":{"type":"string","default":"Database already up-to-date","description":"current output"},"migrations":{"type":"array","items":{"type":"string"},"description":"migrations that have been executed (version numbers)"}},"required":["output"]}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/agents/reports":{"get":{"summary":"Gets a list of Agent Reports","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceAgentReport","tags":["Voice Agent Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceAgentReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Agent Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceAgentReport"}}}}},"206":{"description":"Partial (paged) collection of Agent Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceAgentReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/agents/reports/describe":{"get":{"summary":"Gets table info about Agent Reports","security":[{"BearerAuth":[]}],"operationId":"describeVoiceAgentReport","tags":["Voice Agent Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/agents/reports/{id}":{"get":{"summary":"Gets a single Agent Report","security":[{"BearerAuth":[]}],"operationId":"getVoiceAgentReportById","tags":["Voice Agent Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceAgentReport to get"}],"responses":{"200":{"description":"VoiceAgentReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceAgentReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceAgentReport not found"}}}},"/voice/calls/reports":{"get":{"summary":"Gets a list of Call Reports","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceCallReport","tags":["Voice Call Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceCallReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Call Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceCallReport"}}}}},"206":{"description":"Partial (paged) collection of Call Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceCallReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/calls/reports/describe":{"get":{"summary":"Gets table info about Call Reports","security":[{"BearerAuth":[]}],"operationId":"describeVoiceCallReport","tags":["Voice Call Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/calls/reports/{id}":{"get":{"summary":"Gets a single Call Report","security":[{"BearerAuth":[]}],"operationId":"getVoiceCallReportById","tags":["Voice Call Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceCallReport to get"}],"responses":{"200":{"description":"VoiceCallReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCallReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceCallReport not found"}}},"put":{"summary":"Update a single cdr","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Voice Call Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceCallReport"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/chanspy":{"get":{"summary":"Gets a list of Voice ChanSpy","security":[{"BearerAuth":[]}],"operationId":"listVoiceChanSpy","tags":["Voice ChanSpy"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each voice chanspy"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Voice ChanSpy","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceChanSpy"}}}}},"206":{"description":"Partial (paged) collection of Voice ChanSpy","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceChanSpy"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/chanspy/{id}":{"get":{"summary":"Get a ChanSpy by Id","security":[{"BearerAuth":[]}],"operationId":"getChanSpyById","tags":["Voice ChanSpy"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChanSpy"}],"responses":{"200":{"description":"the desired chanspy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceChanSpy"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"chanspy not found"}}},"post":{"summary":"create a ChanSpy","security":[{"BearerAuth":[]}],"operationId":"createChanSpy","tags":["Voice ChanSpy"],"requestBody":{"required":true,"description":"chanspy data","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"chanspy name"},"prefix":{"type":"string","description":"chanspy prefix"},"options":{"type":"string","description":"chanspy preoptionsfix"},"auth":{"type":"boolean","description":"chanspy auth"},"password":{"type":"string","format":"password","description":"chanspy password"},"record":{"type":"boolean","description":"chanspy record"},"recordingFormat":{"type":"string","description":"chanspy recordingFormat"},"description":{"type":"string","description":"chanspy description"}},"required":["prefix"]}}}},"responses":{"201":{"description":"successfully created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceChanSpy"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"chanspy not found"}}},"put":{"summary":"Update a ChanSpy","security":[{"BearerAuth":[]}],"operationId":"updateChanSpyById","tags":["Voice ChanSpy"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChanSpy"}],"requestBody":{"required":true,"description":"chanspy data","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"chanspy name"},"prefix":{"type":"string","description":"chanspy prefix"},"options":{"type":"string","description":"chanspy preoptionsfix"},"auth":{"type":"boolean","description":"chanspy auth"},"password":{"type":"string","format":"password","description":"chanspy password"},"record":{"type":"boolean","description":"chanspy record"},"recordingFormat":{"type":"string","description":"chanspy recordingFormat"},"description":{"type":"string","description":"chanspy description"}},"required":["prefix"]}}}},"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"chanspy not found"}}},"delete":{"summary":"Delete a ChanSpy","security":[{"BearerAuth":[]}],"operationId":"deleteChanSpyById","tags":["Voice ChanSpy"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChanSpy"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"chanspy not found"}}}},"/voice/contexts":{"get":{"summary":"Gets a list of Contexts","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceContext","tags":["Voice Contexts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceContext"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Contexts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceContext"}}}}},"206":{"description":"Partial (paged) collection of Contexts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceContext"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/contexts/{id}":{"get":{"summary":"Gets a single Context","security":[{"BearerAuth":[]}],"operationId":"getVoiceContextById","tags":["Voice Contexts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceContext to get"}],"responses":{"200":{"description":"VoiceContext with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceContext"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceContext not found"}}},"put":{"summary":"Update an existing context","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Voice Contexts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceContext"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Deletes a context","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Voice Contexts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceContext"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/contexts/":{"post":{"summary":"Create a new context","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Voice Contexts"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/dials/reports":{"get":{"summary":"Gets a list of Dial Reports","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceDialReport","tags":["Voice Dial Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceDialReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Dial Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceDialReport"}}}}},"206":{"description":"Partial (paged) collection of Dial Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceDialReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/dials/reports/describe":{"get":{"summary":"Gets table info about Dial Reports","security":[{"BearerAuth":[]}],"operationId":"describeVoiceDialReport","tags":["Voice Dial Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/dials/reports/{id}":{"get":{"summary":"Gets a single Dial Report","security":[{"BearerAuth":[]}],"operationId":"getVoiceDialReportById","tags":["Voice Dial Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceDialReport to get"}],"responses":{"200":{"description":"VoiceDialReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceDialReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceDialReport not found"}}}},"/voice/extensions":{"get":{"summary":"Gets a list of Extensions","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceExtension","tags":["Voice Extensions"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceExtension"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Extensions","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceExtension"}}}}},"206":{"description":"Partial (paged) collection of Extensions","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceExtension"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/extensions/{id}":{"get":{"summary":"Gets a single Extension","security":[{"BearerAuth":[]}],"operationId":"getVoiceExtensionById","tags":["Voice Extensions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceExtension to get"}],"responses":{"200":{"description":"VoiceExtension with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceExtension"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceExtension not found"}}},"put":{"summary":"Update an extension","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Voice Extensions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceExtension"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/extensions/":{"post":{"summary":"Create an extension","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Voice Extensions"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/extensions/{id}/applications":{"post":{"summary":"Create new applications","security":[{"BearerAuth":[]}],"operationId":"addApplications","tags":["Voice Extensions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceExtension"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/extensions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Extension","security":[{"BearerAuth":[]}],"operationId":"deleteVoiceExtensionById","tags":["Voice Extensions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceExtension to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceExtension not found"}}}},"/voice/mails":{"get":{"summary":"Gets a list of Mails","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceMail","tags":["Voice Mails"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceMail"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Mails","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceMail"}}}}},"206":{"description":"Partial (paged) collection of Mails","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceMail"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Mail","security":[{"BearerAuth":[]}],"operationId":"createVoiceMail","tags":["Voice Mails"],"requestBody":{"required":true,"description":"data for creating a new Mail","content":{"application/json":{"schema":{"type":"object","properties":{"customer_id":{"type":"string"},"context":{"type":"string","default":"from-voicemail"},"mailbox":{"type":"string","default":""},"password":{"type":"string"},"fullname":{"type":"string"},"email":{"type":"string"},"pager":{"type":"string"},"tz":{"type":"string","default":"central"},"attach":{"type":"string","enum":["yes","no"],"default":"yes"},"saycid":{"type":"string","enum":["yes","no"],"default":"yes"},"dialout":{"type":"string"},"callback":{"type":"string"},"review":{"type":"string","enum":["yes","no"],"default":"no"},"operator":{"type":"string","enum":["yes","no"],"default":"no"},"envelope":{"type":"string","enum":["yes","no"],"default":"no"},"sayduration":{"type":"string","enum":["yes","no"],"default":"no"},"saydurationm":{"type":"string","default":1},"sendvoicemail":{"type":"string","enum":["yes","no"],"default":"no"},"delete":{"type":"string","enum":["yes","no"],"default":"no"},"nextaftercmd":{"type":"string","enum":["yes","no"],"default":"yes"},"forcename":{"type":"string","enum":["yes","no"],"default":"no"},"forcegreetings":{"type":"string","enum":["yes","no"],"default":"no"},"hidefromdir":{"type":"string","enum":["yes","no"],"default":"yes"},"stamp":{"type":"string"},"emailsubject":{"type":"string"},"emailbody":{"type":"string"},"maxsecs":{"type":"integer","default":180},"maxmsg":{"type":"integer","default":100},"name":{"type":"string"}},"required":["mailbox","attach","saycid","review","operator","envelope","sayduration","saydurationm","sendvoicemail","delete","nextaftercmd","forcename","forcegreetings","hidefromdir","maxsecs","maxmsg"]}}}},"responses":{"201":{"description":"VoiceMail successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceMail"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/mails/{id}":{"get":{"summary":"Gets a single Mail","security":[{"BearerAuth":[]}],"operationId":"getVoiceMailById","tags":["Voice Mails"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMail to get"}],"responses":{"200":{"description":"VoiceMail with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceMail"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceMail not found"}}},"put":{"summary":"Update an existing Mail","security":[{"BearerAuth":[]}],"operationId":"updateVoiceMailById","tags":["Voice Mails"],"requestBody":{"required":true,"description":"data for updating a new Mail","content":{"application/json":{"schema":{"type":"object","properties":{"customer_id":{"type":"string"},"context":{"type":"string","default":"from-voicemail"},"mailbox":{"type":"string","default":""},"password":{"type":"string"},"fullname":{"type":"string"},"email":{"type":"string"},"pager":{"type":"string"},"tz":{"type":"string","default":"central"},"attach":{"type":"string","enum":["yes","no"],"default":"yes"},"saycid":{"type":"string","enum":["yes","no"],"default":"yes"},"dialout":{"type":"string"},"callback":{"type":"string"},"review":{"type":"string","enum":["yes","no"],"default":"no"},"operator":{"type":"string","enum":["yes","no"],"default":"no"},"envelope":{"type":"string","enum":["yes","no"],"default":"no"},"sayduration":{"type":"string","enum":["yes","no"],"default":"no"},"saydurationm":{"type":"string","default":1},"sendvoicemail":{"type":"string","enum":["yes","no"],"default":"no"},"delete":{"type":"string","enum":["yes","no"],"default":"no"},"nextaftercmd":{"type":"string","enum":["yes","no"],"default":"yes"},"forcename":{"type":"string","enum":["yes","no"],"default":"no"},"forcegreetings":{"type":"string","enum":["yes","no"],"default":"no"},"hidefromdir":{"type":"string","enum":["yes","no"],"default":"yes"},"stamp":{"type":"string"},"emailsubject":{"type":"string"},"emailbody":{"type":"string"},"maxsecs":{"type":"integer","default":180},"maxmsg":{"type":"integer","default":100},"name":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMail to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceMail not found"}}}},"/voice/mails/{id}/messages":{"get":{"summary":"Gets voice mail messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Voice Mails"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMail"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/mails/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Mail","security":[{"BearerAuth":[]}],"operationId":"deleteVoiceMailById","tags":["Voice Mails"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMail to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceMail not found"}}}},"/voice/mails/messages":{"get":{"summary":"Gets a list of Messages","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceMailMessage","tags":["Voice Messages"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceMailMessage"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceMailMessage"}}}}},"206":{"description":"Partial (paged) collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceMailMessage"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Message","security":[{"BearerAuth":[]}],"operationId":"createVoiceMailMessage","tags":["Voice Messages"],"requestBody":{"required":true,"description":"data for creating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"msgnum":{"type":"integer","default":0},"dir":{"type":"string","default":""},"context":{"type":"string","default":""},"macrocontext":{"type":"string","default":""},"callerid":{"type":"string","default":""},"origtime":{"type":"string","default":""},"duration":{"type":"string","default":""},"mailboxuser":{"type":"string","default":""},"mailboxcontext":{"type":"string","default":""},"recording":{"type":"object","default":null},"flag":{"type":"string","default":""},"msg_id":{"type":"string","default":""},"stamp":{"type":"string"}},"required":["msgnum","stamp"]}}}},"responses":{"201":{"description":"VoiceMailMessage successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceMailMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/mails/messages/{id}":{"get":{"summary":"Gets a single Message","security":[{"BearerAuth":[]}],"operationId":"getVoiceMailMessageById","tags":["Voice Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMailMessage to get"}],"responses":{"200":{"description":"VoiceMailMessage with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceMailMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceMailMessage not found"}}},"put":{"summary":"Update an existing Message","security":[{"BearerAuth":[]}],"operationId":"updateVoiceMailMessageById","tags":["Voice Messages"],"requestBody":{"required":true,"description":"data for updating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"msgnum":{"type":"integer","default":0},"dir":{"type":"string","default":""},"context":{"type":"string","default":""},"macrocontext":{"type":"string","default":""},"callerid":{"type":"string","default":""},"origtime":{"type":"string","default":""},"duration":{"type":"string","default":""},"mailboxuser":{"type":"string","default":""},"mailboxcontext":{"type":"string","default":""},"recording":{"type":"object","default":null},"flag":{"type":"string","default":""},"msg_id":{"type":"string","default":""},"stamp":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMailMessage to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceMailMessage not found"}}}},"/voice/mails/messages/{id}/download":{"get":{"summary":"Download Voice Message","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Voice Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMailMessage"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/mails/messages/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Message","security":[{"BearerAuth":[]}],"operationId":"deleteVoiceMailMessageById","tags":["Voice Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMailMessage to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceMailMessage not found"}}}},"/voice/mohs":{"get":{"summary":"Gets a list of Music On Holds","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceMusicOnHold","tags":["Voice MOHs"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceMusicOnHold"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Music On Holds","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceMusicOnHold"}}}}},"206":{"description":"Partial (paged) collection of Music On Holds","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceMusicOnHold"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/mohs/{id}":{"get":{"summary":"Gets a single Music On Hold","security":[{"BearerAuth":[]}],"operationId":"getVoiceMusicOnHoldById","tags":["Voice MOHs"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMusicOnHold to get"}],"responses":{"200":{"description":"VoiceMusicOnHold with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceMusicOnHold"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceMusicOnHold not found"}}},"put":{"summary":"Update an existing Music On Hold","security":[{"BearerAuth":[]}],"operationId":"updateVoiceMusicOnHoldById","tags":["Voice MOHs"],"requestBody":{"required":true,"description":"data for updating a new Music On Hold","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"mode":{"type":"string","enum":["custom","files","mp3nb","quietmp3nb","quietmp3","mp3"],"default":"files"},"directory":{"type":"string"},"application":{"type":"string"},"digit":{"type":"string"},"sort":{"type":"string","default":"alpha"},"format":{"type":"string"},"stamp":{"type":"string"},"defaultEntry":{"type":"boolean","default":0}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMusicOnHold to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceMusicOnHold not found"}}},"delete":{"summary":"Deletes an MOH","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Voice MOHs"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMusicOnHold"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/mohs/{id}/sounds":{"get":{"summary":"Gets sounds from MOH","security":[{"BearerAuth":[]}],"operationId":"getSounds","tags":["Voice MOHs"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMusicOnHold"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add sound to MOH","security":[{"BearerAuth":[]}],"operationId":"addSound","tags":["Voice MOHs"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMusicOnHold"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/mohs/":{"post":{"summary":"Create a new a new MOH","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Voice MOHs"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/mohs/{id}/sounds/:id2":{"delete":{"summary":"Remove sound from MOH","security":[{"BearerAuth":[]}],"operationId":"removeSound","tags":["Voice MOHs"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMusicOnHold"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/prefixes":{"get":{"summary":"Gets a list of Prefixes","security":[{"BearerAuth":[]}],"operationId":"listAllVoicePrefix","tags":["Voice Prefixes"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoicePrefix"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Prefixes","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoicePrefix"}}}}},"206":{"description":"Partial (paged) collection of Prefixes","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoicePrefix"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/prefixes/describe":{"get":{"summary":"Gets table info about Prefixes","security":[{"BearerAuth":[]}],"operationId":"describeVoicePrefix","tags":["Voice Prefixes"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/prefixes/{id}":{"get":{"summary":"Gets a single Prefix","security":[{"BearerAuth":[]}],"operationId":"getVoicePrefixById","tags":["Voice Prefixes"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoicePrefix to get"}],"responses":{"200":{"description":"VoicePrefix with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoicePrefix"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoicePrefix not found"}}},"put":{"summary":"Update an existing prefix","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Voice Prefixes"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoicePrefix"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/prefixes/{id}/users":{"get":{"summary":"Gets agents from prefix","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Voice Prefixes"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoicePrefix"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a prefix","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Voice Prefixes"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoicePrefix"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a prefix","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Voice Prefixes"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoicePrefix"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/prefixes/":{"post":{"summary":"Create a prefix","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Voice Prefixes"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/prefixes/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Prefix","security":[{"BearerAuth":[]}],"operationId":"deleteVoicePrefixById","tags":["Voice Prefixes"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoicePrefix to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoicePrefix not found"}}}},"/voice/queues":{"get":{"summary":"Gets a list of Queues","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceQueue","tags":["Voice Queues"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceQueue"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceQueue"}}}}},"206":{"description":"Partial (paged) collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceQueue"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Queue","security":[{"BearerAuth":[]}],"operationId":"createVoiceQueue","tags":["Voice Queues"],"requestBody":{"required":true,"description":"data for creating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["inbound","outbound"],"default":"inbound"},"musiconhold":{"type":"string","default":"default"},"announce":{"type":"string","default":""},"strategy":{"type":"string","enum":["rr","ringall","leastrecent","fewestcalls","random","rrmemory","linear","wrandom","rrordered"],"default":"ringall"},"servicelevel":{"type":"integer","default":0},"context":{"type":"string","default":null},"penaltymemberslimit":{"type":"integer"},"timeout":{"type":"integer","default":15},"retry":{"type":"integer","default":2},"timeoutpriority":{"type":"string"},"weight":{"type":"integer","default":0},"wrapuptime":{"type":"integer","default":0},"autofill":{"type":"string","enum":["yes","no"],"default":"yes"},"autopause":{"type":"string","enum":["yes","no","all"],"default":"no"},"autopausedelay":{"type":"integer"},"autopausebusy":{"type":"string","enum":["yes","no"],"default":"no"},"autopauseunavail":{"type":"string","enum":["yes","no"],"default":"no"},"maxlen":{"type":"integer","default":0},"setinterfacevar":{"type":"string","enum":["yes","no"],"default":"no"},"setqueueentryvar":{"type":"string","enum":["yes","no"]},"setqueuevar":{"type":"string","enum":["yes","no"],"default":"no"},"eventmemberstatus":{"type":"string","enum":["yes","no"],"default":"no"},"membermacro":{"type":"string"},"membergosub":{"type":"string"},"announce_frequency":{"type":"integer","default":0},"min_announce_frequency":{"type":"integer","default":0},"periodic_announce_frequency":{"type":"integer","default":0},"random_periodic_announce":{"type":"string","enum":["yes","no"],"default":"no"},"relative_periodic_announce":{"type":"string","enum":["yes","no"],"default":"yes"},"announce_holdtime":{"type":"string","enum":["yes","no","once"],"default":"no"},"announce_position":{"type":"string","default":"no"},"announce_to_first_user":{"type":"string","enum":["yes","no"]},"announce_position_limit":{"type":"integer"},"announce_round_seconds":{"type":"string","enum":["0","5","10","15","20","30"],"default":"0"},"monitor_format":{"type":"string","default":""},"monitor_type":{"type":"string"},"queue_youarenext":{"type":"string","default":null},"queue_thereare":{"type":"string","default":null},"queue_callswaiting":{"type":"string","default":null},"queue_holdtime":{"type":"string","default":null},"queue_minute":{"type":"string","default":null},"queue_minutes":{"type":"string","default":null},"queue_seconds":{"type":"string","default":null},"queue_thankyou":{"type":"string","default":null},"queue_reporthold":{"type":"string"},"queue_quantity1":{"type":"string"},"queue_quantity2":{"type":"string"},"queue_periodic_announce":{"type":"string"},"queue_less_than":{"type":"string"},"periodic_announce":{"type":"string"},"joinempty":{"type":"string","default":"yes"},"leavewhenempty":{"type":"string","default":"no"},"reportholdtime":{"type":"string","enum":["yes","no"],"default":"no"},"ringinuse":{"type":"string","enum":["yes","no"],"default":"no"},"memberdelay":{"type":"integer","default":0},"timeoutrestart":{"type":"string","enum":["yes","no"],"default":"no"},"defaultrule":{"type":"string"},"description":{"type":"string"},"acw":{"type":"boolean","default":0},"acwTimeout":{"type":"integer","default":10},"dialActive":{"type":"boolean","description":"Active/Disactive Campaign","default":0},"dialMethod":{"type":"string","enum":["preview","progressive","power","predictive","booked"],"description":"Dial Method.","default":"progressive"},"dialLimitChannel":{"type":"integer","description":"Max 9999 channels, 0 means unlimited.","default":0},"dialLimitQueue":{"type":"integer","description":"Max 9999 member in queue(min:1, max:9999), 0 means unlimited.","default":0},"dialPowerLevel":{"type":"number","description":"Power Level: Calls for agents (min:1, max:10).","default":1},"dialPredictiveOptimization":{"type":"string","enum":["agentBusyFactor","dropRate"],"description":"Only for predictive method.","default":"dropRate"},"dialPredictiveOptimizationPercentage":{"type":"number","description":"Predictive Optimization Percentage (min: 1, max: 95)","default":3},"dialPredictiveInterval":{"type":"integer","description":"Interval Predictive Minutes (min:5 max:30)","default":10},"dialOriginateCallerIdName":{"type":"string"},"dialOriginateCallerIdNumber":{"type":"string"},"dialOriginateTimeout":{"type":"integer","description":"Originate Timeout Seconds (min:1, max:999)","default":30},"dialQueueOptions":{"type":"string","description":"https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue","default":"tTxX"},"dialQueueTimeout":{"type":"integer","description":"Queue Timeout Seconds (min:1, max:999)","default":3},"dialQueueProject":{"type":"string","description":"AGI queue option (use: agi://127.0.0.1/square,)"},"dialCongestionMaxRetry":{"type":"integer","description":"#Congestion Retry (min:1, max:999)","default":3},"dialCongestionRetryFrequency":{"type":"integer","description":"Congestion Retry Frequency Minutes (min:1, max:99999)","default":150},"dialBusyMaxRetry":{"type":"integer","description":"#Busy Retry (min:1, max:999)","default":3},"dialBusyRetryFrequency":{"type":"integer","description":"Busy Retry Frequency Minutes (min:1, max:99999)","default":150},"dialNoAnswerMaxRetry":{"type":"integer","description":"#NoAnswer Retry (min:1, max:999)","default":3},"dialNoAnswerRetryFrequency":{"type":"integer","description":"NoAnswer Retry Frequency Minutes (min:1, max:99999)","default":150},"dialGlobalMaxRetry":{"type":"integer","description":"#Global Max Retry (min:1, max:999)","default":4},"dialTimezone":{"type":"string","default":null},"dialGlobalInterval":{"type":"string","default":"07:00-22:00,*,*,*"},"dialPrefix":{"type":"string","default":null},"dialCheckDuplicateType":{"type":"string","enum":["always","never","onlyIfOpen"],"default":"always"},"dialAMDActive":{"type":"boolean","description":"Active/Disactive AMD","default":0},"dialAMDInitialSilence":{"type":"integer","description":"#AMD Initial Silence","default":2500},"dialAMDGreeting":{"type":"integer","description":"#AMD Greeting","default":1500},"dialAMDAfterGreetingSilence":{"type":"integer","description":"#AMD After Greeting Silence","default":800},"dialAMDTotalAnalysisTime":{"type":"integer","description":"#AMD Total Analysis Time","default":5000},"dialAMDMinWordLength":{"type":"integer","description":"#AMD Min Word Length","default":100},"dialAMDBetweenWordsSilence":{"type":"integer","description":"#AMD Between Words Silence","default":50},"dialAMDMaximumNumberOfWords":{"type":"integer","description":"#AMD Maximum Number Of Words","default":3},"dialAMDSilenceThreshold":{"type":"integer","description":"#AMD Silence Threshold (min:0, max:32767)","default":256},"dialAMDMaximumWordLength":{"type":"integer","description":"#AMD Maximum Word Length","default":5000},"dialRecallMeTimeout":{"type":"integer","description":"#RecallMe Timeout (min:1)","default":30},"dialRecallInQueue":{"type":"boolean","description":"Active/Disactive Recall In Queue","default":0},"dialOrderByScheduledAt":{"type":"string","enum":["DESC","ASC"],"default":"DESC"},"dialQueueProject2":{"type":"string","description":"AGI queue option (use: agi://127.0.0.1/square,)"},"dialAgiAfterHangupClient":{"type":"boolean","default":false},"dialAgiAfterHangupAgent":{"type":"boolean","default":false},"dialRandomLastDigitCallerIdNumber":{"type":"integer","description":"Random Last Digit (min:1, max:15)","default":0},"dialCutDigit":{"type":"integer","description":"Cut Digit (min:1, max:15)","default":0},"dialNoSuchNumberMaxRetry":{"type":"integer","description":"#NoSuchNumber Retry (min:1, max:999)","default":3},"dialNoSuchNumberRetryFrequency":{"type":"integer","description":"NoSuchNumber Retry Frequency Minutes (min:1, max:99999)","default":150},"dialDropMaxRetry":{"type":"integer","description":"#Drop Retry (min:1, max:999)","default":3},"dialDropRetryFrequency":{"type":"integer","description":"Drop Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAbandonedMaxRetry":{"type":"integer","description":"#Abandoned Retry (min:1, max:999)","default":3},"dialAbandonedRetryFrequency":{"type":"integer","description":"Abandoned Retry Frequency Minutes (min:1, max:99999)","default":150},"dialMachineMaxRetry":{"type":"integer","description":"#Machine Retry (min:1, max:999)","default":3},"dialMachineRetryFrequency":{"type":"integer","description":"Machine Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAgentRejectMaxRetry":{"type":"integer","description":"#AgentReject Retry (min:1, max:999)","default":3},"dialAgentRejectRetryFrequency":{"type":"integer","description":"AgentReject Retry Frequency Minutes (min:1, max:99999)","default":150},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false},"dialPredictiveIntervalMaxThreshold":{"type":"integer","default":20},"dialPredictiveIntervalMinThreshold":{"type":"integer","default":10}},"required":["name","type","strategy"]}}}},"responses":{"201":{"description":"VoiceQueue successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}":{"get":{"summary":"Gets a single Queue","security":[{"BearerAuth":[]}],"operationId":"getVoiceQueueById","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue to get"}],"responses":{"200":{"description":"VoiceQueue with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceQueue not found"}}},"put":{"summary":"Update an existing Queue","security":[{"BearerAuth":[]}],"operationId":"updateVoiceQueueById","tags":["Voice Queues"],"requestBody":{"required":true,"description":"data for updating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["inbound","outbound"],"default":"inbound"},"musiconhold":{"type":"string","default":"default"},"announce":{"type":"string","default":""},"strategy":{"type":"string","enum":["rr","ringall","leastrecent","fewestcalls","random","rrmemory","linear","wrandom","rrordered"],"default":"ringall"},"servicelevel":{"type":"integer","default":0},"context":{"type":"string","default":null},"penaltymemberslimit":{"type":"integer"},"timeout":{"type":"integer","default":15},"retry":{"type":"integer","default":2},"timeoutpriority":{"type":"string"},"weight":{"type":"integer","default":0},"wrapuptime":{"type":"integer","default":0},"autofill":{"type":"string","enum":["yes","no"],"default":"yes"},"autopause":{"type":"string","enum":["yes","no","all"],"default":"no"},"autopausedelay":{"type":"integer"},"autopausebusy":{"type":"string","enum":["yes","no"],"default":"no"},"autopauseunavail":{"type":"string","enum":["yes","no"],"default":"no"},"maxlen":{"type":"integer","default":0},"setinterfacevar":{"type":"string","enum":["yes","no"],"default":"no"},"setqueueentryvar":{"type":"string","enum":["yes","no"]},"setqueuevar":{"type":"string","enum":["yes","no"],"default":"no"},"eventmemberstatus":{"type":"string","enum":["yes","no"],"default":"no"},"membermacro":{"type":"string"},"membergosub":{"type":"string"},"announce_frequency":{"type":"integer","default":0},"min_announce_frequency":{"type":"integer","default":0},"periodic_announce_frequency":{"type":"integer","default":0},"random_periodic_announce":{"type":"string","enum":["yes","no"],"default":"no"},"relative_periodic_announce":{"type":"string","enum":["yes","no"],"default":"yes"},"announce_holdtime":{"type":"string","enum":["yes","no","once"],"default":"no"},"announce_position":{"type":"string","default":"no"},"announce_to_first_user":{"type":"string","enum":["yes","no"]},"announce_position_limit":{"type":"integer"},"announce_round_seconds":{"type":"string","enum":["0","5","10","15","20","30"],"default":"0"},"monitor_format":{"type":"string","default":""},"monitor_type":{"type":"string"},"queue_youarenext":{"type":"string","default":null},"queue_thereare":{"type":"string","default":null},"queue_callswaiting":{"type":"string","default":null},"queue_holdtime":{"type":"string","default":null},"queue_minute":{"type":"string","default":null},"queue_minutes":{"type":"string","default":null},"queue_seconds":{"type":"string","default":null},"queue_thankyou":{"type":"string","default":null},"queue_reporthold":{"type":"string"},"queue_quantity1":{"type":"string"},"queue_quantity2":{"type":"string"},"queue_periodic_announce":{"type":"string"},"queue_less_than":{"type":"string"},"periodic_announce":{"type":"string"},"joinempty":{"type":"string","default":"yes"},"leavewhenempty":{"type":"string","default":"no"},"reportholdtime":{"type":"string","enum":["yes","no"],"default":"no"},"ringinuse":{"type":"string","enum":["yes","no"],"default":"no"},"memberdelay":{"type":"integer","default":0},"timeoutrestart":{"type":"string","enum":["yes","no"],"default":"no"},"defaultrule":{"type":"string"},"description":{"type":"string"},"acw":{"type":"boolean","default":0},"acwTimeout":{"type":"integer","default":10},"dialActive":{"type":"boolean","description":"Active/Disactive Campaign","default":0},"dialMethod":{"type":"string","enum":["preview","progressive","power","predictive","booked"],"description":"Dial Method.","default":"progressive"},"dialLimitChannel":{"type":"integer","description":"Max 9999 channels, 0 means unlimited.","default":0},"dialLimitQueue":{"type":"integer","description":"Max 9999 member in queue(min:1, max:9999), 0 means unlimited.","default":0},"dialPowerLevel":{"type":"number","description":"Power Level: Calls for agents (min:1, max:10).","default":1},"dialPredictiveOptimization":{"type":"string","enum":["agentBusyFactor","dropRate"],"description":"Only for predictive method.","default":"dropRate"},"dialPredictiveOptimizationPercentage":{"type":"number","description":"Predictive Optimization Percentage (min: 1, max: 95)","default":3},"dialPredictiveInterval":{"type":"integer","description":"Interval Predictive Minutes (min:5 max:30)","default":10},"dialOriginateCallerIdName":{"type":"string"},"dialOriginateCallerIdNumber":{"type":"string"},"dialOriginateTimeout":{"type":"integer","description":"Originate Timeout Seconds (min:1, max:999)","default":30},"dialQueueOptions":{"type":"string","description":"https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue","default":"tTxX"},"dialQueueTimeout":{"type":"integer","description":"Queue Timeout Seconds (min:1, max:999)","default":3},"dialQueueProject":{"type":"string","description":"AGI queue option (use: agi://127.0.0.1/square,)"},"dialCongestionMaxRetry":{"type":"integer","description":"#Congestion Retry (min:1, max:999)","default":3},"dialCongestionRetryFrequency":{"type":"integer","description":"Congestion Retry Frequency Minutes (min:1, max:99999)","default":150},"dialBusyMaxRetry":{"type":"integer","description":"#Busy Retry (min:1, max:999)","default":3},"dialBusyRetryFrequency":{"type":"integer","description":"Busy Retry Frequency Minutes (min:1, max:99999)","default":150},"dialNoAnswerMaxRetry":{"type":"integer","description":"#NoAnswer Retry (min:1, max:999)","default":3},"dialNoAnswerRetryFrequency":{"type":"integer","description":"NoAnswer Retry Frequency Minutes (min:1, max:99999)","default":150},"dialGlobalMaxRetry":{"type":"integer","description":"#Global Max Retry (min:1, max:999)","default":4},"dialTimezone":{"type":"string","default":null},"dialGlobalInterval":{"type":"string","default":"07:00-22:00,*,*,*"},"dialPrefix":{"type":"string","default":null},"dialCheckDuplicateType":{"type":"string","enum":["always","never","onlyIfOpen"],"default":"always"},"dialAMDActive":{"type":"boolean","description":"Active/Disactive AMD","default":0},"dialAMDInitialSilence":{"type":"integer","description":"#AMD Initial Silence","default":2500},"dialAMDGreeting":{"type":"integer","description":"#AMD Greeting","default":1500},"dialAMDAfterGreetingSilence":{"type":"integer","description":"#AMD After Greeting Silence","default":800},"dialAMDTotalAnalysisTime":{"type":"integer","description":"#AMD Total Analysis Time","default":5000},"dialAMDMinWordLength":{"type":"integer","description":"#AMD Min Word Length","default":100},"dialAMDBetweenWordsSilence":{"type":"integer","description":"#AMD Between Words Silence","default":50},"dialAMDMaximumNumberOfWords":{"type":"integer","description":"#AMD Maximum Number Of Words","default":3},"dialAMDSilenceThreshold":{"type":"integer","description":"#AMD Silence Threshold (min:0, max:32767)","default":256},"dialAMDMaximumWordLength":{"type":"integer","description":"#AMD Maximum Word Length","default":5000},"dialRecallMeTimeout":{"type":"integer","description":"#RecallMe Timeout (min:1)","default":30},"dialRecallInQueue":{"type":"boolean","description":"Active/Disactive Recall In Queue","default":0},"dialOrderByScheduledAt":{"type":"string","enum":["DESC","ASC"],"default":"DESC"},"dialQueueProject2":{"type":"string","description":"AGI queue option (use: agi://127.0.0.1/square,)"},"dialAgiAfterHangupClient":{"type":"boolean","default":false},"dialAgiAfterHangupAgent":{"type":"boolean","default":false},"dialRandomLastDigitCallerIdNumber":{"type":"integer","description":"Random Last Digit (min:1, max:15)","default":0},"dialCutDigit":{"type":"integer","description":"Cut Digit (min:1, max:15)","default":0},"dialNoSuchNumberMaxRetry":{"type":"integer","description":"#NoSuchNumber Retry (min:1, max:999)","default":3},"dialNoSuchNumberRetryFrequency":{"type":"integer","description":"NoSuchNumber Retry Frequency Minutes (min:1, max:99999)","default":150},"dialDropMaxRetry":{"type":"integer","description":"#Drop Retry (min:1, max:999)","default":3},"dialDropRetryFrequency":{"type":"integer","description":"Drop Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAbandonedMaxRetry":{"type":"integer","description":"#Abandoned Retry (min:1, max:999)","default":3},"dialAbandonedRetryFrequency":{"type":"integer","description":"Abandoned Retry Frequency Minutes (min:1, max:99999)","default":150},"dialMachineMaxRetry":{"type":"integer","description":"#Machine Retry (min:1, max:999)","default":3},"dialMachineRetryFrequency":{"type":"integer","description":"Machine Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAgentRejectMaxRetry":{"type":"integer","description":"#AgentReject Retry (min:1, max:999)","default":3},"dialAgentRejectRetryFrequency":{"type":"integer","description":"AgentReject Retry Frequency Minutes (min:1, max:99999)","default":150},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false},"dialPredictiveIntervalMaxThreshold":{"type":"integer","default":20},"dialPredictiveIntervalMinThreshold":{"type":"integer","default":10}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceQueue not found"}}}},"/voice/queues/{id}/hoppers":{"get":{"summary":"Gets queue hoppers","security":[{"BearerAuth":[]}],"operationId":"getHoppers","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/hopper_histories":{"get":{"summary":"Gets queue hopper histories","security":[{"BearerAuth":[]}],"operationId":"getHopperHistories","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/hopper_finals":{"get":{"summary":"Gets queue hopper finals","security":[{"BearerAuth":[]}],"operationId":"getHopperFinals","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/hopper_black":{"get":{"summary":"Gets queue hopper blacks","security":[{"BearerAuth":[]}],"operationId":"getHopperBlacks","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/teams":{"get":{"summary":"Gets queue team","security":[{"BearerAuth":[]}],"operationId":"getTeams","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add teams to queue","security":[{"BearerAuth":[]}],"operationId":"addTeams","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove teams from a queue","security":[{"BearerAuth":[]}],"operationId":"removeTeams","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/users":{"get":{"summary":"Gets queue agents","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to queue","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a queue","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/members":{"get":{"summary":"Gets queue members","security":[{"BearerAuth":[]}],"operationId":"getMembers","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/lists":{"get":{"summary":"Get queue lists","security":[{"BearerAuth":[]}],"operationId":"getLists","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add lists to a queue","security":[{"BearerAuth":[]}],"operationId":"addLists","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove lists from a queue","security":[{"BearerAuth":[]}],"operationId":"removeLists","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/blacklists":{"get":{"summary":"Get queue blacklists","security":[{"BearerAuth":[]}],"operationId":"getBlackLists","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add blacklists to a queue","security":[{"BearerAuth":[]}],"operationId":"addBlackLists","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove blacklists from a queue","security":[{"BearerAuth":[]}],"operationId":"removeBlackLists","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/clone":{"post":{"summary":"Clone an existing Queue","security":[{"BearerAuth":[]}],"operationId":"cloneVoiceQueue","tags":["Voice Queues"],"requestBody":{"required":true,"description":"data for creating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"id of the Queue to clone"},"name":{"type":"string"},"type":{"type":"string","enum":["inbound","outbound"],"default":"inbound"},"musiconhold":{"type":"string","default":"default"},"announce":{"type":"string","default":""},"strategy":{"type":"string","enum":["rr","ringall","leastrecent","fewestcalls","random","rrmemory","linear","wrandom","rrordered"],"default":"ringall"},"servicelevel":{"type":"integer","default":0},"context":{"type":"string","default":null},"penaltymemberslimit":{"type":"integer"},"timeout":{"type":"integer","default":15},"retry":{"type":"integer","default":2},"timeoutpriority":{"type":"string"},"weight":{"type":"integer","default":0},"wrapuptime":{"type":"integer","default":0},"autofill":{"type":"string","enum":["yes","no"],"default":"yes"},"autopause":{"type":"string","enum":["yes","no","all"],"default":"no"},"autopausedelay":{"type":"integer"},"autopausebusy":{"type":"string","enum":["yes","no"],"default":"no"},"autopauseunavail":{"type":"string","enum":["yes","no"],"default":"no"},"maxlen":{"type":"integer","default":0},"setinterfacevar":{"type":"string","enum":["yes","no"],"default":"no"},"setqueueentryvar":{"type":"string","enum":["yes","no"]},"setqueuevar":{"type":"string","enum":["yes","no"],"default":"no"},"eventmemberstatus":{"type":"string","enum":["yes","no"],"default":"no"},"membermacro":{"type":"string"},"membergosub":{"type":"string"},"announce_frequency":{"type":"integer","default":0},"min_announce_frequency":{"type":"integer","default":0},"periodic_announce_frequency":{"type":"integer","default":0},"random_periodic_announce":{"type":"string","enum":["yes","no"],"default":"no"},"relative_periodic_announce":{"type":"string","enum":["yes","no"],"default":"yes"},"announce_holdtime":{"type":"string","enum":["yes","no","once"],"default":"no"},"announce_position":{"type":"string","default":"no"},"announce_to_first_user":{"type":"string","enum":["yes","no"]},"announce_position_limit":{"type":"integer"},"announce_round_seconds":{"type":"string","enum":["0","5","10","15","20","30"],"default":"0"},"monitor_format":{"type":"string","default":""},"monitor_type":{"type":"string"},"queue_youarenext":{"type":"string","default":null},"queue_thereare":{"type":"string","default":null},"queue_callswaiting":{"type":"string","default":null},"queue_holdtime":{"type":"string","default":null},"queue_minute":{"type":"string","default":null},"queue_minutes":{"type":"string","default":null},"queue_seconds":{"type":"string","default":null},"queue_thankyou":{"type":"string","default":null},"queue_reporthold":{"type":"string"},"queue_quantity1":{"type":"string"},"queue_quantity2":{"type":"string"},"queue_periodic_announce":{"type":"string"},"queue_less_than":{"type":"string"},"periodic_announce":{"type":"string"},"joinempty":{"type":"string","default":"yes"},"leavewhenempty":{"type":"string","default":"no"},"reportholdtime":{"type":"string","enum":["yes","no"],"default":"no"},"ringinuse":{"type":"string","enum":["yes","no"],"default":"no"},"memberdelay":{"type":"integer","default":0},"timeoutrestart":{"type":"string","enum":["yes","no"],"default":"no"},"defaultrule":{"type":"string"},"description":{"type":"string"},"acw":{"type":"boolean","default":0},"acwTimeout":{"type":"integer","default":10},"dialActive":{"type":"boolean","description":"Active/Disactive Campaign","default":0},"dialMethod":{"type":"string","enum":["preview","progressive","power","predictive","booked"],"description":"Dial Method.","default":"progressive"},"dialLimitChannel":{"type":"integer","description":"Max 9999 channels, 0 means unlimited.","default":0},"dialLimitQueue":{"type":"integer","description":"Max 9999 member in queue(min:1, max:9999), 0 means unlimited.","default":0},"dialPowerLevel":{"type":"number","description":"Power Level: Calls for agents (min:1, max:10).","default":1},"dialPredictiveOptimization":{"type":"string","enum":["agentBusyFactor","dropRate"],"description":"Only for predictive method.","default":"dropRate"},"dialPredictiveOptimizationPercentage":{"type":"number","description":"Predictive Optimization Percentage (min: 1, max: 95)","default":3},"dialPredictiveInterval":{"type":"integer","description":"Interval Predictive Minutes (min:5 max:30)","default":10},"dialOriginateCallerIdName":{"type":"string"},"dialOriginateCallerIdNumber":{"type":"string"},"dialOriginateTimeout":{"type":"integer","description":"Originate Timeout Seconds (min:1, max:999)","default":30},"dialQueueOptions":{"type":"string","description":"https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue","default":"tTxX"},"dialQueueTimeout":{"type":"integer","description":"Queue Timeout Seconds (min:1, max:999)","default":3},"dialQueueProject":{"type":"string","description":"AGI queue option (use: agi://127.0.0.1/square,)"},"dialCongestionMaxRetry":{"type":"integer","description":"#Congestion Retry (min:1, max:999)","default":3},"dialCongestionRetryFrequency":{"type":"integer","description":"Congestion Retry Frequency Minutes (min:1, max:99999)","default":150},"dialBusyMaxRetry":{"type":"integer","description":"#Busy Retry (min:1, max:999)","default":3},"dialBusyRetryFrequency":{"type":"integer","description":"Busy Retry Frequency Minutes (min:1, max:99999)","default":150},"dialNoAnswerMaxRetry":{"type":"integer","description":"#NoAnswer Retry (min:1, max:999)","default":3},"dialNoAnswerRetryFrequency":{"type":"integer","description":"NoAnswer Retry Frequency Minutes (min:1, max:99999)","default":150},"dialGlobalMaxRetry":{"type":"integer","description":"#Global Max Retry (min:1, max:999)","default":4},"dialTimezone":{"type":"string","default":null},"dialGlobalInterval":{"type":"string","default":"07:00-22:00,*,*,*"},"dialPrefix":{"type":"string","default":null},"dialCheckDuplicateType":{"type":"string","enum":["always","never","onlyIfOpen"],"default":"always"},"dialAMDActive":{"type":"boolean","description":"Active/Disactive AMD","default":0},"dialAMDInitialSilence":{"type":"integer","description":"#AMD Initial Silence","default":2500},"dialAMDGreeting":{"type":"integer","description":"#AMD Greeting","default":1500},"dialAMDAfterGreetingSilence":{"type":"integer","description":"#AMD After Greeting Silence","default":800},"dialAMDTotalAnalysisTime":{"type":"integer","description":"#AMD Total Analysis Time","default":5000},"dialAMDMinWordLength":{"type":"integer","description":"#AMD Min Word Length","default":100},"dialAMDBetweenWordsSilence":{"type":"integer","description":"#AMD Between Words Silence","default":50},"dialAMDMaximumNumberOfWords":{"type":"integer","description":"#AMD Maximum Number Of Words","default":3},"dialAMDSilenceThreshold":{"type":"integer","description":"#AMD Silence Threshold (min:0, max:32767)","default":256},"dialAMDMaximumWordLength":{"type":"integer","description":"#AMD Maximum Word Length","default":5000},"dialRecallMeTimeout":{"type":"integer","description":"#RecallMe Timeout (min:1)","default":30},"dialRecallInQueue":{"type":"boolean","description":"Active/Disactive Recall In Queue","default":0},"dialOrderByScheduledAt":{"type":"string","enum":["DESC","ASC"],"default":"DESC"},"dialQueueProject2":{"type":"string","description":"AGI queue option (use: agi://127.0.0.1/square,)"},"dialAgiAfterHangupClient":{"type":"boolean","default":false},"dialAgiAfterHangupAgent":{"type":"boolean","default":false},"dialRandomLastDigitCallerIdNumber":{"type":"integer","description":"Random Last Digit (min:1, max:15)","default":0},"dialCutDigit":{"type":"integer","description":"Cut Digit (min:1, max:15)","default":0},"dialNoSuchNumberMaxRetry":{"type":"integer","description":"#NoSuchNumber Retry (min:1, max:999)","default":3},"dialNoSuchNumberRetryFrequency":{"type":"integer","description":"NoSuchNumber Retry Frequency Minutes (min:1, max:99999)","default":150},"dialDropMaxRetry":{"type":"integer","description":"#Drop Retry (min:1, max:999)","default":3},"dialDropRetryFrequency":{"type":"integer","description":"Drop Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAbandonedMaxRetry":{"type":"integer","description":"#Abandoned Retry (min:1, max:999)","default":3},"dialAbandonedRetryFrequency":{"type":"integer","description":"Abandoned Retry Frequency Minutes (min:1, max:99999)","default":150},"dialMachineMaxRetry":{"type":"integer","description":"#Machine Retry (min:1, max:999)","default":3},"dialMachineRetryFrequency":{"type":"integer","description":"Machine Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAgentRejectMaxRetry":{"type":"integer","description":"#AgentReject Retry (min:1, max:999)","default":3},"dialAgentRejectRetryFrequency":{"type":"integer","description":"AgentReject Retry Frequency Minutes (min:1, max:99999)","default":150},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false},"dialPredictiveIntervalMaxThreshold":{"type":"integer","default":20},"dialPredictiveIntervalMinThreshold":{"type":"integer","default":10}},"required":["id"]}}}},"responses":{"201":{"description":"VoiceQueue successfully cloned. Returns the cloned object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Queue","security":[{"BearerAuth":[]}],"operationId":"deleteVoiceQueueById","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceQueue not found"}}}},"/voice/queues/reports":{"get":{"summary":"Gets a list of Queue Reports","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceQueueReport","tags":["Voice Queue Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceQueueReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceQueueReport"}}}}},"206":{"description":"Partial (paged) collection of Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceQueueReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/reports/describe":{"get":{"summary":"Gets table info about Queue Reports","security":[{"BearerAuth":[]}],"operationId":"describeVoiceQueueReport","tags":["Voice Queue Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/reports/index":{"get":{"summary":"Get Voice Queues Report","security":[{"BearerAuth":[]}],"operationId":"getVoiceQueuesReport","tags":["Voice Queue Reports"],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/reports/{id}":{"get":{"summary":"Gets a single Queue Report","security":[{"BearerAuth":[]}],"operationId":"getVoiceQueueReportById","tags":["Voice Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueueReport to get"}],"responses":{"200":{"description":"VoiceQueueReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceQueueReport not found"}}}},"/voiceQueuesLog":{"get":{"summary":"Gets a list of VoiceQueuesLogs","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceQueuesLog","tags":["voiceQueuesLog"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceQueuesLog"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of VoiceQueuesLogs","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceQueuesLog"}}}}},"206":{"description":"Partial (paged) collection of VoiceQueuesLogs","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceQueuesLog"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new VoiceQueuesLog","security":[{"BearerAuth":[]}],"operationId":"createVoiceQueuesLog","tags":["voiceQueuesLog"],"requestBody":{"required":true,"description":"data for creating a new VoiceQueuesLog","content":{"application/json":{"schema":{"type":"object","properties":{"time":{"type":"string"},"callid":{"type":"string","default":""},"queuename":{"type":"string","default":""},"agent":{"type":"string","default":""},"event":{"type":"string","default":""},"data":{"type":"string","default":""},"data1":{"type":"string","default":""},"data2":{"type":"string","default":""},"data3":{"type":"string","default":""},"data4":{"type":"string","default":""},"data5":{"type":"string","default":""},"dtm":{"type":"string","default":"2020-11-27 10:41:25"}},"required":["callid","queuename","agent","event","data","data1","data2","data3","data4","data5","dtm"]}}}},"responses":{"201":{"description":"VoiceQueuesLog successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceQueuesLog"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voiceQueuesLog/{id}":{"get":{"summary":"Gets a single VoiceQueuesLog","security":[{"BearerAuth":[]}],"operationId":"getVoiceQueuesLogById","tags":["voiceQueuesLog"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueuesLog to get"}],"responses":{"200":{"description":"VoiceQueuesLog with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceQueuesLog"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceQueuesLog not found"}}},"put":{"summary":"Update an existing VoiceQueuesLog","security":[{"BearerAuth":[]}],"operationId":"updateVoiceQueuesLogById","tags":["voiceQueuesLog"],"requestBody":{"required":true,"description":"data for updating a new VoiceQueuesLog","content":{"application/json":{"schema":{"type":"object","properties":{"time":{"type":"string"},"callid":{"type":"string","default":""},"queuename":{"type":"string","default":""},"agent":{"type":"string","default":""},"event":{"type":"string","default":""},"data":{"type":"string","default":""},"data1":{"type":"string","default":""},"data2":{"type":"string","default":""},"data3":{"type":"string","default":""},"data4":{"type":"string","default":""},"data5":{"type":"string","default":""},"dtm":{"type":"string","default":"2020-11-27 10:41:25"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueuesLog to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceQueuesLog not found"}}}},"/voiceQueuesLog/{id}/destroy_many":{"delete":{"summary":"Destroy an existing VoiceQueuesLog","security":[{"BearerAuth":[]}],"operationId":"deleteVoiceQueuesLogById","tags":["voiceQueuesLog"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueuesLog to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceQueuesLog not found"}}}},"/voice/recordings":{"get":{"summary":"Gets a list of Recordings","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceRecording","tags":["Voice Recordings"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceRecording"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Recordings","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceRecording"}}}}},"206":{"description":"Partial (paged) collection of Recordings","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceRecording"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Recording","security":[{"BearerAuth":[]}],"operationId":"createVoiceRecording","tags":["Voice Recordings"],"requestBody":{"required":true,"description":"data for creating a new Recording","content":{"application/json":{"schema":{"type":"object","properties":{"format":{"type":"string"},"uniqueid":{"type":"string"},"channel":{"type":"string"},"membername":{"type":"string"},"calleridnum":{"type":"string"},"calleridname":{"type":"string"},"connectedlinenum":{"type":"string"},"connectedlinename":{"type":"string"},"accountcode":{"type":"string"},"context":{"type":"string"},"exten":{"type":"string"},"value":{"type":"string"},"type":{"type":"string"},"rating":{"type":"integer"},"queue":{"type":"string"},"userDisposition":{"type":"string"},"userSecondDisposition":{"type":"string"},"userThirdDisposition":{"type":"string"},"location":{"type":"string"},"transcribeName":{"type":"string"},"transcribeStatus":{"type":"string","default":"NEW"},"fileUri":{"type":"string"},"fileText":{"type":"string"},"failureReason":{"type":"string"},"sentiment":{"type":"string"},"sPositive":{"type":"number"},"sNegative":{"type":"number"},"sNeutral":{"type":"number"},"sMixed":{"type":"number"},"tempSentiment":{"type":"boolean","default":false},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}}}}}},"responses":{"201":{"description":"VoiceRecording successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceRecording"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/recordings/describe":{"get":{"summary":"Gets table info about Recordings","security":[{"BearerAuth":[]}],"operationId":"describeVoiceRecording","tags":["Voice Recordings"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/recordings/{id}":{"get":{"summary":"Gets a single Recording","security":[{"BearerAuth":[]}],"operationId":"getVoiceRecordingById","tags":["Voice Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceRecording to get"}],"responses":{"200":{"description":"VoiceRecording with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceRecording"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceRecording not found"}}},"put":{"summary":"Update an existing Recording","security":[{"BearerAuth":[]}],"operationId":"updateVoiceRecordingById","tags":["Voice Recordings"],"requestBody":{"required":true,"description":"data for updating a new Recording","content":{"application/json":{"schema":{"type":"object","properties":{"format":{"type":"string"},"uniqueid":{"type":"string"},"channel":{"type":"string"},"membername":{"type":"string"},"calleridnum":{"type":"string"},"calleridname":{"type":"string"},"connectedlinenum":{"type":"string"},"connectedlinename":{"type":"string"},"accountcode":{"type":"string"},"context":{"type":"string"},"exten":{"type":"string"},"value":{"type":"string"},"type":{"type":"string"},"rating":{"type":"integer"},"queue":{"type":"string"},"userDisposition":{"type":"string"},"userSecondDisposition":{"type":"string"},"userThirdDisposition":{"type":"string"},"location":{"type":"string"},"transcribeName":{"type":"string"},"transcribeStatus":{"type":"string","default":"NEW"},"fileUri":{"type":"string"},"fileText":{"type":"string"},"failureReason":{"type":"string"},"sentiment":{"type":"string"},"sPositive":{"type":"number"},"sNegative":{"type":"number"},"sNeutral":{"type":"number"},"sMixed":{"type":"number"},"tempSentiment":{"type":"boolean","default":false},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceRecording to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceRecording not found"}}},"delete":{"summary":"Delete voice recording","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Voice Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceRecording"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/recordings/{id}/download":{"get":{"summary":"Download Recording","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Voice Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceRecording"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/recordings/{id}/downloads":{"get":{"summary":"Download Recording","operationId":"downloads","tags":["Voice Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceRecording"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/voice/recordings/{id}/transcribe":{"get":{"summary":"Run Transcribe Recording","security":[{"BearerAuth":[]}],"operationId":"downloadTranscribe","tags":["Voice Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceRecording"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Run Transcribe Recording","security":[{"BearerAuth":[]}],"operationId":"runTranscribe","tags":["Voice Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceRecording"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/transfers/reports":{"get":{"summary":"Gets a list of Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceTransferReport","tags":["Voice Transfer Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceTransferReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceTransferReport"}}}}},"206":{"description":"Partial (paged) collection of Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceTransferReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Transfer Report","security":[{"BearerAuth":[]}],"operationId":"createVoiceTransferReport","tags":["Voice Transfer Reports"],"requestBody":{"required":true,"description":"data for creating a new Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["blind","attended"]},"result":{"type":"string"},"transfererchannel":{"type":"string"},"transferercalleridnum":{"type":"string"},"transferercalleridname":{"type":"string"},"transfererconnectedlinenum":{"type":"string"},"transfererconnectedlinename":{"type":"string"},"transfereraccountcode":{"type":"string"},"transferercontext":{"type":"string"},"transfererexten":{"type":"string"},"transfererlinkedid":{"type":"string"},"transfereechannel":{"type":"string"},"transfereecalleridnum":{"type":"string"},"transfereecalleridname":{"type":"string"},"transfereeconnectedlinenum":{"type":"string"},"transfereeconnectedlinename":{"type":"string"},"transfereeaccountcode":{"type":"string"},"transfereecontext":{"type":"string"},"transfereeexten":{"type":"string"},"transfereelinkedid":{"type":"string"},"isexternal":{"type":"string","enum":["Yes","No"]},"context":{"type":"string"},"extension":{"type":"string"}}}}}},"responses":{"201":{"description":"VoiceTransferReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/transfers/reports/{id}":{"get":{"summary":"Gets a single Transfer Report","security":[{"BearerAuth":[]}],"operationId":"getVoiceTransferReportById","tags":["Voice Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceTransferReport to get"}],"responses":{"200":{"description":"VoiceTransferReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceTransferReport not found"}}},"put":{"summary":"Update an existing Transfer Report","security":[{"BearerAuth":[]}],"operationId":"updateVoiceTransferReportById","tags":["Voice Transfer Reports"],"requestBody":{"required":true,"description":"data for updating a new Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["blind","attended"]},"result":{"type":"string"},"transfererchannel":{"type":"string"},"transferercalleridnum":{"type":"string"},"transferercalleridname":{"type":"string"},"transfererconnectedlinenum":{"type":"string"},"transfererconnectedlinename":{"type":"string"},"transfereraccountcode":{"type":"string"},"transferercontext":{"type":"string"},"transfererexten":{"type":"string"},"transfererlinkedid":{"type":"string"},"transfereechannel":{"type":"string"},"transfereecalleridnum":{"type":"string"},"transfereecalleridname":{"type":"string"},"transfereeconnectedlinenum":{"type":"string"},"transfereeconnectedlinename":{"type":"string"},"transfereeaccountcode":{"type":"string"},"transfereecontext":{"type":"string"},"transfereeexten":{"type":"string"},"transfereelinkedid":{"type":"string"},"isexternal":{"type":"string","enum":["Yes","No"]},"context":{"type":"string"},"extension":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceTransferReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceTransferReport not found"}}}},"/voice/transfers/reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Transfer Report","security":[{"BearerAuth":[]}],"operationId":"deleteVoiceTransferReportById","tags":["Voice Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceTransferReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceTransferReport not found"}}}},"/webbar/originate":{"post":{"summary":"Originate new webrtc call","security":[{"BearerAuth":[]}],"operationId":"webBarOriginate","tags":["WebBar"],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"type":"object","properties":{"callNumber":{"type":"string","description":"call number"},"userId":{"type":"integer","description":"user id"},"callerId":{"type":"string","description":"caller id"},"callbackUrl":{"type":"string","format":"uri","description":"callback uri"}},"required":["callNumber","userId","callerId","callbackUrl"]}}}},"responses":{"200":{"description":"web call originated successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/webbar/hangup":{"post":{"summary":"hangup call","security":[{"BearerAuth":[]}],"operationId":"webBarHangup","tags":["WebBar"],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string","description":"session id"},"userId":{"type":"integer","description":"user id"}},"required":["sessionId","userId"]}}}},"responses":{"200":{"description":"Hangup success"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/webbar/answer":{"post":{"summary":"answer new webrtc call","security":[{"BearerAuth":[]}],"operationId":"webBarAnswer","tags":["WebBar"],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string","description":"session id"},"userId":{"type":"integer","description":"user id"}},"required":["sessionId","userId"]}}}},"responses":{"200":{"description":"Answer success"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/webbar/hold":{"post":{"summary":"hold webrtc call","security":[{"BearerAuth":[]}],"operationId":"webBarHold","tags":["WebBar"],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string","description":"session id"},"userId":{"type":"integer","description":"user id"}},"required":["userId"]}}}},"responses":{"200":{"description":"Hold success"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/webbar/unhold":{"post":{"summary":"unhold webrtc call","security":[{"BearerAuth":[]}],"operationId":"webBarUnhold","tags":["WebBar"],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string","description":"session id"},"userId":{"type":"integer","description":"user id"}},"required":["sessionId","userId"]}}}},"responses":{"200":{"description":"Unhold success"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/webbar/calls":{"post":{"summary":"retrieve webrtc call list for a user","security":[{"BearerAuth":[]}],"operationId":"webBarCalls","tags":["WebBar"],"requestBody":{"required":true,"description":"Request payload containing the user","content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"integer","description":"user id"}},"required":["userId"]}}}},"responses":{"200":{"description":"list of calls","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/webbar/transfer":{"post":{"summary":"blind transfer webrtc call","security":[{"BearerAuth":[]}],"operationId":"webBarTransfer","tags":["WebBar"],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"integer","description":"user id"},"sessionId":{"type":"string","description":"session id"},"transferNumber":{"type":"string","description":"transfer number"}},"required":["userId","sessionId","transferNumber"]}}}},"responses":{"200":{"description":"Transfer success"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/accounts":{"get":{"summary":"Gets a list of Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllWhatsappAccount","tags":["Whatsapp Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each WhatsappAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappAccount"}}}}},"206":{"description":"Partial (paged) collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Account","security":[{"BearerAuth":[]}],"operationId":"createWhatsappAccount","tags":["Whatsapp Accounts"],"requestBody":{"required":true,"description":"data for creating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"key":{"type":"string"},"remote":{"type":"string"},"token":{"type":"string","default":"RR1qO3WWSMLNOqQM8V3jP6ZqLmuIDDnf"},"phone":{"type":"string"},"type":{"type":"string","enum":["twilio"]},"accountSid":{"type":"string"},"authToken":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":false},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false},"description":{"type":"string"}},"required":["name","key","remote"]}}}},"responses":{"201":{"description":"WhatsappAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/accounts/describe":{"get":{"summary":"Gets table info about Accounts","security":[{"BearerAuth":[]}],"operationId":"describeWhatsappAccount","tags":["Whatsapp Accounts"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/accounts/{id}":{"get":{"summary":"Gets a single Account","security":[{"BearerAuth":[]}],"operationId":"getWhatsappAccountById","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount to get"}],"responses":{"200":{"description":"WhatsappAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappAccount not found"}}},"put":{"summary":"Update an existing Account","security":[{"BearerAuth":[]}],"operationId":"updateWhatsappAccountById","tags":["Whatsapp Accounts"],"requestBody":{"required":true,"description":"data for updating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"key":{"type":"string"},"remote":{"type":"string"},"token":{"type":"string","default":"FMf1MjzZO3wZH7rudjIGZiO6b2Q6vmOz"},"phone":{"type":"string"},"type":{"type":"string","enum":["twilio"]},"accountSid":{"type":"string"},"authToken":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":false},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappAccount not found"}}}},"/whatsapp/accounts/{id}/dispositions":{"get":{"summary":"Gets account dispositions","security":[{"BearerAuth":[]}],"operationId":"getDispositions","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new disposition","security":[{"BearerAuth":[]}],"operationId":"addDisposition","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes dispositions from account","security":[{"BearerAuth":[]}],"operationId":"removeDispositions","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/accounts/{id}/canned_answers":{"get":{"summary":"Gets account canned answers","security":[{"BearerAuth":[]}],"operationId":"getAnswers","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new canned answer","security":[{"BearerAuth":[]}],"operationId":"addAnswer","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes canned answers from account","security":[{"BearerAuth":[]}],"operationId":"removeAnswers","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/accounts/{id}/users":{"get":{"summary":"Gets agents from whatsapp account","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a whatsapp account","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a whatsapp account","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/accounts/{id}/applications":{"get":{"summary":"Gets account applications","security":[{"BearerAuth":[]}],"operationId":"getApplications","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new applications","security":[{"BearerAuth":[]}],"operationId":"addApplications","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/accounts/{id}/notify":{"post":{"summary":"Notify new message","operationId":"notify","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"201":{"description":"successfully created"}}}},"/whatsapp/accounts/{id}/send":{"post":{"summary":"Send new whatsapp message","security":[{"BearerAuth":[]}],"operationId":"send","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Account","security":[{"BearerAuth":[]}],"operationId":"deleteWhatsappAccountById","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappAccount not found"}}}},"/whatsapp/applications":{"get":{"summary":"Gets a list of Applications","security":[{"BearerAuth":[]}],"operationId":"listAllWhatsappApplication","tags":["Whatsapp Applications"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each WhatsappApplication"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Applications","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappApplication"}}}}},"206":{"description":"Partial (paged) collection of Applications","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappApplication"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Application","security":[{"BearerAuth":[]}],"operationId":"createWhatsappApplication","tags":["Whatsapp Applications"],"requestBody":{"required":true,"description":"data for creating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}},"required":["priority","app"]}}}},"responses":{"201":{"description":"WhatsappApplication successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/applications/{id}":{"get":{"summary":"Gets a single Application","security":[{"BearerAuth":[]}],"operationId":"getWhatsappApplicationById","tags":["Whatsapp Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappApplication to get"}],"responses":{"200":{"description":"WhatsappApplication with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappApplication not found"}}},"put":{"summary":"Update an existing Application","security":[{"BearerAuth":[]}],"operationId":"updateWhatsappApplicationById","tags":["Whatsapp Applications"],"requestBody":{"required":true,"description":"data for updating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappApplication to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappApplication not found"}}}},"/whatsapp/applications/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Application","security":[{"BearerAuth":[]}],"operationId":"deleteWhatsappApplicationById","tags":["Whatsapp Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappApplication to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappApplication not found"}}}},"/whatsapp/interactions":{"get":{"summary":"Gets a list of Interactions","security":[{"BearerAuth":[]}],"operationId":"listAllWhatsappInteraction","tags":["Whatsapp Interactions"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each WhatsappInteraction"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappInteraction"}}}}},"206":{"description":"Partial (paged) collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappInteraction"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Interaction","security":[{"BearerAuth":[]}],"operationId":"createWhatsappInteraction","tags":["Whatsapp Interactions"],"requestBody":{"required":true,"description":"data for creating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"phone":{"type":"string"},"read1stAt":{"type":"string"},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"}},"required":["firstMsgDirection","lastMsgDirection"]}}}},"responses":{"201":{"description":"WhatsappInteraction successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/interactions/describe":{"get":{"summary":"Gets table info about Interactions","security":[{"BearerAuth":[]}],"operationId":"describeWhatsappInteraction","tags":["Whatsapp Interactions"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/interactions/{id}":{"get":{"summary":"Gets a single Interaction","security":[{"BearerAuth":[]}],"operationId":"getWhatsappInteractionById","tags":["Whatsapp Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappInteraction to get"}],"responses":{"200":{"description":"WhatsappInteraction with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappInteraction not found"}}},"put":{"summary":"Update an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"updateWhatsappInteractionById","tags":["Whatsapp Interactions"],"requestBody":{"required":true,"description":"data for updating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"phone":{"type":"string"},"read1stAt":{"type":"string"},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappInteraction to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappInteraction not found"}}}},"/whatsapp/interactions/{id}/messages":{"get":{"summary":"Gets interaction messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Whatsapp Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new messages","security":[{"BearerAuth":[]}],"operationId":"addMessage","tags":["Whatsapp Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/interactions/{id}/download":{"get":{"summary":"Gets interaction","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Whatsapp Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/interactions/{id}/tags":{"post":{"summary":"Add tags to the interaction","security":[{"BearerAuth":[]}],"operationId":"addTags","tags":["Whatsapp Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes tags from interaction","security":[{"BearerAuth":[]}],"operationId":"removeTags","tags":["Whatsapp Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappInteraction"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/interactions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"deleteWhatsappInteractionById","tags":["Whatsapp Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappInteraction to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappInteraction not found"}}}},"/whatsapp/messages":{"get":{"summary":"Gets a list of Messages","security":[{"BearerAuth":[]}],"operationId":"listAllWhatsappMessage","tags":["Whatsapp Messages"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each WhatsappMessage"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappMessage"}}}}},"206":{"description":"Partial (paged) collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappMessage"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Message","security":[{"BearerAuth":[]}],"operationId":"createWhatsappMessage","tags":["Whatsapp Messages"],"requestBody":{"required":true,"description":"data for creating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"messageId":{"type":"string"},"phone":{"type":"string"},"readAt":{"type":"string"},"secret":{"type":"boolean","default":false},"providerName":{"type":"string"},"providerResponse":{"type":"string"}},"required":["body","direction"]}}}},"responses":{"201":{"description":"WhatsappMessage successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/messages/describe":{"get":{"summary":"Gets table info about Messages","security":[{"BearerAuth":[]}],"operationId":"describeWhatsappMessage","tags":["Whatsapp Messages"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/messages/{id}":{"get":{"summary":"Gets a single Message","security":[{"BearerAuth":[]}],"operationId":"getWhatsappMessageById","tags":["Whatsapp Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappMessage to get"}],"responses":{"200":{"description":"WhatsappMessage with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappMessage not found"}}},"put":{"summary":"Update an existing Message","security":[{"BearerAuth":[]}],"operationId":"updateWhatsappMessageById","tags":["Whatsapp Messages"],"requestBody":{"required":true,"description":"data for updating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"messageId":{"type":"string"},"phone":{"type":"string"},"readAt":{"type":"string"},"secret":{"type":"boolean","default":false},"providerName":{"type":"string"},"providerResponse":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappMessage to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappMessage not found"}}}},"/whatsapp/messages/{id}/status":{"post":{"summary":"Receive message status","operationId":"status","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappMessage"}],"responses":{"201":{"description":"successfully created"}}}},"/whatsapp/messages/{id}/accept":{"put":{"summary":"Accepts message","security":[{"BearerAuth":[]}],"operationId":"accept","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/messages/{id}/reject":{"put":{"summary":"Rejects message","security":[{"BearerAuth":[]}],"operationId":"reject","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/messages/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Message","security":[{"BearerAuth":[]}],"operationId":"deleteWhatsappMessageById","tags":["Whatsapp Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappMessage to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappMessage not found"}}}},"/whatsapp/queues":{"get":{"summary":"Gets a list of Queues","security":[{"BearerAuth":[]}],"operationId":"listAllWhatsappQueue","tags":["Whatsapp Queues"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each WhatsappQueue"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappQueue"}}}}},"206":{"description":"Partial (paged) collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappQueue"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Queue","security":[{"BearerAuth":[]}],"operationId":"createWhatsappQueue","tags":["Whatsapp Queues"],"requestBody":{"required":true,"description":"data for creating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"WhatsappQueue successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/queues/describe":{"get":{"summary":"Gets table info about Queues","security":[{"BearerAuth":[]}],"operationId":"describeWhatsappQueue","tags":["Whatsapp Queues"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/queues/{id}":{"get":{"summary":"Gets a single Queue","security":[{"BearerAuth":[]}],"operationId":"getWhatsappQueueById","tags":["Whatsapp Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue to get"}],"responses":{"200":{"description":"WhatsappQueue with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappQueue not found"}}},"put":{"summary":"Update an existing Queue","security":[{"BearerAuth":[]}],"operationId":"updateWhatsappQueueById","tags":["Whatsapp Queues"],"requestBody":{"required":true,"description":"data for updating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappQueue not found"}}}},"/whatsapp/queues/{id}/members":{"get":{"summary":"GetMembers","security":[{"BearerAuth":[]}],"operationId":"getMembers","tags":["Whatsapp Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/queues/{id}/teams":{"get":{"summary":"Gets queues list","security":[{"BearerAuth":[]}],"operationId":"getTeams","tags":["Whatsapp Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add teams to a queue","security":[{"BearerAuth":[]}],"operationId":"addTeams","tags":["Whatsapp Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove teams from a queue","security":[{"BearerAuth":[]}],"operationId":"removeTeams","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/queues/{id}/users":{"get":{"summary":"Gets queue agents","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Whatsapp Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a queue","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Whatsapp Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a queue","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Whatsapp Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/queues/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Queue","security":[{"BearerAuth":[]}],"operationId":"deleteWhatsappQueueById","tags":["Whatsapp Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappQueue not found"}}}},"/whatsapp/reports/queue":{"get":{"summary":"Gets a list of Whatsapp Queue Reports","security":[{"BearerAuth":[]}],"operationId":"listAllWhatsappQueueReport","tags":["Whatsapp Queue Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each WhatsappQueueReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Whatsapp Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappQueueReport"}}}}},"206":{"description":"Partial (paged) collection of Whatsapp Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappQueueReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Whatsapp Queue Report","security":[{"BearerAuth":[]}],"operationId":"createWhatsappQueueReport","tags":["Whatsapp Queue Reports"],"requestBody":{"required":true,"description":"data for creating a new Whatsapp Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}},"required":["uniqueid"]}}}},"responses":{"201":{"description":"WhatsappQueueReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/reports/queue/describe":{"get":{"summary":"Gets table info about Whatsapp Queue Reports","security":[{"BearerAuth":[]}],"operationId":"describeWhatsappQueueReport","tags":["Whatsapp Queue Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/reports/queue/{id}":{"get":{"summary":"Gets a single Whatsapp Queue Report","security":[{"BearerAuth":[]}],"operationId":"getWhatsappQueueReportById","tags":["Whatsapp Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueueReport to get"}],"responses":{"200":{"description":"WhatsappQueueReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappQueueReport not found"}}},"put":{"summary":"Update an existing Whatsapp Queue Report","security":[{"BearerAuth":[]}],"operationId":"updateWhatsappQueueReportById","tags":["Whatsapp Queue Reports"],"requestBody":{"required":true,"description":"data for updating a new Whatsapp Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueueReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappQueueReport not found"}}}},"/whatsapp/reports/queue/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Whatsapp Queue Report","security":[{"BearerAuth":[]}],"operationId":"deleteWhatsappQueueReportById","tags":["Whatsapp Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueueReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappQueueReport not found"}}}},"/whatsapp/reports/transfer":{"get":{"summary":"Gets a list of Whatsapp Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"listAllWhatsappTransferReport","tags":["Whatsapp Transfer Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each WhatsappTransferReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Whatsapp Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappTransferReport"}}}}},"206":{"description":"Partial (paged) collection of Whatsapp Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappTransferReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Whatsapp Transfer Report","security":[{"BearerAuth":[]}],"operationId":"createWhatsappTransferReport","tags":["Whatsapp Transfer Reports"],"requestBody":{"required":true,"description":"data for creating a new Whatsapp Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"]},"transferredAt":{"type":"string"}},"required":["uniqueid","type"]}}}},"responses":{"201":{"description":"WhatsappTransferReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/reports/transfer/describe":{"get":{"summary":"Gets table info about Whatsapp Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"describeWhatsappTransferReport","tags":["Whatsapp Transfer Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/reports/transfer/{id}":{"get":{"summary":"Gets a single Whatsapp Transfer Report","security":[{"BearerAuth":[]}],"operationId":"getWhatsappTransferReportById","tags":["Whatsapp Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappTransferReport to get"}],"responses":{"200":{"description":"WhatsappTransferReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappTransferReport not found"}}},"put":{"summary":"Update an existing Whatsapp Transfer Report","security":[{"BearerAuth":[]}],"operationId":"updateWhatsappTransferReportById","tags":["Whatsapp Transfer Reports"],"requestBody":{"required":true,"description":"data for updating a new Whatsapp Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"]},"transferredAt":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappTransferReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappTransferReport not found"}}}},"/whatsapp/reports/transfer/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Whatsapp Transfer Report","security":[{"BearerAuth":[]}],"operationId":"deleteWhatsappTransferReportById","tags":["Whatsapp Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappTransferReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappTransferReport not found"}}}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"User":{"title":"User","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"fullname":{"type":"string"},"alias":{"type":"string","nullable":true},"email":{"type":"string"},"role":{"type":"string","enum":["admin","user","agent","telephone"]},"password":{"type":"string"},"provider":{"type":"string","nullable":true,"default":"local"},"internal":{"type":"integer","format":"int32"},"salt":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"mobile":{"type":"string","nullable":true},"address":{"type":"string","nullable":true},"zipcode":{"type":"string","nullable":true},"userpic":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"online":{"type":"boolean","nullable":true,"default":false},"lastLoginAt":{"type":"string","format":"date-time","nullable":true},"voicePause":{"type":"boolean","nullable":true,"default":false},"chatPause":{"type":"boolean","nullable":true,"default":false},"mailPause":{"type":"boolean","nullable":true,"default":false},"faxPause":{"type":"boolean","nullable":true,"default":false},"smsPause":{"type":"boolean","nullable":true,"default":false},"whatsappPause":{"type":"boolean","nullable":true,"default":false},"openchannelPause":{"type":"boolean","nullable":true,"default":false},"pauseType":{"type":"string","nullable":true,"default":"DEFAULT PAUSE"},"lastPauseAt":{"type":"string","format":"date-time","nullable":true},"chatCapacity":{"type":"integer","format":"int32","nullable":true,"default":0},"mailCapacity":{"type":"integer","format":"int32","nullable":true,"default":0},"faxCapacity":{"type":"integer","format":"int32","nullable":true,"default":0},"smsCapacity":{"type":"integer","format":"int32","nullable":true,"default":0},"whatsappCapacity":{"type":"integer","format":"int32","nullable":true,"default":0},"openchannelCapacity":{"type":"integer","format":"int32","nullable":true,"default":0},"phoneBarAutoAnswer":{"type":"boolean","nullable":true,"default":false},"phoneBarEnableSettings":{"type":"boolean","nullable":true,"default":true},"phoneBarListenPort":{"type":"integer","format":"int32","nullable":true,"default":5160},"phoneBarExpires":{"type":"integer","format":"int32","nullable":true,"default":120},"phoneBarRemoteControl":{"type":"boolean","nullable":true,"default":false},"phoneBarRemoteControlPort":{"type":"integer","format":"int32","nullable":true,"default":9888},"phoneBarEnableRecording":{"type":"boolean","nullable":true,"default":false},"phoneBarRingInUse":{"type":"boolean","nullable":true,"default":false},"chanspy":{"type":"boolean","nullable":true,"default":false},"description":{"type":"string","nullable":true},"host":{"type":"string","nullable":true,"default":"dynamic"},"ipaddr":{"type":"string","nullable":true},"port":{"type":"integer","format":"int32","nullable":true},"regseconds":{"type":"integer","format":"int32","nullable":true},"fullcontact":{"type":"string","nullable":true},"regserver":{"type":"string","nullable":true},"useragent":{"type":"string","nullable":true},"lastms":{"type":"integer","format":"int32","nullable":true},"type":{"type":"string","enum":["friend","user","peer"],"nullable":true,"default":"friend"},"context":{"type":"string","nullable":true,"default":"from-sip"},"callingpres":{"type":"string","enum":["ALLOWED_NOT_SCREENED","ALLOWED_PASSED_SCREEN","ALLOWED_FAILED_SCREEN","ALLOWED","PROHIB_NOT_SCREENED","PROHIB_PASSED_SCREEN","PROHIB_FAILED_SCREEN","PROHIB"],"nullable":true},"deny":{"type":"string","nullable":true},"permit":{"type":"string","nullable":true},"secret":{"type":"string","nullable":true},"md5secret":{"type":"string","nullable":true},"remotesecret":{"type":"string","nullable":true},"transport":{"type":"string","nullable":true,"default":"udp"},"dtmfmode":{"type":"string","enum":["rfc2833","info","shortinfo","inband","auto"],"nullable":true,"default":"rfc2833"},"directmedia":{"type":"string","enum":["yes","no","nonat","update","outgoing"],"nullable":true,"default":"no"},"directrtpsetup":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"directmediapermit":{"type":"string","nullable":true},"directmediadeny":{"type":"string","nullable":true},"nat":{"type":"string","nullable":true,"default":"force_rport,comedia"},"callgroup":{"type":"string","nullable":true},"namedcallgroup":{"type":"string","nullable":true},"pickupgroup":{"type":"string","nullable":true},"namedpickupgroup":{"type":"string","nullable":true},"language":{"type":"string","nullable":true,"default":"en"},"tonezone":{"type":"string","nullable":true},"disallow":{"type":"string","default":"all"},"allow":{"type":"string","default":"ulaw;alaw;gsm"},"autoframing":{"type":"string","enum":["yes","no"],"nullable":true},"insecure":{"type":"string","nullable":true},"trustrpid":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"trust_id_outbound":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"progressinband":{"type":"string","enum":["yes","no","never"],"nullable":true},"promiscredir":{"type":"string","enum":["yes","no"],"nullable":true},"useclientcode":{"type":"string","enum":["yes","no"],"nullable":true},"accountcode":{"type":"integer","format":"int32","nullable":true},"setvar":{"type":"string","nullable":true},"callerid":{"type":"string","nullable":true,"default":"\"\" <>"},"amaflags":{"type":"string","nullable":true},"callcounter":{"type":"string","enum":["yes","no"],"nullable":true,"default":"yes"},"busylevel":{"type":"integer","format":"int32","nullable":true},"allowoverlap":{"type":"string","enum":["yes","no"],"nullable":true},"allowsubscribe":{"type":"string","enum":["yes","no"],"nullable":true},"allowtransfer":{"type":"string","enum":["yes","no"],"nullable":true},"ignoresdpversion":{"type":"string","enum":["yes","no"],"nullable":true},"subscribecontext":{"type":"string","nullable":true},"template":{"type":"string","nullable":true},"videosupport":{"type":"string","enum":["yes","no","always"],"nullable":true,"default":"no"},"maxcallbitrate":{"type":"integer","format":"int32","nullable":true},"rfc2833compensate":{"type":"string","enum":["yes","no"],"nullable":true},"mailbox":{"type":"string","nullable":true},"session_timers":{"type":"string","enum":["accept","refuse","originate"],"nullable":true},"session_expires":{"type":"integer","format":"int32","nullable":true},"session_minse":{"type":"integer","format":"int32","nullable":true},"session_refresher":{"type":"string","enum":["uac","uas"],"nullable":true,"default":"uas"},"t38pt_usertpsource":{"type":"string","nullable":true},"regexten":{"type":"string","nullable":true},"fromdomain":{"type":"string","nullable":true},"fromuser":{"type":"string","nullable":true},"qualify":{"type":"string","enum":["yes","no"],"nullable":true,"default":"yes"},"keepalive":{"type":"integer","format":"int32","nullable":true},"defaultip":{"type":"string","nullable":true},"defaultuser":{"type":"string","nullable":true},"rtptimeout":{"type":"integer","format":"int32","nullable":true},"rtpholdtimeout":{"type":"integer","format":"int32","nullable":true},"rtpkeepalive":{"type":"integer","format":"int32","nullable":true},"sendrpid":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"outboundproxy":{"type":"string","nullable":true},"callbackextension":{"type":"string","nullable":true},"timert1":{"type":"integer","format":"int32","nullable":true},"timerb":{"type":"integer","format":"int32","nullable":true},"qualifyfreq":{"type":"integer","format":"int32","nullable":true},"contactpermit":{"type":"string","nullable":true},"contactdeny":{"type":"string","nullable":true},"contactacl":{"type":"string","nullable":true},"unsolicited_mailbox":{"type":"string","nullable":true},"use_q850_reason":{"type":"string","nullable":true},"maxforwards":{"type":"integer","format":"int32","nullable":true},"encryption":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"avpf":{"type":"string","enum":["yes","no"],"nullable":true},"force_avp":{"type":"string","enum":["yes","no"],"nullable":true},"icesupport":{"type":"string","enum":["yes","no"],"nullable":true},"dtlsenable":{"type":"string","enum":["yes","no"],"nullable":true},"dtlsverify":{"type":"string","enum":["yes","no","fingerprint","certificate"],"nullable":true},"dtlsrekey":{"type":"integer","format":"int32","nullable":true},"dtlscertfile":{"type":"string","nullable":true},"dtlsprivatekey":{"type":"string","nullable":true},"dtlscipher":{"type":"string","nullable":true},"dtlscafile":{"type":"string","nullable":true},"dtlscapath":{"type":"string","nullable":true},"dtlssetup":{"type":"string","enum":["active","passive","actpass"],"nullable":true},"dtlsfingerprint":{"type":"string","nullable":true},"usereqphone":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"recordonfeature":{"type":"string","nullable":true},"recordofffeature":{"type":"string","nullable":true},"call_limit":{"type":"integer","format":"int32","nullable":true,"default":10},"registertrying":{"type":"string","enum":["yes","no"],"nullable":true},"subscribemwi":{"type":"string","enum":["yes","no"],"nullable":true},"vmexten":{"type":"string","nullable":true},"mohinterpret":{"type":"string","nullable":true},"mohsuggest":{"type":"string","nullable":true},"parkinglot":{"type":"string","nullable":true},"canreinvite":{"type":"string","enum":["yes","no","nonat","update","update,nonat"],"nullable":true,"default":"no"},"loginInPause":{"type":"boolean","nullable":true,"default":false},"resetPasswordToken":{"type":"string","nullable":true},"resetPasswordExpires":{"type":"string","format":"date-time","nullable":true},"passwordResetAt":{"type":"string","format":"date-time","nullable":true,"default":null},"previousPasswords":{"type":"string","nullable":true},"showWebBar":{"type":"integer","format":"int32","nullable":true,"default":0},"permissions":{"type":"string","nullable":true},"phoneBarUnconditionalNumber":{"type":"string","nullable":true},"phoneBarNoReplyNumber":{"type":"string","nullable":true},"phoneBarBusyNumber":{"type":"string","nullable":true},"phoneBarUnconditional":{"type":"boolean","nullable":true,"default":false},"phoneBarNoReply":{"type":"boolean","nullable":true,"default":false},"phoneBarBusy":{"type":"boolean","nullable":true,"default":false},"phoneBarDnd":{"type":"boolean","nullable":true,"default":true},"phoneBarUnansweredCallBadge":{"type":"boolean","nullable":true,"default":true},"phoneBarEnableDtmfTone":{"type":"boolean","nullable":true,"default":false},"phoneBarAutoAnswerDelay":{"type":"integer","format":"int32","nullable":true,"default":0},"extensionMonitor":{"type":"string","nullable":true,"default":""},"crudPermissions":{"type":"integer","format":"int32","nullable":true,"default":0},"rtcp_mux":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"allowmessenger":{"type":"boolean","nullable":true,"default":true},"phoneBarOutboundProxy":{"type":"string","nullable":true},"phoneBarEnableJaws":{"type":"boolean","nullable":true,"default":false},"phoneBarEnableScreenRecordingByAgent":{"type":"boolean","nullable":true,"default":false},"phoneBarEnableVideoRecording":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"phoneBarEnableAutomaticScreenRecording":{"type":"boolean","nullable":true,"default":false},"phoneBarPrefixRequired":{"type":"boolean","nullable":true,"default":false},"hotdesk":{"type":"boolean","nullable":true,"default":false},"interface":{"type":"string","nullable":true,"default":null},"privacyEnabled":{"type":"boolean","nullable":true,"default":false},"apiKeyNonce":{"type":"string","nullable":true},"apiKeyIat":{"type":"string","nullable":true},"screenrecording":{"type":"boolean","nullable":true,"default":false},"blocked":{"type":"boolean","nullable":true,"default":false},"blockedAt":{"type":"string","format":"date-time","nullable":true,"default":null},"loginAttempts":{"type":"integer","format":"int32","nullable":true,"default":0},"disabled":{"type":"boolean","nullable":true,"default":false},"settingsEnabled":{"type":"boolean","nullable":true,"default":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userProfileId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","fullname","email","role","password","provider","internal","online","voicePause","chatPause","mailPause","faxPause","smsPause","whatsappPause","openchannelPause","pauseType","chatCapacity","mailCapacity","faxCapacity","smsCapacity","whatsappCapacity","openchannelCapacity","phoneBarAutoAnswer","phoneBarEnableSettings","phoneBarListenPort","phoneBarExpires","phoneBarRemoteControl","phoneBarRemoteControlPort","phoneBarEnableRecording","phoneBarRingInUse","chanspy","host","type","context","transport","dtmfmode","directmedia","directrtpsetup","nat","language","disallow","allow","trustrpid","trust_id_outbound","callerid","callcounter","videosupport","session_refresher","qualify","sendrpid","encryption","usereqphone","call_limit","canreinvite","loginInPause","passwordResetAt","showWebBar","phoneBarUnconditional","phoneBarNoReply","phoneBarBusy","phoneBarDnd","phoneBarUnansweredCallBadge","phoneBarEnableDtmfTone","phoneBarAutoAnswerDelay","extensionMonitor","crudPermissions","rtcp_mux","allowmessenger","phoneBarEnableJaws","phoneBarEnableScreenRecordingByAgent","phoneBarEnableAutomaticScreenRecording","phoneBarPrefixRequired","hotdesk","interface","privacyEnabled","screenrecording","blocked","blockedAt","loginAttempts","disabled","settingsEnabled","createdAt","updatedAt"]},"VoiceChanSpy":{"title":"VoiceChanSpy","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"prefix":{"type":"string"},"options":{"type":"string","nullable":true},"auth":{"type":"boolean","nullable":true,"default":false},"password":{"type":"string","nullable":true},"record":{"type":"boolean","nullable":true,"default":false},"recordingFormat":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","prefix","auth","record","createdAt","updatedAt"]},"VoiceContext":{"title":"VoiceContext","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"defaultEntry":{"type":"boolean","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","defaultEntry","createdAt","updatedAt"]},"VoiceExtension":{"title":"VoiceExtension","type":"object","properties":{"id":{"type":"integer","format":"int32"},"context":{"type":"string"},"exten":{"type":"string"},"priority":{"type":"string","default":"1"},"tag":{"type":"string","default":"--"},"app":{"type":"string","default":"NoOp"},"appdata":{"type":"string","maxLength":4096,"nullable":true,"default":""},"type":{"type":"string","enum":["inbound","outbound","internal","inbound-fax","outbound-fax","system","any"]},"description":{"type":"string","nullable":true},"interval":{"type":"string","default":"*,*,*,*"},"IntervalId":{"type":"integer","format":"int32","nullable":true},"isApp":{"type":"boolean","default":false},"appType":{"type":"string","nullable":true,"default":null},"callerID":{"type":"string","nullable":true},"record":{"type":"boolean","nullable":true,"default":false},"cutdigits":{"type":"integer","format":"int32","nullable":true},"recordingFormat":{"type":"string","nullable":true,"default":"wav"},"answer":{"type":"boolean","nullable":true,"default":true},"name":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"ChanSpyId":{"type":"integer","format":"int32","nullable":true},"VoiceContextId":{"type":"integer","format":"int32","nullable":true},"VoiceExtensionId":{"type":"integer","format":"int32","nullable":true},"FaxAccountId":{"type":"integer","format":"int32","nullable":true},"VoicePrefixId":{"type":"integer","format":"int32","nullable":true}},"required":["id","context","exten","priority","tag","app","appdata","type","interval","isApp","appType","record","recordingFormat","answer","createdAt","updatedAt"]},"VoiceMusicOnHold":{"title":"VoiceMusicOnHold","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"mode":{"type":"string","enum":["custom","files","mp3nb","quietmp3nb","quietmp3","mp3"],"nullable":true,"default":"files"},"directory":{"type":"string","nullable":true},"application":{"type":"string","nullable":true},"digit":{"type":"string","nullable":true},"sort":{"type":"string","nullable":true,"default":"alpha"},"format":{"type":"string","nullable":true},"stamp":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"defaultEntry":{"type":"boolean","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","mode","sort","defaultEntry","createdAt","updatedAt"]},"VoiceQueue":{"title":"VoiceQueue","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"type":{"type":"string","enum":["inbound","outbound"],"default":"inbound"},"musiconhold":{"type":"string","nullable":true,"default":"default"},"announce":{"type":"string","nullable":true,"default":""},"strategy":{"type":"string","enum":["rr","ringall","leastrecent","fewestcalls","random","rrmemory","linear","wrandom","rrordered"],"default":"ringall"},"servicelevel":{"type":"integer","format":"int32","nullable":true,"default":0},"context":{"type":"string","nullable":true,"default":null},"penaltymemberslimit":{"type":"integer","format":"int32","nullable":true},"timeout":{"type":"integer","format":"int32","nullable":true,"default":15},"retry":{"type":"integer","format":"int32","nullable":true,"default":2},"timeoutpriority":{"type":"string","nullable":true},"weight":{"type":"integer","format":"int32","nullable":true,"default":0},"wrapuptime":{"type":"integer","format":"int32","nullable":true,"default":0},"autofill":{"type":"string","enum":["yes","no"],"nullable":true,"default":"yes"},"autopause":{"type":"string","enum":["yes","no","all"],"nullable":true,"default":"no"},"autopausedelay":{"type":"integer","format":"int32","nullable":true},"autopausebusy":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"autopauseunavail":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"maxlen":{"type":"integer","format":"int32","nullable":true,"default":0},"setinterfacevar":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"setqueueentryvar":{"type":"string","enum":["yes","no"],"nullable":true},"setqueuevar":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"eventmemberstatus":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"membermacro":{"type":"string","nullable":true},"membergosub":{"type":"string","nullable":true},"announce_frequency":{"type":"integer","format":"int32","nullable":true,"default":0},"min_announce_frequency":{"type":"integer","format":"int32","nullable":true,"default":0},"periodic_announce_frequency":{"type":"integer","format":"int32","nullable":true,"default":0},"random_periodic_announce":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"relative_periodic_announce":{"type":"string","enum":["yes","no"],"nullable":true,"default":"yes"},"announce_holdtime":{"type":"string","enum":["yes","no","once"],"nullable":true,"default":"no"},"announce_position":{"type":"string","nullable":true,"default":"no"},"announce_to_first_user":{"type":"string","enum":["yes","no"],"nullable":true},"announce_position_limit":{"type":"integer","format":"int32","nullable":true},"announce_round_seconds":{"type":"string","enum":["0","5","10","15","20","30"],"nullable":true,"default":"0"},"monitor_format":{"type":"string","nullable":true,"default":""},"monitor_type":{"type":"string","nullable":true},"queue_youarenext":{"type":"string","nullable":true,"default":null},"queue_thereare":{"type":"string","nullable":true,"default":null},"queue_callswaiting":{"type":"string","nullable":true,"default":null},"queue_holdtime":{"type":"string","nullable":true,"default":null},"queue_minute":{"type":"string","nullable":true,"default":null},"queue_minutes":{"type":"string","nullable":true,"default":null},"queue_seconds":{"type":"string","nullable":true,"default":null},"queue_thankyou":{"type":"string","nullable":true,"default":null},"queue_reporthold":{"type":"string","nullable":true},"queue_quantity1":{"type":"string","nullable":true},"queue_quantity2":{"type":"string","nullable":true},"queue_periodic_announce":{"type":"string","nullable":true},"queue_less_than":{"type":"string","nullable":true},"periodic_announce":{"type":"string","nullable":true},"joinempty":{"type":"string","nullable":true,"default":"yes"},"leavewhenempty":{"type":"string","nullable":true,"default":"no"},"reportholdtime":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"ringinuse":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"memberdelay":{"type":"integer","format":"int32","nullable":true,"default":0},"timeoutrestart":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"defaultrule":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"acw":{"type":"boolean","nullable":true,"default":0},"acwTimeout":{"type":"integer","format":"int32","nullable":true,"default":10},"dialActive":{"type":"boolean","nullable":true,"default":0},"dialMethod":{"type":"string","enum":["preview","progressive","power","predictive","booked"],"nullable":true,"default":"progressive"},"dialLimitChannel":{"type":"integer","format":"int32","nullable":true,"default":0},"dialLimitQueue":{"type":"integer","format":"int32","nullable":true,"default":0},"dialPowerLevel":{"type":"number","format":"float","nullable":true,"default":1},"dialPredictiveOptimization":{"type":"string","enum":["agentBusyFactor","dropRate"],"nullable":true,"default":"dropRate"},"dialPredictiveOptimizationPercentage":{"type":"number","format":"float","nullable":true,"default":3},"dialPredictiveInterval":{"type":"integer","format":"int32","nullable":true,"default":10},"dialOriginateCallerIdName":{"type":"string","nullable":true},"dialOriginateCallerIdNumber":{"type":"string","nullable":true},"dialOriginateTimeout":{"type":"integer","format":"int32","nullable":true,"default":30},"dialQueueOptions":{"type":"string","nullable":true,"default":"tTxX"},"dialQueueTimeout":{"type":"integer","format":"int32","nullable":true,"default":3},"dialQueueProject":{"type":"string","nullable":true},"dialCongestionMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialCongestionRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialBusyMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialBusyRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialNoAnswerMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialNoAnswerRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialGlobalMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":4},"dialTimezone":{"type":"string","nullable":true,"default":null},"dialGlobalInterval":{"type":"string","nullable":true,"default":"07:00-22:00,*,*,*"},"dialPrefix":{"type":"string","nullable":true,"default":null},"dialCheckDuplicateType":{"type":"string","enum":["always","never","onlyIfOpen"],"nullable":true,"default":"always"},"dialAMDActive":{"type":"boolean","nullable":true,"default":0},"dialAMDInitialSilence":{"type":"integer","format":"int32","nullable":true,"default":2500},"dialAMDGreeting":{"type":"integer","format":"int32","nullable":true,"default":1500},"dialAMDAfterGreetingSilence":{"type":"integer","format":"int32","nullable":true,"default":800},"dialAMDTotalAnalysisTime":{"type":"integer","format":"int32","nullable":true,"default":5000},"dialAMDMinWordLength":{"type":"integer","format":"int32","nullable":true,"default":100},"dialAMDBetweenWordsSilence":{"type":"integer","format":"int32","nullable":true,"default":50},"dialAMDMaximumNumberOfWords":{"type":"integer","format":"int32","nullable":true,"default":3},"dialAMDSilenceThreshold":{"type":"integer","format":"int32","nullable":true,"default":256},"dialAMDMaximumWordLength":{"type":"integer","format":"int32","nullable":true,"default":5000},"dialRecallMeTimeout":{"type":"integer","format":"int32","nullable":true,"default":30},"dialRecallInQueue":{"type":"boolean","nullable":true,"default":0},"dialOrderByScheduledAt":{"type":"string","enum":["DESC","ASC"],"nullable":true,"default":"DESC"},"dialQueueProject2":{"type":"string","nullable":true},"dialAgiAfterHangupClient":{"type":"boolean","nullable":true,"default":false},"dialAgiAfterHangupAgent":{"type":"boolean","nullable":true,"default":false},"dialRandomLastDigitCallerIdNumber":{"type":"integer","format":"int32","nullable":true,"default":0},"dialCutDigit":{"type":"integer","format":"int32","nullable":true,"default":0},"dialNoSuchNumberMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialNoSuchNumberRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialDropMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialDropRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialAbandonedMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialAbandonedRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialMachineMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialMachineRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialAgentRejectMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialAgentRejectRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"mandatoryDispositionPauseId":{"type":"integer","format":"int32","nullable":true},"mandatoryDisposition":{"type":"boolean","nullable":true,"default":false},"dialPredictiveIntervalMaxThreshold":{"type":"integer","format":"int32","nullable":true,"default":20},"dialPredictiveIntervalMinThreshold":{"type":"integer","format":"int32","nullable":true,"default":10},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"TrunkId":{"type":"integer","format":"int32","nullable":true},"TrunkBackupId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","type","musiconhold","announce","strategy","servicelevel","context","timeout","retry","weight","wrapuptime","autofill","autopause","autopausebusy","autopauseunavail","maxlen","setinterfacevar","setqueuevar","eventmemberstatus","announce_frequency","min_announce_frequency","periodic_announce_frequency","random_periodic_announce","relative_periodic_announce","announce_holdtime","announce_position","announce_round_seconds","monitor_format","queue_youarenext","queue_thereare","queue_callswaiting","queue_holdtime","queue_minute","queue_minutes","queue_seconds","queue_thankyou","joinempty","leavewhenempty","reportholdtime","ringinuse","memberdelay","timeoutrestart","acw","acwTimeout","dialActive","dialMethod","dialLimitChannel","dialLimitQueue","dialPowerLevel","dialPredictiveOptimization","dialPredictiveOptimizationPercentage","dialPredictiveInterval","dialOriginateTimeout","dialQueueOptions","dialQueueTimeout","dialCongestionMaxRetry","dialCongestionRetryFrequency","dialBusyMaxRetry","dialBusyRetryFrequency","dialNoAnswerMaxRetry","dialNoAnswerRetryFrequency","dialGlobalMaxRetry","dialTimezone","dialGlobalInterval","dialPrefix","dialCheckDuplicateType","dialAMDActive","dialAMDInitialSilence","dialAMDGreeting","dialAMDAfterGreetingSilence","dialAMDTotalAnalysisTime","dialAMDMinWordLength","dialAMDBetweenWordsSilence","dialAMDMaximumNumberOfWords","dialAMDSilenceThreshold","dialAMDMaximumWordLength","dialRecallMeTimeout","dialRecallInQueue","dialOrderByScheduledAt","dialAgiAfterHangupClient","dialAgiAfterHangupAgent","dialRandomLastDigitCallerIdNumber","dialCutDigit","dialNoSuchNumberMaxRetry","dialNoSuchNumberRetryFrequency","dialDropMaxRetry","dialDropRetryFrequency","dialAbandonedMaxRetry","dialAbandonedRetryFrequency","dialMachineMaxRetry","dialMachineRetryFrequency","dialAgentRejectMaxRetry","dialAgentRejectRetryFrequency","mandatoryDisposition","dialPredictiveIntervalMaxThreshold","dialPredictiveIntervalMinThreshold","createdAt","updatedAt"]},"VoiceRecording":{"title":"VoiceRecording","type":"object","properties":{"id":{"type":"integer","format":"int32"},"format":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"uniqueid":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"connectedlinenum":{"type":"string","nullable":true},"connectedlinename":{"type":"string","nullable":true},"accountcode":{"type":"string","nullable":true},"context":{"type":"string","nullable":true},"exten":{"type":"string","nullable":true},"value":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"rating":{"type":"integer","format":"int32","nullable":true},"queue":{"type":"string","nullable":true},"userDisposition":{"type":"string","nullable":true},"userSecondDisposition":{"type":"string","nullable":true},"userThirdDisposition":{"type":"string","nullable":true},"location":{"type":"string","nullable":true},"transcribeName":{"type":"string","nullable":true},"transcribeStatus":{"type":"string","nullable":true,"default":"NEW"},"fileUri":{"type":"string","nullable":true},"fileText":{"type":"string","nullable":true},"failureReason":{"type":"string","nullable":true},"sentiment":{"type":"string","nullable":true},"sPositive":{"type":"number","format":"float","nullable":true},"sNegative":{"type":"number","format":"float","nullable":true},"sNeutral":{"type":"number","format":"float","nullable":true},"sMixed":{"type":"number","format":"float","nullable":true},"tempSentiment":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time","nullable":true},"updatedAt":{"type":"string","format":"date-time","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true}},"required":["id","transcribeStatus","tempSentiment"]},"ScreenRecording":{"title":"ScreenRecording","type":"object","properties":{"id":{"type":"integer","format":"int32"},"format":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"interactionid":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"value":{"type":"string","nullable":true},"rating":{"type":"integer","format":"int32","nullable":true},"duration":{"type":"integer","format":"int32","nullable":true},"startedAt":{"type":"string","format":"date-time","nullable":true},"closedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time","nullable":true},"updatedAt":{"type":"string","format":"date-time","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true}},"required":["id"]},"VoiceMail":{"title":"VoiceMail","type":"object","properties":{"id":{"type":"integer","format":"int32"},"customer_id":{"type":"string","nullable":true},"context":{"type":"string","nullable":true,"default":"from-voicemail"},"mailbox":{"type":"string","default":""},"password":{"type":"string","nullable":true},"fullname":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"pager":{"type":"string","nullable":true},"tz":{"type":"string","nullable":true,"default":"central"},"attach":{"type":"string","enum":["yes","no"],"default":"yes"},"saycid":{"type":"string","enum":["yes","no"],"default":"yes"},"dialout":{"type":"string","nullable":true},"callback":{"type":"string","nullable":true},"review":{"type":"string","enum":["yes","no"],"default":"no"},"operator":{"type":"string","enum":["yes","no"],"default":"no"},"envelope":{"type":"string","enum":["yes","no"],"default":"no"},"sayduration":{"type":"string","enum":["yes","no"],"default":"no"},"saydurationm":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"default":1},"sendvoicemail":{"type":"string","enum":["yes","no"],"default":"no"},"delete":{"type":"string","enum":["yes","no"],"default":"no"},"nextaftercmd":{"type":"string","enum":["yes","no"],"default":"yes"},"forcename":{"type":"string","enum":["yes","no"],"default":"no"},"forcegreetings":{"type":"string","enum":["yes","no"],"default":"no"},"hidefromdir":{"type":"string","enum":["yes","no"],"default":"yes"},"stamp":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"emailsubject":{"type":"string","nullable":true},"emailbody":{"type":"string","nullable":true},"maxsecs":{"type":"integer","format":"int32","default":180},"maxmsg":{"type":"integer","format":"int32","default":100},"name":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true}},"required":["id","context","mailbox","tz","attach","saycid","review","operator","envelope","sayduration","saydurationm","sendvoicemail","delete","nextaftercmd","forcename","forcegreetings","hidefromdir","maxsecs","maxmsg","createdAt","updatedAt"]},"VoiceMailMessage":{"title":"VoiceMailMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"msgnum":{"type":"integer","format":"int32","default":0},"dir":{"type":"string","nullable":true,"default":""},"context":{"type":"string","nullable":true,"default":""},"macrocontext":{"type":"string","nullable":true,"default":""},"callerid":{"type":"string","nullable":true,"default":""},"origtime":{"type":"string","nullable":true,"default":""},"duration":{"type":"string","nullable":true,"default":""},"mailboxuser":{"type":"string","nullable":true,"default":""},"mailboxcontext":{"type":"string","nullable":true,"default":""},"recording":{"type":"string","format":"byte","nullable":true,"default":null},"flag":{"type":"string","nullable":true,"default":""},"msg_id":{"type":"string","nullable":true,"default":""},"stamp":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}]}},"required":["id","msgnum","dir","context","macrocontext","callerid","origtime","duration","mailboxuser","mailboxcontext","recording","flag","msg_id","stamp"]},"VoiceCallReport":{"title":"VoiceCallReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string","nullable":true},"type":{"type":"string","enum":["inbound","internal","outbound","inbound-fax","outbound-fax","dialer"],"nullable":true},"tag":{"type":"string","nullable":true},"accountcode":{"type":"string","nullable":true},"source":{"type":"string","nullable":true},"destination":{"type":"string","nullable":true},"destinationcontext":{"type":"string","nullable":true},"callerid":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"destinationchannel":{"type":"string","nullable":true},"lastapplication":{"type":"string","nullable":true},"lastdata":{"type":"string","nullable":true},"starttime":{"type":"string","format":"date-time","nullable":true},"systemanswertime":{"type":"string","format":"date-time","nullable":true},"answertime":{"type":"string","format":"date-time","nullable":true},"endtime":{"type":"string","format":"date-time","nullable":true},"duration":{"type":"integer","format":"int32","nullable":true},"billableseconds":{"type":"integer","format":"int32","nullable":true},"mohtime":{"type":"integer","format":"int32","nullable":true,"default":0},"disposition":{"type":"string","nullable":true},"amaflags":{"type":"string","nullable":true},"userfield":{"type":"string","nullable":true},"userDisposition":{"type":"string","nullable":true},"userSecondDisposition":{"type":"string","nullable":true},"userThirdDisposition":{"type":"string","nullable":true},"note":{"type":"string","nullable":true},"prefix":{"type":"string","nullable":true},"routeid":{"type":"integer","format":"int32","nullable":true},"sipcallid":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","mohtime","createdAt","updatedAt"]},"VoiceDialReport":{"title":"VoiceDialReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"privilege":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"channelstate":{"type":"integer","format":"int32","nullable":true},"channelstatedesc":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"connectedlinenum":{"type":"string","nullable":true},"connectedlinename":{"type":"string","nullable":true},"language":{"type":"string","nullable":true},"accountcode":{"type":"string","nullable":true},"context":{"type":"string","nullable":true},"exten":{"type":"string","nullable":true},"priority":{"type":"integer","format":"int32","nullable":true},"uniqueid":{"type":"string","nullable":true},"linkedid":{"type":"string","nullable":true},"destchannel":{"type":"string","nullable":true},"destchannelstate":{"type":"integer","format":"int32","nullable":true},"destchannelstatedesc":{"type":"string","nullable":true},"destcalleridnum":{"type":"string","nullable":true},"destcalleridname":{"type":"string","nullable":true},"destconnectedlinenum":{"type":"string","nullable":true},"destconnectedlinename":{"type":"string","nullable":true},"destlanguage":{"type":"string","nullable":true},"destaccountcode":{"type":"string","nullable":true},"destcontext":{"type":"string","nullable":true},"destexten":{"type":"string","nullable":true},"destpriority":{"type":"integer","format":"int32","nullable":true},"destuniqueid":{"type":"string","nullable":true},"destlinkedid":{"type":"string","nullable":true},"dialstring":{"type":"string","nullable":true},"dialstatus":{"type":"string","nullable":true},"starttime":{"type":"string","format":"date-time","nullable":true},"answertime":{"type":"string","format":"date-time","nullable":true},"endtime":{"type":"string","format":"date-time","nullable":true},"lastevent":{"type":"string","nullable":true},"routeId":{"type":"integer","format":"int32","nullable":true},"duration":{"type":"integer","format":"int32","nullable":true},"holdtime":{"type":"integer","format":"int32","nullable":true},"billableseconds":{"type":"integer","format":"int32","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"VoiceAgentReport":{"title":"VoiceAgentReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","nullable":true},"uniqueid":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"queue":{"type":"string","nullable":true},"interface":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"agentcalledAt":{"type":"string","format":"date-time","nullable":true},"agentconnectAt":{"type":"string","format":"date-time","nullable":true},"agentcompleteAt":{"type":"string","format":"date-time","nullable":true},"agentringnoanswerAt":{"type":"string","format":"date-time","nullable":true},"agentdumpAt":{"type":"string","format":"date-time","nullable":true},"holdtime":{"type":"integer","format":"int32","nullable":true},"agentcomplete":{"type":"boolean","nullable":true,"default":false},"agentringnoanswer":{"type":"boolean","nullable":true,"default":false},"agentdump":{"type":"boolean","nullable":true,"default":false},"talktime":{"type":"integer","format":"int32","nullable":true},"agentacw":{"type":"boolean","nullable":true,"default":false},"acwtime":{"type":"integer","format":"int32","nullable":true},"reason":{"type":"string","nullable":true},"lastevent":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"channelstate":{"type":"integer","format":"int32","nullable":true},"channelstatedesc":{"type":"string","nullable":true},"connectedlinenum":{"type":"string","nullable":true},"connectedlinename":{"type":"string","nullable":true},"language":{"type":"string","nullable":true},"accountcode":{"type":"string","nullable":true},"context":{"type":"string","nullable":true},"exten":{"type":"string","nullable":true},"priority":{"type":"string","nullable":true},"destchannel":{"type":"string","nullable":true},"destchannelstate":{"type":"integer","format":"int32","nullable":true},"destchannelstatedesc":{"type":"string","nullable":true},"destcalleridnum":{"type":"string","nullable":true},"destcalleridname":{"type":"string","nullable":true},"destconnectedlinenum":{"type":"string","nullable":true},"destconnectedlinename":{"type":"string","nullable":true},"destlanguage":{"type":"string","nullable":true},"destaccountcode":{"type":"string","nullable":true},"destcontext":{"type":"string","nullable":true},"destexten":{"type":"string","nullable":true},"destpriority":{"type":"string","nullable":true},"destuniqueid":{"type":"string","nullable":true},"answeredelsewheredestinationuniqueid":{"type":"string","nullable":true},"answeredelsewheremembername":{"type":"string","nullable":true},"transfer":{"type":"boolean","nullable":true,"default":false},"transfertype":{"type":"string","nullable":true},"transferexten":{"type":"string","nullable":true},"transferuniqueid":{"type":"string","nullable":true},"agententerreason":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","agentcomplete","agentringnoanswer","agentdump","agentacw","transfer","agententerreason","createdAt","updatedAt"]},"VoiceQueueReport":{"title":"VoiceQueueReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","nullable":true},"uniqueid":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"queue":{"type":"string","nullable":true},"queuecallerjoinAt":{"type":"string","format":"date-time","nullable":true},"queuecallerleaveAt":{"type":"string","format":"date-time","nullable":true},"position":{"type":"integer","format":"int32","nullable":true},"count":{"type":"integer","format":"int32","nullable":true},"queuecallerabandon":{"type":"boolean","nullable":true,"default":false},"queuecallerabandonAt":{"type":"string","format":"date-time","nullable":true},"queuecallercomplete":{"type":"boolean","nullable":true,"default":false},"queuecallercompleteAt":{"type":"string","format":"date-time","nullable":true},"queuecallerexit":{"type":"boolean","nullable":true,"default":false},"queuecallerexitAt":{"type":"string","format":"date-time","nullable":true},"queuecallerexitreason":{"type":"string","nullable":true},"originalposition":{"type":"integer","format":"int32","nullable":true},"channel":{"type":"string","nullable":true},"connectedlinenum":{"type":"string","nullable":true},"connectedlinename":{"type":"string","nullable":true},"accountcode":{"type":"string","nullable":true},"context":{"type":"string","nullable":true},"exten":{"type":"string","nullable":true},"priority":{"type":"string","nullable":true},"holdtime":{"type":"integer","format":"int32","nullable":true},"mohtime":{"type":"integer","format":"int32","nullable":true,"default":0},"assigned":{"type":"boolean","nullable":true,"default":false},"lastAssignedTo":{"type":"string","nullable":true},"transfer":{"type":"boolean","nullable":true,"default":false},"transfertype":{"type":"string","nullable":true},"transferexten":{"type":"string","nullable":true},"transferuniqueid":{"type":"string","nullable":true},"disposition":{"type":"string","nullable":true},"secondDisposition":{"type":"string","nullable":true},"thirdDisposition":{"type":"string","nullable":true},"queuecallerenterreason":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","queuecallerabandon","queuecallercomplete","queuecallerexit","mohtime","assigned","transfer","queuecallerenterreason","createdAt","updatedAt"]},"MemberReport":{"title":"MemberReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"channel":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"interface":{"type":"string","nullable":true},"type":{"type":"string","nullable":true,"default":"DEFAULT PAUSE"},"duration":{"type":"integer","format":"int32","nullable":true},"enterAt":{"type":"string","format":"date-time","nullable":true},"exitAt":{"type":"string","format":"date-time","nullable":true},"data1":{"type":"string","nullable":true},"data2":{"type":"string","nullable":true},"data3":{"type":"string","nullable":true},"data4":{"type":"string","nullable":true},"data5":{"type":"string","nullable":true},"role":{"type":"string","nullable":true},"internal":{"type":"integer","format":"int32","nullable":true},"uniqueid":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","type","createdAt","updatedAt"]},"Trunk":{"title":"Trunk","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"type":{"type":"string","enum":["friend","user","peer"],"default":"friend"},"context":{"type":"string","default":"from-voip-provider"},"callingpres":{"type":"string","enum":["ALLOWED_NOT_SCREENED","ALLOWED_PASSED_SCREEN","ALLOWED_FAILED_SCREEN","ALLOWED","PROHIB_NOT_SCREENED","PROHIB_PASSED_SCREEN","PROHIB_FAILED_SCREEN","PROHIB"],"nullable":true},"deny":{"type":"string","nullable":true},"permit":{"type":"string","nullable":true},"secret":{"type":"string","nullable":true},"md5secret":{"type":"string","nullable":true},"remotesecret":{"type":"string","nullable":true},"transport":{"type":"string","nullable":true,"default":"udp"},"dtmfmode":{"type":"string","enum":["rfc2833","info","shortinfo","inband","auto"],"nullable":true,"default":"rfc2833"},"directmedia":{"type":"string","enum":["yes","no","nonat","update","outgoing"],"nullable":true,"default":"no"},"directrtpsetup":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"directmediapermit":{"type":"string","nullable":true},"directmediadeny":{"type":"string","nullable":true},"nat":{"type":"string","nullable":true,"default":"force_rport,comedia"},"callgroup":{"type":"string","nullable":true},"namedcallgroup":{"type":"string","nullable":true},"pickupgroup":{"type":"string","nullable":true},"namedpickupgroup":{"type":"string","nullable":true},"language":{"type":"string","nullable":true,"default":"en"},"tonezone":{"type":"string","nullable":true},"disallow":{"type":"string","nullable":true,"default":"all"},"allow":{"type":"string","default":"ulaw;alaw;gsm"},"autoframing":{"type":"string","enum":["yes","no"],"nullable":true},"insecure":{"type":"string","nullable":true,"default":"port,invite"},"trustrpid":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"trust_id_outbound":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"progressinband":{"type":"string","enum":["yes","no","never"],"nullable":true},"promiscredir":{"type":"string","enum":["yes","no"],"nullable":true},"useclientcode":{"type":"string","enum":["yes","no"],"nullable":true},"accountcode":{"type":"integer","format":"int32","nullable":true},"setvar":{"type":"string","nullable":true},"callerid":{"type":"string","nullable":true,"default":"\"\" <>"},"amaflags":{"type":"string","nullable":true},"callcounter":{"type":"string","enum":["yes","no"],"nullable":true,"default":"yes"},"busylevel":{"type":"integer","format":"int32","nullable":true},"allowoverlap":{"type":"string","enum":["yes","no"],"nullable":true},"allowsubscribe":{"type":"string","enum":["yes","no"],"nullable":true},"allowtransfer":{"type":"string","enum":["yes","no"],"nullable":true},"ignoresdpversion":{"type":"string","enum":["yes","no"],"nullable":true},"subscribecontext":{"type":"string","nullable":true},"template":{"type":"string","nullable":true},"videosupport":{"type":"string","enum":["yes","no","always"],"nullable":true,"default":"no"},"maxcallbitrate":{"type":"integer","format":"int32","nullable":true},"rfc2833compensate":{"type":"string","enum":["yes","no"],"nullable":true},"mailbox":{"type":"string","nullable":true},"session_timers":{"type":"string","enum":["accept","refuse","originate"],"nullable":true},"session_expires":{"type":"integer","format":"int32","nullable":true},"session_minse":{"type":"integer","format":"int32","nullable":true},"session_refresher":{"type":"string","enum":["uac","uas"],"nullable":true,"default":"uas"},"t38pt_usertpsource":{"type":"string","nullable":true},"regexten":{"type":"string","nullable":true},"fromdomain":{"type":"string","nullable":true},"fromuser":{"type":"string","nullable":true},"port":{"type":"integer","format":"int32","nullable":true},"qualify":{"type":"string","enum":["yes","no"],"nullable":true,"default":"yes"},"keepalive":{"type":"integer","format":"int32","nullable":true},"defaultip":{"type":"string","nullable":true},"defaultuser":{"type":"string","nullable":true},"rtptimeout":{"type":"integer","format":"int32","nullable":true},"rtpholdtimeout":{"type":"integer","format":"int32","nullable":true},"rtpkeepalive":{"type":"integer","format":"int32","nullable":true},"sendrpid":{"type":"string","enum":["yes","no","pai"],"nullable":true,"default":"no"},"outboundproxy":{"type":"string","nullable":true},"callbackextension":{"type":"string","nullable":true},"timert1":{"type":"integer","format":"int32","nullable":true},"timerb":{"type":"integer","format":"int32","nullable":true},"qualifyfreq":{"type":"integer","format":"int32","nullable":true},"contactpermit":{"type":"string","nullable":true},"contactdeny":{"type":"string","nullable":true},"contactacl":{"type":"string","nullable":true},"unsolicited_mailbox":{"type":"string","nullable":true},"use_q850_reason":{"type":"string","nullable":true},"maxforwards":{"type":"integer","format":"int32","nullable":true},"encryption":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"avpf":{"type":"string","enum":["yes","no"],"nullable":true},"force_avp":{"type":"string","enum":["yes","no"],"nullable":true},"icesupport":{"type":"string","enum":["yes","no"],"nullable":true},"dtlsenable":{"type":"string","enum":["yes","no"],"nullable":true},"dtlsverify":{"type":"string","enum":["yes","no","fingerprint","certificate"],"nullable":true},"dtlsrekey":{"type":"integer","format":"int32","nullable":true},"dtlscertfile":{"type":"string","nullable":true},"dtlsprivatekey":{"type":"string","nullable":true},"dtlscipher":{"type":"string","nullable":true},"dtlscafile":{"type":"string","nullable":true},"dtlscapath":{"type":"string","nullable":true},"dtlssetup":{"type":"string","enum":["active","passive","actpass"],"nullable":true},"dtlsfingerprint":{"type":"string","nullable":true},"usereqphone":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"recordonfeature":{"type":"string","nullable":true},"recordofffeature":{"type":"string","nullable":true},"call_limit":{"type":"integer","format":"int32","nullable":true,"default":1000},"registertrying":{"type":"string","enum":["yes","no"],"nullable":true},"subscribemwi":{"type":"string","enum":["yes","no"],"nullable":true},"vmexten":{"type":"string","nullable":true},"mohinterpret":{"type":"string","nullable":true},"mohsuggest":{"type":"string","nullable":true},"parkinglot":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"host":{"type":"string","nullable":true,"default":"dynamic"},"canreinvite":{"type":"string","enum":["yes","no","nonat","update","update,nonat"],"nullable":true,"default":"no"},"registry":{"type":"string","nullable":true},"otherFields":{"type":"string","nullable":true},"active":{"type":"boolean","default":true},"t38pt_udptl":{"type":"string","nullable":true,"default":"no"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","type","context","transport","dtmfmode","directmedia","directrtpsetup","nat","language","disallow","allow","insecure","trustrpid","trust_id_outbound","callerid","callcounter","videosupport","session_refresher","qualify","sendrpid","encryption","usereqphone","call_limit","host","canreinvite","active","t38pt_udptl","createdAt","updatedAt"]},"VoiceTransferReport":{"title":"VoiceTransferReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["blind","attended"],"nullable":true},"result":{"type":"string","nullable":true},"transfererchannel":{"type":"string","nullable":true},"transferercalleridnum":{"type":"string","nullable":true},"transferercalleridname":{"type":"string","nullable":true},"transfererconnectedlinenum":{"type":"string","nullable":true},"transfererconnectedlinename":{"type":"string","nullable":true},"transfereraccountcode":{"type":"string","nullable":true},"transferercontext":{"type":"string","nullable":true},"transfererexten":{"type":"string","nullable":true},"transfererlinkedid":{"type":"string","nullable":true},"transfereechannel":{"type":"string","nullable":true},"transfereecalleridnum":{"type":"string","nullable":true},"transfereecalleridname":{"type":"string","nullable":true},"transfereeconnectedlinenum":{"type":"string","nullable":true},"transfereeconnectedlinename":{"type":"string","nullable":true},"transfereeaccountcode":{"type":"string","nullable":true},"transfereecontext":{"type":"string","nullable":true},"transfereeexten":{"type":"string","nullable":true},"transfereelinkedid":{"type":"string","nullable":true},"isexternal":{"type":"string","enum":["Yes","No"],"nullable":true},"context":{"type":"string","nullable":true},"extension":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"UserVoiceQueueRt":{"title":"UserVoiceQueueRt","type":"object","properties":{"uniqueid":{"type":"integer","format":"int32","nullable":true},"membername":{"type":"string"},"UserId":{"type":"integer","format":"int32"},"queue_name":{"type":"string"},"VoiceQueueId":{"type":"integer","format":"int32"},"interface":{"type":"string"},"penalty":{"type":"integer","format":"int32","nullable":true,"default":0},"paused":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["membername","UserId","queue_name","VoiceQueueId","interface","penalty","paused","createdAt","updatedAt"]},"UserVoiceQueue":{"title":"UserVoiceQueue","type":"object","properties":{"penalty":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"VoiceQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["penalty","createdAt","updatedAt"]},"UserChatQueue":{"title":"UserChatQueue","type":"object","properties":{"penalty":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"ChatQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["penalty","createdAt","updatedAt"]},"UserMailQueue":{"title":"UserMailQueue","type":"object","properties":{"penalty":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"MailQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["penalty","createdAt","updatedAt"]},"UserFaxQueue":{"title":"UserFaxQueue","type":"object","properties":{"penalty":{"type":"integer","format":"int32","nullable":true,"default":0},"assigned":{"type":"integer","format":"int32","nullable":true,"default":0},"queue":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"FaxQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["penalty","assigned","createdAt","updatedAt"]},"UserSmsQueue":{"title":"UserSmsQueue","type":"object","properties":{"penalty":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"SmsQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["penalty","createdAt","updatedAt"]},"UserOpenchannelQueue":{"title":"UserOpenchannelQueue","type":"object","properties":{"penalty":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"OpenchannelQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["penalty","createdAt","updatedAt"]},"UserWhatsappQueue":{"title":"UserWhatsappQueue","type":"object","properties":{"penalty":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"WhatsappQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["penalty","createdAt","updatedAt"]},"MailServerIn":{"title":"MailServerIn","type":"object","properties":{"id":{"type":"integer","format":"int32"},"description":{"type":"string","nullable":true},"host":{"type":"string","nullable":true},"authentication":{"type":"boolean","nullable":true,"default":true},"user":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"port":{"type":"integer","format":"int32","nullable":true},"tls":{"type":"boolean","nullable":true,"default":true},"mailbox":{"type":"string","nullable":true,"default":"INBOX"},"connTimeout":{"type":"integer","format":"int32","nullable":true,"default":10},"authTimeout":{"type":"integer","format":"int32","nullable":true,"default":5},"service":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailAccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","authentication","tls","mailbox","connTimeout","authTimeout","createdAt","updatedAt"]},"MailServerOut":{"title":"MailServerOut","type":"object","properties":{"id":{"type":"integer","format":"int32"},"description":{"type":"string","nullable":true},"host":{"type":"string","nullable":true},"user":{"type":"string","nullable":true},"pass":{"type":"string","nullable":true},"port":{"type":"integer","format":"int32","nullable":true},"secure":{"type":"boolean","nullable":true,"default":false},"service":{"type":"string","nullable":true},"authentication":{"type":"boolean","nullable":true,"default":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailAccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","secure","authentication","createdAt","updatedAt"]},"MailAccount":{"title":"MailAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"description":{"type":"string","nullable":true},"name":{"type":"string"},"service":{"type":"boolean","nullable":true,"default":false},"email":{"type":"string","nullable":true},"active":{"type":"boolean","nullable":true,"default":true},"key":{"type":"string"},"template":{"type":"string","nullable":true},"markAsUnread":{"type":"boolean","nullable":true,"default":false},"fontFamily":{"type":"string","default":"Arial,Helvetica,sans-serif"},"fontSize":{"type":"integer","format":"int32","nullable":true,"default":13},"notificationTemplate":{"type":"string","nullable":true},"notificationSound":{"type":"boolean","nullable":true,"default":true},"notificationShake":{"type":"boolean","nullable":true,"default":false},"waitForTheAssignedAgent":{"type":"integer","format":"int32","nullable":true,"default":10},"queueTransfer":{"type":"boolean","nullable":true,"default":false},"queueTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"agentTransfer":{"type":"boolean","nullable":true,"default":false},"agentTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"mandatoryDispositionPauseId":{"type":"integer","format":"int32","nullable":true,"default":null},"mandatoryDisposition":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ListId":{"type":"integer","format":"int32","nullable":true},"TemplateId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","service","active","key","markAsUnread","fontFamily","fontSize","notificationTemplate","notificationSound","notificationShake","waitForTheAssignedAgent","queueTransfer","queueTransferTimeout","agentTransfer","agentTransferTimeout","mandatoryDispositionPauseId","mandatoryDisposition","createdAt","updatedAt"]},"MailQueue":{"title":"MailQueue","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"timeout":{"type":"integer","format":"int32","nullable":true},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"MailSubstatus":{"title":"MailSubstatus","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"MailInteraction":{"title":"MailInteraction","type":"object","properties":{"id":{"type":"integer","format":"int32"},"closed":{"type":"boolean","nullable":true,"default":false},"closedAt":{"type":"string","format":"date-time","nullable":true},"disposition":{"type":"string","nullable":true},"secondDisposition":{"type":"string","nullable":true},"thirdDisposition":{"type":"string","nullable":true},"note":{"type":"string","nullable":true},"inReplyTo":{"type":"string","maxLength":510,"nullable":true},"to":{"type":"string","nullable":true},"cc":{"type":"string","nullable":true},"subject":{"type":"string","nullable":true},"attach":{"type":"boolean","nullable":true,"default":false},"read1stAt":{"type":"string","format":"date-time","nullable":true},"substatus":{"type":"string","maxLength":60,"nullable":true},"substatusAt":{"type":"string","format":"date-time","nullable":true},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string","format":"date-time","nullable":true},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgBody":{"type":"string","nullable":true},"lastMsgText":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"MailAccountId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","closed","attach","firstMsgDirection","lastMsgDirection","createdAt","updatedAt"]},"MailMessage":{"title":"MailMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string"},"plainBody":{"type":"string","nullable":true},"read":{"type":"boolean","nullable":true,"default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"messageId":{"type":"string","maxLength":510,"nullable":true},"from":{"type":"string","nullable":true},"to":{"type":"string","nullable":true},"cc":{"type":"string","nullable":true},"bcc":{"type":"string","nullable":true},"subject":{"type":"string","nullable":true},"sentAt":{"type":"string","format":"date-time","nullable":true},"attach":{"type":"integer","format":"int32","nullable":true,"default":0},"secret":{"type":"boolean","nullable":true,"default":false},"readAt":{"type":"string","format":"date-time","nullable":true},"originTo":{"type":"string","nullable":true},"originCc":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailAccountId":{"type":"integer","format":"int32","nullable":true},"MailInteractionId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","body","read","direction","attach","secret","createdAt","updatedAt"]},"MailApplication":{"title":"MailApplication","type":"object","properties":{"id":{"type":"integer","format":"int32"},"priority":{"type":"integer","format":"int32"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"interval":{"type":"string","nullable":true,"default":"*,*,*,*"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailAccountId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"MailQueueId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true},"TagId":{"type":"integer","format":"int32","nullable":true}},"required":["id","priority","app","interval","createdAt","updatedAt"]},"MailQueueReport":{"title":"MailQueueReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"from":{"type":"string","nullable":true},"joinAt":{"type":"string","format":"date-time","nullable":true},"leaveAt":{"type":"string","format":"date-time","nullable":true},"acceptAt":{"type":"string","format":"date-time","nullable":true},"exitAt":{"type":"string","format":"date-time","nullable":true},"reason":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailAccountId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"MailInteractionId":{"type":"integer","format":"int32","nullable":true},"MailMessageId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"MailQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","createdAt","updatedAt"]},"Dashboard":{"title":"Dashboard","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"DashboardItem":{"title":"DashboardItem","type":"object","properties":{"id":{"type":"integer","format":"int32"},"title":{"type":"string"},"type":{"type":"string","maxLength":20},"attrs":{"type":"string","nullable":true},"sizeX":{"type":"integer","format":"int32","default":1},"sizeY":{"type":"integer","format":"int32","default":1},"row":{"type":"integer","format":"int32","nullable":true},"col":{"type":"integer","format":"int32","nullable":true},"background":{"type":"string","default":"#ffffff"},"foreground":{"type":"string","default":"#2196f3"},"link":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"DashboardId":{"type":"integer","format":"int32","nullable":true}},"required":["id","title","type","sizeX","sizeY","background","foreground","createdAt","updatedAt"]},"FaxAccount":{"title":"FaxAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"ecm":{"type":"string","enum":["yes","no"],"nullable":true,"default":"yes"},"headerinfo":{"type":"string","nullable":true,"default":"xCALLY Motion Fax"},"localstationid":{"type":"string","nullable":true},"minrate":{"type":"string","enum":["2400","4800","7200","9600","12000","14400"],"nullable":true,"default":"4800"},"maxrate":{"type":"string","enum":["2400","4800","7200","9600","12000","14400"],"nullable":true,"default":"14400"},"modem":{"type":"string","nullable":true,"default":"v17,v27,v29"},"gateway":{"type":"string","nullable":true,"default":"no"},"faxdetect":{"type":"string","nullable":true,"default":"no"},"t38timeout":{"type":"integer","format":"int32","nullable":true,"default":5000},"tech":{"type":"string","enum":["SIP","IAX","DADHI","KHOMP"],"nullable":true,"default":"SIP"},"key":{"type":"string"},"notificationTemplate":{"type":"string","nullable":true},"notificationSound":{"type":"boolean","nullable":true,"default":true},"notificationShake":{"type":"boolean","nullable":true,"default":false},"waitForTheAssignedAgent":{"type":"integer","format":"int32","nullable":true,"default":10},"queueTransfer":{"type":"boolean","nullable":true,"default":false},"queueTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"agentTransfer":{"type":"boolean","nullable":true,"default":false},"agentTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"mandatoryDispositionPauseId":{"type":"integer","format":"int32","nullable":true,"default":null},"mandatoryDisposition":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"TrunkId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","ecm","headerinfo","minrate","maxrate","modem","gateway","faxdetect","t38timeout","tech","key","notificationTemplate","notificationSound","notificationShake","waitForTheAssignedAgent","queueTransfer","queueTransferTimeout","agentTransfer","agentTransferTimeout","mandatoryDispositionPauseId","mandatoryDisposition","createdAt","updatedAt"]},"FaxApplication":{"title":"FaxApplication","type":"object","properties":{"id":{"type":"integer","format":"int32"},"priority":{"type":"integer","format":"int32"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"interval":{"type":"string","nullable":true,"default":"*,*,*,*"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"FaxAccountId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"FaxQueueId":{"type":"integer","format":"int32","nullable":true},"TagId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true}},"required":["id","priority","app","interval","createdAt","updatedAt"]},"FaxInteraction":{"title":"FaxInteraction","type":"object","properties":{"id":{"type":"integer","format":"int32"},"closed":{"type":"boolean","nullable":true,"default":false},"closedAt":{"type":"string","format":"date-time","nullable":true},"disposition":{"type":"string","nullable":true},"secondDisposition":{"type":"string","nullable":true},"thirdDisposition":{"type":"string","nullable":true},"note":{"type":"string","nullable":true},"read1stAt":{"type":"string","format":"date-time","nullable":true},"fax":{"type":"string","nullable":true},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string","format":"date-time","nullable":true},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"FaxAccountId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","closed","firstMsgDirection","lastMsgDirection","createdAt","updatedAt"]},"FaxMessage":{"title":"FaxMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string"},"read":{"type":"boolean","nullable":true,"default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"failMessage":{"type":"string","nullable":true,"default":null},"readAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"FaxAccountId":{"type":"integer","format":"int32","nullable":true},"FaxInteractionId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"AttachmentId":{"type":"integer","format":"int32","nullable":true}},"required":["id","body","read","direction","failMessage","createdAt","updatedAt"]},"FaxQueue":{"title":"FaxQueue","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"timeout":{"type":"integer","format":"int32"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]},"lastAgent":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","timeout","strategy","lastAgent","createdAt","updatedAt"]},"FaxQueueReport":{"title":"FaxQueueReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"from":{"type":"string","nullable":true},"joinAt":{"type":"string","format":"date-time","nullable":true},"leaveAt":{"type":"string","format":"date-time","nullable":true},"acceptAt":{"type":"string","format":"date-time","nullable":true},"exitAt":{"type":"string","format":"date-time","nullable":true},"reason":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"FaxAccountId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"FaxInteractionId":{"type":"integer","format":"int32","nullable":true},"FaxMessageId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"FaxQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","createdAt","updatedAt"]},"SmsAccount":{"title":"SmsAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"key":{"type":"string"},"remote":{"type":"string"},"token":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"type":{"type":"string","enum":["twilio","skebby","connectel","clicksend","plivo","clickatell","csc","infobip","intelepeer"],"nullable":true},"accountSid":{"type":"string","nullable":true},"authId":{"type":"string","nullable":true},"authToken":{"type":"string","nullable":true},"smsMethod":{"type":"string","enum":["SI","TI","GP"],"nullable":true},"username":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"apiKey":{"type":"string","nullable":true},"senderString":{"type":"string","nullable":true},"deliveryReport":{"type":"boolean","nullable":true,"default":false},"description":{"type":"string","nullable":true},"notificationTemplate":{"type":"string","nullable":true},"notificationSound":{"type":"boolean","nullable":true,"default":true},"notificationShake":{"type":"boolean","nullable":true,"default":false},"waitForTheAssignedAgent":{"type":"integer","format":"int32","nullable":true,"default":10},"queueTransfer":{"type":"boolean","nullable":true,"default":false},"queueTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"agentTransfer":{"type":"boolean","nullable":true,"default":false},"agentTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"baseUrl":{"type":"string","nullable":true},"mandatoryDispositionPauseId":{"type":"integer","format":"int32","nullable":true},"mandatoryDisposition":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","key","remote","token","deliveryReport","notificationTemplate","notificationSound","notificationShake","waitForTheAssignedAgent","queueTransfer","queueTransferTimeout","agentTransfer","agentTransferTimeout","mandatoryDisposition","createdAt","updatedAt"]},"SmsApplication":{"title":"SmsApplication","type":"object","properties":{"id":{"type":"integer","format":"int32"},"priority":{"type":"integer","format":"int32"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"interval":{"type":"string","nullable":true,"default":"*,*,*,*"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SmsAccountId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"SmsQueueId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true},"TagId":{"type":"integer","format":"int32","nullable":true}},"required":["id","priority","app","interval","createdAt","updatedAt"]},"SmsInteraction":{"title":"SmsInteraction","type":"object","properties":{"id":{"type":"integer","format":"int32"},"closed":{"type":"boolean","nullable":true,"default":false},"closedAt":{"type":"string","format":"date-time","nullable":true},"disposition":{"type":"string","nullable":true},"secondDisposition":{"type":"string","nullable":true},"thirdDisposition":{"type":"string","nullable":true},"note":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"read1stAt":{"type":"string","format":"date-time","nullable":true},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string","format":"date-time","nullable":true},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"SmsAccountId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","closed","firstMsgDirection","lastMsgDirection","createdAt","updatedAt"]},"SmsMessage":{"title":"SmsMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string"},"read":{"type":"boolean","nullable":true,"default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"messageId":{"type":"string","maxLength":190,"nullable":true},"phone":{"type":"string","nullable":true},"readAt":{"type":"string","format":"date-time","nullable":true},"secret":{"type":"boolean","nullable":true,"default":false},"providerName":{"type":"string","nullable":true},"providerResponse":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SmsAccountId":{"type":"integer","format":"int32","nullable":true},"SmsInteractionId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","body","read","direction","secret","createdAt","updatedAt"]},"SmsQueue":{"title":"SmsQueue","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"timeout":{"type":"integer","format":"int32","nullable":true},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"OpenchannelAccount":{"title":"OpenchannelAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"token":{"type":"string","nullable":true},"replyUri":{"type":"string","nullable":true},"key":{"type":"string"},"notificationTemplate":{"type":"string","nullable":true},"notificationSound":{"type":"boolean","nullable":true,"default":true},"notificationShake":{"type":"boolean","nullable":true,"default":false},"waitForTheAssignedAgent":{"type":"integer","format":"int32","nullable":true,"default":10},"mapKey":{"type":"string","nullable":true},"queueTransfer":{"type":"boolean","nullable":true,"default":false},"queueTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"agentTransfer":{"type":"boolean","nullable":true,"default":false},"agentTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"mandatoryDispositionPauseId":{"type":"integer","format":"int32","nullable":true,"default":null},"mandatoryDisposition":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","token","key","notificationTemplate","notificationSound","notificationShake","waitForTheAssignedAgent","queueTransfer","queueTransferTimeout","agentTransfer","agentTransferTimeout","mandatoryDispositionPauseId","mandatoryDisposition","createdAt","updatedAt"]},"OpenchannelApplication":{"title":"OpenchannelApplication","type":"object","properties":{"id":{"type":"integer","format":"int32"},"priority":{"type":"integer","format":"int32"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"interval":{"type":"string","nullable":true,"default":"*,*,*,*"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"OpenchannelAccountId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"OpenchannelQueueId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true},"TagId":{"type":"integer","format":"int32","nullable":true}},"required":["id","priority","app","interval","createdAt","updatedAt"]},"OpenchannelInteraction":{"title":"OpenchannelInteraction","type":"object","properties":{"id":{"type":"integer","format":"int32"},"closed":{"type":"boolean","nullable":true,"default":false},"closedAt":{"type":"string","format":"date-time","nullable":true},"disposition":{"type":"string","nullable":true},"secondDisposition":{"type":"string","nullable":true},"thirdDisposition":{"type":"string","nullable":true},"note":{"type":"string","nullable":true},"read1stAt":{"type":"string","format":"date-time","nullable":true},"threadId":{"type":"string","nullable":true},"externalUrl":{"type":"string","nullable":true},"lastMsgAt":{"type":"string","format":"date-time","nullable":true},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"from":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"OpenchannelAccountId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","closed","lastMsgDirection","createdAt","updatedAt"]},"OpenchannelMessage":{"title":"OpenchannelMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string"},"read":{"type":"boolean","nullable":true,"default":false},"secret":{"type":"boolean","nullable":true,"default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"readAt":{"type":"string","format":"date-time","nullable":true},"providerName":{"type":"string","nullable":true},"providerResponse":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"OpenchannelAccountId":{"type":"integer","format":"int32","nullable":true},"OpenchannelInteractionId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"AttachmentId":{"type":"integer","format":"int32","nullable":true}},"required":["id","body","read","secret","direction","createdAt","updatedAt"]},"OpenchannelQueue":{"title":"OpenchannelQueue","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"timeout":{"type":"integer","format":"int32","nullable":true},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"ChatWebsite":{"title":"ChatWebsite","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"address":{"type":"string"},"description":{"type":"string","nullable":true},"mapKey":{"type":"string","nullable":true,"default":"email"},"mapKeyOffline":{"type":"string","nullable":true,"default":"email"},"key":{"type":"string"},"agentAlias":{"type":"string","nullable":true,"default":"Agent"},"customerAlias":{"type":"string","nullable":true,"default":"Me"},"color":{"type":"string","default":"#011F6A"},"color_button":{"type":"string","default":"#011F6A"},"textColor":{"type":"string","default":"#ffffff"},"fontSize":{"type":"integer","format":"int32","nullable":true,"default":15},"remote":{"type":"string","nullable":true},"animation":{"type":"boolean","nullable":true,"default":true},"header_shape":{"type":"string","enum":["rounded","squared"],"nullable":true,"default":"rounded"},"header_online":{"type":"string","nullable":true,"default":"We are here!"},"start_chat_button":{"type":"string","nullable":true,"default":"Chat"},"offline_chat_button":{"type":"string","nullable":true,"default":"Send"},"header_offline":{"type":"string","nullable":true,"default":"Contact us"},"download_transcript":{"type":"boolean","nullable":true,"default":true},"timeout":{"type":"integer","format":"int32","nullable":true,"default":0},"whiteLabel":{"type":"string","nullable":true,"default":"Powered by xCALLY"},"defaultWhiteLabel":{"type":"boolean","nullable":true,"default":true},"sitepic":{"type":"string","nullable":true},"closingQuestion":{"type":"string","nullable":true,"default":"Do you want to close the interaction?"},"formSubmitSuccessMessage":{"type":"string","nullable":true,"default":"Form properly submitted"},"formSubmitFailureMessage":{"type":"string","nullable":true,"default":"Form submission error"},"noteTitle":{"type":"string","nullable":true,"default":"Note"},"placeholderMessage":{"type":"string","nullable":true,"default":"Type a message"},"closingMessage":{"type":"string","nullable":true,"default":"Thanks you for your time!"},"closingMessageButton":{"type":"string","nullable":true,"default":"Send"},"skipMessageButton":{"type":"string","nullable":true,"default":"Skip"},"conditionAgreement":{"type":"boolean","nullable":true,"default":false},"enableRating":{"type":"boolean","nullable":true,"default":false},"enableFeedback":{"type":"boolean","nullable":true,"default":false},"enableSendButton":{"type":"boolean","nullable":true,"default":false},"feedbackTitle":{"type":"string","nullable":true,"default":"Feedback"},"ratingType":{"type":"string","enum":["star","thumb"],"nullable":true,"default":"star"},"ratingStarsNumber":{"type":"integer","format":"int32","nullable":true,"default":5},"onlineForm":{"type":"string","nullable":true},"offlineForm":{"type":"string","nullable":true},"token":{"type":"string","nullable":true},"autoclose":{"type":"boolean","nullable":true,"default":true},"enableCustomerWriting":{"type":"boolean","nullable":true,"default":false},"forwardTranscript":{"type":"boolean","nullable":true,"default":false},"forwardTranscriptMessage":{"type":"string","nullable":true},"forwardOffline":{"type":"boolean","nullable":true,"default":false},"forwardOfflineAddress":{"type":"string","nullable":true},"waitingTitle":{"type":"string","nullable":true,"default":"All of our agents are busy at this time. Your chat is very important to us."},"waitingMessage":{"type":"string","nullable":true,"default":"Please hold and we will answer your request as soon as possible."},"offlineMessageSubject":{"type":"string","nullable":true,"default":"New offline message from websiteName"},"offlineMessageBody":{"type":"string","nullable":true,"default":"You received a new offline message from websiteName. Here you can find the details of the request:"},"enableUnmanagedNote":{"type":"boolean","nullable":true,"default":true},"unmanagedMessage":{"type":"string","nullable":true,"default":"Your request has not been processed."},"skipUnmanaged":{"type":"string","nullable":true,"default":"Skip"},"sendUnmanaged":{"type":"string","nullable":true,"default":"Send"},"enableCustomerAttachment":{"type":"boolean","nullable":true,"default":false},"enableCustomerCheckmarks":{"type":"boolean","nullable":true,"default":false},"agentAvatar":{"type":"string","nullable":true},"showAgentAvatar":{"type":"boolean","nullable":true,"default":false},"timezone":{"type":"string","nullable":true},"notificationTemplate":{"type":"string","nullable":true},"notificationSound":{"type":"boolean","nullable":true,"default":true},"notificationShake":{"type":"boolean","nullable":true,"default":false},"hideWhenOffline":{"type":"boolean","nullable":true,"default":false},"agentIdentifier":{"type":"string","nullable":true,"default":"website_alias"},"waitForTheAssignedAgent":{"type":"integer","format":"int32","nullable":true,"default":10},"alignment":{"type":"string","nullable":true,"default":"bottom_right"},"verticalAlignment":{"type":"integer","format":"int32","nullable":true,"default":30},"messagesAlignment":{"type":"string","nullable":true,"default":"alternate"},"defaultTitle":{"type":"string","nullable":true},"customerAvatar":{"type":"string","nullable":true},"showCustomerAvatar":{"type":"boolean","nullable":true,"default":false},"messageFontSize":{"type":"integer","format":"int32","nullable":true,"default":12},"backgroundColor":{"type":"string","default":"#fafafa"},"queueTransfer":{"type":"boolean","nullable":true,"default":false},"queueTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"agentTransfer":{"type":"boolean","nullable":true,"default":false},"agentTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"systemAlias":{"type":"string","nullable":true,"default":"System"},"systemAvatar":{"type":"string","nullable":true},"mandatoryDispositionPauseId":{"type":"integer","format":"int32","nullable":true},"mandatoryDisposition":{"type":"boolean","nullable":true,"default":false},"vidaooEscalation":{"type":"boolean","nullable":true,"default":false},"vidaooApiKey":{"type":"string","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ListId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","address","mapKey","mapKeyOffline","key","agentAlias","customerAlias","color","color_button","textColor","fontSize","animation","header_shape","header_online","start_chat_button","offline_chat_button","header_offline","download_transcript","timeout","whiteLabel","defaultWhiteLabel","closingQuestion","formSubmitSuccessMessage","formSubmitFailureMessage","noteTitle","placeholderMessage","closingMessage","closingMessageButton","skipMessageButton","conditionAgreement","enableRating","enableFeedback","enableSendButton","feedbackTitle","ratingType","ratingStarsNumber","onlineForm","offlineForm","token","autoclose","enableCustomerWriting","forwardTranscript","forwardOffline","waitingTitle","waitingMessage","offlineMessageSubject","offlineMessageBody","enableUnmanagedNote","unmanagedMessage","skipUnmanaged","sendUnmanaged","enableCustomerAttachment","enableCustomerCheckmarks","showAgentAvatar","notificationTemplate","notificationSound","notificationShake","hideWhenOffline","agentIdentifier","waitForTheAssignedAgent","alignment","verticalAlignment","messagesAlignment","showCustomerAvatar","messageFontSize","backgroundColor","queueTransfer","queueTransferTimeout","agentTransfer","agentTransferTimeout","systemAlias","mandatoryDisposition","vidaooEscalation","vidaooApiKey","createdAt","updatedAt"]},"OpenchannelQueueReport":{"title":"OpenchannelQueueReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"from":{"type":"string","nullable":true},"joinAt":{"type":"string","format":"date-time","nullable":true},"leaveAt":{"type":"string","format":"date-time","nullable":true},"acceptAt":{"type":"string","format":"date-time","nullable":true},"exitAt":{"type":"string","format":"date-time","nullable":true},"reason":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"OpenchannelAccountId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"OpenchannelInteractionId":{"type":"integer","format":"int32","nullable":true},"OpenchannelMessageId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"OpenchannelQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","createdAt","updatedAt"]},"ChatApplication":{"title":"ChatApplication","type":"object","properties":{"id":{"type":"integer","format":"int32"},"priority":{"type":"integer","format":"int32"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"interval":{"type":"string","nullable":true,"default":"*,*,*,*"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ChatWebsiteId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"ChatQueueId":{"type":"integer","format":"int32","nullable":true},"TagId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true}},"required":["id","priority","app","interval","createdAt","updatedAt"]},"ChatInteraction":{"title":"ChatInteraction","type":"object","properties":{"id":{"type":"integer","format":"int32"},"closed":{"type":"boolean","nullable":true,"default":false},"ratingValue":{"type":"integer","format":"int32","nullable":true},"ratingType":{"type":"string","enum":["star","thumb"],"nullable":true,"default":"star"},"ratingMessage":{"type":"string","nullable":true},"pathTranscript":{"type":"string","nullable":true},"mailTranscript":{"type":"string","nullable":true},"closedAt":{"type":"string","format":"date-time","nullable":true},"disposition":{"type":"string","nullable":true},"secondDisposition":{"type":"string","nullable":true},"thirdDisposition":{"type":"string","nullable":true},"note":{"type":"string","nullable":true},"browserName":{"type":"string","nullable":true},"browserVersion":{"type":"string","nullable":true},"osName":{"type":"string","nullable":true},"osVersion":{"type":"string","nullable":true},"deviceModel":{"type":"string","nullable":true},"deviceVendor":{"type":"string","nullable":true},"deviceType":{"type":"string","nullable":true},"referer":{"type":"string","nullable":true},"customerIp":{"type":"string","nullable":true},"formData":{"type":"string","nullable":true},"read1stAt":{"type":"string","format":"date-time","nullable":true},"lastMsgAt":{"type":"string","format":"date-time","nullable":true},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"closeReason":{"type":"string","nullable":true},"customerPort":{"type":"string","nullable":true},"vidaooSessionId":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"ChatWebsiteId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","closed","ratingType","lastMsgDirection","createdAt","updatedAt"]},"ChatMessage":{"title":"ChatMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string"},"read":{"type":"boolean","nullable":true,"default":false},"secret":{"type":"boolean","nullable":true,"default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"readAt":{"type":"string","format":"date-time","nullable":true},"providerName":{"type":"string","nullable":true},"providerResponse":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ChatWebsiteId":{"type":"integer","format":"int32","nullable":true},"ChatInteractionId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"AttachmentId":{"type":"integer","format":"int32","nullable":true}},"required":["id","body","read","secret","direction","createdAt","updatedAt"]},"ChatOfflineMessage":{"title":"ChatOfflineMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ContactId":{"type":"integer","format":"int32","nullable":true},"ChatWebsiteId":{"type":"integer","format":"int32","nullable":true}},"required":["id","body","createdAt","updatedAt"]},"ChatQueue":{"title":"ChatQueue","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"timeout":{"type":"integer","format":"int32","nullable":true},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"ChatGroup":{"title":"ChatGroup","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"write":{"type":"boolean","nullable":true,"default":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","write","createdAt","updatedAt"]},"ChatProactiveAction":{"title":"ChatProactiveAction","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"type":{"type":"string","enum":["mouseOver","timeout"],"nullable":true,"default":"mouseOver"},"selector":{"type":"string","nullable":true},"timeout":{"type":"integer","format":"int32","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ChatWebsiteId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","type","createdAt","updatedAt"]},"CmCompany":{"title":"CmCompany","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"vat":{"type":"string","nullable":true},"companyId":{"type":"string","nullable":true},"website":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"fax":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"street":{"type":"string","nullable":true},"postalCode":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"emailDomain":{"type":"string","nullable":true},"sStreet":{"type":"string","nullable":true},"sPostalCode":{"type":"string","nullable":true},"sCity":{"type":"string","nullable":true},"sCountry":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"CmContact":{"title":"CmContact","type":"object","properties":{"id":{"type":"integer","format":"int32"},"firstName":{"type":"string"},"lastName":{"type":"string","nullable":true},"street":{"type":"string","nullable":true},"postalCode":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"dateOfBirth":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"mobile":{"type":"string","nullable":true},"fax":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"url":{"type":"string","nullable":true},"facebook":{"type":"string","nullable":true},"fb_data":{"type":"string","nullable":true},"twitter":{"type":"string","nullable":true},"skype":{"type":"string","nullable":true},"teams":{"type":"string","nullable":true},"viber":{"type":"string","nullable":true},"line":{"type":"string","nullable":true},"wechat":{"type":"string","nullable":true},"telegram":{"type":"string","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"priority":{"type":"integer","format":"int32","nullable":true,"default":2},"scheduledat":{"type":"string","format":"date-time","nullable":true,"default":{}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"CompanyId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","firstName","priority","scheduledat","createdAt","updatedAt"]},"CmHopper":{"title":"CmHopper","type":"object","properties":{"id":{"type":"integer","format":"int32"},"phone":{"type":"string"},"active":{"type":"boolean","nullable":true,"default":false},"scheduledat":{"type":"string","format":"date-time","nullable":true,"default":"2020-12-04 19:45:06"},"countbusyretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countcongestionretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countnoanswerretry":{"type":"integer","format":"int32","nullable":true,"default":0},"callback":{"type":"boolean","nullable":true,"default":false},"callbackuniqueid":{"type":"string","nullable":true,"default":null},"callbackat":{"type":"string","format":"date-time","nullable":true},"priority":{"type":"integer","format":"int32","nullable":true,"default":2},"recallme":{"type":"boolean","nullable":true,"default":false},"ContactId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"VoiceQueueId":{"type":"integer","format":"int32","nullable":true},"CampaignId":{"type":"integer","format":"int32","nullable":true},"countnosuchnumberretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countdropretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countabandonedretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countmachineretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countagentrejectretry":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"OwnerId":{"type":"integer","format":"int32","nullable":true}},"required":["id","phone","active","scheduledat","countbusyretry","countcongestionretry","countnoanswerretry","callback","callbackuniqueid","priority","recallme","countnosuchnumberretry","countdropretry","countabandonedretry","countmachineretry","countagentrejectretry","createdAt","updatedAt"]},"CmHopperBlack":{"title":"CmHopperBlack","type":"object","properties":{"id":{"type":"integer","format":"int32"},"phone":{"type":"string"},"ContactId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"VoiceQueueId":{"type":"integer","format":"int32","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"CampaignId":{"type":"integer","format":"int32","nullable":true}},"required":["id","phone","createdAt","updatedAt"]},"CmHopperFinal":{"title":"CmHopperFinal","type":"object","properties":{"id":{"type":"integer","format":"int32"},"state":{"type":"integer","format":"int32","nullable":true},"statedesc":{"type":"string","nullable":true},"scheduledat":{"type":"string","format":"date-time","nullable":true},"countbusyretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countcongestionretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countnoanswerretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countglobal":{"type":"integer","format":"int32","nullable":true,"default":0},"uniqueid":{"type":"string","nullable":true},"originatecalleridnum":{"type":"string","nullable":true},"originatecalleridname":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"starttime":{"type":"string","format":"date-time","nullable":true},"responsetime":{"type":"string","format":"date-time","nullable":true},"answertime":{"type":"string","format":"date-time","nullable":true},"droptime":{"type":"string","format":"date-time","nullable":true},"endtime":{"type":"string","format":"date-time","nullable":true},"ringtime":{"type":"integer","format":"int32","nullable":true,"default":0},"holdtime":{"type":"integer","format":"int32","nullable":true,"default":0},"talktime":{"type":"integer","format":"int32","nullable":true,"default":0},"followuptime":{"type":"integer","format":"int32","nullable":true,"default":0},"dropreason":{"type":"string","nullable":true},"campaign":{"type":"string","nullable":true},"campaigntype":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"reason":{"type":"string","nullable":true},"disposition":{"type":"string","nullable":true},"secondDisposition":{"type":"string","nullable":true},"thirdDisposition":{"type":"string","nullable":true},"dispositionat":{"type":"string","format":"date-time","nullable":true},"amd":{"type":"boolean","nullable":true,"default":false},"fax":{"type":"boolean","nullable":true,"default":false},"blacklist":{"type":"boolean","nullable":true,"default":false},"rescheduled":{"type":"boolean","nullable":true,"default":false},"rescheduledat":{"type":"string","format":"date-time","nullable":true},"callback":{"type":"boolean","nullable":true,"default":false},"callbackuniqueid":{"type":"string","nullable":true,"default":null},"callbackat":{"type":"string","format":"date-time","nullable":true},"deleted":{"type":"string","nullable":true,"default":null},"deletedat":{"type":"string","format":"date-time","nullable":true},"recallme":{"type":"boolean","nullable":true,"default":false},"agiafterat":{"type":"string","format":"date-time","nullable":true},"countnosuchnumberretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countdropretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countabandonedretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countmachineretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countagentrejectretry":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"VoiceQueueId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"CampaignId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","countbusyretry","countcongestionretry","countnoanswerretry","countglobal","ringtime","holdtime","talktime","followuptime","amd","fax","blacklist","rescheduled","callback","callbackuniqueid","deleted","recallme","countnosuchnumberretry","countdropretry","countabandonedretry","countmachineretry","countagentrejectretry","createdAt","updatedAt"]},"CmHopperHistory":{"title":"CmHopperHistory","type":"object","properties":{"id":{"type":"integer","format":"int32"},"state":{"type":"integer","format":"int32","nullable":true},"statedesc":{"type":"string","nullable":true},"scheduledat":{"type":"string","format":"date-time","nullable":true},"countbusyretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countcongestionretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countnoanswerretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countglobal":{"type":"integer","format":"int32","nullable":true,"default":0},"uniqueid":{"type":"string","nullable":true},"originatecalleridnum":{"type":"string","nullable":true},"originatecalleridname":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"starttime":{"type":"string","format":"date-time","nullable":true},"responsetime":{"type":"string","format":"date-time","nullable":true},"answertime":{"type":"string","format":"date-time","nullable":true},"droptime":{"type":"string","format":"date-time","nullable":true},"endtime":{"type":"string","format":"date-time","nullable":true},"ringtime":{"type":"integer","format":"int32","nullable":true,"default":0},"holdtime":{"type":"integer","format":"int32","nullable":true,"default":0},"talktime":{"type":"integer","format":"int32","nullable":true,"default":0},"followuptime":{"type":"integer","format":"int32","nullable":true,"default":0},"dropreason":{"type":"string","nullable":true},"campaign":{"type":"string","nullable":true},"campaigntype":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"reason":{"type":"string","nullable":true},"amd":{"type":"boolean","nullable":true,"default":false},"fax":{"type":"boolean","nullable":true,"default":false},"callback":{"type":"boolean","nullable":true,"default":false},"callbackuniqueid":{"type":"string","nullable":true,"default":null},"callbackat":{"type":"string","format":"date-time","nullable":true},"recallme":{"type":"boolean","nullable":true,"default":false},"editedat":{"type":"string","format":"date-time","nullable":true},"edited":{"type":"boolean","nullable":true,"default":false},"countnosuchnumberretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countdropretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countabandonedretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countmachineretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countagentrejectretry":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"VoiceQueueId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"CampaignId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","countbusyretry","countcongestionretry","countnoanswerretry","countglobal","ringtime","holdtime","talktime","followuptime","amd","fax","callback","callbackuniqueid","recallme","edited","countnosuchnumberretry","countdropretry","countabandonedretry","countmachineretry","countagentrejectretry","createdAt","updatedAt"]},"ReportAgentPreview":{"title":"ReportAgentPreview","type":"object","properties":{"id":{"type":"integer","format":"int32"},"state":{"type":"integer","format":"int32","nullable":true},"statedesc":{"type":"string","nullable":true},"scheduledat":{"type":"string","format":"date-time","nullable":true},"uniqueid":{"type":"string","nullable":true},"starttime":{"type":"string","format":"date-time","nullable":true},"responsetime":{"type":"string","format":"date-time","nullable":true},"ringtime":{"type":"integer","format":"int32","nullable":true,"default":0},"campaign":{"type":"string","nullable":true},"campaigntype":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"VoiceQueueId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","ringtime","createdAt","updatedAt"]},"CmCustomField":{"title":"CmCustomField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"alias":{"type":"string"},"type":{"type":"string"},"values":{"type":"string","nullable":true},"required":{"type":"boolean","nullable":true,"default":false},"clickToAction":{"type":"boolean","nullable":true,"default":false},"actionType":{"type":"string","enum":["voice"],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","alias","type","required","clickToAction","createdAt","updatedAt"]},"Action":{"title":"Action","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"action":{"type":"string"},"data1":{"type":"string","maxLength":4096,"nullable":true},"data2":{"type":"string","maxLength":4096,"nullable":true},"data3":{"type":"string","maxLength":4096,"nullable":true},"data4":{"type":"string","maxLength":4096,"nullable":true},"data5":{"type":"string","maxLength":4096,"nullable":true},"data6":{"type":"string","nullable":true},"data7":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AutomationId":{"type":"integer","format":"int32","nullable":true},"TriggerId":{"type":"integer","format":"int32","nullable":true}},"required":["id","action","createdAt","updatedAt"]},"Automation":{"title":"Automation","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"channel":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"status":{"type":"boolean","nullable":true,"default":false},"timeout":{"type":"integer","format":"int32","nullable":true,"default":10},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","status","timeout","createdAt","updatedAt"]},"CannedAnswer":{"title":"CannedAnswer","type":"object","properties":{"id":{"type":"integer","format":"int32"},"key":{"type":"string"},"value":{"type":"string"},"description":{"type":"string","nullable":true},"name":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailAccountId":{"type":"integer","format":"int32","nullable":true},"FaxAccountId":{"type":"integer","format":"int32","nullable":true},"SmsAccountId":{"type":"integer","format":"int32","nullable":true},"OpenchannelAccountId":{"type":"integer","format":"int32","nullable":true},"ChatWebsiteId":{"type":"integer","format":"int32","nullable":true},"WhatsappAccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","key","value","createdAt","updatedAt"]},"Disposition":{"title":"Disposition","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"level":{"type":"string","enum":["first","second","third"],"default":"first"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailAccountId":{"type":"integer","format":"int32","nullable":true},"FaxAccountId":{"type":"integer","format":"int32","nullable":true},"SmsAccountId":{"type":"integer","format":"int32","nullable":true},"OpenchannelAccountId":{"type":"integer","format":"int32","nullable":true},"ChatWebsiteId":{"type":"integer","format":"int32","nullable":true},"ParentId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"WhatsappAccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","level","createdAt","updatedAt"]},"Condition":{"title":"Condition","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"field":{"type":"string"},"operator":{"type":"string"},"value":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AutomationAllId":{"type":"integer","format":"int32","nullable":true},"AutomationAnyId":{"type":"integer","format":"int32","nullable":true},"TriggerAllId":{"type":"integer","format":"int32","nullable":true},"TriggerAnyId":{"type":"integer","format":"int32","nullable":true}},"required":["id","field","operator","value","createdAt","updatedAt"]},"Interval":{"title":"Interval","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"interval":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"IntervalId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"Pause":{"title":"Pause","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"Cdr":{"title":"Cdr","type":"object","properties":{"id":{"type":"integer","format":"int32"},"calldate":{"type":"string","format":"date-time","default":"1970-01-01 00:00:01"},"clid":{"type":"string","nullable":true},"src":{"type":"string","nullable":true},"dst":{"type":"string","nullable":true},"dcontext":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"dstchannel":{"type":"string","nullable":true},"lastapp":{"type":"string","nullable":true},"lastdata":{"type":"string","nullable":true},"duration":{"type":"integer","format":"int32","default":0},"billsec":{"type":"integer","format":"int32","default":0},"disposition":{"type":"string","nullable":true},"amaflags":{"type":"integer","format":"int32","default":0},"accountcode":{"type":"string","nullable":true},"userfield":{"type":"string","nullable":true},"uniqueid":{"type":"string","nullable":true},"linkedid":{"type":"string","nullable":true},"sequence":{"type":"string","nullable":true},"peeraccount":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"tag":{"type":"string","nullable":true}},"required":["id","calldate","duration","billsec","amaflags"]},"VoiceQueuesLog":{"title":"VoiceQueuesLog","type":"object","properties":{"id":{"type":"integer","format":"int32"},"time":{"type":"string","nullable":true},"callid":{"type":"string","default":""},"queuename":{"type":"string","default":""},"agent":{"type":"string","default":""},"event":{"type":"string","default":""},"data":{"type":"string","default":""},"data1":{"type":"string","default":""},"data2":{"type":"string","default":""},"data3":{"type":"string","default":""},"data4":{"type":"string","default":""},"data5":{"type":"string","default":""},"dtm":{"type":"string","format":"date-time","default":"2020-12-04 19:45:06"}},"required":["id","callid","queuename","agent","event","data","data1","data2","data3","data4","data5","dtm"]},"Schedule":{"title":"Schedule","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"active":{"type":"boolean","default":false},"cron":{"type":"string","default":"0 0 * * *"},"startAt":{"type":"string","format":"date-time"},"endAt":{"type":"string","format":"date-time"},"subtractNumber":{"type":"integer","format":"int32","default":1},"subtractUnit":{"type":"string","enum":["years","quarters","months","weeks","days","hours","minutes"],"default":"days"},"output":{"type":"string","enum":["csv","pdf","xlsx"],"default":"csv"},"type":{"type":"string","enum":["custom","default"],"default":"custom"},"sendMail":{"type":"boolean","nullable":true,"default":false},"email":{"type":"string","nullable":true},"cc":{"type":"string","nullable":true},"bcc":{"type":"string","nullable":true},"sendIfEmpty":{"type":"boolean","nullable":true,"default":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailAccountId":{"type":"integer","format":"int32","nullable":true},"DefaultReportId":{"type":"integer","format":"int32","nullable":true},"CustomReportId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","active","cron","startAt","endAt","subtractNumber","subtractUnit","output","type","sendMail","sendIfEmpty","createdAt","updatedAt"]},"Sound":{"title":"Sound","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"save_name":{"type":"string","nullable":true},"display_name":{"type":"string","nullable":true,"default":""},"description":{"type":"string","nullable":true},"original_format":{"type":"string","nullable":true},"original_duration":{"type":"number","format":"float","nullable":true},"original_sampleCount":{"type":"integer","format":"int64","nullable":true},"original_channelCount":{"type":"integer","format":"int32","nullable":true},"original_bitRate":{"type":"integer","format":"int64","nullable":true},"original_sampleRate":{"type":"integer","format":"int32","nullable":true},"converted_format":{"type":"string","nullable":true},"converted_duration":{"type":"number","format":"float","nullable":true},"converted_sampleCount":{"type":"integer","format":"int64","nullable":true},"converted_channelCount":{"type":"integer","format":"int32","nullable":true},"converted_bitRate":{"type":"integer","format":"int64","nullable":true},"converted_sampleRate":{"type":"integer","format":"int32","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","display_name","createdAt","updatedAt"]},"Tag":{"title":"Tag","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"color":{"type":"string","nullable":true,"default":"#0091EA"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","color","createdAt","updatedAt"]},"Template":{"title":"Template","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"html":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"Trigger":{"title":"Trigger","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"status":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","status","createdAt","updatedAt"]},"Variable":{"title":"Variable","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"Integration":{"title":"Integration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"version":{"type":"string"},"main":{"type":"string","nullable":true,"default":"app.js"},"filename":{"type":"string","nullable":true},"path":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"size":{"type":"integer","format":"int32","nullable":true},"active":{"type":"boolean","nullable":true,"default":false},"author":{"type":"string","nullable":true},"logo":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"link":{"type":"string","nullable":true,"default":"#"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","version","main","active","link","createdAt","updatedAt"]},"IntegrationReport":{"title":"IntegrationReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"integration":{"type":"string","nullable":true},"eventChannel":{"type":"string","nullable":true},"exitStatus":{"type":"string","nullable":true},"ticketId":{"type":"string","nullable":true},"integrationId":{"type":"integer","format":"int32","nullable":true},"contacts":{"type":"string","nullable":true},"uniqueid":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"queue":{"type":"string","nullable":true},"interface":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"agentcalledAt":{"type":"string","format":"date-time","nullable":true},"agentconnectAt":{"type":"string","format":"date-time","nullable":true},"holdtime":{"type":"integer","format":"int32","nullable":true},"agentcomplete":{"type":"boolean","nullable":true,"default":false},"agentcompleteAt":{"type":"string","format":"date-time","nullable":true},"talktime":{"type":"integer","format":"int32","nullable":true},"agentacw":{"type":"boolean","nullable":true,"default":false},"acwtime":{"type":"integer","format":"int32","nullable":true},"reason":{"type":"string","nullable":true},"agentringnoanswer":{"type":"boolean","nullable":true,"default":false},"agentringnoanswerAt":{"type":"string","format":"date-time","nullable":true},"agentdump":{"type":"boolean","nullable":true,"default":false},"agentdumpAt":{"type":"string","format":"date-time","nullable":true},"lastevent":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"channelstate":{"type":"integer","format":"int32","nullable":true},"channelstatedesc":{"type":"string","nullable":true},"connectedlinenum":{"type":"string","nullable":true},"connectedlinename":{"type":"string","nullable":true},"language":{"type":"string","nullable":true},"accountcode":{"type":"string","nullable":true},"context":{"type":"string","nullable":true},"exten":{"type":"string","nullable":true},"priority":{"type":"string","nullable":true},"destchannel":{"type":"string","nullable":true},"destchannelstate":{"type":"integer","format":"int32","nullable":true},"destchannelstatedesc":{"type":"string","nullable":true},"destcalleridnum":{"type":"string","nullable":true},"destcalleridname":{"type":"string","nullable":true},"destconnectedlinenum":{"type":"string","nullable":true},"destconnectedlinename":{"type":"string","nullable":true},"destlanguage":{"type":"string","nullable":true},"destaccountcode":{"type":"string","nullable":true},"destcontext":{"type":"string","nullable":true},"destexten":{"type":"string","nullable":true},"destpriority":{"type":"string","nullable":true},"destuniqueid":{"type":"string","nullable":true},"messageId":{"type":"string","nullable":true},"inReplyTo":{"type":"string","nullable":true},"subject":{"type":"string","nullable":true},"from":{"type":"string","nullable":true},"to":{"type":"string","nullable":true},"cc":{"type":"string","nullable":true},"attachment":{"type":"string","nullable":true},"html":{"type":"string","nullable":true},"text":{"type":"string","nullable":true},"status":{"type":"string","enum":["SENT","SENDING","RECEIVED","FAILED"],"nullable":true},"url":{"type":"string","nullable":true},"app":{"type":"string","nullable":true},"appdata":{"type":"string","nullable":true},"projectId":{"type":"integer","format":"int32","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","agentcomplete","agentacw","agentringnoanswer","agentdump","createdAt","updatedAt"]},"AnalyticCustomReport":{"title":"AnalyticCustomReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"parent":{"type":"string","nullable":true},"table":{"type":"string","nullable":true},"conditions":{"type":"string","nullable":true},"joins":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["id","name","createdAt","updatedAt"]},"AnalyticDefaultReport":{"title":"AnalyticDefaultReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"parent":{"type":"string","nullable":true},"table":{"type":"string","nullable":true},"conditions":{"type":"string","nullable":true},"joins":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"AnalyticExtractedReport":{"title":"AnalyticExtractedReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"basename":{"type":"string"},"output":{"type":"string","enum":["csv","pdf","xlsx"],"default":"csv"},"savename":{"type":"string"},"startDate":{"type":"string","format":"date-time","nullable":true},"endDate":{"type":"string","format":"date-time","nullable":true},"status":{"type":"string","nullable":true,"default":"Loading"},"type":{"type":"string","enum":["manual","scheduled"],"default":"manual"},"reportId":{"type":"integer","format":"int32","nullable":true},"reportType":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","basename","output","savename","status","type","createdAt","updatedAt"]},"AnalyticMetric":{"title":"AnalyticMetric","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"table":{"type":"string","nullable":true},"metric":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"AnalyticFieldReport":{"title":"AnalyticFieldReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"field":{"type":"string","nullable":true},"alias":{"type":"string","nullable":true},"function":{"type":"string","nullable":true},"format":{"type":"string","nullable":true},"groupBy":{"type":"boolean","nullable":true,"default":false},"orderBy":{"type":"string","nullable":true},"custom":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"CustomReportId":{"type":"integer","format":"int32","nullable":true},"DefaultReportId":{"type":"integer","format":"int32","nullable":true},"MetricId":{"type":"integer","format":"int32","nullable":true}},"required":["id","groupBy","custom","createdAt","updatedAt"]},"AnalyticTreeReport":{"title":"AnalyticTreeReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"tree":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","tree","createdAt","updatedAt"]},"SalesforceAccount":{"title":"SalesforceAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"clientId":{"type":"string","nullable":true},"clientSecret":{"type":"string","nullable":true},"securityToken":{"type":"string","nullable":true},"serverUrl":{"type":"string","nullable":true},"type":{"type":"string","enum":["integrationTab","newTab"],"nullable":true,"default":"integrationTab"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","type","createdAt","updatedAt"]},"SalesforceConfiguration":{"title":"SalesforceConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"ticketType":{"type":"string","enum":["Task","Case"],"nullable":true,"default":"Task"},"moduleSearch":{"type":"string","enum":["contact_lead","contact","lead"],"nullable":true,"default":"contact_lead"},"moduleCreate":{"type":"string","enum":["nothing","contact","lead"],"nullable":true,"default":"lead"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","ticketType","moduleSearch","moduleCreate","createdAt","updatedAt"]},"SalesforceField":{"title":"SalesforceField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","createdAt","updatedAt"]},"SugarcrmAccount":{"title":"SugarcrmAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"serverUrl":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"SugarcrmConfiguration":{"title":"SugarcrmConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"SugarcrmField":{"title":"SugarcrmField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"DeskAccount":{"title":"DeskAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"authType":{"type":"string","enum":["basic"],"nullable":true,"default":"basic"},"password":{"type":"string","nullable":true},"consumerKey":{"type":"string","nullable":true},"consumerSecret":{"type":"string","nullable":true},"token":{"type":"string","nullable":true},"tokenSecret":{"type":"string","nullable":true},"serverUrl":{"type":"string","nullable":true},"type":{"type":"string","enum":["integrationTab","newTab"],"nullable":true,"default":"integrationTab"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","authType","type","createdAt","updatedAt"]},"DeskConfiguration":{"title":"DeskConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"DeskField":{"title":"DeskField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"ZohoAccount":{"title":"ZohoAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"host":{"type":"string","nullable":true},"zone":{"type":"string","nullable":true},"clientId":{"type":"string","nullable":true},"clientSecret":{"type":"string","nullable":true},"serverUrl":{"type":"string","nullable":true},"code":{"type":"string","nullable":true},"refreshToken":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"ZohoConfiguration":{"title":"ZohoConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"moduleCreate":{"type":"string","enum":["lead","contact","nothing"],"nullable":true,"default":"lead"},"moduleSearch":{"type":"string","enum":["contact_lead","contact","lead"],"nullable":true,"default":"contact_lead"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","moduleCreate","moduleSearch","createdAt","updatedAt"]},"ZohoField":{"title":"ZohoField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"ZendeskAccount":{"title":"ZendeskAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"token":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"authType":{"type":"string","enum":["password","token"],"nullable":true,"default":"password"},"serverUrl":{"type":"string","nullable":true},"type":{"type":"string","enum":["integrationTab","newTab"],"nullable":true,"default":"integrationTab"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","authType","type","createdAt","updatedAt"]},"ZendeskConfiguration":{"title":"ZendeskConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"ZendeskField":{"title":"ZendeskField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"FreshdeskAccount":{"title":"FreshdeskAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"apiKey":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"serverUrl":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"FreshdeskConfiguration":{"title":"FreshdeskConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"FreshdeskField":{"title":"FreshdeskField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"VtigerAccount":{"title":"VtigerAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"username":{"type":"string"},"moduleName":{"type":"string","default":"HelpDesk"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string","nullable":true},"accessKey":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","username","moduleName","remoteUri","accessKey","createdAt","updatedAt"]},"VtigerConfiguration":{"title":"VtigerConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"VtigerField":{"title":"VtigerField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"ServicenowAccount":{"title":"ServicenowAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"serverUrl":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"ServicenowConfiguration":{"title":"ServicenowConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"ServicenowField":{"title":"ServicenowField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"Dynamics365Account":{"title":"Dynamics365Account","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"tenantId":{"type":"string","nullable":true},"clientId":{"type":"string","nullable":true},"clientSecret":{"type":"string","nullable":true},"serverUrl":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"Dynamics365Configuration":{"title":"Dynamics365Configuration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"ticketType":{"type":"string","enum":["incident","phonecall"],"nullable":true,"default":"incident"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","ticketType","createdAt","updatedAt"]},"Dynamics365Field":{"title":"Dynamics365Field","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"FreshsalesAccount":{"title":"FreshsalesAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"apiKey":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"serverUrl":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"FreshsalesConfiguration":{"title":"FreshsalesConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"FreshsalesField":{"title":"FreshsalesField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"Network":{"title":"Network","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["localnet","externip","stun","turn"],"nullable":true},"value":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"ChatQueueReport":{"title":"ChatQueueReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"from":{"type":"string","nullable":true},"joinAt":{"type":"string","format":"date-time","nullable":true},"leaveAt":{"type":"string","format":"date-time","nullable":true},"acceptAt":{"type":"string","format":"date-time","nullable":true},"exitAt":{"type":"string","format":"date-time","nullable":true},"reason":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ChatWebsiteId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"ChatInteractionId":{"type":"integer","format":"int32","nullable":true},"ChatMessageId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"ChatQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","createdAt","updatedAt"]},"ChatInternalMessage":{"title":"ChatInternalMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string"},"read":{"type":"boolean","nullable":true,"default":false},"ChatInternalMessageId":{"type":"integer","format":"int32","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ChatGroupId":{"type":"integer","format":"int32","nullable":true},"FromId":{"type":"integer","format":"int32","nullable":true},"ToId":{"type":"integer","format":"int32","nullable":true}},"required":["id","body","read","createdAt","updatedAt"]},"JscriptyAnswerReport":{"title":"JscriptyAnswerReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"question":{"type":"string","nullable":true},"answer":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"projectname":{"type":"string","nullable":true},"queue":{"type":"string","nullable":true},"uniqueid":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"questionId":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SessionId":{"type":"integer","format":"int32","nullable":true},"ProjectId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"JscriptyQuestionReport":{"title":"JscriptyQuestionReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"question":{"type":"string","nullable":true},"answer":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"projectname":{"type":"string","nullable":true},"queue":{"type":"string","nullable":true},"uniqueid":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"questionId":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SessionId":{"type":"integer","format":"int32","nullable":true},"ProjectId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"JscriptySessionReport":{"title":"JscriptySessionReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"starttime":{"type":"string","format":"date-time","nullable":true},"endtime":{"type":"string","format":"date-time","nullable":true},"membername":{"type":"string","nullable":true},"projectname":{"type":"string","nullable":true},"queue":{"type":"string","nullable":true},"uniqueid":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"completed":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"VoiceQueueId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"ProjectId":{"type":"integer","format":"int32","nullable":true}},"required":["id","completed","createdAt","updatedAt"]},"SmsQueueReport":{"title":"SmsQueueReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"from":{"type":"string","nullable":true},"joinAt":{"type":"string","format":"date-time","nullable":true},"leaveAt":{"type":"string","format":"date-time","nullable":true},"acceptAt":{"type":"string","format":"date-time","nullable":true},"exitAt":{"type":"string","format":"date-time","nullable":true},"reason":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SmsAccountId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"SmsInteractionId":{"type":"integer","format":"int32","nullable":true},"SmsMessageId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"SmsQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","createdAt","updatedAt"]},"SquareReport":{"title":"SquareReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"network":{"type":"string","nullable":true},"network_script":{"type":"string","nullable":true},"request":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"language":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"uniqueid":{"type":"string","nullable":true},"version":{"type":"string","nullable":true},"callerid":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"callingpres":{"type":"string","nullable":true},"callingani2":{"type":"string","nullable":true},"callington":{"type":"string","nullable":true},"callingtns":{"type":"string","nullable":true},"dnid":{"type":"string","nullable":true},"rdnis":{"type":"string","nullable":true},"context":{"type":"string","nullable":true},"extension":{"type":"string","nullable":true},"priority":{"type":"string","nullable":true},"enhanced":{"type":"string","nullable":true},"accountcode":{"type":"string","nullable":true},"threadid":{"type":"string","nullable":true},"project_name":{"type":"string","nullable":true},"joinAt":{"type":"string","format":"date-time","nullable":true},"leaveAt":{"type":"string","format":"date-time","nullable":true},"bot":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","bot","createdAt","updatedAt"]},"SquareDetailsReport":{"title":"SquareDetailsReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string","nullable":true},"node":{"type":"string","nullable":true},"application":{"type":"string","nullable":true},"data":{"type":"string","nullable":true},"project_name":{"type":"string","nullable":true},"callerid":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"JscriptyProject":{"title":"JscriptyProject","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"formData":{"type":"string","nullable":true},"enableUncompleteSave":{"type":"boolean","nullable":true,"default":true},"sendUnpauseOnSubmit":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","enableUncompleteSave","sendUnpauseOnSubmit","createdAt","updatedAt"]},"Setting":{"title":"Setting","type":"object","properties":{"id":{"type":"integer","format":"int32"},"min_internal":{"type":"integer","format":"int32","nullable":true,"default":1000},"min_mailbox":{"type":"integer","format":"int32","nullable":true,"default":1000},"agi_port":{"type":"integer","format":"int32","nullable":true,"default":4573},"soundPath":{"type":"string","nullable":true,"default":"/var/opt/motion2/server/files/sounds/converted"},"logo":{"type":"string","nullable":true},"defaultLogo":{"type":"boolean","nullable":true,"default":true},"loginLogo":{"type":"string","nullable":true},"defaultLoginLogo":{"type":"boolean","nullable":true,"default":true},"headerWhiteLabel":{"type":"string","nullable":true},"defaultHeaderWhiteLabel":{"type":"boolean","nullable":true,"default":true},"securePassword":{"type":"boolean","nullable":true,"default":true},"firstSetup":{"type":"boolean","nullable":true,"default":true},"stunaddr":{"type":"string","nullable":true},"turnaddr":{"type":"string","nullable":true},"turnusername":{"type":"string","nullable":true},"turnpassword":{"type":"string","nullable":true},"pageTitle":{"type":"string","nullable":true},"defaultPageTitle":{"type":"boolean","nullable":true,"default":true},"callRecordingEncryption":{"type":"boolean","nullable":true,"default":false},"passwordExpiresDays":{"type":"integer","format":"int32","nullable":true,"default":90},"phoneBarAutoUpdater":{"type":"boolean","nullable":true,"default":true},"phoneBarAutoUpdaterUrl":{"type":"string","nullable":true,"default":"https://www.xcally.com/bar/phonebar/autoupdater.xml"},"enableEmailPreview":{"type":"boolean","nullable":true,"default":false},"split":{"type":"boolean","nullable":true,"default":true},"splitSizeCsv":{"type":"integer","format":"int32","nullable":true,"default":5000},"splitSizePdf":{"type":"integer","format":"int32","nullable":true,"default":5000},"splitSizeXlsx":{"type":"integer","format":"int32","nullable":true,"default":5000},"messagesAlignment":{"type":"string","nullable":true,"default":"alternate"},"chatTimeout":{"type":"integer","format":"int32","nullable":true,"default":30},"phoneBarRememberMeEnabled":{"type":"boolean","nullable":true,"default":true},"preferred":{"type":"string","nullable":true},"defaultPreferred":{"type":"boolean","nullable":true,"default":true},"rtlSupport":{"type":"boolean","nullable":true,"default":false},"defaultScreenRecordingPath":{"type":"string","nullable":true},"allowedLoginAttempts":{"type":"integer","format":"int32","nullable":true,"default":5},"blockDuration":{"type":"integer","format":"int32","nullable":true,"default":10},"favicon":{"type":"string","nullable":true},"defaultFavicon":{"type":"boolean","nullable":true,"default":true},"loginMailFrequency":{"type":"integer","format":"int32","nullable":true,"default":10},"transcribe":{"type":"boolean","nullable":true,"default":false},"automaticTranscribe":{"type":"boolean","nullable":true,"default":false},"transcribeAccountId":{"type":"integer","format":"int32","nullable":true},"transcribeRegion":{"type":"string","nullable":true},"sentiment":{"type":"boolean","nullable":true,"default":false},"automaticSentiment":{"type":"boolean","nullable":true,"default":false},"sentimentAccountId":{"type":"integer","format":"int32","nullable":true},"sentimentRegion":{"type":"string","nullable":true},"language":{"type":"string","nullable":true},"bucket":{"type":"string","nullable":true},"googleSsoEnabled":{"type":"boolean","nullable":true,"default":false},"enforcePasswordHistory":{"type":"boolean","nullable":true,"default":true},"passwordHistoryLimit":{"type":"integer","format":"int32","nullable":true,"default":3},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","min_internal","min_mailbox","agi_port","soundPath","defaultLogo","defaultLoginLogo","defaultHeaderWhiteLabel","securePassword","firstSetup","defaultPageTitle","callRecordingEncryption","passwordExpiresDays","phoneBarAutoUpdater","phoneBarAutoUpdaterUrl","enableEmailPreview","split","splitSizeCsv","splitSizePdf","splitSizeXlsx","messagesAlignment","chatTimeout","phoneBarRememberMeEnabled","defaultPreferred","rtlSupport","allowedLoginAttempts","blockDuration","defaultFavicon","loginMailFrequency","transcribe","automaticTranscribe","sentiment","automaticSentiment","googleSsoEnabled","enforcePasswordHistory","passwordHistoryLimit","createdAt","updatedAt"]},"SquareOdbc":{"title":"SquareOdbc","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"dsn":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"SquareProject":{"title":"SquareProject","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"notes":{"type":"string","nullable":true},"preproduction":{"type":"string","format":"byte","nullable":true},"production":{"type":"string","format":"byte","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"SquareRecording":{"title":"SquareRecording","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string","nullable":true},"callerid":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"context":{"type":"string","nullable":true},"extension":{"type":"string","nullable":true},"priority":{"type":"string","nullable":true},"accountcode":{"type":"string","nullable":true},"dnid":{"type":"string","nullable":true},"projectName":{"type":"string","nullable":true},"saveName":{"type":"string","nullable":true},"filename":{"type":"string","nullable":true},"savePath":{"type":"string","nullable":true},"format":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"SquareMessage":{"title":"SquareMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string","nullable":true},"body":{"type":"string"},"direction":{"type":"string","enum":["in","out"],"default":"out"},"providerName":{"type":"string","nullable":true},"providerResponse":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","body","direction","createdAt","updatedAt"]},"Team":{"title":"Team","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"License":{"title":"License","type":"object","properties":{"id":{"type":"integer","format":"int32"},"license":{"type":"string","nullable":true},"data1":{"type":"string","nullable":true},"data2":{"type":"string","nullable":true},"chatLicenseExceeded":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","chatLicenseExceeded","createdAt","updatedAt"]},"Campaign":{"title":"Campaign","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"type":{"type":"string","enum":["ivr"],"default":"ivr"},"description":{"type":"string","nullable":true},"active":{"type":"boolean","nullable":true,"default":0},"limitCalls":{"type":"integer","format":"int32","nullable":true,"default":30},"dialOriginateCallerIdName":{"type":"string","nullable":true},"dialOriginateCallerIdNumber":{"type":"string","nullable":true},"dialOriginateTimeout":{"type":"integer","format":"int32","nullable":true,"default":30},"dialCongestionMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialCongestionRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialBusyMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialBusyRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialNoAnswerMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialNoAnswerRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialGlobalMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":4},"dialTimezone":{"type":"string","nullable":true,"default":null},"dialGlobalInterval":{"type":"string","nullable":true,"default":"07:00-22:00,*,*,*"},"dialCheckDuplicateType":{"type":"string","enum":["always","never","onlyIfOpen"],"nullable":true,"default":"always"},"dialAMDActive":{"type":"boolean","nullable":true,"default":0},"dialAMDInitialSilence":{"type":"integer","format":"int32","nullable":true,"default":2500},"dialAMDGreeting":{"type":"integer","format":"int32","nullable":true,"default":1500},"dialAMDAfterGreetingSilence":{"type":"integer","format":"int32","nullable":true,"default":800},"dialAMDTotalAnalysisTime":{"type":"integer","format":"int32","nullable":true,"default":5000},"dialAMDMinWordLength":{"type":"integer","format":"int32","nullable":true,"default":100},"dialAMDBetweenWordsSilence":{"type":"integer","format":"int32","nullable":true,"default":50},"dialAMDMaximumNumberOfWords":{"type":"integer","format":"int32","nullable":true,"default":3},"dialAMDSilenceThreshold":{"type":"integer","format":"int32","nullable":true,"default":256},"dialAMDMaximumWordLength":{"type":"integer","format":"int32","nullable":true,"default":5000},"dialOrderByScheduledAt":{"type":"string","enum":["DESC","ASC"],"nullable":true,"default":"DESC"},"dialPrefix":{"type":"string","nullable":true,"default":null},"dialRandomLastDigitCallerIdNumber":{"type":"integer","format":"int32","nullable":true,"default":0},"dialCutDigit":{"type":"integer","format":"int32","nullable":true,"default":0},"dialNoSuchNumberMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialNoSuchNumberRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialDropMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialDropRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialAbandonedMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialAbandonedRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialMachineMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialMachineRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialAgentRejectMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialAgentRejectRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"TrunkId":{"type":"integer","format":"int32","nullable":true},"TrunkBackupId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true},"SquareProjectId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","type","active","limitCalls","dialOriginateTimeout","dialCongestionMaxRetry","dialCongestionRetryFrequency","dialBusyMaxRetry","dialBusyRetryFrequency","dialNoAnswerMaxRetry","dialNoAnswerRetryFrequency","dialGlobalMaxRetry","dialTimezone","dialGlobalInterval","dialCheckDuplicateType","dialAMDActive","dialAMDInitialSilence","dialAMDGreeting","dialAMDAfterGreetingSilence","dialAMDTotalAnalysisTime","dialAMDMinWordLength","dialAMDBetweenWordsSilence","dialAMDMaximumNumberOfWords","dialAMDSilenceThreshold","dialAMDMaximumWordLength","dialOrderByScheduledAt","dialPrefix","dialRandomLastDigitCallerIdNumber","dialCutDigit","dialNoSuchNumberMaxRetry","dialNoSuchNumberRetryFrequency","dialDropMaxRetry","dialDropRetryFrequency","dialAbandonedMaxRetry","dialAbandonedRetryFrequency","dialMachineMaxRetry","dialMachineRetryFrequency","dialAgentRejectMaxRetry","dialAgentRejectRetryFrequency","createdAt","updatedAt"]},"Migration":{"title":"Migration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"version":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"Attachment":{"title":"Attachment","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"basename":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailMessageId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"Plugin":{"title":"Plugin","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"type":{"type":"string","enum":["html","script"],"nullable":true},"description":{"type":"string","nullable":true},"version":{"type":"string","nullable":true},"path":{"type":"string","nullable":true},"active":{"type":"boolean","nullable":true,"default":0},"sidebar":{"type":"string","enum":["adminOnly","agentOnly","always","never"],"nullable":true,"default":"always"},"icon":{"type":"string","nullable":true},"adminUrl":{"type":"string","nullable":true},"agentUrl":{"type":"string","nullable":true},"scriptName":{"type":"string","nullable":true},"scriptPath":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","active","sidebar","createdAt","updatedAt"]},"MailTransferReport":{"title":"MailTransferReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","format":"date-time","default":{}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailMessageId":{"type":"integer","format":"int32","nullable":true},"MailInteractionId":{"type":"integer","format":"int32","nullable":true},"FromMailAccountId":{"type":"integer","format":"int32","nullable":true},"FromUserId":{"type":"integer","format":"int32","nullable":true},"ToUserId":{"type":"integer","format":"int32","nullable":true},"ToMailQueueId":{"type":"integer","format":"int32","nullable":true},"ToMailAccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","type","transferredAt","createdAt","updatedAt"]},"ChatTransferReport":{"title":"ChatTransferReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","format":"date-time","default":{}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ChatMessageId":{"type":"integer","format":"int32","nullable":true},"ChatInteractionId":{"type":"integer","format":"int32","nullable":true},"FromChatWebsiteId":{"type":"integer","format":"int32","nullable":true},"FromUserId":{"type":"integer","format":"int32","nullable":true},"ToUserId":{"type":"integer","format":"int32","nullable":true},"ToChatQueueId":{"type":"integer","format":"int32","nullable":true},"ToChatWebsiteId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","type","transferredAt","createdAt","updatedAt"]},"FaxTransferReport":{"title":"FaxTransferReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","format":"date-time","default":{}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"FaxMessageId":{"type":"integer","format":"int32","nullable":true},"FaxInteractionId":{"type":"integer","format":"int32","nullable":true},"FromFaxAccountId":{"type":"integer","format":"int32","nullable":true},"FromUserId":{"type":"integer","format":"int32","nullable":true},"ToUserId":{"type":"integer","format":"int32","nullable":true},"ToFaxQueueId":{"type":"integer","format":"int32","nullable":true},"ToFaxAccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","type","transferredAt","createdAt","updatedAt"]},"OpenchannelTransferReport":{"title":"OpenchannelTransferReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","format":"date-time","default":{}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"OpenchannelMessageId":{"type":"integer","format":"int32","nullable":true},"OpenchannelInteractionId":{"type":"integer","format":"int32","nullable":true},"FromOpenchannelAccountId":{"type":"integer","format":"int32","nullable":true},"FromUserId":{"type":"integer","format":"int32","nullable":true},"ToUserId":{"type":"integer","format":"int32","nullable":true},"ToOpenchannelQueueId":{"type":"integer","format":"int32","nullable":true},"ToOpenchannelAccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","type","transferredAt","createdAt","updatedAt"]},"SmsTransferReport":{"title":"SmsTransferReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","format":"date-time","default":{}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SmsMessageId":{"type":"integer","format":"int32","nullable":true},"SmsInteractionId":{"type":"integer","format":"int32","nullable":true},"FromSmsAccountId":{"type":"integer","format":"int32","nullable":true},"FromUserId":{"type":"integer","format":"int32","nullable":true},"ToUserId":{"type":"integer","format":"int32","nullable":true},"ToSmsQueueId":{"type":"integer","format":"int32","nullable":true},"ToSmsAccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","type","transferredAt","createdAt","updatedAt"]},"CmList":{"title":"CmList","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"dialPrefix":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"VoicePrefix":{"title":"VoicePrefix","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"prefix":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"description":{"type":"string","nullable":true},"callerIdAll":{"type":"string","nullable":true},"VoiceExtensionId":{"type":"integer","format":"int32","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"UserProfile":{"title":"UserProfile","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"crudPermissions":{"type":"string","default":"r"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","crudPermissions","createdAt","updatedAt"]},"UserProfileSection":{"title":"UserProfileSection","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"category":{"type":"string"},"sectionId":{"type":"integer","format":"int32"},"enabled":{"type":"boolean","nullable":true,"default":null},"autoAssociation":{"type":"boolean","nullable":true,"default":null},"crudPermissions":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userProfileId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","category","sectionId","enabled","autoAssociation","createdAt","updatedAt"]},"UserProfileResource":{"title":"UserProfileResource","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"resourceId":{"type":"integer","format":"int32"},"type":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"sectionId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","resourceId","type","createdAt","updatedAt"]},"Notification":{"title":"Notification","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string","nullable":true},"senderName":{"type":"string","nullable":true},"recipientsId":{"type":"string","nullable":true},"recipientsDescription":{"type":"string","nullable":true},"beep":{"type":"boolean","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SenderId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"WhatsappAccount":{"title":"WhatsappAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"key":{"type":"string"},"remote":{"type":"string"},"token":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"type":{"type":"string","enum":["twilio"],"nullable":true},"accountSid":{"type":"string","nullable":true},"authToken":{"type":"string","nullable":true},"notificationTemplate":{"type":"string","nullable":true},"notificationSound":{"type":"boolean","nullable":true,"default":false},"notificationShake":{"type":"boolean","nullable":true,"default":false},"waitForTheAssignedAgent":{"type":"integer","format":"int32","nullable":true,"default":10},"queueTransfer":{"type":"boolean","nullable":true,"default":false},"queueTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"agentTransfer":{"type":"boolean","nullable":true,"default":false},"agentTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"mandatoryDispositionPauseId":{"type":"integer","format":"int32","nullable":true},"mandatoryDisposition":{"type":"boolean","nullable":true,"default":false},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","key","remote","token","notificationTemplate","notificationSound","notificationShake","waitForTheAssignedAgent","queueTransfer","queueTransferTimeout","agentTransfer","agentTransferTimeout","mandatoryDisposition","createdAt","updatedAt"]},"WhatsappApplication":{"title":"WhatsappApplication","type":"object","properties":{"id":{"type":"integer","format":"int32"},"priority":{"type":"integer","format":"int32"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"interval":{"type":"string","nullable":true,"default":"*,*,*,*"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"WhatsappAccountId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"WhatsappQueueId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true},"TagId":{"type":"integer","format":"int32","nullable":true}},"required":["id","priority","app","interval","createdAt","updatedAt"]},"WhatsappInteraction":{"title":"WhatsappInteraction","type":"object","properties":{"id":{"type":"integer","format":"int32"},"closed":{"type":"boolean","nullable":true,"default":false},"closedAt":{"type":"string","format":"date-time","nullable":true},"disposition":{"type":"string","nullable":true},"secondDisposition":{"type":"string","nullable":true},"thirdDisposition":{"type":"string","nullable":true},"note":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"read1stAt":{"type":"string","format":"date-time","nullable":true},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string","format":"date-time","nullable":true},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"WhatsappAccountId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","closed","firstMsgDirection","lastMsgDirection","createdAt","updatedAt"]},"WhatsappMessage":{"title":"WhatsappMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string"},"read":{"type":"boolean","nullable":true,"default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"messageId":{"type":"string","maxLength":190,"nullable":true},"phone":{"type":"string","nullable":true},"readAt":{"type":"string","format":"date-time","nullable":true},"secret":{"type":"boolean","nullable":true,"default":false},"providerName":{"type":"string","nullable":true},"providerResponse":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"WhatsappAccountId":{"type":"integer","format":"int32","nullable":true},"WhatsappInteractionId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","body","read","direction","secret","createdAt","updatedAt"]},"WhatsappQueueReport":{"title":"WhatsappQueueReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"from":{"type":"string","nullable":true},"joinAt":{"type":"string","format":"date-time","nullable":true},"leaveAt":{"type":"string","format":"date-time","nullable":true},"acceptAt":{"type":"string","format":"date-time","nullable":true},"exitAt":{"type":"string","format":"date-time","nullable":true},"reason":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"WhatsappAccountId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"WhatsappInteractionId":{"type":"integer","format":"int32","nullable":true},"WhatsappQueueId":{"type":"integer","format":"int32","nullable":true},"WhatsappMessageId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","createdAt","updatedAt"]},"WhatsappTransferReport":{"title":"WhatsappTransferReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"]},"transferredAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"WhatsappMessageId":{"type":"integer","format":"int32","nullable":true},"WhatsappInteractionId":{"type":"integer","format":"int32","nullable":true},"FromWhatsappAccountId":{"type":"integer","format":"int32","nullable":true},"ToWhatsappAccountId":{"type":"integer","format":"int32","nullable":true},"ToQueueId":{"type":"integer","format":"int32","nullable":true},"FromUserId":{"type":"integer","format":"int32","nullable":true},"ToUserId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","type","createdAt","updatedAt"]},"WhatsappQueue":{"title":"WhatsappQueue","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"timeout":{"type":"integer","format":"int32","nullable":true},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"],"nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"CloudProvider":{"title":"CloudProvider","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"service":{"type":"string","enum":["AmazonAWS","Google"]},"data1":{"type":"string","nullable":true},"data2":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","service","createdAt","updatedAt"]}}},"tags":[]} +{"openapi":"3.0.3","info":{"title":"XCally Motion API","description":"OpenAPI document for XCally Motion API","termsOfService":"http://xcally.com/terms/","contact":{"name":"API Support","url":"http://www.xcally.com/support","email":"support@xcally.com"},"license":{"name":"XCally EULA","url":"http://xcally.com/eula/"},"version":"3.0.0.alpha"},"servers":[{"url":"http://localhost:9000/api","description":"Localhost instance"}],"paths":{"/actions/{id}":{"put":{"summary":"Update an existing Action","security":[{"BearerAuth":[]}],"operationId":"updateActionById","tags":["Actions"],"requestBody":{"required":true,"description":"data for updating a new Action","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"action":{"type":"string","description":"Allowed values: contactManager, integration, motionbar, jscripty, urlForward, browser, bot, script"},"data1":{"type":"string","description":"contactManager[ListId], integration[intName(zendesk)], motionbar[Popup(0),URL(1),WinApp(2)], urlForward[GET,POST], browser[TemplateId(0),URL(1)]"},"data2":{"type":"string","description":"integration[AccountId], motionbar[TemplateId,URL,WinAppPath], urlForward[URL]"},"data3":{"type":"string","description":"motionbar[NULL,NULL,WinAppArguments]"},"data4":{"type":"string"},"data5":{"type":"string"},"data6":{"type":"string"},"data7":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Action to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Action not found"}}}},"/actions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Action","security":[{"BearerAuth":[]}],"operationId":"deleteActionById","tags":["Actions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Action to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Action not found"}}}},"/analytics/custom_reports":{"get":{"summary":"Gets a list of Analytic Custom Reports","security":[{"BearerAuth":[]}],"operationId":"listAllAnalyticCustomReport","tags":["Analytic Custom Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each AnalyticCustomReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Analytic Custom Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticCustomReport"}}}}},"206":{"description":"Partial (paged) collection of Analytic Custom Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticCustomReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Analytic Custom Report","security":[{"BearerAuth":[]}],"operationId":"createAnalyticCustomReport","tags":["Analytic Custom Reports"],"requestBody":{"required":true,"description":"data for creating a new Analytic Custom Report","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parent":{"type":"string"},"table":{"type":"string"},"conditions":{"type":"string"},"joins":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"AnalyticCustomReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticCustomReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/analytics/custom_reports/{id}":{"get":{"summary":"Gets a single Analytic Custom Report","security":[{"BearerAuth":[]}],"operationId":"getAnalyticCustomReportById","tags":["Analytic Custom Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticCustomReport to get"}],"responses":{"200":{"description":"AnalyticCustomReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticCustomReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticCustomReport not found"}}},"put":{"summary":"Update an existing Analytic Custom Report","security":[{"BearerAuth":[]}],"operationId":"updateAnalyticCustomReportById","tags":["Analytic Custom Reports"],"requestBody":{"required":true,"description":"data for updating a new Analytic Custom Report","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parent":{"type":"string"},"table":{"type":"string"},"conditions":{"type":"string"},"joins":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticCustomReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticCustomReport not found"}}}},"/analytics/custom_reports/{id}/preview":{"get":{"summary":"Report Preview","security":[{"BearerAuth":[]}],"operationId":"preview","tags":["Analytic Custom Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticCustomReport"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/analytics/custom_reports/{id}/run":{"get":{"summary":"Report Run","security":[{"BearerAuth":[]}],"operationId":"run","tags":["Analytic Custom Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticCustomReport"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/analytics/custom_reports/{id}/query":{"get":{"summary":"Report Query SQL","security":[{"BearerAuth":[]}],"operationId":"query","tags":["Analytic Custom Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticCustomReport"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/analytics/custom_reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Analytic Custom Report","security":[{"BearerAuth":[]}],"operationId":"deleteAnalyticCustomReportById","tags":["Analytic Custom Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticCustomReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticCustomReport not found"}}}},"/analytics/default_reports":{"get":{"summary":"Gets a list of Analytic Default Reports","security":[{"BearerAuth":[]}],"operationId":"listAllAnalyticDefaultReport","tags":["Analytic Default Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each AnalyticDefaultReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Analytic Default Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticDefaultReport"}}}}},"206":{"description":"Partial (paged) collection of Analytic Default Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticDefaultReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Analytic Default Report","security":[{"BearerAuth":[]}],"operationId":"createAnalyticDefaultReport","tags":["Analytic Default Reports"],"requestBody":{"required":true,"description":"data for creating a new Analytic Default Report","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parent":{"type":"string"},"table":{"type":"string"},"conditions":{"type":"string"},"joins":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"AnalyticDefaultReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticDefaultReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/analytics/default_reports/{id}":{"get":{"summary":"Gets a single Analytic Default Report","security":[{"BearerAuth":[]}],"operationId":"getAnalyticDefaultReportById","tags":["Analytic Default Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticDefaultReport to get"}],"responses":{"200":{"description":"AnalyticDefaultReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticDefaultReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticDefaultReport not found"}}},"put":{"summary":"Update an existing Analytic Default Report","security":[{"BearerAuth":[]}],"operationId":"updateAnalyticDefaultReportById","tags":["Analytic Default Reports"],"requestBody":{"required":true,"description":"data for updating a new Analytic Default Report","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parent":{"type":"string"},"table":{"type":"string"},"conditions":{"type":"string"},"joins":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticDefaultReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticDefaultReport not found"}}}},"/analytics/default_reports/{id}/preview":{"get":{"summary":"Report Preview","security":[{"BearerAuth":[]}],"operationId":"preview","tags":["Analytic Default Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticDefaultReport"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/analytics/default_reports/{id}/run":{"get":{"summary":"Report Run","security":[{"BearerAuth":[]}],"operationId":"run","tags":["Analytic Default Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticDefaultReport"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/analytics/default_reports/{id}/query":{"get":{"summary":"Report Query SQL","security":[{"BearerAuth":[]}],"operationId":"query","tags":["Analytic Default Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticDefaultReport"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/analytics/default_reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Analytic Default Report","security":[{"BearerAuth":[]}],"operationId":"deleteAnalyticDefaultReportById","tags":["Analytic Default Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticDefaultReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticDefaultReport not found"}}}},"/analytics/extracted_reports":{"get":{"summary":"Gets a list of Analytic Extacted Reports","security":[{"BearerAuth":[]}],"operationId":"listAllAnalyticExtractedReport","tags":["Analytic Extracted Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each AnalyticExtractedReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Analytic Extacted Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticExtractedReport"}}}}},"206":{"description":"Partial (paged) collection of Analytic Extacted Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticExtractedReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Analytic Extracted Report","security":[{"BearerAuth":[]}],"operationId":"createAnalyticExtractedReport","tags":["Analytic Extracted Reports"],"requestBody":{"required":true,"description":"data for creating a new Analytic Extracted Report","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"basename":{"type":"string"},"output":{"type":"string","enum":["csv","pdf","xlsx"],"default":"csv"},"savename":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"},"status":{"type":"string","default":"Loading"},"type":{"type":"string","enum":["manual","scheduled"],"default":"manual"},"reportId":{"type":"integer"},"reportType":{"type":"string"}},"required":["name","basename","output","savename","type"]}}}},"responses":{"201":{"description":"AnalyticExtractedReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticExtractedReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/analytics/extracted_reports/{id}":{"get":{"summary":"Gets a single Analytic Extracted Report","security":[{"BearerAuth":[]}],"operationId":"getAnalyticExtractedReportById","tags":["Analytic Extracted Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticExtractedReport to get"}],"responses":{"200":{"description":"AnalyticExtractedReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticExtractedReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticExtractedReport not found"}}},"put":{"summary":"Update an existing Analytic Extracted Report","security":[{"BearerAuth":[]}],"operationId":"updateAnalyticExtractedReportById","tags":["Analytic Extracted Reports"],"requestBody":{"required":true,"description":"data for updating a new Analytic Extracted Report","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"basename":{"type":"string"},"output":{"type":"string","enum":["csv","pdf","xlsx"],"default":"csv"},"savename":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"},"status":{"type":"string","default":"Loading"},"type":{"type":"string","enum":["manual","scheduled"],"default":"manual"},"reportId":{"type":"integer"},"reportType":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticExtractedReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticExtractedReport not found"}}}},"/analytics/extracted_reports/{id}/download":{"get":{"summary":"Download Extracted Report","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Analytic Extracted Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticExtractedReport"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/analytics/extracted_reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Analytic Extracted Report","security":[{"BearerAuth":[]}],"operationId":"deleteAnalyticExtractedReportById","tags":["Analytic Extracted Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticExtractedReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticExtractedReport not found"}}}},"/analytics/field_reports":{"get":{"summary":"Gets a list of Analytic Field Reports","security":[{"BearerAuth":[]}],"operationId":"listAllAnalyticFieldReport","tags":["Analytic Field Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each AnalyticFieldReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Analytic Field Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticFieldReport"}}}}},"206":{"description":"Partial (paged) collection of Analytic Field Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticFieldReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Analytic Field Report","security":[{"BearerAuth":[]}],"operationId":"createAnalyticFieldReport","tags":["Analytic Field Reports"],"requestBody":{"required":true,"description":"data for creating a new Analytic Field Report","content":{"application/json":{"schema":{"type":"object","properties":{"field":{"type":"string"},"alias":{"type":"string"},"function":{"type":"string"},"format":{"type":"string"},"groupBy":{"type":"boolean","default":false},"orderBy":{"type":"string"},"custom":{"type":"boolean","default":false}}}}}},"responses":{"201":{"description":"AnalyticFieldReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticFieldReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/analytics/field_reports/{id}":{"get":{"summary":"Gets a single Analytic Field Report","security":[{"BearerAuth":[]}],"operationId":"getAnalyticFieldReportById","tags":["Analytic Field Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticFieldReport to get"}],"responses":{"200":{"description":"AnalyticFieldReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticFieldReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticFieldReport not found"}}},"put":{"summary":"Update an existing Analytic Field Report","security":[{"BearerAuth":[]}],"operationId":"updateAnalyticFieldReportById","tags":["Analytic Field Reports"],"requestBody":{"required":true,"description":"data for updating a new Analytic Field Report","content":{"application/json":{"schema":{"type":"object","properties":{"field":{"type":"string"},"alias":{"type":"string"},"function":{"type":"string"},"format":{"type":"string"},"groupBy":{"type":"boolean","default":false},"orderBy":{"type":"string"},"custom":{"type":"boolean","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticFieldReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticFieldReport not found"}}},"delete":{"summary":"Deletes many Analytic Field Reports","security":[{"BearerAuth":[]}],"operationId":"deleteAnalyticFieldReport","tags":["Analytic Field Reports"],"parameters":[{"in":"query","name":"ids","style":"form","explode":false,"schema":{"type":"integer"},"required":true,"description":"Numeric ids of the AnalyticFieldReport to be deleted, as a comma-separated list. E.g. `ids=1,2,3` deletes elements with id = 1, 2 and 3"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticFieldReport not found"}}}},"/analytics/field_reports/create_many":{"post":{"summary":"Creates many Analytic Field Reports","security":[{"BearerAuth":[]}],"operationId":"createManyAnalyticFieldReport","tags":["Analytic Field Reports"],"requestBody":{"required":true,"description":"data for the creation of many Analytic Field Reports","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"alias":{"type":"string"},"function":{"type":"string"},"format":{"type":"string"},"groupBy":{"type":"boolean","default":false},"orderBy":{"type":"string"},"custom":{"type":"boolean","default":false}}}}}}},"responses":{"201":{"description":"Successfully created."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/analytics/field_reports/{id}/create_many":{"post":{"summary":"Rewrite fields set","security":[{"BearerAuth":[]}],"operationId":"addFields","tags":["Analytic Field Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticFieldReport"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/analytics/field_reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Analytic Field Report","security":[{"BearerAuth":[]}],"operationId":"deleteAnalyticFieldReportById","tags":["Analytic Field Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticFieldReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticFieldReport not found"}}}},"/analytics/metrics":{"get":{"summary":"Gets a list of Analytic Metric","security":[{"BearerAuth":[]}],"operationId":"listAllAnalyticMetric","tags":["Analytic Metrics"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each AnalyticMetric"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Analytic Metric","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticMetric"}}}}},"206":{"description":"Partial (paged) collection of Analytic Metric","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticMetric"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Analytic Metrics","security":[{"BearerAuth":[]}],"operationId":"createAnalyticMetric","tags":["Analytic Metrics"],"requestBody":{"required":true,"description":"data for creating a new Analytic Metrics","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"table":{"type":"string"},"metric":{"type":"string"},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"AnalyticMetric successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticMetric"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/analytics/metrics/{id}":{"get":{"summary":"Gets a single Analytic Metrics","security":[{"BearerAuth":[]}],"operationId":"getAnalyticMetricById","tags":["Analytic Metrics"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticMetric to get"}],"responses":{"200":{"description":"AnalyticMetric with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticMetric"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticMetric not found"}}},"put":{"summary":"Update an existing Analytic Metrics","security":[{"BearerAuth":[]}],"operationId":"updateAnalyticMetricById","tags":["Analytic Metrics"],"requestBody":{"required":true,"description":"data for updating a new Analytic Metrics","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"table":{"type":"string"},"metric":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticMetric to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticMetric not found"}}}},"/analytics/metrics/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Analytic Metrics","security":[{"BearerAuth":[]}],"operationId":"deleteAnalyticMetricById","tags":["Analytic Metrics"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticMetric to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticMetric not found"}}}},"/analytics/tree_reports":{"get":{"summary":"Gets a list of Analytic Tree Reports","security":[{"BearerAuth":[]}],"operationId":"listAllAnalyticTreeReport","tags":["Analytic Tree Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each AnalyticTreeReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Analytic Tree Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticTreeReport"}}}}},"206":{"description":"Partial (paged) collection of Analytic Tree Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticTreeReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Analytic Tree Report","security":[{"BearerAuth":[]}],"operationId":"createAnalyticTreeReport","tags":["Analytic Tree Reports"],"requestBody":{"required":true,"description":"data for creating a new Analytic Tree Report","content":{"application/json":{"schema":{"type":"object","properties":{"tree":{"type":"string"}},"required":["tree"]}}}},"responses":{"201":{"description":"AnalyticTreeReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticTreeReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/analytics/tree_reports/{id}":{"get":{"summary":"Gets a single Analytic Tree Report","security":[{"BearerAuth":[]}],"operationId":"getAnalyticTreeReportById","tags":["Analytic Tree Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticTreeReport to get"}],"responses":{"200":{"description":"AnalyticTreeReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticTreeReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticTreeReport not found"}}},"put":{"summary":"Update an existing Analytic Tree Report","security":[{"BearerAuth":[]}],"operationId":"updateAnalyticTreeReportById","tags":["Analytic Tree Reports"],"requestBody":{"required":true,"description":"data for updating a new Analytic Tree Report","content":{"application/json":{"schema":{"type":"object","properties":{"tree":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticTreeReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticTreeReport not found"}}}},"/analytics/tree_reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Analytic Tree Report","security":[{"BearerAuth":[]}],"operationId":"deleteAnalyticTreeReportById","tags":["Analytic Tree Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the AnalyticTreeReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"AnalyticTreeReport not found"}}}},"/attachments":{"get":{"summary":"Gets a list of Attachments","security":[{"BearerAuth":[]}],"operationId":"listAllAttachment","tags":["Attachments"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Attachment"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Attachments","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"}}}}},"206":{"description":"Partial (paged) collection of Attachments","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/attachments/{id}":{"get":{"summary":"Gets a single Attachment","security":[{"BearerAuth":[]}],"operationId":"getAttachmentById","tags":["Attachments"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Attachment to get"}],"responses":{"200":{"description":"Attachment with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Attachment not found"}}},"put":{"summary":"Update an existing Attachment","security":[{"BearerAuth":[]}],"operationId":"updateAttachmentById","tags":["Attachments"],"requestBody":{"required":true,"description":"data for updating a new Attachment","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"basename":{"type":"string"},"type":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Attachment to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Attachment not found"}}}},"/attachments/{id}/download":{"get":{"summary":"Download attachment","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Attachments"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Attachment"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/attachments/clone":{"post":{"summary":"Clone an existing Attachment","security":[{"BearerAuth":[]}],"operationId":"cloneAttachment","tags":["Attachments"],"requestBody":{"required":true,"description":"data for creating a new Attachment","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"id of the Attachment to clone"},"name":{"type":"string"},"basename":{"type":"string"},"type":{"type":"string"}},"required":["id"]}}}},"responses":{"201":{"description":"Attachment successfully cloned. Returns the cloned object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/attachments/":{"post":{"summary":"Add attachment","security":[{"BearerAuth":[]}],"operationId":"postcreate","tags":["Attachments"],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/attachments/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Attachment","security":[{"BearerAuth":[]}],"operationId":"deleteAttachmentById","tags":["Attachments"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Attachment to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Attachment not found"}}}},"/auth/google":{"post":{"summary":"Creates a new User token using Google login","operationId":"googleLogin","tags":["Authentication"],"requestBody":{"required":true,"description":"Google user credentials","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"the username"},"password":{"type":"string","format":"password","description":"the user password"}},"required":["name","password"]}}}},"responses":{"201":{"description":"login success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"user id"},"statusCall":{"type":"string","description":"user call status"},"token":{"type":"string","description":"jwt for authenticated calls"}}}}}},"401":{"description":"Not authenticated","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"the authentication error"}}}}}}}}},"/auth/local":{"post":{"summary":"Creates a new User token","operationId":"localLogin","tags":["Authentication"],"requestBody":{"required":true,"description":"user credentials","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"the username"},"password":{"type":"string","format":"password","description":"the user password"}},"required":["name","password"]}}}},"responses":{"201":{"description":"login success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"user id"},"statusCall":{"type":"string","description":"user call status"},"token":{"type":"string","description":"jwt for authenticated calls"}}}}}},"401":{"description":"Not authenticated","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"the authentication error"}}}}}}}}},"/auth/local/forgot":{"post":{"summary":"Creates a new password reset token","operationId":"localForgotPassword","tags":["Authentication"],"requestBody":{"required":true,"description":"the email to which the reset token will be sent","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","description":"the user email used during registration"}},"required":["email"]}}}},"responses":{"201":{"description":"password reset token successfully issued"}}}},"/auth/local/reset/{token}":{"post":{"summary":"Reset user password","operationId":"localResetPassword","tags":["Authentication"],"parameters":[{"in":"path","name":"token","schema":{"type":"string"},"required":true,"description":"token issued by `/auth/local/forgot`"}],"requestBody":{"required":true,"description":"the new password for the user","content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string","format":"password","description":"the new user password"}},"required":["password"]}}}},"responses":{"201":{"description":"password reset success"}}}},"/automations":{"get":{"summary":"Gets a list of Automations","security":[{"BearerAuth":[]}],"operationId":"listAllAutomation","tags":["Automations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Automation"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Automations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Automation"}}}}},"206":{"description":"Partial (paged) collection of Automations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Automation"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Automation","security":[{"BearerAuth":[]}],"operationId":"createAutomation","tags":["Automations"],"requestBody":{"required":true,"description":"data for creating a new Automation","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"channel":{"type":"string"},"description":{"type":"string"},"status":{"type":"boolean","default":false},"timeout":{"type":"integer","default":10}},"required":["name"]}}}},"responses":{"201":{"description":"Automation successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Automation"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/automations/{id}":{"get":{"summary":"Gets a single Automation","security":[{"BearerAuth":[]}],"operationId":"getAutomationById","tags":["Automations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Automation to get"}],"responses":{"200":{"description":"Automation with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Automation"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Automation not found"}}},"put":{"summary":"Update an existing Automation","security":[{"BearerAuth":[]}],"operationId":"updateAutomationById","tags":["Automations"],"requestBody":{"required":true,"description":"data for updating a new Automation","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"channel":{"type":"string"},"description":{"type":"string"},"status":{"type":"boolean","default":false},"timeout":{"type":"integer","default":10}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Automation to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Automation not found"}}}},"/automations/{id}/conditions":{"get":{"summary":"Gets Automation Conditions","security":[{"BearerAuth":[]}],"operationId":"getConditions","tags":["Automations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Automation"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new conditions","security":[{"BearerAuth":[]}],"operationId":"addConditions","tags":["Automations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Automation"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/automations/{id}/actions":{"get":{"summary":"Gets Automation Actions","security":[{"BearerAuth":[]}],"operationId":"getActions","tags":["Automations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Automation"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new actions","security":[{"BearerAuth":[]}],"operationId":"addActions","tags":["Automations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Automation"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/automations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Automation","security":[{"BearerAuth":[]}],"operationId":"deleteAutomationById","tags":["Automations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Automation to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Automation not found"}}}},"/campaigns":{"get":{"summary":"Gets a list of IVR Campaigns","security":[{"BearerAuth":[]}],"operationId":"listAllCampaign","tags":["IVR Campaigns"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Campaign"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of IVR Campaigns","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Campaign"}}}}},"206":{"description":"Partial (paged) collection of IVR Campaigns","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Campaign"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new IVR Campaign","security":[{"BearerAuth":[]}],"operationId":"createCampaign","tags":["IVR Campaigns"],"requestBody":{"required":true,"description":"data for creating a new IVR Campaign","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["ivr"],"default":"ivr"},"description":{"type":"string"},"active":{"type":"boolean","description":"Active/Disactive Campaign","default":0},"limitCalls":{"type":"integer","description":"Max 200 calls.","default":30},"dialOriginateCallerIdName":{"type":"string"},"dialOriginateCallerIdNumber":{"type":"string"},"dialOriginateTimeout":{"type":"integer","description":"Originate Timeout Seconds (min:1, max:999)","default":30},"dialCongestionMaxRetry":{"type":"integer","description":"#Congestion Retry (min:1, max:999)","default":3},"dialCongestionRetryFrequency":{"type":"integer","description":"Congestion Retry Frequency Minutes (min:1, max:99999)","default":150},"dialBusyMaxRetry":{"type":"integer","description":"#Busy Retry (min:1, max:999)","default":3},"dialBusyRetryFrequency":{"type":"integer","description":"Busy Retry Frequency Minutes (min:1, max:99999)","default":150},"dialNoAnswerMaxRetry":{"type":"integer","description":"#NoAnswer Retry (min:1, max:999)","default":3},"dialNoAnswerRetryFrequency":{"type":"integer","description":"NoAnswer Retry Frequency Minutes (min:1, max:99999)","default":150},"dialGlobalMaxRetry":{"type":"integer","description":"#Global Max Retry (min:1, max:999)","default":4},"dialTimezone":{"type":"string","default":null},"dialGlobalInterval":{"type":"string","default":"07:00-22:00,*,*,*"},"dialCheckDuplicateType":{"type":"string","enum":["always","never","onlyIfOpen"],"default":"always"},"dialAMDActive":{"type":"boolean","description":"Active/Disactive AMD","default":0},"dialAMDInitialSilence":{"type":"integer","description":"#AMD Initial Silence","default":2500},"dialAMDGreeting":{"type":"integer","description":"#AMD Greeting","default":1500},"dialAMDAfterGreetingSilence":{"type":"integer","description":"#AMD After Greeting Silence","default":800},"dialAMDTotalAnalysisTime":{"type":"integer","description":"#AMD Total Analysis Time","default":5000},"dialAMDMinWordLength":{"type":"integer","description":"#AMD Min Word Length","default":100},"dialAMDBetweenWordsSilence":{"type":"integer","description":"#AMD Between Words Silence","default":50},"dialAMDMaximumNumberOfWords":{"type":"integer","description":"#AMD Maximum Number Of Words","default":3},"dialAMDSilenceThreshold":{"type":"integer","description":"#AMD Silence Threshold (min:0, max:32767)","default":256},"dialAMDMaximumWordLength":{"type":"integer","description":"#AMD Maximum Word Length","default":5000},"dialOrderByScheduledAt":{"type":"string","enum":["DESC","ASC"],"default":"DESC"},"dialPrefix":{"type":"string","default":null},"dialRandomLastDigitCallerIdNumber":{"type":"integer","description":"Random Last Digit (min:1, max:15)","default":0},"dialCutDigit":{"type":"integer","description":"Cut Digit (min:1, max:15)","default":0},"dialNoSuchNumberMaxRetry":{"type":"integer","description":"#NoSuchNumber Retry (min:1, max:999)","default":3},"dialNoSuchNumberRetryFrequency":{"type":"integer","description":"NoSuchNumber Retry Frequency Minutes (min:1, max:99999)","default":150},"dialDropMaxRetry":{"type":"integer","description":"#Drop Retry (min:1, max:999)","default":3},"dialDropRetryFrequency":{"type":"integer","description":"Drop Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAbandonedMaxRetry":{"type":"integer","description":"#Abandoned Retry (min:1, max:999)","default":3},"dialAbandonedRetryFrequency":{"type":"integer","description":"Abandoned Retry Frequency Minutes (min:1, max:99999)","default":150},"dialMachineMaxRetry":{"type":"integer","description":"#Machine Retry (min:1, max:999)","default":3},"dialMachineRetryFrequency":{"type":"integer","description":"Machine Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAgentRejectMaxRetry":{"type":"integer","description":"#AgentReject Retry (min:1, max:999)","default":3},"dialAgentRejectRetryFrequency":{"type":"integer","description":"AgentReject Retry Frequency Minutes (min:1, max:99999)","default":150}},"required":["name","type"]}}}},"responses":{"201":{"description":"Campaign successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Campaign"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/campaigns/{id}":{"get":{"summary":"Gets a single IVR Campaign","security":[{"BearerAuth":[]}],"operationId":"getCampaignById","tags":["IVR Campaigns"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Campaign to get"}],"responses":{"200":{"description":"Campaign with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Campaign"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Campaign not found"}}},"put":{"summary":"Update an existing IVR Campaign","security":[{"BearerAuth":[]}],"operationId":"updateCampaignById","tags":["IVR Campaigns"],"requestBody":{"required":true,"description":"data for updating a new IVR Campaign","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["ivr"],"default":"ivr"},"description":{"type":"string"},"active":{"type":"boolean","description":"Active/Disactive Campaign","default":0},"limitCalls":{"type":"integer","description":"Max 200 calls.","default":30},"dialOriginateCallerIdName":{"type":"string"},"dialOriginateCallerIdNumber":{"type":"string"},"dialOriginateTimeout":{"type":"integer","description":"Originate Timeout Seconds (min:1, max:999)","default":30},"dialCongestionMaxRetry":{"type":"integer","description":"#Congestion Retry (min:1, max:999)","default":3},"dialCongestionRetryFrequency":{"type":"integer","description":"Congestion Retry Frequency Minutes (min:1, max:99999)","default":150},"dialBusyMaxRetry":{"type":"integer","description":"#Busy Retry (min:1, max:999)","default":3},"dialBusyRetryFrequency":{"type":"integer","description":"Busy Retry Frequency Minutes (min:1, max:99999)","default":150},"dialNoAnswerMaxRetry":{"type":"integer","description":"#NoAnswer Retry (min:1, max:999)","default":3},"dialNoAnswerRetryFrequency":{"type":"integer","description":"NoAnswer Retry Frequency Minutes (min:1, max:99999)","default":150},"dialGlobalMaxRetry":{"type":"integer","description":"#Global Max Retry (min:1, max:999)","default":4},"dialTimezone":{"type":"string","default":null},"dialGlobalInterval":{"type":"string","default":"07:00-22:00,*,*,*"},"dialCheckDuplicateType":{"type":"string","enum":["always","never","onlyIfOpen"],"default":"always"},"dialAMDActive":{"type":"boolean","description":"Active/Disactive AMD","default":0},"dialAMDInitialSilence":{"type":"integer","description":"#AMD Initial Silence","default":2500},"dialAMDGreeting":{"type":"integer","description":"#AMD Greeting","default":1500},"dialAMDAfterGreetingSilence":{"type":"integer","description":"#AMD After Greeting Silence","default":800},"dialAMDTotalAnalysisTime":{"type":"integer","description":"#AMD Total Analysis Time","default":5000},"dialAMDMinWordLength":{"type":"integer","description":"#AMD Min Word Length","default":100},"dialAMDBetweenWordsSilence":{"type":"integer","description":"#AMD Between Words Silence","default":50},"dialAMDMaximumNumberOfWords":{"type":"integer","description":"#AMD Maximum Number Of Words","default":3},"dialAMDSilenceThreshold":{"type":"integer","description":"#AMD Silence Threshold (min:0, max:32767)","default":256},"dialAMDMaximumWordLength":{"type":"integer","description":"#AMD Maximum Word Length","default":5000},"dialOrderByScheduledAt":{"type":"string","enum":["DESC","ASC"],"default":"DESC"},"dialPrefix":{"type":"string","default":null},"dialRandomLastDigitCallerIdNumber":{"type":"integer","description":"Random Last Digit (min:1, max:15)","default":0},"dialCutDigit":{"type":"integer","description":"Cut Digit (min:1, max:15)","default":0},"dialNoSuchNumberMaxRetry":{"type":"integer","description":"#NoSuchNumber Retry (min:1, max:999)","default":3},"dialNoSuchNumberRetryFrequency":{"type":"integer","description":"NoSuchNumber Retry Frequency Minutes (min:1, max:99999)","default":150},"dialDropMaxRetry":{"type":"integer","description":"#Drop Retry (min:1, max:999)","default":3},"dialDropRetryFrequency":{"type":"integer","description":"Drop Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAbandonedMaxRetry":{"type":"integer","description":"#Abandoned Retry (min:1, max:999)","default":3},"dialAbandonedRetryFrequency":{"type":"integer","description":"Abandoned Retry Frequency Minutes (min:1, max:99999)","default":150},"dialMachineMaxRetry":{"type":"integer","description":"#Machine Retry (min:1, max:999)","default":3},"dialMachineRetryFrequency":{"type":"integer","description":"Machine Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAgentRejectMaxRetry":{"type":"integer","description":"#AgentReject Retry (min:1, max:999)","default":3},"dialAgentRejectRetryFrequency":{"type":"integer","description":"AgentReject Retry Frequency Minutes (min:1, max:99999)","default":150}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Campaign to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Campaign not found"}}}},"/campaigns/{id}/hoppers":{"get":{"summary":"Gets IVR campaign hoppers","security":[{"BearerAuth":[]}],"operationId":"getHoppers","tags":["IVR Campaigns"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Campaign"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/campaigns/{id}/hopper_histories":{"get":{"summary":"Gets IVR campaign hopper histories","security":[{"BearerAuth":[]}],"operationId":"getHopperHistories","tags":["IVR Campaigns"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Campaign"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/campaigns/{id}/hopper_finals":{"get":{"summary":"Gets IVR campaign hopper finals","security":[{"BearerAuth":[]}],"operationId":"getHopperFinals","tags":["IVR Campaigns"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Campaign"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/campaigns/{id}/hopper_black":{"get":{"summary":"Gets IVR campaign hopper blacks","security":[{"BearerAuth":[]}],"operationId":"getHopperBlacks","tags":["IVR Campaigns"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Campaign"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/campaigns/{id}/lists":{"get":{"summary":"Get IVR campaign lists","security":[{"BearerAuth":[]}],"operationId":"getLists","tags":["IVR Campaigns"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Campaign"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add lists to an IVR campaign","security":[{"BearerAuth":[]}],"operationId":"addLists","tags":["IVR Campaigns"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Campaign"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove lists from an IVR Campaign","security":[{"BearerAuth":[]}],"operationId":"removeLists","tags":["IVR Campaigns"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Campaign"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/campaigns/{id}/blacklists":{"get":{"summary":"Get IVR campaign blacklists","security":[{"BearerAuth":[]}],"operationId":"getBlackLists","tags":["IVR Campaigns"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Campaign"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add blacklists to an IVR campaign","security":[{"BearerAuth":[]}],"operationId":"addBlackLists","tags":["IVR Campaigns"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Campaign"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove blacklists from an IVR Campaign","security":[{"BearerAuth":[]}],"operationId":"removeBlackLists","tags":["IVR Campaigns"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Campaign"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/campaigns/clone":{"post":{"summary":"Clone an existing IVR Campaign","security":[{"BearerAuth":[]}],"operationId":"cloneCampaign","tags":["IVR Campaigns"],"requestBody":{"required":true,"description":"data for creating a new IVR Campaign","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"id of the IVR Campaign to clone"},"name":{"type":"string"},"type":{"type":"string","enum":["ivr"],"default":"ivr"},"description":{"type":"string"},"active":{"type":"boolean","description":"Active/Disactive Campaign","default":0},"limitCalls":{"type":"integer","description":"Max 200 calls.","default":30},"dialOriginateCallerIdName":{"type":"string"},"dialOriginateCallerIdNumber":{"type":"string"},"dialOriginateTimeout":{"type":"integer","description":"Originate Timeout Seconds (min:1, max:999)","default":30},"dialCongestionMaxRetry":{"type":"integer","description":"#Congestion Retry (min:1, max:999)","default":3},"dialCongestionRetryFrequency":{"type":"integer","description":"Congestion Retry Frequency Minutes (min:1, max:99999)","default":150},"dialBusyMaxRetry":{"type":"integer","description":"#Busy Retry (min:1, max:999)","default":3},"dialBusyRetryFrequency":{"type":"integer","description":"Busy Retry Frequency Minutes (min:1, max:99999)","default":150},"dialNoAnswerMaxRetry":{"type":"integer","description":"#NoAnswer Retry (min:1, max:999)","default":3},"dialNoAnswerRetryFrequency":{"type":"integer","description":"NoAnswer Retry Frequency Minutes (min:1, max:99999)","default":150},"dialGlobalMaxRetry":{"type":"integer","description":"#Global Max Retry (min:1, max:999)","default":4},"dialTimezone":{"type":"string","default":null},"dialGlobalInterval":{"type":"string","default":"07:00-22:00,*,*,*"},"dialCheckDuplicateType":{"type":"string","enum":["always","never","onlyIfOpen"],"default":"always"},"dialAMDActive":{"type":"boolean","description":"Active/Disactive AMD","default":0},"dialAMDInitialSilence":{"type":"integer","description":"#AMD Initial Silence","default":2500},"dialAMDGreeting":{"type":"integer","description":"#AMD Greeting","default":1500},"dialAMDAfterGreetingSilence":{"type":"integer","description":"#AMD After Greeting Silence","default":800},"dialAMDTotalAnalysisTime":{"type":"integer","description":"#AMD Total Analysis Time","default":5000},"dialAMDMinWordLength":{"type":"integer","description":"#AMD Min Word Length","default":100},"dialAMDBetweenWordsSilence":{"type":"integer","description":"#AMD Between Words Silence","default":50},"dialAMDMaximumNumberOfWords":{"type":"integer","description":"#AMD Maximum Number Of Words","default":3},"dialAMDSilenceThreshold":{"type":"integer","description":"#AMD Silence Threshold (min:0, max:32767)","default":256},"dialAMDMaximumWordLength":{"type":"integer","description":"#AMD Maximum Word Length","default":5000},"dialOrderByScheduledAt":{"type":"string","enum":["DESC","ASC"],"default":"DESC"},"dialPrefix":{"type":"string","default":null},"dialRandomLastDigitCallerIdNumber":{"type":"integer","description":"Random Last Digit (min:1, max:15)","default":0},"dialCutDigit":{"type":"integer","description":"Cut Digit (min:1, max:15)","default":0},"dialNoSuchNumberMaxRetry":{"type":"integer","description":"#NoSuchNumber Retry (min:1, max:999)","default":3},"dialNoSuchNumberRetryFrequency":{"type":"integer","description":"NoSuchNumber Retry Frequency Minutes (min:1, max:99999)","default":150},"dialDropMaxRetry":{"type":"integer","description":"#Drop Retry (min:1, max:999)","default":3},"dialDropRetryFrequency":{"type":"integer","description":"Drop Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAbandonedMaxRetry":{"type":"integer","description":"#Abandoned Retry (min:1, max:999)","default":3},"dialAbandonedRetryFrequency":{"type":"integer","description":"Abandoned Retry Frequency Minutes (min:1, max:99999)","default":150},"dialMachineMaxRetry":{"type":"integer","description":"#Machine Retry (min:1, max:999)","default":3},"dialMachineRetryFrequency":{"type":"integer","description":"Machine Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAgentRejectMaxRetry":{"type":"integer","description":"#AgentReject Retry (min:1, max:999)","default":3},"dialAgentRejectRetryFrequency":{"type":"integer","description":"AgentReject Retry Frequency Minutes (min:1, max:99999)","default":150}},"required":["id"]}}}},"responses":{"201":{"description":"Campaign successfully cloned. Returns the cloned object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Campaign"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/campaigns/{id}/destroy_many":{"delete":{"summary":"Destroy an existing IVR Campaign","security":[{"BearerAuth":[]}],"operationId":"deleteCampaignById","tags":["IVR Campaigns"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Campaign to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Campaign not found"}}}},"/canned_answers":{"get":{"summary":"Gets a list of Canned Answers","security":[{"BearerAuth":[]}],"operationId":"listAllCannedAnswer","tags":["Canned Answers"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CannedAnswer"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Canned Answers","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CannedAnswer"}}}}},"206":{"description":"Partial (paged) collection of Canned Answers","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CannedAnswer"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/canned_answers/{id}":{"get":{"summary":"Gets a single Canned Answer","security":[{"BearerAuth":[]}],"operationId":"getCannedAnswerById","tags":["Canned Answers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CannedAnswer to get"}],"responses":{"200":{"description":"CannedAnswer with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CannedAnswer"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CannedAnswer not found"}}},"put":{"summary":"Update an existing Canned Answer","security":[{"BearerAuth":[]}],"operationId":"updateCannedAnswerById","tags":["Canned Answers"],"requestBody":{"required":true,"description":"data for updating a new Canned Answer","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"},"description":{"type":"string"},"name":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CannedAnswer to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CannedAnswer not found"}}}},"/canned_answers/":{"post":{"summary":"Create a new canned answer","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Canned Answers"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/canned_answers/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Canned Answer","security":[{"BearerAuth":[]}],"operationId":"deleteCannedAnswerById","tags":["Canned Answers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CannedAnswer to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CannedAnswer not found"}}}},"/cdr":{"get":{"summary":"Gets a list of Cdrs","security":[{"BearerAuth":[]}],"operationId":"listAllCdr","tags":["cdr"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Cdr"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Cdrs","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Cdr"}}}}},"206":{"description":"Partial (paged) collection of Cdrs","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Cdr"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Cdr","security":[{"BearerAuth":[]}],"operationId":"createCdr","tags":["cdr"],"requestBody":{"required":true,"description":"data for creating a new Cdr","content":{"application/json":{"schema":{"type":"object","properties":{"calldate":{"type":"string","default":"1970-01-01 00:00:01"},"clid":{"type":"string"},"src":{"type":"string"},"dst":{"type":"string"},"dcontext":{"type":"string"},"channel":{"type":"string"},"dstchannel":{"type":"string"},"lastapp":{"type":"string"},"lastdata":{"type":"string"},"duration":{"type":"integer","default":0},"billsec":{"type":"integer","default":0},"disposition":{"type":"string"},"amaflags":{"type":"integer","default":0},"accountcode":{"type":"string"},"userfield":{"type":"string"},"uniqueid":{"type":"string"},"linkedid":{"type":"string"},"sequence":{"type":"string"},"peeraccount":{"type":"string"},"type":{"type":"string"},"tag":{"type":"string"}},"required":["calldate","duration","billsec","amaflags"]}}}},"responses":{"201":{"description":"Cdr successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cdr"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cdr/describe":{"get":{"summary":"Gets table info about Cdrs","security":[{"BearerAuth":[]}],"operationId":"describeCdr","tags":["cdr"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cdr/{id}":{"get":{"summary":"Gets a single Cdr","security":[{"BearerAuth":[]}],"operationId":"getCdrById","tags":["cdr"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Cdr to get"}],"responses":{"200":{"description":"Cdr with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cdr"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Cdr not found"}}},"put":{"summary":"Update an existing Cdr","security":[{"BearerAuth":[]}],"operationId":"updateCdrById","tags":["cdr"],"requestBody":{"required":true,"description":"data for updating a new Cdr","content":{"application/json":{"schema":{"type":"object","properties":{"calldate":{"type":"string","default":"1970-01-01 00:00:01"},"clid":{"type":"string"},"src":{"type":"string"},"dst":{"type":"string"},"dcontext":{"type":"string"},"channel":{"type":"string"},"dstchannel":{"type":"string"},"lastapp":{"type":"string"},"lastdata":{"type":"string"},"duration":{"type":"integer","default":0},"billsec":{"type":"integer","default":0},"disposition":{"type":"string"},"amaflags":{"type":"integer","default":0},"accountcode":{"type":"string"},"userfield":{"type":"string"},"uniqueid":{"type":"string"},"linkedid":{"type":"string"},"sequence":{"type":"string"},"peeraccount":{"type":"string"},"type":{"type":"string"},"tag":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Cdr to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Cdr not found"}}}},"/cdr/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Cdr","security":[{"BearerAuth":[]}],"operationId":"deleteCdrById","tags":["cdr"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Cdr to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Cdr not found"}}}},"/chat/applications/{id}":{"get":{"summary":"Gets a single Application","security":[{"BearerAuth":[]}],"operationId":"getChatApplicationById","tags":["Chat Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatApplication to get"}],"responses":{"200":{"description":"ChatApplication with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatApplication not found"}}},"put":{"summary":"Update an existing Application","security":[{"BearerAuth":[]}],"operationId":"updateChatApplicationById","tags":["Chat Applications"],"requestBody":{"required":true,"description":"data for updating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatApplication to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatApplication not found"}}}},"/chat/applications/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Application","security":[{"BearerAuth":[]}],"operationId":"deleteChatApplicationById","tags":["Chat Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatApplication to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatApplication not found"}}}},"/chat/groups":{"get":{"summary":"Gets a list of Groups","security":[{"BearerAuth":[]}],"operationId":"listAllChatGroup","tags":["Chat Groups"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ChatGroup"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Groups","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatGroup"}}}}},"206":{"description":"Partial (paged) collection of Groups","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatGroup"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Group","security":[{"BearerAuth":[]}],"operationId":"createChatGroup","tags":["Chat Groups"],"requestBody":{"required":true,"description":"data for creating a new Group","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"write":{"type":"boolean","default":true}},"required":["name"]}}}},"responses":{"201":{"description":"ChatGroup successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatGroup"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/groups/describe":{"get":{"summary":"Gets table info about Groups","security":[{"BearerAuth":[]}],"operationId":"describeChatGroup","tags":["Chat Groups"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/groups/{id}":{"get":{"summary":"Gets a single Group","security":[{"BearerAuth":[]}],"operationId":"getChatGroupById","tags":["Chat Groups"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatGroup to get"}],"responses":{"200":{"description":"ChatGroup with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatGroup"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatGroup not found"}}},"put":{"summary":"Update an existing Group","security":[{"BearerAuth":[]}],"operationId":"updateChatGroupById","tags":["Chat Groups"],"requestBody":{"required":true,"description":"data for updating a new Group","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"write":{"type":"boolean","default":true}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatGroup to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatGroup not found"}}}},"/chat/groups/{id}/unread":{"get":{"summary":"Get unread chat group messages","security":[{"BearerAuth":[]}],"operationId":"getUnread","tags":["Chat Groups"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatGroup"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/groups/{id}/members":{"get":{"summary":"Gets Members","security":[{"BearerAuth":[]}],"operationId":"getMembers","tags":["Chat Groups"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatGroup"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add members to chat group","security":[{"BearerAuth":[]}],"operationId":"addMembers","tags":["Chat Groups"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatGroup"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes members from a group","security":[{"BearerAuth":[]}],"operationId":"removeMembers","tags":["Chat Groups"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatGroup"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/groups/{id}/messages":{"get":{"summary":"Gets Messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Chat Groups"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatGroup"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new group message","security":[{"BearerAuth":[]}],"operationId":"addMessage","tags":["Chat Groups"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatGroup"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/groups/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Group","security":[{"BearerAuth":[]}],"operationId":"deleteChatGroupById","tags":["Chat Groups"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatGroup to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatGroup not found"}}}},"/chat/interactions":{"get":{"summary":"Gets a list of Interactions","security":[{"BearerAuth":[]}],"operationId":"listAllChatInteraction","tags":["Chat Interactions"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ChatInteraction"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatInteraction"}}}}},"206":{"description":"Partial (paged) collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatInteraction"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Interaction","security":[{"BearerAuth":[]}],"operationId":"createChatInteraction","tags":["Chat Interactions"],"requestBody":{"required":true,"description":"data for creating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"ratingValue":{"type":"integer"},"ratingType":{"type":"string","enum":["star","thumb"],"default":"star"},"ratingMessage":{"type":"string"},"pathTranscript":{"type":"string"},"mailTranscript":{"type":"string"},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"browserName":{"type":"string"},"browserVersion":{"type":"string"},"osName":{"type":"string"},"osVersion":{"type":"string"},"deviceModel":{"type":"string"},"deviceVendor":{"type":"string"},"deviceType":{"type":"string"},"referer":{"type":"string"},"customerIp":{"type":"string"},"formData":{"type":"string"},"read1stAt":{"type":"string"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"closeReason":{"type":"string"},"customerPort":{"type":"string"},"vidaooSessionId":{"type":"string"}},"required":["lastMsgDirection"]}}}},"responses":{"201":{"description":"ChatInteraction successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/interactions/describe":{"get":{"summary":"Gets table info about Interactions","security":[{"BearerAuth":[]}],"operationId":"describeChatInteraction","tags":["Chat Interactions"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/interactions/{id}":{"get":{"summary":"Gets a single Interaction","operationId":"getChatInteractionById","tags":["Chat Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInteraction to get"}],"responses":{"200":{"description":"ChatInteraction with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatInteraction"}}}},"404":{"description":"ChatInteraction not found"}}},"put":{"summary":"Update an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"updateChatInteractionById","tags":["Chat Interactions"],"requestBody":{"required":true,"description":"data for updating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"ratingValue":{"type":"integer"},"ratingType":{"type":"string","enum":["star","thumb"],"default":"star"},"ratingMessage":{"type":"string"},"pathTranscript":{"type":"string"},"mailTranscript":{"type":"string"},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"browserName":{"type":"string"},"browserVersion":{"type":"string"},"osName":{"type":"string"},"osVersion":{"type":"string"},"deviceModel":{"type":"string"},"deviceVendor":{"type":"string"},"deviceType":{"type":"string"},"referer":{"type":"string"},"customerIp":{"type":"string"},"formData":{"type":"string"},"read1stAt":{"type":"string"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"closeReason":{"type":"string"},"customerPort":{"type":"string"},"vidaooSessionId":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInteraction to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatInteraction not found"}}}},"/chat/interactions/{id}/attachment_download":{"get":{"summary":"Download attachment","operationId":"attachmentDownload","tags":["Attachments"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/chat/interactions/{id}/messages":{"get":{"summary":"Gets interaction messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Chat Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new messages","operationId":"addMessage","tags":["Chat Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInteraction"}],"responses":{"201":{"description":"successfully created"}}}},"/chat/interactions/{id}/my_messages":{"get":{"summary":"Gets interaction messages","operationId":"getMyMessages","tags":["Chat Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/chat/interactions/{id}/download":{"get":{"summary":"Gets interaction","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Chat Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/interactions/{id}/vidaoo":{"post":{"summary":"Create Vidaoo Session","security":[{"BearerAuth":[]}],"operationId":"createVidaooSession","tags":["Chat Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/interactions/{id}/attachment_upload":{"post":{"summary":"Add attachment","operationId":"postattachmentUpload","tags":["Chat Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInteraction"}],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."}}}},"/chat/interactions/{id}/tags":{"post":{"summary":"Add tags to the interaction","security":[{"BearerAuth":[]}],"operationId":"addTags","tags":["Chat Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes tags from interaction","security":[{"BearerAuth":[]}],"operationId":"removeTags","tags":["Chat Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInteraction"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/interactions/{id}/custom_update":{"put":{"summary":"Update interaction","operationId":"customUpdate","tags":["Chat Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInteraction"}],"responses":{"200":{"description":"successfully updated"}}}},"/chat/interactions/{id}/abandon":{"put":{"summary":"Abandon interaction","operationId":"abandon","tags":["Chat Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInteraction"}],"responses":{"200":{"description":"successfully updated"}}}},"/chat/interactions/{id}/close":{"put":{"summary":"Close Interaction","operationId":"close","tags":["Chat Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInteraction"}],"responses":{"200":{"description":"successfully updated"}}}},"/chat/interactions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"deleteChatInteractionById","tags":["Chat Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInteraction to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatInteraction not found"}}}},"/chat/internal/messages":{"get":{"summary":"Gets a list of Messages","security":[{"BearerAuth":[]}],"operationId":"listAllChatInternalMessage","tags":["Chat Internal Messages"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ChatInternalMessage"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatInternalMessage"}}}}},"206":{"description":"Partial (paged) collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatInternalMessage"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Message","security":[{"BearerAuth":[]}],"operationId":"createChatInternalMessage","tags":["Chat Internal Messages"],"requestBody":{"required":true,"description":"data for creating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"ChatInternalMessageId":{"type":"integer"}},"required":["body"]}}}},"responses":{"201":{"description":"ChatInternalMessage successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatInternalMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/internal/messages/describe":{"get":{"summary":"Gets table info about Messages","security":[{"BearerAuth":[]}],"operationId":"describeChatInternalMessage","tags":["Chat Internal Messages"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/internal/messages/users":{"get":{"summary":"Gets Users Last Messages","security":[{"BearerAuth":[]}],"operationId":"getUsers","tags":["ChatInternalMessage"],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/internal/messages/{id}":{"get":{"summary":"Gets a single Message","security":[{"BearerAuth":[]}],"operationId":"getChatInternalMessageById","tags":["Chat Internal Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInternalMessage to get"}],"responses":{"200":{"description":"ChatInternalMessage with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatInternalMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatInternalMessage not found"}}},"put":{"summary":"Update an existing Message","operationId":"updateChatInternalMessageById","tags":["Chat Internal Messages"],"requestBody":{"required":true,"description":"data for updating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"ChatInternalMessageId":{"type":"integer"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInternalMessage to be updated"}],"responses":{"200":{"description":"successful update"},"404":{"description":"ChatInternalMessage not found"}}}},"/chat/internal/messages/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Message","security":[{"BearerAuth":[]}],"operationId":"deleteChatInternalMessageById","tags":["Chat Internal Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatInternalMessage to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatInternalMessage not found"}}}},"/chat/messages":{"get":{"summary":"Gets a list of Messages","security":[{"BearerAuth":[]}],"operationId":"listAllChatMessage","tags":["Chat Messages"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ChatMessage"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatMessage"}}}}},"206":{"description":"Partial (paged) collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatMessage"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Message","security":[{"BearerAuth":[]}],"operationId":"createChatMessage","tags":["Chat Messages"],"requestBody":{"required":true,"description":"data for creating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"secret":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"readAt":{"type":"string"},"providerName":{"type":"string"},"providerResponse":{"type":"string"}},"required":["body","direction"]}}}},"responses":{"201":{"description":"ChatMessage successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/messages/describe":{"get":{"summary":"Gets table info about Messages","security":[{"BearerAuth":[]}],"operationId":"describeChatMessage","tags":["Chat Messages"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/messages/{id}":{"get":{"summary":"Gets a single Message","security":[{"BearerAuth":[]}],"operationId":"getChatMessageById","tags":["Chat Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatMessage to get"}],"responses":{"200":{"description":"ChatMessage with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatMessage not found"}}},"put":{"summary":"Update an existing Message","operationId":"updateChatMessageById","tags":["Chat Messages"],"requestBody":{"required":true,"description":"data for updating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"secret":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"readAt":{"type":"string"},"providerName":{"type":"string"},"providerResponse":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatMessage to be updated"}],"responses":{"200":{"description":"successful update"},"404":{"description":"ChatMessage not found"}}}},"/chat/messages/{id}/accept":{"put":{"summary":"Accepts message","security":[{"BearerAuth":[]}],"operationId":"accept","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/messages/{id}/reject":{"put":{"summary":"Rejects message","security":[{"BearerAuth":[]}],"operationId":"reject","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/messages/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Message","security":[{"BearerAuth":[]}],"operationId":"deleteChatMessageById","tags":["Chat Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatMessage to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatMessage not found"}}}},"/chat/offline_messages":{"get":{"summary":"Gets a list of OfflineMessages","security":[{"BearerAuth":[]}],"operationId":"listAllChatOfflineMessage","tags":["Chat Offline Messages"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ChatOfflineMessage"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of OfflineMessages","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatOfflineMessage"}}}}},"206":{"description":"Partial (paged) collection of OfflineMessages","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatOfflineMessage"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new OfflineMessage","security":[{"BearerAuth":[]}],"operationId":"createChatOfflineMessage","tags":["Chat Offline Messages"],"requestBody":{"required":true,"description":"data for creating a new OfflineMessage","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"}},"required":["body"]}}}},"responses":{"201":{"description":"ChatOfflineMessage successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatOfflineMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/offline_messages/describe":{"get":{"summary":"Gets table info about OfflineMessages","security":[{"BearerAuth":[]}],"operationId":"describeChatOfflineMessage","tags":["Chat Offline Messages"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/offline_messages/{id}":{"get":{"summary":"Gets a single OfflineMessage","security":[{"BearerAuth":[]}],"operationId":"getChatOfflineMessageById","tags":["Chat Offline Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatOfflineMessage to get"}],"responses":{"200":{"description":"ChatOfflineMessage with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatOfflineMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatOfflineMessage not found"}}},"put":{"summary":"Update an existing OfflineMessage","security":[{"BearerAuth":[]}],"operationId":"updateChatOfflineMessageById","tags":["Chat Offline Messages"],"requestBody":{"required":true,"description":"data for updating a new OfflineMessage","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatOfflineMessage to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatOfflineMessage not found"}}}},"/chat/offline_messages/{id}/destroy_many":{"delete":{"summary":"Destroy an existing OfflineMessage","security":[{"BearerAuth":[]}],"operationId":"deleteChatOfflineMessageById","tags":["Chat Offline Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatOfflineMessage to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatOfflineMessage not found"}}}},"/chat/proactive_actions/{id}":{"get":{"summary":"Gets a single Proactive Action","security":[{"BearerAuth":[]}],"operationId":"getChatProactiveActionById","tags":["Chat Proactive Actions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatProactiveAction to get"}],"responses":{"200":{"description":"ChatProactiveAction with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatProactiveAction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatProactiveAction not found"}}},"put":{"summary":"Update an existing Proactive Action","security":[{"BearerAuth":[]}],"operationId":"updateChatProactiveActionById","tags":["Chat Proactive Actions"],"requestBody":{"required":true,"description":"data for updating a new Proactive Action","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["mouseOver","timeout"],"default":"mouseOver"},"selector":{"type":"string"},"timeout":{"type":"integer"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatProactiveAction to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatProactiveAction not found"}}}},"/chat/proactive_actions":{"post":{"summary":"Creates a new Proactive Action","security":[{"BearerAuth":[]}],"operationId":"createChatProactiveAction","tags":["Chat Proactive Actions"],"requestBody":{"required":true,"description":"data for creating a new Proactive Action","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["mouseOver","timeout"],"default":"mouseOver"},"selector":{"type":"string"},"timeout":{"type":"integer"}},"required":["name"]}}}},"responses":{"201":{"description":"ChatProactiveAction successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatProactiveAction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/proactive_actions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Proactive Action","security":[{"BearerAuth":[]}],"operationId":"deleteChatProactiveActionById","tags":["Chat Proactive Actions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatProactiveAction to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatProactiveAction not found"}}}},"/chat/queues":{"get":{"summary":"Gets a list of Queues","security":[{"BearerAuth":[]}],"operationId":"listAllChatQueue","tags":["Chat Queues"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ChatQueue"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatQueue"}}}}},"206":{"description":"Partial (paged) collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatQueue"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Queue","security":[{"BearerAuth":[]}],"operationId":"createChatQueue","tags":["Chat Queues"],"requestBody":{"required":true,"description":"data for creating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]}},"required":["name"]}}}},"responses":{"201":{"description":"ChatQueue successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/queues/describe":{"get":{"summary":"Gets table info about Queues","security":[{"BearerAuth":[]}],"operationId":"describeChatQueue","tags":["Chat Queues"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/queues/{id}":{"get":{"summary":"Gets a single Queue","security":[{"BearerAuth":[]}],"operationId":"getChatQueueById","tags":["Chat Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatQueue to get"}],"responses":{"200":{"description":"ChatQueue with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatQueue not found"}}},"put":{"summary":"Update an existing Queue","security":[{"BearerAuth":[]}],"operationId":"updateChatQueueById","tags":["Chat Queues"],"requestBody":{"required":true,"description":"data for updating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatQueue to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatQueue not found"}}}},"/chat/queues/{id}/members":{"get":{"summary":"GetMembers","security":[{"BearerAuth":[]}],"operationId":"getMembers","tags":["Chat Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/queues/{id}/teams":{"get":{"summary":"Gets queues list","security":[{"BearerAuth":[]}],"operationId":"getTeams","tags":["Chat Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add teams to a queue","security":[{"BearerAuth":[]}],"operationId":"addTeams","tags":["Chat Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove teams from a queue","security":[{"BearerAuth":[]}],"operationId":"removeTeams","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/queues/{id}/users":{"get":{"summary":"Gets queue agents","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Chat Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a queue","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Chat Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a queue","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Chat Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/queues/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Queue","security":[{"BearerAuth":[]}],"operationId":"deleteChatQueueById","tags":["Chat Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatQueue to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatQueue not found"}}}},"/chat/reports/queue":{"get":{"summary":"Gets a list of Chat Queue Reports","security":[{"BearerAuth":[]}],"operationId":"listAllChatQueueReport","tags":["Chat Queue Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ChatQueueReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Chat Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatQueueReport"}}}}},"206":{"description":"Partial (paged) collection of Chat Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatQueueReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Chat Queue Report","security":[{"BearerAuth":[]}],"operationId":"createChatQueueReport","tags":["Chat Queue Reports"],"requestBody":{"required":true,"description":"data for creating a new Chat Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}},"required":["uniqueid"]}}}},"responses":{"201":{"description":"ChatQueueReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/reports/queue/describe":{"get":{"summary":"Gets table info about Chat Queue Reports","security":[{"BearerAuth":[]}],"operationId":"describeChatQueueReport","tags":["Chat Queue Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/reports/queue/{id}":{"get":{"summary":"Gets a single Chat Queue Report","security":[{"BearerAuth":[]}],"operationId":"getChatQueueReportById","tags":["Chat Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatQueueReport to get"}],"responses":{"200":{"description":"ChatQueueReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatQueueReport not found"}}},"put":{"summary":"Update an existing Chat Queue Report","security":[{"BearerAuth":[]}],"operationId":"updateChatQueueReportById","tags":["Chat Queue Reports"],"requestBody":{"required":true,"description":"data for updating a new Chat Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatQueueReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatQueueReport not found"}}}},"/chat/reports/queue/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Chat Queue Report","security":[{"BearerAuth":[]}],"operationId":"deleteChatQueueReportById","tags":["Chat Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatQueueReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatQueueReport not found"}}}},"/chat/reports/transfer":{"get":{"summary":"Gets a list of Chat Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"listAllChatTransferReport","tags":["Chat Transfer Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ChatTransferReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Chat Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatTransferReport"}}}}},"206":{"description":"Partial (paged) collection of Chat Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatTransferReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Chat Transfer Report","security":[{"BearerAuth":[]}],"operationId":"createChatTransferReport","tags":["Chat Transfer Reports"],"requestBody":{"required":true,"description":"data for creating a new Chat Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}},"required":["uniqueid","type","transferredAt"]}}}},"responses":{"201":{"description":"ChatTransferReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/reports/transfer/describe":{"get":{"summary":"Gets table info about Chat Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"describeChatTransferReport","tags":["Chat Transfer Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/reports/transfer/{id}":{"get":{"summary":"Gets a single Chat Transfer Report","security":[{"BearerAuth":[]}],"operationId":"getChatTransferReportById","tags":["Chat Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatTransferReport to get"}],"responses":{"200":{"description":"ChatTransferReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatTransferReport not found"}}},"put":{"summary":"Update an existing Chat Transfer Report","security":[{"BearerAuth":[]}],"operationId":"updateChatTransferReportById","tags":["Chat Transfer Reports"],"requestBody":{"required":true,"description":"data for updating a new Chat Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatTransferReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatTransferReport not found"}}}},"/chat/reports/transfer/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Chat Transfer Report","security":[{"BearerAuth":[]}],"operationId":"deleteChatTransferReportById","tags":["Chat Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatTransferReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatTransferReport not found"}}}},"/chat/websites":{"get":{"summary":"Gets a list of Websites","security":[{"BearerAuth":[]}],"operationId":"listAllChatWebsite","tags":["Chat Websites"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ChatWebsite"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Websites","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatWebsite"}}}}},"206":{"description":"Partial (paged) collection of Websites","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatWebsite"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Website","security":[{"BearerAuth":[]}],"operationId":"createChatWebsite","tags":["Chat Websites"],"requestBody":{"required":true,"description":"data for creating a new Website","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"},"description":{"type":"string"},"mapKey":{"type":"string","default":"email"},"mapKeyOffline":{"type":"string","default":"email"},"key":{"type":"string"},"agentAlias":{"type":"string","default":"Agent"},"customerAlias":{"type":"string","default":"Me"},"color":{"type":"string","default":"#011F6A"},"color_button":{"type":"string","default":"#011F6A"},"textColor":{"type":"string","default":"#ffffff"},"fontSize":{"type":"integer","default":15},"remote":{"type":"string"},"animation":{"type":"boolean","default":true},"header_shape":{"type":"string","enum":["rounded","squared"],"default":"rounded"},"header_online":{"type":"string","default":"We are here!"},"start_chat_button":{"type":"string","default":"Chat"},"offline_chat_button":{"type":"string","default":"Send"},"header_offline":{"type":"string","default":"Contact us"},"download_transcript":{"type":"boolean","default":true},"timeout":{"type":"integer","default":0},"whiteLabel":{"type":"string","default":"Powered by xCALLY"},"defaultWhiteLabel":{"type":"boolean","default":true},"sitepic":{"type":"string"},"closingQuestion":{"type":"string","default":"Do you want to close the interaction?"},"formSubmitSuccessMessage":{"type":"string","default":"Form properly submitted"},"formSubmitFailureMessage":{"type":"string","default":"Form submission error"},"noteTitle":{"type":"string","default":"Note"},"placeholderMessage":{"type":"string","default":"Type a message"},"closingMessage":{"type":"string","default":"Thanks you for your time!"},"closingMessageButton":{"type":"string","default":"Send"},"skipMessageButton":{"type":"string","default":"Skip"},"conditionAgreement":{"type":"boolean","default":false},"enableRating":{"type":"boolean","default":false},"enableFeedback":{"type":"boolean","default":false},"enableSendButton":{"type":"boolean","default":false},"feedbackTitle":{"type":"string","default":"Feedback"},"ratingType":{"type":"string","enum":["star","thumb"],"default":"star"},"ratingStarsNumber":{"type":"integer","default":5},"onlineForm":{"type":"string","default":"{\"items\":[{\"type\":\"input\",\"variable\":null,\"config\":{\"placeholder\":\"name\",\"type\":\"text\",\"required\":true},\"props\":{\"title\":\"name\",\"helpText\":\"\"}},{\"type\":\"input\",\"props\":{\"title\":\"email\",\"helpText\":\"\"},\"config\":{\"required\":true,\"placeholder\":\"email\",\"type\":\"email\"},\"variable\":null}],\"fromKey\":1}"},"offlineForm":{"type":"string","default":"{\"items\":[{\"type\":\"input\",\"props\":{\"title\":\"email\",\"helpText\":\"\"},\"config\":{\"required\":true,\"placeholder\":\"email\",\"type\":\"email\"},\"variable\":null},{\"type\":\"textarea\",\"config\":{\"placeholder\":\"Comments\"},\"props\":{\"title\":\"Comments\",\"helpText\":\"Leave your comments\"}}],\"fromKey\":0}"},"token":{"type":"string","default":"6NYikaKczHDsD4EV1s72ZpdP7g2lv37W"},"autoclose":{"type":"boolean","default":true},"enableCustomerWriting":{"type":"boolean","default":false},"forwardTranscript":{"type":"boolean","default":false},"forwardTranscriptMessage":{"type":"string"},"forwardOffline":{"type":"boolean","default":false},"forwardOfflineAddress":{"type":"string"},"waitingTitle":{"type":"string","default":"All of our agents are busy at this time. Your chat is very important to us."},"waitingMessage":{"type":"string","default":"Please hold and we will answer your request as soon as possible."},"offlineMessageSubject":{"type":"string","default":"New offline message from websiteName"},"offlineMessageBody":{"type":"string","default":"You received a new offline message from websiteName. Here you can find the details of the request:"},"enableUnmanagedNote":{"type":"boolean","default":true},"unmanagedMessage":{"type":"string","default":"Your request has not been processed."},"skipUnmanaged":{"type":"string","default":"Skip"},"sendUnmanaged":{"type":"string","default":"Send"},"enableCustomerAttachment":{"type":"boolean","default":false},"enableCustomerCheckmarks":{"type":"boolean","default":false},"agentAvatar":{"type":"string"},"showAgentAvatar":{"type":"boolean","default":false},"timezone":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"hideWhenOffline":{"type":"boolean","default":false},"agentIdentifier":{"type":"string","default":"website_alias"},"waitForTheAssignedAgent":{"type":"integer","default":10},"alignment":{"type":"string","default":"bottom_right"},"verticalAlignment":{"type":"integer","default":30},"messagesAlignment":{"type":"string","default":"alternate"},"defaultTitle":{"type":"string"},"customerAvatar":{"type":"string"},"showCustomerAvatar":{"type":"boolean","default":false},"messageFontSize":{"type":"integer","default":12},"backgroundColor":{"type":"string","default":"#fafafa"},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"systemAlias":{"type":"string","default":"System"},"systemAvatar":{"type":"string"},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false},"vidaooEscalation":{"type":"boolean","default":false},"vidaooApiKey":{"type":"string","default":false}},"required":["name","address","key","color","color_button","textColor","backgroundColor"]}}}},"responses":{"201":{"description":"ChatWebsite successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatWebsite"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/describe":{"get":{"summary":"Gets table info about Websites","security":[{"BearerAuth":[]}],"operationId":"describeChatWebsite","tags":["Chat Websites"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}":{"get":{"summary":"Gets a single Website","security":[{"BearerAuth":[]}],"operationId":"getChatWebsiteById","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite to get"}],"responses":{"200":{"description":"ChatWebsite with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatWebsite"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatWebsite not found"}}},"put":{"summary":"Update an existing Website","security":[{"BearerAuth":[]}],"operationId":"updateChatWebsiteById","tags":["Chat Websites"],"requestBody":{"required":true,"description":"data for updating a new Website","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"},"description":{"type":"string"},"mapKey":{"type":"string","default":"email"},"mapKeyOffline":{"type":"string","default":"email"},"key":{"type":"string"},"agentAlias":{"type":"string","default":"Agent"},"customerAlias":{"type":"string","default":"Me"},"color":{"type":"string","default":"#011F6A"},"color_button":{"type":"string","default":"#011F6A"},"textColor":{"type":"string","default":"#ffffff"},"fontSize":{"type":"integer","default":15},"remote":{"type":"string"},"animation":{"type":"boolean","default":true},"header_shape":{"type":"string","enum":["rounded","squared"],"default":"rounded"},"header_online":{"type":"string","default":"We are here!"},"start_chat_button":{"type":"string","default":"Chat"},"offline_chat_button":{"type":"string","default":"Send"},"header_offline":{"type":"string","default":"Contact us"},"download_transcript":{"type":"boolean","default":true},"timeout":{"type":"integer","default":0},"whiteLabel":{"type":"string","default":"Powered by xCALLY"},"defaultWhiteLabel":{"type":"boolean","default":true},"sitepic":{"type":"string"},"closingQuestion":{"type":"string","default":"Do you want to close the interaction?"},"formSubmitSuccessMessage":{"type":"string","default":"Form properly submitted"},"formSubmitFailureMessage":{"type":"string","default":"Form submission error"},"noteTitle":{"type":"string","default":"Note"},"placeholderMessage":{"type":"string","default":"Type a message"},"closingMessage":{"type":"string","default":"Thanks you for your time!"},"closingMessageButton":{"type":"string","default":"Send"},"skipMessageButton":{"type":"string","default":"Skip"},"conditionAgreement":{"type":"boolean","default":false},"enableRating":{"type":"boolean","default":false},"enableFeedback":{"type":"boolean","default":false},"enableSendButton":{"type":"boolean","default":false},"feedbackTitle":{"type":"string","default":"Feedback"},"ratingType":{"type":"string","enum":["star","thumb"],"default":"star"},"ratingStarsNumber":{"type":"integer","default":5},"onlineForm":{"type":"string","default":"{\"items\":[{\"type\":\"input\",\"variable\":null,\"config\":{\"placeholder\":\"name\",\"type\":\"text\",\"required\":true},\"props\":{\"title\":\"name\",\"helpText\":\"\"}},{\"type\":\"input\",\"props\":{\"title\":\"email\",\"helpText\":\"\"},\"config\":{\"required\":true,\"placeholder\":\"email\",\"type\":\"email\"},\"variable\":null}],\"fromKey\":1}"},"offlineForm":{"type":"string","default":"{\"items\":[{\"type\":\"input\",\"props\":{\"title\":\"email\",\"helpText\":\"\"},\"config\":{\"required\":true,\"placeholder\":\"email\",\"type\":\"email\"},\"variable\":null},{\"type\":\"textarea\",\"config\":{\"placeholder\":\"Comments\"},\"props\":{\"title\":\"Comments\",\"helpText\":\"Leave your comments\"}}],\"fromKey\":0}"},"token":{"type":"string","default":"sUS2aAfQTKplrp7C7e7Y0msoJi1Tvt11"},"autoclose":{"type":"boolean","default":true},"enableCustomerWriting":{"type":"boolean","default":false},"forwardTranscript":{"type":"boolean","default":false},"forwardTranscriptMessage":{"type":"string"},"forwardOffline":{"type":"boolean","default":false},"forwardOfflineAddress":{"type":"string"},"waitingTitle":{"type":"string","default":"All of our agents are busy at this time. Your chat is very important to us."},"waitingMessage":{"type":"string","default":"Please hold and we will answer your request as soon as possible."},"offlineMessageSubject":{"type":"string","default":"New offline message from websiteName"},"offlineMessageBody":{"type":"string","default":"You received a new offline message from websiteName. Here you can find the details of the request:"},"enableUnmanagedNote":{"type":"boolean","default":true},"unmanagedMessage":{"type":"string","default":"Your request has not been processed."},"skipUnmanaged":{"type":"string","default":"Skip"},"sendUnmanaged":{"type":"string","default":"Send"},"enableCustomerAttachment":{"type":"boolean","default":false},"enableCustomerCheckmarks":{"type":"boolean","default":false},"agentAvatar":{"type":"string"},"showAgentAvatar":{"type":"boolean","default":false},"timezone":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"hideWhenOffline":{"type":"boolean","default":false},"agentIdentifier":{"type":"string","default":"website_alias"},"waitForTheAssignedAgent":{"type":"integer","default":10},"alignment":{"type":"string","default":"bottom_right"},"verticalAlignment":{"type":"integer","default":30},"messagesAlignment":{"type":"string","default":"alternate"},"defaultTitle":{"type":"string"},"customerAvatar":{"type":"string"},"showCustomerAvatar":{"type":"boolean","default":false},"messageFontSize":{"type":"integer","default":12},"backgroundColor":{"type":"string","default":"#fafafa"},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"systemAlias":{"type":"string","default":"System"},"systemAvatar":{"type":"string"},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false},"vidaooEscalation":{"type":"boolean","default":false},"vidaooApiKey":{"type":"string","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatWebsite not found"}}}},"/chat/websites/{id}/dispositions":{"get":{"summary":"Gets account dispositions","security":[{"BearerAuth":[]}],"operationId":"getDispositions","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new disposition","security":[{"BearerAuth":[]}],"operationId":"addDisposition","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes canned answers from account","security":[{"BearerAuth":[]}],"operationId":"removeDispositions","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/canned_answers":{"get":{"summary":"Gets account canned answers","security":[{"BearerAuth":[]}],"operationId":"getAnswers","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new canned answer","security":[{"BearerAuth":[]}],"operationId":"addAnswer","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes canned answers from account","security":[{"BearerAuth":[]}],"operationId":"removeAnswers","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/logo":{"get":{"summary":"Get logo","operationId":"getLogo","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Add logo","security":[{"BearerAuth":[]}],"operationId":"postaddLogo","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/avatar":{"get":{"summary":"Get avatar","operationId":"getAvatar","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Add avatar","security":[{"BearerAuth":[]}],"operationId":"postaddAvatar","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/customer_avatar":{"get":{"summary":"Get Customer Avatar","operationId":"getCustomerAvatar","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Add customer avatar","security":[{"BearerAuth":[]}],"operationId":"postaddCustomerAvatar","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/system_avatar":{"get":{"summary":"Get System Avatar","operationId":"getSystemAvatar","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Add system avatar","security":[{"BearerAuth":[]}],"operationId":"postaddSystemAvatar","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/interactions":{"get":{"summary":"Gets Website Interactions","security":[{"BearerAuth":[]}],"operationId":"getInteractions","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new interactions","security":[{"BearerAuth":[]}],"operationId":"addInteraction","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/snippet":{"get":{"summary":"Gets Website Snippet","operationId":"getSnippet","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/chat/websites/{id}/applications":{"get":{"summary":"Gets Website Applications","security":[{"BearerAuth":[]}],"operationId":"getApplications","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new applications","security":[{"BearerAuth":[]}],"operationId":"addApplications","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/proactive_actions":{"get":{"summary":"Gets Website Proactive Actions","security":[{"BearerAuth":[]}],"operationId":"getProactiveActions","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new Proactive Actions","security":[{"BearerAuth":[]}],"operationId":"addProactiveActions","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/fields":{"get":{"summary":"Gets Website Fields","operationId":"getFields","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/chat/websites/{id}/offline_messages":{"get":{"summary":"Gets Website Offline Messages","security":[{"BearerAuth":[]}],"operationId":"getOfflineMessages","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/users":{"get":{"summary":"Gets agents from website","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a website","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a website","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/chat/websites/{id}/notify":{"post":{"summary":"Notify new message","operationId":"notify","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"201":{"description":"successfully created"}}}},"/chat/websites/{id}/offline":{"post":{"summary":"Offline message","operationId":"offline","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite"}],"responses":{"201":{"description":"successfully created"}}}},"/chat/websites/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Website","security":[{"BearerAuth":[]}],"operationId":"deleteChatWebsiteById","tags":["Chat Websites"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChatWebsite to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ChatWebsite not found"}}}},"/cloudProviders":{"get":{"summary":"Gets a list of CloudProviders","security":[{"BearerAuth":[]}],"operationId":"listAllCloudProvider","tags":["CloudProviders"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CloudProvider"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of CloudProviders","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CloudProvider"}}}}},"206":{"description":"Partial (paged) collection of CloudProviders","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CloudProvider"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new CloudProvider","security":[{"BearerAuth":[]}],"operationId":"createCloudProvider","tags":["CloudProviders"],"requestBody":{"required":true,"description":"data for creating a new CloudProvider","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"service":{"type":"string","enum":["AmazonAWS","Google"]},"data1":{"type":"string"},"data2":{"type":"string"}},"required":["name","service"]}}}},"responses":{"201":{"description":"CloudProvider successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudProvider"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cloudProviders/{id}":{"get":{"summary":"Gets a single CloudProvider","security":[{"BearerAuth":[]}],"operationId":"getCloudProviderById","tags":["CloudProviders"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CloudProvider to get"}],"responses":{"200":{"description":"CloudProvider with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudProvider"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CloudProvider not found"}}},"put":{"summary":"Update an existing CloudProvider","security":[{"BearerAuth":[]}],"operationId":"updateCloudProviderById","tags":["CloudProviders"],"requestBody":{"required":true,"description":"data for updating a new CloudProvider","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"service":{"type":"string","enum":["AmazonAWS","Google"]},"data1":{"type":"string"},"data2":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CloudProvider to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CloudProvider not found"}}}},"/cloudProviders/{id}/destroy_many":{"delete":{"summary":"Destroy an existing CloudProvider","security":[{"BearerAuth":[]}],"operationId":"deleteCloudProviderById","tags":["CloudProviders"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CloudProvider to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CloudProvider not found"}}}},"/cm/companies":{"get":{"summary":"Gets a list of Companies","security":[{"BearerAuth":[]}],"operationId":"listAllCmCompany","tags":["Cm Companies"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CmCompany"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Companies","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmCompany"}}}}},"206":{"description":"Partial (paged) collection of Companies","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmCompany"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Company","security":[{"BearerAuth":[]}],"operationId":"createCmCompany","tags":["Cm Companies"],"requestBody":{"required":true,"description":"data for creating a new Company","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"vat":{"type":"string"},"companyId":{"type":"string"},"website":{"type":"string"},"phone":{"type":"string"},"fax":{"type":"string"},"type":{"type":"string"},"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"email":{"type":"string"},"emailDomain":{"type":"string"},"sStreet":{"type":"string"},"sPostalCode":{"type":"string"},"sCity":{"type":"string"},"sCountry":{"type":"string"},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"CmCompany successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmCompany"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/companies/describe":{"get":{"summary":"Gets table info about Companies","security":[{"BearerAuth":[]}],"operationId":"describeCmCompany","tags":["Cm Companies"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/companies/{id}":{"get":{"summary":"Gets a single Company","security":[{"BearerAuth":[]}],"operationId":"getCmCompanyById","tags":["Cm Companies"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmCompany to get"}],"responses":{"200":{"description":"CmCompany with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmCompany"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmCompany not found"}}},"put":{"summary":"Update an existing Company","security":[{"BearerAuth":[]}],"operationId":"updateCmCompanyById","tags":["Cm Companies"],"requestBody":{"required":true,"description":"data for updating a new Company","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"vat":{"type":"string"},"companyId":{"type":"string"},"website":{"type":"string"},"phone":{"type":"string"},"fax":{"type":"string"},"type":{"type":"string"},"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"email":{"type":"string"},"emailDomain":{"type":"string"},"sStreet":{"type":"string"},"sPostalCode":{"type":"string"},"sCity":{"type":"string"},"sCountry":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmCompany to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmCompany not found"}}}},"/cm/companies/{id}/contacts":{"get":{"summary":"Gets List Contacts","security":[{"BearerAuth":[]}],"operationId":"getContacts","tags":["Cm Companies"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmCompany"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new contacts","security":[{"BearerAuth":[]}],"operationId":"addContacts","tags":["Cm Companies"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmCompany"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/companies/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Company","security":[{"BearerAuth":[]}],"operationId":"deleteCmCompanyById","tags":["Cm Companies"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmCompany to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmCompany not found"}}}},"/cm/contacts":{"get":{"summary":"Gets a list of Contacts","security":[{"BearerAuth":[]}],"operationId":"listAllCmContact","tags":["Cm Contacts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CmContact"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Contacts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmContact"}}}}},"206":{"description":"Partial (paged) collection of Contacts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmContact"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/describe":{"get":{"summary":"Gets table info about Contacts","security":[{"BearerAuth":[]}],"operationId":"describeCmContact","tags":["Cm Contacts"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/{id}":{"get":{"summary":"Gets a single Contact","security":[{"BearerAuth":[]}],"operationId":"show","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"put":{"summary":"Update a single Contact","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/{id}/tags":{"get":{"summary":"Gets configurations tags","security":[{"BearerAuth":[]}],"operationId":"getTags","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Sets new tags","security":[{"BearerAuth":[]}],"operationId":"setTags","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/{id}/hoppers":{"get":{"summary":"Gets contact hoppers","security":[{"BearerAuth":[]}],"operationId":"getHoppers","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/{id}/hopper_histories":{"get":{"summary":"Gets contact hopper histories","security":[{"BearerAuth":[]}],"operationId":"getHopperHistories","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/{id}/hopper_finals":{"get":{"summary":"Gets contact hopper finals","security":[{"BearerAuth":[]}],"operationId":"getHopperFinals","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/{id}/jscripty_sessions":{"get":{"summary":"Gets contact hopper blacks","security":[{"BearerAuth":[]}],"operationId":"getJscriptySessions","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/merge":{"post":{"summary":"Merge Contact","security":[{"BearerAuth":[]}],"operationId":"merge","tags":["Cm Contacts"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/":{"post":{"summary":"Create Contact","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Cm Contacts"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/create_many":{"post":{"summary":"Create Contacts","security":[{"BearerAuth":[]}],"operationId":"bulkCreate","tags":["Cm Contacts"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/upload":{"post":{"summary":"Upload csv","security":[{"BearerAuth":[]}],"operationId":"postupload","tags":["Cm contacts"],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/upload/{id}":{"post":{"summary":"Import new contacts by csv","security":[{"BearerAuth":[]}],"operationId":"import","tags":["Cm contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/contacts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Contact","security":[{"BearerAuth":[]}],"operationId":"deleteCmContactById","tags":["Cm Contacts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmContact to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmContact not found"}}}},"/cm/custom_fields":{"get":{"summary":"Gets a list of Custom Fields","security":[{"BearerAuth":[]}],"operationId":"listAllCmCustomField","tags":["Cm Custom Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CmCustomField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Custom Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmCustomField"}}}}},"206":{"description":"Partial (paged) collection of Custom Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmCustomField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/custom_fields/{id}":{"get":{"summary":"Gets a single Custom Field","security":[{"BearerAuth":[]}],"operationId":"getCmCustomFieldById","tags":["Cm Custom Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmCustomField to get"}],"responses":{"200":{"description":"CmCustomField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmCustomField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmCustomField not found"}}},"put":{"summary":"Update an existing Custom Field","security":[{"BearerAuth":[]}],"operationId":"updateCmCustomFieldById","tags":["Cm Custom Fields"],"requestBody":{"required":true,"description":"data for updating a new Custom Field","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"alias":{"type":"string"},"type":{"type":"string"},"values":{"type":"string"},"required":{"type":"boolean","default":false},"clickToAction":{"type":"boolean","default":false},"actionType":{"type":"string","enum":["voice"]}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmCustomField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmCustomField not found"}}}},"/cm/custom_fields/":{"post":{"summary":"Create a new custom field","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Custom Fields"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/custom_fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Custom Field","security":[{"BearerAuth":[]}],"operationId":"deleteCmCustomFieldById","tags":["Cm Custom Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmCustomField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmCustomField not found"}}}},"/cm/hopper":{"get":{"summary":"Gets a list of Hopper","security":[{"BearerAuth":[]}],"operationId":"listAllCmHopper","tags":["Cm Hopper"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CmHopper"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Hopper","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmHopper"}}}}},"206":{"description":"Partial (paged) collection of Hopper","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmHopper"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Hopper","security":[{"BearerAuth":[]}],"operationId":"createCmHopper","tags":["Cm Hopper"],"requestBody":{"required":true,"description":"data for creating a new Hopper","content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"type":"string"},"active":{"type":"boolean","default":false},"scheduledat":{"type":"string","default":"2020-11-27 10:41:25"},"countbusyretry":{"type":"integer","default":0},"countcongestionretry":{"type":"integer","default":0},"countnoanswerretry":{"type":"integer","default":0},"callback":{"type":"boolean","default":false},"callbackuniqueid":{"type":"string","default":null},"callbackat":{"type":"string"},"priority":{"type":"integer","default":2},"recallme":{"type":"boolean","default":false},"ContactId":{"type":"integer"},"ListId":{"type":"integer"},"UserId":{"type":"integer"},"VoiceQueueId":{"type":"integer"},"CampaignId":{"type":"integer"},"countnosuchnumberretry":{"type":"integer","default":0},"countdropretry":{"type":"integer","default":0},"countabandonedretry":{"type":"integer","default":0},"countmachineretry":{"type":"integer","default":0},"countagentrejectretry":{"type":"integer","default":0}},"required":["phone"]}}}},"responses":{"201":{"description":"CmHopper successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmHopper"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper/describe":{"get":{"summary":"Gets table info about Hopper","security":[{"BearerAuth":[]}],"operationId":"describeCmHopper","tags":["Cm Hopper"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper/opencontacts":{"get":{"summary":"Gets Open Contacts","security":[{"BearerAuth":[]}],"operationId":"getOpenContacts","tags":["Cm Hopper"],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper/{id}":{"get":{"summary":"Gets a single Hopper","security":[{"BearerAuth":[]}],"operationId":"getCmHopperById","tags":["Cm Hopper"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopper to get"}],"responses":{"200":{"description":"CmHopper with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmHopper"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmHopper not found"}}},"put":{"summary":"Update an existing Hopper","security":[{"BearerAuth":[]}],"operationId":"updateCmHopperById","tags":["Cm Hopper"],"requestBody":{"required":true,"description":"data for updating a new Hopper","content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"type":"string"},"active":{"type":"boolean","default":false},"scheduledat":{"type":"string","default":"2020-11-27 10:41:25"},"countbusyretry":{"type":"integer","default":0},"countcongestionretry":{"type":"integer","default":0},"countnoanswerretry":{"type":"integer","default":0},"callback":{"type":"boolean","default":false},"callbackuniqueid":{"type":"string","default":null},"callbackat":{"type":"string"},"priority":{"type":"integer","default":2},"recallme":{"type":"boolean","default":false},"ContactId":{"type":"integer"},"ListId":{"type":"integer"},"UserId":{"type":"integer"},"VoiceQueueId":{"type":"integer"},"CampaignId":{"type":"integer"},"countnosuchnumberretry":{"type":"integer","default":0},"countdropretry":{"type":"integer","default":0},"countabandonedretry":{"type":"integer","default":0},"countmachineretry":{"type":"integer","default":0},"countagentrejectretry":{"type":"integer","default":0}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopper to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmHopper not found"}}},"delete":{"summary":"Delete Hopper","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Cm Hopper"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopper"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper/preview":{"post":{"summary":"Gets Preview Dialer Contacts","security":[{"BearerAuth":[]}],"operationId":"getPreview","tags":["Cm Hopper"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_black":{"get":{"summary":"Gets a list of Hopper Black","security":[{"BearerAuth":[]}],"operationId":"listAllCmHopperBlack","tags":["Cm Hopper Black"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CmHopperBlack"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Hopper Black","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmHopperBlack"}}}}},"206":{"description":"Partial (paged) collection of Hopper Black","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmHopperBlack"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_black/describe":{"get":{"summary":"Gets table info about Hopper Black","security":[{"BearerAuth":[]}],"operationId":"describeCmHopperBlack","tags":["Cm Hopper Black"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_black/{id}":{"get":{"summary":"Gets a single Hopper Black","security":[{"BearerAuth":[]}],"operationId":"getCmHopperBlackById","tags":["Cm Hopper Black"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperBlack to get"}],"responses":{"200":{"description":"CmHopperBlack with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmHopperBlack"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmHopperBlack not found"}}},"put":{"summary":"Update an existing Hopper Black","security":[{"BearerAuth":[]}],"operationId":"updateCmHopperBlackById","tags":["Cm Hopper Black"],"requestBody":{"required":true,"description":"data for updating a new Hopper Black","content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"type":"string"},"ContactId":{"type":"integer"},"ListId":{"type":"integer"},"VoiceQueueId":{"type":"integer"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperBlack to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmHopperBlack not found"}}}},"/cm/hopper_black/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Hopper Black","security":[{"BearerAuth":[]}],"operationId":"deleteCmHopperBlackById","tags":["Cm Hopper Black"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperBlack to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmHopperBlack not found"}}}},"/cm/hopper_final":{"get":{"summary":"Gets a list of HopperFinal","security":[{"BearerAuth":[]}],"operationId":"listAllCmHopperFinal","tags":["Cm Hopper Final"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CmHopperFinal"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of HopperFinal","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmHopperFinal"}}}}},"206":{"description":"Partial (paged) collection of HopperFinal","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmHopperFinal"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_final/describe":{"get":{"summary":"Gets table info about HopperFinal","security":[{"BearerAuth":[]}],"operationId":"describeCmHopperFinal","tags":["Cm Hopper Final"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_final/{id}":{"get":{"summary":"Gets a single HopperFinal","security":[{"BearerAuth":[]}],"operationId":"getCmHopperFinalById","tags":["Cm Hopper Final"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperFinal to get"}],"responses":{"200":{"description":"CmHopperFinal with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmHopperFinal"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmHopperFinal not found"}}},"put":{"summary":"Update a single hopper final","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Cm Hopper Final"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperFinal"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_final/voice/queue/countAttributes/{id}":{"get":{"summary":"Return number contacts for attributes","security":[{"BearerAuth":[]}],"operationId":"countContactsQueueCampaignHopperFinal","tags":["Cm Hopper Final"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperFinal"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_final/campaign/countAttributes/{id}":{"get":{"summary":"Return number contacts for attributes","security":[{"BearerAuth":[]}],"operationId":"countContactsIvrCampaignHopperFinal","tags":["Cm Hopper Final"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperFinal"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_final/voice/queue/moveContacts/{id}":{"post":{"summary":"Move contacts in hopper","security":[{"BearerAuth":[]}],"operationId":"moveContactsQueueCampaignHopperFinal","tags":["Cm Hopper Final"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperFinal"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_final/voice/campaign/moveContacts/{id}":{"post":{"summary":"Move contacts in hopper","security":[{"BearerAuth":[]}],"operationId":"moveContactsIvrCampaignHopperFinal","tags":["Cm Hopper Final"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperFinal"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_final/checkContactHopper":{"post":{"summary":"Check if contact is in hopper","security":[{"BearerAuth":[]}],"operationId":"checkContactHopper","tags":["Cm Hopper Final"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_history":{"get":{"summary":"Gets a list of HopperHistory","security":[{"BearerAuth":[]}],"operationId":"listAllCmHopperHistory","tags":["Cm Hopper History"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CmHopperHistory"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of HopperHistory","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmHopperHistory"}}}}},"206":{"description":"Partial (paged) collection of HopperHistory","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmHopperHistory"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new HopperHistory","security":[{"BearerAuth":[]}],"operationId":"createCmHopperHistory","tags":["Cm Hopper History"],"requestBody":{"required":true,"description":"data for creating a new HopperHistory","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"integer"},"statedesc":{"type":"string"},"scheduledat":{"type":"string"},"countbusyretry":{"type":"integer","default":0},"countcongestionretry":{"type":"integer","default":0},"countnoanswerretry":{"type":"integer","default":0},"countglobal":{"type":"integer","default":0},"uniqueid":{"type":"string"},"originatecalleridnum":{"type":"string"},"originatecalleridname":{"type":"string"},"calleridnum":{"type":"string"},"calleridname":{"type":"string"},"starttime":{"type":"string"},"responsetime":{"type":"string"},"answertime":{"type":"string"},"droptime":{"type":"string"},"endtime":{"type":"string"},"ringtime":{"type":"integer","default":0},"holdtime":{"type":"integer","default":0},"talktime":{"type":"integer","default":0},"followuptime":{"type":"integer","default":0},"dropreason":{"type":"string"},"campaign":{"type":"string"},"campaigntype":{"type":"string"},"membername":{"type":"string"},"reason":{"type":"string"},"amd":{"type":"boolean","default":false},"fax":{"type":"boolean","default":false},"callback":{"type":"boolean","default":false},"callbackuniqueid":{"type":"string","default":null},"callbackat":{"type":"string"},"recallme":{"type":"boolean","default":false},"editedat":{"type":"string"},"edited":{"type":"boolean","default":false},"countnosuchnumberretry":{"type":"integer","default":0},"countdropretry":{"type":"integer","default":0},"countabandonedretry":{"type":"integer","default":0},"countmachineretry":{"type":"integer","default":0},"countagentrejectretry":{"type":"integer","default":0}}}}}},"responses":{"201":{"description":"CmHopperHistory successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmHopperHistory"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_history/describe":{"get":{"summary":"Gets table info about HopperHistory","security":[{"BearerAuth":[]}],"operationId":"describeCmHopperHistory","tags":["Cm Hopper History"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/hopper_history/{id}":{"get":{"summary":"Gets a single HopperHistory","security":[{"BearerAuth":[]}],"operationId":"getCmHopperHistoryById","tags":["Cm Hopper History"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperHistory to get"}],"responses":{"200":{"description":"CmHopperHistory with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmHopperHistory"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmHopperHistory not found"}}},"put":{"summary":"Update a single hopper history","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Cm Hopper History"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmHopperHistory"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/lists":{"get":{"summary":"Gets a list of Lists","security":[{"BearerAuth":[]}],"operationId":"listAllCmList","tags":["Cm Lists"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each CmList"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Lists","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmList"}}}}},"206":{"description":"Partial (paged) collection of Lists","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmList"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new List","security":[{"BearerAuth":[]}],"operationId":"createCmList","tags":["Cm Lists"],"requestBody":{"required":true,"description":"data for creating a new List","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"dialPrefix":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"CmList successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmList"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/lists/describe":{"get":{"summary":"Gets table info about Lists","security":[{"BearerAuth":[]}],"operationId":"describeCmList","tags":["Cm Lists"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/lists/{id}":{"get":{"summary":"Gets a single List","security":[{"BearerAuth":[]}],"operationId":"getCmListById","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList to get"}],"responses":{"200":{"description":"CmList with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmList"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmList not found"}}},"put":{"summary":"Update an existing List","security":[{"BearerAuth":[]}],"operationId":"updateCmListById","tags":["Cm Lists"],"requestBody":{"required":true,"description":"data for updating a new List","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"dialPrefix":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmList not found"}}}},"/cm/lists/{id}/dispositions":{"get":{"summary":"Gets list dispositions","security":[{"BearerAuth":[]}],"operationId":"getDispositions","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new disposition","security":[{"BearerAuth":[]}],"operationId":"addDisposition","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes dispositions from account","security":[{"BearerAuth":[]}],"operationId":"removeDispositions","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/lists/{id}/contacts":{"get":{"summary":"Gets List Contacts","security":[{"BearerAuth":[]}],"operationId":"getContacts","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new contacts","security":[{"BearerAuth":[]}],"operationId":"addContacts","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/lists/{id}/contacts/csv":{"get":{"summary":"Gets CSV List Contacts","security":[{"BearerAuth":[]}],"operationId":"getContactsCsv","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/lists/{id}/fields":{"get":{"summary":"Gets Custom Fields","security":[{"BearerAuth":[]}],"operationId":"getCustomFields","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new custom field","security":[{"BearerAuth":[]}],"operationId":"addCustomField","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/lists/{id}/users":{"get":{"summary":"Gets agents from list","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Adds agents to a list","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a list","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/cm/lists/{id}/destroy_many":{"delete":{"summary":"Destroy an existing List","security":[{"BearerAuth":[]}],"operationId":"deleteCmListById","tags":["Cm Lists"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the CmList to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"CmList not found"}}}},"/conditions/{id}":{"put":{"summary":"Update an existing Condition","security":[{"BearerAuth":[]}],"operationId":"updateConditionById","tags":["Conditions"],"requestBody":{"required":true,"description":"data for updating a new Condition","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"field":{"type":"string"},"operator":{"type":"string"},"value":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Condition to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Condition not found"}}}},"/conditions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Condition","security":[{"BearerAuth":[]}],"operationId":"deleteConditionById","tags":["Conditions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Condition to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Condition not found"}}}},"/dashboards":{"get":{"summary":"Gets a list of Dashboards","security":[{"BearerAuth":[]}],"operationId":"listAllDashboard","tags":["Dashboards"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Dashboard"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Dashboards","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dashboard"}}}}},"206":{"description":"Partial (paged) collection of Dashboards","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dashboard"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Dashboard","security":[{"BearerAuth":[]}],"operationId":"createDashboard","tags":["Dashboards"],"requestBody":{"required":true,"description":"data for creating a new Dashboard","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"Dashboard successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboard"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/dashboards/{id}":{"get":{"summary":"Gets a single Dashboard","security":[{"BearerAuth":[]}],"operationId":"getDashboardById","tags":["Dashboards"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dashboard to get"}],"responses":{"200":{"description":"Dashboard with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboard"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dashboard not found"}}},"put":{"summary":"Update an existing Dashboard","security":[{"BearerAuth":[]}],"operationId":"updateDashboardById","tags":["Dashboards"],"requestBody":{"required":true,"description":"data for updating a new Dashboard","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dashboard to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dashboard not found"}}}},"/dashboards/{id}/items":{"get":{"summary":"Gets items","security":[{"BearerAuth":[]}],"operationId":"getItems","tags":["Dashboards"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dashboard"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new item","security":[{"BearerAuth":[]}],"operationId":"addItem","tags":["Dashboards"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dashboard"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/dashboards/clone":{"post":{"summary":"Clone an existing Dashboard","security":[{"BearerAuth":[]}],"operationId":"cloneDashboard","tags":["Dashboards"],"requestBody":{"required":true,"description":"data for creating a new Dashboard","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"id of the Dashboard to clone"},"name":{"type":"string"},"description":{"type":"string"}},"required":["id"]}}}},"responses":{"201":{"description":"Dashboard successfully cloned. Returns the cloned object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboard"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/dashboards/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Dashboard","security":[{"BearerAuth":[]}],"operationId":"deleteDashboardById","tags":["Dashboards"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dashboard to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dashboard not found"}}}},"/dashboards/items/{id}":{"get":{"summary":"Gets a single Dashboard Item","security":[{"BearerAuth":[]}],"operationId":"getDashboardItemById","tags":["Dashboard Items"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DashboardItem to get"}],"responses":{"200":{"description":"DashboardItem with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardItem"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DashboardItem not found"}}},"put":{"summary":"Update an existing item","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Dashboard Items"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DashboardItem"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/dashboards/items/":{"post":{"summary":"Create dasboard item","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Dashboard Items"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/dashboards/items/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Dashboard Item","security":[{"BearerAuth":[]}],"operationId":"deleteDashboardItemById","tags":["Dashboard Items"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DashboardItem to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DashboardItem not found"}}}},"/dispositions":{"get":{"summary":"Gets a list of Dispositions","security":[{"BearerAuth":[]}],"operationId":"listAllDisposition","tags":["Dispositions"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Disposition"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Dispositions","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Disposition"}}}}},"206":{"description":"Partial (paged) collection of Dispositions","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Disposition"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Disposition","security":[{"BearerAuth":[]}],"operationId":"createDisposition","tags":["Dispositions"],"requestBody":{"required":true,"description":"data for creating a new Disposition","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"level":{"type":"string","enum":["first","second","third"],"default":"first"},"description":{"type":"string"}},"required":["name","level"]}}}},"responses":{"201":{"description":"Disposition successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Disposition"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/dispositions/{id}":{"get":{"summary":"Gets a single Disposition","security":[{"BearerAuth":[]}],"operationId":"getDispositionById","tags":["Dispositions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Disposition to get"}],"responses":{"200":{"description":"Disposition with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Disposition"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Disposition not found"}}},"put":{"summary":"Update an existing Disposition","security":[{"BearerAuth":[]}],"operationId":"updateDispositionById","tags":["Dispositions"],"requestBody":{"required":true,"description":"data for updating a new Disposition","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"level":{"type":"string","enum":["first","second","third"],"default":"first"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Disposition to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Disposition not found"}}}},"/dispositions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Disposition","security":[{"BearerAuth":[]}],"operationId":"deleteDispositionById","tags":["Dispositions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Disposition to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Disposition not found"}}}},"/fax/accounts":{"get":{"summary":"Gets a list of Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllFaxAccount","tags":["Fax Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FaxAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxAccount"}}}}},"206":{"description":"Partial (paged) collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Account","security":[{"BearerAuth":[]}],"operationId":"createFaxAccount","tags":["Fax Accounts"],"requestBody":{"required":true,"description":"data for creating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"ecm":{"type":"string","enum":["yes","no"],"default":"yes"},"headerinfo":{"type":"string","default":"xCALLY Motion Fax"},"localstationid":{"type":"string"},"minrate":{"type":"string","enum":["2400","4800","7200","9600","12000","14400"],"default":"4800"},"maxrate":{"type":"string","enum":["2400","4800","7200","9600","12000","14400"],"default":"14400"},"modem":{"type":"string","default":"v17,v27,v29"},"gateway":{"type":"string","default":"no"},"faxdetect":{"type":"string","default":"no"},"t38timeout":{"type":"integer","default":5000},"tech":{"type":"string","enum":["SIP","IAX","DADHI","KHOMP"],"default":"SIP"},"key":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled","default":null},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false}},"required":["name","key"]}}}},"responses":{"201":{"description":"FaxAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/describe":{"get":{"summary":"Gets table info about Accounts","security":[{"BearerAuth":[]}],"operationId":"describeFaxAccount","tags":["Fax Accounts"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/{id}":{"get":{"summary":"Gets a single Account","security":[{"BearerAuth":[]}],"operationId":"getFaxAccountById","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount to get"}],"responses":{"200":{"description":"FaxAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxAccount not found"}}},"put":{"summary":"Update an existing Account","security":[{"BearerAuth":[]}],"operationId":"updateFaxAccountById","tags":["Fax Accounts"],"requestBody":{"required":true,"description":"data for updating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"ecm":{"type":"string","enum":["yes","no"],"default":"yes"},"headerinfo":{"type":"string","default":"xCALLY Motion Fax"},"localstationid":{"type":"string"},"minrate":{"type":"string","enum":["2400","4800","7200","9600","12000","14400"],"default":"4800"},"maxrate":{"type":"string","enum":["2400","4800","7200","9600","12000","14400"],"default":"14400"},"modem":{"type":"string","default":"v17,v27,v29"},"gateway":{"type":"string","default":"no"},"faxdetect":{"type":"string","default":"no"},"t38timeout":{"type":"integer","default":5000},"tech":{"type":"string","enum":["SIP","IAX","DADHI","KHOMP"],"default":"SIP"},"key":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled","default":null},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxAccount not found"}}}},"/fax/accounts/{id}/dispositions":{"get":{"summary":"Gets account dispositions","security":[{"BearerAuth":[]}],"operationId":"getDispositions","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new disposition","security":[{"BearerAuth":[]}],"operationId":"addDisposition","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes dispositions from account","security":[{"BearerAuth":[]}],"operationId":"removeDispositions","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/{id}/canned_answers":{"get":{"summary":"Gets account canned answers","security":[{"BearerAuth":[]}],"operationId":"getAnswers","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new canned answer","security":[{"BearerAuth":[]}],"operationId":"addAnswer","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes canned answers from account","security":[{"BearerAuth":[]}],"operationId":"removeAnswers","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/{id}/interactions":{"get":{"summary":"Gets account interactions","security":[{"BearerAuth":[]}],"operationId":"getInteractions","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new interactions","security":[{"BearerAuth":[]}],"operationId":"addInteraction","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/{id}/applications":{"get":{"summary":"Gets account pplications","security":[{"BearerAuth":[]}],"operationId":"getApplications","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new applications","security":[{"BearerAuth":[]}],"operationId":"addApplications","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/{id}/messages":{"get":{"summary":"Gets account messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/{id}/users":{"get":{"summary":"Gets agents from fax account","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a fax account","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a fax account","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/addaccountapplications":{"post":{"summary":"Creates new account and applications","security":[{"BearerAuth":[]}],"operationId":"addAccountApplications","tags":["Fax Accounts"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/updateaccountapplications":{"post":{"summary":"Update account and applications","security":[{"BearerAuth":[]}],"operationId":"updateAccountApplications","tags":["Fax Accounts"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/{id}/send":{"post":{"summary":"Send new fax","security":[{"BearerAuth":[]}],"operationId":"send","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Account","security":[{"BearerAuth":[]}],"operationId":"deleteFaxAccountById","tags":["Fax Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxAccount not found"}}}},"/fax/applications":{"get":{"summary":"Gets a list of Applications","security":[{"BearerAuth":[]}],"operationId":"listAllFaxApplication","tags":["Fax Applications"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FaxApplication"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Applications","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxApplication"}}}}},"206":{"description":"Partial (paged) collection of Applications","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxApplication"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Application","security":[{"BearerAuth":[]}],"operationId":"createFaxApplication","tags":["Fax Applications"],"requestBody":{"required":true,"description":"data for creating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}},"required":["priority","app"]}}}},"responses":{"201":{"description":"FaxApplication successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/applications/{id}":{"get":{"summary":"Gets a single Application","security":[{"BearerAuth":[]}],"operationId":"getFaxApplicationById","tags":["Fax Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxApplication to get"}],"responses":{"200":{"description":"FaxApplication with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxApplication not found"}}},"put":{"summary":"Update an existing Application","security":[{"BearerAuth":[]}],"operationId":"updateFaxApplicationById","tags":["Fax Applications"],"requestBody":{"required":true,"description":"data for updating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxApplication to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxApplication not found"}}}},"/fax/applications/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Application","security":[{"BearerAuth":[]}],"operationId":"deleteFaxApplicationById","tags":["Fax Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxApplication to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxApplication not found"}}}},"/fax/interactions":{"get":{"summary":"Gets a list of Interactions","security":[{"BearerAuth":[]}],"operationId":"listAllFaxInteraction","tags":["Fax Interactions"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FaxInteraction"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxInteraction"}}}}},"206":{"description":"Partial (paged) collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxInteraction"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Interaction","security":[{"BearerAuth":[]}],"operationId":"createFaxInteraction","tags":["Fax Interactions"],"requestBody":{"required":true,"description":"data for creating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"read1stAt":{"type":"string"},"fax":{"type":"string"},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"}},"required":["firstMsgDirection","lastMsgDirection"]}}}},"responses":{"201":{"description":"FaxInteraction successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/interactions/describe":{"get":{"summary":"Gets table info about Interactions","security":[{"BearerAuth":[]}],"operationId":"describeFaxInteraction","tags":["Fax Interactions"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/interactions/{id}":{"get":{"summary":"Gets a single Interaction","security":[{"BearerAuth":[]}],"operationId":"getFaxInteractionById","tags":["Fax Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxInteraction to get"}],"responses":{"200":{"description":"FaxInteraction with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxInteraction not found"}}},"put":{"summary":"Update an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"updateFaxInteractionById","tags":["Fax Interactions"],"requestBody":{"required":true,"description":"data for updating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"read1stAt":{"type":"string"},"fax":{"type":"string"},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxInteraction to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxInteraction not found"}}}},"/fax/interactions/{id}/messages":{"get":{"summary":"Gets interaction messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Fax Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new messages","security":[{"BearerAuth":[]}],"operationId":"addMessage","tags":["Fax Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/interactions/{id}/download":{"get":{"summary":"Get interactions","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Fax Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/interactions/{id}/tags":{"post":{"summary":"Add tags to the interaction","security":[{"BearerAuth":[]}],"operationId":"addTags","tags":["Fax Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes tags from interaction","security":[{"BearerAuth":[]}],"operationId":"removeTags","tags":["Fax Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxInteraction"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/interactions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"deleteFaxInteractionById","tags":["Fax Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxInteraction to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxInteraction not found"}}}},"/fax/messages":{"get":{"summary":"Gets a list of Messages","security":[{"BearerAuth":[]}],"operationId":"listAllFaxMessage","tags":["Fax Messages"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FaxMessage"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxMessage"}}}}},"206":{"description":"Partial (paged) collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxMessage"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/messages/describe":{"get":{"summary":"Gets table info about Messages","security":[{"BearerAuth":[]}],"operationId":"describeFaxMessage","tags":["Fax Messages"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/messages/{id}":{"get":{"summary":"Gets a single Message","security":[{"BearerAuth":[]}],"operationId":"getFaxMessageById","tags":["Fax Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxMessage to get"}],"responses":{"200":{"description":"FaxMessage with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxMessage not found"}}},"put":{"summary":"Update an existing Message","security":[{"BearerAuth":[]}],"operationId":"updateFaxMessageById","tags":["Fax Messages"],"requestBody":{"required":true,"description":"data for updating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"failMessage":{"type":"string","default":null},"readAt":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxMessage to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxMessage not found"}}}},"/fax/messages/{id}/download":{"get":{"summary":"Get message","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Fax Message"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxMessage"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/messages/":{"post":{"summary":"Create message and send Fax","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Fax Messages"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/messages/{id}/accept":{"put":{"summary":"Accepts message","security":[{"BearerAuth":[]}],"operationId":"accept","tags":["Fax Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/messages/{id}/reject":{"put":{"summary":"Rejects message","security":[{"BearerAuth":[]}],"operationId":"reject","tags":["Fax Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/messages/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Message","security":[{"BearerAuth":[]}],"operationId":"deleteFaxMessageById","tags":["Fax Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxMessage to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxMessage not found"}}}},"/fax/queues":{"get":{"summary":"Gets a list of Queues","security":[{"BearerAuth":[]}],"operationId":"listAllFaxQueue","tags":["Fax Queues"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FaxQueue"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxQueue"}}}}},"206":{"description":"Partial (paged) collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxQueue"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Queue","security":[{"BearerAuth":[]}],"operationId":"createFaxQueue","tags":["Fax Queues"],"requestBody":{"required":true,"description":"data for creating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]},"lastAgent":{"type":"integer","default":0}},"required":["name","timeout","strategy"]}}}},"responses":{"201":{"description":"FaxQueue successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/queues/describe":{"get":{"summary":"Gets table info about Queues","security":[{"BearerAuth":[]}],"operationId":"describeFaxQueue","tags":["Fax Queues"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/queues/{id}":{"get":{"summary":"Gets a single Queue","security":[{"BearerAuth":[]}],"operationId":"getFaxQueueById","tags":["Fax Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue to get"}],"responses":{"200":{"description":"FaxQueue with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxQueue not found"}}},"put":{"summary":"Update an existing Queue","security":[{"BearerAuth":[]}],"operationId":"updateFaxQueueById","tags":["Fax Queues"],"requestBody":{"required":true,"description":"data for updating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]},"lastAgent":{"type":"integer","default":0}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxQueue not found"}}}},"/fax/queues/{id}/members":{"get":{"summary":"GetMembers","security":[{"BearerAuth":[]}],"operationId":"getMembers","tags":["Fax Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/queues/{id}/teams":{"get":{"summary":"Gets queues list","security":[{"BearerAuth":[]}],"operationId":"getTeams","tags":["Fax Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add teams to a queue","security":[{"BearerAuth":[]}],"operationId":"addTeams","tags":["Fax Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove teams from a queue","security":[{"BearerAuth":[]}],"operationId":"removeTeams","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/queues/{id}/users":{"get":{"summary":"Gets queue agents","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Fax Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a queue","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Fax Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a queue","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Fax Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/queues/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Queue","security":[{"BearerAuth":[]}],"operationId":"deleteFaxQueueById","tags":["Fax Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueue to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxQueue not found"}}}},"/fax/reports/queue":{"get":{"summary":"Gets a list of Fax Queue Reports","security":[{"BearerAuth":[]}],"operationId":"listAllFaxQueueReport","tags":["Fax Queue Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FaxQueueReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Fax Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxQueueReport"}}}}},"206":{"description":"Partial (paged) collection of Fax Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxQueueReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Fax Queue Report","security":[{"BearerAuth":[]}],"operationId":"createFaxQueueReport","tags":["Fax Queue Reports"],"requestBody":{"required":true,"description":"data for creating a new Fax Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}},"required":["uniqueid"]}}}},"responses":{"201":{"description":"FaxQueueReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/reports/queue/describe":{"get":{"summary":"Gets table info about Fax Queue Reports","security":[{"BearerAuth":[]}],"operationId":"describeFaxQueueReport","tags":["Fax Queue Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/reports/queue/{id}":{"get":{"summary":"Gets a single Fax Queue Report","security":[{"BearerAuth":[]}],"operationId":"getFaxQueueReportById","tags":["Fax Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueueReport to get"}],"responses":{"200":{"description":"FaxQueueReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxQueueReport not found"}}},"put":{"summary":"Update an existing Fax Queue Report","security":[{"BearerAuth":[]}],"operationId":"updateFaxQueueReportById","tags":["Fax Queue Reports"],"requestBody":{"required":true,"description":"data for updating a new Fax Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueueReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxQueueReport not found"}}}},"/fax/reports/queue/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Fax Queue Report","security":[{"BearerAuth":[]}],"operationId":"deleteFaxQueueReportById","tags":["Fax Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxQueueReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxQueueReport not found"}}}},"/fax/reports/transfer":{"get":{"summary":"Gets a list of Fax Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"listAllFaxTransferReport","tags":["Fax Transfer Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FaxTransferReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Fax Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxTransferReport"}}}}},"206":{"description":"Partial (paged) collection of Fax Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FaxTransferReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Fax Transfer Report","security":[{"BearerAuth":[]}],"operationId":"createFaxTransferReport","tags":["Fax Transfer Reports"],"requestBody":{"required":true,"description":"data for creating a new Fax Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}},"required":["uniqueid","type","transferredAt"]}}}},"responses":{"201":{"description":"FaxTransferReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/reports/transfer/describe":{"get":{"summary":"Gets table info about Fax Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"describeFaxTransferReport","tags":["Fax Transfer Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/fax/reports/transfer/{id}":{"get":{"summary":"Gets a single Fax Transfer Report","security":[{"BearerAuth":[]}],"operationId":"getFaxTransferReportById","tags":["Fax Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxTransferReport to get"}],"responses":{"200":{"description":"FaxTransferReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaxTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxTransferReport not found"}}},"put":{"summary":"Update an existing Fax Transfer Report","security":[{"BearerAuth":[]}],"operationId":"updateFaxTransferReportById","tags":["Fax Transfer Reports"],"requestBody":{"required":true,"description":"data for updating a new Fax Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxTransferReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxTransferReport not found"}}}},"/fax/reports/transfer/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Fax Transfer Report","security":[{"BearerAuth":[]}],"operationId":"deleteFaxTransferReportById","tags":["Fax Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FaxTransferReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FaxTransferReport not found"}}}},"/integrations/desk/accounts":{"get":{"summary":"Gets a list of Desk Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllDeskAccount","tags":["Desk Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each DeskAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Desk Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeskAccount"}}}}},"206":{"description":"Partial (paged) collection of Desk Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeskAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Desk Account","security":[{"BearerAuth":[]}],"operationId":"createDeskAccount","tags":["Desk Accounts"],"requestBody":{"required":true,"description":"data for creating a new Desk Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"remoteUri":{"type":"string"},"authType":{"type":"string","enum":["basic"],"default":"basic"},"password":{"type":"string"},"consumerKey":{"type":"string"},"consumerSecret":{"type":"string"},"token":{"type":"string"},"tokenSecret":{"type":"string"},"serverUrl":{"type":"string"},"type":{"type":"string","enum":["integrationTab","newTab"],"default":"integrationTab"}}}}}},"responses":{"201":{"description":"DeskAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/accounts/{id}":{"get":{"summary":"Gets a single Desk Account","security":[{"BearerAuth":[]}],"operationId":"getDeskAccountById","tags":["Desk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskAccount to get"}],"responses":{"200":{"description":"DeskAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskAccount not found"}}},"put":{"summary":"Update an existing Desk Account","security":[{"BearerAuth":[]}],"operationId":"updateDeskAccountById","tags":["Desk Accounts"],"requestBody":{"required":true,"description":"data for updating a new Desk Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"remoteUri":{"type":"string"},"authType":{"type":"string","enum":["basic"],"default":"basic"},"password":{"type":"string"},"consumerKey":{"type":"string"},"consumerSecret":{"type":"string"},"token":{"type":"string"},"tokenSecret":{"type":"string"},"serverUrl":{"type":"string"},"type":{"type":"string","enum":["integrationTab","newTab"],"default":"integrationTab"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskAccount not found"}}}},"/integrations/desk/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Desk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Desk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Desk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Desk Account","security":[{"BearerAuth":[]}],"operationId":"deleteDeskAccountById","tags":["Desk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskAccount not found"}}}},"/integrations/desk/configurations":{"get":{"summary":"Gets a list of Desk Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllDeskConfiguration","tags":["Desk Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each DeskConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Desk Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeskConfiguration"}}}}},"206":{"description":"Partial (paged) collection of Desk Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeskConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Desk Configuration","security":[{"BearerAuth":[]}],"operationId":"createDeskConfiguration","tags":["Desk Configurations"],"requestBody":{"required":true,"description":"data for creating a new Desk Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"DeskConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/configurations/{id}":{"get":{"summary":"Gets a single Desk Configuration","security":[{"BearerAuth":[]}],"operationId":"getDeskConfigurationById","tags":["Desk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskConfiguration to get"}],"responses":{"200":{"description":"DeskConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskConfiguration not found"}}},"put":{"summary":"Update an existing Desk Configuration","security":[{"BearerAuth":[]}],"operationId":"updateDeskConfigurationById","tags":["Desk Configurations"],"requestBody":{"required":true,"description":"data for updating a new Desk Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskConfiguration not found"}}}},"/integrations/desk/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Desk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Desk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Desk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/configurations/{id}/tags":{"get":{"summary":"Gets configurations tags","security":[{"BearerAuth":[]}],"operationId":"getTags","tags":["Desk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Sets new tags","security":[{"BearerAuth":[]}],"operationId":"setTags","tags":["Desk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskConfiguration"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Desk Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteDeskConfigurationById","tags":["Desk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskConfiguration not found"}}}},"/integrations/desk/fields":{"get":{"summary":"Gets a list of Desk Fields","security":[{"BearerAuth":[]}],"operationId":"listAllDeskField","tags":["Desk Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each DeskField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Desk Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeskField"}}}}},"206":{"description":"Partial (paged) collection of Desk Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeskField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Desk Field","security":[{"BearerAuth":[]}],"operationId":"createDeskField","tags":["Desk Fields"],"requestBody":{"required":true,"description":"data for creating a new Desk Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"DeskField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/desk/fields/{id}":{"get":{"summary":"Gets a single Desk Field","security":[{"BearerAuth":[]}],"operationId":"getDeskFieldById","tags":["Desk Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskField to get"}],"responses":{"200":{"description":"DeskField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskField not found"}}},"put":{"summary":"Update an existing Desk Field","security":[{"BearerAuth":[]}],"operationId":"updateDeskFieldById","tags":["Desk Fields"],"requestBody":{"required":true,"description":"data for updating a new Desk Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskField not found"}}}},"/integrations/desk/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Desk Field","security":[{"BearerAuth":[]}],"operationId":"deleteDeskFieldById","tags":["Desk Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the DeskField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"DeskField not found"}}}},"/integrations/dynamics365/accounts":{"get":{"summary":"Gets a list of Dynamics365 Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllDynamics365Account","tags":["Dynamics365 Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Dynamics365Account"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Dynamics365 Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dynamics365Account"}}}}},"206":{"description":"Partial (paged) collection of Dynamics365 Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dynamics365Account"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Dynamics365 Account","security":[{"BearerAuth":[]}],"operationId":"createDynamics365Account","tags":["Dynamics365 Accounts"],"requestBody":{"required":true,"description":"data for creating a new Dynamics365 Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"remoteUri":{"type":"string"},"tenantId":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"serverUrl":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"Dynamics365Account successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dynamics365Account"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/dynamics365/accounts/{id}":{"get":{"summary":"Gets a single Dynamics365 Account","security":[{"BearerAuth":[]}],"operationId":"getDynamics365AccountById","tags":["Dynamics365 Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Account to get"}],"responses":{"200":{"description":"Dynamics365Account with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dynamics365Account"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Account not found"}}},"put":{"summary":"Update an existing Dynamics365 Account","security":[{"BearerAuth":[]}],"operationId":"updateDynamics365AccountById","tags":["Dynamics365 Accounts"],"requestBody":{"required":true,"description":"data for updating a new Dynamics365 Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"remoteUri":{"type":"string"},"tenantId":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"serverUrl":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Account to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Account not found"}}}},"/integrations/dynamics365/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Dynamics365 Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Account"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Dynamics365 Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Account"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/dynamics365/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Dynamics365 Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Account"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/dynamics365/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Dynamics365 Account","security":[{"BearerAuth":[]}],"operationId":"deleteDynamics365AccountById","tags":["Dynamics365 Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Account to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Account not found"}}}},"/integrations/dynamics365/configurations":{"get":{"summary":"Gets a list of Dynamics365 Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllDynamics365Configuration","tags":["Dynamics365 Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Dynamics365Configuration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Dynamics365 Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dynamics365Configuration"}}}}},"206":{"description":"Partial (paged) collection of Dynamics365 Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dynamics365Configuration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Dynamics365 Configuration","security":[{"BearerAuth":[]}],"operationId":"createDynamics365Configuration","tags":["Dynamics365 Configurations"],"requestBody":{"required":true,"description":"data for creating a new Dynamics365 Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"ticketType":{"type":"string","enum":["incident","phonecall"],"default":"incident"}}}}}},"responses":{"201":{"description":"Dynamics365Configuration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dynamics365Configuration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/dynamics365/configurations/{id}":{"get":{"summary":"Gets a single Dynamics365 Configuration","security":[{"BearerAuth":[]}],"operationId":"getDynamics365ConfigurationById","tags":["Dynamics365 Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Configuration to get"}],"responses":{"200":{"description":"Dynamics365Configuration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dynamics365Configuration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Configuration not found"}}},"put":{"summary":"Update an existing Dynamics365 Configuration","security":[{"BearerAuth":[]}],"operationId":"updateDynamics365ConfigurationById","tags":["Dynamics365 Configurations"],"requestBody":{"required":true,"description":"data for updating a new Dynamics365 Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"ticketType":{"type":"string","enum":["incident","phonecall"],"default":"incident"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Configuration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Configuration not found"}}}},"/integrations/dynamics365/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Dynamics365 Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Configuration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/dynamics365/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Dynamics365 Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Configuration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/dynamics365/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Dynamics365 Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Configuration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/dynamics365/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Dynamics365 Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteDynamics365ConfigurationById","tags":["Dynamics365 Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Configuration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Configuration not found"}}}},"/integrations/dynamics365/fields":{"get":{"summary":"Gets a list of Dynamics365 Fields","security":[{"BearerAuth":[]}],"operationId":"listAllDynamics365Field","tags":["Dynamics365 Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Dynamics365Field"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Dynamics365 Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dynamics365Field"}}}}},"206":{"description":"Partial (paged) collection of Dynamics365 Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dynamics365Field"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Dynamics365 Field","security":[{"BearerAuth":[]}],"operationId":"createDynamics365Field","tags":["Dynamics365 Fields"],"requestBody":{"required":true,"description":"data for creating a new Dynamics365 Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"Dynamics365Field successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dynamics365Field"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/dynamics365/fields/{id}":{"get":{"summary":"Gets a single Dynamics365 Field","security":[{"BearerAuth":[]}],"operationId":"getDynamics365FieldById","tags":["Dynamics365 Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Field to get"}],"responses":{"200":{"description":"Dynamics365Field with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dynamics365Field"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Field not found"}}},"put":{"summary":"Update an existing Dynamics365 Field","security":[{"BearerAuth":[]}],"operationId":"updateDynamics365FieldById","tags":["Dynamics365 Fields"],"requestBody":{"required":true,"description":"data for updating a new Dynamics365 Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Field to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Field not found"}}}},"/integrations/dynamics365/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Dynamics365 Field","security":[{"BearerAuth":[]}],"operationId":"deleteDynamics365FieldById","tags":["Dynamics365 Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Dynamics365Field to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Dynamics365Field not found"}}}},"/integrations":{"get":{"summary":"Gets a list of Integrations","security":[{"BearerAuth":[]}],"operationId":"listAllIntegration","tags":["Integrations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Integration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Integrations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Integration"}}}}},"206":{"description":"Partial (paged) collection of Integrations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Integration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Integration","security":[{"BearerAuth":[]}],"operationId":"createIntegration","tags":["Integrations"],"requestBody":{"required":true,"description":"data for creating a new Integration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"},"main":{"type":"string","default":"app.js"},"filename":{"type":"string"},"path":{"type":"string"},"type":{"type":"string"},"size":{"type":"integer"},"active":{"type":"boolean","default":false},"author":{"type":"string"},"logo":{"type":"string"},"state":{"type":"string"},"description":{"type":"string"},"title":{"type":"string"},"remoteUri":{"type":"string"},"link":{"type":"string","default":"#"}},"required":["name","version"]}}}},"responses":{"201":{"description":"Integration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/{id}":{"get":{"summary":"Gets a single Integration","security":[{"BearerAuth":[]}],"operationId":"getIntegrationById","tags":["Integrations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Integration to get"}],"responses":{"200":{"description":"Integration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Integration not found"}}},"put":{"summary":"Update an existing Integration","security":[{"BearerAuth":[]}],"operationId":"updateIntegrationById","tags":["Integrations"],"requestBody":{"required":true,"description":"data for updating a new Integration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"},"main":{"type":"string","default":"app.js"},"filename":{"type":"string"},"path":{"type":"string"},"type":{"type":"string"},"size":{"type":"integer"},"active":{"type":"boolean","default":false},"author":{"type":"string"},"logo":{"type":"string"},"state":{"type":"string"},"description":{"type":"string"},"title":{"type":"string"},"remoteUri":{"type":"string"},"link":{"type":"string","default":"#"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Integration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Integration not found"}}}},"/integrations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Integration","security":[{"BearerAuth":[]}],"operationId":"deleteIntegrationById","tags":["Integrations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Integration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Integration not found"}}}},"/integrations/reports":{"get":{"summary":"Gets a list of Integration Reports","security":[{"BearerAuth":[]}],"operationId":"listAllIntegrationReport","tags":["Integration Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each IntegrationReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Integration Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationReport"}}}}},"206":{"description":"Partial (paged) collection of Integration Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Integration Report","security":[{"BearerAuth":[]}],"operationId":"createIntegrationReport","tags":["Integration Reports"],"requestBody":{"required":true,"description":"data for creating a new Integration Report","content":{"application/json":{"schema":{"type":"object","properties":{"integration":{"type":"string"},"eventChannel":{"type":"string"},"exitStatus":{"type":"string"},"ticketId":{"type":"string"},"integrationId":{"type":"integer"},"contacts":{"type":"string"},"uniqueid":{"type":"string"},"calleridnum":{"type":"string"},"calleridname":{"type":"string"},"queue":{"type":"string"},"interface":{"type":"string"},"membername":{"type":"string"},"agentcalledAt":{"type":"string"},"agentconnectAt":{"type":"string"},"holdtime":{"type":"integer"},"agentcomplete":{"type":"boolean","default":false},"agentcompleteAt":{"type":"string"},"talktime":{"type":"integer"},"agentacw":{"type":"boolean","default":false},"acwtime":{"type":"integer"},"reason":{"type":"string"},"agentringnoanswer":{"type":"boolean","default":false},"agentringnoanswerAt":{"type":"string"},"agentdump":{"type":"boolean","default":false},"agentdumpAt":{"type":"string"},"lastevent":{"type":"string"},"channel":{"type":"string"},"channelstate":{"type":"integer"},"channelstatedesc":{"type":"string"},"connectedlinenum":{"type":"string"},"connectedlinename":{"type":"string"},"language":{"type":"string"},"accountcode":{"type":"string"},"context":{"type":"string"},"exten":{"type":"string"},"priority":{"type":"string"},"destchannel":{"type":"string"},"destchannelstate":{"type":"integer"},"destchannelstatedesc":{"type":"string"},"destcalleridnum":{"type":"string"},"destcalleridname":{"type":"string"},"destconnectedlinenum":{"type":"string"},"destconnectedlinename":{"type":"string"},"destlanguage":{"type":"string"},"destaccountcode":{"type":"string"},"destcontext":{"type":"string"},"destexten":{"type":"string"},"destpriority":{"type":"string"},"destuniqueid":{"type":"string"},"messageId":{"type":"string"},"inReplyTo":{"type":"string"},"subject":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"cc":{"type":"string"},"attachment":{"type":"string"},"html":{"type":"string"},"text":{"type":"string"},"status":{"type":"string","enum":["SENT","SENDING","RECEIVED","FAILED"]},"url":{"type":"string"},"app":{"type":"string"},"appdata":{"type":"string"},"projectId":{"type":"integer"}}}}}},"responses":{"201":{"description":"IntegrationReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/reports/describe":{"get":{"summary":"Gets table info about Integration Reports","security":[{"BearerAuth":[]}],"operationId":"describeIntegrationReport","tags":["Integration Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/reports/{id}":{"get":{"summary":"Gets a single Integration Report","security":[{"BearerAuth":[]}],"operationId":"getIntegrationReportById","tags":["Integration Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the IntegrationReport to get"}],"responses":{"200":{"description":"IntegrationReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"IntegrationReport not found"}}},"put":{"summary":"Update an existing Integration Report","security":[{"BearerAuth":[]}],"operationId":"updateIntegrationReportById","tags":["Integration Reports"],"requestBody":{"required":true,"description":"data for updating a new Integration Report","content":{"application/json":{"schema":{"type":"object","properties":{"integration":{"type":"string"},"eventChannel":{"type":"string"},"exitStatus":{"type":"string"},"ticketId":{"type":"string"},"integrationId":{"type":"integer"},"contacts":{"type":"string"},"uniqueid":{"type":"string"},"calleridnum":{"type":"string"},"calleridname":{"type":"string"},"queue":{"type":"string"},"interface":{"type":"string"},"membername":{"type":"string"},"agentcalledAt":{"type":"string"},"agentconnectAt":{"type":"string"},"holdtime":{"type":"integer"},"agentcomplete":{"type":"boolean","default":false},"agentcompleteAt":{"type":"string"},"talktime":{"type":"integer"},"agentacw":{"type":"boolean","default":false},"acwtime":{"type":"integer"},"reason":{"type":"string"},"agentringnoanswer":{"type":"boolean","default":false},"agentringnoanswerAt":{"type":"string"},"agentdump":{"type":"boolean","default":false},"agentdumpAt":{"type":"string"},"lastevent":{"type":"string"},"channel":{"type":"string"},"channelstate":{"type":"integer"},"channelstatedesc":{"type":"string"},"connectedlinenum":{"type":"string"},"connectedlinename":{"type":"string"},"language":{"type":"string"},"accountcode":{"type":"string"},"context":{"type":"string"},"exten":{"type":"string"},"priority":{"type":"string"},"destchannel":{"type":"string"},"destchannelstate":{"type":"integer"},"destchannelstatedesc":{"type":"string"},"destcalleridnum":{"type":"string"},"destcalleridname":{"type":"string"},"destconnectedlinenum":{"type":"string"},"destconnectedlinename":{"type":"string"},"destlanguage":{"type":"string"},"destaccountcode":{"type":"string"},"destcontext":{"type":"string"},"destexten":{"type":"string"},"destpriority":{"type":"string"},"destuniqueid":{"type":"string"},"messageId":{"type":"string"},"inReplyTo":{"type":"string"},"subject":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"cc":{"type":"string"},"attachment":{"type":"string"},"html":{"type":"string"},"text":{"type":"string"},"status":{"type":"string","enum":["SENT","SENDING","RECEIVED","FAILED"]},"url":{"type":"string"},"app":{"type":"string"},"appdata":{"type":"string"},"projectId":{"type":"integer"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the IntegrationReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"IntegrationReport not found"}}}},"/integrations/reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Integration Report","security":[{"BearerAuth":[]}],"operationId":"deleteIntegrationReportById","tags":["Integration Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the IntegrationReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"IntegrationReport not found"}}}},"/intervals":{"get":{"summary":"Gets a list of Intervals","security":[{"BearerAuth":[]}],"operationId":"listAllInterval","tags":["Intervals"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Interval"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Intervals","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Interval"}}}}},"206":{"description":"Partial (paged) collection of Intervals","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Interval"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Interval","security":[{"BearerAuth":[]}],"operationId":"createInterval","tags":["Intervals"],"requestBody":{"required":true,"description":"data for creating a new Interval","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string"}}}}}},"responses":{"201":{"description":"Interval successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Interval"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/intervals/{id}":{"get":{"summary":"Gets a single Interval","security":[{"BearerAuth":[]}],"operationId":"getIntervalById","tags":["Intervals"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Interval to get"}],"responses":{"200":{"description":"Interval with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Interval"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Interval not found"}}},"put":{"summary":"Update an existing Interval","security":[{"BearerAuth":[]}],"operationId":"updateIntervalById","tags":["Intervals"],"requestBody":{"required":true,"description":"data for updating a new Interval","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Interval to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Interval not found"}}}},"/intervals/{id}/sub_intervals":{"get":{"summary":"Get sub intervals set","security":[{"BearerAuth":[]}],"operationId":"getIntervals","tags":["Intervals"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Interval"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new sub interval","security":[{"BearerAuth":[]}],"operationId":"addInterval","tags":["Intervals"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Interval"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/intervals/{id}/sub_intervals/create_many":{"post":{"summary":"Create new sub intervals set","security":[{"BearerAuth":[]}],"operationId":"addIntervals","tags":["Intervals"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Interval"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/intervals/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Interval","security":[{"BearerAuth":[]}],"operationId":"deleteIntervalById","tags":["Intervals"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Interval to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Interval not found"}}}},"/integrations/freshdesk/accounts":{"get":{"summary":"Gets a list of Freshdesk Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllFreshdeskAccount","tags":["Freshdesk Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FreshdeskAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Freshdesk Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshdeskAccount"}}}}},"206":{"description":"Partial (paged) collection of Freshdesk Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshdeskAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Freshdesk Account","security":[{"BearerAuth":[]}],"operationId":"createFreshdeskAccount","tags":["Freshdesk Accounts"],"requestBody":{"required":true,"description":"data for creating a new Freshdesk Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"apiKey":{"type":"string"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"}}}}}},"responses":{"201":{"description":"FreshdeskAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshdeskAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/accounts/{id}":{"get":{"summary":"Gets a single Freshdesk Account","security":[{"BearerAuth":[]}],"operationId":"getFreshdeskAccountById","tags":["Freshdesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskAccount to get"}],"responses":{"200":{"description":"FreshdeskAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshdeskAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskAccount not found"}}},"put":{"summary":"Update an existing Freshdesk Account","security":[{"BearerAuth":[]}],"operationId":"updateFreshdeskAccountById","tags":["Freshdesk Accounts"],"requestBody":{"required":true,"description":"data for updating a new Freshdesk Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"apiKey":{"type":"string"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskAccount not found"}}}},"/integrations/freshdesk/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Freshdesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Freshdesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Freshdesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Freshdesk Account","security":[{"BearerAuth":[]}],"operationId":"deleteFreshdeskAccountById","tags":["Freshdesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskAccount not found"}}}},"/integrations/freshdesk/configurations":{"get":{"summary":"Gets a list of Freshdesk Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllFreshdeskConfiguration","tags":["Freshdesk Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FreshdeskConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Freshdesk Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshdeskConfiguration"}}}}},"206":{"description":"Partial (paged) collection of Freshdesk Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshdeskConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Freshdesk Configuration","security":[{"BearerAuth":[]}],"operationId":"createFreshdeskConfiguration","tags":["Freshdesk Configurations"],"requestBody":{"required":true,"description":"data for creating a new Freshdesk Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"FreshdeskConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshdeskConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/configurations/{id}":{"get":{"summary":"Gets a single Freshdesk Configuration","security":[{"BearerAuth":[]}],"operationId":"getFreshdeskConfigurationById","tags":["Freshdesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskConfiguration to get"}],"responses":{"200":{"description":"FreshdeskConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshdeskConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskConfiguration not found"}}},"put":{"summary":"Update an existing Freshdesk Configuration","security":[{"BearerAuth":[]}],"operationId":"updateFreshdeskConfigurationById","tags":["Freshdesk Configurations"],"requestBody":{"required":true,"description":"data for updating a new Freshdesk Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskConfiguration not found"}}}},"/integrations/freshdesk/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Freshdesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Freshdesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Freshdesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/configurations/{id}/tags":{"get":{"summary":"Gets configurations tags","security":[{"BearerAuth":[]}],"operationId":"getTags","tags":["Freshdesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Sets new tags","security":[{"BearerAuth":[]}],"operationId":"setTags","tags":["Freshdesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskConfiguration"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Freshdesk Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteFreshdeskConfigurationById","tags":["Freshdesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskConfiguration not found"}}}},"/integrations/freshdesk/fields":{"get":{"summary":"Gets a list of Freshdesk Fields","security":[{"BearerAuth":[]}],"operationId":"listAllFreshdeskField","tags":["Freshdesk Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FreshdeskField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Freshdesk Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshdeskField"}}}}},"206":{"description":"Partial (paged) collection of Freshdesk Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshdeskField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Freshdesk Field","security":[{"BearerAuth":[]}],"operationId":"createFreshdeskField","tags":["Freshdesk Fields"],"requestBody":{"required":true,"description":"data for creating a new Freshdesk Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"FreshdeskField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshdeskField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshdesk/fields/{id}":{"get":{"summary":"Gets a single Freshdesk Field","security":[{"BearerAuth":[]}],"operationId":"getFreshdeskFieldById","tags":["Freshdesk Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskField to get"}],"responses":{"200":{"description":"FreshdeskField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshdeskField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskField not found"}}},"put":{"summary":"Update an existing Freshdesk Field","security":[{"BearerAuth":[]}],"operationId":"updateFreshdeskFieldById","tags":["Freshdesk Fields"],"requestBody":{"required":true,"description":"data for updating a new Freshdesk Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskField not found"}}}},"/integrations/freshdesk/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Freshdesk Field","security":[{"BearerAuth":[]}],"operationId":"deleteFreshdeskFieldById","tags":["Freshdesk Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshdeskField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshdeskField not found"}}}},"/integrations/freshsales/accounts":{"get":{"summary":"Gets a list of Freshsales Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllFreshsalesAccount","tags":["Freshsales Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FreshsalesAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Freshsales Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshsalesAccount"}}}}},"206":{"description":"Partial (paged) collection of Freshsales Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshsalesAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Freshsales Account","security":[{"BearerAuth":[]}],"operationId":"createFreshsalesAccount","tags":["Freshsales Accounts"],"requestBody":{"required":true,"description":"data for creating a new Freshsales Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"apiKey":{"type":"string"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"}}}}}},"responses":{"201":{"description":"FreshsalesAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshsalesAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshsales/accounts/{id}":{"get":{"summary":"Gets a single Freshsales Account","security":[{"BearerAuth":[]}],"operationId":"getFreshsalesAccountById","tags":["Freshsales Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesAccount to get"}],"responses":{"200":{"description":"FreshsalesAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshsalesAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesAccount not found"}}},"put":{"summary":"Update an existing Freshsales Account","security":[{"BearerAuth":[]}],"operationId":"updateFreshsalesAccountById","tags":["Freshsales Accounts"],"requestBody":{"required":true,"description":"data for updating a new Freshsales Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"apiKey":{"type":"string"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesAccount not found"}}}},"/integrations/freshsales/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Freshsales Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Freshsales Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshsales/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Freshsales Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshsales/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Freshsales Account","security":[{"BearerAuth":[]}],"operationId":"deleteFreshsalesAccountById","tags":["Freshsales Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesAccount not found"}}}},"/integrations/freshsales/configurations":{"get":{"summary":"Gets a list of Freshsales Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllFreshsalesConfiguration","tags":["Freshsales Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FreshsalesConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Freshsales Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshsalesConfiguration"}}}}},"206":{"description":"Partial (paged) collection of Freshsales Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshsalesConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Freshsales Configuration","security":[{"BearerAuth":[]}],"operationId":"createFreshsalesConfiguration","tags":["Freshsales Configurations"],"requestBody":{"required":true,"description":"data for creating a new Freshsales Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"FreshsalesConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshsalesConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshsales/configurations/{id}":{"get":{"summary":"Gets a single Freshsales Configuration","security":[{"BearerAuth":[]}],"operationId":"getFreshsalesConfigurationById","tags":["Freshsales Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesConfiguration to get"}],"responses":{"200":{"description":"FreshsalesConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshsalesConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesConfiguration not found"}}},"put":{"summary":"Update an existing Freshsales Configuration","security":[{"BearerAuth":[]}],"operationId":"updateFreshsalesConfigurationById","tags":["Freshsales Configurations"],"requestBody":{"required":true,"description":"data for updating a new Freshsales Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesConfiguration not found"}}}},"/integrations/freshsales/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Freshsales Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshsales/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Freshsales Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshsales/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Freshsales Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshsales/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Freshsales Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteFreshsalesConfigurationById","tags":["Freshsales Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesConfiguration not found"}}}},"/integrations/freshsales/fields":{"get":{"summary":"Gets a list of Freshsales Fields","security":[{"BearerAuth":[]}],"operationId":"listAllFreshsalesField","tags":["Freshsales Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each FreshsalesField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Freshsales Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshsalesField"}}}}},"206":{"description":"Partial (paged) collection of Freshsales Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FreshsalesField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Freshsales Field","security":[{"BearerAuth":[]}],"operationId":"createFreshsalesField","tags":["Freshsales Fields"],"requestBody":{"required":true,"description":"data for creating a new Freshsales Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"FreshsalesField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshsalesField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/freshsales/fields/{id}":{"get":{"summary":"Gets a single Freshsales Field","security":[{"BearerAuth":[]}],"operationId":"getFreshsalesFieldById","tags":["Freshsales Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesField to get"}],"responses":{"200":{"description":"FreshsalesField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshsalesField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesField not found"}}},"put":{"summary":"Update an existing Freshsales Field","security":[{"BearerAuth":[]}],"operationId":"updateFreshsalesFieldById","tags":["Freshsales Fields"],"requestBody":{"required":true,"description":"data for updating a new Freshsales Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesField not found"}}}},"/integrations/freshsales/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Freshsales Field","security":[{"BearerAuth":[]}],"operationId":"deleteFreshsalesFieldById","tags":["Freshsales Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the FreshsalesField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"FreshsalesField not found"}}}},"/integrations/salesforce/accounts":{"get":{"summary":"Gets a list of Salesforce Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllSalesforceAccount","tags":["Salesforce Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SalesforceAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Salesforce Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SalesforceAccount"}}}}},"206":{"description":"Partial (paged) collection of Salesforce Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SalesforceAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Salesforce Account","security":[{"BearerAuth":[]}],"operationId":"createSalesforceAccount","tags":["Salesforce Accounts"],"requestBody":{"required":true,"description":"data for creating a new Salesforce Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"remoteUri":{"type":"string"},"password":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"securityToken":{"type":"string"},"serverUrl":{"type":"string"},"type":{"type":"string","enum":["integrationTab","newTab"],"default":"integrationTab"}}}}}},"responses":{"201":{"description":"SalesforceAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/salesforce/accounts/{id}":{"get":{"summary":"Gets a single Salesforce Account","security":[{"BearerAuth":[]}],"operationId":"getSalesforceAccountById","tags":["Salesforce Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceAccount to get"}],"responses":{"200":{"description":"SalesforceAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceAccount not found"}}},"put":{"summary":"Update an existing Salesforce Account","security":[{"BearerAuth":[]}],"operationId":"updateSalesforceAccountById","tags":["Salesforce Accounts"],"requestBody":{"required":true,"description":"data for updating a new Salesforce Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"remoteUri":{"type":"string"},"password":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"securityToken":{"type":"string"},"serverUrl":{"type":"string"},"type":{"type":"string","enum":["integrationTab","newTab"],"default":"integrationTab"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceAccount not found"}}}},"/integrations/salesforce/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Salesforce Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Salesforce Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/salesforce/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Salesforce Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/salesforce/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Salesforce Account","security":[{"BearerAuth":[]}],"operationId":"deleteSalesforceAccountById","tags":["Salesforce Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceAccount not found"}}}},"/integrations/salesforce/configurations":{"get":{"summary":"Gets a list of Salesforce Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllSalesforceConfiguration","tags":["Salesforce Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SalesforceConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Salesforce Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SalesforceConfiguration"}}}}},"206":{"description":"Partial (paged) collection of Salesforce Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SalesforceConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Salesforce Configuration","security":[{"BearerAuth":[]}],"operationId":"createSalesforceConfiguration","tags":["Salesforce Configurations"],"requestBody":{"required":true,"description":"data for creating a new Salesforce Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"ticketType":{"type":"string","enum":["Task","Case"],"default":"Task"},"moduleSearch":{"type":"string","enum":["contact_lead","contact","lead"],"default":"contact_lead"},"moduleCreate":{"type":"string","enum":["nothing","contact","lead"],"default":"lead"}}}}}},"responses":{"201":{"description":"SalesforceConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/salesforce/configurations/{id}":{"get":{"summary":"Gets a single Salesforce Configuration","security":[{"BearerAuth":[]}],"operationId":"getSalesforceConfigurationById","tags":["Salesforce Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceConfiguration to get"}],"responses":{"200":{"description":"SalesforceConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceConfiguration not found"}}},"put":{"summary":"Update an existing Salesforce Configuration","security":[{"BearerAuth":[]}],"operationId":"updateSalesforceConfigurationById","tags":["Salesforce Configurations"],"requestBody":{"required":true,"description":"data for updating a new Salesforce Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"ticketType":{"type":"string","enum":["Task","Case"],"default":"Task"},"moduleSearch":{"type":"string","enum":["contact_lead","contact","lead"],"default":"contact_lead"},"moduleCreate":{"type":"string","enum":["nothing","contact","lead"],"default":"lead"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceConfiguration not found"}}}},"/integrations/salesforce/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Salesforce Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/salesforce/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Salesforce Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/salesforce/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Salesforce Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/salesforce/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Salesforce Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteSalesforceConfigurationById","tags":["Salesforce Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceConfiguration not found"}}}},"/integrations/salesforce/fields":{"get":{"summary":"Gets a list of Salesforce Fields","security":[{"BearerAuth":[]}],"operationId":"listAllSalesforceField","tags":["Salesforce Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SalesforceField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Salesforce Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SalesforceField"}}}}},"206":{"description":"Partial (paged) collection of Salesforce Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SalesforceField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Salesforce Field","security":[{"BearerAuth":[]}],"operationId":"createSalesforceField","tags":["Salesforce Fields"],"requestBody":{"required":true,"description":"data for creating a new Salesforce Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"SalesforceField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/salesforce/fields/{id}":{"get":{"summary":"Gets a single Salesforce Field","security":[{"BearerAuth":[]}],"operationId":"getSalesforceFieldById","tags":["Salesforce Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceField to get"}],"responses":{"200":{"description":"SalesforceField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceField not found"}}},"put":{"summary":"Update an existing Salesforce Field","security":[{"BearerAuth":[]}],"operationId":"updateSalesforceFieldById","tags":["Salesforce Fields"],"requestBody":{"required":true,"description":"data for updating a new Salesforce Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceField not found"}}}},"/integrations/salesforce/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Salesforce Field","security":[{"BearerAuth":[]}],"operationId":"deleteSalesforceFieldById","tags":["Salesforce Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SalesforceField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SalesforceField not found"}}}},"/integrations/servicenow/accounts":{"get":{"summary":"Gets a list of Servicenow Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllServicenowAccount","tags":["Servicenow Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ServicenowAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Servicenow Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServicenowAccount"}}}}},"206":{"description":"Partial (paged) collection of Servicenow Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServicenowAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Servicenow Account","security":[{"BearerAuth":[]}],"operationId":"createServicenowAccount","tags":["Servicenow Accounts"],"requestBody":{"required":true,"description":"data for creating a new Servicenow Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"email":{"type":"string"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"}}}}}},"responses":{"201":{"description":"ServicenowAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicenowAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/servicenow/accounts/{id}":{"get":{"summary":"Gets a single Servicenow Account","security":[{"BearerAuth":[]}],"operationId":"getServicenowAccountById","tags":["Servicenow Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowAccount to get"}],"responses":{"200":{"description":"ServicenowAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicenowAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowAccount not found"}}},"put":{"summary":"Update an existing Servicenow Account","security":[{"BearerAuth":[]}],"operationId":"updateServicenowAccountById","tags":["Servicenow Accounts"],"requestBody":{"required":true,"description":"data for updating a new Servicenow Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"email":{"type":"string"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowAccount not found"}}}},"/integrations/servicenow/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Servicenow Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Servicenow Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/servicenow/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Servicenow Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/servicenow/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Servicenow Account","security":[{"BearerAuth":[]}],"operationId":"deleteServicenowAccountById","tags":["Servicenow Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowAccount not found"}}}},"/integrations/servicenow/configurations":{"get":{"summary":"Gets a list of Servicenow Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllServicenowConfiguration","tags":["Servicenow Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ServicenowConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Servicenow Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServicenowConfiguration"}}}}},"206":{"description":"Partial (paged) collection of Servicenow Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServicenowConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Servicenow Configuration","security":[{"BearerAuth":[]}],"operationId":"createServicenowConfiguration","tags":["Servicenow Configurations"],"requestBody":{"required":true,"description":"data for creating a new Servicenow Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"ServicenowConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicenowConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/servicenow/configurations/{id}":{"get":{"summary":"Gets a single Servicenow Configuration","security":[{"BearerAuth":[]}],"operationId":"getServicenowConfigurationById","tags":["Servicenow Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowConfiguration to get"}],"responses":{"200":{"description":"ServicenowConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicenowConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowConfiguration not found"}}},"put":{"summary":"Update an existing Servicenow Configuration","security":[{"BearerAuth":[]}],"operationId":"updateServicenowConfigurationById","tags":["Servicenow Configurations"],"requestBody":{"required":true,"description":"data for updating a new Servicenow Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowConfiguration not found"}}}},"/integrations/servicenow/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Servicenow Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/servicenow/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Servicenow Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/servicenow/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Servicenow Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/servicenow/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Servicenow Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteServicenowConfigurationById","tags":["Servicenow Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowConfiguration not found"}}}},"/integrations/servicenow/fields":{"get":{"summary":"Gets a list of Servicenow Fields","security":[{"BearerAuth":[]}],"operationId":"listAllServicenowField","tags":["Servicenow Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ServicenowField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Servicenow Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServicenowField"}}}}},"206":{"description":"Partial (paged) collection of Servicenow Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServicenowField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Servicenow Field","security":[{"BearerAuth":[]}],"operationId":"createServicenowField","tags":["Servicenow Fields"],"requestBody":{"required":true,"description":"data for creating a new Servicenow Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"ServicenowField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicenowField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/servicenow/fields/{id}":{"get":{"summary":"Gets a single Servicenow Field","security":[{"BearerAuth":[]}],"operationId":"getServicenowFieldById","tags":["Servicenow Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowField to get"}],"responses":{"200":{"description":"ServicenowField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicenowField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowField not found"}}},"put":{"summary":"Update an existing Servicenow Field","security":[{"BearerAuth":[]}],"operationId":"updateServicenowFieldById","tags":["Servicenow Fields"],"requestBody":{"required":true,"description":"data for updating a new Servicenow Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowField not found"}}}},"/integrations/servicenow/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Servicenow Field","security":[{"BearerAuth":[]}],"operationId":"deleteServicenowFieldById","tags":["Servicenow Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ServicenowField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ServicenowField not found"}}}},"/integrations/sugarcrm/accounts":{"get":{"summary":"Gets a list of Sugarcrm Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllSugarcrmAccount","tags":["Sugarcrm Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SugarcrmAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Sugarcrm Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SugarcrmAccount"}}}}},"206":{"description":"Partial (paged) collection of Sugarcrm Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SugarcrmAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Sugarcrm Account","security":[{"BearerAuth":[]}],"operationId":"createSugarcrmAccount","tags":["Sugarcrm Accounts"],"requestBody":{"required":true,"description":"data for creating a new Sugarcrm Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"}}}}}},"responses":{"201":{"description":"SugarcrmAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SugarcrmAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/sugarcrm/accounts/{id}":{"get":{"summary":"Gets a single Sugarcrm Account","security":[{"BearerAuth":[]}],"operationId":"getSugarcrmAccountById","tags":["Sugarcrm Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmAccount to get"}],"responses":{"200":{"description":"SugarcrmAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SugarcrmAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmAccount not found"}}},"put":{"summary":"Update an existing Sugarcrm Account","security":[{"BearerAuth":[]}],"operationId":"updateSugarcrmAccountById","tags":["Sugarcrm Accounts"],"requestBody":{"required":true,"description":"data for updating a new Sugarcrm Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmAccount not found"}}}},"/integrations/sugarcrm/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Sugarcrm Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Sugarcrm Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/sugarcrm/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Sugarcrm Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/sugarcrm/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Sugarcrm Account","security":[{"BearerAuth":[]}],"operationId":"deleteSugarcrmAccountById","tags":["Sugarcrm Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmAccount not found"}}}},"/integrations/sugarcrm/configurations":{"get":{"summary":"Gets a list of SugarCRM Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllSugarcrmConfiguration","tags":["SugarCRM Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SugarcrmConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of SugarCRM Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SugarcrmConfiguration"}}}}},"206":{"description":"Partial (paged) collection of SugarCRM Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SugarcrmConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new SugarCRM Configuration","security":[{"BearerAuth":[]}],"operationId":"createSugarcrmConfiguration","tags":["SugarCRM Configurations"],"requestBody":{"required":true,"description":"data for creating a new SugarCRM Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"SugarcrmConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SugarcrmConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/sugarcrm/configurations/{id}":{"get":{"summary":"Gets a single SugarCRM Configuration","security":[{"BearerAuth":[]}],"operationId":"getSugarcrmConfigurationById","tags":["SugarCRM Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmConfiguration to get"}],"responses":{"200":{"description":"SugarcrmConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SugarcrmConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmConfiguration not found"}}},"put":{"summary":"Update an existing SugarCRM Configuration","security":[{"BearerAuth":[]}],"operationId":"updateSugarcrmConfigurationById","tags":["SugarCRM Configurations"],"requestBody":{"required":true,"description":"data for updating a new SugarCRM Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmConfiguration not found"}}}},"/integrations/sugarcrm/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Sugarcrm Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/sugarcrm/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Sugarcrm Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/sugarcrm/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Sugarcrm Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/sugarcrm/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing SugarCRM Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteSugarcrmConfigurationById","tags":["SugarCRM Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmConfiguration not found"}}}},"/integrations/sugarcrm/fields":{"get":{"summary":"Gets a list of Sugarcrm Fields","security":[{"BearerAuth":[]}],"operationId":"listAllSugarcrmField","tags":["Sugarcrm Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SugarcrmField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Sugarcrm Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SugarcrmField"}}}}},"206":{"description":"Partial (paged) collection of Sugarcrm Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SugarcrmField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Sugarcrm Field","security":[{"BearerAuth":[]}],"operationId":"createSugarcrmField","tags":["Sugarcrm Fields"],"requestBody":{"required":true,"description":"data for creating a new Sugarcrm Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"SugarcrmField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SugarcrmField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/sugarcrm/fields/{id}":{"get":{"summary":"Gets a single Sugarcrm Field","security":[{"BearerAuth":[]}],"operationId":"getSugarcrmFieldById","tags":["Sugarcrm Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmField to get"}],"responses":{"200":{"description":"SugarcrmField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SugarcrmField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmField not found"}}},"put":{"summary":"Update an existing Sugarcrm Field","security":[{"BearerAuth":[]}],"operationId":"updateSugarcrmFieldById","tags":["Sugarcrm Fields"],"requestBody":{"required":true,"description":"data for updating a new Sugarcrm Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmField not found"}}}},"/integrations/sugarcrm/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Sugarcrm Field","security":[{"BearerAuth":[]}],"operationId":"deleteSugarcrmFieldById","tags":["Sugarcrm Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SugarcrmField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SugarcrmField not found"}}}},"/integrations/vtiger/accounts":{"get":{"summary":"Gets a list of Vtiger Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllVtigerAccount","tags":["Vtiger Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VtigerAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Vtiger Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VtigerAccount"}}}}},"206":{"description":"Partial (paged) collection of Vtiger Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VtigerAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Vtiger Account","security":[{"BearerAuth":[]}],"operationId":"createVtigerAccount","tags":["Vtiger Accounts"],"requestBody":{"required":true,"description":"data for creating a new Vtiger Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"moduleName":{"type":"string","default":"HelpDesk"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"},"accessKey":{"type":"string"}},"required":["name","username","moduleName","remoteUri","accessKey"]}}}},"responses":{"201":{"description":"VtigerAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VtigerAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/vtiger/accounts/{id}":{"get":{"summary":"Gets a single Vtiger Account","security":[{"BearerAuth":[]}],"operationId":"getVtigerAccountById","tags":["Vtiger Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerAccount to get"}],"responses":{"200":{"description":"VtigerAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VtigerAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerAccount not found"}}},"put":{"summary":"Update an existing Vtiger Account","security":[{"BearerAuth":[]}],"operationId":"updateVtigerAccountById","tags":["Vtiger Accounts"],"requestBody":{"required":true,"description":"data for updating a new Vtiger Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"moduleName":{"type":"string","default":"HelpDesk"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string"},"accessKey":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerAccount not found"}}}},"/integrations/vtiger/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Vtiger Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Vtiger Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/vtiger/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Vtiger Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/vtiger/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Vtiger Account","security":[{"BearerAuth":[]}],"operationId":"deleteVtigerAccountById","tags":["Vtiger Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerAccount not found"}}}},"/integrations/vtiger/configurations":{"get":{"summary":"Gets a list of Vtiger Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllVtigerConfiguration","tags":["Vtiger Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VtigerConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Vtiger Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VtigerConfiguration"}}}}},"206":{"description":"Partial (paged) collection of Vtiger Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VtigerConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Vtiger Configuration","security":[{"BearerAuth":[]}],"operationId":"createVtigerConfiguration","tags":["Vtiger Configurations"],"requestBody":{"required":true,"description":"data for creating a new Vtiger Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"VtigerConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VtigerConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/vtiger/configurations/{id}":{"get":{"summary":"Gets a single Vtiger Configuration","security":[{"BearerAuth":[]}],"operationId":"getVtigerConfigurationById","tags":["Vtiger Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerConfiguration to get"}],"responses":{"200":{"description":"VtigerConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VtigerConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerConfiguration not found"}}},"put":{"summary":"Update an existing Vtiger Configuration","security":[{"BearerAuth":[]}],"operationId":"updateVtigerConfigurationById","tags":["Vtiger Configurations"],"requestBody":{"required":true,"description":"data for updating a new Vtiger Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerConfiguration not found"}}}},"/integrations/vtiger/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Vtiger Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/vtiger/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Vtiger Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/vtiger/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Vtiger Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/vtiger/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Vtiger Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteVtigerConfigurationById","tags":["Vtiger Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerConfiguration not found"}}}},"/integrations/vtiger/fields":{"get":{"summary":"Gets a list of Vtiger Fields","security":[{"BearerAuth":[]}],"operationId":"listAllVtigerField","tags":["Vtiger Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VtigerField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Vtiger Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VtigerField"}}}}},"206":{"description":"Partial (paged) collection of Vtiger Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VtigerField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Vtiger Field","security":[{"BearerAuth":[]}],"operationId":"createVtigerField","tags":["Vtiger Fields"],"requestBody":{"required":true,"description":"data for creating a new Vtiger Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"VtigerField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VtigerField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/vtiger/fields/{id}":{"get":{"summary":"Gets a single Vtiger Field","security":[{"BearerAuth":[]}],"operationId":"getVtigerFieldById","tags":["Vtiger Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerField to get"}],"responses":{"200":{"description":"VtigerField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VtigerField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerField not found"}}},"put":{"summary":"Update an existing Vtiger Field","security":[{"BearerAuth":[]}],"operationId":"updateVtigerFieldById","tags":["Vtiger Fields"],"requestBody":{"required":true,"description":"data for updating a new Vtiger Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerField not found"}}}},"/integrations/vtiger/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Vtiger Field","security":[{"BearerAuth":[]}],"operationId":"deleteVtigerFieldById","tags":["Vtiger Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VtigerField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VtigerField not found"}}}},"/integrations/zendesk/accounts":{"get":{"summary":"Gets a list of Zendesk Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllZendeskAccount","tags":["Zendesk Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ZendeskAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Zendesk Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZendeskAccount"}}}}},"206":{"description":"Partial (paged) collection of Zendesk Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZendeskAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Zendesk Account","security":[{"BearerAuth":[]}],"operationId":"createZendeskAccount","tags":["Zendesk Accounts"],"requestBody":{"required":true,"description":"data for creating a new Zendesk Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"token":{"type":"string"},"remoteUri":{"type":"string"},"authType":{"type":"string","enum":["password","token"],"default":"password"},"serverUrl":{"type":"string"},"type":{"type":"string","enum":["integrationTab","newTab"],"default":"integrationTab"}}}}}},"responses":{"201":{"description":"ZendeskAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZendeskAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/accounts/{id}":{"get":{"summary":"Gets a single Zendesk Account","security":[{"BearerAuth":[]}],"operationId":"getZendeskAccountById","tags":["Zendesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskAccount to get"}],"responses":{"200":{"description":"ZendeskAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZendeskAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskAccount not found"}}},"put":{"summary":"Update an existing Zendesk Account","security":[{"BearerAuth":[]}],"operationId":"updateZendeskAccountById","tags":["Zendesk Accounts"],"requestBody":{"required":true,"description":"data for updating a new Zendesk Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"token":{"type":"string"},"remoteUri":{"type":"string"},"authType":{"type":"string","enum":["password","token"],"default":"password"},"serverUrl":{"type":"string"},"type":{"type":"string","enum":["integrationTab","newTab"],"default":"integrationTab"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskAccount not found"}}}},"/integrations/zendesk/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Zendesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Zendesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Zendesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Zendesk Account","security":[{"BearerAuth":[]}],"operationId":"deleteZendeskAccountById","tags":["Zendesk Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskAccount not found"}}}},"/integrations/zendesk/configurations":{"get":{"summary":"Gets a list of Zendesk Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllZendeskConfiguration","tags":["Zendesk Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ZendeskConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Zendesk Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZendeskConfiguration"}}}}},"206":{"description":"Partial (paged) collection of Zendesk Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZendeskConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Zendesk Configuration","security":[{"BearerAuth":[]}],"operationId":"createZendeskConfiguration","tags":["Zendesk Configurations"],"requestBody":{"required":true,"description":"data for creating a new Zendesk Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"ZendeskConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZendeskConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/configurations/{id}":{"get":{"summary":"Gets a single Zendesk Configuration","security":[{"BearerAuth":[]}],"operationId":"getZendeskConfigurationById","tags":["Zendesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskConfiguration to get"}],"responses":{"200":{"description":"ZendeskConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZendeskConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskConfiguration not found"}}},"put":{"summary":"Update an existing Zendesk Configuration","security":[{"BearerAuth":[]}],"operationId":"updateZendeskConfigurationById","tags":["Zendesk Configurations"],"requestBody":{"required":true,"description":"data for updating a new Zendesk Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskConfiguration not found"}}}},"/integrations/zendesk/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Zendesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Zendesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Zendesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/configurations/{id}/tags":{"get":{"summary":"Gets configurations tags","security":[{"BearerAuth":[]}],"operationId":"getTags","tags":["Zendesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Sets new tags","security":[{"BearerAuth":[]}],"operationId":"setTags","tags":["Zendesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskConfiguration"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Zendesk Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteZendeskConfigurationById","tags":["Zendesk Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskConfiguration not found"}}}},"/integrations/zendesk/fields":{"get":{"summary":"Gets a list of Zendesk Fields","security":[{"BearerAuth":[]}],"operationId":"listAllZendeskField","tags":["Zendesk Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ZendeskField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Zendesk Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZendeskField"}}}}},"206":{"description":"Partial (paged) collection of Zendesk Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZendeskField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Zendesk Field","security":[{"BearerAuth":[]}],"operationId":"createZendeskField","tags":["Zendesk Fields"],"requestBody":{"required":true,"description":"data for creating a new Zendesk Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"ZendeskField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZendeskField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zendesk/fields/{id}":{"get":{"summary":"Gets a single Zendesk Field","security":[{"BearerAuth":[]}],"operationId":"getZendeskFieldById","tags":["Zendesk Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskField to get"}],"responses":{"200":{"description":"ZendeskField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZendeskField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskField not found"}}},"put":{"summary":"Update an existing Zendesk Field","security":[{"BearerAuth":[]}],"operationId":"updateZendeskFieldById","tags":["Zendesk Fields"],"requestBody":{"required":true,"description":"data for updating a new Zendesk Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskField not found"}}}},"/integrations/zendesk/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Zendesk Field","security":[{"BearerAuth":[]}],"operationId":"deleteZendeskFieldById","tags":["Zendesk Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZendeskField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZendeskField not found"}}}},"/integrations/zoho/accounts":{"get":{"summary":"Gets a list of Zoho Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllZohoAccount","tags":["Zoho Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ZohoAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Zoho Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZohoAccount"}}}}},"206":{"description":"Partial (paged) collection of Zoho Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZohoAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Zoho Account","security":[{"BearerAuth":[]}],"operationId":"createZohoAccount","tags":["Zoho Accounts"],"requestBody":{"required":true,"description":"data for creating a new Zoho Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"host":{"type":"string"},"zone":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"serverUrl":{"type":"string"},"code":{"type":"string"},"refreshToken":{"type":"string"}}}}}},"responses":{"201":{"description":"ZohoAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZohoAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zoho/accounts/{id}":{"get":{"summary":"Gets a single Zoho Account","security":[{"BearerAuth":[]}],"operationId":"getZohoAccountById","tags":["Zoho Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoAccount to get"}],"responses":{"200":{"description":"ZohoAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZohoAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoAccount not found"}}},"put":{"summary":"Update an existing Zoho Account","security":[{"BearerAuth":[]}],"operationId":"updateZohoAccountById","tags":["Zoho Accounts"],"requestBody":{"required":true,"description":"data for updating a new Zoho Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"host":{"type":"string"},"zone":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"serverUrl":{"type":"string"},"code":{"type":"string"},"refreshToken":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoAccount not found"}}}},"/integrations/zoho/accounts/{id}/configurations":{"get":{"summary":"Gets account configurations","security":[{"BearerAuth":[]}],"operationId":"getConfigurations","tags":["Zoho Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new configuration","security":[{"BearerAuth":[]}],"operationId":"addConfiguration","tags":["Zoho Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zoho/accounts/{id}/fields":{"get":{"summary":"Gets account fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Zoho Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zoho/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Zoho Account","security":[{"BearerAuth":[]}],"operationId":"deleteZohoAccountById","tags":["Zoho Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoAccount not found"}}}},"/integrations/zoho/configurations":{"get":{"summary":"Gets a list of Zoho Configurations","security":[{"BearerAuth":[]}],"operationId":"listAllZohoConfiguration","tags":["Zoho Configurations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ZohoConfiguration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Zoho Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZohoConfiguration"}}}}},"206":{"description":"Partial (paged) collection of Zoho Configurations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZohoConfiguration"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Zoho Configuration","security":[{"BearerAuth":[]}],"operationId":"createZohoConfiguration","tags":["Zoho Configurations"],"requestBody":{"required":true,"description":"data for creating a new Zoho Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"moduleCreate":{"type":"string","enum":["lead","contact","nothing"],"default":"lead"},"moduleSearch":{"type":"string","enum":["contact_lead","contact","lead"],"default":"contact_lead"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"ZohoConfiguration successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZohoConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zoho/configurations/{id}":{"get":{"summary":"Gets a single Zoho Configuration","security":[{"BearerAuth":[]}],"operationId":"getZohoConfigurationById","tags":["Zoho Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoConfiguration to get"}],"responses":{"200":{"description":"ZohoConfiguration with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZohoConfiguration"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoConfiguration not found"}}},"put":{"summary":"Update an existing Zoho Configuration","security":[{"BearerAuth":[]}],"operationId":"updateZohoConfigurationById","tags":["Zoho Configurations"],"requestBody":{"required":true,"description":"data for updating a new Zoho Configuration","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"moduleCreate":{"type":"string","enum":["lead","contact","nothing"],"default":"lead"},"moduleSearch":{"type":"string","enum":["contact_lead","contact","lead"],"default":"contact_lead"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoConfiguration to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoConfiguration not found"}}}},"/integrations/zoho/configurations/{id}/fields":{"get":{"summary":"Gets configurations fields","security":[{"BearerAuth":[]}],"operationId":"getFields","tags":["Zoho Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zoho/configurations/{id}/subjects":{"get":{"summary":"Gets configurations subjects","security":[{"BearerAuth":[]}],"operationId":"getSubjects","tags":["Zoho Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zoho/configurations/{id}/descriptions":{"get":{"summary":"Gets configurations descriptions","security":[{"BearerAuth":[]}],"operationId":"getDescriptions","tags":["Zoho Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoConfiguration"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zoho/configurations/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Zoho Configuration","security":[{"BearerAuth":[]}],"operationId":"deleteZohoConfigurationById","tags":["Zoho Configurations"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoConfiguration to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoConfiguration not found"}}}},"/integrations/zoho/fields":{"get":{"summary":"Gets a list of Zoho Fields","security":[{"BearerAuth":[]}],"operationId":"listAllZohoField","tags":["Zoho Fields"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ZohoField"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Zoho Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZohoField"}}}}},"206":{"description":"Partial (paged) collection of Zoho Fields","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ZohoField"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Zoho Field","security":[{"BearerAuth":[]}],"operationId":"createZohoField","tags":["Zoho Fields"],"requestBody":{"required":true,"description":"data for creating a new Zoho Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"responses":{"201":{"description":"ZohoField successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZohoField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/integrations/zoho/fields/{id}":{"get":{"summary":"Gets a single Zoho Field","security":[{"BearerAuth":[]}],"operationId":"getZohoFieldById","tags":["Zoho Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoField to get"}],"responses":{"200":{"description":"ZohoField with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZohoField"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoField not found"}}},"put":{"summary":"Update an existing Zoho Field","security":[{"BearerAuth":[]}],"operationId":"updateZohoFieldById","tags":["Zoho Fields"],"requestBody":{"required":true,"description":"data for updating a new Zoho Field","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"default":"string"},"content":{"type":"string"},"key":{"type":"string"},"keyType":{"type":"string","enum":["string","variable","customVariable"]},"keyContent":{"type":"string"},"idField":{"type":"string"},"nameField":{"type":"string"},"customField":{"type":"boolean","default":true},"variableName":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoField to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoField not found"}}}},"/integrations/zoho/fields/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Zoho Field","security":[{"BearerAuth":[]}],"operationId":"deleteZohoFieldById","tags":["Zoho Fields"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ZohoField to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ZohoField not found"}}}},"/jira":{"post":{"summary":"Creates a new issue","security":[{"BearerAuth":[]}],"operationId":"createJiraIssue","tags":["Issue"],"requestBody":{"required":true,"description":"Issue content","content":{"application/json":{"schema":{"type":"object","properties":{"issuetype":{"type":"string","description":"the issue type","default":"Bug"},"summary":{"type":"string","description":"short description of the issue"},"description":{"type":"string","description":"the issue full description"}},"required":["summary","description"]}}}},"responses":{"201":{"description":"issue submitted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/answers/reports":{"get":{"summary":"Gets a list of Reports","security":[{"BearerAuth":[]}],"operationId":"listAllJscriptyAnswerReport","tags":["JscriptyAnswerReport"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each JscriptyAnswerReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JscriptyAnswerReport"}}}}},"206":{"description":"Partial (paged) collection of Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JscriptyAnswerReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Report","security":[{"BearerAuth":[]}],"operationId":"createJscriptyAnswerReport","tags":["JscriptyAnswerReport"],"requestBody":{"required":true,"description":"data for creating a new Report","content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"},"membername":{"type":"string"},"projectname":{"type":"string"},"queue":{"type":"string"},"uniqueid":{"type":"string"},"calleridname":{"type":"string"},"calleridnum":{"type":"string"},"questionId":{"type":"string"}}}}}},"responses":{"201":{"description":"JscriptyAnswerReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptyAnswerReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/answers/reports/describe":{"get":{"summary":"Gets table info about Reports","security":[{"BearerAuth":[]}],"operationId":"describeJscriptyAnswerReport","tags":["JscriptyAnswerReport"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/answers/reports/{id}":{"get":{"summary":"Gets a single Report","security":[{"BearerAuth":[]}],"operationId":"getJscriptyAnswerReportById","tags":["JscriptyAnswerReport"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyAnswerReport to get"}],"responses":{"200":{"description":"JscriptyAnswerReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptyAnswerReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyAnswerReport not found"}}},"put":{"summary":"Update an existing Report","security":[{"BearerAuth":[]}],"operationId":"updateJscriptyAnswerReportById","tags":["JscriptyAnswerReport"],"requestBody":{"required":true,"description":"data for updating a new Report","content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"},"membername":{"type":"string"},"projectname":{"type":"string"},"queue":{"type":"string"},"uniqueid":{"type":"string"},"calleridname":{"type":"string"},"calleridnum":{"type":"string"},"questionId":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyAnswerReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyAnswerReport not found"}}}},"/jscripty/answers/reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Report","security":[{"BearerAuth":[]}],"operationId":"deleteJscriptyAnswerReportById","tags":["JscriptyAnswerReport"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyAnswerReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyAnswerReport not found"}}}},"/jscripty/projects":{"get":{"summary":"Gets a list of Projects","security":[{"BearerAuth":[]}],"operationId":"listAllJscriptyProject","tags":["Jscripty Projects"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each JscriptyProject"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Projects","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JscriptyProject"}}}}},"206":{"description":"Partial (paged) collection of Projects","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JscriptyProject"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Project","security":[{"BearerAuth":[]}],"operationId":"createJscriptyProject","tags":["Jscripty Projects"],"requestBody":{"required":true,"description":"data for creating a new Project","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"formData":{"type":"string"},"enableUncompleteSave":{"type":"boolean","default":true},"sendUnpauseOnSubmit":{"type":"boolean","default":false}}}}}},"responses":{"201":{"description":"JscriptyProject successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptyProject"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/projects/{id}":{"get":{"summary":"Gets a single Project","security":[{"BearerAuth":[]}],"operationId":"getJscriptyProjectById","tags":["Jscripty Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyProject to get"}],"responses":{"200":{"description":"JscriptyProject with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptyProject"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyProject not found"}}},"put":{"summary":"Update an existing Project","security":[{"BearerAuth":[]}],"operationId":"updateJscriptyProjectById","tags":["Jscripty Projects"],"requestBody":{"required":true,"description":"data for updating a new Project","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"formData":{"type":"string"},"enableUncompleteSave":{"type":"boolean","default":true},"sendUnpauseOnSubmit":{"type":"boolean","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyProject to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyProject not found"}}}},"/jscripty/projects/{id}/sessions":{"get":{"summary":"Gets jscripty project sessions","security":[{"BearerAuth":[]}],"operationId":"getSessions","tags":["Jscripty Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyProject"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/projects/{id}/answers":{"get":{"summary":"Gets jscripty project answers","security":[{"BearerAuth":[]}],"operationId":"getAnswers","tags":["Jscripty Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyProject"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/projects/{id}/summary":{"get":{"summary":"Gets jscripty project summary","security":[{"BearerAuth":[]}],"operationId":"getSummary","tags":["Jscripty Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyProject"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/projects/clone":{"post":{"summary":"Clone an existing Project","security":[{"BearerAuth":[]}],"operationId":"cloneJscriptyProject","tags":["Jscripty Projects"],"requestBody":{"required":true,"description":"data for creating a new Project","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"id of the Project to clone"},"name":{"type":"string"},"description":{"type":"string"},"formData":{"type":"string"},"enableUncompleteSave":{"type":"boolean","default":true},"sendUnpauseOnSubmit":{"type":"boolean","default":false}},"required":["id"]}}}},"responses":{"201":{"description":"JscriptyProject successfully cloned. Returns the cloned object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptyProject"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/projects/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Project","security":[{"BearerAuth":[]}],"operationId":"deleteJscriptyProjectById","tags":["Jscripty Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyProject to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyProject not found"}}}},"/jscripty/questions/reports":{"get":{"summary":"Gets a list of Reports","security":[{"BearerAuth":[]}],"operationId":"listAllJscriptyQuestionReport","tags":["JscriptyQuestionReport"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each JscriptyQuestionReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JscriptyQuestionReport"}}}}},"206":{"description":"Partial (paged) collection of Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JscriptyQuestionReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Report","security":[{"BearerAuth":[]}],"operationId":"createJscriptyQuestionReport","tags":["JscriptyQuestionReport"],"requestBody":{"required":true,"description":"data for creating a new Report","content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"},"membername":{"type":"string"},"projectname":{"type":"string"},"queue":{"type":"string"},"uniqueid":{"type":"string"},"calleridname":{"type":"string"},"calleridnum":{"type":"string"},"questionId":{"type":"string"}}}}}},"responses":{"201":{"description":"JscriptyQuestionReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptyQuestionReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/questions/reports/describe":{"get":{"summary":"Gets table info about Reports","security":[{"BearerAuth":[]}],"operationId":"describeJscriptyQuestionReport","tags":["JscriptyQuestionReport"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/questions/reports/{id}":{"get":{"summary":"Gets a single Report","security":[{"BearerAuth":[]}],"operationId":"getJscriptyQuestionReportById","tags":["JscriptyQuestionReport"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyQuestionReport to get"}],"responses":{"200":{"description":"JscriptyQuestionReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptyQuestionReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyQuestionReport not found"}}},"put":{"summary":"Update an existing Report","security":[{"BearerAuth":[]}],"operationId":"updateJscriptyQuestionReportById","tags":["JscriptyQuestionReport"],"requestBody":{"required":true,"description":"data for updating a new Report","content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"},"membername":{"type":"string"},"projectname":{"type":"string"},"queue":{"type":"string"},"uniqueid":{"type":"string"},"calleridname":{"type":"string"},"calleridnum":{"type":"string"},"questionId":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyQuestionReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyQuestionReport not found"}}}},"/jscripty/questions/reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Report","security":[{"BearerAuth":[]}],"operationId":"deleteJscriptyQuestionReportById","tags":["JscriptyQuestionReport"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptyQuestionReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptyQuestionReport not found"}}}},"/jscripty/sessions/reports":{"get":{"summary":"Gets a list of Reports","security":[{"BearerAuth":[]}],"operationId":"listAllJscriptySessionReport","tags":["JscriptySessionReport"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each JscriptySessionReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JscriptySessionReport"}}}}},"206":{"description":"Partial (paged) collection of Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JscriptySessionReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Report","security":[{"BearerAuth":[]}],"operationId":"createJscriptySessionReport","tags":["JscriptySessionReport"],"requestBody":{"required":true,"description":"data for creating a new Report","content":{"application/json":{"schema":{"type":"object","properties":{"starttime":{"type":"string"},"endtime":{"type":"string"},"membername":{"type":"string"},"projectname":{"type":"string"},"queue":{"type":"string"},"uniqueid":{"type":"string"},"calleridname":{"type":"string"},"calleridnum":{"type":"string"},"completed":{"type":"boolean","default":false}}}}}},"responses":{"201":{"description":"JscriptySessionReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptySessionReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/sessions/reports/describe":{"get":{"summary":"Gets table info about Reports","security":[{"BearerAuth":[]}],"operationId":"describeJscriptySessionReport","tags":["JscriptySessionReport"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/sessions/reports/{id}":{"get":{"summary":"Gets a single Report","security":[{"BearerAuth":[]}],"operationId":"getJscriptySessionReportById","tags":["JscriptySessionReport"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptySessionReport to get"}],"responses":{"200":{"description":"JscriptySessionReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JscriptySessionReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptySessionReport not found"}}},"put":{"summary":"Update an existing Report","security":[{"BearerAuth":[]}],"operationId":"updateJscriptySessionReportById","tags":["JscriptySessionReport"],"requestBody":{"required":true,"description":"data for updating a new Report","content":{"application/json":{"schema":{"type":"object","properties":{"starttime":{"type":"string"},"endtime":{"type":"string"},"membername":{"type":"string"},"projectname":{"type":"string"},"queue":{"type":"string"},"uniqueid":{"type":"string"},"calleridname":{"type":"string"},"calleridnum":{"type":"string"},"completed":{"type":"boolean","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptySessionReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptySessionReport not found"}}}},"/jscripty/sessions/reports/{id}/questions":{"get":{"summary":"Gets Jscripty Session questions","security":[{"BearerAuth":[]}],"operationId":"getQuestions","tags":["JscriptySessionReport"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptySessionReport"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/jscripty/sessions/reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Report","security":[{"BearerAuth":[]}],"operationId":"deleteJscriptySessionReportById","tags":["JscriptySessionReport"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the JscriptySessionReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"JscriptySessionReport not found"}}}},"/license/":{"get":{"summary":"Gets License Info","operationId":"index","tags":["License"],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/license/{id}":{"put":{"summary":"Update License Info","security":[{"BearerAuth":[]}],"operationId":"update","tags":["License"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the License"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts":{"get":{"summary":"Gets a list of Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllMailAccount","tags":["Mail Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MailAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailAccount"}}}}},"206":{"description":"Partial (paged) collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/describe":{"get":{"summary":"Gets table info about Accounts","security":[{"BearerAuth":[]}],"operationId":"describeMailAccount","tags":["Mail Accounts"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}":{"get":{"summary":"Gets a single Account","security":[{"BearerAuth":[]}],"operationId":"getMailAccountById","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount to get"}],"responses":{"200":{"description":"MailAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailAccount not found"}}},"put":{"summary":"Update an existing Account","security":[{"BearerAuth":[]}],"operationId":"updateMailAccountById","tags":["Mail Accounts"],"requestBody":{"required":true,"description":"data for updating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string"},"name":{"type":"string"},"service":{"type":"boolean","default":false},"email":{"type":"string"},"active":{"type":"boolean","default":true},"key":{"type":"string"},"template":{"type":"string"},"markAsUnread":{"type":"boolean","default":false},"fontFamily":{"type":"string","default":"Arial,Helvetica,sans-serif"},"fontSize":{"type":"integer","default":13},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}
Subject : {{message.subject}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled","default":null},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailAccount not found"}}},"delete":{"summary":"Deletes a mail account","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/dispositions":{"get":{"summary":"Gets account dispositions","security":[{"BearerAuth":[]}],"operationId":"getDispositions","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new disposition","security":[{"BearerAuth":[]}],"operationId":"addDisposition","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes dispositions from account","security":[{"BearerAuth":[]}],"operationId":"removeDispositions","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/canned_answers":{"get":{"summary":"Gets account canned answers","security":[{"BearerAuth":[]}],"operationId":"getAnswers","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new canned answer","security":[{"BearerAuth":[]}],"operationId":"addAnswer","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes canned answers from account","security":[{"BearerAuth":[]}],"operationId":"removeAnswers","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/in_servers":{"get":{"summary":"Gets account IMAP server","security":[{"BearerAuth":[]}],"operationId":"getImap","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new IMAP server","security":[{"BearerAuth":[]}],"operationId":"addImap","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes IMAP server from an account","security":[{"BearerAuth":[]}],"operationId":"removeImap","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/out_servers":{"get":{"summary":"Gets account SMTP server","security":[{"BearerAuth":[]}],"operationId":"getSmtp","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new SMTP server","security":[{"BearerAuth":[]}],"operationId":"addSmtp","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes SMTP server from an account","security":[{"BearerAuth":[]}],"operationId":"removeSmtp","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/interactions":{"get":{"summary":"Gets account interactions","security":[{"BearerAuth":[]}],"operationId":"getInteractions","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new interactions","security":[{"BearerAuth":[]}],"operationId":"addInteraction","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/applications":{"get":{"summary":"Gets account applications","security":[{"BearerAuth":[]}],"operationId":"getApplications","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new applications","security":[{"BearerAuth":[]}],"operationId":"addApplications","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/messages":{"get":{"summary":"Gets account messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/verify":{"get":{"summary":"Verify mail account","security":[{"BearerAuth":[]}],"operationId":"verifySmtp","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/users":{"get":{"summary":"Gets agents from mail account","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a mail account","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a mail account","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/":{"post":{"summary":"Create a mail account","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Mail Accounts"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/accounts/{id}/send":{"post":{"summary":"Send new mail","security":[{"BearerAuth":[]}],"operationId":"send","tags":["Mail Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/applications/{id}":{"get":{"summary":"Gets a single Application","security":[{"BearerAuth":[]}],"operationId":"getMailApplicationById","tags":["Mail Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailApplication to get"}],"responses":{"200":{"description":"MailApplication with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailApplication not found"}}},"put":{"summary":"Update an existing Application","security":[{"BearerAuth":[]}],"operationId":"updateMailApplicationById","tags":["Mail Applications"],"requestBody":{"required":true,"description":"data for updating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailApplication to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailApplication not found"}}}},"/mail/applications/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Application","security":[{"BearerAuth":[]}],"operationId":"deleteMailApplicationById","tags":["Mail Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailApplication to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailApplication not found"}}}},"/mail/interactions":{"get":{"summary":"Gets a list of Interactions","security":[{"BearerAuth":[]}],"operationId":"listAllMailInteraction","tags":["Mail Interactions"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MailInteraction"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailInteraction"}}}}},"206":{"description":"Partial (paged) collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailInteraction"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Interaction","security":[{"BearerAuth":[]}],"operationId":"createMailInteraction","tags":["Mail Interactions"],"requestBody":{"required":true,"description":"data for creating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"inReplyTo":{"type":"string"},"to":{"type":"string"},"cc":{"type":"string"},"subject":{"type":"string"},"attach":{"type":"boolean","default":false},"read1stAt":{"type":"string"},"substatus":{"type":"string"},"substatusAt":{"type":"string"},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgBody":{"type":"string"},"lastMsgText":{"type":"string"}},"required":["firstMsgDirection","lastMsgDirection"]}}}},"responses":{"201":{"description":"MailInteraction successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/interactions/describe":{"get":{"summary":"Gets table info about Interactions","security":[{"BearerAuth":[]}],"operationId":"describeMailInteraction","tags":["Mail Interactions"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/interactions/{id}":{"get":{"summary":"Gets a single Interaction","security":[{"BearerAuth":[]}],"operationId":"getMailInteractionById","tags":["Mail Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailInteraction to get"}],"responses":{"200":{"description":"MailInteraction with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailInteraction not found"}}},"put":{"summary":"Update an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"updateMailInteractionById","tags":["Mail Interactions"],"requestBody":{"required":true,"description":"data for updating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"inReplyTo":{"type":"string"},"to":{"type":"string"},"cc":{"type":"string"},"subject":{"type":"string"},"attach":{"type":"boolean","default":false},"read1stAt":{"type":"string"},"substatus":{"type":"string"},"substatusAt":{"type":"string"},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgBody":{"type":"string"},"lastMsgText":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailInteraction to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailInteraction not found"}}}},"/mail/interactions/{id}/messages":{"get":{"summary":"Gets interaction messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Mail Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new message","security":[{"BearerAuth":[]}],"operationId":"addMessage","tags":["Mail Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/interactions/{id}/download":{"get":{"summary":"Gets interaction","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Mail Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/interactions/{id}/tags":{"post":{"summary":"Add tags to the interaction","security":[{"BearerAuth":[]}],"operationId":"addTags","tags":["Mail Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes tags from interaction","security":[{"BearerAuth":[]}],"operationId":"removeTags","tags":["Mail Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailInteraction"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/interactions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"deleteMailInteractionById","tags":["Mail Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailInteraction to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailInteraction not found"}}}},"/mail/messages":{"get":{"summary":"Gets a list of Messages","security":[{"BearerAuth":[]}],"operationId":"listAllMailMessage","tags":["Mail Messages"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MailMessage"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailMessage"}}}}},"206":{"description":"Partial (paged) collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailMessage"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/messages/describe":{"get":{"summary":"Gets table info about Messages","security":[{"BearerAuth":[]}],"operationId":"describeMailMessage","tags":["Mail Messages"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/messages/{id}":{"get":{"summary":"Gets a single Message","security":[{"BearerAuth":[]}],"operationId":"getMailMessageById","tags":["Mail Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailMessage to get"}],"responses":{"200":{"description":"MailMessage with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailMessage not found"}}},"put":{"summary":"Update an existing Message","security":[{"BearerAuth":[]}],"operationId":"updateMailMessageById","tags":["Mail Messages"],"requestBody":{"required":true,"description":"data for updating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"plainBody":{"type":"string"},"read":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"messageId":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"cc":{"type":"string"},"bcc":{"type":"string"},"subject":{"type":"string"},"sentAt":{"type":"string"},"attach":{"type":"integer","default":0},"secret":{"type":"boolean","default":false},"readAt":{"type":"string"},"originTo":{"type":"string"},"originCc":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailMessage to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailMessage not found"}}}},"/mail/messages/{id}/download":{"get":{"summary":"Gets message","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Mail Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailMessage"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/messages/":{"post":{"summary":"Create a message","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Mail Messages"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/messages/{id}/accept":{"put":{"summary":"Accepts message","security":[{"BearerAuth":[]}],"operationId":"accept","tags":["Mail Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/messages/{id}/reject":{"put":{"summary":"Rejects message","security":[{"BearerAuth":[]}],"operationId":"reject","tags":["Mail Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/messages/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Message","security":[{"BearerAuth":[]}],"operationId":"deleteMailMessageById","tags":["Mail Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailMessage to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailMessage not found"}}}},"/mail/queues":{"get":{"summary":"Gets a list of Queues","security":[{"BearerAuth":[]}],"operationId":"listAllMailQueue","tags":["Mail Queues"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MailQueue"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailQueue"}}}}},"206":{"description":"Partial (paged) collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailQueue"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Queue","security":[{"BearerAuth":[]}],"operationId":"createMailQueue","tags":["Mail Queues"],"requestBody":{"required":true,"description":"data for creating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]}}}}}},"responses":{"201":{"description":"MailQueue successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/queues/describe":{"get":{"summary":"Gets table info about Queues","security":[{"BearerAuth":[]}],"operationId":"describeMailQueue","tags":["Mail Queues"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/queues/{id}":{"get":{"summary":"Gets a single Queue","security":[{"BearerAuth":[]}],"operationId":"getMailQueueById","tags":["Mail Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue to get"}],"responses":{"200":{"description":"MailQueue with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailQueue not found"}}},"put":{"summary":"Update an existing Queue","security":[{"BearerAuth":[]}],"operationId":"updateMailQueueById","tags":["Mail Queues"],"requestBody":{"required":true,"description":"data for updating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailQueue not found"}}}},"/mail/queues/{id}/members":{"get":{"summary":"GetMembers","security":[{"BearerAuth":[]}],"operationId":"getMembers","tags":["Mail Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/queues/{id}/teams":{"get":{"summary":"Gets queues list","security":[{"BearerAuth":[]}],"operationId":"getTeams","tags":["Mail Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add teams to a queue","security":[{"BearerAuth":[]}],"operationId":"addTeams","tags":["Mail Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove teams from a queue","security":[{"BearerAuth":[]}],"operationId":"removeTeams","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/queues/{id}/users":{"get":{"summary":"Gets queue agents","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Mail Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a queue","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Mail Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a queue","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Mail Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/queues/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Queue","security":[{"BearerAuth":[]}],"operationId":"deleteMailQueueById","tags":["Mail Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueue to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailQueue not found"}}}},"/mail/reports/queue":{"get":{"summary":"Gets a list of Mail Queue Reports","security":[{"BearerAuth":[]}],"operationId":"listAllMailQueueReport","tags":["Mail Queue Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MailQueueReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Mail Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailQueueReport"}}}}},"206":{"description":"Partial (paged) collection of Mail Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailQueueReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Mail Queue Report","security":[{"BearerAuth":[]}],"operationId":"createMailQueueReport","tags":["Mail Queue Reports"],"requestBody":{"required":true,"description":"data for creating a new Mail Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}},"required":["uniqueid"]}}}},"responses":{"201":{"description":"MailQueueReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/reports/queue/describe":{"get":{"summary":"Gets table info about Mail Queue Reports","security":[{"BearerAuth":[]}],"operationId":"describeMailQueueReport","tags":["Mail Queue Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/reports/queue/{id}":{"get":{"summary":"Gets a single Mail Queue Report","security":[{"BearerAuth":[]}],"operationId":"getMailQueueReportById","tags":["Mail Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueueReport to get"}],"responses":{"200":{"description":"MailQueueReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailQueueReport not found"}}},"put":{"summary":"Update an existing Mail Queue Report","security":[{"BearerAuth":[]}],"operationId":"updateMailQueueReportById","tags":["Mail Queue Reports"],"requestBody":{"required":true,"description":"data for updating a new Mail Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueueReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailQueueReport not found"}}}},"/mail/reports/queue/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Mail Queue Report","security":[{"BearerAuth":[]}],"operationId":"deleteMailQueueReportById","tags":["Mail Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailQueueReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailQueueReport not found"}}}},"/mail/out_servers":{"get":{"summary":"Gets a list of SMTPs","security":[{"BearerAuth":[]}],"operationId":"listAllMailServerOut","tags":["Mail SMTP"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MailServerOut"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of SMTPs","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailServerOut"}}}}},"206":{"description":"Partial (paged) collection of SMTPs","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailServerOut"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new SMTP","security":[{"BearerAuth":[]}],"operationId":"createMailServerOut","tags":["Mail SMTP"],"requestBody":{"required":true,"description":"data for creating a new SMTP","content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string"},"host":{"type":"string"},"user":{"type":"string"},"pass":{"type":"string"},"port":{"type":"integer"},"secure":{"type":"boolean","default":false},"service":{"type":"string"},"authentication":{"type":"boolean","default":true}}}}}},"responses":{"201":{"description":"MailServerOut successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailServerOut"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/out_servers/{id}":{"get":{"summary":"Gets a single SMTP","security":[{"BearerAuth":[]}],"operationId":"getMailServerOutById","tags":["Mail SMTP"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailServerOut to get"}],"responses":{"200":{"description":"MailServerOut with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailServerOut"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailServerOut not found"}}},"put":{"summary":"Update an existing SMTP","security":[{"BearerAuth":[]}],"operationId":"updateMailServerOutById","tags":["Mail SMTP"],"requestBody":{"required":true,"description":"data for updating a new SMTP","content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string"},"host":{"type":"string"},"user":{"type":"string"},"pass":{"type":"string"},"port":{"type":"integer"},"secure":{"type":"boolean","default":false},"service":{"type":"string"},"authentication":{"type":"boolean","default":true}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailServerOut to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailServerOut not found"}}}},"/mail/out_servers/{id}/destroy_many":{"delete":{"summary":"Destroy an existing SMTP","security":[{"BearerAuth":[]}],"operationId":"deleteMailServerOutById","tags":["Mail SMTP"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailServerOut to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailServerOut not found"}}}},"/mail/substatuses":{"get":{"summary":"Gets a list of Substatuses","security":[{"BearerAuth":[]}],"operationId":"listAllMailSubstatus","tags":["Mail Substatuses"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MailSubstatus"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Substatuses","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailSubstatus"}}}}},"206":{"description":"Partial (paged) collection of Substatuses","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailSubstatus"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Queue","security":[{"BearerAuth":[]}],"operationId":"createMailSubstatus","tags":["Mail Substatuses"],"requestBody":{"required":true,"description":"data for creating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"MailSubstatus successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailSubstatus"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/substatuses/describe":{"get":{"summary":"Gets table info about Substatuses","security":[{"BearerAuth":[]}],"operationId":"describeMailSubstatus","tags":["Mail Substatuses"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/substatuses/{id}":{"get":{"summary":"Gets a single Queue","security":[{"BearerAuth":[]}],"operationId":"getMailSubstatusById","tags":["Mail Substatuses"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailSubstatus to get"}],"responses":{"200":{"description":"MailSubstatus with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailSubstatus"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailSubstatus not found"}}},"put":{"summary":"Update an existing Queue","security":[{"BearerAuth":[]}],"operationId":"updateMailSubstatusById","tags":["Mail Substatuses"],"requestBody":{"required":true,"description":"data for updating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailSubstatus to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailSubstatus not found"}}}},"/mail/substatuses/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Queue","security":[{"BearerAuth":[]}],"operationId":"deleteMailSubstatusById","tags":["Mail Substatuses"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailSubstatus to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailSubstatus not found"}}}},"/mail/reports/transfer":{"get":{"summary":"Gets a list of Mail Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"listAllMailTransferReport","tags":["Mail Transfer Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MailTransferReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Mail Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailTransferReport"}}}}},"206":{"description":"Partial (paged) collection of Mail Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailTransferReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Mail Transfer Report","security":[{"BearerAuth":[]}],"operationId":"createMailTransferReport","tags":["Mail Transfer Reports"],"requestBody":{"required":true,"description":"data for creating a new Mail Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}},"required":["uniqueid","type","transferredAt"]}}}},"responses":{"201":{"description":"MailTransferReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/reports/transfer/describe":{"get":{"summary":"Gets table info about Mail Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"describeMailTransferReport","tags":["Mail Transfer Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/mail/reports/transfer/{id}":{"get":{"summary":"Gets a single Mail Transfer Report","security":[{"BearerAuth":[]}],"operationId":"getMailTransferReportById","tags":["Mail Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailTransferReport to get"}],"responses":{"200":{"description":"MailTransferReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailTransferReport not found"}}},"put":{"summary":"Update an existing Mail Transfer Report","security":[{"BearerAuth":[]}],"operationId":"updateMailTransferReportById","tags":["Mail Transfer Reports"],"requestBody":{"required":true,"description":"data for updating a new Mail Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailTransferReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailTransferReport not found"}}}},"/mail/reports/transfer/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Mail Transfer Report","security":[{"BearerAuth":[]}],"operationId":"deleteMailTransferReportById","tags":["Mail Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MailTransferReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MailTransferReport not found"}}}},"/members/reports":{"get":{"summary":"Gets a list of Member Reports","security":[{"BearerAuth":[]}],"operationId":"listAllMemberReport","tags":["Member Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each MemberReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Member Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MemberReport"}}}}},"206":{"description":"Partial (paged) collection of Member Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MemberReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/members/reports/describe":{"get":{"summary":"Gets table info about Member Reports","security":[{"BearerAuth":[]}],"operationId":"describeMemberReport","tags":["Member Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/members/reports/{id}":{"get":{"summary":"Gets a single Member Report","security":[{"BearerAuth":[]}],"operationId":"getMemberReportById","tags":["Member Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the MemberReport to get"}],"responses":{"200":{"description":"MemberReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"MemberReport not found"}}}},"/migrations":{"get":{"summary":"Gets a list of Migrations","operationId":"listAllMigration","tags":["Migrations"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Migration"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Migrations","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Migration"}}}}},"206":{"description":"Partial (paged) collection of Migrations","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Migration"}}}}}}}},"/networks":{"get":{"summary":"Gets a list of Networks","security":[{"BearerAuth":[]}],"operationId":"listAllNetwork","tags":["Networks"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Network"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Networks","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Network"}}}}},"206":{"description":"Partial (paged) collection of Networks","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Network"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/networks/{id}":{"get":{"summary":"Gets a single Network","security":[{"BearerAuth":[]}],"operationId":"getNetworkById","tags":["Networks"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Network to get"}],"responses":{"200":{"description":"Network with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Network"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Network not found"}}},"put":{"summary":"Update an existing network","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Networks"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Network"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Deletes a network","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Networks"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Network"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/networks/":{"post":{"summary":"Create a new network","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Networks"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/notifications/":{"post":{"summary":"Send notification to user","security":[{"BearerAuth":[]}],"operationId":"sendNotification","tags":["Notifications"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts":{"get":{"summary":"Gets a list of Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllOpenchannelAccount","tags":["Openchannel Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each OpenchannelAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelAccount"}}}}},"206":{"description":"Partial (paged) collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Account","security":[{"BearerAuth":[]}],"operationId":"createOpenchannelAccount","tags":["Openchannel Accounts"],"requestBody":{"required":true,"description":"data for creating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"token":{"type":"string","default":"opoXzKt8ZC9vMwf35tCZb0Y8Ci6w5NXM"},"replyUri":{"type":"string"},"key":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"mapKey":{"type":"string"},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled","default":null},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false}},"required":["name","key"]}}}},"responses":{"201":{"description":"OpenchannelAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts/describe":{"get":{"summary":"Gets table info about Accounts","security":[{"BearerAuth":[]}],"operationId":"describeOpenchannelAccount","tags":["Openchannel Accounts"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts/{id}":{"get":{"summary":"Gets a single Account","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelAccountById","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount to get"}],"responses":{"200":{"description":"OpenchannelAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelAccount not found"}}},"put":{"summary":"Update an existing Account","security":[{"BearerAuth":[]}],"operationId":"updateOpenchannelAccountById","tags":["Openchannel Accounts"],"requestBody":{"required":true,"description":"data for updating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"token":{"type":"string","default":"HgITaNXHR7se5sobT0VIEUDhnuXiOOoL"},"replyUri":{"type":"string"},"key":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"mapKey":{"type":"string"},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled","default":null},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelAccount not found"}}}},"/openchannel/accounts/{id}/dispositions":{"get":{"summary":"Gets account dispositions","security":[{"BearerAuth":[]}],"operationId":"getDispositions","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new disposition","security":[{"BearerAuth":[]}],"operationId":"addDisposition","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes dispositions from account","security":[{"BearerAuth":[]}],"operationId":"removeDispositions","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts/{id}/canned_answers":{"get":{"summary":"Gets account canned answers","security":[{"BearerAuth":[]}],"operationId":"getAnswers","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new canned answer","security":[{"BearerAuth":[]}],"operationId":"addAnswer","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes canned answers from account","security":[{"BearerAuth":[]}],"operationId":"removeAnswers","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts/{id}/applications":{"get":{"summary":"Gets account applications","security":[{"BearerAuth":[]}],"operationId":"getApplications","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new applications","security":[{"BearerAuth":[]}],"operationId":"addApplications","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts/{id}/interactions":{"get":{"summary":"Gets Openchannel Account Interactions","security":[{"BearerAuth":[]}],"operationId":"getInteractions","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts/{id}/users":{"get":{"summary":"Gets agents from openchannel account","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a openchannel account","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a openchannel account","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts/{id}/notify":{"post":{"summary":"Notify new message","operationId":"notify","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"201":{"description":"successfully created"}}}},"/openchannel/accounts/{id}/send":{"post":{"summary":"Send new openchannel message","security":[{"BearerAuth":[]}],"operationId":"send","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Account","security":[{"BearerAuth":[]}],"operationId":"deleteOpenchannelAccountById","tags":["Openchannel Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelAccount not found"}}}},"/openchannel/applications":{"get":{"summary":"Gets a list of Applications","security":[{"BearerAuth":[]}],"operationId":"listAllOpenchannelApplication","tags":["Openchannel Applications"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each OpenchannelApplication"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Applications","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelApplication"}}}}},"206":{"description":"Partial (paged) collection of Applications","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelApplication"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Application","security":[{"BearerAuth":[]}],"operationId":"createOpenchannelApplication","tags":["Openchannel Applications"],"requestBody":{"required":true,"description":"data for creating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}},"required":["priority","app"]}}}},"responses":{"201":{"description":"OpenchannelApplication successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/applications/{id}":{"get":{"summary":"Gets a single Application","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelApplicationById","tags":["Openchannel Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelApplication to get"}],"responses":{"200":{"description":"OpenchannelApplication with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelApplication not found"}}},"put":{"summary":"Update an existing Application","security":[{"BearerAuth":[]}],"operationId":"updateOpenchannelApplicationById","tags":["Openchannel Applications"],"requestBody":{"required":true,"description":"data for updating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelApplication to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelApplication not found"}}}},"/openchannel/applications/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Application","security":[{"BearerAuth":[]}],"operationId":"deleteOpenchannelApplicationById","tags":["Openchannel Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelApplication to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelApplication not found"}}}},"/openchannel/interactions":{"get":{"summary":"Gets a list of Interactions","security":[{"BearerAuth":[]}],"operationId":"listAllOpenchannelInteraction","tags":["Openchannel Interactions"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each OpenchannelInteraction"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelInteraction"}}}}},"206":{"description":"Partial (paged) collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelInteraction"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Interaction","security":[{"BearerAuth":[]}],"operationId":"createOpenchannelInteraction","tags":["Openchannel Interactions"],"requestBody":{"required":true,"description":"data for creating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"read1stAt":{"type":"string"},"threadId":{"type":"string"},"externalUrl":{"type":"string"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"from":{"type":"string"}},"required":["lastMsgDirection"]}}}},"responses":{"201":{"description":"OpenchannelInteraction successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/interactions/describe":{"get":{"summary":"Gets table info about Interactions","security":[{"BearerAuth":[]}],"operationId":"describeOpenchannelInteraction","tags":["Openchannel Interactions"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/interactions/{id}":{"get":{"summary":"Gets a single Interaction","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelInteractionById","tags":["Openchannel Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelInteraction to get"}],"responses":{"200":{"description":"OpenchannelInteraction with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelInteraction not found"}}},"put":{"summary":"Update an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"updateOpenchannelInteractionById","tags":["Openchannel Interactions"],"requestBody":{"required":true,"description":"data for updating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"read1stAt":{"type":"string"},"threadId":{"type":"string"},"externalUrl":{"type":"string"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"from":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelInteraction to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelInteraction not found"}}}},"/openchannel/interactions/{id}/messages":{"get":{"summary":"Gets interaction messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Openchannel Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new messages","security":[{"BearerAuth":[]}],"operationId":"addMessage","tags":["Openchannel Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/interactions/{id}/download":{"get":{"summary":"Gets interaction","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Openchannel Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/interactions/{id}/tags":{"post":{"summary":"Add tags to the interaction","security":[{"BearerAuth":[]}],"operationId":"addTags","tags":["Openchannel Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes tags from interaction","security":[{"BearerAuth":[]}],"operationId":"removeTags","tags":["Openchannel Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelInteraction"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/interactions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"deleteOpenchannelInteractionById","tags":["Openchannel Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelInteraction to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelInteraction not found"}}}},"/openchannel/messages":{"get":{"summary":"Gets a list of Messages","security":[{"BearerAuth":[]}],"operationId":"listAllOpenchannelMessage","tags":["Openchannel Messages"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each OpenchannelMessage"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelMessage"}}}}},"206":{"description":"Partial (paged) collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelMessage"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Message","security":[{"BearerAuth":[]}],"operationId":"createOpenchannelMessage","tags":["Openchannel Messages"],"requestBody":{"required":true,"description":"data for creating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"secret":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"readAt":{"type":"string"},"providerName":{"type":"string"},"providerResponse":{"type":"string"}},"required":["body","direction"]}}}},"responses":{"201":{"description":"OpenchannelMessage successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/messages/describe":{"get":{"summary":"Gets table info about Messages","security":[{"BearerAuth":[]}],"operationId":"describeOpenchannelMessage","tags":["Openchannel Messages"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/messages/{id}":{"get":{"summary":"Gets a single Message","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelMessageById","tags":["Openchannel Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelMessage to get"}],"responses":{"200":{"description":"OpenchannelMessage with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelMessage not found"}}},"put":{"summary":"Update an existing Message","security":[{"BearerAuth":[]}],"operationId":"updateOpenchannelMessageById","tags":["Openchannel Messages"],"requestBody":{"required":true,"description":"data for updating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"secret":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"readAt":{"type":"string"},"providerName":{"type":"string"},"providerResponse":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelMessage to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelMessage not found"}}}},"/openchannel/messages/{id}/accept":{"put":{"summary":"Accepts message","security":[{"BearerAuth":[]}],"operationId":"accept","tags":["Openchannel Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/messages/{id}/reject":{"put":{"summary":"Rejects message","security":[{"BearerAuth":[]}],"operationId":"reject","tags":["Openchannel Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/messages/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Message","security":[{"BearerAuth":[]}],"operationId":"deleteOpenchannelMessageById","tags":["Openchannel Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelMessage to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelMessage not found"}}}},"/openchannel/queues":{"get":{"summary":"Gets a list of Queues","security":[{"BearerAuth":[]}],"operationId":"listAllOpenchannelQueue","tags":["Openchannel Queues"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each OpenchannelQueue"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelQueue"}}}}},"206":{"description":"Partial (paged) collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelQueue"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Queue","security":[{"BearerAuth":[]}],"operationId":"createOpenchannelQueue","tags":["Openchannel Queues"],"requestBody":{"required":true,"description":"data for creating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]}}}}}},"responses":{"201":{"description":"OpenchannelQueue successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/queues/describe":{"get":{"summary":"Gets table info about Queues","security":[{"BearerAuth":[]}],"operationId":"describeOpenchannelQueue","tags":["Openchannel Queues"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/queues/{id}":{"get":{"summary":"Gets a single Queue","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelQueueById","tags":["Openchannel Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue to get"}],"responses":{"200":{"description":"OpenchannelQueue with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelQueue not found"}}},"put":{"summary":"Update an existing Queue","security":[{"BearerAuth":[]}],"operationId":"updateOpenchannelQueueById","tags":["Openchannel Queues"],"requestBody":{"required":true,"description":"data for updating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelQueue not found"}}}},"/openchannel/queues/{id}/members":{"get":{"summary":"GetMembers","security":[{"BearerAuth":[]}],"operationId":"getMembers","tags":["Openchannel Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/queues/{id}/teams":{"get":{"summary":"Gets queues list","security":[{"BearerAuth":[]}],"operationId":"getTeams","tags":["Openchannel Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add teams to a queue","security":[{"BearerAuth":[]}],"operationId":"addTeams","tags":["Openchannel Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove teams from a queue","security":[{"BearerAuth":[]}],"operationId":"removeTeams","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/queues/{id}/users":{"get":{"summary":"Gets queue agents","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Openchannel Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a queue","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Openchannel Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a queue","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Openchannel Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/queues/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Queue","security":[{"BearerAuth":[]}],"operationId":"deleteOpenchannelQueueById","tags":["Openchannel Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueue to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelQueue not found"}}}},"/openchannel/reports/queue":{"get":{"summary":"Gets a list of Openchannel Queue Reports","security":[{"BearerAuth":[]}],"operationId":"listAllOpenchannelQueueReport","tags":["Openchannel Queue Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each OpenchannelQueueReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Openchannel Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelQueueReport"}}}}},"206":{"description":"Partial (paged) collection of Openchannel Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelQueueReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Openchannel Queue Report","security":[{"BearerAuth":[]}],"operationId":"createOpenchannelQueueReport","tags":["Openchannel Queue Reports"],"requestBody":{"required":true,"description":"data for creating a new Openchannel Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}},"required":["uniqueid"]}}}},"responses":{"201":{"description":"OpenchannelQueueReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/reports/queue/describe":{"get":{"summary":"Gets table info about Openchannel Queue Reports","security":[{"BearerAuth":[]}],"operationId":"describeOpenchannelQueueReport","tags":["Openchannel Queue Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/reports/queue/{id}":{"get":{"summary":"Gets a single Openchannel Queue Report","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelQueueReportById","tags":["Openchannel Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueueReport to get"}],"responses":{"200":{"description":"OpenchannelQueueReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelQueueReport not found"}}},"put":{"summary":"Update an existing Openchannel Queue Report","security":[{"BearerAuth":[]}],"operationId":"updateOpenchannelQueueReportById","tags":["Openchannel Queue Reports"],"requestBody":{"required":true,"description":"data for updating a new Openchannel Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueueReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelQueueReport not found"}}}},"/openchannel/reports/queue/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Openchannel Queue Report","security":[{"BearerAuth":[]}],"operationId":"deleteOpenchannelQueueReportById","tags":["Openchannel Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelQueueReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelQueueReport not found"}}}},"/openchannel/reports/transfer":{"get":{"summary":"Gets a list of Openchannel Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"listAllOpenchannelTransferReport","tags":["Openchannel Transfer Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each OpenchannelTransferReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Openchannel Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelTransferReport"}}}}},"206":{"description":"Partial (paged) collection of Openchannel Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenchannelTransferReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Openchannel Transfer Report","security":[{"BearerAuth":[]}],"operationId":"createOpenchannelTransferReport","tags":["Openchannel Transfer Reports"],"requestBody":{"required":true,"description":"data for creating a new Openchannel Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}},"required":["uniqueid","type","transferredAt"]}}}},"responses":{"201":{"description":"OpenchannelTransferReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/reports/transfer/describe":{"get":{"summary":"Gets table info about Openchannel Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"describeOpenchannelTransferReport","tags":["Openchannel Transfer Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/openchannel/reports/transfer/{id}":{"get":{"summary":"Gets a single Openchannel Transfer Report","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelTransferReportById","tags":["Openchannel Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelTransferReport to get"}],"responses":{"200":{"description":"OpenchannelTransferReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenchannelTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelTransferReport not found"}}},"put":{"summary":"Update an existing Openchannel Transfer Report","security":[{"BearerAuth":[]}],"operationId":"updateOpenchannelTransferReportById","tags":["Openchannel Transfer Reports"],"requestBody":{"required":true,"description":"data for updating a new Openchannel Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelTransferReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelTransferReport not found"}}}},"/openchannel/reports/transfer/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Openchannel Transfer Report","security":[{"BearerAuth":[]}],"operationId":"deleteOpenchannelTransferReportById","tags":["Openchannel Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the OpenchannelTransferReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"OpenchannelTransferReport not found"}}}},"/pauses":{"get":{"summary":"Gets a list of Pauses","security":[{"BearerAuth":[]}],"operationId":"listAllPause","tags":["Pauses"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Pause"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Pauses","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Pause"}}}}},"206":{"description":"Partial (paged) collection of Pauses","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Pause"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Pause","security":[{"BearerAuth":[]}],"operationId":"createPause","tags":["Pauses"],"requestBody":{"required":true,"description":"data for creating a new Pause","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"Pause successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pause"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/pauses/{id}":{"get":{"summary":"Gets a single Pause","security":[{"BearerAuth":[]}],"operationId":"getPauseById","tags":["Pauses"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Pause to get"}],"responses":{"200":{"description":"Pause with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pause"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Pause not found"}}},"put":{"summary":"Update an existing Pause","security":[{"BearerAuth":[]}],"operationId":"updatePauseById","tags":["Pauses"],"requestBody":{"required":true,"description":"data for updating a new Pause","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Pause to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Pause not found"}}}},"/pauses/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Pause","security":[{"BearerAuth":[]}],"operationId":"deletePauseById","tags":["Pauses"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Pause to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Pause not found"}}}},"/plugins":{"get":{"summary":"Gets a list of Plugins","security":[{"BearerAuth":[]}],"operationId":"listAllPlugin","tags":["Plugins"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Plugin"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Plugins","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Plugin"}}}}},"206":{"description":"Partial (paged) collection of Plugins","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Plugin"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/plugins/webhook":{"get":{"summary":"Redirect a plugin request to the specified path","operationId":"webhookGet","tags":["Plugins"],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Redirect a plugin request to the specified path","operationId":"webhookPost","tags":["Plugins"],"responses":{"201":{"description":"successfully created"}}}},"/plugins/{id}":{"get":{"summary":"Gets a single Plugin","security":[{"BearerAuth":[]}],"operationId":"getPluginById","tags":["Plugins"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Plugin to get"}],"responses":{"200":{"description":"Plugin with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Plugin"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Plugin not found"}}},"put":{"summary":"Update an existing plugin","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Plugins"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Plugin"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Delete a plugin","security":[{"BearerAuth":[]}],"operationId":"delete","tags":["Plugins"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Plugin"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/plugins/{id}/download":{"get":{"summary":"Download plugin source code","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Plugins"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Plugin"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/plugins/":{"post":{"summary":"Upload new plugin","security":[{"BearerAuth":[]}],"operationId":"postupload","tags":["Plugins"],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/pm2":{"get":{"summary":"Gets pm2 processes","security":[{"BearerAuth":[]}],"operationId":"getPm2Processes","tags":["Pm2"],"responses":{"200":{"description":"list of processes","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Start a single pm2 process","security":[{"BearerAuth":[]}],"operationId":"startPm2Process","tags":["Pm2"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the process"}],"requestBody":{"required":true,"description":"process data","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"process name"},"script":{"type":"string","description":"script name"}},"required":["name","script"]}}}},"responses":{"201":{"description":"successfully started"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Process not found"}}}},"/pm2/{id}":{"get":{"summary":"Gets a single pm2 process by id","security":[{"BearerAuth":[]}],"operationId":"getPm2Process","tags":["Pm2"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the process"}],"responses":{"200":{"description":"process information","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Process not found"}}},"put":{"summary":"Update an existing process","security":[{"BearerAuth":[]}],"operationId":"updatePm2Process","tags":["Pm2"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the process"}],"requestBody":{"required":true,"description":"process data","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"process name"},"script":{"type":"string","description":"script name"}},"required":["name","script"]}}}},"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Process not found"}}},"delete":{"summary":"Delete an existing process by id","security":[{"BearerAuth":[]}],"operationId":"deletePm2Process","tags":["Pm2"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the process"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Process not found"}}}},"/rpc/voice/channels":{"get":{"summary":"Gets a list of RTVoiceChannels","security":[{"BearerAuth":[]}],"operationId":"getRTVoiceChannels","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTVoiceChannels","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/voice/channels/{uniqueid}/mixmonitor":{"get":{"summary":"Gets a list of RTVoiceChannelMixMonitor","security":[{"BearerAuth":[]}],"operationId":"getRTVoiceChannelMixMonitor","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"uniqueid","schema":{"type":"integer"},"required":true,"description":"unique id of the channel"}],"responses":{"200":{"description":"list of RTVoiceChannelMixMonitor","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/voice/channels/{uniqueid}/stopmixmonitor":{"get":{"summary":"Gets a list of RTVoiceChannelStopMixMonitor","security":[{"BearerAuth":[]}],"operationId":"getRTVoiceChannelStopMixMonitor","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"uniqueid","schema":{"type":"integer"},"required":true,"description":"unique id of the channel"}],"responses":{"200":{"description":"list of RTVoiceChannelStopMixMonitor","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/voice/queues":{"get":{"summary":"Gets a list of RTVoiceQueues","security":[{"BearerAuth":[]}],"operationId":"getRTVoiceQueues","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTVoiceQueues","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/chat/queues":{"get":{"summary":"Gets a list of RTChatQueues","security":[{"BearerAuth":[]}],"operationId":"getRTChatQueues","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTChatQueues","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/mail/queues":{"get":{"summary":"Gets a list of RTMailQueues","security":[{"BearerAuth":[]}],"operationId":"getRTMailQueues","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTMailQueues","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/mail/accounts":{"get":{"summary":"Gets a list of RTMailAccounts","security":[{"BearerAuth":[]}],"operationId":"getRTMailAccounts","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTMailAccounts","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/openchannel/queues":{"get":{"summary":"Gets a list of RTOpenchannelQueues","security":[{"BearerAuth":[]}],"operationId":"getRTOpenchannelQueues","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTOpenchannelQueues","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/sms/queues":{"get":{"summary":"Gets a list of RTSmsQueues","security":[{"BearerAuth":[]}],"operationId":"getRTSmsQueues","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTSmsQueues","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/whatsapp/queues":{"get":{"summary":"Gets a list of RTWhatsappQueues","security":[{"BearerAuth":[]}],"operationId":"getRTWhatsappQueues","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTWhatsappQueues","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/fax/queues":{"get":{"summary":"Gets a list of RTFaxQueues","security":[{"BearerAuth":[]}],"operationId":"getRTFaxQueues","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTFaxQueues","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/voice/queues/preview/{id}":{"get":{"summary":"Gets a single preview contact","security":[{"BearerAuth":[]}],"operationId":"getRTVoiceQueuePreview","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the preview"}],"responses":{"200":{"description":"preview contact","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"preview contact not found"}}}},"/rpc/voice/queues/channels":{"get":{"summary":"Gets a list of RTVoiceQueuesChannels","security":[{"BearerAuth":[]}],"operationId":"getRTVoiceQueuesChannels","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTVoiceQueuesChannels","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/voice/queues/channels/{uniqueid}":{"get":{"summary":"Gets a single RTVoiceQueueChannel","security":[{"BearerAuth":[]}],"operationId":"getRTVoiceQueueChannel","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"uniqueid","schema":{"type":"integer"},"required":true,"description":"unique id of the channel"}],"responses":{"200":{"description":"RT Voice Queue Channel","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Channel not found"}}}},"/rpc/voice/queues/channels/{uniqueid}/hangup":{"get":{"summary":"Hangup a single RTVoiceQueueChannel","security":[{"BearerAuth":[]}],"operationId":"hangupRTVoiceQueueChannel","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"uniqueid","schema":{"type":"integer"},"required":true,"description":"unique id of the channel"}],"responses":{"200":{"description":"Hangup ok"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Channel not found"}}}},"/rpc/voice/queues/channels/{uniqueid}/redirect/{exten}":{"get":{"summary":"Redirect a single RTVoiceQueueChannel to a specific extension.","security":[{"BearerAuth":[]}],"operationId":"redirectRTVoiceQueueChannel","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"uniqueid","schema":{"type":"integer"},"required":true,"description":"unique id of the channel"},{"in":"path","name":"exten","schema":{"type":"string"},"required":true,"description":"extension name"}],"responses":{"200":{"description":"Redirect ok"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Channel or extension not found"}}}},"/rpc/voice/queues/{id}":{"get":{"summary":"Gets a single RTVoiceQueue","security":[{"BearerAuth":[]}],"operationId":"getRTVoiceQueue","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"RT Voice Queue","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"RT Voice Queue not found"}}}},"/rpc/outbound":{"get":{"summary":"Gets a list of RTOutbound","security":[{"BearerAuth":[]}],"operationId":"getRTOutbound","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTOutbound","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/outbound/channels":{"get":{"summary":"Gets a list of RTOutboundChannels","security":[{"BearerAuth":[]}],"operationId":"getRTOutboundChannels","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTOutboundChannels","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/agents":{"get":{"summary":"Gets a list of RTAgents","security":[{"BearerAuth":[]}],"operationId":"getRTAgents","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTAgents","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/agents/{id}/capacity":{"put":{"summary":"Sets agent capacity","security":[{"BearerAuth":[]}],"operationId":"putRTAgentCapacity","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the agent"}],"requestBody":{"required":true,"description":"Desired capacity payload","content":{"application/json":{"schema":{"type":"object","properties":{"capacity":{"type":"integer","description":"the desired capacity"},"interaction":{"type":"object","description":"interaction"}},"required":["capacity","interaction"]}}}},"responses":{"200":{"description":"Capacity updated","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"agent id"},"capacity":{"type":"integer","description":"agent capacity"}},"required":["id","capacity"]}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Agent not found"}}}},"/rpc/telephones":{"get":{"summary":"Gets a list of RTTelephones","security":[{"BearerAuth":[]}],"operationId":"getRTTelephones","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTTelephones","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/trunks":{"get":{"summary":"Gets a list of RTTrunks","security":[{"BearerAuth":[]}],"operationId":"getRTTrunks","tags":["RPC Realtime"],"responses":{"200":{"description":"list of RTTrunks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/campaigns":{"get":{"summary":"Gets a list of campaigns","security":[{"BearerAuth":[]}],"operationId":"getCampaigns","tags":["RPC Realtime"],"responses":{"200":{"description":"list of campaigns","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/fax/accounts":{"get":{"summary":"Gets a list of FaxAccounts","security":[{"BearerAuth":[]}],"operationId":"getFaxAccounts","tags":["RPC Realtime"],"responses":{"200":{"description":"list of FaxAccounts","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/chat/queues/waitinginteractions":{"get":{"summary":"Gets a list of chatQueuesWaitingInteractions","security":[{"BearerAuth":[]}],"operationId":"getChatQueuesWaitingInteractions","tags":["RPC Realtime"],"responses":{"200":{"description":"list of chatQueuesWaitingInteractions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/mail/queues/waitinginteractions":{"get":{"summary":"Gets a list of mailQueuesWaitingInteractions","security":[{"BearerAuth":[]}],"operationId":"getMailQueuesWaitingInteractions","tags":["RPC Realtime"],"responses":{"200":{"description":"list of mailQueuesWaitingInteractions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/openchannel/queues/waitinginteractions":{"get":{"summary":"Gets a list of openchannelQueuesWaitingInteractions","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelQueuesWaitingInteractions","tags":["RPC Realtime"],"responses":{"200":{"description":"list of openchannelQueuesWaitingInteractions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/openchannel/queues/{id}/waitinginteractions":{"get":{"summary":"Gets a list of openchannelQueuesIdWaitingInteractions for the queue","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelQueuesWaitingInteractionsForId","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"list of openchannelQueuesIdWaitingInteractions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/sms/queues/waitinginteractions":{"get":{"summary":"Gets a list of smsQueuesWaitingInteractions","security":[{"BearerAuth":[]}],"operationId":"getSmsQueuesWaitingInteractions","tags":["RPC Realtime"],"responses":{"200":{"description":"list of getSmsQueuesWaitingInteractions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/whatsapp/queues/waitinginteractions":{"get":{"summary":"Gets a list of whatsappQueuesWaitingInteractions","security":[{"BearerAuth":[]}],"operationId":"getWhatsappQueuesWaitingInteractions","tags":["RPC Realtime"],"responses":{"200":{"description":"list of whatsappQueuesWaitingInteractions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/fax/queues/waitinginteractions":{"get":{"summary":"Gets a list of faxQueuesWaitingInteractions","security":[{"BearerAuth":[]}],"operationId":"getFaxQueuesWaitingInteractions","tags":["RPC Realtime"],"responses":{"200":{"description":"list of faxQueuesWaitingInteractions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/rpc/mail/queues/{id}/notify":{"post":{"summary":"Notify message to a specific mail queue","security":[{"BearerAuth":[]}],"operationId":"postMailQueueNotify","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the agent"}],"requestBody":{"required":true,"description":"message to be notified","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Notification","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Agent not found"}}}},"/rpc/mail/queues/{id}":{"get":{"summary":"Gets a single RTMailQueue","security":[{"BearerAuth":[]}],"operationId":"getRTMailQueue","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Queue","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Queue not found"}}}},"/rpc/chat/queues/{id}/notify":{"post":{"summary":"Notify message to a specific chat queue","security":[{"BearerAuth":[]}],"operationId":"postChatQueueNotify","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the agent"}],"responses":{"200":{"description":"Notification","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Agent not found"}}}},"/rpc/chat/queues/{id}":{"get":{"summary":"Gets a single RTChatQueue","security":[{"BearerAuth":[]}],"operationId":"getRTChatQueue","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Queue","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Queue not found"}}}},"/rpc/fax/queues/{id}/notify":{"post":{"summary":"Notify message to a specific fax queue","security":[{"BearerAuth":[]}],"operationId":"postFaxQueueNotify","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Notification","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Queue not found"}}}},"/rpc/fax/queues/{id}":{"get":{"summary":"Gets a single RTFaxQueue","security":[{"BearerAuth":[]}],"operationId":"getRTFaxQueue","tags":["RPC Realtimen"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Queue","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Queue not found"}}}},"/rpc/openchannel/queues/{id}/notify":{"post":{"summary":"Notify message to a specific openchannel queue","security":[{"BearerAuth":[]}],"operationId":"postOpenchannelQueueNotify","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Notification","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Process not found"}}}},"/rpc/openchannel/queues/{id}":{"get":{"summary":"Gets a single RTOpenchannelQueue","security":[{"BearerAuth":[]}],"operationId":"getRTOpenchannelQueue","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Queue","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Queue not found"}}}},"/rpc/sms/queues/{id}/notify":{"post":{"summary":"Notify message to a specific sms queue","security":[{"BearerAuth":[]}],"operationId":"postSmsQueueNotify","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Notification","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Process not found"}}}},"/rpc/whatsapp/queues/{id}/notify":{"post":{"summary":"Notify message to a specific agent","security":[{"BearerAuth":[]}],"operationId":"postAgentNotify","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the agent"}],"responses":{"200":{"description":"Notification","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Agent not found"}}}},"/rpc/sms/queues/{id}":{"get":{"summary":"Gets a single RTSmsQueue","security":[{"BearerAuth":[]}],"operationId":"getRTSmsQueue","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Queue","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Queue not found"}}}},"/rpc/whatsapp/queues/{id}":{"get":{"summary":"Gets a single RTWhatsappQueue","security":[{"BearerAuth":[]}],"operationId":"getRTWhatsappQueue","tags":["RPC Realtime"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the queue"}],"responses":{"200":{"description":"Queue","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Queue not found"}}}},"/schedules":{"get":{"summary":"Gets a list of Schedules","security":[{"BearerAuth":[]}],"operationId":"listAllSchedule","tags":["Schedules"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Schedule"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Schedules","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Schedule"}}}}},"206":{"description":"Partial (paged) collection of Schedules","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Schedule"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Schedule","security":[{"BearerAuth":[]}],"operationId":"createSchedule","tags":["Schedules"],"requestBody":{"required":true,"description":"data for creating a new Schedule","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"active":{"type":"boolean","default":false},"cron":{"type":"string","default":"0 0 * * *"},"startAt":{"type":"string"},"endAt":{"type":"string"},"subtractNumber":{"type":"integer","default":1},"subtractUnit":{"type":"string","enum":["years","quarters","months","weeks","days","hours","minutes"],"default":"days"},"output":{"type":"string","enum":["csv","pdf","xlsx"],"default":"csv"},"type":{"type":"string","enum":["custom","default"],"default":"custom"},"sendMail":{"type":"boolean","default":false},"email":{"type":"string"},"cc":{"type":"string"},"bcc":{"type":"string"},"sendIfEmpty":{"type":"boolean","default":true}},"required":["name","active","cron","startAt","endAt","subtractNumber","subtractUnit","output","type"]}}}},"responses":{"201":{"description":"Schedule successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/schedules/{id}":{"get":{"summary":"Gets a single Schedule","security":[{"BearerAuth":[]}],"operationId":"getScheduleById","tags":["Schedules"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Schedule to get"}],"responses":{"200":{"description":"Schedule with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Schedule not found"}}},"put":{"summary":"Update an existing Schedule","security":[{"BearerAuth":[]}],"operationId":"updateScheduleById","tags":["Schedules"],"requestBody":{"required":true,"description":"data for updating a new Schedule","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"active":{"type":"boolean","default":false},"cron":{"type":"string","default":"0 0 * * *"},"startAt":{"type":"string"},"endAt":{"type":"string"},"subtractNumber":{"type":"integer","default":1},"subtractUnit":{"type":"string","enum":["years","quarters","months","weeks","days","hours","minutes"],"default":"days"},"output":{"type":"string","enum":["csv","pdf","xlsx"],"default":"csv"},"type":{"type":"string","enum":["custom","default"],"default":"custom"},"sendMail":{"type":"boolean","default":false},"email":{"type":"string"},"cc":{"type":"string"},"bcc":{"type":"string"},"sendIfEmpty":{"type":"boolean","default":true}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Schedule to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Schedule not found"}}}},"/schedules/{id}/run":{"get":{"summary":"Run Scheduler","security":[{"BearerAuth":[]}],"operationId":"run","tags":["Schedules"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Schedule"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/schedules/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Schedule","security":[{"BearerAuth":[]}],"operationId":"deleteScheduleById","tags":["Schedules"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Schedule to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Schedule not found"}}}},"/screen/recordings":{"get":{"summary":"Gets a list of Recordings","security":[{"BearerAuth":[]}],"operationId":"listAllScreenRecording","tags":["Screen Recordings"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each ScreenRecording"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Recordings","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScreenRecording"}}}}},"206":{"description":"Partial (paged) collection of Recordings","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScreenRecording"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Recording","security":[{"BearerAuth":[]}],"operationId":"createScreenRecording","tags":["Screen Recordings"],"requestBody":{"required":true,"description":"data for creating a new Recording","content":{"application/json":{"schema":{"type":"object","properties":{"format":{"type":"string"},"interactionid":{"type":"string"},"channel":{"type":"string"},"value":{"type":"string"},"rating":{"type":"integer"},"duration":{"type":"integer"},"startedAt":{"type":"string"},"closedAt":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}}}}}},"responses":{"201":{"description":"ScreenRecording successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenRecording"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/screen/recordings/describe":{"get":{"summary":"Gets table info about Recordings","security":[{"BearerAuth":[]}],"operationId":"describeScreenRecording","tags":["Screen Recordings"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/screen/recordings/{id}":{"get":{"summary":"Gets a single Recording","security":[{"BearerAuth":[]}],"operationId":"getScreenRecordingById","tags":["Screen Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ScreenRecording to get"}],"responses":{"200":{"description":"ScreenRecording with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenRecording"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ScreenRecording not found"}}},"put":{"summary":"Update an existing Recording","security":[{"BearerAuth":[]}],"operationId":"updateScreenRecordingById","tags":["Screen Recordings"],"requestBody":{"required":true,"description":"data for updating a new Recording","content":{"application/json":{"schema":{"type":"object","properties":{"format":{"type":"string"},"interactionid":{"type":"string"},"channel":{"type":"string"},"value":{"type":"string"},"rating":{"type":"integer"},"duration":{"type":"integer"},"startedAt":{"type":"string"},"closedAt":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ScreenRecording to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"ScreenRecording not found"}}},"delete":{"summary":"Delete screen recording","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Screen Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ScreenRecording"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/screen/recordings/{id}/download":{"get":{"summary":"Download Recording","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Screen Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ScreenRecording"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/settings":{"get":{"summary":"Gets a list of Settings","security":[{"BearerAuth":[]}],"operationId":"listAllSetting","tags":["Settings"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Setting"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Settings","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Setting"}}}}},"206":{"description":"Partial (paged) collection of Settings","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Setting"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/settings/now":{"get":{"summary":"Get Server Current Date","operationId":"getDate","tags":["Settings"],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/settings/{id}":{"get":{"summary":"Gets a single Setting","operationId":"getSettingById","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting to get"}],"responses":{"200":{"description":"Setting with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Setting"}}}},"404":{"description":"Setting not found"}}},"put":{"summary":"Update an existing Setting","security":[{"BearerAuth":[]}],"operationId":"updateSettingById","tags":["Settings"],"requestBody":{"required":true,"description":"data for updating a new Setting","content":{"application/json":{"schema":{"type":"object","properties":{"min_internal":{"type":"integer","default":1000},"min_mailbox":{"type":"integer","default":1000},"agi_port":{"type":"integer","default":4573},"soundPath":{"type":"string","default":"/var/opt/motion2/server/files/sounds/converted"},"logo":{"type":"string"},"defaultLogo":{"type":"boolean","default":true},"loginLogo":{"type":"string"},"defaultLoginLogo":{"type":"boolean","default":true},"headerWhiteLabel":{"type":"string"},"defaultHeaderWhiteLabel":{"type":"boolean","default":true},"securePassword":{"type":"boolean","default":true},"firstSetup":{"type":"boolean","default":true},"stunaddr":{"type":"string"},"turnaddr":{"type":"string"},"turnusername":{"type":"string"},"turnpassword":{"type":"string"},"pageTitle":{"type":"string"},"defaultPageTitle":{"type":"boolean","default":true},"callRecordingEncryption":{"type":"boolean","default":false},"passwordExpiresDays":{"type":"integer","default":90},"phoneBarAutoUpdater":{"type":"boolean","default":true},"phoneBarAutoUpdaterUrl":{"type":"string","default":"https://www.xcally.com/bar/phonebar/autoupdater.xml"},"enableEmailPreview":{"type":"boolean","default":false},"split":{"type":"boolean","default":true},"splitSizeCsv":{"type":"integer","default":5000},"splitSizePdf":{"type":"integer","default":5000},"splitSizeXlsx":{"type":"integer","default":5000},"messagesAlignment":{"type":"string","default":"alternate"},"chatTimeout":{"type":"integer","default":30},"phoneBarRememberMeEnabled":{"type":"boolean","default":true},"preferred":{"type":"string"},"defaultPreferred":{"type":"boolean","default":true},"rtlSupport":{"type":"boolean","default":false},"defaultScreenRecordingPath":{"type":"string"},"allowedLoginAttempts":{"type":"integer","default":5},"blockDuration":{"type":"integer","default":10},"favicon":{"type":"string"},"defaultFavicon":{"type":"boolean","default":true},"loginMailFrequency":{"type":"integer","default":10},"transcribe":{"type":"boolean","default":false},"automaticTranscribe":{"type":"boolean","default":false},"transcribeAccountId":{"type":"integer"},"transcribeRegion":{"type":"string"},"sentiment":{"type":"boolean","default":false},"automaticSentiment":{"type":"boolean","default":false},"sentimentAccountId":{"type":"integer"},"sentimentRegion":{"type":"string"},"language":{"type":"string"},"bucket":{"type":"string"},"googleSsoEnabled":{"type":"boolean","default":false},"enforcePasswordHistory":{"type":"boolean","default":true},"passwordHistoryLimit":{"type":"integer","default":3}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Setting not found"}}}},"/settings/{id}/logo":{"get":{"summary":"Get logo","operationId":"getLogo","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Add logo","security":[{"BearerAuth":[]}],"operationId":"postaddLogo","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/settings/{id}/logo_login":{"get":{"summary":"Get logo login","operationId":"getLogoLogin","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Add logo login","security":[{"BearerAuth":[]}],"operationId":"postaddLogoLogin","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/settings/{id}/gdpr":{"get":{"summary":"Get gdpr settings","operationId":"gdpr","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/settings/{id}/preferred":{"get":{"summary":"Get Preferred","operationId":"getPreferred","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Add Preferred","security":[{"BearerAuth":[]}],"operationId":"postaddPreferred","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/settings/{id}/favicon":{"get":{"summary":"Get Favicon","operationId":"getFavicon","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Add Favicon","security":[{"BearerAuth":[]}],"operationId":"postaddFavicon","tags":["Settings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Setting"}],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts":{"get":{"summary":"Gets a list of Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllSmsAccount","tags":["Sms Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SmsAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsAccount"}}}}},"206":{"description":"Partial (paged) collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Account","security":[{"BearerAuth":[]}],"operationId":"createSmsAccount","tags":["Sms Accounts"],"requestBody":{"required":true,"description":"data for creating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"key":{"type":"string"},"remote":{"type":"string"},"token":{"type":"string","default":"XiWeIvQm9jR44uKXXbaTAMRW3cKSKIDM"},"phone":{"type":"string"},"type":{"type":"string","enum":["twilio","skebby","connectel","clicksend","plivo","clickatell","csc","infobip","intelepeer"]},"accountSid":{"type":"string"},"authId":{"type":"string"},"authToken":{"type":"string"},"smsMethod":{"type":"string","enum":["SI","TI","GP"]},"username":{"type":"string"},"password":{"type":"string"},"apiKey":{"type":"string"},"senderString":{"type":"string"},"deliveryReport":{"type":"boolean","default":false},"description":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"baseUrl":{"type":"string"},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false}},"required":["name","key","remote"]}}}},"responses":{"201":{"description":"SmsAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts/describe":{"get":{"summary":"Gets table info about Accounts","security":[{"BearerAuth":[]}],"operationId":"describeSmsAccount","tags":["Sms Accounts"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts/{id}":{"get":{"summary":"Gets a single Account","security":[{"BearerAuth":[]}],"operationId":"getSmsAccountById","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount to get"}],"responses":{"200":{"description":"SmsAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsAccount not found"}}},"put":{"summary":"Update an existing Account","security":[{"BearerAuth":[]}],"operationId":"updateSmsAccountById","tags":["Sms Accounts"],"requestBody":{"required":true,"description":"data for updating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"key":{"type":"string"},"remote":{"type":"string"},"token":{"type":"string","default":"5sbjWGiIAFCaMsOZLSTaVBFZQrZ6BXaO"},"phone":{"type":"string"},"type":{"type":"string","enum":["twilio","skebby","connectel","clicksend","plivo","clickatell","csc","infobip","intelepeer"]},"accountSid":{"type":"string"},"authId":{"type":"string"},"authToken":{"type":"string"},"smsMethod":{"type":"string","enum":["SI","TI","GP"]},"username":{"type":"string"},"password":{"type":"string"},"apiKey":{"type":"string"},"senderString":{"type":"string"},"deliveryReport":{"type":"boolean","default":false},"description":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":true},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"baseUrl":{"type":"string"},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsAccount not found"}}}},"/sms/accounts/{id}/dispositions":{"get":{"summary":"Gets account dispositions","security":[{"BearerAuth":[]}],"operationId":"getDispositions","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new disposition","security":[{"BearerAuth":[]}],"operationId":"addDisposition","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes dispositions from account","security":[{"BearerAuth":[]}],"operationId":"removeDispositions","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts/{id}/canned_answers":{"get":{"summary":"Gets account canned answers","security":[{"BearerAuth":[]}],"operationId":"getAnswers","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new canned answer","security":[{"BearerAuth":[]}],"operationId":"addAnswer","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes canned answers from account","security":[{"BearerAuth":[]}],"operationId":"removeAnswers","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts/{id}/applications":{"get":{"summary":"Gets account applications","security":[{"BearerAuth":[]}],"operationId":"getApplications","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new applications","security":[{"BearerAuth":[]}],"operationId":"addApplications","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts/{id}/interactions":{"get":{"summary":"Gets Sms Account interactions","security":[{"BearerAuth":[]}],"operationId":"getInteractions","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts/{id}/status":{"get":{"summary":"Receive message status as get request","operationId":"statusGet","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Receive message status","operationId":"status","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"201":{"description":"successfully created"}}}},"/sms/accounts/{id}/users":{"get":{"summary":"Gets agents from sms account","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a sms account","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a sms account","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts/{id}/notify":{"post":{"summary":"Notify new message","operationId":"notify","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"201":{"description":"successfully created"}}}},"/sms/accounts/{id}/send":{"post":{"summary":"Send new sms message","security":[{"BearerAuth":[]}],"operationId":"send","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Account","security":[{"BearerAuth":[]}],"operationId":"deleteSmsAccountById","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsAccount not found"}}}},"/sms/applications":{"get":{"summary":"Gets a list of Applications","security":[{"BearerAuth":[]}],"operationId":"listAllSmsApplication","tags":["Sms Applications"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SmsApplication"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Applications","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsApplication"}}}}},"206":{"description":"Partial (paged) collection of Applications","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsApplication"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Application","security":[{"BearerAuth":[]}],"operationId":"createSmsApplication","tags":["Sms Applications"],"requestBody":{"required":true,"description":"data for creating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}},"required":["priority","app"]}}}},"responses":{"201":{"description":"SmsApplication successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/applications/{id}":{"get":{"summary":"Gets a single Application","security":[{"BearerAuth":[]}],"operationId":"getSmsApplicationById","tags":["Sms Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsApplication to get"}],"responses":{"200":{"description":"SmsApplication with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsApplication not found"}}},"put":{"summary":"Update an existing Application","security":[{"BearerAuth":[]}],"operationId":"updateSmsApplicationById","tags":["Sms Applications"],"requestBody":{"required":true,"description":"data for updating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsApplication to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsApplication not found"}}}},"/sms/applications/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Application","security":[{"BearerAuth":[]}],"operationId":"deleteSmsApplicationById","tags":["Sms Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsApplication to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsApplication not found"}}}},"/sms/interactions":{"get":{"summary":"Gets a list of Interactions","security":[{"BearerAuth":[]}],"operationId":"listAllSmsInteraction","tags":["Sms Interactions"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SmsInteraction"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsInteraction"}}}}},"206":{"description":"Partial (paged) collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsInteraction"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Interaction","security":[{"BearerAuth":[]}],"operationId":"createSmsInteraction","tags":["Sms Interactions"],"requestBody":{"required":true,"description":"data for creating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"phone":{"type":"string"},"read1stAt":{"type":"string"},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"}},"required":["firstMsgDirection","lastMsgDirection"]}}}},"responses":{"201":{"description":"SmsInteraction successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/interactions/describe":{"get":{"summary":"Gets table info about Interactions","security":[{"BearerAuth":[]}],"operationId":"describeSmsInteraction","tags":["Sms Interactions"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/interactions/{id}":{"get":{"summary":"Gets a single Interaction","security":[{"BearerAuth":[]}],"operationId":"getSmsInteractionById","tags":["Sms Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsInteraction to get"}],"responses":{"200":{"description":"SmsInteraction with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsInteraction not found"}}},"put":{"summary":"Update an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"updateSmsInteractionById","tags":["Sms Interactions"],"requestBody":{"required":true,"description":"data for updating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"phone":{"type":"string"},"read1stAt":{"type":"string"},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsInteraction to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsInteraction not found"}}}},"/sms/interactions/{id}/messages":{"get":{"summary":"Gets interaction messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Sms Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new messages","security":[{"BearerAuth":[]}],"operationId":"addMessage","tags":["Sms Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/interactions/{id}/download":{"get":{"summary":"Gets interaction","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Sms Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/interactions/{id}/tags":{"post":{"summary":"Add tags to the interaction","security":[{"BearerAuth":[]}],"operationId":"addTags","tags":["Sms Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes tags from interaction","security":[{"BearerAuth":[]}],"operationId":"removeTags","tags":["Sms Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsInteraction"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/interactions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"deleteSmsInteractionById","tags":["Sms Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsInteraction to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsInteraction not found"}}}},"/sms/messages":{"get":{"summary":"Gets a list of Messages","security":[{"BearerAuth":[]}],"operationId":"listAllSmsMessage","tags":["Sms Messages"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SmsMessage"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsMessage"}}}}},"206":{"description":"Partial (paged) collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsMessage"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Message","security":[{"BearerAuth":[]}],"operationId":"createSmsMessage","tags":["Sms Messages"],"requestBody":{"required":true,"description":"data for creating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"messageId":{"type":"string"},"phone":{"type":"string"},"readAt":{"type":"string"},"secret":{"type":"boolean","default":false},"providerName":{"type":"string"},"providerResponse":{"type":"string"}},"required":["body","direction"]}}}},"responses":{"201":{"description":"SmsMessage successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/messages/describe":{"get":{"summary":"Gets table info about Messages","security":[{"BearerAuth":[]}],"operationId":"describeSmsMessage","tags":["Sms Messages"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/messages/{id}":{"get":{"summary":"Gets a single Message","security":[{"BearerAuth":[]}],"operationId":"getSmsMessageById","tags":["Sms Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsMessage to get"}],"responses":{"200":{"description":"SmsMessage with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsMessage not found"}}},"put":{"summary":"Update an existing Message","security":[{"BearerAuth":[]}],"operationId":"updateSmsMessageById","tags":["Sms Messages"],"requestBody":{"required":true,"description":"data for updating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"messageId":{"type":"string"},"phone":{"type":"string"},"readAt":{"type":"string"},"secret":{"type":"boolean","default":false},"providerName":{"type":"string"},"providerResponse":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsMessage to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsMessage not found"}}}},"/sms/messages/{id}/status":{"post":{"summary":"Receive message status","operationId":"status","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsMessage"}],"responses":{"201":{"description":"successfully created"}}}},"/sms/messages/{id}/accept":{"put":{"summary":"Accepts message","security":[{"BearerAuth":[]}],"operationId":"accept","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/messages/{id}/reject":{"put":{"summary":"Rejects message","security":[{"BearerAuth":[]}],"operationId":"reject","tags":["Sms Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/messages/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Message","security":[{"BearerAuth":[]}],"operationId":"deleteSmsMessageById","tags":["Sms Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsMessage to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsMessage not found"}}}},"/sms/queues":{"get":{"summary":"Gets a list of Queues","security":[{"BearerAuth":[]}],"operationId":"listAllSmsQueue","tags":["Sms Queues"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SmsQueue"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsQueue"}}}}},"206":{"description":"Partial (paged) collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsQueue"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Queue","security":[{"BearerAuth":[]}],"operationId":"createSmsQueue","tags":["Sms Queues"],"requestBody":{"required":true,"description":"data for creating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]}}}}}},"responses":{"201":{"description":"SmsQueue successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/queues/describe":{"get":{"summary":"Gets table info about Queues","security":[{"BearerAuth":[]}],"operationId":"describeSmsQueue","tags":["Sms Queues"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/queues/{id}":{"get":{"summary":"Gets a single Queue","security":[{"BearerAuth":[]}],"operationId":"getSmsQueueById","tags":["Sms Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue to get"}],"responses":{"200":{"description":"SmsQueue with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsQueue not found"}}},"put":{"summary":"Update an existing Queue","security":[{"BearerAuth":[]}],"operationId":"updateSmsQueueById","tags":["Sms Queues"],"requestBody":{"required":true,"description":"data for updating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsQueue not found"}}}},"/sms/queues/{id}/members":{"get":{"summary":"GetMembers","security":[{"BearerAuth":[]}],"operationId":"getMembers","tags":["Sms Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/queues/{id}/teams":{"get":{"summary":"Gets queues list","security":[{"BearerAuth":[]}],"operationId":"getTeams","tags":["Sms Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add teams to a queue","security":[{"BearerAuth":[]}],"operationId":"addTeams","tags":["Sms Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove teams from a queue","security":[{"BearerAuth":[]}],"operationId":"removeTeams","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/queues/{id}/users":{"get":{"summary":"Gets queue agents","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Sms Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a queue","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Sms Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a queue","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Sms Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/queues/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Queue","security":[{"BearerAuth":[]}],"operationId":"deleteSmsQueueById","tags":["Sms Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueue to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsQueue not found"}}}},"/sms/reports/queue":{"get":{"summary":"Gets a list of Sms Queue Reports","security":[{"BearerAuth":[]}],"operationId":"listAllSmsQueueReport","tags":["Sms Queue Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SmsQueueReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Sms Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsQueueReport"}}}}},"206":{"description":"Partial (paged) collection of Sms Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsQueueReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Sms Queue Report","security":[{"BearerAuth":[]}],"operationId":"createSmsQueueReport","tags":["Sms Queue Reports"],"requestBody":{"required":true,"description":"data for creating a new Sms Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}},"required":["uniqueid"]}}}},"responses":{"201":{"description":"SmsQueueReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/reports/queue/describe":{"get":{"summary":"Gets table info about Sms Queue Reports","security":[{"BearerAuth":[]}],"operationId":"describeSmsQueueReport","tags":["Sms Queue Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/reports/queue/{id}":{"get":{"summary":"Gets a single Sms Queue Report","security":[{"BearerAuth":[]}],"operationId":"getSmsQueueReportById","tags":["Sms Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueueReport to get"}],"responses":{"200":{"description":"SmsQueueReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsQueueReport not found"}}},"put":{"summary":"Update an existing Sms Queue Report","security":[{"BearerAuth":[]}],"operationId":"updateSmsQueueReportById","tags":["Sms Queue Reports"],"requestBody":{"required":true,"description":"data for updating a new Sms Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueueReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsQueueReport not found"}}}},"/sms/reports/queue/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Sms Queue Report","security":[{"BearerAuth":[]}],"operationId":"deleteSmsQueueReportById","tags":["Sms Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsQueueReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsQueueReport not found"}}}},"/sms/reports/transfer":{"get":{"summary":"Gets a list of Sms Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"listAllSmsTransferReport","tags":["Sms Transfer Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SmsTransferReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Sms Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsTransferReport"}}}}},"206":{"description":"Partial (paged) collection of Sms Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SmsTransferReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Sms Transfer Report","security":[{"BearerAuth":[]}],"operationId":"createSmsTransferReport","tags":["Sms Transfer Reports"],"requestBody":{"required":true,"description":"data for creating a new Sms Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}},"required":["uniqueid","type","transferredAt"]}}}},"responses":{"201":{"description":"SmsTransferReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/reports/transfer/describe":{"get":{"summary":"Gets table info about Sms Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"describeSmsTransferReport","tags":["Sms Transfer Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sms/reports/transfer/{id}":{"get":{"summary":"Gets a single Sms Transfer Report","security":[{"BearerAuth":[]}],"operationId":"getSmsTransferReportById","tags":["Sms Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsTransferReport to get"}],"responses":{"200":{"description":"SmsTransferReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsTransferReport not found"}}},"put":{"summary":"Update an existing Sms Transfer Report","security":[{"BearerAuth":[]}],"operationId":"updateSmsTransferReportById","tags":["Sms Transfer Reports"],"requestBody":{"required":true,"description":"data for updating a new Sms Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","default":"NOW"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsTransferReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsTransferReport not found"}}}},"/sms/reports/transfer/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Sms Transfer Report","security":[{"BearerAuth":[]}],"operationId":"deleteSmsTransferReportById","tags":["Sms Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SmsTransferReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SmsTransferReport not found"}}}},"/sounds":{"get":{"summary":"Gets a list of Sounds","security":[{"BearerAuth":[]}],"operationId":"listAllSound","tags":["Sounds"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Sound"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Sounds","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Sound"}}}}},"206":{"description":"Partial (paged) collection of Sounds","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Sound"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sounds/{id}":{"get":{"summary":"Gets a single Sound","security":[{"BearerAuth":[]}],"operationId":"getSoundById","tags":["Sounds"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Sound to get"}],"responses":{"200":{"description":"Sound with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sound"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Sound not found"}}},"put":{"summary":"Update an existing new sound","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Sounds"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Sound"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Deletes a sound","security":[{"BearerAuth":[]}],"operationId":"delete","tags":["Sounds"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Sound"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sounds/{id}/download":{"get":{"summary":"Download Sound","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Sounds"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Sound"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/sounds/":{"post":{"summary":"Create a new sound","security":[{"BearerAuth":[]}],"operationId":"postcreate","tags":["Sounds"],"requestBody":{"required":true,"description":"data for uploading a file","content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"success."},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/messages":{"get":{"summary":"Gets a list of Messages","security":[{"BearerAuth":[]}],"operationId":"listAllSquareMessage","tags":["Square Messages"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SquareMessage"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareMessage"}}}}},"206":{"description":"Partial (paged) collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareMessage"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Message","security":[{"BearerAuth":[]}],"operationId":"createSquareMessage","tags":["Square Messages"],"requestBody":{"required":true,"description":"data for creating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"body":{"type":"string"},"direction":{"type":"string","enum":["in","out"],"default":"out"},"providerName":{"type":"string"},"providerResponse":{"type":"string"}},"required":["body","direction"]}}}},"responses":{"201":{"description":"SquareMessage successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/messages/{id}":{"get":{"summary":"Gets a single Message","security":[{"BearerAuth":[]}],"operationId":"getSquareMessageById","tags":["Square Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareMessage to get"}],"responses":{"200":{"description":"SquareMessage with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareMessage not found"}}},"put":{"summary":"Update an existing Message","security":[{"BearerAuth":[]}],"operationId":"updateSquareMessageById","tags":["Square Messages"],"requestBody":{"required":true,"description":"data for updating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"body":{"type":"string"},"direction":{"type":"string","enum":["in","out"],"default":"out"},"providerName":{"type":"string"},"providerResponse":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareMessage to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareMessage not found"}}}},"/square/messages/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Message","security":[{"BearerAuth":[]}],"operationId":"deleteSquareMessageById","tags":["Square Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareMessage to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareMessage not found"}}}},"/square/odbc":{"get":{"summary":"Gets a list of ODBCs","security":[{"BearerAuth":[]}],"operationId":"listAllSquareOdbc","tags":["Square ODBC"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SquareOdbc"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of ODBCs","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareOdbc"}}}}},"206":{"description":"Partial (paged) collection of ODBCs","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareOdbc"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new ODBC","security":[{"BearerAuth":[]}],"operationId":"createSquareOdbc","tags":["Square ODBC"],"requestBody":{"required":true,"description":"data for creating a new ODBC","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"dsn":{"type":"string"},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"SquareOdbc successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareOdbc"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/odbc/{id}":{"get":{"summary":"Gets a single ODBC","security":[{"BearerAuth":[]}],"operationId":"getSquareOdbcById","tags":["Square ODBC"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareOdbc to get"}],"responses":{"200":{"description":"SquareOdbc with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareOdbc"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareOdbc not found"}}},"put":{"summary":"Update an existing ODBC","security":[{"BearerAuth":[]}],"operationId":"updateSquareOdbcById","tags":["Square ODBC"],"requestBody":{"required":true,"description":"data for updating a new ODBC","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"dsn":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareOdbc to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareOdbc not found"}}}},"/square/odbc/{id}/test":{"get":{"summary":"Test Odbc","security":[{"BearerAuth":[]}],"operationId":"test","tags":["Square ODBC"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareOdbc"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/odbc/{id}/destroy_many":{"delete":{"summary":"Destroy an existing ODBC","security":[{"BearerAuth":[]}],"operationId":"deleteSquareOdbcById","tags":["Square ODBC"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareOdbc to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareOdbc not found"}}}},"/square/projects":{"get":{"summary":"Gets a list of Projects","security":[{"BearerAuth":[]}],"operationId":"listAllSquareProject","tags":["Square Projects"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SquareProject"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Projects","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareProject"}}}}},"206":{"description":"Partial (paged) collection of Projects","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareProject"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Project","security":[{"BearerAuth":[]}],"operationId":"createSquareProject","tags":["Square Projects"],"requestBody":{"required":true,"description":"data for creating a new Project","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"notes":{"type":"string"},"preproduction":{"type":"object"},"production":{"type":"object"}},"required":["name"]}}}},"responses":{"201":{"description":"SquareProject successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareProject"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/projects/{id}":{"get":{"summary":"Gets a single Project","security":[{"BearerAuth":[]}],"operationId":"getSquareProjectById","tags":["Square Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareProject to get"}],"responses":{"200":{"description":"SquareProject with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareProject"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareProject not found"}}},"put":{"summary":"Update an existing Project","security":[{"BearerAuth":[]}],"operationId":"updateSquareProjectById","tags":["Square Projects"],"requestBody":{"required":true,"description":"data for updating a new Project","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"notes":{"type":"string"},"preproduction":{"type":"object"},"production":{"type":"object"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareProject to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareProject not found"}}}},"/square/projects/{id}/users":{"get":{"summary":"Gets users permissions from Project","security":[{"BearerAuth":[]}],"operationId":"getUsers","tags":["Square Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareProject"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Adds user permissions to a Project","security":[{"BearerAuth":[]}],"operationId":"addUsers","tags":["Square Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareProject"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes user permissions from a Project","security":[{"BearerAuth":[]}],"operationId":"removeUsers","tags":["Square Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareProject"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/projects/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Project","security":[{"BearerAuth":[]}],"operationId":"deleteSquareProjectById","tags":["Square Projects"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareProject to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareProject not found"}}}},"/square/recordings":{"get":{"summary":"Gets a list of Recordings","security":[{"BearerAuth":[]}],"operationId":"listAllSquareRecording","tags":["Square Recordings"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SquareRecording"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Recordings","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareRecording"}}}}},"206":{"description":"Partial (paged) collection of Recordings","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareRecording"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Recording","security":[{"BearerAuth":[]}],"operationId":"createSquareRecording","tags":["Square Recordings"],"requestBody":{"required":true,"description":"data for creating a new Recording","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"callerid":{"type":"string"},"calleridname":{"type":"string"},"context":{"type":"string"},"extension":{"type":"string"},"priority":{"type":"string"},"accountcode":{"type":"string"},"dnid":{"type":"string"},"projectName":{"type":"string"},"saveName":{"type":"string"},"filename":{"type":"string"},"savePath":{"type":"string"},"format":{"type":"string"}}}}}},"responses":{"201":{"description":"SquareRecording successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareRecording"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/recordings/{id}":{"get":{"summary":"Gets a single Recording","security":[{"BearerAuth":[]}],"operationId":"getSquareRecordingById","tags":["Square Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareRecording to get"}],"responses":{"200":{"description":"SquareRecording with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareRecording"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareRecording not found"}}},"put":{"summary":"Update an existing Recording","security":[{"BearerAuth":[]}],"operationId":"updateSquareRecordingById","tags":["Square Recordings"],"requestBody":{"required":true,"description":"data for updating a new Recording","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"callerid":{"type":"string"},"calleridname":{"type":"string"},"context":{"type":"string"},"extension":{"type":"string"},"priority":{"type":"string"},"accountcode":{"type":"string"},"dnid":{"type":"string"},"projectName":{"type":"string"},"saveName":{"type":"string"},"filename":{"type":"string"},"savePath":{"type":"string"},"format":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareRecording to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareRecording not found"}}}},"/square/recordings/{id}/download":{"get":{"summary":"Download Recording","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Square Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareRecording"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/recordings/{id}/delete":{"delete":{"summary":"Delete recording","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Square Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareRecording"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/reports":{"get":{"summary":"Gets a list of Square Reports","security":[{"BearerAuth":[]}],"operationId":"listAllSquareReport","tags":["Square Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SquareReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Square Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareReport"}}}}},"206":{"description":"Partial (paged) collection of Square Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Square Report","security":[{"BearerAuth":[]}],"operationId":"createSquareReport","tags":["Square Reports"],"requestBody":{"required":true,"description":"data for creating a new Square Report","content":{"application/json":{"schema":{"type":"object","properties":{"network":{"type":"string"},"network_script":{"type":"string"},"request":{"type":"string"},"channel":{"type":"string"},"language":{"type":"string"},"type":{"type":"string"},"uniqueid":{"type":"string"},"version":{"type":"string"},"callerid":{"type":"string"},"calleridname":{"type":"string"},"callingpres":{"type":"string"},"callingani2":{"type":"string"},"callington":{"type":"string"},"callingtns":{"type":"string"},"dnid":{"type":"string"},"rdnis":{"type":"string"},"context":{"type":"string"},"extension":{"type":"string"},"priority":{"type":"string"},"enhanced":{"type":"string"},"accountcode":{"type":"string"},"threadid":{"type":"string"},"project_name":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"bot":{"type":"boolean","default":false}}}}}},"responses":{"201":{"description":"SquareReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/reports/describe":{"get":{"summary":"Gets table info about Square Reports","security":[{"BearerAuth":[]}],"operationId":"describeSquareReport","tags":["Square Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/reports/{id}":{"get":{"summary":"Gets a single Square Report","security":[{"BearerAuth":[]}],"operationId":"getSquareReportById","tags":["Square Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareReport to get"}],"responses":{"200":{"description":"SquareReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareReport not found"}}},"put":{"summary":"Update an existing Square Report","security":[{"BearerAuth":[]}],"operationId":"updateSquareReportById","tags":["Square Reports"],"requestBody":{"required":true,"description":"data for updating a new Square Report","content":{"application/json":{"schema":{"type":"object","properties":{"network":{"type":"string"},"network_script":{"type":"string"},"request":{"type":"string"},"channel":{"type":"string"},"language":{"type":"string"},"type":{"type":"string"},"uniqueid":{"type":"string"},"version":{"type":"string"},"callerid":{"type":"string"},"calleridname":{"type":"string"},"callingpres":{"type":"string"},"callingani2":{"type":"string"},"callington":{"type":"string"},"callingtns":{"type":"string"},"dnid":{"type":"string"},"rdnis":{"type":"string"},"context":{"type":"string"},"extension":{"type":"string"},"priority":{"type":"string"},"enhanced":{"type":"string"},"accountcode":{"type":"string"},"threadid":{"type":"string"},"project_name":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"bot":{"type":"boolean","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareReport not found"}}}},"/square/reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Square Report","security":[{"BearerAuth":[]}],"operationId":"deleteSquareReportById","tags":["Square Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareReport not found"}}}},"/square/details/reports":{"get":{"summary":"Gets a list of Square Detail Reports","security":[{"BearerAuth":[]}],"operationId":"listAllSquareDetailsReport","tags":["Square Details Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each SquareDetailsReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Square Detail Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareDetailsReport"}}}}},"206":{"description":"Partial (paged) collection of Square Detail Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquareDetailsReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Square Detail Report","security":[{"BearerAuth":[]}],"operationId":"createSquareDetailsReport","tags":["Square Details Reports"],"requestBody":{"required":true,"description":"data for creating a new Square Detail Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"node":{"type":"string"},"application":{"type":"string"},"data":{"type":"string"},"project_name":{"type":"string"},"callerid":{"type":"string"}}}}}},"responses":{"201":{"description":"SquareDetailsReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareDetailsReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/details/reports/describe":{"get":{"summary":"Gets table info about Square Detail Reports","security":[{"BearerAuth":[]}],"operationId":"describeSquareDetailsReport","tags":["Square Details Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/square/details/reports/{id}":{"get":{"summary":"Gets a single Square Detail Report","security":[{"BearerAuth":[]}],"operationId":"getSquareDetailsReportById","tags":["Square Details Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareDetailsReport to get"}],"responses":{"200":{"description":"SquareDetailsReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquareDetailsReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareDetailsReport not found"}}},"put":{"summary":"Update an existing Square Detail Report","security":[{"BearerAuth":[]}],"operationId":"updateSquareDetailsReportById","tags":["Square Details Reports"],"requestBody":{"required":true,"description":"data for updating a new Square Detail Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"node":{"type":"string"},"application":{"type":"string"},"data":{"type":"string"},"project_name":{"type":"string"},"callerid":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareDetailsReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareDetailsReport not found"}}}},"/square/details/reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Square Detail Report","security":[{"BearerAuth":[]}],"operationId":"deleteSquareDetailsReportById","tags":["Square Details Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the SquareDetailsReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"SquareDetailsReport not found"}}}},"/system":{"get":{"summary":"Gets system information","security":[{"BearerAuth":[]}],"operationId":"getSystemInformation","tags":["System Information"],"responses":{"200":{"description":"system information","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/system/process":{"get":{"summary":"Gets process information","security":[{"BearerAuth":[]}],"operationId":"getSystemProcessInformation","tags":["System Information"],"responses":{"200":{"description":"process information","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/tags":{"get":{"summary":"Gets a list of Tags","security":[{"BearerAuth":[]}],"operationId":"listAllTag","tags":["Tags"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Tag"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Tags","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}}}}},"206":{"description":"Partial (paged) collection of Tags","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Tag","security":[{"BearerAuth":[]}],"operationId":"createTag","tags":["Tags"],"requestBody":{"required":true,"description":"data for creating a new Tag","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"color":{"type":"string","default":"#0091EA"},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"Tag successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/tags/{id}":{"get":{"summary":"Gets a single Tag","security":[{"BearerAuth":[]}],"operationId":"getTagById","tags":["Tags"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Tag to get"}],"responses":{"200":{"description":"Tag with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Tag not found"}}},"put":{"summary":"Update an existing Tag","security":[{"BearerAuth":[]}],"operationId":"updateTagById","tags":["Tags"],"requestBody":{"required":true,"description":"data for updating a new Tag","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"color":{"type":"string","default":"#0091EA"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Tag to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Tag not found"}}}},"/tags/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Tag","security":[{"BearerAuth":[]}],"operationId":"deleteTagById","tags":["Tags"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Tag to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Tag not found"}}}},"/teams":{"get":{"summary":"Gets a list of Teams","security":[{"BearerAuth":[]}],"operationId":"listAllTeam","tags":["Teams"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Team"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Teams","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Team"}}}}},"206":{"description":"Partial (paged) collection of Teams","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Team"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Team","security":[{"BearerAuth":[]}],"operationId":"createTeam","tags":["Teams"],"requestBody":{"required":true,"description":"data for creating a new Team","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"Team successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/teams/{id}":{"get":{"summary":"Gets a single Team","security":[{"BearerAuth":[]}],"operationId":"getTeamById","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team to get"}],"responses":{"200":{"description":"Team with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Team not found"}}},"put":{"summary":"Update an existing Team","security":[{"BearerAuth":[]}],"operationId":"updateTeamById","tags":["Teams"],"requestBody":{"required":true,"description":"data for updating a new Team","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Team not found"}}}},"/teams/{id}/queues":{"get":{"summary":"Gets Queues list","security":[{"BearerAuth":[]}],"operationId":"getQueues","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add queues to a team","security":[{"BearerAuth":[]}],"operationId":"addQueues","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove queues to a team","security":[{"BearerAuth":[]}],"operationId":"removeQueues","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/teams/{id}/users":{"get":{"summary":"Gets agents from team","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Adds agents to a team","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a team","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/teams/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Team","security":[{"BearerAuth":[]}],"operationId":"deleteTeamById","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Team to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Team not found"}}}},"/templates":{"get":{"summary":"Gets a list of Templates","security":[{"BearerAuth":[]}],"operationId":"listAllTemplate","tags":["Templates"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Template"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Templates","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Template"}}}}},"206":{"description":"Partial (paged) collection of Templates","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Template"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Template","security":[{"BearerAuth":[]}],"operationId":"createTemplate","tags":["Templates"],"requestBody":{"required":true,"description":"data for creating a new Template","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"html":{"type":"string"}}}}}},"responses":{"201":{"description":"Template successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/templates/{id}":{"get":{"summary":"Gets a single Template","security":[{"BearerAuth":[]}],"operationId":"getTemplateById","tags":["Templates"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Template to get"}],"responses":{"200":{"description":"Template with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Template not found"}}},"put":{"summary":"Update an existing Template","security":[{"BearerAuth":[]}],"operationId":"updateTemplateById","tags":["Templates"],"requestBody":{"required":true,"description":"data for updating a new Template","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"html":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Template to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Template not found"}}}},"/templates/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Template","security":[{"BearerAuth":[]}],"operationId":"deleteTemplateById","tags":["Templates"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Template to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Template not found"}}}},"/triggers":{"get":{"summary":"Gets a list of Triggers","security":[{"BearerAuth":[]}],"operationId":"listAllTrigger","tags":["Triggers"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Trigger"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Triggers","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Trigger"}}}}},"206":{"description":"Partial (paged) collection of Triggers","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Trigger"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Trigger","security":[{"BearerAuth":[]}],"operationId":"createTrigger","tags":["Triggers"],"requestBody":{"required":true,"description":"data for creating a new Trigger","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"channel":{"type":"string"},"description":{"type":"string"},"status":{"type":"boolean","default":false}}}}}},"responses":{"201":{"description":"Trigger successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Trigger"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/triggers/{id}":{"get":{"summary":"Gets a single Trigger","security":[{"BearerAuth":[]}],"operationId":"getTriggerById","tags":["Triggers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger to get"}],"responses":{"200":{"description":"Trigger with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Trigger"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Trigger not found"}}},"put":{"summary":"Update an existing Trigger","security":[{"BearerAuth":[]}],"operationId":"updateTriggerById","tags":["Triggers"],"requestBody":{"required":true,"description":"data for updating a new Trigger","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"channel":{"type":"string"},"description":{"type":"string"},"status":{"type":"boolean","default":false}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Trigger not found"}}}},"/triggers/{id}/all_conditions":{"get":{"summary":"Gets \"AND\" Trigger Conditions","security":[{"BearerAuth":[]}],"operationId":"getAllConditions","tags":["Triggers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new \"AND\"condition","security":[{"BearerAuth":[]}],"operationId":"addAllCondition","tags":["Triggers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/triggers/{id}/any_conditions":{"get":{"summary":"Gets \"OR\" Trigger Conditions","security":[{"BearerAuth":[]}],"operationId":"getAnyConditions","tags":["Triggers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new \"OR\"condition","security":[{"BearerAuth":[]}],"operationId":"addAnyCondition","tags":["Triggers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/triggers/{id}/actions":{"get":{"summary":"Gets Trigger Actions","security":[{"BearerAuth":[]}],"operationId":"getActions","tags":["Triggers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new actions","security":[{"BearerAuth":[]}],"operationId":"addAction","tags":["Triggers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/triggers/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Trigger","security":[{"BearerAuth":[]}],"operationId":"deleteTriggerById","tags":["Triggers"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trigger to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Trigger not found"}}}},"/trunks":{"get":{"summary":"Gets a list of Trunks","security":[{"BearerAuth":[]}],"operationId":"listAllTrunk","tags":["Trunks"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Trunk"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Trunks","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Trunk"}}}}},"206":{"description":"Partial (paged) collection of Trunks","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Trunk"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/trunks/{id}":{"get":{"summary":"Gets a single Trunk","security":[{"BearerAuth":[]}],"operationId":"getTrunkById","tags":["Trunks"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trunk to get"}],"responses":{"200":{"description":"Trunk with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Trunk"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Trunk not found"}}},"put":{"summary":"Update an existing trunk","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Trunks"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trunk"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Deletes a trunk","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Trunks"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Trunk"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/trunks/clone":{"post":{"summary":"Clone an existing Trunk","security":[{"BearerAuth":[]}],"operationId":"cloneTrunk","tags":["Trunks"],"requestBody":{"required":true,"description":"data for creating a new Trunk","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"id of the Trunk to clone"},"name":{"type":"string"},"type":{"type":"string","enum":["friend","user","peer"],"default":"friend"},"context":{"type":"string","default":"from-voip-provider"},"callingpres":{"type":"string","enum":["ALLOWED_NOT_SCREENED","ALLOWED_PASSED_SCREEN","ALLOWED_FAILED_SCREEN","ALLOWED","PROHIB_NOT_SCREENED","PROHIB_PASSED_SCREEN","PROHIB_FAILED_SCREEN","PROHIB"]},"deny":{"type":"string"},"permit":{"type":"string"},"secret":{"type":"string"},"md5secret":{"type":"string"},"remotesecret":{"type":"string"},"transport":{"type":"string","description":"String is deprecated. Please use an Array as [\"udp\", \"tcp\"]","default":"udp"},"dtmfmode":{"type":"string","enum":["rfc2833","info","shortinfo","inband","auto"],"default":"rfc2833"},"directmedia":{"type":"string","enum":["yes","no","nonat","update","outgoing"],"default":"no"},"directrtpsetup":{"type":"string","enum":["yes","no"],"default":"no"},"directmediapermit":{"type":"string"},"directmediadeny":{"type":"string"},"nat":{"type":"string","description":"String is deprecated. Please use an Array as [\"force_rport\", \"comedia\"]","default":"force_rport,comedia"},"callgroup":{"type":"string"},"namedcallgroup":{"type":"string"},"pickupgroup":{"type":"string"},"namedpickupgroup":{"type":"string"},"language":{"type":"string","default":"en"},"tonezone":{"type":"string"},"disallow":{"type":"string","default":"all"},"allow":{"type":"string","description":"String is deprecated. Please use an Array as [\"ulaw\", \"alaw\", \"alaw\"]","default":"ulaw;alaw;gsm"},"autoframing":{"type":"string","enum":["yes","no"]},"insecure":{"type":"string","description":"String is deprecated. Please use an Array as [\"port\", \"invite\"]","default":"port,invite"},"trustrpid":{"type":"string","enum":["yes","no"],"default":"no"},"trust_id_outbound":{"type":"string","enum":["yes","no"],"default":"no"},"progressinband":{"type":"string","enum":["yes","no","never"]},"promiscredir":{"type":"string","enum":["yes","no"]},"useclientcode":{"type":"string","enum":["yes","no"]},"accountcode":{"type":"integer"},"setvar":{"type":"string"},"callerid":{"type":"string","default":"\"\" <>"},"amaflags":{"type":"string"},"callcounter":{"type":"string","enum":["yes","no"],"default":"yes"},"busylevel":{"type":"integer"},"allowoverlap":{"type":"string","enum":["yes","no"]},"allowsubscribe":{"type":"string","enum":["yes","no"]},"allowtransfer":{"type":"string","enum":["yes","no"]},"ignoresdpversion":{"type":"string","enum":["yes","no"]},"subscribecontext":{"type":"string"},"template":{"type":"string"},"videosupport":{"type":"string","enum":["yes","no","always"],"default":"no"},"maxcallbitrate":{"type":"integer"},"rfc2833compensate":{"type":"string","enum":["yes","no"]},"mailbox":{"type":"string"},"session_timers":{"type":"string","enum":["accept","refuse","originate"]},"session_expires":{"type":"integer"},"session_minse":{"type":"integer"},"session_refresher":{"type":"string","enum":["uac","uas"],"default":"uas"},"t38pt_usertpsource":{"type":"string"},"regexten":{"type":"string"},"fromdomain":{"type":"string"},"fromuser":{"type":"string"},"port":{"type":"integer"},"qualify":{"type":"string","enum":["yes","no"],"default":"yes"},"keepalive":{"type":"integer"},"defaultip":{"type":"string"},"defaultuser":{"type":"string"},"rtptimeout":{"type":"integer"},"rtpholdtimeout":{"type":"integer"},"rtpkeepalive":{"type":"integer"},"sendrpid":{"type":"string","enum":["yes","no","pai"],"default":"no"},"outboundproxy":{"type":"string"},"callbackextension":{"type":"string"},"timert1":{"type":"integer"},"timerb":{"type":"integer"},"qualifyfreq":{"type":"integer"},"contactpermit":{"type":"string"},"contactdeny":{"type":"string"},"contactacl":{"type":"string"},"unsolicited_mailbox":{"type":"string"},"use_q850_reason":{"type":"string"},"maxforwards":{"type":"integer"},"encryption":{"type":"string","enum":["yes","no"],"default":"no"},"avpf":{"type":"string","enum":["yes","no"]},"force_avp":{"type":"string","enum":["yes","no"]},"icesupport":{"type":"string","enum":["yes","no"]},"dtlsenable":{"type":"string","enum":["yes","no"]},"dtlsverify":{"type":"string","enum":["yes","no","fingerprint","certificate"]},"dtlsrekey":{"type":"integer"},"dtlscertfile":{"type":"string"},"dtlsprivatekey":{"type":"string"},"dtlscipher":{"type":"string"},"dtlscafile":{"type":"string"},"dtlscapath":{"type":"string"},"dtlssetup":{"type":"string","enum":["active","passive","actpass"]},"dtlsfingerprint":{"type":"string"},"usereqphone":{"type":"string","enum":["yes","no"],"default":"no"},"recordonfeature":{"type":"string"},"recordofffeature":{"type":"string"},"call_limit":{"type":"integer","default":1000},"registertrying":{"type":"string","enum":["yes","no"]},"subscribemwi":{"type":"string","enum":["yes","no"]},"vmexten":{"type":"string"},"mohinterpret":{"type":"string"},"mohsuggest":{"type":"string"},"parkinglot":{"type":"string"},"description":{"type":"string"},"host":{"type":"string","default":"dynamic"},"canreinvite":{"type":"string","enum":["yes","no","nonat","update","update,nonat"],"default":"no"},"registry":{"type":"string"},"otherFields":{"type":"string"},"active":{"type":"boolean","default":true},"t38pt_udptl":{"type":"string","default":"no"}},"required":["id"]}}}},"responses":{"201":{"description":"Trunk successfully cloned. Returns the cloned object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Trunk"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/trunks/":{"post":{"summary":"Create a new trunk","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Trunks"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users":{"get":{"summary":"Gets a list of Users","security":[{"BearerAuth":[]}],"operationId":"listUsers","tags":["Users"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each User"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Users","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/User"}}}}},"206":{"description":"Partial (paged) collection of Users","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/User"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Create a new User","security":[{"BearerAuth":[]}],"operationId":"postCreateUser","tags":["Users"],"requestBody":{"required":true,"description":"user to be created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"responses":{"201":{"description":"user created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/describe":{"get":{"summary":"Gets table info about Users","security":[{"BearerAuth":[]}],"operationId":"describeUsers","tags":["Users"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/whoami":{"get":{"summary":"Gets current user","security":[{"BearerAuth":[]}],"operationId":"getWhoAmI","tags":["Users"],"responses":{"200":{"description":"current user information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}":{"get":{"summary":"Gets a user by id","security":[{"BearerAuth":[]}],"operationId":"getUserById","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user to get"}],"responses":{"200":{"description":"user information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"put":{"summary":"Update an existing User","security":[{"BearerAuth":[]}],"operationId":"putUpdateUser","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"user properties to be updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"responses":{"200":{"description":"user updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove a user","security":[{"BearerAuth":[]}],"operationId":"deleteUser","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"204":{"description":"user deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"user not found"}}}},"/users/{id}/avatar":{"get":{"summary":"Gets a user avatar by id","security":[{"BearerAuth":[]}],"operationId":"getUserAvatarById","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user avatar","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add avatar","security":[{"BearerAuth":[]}],"operationId":"postAddAvatar","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"Add avatar","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"avatar added"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/contacts":{"get":{"summary":"Gets a user contacts by id","security":[{"BearerAuth":[]}],"operationId":"getUserContactsById","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user contacts list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user contacts list","type":"array","items":{"$ref":"#/components/schemas/CmContact"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add contacts to a user","security":[{"BearerAuth":[]}],"operationId":"postAddUserContact","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"user contacts to be added","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"contacts added"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/queues":{"get":{"summary":"Gets a user queues list by user id","security":[{"BearerAuth":[]}],"operationId":"getUserQueues","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"channel","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string","enum":["voice","mail","chat","fax","sms","whatsapp","openchannel"]},"description":"channel to filter for (e.g. mail, voice...)","examples":{"fields":{"value":"mail","summary":"A call returning only queues for channel = mail"}}}],"responses":{"200":{"description":"user queues list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user queues list","type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/VoiceQueue"},{"$ref":"#/components/schemas/MailQueue"},{"$ref":"#/components/schemas/ChatQueue"},{"$ref":"#/components/schemas/FaxQueue"},{"$ref":"#/components/schemas/SmsQueue"},{"$ref":"#/components/schemas/OpenchannelQueue"},{"$ref":"#/components/schemas/WhatsappQueue"}]}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add queues to an agent","security":[{"BearerAuth":[]}],"operationId":"postAddQueuesToAgent","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"Add queues to an agent","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"queues added"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove one or more queues from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserQueues","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the voice queues to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove voice queues with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"queues deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/queues_rt":{"get":{"summary":"Gets a user UserVoiceQueuesRt list by user id","security":[{"BearerAuth":[]}],"operationId":"getUserVoiceQueuesRt","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user UserVoiceQueuesRt list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user UserVoiceQueueRt list","type":"array","items":{"$ref":"#/components/schemas/UserVoiceQueueRt"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/groups":{"get":{"summary":"Gets a user ChatGroups list by user id","security":[{"BearerAuth":[]}],"operationId":"getChatGroups","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user ChatGroups list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user ChatGroups list","type":"array","items":{"$ref":"#/components/schemas/ChatGroup"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/recordings":{"get":{"summary":"Gets a user VoiceRecording list by user id","security":[{"BearerAuth":[]}],"operationId":"getVoiceRecordings","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user VoiceRecording list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user VoiceRecording list","type":"array","items":{"$ref":"#/components/schemas/VoiceRecording"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/screen_recordings":{"get":{"summary":"Gets a user ScreenRecording list by user id","security":[{"BearerAuth":[]}],"operationId":"getScreenRecordings","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user ScreenRecording list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user ScreenRecording list","type":"array","items":{"$ref":"#/components/schemas/ScreenRecording"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/chat/interactions":{"get":{"summary":"Gets a user ChatInteraction list by user id","security":[{"BearerAuth":[]}],"operationId":"getChatInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user ChatInteraction list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user ChatInteraction list","type":"array","items":{"$ref":"#/components/schemas/ChatInteraction"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/openchannel/interactions":{"get":{"summary":"Gets a user OpenchannelInteraction list by user id","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user OpenchannelInteraction list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user OpenchannelInteraction list","type":"array","items":{"$ref":"#/components/schemas/OpenchannelInteraction"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/mail/interactions":{"get":{"summary":"Gets a user MailInteraction list by user id","security":[{"BearerAuth":[]}],"operationId":"getMailInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user MailInteraction list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user MailInteraction list","type":"array","items":{"$ref":"#/components/schemas/MailInteraction"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/sms/interactions":{"get":{"summary":"Gets a user SmsInteraction list by user id","security":[{"BearerAuth":[]}],"operationId":"getSmsInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user SmsInteraction list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user SmsInteraction list","type":"array","items":{"$ref":"#/components/schemas/SmsInteraction"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/fax/interactions":{"get":{"summary":"Gets a user FaxInteraction list by user id","security":[{"BearerAuth":[]}],"operationId":"getFaxInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user FaxInteraction list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user FaxInteraction list","type":"array","items":{"$ref":"#/components/schemas/FaxInteraction"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/whatsapp/interactions":{"get":{"summary":"Gets a user WhatsappInteraction list by user id","security":[{"BearerAuth":[]}],"operationId":"getWhatsappInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user WhatsappInteraction list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user WhatsappInteraction list","type":"array","items":{"$ref":"#/components/schemas/WhatsappInteraction"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/teams":{"get":{"summary":"Gets a user Teams list by user id","security":[{"BearerAuth":[]}],"operationId":"getTeamss","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user Teams list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user Teams list","type":"array","items":{"$ref":"#/components/schemas/Team"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add teams to an agent","security":[{"BearerAuth":[]}],"operationId":"postPause","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"teams to be added","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"responses":{"201":{"description":"teams added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove one or more teams from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserTeams","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the teams to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove teams with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"teams deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/lists":{"get":{"summary":"Gets a user CmList list by user id","security":[{"BearerAuth":[]}],"operationId":"getCmLists","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user CmList list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user CmList list","type":"array","items":{"$ref":"#/components/schemas/CmList"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/agents":{"get":{"summary":"Gets a user Agents list by user id","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user Agents list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user Agents list","type":"array","items":{"$ref":"#/components/schemas/User"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/prefixes":{"get":{"summary":"Gets a user VoicePrefix list by user id","security":[{"BearerAuth":[]}],"operationId":"getVoicePrefixes","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user VoicePrefix list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user VoicePrefix list","type":"array","items":{"$ref":"#/components/schemas/VoicePrefix"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/fax_accounts":{"get":{"summary":"Gets a user FaxAccount list by user id","security":[{"BearerAuth":[]}],"operationId":"getFaxAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user FaxAccount list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user FaxAccount list","type":"array","items":{"$ref":"#/components/schemas/FaxAccount"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add a Fax Account to a user","security":[{"BearerAuth":[]}],"operationId":"postUserFaxAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"fax accounts to be added","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"fax accounts identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"fax accounts added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove fax accounts from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserFaxAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the fax accounts to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove fax accounts with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"fax accounts deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/mail_accounts":{"get":{"summary":"Gets a user MailAccount list by user id","security":[{"BearerAuth":[]}],"operationId":"getMailAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user MailAccount list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user MailAccount list","type":"array","items":{"$ref":"#/components/schemas/MailAccount"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add a mail Account to a user","security":[{"BearerAuth":[]}],"operationId":"postUserMailAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"mail accounts to be added","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"mail accounts identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"mail accounts added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove mail accounts from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserMailAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the mail accounts to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove mail accounts with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"mail accounts deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/openchannel_accounts":{"get":{"summary":"Gets a user OpenchannelAccount list by user id","security":[{"BearerAuth":[]}],"operationId":"getOpenchannelAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user OpenchannelAccount list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user OpenchannelAccount list","type":"array","items":{"$ref":"#/components/schemas/OpenchannelAccount"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add a openchannel Account to a user","security":[{"BearerAuth":[]}],"operationId":"postUserOpenchannelAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"openchannel accounts to be added","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"openchannel accounts identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"openchannel accounts added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove openchannel accounts from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserOpenchannelAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the openchannel accounts to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove openchannel accounts with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"openchannel accounts deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/sms_accounts":{"get":{"summary":"Gets a user SmsAccount list by user id","security":[{"BearerAuth":[]}],"operationId":"getSmsAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user SmsAccount list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user SmsAccount list","type":"array","items":{"$ref":"#/components/schemas/SmsAccount"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add a sms Account to a user","security":[{"BearerAuth":[]}],"operationId":"postUserSmsAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"sms accounts to be added","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"sms accounts identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"sms accounts added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove sms accounts from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserSmsAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the sms accounts to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove sms accounts with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"sms accounts deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/chat_websites":{"get":{"summary":"Gets a user ChatWebsite list by user id","security":[{"BearerAuth":[]}],"operationId":"getChatWebsites","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user ChatWebsite list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user ChatWebsite list","type":"array","items":{"$ref":"#/components/schemas/ChatWebsite"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add a Chat Website to a user","security":[{"BearerAuth":[]}],"operationId":"postUserChatWebsites","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"chat websites to be added","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"chat websites identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"chat websites added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove chat websites from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserChatWebsites","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the chat websites to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove chat websites with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"chat websites deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/whatsapp_accounts":{"get":{"summary":"Gets a user WhatsappAccount list by user id","security":[{"BearerAuth":[]}],"operationId":"getWhatsappAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user WhatsappAccount list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user WhatsappAccount list","type":"array","items":{"$ref":"#/components/schemas/WhatsappAccount"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add a whatsapp Account to a user","security":[{"BearerAuth":[]}],"operationId":"postUserWhatsappAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"whatsapp accounts to be added","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"whatsapp accounts identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"whatsapp accounts added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove whatsapp accounts from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserWhatsappAccounts","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the whatsapp accounts to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove whatsapp accounts with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"whatsapp accounts deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/square_projects":{"get":{"summary":"Gets a user SquareProject list by user id","security":[{"BearerAuth":[]}],"operationId":"getSquareProjects","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user SquareProject list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user SquareProject list","type":"array","items":{"$ref":"#/components/schemas/SquareProject"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add a Square Project to a user","security":[{"BearerAuth":[]}],"operationId":"postUserSquareProject","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"square project to be added","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"square project identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"square project added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove one or more Square Project from a user","security":[{"BearerAuth":[]}],"operationId":"deleteSquareProjects","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the square project to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove square project with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"square project deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/scheduled_calls":{"get":{"summary":"Gets a user scheduled calls list by user id","security":[{"BearerAuth":[]}],"operationId":"getScheduledCalls","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user scheduled calls list result","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"results count","default":0},"rows":{"description":"user scheduled calls list","type":"array","items":{"type":"object"}}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/api_key":{"get":{"summary":"Gets a user api key by user id","security":[{"BearerAuth":[]}],"operationId":"getApiKey","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"200":{"description":"user api keys list result","content":{"application/json":{"schema":{"type":"object","properties":{"api_key":{"type":"string","description":"api key token"}}}}}},"204":{"description":"No API access key found!","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"error message","default":"No API access key found!"}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Create a new API access key for the user","security":[{"BearerAuth":[]}],"operationId":"postCreateApiKey","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"tags":["Users"],"responses":{"201":{"description":"the api key that has been created","content":{"application/json":{"schema":{"type":"object","properties":{"api_key":{"type":"string","description":"api key token"}}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove API access key for the user","security":[{"BearerAuth":[]}],"operationId":"deleteUserApiKey","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"204":{"description":"user apikey deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"user not found"}}}},"/users/create_many":{"post":{"summary":"Create several Users","security":[{"BearerAuth":[]}],"operationId":"postCreateUsers","tags":["Users"],"requestBody":{"required":true,"description":"users to be created","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/User"}}}}},"responses":{"201":{"description":"users created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/login":{"post":{"summary":"perform SIP Login","security":[{"BearerAuth":[]}],"operationId":"postSipLogin","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"Login","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"SIP Login success"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/logout":{"post":{"summary":"perform SIP logout","security":[{"BearerAuth":[]}],"operationId":"postSipLogout","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"responses":{"201":{"description":"SIP logout success"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/pause":{"post":{"summary":"set pause status","security":[{"BearerAuth":[]}],"operationId":"postPause","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"pause payload","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"status updated successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/unpause":{"post":{"summary":"unset pause status","security":[{"BearerAuth":[]}],"operationId":"postUnpause","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"unpause payload","content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"description":"status updated successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/users/{id}/chat_interactions":{"post":{"summary":"Add chat interaction tabs to an agent","security":[{"BearerAuth":[]}],"operationId":"postUserChatInteraction","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"chat interaction tabs","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"chat interactions identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"chat interaction tabs added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove chat interactions from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserChatInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the chat interactions to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove chat interactions with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"chat interactions deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/mail_interactions":{"post":{"summary":"Add mail interaction tabs to an agent","security":[{"BearerAuth":[]}],"operationId":"postUserMailInteraction","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"mail interaction tabs","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"mail interactions identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"mail interaction tabs added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove mail interactions from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserMailInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the mail interactions to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove mail interactions with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"mail interactions deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/fax_interactions":{"post":{"summary":"Add fax interaction tabs to an agent","security":[{"BearerAuth":[]}],"operationId":"postUserFaxInteraction","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"fax interaction tabs","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"fax interactions identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"fax interaction tabs added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove fax interactions from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserFaxInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the fax interactions to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove fax interactions with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"fax interactions deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/sms_interactions":{"post":{"summary":"Add sms interaction tabs to an agent","security":[{"BearerAuth":[]}],"operationId":"postUserSmsInteraction","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"sms interaction tabs","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"sms interactions identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"sms interaction tabs added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove sms_interactions from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserSmsInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the sms interactions to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove sms interactions with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"sms interactions deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/openchannel_interactions":{"post":{"summary":"Add openchannel interaction tabs to an agent","security":[{"BearerAuth":[]}],"operationId":"postUserOpenchannelInteraction","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"openchannel interaction tabs","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"openchannel interactions identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"openchannel interaction tabs added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove openchannel interactions from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserOpenchannelInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the openchannel interactions to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove openchannel interactions with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"openchannel interactions deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/whatsapp_interactions":{"post":{"summary":"Add whatsapp interaction tabs to an agent","security":[{"BearerAuth":[]}],"operationId":"postUserWhatsappInteraction","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"whatsapp interaction tabs","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"whatsapp interactions identifiers","type":"array","items":{"type":"integer"}}},"required":["ids"]}}}},"responses":{"201":{"description":"whatsapp interaction tabs added successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove whatsapp_interactions from an agent","security":[{"BearerAuth":[]}],"operationId":"deleteUserWhatsappInteractions","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"},{"in":"query","name":"ids","allowReserved":true,"style":"form","explode":true,"schema":{"type":"string"},"description":"ids of the whatsapp interactions to be removed","examples":{"fields":{"value":"1,2,3","summary":"remove whatsapp interactions with ids=1, ids=2 and ids=3"}}}],"responses":{"204":{"description":"whatsapp interactions deleted successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"one or more records not found"}}}},"/users/{id}/password":{"put":{"summary":"Update an existing User","security":[{"BearerAuth":[]}],"operationId":"putUpdateUser","tags":["Users"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the user"}],"requestBody":{"required":true,"description":"old password and new password","content":{"application/json":{"schema":{"type":"object","properties":{"oldPassword":{"type":"string","format":"password","description":"old password"},"newPassword":{"type":"string","format":"password","description":"new password"}},"required":["oldPassword","newPassword"]}}}},"responses":{"200":{"description":"user password updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfiles":{"get":{"summary":"Gets a list of User Profiles","security":[{"BearerAuth":[]}],"operationId":"listAllUserProfile","tags":["User Profiles"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each UserProfile"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of User Profiles","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserProfile"}}}}},"206":{"description":"Partial (paged) collection of User Profiles","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserProfile"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new User Profile","security":[{"BearerAuth":[]}],"operationId":"createUserProfile","tags":["User Profiles"],"requestBody":{"required":true,"description":"data for creating a new User Profile","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"crudPermissions":{"type":"string","default":"r"},"description":{"type":"string"}},"required":["name","crudPermissions"]}}}},"responses":{"201":{"description":"UserProfile successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfile"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfiles/describe":{"get":{"summary":"Gets table info about User Profiles","security":[{"BearerAuth":[]}],"operationId":"describeUserProfile","tags":["User Profiles"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfiles/{id}":{"get":{"summary":"Gets a single User Profile","security":[{"BearerAuth":[]}],"operationId":"getUserProfileById","tags":["User Profiles"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile to get"}],"responses":{"200":{"description":"UserProfile with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfile"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfile not found"}}},"put":{"summary":"Update an existing User Profile","security":[{"BearerAuth":[]}],"operationId":"updateUserProfileById","tags":["User Profiles"],"requestBody":{"required":true,"description":"data for updating a new User Profile","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"crudPermissions":{"type":"string","default":"r"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfile not found"}}}},"/userProfiles/{id}/sections":{"get":{"summary":"Get sections associated to a User Profile","security":[{"BearerAuth":[]}],"operationId":"getSections","tags":["User Profiles"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add sections' permissions to User Profile","security":[{"BearerAuth":[]}],"operationId":"addSections","tags":["User Profiles"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes sections' permissions from User Profile","security":[{"BearerAuth":[]}],"operationId":"removeSections","tags":["User Profiles"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfiles/{id}/resources":{"get":{"summary":"Get Resources assigned to a Section","security":[{"BearerAuth":[]}],"operationId":"getResources","tags":["User Profiles"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add resources' permissions to User Profile","security":[{"BearerAuth":[]}],"operationId":"addResources","tags":["User Profiles"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes resources' permissions from User Profile","security":[{"BearerAuth":[]}],"operationId":"removeResources","tags":["User Profiles"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfiles/clone":{"post":{"summary":"Clone an existing User Profile","security":[{"BearerAuth":[]}],"operationId":"cloneUserProfile","tags":["User Profiles"],"requestBody":{"required":true,"description":"data for creating a new User Profile","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"id of the User Profile to clone"},"name":{"type":"string"},"crudPermissions":{"type":"string","default":"r"},"description":{"type":"string"}},"required":["id"]}}}},"responses":{"201":{"description":"UserProfile successfully cloned. Returns the cloned object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfile"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfiles/{id}/destroy_many":{"delete":{"summary":"Destroy an existing User Profile","security":[{"BearerAuth":[]}],"operationId":"deleteUserProfileById","tags":["User Profiles"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfile to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfile not found"}}}},"/userProfile/resources":{"get":{"summary":"Gets a list of User Profile Resources","security":[{"BearerAuth":[]}],"operationId":"listAllUserProfileResource","tags":["User Profile Resources"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each UserProfileResource"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of User Profile Resources","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserProfileResource"}}}}},"206":{"description":"Partial (paged) collection of User Profile Resources","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserProfileResource"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new User Profile Resource","security":[{"BearerAuth":[]}],"operationId":"createUserProfileResource","tags":["User Profile Resources"],"requestBody":{"required":true,"description":"data for creating a new User Profile Resource","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"resourceId":{"type":"integer"},"type":{"type":"string"}},"required":["name","resourceId","type"]}}}},"responses":{"201":{"description":"UserProfileResource successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileResource"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfile/resources/describe":{"get":{"summary":"Gets table info about User Profile Resources","security":[{"BearerAuth":[]}],"operationId":"describeUserProfileResource","tags":["User Profile Resources"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfile/resources/{id}":{"get":{"summary":"Gets a single User Profile Resource","security":[{"BearerAuth":[]}],"operationId":"getUserProfileResourceById","tags":["User Profile Resources"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfileResource to get"}],"responses":{"200":{"description":"UserProfileResource with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileResource"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfileResource not found"}}},"put":{"summary":"Update an existing User Profile Resource","security":[{"BearerAuth":[]}],"operationId":"updateUserProfileResourceById","tags":["User Profile Resources"],"requestBody":{"required":true,"description":"data for updating a new User Profile Resource","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"resourceId":{"type":"integer"},"type":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfileResource to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfileResource not found"}}}},"/userProfile/resources/{id}/destroy_many":{"delete":{"summary":"Destroy an existing User Profile Resource","security":[{"BearerAuth":[]}],"operationId":"deleteUserProfileResourceById","tags":["User Profile Resources"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfileResource to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfileResource not found"}}}},"/userProfile/sections":{"get":{"summary":"Gets a list of User Profile Sections","security":[{"BearerAuth":[]}],"operationId":"listAllUserProfileSection","tags":["User Profile Sections"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each UserProfileSection"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of User Profile Sections","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserProfileSection"}}}}},"206":{"description":"Partial (paged) collection of User Profile Sections","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserProfileSection"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new User Profile Section","security":[{"BearerAuth":[]}],"operationId":"createUserProfileSection","tags":["User Profile Sections"],"requestBody":{"required":true,"description":"data for creating a new User Profile Section","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"category":{"type":"string"},"sectionId":{"type":"integer"},"enabled":{"type":"boolean","default":null},"autoAssociation":{"type":"boolean","default":null},"crudPermissions":{"type":"string"}},"required":["name","category","sectionId"]}}}},"responses":{"201":{"description":"UserProfileSection successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileSection"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfile/sections/describe":{"get":{"summary":"Gets table info about User Profile Sections","security":[{"BearerAuth":[]}],"operationId":"describeUserProfileSection","tags":["User Profile Sections"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/userProfile/sections/{id}":{"get":{"summary":"Gets a single User Profile Section","security":[{"BearerAuth":[]}],"operationId":"getUserProfileSectionById","tags":["User Profile Sections"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfileSection to get"}],"responses":{"200":{"description":"UserProfileSection with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileSection"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfileSection not found"}}},"put":{"summary":"Update an existing User Profile Section","security":[{"BearerAuth":[]}],"operationId":"updateUserProfileSectionById","tags":["User Profile Sections"],"requestBody":{"required":true,"description":"data for updating a new User Profile Section","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"category":{"type":"string"},"sectionId":{"type":"integer"},"enabled":{"type":"boolean","default":null},"autoAssociation":{"type":"boolean","default":null},"crudPermissions":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfileSection to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfileSection not found"}}}},"/userProfile/sections/{id}/destroy_many":{"delete":{"summary":"Destroy an existing User Profile Section","security":[{"BearerAuth":[]}],"operationId":"deleteUserProfileSectionById","tags":["User Profile Sections"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the UserProfileSection to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"UserProfileSection not found"}}}},"/variables":{"get":{"summary":"Gets a list of Variables","security":[{"BearerAuth":[]}],"operationId":"listAllVariable","tags":["Variables"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each Variable"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Variables","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Variable"}}}}},"206":{"description":"Partial (paged) collection of Variables","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Variable"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Variable","security":[{"BearerAuth":[]}],"operationId":"createVariable","tags":["Variables"],"requestBody":{"required":true,"description":"data for creating a new Variable","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"Variable successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Variable"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/variables/{id}":{"get":{"summary":"Gets a single Variable","security":[{"BearerAuth":[]}],"operationId":"getVariableById","tags":["Variables"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Variable to get"}],"responses":{"200":{"description":"Variable with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Variable"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Variable not found"}}},"put":{"summary":"Update an existing Variable","security":[{"BearerAuth":[]}],"operationId":"updateVariableById","tags":["Variables"],"requestBody":{"required":true,"description":"data for updating a new Variable","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Variable to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Variable not found"}}}},"/variables/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Variable","security":[{"BearerAuth":[]}],"operationId":"deleteVariableById","tags":["Variables"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the Variable to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"Variable not found"}}}},"/version":{"get":{"summary":"Gets version","operationId":"getVersion","tags":["Version"],"responses":{"200":{"description":"full server version infomation","content":{"application/json":{"schema":{"type":"object","properties":{"current":{"type":"string","description":"current product version (semver)"},"phonebar":{"type":"string","description":"current phonebar version (semver)"},"shortHash":{"type":"string","description":"latest server git sha hash"},"branch":{"type":"string","description":"server git branch"},"tag":{"type":"string","description":"server git tag (s)"},"committedOn":{"type":"string","format":"date","description":"last commit date"},"buildDate":{"type":"string","format":"date","description":"buildDate date"}},"required":["current","phonebar","shortHash","branch","tag","committedOn","buildDate"]}}}}}}},"/version/fetch":{"get":{"summary":"Fetch git version","security":[{"BearerAuth":[]}],"operationId":"fetchVersion","tags":["Version"],"responses":{"200":{"description":"operation successfull","content":{"application/json":{"schema":{"type":"object","properties":{"output":{"type":"string","default":"git fetch origin master","description":"current output"}},"required":["output"]}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/version/reset":{"get":{"summary":"Reset git version","security":[{"BearerAuth":[]}],"operationId":"resetVersion","tags":["Version"],"responses":{"200":{"description":"operation successfull","content":{"application/json":{"schema":{"type":"object","properties":{"output":{"type":"string","default":"git reset --hard","description":"current output"}},"required":["output"]}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/version/pull":{"get":{"summary":"Pull git version","security":[{"BearerAuth":[]}],"operationId":"pullVersion","tags":["Version"],"responses":{"200":{"description":"operation successfull","content":{"application/json":{"schema":{"type":"object","properties":{"output":{"type":"string","description":"current output"}},"required":["output"]}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/version/restart":{"get":{"summary":"Restart motion2 after update","security":[{"BearerAuth":[]}],"operationId":"restartVersion","tags":["Version"],"responses":{"200":{"description":"operation successfull","content":{"application/json":{"schema":{"type":"object","properties":{"output":{"type":"string","default":"Your system has been restarted successfully","description":"current output"}},"required":["output"]}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/version/migrations":{"get":{"summary":"Launch database migrations","security":[{"BearerAuth":[]}],"operationId":"migrateVersion","tags":["Version"],"responses":{"200":{"description":"operation successfull","content":{"application/json":{"schema":{"type":"object","properties":{"output":{"type":"string","default":"Database already up-to-date","description":"current output"},"migrations":{"type":"array","items":{"type":"string"},"description":"migrations that have been executed (version numbers)"}},"required":["output"]}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/agents/reports":{"get":{"summary":"Gets a list of Agent Reports","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceAgentReport","tags":["Voice Agent Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceAgentReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Agent Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceAgentReport"}}}}},"206":{"description":"Partial (paged) collection of Agent Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceAgentReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/agents/reports/describe":{"get":{"summary":"Gets table info about Agent Reports","security":[{"BearerAuth":[]}],"operationId":"describeVoiceAgentReport","tags":["Voice Agent Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/agents/reports/{id}":{"get":{"summary":"Gets a single Agent Report","security":[{"BearerAuth":[]}],"operationId":"getVoiceAgentReportById","tags":["Voice Agent Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceAgentReport to get"}],"responses":{"200":{"description":"VoiceAgentReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceAgentReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceAgentReport not found"}}}},"/voice/calls/reports":{"get":{"summary":"Gets a list of Call Reports","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceCallReport","tags":["Voice Call Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceCallReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Call Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceCallReport"}}}}},"206":{"description":"Partial (paged) collection of Call Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceCallReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/calls/reports/describe":{"get":{"summary":"Gets table info about Call Reports","security":[{"BearerAuth":[]}],"operationId":"describeVoiceCallReport","tags":["Voice Call Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/calls/reports/{id}":{"get":{"summary":"Gets a single Call Report","security":[{"BearerAuth":[]}],"operationId":"getVoiceCallReportById","tags":["Voice Call Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceCallReport to get"}],"responses":{"200":{"description":"VoiceCallReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCallReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceCallReport not found"}}},"put":{"summary":"Update a single cdr","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Voice Call Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceCallReport"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/chanspy":{"get":{"summary":"Gets a list of Voice ChanSpy","security":[{"BearerAuth":[]}],"operationId":"listVoiceChanSpy","tags":["Voice ChanSpy"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each voice chanspy"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Voice ChanSpy","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceChanSpy"}}}}},"206":{"description":"Partial (paged) collection of Voice ChanSpy","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceChanSpy"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/chanspy/{id}":{"get":{"summary":"Get a ChanSpy by Id","security":[{"BearerAuth":[]}],"operationId":"getChanSpyById","tags":["Voice ChanSpy"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChanSpy"}],"responses":{"200":{"description":"the desired chanspy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceChanSpy"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"chanspy not found"}}},"post":{"summary":"create a ChanSpy","security":[{"BearerAuth":[]}],"operationId":"createChanSpy","tags":["Voice ChanSpy"],"requestBody":{"required":true,"description":"chanspy data","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"chanspy name"},"prefix":{"type":"string","description":"chanspy prefix"},"options":{"type":"string","description":"chanspy preoptionsfix"},"auth":{"type":"boolean","description":"chanspy auth"},"password":{"type":"string","format":"password","description":"chanspy password"},"record":{"type":"boolean","description":"chanspy record"},"recordingFormat":{"type":"string","description":"chanspy recordingFormat"},"description":{"type":"string","description":"chanspy description"}},"required":["prefix"]}}}},"responses":{"201":{"description":"successfully created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceChanSpy"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"chanspy not found"}}},"put":{"summary":"Update a ChanSpy","security":[{"BearerAuth":[]}],"operationId":"updateChanSpyById","tags":["Voice ChanSpy"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChanSpy"}],"requestBody":{"required":true,"description":"chanspy data","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"chanspy name"},"prefix":{"type":"string","description":"chanspy prefix"},"options":{"type":"string","description":"chanspy preoptionsfix"},"auth":{"type":"boolean","description":"chanspy auth"},"password":{"type":"string","format":"password","description":"chanspy password"},"record":{"type":"boolean","description":"chanspy record"},"recordingFormat":{"type":"string","description":"chanspy recordingFormat"},"description":{"type":"string","description":"chanspy description"}},"required":["prefix"]}}}},"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"chanspy not found"}}},"delete":{"summary":"Delete a ChanSpy","security":[{"BearerAuth":[]}],"operationId":"deleteChanSpyById","tags":["Voice ChanSpy"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the ChanSpy"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"chanspy not found"}}}},"/voice/contexts":{"get":{"summary":"Gets a list of Contexts","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceContext","tags":["Voice Contexts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceContext"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Contexts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceContext"}}}}},"206":{"description":"Partial (paged) collection of Contexts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceContext"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/contexts/{id}":{"get":{"summary":"Gets a single Context","security":[{"BearerAuth":[]}],"operationId":"getVoiceContextById","tags":["Voice Contexts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceContext to get"}],"responses":{"200":{"description":"VoiceContext with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceContext"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceContext not found"}}},"put":{"summary":"Update an existing context","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Voice Contexts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceContext"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Deletes a context","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Voice Contexts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceContext"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/contexts/":{"post":{"summary":"Create a new context","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Voice Contexts"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/dials/reports":{"get":{"summary":"Gets a list of Dial Reports","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceDialReport","tags":["Voice Dial Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceDialReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Dial Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceDialReport"}}}}},"206":{"description":"Partial (paged) collection of Dial Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceDialReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/dials/reports/describe":{"get":{"summary":"Gets table info about Dial Reports","security":[{"BearerAuth":[]}],"operationId":"describeVoiceDialReport","tags":["Voice Dial Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/dials/reports/{id}":{"get":{"summary":"Gets a single Dial Report","security":[{"BearerAuth":[]}],"operationId":"getVoiceDialReportById","tags":["Voice Dial Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceDialReport to get"}],"responses":{"200":{"description":"VoiceDialReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceDialReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceDialReport not found"}}}},"/voice/extensions":{"get":{"summary":"Gets a list of Extensions","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceExtension","tags":["Voice Extensions"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceExtension"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Extensions","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceExtension"}}}}},"206":{"description":"Partial (paged) collection of Extensions","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceExtension"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/extensions/{id}":{"get":{"summary":"Gets a single Extension","security":[{"BearerAuth":[]}],"operationId":"getVoiceExtensionById","tags":["Voice Extensions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceExtension to get"}],"responses":{"200":{"description":"VoiceExtension with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceExtension"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceExtension not found"}}},"put":{"summary":"Update an extension","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Voice Extensions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceExtension"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/extensions/":{"post":{"summary":"Create an extension","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Voice Extensions"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/extensions/{id}/applications":{"post":{"summary":"Create new applications","security":[{"BearerAuth":[]}],"operationId":"addApplications","tags":["Voice Extensions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceExtension"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/extensions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Extension","security":[{"BearerAuth":[]}],"operationId":"deleteVoiceExtensionById","tags":["Voice Extensions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceExtension to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceExtension not found"}}}},"/voice/mails":{"get":{"summary":"Gets a list of Mails","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceMail","tags":["Voice Mails"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceMail"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Mails","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceMail"}}}}},"206":{"description":"Partial (paged) collection of Mails","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceMail"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Mail","security":[{"BearerAuth":[]}],"operationId":"createVoiceMail","tags":["Voice Mails"],"requestBody":{"required":true,"description":"data for creating a new Mail","content":{"application/json":{"schema":{"type":"object","properties":{"customer_id":{"type":"string"},"context":{"type":"string","default":"from-voicemail"},"mailbox":{"type":"string","default":""},"password":{"type":"string"},"fullname":{"type":"string"},"email":{"type":"string"},"pager":{"type":"string"},"tz":{"type":"string","default":"central"},"attach":{"type":"string","enum":["yes","no"],"default":"yes"},"saycid":{"type":"string","enum":["yes","no"],"default":"yes"},"dialout":{"type":"string"},"callback":{"type":"string"},"review":{"type":"string","enum":["yes","no"],"default":"no"},"operator":{"type":"string","enum":["yes","no"],"default":"no"},"envelope":{"type":"string","enum":["yes","no"],"default":"no"},"sayduration":{"type":"string","enum":["yes","no"],"default":"no"},"saydurationm":{"type":"string","default":1},"sendvoicemail":{"type":"string","enum":["yes","no"],"default":"no"},"delete":{"type":"string","enum":["yes","no"],"default":"no"},"nextaftercmd":{"type":"string","enum":["yes","no"],"default":"yes"},"forcename":{"type":"string","enum":["yes","no"],"default":"no"},"forcegreetings":{"type":"string","enum":["yes","no"],"default":"no"},"hidefromdir":{"type":"string","enum":["yes","no"],"default":"yes"},"stamp":{"type":"string"},"emailsubject":{"type":"string"},"emailbody":{"type":"string"},"maxsecs":{"type":"integer","default":180},"maxmsg":{"type":"integer","default":100},"name":{"type":"string"}},"required":["mailbox","attach","saycid","review","operator","envelope","sayduration","saydurationm","sendvoicemail","delete","nextaftercmd","forcename","forcegreetings","hidefromdir","maxsecs","maxmsg"]}}}},"responses":{"201":{"description":"VoiceMail successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceMail"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/mails/{id}":{"get":{"summary":"Gets a single Mail","security":[{"BearerAuth":[]}],"operationId":"getVoiceMailById","tags":["Voice Mails"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMail to get"}],"responses":{"200":{"description":"VoiceMail with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceMail"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceMail not found"}}},"put":{"summary":"Update an existing Mail","security":[{"BearerAuth":[]}],"operationId":"updateVoiceMailById","tags":["Voice Mails"],"requestBody":{"required":true,"description":"data for updating a new Mail","content":{"application/json":{"schema":{"type":"object","properties":{"customer_id":{"type":"string"},"context":{"type":"string","default":"from-voicemail"},"mailbox":{"type":"string","default":""},"password":{"type":"string"},"fullname":{"type":"string"},"email":{"type":"string"},"pager":{"type":"string"},"tz":{"type":"string","default":"central"},"attach":{"type":"string","enum":["yes","no"],"default":"yes"},"saycid":{"type":"string","enum":["yes","no"],"default":"yes"},"dialout":{"type":"string"},"callback":{"type":"string"},"review":{"type":"string","enum":["yes","no"],"default":"no"},"operator":{"type":"string","enum":["yes","no"],"default":"no"},"envelope":{"type":"string","enum":["yes","no"],"default":"no"},"sayduration":{"type":"string","enum":["yes","no"],"default":"no"},"saydurationm":{"type":"string","default":1},"sendvoicemail":{"type":"string","enum":["yes","no"],"default":"no"},"delete":{"type":"string","enum":["yes","no"],"default":"no"},"nextaftercmd":{"type":"string","enum":["yes","no"],"default":"yes"},"forcename":{"type":"string","enum":["yes","no"],"default":"no"},"forcegreetings":{"type":"string","enum":["yes","no"],"default":"no"},"hidefromdir":{"type":"string","enum":["yes","no"],"default":"yes"},"stamp":{"type":"string"},"emailsubject":{"type":"string"},"emailbody":{"type":"string"},"maxsecs":{"type":"integer","default":180},"maxmsg":{"type":"integer","default":100},"name":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMail to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceMail not found"}}}},"/voice/mails/{id}/messages":{"get":{"summary":"Gets voice mail messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Voice Mails"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMail"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/mails/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Mail","security":[{"BearerAuth":[]}],"operationId":"deleteVoiceMailById","tags":["Voice Mails"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMail to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceMail not found"}}}},"/voice/mails/messages":{"get":{"summary":"Gets a list of Messages","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceMailMessage","tags":["Voice Messages"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceMailMessage"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceMailMessage"}}}}},"206":{"description":"Partial (paged) collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceMailMessage"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Message","security":[{"BearerAuth":[]}],"operationId":"createVoiceMailMessage","tags":["Voice Messages"],"requestBody":{"required":true,"description":"data for creating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"msgnum":{"type":"integer","default":0},"dir":{"type":"string","default":""},"context":{"type":"string","default":""},"macrocontext":{"type":"string","default":""},"callerid":{"type":"string","default":""},"origtime":{"type":"string","default":""},"duration":{"type":"string","default":""},"mailboxuser":{"type":"string","default":""},"mailboxcontext":{"type":"string","default":""},"recording":{"type":"object","default":null},"flag":{"type":"string","default":""},"msg_id":{"type":"string","default":""},"stamp":{"type":"string"}},"required":["msgnum","stamp"]}}}},"responses":{"201":{"description":"VoiceMailMessage successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceMailMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/mails/messages/{id}":{"get":{"summary":"Gets a single Message","security":[{"BearerAuth":[]}],"operationId":"getVoiceMailMessageById","tags":["Voice Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMailMessage to get"}],"responses":{"200":{"description":"VoiceMailMessage with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceMailMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceMailMessage not found"}}},"put":{"summary":"Update an existing Message","security":[{"BearerAuth":[]}],"operationId":"updateVoiceMailMessageById","tags":["Voice Messages"],"requestBody":{"required":true,"description":"data for updating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"msgnum":{"type":"integer","default":0},"dir":{"type":"string","default":""},"context":{"type":"string","default":""},"macrocontext":{"type":"string","default":""},"callerid":{"type":"string","default":""},"origtime":{"type":"string","default":""},"duration":{"type":"string","default":""},"mailboxuser":{"type":"string","default":""},"mailboxcontext":{"type":"string","default":""},"recording":{"type":"object","default":null},"flag":{"type":"string","default":""},"msg_id":{"type":"string","default":""},"stamp":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMailMessage to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceMailMessage not found"}}}},"/voice/mails/messages/{id}/download":{"get":{"summary":"Download Voice Message","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Voice Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMailMessage"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/mails/messages/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Message","security":[{"BearerAuth":[]}],"operationId":"deleteVoiceMailMessageById","tags":["Voice Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMailMessage to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceMailMessage not found"}}}},"/voice/mohs":{"get":{"summary":"Gets a list of Music On Holds","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceMusicOnHold","tags":["Voice MOHs"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceMusicOnHold"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Music On Holds","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceMusicOnHold"}}}}},"206":{"description":"Partial (paged) collection of Music On Holds","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceMusicOnHold"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/mohs/{id}":{"get":{"summary":"Gets a single Music On Hold","security":[{"BearerAuth":[]}],"operationId":"getVoiceMusicOnHoldById","tags":["Voice MOHs"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMusicOnHold to get"}],"responses":{"200":{"description":"VoiceMusicOnHold with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceMusicOnHold"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceMusicOnHold not found"}}},"put":{"summary":"Update an existing Music On Hold","security":[{"BearerAuth":[]}],"operationId":"updateVoiceMusicOnHoldById","tags":["Voice MOHs"],"requestBody":{"required":true,"description":"data for updating a new Music On Hold","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"mode":{"type":"string","enum":["custom","files","mp3nb","quietmp3nb","quietmp3","mp3"],"default":"files"},"directory":{"type":"string"},"application":{"type":"string"},"digit":{"type":"string"},"sort":{"type":"string","default":"alpha"},"format":{"type":"string"},"stamp":{"type":"string"},"defaultEntry":{"type":"boolean","default":0}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMusicOnHold to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceMusicOnHold not found"}}},"delete":{"summary":"Deletes an MOH","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Voice MOHs"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMusicOnHold"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/mohs/{id}/sounds":{"get":{"summary":"Gets sounds from MOH","security":[{"BearerAuth":[]}],"operationId":"getSounds","tags":["Voice MOHs"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMusicOnHold"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add sound to MOH","security":[{"BearerAuth":[]}],"operationId":"addSound","tags":["Voice MOHs"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMusicOnHold"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/mohs/":{"post":{"summary":"Create a new a new MOH","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Voice MOHs"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/mohs/{id}/sounds/:id2":{"delete":{"summary":"Remove sound from MOH","security":[{"BearerAuth":[]}],"operationId":"removeSound","tags":["Voice MOHs"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceMusicOnHold"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/prefixes":{"get":{"summary":"Gets a list of Prefixes","security":[{"BearerAuth":[]}],"operationId":"listAllVoicePrefix","tags":["Voice Prefixes"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoicePrefix"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Prefixes","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoicePrefix"}}}}},"206":{"description":"Partial (paged) collection of Prefixes","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoicePrefix"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/prefixes/describe":{"get":{"summary":"Gets table info about Prefixes","security":[{"BearerAuth":[]}],"operationId":"describeVoicePrefix","tags":["Voice Prefixes"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/prefixes/{id}":{"get":{"summary":"Gets a single Prefix","security":[{"BearerAuth":[]}],"operationId":"getVoicePrefixById","tags":["Voice Prefixes"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoicePrefix to get"}],"responses":{"200":{"description":"VoicePrefix with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoicePrefix"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoicePrefix not found"}}},"put":{"summary":"Update an existing prefix","security":[{"BearerAuth":[]}],"operationId":"update","tags":["Voice Prefixes"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoicePrefix"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/prefixes/{id}/users":{"get":{"summary":"Gets agents from prefix","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Voice Prefixes"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoicePrefix"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a prefix","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Voice Prefixes"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoicePrefix"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a prefix","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Voice Prefixes"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoicePrefix"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/prefixes/":{"post":{"summary":"Create a prefix","security":[{"BearerAuth":[]}],"operationId":"create","tags":["Voice Prefixes"],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/prefixes/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Prefix","security":[{"BearerAuth":[]}],"operationId":"deleteVoicePrefixById","tags":["Voice Prefixes"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoicePrefix to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoicePrefix not found"}}}},"/voice/queues":{"get":{"summary":"Gets a list of Queues","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceQueue","tags":["Voice Queues"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceQueue"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceQueue"}}}}},"206":{"description":"Partial (paged) collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceQueue"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Queue","security":[{"BearerAuth":[]}],"operationId":"createVoiceQueue","tags":["Voice Queues"],"requestBody":{"required":true,"description":"data for creating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["inbound","outbound"],"default":"inbound"},"musiconhold":{"type":"string","default":"default"},"announce":{"type":"string","default":""},"strategy":{"type":"string","enum":["rr","ringall","leastrecent","fewestcalls","random","rrmemory","linear","wrandom","rrordered"],"default":"ringall"},"servicelevel":{"type":"integer","default":0},"context":{"type":"string","default":null},"penaltymemberslimit":{"type":"integer"},"timeout":{"type":"integer","default":15},"retry":{"type":"integer","default":2},"timeoutpriority":{"type":"string"},"weight":{"type":"integer","default":0},"wrapuptime":{"type":"integer","default":0},"autofill":{"type":"string","enum":["yes","no"],"default":"yes"},"autopause":{"type":"string","enum":["yes","no","all"],"default":"no"},"autopausedelay":{"type":"integer"},"autopausebusy":{"type":"string","enum":["yes","no"],"default":"no"},"autopauseunavail":{"type":"string","enum":["yes","no"],"default":"no"},"maxlen":{"type":"integer","default":0},"setinterfacevar":{"type":"string","enum":["yes","no"],"default":"no"},"setqueueentryvar":{"type":"string","enum":["yes","no"]},"setqueuevar":{"type":"string","enum":["yes","no"],"default":"no"},"eventmemberstatus":{"type":"string","enum":["yes","no"],"default":"no"},"membermacro":{"type":"string"},"membergosub":{"type":"string"},"announce_frequency":{"type":"integer","default":0},"min_announce_frequency":{"type":"integer","default":0},"periodic_announce_frequency":{"type":"integer","default":0},"random_periodic_announce":{"type":"string","enum":["yes","no"],"default":"no"},"relative_periodic_announce":{"type":"string","enum":["yes","no"],"default":"yes"},"announce_holdtime":{"type":"string","enum":["yes","no","once"],"default":"no"},"announce_position":{"type":"string","default":"no"},"announce_to_first_user":{"type":"string","enum":["yes","no"]},"announce_position_limit":{"type":"integer"},"announce_round_seconds":{"type":"string","enum":["0","5","10","15","20","30"],"default":"0"},"monitor_format":{"type":"string","default":""},"monitor_type":{"type":"string"},"queue_youarenext":{"type":"string","default":null},"queue_thereare":{"type":"string","default":null},"queue_callswaiting":{"type":"string","default":null},"queue_holdtime":{"type":"string","default":null},"queue_minute":{"type":"string","default":null},"queue_minutes":{"type":"string","default":null},"queue_seconds":{"type":"string","default":null},"queue_thankyou":{"type":"string","default":null},"queue_reporthold":{"type":"string"},"queue_quantity1":{"type":"string"},"queue_quantity2":{"type":"string"},"queue_periodic_announce":{"type":"string"},"queue_less_than":{"type":"string"},"periodic_announce":{"type":"string"},"joinempty":{"type":"string","default":"yes"},"leavewhenempty":{"type":"string","default":"no"},"reportholdtime":{"type":"string","enum":["yes","no"],"default":"no"},"ringinuse":{"type":"string","enum":["yes","no"],"default":"no"},"memberdelay":{"type":"integer","default":0},"timeoutrestart":{"type":"string","enum":["yes","no"],"default":"no"},"defaultrule":{"type":"string"},"description":{"type":"string"},"acw":{"type":"boolean","default":0},"acwTimeout":{"type":"integer","default":10},"dialActive":{"type":"boolean","description":"Active/Disactive Campaign","default":0},"dialMethod":{"type":"string","enum":["preview","progressive","power","predictive","booked"],"description":"Dial Method.","default":"progressive"},"dialLimitChannel":{"type":"integer","description":"Max 9999 channels, 0 means unlimited.","default":0},"dialLimitQueue":{"type":"integer","description":"Max 9999 member in queue(min:1, max:9999), 0 means unlimited.","default":0},"dialPowerLevel":{"type":"number","description":"Power Level: Calls for agents (min:1, max:10).","default":1},"dialPredictiveOptimization":{"type":"string","enum":["agentBusyFactor","dropRate"],"description":"Only for predictive method.","default":"dropRate"},"dialPredictiveOptimizationPercentage":{"type":"number","description":"Predictive Optimization Percentage (min: 1, max: 95)","default":3},"dialPredictiveInterval":{"type":"integer","description":"Interval Predictive Minutes (min:5 max:30)","default":10},"dialOriginateCallerIdName":{"type":"string"},"dialOriginateCallerIdNumber":{"type":"string"},"dialOriginateTimeout":{"type":"integer","description":"Originate Timeout Seconds (min:1, max:999)","default":30},"dialQueueOptions":{"type":"string","description":"https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue","default":"tTxX"},"dialQueueTimeout":{"type":"integer","description":"Queue Timeout Seconds (min:1, max:999)","default":3},"dialQueueProject":{"type":"string","description":"AGI queue option (use: agi://127.0.0.1/square,)"},"dialCongestionMaxRetry":{"type":"integer","description":"#Congestion Retry (min:1, max:999)","default":3},"dialCongestionRetryFrequency":{"type":"integer","description":"Congestion Retry Frequency Minutes (min:1, max:99999)","default":150},"dialBusyMaxRetry":{"type":"integer","description":"#Busy Retry (min:1, max:999)","default":3},"dialBusyRetryFrequency":{"type":"integer","description":"Busy Retry Frequency Minutes (min:1, max:99999)","default":150},"dialNoAnswerMaxRetry":{"type":"integer","description":"#NoAnswer Retry (min:1, max:999)","default":3},"dialNoAnswerRetryFrequency":{"type":"integer","description":"NoAnswer Retry Frequency Minutes (min:1, max:99999)","default":150},"dialGlobalMaxRetry":{"type":"integer","description":"#Global Max Retry (min:1, max:999)","default":4},"dialTimezone":{"type":"string","default":null},"dialGlobalInterval":{"type":"string","default":"07:00-22:00,*,*,*"},"dialPrefix":{"type":"string","default":null},"dialCheckDuplicateType":{"type":"string","enum":["always","never","onlyIfOpen"],"default":"always"},"dialAMDActive":{"type":"boolean","description":"Active/Disactive AMD","default":0},"dialAMDInitialSilence":{"type":"integer","description":"#AMD Initial Silence","default":2500},"dialAMDGreeting":{"type":"integer","description":"#AMD Greeting","default":1500},"dialAMDAfterGreetingSilence":{"type":"integer","description":"#AMD After Greeting Silence","default":800},"dialAMDTotalAnalysisTime":{"type":"integer","description":"#AMD Total Analysis Time","default":5000},"dialAMDMinWordLength":{"type":"integer","description":"#AMD Min Word Length","default":100},"dialAMDBetweenWordsSilence":{"type":"integer","description":"#AMD Between Words Silence","default":50},"dialAMDMaximumNumberOfWords":{"type":"integer","description":"#AMD Maximum Number Of Words","default":3},"dialAMDSilenceThreshold":{"type":"integer","description":"#AMD Silence Threshold (min:0, max:32767)","default":256},"dialAMDMaximumWordLength":{"type":"integer","description":"#AMD Maximum Word Length","default":5000},"dialRecallMeTimeout":{"type":"integer","description":"#RecallMe Timeout (min:1)","default":30},"dialRecallInQueue":{"type":"boolean","description":"Active/Disactive Recall In Queue","default":0},"dialOrderByScheduledAt":{"type":"string","enum":["DESC","ASC"],"default":"DESC"},"dialQueueProject2":{"type":"string","description":"AGI queue option (use: agi://127.0.0.1/square,)"},"dialAgiAfterHangupClient":{"type":"boolean","default":false},"dialAgiAfterHangupAgent":{"type":"boolean","default":false},"dialRandomLastDigitCallerIdNumber":{"type":"integer","description":"Random Last Digit (min:1, max:15)","default":0},"dialCutDigit":{"type":"integer","description":"Cut Digit (min:1, max:15)","default":0},"dialNoSuchNumberMaxRetry":{"type":"integer","description":"#NoSuchNumber Retry (min:1, max:999)","default":3},"dialNoSuchNumberRetryFrequency":{"type":"integer","description":"NoSuchNumber Retry Frequency Minutes (min:1, max:99999)","default":150},"dialDropMaxRetry":{"type":"integer","description":"#Drop Retry (min:1, max:999)","default":3},"dialDropRetryFrequency":{"type":"integer","description":"Drop Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAbandonedMaxRetry":{"type":"integer","description":"#Abandoned Retry (min:1, max:999)","default":3},"dialAbandonedRetryFrequency":{"type":"integer","description":"Abandoned Retry Frequency Minutes (min:1, max:99999)","default":150},"dialMachineMaxRetry":{"type":"integer","description":"#Machine Retry (min:1, max:999)","default":3},"dialMachineRetryFrequency":{"type":"integer","description":"Machine Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAgentRejectMaxRetry":{"type":"integer","description":"#AgentReject Retry (min:1, max:999)","default":3},"dialAgentRejectRetryFrequency":{"type":"integer","description":"AgentReject Retry Frequency Minutes (min:1, max:99999)","default":150},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false},"dialPredictiveIntervalMaxThreshold":{"type":"integer","default":20},"dialPredictiveIntervalMinThreshold":{"type":"integer","default":10}},"required":["name","type","strategy"]}}}},"responses":{"201":{"description":"VoiceQueue successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}":{"get":{"summary":"Gets a single Queue","security":[{"BearerAuth":[]}],"operationId":"getVoiceQueueById","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue to get"}],"responses":{"200":{"description":"VoiceQueue with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceQueue not found"}}},"put":{"summary":"Update an existing Queue","security":[{"BearerAuth":[]}],"operationId":"updateVoiceQueueById","tags":["Voice Queues"],"requestBody":{"required":true,"description":"data for updating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["inbound","outbound"],"default":"inbound"},"musiconhold":{"type":"string","default":"default"},"announce":{"type":"string","default":""},"strategy":{"type":"string","enum":["rr","ringall","leastrecent","fewestcalls","random","rrmemory","linear","wrandom","rrordered"],"default":"ringall"},"servicelevel":{"type":"integer","default":0},"context":{"type":"string","default":null},"penaltymemberslimit":{"type":"integer"},"timeout":{"type":"integer","default":15},"retry":{"type":"integer","default":2},"timeoutpriority":{"type":"string"},"weight":{"type":"integer","default":0},"wrapuptime":{"type":"integer","default":0},"autofill":{"type":"string","enum":["yes","no"],"default":"yes"},"autopause":{"type":"string","enum":["yes","no","all"],"default":"no"},"autopausedelay":{"type":"integer"},"autopausebusy":{"type":"string","enum":["yes","no"],"default":"no"},"autopauseunavail":{"type":"string","enum":["yes","no"],"default":"no"},"maxlen":{"type":"integer","default":0},"setinterfacevar":{"type":"string","enum":["yes","no"],"default":"no"},"setqueueentryvar":{"type":"string","enum":["yes","no"]},"setqueuevar":{"type":"string","enum":["yes","no"],"default":"no"},"eventmemberstatus":{"type":"string","enum":["yes","no"],"default":"no"},"membermacro":{"type":"string"},"membergosub":{"type":"string"},"announce_frequency":{"type":"integer","default":0},"min_announce_frequency":{"type":"integer","default":0},"periodic_announce_frequency":{"type":"integer","default":0},"random_periodic_announce":{"type":"string","enum":["yes","no"],"default":"no"},"relative_periodic_announce":{"type":"string","enum":["yes","no"],"default":"yes"},"announce_holdtime":{"type":"string","enum":["yes","no","once"],"default":"no"},"announce_position":{"type":"string","default":"no"},"announce_to_first_user":{"type":"string","enum":["yes","no"]},"announce_position_limit":{"type":"integer"},"announce_round_seconds":{"type":"string","enum":["0","5","10","15","20","30"],"default":"0"},"monitor_format":{"type":"string","default":""},"monitor_type":{"type":"string"},"queue_youarenext":{"type":"string","default":null},"queue_thereare":{"type":"string","default":null},"queue_callswaiting":{"type":"string","default":null},"queue_holdtime":{"type":"string","default":null},"queue_minute":{"type":"string","default":null},"queue_minutes":{"type":"string","default":null},"queue_seconds":{"type":"string","default":null},"queue_thankyou":{"type":"string","default":null},"queue_reporthold":{"type":"string"},"queue_quantity1":{"type":"string"},"queue_quantity2":{"type":"string"},"queue_periodic_announce":{"type":"string"},"queue_less_than":{"type":"string"},"periodic_announce":{"type":"string"},"joinempty":{"type":"string","default":"yes"},"leavewhenempty":{"type":"string","default":"no"},"reportholdtime":{"type":"string","enum":["yes","no"],"default":"no"},"ringinuse":{"type":"string","enum":["yes","no"],"default":"no"},"memberdelay":{"type":"integer","default":0},"timeoutrestart":{"type":"string","enum":["yes","no"],"default":"no"},"defaultrule":{"type":"string"},"description":{"type":"string"},"acw":{"type":"boolean","default":0},"acwTimeout":{"type":"integer","default":10},"dialActive":{"type":"boolean","description":"Active/Disactive Campaign","default":0},"dialMethod":{"type":"string","enum":["preview","progressive","power","predictive","booked"],"description":"Dial Method.","default":"progressive"},"dialLimitChannel":{"type":"integer","description":"Max 9999 channels, 0 means unlimited.","default":0},"dialLimitQueue":{"type":"integer","description":"Max 9999 member in queue(min:1, max:9999), 0 means unlimited.","default":0},"dialPowerLevel":{"type":"number","description":"Power Level: Calls for agents (min:1, max:10).","default":1},"dialPredictiveOptimization":{"type":"string","enum":["agentBusyFactor","dropRate"],"description":"Only for predictive method.","default":"dropRate"},"dialPredictiveOptimizationPercentage":{"type":"number","description":"Predictive Optimization Percentage (min: 1, max: 95)","default":3},"dialPredictiveInterval":{"type":"integer","description":"Interval Predictive Minutes (min:5 max:30)","default":10},"dialOriginateCallerIdName":{"type":"string"},"dialOriginateCallerIdNumber":{"type":"string"},"dialOriginateTimeout":{"type":"integer","description":"Originate Timeout Seconds (min:1, max:999)","default":30},"dialQueueOptions":{"type":"string","description":"https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue","default":"tTxX"},"dialQueueTimeout":{"type":"integer","description":"Queue Timeout Seconds (min:1, max:999)","default":3},"dialQueueProject":{"type":"string","description":"AGI queue option (use: agi://127.0.0.1/square,)"},"dialCongestionMaxRetry":{"type":"integer","description":"#Congestion Retry (min:1, max:999)","default":3},"dialCongestionRetryFrequency":{"type":"integer","description":"Congestion Retry Frequency Minutes (min:1, max:99999)","default":150},"dialBusyMaxRetry":{"type":"integer","description":"#Busy Retry (min:1, max:999)","default":3},"dialBusyRetryFrequency":{"type":"integer","description":"Busy Retry Frequency Minutes (min:1, max:99999)","default":150},"dialNoAnswerMaxRetry":{"type":"integer","description":"#NoAnswer Retry (min:1, max:999)","default":3},"dialNoAnswerRetryFrequency":{"type":"integer","description":"NoAnswer Retry Frequency Minutes (min:1, max:99999)","default":150},"dialGlobalMaxRetry":{"type":"integer","description":"#Global Max Retry (min:1, max:999)","default":4},"dialTimezone":{"type":"string","default":null},"dialGlobalInterval":{"type":"string","default":"07:00-22:00,*,*,*"},"dialPrefix":{"type":"string","default":null},"dialCheckDuplicateType":{"type":"string","enum":["always","never","onlyIfOpen"],"default":"always"},"dialAMDActive":{"type":"boolean","description":"Active/Disactive AMD","default":0},"dialAMDInitialSilence":{"type":"integer","description":"#AMD Initial Silence","default":2500},"dialAMDGreeting":{"type":"integer","description":"#AMD Greeting","default":1500},"dialAMDAfterGreetingSilence":{"type":"integer","description":"#AMD After Greeting Silence","default":800},"dialAMDTotalAnalysisTime":{"type":"integer","description":"#AMD Total Analysis Time","default":5000},"dialAMDMinWordLength":{"type":"integer","description":"#AMD Min Word Length","default":100},"dialAMDBetweenWordsSilence":{"type":"integer","description":"#AMD Between Words Silence","default":50},"dialAMDMaximumNumberOfWords":{"type":"integer","description":"#AMD Maximum Number Of Words","default":3},"dialAMDSilenceThreshold":{"type":"integer","description":"#AMD Silence Threshold (min:0, max:32767)","default":256},"dialAMDMaximumWordLength":{"type":"integer","description":"#AMD Maximum Word Length","default":5000},"dialRecallMeTimeout":{"type":"integer","description":"#RecallMe Timeout (min:1)","default":30},"dialRecallInQueue":{"type":"boolean","description":"Active/Disactive Recall In Queue","default":0},"dialOrderByScheduledAt":{"type":"string","enum":["DESC","ASC"],"default":"DESC"},"dialQueueProject2":{"type":"string","description":"AGI queue option (use: agi://127.0.0.1/square,)"},"dialAgiAfterHangupClient":{"type":"boolean","default":false},"dialAgiAfterHangupAgent":{"type":"boolean","default":false},"dialRandomLastDigitCallerIdNumber":{"type":"integer","description":"Random Last Digit (min:1, max:15)","default":0},"dialCutDigit":{"type":"integer","description":"Cut Digit (min:1, max:15)","default":0},"dialNoSuchNumberMaxRetry":{"type":"integer","description":"#NoSuchNumber Retry (min:1, max:999)","default":3},"dialNoSuchNumberRetryFrequency":{"type":"integer","description":"NoSuchNumber Retry Frequency Minutes (min:1, max:99999)","default":150},"dialDropMaxRetry":{"type":"integer","description":"#Drop Retry (min:1, max:999)","default":3},"dialDropRetryFrequency":{"type":"integer","description":"Drop Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAbandonedMaxRetry":{"type":"integer","description":"#Abandoned Retry (min:1, max:999)","default":3},"dialAbandonedRetryFrequency":{"type":"integer","description":"Abandoned Retry Frequency Minutes (min:1, max:99999)","default":150},"dialMachineMaxRetry":{"type":"integer","description":"#Machine Retry (min:1, max:999)","default":3},"dialMachineRetryFrequency":{"type":"integer","description":"Machine Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAgentRejectMaxRetry":{"type":"integer","description":"#AgentReject Retry (min:1, max:999)","default":3},"dialAgentRejectRetryFrequency":{"type":"integer","description":"AgentReject Retry Frequency Minutes (min:1, max:99999)","default":150},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false},"dialPredictiveIntervalMaxThreshold":{"type":"integer","default":20},"dialPredictiveIntervalMinThreshold":{"type":"integer","default":10}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceQueue not found"}}}},"/voice/queues/{id}/hoppers":{"get":{"summary":"Gets queue hoppers","security":[{"BearerAuth":[]}],"operationId":"getHoppers","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/hopper_histories":{"get":{"summary":"Gets queue hopper histories","security":[{"BearerAuth":[]}],"operationId":"getHopperHistories","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/hopper_finals":{"get":{"summary":"Gets queue hopper finals","security":[{"BearerAuth":[]}],"operationId":"getHopperFinals","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/hopper_black":{"get":{"summary":"Gets queue hopper blacks","security":[{"BearerAuth":[]}],"operationId":"getHopperBlacks","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/teams":{"get":{"summary":"Gets queue team","security":[{"BearerAuth":[]}],"operationId":"getTeams","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add teams to queue","security":[{"BearerAuth":[]}],"operationId":"addTeams","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove teams from a queue","security":[{"BearerAuth":[]}],"operationId":"removeTeams","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/users":{"get":{"summary":"Gets queue agents","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to queue","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a queue","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/members":{"get":{"summary":"Gets queue members","security":[{"BearerAuth":[]}],"operationId":"getMembers","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/lists":{"get":{"summary":"Get queue lists","security":[{"BearerAuth":[]}],"operationId":"getLists","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add lists to a queue","security":[{"BearerAuth":[]}],"operationId":"addLists","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove lists from a queue","security":[{"BearerAuth":[]}],"operationId":"removeLists","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/blacklists":{"get":{"summary":"Get queue blacklists","security":[{"BearerAuth":[]}],"operationId":"getBlackLists","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add blacklists to a queue","security":[{"BearerAuth":[]}],"operationId":"addBlackLists","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove blacklists from a queue","security":[{"BearerAuth":[]}],"operationId":"removeBlackLists","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/clone":{"post":{"summary":"Clone an existing Queue","security":[{"BearerAuth":[]}],"operationId":"cloneVoiceQueue","tags":["Voice Queues"],"requestBody":{"required":true,"description":"data for creating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"id of the Queue to clone"},"name":{"type":"string"},"type":{"type":"string","enum":["inbound","outbound"],"default":"inbound"},"musiconhold":{"type":"string","default":"default"},"announce":{"type":"string","default":""},"strategy":{"type":"string","enum":["rr","ringall","leastrecent","fewestcalls","random","rrmemory","linear","wrandom","rrordered"],"default":"ringall"},"servicelevel":{"type":"integer","default":0},"context":{"type":"string","default":null},"penaltymemberslimit":{"type":"integer"},"timeout":{"type":"integer","default":15},"retry":{"type":"integer","default":2},"timeoutpriority":{"type":"string"},"weight":{"type":"integer","default":0},"wrapuptime":{"type":"integer","default":0},"autofill":{"type":"string","enum":["yes","no"],"default":"yes"},"autopause":{"type":"string","enum":["yes","no","all"],"default":"no"},"autopausedelay":{"type":"integer"},"autopausebusy":{"type":"string","enum":["yes","no"],"default":"no"},"autopauseunavail":{"type":"string","enum":["yes","no"],"default":"no"},"maxlen":{"type":"integer","default":0},"setinterfacevar":{"type":"string","enum":["yes","no"],"default":"no"},"setqueueentryvar":{"type":"string","enum":["yes","no"]},"setqueuevar":{"type":"string","enum":["yes","no"],"default":"no"},"eventmemberstatus":{"type":"string","enum":["yes","no"],"default":"no"},"membermacro":{"type":"string"},"membergosub":{"type":"string"},"announce_frequency":{"type":"integer","default":0},"min_announce_frequency":{"type":"integer","default":0},"periodic_announce_frequency":{"type":"integer","default":0},"random_periodic_announce":{"type":"string","enum":["yes","no"],"default":"no"},"relative_periodic_announce":{"type":"string","enum":["yes","no"],"default":"yes"},"announce_holdtime":{"type":"string","enum":["yes","no","once"],"default":"no"},"announce_position":{"type":"string","default":"no"},"announce_to_first_user":{"type":"string","enum":["yes","no"]},"announce_position_limit":{"type":"integer"},"announce_round_seconds":{"type":"string","enum":["0","5","10","15","20","30"],"default":"0"},"monitor_format":{"type":"string","default":""},"monitor_type":{"type":"string"},"queue_youarenext":{"type":"string","default":null},"queue_thereare":{"type":"string","default":null},"queue_callswaiting":{"type":"string","default":null},"queue_holdtime":{"type":"string","default":null},"queue_minute":{"type":"string","default":null},"queue_minutes":{"type":"string","default":null},"queue_seconds":{"type":"string","default":null},"queue_thankyou":{"type":"string","default":null},"queue_reporthold":{"type":"string"},"queue_quantity1":{"type":"string"},"queue_quantity2":{"type":"string"},"queue_periodic_announce":{"type":"string"},"queue_less_than":{"type":"string"},"periodic_announce":{"type":"string"},"joinempty":{"type":"string","default":"yes"},"leavewhenempty":{"type":"string","default":"no"},"reportholdtime":{"type":"string","enum":["yes","no"],"default":"no"},"ringinuse":{"type":"string","enum":["yes","no"],"default":"no"},"memberdelay":{"type":"integer","default":0},"timeoutrestart":{"type":"string","enum":["yes","no"],"default":"no"},"defaultrule":{"type":"string"},"description":{"type":"string"},"acw":{"type":"boolean","default":0},"acwTimeout":{"type":"integer","default":10},"dialActive":{"type":"boolean","description":"Active/Disactive Campaign","default":0},"dialMethod":{"type":"string","enum":["preview","progressive","power","predictive","booked"],"description":"Dial Method.","default":"progressive"},"dialLimitChannel":{"type":"integer","description":"Max 9999 channels, 0 means unlimited.","default":0},"dialLimitQueue":{"type":"integer","description":"Max 9999 member in queue(min:1, max:9999), 0 means unlimited.","default":0},"dialPowerLevel":{"type":"number","description":"Power Level: Calls for agents (min:1, max:10).","default":1},"dialPredictiveOptimization":{"type":"string","enum":["agentBusyFactor","dropRate"],"description":"Only for predictive method.","default":"dropRate"},"dialPredictiveOptimizationPercentage":{"type":"number","description":"Predictive Optimization Percentage (min: 1, max: 95)","default":3},"dialPredictiveInterval":{"type":"integer","description":"Interval Predictive Minutes (min:5 max:30)","default":10},"dialOriginateCallerIdName":{"type":"string"},"dialOriginateCallerIdNumber":{"type":"string"},"dialOriginateTimeout":{"type":"integer","description":"Originate Timeout Seconds (min:1, max:999)","default":30},"dialQueueOptions":{"type":"string","description":"https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue","default":"tTxX"},"dialQueueTimeout":{"type":"integer","description":"Queue Timeout Seconds (min:1, max:999)","default":3},"dialQueueProject":{"type":"string","description":"AGI queue option (use: agi://127.0.0.1/square,)"},"dialCongestionMaxRetry":{"type":"integer","description":"#Congestion Retry (min:1, max:999)","default":3},"dialCongestionRetryFrequency":{"type":"integer","description":"Congestion Retry Frequency Minutes (min:1, max:99999)","default":150},"dialBusyMaxRetry":{"type":"integer","description":"#Busy Retry (min:1, max:999)","default":3},"dialBusyRetryFrequency":{"type":"integer","description":"Busy Retry Frequency Minutes (min:1, max:99999)","default":150},"dialNoAnswerMaxRetry":{"type":"integer","description":"#NoAnswer Retry (min:1, max:999)","default":3},"dialNoAnswerRetryFrequency":{"type":"integer","description":"NoAnswer Retry Frequency Minutes (min:1, max:99999)","default":150},"dialGlobalMaxRetry":{"type":"integer","description":"#Global Max Retry (min:1, max:999)","default":4},"dialTimezone":{"type":"string","default":null},"dialGlobalInterval":{"type":"string","default":"07:00-22:00,*,*,*"},"dialPrefix":{"type":"string","default":null},"dialCheckDuplicateType":{"type":"string","enum":["always","never","onlyIfOpen"],"default":"always"},"dialAMDActive":{"type":"boolean","description":"Active/Disactive AMD","default":0},"dialAMDInitialSilence":{"type":"integer","description":"#AMD Initial Silence","default":2500},"dialAMDGreeting":{"type":"integer","description":"#AMD Greeting","default":1500},"dialAMDAfterGreetingSilence":{"type":"integer","description":"#AMD After Greeting Silence","default":800},"dialAMDTotalAnalysisTime":{"type":"integer","description":"#AMD Total Analysis Time","default":5000},"dialAMDMinWordLength":{"type":"integer","description":"#AMD Min Word Length","default":100},"dialAMDBetweenWordsSilence":{"type":"integer","description":"#AMD Between Words Silence","default":50},"dialAMDMaximumNumberOfWords":{"type":"integer","description":"#AMD Maximum Number Of Words","default":3},"dialAMDSilenceThreshold":{"type":"integer","description":"#AMD Silence Threshold (min:0, max:32767)","default":256},"dialAMDMaximumWordLength":{"type":"integer","description":"#AMD Maximum Word Length","default":5000},"dialRecallMeTimeout":{"type":"integer","description":"#RecallMe Timeout (min:1)","default":30},"dialRecallInQueue":{"type":"boolean","description":"Active/Disactive Recall In Queue","default":0},"dialOrderByScheduledAt":{"type":"string","enum":["DESC","ASC"],"default":"DESC"},"dialQueueProject2":{"type":"string","description":"AGI queue option (use: agi://127.0.0.1/square,)"},"dialAgiAfterHangupClient":{"type":"boolean","default":false},"dialAgiAfterHangupAgent":{"type":"boolean","default":false},"dialRandomLastDigitCallerIdNumber":{"type":"integer","description":"Random Last Digit (min:1, max:15)","default":0},"dialCutDigit":{"type":"integer","description":"Cut Digit (min:1, max:15)","default":0},"dialNoSuchNumberMaxRetry":{"type":"integer","description":"#NoSuchNumber Retry (min:1, max:999)","default":3},"dialNoSuchNumberRetryFrequency":{"type":"integer","description":"NoSuchNumber Retry Frequency Minutes (min:1, max:99999)","default":150},"dialDropMaxRetry":{"type":"integer","description":"#Drop Retry (min:1, max:999)","default":3},"dialDropRetryFrequency":{"type":"integer","description":"Drop Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAbandonedMaxRetry":{"type":"integer","description":"#Abandoned Retry (min:1, max:999)","default":3},"dialAbandonedRetryFrequency":{"type":"integer","description":"Abandoned Retry Frequency Minutes (min:1, max:99999)","default":150},"dialMachineMaxRetry":{"type":"integer","description":"#Machine Retry (min:1, max:999)","default":3},"dialMachineRetryFrequency":{"type":"integer","description":"Machine Retry Frequency Minutes (min:1, max:99999)","default":150},"dialAgentRejectMaxRetry":{"type":"integer","description":"#AgentReject Retry (min:1, max:999)","default":3},"dialAgentRejectRetryFrequency":{"type":"integer","description":"AgentReject Retry Frequency Minutes (min:1, max:99999)","default":150},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false},"dialPredictiveIntervalMaxThreshold":{"type":"integer","default":20},"dialPredictiveIntervalMinThreshold":{"type":"integer","default":10}},"required":["id"]}}}},"responses":{"201":{"description":"VoiceQueue successfully cloned. Returns the cloned object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Queue","security":[{"BearerAuth":[]}],"operationId":"deleteVoiceQueueById","tags":["Voice Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueue to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceQueue not found"}}}},"/voice/queues/reports":{"get":{"summary":"Gets a list of Queue Reports","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceQueueReport","tags":["Voice Queue Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceQueueReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceQueueReport"}}}}},"206":{"description":"Partial (paged) collection of Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceQueueReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/reports/describe":{"get":{"summary":"Gets table info about Queue Reports","security":[{"BearerAuth":[]}],"operationId":"describeVoiceQueueReport","tags":["Voice Queue Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/reports/index":{"get":{"summary":"Get Voice Queues Report","security":[{"BearerAuth":[]}],"operationId":"getVoiceQueuesReport","tags":["Voice Queue Reports"],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/queues/reports/{id}":{"get":{"summary":"Gets a single Queue Report","security":[{"BearerAuth":[]}],"operationId":"getVoiceQueueReportById","tags":["Voice Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueueReport to get"}],"responses":{"200":{"description":"VoiceQueueReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceQueueReport not found"}}}},"/voiceQueuesLog":{"get":{"summary":"Gets a list of VoiceQueuesLogs","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceQueuesLog","tags":["voiceQueuesLog"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceQueuesLog"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of VoiceQueuesLogs","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceQueuesLog"}}}}},"206":{"description":"Partial (paged) collection of VoiceQueuesLogs","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceQueuesLog"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new VoiceQueuesLog","security":[{"BearerAuth":[]}],"operationId":"createVoiceQueuesLog","tags":["voiceQueuesLog"],"requestBody":{"required":true,"description":"data for creating a new VoiceQueuesLog","content":{"application/json":{"schema":{"type":"object","properties":{"time":{"type":"string"},"callid":{"type":"string","default":""},"queuename":{"type":"string","default":""},"agent":{"type":"string","default":""},"event":{"type":"string","default":""},"data":{"type":"string","default":""},"data1":{"type":"string","default":""},"data2":{"type":"string","default":""},"data3":{"type":"string","default":""},"data4":{"type":"string","default":""},"data5":{"type":"string","default":""},"dtm":{"type":"string","default":"2020-11-27 10:41:25"}},"required":["callid","queuename","agent","event","data","data1","data2","data3","data4","data5","dtm"]}}}},"responses":{"201":{"description":"VoiceQueuesLog successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceQueuesLog"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voiceQueuesLog/{id}":{"get":{"summary":"Gets a single VoiceQueuesLog","security":[{"BearerAuth":[]}],"operationId":"getVoiceQueuesLogById","tags":["voiceQueuesLog"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueuesLog to get"}],"responses":{"200":{"description":"VoiceQueuesLog with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceQueuesLog"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceQueuesLog not found"}}},"put":{"summary":"Update an existing VoiceQueuesLog","security":[{"BearerAuth":[]}],"operationId":"updateVoiceQueuesLogById","tags":["voiceQueuesLog"],"requestBody":{"required":true,"description":"data for updating a new VoiceQueuesLog","content":{"application/json":{"schema":{"type":"object","properties":{"time":{"type":"string"},"callid":{"type":"string","default":""},"queuename":{"type":"string","default":""},"agent":{"type":"string","default":""},"event":{"type":"string","default":""},"data":{"type":"string","default":""},"data1":{"type":"string","default":""},"data2":{"type":"string","default":""},"data3":{"type":"string","default":""},"data4":{"type":"string","default":""},"data5":{"type":"string","default":""},"dtm":{"type":"string","default":"2020-11-27 10:41:25"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueuesLog to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceQueuesLog not found"}}}},"/voiceQueuesLog/{id}/destroy_many":{"delete":{"summary":"Destroy an existing VoiceQueuesLog","security":[{"BearerAuth":[]}],"operationId":"deleteVoiceQueuesLogById","tags":["voiceQueuesLog"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceQueuesLog to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceQueuesLog not found"}}}},"/voice/recordings":{"get":{"summary":"Gets a list of Recordings","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceRecording","tags":["Voice Recordings"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceRecording"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Recordings","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceRecording"}}}}},"206":{"description":"Partial (paged) collection of Recordings","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceRecording"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Recording","security":[{"BearerAuth":[]}],"operationId":"createVoiceRecording","tags":["Voice Recordings"],"requestBody":{"required":true,"description":"data for creating a new Recording","content":{"application/json":{"schema":{"type":"object","properties":{"format":{"type":"string"},"uniqueid":{"type":"string"},"channel":{"type":"string"},"membername":{"type":"string"},"calleridnum":{"type":"string"},"calleridname":{"type":"string"},"connectedlinenum":{"type":"string"},"connectedlinename":{"type":"string"},"accountcode":{"type":"string"},"context":{"type":"string"},"exten":{"type":"string"},"value":{"type":"string"},"type":{"type":"string"},"rating":{"type":"integer"},"queue":{"type":"string"},"userDisposition":{"type":"string"},"userSecondDisposition":{"type":"string"},"userThirdDisposition":{"type":"string"},"location":{"type":"string"},"transcribeName":{"type":"string"},"transcribeStatus":{"type":"string","default":"NEW"},"fileUri":{"type":"string"},"fileText":{"type":"string"},"failureReason":{"type":"string"},"sentiment":{"type":"string"},"sPositive":{"type":"number"},"sNegative":{"type":"number"},"sNeutral":{"type":"number"},"sMixed":{"type":"number"},"tempSentiment":{"type":"boolean","default":false},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}}}}}},"responses":{"201":{"description":"VoiceRecording successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceRecording"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/recordings/describe":{"get":{"summary":"Gets table info about Recordings","security":[{"BearerAuth":[]}],"operationId":"describeVoiceRecording","tags":["Voice Recordings"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/recordings/{id}":{"get":{"summary":"Gets a single Recording","security":[{"BearerAuth":[]}],"operationId":"getVoiceRecordingById","tags":["Voice Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceRecording to get"}],"responses":{"200":{"description":"VoiceRecording with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceRecording"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceRecording not found"}}},"put":{"summary":"Update an existing Recording","security":[{"BearerAuth":[]}],"operationId":"updateVoiceRecordingById","tags":["Voice Recordings"],"requestBody":{"required":true,"description":"data for updating a new Recording","content":{"application/json":{"schema":{"type":"object","properties":{"format":{"type":"string"},"uniqueid":{"type":"string"},"channel":{"type":"string"},"membername":{"type":"string"},"calleridnum":{"type":"string"},"calleridname":{"type":"string"},"connectedlinenum":{"type":"string"},"connectedlinename":{"type":"string"},"accountcode":{"type":"string"},"context":{"type":"string"},"exten":{"type":"string"},"value":{"type":"string"},"type":{"type":"string"},"rating":{"type":"integer"},"queue":{"type":"string"},"userDisposition":{"type":"string"},"userSecondDisposition":{"type":"string"},"userThirdDisposition":{"type":"string"},"location":{"type":"string"},"transcribeName":{"type":"string"},"transcribeStatus":{"type":"string","default":"NEW"},"fileUri":{"type":"string"},"fileText":{"type":"string"},"failureReason":{"type":"string"},"sentiment":{"type":"string"},"sPositive":{"type":"number"},"sNegative":{"type":"number"},"sNeutral":{"type":"number"},"sMixed":{"type":"number"},"tempSentiment":{"type":"boolean","default":false},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceRecording to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceRecording not found"}}},"delete":{"summary":"Delete voice recording","security":[{"BearerAuth":[]}],"operationId":"destroy","tags":["Voice Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceRecording"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/recordings/{id}/download":{"get":{"summary":"Download Recording","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Voice Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceRecording"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/recordings/{id}/downloads":{"get":{"summary":"Download Recording","operationId":"downloads","tags":["Voice Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceRecording"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/voice/recordings/{id}/transcribe":{"get":{"summary":"Run Transcribe Recording","security":[{"BearerAuth":[]}],"operationId":"downloadTranscribe","tags":["Voice Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceRecording"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Run Transcribe Recording","security":[{"BearerAuth":[]}],"operationId":"runTranscribe","tags":["Voice Recordings"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceRecording"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/transfers/reports":{"get":{"summary":"Gets a list of Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"listAllVoiceTransferReport","tags":["Voice Transfer Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each VoiceTransferReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceTransferReport"}}}}},"206":{"description":"Partial (paged) collection of Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VoiceTransferReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Transfer Report","security":[{"BearerAuth":[]}],"operationId":"createVoiceTransferReport","tags":["Voice Transfer Reports"],"requestBody":{"required":true,"description":"data for creating a new Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["blind","attended"]},"result":{"type":"string"},"transfererchannel":{"type":"string"},"transferercalleridnum":{"type":"string"},"transferercalleridname":{"type":"string"},"transfererconnectedlinenum":{"type":"string"},"transfererconnectedlinename":{"type":"string"},"transfereraccountcode":{"type":"string"},"transferercontext":{"type":"string"},"transfererexten":{"type":"string"},"transfererlinkedid":{"type":"string"},"transfereechannel":{"type":"string"},"transfereecalleridnum":{"type":"string"},"transfereecalleridname":{"type":"string"},"transfereeconnectedlinenum":{"type":"string"},"transfereeconnectedlinename":{"type":"string"},"transfereeaccountcode":{"type":"string"},"transfereecontext":{"type":"string"},"transfereeexten":{"type":"string"},"transfereelinkedid":{"type":"string"},"isexternal":{"type":"string","enum":["Yes","No"]},"context":{"type":"string"},"extension":{"type":"string"}}}}}},"responses":{"201":{"description":"VoiceTransferReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/voice/transfers/reports/{id}":{"get":{"summary":"Gets a single Transfer Report","security":[{"BearerAuth":[]}],"operationId":"getVoiceTransferReportById","tags":["Voice Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceTransferReport to get"}],"responses":{"200":{"description":"VoiceTransferReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceTransferReport not found"}}},"put":{"summary":"Update an existing Transfer Report","security":[{"BearerAuth":[]}],"operationId":"updateVoiceTransferReportById","tags":["Voice Transfer Reports"],"requestBody":{"required":true,"description":"data for updating a new Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["blind","attended"]},"result":{"type":"string"},"transfererchannel":{"type":"string"},"transferercalleridnum":{"type":"string"},"transferercalleridname":{"type":"string"},"transfererconnectedlinenum":{"type":"string"},"transfererconnectedlinename":{"type":"string"},"transfereraccountcode":{"type":"string"},"transferercontext":{"type":"string"},"transfererexten":{"type":"string"},"transfererlinkedid":{"type":"string"},"transfereechannel":{"type":"string"},"transfereecalleridnum":{"type":"string"},"transfereecalleridname":{"type":"string"},"transfereeconnectedlinenum":{"type":"string"},"transfereeconnectedlinename":{"type":"string"},"transfereeaccountcode":{"type":"string"},"transfereecontext":{"type":"string"},"transfereeexten":{"type":"string"},"transfereelinkedid":{"type":"string"},"isexternal":{"type":"string","enum":["Yes","No"]},"context":{"type":"string"},"extension":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceTransferReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceTransferReport not found"}}}},"/voice/transfers/reports/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Transfer Report","security":[{"BearerAuth":[]}],"operationId":"deleteVoiceTransferReportById","tags":["Voice Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the VoiceTransferReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"VoiceTransferReport not found"}}}},"/webbar/originate":{"post":{"summary":"Originate new webrtc call","security":[{"BearerAuth":[]}],"operationId":"webBarOriginate","tags":["WebBar"],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"type":"object","properties":{"callNumber":{"type":"string","description":"call number"},"userId":{"type":"integer","description":"user id"},"callerId":{"type":"string","description":"caller id"},"callbackUrl":{"type":"string","format":"uri","description":"callback uri"}},"required":["callNumber","userId","callerId","callbackUrl"]}}}},"responses":{"200":{"description":"web call originated successfully"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/webbar/hangup":{"post":{"summary":"hangup call","security":[{"BearerAuth":[]}],"operationId":"webBarHangup","tags":["WebBar"],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string","description":"session id"},"userId":{"type":"integer","description":"user id"}},"required":["sessionId","userId"]}}}},"responses":{"200":{"description":"Hangup success"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/webbar/answer":{"post":{"summary":"answer new webrtc call","security":[{"BearerAuth":[]}],"operationId":"webBarAnswer","tags":["WebBar"],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string","description":"session id"},"userId":{"type":"integer","description":"user id"}},"required":["sessionId","userId"]}}}},"responses":{"200":{"description":"Answer success"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/webbar/hold":{"post":{"summary":"hold webrtc call","security":[{"BearerAuth":[]}],"operationId":"webBarHold","tags":["WebBar"],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string","description":"session id"},"userId":{"type":"integer","description":"user id"}},"required":["userId"]}}}},"responses":{"200":{"description":"Hold success"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/webbar/unhold":{"post":{"summary":"unhold webrtc call","security":[{"BearerAuth":[]}],"operationId":"webBarUnhold","tags":["WebBar"],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string","description":"session id"},"userId":{"type":"integer","description":"user id"}},"required":["sessionId","userId"]}}}},"responses":{"200":{"description":"Unhold success"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/webbar/calls":{"post":{"summary":"retrieve webrtc call list for a user","security":[{"BearerAuth":[]}],"operationId":"webBarCalls","tags":["WebBar"],"requestBody":{"required":true,"description":"Request payload containing the user","content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"integer","description":"user id"}},"required":["userId"]}}}},"responses":{"200":{"description":"list of calls","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/webbar/transfer":{"post":{"summary":"blind transfer webrtc call","security":[{"BearerAuth":[]}],"operationId":"webBarTransfer","tags":["WebBar"],"requestBody":{"required":true,"description":"Request payload","content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"integer","description":"user id"},"sessionId":{"type":"string","description":"session id"},"transferNumber":{"type":"string","description":"transfer number"}},"required":["userId","sessionId","transferNumber"]}}}},"responses":{"200":{"description":"Transfer success"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/accounts":{"get":{"summary":"Gets a list of Accounts","security":[{"BearerAuth":[]}],"operationId":"listAllWhatsappAccount","tags":["Whatsapp Accounts"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each WhatsappAccount"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappAccount"}}}}},"206":{"description":"Partial (paged) collection of Accounts","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappAccount"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Account","security":[{"BearerAuth":[]}],"operationId":"createWhatsappAccount","tags":["Whatsapp Accounts"],"requestBody":{"required":true,"description":"data for creating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"key":{"type":"string"},"remote":{"type":"string"},"token":{"type":"string","default":"RR1qO3WWSMLNOqQM8V3jP6ZqLmuIDDnf"},"phone":{"type":"string"},"type":{"type":"string","enum":["twilio"]},"accountSid":{"type":"string"},"authToken":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":false},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false},"description":{"type":"string"}},"required":["name","key","remote"]}}}},"responses":{"201":{"description":"WhatsappAccount successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/accounts/describe":{"get":{"summary":"Gets table info about Accounts","security":[{"BearerAuth":[]}],"operationId":"describeWhatsappAccount","tags":["Whatsapp Accounts"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/accounts/{id}":{"get":{"summary":"Gets a single Account","security":[{"BearerAuth":[]}],"operationId":"getWhatsappAccountById","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount to get"}],"responses":{"200":{"description":"WhatsappAccount with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappAccount"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappAccount not found"}}},"put":{"summary":"Update an existing Account","security":[{"BearerAuth":[]}],"operationId":"updateWhatsappAccountById","tags":["Whatsapp Accounts"],"requestBody":{"required":true,"description":"data for updating a new Account","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"key":{"type":"string"},"remote":{"type":"string"},"token":{"type":"string","default":"FMf1MjzZO3wZH7rudjIGZiO6b2Q6vmOz"},"phone":{"type":"string"},"type":{"type":"string","enum":["twilio"]},"accountSid":{"type":"string"},"authToken":{"type":"string"},"notificationTemplate":{"type":"string","default":"Account: {{account.name}}
{{#queue}}Queue: {{queue.name}}
{{/queue}}From : {{from}}"},"notificationSound":{"type":"boolean","default":false},"notificationShake":{"type":"boolean","default":false},"waitForTheAssignedAgent":{"type":"integer","default":10},"queueTransfer":{"type":"boolean","default":false},"queueTransferTimeout":{"type":"integer","default":300},"agentTransfer":{"type":"boolean","default":false},"agentTransferTimeout":{"type":"integer","default":300},"mandatoryDispositionPauseId":{"type":"integer","description":"Status to put when mandatory disposition is enabled"},"mandatoryDisposition":{"type":"boolean","description":"Enabled/disables mandatory dispo on a queue","default":false},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappAccount not found"}}}},"/whatsapp/accounts/{id}/dispositions":{"get":{"summary":"Gets account dispositions","security":[{"BearerAuth":[]}],"operationId":"getDispositions","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new disposition","security":[{"BearerAuth":[]}],"operationId":"addDisposition","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes dispositions from account","security":[{"BearerAuth":[]}],"operationId":"removeDispositions","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/accounts/{id}/canned_answers":{"get":{"summary":"Gets account canned answers","security":[{"BearerAuth":[]}],"operationId":"getAnswers","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new canned answer","security":[{"BearerAuth":[]}],"operationId":"addAnswer","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes canned answers from account","security":[{"BearerAuth":[]}],"operationId":"removeAnswers","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/accounts/{id}/users":{"get":{"summary":"Gets agents from whatsapp account","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a whatsapp account","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a whatsapp account","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/accounts/{id}/applications":{"get":{"summary":"Gets account applications","security":[{"BearerAuth":[]}],"operationId":"getApplications","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new applications","security":[{"BearerAuth":[]}],"operationId":"addApplications","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/accounts/{id}/notify":{"post":{"summary":"Notify new message","operationId":"notify","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"201":{"description":"successfully created"}}}},"/whatsapp/accounts/{id}/send":{"post":{"summary":"Send new whatsapp message","security":[{"BearerAuth":[]}],"operationId":"send","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/accounts/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Account","security":[{"BearerAuth":[]}],"operationId":"deleteWhatsappAccountById","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappAccount to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappAccount not found"}}}},"/whatsapp/applications":{"get":{"summary":"Gets a list of Applications","security":[{"BearerAuth":[]}],"operationId":"listAllWhatsappApplication","tags":["Whatsapp Applications"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each WhatsappApplication"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Applications","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappApplication"}}}}},"206":{"description":"Partial (paged) collection of Applications","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappApplication"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Application","security":[{"BearerAuth":[]}],"operationId":"createWhatsappApplication","tags":["Whatsapp Applications"],"requestBody":{"required":true,"description":"data for creating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}},"required":["priority","app"]}}}},"responses":{"201":{"description":"WhatsappApplication successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/applications/{id}":{"get":{"summary":"Gets a single Application","security":[{"BearerAuth":[]}],"operationId":"getWhatsappApplicationById","tags":["Whatsapp Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappApplication to get"}],"responses":{"200":{"description":"WhatsappApplication with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappApplication"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappApplication not found"}}},"put":{"summary":"Update an existing Application","security":[{"BearerAuth":[]}],"operationId":"updateWhatsappApplicationById","tags":["Whatsapp Applications"],"requestBody":{"required":true,"description":"data for updating a new Application","content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"integer"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string"},"description":{"type":"string"},"interval":{"type":"string","default":"*,*,*,*"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappApplication to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappApplication not found"}}}},"/whatsapp/applications/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Application","security":[{"BearerAuth":[]}],"operationId":"deleteWhatsappApplicationById","tags":["Whatsapp Applications"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappApplication to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappApplication not found"}}}},"/whatsapp/interactions":{"get":{"summary":"Gets a list of Interactions","security":[{"BearerAuth":[]}],"operationId":"listAllWhatsappInteraction","tags":["Whatsapp Interactions"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each WhatsappInteraction"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappInteraction"}}}}},"206":{"description":"Partial (paged) collection of Interactions","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappInteraction"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Interaction","security":[{"BearerAuth":[]}],"operationId":"createWhatsappInteraction","tags":["Whatsapp Interactions"],"requestBody":{"required":true,"description":"data for creating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"phone":{"type":"string"},"read1stAt":{"type":"string"},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"}},"required":["firstMsgDirection","lastMsgDirection"]}}}},"responses":{"201":{"description":"WhatsappInteraction successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/interactions/describe":{"get":{"summary":"Gets table info about Interactions","security":[{"BearerAuth":[]}],"operationId":"describeWhatsappInteraction","tags":["Whatsapp Interactions"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/interactions/{id}":{"get":{"summary":"Gets a single Interaction","security":[{"BearerAuth":[]}],"operationId":"getWhatsappInteractionById","tags":["Whatsapp Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappInteraction to get"}],"responses":{"200":{"description":"WhatsappInteraction with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappInteraction"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappInteraction not found"}}},"put":{"summary":"Update an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"updateWhatsappInteractionById","tags":["Whatsapp Interactions"],"requestBody":{"required":true,"description":"data for updating a new Interaction","content":{"application/json":{"schema":{"type":"object","properties":{"closed":{"type":"boolean","default":false},"closedAt":{"type":"string"},"disposition":{"type":"string"},"secondDisposition":{"type":"string"},"thirdDisposition":{"type":"string"},"note":{"type":"string"},"phone":{"type":"string"},"read1stAt":{"type":"string"},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string"},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappInteraction to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappInteraction not found"}}}},"/whatsapp/interactions/{id}/messages":{"get":{"summary":"Gets interaction messages","security":[{"BearerAuth":[]}],"operationId":"getMessages","tags":["Whatsapp Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates new messages","security":[{"BearerAuth":[]}],"operationId":"addMessage","tags":["Whatsapp Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/interactions/{id}/download":{"get":{"summary":"Gets interaction","security":[{"BearerAuth":[]}],"operationId":"download","tags":["Whatsapp Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappInteraction"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/interactions/{id}/tags":{"post":{"summary":"Add tags to the interaction","security":[{"BearerAuth":[]}],"operationId":"addTags","tags":["Whatsapp Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappInteraction"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes tags from interaction","security":[{"BearerAuth":[]}],"operationId":"removeTags","tags":["Whatsapp Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappInteraction"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/interactions/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Interaction","security":[{"BearerAuth":[]}],"operationId":"deleteWhatsappInteractionById","tags":["Whatsapp Interactions"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappInteraction to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappInteraction not found"}}}},"/whatsapp/messages":{"get":{"summary":"Gets a list of Messages","security":[{"BearerAuth":[]}],"operationId":"listAllWhatsappMessage","tags":["Whatsapp Messages"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each WhatsappMessage"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappMessage"}}}}},"206":{"description":"Partial (paged) collection of Messages","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappMessage"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Message","security":[{"BearerAuth":[]}],"operationId":"createWhatsappMessage","tags":["Whatsapp Messages"],"requestBody":{"required":true,"description":"data for creating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"messageId":{"type":"string"},"phone":{"type":"string"},"readAt":{"type":"string"},"secret":{"type":"boolean","default":false},"providerName":{"type":"string"},"providerResponse":{"type":"string"}},"required":["body","direction"]}}}},"responses":{"201":{"description":"WhatsappMessage successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/messages/describe":{"get":{"summary":"Gets table info about Messages","security":[{"BearerAuth":[]}],"operationId":"describeWhatsappMessage","tags":["Whatsapp Messages"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/messages/{id}":{"get":{"summary":"Gets a single Message","security":[{"BearerAuth":[]}],"operationId":"getWhatsappMessageById","tags":["Whatsapp Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappMessage to get"}],"responses":{"200":{"description":"WhatsappMessage with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappMessage"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappMessage not found"}}},"put":{"summary":"Update an existing Message","security":[{"BearerAuth":[]}],"operationId":"updateWhatsappMessageById","tags":["Whatsapp Messages"],"requestBody":{"required":true,"description":"data for updating a new Message","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"read":{"type":"boolean","default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"messageId":{"type":"string"},"phone":{"type":"string"},"readAt":{"type":"string"},"secret":{"type":"boolean","default":false},"providerName":{"type":"string"},"providerResponse":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappMessage to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappMessage not found"}}}},"/whatsapp/messages/{id}/status":{"post":{"summary":"Receive message status","operationId":"status","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappMessage"}],"responses":{"201":{"description":"successfully created"}}}},"/whatsapp/messages/{id}/accept":{"put":{"summary":"Accepts message","security":[{"BearerAuth":[]}],"operationId":"accept","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/messages/{id}/reject":{"put":{"summary":"Rejects message","security":[{"BearerAuth":[]}],"operationId":"reject","tags":["Whatsapp Accounts"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappMessage"}],"responses":{"200":{"description":"successfully updated"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/messages/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Message","security":[{"BearerAuth":[]}],"operationId":"deleteWhatsappMessageById","tags":["Whatsapp Messages"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappMessage to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappMessage not found"}}}},"/whatsapp/queues":{"get":{"summary":"Gets a list of Queues","security":[{"BearerAuth":[]}],"operationId":"listAllWhatsappQueue","tags":["Whatsapp Queues"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each WhatsappQueue"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappQueue"}}}}},"206":{"description":"Partial (paged) collection of Queues","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappQueue"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Queue","security":[{"BearerAuth":[]}],"operationId":"createWhatsappQueue","tags":["Whatsapp Queues"],"requestBody":{"required":true,"description":"data for creating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"WhatsappQueue successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/queues/describe":{"get":{"summary":"Gets table info about Queues","security":[{"BearerAuth":[]}],"operationId":"describeWhatsappQueue","tags":["Whatsapp Queues"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/queues/{id}":{"get":{"summary":"Gets a single Queue","security":[{"BearerAuth":[]}],"operationId":"getWhatsappQueueById","tags":["Whatsapp Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue to get"}],"responses":{"200":{"description":"WhatsappQueue with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappQueue"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappQueue not found"}}},"put":{"summary":"Update an existing Queue","security":[{"BearerAuth":[]}],"operationId":"updateWhatsappQueueById","tags":["Whatsapp Queues"],"requestBody":{"required":true,"description":"data for updating a new Queue","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"timeout":{"type":"integer"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]},"description":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappQueue not found"}}}},"/whatsapp/queues/{id}/members":{"get":{"summary":"GetMembers","security":[{"BearerAuth":[]}],"operationId":"getMembers","tags":["Whatsapp Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/queues/{id}/teams":{"get":{"summary":"Gets queues list","security":[{"BearerAuth":[]}],"operationId":"getTeams","tags":["Whatsapp Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add teams to a queue","security":[{"BearerAuth":[]}],"operationId":"addTeams","tags":["Whatsapp Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Remove teams from a queue","security":[{"BearerAuth":[]}],"operationId":"removeTeams","tags":["Teams"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/queues/{id}/users":{"get":{"summary":"Gets queue agents","security":[{"BearerAuth":[]}],"operationId":"getAgents","tags":["Whatsapp Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue"}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Add agents to a queue","security":[{"BearerAuth":[]}],"operationId":"addAgents","tags":["Whatsapp Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue"}],"responses":{"201":{"description":"successfully created"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"delete":{"summary":"Removes agents from a queue","security":[{"BearerAuth":[]}],"operationId":"removeAgents","tags":["Whatsapp Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/queues/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Queue","security":[{"BearerAuth":[]}],"operationId":"deleteWhatsappQueueById","tags":["Whatsapp Queues"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueue to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappQueue not found"}}}},"/whatsapp/reports/queue":{"get":{"summary":"Gets a list of Whatsapp Queue Reports","security":[{"BearerAuth":[]}],"operationId":"listAllWhatsappQueueReport","tags":["Whatsapp Queue Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each WhatsappQueueReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Whatsapp Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappQueueReport"}}}}},"206":{"description":"Partial (paged) collection of Whatsapp Queue Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappQueueReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Whatsapp Queue Report","security":[{"BearerAuth":[]}],"operationId":"createWhatsappQueueReport","tags":["Whatsapp Queue Reports"],"requestBody":{"required":true,"description":"data for creating a new Whatsapp Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}},"required":["uniqueid"]}}}},"responses":{"201":{"description":"WhatsappQueueReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/reports/queue/describe":{"get":{"summary":"Gets table info about Whatsapp Queue Reports","security":[{"BearerAuth":[]}],"operationId":"describeWhatsappQueueReport","tags":["Whatsapp Queue Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/reports/queue/{id}":{"get":{"summary":"Gets a single Whatsapp Queue Report","security":[{"BearerAuth":[]}],"operationId":"getWhatsappQueueReportById","tags":["Whatsapp Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueueReport to get"}],"responses":{"200":{"description":"WhatsappQueueReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappQueueReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappQueueReport not found"}}},"put":{"summary":"Update an existing Whatsapp Queue Report","security":[{"BearerAuth":[]}],"operationId":"updateWhatsappQueueReportById","tags":["Whatsapp Queue Reports"],"requestBody":{"required":true,"description":"data for updating a new Whatsapp Queue Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"from":{"type":"string"},"joinAt":{"type":"string"},"leaveAt":{"type":"string"},"acceptAt":{"type":"string"},"exitAt":{"type":"string"},"reason":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueueReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappQueueReport not found"}}}},"/whatsapp/reports/queue/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Whatsapp Queue Report","security":[{"BearerAuth":[]}],"operationId":"deleteWhatsappQueueReportById","tags":["Whatsapp Queue Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappQueueReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappQueueReport not found"}}}},"/whatsapp/reports/transfer":{"get":{"summary":"Gets a list of Whatsapp Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"listAllWhatsappTransferReport","tags":["Whatsapp Transfer Reports"],"parameters":[{"in":"query","name":"fields","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"return only specific fields for a result set. This parameter accepts a comma-separated list. E.g. `fields=id,name` will return only id and name of each object.","examples":{"fields":{"value":"id,name","summary":"A call returning only id and name of each WhatsappTransferReport"}}},{"in":"query","name":"filter","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"the result will be filtered by the value you specify. This parameter accepts a comma-separated list. E.g. `filter=john.doe,jane.miller` will return only records with name equal to `john.doe` or `jane.miller`","examples":{"name":{"value":"john.doe,jane.miller","summary":"A call returning a result set for records with name of john.doe or jane.miller"},"filter":{"value":"john","summary":"the result will be filtered by the value you specify"}}},{"in":"query","name":"sort","allowReserved":true,"style":"form","explode":false,"schema":{"type":"string"},"description":"sort a result set based on one or several fields. This parameter 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 (-). E.g. `sort=id,-name` will sort results by `id` ascending and then `name` descending","examples":{"sort":{"value":"id,-name","summary":"sorting results by id ascending and then name descending"}}},{"in":"query","name":"offset","style":"form","explode":false,"schema":{"type":"number"},"description":"a number indicating the start position in the result set you want to return. E.g. `offset=5` will return a result set starting at 5th element.","examples":{"offset":{"value":5,"summary":"a result set starting at 5"}}},{"in":"query","name":"limit","style":"form","explode":false,"schema":{"type":"string"},"description":"a number indicating how many records past the start position you want returned (default = `100`). E.g. `limit=25` will return a maximum of `25` elements.","examples":{"sort":{"value":25,"summary":"returning no more than 25 records"}}}],"responses":{"200":{"description":"Entire collection of Whatsapp Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total. If there are 50 records in total, with a offset of 5 and a limit of 25, the returned Content-Range header would be '5-30/50'","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappTransferReport"}}}}},"206":{"description":"Partial (paged) collection of Whatsapp Transfer Reports","headers":{"Content-Range":{"description":"paging data in the form start - end / total","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappTransferReport"}}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}},"post":{"summary":"Creates a new Whatsapp Transfer Report","security":[{"BearerAuth":[]}],"operationId":"createWhatsappTransferReport","tags":["Whatsapp Transfer Reports"],"requestBody":{"required":true,"description":"data for creating a new Whatsapp Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"]},"transferredAt":{"type":"string"}},"required":["uniqueid","type"]}}}},"responses":{"201":{"description":"WhatsappTransferReport successfully created. Returns the created object representation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/reports/transfer/describe":{"get":{"summary":"Gets table info about Whatsapp Transfer Reports","security":[{"BearerAuth":[]}],"operationId":"describeWhatsappTransferReport","tags":["Whatsapp Transfer Reports"],"responses":{"200":{"description":"succesfully retrieve the table info","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"}}}},"/whatsapp/reports/transfer/{id}":{"get":{"summary":"Gets a single Whatsapp Transfer Report","security":[{"BearerAuth":[]}],"operationId":"getWhatsappTransferReportById","tags":["Whatsapp Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappTransferReport to get"}],"responses":{"200":{"description":"WhatsappTransferReport with matching id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappTransferReport"}}}},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappTransferReport not found"}}},"put":{"summary":"Update an existing Whatsapp Transfer Report","security":[{"BearerAuth":[]}],"operationId":"updateWhatsappTransferReportById","tags":["Whatsapp Transfer Reports"],"requestBody":{"required":true,"description":"data for updating a new Whatsapp Transfer Report","content":{"application/json":{"schema":{"type":"object","properties":{"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"]},"transferredAt":{"type":"string"}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappTransferReport to be updated"}],"responses":{"200":{"description":"successful update"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappTransferReport not found"}}}},"/whatsapp/reports/transfer/{id}/destroy_many":{"delete":{"summary":"Destroy an existing Whatsapp Transfer Report","security":[{"BearerAuth":[]}],"operationId":"deleteWhatsappTransferReportById","tags":["Whatsapp Transfer Reports"],"parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"Numeric id of the WhatsappTransferReport to be deleted"}],"responses":{"204":{"description":"successfully deleted"},"401":{"description":"Not authenticated"},"403":{"description":"Access token does not have the required scope"},"404":{"description":"WhatsappTransferReport not found"}}}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"User":{"title":"User","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"fullname":{"type":"string"},"alias":{"type":"string","nullable":true},"email":{"type":"string"},"role":{"type":"string","enum":["admin","user","agent","telephone"]},"password":{"type":"string"},"provider":{"type":"string","nullable":true,"default":"local"},"internal":{"type":"integer","format":"int32"},"salt":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"mobile":{"type":"string","nullable":true},"address":{"type":"string","nullable":true},"zipcode":{"type":"string","nullable":true},"userpic":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"online":{"type":"boolean","nullable":true,"default":false},"lastLoginAt":{"type":"string","format":"date-time","nullable":true},"voicePause":{"type":"boolean","nullable":true,"default":false},"chatPause":{"type":"boolean","nullable":true,"default":false},"mailPause":{"type":"boolean","nullable":true,"default":false},"faxPause":{"type":"boolean","nullable":true,"default":false},"smsPause":{"type":"boolean","nullable":true,"default":false},"whatsappPause":{"type":"boolean","nullable":true,"default":false},"openchannelPause":{"type":"boolean","nullable":true,"default":false},"pauseType":{"type":"string","nullable":true,"default":"DEFAULT PAUSE"},"lastPauseAt":{"type":"string","format":"date-time","nullable":true},"chatCapacity":{"type":"integer","format":"int32","nullable":true,"default":0},"mailCapacity":{"type":"integer","format":"int32","nullable":true,"default":0},"faxCapacity":{"type":"integer","format":"int32","nullable":true,"default":0},"smsCapacity":{"type":"integer","format":"int32","nullable":true,"default":0},"whatsappCapacity":{"type":"integer","format":"int32","nullable":true,"default":0},"openchannelCapacity":{"type":"integer","format":"int32","nullable":true,"default":0},"phoneBarAutoAnswer":{"type":"boolean","nullable":true,"default":false},"phoneBarEnableSettings":{"type":"boolean","nullable":true,"default":true},"phoneBarListenPort":{"type":"integer","format":"int32","nullable":true,"default":5160},"phoneBarExpires":{"type":"integer","format":"int32","nullable":true,"default":120},"phoneBarRemoteControl":{"type":"boolean","nullable":true,"default":false},"phoneBarRemoteControlPort":{"type":"integer","format":"int32","nullable":true,"default":9888},"phoneBarEnableRecording":{"type":"boolean","nullable":true,"default":false},"phoneBarRingInUse":{"type":"boolean","nullable":true,"default":false},"chanspy":{"type":"boolean","nullable":true,"default":false},"description":{"type":"string","nullable":true},"host":{"type":"string","nullable":true,"default":"dynamic"},"ipaddr":{"type":"string","nullable":true},"port":{"type":"integer","format":"int32","nullable":true},"regseconds":{"type":"integer","format":"int32","nullable":true},"fullcontact":{"type":"string","nullable":true},"regserver":{"type":"string","nullable":true},"useragent":{"type":"string","nullable":true},"lastms":{"type":"integer","format":"int32","nullable":true},"type":{"type":"string","enum":["friend","user","peer"],"nullable":true,"default":"friend"},"context":{"type":"string","nullable":true,"default":"from-sip"},"callingpres":{"type":"string","enum":["ALLOWED_NOT_SCREENED","ALLOWED_PASSED_SCREEN","ALLOWED_FAILED_SCREEN","ALLOWED","PROHIB_NOT_SCREENED","PROHIB_PASSED_SCREEN","PROHIB_FAILED_SCREEN","PROHIB"],"nullable":true},"deny":{"type":"string","nullable":true},"permit":{"type":"string","nullable":true},"secret":{"type":"string","nullable":true},"md5secret":{"type":"string","nullable":true},"remotesecret":{"type":"string","nullable":true},"transport":{"type":"string","nullable":true,"default":"udp"},"dtmfmode":{"type":"string","enum":["rfc2833","info","shortinfo","inband","auto"],"nullable":true,"default":"rfc2833"},"directmedia":{"type":"string","enum":["yes","no","nonat","update","outgoing"],"nullable":true,"default":"no"},"directrtpsetup":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"directmediapermit":{"type":"string","nullable":true},"directmediadeny":{"type":"string","nullable":true},"nat":{"type":"string","nullable":true,"default":"force_rport,comedia"},"callgroup":{"type":"string","nullable":true},"namedcallgroup":{"type":"string","nullable":true},"pickupgroup":{"type":"string","nullable":true},"namedpickupgroup":{"type":"string","nullable":true},"language":{"type":"string","nullable":true,"default":"en"},"tonezone":{"type":"string","nullable":true},"disallow":{"type":"string","default":"all"},"allow":{"type":"string","default":"ulaw;alaw;gsm"},"autoframing":{"type":"string","enum":["yes","no"],"nullable":true},"insecure":{"type":"string","nullable":true},"trustrpid":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"trust_id_outbound":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"progressinband":{"type":"string","enum":["yes","no","never"],"nullable":true},"promiscredir":{"type":"string","enum":["yes","no"],"nullable":true},"useclientcode":{"type":"string","enum":["yes","no"],"nullable":true},"accountcode":{"type":"integer","format":"int32","nullable":true},"setvar":{"type":"string","nullable":true},"callerid":{"type":"string","nullable":true,"default":"\"\" <>"},"amaflags":{"type":"string","nullable":true},"callcounter":{"type":"string","enum":["yes","no"],"nullable":true,"default":"yes"},"busylevel":{"type":"integer","format":"int32","nullable":true},"allowoverlap":{"type":"string","enum":["yes","no"],"nullable":true},"allowsubscribe":{"type":"string","enum":["yes","no"],"nullable":true},"allowtransfer":{"type":"string","enum":["yes","no"],"nullable":true},"ignoresdpversion":{"type":"string","enum":["yes","no"],"nullable":true},"subscribecontext":{"type":"string","nullable":true},"template":{"type":"string","nullable":true},"videosupport":{"type":"string","enum":["yes","no","always"],"nullable":true,"default":"no"},"maxcallbitrate":{"type":"integer","format":"int32","nullable":true},"rfc2833compensate":{"type":"string","enum":["yes","no"],"nullable":true},"mailbox":{"type":"string","nullable":true},"session_timers":{"type":"string","enum":["accept","refuse","originate"],"nullable":true},"session_expires":{"type":"integer","format":"int32","nullable":true},"session_minse":{"type":"integer","format":"int32","nullable":true},"session_refresher":{"type":"string","enum":["uac","uas"],"nullable":true,"default":"uas"},"t38pt_usertpsource":{"type":"string","nullable":true},"regexten":{"type":"string","nullable":true},"fromdomain":{"type":"string","nullable":true},"fromuser":{"type":"string","nullable":true},"qualify":{"type":"string","enum":["yes","no"],"nullable":true,"default":"yes"},"keepalive":{"type":"integer","format":"int32","nullable":true},"defaultip":{"type":"string","nullable":true},"defaultuser":{"type":"string","nullable":true},"rtptimeout":{"type":"integer","format":"int32","nullable":true},"rtpholdtimeout":{"type":"integer","format":"int32","nullable":true},"rtpkeepalive":{"type":"integer","format":"int32","nullable":true},"sendrpid":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"outboundproxy":{"type":"string","nullable":true},"callbackextension":{"type":"string","nullable":true},"timert1":{"type":"integer","format":"int32","nullable":true},"timerb":{"type":"integer","format":"int32","nullable":true},"qualifyfreq":{"type":"integer","format":"int32","nullable":true},"contactpermit":{"type":"string","nullable":true},"contactdeny":{"type":"string","nullable":true},"contactacl":{"type":"string","nullable":true},"unsolicited_mailbox":{"type":"string","nullable":true},"use_q850_reason":{"type":"string","nullable":true},"maxforwards":{"type":"integer","format":"int32","nullable":true},"encryption":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"avpf":{"type":"string","enum":["yes","no"],"nullable":true},"force_avp":{"type":"string","enum":["yes","no"],"nullable":true},"icesupport":{"type":"string","enum":["yes","no"],"nullable":true},"dtlsenable":{"type":"string","enum":["yes","no"],"nullable":true},"dtlsverify":{"type":"string","enum":["yes","no","fingerprint","certificate"],"nullable":true},"dtlsrekey":{"type":"integer","format":"int32","nullable":true},"dtlscertfile":{"type":"string","nullable":true},"dtlsprivatekey":{"type":"string","nullable":true},"dtlscipher":{"type":"string","nullable":true},"dtlscafile":{"type":"string","nullable":true},"dtlscapath":{"type":"string","nullable":true},"dtlssetup":{"type":"string","enum":["active","passive","actpass"],"nullable":true},"dtlsfingerprint":{"type":"string","nullable":true},"usereqphone":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"recordonfeature":{"type":"string","nullable":true},"recordofffeature":{"type":"string","nullable":true},"call_limit":{"type":"integer","format":"int32","nullable":true,"default":10},"registertrying":{"type":"string","enum":["yes","no"],"nullable":true},"subscribemwi":{"type":"string","enum":["yes","no"],"nullable":true},"vmexten":{"type":"string","nullable":true},"mohinterpret":{"type":"string","nullable":true},"mohsuggest":{"type":"string","nullable":true},"parkinglot":{"type":"string","nullable":true},"canreinvite":{"type":"string","enum":["yes","no","nonat","update","update,nonat"],"nullable":true,"default":"no"},"loginInPause":{"type":"boolean","nullable":true,"default":false},"resetPasswordToken":{"type":"string","nullable":true},"resetPasswordExpires":{"type":"string","format":"date-time","nullable":true},"passwordResetAt":{"type":"string","format":"date-time","nullable":true,"default":null},"previousPasswords":{"type":"string","nullable":true},"showWebBar":{"type":"integer","format":"int32","nullable":true,"default":0},"permissions":{"type":"string","nullable":true},"phoneBarUnconditionalNumber":{"type":"string","nullable":true},"phoneBarNoReplyNumber":{"type":"string","nullable":true},"phoneBarBusyNumber":{"type":"string","nullable":true},"phoneBarUnconditional":{"type":"boolean","nullable":true,"default":false},"phoneBarNoReply":{"type":"boolean","nullable":true,"default":false},"phoneBarBusy":{"type":"boolean","nullable":true,"default":false},"phoneBarDnd":{"type":"boolean","nullable":true,"default":true},"phoneBarUnansweredCallBadge":{"type":"boolean","nullable":true,"default":true},"phoneBarEnableDtmfTone":{"type":"boolean","nullable":true,"default":false},"phoneBarAutoAnswerDelay":{"type":"integer","format":"int32","nullable":true,"default":0},"extensionMonitor":{"type":"string","nullable":true,"default":""},"crudPermissions":{"type":"integer","format":"int32","nullable":true,"default":0},"rtcp_mux":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"allowmessenger":{"type":"boolean","nullable":true,"default":true},"phoneBarOutboundProxy":{"type":"string","nullable":true},"phoneBarEnableJaws":{"type":"boolean","nullable":true,"default":false},"phoneBarEnableScreenRecordingByAgent":{"type":"boolean","nullable":true,"default":false},"phoneBarEnableVideoRecording":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"phoneBarEnableAutomaticScreenRecording":{"type":"boolean","nullable":true,"default":false},"phoneBarPrefixRequired":{"type":"boolean","nullable":true,"default":false},"hotdesk":{"type":"boolean","nullable":true,"default":false},"interface":{"type":"string","nullable":true,"default":null},"privacyEnabled":{"type":"boolean","nullable":true,"default":false},"apiKeyNonce":{"type":"string","nullable":true},"apiKeyIat":{"type":"string","nullable":true},"screenrecording":{"type":"boolean","nullable":true,"default":false},"blocked":{"type":"boolean","nullable":true,"default":false},"blockedAt":{"type":"string","format":"date-time","nullable":true,"default":null},"loginAttempts":{"type":"integer","format":"int32","nullable":true,"default":0},"disabled":{"type":"boolean","nullable":true,"default":false},"settingsEnabled":{"type":"boolean","nullable":true,"default":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userProfileId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","fullname","email","role","password","provider","internal","online","voicePause","chatPause","mailPause","faxPause","smsPause","whatsappPause","openchannelPause","pauseType","chatCapacity","mailCapacity","faxCapacity","smsCapacity","whatsappCapacity","openchannelCapacity","phoneBarAutoAnswer","phoneBarEnableSettings","phoneBarListenPort","phoneBarExpires","phoneBarRemoteControl","phoneBarRemoteControlPort","phoneBarEnableRecording","phoneBarRingInUse","chanspy","host","type","context","transport","dtmfmode","directmedia","directrtpsetup","nat","language","disallow","allow","trustrpid","trust_id_outbound","callerid","callcounter","videosupport","session_refresher","qualify","sendrpid","encryption","usereqphone","call_limit","canreinvite","loginInPause","passwordResetAt","showWebBar","phoneBarUnconditional","phoneBarNoReply","phoneBarBusy","phoneBarDnd","phoneBarUnansweredCallBadge","phoneBarEnableDtmfTone","phoneBarAutoAnswerDelay","extensionMonitor","crudPermissions","rtcp_mux","allowmessenger","phoneBarEnableJaws","phoneBarEnableScreenRecordingByAgent","phoneBarEnableAutomaticScreenRecording","phoneBarPrefixRequired","hotdesk","interface","privacyEnabled","screenrecording","blocked","blockedAt","loginAttempts","disabled","settingsEnabled","createdAt","updatedAt"]},"VoiceChanSpy":{"title":"VoiceChanSpy","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"prefix":{"type":"string"},"options":{"type":"string","nullable":true},"auth":{"type":"boolean","nullable":true,"default":false},"password":{"type":"string","nullable":true},"record":{"type":"boolean","nullable":true,"default":false},"recordingFormat":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","prefix","auth","record","createdAt","updatedAt"]},"VoiceContext":{"title":"VoiceContext","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"defaultEntry":{"type":"boolean","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","defaultEntry","createdAt","updatedAt"]},"VoiceExtension":{"title":"VoiceExtension","type":"object","properties":{"id":{"type":"integer","format":"int32"},"context":{"type":"string"},"exten":{"type":"string"},"priority":{"type":"string","default":"1"},"tag":{"type":"string","default":"--"},"app":{"type":"string","default":"NoOp"},"appdata":{"type":"string","maxLength":4096,"nullable":true,"default":""},"type":{"type":"string","enum":["inbound","outbound","internal","inbound-fax","outbound-fax","system","any"]},"description":{"type":"string","nullable":true},"interval":{"type":"string","default":"*,*,*,*"},"IntervalId":{"type":"integer","format":"int32","nullable":true},"isApp":{"type":"boolean","default":false},"appType":{"type":"string","nullable":true,"default":null},"callerID":{"type":"string","nullable":true},"record":{"type":"boolean","nullable":true,"default":false},"cutdigits":{"type":"integer","format":"int32","nullable":true},"recordingFormat":{"type":"string","nullable":true,"default":"wav"},"answer":{"type":"boolean","nullable":true,"default":true},"name":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"ChanSpyId":{"type":"integer","format":"int32","nullable":true},"VoiceContextId":{"type":"integer","format":"int32","nullable":true},"VoiceExtensionId":{"type":"integer","format":"int32","nullable":true},"FaxAccountId":{"type":"integer","format":"int32","nullable":true},"VoicePrefixId":{"type":"integer","format":"int32","nullable":true}},"required":["id","context","exten","priority","tag","app","appdata","type","interval","isApp","appType","record","recordingFormat","answer","createdAt","updatedAt"]},"VoiceMusicOnHold":{"title":"VoiceMusicOnHold","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"mode":{"type":"string","enum":["custom","files","mp3nb","quietmp3nb","quietmp3","mp3"],"nullable":true,"default":"files"},"directory":{"type":"string","nullable":true},"application":{"type":"string","nullable":true},"digit":{"type":"string","nullable":true},"sort":{"type":"string","nullable":true,"default":"alpha"},"format":{"type":"string","nullable":true},"stamp":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"defaultEntry":{"type":"boolean","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","mode","sort","defaultEntry","createdAt","updatedAt"]},"VoiceQueue":{"title":"VoiceQueue","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"type":{"type":"string","enum":["inbound","outbound"],"default":"inbound"},"musiconhold":{"type":"string","nullable":true,"default":"default"},"announce":{"type":"string","nullable":true,"default":""},"strategy":{"type":"string","enum":["rr","ringall","leastrecent","fewestcalls","random","rrmemory","linear","wrandom","rrordered"],"default":"ringall"},"servicelevel":{"type":"integer","format":"int32","nullable":true,"default":0},"context":{"type":"string","nullable":true,"default":null},"penaltymemberslimit":{"type":"integer","format":"int32","nullable":true},"timeout":{"type":"integer","format":"int32","nullable":true,"default":15},"retry":{"type":"integer","format":"int32","nullable":true,"default":2},"timeoutpriority":{"type":"string","nullable":true},"weight":{"type":"integer","format":"int32","nullable":true,"default":0},"wrapuptime":{"type":"integer","format":"int32","nullable":true,"default":0},"autofill":{"type":"string","enum":["yes","no"],"nullable":true,"default":"yes"},"autopause":{"type":"string","enum":["yes","no","all"],"nullable":true,"default":"no"},"autopausedelay":{"type":"integer","format":"int32","nullable":true},"autopausebusy":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"autopauseunavail":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"maxlen":{"type":"integer","format":"int32","nullable":true,"default":0},"setinterfacevar":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"setqueueentryvar":{"type":"string","enum":["yes","no"],"nullable":true},"setqueuevar":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"eventmemberstatus":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"membermacro":{"type":"string","nullable":true},"membergosub":{"type":"string","nullable":true},"announce_frequency":{"type":"integer","format":"int32","nullable":true,"default":0},"min_announce_frequency":{"type":"integer","format":"int32","nullable":true,"default":0},"periodic_announce_frequency":{"type":"integer","format":"int32","nullable":true,"default":0},"random_periodic_announce":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"relative_periodic_announce":{"type":"string","enum":["yes","no"],"nullable":true,"default":"yes"},"announce_holdtime":{"type":"string","enum":["yes","no","once"],"nullable":true,"default":"no"},"announce_position":{"type":"string","nullable":true,"default":"no"},"announce_to_first_user":{"type":"string","enum":["yes","no"],"nullable":true},"announce_position_limit":{"type":"integer","format":"int32","nullable":true},"announce_round_seconds":{"type":"string","enum":["0","5","10","15","20","30"],"nullable":true,"default":"0"},"monitor_format":{"type":"string","nullable":true,"default":""},"monitor_type":{"type":"string","nullable":true},"queue_youarenext":{"type":"string","nullable":true,"default":null},"queue_thereare":{"type":"string","nullable":true,"default":null},"queue_callswaiting":{"type":"string","nullable":true,"default":null},"queue_holdtime":{"type":"string","nullable":true,"default":null},"queue_minute":{"type":"string","nullable":true,"default":null},"queue_minutes":{"type":"string","nullable":true,"default":null},"queue_seconds":{"type":"string","nullable":true,"default":null},"queue_thankyou":{"type":"string","nullable":true,"default":null},"queue_reporthold":{"type":"string","nullable":true},"queue_quantity1":{"type":"string","nullable":true},"queue_quantity2":{"type":"string","nullable":true},"queue_periodic_announce":{"type":"string","nullable":true},"queue_less_than":{"type":"string","nullable":true},"periodic_announce":{"type":"string","nullable":true},"joinempty":{"type":"string","nullable":true,"default":"yes"},"leavewhenempty":{"type":"string","nullable":true,"default":"no"},"reportholdtime":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"ringinuse":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"memberdelay":{"type":"integer","format":"int32","nullable":true,"default":0},"timeoutrestart":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"defaultrule":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"acw":{"type":"boolean","nullable":true,"default":0},"acwTimeout":{"type":"integer","format":"int32","nullable":true,"default":10},"dialActive":{"type":"boolean","nullable":true,"default":0},"dialMethod":{"type":"string","enum":["preview","progressive","power","predictive","booked"],"nullable":true,"default":"progressive"},"dialLimitChannel":{"type":"integer","format":"int32","nullable":true,"default":0},"dialLimitQueue":{"type":"integer","format":"int32","nullable":true,"default":0},"dialPowerLevel":{"type":"number","format":"float","nullable":true,"default":1},"dialPredictiveOptimization":{"type":"string","enum":["agentBusyFactor","dropRate"],"nullable":true,"default":"dropRate"},"dialPredictiveOptimizationPercentage":{"type":"number","format":"float","nullable":true,"default":3},"dialPredictiveInterval":{"type":"integer","format":"int32","nullable":true,"default":10},"dialOriginateCallerIdName":{"type":"string","nullable":true},"dialOriginateCallerIdNumber":{"type":"string","nullable":true},"dialOriginateTimeout":{"type":"integer","format":"int32","nullable":true,"default":30},"dialQueueOptions":{"type":"string","nullable":true,"default":"tTxX"},"dialQueueTimeout":{"type":"integer","format":"int32","nullable":true,"default":3},"dialQueueProject":{"type":"string","nullable":true},"dialCongestionMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialCongestionRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialBusyMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialBusyRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialNoAnswerMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialNoAnswerRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialGlobalMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":4},"dialTimezone":{"type":"string","nullable":true,"default":null},"dialGlobalInterval":{"type":"string","nullable":true,"default":"07:00-22:00,*,*,*"},"dialPrefix":{"type":"string","nullable":true,"default":null},"dialCheckDuplicateType":{"type":"string","enum":["always","never","onlyIfOpen"],"nullable":true,"default":"always"},"dialAMDActive":{"type":"boolean","nullable":true,"default":0},"dialAMDInitialSilence":{"type":"integer","format":"int32","nullable":true,"default":2500},"dialAMDGreeting":{"type":"integer","format":"int32","nullable":true,"default":1500},"dialAMDAfterGreetingSilence":{"type":"integer","format":"int32","nullable":true,"default":800},"dialAMDTotalAnalysisTime":{"type":"integer","format":"int32","nullable":true,"default":5000},"dialAMDMinWordLength":{"type":"integer","format":"int32","nullable":true,"default":100},"dialAMDBetweenWordsSilence":{"type":"integer","format":"int32","nullable":true,"default":50},"dialAMDMaximumNumberOfWords":{"type":"integer","format":"int32","nullable":true,"default":3},"dialAMDSilenceThreshold":{"type":"integer","format":"int32","nullable":true,"default":256},"dialAMDMaximumWordLength":{"type":"integer","format":"int32","nullable":true,"default":5000},"dialRecallMeTimeout":{"type":"integer","format":"int32","nullable":true,"default":30},"dialRecallInQueue":{"type":"boolean","nullable":true,"default":0},"dialOrderByScheduledAt":{"type":"string","enum":["DESC","ASC"],"nullable":true,"default":"DESC"},"dialQueueProject2":{"type":"string","nullable":true},"dialAgiAfterHangupClient":{"type":"boolean","nullable":true,"default":false},"dialAgiAfterHangupAgent":{"type":"boolean","nullable":true,"default":false},"dialRandomLastDigitCallerIdNumber":{"type":"integer","format":"int32","nullable":true,"default":0},"dialCutDigit":{"type":"integer","format":"int32","nullable":true,"default":0},"dialNoSuchNumberMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialNoSuchNumberRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialDropMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialDropRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialAbandonedMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialAbandonedRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialMachineMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialMachineRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialAgentRejectMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialAgentRejectRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"mandatoryDispositionPauseId":{"type":"integer","format":"int32","nullable":true},"mandatoryDisposition":{"type":"boolean","nullable":true,"default":false},"dialPredictiveIntervalMaxThreshold":{"type":"integer","format":"int32","nullable":true,"default":20},"dialPredictiveIntervalMinThreshold":{"type":"integer","format":"int32","nullable":true,"default":10},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"TrunkId":{"type":"integer","format":"int32","nullable":true},"TrunkBackupId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","type","musiconhold","announce","strategy","servicelevel","context","timeout","retry","weight","wrapuptime","autofill","autopause","autopausebusy","autopauseunavail","maxlen","setinterfacevar","setqueuevar","eventmemberstatus","announce_frequency","min_announce_frequency","periodic_announce_frequency","random_periodic_announce","relative_periodic_announce","announce_holdtime","announce_position","announce_round_seconds","monitor_format","queue_youarenext","queue_thereare","queue_callswaiting","queue_holdtime","queue_minute","queue_minutes","queue_seconds","queue_thankyou","joinempty","leavewhenempty","reportholdtime","ringinuse","memberdelay","timeoutrestart","acw","acwTimeout","dialActive","dialMethod","dialLimitChannel","dialLimitQueue","dialPowerLevel","dialPredictiveOptimization","dialPredictiveOptimizationPercentage","dialPredictiveInterval","dialOriginateTimeout","dialQueueOptions","dialQueueTimeout","dialCongestionMaxRetry","dialCongestionRetryFrequency","dialBusyMaxRetry","dialBusyRetryFrequency","dialNoAnswerMaxRetry","dialNoAnswerRetryFrequency","dialGlobalMaxRetry","dialTimezone","dialGlobalInterval","dialPrefix","dialCheckDuplicateType","dialAMDActive","dialAMDInitialSilence","dialAMDGreeting","dialAMDAfterGreetingSilence","dialAMDTotalAnalysisTime","dialAMDMinWordLength","dialAMDBetweenWordsSilence","dialAMDMaximumNumberOfWords","dialAMDSilenceThreshold","dialAMDMaximumWordLength","dialRecallMeTimeout","dialRecallInQueue","dialOrderByScheduledAt","dialAgiAfterHangupClient","dialAgiAfterHangupAgent","dialRandomLastDigitCallerIdNumber","dialCutDigit","dialNoSuchNumberMaxRetry","dialNoSuchNumberRetryFrequency","dialDropMaxRetry","dialDropRetryFrequency","dialAbandonedMaxRetry","dialAbandonedRetryFrequency","dialMachineMaxRetry","dialMachineRetryFrequency","dialAgentRejectMaxRetry","dialAgentRejectRetryFrequency","mandatoryDisposition","dialPredictiveIntervalMaxThreshold","dialPredictiveIntervalMinThreshold","createdAt","updatedAt"]},"VoiceRecording":{"title":"VoiceRecording","type":"object","properties":{"id":{"type":"integer","format":"int32"},"format":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"uniqueid":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"connectedlinenum":{"type":"string","nullable":true},"connectedlinename":{"type":"string","nullable":true},"accountcode":{"type":"string","nullable":true},"context":{"type":"string","nullable":true},"exten":{"type":"string","nullable":true},"value":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"rating":{"type":"integer","format":"int32","nullable":true},"queue":{"type":"string","nullable":true},"userDisposition":{"type":"string","nullable":true},"userSecondDisposition":{"type":"string","nullable":true},"userThirdDisposition":{"type":"string","nullable":true},"location":{"type":"string","nullable":true},"transcribeName":{"type":"string","nullable":true},"transcribeStatus":{"type":"string","nullable":true,"default":"NEW"},"fileUri":{"type":"string","nullable":true},"fileText":{"type":"string","nullable":true},"failureReason":{"type":"string","nullable":true},"sentiment":{"type":"string","nullable":true},"sPositive":{"type":"number","format":"float","nullable":true},"sNegative":{"type":"number","format":"float","nullable":true},"sNeutral":{"type":"number","format":"float","nullable":true},"sMixed":{"type":"number","format":"float","nullable":true},"tempSentiment":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time","nullable":true},"updatedAt":{"type":"string","format":"date-time","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true}},"required":["id","transcribeStatus","tempSentiment"]},"ScreenRecording":{"title":"ScreenRecording","type":"object","properties":{"id":{"type":"integer","format":"int32"},"format":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"interactionid":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"value":{"type":"string","nullable":true},"rating":{"type":"integer","format":"int32","nullable":true},"duration":{"type":"integer","format":"int32","nullable":true},"startedAt":{"type":"string","format":"date-time","nullable":true},"closedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time","nullable":true},"updatedAt":{"type":"string","format":"date-time","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true}},"required":["id"]},"VoiceMail":{"title":"VoiceMail","type":"object","properties":{"id":{"type":"integer","format":"int32"},"customer_id":{"type":"string","nullable":true},"context":{"type":"string","nullable":true,"default":"from-voicemail"},"mailbox":{"type":"string","default":""},"password":{"type":"string","nullable":true},"fullname":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"pager":{"type":"string","nullable":true},"tz":{"type":"string","nullable":true,"default":"central"},"attach":{"type":"string","enum":["yes","no"],"default":"yes"},"saycid":{"type":"string","enum":["yes","no"],"default":"yes"},"dialout":{"type":"string","nullable":true},"callback":{"type":"string","nullable":true},"review":{"type":"string","enum":["yes","no"],"default":"no"},"operator":{"type":"string","enum":["yes","no"],"default":"no"},"envelope":{"type":"string","enum":["yes","no"],"default":"no"},"sayduration":{"type":"string","enum":["yes","no"],"default":"no"},"saydurationm":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"default":1},"sendvoicemail":{"type":"string","enum":["yes","no"],"default":"no"},"delete":{"type":"string","enum":["yes","no"],"default":"no"},"nextaftercmd":{"type":"string","enum":["yes","no"],"default":"yes"},"forcename":{"type":"string","enum":["yes","no"],"default":"no"},"forcegreetings":{"type":"string","enum":["yes","no"],"default":"no"},"hidefromdir":{"type":"string","enum":["yes","no"],"default":"yes"},"stamp":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"emailsubject":{"type":"string","nullable":true},"emailbody":{"type":"string","nullable":true},"maxsecs":{"type":"integer","format":"int32","default":180},"maxmsg":{"type":"integer","format":"int32","default":100},"name":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true}},"required":["id","context","mailbox","tz","attach","saycid","review","operator","envelope","sayduration","saydurationm","sendvoicemail","delete","nextaftercmd","forcename","forcegreetings","hidefromdir","maxsecs","maxmsg","createdAt","updatedAt"]},"VoiceMailMessage":{"title":"VoiceMailMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"msgnum":{"type":"integer","format":"int32","default":0},"dir":{"type":"string","nullable":true,"default":""},"context":{"type":"string","nullable":true,"default":""},"macrocontext":{"type":"string","nullable":true,"default":""},"callerid":{"type":"string","nullable":true,"default":""},"origtime":{"type":"string","nullable":true,"default":""},"duration":{"type":"string","nullable":true,"default":""},"mailboxuser":{"type":"string","nullable":true,"default":""},"mailboxcontext":{"type":"string","nullable":true,"default":""},"recording":{"type":"string","format":"byte","nullable":true,"default":null},"flag":{"type":"string","nullable":true,"default":""},"msg_id":{"type":"string","nullable":true,"default":""},"stamp":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}]}},"required":["id","msgnum","dir","context","macrocontext","callerid","origtime","duration","mailboxuser","mailboxcontext","recording","flag","msg_id","stamp"]},"VoiceCallReport":{"title":"VoiceCallReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string","nullable":true},"type":{"type":"string","enum":["inbound","internal","outbound","inbound-fax","outbound-fax","dialer"],"nullable":true},"tag":{"type":"string","nullable":true},"accountcode":{"type":"string","nullable":true},"source":{"type":"string","nullable":true},"destination":{"type":"string","nullable":true},"destinationcontext":{"type":"string","nullable":true},"callerid":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"destinationchannel":{"type":"string","nullable":true},"lastapplication":{"type":"string","nullable":true},"lastdata":{"type":"string","nullable":true},"starttime":{"type":"string","format":"date-time","nullable":true},"systemanswertime":{"type":"string","format":"date-time","nullable":true},"answertime":{"type":"string","format":"date-time","nullable":true},"endtime":{"type":"string","format":"date-time","nullable":true},"duration":{"type":"integer","format":"int32","nullable":true},"billableseconds":{"type":"integer","format":"int32","nullable":true},"mohtime":{"type":"integer","format":"int32","nullable":true,"default":0},"disposition":{"type":"string","nullable":true},"amaflags":{"type":"string","nullable":true},"userfield":{"type":"string","nullable":true},"userDisposition":{"type":"string","nullable":true},"userSecondDisposition":{"type":"string","nullable":true},"userThirdDisposition":{"type":"string","nullable":true},"note":{"type":"string","nullable":true},"prefix":{"type":"string","nullable":true},"routeid":{"type":"integer","format":"int32","nullable":true},"sipcallid":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","mohtime","createdAt","updatedAt"]},"VoiceDialReport":{"title":"VoiceDialReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"privilege":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"channelstate":{"type":"integer","format":"int32","nullable":true},"channelstatedesc":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"connectedlinenum":{"type":"string","nullable":true},"connectedlinename":{"type":"string","nullable":true},"language":{"type":"string","nullable":true},"accountcode":{"type":"string","nullable":true},"context":{"type":"string","nullable":true},"exten":{"type":"string","nullable":true},"priority":{"type":"integer","format":"int32","nullable":true},"uniqueid":{"type":"string","nullable":true},"linkedid":{"type":"string","nullable":true},"destchannel":{"type":"string","nullable":true},"destchannelstate":{"type":"integer","format":"int32","nullable":true},"destchannelstatedesc":{"type":"string","nullable":true},"destcalleridnum":{"type":"string","nullable":true},"destcalleridname":{"type":"string","nullable":true},"destconnectedlinenum":{"type":"string","nullable":true},"destconnectedlinename":{"type":"string","nullable":true},"destlanguage":{"type":"string","nullable":true},"destaccountcode":{"type":"string","nullable":true},"destcontext":{"type":"string","nullable":true},"destexten":{"type":"string","nullable":true},"destpriority":{"type":"integer","format":"int32","nullable":true},"destuniqueid":{"type":"string","nullable":true},"destlinkedid":{"type":"string","nullable":true},"dialstring":{"type":"string","nullable":true},"dialstatus":{"type":"string","nullable":true},"starttime":{"type":"string","format":"date-time","nullable":true},"answertime":{"type":"string","format":"date-time","nullable":true},"endtime":{"type":"string","format":"date-time","nullable":true},"lastevent":{"type":"string","nullable":true},"routeId":{"type":"integer","format":"int32","nullable":true},"duration":{"type":"integer","format":"int32","nullable":true},"holdtime":{"type":"integer","format":"int32","nullable":true},"billableseconds":{"type":"integer","format":"int32","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"VoiceAgentReport":{"title":"VoiceAgentReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","nullable":true},"uniqueid":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"queue":{"type":"string","nullable":true},"interface":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"agentcalledAt":{"type":"string","format":"date-time","nullable":true},"agentconnectAt":{"type":"string","format":"date-time","nullable":true},"agentcompleteAt":{"type":"string","format":"date-time","nullable":true},"agentringnoanswerAt":{"type":"string","format":"date-time","nullable":true},"agentdumpAt":{"type":"string","format":"date-time","nullable":true},"holdtime":{"type":"integer","format":"int32","nullable":true},"agentcomplete":{"type":"boolean","nullable":true,"default":false},"agentringnoanswer":{"type":"boolean","nullable":true,"default":false},"agentdump":{"type":"boolean","nullable":true,"default":false},"talktime":{"type":"integer","format":"int32","nullable":true},"agentacw":{"type":"boolean","nullable":true,"default":false},"acwtime":{"type":"integer","format":"int32","nullable":true},"reason":{"type":"string","nullable":true},"lastevent":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"channelstate":{"type":"integer","format":"int32","nullable":true},"channelstatedesc":{"type":"string","nullable":true},"connectedlinenum":{"type":"string","nullable":true},"connectedlinename":{"type":"string","nullable":true},"language":{"type":"string","nullable":true},"accountcode":{"type":"string","nullable":true},"context":{"type":"string","nullable":true},"exten":{"type":"string","nullable":true},"priority":{"type":"string","nullable":true},"destchannel":{"type":"string","nullable":true},"destchannelstate":{"type":"integer","format":"int32","nullable":true},"destchannelstatedesc":{"type":"string","nullable":true},"destcalleridnum":{"type":"string","nullable":true},"destcalleridname":{"type":"string","nullable":true},"destconnectedlinenum":{"type":"string","nullable":true},"destconnectedlinename":{"type":"string","nullable":true},"destlanguage":{"type":"string","nullable":true},"destaccountcode":{"type":"string","nullable":true},"destcontext":{"type":"string","nullable":true},"destexten":{"type":"string","nullable":true},"destpriority":{"type":"string","nullable":true},"destuniqueid":{"type":"string","nullable":true},"answeredelsewheredestinationuniqueid":{"type":"string","nullable":true},"answeredelsewheremembername":{"type":"string","nullable":true},"transfer":{"type":"boolean","nullable":true,"default":false},"transfertype":{"type":"string","nullable":true},"transferexten":{"type":"string","nullable":true},"transferuniqueid":{"type":"string","nullable":true},"agententerreason":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","agentcomplete","agentringnoanswer","agentdump","agentacw","transfer","agententerreason","createdAt","updatedAt"]},"VoiceQueueReport":{"title":"VoiceQueueReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","nullable":true},"uniqueid":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"queue":{"type":"string","nullable":true},"queuecallerjoinAt":{"type":"string","format":"date-time","nullable":true},"queuecallerleaveAt":{"type":"string","format":"date-time","nullable":true},"position":{"type":"integer","format":"int32","nullable":true},"count":{"type":"integer","format":"int32","nullable":true},"queuecallerabandon":{"type":"boolean","nullable":true,"default":false},"queuecallerabandonAt":{"type":"string","format":"date-time","nullable":true},"queuecallercomplete":{"type":"boolean","nullable":true,"default":false},"queuecallercompleteAt":{"type":"string","format":"date-time","nullable":true},"queuecallerexit":{"type":"boolean","nullable":true,"default":false},"queuecallerexitAt":{"type":"string","format":"date-time","nullable":true},"queuecallerexitreason":{"type":"string","nullable":true},"originalposition":{"type":"integer","format":"int32","nullable":true},"channel":{"type":"string","nullable":true},"connectedlinenum":{"type":"string","nullable":true},"connectedlinename":{"type":"string","nullable":true},"accountcode":{"type":"string","nullable":true},"context":{"type":"string","nullable":true},"exten":{"type":"string","nullable":true},"priority":{"type":"string","nullable":true},"holdtime":{"type":"integer","format":"int32","nullable":true},"mohtime":{"type":"integer","format":"int32","nullable":true,"default":0},"assigned":{"type":"boolean","nullable":true,"default":false},"lastAssignedTo":{"type":"string","nullable":true},"transfer":{"type":"boolean","nullable":true,"default":false},"transfertype":{"type":"string","nullable":true},"transferexten":{"type":"string","nullable":true},"transferuniqueid":{"type":"string","nullable":true},"disposition":{"type":"string","nullable":true},"secondDisposition":{"type":"string","nullable":true},"thirdDisposition":{"type":"string","nullable":true},"queuecallerenterreason":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","queuecallerabandon","queuecallercomplete","queuecallerexit","mohtime","assigned","transfer","queuecallerenterreason","createdAt","updatedAt"]},"MemberReport":{"title":"MemberReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"channel":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"interface":{"type":"string","nullable":true},"type":{"type":"string","nullable":true,"default":"DEFAULT PAUSE"},"duration":{"type":"integer","format":"int32","nullable":true},"enterAt":{"type":"string","format":"date-time","nullable":true},"exitAt":{"type":"string","format":"date-time","nullable":true},"data1":{"type":"string","nullable":true},"data2":{"type":"string","nullable":true},"data3":{"type":"string","nullable":true},"data4":{"type":"string","nullable":true},"data5":{"type":"string","nullable":true},"role":{"type":"string","nullable":true},"internal":{"type":"integer","format":"int32","nullable":true},"uniqueid":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","type","createdAt","updatedAt"]},"Trunk":{"title":"Trunk","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"type":{"type":"string","enum":["friend","user","peer"],"default":"friend"},"context":{"type":"string","default":"from-voip-provider"},"callingpres":{"type":"string","enum":["ALLOWED_NOT_SCREENED","ALLOWED_PASSED_SCREEN","ALLOWED_FAILED_SCREEN","ALLOWED","PROHIB_NOT_SCREENED","PROHIB_PASSED_SCREEN","PROHIB_FAILED_SCREEN","PROHIB"],"nullable":true},"deny":{"type":"string","nullable":true},"permit":{"type":"string","nullable":true},"secret":{"type":"string","nullable":true},"md5secret":{"type":"string","nullable":true},"remotesecret":{"type":"string","nullable":true},"transport":{"type":"string","nullable":true,"default":"udp"},"dtmfmode":{"type":"string","enum":["rfc2833","info","shortinfo","inband","auto"],"nullable":true,"default":"rfc2833"},"directmedia":{"type":"string","enum":["yes","no","nonat","update","outgoing"],"nullable":true,"default":"no"},"directrtpsetup":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"directmediapermit":{"type":"string","nullable":true},"directmediadeny":{"type":"string","nullable":true},"nat":{"type":"string","nullable":true,"default":"force_rport,comedia"},"callgroup":{"type":"string","nullable":true},"namedcallgroup":{"type":"string","nullable":true},"pickupgroup":{"type":"string","nullable":true},"namedpickupgroup":{"type":"string","nullable":true},"language":{"type":"string","nullable":true,"default":"en"},"tonezone":{"type":"string","nullable":true},"disallow":{"type":"string","nullable":true,"default":"all"},"allow":{"type":"string","default":"ulaw;alaw;gsm"},"autoframing":{"type":"string","enum":["yes","no"],"nullable":true},"insecure":{"type":"string","nullable":true,"default":"port,invite"},"trustrpid":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"trust_id_outbound":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"progressinband":{"type":"string","enum":["yes","no","never"],"nullable":true},"promiscredir":{"type":"string","enum":["yes","no"],"nullable":true},"useclientcode":{"type":"string","enum":["yes","no"],"nullable":true},"accountcode":{"type":"integer","format":"int32","nullable":true},"setvar":{"type":"string","nullable":true},"callerid":{"type":"string","nullable":true,"default":"\"\" <>"},"amaflags":{"type":"string","nullable":true},"callcounter":{"type":"string","enum":["yes","no"],"nullable":true,"default":"yes"},"busylevel":{"type":"integer","format":"int32","nullable":true},"allowoverlap":{"type":"string","enum":["yes","no"],"nullable":true},"allowsubscribe":{"type":"string","enum":["yes","no"],"nullable":true},"allowtransfer":{"type":"string","enum":["yes","no"],"nullable":true},"ignoresdpversion":{"type":"string","enum":["yes","no"],"nullable":true},"subscribecontext":{"type":"string","nullable":true},"template":{"type":"string","nullable":true},"videosupport":{"type":"string","enum":["yes","no","always"],"nullable":true,"default":"no"},"maxcallbitrate":{"type":"integer","format":"int32","nullable":true},"rfc2833compensate":{"type":"string","enum":["yes","no"],"nullable":true},"mailbox":{"type":"string","nullable":true},"session_timers":{"type":"string","enum":["accept","refuse","originate"],"nullable":true},"session_expires":{"type":"integer","format":"int32","nullable":true},"session_minse":{"type":"integer","format":"int32","nullable":true},"session_refresher":{"type":"string","enum":["uac","uas"],"nullable":true,"default":"uas"},"t38pt_usertpsource":{"type":"string","nullable":true},"regexten":{"type":"string","nullable":true},"fromdomain":{"type":"string","nullable":true},"fromuser":{"type":"string","nullable":true},"port":{"type":"integer","format":"int32","nullable":true},"qualify":{"type":"string","enum":["yes","no"],"nullable":true,"default":"yes"},"keepalive":{"type":"integer","format":"int32","nullable":true},"defaultip":{"type":"string","nullable":true},"defaultuser":{"type":"string","nullable":true},"rtptimeout":{"type":"integer","format":"int32","nullable":true},"rtpholdtimeout":{"type":"integer","format":"int32","nullable":true},"rtpkeepalive":{"type":"integer","format":"int32","nullable":true},"sendrpid":{"type":"string","enum":["yes","no","pai"],"nullable":true,"default":"no"},"outboundproxy":{"type":"string","nullable":true},"callbackextension":{"type":"string","nullable":true},"timert1":{"type":"integer","format":"int32","nullable":true},"timerb":{"type":"integer","format":"int32","nullable":true},"qualifyfreq":{"type":"integer","format":"int32","nullable":true},"contactpermit":{"type":"string","nullable":true},"contactdeny":{"type":"string","nullable":true},"contactacl":{"type":"string","nullable":true},"unsolicited_mailbox":{"type":"string","nullable":true},"use_q850_reason":{"type":"string","nullable":true},"maxforwards":{"type":"integer","format":"int32","nullable":true},"encryption":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"avpf":{"type":"string","enum":["yes","no"],"nullable":true},"force_avp":{"type":"string","enum":["yes","no"],"nullable":true},"icesupport":{"type":"string","enum":["yes","no"],"nullable":true},"dtlsenable":{"type":"string","enum":["yes","no"],"nullable":true},"dtlsverify":{"type":"string","enum":["yes","no","fingerprint","certificate"],"nullable":true},"dtlsrekey":{"type":"integer","format":"int32","nullable":true},"dtlscertfile":{"type":"string","nullable":true},"dtlsprivatekey":{"type":"string","nullable":true},"dtlscipher":{"type":"string","nullable":true},"dtlscafile":{"type":"string","nullable":true},"dtlscapath":{"type":"string","nullable":true},"dtlssetup":{"type":"string","enum":["active","passive","actpass"],"nullable":true},"dtlsfingerprint":{"type":"string","nullable":true},"usereqphone":{"type":"string","enum":["yes","no"],"nullable":true,"default":"no"},"recordonfeature":{"type":"string","nullable":true},"recordofffeature":{"type":"string","nullable":true},"call_limit":{"type":"integer","format":"int32","nullable":true,"default":1000},"registertrying":{"type":"string","enum":["yes","no"],"nullable":true},"subscribemwi":{"type":"string","enum":["yes","no"],"nullable":true},"vmexten":{"type":"string","nullable":true},"mohinterpret":{"type":"string","nullable":true},"mohsuggest":{"type":"string","nullable":true},"parkinglot":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"host":{"type":"string","nullable":true,"default":"dynamic"},"canreinvite":{"type":"string","enum":["yes","no","nonat","update","update,nonat"],"nullable":true,"default":"no"},"registry":{"type":"string","nullable":true},"otherFields":{"type":"string","nullable":true},"active":{"type":"boolean","default":true},"t38pt_udptl":{"type":"string","nullable":true,"default":"no"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","type","context","transport","dtmfmode","directmedia","directrtpsetup","nat","language","disallow","allow","insecure","trustrpid","trust_id_outbound","callerid","callcounter","videosupport","session_refresher","qualify","sendrpid","encryption","usereqphone","call_limit","host","canreinvite","active","t38pt_udptl","createdAt","updatedAt"]},"VoiceTransferReport":{"title":"VoiceTransferReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["blind","attended"],"nullable":true},"result":{"type":"string","nullable":true},"transfererchannel":{"type":"string","nullable":true},"transferercalleridnum":{"type":"string","nullable":true},"transferercalleridname":{"type":"string","nullable":true},"transfererconnectedlinenum":{"type":"string","nullable":true},"transfererconnectedlinename":{"type":"string","nullable":true},"transfereraccountcode":{"type":"string","nullable":true},"transferercontext":{"type":"string","nullable":true},"transfererexten":{"type":"string","nullable":true},"transfererlinkedid":{"type":"string","nullable":true},"transfereechannel":{"type":"string","nullable":true},"transfereecalleridnum":{"type":"string","nullable":true},"transfereecalleridname":{"type":"string","nullable":true},"transfereeconnectedlinenum":{"type":"string","nullable":true},"transfereeconnectedlinename":{"type":"string","nullable":true},"transfereeaccountcode":{"type":"string","nullable":true},"transfereecontext":{"type":"string","nullable":true},"transfereeexten":{"type":"string","nullable":true},"transfereelinkedid":{"type":"string","nullable":true},"isexternal":{"type":"string","enum":["Yes","No"],"nullable":true},"context":{"type":"string","nullable":true},"extension":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"UserVoiceQueueRt":{"title":"UserVoiceQueueRt","type":"object","properties":{"uniqueid":{"type":"integer","format":"int32","nullable":true},"membername":{"type":"string"},"UserId":{"type":"integer","format":"int32"},"queue_name":{"type":"string"},"VoiceQueueId":{"type":"integer","format":"int32"},"interface":{"type":"string"},"penalty":{"type":"integer","format":"int32","nullable":true,"default":0},"paused":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["membername","UserId","queue_name","VoiceQueueId","interface","penalty","paused","createdAt","updatedAt"]},"UserVoiceQueue":{"title":"UserVoiceQueue","type":"object","properties":{"penalty":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"VoiceQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["penalty","createdAt","updatedAt"]},"UserChatQueue":{"title":"UserChatQueue","type":"object","properties":{"penalty":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"ChatQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["penalty","createdAt","updatedAt"]},"UserMailQueue":{"title":"UserMailQueue","type":"object","properties":{"penalty":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"MailQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["penalty","createdAt","updatedAt"]},"UserFaxQueue":{"title":"UserFaxQueue","type":"object","properties":{"penalty":{"type":"integer","format":"int32","nullable":true,"default":0},"assigned":{"type":"integer","format":"int32","nullable":true,"default":0},"queue":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"FaxQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["penalty","assigned","createdAt","updatedAt"]},"UserSmsQueue":{"title":"UserSmsQueue","type":"object","properties":{"penalty":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"SmsQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["penalty","createdAt","updatedAt"]},"UserOpenchannelQueue":{"title":"UserOpenchannelQueue","type":"object","properties":{"penalty":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"OpenchannelQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["penalty","createdAt","updatedAt"]},"UserWhatsappQueue":{"title":"UserWhatsappQueue","type":"object","properties":{"penalty":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"WhatsappQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["penalty","createdAt","updatedAt"]},"MailServerIn":{"title":"MailServerIn","type":"object","properties":{"id":{"type":"integer","format":"int32"},"description":{"type":"string","nullable":true},"host":{"type":"string","nullable":true},"authentication":{"type":"boolean","nullable":true,"default":true},"user":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"port":{"type":"integer","format":"int32","nullable":true},"tls":{"type":"boolean","nullable":true,"default":true},"mailbox":{"type":"string","nullable":true,"default":"INBOX"},"connTimeout":{"type":"integer","format":"int32","nullable":true,"default":10},"authTimeout":{"type":"integer","format":"int32","nullable":true,"default":5},"service":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailAccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","authentication","tls","mailbox","connTimeout","authTimeout","createdAt","updatedAt"]},"MailServerOut":{"title":"MailServerOut","type":"object","properties":{"id":{"type":"integer","format":"int32"},"description":{"type":"string","nullable":true},"host":{"type":"string","nullable":true},"user":{"type":"string","nullable":true},"pass":{"type":"string","nullable":true},"port":{"type":"integer","format":"int32","nullable":true},"secure":{"type":"boolean","nullable":true,"default":false},"service":{"type":"string","nullable":true},"authentication":{"type":"boolean","nullable":true,"default":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailAccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","secure","authentication","createdAt","updatedAt"]},"MailAccount":{"title":"MailAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"description":{"type":"string","nullable":true},"name":{"type":"string"},"service":{"type":"boolean","nullable":true,"default":false},"email":{"type":"string","nullable":true},"active":{"type":"boolean","nullable":true,"default":true},"key":{"type":"string"},"template":{"type":"string","nullable":true},"markAsUnread":{"type":"boolean","nullable":true,"default":false},"fontFamily":{"type":"string","default":"Arial,Helvetica,sans-serif"},"fontSize":{"type":"integer","format":"int32","nullable":true,"default":13},"notificationTemplate":{"type":"string","nullable":true},"notificationSound":{"type":"boolean","nullable":true,"default":true},"notificationShake":{"type":"boolean","nullable":true,"default":false},"waitForTheAssignedAgent":{"type":"integer","format":"int32","nullable":true,"default":10},"queueTransfer":{"type":"boolean","nullable":true,"default":false},"queueTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"agentTransfer":{"type":"boolean","nullable":true,"default":false},"agentTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"mandatoryDispositionPauseId":{"type":"integer","format":"int32","nullable":true,"default":null},"mandatoryDisposition":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ListId":{"type":"integer","format":"int32","nullable":true},"TemplateId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","service","active","key","markAsUnread","fontFamily","fontSize","notificationTemplate","notificationSound","notificationShake","waitForTheAssignedAgent","queueTransfer","queueTransferTimeout","agentTransfer","agentTransferTimeout","mandatoryDispositionPauseId","mandatoryDisposition","createdAt","updatedAt"]},"MailQueue":{"title":"MailQueue","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"timeout":{"type":"integer","format":"int32","nullable":true},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"MailSubstatus":{"title":"MailSubstatus","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"MailInteraction":{"title":"MailInteraction","type":"object","properties":{"id":{"type":"integer","format":"int32"},"closed":{"type":"boolean","nullable":true,"default":false},"closedAt":{"type":"string","format":"date-time","nullable":true},"disposition":{"type":"string","nullable":true},"secondDisposition":{"type":"string","nullable":true},"thirdDisposition":{"type":"string","nullable":true},"note":{"type":"string","nullable":true},"inReplyTo":{"type":"string","maxLength":510,"nullable":true},"to":{"type":"string","nullable":true},"cc":{"type":"string","nullable":true},"subject":{"type":"string","nullable":true},"attach":{"type":"boolean","nullable":true,"default":false},"read1stAt":{"type":"string","format":"date-time","nullable":true},"substatus":{"type":"string","maxLength":60,"nullable":true},"substatusAt":{"type":"string","format":"date-time","nullable":true},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string","format":"date-time","nullable":true},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgBody":{"type":"string","nullable":true},"lastMsgText":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"MailAccountId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","closed","attach","firstMsgDirection","lastMsgDirection","createdAt","updatedAt"]},"MailMessage":{"title":"MailMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string"},"plainBody":{"type":"string","nullable":true},"read":{"type":"boolean","nullable":true,"default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"messageId":{"type":"string","maxLength":510,"nullable":true},"from":{"type":"string","nullable":true},"to":{"type":"string","nullable":true},"cc":{"type":"string","nullable":true},"bcc":{"type":"string","nullable":true},"subject":{"type":"string","nullable":true},"sentAt":{"type":"string","format":"date-time","nullable":true},"attach":{"type":"integer","format":"int32","nullable":true,"default":0},"secret":{"type":"boolean","nullable":true,"default":false},"readAt":{"type":"string","format":"date-time","nullable":true},"originTo":{"type":"string","nullable":true},"originCc":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailAccountId":{"type":"integer","format":"int32","nullable":true},"MailInteractionId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","body","read","direction","attach","secret","createdAt","updatedAt"]},"MailApplication":{"title":"MailApplication","type":"object","properties":{"id":{"type":"integer","format":"int32"},"priority":{"type":"integer","format":"int32"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"interval":{"type":"string","nullable":true,"default":"*,*,*,*"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailAccountId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"MailQueueId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true},"TagId":{"type":"integer","format":"int32","nullable":true}},"required":["id","priority","app","interval","createdAt","updatedAt"]},"MailQueueReport":{"title":"MailQueueReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"from":{"type":"string","nullable":true},"joinAt":{"type":"string","format":"date-time","nullable":true},"leaveAt":{"type":"string","format":"date-time","nullable":true},"acceptAt":{"type":"string","format":"date-time","nullable":true},"exitAt":{"type":"string","format":"date-time","nullable":true},"reason":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailAccountId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"MailInteractionId":{"type":"integer","format":"int32","nullable":true},"MailMessageId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"MailQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","createdAt","updatedAt"]},"Dashboard":{"title":"Dashboard","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"DashboardItem":{"title":"DashboardItem","type":"object","properties":{"id":{"type":"integer","format":"int32"},"title":{"type":"string"},"type":{"type":"string","maxLength":20},"attrs":{"type":"string","nullable":true},"sizeX":{"type":"integer","format":"int32","default":1},"sizeY":{"type":"integer","format":"int32","default":1},"row":{"type":"integer","format":"int32","nullable":true},"col":{"type":"integer","format":"int32","nullable":true},"background":{"type":"string","default":"#ffffff"},"foreground":{"type":"string","default":"#2196f3"},"link":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"DashboardId":{"type":"integer","format":"int32","nullable":true}},"required":["id","title","type","sizeX","sizeY","background","foreground","createdAt","updatedAt"]},"FaxAccount":{"title":"FaxAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"ecm":{"type":"string","enum":["yes","no"],"nullable":true,"default":"yes"},"headerinfo":{"type":"string","nullable":true,"default":"xCALLY Motion Fax"},"localstationid":{"type":"string","nullable":true},"minrate":{"type":"string","enum":["2400","4800","7200","9600","12000","14400"],"nullable":true,"default":"4800"},"maxrate":{"type":"string","enum":["2400","4800","7200","9600","12000","14400"],"nullable":true,"default":"14400"},"modem":{"type":"string","nullable":true,"default":"v17,v27,v29"},"gateway":{"type":"string","nullable":true,"default":"no"},"faxdetect":{"type":"string","nullable":true,"default":"no"},"t38timeout":{"type":"integer","format":"int32","nullable":true,"default":5000},"tech":{"type":"string","enum":["SIP","IAX","DADHI","KHOMP"],"nullable":true,"default":"SIP"},"key":{"type":"string"},"notificationTemplate":{"type":"string","nullable":true},"notificationSound":{"type":"boolean","nullable":true,"default":true},"notificationShake":{"type":"boolean","nullable":true,"default":false},"waitForTheAssignedAgent":{"type":"integer","format":"int32","nullable":true,"default":10},"queueTransfer":{"type":"boolean","nullable":true,"default":false},"queueTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"agentTransfer":{"type":"boolean","nullable":true,"default":false},"agentTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"mandatoryDispositionPauseId":{"type":"integer","format":"int32","nullable":true,"default":null},"mandatoryDisposition":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"TrunkId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","ecm","headerinfo","minrate","maxrate","modem","gateway","faxdetect","t38timeout","tech","key","notificationTemplate","notificationSound","notificationShake","waitForTheAssignedAgent","queueTransfer","queueTransferTimeout","agentTransfer","agentTransferTimeout","mandatoryDispositionPauseId","mandatoryDisposition","createdAt","updatedAt"]},"FaxApplication":{"title":"FaxApplication","type":"object","properties":{"id":{"type":"integer","format":"int32"},"priority":{"type":"integer","format":"int32"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"interval":{"type":"string","nullable":true,"default":"*,*,*,*"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"FaxAccountId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"FaxQueueId":{"type":"integer","format":"int32","nullable":true},"TagId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true}},"required":["id","priority","app","interval","createdAt","updatedAt"]},"FaxInteraction":{"title":"FaxInteraction","type":"object","properties":{"id":{"type":"integer","format":"int32"},"closed":{"type":"boolean","nullable":true,"default":false},"closedAt":{"type":"string","format":"date-time","nullable":true},"disposition":{"type":"string","nullable":true},"secondDisposition":{"type":"string","nullable":true},"thirdDisposition":{"type":"string","nullable":true},"note":{"type":"string","nullable":true},"read1stAt":{"type":"string","format":"date-time","nullable":true},"fax":{"type":"string","nullable":true},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string","format":"date-time","nullable":true},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"FaxAccountId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","closed","firstMsgDirection","lastMsgDirection","createdAt","updatedAt"]},"FaxMessage":{"title":"FaxMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string"},"read":{"type":"boolean","nullable":true,"default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"failMessage":{"type":"string","nullable":true,"default":null},"readAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"FaxAccountId":{"type":"integer","format":"int32","nullable":true},"FaxInteractionId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"AttachmentId":{"type":"integer","format":"int32","nullable":true}},"required":["id","body","read","direction","failMessage","createdAt","updatedAt"]},"FaxQueue":{"title":"FaxQueue","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"timeout":{"type":"integer","format":"int32"},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"]},"lastAgent":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","timeout","strategy","lastAgent","createdAt","updatedAt"]},"FaxQueueReport":{"title":"FaxQueueReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"from":{"type":"string","nullable":true},"joinAt":{"type":"string","format":"date-time","nullable":true},"leaveAt":{"type":"string","format":"date-time","nullable":true},"acceptAt":{"type":"string","format":"date-time","nullable":true},"exitAt":{"type":"string","format":"date-time","nullable":true},"reason":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"FaxAccountId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"FaxInteractionId":{"type":"integer","format":"int32","nullable":true},"FaxMessageId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"FaxQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","createdAt","updatedAt"]},"SmsAccount":{"title":"SmsAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"key":{"type":"string"},"remote":{"type":"string"},"token":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"type":{"type":"string","enum":["twilio","skebby","connectel","clicksend","plivo","clickatell","csc","infobip","intelepeer"],"nullable":true},"accountSid":{"type":"string","nullable":true},"authId":{"type":"string","nullable":true},"authToken":{"type":"string","nullable":true},"smsMethod":{"type":"string","enum":["SI","TI","GP"],"nullable":true},"username":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"apiKey":{"type":"string","nullable":true},"senderString":{"type":"string","nullable":true},"deliveryReport":{"type":"boolean","nullable":true,"default":false},"description":{"type":"string","nullable":true},"notificationTemplate":{"type":"string","nullable":true},"notificationSound":{"type":"boolean","nullable":true,"default":true},"notificationShake":{"type":"boolean","nullable":true,"default":false},"waitForTheAssignedAgent":{"type":"integer","format":"int32","nullable":true,"default":10},"queueTransfer":{"type":"boolean","nullable":true,"default":false},"queueTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"agentTransfer":{"type":"boolean","nullable":true,"default":false},"agentTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"baseUrl":{"type":"string","nullable":true},"mandatoryDispositionPauseId":{"type":"integer","format":"int32","nullable":true},"mandatoryDisposition":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","key","remote","token","deliveryReport","notificationTemplate","notificationSound","notificationShake","waitForTheAssignedAgent","queueTransfer","queueTransferTimeout","agentTransfer","agentTransferTimeout","mandatoryDisposition","createdAt","updatedAt"]},"SmsApplication":{"title":"SmsApplication","type":"object","properties":{"id":{"type":"integer","format":"int32"},"priority":{"type":"integer","format":"int32"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"interval":{"type":"string","nullable":true,"default":"*,*,*,*"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SmsAccountId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"SmsQueueId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true},"TagId":{"type":"integer","format":"int32","nullable":true}},"required":["id","priority","app","interval","createdAt","updatedAt"]},"SmsInteraction":{"title":"SmsInteraction","type":"object","properties":{"id":{"type":"integer","format":"int32"},"closed":{"type":"boolean","nullable":true,"default":false},"closedAt":{"type":"string","format":"date-time","nullable":true},"disposition":{"type":"string","nullable":true},"secondDisposition":{"type":"string","nullable":true},"thirdDisposition":{"type":"string","nullable":true},"note":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"read1stAt":{"type":"string","format":"date-time","nullable":true},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string","format":"date-time","nullable":true},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"SmsAccountId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","closed","firstMsgDirection","lastMsgDirection","createdAt","updatedAt"]},"SmsMessage":{"title":"SmsMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string"},"read":{"type":"boolean","nullable":true,"default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"messageId":{"type":"string","maxLength":190,"nullable":true},"phone":{"type":"string","nullable":true},"readAt":{"type":"string","format":"date-time","nullable":true},"secret":{"type":"boolean","nullable":true,"default":false},"providerName":{"type":"string","nullable":true},"providerResponse":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SmsAccountId":{"type":"integer","format":"int32","nullable":true},"SmsInteractionId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","body","read","direction","secret","createdAt","updatedAt"]},"SmsQueue":{"title":"SmsQueue","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"timeout":{"type":"integer","format":"int32","nullable":true},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"OpenchannelAccount":{"title":"OpenchannelAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"token":{"type":"string","nullable":true},"replyUri":{"type":"string","nullable":true},"key":{"type":"string"},"notificationTemplate":{"type":"string","nullable":true},"notificationSound":{"type":"boolean","nullable":true,"default":true},"notificationShake":{"type":"boolean","nullable":true,"default":false},"waitForTheAssignedAgent":{"type":"integer","format":"int32","nullable":true,"default":10},"mapKey":{"type":"string","nullable":true},"queueTransfer":{"type":"boolean","nullable":true,"default":false},"queueTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"agentTransfer":{"type":"boolean","nullable":true,"default":false},"agentTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"mandatoryDispositionPauseId":{"type":"integer","format":"int32","nullable":true,"default":null},"mandatoryDisposition":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","token","key","notificationTemplate","notificationSound","notificationShake","waitForTheAssignedAgent","queueTransfer","queueTransferTimeout","agentTransfer","agentTransferTimeout","mandatoryDispositionPauseId","mandatoryDisposition","createdAt","updatedAt"]},"OpenchannelApplication":{"title":"OpenchannelApplication","type":"object","properties":{"id":{"type":"integer","format":"int32"},"priority":{"type":"integer","format":"int32"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"interval":{"type":"string","nullable":true,"default":"*,*,*,*"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"OpenchannelAccountId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"OpenchannelQueueId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true},"TagId":{"type":"integer","format":"int32","nullable":true}},"required":["id","priority","app","interval","createdAt","updatedAt"]},"OpenchannelInteraction":{"title":"OpenchannelInteraction","type":"object","properties":{"id":{"type":"integer","format":"int32"},"closed":{"type":"boolean","nullable":true,"default":false},"closedAt":{"type":"string","format":"date-time","nullable":true},"disposition":{"type":"string","nullable":true},"secondDisposition":{"type":"string","nullable":true},"thirdDisposition":{"type":"string","nullable":true},"note":{"type":"string","nullable":true},"read1stAt":{"type":"string","format":"date-time","nullable":true},"threadId":{"type":"string","nullable":true},"externalUrl":{"type":"string","nullable":true},"lastMsgAt":{"type":"string","format":"date-time","nullable":true},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"from":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"OpenchannelAccountId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","closed","lastMsgDirection","createdAt","updatedAt"]},"OpenchannelMessage":{"title":"OpenchannelMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string"},"read":{"type":"boolean","nullable":true,"default":false},"secret":{"type":"boolean","nullable":true,"default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"readAt":{"type":"string","format":"date-time","nullable":true},"providerName":{"type":"string","nullable":true},"providerResponse":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"OpenchannelAccountId":{"type":"integer","format":"int32","nullable":true},"OpenchannelInteractionId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"AttachmentId":{"type":"integer","format":"int32","nullable":true}},"required":["id","body","read","secret","direction","createdAt","updatedAt"]},"OpenchannelQueue":{"title":"OpenchannelQueue","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"timeout":{"type":"integer","format":"int32","nullable":true},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"ChatWebsite":{"title":"ChatWebsite","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"address":{"type":"string"},"description":{"type":"string","nullable":true},"mapKey":{"type":"string","nullable":true,"default":"email"},"mapKeyOffline":{"type":"string","nullable":true,"default":"email"},"key":{"type":"string"},"agentAlias":{"type":"string","nullable":true,"default":"Agent"},"customerAlias":{"type":"string","nullable":true,"default":"Me"},"color":{"type":"string","default":"#011F6A"},"color_button":{"type":"string","default":"#011F6A"},"textColor":{"type":"string","default":"#ffffff"},"fontSize":{"type":"integer","format":"int32","nullable":true,"default":15},"remote":{"type":"string","nullable":true},"animation":{"type":"boolean","nullable":true,"default":true},"header_shape":{"type":"string","enum":["rounded","squared"],"nullable":true,"default":"rounded"},"header_online":{"type":"string","nullable":true,"default":"We are here!"},"start_chat_button":{"type":"string","nullable":true,"default":"Chat"},"offline_chat_button":{"type":"string","nullable":true,"default":"Send"},"header_offline":{"type":"string","nullable":true,"default":"Contact us"},"download_transcript":{"type":"boolean","nullable":true,"default":true},"timeout":{"type":"integer","format":"int32","nullable":true,"default":0},"whiteLabel":{"type":"string","nullable":true,"default":"Powered by xCALLY"},"defaultWhiteLabel":{"type":"boolean","nullable":true,"default":true},"sitepic":{"type":"string","nullable":true},"closingQuestion":{"type":"string","nullable":true,"default":"Do you want to close the interaction?"},"formSubmitSuccessMessage":{"type":"string","nullable":true,"default":"Form properly submitted"},"formSubmitFailureMessage":{"type":"string","nullable":true,"default":"Form submission error"},"noteTitle":{"type":"string","nullable":true,"default":"Note"},"placeholderMessage":{"type":"string","nullable":true,"default":"Type a message"},"closingMessage":{"type":"string","nullable":true,"default":"Thanks you for your time!"},"closingMessageButton":{"type":"string","nullable":true,"default":"Send"},"skipMessageButton":{"type":"string","nullable":true,"default":"Skip"},"conditionAgreement":{"type":"boolean","nullable":true,"default":false},"enableRating":{"type":"boolean","nullable":true,"default":false},"enableFeedback":{"type":"boolean","nullable":true,"default":false},"enableSendButton":{"type":"boolean","nullable":true,"default":false},"feedbackTitle":{"type":"string","nullable":true,"default":"Feedback"},"ratingType":{"type":"string","enum":["star","thumb"],"nullable":true,"default":"star"},"ratingStarsNumber":{"type":"integer","format":"int32","nullable":true,"default":5},"onlineForm":{"type":"string","nullable":true},"offlineForm":{"type":"string","nullable":true},"token":{"type":"string","nullable":true},"autoclose":{"type":"boolean","nullable":true,"default":true},"enableCustomerWriting":{"type":"boolean","nullable":true,"default":false},"forwardTranscript":{"type":"boolean","nullable":true,"default":false},"forwardTranscriptMessage":{"type":"string","nullable":true},"forwardOffline":{"type":"boolean","nullable":true,"default":false},"forwardOfflineAddress":{"type":"string","nullable":true},"waitingTitle":{"type":"string","nullable":true,"default":"All of our agents are busy at this time. Your chat is very important to us."},"waitingMessage":{"type":"string","nullable":true,"default":"Please hold and we will answer your request as soon as possible."},"offlineMessageSubject":{"type":"string","nullable":true,"default":"New offline message from websiteName"},"offlineMessageBody":{"type":"string","nullable":true,"default":"You received a new offline message from websiteName. Here you can find the details of the request:"},"enableUnmanagedNote":{"type":"boolean","nullable":true,"default":true},"unmanagedMessage":{"type":"string","nullable":true,"default":"Your request has not been processed."},"skipUnmanaged":{"type":"string","nullable":true,"default":"Skip"},"sendUnmanaged":{"type":"string","nullable":true,"default":"Send"},"enableCustomerAttachment":{"type":"boolean","nullable":true,"default":false},"enableCustomerCheckmarks":{"type":"boolean","nullable":true,"default":false},"agentAvatar":{"type":"string","nullable":true},"showAgentAvatar":{"type":"boolean","nullable":true,"default":false},"timezone":{"type":"string","nullable":true},"notificationTemplate":{"type":"string","nullable":true},"notificationSound":{"type":"boolean","nullable":true,"default":true},"notificationShake":{"type":"boolean","nullable":true,"default":false},"hideWhenOffline":{"type":"boolean","nullable":true,"default":false},"agentIdentifier":{"type":"string","nullable":true,"default":"website_alias"},"waitForTheAssignedAgent":{"type":"integer","format":"int32","nullable":true,"default":10},"alignment":{"type":"string","nullable":true,"default":"bottom_right"},"verticalAlignment":{"type":"integer","format":"int32","nullable":true,"default":30},"messagesAlignment":{"type":"string","nullable":true,"default":"alternate"},"defaultTitle":{"type":"string","nullable":true},"customerAvatar":{"type":"string","nullable":true},"showCustomerAvatar":{"type":"boolean","nullable":true,"default":false},"messageFontSize":{"type":"integer","format":"int32","nullable":true,"default":12},"backgroundColor":{"type":"string","default":"#fafafa"},"queueTransfer":{"type":"boolean","nullable":true,"default":false},"queueTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"agentTransfer":{"type":"boolean","nullable":true,"default":false},"agentTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"systemAlias":{"type":"string","nullable":true,"default":"System"},"systemAvatar":{"type":"string","nullable":true},"mandatoryDispositionPauseId":{"type":"integer","format":"int32","nullable":true},"mandatoryDisposition":{"type":"boolean","nullable":true,"default":false},"vidaooEscalation":{"type":"boolean","nullable":true,"default":false},"vidaooApiKey":{"type":"string","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ListId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","address","mapKey","mapKeyOffline","key","agentAlias","customerAlias","color","color_button","textColor","fontSize","animation","header_shape","header_online","start_chat_button","offline_chat_button","header_offline","download_transcript","timeout","whiteLabel","defaultWhiteLabel","closingQuestion","formSubmitSuccessMessage","formSubmitFailureMessage","noteTitle","placeholderMessage","closingMessage","closingMessageButton","skipMessageButton","conditionAgreement","enableRating","enableFeedback","enableSendButton","feedbackTitle","ratingType","ratingStarsNumber","onlineForm","offlineForm","token","autoclose","enableCustomerWriting","forwardTranscript","forwardOffline","waitingTitle","waitingMessage","offlineMessageSubject","offlineMessageBody","enableUnmanagedNote","unmanagedMessage","skipUnmanaged","sendUnmanaged","enableCustomerAttachment","enableCustomerCheckmarks","showAgentAvatar","notificationTemplate","notificationSound","notificationShake","hideWhenOffline","agentIdentifier","waitForTheAssignedAgent","alignment","verticalAlignment","messagesAlignment","showCustomerAvatar","messageFontSize","backgroundColor","queueTransfer","queueTransferTimeout","agentTransfer","agentTransferTimeout","systemAlias","mandatoryDisposition","vidaooEscalation","vidaooApiKey","createdAt","updatedAt"]},"OpenchannelQueueReport":{"title":"OpenchannelQueueReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"from":{"type":"string","nullable":true},"joinAt":{"type":"string","format":"date-time","nullable":true},"leaveAt":{"type":"string","format":"date-time","nullable":true},"acceptAt":{"type":"string","format":"date-time","nullable":true},"exitAt":{"type":"string","format":"date-time","nullable":true},"reason":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"OpenchannelAccountId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"OpenchannelInteractionId":{"type":"integer","format":"int32","nullable":true},"OpenchannelMessageId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"OpenchannelQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","createdAt","updatedAt"]},"ChatApplication":{"title":"ChatApplication","type":"object","properties":{"id":{"type":"integer","format":"int32"},"priority":{"type":"integer","format":"int32"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"interval":{"type":"string","nullable":true,"default":"*,*,*,*"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ChatWebsiteId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"ChatQueueId":{"type":"integer","format":"int32","nullable":true},"TagId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true}},"required":["id","priority","app","interval","createdAt","updatedAt"]},"ChatInteraction":{"title":"ChatInteraction","type":"object","properties":{"id":{"type":"integer","format":"int32"},"closed":{"type":"boolean","nullable":true,"default":false},"ratingValue":{"type":"integer","format":"int32","nullable":true},"ratingType":{"type":"string","enum":["star","thumb"],"nullable":true,"default":"star"},"ratingMessage":{"type":"string","nullable":true},"pathTranscript":{"type":"string","nullable":true},"mailTranscript":{"type":"string","nullable":true},"closedAt":{"type":"string","format":"date-time","nullable":true},"disposition":{"type":"string","nullable":true},"secondDisposition":{"type":"string","nullable":true},"thirdDisposition":{"type":"string","nullable":true},"note":{"type":"string","nullable":true},"browserName":{"type":"string","nullable":true},"browserVersion":{"type":"string","nullable":true},"osName":{"type":"string","nullable":true},"osVersion":{"type":"string","nullable":true},"deviceModel":{"type":"string","nullable":true},"deviceVendor":{"type":"string","nullable":true},"deviceType":{"type":"string","nullable":true},"referer":{"type":"string","nullable":true},"customerIp":{"type":"string","nullable":true},"formData":{"type":"string","nullable":true},"read1stAt":{"type":"string","format":"date-time","nullable":true},"lastMsgAt":{"type":"string","format":"date-time","nullable":true},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"closeReason":{"type":"string","nullable":true},"customerPort":{"type":"string","nullable":true},"vidaooSessionId":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"ChatWebsiteId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","closed","ratingType","lastMsgDirection","createdAt","updatedAt"]},"ChatMessage":{"title":"ChatMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string"},"read":{"type":"boolean","nullable":true,"default":false},"secret":{"type":"boolean","nullable":true,"default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"readAt":{"type":"string","format":"date-time","nullable":true},"providerName":{"type":"string","nullable":true},"providerResponse":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ChatWebsiteId":{"type":"integer","format":"int32","nullable":true},"ChatInteractionId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"AttachmentId":{"type":"integer","format":"int32","nullable":true}},"required":["id","body","read","secret","direction","createdAt","updatedAt"]},"ChatOfflineMessage":{"title":"ChatOfflineMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ContactId":{"type":"integer","format":"int32","nullable":true},"ChatWebsiteId":{"type":"integer","format":"int32","nullable":true}},"required":["id","body","createdAt","updatedAt"]},"ChatQueue":{"title":"ChatQueue","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"timeout":{"type":"integer","format":"int32","nullable":true},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"ChatGroup":{"title":"ChatGroup","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"write":{"type":"boolean","nullable":true,"default":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","write","createdAt","updatedAt"]},"ChatProactiveAction":{"title":"ChatProactiveAction","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"type":{"type":"string","enum":["mouseOver","timeout"],"nullable":true,"default":"mouseOver"},"selector":{"type":"string","nullable":true},"timeout":{"type":"integer","format":"int32","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ChatWebsiteId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","type","createdAt","updatedAt"]},"CmCompany":{"title":"CmCompany","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"vat":{"type":"string","nullable":true},"companyId":{"type":"string","nullable":true},"website":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"fax":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"street":{"type":"string","nullable":true},"postalCode":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"emailDomain":{"type":"string","nullable":true},"sStreet":{"type":"string","nullable":true},"sPostalCode":{"type":"string","nullable":true},"sCity":{"type":"string","nullable":true},"sCountry":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"CmContact":{"title":"CmContact","type":"object","properties":{"id":{"type":"integer","format":"int32"},"firstName":{"type":"string"},"lastName":{"type":"string","nullable":true},"street":{"type":"string","nullable":true},"postalCode":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"dateOfBirth":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"mobile":{"type":"string","nullable":true},"fax":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"url":{"type":"string","nullable":true},"facebook":{"type":"string","nullable":true},"fb_data":{"type":"string","nullable":true},"twitter":{"type":"string","nullable":true},"skype":{"type":"string","nullable":true},"teams":{"type":"string","nullable":true},"viber":{"type":"string","nullable":true},"line":{"type":"string","nullable":true},"wechat":{"type":"string","nullable":true},"telegram":{"type":"string","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"priority":{"type":"integer","format":"int32","nullable":true,"default":2},"scheduledat":{"type":"string","format":"date-time","nullable":true,"default":{}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"CompanyId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","firstName","priority","scheduledat","createdAt","updatedAt"]},"CmHopper":{"title":"CmHopper","type":"object","properties":{"id":{"type":"integer","format":"int32"},"phone":{"type":"string"},"active":{"type":"boolean","nullable":true,"default":false},"scheduledat":{"type":"string","format":"date-time","nullable":true,"default":"2020-12-04 20:00:00"},"countbusyretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countcongestionretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countnoanswerretry":{"type":"integer","format":"int32","nullable":true,"default":0},"callback":{"type":"boolean","nullable":true,"default":false},"callbackuniqueid":{"type":"string","nullable":true,"default":null},"callbackat":{"type":"string","format":"date-time","nullable":true},"priority":{"type":"integer","format":"int32","nullable":true,"default":2},"recallme":{"type":"boolean","nullable":true,"default":false},"ContactId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"VoiceQueueId":{"type":"integer","format":"int32","nullable":true},"CampaignId":{"type":"integer","format":"int32","nullable":true},"countnosuchnumberretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countdropretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countabandonedretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countmachineretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countagentrejectretry":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"OwnerId":{"type":"integer","format":"int32","nullable":true}},"required":["id","phone","active","scheduledat","countbusyretry","countcongestionretry","countnoanswerretry","callback","callbackuniqueid","priority","recallme","countnosuchnumberretry","countdropretry","countabandonedretry","countmachineretry","countagentrejectretry","createdAt","updatedAt"]},"CmHopperBlack":{"title":"CmHopperBlack","type":"object","properties":{"id":{"type":"integer","format":"int32"},"phone":{"type":"string"},"ContactId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"VoiceQueueId":{"type":"integer","format":"int32","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"CampaignId":{"type":"integer","format":"int32","nullable":true}},"required":["id","phone","createdAt","updatedAt"]},"CmHopperFinal":{"title":"CmHopperFinal","type":"object","properties":{"id":{"type":"integer","format":"int32"},"state":{"type":"integer","format":"int32","nullable":true},"statedesc":{"type":"string","nullable":true},"scheduledat":{"type":"string","format":"date-time","nullable":true},"countbusyretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countcongestionretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countnoanswerretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countglobal":{"type":"integer","format":"int32","nullable":true,"default":0},"uniqueid":{"type":"string","nullable":true},"originatecalleridnum":{"type":"string","nullable":true},"originatecalleridname":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"starttime":{"type":"string","format":"date-time","nullable":true},"responsetime":{"type":"string","format":"date-time","nullable":true},"answertime":{"type":"string","format":"date-time","nullable":true},"droptime":{"type":"string","format":"date-time","nullable":true},"endtime":{"type":"string","format":"date-time","nullable":true},"ringtime":{"type":"integer","format":"int32","nullable":true,"default":0},"holdtime":{"type":"integer","format":"int32","nullable":true,"default":0},"talktime":{"type":"integer","format":"int32","nullable":true,"default":0},"followuptime":{"type":"integer","format":"int32","nullable":true,"default":0},"dropreason":{"type":"string","nullable":true},"campaign":{"type":"string","nullable":true},"campaigntype":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"reason":{"type":"string","nullable":true},"disposition":{"type":"string","nullable":true},"secondDisposition":{"type":"string","nullable":true},"thirdDisposition":{"type":"string","nullable":true},"dispositionat":{"type":"string","format":"date-time","nullable":true},"amd":{"type":"boolean","nullable":true,"default":false},"fax":{"type":"boolean","nullable":true,"default":false},"blacklist":{"type":"boolean","nullable":true,"default":false},"rescheduled":{"type":"boolean","nullable":true,"default":false},"rescheduledat":{"type":"string","format":"date-time","nullable":true},"callback":{"type":"boolean","nullable":true,"default":false},"callbackuniqueid":{"type":"string","nullable":true,"default":null},"callbackat":{"type":"string","format":"date-time","nullable":true},"deleted":{"type":"string","nullable":true,"default":null},"deletedat":{"type":"string","format":"date-time","nullable":true},"recallme":{"type":"boolean","nullable":true,"default":false},"agiafterat":{"type":"string","format":"date-time","nullable":true},"countnosuchnumberretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countdropretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countabandonedretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countmachineretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countagentrejectretry":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"VoiceQueueId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"CampaignId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","countbusyretry","countcongestionretry","countnoanswerretry","countglobal","ringtime","holdtime","talktime","followuptime","amd","fax","blacklist","rescheduled","callback","callbackuniqueid","deleted","recallme","countnosuchnumberretry","countdropretry","countabandonedretry","countmachineretry","countagentrejectretry","createdAt","updatedAt"]},"CmHopperHistory":{"title":"CmHopperHistory","type":"object","properties":{"id":{"type":"integer","format":"int32"},"state":{"type":"integer","format":"int32","nullable":true},"statedesc":{"type":"string","nullable":true},"scheduledat":{"type":"string","format":"date-time","nullable":true},"countbusyretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countcongestionretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countnoanswerretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countglobal":{"type":"integer","format":"int32","nullable":true,"default":0},"uniqueid":{"type":"string","nullable":true},"originatecalleridnum":{"type":"string","nullable":true},"originatecalleridname":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"starttime":{"type":"string","format":"date-time","nullable":true},"responsetime":{"type":"string","format":"date-time","nullable":true},"answertime":{"type":"string","format":"date-time","nullable":true},"droptime":{"type":"string","format":"date-time","nullable":true},"endtime":{"type":"string","format":"date-time","nullable":true},"ringtime":{"type":"integer","format":"int32","nullable":true,"default":0},"holdtime":{"type":"integer","format":"int32","nullable":true,"default":0},"talktime":{"type":"integer","format":"int32","nullable":true,"default":0},"followuptime":{"type":"integer","format":"int32","nullable":true,"default":0},"dropreason":{"type":"string","nullable":true},"campaign":{"type":"string","nullable":true},"campaigntype":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"reason":{"type":"string","nullable":true},"amd":{"type":"boolean","nullable":true,"default":false},"fax":{"type":"boolean","nullable":true,"default":false},"callback":{"type":"boolean","nullable":true,"default":false},"callbackuniqueid":{"type":"string","nullable":true,"default":null},"callbackat":{"type":"string","format":"date-time","nullable":true},"recallme":{"type":"boolean","nullable":true,"default":false},"editedat":{"type":"string","format":"date-time","nullable":true},"edited":{"type":"boolean","nullable":true,"default":false},"countnosuchnumberretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countdropretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countabandonedretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countmachineretry":{"type":"integer","format":"int32","nullable":true,"default":0},"countagentrejectretry":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"VoiceQueueId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"CampaignId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","countbusyretry","countcongestionretry","countnoanswerretry","countglobal","ringtime","holdtime","talktime","followuptime","amd","fax","callback","callbackuniqueid","recallme","edited","countnosuchnumberretry","countdropretry","countabandonedretry","countmachineretry","countagentrejectretry","createdAt","updatedAt"]},"ReportAgentPreview":{"title":"ReportAgentPreview","type":"object","properties":{"id":{"type":"integer","format":"int32"},"state":{"type":"integer","format":"int32","nullable":true},"statedesc":{"type":"string","nullable":true},"scheduledat":{"type":"string","format":"date-time","nullable":true},"uniqueid":{"type":"string","nullable":true},"starttime":{"type":"string","format":"date-time","nullable":true},"responsetime":{"type":"string","format":"date-time","nullable":true},"ringtime":{"type":"integer","format":"int32","nullable":true,"default":0},"campaign":{"type":"string","nullable":true},"campaigntype":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"VoiceQueueId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","ringtime","createdAt","updatedAt"]},"CmCustomField":{"title":"CmCustomField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"alias":{"type":"string"},"type":{"type":"string"},"values":{"type":"string","nullable":true},"required":{"type":"boolean","nullable":true,"default":false},"clickToAction":{"type":"boolean","nullable":true,"default":false},"actionType":{"type":"string","enum":["voice"],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","alias","type","required","clickToAction","createdAt","updatedAt"]},"Action":{"title":"Action","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"action":{"type":"string"},"data1":{"type":"string","maxLength":4096,"nullable":true},"data2":{"type":"string","maxLength":4096,"nullable":true},"data3":{"type":"string","maxLength":4096,"nullable":true},"data4":{"type":"string","maxLength":4096,"nullable":true},"data5":{"type":"string","maxLength":4096,"nullable":true},"data6":{"type":"string","nullable":true},"data7":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AutomationId":{"type":"integer","format":"int32","nullable":true},"TriggerId":{"type":"integer","format":"int32","nullable":true}},"required":["id","action","createdAt","updatedAt"]},"Automation":{"title":"Automation","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"channel":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"status":{"type":"boolean","nullable":true,"default":false},"timeout":{"type":"integer","format":"int32","nullable":true,"default":10},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","status","timeout","createdAt","updatedAt"]},"CannedAnswer":{"title":"CannedAnswer","type":"object","properties":{"id":{"type":"integer","format":"int32"},"key":{"type":"string"},"value":{"type":"string"},"description":{"type":"string","nullable":true},"name":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailAccountId":{"type":"integer","format":"int32","nullable":true},"FaxAccountId":{"type":"integer","format":"int32","nullable":true},"SmsAccountId":{"type":"integer","format":"int32","nullable":true},"OpenchannelAccountId":{"type":"integer","format":"int32","nullable":true},"ChatWebsiteId":{"type":"integer","format":"int32","nullable":true},"WhatsappAccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","key","value","createdAt","updatedAt"]},"Disposition":{"title":"Disposition","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"level":{"type":"string","enum":["first","second","third"],"default":"first"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailAccountId":{"type":"integer","format":"int32","nullable":true},"FaxAccountId":{"type":"integer","format":"int32","nullable":true},"SmsAccountId":{"type":"integer","format":"int32","nullable":true},"OpenchannelAccountId":{"type":"integer","format":"int32","nullable":true},"ChatWebsiteId":{"type":"integer","format":"int32","nullable":true},"ParentId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"WhatsappAccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","level","createdAt","updatedAt"]},"Condition":{"title":"Condition","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"field":{"type":"string"},"operator":{"type":"string"},"value":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AutomationAllId":{"type":"integer","format":"int32","nullable":true},"AutomationAnyId":{"type":"integer","format":"int32","nullable":true},"TriggerAllId":{"type":"integer","format":"int32","nullable":true},"TriggerAnyId":{"type":"integer","format":"int32","nullable":true}},"required":["id","field","operator","value","createdAt","updatedAt"]},"Interval":{"title":"Interval","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"interval":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"IntervalId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"Pause":{"title":"Pause","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"Cdr":{"title":"Cdr","type":"object","properties":{"id":{"type":"integer","format":"int32"},"calldate":{"type":"string","format":"date-time","default":"1970-01-01 00:00:01"},"clid":{"type":"string","nullable":true},"src":{"type":"string","nullable":true},"dst":{"type":"string","nullable":true},"dcontext":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"dstchannel":{"type":"string","nullable":true},"lastapp":{"type":"string","nullable":true},"lastdata":{"type":"string","nullable":true},"duration":{"type":"integer","format":"int32","default":0},"billsec":{"type":"integer","format":"int32","default":0},"disposition":{"type":"string","nullable":true},"amaflags":{"type":"integer","format":"int32","default":0},"accountcode":{"type":"string","nullable":true},"userfield":{"type":"string","nullable":true},"uniqueid":{"type":"string","nullable":true},"linkedid":{"type":"string","nullable":true},"sequence":{"type":"string","nullable":true},"peeraccount":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"tag":{"type":"string","nullable":true}},"required":["id","calldate","duration","billsec","amaflags"]},"VoiceQueuesLog":{"title":"VoiceQueuesLog","type":"object","properties":{"id":{"type":"integer","format":"int32"},"time":{"type":"string","nullable":true},"callid":{"type":"string","default":""},"queuename":{"type":"string","default":""},"agent":{"type":"string","default":""},"event":{"type":"string","default":""},"data":{"type":"string","default":""},"data1":{"type":"string","default":""},"data2":{"type":"string","default":""},"data3":{"type":"string","default":""},"data4":{"type":"string","default":""},"data5":{"type":"string","default":""},"dtm":{"type":"string","format":"date-time","default":"2020-12-04 20:00:00"}},"required":["id","callid","queuename","agent","event","data","data1","data2","data3","data4","data5","dtm"]},"Schedule":{"title":"Schedule","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"active":{"type":"boolean","default":false},"cron":{"type":"string","default":"0 0 * * *"},"startAt":{"type":"string","format":"date-time"},"endAt":{"type":"string","format":"date-time"},"subtractNumber":{"type":"integer","format":"int32","default":1},"subtractUnit":{"type":"string","enum":["years","quarters","months","weeks","days","hours","minutes"],"default":"days"},"output":{"type":"string","enum":["csv","pdf","xlsx"],"default":"csv"},"type":{"type":"string","enum":["custom","default"],"default":"custom"},"sendMail":{"type":"boolean","nullable":true,"default":false},"email":{"type":"string","nullable":true},"cc":{"type":"string","nullable":true},"bcc":{"type":"string","nullable":true},"sendIfEmpty":{"type":"boolean","nullable":true,"default":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailAccountId":{"type":"integer","format":"int32","nullable":true},"DefaultReportId":{"type":"integer","format":"int32","nullable":true},"CustomReportId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","active","cron","startAt","endAt","subtractNumber","subtractUnit","output","type","sendMail","sendIfEmpty","createdAt","updatedAt"]},"Sound":{"title":"Sound","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"save_name":{"type":"string","nullable":true},"display_name":{"type":"string","nullable":true,"default":""},"description":{"type":"string","nullable":true},"original_format":{"type":"string","nullable":true},"original_duration":{"type":"number","format":"float","nullable":true},"original_sampleCount":{"type":"integer","format":"int64","nullable":true},"original_channelCount":{"type":"integer","format":"int32","nullable":true},"original_bitRate":{"type":"integer","format":"int64","nullable":true},"original_sampleRate":{"type":"integer","format":"int32","nullable":true},"converted_format":{"type":"string","nullable":true},"converted_duration":{"type":"number","format":"float","nullable":true},"converted_sampleCount":{"type":"integer","format":"int64","nullable":true},"converted_channelCount":{"type":"integer","format":"int32","nullable":true},"converted_bitRate":{"type":"integer","format":"int64","nullable":true},"converted_sampleRate":{"type":"integer","format":"int32","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","display_name","createdAt","updatedAt"]},"Tag":{"title":"Tag","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"color":{"type":"string","nullable":true,"default":"#0091EA"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","color","createdAt","updatedAt"]},"Template":{"title":"Template","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"html":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"Trigger":{"title":"Trigger","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"status":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","status","createdAt","updatedAt"]},"Variable":{"title":"Variable","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"Integration":{"title":"Integration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"version":{"type":"string"},"main":{"type":"string","nullable":true,"default":"app.js"},"filename":{"type":"string","nullable":true},"path":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"size":{"type":"integer","format":"int32","nullable":true},"active":{"type":"boolean","nullable":true,"default":false},"author":{"type":"string","nullable":true},"logo":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"link":{"type":"string","nullable":true,"default":"#"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","version","main","active","link","createdAt","updatedAt"]},"IntegrationReport":{"title":"IntegrationReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"integration":{"type":"string","nullable":true},"eventChannel":{"type":"string","nullable":true},"exitStatus":{"type":"string","nullable":true},"ticketId":{"type":"string","nullable":true},"integrationId":{"type":"integer","format":"int32","nullable":true},"contacts":{"type":"string","nullable":true},"uniqueid":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"queue":{"type":"string","nullable":true},"interface":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"agentcalledAt":{"type":"string","format":"date-time","nullable":true},"agentconnectAt":{"type":"string","format":"date-time","nullable":true},"holdtime":{"type":"integer","format":"int32","nullable":true},"agentcomplete":{"type":"boolean","nullable":true,"default":false},"agentcompleteAt":{"type":"string","format":"date-time","nullable":true},"talktime":{"type":"integer","format":"int32","nullable":true},"agentacw":{"type":"boolean","nullable":true,"default":false},"acwtime":{"type":"integer","format":"int32","nullable":true},"reason":{"type":"string","nullable":true},"agentringnoanswer":{"type":"boolean","nullable":true,"default":false},"agentringnoanswerAt":{"type":"string","format":"date-time","nullable":true},"agentdump":{"type":"boolean","nullable":true,"default":false},"agentdumpAt":{"type":"string","format":"date-time","nullable":true},"lastevent":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"channelstate":{"type":"integer","format":"int32","nullable":true},"channelstatedesc":{"type":"string","nullable":true},"connectedlinenum":{"type":"string","nullable":true},"connectedlinename":{"type":"string","nullable":true},"language":{"type":"string","nullable":true},"accountcode":{"type":"string","nullable":true},"context":{"type":"string","nullable":true},"exten":{"type":"string","nullable":true},"priority":{"type":"string","nullable":true},"destchannel":{"type":"string","nullable":true},"destchannelstate":{"type":"integer","format":"int32","nullable":true},"destchannelstatedesc":{"type":"string","nullable":true},"destcalleridnum":{"type":"string","nullable":true},"destcalleridname":{"type":"string","nullable":true},"destconnectedlinenum":{"type":"string","nullable":true},"destconnectedlinename":{"type":"string","nullable":true},"destlanguage":{"type":"string","nullable":true},"destaccountcode":{"type":"string","nullable":true},"destcontext":{"type":"string","nullable":true},"destexten":{"type":"string","nullable":true},"destpriority":{"type":"string","nullable":true},"destuniqueid":{"type":"string","nullable":true},"messageId":{"type":"string","nullable":true},"inReplyTo":{"type":"string","nullable":true},"subject":{"type":"string","nullable":true},"from":{"type":"string","nullable":true},"to":{"type":"string","nullable":true},"cc":{"type":"string","nullable":true},"attachment":{"type":"string","nullable":true},"html":{"type":"string","nullable":true},"text":{"type":"string","nullable":true},"status":{"type":"string","enum":["SENT","SENDING","RECEIVED","FAILED"],"nullable":true},"url":{"type":"string","nullable":true},"app":{"type":"string","nullable":true},"appdata":{"type":"string","nullable":true},"projectId":{"type":"integer","format":"int32","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","agentcomplete","agentacw","agentringnoanswer","agentdump","createdAt","updatedAt"]},"AnalyticCustomReport":{"title":"AnalyticCustomReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"parent":{"type":"string","nullable":true},"table":{"type":"string","nullable":true},"conditions":{"type":"string","nullable":true},"joins":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["id","name","createdAt","updatedAt"]},"AnalyticDefaultReport":{"title":"AnalyticDefaultReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"parent":{"type":"string","nullable":true},"table":{"type":"string","nullable":true},"conditions":{"type":"string","nullable":true},"joins":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"AnalyticExtractedReport":{"title":"AnalyticExtractedReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"basename":{"type":"string"},"output":{"type":"string","enum":["csv","pdf","xlsx"],"default":"csv"},"savename":{"type":"string"},"startDate":{"type":"string","format":"date-time","nullable":true},"endDate":{"type":"string","format":"date-time","nullable":true},"status":{"type":"string","nullable":true,"default":"Loading"},"type":{"type":"string","enum":["manual","scheduled"],"default":"manual"},"reportId":{"type":"integer","format":"int32","nullable":true},"reportType":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","basename","output","savename","status","type","createdAt","updatedAt"]},"AnalyticMetric":{"title":"AnalyticMetric","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"table":{"type":"string","nullable":true},"metric":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"AnalyticFieldReport":{"title":"AnalyticFieldReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"field":{"type":"string","nullable":true},"alias":{"type":"string","nullable":true},"function":{"type":"string","nullable":true},"format":{"type":"string","nullable":true},"groupBy":{"type":"boolean","nullable":true,"default":false},"orderBy":{"type":"string","nullable":true},"custom":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"CustomReportId":{"type":"integer","format":"int32","nullable":true},"DefaultReportId":{"type":"integer","format":"int32","nullable":true},"MetricId":{"type":"integer","format":"int32","nullable":true}},"required":["id","groupBy","custom","createdAt","updatedAt"]},"AnalyticTreeReport":{"title":"AnalyticTreeReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"tree":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","tree","createdAt","updatedAt"]},"SalesforceAccount":{"title":"SalesforceAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"clientId":{"type":"string","nullable":true},"clientSecret":{"type":"string","nullable":true},"securityToken":{"type":"string","nullable":true},"serverUrl":{"type":"string","nullable":true},"type":{"type":"string","enum":["integrationTab","newTab"],"nullable":true,"default":"integrationTab"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","type","createdAt","updatedAt"]},"SalesforceConfiguration":{"title":"SalesforceConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"ticketType":{"type":"string","enum":["Task","Case"],"nullable":true,"default":"Task"},"moduleSearch":{"type":"string","enum":["contact_lead","contact","lead"],"nullable":true,"default":"contact_lead"},"moduleCreate":{"type":"string","enum":["nothing","contact","lead"],"nullable":true,"default":"lead"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","ticketType","moduleSearch","moduleCreate","createdAt","updatedAt"]},"SalesforceField":{"title":"SalesforceField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","createdAt","updatedAt"]},"SugarcrmAccount":{"title":"SugarcrmAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"serverUrl":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"SugarcrmConfiguration":{"title":"SugarcrmConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"SugarcrmField":{"title":"SugarcrmField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"DeskAccount":{"title":"DeskAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"authType":{"type":"string","enum":["basic"],"nullable":true,"default":"basic"},"password":{"type":"string","nullable":true},"consumerKey":{"type":"string","nullable":true},"consumerSecret":{"type":"string","nullable":true},"token":{"type":"string","nullable":true},"tokenSecret":{"type":"string","nullable":true},"serverUrl":{"type":"string","nullable":true},"type":{"type":"string","enum":["integrationTab","newTab"],"nullable":true,"default":"integrationTab"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","authType","type","createdAt","updatedAt"]},"DeskConfiguration":{"title":"DeskConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"DeskField":{"title":"DeskField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"ZohoAccount":{"title":"ZohoAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"host":{"type":"string","nullable":true},"zone":{"type":"string","nullable":true},"clientId":{"type":"string","nullable":true},"clientSecret":{"type":"string","nullable":true},"serverUrl":{"type":"string","nullable":true},"code":{"type":"string","nullable":true},"refreshToken":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"ZohoConfiguration":{"title":"ZohoConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"moduleCreate":{"type":"string","enum":["lead","contact","nothing"],"nullable":true,"default":"lead"},"moduleSearch":{"type":"string","enum":["contact_lead","contact","lead"],"nullable":true,"default":"contact_lead"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","moduleCreate","moduleSearch","createdAt","updatedAt"]},"ZohoField":{"title":"ZohoField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"ZendeskAccount":{"title":"ZendeskAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"token":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"authType":{"type":"string","enum":["password","token"],"nullable":true,"default":"password"},"serverUrl":{"type":"string","nullable":true},"type":{"type":"string","enum":["integrationTab","newTab"],"nullable":true,"default":"integrationTab"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","authType","type","createdAt","updatedAt"]},"ZendeskConfiguration":{"title":"ZendeskConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"ZendeskField":{"title":"ZendeskField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"FreshdeskAccount":{"title":"FreshdeskAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"apiKey":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"serverUrl":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"FreshdeskConfiguration":{"title":"FreshdeskConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"FreshdeskField":{"title":"FreshdeskField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"VtigerAccount":{"title":"VtigerAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"username":{"type":"string"},"moduleName":{"type":"string","default":"HelpDesk"},"remoteUri":{"type":"string"},"serverUrl":{"type":"string","nullable":true},"accessKey":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","username","moduleName","remoteUri","accessKey","createdAt","updatedAt"]},"VtigerConfiguration":{"title":"VtigerConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"VtigerField":{"title":"VtigerField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"ServicenowAccount":{"title":"ServicenowAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"serverUrl":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"ServicenowConfiguration":{"title":"ServicenowConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"ServicenowField":{"title":"ServicenowField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"Dynamics365Account":{"title":"Dynamics365Account","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"tenantId":{"type":"string","nullable":true},"clientId":{"type":"string","nullable":true},"clientSecret":{"type":"string","nullable":true},"serverUrl":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"Dynamics365Configuration":{"title":"Dynamics365Configuration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"ticketType":{"type":"string","enum":["incident","phonecall"],"nullable":true,"default":"incident"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","ticketType","createdAt","updatedAt"]},"Dynamics365Field":{"title":"Dynamics365Field","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"FreshsalesAccount":{"title":"FreshsalesAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"apiKey":{"type":"string","nullable":true},"remoteUri":{"type":"string","nullable":true},"serverUrl":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"FreshsalesConfiguration":{"title":"FreshsalesConfiguration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"AccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"FreshsalesField":{"title":"FreshsalesField","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["string","variable","customVariable","keyValue"],"nullable":true,"default":"string"},"content":{"type":"string","nullable":true},"key":{"type":"string","nullable":true},"keyType":{"type":"string","enum":["string","variable","customVariable"],"nullable":true},"keyContent":{"type":"string","nullable":true},"idField":{"type":"string","nullable":true},"nameField":{"type":"string","nullable":true},"customField":{"type":"boolean","nullable":true,"default":true},"variableName":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SubjectId":{"type":"integer","format":"int32","nullable":true},"DescriptionId":{"type":"integer","format":"int32","nullable":true},"FieldId":{"type":"integer","format":"int32","nullable":true},"VariableId":{"type":"integer","format":"int32","nullable":true}},"required":["id","type","customField","createdAt","updatedAt"]},"Network":{"title":"Network","type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string","enum":["localnet","externip","stun","turn"],"nullable":true},"value":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"ChatQueueReport":{"title":"ChatQueueReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"from":{"type":"string","nullable":true},"joinAt":{"type":"string","format":"date-time","nullable":true},"leaveAt":{"type":"string","format":"date-time","nullable":true},"acceptAt":{"type":"string","format":"date-time","nullable":true},"exitAt":{"type":"string","format":"date-time","nullable":true},"reason":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ChatWebsiteId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"ChatInteractionId":{"type":"integer","format":"int32","nullable":true},"ChatMessageId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"ChatQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","createdAt","updatedAt"]},"ChatInternalMessage":{"title":"ChatInternalMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string"},"read":{"type":"boolean","nullable":true,"default":false},"ChatInternalMessageId":{"type":"integer","format":"int32","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ChatGroupId":{"type":"integer","format":"int32","nullable":true},"FromId":{"type":"integer","format":"int32","nullable":true},"ToId":{"type":"integer","format":"int32","nullable":true}},"required":["id","body","read","createdAt","updatedAt"]},"JscriptyAnswerReport":{"title":"JscriptyAnswerReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"question":{"type":"string","nullable":true},"answer":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"projectname":{"type":"string","nullable":true},"queue":{"type":"string","nullable":true},"uniqueid":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"questionId":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SessionId":{"type":"integer","format":"int32","nullable":true},"ProjectId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"JscriptyQuestionReport":{"title":"JscriptyQuestionReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"question":{"type":"string","nullable":true},"answer":{"type":"string","nullable":true},"membername":{"type":"string","nullable":true},"projectname":{"type":"string","nullable":true},"queue":{"type":"string","nullable":true},"uniqueid":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"questionId":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SessionId":{"type":"integer","format":"int32","nullable":true},"ProjectId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"JscriptySessionReport":{"title":"JscriptySessionReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"starttime":{"type":"string","format":"date-time","nullable":true},"endtime":{"type":"string","format":"date-time","nullable":true},"membername":{"type":"string","nullable":true},"projectname":{"type":"string","nullable":true},"queue":{"type":"string","nullable":true},"uniqueid":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"calleridnum":{"type":"string","nullable":true},"completed":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"VoiceQueueId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"ProjectId":{"type":"integer","format":"int32","nullable":true}},"required":["id","completed","createdAt","updatedAt"]},"SmsQueueReport":{"title":"SmsQueueReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"from":{"type":"string","nullable":true},"joinAt":{"type":"string","format":"date-time","nullable":true},"leaveAt":{"type":"string","format":"date-time","nullable":true},"acceptAt":{"type":"string","format":"date-time","nullable":true},"exitAt":{"type":"string","format":"date-time","nullable":true},"reason":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SmsAccountId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"SmsInteractionId":{"type":"integer","format":"int32","nullable":true},"SmsMessageId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"SmsQueueId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","createdAt","updatedAt"]},"SquareReport":{"title":"SquareReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"network":{"type":"string","nullable":true},"network_script":{"type":"string","nullable":true},"request":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"language":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"uniqueid":{"type":"string","nullable":true},"version":{"type":"string","nullable":true},"callerid":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"callingpres":{"type":"string","nullable":true},"callingani2":{"type":"string","nullable":true},"callington":{"type":"string","nullable":true},"callingtns":{"type":"string","nullable":true},"dnid":{"type":"string","nullable":true},"rdnis":{"type":"string","nullable":true},"context":{"type":"string","nullable":true},"extension":{"type":"string","nullable":true},"priority":{"type":"string","nullable":true},"enhanced":{"type":"string","nullable":true},"accountcode":{"type":"string","nullable":true},"threadid":{"type":"string","nullable":true},"project_name":{"type":"string","nullable":true},"joinAt":{"type":"string","format":"date-time","nullable":true},"leaveAt":{"type":"string","format":"date-time","nullable":true},"bot":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","bot","createdAt","updatedAt"]},"SquareDetailsReport":{"title":"SquareDetailsReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string","nullable":true},"node":{"type":"string","nullable":true},"application":{"type":"string","nullable":true},"data":{"type":"string","nullable":true},"project_name":{"type":"string","nullable":true},"callerid":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"JscriptyProject":{"title":"JscriptyProject","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"formData":{"type":"string","nullable":true},"enableUncompleteSave":{"type":"boolean","nullable":true,"default":true},"sendUnpauseOnSubmit":{"type":"boolean","nullable":true,"default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","enableUncompleteSave","sendUnpauseOnSubmit","createdAt","updatedAt"]},"Setting":{"title":"Setting","type":"object","properties":{"id":{"type":"integer","format":"int32"},"min_internal":{"type":"integer","format":"int32","nullable":true,"default":1000},"min_mailbox":{"type":"integer","format":"int32","nullable":true,"default":1000},"agi_port":{"type":"integer","format":"int32","nullable":true,"default":4573},"soundPath":{"type":"string","nullable":true,"default":"/var/opt/motion2/server/files/sounds/converted"},"logo":{"type":"string","nullable":true},"defaultLogo":{"type":"boolean","nullable":true,"default":true},"loginLogo":{"type":"string","nullable":true},"defaultLoginLogo":{"type":"boolean","nullable":true,"default":true},"headerWhiteLabel":{"type":"string","nullable":true},"defaultHeaderWhiteLabel":{"type":"boolean","nullable":true,"default":true},"securePassword":{"type":"boolean","nullable":true,"default":true},"firstSetup":{"type":"boolean","nullable":true,"default":true},"stunaddr":{"type":"string","nullable":true},"turnaddr":{"type":"string","nullable":true},"turnusername":{"type":"string","nullable":true},"turnpassword":{"type":"string","nullable":true},"pageTitle":{"type":"string","nullable":true},"defaultPageTitle":{"type":"boolean","nullable":true,"default":true},"callRecordingEncryption":{"type":"boolean","nullable":true,"default":false},"passwordExpiresDays":{"type":"integer","format":"int32","nullable":true,"default":90},"phoneBarAutoUpdater":{"type":"boolean","nullable":true,"default":true},"phoneBarAutoUpdaterUrl":{"type":"string","nullable":true,"default":"https://www.xcally.com/bar/phonebar/autoupdater.xml"},"enableEmailPreview":{"type":"boolean","nullable":true,"default":false},"split":{"type":"boolean","nullable":true,"default":true},"splitSizeCsv":{"type":"integer","format":"int32","nullable":true,"default":5000},"splitSizePdf":{"type":"integer","format":"int32","nullable":true,"default":5000},"splitSizeXlsx":{"type":"integer","format":"int32","nullable":true,"default":5000},"messagesAlignment":{"type":"string","nullable":true,"default":"alternate"},"chatTimeout":{"type":"integer","format":"int32","nullable":true,"default":30},"phoneBarRememberMeEnabled":{"type":"boolean","nullable":true,"default":true},"preferred":{"type":"string","nullable":true},"defaultPreferred":{"type":"boolean","nullable":true,"default":true},"rtlSupport":{"type":"boolean","nullable":true,"default":false},"defaultScreenRecordingPath":{"type":"string","nullable":true},"allowedLoginAttempts":{"type":"integer","format":"int32","nullable":true,"default":5},"blockDuration":{"type":"integer","format":"int32","nullable":true,"default":10},"favicon":{"type":"string","nullable":true},"defaultFavicon":{"type":"boolean","nullable":true,"default":true},"loginMailFrequency":{"type":"integer","format":"int32","nullable":true,"default":10},"transcribe":{"type":"boolean","nullable":true,"default":false},"automaticTranscribe":{"type":"boolean","nullable":true,"default":false},"transcribeAccountId":{"type":"integer","format":"int32","nullable":true},"transcribeRegion":{"type":"string","nullable":true},"sentiment":{"type":"boolean","nullable":true,"default":false},"automaticSentiment":{"type":"boolean","nullable":true,"default":false},"sentimentAccountId":{"type":"integer","format":"int32","nullable":true},"sentimentRegion":{"type":"string","nullable":true},"language":{"type":"string","nullable":true},"bucket":{"type":"string","nullable":true},"googleSsoEnabled":{"type":"boolean","nullable":true,"default":false},"enforcePasswordHistory":{"type":"boolean","nullable":true,"default":true},"passwordHistoryLimit":{"type":"integer","format":"int32","nullable":true,"default":3},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","min_internal","min_mailbox","agi_port","soundPath","defaultLogo","defaultLoginLogo","defaultHeaderWhiteLabel","securePassword","firstSetup","defaultPageTitle","callRecordingEncryption","passwordExpiresDays","phoneBarAutoUpdater","phoneBarAutoUpdaterUrl","enableEmailPreview","split","splitSizeCsv","splitSizePdf","splitSizeXlsx","messagesAlignment","chatTimeout","phoneBarRememberMeEnabled","defaultPreferred","rtlSupport","allowedLoginAttempts","blockDuration","defaultFavicon","loginMailFrequency","transcribe","automaticTranscribe","sentiment","automaticSentiment","googleSsoEnabled","enforcePasswordHistory","passwordHistoryLimit","createdAt","updatedAt"]},"SquareOdbc":{"title":"SquareOdbc","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"dsn":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"SquareProject":{"title":"SquareProject","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"notes":{"type":"string","nullable":true},"preproduction":{"type":"string","format":"byte","nullable":true},"production":{"type":"string","format":"byte","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"SquareRecording":{"title":"SquareRecording","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string","nullable":true},"callerid":{"type":"string","nullable":true},"calleridname":{"type":"string","nullable":true},"context":{"type":"string","nullable":true},"extension":{"type":"string","nullable":true},"priority":{"type":"string","nullable":true},"accountcode":{"type":"string","nullable":true},"dnid":{"type":"string","nullable":true},"projectName":{"type":"string","nullable":true},"saveName":{"type":"string","nullable":true},"filename":{"type":"string","nullable":true},"savePath":{"type":"string","nullable":true},"format":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"SquareMessage":{"title":"SquareMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string","nullable":true},"body":{"type":"string"},"direction":{"type":"string","enum":["in","out"],"default":"out"},"providerName":{"type":"string","nullable":true},"providerResponse":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","body","direction","createdAt","updatedAt"]},"Team":{"title":"Team","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"License":{"title":"License","type":"object","properties":{"id":{"type":"integer","format":"int32"},"license":{"type":"string","nullable":true},"data1":{"type":"string","nullable":true},"data2":{"type":"string","nullable":true},"chatLicenseExceeded":{"type":"integer","format":"int32","nullable":true,"default":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","chatLicenseExceeded","createdAt","updatedAt"]},"Campaign":{"title":"Campaign","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"type":{"type":"string","enum":["ivr"],"default":"ivr"},"description":{"type":"string","nullable":true},"active":{"type":"boolean","nullable":true,"default":0},"limitCalls":{"type":"integer","format":"int32","nullable":true,"default":30},"dialOriginateCallerIdName":{"type":"string","nullable":true},"dialOriginateCallerIdNumber":{"type":"string","nullable":true},"dialOriginateTimeout":{"type":"integer","format":"int32","nullable":true,"default":30},"dialCongestionMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialCongestionRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialBusyMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialBusyRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialNoAnswerMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialNoAnswerRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialGlobalMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":4},"dialTimezone":{"type":"string","nullable":true,"default":null},"dialGlobalInterval":{"type":"string","nullable":true,"default":"07:00-22:00,*,*,*"},"dialCheckDuplicateType":{"type":"string","enum":["always","never","onlyIfOpen"],"nullable":true,"default":"always"},"dialAMDActive":{"type":"boolean","nullable":true,"default":0},"dialAMDInitialSilence":{"type":"integer","format":"int32","nullable":true,"default":2500},"dialAMDGreeting":{"type":"integer","format":"int32","nullable":true,"default":1500},"dialAMDAfterGreetingSilence":{"type":"integer","format":"int32","nullable":true,"default":800},"dialAMDTotalAnalysisTime":{"type":"integer","format":"int32","nullable":true,"default":5000},"dialAMDMinWordLength":{"type":"integer","format":"int32","nullable":true,"default":100},"dialAMDBetweenWordsSilence":{"type":"integer","format":"int32","nullable":true,"default":50},"dialAMDMaximumNumberOfWords":{"type":"integer","format":"int32","nullable":true,"default":3},"dialAMDSilenceThreshold":{"type":"integer","format":"int32","nullable":true,"default":256},"dialAMDMaximumWordLength":{"type":"integer","format":"int32","nullable":true,"default":5000},"dialOrderByScheduledAt":{"type":"string","enum":["DESC","ASC"],"nullable":true,"default":"DESC"},"dialPrefix":{"type":"string","nullable":true,"default":null},"dialRandomLastDigitCallerIdNumber":{"type":"integer","format":"int32","nullable":true,"default":0},"dialCutDigit":{"type":"integer","format":"int32","nullable":true,"default":0},"dialNoSuchNumberMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialNoSuchNumberRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialDropMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialDropRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialAbandonedMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialAbandonedRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialMachineMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialMachineRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"dialAgentRejectMaxRetry":{"type":"integer","format":"int32","nullable":true,"default":3},"dialAgentRejectRetryFrequency":{"type":"integer","format":"int32","nullable":true,"default":150},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"TrunkId":{"type":"integer","format":"int32","nullable":true},"TrunkBackupId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true},"SquareProjectId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","type","active","limitCalls","dialOriginateTimeout","dialCongestionMaxRetry","dialCongestionRetryFrequency","dialBusyMaxRetry","dialBusyRetryFrequency","dialNoAnswerMaxRetry","dialNoAnswerRetryFrequency","dialGlobalMaxRetry","dialTimezone","dialGlobalInterval","dialCheckDuplicateType","dialAMDActive","dialAMDInitialSilence","dialAMDGreeting","dialAMDAfterGreetingSilence","dialAMDTotalAnalysisTime","dialAMDMinWordLength","dialAMDBetweenWordsSilence","dialAMDMaximumNumberOfWords","dialAMDSilenceThreshold","dialAMDMaximumWordLength","dialOrderByScheduledAt","dialPrefix","dialRandomLastDigitCallerIdNumber","dialCutDigit","dialNoSuchNumberMaxRetry","dialNoSuchNumberRetryFrequency","dialDropMaxRetry","dialDropRetryFrequency","dialAbandonedMaxRetry","dialAbandonedRetryFrequency","dialMachineMaxRetry","dialMachineRetryFrequency","dialAgentRejectMaxRetry","dialAgentRejectRetryFrequency","createdAt","updatedAt"]},"Migration":{"title":"Migration","type":"object","properties":{"id":{"type":"integer","format":"int32"},"version":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"Attachment":{"title":"Attachment","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"basename":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailMessageId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"Plugin":{"title":"Plugin","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"type":{"type":"string","enum":["html","script"],"nullable":true},"description":{"type":"string","nullable":true},"version":{"type":"string","nullable":true},"path":{"type":"string","nullable":true},"active":{"type":"boolean","nullable":true,"default":0},"sidebar":{"type":"string","enum":["adminOnly","agentOnly","always","never"],"nullable":true,"default":"always"},"icon":{"type":"string","nullable":true},"adminUrl":{"type":"string","nullable":true},"agentUrl":{"type":"string","nullable":true},"scriptName":{"type":"string","nullable":true},"scriptPath":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","active","sidebar","createdAt","updatedAt"]},"MailTransferReport":{"title":"MailTransferReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","format":"date-time","default":{}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"MailMessageId":{"type":"integer","format":"int32","nullable":true},"MailInteractionId":{"type":"integer","format":"int32","nullable":true},"FromMailAccountId":{"type":"integer","format":"int32","nullable":true},"FromUserId":{"type":"integer","format":"int32","nullable":true},"ToUserId":{"type":"integer","format":"int32","nullable":true},"ToMailQueueId":{"type":"integer","format":"int32","nullable":true},"ToMailAccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","type","transferredAt","createdAt","updatedAt"]},"ChatTransferReport":{"title":"ChatTransferReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","format":"date-time","default":{}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ChatMessageId":{"type":"integer","format":"int32","nullable":true},"ChatInteractionId":{"type":"integer","format":"int32","nullable":true},"FromChatWebsiteId":{"type":"integer","format":"int32","nullable":true},"FromUserId":{"type":"integer","format":"int32","nullable":true},"ToUserId":{"type":"integer","format":"int32","nullable":true},"ToChatQueueId":{"type":"integer","format":"int32","nullable":true},"ToChatWebsiteId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","type","transferredAt","createdAt","updatedAt"]},"FaxTransferReport":{"title":"FaxTransferReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","format":"date-time","default":{}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"FaxMessageId":{"type":"integer","format":"int32","nullable":true},"FaxInteractionId":{"type":"integer","format":"int32","nullable":true},"FromFaxAccountId":{"type":"integer","format":"int32","nullable":true},"FromUserId":{"type":"integer","format":"int32","nullable":true},"ToUserId":{"type":"integer","format":"int32","nullable":true},"ToFaxQueueId":{"type":"integer","format":"int32","nullable":true},"ToFaxAccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","type","transferredAt","createdAt","updatedAt"]},"OpenchannelTransferReport":{"title":"OpenchannelTransferReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","format":"date-time","default":{}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"OpenchannelMessageId":{"type":"integer","format":"int32","nullable":true},"OpenchannelInteractionId":{"type":"integer","format":"int32","nullable":true},"FromOpenchannelAccountId":{"type":"integer","format":"int32","nullable":true},"FromUserId":{"type":"integer","format":"int32","nullable":true},"ToUserId":{"type":"integer","format":"int32","nullable":true},"ToOpenchannelQueueId":{"type":"integer","format":"int32","nullable":true},"ToOpenchannelAccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","type","transferredAt","createdAt","updatedAt"]},"SmsTransferReport":{"title":"SmsTransferReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"],"default":"queue"},"transferredAt":{"type":"string","format":"date-time","default":{}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SmsMessageId":{"type":"integer","format":"int32","nullable":true},"SmsInteractionId":{"type":"integer","format":"int32","nullable":true},"FromSmsAccountId":{"type":"integer","format":"int32","nullable":true},"FromUserId":{"type":"integer","format":"int32","nullable":true},"ToUserId":{"type":"integer","format":"int32","nullable":true},"ToSmsQueueId":{"type":"integer","format":"int32","nullable":true},"ToSmsAccountId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","type","transferredAt","createdAt","updatedAt"]},"CmList":{"title":"CmList","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"dialPrefix":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"VoicePrefix":{"title":"VoicePrefix","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"prefix":{"anyOf":[{"type":"object"},{"type":"array"},{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"nullable":true},"description":{"type":"string","nullable":true},"callerIdAll":{"type":"string","nullable":true},"VoiceExtensionId":{"type":"integer","format":"int32","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"]},"UserProfile":{"title":"UserProfile","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"crudPermissions":{"type":"string","default":"r"},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","crudPermissions","createdAt","updatedAt"]},"UserProfileSection":{"title":"UserProfileSection","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"category":{"type":"string"},"sectionId":{"type":"integer","format":"int32"},"enabled":{"type":"boolean","nullable":true,"default":null},"autoAssociation":{"type":"boolean","nullable":true,"default":null},"crudPermissions":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userProfileId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","category","sectionId","enabled","autoAssociation","createdAt","updatedAt"]},"UserProfileResource":{"title":"UserProfileResource","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"resourceId":{"type":"integer","format":"int32"},"type":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"sectionId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","resourceId","type","createdAt","updatedAt"]},"Notification":{"title":"Notification","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string","nullable":true},"senderName":{"type":"string","nullable":true},"recipientsId":{"type":"string","nullable":true},"recipientsDescription":{"type":"string","nullable":true},"beep":{"type":"boolean","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"SenderId":{"type":"integer","format":"int32","nullable":true}},"required":["id","createdAt","updatedAt"]},"WhatsappAccount":{"title":"WhatsappAccount","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"key":{"type":"string"},"remote":{"type":"string"},"token":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"type":{"type":"string","enum":["twilio"],"nullable":true},"accountSid":{"type":"string","nullable":true},"authToken":{"type":"string","nullable":true},"notificationTemplate":{"type":"string","nullable":true},"notificationSound":{"type":"boolean","nullable":true,"default":false},"notificationShake":{"type":"boolean","nullable":true,"default":false},"waitForTheAssignedAgent":{"type":"integer","format":"int32","nullable":true,"default":10},"queueTransfer":{"type":"boolean","nullable":true,"default":false},"queueTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"agentTransfer":{"type":"boolean","nullable":true,"default":false},"agentTransferTimeout":{"type":"integer","format":"int32","nullable":true,"default":300},"mandatoryDispositionPauseId":{"type":"integer","format":"int32","nullable":true},"mandatoryDisposition":{"type":"boolean","nullable":true,"default":false},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"ListId":{"type":"integer","format":"int32","nullable":true}},"required":["id","name","key","remote","token","notificationTemplate","notificationSound","notificationShake","waitForTheAssignedAgent","queueTransfer","queueTransferTimeout","agentTransfer","agentTransferTimeout","mandatoryDisposition","createdAt","updatedAt"]},"WhatsappApplication":{"title":"WhatsappApplication","type":"object","properties":{"id":{"type":"integer","format":"int32"},"priority":{"type":"integer","format":"int32"},"app":{"type":"string","default":"noop"},"appdata":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"interval":{"type":"string","nullable":true,"default":"*,*,*,*"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"WhatsappAccountId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"WhatsappQueueId":{"type":"integer","format":"int32","nullable":true},"IntervalId":{"type":"integer","format":"int32","nullable":true},"TagId":{"type":"integer","format":"int32","nullable":true}},"required":["id","priority","app","interval","createdAt","updatedAt"]},"WhatsappInteraction":{"title":"WhatsappInteraction","type":"object","properties":{"id":{"type":"integer","format":"int32"},"closed":{"type":"boolean","nullable":true,"default":false},"closedAt":{"type":"string","format":"date-time","nullable":true},"disposition":{"type":"string","nullable":true},"secondDisposition":{"type":"string","nullable":true},"thirdDisposition":{"type":"string","nullable":true},"note":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"read1stAt":{"type":"string","format":"date-time","nullable":true},"firstMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"lastMsgAt":{"type":"string","format":"date-time","nullable":true},"lastMsgDirection":{"type":"string","enum":["in","out"],"default":"in"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"UserId":{"type":"integer","format":"int32","nullable":true},"WhatsappAccountId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","closed","firstMsgDirection","lastMsgDirection","createdAt","updatedAt"]},"WhatsappMessage":{"title":"WhatsappMessage","type":"object","properties":{"id":{"type":"integer","format":"int32"},"body":{"type":"string"},"read":{"type":"boolean","nullable":true,"default":false},"direction":{"type":"string","enum":["in","out"],"default":"out"},"messageId":{"type":"string","maxLength":190,"nullable":true},"phone":{"type":"string","nullable":true},"readAt":{"type":"string","format":"date-time","nullable":true},"secret":{"type":"boolean","nullable":true,"default":false},"providerName":{"type":"string","nullable":true},"providerResponse":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"WhatsappAccountId":{"type":"integer","format":"int32","nullable":true},"WhatsappInteractionId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true}},"required":["id","body","read","direction","secret","createdAt","updatedAt"]},"WhatsappQueueReport":{"title":"WhatsappQueueReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"from":{"type":"string","nullable":true},"joinAt":{"type":"string","format":"date-time","nullable":true},"leaveAt":{"type":"string","format":"date-time","nullable":true},"acceptAt":{"type":"string","format":"date-time","nullable":true},"exitAt":{"type":"string","format":"date-time","nullable":true},"reason":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"WhatsappAccountId":{"type":"integer","format":"int32","nullable":true},"ListId":{"type":"integer","format":"int32","nullable":true},"ContactId":{"type":"integer","format":"int32","nullable":true},"WhatsappInteractionId":{"type":"integer","format":"int32","nullable":true},"WhatsappQueueId":{"type":"integer","format":"int32","nullable":true},"WhatsappMessageId":{"type":"integer","format":"int32","nullable":true},"UserId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","createdAt","updatedAt"]},"WhatsappTransferReport":{"title":"WhatsappTransferReport","type":"object","properties":{"id":{"type":"integer","format":"int32"},"uniqueid":{"type":"string"},"type":{"type":"string","enum":["account","agent","queue"]},"transferredAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"WhatsappMessageId":{"type":"integer","format":"int32","nullable":true},"WhatsappInteractionId":{"type":"integer","format":"int32","nullable":true},"FromWhatsappAccountId":{"type":"integer","format":"int32","nullable":true},"ToWhatsappAccountId":{"type":"integer","format":"int32","nullable":true},"ToQueueId":{"type":"integer","format":"int32","nullable":true},"FromUserId":{"type":"integer","format":"int32","nullable":true},"ToUserId":{"type":"integer","format":"int32","nullable":true}},"required":["id","uniqueid","type","createdAt","updatedAt"]},"WhatsappQueue":{"title":"WhatsappQueue","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","nullable":true},"timeout":{"type":"integer","format":"int32","nullable":true},"strategy":{"type":"string","enum":["rrmemory","beepall","roundrobin"],"nullable":true},"description":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"]},"CloudProvider":{"title":"CloudProvider","type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"service":{"type":"string","enum":["AmazonAWS","Google"]},"data1":{"type":"string","nullable":true},"data2":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","service","createdAt","updatedAt"]}}},"tags":[]} diff --git a/public/schemas/openapi/openapi.yml b/public/schemas/openapi/openapi.yml index ee3aa92..46742f9 100644 --- a/public/schemas/openapi/openapi.yml +++ b/public/schemas/openapi/openapi.yml @@ -63096,7 +63096,7 @@ components: type: string format: date-time nullable: true - default: 2020-12-04 19:45:06 + default: 2020-12-04 20:00:00 countbusyretry: type: integer format: int32 @@ -64279,7 +64279,7 @@ components: dtm: type: string format: date-time - default: 2020-12-04 19:45:06 + default: 2020-12-04 20:00:00 required: - id - callid diff --git a/public/service-worker.js b/public/service-worker.js index a3d55fd..3a31a25 100644 --- a/public/service-worker.js +++ b/public/service-worker.js @@ -1,2 +1,2 @@ -(()=>{"use strict";var e={913:()=>{try{self["workbox:core:6.0.2"]&&_()}catch(e){}},977:()=>{try{self["workbox:precaching:6.0.2"]&&_()}catch(e){}},80:()=>{try{self["workbox:routing:6.0.2"]&&_()}catch(e){}},873:()=>{try{self["workbox:strategies:6.0.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.2"]&&_()}catch(e){}},977:()=>{try{self["workbox:precaching:6.0.2"]&&_()}catch(e){}},80:()=>{try{self["workbox:routing:6.0.2"]&&_()}catch(e){}},873:()=>{try{self["workbox:strategies:6.0.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=_0x221797?(_0x496ba8=_0x221797,_0x4efb19=0xc8):_0x4efb19=0xce,_0x4984b6['status'](_0x4efb19),_0x4984b6['set']('Content-Range',_0x19eab4+'-'+_0x496ba8+'/'+_0x221797)[_0x4edda2(0x11e)](_0x8191a0);}return null;};}function saveUpdates(_0x41f775){return function(_0x2df2c9){const _0x51e997=a6_0x1e37;if(_0x2df2c9)return _0x2df2c9[_0x51e997(0x18d)](_0x41f775)['then'](function(_0xb40997){return _0xb40997;});return null;};}function removeEntity(_0x2b51f3){return function(_0x276eef){const _0x10763b=a6_0x1e37;if(_0x276eef)return _0x276eef['destroy']()['then'](function(){const _0x249ccc=a6_0x1e37,_0x5ab40a=_0x276eef['get']({'plain':!![]}),_0x1fe7f6=_0x249ccc(0x194);return db[_0x249ccc(0x19b)][_0x249ccc(0x17d)]({'where':{'type':_0x1fe7f6,'resourceId':_0x5ab40a['id']}})[_0x249ccc(0x130)](function(){return _0x276eef;});})[_0x10763b(0x130)](function(){const _0x169319=_0x10763b;_0x2b51f3[_0x169319(0x138)](0xcc)[_0x169319(0x15e)]();});};}function handleEntityNotFound(_0x3c11b1){return function(_0x372755){const _0x4ad529=a6_0x1e37;return!_0x372755&&_0x3c11b1[_0x4ad529(0x14c)](0x194),_0x372755;};}function handleError(_0x1867d4,_0x4580b8){return _0x4580b8=_0x4580b8||0x1f4,function(_0xe0b558){const _0x195d6e=a6_0x1e37;logger[_0x195d6e(0x17e)](_0xe0b558[_0x195d6e(0x176)]),_0xe0b558[_0x195d6e(0x13e)]&&delete _0xe0b558[_0x195d6e(0x13e)],_0x1867d4[_0x195d6e(0x138)](_0x4580b8)[_0x195d6e(0x14e)](_0xe0b558);};}exports['index']=function(_0x51e54d,_0x50aa55){const _0x1d153c=a6_0x1d10ad;let _0x145bc9={};const _0x5004e8={},_0x580b6d={'count':0x0,'rows':[]},_0x4691ee=_[_0x1d153c(0x18b)](db[_0x1d153c(0x135)]['rawAttributes'],function(_0x2ece7d){const _0x171990=_0x1d153c;return{'name':_0x2ece7d[_0x171990(0x172)],'type':_0x2ece7d[_0x171990(0x14a)]['key']};});_0x5004e8[_0x1d153c(0x13a)]=_[_0x1d153c(0x18b)](_0x4691ee,_0x1d153c(0x13e)),_0x5004e8['query']=_[_0x1d153c(0x126)](_0x51e54d[_0x1d153c(0x123)]),_0x5004e8[_0x1d153c(0x186)]=_[_0x1d153c(0x156)](_0x5004e8['model'],_0x5004e8['query']),_0x145bc9[_0x1d153c(0x197)]=_[_0x1d153c(0x156)](_0x5004e8[_0x1d153c(0x13a)],qs[_0x1d153c(0x162)](_0x51e54d['query'][_0x1d153c(0x162)])),_0x145bc9[_0x1d153c(0x197)]=_0x145bc9[_0x1d153c(0x197)]['length']?_0x145bc9['attributes']:_0x5004e8[_0x1d153c(0x13a)];typeof _0x51e54d[_0x1d153c(0x123)][_0x1d153c(0x121)]===_0x1d153c(0x137)&&(_0x145bc9['limit']=qs[_0x1d153c(0x145)](_0x51e54d[_0x1d153c(0x123)][_0x1d153c(0x145)]),_0x145bc9[_0x1d153c(0x161)]=qs[_0x1d153c(0x161)](_0x51e54d[_0x1d153c(0x123)][_0x1d153c(0x161)]));_0x145bc9['order']=qs[_0x1d153c(0x11b)](_0x51e54d['query'][_0x1d153c(0x11b)]),_0x145bc9[_0x1d153c(0x19c)]=qs['filters'](_[_0x1d153c(0x168)](_0x51e54d[_0x1d153c(0x123)],_0x5004e8[_0x1d153c(0x186)]),_0x4691ee);_0x51e54d['query'][_0x1d153c(0x13f)]&&(_0x145bc9[_0x1d153c(0x19c)]=_[_0x1d153c(0x181)](_0x145bc9['where'],{[Op['or']]:_[_0x1d153c(0x18b)](_0x4691ee,function(_0x4bafc5){const _0x74fb43=_0x1d153c;if(_0x4bafc5['type']!=='VIRTUAL'){const _0x106db2={};return _0x106db2[_0x4bafc5[_0x74fb43(0x13e)]]={[Op[_0x74fb43(0x179)]]:'%'+_0x51e54d[_0x74fb43(0x123)][_0x74fb43(0x13f)]+'%'},_0x106db2;}})}));_0x145bc9=_[_0x1d153c(0x181)]({},_0x145bc9,_0x51e54d[_0x1d153c(0x195)]);const _0x172e57={'where':_0x145bc9[_0x1d153c(0x19c)]};return db['AnalyticCustomReport'][_0x1d153c(0x18c)](_0x172e57)[_0x1d153c(0x130)](function(_0x152c91){const _0x43fd5a=_0x1d153c;return _0x580b6d[_0x43fd5a(0x18c)]=_0x152c91,_0x51e54d[_0x43fd5a(0x123)][_0x43fd5a(0x15b)]&&(_0x145bc9[_0x43fd5a(0x115)]=[{'all':!![]}]),db[_0x43fd5a(0x135)][_0x43fd5a(0x13d)](_0x145bc9);})['then'](function(_0xb0c78e){const _0xcb2834=_0x1d153c;return _0x580b6d[_0xcb2834(0x16b)]=_0xb0c78e,_0x580b6d;})[_0x1d153c(0x130)](respondWithFilteredResult(_0x50aa55,_0x145bc9))[_0x1d153c(0x159)](handleError(_0x50aa55,null));},exports[a6_0x1d10ad(0x182)]=function(_0x59c99a,_0x2d196e){const _0x179788=a6_0x1d10ad;let _0x17daf4={'raw':![],'where':{'id':_0x59c99a[_0x179788(0x132)]['id']}};const _0x1bc74f={};return _0x1bc74f[_0x179788(0x13a)]=_[_0x179788(0x126)](db[_0x179788(0x135)][_0x179788(0x134)]),_0x1bc74f[_0x179788(0x123)]=_[_0x179788(0x126)](_0x59c99a['query']),_0x1bc74f[_0x179788(0x186)]=_[_0x179788(0x156)](_0x1bc74f['model'],_0x1bc74f[_0x179788(0x123)]),_0x17daf4[_0x179788(0x197)]=_[_0x179788(0x156)](_0x1bc74f[_0x179788(0x13a)],qs['fields'](_0x59c99a[_0x179788(0x123)][_0x179788(0x162)])),_0x17daf4[_0x179788(0x197)]=_0x17daf4[_0x179788(0x197)][_0x179788(0x14f)]?_0x17daf4[_0x179788(0x197)]:_0x1bc74f[_0x179788(0x13a)],_0x59c99a['query'][_0x179788(0x15b)]&&(_0x17daf4[_0x179788(0x115)]=[{'all':!![]}]),_0x17daf4=_['merge']({},_0x17daf4,_0x59c99a[_0x179788(0x195)]),db[_0x179788(0x135)][_0x179788(0x16e)](_0x17daf4)[_0x179788(0x130)](handleEntityNotFound(_0x2d196e,null))[_0x179788(0x130)](respondWithResult(_0x2d196e,null))['catch'](handleError(_0x2d196e,null));},exports['create']=function(_0x3ffa57,_0x304283){const _0x2a1a95=a6_0x1d10ad;return db[_0x2a1a95(0x135)]['create'](_0x3ffa57[_0x2a1a95(0x129)],{})[_0x2a1a95(0x130)](function(_0x49ec5c){const _0x293363=_0x2a1a95,_0x55eaaa=_0x3ffa57[_0x293363(0x133)][_0x293363(0x127)]({'plain':!![]});if(!_0x55eaaa)throw new Error(_0x293363(0x16c));if(_0x55eaaa[_0x293363(0x171)]===_0x293363(0x133)){const _0x416608=_0x49ec5c[_0x293363(0x127)]({'plain':!![]}),_0x20b67c='Reports';return db['UserProfileSection']['findOne']({'where':{'name':_0x20b67c,'userProfileId':_0x55eaaa[_0x293363(0x19d)]},'raw':!![]})[_0x293363(0x130)](function(_0xad55f7){const _0x32462a=_0x293363;return _0xad55f7&&_0xad55f7[_0x32462a(0x177)]===0x0?db[_0x32462a(0x19b)][_0x32462a(0x17f)]({'name':_0x416608['name'],'resourceId':_0x416608['id'],'type':_0x32462a(0x194),'sectionId':_0xad55f7['id']},{})[_0x32462a(0x130)](function(){return _0x49ec5c;}):_0x49ec5c;})['catch'](function(_0x32ec25){const _0x5d3b40=_0x293363;logger['error'](_0x5d3b40(0x158),_0x32ec25);throw _0x32ec25;});}return _0x49ec5c;})['then'](respondWithResult(_0x304283,0xc9))[_0x2a1a95(0x159)](handleError(_0x304283,null));},exports[a6_0x1d10ad(0x18d)]=function(_0x35de2c,_0x144658){const _0x50102a=a6_0x1d10ad;return _0x35de2c['body']['id']&&delete _0x35de2c['body']['id'],db['AnalyticCustomReport'][_0x50102a(0x16e)]({'where':{'id':_0x35de2c[_0x50102a(0x132)]['id']}})[_0x50102a(0x130)](handleEntityNotFound(_0x144658,null))[_0x50102a(0x130)](saveUpdates(_0x35de2c['body'],null))['then'](respondWithResult(_0x144658,null))['catch'](handleError(_0x144658,null));},exports[a6_0x1d10ad(0x17d)]=function(_0x4fa220,_0x35fcc9){const _0x49300e=a6_0x1d10ad;return db['AnalyticCustomReport'][_0x49300e(0x16e)]({'where':{'id':_0x4fa220[_0x49300e(0x132)]['id']}})[_0x49300e(0x130)](handleEntityNotFound(_0x35fcc9,null))[_0x49300e(0x130)](removeEntity(_0x35fcc9,null))[_0x49300e(0x159)](handleError(_0x35fcc9,null));},exports[a6_0x1d10ad(0x114)]=function(_0x3d3383,_0x5a3692){const _0x2972cf=a6_0x1d10ad,_0x1d3598=0xa,_0x3a4c38=[_0x2972cf(0x199),'left_join',_0x2972cf(0x19a),'cross_join'],_0x378361={'SUM':_0x2972cf(0x152),'COUNT':_0x2972cf(0x157),'COUNT\x20DISTINCT':_0x2972cf(0x174),'MAX':_0x2972cf(0x13c),'MIN':_0x2972cf(0x18f),'AVG':_0x2972cf(0x131),'GROUP_CONCAT':'GROUP_CONCAT(%s)','GROUP_CONCAT\x20ASC':_0x2972cf(0x166),'GROUP_CONCAT\x20DESC':_0x2972cf(0x18a)},_0x1bdb4c={'SEC_TO_TIME':_0x2972cf(0x125),'DATE':_0x2972cf(0x11d),'HOUR':_0x2972cf(0x12a),'ROUND':_0x2972cf(0x141),'UNIX_TIMESTAMP':_0x2972cf(0x173)},_0x51b22f=function(_0x37a16d){const _0x34c4e6=_0x2972cf;return!_[_0x34c4e6(0x184)]([_0x34c4e6(0x178),'IS\x20NOT\x20NULL',_0x34c4e6(0x14b),'IS\x20NOT\x20EMPTY'],_0x37a16d);},_0x2668e=function(_0x10eebb){const _0x540ce8=_0x2972cf;if(!_0x10eebb||!_0x10eebb[_0x540ce8(0x153)]['length'])return'';let _0x31d8fb='(';for(let _0x3d7932=0x0;_0x3d7932<_0x10eebb[_0x540ce8(0x153)][_0x540ce8(0x14f)];_0x3d7932+=0x1){_0x3d7932>0x0&&(_0x31d8fb+='\x20'+_0x10eebb['operator']+'\x20'),_0x31d8fb+=_0x10eebb['rules'][_0x3d7932][_0x540ce8(0x15a)]?_0x2668e(_0x10eebb['rules'][_0x3d7932][_0x540ce8(0x15a)]):_0x10eebb[_0x540ce8(0x153)][_0x3d7932][_0x540ce8(0x191)]+'\x20'+_0x10eebb[_0x540ce8(0x153)][_0x3d7932][_0x540ce8(0x15d)]+(_0x51b22f(_0x10eebb['rules'][_0x3d7932][_0x540ce8(0x15d)])?'\x20'+_0x10eebb[_0x540ce8(0x153)][_0x3d7932][_0x540ce8(0x143)]:'');}return _0x31d8fb+')';};let _0x3b060f={'where':{'id':_0x3d3383[_0x2972cf(0x132)]['id']}},_0x16b663,_0x2fb610,_0xc30c79;return _0x3b060f=_[_0x2972cf(0x181)]({},_0x3b060f,_0x3d3383[_0x2972cf(0x195)]),db[_0x2972cf(0x135)]['findOne'](_0x3b060f)[_0x2972cf(0x130)](function(_0xc7ce58){if(_0xc7ce58)return _0x16b663=_0xc7ce58,_0xc7ce58['getFields']();return null;})[_0x2972cf(0x130)](function(_0x291ae8){const _0xf435e2=_0x2972cf;if(_0x291ae8){if(!_0x291ae8[_0xf435e2(0x14f)])throw new ValidationErrorItem(_0xf435e2(0x183),0x193);return _0x2fb610=_0x291ae8,db[_0xf435e2(0x160)][_0xf435e2(0x13d)]({'raw':!![]});}return null;})[_0x2972cf(0x130)](function(_0x3765a9){const _0x1464ed=_0x2972cf;if(_0x3765a9){_0xc30c79=_[_0x1464ed(0x119)](_0x3765a9,'id');let _0x332462;const _0x41737e=squel[_0x1464ed(0x116)]();_0x41737e[_0x1464ed(0x139)](_0x16b663[_0x1464ed(0x167)]);for(let _0x2cce0c=0x0;_0x2cce0c<_0x2fb610[_0x1464ed(0x14f)];_0x2cce0c+=0x1){_0x332462=_0x2fb610[_0x2cce0c][_0x1464ed(0x12d)]?_0xc30c79[_0x2fb610[_0x2cce0c][_0x1464ed(0x12d)]][_0x1464ed(0x18e)]:_0x2fb610[_0x2cce0c]['field'],_0x332462=_0x2fb610[_0x2cce0c][_0x1464ed(0x16f)]?_['replace'](_0x378361[_0x2fb610[_0x2cce0c][_0x1464ed(0x16f)]],'%s',_0x332462):_0x332462,_0x332462=_0x2fb610[_0x2cce0c][_0x1464ed(0x185)]?_[_0x1464ed(0x142)](_0x1bdb4c[_0x2fb610[_0x2cce0c][_0x1464ed(0x185)]],'%s',_0x332462):_0x332462,_0x2fb610[_0x2cce0c][_0x1464ed(0x12c)]&&_0x41737e[_0x1464ed(0x15a)](_0x332462),_0x2fb610[_0x2cce0c][_0x1464ed(0x151)]&&_0x41737e[_0x1464ed(0x17c)](_0x332462,_0x2fb610[_0x2cce0c][_0x1464ed(0x151)]===_0x1464ed(0x155)?![]:!![]),_0x41737e['field'](_0x332462,_0x2fb610[_0x2cce0c][_0x1464ed(0x11c)]||_0x332462);}if(_0x16b663[_0x1464ed(0x188)]){_0x16b663['joins']=JSON['parse'](_0x16b663[_0x1464ed(0x188)]);for(let _0x87fc4=0x0;_0x87fc4<_0x16b663['joins'][_0x1464ed(0x14f)];_0x87fc4+=0x1){_0x16b663[_0x1464ed(0x188)][_0x87fc4][_0x1464ed(0x14a)]&&_[_0x1464ed(0x184)](_0x3a4c38,_0x16b663[_0x1464ed(0x188)][_0x87fc4]['type'])&&_0x16b663[_0x1464ed(0x188)][_0x87fc4][_0x1464ed(0x16a)]&&_0x16b663[_0x1464ed(0x188)][_0x87fc4][_0x1464ed(0x163)]&&_0x16b663[_0x1464ed(0x188)][_0x87fc4][_0x1464ed(0x187)]&&_0x41737e[_0x16b663['joins'][_0x87fc4][_0x1464ed(0x14a)]](_0x16b663[_0x1464ed(0x188)][_0x87fc4]['foreignTable'],null,util['format'](_0x1464ed(0x154),_0x16b663[_0x1464ed(0x167)],_0x16b663[_0x1464ed(0x188)][_0x87fc4]['parentKey'],_0x16b663[_0x1464ed(0x188)][_0x87fc4][_0x1464ed(0x163)],_0x16b663[_0x1464ed(0x188)][_0x87fc4][_0x1464ed(0x187)]));}}return _0x16b663[_0x1464ed(0x190)]&&(_0x16b663['conditions']=JSON['parse'](_0x16b663['conditions']),_0x41737e[_0x1464ed(0x19c)](_0x2668e(_0x16b663[_0x1464ed(0x190)]['group']))),_0x41737e['limit'](_0x1d3598),_0x41737e[_0x1464ed(0x161)](0x0),logger[_0x1464ed(0x120)](_0x1464ed(0x14d),_0x41737e[_0x1464ed(0x193)]()),db[_0x1464ed(0x15f)][_0x1464ed(0x123)](_0x41737e[_0x1464ed(0x193)](),{'type':QueryTypes[_0x1464ed(0x12f)]});}})[_0x2972cf(0x130)](respondWithResult(_0x5a3692,null))[_0x2972cf(0x159)](handleError(_0x5a3692,null));};function runReport(_0x526809,_0x57c1af,_0xcf8526){const _0x5cd0ff=a6_0x1d10ad,_0x82c273=_0x57c1af[_0x5cd0ff(0x13e)],_0x330853=0xa,_0xabb484=[_0x5cd0ff(0x199),'left_join',_0x5cd0ff(0x19a),_0x5cd0ff(0x17a)],_0x4c64a7={'SUM':_0x5cd0ff(0x152),'COUNT':_0x5cd0ff(0x157),'COUNT\x20DISTINCT':_0x5cd0ff(0x174),'MAX':_0x5cd0ff(0x13c),'MIN':_0x5cd0ff(0x18f),'AVG':'AVG(%s)','GROUP_CONCAT':_0x5cd0ff(0x16d),'GROUP_CONCAT\x20ASC':_0x5cd0ff(0x166),'GROUP_CONCAT\x20DESC':_0x5cd0ff(0x18a)},_0x351886={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':'DATE(%s)','HOUR':_0x5cd0ff(0x12a),'ROUND':_0x5cd0ff(0x141),'UNIX_TIMESTAMP':_0x5cd0ff(0x173)},_0x2c48a3=function(_0x40027e){const _0x438c9c=_0x5cd0ff;return!_['includes']([_0x438c9c(0x178),_0x438c9c(0x144),_0x438c9c(0x14b),_0x438c9c(0x169)],_0x40027e);},_0xd55e74=function(_0x234f70){const _0x212e08=_0x5cd0ff;if(!_0x234f70||!_0x234f70[_0x212e08(0x153)][_0x212e08(0x14f)])return'';let _0x1efb86='(';for(let _0x1265e6=0x0;_0x1265e6<_0x234f70[_0x212e08(0x153)][_0x212e08(0x14f)];_0x1265e6+=0x1){_0x1265e6>0x0&&(_0x1efb86+='\x20'+_0x234f70['operator']+'\x20'),_0x1efb86+=_0x234f70['rules'][_0x1265e6][_0x212e08(0x15a)]?_0xd55e74(_0x234f70[_0x212e08(0x153)][_0x1265e6][_0x212e08(0x15a)]):_0x234f70['rules'][_0x1265e6][_0x212e08(0x191)]+'\x20'+_0x234f70[_0x212e08(0x153)][_0x1265e6][_0x212e08(0x15d)]+(_0x2c48a3(_0x234f70[_0x212e08(0x153)][_0x1265e6][_0x212e08(0x15d)])?'\x20'+_0x234f70['rules'][_0x1265e6][_0x212e08(0x143)]:'');}return _0x1efb86+')';};let _0x4785cc={'where':{'id':_0x526809['id']}},_0x4445a0,_0x265a79,_0x41c945,_0x303c7c,_0x5c2747;return _0x4785cc=_[_0x5cd0ff(0x181)]({},_0x4785cc,_0xcf8526),db[_0x5cd0ff(0x135)]['findOne'](_0x4785cc)[_0x5cd0ff(0x130)](function(_0x922a7d){const _0x58276c=_0x5cd0ff;if(_0x922a7d)return _0x4445a0=_0x922a7d,_0x922a7d[_0x58276c(0x140)]();return null;})['then'](function(_0x2e233e){const _0x340867=_0x5cd0ff;if(_0x2e233e){if(!_0x2e233e[_0x340867(0x14f)])throw new ValidationErrorItem(_0x340867(0x183),0x193);return _0x265a79=_0x2e233e,db[_0x340867(0x160)][_0x340867(0x13d)]({'raw':!![]});}return null;})[_0x5cd0ff(0x130)](function(_0x29043a){const _0xb60115=_0x5cd0ff;if(_0x29043a){_0x41c945=_[_0xb60115(0x119)](_0x29043a,'id');let _0xc2db3c;const _0x355a96=squel[_0xb60115(0x116)]();_0x355a96[_0xb60115(0x139)](_0x4445a0['table']);for(let _0x5e4a21=0x0;_0x5e4a21<_0x265a79[_0xb60115(0x14f)];_0x5e4a21+=0x1){_0xc2db3c=_0x265a79[_0x5e4a21]['MetricId']?_0x41c945[_0x265a79[_0x5e4a21][_0xb60115(0x12d)]][_0xb60115(0x18e)]:_0x265a79[_0x5e4a21][_0xb60115(0x191)],_0xc2db3c=_0x265a79[_0x5e4a21][_0xb60115(0x16f)]?_[_0xb60115(0x142)](_0x4c64a7[_0x265a79[_0x5e4a21][_0xb60115(0x16f)]],'%s',_0xc2db3c):_0xc2db3c,_0xc2db3c=_0x265a79[_0x5e4a21]['format']?_[_0xb60115(0x142)](_0x351886[_0x265a79[_0x5e4a21][_0xb60115(0x185)]],'%s',_0xc2db3c):_0xc2db3c,_0x265a79[_0x5e4a21][_0xb60115(0x12c)]&&_0x355a96[_0xb60115(0x15a)](_0xc2db3c),_0x265a79[_0x5e4a21][_0xb60115(0x151)]&&_0x355a96[_0xb60115(0x17c)](_0xc2db3c,_0x265a79[_0x5e4a21][_0xb60115(0x151)]===_0xb60115(0x155)?![]:!![]),_0x355a96['field'](_0xc2db3c,_0x265a79[_0x5e4a21]['alias']||_0xc2db3c);}if(_0x4445a0[_0xb60115(0x188)]){_0x4445a0[_0xb60115(0x188)]=JSON[_0xb60115(0x189)](_0x4445a0[_0xb60115(0x188)]);for(let _0x535879=0x0;_0x535879<_0x4445a0[_0xb60115(0x188)][_0xb60115(0x14f)];_0x535879+=0x1){_0x4445a0['joins'][_0x535879]['type']&&_[_0xb60115(0x184)](_0xabb484,_0x4445a0[_0xb60115(0x188)][_0x535879]['type'])&&_0x4445a0[_0xb60115(0x188)][_0x535879][_0xb60115(0x16a)]&&_0x4445a0['joins'][_0x535879]['foreignTable']&&_0x4445a0[_0xb60115(0x188)][_0x535879][_0xb60115(0x187)]&&_0x355a96[_0x4445a0[_0xb60115(0x188)][_0x535879][_0xb60115(0x14a)]](_0x4445a0[_0xb60115(0x188)][_0x535879][_0xb60115(0x163)],null,util[_0xb60115(0x185)](_0xb60115(0x154),_0x4445a0[_0xb60115(0x167)],_0x4445a0[_0xb60115(0x188)][_0x535879][_0xb60115(0x16a)],_0x4445a0[_0xb60115(0x188)][_0x535879][_0xb60115(0x163)],_0x4445a0[_0xb60115(0x188)][_0x535879][_0xb60115(0x187)]));}}return _0x4445a0['conditions']&&(_0x4445a0[_0xb60115(0x190)]=JSON[_0xb60115(0x189)](_0x4445a0['conditions']),_0x355a96[_0xb60115(0x19c)](_0xd55e74(_0x4445a0[_0xb60115(0x190)][_0xb60115(0x15a)]))),_0x5c2747=_0x355a96[_0xb60115(0x136)](),_0x355a96['limit'](_0x330853),_0x355a96[_0xb60115(0x161)](0x0),logger[_0xb60115(0x120)](_0xb60115(0x14d),_0x355a96[_0xb60115(0x193)]()),db[_0xb60115(0x15f)][_0xb60115(0x123)](_0x355a96[_0xb60115(0x193)](),{'type':QueryTypes[_0xb60115(0x12f)]});}})['then'](function(_0xc7a90c){const _0x14f349=_0x5cd0ff;if(!_0xc7a90c[_0x14f349(0x14f)])throw new ValidationErrorItem(_0x14f349(0x12e),0xcc);if(_0x57c1af[_0x14f349(0x148)]==='web')return null;const _0x166e59=_[_0x14f349(0x181)](_0x57c1af,{'name':_0x57c1af[_0x14f349(0x180)]||_0x57c1af['name']||_0x4445a0[_0x14f349(0x13e)],'basename':_0x82c273,'savename':util[_0x14f349(0x185)](_0x14f349(0x165),_0x57c1af['name']||_0x4445a0[_0x14f349(0x13e)],require('randomstring')[_0x14f349(0x149)](0x4),_0x57c1af[_0x14f349(0x148)]||'csv'),'reportId':_0x4445a0['id'],'reportType':_0x14f349(0x175)});return db['AnalyticExtractedReport'][_0x14f349(0x17f)](_0x166e59,{'raw':!![]});})['then'](function(_0x11fc1e){const _0x502a37=_0x5cd0ff;_0x4445a0[_0x502a37(0x167)]==='cdr'?_0x5c2747[_0x502a37(0x19c)](_0x4445a0[_0x502a37(0x167)]+_0x502a37(0x170),_0x57c1af[_0x502a37(0x124)],_0x57c1af['endDate']):_0x5c2747[_0x502a37(0x19c)](_0x4445a0[_0x502a37(0x167)]+'.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0x57c1af[_0x502a37(0x124)],_0x57c1af[_0x502a37(0x164)]);if(_0x11fc1e)return logger[_0x502a37(0x128)]('Run\x20Query:',_0x5c2747[_0x502a37(0x193)]()),require('child_process')[_0x502a37(0x146)](path['join'](__dirname,'../../components/export/',_0x11fc1e[_0x502a37(0x148)]),[_0x11fc1e['id'],_0x5c2747[_0x502a37(0x193)](),path[_0x502a37(0x199)](__dirname,'../../files/reports',_0x11fc1e[_0x502a37(0x13b)]),_0x82c273]),_0x11fc1e;else{const _0x455373=squel[_0x502a37(0x116)]();return _0x455373[_0x502a37(0x139)]('('+_0x5c2747['toString']()+')',_0x502a37(0x192)),_0x455373[_0x502a37(0x191)](_0x502a37(0x117),_0x502a37(0x18c)),_0x5c2747[_0x502a37(0x145)](_0x57c1af[_0x502a37(0x145)]||_0x330853),_0x5c2747[_0x502a37(0x161)](_0x57c1af[_0x502a37(0x161)]||0x0),dbH['sequelize']['query'](_0x455373[_0x502a37(0x193)](),{'type':dbH['sequelize'][_0x502a37(0x11a)]['SELECT']})[_0x502a37(0x130)](function(_0x496304){const _0x43ecb5=_0x502a37;return!_0x496304['length']?_0x303c7c=0x0:_0x303c7c=_0x496304[0x0][_0x43ecb5(0x18c)]||0x0,dbH['sequelize'][_0x43ecb5(0x123)](_0x5c2747[_0x43ecb5(0x193)](),{'type':dbH[_0x43ecb5(0x15f)][_0x43ecb5(0x11a)][_0x43ecb5(0x12f)]});})[_0x502a37(0x130)](function(_0x2bd076){return{'rows':_0x2bd076||[],'count':_0x303c7c};});}});}exports[a6_0x1d10ad(0x196)]=function(_0x4734b6,_0x1cc529){const _0x19d2cd=a6_0x1d10ad;return runReport(_0x4734b6[_0x19d2cd(0x132)],_0x4734b6[_0x19d2cd(0x123)],_0x4734b6[_0x19d2cd(0x195)])['then'](respondWithResult(_0x1cc529,null))[_0x19d2cd(0x159)](handleError(_0x1cc529,null));},exports['runReport']=runReport,exports['query']=function(_0x49fe05,_0xa4ee07){const _0x259b67=a6_0x1d10ad,_0x3b5983=0xa,_0x1810a7=[_0x259b67(0x199),_0x259b67(0x15c),'right_join',_0x259b67(0x17a)],_0x33da8a={'SUM':'SUM(%s)','COUNT':'COUNT(%s)','COUNT\x20DISTINCT':_0x259b67(0x174),'MAX':_0x259b67(0x13c),'MIN':_0x259b67(0x18f),'AVG':_0x259b67(0x131),'GROUP_CONCAT':_0x259b67(0x16d),'GROUP_CONCAT\x20ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT\x20DESC':_0x259b67(0x18a)},_0x63fa3f={'SEC_TO_TIME':_0x259b67(0x125),'DATE':_0x259b67(0x11d),'HOUR':_0x259b67(0x12a),'ROUND':_0x259b67(0x141),'UNIX_TIMESTAMP':_0x259b67(0x173)},_0xd18363=function(_0x5056ea){const _0x42ce82=_0x259b67;return!_[_0x42ce82(0x184)]([_0x42ce82(0x178),_0x42ce82(0x144),'IS\x20EMPTY','IS\x20NOT\x20EMPTY'],_0x5056ea);},_0x37131f=function(_0x431c94){const _0x3a1711=_0x259b67;if(!_0x431c94||!_0x431c94[_0x3a1711(0x153)][_0x3a1711(0x14f)])return'';let _0x3cf746='(';for(let _0x5c511a=0x0;_0x5c511a<_0x431c94[_0x3a1711(0x153)][_0x3a1711(0x14f)];_0x5c511a+=0x1){_0x5c511a>0x0&&(_0x3cf746+='\x20'+_0x431c94[_0x3a1711(0x150)]+'\x20'),_0x3cf746+=_0x431c94[_0x3a1711(0x153)][_0x5c511a][_0x3a1711(0x15a)]?_0x37131f(_0x431c94['rules'][_0x5c511a][_0x3a1711(0x15a)]):_0x431c94[_0x3a1711(0x153)][_0x5c511a][_0x3a1711(0x191)]+'\x20'+_0x431c94['rules'][_0x5c511a][_0x3a1711(0x15d)]+(_0xd18363(_0x431c94['rules'][_0x5c511a][_0x3a1711(0x15d)])?'\x20'+_0x431c94[_0x3a1711(0x153)][_0x5c511a][_0x3a1711(0x143)]:'');}return _0x3cf746+')';};let _0x117175={'where':{'id':_0x49fe05[_0x259b67(0x132)]['id']}},_0x431501,_0x5eeece,_0x2271da,_0x578f05;return _0x117175=_[_0x259b67(0x181)]({},_0x117175,_0x49fe05[_0x259b67(0x195)]),db[_0x259b67(0x135)][_0x259b67(0x16e)](_0x117175)['then'](function(_0x4c239d){if(_0x4c239d)return _0x431501=_0x4c239d,_0x4c239d['getFields']();return null;})[_0x259b67(0x130)](function(_0x131203){const _0x5ccf58=_0x259b67;if(_0x131203){if(!_0x131203[_0x5ccf58(0x14f)])throw new ValidationErrorItem('Please\x20insert\x20at\x20least\x20one\x20field',0x193);return _0x5eeece=_0x131203,db[_0x5ccf58(0x160)]['findAll']({'raw':!![]});}return null;})[_0x259b67(0x130)](function(_0x3788c9){const _0x382784=_0x259b67;if(_0x3788c9){_0x2271da=_[_0x382784(0x119)](_0x3788c9,'id');let _0x3cbbd8;const _0x1ad9a6=squel[_0x382784(0x116)]();_0x1ad9a6['from'](_0x431501['table']);for(let _0x4a435e=0x0;_0x4a435e<_0x5eeece[_0x382784(0x14f)];_0x4a435e+=0x1){_0x3cbbd8=_0x5eeece[_0x4a435e]['MetricId']?_0x2271da[_0x5eeece[_0x4a435e][_0x382784(0x12d)]][_0x382784(0x18e)]:_0x5eeece[_0x4a435e][_0x382784(0x191)],_0x3cbbd8=_0x5eeece[_0x4a435e][_0x382784(0x16f)]?_['replace'](_0x33da8a[_0x5eeece[_0x4a435e]['function']],'%s',_0x3cbbd8):_0x3cbbd8,_0x3cbbd8=_0x5eeece[_0x4a435e]['format']?_[_0x382784(0x142)](_0x63fa3f[_0x5eeece[_0x4a435e][_0x382784(0x185)]],'%s',_0x3cbbd8):_0x3cbbd8,_0x5eeece[_0x4a435e][_0x382784(0x12c)]&&_0x1ad9a6['group'](_0x3cbbd8),_0x5eeece[_0x4a435e][_0x382784(0x151)]&&_0x1ad9a6[_0x382784(0x17c)](_0x3cbbd8,_0x5eeece[_0x4a435e][_0x382784(0x151)]==='DESC'?![]:!![]),_0x1ad9a6[_0x382784(0x191)](_0x3cbbd8,_0x5eeece[_0x4a435e][_0x382784(0x11c)]||_0x3cbbd8);}if(_0x431501[_0x382784(0x188)]){_0x431501[_0x382784(0x188)]=JSON[_0x382784(0x189)](_0x431501[_0x382784(0x188)]);for(let _0x57d376=0x0;_0x57d376<_0x431501[_0x382784(0x188)][_0x382784(0x14f)];_0x57d376+=0x1){_0x431501[_0x382784(0x188)][_0x57d376][_0x382784(0x14a)]&&_['includes'](_0x1810a7,_0x431501[_0x382784(0x188)][_0x57d376][_0x382784(0x14a)])&&_0x431501[_0x382784(0x188)][_0x57d376]['parentKey']&&_0x431501['joins'][_0x57d376][_0x382784(0x163)]&&_0x431501[_0x382784(0x188)][_0x57d376][_0x382784(0x187)]&&_0x1ad9a6[_0x431501[_0x382784(0x188)][_0x57d376][_0x382784(0x14a)]](_0x431501[_0x382784(0x188)][_0x57d376][_0x382784(0x163)],null,util['format']('%s.%s\x20=\x20%s.%s',_0x431501[_0x382784(0x167)],_0x431501['joins'][_0x57d376]['parentKey'],_0x431501[_0x382784(0x188)][_0x57d376][_0x382784(0x163)],_0x431501[_0x382784(0x188)][_0x57d376][_0x382784(0x187)]));}}return _0x431501['conditions']&&(_0x431501[_0x382784(0x190)]=JSON[_0x382784(0x189)](_0x431501['conditions']),_0x1ad9a6[_0x382784(0x19c)](_0x37131f(_0x431501['conditions'][_0x382784(0x15a)]))),_0x578f05=_0x1ad9a6['clone'](),_0x1ad9a6[_0x382784(0x145)](_0x3b5983),_0x1ad9a6[_0x382784(0x161)](0x0),logger['debug'](_0x382784(0x14d),_0x1ad9a6[_0x382784(0x193)]()),db[_0x382784(0x15f)][_0x382784(0x123)](_0x1ad9a6[_0x382784(0x193)](),{'type':QueryTypes[_0x382784(0x12f)]});}})[_0x259b67(0x130)](function(){const _0x5e7e7c=_0x259b67;return{'sql':_0x578f05[_0x5e7e7c(0x193)]()};})[_0x259b67(0x130)](respondWithResult(_0xa4ee07,null))['catch'](handleError(_0xa4ee07,null));}; \ No newline at end of file +const a6_0x2a1c=['format','groupBy','../../files/reports','COUNT(*)','info','Limited\x20Query:','SUM(%s)','getFields','params','include','randomstring','keys','Run\x20Query:','intersection','fork','replace','update','operator','ROUND(%s)','cross_join','from','filters','CustomReports','%s.%s\x20=\x20%s.%s','metric','debug','api','right_join','joins','query','status','UserProfileSection','foreignKey','dbH','savename','../../mysqldb','QueryTypes','../../components/parsers/qs','get','attributes','UNIX_TIMESTAMP(%s)','AVG(%s)','includeAll','COUNT(DISTINCT\x20%s)','rules','lodash','limit','map','util','AnalyticMetric','includes','cdr','MetricId','where','generate','select','path','field','parentKey','user','DATE(%s)','offset','countTable','then','catch','COUNT(%s)','conditions','alias','json','squel','endDate','AnalyticExtractedReport','MAX(%s)','fields','autoAssociation','run','undefined','Content-Range','.createdAt\x20BETWEEN\x20?\x20AND\x20?','like','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','../../config/logger','options','count','startDate','order','model','findOne','GROUP_CONCAT(%s)','SELECT','DESC','IS\x20EMPTY','key','value','function','web','parse','sequelize','UserProfileResource','group','type','fullPath','VIRTUAL','HOUR(%s)','table','IS\x20NOT\x20EMPTY','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','set','create','Please\x20insert\x20at\x20least\x20one\x20field','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','left_join','child_process','send','SEC_TO_TIME(%s)','%s-%s.%s','findAll','join','sort','No\x20available\x20data','clone','toString','merge','body','runReport','AnalyticCustomReport','filter','IS\x20NULL','rawAttributes','output','error','orderBy','destroy','name','MIN(%s)','stack','userProfileId','fieldName','foreignTable','keyBy','.calldate\x20BETWEEN\x20?\x20AND\x20?','length','csv','index','end','condition','IS\x20NOT\x20NULL'];(function(_0x2b31ab,_0x296a8f){const _0x2a1c55=function(_0x10fb30){while(--_0x10fb30){_0x2b31ab['push'](_0x2b31ab['shift']());}};_0x2a1c55(++_0x296a8f);}(a6_0x2a1c,0xff));const a6_0x10fb=function(_0x2b31ab,_0x296a8f){_0x2b31ab=_0x2b31ab-0x122;let _0x2a1c55=a6_0x2a1c[_0x2b31ab];return _0x2a1c55;};const a6_0x42a725=a6_0x10fb;'use strict';const util=require(a6_0x42a725(0x179)),path=require(a6_0x42a725(0x181)),_=require(a6_0x42a725(0x176)),squel=require(a6_0x42a725(0x18e)),qs=require(a6_0x42a725(0x16e)),logger=require(a6_0x42a725(0x19a))(a6_0x42a725(0x163)),{db}=require(a6_0x42a725(0x16c)),dbH=require(a6_0x42a725(0x16c))[a6_0x42a725(0x16a)],{Op,ValidationErrorItem,QueryTypes}=require(a6_0x42a725(0x1aa));function respondWithResult(_0x105da7,_0x2b494d){return _0x2b494d=_0x2b494d||0xc8,function(_0x14d6ca){const _0x449b80=a6_0x10fb;if(_0x14d6ca)return _0x105da7[_0x449b80(0x167)](_0x2b494d)[_0x449b80(0x18d)](_0x14d6ca);};}function respondWithFilteredResult(_0x220e28,_0x269b11){return function(_0x4d0c4a){const _0x225724=a6_0x10fb;if(_0x4d0c4a){const _0x5d2e62=_0x4d0c4a[_0x225724(0x19c)],_0x359b65=_0x269b11[_0x225724(0x186)];let _0x17ab44=_0x269b11[_0x225724(0x186)]+_0x269b11['limit'],_0x3b224c;return _0x17ab44>=_0x5d2e62?(_0x17ab44=_0x5d2e62,_0x3b224c=0xc8):_0x3b224c=0xce,_0x220e28[_0x225724(0x167)](_0x3b224c),_0x220e28[_0x225724(0x1b4)](_0x225724(0x196),_0x359b65+'-'+_0x17ab44+'/'+_0x5d2e62)['json'](_0x4d0c4a);}return null;};}function saveUpdates(_0x4077a4){return function(_0x2adc38){const _0x1a0cf5=a6_0x10fb;if(_0x2adc38)return _0x2adc38['update'](_0x4077a4)[_0x1a0cf5(0x188)](function(_0x56ca11){return _0x56ca11;});return null;};}function removeEntity(_0x2273c9){return function(_0x1d3bfe){const _0x33542b=a6_0x10fb;if(_0x1d3bfe)return _0x1d3bfe['destroy']()[_0x33542b(0x188)](function(){const _0x5754a1=_0x33542b,_0x13d8e8=_0x1d3bfe['get']({'plain':!![]}),_0x5cd3c7=_0x5754a1(0x15f);return db[_0x5754a1(0x1ab)]['destroy']({'where':{'type':_0x5cd3c7,'resourceId':_0x13d8e8['id']}})[_0x5754a1(0x188)](function(){return _0x1d3bfe;});})[_0x33542b(0x188)](function(){const _0x139dbe=_0x33542b;_0x2273c9[_0x139dbe(0x167)](0xcc)[_0x139dbe(0x146)]();});};}function handleEntityNotFound(_0x505b22){return function(_0xa0332a){return!_0xa0332a&&_0x505b22['sendStatus'](0x194),_0xa0332a;};}function handleError(_0x977e03,_0x3f3e97){return _0x3f3e97=_0x3f3e97||0x1f4,function(_0x145ed7){const _0x16df66=a6_0x10fb;logger[_0x16df66(0x138)](_0x145ed7[_0x16df66(0x13d)]),_0x145ed7[_0x16df66(0x13b)]&&delete _0x145ed7['name'],_0x977e03['status'](_0x3f3e97)[_0x16df66(0x127)](_0x145ed7);};}exports[a6_0x42a725(0x145)]=function(_0x347839,_0x5e753e){const _0x1cc6b0=a6_0x42a725;let _0x80ca56={};const _0x4ec1e0={},_0x1125c7={'count':0x0,'rows':[]},_0x4db988=_[_0x1cc6b0(0x178)](db['AnalyticCustomReport'][_0x1cc6b0(0x136)],function(_0x8494ae){const _0x26d185=_0x1cc6b0;return{'name':_0x8494ae[_0x26d185(0x13f)],'type':_0x8494ae['type'][_0x26d185(0x1a5)]};});_0x4ec1e0[_0x1cc6b0(0x19f)]=_[_0x1cc6b0(0x178)](_0x4db988,'name'),_0x4ec1e0[_0x1cc6b0(0x166)]=_[_0x1cc6b0(0x154)](_0x347839[_0x1cc6b0(0x166)]),_0x4ec1e0[_0x1cc6b0(0x15e)]=_[_0x1cc6b0(0x156)](_0x4ec1e0[_0x1cc6b0(0x19f)],_0x4ec1e0['query']),_0x80ca56[_0x1cc6b0(0x170)]=_['intersection'](_0x4ec1e0[_0x1cc6b0(0x19f)],qs[_0x1cc6b0(0x192)](_0x347839[_0x1cc6b0(0x166)][_0x1cc6b0(0x192)])),_0x80ca56[_0x1cc6b0(0x170)]=_0x80ca56['attributes'][_0x1cc6b0(0x143)]?_0x80ca56[_0x1cc6b0(0x170)]:_0x4ec1e0[_0x1cc6b0(0x19f)];typeof _0x347839[_0x1cc6b0(0x166)]['nolimit']===_0x1cc6b0(0x195)&&(_0x80ca56['limit']=qs[_0x1cc6b0(0x177)](_0x347839[_0x1cc6b0(0x166)][_0x1cc6b0(0x177)]),_0x80ca56['offset']=qs[_0x1cc6b0(0x186)](_0x347839[_0x1cc6b0(0x166)][_0x1cc6b0(0x186)]));_0x80ca56['order']=qs[_0x1cc6b0(0x12c)](_0x347839[_0x1cc6b0(0x166)][_0x1cc6b0(0x12c)]),_0x80ca56['where']=qs[_0x1cc6b0(0x15e)](_['pick'](_0x347839[_0x1cc6b0(0x166)],_0x4ec1e0[_0x1cc6b0(0x15e)]),_0x4db988);_0x347839[_0x1cc6b0(0x166)][_0x1cc6b0(0x134)]&&(_0x80ca56[_0x1cc6b0(0x17e)]=_[_0x1cc6b0(0x130)](_0x80ca56[_0x1cc6b0(0x17e)],{[Op['or']]:_[_0x1cc6b0(0x178)](_0x4db988,function(_0x738b90){const _0x36eb84=_0x1cc6b0;if(_0x738b90[_0x36eb84(0x1ad)]!==_0x36eb84(0x1af)){const _0x3d1747={};return _0x3d1747[_0x738b90[_0x36eb84(0x13b)]]={[Op[_0x36eb84(0x198)]]:'%'+_0x347839[_0x36eb84(0x166)][_0x36eb84(0x134)]+'%'},_0x3d1747;}})}));_0x80ca56=_[_0x1cc6b0(0x130)]({},_0x80ca56,_0x347839[_0x1cc6b0(0x19b)]);const _0x3dc0f0={'where':_0x80ca56['where']};return db[_0x1cc6b0(0x133)][_0x1cc6b0(0x19c)](_0x3dc0f0)[_0x1cc6b0(0x188)](function(_0x4e3e55){const _0xc4e5b5=_0x1cc6b0;return _0x1125c7['count']=_0x4e3e55,_0x347839['query'][_0xc4e5b5(0x173)]&&(_0x80ca56[_0xc4e5b5(0x152)]=[{'all':!![]}]),db[_0xc4e5b5(0x133)][_0xc4e5b5(0x12a)](_0x80ca56);})[_0x1cc6b0(0x188)](function(_0xbae6e7){return _0x1125c7['rows']=_0xbae6e7,_0x1125c7;})[_0x1cc6b0(0x188)](respondWithFilteredResult(_0x5e753e,_0x80ca56))[_0x1cc6b0(0x189)](handleError(_0x5e753e,null));},exports['show']=function(_0x577636,_0x1cc5fb){const _0x537121=a6_0x42a725;let _0x53512b={'raw':![],'where':{'id':_0x577636[_0x537121(0x151)]['id']}};const _0x543e03={};return _0x543e03[_0x537121(0x19f)]=_[_0x537121(0x154)](db[_0x537121(0x133)]['rawAttributes']),_0x543e03[_0x537121(0x166)]=_[_0x537121(0x154)](_0x577636[_0x537121(0x166)]),_0x543e03[_0x537121(0x15e)]=_['intersection'](_0x543e03[_0x537121(0x19f)],_0x543e03[_0x537121(0x166)]),_0x53512b[_0x537121(0x170)]=_[_0x537121(0x156)](_0x543e03[_0x537121(0x19f)],qs[_0x537121(0x192)](_0x577636[_0x537121(0x166)][_0x537121(0x192)])),_0x53512b['attributes']=_0x53512b[_0x537121(0x170)][_0x537121(0x143)]?_0x53512b[_0x537121(0x170)]:_0x543e03['model'],_0x577636[_0x537121(0x166)][_0x537121(0x173)]&&(_0x53512b['include']=[{'all':!![]}]),_0x53512b=_['merge']({},_0x53512b,_0x577636['options']),db['AnalyticCustomReport'][_0x537121(0x1a0)](_0x53512b)['then'](handleEntityNotFound(_0x1cc5fb,null))['then'](respondWithResult(_0x1cc5fb,null))[_0x537121(0x189)](handleError(_0x1cc5fb,null));},exports['create']=function(_0x4454a4,_0x33d1a8){const _0x1cca24=a6_0x42a725;return db[_0x1cca24(0x133)][_0x1cca24(0x122)](_0x4454a4[_0x1cca24(0x131)],{})['then'](function(_0x4647f9){const _0x20bfd4=_0x1cca24,_0x12459e=_0x4454a4['user']['get']({'plain':!![]});if(!_0x12459e)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x12459e['role']===_0x20bfd4(0x184)){const _0x3f45c1=_0x4647f9[_0x20bfd4(0x16f)]({'plain':!![]}),_0x122f4e='Reports';return db[_0x20bfd4(0x168)]['findOne']({'where':{'name':_0x122f4e,'userProfileId':_0x12459e[_0x20bfd4(0x13e)]},'raw':!![]})[_0x20bfd4(0x188)](function(_0x4b0fcd){const _0x3fa680=_0x20bfd4;return _0x4b0fcd&&_0x4b0fcd[_0x3fa680(0x193)]===0x0?db[_0x3fa680(0x1ab)][_0x3fa680(0x122)]({'name':_0x3f45c1['name'],'resourceId':_0x3f45c1['id'],'type':_0x3fa680(0x15f),'sectionId':_0x4b0fcd['id']},{})[_0x3fa680(0x188)](function(){return _0x4647f9;}):_0x4647f9;})[_0x20bfd4(0x189)](function(_0xf34dee){const _0x5682ec=_0x20bfd4;logger[_0x5682ec(0x138)](_0x5682ec(0x124),_0xf34dee);throw _0xf34dee;});}return _0x4647f9;})[_0x1cca24(0x188)](respondWithResult(_0x33d1a8,0xc9))['catch'](handleError(_0x33d1a8,null));},exports[a6_0x42a725(0x159)]=function(_0x3064d4,_0x4838c7){const _0xbfc238=a6_0x42a725;return _0x3064d4['body']['id']&&delete _0x3064d4['body']['id'],db[_0xbfc238(0x133)][_0xbfc238(0x1a0)]({'where':{'id':_0x3064d4[_0xbfc238(0x151)]['id']}})[_0xbfc238(0x188)](handleEntityNotFound(_0x4838c7,null))['then'](saveUpdates(_0x3064d4['body'],null))[_0xbfc238(0x188)](respondWithResult(_0x4838c7,null))[_0xbfc238(0x189)](handleError(_0x4838c7,null));},exports[a6_0x42a725(0x13a)]=function(_0x5cf55e,_0x826b22){const _0x3f557f=a6_0x42a725;return db[_0x3f557f(0x133)][_0x3f557f(0x1a0)]({'where':{'id':_0x5cf55e[_0x3f557f(0x151)]['id']}})['then'](handleEntityNotFound(_0x826b22,null))[_0x3f557f(0x188)](removeEntity(_0x826b22,null))[_0x3f557f(0x189)](handleError(_0x826b22,null));},exports['preview']=function(_0x158e47,_0x1de420){const _0x52cfaf=a6_0x42a725,_0x3174d5=0xa,_0x470ed3=[_0x52cfaf(0x12b),_0x52cfaf(0x125),_0x52cfaf(0x164),_0x52cfaf(0x15c)],_0x12d96c={'SUM':_0x52cfaf(0x14f),'COUNT':_0x52cfaf(0x18a),'COUNT\x20DISTINCT':_0x52cfaf(0x174),'MAX':_0x52cfaf(0x191),'MIN':'MIN(%s)','AVG':_0x52cfaf(0x172),'GROUP_CONCAT':_0x52cfaf(0x1a1),'GROUP_CONCAT\x20ASC':_0x52cfaf(0x199),'GROUP_CONCAT\x20DESC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)'},_0x4fa8fc={'SEC_TO_TIME':_0x52cfaf(0x128),'DATE':'DATE(%s)','HOUR':_0x52cfaf(0x1b0),'ROUND':_0x52cfaf(0x15b),'UNIX_TIMESTAMP':_0x52cfaf(0x171)},_0x2ecf0f=function(_0x3a2d91){const _0x47a02a=_0x52cfaf;return!_[_0x47a02a(0x17b)]([_0x47a02a(0x135),'IS\x20NOT\x20NULL',_0x47a02a(0x1a4),'IS\x20NOT\x20EMPTY'],_0x3a2d91);},_0x1046a5=function(_0x244af3){const _0x2f67b8=_0x52cfaf;if(!_0x244af3||!_0x244af3[_0x2f67b8(0x175)]['length'])return'';let _0x3126c1='(';for(let _0x5dd15a=0x0;_0x5dd15a<_0x244af3[_0x2f67b8(0x175)][_0x2f67b8(0x143)];_0x5dd15a+=0x1){_0x5dd15a>0x0&&(_0x3126c1+='\x20'+_0x244af3[_0x2f67b8(0x15a)]+'\x20'),_0x3126c1+=_0x244af3[_0x2f67b8(0x175)][_0x5dd15a][_0x2f67b8(0x1ac)]?_0x1046a5(_0x244af3['rules'][_0x5dd15a][_0x2f67b8(0x1ac)]):_0x244af3['rules'][_0x5dd15a][_0x2f67b8(0x182)]+'\x20'+_0x244af3['rules'][_0x5dd15a][_0x2f67b8(0x147)]+(_0x2ecf0f(_0x244af3[_0x2f67b8(0x175)][_0x5dd15a][_0x2f67b8(0x147)])?'\x20'+_0x244af3[_0x2f67b8(0x175)][_0x5dd15a]['value']:'');}return _0x3126c1+')';};let _0x3ff12d={'where':{'id':_0x158e47[_0x52cfaf(0x151)]['id']}},_0x47da4f,_0x31d66e,_0x21c767;return _0x3ff12d=_[_0x52cfaf(0x130)]({},_0x3ff12d,_0x158e47[_0x52cfaf(0x19b)]),db[_0x52cfaf(0x133)][_0x52cfaf(0x1a0)](_0x3ff12d)[_0x52cfaf(0x188)](function(_0x235dfd){const _0x4de1af=_0x52cfaf;if(_0x235dfd)return _0x47da4f=_0x235dfd,_0x235dfd[_0x4de1af(0x150)]();return null;})['then'](function(_0x326b58){const _0x255cb9=_0x52cfaf;if(_0x326b58){if(!_0x326b58[_0x255cb9(0x143)])throw new ValidationErrorItem(_0x255cb9(0x123),0x193);return _0x31d66e=_0x326b58,db['AnalyticMetric']['findAll']({'raw':!![]});}return null;})[_0x52cfaf(0x188)](function(_0x31376e){const _0x3bfc36=_0x52cfaf;if(_0x31376e){_0x21c767=_[_0x3bfc36(0x141)](_0x31376e,'id');let _0x14f2fb;const _0x15b0e1=squel[_0x3bfc36(0x180)]();_0x15b0e1[_0x3bfc36(0x15d)](_0x47da4f['table']);for(let _0x90733d=0x0;_0x90733d<_0x31d66e['length'];_0x90733d+=0x1){_0x14f2fb=_0x31d66e[_0x90733d]['MetricId']?_0x21c767[_0x31d66e[_0x90733d][_0x3bfc36(0x17d)]][_0x3bfc36(0x161)]:_0x31d66e[_0x90733d][_0x3bfc36(0x182)],_0x14f2fb=_0x31d66e[_0x90733d][_0x3bfc36(0x1a7)]?_[_0x3bfc36(0x158)](_0x12d96c[_0x31d66e[_0x90733d][_0x3bfc36(0x1a7)]],'%s',_0x14f2fb):_0x14f2fb,_0x14f2fb=_0x31d66e[_0x90733d]['format']?_['replace'](_0x4fa8fc[_0x31d66e[_0x90733d][_0x3bfc36(0x149)]],'%s',_0x14f2fb):_0x14f2fb,_0x31d66e[_0x90733d]['groupBy']&&_0x15b0e1[_0x3bfc36(0x1ac)](_0x14f2fb),_0x31d66e[_0x90733d][_0x3bfc36(0x139)]&&_0x15b0e1['order'](_0x14f2fb,_0x31d66e[_0x90733d][_0x3bfc36(0x139)]===_0x3bfc36(0x1a3)?![]:!![]),_0x15b0e1[_0x3bfc36(0x182)](_0x14f2fb,_0x31d66e[_0x90733d][_0x3bfc36(0x18c)]||_0x14f2fb);}if(_0x47da4f[_0x3bfc36(0x165)]){_0x47da4f[_0x3bfc36(0x165)]=JSON[_0x3bfc36(0x1a9)](_0x47da4f['joins']);for(let _0x5ecf72=0x0;_0x5ecf72<_0x47da4f[_0x3bfc36(0x165)][_0x3bfc36(0x143)];_0x5ecf72+=0x1){_0x47da4f[_0x3bfc36(0x165)][_0x5ecf72]['type']&&_[_0x3bfc36(0x17b)](_0x470ed3,_0x47da4f[_0x3bfc36(0x165)][_0x5ecf72][_0x3bfc36(0x1ad)])&&_0x47da4f[_0x3bfc36(0x165)][_0x5ecf72][_0x3bfc36(0x183)]&&_0x47da4f[_0x3bfc36(0x165)][_0x5ecf72][_0x3bfc36(0x140)]&&_0x47da4f[_0x3bfc36(0x165)][_0x5ecf72][_0x3bfc36(0x169)]&&_0x15b0e1[_0x47da4f[_0x3bfc36(0x165)][_0x5ecf72][_0x3bfc36(0x1ad)]](_0x47da4f[_0x3bfc36(0x165)][_0x5ecf72]['foreignTable'],null,util[_0x3bfc36(0x149)](_0x3bfc36(0x160),_0x47da4f[_0x3bfc36(0x1b1)],_0x47da4f[_0x3bfc36(0x165)][_0x5ecf72]['parentKey'],_0x47da4f[_0x3bfc36(0x165)][_0x5ecf72]['foreignTable'],_0x47da4f[_0x3bfc36(0x165)][_0x5ecf72][_0x3bfc36(0x169)]));}}return _0x47da4f[_0x3bfc36(0x18b)]&&(_0x47da4f[_0x3bfc36(0x18b)]=JSON['parse'](_0x47da4f[_0x3bfc36(0x18b)]),_0x15b0e1[_0x3bfc36(0x17e)](_0x1046a5(_0x47da4f['conditions']['group']))),_0x15b0e1[_0x3bfc36(0x177)](_0x3174d5),_0x15b0e1[_0x3bfc36(0x186)](0x0),logger[_0x3bfc36(0x162)]('Limited\x20Query:',_0x15b0e1[_0x3bfc36(0x12f)]()),db['sequelize'][_0x3bfc36(0x166)](_0x15b0e1[_0x3bfc36(0x12f)](),{'type':QueryTypes['SELECT']});}})['then'](respondWithResult(_0x1de420,null))['catch'](handleError(_0x1de420,null));};function runReport(_0x164f4c,_0x5ee513,_0x27e356){const _0x4601af=a6_0x42a725,_0x35ef5d=_0x5ee513[_0x4601af(0x13b)],_0x2c7008=0xa,_0x4bb175=[_0x4601af(0x12b),_0x4601af(0x125),_0x4601af(0x164),_0x4601af(0x15c)],_0x30cdbb={'SUM':'SUM(%s)','COUNT':_0x4601af(0x18a),'COUNT\x20DISTINCT':_0x4601af(0x174),'MAX':'MAX(%s)','MIN':_0x4601af(0x13c),'AVG':_0x4601af(0x172),'GROUP_CONCAT':_0x4601af(0x1a1),'GROUP_CONCAT\x20ASC':_0x4601af(0x199),'GROUP_CONCAT\x20DESC':_0x4601af(0x1b3)},_0x2c8e19={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':_0x4601af(0x185),'HOUR':'HOUR(%s)','ROUND':'ROUND(%s)','UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'},_0x4c3bcd=function(_0xceb4e5){const _0x49bf4f=_0x4601af;return!_[_0x49bf4f(0x17b)]([_0x49bf4f(0x135),_0x49bf4f(0x148),_0x49bf4f(0x1a4),'IS\x20NOT\x20EMPTY'],_0xceb4e5);},_0x3a4761=function(_0x54250f){const _0x59b4ab=_0x4601af;if(!_0x54250f||!_0x54250f[_0x59b4ab(0x175)][_0x59b4ab(0x143)])return'';let _0x286982='(';for(let _0xe97586=0x0;_0xe97586<_0x54250f['rules'][_0x59b4ab(0x143)];_0xe97586+=0x1){_0xe97586>0x0&&(_0x286982+='\x20'+_0x54250f[_0x59b4ab(0x15a)]+'\x20'),_0x286982+=_0x54250f[_0x59b4ab(0x175)][_0xe97586][_0x59b4ab(0x1ac)]?_0x3a4761(_0x54250f[_0x59b4ab(0x175)][_0xe97586][_0x59b4ab(0x1ac)]):_0x54250f[_0x59b4ab(0x175)][_0xe97586]['field']+'\x20'+_0x54250f[_0x59b4ab(0x175)][_0xe97586]['condition']+(_0x4c3bcd(_0x54250f[_0x59b4ab(0x175)][_0xe97586][_0x59b4ab(0x147)])?'\x20'+_0x54250f['rules'][_0xe97586][_0x59b4ab(0x1a6)]:'');}return _0x286982+')';};let _0x12b714={'where':{'id':_0x164f4c['id']}},_0x5e8ef8,_0xd072b0,_0x425c39,_0x135d09,_0x38af8e;return _0x12b714=_[_0x4601af(0x130)]({},_0x12b714,_0x27e356),db[_0x4601af(0x133)][_0x4601af(0x1a0)](_0x12b714)[_0x4601af(0x188)](function(_0x4d3faa){const _0x17c351=_0x4601af;if(_0x4d3faa)return _0x5e8ef8=_0x4d3faa,_0x4d3faa[_0x17c351(0x150)]();return null;})[_0x4601af(0x188)](function(_0x33e44a){const _0xd47678=_0x4601af;if(_0x33e44a){if(!_0x33e44a[_0xd47678(0x143)])throw new ValidationErrorItem(_0xd47678(0x123),0x193);return _0xd072b0=_0x33e44a,db[_0xd47678(0x17a)][_0xd47678(0x12a)]({'raw':!![]});}return null;})[_0x4601af(0x188)](function(_0x393f69){const _0x29e3a9=_0x4601af;if(_0x393f69){_0x425c39=_[_0x29e3a9(0x141)](_0x393f69,'id');let _0x520776;const _0x3f8a85=squel['select']();_0x3f8a85[_0x29e3a9(0x15d)](_0x5e8ef8[_0x29e3a9(0x1b1)]);for(let _0x3392de=0x0;_0x3392de<_0xd072b0[_0x29e3a9(0x143)];_0x3392de+=0x1){_0x520776=_0xd072b0[_0x3392de][_0x29e3a9(0x17d)]?_0x425c39[_0xd072b0[_0x3392de][_0x29e3a9(0x17d)]][_0x29e3a9(0x161)]:_0xd072b0[_0x3392de][_0x29e3a9(0x182)],_0x520776=_0xd072b0[_0x3392de][_0x29e3a9(0x1a7)]?_[_0x29e3a9(0x158)](_0x30cdbb[_0xd072b0[_0x3392de][_0x29e3a9(0x1a7)]],'%s',_0x520776):_0x520776,_0x520776=_0xd072b0[_0x3392de][_0x29e3a9(0x149)]?_[_0x29e3a9(0x158)](_0x2c8e19[_0xd072b0[_0x3392de][_0x29e3a9(0x149)]],'%s',_0x520776):_0x520776,_0xd072b0[_0x3392de][_0x29e3a9(0x14a)]&&_0x3f8a85[_0x29e3a9(0x1ac)](_0x520776),_0xd072b0[_0x3392de][_0x29e3a9(0x139)]&&_0x3f8a85['order'](_0x520776,_0xd072b0[_0x3392de][_0x29e3a9(0x139)]===_0x29e3a9(0x1a3)?![]:!![]),_0x3f8a85[_0x29e3a9(0x182)](_0x520776,_0xd072b0[_0x3392de][_0x29e3a9(0x18c)]||_0x520776);}if(_0x5e8ef8['joins']){_0x5e8ef8[_0x29e3a9(0x165)]=JSON[_0x29e3a9(0x1a9)](_0x5e8ef8[_0x29e3a9(0x165)]);for(let _0x3c61b1=0x0;_0x3c61b1<_0x5e8ef8['joins'][_0x29e3a9(0x143)];_0x3c61b1+=0x1){_0x5e8ef8[_0x29e3a9(0x165)][_0x3c61b1][_0x29e3a9(0x1ad)]&&_[_0x29e3a9(0x17b)](_0x4bb175,_0x5e8ef8['joins'][_0x3c61b1]['type'])&&_0x5e8ef8[_0x29e3a9(0x165)][_0x3c61b1][_0x29e3a9(0x183)]&&_0x5e8ef8[_0x29e3a9(0x165)][_0x3c61b1]['foreignTable']&&_0x5e8ef8['joins'][_0x3c61b1]['foreignKey']&&_0x3f8a85[_0x5e8ef8[_0x29e3a9(0x165)][_0x3c61b1][_0x29e3a9(0x1ad)]](_0x5e8ef8[_0x29e3a9(0x165)][_0x3c61b1][_0x29e3a9(0x140)],null,util[_0x29e3a9(0x149)]('%s.%s\x20=\x20%s.%s',_0x5e8ef8[_0x29e3a9(0x1b1)],_0x5e8ef8[_0x29e3a9(0x165)][_0x3c61b1][_0x29e3a9(0x183)],_0x5e8ef8['joins'][_0x3c61b1]['foreignTable'],_0x5e8ef8[_0x29e3a9(0x165)][_0x3c61b1][_0x29e3a9(0x169)]));}}return _0x5e8ef8[_0x29e3a9(0x18b)]&&(_0x5e8ef8[_0x29e3a9(0x18b)]=JSON['parse'](_0x5e8ef8[_0x29e3a9(0x18b)]),_0x3f8a85['where'](_0x3a4761(_0x5e8ef8['conditions']['group']))),_0x38af8e=_0x3f8a85['clone'](),_0x3f8a85['limit'](_0x2c7008),_0x3f8a85[_0x29e3a9(0x186)](0x0),logger[_0x29e3a9(0x162)](_0x29e3a9(0x14e),_0x3f8a85['toString']()),db[_0x29e3a9(0x1aa)]['query'](_0x3f8a85[_0x29e3a9(0x12f)](),{'type':QueryTypes[_0x29e3a9(0x1a2)]});}})[_0x4601af(0x188)](function(_0x22fe3f){const _0x33081b=_0x4601af;if(!_0x22fe3f[_0x33081b(0x143)])throw new ValidationErrorItem(_0x33081b(0x12d),0xcc);if(_0x5ee513[_0x33081b(0x137)]===_0x33081b(0x1a8))return null;const _0x308059=_[_0x33081b(0x130)](_0x5ee513,{'name':_0x5ee513[_0x33081b(0x1ae)]||_0x5ee513['name']||_0x5e8ef8[_0x33081b(0x13b)],'basename':_0x35ef5d,'savename':util[_0x33081b(0x149)](_0x33081b(0x129),_0x5ee513[_0x33081b(0x13b)]||_0x5e8ef8[_0x33081b(0x13b)],require(_0x33081b(0x153))[_0x33081b(0x17f)](0x4),_0x5ee513[_0x33081b(0x137)]||_0x33081b(0x144)),'reportId':_0x5e8ef8['id'],'reportType':'custom'});return db[_0x33081b(0x190)]['create'](_0x308059,{'raw':!![]});})[_0x4601af(0x188)](function(_0x3e6c16){const _0x13743b=_0x4601af;_0x5e8ef8[_0x13743b(0x1b1)]===_0x13743b(0x17c)?_0x38af8e[_0x13743b(0x17e)](_0x5e8ef8[_0x13743b(0x1b1)]+_0x13743b(0x142),_0x5ee513[_0x13743b(0x19d)],_0x5ee513[_0x13743b(0x18f)]):_0x38af8e[_0x13743b(0x17e)](_0x5e8ef8[_0x13743b(0x1b1)]+_0x13743b(0x197),_0x5ee513[_0x13743b(0x19d)],_0x5ee513[_0x13743b(0x18f)]);if(_0x3e6c16)return logger[_0x13743b(0x14d)](_0x13743b(0x155),_0x38af8e['toString']()),require(_0x13743b(0x126))[_0x13743b(0x157)](path['join'](__dirname,'../../components/export/',_0x3e6c16[_0x13743b(0x137)]),[_0x3e6c16['id'],_0x38af8e[_0x13743b(0x12f)](),path['join'](__dirname,_0x13743b(0x14b),_0x3e6c16[_0x13743b(0x16b)]),_0x35ef5d]),_0x3e6c16;else{const _0x325dfd=squel[_0x13743b(0x180)]();return _0x325dfd[_0x13743b(0x15d)]('('+_0x38af8e[_0x13743b(0x12f)]()+')',_0x13743b(0x187)),_0x325dfd[_0x13743b(0x182)](_0x13743b(0x14c),_0x13743b(0x19c)),_0x38af8e[_0x13743b(0x177)](_0x5ee513['limit']||_0x2c7008),_0x38af8e[_0x13743b(0x186)](_0x5ee513['offset']||0x0),dbH[_0x13743b(0x1aa)][_0x13743b(0x166)](_0x325dfd[_0x13743b(0x12f)](),{'type':dbH['sequelize'][_0x13743b(0x16d)]['SELECT']})[_0x13743b(0x188)](function(_0x415c25){const _0x37e831=_0x13743b;return!_0x415c25['length']?_0x135d09=0x0:_0x135d09=_0x415c25[0x0][_0x37e831(0x19c)]||0x0,dbH['sequelize'][_0x37e831(0x166)](_0x38af8e[_0x37e831(0x12f)](),{'type':dbH['sequelize'][_0x37e831(0x16d)][_0x37e831(0x1a2)]});})[_0x13743b(0x188)](function(_0x175923){return{'rows':_0x175923||[],'count':_0x135d09};});}});}exports[a6_0x42a725(0x194)]=function(_0x1a1e1d,_0x1b1c06){const _0x1b576b=a6_0x42a725;return runReport(_0x1a1e1d[_0x1b576b(0x151)],_0x1a1e1d['query'],_0x1a1e1d[_0x1b576b(0x19b)])['then'](respondWithResult(_0x1b1c06,null))[_0x1b576b(0x189)](handleError(_0x1b1c06,null));},exports[a6_0x42a725(0x132)]=runReport,exports['query']=function(_0x336637,_0x5d1f02){const _0x58c08c=a6_0x42a725,_0x42ced2=0xa,_0x266f45=[_0x58c08c(0x12b),'left_join',_0x58c08c(0x164),_0x58c08c(0x15c)],_0xf4479={'SUM':_0x58c08c(0x14f),'COUNT':_0x58c08c(0x18a),'COUNT\x20DISTINCT':_0x58c08c(0x174),'MAX':'MAX(%s)','MIN':_0x58c08c(0x13c),'AVG':_0x58c08c(0x172),'GROUP_CONCAT':_0x58c08c(0x1a1),'GROUP_CONCAT\x20ASC':_0x58c08c(0x199),'GROUP_CONCAT\x20DESC':_0x58c08c(0x1b3)},_0x34fe71={'SEC_TO_TIME':_0x58c08c(0x128),'DATE':_0x58c08c(0x185),'HOUR':_0x58c08c(0x1b0),'ROUND':_0x58c08c(0x15b),'UNIX_TIMESTAMP':_0x58c08c(0x171)},_0x4120ba=function(_0x57f946){const _0x5c7529=_0x58c08c;return!_[_0x5c7529(0x17b)](['IS\x20NULL',_0x5c7529(0x148),_0x5c7529(0x1a4),_0x5c7529(0x1b2)],_0x57f946);},_0x3c0bef=function(_0x38241f){const _0x520a0e=_0x58c08c;if(!_0x38241f||!_0x38241f['rules'][_0x520a0e(0x143)])return'';let _0xd9feeb='(';for(let _0x410dda=0x0;_0x410dda<_0x38241f[_0x520a0e(0x175)][_0x520a0e(0x143)];_0x410dda+=0x1){_0x410dda>0x0&&(_0xd9feeb+='\x20'+_0x38241f[_0x520a0e(0x15a)]+'\x20'),_0xd9feeb+=_0x38241f[_0x520a0e(0x175)][_0x410dda][_0x520a0e(0x1ac)]?_0x3c0bef(_0x38241f[_0x520a0e(0x175)][_0x410dda][_0x520a0e(0x1ac)]):_0x38241f[_0x520a0e(0x175)][_0x410dda][_0x520a0e(0x182)]+'\x20'+_0x38241f[_0x520a0e(0x175)][_0x410dda][_0x520a0e(0x147)]+(_0x4120ba(_0x38241f[_0x520a0e(0x175)][_0x410dda][_0x520a0e(0x147)])?'\x20'+_0x38241f[_0x520a0e(0x175)][_0x410dda][_0x520a0e(0x1a6)]:'');}return _0xd9feeb+')';};let _0x23adc7={'where':{'id':_0x336637[_0x58c08c(0x151)]['id']}},_0x5f3ea2,_0xe66c48,_0x4fb8b5,_0x3a8db7;return _0x23adc7=_[_0x58c08c(0x130)]({},_0x23adc7,_0x336637[_0x58c08c(0x19b)]),db[_0x58c08c(0x133)]['findOne'](_0x23adc7)[_0x58c08c(0x188)](function(_0x321f34){const _0x4369a0=_0x58c08c;if(_0x321f34)return _0x5f3ea2=_0x321f34,_0x321f34[_0x4369a0(0x150)]();return null;})[_0x58c08c(0x188)](function(_0x413744){const _0x4a8e50=_0x58c08c;if(_0x413744){if(!_0x413744[_0x4a8e50(0x143)])throw new ValidationErrorItem(_0x4a8e50(0x123),0x193);return _0xe66c48=_0x413744,db[_0x4a8e50(0x17a)]['findAll']({'raw':!![]});}return null;})[_0x58c08c(0x188)](function(_0x42dad2){const _0x5544cd=_0x58c08c;if(_0x42dad2){_0x4fb8b5=_[_0x5544cd(0x141)](_0x42dad2,'id');let _0x20c545;const _0x29d974=squel[_0x5544cd(0x180)]();_0x29d974[_0x5544cd(0x15d)](_0x5f3ea2[_0x5544cd(0x1b1)]);for(let _0xfbb6c4=0x0;_0xfbb6c4<_0xe66c48[_0x5544cd(0x143)];_0xfbb6c4+=0x1){_0x20c545=_0xe66c48[_0xfbb6c4]['MetricId']?_0x4fb8b5[_0xe66c48[_0xfbb6c4]['MetricId']][_0x5544cd(0x161)]:_0xe66c48[_0xfbb6c4][_0x5544cd(0x182)],_0x20c545=_0xe66c48[_0xfbb6c4][_0x5544cd(0x1a7)]?_[_0x5544cd(0x158)](_0xf4479[_0xe66c48[_0xfbb6c4][_0x5544cd(0x1a7)]],'%s',_0x20c545):_0x20c545,_0x20c545=_0xe66c48[_0xfbb6c4][_0x5544cd(0x149)]?_[_0x5544cd(0x158)](_0x34fe71[_0xe66c48[_0xfbb6c4]['format']],'%s',_0x20c545):_0x20c545,_0xe66c48[_0xfbb6c4][_0x5544cd(0x14a)]&&_0x29d974['group'](_0x20c545),_0xe66c48[_0xfbb6c4]['orderBy']&&_0x29d974[_0x5544cd(0x19e)](_0x20c545,_0xe66c48[_0xfbb6c4][_0x5544cd(0x139)]===_0x5544cd(0x1a3)?![]:!![]),_0x29d974['field'](_0x20c545,_0xe66c48[_0xfbb6c4][_0x5544cd(0x18c)]||_0x20c545);}if(_0x5f3ea2['joins']){_0x5f3ea2['joins']=JSON[_0x5544cd(0x1a9)](_0x5f3ea2[_0x5544cd(0x165)]);for(let _0x543a79=0x0;_0x543a79<_0x5f3ea2[_0x5544cd(0x165)][_0x5544cd(0x143)];_0x543a79+=0x1){_0x5f3ea2[_0x5544cd(0x165)][_0x543a79][_0x5544cd(0x1ad)]&&_[_0x5544cd(0x17b)](_0x266f45,_0x5f3ea2['joins'][_0x543a79][_0x5544cd(0x1ad)])&&_0x5f3ea2['joins'][_0x543a79][_0x5544cd(0x183)]&&_0x5f3ea2[_0x5544cd(0x165)][_0x543a79][_0x5544cd(0x140)]&&_0x5f3ea2[_0x5544cd(0x165)][_0x543a79][_0x5544cd(0x169)]&&_0x29d974[_0x5f3ea2['joins'][_0x543a79][_0x5544cd(0x1ad)]](_0x5f3ea2[_0x5544cd(0x165)][_0x543a79][_0x5544cd(0x140)],null,util[_0x5544cd(0x149)]('%s.%s\x20=\x20%s.%s',_0x5f3ea2[_0x5544cd(0x1b1)],_0x5f3ea2[_0x5544cd(0x165)][_0x543a79]['parentKey'],_0x5f3ea2[_0x5544cd(0x165)][_0x543a79][_0x5544cd(0x140)],_0x5f3ea2[_0x5544cd(0x165)][_0x543a79][_0x5544cd(0x169)]));}}return _0x5f3ea2[_0x5544cd(0x18b)]&&(_0x5f3ea2[_0x5544cd(0x18b)]=JSON[_0x5544cd(0x1a9)](_0x5f3ea2[_0x5544cd(0x18b)]),_0x29d974[_0x5544cd(0x17e)](_0x3c0bef(_0x5f3ea2[_0x5544cd(0x18b)][_0x5544cd(0x1ac)]))),_0x3a8db7=_0x29d974[_0x5544cd(0x12e)](),_0x29d974[_0x5544cd(0x177)](_0x42ced2),_0x29d974[_0x5544cd(0x186)](0x0),logger[_0x5544cd(0x162)](_0x5544cd(0x14e),_0x29d974[_0x5544cd(0x12f)]()),db['sequelize'][_0x5544cd(0x166)](_0x29d974['toString'](),{'type':QueryTypes[_0x5544cd(0x1a2)]});}})[_0x58c08c(0x188)](function(){const _0x1bfeac=_0x58c08c;return{'sql':_0x3a8db7[_0x1bfeac(0x12f)]()};})[_0x58c08c(0x188)](respondWithResult(_0x5d1f02,null))[_0x58c08c(0x189)](handleError(_0x5d1f02,null));}; \ No newline at end of file diff --git a/server/api/analyticCustomReport/analyticCustomReport.model.js b/server/api/analyticCustomReport/analyticCustomReport.model.js index 32057ab..1c8948f 100644 --- a/server/api/analyticCustomReport/analyticCustomReport.model.js +++ b/server/api/analyticCustomReport/analyticCustomReport.model.js @@ -1 +1 @@ -const a7_0x2de2=['AnalyticCustomReport','init','sequelize','./analyticCustomReport.options','./analyticCustomReport.attributes','exports'];(function(_0x161a59,_0x3942d2){const _0x2de23b=function(_0x103627){while(--_0x103627){_0x161a59['push'](_0x161a59['shift']());}};_0x2de23b(++_0x3942d2);}(a7_0x2de2,0x14f));const a7_0x1036=function(_0x161a59,_0x3942d2){_0x161a59=_0x161a59-0x101;let _0x2de23b=a7_0x2de2[_0x161a59];return _0x2de23b;};const a7_0x1921a0=a7_0x1036;'use strict';const {Model}=require(a7_0x1921a0(0x104)),{attributes}=require(a7_0x1921a0(0x106)),{options}=require(a7_0x1921a0(0x105));class AnalyticCustomReport extends Model{}function init(_0x796edf,_0x1d419a){const _0x2095ad=a7_0x1921a0,_0x4d6446=options(_0x796edf),_0xf7b880=typeof _0x1d419a==='function'?_0x1d419a(_0x4d6446):_0x4d6446;return AnalyticCustomReport[_0x2095ad(0x103)](attributes,_0xf7b880),AnalyticCustomReport;}module['exports'][a7_0x1921a0(0x102)]=AnalyticCustomReport,module[a7_0x1921a0(0x101)][a7_0x1921a0(0x103)]=init; \ No newline at end of file +const a7_0x38d8=['./analyticCustomReport.options','sequelize','AnalyticCustomReport','init','exports'];(function(_0x5e65b5,_0x3a73b8){const _0x38d836=function(_0x583fc1){while(--_0x583fc1){_0x5e65b5['push'](_0x5e65b5['shift']());}};_0x38d836(++_0x3a73b8);}(a7_0x38d8,0x182));const a7_0x583f=function(_0x5e65b5,_0x3a73b8){_0x5e65b5=_0x5e65b5-0x19e;let _0x38d836=a7_0x38d8[_0x5e65b5];return _0x38d836;};const a7_0x161470=a7_0x583f;'use strict';const {Model}=require(a7_0x161470(0x19e)),{attributes}=require('./analyticCustomReport.attributes'),{options}=require(a7_0x161470(0x1a2));class AnalyticCustomReport extends Model{}function init(_0x3eb899,_0x433040){const _0x408e48=a7_0x161470,_0x4e4b68=options(_0x3eb899),_0x2b12be=typeof _0x433040==='function'?_0x433040(_0x4e4b68):_0x4e4b68;return AnalyticCustomReport[_0x408e48(0x1a0)](attributes,_0x2b12be),AnalyticCustomReport;}module[a7_0x161470(0x1a1)][a7_0x161470(0x19f)]=AnalyticCustomReport,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/analyticCustomReport/analyticCustomReport.options.js b/server/api/analyticCustomReport/analyticCustomReport.options.js index b81587b..e48cb16 100644 --- a/server/api/analyticCustomReport/analyticCustomReport.options.js +++ b/server/api/analyticCustomReport/analyticCustomReport.options.js @@ -1 +1 @@ -var a8_0xe8b1=['analytics_custom_reports'];(function(_0xe70116,_0x12e9d6){var _0xe8b1c=function(_0x2f5f88){while(--_0x2f5f88){_0xe70116['push'](_0xe70116['shift']());}};_0xe8b1c(++_0x12e9d6);}(a8_0xe8b1,0x109));var a8_0x2f5f=function(_0xe70116,_0x12e9d6){_0xe70116=_0xe70116-0x18e;var _0xe8b1c=a8_0xe8b1[_0xe70116];return _0xe8b1c;};function options(_0x354ab4){var _0x22e192=a8_0x2f5f;return{'sequelize':_0x354ab4,'tableName':_0x22e192(0x18e),'paranoid':!![],'indexes':[],'timestamps':!![]};}module['exports']['options']=options; \ No newline at end of file +var a8_0xbebc=['options'];(function(_0x19aaf3,_0x3b775c){var _0xbebc42=function(_0x55e7e5){while(--_0x55e7e5){_0x19aaf3['push'](_0x19aaf3['shift']());}};_0xbebc42(++_0x3b775c);}(a8_0xbebc,0x1d4));var a8_0x55e7=function(_0x19aaf3,_0x3b775c){_0x19aaf3=_0x19aaf3-0x1c6;var _0xbebc42=a8_0xbebc[_0x19aaf3];return _0xbebc42;};var a8_0x37696b=a8_0x55e7;function options(_0xefa845){return{'sequelize':_0xefa845,'tableName':'analytics_custom_reports','paranoid':!![],'indexes':[],'timestamps':!![]};}module['exports'][a8_0x37696b(0x1c6)]=options; \ No newline at end of file diff --git a/server/api/analyticCustomReport/index.js b/server/api/analyticCustomReport/index.js index 4be85ad..244a299 100644 --- a/server/api/analyticCustomReport/index.js +++ b/server/api/analyticCustomReport/index.js @@ -1 +1 @@ -const a9_0x5d3b=['put','run','post','isAuthenticated','show','get','query','../../components/auth/service','express','/:id','/:id/query','/:id/preview','index','update','create','/:id/run'];(function(_0x52ad0f,_0x16fb3f){const _0x5d3bda=function(_0x4d0479){while(--_0x4d0479){_0x52ad0f['push'](_0x52ad0f['shift']());}};_0x5d3bda(++_0x16fb3f);}(a9_0x5d3b,0xbb));const a9_0x4d04=function(_0x52ad0f,_0x16fb3f){_0x52ad0f=_0x52ad0f-0x1b6;let _0x5d3bda=a9_0x5d3b[_0x52ad0f];return _0x5d3bda;};const a9_0x3a8528=a9_0x4d04;'use strict';const express=require(a9_0x3a8528(0x1c3)),router=express['Router'](),auth=require(a9_0x3a8528(0x1c2)),controller=require('./analyticCustomReport.controller');router[a9_0x3a8528(0x1c0)]('/',auth['isAuthenticated'](),controller[a9_0x3a8528(0x1b7)]),router[a9_0x3a8528(0x1c0)](a9_0x3a8528(0x1c4),auth[a9_0x3a8528(0x1be)](),controller[a9_0x3a8528(0x1bf)]),router['get'](a9_0x3a8528(0x1b6),auth[a9_0x3a8528(0x1be)](),controller['preview']),router[a9_0x3a8528(0x1c0)](a9_0x3a8528(0x1ba),auth[a9_0x3a8528(0x1be)](),controller[a9_0x3a8528(0x1bc)]),router[a9_0x3a8528(0x1c0)](a9_0x3a8528(0x1c5),auth['isAuthenticated'](),controller[a9_0x3a8528(0x1c1)]),router[a9_0x3a8528(0x1bd)]('/',auth[a9_0x3a8528(0x1be)](),controller[a9_0x3a8528(0x1b9)]),router[a9_0x3a8528(0x1bb)](a9_0x3a8528(0x1c4),auth[a9_0x3a8528(0x1be)](),controller[a9_0x3a8528(0x1b8)]),router['delete']('/:id',auth[a9_0x3a8528(0x1be)](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a9_0x3d92=['isAuthenticated','put','query','../../components/auth/service','preview','get','post','./analyticCustomReport.controller','run','delete','/:id','destroy','Router','show','create','/:id/query'];(function(_0x5169a0,_0x4a6096){const _0x3d92ef=function(_0x96496c){while(--_0x96496c){_0x5169a0['push'](_0x5169a0['shift']());}};_0x3d92ef(++_0x4a6096);}(a9_0x3d92,0x1ee));const a9_0x9649=function(_0x5169a0,_0x4a6096){_0x5169a0=_0x5169a0-0x8d;let _0x3d92ef=a9_0x3d92[_0x5169a0];return _0x3d92ef;};const a9_0x521ac6=a9_0x9649;'use strict';const express=require('express'),router=express[a9_0x521ac6(0x9b)](),auth=require(a9_0x521ac6(0x92)),controller=require(a9_0x521ac6(0x96));router['get']('/',auth[a9_0x521ac6(0x8f)](),controller['index']),router[a9_0x521ac6(0x94)](a9_0x521ac6(0x99),auth['isAuthenticated'](),controller[a9_0x521ac6(0x9c)]),router['get']('/:id/preview',auth[a9_0x521ac6(0x8f)](),controller[a9_0x521ac6(0x93)]),router[a9_0x521ac6(0x94)]('/:id/run',auth[a9_0x521ac6(0x8f)](),controller[a9_0x521ac6(0x97)]),router[a9_0x521ac6(0x94)](a9_0x521ac6(0x8e),auth[a9_0x521ac6(0x8f)](),controller[a9_0x521ac6(0x91)]),router[a9_0x521ac6(0x95)]('/',auth[a9_0x521ac6(0x8f)](),controller[a9_0x521ac6(0x8d)]),router[a9_0x521ac6(0x90)](a9_0x521ac6(0x99),auth['isAuthenticated'](),controller['update']),router[a9_0x521ac6(0x98)]('/:id',auth['isAuthenticated'](),controller[a9_0x521ac6(0x9a)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js b/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js index 8bf3aef..c961bc6 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js @@ -1 +1 @@ -const a10_0x3606=['exports','sequelize','STRING','attributes','TEXT'];(function(_0x43250b,_0x58f8bc){const _0x360647=function(_0x5c4df2){while(--_0x5c4df2){_0x43250b['push'](_0x43250b['shift']());}};_0x360647(++_0x58f8bc);}(a10_0x3606,0xb9));const a10_0x5c4d=function(_0x43250b,_0x58f8bc){_0x43250b=_0x43250b-0x122;let _0x360647=a10_0x3606[_0x43250b];return _0x360647;};const a10_0x394ced=a10_0x5c4d;'use strict';const {DataTypes}=require(a10_0x394ced(0x123)),attributes={'name':{'type':DataTypes[a10_0x394ced(0x124)],'allowNull':![]},'description':{'type':DataTypes[a10_0x394ced(0x124)]},'parent':{'type':DataTypes[a10_0x394ced(0x124)]},'table':{'type':DataTypes[a10_0x394ced(0x124)]},'conditions':{'type':DataTypes[a10_0x394ced(0x126)]},'joins':{'type':DataTypes['TEXT']}};module[a10_0x394ced(0x122)][a10_0x394ced(0x125)]=attributes; \ No newline at end of file +const a10_0x2847=['STRING','exports','TEXT','sequelize','attributes'];(function(_0x107388,_0x33a176){const _0x28471b=function(_0xf429bf){while(--_0xf429bf){_0x107388['push'](_0x107388['shift']());}};_0x28471b(++_0x33a176);}(a10_0x2847,0x159));const a10_0xf429=function(_0x107388,_0x33a176){_0x107388=_0x107388-0x105;let _0x28471b=a10_0x2847[_0x107388];return _0x28471b;};const a10_0x562ec5=a10_0xf429;'use strict';const {DataTypes}=require(a10_0x562ec5(0x108)),attributes={'name':{'type':DataTypes[a10_0x562ec5(0x105)],'allowNull':![]},'description':{'type':DataTypes[a10_0x562ec5(0x105)]},'parent':{'type':DataTypes['STRING']},'table':{'type':DataTypes['STRING']},'conditions':{'type':DataTypes['TEXT']},'joins':{'type':DataTypes[a10_0x562ec5(0x107)]}};module[a10_0x562ec5(0x106)][a10_0x562ec5(0x109)]=attributes; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.controller.js b/server/api/analyticDefaultReport/analyticDefaultReport.controller.js index cead3d6..851f421 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.controller.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.controller.js @@ -1 +1 @@ -const a11_0x83bb=['foreignKey','end','attributes','QueryTypes','right_join','VIRTUAL','Please\x20insert\x20at\x20least\x20one\x20field','then','merge','csv','AVG(%s)','rules','include','index','SUM(%s)','set','includes','includeAll','MAX(%s)','filters','Limited\x20Query:','join','endDate','model','%s.%s\x20=\x20%s.%s','Content-Range','UNIX_TIMESTAMP(%s)','parentKey','IS\x20NULL','user','savename','order','preview','Run\x20Query:','filter','json','UserProfileResource','HOUR(%s)','COUNT(DISTINCT\x20%s)','orderBy','../../mysqldb','cross_join','output','findOne','update','AnalyticDefaultReport','MetricId','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','sendStatus','condition','countTable','destroy','ROUND(%s)','fields','AnalyticExtractedReport','api','value','select','fork','offset','userProfileId','.createdAt\x20BETWEEN\x20?\x20AND\x20?','SEC_TO_TIME(%s)','run','AnalyticMetric','alias','create','runReport','conditions','IS\x20EMPTY','name','lodash','pick','cdr','DATE(%s)','field','sequelize','table','get','metric','format','error','groupBy','status','from','foreignTable','query','parse','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','getFields','limit','replace','fieldName','debug','like','path','type','keys','catch','rawAttributes','MIN(%s)','map','sort','SELECT','operator','key','Reports','GROUP_CONCAT(%s)','Unable\x20to\x20retrieve\x20the\x20current\x20user','clone','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','web','rows','startDate','COUNT(%s)','group','DefaultReports','options','UserProfileSection','where','intersection','joins','IS\x20NOT\x20EMPTY','params','%s-%s.%s','fullPath','../../components/parsers/qs','keyBy','send','count','DESC','findAll','left_join','.calldate\x20BETWEEN\x20?\x20AND\x20?','autoAssociation','function','body','IS\x20NOT\x20NULL','show','squel','role','toString','length'];(function(_0x1b97bf,_0x5a2aed){const _0x83bb87=function(_0x14051e){while(--_0x14051e){_0x1b97bf['push'](_0x1b97bf['shift']());}};_0x83bb87(++_0x5a2aed);}(a11_0x83bb,0xbe));const a11_0x1405=function(_0x1b97bf,_0x5a2aed){_0x1b97bf=_0x1b97bf-0x106;let _0x83bb87=a11_0x83bb[_0x1b97bf];return _0x83bb87;};const a11_0xc5652e=a11_0x1405;'use strict';const util=require('util'),path=require(a11_0xc5652e(0x136)),_=require(a11_0xc5652e(0x11e)),squel=require(a11_0xc5652e(0x162)),qs=require(a11_0xc5652e(0x155)),logger=require('../../config/logger')(a11_0xc5652e(0x10e)),{db}=require('../../mysqldb'),dbH=require(a11_0xc5652e(0x18e))['dbH'],{Op,ValidationErrorItem,QueryTypes}=require(a11_0xc5652e(0x123));function respondWithResult(_0x3d4779,_0x44117d){return _0x44117d=_0x44117d||0xc8,function(_0x458dce){const _0x5b6c30=a11_0x1405;if(_0x458dce)return _0x3d4779['status'](_0x44117d)[_0x5b6c30(0x189)](_0x458dce);};}function respondWithFilteredResult(_0x8e28fa,_0x3f52f1){return function(_0x1c983a){const _0x2b02e7=a11_0x1405;if(_0x1c983a){const _0x4301d5=_0x1c983a[_0x2b02e7(0x158)],_0x9610f=_0x3f52f1['offset'];let _0xad5b1f=_0x3f52f1['offset']+_0x3f52f1[_0x2b02e7(0x131)],_0x2a8cc3;return _0xad5b1f>=_0x4301d5?(_0xad5b1f=_0x4301d5,_0x2a8cc3=0xc8):_0x2a8cc3=0xce,_0x8e28fa[_0x2b02e7(0x12a)](_0x2a8cc3),_0x8e28fa[_0x2b02e7(0x175)](_0x2b02e7(0x17f),_0x9610f+'-'+_0xad5b1f+'/'+_0x4301d5)[_0x2b02e7(0x189)](_0x1c983a);}return null;};}function saveUpdates(_0x4ae62e){return function(_0x22b198){const _0x355326=a11_0x1405;if(_0x22b198)return _0x22b198['update'](_0x4ae62e)[_0x355326(0x16d)](function(_0x53bd38){return _0x53bd38;});return null;};}function removeEntity(_0x21d9cd){return function(_0x3cb256){const _0x4f0d7f=a11_0x1405;if(_0x3cb256)return _0x3cb256[_0x4f0d7f(0x10a)]()[_0x4f0d7f(0x16d)](function(){const _0x390290=_0x4f0d7f,_0x1f2d34=_0x3cb256['get']({'plain':!![]}),_0x5b44e4=_0x390290(0x14b);return db[_0x390290(0x18a)][_0x390290(0x10a)]({'where':{'type':_0x5b44e4,'resourceId':_0x1f2d34['id']}})[_0x390290(0x16d)](function(){return _0x3cb256;});})[_0x4f0d7f(0x16d)](function(){const _0x58c87b=_0x4f0d7f;_0x21d9cd['status'](0xcc)[_0x58c87b(0x167)]();});};}function handleEntityNotFound(_0x2083a9){return function(_0x1b5f2f){const _0x32fee6=a11_0x1405;return!_0x1b5f2f&&_0x2083a9[_0x32fee6(0x107)](0x194),_0x1b5f2f;};}function handleError(_0x28cde2,_0x558cea){return _0x558cea=_0x558cea||0x1f4,function(_0x15362b){const _0x9342e9=a11_0x1405;logger['error'](_0x15362b['stack']),_0x15362b[_0x9342e9(0x11d)]&&delete _0x15362b[_0x9342e9(0x11d)],_0x28cde2[_0x9342e9(0x12a)](_0x558cea)[_0x9342e9(0x157)](_0x15362b);};}exports[a11_0xc5652e(0x173)]=function(_0x21891c,_0x55b057){const _0x2c42a0=a11_0xc5652e;let _0xbfe2f9={};const _0x2bf584={},_0x3527a6={'count':0x0,'rows':[]},_0x79251a=_[_0x2c42a0(0x13c)](db[_0x2c42a0(0x193)][_0x2c42a0(0x13a)],function(_0x502068){const _0x17c943=_0x2c42a0;return{'name':_0x502068[_0x17c943(0x133)],'type':_0x502068[_0x17c943(0x137)][_0x17c943(0x140)]};});_0x2bf584[_0x2c42a0(0x17d)]=_[_0x2c42a0(0x13c)](_0x79251a,_0x2c42a0(0x11d)),_0x2bf584[_0x2c42a0(0x12d)]=_[_0x2c42a0(0x138)](_0x21891c[_0x2c42a0(0x12d)]),_0x2bf584[_0x2c42a0(0x179)]=_[_0x2c42a0(0x14f)](_0x2bf584[_0x2c42a0(0x17d)],_0x2bf584[_0x2c42a0(0x12d)]),_0xbfe2f9[_0x2c42a0(0x168)]=_['intersection'](_0x2bf584[_0x2c42a0(0x17d)],qs[_0x2c42a0(0x10c)](_0x21891c[_0x2c42a0(0x12d)]['fields'])),_0xbfe2f9[_0x2c42a0(0x168)]=_0xbfe2f9['attributes'][_0x2c42a0(0x165)]?_0xbfe2f9[_0x2c42a0(0x168)]:_0x2bf584[_0x2c42a0(0x17d)];typeof _0x21891c[_0x2c42a0(0x12d)]['nolimit']==='undefined'&&(_0xbfe2f9['limit']=qs[_0x2c42a0(0x131)](_0x21891c[_0x2c42a0(0x12d)][_0x2c42a0(0x131)]),_0xbfe2f9['offset']=qs['offset'](_0x21891c[_0x2c42a0(0x12d)][_0x2c42a0(0x112)]));_0xbfe2f9['order']=qs['sort'](_0x21891c[_0x2c42a0(0x12d)][_0x2c42a0(0x13d)]),_0xbfe2f9[_0x2c42a0(0x14e)]=qs[_0x2c42a0(0x179)](_[_0x2c42a0(0x11f)](_0x21891c[_0x2c42a0(0x12d)],_0x2bf584[_0x2c42a0(0x179)]),_0x79251a);_0x21891c[_0x2c42a0(0x12d)][_0x2c42a0(0x188)]&&(_0xbfe2f9['where']=_['merge'](_0xbfe2f9[_0x2c42a0(0x14e)],{[Op['or']]:_[_0x2c42a0(0x13c)](_0x79251a,function(_0x53e87b){const _0x24ed5a=_0x2c42a0;if(_0x53e87b[_0x24ed5a(0x137)]!==_0x24ed5a(0x16b)){const _0x2f52e4={};return _0x2f52e4[_0x53e87b[_0x24ed5a(0x11d)]]={[Op[_0x24ed5a(0x135)]]:'%'+_0x21891c[_0x24ed5a(0x12d)][_0x24ed5a(0x188)]+'%'},_0x2f52e4;}})}));_0xbfe2f9=_[_0x2c42a0(0x16e)]({},_0xbfe2f9,_0x21891c[_0x2c42a0(0x14c)]);const _0x39c7bd={'where':_0xbfe2f9[_0x2c42a0(0x14e)]};return db['AnalyticDefaultReport']['count'](_0x39c7bd)[_0x2c42a0(0x16d)](function(_0x155ec0){const _0x26be70=_0x2c42a0;return _0x3527a6[_0x26be70(0x158)]=_0x155ec0,_0x21891c[_0x26be70(0x12d)][_0x26be70(0x177)]&&(_0xbfe2f9[_0x26be70(0x172)]=[{'all':!![]}]),db[_0x26be70(0x193)]['findAll'](_0xbfe2f9);})[_0x2c42a0(0x16d)](function(_0x2cf261){const _0x51931b=_0x2c42a0;return _0x3527a6[_0x51931b(0x147)]=_0x2cf261,_0x3527a6;})[_0x2c42a0(0x16d)](respondWithFilteredResult(_0x55b057,_0xbfe2f9))[_0x2c42a0(0x139)](handleError(_0x55b057,null));},exports[a11_0xc5652e(0x161)]=function(_0x4a2e27,_0x35f3a9){const _0x2a1413=a11_0xc5652e;let _0x2198cc={'raw':!![],'where':{'id':_0x4a2e27[_0x2a1413(0x152)]['id']}};const _0xc0a96f={};return _0xc0a96f[_0x2a1413(0x17d)]=_[_0x2a1413(0x138)](db[_0x2a1413(0x193)]['rawAttributes']),_0xc0a96f[_0x2a1413(0x12d)]=_[_0x2a1413(0x138)](_0x4a2e27[_0x2a1413(0x12d)]),_0xc0a96f[_0x2a1413(0x179)]=_['intersection'](_0xc0a96f[_0x2a1413(0x17d)],_0xc0a96f['query']),_0x2198cc[_0x2a1413(0x168)]=_[_0x2a1413(0x14f)](_0xc0a96f['model'],qs['fields'](_0x4a2e27[_0x2a1413(0x12d)][_0x2a1413(0x10c)])),_0x2198cc[_0x2a1413(0x168)]=_0x2198cc[_0x2a1413(0x168)][_0x2a1413(0x165)]?_0x2198cc['attributes']:_0xc0a96f[_0x2a1413(0x17d)],_0x4a2e27[_0x2a1413(0x12d)]['includeAll']&&(_0x2198cc[_0x2a1413(0x172)]=[{'all':!![]}]),_0x2198cc=_[_0x2a1413(0x16e)]({},_0x2198cc,_0x4a2e27[_0x2a1413(0x14c)]),db[_0x2a1413(0x193)][_0x2a1413(0x191)](_0x2198cc)[_0x2a1413(0x16d)](handleEntityNotFound(_0x35f3a9,null))[_0x2a1413(0x16d)](respondWithResult(_0x35f3a9,null))[_0x2a1413(0x139)](handleError(_0x35f3a9,null));},exports[a11_0xc5652e(0x119)]=function(_0x48fff9,_0x265683){const _0x192ac4=a11_0xc5652e;return db[_0x192ac4(0x193)][_0x192ac4(0x119)](_0x48fff9[_0x192ac4(0x15f)],{})[_0x192ac4(0x16d)](function(_0x1a7f1b){const _0x3d9d65=_0x192ac4,_0x4c6638=_0x48fff9[_0x3d9d65(0x183)][_0x3d9d65(0x125)]({'plain':!![]});if(!_0x4c6638)throw new Error(_0x3d9d65(0x143));if(_0x4c6638[_0x3d9d65(0x163)]==='user'){const _0x2b7901=_0x1a7f1b[_0x3d9d65(0x125)]({'plain':!![]}),_0x2fd5ea=_0x3d9d65(0x141);return db[_0x3d9d65(0x14d)][_0x3d9d65(0x191)]({'where':{'name':_0x2fd5ea,'userProfileId':_0x4c6638[_0x3d9d65(0x113)]},'raw':!![]})[_0x3d9d65(0x16d)](function(_0x496598){const _0x28abf0=_0x3d9d65;return _0x496598&&_0x496598[_0x28abf0(0x15d)]===0x0?db[_0x28abf0(0x18a)][_0x28abf0(0x119)]({'name':_0x2b7901[_0x28abf0(0x11d)],'resourceId':_0x2b7901['id'],'type':_0x28abf0(0x14b),'sectionId':_0x496598['id']},{})[_0x28abf0(0x16d)](function(){return _0x1a7f1b;}):_0x1a7f1b;})[_0x3d9d65(0x139)](function(_0x473cf7){const _0x140287=_0x3d9d65;logger[_0x140287(0x128)](_0x140287(0x12f),_0x473cf7);throw _0x473cf7;});}return _0x1a7f1b;})[_0x192ac4(0x16d)](respondWithResult(_0x265683,0xc9))[_0x192ac4(0x139)](handleError(_0x265683,null));},exports[a11_0xc5652e(0x192)]=function(_0x48086d,_0x15632e){const _0x485ae2=a11_0xc5652e;return _0x48086d[_0x485ae2(0x15f)]['id']&&delete _0x48086d['body']['id'],db[_0x485ae2(0x193)][_0x485ae2(0x191)]({'where':{'id':_0x48086d['params']['id']}})[_0x485ae2(0x16d)](handleEntityNotFound(_0x15632e,null))[_0x485ae2(0x16d)](saveUpdates(_0x48086d[_0x485ae2(0x15f)],null))[_0x485ae2(0x16d)](respondWithResult(_0x15632e,null))[_0x485ae2(0x139)](handleError(_0x15632e,null));},exports[a11_0xc5652e(0x10a)]=function(_0x580263,_0x2dcc85){const _0x3a3a28=a11_0xc5652e;return db['AnalyticDefaultReport'][_0x3a3a28(0x191)]({'where':{'id':_0x580263['params']['id']}})[_0x3a3a28(0x16d)](handleEntityNotFound(_0x2dcc85,null))['then'](removeEntity(_0x2dcc85,null))['catch'](handleError(_0x2dcc85,null));},exports[a11_0xc5652e(0x186)]=function(_0x2564c3,_0x107ad7){const _0x3fd8f9=a11_0xc5652e,_0x48138e=0xa,_0x39aecd=[_0x3fd8f9(0x17b),_0x3fd8f9(0x15b),_0x3fd8f9(0x16a),'cross_join'],_0xa85290={'SUM':_0x3fd8f9(0x174),'COUNT':_0x3fd8f9(0x149),'COUNT\x20DISTINCT':_0x3fd8f9(0x18c),'MAX':_0x3fd8f9(0x178),'MIN':_0x3fd8f9(0x13b),'AVG':_0x3fd8f9(0x170),'GROUP_CONCAT':_0x3fd8f9(0x142),'GROUP_CONCAT\x20ASC':_0x3fd8f9(0x106),'GROUP_CONCAT\x20DESC':_0x3fd8f9(0x145)},_0x18afc1={'SEC_TO_TIME':_0x3fd8f9(0x115),'DATE':_0x3fd8f9(0x121),'HOUR':'HOUR(%s)','ROUND':_0x3fd8f9(0x10b),'UNIX_TIMESTAMP':_0x3fd8f9(0x180)},_0x3c2084=function(_0x4ef769){const _0x3a5925=_0x3fd8f9;return!_[_0x3a5925(0x176)]([_0x3a5925(0x182),_0x3a5925(0x160),_0x3a5925(0x11c),_0x3a5925(0x151)],_0x4ef769);},_0x73fe1c=function(_0x388540){const _0x2eccb3=_0x3fd8f9;if(!_0x388540||!_0x388540[_0x2eccb3(0x171)]['length'])return'';let _0x130541='(';for(let _0x43b52d=0x0;_0x43b52d<_0x388540[_0x2eccb3(0x171)][_0x2eccb3(0x165)];_0x43b52d+=0x1){_0x43b52d>0x0&&(_0x130541+='\x20'+_0x388540[_0x2eccb3(0x13f)]+'\x20'),_0x130541+=_0x388540[_0x2eccb3(0x171)][_0x43b52d][_0x2eccb3(0x14a)]?_0x73fe1c(_0x388540[_0x2eccb3(0x171)][_0x43b52d][_0x2eccb3(0x14a)]):_0x388540[_0x2eccb3(0x171)][_0x43b52d]['field']+'\x20'+_0x388540[_0x2eccb3(0x171)][_0x43b52d][_0x2eccb3(0x108)]+(_0x3c2084(_0x388540[_0x2eccb3(0x171)][_0x43b52d][_0x2eccb3(0x108)])?'\x20'+_0x388540['rules'][_0x43b52d][_0x2eccb3(0x10f)]:'');}return _0x130541+')';};let _0x561c51={'where':{'id':_0x2564c3[_0x3fd8f9(0x152)]['id']}},_0x2e74b5,_0x1d92e2,_0x1e99a5;return _0x561c51=_[_0x3fd8f9(0x16e)]({},_0x561c51,_0x2564c3[_0x3fd8f9(0x14c)]),db[_0x3fd8f9(0x193)][_0x3fd8f9(0x191)](_0x561c51)[_0x3fd8f9(0x16d)](function(_0x2f54fa){const _0x1c25c1=_0x3fd8f9;if(_0x2f54fa)return _0x2e74b5=_0x2f54fa,_0x2f54fa[_0x1c25c1(0x130)]();return null;})[_0x3fd8f9(0x16d)](function(_0x308687){const _0x2db51e=_0x3fd8f9;if(_0x308687){if(!_0x308687[_0x2db51e(0x165)])throw new ValidationErrorItem('Please\x20insert\x20at\x20least\x20one\x20field',0x193);return _0x1d92e2=_0x308687,db[_0x2db51e(0x117)][_0x2db51e(0x15a)]({'raw':!![]});}return null;})['then'](function(_0x11f7b9){const _0x2710d4=_0x3fd8f9;if(_0x11f7b9){_0x1e99a5=_[_0x2710d4(0x156)](_0x11f7b9,'id');let _0x1f8943;const _0x4352f7=squel[_0x2710d4(0x110)]();_0x4352f7['from'](_0x2e74b5['table']);for(let _0x2ffe4a=0x0;_0x2ffe4a<_0x1d92e2['length'];_0x2ffe4a+=0x1){_0x1f8943=_0x1d92e2[_0x2ffe4a]['MetricId']?_0x1e99a5[_0x1d92e2[_0x2ffe4a]['MetricId']]['metric']:_0x1d92e2[_0x2ffe4a][_0x2710d4(0x122)],_0x1f8943=_0x1d92e2[_0x2ffe4a][_0x2710d4(0x15e)]?_[_0x2710d4(0x132)](_0xa85290[_0x1d92e2[_0x2ffe4a][_0x2710d4(0x15e)]],'%s',_0x1f8943):_0x1f8943,_0x1f8943=_0x1d92e2[_0x2ffe4a][_0x2710d4(0x127)]?_[_0x2710d4(0x132)](_0x18afc1[_0x1d92e2[_0x2ffe4a][_0x2710d4(0x127)]],'%s',_0x1f8943):_0x1f8943,_0x1d92e2[_0x2ffe4a][_0x2710d4(0x129)]&&_0x4352f7[_0x2710d4(0x14a)](_0x1f8943),_0x1d92e2[_0x2ffe4a][_0x2710d4(0x18d)]&&_0x4352f7[_0x2710d4(0x185)](_0x1f8943,_0x1d92e2[_0x2ffe4a][_0x2710d4(0x18d)]==='DESC'?![]:!![]),_0x4352f7[_0x2710d4(0x122)](_0x1f8943,_0x1d92e2[_0x2ffe4a][_0x2710d4(0x118)]||_0x1f8943);}if(_0x2e74b5[_0x2710d4(0x150)]){_0x2e74b5[_0x2710d4(0x150)]=JSON[_0x2710d4(0x12e)](_0x2e74b5[_0x2710d4(0x150)]);for(let _0x2080b2=0x0;_0x2080b2<_0x2e74b5[_0x2710d4(0x150)][_0x2710d4(0x165)];_0x2080b2+=0x1){_0x2e74b5[_0x2710d4(0x150)][_0x2080b2][_0x2710d4(0x137)]&&_['includes'](_0x39aecd,_0x2e74b5[_0x2710d4(0x150)][_0x2080b2][_0x2710d4(0x137)])&&_0x2e74b5[_0x2710d4(0x150)][_0x2080b2][_0x2710d4(0x181)]&&_0x2e74b5[_0x2710d4(0x150)][_0x2080b2][_0x2710d4(0x12c)]&&_0x2e74b5[_0x2710d4(0x150)][_0x2080b2][_0x2710d4(0x166)]&&_0x4352f7[_0x2e74b5['joins'][_0x2080b2][_0x2710d4(0x137)]](_0x2e74b5[_0x2710d4(0x150)][_0x2080b2][_0x2710d4(0x12c)],null,util[_0x2710d4(0x127)]('%s.%s\x20=\x20%s.%s',_0x2e74b5[_0x2710d4(0x124)],_0x2e74b5[_0x2710d4(0x150)][_0x2080b2][_0x2710d4(0x181)],_0x2e74b5[_0x2710d4(0x150)][_0x2080b2]['foreignTable'],_0x2e74b5[_0x2710d4(0x150)][_0x2080b2][_0x2710d4(0x166)]));}}return _0x2e74b5[_0x2710d4(0x11b)]&&(_0x2e74b5[_0x2710d4(0x11b)]=JSON['parse'](_0x2e74b5['conditions']),_0x4352f7[_0x2710d4(0x14e)](_0x73fe1c(_0x2e74b5[_0x2710d4(0x11b)][_0x2710d4(0x14a)]))),_0x4352f7[_0x2710d4(0x131)](_0x48138e),_0x4352f7[_0x2710d4(0x112)](0x0),logger[_0x2710d4(0x134)](_0x2710d4(0x17a),_0x4352f7[_0x2710d4(0x164)]()),db['sequelize'][_0x2710d4(0x12d)](_0x4352f7[_0x2710d4(0x164)](),{'type':QueryTypes['SELECT']});}})['then'](respondWithResult(_0x107ad7,null))[_0x3fd8f9(0x139)](handleError(_0x107ad7,null));};function runReport(_0x133b4e,_0xfe3c45,_0x27d5f9){const _0xc6b206=a11_0xc5652e,_0x50b107=_0xfe3c45[_0xc6b206(0x11d)],_0x128b6d=0xa,_0x4caa65=[_0xc6b206(0x17b),_0xc6b206(0x15b),_0xc6b206(0x16a),_0xc6b206(0x18f)],_0x2b44ad={'SUM':_0xc6b206(0x174),'COUNT':_0xc6b206(0x149),'COUNT\x20DISTINCT':_0xc6b206(0x18c),'MAX':_0xc6b206(0x178),'MIN':'MIN(%s)','AVG':_0xc6b206(0x170),'GROUP_CONCAT':_0xc6b206(0x142),'GROUP_CONCAT\x20ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT\x20DESC':_0xc6b206(0x145)},_0x4678d1={'SEC_TO_TIME':_0xc6b206(0x115),'DATE':_0xc6b206(0x121),'HOUR':_0xc6b206(0x18b),'ROUND':_0xc6b206(0x10b),'UNIX_TIMESTAMP':_0xc6b206(0x180)},_0xfa277b=function(_0x37efb1){const _0x426116=_0xc6b206;return!_['includes']([_0x426116(0x182),_0x426116(0x160),_0x426116(0x11c),_0x426116(0x151)],_0x37efb1);},_0x2b7368=function(_0x221171){const _0x70182c=_0xc6b206;if(!_0x221171||!_0x221171['rules'][_0x70182c(0x165)])return'';let _0x2d62f6='(';for(let _0x2ad3d5=0x0;_0x2ad3d5<_0x221171[_0x70182c(0x171)][_0x70182c(0x165)];_0x2ad3d5+=0x1){_0x2ad3d5>0x0&&(_0x2d62f6+='\x20'+_0x221171[_0x70182c(0x13f)]+'\x20'),_0x2d62f6+=_0x221171[_0x70182c(0x171)][_0x2ad3d5][_0x70182c(0x14a)]?_0x2b7368(_0x221171[_0x70182c(0x171)][_0x2ad3d5][_0x70182c(0x14a)]):_0x221171[_0x70182c(0x171)][_0x2ad3d5][_0x70182c(0x122)]+'\x20'+_0x221171['rules'][_0x2ad3d5][_0x70182c(0x108)]+(_0xfa277b(_0x221171[_0x70182c(0x171)][_0x2ad3d5][_0x70182c(0x108)])?'\x20'+_0x221171['rules'][_0x2ad3d5][_0x70182c(0x10f)]:'');}return _0x2d62f6+')';};let _0x5dbdcf={'where':{'id':_0x133b4e['id']}},_0x267d5d,_0x17b6e1,_0x2dee8f,_0x2b4466,_0x23a36d;return _0x5dbdcf=_[_0xc6b206(0x16e)]({},_0x5dbdcf,_0x27d5f9),db[_0xc6b206(0x193)][_0xc6b206(0x191)](_0x5dbdcf)[_0xc6b206(0x16d)](function(_0x26b5fb){const _0xd69529=_0xc6b206;if(_0x26b5fb)return _0x267d5d=_0x26b5fb,_0x26b5fb[_0xd69529(0x130)]();return null;})[_0xc6b206(0x16d)](function(_0x307155){const _0x5cfcba=_0xc6b206;if(_0x307155){if(!_0x307155[_0x5cfcba(0x165)])throw new ValidationErrorItem('Please\x20insert\x20at\x20least\x20one\x20field',0x193);return _0x17b6e1=_0x307155,db['AnalyticMetric'][_0x5cfcba(0x15a)]({'raw':!![]});}return null;})[_0xc6b206(0x16d)](function(_0x12f441){const _0x44c58e=_0xc6b206;if(_0x12f441){_0x2dee8f=_[_0x44c58e(0x156)](_0x12f441,'id');let _0x1818eb;const _0x253be7=squel[_0x44c58e(0x110)]();_0x253be7[_0x44c58e(0x12b)](_0x267d5d[_0x44c58e(0x124)]);for(let _0x10e183=0x0;_0x10e183<_0x17b6e1[_0x44c58e(0x165)];_0x10e183+=0x1){_0x1818eb=_0x17b6e1[_0x10e183][_0x44c58e(0x194)]?_0x2dee8f[_0x17b6e1[_0x10e183][_0x44c58e(0x194)]][_0x44c58e(0x126)]:_0x17b6e1[_0x10e183]['field'],_0x1818eb=_0x17b6e1[_0x10e183][_0x44c58e(0x15e)]?_[_0x44c58e(0x132)](_0x2b44ad[_0x17b6e1[_0x10e183][_0x44c58e(0x15e)]],'%s',_0x1818eb):_0x1818eb,_0x1818eb=_0x17b6e1[_0x10e183]['format']?_[_0x44c58e(0x132)](_0x4678d1[_0x17b6e1[_0x10e183][_0x44c58e(0x127)]],'%s',_0x1818eb):_0x1818eb,_0x17b6e1[_0x10e183][_0x44c58e(0x129)]&&_0x253be7[_0x44c58e(0x14a)](_0x1818eb),_0x17b6e1[_0x10e183][_0x44c58e(0x18d)]&&_0x253be7['order'](_0x1818eb,_0x17b6e1[_0x10e183]['orderBy']===_0x44c58e(0x159)?![]:!![]),_0x253be7[_0x44c58e(0x122)](_0x1818eb,_0x17b6e1[_0x10e183][_0x44c58e(0x118)]||_0x1818eb);}if(_0x267d5d[_0x44c58e(0x150)]){_0x267d5d[_0x44c58e(0x150)]=JSON['parse'](_0x267d5d[_0x44c58e(0x150)]);for(let _0x299a76=0x0;_0x299a76<_0x267d5d[_0x44c58e(0x150)][_0x44c58e(0x165)];_0x299a76+=0x1){_0x267d5d[_0x44c58e(0x150)][_0x299a76][_0x44c58e(0x137)]&&_[_0x44c58e(0x176)](_0x4caa65,_0x267d5d[_0x44c58e(0x150)][_0x299a76][_0x44c58e(0x137)])&&_0x267d5d[_0x44c58e(0x150)][_0x299a76]['parentKey']&&_0x267d5d['joins'][_0x299a76][_0x44c58e(0x12c)]&&_0x267d5d[_0x44c58e(0x150)][_0x299a76]['foreignKey']&&_0x253be7[_0x267d5d['joins'][_0x299a76][_0x44c58e(0x137)]](_0x267d5d[_0x44c58e(0x150)][_0x299a76]['foreignTable'],null,util[_0x44c58e(0x127)]('%s.%s\x20=\x20%s.%s',_0x267d5d[_0x44c58e(0x124)],_0x267d5d['joins'][_0x299a76]['parentKey'],_0x267d5d[_0x44c58e(0x150)][_0x299a76][_0x44c58e(0x12c)],_0x267d5d[_0x44c58e(0x150)][_0x299a76][_0x44c58e(0x166)]));}}return _0x267d5d[_0x44c58e(0x11b)]&&(_0x267d5d[_0x44c58e(0x11b)]=JSON['parse'](_0x267d5d[_0x44c58e(0x11b)]),_0x253be7[_0x44c58e(0x14e)](_0x2b7368(_0x267d5d[_0x44c58e(0x11b)][_0x44c58e(0x14a)]))),_0x23a36d=_0x253be7['clone'](),_0x253be7[_0x44c58e(0x131)](_0x128b6d),_0x253be7['offset'](0x0),logger[_0x44c58e(0x134)](_0x44c58e(0x17a),_0x253be7[_0x44c58e(0x164)]()),db[_0x44c58e(0x123)][_0x44c58e(0x12d)](_0x253be7['toString'](),{'type':QueryTypes['SELECT']});}})[_0xc6b206(0x16d)](function(_0xc30d2){const _0x5a5c00=_0xc6b206;if(!_0xc30d2[_0x5a5c00(0x165)])throw new ValidationErrorItem('No\x20available\x20data',0xcc);if(_0xfe3c45['output']===_0x5a5c00(0x146))return null;const _0x4b9c2a=_[_0x5a5c00(0x16e)](_0xfe3c45,{'name':_0xfe3c45[_0x5a5c00(0x154)]||_0xfe3c45[_0x5a5c00(0x11d)]||_0x267d5d[_0x5a5c00(0x11d)],'basename':_0x50b107,'savename':util[_0x5a5c00(0x127)](_0x5a5c00(0x153),_0xfe3c45[_0x5a5c00(0x11d)]||_0x267d5d['name'],require('randomstring')['generate'](0x4),_0xfe3c45[_0x5a5c00(0x190)]||_0x5a5c00(0x16f)),'reportId':_0x267d5d['id'],'reportType':'default'});return db[_0x5a5c00(0x10d)][_0x5a5c00(0x119)](_0x4b9c2a,{'raw':!![]});})[_0xc6b206(0x16d)](function(_0x4ad0a7){const _0x2a9b80=_0xc6b206;_0x267d5d[_0x2a9b80(0x124)]===_0x2a9b80(0x120)?_0x23a36d[_0x2a9b80(0x14e)](_0x267d5d[_0x2a9b80(0x124)]+_0x2a9b80(0x15c),_0xfe3c45[_0x2a9b80(0x148)],_0xfe3c45[_0x2a9b80(0x17c)]):_0x23a36d[_0x2a9b80(0x14e)](_0x267d5d['table']+_0x2a9b80(0x114),_0xfe3c45[_0x2a9b80(0x148)],_0xfe3c45['endDate']);if(_0x4ad0a7)return logger['info'](_0x2a9b80(0x187),_0x23a36d['toString']()),require('child_process')[_0x2a9b80(0x111)](path['join'](__dirname,'../../components/export/',_0x4ad0a7[_0x2a9b80(0x190)]),[_0x4ad0a7['id'],_0x23a36d[_0x2a9b80(0x164)](),path[_0x2a9b80(0x17b)](__dirname,'../../files/reports',_0x4ad0a7[_0x2a9b80(0x184)]),_0x50b107]),_0x4ad0a7;else{const _0x5130f7=squel['select']();return _0x5130f7[_0x2a9b80(0x12b)]('('+_0x23a36d['toString']()+')',_0x2a9b80(0x109)),_0x5130f7['field']('COUNT(*)',_0x2a9b80(0x158)),_0x23a36d[_0x2a9b80(0x131)](_0xfe3c45[_0x2a9b80(0x131)]||_0x128b6d),_0x23a36d[_0x2a9b80(0x112)](_0xfe3c45[_0x2a9b80(0x112)]||0x0),dbH[_0x2a9b80(0x123)][_0x2a9b80(0x12d)](_0x5130f7[_0x2a9b80(0x164)](),{'type':dbH['sequelize'][_0x2a9b80(0x169)][_0x2a9b80(0x13e)]})['then'](function(_0xe13c4){const _0x591a23=_0x2a9b80;return!_0xe13c4['length']?_0x2b4466=0x0:_0x2b4466=_0xe13c4[0x0][_0x591a23(0x158)]||0x0,dbH[_0x591a23(0x123)][_0x591a23(0x12d)](_0x23a36d[_0x591a23(0x164)](),{'type':dbH[_0x591a23(0x123)]['QueryTypes'][_0x591a23(0x13e)]});})[_0x2a9b80(0x16d)](function(_0x127b2a){return{'rows':_0x127b2a||[],'count':_0x2b4466};});}});}exports[a11_0xc5652e(0x116)]=function(_0x5b5c63,_0x1d7b61){const _0x15be7e=a11_0xc5652e;return runReport(_0x5b5c63['params'],_0x5b5c63['query'],_0x5b5c63['options'])[_0x15be7e(0x16d)](respondWithResult(_0x1d7b61,null))['catch'](handleError(_0x1d7b61,null));},exports[a11_0xc5652e(0x11a)]=runReport,exports[a11_0xc5652e(0x12d)]=function(_0x2061e3,_0x2b9450){const _0x37c8ad=a11_0xc5652e,_0x2b0798=0xa,_0x34bbe7=[_0x37c8ad(0x17b),_0x37c8ad(0x15b),_0x37c8ad(0x16a),_0x37c8ad(0x18f)],_0x1bf808={'SUM':_0x37c8ad(0x174),'COUNT':'COUNT(%s)','COUNT\x20DISTINCT':_0x37c8ad(0x18c),'MAX':_0x37c8ad(0x178),'MIN':'MIN(%s)','AVG':'AVG(%s)','GROUP_CONCAT':_0x37c8ad(0x142),'GROUP_CONCAT\x20ASC':_0x37c8ad(0x106),'GROUP_CONCAT\x20DESC':_0x37c8ad(0x145)},_0x525349={'SEC_TO_TIME':_0x37c8ad(0x115),'DATE':_0x37c8ad(0x121),'HOUR':_0x37c8ad(0x18b),'ROUND':_0x37c8ad(0x10b),'UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'},_0x5f260e=function(_0x17f040){const _0xe0cdef=_0x37c8ad;return!_['includes'](['IS\x20NULL',_0xe0cdef(0x160),'IS\x20EMPTY',_0xe0cdef(0x151)],_0x17f040);},_0x75d8b=function(_0x3d8041){const _0x4ffb0b=_0x37c8ad;if(!_0x3d8041||!_0x3d8041['rules'][_0x4ffb0b(0x165)])return'';let _0xef0a5='(';for(let _0x5d1fb3=0x0;_0x5d1fb3<_0x3d8041[_0x4ffb0b(0x171)][_0x4ffb0b(0x165)];_0x5d1fb3+=0x1){_0x5d1fb3>0x0&&(_0xef0a5+='\x20'+_0x3d8041[_0x4ffb0b(0x13f)]+'\x20'),_0xef0a5+=_0x3d8041['rules'][_0x5d1fb3][_0x4ffb0b(0x14a)]?_0x75d8b(_0x3d8041[_0x4ffb0b(0x171)][_0x5d1fb3]['group']):_0x3d8041['rules'][_0x5d1fb3][_0x4ffb0b(0x122)]+'\x20'+_0x3d8041[_0x4ffb0b(0x171)][_0x5d1fb3]['condition']+(_0x5f260e(_0x3d8041[_0x4ffb0b(0x171)][_0x5d1fb3][_0x4ffb0b(0x108)])?'\x20'+_0x3d8041[_0x4ffb0b(0x171)][_0x5d1fb3][_0x4ffb0b(0x10f)]:'');}return _0xef0a5+')';};let _0x34fba0={'where':{'id':_0x2061e3[_0x37c8ad(0x152)]['id']}},_0x27fa08,_0x28f717,_0xaddc73,_0x3ea140;return _0x34fba0=_[_0x37c8ad(0x16e)]({},_0x34fba0,_0x2061e3['options']),db[_0x37c8ad(0x193)]['findOne'](_0x34fba0)[_0x37c8ad(0x16d)](function(_0x4d8adc){const _0x35d38f=_0x37c8ad;if(_0x4d8adc)return _0x27fa08=_0x4d8adc,_0x4d8adc[_0x35d38f(0x130)]();return null;})[_0x37c8ad(0x16d)](function(_0x27dd01){const _0xa33c2=_0x37c8ad;if(_0x27dd01){if(!_0x27dd01['length'])throw new ValidationErrorItem(_0xa33c2(0x16c),0x193);return _0x28f717=_0x27dd01,db[_0xa33c2(0x117)][_0xa33c2(0x15a)]({'raw':!![]});}return null;})[_0x37c8ad(0x16d)](function(_0x2d730d){const _0x2f4d32=_0x37c8ad;if(_0x2d730d){_0xaddc73=_[_0x2f4d32(0x156)](_0x2d730d,'id');let _0x200480;const _0x326b37=squel[_0x2f4d32(0x110)]();_0x326b37['from'](_0x27fa08[_0x2f4d32(0x124)]);for(let _0x19cdc4=0x0;_0x19cdc4<_0x28f717[_0x2f4d32(0x165)];_0x19cdc4+=0x1){_0x200480=_0x28f717[_0x19cdc4][_0x2f4d32(0x194)]?_0xaddc73[_0x28f717[_0x19cdc4]['MetricId']][_0x2f4d32(0x126)]:_0x28f717[_0x19cdc4][_0x2f4d32(0x122)],_0x200480=_0x28f717[_0x19cdc4][_0x2f4d32(0x15e)]?_[_0x2f4d32(0x132)](_0x1bf808[_0x28f717[_0x19cdc4][_0x2f4d32(0x15e)]],'%s',_0x200480):_0x200480,_0x200480=_0x28f717[_0x19cdc4]['format']?_['replace'](_0x525349[_0x28f717[_0x19cdc4][_0x2f4d32(0x127)]],'%s',_0x200480):_0x200480,_0x28f717[_0x19cdc4][_0x2f4d32(0x129)]&&_0x326b37['group'](_0x200480),_0x28f717[_0x19cdc4][_0x2f4d32(0x18d)]&&_0x326b37[_0x2f4d32(0x185)](_0x200480,_0x28f717[_0x19cdc4][_0x2f4d32(0x18d)]==='DESC'?![]:!![]),_0x326b37[_0x2f4d32(0x122)](_0x200480,_0x28f717[_0x19cdc4]['alias']||_0x200480);}if(_0x27fa08['joins']){_0x27fa08[_0x2f4d32(0x150)]=JSON[_0x2f4d32(0x12e)](_0x27fa08['joins']);for(let _0x35234b=0x0;_0x35234b<_0x27fa08['joins']['length'];_0x35234b+=0x1){_0x27fa08[_0x2f4d32(0x150)][_0x35234b][_0x2f4d32(0x137)]&&_[_0x2f4d32(0x176)](_0x34bbe7,_0x27fa08[_0x2f4d32(0x150)][_0x35234b][_0x2f4d32(0x137)])&&_0x27fa08[_0x2f4d32(0x150)][_0x35234b]['parentKey']&&_0x27fa08[_0x2f4d32(0x150)][_0x35234b][_0x2f4d32(0x12c)]&&_0x27fa08[_0x2f4d32(0x150)][_0x35234b][_0x2f4d32(0x166)]&&_0x326b37[_0x27fa08[_0x2f4d32(0x150)][_0x35234b][_0x2f4d32(0x137)]](_0x27fa08[_0x2f4d32(0x150)][_0x35234b][_0x2f4d32(0x12c)],null,util[_0x2f4d32(0x127)](_0x2f4d32(0x17e),_0x27fa08[_0x2f4d32(0x124)],_0x27fa08[_0x2f4d32(0x150)][_0x35234b]['parentKey'],_0x27fa08[_0x2f4d32(0x150)][_0x35234b][_0x2f4d32(0x12c)],_0x27fa08['joins'][_0x35234b][_0x2f4d32(0x166)]));}}return _0x27fa08['conditions']&&(_0x27fa08[_0x2f4d32(0x11b)]=JSON[_0x2f4d32(0x12e)](_0x27fa08[_0x2f4d32(0x11b)]),_0x326b37[_0x2f4d32(0x14e)](_0x75d8b(_0x27fa08['conditions'][_0x2f4d32(0x14a)]))),_0x3ea140=_0x326b37[_0x2f4d32(0x144)](),_0x326b37[_0x2f4d32(0x131)](_0x2b0798),_0x326b37[_0x2f4d32(0x112)](0x0),logger[_0x2f4d32(0x134)](_0x2f4d32(0x17a),_0x326b37['toString']()),db['sequelize']['query'](_0x326b37[_0x2f4d32(0x164)](),{'type':QueryTypes[_0x2f4d32(0x13e)]});}})[_0x37c8ad(0x16d)](function(){const _0x30b3a6=_0x37c8ad;return{'sql':_0x3ea140[_0x30b3a6(0x164)]()};})['then'](respondWithResult(_0x2b9450,null))[_0x37c8ad(0x139)](handleError(_0x2b9450,null));}; \ No newline at end of file +const a11_0x3346=['getFields','operator','keys','SUM(%s)','../../files/reports','cross_join','No\x20available\x20data','like','count','select','offset','function','preview','Content-Range','findOne','set','IS\x20NOT\x20NULL','Reports','value','AnalyticMetric','UserProfileResource','AnalyticDefaultReport','rules','fullPath','update','join','options','sort','query','keyBy','format','params','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','error','MAX(%s)','end','IS\x20EMPTY','QueryTypes','order','savename','limit','.calldate\x20BETWEEN\x20?\x20AND\x20?','json','findAll','web','length','includes','where','table','undefined','IS\x20NOT\x20EMPTY','right_join','UserProfileSection','alias','Unable\x20to\x20retrieve\x20the\x20current\x20user','parse','left_join','type','COUNT(DISTINCT\x20%s)','foreignTable','VIRTUAL','Please\x20insert\x20at\x20least\x20one\x20field','fields','DATE(%s)','DESC','MetricId','get','pick','Run\x20Query:','run','catch','replace','then','body','sequelize','toString','ROUND(%s)','name','groupBy','includeAll','generate','intersection','AnalyticExtractedReport','model','.createdAt\x20BETWEEN\x20?\x20AND\x20?','startDate','send','destroy','metric','GROUP_CONCAT(%s)','Limited\x20Query:','UNIX_TIMESTAMP(%s)','SEC_TO_TIME(%s)','joins','role','status','MIN(%s)','group','COUNT(%s)','filters','rawAttributes','HOUR(%s)','create','IS\x20NULL','api','merge','../../components/parsers/qs','orderBy','../../mysqldb','path','include','debug','field','info','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','rows','endDate','clone','child_process','%s.%s\x20=\x20%s.%s','foreignKey','parentKey','AVG(%s)','../../components/export/','util','randomstring','show','DefaultReports','filter','condition','attributes','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','countTable','map','SELECT','conditions','from','fieldName'];(function(_0x5a97c8,_0x456cb3){const _0x334690=function(_0x4c1d68){while(--_0x4c1d68){_0x5a97c8['push'](_0x5a97c8['shift']());}};_0x334690(++_0x456cb3);}(a11_0x3346,0x193));const a11_0x4c1d=function(_0x5a97c8,_0x456cb3){_0x5a97c8=_0x5a97c8-0x1c0;let _0x334690=a11_0x3346[_0x5a97c8];return _0x334690;};const a11_0x321291=a11_0x4c1d;'use strict';const util=require(a11_0x321291(0x247)),path=require(a11_0x321291(0x238)),_=require('lodash'),squel=require('squel'),qs=require(a11_0x321291(0x235)),logger=require('../../config/logger')(a11_0x321291(0x233)),{db}=require(a11_0x321291(0x237)),dbH=require(a11_0x321291(0x237))['dbH'],{Op,ValidationErrorItem,QueryTypes}=require(a11_0x321291(0x215));function respondWithResult(_0x5ac5a3,_0x57ab5e){return _0x57ab5e=_0x57ab5e||0xc8,function(_0x5bb0b6){const _0x2a5d5e=a11_0x4c1d;if(_0x5bb0b6)return _0x5ac5a3[_0x2a5d5e(0x22a)](_0x57ab5e)[_0x2a5d5e(0x1f5)](_0x5bb0b6);};}function respondWithFilteredResult(_0x37c882,_0x11aa83){return function(_0x48a560){const _0x5e0bf7=a11_0x4c1d;if(_0x48a560){const _0x25a490=_0x48a560[_0x5e0bf7(0x1d3)],_0x24c8e0=_0x11aa83[_0x5e0bf7(0x1d5)];let _0x118d9d=_0x11aa83['offset']+_0x11aa83[_0x5e0bf7(0x1f3)],_0x269854;return _0x118d9d>=_0x25a490?(_0x118d9d=_0x25a490,_0x269854=0xc8):_0x269854=0xce,_0x37c882[_0x5e0bf7(0x22a)](_0x269854),_0x37c882[_0x5e0bf7(0x1da)](_0x5e0bf7(0x1d8),_0x24c8e0+'-'+_0x118d9d+'/'+_0x25a490)[_0x5e0bf7(0x1f5)](_0x48a560);}return null;};}function saveUpdates(_0xfa8a7b){return function(_0x5bf75b){const _0x1b9523=a11_0x4c1d;if(_0x5bf75b)return _0x5bf75b[_0x1b9523(0x1e3)](_0xfa8a7b)['then'](function(_0x33b4fe){return _0x33b4fe;});return null;};}function removeEntity(_0x393a69){return function(_0x25ca66){const _0x3f6a08=a11_0x4c1d;if(_0x25ca66)return _0x25ca66[_0x3f6a08(0x222)]()[_0x3f6a08(0x213)](function(){const _0x674494=_0x3f6a08,_0x21024c=_0x25ca66[_0x674494(0x20d)]({'plain':!![]}),_0x110df9='DefaultReports';return db['UserProfileResource']['destroy']({'where':{'type':_0x110df9,'resourceId':_0x21024c['id']}})[_0x674494(0x213)](function(){return _0x25ca66;});})[_0x3f6a08(0x213)](function(){const _0x3ce50d=_0x3f6a08;_0x393a69[_0x3ce50d(0x22a)](0xcc)[_0x3ce50d(0x1ee)]();});};}function handleEntityNotFound(_0x45a80a){return function(_0x6c6895){return!_0x6c6895&&_0x45a80a['sendStatus'](0x194),_0x6c6895;};}function handleError(_0x5b7fa7,_0x41c128){return _0x41c128=_0x41c128||0x1f4,function(_0x712690){const _0x5f76a1=a11_0x4c1d;logger['error'](_0x712690['stack']),_0x712690[_0x5f76a1(0x218)]&&delete _0x712690['name'],_0x5b7fa7[_0x5f76a1(0x22a)](_0x41c128)[_0x5f76a1(0x221)](_0x712690);};}exports['index']=function(_0x27552c,_0x344bdd){const _0x247d6d=a11_0x321291;let _0x3482ad={};const _0x3e3094={},_0x10603c={'count':0x0,'rows':[]},_0x5c41cc=_[_0x247d6d(0x1c6)](db[_0x247d6d(0x1e0)][_0x247d6d(0x22f)],function(_0x231422){const _0x4adfdf=_0x247d6d;return{'name':_0x231422[_0x4adfdf(0x1ca)],'type':_0x231422[_0x4adfdf(0x204)]['key']};});_0x3e3094['model']=_[_0x247d6d(0x1c6)](_0x5c41cc,_0x247d6d(0x218)),_0x3e3094['query']=_[_0x247d6d(0x1cd)](_0x27552c[_0x247d6d(0x1e7)]),_0x3e3094[_0x247d6d(0x22e)]=_[_0x247d6d(0x21c)](_0x3e3094['model'],_0x3e3094['query']),_0x3482ad['attributes']=_['intersection'](_0x3e3094[_0x247d6d(0x21e)],qs[_0x247d6d(0x209)](_0x27552c[_0x247d6d(0x1e7)][_0x247d6d(0x209)])),_0x3482ad[_0x247d6d(0x1c3)]=_0x3482ad['attributes'][_0x247d6d(0x1f8)]?_0x3482ad[_0x247d6d(0x1c3)]:_0x3e3094[_0x247d6d(0x21e)];typeof _0x27552c[_0x247d6d(0x1e7)]['nolimit']===_0x247d6d(0x1fc)&&(_0x3482ad[_0x247d6d(0x1f3)]=qs['limit'](_0x27552c[_0x247d6d(0x1e7)][_0x247d6d(0x1f3)]),_0x3482ad[_0x247d6d(0x1d5)]=qs['offset'](_0x27552c[_0x247d6d(0x1e7)][_0x247d6d(0x1d5)]));_0x3482ad['order']=qs[_0x247d6d(0x1e6)](_0x27552c[_0x247d6d(0x1e7)][_0x247d6d(0x1e6)]),_0x3482ad[_0x247d6d(0x1fa)]=qs['filters'](_[_0x247d6d(0x20e)](_0x27552c[_0x247d6d(0x1e7)],_0x3e3094['filters']),_0x5c41cc);_0x27552c[_0x247d6d(0x1e7)][_0x247d6d(0x1c1)]&&(_0x3482ad[_0x247d6d(0x1fa)]=_[_0x247d6d(0x234)](_0x3482ad[_0x247d6d(0x1fa)],{[Op['or']]:_['map'](_0x5c41cc,function(_0x307f84){const _0xdaa66c=_0x247d6d;if(_0x307f84[_0xdaa66c(0x204)]!==_0xdaa66c(0x207)){const _0x8ffcf8={};return _0x8ffcf8[_0x307f84['name']]={[Op[_0xdaa66c(0x1d2)]]:'%'+_0x27552c[_0xdaa66c(0x1e7)][_0xdaa66c(0x1c1)]+'%'},_0x8ffcf8;}})}));_0x3482ad=_[_0x247d6d(0x234)]({},_0x3482ad,_0x27552c[_0x247d6d(0x1e5)]);const _0x3607c6={'where':_0x3482ad['where']};return db['AnalyticDefaultReport'][_0x247d6d(0x1d3)](_0x3607c6)['then'](function(_0x357671){const _0x4662f6=_0x247d6d;return _0x10603c['count']=_0x357671,_0x27552c[_0x4662f6(0x1e7)][_0x4662f6(0x21a)]&&(_0x3482ad[_0x4662f6(0x239)]=[{'all':!![]}]),db[_0x4662f6(0x1e0)]['findAll'](_0x3482ad);})[_0x247d6d(0x213)](function(_0x2d8ae0){const _0x3c8da9=_0x247d6d;return _0x10603c[_0x3c8da9(0x23e)]=_0x2d8ae0,_0x10603c;})[_0x247d6d(0x213)](respondWithFilteredResult(_0x344bdd,_0x3482ad))[_0x247d6d(0x211)](handleError(_0x344bdd,null));},exports[a11_0x321291(0x249)]=function(_0x150dc1,_0x2222e6){const _0x1e03ff=a11_0x321291;let _0x4cd3e7={'raw':!![],'where':{'id':_0x150dc1[_0x1e03ff(0x1ea)]['id']}};const _0x1697b5={};return _0x1697b5[_0x1e03ff(0x21e)]=_['keys'](db[_0x1e03ff(0x1e0)][_0x1e03ff(0x22f)]),_0x1697b5['query']=_['keys'](_0x150dc1[_0x1e03ff(0x1e7)]),_0x1697b5['filters']=_[_0x1e03ff(0x21c)](_0x1697b5['model'],_0x1697b5['query']),_0x4cd3e7[_0x1e03ff(0x1c3)]=_[_0x1e03ff(0x21c)](_0x1697b5[_0x1e03ff(0x21e)],qs[_0x1e03ff(0x209)](_0x150dc1[_0x1e03ff(0x1e7)][_0x1e03ff(0x209)])),_0x4cd3e7[_0x1e03ff(0x1c3)]=_0x4cd3e7[_0x1e03ff(0x1c3)]['length']?_0x4cd3e7[_0x1e03ff(0x1c3)]:_0x1697b5[_0x1e03ff(0x21e)],_0x150dc1['query'][_0x1e03ff(0x21a)]&&(_0x4cd3e7[_0x1e03ff(0x239)]=[{'all':!![]}]),_0x4cd3e7=_[_0x1e03ff(0x234)]({},_0x4cd3e7,_0x150dc1[_0x1e03ff(0x1e5)]),db['AnalyticDefaultReport']['findOne'](_0x4cd3e7)[_0x1e03ff(0x213)](handleEntityNotFound(_0x2222e6,null))[_0x1e03ff(0x213)](respondWithResult(_0x2222e6,null))[_0x1e03ff(0x211)](handleError(_0x2222e6,null));},exports[a11_0x321291(0x231)]=function(_0x3481b7,_0x5b207e){const _0x3cbbfa=a11_0x321291;return db[_0x3cbbfa(0x1e0)]['create'](_0x3481b7[_0x3cbbfa(0x214)],{})[_0x3cbbfa(0x213)](function(_0x3eb282){const _0x183794=_0x3cbbfa,_0x46eca1=_0x3481b7['user'][_0x183794(0x20d)]({'plain':!![]});if(!_0x46eca1)throw new Error(_0x183794(0x201));if(_0x46eca1[_0x183794(0x229)]==='user'){const _0x10a541=_0x3eb282['get']({'plain':!![]}),_0x4019a1=_0x183794(0x1dc);return db[_0x183794(0x1ff)][_0x183794(0x1d9)]({'where':{'name':_0x4019a1,'userProfileId':_0x46eca1['userProfileId']},'raw':!![]})[_0x183794(0x213)](function(_0x578d68){const _0x9b7a2c=_0x183794;return _0x578d68&&_0x578d68['autoAssociation']===0x0?db[_0x9b7a2c(0x1df)]['create']({'name':_0x10a541[_0x9b7a2c(0x218)],'resourceId':_0x10a541['id'],'type':_0x9b7a2c(0x1c0),'sectionId':_0x578d68['id']},{})[_0x9b7a2c(0x213)](function(){return _0x3eb282;}):_0x3eb282;})[_0x183794(0x211)](function(_0x53aa05){const _0x311405=_0x183794;logger[_0x311405(0x1ec)](_0x311405(0x1c4),_0x53aa05);throw _0x53aa05;});}return _0x3eb282;})[_0x3cbbfa(0x213)](respondWithResult(_0x5b207e,0xc9))['catch'](handleError(_0x5b207e,null));},exports[a11_0x321291(0x1e3)]=function(_0x219709,_0x3ecc92){const _0xb7d291=a11_0x321291;return _0x219709['body']['id']&&delete _0x219709[_0xb7d291(0x214)]['id'],db[_0xb7d291(0x1e0)][_0xb7d291(0x1d9)]({'where':{'id':_0x219709[_0xb7d291(0x1ea)]['id']}})['then'](handleEntityNotFound(_0x3ecc92,null))['then'](saveUpdates(_0x219709[_0xb7d291(0x214)],null))[_0xb7d291(0x213)](respondWithResult(_0x3ecc92,null))['catch'](handleError(_0x3ecc92,null));},exports[a11_0x321291(0x222)]=function(_0x360211,_0x3886e8){const _0x3cd785=a11_0x321291;return db[_0x3cd785(0x1e0)]['findOne']({'where':{'id':_0x360211[_0x3cd785(0x1ea)]['id']}})[_0x3cd785(0x213)](handleEntityNotFound(_0x3886e8,null))[_0x3cd785(0x213)](removeEntity(_0x3886e8,null))[_0x3cd785(0x211)](handleError(_0x3886e8,null));},exports[a11_0x321291(0x1d7)]=function(_0x372d86,_0x2c7a52){const _0x50aaae=a11_0x321291,_0x365a2c=0xa,_0x217757=[_0x50aaae(0x1e4),_0x50aaae(0x203),_0x50aaae(0x1fe),_0x50aaae(0x1d0)],_0x51ea90={'SUM':'SUM(%s)','COUNT':'COUNT(%s)','COUNT\x20DISTINCT':_0x50aaae(0x205),'MAX':_0x50aaae(0x1ed),'MIN':_0x50aaae(0x22b),'AVG':_0x50aaae(0x245),'GROUP_CONCAT':_0x50aaae(0x224),'GROUP_CONCAT\x20ASC':_0x50aaae(0x23d),'GROUP_CONCAT\x20DESC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)'},_0x2f8d5b={'SEC_TO_TIME':_0x50aaae(0x227),'DATE':_0x50aaae(0x20a),'HOUR':_0x50aaae(0x230),'ROUND':_0x50aaae(0x217),'UNIX_TIMESTAMP':_0x50aaae(0x226)},_0x390ad6=function(_0x1773e5){const _0x5ea851=_0x50aaae;return!_[_0x5ea851(0x1f9)]([_0x5ea851(0x232),_0x5ea851(0x1db),_0x5ea851(0x1ef),_0x5ea851(0x1fd)],_0x1773e5);},_0x3fd90d=function(_0x342e27){const _0x192df0=_0x50aaae;if(!_0x342e27||!_0x342e27['rules'][_0x192df0(0x1f8)])return'';let _0x3dbc77='(';for(let _0x30ebd0=0x0;_0x30ebd0<_0x342e27[_0x192df0(0x1e1)][_0x192df0(0x1f8)];_0x30ebd0+=0x1){_0x30ebd0>0x0&&(_0x3dbc77+='\x20'+_0x342e27[_0x192df0(0x1cc)]+'\x20'),_0x3dbc77+=_0x342e27[_0x192df0(0x1e1)][_0x30ebd0]['group']?_0x3fd90d(_0x342e27[_0x192df0(0x1e1)][_0x30ebd0]['group']):_0x342e27[_0x192df0(0x1e1)][_0x30ebd0][_0x192df0(0x23b)]+'\x20'+_0x342e27[_0x192df0(0x1e1)][_0x30ebd0][_0x192df0(0x1c2)]+(_0x390ad6(_0x342e27[_0x192df0(0x1e1)][_0x30ebd0][_0x192df0(0x1c2)])?'\x20'+_0x342e27[_0x192df0(0x1e1)][_0x30ebd0][_0x192df0(0x1dd)]:'');}return _0x3dbc77+')';};let _0x5771b7={'where':{'id':_0x372d86[_0x50aaae(0x1ea)]['id']}},_0x2a824c,_0xf5d091,_0xbdef9e;return _0x5771b7=_['merge']({},_0x5771b7,_0x372d86[_0x50aaae(0x1e5)]),db['AnalyticDefaultReport'][_0x50aaae(0x1d9)](_0x5771b7)[_0x50aaae(0x213)](function(_0x38e1ec){const _0x59d485=_0x50aaae;if(_0x38e1ec)return _0x2a824c=_0x38e1ec,_0x38e1ec[_0x59d485(0x1cb)]();return null;})['then'](function(_0x53a20f){const _0x1dee26=_0x50aaae;if(_0x53a20f){if(!_0x53a20f[_0x1dee26(0x1f8)])throw new ValidationErrorItem(_0x1dee26(0x208),0x193);return _0xf5d091=_0x53a20f,db[_0x1dee26(0x1de)][_0x1dee26(0x1f6)]({'raw':!![]});}return null;})[_0x50aaae(0x213)](function(_0x5df0ce){const _0x28cfd1=_0x50aaae;if(_0x5df0ce){_0xbdef9e=_[_0x28cfd1(0x1e8)](_0x5df0ce,'id');let _0x3239ef;const _0x4a6e5b=squel[_0x28cfd1(0x1d4)]();_0x4a6e5b[_0x28cfd1(0x1c9)](_0x2a824c[_0x28cfd1(0x1fb)]);for(let _0x3a254d=0x0;_0x3a254d<_0xf5d091[_0x28cfd1(0x1f8)];_0x3a254d+=0x1){_0x3239ef=_0xf5d091[_0x3a254d][_0x28cfd1(0x20c)]?_0xbdef9e[_0xf5d091[_0x3a254d][_0x28cfd1(0x20c)]]['metric']:_0xf5d091[_0x3a254d][_0x28cfd1(0x23b)],_0x3239ef=_0xf5d091[_0x3a254d]['function']?_[_0x28cfd1(0x212)](_0x51ea90[_0xf5d091[_0x3a254d][_0x28cfd1(0x1d6)]],'%s',_0x3239ef):_0x3239ef,_0x3239ef=_0xf5d091[_0x3a254d]['format']?_[_0x28cfd1(0x212)](_0x2f8d5b[_0xf5d091[_0x3a254d][_0x28cfd1(0x1e9)]],'%s',_0x3239ef):_0x3239ef,_0xf5d091[_0x3a254d]['groupBy']&&_0x4a6e5b[_0x28cfd1(0x22c)](_0x3239ef),_0xf5d091[_0x3a254d][_0x28cfd1(0x236)]&&_0x4a6e5b[_0x28cfd1(0x1f1)](_0x3239ef,_0xf5d091[_0x3a254d][_0x28cfd1(0x236)]===_0x28cfd1(0x20b)?![]:!![]),_0x4a6e5b[_0x28cfd1(0x23b)](_0x3239ef,_0xf5d091[_0x3a254d][_0x28cfd1(0x200)]||_0x3239ef);}if(_0x2a824c[_0x28cfd1(0x228)]){_0x2a824c[_0x28cfd1(0x228)]=JSON['parse'](_0x2a824c[_0x28cfd1(0x228)]);for(let _0x2b2274=0x0;_0x2b2274<_0x2a824c['joins'][_0x28cfd1(0x1f8)];_0x2b2274+=0x1){_0x2a824c[_0x28cfd1(0x228)][_0x2b2274][_0x28cfd1(0x204)]&&_['includes'](_0x217757,_0x2a824c[_0x28cfd1(0x228)][_0x2b2274][_0x28cfd1(0x204)])&&_0x2a824c[_0x28cfd1(0x228)][_0x2b2274][_0x28cfd1(0x244)]&&_0x2a824c['joins'][_0x2b2274][_0x28cfd1(0x206)]&&_0x2a824c[_0x28cfd1(0x228)][_0x2b2274][_0x28cfd1(0x243)]&&_0x4a6e5b[_0x2a824c[_0x28cfd1(0x228)][_0x2b2274][_0x28cfd1(0x204)]](_0x2a824c[_0x28cfd1(0x228)][_0x2b2274][_0x28cfd1(0x206)],null,util[_0x28cfd1(0x1e9)](_0x28cfd1(0x242),_0x2a824c['table'],_0x2a824c[_0x28cfd1(0x228)][_0x2b2274]['parentKey'],_0x2a824c[_0x28cfd1(0x228)][_0x2b2274]['foreignTable'],_0x2a824c['joins'][_0x2b2274]['foreignKey']));}}return _0x2a824c[_0x28cfd1(0x1c8)]&&(_0x2a824c[_0x28cfd1(0x1c8)]=JSON[_0x28cfd1(0x202)](_0x2a824c[_0x28cfd1(0x1c8)]),_0x4a6e5b[_0x28cfd1(0x1fa)](_0x3fd90d(_0x2a824c[_0x28cfd1(0x1c8)][_0x28cfd1(0x22c)]))),_0x4a6e5b[_0x28cfd1(0x1f3)](_0x365a2c),_0x4a6e5b[_0x28cfd1(0x1d5)](0x0),logger['debug'](_0x28cfd1(0x225),_0x4a6e5b[_0x28cfd1(0x216)]()),db['sequelize']['query'](_0x4a6e5b['toString'](),{'type':QueryTypes[_0x28cfd1(0x1c7)]});}})[_0x50aaae(0x213)](respondWithResult(_0x2c7a52,null))[_0x50aaae(0x211)](handleError(_0x2c7a52,null));};function runReport(_0x4bda9d,_0x301f8a,_0x4c44b5){const _0x5e475e=a11_0x321291,_0x3e0e9b=_0x301f8a[_0x5e475e(0x218)],_0x4b3bbb=0xa,_0x344ded=['join',_0x5e475e(0x203),_0x5e475e(0x1fe),_0x5e475e(0x1d0)],_0x448fa1={'SUM':_0x5e475e(0x1ce),'COUNT':_0x5e475e(0x22d),'COUNT\x20DISTINCT':_0x5e475e(0x205),'MAX':_0x5e475e(0x1ed),'MIN':_0x5e475e(0x22b),'AVG':_0x5e475e(0x245),'GROUP_CONCAT':_0x5e475e(0x224),'GROUP_CONCAT\x20ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT\x20DESC':_0x5e475e(0x1eb)},_0x4ef93f={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':_0x5e475e(0x20a),'HOUR':_0x5e475e(0x230),'ROUND':_0x5e475e(0x217),'UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'},_0x2e12b9=function(_0x1195aa){const _0x3d4e40=_0x5e475e;return!_[_0x3d4e40(0x1f9)]([_0x3d4e40(0x232),_0x3d4e40(0x1db),_0x3d4e40(0x1ef),_0x3d4e40(0x1fd)],_0x1195aa);},_0x4db643=function(_0x519437){const _0x2f61a0=_0x5e475e;if(!_0x519437||!_0x519437['rules'][_0x2f61a0(0x1f8)])return'';let _0x50b2c9='(';for(let _0x5aed77=0x0;_0x5aed77<_0x519437['rules'][_0x2f61a0(0x1f8)];_0x5aed77+=0x1){_0x5aed77>0x0&&(_0x50b2c9+='\x20'+_0x519437[_0x2f61a0(0x1cc)]+'\x20'),_0x50b2c9+=_0x519437[_0x2f61a0(0x1e1)][_0x5aed77][_0x2f61a0(0x22c)]?_0x4db643(_0x519437[_0x2f61a0(0x1e1)][_0x5aed77][_0x2f61a0(0x22c)]):_0x519437[_0x2f61a0(0x1e1)][_0x5aed77]['field']+'\x20'+_0x519437[_0x2f61a0(0x1e1)][_0x5aed77]['condition']+(_0x2e12b9(_0x519437['rules'][_0x5aed77][_0x2f61a0(0x1c2)])?'\x20'+_0x519437['rules'][_0x5aed77][_0x2f61a0(0x1dd)]:'');}return _0x50b2c9+')';};let _0x25db7a={'where':{'id':_0x4bda9d['id']}},_0x12c05b,_0x5cb8cb,_0x3d9fe9,_0x4d25ea,_0x28a872;return _0x25db7a=_[_0x5e475e(0x234)]({},_0x25db7a,_0x4c44b5),db[_0x5e475e(0x1e0)][_0x5e475e(0x1d9)](_0x25db7a)[_0x5e475e(0x213)](function(_0x2ce875){const _0x4413bb=_0x5e475e;if(_0x2ce875)return _0x12c05b=_0x2ce875,_0x2ce875[_0x4413bb(0x1cb)]();return null;})[_0x5e475e(0x213)](function(_0xa2f350){const _0x3b6fbb=_0x5e475e;if(_0xa2f350){if(!_0xa2f350['length'])throw new ValidationErrorItem(_0x3b6fbb(0x208),0x193);return _0x5cb8cb=_0xa2f350,db['AnalyticMetric'][_0x3b6fbb(0x1f6)]({'raw':!![]});}return null;})[_0x5e475e(0x213)](function(_0x3f5d32){const _0x1fb9d7=_0x5e475e;if(_0x3f5d32){_0x3d9fe9=_[_0x1fb9d7(0x1e8)](_0x3f5d32,'id');let _0x5165e9;const _0x394e9d=squel['select']();_0x394e9d['from'](_0x12c05b[_0x1fb9d7(0x1fb)]);for(let _0x1bfa24=0x0;_0x1bfa24<_0x5cb8cb[_0x1fb9d7(0x1f8)];_0x1bfa24+=0x1){_0x5165e9=_0x5cb8cb[_0x1bfa24]['MetricId']?_0x3d9fe9[_0x5cb8cb[_0x1bfa24][_0x1fb9d7(0x20c)]][_0x1fb9d7(0x223)]:_0x5cb8cb[_0x1bfa24][_0x1fb9d7(0x23b)],_0x5165e9=_0x5cb8cb[_0x1bfa24][_0x1fb9d7(0x1d6)]?_['replace'](_0x448fa1[_0x5cb8cb[_0x1bfa24]['function']],'%s',_0x5165e9):_0x5165e9,_0x5165e9=_0x5cb8cb[_0x1bfa24][_0x1fb9d7(0x1e9)]?_[_0x1fb9d7(0x212)](_0x4ef93f[_0x5cb8cb[_0x1bfa24][_0x1fb9d7(0x1e9)]],'%s',_0x5165e9):_0x5165e9,_0x5cb8cb[_0x1bfa24][_0x1fb9d7(0x219)]&&_0x394e9d[_0x1fb9d7(0x22c)](_0x5165e9),_0x5cb8cb[_0x1bfa24][_0x1fb9d7(0x236)]&&_0x394e9d[_0x1fb9d7(0x1f1)](_0x5165e9,_0x5cb8cb[_0x1bfa24][_0x1fb9d7(0x236)]===_0x1fb9d7(0x20b)?![]:!![]),_0x394e9d['field'](_0x5165e9,_0x5cb8cb[_0x1bfa24][_0x1fb9d7(0x200)]||_0x5165e9);}if(_0x12c05b[_0x1fb9d7(0x228)]){_0x12c05b['joins']=JSON[_0x1fb9d7(0x202)](_0x12c05b['joins']);for(let _0xf74dfc=0x0;_0xf74dfc<_0x12c05b[_0x1fb9d7(0x228)][_0x1fb9d7(0x1f8)];_0xf74dfc+=0x1){_0x12c05b[_0x1fb9d7(0x228)][_0xf74dfc][_0x1fb9d7(0x204)]&&_[_0x1fb9d7(0x1f9)](_0x344ded,_0x12c05b[_0x1fb9d7(0x228)][_0xf74dfc][_0x1fb9d7(0x204)])&&_0x12c05b[_0x1fb9d7(0x228)][_0xf74dfc][_0x1fb9d7(0x244)]&&_0x12c05b[_0x1fb9d7(0x228)][_0xf74dfc][_0x1fb9d7(0x206)]&&_0x12c05b['joins'][_0xf74dfc][_0x1fb9d7(0x243)]&&_0x394e9d[_0x12c05b['joins'][_0xf74dfc][_0x1fb9d7(0x204)]](_0x12c05b['joins'][_0xf74dfc]['foreignTable'],null,util[_0x1fb9d7(0x1e9)](_0x1fb9d7(0x242),_0x12c05b['table'],_0x12c05b['joins'][_0xf74dfc][_0x1fb9d7(0x244)],_0x12c05b['joins'][_0xf74dfc][_0x1fb9d7(0x206)],_0x12c05b[_0x1fb9d7(0x228)][_0xf74dfc][_0x1fb9d7(0x243)]));}}return _0x12c05b[_0x1fb9d7(0x1c8)]&&(_0x12c05b[_0x1fb9d7(0x1c8)]=JSON[_0x1fb9d7(0x202)](_0x12c05b[_0x1fb9d7(0x1c8)]),_0x394e9d[_0x1fb9d7(0x1fa)](_0x4db643(_0x12c05b['conditions']['group']))),_0x28a872=_0x394e9d[_0x1fb9d7(0x240)](),_0x394e9d[_0x1fb9d7(0x1f3)](_0x4b3bbb),_0x394e9d['offset'](0x0),logger[_0x1fb9d7(0x23a)](_0x1fb9d7(0x225),_0x394e9d[_0x1fb9d7(0x216)]()),db[_0x1fb9d7(0x215)][_0x1fb9d7(0x1e7)](_0x394e9d[_0x1fb9d7(0x216)](),{'type':QueryTypes['SELECT']});}})['then'](function(_0x3f083a){const _0x21eaec=_0x5e475e;if(!_0x3f083a[_0x21eaec(0x1f8)])throw new ValidationErrorItem(_0x21eaec(0x1d1),0xcc);if(_0x301f8a['output']===_0x21eaec(0x1f7))return null;const _0x182bd8=_[_0x21eaec(0x234)](_0x301f8a,{'name':_0x301f8a[_0x21eaec(0x1e2)]||_0x301f8a[_0x21eaec(0x218)]||_0x12c05b[_0x21eaec(0x218)],'basename':_0x3e0e9b,'savename':util[_0x21eaec(0x1e9)]('%s-%s.%s',_0x301f8a['name']||_0x12c05b[_0x21eaec(0x218)],require(_0x21eaec(0x248))[_0x21eaec(0x21b)](0x4),_0x301f8a['output']||'csv'),'reportId':_0x12c05b['id'],'reportType':'default'});return db[_0x21eaec(0x21d)][_0x21eaec(0x231)](_0x182bd8,{'raw':!![]});})[_0x5e475e(0x213)](function(_0x517093){const _0x4b07d6=_0x5e475e;_0x12c05b['table']==='cdr'?_0x28a872['where'](_0x12c05b[_0x4b07d6(0x1fb)]+_0x4b07d6(0x1f4),_0x301f8a['startDate'],_0x301f8a[_0x4b07d6(0x23f)]):_0x28a872[_0x4b07d6(0x1fa)](_0x12c05b['table']+_0x4b07d6(0x21f),_0x301f8a[_0x4b07d6(0x220)],_0x301f8a['endDate']);if(_0x517093)return logger[_0x4b07d6(0x23c)](_0x4b07d6(0x20f),_0x28a872[_0x4b07d6(0x216)]()),require(_0x4b07d6(0x241))['fork'](path[_0x4b07d6(0x1e4)](__dirname,_0x4b07d6(0x246),_0x517093['output']),[_0x517093['id'],_0x28a872[_0x4b07d6(0x216)](),path['join'](__dirname,_0x4b07d6(0x1cf),_0x517093[_0x4b07d6(0x1f2)]),_0x3e0e9b]),_0x517093;else{const _0x5e0ee7=squel[_0x4b07d6(0x1d4)]();return _0x5e0ee7[_0x4b07d6(0x1c9)]('('+_0x28a872[_0x4b07d6(0x216)]()+')',_0x4b07d6(0x1c5)),_0x5e0ee7[_0x4b07d6(0x23b)]('COUNT(*)','count'),_0x28a872[_0x4b07d6(0x1f3)](_0x301f8a['limit']||_0x4b3bbb),_0x28a872['offset'](_0x301f8a[_0x4b07d6(0x1d5)]||0x0),dbH[_0x4b07d6(0x215)][_0x4b07d6(0x1e7)](_0x5e0ee7[_0x4b07d6(0x216)](),{'type':dbH[_0x4b07d6(0x215)][_0x4b07d6(0x1f0)][_0x4b07d6(0x1c7)]})[_0x4b07d6(0x213)](function(_0x18ec1c){const _0x5194fa=_0x4b07d6;return!_0x18ec1c[_0x5194fa(0x1f8)]?_0x4d25ea=0x0:_0x4d25ea=_0x18ec1c[0x0][_0x5194fa(0x1d3)]||0x0,dbH[_0x5194fa(0x215)][_0x5194fa(0x1e7)](_0x28a872['toString'](),{'type':dbH[_0x5194fa(0x215)][_0x5194fa(0x1f0)][_0x5194fa(0x1c7)]});})[_0x4b07d6(0x213)](function(_0x4e5376){return{'rows':_0x4e5376||[],'count':_0x4d25ea};});}});}exports[a11_0x321291(0x210)]=function(_0x198882,_0x4ec767){const _0x3e066d=a11_0x321291;return runReport(_0x198882[_0x3e066d(0x1ea)],_0x198882[_0x3e066d(0x1e7)],_0x198882[_0x3e066d(0x1e5)])[_0x3e066d(0x213)](respondWithResult(_0x4ec767,null))[_0x3e066d(0x211)](handleError(_0x4ec767,null));},exports['runReport']=runReport,exports[a11_0x321291(0x1e7)]=function(_0x7d7702,_0x22a558){const _0x53d86a=a11_0x321291,_0x44bb32=0xa,_0x47310c=[_0x53d86a(0x1e4),'left_join',_0x53d86a(0x1fe),'cross_join'],_0x544fe4={'SUM':_0x53d86a(0x1ce),'COUNT':_0x53d86a(0x22d),'COUNT\x20DISTINCT':'COUNT(DISTINCT\x20%s)','MAX':_0x53d86a(0x1ed),'MIN':_0x53d86a(0x22b),'AVG':'AVG(%s)','GROUP_CONCAT':_0x53d86a(0x224),'GROUP_CONCAT\x20ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT\x20DESC':_0x53d86a(0x1eb)},_0xb460e1={'SEC_TO_TIME':_0x53d86a(0x227),'DATE':_0x53d86a(0x20a),'HOUR':_0x53d86a(0x230),'ROUND':'ROUND(%s)','UNIX_TIMESTAMP':_0x53d86a(0x226)},_0x4068ac=function(_0x27ac5c){const _0x2f7fb=_0x53d86a;return!_['includes']([_0x2f7fb(0x232),_0x2f7fb(0x1db),_0x2f7fb(0x1ef),_0x2f7fb(0x1fd)],_0x27ac5c);},_0x37e71d=function(_0x2b1c18){const _0x66a00f=_0x53d86a;if(!_0x2b1c18||!_0x2b1c18[_0x66a00f(0x1e1)]['length'])return'';let _0x183d28='(';for(let _0x3cfc7c=0x0;_0x3cfc7c<_0x2b1c18['rules'][_0x66a00f(0x1f8)];_0x3cfc7c+=0x1){_0x3cfc7c>0x0&&(_0x183d28+='\x20'+_0x2b1c18[_0x66a00f(0x1cc)]+'\x20'),_0x183d28+=_0x2b1c18[_0x66a00f(0x1e1)][_0x3cfc7c][_0x66a00f(0x22c)]?_0x37e71d(_0x2b1c18[_0x66a00f(0x1e1)][_0x3cfc7c]['group']):_0x2b1c18[_0x66a00f(0x1e1)][_0x3cfc7c]['field']+'\x20'+_0x2b1c18[_0x66a00f(0x1e1)][_0x3cfc7c][_0x66a00f(0x1c2)]+(_0x4068ac(_0x2b1c18[_0x66a00f(0x1e1)][_0x3cfc7c][_0x66a00f(0x1c2)])?'\x20'+_0x2b1c18['rules'][_0x3cfc7c][_0x66a00f(0x1dd)]:'');}return _0x183d28+')';};let _0x2640c4={'where':{'id':_0x7d7702['params']['id']}},_0x4918a4,_0x7e5110,_0x4e786e,_0x488aa4;return _0x2640c4=_[_0x53d86a(0x234)]({},_0x2640c4,_0x7d7702[_0x53d86a(0x1e5)]),db['AnalyticDefaultReport'][_0x53d86a(0x1d9)](_0x2640c4)['then'](function(_0x3389b1){if(_0x3389b1)return _0x4918a4=_0x3389b1,_0x3389b1['getFields']();return null;})[_0x53d86a(0x213)](function(_0x290299){const _0x5a17da=_0x53d86a;if(_0x290299){if(!_0x290299[_0x5a17da(0x1f8)])throw new ValidationErrorItem(_0x5a17da(0x208),0x193);return _0x7e5110=_0x290299,db['AnalyticMetric'][_0x5a17da(0x1f6)]({'raw':!![]});}return null;})[_0x53d86a(0x213)](function(_0x435eca){const _0x587f49=_0x53d86a;if(_0x435eca){_0x4e786e=_[_0x587f49(0x1e8)](_0x435eca,'id');let _0x42b1bd;const _0x5d0d3b=squel[_0x587f49(0x1d4)]();_0x5d0d3b[_0x587f49(0x1c9)](_0x4918a4[_0x587f49(0x1fb)]);for(let _0x3eb7f2=0x0;_0x3eb7f2<_0x7e5110[_0x587f49(0x1f8)];_0x3eb7f2+=0x1){_0x42b1bd=_0x7e5110[_0x3eb7f2][_0x587f49(0x20c)]?_0x4e786e[_0x7e5110[_0x3eb7f2][_0x587f49(0x20c)]][_0x587f49(0x223)]:_0x7e5110[_0x3eb7f2][_0x587f49(0x23b)],_0x42b1bd=_0x7e5110[_0x3eb7f2][_0x587f49(0x1d6)]?_[_0x587f49(0x212)](_0x544fe4[_0x7e5110[_0x3eb7f2]['function']],'%s',_0x42b1bd):_0x42b1bd,_0x42b1bd=_0x7e5110[_0x3eb7f2][_0x587f49(0x1e9)]?_[_0x587f49(0x212)](_0xb460e1[_0x7e5110[_0x3eb7f2][_0x587f49(0x1e9)]],'%s',_0x42b1bd):_0x42b1bd,_0x7e5110[_0x3eb7f2]['groupBy']&&_0x5d0d3b[_0x587f49(0x22c)](_0x42b1bd),_0x7e5110[_0x3eb7f2][_0x587f49(0x236)]&&_0x5d0d3b['order'](_0x42b1bd,_0x7e5110[_0x3eb7f2]['orderBy']==='DESC'?![]:!![]),_0x5d0d3b[_0x587f49(0x23b)](_0x42b1bd,_0x7e5110[_0x3eb7f2]['alias']||_0x42b1bd);}if(_0x4918a4[_0x587f49(0x228)]){_0x4918a4[_0x587f49(0x228)]=JSON['parse'](_0x4918a4[_0x587f49(0x228)]);for(let _0x41dbae=0x0;_0x41dbae<_0x4918a4[_0x587f49(0x228)][_0x587f49(0x1f8)];_0x41dbae+=0x1){_0x4918a4[_0x587f49(0x228)][_0x41dbae][_0x587f49(0x204)]&&_['includes'](_0x47310c,_0x4918a4[_0x587f49(0x228)][_0x41dbae][_0x587f49(0x204)])&&_0x4918a4[_0x587f49(0x228)][_0x41dbae][_0x587f49(0x244)]&&_0x4918a4[_0x587f49(0x228)][_0x41dbae][_0x587f49(0x206)]&&_0x4918a4[_0x587f49(0x228)][_0x41dbae][_0x587f49(0x243)]&&_0x5d0d3b[_0x4918a4[_0x587f49(0x228)][_0x41dbae][_0x587f49(0x204)]](_0x4918a4[_0x587f49(0x228)][_0x41dbae][_0x587f49(0x206)],null,util['format'](_0x587f49(0x242),_0x4918a4['table'],_0x4918a4[_0x587f49(0x228)][_0x41dbae][_0x587f49(0x244)],_0x4918a4[_0x587f49(0x228)][_0x41dbae]['foreignTable'],_0x4918a4[_0x587f49(0x228)][_0x41dbae][_0x587f49(0x243)]));}}return _0x4918a4[_0x587f49(0x1c8)]&&(_0x4918a4[_0x587f49(0x1c8)]=JSON[_0x587f49(0x202)](_0x4918a4[_0x587f49(0x1c8)]),_0x5d0d3b[_0x587f49(0x1fa)](_0x37e71d(_0x4918a4['conditions'][_0x587f49(0x22c)]))),_0x488aa4=_0x5d0d3b[_0x587f49(0x240)](),_0x5d0d3b[_0x587f49(0x1f3)](_0x44bb32),_0x5d0d3b[_0x587f49(0x1d5)](0x0),logger[_0x587f49(0x23a)](_0x587f49(0x225),_0x5d0d3b['toString']()),db[_0x587f49(0x215)][_0x587f49(0x1e7)](_0x5d0d3b[_0x587f49(0x216)](),{'type':QueryTypes[_0x587f49(0x1c7)]});}})[_0x53d86a(0x213)](function(){return{'sql':_0x488aa4['toString']()};})['then'](respondWithResult(_0x22a558,null))[_0x53d86a(0x211)](handleError(_0x22a558,null));}; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.model.js b/server/api/analyticDefaultReport/analyticDefaultReport.model.js index 38a5155..299ef27 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.model.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.model.js @@ -1 +1 @@ -const a12_0xd2f8=['./analyticDefaultReport.options','./analyticDefaultReport.attributes','init','exports','function','sequelize'];(function(_0x30800c,_0x34ccad){const _0xd2f8b6=function(_0x22fd2b){while(--_0x22fd2b){_0x30800c['push'](_0x30800c['shift']());}};_0xd2f8b6(++_0x34ccad);}(a12_0xd2f8,0x126));const a12_0x22fd=function(_0x30800c,_0x34ccad){_0x30800c=_0x30800c-0x132;let _0xd2f8b6=a12_0xd2f8[_0x30800c];return _0xd2f8b6;};const a12_0x20ec48=a12_0x22fd;'use strict';const {Model}=require(a12_0x20ec48(0x137)),{attributes}=require(a12_0x20ec48(0x133)),{options}=require(a12_0x20ec48(0x132));class AnalyticDefaultReport extends Model{}function init(_0x4ca782,_0x276ab0){const _0x976fb6=a12_0x20ec48,_0x22df18=options(_0x4ca782),_0x15a4e9=typeof _0x276ab0===_0x976fb6(0x136)?_0x276ab0(_0x22df18):_0x22df18;return AnalyticDefaultReport[_0x976fb6(0x134)](attributes,_0x15a4e9),AnalyticDefaultReport;}module[a12_0x20ec48(0x135)]['AnalyticDefaultReport']=AnalyticDefaultReport,module['exports'][a12_0x20ec48(0x134)]=init; \ No newline at end of file +const a12_0x34c2=['exports','init','AnalyticDefaultReport','sequelize','./analyticDefaultReport.attributes'];(function(_0x11df14,_0x1e7103){const _0x34c248=function(_0x1ddf19){while(--_0x1ddf19){_0x11df14['push'](_0x11df14['shift']());}};_0x34c248(++_0x1e7103);}(a12_0x34c2,0x1b2));const a12_0x1ddf=function(_0x11df14,_0x1e7103){_0x11df14=_0x11df14-0x9d;let _0x34c248=a12_0x34c2[_0x11df14];return _0x34c248;};const a12_0x37ced3=a12_0x1ddf;'use strict';const {Model}=require(a12_0x37ced3(0xa1)),{attributes}=require(a12_0x37ced3(0x9d)),{options}=require('./analyticDefaultReport.options');class AnalyticDefaultReport extends Model{}function init(_0x9d7563,_0x591ffb){const _0x16a9fc=a12_0x37ced3,_0x5a6c1f=options(_0x9d7563),_0x4fad07=typeof _0x591ffb==='function'?_0x591ffb(_0x5a6c1f):_0x5a6c1f;return AnalyticDefaultReport[_0x16a9fc(0x9f)](attributes,_0x4fad07),AnalyticDefaultReport;}module[a12_0x37ced3(0x9e)][a12_0x37ced3(0xa0)]=AnalyticDefaultReport,module[a12_0x37ced3(0x9e)][a12_0x37ced3(0x9f)]=init; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.options.js b/server/api/analyticDefaultReport/analyticDefaultReport.options.js index a8115d3..0807654 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.options.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.options.js @@ -1 +1 @@ -var a13_0x53d7=['analytics_default_reports','exports'];(function(_0x457b02,_0xf815dd){var _0x53d7bf=function(_0xa8002c){while(--_0xa8002c){_0x457b02['push'](_0x457b02['shift']());}};_0x53d7bf(++_0xf815dd);}(a13_0x53d7,0x16e));var a13_0xa800=function(_0x457b02,_0xf815dd){_0x457b02=_0x457b02-0x142;var _0x53d7bf=a13_0x53d7[_0x457b02];return _0x53d7bf;};var a13_0x310ab7=a13_0xa800;function options(_0x574060){var _0x483cf0=a13_0xa800;return{'sequelize':_0x574060,'tableName':_0x483cf0(0x142),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a13_0x310ab7(0x143)]['options']=options; \ No newline at end of file +var a13_0x510c=['exports','analytics_default_reports','options'];(function(_0x564208,_0xabf6c9){var _0x510c55=function(_0x46bf4c){while(--_0x46bf4c){_0x564208['push'](_0x564208['shift']());}};_0x510c55(++_0xabf6c9);}(a13_0x510c,0x1c0));var a13_0x46bf=function(_0x564208,_0xabf6c9){_0x564208=_0x564208-0x161;var _0x510c55=a13_0x510c[_0x564208];return _0x510c55;};var a13_0x3ad0ef=a13_0x46bf;function options(_0x3798c8){var _0x9b2759=a13_0x46bf;return{'sequelize':_0x3798c8,'tableName':_0x9b2759(0x161),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a13_0x3ad0ef(0x163)][a13_0x3ad0ef(0x162)]=options; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/index.js b/server/api/analyticDefaultReport/index.js index 67d85d6..2f84a74 100644 --- a/server/api/analyticDefaultReport/index.js +++ b/server/api/analyticDefaultReport/index.js @@ -1 +1 @@ -const a14_0x182e=['destroy','express','index','/:id','get','post','run','/:id/preview','create','./analyticDefaultReport.controller','Router','query','put','update','/:id/run','preview','exports','delete','isAuthenticated'];(function(_0x5dc96a,_0x1eb39c){const _0x182e6d=function(_0x4b5333){while(--_0x4b5333){_0x5dc96a['push'](_0x5dc96a['shift']());}};_0x182e6d(++_0x1eb39c);}(a14_0x182e,0xba));const a14_0x4b53=function(_0x5dc96a,_0x1eb39c){_0x5dc96a=_0x5dc96a-0x6e;let _0x182e6d=a14_0x182e[_0x5dc96a];return _0x182e6d;};const a14_0x4c67c1=a14_0x4b53;'use strict';const express=require(a14_0x4c67c1(0x73)),router=express[a14_0x4c67c1(0x7c)](),auth=require('../../components/auth/service'),controller=require(a14_0x4c67c1(0x7b));router[a14_0x4c67c1(0x76)]('/',auth[a14_0x4c67c1(0x71)](),controller[a14_0x4c67c1(0x74)]),router[a14_0x4c67c1(0x76)](a14_0x4c67c1(0x75),auth[a14_0x4c67c1(0x71)](),controller['show']),router['get'](a14_0x4c67c1(0x79),auth[a14_0x4c67c1(0x71)](),controller[a14_0x4c67c1(0x6e)]),router[a14_0x4c67c1(0x76)](a14_0x4c67c1(0x80),auth[a14_0x4c67c1(0x71)](),controller[a14_0x4c67c1(0x78)]),router[a14_0x4c67c1(0x76)]('/:id/query',auth['isAuthenticated'](),controller[a14_0x4c67c1(0x7d)]),router[a14_0x4c67c1(0x77)]('/',auth['isAuthenticated'](),controller[a14_0x4c67c1(0x7a)]),router[a14_0x4c67c1(0x7e)](a14_0x4c67c1(0x75),auth[a14_0x4c67c1(0x71)](),controller[a14_0x4c67c1(0x7f)]),router[a14_0x4c67c1(0x70)](a14_0x4c67c1(0x75),auth[a14_0x4c67c1(0x71)](),controller[a14_0x4c67c1(0x72)]),module[a14_0x4c67c1(0x6f)]=router; \ No newline at end of file +const a14_0x5ce7=['post','get','../../components/auth/service','isAuthenticated','run','create','/:id/preview','/:id','delete','preview','destroy','express','put','exports','/:id/query','query','show','update','/:id/run','index'];(function(_0x3b4dc0,_0x2a4dac){const _0x5ce70f=function(_0x3ed48e){while(--_0x3ed48e){_0x3b4dc0['push'](_0x3b4dc0['shift']());}};_0x5ce70f(++_0x2a4dac);}(a14_0x5ce7,0x171));const a14_0x3ed4=function(_0x3b4dc0,_0x2a4dac){_0x3b4dc0=_0x3b4dc0-0x131;let _0x5ce70f=a14_0x5ce7[_0x3b4dc0];return _0x5ce70f;};const a14_0x377d64=a14_0x3ed4;'use strict';const express=require(a14_0x377d64(0x133)),router=express['Router'](),auth=require(a14_0x377d64(0x13e)),controller=require('./analyticDefaultReport.controller');router[a14_0x377d64(0x13d)]('/',auth[a14_0x377d64(0x13f)](),controller[a14_0x377d64(0x13b)]),router[a14_0x377d64(0x13d)]('/:id',auth['isAuthenticated'](),controller[a14_0x377d64(0x138)]),router['get'](a14_0x377d64(0x142),auth['isAuthenticated'](),controller[a14_0x377d64(0x131)]),router[a14_0x377d64(0x13d)](a14_0x377d64(0x13a),auth['isAuthenticated'](),controller[a14_0x377d64(0x140)]),router['get'](a14_0x377d64(0x136),auth[a14_0x377d64(0x13f)](),controller[a14_0x377d64(0x137)]),router[a14_0x377d64(0x13c)]('/',auth[a14_0x377d64(0x13f)](),controller[a14_0x377d64(0x141)]),router[a14_0x377d64(0x134)](a14_0x377d64(0x143),auth[a14_0x377d64(0x13f)](),controller[a14_0x377d64(0x139)]),router[a14_0x377d64(0x144)](a14_0x377d64(0x143),auth[a14_0x377d64(0x13f)](),controller[a14_0x377d64(0x132)]),module[a14_0x377d64(0x135)]=router; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js b/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js index 33a9f51..51fb57d 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js @@ -1 +1 @@ -const a15_0x14c5=['csv','Loading','attributes','scheduled','UNSIGNED','xlsx','exports','INTEGER','DATE','sequelize','ENUM','manual','STRING'];(function(_0x398c0f,_0x41de0b){const _0x14c553=function(_0x476133){while(--_0x476133){_0x398c0f['push'](_0x398c0f['shift']());}};_0x14c553(++_0x41de0b);}(a15_0x14c5,0x8c));const a15_0x4761=function(_0x398c0f,_0x41de0b){_0x398c0f=_0x398c0f-0x149;let _0x14c553=a15_0x14c5[_0x398c0f];return _0x14c553;};const a15_0x2be127=a15_0x4761;'use strict';const {DataTypes}=require(a15_0x2be127(0x155)),attributes={'name':{'type':DataTypes[a15_0x2be127(0x14b)],'allowNull':![]},'basename':{'type':DataTypes['STRING'],'allowNull':![]},'output':{'type':DataTypes[a15_0x2be127(0x149)](a15_0x2be127(0x14c),'pdf',a15_0x2be127(0x151)),'allowNull':![],'defaultValue':a15_0x2be127(0x14c)},'savename':{'type':DataTypes[a15_0x2be127(0x14b)],'allowNull':![]},'startDate':{'type':DataTypes[a15_0x2be127(0x154)]},'endDate':{'type':DataTypes[a15_0x2be127(0x154)]},'status':{'type':DataTypes[a15_0x2be127(0x14b)],'defaultValue':a15_0x2be127(0x14d)},'type':{'type':DataTypes[a15_0x2be127(0x149)]('manual',a15_0x2be127(0x14f)),'allowNull':![],'defaultValue':a15_0x2be127(0x14a)},'reportId':{'type':DataTypes[a15_0x2be127(0x153)]({'length':0xb})[a15_0x2be127(0x150)]},'reportType':{'type':DataTypes['STRING']}};module[a15_0x2be127(0x152)][a15_0x2be127(0x14e)]=attributes; \ No newline at end of file +const a15_0x1974=['INTEGER','ENUM','DATE','scheduled','STRING','manual','exports','csv','sequelize','xlsx','attributes','Loading'];(function(_0x24c6f2,_0x44a28f){const _0x1974d6=function(_0x25909c){while(--_0x25909c){_0x24c6f2['push'](_0x24c6f2['shift']());}};_0x1974d6(++_0x44a28f);}(a15_0x1974,0x169));const a15_0x2590=function(_0x24c6f2,_0x44a28f){_0x24c6f2=_0x24c6f2-0x99;let _0x1974d6=a15_0x1974[_0x24c6f2];return _0x1974d6;};const a15_0x5c385d=a15_0x2590;'use strict';const {DataTypes}=require(a15_0x5c385d(0xa0)),attributes={'name':{'type':DataTypes[a15_0x5c385d(0x9c)],'allowNull':![]},'basename':{'type':DataTypes[a15_0x5c385d(0x9c)],'allowNull':![]},'output':{'type':DataTypes[a15_0x5c385d(0x99)](a15_0x5c385d(0x9f),'pdf',a15_0x5c385d(0xa1)),'allowNull':![],'defaultValue':'csv'},'savename':{'type':DataTypes[a15_0x5c385d(0x9c)],'allowNull':![]},'startDate':{'type':DataTypes['DATE']},'endDate':{'type':DataTypes[a15_0x5c385d(0x9a)]},'status':{'type':DataTypes['STRING'],'defaultValue':a15_0x5c385d(0xa3)},'type':{'type':DataTypes[a15_0x5c385d(0x99)]('manual',a15_0x5c385d(0x9b)),'allowNull':![],'defaultValue':a15_0x5c385d(0x9d)},'reportId':{'type':DataTypes[a15_0x5c385d(0xa4)]({'length':0xb})['UNSIGNED']},'reportType':{'type':DataTypes['STRING']}};module[a15_0x5c385d(0x9e)][a15_0x5c385d(0xa2)]=attributes; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.controller.js b/server/api/analyticExtractedReport/analyticExtractedReport.controller.js index 93db83d..d508530 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.controller.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.controller.js @@ -1 +1 @@ -const a16_0x1265=['update','get','../../mysqldb','AnalyticExtractedReport','attributes','includeAll','intersection','index','Unable\x20to\x20retrieve\x20the\x20current\x20user','catch','api','where','params','root','limit','send','body','length','util','existsSync','query','key','stack','status','role','exists','create','end','map','like','undefined','model','../../config/environment','../../config/logger','destroy','set','join','include','output','count','filters','filter','path','files/reports','toLowerCase','offset','VIRTUAL','name','keys','type','user','basename','savename','rows','fieldName','fields','ExtractedReports','sendStatus','findAll','merge','sort','json','autoAssociation','show','download','nolimit','rawAttributes','error','then','pick','findOne','userProfileId'];(function(_0x42f373,_0xd4d742){const _0x12653c=function(_0x53161f){while(--_0x53161f){_0x42f373['push'](_0x42f373['shift']());}};_0x12653c(++_0xd4d742);}(a16_0x1265,0x111));const a16_0x5316=function(_0x42f373,_0xd4d742){_0x42f373=_0x42f373-0x1bf;let _0x12653c=a16_0x1265[_0x42f373];return _0x12653c;};const a16_0x451135=a16_0x5316;'use strict';const util=require(a16_0x451135(0x1e0)),path=require(a16_0x451135(0x1f8)),fs=require('fs'),_=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(a16_0x451135(0x1ef))(a16_0x451135(0x1d8)),config=require(a16_0x451135(0x1ee)),{db}=require(a16_0x451135(0x1d0)),{Op,ValidationError}=require('sequelize');function respondWithResult(_0x17e9d2,_0x14c2ea){return _0x14c2ea=_0x14c2ea||0xc8,function(_0x3de955){const _0x11c65c=a16_0x5316;if(_0x3de955)return _0x17e9d2[_0x11c65c(0x1e5)](_0x14c2ea)['json'](_0x3de955);};}function respondWithFilteredResult(_0x1b5f2e,_0x54e6d5){return function(_0x3453f3){const _0x2b6fd6=a16_0x5316;if(_0x3453f3){const _0x375038=_0x3453f3[_0x2b6fd6(0x1f5)],_0x59510f=_0x54e6d5[_0x2b6fd6(0x1fb)];let _0x4525d4=_0x54e6d5['offset']+_0x54e6d5[_0x2b6fd6(0x1dc)],_0x324d7d;return _0x4525d4>=_0x375038?(_0x4525d4=_0x375038,_0x324d7d=0xc8):_0x324d7d=0xce,_0x1b5f2e[_0x2b6fd6(0x1e5)](_0x324d7d),_0x1b5f2e[_0x2b6fd6(0x1f1)]('Content-Range',_0x59510f+'-'+_0x4525d4+'/'+_0x375038)[_0x2b6fd6(0x1c3)](_0x3453f3);}return null;};}function saveUpdates(_0x56061f){return function(_0x11e584){const _0x4812cb=a16_0x5316;if(_0x11e584)return _0x11e584['update'](_0x56061f)[_0x4812cb(0x1ca)](function(_0x42e667){return _0x42e667;});return null;};}function removeEntity(_0x105c3f){return function(_0x48346e){const _0x2e67b9=a16_0x5316;if(_0x48346e)return _0x48346e[_0x2e67b9(0x1f0)]()[_0x2e67b9(0x1ca)](function(){const _0x383779=_0x2e67b9,_0x1079a3=_0x48346e[_0x383779(0x1cf)]({'plain':!![]}),_0x53f489=_0x383779(0x206);return db['UserProfileResource'][_0x383779(0x1f0)]({'where':{'type':_0x53f489,'resourceId':_0x1079a3['id']}})[_0x383779(0x1ca)](function(){return _0x48346e;});})[_0x2e67b9(0x1ca)](function(){const _0x137b77=_0x2e67b9;_0x105c3f['status'](0xcc)[_0x137b77(0x1e9)]();});};}function handleEntityNotFound(_0x8ab18a){return function(_0x58bf1b){const _0x2fd671=a16_0x5316;return!_0x58bf1b&&_0x8ab18a[_0x2fd671(0x1bf)](0x194),_0x58bf1b;};}function handleError(_0x4d269b,_0x27d289){return _0x27d289=_0x27d289||0x1f4,function(_0x1a3e0d){const _0x245248=a16_0x5316;logger[_0x245248(0x1c9)](_0x1a3e0d[_0x245248(0x1e4)]),_0x1a3e0d[_0x245248(0x1fd)]&&delete _0x1a3e0d[_0x245248(0x1fd)],_0x4d269b[_0x245248(0x1e5)](_0x27d289)[_0x245248(0x1dd)](_0x1a3e0d);};}exports[a16_0x451135(0x1d5)]=function(_0x36f89a,_0x37b89a){const _0x191aa8=a16_0x451135;let _0x526419={};const _0xa6c1d3={},_0x22b1aa={'count':0x0,'rows':[]},_0x18a709=_[_0x191aa8(0x1ea)](db[_0x191aa8(0x1d1)][_0x191aa8(0x1c8)],function(_0xbc6468){const _0x329d05=_0x191aa8;return{'name':_0xbc6468[_0x329d05(0x204)],'type':_0xbc6468[_0x329d05(0x1ff)][_0x329d05(0x1e3)]};});_0xa6c1d3[_0x191aa8(0x1ed)]=_['map'](_0x18a709,_0x191aa8(0x1fd)),_0xa6c1d3[_0x191aa8(0x1e2)]=_[_0x191aa8(0x1fe)](_0x36f89a['query']),_0xa6c1d3[_0x191aa8(0x1f6)]=_[_0x191aa8(0x1d4)](_0xa6c1d3[_0x191aa8(0x1ed)],_0xa6c1d3['query']),_0x526419[_0x191aa8(0x1d2)]=_[_0x191aa8(0x1d4)](_0xa6c1d3[_0x191aa8(0x1ed)],qs['fields'](_0x36f89a['query'][_0x191aa8(0x205)])),_0x526419[_0x191aa8(0x1d2)]=_0x526419['attributes'][_0x191aa8(0x1df)]?_0x526419['attributes']:_0xa6c1d3[_0x191aa8(0x1ed)];typeof _0x36f89a['query'][_0x191aa8(0x1c7)]===_0x191aa8(0x1ec)&&(_0x526419[_0x191aa8(0x1dc)]=qs['limit'](_0x36f89a[_0x191aa8(0x1e2)][_0x191aa8(0x1dc)]),_0x526419[_0x191aa8(0x1fb)]=qs[_0x191aa8(0x1fb)](_0x36f89a[_0x191aa8(0x1e2)]['offset']));_0x526419['order']=qs[_0x191aa8(0x1c2)](_0x36f89a[_0x191aa8(0x1e2)][_0x191aa8(0x1c2)]),_0x526419[_0x191aa8(0x1d9)]=qs[_0x191aa8(0x1f6)](_[_0x191aa8(0x1cb)](_0x36f89a[_0x191aa8(0x1e2)],_0xa6c1d3[_0x191aa8(0x1f6)]),_0x18a709);_0x36f89a[_0x191aa8(0x1e2)][_0x191aa8(0x1f7)]&&(_0x526419['where']=_['merge'](_0x526419[_0x191aa8(0x1d9)],{[Op['or']]:_[_0x191aa8(0x1ea)](_0x18a709,function(_0x5b9cb8){const _0x21d6f=_0x191aa8;if(_0x5b9cb8[_0x21d6f(0x1ff)]!==_0x21d6f(0x1fc)){const _0xbd9aa0={};return _0xbd9aa0[_0x5b9cb8[_0x21d6f(0x1fd)]]={[Op[_0x21d6f(0x1eb)]]:'%'+_0x36f89a[_0x21d6f(0x1e2)]['filter']+'%'},_0xbd9aa0;}})}));_0x526419=_[_0x191aa8(0x1c1)]({},_0x526419,_0x36f89a['options']);const _0x4a2a95={'where':_0x526419[_0x191aa8(0x1d9)]};return db[_0x191aa8(0x1d1)][_0x191aa8(0x1f5)](_0x4a2a95)[_0x191aa8(0x1ca)](function(_0x3d2773){const _0x56eed5=_0x191aa8;return _0x22b1aa['count']=_0x3d2773,_0x36f89a['query'][_0x56eed5(0x1d3)]&&(_0x526419[_0x56eed5(0x1f3)]=[{'all':!![]}]),db[_0x56eed5(0x1d1)][_0x56eed5(0x1c0)](_0x526419);})[_0x191aa8(0x1ca)](function(_0x22e18b){const _0x5e1bc7=_0x191aa8;return _0x22b1aa[_0x5e1bc7(0x203)]=_0x22e18b,_0x22b1aa;})[_0x191aa8(0x1ca)](respondWithFilteredResult(_0x37b89a,_0x526419))[_0x191aa8(0x1d7)](handleError(_0x37b89a,null));},exports[a16_0x451135(0x1c5)]=function(_0x499ccb,_0x4201ac){const _0x20100a=a16_0x451135;let _0x19a21c={'raw':!![],'where':{'id':_0x499ccb[_0x20100a(0x1da)]['id']}};const _0x4027a8={};return _0x4027a8['model']=_[_0x20100a(0x1fe)](db['AnalyticExtractedReport'][_0x20100a(0x1c8)]),_0x4027a8['query']=_['keys'](_0x499ccb['query']),_0x4027a8[_0x20100a(0x1f6)]=_[_0x20100a(0x1d4)](_0x4027a8[_0x20100a(0x1ed)],_0x4027a8[_0x20100a(0x1e2)]),_0x19a21c['attributes']=_[_0x20100a(0x1d4)](_0x4027a8[_0x20100a(0x1ed)],qs[_0x20100a(0x205)](_0x499ccb[_0x20100a(0x1e2)][_0x20100a(0x205)])),_0x19a21c[_0x20100a(0x1d2)]=_0x19a21c[_0x20100a(0x1d2)][_0x20100a(0x1df)]?_0x19a21c[_0x20100a(0x1d2)]:_0x4027a8['model'],_0x499ccb[_0x20100a(0x1e2)][_0x20100a(0x1d3)]&&(_0x19a21c[_0x20100a(0x1f3)]=[{'all':!![]}]),_0x19a21c=_[_0x20100a(0x1c1)]({},_0x19a21c,_0x499ccb['options']),db[_0x20100a(0x1d1)][_0x20100a(0x1cc)](_0x19a21c)['then'](handleEntityNotFound(_0x4201ac,null))[_0x20100a(0x1ca)](respondWithResult(_0x4201ac,null))['catch'](handleError(_0x4201ac,null));},exports[a16_0x451135(0x1e8)]=function(_0x3417c3,_0x4c14ba){const _0x1b34ab=a16_0x451135;return db['AnalyticExtractedReport']['create'](_0x3417c3[_0x1b34ab(0x1de)],{})[_0x1b34ab(0x1ca)](function(_0x47b8c6){const _0xc2bcff=_0x1b34ab,_0xa0328=_0x3417c3[_0xc2bcff(0x200)]['get']({'plain':!![]});if(!_0xa0328)throw new Error(_0xc2bcff(0x1d6));if(_0xa0328[_0xc2bcff(0x1e6)]===_0xc2bcff(0x200)){const _0x591744=_0x47b8c6['get']({'plain':!![]}),_0x106e8c=_0xc2bcff(0x206);return db['UserProfileSection'][_0xc2bcff(0x1cc)]({'where':{'name':_0x106e8c,'userProfileId':_0xa0328[_0xc2bcff(0x1cd)]},'raw':!![]})[_0xc2bcff(0x1ca)](function(_0x230da4){const _0x3af0a4=_0xc2bcff;return _0x230da4&&_0x230da4[_0x3af0a4(0x1c4)]===0x0?db['UserProfileResource'][_0x3af0a4(0x1e8)]({'name':_0x591744['name'],'resourceId':_0x591744['id'],'type':_0x230da4[_0x3af0a4(0x1fd)],'sectionId':_0x230da4['id']},{})['then'](function(){return _0x47b8c6;}):_0x47b8c6;})[_0xc2bcff(0x1d7)](function(_0x280198){const _0x128177=_0xc2bcff;logger[_0x128177(0x1c9)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x280198);throw _0x280198;});}return _0x47b8c6;})[_0x1b34ab(0x1ca)](respondWithResult(_0x4c14ba,0xc9))[_0x1b34ab(0x1d7)](handleError(_0x4c14ba,null));},exports[a16_0x451135(0x1ce)]=function(_0x5add0e,_0x1f8913){const _0x25db3c=a16_0x451135;return _0x5add0e[_0x25db3c(0x1de)]['id']&&delete _0x5add0e[_0x25db3c(0x1de)]['id'],db['AnalyticExtractedReport'][_0x25db3c(0x1cc)]({'where':{'id':_0x5add0e[_0x25db3c(0x1da)]['id']}})[_0x25db3c(0x1ca)](handleEntityNotFound(_0x1f8913,null))[_0x25db3c(0x1ca)](saveUpdates(_0x5add0e['body'],null))[_0x25db3c(0x1ca)](respondWithResult(_0x1f8913,null))[_0x25db3c(0x1d7)](handleError(_0x1f8913,null));},exports[a16_0x451135(0x1f0)]=function(_0x670453,_0x404509){const _0x14de62=a16_0x451135;return db[_0x14de62(0x1d1)][_0x14de62(0x1cc)]({'where':{'id':_0x670453[_0x14de62(0x1da)]['id']}})[_0x14de62(0x1ca)](handleEntityNotFound(_0x404509,null))['then'](removeEntity(_0x404509,null))[_0x14de62(0x1d7)](handleError(_0x404509,null));},exports[a16_0x451135(0x1c6)]=function(_0x5d4590,_0x5aa285){const _0x284eb3=a16_0x451135;return db[_0x284eb3(0x1d1)][_0x284eb3(0x1cc)]({'where':{'id':_0x5d4590[_0x284eb3(0x1da)]['id']},'attributes':[_0x284eb3(0x1fd),_0x284eb3(0x201),_0x284eb3(0x202),'output'],'raw':!![]})[_0x284eb3(0x1ca)](handleEntityNotFound(_0x5aa285,null))['then'](function(_0x26a001){const _0x290200=_0x284eb3;if(_0x26a001){if(!fs[_0x290200(0x1e1)](path['join'](config['root'],_0x290200(0x1f9),_0x26a001[_0x290200(0x202)])))throw new ValidationError('Report\x20not\x20found\x20or\x20empty');if(_0x5d4590[_0x290200(0x1e2)][_0x290200(0x1e7)])return _0x5aa285[_0x290200(0x1bf)](0xc8);return _0x5aa285[_0x290200(0x1c6)](path[_0x290200(0x1f2)](config[_0x290200(0x1db)],_0x290200(0x1f9),_0x26a001[_0x290200(0x202)]),util['format']('%s.%s',_0x26a001[_0x290200(0x201)]||_0x26a001[_0x290200(0x1fd)],_0x26a001[_0x290200(0x1f4)][_0x290200(0x1fa)]()));}})[_0x284eb3(0x1d7)](handleError(_0x5aa285,null));}; \ No newline at end of file +const a16_0x5cff=['merge','util','length','%s.%s','query','findOne','map','intersection','filters','findAll','catch','path','set','count','pick','root','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','VIRTUAL','AnalyticExtractedReport','body','offset','options','then','send','show','like','fields','params','attributes','output','model','ExtractedReports','autoAssociation','files/reports','where','exists','user','index','status','userProfileId','undefined','../../mysqldb','key','update','includeAll','sequelize','Unable\x20to\x20retrieve\x20the\x20current\x20user','sendStatus','end','limit','type','order','create','UserProfileSection','api','include','filter','rawAttributes','format','basename','role','get','savename','name','sort','../../config/environment','UserProfileResource','../../components/parsers/qs','keys','error','json','rows','destroy'];(function(_0xb0f9e9,_0x118cbe){const _0x5cff73=function(_0x54fb7b){while(--_0x54fb7b){_0xb0f9e9['push'](_0xb0f9e9['shift']());}};_0x5cff73(++_0x118cbe);}(a16_0x5cff,0x18a));const a16_0x54fb=function(_0xb0f9e9,_0x118cbe){_0xb0f9e9=_0xb0f9e9-0xeb;let _0x5cff73=a16_0x5cff[_0xb0f9e9];return _0x5cff73;};const a16_0x1be037=a16_0x54fb;'use strict';const util=require(a16_0x1be037(0x118)),path=require(a16_0x1be037(0x122)),fs=require('fs'),_=require('lodash'),qs=require(a16_0x1be037(0x111)),logger=require('../../config/logger')(a16_0x1be037(0x104)),config=require(a16_0x1be037(0x10f)),{db}=require(a16_0x1be037(0xf7)),{Op,ValidationError}=require(a16_0x1be037(0xfb));function respondWithResult(_0x1c6177,_0x81bc55){return _0x81bc55=_0x81bc55||0xc8,function(_0x59a5fd){const _0x28d28c=a16_0x54fb;if(_0x59a5fd)return _0x1c6177[_0x28d28c(0xf4)](_0x81bc55)[_0x28d28c(0x114)](_0x59a5fd);};}function respondWithFilteredResult(_0x3dc0d1,_0x173021){return function(_0x3bb7c0){const _0x30b055=a16_0x54fb;if(_0x3bb7c0){const _0x1fdc15=_0x3bb7c0[_0x30b055(0x124)],_0x58f108=_0x173021[_0x30b055(0x12b)];let _0x28a0b8=_0x173021['offset']+_0x173021['limit'],_0x1dc823;return _0x28a0b8>=_0x1fdc15?(_0x28a0b8=_0x1fdc15,_0x1dc823=0xc8):_0x1dc823=0xce,_0x3dc0d1['status'](_0x1dc823),_0x3dc0d1[_0x30b055(0x123)]('Content-Range',_0x58f108+'-'+_0x28a0b8+'/'+_0x1fdc15)[_0x30b055(0x114)](_0x3bb7c0);}return null;};}function saveUpdates(_0xe39a2d){return function(_0x5072a2){const _0x3112fd=a16_0x54fb;if(_0x5072a2)return _0x5072a2[_0x3112fd(0xf9)](_0xe39a2d)[_0x3112fd(0x12d)](function(_0x2c2906){return _0x2c2906;});return null;};}function removeEntity(_0x2c084e){return function(_0x3fe6e2){const _0x496684=a16_0x54fb;if(_0x3fe6e2)return _0x3fe6e2[_0x496684(0x116)]()[_0x496684(0x12d)](function(){const _0x79866b=_0x496684,_0x2071b7=_0x3fe6e2[_0x79866b(0x10b)]({'plain':!![]}),_0x5da4f6=_0x79866b(0xed);return db[_0x79866b(0x110)]['destroy']({'where':{'type':_0x5da4f6,'resourceId':_0x2071b7['id']}})[_0x79866b(0x12d)](function(){return _0x3fe6e2;});})[_0x496684(0x12d)](function(){const _0xe27608=_0x496684;_0x2c084e['status'](0xcc)[_0xe27608(0xfe)]();});};}function handleEntityNotFound(_0x5b3839){return function(_0x1df2e2){return!_0x1df2e2&&_0x5b3839['sendStatus'](0x194),_0x1df2e2;};}function handleError(_0x2ed057,_0x4996ba){return _0x4996ba=_0x4996ba||0x1f4,function(_0x2cf639){const _0x59cd74=a16_0x54fb;logger['error'](_0x2cf639['stack']),_0x2cf639['name']&&delete _0x2cf639[_0x59cd74(0x10d)],_0x2ed057['status'](_0x4996ba)[_0x59cd74(0x12e)](_0x2cf639);};}exports[a16_0x1be037(0xf3)]=function(_0x4891e4,_0x5af9f3){const _0x53ce9d=a16_0x1be037;let _0x337dc6={};const _0x341f5f={},_0x5a5d34={'count':0x0,'rows':[]},_0x578a66=_['map'](db[_0x53ce9d(0x129)][_0x53ce9d(0x107)],function(_0x18cc93){const _0x3abb5c=_0x53ce9d;return{'name':_0x18cc93['fieldName'],'type':_0x18cc93[_0x3abb5c(0x100)][_0x3abb5c(0xf8)]};});_0x341f5f[_0x53ce9d(0xec)]=_[_0x53ce9d(0x11d)](_0x578a66,_0x53ce9d(0x10d)),_0x341f5f['query']=_[_0x53ce9d(0x112)](_0x4891e4[_0x53ce9d(0x11b)]),_0x341f5f[_0x53ce9d(0x11f)]=_[_0x53ce9d(0x11e)](_0x341f5f[_0x53ce9d(0xec)],_0x341f5f[_0x53ce9d(0x11b)]),_0x337dc6[_0x53ce9d(0x133)]=_['intersection'](_0x341f5f[_0x53ce9d(0xec)],qs[_0x53ce9d(0x131)](_0x4891e4[_0x53ce9d(0x11b)][_0x53ce9d(0x131)])),_0x337dc6['attributes']=_0x337dc6[_0x53ce9d(0x133)][_0x53ce9d(0x119)]?_0x337dc6[_0x53ce9d(0x133)]:_0x341f5f[_0x53ce9d(0xec)];typeof _0x4891e4['query']['nolimit']===_0x53ce9d(0xf6)&&(_0x337dc6['limit']=qs[_0x53ce9d(0xff)](_0x4891e4[_0x53ce9d(0x11b)][_0x53ce9d(0xff)]),_0x337dc6['offset']=qs['offset'](_0x4891e4[_0x53ce9d(0x11b)][_0x53ce9d(0x12b)]));_0x337dc6[_0x53ce9d(0x101)]=qs[_0x53ce9d(0x10e)](_0x4891e4['query'][_0x53ce9d(0x10e)]),_0x337dc6[_0x53ce9d(0xf0)]=qs['filters'](_[_0x53ce9d(0x125)](_0x4891e4[_0x53ce9d(0x11b)],_0x341f5f[_0x53ce9d(0x11f)]),_0x578a66);_0x4891e4[_0x53ce9d(0x11b)][_0x53ce9d(0x106)]&&(_0x337dc6['where']=_[_0x53ce9d(0x117)](_0x337dc6['where'],{[Op['or']]:_[_0x53ce9d(0x11d)](_0x578a66,function(_0x171f39){const _0x1201c1=_0x53ce9d;if(_0x171f39[_0x1201c1(0x100)]!==_0x1201c1(0x128)){const _0x431920={};return _0x431920[_0x171f39[_0x1201c1(0x10d)]]={[Op[_0x1201c1(0x130)]]:'%'+_0x4891e4[_0x1201c1(0x11b)]['filter']+'%'},_0x431920;}})}));_0x337dc6=_['merge']({},_0x337dc6,_0x4891e4[_0x53ce9d(0x12c)]);const _0x3c38a7={'where':_0x337dc6['where']};return db[_0x53ce9d(0x129)][_0x53ce9d(0x124)](_0x3c38a7)['then'](function(_0x4377ca){const _0x3bf1f0=_0x53ce9d;return _0x5a5d34[_0x3bf1f0(0x124)]=_0x4377ca,_0x4891e4[_0x3bf1f0(0x11b)][_0x3bf1f0(0xfa)]&&(_0x337dc6[_0x3bf1f0(0x105)]=[{'all':!![]}]),db[_0x3bf1f0(0x129)][_0x3bf1f0(0x120)](_0x337dc6);})[_0x53ce9d(0x12d)](function(_0x2c688e){const _0x21cb7c=_0x53ce9d;return _0x5a5d34[_0x21cb7c(0x115)]=_0x2c688e,_0x5a5d34;})['then'](respondWithFilteredResult(_0x5af9f3,_0x337dc6))[_0x53ce9d(0x121)](handleError(_0x5af9f3,null));},exports[a16_0x1be037(0x12f)]=function(_0x1b72d4,_0x3aedf9){const _0x1fd281=a16_0x1be037;let _0x1a4fe0={'raw':!![],'where':{'id':_0x1b72d4['params']['id']}};const _0x556688={};return _0x556688[_0x1fd281(0xec)]=_['keys'](db[_0x1fd281(0x129)][_0x1fd281(0x107)]),_0x556688[_0x1fd281(0x11b)]=_[_0x1fd281(0x112)](_0x1b72d4[_0x1fd281(0x11b)]),_0x556688[_0x1fd281(0x11f)]=_[_0x1fd281(0x11e)](_0x556688[_0x1fd281(0xec)],_0x556688[_0x1fd281(0x11b)]),_0x1a4fe0[_0x1fd281(0x133)]=_[_0x1fd281(0x11e)](_0x556688['model'],qs[_0x1fd281(0x131)](_0x1b72d4['query'][_0x1fd281(0x131)])),_0x1a4fe0['attributes']=_0x1a4fe0[_0x1fd281(0x133)][_0x1fd281(0x119)]?_0x1a4fe0['attributes']:_0x556688[_0x1fd281(0xec)],_0x1b72d4[_0x1fd281(0x11b)][_0x1fd281(0xfa)]&&(_0x1a4fe0[_0x1fd281(0x105)]=[{'all':!![]}]),_0x1a4fe0=_['merge']({},_0x1a4fe0,_0x1b72d4['options']),db[_0x1fd281(0x129)]['findOne'](_0x1a4fe0)['then'](handleEntityNotFound(_0x3aedf9,null))[_0x1fd281(0x12d)](respondWithResult(_0x3aedf9,null))[_0x1fd281(0x121)](handleError(_0x3aedf9,null));},exports[a16_0x1be037(0x102)]=function(_0x45e1a6,_0x871601){const _0x2be64d=a16_0x1be037;return db[_0x2be64d(0x129)]['create'](_0x45e1a6['body'],{})[_0x2be64d(0x12d)](function(_0x31e1d5){const _0x5570f0=_0x2be64d,_0x5a9edd=_0x45e1a6['user']['get']({'plain':!![]});if(!_0x5a9edd)throw new Error(_0x5570f0(0xfc));if(_0x5a9edd[_0x5570f0(0x10a)]===_0x5570f0(0xf2)){const _0x18d270=_0x31e1d5[_0x5570f0(0x10b)]({'plain':!![]}),_0x21a521=_0x5570f0(0xed);return db[_0x5570f0(0x103)]['findOne']({'where':{'name':_0x21a521,'userProfileId':_0x5a9edd[_0x5570f0(0xf5)]},'raw':!![]})[_0x5570f0(0x12d)](function(_0x8806dc){const _0x13512f=_0x5570f0;return _0x8806dc&&_0x8806dc[_0x13512f(0xee)]===0x0?db[_0x13512f(0x110)][_0x13512f(0x102)]({'name':_0x18d270[_0x13512f(0x10d)],'resourceId':_0x18d270['id'],'type':_0x8806dc[_0x13512f(0x10d)],'sectionId':_0x8806dc['id']},{})['then'](function(){return _0x31e1d5;}):_0x31e1d5;})['catch'](function(_0x3acbc8){const _0x270fa3=_0x5570f0;logger[_0x270fa3(0x113)](_0x270fa3(0x127),_0x3acbc8);throw _0x3acbc8;});}return _0x31e1d5;})[_0x2be64d(0x12d)](respondWithResult(_0x871601,0xc9))['catch'](handleError(_0x871601,null));},exports['update']=function(_0x390d22,_0x9501f4){const _0x11f198=a16_0x1be037;return _0x390d22[_0x11f198(0x12a)]['id']&&delete _0x390d22[_0x11f198(0x12a)]['id'],db[_0x11f198(0x129)][_0x11f198(0x11c)]({'where':{'id':_0x390d22[_0x11f198(0x132)]['id']}})[_0x11f198(0x12d)](handleEntityNotFound(_0x9501f4,null))[_0x11f198(0x12d)](saveUpdates(_0x390d22[_0x11f198(0x12a)],null))[_0x11f198(0x12d)](respondWithResult(_0x9501f4,null))['catch'](handleError(_0x9501f4,null));},exports[a16_0x1be037(0x116)]=function(_0x1cc3ce,_0x548dd2){const _0x276ade=a16_0x1be037;return db[_0x276ade(0x129)][_0x276ade(0x11c)]({'where':{'id':_0x1cc3ce['params']['id']}})['then'](handleEntityNotFound(_0x548dd2,null))[_0x276ade(0x12d)](removeEntity(_0x548dd2,null))[_0x276ade(0x121)](handleError(_0x548dd2,null));},exports['download']=function(_0x408dec,_0x174bdd){const _0x3e174f=a16_0x1be037;return db[_0x3e174f(0x129)][_0x3e174f(0x11c)]({'where':{'id':_0x408dec['params']['id']},'attributes':['name',_0x3e174f(0x109),'savename',_0x3e174f(0xeb)],'raw':!![]})[_0x3e174f(0x12d)](handleEntityNotFound(_0x174bdd,null))[_0x3e174f(0x12d)](function(_0x22f9c1){const _0x476b6a=_0x3e174f;if(_0x22f9c1){if(!fs['existsSync'](path['join'](config['root'],_0x476b6a(0xef),_0x22f9c1[_0x476b6a(0x10c)])))throw new ValidationError('Report\x20not\x20found\x20or\x20empty');if(_0x408dec['query'][_0x476b6a(0xf1)])return _0x174bdd[_0x476b6a(0xfd)](0xc8);return _0x174bdd['download'](path['join'](config[_0x476b6a(0x126)],_0x476b6a(0xef),_0x22f9c1['savename']),util[_0x476b6a(0x108)](_0x476b6a(0x11a),_0x22f9c1['basename']||_0x22f9c1[_0x476b6a(0x10d)],_0x22f9c1[_0x476b6a(0xeb)]['toLowerCase']()));}})[_0x3e174f(0x121)](handleError(_0x174bdd,null));}; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.model.js b/server/api/analyticExtractedReport/analyticExtractedReport.model.js index 61024cd..50957eb 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.model.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.model.js @@ -1 +1 @@ -const a17_0x32a4=['init','AnalyticExtractedReport','./analyticExtractedReport.options','./analyticExtractedReport.attributes','sequelize','exports'];(function(_0xa5531b,_0x2ae6c6){const _0x32a442=function(_0x4b1fca){while(--_0x4b1fca){_0xa5531b['push'](_0xa5531b['shift']());}};_0x32a442(++_0x2ae6c6);}(a17_0x32a4,0x159));const a17_0x4b1f=function(_0xa5531b,_0x2ae6c6){_0xa5531b=_0xa5531b-0xb8;let _0x32a442=a17_0x32a4[_0xa5531b];return _0x32a442;};const a17_0x4cffea=a17_0x4b1f;'use strict';const {Model}=require(a17_0x4cffea(0xb9)),{attributes}=require(a17_0x4cffea(0xb8)),{options}=require(a17_0x4cffea(0xbd));class AnalyticExtractedReport extends Model{}function init(_0x205a2c,_0x936351){const _0x2b7bf2=a17_0x4cffea,_0x2834bc=options(_0x205a2c),_0x573bb4=typeof _0x936351==='function'?_0x936351(_0x2834bc):_0x2834bc;return AnalyticExtractedReport[_0x2b7bf2(0xbb)](attributes,_0x573bb4),AnalyticExtractedReport;}module[a17_0x4cffea(0xba)][a17_0x4cffea(0xbc)]=AnalyticExtractedReport,module[a17_0x4cffea(0xba)]['init']=init; \ No newline at end of file +const a17_0x393d=['function','sequelize','AnalyticExtractedReport','init','./analyticExtractedReport.attributes','exports','./analyticExtractedReport.options'];(function(_0x5dff9f,_0x3ee477){const _0x393d66=function(_0x28ad9a){while(--_0x28ad9a){_0x5dff9f['push'](_0x5dff9f['shift']());}};_0x393d66(++_0x3ee477);}(a17_0x393d,0x17e));const a17_0x28ad=function(_0x5dff9f,_0x3ee477){_0x5dff9f=_0x5dff9f-0x192;let _0x393d66=a17_0x393d[_0x5dff9f];return _0x393d66;};const a17_0x76a02c=a17_0x28ad;'use strict';const {Model}=require(a17_0x76a02c(0x196)),{attributes}=require(a17_0x76a02c(0x192)),{options}=require(a17_0x76a02c(0x194));class AnalyticExtractedReport extends Model{}function init(_0x21932a,_0x519641){const _0x26a752=a17_0x76a02c,_0x48d1e0=options(_0x21932a),_0x8ecca4=typeof _0x519641===_0x26a752(0x195)?_0x519641(_0x48d1e0):_0x48d1e0;return AnalyticExtractedReport[_0x26a752(0x198)](attributes,_0x8ecca4),AnalyticExtractedReport;}module['exports'][a17_0x76a02c(0x197)]=AnalyticExtractedReport,module[a17_0x76a02c(0x193)][a17_0x76a02c(0x198)]=init; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.options.js b/server/api/analyticExtractedReport/analyticExtractedReport.options.js index f72688d..387df35 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.options.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.options.js @@ -1 +1 @@ -var a18_0x2dc4=['analytics_extracted_reports'];(function(_0x5b1816,_0xe47f5c){var _0x2dc4f8=function(_0xdf7cb5){while(--_0xdf7cb5){_0x5b1816['push'](_0x5b1816['shift']());}};_0x2dc4f8(++_0xe47f5c);}(a18_0x2dc4,0x1de));var a18_0xdf7c=function(_0x5b1816,_0xe47f5c){_0x5b1816=_0x5b1816-0xbc;var _0x2dc4f8=a18_0x2dc4[_0x5b1816];return _0x2dc4f8;};function options(_0x462434){var _0x341ef7=a18_0xdf7c;return{'sequelize':_0x462434,'tableName':_0x341ef7(0xbc),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports']['options']=options; \ No newline at end of file +var a18_0x3d71=['exports'];(function(_0x3b5595,_0x4bf9ef){var _0x3d716e=function(_0x18532e){while(--_0x18532e){_0x3b5595['push'](_0x3b5595['shift']());}};_0x3d716e(++_0x4bf9ef);}(a18_0x3d71,0x98));var a18_0x1853=function(_0x3b5595,_0x4bf9ef){_0x3b5595=_0x3b5595-0x6e;var _0x3d716e=a18_0x3d71[_0x3b5595];return _0x3d716e;};var a18_0x1f9cb6=a18_0x1853;function options(_0x3e8fea){return{'sequelize':_0x3e8fea,'tableName':'analytics_extracted_reports','paranoid':![],'indexes':[],'timestamps':!![]};}module[a18_0x1f9cb6(0x6e)]['options']=options; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/index.js b/server/api/analyticExtractedReport/index.js index 8a85bb7..8bc5849 100644 --- a/server/api/analyticExtractedReport/index.js +++ b/server/api/analyticExtractedReport/index.js @@ -1 +1 @@ -const a19_0x172b=['destroy','/:id/download','express','update','/:id','./analyticExtractedReport.controller','../../components/auth/service','Router','index','create','exports','delete','isAuthenticated','put','download'];(function(_0x4fcf66,_0x3253da){const _0x172b51=function(_0x4fedb7){while(--_0x4fedb7){_0x4fcf66['push'](_0x4fcf66['shift']());}};_0x172b51(++_0x3253da);}(a19_0x172b,0x1da));const a19_0x4fed=function(_0x4fcf66,_0x3253da){_0x4fcf66=_0x4fcf66-0x189;let _0x172b51=a19_0x172b[_0x4fcf66];return _0x172b51;};const a19_0x32ba7f=a19_0x4fed;'use strict';const express=require(a19_0x32ba7f(0x191)),router=express[a19_0x32ba7f(0x196)](),auth=require(a19_0x32ba7f(0x195)),controller=require(a19_0x32ba7f(0x194));router['get']('/',auth[a19_0x32ba7f(0x18c)](),controller[a19_0x32ba7f(0x197)]),router['get']('/:id',auth[a19_0x32ba7f(0x18c)](),controller['show']),router['get'](a19_0x32ba7f(0x190),auth[a19_0x32ba7f(0x18c)](),controller[a19_0x32ba7f(0x18e)]),router['post']('/',auth[a19_0x32ba7f(0x18c)](),controller[a19_0x32ba7f(0x189)]),router[a19_0x32ba7f(0x18d)](a19_0x32ba7f(0x193),auth[a19_0x32ba7f(0x18c)](),controller[a19_0x32ba7f(0x192)]),router[a19_0x32ba7f(0x18b)](a19_0x32ba7f(0x193),auth[a19_0x32ba7f(0x18c)](),controller[a19_0x32ba7f(0x18f)]),module[a19_0x32ba7f(0x18a)]=router; \ No newline at end of file +const a19_0x3dd6=['exports','../../components/auth/service','put','get','show','express','Router','update','/:id','./analyticExtractedReport.controller','isAuthenticated','delete','post','create'];(function(_0x45da88,_0x2623f2){const _0x3dd6b3=function(_0x2ef1b4){while(--_0x2ef1b4){_0x45da88['push'](_0x45da88['shift']());}};_0x3dd6b3(++_0x2623f2);}(a19_0x3dd6,0x153));const a19_0x2ef1=function(_0x45da88,_0x2623f2){_0x45da88=_0x45da88-0x188;let _0x3dd6b3=a19_0x3dd6[_0x45da88];return _0x3dd6b3;};const a19_0x17e925=a19_0x2ef1;'use strict';const express=require(a19_0x17e925(0x18a)),router=express[a19_0x17e925(0x18b)](),auth=require(a19_0x17e925(0x194)),controller=require(a19_0x17e925(0x18e));router[a19_0x17e925(0x188)]('/',auth['isAuthenticated'](),controller['index']),router[a19_0x17e925(0x188)](a19_0x17e925(0x18d),auth[a19_0x17e925(0x18f)](),controller[a19_0x17e925(0x189)]),router['get']('/:id/download',auth[a19_0x17e925(0x18f)](),controller['download']),router[a19_0x17e925(0x191)]('/',auth[a19_0x17e925(0x18f)](),controller[a19_0x17e925(0x192)]),router[a19_0x17e925(0x195)](a19_0x17e925(0x18d),auth[a19_0x17e925(0x18f)](),controller[a19_0x17e925(0x18c)]),router[a19_0x17e925(0x190)]('/:id',auth[a19_0x17e925(0x18f)](),controller['destroy']),module[a19_0x17e925(0x193)]=router; \ No newline at end of file diff --git a/server/api/analyticFieldReport/analyticFieldReport.attributes.js b/server/api/analyticFieldReport/analyticFieldReport.attributes.js index 633a815..15df313 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.attributes.js +++ b/server/api/analyticFieldReport/analyticFieldReport.attributes.js @@ -1 +1 @@ -const a20_0x59a2=['TEXT','attributes','exports','BOOLEAN','STRING','sequelize'];(function(_0x2586ab,_0x4a8935){const _0x59a265=function(_0x12fdd0){while(--_0x12fdd0){_0x2586ab['push'](_0x2586ab['shift']());}};_0x59a265(++_0x4a8935);}(a20_0x59a2,0xe4));const a20_0x12fd=function(_0x2586ab,_0x4a8935){_0x2586ab=_0x2586ab-0x1e5;let _0x59a265=a20_0x59a2[_0x2586ab];return _0x59a265;};const a20_0x231d72=a20_0x12fd;'use strict';const {DataTypes}=require(a20_0x231d72(0x1ea)),attributes={'field':{'type':DataTypes[a20_0x231d72(0x1e5)]},'alias':{'type':DataTypes[a20_0x231d72(0x1e9)]},'function':{'type':DataTypes[a20_0x231d72(0x1e9)]},'format':{'type':DataTypes['STRING']},'groupBy':{'type':DataTypes[a20_0x231d72(0x1e8)],'defaultValue':![]},'orderBy':{'type':DataTypes['STRING']},'custom':{'type':DataTypes[a20_0x231d72(0x1e8)],'defaultValue':![]}};module[a20_0x231d72(0x1e7)][a20_0x231d72(0x1e6)]=attributes; \ No newline at end of file +const a20_0x3669=['BOOLEAN','attributes','STRING'];(function(_0x206060,_0x2f0303){const _0x366930=function(_0x28b95d){while(--_0x28b95d){_0x206060['push'](_0x206060['shift']());}};_0x366930(++_0x2f0303);}(a20_0x3669,0x127));const a20_0x28b9=function(_0x206060,_0x2f0303){_0x206060=_0x206060-0xd4;let _0x366930=a20_0x3669[_0x206060];return _0x366930;};const a20_0x5147f5=a20_0x28b9;'use strict';const {DataTypes}=require('sequelize'),attributes={'field':{'type':DataTypes['TEXT']},'alias':{'type':DataTypes['STRING']},'function':{'type':DataTypes[a20_0x5147f5(0xd5)]},'format':{'type':DataTypes[a20_0x5147f5(0xd5)]},'groupBy':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'orderBy':{'type':DataTypes[a20_0x5147f5(0xd5)]},'custom':{'type':DataTypes[a20_0x5147f5(0xd6)],'defaultValue':![]}};module['exports'][a20_0x5147f5(0xd4)]=attributes; \ No newline at end of file diff --git a/server/api/analyticFieldReport/analyticFieldReport.controller.js b/server/api/analyticFieldReport/analyticFieldReport.controller.js index dc6e746..475ce5f 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.controller.js +++ b/server/api/analyticFieldReport/analyticFieldReport.controller.js @@ -1 +1 @@ -const a21_0x4aef=['map','body','transaction','offset','CustomReportId','rawAttributes','params','status','count','AnalyticFieldReport','limit','filters','create','length','fieldName','sendStatus','VIRTUAL','set','stack','destroy','where','json','intersection','update','nolimit','attributes','../../config/logger','show','sequelize','options','findOne','model','sort','api','index','end','includeAll','query','include','addFields','then','send','keys','like','key','error','name','fields','rows','pick','../../components/parsers/qs','filter','merge','lodash','catch','undefined'];(function(_0x7a67ad,_0x2e0102){const _0x4aef75=function(_0x32ddfd){while(--_0x32ddfd){_0x7a67ad['push'](_0x7a67ad['shift']());}};_0x4aef75(++_0x2e0102);}(a21_0x4aef,0x121));const a21_0x32dd=function(_0x7a67ad,_0x2e0102){_0x7a67ad=_0x7a67ad-0x1e5;let _0x4aef75=a21_0x4aef[_0x7a67ad];return _0x4aef75;};const a21_0x41f633=a21_0x32dd;'use strict';const _=require(a21_0x41f633(0x211)),qs=require(a21_0x41f633(0x20e)),logger=require(a21_0x41f633(0x1f6))(a21_0x41f633(0x1fd)),{db}=require('../../mysqldb'),{Op}=require(a21_0x41f633(0x1f8));function respondWithResult(_0x5dbe30,_0x4e42f8){return _0x4e42f8=_0x4e42f8||0xc8,function(_0x3370d0){const _0x7eb71c=a21_0x32dd;if(_0x3370d0)return _0x5dbe30[_0x7eb71c(0x21b)](_0x4e42f8)[_0x7eb71c(0x1f1)](_0x3370d0);};}function respondWithFilteredResult(_0x383a61,_0x6a0947){return function(_0x1f9ed5){const _0x1288a5=a21_0x32dd;if(_0x1f9ed5){const _0x3c9673=_0x1f9ed5['count'],_0x5e744e=_0x6a0947[_0x1288a5(0x217)];let _0x544563=_0x6a0947[_0x1288a5(0x217)]+_0x6a0947[_0x1288a5(0x1e6)],_0x242774;return _0x544563>=_0x3c9673?(_0x544563=_0x3c9673,_0x242774=0xc8):_0x242774=0xce,_0x383a61[_0x1288a5(0x21b)](_0x242774),_0x383a61[_0x1288a5(0x1ed)]('Content-Range',_0x5e744e+'-'+_0x544563+'/'+_0x3c9673)[_0x1288a5(0x1f1)](_0x1f9ed5);}return null;};}function saveUpdates(_0x236705){return function(_0x567a9d){const _0x51afc1=a21_0x32dd;if(_0x567a9d)return _0x567a9d[_0x51afc1(0x1f3)](_0x236705)[_0x51afc1(0x204)](function(_0x2e99ae){return _0x2e99ae;});return null;};}function removeEntity(_0x408680){return function(_0x151b16){if(_0x151b16)return _0x151b16['destroy']()['then'](function(){const _0x595920=a21_0x32dd;_0x408680[_0x595920(0x21b)](0xcc)[_0x595920(0x1ff)]();});};}function handleEntityNotFound(_0x38c39a){return function(_0x2d8471){const _0x4430eb=a21_0x32dd;return!_0x2d8471&&_0x38c39a[_0x4430eb(0x1eb)](0x194),_0x2d8471;};}function handleError(_0x330169,_0x530bd7){return _0x530bd7=_0x530bd7||0x1f4,function(_0x4f5903){const _0x245c27=a21_0x32dd;logger[_0x245c27(0x209)](_0x4f5903[_0x245c27(0x1ee)]),_0x4f5903[_0x245c27(0x20a)]&&delete _0x4f5903['name'],_0x330169[_0x245c27(0x21b)](_0x530bd7)[_0x245c27(0x205)](_0x4f5903);};}exports[a21_0x41f633(0x1fe)]=function(_0x4fc376,_0x17dbe0){const _0x59b781=a21_0x41f633;let _0x1ff279={};const _0x591755={},_0x2dd164={'count':0x0,'rows':[]},_0x5bfac8=_[_0x59b781(0x214)](db[_0x59b781(0x1e5)][_0x59b781(0x219)],function(_0x5993e5){const _0x8ebac7=_0x59b781;return{'name':_0x5993e5[_0x8ebac7(0x1ea)],'type':_0x5993e5['type'][_0x8ebac7(0x208)]};});_0x591755[_0x59b781(0x1fb)]=_[_0x59b781(0x214)](_0x5bfac8,_0x59b781(0x20a)),_0x591755[_0x59b781(0x201)]=_[_0x59b781(0x206)](_0x4fc376[_0x59b781(0x201)]),_0x591755[_0x59b781(0x1e7)]=_[_0x59b781(0x1f2)](_0x591755[_0x59b781(0x1fb)],_0x591755[_0x59b781(0x201)]),_0x1ff279[_0x59b781(0x1f5)]=_['intersection'](_0x591755[_0x59b781(0x1fb)],qs['fields'](_0x4fc376[_0x59b781(0x201)][_0x59b781(0x20b)])),_0x1ff279[_0x59b781(0x1f5)]=_0x1ff279['attributes'][_0x59b781(0x1e9)]?_0x1ff279[_0x59b781(0x1f5)]:_0x591755['model'];typeof _0x4fc376[_0x59b781(0x201)][_0x59b781(0x1f4)]===_0x59b781(0x213)&&(_0x1ff279['limit']=qs[_0x59b781(0x1e6)](_0x4fc376['query'][_0x59b781(0x1e6)]),_0x1ff279['offset']=qs['offset'](_0x4fc376[_0x59b781(0x201)]['offset']));_0x1ff279['order']=qs[_0x59b781(0x1fc)](_0x4fc376[_0x59b781(0x201)][_0x59b781(0x1fc)]),_0x1ff279['where']=qs[_0x59b781(0x1e7)](_[_0x59b781(0x20d)](_0x4fc376['query'],_0x591755['filters']),_0x5bfac8);_0x4fc376[_0x59b781(0x201)]['filter']&&(_0x1ff279[_0x59b781(0x1f0)]=_[_0x59b781(0x210)](_0x1ff279[_0x59b781(0x1f0)],{[Op['or']]:_[_0x59b781(0x214)](_0x5bfac8,function(_0x344992){const _0xc654b6=_0x59b781;if(_0x344992['type']!==_0xc654b6(0x1ec)){const _0x5f201e={};return _0x5f201e[_0x344992['name']]={[Op[_0xc654b6(0x207)]]:'%'+_0x4fc376[_0xc654b6(0x201)][_0xc654b6(0x20f)]+'%'},_0x5f201e;}})}));_0x1ff279=_['merge']({},_0x1ff279,_0x4fc376[_0x59b781(0x1f9)]);const _0x52aaaf={'where':_0x1ff279[_0x59b781(0x1f0)]};return db[_0x59b781(0x1e5)][_0x59b781(0x21c)](_0x52aaaf)[_0x59b781(0x204)](function(_0x4856b8){const _0x1ae068=_0x59b781;return _0x2dd164[_0x1ae068(0x21c)]=_0x4856b8,_0x4fc376[_0x1ae068(0x201)][_0x1ae068(0x200)]&&(_0x1ff279[_0x1ae068(0x202)]=[{'all':!![]}]),db[_0x1ae068(0x1e5)]['findAll'](_0x1ff279);})['then'](function(_0x53aa52){const _0x66e86d=_0x59b781;return _0x2dd164[_0x66e86d(0x20c)]=_0x53aa52,_0x2dd164;})[_0x59b781(0x204)](respondWithFilteredResult(_0x17dbe0,_0x1ff279))[_0x59b781(0x212)](handleError(_0x17dbe0,null));},exports[a21_0x41f633(0x1f7)]=function(_0x768cd0,_0x249f80){const _0x1e87fe=a21_0x41f633;let _0x5450e0={'raw':![],'where':{'id':_0x768cd0['params']['id']}};const _0x3db29f={};return _0x3db29f['model']=_['keys'](db[_0x1e87fe(0x1e5)][_0x1e87fe(0x219)]),_0x3db29f[_0x1e87fe(0x201)]=_[_0x1e87fe(0x206)](_0x768cd0[_0x1e87fe(0x201)]),_0x3db29f[_0x1e87fe(0x1e7)]=_[_0x1e87fe(0x1f2)](_0x3db29f[_0x1e87fe(0x1fb)],_0x3db29f['query']),_0x5450e0[_0x1e87fe(0x1f5)]=_[_0x1e87fe(0x1f2)](_0x3db29f[_0x1e87fe(0x1fb)],qs['fields'](_0x768cd0[_0x1e87fe(0x201)][_0x1e87fe(0x20b)])),_0x5450e0[_0x1e87fe(0x1f5)]=_0x5450e0['attributes'][_0x1e87fe(0x1e9)]?_0x5450e0[_0x1e87fe(0x1f5)]:_0x3db29f[_0x1e87fe(0x1fb)],_0x768cd0[_0x1e87fe(0x201)][_0x1e87fe(0x200)]&&(_0x5450e0[_0x1e87fe(0x202)]=[{'all':!![]}]),_0x5450e0=_['merge']({},_0x5450e0,_0x768cd0['options']),db[_0x1e87fe(0x1e5)][_0x1e87fe(0x1fa)](_0x5450e0)[_0x1e87fe(0x204)](handleEntityNotFound(_0x249f80,null))[_0x1e87fe(0x204)](respondWithResult(_0x249f80,null))[_0x1e87fe(0x212)](handleError(_0x249f80,null));},exports[a21_0x41f633(0x1e8)]=function(_0x38f784,_0x5415bc){const _0x4c8ac7=a21_0x41f633;return db[_0x4c8ac7(0x1e5)][_0x4c8ac7(0x1e8)](_0x38f784[_0x4c8ac7(0x215)],{})[_0x4c8ac7(0x204)](respondWithResult(_0x5415bc,0xc9))[_0x4c8ac7(0x212)](handleError(_0x5415bc,null));},exports['bulkCreate']=function(_0x302d48,_0xd3de64){const _0x1c097c=a21_0x41f633;return db['AnalyticFieldReport']['bulkCreate'](_0x302d48[_0x1c097c(0x215)],{'raw':![],'individualHooks':!![]})[_0x1c097c(0x204)](respondWithResult(_0xd3de64,0xc9))['catch'](handleError(_0xd3de64,null));},exports[a21_0x41f633(0x1f3)]=function(_0x149dc6,_0x44b078){const _0xf0a008=a21_0x41f633;return _0x149dc6[_0xf0a008(0x215)]['id']&&delete _0x149dc6[_0xf0a008(0x215)]['id'],db[_0xf0a008(0x1e5)][_0xf0a008(0x1fa)]({'where':{'id':_0x149dc6[_0xf0a008(0x21a)]['id']}})[_0xf0a008(0x204)](handleEntityNotFound(_0x44b078,null))[_0xf0a008(0x204)](saveUpdates(_0x149dc6['body'],null))[_0xf0a008(0x204)](respondWithResult(_0x44b078,null))[_0xf0a008(0x212)](handleError(_0x44b078,null));},exports[a21_0x41f633(0x1ef)]=function(_0x3fe4db,_0x57e708){const _0x3406eb=a21_0x41f633;return db[_0x3406eb(0x1e5)][_0x3406eb(0x1fa)]({'where':{'id':_0x3fe4db['params']['id']}})[_0x3406eb(0x204)](handleEntityNotFound(_0x57e708,null))[_0x3406eb(0x204)](removeEntity(_0x57e708,null))[_0x3406eb(0x212)](handleError(_0x57e708,null));},exports['bulkDestroy']=function(_0x15d664,_0xdf35a8){const _0x248a1c=a21_0x41f633;return db[_0x248a1c(0x1e5)][_0x248a1c(0x1ef)]({'where':{'id':_0x15d664['query']['ids']||[]},'raw':![],'individualHooks':!![]})['then'](respondWithResult(_0xdf35a8,0xcc))[_0x248a1c(0x212)](handleError(_0xdf35a8,null));},exports[a21_0x41f633(0x203)]=function(_0xc10e2d,_0x2d11fa){const _0x4ecb47=a21_0x41f633;return db['AnalyticCustomReport'][_0x4ecb47(0x1fa)]({'where':{'id':_0xc10e2d['params']['id']}})[_0x4ecb47(0x204)](handleEntityNotFound(_0x2d11fa,null))[_0x4ecb47(0x204)](function(_0x2d61af){const _0x2f8b3d=_0x4ecb47;if(_0x2d61af)return db[_0x2f8b3d(0x1f8)][_0x2f8b3d(0x216)](function(_0xe0f8ff){const _0x434161=_0x2f8b3d;return db[_0x434161(0x1e5)][_0x434161(0x1ef)]({'where':{'CustomReportId':_0xc10e2d[_0x434161(0x21a)]['id']},'transaction':_0xe0f8ff})['then'](function(){const _0x348744=_0x434161,_0x4ad0f3=_[_0x348744(0x214)](_0xc10e2d[_0x348744(0x215)],function(_0x4e479c){const _0xfdb175=_0x348744;return delete _0x4e479c['id'],_0x4e479c[_0xfdb175(0x218)]=_0xc10e2d[_0xfdb175(0x21a)]['id'],_0x4e479c;});return db[_0x348744(0x1e5)]['bulkCreate'](_0x4ad0f3,{'transaction':_0xe0f8ff});});})[_0x2f8b3d(0x204)](function(){const _0x4843ee=_0x2f8b3d;return db[_0x4843ee(0x1e5)]['findAll']({'where':{'CustomReportId':_0xc10e2d[_0x4843ee(0x21a)]['id']}});});})[_0x4ecb47(0x204)](respondWithResult(_0x2d11fa,null))[_0x4ecb47(0x212)](handleError(_0x2d11fa,null));}; \ No newline at end of file +const a21_0x21f5=['AnalyticCustomReport','model','catch','bulkDestroy','map','status','CustomReportId','sequelize','where','then','Content-Range','fieldName','json','rawAttributes','set','merge','show','filters','../../components/parsers/qs','filter','name','sort','includeAll','query','../../config/logger','create','lodash','pick','sendStatus','transaction','bulkCreate','ids','findAll','error','length','api','include','order','intersection','AnalyticFieldReport','limit','attributes','fields','VIRTUAL','index','body','keys','type','key','options','undefined','offset','../../mysqldb','findOne','update','params','destroy','like'];(function(_0x580859,_0x3096fd){const _0x21f5ad=function(_0x1d5bc1){while(--_0x1d5bc1){_0x580859['push'](_0x580859['shift']());}};_0x21f5ad(++_0x3096fd);}(a21_0x21f5,0x85));const a21_0x1d5b=function(_0x580859,_0x3096fd){_0x580859=_0x580859-0x12f;let _0x21f5ad=a21_0x21f5[_0x580859];return _0x21f5ad;};const a21_0x2b6792=a21_0x1d5b;'use strict';const _=require(a21_0x2b6792(0x138)),qs=require(a21_0x2b6792(0x130)),logger=require(a21_0x2b6792(0x136))(a21_0x2b6792(0x141)),{db}=require(a21_0x2b6792(0x152)),{Op}=require(a21_0x2b6792(0x15f));function respondWithResult(_0x5eabac,_0x33c7a4){return _0x33c7a4=_0x33c7a4||0xc8,function(_0x356a6c){const _0x4cfd78=a21_0x1d5b;if(_0x356a6c)return _0x5eabac[_0x4cfd78(0x15d)](_0x33c7a4)[_0x4cfd78(0x164)](_0x356a6c);};}function respondWithFilteredResult(_0x4c5c29,_0xb6fe01){return function(_0xf462b6){const _0x48123e=a21_0x1d5b;if(_0xf462b6){const _0x48a0b0=_0xf462b6['count'],_0x53d9ff=_0xb6fe01[_0x48123e(0x151)];let _0x2e445b=_0xb6fe01[_0x48123e(0x151)]+_0xb6fe01['limit'],_0x599c8b;return _0x2e445b>=_0x48a0b0?(_0x2e445b=_0x48a0b0,_0x599c8b=0xc8):_0x599c8b=0xce,_0x4c5c29[_0x48123e(0x15d)](_0x599c8b),_0x4c5c29[_0x48123e(0x166)](_0x48123e(0x162),_0x53d9ff+'-'+_0x2e445b+'/'+_0x48a0b0)[_0x48123e(0x164)](_0xf462b6);}return null;};}function saveUpdates(_0x33a4bf){return function(_0x47037a){const _0x2b6cbc=a21_0x1d5b;if(_0x47037a)return _0x47037a[_0x2b6cbc(0x154)](_0x33a4bf)[_0x2b6cbc(0x161)](function(_0x4aae34){return _0x4aae34;});return null;};}function removeEntity(_0x477895){return function(_0x14943f){const _0x10d426=a21_0x1d5b;if(_0x14943f)return _0x14943f['destroy']()[_0x10d426(0x161)](function(){const _0x421b1f=_0x10d426;_0x477895[_0x421b1f(0x15d)](0xcc)['end']();});};}function handleEntityNotFound(_0xd64e43){return function(_0x2dcb88){const _0x4df3ca=a21_0x1d5b;return!_0x2dcb88&&_0xd64e43[_0x4df3ca(0x13a)](0x194),_0x2dcb88;};}function handleError(_0x2029c3,_0x35dae2){return _0x35dae2=_0x35dae2||0x1f4,function(_0x1e8ff4){const _0x5b274d=a21_0x1d5b;logger[_0x5b274d(0x13f)](_0x1e8ff4['stack']),_0x1e8ff4[_0x5b274d(0x132)]&&delete _0x1e8ff4[_0x5b274d(0x132)],_0x2029c3[_0x5b274d(0x15d)](_0x35dae2)['send'](_0x1e8ff4);};}exports[a21_0x2b6792(0x14a)]=function(_0x2db0b6,_0x42df78){const _0x29e886=a21_0x2b6792;let _0xde05d7={};const _0x4beb8={},_0x21e359={'count':0x0,'rows':[]},_0x2b1e95=_[_0x29e886(0x15c)](db[_0x29e886(0x145)]['rawAttributes'],function(_0x522126){const _0x23036c=_0x29e886;return{'name':_0x522126[_0x23036c(0x163)],'type':_0x522126[_0x23036c(0x14d)][_0x23036c(0x14e)]};});_0x4beb8[_0x29e886(0x159)]=_[_0x29e886(0x15c)](_0x2b1e95,_0x29e886(0x132)),_0x4beb8[_0x29e886(0x135)]=_[_0x29e886(0x14c)](_0x2db0b6[_0x29e886(0x135)]),_0x4beb8[_0x29e886(0x12f)]=_[_0x29e886(0x144)](_0x4beb8[_0x29e886(0x159)],_0x4beb8[_0x29e886(0x135)]),_0xde05d7[_0x29e886(0x147)]=_[_0x29e886(0x144)](_0x4beb8[_0x29e886(0x159)],qs[_0x29e886(0x148)](_0x2db0b6['query']['fields'])),_0xde05d7['attributes']=_0xde05d7[_0x29e886(0x147)][_0x29e886(0x140)]?_0xde05d7[_0x29e886(0x147)]:_0x4beb8['model'];typeof _0x2db0b6['query']['nolimit']===_0x29e886(0x150)&&(_0xde05d7[_0x29e886(0x146)]=qs['limit'](_0x2db0b6['query'][_0x29e886(0x146)]),_0xde05d7[_0x29e886(0x151)]=qs[_0x29e886(0x151)](_0x2db0b6['query'][_0x29e886(0x151)]));_0xde05d7[_0x29e886(0x143)]=qs[_0x29e886(0x133)](_0x2db0b6['query']['sort']),_0xde05d7[_0x29e886(0x160)]=qs[_0x29e886(0x12f)](_[_0x29e886(0x139)](_0x2db0b6[_0x29e886(0x135)],_0x4beb8[_0x29e886(0x12f)]),_0x2b1e95);_0x2db0b6[_0x29e886(0x135)]['filter']&&(_0xde05d7[_0x29e886(0x160)]=_[_0x29e886(0x167)](_0xde05d7[_0x29e886(0x160)],{[Op['or']]:_[_0x29e886(0x15c)](_0x2b1e95,function(_0x54aaec){const _0x4b3b79=_0x29e886;if(_0x54aaec[_0x4b3b79(0x14d)]!==_0x4b3b79(0x149)){const _0x5e5a13={};return _0x5e5a13[_0x54aaec[_0x4b3b79(0x132)]]={[Op[_0x4b3b79(0x157)]]:'%'+_0x2db0b6[_0x4b3b79(0x135)][_0x4b3b79(0x131)]+'%'},_0x5e5a13;}})}));_0xde05d7=_[_0x29e886(0x167)]({},_0xde05d7,_0x2db0b6[_0x29e886(0x14f)]);const _0xe1427f={'where':_0xde05d7[_0x29e886(0x160)]};return db[_0x29e886(0x145)]['count'](_0xe1427f)[_0x29e886(0x161)](function(_0x57e913){const _0x5a5d4f=_0x29e886;return _0x21e359['count']=_0x57e913,_0x2db0b6[_0x5a5d4f(0x135)][_0x5a5d4f(0x134)]&&(_0xde05d7[_0x5a5d4f(0x142)]=[{'all':!![]}]),db['AnalyticFieldReport'][_0x5a5d4f(0x13e)](_0xde05d7);})[_0x29e886(0x161)](function(_0x5e0395){return _0x21e359['rows']=_0x5e0395,_0x21e359;})[_0x29e886(0x161)](respondWithFilteredResult(_0x42df78,_0xde05d7))['catch'](handleError(_0x42df78,null));},exports[a21_0x2b6792(0x168)]=function(_0xce320f,_0x378111){const _0xfb3af2=a21_0x2b6792;let _0xb6b490={'raw':![],'where':{'id':_0xce320f[_0xfb3af2(0x155)]['id']}};const _0x5818d2={};return _0x5818d2['model']=_[_0xfb3af2(0x14c)](db['AnalyticFieldReport'][_0xfb3af2(0x165)]),_0x5818d2[_0xfb3af2(0x135)]=_[_0xfb3af2(0x14c)](_0xce320f[_0xfb3af2(0x135)]),_0x5818d2[_0xfb3af2(0x12f)]=_[_0xfb3af2(0x144)](_0x5818d2[_0xfb3af2(0x159)],_0x5818d2[_0xfb3af2(0x135)]),_0xb6b490['attributes']=_[_0xfb3af2(0x144)](_0x5818d2[_0xfb3af2(0x159)],qs[_0xfb3af2(0x148)](_0xce320f[_0xfb3af2(0x135)]['fields'])),_0xb6b490[_0xfb3af2(0x147)]=_0xb6b490[_0xfb3af2(0x147)][_0xfb3af2(0x140)]?_0xb6b490[_0xfb3af2(0x147)]:_0x5818d2[_0xfb3af2(0x159)],_0xce320f[_0xfb3af2(0x135)][_0xfb3af2(0x134)]&&(_0xb6b490[_0xfb3af2(0x142)]=[{'all':!![]}]),_0xb6b490=_[_0xfb3af2(0x167)]({},_0xb6b490,_0xce320f[_0xfb3af2(0x14f)]),db[_0xfb3af2(0x145)][_0xfb3af2(0x153)](_0xb6b490)[_0xfb3af2(0x161)](handleEntityNotFound(_0x378111,null))[_0xfb3af2(0x161)](respondWithResult(_0x378111,null))[_0xfb3af2(0x15a)](handleError(_0x378111,null));},exports[a21_0x2b6792(0x137)]=function(_0x536b2b,_0x73702b){const _0x43a07c=a21_0x2b6792;return db[_0x43a07c(0x145)][_0x43a07c(0x137)](_0x536b2b[_0x43a07c(0x14b)],{})[_0x43a07c(0x161)](respondWithResult(_0x73702b,0xc9))[_0x43a07c(0x15a)](handleError(_0x73702b,null));},exports[a21_0x2b6792(0x13c)]=function(_0x1253ec,_0x56f34d){const _0x2aa750=a21_0x2b6792;return db[_0x2aa750(0x145)]['bulkCreate'](_0x1253ec['body'],{'raw':![],'individualHooks':!![]})['then'](respondWithResult(_0x56f34d,0xc9))[_0x2aa750(0x15a)](handleError(_0x56f34d,null));},exports['update']=function(_0x1d6112,_0x21f77a){const _0x97b936=a21_0x2b6792;return _0x1d6112[_0x97b936(0x14b)]['id']&&delete _0x1d6112[_0x97b936(0x14b)]['id'],db[_0x97b936(0x145)][_0x97b936(0x153)]({'where':{'id':_0x1d6112[_0x97b936(0x155)]['id']}})[_0x97b936(0x161)](handleEntityNotFound(_0x21f77a,null))['then'](saveUpdates(_0x1d6112[_0x97b936(0x14b)],null))['then'](respondWithResult(_0x21f77a,null))[_0x97b936(0x15a)](handleError(_0x21f77a,null));},exports['destroy']=function(_0x494406,_0x191d2e){const _0x13d547=a21_0x2b6792;return db[_0x13d547(0x145)]['findOne']({'where':{'id':_0x494406['params']['id']}})[_0x13d547(0x161)](handleEntityNotFound(_0x191d2e,null))[_0x13d547(0x161)](removeEntity(_0x191d2e,null))[_0x13d547(0x15a)](handleError(_0x191d2e,null));},exports[a21_0x2b6792(0x15b)]=function(_0x37f6c8,_0x59456e){const _0x16fc50=a21_0x2b6792;return db[_0x16fc50(0x145)][_0x16fc50(0x156)]({'where':{'id':_0x37f6c8[_0x16fc50(0x135)][_0x16fc50(0x13d)]||[]},'raw':![],'individualHooks':!![]})['then'](respondWithResult(_0x59456e,0xcc))[_0x16fc50(0x15a)](handleError(_0x59456e,null));},exports['addFields']=function(_0xa4e99,_0x10f6b3){const _0x3ae3ff=a21_0x2b6792;return db[_0x3ae3ff(0x158)][_0x3ae3ff(0x153)]({'where':{'id':_0xa4e99[_0x3ae3ff(0x155)]['id']}})[_0x3ae3ff(0x161)](handleEntityNotFound(_0x10f6b3,null))[_0x3ae3ff(0x161)](function(_0x4dd0c5){const _0x2ca121=_0x3ae3ff;if(_0x4dd0c5)return db[_0x2ca121(0x15f)][_0x2ca121(0x13b)](function(_0x45a7d1){const _0x455f2c=_0x2ca121;return db[_0x455f2c(0x145)][_0x455f2c(0x156)]({'where':{'CustomReportId':_0xa4e99[_0x455f2c(0x155)]['id']},'transaction':_0x45a7d1})[_0x455f2c(0x161)](function(){const _0x133070=_0x455f2c,_0x95907f=_['map'](_0xa4e99[_0x133070(0x14b)],function(_0x3fcde9){const _0x2cd1bc=_0x133070;return delete _0x3fcde9['id'],_0x3fcde9[_0x2cd1bc(0x15e)]=_0xa4e99['params']['id'],_0x3fcde9;});return db[_0x133070(0x145)][_0x133070(0x13c)](_0x95907f,{'transaction':_0x45a7d1});});})[_0x2ca121(0x161)](function(){const _0x50325a=_0x2ca121;return db[_0x50325a(0x145)][_0x50325a(0x13e)]({'where':{'CustomReportId':_0xa4e99[_0x50325a(0x155)]['id']}});});})[_0x3ae3ff(0x161)](respondWithResult(_0x10f6b3,null))[_0x3ae3ff(0x15a)](handleError(_0x10f6b3,null));}; \ No newline at end of file diff --git a/server/api/analyticFieldReport/analyticFieldReport.model.js b/server/api/analyticFieldReport/analyticFieldReport.model.js index 0d2d997..051062d 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.model.js +++ b/server/api/analyticFieldReport/analyticFieldReport.model.js @@ -1 +1 @@ -const a22_0xaa25=['function','AnalyticFieldReport','exports','./analyticFieldReport.options','sequelize'];(function(_0x213b56,_0x51be56){const _0xaa25d5=function(_0x11a90a){while(--_0x11a90a){_0x213b56['push'](_0x213b56['shift']());}};_0xaa25d5(++_0x51be56);}(a22_0xaa25,0x145));const a22_0x11a9=function(_0x213b56,_0x51be56){_0x213b56=_0x213b56-0x158;let _0xaa25d5=a22_0xaa25[_0x213b56];return _0xaa25d5;};const a22_0x317555=a22_0x11a9;'use strict';const {Model}=require(a22_0x317555(0x15c)),{attributes}=require('./analyticFieldReport.attributes'),{options}=require(a22_0x317555(0x15b));class AnalyticFieldReport extends Model{}function init(_0x1faab1,_0x5e4082){const _0x3e2445=a22_0x317555,_0x1b072a=options(_0x1faab1),_0x410384=typeof _0x5e4082===_0x3e2445(0x158)?_0x5e4082(_0x1b072a):_0x1b072a;return AnalyticFieldReport['init'](attributes,_0x410384),AnalyticFieldReport;}module[a22_0x317555(0x15a)][a22_0x317555(0x159)]=AnalyticFieldReport,module[a22_0x317555(0x15a)]['init']=init; \ No newline at end of file +const a22_0x3131=['exports','function','sequelize','init','./analyticFieldReport.attributes','./analyticFieldReport.options'];(function(_0x4df500,_0x52e11d){const _0x3131e4=function(_0x10f3d7){while(--_0x10f3d7){_0x4df500['push'](_0x4df500['shift']());}};_0x3131e4(++_0x52e11d);}(a22_0x3131,0x161));const a22_0x10f3=function(_0x4df500,_0x52e11d){_0x4df500=_0x4df500-0x1cc;let _0x3131e4=a22_0x3131[_0x4df500];return _0x3131e4;};const a22_0x54f952=a22_0x10f3;'use strict';const {Model}=require(a22_0x54f952(0x1cf)),{attributes}=require(a22_0x54f952(0x1d1)),{options}=require(a22_0x54f952(0x1cc));class AnalyticFieldReport extends Model{}function init(_0x48a435,_0x280fb5){const _0x51d0fd=a22_0x54f952,_0xf43aa7=options(_0x48a435),_0x1be2ee=typeof _0x280fb5===_0x51d0fd(0x1ce)?_0x280fb5(_0xf43aa7):_0xf43aa7;return AnalyticFieldReport[_0x51d0fd(0x1d0)](attributes,_0x1be2ee),AnalyticFieldReport;}module[a22_0x54f952(0x1cd)]['AnalyticFieldReport']=AnalyticFieldReport,module[a22_0x54f952(0x1cd)]['init']=init; \ No newline at end of file diff --git a/server/api/analyticFieldReport/analyticFieldReport.options.js b/server/api/analyticFieldReport/analyticFieldReport.options.js index fff0133..8037888 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.options.js +++ b/server/api/analyticFieldReport/analyticFieldReport.options.js @@ -1 +1 @@ -var a23_0x34ee=['analytics_report_fields','exports'];(function(_0x5c7ba3,_0x2c98ee){var _0x34ee4f=function(_0x4f4c78){while(--_0x4f4c78){_0x5c7ba3['push'](_0x5c7ba3['shift']());}};_0x34ee4f(++_0x2c98ee);}(a23_0x34ee,0x19a));var a23_0x4f4c=function(_0x5c7ba3,_0x2c98ee){_0x5c7ba3=_0x5c7ba3-0x17d;var _0x34ee4f=a23_0x34ee[_0x5c7ba3];return _0x34ee4f;};var a23_0x207e5a=a23_0x4f4c;function options(_0x5dba85){var _0x51297c=a23_0x4f4c;return{'sequelize':_0x5dba85,'tableName':_0x51297c(0x17d),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a23_0x207e5a(0x17e)]['options']=options; \ No newline at end of file +var a23_0x407f=['options','exports','analytics_report_fields'];(function(_0x456eea,_0x4bb6c4){var _0x407f14=function(_0xb895d3){while(--_0xb895d3){_0x456eea['push'](_0x456eea['shift']());}};_0x407f14(++_0x4bb6c4);}(a23_0x407f,0x198));var a23_0xb895=function(_0x456eea,_0x4bb6c4){_0x456eea=_0x456eea-0x10b;var _0x407f14=a23_0x407f[_0x456eea];return _0x407f14;};var a23_0xdf5588=a23_0xb895;function options(_0x15efbd){var _0x579543=a23_0xb895;return{'sequelize':_0x15efbd,'tableName':_0x579543(0x10d),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a23_0xdf5588(0x10c)][a23_0xdf5588(0x10b)]=options; \ No newline at end of file diff --git a/server/api/analyticFieldReport/index.js b/server/api/analyticFieldReport/index.js index 5146d53..4571c9a 100644 --- a/server/api/analyticFieldReport/index.js +++ b/server/api/analyticFieldReport/index.js @@ -1 +1 @@ -const a24_0x245c=['put','show','Router','/:id/create_many','create','bulkDestroy','/create_many','addFields','/destroy_many','/:id','./analyticFieldReport.controller','../../components/auth/service','index','delete','isAuthenticated','exports','get','express','update','post'];(function(_0x12b7a1,_0x1a2125){const _0x245c57=function(_0x6eefae){while(--_0x6eefae){_0x12b7a1['push'](_0x12b7a1['shift']());}};_0x245c57(++_0x1a2125);}(a24_0x245c,0x1cf));const a24_0x6eef=function(_0x12b7a1,_0x1a2125){_0x12b7a1=_0x12b7a1-0x1db;let _0x245c57=a24_0x245c[_0x12b7a1];return _0x245c57;};const a24_0x5a1c4b=a24_0x6eef;'use strict';const express=require(a24_0x5a1c4b(0x1e9)),router=express[a24_0x5a1c4b(0x1ee)](),auth=require(a24_0x5a1c4b(0x1e3)),controller=require(a24_0x5a1c4b(0x1e2));router['get']('/',auth[a24_0x5a1c4b(0x1e6)](),controller[a24_0x5a1c4b(0x1e4)]),router[a24_0x5a1c4b(0x1e8)]('/:id',auth['isAuthenticated'](),controller[a24_0x5a1c4b(0x1ed)]),router[a24_0x5a1c4b(0x1eb)]('/',auth[a24_0x5a1c4b(0x1e6)](),controller[a24_0x5a1c4b(0x1dc)]),router[a24_0x5a1c4b(0x1eb)](a24_0x5a1c4b(0x1de),auth['isAuthenticated'](),controller['bulkCreate']),router[a24_0x5a1c4b(0x1eb)](a24_0x5a1c4b(0x1db),auth['isAuthenticated'](),controller[a24_0x5a1c4b(0x1df)]),router[a24_0x5a1c4b(0x1ec)](a24_0x5a1c4b(0x1e1),auth[a24_0x5a1c4b(0x1e6)](),controller[a24_0x5a1c4b(0x1ea)]),router['delete'](a24_0x5a1c4b(0x1e0),auth['isAuthenticated'](),controller[a24_0x5a1c4b(0x1dd)]),router[a24_0x5a1c4b(0x1e5)](a24_0x5a1c4b(0x1e1),auth[a24_0x5a1c4b(0x1e6)](),controller['destroy']),module[a24_0x5a1c4b(0x1e7)]=router; \ No newline at end of file +const a24_0x31c0=['update','exports','Router','post','bulkDestroy','./analyticFieldReport.controller','delete','get','/:id/create_many','addFields','destroy','/destroy_many','/create_many','isAuthenticated','/:id','put','../../components/auth/service','bulkCreate'];(function(_0x240f7a,_0x57c4df){const _0x31c0dd=function(_0x5ca2de){while(--_0x5ca2de){_0x240f7a['push'](_0x240f7a['shift']());}};_0x31c0dd(++_0x57c4df);}(a24_0x31c0,0x18b));const a24_0x5ca2=function(_0x240f7a,_0x57c4df){_0x240f7a=_0x240f7a-0x13e;let _0x31c0dd=a24_0x31c0[_0x240f7a];return _0x31c0dd;};const a24_0x5df71f=a24_0x5ca2;'use strict';const express=require('express'),router=express[a24_0x5df71f(0x141)](),auth=require(a24_0x5df71f(0x14f)),controller=require(a24_0x5df71f(0x144));router[a24_0x5df71f(0x146)]('/',auth[a24_0x5df71f(0x14c)](),controller['index']),router[a24_0x5df71f(0x146)](a24_0x5df71f(0x14d),auth['isAuthenticated'](),controller['show']),router[a24_0x5df71f(0x142)]('/',auth['isAuthenticated'](),controller['create']),router['post'](a24_0x5df71f(0x14b),auth[a24_0x5df71f(0x14c)](),controller[a24_0x5df71f(0x13e)]),router[a24_0x5df71f(0x142)](a24_0x5df71f(0x147),auth[a24_0x5df71f(0x14c)](),controller[a24_0x5df71f(0x148)]),router[a24_0x5df71f(0x14e)](a24_0x5df71f(0x14d),auth[a24_0x5df71f(0x14c)](),controller[a24_0x5df71f(0x13f)]),router[a24_0x5df71f(0x145)](a24_0x5df71f(0x14a),auth[a24_0x5df71f(0x14c)](),controller[a24_0x5df71f(0x143)]),router['delete']('/:id',auth['isAuthenticated'](),controller[a24_0x5df71f(0x149)]),module[a24_0x5df71f(0x140)]=router; \ No newline at end of file diff --git a/server/api/analyticMetric/analyticMetric.attributes.js b/server/api/analyticMetric/analyticMetric.attributes.js index f6c898c..613cc40 100644 --- a/server/api/analyticMetric/analyticMetric.attributes.js +++ b/server/api/analyticMetric/analyticMetric.attributes.js @@ -1 +1 @@ -const a25_0x2f72=['name','sequelize','attributes','STRING','exports'];(function(_0x3bb2f0,_0x177d57){const _0x2f72cd=function(_0x25a10f){while(--_0x25a10f){_0x3bb2f0['push'](_0x3bb2f0['shift']());}};_0x2f72cd(++_0x177d57);}(a25_0x2f72,0x177));const a25_0x25a1=function(_0x3bb2f0,_0x177d57){_0x3bb2f0=_0x3bb2f0-0xd8;let _0x2f72cd=a25_0x2f72[_0x3bb2f0];return _0x2f72cd;};const a25_0x48e1b7=a25_0x25a1;'use strict';const {DataTypes}=require(a25_0x48e1b7(0xd9)),attributes={'name':{'type':DataTypes[a25_0x48e1b7(0xdb)],'allowNull':![],'unique':a25_0x48e1b7(0xd8)},'table':{'type':DataTypes[a25_0x48e1b7(0xdb)]},'metric':{'type':DataTypes['TEXT']},'description':{'type':DataTypes['STRING']}};module[a25_0x48e1b7(0xdc)][a25_0x48e1b7(0xda)]=attributes; \ No newline at end of file +const a25_0x52d4=['STRING','TEXT','exports','name'];(function(_0x4e0d6d,_0x34ac89){const _0x52d4c0=function(_0x4830f6){while(--_0x4830f6){_0x4e0d6d['push'](_0x4e0d6d['shift']());}};_0x52d4c0(++_0x34ac89);}(a25_0x52d4,0xcc));const a25_0x4830=function(_0x4e0d6d,_0x34ac89){_0x4e0d6d=_0x4e0d6d-0x1b7;let _0x52d4c0=a25_0x52d4[_0x4e0d6d];return _0x52d4c0;};const a25_0x1e782d=a25_0x4830;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a25_0x1e782d(0x1b7)],'allowNull':![],'unique':a25_0x1e782d(0x1ba)},'table':{'type':DataTypes[a25_0x1e782d(0x1b7)]},'metric':{'type':DataTypes[a25_0x1e782d(0x1b8)]},'description':{'type':DataTypes[a25_0x1e782d(0x1b7)]}};module[a25_0x1e782d(0x1b9)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/analyticMetric/analyticMetric.controller.js b/server/api/analyticMetric/analyticMetric.controller.js index fd1092a..8522d39 100644 --- a/server/api/analyticMetric/analyticMetric.controller.js +++ b/server/api/analyticMetric/analyticMetric.controller.js @@ -1 +1 @@ -const a26_0x422a=['Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','body','role','UserProfileSection','model','includeAll','lodash','pick','offset','json','UserProfileResource','Unable\x20to\x20retrieve\x20the\x20current\x20user','where','end','destroy','filter','options','undefined','filters','userProfileId','name','keys','attributes','status','findOne','user','merge','type','api','AnalyticMetric','limit','sort','intersection','findAll','update','send','sequelize','fieldName','map','create','../../config/logger','set','key','fields','rows','length','nolimit','rawAttributes','query','get','catch','params','Metrics','../../mysqldb','count','then','../../components/parsers/qs','index','error'];(function(_0x3866b2,_0x41a6bc){const _0x422a86=function(_0x1574ca){while(--_0x1574ca){_0x3866b2['push'](_0x3866b2['shift']());}};_0x422a86(++_0x41a6bc);}(a26_0x422a,0xc0));const a26_0x1574=function(_0x3866b2,_0x41a6bc){_0x3866b2=_0x3866b2-0x16e;let _0x422a86=a26_0x422a[_0x3866b2];return _0x422a86;};const a26_0x1afdbd=a26_0x1574;'use strict';const _=require(a26_0x1afdbd(0x1a0)),qs=require(a26_0x1afdbd(0x197)),logger=require(a26_0x1afdbd(0x187))(a26_0x1afdbd(0x17b)),{db}=require(a26_0x1afdbd(0x194)),{Op}=require(a26_0x1afdbd(0x183));function respondWithResult(_0x303ef9,_0x3f5f1a){return _0x3f5f1a=_0x3f5f1a||0xc8,function(_0x118e95){const _0x141c6b=a26_0x1574;if(_0x118e95)return _0x303ef9[_0x141c6b(0x176)](_0x3f5f1a)[_0x141c6b(0x1a3)](_0x118e95);};}function respondWithFilteredResult(_0x5d1c4f,_0x34f23d){return function(_0x14c425){const _0x31e8e9=a26_0x1574;if(_0x14c425){const _0xc6bc41=_0x14c425[_0x31e8e9(0x195)],_0x4493b4=_0x34f23d[_0x31e8e9(0x1a2)];let _0x415fed=_0x34f23d[_0x31e8e9(0x1a2)]+_0x34f23d['limit'],_0x39134d;return _0x415fed>=_0xc6bc41?(_0x415fed=_0xc6bc41,_0x39134d=0xc8):_0x39134d=0xce,_0x5d1c4f[_0x31e8e9(0x176)](_0x39134d),_0x5d1c4f[_0x31e8e9(0x188)]('Content-Range',_0x4493b4+'-'+_0x415fed+'/'+_0xc6bc41)['json'](_0x14c425);}return null;};}function saveUpdates(_0x54cafc){return function(_0x4245a1){const _0x21b48c=a26_0x1574;if(_0x4245a1)return _0x4245a1[_0x21b48c(0x181)](_0x54cafc)['then'](function(_0x5c49a2){return _0x5c49a2;});return null;};}function removeEntity(_0x4790df){return function(_0xe69698){const _0x25149a=a26_0x1574;if(_0xe69698)return _0xe69698[_0x25149a(0x1a8)]()[_0x25149a(0x196)](function(){const _0x49a85f=_0x25149a,_0x12d97b=_0xe69698['get']({'plain':!![]}),_0x1c0988=_0x49a85f(0x193);return db[_0x49a85f(0x1a4)]['destroy']({'where':{'type':_0x1c0988,'resourceId':_0x12d97b['id']}})['then'](function(){return _0xe69698;});})[_0x25149a(0x196)](function(){const _0x3062d1=_0x25149a;_0x4790df[_0x3062d1(0x176)](0xcc)[_0x3062d1(0x1a7)]();});};}function handleEntityNotFound(_0x5753ae){return function(_0x3fdcb0){return!_0x3fdcb0&&_0x5753ae['sendStatus'](0x194),_0x3fdcb0;};}function handleError(_0x23207f,_0x336f48){return _0x336f48=_0x336f48||0x1f4,function(_0x1ca1c1){const _0x30d982=a26_0x1574;logger[_0x30d982(0x199)](_0x1ca1c1['stack']),_0x1ca1c1['name']&&delete _0x1ca1c1[_0x30d982(0x173)],_0x23207f[_0x30d982(0x176)](_0x336f48)[_0x30d982(0x182)](_0x1ca1c1);};}exports[a26_0x1afdbd(0x198)]=function(_0x550857,_0x9faae7){const _0x3d4256=a26_0x1afdbd;let _0x3e32a4={};const _0x462a38={},_0x4cfc9e={'count':0x0,'rows':[]},_0x672378=_[_0x3d4256(0x185)](db[_0x3d4256(0x17c)][_0x3d4256(0x18e)],function(_0x1addaa){const _0x2b8c6b=_0x3d4256;return{'name':_0x1addaa[_0x2b8c6b(0x184)],'type':_0x1addaa[_0x2b8c6b(0x17a)][_0x2b8c6b(0x189)]};});_0x462a38[_0x3d4256(0x19e)]=_[_0x3d4256(0x185)](_0x672378,'name'),_0x462a38[_0x3d4256(0x18f)]=_[_0x3d4256(0x174)](_0x550857[_0x3d4256(0x18f)]),_0x462a38[_0x3d4256(0x171)]=_[_0x3d4256(0x17f)](_0x462a38[_0x3d4256(0x19e)],_0x462a38[_0x3d4256(0x18f)]),_0x3e32a4[_0x3d4256(0x175)]=_[_0x3d4256(0x17f)](_0x462a38[_0x3d4256(0x19e)],qs[_0x3d4256(0x18a)](_0x550857['query'][_0x3d4256(0x18a)])),_0x3e32a4['attributes']=_0x3e32a4[_0x3d4256(0x175)][_0x3d4256(0x18c)]?_0x3e32a4['attributes']:_0x462a38[_0x3d4256(0x19e)];typeof _0x550857[_0x3d4256(0x18f)][_0x3d4256(0x18d)]===_0x3d4256(0x170)&&(_0x3e32a4[_0x3d4256(0x17d)]=qs['limit'](_0x550857['query']['limit']),_0x3e32a4[_0x3d4256(0x1a2)]=qs[_0x3d4256(0x1a2)](_0x550857[_0x3d4256(0x18f)]['offset']));_0x3e32a4['order']=qs[_0x3d4256(0x17e)](_0x550857[_0x3d4256(0x18f)]['sort']),_0x3e32a4['where']=qs[_0x3d4256(0x171)](_[_0x3d4256(0x1a1)](_0x550857[_0x3d4256(0x18f)],_0x462a38[_0x3d4256(0x171)]),_0x672378);_0x550857[_0x3d4256(0x18f)][_0x3d4256(0x16e)]&&(_0x3e32a4['where']=_['merge'](_0x3e32a4[_0x3d4256(0x1a6)],{[Op['or']]:_[_0x3d4256(0x185)](_0x672378,function(_0x16cc0b){const _0x4cfb4e=_0x3d4256;if(_0x16cc0b[_0x4cfb4e(0x17a)]!=='VIRTUAL'){const _0x482202={};return _0x482202[_0x16cc0b['name']]={[Op['like']]:'%'+_0x550857[_0x4cfb4e(0x18f)][_0x4cfb4e(0x16e)]+'%'},_0x482202;}})}));_0x3e32a4=_[_0x3d4256(0x179)]({},_0x3e32a4,_0x550857[_0x3d4256(0x16f)]);const _0x3e3b86={'where':_0x3e32a4[_0x3d4256(0x1a6)]};return db[_0x3d4256(0x17c)][_0x3d4256(0x195)](_0x3e3b86)[_0x3d4256(0x196)](function(_0x404ba2){const _0x16f273=_0x3d4256;return _0x4cfc9e['count']=_0x404ba2,_0x550857[_0x16f273(0x18f)][_0x16f273(0x19f)]&&(_0x3e32a4['include']=[{'all':!![]}]),db[_0x16f273(0x17c)][_0x16f273(0x180)](_0x3e32a4);})[_0x3d4256(0x196)](function(_0x10d036){const _0x53ad53=_0x3d4256;return _0x4cfc9e[_0x53ad53(0x18b)]=_0x10d036,_0x4cfc9e;})[_0x3d4256(0x196)](respondWithFilteredResult(_0x9faae7,_0x3e32a4))[_0x3d4256(0x191)](handleError(_0x9faae7,null));},exports['show']=function(_0xc66389,_0x420111){const _0x506334=a26_0x1afdbd;let _0x4103c9={'raw':!![],'where':{'id':_0xc66389[_0x506334(0x192)]['id']}};const _0x13617a={};return _0x13617a[_0x506334(0x19e)]=_[_0x506334(0x174)](db[_0x506334(0x17c)][_0x506334(0x18e)]),_0x13617a['query']=_[_0x506334(0x174)](_0xc66389['query']),_0x13617a[_0x506334(0x171)]=_['intersection'](_0x13617a['model'],_0x13617a[_0x506334(0x18f)]),_0x4103c9[_0x506334(0x175)]=_[_0x506334(0x17f)](_0x13617a['model'],qs['fields'](_0xc66389[_0x506334(0x18f)]['fields'])),_0x4103c9[_0x506334(0x175)]=_0x4103c9['attributes'][_0x506334(0x18c)]?_0x4103c9[_0x506334(0x175)]:_0x13617a[_0x506334(0x19e)],_0xc66389['query'][_0x506334(0x19f)]&&(_0x4103c9['include']=[{'all':!![]}]),_0x4103c9=_[_0x506334(0x179)]({},_0x4103c9,_0xc66389[_0x506334(0x16f)]),db[_0x506334(0x17c)][_0x506334(0x177)](_0x4103c9)[_0x506334(0x196)](handleEntityNotFound(_0x420111,null))[_0x506334(0x196)](respondWithResult(_0x420111,null))[_0x506334(0x191)](handleError(_0x420111,null));},exports[a26_0x1afdbd(0x186)]=function(_0x44375b,_0x9431d9){const _0x4ef204=a26_0x1afdbd;return db[_0x4ef204(0x17c)][_0x4ef204(0x186)](_0x44375b['body'],{})[_0x4ef204(0x196)](function(_0x570d5d){const _0x4cf96d=_0x4ef204,_0x38240f=_0x44375b['user']['get']({'plain':!![]});if(!_0x38240f)throw new Error(_0x4cf96d(0x1a5));if(_0x38240f[_0x4cf96d(0x19c)]===_0x4cf96d(0x178)){const _0x1f68b2=_0x570d5d[_0x4cf96d(0x190)]({'plain':!![]}),_0x578636=_0x4cf96d(0x193);return db[_0x4cf96d(0x19d)]['findOne']({'where':{'name':_0x578636,'userProfileId':_0x38240f[_0x4cf96d(0x172)]},'raw':!![]})['then'](function(_0x1100db){const _0x31c8cf=_0x4cf96d;return _0x1100db&&_0x1100db['autoAssociation']===0x0?db[_0x31c8cf(0x1a4)]['create']({'name':_0x1f68b2[_0x31c8cf(0x173)],'resourceId':_0x1f68b2['id'],'type':_0x1100db[_0x31c8cf(0x173)],'sectionId':_0x1100db['id']},{})['then'](function(){return _0x570d5d;}):_0x570d5d;})['catch'](function(_0x50cc6){const _0x21dbb9=_0x4cf96d;logger[_0x21dbb9(0x199)](_0x21dbb9(0x19a),_0x50cc6);throw _0x50cc6;});}return _0x570d5d;})['then'](respondWithResult(_0x9431d9,0xc9))[_0x4ef204(0x191)](handleError(_0x9431d9,null));},exports[a26_0x1afdbd(0x181)]=function(_0x2767bf,_0x229989){const _0x158ca3=a26_0x1afdbd;return _0x2767bf[_0x158ca3(0x19b)]['id']&&delete _0x2767bf[_0x158ca3(0x19b)]['id'],db[_0x158ca3(0x17c)][_0x158ca3(0x177)]({'where':{'id':_0x2767bf[_0x158ca3(0x192)]['id']}})[_0x158ca3(0x196)](handleEntityNotFound(_0x229989,null))['then'](saveUpdates(_0x2767bf[_0x158ca3(0x19b)],null))[_0x158ca3(0x196)](respondWithResult(_0x229989,null))['catch'](handleError(_0x229989,null));},exports[a26_0x1afdbd(0x1a8)]=function(_0x25e041,_0x2ea2c8){const _0x2fb8a3=a26_0x1afdbd;return db[_0x2fb8a3(0x17c)][_0x2fb8a3(0x177)]({'where':{'id':_0x25e041[_0x2fb8a3(0x192)]['id']}})[_0x2fb8a3(0x196)](handleEntityNotFound(_0x2ea2c8,null))[_0x2fb8a3(0x196)](removeEntity(_0x2ea2c8,null))['catch'](handleError(_0x2ea2c8,null));}; \ No newline at end of file +const a26_0x510b=['include','keys','user','destroy','pick','limit','params','sort','sequelize','index','lodash','includeAll','findOne','status','findAll','then','userProfileId','intersection','sendStatus','type','json','query','autoAssociation','create','AnalyticMetric','length','merge','name','attributes','filters','end','like','key','model','send','fields','role','Content-Range','undefined','map','get','order','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','error','filter','body','stack','../../config/logger','options','count','UserProfileSection','nolimit','../../mysqldb','catch','fieldName','where','offset','update','../../components/parsers/qs','UserProfileResource'];(function(_0x31ede0,_0x3df181){const _0x510b54=function(_0x47f3f0){while(--_0x47f3f0){_0x31ede0['push'](_0x31ede0['shift']());}};_0x510b54(++_0x3df181);}(a26_0x510b,0x1e9));const a26_0x47f3=function(_0x31ede0,_0x3df181){_0x31ede0=_0x31ede0-0x122;let _0x510b54=a26_0x510b[_0x31ede0];return _0x510b54;};const a26_0x558775=a26_0x47f3;'use strict';const _=require(a26_0x558775(0x123)),qs=require(a26_0x558775(0x153)),logger=require(a26_0x558775(0x148))('api'),{db}=require(a26_0x558775(0x14d)),{Op}=require(a26_0x558775(0x15d));function respondWithResult(_0x54f846,_0x4b0673){return _0x4b0673=_0x4b0673||0xc8,function(_0x599e53){const _0x16f82a=a26_0x47f3;if(_0x599e53)return _0x54f846[_0x16f82a(0x126)](_0x4b0673)[_0x16f82a(0x12d)](_0x599e53);};}function respondWithFilteredResult(_0x38e985,_0x41b9a0){return function(_0x41eff3){const _0x1a0a85=a26_0x47f3;if(_0x41eff3){const _0x10a877=_0x41eff3[_0x1a0a85(0x14a)],_0x58df67=_0x41b9a0[_0x1a0a85(0x151)];let _0x1fdfa7=_0x41b9a0['offset']+_0x41b9a0[_0x1a0a85(0x15a)],_0x2f773b;return _0x1fdfa7>=_0x10a877?(_0x1fdfa7=_0x10a877,_0x2f773b=0xc8):_0x2f773b=0xce,_0x38e985[_0x1a0a85(0x126)](_0x2f773b),_0x38e985['set'](_0x1a0a85(0x13e),_0x58df67+'-'+_0x1fdfa7+'/'+_0x10a877)[_0x1a0a85(0x12d)](_0x41eff3);}return null;};}function saveUpdates(_0x363a2b){return function(_0xf7be9f){const _0x70548f=a26_0x47f3;if(_0xf7be9f)return _0xf7be9f[_0x70548f(0x152)](_0x363a2b)['then'](function(_0x2c0088){return _0x2c0088;});return null;};}function removeEntity(_0x1f5f96){return function(_0x1f2d22){const _0x1b30dd=a26_0x47f3;if(_0x1f2d22)return _0x1f2d22[_0x1b30dd(0x158)]()[_0x1b30dd(0x128)](function(){const _0x494569=_0x1b30dd,_0x756585=_0x1f2d22[_0x494569(0x141)]({'plain':!![]}),_0x5f29e1='Metrics';return db['UserProfileResource'][_0x494569(0x158)]({'where':{'type':_0x5f29e1,'resourceId':_0x756585['id']}})['then'](function(){return _0x1f2d22;});})[_0x1b30dd(0x128)](function(){const _0x13ccb1=_0x1b30dd;_0x1f5f96[_0x13ccb1(0x126)](0xcc)[_0x13ccb1(0x137)]();});};}function handleEntityNotFound(_0x5e304c){return function(_0x4123b9){const _0x362412=a26_0x47f3;return!_0x4123b9&&_0x5e304c[_0x362412(0x12b)](0x194),_0x4123b9;};}function handleError(_0x329edd,_0x1ce430){return _0x1ce430=_0x1ce430||0x1f4,function(_0x23a833){const _0x5b1911=a26_0x47f3;logger[_0x5b1911(0x144)](_0x23a833[_0x5b1911(0x147)]),_0x23a833[_0x5b1911(0x134)]&&delete _0x23a833[_0x5b1911(0x134)],_0x329edd[_0x5b1911(0x126)](_0x1ce430)[_0x5b1911(0x13b)](_0x23a833);};}exports[a26_0x558775(0x122)]=function(_0x486f8f,_0x3a57ca){const _0x547ad2=a26_0x558775;let _0x556711={};const _0x4b101f={},_0x36f421={'count':0x0,'rows':[]},_0x3e410b=_[_0x547ad2(0x140)](db[_0x547ad2(0x131)]['rawAttributes'],function(_0x3d445f){const _0xd9bc29=_0x547ad2;return{'name':_0x3d445f[_0xd9bc29(0x14f)],'type':_0x3d445f[_0xd9bc29(0x12c)][_0xd9bc29(0x139)]};});_0x4b101f['model']=_[_0x547ad2(0x140)](_0x3e410b,_0x547ad2(0x134)),_0x4b101f[_0x547ad2(0x12e)]=_[_0x547ad2(0x156)](_0x486f8f[_0x547ad2(0x12e)]),_0x4b101f[_0x547ad2(0x136)]=_[_0x547ad2(0x12a)](_0x4b101f[_0x547ad2(0x13a)],_0x4b101f[_0x547ad2(0x12e)]),_0x556711[_0x547ad2(0x135)]=_[_0x547ad2(0x12a)](_0x4b101f[_0x547ad2(0x13a)],qs[_0x547ad2(0x13c)](_0x486f8f['query'][_0x547ad2(0x13c)])),_0x556711[_0x547ad2(0x135)]=_0x556711[_0x547ad2(0x135)][_0x547ad2(0x132)]?_0x556711[_0x547ad2(0x135)]:_0x4b101f[_0x547ad2(0x13a)];typeof _0x486f8f[_0x547ad2(0x12e)][_0x547ad2(0x14c)]===_0x547ad2(0x13f)&&(_0x556711[_0x547ad2(0x15a)]=qs[_0x547ad2(0x15a)](_0x486f8f[_0x547ad2(0x12e)][_0x547ad2(0x15a)]),_0x556711['offset']=qs[_0x547ad2(0x151)](_0x486f8f['query'][_0x547ad2(0x151)]));_0x556711[_0x547ad2(0x142)]=qs[_0x547ad2(0x15c)](_0x486f8f[_0x547ad2(0x12e)][_0x547ad2(0x15c)]),_0x556711[_0x547ad2(0x150)]=qs[_0x547ad2(0x136)](_[_0x547ad2(0x159)](_0x486f8f[_0x547ad2(0x12e)],_0x4b101f[_0x547ad2(0x136)]),_0x3e410b);_0x486f8f[_0x547ad2(0x12e)][_0x547ad2(0x145)]&&(_0x556711[_0x547ad2(0x150)]=_[_0x547ad2(0x133)](_0x556711[_0x547ad2(0x150)],{[Op['or']]:_[_0x547ad2(0x140)](_0x3e410b,function(_0x5c7fbd){const _0x1598bc=_0x547ad2;if(_0x5c7fbd[_0x1598bc(0x12c)]!=='VIRTUAL'){const _0xc64454={};return _0xc64454[_0x5c7fbd[_0x1598bc(0x134)]]={[Op[_0x1598bc(0x138)]]:'%'+_0x486f8f['query'][_0x1598bc(0x145)]+'%'},_0xc64454;}})}));_0x556711=_['merge']({},_0x556711,_0x486f8f[_0x547ad2(0x149)]);const _0x2a3375={'where':_0x556711[_0x547ad2(0x150)]};return db['AnalyticMetric'][_0x547ad2(0x14a)](_0x2a3375)[_0x547ad2(0x128)](function(_0xf98651){const _0x346952=_0x547ad2;return _0x36f421[_0x346952(0x14a)]=_0xf98651,_0x486f8f[_0x346952(0x12e)][_0x346952(0x124)]&&(_0x556711[_0x346952(0x155)]=[{'all':!![]}]),db[_0x346952(0x131)][_0x346952(0x127)](_0x556711);})[_0x547ad2(0x128)](function(_0x116fe1){return _0x36f421['rows']=_0x116fe1,_0x36f421;})['then'](respondWithFilteredResult(_0x3a57ca,_0x556711))[_0x547ad2(0x14e)](handleError(_0x3a57ca,null));},exports['show']=function(_0x5b6f66,_0x452bfc){const _0x7d3745=a26_0x558775;let _0x4502d9={'raw':!![],'where':{'id':_0x5b6f66['params']['id']}};const _0x26a3bf={};return _0x26a3bf['model']=_['keys'](db[_0x7d3745(0x131)]['rawAttributes']),_0x26a3bf[_0x7d3745(0x12e)]=_[_0x7d3745(0x156)](_0x5b6f66[_0x7d3745(0x12e)]),_0x26a3bf[_0x7d3745(0x136)]=_[_0x7d3745(0x12a)](_0x26a3bf[_0x7d3745(0x13a)],_0x26a3bf[_0x7d3745(0x12e)]),_0x4502d9[_0x7d3745(0x135)]=_['intersection'](_0x26a3bf['model'],qs[_0x7d3745(0x13c)](_0x5b6f66[_0x7d3745(0x12e)]['fields'])),_0x4502d9[_0x7d3745(0x135)]=_0x4502d9[_0x7d3745(0x135)]['length']?_0x4502d9[_0x7d3745(0x135)]:_0x26a3bf['model'],_0x5b6f66[_0x7d3745(0x12e)]['includeAll']&&(_0x4502d9[_0x7d3745(0x155)]=[{'all':!![]}]),_0x4502d9=_[_0x7d3745(0x133)]({},_0x4502d9,_0x5b6f66['options']),db[_0x7d3745(0x131)][_0x7d3745(0x125)](_0x4502d9)[_0x7d3745(0x128)](handleEntityNotFound(_0x452bfc,null))[_0x7d3745(0x128)](respondWithResult(_0x452bfc,null))[_0x7d3745(0x14e)](handleError(_0x452bfc,null));},exports[a26_0x558775(0x130)]=function(_0x3c036d,_0x5182d3){const _0x17dd7e=a26_0x558775;return db[_0x17dd7e(0x131)]['create'](_0x3c036d[_0x17dd7e(0x146)],{})[_0x17dd7e(0x128)](function(_0x1e792d){const _0x568389=_0x17dd7e,_0x54981b=_0x3c036d[_0x568389(0x157)][_0x568389(0x141)]({'plain':!![]});if(!_0x54981b)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x54981b[_0x568389(0x13d)]===_0x568389(0x157)){const _0x325b1f=_0x1e792d[_0x568389(0x141)]({'plain':!![]}),_0x10fcc0='Metrics';return db[_0x568389(0x14b)][_0x568389(0x125)]({'where':{'name':_0x10fcc0,'userProfileId':_0x54981b[_0x568389(0x129)]},'raw':!![]})[_0x568389(0x128)](function(_0x348a41){const _0x357a49=_0x568389;return _0x348a41&&_0x348a41[_0x357a49(0x12f)]===0x0?db[_0x357a49(0x154)]['create']({'name':_0x325b1f[_0x357a49(0x134)],'resourceId':_0x325b1f['id'],'type':_0x348a41[_0x357a49(0x134)],'sectionId':_0x348a41['id']},{})[_0x357a49(0x128)](function(){return _0x1e792d;}):_0x1e792d;})['catch'](function(_0x1f82e9){const _0x1050d9=_0x568389;logger[_0x1050d9(0x144)](_0x1050d9(0x143),_0x1f82e9);throw _0x1f82e9;});}return _0x1e792d;})['then'](respondWithResult(_0x5182d3,0xc9))['catch'](handleError(_0x5182d3,null));},exports[a26_0x558775(0x152)]=function(_0x3b974,_0x4a8d29){const _0x1f13b4=a26_0x558775;return _0x3b974['body']['id']&&delete _0x3b974[_0x1f13b4(0x146)]['id'],db[_0x1f13b4(0x131)][_0x1f13b4(0x125)]({'where':{'id':_0x3b974[_0x1f13b4(0x15b)]['id']}})[_0x1f13b4(0x128)](handleEntityNotFound(_0x4a8d29,null))[_0x1f13b4(0x128)](saveUpdates(_0x3b974[_0x1f13b4(0x146)],null))[_0x1f13b4(0x128)](respondWithResult(_0x4a8d29,null))[_0x1f13b4(0x14e)](handleError(_0x4a8d29,null));},exports[a26_0x558775(0x158)]=function(_0x28c62f,_0x2d8486){const _0x5bd3a0=a26_0x558775;return db[_0x5bd3a0(0x131)][_0x5bd3a0(0x125)]({'where':{'id':_0x28c62f[_0x5bd3a0(0x15b)]['id']}})[_0x5bd3a0(0x128)](handleEntityNotFound(_0x2d8486,null))[_0x5bd3a0(0x128)](removeEntity(_0x2d8486,null))[_0x5bd3a0(0x14e)](handleError(_0x2d8486,null));}; \ No newline at end of file diff --git a/server/api/analyticMetric/analyticMetric.model.js b/server/api/analyticMetric/analyticMetric.model.js index dd845e0..47ababc 100644 --- a/server/api/analyticMetric/analyticMetric.model.js +++ b/server/api/analyticMetric/analyticMetric.model.js @@ -1 +1 @@ -const a27_0x402d=['./analyticMetric.options','init','function','sequelize','exports'];(function(_0x57d219,_0x1668d2){const _0x402da5=function(_0x41b838){while(--_0x41b838){_0x57d219['push'](_0x57d219['shift']());}};_0x402da5(++_0x1668d2);}(a27_0x402d,0x175));const a27_0x41b8=function(_0x57d219,_0x1668d2){_0x57d219=_0x57d219-0xc1;let _0x402da5=a27_0x402d[_0x57d219];return _0x402da5;};const a27_0x4e58f3=a27_0x41b8;'use strict';const {Model}=require(a27_0x4e58f3(0xc1)),{attributes}=require('./analyticMetric.attributes'),{options}=require(a27_0x4e58f3(0xc3));class AnalyticMetric extends Model{}function init(_0x38abc1,_0x106abd){const _0x3bac07=a27_0x4e58f3,_0x4da211=options(_0x38abc1),_0x3dd4f6=typeof _0x106abd===_0x3bac07(0xc5)?_0x106abd(_0x4da211):_0x4da211;return AnalyticMetric[_0x3bac07(0xc4)](attributes,_0x3dd4f6),AnalyticMetric;}module[a27_0x4e58f3(0xc2)]['AnalyticMetric']=AnalyticMetric,module[a27_0x4e58f3(0xc2)][a27_0x4e58f3(0xc4)]=init; \ No newline at end of file +const a27_0x11ee=['exports','./analyticMetric.options','AnalyticMetric','function','init'];(function(_0x314d4a,_0x48faac){const _0x11ee65=function(_0x45edfb){while(--_0x45edfb){_0x314d4a['push'](_0x314d4a['shift']());}};_0x11ee65(++_0x48faac);}(a27_0x11ee,0x6e));const a27_0x45ed=function(_0x314d4a,_0x48faac){_0x314d4a=_0x314d4a-0x1b7;let _0x11ee65=a27_0x11ee[_0x314d4a];return _0x11ee65;};const a27_0x4d8c5b=a27_0x45ed;'use strict';const {Model}=require('sequelize'),{attributes}=require('./analyticMetric.attributes'),{options}=require(a27_0x4d8c5b(0x1b8));class AnalyticMetric extends Model{}function init(_0x37aad1,_0x240df6){const _0x179b31=a27_0x4d8c5b,_0x59150f=options(_0x37aad1),_0x1982d3=typeof _0x240df6===_0x179b31(0x1ba)?_0x240df6(_0x59150f):_0x59150f;return AnalyticMetric[_0x179b31(0x1bb)](attributes,_0x1982d3),AnalyticMetric;}module[a27_0x4d8c5b(0x1b7)][a27_0x4d8c5b(0x1b9)]=AnalyticMetric,module[a27_0x4d8c5b(0x1b7)][a27_0x4d8c5b(0x1bb)]=init; \ No newline at end of file diff --git a/server/api/analyticMetric/analyticMetric.options.js b/server/api/analyticMetric/analyticMetric.options.js index 5d3de62..a0a6c74 100644 --- a/server/api/analyticMetric/analyticMetric.options.js +++ b/server/api/analyticMetric/analyticMetric.options.js @@ -1 +1 @@ -var a28_0x5626=['analytics_metrics','exports'];(function(_0x2314e4,_0x134d3d){var _0x56262a=function(_0x33e265){while(--_0x33e265){_0x2314e4['push'](_0x2314e4['shift']());}};_0x56262a(++_0x134d3d);}(a28_0x5626,0xc1));var a28_0x33e2=function(_0x2314e4,_0x134d3d){_0x2314e4=_0x2314e4-0x192;var _0x56262a=a28_0x5626[_0x2314e4];return _0x56262a;};var a28_0x1a4fdb=a28_0x33e2;function options(_0x19a196){var _0xd3cfa9=a28_0x33e2;return{'sequelize':_0x19a196,'tableName':_0xd3cfa9(0x193),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a28_0x1a4fdb(0x192)]['options']=options; \ No newline at end of file +var a28_0x3ea8=['options','analytics_metrics'];(function(_0x4f0f5e,_0x5ecb27){var _0x3ea82d=function(_0x2efe43){while(--_0x2efe43){_0x4f0f5e['push'](_0x4f0f5e['shift']());}};_0x3ea82d(++_0x5ecb27);}(a28_0x3ea8,0xa6));var a28_0x2efe=function(_0x4f0f5e,_0x5ecb27){_0x4f0f5e=_0x4f0f5e-0xaa;var _0x3ea82d=a28_0x3ea8[_0x4f0f5e];return _0x3ea82d;};var a28_0x17bd49=a28_0x2efe;function options(_0x3b882f){var _0x5bd083=a28_0x2efe;return{'sequelize':_0x3b882f,'tableName':_0x5bd083(0xab),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a28_0x17bd49(0xaa)]=options; \ No newline at end of file diff --git a/server/api/analyticMetric/index.js b/server/api/analyticMetric/index.js index cfff8ce..dedc6c1 100644 --- a/server/api/analyticMetric/index.js +++ b/server/api/analyticMetric/index.js @@ -1 +1 @@ -const a29_0x52d6=['express','index','./analyticMetric.controller','show','get','delete','isAuthenticated','update','/:id','create','post','destroy','put'];(function(_0x45920c,_0x333694){const _0x52d61b=function(_0x20b951){while(--_0x20b951){_0x45920c['push'](_0x45920c['shift']());}};_0x52d61b(++_0x333694);}(a29_0x52d6,0xf4));const a29_0x20b9=function(_0x45920c,_0x333694){_0x45920c=_0x45920c-0x143;let _0x52d61b=a29_0x52d6[_0x45920c];return _0x52d61b;};const a29_0xaac1af=a29_0x20b9;'use strict';const express=require(a29_0xaac1af(0x146)),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a29_0xaac1af(0x148));router[a29_0xaac1af(0x14a)]('/',auth['isAuthenticated'](),controller[a29_0xaac1af(0x147)]),router[a29_0xaac1af(0x14a)](a29_0xaac1af(0x14e),auth['isAuthenticated'](),controller[a29_0xaac1af(0x149)]),router[a29_0xaac1af(0x143)]('/',auth[a29_0xaac1af(0x14c)](),controller[a29_0xaac1af(0x14f)]),router[a29_0xaac1af(0x145)](a29_0xaac1af(0x14e),auth[a29_0xaac1af(0x14c)](),controller[a29_0xaac1af(0x14d)]),router[a29_0xaac1af(0x14b)](a29_0xaac1af(0x14e),auth['isAuthenticated'](),controller[a29_0xaac1af(0x144)]),module['exports']=router; \ No newline at end of file +const a29_0x2db6=['exports','Router','express','get','/:id','../../components/auth/service','post','show','isAuthenticated','create','update','put','destroy','delete'];(function(_0x3598e7,_0x4fa3d8){const _0x2db66b=function(_0x550081){while(--_0x550081){_0x3598e7['push'](_0x3598e7['shift']());}};_0x2db66b(++_0x4fa3d8);}(a29_0x2db6,0xc0));const a29_0x5500=function(_0x3598e7,_0x4fa3d8){_0x3598e7=_0x3598e7-0x8f;let _0x2db66b=a29_0x2db6[_0x3598e7];return _0x2db66b;};const a29_0x5b63b6=a29_0x5500;'use strict';const express=require(a29_0x5b63b6(0x95)),router=express[a29_0x5b63b6(0x94)](),auth=require(a29_0x5b63b6(0x98)),controller=require('./analyticMetric.controller');router[a29_0x5b63b6(0x96)]('/',auth[a29_0x5b63b6(0x9b)](),controller['index']),router['get'](a29_0x5b63b6(0x97),auth[a29_0x5b63b6(0x9b)](),controller[a29_0x5b63b6(0x9a)]),router[a29_0x5b63b6(0x99)]('/',auth[a29_0x5b63b6(0x9b)](),controller[a29_0x5b63b6(0x9c)]),router[a29_0x5b63b6(0x90)]('/:id',auth['isAuthenticated'](),controller[a29_0x5b63b6(0x8f)]),router[a29_0x5b63b6(0x92)](a29_0x5b63b6(0x97),auth[a29_0x5b63b6(0x9b)](),controller[a29_0x5b63b6(0x91)]),module[a29_0x5b63b6(0x93)]=router; \ No newline at end of file diff --git a/server/api/analyticTreeReport/analyticTreeReport.attributes.js b/server/api/analyticTreeReport/analyticTreeReport.attributes.js index 1dfdb11..ecd6508 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.attributes.js +++ b/server/api/analyticTreeReport/analyticTreeReport.attributes.js @@ -1 +1 @@ -const a30_0x35d4=['attributes','sequelize'];(function(_0x3c0456,_0xf85633){const _0x35d482=function(_0x2095b4){while(--_0x2095b4){_0x3c0456['push'](_0x3c0456['shift']());}};_0x35d482(++_0xf85633);}(a30_0x35d4,0xf9));const a30_0x2095=function(_0x3c0456,_0xf85633){_0x3c0456=_0x3c0456-0xf9;let _0x35d482=a30_0x35d4[_0x3c0456];return _0x35d482;};const a30_0x525565=a30_0x2095;'use strict';const {DataTypes}=require(a30_0x525565(0xf9)),attributes={'tree':{'type':DataTypes['TEXT'],'allowNull':![]}};module['exports'][a30_0x525565(0xfa)]=attributes; \ No newline at end of file +const a30_0x25d8=['TEXT','sequelize','exports'];(function(_0x13a4e2,_0xccd051){const _0x25d8fe=function(_0x2524a9){while(--_0x2524a9){_0x13a4e2['push'](_0x13a4e2['shift']());}};_0x25d8fe(++_0xccd051);}(a30_0x25d8,0xbc));const a30_0x2524=function(_0x13a4e2,_0xccd051){_0x13a4e2=_0x13a4e2-0x11b;let _0x25d8fe=a30_0x25d8[_0x13a4e2];return _0x25d8fe;};const a30_0x3f6dc8=a30_0x2524;'use strict';const {DataTypes}=require(a30_0x3f6dc8(0x11d)),attributes={'tree':{'type':DataTypes[a30_0x3f6dc8(0x11c)],'allowNull':![]}};module[a30_0x3f6dc8(0x11b)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/analyticTreeReport/analyticTreeReport.controller.js b/server/api/analyticTreeReport/analyticTreeReport.controller.js index 4ec5fef..65d812b 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.controller.js +++ b/server/api/analyticTreeReport/analyticTreeReport.controller.js @@ -1 +1 @@ -const a31_0x1804=['length','fields','rows','show','map','send','filters','includeAll','nolimit','update','VIRTUAL','limit','include','catch','AnalyticTreeReport','Content-Range','findAll','sort','filter','intersection','model','where','undefined','status','rawAttributes','create','lodash','fieldName','sequelize','json','params','offset','merge','sendStatus','error','name','then','attributes','index','body','type','query','options','count','keys','findOne','../../config/logger','destroy'];(function(_0xe0a17,_0x5a2c58){const _0x180414=function(_0xfac8a6){while(--_0xfac8a6){_0xe0a17['push'](_0xe0a17['shift']());}};_0x180414(++_0x5a2c58);}(a31_0x1804,0x13d));const a31_0xfac8=function(_0xe0a17,_0x5a2c58){_0xe0a17=_0xe0a17-0x123;let _0x180414=a31_0x1804[_0xe0a17];return _0x180414;};const a31_0x2608a8=a31_0xfac8;'use strict';const _=require(a31_0x2608a8(0x150)),qs=require('../../components/parsers/qs'),logger=require(a31_0x2608a8(0x134))('api'),{db}=require('../../mysqldb'),{Op}=require(a31_0x2608a8(0x152));function respondWithResult(_0x3dcf98,_0x165c7b){return _0x165c7b=_0x165c7b||0xc8,function(_0xd6efe){const _0x2f497f=a31_0xfac8;if(_0xd6efe)return _0x3dcf98[_0x2f497f(0x14d)](_0x165c7b)['json'](_0xd6efe);};}function respondWithFilteredResult(_0x37042e,_0x22c13a){return function(_0x323d80){const _0xba2644=a31_0xfac8;if(_0x323d80){const _0x11209d=_0x323d80[_0xba2644(0x131)],_0x277187=_0x22c13a[_0xba2644(0x125)];let _0x5e2a08=_0x22c13a['offset']+_0x22c13a['limit'],_0x1353ba;return _0x5e2a08>=_0x11209d?(_0x5e2a08=_0x11209d,_0x1353ba=0xc8):_0x1353ba=0xce,_0x37042e[_0xba2644(0x14d)](_0x1353ba),_0x37042e['set'](_0xba2644(0x145),_0x277187+'-'+_0x5e2a08+'/'+_0x11209d)[_0xba2644(0x123)](_0x323d80);}return null;};}function saveUpdates(_0x5b55aa){return function(_0x2a41ac){const _0xf9060c=a31_0xfac8;if(_0x2a41ac)return _0x2a41ac[_0xf9060c(0x13f)](_0x5b55aa)[_0xf9060c(0x12a)](function(_0x4f90b9){return _0x4f90b9;});return null;};}function removeEntity(_0x19ac0d){return function(_0x144962){const _0x1ebcb0=a31_0xfac8;if(_0x144962)return _0x144962['destroy']()[_0x1ebcb0(0x12a)](function(){const _0x305005=_0x1ebcb0;_0x19ac0d[_0x305005(0x14d)](0xcc)['end']();});};}function handleEntityNotFound(_0x47debc){return function(_0x580c77){const _0x110d17=a31_0xfac8;return!_0x580c77&&_0x47debc[_0x110d17(0x127)](0x194),_0x580c77;};}function handleError(_0x309135,_0x4b4ead){return _0x4b4ead=_0x4b4ead||0x1f4,function(_0x37d458){const _0x24d8ca=a31_0xfac8;logger[_0x24d8ca(0x128)](_0x37d458['stack']),_0x37d458[_0x24d8ca(0x129)]&&delete _0x37d458[_0x24d8ca(0x129)],_0x309135[_0x24d8ca(0x14d)](_0x4b4ead)[_0x24d8ca(0x13b)](_0x37d458);};}exports[a31_0x2608a8(0x12c)]=function(_0x3780dc,_0x32cc18){const _0x4aa2d4=a31_0x2608a8;let _0x2cc481={};const _0x3fe47b={},_0x5ab556={'count':0x0,'rows':[]},_0x487a3f=_['map'](db['AnalyticTreeReport'][_0x4aa2d4(0x14e)],function(_0x27761d){const _0x5e022a=_0x4aa2d4;return{'name':_0x27761d[_0x5e022a(0x151)],'type':_0x27761d[_0x5e022a(0x12e)]['key']};});_0x3fe47b['model']=_[_0x4aa2d4(0x13a)](_0x487a3f,_0x4aa2d4(0x129)),_0x3fe47b[_0x4aa2d4(0x12f)]=_[_0x4aa2d4(0x132)](_0x3780dc[_0x4aa2d4(0x12f)]),_0x3fe47b[_0x4aa2d4(0x13c)]=_[_0x4aa2d4(0x149)](_0x3fe47b[_0x4aa2d4(0x14a)],_0x3fe47b[_0x4aa2d4(0x12f)]),_0x2cc481[_0x4aa2d4(0x12b)]=_[_0x4aa2d4(0x149)](_0x3fe47b[_0x4aa2d4(0x14a)],qs[_0x4aa2d4(0x137)](_0x3780dc[_0x4aa2d4(0x12f)]['fields'])),_0x2cc481[_0x4aa2d4(0x12b)]=_0x2cc481[_0x4aa2d4(0x12b)][_0x4aa2d4(0x136)]?_0x2cc481[_0x4aa2d4(0x12b)]:_0x3fe47b[_0x4aa2d4(0x14a)];typeof _0x3780dc[_0x4aa2d4(0x12f)][_0x4aa2d4(0x13e)]===_0x4aa2d4(0x14c)&&(_0x2cc481['limit']=qs['limit'](_0x3780dc[_0x4aa2d4(0x12f)][_0x4aa2d4(0x141)]),_0x2cc481[_0x4aa2d4(0x125)]=qs[_0x4aa2d4(0x125)](_0x3780dc[_0x4aa2d4(0x12f)][_0x4aa2d4(0x125)]));_0x2cc481['order']=qs[_0x4aa2d4(0x147)](_0x3780dc['query'][_0x4aa2d4(0x147)]),_0x2cc481[_0x4aa2d4(0x14b)]=qs[_0x4aa2d4(0x13c)](_['pick'](_0x3780dc[_0x4aa2d4(0x12f)],_0x3fe47b[_0x4aa2d4(0x13c)]),_0x487a3f);_0x3780dc[_0x4aa2d4(0x12f)][_0x4aa2d4(0x148)]&&(_0x2cc481[_0x4aa2d4(0x14b)]=_[_0x4aa2d4(0x126)](_0x2cc481[_0x4aa2d4(0x14b)],{[Op['or']]:_[_0x4aa2d4(0x13a)](_0x487a3f,function(_0x14718f){const _0x528858=_0x4aa2d4;if(_0x14718f['type']!==_0x528858(0x140)){const _0xcd93c6={};return _0xcd93c6[_0x14718f[_0x528858(0x129)]]={[Op['like']]:'%'+_0x3780dc[_0x528858(0x12f)][_0x528858(0x148)]+'%'},_0xcd93c6;}})}));_0x2cc481=_[_0x4aa2d4(0x126)]({},_0x2cc481,_0x3780dc[_0x4aa2d4(0x130)]);const _0x3ee814={'where':_0x2cc481[_0x4aa2d4(0x14b)]};return db['AnalyticTreeReport']['count'](_0x3ee814)['then'](function(_0x97fd1a){const _0xd6ee8=_0x4aa2d4;return _0x5ab556['count']=_0x97fd1a,_0x3780dc[_0xd6ee8(0x12f)][_0xd6ee8(0x13d)]&&(_0x2cc481[_0xd6ee8(0x142)]=[{'all':!![]}]),db[_0xd6ee8(0x144)][_0xd6ee8(0x146)](_0x2cc481);})['then'](function(_0x2ef162){const _0x2ab590=_0x4aa2d4;return _0x5ab556[_0x2ab590(0x138)]=_0x2ef162,_0x5ab556;})['then'](respondWithFilteredResult(_0x32cc18,_0x2cc481))[_0x4aa2d4(0x143)](handleError(_0x32cc18,null));},exports[a31_0x2608a8(0x139)]=function(_0x4b6f75,_0x18d6dd){const _0x4bbe76=a31_0x2608a8;let _0x1750d5={'raw':!![],'where':{'id':_0x4b6f75[_0x4bbe76(0x124)]['id']}};const _0x5a52f4={};return _0x5a52f4[_0x4bbe76(0x14a)]=_[_0x4bbe76(0x132)](db[_0x4bbe76(0x144)][_0x4bbe76(0x14e)]),_0x5a52f4['query']=_[_0x4bbe76(0x132)](_0x4b6f75[_0x4bbe76(0x12f)]),_0x5a52f4[_0x4bbe76(0x13c)]=_[_0x4bbe76(0x149)](_0x5a52f4[_0x4bbe76(0x14a)],_0x5a52f4['query']),_0x1750d5[_0x4bbe76(0x12b)]=_['intersection'](_0x5a52f4[_0x4bbe76(0x14a)],qs[_0x4bbe76(0x137)](_0x4b6f75[_0x4bbe76(0x12f)][_0x4bbe76(0x137)])),_0x1750d5['attributes']=_0x1750d5[_0x4bbe76(0x12b)][_0x4bbe76(0x136)]?_0x1750d5[_0x4bbe76(0x12b)]:_0x5a52f4['model'],_0x4b6f75[_0x4bbe76(0x12f)][_0x4bbe76(0x13d)]&&(_0x1750d5[_0x4bbe76(0x142)]=[{'all':!![]}]),_0x1750d5=_[_0x4bbe76(0x126)]({},_0x1750d5,_0x4b6f75[_0x4bbe76(0x130)]),db['AnalyticTreeReport']['findOne'](_0x1750d5)[_0x4bbe76(0x12a)](handleEntityNotFound(_0x18d6dd,null))[_0x4bbe76(0x12a)](respondWithResult(_0x18d6dd,null))[_0x4bbe76(0x143)](handleError(_0x18d6dd,null));},exports[a31_0x2608a8(0x14f)]=function(_0x5a9ca4,_0xd0667e){const _0xeaaae6=a31_0x2608a8;return db['AnalyticTreeReport'][_0xeaaae6(0x14f)](_0x5a9ca4[_0xeaaae6(0x12d)],{})[_0xeaaae6(0x12a)](respondWithResult(_0xd0667e,0xc9))[_0xeaaae6(0x143)](handleError(_0xd0667e,null));},exports['update']=function(_0x5cd424,_0x394df1){const _0xd5c5d4=a31_0x2608a8;return _0x5cd424['body']['id']&&delete _0x5cd424[_0xd5c5d4(0x12d)]['id'],db[_0xd5c5d4(0x144)][_0xd5c5d4(0x133)]({'where':{'id':_0x5cd424[_0xd5c5d4(0x124)]['id']}})[_0xd5c5d4(0x12a)](handleEntityNotFound(_0x394df1,null))['then'](saveUpdates(_0x5cd424['body'],null))['then'](respondWithResult(_0x394df1,null))[_0xd5c5d4(0x143)](handleError(_0x394df1,null));},exports[a31_0x2608a8(0x135)]=function(_0x2f1321,_0x3ebacb){const _0x1530b8=a31_0x2608a8;return db[_0x1530b8(0x144)][_0x1530b8(0x133)]({'where':{'id':_0x2f1321[_0x1530b8(0x124)]['id']}})[_0x1530b8(0x12a)](handleEntityNotFound(_0x3ebacb,null))['then'](removeEntity(_0x3ebacb,null))['catch'](handleError(_0x3ebacb,null));}; \ No newline at end of file +const a31_0x4685=['fields','sort','includeAll','pick','lodash','../../config/logger','length','name','offset','order','sequelize','AnalyticTreeReport','keys','intersection','filters','findAll','type','where','body','undefined','options','update','model','send','params','like','json','findOne','show','then','key','rawAttributes','catch','filter','include','../../components/parsers/qs','Content-Range','attributes','rows','limit','map','status','VIRTUAL','create','stack','api','count','merge','destroy','query'];(function(_0x250b0a,_0x35c7ac){const _0x46854f=function(_0x49ee93){while(--_0x49ee93){_0x250b0a['push'](_0x250b0a['shift']());}};_0x46854f(++_0x35c7ac);}(a31_0x4685,0x1d6));const a31_0x49ee=function(_0x250b0a,_0x35c7ac){_0x250b0a=_0x250b0a-0x190;let _0x46854f=a31_0x4685[_0x250b0a];return _0x46854f;};const a31_0x549b02=a31_0x49ee;'use strict';const _=require(a31_0x549b02(0x1b2)),qs=require(a31_0x549b02(0x19f)),logger=require(a31_0x549b02(0x1b3))(a31_0x549b02(0x1a9)),{db}=require('../../mysqldb'),{Op}=require(a31_0x549b02(0x1b8));function respondWithResult(_0x26e2b8,_0x5cae7e){return _0x5cae7e=_0x5cae7e||0xc8,function(_0xfd7224){const _0x2b2be3=a31_0x49ee;if(_0xfd7224)return _0x26e2b8[_0x2b2be3(0x1a5)](_0x5cae7e)[_0x2b2be3(0x196)](_0xfd7224);};}function respondWithFilteredResult(_0x164a8b,_0x393c30){return function(_0x449709){const _0x5b5978=a31_0x49ee;if(_0x449709){const _0x203289=_0x449709[_0x5b5978(0x1aa)],_0x52a898=_0x393c30[_0x5b5978(0x1b6)];let _0xe30c33=_0x393c30[_0x5b5978(0x1b6)]+_0x393c30[_0x5b5978(0x1a3)],_0x3c8d3c;return _0xe30c33>=_0x203289?(_0xe30c33=_0x203289,_0x3c8d3c=0xc8):_0x3c8d3c=0xce,_0x164a8b[_0x5b5978(0x1a5)](_0x3c8d3c),_0x164a8b['set'](_0x5b5978(0x1a0),_0x52a898+'-'+_0xe30c33+'/'+_0x203289)['json'](_0x449709);}return null;};}function saveUpdates(_0x58a572){return function(_0x17352c){const _0xff6f3c=a31_0x49ee;if(_0x17352c)return _0x17352c[_0xff6f3c(0x191)](_0x58a572)['then'](function(_0x45f61e){return _0x45f61e;});return null;};}function removeEntity(_0x3a5e2a){return function(_0x6812b){const _0x139971=a31_0x49ee;if(_0x6812b)return _0x6812b[_0x139971(0x1ac)]()[_0x139971(0x199)](function(){_0x3a5e2a['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x493f20){return function(_0x141000){return!_0x141000&&_0x493f20['sendStatus'](0x194),_0x141000;};}function handleError(_0x4d3a22,_0x11e65d){return _0x11e65d=_0x11e65d||0x1f4,function(_0x43e659){const _0x13b1ea=a31_0x49ee;logger['error'](_0x43e659[_0x13b1ea(0x1a8)]),_0x43e659['name']&&delete _0x43e659['name'],_0x4d3a22[_0x13b1ea(0x1a5)](_0x11e65d)[_0x13b1ea(0x193)](_0x43e659);};}exports['index']=function(_0xd44ac1,_0xebc12d){const _0x2ce7dd=a31_0x549b02;let _0x565988={};const _0x3de84d={},_0x296c0d={'count':0x0,'rows':[]},_0x117a8c=_[_0x2ce7dd(0x1a4)](db[_0x2ce7dd(0x1b9)][_0x2ce7dd(0x19b)],function(_0x875ae5){const _0x19a7ad=_0x2ce7dd;return{'name':_0x875ae5['fieldName'],'type':_0x875ae5[_0x19a7ad(0x1be)][_0x19a7ad(0x19a)]};});_0x3de84d['model']=_['map'](_0x117a8c,_0x2ce7dd(0x1b5)),_0x3de84d['query']=_['keys'](_0xd44ac1[_0x2ce7dd(0x1ad)]),_0x3de84d[_0x2ce7dd(0x1bc)]=_[_0x2ce7dd(0x1bb)](_0x3de84d[_0x2ce7dd(0x192)],_0x3de84d[_0x2ce7dd(0x1ad)]),_0x565988[_0x2ce7dd(0x1a1)]=_['intersection'](_0x3de84d[_0x2ce7dd(0x192)],qs['fields'](_0xd44ac1[_0x2ce7dd(0x1ad)]['fields'])),_0x565988[_0x2ce7dd(0x1a1)]=_0x565988[_0x2ce7dd(0x1a1)][_0x2ce7dd(0x1b4)]?_0x565988[_0x2ce7dd(0x1a1)]:_0x3de84d[_0x2ce7dd(0x192)];typeof _0xd44ac1[_0x2ce7dd(0x1ad)]['nolimit']===_0x2ce7dd(0x1c1)&&(_0x565988[_0x2ce7dd(0x1a3)]=qs[_0x2ce7dd(0x1a3)](_0xd44ac1[_0x2ce7dd(0x1ad)][_0x2ce7dd(0x1a3)]),_0x565988[_0x2ce7dd(0x1b6)]=qs[_0x2ce7dd(0x1b6)](_0xd44ac1[_0x2ce7dd(0x1ad)][_0x2ce7dd(0x1b6)]));_0x565988[_0x2ce7dd(0x1b7)]=qs[_0x2ce7dd(0x1af)](_0xd44ac1[_0x2ce7dd(0x1ad)][_0x2ce7dd(0x1af)]),_0x565988[_0x2ce7dd(0x1bf)]=qs[_0x2ce7dd(0x1bc)](_[_0x2ce7dd(0x1b1)](_0xd44ac1[_0x2ce7dd(0x1ad)],_0x3de84d[_0x2ce7dd(0x1bc)]),_0x117a8c);_0xd44ac1[_0x2ce7dd(0x1ad)][_0x2ce7dd(0x19d)]&&(_0x565988[_0x2ce7dd(0x1bf)]=_['merge'](_0x565988[_0x2ce7dd(0x1bf)],{[Op['or']]:_[_0x2ce7dd(0x1a4)](_0x117a8c,function(_0x3e7c23){const _0x1a27da=_0x2ce7dd;if(_0x3e7c23[_0x1a27da(0x1be)]!==_0x1a27da(0x1a6)){const _0x4c0924={};return _0x4c0924[_0x3e7c23[_0x1a27da(0x1b5)]]={[Op[_0x1a27da(0x195)]]:'%'+_0xd44ac1[_0x1a27da(0x1ad)][_0x1a27da(0x19d)]+'%'},_0x4c0924;}})}));_0x565988=_[_0x2ce7dd(0x1ab)]({},_0x565988,_0xd44ac1[_0x2ce7dd(0x190)]);const _0x209318={'where':_0x565988['where']};return db[_0x2ce7dd(0x1b9)][_0x2ce7dd(0x1aa)](_0x209318)[_0x2ce7dd(0x199)](function(_0x3772d0){const _0x1bf878=_0x2ce7dd;return _0x296c0d[_0x1bf878(0x1aa)]=_0x3772d0,_0xd44ac1[_0x1bf878(0x1ad)][_0x1bf878(0x1b0)]&&(_0x565988[_0x1bf878(0x19e)]=[{'all':!![]}]),db[_0x1bf878(0x1b9)][_0x1bf878(0x1bd)](_0x565988);})['then'](function(_0x17fb24){const _0x4626c0=_0x2ce7dd;return _0x296c0d[_0x4626c0(0x1a2)]=_0x17fb24,_0x296c0d;})[_0x2ce7dd(0x199)](respondWithFilteredResult(_0xebc12d,_0x565988))['catch'](handleError(_0xebc12d,null));},exports[a31_0x549b02(0x198)]=function(_0x75b5ce,_0x16bdc3){const _0xf16bca=a31_0x549b02;let _0x4c3fff={'raw':!![],'where':{'id':_0x75b5ce['params']['id']}};const _0x7f9cc9={};return _0x7f9cc9['model']=_[_0xf16bca(0x1ba)](db['AnalyticTreeReport'][_0xf16bca(0x19b)]),_0x7f9cc9['query']=_['keys'](_0x75b5ce['query']),_0x7f9cc9[_0xf16bca(0x1bc)]=_['intersection'](_0x7f9cc9[_0xf16bca(0x192)],_0x7f9cc9[_0xf16bca(0x1ad)]),_0x4c3fff[_0xf16bca(0x1a1)]=_['intersection'](_0x7f9cc9[_0xf16bca(0x192)],qs[_0xf16bca(0x1ae)](_0x75b5ce[_0xf16bca(0x1ad)][_0xf16bca(0x1ae)])),_0x4c3fff[_0xf16bca(0x1a1)]=_0x4c3fff['attributes'][_0xf16bca(0x1b4)]?_0x4c3fff[_0xf16bca(0x1a1)]:_0x7f9cc9[_0xf16bca(0x192)],_0x75b5ce[_0xf16bca(0x1ad)][_0xf16bca(0x1b0)]&&(_0x4c3fff[_0xf16bca(0x19e)]=[{'all':!![]}]),_0x4c3fff=_['merge']({},_0x4c3fff,_0x75b5ce[_0xf16bca(0x190)]),db['AnalyticTreeReport']['findOne'](_0x4c3fff)[_0xf16bca(0x199)](handleEntityNotFound(_0x16bdc3,null))['then'](respondWithResult(_0x16bdc3,null))[_0xf16bca(0x19c)](handleError(_0x16bdc3,null));},exports[a31_0x549b02(0x1a7)]=function(_0x426444,_0x45b8fe){const _0x4b90d7=a31_0x549b02;return db[_0x4b90d7(0x1b9)][_0x4b90d7(0x1a7)](_0x426444[_0x4b90d7(0x1c0)],{})['then'](respondWithResult(_0x45b8fe,0xc9))['catch'](handleError(_0x45b8fe,null));},exports[a31_0x549b02(0x191)]=function(_0x7cb0a4,_0x5702cd){const _0x2d6b66=a31_0x549b02;return _0x7cb0a4[_0x2d6b66(0x1c0)]['id']&&delete _0x7cb0a4['body']['id'],db[_0x2d6b66(0x1b9)][_0x2d6b66(0x197)]({'where':{'id':_0x7cb0a4[_0x2d6b66(0x194)]['id']}})['then'](handleEntityNotFound(_0x5702cd,null))[_0x2d6b66(0x199)](saveUpdates(_0x7cb0a4[_0x2d6b66(0x1c0)],null))[_0x2d6b66(0x199)](respondWithResult(_0x5702cd,null))[_0x2d6b66(0x19c)](handleError(_0x5702cd,null));},exports[a31_0x549b02(0x1ac)]=function(_0x4d5e9d,_0x3e40df){const _0x354c78=a31_0x549b02;return db[_0x354c78(0x1b9)]['findOne']({'where':{'id':_0x4d5e9d[_0x354c78(0x194)]['id']}})[_0x354c78(0x199)](handleEntityNotFound(_0x3e40df,null))[_0x354c78(0x199)](removeEntity(_0x3e40df,null))[_0x354c78(0x19c)](handleError(_0x3e40df,null));}; \ No newline at end of file diff --git a/server/api/analyticTreeReport/analyticTreeReport.model.js b/server/api/analyticTreeReport/analyticTreeReport.model.js index 87a8470..7c65f8e 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.model.js +++ b/server/api/analyticTreeReport/analyticTreeReport.model.js @@ -1 +1 @@ -const a32_0xdec5=['init','AnalyticTreeReport','./analyticTreeReport.attributes'];(function(_0xd35cc9,_0x23e32e){const _0xdec59=function(_0x58e2dd){while(--_0x58e2dd){_0xd35cc9['push'](_0xd35cc9['shift']());}};_0xdec59(++_0x23e32e);}(a32_0xdec5,0x9a));const a32_0x58e2=function(_0xd35cc9,_0x23e32e){_0xd35cc9=_0xd35cc9-0x195;let _0xdec59=a32_0xdec5[_0xd35cc9];return _0xdec59;};const a32_0x5a4d21=a32_0x58e2;'use strict';const {Model}=require('sequelize'),{attributes}=require(a32_0x5a4d21(0x196)),{options}=require('./analyticTreeReport.options');class AnalyticTreeReport extends Model{}function init(_0x517b50,_0x262ffd){const _0x456ad2=a32_0x5a4d21,_0x1271ba=options(_0x517b50),_0x38380b=typeof _0x262ffd==='function'?_0x262ffd(_0x1271ba):_0x1271ba;return AnalyticTreeReport[_0x456ad2(0x197)](attributes,_0x38380b),AnalyticTreeReport;}module['exports'][a32_0x5a4d21(0x195)]=AnalyticTreeReport,module['exports'][a32_0x5a4d21(0x197)]=init; \ No newline at end of file +const a32_0x1bac=['init','AnalyticTreeReport','./analyticTreeReport.attributes','sequelize','exports','./analyticTreeReport.options','function'];(function(_0x77da51,_0xfb5c5c){const _0x1bacd5=function(_0x1297f7){while(--_0x1297f7){_0x77da51['push'](_0x77da51['shift']());}};_0x1bacd5(++_0xfb5c5c);}(a32_0x1bac,0x87));const a32_0x1297=function(_0x77da51,_0xfb5c5c){_0x77da51=_0x77da51-0xe4;let _0x1bacd5=a32_0x1bac[_0x77da51];return _0x1bacd5;};const a32_0x9a4328=a32_0x1297;'use strict';const {Model}=require(a32_0x9a4328(0xe5)),{attributes}=require(a32_0x9a4328(0xe4)),{options}=require(a32_0x9a4328(0xe7));class AnalyticTreeReport extends Model{}function init(_0x52d581,_0x35f4c4){const _0x40a854=a32_0x9a4328,_0x322526=options(_0x52d581),_0x415139=typeof _0x35f4c4===_0x40a854(0xe8)?_0x35f4c4(_0x322526):_0x322526;return AnalyticTreeReport[_0x40a854(0xe9)](attributes,_0x415139),AnalyticTreeReport;}module[a32_0x9a4328(0xe6)][a32_0x9a4328(0xea)]=AnalyticTreeReport,module[a32_0x9a4328(0xe6)][a32_0x9a4328(0xe9)]=init; \ No newline at end of file diff --git a/server/api/analyticTreeReport/analyticTreeReport.options.js b/server/api/analyticTreeReport/analyticTreeReport.options.js index bd7e7f4..0bab852 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.options.js +++ b/server/api/analyticTreeReport/analyticTreeReport.options.js @@ -1 +1 @@ -var a33_0x124e=['options','analytics_report_trees'];(function(_0x90490,_0x3dacff){var _0x124e62=function(_0x5b8841){while(--_0x5b8841){_0x90490['push'](_0x90490['shift']());}};_0x124e62(++_0x3dacff);}(a33_0x124e,0x14c));var a33_0x5b88=function(_0x90490,_0x3dacff){_0x90490=_0x90490-0x107;var _0x124e62=a33_0x124e[_0x90490];return _0x124e62;};var a33_0xba0ba8=a33_0x5b88;function options(_0x2ab7b8){var _0x31ab36=a33_0x5b88;return{'sequelize':_0x2ab7b8,'tableName':_0x31ab36(0x108),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a33_0xba0ba8(0x107)]=options; \ No newline at end of file +var a33_0x2d19=['analytics_report_trees','options'];(function(_0x21c624,_0x2eb5f6){var _0x2d1925=function(_0x10d7da){while(--_0x10d7da){_0x21c624['push'](_0x21c624['shift']());}};_0x2d1925(++_0x2eb5f6);}(a33_0x2d19,0x123));var a33_0x10d7=function(_0x21c624,_0x2eb5f6){_0x21c624=_0x21c624-0x8b;var _0x2d1925=a33_0x2d19[_0x21c624];return _0x2d1925;};var a33_0x25fde7=a33_0x10d7;function options(_0xc5d25c){var _0x45fc4e=a33_0x10d7;return{'sequelize':_0xc5d25c,'tableName':_0x45fc4e(0x8c),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a33_0x25fde7(0x8b)]=options; \ No newline at end of file diff --git a/server/api/analyticTreeReport/index.js b/server/api/analyticTreeReport/index.js index 84a6488..bc405c6 100644 --- a/server/api/analyticTreeReport/index.js +++ b/server/api/analyticTreeReport/index.js @@ -1 +1 @@ -const a34_0x35bf=['Router','update','create','get','destroy','isAuthenticated','./analyticTreeReport.controller','/:id','index','put','delete','exports','show','../../components/auth/service','express'];(function(_0x14cf29,_0xbe8f53){const _0x35bf50=function(_0x3ba088){while(--_0x3ba088){_0x14cf29['push'](_0x14cf29['shift']());}};_0x35bf50(++_0xbe8f53);}(a34_0x35bf,0x1c7));const a34_0x3ba0=function(_0x14cf29,_0xbe8f53){_0x14cf29=_0x14cf29-0x1d9;let _0x35bf50=a34_0x35bf[_0x14cf29];return _0x35bf50;};const a34_0x466fdc=a34_0x3ba0;'use strict';const express=require(a34_0x466fdc(0x1e2)),router=express[a34_0x466fdc(0x1e3)](),auth=require(a34_0x466fdc(0x1e1)),controller=require(a34_0x466fdc(0x1da));router['get']('/',auth[a34_0x466fdc(0x1d9)](),controller[a34_0x466fdc(0x1dc)]),router[a34_0x466fdc(0x1e6)](a34_0x466fdc(0x1db),auth[a34_0x466fdc(0x1d9)](),controller[a34_0x466fdc(0x1e0)]),router['post']('/',auth[a34_0x466fdc(0x1d9)](),controller[a34_0x466fdc(0x1e5)]),router[a34_0x466fdc(0x1dd)](a34_0x466fdc(0x1db),auth[a34_0x466fdc(0x1d9)](),controller[a34_0x466fdc(0x1e4)]),router[a34_0x466fdc(0x1de)](a34_0x466fdc(0x1db),auth[a34_0x466fdc(0x1d9)](),controller[a34_0x466fdc(0x1e7)]),module[a34_0x466fdc(0x1df)]=router; \ No newline at end of file +const a34_0x51a1=['destroy','isAuthenticated','show','post','exports','../../components/auth/service','index','/:id','create','delete','get','put','update','express','./analyticTreeReport.controller'];(function(_0x211036,_0x83fc9d){const _0x51a1df=function(_0x17e47e){while(--_0x17e47e){_0x211036['push'](_0x211036['shift']());}};_0x51a1df(++_0x83fc9d);}(a34_0x51a1,0x88));const a34_0x17e4=function(_0x211036,_0x83fc9d){_0x211036=_0x211036-0x1d8;let _0x51a1df=a34_0x51a1[_0x211036];return _0x51a1df;};const a34_0x418c74=a34_0x17e4;'use strict';const express=require(a34_0x418c74(0x1e4)),router=express['Router'](),auth=require(a34_0x418c74(0x1dc)),controller=require(a34_0x418c74(0x1e5));router[a34_0x418c74(0x1e1)]('/',auth[a34_0x418c74(0x1d8)](),controller[a34_0x418c74(0x1dd)]),router[a34_0x418c74(0x1e1)](a34_0x418c74(0x1de),auth[a34_0x418c74(0x1d8)](),controller[a34_0x418c74(0x1d9)]),router[a34_0x418c74(0x1da)]('/',auth[a34_0x418c74(0x1d8)](),controller[a34_0x418c74(0x1df)]),router[a34_0x418c74(0x1e2)](a34_0x418c74(0x1de),auth['isAuthenticated'](),controller[a34_0x418c74(0x1e3)]),router[a34_0x418c74(0x1e0)](a34_0x418c74(0x1de),auth['isAuthenticated'](),controller[a34_0x418c74(0x1e6)]),module[a34_0x418c74(0x1db)]=router; \ No newline at end of file diff --git a/server/api/attachment/attachment.attributes.js b/server/api/attachment/attachment.attributes.js index 784fcda..aa63330 100644 --- a/server/api/attachment/attachment.attributes.js +++ b/server/api/attachment/attachment.attributes.js @@ -1 +1 @@ -const a35_0x11cb=['attributes','STRING'];(function(_0x3ae306,_0x115136){const _0x11cb41=function(_0x5652be){while(--_0x5652be){_0x3ae306['push'](_0x3ae306['shift']());}};_0x11cb41(++_0x115136);}(a35_0x11cb,0x113));const a35_0x5652=function(_0x3ae306,_0x115136){_0x3ae306=_0x3ae306-0x1a9;let _0x11cb41=a35_0x11cb[_0x3ae306];return _0x11cb41;};const a35_0x416a2b=a35_0x5652;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a35_0x416a2b(0x1a9)]},'basename':{'type':DataTypes[a35_0x416a2b(0x1a9)]},'type':{'type':DataTypes[a35_0x416a2b(0x1a9)]}};module['exports'][a35_0x416a2b(0x1aa)]=attributes; \ No newline at end of file +const a35_0x2f64=['STRING','sequelize','exports','attributes'];(function(_0x458535,_0x2c5627){const _0x2f6432=function(_0x2f7075){while(--_0x2f7075){_0x458535['push'](_0x458535['shift']());}};_0x2f6432(++_0x2c5627);}(a35_0x2f64,0x1c2));const a35_0x2f70=function(_0x458535,_0x2c5627){_0x458535=_0x458535-0x152;let _0x2f6432=a35_0x2f64[_0x458535];return _0x2f6432;};const a35_0x4318fa=a35_0x2f70;'use strict';const {DataTypes}=require(a35_0x4318fa(0x155)),attributes={'name':{'type':DataTypes[a35_0x4318fa(0x154)]},'basename':{'type':DataTypes[a35_0x4318fa(0x154)]},'type':{'type':DataTypes[a35_0x4318fa(0x154)]}};module[a35_0x4318fa(0x152)][a35_0x4318fa(0x153)]=attributes; \ No newline at end of file diff --git a/server/api/attachment/attachment.controller.js b/server/api/attachment/attachment.controller.js index 3b55de5..bca9b5c 100644 --- a/server/api/attachment/attachment.controller.js +++ b/server/api/attachment/attachment.controller.js @@ -1 +1 @@ -const a36_0x2fe6=['length','create','rawAttributes','offset','order','files/attachments/','params','omit','updatedAt','count','error','basename','createdAt','attributes','intersection','send','catch','update','type','model','rows','filter','query','findOne','options','Content-Range','lodash','sort','api','join','status','name','map','fields','merge','VIRTUAL','json','nolimit','index','clone','root','undefined','include','body','filters','stack','set','keys','destroy','../../config/logger','../../components/parsers/qs','where','fieldName','originalname','sendStatus','file','limit','path','includeAll','then','Attachment','sequelize'];(function(_0x83030f,_0x35d807){const _0x2fe62e=function(_0x5e9875){while(--_0x5e9875){_0x83030f['push'](_0x83030f['shift']());}};_0x2fe62e(++_0x35d807);}(a36_0x2fe6,0x1e4));const a36_0x5e98=function(_0x83030f,_0x35d807){_0x83030f=_0x83030f-0xbb;let _0x2fe62e=a36_0x2fe6[_0x83030f];return _0x2fe62e;};const a36_0x1cf81a=a36_0x5e98;'use strict';const path=require(a36_0x1cf81a(0xc2)),_=require(a36_0x1cf81a(0xe1)),qs=require(a36_0x1cf81a(0xbb)),logger=require(a36_0x1cf81a(0xf8))(a36_0x1cf81a(0xe3)),config=require('../../config/environment'),{db}=require('../../mysqldb'),{Op}=require(a36_0x1cf81a(0xc6));function respondWithResult(_0x116831,_0x25d705){return _0x25d705=_0x25d705||0xc8,function(_0xe1a9b7){const _0xe24d8=a36_0x5e98;if(_0xe1a9b7)return _0x116831[_0xe24d8(0xe5)](_0x25d705)[_0xe24d8(0xeb)](_0xe1a9b7);};}function respondWithFilteredResult(_0x73c2ba,_0x382df7){return function(_0x896310){const _0x409b7f=a36_0x5e98;if(_0x896310){const _0x3baae5=_0x896310[_0x409b7f(0xd0)],_0x35c26b=_0x382df7['offset'];let _0x15aced=_0x382df7[_0x409b7f(0xca)]+_0x382df7[_0x409b7f(0xc1)],_0x4ae781;return _0x15aced>=_0x3baae5?(_0x15aced=_0x3baae5,_0x4ae781=0xc8):_0x4ae781=0xce,_0x73c2ba[_0x409b7f(0xe5)](_0x4ae781),_0x73c2ba[_0x409b7f(0xf5)](_0x409b7f(0xe0),_0x35c26b+'-'+_0x15aced+'/'+_0x3baae5)[_0x409b7f(0xeb)](_0x896310);}return null;};}function saveUpdates(_0x5ceecf){return function(_0x1305f3){const _0x3d74fa=a36_0x5e98;if(_0x1305f3)return _0x1305f3[_0x3d74fa(0xd8)](_0x5ceecf)['then'](function(_0xf6f71d){return _0xf6f71d;});return null;};}function removeEntity(_0x36feba){return function(_0x697250){const _0x32ba6d=a36_0x5e98;if(_0x697250)return _0x697250[_0x32ba6d(0xf7)]()[_0x32ba6d(0xc4)](function(){const _0x541aa7=_0x32ba6d;_0x36feba[_0x541aa7(0xe5)](0xcc)['end']();});};}function handleEntityNotFound(_0x2ea968){return function(_0x3ec014){const _0x329fce=a36_0x5e98;return!_0x3ec014&&_0x2ea968[_0x329fce(0xbf)](0x194),_0x3ec014;};}function handleError(_0x31b8f7,_0x18493f){return _0x18493f=_0x18493f||0x1f4,function(_0x413ff8){const _0x33b22e=a36_0x5e98;logger[_0x33b22e(0xd1)](_0x413ff8[_0x33b22e(0xf4)]),_0x413ff8[_0x33b22e(0xe6)]&&delete _0x413ff8[_0x33b22e(0xe6)],_0x31b8f7['status'](_0x18493f)[_0x33b22e(0xd6)](_0x413ff8);};}exports[a36_0x1cf81a(0xed)]=function(_0x176fe2,_0x5390e8){const _0x20d2bb=a36_0x1cf81a;let _0x18ac20={};const _0x5d8a5d={},_0x2df815={'count':0x0,'rows':[]},_0x360994=_[_0x20d2bb(0xe7)](db['Attachment'][_0x20d2bb(0xc9)],function(_0x2a972b){const _0x2b1318=_0x20d2bb;return{'name':_0x2a972b[_0x2b1318(0xbd)],'type':_0x2a972b[_0x2b1318(0xd9)]['key']};});_0x5d8a5d[_0x20d2bb(0xda)]=_[_0x20d2bb(0xe7)](_0x360994,'name'),_0x5d8a5d[_0x20d2bb(0xdd)]=_[_0x20d2bb(0xf6)](_0x176fe2[_0x20d2bb(0xdd)]),_0x5d8a5d[_0x20d2bb(0xf3)]=_[_0x20d2bb(0xd5)](_0x5d8a5d[_0x20d2bb(0xda)],_0x5d8a5d[_0x20d2bb(0xdd)]),_0x18ac20[_0x20d2bb(0xd4)]=_[_0x20d2bb(0xd5)](_0x5d8a5d[_0x20d2bb(0xda)],qs[_0x20d2bb(0xe8)](_0x176fe2[_0x20d2bb(0xdd)]['fields'])),_0x18ac20[_0x20d2bb(0xd4)]=_0x18ac20['attributes'][_0x20d2bb(0xc7)]?_0x18ac20[_0x20d2bb(0xd4)]:_0x5d8a5d[_0x20d2bb(0xda)];typeof _0x176fe2[_0x20d2bb(0xdd)][_0x20d2bb(0xec)]===_0x20d2bb(0xf0)&&(_0x18ac20['limit']=qs[_0x20d2bb(0xc1)](_0x176fe2[_0x20d2bb(0xdd)][_0x20d2bb(0xc1)]),_0x18ac20[_0x20d2bb(0xca)]=qs[_0x20d2bb(0xca)](_0x176fe2[_0x20d2bb(0xdd)][_0x20d2bb(0xca)]));_0x18ac20[_0x20d2bb(0xcb)]=qs[_0x20d2bb(0xe2)](_0x176fe2[_0x20d2bb(0xdd)][_0x20d2bb(0xe2)]),_0x18ac20['where']=qs[_0x20d2bb(0xf3)](_['pick'](_0x176fe2['query'],_0x5d8a5d[_0x20d2bb(0xf3)]),_0x360994);_0x176fe2[_0x20d2bb(0xdd)][_0x20d2bb(0xdc)]&&(_0x18ac20['where']=_[_0x20d2bb(0xe9)](_0x18ac20[_0x20d2bb(0xbc)],{[Op['or']]:_[_0x20d2bb(0xe7)](_0x360994,function(_0x1fa268){const _0x5a1706=_0x20d2bb;if(_0x1fa268[_0x5a1706(0xd9)]!==_0x5a1706(0xea)){const _0x31a130={};return _0x31a130[_0x1fa268['name']]={[Op['like']]:'%'+_0x176fe2[_0x5a1706(0xdd)][_0x5a1706(0xdc)]+'%'},_0x31a130;}})}));_0x18ac20=_[_0x20d2bb(0xe9)]({},_0x18ac20,_0x176fe2[_0x20d2bb(0xdf)]);const _0x31804c={'where':_0x18ac20[_0x20d2bb(0xbc)]};return db['Attachment'][_0x20d2bb(0xd0)](_0x31804c)['then'](function(_0x32bb35){const _0x5b5b2c=_0x20d2bb;return _0x2df815['count']=_0x32bb35,_0x176fe2[_0x5b5b2c(0xdd)][_0x5b5b2c(0xc3)]&&(_0x18ac20['include']=[{'all':!![]}]),db[_0x5b5b2c(0xc5)]['findAll'](_0x18ac20);})[_0x20d2bb(0xc4)](function(_0x18298e){const _0x7f6cbe=_0x20d2bb;return _0x2df815[_0x7f6cbe(0xdb)]=_0x18298e,_0x2df815;})[_0x20d2bb(0xc4)](respondWithFilteredResult(_0x5390e8,_0x18ac20))[_0x20d2bb(0xd7)](handleError(_0x5390e8,null));},exports['show']=function(_0x31e6b4,_0x406401){const _0x5b434a=a36_0x1cf81a;let _0x1c16c9={'raw':!![],'where':{'id':_0x31e6b4[_0x5b434a(0xcd)]['id']}};const _0x3ecdc5={};return _0x3ecdc5['model']=_[_0x5b434a(0xf6)](db[_0x5b434a(0xc5)]['rawAttributes']),_0x3ecdc5[_0x5b434a(0xdd)]=_[_0x5b434a(0xf6)](_0x31e6b4[_0x5b434a(0xdd)]),_0x3ecdc5['filters']=_['intersection'](_0x3ecdc5[_0x5b434a(0xda)],_0x3ecdc5[_0x5b434a(0xdd)]),_0x1c16c9['attributes']=_['intersection'](_0x3ecdc5[_0x5b434a(0xda)],qs[_0x5b434a(0xe8)](_0x31e6b4[_0x5b434a(0xdd)][_0x5b434a(0xe8)])),_0x1c16c9['attributes']=_0x1c16c9[_0x5b434a(0xd4)][_0x5b434a(0xc7)]?_0x1c16c9[_0x5b434a(0xd4)]:_0x3ecdc5[_0x5b434a(0xda)],_0x31e6b4[_0x5b434a(0xdd)][_0x5b434a(0xc3)]&&(_0x1c16c9[_0x5b434a(0xf1)]=[{'all':!![]}]),_0x1c16c9=_[_0x5b434a(0xe9)]({},_0x1c16c9,_0x31e6b4[_0x5b434a(0xdf)]),db[_0x5b434a(0xc5)][_0x5b434a(0xde)](_0x1c16c9)[_0x5b434a(0xc4)](handleEntityNotFound(_0x406401,null))[_0x5b434a(0xc4)](respondWithResult(_0x406401,null))[_0x5b434a(0xd7)](handleError(_0x406401,null));},exports[a36_0x1cf81a(0xee)]=function(_0x41e20c,_0x18c5c6){const _0x2ccdf=a36_0x1cf81a;let _0x35fbe0={'where':{'id':_0x41e20c[_0x2ccdf(0xcd)]['id']}};const _0x2ff8e7={};return _0x2ff8e7['model']=_[_0x2ccdf(0xf6)](db[_0x2ccdf(0xc5)][_0x2ccdf(0xc9)]),_0x35fbe0[_0x2ccdf(0xd4)]=_['intersection'](_0x2ff8e7[_0x2ccdf(0xda)],qs[_0x2ccdf(0xe8)](_0x41e20c[_0x2ccdf(0xdd)][_0x2ccdf(0xe8)])),_0x35fbe0[_0x2ccdf(0xd4)]=_0x35fbe0['attributes'][_0x2ccdf(0xc7)]?_0x35fbe0[_0x2ccdf(0xd4)]:_0x2ff8e7[_0x2ccdf(0xda)],_0x41e20c['query']['includeAll']&&(_0x35fbe0[_0x2ccdf(0xf1)]=[{'all':!![]}]),_0x35fbe0=_[_0x2ccdf(0xe9)]({},_0x35fbe0,_0x41e20c[_0x2ccdf(0xdf)]),db[_0x2ccdf(0xc5)][_0x2ccdf(0xde)](_0x35fbe0)[_0x2ccdf(0xc4)](handleEntityNotFound(_0x18c5c6,null))['then'](function(_0x4e612f){const _0x241043=_0x2ccdf;if(_0x4e612f){let _0x9454bf=_0x4e612f['get']({'plain':!![]});return _0x9454bf=qs[_0x241043(0xce)](_0x9454bf,['id',_0x241043(0xd3),_0x241043(0xcf)]),_0x41e20c[_0x241043(0xf2)]=_['omit'](_0x41e20c[_0x241043(0xf2)],['id','createdAt','updatedAt']),db['Attachment'][_0x241043(0xc8)](_[_0x241043(0xe9)](_0x9454bf,_0x41e20c[_0x241043(0xf2)]),{'include':_0x41e20c[_0x241043(0xdd)][_0x241043(0xc3)]?[{'all':!![]}]:undefined});}})[_0x2ccdf(0xc4)](respondWithResult(_0x18c5c6,0xc9))[_0x2ccdf(0xd7)](handleError(_0x18c5c6,null));},exports['update']=function(_0x2b65e5,_0x58b8c3){const _0x3995cc=a36_0x1cf81a;return _0x2b65e5[_0x3995cc(0xf2)]['id']&&delete _0x2b65e5[_0x3995cc(0xf2)]['id'],db['Attachment'][_0x3995cc(0xde)]({'where':{'id':_0x2b65e5[_0x3995cc(0xcd)]['id']}})[_0x3995cc(0xc4)](handleEntityNotFound(_0x58b8c3,null))[_0x3995cc(0xc4)](saveUpdates(_0x2b65e5[_0x3995cc(0xf2)],null))[_0x3995cc(0xc4)](respondWithResult(_0x58b8c3,null))[_0x3995cc(0xd7)](handleError(_0x58b8c3,null));},exports['destroy']=function(_0x44377f,_0x2cc2bd){const _0x192fa2=a36_0x1cf81a;return db[_0x192fa2(0xc5)][_0x192fa2(0xde)]({'where':{'id':_0x44377f[_0x192fa2(0xcd)]['id']}})[_0x192fa2(0xc4)](handleEntityNotFound(_0x2cc2bd,null))[_0x192fa2(0xc4)](removeEntity(_0x2cc2bd,null))[_0x192fa2(0xd7)](handleError(_0x2cc2bd,null));},exports[a36_0x1cf81a(0xc8)]=function(_0x52f65a,_0x3eefaf){const _0x43c94c=a36_0x1cf81a;return _0x52f65a[_0x43c94c(0xf2)][_0x43c94c(0xe6)]=_0x52f65a[_0x43c94c(0xc0)][_0x43c94c(0xbe)],_0x52f65a[_0x43c94c(0xf2)]['basename']=_0x52f65a[_0x43c94c(0xc0)]['filename'],_0x52f65a[_0x43c94c(0xf2)][_0x43c94c(0xd9)]=_0x52f65a['file']['mimetype'],db[_0x43c94c(0xc5)][_0x43c94c(0xc8)](_0x52f65a[_0x43c94c(0xf2)])[_0x43c94c(0xc4)](respondWithResult(_0x3eefaf,0xc9))['catch'](handleError(_0x3eefaf,null));},exports['download']=function(_0x3f3b56,_0x2ab827){const _0x24776f=a36_0x1cf81a;return db['Attachment'][_0x24776f(0xde)]({'where':{'id':_0x3f3b56[_0x24776f(0xcd)]['id']},'raw':!![]})[_0x24776f(0xc4)](handleEntityNotFound(_0x2ab827,null))[_0x24776f(0xc4)](function(_0x5cd813){const _0x2e7837=_0x24776f;if(_0x5cd813)return _0x2ab827['download'](path[_0x2e7837(0xe4)](config[_0x2e7837(0xef)],_0x2e7837(0xcc),_0x5cd813[_0x2e7837(0xd2)]));})[_0x24776f(0xd7)](handleError(_0x2ab827,null));}; \ No newline at end of file +const a36_0x5cbb=['error','include','destroy','rows','filter','Attachment','rawAttributes','stack','api','sendStatus','update','type','model','nolimit','catch','name','basename','filters','pick','VIRTUAL','get','files/attachments/','query','order','params','limit','../../config/environment','download','createdAt','fields','offset','updatedAt','index','Content-Range','count','status','create','json','send','keys','file','../../components/parsers/qs','join','then','where','end','omit','../../mysqldb','like','findOne','key','lodash','mimetype','map','includeAll','findAll','filename','body','merge','options','undefined','length','../../config/logger','attributes','intersection'];(function(_0x404242,_0x1a1732){const _0x5cbb95=function(_0x4b980a){while(--_0x4b980a){_0x404242['push'](_0x404242['shift']());}};_0x5cbb95(++_0x1a1732);}(a36_0x5cbb,0x183));const a36_0x4b98=function(_0x404242,_0x1a1732){_0x404242=_0x404242-0x9d;let _0x5cbb95=a36_0x5cbb[_0x404242];return _0x5cbb95;};const a36_0x302831=a36_0x4b98;'use strict';const path=require('path'),_=require(a36_0x302831(0xd3)),qs=require(a36_0x302831(0xc9)),logger=require(a36_0x302831(0x9d))(a36_0x302831(0xa8)),config=require(a36_0x302831(0xba)),{db}=require(a36_0x302831(0xcf)),{Op}=require('sequelize');function respondWithResult(_0x19f599,_0x49ef08){return _0x49ef08=_0x49ef08||0xc8,function(_0x4bca17){const _0xc0a408=a36_0x4b98;if(_0x4bca17)return _0x19f599[_0xc0a408(0xc3)](_0x49ef08)[_0xc0a408(0xc5)](_0x4bca17);};}function respondWithFilteredResult(_0x47ba2d,_0x3d00f3){return function(_0x186978){const _0x262031=a36_0x4b98;if(_0x186978){const _0x4eae31=_0x186978[_0x262031(0xc2)],_0x3efff7=_0x3d00f3['offset'];let _0x3196ba=_0x3d00f3[_0x262031(0xbe)]+_0x3d00f3[_0x262031(0xb9)],_0x2fc183;return _0x3196ba>=_0x4eae31?(_0x3196ba=_0x4eae31,_0x2fc183=0xc8):_0x2fc183=0xce,_0x47ba2d[_0x262031(0xc3)](_0x2fc183),_0x47ba2d['set'](_0x262031(0xc1),_0x3efff7+'-'+_0x3196ba+'/'+_0x4eae31)['json'](_0x186978);}return null;};}function saveUpdates(_0x3cf047){return function(_0x49dfa9){const _0x28a0ca=a36_0x4b98;if(_0x49dfa9)return _0x49dfa9[_0x28a0ca(0xaa)](_0x3cf047)[_0x28a0ca(0xcb)](function(_0x4c4a9d){return _0x4c4a9d;});return null;};}function removeEntity(_0x33f320){return function(_0x21c8fa){const _0x1ed99c=a36_0x4b98;if(_0x21c8fa)return _0x21c8fa[_0x1ed99c(0xa2)]()[_0x1ed99c(0xcb)](function(){const _0x1a2ad6=_0x1ed99c;_0x33f320[_0x1a2ad6(0xc3)](0xcc)[_0x1a2ad6(0xcd)]();});};}function handleEntityNotFound(_0x2e15ac){return function(_0x3f0f9a){const _0x375c00=a36_0x4b98;return!_0x3f0f9a&&_0x2e15ac[_0x375c00(0xa9)](0x194),_0x3f0f9a;};}function handleError(_0x1b2171,_0x27796b){return _0x27796b=_0x27796b||0x1f4,function(_0x49741f){const _0x25c740=a36_0x4b98;logger[_0x25c740(0xa0)](_0x49741f[_0x25c740(0xa7)]),_0x49741f[_0x25c740(0xaf)]&&delete _0x49741f['name'],_0x1b2171[_0x25c740(0xc3)](_0x27796b)[_0x25c740(0xc6)](_0x49741f);};}exports[a36_0x302831(0xc0)]=function(_0x30c345,_0x17f958){const _0x839f2d=a36_0x302831;let _0x34abbb={};const _0x3c6b19={},_0x6f01cf={'count':0x0,'rows':[]},_0x2ae77e=_[_0x839f2d(0xd5)](db[_0x839f2d(0xa5)][_0x839f2d(0xa6)],function(_0x13674d){const _0x5a25e2=_0x839f2d;return{'name':_0x13674d['fieldName'],'type':_0x13674d[_0x5a25e2(0xab)][_0x5a25e2(0xd2)]};});_0x3c6b19[_0x839f2d(0xac)]=_[_0x839f2d(0xd5)](_0x2ae77e,_0x839f2d(0xaf)),_0x3c6b19[_0x839f2d(0xb6)]=_[_0x839f2d(0xc7)](_0x30c345[_0x839f2d(0xb6)]),_0x3c6b19[_0x839f2d(0xb1)]=_[_0x839f2d(0x9f)](_0x3c6b19[_0x839f2d(0xac)],_0x3c6b19['query']),_0x34abbb[_0x839f2d(0x9e)]=_['intersection'](_0x3c6b19[_0x839f2d(0xac)],qs['fields'](_0x30c345[_0x839f2d(0xb6)]['fields'])),_0x34abbb[_0x839f2d(0x9e)]=_0x34abbb['attributes'][_0x839f2d(0xdd)]?_0x34abbb[_0x839f2d(0x9e)]:_0x3c6b19[_0x839f2d(0xac)];typeof _0x30c345['query'][_0x839f2d(0xad)]===_0x839f2d(0xdc)&&(_0x34abbb[_0x839f2d(0xb9)]=qs['limit'](_0x30c345[_0x839f2d(0xb6)][_0x839f2d(0xb9)]),_0x34abbb[_0x839f2d(0xbe)]=qs[_0x839f2d(0xbe)](_0x30c345[_0x839f2d(0xb6)][_0x839f2d(0xbe)]));_0x34abbb[_0x839f2d(0xb7)]=qs['sort'](_0x30c345[_0x839f2d(0xb6)]['sort']),_0x34abbb[_0x839f2d(0xcc)]=qs[_0x839f2d(0xb1)](_[_0x839f2d(0xb2)](_0x30c345[_0x839f2d(0xb6)],_0x3c6b19[_0x839f2d(0xb1)]),_0x2ae77e);_0x30c345[_0x839f2d(0xb6)][_0x839f2d(0xa4)]&&(_0x34abbb[_0x839f2d(0xcc)]=_[_0x839f2d(0xda)](_0x34abbb[_0x839f2d(0xcc)],{[Op['or']]:_['map'](_0x2ae77e,function(_0x123266){const _0x2042aa=_0x839f2d;if(_0x123266['type']!==_0x2042aa(0xb3)){const _0x444940={};return _0x444940[_0x123266[_0x2042aa(0xaf)]]={[Op[_0x2042aa(0xd0)]]:'%'+_0x30c345['query'][_0x2042aa(0xa4)]+'%'},_0x444940;}})}));_0x34abbb=_[_0x839f2d(0xda)]({},_0x34abbb,_0x30c345['options']);const _0xab557f={'where':_0x34abbb[_0x839f2d(0xcc)]};return db[_0x839f2d(0xa5)]['count'](_0xab557f)[_0x839f2d(0xcb)](function(_0x4ec500){const _0x1160fa=_0x839f2d;return _0x6f01cf['count']=_0x4ec500,_0x30c345['query'][_0x1160fa(0xd6)]&&(_0x34abbb[_0x1160fa(0xa1)]=[{'all':!![]}]),db['Attachment'][_0x1160fa(0xd7)](_0x34abbb);})[_0x839f2d(0xcb)](function(_0x1c19a2){const _0x46ec29=_0x839f2d;return _0x6f01cf[_0x46ec29(0xa3)]=_0x1c19a2,_0x6f01cf;})[_0x839f2d(0xcb)](respondWithFilteredResult(_0x17f958,_0x34abbb))[_0x839f2d(0xae)](handleError(_0x17f958,null));},exports['show']=function(_0x12f663,_0x5b3ea5){const _0x38e1ee=a36_0x302831;let _0x4e5981={'raw':!![],'where':{'id':_0x12f663['params']['id']}};const _0x2de804={};return _0x2de804[_0x38e1ee(0xac)]=_[_0x38e1ee(0xc7)](db['Attachment'][_0x38e1ee(0xa6)]),_0x2de804[_0x38e1ee(0xb6)]=_['keys'](_0x12f663[_0x38e1ee(0xb6)]),_0x2de804[_0x38e1ee(0xb1)]=_[_0x38e1ee(0x9f)](_0x2de804['model'],_0x2de804[_0x38e1ee(0xb6)]),_0x4e5981['attributes']=_[_0x38e1ee(0x9f)](_0x2de804[_0x38e1ee(0xac)],qs['fields'](_0x12f663[_0x38e1ee(0xb6)][_0x38e1ee(0xbd)])),_0x4e5981[_0x38e1ee(0x9e)]=_0x4e5981['attributes'][_0x38e1ee(0xdd)]?_0x4e5981[_0x38e1ee(0x9e)]:_0x2de804[_0x38e1ee(0xac)],_0x12f663[_0x38e1ee(0xb6)]['includeAll']&&(_0x4e5981[_0x38e1ee(0xa1)]=[{'all':!![]}]),_0x4e5981=_[_0x38e1ee(0xda)]({},_0x4e5981,_0x12f663[_0x38e1ee(0xdb)]),db[_0x38e1ee(0xa5)]['findOne'](_0x4e5981)['then'](handleEntityNotFound(_0x5b3ea5,null))[_0x38e1ee(0xcb)](respondWithResult(_0x5b3ea5,null))[_0x38e1ee(0xae)](handleError(_0x5b3ea5,null));},exports['clone']=function(_0x49497a,_0x572eb5){const _0x588b59=a36_0x302831;let _0x129d4e={'where':{'id':_0x49497a[_0x588b59(0xb8)]['id']}};const _0x111e10={};return _0x111e10['model']=_['keys'](db['Attachment']['rawAttributes']),_0x129d4e[_0x588b59(0x9e)]=_['intersection'](_0x111e10[_0x588b59(0xac)],qs[_0x588b59(0xbd)](_0x49497a['query']['fields'])),_0x129d4e['attributes']=_0x129d4e['attributes'][_0x588b59(0xdd)]?_0x129d4e[_0x588b59(0x9e)]:_0x111e10[_0x588b59(0xac)],_0x49497a[_0x588b59(0xb6)][_0x588b59(0xd6)]&&(_0x129d4e[_0x588b59(0xa1)]=[{'all':!![]}]),_0x129d4e=_['merge']({},_0x129d4e,_0x49497a[_0x588b59(0xdb)]),db[_0x588b59(0xa5)]['findOne'](_0x129d4e)['then'](handleEntityNotFound(_0x572eb5,null))[_0x588b59(0xcb)](function(_0x5d95e6){const _0x9d1eba=_0x588b59;if(_0x5d95e6){let _0x20b5ec=_0x5d95e6[_0x9d1eba(0xb4)]({'plain':!![]});return _0x20b5ec=qs[_0x9d1eba(0xce)](_0x20b5ec,['id',_0x9d1eba(0xbc),_0x9d1eba(0xbf)]),_0x49497a[_0x9d1eba(0xd9)]=_['omit'](_0x49497a[_0x9d1eba(0xd9)],['id','createdAt','updatedAt']),db[_0x9d1eba(0xa5)][_0x9d1eba(0xc4)](_['merge'](_0x20b5ec,_0x49497a[_0x9d1eba(0xd9)]),{'include':_0x49497a[_0x9d1eba(0xb6)][_0x9d1eba(0xd6)]?[{'all':!![]}]:undefined});}})['then'](respondWithResult(_0x572eb5,0xc9))[_0x588b59(0xae)](handleError(_0x572eb5,null));},exports['update']=function(_0x1a08d1,_0x416e22){const _0x3ed8c=a36_0x302831;return _0x1a08d1[_0x3ed8c(0xd9)]['id']&&delete _0x1a08d1[_0x3ed8c(0xd9)]['id'],db['Attachment'][_0x3ed8c(0xd1)]({'where':{'id':_0x1a08d1[_0x3ed8c(0xb8)]['id']}})[_0x3ed8c(0xcb)](handleEntityNotFound(_0x416e22,null))[_0x3ed8c(0xcb)](saveUpdates(_0x1a08d1['body'],null))[_0x3ed8c(0xcb)](respondWithResult(_0x416e22,null))['catch'](handleError(_0x416e22,null));},exports['destroy']=function(_0xbb847a,_0x35be7d){const _0x47057f=a36_0x302831;return db[_0x47057f(0xa5)][_0x47057f(0xd1)]({'where':{'id':_0xbb847a[_0x47057f(0xb8)]['id']}})['then'](handleEntityNotFound(_0x35be7d,null))['then'](removeEntity(_0x35be7d,null))[_0x47057f(0xae)](handleError(_0x35be7d,null));},exports['create']=function(_0x3fc193,_0x2241ff){const _0xcf8b72=a36_0x302831;return _0x3fc193[_0xcf8b72(0xd9)][_0xcf8b72(0xaf)]=_0x3fc193['file']['originalname'],_0x3fc193[_0xcf8b72(0xd9)][_0xcf8b72(0xb0)]=_0x3fc193[_0xcf8b72(0xc8)][_0xcf8b72(0xd8)],_0x3fc193[_0xcf8b72(0xd9)][_0xcf8b72(0xab)]=_0x3fc193['file'][_0xcf8b72(0xd4)],db[_0xcf8b72(0xa5)][_0xcf8b72(0xc4)](_0x3fc193['body'])[_0xcf8b72(0xcb)](respondWithResult(_0x2241ff,0xc9))[_0xcf8b72(0xae)](handleError(_0x2241ff,null));},exports[a36_0x302831(0xbb)]=function(_0xecc117,_0x18fed2){const _0x4c4c95=a36_0x302831;return db[_0x4c4c95(0xa5)][_0x4c4c95(0xd1)]({'where':{'id':_0xecc117['params']['id']},'raw':!![]})[_0x4c4c95(0xcb)](handleEntityNotFound(_0x18fed2,null))[_0x4c4c95(0xcb)](function(_0x455891){const _0x36eb57=_0x4c4c95;if(_0x455891)return _0x18fed2['download'](path[_0x36eb57(0xca)](config['root'],_0x36eb57(0xb5),_0x455891[_0x36eb57(0xb0)]));})[_0x4c4c95(0xae)](handleError(_0x18fed2,null));}; \ No newline at end of file diff --git a/server/api/attachment/attachment.model.js b/server/api/attachment/attachment.model.js index 2cf3cf0..d42a71c 100644 --- a/server/api/attachment/attachment.model.js +++ b/server/api/attachment/attachment.model.js @@ -1 +1 @@ -const a37_0x2afa=['sequelize','./attachment.attributes','exports','function','Attachment'];(function(_0x1e15d0,_0xe56cf1){const _0x2afa75=function(_0x228922){while(--_0x228922){_0x1e15d0['push'](_0x1e15d0['shift']());}};_0x2afa75(++_0xe56cf1);}(a37_0x2afa,0xaf));const a37_0x2289=function(_0x1e15d0,_0xe56cf1){_0x1e15d0=_0x1e15d0-0x121;let _0x2afa75=a37_0x2afa[_0x1e15d0];return _0x2afa75;};const a37_0x4a469a=a37_0x2289;'use strict';const {Model}=require(a37_0x4a469a(0x121)),{attributes}=require(a37_0x4a469a(0x122)),{options}=require('./attachment.options');class Attachment extends Model{}function init(_0x483e39,_0x46551f){const _0x170773=a37_0x4a469a,_0x366cbd=options(_0x483e39),_0x31652f=typeof _0x46551f===_0x170773(0x124)?_0x46551f(_0x366cbd):_0x366cbd;return Attachment['init'](attributes,_0x31652f),Attachment;}module['exports'][a37_0x4a469a(0x125)]=Attachment,module[a37_0x4a469a(0x123)]['init']=init; \ No newline at end of file +const a37_0x1ff3=['./attachment.attributes','./attachment.options','sequelize','Attachment','exports','init'];(function(_0xa48d78,_0x340667){const _0x1ff3b8=function(_0x4233a0){while(--_0x4233a0){_0xa48d78['push'](_0xa48d78['shift']());}};_0x1ff3b8(++_0x340667);}(a37_0x1ff3,0x174));const a37_0x4233=function(_0xa48d78,_0x340667){_0xa48d78=_0xa48d78-0x147;let _0x1ff3b8=a37_0x1ff3[_0xa48d78];return _0x1ff3b8;};const a37_0xa667ce=a37_0x4233;'use strict';const {Model}=require(a37_0xa667ce(0x149)),{attributes}=require(a37_0xa667ce(0x147)),{options}=require(a37_0xa667ce(0x148));class Attachment extends Model{}function init(_0x5993a7,_0xfa13da){const _0x6506f9=options(_0x5993a7),_0x4d6e7a=typeof _0xfa13da==='function'?_0xfa13da(_0x6506f9):_0x6506f9;return Attachment['init'](attributes,_0x4d6e7a),Attachment;}module[a37_0xa667ce(0x14b)][a37_0xa667ce(0x14a)]=Attachment,module[a37_0xa667ce(0x14b)][a37_0xa667ce(0x14c)]=init; \ No newline at end of file diff --git a/server/api/attachment/attachment.options.js b/server/api/attachment/attachment.options.js index 1f33cfc..7932938 100644 --- a/server/api/attachment/attachment.options.js +++ b/server/api/attachment/attachment.options.js @@ -1 +1 @@ -var a38_0x4969=['options','exports'];(function(_0x1bc69f,_0x1d0741){var _0x496941=function(_0x285d3a){while(--_0x285d3a){_0x1bc69f['push'](_0x1bc69f['shift']());}};_0x496941(++_0x1d0741);}(a38_0x4969,0x82));var a38_0x285d=function(_0x1bc69f,_0x1d0741){_0x1bc69f=_0x1bc69f-0x1a0;var _0x496941=a38_0x4969[_0x1bc69f];return _0x496941;};var a38_0x1e6a91=a38_0x285d;function options(_0x2de17d){return{'sequelize':_0x2de17d,'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]};}module[a38_0x1e6a91(0x1a1)][a38_0x1e6a91(0x1a0)]=options; \ No newline at end of file +var a38_0x2ed2=['exports','attachments','options'];(function(_0x204c44,_0x4ec930){var _0x2ed2e2=function(_0x4dd5d2){while(--_0x4dd5d2){_0x204c44['push'](_0x204c44['shift']());}};_0x2ed2e2(++_0x4ec930);}(a38_0x2ed2,0x1a1));var a38_0x4dd5=function(_0x204c44,_0x4ec930){_0x204c44=_0x204c44-0x80;var _0x2ed2e2=a38_0x2ed2[_0x204c44];return _0x2ed2e2;};var a38_0x2d6837=a38_0x4dd5;function options(_0x31e865){var _0x4ed8d6=a38_0x4dd5;return{'sequelize':_0x31e865,'tableName':_0x4ed8d6(0x81),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a38_0x2d6837(0x80)][a38_0x2d6837(0x82)]=options; \ No newline at end of file diff --git a/server/api/attachment/attachment.rpc.js b/server/api/attachment/attachment.rpc.js index 1c4df18..ea833fc 100644 --- a/server/api/attachment/attachment.rpc.js +++ b/server/api/attachment/attachment.rpc.js @@ -1 +1 @@ -const a39_0x5d57=['then','debug','raw','info','stringify','rpc','../../mysqldb','message','CreateAttachment','create','body','error','../../config/logger','options'];(function(_0x4ee23c,_0x2eff03){const _0x5d5723=function(_0x64b9f1){while(--_0x64b9f1){_0x4ee23c['push'](_0x4ee23c['shift']());}};_0x5d5723(++_0x2eff03);}(a39_0x5d57,0x140));const a39_0x64b9=function(_0x4ee23c,_0x2eff03){_0x4ee23c=_0x4ee23c-0x1d3;let _0x5d5723=a39_0x5d57[_0x4ee23c];return _0x5d5723;};const a39_0x3678df=a39_0x64b9;'use strict';const db=require(a39_0x3678df(0x1db))['db'],logger=require(a39_0x3678df(0x1d3))(a39_0x3678df(0x1da));exports[a39_0x3678df(0x1dd)]=function(_0x1623b6){const _0x257da6=this;return new Promise(function(_0x2bf658,_0x555f1e){const _0xcb8a0f=a39_0x64b9;return db['Attachment'][_0xcb8a0f(0x1de)](_0x1623b6[_0xcb8a0f(0x1df)],{'raw':_0x1623b6[_0xcb8a0f(0x1d4)]?_0x1623b6[_0xcb8a0f(0x1d4)][_0xcb8a0f(0x1d7)]===undefined?!![]:![]:!![]})[_0xcb8a0f(0x1d5)](function(_0x29812d){const _0x16df40=_0xcb8a0f;logger[_0x16df40(0x1d8)](_0x16df40(0x1dd),_0x1623b6),logger[_0x16df40(0x1d6)]('CreateAttachment',_0x1623b6,JSON[_0x16df40(0x1d9)](_0x29812d)),_0x2bf658(_0x29812d);})['catch'](function(_0x1a7e46){const _0x4e9a70=_0xcb8a0f;logger['error']('CreateAttachment',_0x1a7e46[_0x4e9a70(0x1dc)],_0x1623b6),_0x555f1e(_0x257da6[_0x4e9a70(0x1e0)](0x1f4,_0x1a7e46[_0x4e9a70(0x1dc)]));});});}; \ No newline at end of file +const a39_0x2b0d=['message','create','Attachment','debug','body','CreateAttachment','info','../../config/logger','error','stringify','options','rpc'];(function(_0x1c2e66,_0x3efcd1){const _0x2b0d76=function(_0x1f03fc){while(--_0x1f03fc){_0x1c2e66['push'](_0x1c2e66['shift']());}};_0x2b0d76(++_0x3efcd1);}(a39_0x2b0d,0x169));const a39_0x1f03=function(_0x1c2e66,_0x3efcd1){_0x1c2e66=_0x1c2e66-0xa0;let _0x2b0d76=a39_0x2b0d[_0x1c2e66];return _0x2b0d76;};const a39_0x1584d9=a39_0x1f03;'use strict';const db=require('../../mysqldb')['db'],logger=require(a39_0x1584d9(0xa6))(a39_0x1584d9(0xaa));exports[a39_0x1584d9(0xa4)]=function(_0x3a9814){const _0x47d5d5=this;return new Promise(function(_0x1ae339,_0x1d0475){const _0x4cb254=a39_0x1f03;return db[_0x4cb254(0xa1)][_0x4cb254(0xa0)](_0x3a9814[_0x4cb254(0xa3)],{'raw':_0x3a9814[_0x4cb254(0xa9)]?_0x3a9814[_0x4cb254(0xa9)]['raw']===undefined?!![]:![]:!![]})['then'](function(_0xbd37fc){const _0x1498e4=_0x4cb254;logger[_0x1498e4(0xa5)](_0x1498e4(0xa4),_0x3a9814),logger[_0x1498e4(0xa2)](_0x1498e4(0xa4),_0x3a9814,JSON[_0x1498e4(0xa8)](_0xbd37fc)),_0x1ae339(_0xbd37fc);})['catch'](function(_0x48f628){const _0x5d6275=_0x4cb254;logger['error'](_0x5d6275(0xa4),_0x48f628['message'],_0x3a9814),_0x1d0475(_0x47d5d5[_0x5d6275(0xa7)](0x1f4,_0x48f628[_0x5d6275(0xab)]));});});}; \ No newline at end of file diff --git a/server/api/attachment/index.js b/server/api/attachment/index.js index 40e2655..24c7fa8 100644 --- a/server/api/attachment/index.js +++ b/server/api/attachment/index.js @@ -1 +1 @@ -const a40_0x3284=['server/files/attachments/','index','util','express','/:id/download','Router','multer','destroy','single','path','./attachment.controller','replace','/:id/clone','exports','/:id','update','isAuthenticated','join','create','format','%s-%s','post','show','download','clone','../../components/auth/service','get','delete','now'];(function(_0x4849c4,_0x5068ae){const _0x32847b=function(_0x20308e){while(--_0x20308e){_0x4849c4['push'](_0x4849c4['shift']());}};_0x32847b(++_0x5068ae);}(a40_0x3284,0x137));const a40_0x2030=function(_0x4849c4,_0x5068ae){_0x4849c4=_0x4849c4-0x81;let _0x32847b=a40_0x3284[_0x4849c4];return _0x32847b;};const a40_0x2a2dc4=a40_0x2030;'use strict';const multer=require(a40_0x2a2dc4(0x8f)),util=require(a40_0x2a2dc4(0x8b)),path=require(a40_0x2a2dc4(0x92)),express=require(a40_0x2a2dc4(0x8c)),router=express[a40_0x2a2dc4(0x8e)](),auth=require(a40_0x2a2dc4(0x85)),config=require('../../config/environment'),controller=require(a40_0x2a2dc4(0x93));router['get']('/',auth['isAuthenticated'](),controller[a40_0x2a2dc4(0x8a)]),router[a40_0x2a2dc4(0x86)](a40_0x2a2dc4(0x97),auth['isAuthenticated'](),controller[a40_0x2a2dc4(0x82)]),router[a40_0x2a2dc4(0x86)](a40_0x2a2dc4(0x8d),auth['isAuthenticated'](),controller[a40_0x2a2dc4(0x83)]),router[a40_0x2a2dc4(0x81)](a40_0x2a2dc4(0x95),auth[a40_0x2a2dc4(0x99)](),controller[a40_0x2a2dc4(0x84)]);const upload=multer({'storage':multer['diskStorage']({'destination':function(_0x1eb542,_0x5eda77,_0x4c09c4){const _0x5c9596=a40_0x2a2dc4;_0x4c09c4(null,path[_0x5c9596(0x9a)](config['root'],_0x5c9596(0x89)));},'filename':function(_0x14b518,_0x398517,_0x1846e8){const _0x5cce65=a40_0x2a2dc4;_0x1846e8(null,util[_0x5cce65(0x9c)](_0x5cce65(0x9d),Date[_0x5cce65(0x88)](),_0x398517['originalname'][_0x5cce65(0x94)](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[a40_0x2a2dc4(0x81)]('/',upload[a40_0x2a2dc4(0x91)]('file'),controller[a40_0x2a2dc4(0x9b)]),router['put'](a40_0x2a2dc4(0x97),auth[a40_0x2a2dc4(0x99)](),controller[a40_0x2a2dc4(0x98)]),router[a40_0x2a2dc4(0x87)](a40_0x2a2dc4(0x97),auth[a40_0x2a2dc4(0x99)](),controller[a40_0x2a2dc4(0x90)]),module[a40_0x2a2dc4(0x96)]=router; \ No newline at end of file +const a40_0x3246=['join','replace','delete','server/files/attachments/','/:id/clone','/:id/download','express','./attachment.controller','/:id','originalname','update','file','create','exports','post','format','multer','destroy','diskStorage','now','Router','get','single','isAuthenticated','../../components/auth/service','path','%s-%s'];(function(_0x57c605,_0x347760){const _0x324633=function(_0x55e620){while(--_0x55e620){_0x57c605['push'](_0x57c605['shift']());}};_0x324633(++_0x347760);}(a40_0x3246,0xf4));const a40_0x55e6=function(_0x57c605,_0x347760){_0x57c605=_0x57c605-0x198;let _0x324633=a40_0x3246[_0x57c605];return _0x324633;};const a40_0x1e5e4d=a40_0x55e6;'use strict';const multer=require(a40_0x1e5e4d(0x1a7)),util=require('util'),path=require(a40_0x1e5e4d(0x1b0)),express=require(a40_0x1e5e4d(0x19d)),router=express[a40_0x1e5e4d(0x1ab)](),auth=require(a40_0x1e5e4d(0x1af)),config=require('../../config/environment'),controller=require(a40_0x1e5e4d(0x19e));router[a40_0x1e5e4d(0x1ac)]('/',auth[a40_0x1e5e4d(0x1ae)](),controller['index']),router['get'](a40_0x1e5e4d(0x19f),auth['isAuthenticated'](),controller['show']),router[a40_0x1e5e4d(0x1ac)](a40_0x1e5e4d(0x19c),auth[a40_0x1e5e4d(0x1ae)](),controller['download']),router[a40_0x1e5e4d(0x1a5)](a40_0x1e5e4d(0x19b),auth[a40_0x1e5e4d(0x1ae)](),controller['clone']);const upload=multer({'storage':multer[a40_0x1e5e4d(0x1a9)]({'destination':function(_0x4ae178,_0x25a3d6,_0x583dc4){const _0x5b06f6=a40_0x1e5e4d;_0x583dc4(null,path[_0x5b06f6(0x1b2)](config['root'],_0x5b06f6(0x19a)));},'filename':function(_0x2cc19f,_0x4e3369,_0x4691e6){const _0x1509d5=a40_0x1e5e4d;_0x4691e6(null,util[_0x1509d5(0x1a6)](_0x1509d5(0x1b1),Date[_0x1509d5(0x1aa)](),_0x4e3369[_0x1509d5(0x1a0)][_0x1509d5(0x198)](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[a40_0x1e5e4d(0x1a5)]('/',upload[a40_0x1e5e4d(0x1ad)](a40_0x1e5e4d(0x1a2)),controller[a40_0x1e5e4d(0x1a3)]),router['put'](a40_0x1e5e4d(0x19f),auth[a40_0x1e5e4d(0x1ae)](),controller[a40_0x1e5e4d(0x1a1)]),router[a40_0x1e5e4d(0x199)](a40_0x1e5e4d(0x19f),auth[a40_0x1e5e4d(0x1ae)](),controller[a40_0x1e5e4d(0x1a8)]),module[a40_0x1e5e4d(0x1a4)]=router; \ No newline at end of file diff --git a/server/api/authGoogle/authGoogle.controller.js b/server/api/authGoogle/authGoogle.controller.js index b18d3f2..b200bcd 100644 --- a/server/api/authGoogle/authGoogle.controller.js +++ b/server/api/authGoogle/authGoogle.controller.js @@ -1 +1 @@ -const a41_0x171b=['Setting','profile','clientSecret','disabled','then','clientID','user','authenticate','blockDuration','login','findOne','allowedLoginAttempts','email','map','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','../../mysqldb','User','catch','getLicense','moment','emails','minutes','secret','/login','callback','agent','lodash','clearBlockUser','value','google','add','passport','use','Strategy'];(function(_0x67da46,_0x15b9cd){const _0x171b29=function(_0x589898){while(--_0x589898){_0x67da46['push'](_0x67da46['shift']());}};_0x171b29(++_0x15b9cd);}(a41_0x171b,0xd1));const a41_0x5898=function(_0x67da46,_0x15b9cd){_0x67da46=_0x67da46-0x1a4;let _0x171b29=a41_0x171b[_0x67da46];return _0x171b29;};const a41_0x204e9f=a41_0x5898;'use strict';const _=require(a41_0x204e9f(0x1b9)),passport=require(a41_0x204e9f(0x1be)),GoogleStrategy=require('passport-google-oauth20')[a41_0x204e9f(0x1c0)],moment=require(a41_0x204e9f(0x1b2)),{db}=require(a41_0x204e9f(0x1ae)),config=require('../../config/environment'),utils=require('../../config/utils'),{Op}=require('sequelize');exports[a41_0x204e9f(0x1a8)]=passport[a41_0x204e9f(0x1a6)]('google',{'failureRedirect':a41_0x204e9f(0x1b6),'scope':[a41_0x204e9f(0x1c2),a41_0x204e9f(0x1ab)],'session':![]}),exports[a41_0x204e9f(0x1b7)]=passport[a41_0x204e9f(0x1a6)]('google',{'failureRedirect':a41_0x204e9f(0x1b6),'session':![]}),passport[a41_0x204e9f(0x1bf)](new GoogleStrategy({'clientID':config[a41_0x204e9f(0x1bc)]?config[a41_0x204e9f(0x1bc)][a41_0x204e9f(0x1a4)]:'id','clientSecret':config[a41_0x204e9f(0x1bc)]?config[a41_0x204e9f(0x1bc)][a41_0x204e9f(0x1c3)]:a41_0x204e9f(0x1b5),'callbackURL':config[a41_0x204e9f(0x1bc)]?config[a41_0x204e9f(0x1bc)]['callbackURL']:''},function(_0x5951b9,_0x77f70,_0x20aa59,_0x5098b0){const _0x97682f=a41_0x204e9f;let _0x4f9841,_0x2a7297;return db[_0x97682f(0x1c1)]['findOne']({'where':{'id':0x1},'attributes':[_0x97682f(0x1aa),_0x97682f(0x1a7)],'raw':!![]})['then'](function(_0xfac34e){const _0x860208=_0x97682f;return _0x4f9841=_0xfac34e,db[_0x860208(0x1af)][_0x860208(0x1a9)]({'where':{'email':_[_0x860208(0x1ac)](_0x20aa59[_0x860208(0x1b3)],_0x860208(0x1bb)),'role':{[Op['or']]:['admin',_0x860208(0x1a5),_0x860208(0x1b8)]}}});})[_0x97682f(0x1c5)](function(_0x456ce0){const _0x355877=_0x97682f;_0x2a7297=_0x456ce0;if(_0x2a7297){if(_0x2a7297[_0x355877(0x1c4)])return _0x5098b0(_0x355877(0x1ad));else return _0x4f9841[_0x355877(0x1a7)]>0x0?_0x2a7297['blocked']?moment(_0x2a7297['blockedAt'])[_0x355877(0x1bd)](_0x4f9841[_0x355877(0x1a7)],_0x355877(0x1b4))>moment()?_0x5098b0('Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'):utils[_0x355877(0x1ba)](_0x2a7297,0x0,![],null)[_0x355877(0x1c5)](function(){const _0x307869=_0x355877;return utils[_0x307869(0x1b1)](_0x2a7297);})['then'](function(){return _0x5098b0(null,_0x2a7297);}):utils[_0x355877(0x1b1)](_0x2a7297)['then'](function(){return _0x5098b0(null,_0x2a7297);}):utils[_0x355877(0x1b1)](_0x2a7297)[_0x355877(0x1c5)](function(){return _0x5098b0(null,_0x2a7297);});}return _0x5098b0(_0x355877(0x1ad));})[_0x97682f(0x1b0)](function(_0x2a8937){_0x5098b0(_0x2a8937);});})); \ No newline at end of file +const a41_0x2273=['use','admin','findOne','user','../../config/utils','clearBlockUser','../../config/environment','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','login','getLicense','secret','User','/login','emails','email','sequelize','callback','then','value','blockDuration','blocked','minutes','agent','clientID','../../mysqldb','profile','google','blockedAt','passport-google-oauth20','authenticate','passport','clientSecret','Setting','lodash','catch'];(function(_0x4429b9,_0x5dcd8d){const _0x22733d=function(_0x2d9fd7){while(--_0x2d9fd7){_0x4429b9['push'](_0x4429b9['shift']());}};_0x22733d(++_0x5dcd8d);}(a41_0x2273,0xce));const a41_0x2d9f=function(_0x4429b9,_0x5dcd8d){_0x4429b9=_0x4429b9-0x1b2;let _0x22733d=a41_0x2273[_0x4429b9];return _0x22733d;};const a41_0x4daedc=a41_0x2d9f;'use strict';const _=require(a41_0x4daedc(0x1b4)),passport=require(a41_0x4daedc(0x1d4)),GoogleStrategy=require(a41_0x4daedc(0x1d2))['Strategy'],moment=require('moment'),{db}=require(a41_0x4daedc(0x1ce)),config=require(a41_0x4daedc(0x1bc)),utils=require(a41_0x4daedc(0x1ba)),{Op}=require(a41_0x4daedc(0x1c5));exports[a41_0x4daedc(0x1be)]=passport[a41_0x4daedc(0x1d3)](a41_0x4daedc(0x1d0),{'failureRedirect':a41_0x4daedc(0x1c2),'scope':[a41_0x4daedc(0x1cf),a41_0x4daedc(0x1c4)],'session':![]}),exports[a41_0x4daedc(0x1c6)]=passport['authenticate']('google',{'failureRedirect':a41_0x4daedc(0x1c2),'session':![]}),passport[a41_0x4daedc(0x1b6)](new GoogleStrategy({'clientID':config[a41_0x4daedc(0x1d0)]?config[a41_0x4daedc(0x1d0)][a41_0x4daedc(0x1cd)]:'id','clientSecret':config[a41_0x4daedc(0x1d0)]?config['google'][a41_0x4daedc(0x1b2)]:a41_0x4daedc(0x1c0),'callbackURL':config['google']?config[a41_0x4daedc(0x1d0)]['callbackURL']:''},function(_0x37e845,_0x5eae3b,_0x5b176b,_0x4951b0){const _0x306080=a41_0x4daedc;let _0xfdabb6,_0xa01a43;return db[_0x306080(0x1b3)][_0x306080(0x1b8)]({'where':{'id':0x1},'attributes':['allowedLoginAttempts',_0x306080(0x1c9)],'raw':!![]})['then'](function(_0x5a47d5){const _0x470e4e=_0x306080;return _0xfdabb6=_0x5a47d5,db[_0x470e4e(0x1c1)][_0x470e4e(0x1b8)]({'where':{'email':_['map'](_0x5b176b[_0x470e4e(0x1c3)],_0x470e4e(0x1c8)),'role':{[Op['or']]:[_0x470e4e(0x1b7),_0x470e4e(0x1b9),_0x470e4e(0x1cc)]}}});})['then'](function(_0x373000){const _0xb3b492=_0x306080;_0xa01a43=_0x373000;if(_0xa01a43){if(_0xa01a43['disabled'])return _0x4951b0(_0xb3b492(0x1bd));else return _0xfdabb6[_0xb3b492(0x1c9)]>0x0?_0xa01a43[_0xb3b492(0x1ca)]?moment(_0xa01a43[_0xb3b492(0x1d1)])['add'](_0xfdabb6[_0xb3b492(0x1c9)],_0xb3b492(0x1cb))>moment()?_0x4951b0(_0xb3b492(0x1bd)):utils[_0xb3b492(0x1bb)](_0xa01a43,0x0,![],null)[_0xb3b492(0x1c7)](function(){const _0x29546c=_0xb3b492;return utils[_0x29546c(0x1bf)](_0xa01a43);})[_0xb3b492(0x1c7)](function(){return _0x4951b0(null,_0xa01a43);}):utils[_0xb3b492(0x1bf)](_0xa01a43)['then'](function(){return _0x4951b0(null,_0xa01a43);}):utils['getLicense'](_0xa01a43)['then'](function(){return _0x4951b0(null,_0xa01a43);});}return _0x4951b0('Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.');})[_0x306080(0x1b5)](function(_0x4b97a5){_0x4951b0(_0x4b97a5);});})); \ No newline at end of file diff --git a/server/api/authGoogle/index.js b/server/api/authGoogle/index.js index 05aed70..d64f108 100644 --- a/server/api/authGoogle/index.js +++ b/server/api/authGoogle/index.js @@ -1 +1 @@ -const a42_0x3e26=['Router','login','../user/user.controller.js','get','/callback','isMiddleware','express','exports','../../components/auth/service','callback'];(function(_0x3ba314,_0x4ac35d){const _0x3e26a4=function(_0x357173){while(--_0x357173){_0x3ba314['push'](_0x3ba314['shift']());}};_0x3e26a4(++_0x4ac35d);}(a42_0x3e26,0xb9));const a42_0x3571=function(_0x3ba314,_0x4ac35d){_0x3ba314=_0x3ba314-0x1a5;let _0x3e26a4=a42_0x3e26[_0x3ba314];return _0x3e26a4;};const a42_0x5d94fe=a42_0x3571;'use strict';const express=require(a42_0x5d94fe(0x1a6)),router=express[a42_0x5d94fe(0x1aa)](),controller=require('./authGoogle.controller'),userController=require(a42_0x5d94fe(0x1ac)),authService=require(a42_0x5d94fe(0x1a8));router[a42_0x5d94fe(0x1ad)]('/',controller[a42_0x5d94fe(0x1ab)]),router['get'](a42_0x5d94fe(0x1ae),controller[a42_0x5d94fe(0x1a9)],authService[a42_0x5d94fe(0x1a5)],userController['login'],authService['setTokenCookie']),module[a42_0x5d94fe(0x1a7)]=router; \ No newline at end of file +const a42_0xd6c8=['login','setTokenCookie','Router','callback','isMiddleware','get','exports','/callback','./authGoogle.controller','../user/user.controller.js'];(function(_0x3f34cf,_0x5a67e1){const _0xd6c8a3=function(_0x943fd8){while(--_0x943fd8){_0x3f34cf['push'](_0x3f34cf['shift']());}};_0xd6c8a3(++_0x5a67e1);}(a42_0xd6c8,0xc0));const a42_0x943f=function(_0x3f34cf,_0x5a67e1){_0x3f34cf=_0x3f34cf-0x197;let _0xd6c8a3=a42_0xd6c8[_0x3f34cf];return _0xd6c8a3;};const a42_0x4c18f1=a42_0x943f;'use strict';const express=require('express'),router=express[a42_0x4c18f1(0x197)](),controller=require(a42_0x4c18f1(0x19d)),userController=require(a42_0x4c18f1(0x19e)),authService=require('../../components/auth/service');router[a42_0x4c18f1(0x19a)]('/',controller['login']),router[a42_0x4c18f1(0x19a)](a42_0x4c18f1(0x19c),controller[a42_0x4c18f1(0x198)],authService[a42_0x4c18f1(0x199)],userController[a42_0x4c18f1(0x19f)],authService[a42_0x4c18f1(0x1a0)]),module[a42_0x4c18f1(0x19b)]=router; \ No newline at end of file diff --git a/server/api/authLocal/authLocal.controller.js b/server/api/authLocal/authLocal.controller.js index c0276b6..35a6727 100644 --- a/server/api/authLocal/authLocal.controller.js +++ b/server/api/authLocal/authLocal.controller.js @@ -1 +1 @@ -const a43_0x3dc7=['SendMail','add','blocked','http','toLowerCase','resetPasswordExpires','format','client','error','passwordHistoryLimit','email','headers','securePassword','The\x20user\x20is\x20disabled.\x20Please\x20contact\x20the\x20administrator.','online','Reset\x20Email\x20sent!','enforcePasswordHistory','reset','generate','You\x20are\x20receiving\x20this\x20because\x20you\x20(or\x20someone\x20else)\x20have\x20requested\x20the\x20reset\x20of\x20the\x20password\x20for\x20your\x20account.\x0a\x0a','password','body','Email\x20parameter\x20is\x20missing','auth','send','Unable\x20to\x20find\x20a\x20configured\x20SMTP\x20service!','role','resetPasswordToken','name','agent','blockedAt','disabled','MailServerOut','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','login','authenticate','Strategy','/reset/','salt','util','This\x20email\x20is\x20not\x20registered.','lodash','blockDuration','secure','User','Setting','passport-local','user','Smtp','passport','local','status','use','allowedLoginAttempts','randomstring','xCally\x20Motion\x20Password\x20Reset','now','https://','json','save','Please\x20click\x20on\x20the\x20following\x20link,\x20or\x20paste\x20this\x20into\x20your\x20browser\x20to\x20complete\x20the\x20process:\x0a\x0a','admin','\x22%s\x22\x20<%s>','then','SendMail\x20error:\x20%s.\x20Please\x20contact\x20your\x20Administrator!','clearBlockUser','../../components/auth/service','signToken','message','service','params','Password\x20reset!','catch','If\x20you\x20did\x20not\x20request\x20this,\x20please\x20ignore\x20this\x20email\x20and\x20your\x20password\x20will\x20remain\x20unchanged.\x0a','findOne','sequelize','forgot','stringify','trim','../../mysqldb','jayson/promise','validatePasswordPattern','request','pass','getLicense','MailAccount','port','minutes','loginAttempts','host'];(function(_0x3b9843,_0x36f41d){const _0x3dc7c7=function(_0xd4be9c){while(--_0xd4be9c){_0x3b9843['push'](_0x3b9843['shift']());}};_0x3dc7c7(++_0x36f41d);}(a43_0x3dc7,0xc2));const a43_0xd4be=function(_0x3b9843,_0x36f41d){_0x3b9843=_0x3b9843-0x11c;let _0x3dc7c7=a43_0x3dc7[_0x3b9843];return _0x3dc7c7;};const a43_0x28b967=a43_0xd4be;'use strict';const util=require(a43_0x28b967(0x135)),passport=require(a43_0x28b967(0x13f)),LocalStrategy=require(a43_0x28b967(0x13c))[a43_0x28b967(0x132)],jayson=require(a43_0x28b967(0x15e)),_=require(a43_0x28b967(0x137)),rs=require(a43_0x28b967(0x144)),moment=require('moment'),{db}=require(a43_0x28b967(0x15d)),{Op}=require(a43_0x28b967(0x159)),authService=require(a43_0x28b967(0x150)),utils=require('../../config/utils'),client=jayson[a43_0x28b967(0x16f)][a43_0x28b967(0x16b)]({'port':0x232b});function localAuthenticate(_0xc6bfae,_0x597ee7,_0x3bbb07,_0x2a4b0a){const _0x57c52d=a43_0x28b967;let _0x3659b5,_0x3d9976;return db[_0x57c52d(0x13b)][_0x57c52d(0x158)]({'where':{'id':0x1},'attributes':[_0x57c52d(0x143),_0x57c52d(0x138)],'raw':!![]})[_0x57c52d(0x14d)](function(_0x15f288){const _0x55f087=_0x57c52d;return _0x3659b5=_0x15f288,_0xc6bfae[_0x55f087(0x158)]({'attributes':['id',_0x55f087(0x12a),_0x55f087(0x122),_0x55f087(0x134),_0x55f087(0x128),_0x55f087(0x12d),_0x55f087(0x16a),_0x55f087(0x12c),_0x55f087(0x166)],'where':{'name':_0x597ee7,'role':{[Op['or']]:[_0x55f087(0x14b),_0x55f087(0x13d),_0x55f087(0x12b)]}}});})['then'](function(_0x16b9ce){const _0x3e1164=_0x57c52d;if(!_0x16b9ce||_0x16b9ce&&_0x16b9ce['name']!==_0x597ee7)throw new Error(_0x3e1164(0x12f));else return _0x3d9976=_0x16b9ce,_0x3d9976;})['then'](function(){const _0x4c638b=_0x57c52d;_0x3d9976[_0x4c638b(0x131)](_0x3bbb07,function(_0x53f998,_0x5b8f00){const _0x54a96f=_0x4c638b,_0x3a66cd=_0x3d9976[_0x54a96f(0x166)]+0x1;if(_0x53f998)return _0x2a4b0a(_0x53f998);else{if(!_0x5b8f00){if(_0x3d9976[_0x54a96f(0x12d)])return _0x2a4b0a(null,![],{'message':_0x54a96f(0x12f)});else return _0x3659b5[_0x54a96f(0x143)]>0x0?_0x3d9976[_0x54a96f(0x16a)]?_0x3659b5[_0x54a96f(0x138)]>0x0?moment(_0x3d9976['blockedAt'])['add'](_0x3659b5[_0x54a96f(0x138)],_0x54a96f(0x165))>moment()?_0x2a4b0a(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'}):utils[_0x54a96f(0x14f)](_0x3d9976,_0x3a66cd,![],null)[_0x54a96f(0x14d)](function(){const _0x123b18=_0x54a96f;return _0x2a4b0a(null,![],{'message':_0x123b18(0x12f)});}):_0x2a4b0a(null,![],{'message':_0x54a96f(0x12f)}):_0x3a66cd>=_0x3659b5[_0x54a96f(0x143)]?utils[_0x54a96f(0x14f)](_0x3d9976,0x0,!![],moment())[_0x54a96f(0x14d)](function(){return _0x2a4b0a(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});}):utils[_0x54a96f(0x14f)](_0x3d9976,_0x3a66cd,![],null)[_0x54a96f(0x14d)](function(){const _0x467050=_0x54a96f;return _0x2a4b0a(null,![],{'message':_0x467050(0x12f)});}):_0x2a4b0a(null,![],{'message':_0x54a96f(0x12f)});}else{if(_0x3d9976[_0x54a96f(0x12d)])return _0x2a4b0a(null,![],{'message':_0x54a96f(0x12f)});else return _0x3659b5[_0x54a96f(0x143)]>0x0?_0x3d9976['blocked']?_0x3659b5[_0x54a96f(0x138)]>0x0?moment(_0x3d9976[_0x54a96f(0x12c)])[_0x54a96f(0x169)](_0x3659b5[_0x54a96f(0x138)],_0x54a96f(0x165))>moment()?_0x2a4b0a(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'}):utils[_0x54a96f(0x14f)](_0x3d9976,0x0,![],null)[_0x54a96f(0x14d)](function(){const _0x21a533=_0x54a96f;return utils[_0x21a533(0x162)](_0x3d9976);})[_0x54a96f(0x14d)](function(){return _0x2a4b0a(null,_0x3d9976);}):_0x2a4b0a(null,![],{'message':_0x54a96f(0x12f)}):utils['clearBlockUser'](_0x3d9976,0x0,![],null)[_0x54a96f(0x14d)](function(){const _0x824b6c=_0x54a96f;return utils[_0x824b6c(0x162)](_0x3d9976);})['then'](function(){return _0x2a4b0a(null,_0x3d9976);})[_0x54a96f(0x156)](function(_0x5f5a7e){return _0x2a4b0a(null,![],_0x5f5a7e);}):_0x3d9976[_0x54a96f(0x16a)]?_0x2a4b0a(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'}):utils['getLicense'](_0x3d9976)[_0x54a96f(0x14d)](function(){return _0x2a4b0a(null,_0x3d9976);});}}});})[_0x57c52d(0x156)](function(_0x182a91){return _0x2a4b0a(null,![],_0x182a91);});}function sendServiceMail(_0x5ed355){const _0x338252=a43_0x28b967;return db[_0x338252(0x163)][_0x338252(0x158)]({'where':{'service':!![]},'attributes':['id',_0x338252(0x12a),'email'],'include':[{'model':db[_0x338252(0x12e)],'as':_0x338252(0x13e)}]})['then'](function(_0x5157ca){const _0x196ef2=_0x338252;if(!_0x5157ca)throw new Error(_0x196ef2(0x127));const _0x229fc6={'tls':{'rejectUnauthorized':![]}};_0x5157ca[_0x196ef2(0x13e)][_0x196ef2(0x153)]?_0x229fc6[_0x196ef2(0x153)]=_0x5157ca[_0x196ef2(0x13e)][_0x196ef2(0x153)]:(_0x229fc6['host']=_0x5157ca[_0x196ef2(0x13e)][_0x196ef2(0x167)],_0x229fc6[_0x196ef2(0x164)]=_0x5157ca[_0x196ef2(0x13e)][_0x196ef2(0x164)],_0x229fc6[_0x196ef2(0x139)]=_0x5157ca[_0x196ef2(0x13e)]['secure']);_0x5157ca[_0x196ef2(0x13e)]['authentication']&&(_0x229fc6[_0x196ef2(0x125)]={'user':_0x5157ca['Smtp'][_0x196ef2(0x13d)],'pass':_0x5157ca[_0x196ef2(0x13e)][_0x196ef2(0x161)]});const _0x2a1fee={'account':_0x229fc6,'message':_['merge']({'from':util[_0x196ef2(0x16e)](_0x196ef2(0x14c),_0x5157ca[_0x196ef2(0x12a)],_0x5157ca[_0x196ef2(0x172)]||_0x5157ca[_0x196ef2(0x13e)][_0x196ef2(0x13d)])},_0x5ed355)};return client[_0x196ef2(0x160)](_0x196ef2(0x168),_0x2a1fee);})[_0x338252(0x14d)](function(_0x38d66a){const _0x363d4b=_0x338252;if(_0x38d66a[_0x363d4b(0x170)])throw new Error(util['format'](_0x363d4b(0x14e),_0x38d66a[_0x363d4b(0x170)][_0x363d4b(0x152)]||JSON[_0x363d4b(0x15b)](_0x38d66a[_0x363d4b(0x170)])));return!![];});}function handleError(_0x38b70,_0xafc54b,_0x268ad7){const _0xbe6dcf=a43_0x28b967;return _0x38b70[_0xbe6dcf(0x141)](_0xafc54b||0x1f4)[_0xbe6dcf(0x126)]({'message':_0x268ad7?_0x268ad7[_0xbe6dcf(0x152)]||_0x268ad7:''});}exports[a43_0x28b967(0x130)]=function(_0x5b689f,_0x2510b1,_0x294f7f){const _0x1d4dc9=a43_0x28b967;passport['authenticate'](_0x1d4dc9(0x140),function(_0x56a4a7,_0xd32550,_0x24f2fd){const _0x38e5a9=_0x1d4dc9,_0xb9dedf=_0x56a4a7||_0x24f2fd;if(_0xb9dedf)return handleError(_0x2510b1,0x191,_0xb9dedf);if(!_0xd32550)return handleError(_0x2510b1,0x194,{'message':'Something\x20went\x20wrong,\x20please\x20try\x20again.'});else{const _0x2f2ba9={'payload':{'id':_0xd32550['id'],'role':_0xd32550[_0x38e5a9(0x128)]},'options':{'expiresIn':0x15180}};return authService[_0x38e5a9(0x151)](_0x2f2ba9)[_0x38e5a9(0x14d)](function(_0x24e022){const _0x106c9f=_0x38e5a9;_0x2510b1[_0x106c9f(0x148)]({'id':_0xd32550['id'],'token':_0x24e022,'statusCall':'','isAlreadyLogged':_0xd32550[_0x106c9f(0x11c)]});});}})(_0x5b689f,_0x2510b1,_0x294f7f);},exports[a43_0x28b967(0x15a)]=function(_0x2bdc32,_0x289724){const _0x4a481b=a43_0x28b967;if(!_0x2bdc32[_0x4a481b(0x123)][_0x4a481b(0x172)])return handleError(_0x289724,0x1f4,{'message':_0x4a481b(0x124)});const _0x3eb4cd=rs[_0x4a481b(0x120)]();_0x2bdc32['body'][_0x4a481b(0x172)]=_0x2bdc32[_0x4a481b(0x123)][_0x4a481b(0x172)][_0x4a481b(0x15c)]()[_0x4a481b(0x16c)]();let _0x44fac7;return db[_0x4a481b(0x13b)][_0x4a481b(0x158)]({'where':{'id':0x1},'attributes':[_0x4a481b(0x143),'blockDuration'],'raw':!![]})['then'](function(_0x5d650b){const _0x27a331=_0x4a481b;return _0x44fac7=_0x5d650b,db['User']['findOne']({'where':{'email':_0x2bdc32[_0x27a331(0x123)][_0x27a331(0x172)]}});})['then'](function(_0x529da3){const _0x2cae2c=_0x4a481b;if(!_0x529da3)throw new Error(_0x2cae2c(0x136));if(_0x529da3[_0x2cae2c(0x12d)])throw new Error(_0x2cae2c(0x175));if(_0x529da3[_0x2cae2c(0x16a)]){if(moment(_0x529da3[_0x2cae2c(0x12c)])[_0x2cae2c(0x169)](_0x44fac7[_0x2cae2c(0x138)],_0x2cae2c(0x165))>moment())throw new Error('The\x20user\x20is\x20blocked.\x20Please\x20contact\x20the\x20administrator.');else _0x529da3[_0x2cae2c(0x16a)]=![],_0x529da3[_0x2cae2c(0x12c)]=null;}return _0x529da3[_0x2cae2c(0x129)]=_0x3eb4cd,_0x529da3[_0x2cae2c(0x16d)]=Date[_0x2cae2c(0x146)]()+0x36ee80,_0x529da3[_0x2cae2c(0x149)]();})[_0x4a481b(0x14d)](function(){const _0x4c87ee=_0x4a481b;return sendServiceMail({'to':_0x2bdc32['body'][_0x4c87ee(0x172)],'subject':_0x4c87ee(0x145),'text':_0x4c87ee(0x121)+_0x4c87ee(0x14a)+_0x4c87ee(0x147)+_0x2bdc32[_0x4c87ee(0x173)][_0x4c87ee(0x167)]+_0x4c87ee(0x133)+_0x3eb4cd+'\x0a\x0a'+_0x4c87ee(0x157)});})[_0x4a481b(0x14d)](function(){const _0x2926f0=_0x4a481b;_0x289724['status'](0xc8)[_0x2926f0(0x126)]({'message':_0x2926f0(0x11d)});})[_0x4a481b(0x156)](function(_0x3620d1){return handleError(_0x289724,0x1f4,_0x3620d1);});},exports[a43_0x28b967(0x11f)]=function(_0x140af1,_0x33d56e){const _0x5b8ea6=a43_0x28b967;return db[_0x5b8ea6(0x13a)][_0x5b8ea6(0x158)]({'where':{'resetPasswordToken':_0x140af1[_0x5b8ea6(0x154)]['token'],'resetPasswordExpires':{[Op['gt']]:Date[_0x5b8ea6(0x146)]()}}})['then'](function(_0x15d474){const _0x2d1d10=_0x5b8ea6;if(!_0x15d474)throw new Error('Password\x20reset\x20token\x20is\x20invalid\x20or\x20has\x20expired.');return db[_0x2d1d10(0x13b)]['findOne']({'attributes':['id',_0x2d1d10(0x174),_0x2d1d10(0x11e),_0x2d1d10(0x171)]})[_0x2d1d10(0x14d)](function(_0x38656b){const _0x25cf11=_0x2d1d10;if(_0x38656b[_0x25cf11(0x174)])authService[_0x25cf11(0x15f)](_0x140af1['body'][_0x25cf11(0x122)]);if(!_0x38656b[_0x25cf11(0x11e)]||!_0x15d474['previousPasswords'])return _0x15d474;return authService['validatePasswordHistory'](_0x140af1['body'][_0x25cf11(0x122)],_0x15d474['previousPasswords'],_0x38656b[_0x25cf11(0x171)]),_0x15d474;})['then'](function(){const _0x2d46cb=_0x2d1d10;return _0x15d474[_0x2d46cb(0x122)]=_0x140af1['body'][_0x2d46cb(0x122)],_0x15d474[_0x2d46cb(0x129)]=null,_0x15d474[_0x2d46cb(0x16d)]=null,_0x15d474['save']();});})[_0x5b8ea6(0x14d)](function(){const _0x1ae401=_0x5b8ea6;_0x33d56e[_0x1ae401(0x141)](0xc8)[_0x1ae401(0x126)]({'message':_0x1ae401(0x155)});})[_0x5b8ea6(0x156)](function(_0x552b3f){return handleError(_0x33d56e,0x1f4,_0x552b3f);});},passport[a43_0x28b967(0x142)](new LocalStrategy({'usernameField':a43_0x28b967(0x12a),'passwordField':'password'},function(_0x4deab2,_0x2cbfe7,_0x4ca473){const _0x5b6420=a43_0x28b967;return localAuthenticate(db[_0x5b6420(0x13a)],_0x4deab2,_0x2cbfe7,_0x4ca473);})); \ No newline at end of file +const a43_0x1fc9=['send','status','If\x20you\x20did\x20not\x20request\x20this,\x20please\x20ignore\x20this\x20email\x20and\x20your\x20password\x20will\x20remain\x20unchanged.\x0a','passwordHistoryLimit','previousPasswords','allowedLoginAttempts','Email\x20parameter\x20is\x20missing','resetPasswordToken','blocked','authenticate','params','service','securePassword','enforcePasswordHistory','now','generate','password','format','error','SendMail\x20error:\x20%s.\x20Please\x20contact\x20your\x20Administrator!','login','blockedAt','Smtp','xCally\x20Motion\x20Password\x20Reset','local','The\x20user\x20is\x20blocked.\x20Please\x20contact\x20the\x20administrator.','sequelize','/reset/','../../components/auth/service','Password\x20reset!','add','moment','../../mysqldb','Reset\x20Email\x20sent!','passport','resetPasswordExpires','signToken','randomstring','save','reset','MailServerOut','http','jayson/promise','Please\x20click\x20on\x20the\x20following\x20link,\x20or\x20paste\x20this\x20into\x20your\x20browser\x20to\x20complete\x20the\x20process:\x0a\x0a','merge','You\x20are\x20receiving\x20this\x20because\x20you\x20(or\x20someone\x20else)\x20have\x20requested\x20the\x20reset\x20of\x20the\x20password\x20for\x20your\x20account.\x0a\x0a','MailAccount','lodash','user','passport-local','email','authentication','loginAttempts','User','admin','validatePasswordPattern','salt','host','../../config/utils','minutes','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','body','trim','port','clearBlockUser','Unable\x20to\x20find\x20a\x20configured\x20SMTP\x20service!','headers','role','token','blockDuration','forgot','validatePasswordHistory','Password\x20reset\x20token\x20is\x20invalid\x20or\x20has\x20expired.','Setting','auth','findOne','then','catch','name','client','disabled','getLicense','This\x20email\x20is\x20not\x20registered.','toLowerCase','json','use'];(function(_0x1e3cb9,_0x218317){const _0x1fc9dd=function(_0x5c0eaa){while(--_0x5c0eaa){_0x1e3cb9['push'](_0x1e3cb9['shift']());}};_0x1fc9dd(++_0x218317);}(a43_0x1fc9,0x164));const a43_0x5c0e=function(_0x1e3cb9,_0x218317){_0x1e3cb9=_0x1e3cb9-0xef;let _0x1fc9dd=a43_0x1fc9[_0x1e3cb9];return _0x1fc9dd;};const a43_0x51bfde=a43_0x5c0e;'use strict';const util=require('util'),passport=require(a43_0x51bfde(0x105)),LocalStrategy=require(a43_0x51bfde(0x114))['Strategy'],jayson=require(a43_0x51bfde(0x10d)),_=require(a43_0x51bfde(0x112)),rs=require(a43_0x51bfde(0x108)),moment=require(a43_0x51bfde(0x102)),{db}=require(a43_0x51bfde(0x103)),{Op}=require(a43_0x51bfde(0xfd)),authService=require(a43_0x51bfde(0xff)),utils=require(a43_0x51bfde(0x11d)),client=jayson[a43_0x51bfde(0x132)][a43_0x51bfde(0x10c)]({'port':0x232b});function localAuthenticate(_0x300e05,_0x169eb6,_0x5e7b41,_0x5da258){const _0xc501b1=a43_0x51bfde;let _0x4dd495,_0x4d4c19;return db[_0xc501b1(0x12c)]['findOne']({'where':{'id':0x1},'attributes':['allowedLoginAttempts',_0xc501b1(0x128)],'raw':!![]})[_0xc501b1(0x12f)](function(_0xe907eb){const _0x5aa124=_0xc501b1;return _0x4dd495=_0xe907eb,_0x300e05[_0x5aa124(0x12e)]({'attributes':['id',_0x5aa124(0x131),_0x5aa124(0xf3),_0x5aa124(0x11b),_0x5aa124(0x126),_0x5aa124(0x133),_0x5aa124(0x141),_0x5aa124(0xf8),'loginAttempts'],'where':{'name':_0x169eb6,'role':{[Op['or']]:[_0x5aa124(0x119),'user','agent']}}});})[_0xc501b1(0x12f)](function(_0x5aa0c7){const _0x770761=_0xc501b1;if(!_0x5aa0c7||_0x5aa0c7&&_0x5aa0c7[_0x770761(0x131)]!==_0x169eb6)throw new Error('Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.');else return _0x4d4c19=_0x5aa0c7,_0x4d4c19;})['then'](function(){const _0x3b41c2=_0xc501b1;_0x4d4c19[_0x3b41c2(0x142)](_0x5e7b41,function(_0x298e50,_0x1bd956){const _0x1dbab4=_0x3b41c2,_0xc3ac00=_0x4d4c19[_0x1dbab4(0x117)]+0x1;if(_0x298e50)return _0x5da258(_0x298e50);else{if(!_0x1bd956){if(_0x4d4c19['disabled'])return _0x5da258(null,![],{'message':_0x1dbab4(0x11f)});else return _0x4dd495[_0x1dbab4(0x13e)]>0x0?_0x4d4c19[_0x1dbab4(0x141)]?_0x4dd495[_0x1dbab4(0x128)]>0x0?moment(_0x4d4c19[_0x1dbab4(0xf8)])[_0x1dbab4(0x101)](_0x4dd495[_0x1dbab4(0x128)],'minutes')>moment()?_0x5da258(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'}):utils[_0x1dbab4(0x123)](_0x4d4c19,_0xc3ac00,![],null)[_0x1dbab4(0x12f)](function(){const _0x1418f6=_0x1dbab4;return _0x5da258(null,![],{'message':_0x1418f6(0x11f)});}):_0x5da258(null,![],{'message':_0x1dbab4(0x11f)}):_0xc3ac00>=_0x4dd495['allowedLoginAttempts']?utils[_0x1dbab4(0x123)](_0x4d4c19,0x0,!![],moment())[_0x1dbab4(0x12f)](function(){const _0x26c5c2=_0x1dbab4;return _0x5da258(null,![],{'message':_0x26c5c2(0x11f)});}):utils[_0x1dbab4(0x123)](_0x4d4c19,_0xc3ac00,![],null)[_0x1dbab4(0x12f)](function(){const _0x848918=_0x1dbab4;return _0x5da258(null,![],{'message':_0x848918(0x11f)});}):_0x5da258(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});}else{if(_0x4d4c19['disabled'])return _0x5da258(null,![],{'message':_0x1dbab4(0x11f)});else return _0x4dd495[_0x1dbab4(0x13e)]>0x0?_0x4d4c19[_0x1dbab4(0x141)]?_0x4dd495['blockDuration']>0x0?moment(_0x4d4c19[_0x1dbab4(0xf8)])[_0x1dbab4(0x101)](_0x4dd495['blockDuration'],_0x1dbab4(0x11e))>moment()?_0x5da258(null,![],{'message':_0x1dbab4(0x11f)}):utils['clearBlockUser'](_0x4d4c19,0x0,![],null)[_0x1dbab4(0x12f)](function(){return utils['getLicense'](_0x4d4c19);})[_0x1dbab4(0x12f)](function(){return _0x5da258(null,_0x4d4c19);}):_0x5da258(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'}):utils[_0x1dbab4(0x123)](_0x4d4c19,0x0,![],null)['then'](function(){const _0x2cdda5=_0x1dbab4;return utils[_0x2cdda5(0x134)](_0x4d4c19);})['then'](function(){return _0x5da258(null,_0x4d4c19);})['catch'](function(_0x5a5d0f){return _0x5da258(null,![],_0x5a5d0f);}):_0x4d4c19['blocked']?_0x5da258(null,![],{'message':_0x1dbab4(0x11f)}):utils[_0x1dbab4(0x134)](_0x4d4c19)[_0x1dbab4(0x12f)](function(){return _0x5da258(null,_0x4d4c19);});}}});})[_0xc501b1(0x130)](function(_0x3fbb4d){return _0x5da258(null,![],_0x3fbb4d);});}function sendServiceMail(_0x619176){const _0x44f57d=a43_0x51bfde;return db[_0x44f57d(0x111)][_0x44f57d(0x12e)]({'where':{'service':!![]},'attributes':['id',_0x44f57d(0x131),_0x44f57d(0x115)],'include':[{'model':db[_0x44f57d(0x10b)],'as':_0x44f57d(0xf9)}]})['then'](function(_0x5a44a2){const _0x2a15f0=_0x44f57d;if(!_0x5a44a2)throw new Error(_0x2a15f0(0x124));const _0x596d59={'tls':{'rejectUnauthorized':![]}};_0x5a44a2[_0x2a15f0(0xf9)][_0x2a15f0(0x144)]?_0x596d59['service']=_0x5a44a2[_0x2a15f0(0xf9)][_0x2a15f0(0x144)]:(_0x596d59[_0x2a15f0(0x11c)]=_0x5a44a2['Smtp'][_0x2a15f0(0x11c)],_0x596d59[_0x2a15f0(0x122)]=_0x5a44a2[_0x2a15f0(0xf9)][_0x2a15f0(0x122)],_0x596d59['secure']=_0x5a44a2['Smtp']['secure']);_0x5a44a2[_0x2a15f0(0xf9)][_0x2a15f0(0x116)]&&(_0x596d59[_0x2a15f0(0x12d)]={'user':_0x5a44a2[_0x2a15f0(0xf9)][_0x2a15f0(0x113)],'pass':_0x5a44a2[_0x2a15f0(0xf9)]['pass']});const _0x1bbf71={'account':_0x596d59,'message':_[_0x2a15f0(0x10f)]({'from':util[_0x2a15f0(0xf4)]('\x22%s\x22\x20<%s>',_0x5a44a2['name'],_0x5a44a2['email']||_0x5a44a2['Smtp'][_0x2a15f0(0x113)])},_0x619176)};return client['request']('SendMail',_0x1bbf71);})['then'](function(_0x57e5fb){const _0x568519=_0x44f57d;if(_0x57e5fb['error'])throw new Error(util['format'](_0x568519(0xf6),_0x57e5fb[_0x568519(0xf5)]['message']||JSON['stringify'](_0x57e5fb[_0x568519(0xf5)])));return!![];});}function handleError(_0x4259db,_0x3651f2,_0x1b02a2){const _0x104b13=a43_0x51bfde;return _0x4259db[_0x104b13(0x13a)](_0x3651f2||0x1f4)['send']({'message':_0x1b02a2?_0x1b02a2['message']||_0x1b02a2:''});}exports[a43_0x51bfde(0xf7)]=function(_0x188d5c,_0x1c0f0e,_0x62fbf3){const _0x9a0ea5=a43_0x51bfde;passport[_0x9a0ea5(0x142)](_0x9a0ea5(0xfb),function(_0x22cbbd,_0x48fda1,_0x32cdcd){const _0x533971=_0x9a0ea5,_0x2eae7d=_0x22cbbd||_0x32cdcd;if(_0x2eae7d)return handleError(_0x1c0f0e,0x191,_0x2eae7d);if(!_0x48fda1)return handleError(_0x1c0f0e,0x194,{'message':'Something\x20went\x20wrong,\x20please\x20try\x20again.'});else{const _0x34dda7={'payload':{'id':_0x48fda1['id'],'role':_0x48fda1[_0x533971(0x126)]},'options':{'expiresIn':0x15180}};return authService[_0x533971(0x107)](_0x34dda7)['then'](function(_0x540bdd){const _0x30525d=_0x533971;_0x1c0f0e[_0x30525d(0x137)]({'id':_0x48fda1['id'],'token':_0x540bdd,'statusCall':'','isAlreadyLogged':_0x48fda1['online']});});}})(_0x188d5c,_0x1c0f0e,_0x62fbf3);},exports[a43_0x51bfde(0x129)]=function(_0x4831c9,_0x368dbf){const _0x1d7efd=a43_0x51bfde;if(!_0x4831c9[_0x1d7efd(0x120)][_0x1d7efd(0x115)])return handleError(_0x368dbf,0x1f4,{'message':_0x1d7efd(0x13f)});const _0x218496=rs[_0x1d7efd(0xf2)]();_0x4831c9[_0x1d7efd(0x120)]['email']=_0x4831c9[_0x1d7efd(0x120)][_0x1d7efd(0x115)][_0x1d7efd(0x121)]()[_0x1d7efd(0x136)]();let _0xa2bcf9;return db[_0x1d7efd(0x12c)][_0x1d7efd(0x12e)]({'where':{'id':0x1},'attributes':[_0x1d7efd(0x13e),_0x1d7efd(0x128)],'raw':!![]})[_0x1d7efd(0x12f)](function(_0xb0524e){const _0x19024c=_0x1d7efd;return _0xa2bcf9=_0xb0524e,db[_0x19024c(0x118)][_0x19024c(0x12e)]({'where':{'email':_0x4831c9[_0x19024c(0x120)][_0x19024c(0x115)]}});})[_0x1d7efd(0x12f)](function(_0x138c8f){const _0x485ae2=_0x1d7efd;if(!_0x138c8f)throw new Error(_0x485ae2(0x135));if(_0x138c8f[_0x485ae2(0x133)])throw new Error('The\x20user\x20is\x20disabled.\x20Please\x20contact\x20the\x20administrator.');if(_0x138c8f[_0x485ae2(0x141)]){if(moment(_0x138c8f[_0x485ae2(0xf8)])[_0x485ae2(0x101)](_0xa2bcf9[_0x485ae2(0x128)],_0x485ae2(0x11e))>moment())throw new Error(_0x485ae2(0xfc));else _0x138c8f[_0x485ae2(0x141)]=![],_0x138c8f[_0x485ae2(0xf8)]=null;}return _0x138c8f[_0x485ae2(0x140)]=_0x218496,_0x138c8f[_0x485ae2(0x106)]=Date[_0x485ae2(0xf1)]()+0x36ee80,_0x138c8f[_0x485ae2(0x109)]();})[_0x1d7efd(0x12f)](function(){const _0x30e397=_0x1d7efd;return sendServiceMail({'to':_0x4831c9['body']['email'],'subject':_0x30e397(0xfa),'text':_0x30e397(0x110)+_0x30e397(0x10e)+'https://'+_0x4831c9[_0x30e397(0x125)][_0x30e397(0x11c)]+_0x30e397(0xfe)+_0x218496+'\x0a\x0a'+_0x30e397(0x13b)});})[_0x1d7efd(0x12f)](function(){const _0x5b94b2=_0x1d7efd;_0x368dbf['status'](0xc8)[_0x5b94b2(0x139)]({'message':_0x5b94b2(0x104)});})[_0x1d7efd(0x130)](function(_0x59b688){return handleError(_0x368dbf,0x1f4,_0x59b688);});},exports[a43_0x51bfde(0x10a)]=function(_0x93d117,_0x41d933){const _0x3e2f51=a43_0x51bfde;return db[_0x3e2f51(0x118)][_0x3e2f51(0x12e)]({'where':{'resetPasswordToken':_0x93d117[_0x3e2f51(0x143)][_0x3e2f51(0x127)],'resetPasswordExpires':{[Op['gt']]:Date['now']()}}})[_0x3e2f51(0x12f)](function(_0x556106){const _0x1f538e=_0x3e2f51;if(!_0x556106)throw new Error(_0x1f538e(0x12b));return db[_0x1f538e(0x12c)]['findOne']({'attributes':['id',_0x1f538e(0xef),_0x1f538e(0xf0),_0x1f538e(0x13c)]})[_0x1f538e(0x12f)](function(_0x48159d){const _0x2c635f=_0x1f538e;if(_0x48159d[_0x2c635f(0xef)])authService[_0x2c635f(0x11a)](_0x93d117[_0x2c635f(0x120)][_0x2c635f(0xf3)]);if(!_0x48159d[_0x2c635f(0xf0)]||!_0x556106[_0x2c635f(0x13d)])return _0x556106;return authService[_0x2c635f(0x12a)](_0x93d117['body']['password'],_0x556106[_0x2c635f(0x13d)],_0x48159d[_0x2c635f(0x13c)]),_0x556106;})['then'](function(){const _0x51a73c=_0x1f538e;return _0x556106['password']=_0x93d117['body']['password'],_0x556106[_0x51a73c(0x140)]=null,_0x556106[_0x51a73c(0x106)]=null,_0x556106[_0x51a73c(0x109)]();});})['then'](function(){const _0xc06160=_0x3e2f51;_0x41d933[_0xc06160(0x13a)](0xc8)[_0xc06160(0x139)]({'message':_0xc06160(0x100)});})['catch'](function(_0x124d8f){return handleError(_0x41d933,0x1f4,_0x124d8f);});},passport[a43_0x51bfde(0x138)](new LocalStrategy({'usernameField':'name','passwordField':a43_0x51bfde(0xf3)},function(_0x4ec5f6,_0x58f0fc,_0x13e165){const _0x3322b2=a43_0x51bfde;return localAuthenticate(db[_0x3322b2(0x118)],_0x4ec5f6,_0x58f0fc,_0x13e165);})); \ No newline at end of file diff --git a/server/api/authLocal/index.js b/server/api/authLocal/index.js index 3081890..658a14d 100644 --- a/server/api/authLocal/index.js +++ b/server/api/authLocal/index.js @@ -1 +1 @@ -const a44_0x5c25=['exports','/reset/:token','post','Router','/forgot','express','./authLocal.controller'];(function(_0xbe2485,_0x173f31){const _0x5c2509=function(_0x411fb5){while(--_0x411fb5){_0xbe2485['push'](_0xbe2485['shift']());}};_0x5c2509(++_0x173f31);}(a44_0x5c25,0x1c5));const a44_0x411f=function(_0xbe2485,_0x173f31){_0xbe2485=_0xbe2485-0xaa;let _0x5c2509=a44_0x5c25[_0xbe2485];return _0x5c2509;};const a44_0x2f0eb6=a44_0x411f;'use strict';const express=require(a44_0x2f0eb6(0xaa)),router=express[a44_0x2f0eb6(0xaf)](),controller=require(a44_0x2f0eb6(0xab));router[a44_0x2f0eb6(0xae)]('/',controller['login']),router[a44_0x2f0eb6(0xae)](a44_0x2f0eb6(0xb0),controller['forgot']),router['post'](a44_0x2f0eb6(0xad),controller['reset']),module[a44_0x2f0eb6(0xac)]=router; \ No newline at end of file +const a44_0x87ef=['login','./authLocal.controller','/forgot','/reset/:token','express','Router','post'];(function(_0x297043,_0x3c437c){const _0x87ef97=function(_0x5526c0){while(--_0x5526c0){_0x297043['push'](_0x297043['shift']());}};_0x87ef97(++_0x3c437c);}(a44_0x87ef,0x149));const a44_0x5526=function(_0x297043,_0x3c437c){_0x297043=_0x297043-0xc8;let _0x87ef97=a44_0x87ef[_0x297043];return _0x87ef97;};const a44_0x9f063e=a44_0x5526;'use strict';const express=require(a44_0x9f063e(0xcc)),router=express[a44_0x9f063e(0xcd)](),controller=require(a44_0x9f063e(0xc9));router[a44_0x9f063e(0xce)]('/',controller[a44_0x9f063e(0xc8)]),router[a44_0x9f063e(0xce)](a44_0x9f063e(0xca),controller['forgot']),router[a44_0x9f063e(0xce)](a44_0x9f063e(0xcb),controller['reset']),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 0f61605..18f641b 100644 --- a/server/api/automation/automation.attributes.js +++ b/server/api/automation/automation.attributes.js @@ -1 +1 @@ -const a45_0x28a5=['attributes','sequelize','STRING','INTEGER'];(function(_0x190cf7,_0x456008){const _0x28a53c=function(_0x582270){while(--_0x582270){_0x190cf7['push'](_0x190cf7['shift']());}};_0x28a53c(++_0x456008);}(a45_0x28a5,0x1bb));const a45_0x5822=function(_0x190cf7,_0x456008){_0x190cf7=_0x190cf7-0x1e0;let _0x28a53c=a45_0x28a5[_0x190cf7];return _0x28a53c;};const a45_0x20d66e=a45_0x5822;'use strict';const {DataTypes}=require(a45_0x20d66e(0x1e2)),attributes={'name':{'type':DataTypes['STRING'],'allowNull':![]},'channel':{'type':DataTypes[a45_0x20d66e(0x1e3)]},'description':{'type':DataTypes[a45_0x20d66e(0x1e3)]},'status':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'timeout':{'type':DataTypes[a45_0x20d66e(0x1e0)],'defaultValue':0xa}};module['exports'][a45_0x20d66e(0x1e1)]=attributes; \ No newline at end of file +const a45_0x3538=['BOOLEAN','attributes','STRING','sequelize','exports'];(function(_0x161cc2,_0x243eac){const _0x35383b=function(_0xc73e36){while(--_0xc73e36){_0x161cc2['push'](_0x161cc2['shift']());}};_0x35383b(++_0x243eac);}(a45_0x3538,0xec));const a45_0xc73e=function(_0x161cc2,_0x243eac){_0x161cc2=_0x161cc2-0x1b2;let _0x35383b=a45_0x3538[_0x161cc2];return _0x35383b;};const a45_0x234b3b=a45_0xc73e;'use strict';const {DataTypes}=require(a45_0x234b3b(0x1b4)),attributes={'name':{'type':DataTypes['STRING'],'allowNull':![]},'channel':{'type':DataTypes[a45_0x234b3b(0x1b3)]},'description':{'type':DataTypes[a45_0x234b3b(0x1b3)]},'status':{'type':DataTypes[a45_0x234b3b(0x1b6)],'defaultValue':![]},'timeout':{'type':DataTypes['INTEGER'],'defaultValue':0xa}};module[a45_0x234b3b(0x1b5)][a45_0x234b3b(0x1b2)]=attributes; \ No newline at end of file diff --git a/server/api/automation/automation.controller.js b/server/api/automation/automation.controller.js index 4b43cf0..648e157 100644 --- a/server/api/automation/automation.controller.js +++ b/server/api/automation/automation.controller.js @@ -1 +1 @@ -const a46_0x5944=['send','VIRTUAL','length','filters','params','where','model','undefined','json','status','rows','sort','catch','set','Automation','includeAll','stack','name','key','query','map','findOne','merge','Condition','getActions','sequelize','update','options','count','intersection','error','pick','ids','Action','sendStatus','type','api','filter','attributes','keys','nolimit','addActions','destroy','include','limit','create','../../components/parsers/qs','getConditions','then','fields','../../config/logger','end','body','offset','addConditions','order','rawAttributes','omit'];(function(_0x28865d,_0x4b6130){const _0x5944bd=function(_0x46b9bd){while(--_0x46b9bd){_0x28865d['push'](_0x28865d['shift']());}};_0x5944bd(++_0x4b6130);}(a46_0x5944,0x15f));const a46_0x46b9=function(_0x28865d,_0x4b6130){_0x28865d=_0x28865d-0x1cc;let _0x5944bd=a46_0x5944[_0x28865d];return _0x5944bd;};const a46_0x10dec8=a46_0x46b9;'use strict';const _=require('lodash'),qs=require(a46_0x10dec8(0x1f7)),logger=require(a46_0x10dec8(0x1fb))(a46_0x10dec8(0x1ed)),{db}=require('../../mysqldb'),{Op}=require(a46_0x10dec8(0x1e2));function respondWithResult(_0x10511a,_0x1fb2ad){return _0x1fb2ad=_0x1fb2ad||0xc8,function(_0x30464e){const _0x275125=a46_0x46b9;if(_0x30464e)return _0x10511a[_0x275125(0x1d2)](_0x1fb2ad)[_0x275125(0x1d1)](_0x30464e);};}function respondWithFilteredResult(_0x3a0af1,_0x2964d4){return function(_0x592785){const _0x103552=a46_0x46b9;if(_0x592785){const _0x3886e1=_0x592785[_0x103552(0x1e5)],_0x46ca99=_0x2964d4['offset'];let _0x25d57=_0x2964d4[_0x103552(0x1fe)]+_0x2964d4[_0x103552(0x1f5)],_0xddc970;return _0x25d57>=_0x3886e1?(_0x25d57=_0x3886e1,_0xddc970=0xc8):_0xddc970=0xce,_0x3a0af1[_0x103552(0x1d2)](_0xddc970),_0x3a0af1[_0x103552(0x1d6)]('Content-Range',_0x46ca99+'-'+_0x25d57+'/'+_0x3886e1)[_0x103552(0x1d1)](_0x592785);}return null;};}function saveUpdates(_0x264b61){return function(_0x440a0a){const _0x320f0e=a46_0x46b9;if(_0x440a0a)return _0x440a0a[_0x320f0e(0x1e3)](_0x264b61)[_0x320f0e(0x1f9)](function(_0x15f872){return _0x15f872;});return null;};}function removeEntity(_0x2d8982){return function(_0x3b7fe2){const _0x45604a=a46_0x46b9;if(_0x3b7fe2)return _0x3b7fe2[_0x45604a(0x1f3)]()[_0x45604a(0x1f9)](function(){const _0xc06def=_0x45604a;_0x2d8982['status'](0xcc)[_0xc06def(0x1fc)]();});};}function handleEntityNotFound(_0x3ca455){return function(_0x2a80a5){const _0x1385a2=a46_0x46b9;return!_0x2a80a5&&_0x3ca455[_0x1385a2(0x1eb)](0x194),_0x2a80a5;};}function handleError(_0x5b436a,_0xe5d12a){return _0xe5d12a=_0xe5d12a||0x1f4,function(_0x5d86fb){const _0x3a3afe=a46_0x46b9;logger[_0x3a3afe(0x1e7)](_0x5d86fb[_0x3a3afe(0x1d9)]),_0x5d86fb[_0x3a3afe(0x1da)]&&delete _0x5d86fb[_0x3a3afe(0x1da)],_0x5b436a[_0x3a3afe(0x1d2)](_0xe5d12a)[_0x3a3afe(0x203)](_0x5d86fb);};}exports['index']=function(_0x3a72df,_0x5d617a){const _0x39fbca=a46_0x10dec8;let _0x5f3fd8={};const _0x20cfef={},_0x451aec={'count':0x0,'rows':[]},_0x26a60f=_[_0x39fbca(0x1dd)](db[_0x39fbca(0x1d7)][_0x39fbca(0x201)],function(_0x3dce72){const _0x287cca=_0x39fbca;return{'name':_0x3dce72['fieldName'],'type':_0x3dce72['type'][_0x287cca(0x1db)]};});_0x20cfef[_0x39fbca(0x1cf)]=_['map'](_0x26a60f,_0x39fbca(0x1da)),_0x20cfef['query']=_[_0x39fbca(0x1f0)](_0x3a72df[_0x39fbca(0x1dc)]),_0x20cfef['filters']=_['intersection'](_0x20cfef[_0x39fbca(0x1cf)],_0x20cfef[_0x39fbca(0x1dc)]),_0x5f3fd8[_0x39fbca(0x1ef)]=_[_0x39fbca(0x1e6)](_0x20cfef['model'],qs[_0x39fbca(0x1fa)](_0x3a72df[_0x39fbca(0x1dc)][_0x39fbca(0x1fa)])),_0x5f3fd8['attributes']=_0x5f3fd8[_0x39fbca(0x1ef)][_0x39fbca(0x205)]?_0x5f3fd8[_0x39fbca(0x1ef)]:_0x20cfef[_0x39fbca(0x1cf)];typeof _0x3a72df[_0x39fbca(0x1dc)][_0x39fbca(0x1f1)]==='undefined'&&(_0x5f3fd8['limit']=qs[_0x39fbca(0x1f5)](_0x3a72df[_0x39fbca(0x1dc)][_0x39fbca(0x1f5)]),_0x5f3fd8[_0x39fbca(0x1fe)]=qs[_0x39fbca(0x1fe)](_0x3a72df[_0x39fbca(0x1dc)][_0x39fbca(0x1fe)]));_0x5f3fd8['order']=qs[_0x39fbca(0x1d4)](_0x3a72df[_0x39fbca(0x1dc)][_0x39fbca(0x1d4)]),_0x5f3fd8['where']=qs[_0x39fbca(0x1cc)](_[_0x39fbca(0x1e8)](_0x3a72df[_0x39fbca(0x1dc)],_0x20cfef[_0x39fbca(0x1cc)]),_0x26a60f);_0x3a72df[_0x39fbca(0x1dc)][_0x39fbca(0x1ee)]&&(_0x5f3fd8[_0x39fbca(0x1ce)]=_[_0x39fbca(0x1df)](_0x5f3fd8[_0x39fbca(0x1ce)],{[Op['or']]:_[_0x39fbca(0x1dd)](_0x26a60f,function(_0x35b47e){const _0x2833d8=_0x39fbca;if(_0x35b47e[_0x2833d8(0x1ec)]!==_0x2833d8(0x204)){const _0x243b11={};return _0x243b11[_0x35b47e[_0x2833d8(0x1da)]]={[Op['like']]:'%'+_0x3a72df[_0x2833d8(0x1dc)][_0x2833d8(0x1ee)]+'%'},_0x243b11;}})}));_0x5f3fd8=_[_0x39fbca(0x1df)]({},_0x5f3fd8,_0x3a72df[_0x39fbca(0x1e4)]);const _0x971c4b={'where':_0x5f3fd8['where']};return db['Automation'][_0x39fbca(0x1e5)](_0x971c4b)[_0x39fbca(0x1f9)](function(_0xfbe597){const _0x2348c7=_0x39fbca;return _0x451aec[_0x2348c7(0x1e5)]=_0xfbe597,_0x3a72df['query'][_0x2348c7(0x1d8)]&&(_0x5f3fd8[_0x2348c7(0x1f4)]=[{'all':!![]}]),db[_0x2348c7(0x1d7)]['findAll'](_0x5f3fd8);})['then'](function(_0x17bbc0){const _0x27d0f9=_0x39fbca;return _0x451aec[_0x27d0f9(0x1d3)]=_0x17bbc0,_0x451aec;})[_0x39fbca(0x1f9)](respondWithFilteredResult(_0x5d617a,_0x5f3fd8))[_0x39fbca(0x1d5)](handleError(_0x5d617a,null));},exports['show']=function(_0xb5c6f4,_0x39bf17){const _0x57d920=a46_0x10dec8;let _0x28d942={'raw':![],'where':{'id':_0xb5c6f4[_0x57d920(0x1cd)]['id']}};const _0x6e0846={};return _0x6e0846['model']=_[_0x57d920(0x1f0)](db[_0x57d920(0x1d7)][_0x57d920(0x201)]),_0x6e0846[_0x57d920(0x1dc)]=_[_0x57d920(0x1f0)](_0xb5c6f4['query']),_0x6e0846[_0x57d920(0x1cc)]=_[_0x57d920(0x1e6)](_0x6e0846[_0x57d920(0x1cf)],_0x6e0846['query']),_0x28d942[_0x57d920(0x1ef)]=_[_0x57d920(0x1e6)](_0x6e0846[_0x57d920(0x1cf)],qs[_0x57d920(0x1fa)](_0xb5c6f4[_0x57d920(0x1dc)][_0x57d920(0x1fa)])),_0x28d942[_0x57d920(0x1ef)]=_0x28d942['attributes'][_0x57d920(0x205)]?_0x28d942[_0x57d920(0x1ef)]:_0x6e0846[_0x57d920(0x1cf)],_0xb5c6f4[_0x57d920(0x1dc)][_0x57d920(0x1d8)]&&(_0x28d942[_0x57d920(0x1f4)]=[{'all':!![]}]),_0x28d942=_['merge']({},_0x28d942,_0xb5c6f4[_0x57d920(0x1e4)]),db[_0x57d920(0x1d7)][_0x57d920(0x1de)](_0x28d942)['then'](handleEntityNotFound(_0x39bf17,null))[_0x57d920(0x1f9)](respondWithResult(_0x39bf17,null))[_0x57d920(0x1d5)](handleError(_0x39bf17,null));},exports[a46_0x10dec8(0x1f6)]=function(_0x25456e,_0xf81918){const _0x44af04=a46_0x10dec8;return db[_0x44af04(0x1d7)][_0x44af04(0x1f6)](_0x25456e[_0x44af04(0x1fd)],{})[_0x44af04(0x1f9)](respondWithResult(_0xf81918,0xc9))[_0x44af04(0x1d5)](handleError(_0xf81918,null));},exports[a46_0x10dec8(0x1e3)]=function(_0x19b209,_0x4e720f){const _0x12e5ed=a46_0x10dec8;return _0x19b209[_0x12e5ed(0x1fd)]['id']&&delete _0x19b209[_0x12e5ed(0x1fd)]['id'],db[_0x12e5ed(0x1d7)][_0x12e5ed(0x1de)]({'where':{'id':_0x19b209[_0x12e5ed(0x1cd)]['id']}})[_0x12e5ed(0x1f9)](handleEntityNotFound(_0x4e720f,null))['then'](saveUpdates(_0x19b209['body'],null))['then'](respondWithResult(_0x4e720f,null))[_0x12e5ed(0x1d5)](handleError(_0x4e720f,null));},exports['destroy']=function(_0x2b1af8,_0x44f678){const _0x27586e=a46_0x10dec8;return db[_0x27586e(0x1d7)][_0x27586e(0x1de)]({'where':{'id':_0x2b1af8[_0x27586e(0x1cd)]['id']}})['then'](handleEntityNotFound(_0x44f678,null))[_0x27586e(0x1f9)](removeEntity(_0x44f678,null))[_0x27586e(0x1d5)](handleError(_0x44f678,null));},exports[a46_0x10dec8(0x1ff)]=function(_0xccb525,_0x1991a1){const _0x2e9d46=a46_0x10dec8;return db['Condition'][_0x2e9d46(0x1de)]({'where':{'id':_0xccb525['params']['id']}})[_0x2e9d46(0x1f9)](function(_0x25079b){const _0x5cf1dc=_0x2e9d46;if(_0x25079b)return _0x25079b[_0x5cf1dc(0x1ff)](_0xccb525[_0x5cf1dc(0x1fd)]['ids'],{'through':_[_0x5cf1dc(0x202)](_0xccb525[_0x5cf1dc(0x1fd)],[_0x5cf1dc(0x1e9),'id'])});})[_0x2e9d46(0x1f9)](respondWithResult(_0x1991a1,null))['catch'](handleError(_0x1991a1,null));},exports['getConditions']=function(_0x3f85f1,_0x10161f){const _0xdf9c7f=a46_0x10dec8;let _0x39a2b1={};const _0x3858ba={};let _0x41087c,_0x45edb0;return db['Automation'][_0xdf9c7f(0x1de)]({'where':{'id':_0x3f85f1[_0xdf9c7f(0x1cd)]['id']}})[_0xdf9c7f(0x1f9)](handleEntityNotFound(_0x10161f,null))['then'](function(_0x361420){const _0x3415af=_0xdf9c7f;if(_0x361420)return _0x41087c=_0x361420,_0x3858ba[_0x3415af(0x1cf)]=_[_0x3415af(0x1f0)](db[_0x3415af(0x1e0)]['rawAttributes']),_0x3858ba[_0x3415af(0x1dc)]=_[_0x3415af(0x1f0)](_0x3f85f1[_0x3415af(0x1dc)]),_0x3858ba[_0x3415af(0x1cc)]=_['intersection'](_0x3858ba[_0x3415af(0x1cf)],_0x3858ba['query']),_0x39a2b1['attributes']=_[_0x3415af(0x1e6)](_0x3858ba[_0x3415af(0x1cf)],qs[_0x3415af(0x1fa)](_0x3f85f1[_0x3415af(0x1dc)]['fields'])),_0x39a2b1['attributes']=_0x39a2b1['attributes']['length']?_0x39a2b1['attributes']:_0x3858ba[_0x3415af(0x1cf)],_0x39a2b1[_0x3415af(0x200)]=qs['sort'](_0x3f85f1[_0x3415af(0x1dc)]['sort']),_0x39a2b1[_0x3415af(0x1ce)]=qs[_0x3415af(0x1cc)](_['pick'](_0x3f85f1[_0x3415af(0x1dc)],_0x3858ba[_0x3415af(0x1cc)])),_0x3f85f1[_0x3415af(0x1dc)][_0x3415af(0x1ee)]&&(_0x39a2b1[_0x3415af(0x1ce)]=_['merge'](_0x39a2b1[_0x3415af(0x1ce)],{[Op['or']]:_['map'](_0x39a2b1[_0x3415af(0x1ef)],function(_0x23daa6){const _0x465aea=_0x3415af,_0x11eaa2={};return _0x11eaa2[_0x23daa6]={[Op['like']]:'%'+_0x3f85f1[_0x465aea(0x1dc)][_0x465aea(0x1ee)]+'%'},_0x11eaa2;})})),_0x39a2b1=_[_0x3415af(0x1df)]({},_0x39a2b1,_0x3f85f1[_0x3415af(0x1e4)]),_0x41087c['getConditions'](_0x39a2b1);})[_0xdf9c7f(0x1f9)](function(_0x489836){const _0x2bf991=_0xdf9c7f;if(_0x489836)return _0x45edb0=_0x489836[_0x2bf991(0x205)],typeof _0x3f85f1[_0x2bf991(0x1dc)][_0x2bf991(0x1f1)]===_0x2bf991(0x1d0)&&(_0x39a2b1[_0x2bf991(0x1f5)]=qs[_0x2bf991(0x1f5)](_0x3f85f1[_0x2bf991(0x1dc)][_0x2bf991(0x1f5)]),_0x39a2b1[_0x2bf991(0x1fe)]=qs['offset'](_0x3f85f1[_0x2bf991(0x1dc)]['offset'])),_0x41087c[_0x2bf991(0x1f8)](_0x39a2b1);})[_0xdf9c7f(0x1f9)](function(_0x1bcf4c){if(_0x1bcf4c)return _0x1bcf4c?{'count':_0x45edb0,'rows':_0x1bcf4c}:null;})[_0xdf9c7f(0x1f9)](respondWithResult(_0x10161f,null))[_0xdf9c7f(0x1d5)](handleError(_0x10161f,null));},exports[a46_0x10dec8(0x1f2)]=function(_0x1fdd83,_0x7789ab){const _0x4323c8=a46_0x10dec8;return db[_0x4323c8(0x1ea)][_0x4323c8(0x1de)]({'where':{'id':_0x1fdd83[_0x4323c8(0x1cd)]['id']}})['then'](function(_0x182daf){const _0x53067e=_0x4323c8;if(_0x182daf)return _0x182daf['addActions'](_0x1fdd83[_0x53067e(0x1fd)]['ids'],{'through':_[_0x53067e(0x202)](_0x1fdd83['body'],[_0x53067e(0x1e9),'id'])});})['then'](respondWithResult(_0x7789ab,null))['catch'](handleError(_0x7789ab,null));},exports['getActions']=function(_0x50bdae,_0x407038){const _0x2bb803=a46_0x10dec8;let _0x38bf23={};const _0x2adc8f={};let _0x3190a9,_0x2a8574;return db[_0x2bb803(0x1d7)][_0x2bb803(0x1de)]({'where':{'id':_0x50bdae[_0x2bb803(0x1cd)]['id']}})['then'](handleEntityNotFound(_0x407038,null))['then'](function(_0x25db57){const _0x34d9fa=_0x2bb803;if(_0x25db57)return _0x3190a9=_0x25db57,_0x2adc8f['model']=_['keys'](db[_0x34d9fa(0x1ea)][_0x34d9fa(0x201)]),_0x2adc8f[_0x34d9fa(0x1dc)]=_[_0x34d9fa(0x1f0)](_0x50bdae['query']),_0x2adc8f[_0x34d9fa(0x1cc)]=_[_0x34d9fa(0x1e6)](_0x2adc8f[_0x34d9fa(0x1cf)],_0x2adc8f[_0x34d9fa(0x1dc)]),_0x38bf23[_0x34d9fa(0x1ef)]=_['intersection'](_0x2adc8f[_0x34d9fa(0x1cf)],qs[_0x34d9fa(0x1fa)](_0x50bdae[_0x34d9fa(0x1dc)]['fields'])),_0x38bf23['attributes']=_0x38bf23[_0x34d9fa(0x1ef)]['length']?_0x38bf23[_0x34d9fa(0x1ef)]:_0x2adc8f[_0x34d9fa(0x1cf)],_0x38bf23[_0x34d9fa(0x200)]=qs[_0x34d9fa(0x1d4)](_0x50bdae['query']['sort']),_0x38bf23[_0x34d9fa(0x1ce)]=qs[_0x34d9fa(0x1cc)](_['pick'](_0x50bdae['query'],_0x2adc8f[_0x34d9fa(0x1cc)])),_0x50bdae[_0x34d9fa(0x1dc)][_0x34d9fa(0x1ee)]&&(_0x38bf23[_0x34d9fa(0x1ce)]=_[_0x34d9fa(0x1df)](_0x38bf23[_0x34d9fa(0x1ce)],{[Op['or']]:_['map'](_0x38bf23[_0x34d9fa(0x1ef)],function(_0x3e9048){const _0x1d4f0b=_0x34d9fa,_0x41fbd0={};return _0x41fbd0[_0x3e9048]={[Op['like']]:'%'+_0x50bdae[_0x1d4f0b(0x1dc)][_0x1d4f0b(0x1ee)]+'%'},_0x41fbd0;})})),_0x38bf23=_[_0x34d9fa(0x1df)]({},_0x38bf23,_0x50bdae['options']),_0x3190a9[_0x34d9fa(0x1e1)](_0x38bf23);})['then'](function(_0x7801e1){const _0x2458ae=_0x2bb803;if(_0x7801e1)return _0x2a8574=_0x7801e1[_0x2458ae(0x205)],typeof _0x50bdae[_0x2458ae(0x1dc)][_0x2458ae(0x1f1)]==='undefined'&&(_0x38bf23['limit']=qs[_0x2458ae(0x1f5)](_0x50bdae[_0x2458ae(0x1dc)][_0x2458ae(0x1f5)]),_0x38bf23[_0x2458ae(0x1fe)]=qs[_0x2458ae(0x1fe)](_0x50bdae[_0x2458ae(0x1dc)]['offset'])),_0x3190a9['getActions'](_0x38bf23);})[_0x2bb803(0x1f9)](function(_0x1879a8){if(_0x1879a8)return _0x1879a8?{'count':_0x2a8574,'rows':_0x1879a8}:null;})[_0x2bb803(0x1f9)](respondWithResult(_0x407038,null))[_0x2bb803(0x1d5)](handleError(_0x407038,null));}; \ No newline at end of file +const a46_0x4243=['update','params','length','../../components/parsers/qs','filters','Condition','filter','intersection','count','create','map','json','rawAttributes','ids','api','sequelize','status','limit','order','omit','Automation','set','includeAll','sort','addActions','model','findOne','addConditions','keys','getActions','pick','type','Action','end','VIRTUAL','like','offset','sendStatus','options','catch','key','../../mysqldb','send','then','fieldName','where','merge','findAll','lodash','fields','getConditions','undefined','stack','../../config/logger','name','attributes','destroy','nolimit','Content-Range','query','body'];(function(_0x44d8fc,_0x452c98){const _0x424373=function(_0x29b818){while(--_0x29b818){_0x44d8fc['push'](_0x44d8fc['shift']());}};_0x424373(++_0x452c98);}(a46_0x4243,0x71));const a46_0x29b8=function(_0x44d8fc,_0x452c98){_0x44d8fc=_0x44d8fc-0x11c;let _0x424373=a46_0x4243[_0x44d8fc];return _0x424373;};const a46_0x28fb4f=a46_0x29b8;'use strict';const _=require(a46_0x28fb4f(0x155)),qs=require(a46_0x28fb4f(0x128)),logger=require(a46_0x28fb4f(0x11d))(a46_0x28fb4f(0x133)),{db}=require(a46_0x28fb4f(0x14e)),{Op}=require(a46_0x28fb4f(0x134));function respondWithResult(_0x1d130e,_0x2368bb){return _0x2368bb=_0x2368bb||0xc8,function(_0x5d6a3f){const _0x348225=a46_0x29b8;if(_0x5d6a3f)return _0x1d130e['status'](_0x2368bb)[_0x348225(0x130)](_0x5d6a3f);};}function respondWithFilteredResult(_0x48ce36,_0x466e1c){return function(_0x21c910){const _0x499340=a46_0x29b8;if(_0x21c910){const _0x33ef4d=_0x21c910['count'],_0x3a228c=_0x466e1c[_0x499340(0x149)];let _0x5971c1=_0x466e1c[_0x499340(0x149)]+_0x466e1c['limit'],_0x4623cf;return _0x5971c1>=_0x33ef4d?(_0x5971c1=_0x33ef4d,_0x4623cf=0xc8):_0x4623cf=0xce,_0x48ce36['status'](_0x4623cf),_0x48ce36[_0x499340(0x13a)](_0x499340(0x122),_0x3a228c+'-'+_0x5971c1+'/'+_0x33ef4d)[_0x499340(0x130)](_0x21c910);}return null;};}function saveUpdates(_0x974257){return function(_0x11e893){if(_0x11e893)return _0x11e893['update'](_0x974257)['then'](function(_0x2781fe){return _0x2781fe;});return null;};}function removeEntity(_0x54cb28){return function(_0x23c29c){const _0x4e405f=a46_0x29b8;if(_0x23c29c)return _0x23c29c[_0x4e405f(0x120)]()[_0x4e405f(0x150)](function(){const _0x31c2bc=_0x4e405f;_0x54cb28[_0x31c2bc(0x135)](0xcc)[_0x31c2bc(0x146)]();});};}function handleEntityNotFound(_0x4f11a1){return function(_0x4e70e2){const _0x3358a0=a46_0x29b8;return!_0x4e70e2&&_0x4f11a1[_0x3358a0(0x14a)](0x194),_0x4e70e2;};}function handleError(_0x293d8d,_0x260462){return _0x260462=_0x260462||0x1f4,function(_0x446571){const _0x53c453=a46_0x29b8;logger['error'](_0x446571[_0x53c453(0x11c)]),_0x446571['name']&&delete _0x446571[_0x53c453(0x11e)],_0x293d8d[_0x53c453(0x135)](_0x260462)[_0x53c453(0x14f)](_0x446571);};}exports['index']=function(_0x3632e7,_0x1ff269){const _0xcd19e=a46_0x28fb4f;let _0x32ff94={};const _0x1e1508={},_0x4304e4={'count':0x0,'rows':[]},_0x9b99ee=_[_0xcd19e(0x12f)](db[_0xcd19e(0x139)][_0xcd19e(0x131)],function(_0x382309){const _0x532908=_0xcd19e;return{'name':_0x382309[_0x532908(0x151)],'type':_0x382309[_0x532908(0x144)][_0x532908(0x14d)]};});_0x1e1508[_0xcd19e(0x13e)]=_['map'](_0x9b99ee,_0xcd19e(0x11e)),_0x1e1508[_0xcd19e(0x123)]=_[_0xcd19e(0x141)](_0x3632e7['query']),_0x1e1508[_0xcd19e(0x129)]=_[_0xcd19e(0x12c)](_0x1e1508[_0xcd19e(0x13e)],_0x1e1508[_0xcd19e(0x123)]),_0x32ff94[_0xcd19e(0x11f)]=_[_0xcd19e(0x12c)](_0x1e1508[_0xcd19e(0x13e)],qs[_0xcd19e(0x156)](_0x3632e7['query']['fields'])),_0x32ff94[_0xcd19e(0x11f)]=_0x32ff94['attributes'][_0xcd19e(0x127)]?_0x32ff94[_0xcd19e(0x11f)]:_0x1e1508[_0xcd19e(0x13e)];typeof _0x3632e7[_0xcd19e(0x123)][_0xcd19e(0x121)]===_0xcd19e(0x158)&&(_0x32ff94['limit']=qs['limit'](_0x3632e7['query'][_0xcd19e(0x136)]),_0x32ff94['offset']=qs[_0xcd19e(0x149)](_0x3632e7[_0xcd19e(0x123)]['offset']));_0x32ff94[_0xcd19e(0x137)]=qs['sort'](_0x3632e7[_0xcd19e(0x123)][_0xcd19e(0x13c)]),_0x32ff94[_0xcd19e(0x152)]=qs['filters'](_[_0xcd19e(0x143)](_0x3632e7[_0xcd19e(0x123)],_0x1e1508[_0xcd19e(0x129)]),_0x9b99ee);_0x3632e7[_0xcd19e(0x123)][_0xcd19e(0x12b)]&&(_0x32ff94[_0xcd19e(0x152)]=_[_0xcd19e(0x153)](_0x32ff94[_0xcd19e(0x152)],{[Op['or']]:_[_0xcd19e(0x12f)](_0x9b99ee,function(_0x5391ab){const _0x25f98d=_0xcd19e;if(_0x5391ab[_0x25f98d(0x144)]!==_0x25f98d(0x147)){const _0x76ec62={};return _0x76ec62[_0x5391ab['name']]={[Op[_0x25f98d(0x148)]]:'%'+_0x3632e7[_0x25f98d(0x123)][_0x25f98d(0x12b)]+'%'},_0x76ec62;}})}));_0x32ff94=_[_0xcd19e(0x153)]({},_0x32ff94,_0x3632e7[_0xcd19e(0x14b)]);const _0x2c9f3f={'where':_0x32ff94['where']};return db[_0xcd19e(0x139)][_0xcd19e(0x12d)](_0x2c9f3f)[_0xcd19e(0x150)](function(_0x4df4e6){const _0x152caf=_0xcd19e;return _0x4304e4[_0x152caf(0x12d)]=_0x4df4e6,_0x3632e7[_0x152caf(0x123)][_0x152caf(0x13b)]&&(_0x32ff94['include']=[{'all':!![]}]),db['Automation'][_0x152caf(0x154)](_0x32ff94);})[_0xcd19e(0x150)](function(_0x2a76f6){return _0x4304e4['rows']=_0x2a76f6,_0x4304e4;})['then'](respondWithFilteredResult(_0x1ff269,_0x32ff94))[_0xcd19e(0x14c)](handleError(_0x1ff269,null));},exports['show']=function(_0x31a117,_0x39c231){const _0x135926=a46_0x28fb4f;let _0x41f97b={'raw':![],'where':{'id':_0x31a117['params']['id']}};const _0x488f2d={};return _0x488f2d[_0x135926(0x13e)]=_[_0x135926(0x141)](db[_0x135926(0x139)][_0x135926(0x131)]),_0x488f2d['query']=_[_0x135926(0x141)](_0x31a117[_0x135926(0x123)]),_0x488f2d[_0x135926(0x129)]=_['intersection'](_0x488f2d['model'],_0x488f2d['query']),_0x41f97b[_0x135926(0x11f)]=_[_0x135926(0x12c)](_0x488f2d[_0x135926(0x13e)],qs[_0x135926(0x156)](_0x31a117['query'][_0x135926(0x156)])),_0x41f97b[_0x135926(0x11f)]=_0x41f97b['attributes'][_0x135926(0x127)]?_0x41f97b[_0x135926(0x11f)]:_0x488f2d[_0x135926(0x13e)],_0x31a117[_0x135926(0x123)][_0x135926(0x13b)]&&(_0x41f97b['include']=[{'all':!![]}]),_0x41f97b=_[_0x135926(0x153)]({},_0x41f97b,_0x31a117['options']),db[_0x135926(0x139)]['findOne'](_0x41f97b)[_0x135926(0x150)](handleEntityNotFound(_0x39c231,null))[_0x135926(0x150)](respondWithResult(_0x39c231,null))[_0x135926(0x14c)](handleError(_0x39c231,null));},exports[a46_0x28fb4f(0x12e)]=function(_0x381bc1,_0xca0103){const _0x1eeeab=a46_0x28fb4f;return db[_0x1eeeab(0x139)]['create'](_0x381bc1[_0x1eeeab(0x124)],{})[_0x1eeeab(0x150)](respondWithResult(_0xca0103,0xc9))[_0x1eeeab(0x14c)](handleError(_0xca0103,null));},exports[a46_0x28fb4f(0x125)]=function(_0x470dea,_0x526059){const _0x4dbf6a=a46_0x28fb4f;return _0x470dea[_0x4dbf6a(0x124)]['id']&&delete _0x470dea[_0x4dbf6a(0x124)]['id'],db[_0x4dbf6a(0x139)][_0x4dbf6a(0x13f)]({'where':{'id':_0x470dea[_0x4dbf6a(0x126)]['id']}})['then'](handleEntityNotFound(_0x526059,null))[_0x4dbf6a(0x150)](saveUpdates(_0x470dea['body'],null))['then'](respondWithResult(_0x526059,null))['catch'](handleError(_0x526059,null));},exports['destroy']=function(_0x520a0f,_0x20e32b){const _0x20a62a=a46_0x28fb4f;return db[_0x20a62a(0x139)][_0x20a62a(0x13f)]({'where':{'id':_0x520a0f[_0x20a62a(0x126)]['id']}})[_0x20a62a(0x150)](handleEntityNotFound(_0x20e32b,null))[_0x20a62a(0x150)](removeEntity(_0x20e32b,null))[_0x20a62a(0x14c)](handleError(_0x20e32b,null));},exports[a46_0x28fb4f(0x140)]=function(_0x47128b,_0x2befd5){const _0x327621=a46_0x28fb4f;return db['Condition'][_0x327621(0x13f)]({'where':{'id':_0x47128b[_0x327621(0x126)]['id']}})[_0x327621(0x150)](function(_0x1400d4){const _0x3caea5=_0x327621;if(_0x1400d4)return _0x1400d4[_0x3caea5(0x140)](_0x47128b[_0x3caea5(0x124)]['ids'],{'through':_[_0x3caea5(0x138)](_0x47128b[_0x3caea5(0x124)],[_0x3caea5(0x132),'id'])});})[_0x327621(0x150)](respondWithResult(_0x2befd5,null))[_0x327621(0x14c)](handleError(_0x2befd5,null));},exports[a46_0x28fb4f(0x157)]=function(_0x4d80d7,_0x5985e2){const _0x54051a=a46_0x28fb4f;let _0xaa93a1={};const _0xbfe2ed={};let _0x1761db,_0x4ee98a;return db[_0x54051a(0x139)][_0x54051a(0x13f)]({'where':{'id':_0x4d80d7[_0x54051a(0x126)]['id']}})[_0x54051a(0x150)](handleEntityNotFound(_0x5985e2,null))[_0x54051a(0x150)](function(_0x12ef5f){const _0x2abf2b=_0x54051a;if(_0x12ef5f)return _0x1761db=_0x12ef5f,_0xbfe2ed[_0x2abf2b(0x13e)]=_[_0x2abf2b(0x141)](db[_0x2abf2b(0x12a)][_0x2abf2b(0x131)]),_0xbfe2ed[_0x2abf2b(0x123)]=_[_0x2abf2b(0x141)](_0x4d80d7['query']),_0xbfe2ed['filters']=_[_0x2abf2b(0x12c)](_0xbfe2ed[_0x2abf2b(0x13e)],_0xbfe2ed['query']),_0xaa93a1[_0x2abf2b(0x11f)]=_[_0x2abf2b(0x12c)](_0xbfe2ed['model'],qs[_0x2abf2b(0x156)](_0x4d80d7[_0x2abf2b(0x123)][_0x2abf2b(0x156)])),_0xaa93a1[_0x2abf2b(0x11f)]=_0xaa93a1[_0x2abf2b(0x11f)][_0x2abf2b(0x127)]?_0xaa93a1[_0x2abf2b(0x11f)]:_0xbfe2ed['model'],_0xaa93a1[_0x2abf2b(0x137)]=qs[_0x2abf2b(0x13c)](_0x4d80d7[_0x2abf2b(0x123)]['sort']),_0xaa93a1[_0x2abf2b(0x152)]=qs[_0x2abf2b(0x129)](_[_0x2abf2b(0x143)](_0x4d80d7[_0x2abf2b(0x123)],_0xbfe2ed[_0x2abf2b(0x129)])),_0x4d80d7['query'][_0x2abf2b(0x12b)]&&(_0xaa93a1[_0x2abf2b(0x152)]=_[_0x2abf2b(0x153)](_0xaa93a1[_0x2abf2b(0x152)],{[Op['or']]:_[_0x2abf2b(0x12f)](_0xaa93a1['attributes'],function(_0xcb90b1){const _0x36a207=_0x2abf2b,_0x1cf680={};return _0x1cf680[_0xcb90b1]={[Op[_0x36a207(0x148)]]:'%'+_0x4d80d7[_0x36a207(0x123)]['filter']+'%'},_0x1cf680;})})),_0xaa93a1=_[_0x2abf2b(0x153)]({},_0xaa93a1,_0x4d80d7['options']),_0x1761db[_0x2abf2b(0x157)](_0xaa93a1);})[_0x54051a(0x150)](function(_0x3b386b){const _0x26a193=_0x54051a;if(_0x3b386b)return _0x4ee98a=_0x3b386b[_0x26a193(0x127)],typeof _0x4d80d7[_0x26a193(0x123)]['nolimit']==='undefined'&&(_0xaa93a1[_0x26a193(0x136)]=qs['limit'](_0x4d80d7['query'][_0x26a193(0x136)]),_0xaa93a1[_0x26a193(0x149)]=qs[_0x26a193(0x149)](_0x4d80d7[_0x26a193(0x123)]['offset'])),_0x1761db[_0x26a193(0x157)](_0xaa93a1);})[_0x54051a(0x150)](function(_0x27aabb){if(_0x27aabb)return _0x27aabb?{'count':_0x4ee98a,'rows':_0x27aabb}:null;})[_0x54051a(0x150)](respondWithResult(_0x5985e2,null))[_0x54051a(0x14c)](handleError(_0x5985e2,null));},exports[a46_0x28fb4f(0x13d)]=function(_0x46709f,_0x2b4682){const _0x4bce32=a46_0x28fb4f;return db['Action'][_0x4bce32(0x13f)]({'where':{'id':_0x46709f['params']['id']}})[_0x4bce32(0x150)](function(_0xb915ae){const _0x5bacf9=_0x4bce32;if(_0xb915ae)return _0xb915ae[_0x5bacf9(0x13d)](_0x46709f[_0x5bacf9(0x124)]['ids'],{'through':_[_0x5bacf9(0x138)](_0x46709f[_0x5bacf9(0x124)],[_0x5bacf9(0x132),'id'])});})['then'](respondWithResult(_0x2b4682,null))[_0x4bce32(0x14c)](handleError(_0x2b4682,null));},exports[a46_0x28fb4f(0x142)]=function(_0x70d93c,_0x14d2a0){const _0x31d744=a46_0x28fb4f;let _0x3af5b7={};const _0x48c9fd={};let _0x2afb85,_0x583dea;return db['Automation']['findOne']({'where':{'id':_0x70d93c[_0x31d744(0x126)]['id']}})[_0x31d744(0x150)](handleEntityNotFound(_0x14d2a0,null))[_0x31d744(0x150)](function(_0x3e43b4){const _0x3bffd4=_0x31d744;if(_0x3e43b4)return _0x2afb85=_0x3e43b4,_0x48c9fd[_0x3bffd4(0x13e)]=_['keys'](db[_0x3bffd4(0x145)][_0x3bffd4(0x131)]),_0x48c9fd[_0x3bffd4(0x123)]=_[_0x3bffd4(0x141)](_0x70d93c[_0x3bffd4(0x123)]),_0x48c9fd[_0x3bffd4(0x129)]=_[_0x3bffd4(0x12c)](_0x48c9fd['model'],_0x48c9fd[_0x3bffd4(0x123)]),_0x3af5b7[_0x3bffd4(0x11f)]=_[_0x3bffd4(0x12c)](_0x48c9fd[_0x3bffd4(0x13e)],qs['fields'](_0x70d93c[_0x3bffd4(0x123)][_0x3bffd4(0x156)])),_0x3af5b7[_0x3bffd4(0x11f)]=_0x3af5b7[_0x3bffd4(0x11f)]['length']?_0x3af5b7['attributes']:_0x48c9fd[_0x3bffd4(0x13e)],_0x3af5b7[_0x3bffd4(0x137)]=qs[_0x3bffd4(0x13c)](_0x70d93c[_0x3bffd4(0x123)]['sort']),_0x3af5b7[_0x3bffd4(0x152)]=qs[_0x3bffd4(0x129)](_['pick'](_0x70d93c[_0x3bffd4(0x123)],_0x48c9fd[_0x3bffd4(0x129)])),_0x70d93c[_0x3bffd4(0x123)][_0x3bffd4(0x12b)]&&(_0x3af5b7[_0x3bffd4(0x152)]=_[_0x3bffd4(0x153)](_0x3af5b7[_0x3bffd4(0x152)],{[Op['or']]:_[_0x3bffd4(0x12f)](_0x3af5b7[_0x3bffd4(0x11f)],function(_0x29e9b0){const _0x5e45a6=_0x3bffd4,_0x3aa128={};return _0x3aa128[_0x29e9b0]={[Op[_0x5e45a6(0x148)]]:'%'+_0x70d93c[_0x5e45a6(0x123)][_0x5e45a6(0x12b)]+'%'},_0x3aa128;})})),_0x3af5b7=_['merge']({},_0x3af5b7,_0x70d93c['options']),_0x2afb85[_0x3bffd4(0x142)](_0x3af5b7);})[_0x31d744(0x150)](function(_0x2d0c20){const _0x30c427=_0x31d744;if(_0x2d0c20)return _0x583dea=_0x2d0c20['length'],typeof _0x70d93c[_0x30c427(0x123)]['nolimit']===_0x30c427(0x158)&&(_0x3af5b7['limit']=qs[_0x30c427(0x136)](_0x70d93c[_0x30c427(0x123)][_0x30c427(0x136)]),_0x3af5b7[_0x30c427(0x149)]=qs[_0x30c427(0x149)](_0x70d93c[_0x30c427(0x123)][_0x30c427(0x149)])),_0x2afb85['getActions'](_0x3af5b7);})['then'](function(_0x2f0acd){if(_0x2f0acd)return _0x2f0acd?{'count':_0x583dea,'rows':_0x2f0acd}:null;})[_0x31d744(0x150)](respondWithResult(_0x14d2a0,null))[_0x31d744(0x14c)](handleError(_0x14d2a0,null));}; \ No newline at end of file diff --git a/server/api/automation/automation.model.js b/server/api/automation/automation.model.js index 295133e..e31c056 100644 --- a/server/api/automation/automation.model.js +++ b/server/api/automation/automation.model.js @@ -1 +1 @@ -const a47_0xb618=['init','./automation.attributes','./automation.options','exports','Automation','function'];(function(_0xc98161,_0x38dc86){const _0xb61851=function(_0x2dfc6d){while(--_0x2dfc6d){_0xc98161['push'](_0xc98161['shift']());}};_0xb61851(++_0x38dc86);}(a47_0xb618,0x1de));const a47_0x2dfc=function(_0xc98161,_0x38dc86){_0xc98161=_0xc98161-0x1dc;let _0xb61851=a47_0xb618[_0xc98161];return _0xb61851;};const a47_0x5b33aa=a47_0x2dfc;'use strict';const {Model}=require('sequelize'),{attributes}=require(a47_0x5b33aa(0x1df)),{options}=require(a47_0x5b33aa(0x1e0));class Automation extends Model{}function init(_0x1f611c,_0x4969ea){const _0xb9ba31=a47_0x5b33aa,_0x343a29=options(_0x1f611c),_0x44ade7=typeof _0x4969ea===_0xb9ba31(0x1dd)?_0x4969ea(_0x343a29):_0x343a29;return Automation['init'](attributes,_0x44ade7),Automation;}module['exports'][a47_0x5b33aa(0x1dc)]=Automation,module[a47_0x5b33aa(0x1e1)][a47_0x5b33aa(0x1de)]=init; \ No newline at end of file +const a47_0x4701=['function','exports','init','sequelize','./automation.attributes','./automation.options'];(function(_0x2029ce,_0x48b4e1){const _0x4701e9=function(_0x20039a){while(--_0x20039a){_0x2029ce['push'](_0x2029ce['shift']());}};_0x4701e9(++_0x48b4e1);}(a47_0x4701,0x81));const a47_0x2003=function(_0x2029ce,_0x48b4e1){_0x2029ce=_0x2029ce-0x146;let _0x4701e9=a47_0x4701[_0x2029ce];return _0x4701e9;};const a47_0x42a186=a47_0x2003;'use strict';const {Model}=require(a47_0x42a186(0x146)),{attributes}=require(a47_0x42a186(0x147)),{options}=require(a47_0x42a186(0x148));class Automation extends Model{}function init(_0x334c03,_0x3e394f){const _0x34386c=a47_0x42a186,_0x4ff39e=options(_0x334c03),_0x40549d=typeof _0x3e394f===_0x34386c(0x149)?_0x3e394f(_0x4ff39e):_0x4ff39e;return Automation[_0x34386c(0x14b)](attributes,_0x40549d),Automation;}module['exports']['Automation']=Automation,module[a47_0x42a186(0x14a)][a47_0x42a186(0x14b)]=init; \ No newline at end of file diff --git a/server/api/automation/automation.options.js b/server/api/automation/automation.options.js index 138946c..03bb846 100644 --- a/server/api/automation/automation.options.js +++ b/server/api/automation/automation.options.js @@ -1 +1 @@ -var a48_0x5cba=['tools_automations','exports','options'];(function(_0x3673af,_0x541c5c){var _0x5cba61=function(_0x5e322e){while(--_0x5e322e){_0x3673af['push'](_0x3673af['shift']());}};_0x5cba61(++_0x541c5c);}(a48_0x5cba,0x78));var a48_0x5e32=function(_0x3673af,_0x541c5c){_0x3673af=_0x3673af-0x77;var _0x5cba61=a48_0x5cba[_0x3673af];return _0x5cba61;};var a48_0x1e8373=a48_0x5e32;function options(_0x3863ba){var _0xc3f696=a48_0x5e32;return{'sequelize':_0x3863ba,'tableName':_0xc3f696(0x77),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a48_0x1e8373(0x78)][a48_0x1e8373(0x79)]=options; \ No newline at end of file +var a48_0x1580=['tools_automations','exports'];(function(_0x1f229c,_0x37f874){var _0x158015=function(_0x165a6d){while(--_0x165a6d){_0x1f229c['push'](_0x1f229c['shift']());}};_0x158015(++_0x37f874);}(a48_0x1580,0x176));var a48_0x165a=function(_0x1f229c,_0x37f874){_0x1f229c=_0x1f229c-0x99;var _0x158015=a48_0x1580[_0x1f229c];return _0x158015;};var a48_0x1e71a9=a48_0x165a;function options(_0x1f5714){var _0x29e655=a48_0x165a;return{'sequelize':_0x1f5714,'tableName':_0x29e655(0x99),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a48_0x1e71a9(0x9a)]['options']=options; \ No newline at end of file diff --git a/server/api/automation/index.js b/server/api/automation/index.js index ecefec9..0433079 100644 --- a/server/api/automation/index.js +++ b/server/api/automation/index.js @@ -1 +1 @@ -const a49_0x4450=['getConditions','addConditions','exports','/:id/conditions','delete','get','index','isAuthenticated','Router','/:id/actions','show','destroy','put','getActions','/:id','post'];(function(_0x4ed122,_0x4cc5ec){const _0x445030=function(_0x5d6eb2){while(--_0x5d6eb2){_0x4ed122['push'](_0x4ed122['shift']());}};_0x445030(++_0x4cc5ec);}(a49_0x4450,0x6e));const a49_0x5d6e=function(_0x4ed122,_0x4cc5ec){_0x4ed122=_0x4ed122-0x95;let _0x445030=a49_0x4450[_0x4ed122];return _0x445030;};const a49_0x57efc5=a49_0x5d6e;'use strict';const express=require('express'),router=express[a49_0x57efc5(0x9f)](),auth=require('../../components/auth/service'),controller=require('./automation.controller');router['get']('/',auth[a49_0x57efc5(0x9e)](),controller[a49_0x57efc5(0x9d)]),router['get'](a49_0x57efc5(0x95),auth[a49_0x57efc5(0x9e)](),controller[a49_0x57efc5(0xa1)]),router['get'](a49_0x57efc5(0x9a),auth['isAuthenticated'](),controller[a49_0x57efc5(0x97)]),router[a49_0x57efc5(0x9c)](a49_0x57efc5(0xa0),auth[a49_0x57efc5(0x9e)](),controller[a49_0x57efc5(0xa4)]),router[a49_0x57efc5(0x96)]('/',auth[a49_0x57efc5(0x9e)](),controller['create']),router[a49_0x57efc5(0x96)](a49_0x57efc5(0x9a),auth[a49_0x57efc5(0x9e)](),controller[a49_0x57efc5(0x98)]),router[a49_0x57efc5(0x96)](a49_0x57efc5(0xa0),auth[a49_0x57efc5(0x9e)](),controller['addActions']),router[a49_0x57efc5(0xa3)](a49_0x57efc5(0x95),auth[a49_0x57efc5(0x9e)](),controller['update']),router[a49_0x57efc5(0x9b)](a49_0x57efc5(0x95),auth['isAuthenticated'](),controller[a49_0x57efc5(0xa2)]),module[a49_0x57efc5(0x99)]=router; \ No newline at end of file +const a49_0x3e87=['show','Router','/:id/conditions','get','../../components/auth/service','addActions','getConditions','delete','addConditions','/:id/actions','update','index','./automation.controller','getActions','isAuthenticated','/:id','post','destroy','create'];(function(_0x5174d9,_0x36d80e){const _0x3e8799=function(_0x2b8873){while(--_0x2b8873){_0x5174d9['push'](_0x5174d9['shift']());}};_0x3e8799(++_0x36d80e);}(a49_0x3e87,0x183));const a49_0x2b88=function(_0x5174d9,_0x36d80e){_0x5174d9=_0x5174d9-0x86;let _0x3e8799=a49_0x3e87[_0x5174d9];return _0x3e8799;};const a49_0x3f7b14=a49_0x2b88;'use strict';const express=require('express'),router=express[a49_0x3f7b14(0x93)](),auth=require(a49_0x3f7b14(0x96)),controller=require(a49_0x3f7b14(0x8b));router['get']('/',auth[a49_0x3f7b14(0x8d)](),controller[a49_0x3f7b14(0x8a)]),router[a49_0x3f7b14(0x95)](a49_0x3f7b14(0x8e),auth[a49_0x3f7b14(0x8d)](),controller[a49_0x3f7b14(0x92)]),router[a49_0x3f7b14(0x95)](a49_0x3f7b14(0x94),auth[a49_0x3f7b14(0x8d)](),controller[a49_0x3f7b14(0x98)]),router[a49_0x3f7b14(0x95)](a49_0x3f7b14(0x88),auth[a49_0x3f7b14(0x8d)](),controller[a49_0x3f7b14(0x8c)]),router[a49_0x3f7b14(0x8f)]('/',auth[a49_0x3f7b14(0x8d)](),controller[a49_0x3f7b14(0x91)]),router[a49_0x3f7b14(0x8f)]('/:id/conditions',auth[a49_0x3f7b14(0x8d)](),controller[a49_0x3f7b14(0x87)]),router[a49_0x3f7b14(0x8f)](a49_0x3f7b14(0x88),auth['isAuthenticated'](),controller[a49_0x3f7b14(0x97)]),router['put'](a49_0x3f7b14(0x8e),auth['isAuthenticated'](),controller[a49_0x3f7b14(0x89)]),router[a49_0x3f7b14(0x86)](a49_0x3f7b14(0x8e),auth[a49_0x3f7b14(0x8d)](),controller[a49_0x3f7b14(0x90)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/campaign/campaign.attributes.js b/server/api/campaign/campaign.attributes.js index a7e33e1..9a96539 100644 --- a/server/api/campaign/campaign.attributes.js +++ b/server/api/campaign/campaign.attributes.js @@ -1 +1 @@ -const a50_0x3429=['#AMD\x20After\x20Greeting\x20Silence','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','attributes','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','Max\x20200\x20calls.','INTEGER','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','DESC','sequelize','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#NoAnswer\x20Retry\x20(min:1,\x20max:999)','Cut\x20Digit\x20(min:1,\x20max:15)','#AMD\x20Between\x20Words\x20Silence','#AMD\x20Min\x20Word\x20Length','#Machine\x20Retry\x20(min:1,\x20max:999)','Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AMD\x20Greeting','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','BOOLEAN','#AMD\x20Total\x20Analysis\x20Time','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','exports','ivr','Active/Disactive\x20AMD','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Busy\x20Retry\x20(min:1,\x20max:999)','onlyIfOpen','Active/Disactive\x20Campaign','ASC','#Drop\x20Retry\x20(min:1,\x20max:999)','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','ENUM','never','STRING','UNSIGNED','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AMD\x20Maximum\x20Word\x20Length','always','#AgentReject\x20Retry\x20(min:1,\x20max:999)'];(function(_0x42f633,_0x136d17){const _0x342910=function(_0x2aebc4){while(--_0x2aebc4){_0x42f633['push'](_0x42f633['shift']());}};_0x342910(++_0x136d17);}(a50_0x3429,0xc7));const a50_0x2aeb=function(_0x42f633,_0x136d17){_0x42f633=_0x42f633-0x16d;let _0x342910=a50_0x3429[_0x42f633];return _0x342910;};const a50_0x393e12=a50_0x2aeb;'use strict';const {DataTypes}=require(a50_0x393e12(0x17b)),attributes={'name':{'type':DataTypes[a50_0x393e12(0x16d)],'unique':'name','allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'type':{'type':DataTypes[a50_0x393e12(0x194)](a50_0x393e12(0x18a)),'allowNull':![],'defaultValue':a50_0x393e12(0x18a)},'description':{'type':DataTypes[a50_0x393e12(0x16d)]},'active':{'type':DataTypes[a50_0x393e12(0x186)],'defaultValue':0x0,'comment':a50_0x393e12(0x190)},'limitCalls':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x4})[a50_0x393e12(0x16e)],'defaultValue':0x1e,'validate':{'min':0x1,'max':0xc8},'comment':a50_0x393e12(0x177)},'dialOriginateCallerIdName':{'type':DataTypes['STRING']},'dialOriginateCallerIdNumber':{'type':DataTypes[a50_0x393e12(0x16d)]},'dialOriginateTimeout':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x3})[a50_0x393e12(0x16e)],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x393e12(0x176)},'dialCongestionMaxRetry':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x3})[a50_0x393e12(0x16e)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Congestion\x20Retry\x20(min:1,\x20max:999)'},'dialCongestionRetryFrequency':{'type':DataTypes['INTEGER']({'length':0x5})['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x393e12(0x17c)},'dialBusyMaxRetry':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x3})['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x393e12(0x18e)},'dialBusyRetryFrequency':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x5})[a50_0x393e12(0x16e)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x393e12(0x183)},'dialNoAnswerMaxRetry':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x3})[a50_0x393e12(0x16e)],'defaultValue':0x3,'comment':a50_0x393e12(0x17e)},'dialNoAnswerRetryFrequency':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x5})[a50_0x393e12(0x16e)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x393e12(0x185)},'dialGlobalMaxRetry':{'type':DataTypes['INTEGER']({'length':0x3})['UNSIGNED'],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':a50_0x393e12(0x188)},'dialTimezone':{'type':DataTypes[a50_0x393e12(0x16d)],'defaultValue':null},'dialGlobalInterval':{'type':DataTypes[a50_0x393e12(0x16d)],'defaultValue':'07:00-22:00,*,*,*'},'dialCheckDuplicateType':{'type':DataTypes['ENUM'](a50_0x393e12(0x171),a50_0x393e12(0x195),a50_0x393e12(0x18f)),'defaultValue':a50_0x393e12(0x171)},'dialAMDActive':{'type':DataTypes[a50_0x393e12(0x186)],'defaultValue':0x0,'comment':a50_0x393e12(0x18b)},'dialAMDInitialSilence':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x9})[a50_0x393e12(0x16e)],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':'#AMD\x20Initial\x20Silence'},'dialAMDGreeting':{'type':DataTypes['INTEGER']({'length':0x9})[a50_0x393e12(0x16e)],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':a50_0x393e12(0x184)},'dialAMDAfterGreetingSilence':{'type':DataTypes['INTEGER']({'length':0x9})[a50_0x393e12(0x16e)],'defaultValue':0x320,'validate':{'min':0x0},'comment':a50_0x393e12(0x173)},'dialAMDTotalAnalysisTime':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x9})['UNSIGNED'],'defaultValue':0x1388,'validate':{'min':0x0},'comment':a50_0x393e12(0x187)},'dialAMDMinWordLength':{'type':DataTypes['INTEGER']({'length':0x9})[a50_0x393e12(0x16e)],'defaultValue':0x64,'validate':{'min':0x0},'comment':a50_0x393e12(0x181)},'dialAMDBetweenWordsSilence':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x9})['UNSIGNED'],'defaultValue':0x32,'validate':{'min':0x0},'comment':a50_0x393e12(0x180)},'dialAMDMaximumNumberOfWords':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x9})['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'},'dialAMDSilenceThreshold':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x5})[a50_0x393e12(0x16e)],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':a50_0x393e12(0x174)},'dialAMDMaximumWordLength':{'type':DataTypes['INTEGER']({'length':0x9})[a50_0x393e12(0x16e)],'defaultValue':0x1388,'validate':{'min':0x0},'comment':a50_0x393e12(0x170)},'dialOrderByScheduledAt':{'type':DataTypes[a50_0x393e12(0x194)](a50_0x393e12(0x17a),a50_0x393e12(0x191)),'defaultValue':a50_0x393e12(0x17a)},'dialPrefix':{'type':DataTypes[a50_0x393e12(0x16d)],'defaultValue':null},'dialRandomLastDigitCallerIdNumber':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x3})[a50_0x393e12(0x16e)],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':'Random\x20Last\x20Digit\x20(min:1,\x20max:15)'},'dialCutDigit':{'type':DataTypes['INTEGER']({'length':0x3})[a50_0x393e12(0x16e)],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':a50_0x393e12(0x17f)},'dialNoSuchNumberMaxRetry':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x3})[a50_0x393e12(0x16e)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x393e12(0x179)},'dialNoSuchNumberRetryFrequency':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x5})[a50_0x393e12(0x16e)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x393e12(0x18d)},'dialDropMaxRetry':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x3})[a50_0x393e12(0x16e)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x393e12(0x192)},'dialDropRetryFrequency':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x5})['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x393e12(0x17d)},'dialAbandonedMaxRetry':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x3})[a50_0x393e12(0x16e)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Abandoned\x20Retry\x20(min:1,\x20max:999)'},'dialAbandonedRetryFrequency':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x5})['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x393e12(0x16f)},'dialMachineMaxRetry':{'type':DataTypes['INTEGER']({'length':0x3})[a50_0x393e12(0x16e)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x393e12(0x182)},'dialMachineRetryFrequency':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x5})[a50_0x393e12(0x16e)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x393e12(0x193)},'dialAgentRejectMaxRetry':{'type':DataTypes[a50_0x393e12(0x178)]({'length':0x3})[a50_0x393e12(0x16e)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x393e12(0x172)},'dialAgentRejectRetryFrequency':{'type':DataTypes['INTEGER']({'length':0x5})[a50_0x393e12(0x16e)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x393e12(0x18c)}};module[a50_0x393e12(0x189)][a50_0x393e12(0x175)]=attributes; \ No newline at end of file +const a50_0x1278=['Active/Disactive\x20AMD','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Abandoned\x20Retry\x20(min:1,\x20max:999)','Cut\x20Digit\x20(min:1,\x20max:15)','#AMD\x20Maximum\x20Number\x20Of\x20Words','#AgentReject\x20Retry\x20(min:1,\x20max:999)','UNSIGNED','07:00-22:00,*,*,*','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','always','#Machine\x20Retry\x20(min:1,\x20max:999)','ivr','never','BOOLEAN','exports','onlyIfOpen','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','DESC','#AMD\x20Maximum\x20Word\x20Length','#AMD\x20After\x20Greeting\x20Silence','INTEGER','#NoAnswer\x20Retry\x20(min:1,\x20max:999)','name','attributes','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Drop\x20Retry\x20(min:1,\x20max:999)','ASC','Max\x20200\x20calls.','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AMD\x20Greeting','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Total\x20Analysis\x20Time','STRING','#AMD\x20Between\x20Words\x20Silence','ENUM','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AMD\x20Min\x20Word\x20Length'];(function(_0x326f6b,_0x1e055c){const _0x127893=function(_0x2a051f){while(--_0x2a051f){_0x326f6b['push'](_0x326f6b['shift']());}};_0x127893(++_0x1e055c);}(a50_0x1278,0x1b7));const a50_0x2a05=function(_0x326f6b,_0x1e055c){_0x326f6b=_0x326f6b-0x73;let _0x127893=a50_0x1278[_0x326f6b];return _0x127893;};const a50_0x51a8ae=a50_0x2a05;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a50_0x51a8ae(0x97)],'unique':a50_0x51a8ae(0x8b),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'type':{'type':DataTypes[a50_0x51a8ae(0x99)](a50_0x51a8ae(0x80)),'allowNull':![],'defaultValue':a50_0x51a8ae(0x80)},'description':{'type':DataTypes[a50_0x51a8ae(0x97)]},'active':{'type':DataTypes[a50_0x51a8ae(0x82)],'defaultValue':0x0,'comment':'Active/Disactive\x20Campaign'},'limitCalls':{'type':DataTypes['INTEGER']({'length':0x4})[a50_0x51a8ae(0x7a)],'defaultValue':0x1e,'validate':{'min':0x1,'max':0xc8},'comment':a50_0x51a8ae(0x91)},'dialOriginateCallerIdName':{'type':DataTypes['STRING']},'dialOriginateCallerIdNumber':{'type':DataTypes[a50_0x51a8ae(0x97)]},'dialOriginateTimeout':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x3})[a50_0x51a8ae(0x7a)],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x51a8ae(0x85)},'dialCongestionMaxRetry':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x3})[a50_0x51a8ae(0x7a)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Congestion\x20Retry\x20(min:1,\x20max:999)'},'dialCongestionRetryFrequency':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x5})[a50_0x51a8ae(0x7a)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x51a8ae(0x94)},'dialBusyMaxRetry':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x3})[a50_0x51a8ae(0x7a)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Busy\x20Retry\x20(min:1,\x20max:999)'},'dialBusyRetryFrequency':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x5})['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialNoAnswerMaxRetry':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x3})[a50_0x51a8ae(0x7a)],'defaultValue':0x3,'comment':a50_0x51a8ae(0x8a)},'dialNoAnswerRetryFrequency':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x5})[a50_0x51a8ae(0x7a)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x51a8ae(0x92)},'dialGlobalMaxRetry':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x3})[a50_0x51a8ae(0x7a)],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':'#Global\x20Max\x20Retry\x20(min:1,\x20max:999)'},'dialTimezone':{'type':DataTypes[a50_0x51a8ae(0x97)],'defaultValue':null},'dialGlobalInterval':{'type':DataTypes[a50_0x51a8ae(0x97)],'defaultValue':a50_0x51a8ae(0x7b)},'dialCheckDuplicateType':{'type':DataTypes[a50_0x51a8ae(0x99)](a50_0x51a8ae(0x7e),a50_0x51a8ae(0x81),a50_0x51a8ae(0x84)),'defaultValue':a50_0x51a8ae(0x7e)},'dialAMDActive':{'type':DataTypes[a50_0x51a8ae(0x82)],'defaultValue':0x0,'comment':a50_0x51a8ae(0x74)},'dialAMDInitialSilence':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x9})[a50_0x51a8ae(0x7a)],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':'#AMD\x20Initial\x20Silence'},'dialAMDGreeting':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x9})[a50_0x51a8ae(0x7a)],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':a50_0x51a8ae(0x93)},'dialAMDAfterGreetingSilence':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x9})['UNSIGNED'],'defaultValue':0x320,'validate':{'min':0x0},'comment':a50_0x51a8ae(0x88)},'dialAMDTotalAnalysisTime':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x9})[a50_0x51a8ae(0x7a)],'defaultValue':0x1388,'validate':{'min':0x0},'comment':a50_0x51a8ae(0x96)},'dialAMDMinWordLength':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x9})['UNSIGNED'],'defaultValue':0x64,'validate':{'min':0x0},'comment':a50_0x51a8ae(0x73)},'dialAMDBetweenWordsSilence':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x9})[a50_0x51a8ae(0x7a)],'defaultValue':0x32,'validate':{'min':0x0},'comment':a50_0x51a8ae(0x98)},'dialAMDMaximumNumberOfWords':{'type':DataTypes['INTEGER']({'length':0x9})[a50_0x51a8ae(0x7a)],'defaultValue':0x3,'validate':{'min':0x0},'comment':a50_0x51a8ae(0x78)},'dialAMDSilenceThreshold':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x5})[a50_0x51a8ae(0x7a)],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':a50_0x51a8ae(0x7c)},'dialAMDMaximumWordLength':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x9})[a50_0x51a8ae(0x7a)],'defaultValue':0x1388,'validate':{'min':0x0},'comment':a50_0x51a8ae(0x87)},'dialOrderByScheduledAt':{'type':DataTypes[a50_0x51a8ae(0x99)](a50_0x51a8ae(0x86),a50_0x51a8ae(0x90)),'defaultValue':a50_0x51a8ae(0x86)},'dialPrefix':{'type':DataTypes[a50_0x51a8ae(0x97)],'defaultValue':null},'dialRandomLastDigitCallerIdNumber':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x3})[a50_0x51a8ae(0x7a)],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':a50_0x51a8ae(0x8d)},'dialCutDigit':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x3})[a50_0x51a8ae(0x7a)],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':a50_0x51a8ae(0x77)},'dialNoSuchNumberMaxRetry':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x3})[a50_0x51a8ae(0x7a)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x51a8ae(0x95)},'dialNoSuchNumberRetryFrequency':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x5})[a50_0x51a8ae(0x7a)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialDropMaxRetry':{'type':DataTypes['INTEGER']({'length':0x3})[a50_0x51a8ae(0x7a)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x51a8ae(0x8f)},'dialDropRetryFrequency':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x5})['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x51a8ae(0x8e)},'dialAbandonedMaxRetry':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x3})[a50_0x51a8ae(0x7a)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x51a8ae(0x76)},'dialAbandonedRetryFrequency':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x5})[a50_0x51a8ae(0x7a)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x51a8ae(0x9a)},'dialMachineMaxRetry':{'type':DataTypes[a50_0x51a8ae(0x89)]({'length':0x3})['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x51a8ae(0x7f)},'dialMachineRetryFrequency':{'type':DataTypes['INTEGER']({'length':0x5})[a50_0x51a8ae(0x7a)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x51a8ae(0x7d)},'dialAgentRejectMaxRetry':{'type':DataTypes['INTEGER']({'length':0x3})['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x51a8ae(0x79)},'dialAgentRejectRetryFrequency':{'type':DataTypes['INTEGER']({'length':0x5})['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x51a8ae(0x75)}};module[a50_0x51a8ae(0x83)][a50_0x51a8ae(0x8c)]=attributes; \ No newline at end of file diff --git a/server/api/campaign/campaign.controller.js b/server/api/campaign/campaign.controller.js index 47bc73f..962fae9 100644 --- a/server/api/campaign/campaign.controller.js +++ b/server/api/campaign/campaign.controller.js @@ -1 +1 @@ -const a51_0xd7b1=['createdAt','destroy','send','addBlackLists','CmListId','Unable\x20to\x20retrieve\x20the\x20current\x20user','cm_hopper_black','CampaignId\x20=\x20?','end','CmHopperBlack','IvrCampaigns','filters','model','field','Content-Range','nolimit','insert','offset','UserProfileResource','updatedAt','intersection','always','dialCheckDuplicateType','onlyIfOpen','api','getHopperBlacks','findOne','includeAll','../../mysqldb','userProfileId','cm_hopper_final','user','cm_hopper','length','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','params','cm_contacts','type','CmHopperFinal','show','rawAttributes','COALESCE(phone,\x27\x27)','sendStatus','update','name','get','like','filter','lodash','autoAssociation','fields','then','phone\x20IS\x20NOT\x20NULL','getHoppers','all','catch','fromQuery','json','create','CmList','NOW()','ids','count','removeLists','map','index','into','sequelize','fieldName','squel','deletedAt\x20IS\x20NULL','role','ListId\x20=\x20?','Campaign','include','addLists','findAll','ListId','UserProfileSection','toString','select','key','body','scheduledAt','omit','CmHopperHistory','undefined','rows','sort','push','limit','error','where','query','pick','VIRTUAL','getHopperFinals','phone\x20NOT\x20IN\x20(?)','options','removeBlackLists','order','keys','merge','COALESCE(calleridnum,\x27\x27)','set','getLists','getBlackLists','CmHopper','ContactId','attributes','status','from','CampaignId','phone'];(function(_0x20fa0e,_0x2c500d){const _0xd7b1d1=function(_0x30511c){while(--_0x30511c){_0x20fa0e['push'](_0x20fa0e['shift']());}};_0xd7b1d1(++_0x2c500d);}(a51_0xd7b1,0x1be));const a51_0x3051=function(_0x20fa0e,_0x2c500d){_0x20fa0e=_0x20fa0e-0x8d;let _0xd7b1d1=a51_0xd7b1[_0x20fa0e];return _0xd7b1d1;};const a51_0x1af30c=a51_0x3051;'use strict';const _=require(a51_0x1af30c(0xc7)),squel=require(a51_0x1af30c(0xdc)),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(a51_0x1af30c(0xaf)),{db}=require(a51_0x1af30c(0xb3)),{Op}=require(a51_0x1af30c(0xda));function respondWithStatusCode(_0x407ae8,_0x3eb787){return _0x3eb787=_0x3eb787||0xcc,function(_0x5dfa0f){const _0x532de9=a51_0x3051;if(_0x5dfa0f)return _0x407ae8[_0x532de9(0xc1)](_0x3eb787);return _0x407ae8[_0x532de9(0x93)](_0x3eb787)[_0x532de9(0x9f)]();};}function respondWithResult(_0x7b88c5,_0x25049c){return _0x25049c=_0x25049c||0xc8,function(_0x59c328){const _0x5d06f8=a51_0x3051;if(_0x59c328)return _0x7b88c5[_0x5d06f8(0x93)](_0x25049c)[_0x5d06f8(0xd0)](_0x59c328);};}function respondWithFilteredResult(_0x361650,_0x5616af){return function(_0x232ebb){const _0x2b48cb=a51_0x3051;if(_0x232ebb){const _0x1abbba=_0x232ebb[_0x2b48cb(0xd5)],_0x1e40c7=_0x5616af[_0x2b48cb(0xa8)];let _0x37bf5d=_0x5616af[_0x2b48cb(0xa8)]+_0x5616af[_0x2b48cb(0xf1)],_0x194fbb;return _0x37bf5d>=_0x1abbba?(_0x37bf5d=_0x1abbba,_0x194fbb=0xc8):_0x194fbb=0xce,_0x361650['status'](_0x194fbb),_0x361650[_0x2b48cb(0x8d)](_0x2b48cb(0xa5),_0x1e40c7+'-'+_0x37bf5d+'/'+_0x1abbba)[_0x2b48cb(0xd0)](_0x232ebb);}return null;};}function saveUpdates(_0x4d9689){return function(_0xf42410){if(_0xf42410)return _0xf42410['update'](_0x4d9689)['then'](function(_0x1c0f84){return _0x1c0f84;});return null;};}function removeEntity(_0x4fdc52){return function(_0x3b6607){const _0x24ac1f=a51_0x3051;if(_0x3b6607)return _0x3b6607[_0x24ac1f(0x98)]()[_0x24ac1f(0xca)](function(){const _0x1043fa=_0x24ac1f,_0xf4440c=_0x3b6607['get']({'plain':!![]}),_0x501336=_0x1043fa(0xa1);return db['UserProfileResource'][_0x1043fa(0x98)]({'where':{'type':_0x501336,'resourceId':_0xf4440c['id']}})[_0x1043fa(0xca)](function(){return _0x3b6607;});})[_0x24ac1f(0xca)](function(){const _0x4777a3=_0x24ac1f;_0x4fdc52[_0x4777a3(0x93)](0xcc)[_0x4777a3(0x9f)]();});};}function handleEntityNotFound(_0x24699e){return function(_0x1325a9){return!_0x1325a9&&_0x24699e['sendStatus'](0x194),_0x1325a9;};}function handleError(_0x4ce265,_0x291c22){return _0x291c22=_0x291c22||0x1f4,function(_0xcdb775){const _0x188937=a51_0x3051;logger[_0x188937(0xf2)](_0xcdb775['stack']),_0xcdb775[_0x188937(0xc3)]&&delete _0xcdb775[_0x188937(0xc3)],_0x4ce265['status'](_0x291c22)[_0x188937(0x99)](_0xcdb775);};}exports[a51_0x1af30c(0xd8)]=function(_0x593e53,_0x1d96a5){const _0x2e1cbd=a51_0x1af30c;let _0x3b4ee1={};const _0x3c8e7d={},_0x59e533={'count':0x0,'rows':[]},_0x59a05d=_[_0x2e1cbd(0xd7)](db['Campaign'][_0x2e1cbd(0xbf)],function(_0x9e0579){const _0x3fcc57=_0x2e1cbd;return{'name':_0x9e0579[_0x3fcc57(0xdb)],'type':_0x9e0579[_0x3fcc57(0xbc)][_0x3fcc57(0xe8)]};});_0x3c8e7d[_0x2e1cbd(0xa3)]=_['map'](_0x59a05d,_0x2e1cbd(0xc3)),_0x3c8e7d[_0x2e1cbd(0xf4)]=_['keys'](_0x593e53[_0x2e1cbd(0xf4)]),_0x3c8e7d[_0x2e1cbd(0xa2)]=_[_0x2e1cbd(0xab)](_0x3c8e7d['model'],_0x3c8e7d[_0x2e1cbd(0xf4)]),_0x3b4ee1['attributes']=_[_0x2e1cbd(0xab)](_0x3c8e7d[_0x2e1cbd(0xa3)],qs[_0x2e1cbd(0xc9)](_0x593e53[_0x2e1cbd(0xf4)][_0x2e1cbd(0xc9)])),_0x3b4ee1['attributes']=_0x3b4ee1['attributes']['length']?_0x3b4ee1[_0x2e1cbd(0x92)]:_0x3c8e7d[_0x2e1cbd(0xa3)];typeof _0x593e53[_0x2e1cbd(0xf4)]['nolimit']===_0x2e1cbd(0xed)&&(_0x3b4ee1[_0x2e1cbd(0xf1)]=qs[_0x2e1cbd(0xf1)](_0x593e53[_0x2e1cbd(0xf4)][_0x2e1cbd(0xf1)]),_0x3b4ee1['offset']=qs[_0x2e1cbd(0xa8)](_0x593e53[_0x2e1cbd(0xf4)][_0x2e1cbd(0xa8)]));_0x3b4ee1['order']=qs['sort'](_0x593e53[_0x2e1cbd(0xf4)][_0x2e1cbd(0xef)]),_0x3b4ee1[_0x2e1cbd(0xf3)]=qs['filters'](_[_0x2e1cbd(0xf5)](_0x593e53[_0x2e1cbd(0xf4)],_0x3c8e7d['filters']),_0x59a05d);_0x593e53['query'][_0x2e1cbd(0xc6)]&&(_0x3b4ee1[_0x2e1cbd(0xf3)]=_[_0x2e1cbd(0xfd)](_0x3b4ee1['where'],{[Op['or']]:_[_0x2e1cbd(0xd7)](_0x59a05d,function(_0x3511bf){const _0x3f4a9e=_0x2e1cbd;if(_0x3511bf['type']!==_0x3f4a9e(0xf6)){const _0x5d2681={};return _0x5d2681[_0x3511bf[_0x3f4a9e(0xc3)]]={[Op[_0x3f4a9e(0xc5)]]:'%'+_0x593e53[_0x3f4a9e(0xf4)][_0x3f4a9e(0xc6)]+'%'},_0x5d2681;}})}));_0x3b4ee1=_[_0x2e1cbd(0xfd)]({},_0x3b4ee1,_0x593e53[_0x2e1cbd(0xf9)]);const _0xe824f5={'where':_0x3b4ee1[_0x2e1cbd(0xf3)]};return db['Campaign'][_0x2e1cbd(0xd5)](_0xe824f5)['then'](function(_0x514648){const _0x166abb=_0x2e1cbd;return _0x59e533[_0x166abb(0xd5)]=_0x514648,_0x593e53[_0x166abb(0xf4)]['includeAll']&&(_0x3b4ee1[_0x166abb(0xe1)]=[{'all':!![]}]),db[_0x166abb(0xe0)]['findAll'](_0x3b4ee1);})['then'](function(_0x550802){const _0x125174=_0x2e1cbd;return _0x59e533[_0x125174(0xee)]=_0x550802,_0x59e533;})['then'](respondWithFilteredResult(_0x1d96a5,_0x3b4ee1))[_0x2e1cbd(0xce)](handleError(_0x1d96a5,null));},exports[a51_0x1af30c(0xbe)]=function(_0x26ed26,_0x684f98){const _0x2a0686=a51_0x1af30c;let _0x35a051={'raw':![],'where':{'id':_0x26ed26[_0x2a0686(0xba)]['id']}};const _0x554e5e={};return _0x554e5e[_0x2a0686(0xa3)]=_[_0x2a0686(0xfc)](db[_0x2a0686(0xe0)][_0x2a0686(0xbf)]),_0x554e5e[_0x2a0686(0xf4)]=_['keys'](_0x26ed26['query']),_0x554e5e['filters']=_[_0x2a0686(0xab)](_0x554e5e[_0x2a0686(0xa3)],_0x554e5e['query']),_0x35a051[_0x2a0686(0x92)]=_['intersection'](_0x554e5e[_0x2a0686(0xa3)],qs['fields'](_0x26ed26[_0x2a0686(0xf4)][_0x2a0686(0xc9)])),_0x35a051['attributes']=_0x35a051[_0x2a0686(0x92)][_0x2a0686(0xb8)]?_0x35a051[_0x2a0686(0x92)]:_0x554e5e[_0x2a0686(0xa3)],_0x26ed26['query'][_0x2a0686(0xb2)]&&(_0x35a051[_0x2a0686(0xe1)]=[{'all':!![]}]),_0x35a051=_[_0x2a0686(0xfd)]({},_0x35a051,_0x26ed26[_0x2a0686(0xf9)]),db[_0x2a0686(0xe0)][_0x2a0686(0xb1)](_0x35a051)[_0x2a0686(0xca)](handleEntityNotFound(_0x684f98,null))[_0x2a0686(0xca)](respondWithResult(_0x684f98,null))[_0x2a0686(0xce)](handleError(_0x684f98,null));},exports[a51_0x1af30c(0xd1)]=function(_0x78781f,_0x36edae){const _0xfcd6dd=a51_0x1af30c;return db[_0xfcd6dd(0xe0)][_0xfcd6dd(0xd1)](_0x78781f[_0xfcd6dd(0xe9)],{})[_0xfcd6dd(0xca)](function(_0x5163f5){const _0x30cb75=_0xfcd6dd,_0x41c667=_0x78781f[_0x30cb75(0xb6)]['get']({'plain':!![]});if(!_0x41c667)throw new Error(_0x30cb75(0x9c));if(_0x41c667['role']===_0x30cb75(0xb6)){const _0x3d03d2=_0x5163f5[_0x30cb75(0xc4)]({'plain':!![]}),_0x4e117d=_0x30cb75(0xa1);return db[_0x30cb75(0xe5)][_0x30cb75(0xb1)]({'where':{'name':_0x4e117d,'userProfileId':_0x41c667[_0x30cb75(0xb4)]},'raw':!![]})['then'](function(_0x300ea3){const _0x3f2c0c=_0x30cb75;return _0x300ea3&&_0x300ea3[_0x3f2c0c(0xc8)]===0x0?db[_0x3f2c0c(0xa9)][_0x3f2c0c(0xd1)]({'name':_0x3d03d2['name'],'resourceId':_0x3d03d2['id'],'type':_0x300ea3[_0x3f2c0c(0xc3)],'sectionId':_0x300ea3['id']},{})[_0x3f2c0c(0xca)](function(){return _0x5163f5;}):_0x5163f5;})[_0x30cb75(0xce)](function(_0x10678a){const _0x4ad932=_0x30cb75;logger[_0x4ad932(0xf2)](_0x4ad932(0xb9),_0x10678a);throw _0x10678a;});}return _0x5163f5;})[_0xfcd6dd(0xca)](respondWithResult(_0x36edae,0xc9))[_0xfcd6dd(0xce)](handleError(_0x36edae,null));},exports['clone']=function(_0x317b1f,_0x48e34a){const _0x42c084=a51_0x1af30c;let _0x42e948={'where':{'id':_0x317b1f[_0x42c084(0xba)]['id']}};const _0x184ce1={};return _0x184ce1['model']=_[_0x42c084(0xfc)](db[_0x42c084(0xe0)]['rawAttributes']),_0x42e948['attributes']=_[_0x42c084(0xab)](_0x184ce1[_0x42c084(0xa3)],qs[_0x42c084(0xc9)](_0x317b1f['query'][_0x42c084(0xc9)])),_0x42e948[_0x42c084(0x92)]=_0x42e948[_0x42c084(0x92)][_0x42c084(0xb8)]?_0x42e948[_0x42c084(0x92)]:_0x184ce1[_0x42c084(0xa3)],_0x317b1f[_0x42c084(0xf4)][_0x42c084(0xb2)]&&(_0x42e948['include']=[{'all':!![]}]),_0x42e948=_['merge']({},_0x42e948,_0x317b1f[_0x42c084(0xf9)]),db[_0x42c084(0xe0)][_0x42c084(0xb1)](_0x42e948)['then'](handleEntityNotFound(_0x48e34a,null))[_0x42c084(0xca)](function(_0x3a6911){const _0x372d87=_0x42c084;if(_0x3a6911){let _0x166a5d=_0x3a6911['get']({'plain':!![]});return _0x166a5d=qs[_0x372d87(0xeb)](_0x166a5d,['id','createdAt',_0x372d87(0xaa)]),_0x317b1f[_0x372d87(0xe9)]=_['omit'](_0x317b1f[_0x372d87(0xe9)],['id',_0x372d87(0x97),_0x372d87(0xaa)]),db['Campaign']['create'](_['merge'](_0x166a5d,_0x317b1f[_0x372d87(0xe9)]),{'include':_0x317b1f['query']['includeAll']?[{'all':!![]}]:undefined})[_0x372d87(0xca)](function(_0x10d269){const _0x2d960a=_0x372d87,_0x18a90e=_0x317b1f[_0x2d960a(0xb6)][_0x2d960a(0xc4)]({'plain':!![]});if(!_0x18a90e)throw new Error(_0x2d960a(0x9c));if(_0x18a90e[_0x2d960a(0xde)]===_0x2d960a(0xb6)){const _0xa4128d=_0x10d269[_0x2d960a(0xc4)]({'plain':!![]}),_0x3597df='IvrCampaigns';return db['UserProfileSection']['findOne']({'where':{'name':_0x3597df,'userProfileId':_0x18a90e[_0x2d960a(0xb4)]},'raw':!![]})['then'](function(_0x53cfc5){const _0x183934=_0x2d960a;return _0x53cfc5&&_0x53cfc5[_0x183934(0xc8)]===0x0?db['UserProfileResource'][_0x183934(0xd1)]({'name':_0xa4128d[_0x183934(0xc3)],'resourceId':_0xa4128d['id'],'type':_0x53cfc5[_0x183934(0xc3)],'sectionId':_0x53cfc5['id']},{})['then'](function(){return _0x10d269;}):_0x10d269;})['catch'](function(_0x3f3e27){const _0x6ef15a=_0x2d960a;logger[_0x6ef15a(0xf2)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x3f3e27);throw _0x3f3e27;});}return _0x10d269;});}})[_0x42c084(0xca)](respondWithResult(_0x48e34a,0xc9))[_0x42c084(0xce)](handleError(_0x48e34a,null));},exports[a51_0x1af30c(0xc2)]=function(_0x59f8bf,_0x8ea9c){const _0x2ba2bb=a51_0x1af30c;return _0x59f8bf[_0x2ba2bb(0xe9)]['id']&&delete _0x59f8bf[_0x2ba2bb(0xe9)]['id'],db['Campaign'][_0x2ba2bb(0xb1)]({'where':{'id':_0x59f8bf[_0x2ba2bb(0xba)]['id']}})[_0x2ba2bb(0xca)](handleEntityNotFound(_0x8ea9c,null))[_0x2ba2bb(0xca)](saveUpdates(_0x59f8bf['body'],null))['then'](respondWithResult(_0x8ea9c,null))[_0x2ba2bb(0xce)](handleError(_0x8ea9c,null));},exports[a51_0x1af30c(0x98)]=function(_0x12897a,_0x538038){const _0x55641a=a51_0x1af30c;return db['Campaign'][_0x55641a(0xb1)]({'where':{'id':_0x12897a[_0x55641a(0xba)]['id']}})[_0x55641a(0xca)](handleEntityNotFound(_0x538038,null))[_0x55641a(0xca)](removeEntity(_0x538038,null))['catch'](handleError(_0x538038,null));},exports[a51_0x1af30c(0xcc)]=function(_0x44d14a,_0x542ed4){const _0x1ca495=a51_0x1af30c;let _0x4c2473={'raw':!![],'where':{}};const _0x565536={},_0x540f47={'count':0x0,'rows':[]};return db[_0x1ca495(0xe0)][_0x1ca495(0xb1)]({'where':{'id':_0x44d14a[_0x1ca495(0xba)]['id']}})['then'](handleEntityNotFound(_0x542ed4,null))[_0x1ca495(0xca)](function(_0x3c6c9d){const _0x464b12=_0x1ca495;if(_0x3c6c9d)return _0x565536[_0x464b12(0xa3)]=_[_0x464b12(0xfc)](db[_0x464b12(0x90)][_0x464b12(0xbf)]),_0x565536[_0x464b12(0xf4)]=_[_0x464b12(0xfc)](_0x44d14a[_0x464b12(0xf4)]),_0x565536['filters']=_[_0x464b12(0xab)](_0x565536['model'],_0x565536[_0x464b12(0xf4)]),_0x4c2473[_0x464b12(0x92)]=_[_0x464b12(0xab)](_0x565536[_0x464b12(0xa3)],qs[_0x464b12(0xc9)](_0x44d14a[_0x464b12(0xf4)]['fields'])),_0x4c2473['attributes']=_0x4c2473['attributes'][_0x464b12(0xb8)]?_0x4c2473[_0x464b12(0x92)]:_0x565536['model'],typeof _0x44d14a[_0x464b12(0xf4)][_0x464b12(0xa6)]==='undefined'&&(_0x4c2473[_0x464b12(0xf1)]=qs['limit'](_0x44d14a[_0x464b12(0xf4)]['limit']),_0x4c2473[_0x464b12(0xa8)]=qs['offset'](_0x44d14a[_0x464b12(0xf4)]['offset'])),_0x4c2473[_0x464b12(0xfb)]=qs['sort'](_0x44d14a[_0x464b12(0xf4)][_0x464b12(0xef)]),_0x4c2473[_0x464b12(0xf3)]=qs[_0x464b12(0xa2)](_['pick'](_0x44d14a[_0x464b12(0xf4)],_0x565536['filters'])),_0x4c2473[_0x464b12(0xf3)][_0x464b12(0x95)]=_0x3c6c9d['id'],_0x44d14a[_0x464b12(0xf4)][_0x464b12(0xc6)]&&(_0x4c2473[_0x464b12(0xf3)]=_['merge'](_0x4c2473[_0x464b12(0xf3)],{[Op['or']]:_[_0x464b12(0xd7)](_0x4c2473[_0x464b12(0x92)],function(_0x58ef0e){const _0x115a56=_0x464b12,_0xa47577={};return _0xa47577[_0x58ef0e]={[Op[_0x115a56(0xc5)]]:'%'+_0x44d14a['query'][_0x115a56(0xc6)]+'%'},_0xa47577;})})),_0x4c2473=_[_0x464b12(0xfd)]({},_0x4c2473,_0x44d14a[_0x464b12(0xf9)]),db[_0x464b12(0x90)][_0x464b12(0xd5)]({'where':_0x4c2473['where']})['then'](function(_0x4b42cf){const _0x1929b3=_0x464b12;return _0x540f47[_0x1929b3(0xd5)]=_0x4b42cf,_0x44d14a[_0x1929b3(0xf4)][_0x1929b3(0xb2)]&&(_0x4c2473[_0x1929b3(0xe1)]=[{'all':!![]}]),db[_0x1929b3(0x90)]['findAll'](_0x4c2473);})[_0x464b12(0xca)](function(_0x1398ff){const _0x353e2b=_0x464b12;return _0x540f47[_0x353e2b(0xee)]=_0x1398ff,_0x540f47;});})[_0x1ca495(0xca)](respondWithFilteredResult(_0x542ed4,_0x4c2473))[_0x1ca495(0xce)](handleError(_0x542ed4,null));},exports['getHopperHistories']=function(_0x401171,_0x4d2f8a){const _0x1b96bc=a51_0x1af30c;let _0x513efa={'raw':!![],'where':{}};const _0x1be6e9={},_0xd2e762={'count':0x0,'rows':[]};return db[_0x1b96bc(0xe0)][_0x1b96bc(0xb1)]({'where':{'id':_0x401171[_0x1b96bc(0xba)]['id']}})[_0x1b96bc(0xca)](handleEntityNotFound(_0x4d2f8a,null))[_0x1b96bc(0xca)](function(_0xbab905){const _0x57af39=_0x1b96bc;if(_0xbab905)return _0x1be6e9[_0x57af39(0xa3)]=_[_0x57af39(0xfc)](db[_0x57af39(0xec)][_0x57af39(0xbf)]),_0x1be6e9[_0x57af39(0xf4)]=_['keys'](_0x401171[_0x57af39(0xf4)]),_0x1be6e9[_0x57af39(0xa2)]=_[_0x57af39(0xab)](_0x1be6e9['model'],_0x1be6e9[_0x57af39(0xf4)]),_0x513efa[_0x57af39(0x92)]=_[_0x57af39(0xab)](_0x1be6e9[_0x57af39(0xa3)],qs[_0x57af39(0xc9)](_0x401171[_0x57af39(0xf4)][_0x57af39(0xc9)])),_0x513efa[_0x57af39(0x92)]=_0x513efa[_0x57af39(0x92)][_0x57af39(0xb8)]?_0x513efa[_0x57af39(0x92)]:_0x1be6e9[_0x57af39(0xa3)],typeof _0x401171[_0x57af39(0xf4)][_0x57af39(0xa6)]===_0x57af39(0xed)&&(_0x513efa[_0x57af39(0xf1)]=qs[_0x57af39(0xf1)](_0x401171[_0x57af39(0xf4)][_0x57af39(0xf1)]),_0x513efa[_0x57af39(0xa8)]=qs[_0x57af39(0xa8)](_0x401171[_0x57af39(0xf4)]['offset'])),_0x513efa[_0x57af39(0xfb)]=qs[_0x57af39(0xef)](_0x401171[_0x57af39(0xf4)]['sort']),_0x513efa[_0x57af39(0xf3)]=qs['filters'](_[_0x57af39(0xf5)](_0x401171[_0x57af39(0xf4)],_0x1be6e9[_0x57af39(0xa2)])),_0x513efa[_0x57af39(0xf3)][_0x57af39(0x95)]=_0xbab905['id'],_0x401171[_0x57af39(0xf4)][_0x57af39(0xc6)]&&(_0x513efa[_0x57af39(0xf3)]=_[_0x57af39(0xfd)](_0x513efa['where'],{[Op['or']]:_[_0x57af39(0xd7)](_0x513efa['attributes'],function(_0x190422){const _0x2db0c9=_0x57af39,_0x58b9da={};return _0x58b9da[_0x190422]={[Op[_0x2db0c9(0xc5)]]:'%'+_0x401171[_0x2db0c9(0xf4)]['filter']+'%'},_0x58b9da;})})),_0x513efa=_['merge']({},_0x513efa,_0x401171['options']),db[_0x57af39(0xec)][_0x57af39(0xd5)]({'where':_0x513efa[_0x57af39(0xf3)]})[_0x57af39(0xca)](function(_0x241193){const _0x272d94=_0x57af39;return _0xd2e762[_0x272d94(0xd5)]=_0x241193,_0x401171[_0x272d94(0xf4)][_0x272d94(0xb2)]&&(_0x513efa['include']=[{'all':!![]}]),db[_0x272d94(0xec)]['findAll'](_0x513efa);})[_0x57af39(0xca)](function(_0x4d5364){return _0xd2e762['rows']=_0x4d5364,_0xd2e762;});})[_0x1b96bc(0xca)](respondWithFilteredResult(_0x4d2f8a,_0x513efa))[_0x1b96bc(0xce)](handleError(_0x4d2f8a,null));},exports[a51_0x1af30c(0xf7)]=function(_0x3c5cc9,_0x14b881){const _0x49a04c=a51_0x1af30c;let _0x4ddc5d={'raw':!![],'where':{}};const _0x11d6c2={},_0xa51939={'count':0x0,'rows':[]};return db[_0x49a04c(0xe0)][_0x49a04c(0xb1)]({'where':{'id':_0x3c5cc9['params']['id']}})[_0x49a04c(0xca)](handleEntityNotFound(_0x14b881,null))[_0x49a04c(0xca)](function(_0x2ebbf3){const _0xdc2d95=_0x49a04c;if(_0x2ebbf3)return _0x11d6c2['model']=_['keys'](db[_0xdc2d95(0xbd)][_0xdc2d95(0xbf)]),_0x11d6c2[_0xdc2d95(0xf4)]=_['keys'](_0x3c5cc9[_0xdc2d95(0xf4)]),_0x11d6c2['filters']=_[_0xdc2d95(0xab)](_0x11d6c2['model'],_0x11d6c2[_0xdc2d95(0xf4)]),_0x4ddc5d[_0xdc2d95(0x92)]=_[_0xdc2d95(0xab)](_0x11d6c2[_0xdc2d95(0xa3)],qs[_0xdc2d95(0xc9)](_0x3c5cc9[_0xdc2d95(0xf4)]['fields'])),_0x4ddc5d['attributes']=_0x4ddc5d['attributes'][_0xdc2d95(0xb8)]?_0x4ddc5d[_0xdc2d95(0x92)]:_0x11d6c2[_0xdc2d95(0xa3)],typeof _0x3c5cc9[_0xdc2d95(0xf4)][_0xdc2d95(0xa6)]===_0xdc2d95(0xed)&&(_0x4ddc5d[_0xdc2d95(0xf1)]=qs[_0xdc2d95(0xf1)](_0x3c5cc9[_0xdc2d95(0xf4)][_0xdc2d95(0xf1)]),_0x4ddc5d[_0xdc2d95(0xa8)]=qs[_0xdc2d95(0xa8)](_0x3c5cc9[_0xdc2d95(0xf4)][_0xdc2d95(0xa8)])),_0x4ddc5d['order']=qs[_0xdc2d95(0xef)](_0x3c5cc9[_0xdc2d95(0xf4)][_0xdc2d95(0xef)]),_0x4ddc5d[_0xdc2d95(0xf3)]=qs[_0xdc2d95(0xa2)](_[_0xdc2d95(0xf5)](_0x3c5cc9[_0xdc2d95(0xf4)],_0x11d6c2[_0xdc2d95(0xa2)])),_0x4ddc5d[_0xdc2d95(0xf3)][_0xdc2d95(0x95)]=_0x2ebbf3['id'],_0x3c5cc9[_0xdc2d95(0xf4)][_0xdc2d95(0xc6)]&&(_0x4ddc5d[_0xdc2d95(0xf3)]=_[_0xdc2d95(0xfd)](_0x4ddc5d['where'],{[Op['or']]:_[_0xdc2d95(0xd7)](_0x4ddc5d[_0xdc2d95(0x92)],function(_0x3662eb){const _0x3fec0d=_0xdc2d95,_0x10bfe9={};return _0x10bfe9[_0x3662eb]={[Op['like']]:'%'+_0x3c5cc9[_0x3fec0d(0xf4)][_0x3fec0d(0xc6)]+'%'},_0x10bfe9;})})),_0x4ddc5d=_[_0xdc2d95(0xfd)]({},_0x4ddc5d,_0x3c5cc9[_0xdc2d95(0xf9)]),db[_0xdc2d95(0xbd)]['count']({'where':_0x4ddc5d['where']})['then'](function(_0x4be0f4){const _0x117c8e=_0xdc2d95;return _0xa51939['count']=_0x4be0f4,_0x3c5cc9[_0x117c8e(0xf4)]['includeAll']&&(_0x4ddc5d[_0x117c8e(0xe1)]=[{'all':!![]}]),db[_0x117c8e(0xbd)][_0x117c8e(0xe3)](_0x4ddc5d);})[_0xdc2d95(0xca)](function(_0x412fdc){const _0x27ceb1=_0xdc2d95;return _0xa51939[_0x27ceb1(0xee)]=_0x412fdc,_0xa51939;});})[_0x49a04c(0xca)](respondWithFilteredResult(_0x14b881,_0x4ddc5d))[_0x49a04c(0xce)](handleError(_0x14b881,null));},exports[a51_0x1af30c(0xb0)]=function(_0x6463e0,_0x21e698){const _0x530787=a51_0x1af30c;let _0x39386d={'raw':!![],'where':{}};const _0x576ace={},_0x423447={'count':0x0,'rows':[]};return db[_0x530787(0xe0)]['findOne']({'where':{'id':_0x6463e0[_0x530787(0xba)]['id']}})[_0x530787(0xca)](handleEntityNotFound(_0x21e698,null))[_0x530787(0xca)](function(_0x257553){const _0x1d440d=_0x530787;if(_0x257553)return _0x576ace['model']=_['keys'](db['CmHopperBlack'][_0x1d440d(0xbf)]),_0x576ace['query']=_[_0x1d440d(0xfc)](_0x6463e0[_0x1d440d(0xf4)]),_0x576ace['filters']=_[_0x1d440d(0xab)](_0x576ace[_0x1d440d(0xa3)],_0x576ace['query']),_0x39386d['attributes']=_[_0x1d440d(0xab)](_0x576ace['model'],qs[_0x1d440d(0xc9)](_0x6463e0[_0x1d440d(0xf4)][_0x1d440d(0xc9)])),_0x39386d['attributes']=_0x39386d[_0x1d440d(0x92)][_0x1d440d(0xb8)]?_0x39386d[_0x1d440d(0x92)]:_0x576ace[_0x1d440d(0xa3)],typeof _0x6463e0[_0x1d440d(0xf4)][_0x1d440d(0xa6)]==='undefined'&&(_0x39386d[_0x1d440d(0xf1)]=qs['limit'](_0x6463e0[_0x1d440d(0xf4)][_0x1d440d(0xf1)]),_0x39386d[_0x1d440d(0xa8)]=qs[_0x1d440d(0xa8)](_0x6463e0[_0x1d440d(0xf4)][_0x1d440d(0xa8)])),_0x39386d['order']=qs[_0x1d440d(0xef)](_0x6463e0['query'][_0x1d440d(0xef)]),_0x39386d[_0x1d440d(0xf3)]=qs[_0x1d440d(0xa2)](_['pick'](_0x6463e0['query'],_0x576ace['filters'])),_0x39386d[_0x1d440d(0xf3)]['CampaignId']=_0x257553['id'],_0x6463e0[_0x1d440d(0xf4)][_0x1d440d(0xc6)]&&(_0x39386d[_0x1d440d(0xf3)]=_[_0x1d440d(0xfd)](_0x39386d[_0x1d440d(0xf3)],{[Op['or']]:_[_0x1d440d(0xd7)](_0x39386d[_0x1d440d(0x92)],function(_0x38a74b){const _0x5835bd=_0x1d440d,_0xbe169={};return _0xbe169[_0x38a74b]={[Op[_0x5835bd(0xc5)]]:'%'+_0x6463e0[_0x5835bd(0xf4)]['filter']+'%'},_0xbe169;})})),_0x39386d=_[_0x1d440d(0xfd)]({},_0x39386d,_0x6463e0[_0x1d440d(0xf9)]),db[_0x1d440d(0xa0)][_0x1d440d(0xd5)]({'where':_0x39386d[_0x1d440d(0xf3)]})[_0x1d440d(0xca)](function(_0x59b7af){const _0x2e0dd6=_0x1d440d;return _0x423447[_0x2e0dd6(0xd5)]=_0x59b7af,_0x6463e0[_0x2e0dd6(0xf4)][_0x2e0dd6(0xb2)]&&(_0x39386d[_0x2e0dd6(0xe1)]=[{'all':!![]}]),db[_0x2e0dd6(0xa0)][_0x2e0dd6(0xe3)](_0x39386d);})[_0x1d440d(0xca)](function(_0x5b2103){const _0xff758d=_0x1d440d;return _0x423447[_0xff758d(0xee)]=_0x5b2103,_0x423447;});})[_0x530787(0xca)](respondWithFilteredResult(_0x21e698,_0x39386d))['catch'](handleError(_0x21e698,null));},exports['getLists']=function(_0x235f16,_0x21d9e5){const _0x50d3a1=a51_0x1af30c;let _0x3a6bbb={};const _0x447bbf={};let _0x53ad82,_0x225519;return db[_0x50d3a1(0xe0)]['findOne']({'where':{'id':_0x235f16[_0x50d3a1(0xba)]['id']}})[_0x50d3a1(0xca)](handleEntityNotFound(_0x21d9e5,null))['then'](function(_0x1b0e07){const _0x44a498=_0x50d3a1;if(_0x1b0e07)return _0x53ad82=_0x1b0e07,_0x447bbf[_0x44a498(0xa3)]=_[_0x44a498(0xfc)](db[_0x44a498(0xd2)][_0x44a498(0xbf)]),_0x447bbf[_0x44a498(0xf4)]=_['keys'](_0x235f16[_0x44a498(0xf4)]),_0x447bbf[_0x44a498(0xa2)]=_[_0x44a498(0xab)](_0x447bbf[_0x44a498(0xa3)],_0x447bbf[_0x44a498(0xf4)]),_0x3a6bbb[_0x44a498(0x92)]=_[_0x44a498(0xab)](_0x447bbf[_0x44a498(0xa3)],qs[_0x44a498(0xc9)](_0x235f16['query'][_0x44a498(0xc9)])),_0x3a6bbb['attributes']=_0x3a6bbb[_0x44a498(0x92)][_0x44a498(0xb8)]?_0x3a6bbb[_0x44a498(0x92)]:_0x447bbf[_0x44a498(0xa3)],_0x3a6bbb[_0x44a498(0xfb)]=qs[_0x44a498(0xef)](_0x235f16[_0x44a498(0xf4)][_0x44a498(0xef)]),_0x3a6bbb[_0x44a498(0xf3)]=qs[_0x44a498(0xa2)](_[_0x44a498(0xf5)](_0x235f16[_0x44a498(0xf4)],_0x447bbf[_0x44a498(0xa2)])),_0x235f16[_0x44a498(0xf4)][_0x44a498(0xc6)]&&(_0x3a6bbb[_0x44a498(0xf3)]=_[_0x44a498(0xfd)](_0x3a6bbb[_0x44a498(0xf3)],{[Op['or']]:_[_0x44a498(0xd7)](_0x3a6bbb[_0x44a498(0x92)],function(_0x94fa5c){const _0x250d6b=_0x44a498,_0x13c048={};return _0x13c048[_0x94fa5c]={[Op[_0x250d6b(0xc5)]]:'%'+_0x235f16['query'][_0x250d6b(0xc6)]+'%'},_0x13c048;})})),_0x3a6bbb=_['merge']({},_0x3a6bbb,_0x235f16[_0x44a498(0xf9)]),_0x53ad82[_0x44a498(0x8e)](_0x3a6bbb);})[_0x50d3a1(0xca)](function(_0x574131){const _0x2e2e5e=_0x50d3a1;if(_0x574131)return _0x225519=_0x574131['length'],typeof _0x235f16[_0x2e2e5e(0xf4)]['nolimit']==='undefined'&&(_0x3a6bbb[_0x2e2e5e(0xf1)]=qs[_0x2e2e5e(0xf1)](_0x235f16[_0x2e2e5e(0xf4)][_0x2e2e5e(0xf1)]),_0x3a6bbb[_0x2e2e5e(0xa8)]=qs[_0x2e2e5e(0xa8)](_0x235f16['query']['offset'])),_0x53ad82['getLists'](_0x3a6bbb);})[_0x50d3a1(0xca)](function(_0x108ec4){if(_0x108ec4)return _0x108ec4?{'count':_0x225519,'rows':_0x108ec4}:null;})[_0x50d3a1(0xca)](respondWithResult(_0x21d9e5,null))[_0x50d3a1(0xce)](handleError(_0x21d9e5,null));},exports[a51_0x1af30c(0xe2)]=function(_0x596a3e,_0x55c5bb){const _0x5acda9=a51_0x1af30c;let _0x3b46f4,_0x319901;return db[_0x5acda9(0xe0)][_0x5acda9(0xb1)]({'where':{'id':_0x596a3e[_0x5acda9(0xba)]['id']}})[_0x5acda9(0xca)](handleEntityNotFound(_0x55c5bb,null))[_0x5acda9(0xca)](function(_0x1e5be1){const _0x58201a=_0x5acda9;if(_0x1e5be1)return _0x319901=_0x1e5be1,_0x1e5be1['addLists'](_0x596a3e['body'][_0x58201a(0xd4)],{'through':_[_0x58201a(0xeb)](_0x596a3e[_0x58201a(0xe9)],[_0x58201a(0xd4),'id'])});return null;})[_0x5acda9(0xca)](function(_0x4d9bd0){const _0x441317=_0x5acda9;let _0x102634;_0x3b46f4=_0x4d9bd0||[];const _0x100895=[];if(_0x4d9bd0){for(let _0x1258d1=0x0;_0x1258d1<_0x4d9bd0['length'];_0x1258d1+=0x1){const _0x20c60b=_0x4d9bd0[_0x1258d1][_0x441317(0xc4)]({'plain':!![]});_0x319901[_0x441317(0xad)]=_0x596a3e['body']['dialCheckDuplicateType']?_0x596a3e['body'][_0x441317(0xad)]:_0x319901[_0x441317(0xad)];switch(_0x319901[_0x441317(0xad)]){case _0x441317(0xac):_0x102634=squel[_0x441317(0xa7)]()[_0x441317(0xd9)](_0x441317(0xb7))[_0x441317(0xcf)]([_0x441317(0x96),_0x441317(0xea),_0x441317(0x91),_0x441317(0xe4),_0x441317(0x95),_0x441317(0x97),'updatedAt'],squel[_0x441317(0xe7)]()[_0x441317(0xa4)](_0x441317(0x96),_0x441317(0x96))[_0x441317(0xa4)](_0x441317(0xd3),_0x441317(0xea))[_0x441317(0xa4)]('id',_0x441317(0x91))['field'](_0x20c60b[_0x441317(0x9b)][_0x441317(0xe6)](),_0x441317(0xe4))[_0x441317(0xa4)](_0x596a3e['params']['id'][_0x441317(0xe6)](),_0x441317(0x95))[_0x441317(0xa4)](_0x441317(0xd3),_0x441317(0x97))[_0x441317(0xa4)](_0x441317(0xd3),_0x441317(0xaa))[_0x441317(0x94)](_0x441317(0xbb))[_0x441317(0xf3)](_0x441317(0xdd))[_0x441317(0xf3)]('ListId\x20=\x20?',_0x20c60b[_0x441317(0x9b)][_0x441317(0xe6)]())[_0x441317(0xf3)](_0x441317(0xcb))['where'](_0x441317(0xf8),squel['select']()[_0x441317(0xa4)](_0x441317(0xfe))[_0x441317(0x94)](_0x441317(0xb5))['where']('CampaignId\x20=\x20?',_0x596a3e[_0x441317(0xba)]['id']['toString']()))[_0x441317(0xf3)](_0x441317(0xf8),squel['select']()['field'](_0x441317(0xc0))['from'](_0x441317(0xb7))['where']('CampaignId\x20=\x20?',_0x596a3e['params']['id'][_0x441317(0xe6)]())))[_0x441317(0xe6)]();break;case _0x441317(0xae):_0x102634=squel['insert']()[_0x441317(0xd9)](_0x441317(0xb7))[_0x441317(0xcf)]([_0x441317(0x96),'scheduledAt',_0x441317(0x91),'ListId',_0x441317(0x95),_0x441317(0x97),_0x441317(0xaa)],squel[_0x441317(0xe7)]()[_0x441317(0xa4)](_0x441317(0x96),'phone')[_0x441317(0xa4)](_0x441317(0xd3),_0x441317(0xea))[_0x441317(0xa4)]('id',_0x441317(0x91))[_0x441317(0xa4)](_0x20c60b[_0x441317(0x9b)][_0x441317(0xe6)](),_0x441317(0xe4))['field'](_0x596a3e[_0x441317(0xba)]['id'][_0x441317(0xe6)](),_0x441317(0x95))[_0x441317(0xa4)]('NOW()',_0x441317(0x97))[_0x441317(0xa4)](_0x441317(0xd3),_0x441317(0xaa))[_0x441317(0x94)](_0x441317(0xbb))['where']('deletedAt\x20IS\x20NULL')[_0x441317(0xf3)](_0x441317(0xdf),_0x20c60b[_0x441317(0x9b)][_0x441317(0xe6)]())['where'](_0x441317(0xcb))['where'](_0x441317(0xf8),squel[_0x441317(0xe7)]()['field'](_0x441317(0xc0))[_0x441317(0x94)](_0x441317(0xb7))['where'](_0x441317(0x9e),_0x596a3e[_0x441317(0xba)]['id'][_0x441317(0xe6)]())))[_0x441317(0xe6)]();break;default:_0x102634=squel[_0x441317(0xa7)]()[_0x441317(0xd9)](_0x441317(0xb7))[_0x441317(0xcf)]([_0x441317(0x96),'scheduledAt',_0x441317(0x91),_0x441317(0xe4),_0x441317(0x95),_0x441317(0x97),_0x441317(0xaa)],squel[_0x441317(0xe7)]()[_0x441317(0xa4)](_0x441317(0x96),_0x441317(0x96))[_0x441317(0xa4)](_0x441317(0xd3),'scheduledAt')[_0x441317(0xa4)]('id',_0x441317(0x91))[_0x441317(0xa4)](_0x20c60b[_0x441317(0x9b)]['toString'](),_0x441317(0xe4))[_0x441317(0xa4)](_0x596a3e[_0x441317(0xba)]['id'][_0x441317(0xe6)](),_0x441317(0x95))[_0x441317(0xa4)](_0x441317(0xd3),_0x441317(0x97))[_0x441317(0xa4)]('NOW()','updatedAt')[_0x441317(0x94)](_0x441317(0xbb))[_0x441317(0xf3)](_0x441317(0xdd))[_0x441317(0xf3)]('ListId\x20=\x20?',_0x20c60b[_0x441317(0x9b)][_0x441317(0xe6)]())['where']('phone\x20IS\x20NOT\x20NULL'))[_0x441317(0xe6)]();}_0x100895[_0x441317(0xf0)](db['sequelize']['query'](_0x102634));}return Promise[_0x441317(0xcd)](_0x100895);}})[_0x5acda9(0xca)](function(){return _0x3b46f4;})[_0x5acda9(0xca)](respondWithResult(_0x55c5bb,null))[_0x5acda9(0xce)](handleError(_0x55c5bb,null));},exports['removeLists']=function(_0x2cc296,_0x1750bc){const _0x2d707b=a51_0x1af30c;return db['Campaign'][_0x2d707b(0xb1)]({'where':{'id':_0x2cc296[_0x2d707b(0xba)]['id']}})['then'](handleEntityNotFound(_0x1750bc,null))[_0x2d707b(0xca)](function(_0x36dd7a){const _0x1e7b3b=_0x2d707b;if(_0x36dd7a)return _0x36dd7a[_0x1e7b3b(0xd6)](_0x2cc296[_0x1e7b3b(0xf4)][_0x1e7b3b(0xd4)]);})[_0x2d707b(0xca)](function(_0x3634c8){const _0x3437e5=_0x2d707b;if(_0x3634c8)return db[_0x3437e5(0x90)][_0x3437e5(0x98)]({'where':{'ListId':_0x2cc296[_0x3437e5(0xf4)]['ids'],'CampaignId':_0x2cc296[_0x3437e5(0xba)]['id']}})[_0x3437e5(0xca)](function(){return _0x3634c8;});})[_0x2d707b(0xca)](respondWithStatusCode(_0x1750bc,null))[_0x2d707b(0xce)](handleError(_0x1750bc,null));},exports[a51_0x1af30c(0x8f)]=function(_0x4fb1aa,_0x58f13f){const _0x386d8d=a51_0x1af30c;let _0x17deeb={'raw':!![],'where':{}};const _0x425659={},_0x133675={'count':0x0,'rows':[]};return db[_0x386d8d(0xe0)][_0x386d8d(0xb1)]({'where':{'id':_0x4fb1aa[_0x386d8d(0xba)]['id']}})[_0x386d8d(0xca)](handleEntityNotFound(_0x58f13f,null))[_0x386d8d(0xca)](function(_0x498d9a){const _0x43f856=_0x386d8d;if(_0x498d9a)return _0x425659[_0x43f856(0xa3)]=_[_0x43f856(0xfc)](db[_0x43f856(0xd2)]['rawAttributes']),_0x425659[_0x43f856(0xf4)]=_[_0x43f856(0xfc)](_0x4fb1aa['query']),_0x425659['filters']=_[_0x43f856(0xab)](_0x425659[_0x43f856(0xa3)],_0x425659[_0x43f856(0xf4)]),_0x17deeb[_0x43f856(0x92)]=_[_0x43f856(0xab)](_0x425659[_0x43f856(0xa3)],qs[_0x43f856(0xc9)](_0x4fb1aa[_0x43f856(0xf4)][_0x43f856(0xc9)])),_0x17deeb['attributes']=_0x17deeb[_0x43f856(0x92)][_0x43f856(0xb8)]?_0x17deeb[_0x43f856(0x92)]:_0x425659[_0x43f856(0xa3)],typeof _0x4fb1aa[_0x43f856(0xf4)][_0x43f856(0xa6)]===_0x43f856(0xed)&&(_0x17deeb['limit']=qs[_0x43f856(0xf1)](_0x4fb1aa[_0x43f856(0xf4)][_0x43f856(0xf1)]),_0x17deeb[_0x43f856(0xa8)]=qs[_0x43f856(0xa8)](_0x4fb1aa[_0x43f856(0xf4)][_0x43f856(0xa8)])),_0x17deeb[_0x43f856(0xfb)]=qs[_0x43f856(0xef)](_0x4fb1aa[_0x43f856(0xf4)][_0x43f856(0xef)]),_0x17deeb[_0x43f856(0xf3)]=qs['filters'](_['pick'](_0x4fb1aa[_0x43f856(0xf4)],_0x425659[_0x43f856(0xa2)])),_0x17deeb[_0x43f856(0xf3)]['CampaignId']=_0x498d9a['id'],_0x4fb1aa['query'][_0x43f856(0xc6)]&&(_0x17deeb[_0x43f856(0xf3)]=_[_0x43f856(0xfd)](_0x17deeb['where'],{[Op['or']]:_[_0x43f856(0xd7)](_0x17deeb[_0x43f856(0x92)],function(_0x52c08f){const _0x12cf83=_0x43f856,_0x1578f3={};return _0x1578f3[_0x52c08f]={[Op['like']]:'%'+_0x4fb1aa['query'][_0x12cf83(0xc6)]+'%'},_0x1578f3;})})),_0x17deeb=_[_0x43f856(0xfd)]({},_0x17deeb,_0x4fb1aa[_0x43f856(0xf9)]),db[_0x43f856(0xd2)][_0x43f856(0xd5)]({'where':_0x17deeb[_0x43f856(0xf3)]})[_0x43f856(0xca)](function(_0x585617){const _0x3303b4=_0x43f856;return _0x133675[_0x3303b4(0xd5)]=_0x585617,_0x4fb1aa[_0x3303b4(0xf4)]['includeAll']&&(_0x17deeb[_0x3303b4(0xe1)]=[{'all':!![]}]),db[_0x3303b4(0xd2)][_0x3303b4(0xe3)](_0x17deeb);})['then'](function(_0x4379e6){const _0x24cb13=_0x43f856;return _0x133675[_0x24cb13(0xee)]=_0x4379e6,_0x133675;});})[_0x386d8d(0xca)](respondWithFilteredResult(_0x58f13f,_0x17deeb))['catch'](handleError(_0x58f13f,null));},exports[a51_0x1af30c(0x9a)]=function(_0x5d0fdd,_0x4394ec){const _0x4b1951=a51_0x1af30c;let _0x4029a6;return db[_0x4b1951(0xe0)][_0x4b1951(0xb1)]({'where':{'id':_0x5d0fdd['params']['id']}})[_0x4b1951(0xca)](handleEntityNotFound(_0x4394ec,null))[_0x4b1951(0xca)](function(_0x3007ea){const _0x57518d=_0x4b1951;if(_0x3007ea)return _0x3007ea[_0x57518d(0x9a)](_0x5d0fdd['body'][_0x57518d(0xd4)],{'through':_[_0x57518d(0xeb)](_0x5d0fdd[_0x57518d(0xe9)],['ids','id'])});return null;})[_0x4b1951(0xca)](function(_0x585739){const _0x58c9db=_0x4b1951;let _0x3b9740;_0x4029a6=_0x585739||[];const _0x1677e3=[];if(_0x585739){for(let _0x55dbce=0x0;_0x55dbce<_0x585739[_0x58c9db(0xb8)];_0x55dbce+=0x1){const _0x5d4713=_0x585739[_0x55dbce][_0x58c9db(0xc4)]({'plain':!![]});_0x3b9740=squel[_0x58c9db(0xa7)]()[_0x58c9db(0xd9)](_0x58c9db(0x9d))[_0x58c9db(0xcf)]([_0x58c9db(0x96),'ContactId',_0x58c9db(0xe4),_0x58c9db(0x95),'createdAt',_0x58c9db(0xaa)],squel[_0x58c9db(0xe7)]()['field'](_0x58c9db(0x96),_0x58c9db(0x96))['field']('id',_0x58c9db(0x91))[_0x58c9db(0xa4)](_0x5d4713[_0x58c9db(0x9b)][_0x58c9db(0xe6)](),_0x58c9db(0xe4))[_0x58c9db(0xa4)](_0x5d0fdd[_0x58c9db(0xba)]['id']['toString'](),_0x58c9db(0x95))[_0x58c9db(0xa4)](_0x58c9db(0xd3),_0x58c9db(0x97))['field'](_0x58c9db(0xd3),_0x58c9db(0xaa))[_0x58c9db(0x94)](_0x58c9db(0xbb))['where']('deletedAt\x20IS\x20NULL')[_0x58c9db(0xf3)](_0x58c9db(0xdf),_0x5d4713['CmListId'][_0x58c9db(0xe6)]())['where']('phone\x20IS\x20NOT\x20NULL'))['toString'](),_0x1677e3['push'](db['sequelize'][_0x58c9db(0xf4)](_0x3b9740));}return Promise[_0x58c9db(0xcd)](_0x1677e3);}})[_0x4b1951(0xca)](function(){return _0x4029a6;})[_0x4b1951(0xca)](respondWithResult(_0x4394ec,null))[_0x4b1951(0xce)](handleError(_0x4394ec,null));},exports[a51_0x1af30c(0xfa)]=function(_0x3aaa95,_0x42c636){const _0x1020ed=a51_0x1af30c;return db['Campaign'][_0x1020ed(0xb1)]({'where':{'id':_0x3aaa95[_0x1020ed(0xba)]['id']}})[_0x1020ed(0xca)](handleEntityNotFound(_0x42c636,null))[_0x1020ed(0xca)](function(_0x1e81d8){const _0x16144a=_0x1020ed;if(_0x1e81d8)return _0x1e81d8[_0x16144a(0xfa)](_0x3aaa95['query']['ids']);})[_0x1020ed(0xca)](function(_0x2ff42f){const _0x4d7f9b=_0x1020ed;if(_0x2ff42f)return db['CmHopperBlack']['destroy']({'where':{'ListId':_0x3aaa95[_0x4d7f9b(0xf4)]['ids'],'CampaignId':_0x3aaa95[_0x4d7f9b(0xba)]['id']}})[_0x4d7f9b(0xca)](function(){return _0x2ff42f;});})[_0x1020ed(0xca)](respondWithStatusCode(_0x42c636,null))[_0x1020ed(0xce)](handleError(_0x42c636,null));}; \ No newline at end of file +const a51_0x4a4f=['cm_hopper_final','push','all','cm_contacts','NOW()','keys','into','filter','Content-Range','get','getBlackLists','includeAll','UserProfileSection','count','fieldName','type','end','field','CampaignId\x20=\x20?','options','rawAttributes','include','findOne','fields','sequelize','query','then','catch','model','getHoppers','deletedAt\x20IS\x20NULL','user','sort','index','CmHopper','CampaignId','filters','removeLists','key','error','body','CmList','getLists','params','attributes','intersection','phone\x20NOT\x20IN\x20(?)','omit','scheduledAt','insert','phone\x20IS\x20NOT\x20NULL','api','ids','limit','pick','merge','length','updatedAt','ContactId','CmHopperHistory','../../mysqldb','phone','json','findAll','send','status','onlyIfOpen','rows','../../components/parsers/qs','sendStatus','lodash','addBlackLists','nolimit','CmHopperFinal','offset','create','cm_hopper','destroy','VIRTUAL','map','where','Unable\x20to\x20retrieve\x20the\x20current\x20user','userProfileId','role','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','update','autoAssociation','set','like','../../config/logger','CmListId','from','order','ListId\x20=\x20?','getHopperFinals','name','IvrCampaigns','createdAt','undefined','select','ListId','removeBlackLists','dialCheckDuplicateType','clone','getHopperHistories','UserProfileResource','squel','toString','CmHopperBlack','Campaign','fromQuery'];(function(_0x46dfff,_0xeed7d2){const _0x4a4f1b=function(_0x564565){while(--_0x564565){_0x46dfff['push'](_0x46dfff['shift']());}};_0x4a4f1b(++_0xeed7d2);}(a51_0x4a4f,0x151));const a51_0x5645=function(_0x46dfff,_0xeed7d2){_0x46dfff=_0x46dfff-0x154;let _0x4a4f1b=a51_0x4a4f[_0x46dfff];return _0x4a4f1b;};const a51_0x2ba11d=a51_0x5645;'use strict';const _=require(a51_0x2ba11d(0x196)),squel=require(a51_0x2ba11d(0x1ba)),qs=require(a51_0x2ba11d(0x194)),logger=require(a51_0x2ba11d(0x1a9))(a51_0x2ba11d(0x183)),{db}=require(a51_0x2ba11d(0x18c)),{Op}=require('sequelize');function respondWithStatusCode(_0x5c0f60,_0x392000){return _0x392000=_0x392000||0xcc,function(_0x365463){const _0x57c52a=a51_0x5645;if(_0x365463)return _0x5c0f60['sendStatus'](_0x392000);return _0x5c0f60[_0x57c52a(0x191)](_0x392000)[_0x57c52a(0x160)]();};}function respondWithResult(_0x277894,_0x10daa6){return _0x10daa6=_0x10daa6||0xc8,function(_0x32c769){const _0x5e6b1f=a51_0x5645;if(_0x32c769)return _0x277894[_0x5e6b1f(0x191)](_0x10daa6)[_0x5e6b1f(0x18e)](_0x32c769);};}function respondWithFilteredResult(_0x59e864,_0x14007d){return function(_0x2f5f3c){const _0x2323ee=a51_0x5645;if(_0x2f5f3c){const _0x264c9f=_0x2f5f3c[_0x2323ee(0x15d)],_0xb95d32=_0x14007d['offset'];let _0x17e65f=_0x14007d[_0x2323ee(0x19a)]+_0x14007d[_0x2323ee(0x185)],_0xabad38;return _0x17e65f>=_0x264c9f?(_0x17e65f=_0x264c9f,_0xabad38=0xc8):_0xabad38=0xce,_0x59e864[_0x2323ee(0x191)](_0xabad38),_0x59e864[_0x2323ee(0x1a7)](_0x2323ee(0x158),_0xb95d32+'-'+_0x17e65f+'/'+_0x264c9f)['json'](_0x2f5f3c);}return null;};}function saveUpdates(_0x27a409){return function(_0x3f74e5){const _0x24fca1=a51_0x5645;if(_0x3f74e5)return _0x3f74e5[_0x24fca1(0x1a5)](_0x27a409)['then'](function(_0x28d345){return _0x28d345;});return null;};}function removeEntity(_0xf03733){return function(_0x56eab2){const _0x5f2071=a51_0x5645;if(_0x56eab2)return _0x56eab2['destroy']()[_0x5f2071(0x16a)](function(){const _0x433909=_0x5f2071,_0x23fbf4=_0x56eab2[_0x433909(0x159)]({'plain':!![]}),_0x5d020d=_0x433909(0x1b0);return db[_0x433909(0x1b9)][_0x433909(0x19d)]({'where':{'type':_0x5d020d,'resourceId':_0x23fbf4['id']}})[_0x433909(0x16a)](function(){return _0x56eab2;});})[_0x5f2071(0x16a)](function(){_0xf03733['status'](0xcc)['end']();});};}function handleEntityNotFound(_0xdcc62){return function(_0x37e8c4){const _0x57c390=a51_0x5645;return!_0x37e8c4&&_0xdcc62[_0x57c390(0x195)](0x194),_0x37e8c4;};}function handleError(_0x5284e4,_0x133dc7){return _0x133dc7=_0x133dc7||0x1f4,function(_0x5c7a79){const _0x461e43=a51_0x5645;logger['error'](_0x5c7a79['stack']),_0x5c7a79[_0x461e43(0x1af)]&&delete _0x5c7a79[_0x461e43(0x1af)],_0x5284e4[_0x461e43(0x191)](_0x133dc7)[_0x461e43(0x190)](_0x5c7a79);};}exports[a51_0x2ba11d(0x171)]=function(_0x3f29d4,_0x183c44){const _0x17ab35=a51_0x2ba11d;let _0x96a5d5={};const _0x5619ff={},_0x17976b={'count':0x0,'rows':[]},_0x187c69=_[_0x17ab35(0x19f)](db[_0x17ab35(0x1bd)][_0x17ab35(0x164)],function(_0x40ce17){const _0x46ebd9=_0x17ab35;return{'name':_0x40ce17[_0x46ebd9(0x15e)],'type':_0x40ce17[_0x46ebd9(0x15f)][_0x46ebd9(0x176)]};});_0x5619ff[_0x17ab35(0x16c)]=_[_0x17ab35(0x19f)](_0x187c69,'name'),_0x5619ff[_0x17ab35(0x169)]=_[_0x17ab35(0x155)](_0x3f29d4[_0x17ab35(0x169)]),_0x5619ff[_0x17ab35(0x174)]=_[_0x17ab35(0x17d)](_0x5619ff['model'],_0x5619ff[_0x17ab35(0x169)]),_0x96a5d5[_0x17ab35(0x17c)]=_[_0x17ab35(0x17d)](_0x5619ff[_0x17ab35(0x16c)],qs[_0x17ab35(0x167)](_0x3f29d4[_0x17ab35(0x169)][_0x17ab35(0x167)])),_0x96a5d5[_0x17ab35(0x17c)]=_0x96a5d5[_0x17ab35(0x17c)]['length']?_0x96a5d5[_0x17ab35(0x17c)]:_0x5619ff[_0x17ab35(0x16c)];typeof _0x3f29d4['query'][_0x17ab35(0x198)]===_0x17ab35(0x1b2)&&(_0x96a5d5['limit']=qs[_0x17ab35(0x185)](_0x3f29d4[_0x17ab35(0x169)][_0x17ab35(0x185)]),_0x96a5d5['offset']=qs['offset'](_0x3f29d4[_0x17ab35(0x169)][_0x17ab35(0x19a)]));_0x96a5d5[_0x17ab35(0x1ac)]=qs[_0x17ab35(0x170)](_0x3f29d4[_0x17ab35(0x169)][_0x17ab35(0x170)]),_0x96a5d5[_0x17ab35(0x1a0)]=qs['filters'](_[_0x17ab35(0x186)](_0x3f29d4['query'],_0x5619ff[_0x17ab35(0x174)]),_0x187c69);_0x3f29d4[_0x17ab35(0x169)][_0x17ab35(0x157)]&&(_0x96a5d5[_0x17ab35(0x1a0)]=_['merge'](_0x96a5d5[_0x17ab35(0x1a0)],{[Op['or']]:_[_0x17ab35(0x19f)](_0x187c69,function(_0x44b7cd){const _0x2742a9=_0x17ab35;if(_0x44b7cd[_0x2742a9(0x15f)]!==_0x2742a9(0x19e)){const _0x270548={};return _0x270548[_0x44b7cd['name']]={[Op['like']]:'%'+_0x3f29d4[_0x2742a9(0x169)][_0x2742a9(0x157)]+'%'},_0x270548;}})}));_0x96a5d5=_[_0x17ab35(0x187)]({},_0x96a5d5,_0x3f29d4[_0x17ab35(0x163)]);const _0x33ff7b={'where':_0x96a5d5[_0x17ab35(0x1a0)]};return db[_0x17ab35(0x1bd)][_0x17ab35(0x15d)](_0x33ff7b)[_0x17ab35(0x16a)](function(_0x553622){const _0x16e4c4=_0x17ab35;return _0x17976b['count']=_0x553622,_0x3f29d4[_0x16e4c4(0x169)][_0x16e4c4(0x15b)]&&(_0x96a5d5[_0x16e4c4(0x165)]=[{'all':!![]}]),db[_0x16e4c4(0x1bd)][_0x16e4c4(0x18f)](_0x96a5d5);})['then'](function(_0xf3a486){return _0x17976b['rows']=_0xf3a486,_0x17976b;})[_0x17ab35(0x16a)](respondWithFilteredResult(_0x183c44,_0x96a5d5))['catch'](handleError(_0x183c44,null));},exports['show']=function(_0x1901f4,_0x4c8eaa){const _0x5c6d8f=a51_0x2ba11d;let _0x31a8ff={'raw':![],'where':{'id':_0x1901f4['params']['id']}};const _0x44faa1={};return _0x44faa1[_0x5c6d8f(0x16c)]=_['keys'](db[_0x5c6d8f(0x1bd)][_0x5c6d8f(0x164)]),_0x44faa1[_0x5c6d8f(0x169)]=_[_0x5c6d8f(0x155)](_0x1901f4[_0x5c6d8f(0x169)]),_0x44faa1[_0x5c6d8f(0x174)]=_['intersection'](_0x44faa1['model'],_0x44faa1[_0x5c6d8f(0x169)]),_0x31a8ff[_0x5c6d8f(0x17c)]=_[_0x5c6d8f(0x17d)](_0x44faa1['model'],qs[_0x5c6d8f(0x167)](_0x1901f4[_0x5c6d8f(0x169)][_0x5c6d8f(0x167)])),_0x31a8ff[_0x5c6d8f(0x17c)]=_0x31a8ff[_0x5c6d8f(0x17c)][_0x5c6d8f(0x188)]?_0x31a8ff[_0x5c6d8f(0x17c)]:_0x44faa1[_0x5c6d8f(0x16c)],_0x1901f4[_0x5c6d8f(0x169)]['includeAll']&&(_0x31a8ff[_0x5c6d8f(0x165)]=[{'all':!![]}]),_0x31a8ff=_[_0x5c6d8f(0x187)]({},_0x31a8ff,_0x1901f4[_0x5c6d8f(0x163)]),db[_0x5c6d8f(0x1bd)]['findOne'](_0x31a8ff)[_0x5c6d8f(0x16a)](handleEntityNotFound(_0x4c8eaa,null))[_0x5c6d8f(0x16a)](respondWithResult(_0x4c8eaa,null))[_0x5c6d8f(0x16b)](handleError(_0x4c8eaa,null));},exports[a51_0x2ba11d(0x19b)]=function(_0x304108,_0x1e89a5){const _0x3b4b44=a51_0x2ba11d;return db['Campaign'][_0x3b4b44(0x19b)](_0x304108['body'],{})[_0x3b4b44(0x16a)](function(_0x5d343c){const _0x1dd316=_0x3b4b44,_0x247d01=_0x304108[_0x1dd316(0x16f)][_0x1dd316(0x159)]({'plain':!![]});if(!_0x247d01)throw new Error(_0x1dd316(0x1a1));if(_0x247d01['role']===_0x1dd316(0x16f)){const _0x381b1b=_0x5d343c[_0x1dd316(0x159)]({'plain':!![]}),_0x20c656='IvrCampaigns';return db[_0x1dd316(0x15c)][_0x1dd316(0x166)]({'where':{'name':_0x20c656,'userProfileId':_0x247d01[_0x1dd316(0x1a2)]},'raw':!![]})[_0x1dd316(0x16a)](function(_0xb9f44c){const _0x4e4c00=_0x1dd316;return _0xb9f44c&&_0xb9f44c[_0x4e4c00(0x1a6)]===0x0?db['UserProfileResource']['create']({'name':_0x381b1b[_0x4e4c00(0x1af)],'resourceId':_0x381b1b['id'],'type':_0xb9f44c[_0x4e4c00(0x1af)],'sectionId':_0xb9f44c['id']},{})[_0x4e4c00(0x16a)](function(){return _0x5d343c;}):_0x5d343c;})[_0x1dd316(0x16b)](function(_0x2a6932){const _0x9fca23=_0x1dd316;logger[_0x9fca23(0x177)](_0x9fca23(0x1a4),_0x2a6932);throw _0x2a6932;});}return _0x5d343c;})['then'](respondWithResult(_0x1e89a5,0xc9))[_0x3b4b44(0x16b)](handleError(_0x1e89a5,null));},exports[a51_0x2ba11d(0x1b7)]=function(_0x13c695,_0x28178b){const _0x720a77=a51_0x2ba11d;let _0x27443={'where':{'id':_0x13c695[_0x720a77(0x17b)]['id']}};const _0x2b10db={};return _0x2b10db[_0x720a77(0x16c)]=_[_0x720a77(0x155)](db[_0x720a77(0x1bd)][_0x720a77(0x164)]),_0x27443['attributes']=_[_0x720a77(0x17d)](_0x2b10db[_0x720a77(0x16c)],qs[_0x720a77(0x167)](_0x13c695[_0x720a77(0x169)]['fields'])),_0x27443['attributes']=_0x27443[_0x720a77(0x17c)][_0x720a77(0x188)]?_0x27443[_0x720a77(0x17c)]:_0x2b10db[_0x720a77(0x16c)],_0x13c695[_0x720a77(0x169)][_0x720a77(0x15b)]&&(_0x27443[_0x720a77(0x165)]=[{'all':!![]}]),_0x27443=_[_0x720a77(0x187)]({},_0x27443,_0x13c695['options']),db['Campaign']['findOne'](_0x27443)[_0x720a77(0x16a)](handleEntityNotFound(_0x28178b,null))[_0x720a77(0x16a)](function(_0x59fbaa){const _0x2ec128=_0x720a77;if(_0x59fbaa){let _0x3b7bce=_0x59fbaa[_0x2ec128(0x159)]({'plain':!![]});return _0x3b7bce=qs[_0x2ec128(0x17f)](_0x3b7bce,['id','createdAt','updatedAt']),_0x13c695[_0x2ec128(0x178)]=_[_0x2ec128(0x17f)](_0x13c695[_0x2ec128(0x178)],['id',_0x2ec128(0x1b1),_0x2ec128(0x189)]),db['Campaign'][_0x2ec128(0x19b)](_[_0x2ec128(0x187)](_0x3b7bce,_0x13c695['body']),{'include':_0x13c695[_0x2ec128(0x169)][_0x2ec128(0x15b)]?[{'all':!![]}]:undefined})['then'](function(_0x55614e){const _0x3ac65a=_0x2ec128,_0xd671da=_0x13c695[_0x3ac65a(0x16f)]['get']({'plain':!![]});if(!_0xd671da)throw new Error(_0x3ac65a(0x1a1));if(_0xd671da[_0x3ac65a(0x1a3)]===_0x3ac65a(0x16f)){const _0x5e5917=_0x55614e[_0x3ac65a(0x159)]({'plain':!![]}),_0x153984=_0x3ac65a(0x1b0);return db[_0x3ac65a(0x15c)][_0x3ac65a(0x166)]({'where':{'name':_0x153984,'userProfileId':_0xd671da['userProfileId']},'raw':!![]})['then'](function(_0x203bfe){const _0x212bfe=_0x3ac65a;return _0x203bfe&&_0x203bfe[_0x212bfe(0x1a6)]===0x0?db[_0x212bfe(0x1b9)]['create']({'name':_0x5e5917[_0x212bfe(0x1af)],'resourceId':_0x5e5917['id'],'type':_0x203bfe[_0x212bfe(0x1af)],'sectionId':_0x203bfe['id']},{})['then'](function(){return _0x55614e;}):_0x55614e;})['catch'](function(_0x5f25ae){const _0x5898db=_0x3ac65a;logger[_0x5898db(0x177)](_0x5898db(0x1a4),_0x5f25ae);throw _0x5f25ae;});}return _0x55614e;});}})[_0x720a77(0x16a)](respondWithResult(_0x28178b,0xc9))[_0x720a77(0x16b)](handleError(_0x28178b,null));},exports[a51_0x2ba11d(0x1a5)]=function(_0x33ca74,_0x17568b){const _0x98e2e4=a51_0x2ba11d;return _0x33ca74[_0x98e2e4(0x178)]['id']&&delete _0x33ca74['body']['id'],db[_0x98e2e4(0x1bd)][_0x98e2e4(0x166)]({'where':{'id':_0x33ca74[_0x98e2e4(0x17b)]['id']}})['then'](handleEntityNotFound(_0x17568b,null))[_0x98e2e4(0x16a)](saveUpdates(_0x33ca74[_0x98e2e4(0x178)],null))[_0x98e2e4(0x16a)](respondWithResult(_0x17568b,null))[_0x98e2e4(0x16b)](handleError(_0x17568b,null));},exports[a51_0x2ba11d(0x19d)]=function(_0x2f06ec,_0x1a83f1){const _0x5516e7=a51_0x2ba11d;return db['Campaign'][_0x5516e7(0x166)]({'where':{'id':_0x2f06ec[_0x5516e7(0x17b)]['id']}})['then'](handleEntityNotFound(_0x1a83f1,null))[_0x5516e7(0x16a)](removeEntity(_0x1a83f1,null))[_0x5516e7(0x16b)](handleError(_0x1a83f1,null));},exports[a51_0x2ba11d(0x16d)]=function(_0x75102,_0x2ce98d){const _0x512ad9=a51_0x2ba11d;let _0x20bc22={'raw':!![],'where':{}};const _0x46e311={},_0x5a5d5d={'count':0x0,'rows':[]};return db['Campaign']['findOne']({'where':{'id':_0x75102[_0x512ad9(0x17b)]['id']}})[_0x512ad9(0x16a)](handleEntityNotFound(_0x2ce98d,null))[_0x512ad9(0x16a)](function(_0x491e59){const _0x29e36b=_0x512ad9;if(_0x491e59)return _0x46e311['model']=_['keys'](db['CmHopper']['rawAttributes']),_0x46e311[_0x29e36b(0x169)]=_[_0x29e36b(0x155)](_0x75102[_0x29e36b(0x169)]),_0x46e311[_0x29e36b(0x174)]=_[_0x29e36b(0x17d)](_0x46e311['model'],_0x46e311['query']),_0x20bc22['attributes']=_[_0x29e36b(0x17d)](_0x46e311[_0x29e36b(0x16c)],qs[_0x29e36b(0x167)](_0x75102['query']['fields'])),_0x20bc22[_0x29e36b(0x17c)]=_0x20bc22['attributes'][_0x29e36b(0x188)]?_0x20bc22[_0x29e36b(0x17c)]:_0x46e311[_0x29e36b(0x16c)],typeof _0x75102[_0x29e36b(0x169)][_0x29e36b(0x198)]===_0x29e36b(0x1b2)&&(_0x20bc22[_0x29e36b(0x185)]=qs[_0x29e36b(0x185)](_0x75102['query'][_0x29e36b(0x185)]),_0x20bc22[_0x29e36b(0x19a)]=qs[_0x29e36b(0x19a)](_0x75102['query'][_0x29e36b(0x19a)])),_0x20bc22[_0x29e36b(0x1ac)]=qs[_0x29e36b(0x170)](_0x75102[_0x29e36b(0x169)][_0x29e36b(0x170)]),_0x20bc22['where']=qs[_0x29e36b(0x174)](_[_0x29e36b(0x186)](_0x75102['query'],_0x46e311[_0x29e36b(0x174)])),_0x20bc22[_0x29e36b(0x1a0)][_0x29e36b(0x173)]=_0x491e59['id'],_0x75102[_0x29e36b(0x169)][_0x29e36b(0x157)]&&(_0x20bc22[_0x29e36b(0x1a0)]=_['merge'](_0x20bc22['where'],{[Op['or']]:_[_0x29e36b(0x19f)](_0x20bc22['attributes'],function(_0x1e134c){const _0x579f5d=_0x29e36b,_0xc58527={};return _0xc58527[_0x1e134c]={[Op[_0x579f5d(0x1a8)]]:'%'+_0x75102[_0x579f5d(0x169)][_0x579f5d(0x157)]+'%'},_0xc58527;})})),_0x20bc22=_[_0x29e36b(0x187)]({},_0x20bc22,_0x75102[_0x29e36b(0x163)]),db['CmHopper']['count']({'where':_0x20bc22[_0x29e36b(0x1a0)]})[_0x29e36b(0x16a)](function(_0x5cea8d){const _0x335abe=_0x29e36b;return _0x5a5d5d[_0x335abe(0x15d)]=_0x5cea8d,_0x75102['query'][_0x335abe(0x15b)]&&(_0x20bc22[_0x335abe(0x165)]=[{'all':!![]}]),db[_0x335abe(0x172)][_0x335abe(0x18f)](_0x20bc22);})[_0x29e36b(0x16a)](function(_0x59a329){const _0x591933=_0x29e36b;return _0x5a5d5d[_0x591933(0x193)]=_0x59a329,_0x5a5d5d;});})[_0x512ad9(0x16a)](respondWithFilteredResult(_0x2ce98d,_0x20bc22))['catch'](handleError(_0x2ce98d,null));},exports[a51_0x2ba11d(0x1b8)]=function(_0x180725,_0x448419){const _0x327c23=a51_0x2ba11d;let _0x5510fe={'raw':!![],'where':{}};const _0x22037a={},_0x59b7c6={'count':0x0,'rows':[]};return db['Campaign'][_0x327c23(0x166)]({'where':{'id':_0x180725[_0x327c23(0x17b)]['id']}})[_0x327c23(0x16a)](handleEntityNotFound(_0x448419,null))[_0x327c23(0x16a)](function(_0x7adb70){const _0x7a3607=_0x327c23;if(_0x7adb70)return _0x22037a[_0x7a3607(0x16c)]=_[_0x7a3607(0x155)](db[_0x7a3607(0x18b)][_0x7a3607(0x164)]),_0x22037a[_0x7a3607(0x169)]=_['keys'](_0x180725[_0x7a3607(0x169)]),_0x22037a[_0x7a3607(0x174)]=_[_0x7a3607(0x17d)](_0x22037a[_0x7a3607(0x16c)],_0x22037a[_0x7a3607(0x169)]),_0x5510fe[_0x7a3607(0x17c)]=_[_0x7a3607(0x17d)](_0x22037a[_0x7a3607(0x16c)],qs[_0x7a3607(0x167)](_0x180725['query']['fields'])),_0x5510fe['attributes']=_0x5510fe[_0x7a3607(0x17c)][_0x7a3607(0x188)]?_0x5510fe[_0x7a3607(0x17c)]:_0x22037a[_0x7a3607(0x16c)],typeof _0x180725['query'][_0x7a3607(0x198)]===_0x7a3607(0x1b2)&&(_0x5510fe[_0x7a3607(0x185)]=qs[_0x7a3607(0x185)](_0x180725[_0x7a3607(0x169)][_0x7a3607(0x185)]),_0x5510fe[_0x7a3607(0x19a)]=qs[_0x7a3607(0x19a)](_0x180725[_0x7a3607(0x169)][_0x7a3607(0x19a)])),_0x5510fe[_0x7a3607(0x1ac)]=qs[_0x7a3607(0x170)](_0x180725[_0x7a3607(0x169)][_0x7a3607(0x170)]),_0x5510fe[_0x7a3607(0x1a0)]=qs[_0x7a3607(0x174)](_[_0x7a3607(0x186)](_0x180725[_0x7a3607(0x169)],_0x22037a[_0x7a3607(0x174)])),_0x5510fe[_0x7a3607(0x1a0)][_0x7a3607(0x173)]=_0x7adb70['id'],_0x180725[_0x7a3607(0x169)][_0x7a3607(0x157)]&&(_0x5510fe['where']=_[_0x7a3607(0x187)](_0x5510fe[_0x7a3607(0x1a0)],{[Op['or']]:_[_0x7a3607(0x19f)](_0x5510fe['attributes'],function(_0x350b4f){const _0x4ba360=_0x7a3607,_0x52d12f={};return _0x52d12f[_0x350b4f]={[Op[_0x4ba360(0x1a8)]]:'%'+_0x180725[_0x4ba360(0x169)][_0x4ba360(0x157)]+'%'},_0x52d12f;})})),_0x5510fe=_[_0x7a3607(0x187)]({},_0x5510fe,_0x180725[_0x7a3607(0x163)]),db['CmHopperHistory'][_0x7a3607(0x15d)]({'where':_0x5510fe['where']})[_0x7a3607(0x16a)](function(_0x58a287){const _0x382ef2=_0x7a3607;return _0x59b7c6['count']=_0x58a287,_0x180725[_0x382ef2(0x169)][_0x382ef2(0x15b)]&&(_0x5510fe['include']=[{'all':!![]}]),db[_0x382ef2(0x18b)][_0x382ef2(0x18f)](_0x5510fe);})['then'](function(_0x1e2677){const _0x4cbe6a=_0x7a3607;return _0x59b7c6[_0x4cbe6a(0x193)]=_0x1e2677,_0x59b7c6;});})['then'](respondWithFilteredResult(_0x448419,_0x5510fe))['catch'](handleError(_0x448419,null));},exports[a51_0x2ba11d(0x1ae)]=function(_0xcf1189,_0x120b38){const _0xfb5325=a51_0x2ba11d;let _0x3650d3={'raw':!![],'where':{}};const _0x4f8381={},_0x441ff2={'count':0x0,'rows':[]};return db[_0xfb5325(0x1bd)][_0xfb5325(0x166)]({'where':{'id':_0xcf1189['params']['id']}})[_0xfb5325(0x16a)](handleEntityNotFound(_0x120b38,null))['then'](function(_0x2ba662){const _0x334e21=_0xfb5325;if(_0x2ba662)return _0x4f8381[_0x334e21(0x16c)]=_[_0x334e21(0x155)](db['CmHopperFinal'][_0x334e21(0x164)]),_0x4f8381['query']=_[_0x334e21(0x155)](_0xcf1189[_0x334e21(0x169)]),_0x4f8381[_0x334e21(0x174)]=_[_0x334e21(0x17d)](_0x4f8381[_0x334e21(0x16c)],_0x4f8381[_0x334e21(0x169)]),_0x3650d3['attributes']=_['intersection'](_0x4f8381[_0x334e21(0x16c)],qs[_0x334e21(0x167)](_0xcf1189[_0x334e21(0x169)]['fields'])),_0x3650d3[_0x334e21(0x17c)]=_0x3650d3[_0x334e21(0x17c)]['length']?_0x3650d3[_0x334e21(0x17c)]:_0x4f8381[_0x334e21(0x16c)],typeof _0xcf1189[_0x334e21(0x169)][_0x334e21(0x198)]==='undefined'&&(_0x3650d3['limit']=qs[_0x334e21(0x185)](_0xcf1189[_0x334e21(0x169)][_0x334e21(0x185)]),_0x3650d3[_0x334e21(0x19a)]=qs[_0x334e21(0x19a)](_0xcf1189[_0x334e21(0x169)][_0x334e21(0x19a)])),_0x3650d3[_0x334e21(0x1ac)]=qs[_0x334e21(0x170)](_0xcf1189[_0x334e21(0x169)][_0x334e21(0x170)]),_0x3650d3[_0x334e21(0x1a0)]=qs[_0x334e21(0x174)](_[_0x334e21(0x186)](_0xcf1189[_0x334e21(0x169)],_0x4f8381[_0x334e21(0x174)])),_0x3650d3[_0x334e21(0x1a0)][_0x334e21(0x173)]=_0x2ba662['id'],_0xcf1189[_0x334e21(0x169)][_0x334e21(0x157)]&&(_0x3650d3[_0x334e21(0x1a0)]=_[_0x334e21(0x187)](_0x3650d3[_0x334e21(0x1a0)],{[Op['or']]:_[_0x334e21(0x19f)](_0x3650d3['attributes'],function(_0x5e2adc){const _0x53ae50=_0x334e21,_0x1f9080={};return _0x1f9080[_0x5e2adc]={[Op[_0x53ae50(0x1a8)]]:'%'+_0xcf1189[_0x53ae50(0x169)][_0x53ae50(0x157)]+'%'},_0x1f9080;})})),_0x3650d3=_[_0x334e21(0x187)]({},_0x3650d3,_0xcf1189[_0x334e21(0x163)]),db[_0x334e21(0x199)][_0x334e21(0x15d)]({'where':_0x3650d3['where']})[_0x334e21(0x16a)](function(_0x303877){const _0x39309a=_0x334e21;return _0x441ff2['count']=_0x303877,_0xcf1189[_0x39309a(0x169)][_0x39309a(0x15b)]&&(_0x3650d3['include']=[{'all':!![]}]),db[_0x39309a(0x199)][_0x39309a(0x18f)](_0x3650d3);})[_0x334e21(0x16a)](function(_0x2bd37d){const _0x503d31=_0x334e21;return _0x441ff2[_0x503d31(0x193)]=_0x2bd37d,_0x441ff2;});})[_0xfb5325(0x16a)](respondWithFilteredResult(_0x120b38,_0x3650d3))[_0xfb5325(0x16b)](handleError(_0x120b38,null));},exports['getHopperBlacks']=function(_0x98d163,_0x35540a){const _0x309830=a51_0x2ba11d;let _0x2841d8={'raw':!![],'where':{}};const _0x2eb9f1={},_0x4b91de={'count':0x0,'rows':[]};return db[_0x309830(0x1bd)][_0x309830(0x166)]({'where':{'id':_0x98d163[_0x309830(0x17b)]['id']}})[_0x309830(0x16a)](handleEntityNotFound(_0x35540a,null))[_0x309830(0x16a)](function(_0x4f514e){const _0x1884d0=_0x309830;if(_0x4f514e)return _0x2eb9f1[_0x1884d0(0x16c)]=_[_0x1884d0(0x155)](db[_0x1884d0(0x1bc)][_0x1884d0(0x164)]),_0x2eb9f1[_0x1884d0(0x169)]=_[_0x1884d0(0x155)](_0x98d163['query']),_0x2eb9f1['filters']=_['intersection'](_0x2eb9f1[_0x1884d0(0x16c)],_0x2eb9f1[_0x1884d0(0x169)]),_0x2841d8[_0x1884d0(0x17c)]=_[_0x1884d0(0x17d)](_0x2eb9f1['model'],qs[_0x1884d0(0x167)](_0x98d163[_0x1884d0(0x169)][_0x1884d0(0x167)])),_0x2841d8['attributes']=_0x2841d8[_0x1884d0(0x17c)]['length']?_0x2841d8[_0x1884d0(0x17c)]:_0x2eb9f1[_0x1884d0(0x16c)],typeof _0x98d163['query'][_0x1884d0(0x198)]===_0x1884d0(0x1b2)&&(_0x2841d8['limit']=qs[_0x1884d0(0x185)](_0x98d163[_0x1884d0(0x169)][_0x1884d0(0x185)]),_0x2841d8[_0x1884d0(0x19a)]=qs['offset'](_0x98d163[_0x1884d0(0x169)][_0x1884d0(0x19a)])),_0x2841d8['order']=qs[_0x1884d0(0x170)](_0x98d163[_0x1884d0(0x169)][_0x1884d0(0x170)]),_0x2841d8[_0x1884d0(0x1a0)]=qs['filters'](_[_0x1884d0(0x186)](_0x98d163['query'],_0x2eb9f1[_0x1884d0(0x174)])),_0x2841d8[_0x1884d0(0x1a0)][_0x1884d0(0x173)]=_0x4f514e['id'],_0x98d163[_0x1884d0(0x169)][_0x1884d0(0x157)]&&(_0x2841d8[_0x1884d0(0x1a0)]=_[_0x1884d0(0x187)](_0x2841d8[_0x1884d0(0x1a0)],{[Op['or']]:_[_0x1884d0(0x19f)](_0x2841d8['attributes'],function(_0xf6fa4b){const _0x21989a=_0x1884d0,_0x567787={};return _0x567787[_0xf6fa4b]={[Op[_0x21989a(0x1a8)]]:'%'+_0x98d163['query'][_0x21989a(0x157)]+'%'},_0x567787;})})),_0x2841d8=_['merge']({},_0x2841d8,_0x98d163[_0x1884d0(0x163)]),db[_0x1884d0(0x1bc)][_0x1884d0(0x15d)]({'where':_0x2841d8[_0x1884d0(0x1a0)]})[_0x1884d0(0x16a)](function(_0x353379){const _0x1072f2=_0x1884d0;return _0x4b91de[_0x1072f2(0x15d)]=_0x353379,_0x98d163['query'][_0x1072f2(0x15b)]&&(_0x2841d8[_0x1072f2(0x165)]=[{'all':!![]}]),db[_0x1072f2(0x1bc)][_0x1072f2(0x18f)](_0x2841d8);})[_0x1884d0(0x16a)](function(_0x594ff7){const _0x5b5041=_0x1884d0;return _0x4b91de[_0x5b5041(0x193)]=_0x594ff7,_0x4b91de;});})['then'](respondWithFilteredResult(_0x35540a,_0x2841d8))['catch'](handleError(_0x35540a,null));},exports[a51_0x2ba11d(0x17a)]=function(_0x9edcc1,_0x21953f){const _0x55f341=a51_0x2ba11d;let _0x29fa43={};const _0x48573e={};let _0x15ed07,_0x33d33d;return db[_0x55f341(0x1bd)][_0x55f341(0x166)]({'where':{'id':_0x9edcc1[_0x55f341(0x17b)]['id']}})[_0x55f341(0x16a)](handleEntityNotFound(_0x21953f,null))[_0x55f341(0x16a)](function(_0x807daa){const _0xab792c=_0x55f341;if(_0x807daa)return _0x15ed07=_0x807daa,_0x48573e[_0xab792c(0x16c)]=_[_0xab792c(0x155)](db[_0xab792c(0x179)][_0xab792c(0x164)]),_0x48573e[_0xab792c(0x169)]=_[_0xab792c(0x155)](_0x9edcc1[_0xab792c(0x169)]),_0x48573e[_0xab792c(0x174)]=_[_0xab792c(0x17d)](_0x48573e[_0xab792c(0x16c)],_0x48573e['query']),_0x29fa43[_0xab792c(0x17c)]=_[_0xab792c(0x17d)](_0x48573e['model'],qs[_0xab792c(0x167)](_0x9edcc1[_0xab792c(0x169)][_0xab792c(0x167)])),_0x29fa43[_0xab792c(0x17c)]=_0x29fa43[_0xab792c(0x17c)][_0xab792c(0x188)]?_0x29fa43[_0xab792c(0x17c)]:_0x48573e['model'],_0x29fa43[_0xab792c(0x1ac)]=qs[_0xab792c(0x170)](_0x9edcc1[_0xab792c(0x169)]['sort']),_0x29fa43['where']=qs[_0xab792c(0x174)](_[_0xab792c(0x186)](_0x9edcc1[_0xab792c(0x169)],_0x48573e['filters'])),_0x9edcc1[_0xab792c(0x169)][_0xab792c(0x157)]&&(_0x29fa43[_0xab792c(0x1a0)]=_[_0xab792c(0x187)](_0x29fa43['where'],{[Op['or']]:_[_0xab792c(0x19f)](_0x29fa43[_0xab792c(0x17c)],function(_0x5edb19){const _0x52a6df=_0xab792c,_0x182e3c={};return _0x182e3c[_0x5edb19]={[Op['like']]:'%'+_0x9edcc1[_0x52a6df(0x169)][_0x52a6df(0x157)]+'%'},_0x182e3c;})})),_0x29fa43=_[_0xab792c(0x187)]({},_0x29fa43,_0x9edcc1[_0xab792c(0x163)]),_0x15ed07['getLists'](_0x29fa43);})[_0x55f341(0x16a)](function(_0x587f9e){const _0x3fb5cf=_0x55f341;if(_0x587f9e)return _0x33d33d=_0x587f9e['length'],typeof _0x9edcc1[_0x3fb5cf(0x169)][_0x3fb5cf(0x198)]===_0x3fb5cf(0x1b2)&&(_0x29fa43['limit']=qs['limit'](_0x9edcc1[_0x3fb5cf(0x169)][_0x3fb5cf(0x185)]),_0x29fa43['offset']=qs[_0x3fb5cf(0x19a)](_0x9edcc1[_0x3fb5cf(0x169)]['offset'])),_0x15ed07['getLists'](_0x29fa43);})['then'](function(_0x1ce577){if(_0x1ce577)return _0x1ce577?{'count':_0x33d33d,'rows':_0x1ce577}:null;})[_0x55f341(0x16a)](respondWithResult(_0x21953f,null))['catch'](handleError(_0x21953f,null));},exports['addLists']=function(_0x3121e1,_0x586714){const _0xcebb10=a51_0x2ba11d;let _0x32dcbd,_0x5d03c4;return db[_0xcebb10(0x1bd)][_0xcebb10(0x166)]({'where':{'id':_0x3121e1[_0xcebb10(0x17b)]['id']}})['then'](handleEntityNotFound(_0x586714,null))[_0xcebb10(0x16a)](function(_0x201f16){const _0x1c33fe=_0xcebb10;if(_0x201f16)return _0x5d03c4=_0x201f16,_0x201f16['addLists'](_0x3121e1[_0x1c33fe(0x178)][_0x1c33fe(0x184)],{'through':_[_0x1c33fe(0x17f)](_0x3121e1[_0x1c33fe(0x178)],[_0x1c33fe(0x184),'id'])});return null;})[_0xcebb10(0x16a)](function(_0x25ec2d){const _0x789dd1=_0xcebb10;let _0x27c7fd;_0x32dcbd=_0x25ec2d||[];const _0x54fa18=[];if(_0x25ec2d){for(let _0x19588a=0x0;_0x19588a<_0x25ec2d[_0x789dd1(0x188)];_0x19588a+=0x1){const _0x4879d2=_0x25ec2d[_0x19588a][_0x789dd1(0x159)]({'plain':!![]});_0x5d03c4['dialCheckDuplicateType']=_0x3121e1[_0x789dd1(0x178)][_0x789dd1(0x1b6)]?_0x3121e1[_0x789dd1(0x178)][_0x789dd1(0x1b6)]:_0x5d03c4[_0x789dd1(0x1b6)];switch(_0x5d03c4['dialCheckDuplicateType']){case'always':_0x27c7fd=squel[_0x789dd1(0x181)]()[_0x789dd1(0x156)](_0x789dd1(0x19c))[_0x789dd1(0x1be)]([_0x789dd1(0x18d),'scheduledAt',_0x789dd1(0x18a),_0x789dd1(0x1b4),_0x789dd1(0x173),_0x789dd1(0x1b1),_0x789dd1(0x189)],squel[_0x789dd1(0x1b3)]()[_0x789dd1(0x161)](_0x789dd1(0x18d),_0x789dd1(0x18d))[_0x789dd1(0x161)](_0x789dd1(0x154),_0x789dd1(0x180))[_0x789dd1(0x161)]('id',_0x789dd1(0x18a))['field'](_0x4879d2[_0x789dd1(0x1aa)][_0x789dd1(0x1bb)](),_0x789dd1(0x1b4))[_0x789dd1(0x161)](_0x3121e1[_0x789dd1(0x17b)]['id']['toString'](),'CampaignId')[_0x789dd1(0x161)](_0x789dd1(0x154),_0x789dd1(0x1b1))[_0x789dd1(0x161)](_0x789dd1(0x154),_0x789dd1(0x189))['from'](_0x789dd1(0x1c2))[_0x789dd1(0x1a0)](_0x789dd1(0x16e))[_0x789dd1(0x1a0)](_0x789dd1(0x1ad),_0x4879d2[_0x789dd1(0x1aa)][_0x789dd1(0x1bb)]())[_0x789dd1(0x1a0)](_0x789dd1(0x182))[_0x789dd1(0x1a0)]('phone\x20NOT\x20IN\x20(?)',squel[_0x789dd1(0x1b3)]()[_0x789dd1(0x161)]('COALESCE(calleridnum,\x27\x27)')['from'](_0x789dd1(0x1bf))[_0x789dd1(0x1a0)](_0x789dd1(0x162),_0x3121e1['params']['id'][_0x789dd1(0x1bb)]()))[_0x789dd1(0x1a0)](_0x789dd1(0x17e),squel['select']()[_0x789dd1(0x161)]('COALESCE(phone,\x27\x27)')[_0x789dd1(0x1ab)](_0x789dd1(0x19c))[_0x789dd1(0x1a0)](_0x789dd1(0x162),_0x3121e1['params']['id'][_0x789dd1(0x1bb)]())))[_0x789dd1(0x1bb)]();break;case _0x789dd1(0x192):_0x27c7fd=squel['insert']()[_0x789dd1(0x156)](_0x789dd1(0x19c))[_0x789dd1(0x1be)](['phone',_0x789dd1(0x180),_0x789dd1(0x18a),_0x789dd1(0x1b4),'CampaignId',_0x789dd1(0x1b1),'updatedAt'],squel[_0x789dd1(0x1b3)]()[_0x789dd1(0x161)]('phone',_0x789dd1(0x18d))[_0x789dd1(0x161)]('NOW()',_0x789dd1(0x180))['field']('id',_0x789dd1(0x18a))['field'](_0x4879d2[_0x789dd1(0x1aa)][_0x789dd1(0x1bb)](),_0x789dd1(0x1b4))['field'](_0x3121e1[_0x789dd1(0x17b)]['id'][_0x789dd1(0x1bb)](),_0x789dd1(0x173))[_0x789dd1(0x161)](_0x789dd1(0x154),'createdAt')[_0x789dd1(0x161)](_0x789dd1(0x154),_0x789dd1(0x189))[_0x789dd1(0x1ab)](_0x789dd1(0x1c2))['where'](_0x789dd1(0x16e))[_0x789dd1(0x1a0)]('ListId\x20=\x20?',_0x4879d2[_0x789dd1(0x1aa)][_0x789dd1(0x1bb)]())[_0x789dd1(0x1a0)](_0x789dd1(0x182))[_0x789dd1(0x1a0)](_0x789dd1(0x17e),squel['select']()[_0x789dd1(0x161)]('COALESCE(phone,\x27\x27)')[_0x789dd1(0x1ab)](_0x789dd1(0x19c))['where'](_0x789dd1(0x162),_0x3121e1['params']['id']['toString']())))[_0x789dd1(0x1bb)]();break;default:_0x27c7fd=squel[_0x789dd1(0x181)]()[_0x789dd1(0x156)](_0x789dd1(0x19c))[_0x789dd1(0x1be)](['phone',_0x789dd1(0x180),_0x789dd1(0x18a),_0x789dd1(0x1b4),_0x789dd1(0x173),'createdAt',_0x789dd1(0x189)],squel[_0x789dd1(0x1b3)]()[_0x789dd1(0x161)](_0x789dd1(0x18d),_0x789dd1(0x18d))[_0x789dd1(0x161)](_0x789dd1(0x154),_0x789dd1(0x180))['field']('id',_0x789dd1(0x18a))['field'](_0x4879d2[_0x789dd1(0x1aa)][_0x789dd1(0x1bb)](),_0x789dd1(0x1b4))[_0x789dd1(0x161)](_0x3121e1['params']['id'][_0x789dd1(0x1bb)](),'CampaignId')[_0x789dd1(0x161)](_0x789dd1(0x154),_0x789dd1(0x1b1))[_0x789dd1(0x161)](_0x789dd1(0x154),_0x789dd1(0x189))['from'](_0x789dd1(0x1c2))['where'](_0x789dd1(0x16e))[_0x789dd1(0x1a0)]('ListId\x20=\x20?',_0x4879d2[_0x789dd1(0x1aa)][_0x789dd1(0x1bb)]())[_0x789dd1(0x1a0)]('phone\x20IS\x20NOT\x20NULL'))[_0x789dd1(0x1bb)]();}_0x54fa18[_0x789dd1(0x1c0)](db[_0x789dd1(0x168)][_0x789dd1(0x169)](_0x27c7fd));}return Promise[_0x789dd1(0x1c1)](_0x54fa18);}})[_0xcebb10(0x16a)](function(){return _0x32dcbd;})[_0xcebb10(0x16a)](respondWithResult(_0x586714,null))[_0xcebb10(0x16b)](handleError(_0x586714,null));},exports[a51_0x2ba11d(0x175)]=function(_0x4b59b5,_0x190760){const _0xd61ca6=a51_0x2ba11d;return db[_0xd61ca6(0x1bd)][_0xd61ca6(0x166)]({'where':{'id':_0x4b59b5[_0xd61ca6(0x17b)]['id']}})[_0xd61ca6(0x16a)](handleEntityNotFound(_0x190760,null))[_0xd61ca6(0x16a)](function(_0x5e5a46){const _0x7cc7=_0xd61ca6;if(_0x5e5a46)return _0x5e5a46['removeLists'](_0x4b59b5[_0x7cc7(0x169)][_0x7cc7(0x184)]);})[_0xd61ca6(0x16a)](function(_0x406d01){const _0x4ff2ce=_0xd61ca6;if(_0x406d01)return db[_0x4ff2ce(0x172)][_0x4ff2ce(0x19d)]({'where':{'ListId':_0x4b59b5[_0x4ff2ce(0x169)]['ids'],'CampaignId':_0x4b59b5[_0x4ff2ce(0x17b)]['id']}})[_0x4ff2ce(0x16a)](function(){return _0x406d01;});})[_0xd61ca6(0x16a)](respondWithStatusCode(_0x190760,null))['catch'](handleError(_0x190760,null));},exports[a51_0x2ba11d(0x15a)]=function(_0x21a1f0,_0x52c287){const _0x5e21b0=a51_0x2ba11d;let _0x240cf1={'raw':!![],'where':{}};const _0x59b6a1={},_0x290777={'count':0x0,'rows':[]};return db[_0x5e21b0(0x1bd)][_0x5e21b0(0x166)]({'where':{'id':_0x21a1f0[_0x5e21b0(0x17b)]['id']}})[_0x5e21b0(0x16a)](handleEntityNotFound(_0x52c287,null))[_0x5e21b0(0x16a)](function(_0x1f5de6){const _0x59621d=_0x5e21b0;if(_0x1f5de6)return _0x59b6a1[_0x59621d(0x16c)]=_['keys'](db[_0x59621d(0x179)][_0x59621d(0x164)]),_0x59b6a1[_0x59621d(0x169)]=_[_0x59621d(0x155)](_0x21a1f0[_0x59621d(0x169)]),_0x59b6a1[_0x59621d(0x174)]=_['intersection'](_0x59b6a1[_0x59621d(0x16c)],_0x59b6a1[_0x59621d(0x169)]),_0x240cf1[_0x59621d(0x17c)]=_[_0x59621d(0x17d)](_0x59b6a1[_0x59621d(0x16c)],qs[_0x59621d(0x167)](_0x21a1f0[_0x59621d(0x169)][_0x59621d(0x167)])),_0x240cf1[_0x59621d(0x17c)]=_0x240cf1[_0x59621d(0x17c)][_0x59621d(0x188)]?_0x240cf1[_0x59621d(0x17c)]:_0x59b6a1['model'],typeof _0x21a1f0['query'][_0x59621d(0x198)]===_0x59621d(0x1b2)&&(_0x240cf1['limit']=qs['limit'](_0x21a1f0[_0x59621d(0x169)][_0x59621d(0x185)]),_0x240cf1[_0x59621d(0x19a)]=qs[_0x59621d(0x19a)](_0x21a1f0[_0x59621d(0x169)][_0x59621d(0x19a)])),_0x240cf1[_0x59621d(0x1ac)]=qs[_0x59621d(0x170)](_0x21a1f0['query'][_0x59621d(0x170)]),_0x240cf1[_0x59621d(0x1a0)]=qs[_0x59621d(0x174)](_[_0x59621d(0x186)](_0x21a1f0[_0x59621d(0x169)],_0x59b6a1[_0x59621d(0x174)])),_0x240cf1[_0x59621d(0x1a0)][_0x59621d(0x173)]=_0x1f5de6['id'],_0x21a1f0['query']['filter']&&(_0x240cf1['where']=_[_0x59621d(0x187)](_0x240cf1['where'],{[Op['or']]:_[_0x59621d(0x19f)](_0x240cf1[_0x59621d(0x17c)],function(_0x784cad){const _0x20d6e9=_0x59621d,_0xfe213={};return _0xfe213[_0x784cad]={[Op[_0x20d6e9(0x1a8)]]:'%'+_0x21a1f0['query'][_0x20d6e9(0x157)]+'%'},_0xfe213;})})),_0x240cf1=_[_0x59621d(0x187)]({},_0x240cf1,_0x21a1f0[_0x59621d(0x163)]),db[_0x59621d(0x179)][_0x59621d(0x15d)]({'where':_0x240cf1[_0x59621d(0x1a0)]})[_0x59621d(0x16a)](function(_0x2a1c48){const _0xdf9776=_0x59621d;return _0x290777['count']=_0x2a1c48,_0x21a1f0[_0xdf9776(0x169)]['includeAll']&&(_0x240cf1[_0xdf9776(0x165)]=[{'all':!![]}]),db[_0xdf9776(0x179)]['findAll'](_0x240cf1);})[_0x59621d(0x16a)](function(_0x5ce0fb){const _0x503366=_0x59621d;return _0x290777[_0x503366(0x193)]=_0x5ce0fb,_0x290777;});})['then'](respondWithFilteredResult(_0x52c287,_0x240cf1))[_0x5e21b0(0x16b)](handleError(_0x52c287,null));},exports[a51_0x2ba11d(0x197)]=function(_0x31d14d,_0x1f0197){const _0x38816e=a51_0x2ba11d;let _0x4c4716;return db[_0x38816e(0x1bd)][_0x38816e(0x166)]({'where':{'id':_0x31d14d[_0x38816e(0x17b)]['id']}})[_0x38816e(0x16a)](handleEntityNotFound(_0x1f0197,null))[_0x38816e(0x16a)](function(_0x594f73){const _0x7a6920=_0x38816e;if(_0x594f73)return _0x594f73[_0x7a6920(0x197)](_0x31d14d[_0x7a6920(0x178)][_0x7a6920(0x184)],{'through':_[_0x7a6920(0x17f)](_0x31d14d['body'],[_0x7a6920(0x184),'id'])});return null;})['then'](function(_0x130c1e){const _0x2e7a4c=_0x38816e;let _0x4e3fb8;_0x4c4716=_0x130c1e||[];const _0xf5a407=[];if(_0x130c1e){for(let _0x168b47=0x0;_0x168b47<_0x130c1e['length'];_0x168b47+=0x1){const _0x5c2eba=_0x130c1e[_0x168b47][_0x2e7a4c(0x159)]({'plain':!![]});_0x4e3fb8=squel[_0x2e7a4c(0x181)]()[_0x2e7a4c(0x156)]('cm_hopper_black')['fromQuery']([_0x2e7a4c(0x18d),_0x2e7a4c(0x18a),_0x2e7a4c(0x1b4),_0x2e7a4c(0x173),_0x2e7a4c(0x1b1),_0x2e7a4c(0x189)],squel[_0x2e7a4c(0x1b3)]()[_0x2e7a4c(0x161)](_0x2e7a4c(0x18d),'phone')[_0x2e7a4c(0x161)]('id',_0x2e7a4c(0x18a))['field'](_0x5c2eba[_0x2e7a4c(0x1aa)][_0x2e7a4c(0x1bb)](),'ListId')[_0x2e7a4c(0x161)](_0x31d14d['params']['id']['toString'](),_0x2e7a4c(0x173))['field'](_0x2e7a4c(0x154),'createdAt')[_0x2e7a4c(0x161)](_0x2e7a4c(0x154),_0x2e7a4c(0x189))[_0x2e7a4c(0x1ab)](_0x2e7a4c(0x1c2))[_0x2e7a4c(0x1a0)](_0x2e7a4c(0x16e))[_0x2e7a4c(0x1a0)]('ListId\x20=\x20?',_0x5c2eba[_0x2e7a4c(0x1aa)]['toString']())[_0x2e7a4c(0x1a0)](_0x2e7a4c(0x182)))[_0x2e7a4c(0x1bb)](),_0xf5a407['push'](db[_0x2e7a4c(0x168)][_0x2e7a4c(0x169)](_0x4e3fb8));}return Promise[_0x2e7a4c(0x1c1)](_0xf5a407);}})[_0x38816e(0x16a)](function(){return _0x4c4716;})[_0x38816e(0x16a)](respondWithResult(_0x1f0197,null))[_0x38816e(0x16b)](handleError(_0x1f0197,null));},exports[a51_0x2ba11d(0x1b5)]=function(_0x5b96a2,_0x189581){const _0x20834b=a51_0x2ba11d;return db[_0x20834b(0x1bd)][_0x20834b(0x166)]({'where':{'id':_0x5b96a2[_0x20834b(0x17b)]['id']}})[_0x20834b(0x16a)](handleEntityNotFound(_0x189581,null))[_0x20834b(0x16a)](function(_0x308a8e){const _0xda7d27=_0x20834b;if(_0x308a8e)return _0x308a8e['removeBlackLists'](_0x5b96a2[_0xda7d27(0x169)][_0xda7d27(0x184)]);})[_0x20834b(0x16a)](function(_0xfcaea1){const _0x30924f=_0x20834b;if(_0xfcaea1)return db[_0x30924f(0x1bc)][_0x30924f(0x19d)]({'where':{'ListId':_0x5b96a2[_0x30924f(0x169)][_0x30924f(0x184)],'CampaignId':_0x5b96a2[_0x30924f(0x17b)]['id']}})[_0x30924f(0x16a)](function(){return _0xfcaea1;});})['then'](respondWithStatusCode(_0x189581,null))[_0x20834b(0x16b)](handleError(_0x189581,null));}; \ No newline at end of file diff --git a/server/api/campaign/campaign.model.js b/server/api/campaign/campaign.model.js index 0ff029b..8b3e1db 100644 --- a/server/api/campaign/campaign.model.js +++ b/server/api/campaign/campaign.model.js @@ -1 +1 @@ -const a52_0x2de1=['./campaign.options','exports','./campaign.attributes','Campaign','function','init'];(function(_0x1038af,_0x32410c){const _0x2de119=function(_0x1dc619){while(--_0x1dc619){_0x1038af['push'](_0x1038af['shift']());}};_0x2de119(++_0x32410c);}(a52_0x2de1,0x1ce));const a52_0x1dc6=function(_0x1038af,_0x32410c){_0x1038af=_0x1038af-0x12b;let _0x2de119=a52_0x2de1[_0x1038af];return _0x2de119;};const a52_0x4b62c3=a52_0x1dc6;'use strict';const {Model}=require('sequelize'),{attributes}=require(a52_0x4b62c3(0x12d)),{options}=require(a52_0x4b62c3(0x12b));class Campaign extends Model{}function init(_0x4f3cd2,_0x107a6f){const _0x220fcb=a52_0x4b62c3,_0x41292b=options(_0x4f3cd2),_0x36f792=typeof _0x107a6f===_0x220fcb(0x12f)?_0x107a6f(_0x41292b):_0x41292b;return Campaign['init'](attributes,_0x36f792),Campaign;}module[a52_0x4b62c3(0x12c)][a52_0x4b62c3(0x12e)]=Campaign,module[a52_0x4b62c3(0x12c)][a52_0x4b62c3(0x130)]=init; \ No newline at end of file +const a52_0x49e1=['Campaign','exports','sequelize','init','./campaign.options','function','./campaign.attributes'];(function(_0x3351fe,_0x1f2d34){const _0x49e1d9=function(_0x347eba){while(--_0x347eba){_0x3351fe['push'](_0x3351fe['shift']());}};_0x49e1d9(++_0x1f2d34);}(a52_0x49e1,0x1e4));const a52_0x347e=function(_0x3351fe,_0x1f2d34){_0x3351fe=_0x3351fe-0xdb;let _0x49e1d9=a52_0x49e1[_0x3351fe];return _0x49e1d9;};const a52_0x468a63=a52_0x347e;'use strict';const {Model}=require(a52_0x468a63(0xdc)),{attributes}=require(a52_0x468a63(0xe0)),{options}=require(a52_0x468a63(0xde));class Campaign extends Model{}function init(_0x4cbb1c,_0x1fea16){const _0x39100b=a52_0x468a63,_0x2d7803=options(_0x4cbb1c),_0x58d625=typeof _0x1fea16===_0x39100b(0xdf)?_0x1fea16(_0x2d7803):_0x2d7803;return Campaign[_0x39100b(0xdd)](attributes,_0x58d625),Campaign;}module[a52_0x468a63(0xdb)][a52_0x468a63(0xe1)]=Campaign,module[a52_0x468a63(0xdb)]['init']=init; \ No newline at end of file diff --git a/server/api/campaign/campaign.options.js b/server/api/campaign/campaign.options.js index ed9c394..be251c3 100644 --- a/server/api/campaign/campaign.options.js +++ b/server/api/campaign/campaign.options.js @@ -1 +1 @@ -var a53_0x1f92=['options'];(function(_0x110f45,_0x375382){var _0x1f92d5=function(_0x2ae490){while(--_0x2ae490){_0x110f45['push'](_0x110f45['shift']());}};_0x1f92d5(++_0x375382);}(a53_0x1f92,0x127));var a53_0x2ae4=function(_0x110f45,_0x375382){_0x110f45=_0x110f45-0xf8;var _0x1f92d5=a53_0x1f92[_0x110f45];return _0x1f92d5;};var a53_0x5d6720=a53_0x2ae4;function options(_0x3081d9){return{'sequelize':_0x3081d9,'tableName':'campaigns','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a53_0x5d6720(0xf8)]=options; \ No newline at end of file +var a53_0x468b=['options'];(function(_0x405d93,_0x490fa0){var _0x468b1d=function(_0x1e19f7){while(--_0x1e19f7){_0x405d93['push'](_0x405d93['shift']());}};_0x468b1d(++_0x490fa0);}(a53_0x468b,0x9f));var a53_0x1e19=function(_0x405d93,_0x490fa0){_0x405d93=_0x405d93-0xdd;var _0x468b1d=a53_0x468b[_0x405d93];return _0x468b1d;};var a53_0x5dde21=a53_0x1e19;function options(_0x6ad9f6){return{'sequelize':_0x6ad9f6,'tableName':'campaigns','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a53_0x5dde21(0xdd)]=options; \ No newline at end of file diff --git a/server/api/campaign/campaign.rpc.js b/server/api/campaign/campaign.rpc.js index e912667..cdec866 100644 --- a/server/api/campaign/campaign.rpc.js +++ b/server/api/campaign/campaign.rpc.js @@ -1 +1 @@ -const a54_0x12fd=['stringify','include','attributes','GetCampaign','message','catch','info','then','error','where','map','findAll','model','options','raw','../../mysqldb'];(function(_0x42c3a1,_0x5d163b){const _0x12fdb7=function(_0x58653c){while(--_0x58653c){_0x42c3a1['push'](_0x42c3a1['shift']());}};_0x12fdb7(++_0x5d163b);}(a54_0x12fd,0x108));const a54_0x5865=function(_0x42c3a1,_0x5d163b){_0x42c3a1=_0x42c3a1-0x8c;let _0x12fdb7=a54_0x12fd[_0x42c3a1];return _0x12fdb7;};const a54_0x48c2f4=a54_0x5865;'use strict';const _=require('lodash'),db=require(a54_0x48c2f4(0x93))['db'],logger=require('../../config/logger')('rpc');exports['GetCampaign']=function(_0x27ff52){const _0x323a2c=this;return new Promise(function(_0x578663,_0x2f854e){const _0x592a9d=a54_0x5865;return db['Campaign'][_0x592a9d(0x8f)]({'raw':_0x27ff52['options']?_0x27ff52[_0x592a9d(0x91)][_0x592a9d(0x92)]===undefined?!![]:![]:!![],'where':_0x27ff52[_0x592a9d(0x91)]?_0x27ff52['options'][_0x592a9d(0x8d)]||null:null,'attributes':_0x27ff52['options']?_0x27ff52[_0x592a9d(0x91)][_0x592a9d(0x96)]||null:null,'limit':_0x27ff52['options']?_0x27ff52[_0x592a9d(0x91)]['limit']||null:null,'include':_0x27ff52[_0x592a9d(0x91)]?_0x27ff52[_0x592a9d(0x91)]['include']?_[_0x592a9d(0x8e)](_0x27ff52[_0x592a9d(0x91)][_0x592a9d(0x95)],function(_0x187011){const _0x28cf89=_0x592a9d;return{'model':db[_0x187011['model']],'as':_0x187011['as'],'attributes':_0x187011[_0x28cf89(0x96)],'include':_0x187011['include']?_[_0x28cf89(0x8e)](_0x187011[_0x28cf89(0x95)],function(_0xa88fb5){const _0x5a519a=_0x28cf89;return{'model':db[_0xa88fb5[_0x5a519a(0x90)]],'as':_0xa88fb5['as'],'attributes':_0xa88fb5[_0x5a519a(0x96)],'include':_0xa88fb5['include']?_[_0x5a519a(0x8e)](_0xa88fb5[_0x5a519a(0x95)],function(_0x4a4672){const _0x418b8a=_0x5a519a;return{'model':db[_0x4a4672[_0x418b8a(0x90)]],'as':_0x4a4672['as'],'attributes':_0x4a4672[_0x418b8a(0x96)]};}):[]};}):[]};}):[]:[]})[_0x592a9d(0x9b)](function(_0x23787c){const _0x515957=_0x592a9d;logger[_0x515957(0x9a)](_0x515957(0x97),_0x27ff52),logger['debug'](_0x515957(0x97),_0x27ff52,JSON[_0x515957(0x94)](_0x23787c)),_0x578663(_0x23787c);})[_0x592a9d(0x99)](function(_0x3f666f){const _0x344a6a=_0x592a9d;logger[_0x344a6a(0x8c)](_0x344a6a(0x97),_0x3f666f[_0x344a6a(0x98)],_0x27ff52),_0x2f854e(_0x323a2c['error'](0x1f4,_0x3f666f['message']));});});}; \ No newline at end of file +const a54_0x51c7=['include','rpc','../../mysqldb','options','map','stringify','attributes','Campaign','info','raw','lodash','where','GetCampaign','error','message','findAll','../../config/logger','model','limit'];(function(_0xe5c29b,_0x223243){const _0x51c7c2=function(_0x1bb51f){while(--_0x1bb51f){_0xe5c29b['push'](_0xe5c29b['shift']());}};_0x51c7c2(++_0x223243);}(a54_0x51c7,0x129));const a54_0x1bb5=function(_0xe5c29b,_0x223243){_0xe5c29b=_0xe5c29b-0x7e;let _0x51c7c2=a54_0x51c7[_0xe5c29b];return _0x51c7c2;};const a54_0x1e8989=a54_0x1bb5;'use strict';const _=require(a54_0x1e8989(0x8f)),db=require(a54_0x1e8989(0x87))['db'],logger=require(a54_0x1e8989(0x82))(a54_0x1e8989(0x86));exports[a54_0x1e8989(0x7e)]=function(_0x3bb5c6){const _0xae83eb=this;return new Promise(function(_0x337bb7,_0x23df56){const _0x5ce378=a54_0x1bb5;return db[_0x5ce378(0x8c)][_0x5ce378(0x81)]({'raw':_0x3bb5c6['options']?_0x3bb5c6[_0x5ce378(0x88)][_0x5ce378(0x8e)]===undefined?!![]:![]:!![],'where':_0x3bb5c6[_0x5ce378(0x88)]?_0x3bb5c6[_0x5ce378(0x88)][_0x5ce378(0x90)]||null:null,'attributes':_0x3bb5c6[_0x5ce378(0x88)]?_0x3bb5c6['options'][_0x5ce378(0x8b)]||null:null,'limit':_0x3bb5c6[_0x5ce378(0x88)]?_0x3bb5c6[_0x5ce378(0x88)][_0x5ce378(0x84)]||null:null,'include':_0x3bb5c6['options']?_0x3bb5c6['options'][_0x5ce378(0x85)]?_[_0x5ce378(0x89)](_0x3bb5c6[_0x5ce378(0x88)]['include'],function(_0x1c644c){const _0x3e54ed=_0x5ce378;return{'model':db[_0x1c644c[_0x3e54ed(0x83)]],'as':_0x1c644c['as'],'attributes':_0x1c644c[_0x3e54ed(0x8b)],'include':_0x1c644c[_0x3e54ed(0x85)]?_['map'](_0x1c644c[_0x3e54ed(0x85)],function(_0x496197){const _0x4b9269=_0x3e54ed;return{'model':db[_0x496197[_0x4b9269(0x83)]],'as':_0x496197['as'],'attributes':_0x496197[_0x4b9269(0x8b)],'include':_0x496197[_0x4b9269(0x85)]?_[_0x4b9269(0x89)](_0x496197['include'],function(_0x368d1d){const _0x2f2a18=_0x4b9269;return{'model':db[_0x368d1d[_0x2f2a18(0x83)]],'as':_0x368d1d['as'],'attributes':_0x368d1d[_0x2f2a18(0x8b)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4bef1e){const _0xd63223=_0x5ce378;logger[_0xd63223(0x8d)](_0xd63223(0x7e),_0x3bb5c6),logger['debug'](_0xd63223(0x7e),_0x3bb5c6,JSON[_0xd63223(0x8a)](_0x4bef1e)),_0x337bb7(_0x4bef1e);})['catch'](function(_0x294723){const _0x274614=_0x5ce378;logger['error']('GetCampaign',_0x294723[_0x274614(0x80)],_0x3bb5c6),_0x23df56(_0xae83eb[_0x274614(0x7f)](0x1f4,_0x294723['message']));});});}; \ No newline at end of file diff --git a/server/api/campaign/index.js b/server/api/campaign/index.js index bc5c2bd..c2e34c7 100644 --- a/server/api/campaign/index.js +++ b/server/api/campaign/index.js @@ -1 +1 @@ -const a55_0x53bd=['../../components/auth/service','/:id','isAuthenticated','removeLists','/:id/lists','getHoppers','/:id/clone','removeBlackLists','/:id/hopper_finals','/:id/hoppers','/:id/hopper_black','getHopperFinals','getHopperBlacks','delete','create','exports','get','show','getBlackLists','put','addBlackLists','./campaign.controller','Router','getLists','express','update','post','getHopperHistories','/:id/blacklists'];(function(_0x6ff64c,_0x413f1e){const _0x53bddf=function(_0x1ea693){while(--_0x1ea693){_0x6ff64c['push'](_0x6ff64c['shift']());}};_0x53bddf(++_0x413f1e);}(a55_0x53bd,0xbd));const a55_0x1ea6=function(_0x6ff64c,_0x413f1e){_0x6ff64c=_0x6ff64c-0x198;let _0x53bddf=a55_0x53bd[_0x6ff64c];return _0x53bddf;};const a55_0x337e57=a55_0x1ea6;'use strict';const express=require(a55_0x337e57(0x1a1)),router=express[a55_0x337e57(0x19f)](),auth=require(a55_0x337e57(0x1a6)),controller=require(a55_0x337e57(0x19e));router[a55_0x337e57(0x199)]('/',auth[a55_0x337e57(0x1a8)](),controller['index']),router[a55_0x337e57(0x199)](a55_0x337e57(0x1a7),auth[a55_0x337e57(0x1a8)](),controller[a55_0x337e57(0x19a)]),router[a55_0x337e57(0x199)](a55_0x337e57(0x1af),auth['isAuthenticated'](),controller[a55_0x337e57(0x1ab)]),router[a55_0x337e57(0x199)]('/:id/hopper_histories',auth['isAuthenticated'](),controller[a55_0x337e57(0x1a4)]),router[a55_0x337e57(0x199)](a55_0x337e57(0x1ae),auth[a55_0x337e57(0x1a8)](),controller[a55_0x337e57(0x1b1)]),router[a55_0x337e57(0x199)](a55_0x337e57(0x1b0),auth['isAuthenticated'](),controller[a55_0x337e57(0x1b2)]),router['get'](a55_0x337e57(0x1aa),auth[a55_0x337e57(0x1a8)](),controller[a55_0x337e57(0x1a0)]),router[a55_0x337e57(0x199)]('/:id/blacklists',auth[a55_0x337e57(0x1a8)](),controller[a55_0x337e57(0x19b)]),router['post']('/',auth[a55_0x337e57(0x1a8)](),controller[a55_0x337e57(0x1b4)]),router[a55_0x337e57(0x1a3)](a55_0x337e57(0x1ac),auth[a55_0x337e57(0x1a8)](),controller['clone']),router[a55_0x337e57(0x1a3)]('/:id/lists',auth[a55_0x337e57(0x1a8)](),controller['addLists']),router[a55_0x337e57(0x1a3)]('/:id/blacklists',auth[a55_0x337e57(0x1a8)](),controller[a55_0x337e57(0x19d)]),router[a55_0x337e57(0x19c)](a55_0x337e57(0x1a7),auth[a55_0x337e57(0x1a8)](),controller[a55_0x337e57(0x1a2)]),router[a55_0x337e57(0x1b3)]('/:id',auth[a55_0x337e57(0x1a8)](),controller['destroy']),router['delete'](a55_0x337e57(0x1aa),auth[a55_0x337e57(0x1a8)](),controller[a55_0x337e57(0x1a9)]),router[a55_0x337e57(0x1b3)](a55_0x337e57(0x1a5),auth[a55_0x337e57(0x1a8)](),controller[a55_0x337e57(0x1ad)]),module[a55_0x337e57(0x198)]=router; \ No newline at end of file +const a55_0x3f20=['isAuthenticated','Router','getHopperFinals','express','/:id/blacklists','update','post','addBlackLists','get','delete','/:id/hopper_finals','exports','/:id/lists','getHopperBlacks','getHoppers','/:id','/:id/hopper_black','destroy','addLists','create','index','../../components/auth/service'];(function(_0x759fbb,_0x12603e){const _0x3f2041=function(_0x554a7a){while(--_0x554a7a){_0x759fbb['push'](_0x759fbb['shift']());}};_0x3f2041(++_0x12603e);}(a55_0x3f20,0x108));const a55_0x554a=function(_0x759fbb,_0x12603e){_0x759fbb=_0x759fbb-0x14a;let _0x3f2041=a55_0x3f20[_0x759fbb];return _0x3f2041;};const a55_0x2126aa=a55_0x554a;'use strict';const express=require(a55_0x2126aa(0x14d)),router=express[a55_0x2126aa(0x14b)](),auth=require(a55_0x2126aa(0x15f)),controller=require('./campaign.controller');router[a55_0x2126aa(0x152)]('/',auth[a55_0x2126aa(0x14a)](),controller[a55_0x2126aa(0x15e)]),router[a55_0x2126aa(0x152)](a55_0x2126aa(0x159),auth['isAuthenticated'](),controller['show']),router[a55_0x2126aa(0x152)]('/:id/hoppers',auth[a55_0x2126aa(0x14a)](),controller[a55_0x2126aa(0x158)]),router[a55_0x2126aa(0x152)]('/:id/hopper_histories',auth[a55_0x2126aa(0x14a)](),controller['getHopperHistories']),router[a55_0x2126aa(0x152)](a55_0x2126aa(0x154),auth[a55_0x2126aa(0x14a)](),controller[a55_0x2126aa(0x14c)]),router[a55_0x2126aa(0x152)](a55_0x2126aa(0x15a),auth[a55_0x2126aa(0x14a)](),controller[a55_0x2126aa(0x157)]),router['get'](a55_0x2126aa(0x156),auth[a55_0x2126aa(0x14a)](),controller['getLists']),router[a55_0x2126aa(0x152)](a55_0x2126aa(0x14e),auth[a55_0x2126aa(0x14a)](),controller['getBlackLists']),router[a55_0x2126aa(0x150)]('/',auth[a55_0x2126aa(0x14a)](),controller[a55_0x2126aa(0x15d)]),router[a55_0x2126aa(0x150)]('/:id/clone',auth[a55_0x2126aa(0x14a)](),controller['clone']),router[a55_0x2126aa(0x150)](a55_0x2126aa(0x156),auth['isAuthenticated'](),controller[a55_0x2126aa(0x15c)]),router[a55_0x2126aa(0x150)]('/:id/blacklists',auth[a55_0x2126aa(0x14a)](),controller[a55_0x2126aa(0x151)]),router['put'](a55_0x2126aa(0x159),auth[a55_0x2126aa(0x14a)](),controller[a55_0x2126aa(0x14f)]),router[a55_0x2126aa(0x153)](a55_0x2126aa(0x159),auth['isAuthenticated'](),controller[a55_0x2126aa(0x15b)]),router[a55_0x2126aa(0x153)](a55_0x2126aa(0x156),auth[a55_0x2126aa(0x14a)](),controller['removeLists']),router['delete'](a55_0x2126aa(0x14e),auth['isAuthenticated'](),controller['removeBlackLists']),module[a55_0x2126aa(0x155)]=router; \ No newline at end of file diff --git a/server/api/cannedAnswer/cannedAnswer.attributes.js b/server/api/cannedAnswer/cannedAnswer.attributes.js index 8e77123..6f2cc94 100644 --- a/server/api/cannedAnswer/cannedAnswer.attributes.js +++ b/server/api/cannedAnswer/cannedAnswer.attributes.js @@ -1 +1 @@ -const a56_0x2bcd=['STRING','TEXT','VIRTUAL','attributes','key','sequelize'];(function(_0x324973,_0x462076){const _0x2bcd1c=function(_0x5a2187){while(--_0x5a2187){_0x324973['push'](_0x324973['shift']());}};_0x2bcd1c(++_0x462076);}(a56_0x2bcd,0x94));const a56_0x5a21=function(_0x324973,_0x462076){_0x324973=_0x324973-0x98;let _0x2bcd1c=a56_0x2bcd[_0x324973];return _0x2bcd1c;};const a56_0x2f99c7=a56_0x5a21;'use strict';const {DataTypes}=require(a56_0x2f99c7(0x99)),attributes={'key':{'type':DataTypes[a56_0x2f99c7(0x9a)],'allowNull':![]},'value':{'type':DataTypes[a56_0x2f99c7(0x9b)],'allowNull':![]},'description':{'type':DataTypes[a56_0x2f99c7(0x9a)]},'name':{'type':DataTypes[a56_0x2f99c7(0x9c)],'get':function(){const _0x3d3aa7=a56_0x2f99c7;return this['getDataValue'](_0x3d3aa7(0x98));}}};module['exports'][a56_0x2f99c7(0x9d)]=attributes; \ No newline at end of file +const a56_0xff23=['STRING','exports','TEXT'];(function(_0x30513a,_0x33a5a2){const _0xff23d9=function(_0x2d0bf0){while(--_0x2d0bf0){_0x30513a['push'](_0x30513a['shift']());}};_0xff23d9(++_0x33a5a2);}(a56_0xff23,0xba));const a56_0x2d0b=function(_0x30513a,_0x33a5a2){_0x30513a=_0x30513a-0x10f;let _0xff23d9=a56_0xff23[_0x30513a];return _0xff23d9;};const a56_0xd1e2c3=a56_0x2d0b;'use strict';const {DataTypes}=require('sequelize'),attributes={'key':{'type':DataTypes['STRING'],'allowNull':![]},'value':{'type':DataTypes[a56_0xd1e2c3(0x111)],'allowNull':![]},'description':{'type':DataTypes[a56_0xd1e2c3(0x10f)]},'name':{'type':DataTypes['VIRTUAL'],'get':function(){return this['getDataValue']('key');}}};module[a56_0xd1e2c3(0x110)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/cannedAnswer/cannedAnswer.controller.js b/server/api/cannedAnswer/cannedAnswer.controller.js index 39d2572..b5348a4 100644 --- a/server/api/cannedAnswer/cannedAnswer.controller.js +++ b/server/api/cannedAnswer/cannedAnswer.controller.js @@ -1 +1 @@ -const a57_0x2913=['OpenchannelAccountId','fields','attributes','order','stack','end','../../mysqldb','findAll','length','merge','count','type','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','undefined','key','MailAccountId','includeAll','offset','map','filters','set','catch','fieldName','show','update','sendStatus','CannedAnswer','json','ChatWebsiteId','params','model','rows','user','options','lodash','sequelize','CannedAnswers','error','findOne','Unable\x20to\x20retrieve\x20the\x20current\x20user','keys','userProfileId','filter','create','intersection','name','autoAssociation','status','get','UserProfileSection','Content-Range','where','role','../../components/parsers/qs','query','VIRTUAL','sort','limit','body','index','include','destroy','rawAttributes','SmsAccountId','then','UserProfileResource'];(function(_0x4fc86b,_0x2afaac){const _0x29135f=function(_0x33cc6b){while(--_0x33cc6b){_0x4fc86b['push'](_0x4fc86b['shift']());}};_0x29135f(++_0x2afaac);}(a57_0x2913,0x109));const a57_0x33cc=function(_0x4fc86b,_0x2afaac){_0x4fc86b=_0x4fc86b-0x1ec;let _0x29135f=a57_0x2913[_0x4fc86b];return _0x29135f;};const a57_0xa27e77=a57_0x33cc;'use strict';const _=require(a57_0xa27e77(0x20d)),qs=require(a57_0xa27e77(0x220)),logger=require('../../config/logger')('api'),{db}=require(a57_0xa27e77(0x1f1)),{Op,ValidationError}=require(a57_0xa27e77(0x20e));function respondWithResult(_0x3bb419,_0x5c64cf){return _0x5c64cf=_0x5c64cf||0xc8,function(_0x429271){const _0x2519c5=a57_0x33cc;if(_0x429271)return _0x3bb419[_0x2519c5(0x21a)](_0x5c64cf)['json'](_0x429271);};}function respondWithFilteredResult(_0x4b8c85,_0x292119){return function(_0x8be0bb){const _0x30e85d=a57_0x33cc;if(_0x8be0bb){const _0x394d93=_0x8be0bb['count'],_0x1daa35=_0x292119[_0x30e85d(0x1fc)];let _0x1385d6=_0x292119[_0x30e85d(0x1fc)]+_0x292119[_0x30e85d(0x224)],_0x315544;return _0x1385d6>=_0x394d93?(_0x1385d6=_0x394d93,_0x315544=0xc8):_0x315544=0xce,_0x4b8c85['status'](_0x315544),_0x4b8c85[_0x30e85d(0x1ff)](_0x30e85d(0x21d),_0x1daa35+'-'+_0x1385d6+'/'+_0x394d93)[_0x30e85d(0x206)](_0x8be0bb);}return null;};}function saveUpdates(_0xdb9ba5){return function(_0x285f4c){const _0x4bd211=a57_0x33cc;if(_0x285f4c)return _0x285f4c[_0x4bd211(0x203)](_0xdb9ba5)['then'](function(_0x21be49){return _0x21be49;});return null;};}function removeEntity(_0x515f38){return function(_0x222ab2){const _0x43c937=a57_0x33cc;if(_0x222ab2)return _0x222ab2[_0x43c937(0x228)]()['then'](function(){const _0x164dc3=_0x43c937,_0xc32961=_0x222ab2[_0x164dc3(0x21b)]({'plain':!![]}),_0x327b23=_0x164dc3(0x20f);return db[_0x164dc3(0x22c)][_0x164dc3(0x228)]({'where':{'type':_0x327b23,'resourceId':_0xc32961['id']}})[_0x164dc3(0x22b)](function(){return _0x222ab2;});})[_0x43c937(0x22b)](function(){const _0x560ed4=_0x43c937;_0x515f38[_0x560ed4(0x21a)](0xcc)[_0x560ed4(0x1f0)]();});};}function handleEntityNotFound(_0x1151fd){return function(_0x34c5fe){const _0x214f47=a57_0x33cc;return!_0x34c5fe&&_0x1151fd[_0x214f47(0x204)](0x194),_0x34c5fe;};}function handleError(_0x424f7f,_0x293f95){return _0x293f95=_0x293f95||0x1f4,function(_0x3f2869){const _0x2cedb6=a57_0x33cc;logger[_0x2cedb6(0x210)](_0x3f2869[_0x2cedb6(0x1ef)]),_0x3f2869['name']&&delete _0x3f2869[_0x2cedb6(0x218)],_0x424f7f[_0x2cedb6(0x21a)](_0x293f95)['send'](_0x3f2869);};}exports[a57_0xa27e77(0x226)]=function(_0x27985b,_0x5a9d82){const _0x5410e8=a57_0xa27e77;let _0x3a26de={};const _0x210c10={},_0x3ba791={'count':0x0,'rows':[]},_0x23b0d4=_[_0x5410e8(0x1fd)](db['CannedAnswer'][_0x5410e8(0x229)],function(_0xe082df){const _0x4cd223=_0x5410e8;return{'name':_0xe082df[_0x4cd223(0x201)],'type':_0xe082df['type'][_0x4cd223(0x1f9)]};});_0x210c10['model']=_[_0x5410e8(0x1fd)](_0x23b0d4,_0x5410e8(0x218)),_0x210c10[_0x5410e8(0x221)]=_['keys'](_0x27985b['query']),_0x210c10[_0x5410e8(0x1fe)]=_['intersection'](_0x210c10['model'],_0x210c10[_0x5410e8(0x221)]),_0x3a26de[_0x5410e8(0x1ed)]=_['intersection'](_0x210c10[_0x5410e8(0x209)],qs[_0x5410e8(0x1ec)](_0x27985b[_0x5410e8(0x221)]['fields'])),_0x3a26de['attributes']=_0x3a26de[_0x5410e8(0x1ed)][_0x5410e8(0x1f3)]?_0x3a26de['attributes']:_0x210c10[_0x5410e8(0x209)];typeof _0x27985b[_0x5410e8(0x221)]['nolimit']===_0x5410e8(0x1f8)&&(_0x3a26de[_0x5410e8(0x224)]=qs[_0x5410e8(0x224)](_0x27985b[_0x5410e8(0x221)]['limit']),_0x3a26de['offset']=qs[_0x5410e8(0x1fc)](_0x27985b[_0x5410e8(0x221)][_0x5410e8(0x1fc)]));_0x3a26de[_0x5410e8(0x1ee)]=qs[_0x5410e8(0x223)](_0x27985b[_0x5410e8(0x221)][_0x5410e8(0x223)]),_0x3a26de[_0x5410e8(0x21e)]=qs['filters'](_['pick'](_0x27985b[_0x5410e8(0x221)],_0x210c10[_0x5410e8(0x1fe)]),_0x23b0d4);_0x27985b[_0x5410e8(0x221)][_0x5410e8(0x215)]&&(_0x3a26de[_0x5410e8(0x21e)]=_[_0x5410e8(0x1f4)](_0x3a26de[_0x5410e8(0x21e)],{[Op['or']]:_[_0x5410e8(0x1fd)](_0x23b0d4,function(_0x34808e){const _0x4e27c4=_0x5410e8;if(_0x34808e[_0x4e27c4(0x1f6)]!==_0x4e27c4(0x222)){const _0x1b1ea7={};return _0x1b1ea7[_0x34808e['name']]={[Op['like']]:'%'+_0x27985b[_0x4e27c4(0x221)]['filter']+'%'},_0x1b1ea7;}})}));_0x3a26de=_[_0x5410e8(0x1f4)]({},_0x3a26de,_0x27985b[_0x5410e8(0x20c)]);const _0x2a8ddb={'where':_0x3a26de[_0x5410e8(0x21e)]};return db[_0x5410e8(0x205)]['count'](_0x2a8ddb)['then'](function(_0x5bc2b0){const _0x125d25=_0x5410e8;return _0x3ba791[_0x125d25(0x1f5)]=_0x5bc2b0,_0x27985b['query'][_0x125d25(0x1fb)]&&(_0x3a26de[_0x125d25(0x227)]=[{'all':!![]}]),db[_0x125d25(0x205)][_0x125d25(0x1f2)](_0x3a26de);})[_0x5410e8(0x22b)](function(_0x3a6792){const _0x2159cd=_0x5410e8;return _0x3ba791[_0x2159cd(0x20a)]=_0x3a6792,_0x3ba791;})['then'](respondWithFilteredResult(_0x5a9d82,_0x3a26de))[_0x5410e8(0x200)](handleError(_0x5a9d82,null));},exports[a57_0xa27e77(0x202)]=function(_0x215eb4,_0x4e3dbc){const _0x302c0c=a57_0xa27e77;let _0x4801e1={'raw':!![],'where':{'id':_0x215eb4['params']['id']}};const _0x485341={};return _0x485341[_0x302c0c(0x209)]=_[_0x302c0c(0x213)](db[_0x302c0c(0x205)][_0x302c0c(0x229)]),_0x485341[_0x302c0c(0x221)]=_[_0x302c0c(0x213)](_0x215eb4['query']),_0x485341[_0x302c0c(0x1fe)]=_['intersection'](_0x485341[_0x302c0c(0x209)],_0x485341['query']),_0x4801e1[_0x302c0c(0x1ed)]=_[_0x302c0c(0x217)](_0x485341[_0x302c0c(0x209)],qs[_0x302c0c(0x1ec)](_0x215eb4[_0x302c0c(0x221)][_0x302c0c(0x1ec)])),_0x4801e1[_0x302c0c(0x1ed)]=_0x4801e1[_0x302c0c(0x1ed)]['length']?_0x4801e1[_0x302c0c(0x1ed)]:_0x485341[_0x302c0c(0x209)],_0x215eb4[_0x302c0c(0x221)][_0x302c0c(0x1fb)]&&(_0x4801e1[_0x302c0c(0x227)]=[{'all':!![]}]),_0x4801e1=_[_0x302c0c(0x1f4)]({},_0x4801e1,_0x215eb4['options']),db['CannedAnswer'][_0x302c0c(0x211)](_0x4801e1)['then'](handleEntityNotFound(_0x4e3dbc,null))[_0x302c0c(0x22b)](respondWithResult(_0x4e3dbc,null))[_0x302c0c(0x200)](handleError(_0x4e3dbc,null));},exports[a57_0xa27e77(0x203)]=function(_0xa8a30c,_0x3cbc35){const _0x16e71e=a57_0xa27e77;return _0xa8a30c[_0x16e71e(0x225)]['id']&&delete _0xa8a30c[_0x16e71e(0x225)]['id'],db[_0x16e71e(0x205)]['findOne']({'where':{'id':_0xa8a30c[_0x16e71e(0x208)]['id']}})[_0x16e71e(0x22b)](handleEntityNotFound(_0x3cbc35,null))[_0x16e71e(0x22b)](saveUpdates(_0xa8a30c[_0x16e71e(0x225)],null))[_0x16e71e(0x22b)](respondWithResult(_0x3cbc35,null))[_0x16e71e(0x200)](handleError(_0x3cbc35,null));},exports[a57_0xa27e77(0x228)]=function(_0x134a87,_0x2b071b){const _0x3c9882=a57_0xa27e77;return db['CannedAnswer'][_0x3c9882(0x211)]({'where':{'id':_0x134a87[_0x3c9882(0x208)]['id']}})[_0x3c9882(0x22b)](handleEntityNotFound(_0x2b071b,null))[_0x3c9882(0x22b)](removeEntity(_0x2b071b,null))['catch'](handleError(_0x2b071b,null));},exports[a57_0xa27e77(0x216)]=function(_0x139fb1,_0x53e455){const _0x309a4a=a57_0xa27e77,_0x135eff={'key':_0x139fb1[_0x309a4a(0x225)]['key']};if(_0x139fb1[_0x309a4a(0x225)][_0x309a4a(0x1fa)])_0x135eff[_0x309a4a(0x1fa)]=_0x139fb1[_0x309a4a(0x225)][_0x309a4a(0x1fa)];else{if(_0x139fb1[_0x309a4a(0x225)][_0x309a4a(0x22a)])_0x135eff[_0x309a4a(0x22a)]=_0x139fb1[_0x309a4a(0x225)][_0x309a4a(0x22a)];else{if(_0x139fb1[_0x309a4a(0x225)][_0x309a4a(0x22d)])_0x135eff['OpenchannelAccountId']=_0x139fb1['body'][_0x309a4a(0x22d)];else _0x139fb1['body'][_0x309a4a(0x207)]&&(_0x135eff['ChatWebsiteId']=_0x139fb1[_0x309a4a(0x225)][_0x309a4a(0x207)]);}}return db[_0x309a4a(0x205)][_0x309a4a(0x211)]({'where':_0x135eff})[_0x309a4a(0x22b)](function(_0x29a402){const _0x39b3f1=_0x309a4a;if(_0x29a402)throw new ValidationError('The\x20inserted\x20key\x20already\x20exists.');return db[_0x39b3f1(0x205)]['create'](_0x139fb1[_0x39b3f1(0x225)]);})[_0x309a4a(0x22b)](function(_0x37c6cb){const _0xa0a601=_0x309a4a,_0x5bff5a=_0x139fb1[_0xa0a601(0x20b)][_0xa0a601(0x21b)]({'plain':!![]});if(!_0x5bff5a)throw new Error(_0xa0a601(0x212));if(_0x5bff5a[_0xa0a601(0x21f)]===_0xa0a601(0x20b)){const _0xa5ca9a=_0x37c6cb[_0xa0a601(0x21b)]({'plain':!![]});return db[_0xa0a601(0x21c)][_0xa0a601(0x211)]({'where':{'name':_0xa0a601(0x20f),'userProfileId':_0x5bff5a[_0xa0a601(0x214)]},'raw':!![]})[_0xa0a601(0x22b)](function(_0x5b7696){const _0x4c631d=_0xa0a601;return _0x5b7696&&_0x5b7696[_0x4c631d(0x219)]===0x0?db[_0x4c631d(0x22c)]['create']({'name':_0xa5ca9a[_0x4c631d(0x218)],'resourceId':_0xa5ca9a['id'],'type':_0x5b7696[_0x4c631d(0x218)],'sectionId':_0x5b7696['id']},{})[_0x4c631d(0x22b)](function(){return _0x37c6cb;}):_0x37c6cb;})[_0xa0a601(0x200)](function(_0x3d4720){const _0x5f3d58=_0xa0a601;logger[_0x5f3d58(0x210)](_0x5f3d58(0x1f7),_0x3d4720);throw _0x3d4720;});}return _0x37c6cb;})[_0x309a4a(0x22b)](respondWithResult(_0x53e455,0xc9))[_0x309a4a(0x200)](handleError(_0x53e455,null));}; \ No newline at end of file +const a57_0x58e0=['get','error','CannedAnswer','catch','CannedAnswers','sendStatus','intersection','limit','show','findOne','options','sort','include','merge','status','includeAll','where','create','then','pick','destroy','findAll','model','body','../../config/logger','length','ChatWebsiteId','json','key','filters','like','filter','user','lodash','offset','index','name','query','params','rawAttributes','undefined','role','set','type','../../components/parsers/qs','UserProfileSection','UserProfileResource','update','sequelize','fields','OpenchannelAccountId','keys','count','attributes','nolimit','send','map','userProfileId','api','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','SmsAccountId'];(function(_0x52143e,_0x588b8c){const _0x58e09d=function(_0x592a26){while(--_0x592a26){_0x52143e['push'](_0x52143e['shift']());}};_0x58e09d(++_0x588b8c);}(a57_0x58e0,0x87));const a57_0x592a=function(_0x52143e,_0x588b8c){_0x52143e=_0x52143e-0x107;let _0x58e09d=a57_0x58e0[_0x52143e];return _0x58e09d;};const a57_0xb01239=a57_0x592a;'use strict';const _=require(a57_0xb01239(0x11b)),qs=require(a57_0xb01239(0x126)),logger=require(a57_0xb01239(0x112))(a57_0xb01239(0x134)),{db}=require('../../mysqldb'),{Op,ValidationError}=require(a57_0xb01239(0x12a));function respondWithResult(_0x3340dd,_0x4d18cc){return _0x4d18cc=_0x4d18cc||0xc8,function(_0x26e77b){const _0x19ca0c=a57_0x592a;if(_0x26e77b)return _0x3340dd[_0x19ca0c(0x108)](_0x4d18cc)[_0x19ca0c(0x115)](_0x26e77b);};}function respondWithFilteredResult(_0x272fe3,_0x38e3a8){return function(_0x4d5100){const _0x9c5440=a57_0x592a;if(_0x4d5100){const _0x3c11fd=_0x4d5100[_0x9c5440(0x12e)],_0x2b6d6c=_0x38e3a8[_0x9c5440(0x11c)];let _0x155541=_0x38e3a8[_0x9c5440(0x11c)]+_0x38e3a8[_0x9c5440(0x13e)],_0x430329;return _0x155541>=_0x3c11fd?(_0x155541=_0x3c11fd,_0x430329=0xc8):_0x430329=0xce,_0x272fe3[_0x9c5440(0x108)](_0x430329),_0x272fe3[_0x9c5440(0x124)]('Content-Range',_0x2b6d6c+'-'+_0x155541+'/'+_0x3c11fd)[_0x9c5440(0x115)](_0x4d5100);}return null;};}function saveUpdates(_0x136717){return function(_0x5d6b09){const _0x3d766d=a57_0x592a;if(_0x5d6b09)return _0x5d6b09[_0x3d766d(0x129)](_0x136717)[_0x3d766d(0x10c)](function(_0x56a228){return _0x56a228;});return null;};}function removeEntity(_0x2d5619){return function(_0x7e0f67){const _0x35368c=a57_0x592a;if(_0x7e0f67)return _0x7e0f67[_0x35368c(0x10e)]()[_0x35368c(0x10c)](function(){const _0x374d81=_0x35368c,_0x1d06f7=_0x7e0f67[_0x374d81(0x137)]({'plain':!![]}),_0x17cf5f=_0x374d81(0x13b);return db[_0x374d81(0x128)][_0x374d81(0x10e)]({'where':{'type':_0x17cf5f,'resourceId':_0x1d06f7['id']}})[_0x374d81(0x10c)](function(){return _0x7e0f67;});})[_0x35368c(0x10c)](function(){const _0x290408=_0x35368c;_0x2d5619[_0x290408(0x108)](0xcc)['end']();});};}function handleEntityNotFound(_0x423ad0){return function(_0x60e14d){const _0x1b09ef=a57_0x592a;return!_0x60e14d&&_0x423ad0[_0x1b09ef(0x13c)](0x194),_0x60e14d;};}function handleError(_0x268e5c,_0x350f30){return _0x350f30=_0x350f30||0x1f4,function(_0x5e2b97){const _0x3f5f4b=a57_0x592a;logger[_0x3f5f4b(0x138)](_0x5e2b97['stack']),_0x5e2b97['name']&&delete _0x5e2b97[_0x3f5f4b(0x11e)],_0x268e5c[_0x3f5f4b(0x108)](_0x350f30)[_0x3f5f4b(0x131)](_0x5e2b97);};}exports[a57_0xb01239(0x11d)]=function(_0x5b6dd0,_0x5d2be9){const _0x36c1fa=a57_0xb01239;let _0x2460c1={};const _0x1fbf22={},_0x472bce={'count':0x0,'rows':[]},_0x19517a=_[_0x36c1fa(0x132)](db[_0x36c1fa(0x139)][_0x36c1fa(0x121)],function(_0x47e8b8){const _0x5a13b9=_0x36c1fa;return{'name':_0x47e8b8['fieldName'],'type':_0x47e8b8[_0x5a13b9(0x125)][_0x5a13b9(0x116)]};});_0x1fbf22[_0x36c1fa(0x110)]=_[_0x36c1fa(0x132)](_0x19517a,'name'),_0x1fbf22[_0x36c1fa(0x11f)]=_[_0x36c1fa(0x12d)](_0x5b6dd0[_0x36c1fa(0x11f)]),_0x1fbf22[_0x36c1fa(0x117)]=_[_0x36c1fa(0x13d)](_0x1fbf22[_0x36c1fa(0x110)],_0x1fbf22[_0x36c1fa(0x11f)]),_0x2460c1[_0x36c1fa(0x12f)]=_[_0x36c1fa(0x13d)](_0x1fbf22['model'],qs[_0x36c1fa(0x12b)](_0x5b6dd0[_0x36c1fa(0x11f)]['fields'])),_0x2460c1['attributes']=_0x2460c1[_0x36c1fa(0x12f)][_0x36c1fa(0x113)]?_0x2460c1[_0x36c1fa(0x12f)]:_0x1fbf22['model'];typeof _0x5b6dd0['query'][_0x36c1fa(0x130)]===_0x36c1fa(0x122)&&(_0x2460c1[_0x36c1fa(0x13e)]=qs[_0x36c1fa(0x13e)](_0x5b6dd0[_0x36c1fa(0x11f)][_0x36c1fa(0x13e)]),_0x2460c1[_0x36c1fa(0x11c)]=qs[_0x36c1fa(0x11c)](_0x5b6dd0['query'][_0x36c1fa(0x11c)]));_0x2460c1['order']=qs[_0x36c1fa(0x142)](_0x5b6dd0[_0x36c1fa(0x11f)][_0x36c1fa(0x142)]),_0x2460c1[_0x36c1fa(0x10a)]=qs['filters'](_[_0x36c1fa(0x10d)](_0x5b6dd0[_0x36c1fa(0x11f)],_0x1fbf22[_0x36c1fa(0x117)]),_0x19517a);_0x5b6dd0[_0x36c1fa(0x11f)][_0x36c1fa(0x119)]&&(_0x2460c1[_0x36c1fa(0x10a)]=_['merge'](_0x2460c1[_0x36c1fa(0x10a)],{[Op['or']]:_[_0x36c1fa(0x132)](_0x19517a,function(_0x444bf3){const _0x3b5c92=_0x36c1fa;if(_0x444bf3[_0x3b5c92(0x125)]!=='VIRTUAL'){const _0x34df92={};return _0x34df92[_0x444bf3['name']]={[Op[_0x3b5c92(0x118)]]:'%'+_0x5b6dd0[_0x3b5c92(0x11f)]['filter']+'%'},_0x34df92;}})}));_0x2460c1=_[_0x36c1fa(0x107)]({},_0x2460c1,_0x5b6dd0[_0x36c1fa(0x141)]);const _0x163c4b={'where':_0x2460c1['where']};return db[_0x36c1fa(0x139)][_0x36c1fa(0x12e)](_0x163c4b)['then'](function(_0x3a92be){const _0x23027f=_0x36c1fa;return _0x472bce['count']=_0x3a92be,_0x5b6dd0[_0x23027f(0x11f)][_0x23027f(0x109)]&&(_0x2460c1[_0x23027f(0x143)]=[{'all':!![]}]),db[_0x23027f(0x139)][_0x23027f(0x10f)](_0x2460c1);})[_0x36c1fa(0x10c)](function(_0x4b711d){return _0x472bce['rows']=_0x4b711d,_0x472bce;})[_0x36c1fa(0x10c)](respondWithFilteredResult(_0x5d2be9,_0x2460c1))['catch'](handleError(_0x5d2be9,null));},exports[a57_0xb01239(0x13f)]=function(_0x6a7042,_0x22717e){const _0x10ee40=a57_0xb01239;let _0x164b60={'raw':!![],'where':{'id':_0x6a7042[_0x10ee40(0x120)]['id']}};const _0x179f33={};return _0x179f33['model']=_[_0x10ee40(0x12d)](db[_0x10ee40(0x139)][_0x10ee40(0x121)]),_0x179f33[_0x10ee40(0x11f)]=_[_0x10ee40(0x12d)](_0x6a7042[_0x10ee40(0x11f)]),_0x179f33['filters']=_['intersection'](_0x179f33[_0x10ee40(0x110)],_0x179f33[_0x10ee40(0x11f)]),_0x164b60[_0x10ee40(0x12f)]=_[_0x10ee40(0x13d)](_0x179f33[_0x10ee40(0x110)],qs[_0x10ee40(0x12b)](_0x6a7042['query'][_0x10ee40(0x12b)])),_0x164b60[_0x10ee40(0x12f)]=_0x164b60[_0x10ee40(0x12f)][_0x10ee40(0x113)]?_0x164b60[_0x10ee40(0x12f)]:_0x179f33[_0x10ee40(0x110)],_0x6a7042[_0x10ee40(0x11f)]['includeAll']&&(_0x164b60['include']=[{'all':!![]}]),_0x164b60=_[_0x10ee40(0x107)]({},_0x164b60,_0x6a7042[_0x10ee40(0x141)]),db[_0x10ee40(0x139)][_0x10ee40(0x140)](_0x164b60)[_0x10ee40(0x10c)](handleEntityNotFound(_0x22717e,null))[_0x10ee40(0x10c)](respondWithResult(_0x22717e,null))[_0x10ee40(0x13a)](handleError(_0x22717e,null));},exports[a57_0xb01239(0x129)]=function(_0x35a12f,_0x4ef9b9){const _0x332ec2=a57_0xb01239;return _0x35a12f[_0x332ec2(0x111)]['id']&&delete _0x35a12f['body']['id'],db['CannedAnswer']['findOne']({'where':{'id':_0x35a12f[_0x332ec2(0x120)]['id']}})[_0x332ec2(0x10c)](handleEntityNotFound(_0x4ef9b9,null))['then'](saveUpdates(_0x35a12f[_0x332ec2(0x111)],null))['then'](respondWithResult(_0x4ef9b9,null))[_0x332ec2(0x13a)](handleError(_0x4ef9b9,null));},exports['destroy']=function(_0x592af6,_0xd59f88){const _0x104603=a57_0xb01239;return db[_0x104603(0x139)][_0x104603(0x140)]({'where':{'id':_0x592af6[_0x104603(0x120)]['id']}})[_0x104603(0x10c)](handleEntityNotFound(_0xd59f88,null))[_0x104603(0x10c)](removeEntity(_0xd59f88,null))[_0x104603(0x13a)](handleError(_0xd59f88,null));},exports[a57_0xb01239(0x10b)]=function(_0x5345c2,_0x2f72b9){const _0x1a94d2=a57_0xb01239,_0x150b01={'key':_0x5345c2[_0x1a94d2(0x111)][_0x1a94d2(0x116)]};if(_0x5345c2[_0x1a94d2(0x111)]['MailAccountId'])_0x150b01['MailAccountId']=_0x5345c2[_0x1a94d2(0x111)]['MailAccountId'];else{if(_0x5345c2[_0x1a94d2(0x111)]['SmsAccountId'])_0x150b01[_0x1a94d2(0x136)]=_0x5345c2[_0x1a94d2(0x111)][_0x1a94d2(0x136)];else{if(_0x5345c2['body'][_0x1a94d2(0x12c)])_0x150b01[_0x1a94d2(0x12c)]=_0x5345c2[_0x1a94d2(0x111)][_0x1a94d2(0x12c)];else _0x5345c2[_0x1a94d2(0x111)][_0x1a94d2(0x114)]&&(_0x150b01[_0x1a94d2(0x114)]=_0x5345c2[_0x1a94d2(0x111)]['ChatWebsiteId']);}}return db[_0x1a94d2(0x139)][_0x1a94d2(0x140)]({'where':_0x150b01})[_0x1a94d2(0x10c)](function(_0xfdfba4){const _0x3f2a0b=_0x1a94d2;if(_0xfdfba4)throw new ValidationError('The\x20inserted\x20key\x20already\x20exists.');return db['CannedAnswer'][_0x3f2a0b(0x10b)](_0x5345c2['body']);})[_0x1a94d2(0x10c)](function(_0x4eb655){const _0x5753d1=_0x1a94d2,_0x2e69c6=_0x5345c2[_0x5753d1(0x11a)][_0x5753d1(0x137)]({'plain':!![]});if(!_0x2e69c6)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x2e69c6[_0x5753d1(0x123)]===_0x5753d1(0x11a)){const _0x4c30f7=_0x4eb655[_0x5753d1(0x137)]({'plain':!![]});return db[_0x5753d1(0x127)][_0x5753d1(0x140)]({'where':{'name':_0x5753d1(0x13b),'userProfileId':_0x2e69c6[_0x5753d1(0x133)]},'raw':!![]})[_0x5753d1(0x10c)](function(_0x28101c){const _0x40fe07=_0x5753d1;return _0x28101c&&_0x28101c['autoAssociation']===0x0?db[_0x40fe07(0x128)]['create']({'name':_0x4c30f7[_0x40fe07(0x11e)],'resourceId':_0x4c30f7['id'],'type':_0x28101c[_0x40fe07(0x11e)],'sectionId':_0x28101c['id']},{})['then'](function(){return _0x4eb655;}):_0x4eb655;})['catch'](function(_0x399f44){const _0x3d33d9=_0x5753d1;logger[_0x3d33d9(0x138)](_0x3d33d9(0x135),_0x399f44);throw _0x399f44;});}return _0x4eb655;})[_0x1a94d2(0x10c)](respondWithResult(_0x2f72b9,0xc9))[_0x1a94d2(0x13a)](handleError(_0x2f72b9,null));}; \ No newline at end of file diff --git a/server/api/cannedAnswer/cannedAnswer.model.js b/server/api/cannedAnswer/cannedAnswer.model.js index cd5ee8b..c00e58f 100644 --- a/server/api/cannedAnswer/cannedAnswer.model.js +++ b/server/api/cannedAnswer/cannedAnswer.model.js @@ -1 +1 @@ -const a58_0x14f1=['function','CannedAnswer','init','sequelize'];(function(_0x23dc8b,_0x5bd4b0){const _0x14f136=function(_0x5433d7){while(--_0x5433d7){_0x23dc8b['push'](_0x23dc8b['shift']());}};_0x14f136(++_0x5bd4b0);}(a58_0x14f1,0x1e8));const a58_0x5433=function(_0x23dc8b,_0x5bd4b0){_0x23dc8b=_0x23dc8b-0xd4;let _0x14f136=a58_0x14f1[_0x23dc8b];return _0x14f136;};const a58_0x3644b8=a58_0x5433;'use strict';const {Model}=require(a58_0x3644b8(0xd7)),{attributes}=require('./cannedAnswer.attributes'),{options}=require('./cannedAnswer.options');class CannedAnswer extends Model{}function init(_0x268cae,_0x524331){const _0x121842=a58_0x3644b8,_0x44104e=options(_0x268cae),_0x3e27ce=typeof _0x524331===_0x121842(0xd4)?_0x524331(_0x44104e):_0x44104e;return CannedAnswer['init'](attributes,_0x3e27ce),CannedAnswer;}module['exports'][a58_0x3644b8(0xd5)]=CannedAnswer,module['exports'][a58_0x3644b8(0xd6)]=init; \ No newline at end of file +const a58_0x5d34=['init','exports','./cannedAnswer.options','CannedAnswer','./cannedAnswer.attributes','function','sequelize'];(function(_0x33a337,_0x148cfe){const _0x5d3495=function(_0x292ad0){while(--_0x292ad0){_0x33a337['push'](_0x33a337['shift']());}};_0x5d3495(++_0x148cfe);}(a58_0x5d34,0x74));const a58_0x292a=function(_0x33a337,_0x148cfe){_0x33a337=_0x33a337-0x1b0;let _0x5d3495=a58_0x5d34[_0x33a337];return _0x5d3495;};const a58_0x3ec7fa=a58_0x292a;'use strict';const {Model}=require(a58_0x3ec7fa(0x1b2)),{attributes}=require(a58_0x3ec7fa(0x1b0)),{options}=require(a58_0x3ec7fa(0x1b5));class CannedAnswer extends Model{}function init(_0x18957d,_0x353319){const _0x45d263=a58_0x3ec7fa,_0x4ee078=options(_0x18957d),_0x2d7c6d=typeof _0x353319===_0x45d263(0x1b1)?_0x353319(_0x4ee078):_0x4ee078;return CannedAnswer[_0x45d263(0x1b3)](attributes,_0x2d7c6d),CannedAnswer;}module[a58_0x3ec7fa(0x1b4)][a58_0x3ec7fa(0x1b6)]=CannedAnswer,module[a58_0x3ec7fa(0x1b4)]['init']=init; \ No newline at end of file diff --git a/server/api/cannedAnswer/cannedAnswer.options.js b/server/api/cannedAnswer/cannedAnswer.options.js index afe5f71..a8b7c06 100644 --- a/server/api/cannedAnswer/cannedAnswer.options.js +++ b/server/api/cannedAnswer/cannedAnswer.options.js @@ -1 +1 @@ -var a59_0x1556=['tools_canned_answers','utf8mb4_unicode_ci','options'];(function(_0xc434ec,_0x1ece3c){var _0x1556c7=function(_0x1ce8e5){while(--_0x1ce8e5){_0xc434ec['push'](_0xc434ec['shift']());}};_0x1556c7(++_0x1ece3c);}(a59_0x1556,0x11b));var a59_0x1ce8=function(_0xc434ec,_0x1ece3c){_0xc434ec=_0xc434ec-0x1e3;var _0x1556c7=a59_0x1556[_0xc434ec];return _0x1556c7;};var a59_0x18916c=a59_0x1ce8;function options(_0x2c9067){var _0x2f1d06=a59_0x1ce8;return{'sequelize':_0x2c9067,'tableName':_0x2f1d06(0x1e5),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x2f1d06(0x1e3)};}module['exports'][a59_0x18916c(0x1e4)]=options; \ No newline at end of file +var a59_0xc03b=['utf8mb4','exports','options','utf8mb4_unicode_ci'];(function(_0x124ec8,_0x4cd834){var _0xc03b87=function(_0x22e375){while(--_0x22e375){_0x124ec8['push'](_0x124ec8['shift']());}};_0xc03b87(++_0x4cd834);}(a59_0xc03b,0xd8));var a59_0x22e3=function(_0x124ec8,_0x4cd834){_0x124ec8=_0x124ec8-0xf9;var _0xc03b87=a59_0xc03b[_0x124ec8];return _0xc03b87;};var a59_0x484993=a59_0x22e3;function options(_0x471eed){var _0x42df0f=a59_0x22e3;return{'sequelize':_0x471eed,'tableName':'tools_canned_answers','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x42df0f(0xf9),'collate':_0x42df0f(0xfc)};}module[a59_0x484993(0xfa)][a59_0x484993(0xfb)]=options; \ No newline at end of file diff --git a/server/api/cannedAnswer/index.js b/server/api/cannedAnswer/index.js index d64008d..311d78d 100644 --- a/server/api/cannedAnswer/index.js +++ b/server/api/cannedAnswer/index.js @@ -1 +1 @@ -const a60_0x99a2=['destroy','post','isAuthenticated','get','exports','put','delete','create','/:id','index','show','update','Router'];(function(_0x3f9984,_0x17ec9a){const _0x99a242=function(_0x150a15){while(--_0x150a15){_0x3f9984['push'](_0x3f9984['shift']());}};_0x99a242(++_0x17ec9a);}(a60_0x99a2,0x1d0));const a60_0x150a=function(_0x3f9984,_0x17ec9a){_0x3f9984=_0x3f9984-0x71;let _0x99a242=a60_0x99a2[_0x3f9984];return _0x99a242;};const a60_0x2c5064=a60_0x150a;'use strict';const express=require('express'),router=express[a60_0x2c5064(0x74)](),auth=require('../../components/auth/service'),controller=require('./cannedAnswer.controller');router['get']('/',auth[a60_0x2c5064(0x77)](),controller[a60_0x2c5064(0x71)]),router[a60_0x2c5064(0x78)]('/:id',auth['isAuthenticated'](),controller[a60_0x2c5064(0x72)]),router[a60_0x2c5064(0x76)]('/',auth[a60_0x2c5064(0x77)](),controller[a60_0x2c5064(0x7c)]),router[a60_0x2c5064(0x7a)](a60_0x2c5064(0x7d),auth[a60_0x2c5064(0x77)](),controller[a60_0x2c5064(0x73)]),router[a60_0x2c5064(0x7b)](a60_0x2c5064(0x7d),auth[a60_0x2c5064(0x77)](),controller[a60_0x2c5064(0x75)]),module[a60_0x2c5064(0x79)]=router; \ No newline at end of file +const a60_0x38e6=['Router','../../components/auth/service','isAuthenticated','update','post','delete','exports','create','show','put','express','destroy','/:id','get'];(function(_0x40e21e,_0xbbc4d0){const _0x38e619=function(_0x5776e0){while(--_0x5776e0){_0x40e21e['push'](_0x40e21e['shift']());}};_0x38e619(++_0xbbc4d0);}(a60_0x38e6,0x10c));const a60_0x5776=function(_0x40e21e,_0xbbc4d0){_0x40e21e=_0x40e21e-0xa0;let _0x38e619=a60_0x38e6[_0x40e21e];return _0x38e619;};const a60_0x30ecef=a60_0x5776;'use strict';const express=require(a60_0x30ecef(0xa8)),router=express[a60_0x30ecef(0xac)](),auth=require(a60_0x30ecef(0xad)),controller=require('./cannedAnswer.controller');router[a60_0x30ecef(0xab)]('/',auth['isAuthenticated'](),controller['index']),router[a60_0x30ecef(0xab)]('/:id',auth[a60_0x30ecef(0xa0)](),controller[a60_0x30ecef(0xa6)]),router[a60_0x30ecef(0xa2)]('/',auth[a60_0x30ecef(0xa0)](),controller[a60_0x30ecef(0xa5)]),router[a60_0x30ecef(0xa7)](a60_0x30ecef(0xaa),auth[a60_0x30ecef(0xa0)](),controller[a60_0x30ecef(0xa1)]),router[a60_0x30ecef(0xa3)](a60_0x30ecef(0xaa),auth[a60_0x30ecef(0xa0)](),controller[a60_0x30ecef(0xa9)]),module[a60_0x30ecef(0xa4)]=router; \ No newline at end of file diff --git a/server/api/cdr/cdr.attributes.js b/server/api/cdr/cdr.attributes.js index 06d61dc..42e8064 100644 --- a/server/api/cdr/cdr.attributes.js +++ b/server/api/cdr/cdr.attributes.js @@ -1 +1 @@ -const a61_0x3c48=['DATE','sequelize','exports','attributes','STRING','INTEGER'];(function(_0x362f6f,_0x49574c){const _0x3c482c=function(_0x4a5293){while(--_0x4a5293){_0x362f6f['push'](_0x362f6f['shift']());}};_0x3c482c(++_0x49574c);}(a61_0x3c48,0xeb));const a61_0x4a52=function(_0x362f6f,_0x49574c){_0x362f6f=_0x362f6f-0x132;let _0x3c482c=a61_0x3c48[_0x362f6f];return _0x3c482c;};const a61_0x252d2f=a61_0x4a52;'use strict';const {DataTypes}=require(a61_0x252d2f(0x132)),attributes={'calldate':{'type':DataTypes[a61_0x252d2f(0x137)],'allowNull':![],'defaultValue':'1970-01-01\x2000:00:01'},'clid':{'type':DataTypes[a61_0x252d2f(0x135)]},'src':{'type':DataTypes[a61_0x252d2f(0x135)]},'dst':{'type':DataTypes[a61_0x252d2f(0x135)]},'dcontext':{'type':DataTypes['STRING']},'channel':{'type':DataTypes[a61_0x252d2f(0x135)]},'dstchannel':{'type':DataTypes['STRING']},'lastapp':{'type':DataTypes['STRING']},'lastdata':{'type':DataTypes[a61_0x252d2f(0x135)]},'duration':{'type':DataTypes[a61_0x252d2f(0x136)],'allowNull':![],'defaultValue':0x0},'billsec':{'type':DataTypes[a61_0x252d2f(0x136)],'allowNull':![],'defaultValue':0x0},'disposition':{'type':DataTypes[a61_0x252d2f(0x135)]},'amaflags':{'type':DataTypes['INTEGER'],'allowNull':![],'defaultValue':0x0},'accountcode':{'type':DataTypes[a61_0x252d2f(0x135)]},'userfield':{'type':DataTypes[a61_0x252d2f(0x135)]},'uniqueid':{'type':DataTypes[a61_0x252d2f(0x135)]},'linkedid':{'type':DataTypes[a61_0x252d2f(0x135)]},'sequence':{'type':DataTypes[a61_0x252d2f(0x135)]},'peeraccount':{'type':DataTypes[a61_0x252d2f(0x135)]},'type':{'type':DataTypes[a61_0x252d2f(0x135)]},'tag':{'type':DataTypes[a61_0x252d2f(0x135)]}};module[a61_0x252d2f(0x133)][a61_0x252d2f(0x134)]=attributes; \ No newline at end of file +const a61_0x6f68=['1970-01-01\x2000:00:01','INTEGER','sequelize','STRING'];(function(_0x3ef8c0,_0x591963){const _0x6f68ec=function(_0x3eb925){while(--_0x3eb925){_0x3ef8c0['push'](_0x3ef8c0['shift']());}};_0x6f68ec(++_0x591963);}(a61_0x6f68,0xfc));const a61_0x3eb9=function(_0x3ef8c0,_0x591963){_0x3ef8c0=_0x3ef8c0-0x17c;let _0x6f68ec=a61_0x6f68[_0x3ef8c0];return _0x6f68ec;};const a61_0x140924=a61_0x3eb9;'use strict';const {DataTypes}=require(a61_0x140924(0x17e)),attributes={'calldate':{'type':DataTypes['DATE'],'allowNull':![],'defaultValue':a61_0x140924(0x17c)},'clid':{'type':DataTypes[a61_0x140924(0x17f)]},'src':{'type':DataTypes[a61_0x140924(0x17f)]},'dst':{'type':DataTypes[a61_0x140924(0x17f)]},'dcontext':{'type':DataTypes[a61_0x140924(0x17f)]},'channel':{'type':DataTypes['STRING']},'dstchannel':{'type':DataTypes['STRING']},'lastapp':{'type':DataTypes[a61_0x140924(0x17f)]},'lastdata':{'type':DataTypes[a61_0x140924(0x17f)]},'duration':{'type':DataTypes['INTEGER'],'allowNull':![],'defaultValue':0x0},'billsec':{'type':DataTypes['INTEGER'],'allowNull':![],'defaultValue':0x0},'disposition':{'type':DataTypes['STRING']},'amaflags':{'type':DataTypes[a61_0x140924(0x17d)],'allowNull':![],'defaultValue':0x0},'accountcode':{'type':DataTypes['STRING']},'userfield':{'type':DataTypes[a61_0x140924(0x17f)]},'uniqueid':{'type':DataTypes[a61_0x140924(0x17f)]},'linkedid':{'type':DataTypes['STRING']},'sequence':{'type':DataTypes['STRING']},'peeraccount':{'type':DataTypes[a61_0x140924(0x17f)]},'type':{'type':DataTypes['STRING']},'tag':{'type':DataTypes[a61_0x140924(0x17f)]}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/cdr/cdr.controller.js b/server/api/cdr/cdr.controller.js index b3164b4..960b9dc 100644 --- a/server/api/cdr/cdr.controller.js +++ b/server/api/cdr/cdr.controller.js @@ -1 +1 @@ -const a62_0x3631=['end','body','filters','sort','key','rawAttributes','VIRTUAL','findAll','intersection','keys','Content-Range','like','params','fieldName','name','order','model','type','offset','attributes','query','set','status','../../mysqldb','findOne','then','merge','where','Cdr','update','show','nolimit','limit','describe','pick','../../config/logger','undefined','options','count','include','map','filter','create','length','destroy','fields','stack','api','catch','json','includeAll'];(function(_0x45d8d4,_0x5d724f){const _0x363112=function(_0x31e23f){while(--_0x31e23f){_0x45d8d4['push'](_0x45d8d4['shift']());}};_0x363112(++_0x5d724f);}(a62_0x3631,0x145));const a62_0x31e2=function(_0x45d8d4,_0x5d724f){_0x45d8d4=_0x45d8d4-0x1b8;let _0x363112=a62_0x3631[_0x45d8d4];return _0x363112;};const a62_0x3ba866=a62_0x31e2;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(a62_0x3ba866(0x1c8))(a62_0x3ba866(0x1d4)),{db}=require(a62_0x3ba866(0x1bc)),{Op}=require('sequelize');function respondWithResult(_0x37fb80,_0x3a49a4){return _0x3a49a4=_0x3a49a4||0xc8,function(_0x42bc3a){const _0x1c2377=a62_0x31e2;if(_0x42bc3a)return _0x37fb80['status'](_0x3a49a4)[_0x1c2377(0x1d6)](_0x42bc3a);};}function respondWithFilteredResult(_0xe7febb,_0x4fefca){return function(_0x362a90){const _0x10bcd9=a62_0x31e2;if(_0x362a90){const _0x36eb8f=_0x362a90[_0x10bcd9(0x1cb)],_0x31c09c=_0x4fefca[_0x10bcd9(0x1ea)];let _0x42e946=_0x4fefca[_0x10bcd9(0x1ea)]+_0x4fefca[_0x10bcd9(0x1c5)],_0x43f0be;return _0x42e946>=_0x36eb8f?(_0x42e946=_0x36eb8f,_0x43f0be=0xc8):_0x43f0be=0xce,_0xe7febb[_0x10bcd9(0x1bb)](_0x43f0be),_0xe7febb[_0x10bcd9(0x1ba)](_0x10bcd9(0x1e2),_0x31c09c+'-'+_0x42e946+'/'+_0x36eb8f)['json'](_0x362a90);}return null;};}function saveUpdates(_0x282c45){return function(_0x2b209e){const _0x3619de=a62_0x31e2;if(_0x2b209e)return _0x2b209e[_0x3619de(0x1c2)](_0x282c45)[_0x3619de(0x1be)](function(_0x2e32ca){return _0x2e32ca;});return null;};}function removeEntity(_0x12104f){return function(_0x4386ce){const _0x1e07f1=a62_0x31e2;if(_0x4386ce)return _0x4386ce[_0x1e07f1(0x1d1)]()[_0x1e07f1(0x1be)](function(){const _0x318da2=_0x1e07f1;_0x12104f['status'](0xcc)[_0x318da2(0x1d8)]();});};}function handleEntityNotFound(_0x586f90){return function(_0x3d064b){return!_0x3d064b&&_0x586f90['sendStatus'](0x194),_0x3d064b;};}function handleError(_0x100922,_0x348495){return _0x348495=_0x348495||0x1f4,function(_0x3f7d74){const _0x4bc7a6=a62_0x31e2;logger['error'](_0x3f7d74[_0x4bc7a6(0x1d3)]),_0x3f7d74['name']&&delete _0x3f7d74[_0x4bc7a6(0x1e6)],_0x100922[_0x4bc7a6(0x1bb)](_0x348495)['send'](_0x3f7d74);};}exports['index']=function(_0x5880dd,_0x1e01a6){const _0x1b481e=a62_0x3ba866;let _0x414e59={};const _0x10add7={},_0x36cb75={'count':0x0,'rows':[]},_0x11b299=_[_0x1b481e(0x1cd)](db['Cdr'][_0x1b481e(0x1dd)],function(_0x511706){const _0x175555=_0x1b481e;return{'name':_0x511706[_0x175555(0x1e5)],'type':_0x511706['type'][_0x175555(0x1dc)]};});_0x10add7[_0x1b481e(0x1e8)]=_[_0x1b481e(0x1cd)](_0x11b299,_0x1b481e(0x1e6)),_0x10add7[_0x1b481e(0x1b9)]=_['keys'](_0x5880dd[_0x1b481e(0x1b9)]),_0x10add7['filters']=_[_0x1b481e(0x1e0)](_0x10add7[_0x1b481e(0x1e8)],_0x10add7[_0x1b481e(0x1b9)]),_0x414e59[_0x1b481e(0x1b8)]=_['intersection'](_0x10add7[_0x1b481e(0x1e8)],qs[_0x1b481e(0x1d2)](_0x5880dd[_0x1b481e(0x1b9)][_0x1b481e(0x1d2)])),_0x414e59[_0x1b481e(0x1b8)]=_0x414e59['attributes'][_0x1b481e(0x1d0)]?_0x414e59[_0x1b481e(0x1b8)]:_0x10add7[_0x1b481e(0x1e8)];typeof _0x5880dd[_0x1b481e(0x1b9)][_0x1b481e(0x1c4)]===_0x1b481e(0x1c9)&&(_0x414e59[_0x1b481e(0x1c5)]=qs[_0x1b481e(0x1c5)](_0x5880dd[_0x1b481e(0x1b9)][_0x1b481e(0x1c5)]),_0x414e59['offset']=qs[_0x1b481e(0x1ea)](_0x5880dd[_0x1b481e(0x1b9)][_0x1b481e(0x1ea)]));_0x414e59[_0x1b481e(0x1e7)]=qs[_0x1b481e(0x1db)](_0x5880dd[_0x1b481e(0x1b9)]['sort']),_0x414e59[_0x1b481e(0x1c0)]=qs[_0x1b481e(0x1da)](_[_0x1b481e(0x1c7)](_0x5880dd[_0x1b481e(0x1b9)],_0x10add7[_0x1b481e(0x1da)]),_0x11b299);_0x5880dd[_0x1b481e(0x1b9)][_0x1b481e(0x1ce)]&&(_0x414e59[_0x1b481e(0x1c0)]=_[_0x1b481e(0x1bf)](_0x414e59[_0x1b481e(0x1c0)],{[Op['or']]:_['map'](_0x11b299,function(_0xb7ec0c){const _0x3bbdf5=_0x1b481e;if(_0xb7ec0c[_0x3bbdf5(0x1e9)]!==_0x3bbdf5(0x1de)){const _0x483405={};return _0x483405[_0xb7ec0c[_0x3bbdf5(0x1e6)]]={[Op[_0x3bbdf5(0x1e3)]]:'%'+_0x5880dd[_0x3bbdf5(0x1b9)][_0x3bbdf5(0x1ce)]+'%'},_0x483405;}})}));_0x414e59=_['merge']({},_0x414e59,_0x5880dd[_0x1b481e(0x1ca)]);const _0x53f0b4={'where':_0x414e59[_0x1b481e(0x1c0)]};return db[_0x1b481e(0x1c1)]['count'](_0x53f0b4)[_0x1b481e(0x1be)](function(_0x2db98f){const _0x5098e2=_0x1b481e;return _0x36cb75[_0x5098e2(0x1cb)]=_0x2db98f,_0x5880dd['query'][_0x5098e2(0x1d7)]&&(_0x414e59[_0x5098e2(0x1cc)]=[{'all':!![]}]),db[_0x5098e2(0x1c1)][_0x5098e2(0x1df)](_0x414e59);})[_0x1b481e(0x1be)](function(_0x228686){return _0x36cb75['rows']=_0x228686,_0x36cb75;})['then'](respondWithFilteredResult(_0x1e01a6,_0x414e59))[_0x1b481e(0x1d5)](handleError(_0x1e01a6,null));},exports[a62_0x3ba866(0x1c3)]=function(_0x4a8e38,_0x15118a){const _0x56a340=a62_0x3ba866;let _0x485025={'raw':!![],'where':{'id':_0x4a8e38[_0x56a340(0x1e4)]['id']}};const _0x268b5f={};return _0x268b5f[_0x56a340(0x1e8)]=_[_0x56a340(0x1e1)](db[_0x56a340(0x1c1)][_0x56a340(0x1dd)]),_0x268b5f['query']=_[_0x56a340(0x1e1)](_0x4a8e38[_0x56a340(0x1b9)]),_0x268b5f['filters']=_[_0x56a340(0x1e0)](_0x268b5f[_0x56a340(0x1e8)],_0x268b5f[_0x56a340(0x1b9)]),_0x485025[_0x56a340(0x1b8)]=_[_0x56a340(0x1e0)](_0x268b5f[_0x56a340(0x1e8)],qs[_0x56a340(0x1d2)](_0x4a8e38[_0x56a340(0x1b9)][_0x56a340(0x1d2)])),_0x485025[_0x56a340(0x1b8)]=_0x485025['attributes'][_0x56a340(0x1d0)]?_0x485025[_0x56a340(0x1b8)]:_0x268b5f[_0x56a340(0x1e8)],_0x4a8e38[_0x56a340(0x1b9)][_0x56a340(0x1d7)]&&(_0x485025[_0x56a340(0x1cc)]=[{'all':!![]}]),_0x485025=_[_0x56a340(0x1bf)]({},_0x485025,_0x4a8e38['options']),db[_0x56a340(0x1c1)]['findOne'](_0x485025)[_0x56a340(0x1be)](handleEntityNotFound(_0x15118a,null))[_0x56a340(0x1be)](respondWithResult(_0x15118a,null))['catch'](handleError(_0x15118a,null));},exports[a62_0x3ba866(0x1cf)]=function(_0x5479ab,_0x16e760){const _0x4cec17=a62_0x3ba866;return db[_0x4cec17(0x1c1)]['create'](_0x5479ab[_0x4cec17(0x1d9)],{})['then'](respondWithResult(_0x16e760,0xc9))['catch'](handleError(_0x16e760,null));},exports['update']=function(_0x462faf,_0x4d20bc){const _0x266674=a62_0x3ba866;return _0x462faf[_0x266674(0x1d9)]['id']&&delete _0x462faf[_0x266674(0x1d9)]['id'],db['Cdr'][_0x266674(0x1bd)]({'where':{'id':_0x462faf[_0x266674(0x1e4)]['id']}})[_0x266674(0x1be)](handleEntityNotFound(_0x4d20bc,null))[_0x266674(0x1be)](saveUpdates(_0x462faf[_0x266674(0x1d9)],null))['then'](respondWithResult(_0x4d20bc,null))[_0x266674(0x1d5)](handleError(_0x4d20bc,null));},exports[a62_0x3ba866(0x1d1)]=function(_0x27ca51,_0x32dea4){const _0x4f8486=a62_0x3ba866;return db[_0x4f8486(0x1c1)][_0x4f8486(0x1bd)]({'where':{'id':_0x27ca51[_0x4f8486(0x1e4)]['id']}})['then'](handleEntityNotFound(_0x32dea4,null))[_0x4f8486(0x1be)](removeEntity(_0x32dea4,null))['catch'](handleError(_0x32dea4,null));},exports[a62_0x3ba866(0x1c6)]=function(_0x4df822,_0x16049a){const _0x4d59e4=a62_0x3ba866;return db[_0x4d59e4(0x1c1)][_0x4d59e4(0x1c6)]()[_0x4d59e4(0x1be)](respondWithResult(_0x16049a,null))['catch'](handleError(_0x16049a,null));}; \ No newline at end of file +const a62_0x312f=['order','include','filters','pick','count','send','fieldName','model','../../mysqldb','set','offset','type','where','lodash','params','nolimit','limit','findOne','key','sort','status','map','../../components/parsers/qs','name','error','rawAttributes','body','merge','keys','Cdr','end','then','../../config/logger','query','Content-Range','describe','options','attributes','intersection','sequelize','fields','length','json','update','catch','index','destroy','sendStatus'];(function(_0x52794c,_0x3f689b){const _0x312f1b=function(_0x359c20){while(--_0x359c20){_0x52794c['push'](_0x52794c['shift']());}};_0x312f1b(++_0x3f689b);}(a62_0x312f,0x1a3));const a62_0x359c=function(_0x52794c,_0x3f689b){_0x52794c=_0x52794c-0xf5;let _0x312f1b=a62_0x312f[_0x52794c];return _0x312f1b;};const a62_0x26f2e7=a62_0x359c;'use strict';const _=require(a62_0x26f2e7(0x10f)),qs=require(a62_0x26f2e7(0x118)),logger=require(a62_0x26f2e7(0x122))('api'),{db}=require(a62_0x26f2e7(0x10a)),{Op}=require(a62_0x26f2e7(0xf9));function respondWithResult(_0x27359a,_0x3e36f0){return _0x3e36f0=_0x3e36f0||0xc8,function(_0x480c15){const _0x3a5869=a62_0x359c;if(_0x480c15)return _0x27359a[_0x3a5869(0x116)](_0x3e36f0)[_0x3a5869(0xfc)](_0x480c15);};}function respondWithFilteredResult(_0x4e7d14,_0x401b70){return function(_0x1b756d){const _0x473f23=a62_0x359c;if(_0x1b756d){const _0x179c56=_0x1b756d[_0x473f23(0x106)],_0x21aa72=_0x401b70[_0x473f23(0x10c)];let _0x4672b0=_0x401b70['offset']+_0x401b70[_0x473f23(0x112)],_0xecdb52;return _0x4672b0>=_0x179c56?(_0x4672b0=_0x179c56,_0xecdb52=0xc8):_0xecdb52=0xce,_0x4e7d14[_0x473f23(0x116)](_0xecdb52),_0x4e7d14[_0x473f23(0x10b)](_0x473f23(0x124),_0x21aa72+'-'+_0x4672b0+'/'+_0x179c56)[_0x473f23(0xfc)](_0x1b756d);}return null;};}function saveUpdates(_0x4089bb){return function(_0x2bc621){if(_0x2bc621)return _0x2bc621['update'](_0x4089bb)['then'](function(_0x32df2b){return _0x32df2b;});return null;};}function removeEntity(_0x474b85){return function(_0x16811d){const _0x1a6a5d=a62_0x359c;if(_0x16811d)return _0x16811d[_0x1a6a5d(0x100)]()[_0x1a6a5d(0x121)](function(){const _0x5bb191=_0x1a6a5d;_0x474b85[_0x5bb191(0x116)](0xcc)[_0x5bb191(0x120)]();});};}function handleEntityNotFound(_0x997bfb){return function(_0x1c513a){const _0x368492=a62_0x359c;return!_0x1c513a&&_0x997bfb[_0x368492(0x101)](0x194),_0x1c513a;};}function handleError(_0x1dc1f0,_0x1e321){return _0x1e321=_0x1e321||0x1f4,function(_0x451b43){const _0x368bf0=a62_0x359c;logger[_0x368bf0(0x11a)](_0x451b43['stack']),_0x451b43[_0x368bf0(0x119)]&&delete _0x451b43[_0x368bf0(0x119)],_0x1dc1f0[_0x368bf0(0x116)](_0x1e321)[_0x368bf0(0x107)](_0x451b43);};}exports[a62_0x26f2e7(0xff)]=function(_0x339c0a,_0x4c07b3){const _0x32598b=a62_0x26f2e7;let _0x168824={};const _0x503ce2={},_0x490833={'count':0x0,'rows':[]},_0x3066cb=_[_0x32598b(0x117)](db[_0x32598b(0x11f)][_0x32598b(0x11b)],function(_0x32a458){const _0x578d6c=_0x32598b;return{'name':_0x32a458[_0x578d6c(0x108)],'type':_0x32a458['type'][_0x578d6c(0x114)]};});_0x503ce2[_0x32598b(0x109)]=_[_0x32598b(0x117)](_0x3066cb,_0x32598b(0x119)),_0x503ce2[_0x32598b(0x123)]=_[_0x32598b(0x11e)](_0x339c0a[_0x32598b(0x123)]),_0x503ce2[_0x32598b(0x104)]=_[_0x32598b(0xf8)](_0x503ce2['model'],_0x503ce2['query']),_0x168824['attributes']=_[_0x32598b(0xf8)](_0x503ce2[_0x32598b(0x109)],qs[_0x32598b(0xfa)](_0x339c0a[_0x32598b(0x123)][_0x32598b(0xfa)])),_0x168824[_0x32598b(0xf7)]=_0x168824[_0x32598b(0xf7)][_0x32598b(0xfb)]?_0x168824['attributes']:_0x503ce2[_0x32598b(0x109)];typeof _0x339c0a[_0x32598b(0x123)][_0x32598b(0x111)]==='undefined'&&(_0x168824[_0x32598b(0x112)]=qs[_0x32598b(0x112)](_0x339c0a['query'][_0x32598b(0x112)]),_0x168824[_0x32598b(0x10c)]=qs[_0x32598b(0x10c)](_0x339c0a[_0x32598b(0x123)][_0x32598b(0x10c)]));_0x168824[_0x32598b(0x102)]=qs[_0x32598b(0x115)](_0x339c0a[_0x32598b(0x123)]['sort']),_0x168824[_0x32598b(0x10e)]=qs['filters'](_[_0x32598b(0x105)](_0x339c0a['query'],_0x503ce2['filters']),_0x3066cb);_0x339c0a[_0x32598b(0x123)]['filter']&&(_0x168824[_0x32598b(0x10e)]=_['merge'](_0x168824['where'],{[Op['or']]:_[_0x32598b(0x117)](_0x3066cb,function(_0x31066e){const _0x2b2e6d=_0x32598b;if(_0x31066e[_0x2b2e6d(0x10d)]!=='VIRTUAL'){const _0x52c87c={};return _0x52c87c[_0x31066e[_0x2b2e6d(0x119)]]={[Op['like']]:'%'+_0x339c0a[_0x2b2e6d(0x123)]['filter']+'%'},_0x52c87c;}})}));_0x168824=_[_0x32598b(0x11d)]({},_0x168824,_0x339c0a[_0x32598b(0xf6)]);const _0x3b1156={'where':_0x168824[_0x32598b(0x10e)]};return db['Cdr'][_0x32598b(0x106)](_0x3b1156)['then'](function(_0x54486b){const _0x34ae37=_0x32598b;return _0x490833[_0x34ae37(0x106)]=_0x54486b,_0x339c0a[_0x34ae37(0x123)]['includeAll']&&(_0x168824['include']=[{'all':!![]}]),db['Cdr']['findAll'](_0x168824);})['then'](function(_0x4bb5be){return _0x490833['rows']=_0x4bb5be,_0x490833;})['then'](respondWithFilteredResult(_0x4c07b3,_0x168824))[_0x32598b(0xfe)](handleError(_0x4c07b3,null));},exports['show']=function(_0x19fa6d,_0x46e848){const _0x552982=a62_0x26f2e7;let _0xeb2ff9={'raw':!![],'where':{'id':_0x19fa6d['params']['id']}};const _0x5b945c={};return _0x5b945c['model']=_[_0x552982(0x11e)](db['Cdr'][_0x552982(0x11b)]),_0x5b945c[_0x552982(0x123)]=_['keys'](_0x19fa6d[_0x552982(0x123)]),_0x5b945c[_0x552982(0x104)]=_['intersection'](_0x5b945c[_0x552982(0x109)],_0x5b945c['query']),_0xeb2ff9[_0x552982(0xf7)]=_[_0x552982(0xf8)](_0x5b945c['model'],qs[_0x552982(0xfa)](_0x19fa6d[_0x552982(0x123)][_0x552982(0xfa)])),_0xeb2ff9[_0x552982(0xf7)]=_0xeb2ff9[_0x552982(0xf7)][_0x552982(0xfb)]?_0xeb2ff9[_0x552982(0xf7)]:_0x5b945c['model'],_0x19fa6d[_0x552982(0x123)]['includeAll']&&(_0xeb2ff9[_0x552982(0x103)]=[{'all':!![]}]),_0xeb2ff9=_[_0x552982(0x11d)]({},_0xeb2ff9,_0x19fa6d[_0x552982(0xf6)]),db[_0x552982(0x11f)][_0x552982(0x113)](_0xeb2ff9)[_0x552982(0x121)](handleEntityNotFound(_0x46e848,null))[_0x552982(0x121)](respondWithResult(_0x46e848,null))['catch'](handleError(_0x46e848,null));},exports['create']=function(_0x5c33d6,_0x6facf5){const _0x2152c4=a62_0x26f2e7;return db[_0x2152c4(0x11f)]['create'](_0x5c33d6['body'],{})[_0x2152c4(0x121)](respondWithResult(_0x6facf5,0xc9))[_0x2152c4(0xfe)](handleError(_0x6facf5,null));},exports[a62_0x26f2e7(0xfd)]=function(_0x5c6abb,_0x40d9c6){const _0x1418ce=a62_0x26f2e7;return _0x5c6abb[_0x1418ce(0x11c)]['id']&&delete _0x5c6abb[_0x1418ce(0x11c)]['id'],db['Cdr'][_0x1418ce(0x113)]({'where':{'id':_0x5c6abb[_0x1418ce(0x110)]['id']}})[_0x1418ce(0x121)](handleEntityNotFound(_0x40d9c6,null))['then'](saveUpdates(_0x5c6abb[_0x1418ce(0x11c)],null))[_0x1418ce(0x121)](respondWithResult(_0x40d9c6,null))[_0x1418ce(0xfe)](handleError(_0x40d9c6,null));},exports[a62_0x26f2e7(0x100)]=function(_0xce4b17,_0x3e5ef9){const _0x3ab4b6=a62_0x26f2e7;return db[_0x3ab4b6(0x11f)][_0x3ab4b6(0x113)]({'where':{'id':_0xce4b17[_0x3ab4b6(0x110)]['id']}})[_0x3ab4b6(0x121)](handleEntityNotFound(_0x3e5ef9,null))['then'](removeEntity(_0x3e5ef9,null))[_0x3ab4b6(0xfe)](handleError(_0x3e5ef9,null));},exports['describe']=function(_0x39899e,_0x5baad4){const _0x31d207=a62_0x26f2e7;return db['Cdr'][_0x31d207(0xf5)]()[_0x31d207(0x121)](respondWithResult(_0x5baad4,null))[_0x31d207(0xfe)](handleError(_0x5baad4,null));}; \ No newline at end of file diff --git a/server/api/cdr/cdr.model.js b/server/api/cdr/cdr.model.js index c6d8fcd..b5c5b8c 100644 --- a/server/api/cdr/cdr.model.js +++ b/server/api/cdr/cdr.model.js @@ -1 +1 @@ -const a63_0x4166=['exports','sequelize','function','./cdr.attributes','Cdr','init'];(function(_0x3bdde7,_0x35826c){const _0x41667a=function(_0x5eaf2f){while(--_0x5eaf2f){_0x3bdde7['push'](_0x3bdde7['shift']());}};_0x41667a(++_0x35826c);}(a63_0x4166,0x1c9));const a63_0x5eaf=function(_0x3bdde7,_0x35826c){_0x3bdde7=_0x3bdde7-0x1ad;let _0x41667a=a63_0x4166[_0x3bdde7];return _0x41667a;};const a63_0x5380d1=a63_0x5eaf;'use strict';const {Model}=require(a63_0x5380d1(0x1ad)),{attributes}=require(a63_0x5380d1(0x1af)),{options}=require('./cdr.options');class Cdr extends Model{}function init(_0x2fb1d0,_0x4cb40c){const _0x4f6bc0=a63_0x5380d1,_0x14699=options(_0x2fb1d0),_0x39a382=typeof _0x4cb40c===_0x4f6bc0(0x1ae)?_0x4cb40c(_0x14699):_0x14699;return Cdr[_0x4f6bc0(0x1b1)](attributes,_0x39a382),Cdr;}module[a63_0x5380d1(0x1b2)][a63_0x5380d1(0x1b0)]=Cdr,module[a63_0x5380d1(0x1b2)]['init']=init; \ No newline at end of file +const a63_0x3186=['sequelize','Cdr','init','./cdr.options','./cdr.attributes','exports'];(function(_0x2b09c3,_0x3f851b){const _0x31860c=function(_0x380efe){while(--_0x380efe){_0x2b09c3['push'](_0x2b09c3['shift']());}};_0x31860c(++_0x3f851b);}(a63_0x3186,0x14e));const a63_0x380e=function(_0x2b09c3,_0x3f851b){_0x2b09c3=_0x2b09c3-0x1aa;let _0x31860c=a63_0x3186[_0x2b09c3];return _0x31860c;};const a63_0x336e56=a63_0x380e;'use strict';const {Model}=require(a63_0x336e56(0x1ac)),{attributes}=require(a63_0x336e56(0x1aa)),{options}=require(a63_0x336e56(0x1af));class Cdr extends Model{}function init(_0xe42997,_0xeb45b3){const _0x19b98d=a63_0x336e56,_0x5932e4=options(_0xe42997),_0x1aa535=typeof _0xeb45b3==='function'?_0xeb45b3(_0x5932e4):_0x5932e4;return Cdr[_0x19b98d(0x1ae)](attributes,_0x1aa535),Cdr;}module[a63_0x336e56(0x1ab)][a63_0x336e56(0x1ad)]=Cdr,module[a63_0x336e56(0x1ab)][a63_0x336e56(0x1ae)]=init; \ No newline at end of file diff --git a/server/api/cdr/cdr.options.js b/server/api/cdr/cdr.options.js index ece4530..9084eb6 100644 --- a/server/api/cdr/cdr.options.js +++ b/server/api/cdr/cdr.options.js @@ -1 +1 @@ -var a64_0x386d=['dst','disposition','cdr','calldate','src','uniqueid','accountcode','exports'];(function(_0x4820d6,_0x521dcd){var _0x386d9b=function(_0x558a00){while(--_0x558a00){_0x4820d6['push'](_0x4820d6['shift']());}};_0x386d9b(++_0x521dcd);}(a64_0x386d,0x1e3));var a64_0x558a=function(_0x4820d6,_0x521dcd){_0x4820d6=_0x4820d6-0x117;var _0x386d9b=a64_0x386d[_0x4820d6];return _0x386d9b;};var a64_0x9a1dad=a64_0x558a;function options(_0x4ea7de){var _0x1f4c25=a64_0x558a;return{'sequelize':_0x4ea7de,'tableName':_0x1f4c25(0x11e),'paranoid':![],'indexes':[{'name':_0x1f4c25(0x11a),'fields':[_0x1f4c25(0x11a)]},{'name':'calldate','fields':[_0x1f4c25(0x117)]},{'name':_0x1f4c25(0x11d),'fields':['disposition']},{'name':_0x1f4c25(0x11c),'fields':[_0x1f4c25(0x11c)]},{'name':_0x1f4c25(0x118),'fields':[_0x1f4c25(0x118)]},{'name':_0x1f4c25(0x119),'fields':['uniqueid']}],'timestamps':![]};}module[a64_0x9a1dad(0x11b)]['options']=options; \ No newline at end of file +var a64_0x5677=['accountcode','exports','cdr','dst','calldate','options','uniqueid','src','disposition'];(function(_0x1c5937,_0x4fcf05){var _0x5677aa=function(_0x4764ed){while(--_0x4764ed){_0x1c5937['push'](_0x1c5937['shift']());}};_0x5677aa(++_0x4fcf05);}(a64_0x5677,0x8c));var a64_0x4764=function(_0x1c5937,_0x4fcf05){_0x1c5937=_0x1c5937-0x167;var _0x5677aa=a64_0x5677[_0x1c5937];return _0x5677aa;};var a64_0x4c2936=a64_0x4764;function options(_0x365a07){var _0x27e2c5=a64_0x4764;return{'sequelize':_0x365a07,'tableName':_0x27e2c5(0x16d),'paranoid':![],'indexes':[{'name':'accountcode','fields':[_0x27e2c5(0x16b)]},{'name':'calldate','fields':[_0x27e2c5(0x16f)]},{'name':_0x27e2c5(0x16a),'fields':[_0x27e2c5(0x16a)]},{'name':_0x27e2c5(0x16e),'fields':[_0x27e2c5(0x16e)]},{'name':_0x27e2c5(0x169),'fields':[_0x27e2c5(0x169)]},{'name':_0x27e2c5(0x168),'fields':[_0x27e2c5(0x168)]}],'timestamps':![]};}module[a64_0x4c2936(0x16c)][a64_0x4c2936(0x167)]=options; \ No newline at end of file diff --git a/server/api/cdr/index.js b/server/api/cdr/index.js index b7a70c4..5b26191 100644 --- a/server/api/cdr/index.js +++ b/server/api/cdr/index.js @@ -1 +1 @@ -const a65_0x5851=['get','exports','isAuthenticated','put','/:id','/describe','delete','express','update','../../components/auth/service','destroy','Router','show'];(function(_0x2c6f1d,_0xb00a6c){const _0x585176=function(_0x3c4bea){while(--_0x3c4bea){_0x2c6f1d['push'](_0x2c6f1d['shift']());}};_0x585176(++_0xb00a6c);}(a65_0x5851,0x16e));const a65_0x3c4b=function(_0x2c6f1d,_0xb00a6c){_0x2c6f1d=_0x2c6f1d-0xf0;let _0x585176=a65_0x5851[_0x2c6f1d];return _0x585176;};const a65_0x1ebded=a65_0x3c4b;'use strict';const express=require(a65_0x1ebded(0xf5)),router=express[a65_0x1ebded(0xf9)](),auth=require(a65_0x1ebded(0xf7)),controller=require('./cdr.controller');router[a65_0x1ebded(0xfb)]('/',auth[a65_0x1ebded(0xf0)](),controller['index']),router['get'](a65_0x1ebded(0xf3),auth[a65_0x1ebded(0xf0)](),controller['describe']),router[a65_0x1ebded(0xfb)](a65_0x1ebded(0xf2),auth[a65_0x1ebded(0xf0)](),controller[a65_0x1ebded(0xfa)]),router['post']('/',auth['isAuthenticated'](),controller['create']),router[a65_0x1ebded(0xf1)]('/:id',auth['isAuthenticated'](),controller[a65_0x1ebded(0xf6)]),router[a65_0x1ebded(0xf4)]('/:id',auth['isAuthenticated'](),controller[a65_0x1ebded(0xf8)]),module[a65_0x1ebded(0xfc)]=router; \ No newline at end of file +const a65_0x4072=['/:id','/describe','describe','update','get','exports','./cdr.controller','express','show','put','destroy','../../components/auth/service','create','isAuthenticated'];(function(_0x5a3847,_0x2b3540){const _0x407235=function(_0x33b09b){while(--_0x33b09b){_0x5a3847['push'](_0x5a3847['shift']());}};_0x407235(++_0x2b3540);}(a65_0x4072,0xff));const a65_0x33b0=function(_0x5a3847,_0x2b3540){_0x5a3847=_0x5a3847-0x1da;let _0x407235=a65_0x4072[_0x5a3847];return _0x407235;};const a65_0x49a3e6=a65_0x33b0;'use strict';const express=require(a65_0x49a3e6(0x1de)),router=express['Router'](),auth=require(a65_0x49a3e6(0x1e2)),controller=require(a65_0x49a3e6(0x1dd));router[a65_0x49a3e6(0x1db)]('/',auth['isAuthenticated'](),controller['index']),router['get'](a65_0x49a3e6(0x1e6),auth[a65_0x49a3e6(0x1e4)](),controller[a65_0x49a3e6(0x1e7)]),router[a65_0x49a3e6(0x1db)](a65_0x49a3e6(0x1e5),auth[a65_0x49a3e6(0x1e4)](),controller[a65_0x49a3e6(0x1df)]),router['post']('/',auth['isAuthenticated'](),controller[a65_0x49a3e6(0x1e3)]),router[a65_0x49a3e6(0x1e0)]('/:id',auth[a65_0x49a3e6(0x1e4)](),controller[a65_0x49a3e6(0x1da)]),router['delete'](a65_0x49a3e6(0x1e5),auth[a65_0x49a3e6(0x1e4)](),controller[a65_0x49a3e6(0x1e1)]),module[a65_0x49a3e6(0x1dc)]=router; \ No newline at end of file diff --git a/server/api/chatApplication/chatApplication.attributes.js b/server/api/chatApplication/chatApplication.attributes.js index 846973c..f874897 100644 --- a/server/api/chatApplication/chatApplication.attributes.js +++ b/server/api/chatApplication/chatApplication.attributes.js @@ -1 +1 @@ -const a66_0x5f02=['exports','TEXT','STRING','*,*,*,*','sequelize','attributes','noop','INTEGER'];(function(_0xc74b68,_0x5e7254){const _0x5f0299=function(_0x30c4d7){while(--_0x30c4d7){_0xc74b68['push'](_0xc74b68['shift']());}};_0x5f0299(++_0x5e7254);}(a66_0x5f02,0x1f2));const a66_0x30c4=function(_0xc74b68,_0x5e7254){_0xc74b68=_0xc74b68-0x183;let _0x5f0299=a66_0x5f02[_0xc74b68];return _0x5f0299;};const a66_0x407078=a66_0x30c4;'use strict';const {DataTypes}=require(a66_0x407078(0x185)),attributes={'priority':{'type':DataTypes[a66_0x407078(0x188)],'allowNull':![]},'app':{'type':DataTypes[a66_0x407078(0x183)],'allowNull':![],'defaultValue':a66_0x407078(0x187)},'appdata':{'type':DataTypes[a66_0x407078(0x18a)]()},'description':{'type':DataTypes['STRING']},'interval':{'type':DataTypes['STRING'],'defaultValue':a66_0x407078(0x184)}};module[a66_0x407078(0x189)][a66_0x407078(0x186)]=attributes; \ No newline at end of file +const a66_0x4982=['sequelize','exports','noop','INTEGER','*,*,*,*','STRING'];(function(_0x55ddc8,_0x358e76){const _0x498275=function(_0x306fd3){while(--_0x306fd3){_0x55ddc8['push'](_0x55ddc8['shift']());}};_0x498275(++_0x358e76);}(a66_0x4982,0x18a));const a66_0x306f=function(_0x55ddc8,_0x358e76){_0x55ddc8=_0x55ddc8-0xb6;let _0x498275=a66_0x4982[_0x55ddc8];return _0x498275;};const a66_0xafbc4f=a66_0x306f;'use strict';const {DataTypes}=require(a66_0xafbc4f(0xb8)),attributes={'priority':{'type':DataTypes[a66_0xafbc4f(0xbb)],'allowNull':![]},'app':{'type':DataTypes[a66_0xafbc4f(0xb7)],'allowNull':![],'defaultValue':a66_0xafbc4f(0xba)},'appdata':{'type':DataTypes['TEXT']()},'description':{'type':DataTypes[a66_0xafbc4f(0xb7)]},'interval':{'type':DataTypes[a66_0xafbc4f(0xb7)],'defaultValue':a66_0xafbc4f(0xb6)}};module[a66_0xafbc4f(0xb9)]['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 79bd83d..90eb987 100644 --- a/server/api/chatApplication/chatApplication.controller.js +++ b/server/api/chatApplication/chatApplication.controller.js @@ -1 +1 @@ -const a67_0x8b8b=['send','include','merge','intersection','then','filters','model','../../components/parsers/qs','destroy','options','query','length','name','fields','../../mysqldb','params','json','includeAll','attributes','sendStatus','keys','status','lodash','findOne','update','../../config/logger','rawAttributes','body','api','ChatApplication','catch'];(function(_0x1fbebe,_0x3798ee){const _0x8b8b3f=function(_0x36e9c7){while(--_0x36e9c7){_0x1fbebe['push'](_0x1fbebe['shift']());}};_0x8b8b3f(++_0x3798ee);}(a67_0x8b8b,0x84));const a67_0x36e9=function(_0x1fbebe,_0x3798ee){_0x1fbebe=_0x1fbebe-0x16b;let _0x8b8b3f=a67_0x8b8b[_0x1fbebe];return _0x8b8b3f;};const a67_0x1f3c7b=a67_0x36e9;'use strict';const _=require(a67_0x1f3c7b(0x179)),qs=require(a67_0x1f3c7b(0x189)),logger=require(a67_0x1f3c7b(0x17c))(a67_0x1f3c7b(0x17f)),{db}=require(a67_0x1f3c7b(0x171));function respondWithResult(_0x58dc67,_0x477983){return _0x477983=_0x477983||0xc8,function(_0x10ddaa){const _0x384743=a67_0x36e9;if(_0x10ddaa)return _0x58dc67[_0x384743(0x178)](_0x477983)[_0x384743(0x173)](_0x10ddaa);};}function saveUpdates(_0xcee0c3){return function(_0x321514){const _0x297c06=a67_0x36e9;if(_0x321514)return _0x321514[_0x297c06(0x17b)](_0xcee0c3)['then'](function(_0x6f58cc){return _0x6f58cc;});return null;};}function removeEntity(_0x5965f2){return function(_0x409368){const _0xb75d28=a67_0x36e9;if(_0x409368)return _0x409368[_0xb75d28(0x16b)]()[_0xb75d28(0x186)](function(){const _0xe68b71=_0xb75d28;_0x5965f2[_0xe68b71(0x178)](0xcc)['end']();});};}function handleEntityNotFound(_0x3ca173){return function(_0x521861){const _0x2bc920=a67_0x36e9;return!_0x521861&&_0x3ca173[_0x2bc920(0x176)](0x194),_0x521861;};}function handleError(_0x119239,_0x4a3532){return _0x4a3532=_0x4a3532||0x1f4,function(_0x19f185){const _0x3ffd4b=a67_0x36e9;logger['error'](_0x19f185['stack']),_0x19f185[_0x3ffd4b(0x16f)]&&delete _0x19f185[_0x3ffd4b(0x16f)],_0x119239[_0x3ffd4b(0x178)](_0x4a3532)[_0x3ffd4b(0x182)](_0x19f185);};}exports['show']=function(_0x2bf45e,_0x49c56e){const _0x275d5a=a67_0x1f3c7b;let _0x530855={'raw':!![],'where':{'id':_0x2bf45e['params']['id']}};const _0x4205fb={};return _0x4205fb[_0x275d5a(0x188)]=_[_0x275d5a(0x177)](db[_0x275d5a(0x180)][_0x275d5a(0x17d)]),_0x4205fb[_0x275d5a(0x16d)]=_[_0x275d5a(0x177)](_0x2bf45e['query']),_0x4205fb[_0x275d5a(0x187)]=_[_0x275d5a(0x185)](_0x4205fb[_0x275d5a(0x188)],_0x4205fb[_0x275d5a(0x16d)]),_0x530855[_0x275d5a(0x175)]=_[_0x275d5a(0x185)](_0x4205fb['model'],qs['fields'](_0x2bf45e[_0x275d5a(0x16d)][_0x275d5a(0x170)])),_0x530855[_0x275d5a(0x175)]=_0x530855[_0x275d5a(0x175)][_0x275d5a(0x16e)]?_0x530855['attributes']:_0x4205fb[_0x275d5a(0x188)],_0x2bf45e[_0x275d5a(0x16d)][_0x275d5a(0x174)]&&(_0x530855[_0x275d5a(0x183)]=[{'all':!![]}]),_0x530855=_[_0x275d5a(0x184)]({},_0x530855,_0x2bf45e[_0x275d5a(0x16c)]),db['ChatApplication'][_0x275d5a(0x17a)](_0x530855)['then'](handleEntityNotFound(_0x49c56e,null))[_0x275d5a(0x186)](respondWithResult(_0x49c56e,null))[_0x275d5a(0x181)](handleError(_0x49c56e,null));},exports[a67_0x1f3c7b(0x17b)]=function(_0xf3d9f6,_0x21b25b){const _0x5bf4b4=a67_0x1f3c7b;return _0xf3d9f6[_0x5bf4b4(0x17e)]['id']&&delete _0xf3d9f6['body']['id'],db[_0x5bf4b4(0x180)]['findOne']({'where':{'id':_0xf3d9f6[_0x5bf4b4(0x172)]['id']}})['then'](handleEntityNotFound(_0x21b25b,null))[_0x5bf4b4(0x186)](saveUpdates(_0xf3d9f6[_0x5bf4b4(0x17e)],null))[_0x5bf4b4(0x186)](respondWithResult(_0x21b25b,null))[_0x5bf4b4(0x181)](handleError(_0x21b25b,null));},exports[a67_0x1f3c7b(0x16b)]=function(_0x5dc6a8,_0x31f36a){const _0x71caef=a67_0x1f3c7b;return db[_0x71caef(0x180)]['findOne']({'where':{'id':_0x5dc6a8[_0x71caef(0x172)]['id']}})['then'](handleEntityNotFound(_0x31f36a,null))[_0x71caef(0x186)](removeEntity(_0x31f36a,null))['catch'](handleError(_0x31f36a,null));}; \ No newline at end of file +const a67_0x4810=['include','query','rawAttributes','intersection','destroy','sendStatus','status','params','model','fields','json','../../config/logger','../../mysqldb','catch','show','end','attributes','body','merge','findOne','lodash','api','keys','update','then','stack','error','ChatApplication','name'];(function(_0x186cf0,_0x2e6cd4){const _0x48100a=function(_0x95007c){while(--_0x95007c){_0x186cf0['push'](_0x186cf0['shift']());}};_0x48100a(++_0x2e6cd4);}(a67_0x4810,0x1bb));const a67_0x9500=function(_0x186cf0,_0x2e6cd4){_0x186cf0=_0x186cf0-0x106;let _0x48100a=a67_0x4810[_0x186cf0];return _0x48100a;};const a67_0x1c4593=a67_0x9500;'use strict';const _=require(a67_0x1c4593(0x112)),qs=require('../../components/parsers/qs'),logger=require(a67_0x1c4593(0x109))(a67_0x1c4593(0x113)),{db}=require(a67_0x1c4593(0x10a));function respondWithResult(_0x59b8d5,_0x1db8a6){return _0x1db8a6=_0x1db8a6||0xc8,function(_0x379fbc){const _0x54c6b3=a67_0x9500;if(_0x379fbc)return _0x59b8d5[_0x54c6b3(0x121)](_0x1db8a6)[_0x54c6b3(0x108)](_0x379fbc);};}function saveUpdates(_0x9418ce){return function(_0x425b24){const _0x40857c=a67_0x9500;if(_0x425b24)return _0x425b24[_0x40857c(0x115)](_0x9418ce)[_0x40857c(0x116)](function(_0x436f74){return _0x436f74;});return null;};}function removeEntity(_0x323451){return function(_0x1e93f8){const _0xfc86ef=a67_0x9500;if(_0x1e93f8)return _0x1e93f8[_0xfc86ef(0x11f)]()[_0xfc86ef(0x116)](function(){const _0x2dce6c=_0xfc86ef;_0x323451['status'](0xcc)[_0x2dce6c(0x10d)]();});};}function handleEntityNotFound(_0x31709f){return function(_0x2c227b){const _0x469b27=a67_0x9500;return!_0x2c227b&&_0x31709f[_0x469b27(0x120)](0x194),_0x2c227b;};}function handleError(_0xfcf5c0,_0x19aee5){return _0x19aee5=_0x19aee5||0x1f4,function(_0x235e26){const _0x1f4f98=a67_0x9500;logger[_0x1f4f98(0x118)](_0x235e26[_0x1f4f98(0x117)]),_0x235e26[_0x1f4f98(0x11a)]&&delete _0x235e26[_0x1f4f98(0x11a)],_0xfcf5c0[_0x1f4f98(0x121)](_0x19aee5)['send'](_0x235e26);};}exports[a67_0x1c4593(0x10c)]=function(_0x41e3b3,_0x5aa392){const _0x13fe94=a67_0x1c4593;let _0x37999e={'raw':!![],'where':{'id':_0x41e3b3['params']['id']}};const _0x38a9c4={};return _0x38a9c4[_0x13fe94(0x106)]=_['keys'](db[_0x13fe94(0x119)][_0x13fe94(0x11d)]),_0x38a9c4[_0x13fe94(0x11c)]=_[_0x13fe94(0x114)](_0x41e3b3[_0x13fe94(0x11c)]),_0x38a9c4['filters']=_[_0x13fe94(0x11e)](_0x38a9c4[_0x13fe94(0x106)],_0x38a9c4[_0x13fe94(0x11c)]),_0x37999e[_0x13fe94(0x10e)]=_[_0x13fe94(0x11e)](_0x38a9c4[_0x13fe94(0x106)],qs['fields'](_0x41e3b3[_0x13fe94(0x11c)][_0x13fe94(0x107)])),_0x37999e['attributes']=_0x37999e['attributes']['length']?_0x37999e[_0x13fe94(0x10e)]:_0x38a9c4['model'],_0x41e3b3[_0x13fe94(0x11c)]['includeAll']&&(_0x37999e[_0x13fe94(0x11b)]=[{'all':!![]}]),_0x37999e=_[_0x13fe94(0x110)]({},_0x37999e,_0x41e3b3['options']),db[_0x13fe94(0x119)][_0x13fe94(0x111)](_0x37999e)[_0x13fe94(0x116)](handleEntityNotFound(_0x5aa392,null))[_0x13fe94(0x116)](respondWithResult(_0x5aa392,null))[_0x13fe94(0x10b)](handleError(_0x5aa392,null));},exports[a67_0x1c4593(0x115)]=function(_0x377be3,_0x55c908){const _0x57f25a=a67_0x1c4593;return _0x377be3[_0x57f25a(0x10f)]['id']&&delete _0x377be3[_0x57f25a(0x10f)]['id'],db[_0x57f25a(0x119)][_0x57f25a(0x111)]({'where':{'id':_0x377be3['params']['id']}})[_0x57f25a(0x116)](handleEntityNotFound(_0x55c908,null))[_0x57f25a(0x116)](saveUpdates(_0x377be3[_0x57f25a(0x10f)],null))[_0x57f25a(0x116)](respondWithResult(_0x55c908,null))['catch'](handleError(_0x55c908,null));},exports[a67_0x1c4593(0x11f)]=function(_0x4d3683,_0x3bcf72){const _0x1512f3=a67_0x1c4593;return db[_0x1512f3(0x119)][_0x1512f3(0x111)]({'where':{'id':_0x4d3683[_0x1512f3(0x122)]['id']}})[_0x1512f3(0x116)](handleEntityNotFound(_0x3bcf72,null))[_0x1512f3(0x116)](removeEntity(_0x3bcf72,null))['catch'](handleError(_0x3bcf72,null));}; \ No newline at end of file diff --git a/server/api/chatApplication/chatApplication.model.js b/server/api/chatApplication/chatApplication.model.js index b771251..6fea058 100644 --- a/server/api/chatApplication/chatApplication.model.js +++ b/server/api/chatApplication/chatApplication.model.js @@ -1 +1 @@ -const a68_0x4b84=['ChatApplication','./chatApplication.options','init','function','./chatApplication.attributes','exports'];(function(_0xfb4755,_0x201d99){const _0x4b8456=function(_0x5423b7){while(--_0x5423b7){_0xfb4755['push'](_0xfb4755['shift']());}};_0x4b8456(++_0x201d99);}(a68_0x4b84,0x1d1));const a68_0x5423=function(_0xfb4755,_0x201d99){_0xfb4755=_0xfb4755-0x1cc;let _0x4b8456=a68_0x4b84[_0xfb4755];return _0x4b8456;};const a68_0x458464=a68_0x5423;'use strict';const {Model}=require('sequelize'),{attributes}=require(a68_0x458464(0x1cd)),{options}=require(a68_0x458464(0x1d0));class ChatApplication extends Model{}function init(_0x4cea0b,_0x2c6642){const _0x215a8a=a68_0x458464,_0x5ec21c=options(_0x4cea0b),_0x29ac4b=typeof _0x2c6642===_0x215a8a(0x1cc)?_0x2c6642(_0x5ec21c):_0x5ec21c;return ChatApplication['init'](attributes,_0x29ac4b),ChatApplication;}module[a68_0x458464(0x1ce)][a68_0x458464(0x1cf)]=ChatApplication,module[a68_0x458464(0x1ce)][a68_0x458464(0x1d1)]=init; \ No newline at end of file +const a68_0x4ba1=['exports','ChatApplication','function','./chatApplication.options','init','./chatApplication.attributes'];(function(_0x447706,_0x46db83){const _0x4ba12c=function(_0x59a9d7){while(--_0x59a9d7){_0x447706['push'](_0x447706['shift']());}};_0x4ba12c(++_0x46db83);}(a68_0x4ba1,0x1a0));const a68_0x59a9=function(_0x447706,_0x46db83){_0x447706=_0x447706-0xc6;let _0x4ba12c=a68_0x4ba1[_0x447706];return _0x4ba12c;};const a68_0x4a6a45=a68_0x59a9;'use strict';const {Model}=require('sequelize'),{attributes}=require(a68_0x4a6a45(0xc9)),{options}=require(a68_0x4a6a45(0xc7));class ChatApplication extends Model{}function init(_0x15449c,_0xbf26fc){const _0x532f77=a68_0x4a6a45,_0x348f7f=options(_0x15449c),_0x35c518=typeof _0xbf26fc===_0x532f77(0xc6)?_0xbf26fc(_0x348f7f):_0x348f7f;return ChatApplication[_0x532f77(0xc8)](attributes,_0x35c518),ChatApplication;}module['exports'][a68_0x4a6a45(0xcb)]=ChatApplication,module[a68_0x4a6a45(0xca)]['init']=init; \ No newline at end of file diff --git a/server/api/chatApplication/chatApplication.options.js b/server/api/chatApplication/chatApplication.options.js index 94bfad3..81c21b0 100644 --- a/server/api/chatApplication/chatApplication.options.js +++ b/server/api/chatApplication/chatApplication.options.js @@ -1 +1 @@ -var a69_0x1c00=['chat_applications','exports','utf8mb4'];(function(_0x1788e8,_0x259b69){var _0x1c0019=function(_0x1f61e9){while(--_0x1f61e9){_0x1788e8['push'](_0x1788e8['shift']());}};_0x1c0019(++_0x259b69);}(a69_0x1c00,0xce));var a69_0x1f61=function(_0x1788e8,_0x259b69){_0x1788e8=_0x1788e8-0x19a;var _0x1c0019=a69_0x1c00[_0x1788e8];return _0x1c0019;};var a69_0x470b58=a69_0x1f61;function options(_0x5114ba){var _0x128ca0=a69_0x1f61;return{'sequelize':_0x5114ba,'tableName':_0x128ca0(0x19b),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x128ca0(0x19a),'collate':'utf8mb4_unicode_ci'};}module[a69_0x470b58(0x19c)]['options']=options; \ No newline at end of file +var a69_0x22cc=['utf8mb4','utf8mb4_unicode_ci','chat_applications','exports'];(function(_0x418bfa,_0x502dc8){var _0x22cc71=function(_0x5aa2c2){while(--_0x5aa2c2){_0x418bfa['push'](_0x418bfa['shift']());}};_0x22cc71(++_0x502dc8);}(a69_0x22cc,0x133));var a69_0x5aa2=function(_0x418bfa,_0x502dc8){_0x418bfa=_0x418bfa-0x82;var _0x22cc71=a69_0x22cc[_0x418bfa];return _0x22cc71;};var a69_0x2e8f2b=a69_0x5aa2;function options(_0x454662){var _0x1fde7f=a69_0x5aa2;return{'sequelize':_0x454662,'tableName':_0x1fde7f(0x85),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x1fde7f(0x83),'collate':_0x1fde7f(0x84)};}module[a69_0x2e8f2b(0x82)]['options']=options; \ No newline at end of file diff --git a/server/api/chatApplication/index.js b/server/api/chatApplication/index.js index 04721e0..610185a 100644 --- a/server/api/chatApplication/index.js +++ b/server/api/chatApplication/index.js @@ -1 +1 @@ -const a70_0x55ce=['update','Router','/:id','./chatApplication.controller','destroy','exports','express','delete','../../components/auth/service','isAuthenticated','put'];(function(_0x3ee263,_0xe35e17){const _0x55ceb0=function(_0x413825){while(--_0x413825){_0x3ee263['push'](_0x3ee263['shift']());}};_0x55ceb0(++_0xe35e17);}(a70_0x55ce,0xcd));const a70_0x4138=function(_0x3ee263,_0xe35e17){_0x3ee263=_0x3ee263-0x15d;let _0x55ceb0=a70_0x55ce[_0x3ee263];return _0x55ceb0;};const a70_0x178c14=a70_0x4138;'use strict';const express=require(a70_0x178c14(0x167)),router=express[a70_0x178c14(0x162)](),auth=require(a70_0x178c14(0x15e)),controller=require(a70_0x178c14(0x164));router['get'](a70_0x178c14(0x163),auth[a70_0x178c14(0x15f)](),controller['show']),router[a70_0x178c14(0x160)](a70_0x178c14(0x163),auth[a70_0x178c14(0x15f)](),controller[a70_0x178c14(0x161)]),router[a70_0x178c14(0x15d)](a70_0x178c14(0x163),auth[a70_0x178c14(0x15f)](),controller[a70_0x178c14(0x165)]),module[a70_0x178c14(0x166)]=router; \ No newline at end of file +const a70_0xb3d2=['isAuthenticated','../../components/auth/service','update','put','destroy','/:id','express','get','Router'];(function(_0x51d3e9,_0x1e0ea0){const _0xb3d23b=function(_0x53a445){while(--_0x53a445){_0x51d3e9['push'](_0x51d3e9['shift']());}};_0xb3d23b(++_0x1e0ea0);}(a70_0xb3d2,0x16f));const a70_0x53a4=function(_0x51d3e9,_0x1e0ea0){_0x51d3e9=_0x51d3e9-0x11f;let _0xb3d23b=a70_0xb3d2[_0x51d3e9];return _0xb3d23b;};const a70_0x22aab3=a70_0x53a4;'use strict';const express=require(a70_0x22aab3(0x127)),router=express[a70_0x22aab3(0x120)](),auth=require(a70_0x22aab3(0x122)),controller=require('./chatApplication.controller');router[a70_0x22aab3(0x11f)](a70_0x22aab3(0x126),auth['isAuthenticated'](),controller['show']),router[a70_0x22aab3(0x124)](a70_0x22aab3(0x126),auth[a70_0x22aab3(0x121)](),controller[a70_0x22aab3(0x123)]),router['delete']('/:id',auth['isAuthenticated'](),controller[a70_0x22aab3(0x125)]),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 d8166ee..3da34fc 100644 --- a/server/api/chatGroup/chatGroup.attributes.js +++ b/server/api/chatGroup/chatGroup.attributes.js @@ -1 +1 @@ -const a71_0x3735=['attributes','BOOLEAN','exports','STRING','sequelize'];(function(_0x3a9ca3,_0x107f1c){const _0x37353b=function(_0x2f5ca4){while(--_0x2f5ca4){_0x3a9ca3['push'](_0x3a9ca3['shift']());}};_0x37353b(++_0x107f1c);}(a71_0x3735,0x13b));const a71_0x2f5c=function(_0x3a9ca3,_0x107f1c){_0x3a9ca3=_0x3a9ca3-0xe6;let _0x37353b=a71_0x3735[_0x3a9ca3];return _0x37353b;};const a71_0xb29e0f=a71_0x2f5c;'use strict';const {DataTypes}=require(a71_0xb29e0f(0xea)),attributes={'name':{'type':DataTypes[a71_0xb29e0f(0xe9)],'allowNull':![]},'description':{'type':DataTypes['STRING']},'write':{'type':DataTypes[a71_0xb29e0f(0xe7)],'defaultValue':!![]}};module[a71_0xb29e0f(0xe8)][a71_0xb29e0f(0xe6)]=attributes; \ No newline at end of file +const a71_0x2d08=['STRING','sequelize','exports'];(function(_0x320e5f,_0x1b3d67){const _0x2d088c=function(_0x1311dc){while(--_0x1311dc){_0x320e5f['push'](_0x320e5f['shift']());}};_0x2d088c(++_0x1b3d67);}(a71_0x2d08,0x133));const a71_0x1311=function(_0x320e5f,_0x1b3d67){_0x320e5f=_0x320e5f-0x1ec;let _0x2d088c=a71_0x2d08[_0x320e5f];return _0x2d088c;};const a71_0x5b253f=a71_0x1311;'use strict';const {DataTypes}=require(a71_0x5b253f(0x1ec)),attributes={'name':{'type':DataTypes[a71_0x5b253f(0x1ee)],'allowNull':![]},'description':{'type':DataTypes[a71_0x5b253f(0x1ee)]},'write':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]}};module[a71_0x5b253f(0x1ed)]['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 d6771ea..264334a 100644 --- a/server/api/chatGroup/chatGroup.controller.js +++ b/server/api/chatGroup/chatGroup.controller.js @@ -1 +1 @@ -const a72_0x59f2=['$gte','key','create','ids','count','getMessages','error','getUnread','api','model','sendStatus','../../components/parsers/qs','../../mysqldb','omit','format','sort','undefined','rawAttributes','length','gte','like','user','end','limit','../../config/logger','send','filter','options','../../rediscache','attributes','params','ChatInternalMessage','include','nolimit','status','describe','sequelize','addMembers','toInteger','body','then','show','register','order','moment','Content-Range','includeAll','map','destroy','fields','intersection','keys','addMessage','where','name','rows','merge','VIRTUAL','pick','offset','findOne','filters','catch','json','User','query','split','getMembers','update','ChatGroup','./chatGroup.socket'];(function(_0x294893,_0x4823b6){const _0x59f26f=function(_0x52c992){while(--_0x52c992){_0x294893['push'](_0x294893['shift']());}};_0x59f26f(++_0x4823b6);}(a72_0x59f2,0x15c));const a72_0x52c9=function(_0x294893,_0x4823b6){_0x294893=_0x294893-0xc5;let _0x59f26f=a72_0x59f2[_0x294893];return _0x59f26f;};const a72_0x2d2fb8=a72_0x52c9;'use strict';const moment=require(a72_0x2d2fb8(0xf8)),_=require('lodash'),{getSocket}=require(a72_0x2d2fb8(0xe8)),qs=require(a72_0x2d2fb8(0xd7)),logger=require(a72_0x2d2fb8(0xe4))(a72_0x2d2fb8(0xd4)),{db}=require(a72_0x2d2fb8(0xd8)),{Op}=require(a72_0x2d2fb8(0xf0)),socket=getSocket();require(a72_0x2d2fb8(0xcb))[a72_0x2d2fb8(0xf6)](socket);function respondWithStatusCode(_0x1cd1aa,_0x4c878f){return _0x4c878f=_0x4c878f||0xcc,function(_0x47312c){const _0x5e2fcc=a72_0x52c9;if(_0x47312c)return _0x1cd1aa[_0x5e2fcc(0xd6)](_0x4c878f);return _0x1cd1aa['status'](_0x4c878f)['end']();};}function respondWithResult(_0x3c3fe5,_0x483014){return _0x483014=_0x483014||0xc8,function(_0x99386b){const _0x335965=a72_0x52c9;if(_0x99386b)return _0x3c3fe5['status'](_0x483014)[_0x335965(0x10b)](_0x99386b);};}function respondWithFilteredResult(_0xac4be0,_0x29a9c7){return function(_0x1a4810){const _0x106961=a72_0x52c9;if(_0x1a4810){const _0x40f285=_0x1a4810['count'],_0x54332a=_0x29a9c7[_0x106961(0x107)];let _0x165a97=_0x29a9c7[_0x106961(0x107)]+_0x29a9c7[_0x106961(0xe3)],_0x1d1e23;return _0x165a97>=_0x40f285?(_0x165a97=_0x40f285,_0x1d1e23=0xc8):_0x1d1e23=0xce,_0xac4be0[_0x106961(0xee)](_0x1d1e23),_0xac4be0['set'](_0x106961(0xf9),_0x54332a+'-'+_0x165a97+'/'+_0x40f285)['json'](_0x1a4810);}return null;};}function saveUpdates(_0x44b7f7){return function(_0x38a9e8){const _0x3666ce=a72_0x52c9;if(_0x38a9e8)return _0x38a9e8['update'](_0x44b7f7)[_0x3666ce(0xf4)](function(_0x598769){return _0x598769;});return null;};}function removeEntity(_0x1b46e9){return function(_0xd0e688){const _0x4a0641=a72_0x52c9;if(_0xd0e688)return _0xd0e688[_0x4a0641(0xfc)]()[_0x4a0641(0xf4)](function(){const _0x4949c2=_0x4a0641;_0x1b46e9[_0x4949c2(0xee)](0xcc)[_0x4949c2(0xe2)]();});};}function handleEntityNotFound(_0x185fab){return function(_0x14a5c6){const _0x16fc9c=a72_0x52c9;return!_0x14a5c6&&_0x185fab[_0x16fc9c(0xd6)](0x194),_0x14a5c6;};}function handleError(_0x2eeef6,_0x3ff701){return _0x3ff701=_0x3ff701||0x1f4,function(_0x15e71a){const _0x2783d6=a72_0x52c9;logger[_0x2783d6(0xd2)](_0x15e71a['stack']),_0x15e71a[_0x2783d6(0x102)]&&delete _0x15e71a['name'],_0x2eeef6['status'](_0x3ff701)[_0x2783d6(0xe5)](_0x15e71a);};}exports['index']=function(_0x20332f,_0x330d8f){const _0x188c1f=a72_0x2d2fb8;let _0x55e81e={};const _0x270150={},_0x83fa07={'count':0x0,'rows':[]},_0x10d92e=_[_0x188c1f(0xfb)](db[_0x188c1f(0xca)][_0x188c1f(0xdd)],function(_0x1f0f45){const _0x17f4fc=_0x188c1f;return{'name':_0x1f0f45['fieldName'],'type':_0x1f0f45['type'][_0x17f4fc(0xcd)]};});_0x270150[_0x188c1f(0xd5)]=_['map'](_0x10d92e,_0x188c1f(0x102)),_0x270150[_0x188c1f(0xc6)]=_[_0x188c1f(0xff)](_0x20332f[_0x188c1f(0xc6)]),_0x270150[_0x188c1f(0x109)]=_[_0x188c1f(0xfe)](_0x270150[_0x188c1f(0xd5)],_0x270150[_0x188c1f(0xc6)]),_0x55e81e[_0x188c1f(0xe9)]=_[_0x188c1f(0xfe)](_0x270150['model'],qs['fields'](_0x20332f[_0x188c1f(0xc6)]['fields'])),_0x55e81e[_0x188c1f(0xe9)]=_0x55e81e[_0x188c1f(0xe9)][_0x188c1f(0xde)]?_0x55e81e[_0x188c1f(0xe9)]:_0x270150[_0x188c1f(0xd5)];typeof _0x20332f[_0x188c1f(0xc6)]['nolimit']==='undefined'&&(_0x55e81e[_0x188c1f(0xe3)]=qs[_0x188c1f(0xe3)](_0x20332f[_0x188c1f(0xc6)][_0x188c1f(0xe3)]),_0x55e81e[_0x188c1f(0x107)]=qs[_0x188c1f(0x107)](_0x20332f['query'][_0x188c1f(0x107)]));_0x55e81e['order']=qs[_0x188c1f(0xdb)](_0x20332f[_0x188c1f(0xc6)][_0x188c1f(0xdb)]),_0x55e81e[_0x188c1f(0x101)]=qs[_0x188c1f(0x109)](_[_0x188c1f(0x106)](_0x20332f[_0x188c1f(0xc6)],_0x270150[_0x188c1f(0x109)]),_0x10d92e);_0x20332f[_0x188c1f(0xc6)][_0x188c1f(0xe6)]&&(_0x55e81e[_0x188c1f(0x101)]=_[_0x188c1f(0x104)](_0x55e81e[_0x188c1f(0x101)],{[Op['or']]:_[_0x188c1f(0xfb)](_0x10d92e,function(_0x5890a5){const _0x4ed29a=_0x188c1f;if(_0x5890a5['type']!==_0x4ed29a(0x105)){const _0x2fa6ab={};return _0x2fa6ab[_0x5890a5[_0x4ed29a(0x102)]]={[Op['like']]:'%'+_0x20332f[_0x4ed29a(0xc6)][_0x4ed29a(0xe6)]+'%'},_0x2fa6ab;}})}));_0x55e81e=_['merge']({},_0x55e81e,_0x20332f[_0x188c1f(0xe7)]);const _0x5a61c0={'where':_0x55e81e[_0x188c1f(0x101)]};return db[_0x188c1f(0xca)][_0x188c1f(0xd0)](_0x5a61c0)[_0x188c1f(0xf4)](function(_0x5e0b7f){const _0x26f84d=_0x188c1f;return _0x83fa07[_0x26f84d(0xd0)]=_0x5e0b7f,_0x20332f[_0x26f84d(0xc6)][_0x26f84d(0xfa)]&&(_0x55e81e['include']=[{'all':!![]}]),db[_0x26f84d(0xca)]['findAll'](_0x55e81e);})[_0x188c1f(0xf4)](function(_0x4a53a9){const _0x1b3ded=_0x188c1f;return _0x83fa07[_0x1b3ded(0x103)]=_0x4a53a9,_0x83fa07;})[_0x188c1f(0xf4)](respondWithFilteredResult(_0x330d8f,_0x55e81e))[_0x188c1f(0x10a)](handleError(_0x330d8f,null));},exports[a72_0x2d2fb8(0xf5)]=function(_0x3a39a5,_0x30483e){const _0x56e1b2=a72_0x2d2fb8;let _0x3cdf1b={'raw':!![],'where':{'id':_0x3a39a5['params']['id']}};const _0x3df4ad={};return _0x3df4ad[_0x56e1b2(0xd5)]=_[_0x56e1b2(0xff)](db['ChatGroup'][_0x56e1b2(0xdd)]),_0x3df4ad[_0x56e1b2(0xc6)]=_[_0x56e1b2(0xff)](_0x3a39a5[_0x56e1b2(0xc6)]),_0x3df4ad[_0x56e1b2(0x109)]=_[_0x56e1b2(0xfe)](_0x3df4ad['model'],_0x3df4ad['query']),_0x3cdf1b[_0x56e1b2(0xe9)]=_[_0x56e1b2(0xfe)](_0x3df4ad[_0x56e1b2(0xd5)],qs[_0x56e1b2(0xfd)](_0x3a39a5[_0x56e1b2(0xc6)][_0x56e1b2(0xfd)])),_0x3cdf1b['attributes']=_0x3cdf1b['attributes'][_0x56e1b2(0xde)]?_0x3cdf1b[_0x56e1b2(0xe9)]:_0x3df4ad['model'],_0x3a39a5[_0x56e1b2(0xc6)][_0x56e1b2(0xfa)]&&(_0x3cdf1b[_0x56e1b2(0xec)]=[{'all':!![]}]),_0x3cdf1b=_[_0x56e1b2(0x104)]({},_0x3cdf1b,_0x3a39a5[_0x56e1b2(0xe7)]),db[_0x56e1b2(0xca)][_0x56e1b2(0x108)](_0x3cdf1b)[_0x56e1b2(0xf4)](handleEntityNotFound(_0x30483e,null))[_0x56e1b2(0xf4)](respondWithResult(_0x30483e,null))[_0x56e1b2(0x10a)](handleError(_0x30483e,null));},exports['create']=function(_0x3ae9ea,_0x31cd63){const _0xe30b78=a72_0x2d2fb8;return db[_0xe30b78(0xca)][_0xe30b78(0xce)](_0x3ae9ea[_0xe30b78(0xf3)],{})[_0xe30b78(0xf4)](respondWithResult(_0x31cd63,0xc9))[_0xe30b78(0x10a)](handleError(_0x31cd63,null));},exports[a72_0x2d2fb8(0xc9)]=function(_0x53cd0d,_0x57034e){const _0xa9fefc=a72_0x2d2fb8;return _0x53cd0d[_0xa9fefc(0xf3)]['id']&&delete _0x53cd0d['body']['id'],db[_0xa9fefc(0xca)][_0xa9fefc(0x108)]({'where':{'id':_0x53cd0d['params']['id']}})['then'](handleEntityNotFound(_0x57034e,null))[_0xa9fefc(0xf4)](saveUpdates(_0x53cd0d['body'],null))[_0xa9fefc(0xf4)](respondWithResult(_0x57034e,null))[_0xa9fefc(0x10a)](handleError(_0x57034e,null));},exports[a72_0x2d2fb8(0xfc)]=function(_0x3f23b1,_0x5885d4){const _0x5cafa0=a72_0x2d2fb8;return db[_0x5cafa0(0xca)]['findOne']({'where':{'id':_0x3f23b1[_0x5cafa0(0xea)]['id']}})[_0x5cafa0(0xf4)](handleEntityNotFound(_0x5885d4,null))[_0x5cafa0(0xf4)](removeEntity(_0x5885d4,null))[_0x5cafa0(0x10a)](handleError(_0x5885d4,null));},exports[a72_0x2d2fb8(0xef)]=function(_0x159e77,_0x24add7){const _0x329edc=a72_0x2d2fb8;return db[_0x329edc(0xca)]['describe']()[_0x329edc(0xf4)](respondWithResult(_0x24add7,null))[_0x329edc(0x10a)](handleError(_0x24add7,null));},exports[a72_0x2d2fb8(0xd3)]=function(_0x25bfd2,_0x16313e){const _0x1e0d1b=a72_0x2d2fb8;return db['ChatInternalMessage'][_0x1e0d1b(0xd0)]({'where':{'ChatGroupId':_0x25bfd2[_0x1e0d1b(0xea)]['id'],'ToId':_0x25bfd2[_0x1e0d1b(0xe1)]['id'],'read':![]}})[_0x1e0d1b(0xf4)](function(_0x32656d){const _0x595e1d=_0x1e0d1b;return{'id':_[_0x595e1d(0xf2)](_0x25bfd2['params']['id']),'count':_0x32656d};})['then'](respondWithResult(_0x16313e,null))[_0x1e0d1b(0x10a)](handleError(_0x16313e,null));},exports[a72_0x2d2fb8(0xf1)]=function(_0x14cac3,_0x3c74b3){const _0x2b6ad7=a72_0x2d2fb8;return db[_0x2b6ad7(0xca)][_0x2b6ad7(0x108)]({'where':{'id':_0x14cac3[_0x2b6ad7(0xea)]['id']}})[_0x2b6ad7(0xf4)](function(_0x1efefd){const _0x446072=_0x2b6ad7;if(_0x1efefd)return _0x1efefd['addMembers'](_0x14cac3[_0x446072(0xf3)][_0x446072(0xcf)],{'through':_[_0x446072(0xd9)](_0x14cac3[_0x446072(0xf3)],[_0x446072(0xcf),'id'])});})['then'](respondWithResult(_0x3c74b3,null))[_0x2b6ad7(0x10a)](handleError(_0x3c74b3,null));},exports[a72_0x2d2fb8(0xc8)]=function(_0x2f880e,_0x279d4b){const _0x4dd46a=a72_0x2d2fb8;let _0x25cf14={};const _0x40d604={};let _0x11ccf4,_0x246eba;return db['ChatGroup']['findOne']({'where':{'id':_0x2f880e[_0x4dd46a(0xea)]['id']}})['then'](handleEntityNotFound(_0x279d4b,null))[_0x4dd46a(0xf4)](function(_0x404532){const _0x16d997=_0x4dd46a;if(_0x404532)return _0x11ccf4=_0x404532,_0x40d604[_0x16d997(0xd5)]=_[_0x16d997(0xff)](db[_0x16d997(0xc5)][_0x16d997(0xdd)]),_0x40d604[_0x16d997(0xc6)]=_[_0x16d997(0xff)](_0x2f880e[_0x16d997(0xc6)]),_0x40d604['filters']=_[_0x16d997(0xfe)](_0x40d604['model'],_0x40d604['query']),_0x25cf14['attributes']=_[_0x16d997(0xfe)](_0x40d604[_0x16d997(0xd5)],qs[_0x16d997(0xfd)](_0x2f880e[_0x16d997(0xc6)]['fields'])),_0x25cf14[_0x16d997(0xe9)]=_0x25cf14['attributes'][_0x16d997(0xde)]?_0x25cf14[_0x16d997(0xe9)]:_0x40d604[_0x16d997(0xd5)],_0x25cf14[_0x16d997(0xf7)]=qs[_0x16d997(0xdb)](_0x2f880e['query'][_0x16d997(0xdb)]),_0x25cf14['where']=qs['filters'](_[_0x16d997(0x106)](_0x2f880e[_0x16d997(0xc6)],_0x40d604['filters'])),_0x2f880e[_0x16d997(0xc6)]['filter']&&(_0x25cf14[_0x16d997(0x101)]=_[_0x16d997(0x104)](_0x25cf14[_0x16d997(0x101)],{[Op['or']]:_[_0x16d997(0xfb)](_0x25cf14[_0x16d997(0xe9)],function(_0x19730d){const _0x28d07a=_0x16d997,_0x40c858={};return _0x40c858[_0x19730d]={[Op[_0x28d07a(0xe0)]]:'%'+_0x2f880e['query'][_0x28d07a(0xe6)]+'%'},_0x40c858;})})),_0x25cf14=_[_0x16d997(0x104)]({},_0x25cf14,_0x2f880e[_0x16d997(0xe7)]),_0x11ccf4[_0x16d997(0xc8)](_0x25cf14);})[_0x4dd46a(0xf4)](function(_0x4af3d9){const _0x4dabfc=_0x4dd46a;if(_0x4af3d9)return _0x246eba=_0x4af3d9['length'],typeof _0x2f880e[_0x4dabfc(0xc6)][_0x4dabfc(0xed)]===_0x4dabfc(0xdc)&&(_0x25cf14['limit']=qs[_0x4dabfc(0xe3)](_0x2f880e['query']['limit']),_0x25cf14[_0x4dabfc(0x107)]=qs[_0x4dabfc(0x107)](_0x2f880e[_0x4dabfc(0xc6)][_0x4dabfc(0x107)])),_0x11ccf4[_0x4dabfc(0xc8)](_0x25cf14);})[_0x4dd46a(0xf4)](function(_0x32ba0f){if(_0x32ba0f)return _0x32ba0f?{'count':_0x246eba,'rows':_0x32ba0f}:null;})[_0x4dd46a(0xf4)](respondWithResult(_0x279d4b,null))[_0x4dd46a(0x10a)](handleError(_0x279d4b,null));},exports['removeMembers']=function(_0x241dd3,_0x2c8829){const _0x4c8c1f=a72_0x2d2fb8;return db['ChatGroup'][_0x4c8c1f(0x108)]({'where':{'id':_0x241dd3[_0x4c8c1f(0xea)]['id']}})[_0x4c8c1f(0xf4)](handleEntityNotFound(_0x2c8829,null))[_0x4c8c1f(0xf4)](function(_0x56a5b3){const _0x3e740a=_0x4c8c1f;if(_0x56a5b3)return _0x56a5b3['removeMembers'](_0x241dd3[_0x3e740a(0xc6)][_0x3e740a(0xcf)]);})['then'](respondWithStatusCode(_0x2c8829,null))[_0x4c8c1f(0x10a)](handleError(_0x2c8829,null));},exports[a72_0x2d2fb8(0x100)]=function(_0x4eedda,_0x3abc1f){const _0x15767e=a72_0x2d2fb8;return _0x4eedda[_0x15767e(0xf3)]['id']&&delete _0x4eedda[_0x15767e(0xf3)]['id'],db['ChatGroup'][_0x15767e(0x108)]({'where':{'id':_0x4eedda[_0x15767e(0xea)]['id']}})[_0x15767e(0xf4)](handleEntityNotFound(_0x3abc1f,null))[_0x15767e(0xf4)](function(_0x279470){const _0x29b1c4=_0x15767e;if(_0x279470)return _0x4eedda[_0x29b1c4(0xf3)]['ChatGroupId']=_0x279470['id'],db[_0x29b1c4(0xeb)][_0x29b1c4(0xce)](_0x4eedda['body']);})[_0x15767e(0xf4)](respondWithResult(_0x3abc1f,null))[_0x15767e(0x10a)](handleError(_0x3abc1f,null));},exports['getMessages']=function(_0x316cc0,_0x41f374){const _0x29f9b8=a72_0x2d2fb8;let _0x143bac={};const _0x3f659b={};let _0x5406b9,_0x46360c;return db[_0x29f9b8(0xca)]['findOne']({'where':{'id':_0x316cc0['params']['id']}})['then'](handleEntityNotFound(_0x41f374,null))[_0x29f9b8(0xf4)](function(_0x49bfd5){const _0x49e32e=_0x29f9b8;if(_0x49bfd5){_0x5406b9=_0x49bfd5,_0x3f659b[_0x49e32e(0xd5)]=_['keys'](db[_0x49e32e(0xeb)][_0x49e32e(0xdd)]),_0x3f659b[_0x49e32e(0xc6)]=_[_0x49e32e(0xff)](_0x316cc0[_0x49e32e(0xc6)]),_0x3f659b[_0x49e32e(0x109)]=_['intersection'](_0x3f659b[_0x49e32e(0xd5)],_0x3f659b[_0x49e32e(0xc6)]),_0x143bac['attributes']=_['intersection'](_0x3f659b[_0x49e32e(0xd5)],qs[_0x49e32e(0xfd)](_0x316cc0[_0x49e32e(0xc6)][_0x49e32e(0xfd)])),_0x143bac[_0x49e32e(0xe9)]=_0x143bac[_0x49e32e(0xe9)]['length']?_0x143bac['attributes']:_0x3f659b['model'],_0x143bac[_0x49e32e(0xf7)]=qs[_0x49e32e(0xdb)](_0x316cc0[_0x49e32e(0xc6)]['sort']),_0x143bac[_0x49e32e(0x101)]=qs[_0x49e32e(0x109)](_[_0x49e32e(0x106)](_0x316cc0[_0x49e32e(0xc6)],_0x3f659b[_0x49e32e(0x109)]));_0x316cc0['query'][_0x49e32e(0xe6)]&&(_0x143bac[_0x49e32e(0x101)]=_[_0x49e32e(0x104)](_0x143bac[_0x49e32e(0x101)],{[Op['or']]:_['map'](_0x143bac[_0x49e32e(0xe9)],function(_0x573a0a){const _0x1d6ccd=_0x49e32e,_0x46fced={};return _0x46fced[_0x573a0a]={[Op['like']]:'%'+_0x316cc0[_0x1d6ccd(0xc6)][_0x1d6ccd(0xe6)]+'%'},_0x46fced;})}));if(_0x316cc0[_0x49e32e(0xc6)]['$gte']){const _0x55ea6d=_0x316cc0[_0x49e32e(0xc6)][_0x49e32e(0xcc)][_0x49e32e(0xc7)](','),_0x208939={};_0x208939[_0x55ea6d[0x0]]={[Op[_0x49e32e(0xdf)]]:moment(_0x55ea6d[0x1])[_0x49e32e(0xda)]('YYYY-MM-DD\x20HH:mm:ss')},_0x143bac[_0x49e32e(0x101)]=_[_0x49e32e(0x104)](_0x143bac[_0x49e32e(0x101)],_0x208939);}return _0x143bac=_[_0x49e32e(0x104)]({},_0x143bac,_0x316cc0[_0x49e32e(0xe7)]),_0x5406b9['getMessages'](_0x143bac);}})[_0x29f9b8(0xf4)](function(_0x582592){const _0x49bc60=_0x29f9b8;if(_0x582592)return _0x46360c=_0x582592[_0x49bc60(0xde)],typeof _0x316cc0[_0x49bc60(0xc6)]['nolimit']==='undefined'&&(_0x143bac[_0x49bc60(0xe3)]=qs[_0x49bc60(0xe3)](_0x316cc0['query'][_0x49bc60(0xe3)]),_0x143bac[_0x49bc60(0x107)]=qs[_0x49bc60(0x107)](_0x316cc0[_0x49bc60(0xc6)][_0x49bc60(0x107)])),_0x5406b9[_0x49bc60(0xd1)](_0x143bac);})[_0x29f9b8(0xf4)](function(_0x24adc9){if(_0x24adc9)return _0x24adc9?{'count':_0x46360c,'rows':_0x24adc9}:null;})[_0x29f9b8(0xf4)](respondWithResult(_0x41f374,null))[_0x29f9b8(0x10a)](handleError(_0x41f374,null));}; \ No newline at end of file +const a72_0x23fd=['offset','update','ChatGroupId','./chatGroup.socket','attributes','merge','Content-Range','fields','../../mysqldb','lodash','where','include','$gte','type','stack','order','undefined','index','filter','status','addMessage','end','params','intersection','catch','ChatGroup','rows','filters','pick','api','rawAttributes','User','sequelize','YYYY-MM-DD\x20HH:mm:ss','includeAll','keys','json','limit','toInteger','error','sort','nolimit','getMessages','sendStatus','../../config/logger','destroy','gte','create','ChatInternalMessage','key','getMembers','count','removeMembers','moment','findOne','show','then','ids','length','like','../../components/parsers/qs','query','addMembers','../../rediscache','name','options','send','model','set','user','map','body'];(function(_0x3dba72,_0x476514){const _0x23fd27=function(_0x1e4030){while(--_0x1e4030){_0x3dba72['push'](_0x3dba72['shift']());}};_0x23fd27(++_0x476514);}(a72_0x23fd,0x16f));const a72_0x1e40=function(_0x3dba72,_0x476514){_0x3dba72=_0x3dba72-0x136;let _0x23fd27=a72_0x23fd[_0x3dba72];return _0x23fd27;};const a72_0x3ed3bf=a72_0x1e40;'use strict';const moment=require(a72_0x3ed3bf(0x164)),_=require(a72_0x3ed3bf(0x138)),{getSocket}=require(a72_0x3ed3bf(0x16e)),qs=require(a72_0x3ed3bf(0x16b)),logger=require(a72_0x3ed3bf(0x15b))(a72_0x3ed3bf(0x14c)),{db}=require(a72_0x3ed3bf(0x137)),{Op}=require(a72_0x3ed3bf(0x14f)),socket=getSocket();require(a72_0x3ed3bf(0x17a))['register'](socket);function respondWithStatusCode(_0x5fe5a6,_0xad7b22){return _0xad7b22=_0xad7b22||0xcc,function(_0x3e3040){const _0x16138a=a72_0x1e40;if(_0x3e3040)return _0x5fe5a6['sendStatus'](_0xad7b22);return _0x5fe5a6[_0x16138a(0x142)](_0xad7b22)[_0x16138a(0x144)]();};}function respondWithResult(_0x55ff94,_0x30b793){return _0x30b793=_0x30b793||0xc8,function(_0x544aaf){const _0x7a8818=a72_0x1e40;if(_0x544aaf)return _0x55ff94[_0x7a8818(0x142)](_0x30b793)['json'](_0x544aaf);};}function respondWithFilteredResult(_0x1bba7d,_0x4edebc){return function(_0x46cd46){const _0xa39b0e=a72_0x1e40;if(_0x46cd46){const _0x162b25=_0x46cd46['count'],_0x53fef9=_0x4edebc['offset'];let _0x125d94=_0x4edebc['offset']+_0x4edebc[_0xa39b0e(0x154)],_0x34d587;return _0x125d94>=_0x162b25?(_0x125d94=_0x162b25,_0x34d587=0xc8):_0x34d587=0xce,_0x1bba7d['status'](_0x34d587),_0x1bba7d[_0xa39b0e(0x173)](_0xa39b0e(0x17d),_0x53fef9+'-'+_0x125d94+'/'+_0x162b25)[_0xa39b0e(0x153)](_0x46cd46);}return null;};}function saveUpdates(_0x185af3){return function(_0x5637ec){const _0x4b3d22=a72_0x1e40;if(_0x5637ec)return _0x5637ec[_0x4b3d22(0x178)](_0x185af3)[_0x4b3d22(0x167)](function(_0x5457ad){return _0x5457ad;});return null;};}function removeEntity(_0x1c63ba){return function(_0x1cc70c){const _0x45d672=a72_0x1e40;if(_0x1cc70c)return _0x1cc70c[_0x45d672(0x15c)]()[_0x45d672(0x167)](function(){const _0x572570=_0x45d672;_0x1c63ba[_0x572570(0x142)](0xcc)[_0x572570(0x144)]();});};}function handleEntityNotFound(_0x152179){return function(_0x5b2329){const _0x32802a=a72_0x1e40;return!_0x5b2329&&_0x152179[_0x32802a(0x15a)](0x194),_0x5b2329;};}function handleError(_0x580f62,_0x351b4c){return _0x351b4c=_0x351b4c||0x1f4,function(_0x1ac3fa){const _0x5016b0=a72_0x1e40;logger[_0x5016b0(0x156)](_0x1ac3fa[_0x5016b0(0x13d)]),_0x1ac3fa[_0x5016b0(0x16f)]&&delete _0x1ac3fa[_0x5016b0(0x16f)],_0x580f62['status'](_0x351b4c)[_0x5016b0(0x171)](_0x1ac3fa);};}exports[a72_0x3ed3bf(0x140)]=function(_0x50b276,_0x346f21){const _0x456e01=a72_0x3ed3bf;let _0x3c3768={};const _0x13d4b8={},_0x3f7b26={'count':0x0,'rows':[]},_0x3d7ae7=_[_0x456e01(0x175)](db[_0x456e01(0x148)][_0x456e01(0x14d)],function(_0x1a6797){const _0x516731=_0x456e01;return{'name':_0x1a6797['fieldName'],'type':_0x1a6797[_0x516731(0x13c)][_0x516731(0x160)]};});_0x13d4b8[_0x456e01(0x172)]=_[_0x456e01(0x175)](_0x3d7ae7,_0x456e01(0x16f)),_0x13d4b8['query']=_[_0x456e01(0x152)](_0x50b276[_0x456e01(0x16c)]),_0x13d4b8[_0x456e01(0x14a)]=_[_0x456e01(0x146)](_0x13d4b8[_0x456e01(0x172)],_0x13d4b8[_0x456e01(0x16c)]),_0x3c3768[_0x456e01(0x17b)]=_[_0x456e01(0x146)](_0x13d4b8[_0x456e01(0x172)],qs['fields'](_0x50b276[_0x456e01(0x16c)]['fields'])),_0x3c3768[_0x456e01(0x17b)]=_0x3c3768[_0x456e01(0x17b)][_0x456e01(0x169)]?_0x3c3768[_0x456e01(0x17b)]:_0x13d4b8[_0x456e01(0x172)];typeof _0x50b276[_0x456e01(0x16c)]['nolimit']===_0x456e01(0x13f)&&(_0x3c3768['limit']=qs[_0x456e01(0x154)](_0x50b276[_0x456e01(0x16c)][_0x456e01(0x154)]),_0x3c3768[_0x456e01(0x177)]=qs['offset'](_0x50b276[_0x456e01(0x16c)][_0x456e01(0x177)]));_0x3c3768[_0x456e01(0x13e)]=qs[_0x456e01(0x157)](_0x50b276[_0x456e01(0x16c)][_0x456e01(0x157)]),_0x3c3768['where']=qs['filters'](_[_0x456e01(0x14b)](_0x50b276[_0x456e01(0x16c)],_0x13d4b8[_0x456e01(0x14a)]),_0x3d7ae7);_0x50b276[_0x456e01(0x16c)][_0x456e01(0x141)]&&(_0x3c3768[_0x456e01(0x139)]=_['merge'](_0x3c3768[_0x456e01(0x139)],{[Op['or']]:_['map'](_0x3d7ae7,function(_0x35f628){const _0x4206c5=_0x456e01;if(_0x35f628[_0x4206c5(0x13c)]!=='VIRTUAL'){const _0x1e9b4c={};return _0x1e9b4c[_0x35f628[_0x4206c5(0x16f)]]={[Op[_0x4206c5(0x16a)]]:'%'+_0x50b276[_0x4206c5(0x16c)][_0x4206c5(0x141)]+'%'},_0x1e9b4c;}})}));_0x3c3768=_['merge']({},_0x3c3768,_0x50b276['options']);const _0x20e53f={'where':_0x3c3768['where']};return db['ChatGroup'][_0x456e01(0x162)](_0x20e53f)['then'](function(_0x1eacb1){const _0x2a9cc5=_0x456e01;return _0x3f7b26['count']=_0x1eacb1,_0x50b276[_0x2a9cc5(0x16c)]['includeAll']&&(_0x3c3768[_0x2a9cc5(0x13a)]=[{'all':!![]}]),db[_0x2a9cc5(0x148)]['findAll'](_0x3c3768);})['then'](function(_0x1dc505){const _0x549f36=_0x456e01;return _0x3f7b26[_0x549f36(0x149)]=_0x1dc505,_0x3f7b26;})[_0x456e01(0x167)](respondWithFilteredResult(_0x346f21,_0x3c3768))[_0x456e01(0x147)](handleError(_0x346f21,null));},exports[a72_0x3ed3bf(0x166)]=function(_0x304461,_0x4e748c){const _0x32d57a=a72_0x3ed3bf;let _0x55f54e={'raw':!![],'where':{'id':_0x304461['params']['id']}};const _0xe25108={};return _0xe25108[_0x32d57a(0x172)]=_[_0x32d57a(0x152)](db[_0x32d57a(0x148)]['rawAttributes']),_0xe25108['query']=_['keys'](_0x304461[_0x32d57a(0x16c)]),_0xe25108[_0x32d57a(0x14a)]=_[_0x32d57a(0x146)](_0xe25108[_0x32d57a(0x172)],_0xe25108['query']),_0x55f54e[_0x32d57a(0x17b)]=_['intersection'](_0xe25108['model'],qs[_0x32d57a(0x136)](_0x304461[_0x32d57a(0x16c)][_0x32d57a(0x136)])),_0x55f54e[_0x32d57a(0x17b)]=_0x55f54e[_0x32d57a(0x17b)][_0x32d57a(0x169)]?_0x55f54e[_0x32d57a(0x17b)]:_0xe25108['model'],_0x304461['query'][_0x32d57a(0x151)]&&(_0x55f54e['include']=[{'all':!![]}]),_0x55f54e=_['merge']({},_0x55f54e,_0x304461[_0x32d57a(0x170)]),db[_0x32d57a(0x148)][_0x32d57a(0x165)](_0x55f54e)[_0x32d57a(0x167)](handleEntityNotFound(_0x4e748c,null))[_0x32d57a(0x167)](respondWithResult(_0x4e748c,null))[_0x32d57a(0x147)](handleError(_0x4e748c,null));},exports['create']=function(_0x12879b,_0x2da2a5){const _0x17020f=a72_0x3ed3bf;return db[_0x17020f(0x148)][_0x17020f(0x15e)](_0x12879b[_0x17020f(0x176)],{})[_0x17020f(0x167)](respondWithResult(_0x2da2a5,0xc9))[_0x17020f(0x147)](handleError(_0x2da2a5,null));},exports[a72_0x3ed3bf(0x178)]=function(_0x538fea,_0x163b53){const _0x5725e3=a72_0x3ed3bf;return _0x538fea[_0x5725e3(0x176)]['id']&&delete _0x538fea[_0x5725e3(0x176)]['id'],db[_0x5725e3(0x148)]['findOne']({'where':{'id':_0x538fea[_0x5725e3(0x145)]['id']}})['then'](handleEntityNotFound(_0x163b53,null))[_0x5725e3(0x167)](saveUpdates(_0x538fea[_0x5725e3(0x176)],null))['then'](respondWithResult(_0x163b53,null))[_0x5725e3(0x147)](handleError(_0x163b53,null));},exports[a72_0x3ed3bf(0x15c)]=function(_0x25aef1,_0x44f1ed){const _0x431188=a72_0x3ed3bf;return db[_0x431188(0x148)][_0x431188(0x165)]({'where':{'id':_0x25aef1['params']['id']}})[_0x431188(0x167)](handleEntityNotFound(_0x44f1ed,null))['then'](removeEntity(_0x44f1ed,null))[_0x431188(0x147)](handleError(_0x44f1ed,null));},exports['describe']=function(_0x2057af,_0x5ef3b9){const _0x3f1289=a72_0x3ed3bf;return db[_0x3f1289(0x148)]['describe']()[_0x3f1289(0x167)](respondWithResult(_0x5ef3b9,null))['catch'](handleError(_0x5ef3b9,null));},exports['getUnread']=function(_0x34ed4a,_0x13b160){const _0x55e606=a72_0x3ed3bf;return db[_0x55e606(0x15f)][_0x55e606(0x162)]({'where':{'ChatGroupId':_0x34ed4a[_0x55e606(0x145)]['id'],'ToId':_0x34ed4a[_0x55e606(0x174)]['id'],'read':![]}})[_0x55e606(0x167)](function(_0x1d855a){const _0x486a38=_0x55e606;return{'id':_[_0x486a38(0x155)](_0x34ed4a['params']['id']),'count':_0x1d855a};})[_0x55e606(0x167)](respondWithResult(_0x13b160,null))[_0x55e606(0x147)](handleError(_0x13b160,null));},exports[a72_0x3ed3bf(0x16d)]=function(_0xe0aba7,_0x10119f){const _0x1a2658=a72_0x3ed3bf;return db['ChatGroup']['findOne']({'where':{'id':_0xe0aba7[_0x1a2658(0x145)]['id']}})['then'](function(_0x3d0da9){const _0x1b46f9=_0x1a2658;if(_0x3d0da9)return _0x3d0da9['addMembers'](_0xe0aba7[_0x1b46f9(0x176)][_0x1b46f9(0x168)],{'through':_['omit'](_0xe0aba7['body'],['ids','id'])});})['then'](respondWithResult(_0x10119f,null))['catch'](handleError(_0x10119f,null));},exports[a72_0x3ed3bf(0x161)]=function(_0x5f0646,_0x4fc2fb){const _0x56cba4=a72_0x3ed3bf;let _0x47b26d={};const _0x5105d7={};let _0xf0100,_0x24e326;return db[_0x56cba4(0x148)][_0x56cba4(0x165)]({'where':{'id':_0x5f0646[_0x56cba4(0x145)]['id']}})[_0x56cba4(0x167)](handleEntityNotFound(_0x4fc2fb,null))['then'](function(_0x2e5b7a){const _0xf5d3b5=_0x56cba4;if(_0x2e5b7a)return _0xf0100=_0x2e5b7a,_0x5105d7[_0xf5d3b5(0x172)]=_['keys'](db[_0xf5d3b5(0x14e)][_0xf5d3b5(0x14d)]),_0x5105d7['query']=_['keys'](_0x5f0646[_0xf5d3b5(0x16c)]),_0x5105d7[_0xf5d3b5(0x14a)]=_[_0xf5d3b5(0x146)](_0x5105d7[_0xf5d3b5(0x172)],_0x5105d7['query']),_0x47b26d[_0xf5d3b5(0x17b)]=_[_0xf5d3b5(0x146)](_0x5105d7[_0xf5d3b5(0x172)],qs['fields'](_0x5f0646['query'][_0xf5d3b5(0x136)])),_0x47b26d[_0xf5d3b5(0x17b)]=_0x47b26d[_0xf5d3b5(0x17b)]['length']?_0x47b26d['attributes']:_0x5105d7[_0xf5d3b5(0x172)],_0x47b26d[_0xf5d3b5(0x13e)]=qs['sort'](_0x5f0646[_0xf5d3b5(0x16c)][_0xf5d3b5(0x157)]),_0x47b26d[_0xf5d3b5(0x139)]=qs[_0xf5d3b5(0x14a)](_['pick'](_0x5f0646[_0xf5d3b5(0x16c)],_0x5105d7[_0xf5d3b5(0x14a)])),_0x5f0646[_0xf5d3b5(0x16c)][_0xf5d3b5(0x141)]&&(_0x47b26d[_0xf5d3b5(0x139)]=_[_0xf5d3b5(0x17c)](_0x47b26d[_0xf5d3b5(0x139)],{[Op['or']]:_[_0xf5d3b5(0x175)](_0x47b26d['attributes'],function(_0x505f7d){const _0x5845c3=_0xf5d3b5,_0x171b8f={};return _0x171b8f[_0x505f7d]={[Op[_0x5845c3(0x16a)]]:'%'+_0x5f0646['query'][_0x5845c3(0x141)]+'%'},_0x171b8f;})})),_0x47b26d=_['merge']({},_0x47b26d,_0x5f0646[_0xf5d3b5(0x170)]),_0xf0100[_0xf5d3b5(0x161)](_0x47b26d);})[_0x56cba4(0x167)](function(_0x36a8cd){const _0x16522e=_0x56cba4;if(_0x36a8cd)return _0x24e326=_0x36a8cd['length'],typeof _0x5f0646['query'][_0x16522e(0x158)]===_0x16522e(0x13f)&&(_0x47b26d['limit']=qs[_0x16522e(0x154)](_0x5f0646[_0x16522e(0x16c)]['limit']),_0x47b26d[_0x16522e(0x177)]=qs[_0x16522e(0x177)](_0x5f0646[_0x16522e(0x16c)][_0x16522e(0x177)])),_0xf0100[_0x16522e(0x161)](_0x47b26d);})[_0x56cba4(0x167)](function(_0x536f1b){if(_0x536f1b)return _0x536f1b?{'count':_0x24e326,'rows':_0x536f1b}:null;})['then'](respondWithResult(_0x4fc2fb,null))[_0x56cba4(0x147)](handleError(_0x4fc2fb,null));},exports['removeMembers']=function(_0x3c65d2,_0x5d0518){const _0x3253c2=a72_0x3ed3bf;return db[_0x3253c2(0x148)][_0x3253c2(0x165)]({'where':{'id':_0x3c65d2[_0x3253c2(0x145)]['id']}})[_0x3253c2(0x167)](handleEntityNotFound(_0x5d0518,null))[_0x3253c2(0x167)](function(_0x23e442){const _0xf21817=_0x3253c2;if(_0x23e442)return _0x23e442[_0xf21817(0x163)](_0x3c65d2['query'][_0xf21817(0x168)]);})['then'](respondWithStatusCode(_0x5d0518,null))[_0x3253c2(0x147)](handleError(_0x5d0518,null));},exports[a72_0x3ed3bf(0x143)]=function(_0x31c268,_0x14f551){const _0x26694e=a72_0x3ed3bf;return _0x31c268['body']['id']&&delete _0x31c268['body']['id'],db[_0x26694e(0x148)][_0x26694e(0x165)]({'where':{'id':_0x31c268['params']['id']}})[_0x26694e(0x167)](handleEntityNotFound(_0x14f551,null))[_0x26694e(0x167)](function(_0x1723e0){const _0x1f9109=_0x26694e;if(_0x1723e0)return _0x31c268[_0x1f9109(0x176)][_0x1f9109(0x179)]=_0x1723e0['id'],db['ChatInternalMessage'][_0x1f9109(0x15e)](_0x31c268['body']);})[_0x26694e(0x167)](respondWithResult(_0x14f551,null))[_0x26694e(0x147)](handleError(_0x14f551,null));},exports[a72_0x3ed3bf(0x159)]=function(_0x4a4d25,_0x387084){const _0x3f46e7=a72_0x3ed3bf;let _0xaef928={};const _0x57580b={};let _0x41d743,_0x50ca70;return db[_0x3f46e7(0x148)][_0x3f46e7(0x165)]({'where':{'id':_0x4a4d25[_0x3f46e7(0x145)]['id']}})[_0x3f46e7(0x167)](handleEntityNotFound(_0x387084,null))['then'](function(_0x25d336){const _0x16d5d0=_0x3f46e7;if(_0x25d336){_0x41d743=_0x25d336,_0x57580b[_0x16d5d0(0x172)]=_['keys'](db[_0x16d5d0(0x15f)]['rawAttributes']),_0x57580b[_0x16d5d0(0x16c)]=_[_0x16d5d0(0x152)](_0x4a4d25['query']),_0x57580b[_0x16d5d0(0x14a)]=_[_0x16d5d0(0x146)](_0x57580b[_0x16d5d0(0x172)],_0x57580b[_0x16d5d0(0x16c)]),_0xaef928[_0x16d5d0(0x17b)]=_['intersection'](_0x57580b[_0x16d5d0(0x172)],qs[_0x16d5d0(0x136)](_0x4a4d25[_0x16d5d0(0x16c)][_0x16d5d0(0x136)])),_0xaef928[_0x16d5d0(0x17b)]=_0xaef928[_0x16d5d0(0x17b)][_0x16d5d0(0x169)]?_0xaef928[_0x16d5d0(0x17b)]:_0x57580b[_0x16d5d0(0x172)],_0xaef928['order']=qs['sort'](_0x4a4d25['query'][_0x16d5d0(0x157)]),_0xaef928[_0x16d5d0(0x139)]=qs['filters'](_[_0x16d5d0(0x14b)](_0x4a4d25[_0x16d5d0(0x16c)],_0x57580b[_0x16d5d0(0x14a)]));_0x4a4d25[_0x16d5d0(0x16c)][_0x16d5d0(0x141)]&&(_0xaef928['where']=_[_0x16d5d0(0x17c)](_0xaef928[_0x16d5d0(0x139)],{[Op['or']]:_[_0x16d5d0(0x175)](_0xaef928[_0x16d5d0(0x17b)],function(_0x498c0f){const _0x2ed209=_0x16d5d0,_0x4d5b0b={};return _0x4d5b0b[_0x498c0f]={[Op[_0x2ed209(0x16a)]]:'%'+_0x4a4d25[_0x2ed209(0x16c)]['filter']+'%'},_0x4d5b0b;})}));if(_0x4a4d25[_0x16d5d0(0x16c)][_0x16d5d0(0x13b)]){const _0x51b99c=_0x4a4d25['query'][_0x16d5d0(0x13b)]['split'](','),_0xec42e={};_0xec42e[_0x51b99c[0x0]]={[Op[_0x16d5d0(0x15d)]]:moment(_0x51b99c[0x1])['format'](_0x16d5d0(0x150))},_0xaef928[_0x16d5d0(0x139)]=_[_0x16d5d0(0x17c)](_0xaef928['where'],_0xec42e);}return _0xaef928=_['merge']({},_0xaef928,_0x4a4d25[_0x16d5d0(0x170)]),_0x41d743['getMessages'](_0xaef928);}})['then'](function(_0x5328c6){const _0x22b385=_0x3f46e7;if(_0x5328c6)return _0x50ca70=_0x5328c6[_0x22b385(0x169)],typeof _0x4a4d25[_0x22b385(0x16c)][_0x22b385(0x158)]===_0x22b385(0x13f)&&(_0xaef928[_0x22b385(0x154)]=qs[_0x22b385(0x154)](_0x4a4d25['query'][_0x22b385(0x154)]),_0xaef928[_0x22b385(0x177)]=qs['offset'](_0x4a4d25[_0x22b385(0x16c)][_0x22b385(0x177)])),_0x41d743['getMessages'](_0xaef928);})[_0x3f46e7(0x167)](function(_0x38e3a4){if(_0x38e3a4)return _0x38e3a4?{'count':_0x50ca70,'rows':_0x38e3a4}:null;})[_0x3f46e7(0x167)](respondWithResult(_0x387084,null))['catch'](handleError(_0x387084,null));}; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.events.js b/server/api/chatGroup/chatGroup.events.js index 53f7a1d..f978329 100644 --- a/server/api/chatGroup/chatGroup.events.js +++ b/server/api/chatGroup/chatGroup.events.js @@ -1 +1 @@ -const a73_0x39c2=['undefined','update','exports','emit','../../mysqldb','save','setMaxListeners','addHook','events'];(function(_0x3e9557,_0x478568){const _0x39c25d=function(_0x3cffe2){while(--_0x3cffe2){_0x3e9557['push'](_0x3e9557['shift']());}};_0x39c25d(++_0x478568);}(a73_0x39c2,0x8a));const a73_0x3cff=function(_0x3e9557,_0x478568){_0x3e9557=_0x3e9557-0x17b;let _0x39c25d=a73_0x39c2[_0x3e9557];return _0x39c25d;};const a73_0x49c531=a73_0x3cff;'use strict';const EventEmitter=require(a73_0x49c531(0x180)),ChatGroup=require(a73_0x49c531(0x17c))['db']['ChatGroup'],ChatGroupEvents=new EventEmitter();ChatGroupEvents[a73_0x49c531(0x17e)](0x0);const events={'afterCreate':a73_0x49c531(0x17d),'afterUpdate':a73_0x49c531(0x182),'afterDestroy':'remove'};function emitEvent(_0x4cae28){return function(_0x540293){const _0x39ab52=a73_0x3cff;ChatGroupEvents[_0x39ab52(0x17b)](_0x4cae28+':'+_0x540293['id'],_0x540293),ChatGroupEvents[_0x39ab52(0x17b)](_0x4cae28,_0x540293);};}for(const e in events){if(typeof events[e]!==a73_0x49c531(0x181)){const event=events[e];ChatGroup[a73_0x49c531(0x17f)](e,emitEvent(event));}}module[a73_0x49c531(0x183)]=ChatGroupEvents; \ No newline at end of file +const a73_0x5ea0=['ChatGroup','remove','../../mysqldb','exports','undefined','emit'];(function(_0x2ed672,_0x103209){const _0x5ea061=function(_0x586613){while(--_0x586613){_0x2ed672['push'](_0x2ed672['shift']());}};_0x5ea061(++_0x103209);}(a73_0x5ea0,0xa5));const a73_0x5866=function(_0x2ed672,_0x103209){_0x2ed672=_0x2ed672-0x89;let _0x5ea061=a73_0x5ea0[_0x2ed672];return _0x5ea061;};const a73_0x582535=a73_0x5866;'use strict';const EventEmitter=require('events'),ChatGroup=require(a73_0x582535(0x8e))['db'][a73_0x582535(0x8c)],ChatGroupEvents=new EventEmitter();ChatGroupEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':a73_0x582535(0x8d)};function emitEvent(_0x2f1870){return function(_0x1f6c33){const _0x5851d8=a73_0x5866;ChatGroupEvents[_0x5851d8(0x8b)](_0x2f1870+':'+_0x1f6c33['id'],_0x1f6c33),ChatGroupEvents[_0x5851d8(0x8b)](_0x2f1870,_0x1f6c33);};}for(const e in events){if(typeof events[e]!==a73_0x582535(0x8a)){const event=events[e];ChatGroup['addHook'](e,emitEvent(event));}}module[a73_0x582535(0x89)]=ChatGroupEvents; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.model.js b/server/api/chatGroup/chatGroup.model.js index d3ad8c6..ad5185c 100644 --- a/server/api/chatGroup/chatGroup.model.js +++ b/server/api/chatGroup/chatGroup.model.js @@ -1 +1 @@ -const a74_0xf085=['init','exports','./chatGroup.attributes','ChatGroup','sequelize','./chatGroup.options','function'];(function(_0x2c0ce7,_0x2fb0d9){const _0xf085dc=function(_0x1717f5){while(--_0x1717f5){_0x2c0ce7['push'](_0x2c0ce7['shift']());}};_0xf085dc(++_0x2fb0d9);}(a74_0xf085,0x16a));const a74_0x1717=function(_0x2c0ce7,_0x2fb0d9){_0x2c0ce7=_0x2c0ce7-0x14f;let _0xf085dc=a74_0xf085[_0x2c0ce7];return _0xf085dc;};const a74_0x2eff75=a74_0x1717;'use strict';const {Model}=require(a74_0x2eff75(0x155)),{attributes}=require(a74_0x2eff75(0x153)),{options}=require(a74_0x2eff75(0x14f));class ChatGroup extends Model{}function init(_0x1faa92,_0xcde4fb){const _0x48be23=a74_0x2eff75,_0x1386a1=options(_0x1faa92),_0x2d71df=typeof _0xcde4fb===_0x48be23(0x150)?_0xcde4fb(_0x1386a1):_0x1386a1;return ChatGroup[_0x48be23(0x151)](attributes,_0x2d71df),ChatGroup;}module[a74_0x2eff75(0x152)][a74_0x2eff75(0x154)]=ChatGroup,module[a74_0x2eff75(0x152)]['init']=init; \ No newline at end of file +const a74_0x5530=['exports','./chatGroup.options','ChatGroup','init','function','./chatGroup.attributes','sequelize'];(function(_0x4ac145,_0x3f65e9){const _0x5530ac=function(_0x1e4e92){while(--_0x1e4e92){_0x4ac145['push'](_0x4ac145['shift']());}};_0x5530ac(++_0x3f65e9);}(a74_0x5530,0xab));const a74_0x1e4e=function(_0x4ac145,_0x3f65e9){_0x4ac145=_0x4ac145-0x1be;let _0x5530ac=a74_0x5530[_0x4ac145];return _0x5530ac;};const a74_0x17f096=a74_0x1e4e;'use strict';const {Model}=require(a74_0x17f096(0x1c1)),{attributes}=require(a74_0x17f096(0x1c0)),{options}=require(a74_0x17f096(0x1c3));class ChatGroup extends Model{}function init(_0x293e59,_0x3ab003){const _0xe52efa=a74_0x17f096,_0x34186b=options(_0x293e59),_0xf7c035=typeof _0x3ab003===_0xe52efa(0x1bf)?_0x3ab003(_0x34186b):_0x34186b;return ChatGroup['init'](attributes,_0xf7c035),ChatGroup;}module[a74_0x17f096(0x1c2)][a74_0x17f096(0x1c4)]=ChatGroup,module['exports'][a74_0x17f096(0x1be)]=init; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.options.js b/server/api/chatGroup/chatGroup.options.js index b7cc70e..75a7e21 100644 --- a/server/api/chatGroup/chatGroup.options.js +++ b/server/api/chatGroup/chatGroup.options.js @@ -1 +1 @@ -var a75_0x4d56=['options','chat_groups','exports'];(function(_0x178e42,_0x4aa8b8){var _0x4d56fd=function(_0x50b375){while(--_0x50b375){_0x178e42['push'](_0x178e42['shift']());}};_0x4d56fd(++_0x4aa8b8);}(a75_0x4d56,0x183));var a75_0x50b3=function(_0x178e42,_0x4aa8b8){_0x178e42=_0x178e42-0x1e7;var _0x4d56fd=a75_0x4d56[_0x178e42];return _0x4d56fd;};var a75_0x2454ea=a75_0x50b3;function options(_0x3e8647){var _0x311e15=a75_0x50b3;return{'sequelize':_0x3e8647,'tableName':_0x311e15(0x1e8),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a75_0x2454ea(0x1e9)][a75_0x2454ea(0x1e7)]=options; \ No newline at end of file +var a75_0x1047=['exports','options','chat_groups'];(function(_0x5caa4d,_0x10cbf7){var _0x104782=function(_0x394dad){while(--_0x394dad){_0x5caa4d['push'](_0x5caa4d['shift']());}};_0x104782(++_0x10cbf7);}(a75_0x1047,0x74));var a75_0x394d=function(_0x5caa4d,_0x10cbf7){_0x5caa4d=_0x5caa4d-0x172;var _0x104782=a75_0x1047[_0x5caa4d];return _0x104782;};var a75_0x49e818=a75_0x394d;function options(_0xae0b84){var _0x78e4d8=a75_0x394d;return{'sequelize':_0xae0b84,'tableName':_0x78e4d8(0x172),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a75_0x49e818(0x173)][a75_0x49e818(0x174)]=options; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.rpc.js b/server/api/chatGroup/chatGroup.rpc.js index caf3f24..29d0947 100644 --- a/server/api/chatGroup/chatGroup.rpc.js +++ b/server/api/chatGroup/chatGroup.rpc.js @@ -1 +1 @@ -const a76_0xe62a=['../../rediscache','register','./chatGroup.socket'];(function(_0x5208b2,_0x2ad066){const _0xe62a89=function(_0x25de7d){while(--_0x25de7d){_0x5208b2['push'](_0x5208b2['shift']());}};_0xe62a89(++_0x2ad066);}(a76_0xe62a,0x67));const a76_0x25de=function(_0x5208b2,_0x2ad066){_0x5208b2=_0x5208b2-0x193;let _0xe62a89=a76_0xe62a[_0x5208b2];return _0xe62a89;};const a76_0x15c749=a76_0x25de;'use strict';const {getSocket}=require(a76_0x15c749(0x195)),socket=getSocket();require(a76_0x15c749(0x194))[a76_0x15c749(0x193)](socket); \ No newline at end of file +const a76_0x3609=['../../rediscache','register','./chatGroup.socket'];(function(_0x118077,_0x187e0b){const _0x360946=function(_0x413ed6){while(--_0x413ed6){_0x118077['push'](_0x118077['shift']());}};_0x360946(++_0x187e0b);}(a76_0x3609,0xe6));const a76_0x413e=function(_0x118077,_0x187e0b){_0x118077=_0x118077-0x131;let _0x360946=a76_0x3609[_0x118077];return _0x360946;};const a76_0x11d4a0=a76_0x413e;'use strict';const {getSocket}=require(a76_0x11d4a0(0x132)),socket=getSocket();require(a76_0x11d4a0(0x131))[a76_0x11d4a0(0x133)](socket); \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.socket.js b/server/api/chatGroup/chatGroup.socket.js index 4123345..383c36d 100644 --- a/server/api/chatGroup/chatGroup.socket.js +++ b/server/api/chatGroup/chatGroup.socket.js @@ -1 +1 @@ -const a77_0x4a49=['./chatGroup.events','update','length','save','chatGroup:','register'];(function(_0x3da7af,_0x88835c){const _0x4a491f=function(_0x95e26b){while(--_0x95e26b){_0x3da7af['push'](_0x3da7af['shift']());}};_0x4a491f(++_0x88835c);}(a77_0x4a49,0x118));const a77_0x95e2=function(_0x3da7af,_0x88835c){_0x3da7af=_0x3da7af-0xbb;let _0x4a491f=a77_0x4a49[_0x3da7af];return _0x4a491f;};const a77_0x429b76=a77_0x95e2;'use strict';const ChatGroupEvents=require(a77_0x429b76(0xbd)),events=[a77_0x429b76(0xc0),'remove',a77_0x429b76(0xbe)];function createListener(_0x14b4ce,_0xf7ed89){return function(_0xbc5afc){_0xf7ed89['emit'](_0x14b4ce,_0xbc5afc);};}exports[a77_0x429b76(0xbc)]=function(_0x575e87){const _0x40b5d6=a77_0x429b76;for(let _0x57fd19=0x0,_0xb8db6b=events[_0x40b5d6(0xbf)];_0x57fd19<_0xb8db6b;_0x57fd19++){const _0x5ebd2e=events[_0x57fd19],_0x5b2baa=createListener(_0x40b5d6(0xbb)+_0x5ebd2e,_0x575e87);ChatGroupEvents['on'](_0x5ebd2e,_0x5b2baa);}}; \ No newline at end of file +const a77_0x4368=['chatGroup:','length','remove','./chatGroup.events','save','emit','update'];(function(_0x468cfc,_0x30b08c){const _0x4368d3=function(_0x244e9a){while(--_0x244e9a){_0x468cfc['push'](_0x468cfc['shift']());}};_0x4368d3(++_0x30b08c);}(a77_0x4368,0x1be));const a77_0x244e=function(_0x468cfc,_0x30b08c){_0x468cfc=_0x468cfc-0x9c;let _0x4368d3=a77_0x4368[_0x468cfc];return _0x4368d3;};const a77_0x3cda76=a77_0x244e;'use strict';const ChatGroupEvents=require(a77_0x3cda76(0xa1)),events=[a77_0x3cda76(0xa2),a77_0x3cda76(0xa0),a77_0x3cda76(0x9d)];function createListener(_0x2900f8,_0x501d4e){return function(_0x39158e){const _0x34b5f9=a77_0x244e;_0x501d4e[_0x34b5f9(0x9c)](_0x2900f8,_0x39158e);};}exports['register']=function(_0x374c31){const _0x39eee7=a77_0x3cda76;for(let _0x153df7=0x0,_0x1b4bbe=events[_0x39eee7(0x9f)];_0x153df7<_0x1b4bbe;_0x153df7++){const _0x4230dd=events[_0x153df7],_0x37c6d8=createListener(_0x39eee7(0x9e)+_0x4230dd,_0x374c31);ChatGroupEvents['on'](_0x4230dd,_0x37c6d8);}}; \ No newline at end of file diff --git a/server/api/chatGroup/index.js b/server/api/chatGroup/index.js index e6c6e07..a5ead1b 100644 --- a/server/api/chatGroup/index.js +++ b/server/api/chatGroup/index.js @@ -1 +1 @@ -const a78_0x54e3=['describe','index','express','./chatGroup.controller','addMembers','delete','/:id/members','getMembers','create','/:id/unread','/describe','update','../../components/auth/service','post','isAuthenticated','getMessages','destroy','removeMembers','/:id','get','/:id/messages','addMessage'];(function(_0x3fd03c,_0x4f9874){const _0x54e3ab=function(_0x58d7ac){while(--_0x58d7ac){_0x3fd03c['push'](_0x3fd03c['shift']());}};_0x54e3ab(++_0x4f9874);}(a78_0x54e3,0x123));const a78_0x58d7=function(_0x3fd03c,_0x4f9874){_0x3fd03c=_0x3fd03c-0xe9;let _0x54e3ab=a78_0x54e3[_0x3fd03c];return _0x54e3ab;};const a78_0x212341=a78_0x58d7;'use strict';const express=require(a78_0x212341(0xfc)),router=express['Router'](),auth=require(a78_0x212341(0xf0)),controller=require(a78_0x212341(0xfd));router[a78_0x212341(0xf7)]('/',auth['isAuthenticated'](),controller[a78_0x212341(0xfb)]),router[a78_0x212341(0xf7)](a78_0x212341(0xee),auth[a78_0x212341(0xf2)](),controller[a78_0x212341(0xfa)]),router[a78_0x212341(0xf7)]('/:id',auth['isAuthenticated'](),controller['show']),router[a78_0x212341(0xf7)](a78_0x212341(0xed),auth[a78_0x212341(0xf2)](),controller['getUnread']),router[a78_0x212341(0xf7)](a78_0x212341(0xea),auth[a78_0x212341(0xf2)](),controller[a78_0x212341(0xeb)]),router[a78_0x212341(0xf7)](a78_0x212341(0xf8),auth[a78_0x212341(0xf2)](),controller[a78_0x212341(0xf3)]),router[a78_0x212341(0xf1)]('/',auth[a78_0x212341(0xf2)](),controller[a78_0x212341(0xec)]),router[a78_0x212341(0xf1)]('/:id/members',auth['isAuthenticated'](),controller[a78_0x212341(0xfe)]),router[a78_0x212341(0xf1)](a78_0x212341(0xf8),auth[a78_0x212341(0xf2)](),controller[a78_0x212341(0xf9)]),router['put'](a78_0x212341(0xf6),auth[a78_0x212341(0xf2)](),controller[a78_0x212341(0xef)]),router[a78_0x212341(0xe9)]('/:id',auth[a78_0x212341(0xf2)](),controller[a78_0x212341(0xf4)]),router[a78_0x212341(0xe9)](a78_0x212341(0xea),auth[a78_0x212341(0xf2)](),controller[a78_0x212341(0xf5)]),module['exports']=router; \ No newline at end of file +const a78_0x5a4d=['update','/:id/unread','/:id/messages','describe','post','/:id','isAuthenticated','create','removeMembers','show','/:id/members','../../components/auth/service','./chatGroup.controller','put','addMessage','getMessages','addMembers','getUnread','/describe','get','express'];(function(_0x15899b,_0x21f502){const _0x5a4dff=function(_0x1c95ae){while(--_0x1c95ae){_0x15899b['push'](_0x15899b['shift']());}};_0x5a4dff(++_0x21f502);}(a78_0x5a4d,0x187));const a78_0x1c95=function(_0x15899b,_0x21f502){_0x15899b=_0x15899b-0x1a8;let _0x5a4dff=a78_0x5a4d[_0x15899b];return _0x5a4dff;};const a78_0x47eff=a78_0x1c95;'use strict';const express=require(a78_0x47eff(0x1af)),router=express['Router'](),auth=require(a78_0x47eff(0x1bb)),controller=require(a78_0x47eff(0x1bc));router['get']('/',auth[a78_0x47eff(0x1b6)](),controller['index']),router[a78_0x47eff(0x1ae)](a78_0x47eff(0x1ad),auth[a78_0x47eff(0x1b6)](),controller[a78_0x47eff(0x1b3)]),router[a78_0x47eff(0x1ae)](a78_0x47eff(0x1b5),auth[a78_0x47eff(0x1b6)](),controller[a78_0x47eff(0x1b9)]),router[a78_0x47eff(0x1ae)](a78_0x47eff(0x1b1),auth[a78_0x47eff(0x1b6)](),controller[a78_0x47eff(0x1ac)]),router[a78_0x47eff(0x1ae)](a78_0x47eff(0x1ba),auth['isAuthenticated'](),controller['getMembers']),router['get'](a78_0x47eff(0x1b2),auth[a78_0x47eff(0x1b6)](),controller[a78_0x47eff(0x1aa)]),router['post']('/',auth[a78_0x47eff(0x1b6)](),controller[a78_0x47eff(0x1b7)]),router[a78_0x47eff(0x1b4)](a78_0x47eff(0x1ba),auth[a78_0x47eff(0x1b6)](),controller[a78_0x47eff(0x1ab)]),router[a78_0x47eff(0x1b4)](a78_0x47eff(0x1b2),auth[a78_0x47eff(0x1b6)](),controller[a78_0x47eff(0x1a9)]),router[a78_0x47eff(0x1a8)](a78_0x47eff(0x1b5),auth['isAuthenticated'](),controller[a78_0x47eff(0x1b0)]),router['delete']('/:id',auth[a78_0x47eff(0x1b6)](),controller['destroy']),router['delete'](a78_0x47eff(0x1ba),auth['isAuthenticated'](),controller[a78_0x47eff(0x1b8)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.attributes.js b/server/api/chatInteraction/chatInteraction.attributes.js index 5f2bf1f..f52d438 100644 --- a/server/api/chatInteraction/chatInteraction.attributes.js +++ b/server/api/chatInteraction/chatInteraction.attributes.js @@ -1 +1 @@ -const a79_0x3d3f=['out','STRING','INTEGER','exports','ENUM','star','DATE','sequelize','TEXT'];(function(_0x3d3c0f,_0x447db1){const _0x3d3fcd=function(_0x5f58b3){while(--_0x5f58b3){_0x3d3c0f['push'](_0x3d3c0f['shift']());}};_0x3d3fcd(++_0x447db1);}(a79_0x3d3f,0x94));const a79_0x5f58=function(_0x3d3c0f,_0x447db1){_0x3d3c0f=_0x3d3c0f-0x109;let _0x3d3fcd=a79_0x3d3f[_0x3d3c0f];return _0x3d3fcd;};const a79_0x1b3787=a79_0x5f58;'use strict';const {DataTypes}=require(a79_0x1b3787(0x10c)),attributes={'closed':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'ratingValue':{'type':DataTypes[a79_0x1b3787(0x110)]},'ratingType':{'type':DataTypes[a79_0x1b3787(0x109)]('star','thumb'),'defaultValue':a79_0x1b3787(0x10a)},'ratingMessage':{'type':DataTypes[a79_0x1b3787(0x10d)]},'pathTranscript':{'type':DataTypes[a79_0x1b3787(0x10d)]},'mailTranscript':{'type':DataTypes['STRING'],'validate':{'isEmail':!![]}},'closedAt':{'type':DataTypes['DATE']},'disposition':{'type':DataTypes[a79_0x1b3787(0x10f)]},'secondDisposition':{'type':DataTypes[a79_0x1b3787(0x10f)]},'thirdDisposition':{'type':DataTypes[a79_0x1b3787(0x10f)]},'note':{'type':DataTypes[a79_0x1b3787(0x10f)]},'browserName':{'type':DataTypes[a79_0x1b3787(0x10f)]},'browserVersion':{'type':DataTypes['STRING']},'osName':{'type':DataTypes[a79_0x1b3787(0x10f)]},'osVersion':{'type':DataTypes[a79_0x1b3787(0x10f)]},'deviceModel':{'type':DataTypes[a79_0x1b3787(0x10f)]},'deviceVendor':{'type':DataTypes['STRING']},'deviceType':{'type':DataTypes[a79_0x1b3787(0x10f)]},'referer':{'type':DataTypes['TEXT']},'customerIp':{'type':DataTypes[a79_0x1b3787(0x10f)]},'formData':{'type':DataTypes['TEXT']({'length':'long'})},'read1stAt':{'type':DataTypes[a79_0x1b3787(0x10b)]},'lastMsgAt':{'type':DataTypes[a79_0x1b3787(0x10b)]},'lastMsgDirection':{'type':DataTypes[a79_0x1b3787(0x109)]('in',a79_0x1b3787(0x10e)),'defaultValue':'in','allowNull':![]},'closeReason':{'type':DataTypes[a79_0x1b3787(0x10f)]},'customerPort':{'type':DataTypes[a79_0x1b3787(0x10f)]},'vidaooSessionId':{'type':DataTypes[a79_0x1b3787(0x10d)]}};module[a79_0x1b3787(0x111)]['attributes']=attributes; \ No newline at end of file +const a79_0x3b7a=['sequelize','TEXT','thumb','out','star','DATE','attributes','BOOLEAN','STRING','long','ENUM'];(function(_0x24a4d9,_0x151bf1){const _0x3b7a4b=function(_0x3e9ff4){while(--_0x3e9ff4){_0x24a4d9['push'](_0x24a4d9['shift']());}};_0x3b7a4b(++_0x151bf1);}(a79_0x3b7a,0xe0));const a79_0x3e9f=function(_0x24a4d9,_0x151bf1){_0x24a4d9=_0x24a4d9-0x91;let _0x3b7a4b=a79_0x3b7a[_0x24a4d9];return _0x3b7a4b;};const a79_0x43fab3=a79_0x3e9f;'use strict';const {DataTypes}=require(a79_0x43fab3(0x98)),attributes={'closed':{'type':DataTypes[a79_0x43fab3(0x94)],'defaultValue':![]},'ratingValue':{'type':DataTypes['INTEGER']},'ratingType':{'type':DataTypes[a79_0x43fab3(0x97)](a79_0x43fab3(0x91),a79_0x43fab3(0x9a)),'defaultValue':a79_0x43fab3(0x91)},'ratingMessage':{'type':DataTypes[a79_0x43fab3(0x99)]},'pathTranscript':{'type':DataTypes['TEXT']},'mailTranscript':{'type':DataTypes['STRING'],'validate':{'isEmail':!![]}},'closedAt':{'type':DataTypes[a79_0x43fab3(0x92)]},'disposition':{'type':DataTypes[a79_0x43fab3(0x95)]},'secondDisposition':{'type':DataTypes[a79_0x43fab3(0x95)]},'thirdDisposition':{'type':DataTypes['STRING']},'note':{'type':DataTypes[a79_0x43fab3(0x95)]},'browserName':{'type':DataTypes[a79_0x43fab3(0x95)]},'browserVersion':{'type':DataTypes[a79_0x43fab3(0x95)]},'osName':{'type':DataTypes[a79_0x43fab3(0x95)]},'osVersion':{'type':DataTypes[a79_0x43fab3(0x95)]},'deviceModel':{'type':DataTypes[a79_0x43fab3(0x95)]},'deviceVendor':{'type':DataTypes['STRING']},'deviceType':{'type':DataTypes[a79_0x43fab3(0x95)]},'referer':{'type':DataTypes['TEXT']},'customerIp':{'type':DataTypes[a79_0x43fab3(0x95)]},'formData':{'type':DataTypes['TEXT']({'length':a79_0x43fab3(0x96)})},'read1stAt':{'type':DataTypes[a79_0x43fab3(0x92)]},'lastMsgAt':{'type':DataTypes[a79_0x43fab3(0x92)]},'lastMsgDirection':{'type':DataTypes[a79_0x43fab3(0x97)]('in',a79_0x43fab3(0x9b)),'defaultValue':'in','allowNull':![]},'closeReason':{'type':DataTypes[a79_0x43fab3(0x95)]},'customerPort':{'type':DataTypes['STRING']},'vidaooSessionId':{'type':DataTypes[a79_0x43fab3(0x99)]}};module['exports'][a79_0x43fab3(0x93)]=attributes; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.controller.js b/server/api/chatInteraction/chatInteraction.controller.js index 2834148..9e79827 100644 --- a/server/api/chatInteraction/chatInteraction.controller.js +++ b/server/api/chatInteraction/chatInteraction.controller.js @@ -1 +1 @@ -const a80_0xb5da=['index','push','count','`unreadMessages`\x20=\x200','sendMail','10px','u.id\x20=\x20ui.UserId','stringify','ids','join_url','include','vidaooEscalation','fullname','map','type','files/attachments/','json','osName','\x0a\x20\x20\x20\x20\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
','Smtp','c.lastName','../../config/logger','ChatMessage','unreadMessages','mimetype','Contact.fax','ChatInteraction','squel','../../rediscache','merge','chat_messages','rows','lodash','User','Messages','UserId','users','gte','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','u.fullname','service','$lte','tag','out','customerIp','length','../../components/parsers/advancedSearch','secret','ChatInteraction,\x20%s,\x20%s,\x20%s','views','mkdirSync','TagIds','browserName','ChatInteraction,\x20%s,\x20%s','findOne','keys','N.A.','includeAll','offset','group','pathTranscript','agent_alias','value','sequelize','user_has_chat_interactions','[%s]\x20%s:\x20%s\x0a','key','limit','Owner.internal','40px','attachmentUpload','color','order','moment','Tag','nolimit','abandonInteraction,\x20%s,\x20%s,\x20%s','Contact.firstName','findAll','transcript-','ContactId','options','it.ChatInteractionId\x20=\x20i.id','ejs','text','entity\x20not\x20found','attributes','format','Interaction\x20already\x20assigned','cm_contacts','email','server','root','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','renderFile','name','i.*','host','operator','find','Content-Range','fieldName','null','all','sort','u.id','split','Account','concat','Chat','message','me.ChatInteractionId\x20=\x20i.id','fields','parseSearch','user','journey','log','ChatInteractionId','contactName','read','body','SELECT','keyBy','CASE\x20WHEN\x20(c.firstName\x20IS\x20NOT\x20NULL\x20AND\x20c.firstName\x20<>\x20\x27\x27)\x20OR\x20(c.lastName\x20IS\x20NOT\x20NULL\x20AND\x20c.lastName\x20<>\x20\x27\x27)\x20THEN\x20CONCAT(IFNULL(c.firstName,\x20\x27\x27),\x20\x27\x20\x27,\x20IFNULL(c.lastName,\x20\x27\x27))\x20ELSE\x20\x27Unknown\x27\x20END','firstName','resolve','undefined','chat_interactions','forEach','transcript-%d-%s.zip','chatInteractionTags:save','POST','follow','addTags','createVidaooSession','pick','files','Unauthorized','YYYY-MM-DD\x20HH:mm:ss','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','authentication','a.mandatoryDisposition','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','omit','buildExpression','union','customerPort','Contact.mobile','isArray','Tags','tools_tags','port','then','c.firstName','set','update','secure','left_join','rimraf','getChatWebsites','o.internal','ui.ChatInteractionId','unix','intersection','a.key','register','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\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','close','tmp','t.id\x20=\x20it.TagId','query','AbandonInteraction','../../components/parsers/qs','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','t.id\x20IN\x20?','basename','status','c.phone','end','groupBy','debug','CmContact','agentAlias','sendStatus','filter','getFullTextValue','referer','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','start','unlinkSync','ChatWebsite','direction','error','i.ChatWebsiteId\x20IS\x20NOT\x20NULL','toString','join','Error\x20in\x20Vidaoo\x20configuration','getMessages','vidaooApiKey','compact','attachId','client','`\x20>\x200','SendMail','o.id\x20=\x20i.UserId','i.id','Attachment','parse','%s\x20#%d','Owner','having','code','closedAt','like','result','get','createdAt','create','filters','MotionCWB:','where','setTags','GROUP_CONCAT(DISTINCT\x20t.id)','conditions','toFile','info','request\x20sent','sqlOperator','Visitor','stack','isEmpty','Contact.email','pipe','select','disposition','file','some','params','model','alias','closed','show','./chatInteraction.socket','util','http','\x20=\x20?','ChatWebsiteId','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','$gte','DESC','\x22%s\x22\x20<%s>','`\x20=\x200','chat_websites','i.ChatWebsiteId\x20IN\x20?','isNumeric','destroy','%s%d','expr','api','rawAttributes','downloadInteraction.html','Owner.fullname','appendFileSync','zip-dir','search','removeTags','i.id\x20LIKE\x20?','mailTranscript','catch','field','emit','abandon','MailServerOut','System','replace','download','attachments','jayson/promise','Contact','i.ChatWebsiteId\x20IS\x20NULL','chat_interaction_has_tags','describe','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','from','website_alias','lastName','30px'];(function(_0x3a98f5,_0x25b98b){const _0xb5dada=function(_0x3da583){while(--_0x3da583){_0x3a98f5['push'](_0x3a98f5['shift']());}};_0xb5dada(++_0x25b98b);}(a80_0xb5da,0x1ab));const a80_0x3da5=function(_0x3a98f5,_0x25b98b){_0x3a98f5=_0x3a98f5-0xea;let _0xb5dada=a80_0xb5da[_0x3a98f5];return _0xb5dada;};const a80_0x4a36e5=a80_0x3da5;'use strict';const pdf=require('html-pdf'),rimraf=require(a80_0x4a36e5(0xfc)),zipdir=require(a80_0x4a36e5(0x165)),rp=require('request-promise-native'),moment=require(a80_0x4a36e5(0x1c6)),util=require(a80_0x4a36e5(0x151)),path=require('path'),ejs=require(a80_0x4a36e5(0x1d0)),fs=require('fs'),_=require(a80_0x4a36e5(0x19d)),squel=require(a80_0x4a36e5(0x198)),{getSocket}=require(a80_0x4a36e5(0x199)),qs=require(a80_0x4a36e5(0x10a)),as=require(a80_0x4a36e5(0x1ab)),logger=require(a80_0x4a36e5(0x192))(a80_0x4a36e5(0x160)),config=require('../../config/environment'),{db}=require('../../mysqldb'),{Op,ValidationError,QueryTypes}=require(a80_0x4a36e5(0x1bc)),socket=getSocket();require(a80_0x4a36e5(0x150))[a80_0x4a36e5(0x103)](socket);const jayson=require(a80_0x4a36e5(0x173)),client=jayson[a80_0x4a36e5(0x127)][a80_0x4a36e5(0x152)]({'port':0x232b}),client9004=jayson[a80_0x4a36e5(0x127)]['http']({'port':0x232c});function respondWithRpcPromise(_0x484e9d,_0x5d6cb4,_0x3146c1,_0x5e74f1){return new Promise(function(_0xa44e9c,_0x1c8bf6){const _0x13cf3a=a80_0x3da5,_0x43bae7=_0x5e74f1||client;return _0x43bae7['request'](_0x484e9d,_0x3146c1)[_0x13cf3a(0xf6)](function(_0x54c139){const _0x49aad9=_0x13cf3a;logger[_0x49aad9(0x13f)](_0x49aad9(0x1b2),_0x5d6cb4,_0x49aad9(0x140)),logger[_0x49aad9(0x112)](_0x49aad9(0x1ad),_0x5d6cb4,_0x49aad9(0x140),JSON[_0x49aad9(0x184)](_0x54c139));if(_0x54c139[_0x49aad9(0x11e)]){if(_0x54c139[_0x49aad9(0x11e)][_0x49aad9(0x131)]===0x1f4)return logger[_0x49aad9(0x11e)](_0x49aad9(0x1b2),_0x5d6cb4,_0x54c139[_0x49aad9(0x11e)][_0x49aad9(0x1eb)]),_0x1c8bf6(_0x54c139['error'][_0x49aad9(0x1eb)]);return logger[_0x49aad9(0x11e)]('ChatInteraction,\x20%s,\x20%s',_0x5d6cb4,_0x54c139[_0x49aad9(0x11e)][_0x49aad9(0x1eb)]),_0xa44e9c(_0x54c139[_0x49aad9(0x11e)][_0x49aad9(0x1eb)]);}else logger[_0x49aad9(0x13f)](_0x49aad9(0x1b2),_0x5d6cb4,_0x49aad9(0x140)),_0xa44e9c(_0x54c139[_0x49aad9(0x134)][_0x49aad9(0x1eb)]);})[_0x13cf3a(0x16a)](function(_0x539f81){const _0x5544c4=_0x13cf3a;logger[_0x5544c4(0x11e)](_0x5544c4(0x1b2),_0x5d6cb4,_0x539f81),_0x1c8bf6(_0x539f81);});});}function respondWithStatusCode(_0x89c1b0,_0x572bf){return _0x572bf=_0x572bf||0xcc,function(_0x152672){const _0x4980af=a80_0x3da5;if(_0x152672)return _0x89c1b0[_0x4980af(0x115)](_0x572bf);return _0x89c1b0[_0x4980af(0x10e)](_0x572bf)[_0x4980af(0x110)]();};}function respondWithResult(_0x3b8047,_0x4ef17d){return _0x4ef17d=_0x4ef17d||0xc8,function(_0x39f16f){if(_0x39f16f)return _0x3b8047['status'](_0x4ef17d)['json'](_0x39f16f);};}function respondWithFilteredResult(_0x689f4f,_0x1bc48d){return function(_0x17d54c){const _0x2086a5=a80_0x3da5;if(_0x17d54c){const _0x503435=_0x17d54c[_0x2086a5(0x17f)],_0x5b488f=_0x1bc48d['offset'];let _0x553747=_0x1bc48d[_0x2086a5(0x1b7)]+_0x1bc48d[_0x2086a5(0x1c0)],_0xa92a2d;return _0x553747>=_0x503435?(_0x553747=_0x503435,_0xa92a2d=0xc8):_0xa92a2d=0xce,_0x689f4f[_0x2086a5(0x10e)](_0xa92a2d),_0x689f4f[_0x2086a5(0xf8)](_0x2086a5(0x1e1),_0x5b488f+'-'+_0x553747+'/'+_0x503435)[_0x2086a5(0x18d)](_0x17d54c);}return null;};}function saveUpdates(_0x574192){return function(_0x259119){const _0x1288ad=a80_0x3da5;if(_0x259119)return _0x259119[_0x1288ad(0xf9)](_0x574192)[_0x1288ad(0xf6)](function(_0x2a924c){return _0x2a924c;});return null;};}function removeEntity(_0x2dc61c){return function(_0x4d3077){const _0x3cd333=a80_0x3da5;if(_0x4d3077)return _0x4d3077['destroy']()[_0x3cd333(0xf6)](function(){const _0x5f778a=_0x3cd333;_0x2dc61c[_0x5f778a(0x10e)](0xcc)[_0x5f778a(0x110)]();});};}function handleEntityNotFound(_0x22080a){return function(_0x58194d){return!_0x58194d&&_0x22080a['sendStatus'](0x194),_0x58194d;};}function handleError(_0x2ba1e2,_0x397c76){return _0x397c76=_0x397c76||0x1f4,function(_0x172a94){const _0x1df91c=a80_0x3da5;logger[_0x1df91c(0x11e)](_0x172a94[_0x1df91c(0x143)]),_0x172a94[_0x1df91c(0x1dc)]&&delete _0x172a94[_0x1df91c(0x1dc)],_0x2ba1e2[_0x1df91c(0x10e)](_0x397c76)['send'](_0x172a94);};}function getInteractionUsers(_0x44b47b,_0x44c174){return new Promise(function(_0x5c94a0,_0x359614){const _0x253c05=a80_0x3da5;try{_0x44c174[_0x44b47b['id']]&&(_0x44b47b['Users']=_[_0x253c05(0x18a)](_0x44c174[_0x44b47b['id']],function(_0x5a0952){const _0x38b26a=_0x253c05;return{'id':_0x5a0952['id'],'fullname':_0x5a0952[_0x38b26a(0x189)]};}));}catch(_0x48169a){_0x359614(_0x48169a);}_0x5c94a0(_0x44b47b);});}function getInteractionTags(_0x41cfae,_0x4899c9){return new Promise(function(_0xade397,_0x103f63){const _0x251568=a80_0x3da5;try{_0x41cfae[_0x251568(0x1b0)]&&(_0x41cfae[_0x251568(0xf3)]=[],_0x41cfae[_0x251568(0x1b0)][_0x251568(0x1e7)](',')['forEach'](function(_0x1905fc){const _0x126750=_0x251568;_0x41cfae[_0x126750(0xf3)][_0x126750(0x17e)](_0x4899c9[_0x1905fc]);})),delete _0x41cfae['TagIds'];}catch(_0x4e86ff){_0x103f63(_0x4e86ff);}_0xade397(_0x41cfae);});}function updateChatInteraction(_0x550511,_0x2da7c9,_0x3c8c4d){return new Promise(function(_0x3684c9,_0x346c91){const _0x4b38be=a80_0x3da5;return getInteractionUsers(_0x550511,_0x3c8c4d)[_0x4b38be(0xf6)](function(_0x47f21e){return getInteractionTags(_0x47f21e,_0x2da7c9);})[_0x4b38be(0xf6)](function(_0x147780){_0x3684c9(_0x147780);})[_0x4b38be(0x16a)](function(_0xe81a4b){_0x346c91(_0xe81a4b);});});}exports[a80_0x4a36e5(0x17d)]=function(_0x5b6a51,_0x49dc03){const _0x5ae447=a80_0x4a36e5,_0x25f681={},_0x1a3b9d={},_0x5864af={'count':0x0,'rows':[]},_0x193a1f=_[_0x5ae447(0x18a)](db[_0x5ae447(0x197)][_0x5ae447(0x161)],function(_0x4bbccb){const _0x4c9fe5=_0x5ae447;return{'name':_0x4bbccb[_0x4c9fe5(0x1e2)],'type':_0x4bbccb['type'][_0x4c9fe5(0x1bf)]};});_0x1a3b9d[_0x5ae447(0x14c)]=_[_0x5ae447(0x18a)](_0x193a1f,_0x5ae447(0x1dc)),_0x1a3b9d[_0x5ae447(0x108)]=_[_0x5ae447(0x1b4)](_0x5b6a51[_0x5ae447(0x108)]),_0x1a3b9d[_0x5ae447(0x138)]=_[_0x5ae447(0x101)](_0x1a3b9d[_0x5ae447(0x14c)],_0x1a3b9d[_0x5ae447(0x108)]),_0x25f681['attributes']=_[_0x5ae447(0x101)](_0x1a3b9d[_0x5ae447(0x14c)],qs[_0x5ae447(0x1ed)](_0x5b6a51[_0x5ae447(0x108)][_0x5ae447(0x1ed)])),_0x25f681[_0x5ae447(0x1d3)]=_0x25f681['attributes'][_0x5ae447(0x1aa)]?_0x25f681['attributes']:_0x1a3b9d[_0x5ae447(0x14c)];typeof _0x5b6a51[_0x5ae447(0x108)]['nolimit']===_0x5ae447(0x1fb)&&(_0x25f681['limit']=qs[_0x5ae447(0x1c0)](_0x5b6a51['query'][_0x5ae447(0x1c0)]),_0x25f681[_0x5ae447(0x1b7)]=qs['offset'](_0x5b6a51[_0x5ae447(0x108)][_0x5ae447(0x1b7)]));_0x25f681['order']=qs[_0x5ae447(0x1e5)](_0x5b6a51['query']['sort']),_0x25f681[_0x5ae447(0x13a)]=qs[_0x5ae447(0x138)](_[_0x5ae447(0x204)](_0x5b6a51[_0x5ae447(0x108)],_0x1a3b9d[_0x5ae447(0x138)]),_0x193a1f);let _0x2596f2=[];const _0x4a0438=squel['select']()[_0x5ae447(0x16b)]('id')['field'](_0x5ae447(0x1dc))[_0x5ae447(0x16b)](_0x5ae447(0x1c4))['from'](_0x5ae447(0xf4)),_0x39aee6=squel[_0x5ae447(0x147)]()[_0x5ae447(0x16b)](_0x5ae447(0x1e6))[_0x5ae447(0x16b)](_0x5ae447(0x1a4))[_0x5ae447(0x16b)](_0x5ae447(0xff))[_0x5ae447(0x179)](_0x5ae447(0x1bd),'ui')[_0x5ae447(0xfb)](_0x5ae447(0x1a1),'u',_0x5ae447(0x183)),_0x50efe0=squel[_0x5ae447(0x147)]()[_0x5ae447(0x179)](_0x5ae447(0x1fc),'i')[_0x5ae447(0xfb)](_0x5ae447(0x1d6),'c',_0x5ae447(0x178))[_0x5ae447(0xfb)](_0x5ae447(0x1a1),'o',_0x5ae447(0x12a))[_0x5ae447(0xfb)](_0x5ae447(0x15a),'a','a.id\x20=\x20i.ChatWebsiteId')[_0x5ae447(0xfb)](_0x5ae447(0x19b),'me',_0x5ae447(0x1ec))['left_join'](_0x5ae447(0x176),'it',_0x5ae447(0x1cf))[_0x5ae447(0xfb)](_0x5ae447(0xf4),'t',_0x5ae447(0x107)),_0x1f99d0=squel[_0x5ae447(0x15f)]();let _0x544547=[];const _0x5d282e=squel[_0x5ae447(0x15f)]();let _0x470e08;if(_0x5b6a51[_0x5ae447(0x108)][_0x5ae447(0x166)]){_0x470e08=as[_0x5ae447(0x1ee)](_0x5b6a51[_0x5ae447(0x108)][_0x5ae447(0x166)]);const _0x49ad97=_0x470e08[_0x5ae447(0x141)];for(let _0x12d414=0x0;_0x12d414<_0x470e08[_0x5ae447(0x13d)][_0x5ae447(0x1aa)];_0x12d414++){const _0x270b4f=_0x470e08[_0x5ae447(0x13d)][_0x12d414],_0x5e1a9b='i';let _0x1ad97a,_0x7f31b8=_[_0x5ae447(0x1e0)](_0x193a1f,[_0x5ae447(0x1dc),_0x270b4f['field']]);if(!_0x7f31b8)switch(_0x270b4f[_0x5ae447(0x16b)]){case'unreadMessages':_0x270b4f['value']==0x1?_0x50efe0['having']('`'+_0x270b4f[_0x5ae447(0x16b)]+_0x5ae447(0x159)):_0x50efe0[_0x5ae447(0x130)]('`'+_0x270b4f[_0x5ae447(0x16b)]+_0x5ae447(0x128));break;case _0x5ae447(0x174):if(_0x270b4f[_0x5ae447(0x1df)]==='$substring'){if(_0x270b4f[_0x5ae447(0x1bb)]['split']('\x20')['length']>0x1)_0x1f99d0[_0x49ad97](_0x5ae447(0x155),qs[_0x5ae447(0x117)](_0x270b4f[_0x5ae447(0x1bb)]),null);else{const _0x4f7162='%'+_0x270b4f[_0x5ae447(0x1bb)]+'%';_0x1f99d0[_0x49ad97](_0x5ae447(0xec),_0x4f7162,_0x4f7162,_0x4f7162);}}else _0x7f31b8=_[_0x5ae447(0x1e0)](_0x193a1f,[_0x5ae447(0x1dc),_0x5ae447(0x1cd)]),_0x270b4f[_0x5ae447(0x16b)]=_0x5ae447(0x1cd),_0x1ad97a=as[_0x5ae447(0xee)](_0x5e1a9b,_0x7f31b8['type'],_0x270b4f),_0x1f99d0[_0x49ad97](_0x1ad97a[_0x5ae447(0x1d1)],_0x1ad97a[_0x5ae447(0x1bb)][_0x5ae447(0x11a)],_0x1ad97a[_0x5ae447(0x1bb)][_0x5ae447(0x110)]);break;case'Tag':{const _0x20c8ee=_0x270b4f[_0x5ae447(0x1bb)][_0x5ae447(0x1e7)](',')['map'](function(_0x110ce1){return Number(_0x110ce1);});_0x20c8ee[_0x5ae447(0x1fd)](function(_0x1c3924){const _0x416a73=_0x5ae447;_0x5d282e['or'](_0x416a73(0x208),'%,'+_0x1c3924+',%');}),_0x544547=_[_0x5ae447(0xef)](_0x544547,_0x20c8ee);}break;case _0x5ae447(0x19e):_0x270b4f[_0x5ae447(0x1df)]==='$substring'?_0x1f99d0[_0x49ad97](_0x5ae447(0x1a3),'%'+_0x270b4f[_0x5ae447(0x1bb)]+'%',null):(_0x7f31b8=_[_0x5ae447(0x1e0)](_0x193a1f,['name',_0x5ae447(0x1a0)]),_0x270b4f['field']=_0x5ae447(0x1a0),_0x1ad97a=as[_0x5ae447(0xee)](_0x5e1a9b,_0x7f31b8[_0x5ae447(0x18b)],_0x270b4f),_0x1f99d0[_0x49ad97](_0x1ad97a[_0x5ae447(0x1d1)],_0x1ad97a['value'][_0x5ae447(0x11a)],_0x1ad97a['value'][_0x5ae447(0x110)]));break;case _0x5ae447(0x1f5):_0x1ad97a=as['buildExpression']('me',null,_0x270b4f),_0x1f99d0[_0x49ad97](_0x1ad97a[_0x5ae447(0x1d1)],_0x1ad97a[_0x5ae447(0x1bb)][_0x5ae447(0x11a)],_0x1ad97a['value'][_0x5ae447(0x110)]);break;}else _0x1ad97a=as[_0x5ae447(0xee)](_0x5e1a9b,_0x7f31b8['type'],_0x270b4f),_0x1f99d0[_0x49ad97](_0x1ad97a[_0x5ae447(0x1d1)],_0x1ad97a[_0x5ae447(0x1bb)][_0x5ae447(0x11a)],_0x1ad97a[_0x5ae447(0x1bb)][_0x5ae447(0x110)]);}}else{const _0x1830e6=_(_0x5b6a51[_0x5ae447(0x108)])[_0x5ae447(0x1b4)]()['map'](function(_0x3be67f){const _0x2924cc=_0x5ae447;return _[_0x2924cc(0x14a)](_0x193a1f,[_0x2924cc(0x1dc),_0x3be67f])?_0x3be67f:undefined;})[_0x5ae447(0x125)]()[_0x5ae447(0x1bb)]();!_['isEmpty'](_0x1830e6)&&_0x1830e6[_0x5ae447(0x1fd)](function(_0x14f952){const _0x1e8375=_0x5ae447;if(_0x14f952===_0x1e8375(0x154))_0x50efe0[_0x1e8375(0x13a)](_0x1e8375(0x15b),[][_0x1e8375(0x1e9)](_0x5b6a51[_0x1e8375(0x108)][_0x14f952]));else{if(_0x14f952===_0x1e8375(0x136)){const _0x40178c=JSON[_0x1e8375(0x12d)](_0x5b6a51[_0x1e8375(0x108)][_0x14f952])[_0x1e8375(0x156)],_0x3f2e25=JSON[_0x1e8375(0x12d)](_0x5b6a51[_0x1e8375(0x108)][_0x14f952])[_0x1e8375(0x1a6)];_0x50efe0[_0x1e8375(0x13a)](_0x1e8375(0x119),_0x40178c,_0x3f2e25);}else _0x5b6a51[_0x1e8375(0x108)][_0x14f952]===_0x1e8375(0x1e3)?_0x50efe0[_0x1e8375(0x13a)]('i.'+_0x14f952+'\x20IS\x20NULL'):_0x50efe0[_0x1e8375(0x13a)]('i.'+_0x14f952+_0x1e8375(0x153),_0x5b6a51[_0x1e8375(0x108)][_0x14f952]);}});_0x5b6a51['query'][_0x5ae447(0x1f4)]&&(_0x5b6a51[_0x5ae447(0x108)]['read']==0x1?_0x50efe0[_0x5ae447(0x130)](_0x5ae447(0x180)):_0x50efe0[_0x5ae447(0x130)]('`unreadMessages`\x20>\x200'));_0x5b6a51[_0x5ae447(0x108)][_0x5ae447(0x1a7)]&&(_0x544547=_[_0x5ae447(0xf2)](_0x5b6a51[_0x5ae447(0x108)]['tag'])?_0x5b6a51[_0x5ae447(0x108)][_0x5ae447(0x1a7)]:new Array(_0x5b6a51['query'][_0x5ae447(0x1a7)]),_0x544547[_0x5ae447(0x1fd)](function(_0x444a08){const _0x35a2a9=_0x5ae447;_0x5d282e['or'](_0x35a2a9(0x208),'%,'+_0x444a08+',%');}));if(_0x5b6a51[_0x5ae447(0x108)][_0x5ae447(0x116)]){const _0x2c37d5=_0x5b6a51[_0x5ae447(0x108)][_0x5ae447(0x116)][_0x5ae447(0x170)]('\x5c','\x5c\x5c')[_0x5ae447(0x170)](/'/g,'\x27\x27');qs[_0x5ae447(0x15c)](_0x2c37d5)?_0x1f99d0['or'](_0x5ae447(0x168),_0x2c37d5+'%'):_0x1f99d0['or']('MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x5ae447(0x117)](_0x2c37d5))['or'](_0x5ae447(0x1da),_0x2c37d5+'%');}}_0x50efe0[_0x5ae447(0x13a)](_0x1f99d0),_0x50efe0[_0x5ae447(0x1b8)](_0x5ae447(0x12b));let _0x2d828f={'type':QueryTypes[_0x5ae447(0x1f6)],'raw':!![]};const _0x5637d7=_0x50efe0['clone']();_0x5637d7[_0x5ae447(0x16b)](_0x5ae447(0x12b)),_0x5637d7[_0x5ae447(0x16b)](_0x5ae447(0x10b),_0x5ae447(0x194)),_0x25f681['order']&&_0x25f681[_0x5ae447(0x1c5)][_0x5ae447(0x1fd)](function(_0x45b6fa){const _0x300991=_0x5ae447,_0x35122c=_0x45b6fa[0x0]===_0x300991(0x1f3)?_0x45b6fa[0x0]:'i.'+_0x45b6fa[0x0];_0x50efe0[_0x300991(0x1c5)](_0x35122c,_0x45b6fa[0x1]===_0x300991(0x157)?![]:!![]);}),!_[_0x5ae447(0x144)](_0x544547)&&(_0x50efe0['having'](_0x5d282e),_0x5637d7['where'](_0x5ae447(0x10c),_0x544547)),Promise[_0x5ae447(0x1fa)]()['then'](function(){const _0x1474bc=_0x5ae447;if(!_0x470e08){if(_0x5b6a51[_0x1474bc(0x108)]['ChatWebsiteId']||_0x5b6a51[_0x1474bc(0x108)][_0x1474bc(0x1f0)])return;_0x5637d7['where'](_0x1474bc(0x11f)),_0x50efe0[_0x1474bc(0x13a)](_0x1474bc(0x11f));return;}return _0x5b6a51[_0x1474bc(0x1ef)][_0x1474bc(0xfd)]({'attributes':['id'],'raw':!![]})[_0x1474bc(0xf6)](function(_0x36288b){const _0x4c9c25=_0x1474bc;_[_0x4c9c25(0x144)](_0x36288b)?(_0x5637d7[_0x4c9c25(0x13a)](_0x4c9c25(0x175)),_0x50efe0['where']('i.ChatWebsiteId\x20IS\x20NULL')):(_0x5637d7['where']('i.ChatWebsiteId\x20IN\x20?',_[_0x4c9c25(0x18a)](_0x36288b,'id')),_0x50efe0[_0x4c9c25(0x13a)](_0x4c9c25(0x15b),_['map'](_0x36288b,'id')));});})[_0x5ae447(0xf6)](function(){const _0x35d81e=_0x5ae447;db[_0x35d81e(0x1bc)][_0x35d81e(0x108)](_0x5637d7[_0x35d81e(0x120)](),_0x2d828f)[_0x35d81e(0xf6)](function(_0x133022){const _0x5a4a4e=_0x35d81e;_0x5864af[_0x5a4a4e(0x17f)]=_0x133022['length'];if(_0x5864af['count']===0x0)return[];return db[_0x5a4a4e(0x1bc)][_0x5a4a4e(0x108)](_0x4a0438[_0x5a4a4e(0x120)](),_0x2d828f)[_0x5a4a4e(0xf6)](function(_0x3093ab){const _0x357155=_0x5a4a4e;_0x2596f2=_[_0x357155(0x1f7)](_0x3093ab,'id'),_0x2d828f=_[_0x357155(0x19a)](_0x2d828f,{'model':db[_0x357155(0x197)],'mapToModel':!![],'raw':!![],'nest':!![]});_0x5b6a51[_0x357155(0x108)]['fields']?_0x25f681[_0x357155(0x1d3)][_0x357155(0x1fd)](function(_0x14c10f){_0x50efe0['field']('i.'+_0x14c10f);}):(_0x50efe0[_0x357155(0x16b)](_0x357155(0x10b),_0x357155(0x194)),_0x50efe0[_0x357155(0x16b)](_0x357155(0x102),'Account.key'),_0x50efe0['field'](_0x357155(0xeb),'Account.mandatoryDisposition'),_0x50efe0[_0x357155(0x16b)](_0x357155(0x1f8),'contactName'),_0x50efe0[_0x357155(0x16b)](_0x357155(0x1dd)),_0x50efe0[_0x357155(0x16b)](_0x357155(0xf7),_0x357155(0x1ca)),_0x50efe0['field'](_0x357155(0x191),'Contact.lastName'),_0x50efe0[_0x357155(0x16b)]('c.email',_0x357155(0x145)),_0x50efe0[_0x357155(0x16b)](_0x357155(0x10f),'Contact.phone'),_0x50efe0[_0x357155(0x16b)]('c.mobile',_0x357155(0xf1)),_0x50efe0['field']('c.fax',_0x357155(0x196)),_0x50efe0[_0x357155(0x16b)]('o.fullname',_0x357155(0x163)),_0x50efe0['field'](_0x357155(0xfe),_0x357155(0x1c1)),_0x50efe0['field'](_0x357155(0x13c),_0x357155(0x1b0)));if(_0x25f681[_0x357155(0x1c0)])_0x50efe0[_0x357155(0x1c0)](_0x25f681[_0x357155(0x1c0)]);if(_0x25f681[_0x357155(0x1b7)])_0x50efe0[_0x357155(0x1b7)](_0x25f681[_0x357155(0x1b7)]);return db[_0x357155(0x1bc)][_0x357155(0x108)](_0x50efe0[_0x357155(0x120)](),_0x2d828f);})[_0x5a4a4e(0xf6)](function(_0x12fc74){const _0x31615b=_0x5a4a4e;return _0x39aee6[_0x31615b(0x13a)]('ui.ChatInteractionId\x20IN\x20?',_[_0x31615b(0x18a)](_0x12fc74,'id')),db[_0x31615b(0x1bc)][_0x31615b(0x108)](_0x39aee6['toString'](),_0x2d828f)['then'](function(_0x42dac8){const _0x4f5351=_0x31615b,_0x10d576=_[_0x4f5351(0x111)](_0x42dac8,_0x4f5351(0x1f2)),_0x3d2f69=[];return _0x12fc74['forEach'](function(_0x37e8b4){const _0xa601e7=_0x4f5351;_0x3d2f69[_0xa601e7(0x17e)](updateChatInteraction(_0x37e8b4,_0x2596f2,_0x10d576));}),Promise[_0x4f5351(0x1e4)](_0x3d2f69);});});})[_0x35d81e(0xf6)](function(_0x526328){const _0x238fd5=_0x35d81e;return _0x5864af[_0x238fd5(0x19c)]=_0x526328,_0x5864af;})[_0x35d81e(0xf6)](respondWithFilteredResult(_0x49dc03,_0x25f681));})[_0x5ae447(0x16a)](handleError(_0x49dc03,null));},exports[a80_0x4a36e5(0x14f)]=function(_0x43a74b,_0x446323){const _0x55ef46=a80_0x4a36e5;let _0x4cee0c={'raw':![],'where':{'id':_0x43a74b[_0x55ef46(0x14b)]['id']}};const _0x54d1e7={};return _0x54d1e7[_0x55ef46(0x14c)]=_[_0x55ef46(0x1b4)](db[_0x55ef46(0x197)][_0x55ef46(0x161)]),_0x54d1e7[_0x55ef46(0x108)]=_[_0x55ef46(0x1b4)](_0x43a74b['query']),_0x54d1e7[_0x55ef46(0x138)]=_['intersection'](_0x54d1e7[_0x55ef46(0x14c)],_0x54d1e7[_0x55ef46(0x108)]),_0x4cee0c[_0x55ef46(0x1d3)]=_[_0x55ef46(0x101)](_0x54d1e7[_0x55ef46(0x14c)],qs[_0x55ef46(0x1ed)](_0x43a74b[_0x55ef46(0x108)][_0x55ef46(0x1ed)])),_0x4cee0c[_0x55ef46(0x1d3)]=_0x4cee0c['attributes']['length']?_0x4cee0c['attributes']:_0x54d1e7[_0x55ef46(0x14c)],_0x43a74b['query'][_0x55ef46(0x1b6)]&&(_0x4cee0c[_0x55ef46(0x187)]=[{'all':!![]}]),_0x4cee0c=_['merge']({},_0x4cee0c,_0x43a74b[_0x55ef46(0x1ce)]),db[_0x55ef46(0x197)][_0x55ef46(0x1b3)](_0x4cee0c)[_0x55ef46(0xf6)](handleEntityNotFound(_0x446323,null))[_0x55ef46(0xf6)](respondWithResult(_0x446323,null))[_0x55ef46(0x16a)](handleError(_0x446323,null));},exports['create']=function(_0x4f13c7,_0x2bd105){const _0x30b04e=a80_0x4a36e5;return db[_0x30b04e(0x197)][_0x30b04e(0x137)](_0x4f13c7[_0x30b04e(0x1f5)],{})['then'](respondWithResult(_0x2bd105,0xc9))[_0x30b04e(0x16a)](handleError(_0x2bd105,null));},exports[a80_0x4a36e5(0xf9)]=function(_0x194868,_0xc54335){const _0x4d6a8c=a80_0x4a36e5;return _0x194868[_0x4d6a8c(0x1f5)]['id']&&delete _0x194868['body']['id'],db[_0x4d6a8c(0x197)][_0x4d6a8c(0x1b3)]({'where':{'id':_0x194868[_0x4d6a8c(0x14b)]['id']}})[_0x4d6a8c(0xf6)](handleEntityNotFound(_0xc54335,null))[_0x4d6a8c(0xf6)](saveUpdates(_0x194868[_0x4d6a8c(0x1f5)],null))[_0x4d6a8c(0xf6)](respondWithResult(_0xc54335,null))[_0x4d6a8c(0x16a)](handleError(_0xc54335,null));},exports[a80_0x4a36e5(0x15d)]=function(_0x35ef00,_0x6b1a9f){const _0x242663=a80_0x4a36e5;return db[_0x242663(0x197)][_0x242663(0x1b3)]({'where':{'id':_0x35ef00[_0x242663(0x14b)]['id']}})[_0x242663(0xf6)](handleEntityNotFound(_0x6b1a9f,null))['then'](removeEntity(_0x6b1a9f,null))['catch'](handleError(_0x6b1a9f,null));},exports[a80_0x4a36e5(0x177)]=function(_0x414882,_0x1ed47b){const _0x4db8df=a80_0x4a36e5;return db[_0x4db8df(0x197)][_0x4db8df(0x177)]()[_0x4db8df(0xf6)](respondWithResult(_0x1ed47b,null))['catch'](handleError(_0x1ed47b,null));},exports[a80_0x4a36e5(0x203)]=function(_0x1ed4b0,_0x57f3b7){const _0x143072=a80_0x4a36e5,_0xabb7b9=_0x1ed4b0[_0x143072(0x14b)]['id'];let _0x1d6f1c,_0x229d93,_0x4343b9;return db[_0x143072(0x197)]['findOne']({'where':{'id':_0xabb7b9}})[_0x143072(0xf6)](function(_0x2d4147){const _0x410713=_0x143072;return _0x1d6f1c=_0x2d4147,db['ChatWebsite'][_0x410713(0x1b3)]({'where':{'id':_0x2d4147['ChatWebsiteId']},'attributes':['id',_0x410713(0x124),_0x410713(0x188)],'raw':!![]});})[_0x143072(0xf6)](function(_0x1244c5){const _0x1a8cd9=_0x143072;if(_0x1244c5&&_0x1244c5[_0x1a8cd9(0x124)]&&_0x1244c5['vidaooEscalation']){_0x229d93=_0x1244c5;const _0x4ced43={'rejectUnauthorized':![],'method':_0x1a8cd9(0x200),'uri':'https://api-vidaoo.xcally.com/api/v1/sessions','headers':{'X-APIKEY':_0x1244c5['vidaooApiKey']},'body':{'name':_0x1a8cd9(0x139)+_0xabb7b9},'redirect':_0x1a8cd9(0x201),'json':!![]};return rp(_0x4ced43);}else throw new ValidationError(_0x1a8cd9(0x122));})[_0x143072(0xf6)](function(_0x5577ea){const _0x27d141=_0x143072;_0x4343b9=_0x5577ea;if(_0x4343b9['id']){const _0x4ca2b8={'body':_0x4343b9[_0x27d141(0x186)],'ChatWebsiteId':_0x229d93['id'],'ChatInteractionId':_0x1d6f1c['id'],'direction':_0x27d141(0x1a8),'UserId':_0x1ed4b0[_0x27d141(0x1ef)]['id']};return db[_0x27d141(0x193)]['create'](_0x4ca2b8,{});}else throw new ValidationError('Unable\x20to\x20create\x20Vidaoo\x20session');})[_0x143072(0xf6)](function(){return _0x1d6f1c['update']({'vidaooSessionId':_0x4343b9['id']});})[_0x143072(0xf6)](respondWithResult(_0x57f3b7,null))['catch'](handleError(_0x57f3b7,null));},exports['customUpdate']=function(_0x22aff0,_0x3c6dd6){const _0x1e28c5=a80_0x4a36e5;return _0x22aff0[_0x1e28c5(0x1f5)]['id']&&delete _0x22aff0[_0x1e28c5(0x1f5)]['id'],db[_0x1e28c5(0x197)]['findOne']({'where':{'id':_0x22aff0[_0x1e28c5(0x14b)]['id']}})[_0x1e28c5(0xf6)](handleEntityNotFound(_0x3c6dd6,null))['then'](saveUpdates(_0x22aff0[_0x1e28c5(0x1f5)],null))[_0x1e28c5(0xf6)](respondWithResult(_0x3c6dd6,null))[_0x1e28c5(0x16a)](handleError(_0x3c6dd6,null));},exports[a80_0x4a36e5(0x16d)]=function(_0x1b198d,_0x134a88){const _0x4cc458=a80_0x4a36e5;return _0x1b198d[_0x4cc458(0x1f5)]['id']&&delete _0x1b198d[_0x4cc458(0x1f5)]['id'],db[_0x4cc458(0x197)][_0x4cc458(0x1b3)]({'where':{'id':_0x1b198d[_0x4cc458(0x14b)]['id']}})[_0x4cc458(0xf6)](function(_0x40738a){const _0x568585=_0x4cc458;if(!_0x40738a)logger[_0x568585(0x11e)](_0x568585(0x1c9),'abandon',0x194,_0x568585(0x1d2)),_0x134a88['sendStatus'](0x194);else{if(_0x40738a['UserId'])throw new ValidationError(_0x568585(0x1d5));}return _0x40738a;})[_0x4cc458(0xf6)](function(_0x3648f1){const _0xc7c555=_0x4cc458;if(_0x3648f1)return _0x3648f1['update']({'closed':_0x1b198d[_0xc7c555(0x1f5)][_0xc7c555(0x14e)],'disposition':_0x1b198d[_0xc7c555(0x1f5)][_0xc7c555(0x148)]})['then'](function(_0x256b50){return _0x256b50;});})[_0x4cc458(0xf6)](function(){const _0x34689b=_0x4cc458;return respondWithRpcPromise(_0x34689b(0x109),_0x34689b(0x16d),_0x1b198d[_0x34689b(0x1f5)],client9004);})['then'](respondWithResult(_0x134a88,null))['catch'](handleError(_0x134a88,null));},exports[a80_0x4a36e5(0x1c3)]=function(_0xa47064,_0x10a87b){const _0x46139a=a80_0x4a36e5;return _0xa47064[_0x46139a(0x1f5)]['name']=_0xa47064[_0x46139a(0x149)]['originalname'],_0xa47064[_0x46139a(0x1f5)][_0x46139a(0x10d)]=_0xa47064[_0x46139a(0x149)]['filename'],_0xa47064['body'][_0x46139a(0x18b)]=_0xa47064['file'][_0x46139a(0x195)],db[_0x46139a(0x12c)][_0x46139a(0x137)](_0xa47064[_0x46139a(0x1f5)])['then'](respondWithResult(_0x10a87b,0xc9))[_0x46139a(0x16a)](handleError(_0x10a87b,null));},exports['attachmentDownload']=function(_0xa63b6f,_0x29a9be){const _0x5bfadb=a80_0x4a36e5;return db[_0x5bfadb(0x197)][_0x5bfadb(0x1b3)]({'where':{'id':_0xa63b6f['params']['id']},'raw':!![]})[_0x5bfadb(0xf6)](handleEntityNotFound(_0x29a9be,null))[_0x5bfadb(0xf6)](function(_0x3cb102){const _0x5f061b=_0x5bfadb;if(_0x3cb102){if(_0x3cb102[_0x5f061b(0x14e)])return _0x29a9be[_0x5f061b(0x10e)](0x193)['json']({'status':0x193,'message':_0x5f061b(0x206)});return db[_0x5f061b(0x12c)][_0x5f061b(0x1b3)]({'where':{'id':_0xa63b6f[_0x5f061b(0x108)][_0x5f061b(0x126)]},'raw':!![]})['then'](handleEntityNotFound(_0x29a9be,null));}})['then'](function(_0x2e70f6){const _0x5a7acc=_0x5bfadb;if(_0x2e70f6)return _0x29a9be[_0x5a7acc(0x171)](path[_0x5a7acc(0x121)](config[_0x5a7acc(0x1d9)],_0x5a7acc(0x18c),_0x2e70f6[_0x5a7acc(0x10d)]));})['catch'](handleError(_0x29a9be,null));},exports[a80_0x4a36e5(0x105)]=function(_0x34caef,_0x42f520){const _0x430a68=a80_0x4a36e5;let _0x497d20=null,_0x32a8bf=null,_0x403ad7=null;return _0x34caef['body']['id']&&delete _0x34caef[_0x430a68(0x1f5)]['id'],_0x34caef[_0x430a68(0x1f5)][_0x430a68(0x169)]&&(_0x403ad7=path[_0x430a68(0x121)](config[_0x430a68(0x1d9)],'server/files/chat/upload/',util['format']('transcript-%s.txt',Date['now']())),_0x34caef['body'][_0x430a68(0x1b9)]=_0x403ad7),db['ChatInteraction']['findOne']({'where':{'id':_0x34caef[_0x430a68(0x14b)]['id']},'include':[{'model':db[_0x430a68(0x193)],'as':_0x430a68(0x19f),'include':[{'model':db[_0x430a68(0x19e)],'as':_0x430a68(0x19e)}]}]})[_0x430a68(0xf6)](handleEntityNotFound(_0x42f520,null))['then'](saveUpdates(_0x34caef[_0x430a68(0x1f5)],null))[_0x430a68(0xf6)](function(_0x33fbc4){const _0x57d666=_0x430a68;if(_0x33fbc4)return _0x497d20=_0x33fbc4,db[_0x57d666(0x11c)][_0x57d666(0x1b3)]({'where':{'id':_0x497d20[_0x57d666(0x154)]}});})[_0x430a68(0xf6)](function(_0x1b9093){if(_0x1b9093)return _0x32a8bf=_0x1b9093,db['CmContact']['findOne']({'where':{'id':_0x497d20['ContactId']}});})[_0x430a68(0xf6)](function(_0x2deb1c){const _0x36eaed=_0x430a68;if(_0x2deb1c){if(_0x403ad7){let _0x3f7111=null;for(let _0x31efd2=0x1;_0x31efd2<_0x497d20[_0x36eaed(0x19f)]['length'];++_0x31efd2){_0x3f7111=_0x497d20[_0x36eaed(0x19f)][_0x31efd2];let _0x163960=_0x3f7111['UserId']?util['format'](_0x36eaed(0x15e),_0x32a8bf[_0x36eaed(0x114)],_0x3f7111[_0x36eaed(0x1a0)]):_0x36eaed(0x16f);const _0x14d537=_0x34caef[_0x36eaed(0x1f5)]['customer']||util['format'](_0x36eaed(0x15e),_0x36eaed(0x142),_0x3f7111[_0x36eaed(0x1cd)]);switch(_0x32a8bf['agentIdentifier']){case _0x36eaed(0x17a):_0x163960=_0x3f7111['UserId']?util[_0x36eaed(0x1d4)](_0x36eaed(0x15e),_0x32a8bf[_0x36eaed(0x114)],_0x3f7111[_0x36eaed(0x1a0)]):_0x36eaed(0x16f);break;case _0x36eaed(0x1ba):_0x163960=_0x3f7111['UserId']?_0x3f7111[_0x36eaed(0x19e)][_0x36eaed(0x14d)]||_0x3f7111['User'][_0x36eaed(0x189)]:_0x36eaed(0x16f);break;case'agent_fullname':_0x163960=_0x3f7111[_0x36eaed(0x1a0)]?_0x3f7111[_0x36eaed(0x19e)][_0x36eaed(0x189)]:'System';break;default:_0x163960=_0x3f7111['UserId']?util['format']('%s%d',_0x32a8bf['agentAlias'],_0x3f7111[_0x36eaed(0x1a0)]):_0x36eaed(0x16f);}const _0x33d167=util[_0x36eaed(0x1d4)](_0x36eaed(0x1be),moment(_0x3f7111[_0x36eaed(0x136)])[_0x36eaed(0x1d4)]('MM/DD/YYYY\x20HH:mm:ss'),_0x3f7111[_0x36eaed(0x11d)]==='in'?_0x14d537:_0x163960,_0x3f7111['body']);!_0x3f7111[_0x36eaed(0x1ac)]&&fs[_0x36eaed(0x164)](_0x403ad7,_0x33d167);}return db['MailAccount']['findOne']({'where':{'service':!![]},'include':[{'model':db[_0x36eaed(0x16e)],'as':_0x36eaed(0x190),'raw':!![]}]});}}})['then'](function(_0x1d8678){const _0x3b5770=_0x430a68;if(_0x1d8678&&_0x1d8678['Smtp']&&_0x34caef[_0x3b5770(0x1f5)]){const _0x446d55={'tls':{'rejectUnauthorized':![]}};return _0x1d8678['Smtp'][_0x3b5770(0x1a5)]?_0x446d55[_0x3b5770(0x1a5)]=_0x1d8678['Smtp'][_0x3b5770(0x1a5)]:(_0x446d55[_0x3b5770(0x1de)]=_0x1d8678[_0x3b5770(0x190)][_0x3b5770(0x1de)],_0x446d55['port']=_0x1d8678[_0x3b5770(0x190)][_0x3b5770(0xf5)],_0x446d55[_0x3b5770(0xfa)]=_0x1d8678['Smtp']['secure']),_0x1d8678[_0x3b5770(0x190)][_0x3b5770(0xea)]&&(_0x446d55['auth']={'user':_0x1d8678[_0x3b5770(0x190)][_0x3b5770(0x1ef)],'pass':_0x1d8678[_0x3b5770(0x190)]['pass']}),respondWithRpcPromise(_0x3b5770(0x129),_0x3b5770(0x181),{'account':_0x446d55,'message':{'from':util[_0x3b5770(0x1d4)](_0x3b5770(0x158),_0x1d8678[_0x3b5770(0x1dc)],_0x1d8678[_0x3b5770(0x1d7)]||_0x1d8678['Smtp'][_0x3b5770(0x1ef)]),'to':_0x34caef[_0x3b5770(0x1f5)][_0x3b5770(0x169)],'subject':'Mail\x20Transcript','text':util[_0x3b5770(0x1d4)]('Hi\x20%s,\x20attached\x20you\x20can\x20find\x20your\x20transcript\x20file.\x20\x0a\x0aRegards.\x20\x0a\x0a',_0x34caef[_0x3b5770(0x1f5)][_0x3b5770(0x169)]),'attachments':[{'path':_0x403ad7}]}})[_0x3b5770(0xf6)](function(){return _0x497d20;})[_0x3b5770(0x16a)](function(_0x1cc7d4){const _0x526707=_0x3b5770;console[_0x526707(0x11e)](_0x1cc7d4);});}else return _0x497d20;})['then'](respondWithStatusCode(_0x42f520,0xc8))[_0x430a68(0x16a)](handleError(_0x42f520,null));},exports['addMessage']=function(_0x3b8815,_0x12d6d0){const _0xe7350a=a80_0x4a36e5;return db[_0xe7350a(0x193)][_0xe7350a(0x1b3)]({'where':{'id':_0x3b8815[_0xe7350a(0x14b)]['id']}})[_0xe7350a(0xf6)](function(_0x8d1a6){const _0x484d04=_0xe7350a;if(_0x8d1a6)return _0x8d1a6['addMessage'](_0x3b8815['body']['ids'],{'through':_['omit'](_0x3b8815[_0x484d04(0x1f5)],[_0x484d04(0x185),'id'])});})['then'](respondWithResult(_0x12d6d0,null))['catch'](handleError(_0x12d6d0,null));},exports[a80_0x4a36e5(0x123)]=function(_0x407557,_0x167021){const _0x1b6eaf=a80_0x4a36e5;let _0x68d0ac={'raw':![],'where':{}};const _0x2af6b1={},_0x34c495={'count':0x0,'rows':[]};return db[_0x1b6eaf(0x197)][_0x1b6eaf(0x1b3)]({'where':{'id':_0x407557[_0x1b6eaf(0x14b)]['id']}})['then'](handleEntityNotFound(_0x167021,null))[_0x1b6eaf(0xf6)](function(_0x93c097){const _0x1a57cf=_0x1b6eaf;if(_0x93c097){_0x2af6b1[_0x1a57cf(0x14c)]=_[_0x1a57cf(0x1b4)](db['ChatMessage'][_0x1a57cf(0x161)]),_0x2af6b1[_0x1a57cf(0x108)]=_['keys'](_0x407557[_0x1a57cf(0x108)]),_0x2af6b1['filters']=_[_0x1a57cf(0x101)](_0x2af6b1[_0x1a57cf(0x14c)],_0x2af6b1[_0x1a57cf(0x108)]),_0x68d0ac['attributes']=_['intersection'](_0x2af6b1[_0x1a57cf(0x14c)],qs[_0x1a57cf(0x1ed)](_0x407557[_0x1a57cf(0x108)][_0x1a57cf(0x1ed)])),_0x68d0ac[_0x1a57cf(0x1d3)]=_0x68d0ac[_0x1a57cf(0x1d3)][_0x1a57cf(0x1aa)]?_0x68d0ac[_0x1a57cf(0x1d3)]:_0x2af6b1['model'];typeof _0x407557['query']['nolimit']===_0x1a57cf(0x1fb)&&(_0x68d0ac[_0x1a57cf(0x1c0)]=qs['limit'](_0x407557[_0x1a57cf(0x108)]['limit']),_0x68d0ac[_0x1a57cf(0x1b7)]=qs[_0x1a57cf(0x1b7)](_0x407557['query'][_0x1a57cf(0x1b7)]));_0x68d0ac[_0x1a57cf(0x1c5)]=qs['sort'](_0x407557[_0x1a57cf(0x108)][_0x1a57cf(0x1e5)]),_0x68d0ac[_0x1a57cf(0x13a)]=qs[_0x1a57cf(0x138)](_[_0x1a57cf(0x204)](_0x407557[_0x1a57cf(0x108)],_0x2af6b1[_0x1a57cf(0x138)])),_0x68d0ac[_0x1a57cf(0x13a)][_0x1a57cf(0x1f2)]=_0x93c097['id'];_0x407557[_0x1a57cf(0x108)][_0x1a57cf(0x116)]&&(_0x68d0ac[_0x1a57cf(0x13a)]=_[_0x1a57cf(0x19a)](_0x68d0ac[_0x1a57cf(0x13a)],{[Op['or']]:_[_0x1a57cf(0x18a)](_0x68d0ac[_0x1a57cf(0x1d3)],function(_0x3e1957){const _0x152442=_0x1a57cf,_0x41ae27={};return _0x41ae27[_0x3e1957]={[Op['like']]:'%'+_0x407557['query'][_0x152442(0x116)]+'%'},_0x41ae27;})}));if(_0x407557['query'][_0x1a57cf(0x156)]){const _0x2d3639=_0x407557['query'][_0x1a57cf(0x156)][_0x1a57cf(0x1e7)](','),_0x2f4c20={};_0x2f4c20[_0x2d3639[0x0]]={[Op[_0x1a57cf(0x1a2)]]:moment(_0x2d3639[0x1])['format'](_0x1a57cf(0x207))},_0x68d0ac['where']=_[_0x1a57cf(0x19a)](_0x68d0ac[_0x1a57cf(0x13a)],_0x2f4c20);}return _0x68d0ac=_[_0x1a57cf(0x19a)]({},_0x68d0ac,_0x407557[_0x1a57cf(0x1ce)]),db['ChatMessage'][_0x1a57cf(0x17f)]({'where':_0x68d0ac[_0x1a57cf(0x13a)]})['then'](function(_0x51c484){const _0x18d32a=_0x1a57cf;return _0x34c495[_0x18d32a(0x17f)]=_0x51c484,_0x407557[_0x18d32a(0x108)][_0x18d32a(0x1b6)]&&(_0x68d0ac[_0x18d32a(0x187)]=[{'all':!![]}]),db[_0x18d32a(0x193)]['findAll'](_0x68d0ac);})[_0x1a57cf(0xf6)](function(_0x4750a5){const _0x555fe0=_0x1a57cf;return _0x34c495[_0x555fe0(0x19c)]=_0x4750a5,_0x34c495;});}})['then'](respondWithFilteredResult(_0x167021,_0x68d0ac))['catch'](handleError(_0x167021,null));},exports['getMyMessages']=function(_0x2e58e0,_0x1f5c2a){const _0x42ca4a=a80_0x4a36e5;let _0x2d0263={'where':{}};const _0xee8aaa={},_0x35b10c={'count':0x0,'rows':[]};return db[_0x42ca4a(0x197)][_0x42ca4a(0x1b3)]({'where':{'id':_0x2e58e0[_0x42ca4a(0x14b)]['id']}})[_0x42ca4a(0xf6)](handleEntityNotFound(_0x1f5c2a,null))[_0x42ca4a(0xf6)](function(_0x1e08dc){const _0x323dac=_0x42ca4a;if(_0x1e08dc)return _0xee8aaa[_0x323dac(0x14c)]=_['keys'](db[_0x323dac(0x193)][_0x323dac(0x161)]),_0xee8aaa[_0x323dac(0x108)]=_[_0x323dac(0x1b4)](_0x2e58e0[_0x323dac(0x108)]),_0xee8aaa[_0x323dac(0x138)]=_[_0x323dac(0x101)](_0xee8aaa[_0x323dac(0x14c)],_0xee8aaa[_0x323dac(0x108)]),_0x2d0263['attributes']=_[_0x323dac(0x101)](_0xee8aaa[_0x323dac(0x14c)],qs[_0x323dac(0x1ed)](_0x2e58e0['query'][_0x323dac(0x1ed)])),_0x2d0263[_0x323dac(0x1d3)]=_0x2d0263['attributes'][_0x323dac(0x1aa)]?_0x2d0263[_0x323dac(0x1d3)]:_0xee8aaa['model'],typeof _0x2e58e0[_0x323dac(0x108)][_0x323dac(0x1c8)]===_0x323dac(0x1fb)&&(_0x2d0263[_0x323dac(0x1c0)]=qs[_0x323dac(0x1c0)](_0x2e58e0[_0x323dac(0x108)][_0x323dac(0x1c0)]),_0x2d0263[_0x323dac(0x1b7)]=qs[_0x323dac(0x1b7)](_0x2e58e0[_0x323dac(0x108)][_0x323dac(0x1b7)])),_0x2d0263[_0x323dac(0x1c5)]=qs[_0x323dac(0x1e5)](_0x2e58e0[_0x323dac(0x108)][_0x323dac(0x1e5)]),_0x2d0263[_0x323dac(0x13a)]=qs[_0x323dac(0x138)](_[_0x323dac(0x204)](_0x2e58e0['query'],_0xee8aaa[_0x323dac(0x138)])),_0x2d0263[_0x323dac(0x13a)][_0x323dac(0x1f2)]=_0x1e08dc['id'],_0x2e58e0[_0x323dac(0x108)][_0x323dac(0x116)]&&(_0x2d0263[_0x323dac(0x13a)]=_['merge'](_0x2d0263['where'],{[Op['or']]:_[_0x323dac(0x18a)](_0x2d0263[_0x323dac(0x1d3)],function(_0x6629d0){const _0x3c115a=_0x323dac,_0xf21c53={};return _0xf21c53[_0x6629d0]={[Op[_0x3c115a(0x133)]]:'%'+_0x2e58e0[_0x3c115a(0x108)]['filter']+'%'},_0xf21c53;})})),_0x2d0263[_0x323dac(0x13a)][_0x323dac(0x1ac)]=![],_0x2e58e0[_0x323dac(0x108)]['id']&&(_0x2d0263[_0x323dac(0x13a)]['id']={[Op['gt']]:_0x2e58e0[_0x323dac(0x108)]['id']}),_0x2d0263=_[_0x323dac(0x19a)]({},_0x2d0263,_0x2e58e0['options']),db['ChatMessage'][_0x323dac(0x17f)]({'where':_0x2d0263['where']})['then'](function(_0x5b33dc){const _0x594579=_0x323dac;return _0x35b10c['count']=_0x5b33dc,_0x2d0263[_0x594579(0x187)]=[],_0x2e58e0[_0x594579(0x108)]['includeAgent']&&_0x2d0263['include'][_0x594579(0x17e)]({'model':db['User'],'as':'User','attributes':['id',_0x594579(0x189),_0x594579(0x14d)]}),_0x2e58e0['query'][_0x594579(0x1b6)]&&(_0x2d0263[_0x594579(0x187)]=[{'all':!![]}]),db[_0x594579(0x193)]['findAll'](_0x2d0263);})['then'](function(_0x5f3490){const _0x37341=_0x323dac;return _0x35b10c[_0x37341(0x19c)]=_0x5f3490,_0x35b10c;});})[_0x42ca4a(0xf6)](respondWithFilteredResult(_0x1f5c2a,_0x2d0263))[_0x42ca4a(0x16a)](handleError(_0x1f5c2a,null));},exports[a80_0x4a36e5(0x202)]=function(_0x4c52a7,_0x1a28d2){const _0x133e0c=a80_0x4a36e5;return db[_0x133e0c(0x197)][_0x133e0c(0x1b3)]({'where':{'id':_0x4c52a7[_0x133e0c(0x14b)]['id']}})[_0x133e0c(0xf6)](function(_0x4bd912){const _0x51347d=_0x133e0c;if(_0x4bd912)return _0x4bd912[_0x51347d(0x13b)](_0x4c52a7[_0x51347d(0x1f5)][_0x51347d(0x185)],{'through':_[_0x51347d(0xed)](_0x4c52a7[_0x51347d(0x1f5)],[_0x51347d(0x185),'id'])})[_0x51347d(0xf6)](function(){const _0x532abf=_0x51347d;return db[_0x532abf(0x1c7)][_0x532abf(0x1cb)]({'attributes':['id','name','color'],'where':{'id':_0x4c52a7['body'][_0x532abf(0x185)]}});})[_0x51347d(0xf6)](function(_0x550704){const _0x471eb7=_0x51347d;return socket[_0x471eb7(0x16c)](_0x471eb7(0x1ff),{'id':Number(_0x4c52a7[_0x471eb7(0x14b)]['id']),'tags':_0x550704||[]}),{'id':Number(_0x4c52a7[_0x471eb7(0x14b)]['id']),'tags':_0x550704||[]};});})[_0x133e0c(0xf6)](respondWithResult(_0x1a28d2,null))[_0x133e0c(0x16a)](handleError(_0x1a28d2,null));},exports['removeTags']=function(_0x3ae02a,_0x32f1a4){const _0x2c12c3=a80_0x4a36e5;return db[_0x2c12c3(0x197)][_0x2c12c3(0x1b3)]({'where':{'id':_0x3ae02a['params']['id']}})['then'](handleEntityNotFound(_0x32f1a4,null))[_0x2c12c3(0xf6)](function(_0x3714a2){const _0x3a9476=_0x2c12c3;if(_0x3714a2)return _0x3714a2[_0x3a9476(0x167)](_0x3ae02a[_0x3a9476(0x108)]['ids']);})[_0x2c12c3(0xf6)](respondWithStatusCode(_0x32f1a4,null))[_0x2c12c3(0x16a)](handleError(_0x32f1a4,null));},exports[a80_0x4a36e5(0x171)]=function(_0xcc08da,_0x270fea){const _0x3180c0=a80_0x4a36e5,_0x3199a1=moment()[_0x3180c0(0x100)]()[_0x3180c0(0x120)](),_0xb472aa=path['join'](config[_0x3180c0(0x1d9)],_0x3180c0(0x205),_0x3180c0(0x106)),_0x280540=path[_0x3180c0(0x121)](config[_0x3180c0(0x1d9)],_0x3180c0(0x1d8),_0x3180c0(0x205),_0x3180c0(0x172)),_0x701334=path[_0x3180c0(0x121)](_0xb472aa,_0x3199a1),_0x5bda12=util[_0x3180c0(0x1d4)](_0x3180c0(0x1fe),_0xcc08da[_0x3180c0(0x14b)]['id'],_0x3199a1),_0x2a232d=path['join'](_0xb472aa,_0x5bda12),_0xf8a262=[];_0xf8a262[_0x3180c0(0x17e)]({'model':db[_0x3180c0(0x19e)],'as':'User','attributes':['id','fullname'],'raw':!![]}),_0xf8a262[_0x3180c0(0x17e)]({'model':db[_0x3180c0(0x113)],'as':_0x3180c0(0x174),'attributes':['id',_0x3180c0(0x1f9),_0x3180c0(0x17b)],'raw':!![]});_0xcc08da[_0x3180c0(0x108)][_0x3180c0(0x172)]&&_0xf8a262[_0x3180c0(0x17e)]({'model':db[_0x3180c0(0x12c)],'as':'Attachment','raw':!![]});const _0x3bcc63=[{'model':db[_0x3180c0(0x193)],'as':'Messages','attributes':['id',_0x3180c0(0x1f5),_0x3180c0(0x136),_0x3180c0(0x11d),'secret',_0x3180c0(0x1f4)],'include':_0xf8a262}];return _0x3bcc63['push']({'model':db['ChatWebsite'],'as':'Account','attributes':['id',_0x3180c0(0x1dc)]}),_0x3bcc63['push']({'model':db[_0x3180c0(0x19e)],'as':_0x3180c0(0x12f),'attributes':['id',_0x3180c0(0x189)]}),db['ChatInteraction'][_0x3180c0(0x1b3)]({'where':{'id':_0xcc08da[_0x3180c0(0x14b)]['id']},'include':_0x3bcc63})['then'](handleEntityNotFound(_0x270fea,null))[_0x3180c0(0xf6)](function(_0x52fc23){const _0x4d678a=_0x3180c0;if(_0x52fc23){const _0x39e503=_0x52fc23[_0x4d678a(0x135)]({'plain':!![]});fs[_0x4d678a(0x1af)](_0x701334);const _0x4da2d6={'format':'A4','border':_0x4d678a(0x182),'header':{'height':_0x4d678a(0x1c2),'contents':{'first':_0x4d678a(0x18f)}},'footer':{'height':_0x4d678a(0x17c),'contents':{'default':util[_0x4d678a(0x1d4)](_0x4d678a(0x104),util[_0x4d678a(0x1d4)](_0x4d678a(0x12e),_0x4d678a(0x1ea),_0x39e503['id']),moment()[_0x4d678a(0x1d4)]('YYYY-MM-DD')[_0x4d678a(0x120)]())}}},_0x2fb116={'channel':_0x4d678a(0x1ea),'account':_0x39e503[_0x4d678a(0x1e8)][_0x4d678a(0x1dc)],'agent':_0x39e503[_0x4d678a(0x12f)]?_0x39e503[_0x4d678a(0x12f)][_0x4d678a(0x189)]:_0x4d678a(0x1b5),'createdAt':moment(_0x39e503['createdAt'])['format']('YYYY-MM-DD\x20HH:mm:ss')[_0x4d678a(0x120)](),'closedAt':_0x39e503[_0x4d678a(0x14e)]?moment(_0x39e503[_0x4d678a(0x132)])[_0x4d678a(0x1d4)](_0x4d678a(0x207))[_0x4d678a(0x120)]():'','disposition':_0x39e503[_0x4d678a(0x148)],'chatInfo':{'browser':_0x39e503[_0x4d678a(0x1b1)],'os':_0x39e503[_0x4d678a(0x18e)],'referer':_0x39e503[_0x4d678a(0x118)],'customerIp':_0x39e503[_0x4d678a(0x1a9)],'customerPort':_0x39e503[_0x4d678a(0xf0)]?_0x39e503[_0x4d678a(0xf0)]:_0x4d678a(0x1b5)},'messages':_(_0x39e503[_0x4d678a(0x19f)])['tail']()[_0x4d678a(0x116)]({'secret':![]})['map'](function(_0x2a9687){const _0x5a238a=_0x4d678a;if(_0x2a9687[_0x5a238a(0x12c)]){const _0x4c47d8=path[_0x5a238a(0x121)](_0x280540,_0x2a9687[_0x5a238a(0x12c)][_0x5a238a(0x10d)]);fs['existsSync'](_0x4c47d8)&&fs['createReadStream'](_0x4c47d8)[_0x5a238a(0x146)](fs['createWriteStream'](path[_0x5a238a(0x121)](_0x701334,_0x2a9687[_0x5a238a(0x12c)][_0x5a238a(0x10d)])));}return{'date':moment(_0x2a9687[_0x5a238a(0x136)])[_0x5a238a(0x1d4)](_0x5a238a(0x207))[_0x5a238a(0x120)](),'sender':_0x2a9687[_0x5a238a(0x11d)]==='out'?_0x2a9687[_0x5a238a(0x19e)]?_0x2a9687['User'][_0x5a238a(0x189)]:_0x5a238a(0x16f):_0x2a9687[_0x5a238a(0x174)][_0x5a238a(0x1f9)]+(_0x2a9687['Contact'][_0x5a238a(0x17b)]?'\x20'+_0x2a9687['Contact'][_0x5a238a(0x17b)]:''),'body':_0x2a9687[_0x5a238a(0x12c)]?_0x2a9687[_0x5a238a(0x12c)][_0x5a238a(0x10d)]:_0x2a9687['body'],'direction':_0x2a9687['direction']===_0x5a238a(0x1a8)?'A':'C','secret':_0x2a9687[_0x5a238a(0x1ac)],'read':_0x2a9687[_0x5a238a(0x1f4)],'attachment':_0x2a9687['Attachment']};})[_0x4d678a(0x1bb)]()};return ejs[_0x4d678a(0x1db)](path[_0x4d678a(0x121)](config[_0x4d678a(0x1d9)],_0x4d678a(0x1d8),_0x4d678a(0x1ae),_0x4d678a(0x162)),{'interaction':_0x2fb116})['then'](function(_0x520d4b){return new Promise(function(_0x40ab6a,_0x3b9eda){const _0x2a6807=a80_0x3da5;pdf[_0x2a6807(0x137)](_0x520d4b,_0x4da2d6)[_0x2a6807(0x13e)](path[_0x2a6807(0x121)](_0x701334,_0x2a6807(0x1cc)+_0x39e503['id']+'-'+_0x3199a1+'.pdf'),function(_0x2a633d,_0x1ae47a){if(_0x2a633d)return _0x3b9eda(_0x2a633d);_0x40ab6a(_0x1ae47a);});});})[_0x4d678a(0xf6)](function(){const _0x5e17ea=_0x4d678a;return new Promise(function(_0x3dd86b,_0x17c104){zipdir(_0x701334,{'saveTo':_0x2a232d},function(_0x55a382,_0x5852ce){if(_0x55a382)return _0x17c104(_0x55a382);return _0x3dd86b(_0x5852ce);});})[_0x5e17ea(0xf6)](function(){return new Promise(function(_0x2cc728,_0x4bebf9){rimraf(_0x701334,function(_0x17f4ca){if(_0x17f4ca)_0x4bebf9(_0x17f4ca);return _0x2cc728();});});})[_0x5e17ea(0xf6)](function(){const _0x383d56=_0x5e17ea;return _0x270fea[_0x383d56(0x171)](_0x2a232d,_0x5bda12,function(_0x1dbb52){const _0x411b5c=_0x383d56;_0x1dbb52?console[_0x411b5c(0x1f1)]('err',_0x1dbb52):fs[_0x411b5c(0x11b)](_0x2a232d);});});});}else return _0x270fea[_0x4d678a(0x115)](0xc8);})[_0x3180c0(0x16a)](handleError(_0x270fea,null));}; \ No newline at end of file +const a80_0x2e6b=['having','ChatInteraction,\x20%s,\x20%s','Account.mandatoryDisposition','sequelize','appendFileSync','Users','get','field','user','Account.key','MailAccount','util','`\x20>\x200','Messages','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','path','squel','attachmentDownload','website_alias','operator','pass','c.email','.pdf','tmp','attachmentUpload','filter','osName','CmContact','me.ChatInteractionId\x20=\x20i.id','MotionCWB:','http','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','create','attributes','fields','info','renderFile','where','mailTranscript','destroy','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','getFullTextValue','t.id\x20IN\x20?','customer','all','clone','result','request\x20sent','error','Content-Range','update','../../mysqldb','firstName','Account','i.*','Unable\x20to\x20create\x20Vidaoo\x20session','files/attachments/','type','chat_websites','findOne','client','Attachment','Interaction\x20already\x20assigned','code','server','`unreadMessages`\x20>\x200','intersection','lastName','DESC','stringify','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','read','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','email','text','nolimit','chat_messages','compact','root','u.id\x20=\x20ui.UserId','../../rediscache','System','referer','createdAt','Contact.email','split','ContactId','index','search','YYYY-MM-DD\x20HH:mm:ss','ChatMessage','abandonInteraction,\x20%s,\x20%s,\x20%s','addMessage','Visitor','40px','c.mobile','out','request','follow','10px','ChatInteraction','createWriteStream','start','pipe','sort','includeAgent','status','push','end','users','model','order','tools_tags','https://api-vidaoo.xcally.com/api/v1/sessions','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','rimraf','Contact.mobile','journey','MailServerOut','GROUP_CONCAT(DISTINCT\x20t.id)','%s\x20#%d','ChatWebsite','describe','i.ChatWebsiteId\x20IS\x20NOT\x20NULL','format','key','agentAlias','SendMail','transcript-%d-%s.zip','includeAll','Owner','mimetype','body','Chat','groupBy','resolve','unlinkSync','CASE\x20WHEN\x20(c.firstName\x20IS\x20NOT\x20NULL\x20AND\x20c.firstName\x20<>\x20\x27\x27)\x20OR\x20(c.lastName\x20IS\x20NOT\x20NULL\x20AND\x20c.lastName\x20<>\x20\x27\x27)\x20THEN\x20CONCAT(IFNULL(c.firstName,\x20\x27\x27),\x20\x27\x20\x27,\x20IFNULL(c.lastName,\x20\x27\x27))\x20ELSE\x20\x27Unknown\x27\x20END','getMessages','$gte','stack','a.mandatoryDisposition','jayson/promise','UserId','undefined','from','$substring','like','existsSync','views','findAll','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\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','Smtp','Contact.lastName','ChatInteraction,\x20%s,\x20%s,\x20%s','originalname','ChatInteractionId','attachments','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','createReadStream','json','catch','offset','pick','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','%s%d','u.fullname','file','Contact','isEmpty','Mail\x20Transcript','api','direction','contactName','group','../../config/logger','limit','o.fullname','getChatWebsites','chat_interaction_has_tags','name','../../components/parsers/advancedSearch','MM/DD/YYYY\x20HH:mm:ss','left_join','../../components/parsers/qs','`unreadMessages`\x20=\x200','find','debug','then','count','i.id','vidaooApiKey','$lte','fieldName','POST','i.ChatWebsiteId\x20IS\x20NULL','ids','agentIdentifier','secure','removeTags','merge','buildExpression','map','filters','emit','replace','include','Tags','TagIds','lodash','closedAt','cm_contacts','keys','closed','transcript-%s.txt','download','customerIp','request-promise-native','log','mkdirSync','transcript-','c.firstName','value','abandon','Tag','disposition','ChatWebsiteId','options','omit','pathTranscript','color','moment','\x20=\x20?','Contact.firstName','rows','createVidaooSession','forEach','service','alias','set','union','agent_fullname','conditions','sendMail','ejs','files','../../config/environment','addTags','rawAttributes','tail','err','Owner.fullname','chatInteractionTags:save','o.internal','N.A.','parse','\x20IS\x20NULL','attachId','entity\x20not\x20found','join','c.lastName','./chatInteraction.socket','sendStatus','Unauthorized','a.key','query','keyBy','null','basename','[%s]\x20%s:\x20%s\x0a','Contact.phone','unreadMessages','now','length','select','secret','params','Owner.internal','User','toString','close','send','auth','some','chat_interactions','30px','a.id\x20=\x20i.ChatWebsiteId','i.id\x20LIKE\x20?','i.ChatWebsiteId\x20IN\x20?','gte','host','message','SELECT','AbandonInteraction','ui.ChatInteractionId\x20IN\x20?','tag','fullname'];(function(_0x2a822b,_0x5d514a){const _0x2e6ba8=function(_0x508863){while(--_0x508863){_0x2a822b['push'](_0x2a822b['shift']());}};_0x2e6ba8(++_0x5d514a);}(a80_0x2e6b,0x13c));const a80_0x5088=function(_0x2a822b,_0x5d514a){_0x2a822b=_0x2a822b-0x153;let _0x2e6ba8=a80_0x2e6b[_0x2a822b];return _0x2e6ba8;};const a80_0x1ef0c1=a80_0x5088;'use strict';const pdf=require('html-pdf'),rimraf=require(a80_0x1ef0c1(0x1b3)),zipdir=require('zip-dir'),rp=require(a80_0x1ef0c1(0x219)),moment=require(a80_0x1ef0c1(0x227)),util=require(a80_0x1ef0c1(0x274)),path=require(a80_0x1ef0c1(0x278)),ejs=require(a80_0x1ef0c1(0x234)),fs=require('fs'),_=require(a80_0x1ef0c1(0x211)),squel=require(a80_0x1ef0c1(0x279)),{getSocket}=require(a80_0x1ef0c1(0x190)),qs=require(a80_0x1ef0c1(0x1f8)),as=require(a80_0x1ef0c1(0x1f5)),logger=require(a80_0x1ef0c1(0x1ef))(a80_0x1ef0c1(0x1eb)),config=require(a80_0x1ef0c1(0x236)),{db}=require(a80_0x1ef0c1(0x173)),{Op,ValidationError,QueryTypes}=require(a80_0x1ef0c1(0x26c)),socket=getSocket();require(a80_0x1ef0c1(0x245))['register'](socket);const jayson=require(a80_0x1ef0c1(0x1ce)),client=jayson[a80_0x1ef0c1(0x17c)][a80_0x1ef0c1(0x15e)]({'port':0x232b}),client9004=jayson[a80_0x1ef0c1(0x17c)][a80_0x1ef0c1(0x15e)]({'port':0x232c});function respondWithRpcPromise(_0x493afd,_0x68236d,_0x52e567,_0x135afb){return new Promise(function(_0x4fec78,_0xd1bc72){const _0x3013f6=a80_0x5088,_0x115179=_0x135afb||client;return _0x115179[_0x3013f6(0x1a1)](_0x493afd,_0x52e567)[_0x3013f6(0x1fc)](function(_0x496a51){const _0x3c2819=_0x3013f6;logger['info'](_0x3c2819(0x26a),_0x68236d,_0x3c2819(0x16f)),logger[_0x3c2819(0x1fb)](_0x3c2819(0x1da),_0x68236d,_0x3c2819(0x16f),JSON[_0x3c2819(0x185)](_0x496a51));if(_0x496a51[_0x3c2819(0x170)]){if(_0x496a51[_0x3c2819(0x170)][_0x3c2819(0x17f)]===0x1f4)return logger['error']('ChatInteraction,\x20%s,\x20%s',_0x68236d,_0x496a51[_0x3c2819(0x170)][_0x3c2819(0x263)]),_0xd1bc72(_0x496a51[_0x3c2819(0x170)][_0x3c2819(0x263)]);return logger['error'](_0x3c2819(0x26a),_0x68236d,_0x496a51['error'][_0x3c2819(0x263)]),_0x4fec78(_0x496a51['error'][_0x3c2819(0x263)]);}else logger[_0x3c2819(0x163)](_0x3c2819(0x26a),_0x68236d,'request\x20sent'),_0x4fec78(_0x496a51[_0x3c2819(0x16e)][_0x3c2819(0x263)]);})['catch'](function(_0x26db23){const _0x22dff2=_0x3013f6;logger[_0x22dff2(0x170)]('ChatInteraction,\x20%s,\x20%s',_0x68236d,_0x26db23),_0xd1bc72(_0x26db23);});});}function respondWithStatusCode(_0x3b3468,_0x4158ac){return _0x4158ac=_0x4158ac||0xcc,function(_0x2120c7){const _0x21e073=a80_0x5088;if(_0x2120c7)return _0x3b3468[_0x21e073(0x246)](_0x4158ac);return _0x3b3468['status'](_0x4158ac)[_0x21e073(0x1ac)]();};}function respondWithResult(_0x592976,_0x3ec129){return _0x3ec129=_0x3ec129||0xc8,function(_0x32ec1d){const _0x22bf5c=a80_0x5088;if(_0x32ec1d)return _0x592976['status'](_0x3ec129)[_0x22bf5c(0x1e0)](_0x32ec1d);};}function respondWithFilteredResult(_0x5a868c,_0x55cfd9){return function(_0xd152a6){const _0x1dfafd=a80_0x5088;if(_0xd152a6){const _0x230cc8=_0xd152a6[_0x1dfafd(0x1fd)],_0x4d0e2a=_0x55cfd9[_0x1dfafd(0x1e2)];let _0x1a64bf=_0x55cfd9['offset']+_0x55cfd9[_0x1dfafd(0x1f0)],_0x34e949;return _0x1a64bf>=_0x230cc8?(_0x1a64bf=_0x230cc8,_0x34e949=0xc8):_0x34e949=0xce,_0x5a868c[_0x1dfafd(0x1aa)](_0x34e949),_0x5a868c[_0x1dfafd(0x22f)](_0x1dfafd(0x171),_0x4d0e2a+'-'+_0x1a64bf+'/'+_0x230cc8)[_0x1dfafd(0x1e0)](_0xd152a6);}return null;};}function saveUpdates(_0x1c3708){return function(_0x4e4cc4){const _0x5eafb7=a80_0x5088;if(_0x4e4cc4)return _0x4e4cc4[_0x5eafb7(0x172)](_0x1c3708)[_0x5eafb7(0x1fc)](function(_0x28474f){return _0x28474f;});return null;};}function removeEntity(_0x54b42e){return function(_0x2e595e){const _0x6d37a7=a80_0x5088;if(_0x2e595e)return _0x2e595e[_0x6d37a7(0x167)]()[_0x6d37a7(0x1fc)](function(){const _0x4b62d7=_0x6d37a7;_0x54b42e[_0x4b62d7(0x1aa)](0xcc)['end']();});};}function handleEntityNotFound(_0x1ad585){return function(_0x13ca98){const _0x5a8345=a80_0x5088;return!_0x13ca98&&_0x1ad585[_0x5a8345(0x246)](0x194),_0x13ca98;};}function handleError(_0x9bb815,_0x58a120){return _0x58a120=_0x58a120||0x1f4,function(_0x240071){const _0x2f5622=a80_0x5088;logger[_0x2f5622(0x170)](_0x240071[_0x2f5622(0x1cc)]),_0x240071['name']&&delete _0x240071[_0x2f5622(0x1f4)],_0x9bb815[_0x2f5622(0x1aa)](_0x58a120)[_0x2f5622(0x259)](_0x240071);};}function getInteractionUsers(_0x405e7a,_0x5d6f60){return new Promise(function(_0x168331,_0x14d15c){const _0x2e579d=a80_0x5088;try{_0x5d6f60[_0x405e7a['id']]&&(_0x405e7a[_0x2e579d(0x26e)]=_[_0x2e579d(0x20a)](_0x5d6f60[_0x405e7a['id']],function(_0x53e347){return{'id':_0x53e347['id'],'fullname':_0x53e347['fullname']};}));}catch(_0x29df77){_0x14d15c(_0x29df77);}_0x168331(_0x405e7a);});}function getInteractionTags(_0x296b17,_0x60fcb3){return new Promise(function(_0x5bcfa4,_0x7963e7){const _0x29e44e=a80_0x5088;try{_0x296b17[_0x29e44e(0x210)]&&(_0x296b17[_0x29e44e(0x20f)]=[],_0x296b17['TagIds'][_0x29e44e(0x195)](',')[_0x29e44e(0x22c)](function(_0x5001b7){const _0x55bba8=_0x29e44e;_0x296b17[_0x55bba8(0x20f)][_0x55bba8(0x1ab)](_0x60fcb3[_0x5001b7]);})),delete _0x296b17['TagIds'];}catch(_0xa2a8c4){_0x7963e7(_0xa2a8c4);}_0x5bcfa4(_0x296b17);});}function updateChatInteraction(_0x56199c,_0xd5abc6,_0x1a6171){return new Promise(function(_0x4d1eba,_0x3bda3e){const _0x512735=a80_0x5088;return getInteractionUsers(_0x56199c,_0x1a6171)['then'](function(_0x530ebf){return getInteractionTags(_0x530ebf,_0xd5abc6);})['then'](function(_0x58eb40){_0x4d1eba(_0x58eb40);})[_0x512735(0x1e1)](function(_0x356cbb){_0x3bda3e(_0x356cbb);});});}exports[a80_0x1ef0c1(0x197)]=function(_0x5f1d71,_0x379027){const _0x44f026=a80_0x1ef0c1,_0x52a042={},_0x210955={},_0x3ade3e={'count':0x0,'rows':[]},_0x433393=_['map'](db[_0x44f026(0x1a4)][_0x44f026(0x238)],function(_0xb2a90e){const _0x449fa4=_0x44f026;return{'name':_0xb2a90e[_0x449fa4(0x201)],'type':_0xb2a90e[_0x449fa4(0x179)][_0x449fa4(0x1bd)]};});_0x210955[_0x44f026(0x1ae)]=_[_0x44f026(0x20a)](_0x433393,_0x44f026(0x1f4)),_0x210955[_0x44f026(0x249)]=_['keys'](_0x5f1d71[_0x44f026(0x249)]),_0x210955[_0x44f026(0x20b)]=_[_0x44f026(0x182)](_0x210955[_0x44f026(0x1ae)],_0x210955['query']),_0x52a042[_0x44f026(0x161)]=_[_0x44f026(0x182)](_0x210955[_0x44f026(0x1ae)],qs[_0x44f026(0x162)](_0x5f1d71[_0x44f026(0x249)][_0x44f026(0x162)])),_0x52a042[_0x44f026(0x161)]=_0x52a042[_0x44f026(0x161)][_0x44f026(0x251)]?_0x52a042[_0x44f026(0x161)]:_0x210955[_0x44f026(0x1ae)];typeof _0x5f1d71[_0x44f026(0x249)][_0x44f026(0x18b)]===_0x44f026(0x1d0)&&(_0x52a042[_0x44f026(0x1f0)]=qs[_0x44f026(0x1f0)](_0x5f1d71[_0x44f026(0x249)]['limit']),_0x52a042['offset']=qs[_0x44f026(0x1e2)](_0x5f1d71[_0x44f026(0x249)][_0x44f026(0x1e2)]));_0x52a042[_0x44f026(0x1af)]=qs[_0x44f026(0x1a8)](_0x5f1d71[_0x44f026(0x249)][_0x44f026(0x1a8)]),_0x52a042['where']=qs[_0x44f026(0x20b)](_['pick'](_0x5f1d71[_0x44f026(0x249)],_0x210955[_0x44f026(0x20b)]),_0x433393);let _0x3c0b48=[];const _0x48e807=squel[_0x44f026(0x252)]()[_0x44f026(0x270)]('id')['field']('name')[_0x44f026(0x270)](_0x44f026(0x226))[_0x44f026(0x1d1)](_0x44f026(0x1b0)),_0x205de0=squel['select']()[_0x44f026(0x270)]('u.id')[_0x44f026(0x270)](_0x44f026(0x1e6))[_0x44f026(0x270)]('ui.ChatInteractionId')[_0x44f026(0x1d1)]('user_has_chat_interactions','ui')['left_join'](_0x44f026(0x1ad),'u',_0x44f026(0x18f)),_0x2e3a3b=squel['select']()[_0x44f026(0x1d1)](_0x44f026(0x25c),'i')[_0x44f026(0x1f7)](_0x44f026(0x213),'c',_0x44f026(0x186))[_0x44f026(0x1f7)]('users','o','o.id\x20=\x20i.UserId')[_0x44f026(0x1f7)](_0x44f026(0x17a),'a',_0x44f026(0x25e))[_0x44f026(0x1f7)](_0x44f026(0x18c),'me',_0x44f026(0x15c))['left_join'](_0x44f026(0x1f3),'it','it.ChatInteractionId\x20=\x20i.id')['left_join'](_0x44f026(0x1b0),'t','t.id\x20=\x20it.TagId'),_0x20044e=squel['expr']();let _0x34c2c5=[];const _0x1d6e70=squel['expr']();let _0x1b5188;if(_0x5f1d71[_0x44f026(0x249)][_0x44f026(0x198)]){_0x1b5188=as['parseSearch'](_0x5f1d71[_0x44f026(0x249)][_0x44f026(0x198)]);const _0x12cdb2=_0x1b5188['sqlOperator'];for(let _0x1e1d2d=0x0;_0x1e1d2d<_0x1b5188[_0x44f026(0x232)][_0x44f026(0x251)];_0x1e1d2d++){const _0x7db52c=_0x1b5188[_0x44f026(0x232)][_0x1e1d2d],_0x3ad175='i';let _0x22e8cc,_0x3aab35=_[_0x44f026(0x1fa)](_0x433393,[_0x44f026(0x1f4),_0x7db52c['field']]);if(!_0x3aab35)switch(_0x7db52c['field']){case _0x44f026(0x24f):_0x7db52c[_0x44f026(0x21e)]==0x1?_0x2e3a3b[_0x44f026(0x269)]('`'+_0x7db52c[_0x44f026(0x270)]+'`\x20=\x200'):_0x2e3a3b[_0x44f026(0x269)]('`'+_0x7db52c[_0x44f026(0x270)]+_0x44f026(0x275));break;case'Contact':if(_0x7db52c[_0x44f026(0x153)]===_0x44f026(0x1d2)){if(_0x7db52c[_0x44f026(0x21e)][_0x44f026(0x195)]('\x20')[_0x44f026(0x251)]>0x1)_0x20044e[_0x12cdb2](_0x44f026(0x15f),qs[_0x44f026(0x169)](_0x7db52c[_0x44f026(0x21e)]),null);else{const _0x26fb27='%'+_0x7db52c['value']+'%';_0x20044e[_0x12cdb2](_0x44f026(0x1e4),_0x26fb27,_0x26fb27,_0x26fb27);}}else _0x3aab35=_[_0x44f026(0x1fa)](_0x433393,[_0x44f026(0x1f4),_0x44f026(0x196)]),_0x7db52c[_0x44f026(0x270)]='ContactId',_0x22e8cc=as[_0x44f026(0x209)](_0x3ad175,_0x3aab35[_0x44f026(0x179)],_0x7db52c),_0x20044e[_0x12cdb2](_0x22e8cc[_0x44f026(0x18a)],_0x22e8cc[_0x44f026(0x21e)][_0x44f026(0x1a6)],_0x22e8cc[_0x44f026(0x21e)][_0x44f026(0x1ac)]);break;case _0x44f026(0x220):{const _0x253857=_0x7db52c['value'][_0x44f026(0x195)](',')[_0x44f026(0x20a)](function(_0x35f306){return Number(_0x35f306);});_0x253857[_0x44f026(0x22c)](function(_0x2129c8){const _0x54d5c8=_0x44f026;_0x1d6e70['or'](_0x54d5c8(0x188),'%,'+_0x2129c8+',%');}),_0x34c2c5=_[_0x44f026(0x230)](_0x34c2c5,_0x253857);}break;case'User':_0x7db52c['operator']===_0x44f026(0x1d2)?_0x20044e[_0x12cdb2](_0x44f026(0x1b2),'%'+_0x7db52c[_0x44f026(0x21e)]+'%',null):(_0x3aab35=_[_0x44f026(0x1fa)](_0x433393,['name',_0x44f026(0x1cf)]),_0x7db52c['field']=_0x44f026(0x1cf),_0x22e8cc=as['buildExpression'](_0x3ad175,_0x3aab35['type'],_0x7db52c),_0x20044e[_0x12cdb2](_0x22e8cc[_0x44f026(0x18a)],_0x22e8cc['value'][_0x44f026(0x1a6)],_0x22e8cc[_0x44f026(0x21e)][_0x44f026(0x1ac)]));break;case _0x44f026(0x1c4):_0x22e8cc=as[_0x44f026(0x209)]('me',null,_0x7db52c),_0x20044e[_0x12cdb2](_0x22e8cc['text'],_0x22e8cc[_0x44f026(0x21e)][_0x44f026(0x1a6)],_0x22e8cc[_0x44f026(0x21e)][_0x44f026(0x1ac)]);break;}else _0x22e8cc=as[_0x44f026(0x209)](_0x3ad175,_0x3aab35['type'],_0x7db52c),_0x20044e[_0x12cdb2](_0x22e8cc[_0x44f026(0x18a)],_0x22e8cc['value']['start'],_0x22e8cc[_0x44f026(0x21e)]['end']);}}else{const _0xcb6f77=_(_0x5f1d71['query'])[_0x44f026(0x214)]()['map'](function(_0x189ed6){const _0x2b957c=_0x44f026;return _[_0x2b957c(0x25b)](_0x433393,[_0x2b957c(0x1f4),_0x189ed6])?_0x189ed6:undefined;})[_0x44f026(0x18d)]()[_0x44f026(0x21e)]();!_[_0x44f026(0x1e9)](_0xcb6f77)&&_0xcb6f77['forEach'](function(_0x55cd42){const _0x174251=_0x44f026;if(_0x55cd42==='ChatWebsiteId')_0x2e3a3b[_0x174251(0x165)](_0x174251(0x260),[]['concat'](_0x5f1d71['query'][_0x55cd42]));else{if(_0x55cd42==='createdAt'){const _0x2c65cf=JSON[_0x174251(0x23f)](_0x5f1d71[_0x174251(0x249)][_0x55cd42])[_0x174251(0x1cb)],_0x57124b=JSON['parse'](_0x5f1d71['query'][_0x55cd42])[_0x174251(0x200)];_0x2e3a3b['where'](_0x174251(0x168),_0x2c65cf,_0x57124b);}else _0x5f1d71['query'][_0x55cd42]===_0x174251(0x24b)?_0x2e3a3b[_0x174251(0x165)]('i.'+_0x55cd42+_0x174251(0x240)):_0x2e3a3b['where']('i.'+_0x55cd42+_0x174251(0x228),_0x5f1d71[_0x174251(0x249)][_0x55cd42]);}});_0x5f1d71[_0x44f026(0x249)][_0x44f026(0x187)]&&(_0x5f1d71[_0x44f026(0x249)][_0x44f026(0x187)]==0x1?_0x2e3a3b[_0x44f026(0x269)](_0x44f026(0x1f9)):_0x2e3a3b[_0x44f026(0x269)](_0x44f026(0x181)));_0x5f1d71[_0x44f026(0x249)][_0x44f026(0x267)]&&(_0x34c2c5=_['isArray'](_0x5f1d71['query'][_0x44f026(0x267)])?_0x5f1d71[_0x44f026(0x249)][_0x44f026(0x267)]:new Array(_0x5f1d71[_0x44f026(0x249)][_0x44f026(0x267)]),_0x34c2c5['forEach'](function(_0x1d1869){_0x1d6e70['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x1d1869+',%');}));if(_0x5f1d71[_0x44f026(0x249)][_0x44f026(0x159)]){const _0x2f3da3=_0x5f1d71[_0x44f026(0x249)][_0x44f026(0x159)][_0x44f026(0x20d)]('\x5c','\x5c\x5c')[_0x44f026(0x20d)](/'/g,'\x27\x27');qs['isNumeric'](_0x2f3da3)?_0x20044e['or'](_0x44f026(0x25f),_0x2f3da3+'%'):_0x20044e['or']('MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs['getFullTextValue'](_0x2f3da3))['or'](_0x44f026(0x1de),_0x2f3da3+'%');}}_0x2e3a3b['where'](_0x20044e),_0x2e3a3b[_0x44f026(0x1ee)](_0x44f026(0x1fe));let _0x5e8d35={'type':QueryTypes[_0x44f026(0x264)],'raw':!![]};const _0x4b3aa7=_0x2e3a3b[_0x44f026(0x16d)]();_0x4b3aa7[_0x44f026(0x270)]('i.id'),_0x4b3aa7[_0x44f026(0x270)](_0x44f026(0x277),'unreadMessages'),_0x52a042[_0x44f026(0x1af)]&&_0x52a042[_0x44f026(0x1af)]['forEach'](function(_0x3b8cae){const _0x223284=_0x44f026,_0x9875fd=_0x3b8cae[0x0]===_0x223284(0x1ed)?_0x3b8cae[0x0]:'i.'+_0x3b8cae[0x0];_0x2e3a3b[_0x223284(0x1af)](_0x9875fd,_0x3b8cae[0x1]===_0x223284(0x184)?![]:!![]);}),!_[_0x44f026(0x1e9)](_0x34c2c5)&&(_0x2e3a3b[_0x44f026(0x269)](_0x1d6e70),_0x4b3aa7[_0x44f026(0x165)](_0x44f026(0x16a),_0x34c2c5)),Promise[_0x44f026(0x1c7)]()[_0x44f026(0x1fc)](function(){const _0x4f2794=_0x44f026;if(!_0x1b5188){if(_0x5f1d71[_0x4f2794(0x249)][_0x4f2794(0x222)]||_0x5f1d71[_0x4f2794(0x249)][_0x4f2794(0x1b5)])return;_0x4b3aa7[_0x4f2794(0x165)](_0x4f2794(0x1bb)),_0x2e3a3b[_0x4f2794(0x165)](_0x4f2794(0x1bb));return;}return _0x5f1d71[_0x4f2794(0x271)][_0x4f2794(0x1f2)]({'attributes':['id'],'raw':!![]})[_0x4f2794(0x1fc)](function(_0x272214){const _0x16fecb=_0x4f2794;_[_0x16fecb(0x1e9)](_0x272214)?(_0x4b3aa7[_0x16fecb(0x165)](_0x16fecb(0x203)),_0x2e3a3b[_0x16fecb(0x165)]('i.ChatWebsiteId\x20IS\x20NULL')):(_0x4b3aa7[_0x16fecb(0x165)](_0x16fecb(0x260),_[_0x16fecb(0x20a)](_0x272214,'id')),_0x2e3a3b[_0x16fecb(0x165)](_0x16fecb(0x260),_[_0x16fecb(0x20a)](_0x272214,'id')));});})[_0x44f026(0x1fc)](function(){const _0x554299=_0x44f026;db[_0x554299(0x26c)][_0x554299(0x249)](_0x4b3aa7[_0x554299(0x257)](),_0x5e8d35)[_0x554299(0x1fc)](function(_0x21b7c5){const _0x4099c1=_0x554299;_0x3ade3e[_0x4099c1(0x1fd)]=_0x21b7c5[_0x4099c1(0x251)];if(_0x3ade3e[_0x4099c1(0x1fd)]===0x0)return[];return db[_0x4099c1(0x26c)][_0x4099c1(0x249)](_0x48e807[_0x4099c1(0x257)](),_0x5e8d35)[_0x4099c1(0x1fc)](function(_0x325a45){const _0x5bd3be=_0x4099c1;_0x3c0b48=_[_0x5bd3be(0x24a)](_0x325a45,'id'),_0x5e8d35=_[_0x5bd3be(0x208)](_0x5e8d35,{'model':db[_0x5bd3be(0x1a4)],'mapToModel':!![],'raw':!![],'nest':!![]});_0x5f1d71[_0x5bd3be(0x249)]['fields']?_0x52a042[_0x5bd3be(0x161)][_0x5bd3be(0x22c)](function(_0x4dcba2){_0x2e3a3b['field']('i.'+_0x4dcba2);}):(_0x2e3a3b[_0x5bd3be(0x270)](_0x5bd3be(0x277),'unreadMessages'),_0x2e3a3b[_0x5bd3be(0x270)](_0x5bd3be(0x248),_0x5bd3be(0x272)),_0x2e3a3b[_0x5bd3be(0x270)](_0x5bd3be(0x1cd),_0x5bd3be(0x26b)),_0x2e3a3b[_0x5bd3be(0x270)](_0x5bd3be(0x1c9),_0x5bd3be(0x1ed)),_0x2e3a3b[_0x5bd3be(0x270)](_0x5bd3be(0x176)),_0x2e3a3b[_0x5bd3be(0x270)](_0x5bd3be(0x21d),_0x5bd3be(0x229)),_0x2e3a3b[_0x5bd3be(0x270)](_0x5bd3be(0x244),_0x5bd3be(0x1d9)),_0x2e3a3b['field'](_0x5bd3be(0x155),_0x5bd3be(0x194)),_0x2e3a3b[_0x5bd3be(0x270)]('c.phone',_0x5bd3be(0x24e)),_0x2e3a3b[_0x5bd3be(0x270)](_0x5bd3be(0x19f),_0x5bd3be(0x1b4)),_0x2e3a3b[_0x5bd3be(0x270)]('c.fax','Contact.fax'),_0x2e3a3b[_0x5bd3be(0x270)](_0x5bd3be(0x1f1),_0x5bd3be(0x23b)),_0x2e3a3b[_0x5bd3be(0x270)](_0x5bd3be(0x23d),_0x5bd3be(0x255)),_0x2e3a3b[_0x5bd3be(0x270)](_0x5bd3be(0x1b7),'TagIds'));if(_0x52a042[_0x5bd3be(0x1f0)])_0x2e3a3b['limit'](_0x52a042[_0x5bd3be(0x1f0)]);if(_0x52a042[_0x5bd3be(0x1e2)])_0x2e3a3b[_0x5bd3be(0x1e2)](_0x52a042[_0x5bd3be(0x1e2)]);return db[_0x5bd3be(0x26c)][_0x5bd3be(0x249)](_0x2e3a3b[_0x5bd3be(0x257)](),_0x5e8d35);})[_0x4099c1(0x1fc)](function(_0x49e33d){const _0x5d5c4e=_0x4099c1;return _0x205de0['where'](_0x5d5c4e(0x266),_[_0x5d5c4e(0x20a)](_0x49e33d,'id')),db['sequelize'][_0x5d5c4e(0x249)](_0x205de0['toString'](),_0x5e8d35)['then'](function(_0x3c0984){const _0x265df6=_0x5d5c4e,_0x456dd7=_[_0x265df6(0x1c6)](_0x3c0984,_0x265df6(0x1dc)),_0x5ad06c=[];return _0x49e33d[_0x265df6(0x22c)](function(_0x40a5ce){const _0x202e54=_0x265df6;_0x5ad06c[_0x202e54(0x1ab)](updateChatInteraction(_0x40a5ce,_0x3c0b48,_0x456dd7));}),Promise[_0x265df6(0x16c)](_0x5ad06c);});});})['then'](function(_0x1a75ce){const _0x58dc1a=_0x554299;return _0x3ade3e[_0x58dc1a(0x22a)]=_0x1a75ce,_0x3ade3e;})[_0x554299(0x1fc)](respondWithFilteredResult(_0x379027,_0x52a042));})[_0x44f026(0x1e1)](handleError(_0x379027,null));},exports['show']=function(_0x5a4ab6,_0x29e2b2){const _0x3eaeab=a80_0x1ef0c1;let _0x354c4d={'raw':![],'where':{'id':_0x5a4ab6[_0x3eaeab(0x254)]['id']}};const _0x143e6f={};return _0x143e6f[_0x3eaeab(0x1ae)]=_[_0x3eaeab(0x214)](db[_0x3eaeab(0x1a4)][_0x3eaeab(0x238)]),_0x143e6f['query']=_[_0x3eaeab(0x214)](_0x5a4ab6[_0x3eaeab(0x249)]),_0x143e6f[_0x3eaeab(0x20b)]=_['intersection'](_0x143e6f[_0x3eaeab(0x1ae)],_0x143e6f['query']),_0x354c4d[_0x3eaeab(0x161)]=_[_0x3eaeab(0x182)](_0x143e6f[_0x3eaeab(0x1ae)],qs[_0x3eaeab(0x162)](_0x5a4ab6[_0x3eaeab(0x249)][_0x3eaeab(0x162)])),_0x354c4d[_0x3eaeab(0x161)]=_0x354c4d[_0x3eaeab(0x161)][_0x3eaeab(0x251)]?_0x354c4d['attributes']:_0x143e6f[_0x3eaeab(0x1ae)],_0x5a4ab6['query'][_0x3eaeab(0x1c1)]&&(_0x354c4d[_0x3eaeab(0x20e)]=[{'all':!![]}]),_0x354c4d=_[_0x3eaeab(0x208)]({},_0x354c4d,_0x5a4ab6[_0x3eaeab(0x223)]),db[_0x3eaeab(0x1a4)][_0x3eaeab(0x17b)](_0x354c4d)[_0x3eaeab(0x1fc)](handleEntityNotFound(_0x29e2b2,null))[_0x3eaeab(0x1fc)](respondWithResult(_0x29e2b2,null))['catch'](handleError(_0x29e2b2,null));},exports['create']=function(_0x293257,_0x24eef0){const _0x22e76a=a80_0x1ef0c1;return db[_0x22e76a(0x1a4)][_0x22e76a(0x160)](_0x293257[_0x22e76a(0x1c4)],{})[_0x22e76a(0x1fc)](respondWithResult(_0x24eef0,0xc9))[_0x22e76a(0x1e1)](handleError(_0x24eef0,null));},exports[a80_0x1ef0c1(0x172)]=function(_0x342f21,_0x74703c){const _0x3501a6=a80_0x1ef0c1;return _0x342f21[_0x3501a6(0x1c4)]['id']&&delete _0x342f21[_0x3501a6(0x1c4)]['id'],db['ChatInteraction'][_0x3501a6(0x17b)]({'where':{'id':_0x342f21[_0x3501a6(0x254)]['id']}})[_0x3501a6(0x1fc)](handleEntityNotFound(_0x74703c,null))[_0x3501a6(0x1fc)](saveUpdates(_0x342f21[_0x3501a6(0x1c4)],null))[_0x3501a6(0x1fc)](respondWithResult(_0x74703c,null))['catch'](handleError(_0x74703c,null));},exports[a80_0x1ef0c1(0x167)]=function(_0x4e177b,_0x3abb4c){const _0x2d4d53=a80_0x1ef0c1;return db[_0x2d4d53(0x1a4)]['findOne']({'where':{'id':_0x4e177b[_0x2d4d53(0x254)]['id']}})[_0x2d4d53(0x1fc)](handleEntityNotFound(_0x3abb4c,null))[_0x2d4d53(0x1fc)](removeEntity(_0x3abb4c,null))[_0x2d4d53(0x1e1)](handleError(_0x3abb4c,null));},exports[a80_0x1ef0c1(0x1ba)]=function(_0x3fd84d,_0x13e24a){const _0x556e76=a80_0x1ef0c1;return db[_0x556e76(0x1a4)]['describe']()[_0x556e76(0x1fc)](respondWithResult(_0x13e24a,null))[_0x556e76(0x1e1)](handleError(_0x13e24a,null));},exports[a80_0x1ef0c1(0x22b)]=function(_0x277316,_0x1bf7e1){const _0x3d261a=a80_0x1ef0c1,_0x2b0568=_0x277316[_0x3d261a(0x254)]['id'];let _0x39c89b,_0xa33c2f,_0x27c0cf;return db[_0x3d261a(0x1a4)][_0x3d261a(0x17b)]({'where':{'id':_0x2b0568}})['then'](function(_0x55a621){const _0x2af9f9=_0x3d261a;return _0x39c89b=_0x55a621,db[_0x2af9f9(0x1b9)]['findOne']({'where':{'id':_0x55a621[_0x2af9f9(0x222)]},'attributes':['id',_0x2af9f9(0x1ff),'vidaooEscalation'],'raw':!![]});})['then'](function(_0x46fb35){const _0xb35063=_0x3d261a;if(_0x46fb35&&_0x46fb35[_0xb35063(0x1ff)]&&_0x46fb35['vidaooEscalation']){_0xa33c2f=_0x46fb35;const _0x372080={'rejectUnauthorized':![],'method':_0xb35063(0x202),'uri':_0xb35063(0x1b1),'headers':{'X-APIKEY':_0x46fb35[_0xb35063(0x1ff)]},'body':{'name':_0xb35063(0x15d)+_0x2b0568},'redirect':_0xb35063(0x1a2),'json':!![]};return rp(_0x372080);}else throw new ValidationError('Error\x20in\x20Vidaoo\x20configuration');})['then'](function(_0x2c2a0e){const _0x4bda5f=_0x3d261a;_0x27c0cf=_0x2c2a0e;if(_0x27c0cf['id']){const _0x3fff09={'body':_0x27c0cf['join_url'],'ChatWebsiteId':_0xa33c2f['id'],'ChatInteractionId':_0x39c89b['id'],'direction':_0x4bda5f(0x1a0),'UserId':_0x277316['user']['id']};return db[_0x4bda5f(0x19a)]['create'](_0x3fff09,{});}else throw new ValidationError(_0x4bda5f(0x177));})['then'](function(){const _0x523689=_0x3d261a;return _0x39c89b[_0x523689(0x172)]({'vidaooSessionId':_0x27c0cf['id']});})[_0x3d261a(0x1fc)](respondWithResult(_0x1bf7e1,null))[_0x3d261a(0x1e1)](handleError(_0x1bf7e1,null));},exports['customUpdate']=function(_0x4e27c8,_0x473d7f){const _0x488c6e=a80_0x1ef0c1;return _0x4e27c8[_0x488c6e(0x1c4)]['id']&&delete _0x4e27c8['body']['id'],db[_0x488c6e(0x1a4)][_0x488c6e(0x17b)]({'where':{'id':_0x4e27c8[_0x488c6e(0x254)]['id']}})['then'](handleEntityNotFound(_0x473d7f,null))[_0x488c6e(0x1fc)](saveUpdates(_0x4e27c8[_0x488c6e(0x1c4)],null))['then'](respondWithResult(_0x473d7f,null))[_0x488c6e(0x1e1)](handleError(_0x473d7f,null));},exports['abandon']=function(_0x357140,_0x1dbc86){const _0x300ee3=a80_0x1ef0c1;return _0x357140['body']['id']&&delete _0x357140[_0x300ee3(0x1c4)]['id'],db['ChatInteraction'][_0x300ee3(0x17b)]({'where':{'id':_0x357140['params']['id']}})['then'](function(_0x1dde24){const _0x4e9b98=_0x300ee3;if(!_0x1dde24)logger['error'](_0x4e9b98(0x19b),_0x4e9b98(0x21f),0x194,_0x4e9b98(0x242)),_0x1dbc86['sendStatus'](0x194);else{if(_0x1dde24[_0x4e9b98(0x1cf)])throw new ValidationError(_0x4e9b98(0x17e));}return _0x1dde24;})[_0x300ee3(0x1fc)](function(_0x29eb10){const _0x58228f=_0x300ee3;if(_0x29eb10)return _0x29eb10['update']({'closed':_0x357140['body'][_0x58228f(0x215)],'disposition':_0x357140[_0x58228f(0x1c4)][_0x58228f(0x221)]})['then'](function(_0x445ab3){return _0x445ab3;});})[_0x300ee3(0x1fc)](function(){const _0x4cc14f=_0x300ee3;return respondWithRpcPromise(_0x4cc14f(0x265),_0x4cc14f(0x21f),_0x357140['body'],client9004);})[_0x300ee3(0x1fc)](respondWithResult(_0x1dbc86,null))['catch'](handleError(_0x1dbc86,null));},exports[a80_0x1ef0c1(0x158)]=function(_0x3061cb,_0x2c4845){const _0x50c3a8=a80_0x1ef0c1;return _0x3061cb[_0x50c3a8(0x1c4)][_0x50c3a8(0x1f4)]=_0x3061cb['file'][_0x50c3a8(0x1db)],_0x3061cb['body'][_0x50c3a8(0x24c)]=_0x3061cb[_0x50c3a8(0x1e7)]['filename'],_0x3061cb['body'][_0x50c3a8(0x179)]=_0x3061cb[_0x50c3a8(0x1e7)][_0x50c3a8(0x1c3)],db['Attachment'][_0x50c3a8(0x160)](_0x3061cb[_0x50c3a8(0x1c4)])[_0x50c3a8(0x1fc)](respondWithResult(_0x2c4845,0xc9))[_0x50c3a8(0x1e1)](handleError(_0x2c4845,null));},exports[a80_0x1ef0c1(0x27a)]=function(_0x15895c,_0x4650e6){const _0x3a5f5a=a80_0x1ef0c1;return db[_0x3a5f5a(0x1a4)][_0x3a5f5a(0x17b)]({'where':{'id':_0x15895c[_0x3a5f5a(0x254)]['id']},'raw':!![]})[_0x3a5f5a(0x1fc)](handleEntityNotFound(_0x4650e6,null))[_0x3a5f5a(0x1fc)](function(_0x509cdd){const _0x5c74f1=_0x3a5f5a;if(_0x509cdd){if(_0x509cdd[_0x5c74f1(0x215)])return _0x4650e6[_0x5c74f1(0x1aa)](0x193)['json']({'status':0x193,'message':_0x5c74f1(0x247)});return db[_0x5c74f1(0x17d)]['findOne']({'where':{'id':_0x15895c[_0x5c74f1(0x249)][_0x5c74f1(0x241)]},'raw':!![]})[_0x5c74f1(0x1fc)](handleEntityNotFound(_0x4650e6,null));}})[_0x3a5f5a(0x1fc)](function(_0x18beb5){const _0x202118=_0x3a5f5a;if(_0x18beb5)return _0x4650e6['download'](path['join'](config[_0x202118(0x18e)],_0x202118(0x178),_0x18beb5[_0x202118(0x24c)]));})[_0x3a5f5a(0x1e1)](handleError(_0x4650e6,null));},exports[a80_0x1ef0c1(0x258)]=function(_0x5a4854,_0x317976){const _0x590b2c=a80_0x1ef0c1;let _0x1e2fb2=null,_0x80fc1d=null,_0x5558f7=null;return _0x5a4854[_0x590b2c(0x1c4)]['id']&&delete _0x5a4854['body']['id'],_0x5a4854[_0x590b2c(0x1c4)][_0x590b2c(0x166)]&&(_0x5558f7=path['join'](config[_0x590b2c(0x18e)],'server/files/chat/upload/',util[_0x590b2c(0x1bc)](_0x590b2c(0x216),Date[_0x590b2c(0x250)]())),_0x5a4854[_0x590b2c(0x1c4)][_0x590b2c(0x225)]=_0x5558f7),db[_0x590b2c(0x1a4)][_0x590b2c(0x17b)]({'where':{'id':_0x5a4854[_0x590b2c(0x254)]['id']},'include':[{'model':db[_0x590b2c(0x19a)],'as':_0x590b2c(0x276),'include':[{'model':db[_0x590b2c(0x256)],'as':_0x590b2c(0x256)}]}]})[_0x590b2c(0x1fc)](handleEntityNotFound(_0x317976,null))['then'](saveUpdates(_0x5a4854['body'],null))[_0x590b2c(0x1fc)](function(_0x35a8d2){const _0x47bc02=_0x590b2c;if(_0x35a8d2)return _0x1e2fb2=_0x35a8d2,db[_0x47bc02(0x1b9)]['findOne']({'where':{'id':_0x1e2fb2['ChatWebsiteId']}});})['then'](function(_0x299649){const _0x3890ce=_0x590b2c;if(_0x299649)return _0x80fc1d=_0x299649,db[_0x3890ce(0x15b)][_0x3890ce(0x17b)]({'where':{'id':_0x1e2fb2[_0x3890ce(0x196)]}});})['then'](function(_0x214872){const _0x131b94=_0x590b2c;if(_0x214872){if(_0x5558f7){let _0x1b6f95=null;for(let _0x987529=0x1;_0x987529<_0x1e2fb2[_0x131b94(0x276)][_0x131b94(0x251)];++_0x987529){_0x1b6f95=_0x1e2fb2[_0x131b94(0x276)][_0x987529];let _0x2c62f2=_0x1b6f95[_0x131b94(0x1cf)]?util['format'](_0x131b94(0x1e5),_0x80fc1d[_0x131b94(0x1be)],_0x1b6f95[_0x131b94(0x1cf)]):_0x131b94(0x191);const _0x4953a9=_0x5a4854['body'][_0x131b94(0x16b)]||util[_0x131b94(0x1bc)](_0x131b94(0x1e5),_0x131b94(0x19d),_0x1b6f95[_0x131b94(0x196)]);switch(_0x80fc1d[_0x131b94(0x205)]){case _0x131b94(0x27b):_0x2c62f2=_0x1b6f95[_0x131b94(0x1cf)]?util['format']('%s%d',_0x80fc1d['agentAlias'],_0x1b6f95[_0x131b94(0x1cf)]):_0x131b94(0x191);break;case'agent_alias':_0x2c62f2=_0x1b6f95[_0x131b94(0x1cf)]?_0x1b6f95[_0x131b94(0x256)]['alias']||_0x1b6f95[_0x131b94(0x256)][_0x131b94(0x268)]:'System';break;case _0x131b94(0x231):_0x2c62f2=_0x1b6f95[_0x131b94(0x1cf)]?_0x1b6f95[_0x131b94(0x256)][_0x131b94(0x268)]:_0x131b94(0x191);break;default:_0x2c62f2=_0x1b6f95[_0x131b94(0x1cf)]?util['format'](_0x131b94(0x1e5),_0x80fc1d[_0x131b94(0x1be)],_0x1b6f95[_0x131b94(0x1cf)]):_0x131b94(0x191);}const _0x279d45=util[_0x131b94(0x1bc)](_0x131b94(0x24d),moment(_0x1b6f95[_0x131b94(0x193)])[_0x131b94(0x1bc)](_0x131b94(0x1f6)),_0x1b6f95[_0x131b94(0x1ec)]==='in'?_0x4953a9:_0x2c62f2,_0x1b6f95[_0x131b94(0x1c4)]);!_0x1b6f95[_0x131b94(0x253)]&&fs[_0x131b94(0x26d)](_0x5558f7,_0x279d45);}return db[_0x131b94(0x273)][_0x131b94(0x17b)]({'where':{'service':!![]},'include':[{'model':db[_0x131b94(0x1b6)],'as':_0x131b94(0x1d8),'raw':!![]}]});}}})[_0x590b2c(0x1fc)](function(_0x344511){const _0x112f6b=_0x590b2c;if(_0x344511&&_0x344511[_0x112f6b(0x1d8)]&&_0x5a4854[_0x112f6b(0x1c4)]){const _0x4bd37a={'tls':{'rejectUnauthorized':![]}};return _0x344511[_0x112f6b(0x1d8)][_0x112f6b(0x22d)]?_0x4bd37a[_0x112f6b(0x22d)]=_0x344511[_0x112f6b(0x1d8)][_0x112f6b(0x22d)]:(_0x4bd37a['host']=_0x344511['Smtp'][_0x112f6b(0x262)],_0x4bd37a['port']=_0x344511[_0x112f6b(0x1d8)]['port'],_0x4bd37a[_0x112f6b(0x206)]=_0x344511[_0x112f6b(0x1d8)]['secure']),_0x344511[_0x112f6b(0x1d8)]['authentication']&&(_0x4bd37a[_0x112f6b(0x25a)]={'user':_0x344511[_0x112f6b(0x1d8)][_0x112f6b(0x271)],'pass':_0x344511['Smtp'][_0x112f6b(0x154)]}),respondWithRpcPromise(_0x112f6b(0x1bf),_0x112f6b(0x233),{'account':_0x4bd37a,'message':{'from':util['format']('\x22%s\x22\x20<%s>',_0x344511[_0x112f6b(0x1f4)],_0x344511[_0x112f6b(0x189)]||_0x344511[_0x112f6b(0x1d8)][_0x112f6b(0x271)]),'to':_0x5a4854[_0x112f6b(0x1c4)][_0x112f6b(0x166)],'subject':_0x112f6b(0x1ea),'text':util[_0x112f6b(0x1bc)]('Hi\x20%s,\x20attached\x20you\x20can\x20find\x20your\x20transcript\x20file.\x20\x0a\x0aRegards.\x20\x0a\x0a',_0x5a4854[_0x112f6b(0x1c4)][_0x112f6b(0x166)]),'attachments':[{'path':_0x5558f7}]}})[_0x112f6b(0x1fc)](function(){return _0x1e2fb2;})[_0x112f6b(0x1e1)](function(_0x585bb9){const _0x57fbda=_0x112f6b;console[_0x57fbda(0x170)](_0x585bb9);});}else return _0x1e2fb2;})[_0x590b2c(0x1fc)](respondWithStatusCode(_0x317976,0xc8))[_0x590b2c(0x1e1)](handleError(_0x317976,null));},exports[a80_0x1ef0c1(0x19c)]=function(_0xbfd880,_0x5b6009){const _0x508806=a80_0x1ef0c1;return db[_0x508806(0x19a)][_0x508806(0x17b)]({'where':{'id':_0xbfd880['params']['id']}})[_0x508806(0x1fc)](function(_0x3e8436){const _0x3fd2db=_0x508806;if(_0x3e8436)return _0x3e8436[_0x3fd2db(0x19c)](_0xbfd880[_0x3fd2db(0x1c4)][_0x3fd2db(0x204)],{'through':_[_0x3fd2db(0x224)](_0xbfd880[_0x3fd2db(0x1c4)],['ids','id'])});})[_0x508806(0x1fc)](respondWithResult(_0x5b6009,null))['catch'](handleError(_0x5b6009,null));},exports[a80_0x1ef0c1(0x1ca)]=function(_0x317249,_0x2e0d41){const _0x5e1bf6=a80_0x1ef0c1;let _0x482816={'raw':![],'where':{}};const _0x2fd522={},_0x5b4d69={'count':0x0,'rows':[]};return db[_0x5e1bf6(0x1a4)][_0x5e1bf6(0x17b)]({'where':{'id':_0x317249[_0x5e1bf6(0x254)]['id']}})['then'](handleEntityNotFound(_0x2e0d41,null))[_0x5e1bf6(0x1fc)](function(_0x1b22ab){const _0x23665c=_0x5e1bf6;if(_0x1b22ab){_0x2fd522['model']=_[_0x23665c(0x214)](db[_0x23665c(0x19a)][_0x23665c(0x238)]),_0x2fd522[_0x23665c(0x249)]=_[_0x23665c(0x214)](_0x317249['query']),_0x2fd522[_0x23665c(0x20b)]=_[_0x23665c(0x182)](_0x2fd522[_0x23665c(0x1ae)],_0x2fd522[_0x23665c(0x249)]),_0x482816['attributes']=_[_0x23665c(0x182)](_0x2fd522['model'],qs[_0x23665c(0x162)](_0x317249[_0x23665c(0x249)][_0x23665c(0x162)])),_0x482816[_0x23665c(0x161)]=_0x482816[_0x23665c(0x161)]['length']?_0x482816['attributes']:_0x2fd522[_0x23665c(0x1ae)];typeof _0x317249[_0x23665c(0x249)][_0x23665c(0x18b)]==='undefined'&&(_0x482816['limit']=qs[_0x23665c(0x1f0)](_0x317249['query']['limit']),_0x482816[_0x23665c(0x1e2)]=qs[_0x23665c(0x1e2)](_0x317249['query']['offset']));_0x482816['order']=qs['sort'](_0x317249['query'][_0x23665c(0x1a8)]),_0x482816[_0x23665c(0x165)]=qs['filters'](_[_0x23665c(0x1e3)](_0x317249['query'],_0x2fd522[_0x23665c(0x20b)])),_0x482816[_0x23665c(0x165)][_0x23665c(0x1dc)]=_0x1b22ab['id'];_0x317249[_0x23665c(0x249)][_0x23665c(0x159)]&&(_0x482816[_0x23665c(0x165)]=_[_0x23665c(0x208)](_0x482816[_0x23665c(0x165)],{[Op['or']]:_[_0x23665c(0x20a)](_0x482816[_0x23665c(0x161)],function(_0x5e2903){const _0x511ae2=_0x23665c,_0x4cca26={};return _0x4cca26[_0x5e2903]={[Op[_0x511ae2(0x1d3)]]:'%'+_0x317249['query'][_0x511ae2(0x159)]+'%'},_0x4cca26;})}));if(_0x317249[_0x23665c(0x249)][_0x23665c(0x1cb)]){const _0x23a678=_0x317249[_0x23665c(0x249)][_0x23665c(0x1cb)][_0x23665c(0x195)](','),_0x17a49a={};_0x17a49a[_0x23a678[0x0]]={[Op[_0x23665c(0x261)]]:moment(_0x23a678[0x1])[_0x23665c(0x1bc)](_0x23665c(0x199))},_0x482816[_0x23665c(0x165)]=_[_0x23665c(0x208)](_0x482816[_0x23665c(0x165)],_0x17a49a);}return _0x482816=_[_0x23665c(0x208)]({},_0x482816,_0x317249[_0x23665c(0x223)]),db['ChatMessage'][_0x23665c(0x1fd)]({'where':_0x482816[_0x23665c(0x165)]})[_0x23665c(0x1fc)](function(_0x20e006){const _0x295917=_0x23665c;return _0x5b4d69[_0x295917(0x1fd)]=_0x20e006,_0x317249[_0x295917(0x249)]['includeAll']&&(_0x482816['include']=[{'all':!![]}]),db[_0x295917(0x19a)][_0x295917(0x1d6)](_0x482816);})['then'](function(_0x2f191d){const _0x4dab12=_0x23665c;return _0x5b4d69[_0x4dab12(0x22a)]=_0x2f191d,_0x5b4d69;});}})[_0x5e1bf6(0x1fc)](respondWithFilteredResult(_0x2e0d41,_0x482816))['catch'](handleError(_0x2e0d41,null));},exports['getMyMessages']=function(_0x1e4d8f,_0x23f817){const _0x46c26c=a80_0x1ef0c1;let _0x4f4da9={'where':{}};const _0x119444={},_0x5aadb1={'count':0x0,'rows':[]};return db[_0x46c26c(0x1a4)][_0x46c26c(0x17b)]({'where':{'id':_0x1e4d8f[_0x46c26c(0x254)]['id']}})[_0x46c26c(0x1fc)](handleEntityNotFound(_0x23f817,null))[_0x46c26c(0x1fc)](function(_0x1cffbc){const _0x4ea0a3=_0x46c26c;if(_0x1cffbc)return _0x119444[_0x4ea0a3(0x1ae)]=_[_0x4ea0a3(0x214)](db[_0x4ea0a3(0x19a)][_0x4ea0a3(0x238)]),_0x119444[_0x4ea0a3(0x249)]=_[_0x4ea0a3(0x214)](_0x1e4d8f[_0x4ea0a3(0x249)]),_0x119444[_0x4ea0a3(0x20b)]=_['intersection'](_0x119444[_0x4ea0a3(0x1ae)],_0x119444[_0x4ea0a3(0x249)]),_0x4f4da9[_0x4ea0a3(0x161)]=_[_0x4ea0a3(0x182)](_0x119444[_0x4ea0a3(0x1ae)],qs[_0x4ea0a3(0x162)](_0x1e4d8f['query'][_0x4ea0a3(0x162)])),_0x4f4da9['attributes']=_0x4f4da9[_0x4ea0a3(0x161)][_0x4ea0a3(0x251)]?_0x4f4da9[_0x4ea0a3(0x161)]:_0x119444[_0x4ea0a3(0x1ae)],typeof _0x1e4d8f['query'][_0x4ea0a3(0x18b)]===_0x4ea0a3(0x1d0)&&(_0x4f4da9[_0x4ea0a3(0x1f0)]=qs[_0x4ea0a3(0x1f0)](_0x1e4d8f[_0x4ea0a3(0x249)][_0x4ea0a3(0x1f0)]),_0x4f4da9[_0x4ea0a3(0x1e2)]=qs['offset'](_0x1e4d8f[_0x4ea0a3(0x249)][_0x4ea0a3(0x1e2)])),_0x4f4da9['order']=qs[_0x4ea0a3(0x1a8)](_0x1e4d8f[_0x4ea0a3(0x249)][_0x4ea0a3(0x1a8)]),_0x4f4da9[_0x4ea0a3(0x165)]=qs['filters'](_[_0x4ea0a3(0x1e3)](_0x1e4d8f[_0x4ea0a3(0x249)],_0x119444[_0x4ea0a3(0x20b)])),_0x4f4da9[_0x4ea0a3(0x165)][_0x4ea0a3(0x1dc)]=_0x1cffbc['id'],_0x1e4d8f['query'][_0x4ea0a3(0x159)]&&(_0x4f4da9[_0x4ea0a3(0x165)]=_[_0x4ea0a3(0x208)](_0x4f4da9['where'],{[Op['or']]:_[_0x4ea0a3(0x20a)](_0x4f4da9[_0x4ea0a3(0x161)],function(_0x1234e4){const _0x2dfc29=_0x4ea0a3,_0x5ab659={};return _0x5ab659[_0x1234e4]={[Op['like']]:'%'+_0x1e4d8f[_0x2dfc29(0x249)]['filter']+'%'},_0x5ab659;})})),_0x4f4da9[_0x4ea0a3(0x165)]['secret']=![],_0x1e4d8f['query']['id']&&(_0x4f4da9['where']['id']={[Op['gt']]:_0x1e4d8f[_0x4ea0a3(0x249)]['id']}),_0x4f4da9=_['merge']({},_0x4f4da9,_0x1e4d8f[_0x4ea0a3(0x223)]),db[_0x4ea0a3(0x19a)][_0x4ea0a3(0x1fd)]({'where':_0x4f4da9['where']})[_0x4ea0a3(0x1fc)](function(_0x5deb3c){const _0x64da11=_0x4ea0a3;return _0x5aadb1['count']=_0x5deb3c,_0x4f4da9[_0x64da11(0x20e)]=[],_0x1e4d8f['query'][_0x64da11(0x1a9)]&&_0x4f4da9[_0x64da11(0x20e)][_0x64da11(0x1ab)]({'model':db['User'],'as':'User','attributes':['id',_0x64da11(0x268),_0x64da11(0x22e)]}),_0x1e4d8f[_0x64da11(0x249)][_0x64da11(0x1c1)]&&(_0x4f4da9[_0x64da11(0x20e)]=[{'all':!![]}]),db[_0x64da11(0x19a)][_0x64da11(0x1d6)](_0x4f4da9);})['then'](function(_0x18a5be){const _0x3e108e=_0x4ea0a3;return _0x5aadb1[_0x3e108e(0x22a)]=_0x18a5be,_0x5aadb1;});})['then'](respondWithFilteredResult(_0x23f817,_0x4f4da9))[_0x46c26c(0x1e1)](handleError(_0x23f817,null));},exports[a80_0x1ef0c1(0x237)]=function(_0x3e8c9d,_0x3f701f){const _0x58bd72=a80_0x1ef0c1;return db[_0x58bd72(0x1a4)]['findOne']({'where':{'id':_0x3e8c9d[_0x58bd72(0x254)]['id']}})[_0x58bd72(0x1fc)](function(_0xe05599){const _0x458b58=_0x58bd72;if(_0xe05599)return _0xe05599['setTags'](_0x3e8c9d[_0x458b58(0x1c4)][_0x458b58(0x204)],{'through':_['omit'](_0x3e8c9d[_0x458b58(0x1c4)],[_0x458b58(0x204),'id'])})['then'](function(){const _0x2c908c=_0x458b58;return db[_0x2c908c(0x220)][_0x2c908c(0x1d6)]({'attributes':['id',_0x2c908c(0x1f4),'color'],'where':{'id':_0x3e8c9d[_0x2c908c(0x1c4)][_0x2c908c(0x204)]}});})['then'](function(_0x477aa8){const _0x229829=_0x458b58;return socket[_0x229829(0x20c)](_0x229829(0x23c),{'id':Number(_0x3e8c9d[_0x229829(0x254)]['id']),'tags':_0x477aa8||[]}),{'id':Number(_0x3e8c9d[_0x229829(0x254)]['id']),'tags':_0x477aa8||[]};});})[_0x58bd72(0x1fc)](respondWithResult(_0x3f701f,null))[_0x58bd72(0x1e1)](handleError(_0x3f701f,null));},exports[a80_0x1ef0c1(0x207)]=function(_0x32c8f3,_0xa8bf1f){const _0x3af8d1=a80_0x1ef0c1;return db[_0x3af8d1(0x1a4)][_0x3af8d1(0x17b)]({'where':{'id':_0x32c8f3['params']['id']}})['then'](handleEntityNotFound(_0xa8bf1f,null))[_0x3af8d1(0x1fc)](function(_0x276636){const _0x2c3f49=_0x3af8d1;if(_0x276636)return _0x276636[_0x2c3f49(0x207)](_0x32c8f3[_0x2c3f49(0x249)]['ids']);})[_0x3af8d1(0x1fc)](respondWithStatusCode(_0xa8bf1f,null))['catch'](handleError(_0xa8bf1f,null));},exports[a80_0x1ef0c1(0x217)]=function(_0xcea1e8,_0x43ca5a){const _0x45cd12=a80_0x1ef0c1,_0x22b9d8=moment()['unix']()[_0x45cd12(0x257)](),_0x2608dc=path[_0x45cd12(0x243)](config[_0x45cd12(0x18e)],'files',_0x45cd12(0x157)),_0x3f45a9=path['join'](config[_0x45cd12(0x18e)],'server',_0x45cd12(0x235),_0x45cd12(0x1dd)),_0x54a4b6=path[_0x45cd12(0x243)](_0x2608dc,_0x22b9d8),_0x551928=util[_0x45cd12(0x1bc)](_0x45cd12(0x1c0),_0xcea1e8[_0x45cd12(0x254)]['id'],_0x22b9d8),_0x1baadb=path[_0x45cd12(0x243)](_0x2608dc,_0x551928),_0x2fbd04=[];_0x2fbd04[_0x45cd12(0x1ab)]({'model':db[_0x45cd12(0x256)],'as':_0x45cd12(0x256),'attributes':['id','fullname'],'raw':!![]}),_0x2fbd04[_0x45cd12(0x1ab)]({'model':db[_0x45cd12(0x15b)],'as':_0x45cd12(0x1e8),'attributes':['id',_0x45cd12(0x174),_0x45cd12(0x183)],'raw':!![]});_0xcea1e8[_0x45cd12(0x249)]['attachments']&&_0x2fbd04[_0x45cd12(0x1ab)]({'model':db[_0x45cd12(0x17d)],'as':_0x45cd12(0x17d),'raw':!![]});const _0x1d55ae=[{'model':db[_0x45cd12(0x19a)],'as':'Messages','attributes':['id','body',_0x45cd12(0x193),'direction',_0x45cd12(0x253),_0x45cd12(0x187)],'include':_0x2fbd04}];return _0x1d55ae[_0x45cd12(0x1ab)]({'model':db['ChatWebsite'],'as':'Account','attributes':['id',_0x45cd12(0x1f4)]}),_0x1d55ae[_0x45cd12(0x1ab)]({'model':db[_0x45cd12(0x256)],'as':_0x45cd12(0x1c2),'attributes':['id',_0x45cd12(0x268)]}),db[_0x45cd12(0x1a4)]['findOne']({'where':{'id':_0xcea1e8[_0x45cd12(0x254)]['id']},'include':_0x1d55ae})['then'](handleEntityNotFound(_0x43ca5a,null))[_0x45cd12(0x1fc)](function(_0x4b1cd0){const _0x5c00a1=_0x45cd12;if(_0x4b1cd0){const _0x23b071=_0x4b1cd0[_0x5c00a1(0x26f)]({'plain':!![]});fs[_0x5c00a1(0x21b)](_0x54a4b6);const _0x5ac862={'format':'A4','border':_0x5c00a1(0x1a3),'header':{'height':_0x5c00a1(0x19e),'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':_0x5c00a1(0x25d),'contents':{'default':util[_0x5c00a1(0x1bc)](_0x5c00a1(0x1d7),util[_0x5c00a1(0x1bc)](_0x5c00a1(0x1b8),_0x5c00a1(0x1c5),_0x23b071['id']),moment()[_0x5c00a1(0x1bc)]('YYYY-MM-DD')[_0x5c00a1(0x257)]())}}},_0x2fb077={'channel':_0x5c00a1(0x1c5),'account':_0x23b071[_0x5c00a1(0x175)][_0x5c00a1(0x1f4)],'agent':_0x23b071[_0x5c00a1(0x1c2)]?_0x23b071[_0x5c00a1(0x1c2)][_0x5c00a1(0x268)]:_0x5c00a1(0x23e),'createdAt':moment(_0x23b071[_0x5c00a1(0x193)])[_0x5c00a1(0x1bc)](_0x5c00a1(0x199))['toString'](),'closedAt':_0x23b071[_0x5c00a1(0x215)]?moment(_0x23b071[_0x5c00a1(0x212)])[_0x5c00a1(0x1bc)](_0x5c00a1(0x199))[_0x5c00a1(0x257)]():'','disposition':_0x23b071[_0x5c00a1(0x221)],'chatInfo':{'browser':_0x23b071['browserName'],'os':_0x23b071[_0x5c00a1(0x15a)],'referer':_0x23b071[_0x5c00a1(0x192)],'customerIp':_0x23b071[_0x5c00a1(0x218)],'customerPort':_0x23b071['customerPort']?_0x23b071['customerPort']:_0x5c00a1(0x23e)},'messages':_(_0x23b071[_0x5c00a1(0x276)])[_0x5c00a1(0x239)]()['filter']({'secret':![]})[_0x5c00a1(0x20a)](function(_0x926fed){const _0xc2b5a1=_0x5c00a1;if(_0x926fed[_0xc2b5a1(0x17d)]){const _0x1ddef2=path['join'](_0x3f45a9,_0x926fed[_0xc2b5a1(0x17d)][_0xc2b5a1(0x24c)]);fs[_0xc2b5a1(0x1d4)](_0x1ddef2)&&fs[_0xc2b5a1(0x1df)](_0x1ddef2)[_0xc2b5a1(0x1a7)](fs[_0xc2b5a1(0x1a5)](path[_0xc2b5a1(0x243)](_0x54a4b6,_0x926fed['Attachment'][_0xc2b5a1(0x24c)])));}return{'date':moment(_0x926fed[_0xc2b5a1(0x193)])['format']('YYYY-MM-DD\x20HH:mm:ss')['toString'](),'sender':_0x926fed[_0xc2b5a1(0x1ec)]===_0xc2b5a1(0x1a0)?_0x926fed[_0xc2b5a1(0x256)]?_0x926fed[_0xc2b5a1(0x256)][_0xc2b5a1(0x268)]:_0xc2b5a1(0x191):_0x926fed[_0xc2b5a1(0x1e8)][_0xc2b5a1(0x174)]+(_0x926fed['Contact']['lastName']?'\x20'+_0x926fed['Contact'][_0xc2b5a1(0x183)]:''),'body':_0x926fed[_0xc2b5a1(0x17d)]?_0x926fed[_0xc2b5a1(0x17d)][_0xc2b5a1(0x24c)]:_0x926fed[_0xc2b5a1(0x1c4)],'direction':_0x926fed['direction']===_0xc2b5a1(0x1a0)?'A':'C','secret':_0x926fed[_0xc2b5a1(0x253)],'read':_0x926fed[_0xc2b5a1(0x187)],'attachment':_0x926fed[_0xc2b5a1(0x17d)]};})[_0x5c00a1(0x21e)]()};return ejs[_0x5c00a1(0x164)](path['join'](config['root'],_0x5c00a1(0x180),_0x5c00a1(0x1d5),'downloadInteraction.html'),{'interaction':_0x2fb077})[_0x5c00a1(0x1fc)](function(_0xe96a02){return new Promise(function(_0x36182f,_0x6fb5f2){const _0x112730=a80_0x5088;pdf['create'](_0xe96a02,_0x5ac862)['toFile'](path[_0x112730(0x243)](_0x54a4b6,_0x112730(0x21c)+_0x23b071['id']+'-'+_0x22b9d8+_0x112730(0x156)),function(_0x2ca6e8,_0x5bcca1){if(_0x2ca6e8)return _0x6fb5f2(_0x2ca6e8);_0x36182f(_0x5bcca1);});});})['then'](function(){const _0x5cf2e2=_0x5c00a1;return new Promise(function(_0x2e11a8,_0x16ae1d){zipdir(_0x54a4b6,{'saveTo':_0x1baadb},function(_0x515a27,_0x286768){if(_0x515a27)return _0x16ae1d(_0x515a27);return _0x2e11a8(_0x286768);});})[_0x5cf2e2(0x1fc)](function(){return new Promise(function(_0x37eae7,_0x220527){rimraf(_0x54a4b6,function(_0x507961){if(_0x507961)_0x220527(_0x507961);return _0x37eae7();});});})[_0x5cf2e2(0x1fc)](function(){const _0x1b5f74=_0x5cf2e2;return _0x43ca5a[_0x1b5f74(0x217)](_0x1baadb,_0x551928,function(_0x398ce5){const _0x15e889=_0x1b5f74;_0x398ce5?console[_0x15e889(0x21a)](_0x15e889(0x23a),_0x398ce5):fs[_0x15e889(0x1c8)](_0x1baadb);});});});}else return _0x43ca5a[_0x5c00a1(0x246)](0xc8);})[_0x45cd12(0x1e1)](handleError(_0x43ca5a,null));}; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.events.js b/server/api/chatInteraction/chatInteraction.events.js index e1cc2a1..d2c6b12 100644 --- a/server/api/chatInteraction/chatInteraction.events.js +++ b/server/api/chatInteraction/chatInteraction.events.js @@ -1 +1 @@ -const a81_0x5429=['getUsers','remove','then','exports','setDataValue','../../mysqldb','length','Users','save','catch','setMaxListeners','unreadMessages','emit','map','undefined','findAll'];(function(_0x6f43ca,_0x5a6b08){const _0x5429ea=function(_0x41f49e){while(--_0x41f49e){_0x6f43ca['push'](_0x6f43ca['shift']());}};_0x5429ea(++_0x5a6b08);}(a81_0x5429,0x190));const a81_0x41f4=function(_0x6f43ca,_0x5a6b08){_0x6f43ca=_0x6f43ca-0x93;let _0x5429ea=a81_0x5429[_0x6f43ca];return _0x5429ea;};const a81_0x2863be=a81_0x41f4;'use strict';const EventEmitter=require('events'),ChatInteraction=require(a81_0x2863be(0x98))['db']['ChatInteraction'],ChatMessage=require(a81_0x2863be(0x98))['db']['ChatMessage'],ChatInteractionEvents=new EventEmitter();ChatInteractionEvents[a81_0x2863be(0x9d)](0x0);const events={'afterCreate':a81_0x2863be(0x9b),'afterUpdate':'update','afterDestroy':a81_0x2863be(0x94)};function emitEvent(_0x5f091a){return function(_0x3f1be0){const _0x262764=a81_0x41f4;_0x3f1be0[_0x262764(0x93)]({'attributes':['id'],'raw':!![]})[_0x262764(0x95)](function(_0x742deb){const _0x182463=_0x262764;return _0x3f1be0['setDataValue'](_0x182463(0x9a),_0x742deb[_0x182463(0xa0)](function(_0x2775b6){return{'id':_0x2775b6['id']};})),ChatMessage[_0x182463(0xa2)]({'where':{'ChatInteractionId':_0x3f1be0['id'],'direction':'in','read':![]},'raw':!![]});})[_0x262764(0x95)](function(_0x28764b){const _0x2f2336=_0x262764;_0x3f1be0[_0x2f2336(0x97)](_0x2f2336(0x9e),_0x28764b[_0x2f2336(0x99)]),ChatInteractionEvents[_0x2f2336(0x9f)](_0x5f091a+':'+_0x3f1be0['id'],_0x3f1be0),ChatInteractionEvents[_0x2f2336(0x9f)](_0x5f091a,_0x3f1be0);})[_0x262764(0x9c)](()=>{});};}for(const e in events){if(typeof events[e]!==a81_0x2863be(0xa1)){const event=events[e];ChatInteraction['addHook'](e,emitEvent(event));}}module[a81_0x2863be(0x96)]=ChatInteractionEvents; \ No newline at end of file +const a81_0x1d2d=['setDataValue','exports','Users','map','events','getUsers','../../mysqldb','ChatMessage','length','save','undefined','then','ChatInteraction','emit','findAll','setMaxListeners','update','unreadMessages','addHook'];(function(_0x3bfa2a,_0x1f003e){const _0x1d2d47=function(_0x2e644c){while(--_0x2e644c){_0x3bfa2a['push'](_0x3bfa2a['shift']());}};_0x1d2d47(++_0x1f003e);}(a81_0x1d2d,0x1ee));const a81_0x2e64=function(_0x3bfa2a,_0x1f003e){_0x3bfa2a=_0x3bfa2a-0xe4;let _0x1d2d47=a81_0x1d2d[_0x3bfa2a];return _0x1d2d47;};const a81_0x32543e=a81_0x2e64;'use strict';const EventEmitter=require(a81_0x32543e(0xe8)),ChatInteraction=require(a81_0x32543e(0xea))['db'][a81_0x32543e(0xf0)],ChatMessage=require(a81_0x32543e(0xea))['db'][a81_0x32543e(0xeb)],ChatInteractionEvents=new EventEmitter();ChatInteractionEvents[a81_0x32543e(0xf3)](0x0);const events={'afterCreate':a81_0x32543e(0xed),'afterUpdate':a81_0x32543e(0xf4),'afterDestroy':'remove'};function emitEvent(_0x2546dd){return function(_0x2f5456){const _0x50f271=a81_0x2e64;_0x2f5456[_0x50f271(0xe9)]({'attributes':['id'],'raw':!![]})[_0x50f271(0xef)](function(_0x2e76d0){const _0x5a6479=_0x50f271;return _0x2f5456[_0x5a6479(0xe4)](_0x5a6479(0xe6),_0x2e76d0[_0x5a6479(0xe7)](function(_0x23b567){return{'id':_0x23b567['id']};})),ChatMessage[_0x5a6479(0xf2)]({'where':{'ChatInteractionId':_0x2f5456['id'],'direction':'in','read':![]},'raw':!![]});})['then'](function(_0x52a80f){const _0x395f19=_0x50f271;_0x2f5456[_0x395f19(0xe4)](_0x395f19(0xf5),_0x52a80f[_0x395f19(0xec)]),ChatInteractionEvents[_0x395f19(0xf1)](_0x2546dd+':'+_0x2f5456['id'],_0x2f5456),ChatInteractionEvents[_0x395f19(0xf1)](_0x2546dd,_0x2f5456);})['catch'](()=>{});};}for(const e in events){if(typeof events[e]!==a81_0x32543e(0xee)){const event=events[e];ChatInteraction[a81_0x32543e(0xf6)](e,emitEvent(event));}}module[a81_0x32543e(0xe5)]=ChatInteractionEvents; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.model.js b/server/api/chatInteraction/chatInteraction.model.js index cc7b428..d7e960d 100644 --- a/server/api/chatInteraction/chatInteraction.model.js +++ b/server/api/chatInteraction/chatInteraction.model.js @@ -1 +1 @@ -const a82_0x5ae2=['init','./chatInteraction.attributes','ChatInteraction','exports','function','sequelize'];(function(_0x3933eb,_0x5f0c83){const _0x5ae274=function(_0x2adb2c){while(--_0x2adb2c){_0x3933eb['push'](_0x3933eb['shift']());}};_0x5ae274(++_0x5f0c83);}(a82_0x5ae2,0x199));const a82_0x2adb=function(_0x3933eb,_0x5f0c83){_0x3933eb=_0x3933eb-0xd0;let _0x5ae274=a82_0x5ae2[_0x3933eb];return _0x5ae274;};const a82_0x2f1ef1=a82_0x2adb;'use strict';const {Model}=require(a82_0x2f1ef1(0xd4)),{attributes}=require(a82_0x2f1ef1(0xd0)),{options}=require('./chatInteraction.options');class ChatInteraction extends Model{}function init(_0x1c8785,_0x2b217c){const _0xc5c9b2=a82_0x2f1ef1,_0x1e2244=options(_0x1c8785),_0x3d1155=typeof _0x2b217c===_0xc5c9b2(0xd3)?_0x2b217c(_0x1e2244):_0x1e2244;return ChatInteraction[_0xc5c9b2(0xd5)](attributes,_0x3d1155),ChatInteraction;}module['exports'][a82_0x2f1ef1(0xd1)]=ChatInteraction,module[a82_0x2f1ef1(0xd2)][a82_0x2f1ef1(0xd5)]=init; \ No newline at end of file +const a82_0x3434=['ChatInteraction','function','init','./chatInteraction.attributes','./chatInteraction.options','sequelize','exports'];(function(_0x35e6b2,_0x6e3278){const _0x343455=function(_0x25517e){while(--_0x25517e){_0x35e6b2['push'](_0x35e6b2['shift']());}};_0x343455(++_0x6e3278);}(a82_0x3434,0x13c));const a82_0x2551=function(_0x35e6b2,_0x6e3278){_0x35e6b2=_0x35e6b2-0x80;let _0x343455=a82_0x3434[_0x35e6b2];return _0x343455;};const a82_0x2f834a=a82_0x2551;'use strict';const {Model}=require(a82_0x2f834a(0x84)),{attributes}=require(a82_0x2f834a(0x82)),{options}=require(a82_0x2f834a(0x83));class ChatInteraction extends Model{}function init(_0x3e11fc,_0x575f06){const _0x13ef9c=a82_0x2f834a,_0x2b0261=options(_0x3e11fc),_0x536552=typeof _0x575f06===_0x13ef9c(0x80)?_0x575f06(_0x2b0261):_0x2b0261;return ChatInteraction['init'](attributes,_0x536552),ChatInteraction;}module[a82_0x2f834a(0x85)][a82_0x2f834a(0x86)]=ChatInteraction,module['exports'][a82_0x2f834a(0x81)]=init; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.options.js b/server/api/chatInteraction/chatInteraction.options.js index 4654c53..07579ff 100644 --- a/server/api/chatInteraction/chatInteraction.options.js +++ b/server/api/chatInteraction/chatInteraction.options.js @@ -1 +1 @@ -const a83_0x227a=['YYYY-MM-DD\x20HH:mm:ss','options','closed','utf8mb4_unicode_ci','moment','format','utf8mb4','chat_interactions','closedAt'];(function(_0x2d6863,_0x5d9785){const _0x227aa0=function(_0x366859){while(--_0x366859){_0x2d6863['push'](_0x2d6863['shift']());}};_0x227aa0(++_0x5d9785);}(a83_0x227a,0xb2));const a83_0x3668=function(_0x2d6863,_0x5d9785){_0x2d6863=_0x2d6863-0x1e0;let _0x227aa0=a83_0x227a[_0x2d6863];return _0x227aa0;};const a83_0x1b4cc3=a83_0x3668,moment=require(a83_0x1b4cc3(0x1e6));function options(_0x1d2a42){const _0x4459f7=a83_0x1b4cc3;return{'sequelize':_0x1d2a42,'tableName':_0x4459f7(0x1e0),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x4482e1){const _0x37dcd9=_0x4459f7;_0x4482e1['changed'](_0x37dcd9(0x1e4))&&(_0x4482e1[_0x37dcd9(0x1e1)]=moment()[_0x37dcd9(0x1e7)](_0x37dcd9(0x1e2)));}},'charset':_0x4459f7(0x1e8),'collate':_0x4459f7(0x1e5)};}module['exports'][a83_0x1b4cc3(0x1e3)]=options; \ No newline at end of file +const a83_0x994e=['utf8mb4_unicode_ci','format','closedAt','exports','options','moment','chat_interactions','utf8mb4','closed'];(function(_0x273e9a,_0x56d554){const _0x994e66=function(_0x2a33c5){while(--_0x2a33c5){_0x273e9a['push'](_0x273e9a['shift']());}};_0x994e66(++_0x56d554);}(a83_0x994e,0x1cc));const a83_0x2a33=function(_0x273e9a,_0x56d554){_0x273e9a=_0x273e9a-0x64;let _0x994e66=a83_0x994e[_0x273e9a];return _0x994e66;};const a83_0x5be652=a83_0x2a33,moment=require(a83_0x5be652(0x68));function options(_0x54f059){const _0x3bb5ee=a83_0x5be652;return{'sequelize':_0x54f059,'tableName':_0x3bb5ee(0x69),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x13bb2d){const _0x6b69d6=_0x3bb5ee;_0x13bb2d['changed'](_0x6b69d6(0x6b))&&(_0x13bb2d[_0x6b69d6(0x65)]=moment()[_0x6b69d6(0x64)]('YYYY-MM-DD\x20HH:mm:ss'));}},'charset':_0x3bb5ee(0x6a),'collate':_0x3bb5ee(0x6c)};}module[a83_0x5be652(0x66)][a83_0x5be652(0x67)]=options; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.rpc.js b/server/api/chatInteraction/chatInteraction.rpc.js index 569dc17..67066d8 100644 --- a/server/api/chatInteraction/chatInteraction.rpc.js +++ b/server/api/chatInteraction/chatInteraction.rpc.js @@ -1 +1 @@ -const a84_0x3b9f=['update','AddTagsToChatInteraction','lodash','stringify','ChatInteraction','then','message','addTags','catch','../../config/logger','rpc','attributes','debug','where','UpdateChatInteraction','AddTags','body','limit','error','info','options','raw','ids','./chatInteraction.socket'];(function(_0x37f724,_0xc79104){const _0x3b9f1b=function(_0x4b34f0){while(--_0x4b34f0){_0x37f724['push'](_0x37f724['shift']());}};_0x3b9f1b(++_0xc79104);}(a84_0x3b9f,0xad));const a84_0x4b34=function(_0x37f724,_0xc79104){_0x37f724=_0x37f724-0x1aa;let _0x3b9f1b=a84_0x3b9f[_0x37f724];return _0x3b9f1b;};const a84_0x3729d9=a84_0x4b34;'use strict';const _=require(a84_0x3729d9(0x1bf)),db=require('../../mysqldb')['db'],logger=require(a84_0x3729d9(0x1ae))(a84_0x3729d9(0x1af)),{getSocket}=require('../../rediscache'),socket=getSocket();require(a84_0x3729d9(0x1bc))['register'](socket),exports[a84_0x3729d9(0x1b3)]=function(_0x5681ab){const _0x190768=this;return new Promise(function(_0x5d95ef,_0x2dd902){const _0x4b2b5e=a84_0x4b34;return db[_0x4b2b5e(0x1c1)][_0x4b2b5e(0x1bd)](_0x5681ab[_0x4b2b5e(0x1b5)],{'raw':_0x5681ab['options']?_0x5681ab[_0x4b2b5e(0x1b9)][_0x4b2b5e(0x1ba)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5681ab[_0x4b2b5e(0x1b9)]?_0x5681ab['options'][_0x4b2b5e(0x1b2)]||null:null,'attributes':_0x5681ab['options']?_0x5681ab['options'][_0x4b2b5e(0x1b0)]||null:null,'limit':_0x5681ab[_0x4b2b5e(0x1b9)]?_0x5681ab[_0x4b2b5e(0x1b9)][_0x4b2b5e(0x1b6)]||null:null})['then'](function(_0x4d3dd6){const _0x50637d=_0x4b2b5e;logger[_0x50637d(0x1b8)]('UpdateChatInteraction',_0x5681ab),logger[_0x50637d(0x1b1)](_0x50637d(0x1b3),_0x5681ab,JSON[_0x50637d(0x1c0)](_0x4d3dd6)),_0x5d95ef(_0x4d3dd6);})[_0x4b2b5e(0x1ad)](function(_0x150af8){const _0x4314d9=_0x4b2b5e;logger[_0x4314d9(0x1b7)](_0x4314d9(0x1b3),_0x150af8['message'],_0x5681ab),_0x2dd902(_0x190768[_0x4314d9(0x1b7)](0x1f4,_0x150af8['message']));});});},exports[a84_0x3729d9(0x1be)]=function(_0xcc83a4){const _0x86dcd5=this;return new Promise(function(_0x50cbfe,_0x554449){const _0x195968=a84_0x4b34;return db[_0x195968(0x1c1)]['findOne']({'where':_0xcc83a4[_0x195968(0x1b9)]?_0xcc83a4['options'][_0x195968(0x1b2)]||null:null})[_0x195968(0x1aa)](function(_0x2a9a11){const _0x81ed24=_0x195968;if(_0x2a9a11)return _0x2a9a11[_0x81ed24(0x1ac)](_0xcc83a4[_0x81ed24(0x1b5)][_0x81ed24(0x1bb)],{'through':_['omit'](_0xcc83a4[_0x81ed24(0x1b5)],[_0x81ed24(0x1bb),'id'])});})[_0x195968(0x1aa)](function([_0x37ed29]){const _0x4f422b=_0x195968;logger[_0x4f422b(0x1b8)](_0x4f422b(0x1b4),_0xcc83a4),logger[_0x4f422b(0x1b1)](_0x4f422b(0x1b4),_0xcc83a4,JSON[_0x4f422b(0x1c0)](_0x37ed29)),_0x50cbfe(_0x37ed29);})['catch'](function(_0x18b400){const _0x3b1208=_0x195968;logger[_0x3b1208(0x1b7)](_0x3b1208(0x1b4),_0x18b400[_0x3b1208(0x1ab)],_0xcc83a4),_0x554449(_0x86dcd5[_0x3b1208(0x1b7)](0x1f4,_0x18b400[_0x3b1208(0x1ab)]));});});}; \ No newline at end of file +const a84_0x3e04=['../../rediscache','options','message','lodash','then','body','stringify','limit','attributes','AddTagsToChatInteraction','catch','findOne','../../mysqldb','where','ids','UpdateChatInteraction','update','info','../../config/logger','ChatInteraction','debug','raw','error','AddTags'];(function(_0xb5e250,_0x306ae4){const _0x3e04dc=function(_0x141634){while(--_0x141634){_0xb5e250['push'](_0xb5e250['shift']());}};_0x3e04dc(++_0x306ae4);}(a84_0x3e04,0x1de));const a84_0x1416=function(_0xb5e250,_0x306ae4){_0xb5e250=_0xb5e250-0xfa;let _0x3e04dc=a84_0x3e04[_0xb5e250];return _0x3e04dc;};const a84_0x30fe56=a84_0x1416;'use strict';const _=require(a84_0x30fe56(0xff)),db=require(a84_0x30fe56(0x108))['db'],logger=require(a84_0x30fe56(0x10e))('rpc'),{getSocket}=require(a84_0x30fe56(0xfc)),socket=getSocket();require('./chatInteraction.socket')['register'](socket),exports[a84_0x30fe56(0x10b)]=function(_0x3bd101){const _0x47626d=this;return new Promise(function(_0xb65309,_0x254101){const _0x48af45=a84_0x1416;return db[_0x48af45(0x10f)][_0x48af45(0x10c)](_0x3bd101[_0x48af45(0x101)],{'raw':_0x3bd101[_0x48af45(0xfd)]?_0x3bd101[_0x48af45(0xfd)][_0x48af45(0x111)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3bd101['options']?_0x3bd101[_0x48af45(0xfd)][_0x48af45(0x109)]||null:null,'attributes':_0x3bd101[_0x48af45(0xfd)]?_0x3bd101[_0x48af45(0xfd)][_0x48af45(0x104)]||null:null,'limit':_0x3bd101[_0x48af45(0xfd)]?_0x3bd101[_0x48af45(0xfd)][_0x48af45(0x103)]||null:null})[_0x48af45(0x100)](function(_0x315b4c){const _0x3945d3=_0x48af45;logger[_0x3945d3(0x10d)](_0x3945d3(0x10b),_0x3bd101),logger[_0x3945d3(0x110)]('UpdateChatInteraction',_0x3bd101,JSON[_0x3945d3(0x102)](_0x315b4c)),_0xb65309(_0x315b4c);})[_0x48af45(0x106)](function(_0x5a477a){const _0x551392=_0x48af45;logger[_0x551392(0xfa)](_0x551392(0x10b),_0x5a477a[_0x551392(0xfe)],_0x3bd101),_0x254101(_0x47626d['error'](0x1f4,_0x5a477a['message']));});});},exports[a84_0x30fe56(0x105)]=function(_0x3f42b4){const _0x4c7a00=this;return new Promise(function(_0x5ca726,_0x3b7ef0){const _0x2dba93=a84_0x1416;return db[_0x2dba93(0x10f)][_0x2dba93(0x107)]({'where':_0x3f42b4[_0x2dba93(0xfd)]?_0x3f42b4[_0x2dba93(0xfd)][_0x2dba93(0x109)]||null:null})[_0x2dba93(0x100)](function(_0x55abd8){const _0x497ed5=_0x2dba93;if(_0x55abd8)return _0x55abd8['addTags'](_0x3f42b4[_0x497ed5(0x101)][_0x497ed5(0x10a)],{'through':_['omit'](_0x3f42b4[_0x497ed5(0x101)],[_0x497ed5(0x10a),'id'])});})[_0x2dba93(0x100)](function([_0x2d286a]){const _0x5cf802=_0x2dba93;logger[_0x5cf802(0x10d)](_0x5cf802(0xfb),_0x3f42b4),logger[_0x5cf802(0x110)](_0x5cf802(0xfb),_0x3f42b4,JSON[_0x5cf802(0x102)](_0x2d286a)),_0x5ca726(_0x2d286a);})[_0x2dba93(0x106)](function(_0x1eb27c){const _0x5c7fa7=_0x2dba93;logger[_0x5c7fa7(0xfa)](_0x5c7fa7(0xfb),_0x1eb27c[_0x5c7fa7(0xfe)],_0x3f42b4),_0x3b7ef0(_0x4c7a00['error'](0x1f4,_0x1eb27c[_0x5c7fa7(0xfe)]));});});}; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.socket.js b/server/api/chatInteraction/chatInteraction.socket.js index bbc5552..fa4585a 100644 --- a/server/api/chatInteraction/chatInteraction.socket.js +++ b/server/api/chatInteraction/chatInteraction.socket.js @@ -1 +1 @@ -const a85_0x2c41=['./chatInteraction.events','register','update','save','chatInteraction:'];(function(_0x4a4e90,_0x4f3cb2){const _0x2c41ad=function(_0x33323c){while(--_0x33323c){_0x4a4e90['push'](_0x4a4e90['shift']());}};_0x2c41ad(++_0x4f3cb2);}(a85_0x2c41,0x7b));const a85_0x3332=function(_0x4a4e90,_0x4f3cb2){_0x4a4e90=_0x4a4e90-0xff;let _0x2c41ad=a85_0x2c41[_0x4a4e90];return _0x2c41ad;};const a85_0x4bc047=a85_0x3332;'use strict';const ChatInteractionEvents=require(a85_0x4bc047(0x101)),events=[a85_0x4bc047(0xff),'remove',a85_0x4bc047(0x103)];function createListener(_0x18767e,_0x380f57){return function(_0x5aff5c){_0x380f57['emit'](_0x18767e,_0x5aff5c);};}exports[a85_0x4bc047(0x102)]=function(_0x23a4ba){const _0x245f7e=a85_0x4bc047;for(let _0xb77ca2=0x0,_0x38af19=events['length'];_0xb77ca2<_0x38af19;_0xb77ca2++){const _0x3d059c=events[_0xb77ca2],_0x5a6a5a=createListener(_0x245f7e(0x100)+_0x3d059c,_0x23a4ba);ChatInteractionEvents['on'](_0x3d059c,_0x5a6a5a);}}; \ No newline at end of file +const a85_0x2c6b=['emit','chatInteraction:','save','register','length','update','remove'];(function(_0x486f82,_0x5822a6){const _0x2c6b8d=function(_0x1c6688){while(--_0x1c6688){_0x486f82['push'](_0x486f82['shift']());}};_0x2c6b8d(++_0x5822a6);}(a85_0x2c6b,0x9c));const a85_0x1c66=function(_0x486f82,_0x5822a6){_0x486f82=_0x486f82-0x83;let _0x2c6b8d=a85_0x2c6b[_0x486f82];return _0x2c6b8d;};const a85_0x21ba0a=a85_0x1c66;'use strict';const ChatInteractionEvents=require('./chatInteraction.events'),events=[a85_0x21ba0a(0x83),a85_0x21ba0a(0x87),a85_0x21ba0a(0x86)];function createListener(_0x129e89,_0x5d1270){return function(_0x30bded){const _0x26f5d4=a85_0x1c66;_0x5d1270[_0x26f5d4(0x88)](_0x129e89,_0x30bded);};}exports[a85_0x21ba0a(0x84)]=function(_0x45c232){const _0x212bed=a85_0x21ba0a;for(let _0x9f319f=0x0,_0xd1fb02=events[_0x212bed(0x85)];_0x9f319f<_0xd1fb02;_0x9f319f++){const _0x24d972=events[_0x9f319f],_0x3f469d=createListener(_0x212bed(0x89)+_0x24d972,_0x45c232);ChatInteractionEvents['on'](_0x24d972,_0x3f469d);}}; \ No newline at end of file diff --git a/server/api/chatInteraction/index.js b/server/api/chatInteraction/index.js index 7935417..075d78a 100644 --- a/server/api/chatInteraction/index.js +++ b/server/api/chatInteraction/index.js @@ -1 +1 @@ -const a86_0x166a=['../../components/auth/service','../../config/environment','show','util','root','%s-%s','addTags','chat','/:id/download','join','chatinteraction:destroy','tracked','/:id/vidaoo','createVidaooSession','post','download','close','isChatInteractionAuthorized','create','delete','/:id/custom_update','attachmentDownload','server/files/attachments/','index','put','addMessage','../../components/interaction/service','multer','describe','./chatInteraction.controller','removeTags','abandon','get','express','now','attachmentUpload','/:id/my_messages','/:id/attachment_download','/describe','/:id/tags','chatinteraction:addtags','/:id/messages','getMyMessages','format','single','chatinteraction:update','/:id/close','getMessages','file','destroy','isAuthenticated','/:id'];(function(_0xa9bd0b,_0xe00b3c){const _0x166aa8=function(_0x1b19c9){while(--_0x1b19c9){_0xa9bd0b['push'](_0xa9bd0b['shift']());}};_0x166aa8(++_0xe00b3c);}(a86_0x166a,0x1b1));const a86_0x1b19=function(_0xa9bd0b,_0xe00b3c){_0xa9bd0b=_0xa9bd0b-0x1e5;let _0x166aa8=a86_0x166a[_0xa9bd0b];return _0x166aa8;};const a86_0x2d1bf4=a86_0x1b19;'use strict';const multer=require(a86_0x2d1bf4(0x1ef)),util=require(a86_0x2d1bf4(0x20b)),path=require('path'),express=require(a86_0x2d1bf4(0x1f5)),router=express['Router'](),auth=require(a86_0x2d1bf4(0x208)),interaction=require(a86_0x2d1bf4(0x1ee)),config=require(a86_0x2d1bf4(0x209)),controller=require(a86_0x2d1bf4(0x1f1));router[a86_0x2d1bf4(0x1f4)]('/',auth[a86_0x2d1bf4(0x206)](),controller[a86_0x2d1bf4(0x1eb)]),router[a86_0x2d1bf4(0x1f4)](a86_0x2d1bf4(0x1fa),auth[a86_0x2d1bf4(0x206)](),controller[a86_0x2d1bf4(0x1f0)]),router[a86_0x2d1bf4(0x1f4)]('/:id',auth[a86_0x2d1bf4(0x1e5)](),controller[a86_0x2d1bf4(0x20a)]),router[a86_0x2d1bf4(0x1f4)](a86_0x2d1bf4(0x1f9),auth[a86_0x2d1bf4(0x1e5)](),controller[a86_0x2d1bf4(0x1e9)]),router[a86_0x2d1bf4(0x1f4)](a86_0x2d1bf4(0x1fd),auth[a86_0x2d1bf4(0x206)](),controller[a86_0x2d1bf4(0x203)]),router[a86_0x2d1bf4(0x1f4)](a86_0x2d1bf4(0x1f8),auth[a86_0x2d1bf4(0x1e5)](),controller[a86_0x2d1bf4(0x1fe)]),router[a86_0x2d1bf4(0x1f4)](a86_0x2d1bf4(0x210),auth[a86_0x2d1bf4(0x206)](),controller[a86_0x2d1bf4(0x217)]),router[a86_0x2d1bf4(0x216)]('/',auth[a86_0x2d1bf4(0x206)](),controller[a86_0x2d1bf4(0x1e6)]),router['post'](a86_0x2d1bf4(0x214),auth[a86_0x2d1bf4(0x206)](),controller[a86_0x2d1bf4(0x215)]);const upload=multer({'storage':multer['diskStorage']({'destination':function(_0x10f2d9,_0x593514,_0x350856){const _0x1a85ed=a86_0x2d1bf4;_0x350856(null,path[_0x1a85ed(0x211)](config[_0x1a85ed(0x20c)],_0x1a85ed(0x1ea)));},'filename':function(_0x5ead44,_0x1b73c6,_0x3e5b53){const _0x25bbfc=a86_0x2d1bf4;_0x3e5b53(null,util[_0x25bbfc(0x1ff)](_0x25bbfc(0x20d),Date[_0x25bbfc(0x1f6)](),_0x1b73c6['originalname']['replace'](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[a86_0x2d1bf4(0x216)]('/:id/attachment_upload',upload[a86_0x2d1bf4(0x200)](a86_0x2d1bf4(0x204)),controller[a86_0x2d1bf4(0x1f7)]),router[a86_0x2d1bf4(0x216)]('/:id/messages',auth['isChatInteractionAuthorized'](),controller[a86_0x2d1bf4(0x1ed)]),router[a86_0x2d1bf4(0x216)](a86_0x2d1bf4(0x1fb),auth[a86_0x2d1bf4(0x206)](),interaction['tracked']('chat',a86_0x2d1bf4(0x1fc)),controller[a86_0x2d1bf4(0x20e)]),router[a86_0x2d1bf4(0x1ec)](a86_0x2d1bf4(0x207),auth[a86_0x2d1bf4(0x206)](),interaction[a86_0x2d1bf4(0x213)]('chat',a86_0x2d1bf4(0x201)),controller['update']),router['put'](a86_0x2d1bf4(0x1e8),controller['customUpdate']),router[a86_0x2d1bf4(0x1ec)]('/:id/abandon',auth['isChatInteractionAuthorized'](),controller[a86_0x2d1bf4(0x1f3)]),router[a86_0x2d1bf4(0x1ec)](a86_0x2d1bf4(0x202),controller[a86_0x2d1bf4(0x218)]),router['delete']('/:id',auth['isAuthenticated'](),interaction[a86_0x2d1bf4(0x213)](a86_0x2d1bf4(0x20f),a86_0x2d1bf4(0x212)),controller[a86_0x2d1bf4(0x205)]),router[a86_0x2d1bf4(0x1e7)]('/:id/tags',auth[a86_0x2d1bf4(0x206)](),controller[a86_0x2d1bf4(0x1f2)]),module['exports']=router; \ No newline at end of file +const a86_0x17ae=['/:id/custom_update','/:id/attachment_upload','now','chatinteraction:update','chat','create','/:id/abandon','download','post','get','createVidaooSession','/:id','../../components/auth/service','single','exports','Router','root','/:id/vidaoo','./chatInteraction.controller','describe','show','/:id/tags','/:id/download','getMyMessages','getMessages','/:id/attachment_download','originalname','join','file','isAuthenticated','chatinteraction:destroy','destroy','/:id/close','path','addTags','../../components/interaction/service','chatinteraction:addtags','%s-%s','addMessage','/describe','diskStorage','attachmentDownload','close','attachmentUpload','removeTags','put','util','tracked','customUpdate','isChatInteractionAuthorized','delete'];(function(_0x134cde,_0xce8fa6){const _0x17ae49=function(_0x33aaf3){while(--_0x33aaf3){_0x134cde['push'](_0x134cde['shift']());}};_0x17ae49(++_0xce8fa6);}(a86_0x17ae,0xe6));const a86_0x33aa=function(_0x134cde,_0xce8fa6){_0x134cde=_0x134cde-0x1c9;let _0x17ae49=a86_0x17ae[_0x134cde];return _0x17ae49;};const a86_0x49e105=a86_0x33aa;'use strict';const multer=require('multer'),util=require(a86_0x49e105(0x1dd)),path=require(a86_0x49e105(0x1d0)),express=require('express'),router=express[a86_0x49e105(0x1f1)](),auth=require(a86_0x49e105(0x1ee)),interaction=require(a86_0x49e105(0x1d2)),config=require('../../config/environment'),controller=require(a86_0x49e105(0x1f4));router[a86_0x49e105(0x1eb)]('/',auth['isAuthenticated'](),controller['index']),router['get'](a86_0x49e105(0x1d6),auth[a86_0x49e105(0x1cc)](),controller[a86_0x49e105(0x1f5)]),router[a86_0x49e105(0x1eb)](a86_0x49e105(0x1ed),auth[a86_0x49e105(0x1e0)](),controller[a86_0x49e105(0x1f6)]),router[a86_0x49e105(0x1eb)](a86_0x49e105(0x1fb),auth[a86_0x49e105(0x1e0)](),controller[a86_0x49e105(0x1d8)]),router[a86_0x49e105(0x1eb)]('/:id/messages',auth['isAuthenticated'](),controller[a86_0x49e105(0x1fa)]),router['get']('/:id/my_messages',auth[a86_0x49e105(0x1e0)](),controller[a86_0x49e105(0x1f9)]),router[a86_0x49e105(0x1eb)](a86_0x49e105(0x1f8),auth[a86_0x49e105(0x1cc)](),controller[a86_0x49e105(0x1e9)]),router[a86_0x49e105(0x1ea)]('/',auth[a86_0x49e105(0x1cc)](),controller[a86_0x49e105(0x1e7)]),router[a86_0x49e105(0x1ea)](a86_0x49e105(0x1f3),auth['isAuthenticated'](),controller[a86_0x49e105(0x1ec)]);const upload=multer({'storage':multer[a86_0x49e105(0x1d7)]({'destination':function(_0x5be93c,_0x20aed0,_0x5812d8){const _0xc8e0=a86_0x49e105;_0x5812d8(null,path[_0xc8e0(0x1ca)](config[_0xc8e0(0x1f2)],'server/files/attachments/'));},'filename':function(_0x2684de,_0x2ae162,_0x542a7b){const _0x7ceaac=a86_0x49e105;_0x542a7b(null,util['format'](_0x7ceaac(0x1d4),Date[_0x7ceaac(0x1e4)](),_0x2ae162[_0x7ceaac(0x1c9)]['replace'](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[a86_0x49e105(0x1ea)](a86_0x49e105(0x1e3),upload[a86_0x49e105(0x1ef)](a86_0x49e105(0x1cb)),controller[a86_0x49e105(0x1da)]),router[a86_0x49e105(0x1ea)]('/:id/messages',auth['isChatInteractionAuthorized'](),controller[a86_0x49e105(0x1d5)]),router['post']('/:id/tags',auth[a86_0x49e105(0x1cc)](),interaction[a86_0x49e105(0x1de)](a86_0x49e105(0x1e6),a86_0x49e105(0x1d3)),controller[a86_0x49e105(0x1d1)]),router['put'](a86_0x49e105(0x1ed),auth[a86_0x49e105(0x1cc)](),interaction[a86_0x49e105(0x1de)](a86_0x49e105(0x1e6),a86_0x49e105(0x1e5)),controller['update']),router[a86_0x49e105(0x1dc)](a86_0x49e105(0x1e2),controller[a86_0x49e105(0x1df)]),router[a86_0x49e105(0x1dc)](a86_0x49e105(0x1e8),auth['isChatInteractionAuthorized'](),controller['abandon']),router[a86_0x49e105(0x1dc)](a86_0x49e105(0x1cf),controller[a86_0x49e105(0x1d9)]),router['delete'](a86_0x49e105(0x1ed),auth[a86_0x49e105(0x1cc)](),interaction[a86_0x49e105(0x1de)](a86_0x49e105(0x1e6),a86_0x49e105(0x1cd)),controller[a86_0x49e105(0x1ce)]),router[a86_0x49e105(0x1e1)](a86_0x49e105(0x1f7),auth[a86_0x49e105(0x1cc)](),controller[a86_0x49e105(0x1db)]),module[a86_0x49e105(0x1f0)]=router; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.attributes.js b/server/api/chatInternalMessage/chatInternalMessage.attributes.js index 9b0050a..1294cf5 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.attributes.js +++ b/server/api/chatInternalMessage/chatInternalMessage.attributes.js @@ -1 +1 @@ -const a87_0x4634=['BOOLEAN','INTEGER','sequelize','medium','TEXT','attributes'];(function(_0x537f27,_0x126f9a){const _0x4634dc=function(_0x31dcce){while(--_0x31dcce){_0x537f27['push'](_0x537f27['shift']());}};_0x4634dc(++_0x126f9a);}(a87_0x4634,0x1d1));const a87_0x31dc=function(_0x537f27,_0x126f9a){_0x537f27=_0x537f27-0x10c;let _0x4634dc=a87_0x4634[_0x537f27];return _0x4634dc;};const a87_0x22164a=a87_0x31dc;'use strict';const {DataTypes}=require(a87_0x22164a(0x111)),attributes={'body':{'type':DataTypes[a87_0x22164a(0x10d)]({'length':a87_0x22164a(0x10c)}),'allowNull':![]},'read':{'type':DataTypes[a87_0x22164a(0x10f)],'defaultValue':![]},'ChatInternalMessageId':{'type':DataTypes[a87_0x22164a(0x110)]}};module['exports'][a87_0x22164a(0x10e)]=attributes; \ No newline at end of file +const a87_0x3942=['BOOLEAN','TEXT','sequelize','medium','exports','attributes'];(function(_0xee0034,_0x42198e){const _0x3942ff=function(_0x200c68){while(--_0x200c68){_0xee0034['push'](_0xee0034['shift']());}};_0x3942ff(++_0x42198e);}(a87_0x3942,0xa9));const a87_0x200c=function(_0xee0034,_0x42198e){_0xee0034=_0xee0034-0x69;let _0x3942ff=a87_0x3942[_0xee0034];return _0x3942ff;};const a87_0x38486d=a87_0x200c;'use strict';const {DataTypes}=require(a87_0x38486d(0x6a)),attributes={'body':{'type':DataTypes[a87_0x38486d(0x69)]({'length':a87_0x38486d(0x6b)}),'allowNull':![]},'read':{'type':DataTypes[a87_0x38486d(0x6e)],'defaultValue':![]},'ChatInternalMessageId':{'type':DataTypes['INTEGER']}};module[a87_0x38486d(0x6c)][a87_0x38486d(0x6d)]=attributes; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.controller.js b/server/api/chatInternalMessage/chatInternalMessage.controller.js index 342b810..a26ef12 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.controller.js +++ b/server/api/chatInternalMessage/chatInternalMessage.controller.js @@ -1 +1 @@ -const a88_0x17d9=['filter','-online','update','User','push','lastMessageAt','VIRTUAL','key','user','sort','destroy','find','createdAt','stack','messages','getUsers','findAll','undefined','send','fieldName','params','where','then','./chatInternalMessage.socket','nolimit','lodash','sendStatus','body','count','internal','userpic','agent','ChatInternalMessage','merge','../../components/parsers/qs','show','format','api','options','rows','attributes','fields','catch','VoiceQueue','error','YYYY-MM-DD\x20HH:mm:ss','lastLoginAt','rawAttributes','../../rediscache','read','keys','name','type','map','query','set','filters','VoiceQueues','Agents','includeAll','describe','role','userProfileId','include','json','offset','index','end','online','UserProfileResource','intersection','findOne','model','like','sequelize','register','get','lastMessage','ToId','fullname','-createdAt','FromId','limit','admin','length','allowmessenger','status'];(function(_0x42ed89,_0x558a5a){const _0x17d96d=function(_0x5a2134){while(--_0x5a2134){_0x42ed89['push'](_0x42ed89['shift']());}};_0x17d96d(++_0x558a5a);}(a88_0x17d9,0x183));const a88_0x5a21=function(_0x42ed89,_0x558a5a){_0x42ed89=_0x42ed89-0x8f;let _0x17d96d=a88_0x17d9[_0x42ed89];return _0x17d96d;};const a88_0x190dc7=a88_0x5a21;'use strict';const moment=require('moment'),_=require(a88_0x190dc7(0xd8)),qs=require(a88_0x190dc7(0xe1)),logger=require('../../config/logger')(a88_0x190dc7(0xe4)),{getSocket}=require(a88_0x190dc7(0x98)),{db}=require('../../mysqldb'),{Op}=require(a88_0x190dc7(0xb2)),socket=getSocket();require(a88_0x190dc7(0xd6))[a88_0x190dc7(0xb3)](socket);function respondWithResult(_0x2621d0,_0x2e5b90){return _0x2e5b90=_0x2e5b90||0xc8,function(_0x55b323){const _0x2b8f7f=a88_0x5a21;if(_0x55b323)return _0x2621d0[_0x2b8f7f(0xbe)](_0x2e5b90)[_0x2b8f7f(0xa8)](_0x55b323);};}function respondWithFilteredResult(_0x316cbb,_0x23c0ae){return function(_0x2b9bc6){const _0x1cd9c4=a88_0x5a21;if(_0x2b9bc6){const _0xdf405e=_0x2b9bc6[_0x1cd9c4(0xdb)],_0x5c3357=_0x23c0ae[_0x1cd9c4(0xa9)];let _0x505241=_0x23c0ae['offset']+_0x23c0ae['limit'],_0x55ae05;return _0x505241>=_0xdf405e?(_0x505241=_0xdf405e,_0x55ae05=0xc8):_0x55ae05=0xce,_0x316cbb[_0x1cd9c4(0xbe)](_0x55ae05),_0x316cbb[_0x1cd9c4(0x9f)]('Content-Range',_0x5c3357+'-'+_0x505241+'/'+_0xdf405e)['json'](_0x2b9bc6);}return null;};}function saveUpdates(_0x520f6c){return function(_0x5accf3){const _0x5698d4=a88_0x5a21;if(_0x5accf3)return _0x5accf3[_0x5698d4(0xc1)](_0x520f6c)['then'](function(_0x341402){return _0x341402;});return null;};}function removeEntity(_0x5c288d){return function(_0x1c0e07){const _0x1e0e7a=a88_0x5a21;if(_0x1c0e07)return _0x1c0e07[_0x1e0e7a(0xc9)]()[_0x1e0e7a(0xd5)](function(){const _0x55effa=_0x1e0e7a;_0x5c288d[_0x55effa(0xbe)](0xcc)[_0x55effa(0xab)]();});};}function handleEntityNotFound(_0x1622d9){return function(_0x1ad774){const _0x5b9291=a88_0x5a21;return!_0x1ad774&&_0x1622d9[_0x5b9291(0xd9)](0x194),_0x1ad774;};}function handleError(_0x183d90,_0x17e216){return _0x17e216=_0x17e216||0x1f4,function(_0x13be21){const _0x5a06c6=a88_0x5a21;logger[_0x5a06c6(0x94)](_0x13be21[_0x5a06c6(0xcc)]),_0x13be21[_0x5a06c6(0x9b)]&&delete _0x13be21['name'],_0x183d90[_0x5a06c6(0xbe)](_0x17e216)[_0x5a06c6(0xd1)](_0x13be21);};}exports[a88_0x190dc7(0xaa)]=function(_0x5d5228,_0x5a9f44){const _0x254e43=a88_0x190dc7;let _0x5e4dc8={};const _0x4f3a04={},_0x1a6761={'count':0x0,'rows':[]},_0x18bf0e=_[_0x254e43(0x9d)](db['ChatInternalMessage'][_0x254e43(0x97)],function(_0x1871bd){const _0x3616f2=_0x254e43;return{'name':_0x1871bd[_0x3616f2(0xd2)],'type':_0x1871bd[_0x3616f2(0x9c)][_0x3616f2(0xc6)]};});_0x4f3a04[_0x254e43(0xb0)]=_['map'](_0x18bf0e,_0x254e43(0x9b)),_0x4f3a04[_0x254e43(0x9e)]=_[_0x254e43(0x9a)](_0x5d5228['query']),_0x4f3a04['filters']=_[_0x254e43(0xae)](_0x4f3a04[_0x254e43(0xb0)],_0x4f3a04[_0x254e43(0x9e)]),_0x5e4dc8[_0x254e43(0x90)]=_['intersection'](_0x4f3a04['model'],qs[_0x254e43(0x91)](_0x5d5228[_0x254e43(0x9e)][_0x254e43(0x91)])),_0x5e4dc8[_0x254e43(0x90)]=_0x5e4dc8['attributes'][_0x254e43(0xbc)]?_0x5e4dc8[_0x254e43(0x90)]:_0x4f3a04[_0x254e43(0xb0)];typeof _0x5d5228[_0x254e43(0x9e)][_0x254e43(0xd7)]===_0x254e43(0xd0)&&(_0x5e4dc8[_0x254e43(0xba)]=qs['limit'](_0x5d5228[_0x254e43(0x9e)]['limit']),_0x5e4dc8[_0x254e43(0xa9)]=qs[_0x254e43(0xa9)](_0x5d5228[_0x254e43(0x9e)][_0x254e43(0xa9)]));_0x5e4dc8['order']=qs[_0x254e43(0xc8)](_0x5d5228['query'][_0x254e43(0xc8)]),_0x5e4dc8[_0x254e43(0xd4)]=qs[_0x254e43(0xa0)](_['pick'](_0x5d5228[_0x254e43(0x9e)],_0x4f3a04['filters']),_0x18bf0e);_0x5d5228[_0x254e43(0x9e)][_0x254e43(0xbf)]&&(_0x5e4dc8[_0x254e43(0xd4)]=_[_0x254e43(0xe0)](_0x5e4dc8[_0x254e43(0xd4)],{[Op['or']]:_[_0x254e43(0x9d)](_0x18bf0e,function(_0x2ec65b){const _0x36789b=_0x254e43;if(_0x2ec65b[_0x36789b(0x9c)]!==_0x36789b(0xc5)){const _0x38c417={};return _0x38c417[_0x2ec65b['name']]={[Op[_0x36789b(0xb1)]]:'%'+_0x5d5228['query'][_0x36789b(0xbf)]+'%'},_0x38c417;}})}));_0x5e4dc8=_[_0x254e43(0xe0)]({},_0x5e4dc8,_0x5d5228['options']);const _0x42c888={'where':_0x5e4dc8['where']};return db[_0x254e43(0xdf)][_0x254e43(0xdb)](_0x42c888)['then'](function(_0x14a6e0){const _0x5c8149=_0x254e43;return _0x1a6761[_0x5c8149(0xdb)]=_0x14a6e0,_0x5d5228['query'][_0x5c8149(0xa3)]&&(_0x5e4dc8[_0x5c8149(0xa7)]=[{'all':!![]}]),db[_0x5c8149(0xdf)][_0x5c8149(0xcf)](_0x5e4dc8);})['then'](function(_0xecc840){const _0x446839=_0x254e43;return _0x1a6761[_0x446839(0x8f)]=_0xecc840,_0x1a6761;})[_0x254e43(0xd5)](respondWithFilteredResult(_0x5a9f44,_0x5e4dc8))[_0x254e43(0x92)](handleError(_0x5a9f44,null));},exports[a88_0x190dc7(0xe2)]=function(_0x2b2c4e,_0x2bd7b4){const _0x43dbf4=a88_0x190dc7;let _0x56b658={'raw':!![],'where':{'id':_0x2b2c4e[_0x43dbf4(0xd3)]['id']}};const _0x5962c7={};return _0x5962c7[_0x43dbf4(0xb0)]=_[_0x43dbf4(0x9a)](db[_0x43dbf4(0xdf)]['rawAttributes']),_0x5962c7[_0x43dbf4(0x9e)]=_[_0x43dbf4(0x9a)](_0x2b2c4e[_0x43dbf4(0x9e)]),_0x5962c7['filters']=_['intersection'](_0x5962c7[_0x43dbf4(0xb0)],_0x5962c7['query']),_0x56b658[_0x43dbf4(0x90)]=_[_0x43dbf4(0xae)](_0x5962c7[_0x43dbf4(0xb0)],qs['fields'](_0x2b2c4e['query']['fields'])),_0x56b658[_0x43dbf4(0x90)]=_0x56b658[_0x43dbf4(0x90)][_0x43dbf4(0xbc)]?_0x56b658[_0x43dbf4(0x90)]:_0x5962c7['model'],_0x2b2c4e[_0x43dbf4(0x9e)]['includeAll']&&(_0x56b658['include']=[{'all':!![]}]),_0x56b658=_[_0x43dbf4(0xe0)]({},_0x56b658,_0x2b2c4e[_0x43dbf4(0xe5)]),db['ChatInternalMessage'][_0x43dbf4(0xaf)](_0x56b658)[_0x43dbf4(0xd5)](handleEntityNotFound(_0x2bd7b4,null))['then'](respondWithResult(_0x2bd7b4,null))['catch'](handleError(_0x2bd7b4,null));},exports['create']=function(_0x58bf4f,_0x43c90c){const _0x392ade=a88_0x190dc7;return db[_0x392ade(0xdf)]['create'](_0x58bf4f[_0x392ade(0xda)],{})['then'](respondWithResult(_0x43c90c,0xc9))[_0x392ade(0x92)](handleError(_0x43c90c,null));},exports['update']=function(_0x41e294,_0x58313f){const _0x6e89fb=a88_0x190dc7;return _0x41e294['body']['id']&&delete _0x41e294[_0x6e89fb(0xda)]['id'],db['ChatInternalMessage'][_0x6e89fb(0xaf)]({'where':{'id':_0x41e294[_0x6e89fb(0xd3)]['id']}})['then'](handleEntityNotFound(_0x58313f,null))[_0x6e89fb(0xd5)](saveUpdates(_0x41e294['body'],null))[_0x6e89fb(0xd5)](respondWithResult(_0x58313f,null))['catch'](handleError(_0x58313f,null));},exports[a88_0x190dc7(0xc9)]=function(_0x119d5c,_0x23975b){const _0x240604=a88_0x190dc7;return db['ChatInternalMessage'][_0x240604(0xaf)]({'where':{'id':_0x119d5c['params']['id']}})[_0x240604(0xd5)](handleEntityNotFound(_0x23975b,null))[_0x240604(0xd5)](removeEntity(_0x23975b,null))['catch'](handleError(_0x23975b,null));},exports[a88_0x190dc7(0xa4)]=function(_0x49e916,_0x4002f0){const _0x4a258b=a88_0x190dc7;return db[_0x4a258b(0xdf)][_0x4a258b(0xa4)]()[_0x4a258b(0xd5)](respondWithResult(_0x4002f0,null))[_0x4a258b(0x92)](handleError(_0x4002f0,null));};function wrapUser(_0x4bbf3a){return function(_0x52497b){const _0x36b507=a88_0x5a21,_0x47f272=_0x4bbf3a['get']({'plain':!![]});return _0x47f272[_0x36b507(0xcd)]=[],_0x52497b?(_0x47f272[_0x36b507(0xc4)]=_0x52497b[_0x36b507(0xcb)],_0x47f272[_0x36b507(0xb5)]=_0x52497b):(_0x47f272['lastMessageAt']=moment(0x0)[_0x36b507(0xe3)](_0x36b507(0x95)),_0x47f272[_0x36b507(0xb5)]={}),_0x47f272;};}exports[a88_0x190dc7(0xce)]=function(_0x876375,_0x59242e){const _0x1b85dc=a88_0x190dc7;let _0x8abfd6=[];return db[_0x1b85dc(0xc2)][_0x1b85dc(0xcf)]({'where':{'role':[_0x1b85dc(0xde),_0x1b85dc(0xbb),_0x1b85dc(0xc7)]},'attributes':['id',_0x1b85dc(0xb7),_0x1b85dc(0x9b),_0x1b85dc(0xa5),_0x1b85dc(0xdd),_0x1b85dc(0xdc),_0x1b85dc(0xac),_0x1b85dc(0x96),_0x1b85dc(0xbd),'showWebBar'],'order':qs[_0x1b85dc(0xc8)](_0x1b85dc(0xc0)),'include':[{'model':db[_0x1b85dc(0x93)],'as':_0x1b85dc(0xa1),'attributes':['id',_0x1b85dc(0x9b),_0x1b85dc(0x9c)],'through':{'attributes':[]}}]})['then'](function(_0x541ec4){const _0x2a0ff5=_0x1b85dc;if(_0x541ec4){const _0x40e847=_0x876375[_0x2a0ff5(0xc7)][_0x2a0ff5(0xb4)]({'plain':!![]});if(!_0x40e847)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');return _0x40e847[_0x2a0ff5(0xa5)]===_0x2a0ff5(0xc7)?db['UserProfileSection'][_0x2a0ff5(0xaf)]({'where':{'name':_0x2a0ff5(0xa2),'userProfileId':_0x40e847[_0x2a0ff5(0xa6)]},'raw':!![]})[_0x2a0ff5(0xd5)](function(_0x134cf6){const _0x50d38c=_0x2a0ff5;if(_0x134cf6)return _0x134cf6['autoAssociation']===0x0?db[_0x50d38c(0xad)][_0x50d38c(0xcf)]({'where':{'sectionId':_0x134cf6['id']},'raw':!![]})['then'](function(_0x26204c){const _0xc502cc=_0x50d38c;let _0x3b6394=[];if(_['isEmpty'](_0x26204c))return _0x3b6394=_[_0xc502cc(0xbf)](_0x541ec4,function(_0x41fc0a){const _0x356b7b=_0xc502cc;if(_0x41fc0a[_0x356b7b(0xa5)]!==_0x356b7b(0xde))return _0x41fc0a;}),_0x3b6394;else{for(let _0x3b6338=0x0;_0x3b6338<_0x541ec4[_0xc502cc(0xbc)];_0x3b6338++){const _0x477858=_0x541ec4[_0x3b6338];if(_0x477858['role']==='agent'){const _0x2c7817=_[_0xc502cc(0xca)](_0x26204c,function(_0x3e4b03){return _0x3e4b03['resourceId']===_0x477858['id'];});if(_0x2c7817)_0x3b6394[_0xc502cc(0xc3)](_0x477858);}else _0x3b6394[_0xc502cc(0xc3)](_0x477858);}return _0x3b6394;}}):_0x541ec4;else{const _0x363694=_['filter'](_0x541ec4,function(_0xe65ab1){const _0x5db766=_0x50d38c;if(_0xe65ab1[_0x5db766(0xa5)]!==_0x5db766(0xde))return _0xe65ab1;});return _0x363694;}}):_0x541ec4;}})[_0x1b85dc(0xd5)](function(_0x3bc021){const _0x5f3a99=_0x1b85dc,_0x561a17=[];if(_0x3bc021){_0x8abfd6=_0x3bc021;for(let _0x4907a8=0x0;_0x4907a8<_0x3bc021['length'];_0x4907a8+=0x1){_0x8abfd6[_0x4907a8][_0x5f3a99(0xcd)]=[],_0x561a17[_0x5f3a99(0xc3)](db[_0x5f3a99(0xdf)][_0x5f3a99(0xaf)]({'where':{'FromId':[_0x876375[_0x5f3a99(0xc7)]['id'],_0x3bc021[_0x4907a8]['id']],'ToId':[_0x876375[_0x5f3a99(0xc7)]['id'],_0x3bc021[_0x4907a8]['id']],'ChatGroupId':null},'attributes':['id','createdAt',_0x5f3a99(0xb9),_0x5f3a99(0xb6),_0x5f3a99(0x99),_0x5f3a99(0xda)],'order':qs[_0x5f3a99(0xc8)](_0x5f3a99(0xb8)),'limit':0x1,'offset':0x0,'raw':!![]})['then'](wrapUser(_0x3bc021[_0x4907a8])));}return Promise['all'](_0x561a17);}return[];})[_0x1b85dc(0xd5)](function(_0x497822){const _0x1a376c=_0x1b85dc;return{'rows':_0x497822,'count':_0x497822[_0x1a376c(0xbc)]};})[_0x1b85dc(0xd5)](respondWithResult(_0x59242e,null))[_0x1b85dc(0x92)](handleError(_0x59242e,null));}; \ No newline at end of file +const a88_0x54c2=['user','Content-Range','userpic','limit','lastMessage','like','type','status','end','read','query','../../rediscache','map','keys','get','includeAll','ToId','rawAttributes','Unable\x20to\x20retrieve\x20the\x20current\x20user','sort','autoAssociation','filters','sequelize','undefined','error','show','findOne','../../config/logger','createdAt','nolimit','send','body','offset','all','params','resourceId','length','-createdAt','api','agent','describe','findAll','messages','set','allowmessenger','update','filter','online','attributes','register','key','role','stack','name','intersection','model','then','admin','push','VIRTUAL','ChatInternalMessage','YYYY-MM-DD\x20HH:mm:ss','format','merge','order','catch','fields','index','where','lastLoginAt','destroy','lastMessageAt','fullname','include','./chatInternalMessage.socket','userProfileId','pick','rows','count','isEmpty','sendStatus','internal','create','find','fieldName','-online','lodash','Agents'];(function(_0x4fb3fb,_0x2768e9){const _0x54c2d1=function(_0x3c2fef){while(--_0x3c2fef){_0x4fb3fb['push'](_0x4fb3fb['shift']());}};_0x54c2d1(++_0x2768e9);}(a88_0x54c2,0x175));const a88_0x3c2f=function(_0x4fb3fb,_0x2768e9){_0x4fb3fb=_0x4fb3fb-0x10e;let _0x54c2d1=a88_0x54c2[_0x4fb3fb];return _0x54c2d1;};const a88_0x531648=a88_0x3c2f;'use strict';const moment=require('moment'),_=require(a88_0x531648(0x14f)),qs=require('../../components/parsers/qs'),logger=require(a88_0x531648(0x114))(a88_0x531648(0x11f)),{getSocket}=require(a88_0x531648(0x15c)),{db}=require('../../mysqldb'),{Op}=require(a88_0x531648(0x10f)),socket=getSocket();require(a88_0x531648(0x143))[a88_0x531648(0x12a)](socket);function respondWithResult(_0x4a7add,_0x3b04f7){return _0x3b04f7=_0x3b04f7||0xc8,function(_0x199658){const _0x31d388=a88_0x3c2f;if(_0x199658)return _0x4a7add[_0x31d388(0x158)](_0x3b04f7)['json'](_0x199658);};}function respondWithFilteredResult(_0x10b273,_0x3d1e72){return function(_0xac6934){const _0x567b9c=a88_0x3c2f;if(_0xac6934){const _0x351cd0=_0xac6934['count'],_0x28b6a=_0x3d1e72[_0x567b9c(0x119)];let _0x3f5fe7=_0x3d1e72[_0x567b9c(0x119)]+_0x3d1e72[_0x567b9c(0x154)],_0x1ddcb3;return _0x3f5fe7>=_0x351cd0?(_0x3f5fe7=_0x351cd0,_0x1ddcb3=0xc8):_0x1ddcb3=0xce,_0x10b273[_0x567b9c(0x158)](_0x1ddcb3),_0x10b273[_0x567b9c(0x124)](_0x567b9c(0x152),_0x28b6a+'-'+_0x3f5fe7+'/'+_0x351cd0)['json'](_0xac6934);}return null;};}function saveUpdates(_0x18704e){return function(_0x6aae2b){const _0x141655=a88_0x3c2f;if(_0x6aae2b)return _0x6aae2b[_0x141655(0x126)](_0x18704e)['then'](function(_0x3b1820){return _0x3b1820;});return null;};}function removeEntity(_0x1214b5){return function(_0x58363f){const _0xeeae06=a88_0x3c2f;if(_0x58363f)return _0x58363f[_0xeeae06(0x13f)]()[_0xeeae06(0x131)](function(){const _0x400169=_0xeeae06;_0x1214b5[_0x400169(0x158)](0xcc)[_0x400169(0x159)]();});};}function handleEntityNotFound(_0x57d117){return function(_0xa97525){const _0x1d64f0=a88_0x3c2f;return!_0xa97525&&_0x57d117[_0x1d64f0(0x149)](0x194),_0xa97525;};}function handleError(_0x48cede,_0x36ce26){return _0x36ce26=_0x36ce26||0x1f4,function(_0x51325e){const _0x337ebb=a88_0x3c2f;logger[_0x337ebb(0x111)](_0x51325e[_0x337ebb(0x12d)]),_0x51325e[_0x337ebb(0x12e)]&&delete _0x51325e['name'],_0x48cede['status'](_0x36ce26)[_0x337ebb(0x117)](_0x51325e);};}exports[a88_0x531648(0x13c)]=function(_0x1de9c4,_0x2fa2d1){const _0x3a8a80=a88_0x531648;let _0x3d250d={};const _0x435748={},_0x55adcd={'count':0x0,'rows':[]},_0x10beae=_['map'](db['ChatInternalMessage'][_0x3a8a80(0x162)],function(_0x51c521){const _0x411fbf=_0x3a8a80;return{'name':_0x51c521[_0x411fbf(0x14d)],'type':_0x51c521['type'][_0x411fbf(0x12b)]};});_0x435748[_0x3a8a80(0x130)]=_[_0x3a8a80(0x15d)](_0x10beae,_0x3a8a80(0x12e)),_0x435748[_0x3a8a80(0x15b)]=_['keys'](_0x1de9c4['query']),_0x435748[_0x3a8a80(0x10e)]=_[_0x3a8a80(0x12f)](_0x435748[_0x3a8a80(0x130)],_0x435748[_0x3a8a80(0x15b)]),_0x3d250d[_0x3a8a80(0x129)]=_[_0x3a8a80(0x12f)](_0x435748[_0x3a8a80(0x130)],qs['fields'](_0x1de9c4[_0x3a8a80(0x15b)][_0x3a8a80(0x13b)])),_0x3d250d[_0x3a8a80(0x129)]=_0x3d250d[_0x3a8a80(0x129)]['length']?_0x3d250d[_0x3a8a80(0x129)]:_0x435748[_0x3a8a80(0x130)];typeof _0x1de9c4[_0x3a8a80(0x15b)][_0x3a8a80(0x116)]===_0x3a8a80(0x110)&&(_0x3d250d[_0x3a8a80(0x154)]=qs[_0x3a8a80(0x154)](_0x1de9c4[_0x3a8a80(0x15b)][_0x3a8a80(0x154)]),_0x3d250d[_0x3a8a80(0x119)]=qs[_0x3a8a80(0x119)](_0x1de9c4['query'][_0x3a8a80(0x119)]));_0x3d250d[_0x3a8a80(0x139)]=qs[_0x3a8a80(0x164)](_0x1de9c4[_0x3a8a80(0x15b)]['sort']),_0x3d250d[_0x3a8a80(0x13d)]=qs['filters'](_[_0x3a8a80(0x145)](_0x1de9c4['query'],_0x435748['filters']),_0x10beae);_0x1de9c4[_0x3a8a80(0x15b)][_0x3a8a80(0x127)]&&(_0x3d250d[_0x3a8a80(0x13d)]=_[_0x3a8a80(0x138)](_0x3d250d[_0x3a8a80(0x13d)],{[Op['or']]:_[_0x3a8a80(0x15d)](_0x10beae,function(_0x2f457b){const _0x131274=_0x3a8a80;if(_0x2f457b['type']!==_0x131274(0x134)){const _0x28c050={};return _0x28c050[_0x2f457b[_0x131274(0x12e)]]={[Op[_0x131274(0x156)]]:'%'+_0x1de9c4[_0x131274(0x15b)][_0x131274(0x127)]+'%'},_0x28c050;}})}));_0x3d250d=_[_0x3a8a80(0x138)]({},_0x3d250d,_0x1de9c4['options']);const _0x5670d8={'where':_0x3d250d[_0x3a8a80(0x13d)]};return db[_0x3a8a80(0x135)][_0x3a8a80(0x147)](_0x5670d8)['then'](function(_0x256ca1){const _0x5611a3=_0x3a8a80;return _0x55adcd['count']=_0x256ca1,_0x1de9c4[_0x5611a3(0x15b)][_0x5611a3(0x160)]&&(_0x3d250d['include']=[{'all':!![]}]),db[_0x5611a3(0x135)][_0x5611a3(0x122)](_0x3d250d);})[_0x3a8a80(0x131)](function(_0x455a39){const _0x144759=_0x3a8a80;return _0x55adcd[_0x144759(0x146)]=_0x455a39,_0x55adcd;})[_0x3a8a80(0x131)](respondWithFilteredResult(_0x2fa2d1,_0x3d250d))['catch'](handleError(_0x2fa2d1,null));},exports[a88_0x531648(0x112)]=function(_0x179f08,_0x3e8c37){const _0x3a0191=a88_0x531648;let _0x5f1825={'raw':!![],'where':{'id':_0x179f08[_0x3a0191(0x11b)]['id']}};const _0x132382={};return _0x132382[_0x3a0191(0x130)]=_[_0x3a0191(0x15e)](db['ChatInternalMessage'][_0x3a0191(0x162)]),_0x132382[_0x3a0191(0x15b)]=_['keys'](_0x179f08[_0x3a0191(0x15b)]),_0x132382[_0x3a0191(0x10e)]=_['intersection'](_0x132382[_0x3a0191(0x130)],_0x132382[_0x3a0191(0x15b)]),_0x5f1825[_0x3a0191(0x129)]=_['intersection'](_0x132382[_0x3a0191(0x130)],qs['fields'](_0x179f08[_0x3a0191(0x15b)][_0x3a0191(0x13b)])),_0x5f1825[_0x3a0191(0x129)]=_0x5f1825['attributes'][_0x3a0191(0x11d)]?_0x5f1825[_0x3a0191(0x129)]:_0x132382[_0x3a0191(0x130)],_0x179f08[_0x3a0191(0x15b)][_0x3a0191(0x160)]&&(_0x5f1825[_0x3a0191(0x142)]=[{'all':!![]}]),_0x5f1825=_[_0x3a0191(0x138)]({},_0x5f1825,_0x179f08['options']),db[_0x3a0191(0x135)][_0x3a0191(0x113)](_0x5f1825)[_0x3a0191(0x131)](handleEntityNotFound(_0x3e8c37,null))[_0x3a0191(0x131)](respondWithResult(_0x3e8c37,null))[_0x3a0191(0x13a)](handleError(_0x3e8c37,null));},exports[a88_0x531648(0x14b)]=function(_0x45d7ce,_0x37371c){const _0x1de18a=a88_0x531648;return db[_0x1de18a(0x135)][_0x1de18a(0x14b)](_0x45d7ce[_0x1de18a(0x118)],{})[_0x1de18a(0x131)](respondWithResult(_0x37371c,0xc9))[_0x1de18a(0x13a)](handleError(_0x37371c,null));},exports[a88_0x531648(0x126)]=function(_0x17eb0c,_0xd91c52){const _0x376c83=a88_0x531648;return _0x17eb0c['body']['id']&&delete _0x17eb0c[_0x376c83(0x118)]['id'],db['ChatInternalMessage'][_0x376c83(0x113)]({'where':{'id':_0x17eb0c[_0x376c83(0x11b)]['id']}})[_0x376c83(0x131)](handleEntityNotFound(_0xd91c52,null))[_0x376c83(0x131)](saveUpdates(_0x17eb0c[_0x376c83(0x118)],null))['then'](respondWithResult(_0xd91c52,null))['catch'](handleError(_0xd91c52,null));},exports['destroy']=function(_0x36d6ca,_0x482346){const _0x571465=a88_0x531648;return db['ChatInternalMessage'][_0x571465(0x113)]({'where':{'id':_0x36d6ca['params']['id']}})[_0x571465(0x131)](handleEntityNotFound(_0x482346,null))[_0x571465(0x131)](removeEntity(_0x482346,null))[_0x571465(0x13a)](handleError(_0x482346,null));},exports[a88_0x531648(0x121)]=function(_0x53ff5d,_0x4b26e1){const _0x2a4879=a88_0x531648;return db[_0x2a4879(0x135)][_0x2a4879(0x121)]()[_0x2a4879(0x131)](respondWithResult(_0x4b26e1,null))[_0x2a4879(0x13a)](handleError(_0x4b26e1,null));};function wrapUser(_0x3cf9a5){return function(_0x30a171){const _0x4b127c=a88_0x3c2f,_0x597216=_0x3cf9a5[_0x4b127c(0x15f)]({'plain':!![]});return _0x597216[_0x4b127c(0x123)]=[],_0x30a171?(_0x597216[_0x4b127c(0x140)]=_0x30a171['createdAt'],_0x597216[_0x4b127c(0x155)]=_0x30a171):(_0x597216['lastMessageAt']=moment(0x0)[_0x4b127c(0x137)](_0x4b127c(0x136)),_0x597216[_0x4b127c(0x155)]={}),_0x597216;};}exports['getUsers']=function(_0x9aedb5,_0x317fbd){const _0x3199a7=a88_0x531648;let _0xa5e2b9=[];return db['User'][_0x3199a7(0x122)]({'where':{'role':['agent',_0x3199a7(0x132),_0x3199a7(0x151)]},'attributes':['id',_0x3199a7(0x141),_0x3199a7(0x12e),'role',_0x3199a7(0x153),_0x3199a7(0x14a),_0x3199a7(0x128),_0x3199a7(0x13e),_0x3199a7(0x125),'showWebBar'],'order':qs[_0x3199a7(0x164)](_0x3199a7(0x14e)),'include':[{'model':db['VoiceQueue'],'as':'VoiceQueues','attributes':['id',_0x3199a7(0x12e),_0x3199a7(0x157)],'through':{'attributes':[]}}]})[_0x3199a7(0x131)](function(_0x8c55b1){const _0x48cd51=_0x3199a7;if(_0x8c55b1){const _0x58c466=_0x9aedb5['user'][_0x48cd51(0x15f)]({'plain':!![]});if(!_0x58c466)throw new Error(_0x48cd51(0x163));return _0x58c466[_0x48cd51(0x12c)]==='user'?db['UserProfileSection'][_0x48cd51(0x113)]({'where':{'name':_0x48cd51(0x150),'userProfileId':_0x58c466[_0x48cd51(0x144)]},'raw':!![]})[_0x48cd51(0x131)](function(_0xd87f07){const _0x55fd2c=_0x48cd51;if(_0xd87f07)return _0xd87f07[_0x55fd2c(0x165)]===0x0?db['UserProfileResource'][_0x55fd2c(0x122)]({'where':{'sectionId':_0xd87f07['id']},'raw':!![]})['then'](function(_0xce61df){const _0x13d38d=_0x55fd2c;let _0x4e82f1=[];if(_[_0x13d38d(0x148)](_0xce61df))return _0x4e82f1=_[_0x13d38d(0x127)](_0x8c55b1,function(_0x5727e8){const _0x2f90e3=_0x13d38d;if(_0x5727e8[_0x2f90e3(0x12c)]!==_0x2f90e3(0x120))return _0x5727e8;}),_0x4e82f1;else{for(let _0x2de908=0x0;_0x2de908<_0x8c55b1[_0x13d38d(0x11d)];_0x2de908++){const _0x2b6a9b=_0x8c55b1[_0x2de908];if(_0x2b6a9b[_0x13d38d(0x12c)]==='agent'){const _0x493595=_[_0x13d38d(0x14c)](_0xce61df,function(_0x3255b5){const _0x1bf655=_0x13d38d;return _0x3255b5[_0x1bf655(0x11c)]===_0x2b6a9b['id'];});if(_0x493595)_0x4e82f1['push'](_0x2b6a9b);}else _0x4e82f1['push'](_0x2b6a9b);}return _0x4e82f1;}}):_0x8c55b1;else{const _0xfcc44e=_[_0x55fd2c(0x127)](_0x8c55b1,function(_0x1e292d){const _0x471241=_0x55fd2c;if(_0x1e292d['role']!==_0x471241(0x120))return _0x1e292d;});return _0xfcc44e;}}):_0x8c55b1;}})['then'](function(_0x2c4dca){const _0x30a7cb=_0x3199a7,_0x62038e=[];if(_0x2c4dca){_0xa5e2b9=_0x2c4dca;for(let _0x2f0025=0x0;_0x2f0025<_0x2c4dca[_0x30a7cb(0x11d)];_0x2f0025+=0x1){_0xa5e2b9[_0x2f0025][_0x30a7cb(0x123)]=[],_0x62038e[_0x30a7cb(0x133)](db[_0x30a7cb(0x135)][_0x30a7cb(0x113)]({'where':{'FromId':[_0x9aedb5['user']['id'],_0x2c4dca[_0x2f0025]['id']],'ToId':[_0x9aedb5[_0x30a7cb(0x151)]['id'],_0x2c4dca[_0x2f0025]['id']],'ChatGroupId':null},'attributes':['id',_0x30a7cb(0x115),'FromId',_0x30a7cb(0x161),_0x30a7cb(0x15a),'body'],'order':qs[_0x30a7cb(0x164)](_0x30a7cb(0x11e)),'limit':0x1,'offset':0x0,'raw':!![]})[_0x30a7cb(0x131)](wrapUser(_0x2c4dca[_0x2f0025])));}return Promise[_0x30a7cb(0x11a)](_0x62038e);}return[];})[_0x3199a7(0x131)](function(_0x387768){return{'rows':_0x387768,'count':_0x387768['length']};})[_0x3199a7(0x131)](respondWithResult(_0x317fbd,null))[_0x3199a7(0x13a)](handleError(_0x317fbd,null));}; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.events.js b/server/api/chatInternalMessage/chatInternalMessage.events.js index 0e244a5..0ee8f09 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.events.js +++ b/server/api/chatInternalMessage/chatInternalMessage.events.js @@ -1 +1 @@ -const a89_0x3874=['update','events','exports','ChatInternalMessage','addHook'];(function(_0x4fcdda,_0xe0febd){const _0x387465=function(_0x2719a1){while(--_0x2719a1){_0x4fcdda['push'](_0x4fcdda['shift']());}};_0x387465(++_0xe0febd);}(a89_0x3874,0x110));const a89_0x2719=function(_0x4fcdda,_0xe0febd){_0x4fcdda=_0x4fcdda-0xfc;let _0x387465=a89_0x3874[_0x4fcdda];return _0x387465;};const a89_0x570c36=a89_0x2719;'use strict';const EventEmitter=require(a89_0x570c36(0x100)),ChatInternalMessage=require('../../mysqldb')['db'][a89_0x570c36(0xfd)],ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':a89_0x570c36(0xff),'afterDestroy':'remove'};function emitEvent(_0x147152){return function(_0x5eefc7){ChatInternalMessageEvents['emit'](_0x147152+':'+_0x5eefc7['id'],_0x5eefc7),ChatInternalMessageEvents['emit'](_0x147152,_0x5eefc7);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];ChatInternalMessage[a89_0x570c36(0xfe)](e,emitEvent(event));}}module[a89_0x570c36(0xfc)]=ChatInternalMessageEvents; \ No newline at end of file +const a89_0x5c51=['emit','setMaxListeners','exports','ChatInternalMessage','events','save','addHook','update'];(function(_0x2fc5e2,_0x1449e4){const _0x5c51cd=function(_0x38b1e7){while(--_0x38b1e7){_0x2fc5e2['push'](_0x2fc5e2['shift']());}};_0x5c51cd(++_0x1449e4);}(a89_0x5c51,0x1f3));const a89_0x38b1=function(_0x2fc5e2,_0x1449e4){_0x2fc5e2=_0x2fc5e2-0xa3;let _0x5c51cd=a89_0x5c51[_0x2fc5e2];return _0x5c51cd;};const a89_0x4162ac=a89_0x38b1;'use strict';const EventEmitter=require(a89_0x4162ac(0xa4)),ChatInternalMessage=require('../../mysqldb')['db'][a89_0x4162ac(0xa3)],ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents[a89_0x4162ac(0xa9)](0x0);const events={'afterCreate':a89_0x4162ac(0xa5),'afterUpdate':a89_0x4162ac(0xa7),'afterDestroy':'remove'};function emitEvent(_0x22b0ee){return function(_0x2ff424){const _0x58243c=a89_0x38b1;ChatInternalMessageEvents['emit'](_0x22b0ee+':'+_0x2ff424['id'],_0x2ff424),ChatInternalMessageEvents[_0x58243c(0xa8)](_0x22b0ee,_0x2ff424);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];ChatInternalMessage[a89_0x4162ac(0xa6)](e,emitEvent(event));}}module[a89_0x4162ac(0xaa)]=ChatInternalMessageEvents; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.model.js b/server/api/chatInternalMessage/chatInternalMessage.model.js index cb049a8..672705b 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.model.js +++ b/server/api/chatInternalMessage/chatInternalMessage.model.js @@ -1 +1 @@ -const a90_0x18f1=['ChatInternalMessage','sequelize','exports','./chatInternalMessage.attributes','init'];(function(_0x3d1ba1,_0x36057b){const _0x18f172=function(_0x350e9e){while(--_0x350e9e){_0x3d1ba1['push'](_0x3d1ba1['shift']());}};_0x18f172(++_0x36057b);}(a90_0x18f1,0x141));const a90_0x350e=function(_0x3d1ba1,_0x36057b){_0x3d1ba1=_0x3d1ba1-0x106;let _0x18f172=a90_0x18f1[_0x3d1ba1];return _0x18f172;};const a90_0x4ece00=a90_0x350e;'use strict';const {Model}=require(a90_0x4ece00(0x106)),{attributes}=require(a90_0x4ece00(0x108)),{options}=require('./chatInternalMessage.options');class ChatInternalMessage extends Model{}function init(_0x38f72a,_0x44958a){const _0x46822f=a90_0x4ece00,_0x5aa5f4=options(_0x38f72a),_0x53f610=typeof _0x44958a==='function'?_0x44958a(_0x5aa5f4):_0x5aa5f4;return ChatInternalMessage[_0x46822f(0x109)](attributes,_0x53f610),ChatInternalMessage;}module['exports'][a90_0x4ece00(0x10a)]=ChatInternalMessage,module[a90_0x4ece00(0x107)][a90_0x4ece00(0x109)]=init; \ No newline at end of file +const a90_0x33b6=['./chatInternalMessage.options','init','exports','sequelize','ChatInternalMessage','function','./chatInternalMessage.attributes'];(function(_0x37cd11,_0x5b7bc7){const _0x33b6a7=function(_0x419c41){while(--_0x419c41){_0x37cd11['push'](_0x37cd11['shift']());}};_0x33b6a7(++_0x5b7bc7);}(a90_0x33b6,0x118));const a90_0x419c=function(_0x37cd11,_0x5b7bc7){_0x37cd11=_0x37cd11-0x1e2;let _0x33b6a7=a90_0x33b6[_0x37cd11];return _0x33b6a7;};const a90_0x99c11d=a90_0x419c;'use strict';const {Model}=require(a90_0x99c11d(0x1e5)),{attributes}=require(a90_0x99c11d(0x1e8)),{options}=require(a90_0x99c11d(0x1e2));class ChatInternalMessage extends Model{}function init(_0x122455,_0x501750){const _0x216969=a90_0x99c11d,_0x542fea=options(_0x122455),_0x5c1a24=typeof _0x501750===_0x216969(0x1e7)?_0x501750(_0x542fea):_0x542fea;return ChatInternalMessage[_0x216969(0x1e3)](attributes,_0x5c1a24),ChatInternalMessage;}module[a90_0x99c11d(0x1e4)][a90_0x99c11d(0x1e6)]=ChatInternalMessage,module[a90_0x99c11d(0x1e4)][a90_0x99c11d(0x1e3)]=init; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.options.js b/server/api/chatInternalMessage/chatInternalMessage.options.js index 96d6350..3027749 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.options.js +++ b/server/api/chatInternalMessage/chatInternalMessage.options.js @@ -1 +1 @@ -var a91_0x2322=['exports','options','chat_internal_messages','utf8mb4_unicode_ci','utf8mb4'];(function(_0x28a580,_0x53f9b4){var _0x232242=function(_0x4a07f2){while(--_0x4a07f2){_0x28a580['push'](_0x28a580['shift']());}};_0x232242(++_0x53f9b4);}(a91_0x2322,0x106));var a91_0x4a07=function(_0x28a580,_0x53f9b4){_0x28a580=_0x28a580-0x64;var _0x232242=a91_0x2322[_0x28a580];return _0x232242;};var a91_0x5a3e32=a91_0x4a07;function options(_0x34d1b1){var _0x4329b5=a91_0x4a07;return{'sequelize':_0x34d1b1,'tableName':_0x4329b5(0x64),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x4329b5(0x66),'collate':_0x4329b5(0x65)};}module[a91_0x5a3e32(0x67)][a91_0x5a3e32(0x68)]=options; \ No newline at end of file +var a91_0x2976=['exports','utf8mb4_unicode_ci'];(function(_0x40ac8d,_0x47e656){var _0x29763a=function(_0x138d70){while(--_0x138d70){_0x40ac8d['push'](_0x40ac8d['shift']());}};_0x29763a(++_0x47e656);}(a91_0x2976,0xef));var a91_0x138d=function(_0x40ac8d,_0x47e656){_0x40ac8d=_0x40ac8d-0x115;var _0x29763a=a91_0x2976[_0x40ac8d];return _0x29763a;};var a91_0x54b24f=a91_0x138d;function options(_0x2210f3){var _0x168e36=a91_0x138d;return{'sequelize':_0x2210f3,'tableName':'chat_internal_messages','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x168e36(0x115)};}module[a91_0x54b24f(0x116)]['options']=options; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.rpc.js b/server/api/chatInternalMessage/chatInternalMessage.rpc.js index 236bb04..7d6bd39 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.rpc.js +++ b/server/api/chatInternalMessage/chatInternalMessage.rpc.js @@ -1 +1 @@ -const a92_0x673d=['./chatInternalMessage.socket','../../rediscache','register'];(function(_0x40425d,_0x1e5f76){const _0x673dc=function(_0x4703e8){while(--_0x4703e8){_0x40425d['push'](_0x40425d['shift']());}};_0x673dc(++_0x1e5f76);}(a92_0x673d,0x8b));const a92_0x4703=function(_0x40425d,_0x1e5f76){_0x40425d=_0x40425d-0x167;let _0x673dc=a92_0x673d[_0x40425d];return _0x673dc;};const a92_0xb1ff30=a92_0x4703;'use strict';const {getSocket}=require(a92_0xb1ff30(0x167)),socket=getSocket();require(a92_0xb1ff30(0x169))[a92_0xb1ff30(0x168)](socket); \ No newline at end of file +const a92_0x4373=['../../rediscache','register','./chatInternalMessage.socket'];(function(_0x52b00d,_0x350265){const _0x437325=function(_0x4203b5){while(--_0x4203b5){_0x52b00d['push'](_0x52b00d['shift']());}};_0x437325(++_0x350265);}(a92_0x4373,0xb6));const a92_0x4203=function(_0x52b00d,_0x350265){_0x52b00d=_0x52b00d-0x14a;let _0x437325=a92_0x4373[_0x52b00d];return _0x437325;};const a92_0x1d0a51=a92_0x4203;'use strict';const {getSocket}=require(a92_0x1d0a51(0x14b)),socket=getSocket();require(a92_0x1d0a51(0x14a))[a92_0x1d0a51(0x14c)](socket); \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.socket.js b/server/api/chatInternalMessage/chatInternalMessage.socket.js index 0fe5afc..0f15505 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.socket.js +++ b/server/api/chatInternalMessage/chatInternalMessage.socket.js @@ -1 +1 @@ -const a93_0x1ad3=['register','emit','remove','save','length','update'];(function(_0x255459,_0xa646a1){const _0x1ad325=function(_0x322ec7){while(--_0x322ec7){_0x255459['push'](_0x255459['shift']());}};_0x1ad325(++_0xa646a1);}(a93_0x1ad3,0x99));const a93_0x322e=function(_0x255459,_0xa646a1){_0x255459=_0x255459-0xd6;let _0x1ad325=a93_0x1ad3[_0x255459];return _0x1ad325;};const a93_0xe18fcb=a93_0x322e;'use strict';const ChatInternalMessageEvents=require('./chatInternalMessage.events'),events=[a93_0xe18fcb(0xd6),a93_0xe18fcb(0xdb),a93_0xe18fcb(0xd8)];function createListener(_0x193632,_0x4f7761){function _0x1b6419(_0x36753d){const _0x4042a0=a93_0x322e;_0x4f7761[_0x4042a0(0xda)](_0x193632,_0x36753d);}return _0x1b6419;}exports[a93_0xe18fcb(0xd9)]=function(_0x531256){const _0x29f3da=a93_0xe18fcb;for(let _0x5db1f9=0x0,_0x3b31b7=events[_0x29f3da(0xd7)];_0x5db1f9<_0x3b31b7;_0x5db1f9++){const _0x551d91=events[_0x5db1f9],_0x120db6=createListener('chatInternalMessage:'+_0x551d91,_0x531256);ChatInternalMessageEvents['on'](_0x551d91,_0x120db6);}}; \ No newline at end of file +const a93_0x4739=['./chatInternalMessage.events','chatInternalMessage:','register','emit'];(function(_0x349234,_0x335126){const _0x473956=function(_0x60b0d1){while(--_0x60b0d1){_0x349234['push'](_0x349234['shift']());}};_0x473956(++_0x335126);}(a93_0x4739,0x157));const a93_0x60b0=function(_0x349234,_0x335126){_0x349234=_0x349234-0x16d;let _0x473956=a93_0x4739[_0x349234];return _0x473956;};const a93_0x503d1c=a93_0x60b0;'use strict';const ChatInternalMessageEvents=require(a93_0x503d1c(0x16e)),events=['save','remove','update'];function createListener(_0x617152,_0x27b8da){function _0x21ea6e(_0x3052aa){const _0x1b0232=a93_0x60b0;_0x27b8da[_0x1b0232(0x16d)](_0x617152,_0x3052aa);}return _0x21ea6e;}exports[a93_0x503d1c(0x170)]=function(_0x4bdccc){const _0x104d6d=a93_0x503d1c;for(let _0x58f254=0x0,_0x30c12c=events['length'];_0x58f254<_0x30c12c;_0x58f254++){const _0x115baa=events[_0x58f254],_0x6907a5=createListener(_0x104d6d(0x16f)+_0x115baa,_0x4bdccc);ChatInternalMessageEvents['on'](_0x115baa,_0x6907a5);}}; \ No newline at end of file diff --git a/server/api/chatInternalMessage/index.js b/server/api/chatInternalMessage/index.js index 07f9c17..2dcf761 100644 --- a/server/api/chatInternalMessage/index.js +++ b/server/api/chatInternalMessage/index.js @@ -1 +1 @@ -const a94_0x2400=['getUsers','exports','delete','/:id','update','express','index','get','show','describe','../../components/auth/service','/users','/describe','create','isAuthenticated','put','Router'];(function(_0x162e43,_0x1c5c14){const _0x2400df=function(_0x32f1c4){while(--_0x32f1c4){_0x162e43['push'](_0x162e43['shift']());}};_0x2400df(++_0x1c5c14);}(a94_0x2400,0xe9));const a94_0x32f1=function(_0x162e43,_0x1c5c14){_0x162e43=_0x162e43-0xf5;let _0x2400df=a94_0x2400[_0x162e43];return _0x2400df;};const a94_0x567904=a94_0x32f1;'use strict';const express=require(a94_0x567904(0xff)),router=express[a94_0x567904(0xf9)](),auth=require(a94_0x567904(0x104)),controller=require('./chatInternalMessage.controller');router[a94_0x567904(0x101)]('/',auth[a94_0x567904(0xf7)](),controller[a94_0x567904(0x100)]),router[a94_0x567904(0x101)](a94_0x567904(0xf5),auth[a94_0x567904(0xf7)](),controller[a94_0x567904(0x103)]),router[a94_0x567904(0x101)](a94_0x567904(0x105),auth['isAuthenticated'](),controller[a94_0x567904(0xfa)]),router[a94_0x567904(0x101)](a94_0x567904(0xfd),auth[a94_0x567904(0xf7)](),controller[a94_0x567904(0x102)]),router['post']('/',auth[a94_0x567904(0xf7)](),controller[a94_0x567904(0xf6)]),router[a94_0x567904(0xf8)](a94_0x567904(0xfd),controller[a94_0x567904(0xfe)]),router[a94_0x567904(0xfc)]('/:id',auth['isAuthenticated'](),controller['destroy']),module[a94_0x567904(0xfb)]=router; \ No newline at end of file +const a94_0x372a=['update','index','isAuthenticated','post','show','/:id','getUsers','put','/users','delete','../../components/auth/service','express','exports','destroy','/describe','get','./chatInternalMessage.controller'];(function(_0x4d0a5f,_0x91d47f){const _0x372ae7=function(_0x324769){while(--_0x324769){_0x4d0a5f['push'](_0x4d0a5f['shift']());}};_0x372ae7(++_0x91d47f);}(a94_0x372a,0xa8));const a94_0x3247=function(_0x4d0a5f,_0x91d47f){_0x4d0a5f=_0x4d0a5f-0x8a;let _0x372ae7=a94_0x372a[_0x4d0a5f];return _0x372ae7;};const a94_0x2341b7=a94_0x3247;'use strict';const express=require(a94_0x2341b7(0x97)),router=express['Router'](),auth=require(a94_0x2341b7(0x96)),controller=require(a94_0x2341b7(0x8b));router[a94_0x2341b7(0x8a)]('/',auth[a94_0x2341b7(0x8e)](),controller[a94_0x2341b7(0x8d)]),router[a94_0x2341b7(0x8a)](a94_0x2341b7(0x9a),auth['isAuthenticated'](),controller['describe']),router[a94_0x2341b7(0x8a)](a94_0x2341b7(0x94),auth[a94_0x2341b7(0x8e)](),controller[a94_0x2341b7(0x92)]),router['get'](a94_0x2341b7(0x91),auth[a94_0x2341b7(0x8e)](),controller[a94_0x2341b7(0x90)]),router[a94_0x2341b7(0x8f)]('/',auth[a94_0x2341b7(0x8e)](),controller['create']),router[a94_0x2341b7(0x93)](a94_0x2341b7(0x91),controller[a94_0x2341b7(0x8c)]),router[a94_0x2341b7(0x95)](a94_0x2341b7(0x91),auth[a94_0x2341b7(0x8e)](),controller[a94_0x2341b7(0x99)]),module[a94_0x2341b7(0x98)]=router; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.attributes.js b/server/api/chatMessage/chatMessage.attributes.js index 8b863a7..286ab66 100644 --- a/server/api/chatMessage/chatMessage.attributes.js +++ b/server/api/chatMessage/chatMessage.attributes.js @@ -1 +1 @@ -const a95_0x36b0=['sequelize','TEXT','DATE','out','ENUM','BOOLEAN'];(function(_0x2d5f33,_0x5d4f0d){const _0x36b02c=function(_0xcd3c11){while(--_0xcd3c11){_0x2d5f33['push'](_0x2d5f33['shift']());}};_0x36b02c(++_0x5d4f0d);}(a95_0x36b0,0xcc));const a95_0xcd3c=function(_0x2d5f33,_0x5d4f0d){_0x2d5f33=_0x2d5f33-0x116;let _0x36b02c=a95_0x36b0[_0x2d5f33];return _0x36b02c;};const a95_0x5af800=a95_0xcd3c;'use strict';const {DataTypes}=require(a95_0x5af800(0x116)),attributes={'body':{'type':DataTypes[a95_0x5af800(0x117)]({'length':'medium'}),'allowNull':![]},'read':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'secret':{'type':DataTypes[a95_0x5af800(0x11b)],'defaultValue':![]},'direction':{'type':DataTypes[a95_0x5af800(0x11a)]('in',a95_0x5af800(0x119)),'defaultValue':a95_0x5af800(0x119),'allowNull':![]},'readAt':{'type':DataTypes[a95_0x5af800(0x118)]},'providerName':{'type':DataTypes['STRING']},'providerResponse':{'type':DataTypes[a95_0x5af800(0x117)]}};module['exports']['attributes']=attributes; \ No newline at end of file +const a95_0x5eee=['out','ENUM','BOOLEAN','sequelize','TEXT','STRING','exports','medium'];(function(_0x5f3404,_0x593553){const _0x5eeee1=function(_0x52944c){while(--_0x52944c){_0x5f3404['push'](_0x5f3404['shift']());}};_0x5eeee1(++_0x593553);}(a95_0x5eee,0xa8));const a95_0x5294=function(_0x5f3404,_0x593553){_0x5f3404=_0x5f3404-0xb6;let _0x5eeee1=a95_0x5eee[_0x5f3404];return _0x5eeee1;};const a95_0x3f8482=a95_0x5294;'use strict';const {DataTypes}=require(a95_0x3f8482(0xb9)),attributes={'body':{'type':DataTypes[a95_0x3f8482(0xba)]({'length':a95_0x3f8482(0xbd)}),'allowNull':![]},'read':{'type':DataTypes[a95_0x3f8482(0xb8)],'defaultValue':![]},'secret':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'direction':{'type':DataTypes[a95_0x3f8482(0xb7)]('in',a95_0x3f8482(0xb6)),'defaultValue':'out','allowNull':![]},'readAt':{'type':DataTypes['DATE']},'providerName':{'type':DataTypes[a95_0x3f8482(0xbb)]},'providerResponse':{'type':DataTypes[a95_0x3f8482(0xba)]}};module[a95_0x3f8482(0xbc)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.controller.js b/server/api/chatMessage/chatMessage.controller.js index 001f1ab..29e26e9 100644 --- a/server/api/chatMessage/chatMessage.controller.js +++ b/server/api/chatMessage/chatMessage.controller.js @@ -1 +1 @@ -const a96_0x4c12=['interface','params','keys','api','name','UserId','lodash','../../rediscache','sendStatus','acceptmessage','error','json','result','query','VIRTUAL','nolimit','map','sort','ChatMessage,\x20%s,\x20%s','ChatInteraction','then','EventManager','like','key','isNil','end','offset','includeAll','agent','util','intersection','reject','merge','ChatMessage','../../config/logger','undefined','update','role','findAll','describe','filter','Content-Range','rawAttributes','jayson/promise','YYYY-MM-DD\x20HH:mm:ss','attributes','options','type','fields','include','send','RejectMessage','formData','../../components/parsers/qs','code','status','get','accept','user','channel','client','http','fieldName','length','null','Contact','format','AcceptMessage','filters','readAt','info','chat','destroy','pick','read','[CHATMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','./chatMessage.socket','../../mysqldb','show','moment','ChatMessage,\x20%s,\x20%s,\x20%s','parse','manual','where','create','request\x20sent','message','catch','rows','findOne','acceptMessage','CmContact','body','ChatInteractionId','model','stringify','count','stack','limit','interaction','register','chat-interactions','debug','event'];(function(_0x42cca2,_0x5acf7a){const _0x4c12eb=function(_0x8f1f59){while(--_0x8f1f59){_0x42cca2['push'](_0x42cca2['shift']());}};_0x4c12eb(++_0x5acf7a);}(a96_0x4c12,0xfc));const a96_0x8f1f=function(_0x42cca2,_0x5acf7a){_0x42cca2=_0x42cca2-0x1c5;let _0x4c12eb=a96_0x4c12[_0x42cca2];return _0x4c12eb;};const a96_0x468226=a96_0x8f1f;'use strict';const moment=require(a96_0x468226(0x1e8)),util=require(a96_0x468226(0x21e)),_=require(a96_0x468226(0x207)),qs=require(a96_0x468226(0x1ce)),logger=require('../../config/logger')(a96_0x468226(0x204)),{getSocket}=require(a96_0x468226(0x208)),{db}=require(a96_0x468226(0x1e6)),{Op}=require('sequelize'),interaction_log=require(a96_0x468226(0x223))(a96_0x468226(0x1fe)),socket=getSocket();require(a96_0x468226(0x1e5))[a96_0x468226(0x1fd)](socket);const jayson=require(a96_0x468226(0x22c)),client=jayson[a96_0x468226(0x1d5)]['http']({'port':0x232c}),client9002=jayson[a96_0x468226(0x1d5)][a96_0x468226(0x1d6)]({'port':0x232a});function respondWithRpcPromise(_0x31b282,_0x66a886,_0x4d347f,_0x17bd1a){return new Promise(function(_0x5b3b4a,_0x3f76d8){const _0x5a3a92=a96_0x8f1f,_0x4197e4=_0x17bd1a||client;return _0x4197e4['request'](_0x31b282,_0x4d347f)[_0x5a3a92(0x215)](function(_0x4ad943){const _0x1fbc8f=_0x5a3a92;logger['info'](_0x1fbc8f(0x213),_0x66a886,'request\x20sent'),logger[_0x1fbc8f(0x1ff)](_0x1fbc8f(0x1e9),_0x66a886,_0x1fbc8f(0x1ee),JSON['stringify'](_0x4ad943));if(_0x4ad943[_0x1fbc8f(0x20b)]){if(_0x4ad943['error'][_0x1fbc8f(0x1cf)]===0x1f4)return logger[_0x1fbc8f(0x20b)]('ChatMessage,\x20%s,\x20%s',_0x66a886,_0x4ad943[_0x1fbc8f(0x20b)]['message']),_0x3f76d8(_0x4ad943['error'][_0x1fbc8f(0x1ef)]);return logger[_0x1fbc8f(0x20b)](_0x1fbc8f(0x213),_0x66a886,_0x4ad943['error']['message']),_0x5b3b4a(_0x4ad943['error'][_0x1fbc8f(0x1ef)]);}else logger['info'](_0x1fbc8f(0x213),_0x66a886,_0x1fbc8f(0x1ee)),_0x5b3b4a(_0x4ad943[_0x1fbc8f(0x20d)][_0x1fbc8f(0x1ef)]);})[_0x5a3a92(0x1f0)](function(_0x18a0f3){logger['error']('ChatMessage,\x20%s,\x20%s',_0x66a886,_0x18a0f3),_0x3f76d8(_0x18a0f3);});});}function respondWithResult(_0x5a82f6,_0x1bafb8){return _0x1bafb8=_0x1bafb8||0xc8,function(_0x58b299){const _0x50d5e=a96_0x8f1f;if(_0x58b299)return _0x5a82f6['status'](_0x1bafb8)[_0x50d5e(0x20c)](_0x58b299);};}function respondWithFilteredResult(_0x19e7cd,_0x18eef7){return function(_0x588efb){const _0x351a39=a96_0x8f1f;if(_0x588efb){const _0x57639e=_0x588efb[_0x351a39(0x1f9)],_0x1ba483=_0x18eef7[_0x351a39(0x21b)];let _0x34dce5=_0x18eef7[_0x351a39(0x21b)]+_0x18eef7[_0x351a39(0x1fb)],_0x175a08;return _0x34dce5>=_0x57639e?(_0x34dce5=_0x57639e,_0x175a08=0xc8):_0x175a08=0xce,_0x19e7cd[_0x351a39(0x1d0)](_0x175a08),_0x19e7cd['set'](_0x351a39(0x22a),_0x1ba483+'-'+_0x34dce5+'/'+_0x57639e)[_0x351a39(0x20c)](_0x588efb);}return null;};}function saveUpdates(_0x2dd270){return function(_0x4b2664){const _0x522957=a96_0x8f1f;if(_0x4b2664)return _0x4b2664[_0x522957(0x225)](_0x2dd270)[_0x522957(0x215)](function(_0x4e9a46){return _0x4e9a46;});return null;};}function removeEntity(_0x3edc45){return function(_0x920902){const _0xf9f698=a96_0x8f1f;if(_0x920902)return _0x920902['destroy']()[_0xf9f698(0x215)](function(){const _0x1386a7=_0xf9f698;_0x3edc45[_0x1386a7(0x1d0)](0xcc)[_0x1386a7(0x21a)]();});};}function handleEntityNotFound(_0x1c2dd3){return function(_0x59bf6c){const _0x1289b0=a96_0x8f1f;return!_0x59bf6c&&_0x1c2dd3[_0x1289b0(0x209)](0x194),_0x59bf6c;};}function handleError(_0xb80a07,_0x45f490){return _0x45f490=_0x45f490||0x1f4,function(_0x4f9725){const _0x5e6ae1=a96_0x8f1f;logger[_0x5e6ae1(0x20b)](_0x4f9725[_0x5e6ae1(0x1fa)]),_0x4f9725['name']&&delete _0x4f9725[_0x5e6ae1(0x205)],_0xb80a07['status'](_0x45f490)[_0x5e6ae1(0x1cb)](_0x4f9725);};}exports['index']=function(_0x218385,_0x534beb){const _0x9ce7dc=a96_0x468226;let _0x376204={};const _0x2e7f3c={},_0x563f33={'count':0x0,'rows':[]},_0x59a494=_[_0x9ce7dc(0x211)](db[_0x9ce7dc(0x222)][_0x9ce7dc(0x22b)],function(_0x312059){const _0x4311bd=_0x9ce7dc;return{'name':_0x312059[_0x4311bd(0x1d7)],'type':_0x312059[_0x4311bd(0x1c8)][_0x4311bd(0x218)]};});_0x2e7f3c['model']=_['map'](_0x59a494,'name'),_0x2e7f3c[_0x9ce7dc(0x20e)]=_['keys'](_0x218385['query']),_0x2e7f3c[_0x9ce7dc(0x1dd)]=_['intersection'](_0x2e7f3c[_0x9ce7dc(0x1f7)],_0x2e7f3c[_0x9ce7dc(0x20e)]),_0x376204[_0x9ce7dc(0x1c6)]=_[_0x9ce7dc(0x21f)](_0x2e7f3c[_0x9ce7dc(0x1f7)],qs[_0x9ce7dc(0x1c9)](_0x218385[_0x9ce7dc(0x20e)][_0x9ce7dc(0x1c9)])),_0x376204['attributes']=_0x376204[_0x9ce7dc(0x1c6)]['length']?_0x376204[_0x9ce7dc(0x1c6)]:_0x2e7f3c['model'];typeof _0x218385['query'][_0x9ce7dc(0x210)]===_0x9ce7dc(0x224)&&(_0x376204[_0x9ce7dc(0x1fb)]=qs[_0x9ce7dc(0x1fb)](_0x218385[_0x9ce7dc(0x20e)][_0x9ce7dc(0x1fb)]),_0x376204[_0x9ce7dc(0x21b)]=qs[_0x9ce7dc(0x21b)](_0x218385[_0x9ce7dc(0x20e)][_0x9ce7dc(0x21b)]));_0x376204['order']=qs[_0x9ce7dc(0x212)](_0x218385[_0x9ce7dc(0x20e)][_0x9ce7dc(0x212)]),_0x376204['where']=qs['filters'](_[_0x9ce7dc(0x1e2)](_0x218385[_0x9ce7dc(0x20e)],_0x2e7f3c[_0x9ce7dc(0x1dd)]),_0x59a494);_0x218385[_0x9ce7dc(0x20e)][_0x9ce7dc(0x229)]&&(_0x376204[_0x9ce7dc(0x1ec)]=_[_0x9ce7dc(0x221)](_0x376204[_0x9ce7dc(0x1ec)],{[Op['or']]:_[_0x9ce7dc(0x211)](_0x59a494,function(_0x5199ac){const _0x3fb543=_0x9ce7dc;if(_0x5199ac['type']!==_0x3fb543(0x20f)){const _0x45179f={};return _0x45179f[_0x5199ac[_0x3fb543(0x205)]]={[Op[_0x3fb543(0x217)]]:'%'+_0x218385[_0x3fb543(0x20e)][_0x3fb543(0x229)]+'%'},_0x45179f;}})}));_0x376204=_[_0x9ce7dc(0x221)]({},_0x376204,_0x218385[_0x9ce7dc(0x1c7)]);const _0x2cf7ba={'where':_0x376204[_0x9ce7dc(0x1ec)]};return db[_0x9ce7dc(0x222)]['count'](_0x2cf7ba)['then'](function(_0x1bacd8){const _0x16d755=_0x9ce7dc;return _0x563f33[_0x16d755(0x1f9)]=_0x1bacd8,_0x218385[_0x16d755(0x20e)][_0x16d755(0x21c)]&&(_0x376204['include']=[{'all':!![]}]),db[_0x16d755(0x222)][_0x16d755(0x227)](_0x376204);})[_0x9ce7dc(0x215)](function(_0x1827f6){const _0x59f0dc=_0x9ce7dc;return _0x563f33[_0x59f0dc(0x1f1)]=_0x1827f6,_0x563f33;})['then'](respondWithFilteredResult(_0x534beb,_0x376204))[_0x9ce7dc(0x1f0)](handleError(_0x534beb,null));},exports[a96_0x468226(0x1e7)]=function(_0x249e00,_0x2146f3){const _0x44d3ff=a96_0x468226;let _0x10490b={'raw':!![],'where':{'id':_0x249e00[_0x44d3ff(0x202)]['id']}};const _0x4dc015={};return _0x4dc015[_0x44d3ff(0x1f7)]=_[_0x44d3ff(0x203)](db[_0x44d3ff(0x222)][_0x44d3ff(0x22b)]),_0x4dc015['query']=_[_0x44d3ff(0x203)](_0x249e00[_0x44d3ff(0x20e)]),_0x4dc015['filters']=_[_0x44d3ff(0x21f)](_0x4dc015['model'],_0x4dc015['query']),_0x10490b['attributes']=_[_0x44d3ff(0x21f)](_0x4dc015[_0x44d3ff(0x1f7)],qs[_0x44d3ff(0x1c9)](_0x249e00[_0x44d3ff(0x20e)]['fields'])),_0x10490b[_0x44d3ff(0x1c6)]=_0x10490b[_0x44d3ff(0x1c6)][_0x44d3ff(0x1d8)]?_0x10490b[_0x44d3ff(0x1c6)]:_0x4dc015[_0x44d3ff(0x1f7)],_0x249e00['query'][_0x44d3ff(0x21c)]&&(_0x10490b[_0x44d3ff(0x1ca)]=[{'all':!![]}]),_0x10490b=_[_0x44d3ff(0x221)]({},_0x10490b,_0x249e00[_0x44d3ff(0x1c7)]),db[_0x44d3ff(0x222)][_0x44d3ff(0x1f2)](_0x10490b)['then'](handleEntityNotFound(_0x2146f3,null))[_0x44d3ff(0x215)](respondWithResult(_0x2146f3,null))[_0x44d3ff(0x1f0)](handleError(_0x2146f3,null));},exports[a96_0x468226(0x1ed)]=function(_0x1f75ba,_0x4c72e1){const _0x3ab8c0=a96_0x468226;return db[_0x3ab8c0(0x222)][_0x3ab8c0(0x1ed)](_0x1f75ba[_0x3ab8c0(0x1f5)],{})['then'](respondWithResult(_0x4c72e1,0xc9))[_0x3ab8c0(0x1f0)](handleError(_0x4c72e1,null));},exports[a96_0x468226(0x225)]=function(_0x2adfa3,_0x36891a){const _0x6ad493=a96_0x468226;return _0x2adfa3[_0x6ad493(0x1f5)]['id']&&delete _0x2adfa3[_0x6ad493(0x1f5)]['id'],db['ChatMessage'][_0x6ad493(0x1f2)]({'where':{'id':_0x2adfa3[_0x6ad493(0x202)]['id']}})[_0x6ad493(0x215)](handleEntityNotFound(_0x36891a,null))['then'](saveUpdates(_0x2adfa3[_0x6ad493(0x1f5)],null))[_0x6ad493(0x215)](respondWithResult(_0x36891a,null))[_0x6ad493(0x1f0)](handleError(_0x36891a,null));},exports[a96_0x468226(0x1e1)]=function(_0x23a21f,_0x2ba066){const _0x1877e2=a96_0x468226;return db[_0x1877e2(0x222)]['findOne']({'where':{'id':_0x23a21f['params']['id']}})[_0x1877e2(0x215)](handleEntityNotFound(_0x2ba066,null))[_0x1877e2(0x215)](removeEntity(_0x2ba066,null))[_0x1877e2(0x1f0)](handleError(_0x2ba066,null));},exports['describe']=function(_0x741945,_0x737fa8){const _0xedfc2a=a96_0x468226;return db[_0xedfc2a(0x222)][_0xedfc2a(0x228)]()[_0xedfc2a(0x215)](respondWithResult(_0x737fa8,null))[_0xedfc2a(0x1f0)](handleError(_0x737fa8,null));},exports['accept']=function(_0x223603,_0x41b87e){const _0x31e8c0=a96_0x468226,_0x3414c3={'channel':_0x31e8c0(0x1e0)};return _0x223603['body']['id']&&delete _0x223603[_0x31e8c0(0x1f5)]['id'],_0x223603[_0x31e8c0(0x1f5)][_0x31e8c0(0x1e3)]=!![],_0x223603['body'][_0x31e8c0(0x1de)]=moment()[_0x31e8c0(0x1db)](_0x31e8c0(0x1c5)),_0x223603[_0x31e8c0(0x1f5)][_0x31e8c0(0x206)]=_0x223603[_0x31e8c0(0x1f5)][_0x31e8c0(0x206)]||_0x223603[_0x31e8c0(0x1d3)]['id'],db[_0x31e8c0(0x222)][_0x31e8c0(0x1f2)]({'where':{'id':_0x223603['params']['id'],'UserId':null},'include':[{'model':db[_0x31e8c0(0x1f4)],'as':_0x31e8c0(0x1da)}]})['then'](handleEntityNotFound(_0x41b87e,null))[_0x31e8c0(0x215)](saveUpdates(_0x223603[_0x31e8c0(0x1f5)],null))[_0x31e8c0(0x215)](function(_0x5c8123){const _0x16e39c=_0x31e8c0;if(_0x5c8123)return _0x3414c3[_0x16e39c(0x1ef)]=_0x5c8123[_0x16e39c(0x1d1)]({'plain':!![]}),db['ChatInteraction'][_0x16e39c(0x1f2)]({'where':{'id':_0x5c8123[_0x16e39c(0x1f6)]}});return null;})[_0x31e8c0(0x215)](handleEntityNotFound(_0x41b87e,null))[_0x31e8c0(0x215)](function(_0x22d9d8){const _0x2f4a7c=_0x31e8c0;if(_0x22d9d8)return _0x22d9d8[_0x2f4a7c(0x225)]({'UserId':_0x223603[_0x2f4a7c(0x1f5)]['UserId'],'read1stAt':_[_0x2f4a7c(0x219)](_0x22d9d8['read1stAt'])?moment()['format'](_0x2f4a7c(0x1c5)):undefined});return null;})[_0x31e8c0(0x215)](function(_0x296c81){const _0x585dfc=_0x31e8c0;if(_0x296c81)return _0x3414c3[_0x585dfc(0x1fc)]=_0x296c81['get']({'plain':!![]}),interaction_log['info']('[CHATMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x223603[_0x585dfc(0x1d3)]['id'],_0x223603[_0x585dfc(0x1d3)][_0x585dfc(0x205)],_0x223603[_0x585dfc(0x1d3)]['role'],_0x3414c3['interaction']['id'],_0x223603[_0x585dfc(0x1f5)]?JSON[_0x585dfc(0x1f8)](_0x223603[_0x585dfc(0x1f5)]):'null'),respondWithRpcPromise(_0x585dfc(0x1dc),_0x585dfc(0x1f3),_0x3414c3);return null;})[_0x31e8c0(0x215)](function(_0xc9e549){const _0x14bf7c=_0x31e8c0;if(_0xc9e549){if(_0x223603[_0x14bf7c(0x1f5)][_0x14bf7c(0x1eb)])return _0x3414c3[_0x14bf7c(0x1ef)][_0x14bf7c(0x201)]=util[_0x14bf7c(0x1db)]('SIP/%s',_0x223603['user'][_0x14bf7c(0x205)]),_0x3414c3[_0x14bf7c(0x1ef)][_0x14bf7c(0x1d4)]=_0x3414c3[_0x14bf7c(0x1d4)],_0x3414c3[_0x14bf7c(0x1ef)][_0x14bf7c(0x200)]=_0x14bf7c(0x1d2),respondWithRpcPromise(_0x14bf7c(0x216),_0x14bf7c(0x216),{'event':_0x14bf7c(0x20a),'message':_[_0x14bf7c(0x221)](_0x3414c3[_0x14bf7c(0x1ef)],JSON[_0x14bf7c(0x1ea)](_0x3414c3[_0x14bf7c(0x1fc)][_0x14bf7c(0x1cd)]))},client9002)[_0x14bf7c(0x215)](function(){return _0x3414c3;});return _0x3414c3;}return null;})[_0x31e8c0(0x215)](respondWithResult(_0x41b87e,null))[_0x31e8c0(0x1f0)](handleError(_0x41b87e,null));},exports[a96_0x468226(0x220)]=function(_0x134b52,_0x2e3f87){const _0x1dbf79=a96_0x468226,_0x27e833={'agent':{},'channel':_0x1dbf79(0x1e0)};return _0x134b52[_0x1dbf79(0x1f5)]['id']&&delete _0x134b52['body']['id'],_0x134b52[_0x1dbf79(0x1f5)][_0x1dbf79(0x206)]=_0x134b52[_0x1dbf79(0x1f5)][_0x1dbf79(0x206)]||_0x134b52[_0x1dbf79(0x1d3)]['id'],_0x27e833[_0x1dbf79(0x21d)]['id']=_0x134b52[_0x1dbf79(0x1f5)][_0x1dbf79(0x206)],db[_0x1dbf79(0x222)]['findOne']({'where':{'id':_0x134b52['params']['id'],'UserId':null}})[_0x1dbf79(0x215)](handleEntityNotFound(_0x2e3f87,null))[_0x1dbf79(0x215)](function(_0x3d7e58){const _0xdc56a0=_0x1dbf79;if(_0x3d7e58)return _0x27e833[_0xdc56a0(0x1ef)]=_0x3d7e58['get']({'plain':!![]}),db[_0xdc56a0(0x214)]['findOne']({'where':{'id':_0x3d7e58[_0xdc56a0(0x1f6)]}});return null;})[_0x1dbf79(0x215)](handleEntityNotFound(_0x2e3f87,null))['then'](function(_0x36fc66){const _0x170d57=_0x1dbf79;if(_0x36fc66)return _0x27e833['interaction']=_0x36fc66[_0x170d57(0x1d1)]({'plain':!![]}),interaction_log[_0x170d57(0x1df)](_0x170d57(0x1e4),_0x134b52['user']['id'],_0x134b52[_0x170d57(0x1d3)][_0x170d57(0x205)],_0x134b52[_0x170d57(0x1d3)][_0x170d57(0x226)],_0x27e833[_0x170d57(0x1fc)]['id'],_0x134b52['body']?JSON[_0x170d57(0x1f8)](_0x134b52['body']):_0x170d57(0x1d9)),respondWithRpcPromise(_0x170d57(0x1cc),'rejectMessage',_0x27e833);return null;})[_0x1dbf79(0x215)](function(_0x157455){const _0x35dd56=_0x1dbf79;if(_0x157455)return _0x157455['message'][_0x35dd56(0x201)]=util[_0x35dd56(0x1db)]('SIP/%s',_0x134b52[_0x35dd56(0x1d3)]['name']),_0x157455[_0x35dd56(0x1ef)][_0x35dd56(0x1d4)]=_0x27e833['channel'],_0x157455[_0x35dd56(0x1ef)][_0x35dd56(0x200)]=_0x35dd56(0x220),respondWithRpcPromise(_0x35dd56(0x216),_0x35dd56(0x216),{'event':'rejectmessage','message':_0x157455['message']},client9002),_0x27e833;return null;})['then'](respondWithResult(_0x2e3f87,null))[_0x1dbf79(0x1f0)](handleError(_0x2e3f87,null));}; \ No newline at end of file +const a96_0x1a93=['pick','length','./chatMessage.socket','catch','sequelize','info','error','CmContact','end','util','update','reject','client','ChatMessage,\x20%s,\x20%s','stack','limit','chat-interactions','manual','findAll','body','accept','http','name','[CHATMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','read1stAt','rawAttributes','parse','rejectMessage','create','jayson/promise','params','index','count','status','rejectmessage','register','request','includeAll','agent','get','json','api','[CHATMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','model','acceptMessage','SIP/%s','role','stringify','../../rediscache','fields','code','fieldName','intersection','format','../../config/logger','ChatInteractionId','../../components/parsers/qs','chat','options','map','UserId','merge','interaction','set','destroy','send','like','YYYY-MM-DD\x20HH:mm:ss','keys','filters','ChatInteraction','query','interface','filter','null','ChatMessage','findOne','include','channel','../../mysqldb','user','key','event','debug','message','where','request\x20sent','EventManager','type','attributes','offset','then','order','formData','readAt','undefined'];(function(_0x6dedef,_0x253b49){const _0x1a9385=function(_0x58e1d5){while(--_0x58e1d5){_0x6dedef['push'](_0x6dedef['shift']());}};_0x1a9385(++_0x253b49);}(a96_0x1a93,0x1a9));const a96_0x58e1=function(_0x6dedef,_0x253b49){_0x6dedef=_0x6dedef-0x15c;let _0x1a9385=a96_0x1a93[_0x6dedef];return _0x1a9385;};const a96_0x4ddeab=a96_0x58e1;'use strict';const moment=require('moment'),util=require(a96_0x4ddeab(0x19c)),_=require('lodash'),qs=require(a96_0x4ddeab(0x16b)),logger=require(a96_0x4ddeab(0x169))(a96_0x4ddeab(0x15c)),{getSocket}=require(a96_0x4ddeab(0x163)),{db}=require(a96_0x4ddeab(0x182)),{Op}=require(a96_0x4ddeab(0x197)),interaction_log=require(a96_0x4ddeab(0x169))(a96_0x4ddeab(0x1a3)),socket=getSocket();require(a96_0x4ddeab(0x195))[a96_0x4ddeab(0x1b6)](socket);const jayson=require(a96_0x4ddeab(0x1b0)),client=jayson[a96_0x4ddeab(0x19f)][a96_0x4ddeab(0x1a8)]({'port':0x232c}),client9002=jayson['client'][a96_0x4ddeab(0x1a8)]({'port':0x232a});function respondWithRpcPromise(_0x9d0fb1,_0x31aa90,_0x2d5b4f,_0x17e774){return new Promise(function(_0x42fb25,_0x2391c2){const _0x49ae73=a96_0x58e1,_0x5d2321=_0x17e774||client;return _0x5d2321[_0x49ae73(0x1b7)](_0x9d0fb1,_0x2d5b4f)[_0x49ae73(0x18e)](function(_0x5ba68c){const _0xb1a1c3=_0x49ae73;logger['info']('ChatMessage,\x20%s,\x20%s',_0x31aa90,_0xb1a1c3(0x189)),logger[_0xb1a1c3(0x186)]('ChatMessage,\x20%s,\x20%s,\x20%s',_0x31aa90,_0xb1a1c3(0x189),JSON[_0xb1a1c3(0x162)](_0x5ba68c));if(_0x5ba68c[_0xb1a1c3(0x199)]){if(_0x5ba68c[_0xb1a1c3(0x199)][_0xb1a1c3(0x165)]===0x1f4)return logger['error'](_0xb1a1c3(0x1a0),_0x31aa90,_0x5ba68c[_0xb1a1c3(0x199)][_0xb1a1c3(0x187)]),_0x2391c2(_0x5ba68c[_0xb1a1c3(0x199)]['message']);return logger[_0xb1a1c3(0x199)](_0xb1a1c3(0x1a0),_0x31aa90,_0x5ba68c[_0xb1a1c3(0x199)][_0xb1a1c3(0x187)]),_0x42fb25(_0x5ba68c['error'][_0xb1a1c3(0x187)]);}else logger[_0xb1a1c3(0x198)](_0xb1a1c3(0x1a0),_0x31aa90,_0xb1a1c3(0x189)),_0x42fb25(_0x5ba68c['result'][_0xb1a1c3(0x187)]);})[_0x49ae73(0x196)](function(_0x8dd70){const _0x4de941=_0x49ae73;logger[_0x4de941(0x199)]('ChatMessage,\x20%s,\x20%s',_0x31aa90,_0x8dd70),_0x2391c2(_0x8dd70);});});}function respondWithResult(_0x3bb91d,_0x4efc59){return _0x4efc59=_0x4efc59||0xc8,function(_0x1589c5){const _0x8d98e1=a96_0x58e1;if(_0x1589c5)return _0x3bb91d[_0x8d98e1(0x1b4)](_0x4efc59)['json'](_0x1589c5);};}function respondWithFilteredResult(_0x20451b,_0x553109){return function(_0x2fb182){const _0x44c8a1=a96_0x58e1;if(_0x2fb182){const _0x163888=_0x2fb182[_0x44c8a1(0x1b3)],_0x263a77=_0x553109['offset'];let _0x18e93c=_0x553109[_0x44c8a1(0x18d)]+_0x553109[_0x44c8a1(0x1a2)],_0x313b16;return _0x18e93c>=_0x163888?(_0x18e93c=_0x163888,_0x313b16=0xc8):_0x313b16=0xce,_0x20451b[_0x44c8a1(0x1b4)](_0x313b16),_0x20451b[_0x44c8a1(0x172)]('Content-Range',_0x263a77+'-'+_0x18e93c+'/'+_0x163888)[_0x44c8a1(0x1bb)](_0x2fb182);}return null;};}function saveUpdates(_0x1ecdfc){return function(_0x21554a){const _0x3410e9=a96_0x58e1;if(_0x21554a)return _0x21554a[_0x3410e9(0x19d)](_0x1ecdfc)[_0x3410e9(0x18e)](function(_0x2c64c7){return _0x2c64c7;});return null;};}function removeEntity(_0x4eda66){return function(_0x31d086){const _0xfcfb5a=a96_0x58e1;if(_0x31d086)return _0x31d086[_0xfcfb5a(0x173)]()[_0xfcfb5a(0x18e)](function(){const _0x517f46=_0xfcfb5a;_0x4eda66['status'](0xcc)[_0x517f46(0x19b)]();});};}function handleEntityNotFound(_0x5c883c){return function(_0x56d42b){return!_0x56d42b&&_0x5c883c['sendStatus'](0x194),_0x56d42b;};}function handleError(_0x14d305,_0x49a3d3){return _0x49a3d3=_0x49a3d3||0x1f4,function(_0xde8623){const _0x1e61b8=a96_0x58e1;logger['error'](_0xde8623[_0x1e61b8(0x1a1)]),_0xde8623['name']&&delete _0xde8623[_0x1e61b8(0x1a9)],_0x14d305[_0x1e61b8(0x1b4)](_0x49a3d3)[_0x1e61b8(0x174)](_0xde8623);};}exports[a96_0x4ddeab(0x1b2)]=function(_0x23fc81,_0x4ae40e){const _0xf23e95=a96_0x4ddeab;let _0x116941={};const _0x5c5443={},_0x4233a5={'count':0x0,'rows':[]},_0x4a47db=_[_0xf23e95(0x16e)](db['ChatMessage'][_0xf23e95(0x1ac)],function(_0x5b6fea){const _0x4ab3ba=_0xf23e95;return{'name':_0x5b6fea[_0x4ab3ba(0x166)],'type':_0x5b6fea['type'][_0x4ab3ba(0x184)]};});_0x5c5443[_0xf23e95(0x15e)]=_[_0xf23e95(0x16e)](_0x4a47db,'name'),_0x5c5443[_0xf23e95(0x17a)]=_['keys'](_0x23fc81['query']),_0x5c5443[_0xf23e95(0x178)]=_[_0xf23e95(0x167)](_0x5c5443['model'],_0x5c5443[_0xf23e95(0x17a)]),_0x116941[_0xf23e95(0x18c)]=_[_0xf23e95(0x167)](_0x5c5443[_0xf23e95(0x15e)],qs[_0xf23e95(0x164)](_0x23fc81[_0xf23e95(0x17a)][_0xf23e95(0x164)])),_0x116941[_0xf23e95(0x18c)]=_0x116941[_0xf23e95(0x18c)]['length']?_0x116941[_0xf23e95(0x18c)]:_0x5c5443[_0xf23e95(0x15e)];typeof _0x23fc81[_0xf23e95(0x17a)]['nolimit']===_0xf23e95(0x192)&&(_0x116941[_0xf23e95(0x1a2)]=qs[_0xf23e95(0x1a2)](_0x23fc81[_0xf23e95(0x17a)][_0xf23e95(0x1a2)]),_0x116941[_0xf23e95(0x18d)]=qs[_0xf23e95(0x18d)](_0x23fc81[_0xf23e95(0x17a)]['offset']));_0x116941[_0xf23e95(0x18f)]=qs['sort'](_0x23fc81[_0xf23e95(0x17a)]['sort']),_0x116941[_0xf23e95(0x188)]=qs[_0xf23e95(0x178)](_[_0xf23e95(0x193)](_0x23fc81[_0xf23e95(0x17a)],_0x5c5443['filters']),_0x4a47db);_0x23fc81['query'][_0xf23e95(0x17c)]&&(_0x116941[_0xf23e95(0x188)]=_['merge'](_0x116941[_0xf23e95(0x188)],{[Op['or']]:_['map'](_0x4a47db,function(_0x496bbc){const _0x835cd4=_0xf23e95;if(_0x496bbc[_0x835cd4(0x18b)]!=='VIRTUAL'){const _0x4088fe={};return _0x4088fe[_0x496bbc[_0x835cd4(0x1a9)]]={[Op[_0x835cd4(0x175)]]:'%'+_0x23fc81[_0x835cd4(0x17a)][_0x835cd4(0x17c)]+'%'},_0x4088fe;}})}));_0x116941=_[_0xf23e95(0x170)]({},_0x116941,_0x23fc81[_0xf23e95(0x16d)]);const _0x4bb8d6={'where':_0x116941[_0xf23e95(0x188)]};return db[_0xf23e95(0x17e)][_0xf23e95(0x1b3)](_0x4bb8d6)['then'](function(_0x3b35b){const _0x1148ff=_0xf23e95;return _0x4233a5[_0x1148ff(0x1b3)]=_0x3b35b,_0x23fc81[_0x1148ff(0x17a)][_0x1148ff(0x1b8)]&&(_0x116941[_0x1148ff(0x180)]=[{'all':!![]}]),db['ChatMessage'][_0x1148ff(0x1a5)](_0x116941);})[_0xf23e95(0x18e)](function(_0xe3792a){return _0x4233a5['rows']=_0xe3792a,_0x4233a5;})[_0xf23e95(0x18e)](respondWithFilteredResult(_0x4ae40e,_0x116941))[_0xf23e95(0x196)](handleError(_0x4ae40e,null));},exports['show']=function(_0x55eebf,_0x16b119){const _0x2c61ff=a96_0x4ddeab;let _0x4e14f3={'raw':!![],'where':{'id':_0x55eebf['params']['id']}};const _0x3d20c6={};return _0x3d20c6[_0x2c61ff(0x15e)]=_[_0x2c61ff(0x177)](db[_0x2c61ff(0x17e)][_0x2c61ff(0x1ac)]),_0x3d20c6[_0x2c61ff(0x17a)]=_[_0x2c61ff(0x177)](_0x55eebf['query']),_0x3d20c6['filters']=_['intersection'](_0x3d20c6[_0x2c61ff(0x15e)],_0x3d20c6['query']),_0x4e14f3['attributes']=_[_0x2c61ff(0x167)](_0x3d20c6[_0x2c61ff(0x15e)],qs[_0x2c61ff(0x164)](_0x55eebf[_0x2c61ff(0x17a)]['fields'])),_0x4e14f3['attributes']=_0x4e14f3[_0x2c61ff(0x18c)][_0x2c61ff(0x194)]?_0x4e14f3[_0x2c61ff(0x18c)]:_0x3d20c6[_0x2c61ff(0x15e)],_0x55eebf[_0x2c61ff(0x17a)]['includeAll']&&(_0x4e14f3[_0x2c61ff(0x180)]=[{'all':!![]}]),_0x4e14f3=_[_0x2c61ff(0x170)]({},_0x4e14f3,_0x55eebf[_0x2c61ff(0x16d)]),db[_0x2c61ff(0x17e)][_0x2c61ff(0x17f)](_0x4e14f3)[_0x2c61ff(0x18e)](handleEntityNotFound(_0x16b119,null))['then'](respondWithResult(_0x16b119,null))[_0x2c61ff(0x196)](handleError(_0x16b119,null));},exports[a96_0x4ddeab(0x1af)]=function(_0x202d0b,_0x264e4b){const _0x154c80=a96_0x4ddeab;return db[_0x154c80(0x17e)][_0x154c80(0x1af)](_0x202d0b[_0x154c80(0x1a6)],{})[_0x154c80(0x18e)](respondWithResult(_0x264e4b,0xc9))[_0x154c80(0x196)](handleError(_0x264e4b,null));},exports[a96_0x4ddeab(0x19d)]=function(_0x47cfb4,_0x21b37c){const _0x5a0de4=a96_0x4ddeab;return _0x47cfb4['body']['id']&&delete _0x47cfb4[_0x5a0de4(0x1a6)]['id'],db[_0x5a0de4(0x17e)][_0x5a0de4(0x17f)]({'where':{'id':_0x47cfb4[_0x5a0de4(0x1b1)]['id']}})[_0x5a0de4(0x18e)](handleEntityNotFound(_0x21b37c,null))[_0x5a0de4(0x18e)](saveUpdates(_0x47cfb4[_0x5a0de4(0x1a6)],null))[_0x5a0de4(0x18e)](respondWithResult(_0x21b37c,null))[_0x5a0de4(0x196)](handleError(_0x21b37c,null));},exports[a96_0x4ddeab(0x173)]=function(_0xa04211,_0x403fe0){const _0x529690=a96_0x4ddeab;return db[_0x529690(0x17e)][_0x529690(0x17f)]({'where':{'id':_0xa04211[_0x529690(0x1b1)]['id']}})[_0x529690(0x18e)](handleEntityNotFound(_0x403fe0,null))['then'](removeEntity(_0x403fe0,null))[_0x529690(0x196)](handleError(_0x403fe0,null));},exports['describe']=function(_0x494923,_0x236402){const _0x1eb8e5=a96_0x4ddeab;return db[_0x1eb8e5(0x17e)]['describe']()[_0x1eb8e5(0x18e)](respondWithResult(_0x236402,null))[_0x1eb8e5(0x196)](handleError(_0x236402,null));},exports[a96_0x4ddeab(0x1a7)]=function(_0x3e549c,_0x4e898e){const _0x220212=a96_0x4ddeab,_0x4559f7={'channel':_0x220212(0x16c)};return _0x3e549c[_0x220212(0x1a6)]['id']&&delete _0x3e549c[_0x220212(0x1a6)]['id'],_0x3e549c['body']['read']=!![],_0x3e549c['body'][_0x220212(0x191)]=moment()[_0x220212(0x168)](_0x220212(0x176)),_0x3e549c[_0x220212(0x1a6)][_0x220212(0x16f)]=_0x3e549c[_0x220212(0x1a6)][_0x220212(0x16f)]||_0x3e549c[_0x220212(0x183)]['id'],db[_0x220212(0x17e)][_0x220212(0x17f)]({'where':{'id':_0x3e549c[_0x220212(0x1b1)]['id'],'UserId':null},'include':[{'model':db[_0x220212(0x19a)],'as':'Contact'}]})['then'](handleEntityNotFound(_0x4e898e,null))[_0x220212(0x18e)](saveUpdates(_0x3e549c[_0x220212(0x1a6)],null))[_0x220212(0x18e)](function(_0x554268){const _0x2438c2=_0x220212;if(_0x554268)return _0x4559f7[_0x2438c2(0x187)]=_0x554268[_0x2438c2(0x1ba)]({'plain':!![]}),db[_0x2438c2(0x179)]['findOne']({'where':{'id':_0x554268[_0x2438c2(0x16a)]}});return null;})[_0x220212(0x18e)](handleEntityNotFound(_0x4e898e,null))[_0x220212(0x18e)](function(_0x8bc59e){const _0x2fe8a1=_0x220212;if(_0x8bc59e)return _0x8bc59e['update']({'UserId':_0x3e549c[_0x2fe8a1(0x1a6)][_0x2fe8a1(0x16f)],'read1stAt':_['isNil'](_0x8bc59e[_0x2fe8a1(0x1ab)])?moment()['format']('YYYY-MM-DD\x20HH:mm:ss'):undefined});return null;})['then'](function(_0xdcffa){const _0x4da6b6=_0x220212;if(_0xdcffa)return _0x4559f7[_0x4da6b6(0x171)]=_0xdcffa[_0x4da6b6(0x1ba)]({'plain':!![]}),interaction_log[_0x4da6b6(0x198)](_0x4da6b6(0x1aa),_0x3e549c['user']['id'],_0x3e549c[_0x4da6b6(0x183)]['name'],_0x3e549c['user'][_0x4da6b6(0x161)],_0x4559f7[_0x4da6b6(0x171)]['id'],_0x3e549c[_0x4da6b6(0x1a6)]?JSON[_0x4da6b6(0x162)](_0x3e549c[_0x4da6b6(0x1a6)]):_0x4da6b6(0x17d)),respondWithRpcPromise('AcceptMessage',_0x4da6b6(0x15f),_0x4559f7);return null;})['then'](function(_0x27a882){const _0x5e5b14=_0x220212;if(_0x27a882){if(_0x3e549c['body'][_0x5e5b14(0x1a4)])return _0x4559f7[_0x5e5b14(0x187)][_0x5e5b14(0x17b)]=util[_0x5e5b14(0x168)](_0x5e5b14(0x160),_0x3e549c[_0x5e5b14(0x183)]['name']),_0x4559f7[_0x5e5b14(0x187)][_0x5e5b14(0x181)]=_0x4559f7[_0x5e5b14(0x181)],_0x4559f7[_0x5e5b14(0x187)][_0x5e5b14(0x185)]=_0x5e5b14(0x1a7),respondWithRpcPromise(_0x5e5b14(0x18a),'EventManager',{'event':'acceptmessage','message':_[_0x5e5b14(0x170)](_0x4559f7[_0x5e5b14(0x187)],JSON[_0x5e5b14(0x1ad)](_0x4559f7[_0x5e5b14(0x171)][_0x5e5b14(0x190)]))},client9002)[_0x5e5b14(0x18e)](function(){return _0x4559f7;});return _0x4559f7;}return null;})[_0x220212(0x18e)](respondWithResult(_0x4e898e,null))[_0x220212(0x196)](handleError(_0x4e898e,null));},exports[a96_0x4ddeab(0x19e)]=function(_0x3b4f32,_0x37549a){const _0x31fac4=a96_0x4ddeab,_0xe57526={'agent':{},'channel':_0x31fac4(0x16c)};return _0x3b4f32[_0x31fac4(0x1a6)]['id']&&delete _0x3b4f32[_0x31fac4(0x1a6)]['id'],_0x3b4f32[_0x31fac4(0x1a6)][_0x31fac4(0x16f)]=_0x3b4f32['body'][_0x31fac4(0x16f)]||_0x3b4f32[_0x31fac4(0x183)]['id'],_0xe57526[_0x31fac4(0x1b9)]['id']=_0x3b4f32['body'][_0x31fac4(0x16f)],db[_0x31fac4(0x17e)]['findOne']({'where':{'id':_0x3b4f32[_0x31fac4(0x1b1)]['id'],'UserId':null}})[_0x31fac4(0x18e)](handleEntityNotFound(_0x37549a,null))[_0x31fac4(0x18e)](function(_0x29cc10){const _0x49e767=_0x31fac4;if(_0x29cc10)return _0xe57526[_0x49e767(0x187)]=_0x29cc10[_0x49e767(0x1ba)]({'plain':!![]}),db[_0x49e767(0x179)]['findOne']({'where':{'id':_0x29cc10[_0x49e767(0x16a)]}});return null;})[_0x31fac4(0x18e)](handleEntityNotFound(_0x37549a,null))['then'](function(_0x4b50ff){const _0x44c618=_0x31fac4;if(_0x4b50ff)return _0xe57526['interaction']=_0x4b50ff[_0x44c618(0x1ba)]({'plain':!![]}),interaction_log[_0x44c618(0x198)](_0x44c618(0x15d),_0x3b4f32[_0x44c618(0x183)]['id'],_0x3b4f32[_0x44c618(0x183)][_0x44c618(0x1a9)],_0x3b4f32[_0x44c618(0x183)][_0x44c618(0x161)],_0xe57526[_0x44c618(0x171)]['id'],_0x3b4f32[_0x44c618(0x1a6)]?JSON[_0x44c618(0x162)](_0x3b4f32[_0x44c618(0x1a6)]):_0x44c618(0x17d)),respondWithRpcPromise('RejectMessage',_0x44c618(0x1ae),_0xe57526);return null;})[_0x31fac4(0x18e)](function(_0x4f329e){const _0xf89731=_0x31fac4;if(_0x4f329e)return _0x4f329e[_0xf89731(0x187)]['interface']=util[_0xf89731(0x168)](_0xf89731(0x160),_0x3b4f32['user'][_0xf89731(0x1a9)]),_0x4f329e[_0xf89731(0x187)][_0xf89731(0x181)]=_0xe57526[_0xf89731(0x181)],_0x4f329e[_0xf89731(0x187)][_0xf89731(0x185)]=_0xf89731(0x19e),respondWithRpcPromise('EventManager','EventManager',{'event':_0xf89731(0x1b5),'message':_0x4f329e[_0xf89731(0x187)]},client9002),_0xe57526;return null;})['then'](respondWithResult(_0x37549a,null))['catch'](handleError(_0x37549a,null));}; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.events.js b/server/api/chatMessage/chatMessage.events.js index c692202..a0064c7 100644 --- a/server/api/chatMessage/chatMessage.events.js +++ b/server/api/chatMessage/chatMessage.events.js @@ -1 +1 @@ -const a97_0x2585=['remove','save','update','addHook','undefined','setMaxListeners','emit'];(function(_0x71d08c,_0x5ae427){const _0x25850f=function(_0xf289dc){while(--_0xf289dc){_0x71d08c['push'](_0x71d08c['shift']());}};_0x25850f(++_0x5ae427);}(a97_0x2585,0x9d));const a97_0xf289=function(_0x71d08c,_0x5ae427){_0x71d08c=_0x71d08c-0x156;let _0x25850f=a97_0x2585[_0x71d08c];return _0x25850f;};const a97_0x5a4cbb=a97_0xf289;'use strict';const EventEmitter=require('events'),ChatMessage=require('../../mysqldb')['db']['ChatMessage'],ChatMessageEvents=new EventEmitter();ChatMessageEvents[a97_0x5a4cbb(0x158)](0x0);const events={'afterCreate':a97_0x5a4cbb(0x15b),'afterUpdate':a97_0x5a4cbb(0x15c),'afterDestroy':a97_0x5a4cbb(0x15a)};function emitEvent(_0x491457){return function(_0x54cf74){const _0x20e0dd=a97_0xf289;ChatMessageEvents[_0x20e0dd(0x159)](_0x491457+':'+_0x54cf74['id'],_0x54cf74),ChatMessageEvents['emit'](_0x491457,_0x54cf74);};}for(const e in events){if(typeof events[e]!==a97_0x5a4cbb(0x157)){const event=events[e];ChatMessage[a97_0x5a4cbb(0x156)](e,emitEvent(event));}}module['exports']=ChatMessageEvents; \ No newline at end of file +const a97_0x8194=['events','setMaxListeners','ChatMessage','undefined','emit','remove','update','../../mysqldb'];(function(_0x57bf19,_0x6c4633){const _0x81946=function(_0x455eb5){while(--_0x455eb5){_0x57bf19['push'](_0x57bf19['shift']());}};_0x81946(++_0x6c4633);}(a97_0x8194,0xa0));const a97_0x455e=function(_0x57bf19,_0x6c4633){_0x57bf19=_0x57bf19-0x16e;let _0x81946=a97_0x8194[_0x57bf19];return _0x81946;};const a97_0x2d310c=a97_0x455e;'use strict';const EventEmitter=require(a97_0x2d310c(0x16e)),ChatMessage=require(a97_0x2d310c(0x175))['db'][a97_0x2d310c(0x170)],ChatMessageEvents=new EventEmitter();ChatMessageEvents[a97_0x2d310c(0x16f)](0x0);const events={'afterCreate':'save','afterUpdate':a97_0x2d310c(0x174),'afterDestroy':a97_0x2d310c(0x173)};function emitEvent(_0x37cb35){return function(_0x55bc3c){const _0x2828fb=a97_0x455e;ChatMessageEvents[_0x2828fb(0x172)](_0x37cb35+':'+_0x55bc3c['id'],_0x55bc3c),ChatMessageEvents[_0x2828fb(0x172)](_0x37cb35,_0x55bc3c);};}for(const e in events){if(typeof events[e]!==a97_0x2d310c(0x171)){const event=events[e];ChatMessage['addHook'](e,emitEvent(event));}}module['exports']=ChatMessageEvents; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.model.js b/server/api/chatMessage/chatMessage.model.js index 5882c79..72e7548 100644 --- a/server/api/chatMessage/chatMessage.model.js +++ b/server/api/chatMessage/chatMessage.model.js @@ -1 +1 @@ -const a98_0x1e1c=['init','exports','ChatMessage','sequelize','./chatMessage.options'];(function(_0x1fadd9,_0x4a30a2){const _0x1e1c76=function(_0x23ec4a){while(--_0x23ec4a){_0x1fadd9['push'](_0x1fadd9['shift']());}};_0x1e1c76(++_0x4a30a2);}(a98_0x1e1c,0x1ea));const a98_0x23ec=function(_0x1fadd9,_0x4a30a2){_0x1fadd9=_0x1fadd9-0x1e0;let _0x1e1c76=a98_0x1e1c[_0x1fadd9];return _0x1e1c76;};const a98_0x1c2c60=a98_0x23ec;'use strict';const {Model}=require(a98_0x1c2c60(0x1e3)),{attributes}=require('./chatMessage.attributes'),{options}=require(a98_0x1c2c60(0x1e4));class ChatMessage extends Model{}function init(_0x240b86,_0x211f15){const _0x1f589a=a98_0x1c2c60,_0x422aa2=options(_0x240b86),_0x154ed1=typeof _0x211f15==='function'?_0x211f15(_0x422aa2):_0x422aa2;return ChatMessage[_0x1f589a(0x1e0)](attributes,_0x154ed1),ChatMessage;}module[a98_0x1c2c60(0x1e1)][a98_0x1c2c60(0x1e2)]=ChatMessage,module['exports']['init']=init; \ No newline at end of file +const a98_0x34f9=['function','sequelize','init','exports','./chatMessage.attributes','ChatMessage'];(function(_0x419dbf,_0x4d5bf3){const _0x34f9a2=function(_0x29b571){while(--_0x29b571){_0x419dbf['push'](_0x419dbf['shift']());}};_0x34f9a2(++_0x4d5bf3);}(a98_0x34f9,0xef));const a98_0x29b5=function(_0x419dbf,_0x4d5bf3){_0x419dbf=_0x419dbf-0x12b;let _0x34f9a2=a98_0x34f9[_0x419dbf];return _0x34f9a2;};const a98_0x2ecfec=a98_0x29b5;'use strict';const {Model}=require(a98_0x2ecfec(0x12d)),{attributes}=require(a98_0x2ecfec(0x130)),{options}=require('./chatMessage.options');class ChatMessage extends Model{}function init(_0x50b30e,_0x213f0c){const _0x5d20d1=a98_0x2ecfec,_0xc77b75=options(_0x50b30e),_0x473931=typeof _0x213f0c===_0x5d20d1(0x12c)?_0x213f0c(_0xc77b75):_0xc77b75;return ChatMessage[_0x5d20d1(0x12e)](attributes,_0x473931),ChatMessage;}module[a98_0x2ecfec(0x12f)][a98_0x2ecfec(0x12b)]=ChatMessage,module[a98_0x2ecfec(0x12f)][a98_0x2ecfec(0x12e)]=init; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.options.js b/server/api/chatMessage/chatMessage.options.js index 21f0fe5..a8556d3 100644 --- a/server/api/chatMessage/chatMessage.options.js +++ b/server/api/chatMessage/chatMessage.options.js @@ -1 +1 @@ -const a99_0x709b=['models','FULLTEXT','toLowerCase','chat_messages','lodash','options','get','error','utf8mb4','direction','exports','fti_chat_messages','createdAt','secret','then','update','utf8mb4_unicode_ci','ChatInteraction'];(function(_0x11f48e,_0x31170b){const _0x709bc7=function(_0x4c01b7){while(--_0x4c01b7){_0x11f48e['push'](_0x11f48e['shift']());}};_0x709bc7(++_0x31170b);}(a99_0x709b,0x13e));const a99_0x4c01=function(_0x11f48e,_0x31170b){_0x11f48e=_0x11f48e-0x15f;let _0x709bc7=a99_0x709b[_0x11f48e];return _0x709bc7;};const a99_0x1cd3b2=a99_0x4c01,_=require(a99_0x1cd3b2(0x169));function options(_0x46964a){const _0x58658f=a99_0x1cd3b2;return{'sequelize':_0x46964a,'tableName':_0x58658f(0x168),'paranoid':![],'indexes':[{'name':_0x58658f(0x170),'fields':['body'],'type':_0x58658f(0x166)}],'timestamps':!![],'hooks':{'afterCreate':function(_0x7d743d){const _0xb4a599=_0x58658f,_0x17695c=_0x46964a[_0xb4a599(0x165)],_0x32b636=_0x7d743d[_0xb4a599(0x16b)]({'plain':!![]});(_0x32b636[_0xb4a599(0x16e)][_0xb4a599(0x167)]()==='in'||_0x32b636[_0xb4a599(0x16e)][_0xb4a599(0x167)]()==='out'&&!_0x32b636[_0xb4a599(0x160)]&&!_['isNil'](_0x32b636['UserId']))&&_0x17695c[_0xb4a599(0x164)]['findOne']({'where':{'id':_0x32b636['ChatInteractionId']}})[_0xb4a599(0x161)](function(_0x360fb4){const _0x5ecf60=_0xb4a599;_0x360fb4&&_0x360fb4[_0x5ecf60(0x162)]({'lastMsgAt':_0x32b636[_0x5ecf60(0x15f)],'lastMsgDirection':_0x32b636['direction']['toLowerCase']()});})['catch'](function(_0x494431){const _0x4c524d=_0xb4a599;console[_0x4c524d(0x16c)](_0x494431);});}},'charset':_0x58658f(0x16d),'collate':_0x58658f(0x163)};}module[a99_0x1cd3b2(0x16f)][a99_0x1cd3b2(0x16a)]=options; \ No newline at end of file +const a99_0x37bf=['FULLTEXT','out','get','error','utf8mb4_unicode_ci','direction','options','utf8mb4','fti_chat_messages','exports','catch','models','chat_messages','body','ChatInteraction','lodash','secret','findOne','then','toLowerCase'];(function(_0x32369b,_0x2e2b82){const _0x37bf0f=function(_0x307f01){while(--_0x307f01){_0x32369b['push'](_0x32369b['shift']());}};_0x37bf0f(++_0x2e2b82);}(a99_0x37bf,0x11c));const a99_0x307f=function(_0x32369b,_0x2e2b82){_0x32369b=_0x32369b-0x75;let _0x37bf0f=a99_0x37bf[_0x32369b];return _0x37bf0f;};const a99_0x18aae9=a99_0x307f,_=require(a99_0x18aae9(0x80));function options(_0x579ad0){const _0x360042=a99_0x18aae9;return{'sequelize':_0x579ad0,'tableName':_0x360042(0x7d),'paranoid':![],'indexes':[{'name':_0x360042(0x79),'fields':[_0x360042(0x7e)],'type':_0x360042(0x85)}],'timestamps':!![],'hooks':{'afterCreate':function(_0x17e2f0){const _0x9bf88c=_0x360042,_0xe7a006=_0x579ad0[_0x9bf88c(0x7c)],_0x45820c=_0x17e2f0[_0x9bf88c(0x87)]({'plain':!![]});(_0x45820c[_0x9bf88c(0x76)][_0x9bf88c(0x84)]()==='in'||_0x45820c[_0x9bf88c(0x76)][_0x9bf88c(0x84)]()===_0x9bf88c(0x86)&&!_0x45820c[_0x9bf88c(0x81)]&&!_['isNil'](_0x45820c['UserId']))&&_0xe7a006[_0x9bf88c(0x7f)][_0x9bf88c(0x82)]({'where':{'id':_0x45820c['ChatInteractionId']}})[_0x9bf88c(0x83)](function(_0x56c0cc){const _0x36a02e=_0x9bf88c;_0x56c0cc&&_0x56c0cc['update']({'lastMsgAt':_0x45820c['createdAt'],'lastMsgDirection':_0x45820c[_0x36a02e(0x76)][_0x36a02e(0x84)]()});})[_0x9bf88c(0x7b)](function(_0x495c98){const _0x1700c5=_0x9bf88c;console[_0x1700c5(0x88)](_0x495c98);});}},'charset':_0x360042(0x78),'collate':_0x360042(0x75)};}module[a99_0x18aae9(0x7a)][a99_0x18aae9(0x77)]=options; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.rpc.js b/server/api/chatMessage/chatMessage.rpc.js index 865774c..5efd124 100644 --- a/server/api/chatMessage/chatMessage.rpc.js +++ b/server/api/chatMessage/chatMessage.rpc.js @@ -1 +1 @@ -const a100_0x4e5b=['then','raw','stringify','../../config/logger','message','../../rediscache','./chatMessage.socket','body','error','rpc','../../mysqldb','debug'];(function(_0x255ad8,_0x279d71){const _0x4e5b18=function(_0x55863c){while(--_0x55863c){_0x255ad8['push'](_0x255ad8['shift']());}};_0x4e5b18(++_0x279d71);}(a100_0x4e5b,0xaf));const a100_0x5586=function(_0x255ad8,_0x279d71){_0x255ad8=_0x255ad8-0x98;let _0x4e5b18=a100_0x4e5b[_0x255ad8];return _0x4e5b18;};const a100_0x4ffb0b=a100_0x5586;'use strict';const db=require(a100_0x4ffb0b(0x9b))['db'],logger=require(a100_0x4ffb0b(0xa0))(a100_0x4ffb0b(0x9a)),{getSocket}=require(a100_0x4ffb0b(0xa2)),socket=getSocket();require(a100_0x4ffb0b(0xa3))['register'](socket),exports['CreateChatMessage']=function(_0x333847){const _0x3560ac=this;return new Promise(function(_0x578daa,_0x5a8d47){const _0x438458=a100_0x5586;return db['ChatMessage']['create'](_0x333847[_0x438458(0x98)],{'raw':_0x333847['options']?_0x333847['options'][_0x438458(0x9e)]===undefined?!![]:![]:!![]})[_0x438458(0x9d)](function(_0x208cca){const _0x18e8f8=_0x438458;logger['info']('CreateChatMessage',_0x333847),logger[_0x18e8f8(0x9c)]('CreateChatMessage',_0x333847,JSON[_0x18e8f8(0x9f)](_0x208cca)),_0x578daa(_0x208cca);})['catch'](function(_0x28a7fe){const _0x55252a=_0x438458;logger[_0x55252a(0x99)]('CreateChatMessage',_0x28a7fe[_0x55252a(0xa1)],_0x333847),_0x5a8d47(_0x3560ac[_0x55252a(0x99)](0x1f4,_0x28a7fe[_0x55252a(0xa1)]));});});}; \ No newline at end of file +const a100_0x3207=['raw','error','body','rpc','../../config/logger','options','CreateChatMessage','message','then','../../mysqldb','register','stringify','../../rediscache','ChatMessage','catch'];(function(_0x15e48f,_0x480f61){const _0x320700=function(_0x4b45f6){while(--_0x4b45f6){_0x15e48f['push'](_0x15e48f['shift']());}};_0x320700(++_0x480f61);}(a100_0x3207,0x1cf));const a100_0x4b45=function(_0x15e48f,_0x480f61){_0x15e48f=_0x15e48f-0x115;let _0x320700=a100_0x3207[_0x15e48f];return _0x320700;};const a100_0x21370c=a100_0x4b45;'use strict';const db=require(a100_0x21370c(0x120))['db'],logger=require(a100_0x21370c(0x11b))(a100_0x21370c(0x11a)),{getSocket}=require(a100_0x21370c(0x123)),socket=getSocket();require('./chatMessage.socket')[a100_0x21370c(0x121)](socket),exports[a100_0x21370c(0x11d)]=function(_0x2f2926){const _0x20f728=this;return new Promise(function(_0x2ad9f6,_0x2c38ea){const _0x57ab0f=a100_0x4b45;return db[_0x57ab0f(0x115)]['create'](_0x2f2926[_0x57ab0f(0x119)],{'raw':_0x2f2926['options']?_0x2f2926[_0x57ab0f(0x11c)][_0x57ab0f(0x117)]===undefined?!![]:![]:!![]})[_0x57ab0f(0x11f)](function(_0x56864f){const _0x376d92=_0x57ab0f;logger['info']('CreateChatMessage',_0x2f2926),logger['debug'](_0x376d92(0x11d),_0x2f2926,JSON[_0x376d92(0x122)](_0x56864f)),_0x2ad9f6(_0x56864f);})[_0x57ab0f(0x116)](function(_0x589763){const _0x910d9a=_0x57ab0f;logger[_0x910d9a(0x118)]('CreateChatMessage',_0x589763[_0x910d9a(0x11e)],_0x2f2926),_0x2c38ea(_0x20f728[_0x910d9a(0x118)](0x1f4,_0x589763['message']));});});}; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.socket.js b/server/api/chatMessage/chatMessage.socket.js index 8c9e503..5f4abe4 100644 --- a/server/api/chatMessage/chatMessage.socket.js +++ b/server/api/chatMessage/chatMessage.socket.js @@ -1 +1 @@ -const a101_0x165c=['length','./chatMessage.events','emit','update','save'];(function(_0x52422e,_0x2a58dd){const _0x165c8c=function(_0x186033){while(--_0x186033){_0x52422e['push'](_0x52422e['shift']());}};_0x165c8c(++_0x2a58dd);}(a101_0x165c,0x1e5));const a101_0x1860=function(_0x52422e,_0x2a58dd){_0x52422e=_0x52422e-0xde;let _0x165c8c=a101_0x165c[_0x52422e];return _0x165c8c;};const a101_0x1d55e5=a101_0x1860;'use strict';const ChatMessageEvents=require(a101_0x1d55e5(0xdf)),events=[a101_0x1d55e5(0xe2),'remove',a101_0x1d55e5(0xe1)];function createListener(_0x8302ba,_0x36e935){return function(_0x51e416){const _0x3ed61f=a101_0x1860;_0x36e935[_0x3ed61f(0xe0)](_0x8302ba,_0x51e416);};}exports['register']=function(_0x92cb53){const _0x36155b=a101_0x1d55e5;for(let _0x47d9cb=0x0,_0x3b0886=events[_0x36155b(0xde)];_0x47d9cb<_0x3b0886;_0x47d9cb++){const _0x15e9f5=events[_0x47d9cb],_0x19e211=createListener('chatMessage:'+_0x15e9f5,_0x92cb53);ChatMessageEvents['on'](_0x15e9f5,_0x19e211);}}; \ No newline at end of file +const a101_0x1cdd=['remove','emit','chatMessage:','length','save','register','update','./chatMessage.events'];(function(_0x4b78a7,_0xe10f82){const _0x1cdd43=function(_0x1229fe){while(--_0x1229fe){_0x4b78a7['push'](_0x4b78a7['shift']());}};_0x1cdd43(++_0xe10f82);}(a101_0x1cdd,0xb7));const a101_0x1229=function(_0x4b78a7,_0xe10f82){_0x4b78a7=_0x4b78a7-0xdc;let _0x1cdd43=a101_0x1cdd[_0x4b78a7];return _0x1cdd43;};const a101_0x20cdaf=a101_0x1229;'use strict';const ChatMessageEvents=require(a101_0x20cdaf(0xdc)),events=[a101_0x20cdaf(0xe1),a101_0x20cdaf(0xdd),a101_0x20cdaf(0xe3)];function createListener(_0x22b15d,_0xd6ecb9){return function(_0x3449c2){const _0x2d043d=a101_0x1229;_0xd6ecb9[_0x2d043d(0xde)](_0x22b15d,_0x3449c2);};}exports[a101_0x20cdaf(0xe2)]=function(_0xa633fc){const _0x4ade02=a101_0x20cdaf;for(let _0x4658d4=0x0,_0x1428c7=events[_0x4ade02(0xe0)];_0x4658d4<_0x1428c7;_0x4658d4++){const _0x3286b2=events[_0x4658d4],_0x51ab6c=createListener(_0x4ade02(0xdf)+_0x3286b2,_0xa633fc);ChatMessageEvents['on'](_0x3286b2,_0x51ab6c);}}; \ No newline at end of file diff --git a/server/api/chatMessage/index.js b/server/api/chatMessage/index.js index 62c8033..0159fa3 100644 --- a/server/api/chatMessage/index.js +++ b/server/api/chatMessage/index.js @@ -1 +1 @@ -const a102_0x528b=['exports','/:id','chatmessage:create','chat','describe','get','post','/:id/accept','isAuthenticated','delete','index','put','express','accept','update','../../components/auth/service','/:id/reject','/describe'];(function(_0x905491,_0x13ab88){const _0x528b3b=function(_0x2e8893){while(--_0x2e8893){_0x905491['push'](_0x905491['shift']());}};_0x528b3b(++_0x13ab88);}(a102_0x528b,0xbd));const a102_0x2e88=function(_0x905491,_0x13ab88){_0x905491=_0x905491-0x1e5;let _0x528b3b=a102_0x528b[_0x905491];return _0x528b3b;};const a102_0x1ca528=a102_0x2e88;'use strict';const express=require(a102_0x1ca528(0x1e8)),router=express['Router'](),auth=require(a102_0x1ca528(0x1eb)),interaction=require('../../components/interaction/service'),controller=require('./chatMessage.controller');router[a102_0x1ca528(0x1f3)]('/',auth[a102_0x1ca528(0x1f6)](),controller[a102_0x1ca528(0x1e6)]),router[a102_0x1ca528(0x1f3)](a102_0x1ca528(0x1ed),auth[a102_0x1ca528(0x1f6)](),controller[a102_0x1ca528(0x1f2)]),router['get'](a102_0x1ca528(0x1ef),auth[a102_0x1ca528(0x1f6)](),controller['show']),router[a102_0x1ca528(0x1f4)]('/',auth[a102_0x1ca528(0x1f6)](),interaction['tracked'](a102_0x1ca528(0x1f1),a102_0x1ca528(0x1f0)),controller['create']),router[a102_0x1ca528(0x1e7)]('/:id',controller[a102_0x1ca528(0x1ea)]),router[a102_0x1ca528(0x1e7)](a102_0x1ca528(0x1f5),auth['isAuthenticated'](),controller[a102_0x1ca528(0x1e9)]),router[a102_0x1ca528(0x1e7)](a102_0x1ca528(0x1ec),auth[a102_0x1ca528(0x1f6)](),controller['reject']),router[a102_0x1ca528(0x1e5)](a102_0x1ca528(0x1ef),auth[a102_0x1ca528(0x1f6)](),controller['destroy']),module[a102_0x1ca528(0x1ee)]=router; \ No newline at end of file +const a102_0x2244=['delete','show','exports','get','./chatMessage.controller','/:id/reject','tracked','/:id','isAuthenticated','destroy','put','post','describe','create','/:id/accept','../../components/auth/service','chatmessage:create','chat'];(function(_0x4ddd30,_0x4bab4f){const _0x224439=function(_0x254504){while(--_0x254504){_0x4ddd30['push'](_0x4ddd30['shift']());}};_0x224439(++_0x4bab4f);}(a102_0x2244,0x15d));const a102_0x2545=function(_0x4ddd30,_0x4bab4f){_0x4ddd30=_0x4ddd30-0x70;let _0x224439=a102_0x2244[_0x4ddd30];return _0x224439;};const a102_0x466e86=a102_0x2545;'use strict';const express=require('express'),router=express['Router'](),auth=require(a102_0x466e86(0x78)),interaction=require('../../components/interaction/service'),controller=require(a102_0x466e86(0x7f));router[a102_0x466e86(0x7e)]('/',auth['isAuthenticated'](),controller['index']),router[a102_0x466e86(0x7e)]('/describe',auth[a102_0x466e86(0x71)](),controller[a102_0x466e86(0x75)]),router[a102_0x466e86(0x7e)](a102_0x466e86(0x70),auth[a102_0x466e86(0x71)](),controller[a102_0x466e86(0x7c)]),router[a102_0x466e86(0x74)]('/',auth[a102_0x466e86(0x71)](),interaction[a102_0x466e86(0x81)](a102_0x466e86(0x7a),a102_0x466e86(0x79)),controller[a102_0x466e86(0x76)]),router['put']('/:id',controller['update']),router[a102_0x466e86(0x73)](a102_0x466e86(0x77),auth['isAuthenticated'](),controller['accept']),router[a102_0x466e86(0x73)](a102_0x466e86(0x80),auth['isAuthenticated'](),controller['reject']),router[a102_0x466e86(0x7b)]('/:id',auth['isAuthenticated'](),controller[a102_0x466e86(0x72)]),module[a102_0x466e86(0x7d)]=router; \ No newline at end of file diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js b/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js index 446e6e3..bbe8a08 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js @@ -1 +1 @@ -const a103_0xb7ed=['exports','attributes','sequelize','medium','TEXT'];(function(_0x4e2913,_0x6fbf11){const _0xb7ed08=function(_0x5e539d){while(--_0x5e539d){_0x4e2913['push'](_0x4e2913['shift']());}};_0xb7ed08(++_0x6fbf11);}(a103_0xb7ed,0x1d2));const a103_0x5e53=function(_0x4e2913,_0x6fbf11){_0x4e2913=_0x4e2913-0x1cd;let _0xb7ed08=a103_0xb7ed[_0x4e2913];return _0xb7ed08;};const a103_0x131b1a=a103_0x5e53;'use strict';const {DataTypes}=require(a103_0x131b1a(0x1ce)),attributes={'body':{'type':DataTypes[a103_0x131b1a(0x1d0)]({'length':a103_0x131b1a(0x1cf)}),'allowNull':![]}};module[a103_0x131b1a(0x1d1)][a103_0x131b1a(0x1cd)]=attributes; \ No newline at end of file +const a103_0x271c=['TEXT','exports','attributes','medium','sequelize'];(function(_0x433fe1,_0x421276){const _0x271c4e=function(_0x42a325){while(--_0x42a325){_0x433fe1['push'](_0x433fe1['shift']());}};_0x271c4e(++_0x421276);}(a103_0x271c,0x11d));const a103_0x42a3=function(_0x433fe1,_0x421276){_0x433fe1=_0x433fe1-0x1a3;let _0x271c4e=a103_0x271c[_0x433fe1];return _0x271c4e;};const a103_0x4164f6=a103_0x42a3;'use strict';const {DataTypes}=require(a103_0x4164f6(0x1a7)),attributes={'body':{'type':DataTypes[a103_0x4164f6(0x1a3)]({'length':a103_0x4164f6(0x1a6)}),'allowNull':![]}};module[a103_0x4164f6(0x1a4)][a103_0x4164f6(0x1a5)]=attributes; \ No newline at end of file diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.controller.js b/server/api/chatOfflineMessage/chatOfflineMessage.controller.js index 30cbb93..4d79f03 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.controller.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.controller.js @@ -1 +1 @@ -const a104_0x28a9=['count','sendStatus','body','keys','send','end','intersection','fields','show','includeAll','stack','options','rows','include','../../components/parsers/qs','offset','attributes','where','order','json','../../config/logger','Content-Range','map','key','sequelize','ChatOfflineMessage','update','destroy','then','catch','status','length','fieldName','index','set','create','api','limit','error','findOne','query','like','params','sort','filter','rawAttributes','../../mysqldb','name','model','VIRTUAL','type','filters','undefined'];(function(_0x3d2586,_0x3b6719){const _0x28a963=function(_0x4b7445){while(--_0x4b7445){_0x3d2586['push'](_0x3d2586['shift']());}};_0x28a963(++_0x3b6719);}(a104_0x28a9,0x17e));const a104_0x4b74=function(_0x3d2586,_0x3b6719){_0x3d2586=_0x3d2586-0x1a7;let _0x28a963=a104_0x28a9[_0x3d2586];return _0x28a963;};const a104_0x5eb67d=a104_0x4b74;'use strict';const _=require('lodash'),qs=require(a104_0x5eb67d(0x1aa)),logger=require(a104_0x5eb67d(0x1b0))(a104_0x5eb67d(0x1c0)),{db}=require(a104_0x5eb67d(0x1ca)),{Op}=require(a104_0x5eb67d(0x1b4));function respondWithResult(_0x37555f,_0x3a28ec){return _0x3a28ec=_0x3a28ec||0xc8,function(_0x2672df){const _0x36fd03=a104_0x4b74;if(_0x2672df)return _0x37555f[_0x36fd03(0x1ba)](_0x3a28ec)[_0x36fd03(0x1af)](_0x2672df);};}function respondWithFilteredResult(_0x4499d6,_0x44c93a){return function(_0x31184a){const _0x7ca5d=a104_0x4b74;if(_0x31184a){const _0x5aee58=_0x31184a['count'],_0x429d71=_0x44c93a[_0x7ca5d(0x1ab)];let _0x2eac5c=_0x44c93a[_0x7ca5d(0x1ab)]+_0x44c93a[_0x7ca5d(0x1c1)],_0x1f00c6;return _0x2eac5c>=_0x5aee58?(_0x2eac5c=_0x5aee58,_0x1f00c6=0xc8):_0x1f00c6=0xce,_0x4499d6[_0x7ca5d(0x1ba)](_0x1f00c6),_0x4499d6[_0x7ca5d(0x1be)](_0x7ca5d(0x1b1),_0x429d71+'-'+_0x2eac5c+'/'+_0x5aee58)[_0x7ca5d(0x1af)](_0x31184a);}return null;};}function saveUpdates(_0x400bee){return function(_0x5beb8e){const _0x48e70f=a104_0x4b74;if(_0x5beb8e)return _0x5beb8e[_0x48e70f(0x1b6)](_0x400bee)['then'](function(_0xd82e5a){return _0xd82e5a;});return null;};}function removeEntity(_0x42549a){return function(_0x45e97f){const _0x50862b=a104_0x4b74;if(_0x45e97f)return _0x45e97f[_0x50862b(0x1b7)]()[_0x50862b(0x1b8)](function(){const _0x1f7441=_0x50862b;_0x42549a[_0x1f7441(0x1ba)](0xcc)[_0x1f7441(0x1d6)]();});};}function handleEntityNotFound(_0x3a447a){return function(_0x1189fb){const _0x4521a2=a104_0x4b74;return!_0x1189fb&&_0x3a447a[_0x4521a2(0x1d2)](0x194),_0x1189fb;};}function handleError(_0x102fd9,_0x2ed1e7){return _0x2ed1e7=_0x2ed1e7||0x1f4,function(_0x516758){const _0x5d7e47=a104_0x4b74;logger[_0x5d7e47(0x1c2)](_0x516758[_0x5d7e47(0x1db)]),_0x516758[_0x5d7e47(0x1cb)]&&delete _0x516758[_0x5d7e47(0x1cb)],_0x102fd9['status'](_0x2ed1e7)[_0x5d7e47(0x1d5)](_0x516758);};}exports[a104_0x5eb67d(0x1bd)]=function(_0x3f7e3a,_0x5c5f9b){const _0x2b7cb3=a104_0x5eb67d;let _0x135266={};const _0x30cc85={},_0x5cac43={'count':0x0,'rows':[]},_0x5c8394=_[_0x2b7cb3(0x1b2)](db[_0x2b7cb3(0x1b5)][_0x2b7cb3(0x1c9)],function(_0x4d1514){const _0x35a2d5=_0x2b7cb3;return{'name':_0x4d1514[_0x35a2d5(0x1bc)],'type':_0x4d1514[_0x35a2d5(0x1ce)][_0x35a2d5(0x1b3)]};});_0x30cc85[_0x2b7cb3(0x1cc)]=_['map'](_0x5c8394,_0x2b7cb3(0x1cb)),_0x30cc85['query']=_[_0x2b7cb3(0x1d4)](_0x3f7e3a[_0x2b7cb3(0x1c4)]),_0x30cc85['filters']=_['intersection'](_0x30cc85['model'],_0x30cc85[_0x2b7cb3(0x1c4)]),_0x135266[_0x2b7cb3(0x1ac)]=_['intersection'](_0x30cc85[_0x2b7cb3(0x1cc)],qs[_0x2b7cb3(0x1d8)](_0x3f7e3a['query'][_0x2b7cb3(0x1d8)])),_0x135266[_0x2b7cb3(0x1ac)]=_0x135266['attributes'][_0x2b7cb3(0x1bb)]?_0x135266['attributes']:_0x30cc85['model'];typeof _0x3f7e3a['query']['nolimit']===_0x2b7cb3(0x1d0)&&(_0x135266[_0x2b7cb3(0x1c1)]=qs[_0x2b7cb3(0x1c1)](_0x3f7e3a['query']['limit']),_0x135266['offset']=qs[_0x2b7cb3(0x1ab)](_0x3f7e3a[_0x2b7cb3(0x1c4)][_0x2b7cb3(0x1ab)]));_0x135266[_0x2b7cb3(0x1ae)]=qs['sort'](_0x3f7e3a[_0x2b7cb3(0x1c4)][_0x2b7cb3(0x1c7)]),_0x135266[_0x2b7cb3(0x1ad)]=qs[_0x2b7cb3(0x1cf)](_['pick'](_0x3f7e3a['query'],_0x30cc85['filters']),_0x5c8394);_0x3f7e3a[_0x2b7cb3(0x1c4)][_0x2b7cb3(0x1c8)]&&(_0x135266[_0x2b7cb3(0x1ad)]=_['merge'](_0x135266[_0x2b7cb3(0x1ad)],{[Op['or']]:_[_0x2b7cb3(0x1b2)](_0x5c8394,function(_0x2e450d){const _0x7c9c8d=_0x2b7cb3;if(_0x2e450d[_0x7c9c8d(0x1ce)]!==_0x7c9c8d(0x1cd)){const _0x42351f={};return _0x42351f[_0x2e450d[_0x7c9c8d(0x1cb)]]={[Op[_0x7c9c8d(0x1c5)]]:'%'+_0x3f7e3a[_0x7c9c8d(0x1c4)][_0x7c9c8d(0x1c8)]+'%'},_0x42351f;}})}));_0x135266=_['merge']({},_0x135266,_0x3f7e3a['options']);const _0x467621={'where':_0x135266[_0x2b7cb3(0x1ad)]};return db[_0x2b7cb3(0x1b5)][_0x2b7cb3(0x1d1)](_0x467621)[_0x2b7cb3(0x1b8)](function(_0x17feff){const _0x1f660d=_0x2b7cb3;return _0x5cac43['count']=_0x17feff,_0x3f7e3a[_0x1f660d(0x1c4)][_0x1f660d(0x1da)]&&(_0x135266[_0x1f660d(0x1a9)]=[{'all':!![]}]),db[_0x1f660d(0x1b5)]['findAll'](_0x135266);})[_0x2b7cb3(0x1b8)](function(_0x4137bb){const _0x26c694=_0x2b7cb3;return _0x5cac43[_0x26c694(0x1a8)]=_0x4137bb,_0x5cac43;})[_0x2b7cb3(0x1b8)](respondWithFilteredResult(_0x5c5f9b,_0x135266))[_0x2b7cb3(0x1b9)](handleError(_0x5c5f9b,null));},exports[a104_0x5eb67d(0x1d9)]=function(_0x2c16ea,_0x2dcc66){const _0x2367ef=a104_0x5eb67d;let _0x1abab2={'raw':!![],'where':{'id':_0x2c16ea[_0x2367ef(0x1c6)]['id']}};const _0x4e90ce={};return _0x4e90ce[_0x2367ef(0x1cc)]=_[_0x2367ef(0x1d4)](db['ChatOfflineMessage'][_0x2367ef(0x1c9)]),_0x4e90ce[_0x2367ef(0x1c4)]=_[_0x2367ef(0x1d4)](_0x2c16ea[_0x2367ef(0x1c4)]),_0x4e90ce['filters']=_['intersection'](_0x4e90ce[_0x2367ef(0x1cc)],_0x4e90ce[_0x2367ef(0x1c4)]),_0x1abab2[_0x2367ef(0x1ac)]=_[_0x2367ef(0x1d7)](_0x4e90ce['model'],qs[_0x2367ef(0x1d8)](_0x2c16ea[_0x2367ef(0x1c4)][_0x2367ef(0x1d8)])),_0x1abab2[_0x2367ef(0x1ac)]=_0x1abab2['attributes'][_0x2367ef(0x1bb)]?_0x1abab2[_0x2367ef(0x1ac)]:_0x4e90ce[_0x2367ef(0x1cc)],_0x2c16ea['query'][_0x2367ef(0x1da)]&&(_0x1abab2[_0x2367ef(0x1a9)]=[{'all':!![]}]),_0x1abab2=_['merge']({},_0x1abab2,_0x2c16ea[_0x2367ef(0x1a7)]),db[_0x2367ef(0x1b5)][_0x2367ef(0x1c3)](_0x1abab2)[_0x2367ef(0x1b8)](handleEntityNotFound(_0x2dcc66,null))['then'](respondWithResult(_0x2dcc66,null))['catch'](handleError(_0x2dcc66,null));},exports[a104_0x5eb67d(0x1bf)]=function(_0x5c8f16,_0x279945){const _0x29f683=a104_0x5eb67d;return db['ChatOfflineMessage'][_0x29f683(0x1bf)](_0x5c8f16['body'],{})[_0x29f683(0x1b8)](respondWithResult(_0x279945,0xc9))[_0x29f683(0x1b9)](handleError(_0x279945,null));},exports[a104_0x5eb67d(0x1b6)]=function(_0x52f54c,_0x4ca4a6){const _0x46dbd5=a104_0x5eb67d;return _0x52f54c['body']['id']&&delete _0x52f54c[_0x46dbd5(0x1d3)]['id'],db[_0x46dbd5(0x1b5)]['findOne']({'where':{'id':_0x52f54c[_0x46dbd5(0x1c6)]['id']}})[_0x46dbd5(0x1b8)](handleEntityNotFound(_0x4ca4a6,null))[_0x46dbd5(0x1b8)](saveUpdates(_0x52f54c[_0x46dbd5(0x1d3)],null))['then'](respondWithResult(_0x4ca4a6,null))[_0x46dbd5(0x1b9)](handleError(_0x4ca4a6,null));},exports[a104_0x5eb67d(0x1b7)]=function(_0x4afc78,_0x338101){const _0x12fe7a=a104_0x5eb67d;return db[_0x12fe7a(0x1b5)][_0x12fe7a(0x1c3)]({'where':{'id':_0x4afc78['params']['id']}})[_0x12fe7a(0x1b8)](handleEntityNotFound(_0x338101,null))[_0x12fe7a(0x1b8)](removeEntity(_0x338101,null))[_0x12fe7a(0x1b9)](handleError(_0x338101,null));},exports['describe']=function(_0x39ebfd,_0x521c59){const _0x992339=a104_0x5eb67d;return db[_0x992339(0x1b5)]['describe']()[_0x992339(0x1b8)](respondWithResult(_0x521c59,null))[_0x992339(0x1b9)](handleError(_0x521c59,null));}; \ No newline at end of file +const a104_0x5142=['params','undefined','attributes','../../config/logger','update','where','VIRTUAL','error','model','fields','filter','show','merge','sendStatus','offset','lodash','pick','map','includeAll','count','../../mysqldb','options','include','destroy','catch','length','ChatOfflineMessage','rawAttributes','limit','../../components/parsers/qs','then','sequelize','filters','nolimit','api','type','describe','status','sort','like','create','rows','key','index','stack','keys','findOne','query','intersection','fieldName','name','body','findAll'];(function(_0x57ae17,_0x53b748){const _0x514291=function(_0x362a61){while(--_0x362a61){_0x57ae17['push'](_0x57ae17['shift']());}};_0x514291(++_0x53b748);}(a104_0x5142,0x1af));const a104_0x362a=function(_0x57ae17,_0x53b748){_0x57ae17=_0x57ae17-0x93;let _0x514291=a104_0x5142[_0x57ae17];return _0x514291;};const a104_0xd6df96=a104_0x362a;'use strict';const _=require(a104_0xd6df96(0x9b)),qs=require(a104_0xd6df96(0xa9)),logger=require(a104_0xd6df96(0xc4))(a104_0xd6df96(0xae)),{db}=require(a104_0xd6df96(0xa0)),{Op}=require(a104_0xd6df96(0xab));function respondWithResult(_0x35d9d8,_0x2e90de){return _0x2e90de=_0x2e90de||0xc8,function(_0x543502){const _0x1aa35c=a104_0x362a;if(_0x543502)return _0x35d9d8[_0x1aa35c(0xb1)](_0x2e90de)['json'](_0x543502);};}function respondWithFilteredResult(_0x595b31,_0x17278d){return function(_0x2064a0){const _0x31c092=a104_0x362a;if(_0x2064a0){const _0x76771b=_0x2064a0['count'],_0x279a01=_0x17278d[_0x31c092(0x9a)];let _0x5a51fe=_0x17278d[_0x31c092(0x9a)]+_0x17278d['limit'],_0x7cd33a;return _0x5a51fe>=_0x76771b?(_0x5a51fe=_0x76771b,_0x7cd33a=0xc8):_0x7cd33a=0xce,_0x595b31[_0x31c092(0xb1)](_0x7cd33a),_0x595b31['set']('Content-Range',_0x279a01+'-'+_0x5a51fe+'/'+_0x76771b)['json'](_0x2064a0);}return null;};}function saveUpdates(_0x512d22){return function(_0x510377){const _0x3cfefc=a104_0x362a;if(_0x510377)return _0x510377[_0x3cfefc(0xc5)](_0x512d22)[_0x3cfefc(0xaa)](function(_0x5c8efe){return _0x5c8efe;});return null;};}function removeEntity(_0x3d45ce){return function(_0x682322){if(_0x682322)return _0x682322['destroy']()['then'](function(){const _0x55bbe4=a104_0x362a;_0x3d45ce[_0x55bbe4(0xb1)](0xcc)['end']();});};}function handleEntityNotFound(_0x367349){return function(_0x3782ba){const _0x3c8119=a104_0x362a;return!_0x3782ba&&_0x367349[_0x3c8119(0x99)](0x194),_0x3782ba;};}function handleError(_0x43f62c,_0x39111b){return _0x39111b=_0x39111b||0x1f4,function(_0x570384){const _0x14c70b=a104_0x362a;logger[_0x14c70b(0x93)](_0x570384[_0x14c70b(0xb8)]),_0x570384[_0x14c70b(0xbe)]&&delete _0x570384[_0x14c70b(0xbe)],_0x43f62c[_0x14c70b(0xb1)](_0x39111b)['send'](_0x570384);};}exports[a104_0xd6df96(0xb7)]=function(_0x151ed3,_0x285c0f){const _0x19a3e5=a104_0xd6df96;let _0x1ebcdb={};const _0x54f9f1={},_0x4477d2={'count':0x0,'rows':[]},_0x5204d1=_['map'](db[_0x19a3e5(0xa6)][_0x19a3e5(0xa7)],function(_0x53a6e3){const _0x1d7939=_0x19a3e5;return{'name':_0x53a6e3[_0x1d7939(0xbd)],'type':_0x53a6e3[_0x1d7939(0xaf)][_0x1d7939(0xb6)]};});_0x54f9f1['model']=_[_0x19a3e5(0x9d)](_0x5204d1,_0x19a3e5(0xbe)),_0x54f9f1[_0x19a3e5(0xbb)]=_[_0x19a3e5(0xb9)](_0x151ed3[_0x19a3e5(0xbb)]),_0x54f9f1[_0x19a3e5(0xac)]=_['intersection'](_0x54f9f1[_0x19a3e5(0x94)],_0x54f9f1['query']),_0x1ebcdb[_0x19a3e5(0xc3)]=_[_0x19a3e5(0xbc)](_0x54f9f1[_0x19a3e5(0x94)],qs[_0x19a3e5(0x95)](_0x151ed3[_0x19a3e5(0xbb)]['fields'])),_0x1ebcdb[_0x19a3e5(0xc3)]=_0x1ebcdb[_0x19a3e5(0xc3)][_0x19a3e5(0xa5)]?_0x1ebcdb[_0x19a3e5(0xc3)]:_0x54f9f1['model'];typeof _0x151ed3[_0x19a3e5(0xbb)][_0x19a3e5(0xad)]===_0x19a3e5(0xc2)&&(_0x1ebcdb[_0x19a3e5(0xa8)]=qs['limit'](_0x151ed3[_0x19a3e5(0xbb)]['limit']),_0x1ebcdb[_0x19a3e5(0x9a)]=qs[_0x19a3e5(0x9a)](_0x151ed3['query'][_0x19a3e5(0x9a)]));_0x1ebcdb['order']=qs[_0x19a3e5(0xb2)](_0x151ed3[_0x19a3e5(0xbb)]['sort']),_0x1ebcdb[_0x19a3e5(0xc6)]=qs[_0x19a3e5(0xac)](_[_0x19a3e5(0x9c)](_0x151ed3['query'],_0x54f9f1[_0x19a3e5(0xac)]),_0x5204d1);_0x151ed3['query'][_0x19a3e5(0x96)]&&(_0x1ebcdb[_0x19a3e5(0xc6)]=_[_0x19a3e5(0x98)](_0x1ebcdb['where'],{[Op['or']]:_[_0x19a3e5(0x9d)](_0x5204d1,function(_0x5a4653){const _0x326fc0=_0x19a3e5;if(_0x5a4653[_0x326fc0(0xaf)]!==_0x326fc0(0xc7)){const _0x4cd4fb={};return _0x4cd4fb[_0x5a4653[_0x326fc0(0xbe)]]={[Op[_0x326fc0(0xb3)]]:'%'+_0x151ed3[_0x326fc0(0xbb)]['filter']+'%'},_0x4cd4fb;}})}));_0x1ebcdb=_[_0x19a3e5(0x98)]({},_0x1ebcdb,_0x151ed3[_0x19a3e5(0xa1)]);const _0xcce9cf={'where':_0x1ebcdb[_0x19a3e5(0xc6)]};return db[_0x19a3e5(0xa6)][_0x19a3e5(0x9f)](_0xcce9cf)[_0x19a3e5(0xaa)](function(_0x3981e8){const _0x3e6bd2=_0x19a3e5;return _0x4477d2[_0x3e6bd2(0x9f)]=_0x3981e8,_0x151ed3[_0x3e6bd2(0xbb)][_0x3e6bd2(0x9e)]&&(_0x1ebcdb['include']=[{'all':!![]}]),db['ChatOfflineMessage'][_0x3e6bd2(0xc0)](_0x1ebcdb);})['then'](function(_0x3ba434){const _0x5350bd=_0x19a3e5;return _0x4477d2[_0x5350bd(0xb5)]=_0x3ba434,_0x4477d2;})['then'](respondWithFilteredResult(_0x285c0f,_0x1ebcdb))[_0x19a3e5(0xa4)](handleError(_0x285c0f,null));},exports[a104_0xd6df96(0x97)]=function(_0x30d10e,_0x277fad){const _0x5f2baf=a104_0xd6df96;let _0x23195e={'raw':!![],'where':{'id':_0x30d10e[_0x5f2baf(0xc1)]['id']}};const _0x43181e={};return _0x43181e['model']=_[_0x5f2baf(0xb9)](db[_0x5f2baf(0xa6)]['rawAttributes']),_0x43181e[_0x5f2baf(0xbb)]=_[_0x5f2baf(0xb9)](_0x30d10e['query']),_0x43181e[_0x5f2baf(0xac)]=_['intersection'](_0x43181e[_0x5f2baf(0x94)],_0x43181e[_0x5f2baf(0xbb)]),_0x23195e[_0x5f2baf(0xc3)]=_[_0x5f2baf(0xbc)](_0x43181e[_0x5f2baf(0x94)],qs[_0x5f2baf(0x95)](_0x30d10e[_0x5f2baf(0xbb)][_0x5f2baf(0x95)])),_0x23195e[_0x5f2baf(0xc3)]=_0x23195e[_0x5f2baf(0xc3)][_0x5f2baf(0xa5)]?_0x23195e[_0x5f2baf(0xc3)]:_0x43181e[_0x5f2baf(0x94)],_0x30d10e[_0x5f2baf(0xbb)]['includeAll']&&(_0x23195e[_0x5f2baf(0xa2)]=[{'all':!![]}]),_0x23195e=_[_0x5f2baf(0x98)]({},_0x23195e,_0x30d10e['options']),db['ChatOfflineMessage'][_0x5f2baf(0xba)](_0x23195e)['then'](handleEntityNotFound(_0x277fad,null))[_0x5f2baf(0xaa)](respondWithResult(_0x277fad,null))[_0x5f2baf(0xa4)](handleError(_0x277fad,null));},exports[a104_0xd6df96(0xb4)]=function(_0x5615b3,_0x5400f2){const _0x44b512=a104_0xd6df96;return db[_0x44b512(0xa6)]['create'](_0x5615b3[_0x44b512(0xbf)],{})[_0x44b512(0xaa)](respondWithResult(_0x5400f2,0xc9))[_0x44b512(0xa4)](handleError(_0x5400f2,null));},exports[a104_0xd6df96(0xc5)]=function(_0x75acdf,_0xb0674c){const _0xe4b152=a104_0xd6df96;return _0x75acdf['body']['id']&&delete _0x75acdf[_0xe4b152(0xbf)]['id'],db[_0xe4b152(0xa6)][_0xe4b152(0xba)]({'where':{'id':_0x75acdf[_0xe4b152(0xc1)]['id']}})[_0xe4b152(0xaa)](handleEntityNotFound(_0xb0674c,null))[_0xe4b152(0xaa)](saveUpdates(_0x75acdf[_0xe4b152(0xbf)],null))['then'](respondWithResult(_0xb0674c,null))['catch'](handleError(_0xb0674c,null));},exports[a104_0xd6df96(0xa3)]=function(_0x7d0945,_0x46a493){const _0x506c46=a104_0xd6df96;return db[_0x506c46(0xa6)][_0x506c46(0xba)]({'where':{'id':_0x7d0945[_0x506c46(0xc1)]['id']}})[_0x506c46(0xaa)](handleEntityNotFound(_0x46a493,null))['then'](removeEntity(_0x46a493,null))[_0x506c46(0xa4)](handleError(_0x46a493,null));},exports[a104_0xd6df96(0xb0)]=function(_0x2cd5ed,_0x31dbf2){const _0xafd816=a104_0xd6df96;return db[_0xafd816(0xa6)][_0xafd816(0xb0)]()[_0xafd816(0xaa)](respondWithResult(_0x31dbf2,null))[_0xafd816(0xa4)](handleError(_0x31dbf2,null));}; \ No newline at end of file diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.model.js b/server/api/chatOfflineMessage/chatOfflineMessage.model.js index c2f4dcf..e9f73e9 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.model.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.model.js @@ -1 +1 @@ -const a105_0x3b5f=['exports','ChatOfflineMessage','./chatOfflineMessage.attributes','./chatOfflineMessage.options','init','function'];(function(_0x1e0c47,_0x1d86ac){const _0x3b5fa1=function(_0x461658){while(--_0x461658){_0x1e0c47['push'](_0x1e0c47['shift']());}};_0x3b5fa1(++_0x1d86ac);}(a105_0x3b5f,0x179));const a105_0x4616=function(_0x1e0c47,_0x1d86ac){_0x1e0c47=_0x1e0c47-0x1c0;let _0x3b5fa1=a105_0x3b5f[_0x1e0c47];return _0x3b5fa1;};const a105_0x404a05=a105_0x4616;'use strict';const {Model}=require('sequelize'),{attributes}=require(a105_0x404a05(0x1c3)),{options}=require(a105_0x404a05(0x1c4));class ChatOfflineMessage extends Model{}function init(_0x394093,_0x29bac8){const _0x17057d=a105_0x404a05,_0x1641a5=options(_0x394093),_0x163313=typeof _0x29bac8===_0x17057d(0x1c0)?_0x29bac8(_0x1641a5):_0x1641a5;return ChatOfflineMessage['init'](attributes,_0x163313),ChatOfflineMessage;}module['exports'][a105_0x404a05(0x1c2)]=ChatOfflineMessage,module[a105_0x404a05(0x1c1)][a105_0x404a05(0x1c5)]=init; \ No newline at end of file +const a105_0x2534=['./chatOfflineMessage.attributes','function','init','ChatOfflineMessage','exports'];(function(_0x2c2cf7,_0x5998b7){const _0x2534b0=function(_0x4e3366){while(--_0x4e3366){_0x2c2cf7['push'](_0x2c2cf7['shift']());}};_0x2534b0(++_0x5998b7);}(a105_0x2534,0x1ec));const a105_0x4e33=function(_0x2c2cf7,_0x5998b7){_0x2c2cf7=_0x2c2cf7-0x1e0;let _0x2534b0=a105_0x2534[_0x2c2cf7];return _0x2534b0;};const a105_0x6e5fde=a105_0x4e33;'use strict';const {Model}=require('sequelize'),{attributes}=require(a105_0x6e5fde(0x1e3)),{options}=require('./chatOfflineMessage.options');class ChatOfflineMessage extends Model{}function init(_0x28486a,_0xc16e9b){const _0x297e8d=a105_0x6e5fde,_0x24a3d9=options(_0x28486a),_0x44cff6=typeof _0xc16e9b===_0x297e8d(0x1e4)?_0xc16e9b(_0x24a3d9):_0x24a3d9;return ChatOfflineMessage[_0x297e8d(0x1e0)](attributes,_0x44cff6),ChatOfflineMessage;}module[a105_0x6e5fde(0x1e2)][a105_0x6e5fde(0x1e1)]=ChatOfflineMessage,module[a105_0x6e5fde(0x1e2)][a105_0x6e5fde(0x1e0)]=init; \ No newline at end of file diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.options.js b/server/api/chatOfflineMessage/chatOfflineMessage.options.js index 8d7120d..3950673 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.options.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.options.js @@ -1 +1 @@ -var a106_0x8b4d=['utf8mb4','exports','utf8mb4_unicode_ci','options'];(function(_0x2e1e32,_0x4a6a79){var _0x8b4d68=function(_0xc993c7){while(--_0xc993c7){_0x2e1e32['push'](_0x2e1e32['shift']());}};_0x8b4d68(++_0x4a6a79);}(a106_0x8b4d,0x1f1));var a106_0xc993=function(_0x2e1e32,_0x4a6a79){_0x2e1e32=_0x2e1e32-0x19c;var _0x8b4d68=a106_0x8b4d[_0x2e1e32];return _0x8b4d68;};var a106_0x327274=a106_0xc993;function options(_0x4f3e22){var _0x3201b9=a106_0xc993;return{'sequelize':_0x4f3e22,'tableName':'chat_offline_messages','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x3201b9(0x19f),'collate':_0x3201b9(0x19d)};}module[a106_0x327274(0x19c)][a106_0x327274(0x19e)]=options; \ No newline at end of file +var a106_0x1b14=['exports','options'];(function(_0xbfd8b0,_0x4ecbc1){var _0x1b1451=function(_0x3a6826){while(--_0x3a6826){_0xbfd8b0['push'](_0xbfd8b0['shift']());}};_0x1b1451(++_0x4ecbc1);}(a106_0x1b14,0x98));var a106_0x3a68=function(_0xbfd8b0,_0x4ecbc1){_0xbfd8b0=_0xbfd8b0-0xc2;var _0x1b1451=a106_0x1b14[_0xbfd8b0];return _0x1b1451;};var a106_0x426d02=a106_0x3a68;function options(_0x352824){return{'sequelize':_0x352824,'tableName':'chat_offline_messages','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'};}module[a106_0x426d02(0xc2)][a106_0x426d02(0xc3)]=options; \ No newline at end of file diff --git a/server/api/chatOfflineMessage/index.js b/server/api/chatOfflineMessage/index.js index 3451c61..2293253 100644 --- a/server/api/chatOfflineMessage/index.js +++ b/server/api/chatOfflineMessage/index.js @@ -1 +1 @@ -const a107_0x8723=['./chatOfflineMessage.controller','Router','delete','destroy','../../components/auth/service','express','isAuthenticated','/:id','put','index','/describe','get','update','create'];(function(_0x56dd4b,_0x28062c){const _0x872375=function(_0x5d0e60){while(--_0x5d0e60){_0x56dd4b['push'](_0x56dd4b['shift']());}};_0x872375(++_0x28062c);}(a107_0x8723,0x172));const a107_0x5d0e=function(_0x56dd4b,_0x28062c){_0x56dd4b=_0x56dd4b-0xc9;let _0x872375=a107_0x8723[_0x56dd4b];return _0x872375;};const a107_0x3bf349=a107_0x5d0e;'use strict';const express=require(a107_0x3bf349(0xd6)),router=express[a107_0x3bf349(0xd2)](),auth=require(a107_0x3bf349(0xd5)),controller=require(a107_0x3bf349(0xd1));router[a107_0x3bf349(0xce)]('/',auth[a107_0x3bf349(0xc9)](),controller[a107_0x3bf349(0xcc)]),router[a107_0x3bf349(0xce)](a107_0x3bf349(0xcd),auth['isAuthenticated'](),controller['describe']),router['get'](a107_0x3bf349(0xca),auth[a107_0x3bf349(0xc9)](),controller['show']),router['post']('/',auth['isAuthenticated'](),controller[a107_0x3bf349(0xd0)]),router[a107_0x3bf349(0xcb)](a107_0x3bf349(0xca),auth[a107_0x3bf349(0xc9)](),controller[a107_0x3bf349(0xcf)]),router[a107_0x3bf349(0xd3)](a107_0x3bf349(0xca),auth['isAuthenticated'](),controller[a107_0x3bf349(0xd4)]),module['exports']=router; \ No newline at end of file +const a107_0x2a3b=['/describe','index','delete','create','get','express','/:id','./chatOfflineMessage.controller','update','show','describe','isAuthenticated','post','Router','destroy','put'];(function(_0x40bbde,_0xaf8735){const _0x2a3b27=function(_0x3e6be4){while(--_0x3e6be4){_0x40bbde['push'](_0x40bbde['shift']());}};_0x2a3b27(++_0xaf8735);}(a107_0x2a3b,0xf6));const a107_0x3e6b=function(_0x40bbde,_0xaf8735){_0x40bbde=_0x40bbde-0x161;let _0x2a3b27=a107_0x2a3b[_0x40bbde];return _0x2a3b27;};const a107_0x2936ed=a107_0x3e6b;'use strict';const express=require(a107_0x2936ed(0x170)),router=express[a107_0x2936ed(0x168)](),auth=require('../../components/auth/service'),controller=require(a107_0x2936ed(0x162));router[a107_0x2936ed(0x16f)]('/',auth['isAuthenticated'](),controller[a107_0x2936ed(0x16c)]),router[a107_0x2936ed(0x16f)](a107_0x2936ed(0x16b),auth[a107_0x2936ed(0x166)](),controller[a107_0x2936ed(0x165)]),router[a107_0x2936ed(0x16f)](a107_0x2936ed(0x161),auth[a107_0x2936ed(0x166)](),controller[a107_0x2936ed(0x164)]),router[a107_0x2936ed(0x167)]('/',auth[a107_0x2936ed(0x166)](),controller[a107_0x2936ed(0x16e)]),router[a107_0x2936ed(0x16a)](a107_0x2936ed(0x161),auth[a107_0x2936ed(0x166)](),controller[a107_0x2936ed(0x163)]),router[a107_0x2936ed(0x16d)]('/:id',auth[a107_0x2936ed(0x166)](),controller[a107_0x2936ed(0x169)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/chatProactiveAction/chatProactiveAction.attributes.js b/server/api/chatProactiveAction/chatProactiveAction.attributes.js index 7d66703..7fe59a6 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.attributes.js +++ b/server/api/chatProactiveAction/chatProactiveAction.attributes.js @@ -1 +1 @@ -const a108_0x32a4=['ENUM','attributes','mouseOver','INTEGER','STRING','sequelize','timeout','exports'];(function(_0x412836,_0x1339fb){const _0x32a419=function(_0x3b5b9b){while(--_0x3b5b9b){_0x412836['push'](_0x412836['shift']());}};_0x32a419(++_0x1339fb);}(a108_0x32a4,0x1be));const a108_0x3b5b=function(_0x412836,_0x1339fb){_0x412836=_0x412836-0x191;let _0x32a419=a108_0x32a4[_0x412836];return _0x32a419;};const a108_0x37ff3f=a108_0x3b5b;'use strict';const {DataTypes}=require(a108_0x37ff3f(0x198)),attributes={'name':{'type':DataTypes[a108_0x37ff3f(0x197)],'allowNull':![]},'type':{'type':DataTypes[a108_0x37ff3f(0x193)](a108_0x37ff3f(0x195),a108_0x37ff3f(0x191)),'defaultValue':a108_0x37ff3f(0x195)},'selector':{'type':DataTypes[a108_0x37ff3f(0x197)]},'timeout':{'type':DataTypes[a108_0x37ff3f(0x196)]}};module[a108_0x37ff3f(0x192)][a108_0x37ff3f(0x194)]=attributes; \ No newline at end of file +const a108_0x3532=['STRING','attributes','mouseOver','INTEGER','sequelize','exports','ENUM'];(function(_0x556e45,_0x5843c2){const _0x3532c4=function(_0x3b3b74){while(--_0x3b3b74){_0x556e45['push'](_0x556e45['shift']());}};_0x3532c4(++_0x5843c2);}(a108_0x3532,0x64));const a108_0x3b3b=function(_0x556e45,_0x5843c2){_0x556e45=_0x556e45-0x129;let _0x3532c4=a108_0x3532[_0x556e45];return _0x3532c4;};const a108_0xda7cc5=a108_0x3b3b;'use strict';const {DataTypes}=require(a108_0xda7cc5(0x12b)),attributes={'name':{'type':DataTypes[a108_0xda7cc5(0x12e)],'allowNull':![]},'type':{'type':DataTypes[a108_0xda7cc5(0x12d)](a108_0xda7cc5(0x129),'timeout'),'defaultValue':a108_0xda7cc5(0x129)},'selector':{'type':DataTypes['STRING']},'timeout':{'type':DataTypes[a108_0xda7cc5(0x12a)]}};module[a108_0xda7cc5(0x12c)][a108_0xda7cc5(0x12f)]=attributes; \ No newline at end of file diff --git a/server/api/chatProactiveAction/chatProactiveAction.controller.js b/server/api/chatProactiveAction/chatProactiveAction.controller.js index 2f236cb..029c1a1 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.controller.js +++ b/server/api/chatProactiveAction/chatProactiveAction.controller.js @@ -1 +1 @@ -const a109_0x26c5=['status','params','update','body','findOne','../../components/parsers/qs','filters','model','then','end','merge','lodash','name','error','create','rawAttributes','query','keys','intersection','catch','destroy','attributes','options','ChatProactiveAction','../../mysqldb','stack','sendStatus','include','fields','length','../../config/logger','includeAll'];(function(_0x1f47aa,_0x48c94b){const _0x26c525=function(_0x556b89){while(--_0x556b89){_0x1f47aa['push'](_0x1f47aa['shift']());}};_0x26c525(++_0x48c94b);}(a109_0x26c5,0xf2));const a109_0x556b=function(_0x1f47aa,_0x48c94b){_0x1f47aa=_0x1f47aa-0xf8;let _0x26c525=a109_0x26c5[_0x1f47aa];return _0x26c525;};const a109_0x41a334=a109_0x556b;'use strict';const _=require(a109_0x41a334(0x111)),qs=require(a109_0x41a334(0x10b)),logger=require(a109_0x41a334(0x104))('api'),{db}=require(a109_0x41a334(0xfe));function respondWithResult(_0x3447e9,_0x2cb493){return _0x2cb493=_0x2cb493||0xc8,function(_0x17f2b7){const _0x40e00f=a109_0x556b;if(_0x17f2b7)return _0x3447e9[_0x40e00f(0x106)](_0x2cb493)['json'](_0x17f2b7);};}function saveUpdates(_0x10ad06){return function(_0x109a0c){if(_0x109a0c)return _0x109a0c['update'](_0x10ad06)['then'](function(_0x6c4aa1){return _0x6c4aa1;});return null;};}function removeEntity(_0x57e424){return function(_0x1534bc){const _0x3467fe=a109_0x556b;if(_0x1534bc)return _0x1534bc[_0x3467fe(0xfa)]()['then'](function(){const _0xfd5269=_0x3467fe;_0x57e424[_0xfd5269(0x106)](0xcc)[_0xfd5269(0x10f)]();});};}function handleEntityNotFound(_0x1df2ad){return function(_0x2ea328){const _0x3370f9=a109_0x556b;return!_0x2ea328&&_0x1df2ad[_0x3370f9(0x100)](0x194),_0x2ea328;};}function handleError(_0x36d7c4,_0x2221fa){return _0x2221fa=_0x2221fa||0x1f4,function(_0x5034bc){const _0x149bd8=a109_0x556b;logger[_0x149bd8(0x113)](_0x5034bc[_0x149bd8(0xff)]),_0x5034bc[_0x149bd8(0x112)]&&delete _0x5034bc['name'],_0x36d7c4[_0x149bd8(0x106)](_0x2221fa)['send'](_0x5034bc);};}exports['show']=function(_0x22d3c7,_0x347b03){const _0x4ad56f=a109_0x41a334;let _0x184a7e={'raw':!![],'where':{'id':_0x22d3c7[_0x4ad56f(0x107)]['id']}};const _0x41fde9={};return _0x41fde9['model']=_[_0x4ad56f(0x117)](db[_0x4ad56f(0xfd)][_0x4ad56f(0x115)]),_0x41fde9['query']=_[_0x4ad56f(0x117)](_0x22d3c7[_0x4ad56f(0x116)]),_0x41fde9[_0x4ad56f(0x10c)]=_['intersection'](_0x41fde9[_0x4ad56f(0x10d)],_0x41fde9['query']),_0x184a7e[_0x4ad56f(0xfb)]=_[_0x4ad56f(0xf8)](_0x41fde9['model'],qs[_0x4ad56f(0x102)](_0x22d3c7[_0x4ad56f(0x116)][_0x4ad56f(0x102)])),_0x184a7e['attributes']=_0x184a7e[_0x4ad56f(0xfb)][_0x4ad56f(0x103)]?_0x184a7e[_0x4ad56f(0xfb)]:_0x41fde9['model'],_0x22d3c7['query'][_0x4ad56f(0x105)]&&(_0x184a7e[_0x4ad56f(0x101)]=[{'all':!![]}]),_0x184a7e=_[_0x4ad56f(0x110)]({},_0x184a7e,_0x22d3c7[_0x4ad56f(0xfc)]),db[_0x4ad56f(0xfd)][_0x4ad56f(0x10a)](_0x184a7e)[_0x4ad56f(0x10e)](handleEntityNotFound(_0x347b03,null))['then'](respondWithResult(_0x347b03,null))['catch'](handleError(_0x347b03,null));},exports[a109_0x41a334(0x114)]=function(_0x2ed522,_0x25c005){const _0x14a74c=a109_0x41a334;return db[_0x14a74c(0xfd)][_0x14a74c(0x114)](_0x2ed522[_0x14a74c(0x109)],{})[_0x14a74c(0x10e)](respondWithResult(_0x25c005,0xc9))[_0x14a74c(0xf9)](handleError(_0x25c005,null));},exports[a109_0x41a334(0x108)]=function(_0x964584,_0xbaad57){const _0x128dd0=a109_0x41a334;return _0x964584[_0x128dd0(0x109)]['id']&&delete _0x964584['body']['id'],db['ChatProactiveAction'][_0x128dd0(0x10a)]({'where':{'id':_0x964584['params']['id']}})['then'](handleEntityNotFound(_0xbaad57,null))['then'](saveUpdates(_0x964584['body'],null))[_0x128dd0(0x10e)](respondWithResult(_0xbaad57,null))[_0x128dd0(0xf9)](handleError(_0xbaad57,null));},exports[a109_0x41a334(0xfa)]=function(_0x3478db,_0x1a5fe5){const _0x3bff09=a109_0x41a334;return db[_0x3bff09(0xfd)][_0x3bff09(0x10a)]({'where':{'id':_0x3478db[_0x3bff09(0x107)]['id']}})[_0x3bff09(0x10e)](handleEntityNotFound(_0x1a5fe5,null))[_0x3bff09(0x10e)](removeEntity(_0x1a5fe5,null))[_0x3bff09(0xf9)](handleError(_0x1a5fe5,null));}; \ No newline at end of file +const a109_0x5b9b=['destroy','../../config/logger','status','query','create','end','attributes','include','intersection','show','includeAll','fields','merge','findOne','length','error','update','keys','then','body','ChatProactiveAction','model','catch','lodash','stack','params','name','filters','json','sendStatus','options'];(function(_0x3a798c,_0x4d5824){const _0x5b9b8c=function(_0x408649){while(--_0x408649){_0x3a798c['push'](_0x3a798c['shift']());}};_0x5b9b8c(++_0x4d5824);}(a109_0x5b9b,0x138));const a109_0x4086=function(_0x3a798c,_0x4d5824){_0x3a798c=_0x3a798c-0x18f;let _0x5b9b8c=a109_0x5b9b[_0x3a798c];return _0x5b9b8c;};const a109_0x56e9ad=a109_0x4086;'use strict';const _=require(a109_0x56e9ad(0x1a4)),qs=require('../../components/parsers/qs'),logger=require(a109_0x56e9ad(0x1ad))('api'),{db}=require('../../mysqldb');function respondWithResult(_0x5ad5d6,_0x15f107){return _0x15f107=_0x15f107||0xc8,function(_0x1d08dc){const _0x1cebf4=a109_0x4086;if(_0x1d08dc)return _0x5ad5d6[_0x1cebf4(0x18f)](_0x15f107)[_0x1cebf4(0x1a9)](_0x1d08dc);};}function saveUpdates(_0x38163e){return function(_0x379150){if(_0x379150)return _0x379150['update'](_0x38163e)['then'](function(_0x205a7c){return _0x205a7c;});return null;};}function removeEntity(_0x5732be){return function(_0x35a99e){if(_0x35a99e)return _0x35a99e['destroy']()['then'](function(){const _0xc22612=a109_0x4086;_0x5732be['status'](0xcc)[_0xc22612(0x192)]();});};}function handleEntityNotFound(_0x16da37){return function(_0x3981fb){const _0x481ac6=a109_0x4086;return!_0x3981fb&&_0x16da37[_0x481ac6(0x1aa)](0x194),_0x3981fb;};}function handleError(_0x3bb83f,_0x58280b){return _0x58280b=_0x58280b||0x1f4,function(_0x5e881a){const _0xace9d4=a109_0x4086;logger[_0xace9d4(0x19c)](_0x5e881a[_0xace9d4(0x1a5)]),_0x5e881a[_0xace9d4(0x1a7)]&&delete _0x5e881a[_0xace9d4(0x1a7)],_0x3bb83f[_0xace9d4(0x18f)](_0x58280b)['send'](_0x5e881a);};}exports[a109_0x56e9ad(0x196)]=function(_0x591b8a,_0x3aa83e){const _0x2baf2f=a109_0x56e9ad;let _0xe18c35={'raw':!![],'where':{'id':_0x591b8a[_0x2baf2f(0x1a6)]['id']}};const _0x552713={};return _0x552713['model']=_[_0x2baf2f(0x19e)](db['ChatProactiveAction']['rawAttributes']),_0x552713[_0x2baf2f(0x190)]=_[_0x2baf2f(0x19e)](_0x591b8a[_0x2baf2f(0x190)]),_0x552713[_0x2baf2f(0x1a8)]=_[_0x2baf2f(0x195)](_0x552713[_0x2baf2f(0x1a2)],_0x552713['query']),_0xe18c35[_0x2baf2f(0x193)]=_[_0x2baf2f(0x195)](_0x552713[_0x2baf2f(0x1a2)],qs[_0x2baf2f(0x198)](_0x591b8a[_0x2baf2f(0x190)][_0x2baf2f(0x198)])),_0xe18c35[_0x2baf2f(0x193)]=_0xe18c35[_0x2baf2f(0x193)][_0x2baf2f(0x19b)]?_0xe18c35[_0x2baf2f(0x193)]:_0x552713['model'],_0x591b8a['query'][_0x2baf2f(0x197)]&&(_0xe18c35[_0x2baf2f(0x194)]=[{'all':!![]}]),_0xe18c35=_[_0x2baf2f(0x199)]({},_0xe18c35,_0x591b8a[_0x2baf2f(0x1ab)]),db[_0x2baf2f(0x1a1)][_0x2baf2f(0x19a)](_0xe18c35)[_0x2baf2f(0x19f)](handleEntityNotFound(_0x3aa83e,null))[_0x2baf2f(0x19f)](respondWithResult(_0x3aa83e,null))[_0x2baf2f(0x1a3)](handleError(_0x3aa83e,null));},exports[a109_0x56e9ad(0x191)]=function(_0xc04bb5,_0x303aec){const _0x15273e=a109_0x56e9ad;return db[_0x15273e(0x1a1)]['create'](_0xc04bb5[_0x15273e(0x1a0)],{})[_0x15273e(0x19f)](respondWithResult(_0x303aec,0xc9))[_0x15273e(0x1a3)](handleError(_0x303aec,null));},exports[a109_0x56e9ad(0x19d)]=function(_0x57fb9a,_0xc730b6){const _0x39c641=a109_0x56e9ad;return _0x57fb9a[_0x39c641(0x1a0)]['id']&&delete _0x57fb9a[_0x39c641(0x1a0)]['id'],db['ChatProactiveAction'][_0x39c641(0x19a)]({'where':{'id':_0x57fb9a['params']['id']}})[_0x39c641(0x19f)](handleEntityNotFound(_0xc730b6,null))['then'](saveUpdates(_0x57fb9a[_0x39c641(0x1a0)],null))['then'](respondWithResult(_0xc730b6,null))[_0x39c641(0x1a3)](handleError(_0xc730b6,null));},exports[a109_0x56e9ad(0x1ac)]=function(_0x401f14,_0x402924){const _0x1990c7=a109_0x56e9ad;return db[_0x1990c7(0x1a1)][_0x1990c7(0x19a)]({'where':{'id':_0x401f14[_0x1990c7(0x1a6)]['id']}})['then'](handleEntityNotFound(_0x402924,null))['then'](removeEntity(_0x402924,null))[_0x1990c7(0x1a3)](handleError(_0x402924,null));}; \ No newline at end of file diff --git a/server/api/chatProactiveAction/chatProactiveAction.model.js b/server/api/chatProactiveAction/chatProactiveAction.model.js index d02c6d8..87f0e6a 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.model.js +++ b/server/api/chatProactiveAction/chatProactiveAction.model.js @@ -1 +1 @@ -const a110_0x1de0=['init','ChatProactiveAction','function','./chatProactiveAction.attributes'];(function(_0x2c10f5,_0x5bf7c8){const _0x1de059=function(_0x33af5d){while(--_0x33af5d){_0x2c10f5['push'](_0x2c10f5['shift']());}};_0x1de059(++_0x5bf7c8);}(a110_0x1de0,0x7a));const a110_0x33af=function(_0x2c10f5,_0x5bf7c8){_0x2c10f5=_0x2c10f5-0x1ae;let _0x1de059=a110_0x1de0[_0x2c10f5];return _0x1de059;};const a110_0x2108c7=a110_0x33af;'use strict';const {Model}=require('sequelize'),{attributes}=require(a110_0x2108c7(0x1af)),{options}=require('./chatProactiveAction.options');class ChatProactiveAction extends Model{}function init(_0x341ee9,_0x51eed3){const _0x28f42f=a110_0x2108c7,_0x20432d=options(_0x341ee9),_0x30498c=typeof _0x51eed3===_0x28f42f(0x1ae)?_0x51eed3(_0x20432d):_0x20432d;return ChatProactiveAction[_0x28f42f(0x1b0)](attributes,_0x30498c),ChatProactiveAction;}module['exports'][a110_0x2108c7(0x1b1)]=ChatProactiveAction,module['exports'][a110_0x2108c7(0x1b0)]=init; \ No newline at end of file +const a110_0x28fc=['ChatProactiveAction','function','sequelize','exports','init'];(function(_0x26e5c9,_0x28d6bb){const _0x28fca6=function(_0x240e69){while(--_0x240e69){_0x26e5c9['push'](_0x26e5c9['shift']());}};_0x28fca6(++_0x28d6bb);}(a110_0x28fc,0xd0));const a110_0x240e=function(_0x26e5c9,_0x28d6bb){_0x26e5c9=_0x26e5c9-0xb9;let _0x28fca6=a110_0x28fc[_0x26e5c9];return _0x28fca6;};const a110_0x58d98a=a110_0x240e;'use strict';const {Model}=require(a110_0x58d98a(0xbd)),{attributes}=require('./chatProactiveAction.attributes'),{options}=require('./chatProactiveAction.options');class ChatProactiveAction extends Model{}function init(_0x1c41b7,_0x16b678){const _0x59e68c=a110_0x58d98a,_0x51104f=options(_0x1c41b7),_0xdb68fd=typeof _0x16b678===_0x59e68c(0xbc)?_0x16b678(_0x51104f):_0x51104f;return ChatProactiveAction[_0x59e68c(0xba)](attributes,_0xdb68fd),ChatProactiveAction;}module[a110_0x58d98a(0xb9)][a110_0x58d98a(0xbb)]=ChatProactiveAction,module[a110_0x58d98a(0xb9)]['init']=init; \ No newline at end of file diff --git a/server/api/chatProactiveAction/chatProactiveAction.options.js b/server/api/chatProactiveAction/chatProactiveAction.options.js index 6a7946a..09f4d7b 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.options.js +++ b/server/api/chatProactiveAction/chatProactiveAction.options.js @@ -1 +1 @@ -var a111_0x59f3=['exports','options','chat_proactive_actions'];(function(_0x405375,_0x36f6bc){var _0x59f301=function(_0x5b35a5){while(--_0x5b35a5){_0x405375['push'](_0x405375['shift']());}};_0x59f301(++_0x36f6bc);}(a111_0x59f3,0x75));var a111_0x5b35=function(_0x405375,_0x36f6bc){_0x405375=_0x405375-0x68;var _0x59f301=a111_0x59f3[_0x405375];return _0x59f301;};var a111_0x2018c3=a111_0x5b35;function options(_0x1af26d){var _0x124215=a111_0x5b35;return{'sequelize':_0x1af26d,'tableName':_0x124215(0x6a),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a111_0x2018c3(0x68)][a111_0x2018c3(0x69)]=options; \ No newline at end of file +var a111_0x2619=['exports','chat_proactive_actions','options'];(function(_0x14b8d0,_0x5e8690){var _0x261966=function(_0x916326){while(--_0x916326){_0x14b8d0['push'](_0x14b8d0['shift']());}};_0x261966(++_0x5e8690);}(a111_0x2619,0x1c9));var a111_0x9163=function(_0x14b8d0,_0x5e8690){_0x14b8d0=_0x14b8d0-0xef;var _0x261966=a111_0x2619[_0x14b8d0];return _0x261966;};var a111_0x47ee5d=a111_0x9163;function options(_0x58f6f5){var _0x2abbc8=a111_0x9163;return{'sequelize':_0x58f6f5,'tableName':_0x2abbc8(0xef),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a111_0x47ee5d(0xf1)][a111_0x47ee5d(0xf0)]=options; \ No newline at end of file diff --git a/server/api/chatProactiveAction/index.js b/server/api/chatProactiveAction/index.js index 896d57b..129494e 100644 --- a/server/api/chatProactiveAction/index.js +++ b/server/api/chatProactiveAction/index.js @@ -1 +1 @@ -const a112_0x4db5=['delete','put','post','update','./chatProactiveAction.controller','show','/:id','../../components/auth/service','isAuthenticated','Router','express','create','destroy'];(function(_0xcaf6db,_0x18f9f6){const _0x4db52b=function(_0x167a09){while(--_0x167a09){_0xcaf6db['push'](_0xcaf6db['shift']());}};_0x4db52b(++_0x18f9f6);}(a112_0x4db5,0x19a));const a112_0x167a=function(_0xcaf6db,_0x18f9f6){_0xcaf6db=_0xcaf6db-0x123;let _0x4db52b=a112_0x4db5[_0xcaf6db];return _0x4db52b;};const a112_0xc57f5c=a112_0x167a;'use strict';const express=require(a112_0xc57f5c(0x126)),router=express[a112_0xc57f5c(0x125)](),auth=require(a112_0xc57f5c(0x123)),controller=require(a112_0xc57f5c(0x12d));router['get'](a112_0xc57f5c(0x12f),auth[a112_0xc57f5c(0x124)](),controller[a112_0xc57f5c(0x12e)]),router[a112_0xc57f5c(0x12b)]('/',auth['isAuthenticated'](),controller[a112_0xc57f5c(0x127)]),router[a112_0xc57f5c(0x12a)](a112_0xc57f5c(0x12f),auth[a112_0xc57f5c(0x124)](),controller[a112_0xc57f5c(0x12c)]),router[a112_0xc57f5c(0x129)](a112_0xc57f5c(0x12f),auth['isAuthenticated'](),controller[a112_0xc57f5c(0x128)]),module['exports']=router; \ No newline at end of file +const a112_0x5df1=['get','Router','/:id','destroy','../../components/auth/service','isAuthenticated','delete','show','put','express','post','./chatProactiveAction.controller','create'];(function(_0x43c5e8,_0x3cd207){const _0x5df1e4=function(_0x17483d){while(--_0x17483d){_0x43c5e8['push'](_0x43c5e8['shift']());}};_0x5df1e4(++_0x3cd207);}(a112_0x5df1,0x150));const a112_0x1748=function(_0x43c5e8,_0x3cd207){_0x43c5e8=_0x43c5e8-0x11d;let _0x5df1e4=a112_0x5df1[_0x43c5e8];return _0x5df1e4;};const a112_0x5d9735=a112_0x1748;'use strict';const express=require(a112_0x5d9735(0x128)),router=express[a112_0x5d9735(0x120)](),auth=require(a112_0x5d9735(0x123)),controller=require(a112_0x5d9735(0x11d));router[a112_0x5d9735(0x11f)](a112_0x5d9735(0x121),auth[a112_0x5d9735(0x124)](),controller[a112_0x5d9735(0x126)]),router[a112_0x5d9735(0x129)]('/',auth[a112_0x5d9735(0x124)](),controller[a112_0x5d9735(0x11e)]),router[a112_0x5d9735(0x127)](a112_0x5d9735(0x121),auth[a112_0x5d9735(0x124)](),controller['update']),router[a112_0x5d9735(0x125)]('/:id',auth[a112_0x5d9735(0x124)](),controller[a112_0x5d9735(0x122)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.attributes.js b/server/api/chatQueue/chatQueue.attributes.js index 61a9717..924adfd 100644 --- a/server/api/chatQueue/chatQueue.attributes.js +++ b/server/api/chatQueue/chatQueue.attributes.js @@ -1 +1 @@ -const a113_0x7bf0=['rrmemory','INTEGER','STRING','roundrobin','sequelize','ENUM'];(function(_0x541112,_0x570a2b){const _0x7bf0c3=function(_0x6db2c8){while(--_0x6db2c8){_0x541112['push'](_0x541112['shift']());}};_0x7bf0c3(++_0x570a2b);}(a113_0x7bf0,0x1dc));const a113_0x6db2=function(_0x541112,_0x570a2b){_0x541112=_0x541112-0x14c;let _0x7bf0c3=a113_0x7bf0[_0x541112];return _0x7bf0c3;};const a113_0x2b6aab=a113_0x6db2;'use strict';const {DataTypes}=require(a113_0x2b6aab(0x14e)),attributes={'name':{'type':DataTypes[a113_0x2b6aab(0x14c)],'unique':'name','allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':DataTypes[a113_0x2b6aab(0x14c)]},'timeout':{'type':DataTypes[a113_0x2b6aab(0x151)],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes[a113_0x2b6aab(0x14f)](a113_0x2b6aab(0x150),'beepall',a113_0x2b6aab(0x14d))}};module['exports']['attributes']=attributes; \ No newline at end of file +const a113_0x5e88=['ENUM','attributes','roundrobin','INTEGER','rrmemory','STRING','sequelize'];(function(_0x562720,_0x1335fc){const _0x5e8890=function(_0x13dd96){while(--_0x13dd96){_0x562720['push'](_0x562720['shift']());}};_0x5e8890(++_0x1335fc);}(a113_0x5e88,0xeb));const a113_0x13dd=function(_0x562720,_0x1335fc){_0x562720=_0x562720-0x1c1;let _0x5e8890=a113_0x5e88[_0x562720];return _0x5e8890;};const a113_0x94fd92=a113_0x13dd;'use strict';const {DataTypes}=require(a113_0x94fd92(0x1c3)),attributes={'name':{'type':DataTypes['STRING'],'unique':'name','allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':DataTypes[a113_0x94fd92(0x1c2)]},'timeout':{'type':DataTypes[a113_0x94fd92(0x1c7)],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes[a113_0x94fd92(0x1c4)](a113_0x94fd92(0x1c1),'beepall',a113_0x94fd92(0x1c6))}};module['exports'][a113_0x94fd92(0x1c5)]=attributes; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.controller.js b/server/api/chatQueue/chatQueue.controller.js index e845315..d11cfc9 100644 --- a/server/api/chatQueue/chatQueue.controller.js +++ b/server/api/chatQueue/chatQueue.controller.js @@ -1 +1 @@ -const a114_0x34bc=['ChatQueue','SELECT','Content-Range','filters','api','removeAgents','ut.TeamId\x20=\x20tq.TeamId','where','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','getTeams','model','ChatQueues','join','isArray','destroy','query','type','userProfileId','getAgents','merge','options','ids','./chatQueue.socket','keys','findAll','squel','forEach','count','Agents','removeTeams','index','fields','all','like','User','key','autoAssociation','value','%s/%s','body','from','role','union','../../config/logger','Team','emit','params','sequelize','stack','end','length','addAgents','toString','map','team_has_chat_queues','json','SIP','limit','set','field','order','catch','offset','interface','attributes','ChatQueueId\x20=\x20?','undefined','TeamId','includeAll','rawAttributes','show','format','include','createdAt','sort','voicePause','transaction','send','intersection','flatMap','create','every','findOne','UserChatQueue','updatedAt','name','../../mysqldb','userChatQueue:save','filter','chatPause','sendStatus','nolimit','util','getMembers','addTeams','isEmpty','status','ut.UserId\x20=\x20?','userChatQueue:remove','get','tq.TeamId','error','rows','includes','then','describe','user_has_teams','findOrCreate','pick'];(function(_0x3b9ea7,_0x5372ea){const _0x34bcc9=function(_0x37c566){while(--_0x37c566){_0x3b9ea7['push'](_0x3b9ea7['shift']());}};_0x34bcc9(++_0x5372ea);}(a114_0x34bc,0x1e3));const a114_0x37c5=function(_0x3b9ea7,_0x5372ea){_0x3b9ea7=_0x3b9ea7-0x9e;let _0x34bcc9=a114_0x34bc[_0x3b9ea7];return _0x34bcc9;};const a114_0x55eb2d=a114_0x37c5;'use strict';const util=require(a114_0x55eb2d(0xcb)),_=require('lodash'),squel=require(a114_0x55eb2d(0xf5)),qs=require('../../components/parsers/qs'),logger=require(a114_0x55eb2d(0x107))(a114_0x55eb2d(0xe0)),{getSocket}=require('../../rediscache'),{db}=require(a114_0x55eb2d(0xc5)),{Op,QueryTypes}=require(a114_0x55eb2d(0x9e)),socket=getSocket();require(a114_0x55eb2d(0xf2))['register'](socket);function respondWithStatusCode(_0x48d41c,_0xfcd192){return _0xfcd192=_0xfcd192||0xcc,function(_0x1d410b){const _0x364503=a114_0x37c5;if(_0x1d410b)return _0x48d41c[_0x364503(0xc9)](_0xfcd192);return _0x48d41c[_0x364503(0xcf)](_0xfcd192)[_0x364503(0xa0)]();};}function respondWithResult(_0x4f9f19,_0x1033ae){return _0x1033ae=_0x1033ae||0xc8,function(_0x2731b2){const _0x2b5622=a114_0x37c5;if(_0x2731b2)return _0x4f9f19[_0x2b5622(0xcf)](_0x1033ae)['json'](_0x2731b2);};}function respondWithFilteredResult(_0x18ebad,_0x41816a){return function(_0x45fc10){const _0x1e5a3a=a114_0x37c5;if(_0x45fc10){const _0x21b699=_0x45fc10[_0x1e5a3a(0xf7)],_0x36678a=_0x41816a[_0x1e5a3a(0xad)];let _0x5f044a=_0x41816a[_0x1e5a3a(0xad)]+_0x41816a[_0x1e5a3a(0xa8)],_0x5b68df;return _0x5f044a>=_0x21b699?(_0x5f044a=_0x21b699,_0x5b68df=0xc8):_0x5b68df=0xce,_0x18ebad[_0x1e5a3a(0xcf)](_0x5b68df),_0x18ebad[_0x1e5a3a(0xa9)](_0x1e5a3a(0xde),_0x36678a+'-'+_0x5f044a+'/'+_0x21b699)[_0x1e5a3a(0xa6)](_0x45fc10);}return null;};}function saveUpdates(_0x30f89a){return function(_0x8ddd02){if(_0x8ddd02)return _0x8ddd02['update'](_0x30f89a)['then'](function(_0x1f5188){return _0x1f5188;});return null;};}function removeEntity(_0x4ed1ad){return function(_0x3296b4){const _0x11c19a=a114_0x37c5;if(_0x3296b4)return _0x3296b4[_0x11c19a(0xea)]()[_0x11c19a(0xd7)](function(){const _0x5bfb84=_0x11c19a,_0x3a53dd=_0x3296b4[_0x5bfb84(0xd2)]({'plain':!![]}),_0x51a0a7=_0x5bfb84(0xe7);return db['UserProfileResource'][_0x5bfb84(0xea)]({'where':{'type':_0x51a0a7,'resourceId':_0x3a53dd['id']}})['then'](function(){return _0x3296b4;});})['then'](function(){const _0x3c4e59=_0x11c19a;_0x4ed1ad[_0x3c4e59(0xcf)](0xcc)[_0x3c4e59(0xa0)]();});};}function handleEntityNotFound(_0x16767b){return function(_0x3660a1){return!_0x3660a1&&_0x16767b['sendStatus'](0x194),_0x3660a1;};}function handleError(_0x319002,_0x4e53cd){return _0x4e53cd=_0x4e53cd||0x1f4,function(_0x289154){const _0x534610=a114_0x37c5;logger[_0x534610(0xd4)](_0x289154[_0x534610(0x9f)]),_0x289154[_0x534610(0xc4)]&&delete _0x289154[_0x534610(0xc4)],_0x319002[_0x534610(0xcf)](_0x4e53cd)[_0x534610(0xbc)](_0x289154);};}exports[a114_0x55eb2d(0xfa)]=function(_0x2596d1,_0x4a5467){const _0x14f87e=a114_0x55eb2d;let _0x300c59={};const _0x389cb9={},_0x5be29c={'count':0x0,'rows':[]},_0xba2065=_[_0x14f87e(0xa4)](db[_0x14f87e(0xdc)][_0x14f87e(0xb4)],function(_0x477a2c){const _0x354d82=_0x14f87e;return{'name':_0x477a2c['fieldName'],'type':_0x477a2c['type'][_0x354d82(0xff)]};});_0x389cb9[_0x14f87e(0xe6)]=_[_0x14f87e(0xa4)](_0xba2065,_0x14f87e(0xc4)),_0x389cb9[_0x14f87e(0xeb)]=_[_0x14f87e(0xf3)](_0x2596d1[_0x14f87e(0xeb)]),_0x389cb9[_0x14f87e(0xdf)]=_[_0x14f87e(0xbd)](_0x389cb9['model'],_0x389cb9['query']),_0x300c59[_0x14f87e(0xaf)]=_['intersection'](_0x389cb9[_0x14f87e(0xe6)],qs[_0x14f87e(0xfb)](_0x2596d1[_0x14f87e(0xeb)][_0x14f87e(0xfb)])),_0x300c59[_0x14f87e(0xaf)]=_0x300c59['attributes'][_0x14f87e(0xa1)]?_0x300c59[_0x14f87e(0xaf)]:_0x389cb9[_0x14f87e(0xe6)];typeof _0x2596d1[_0x14f87e(0xeb)][_0x14f87e(0xca)]==='undefined'&&(_0x300c59['limit']=qs['limit'](_0x2596d1[_0x14f87e(0xeb)][_0x14f87e(0xa8)]),_0x300c59[_0x14f87e(0xad)]=qs[_0x14f87e(0xad)](_0x2596d1[_0x14f87e(0xeb)][_0x14f87e(0xad)]));_0x300c59['order']=qs[_0x14f87e(0xb9)](_0x2596d1[_0x14f87e(0xeb)][_0x14f87e(0xb9)]),_0x300c59['where']=qs[_0x14f87e(0xdf)](_['pick'](_0x2596d1[_0x14f87e(0xeb)],_0x389cb9[_0x14f87e(0xdf)]),_0xba2065);_0x2596d1[_0x14f87e(0xeb)]['filter']&&(_0x300c59[_0x14f87e(0xe3)]=_[_0x14f87e(0xef)](_0x300c59['where'],{[Op['or']]:_[_0x14f87e(0xa4)](_0xba2065,function(_0x50cde9){const _0x69e333=_0x14f87e;if(_0x50cde9[_0x69e333(0xec)]!=='VIRTUAL'){const _0x4f98ca={};return _0x4f98ca[_0x50cde9['name']]={[Op['like']]:'%'+_0x2596d1['query'][_0x69e333(0xc7)]+'%'},_0x4f98ca;}})}));_0x300c59=_[_0x14f87e(0xef)]({},_0x300c59,_0x2596d1[_0x14f87e(0xf0)]);const _0x4e5c9={'where':_0x300c59[_0x14f87e(0xe3)]};return db[_0x14f87e(0xdc)][_0x14f87e(0xf7)](_0x4e5c9)[_0x14f87e(0xd7)](function(_0x12b7f9){const _0xdde098=_0x14f87e;return _0x5be29c[_0xdde098(0xf7)]=_0x12b7f9,_0x2596d1['query'][_0xdde098(0xb3)]&&(_0x300c59[_0xdde098(0xb7)]=[{'all':!![]}]),db[_0xdde098(0xdc)][_0xdde098(0xf4)](_0x300c59);})['then'](function(_0x13d041){const _0x5927f2=_0x14f87e;return _0x5be29c[_0x5927f2(0xd5)]=_0x13d041,_0x5be29c;})['then'](respondWithFilteredResult(_0x4a5467,_0x300c59))['catch'](handleError(_0x4a5467,null));},exports[a114_0x55eb2d(0xb5)]=function(_0x5de1cf,_0x479d1e){const _0x5272e9=a114_0x55eb2d;let _0x58a3f5={'raw':!![],'where':{'id':_0x5de1cf[_0x5272e9(0x10a)]['id']}};const _0x331f77={};return _0x331f77[_0x5272e9(0xe6)]=_[_0x5272e9(0xf3)](db[_0x5272e9(0xdc)][_0x5272e9(0xb4)]),_0x331f77[_0x5272e9(0xeb)]=_['keys'](_0x5de1cf['query']),_0x331f77[_0x5272e9(0xdf)]=_[_0x5272e9(0xbd)](_0x331f77['model'],_0x331f77[_0x5272e9(0xeb)]),_0x58a3f5[_0x5272e9(0xaf)]=_[_0x5272e9(0xbd)](_0x331f77[_0x5272e9(0xe6)],qs[_0x5272e9(0xfb)](_0x5de1cf['query'][_0x5272e9(0xfb)])),_0x58a3f5[_0x5272e9(0xaf)]=_0x58a3f5[_0x5272e9(0xaf)][_0x5272e9(0xa1)]?_0x58a3f5['attributes']:_0x331f77[_0x5272e9(0xe6)],_0x5de1cf[_0x5272e9(0xeb)][_0x5272e9(0xb3)]&&(_0x58a3f5['include']=[{'all':!![]}]),_0x58a3f5=_[_0x5272e9(0xef)]({},_0x58a3f5,_0x5de1cf[_0x5272e9(0xf0)]),db['ChatQueue'][_0x5272e9(0xc1)](_0x58a3f5)[_0x5272e9(0xd7)](handleEntityNotFound(_0x479d1e,null))[_0x5272e9(0xd7)](respondWithResult(_0x479d1e,null))[_0x5272e9(0xac)](handleError(_0x479d1e,null));},exports[a114_0x55eb2d(0xbf)]=function(_0x3cc4f0,_0x323c3d){const _0x373b40=a114_0x55eb2d;return db[_0x373b40(0xdc)][_0x373b40(0xbf)](_0x3cc4f0['body'],{})['then'](function(_0x21fbdd){const _0xb96bc5=_0x373b40,_0x57f9b2=_0x3cc4f0['user'][_0xb96bc5(0xd2)]({'plain':!![]});if(!_0x57f9b2)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x57f9b2[_0xb96bc5(0x105)]==='user'){const _0x5162f9=_0x21fbdd['get']({'plain':!![]}),_0x158f1d='ChatQueues';return db['UserProfileSection'][_0xb96bc5(0xc1)]({'where':{'name':_0x158f1d,'userProfileId':_0x57f9b2[_0xb96bc5(0xed)]},'raw':!![]})['then'](function(_0x1e1a0d){const _0x6dbfc8=_0xb96bc5;return _0x1e1a0d&&_0x1e1a0d[_0x6dbfc8(0x100)]===0x0?db['UserProfileResource'][_0x6dbfc8(0xbf)]({'name':_0x5162f9[_0x6dbfc8(0xc4)],'resourceId':_0x5162f9['id'],'type':_0x1e1a0d[_0x6dbfc8(0xc4)],'sectionId':_0x1e1a0d['id']},{})[_0x6dbfc8(0xd7)](function(){return _0x21fbdd;}):_0x21fbdd;})[_0xb96bc5(0xac)](function(_0x13ab94){const _0x452c63=_0xb96bc5;logger[_0x452c63(0xd4)](_0x452c63(0xe4),_0x13ab94);throw _0x13ab94;});}return _0x21fbdd;})[_0x373b40(0xd7)](respondWithResult(_0x323c3d,0xc9))[_0x373b40(0xac)](handleError(_0x323c3d,null));},exports['update']=function(_0x29ff82,_0x54bbe1){const _0x120b03=a114_0x55eb2d;return _0x29ff82[_0x120b03(0x103)]['id']&&delete _0x29ff82['body']['id'],db['ChatQueue'][_0x120b03(0xc1)]({'where':{'id':_0x29ff82[_0x120b03(0x10a)]['id']}})[_0x120b03(0xd7)](handleEntityNotFound(_0x54bbe1,null))[_0x120b03(0xd7)](saveUpdates(_0x29ff82[_0x120b03(0x103)],null))[_0x120b03(0xd7)](respondWithResult(_0x54bbe1,null))[_0x120b03(0xac)](handleError(_0x54bbe1,null));},exports[a114_0x55eb2d(0xea)]=function(_0x39a66e,_0x365c31){const _0x4b1827=a114_0x55eb2d;return db[_0x4b1827(0xdc)]['findOne']({'where':{'id':_0x39a66e[_0x4b1827(0x10a)]['id']}})['then'](handleEntityNotFound(_0x365c31,null))[_0x4b1827(0xd7)](removeEntity(_0x365c31,null))['catch'](handleError(_0x365c31,null));},exports[a114_0x55eb2d(0xd8)]=function(_0x387632,_0x59ff9f){const _0x2f31d8=a114_0x55eb2d;return db['ChatQueue'][_0x2f31d8(0xd8)]()[_0x2f31d8(0xd7)](respondWithResult(_0x59ff9f,null))[_0x2f31d8(0xac)](handleError(_0x59ff9f,null));},exports[a114_0x55eb2d(0xcc)]=function(_0x1b4eb6,_0x2f1650){const _0x537cb4=a114_0x55eb2d;let _0x365200={'raw':!![],'where':{}};const _0x145d2c={};let _0x4bb24f;return db[_0x537cb4(0xdc)]['findOne']({'where':{'id':_0x1b4eb6['params']['id']}})['then'](handleEntityNotFound(_0x2f1650,null))['then'](function(_0x2d4920){const _0x169cea=_0x537cb4;if(_0x2d4920)return _0x4bb24f=_0x2d4920[_0x169cea(0xd2)]({'plain':!![]}),_0x145d2c['model']=_[_0x169cea(0xf3)](db[_0x169cea(0xc2)][_0x169cea(0xb4)]),_0x145d2c[_0x169cea(0xeb)]=_[_0x169cea(0xf3)](_0x1b4eb6['query']),_0x145d2c[_0x169cea(0xdf)]=_[_0x169cea(0xbd)](_0x145d2c[_0x169cea(0xe6)],_0x145d2c[_0x169cea(0xeb)]),_0x365200[_0x169cea(0xaf)]=_[_0x169cea(0xbd)](_0x145d2c[_0x169cea(0xe6)],qs[_0x169cea(0xfb)](_0x1b4eb6[_0x169cea(0xeb)][_0x169cea(0xfb)])),_0x365200['attributes']=_0x365200[_0x169cea(0xaf)][_0x169cea(0xa1)]?_0x365200[_0x169cea(0xaf)]:_0x145d2c[_0x169cea(0xe6)],typeof _0x1b4eb6[_0x169cea(0xeb)]['nolimit']===_0x169cea(0xb1)&&(_0x365200[_0x169cea(0xa8)]=qs[_0x169cea(0xa8)](_0x1b4eb6[_0x169cea(0xeb)]['limit']),_0x365200[_0x169cea(0xad)]=qs[_0x169cea(0xad)](_0x1b4eb6[_0x169cea(0xeb)]['offset'])),_0x365200[_0x169cea(0xab)]=qs[_0x169cea(0xb9)](_0x1b4eb6[_0x169cea(0xeb)][_0x169cea(0xb9)]),_0x365200[_0x169cea(0xe3)]=qs[_0x169cea(0xdf)](_[_0x169cea(0xdb)](_0x1b4eb6[_0x169cea(0xeb)],_0x145d2c['filters'])),_0x365200['where']['ChatQueueId']=_0x2d4920['id'],_0x1b4eb6[_0x169cea(0xeb)]['filter']&&(_0x365200[_0x169cea(0xe3)]=_[_0x169cea(0xef)](_0x365200[_0x169cea(0xe3)],{[Op['or']]:_[_0x169cea(0xa4)](_0x365200['attributes'],function(_0x1d5ad9){const _0x10402c=_0x169cea,_0xdb00e5={};return _0xdb00e5[_0x1d5ad9]={[Op['like']]:'%'+_0x1b4eb6['query'][_0x10402c(0xc7)]+'%'},_0xdb00e5;})})),_0x365200=_['merge']({},_0x365200,_0x1b4eb6[_0x169cea(0xf0)]),db[_0x169cea(0xc2)][_0x169cea(0xf4)](_0x365200);})[_0x537cb4(0xd7)](function(_0x64fc59){const _0x69dad7=_0x537cb4;if(_0x64fc59)return db[_0x69dad7(0xfe)]['findAndCountAll']({'where':{'id':_[_0x69dad7(0xa4)](_0x64fc59,'UserId'),'role':'agent'},'attributes':['id',_0x69dad7(0xc4),_0x69dad7(0xc8),_0x69dad7(0xc3),_0x69dad7(0xb8)]});})[_0x537cb4(0xd7)](function(_0xf99106){const _0x5b2a10=_0x537cb4;return _0xf99106?{'count':_0xf99106[_0x5b2a10(0xf7)],'rows':_[_0x5b2a10(0xa4)](_0xf99106[_0x5b2a10(0xd5)],function(_0x4ee6da){const _0x5538b9=_0x5b2a10;return{'membername':_0x4ee6da[_0x5538b9(0xc4)],'UserId':_0x4ee6da['id'],'queue_name':_0x4bb24f[_0x5538b9(0xc4)],'ChatQueueId':_0x4bb24f['id'],'interface':util[_0x5538b9(0xb6)](_0x5538b9(0x102),_0x5538b9(0xa7),_0x4ee6da[_0x5538b9(0xc4)]),'penalty':0x0,'paused':_0x4ee6da[_0x5538b9(0xc8)],'createdAt':_0x4ee6da[_0x5538b9(0xb8)],'updatedAt':_0x4ee6da[_0x5538b9(0xc3)]};})}:{'count':0x0,'rows':[]};})[_0x537cb4(0xd7)](respondWithFilteredResult(_0x2f1650,_0x365200))[_0x537cb4(0xac)](handleError(_0x2f1650,null));},exports['getTeams']=function(_0x395ab5,_0x3f45c6){const _0x3da377=a114_0x55eb2d;let _0x5144d7={};const _0x4d339b={};let _0xf32869,_0x13a754;return db[_0x3da377(0xdc)][_0x3da377(0xc1)]({'where':{'id':_0x395ab5['params']['id']}})[_0x3da377(0xd7)](handleEntityNotFound(_0x3f45c6,null))['then'](function(_0x3afa1f){const _0x397999=_0x3da377;if(_0x3afa1f)return _0xf32869=_0x3afa1f,_0x4d339b[_0x397999(0xe6)]=_['keys'](db[_0x397999(0x108)][_0x397999(0xb4)]),_0x4d339b[_0x397999(0xeb)]=_[_0x397999(0xf3)](_0x395ab5[_0x397999(0xeb)]),_0x4d339b[_0x397999(0xdf)]=_['intersection'](_0x4d339b['model'],_0x4d339b[_0x397999(0xeb)]),_0x5144d7[_0x397999(0xaf)]=_['intersection'](_0x4d339b[_0x397999(0xe6)],qs[_0x397999(0xfb)](_0x395ab5[_0x397999(0xeb)][_0x397999(0xfb)])),_0x5144d7[_0x397999(0xaf)]=_0x5144d7[_0x397999(0xaf)][_0x397999(0xa1)]?_0x5144d7[_0x397999(0xaf)]:_0x4d339b[_0x397999(0xe6)],_0x5144d7[_0x397999(0xab)]=qs[_0x397999(0xb9)](_0x395ab5[_0x397999(0xeb)][_0x397999(0xb9)]),_0x5144d7[_0x397999(0xe3)]=qs[_0x397999(0xdf)](_[_0x397999(0xdb)](_0x395ab5['query'],_0x4d339b[_0x397999(0xdf)])),_0x395ab5[_0x397999(0xeb)][_0x397999(0xc7)]&&(_0x5144d7[_0x397999(0xe3)]=_['merge'](_0x5144d7[_0x397999(0xe3)],{[Op['or']]:_[_0x397999(0xa4)](_0x5144d7['attributes'],function(_0x3e7678){const _0x1e060c=_0x397999,_0x108deb={};return _0x108deb[_0x3e7678]={[Op[_0x1e060c(0xfd)]]:'%'+_0x395ab5[_0x1e060c(0xeb)][_0x1e060c(0xc7)]+'%'},_0x108deb;})})),_0x5144d7=_['merge']({},_0x5144d7,_0x395ab5[_0x397999(0xf0)]),_0xf32869[_0x397999(0xe5)](_0x5144d7);})[_0x3da377(0xd7)](function(_0x55f86d){const _0x3cccb0=_0x3da377;if(_0x55f86d)return _0x13a754=_0x55f86d[_0x3cccb0(0xa1)],typeof _0x395ab5[_0x3cccb0(0xeb)][_0x3cccb0(0xca)]===_0x3cccb0(0xb1)&&(_0x5144d7[_0x3cccb0(0xa8)]=qs[_0x3cccb0(0xa8)](_0x395ab5['query'][_0x3cccb0(0xa8)]),_0x5144d7['offset']=qs[_0x3cccb0(0xad)](_0x395ab5[_0x3cccb0(0xeb)][_0x3cccb0(0xad)])),_0xf32869[_0x3cccb0(0xe5)](_0x5144d7);})['then'](function(_0x22e1f1){if(_0x22e1f1)return _0x22e1f1?{'count':_0x13a754,'rows':_0x22e1f1}:null;})[_0x3da377(0xd7)](respondWithResult(_0x3f45c6,null))[_0x3da377(0xac)](handleError(_0x3f45c6,null));},exports['addTeams']=function(_0x42d01d,_0x2d1075){const _0x136c46=a114_0x55eb2d,_0x4e268e=_0x42d01d[_0x136c46(0x103)][_0x136c46(0xf1)];return db[_0x136c46(0x108)][_0x136c46(0xf4)]({'where':{'id':_0x4e268e},'attributes':['id'],'include':[{'model':db['User'],'as':'Agents','attributes':['id',_0x136c46(0xc4),'online',_0x136c46(0xba),_0x136c46(0xae)],'raw':!![]}]})[_0x136c46(0xd7)](function(_0x2b9ca0){const _0x2de73b=_0x136c46;if(_0x2b9ca0){const _0x5b3340=_[_0x2de73b(0xbe)](_0x2b9ca0,function(_0x11e13c){const _0x3ff488=_0x2de73b,_0x32b9e6=_0x11e13c[_0x3ff488(0xd2)]({'plain':!![]});return _0x32b9e6[_0x3ff488(0xf8)];});return db[_0x2de73b(0xdc)][_0x2de73b(0xc1)]({'where':{'id':_0x42d01d['params']['id']}})[_0x2de73b(0xd7)](function(_0x469e9a){const _0x45628f=_0x2de73b;return db[_0x45628f(0x9e)][_0x45628f(0xbb)](function(_0x3a5d97){const _0x33321a=_0x45628f;return _0x469e9a[_0x33321a(0xcd)](_0x4e268e,{'transaction':_0x3a5d97})[_0x33321a(0xd7)](function(){const _0x4d8425=_0x33321a;return Promise[_0x4d8425(0xfc)](_0x5b3340[_0x4d8425(0xa4)](_0x4646f9=>{const _0x4eed80=_0x4d8425;return db['UserChatQueue'][_0x4eed80(0xda)]({'where':{'UserId':_0x4646f9['id'],'ChatQueueId':_0x42d01d[_0x4eed80(0x10a)]['id']},'transaction':_0x3a5d97});}));})[_0x33321a(0xd7)](function(){_0x5b3340['forEach'](function(_0x49fe8b){const _0x3dfd06=a114_0x37c5;socket[_0x3dfd06(0x109)](_0x3dfd06(0xc6),{'UserId':_0x49fe8b['id'],'ChatQueueId':_0x469e9a['id']});});});});});}})[_0x136c46(0xd7)](respondWithStatusCode(_0x2d1075,null))[_0x136c46(0xac)](handleError(_0x2d1075,null));},exports[a114_0x55eb2d(0xf9)]=function(_0x1fdb61,_0x46c0f5){const _0x26f99b=a114_0x55eb2d;return db[_0x26f99b(0x108)][_0x26f99b(0xf4)]({'where':{'id':_0x1fdb61[_0x26f99b(0xeb)][_0x26f99b(0xf1)]},'attributes':['id'],'include':[{'model':db[_0x26f99b(0xfe)],'as':_0x26f99b(0xf8),'attributes':['id'],'raw':!![]}]})[_0x26f99b(0xd7)](handleEntityNotFound(_0x46c0f5,null))[_0x26f99b(0xd7)](function(_0x585fe4){const _0x3736fa=_0x26f99b,_0x1c5c54=_[_0x3736fa(0xa4)](_0x585fe4,'id');let _0x2c3297=[];const _0x13d588=[],_0x501489=squel['select']();_0x501489[_0x3736fa(0xaa)](_0x3736fa(0xd3))[_0x3736fa(0x104)](_0x3736fa(0xa5),'tq')[_0x3736fa(0xe8)](_0x3736fa(0xd9),'ut',_0x3736fa(0xe2))[_0x3736fa(0xe3)](_0x3736fa(0xb0),_0x1fdb61[_0x3736fa(0x10a)]['id']);for(let _0x1fb40d=0x0;_0x1fb40d<_0x585fe4[_0x3736fa(0xa1)];_0x1fb40d+=0x1){const _0x3beaf1=_0x585fe4[_0x1fb40d];for(let _0x1e01ed=0x0;_0x1e01ed<_0x3beaf1[_0x3736fa(0xf8)][_0x3736fa(0xa1)];_0x1e01ed+=0x1){const _0x56d744=_0x3beaf1[_0x3736fa(0xf8)][_0x1e01ed],_0x3b7307=_0x501489['clone']();_0x3b7307[_0x3736fa(0xe3)](_0x3736fa(0xd0),_0x56d744['id']),_0x13d588['push'](db[_0x3736fa(0x9e)][_0x3736fa(0xeb)](_0x3b7307[_0x3736fa(0xa3)](),{'type':QueryTypes[_0x3736fa(0xdd)]})[_0x3736fa(0xd7)](function(_0x1c5f44){const _0x41f206=_0x3736fa;if(_0x1c5f44['length']===0x1)return _0x56d744['id'];else{const _0x53fb16=_[_0x41f206(0xc0)](_[_0x41f206(0xa4)](_0x1c5f44,_0x41f206(0xb2)),function(_0x3fee13){const _0x58e9b9=_0x41f206;return _[_0x58e9b9(0xd6)](_0x1c5c54,_0x3fee13);});if(_0x53fb16)return _0x56d744['id'];}}));}}return Promise[_0x3736fa(0xfc)](_0x13d588)[_0x3736fa(0xd7)](function(_0x193ab5){const _0x6a0f5a=_0x3736fa;return _0x2c3297=_(_0x2c3297)[_0x6a0f5a(0x106)](_0x193ab5)['compact']()[_0x6a0f5a(0x101)](),db[_0x6a0f5a(0xdc)][_0x6a0f5a(0xc1)]({'where':{'id':_0x1fdb61[_0x6a0f5a(0x10a)]['id']}})[_0x6a0f5a(0xd7)](function(_0x710c55){const _0x379223=_0x6a0f5a;return db[_0x379223(0x9e)]['transaction'](function(_0x3ac5a8){const _0x59de93=_0x379223;return _0x710c55['removeTeams'](_0x1fdb61[_0x59de93(0xeb)][_0x59de93(0xf1)],{'transaction':_0x3ac5a8})[_0x59de93(0xd7)](function(){const _0x5c0ec5=_0x59de93;if(!_[_0x5c0ec5(0xce)](_0x2c3297))return _0x710c55[_0x5c0ec5(0xe1)](_0x2c3297,{'transaction':_0x3ac5a8});})[_0x59de93(0xd7)](function(){const _0x546524=_0x59de93;_0x2c3297[_0x546524(0xf6)](function(_0xe9eab0){const _0x521b3b=_0x546524;socket[_0x521b3b(0x109)](_0x521b3b(0xd1),{'UserId':_0xe9eab0,'ChatQueueId':_0x710c55['id']});});});});});});})[_0x26f99b(0xd7)](respondWithStatusCode(_0x46c0f5,null))[_0x26f99b(0xac)](handleError(_0x46c0f5,null));},exports[a114_0x55eb2d(0xa2)]=function(_0x1ac7f6,_0x5e8de1){const _0x18f0ba=a114_0x55eb2d;return db[_0x18f0ba(0xdc)][_0x18f0ba(0xc1)]({'where':{'id':_0x1ac7f6[_0x18f0ba(0x10a)]['id']}})['then'](function(_0x220166){const _0x5e5fd6=_0x18f0ba;if(_0x220166)return _0x220166[_0x5e5fd6(0xa2)](_0x1ac7f6[_0x5e5fd6(0x103)]['ids'],{'through':_['omit'](_0x1ac7f6[_0x5e5fd6(0x103)],[_0x5e5fd6(0xf1),'id'])})[_0x5e5fd6(0xd7)](function(_0x8de73a){const _0x525242=_0x5e5fd6;for(let _0x37f7a4=0x0;_0x37f7a4<_0x1ac7f6[_0x525242(0x103)][_0x525242(0xf1)][_0x525242(0xa1)];_0x37f7a4+=0x1){socket['emit'](_0x525242(0xc6),{'UserId':_0x1ac7f6['body']['ids'][_0x37f7a4],'ChatQueueId':_0x1ac7f6[_0x525242(0x10a)]['id']});}return _0x8de73a;});})[_0x18f0ba(0xd7)](respondWithResult(_0x5e8de1,null))[_0x18f0ba(0xac)](handleError(_0x5e8de1,null));},exports[a114_0x55eb2d(0xe1)]=function(_0x480aa9,_0x2d8950){const _0x150113=a114_0x55eb2d;return db[_0x150113(0xdc)]['findOne']({'where':{'id':_0x480aa9['params']['id']}})[_0x150113(0xd7)](handleEntityNotFound(_0x2d8950,null))['then'](function(_0x4c037d){const _0xc247b3=_0x150113;if(_0x4c037d)return _0x4c037d[_0xc247b3(0xe1)](_0x480aa9[_0xc247b3(0xeb)][_0xc247b3(0xf1)])[_0xc247b3(0xd7)](function(){const _0x581116=_0xc247b3;if(_[_0x581116(0xe9)](_0x480aa9['query'][_0x581116(0xf1)]))for(let _0x426b79=0x0;_0x426b79<_0x480aa9[_0x581116(0xeb)][_0x581116(0xf1)]['length'];_0x426b79+=0x1){socket[_0x581116(0x109)]('userChatQueue:remove',{'UserId':Number(_0x480aa9[_0x581116(0xeb)]['ids'][_0x426b79]),'ChatQueueId':Number(_0x480aa9[_0x581116(0x10a)]['id'])});}else socket[_0x581116(0x109)](_0x581116(0xd1),{'UserId':Number(_0x480aa9[_0x581116(0xeb)]['ids']),'ChatQueueId':Number(_0x480aa9[_0x581116(0x10a)]['id'])});});})[_0x150113(0xd7)](respondWithStatusCode(_0x2d8950,null))[_0x150113(0xac)](handleError(_0x2d8950,null));},exports['getAgents']=function(_0x27fbc7,_0xd9f012){const _0x25bdc3=a114_0x55eb2d;let _0x16ec76={};const _0x1e09f0={};let _0x3f6afb,_0x2cc186;return db[_0x25bdc3(0xdc)][_0x25bdc3(0xc1)]({'where':{'id':_0x27fbc7['params']['id']}})[_0x25bdc3(0xd7)](handleEntityNotFound(_0xd9f012,null))['then'](function(_0x369fe2){const _0x19b52c=_0x25bdc3;if(_0x369fe2)return _0x3f6afb=_0x369fe2,_0x1e09f0['model']=_[_0x19b52c(0xf3)](db[_0x19b52c(0xfe)][_0x19b52c(0xb4)]),_0x1e09f0['query']=_['keys'](_0x27fbc7['query']),_0x1e09f0['filters']=_['intersection'](_0x1e09f0['model'],_0x1e09f0[_0x19b52c(0xeb)]),_0x16ec76['attributes']=_[_0x19b52c(0xbd)](_0x1e09f0[_0x19b52c(0xe6)],qs['fields'](_0x27fbc7['query'][_0x19b52c(0xfb)])),_0x16ec76[_0x19b52c(0xaf)]=_0x16ec76['attributes'][_0x19b52c(0xa1)]?_0x16ec76['attributes']:_0x1e09f0[_0x19b52c(0xe6)],_0x16ec76[_0x19b52c(0xab)]=qs[_0x19b52c(0xb9)](_0x27fbc7[_0x19b52c(0xeb)][_0x19b52c(0xb9)]),_0x16ec76[_0x19b52c(0xe3)]=qs[_0x19b52c(0xdf)](_['pick'](_0x27fbc7[_0x19b52c(0xeb)],_0x1e09f0[_0x19b52c(0xdf)])),_0x27fbc7[_0x19b52c(0xeb)]['filter']&&(_0x16ec76[_0x19b52c(0xe3)]=_[_0x19b52c(0xef)](_0x16ec76[_0x19b52c(0xe3)],{[Op['or']]:_[_0x19b52c(0xa4)](_0x16ec76[_0x19b52c(0xaf)],function(_0x4a44ed){const _0xfeadc=_0x19b52c,_0x28c0b9={};return _0x28c0b9[_0x4a44ed]={[Op['like']]:'%'+_0x27fbc7[_0xfeadc(0xeb)][_0xfeadc(0xc7)]+'%'},_0x28c0b9;})})),_0x16ec76=_[_0x19b52c(0xef)]({},_0x16ec76,_0x27fbc7[_0x19b52c(0xf0)]),_0x3f6afb[_0x19b52c(0xee)](_0x16ec76);})['then'](function(_0x14c314){const _0x2d5913=_0x25bdc3;if(_0x14c314)return _0x2cc186=_0x14c314[_0x2d5913(0xa1)],typeof _0x27fbc7[_0x2d5913(0xeb)][_0x2d5913(0xca)]===_0x2d5913(0xb1)&&(_0x16ec76[_0x2d5913(0xa8)]=qs[_0x2d5913(0xa8)](_0x27fbc7[_0x2d5913(0xeb)][_0x2d5913(0xa8)]),_0x16ec76[_0x2d5913(0xad)]=qs[_0x2d5913(0xad)](_0x27fbc7[_0x2d5913(0xeb)][_0x2d5913(0xad)])),_0x3f6afb['getAgents'](_0x16ec76);})['then'](function(_0xac7133){if(_0xac7133)return _0xac7133?{'count':_0x2cc186,'rows':_0xac7133}:null;})[_0x25bdc3(0xd7)](respondWithResult(_0xd9f012,null))['catch'](handleError(_0xd9f012,null));}; \ No newline at end of file +const a114_0x4b81=['intersection','length','createdAt','like','VIRTUAL','role','format','removeAgents','json','rows','join','api','ut.TeamId\x20=\x20tq.TeamId','type','User','every','../../components/parsers/qs','then','push','merge','ChatQueueId\x20=\x20?','omit','ChatQueue','findOrCreate','tq.TeamId','undefined','addTeams','offset','userProfileId','addAgents','pick','compact','emit','fieldName','nolimit','model','UserId','rawAttributes','findOne','all','getTeams','Content-Range','query','describe','stack','ChatQueueId','sequelize','UserProfileSection','includes','key','register','show','destroy','voicePause','send','includeAll','attributes','isArray','flatMap','where','keys','index','util','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','fields','body','team_has_chat_queues','status','squel','Team','filters','ChatQueues','user_has_teams','autoAssociation','sendStatus','../../rediscache','name','UserProfileResource','userChatQueue:save','findAll','get','UserChatQueue','../../mysqldb','update','ids','map','limit','lodash','field','SIP','sort','transaction','options','agent','include','set','error','removeTeams','Agents','select','create','interface','../../config/logger','./chatQueue.socket','count','chatPause','toString','SELECT','updatedAt','isEmpty','filter','params','Unable\x20to\x20retrieve\x20the\x20current\x20user','forEach','end','userChatQueue:remove','ut.UserId\x20=\x20?','catch'];(function(_0x8a0992,_0x5b85ee){const _0x4b817c=function(_0x4d9663){while(--_0x4d9663){_0x8a0992['push'](_0x8a0992['shift']());}};_0x4b817c(++_0x5b85ee);}(a114_0x4b81,0x1ac));const a114_0x4d96=function(_0x8a0992,_0x5b85ee){_0x8a0992=_0x8a0992-0xcc;let _0x4b817c=a114_0x4b81[_0x8a0992];return _0x4b817c;};const a114_0x4bdc23=a114_0x4d96;'use strict';const util=require(a114_0x4bdc23(0x136)),_=require(a114_0x4bdc23(0xd9)),squel=require(a114_0x4bdc23(0x13c)),qs=require(a114_0x4bdc23(0x108)),logger=require(a114_0x4bdc23(0xe8))(a114_0x4bdc23(0x103)),{getSocket}=require(a114_0x4bdc23(0xcd)),{db}=require(a114_0x4bdc23(0xd4)),{Op,QueryTypes}=require(a114_0x4bdc23(0x126)),socket=getSocket();require(a114_0x4bdc23(0xe9))[a114_0x4bdc23(0x12a)](socket);function respondWithStatusCode(_0x111226,_0x1b83dc){return _0x1b83dc=_0x1b83dc||0xcc,function(_0x941b44){const _0x4b042e=a114_0x4d96;if(_0x941b44)return _0x111226[_0x4b042e(0xcc)](_0x1b83dc);return _0x111226[_0x4b042e(0x13b)](_0x1b83dc)['end']();};}function respondWithResult(_0x4ed9ab,_0x18113e){return _0x18113e=_0x18113e||0xc8,function(_0x19fe2d){const _0x4d1829=a114_0x4d96;if(_0x19fe2d)return _0x4ed9ab[_0x4d1829(0x13b)](_0x18113e)[_0x4d1829(0x100)](_0x19fe2d);};}function respondWithFilteredResult(_0x6f8332,_0xfcc66f){return function(_0x4e8ab3){const _0x43eb1c=a114_0x4d96;if(_0x4e8ab3){const _0x4fdc99=_0x4e8ab3['count'],_0x55879b=_0xfcc66f[_0x43eb1c(0x113)];let _0x3c022c=_0xfcc66f[_0x43eb1c(0x113)]+_0xfcc66f[_0x43eb1c(0xd8)],_0x5bc68a;return _0x3c022c>=_0x4fdc99?(_0x3c022c=_0x4fdc99,_0x5bc68a=0xc8):_0x5bc68a=0xce,_0x6f8332['status'](_0x5bc68a),_0x6f8332[_0x43eb1c(0xe1)](_0x43eb1c(0x121),_0x55879b+'-'+_0x3c022c+'/'+_0x4fdc99)[_0x43eb1c(0x100)](_0x4e8ab3);}return null;};}function saveUpdates(_0x4f06ef){return function(_0x1304cc){const _0x484e0e=a114_0x4d96;if(_0x1304cc)return _0x1304cc['update'](_0x4f06ef)[_0x484e0e(0x109)](function(_0x1da546){return _0x1da546;});return null;};}function removeEntity(_0x27fa6e){return function(_0x1675ad){const _0x202dab=a114_0x4d96;if(_0x1675ad)return _0x1675ad['destroy']()[_0x202dab(0x109)](function(){const _0x10615a=_0x202dab,_0x34e3e0=_0x1675ad['get']({'plain':!![]}),_0x5ed334=_0x10615a(0x13f);return db[_0x10615a(0xcf)][_0x10615a(0x12c)]({'where':{'type':_0x5ed334,'resourceId':_0x34e3e0['id']}})['then'](function(){return _0x1675ad;});})[_0x202dab(0x109)](function(){const _0x62e5fc=_0x202dab;_0x27fa6e[_0x62e5fc(0x13b)](0xcc)[_0x62e5fc(0xf4)]();});};}function handleEntityNotFound(_0x2a1f56){return function(_0x5b3b4d){const _0x272543=a114_0x4d96;return!_0x5b3b4d&&_0x2a1f56[_0x272543(0xcc)](0x194),_0x5b3b4d;};}function handleError(_0x5952e0,_0xa4de39){return _0xa4de39=_0xa4de39||0x1f4,function(_0x6f039a){const _0x395138=a114_0x4d96;logger[_0x395138(0xe2)](_0x6f039a[_0x395138(0x124)]),_0x6f039a[_0x395138(0xce)]&&delete _0x6f039a['name'],_0x5952e0['status'](_0xa4de39)[_0x395138(0x12e)](_0x6f039a);};}exports[a114_0x4bdc23(0x135)]=function(_0x547198,_0x404dad){const _0x4ee8e6=a114_0x4bdc23;let _0x1a0a7c={};const _0x367fe6={},_0x38b689={'count':0x0,'rows':[]},_0x444069=_[_0x4ee8e6(0xd7)](db[_0x4ee8e6(0x10e)]['rawAttributes'],function(_0x25d473){const _0x2d09c7=_0x4ee8e6;return{'name':_0x25d473[_0x2d09c7(0x119)],'type':_0x25d473[_0x2d09c7(0x105)][_0x2d09c7(0x129)]};});_0x367fe6[_0x4ee8e6(0x11b)]=_[_0x4ee8e6(0xd7)](_0x444069,'name'),_0x367fe6['query']=_[_0x4ee8e6(0x134)](_0x547198['query']),_0x367fe6[_0x4ee8e6(0x13e)]=_['intersection'](_0x367fe6['model'],_0x367fe6['query']),_0x1a0a7c['attributes']=_[_0x4ee8e6(0xf8)](_0x367fe6['model'],qs[_0x4ee8e6(0x138)](_0x547198[_0x4ee8e6(0x122)][_0x4ee8e6(0x138)])),_0x1a0a7c['attributes']=_0x1a0a7c[_0x4ee8e6(0x130)][_0x4ee8e6(0xf9)]?_0x1a0a7c[_0x4ee8e6(0x130)]:_0x367fe6[_0x4ee8e6(0x11b)];typeof _0x547198['query'][_0x4ee8e6(0x11a)]==='undefined'&&(_0x1a0a7c[_0x4ee8e6(0xd8)]=qs[_0x4ee8e6(0xd8)](_0x547198[_0x4ee8e6(0x122)][_0x4ee8e6(0xd8)]),_0x1a0a7c[_0x4ee8e6(0x113)]=qs[_0x4ee8e6(0x113)](_0x547198['query'][_0x4ee8e6(0x113)]));_0x1a0a7c['order']=qs[_0x4ee8e6(0xdc)](_0x547198[_0x4ee8e6(0x122)]['sort']),_0x1a0a7c[_0x4ee8e6(0x133)]=qs[_0x4ee8e6(0x13e)](_[_0x4ee8e6(0x116)](_0x547198['query'],_0x367fe6['filters']),_0x444069);_0x547198[_0x4ee8e6(0x122)][_0x4ee8e6(0xf0)]&&(_0x1a0a7c[_0x4ee8e6(0x133)]=_[_0x4ee8e6(0x10b)](_0x1a0a7c['where'],{[Op['or']]:_[_0x4ee8e6(0xd7)](_0x444069,function(_0x52c3f2){const _0x4c1bb0=_0x4ee8e6;if(_0x52c3f2[_0x4c1bb0(0x105)]!==_0x4c1bb0(0xfc)){const _0x294070={};return _0x294070[_0x52c3f2[_0x4c1bb0(0xce)]]={[Op[_0x4c1bb0(0xfb)]]:'%'+_0x547198[_0x4c1bb0(0x122)]['filter']+'%'},_0x294070;}})}));_0x1a0a7c=_[_0x4ee8e6(0x10b)]({},_0x1a0a7c,_0x547198[_0x4ee8e6(0xde)]);const _0x1cef68={'where':_0x1a0a7c[_0x4ee8e6(0x133)]};return db[_0x4ee8e6(0x10e)][_0x4ee8e6(0xea)](_0x1cef68)[_0x4ee8e6(0x109)](function(_0x232328){const _0x5d56e6=_0x4ee8e6;return _0x38b689[_0x5d56e6(0xea)]=_0x232328,_0x547198[_0x5d56e6(0x122)]['includeAll']&&(_0x1a0a7c['include']=[{'all':!![]}]),db[_0x5d56e6(0x10e)][_0x5d56e6(0xd1)](_0x1a0a7c);})[_0x4ee8e6(0x109)](function(_0x4661d6){const _0x49a857=_0x4ee8e6;return _0x38b689[_0x49a857(0x101)]=_0x4661d6,_0x38b689;})[_0x4ee8e6(0x109)](respondWithFilteredResult(_0x404dad,_0x1a0a7c))[_0x4ee8e6(0xf7)](handleError(_0x404dad,null));},exports[a114_0x4bdc23(0x12b)]=function(_0x5a5530,_0x2561d2){const _0x192e1e=a114_0x4bdc23;let _0x4eb0b2={'raw':!![],'where':{'id':_0x5a5530[_0x192e1e(0xf1)]['id']}};const _0x540d3f={};return _0x540d3f[_0x192e1e(0x11b)]=_[_0x192e1e(0x134)](db[_0x192e1e(0x10e)]['rawAttributes']),_0x540d3f[_0x192e1e(0x122)]=_['keys'](_0x5a5530['query']),_0x540d3f['filters']=_['intersection'](_0x540d3f['model'],_0x540d3f[_0x192e1e(0x122)]),_0x4eb0b2[_0x192e1e(0x130)]=_['intersection'](_0x540d3f[_0x192e1e(0x11b)],qs[_0x192e1e(0x138)](_0x5a5530['query'][_0x192e1e(0x138)])),_0x4eb0b2[_0x192e1e(0x130)]=_0x4eb0b2[_0x192e1e(0x130)][_0x192e1e(0xf9)]?_0x4eb0b2[_0x192e1e(0x130)]:_0x540d3f[_0x192e1e(0x11b)],_0x5a5530[_0x192e1e(0x122)][_0x192e1e(0x12f)]&&(_0x4eb0b2[_0x192e1e(0xe0)]=[{'all':!![]}]),_0x4eb0b2=_['merge']({},_0x4eb0b2,_0x5a5530[_0x192e1e(0xde)]),db['ChatQueue'][_0x192e1e(0x11e)](_0x4eb0b2)[_0x192e1e(0x109)](handleEntityNotFound(_0x2561d2,null))[_0x192e1e(0x109)](respondWithResult(_0x2561d2,null))[_0x192e1e(0xf7)](handleError(_0x2561d2,null));},exports[a114_0x4bdc23(0xe6)]=function(_0x45a132,_0x63dd7d){const _0x467f27=a114_0x4bdc23;return db[_0x467f27(0x10e)]['create'](_0x45a132[_0x467f27(0x139)],{})['then'](function(_0x90c864){const _0x50cef8=_0x467f27,_0x129c17=_0x45a132['user'][_0x50cef8(0xd2)]({'plain':!![]});if(!_0x129c17)throw new Error(_0x50cef8(0xf2));if(_0x129c17[_0x50cef8(0xfd)]==='user'){const _0x49285c=_0x90c864[_0x50cef8(0xd2)]({'plain':!![]}),_0x5c16be=_0x50cef8(0x13f);return db[_0x50cef8(0x127)][_0x50cef8(0x11e)]({'where':{'name':_0x5c16be,'userProfileId':_0x129c17[_0x50cef8(0x114)]},'raw':!![]})[_0x50cef8(0x109)](function(_0xb8df91){const _0x3c26e0=_0x50cef8;return _0xb8df91&&_0xb8df91[_0x3c26e0(0x141)]===0x0?db['UserProfileResource'][_0x3c26e0(0xe6)]({'name':_0x49285c[_0x3c26e0(0xce)],'resourceId':_0x49285c['id'],'type':_0xb8df91[_0x3c26e0(0xce)],'sectionId':_0xb8df91['id']},{})[_0x3c26e0(0x109)](function(){return _0x90c864;}):_0x90c864;})[_0x50cef8(0xf7)](function(_0x4d1f59){const _0x5f5d26=_0x50cef8;logger['error'](_0x5f5d26(0x137),_0x4d1f59);throw _0x4d1f59;});}return _0x90c864;})[_0x467f27(0x109)](respondWithResult(_0x63dd7d,0xc9))[_0x467f27(0xf7)](handleError(_0x63dd7d,null));},exports[a114_0x4bdc23(0xd5)]=function(_0x3ce8fa,_0x56581e){const _0x21d677=a114_0x4bdc23;return _0x3ce8fa[_0x21d677(0x139)]['id']&&delete _0x3ce8fa['body']['id'],db[_0x21d677(0x10e)][_0x21d677(0x11e)]({'where':{'id':_0x3ce8fa[_0x21d677(0xf1)]['id']}})[_0x21d677(0x109)](handleEntityNotFound(_0x56581e,null))[_0x21d677(0x109)](saveUpdates(_0x3ce8fa[_0x21d677(0x139)],null))[_0x21d677(0x109)](respondWithResult(_0x56581e,null))['catch'](handleError(_0x56581e,null));},exports['destroy']=function(_0xda68ce,_0x36ba78){const _0x33b8ef=a114_0x4bdc23;return db['ChatQueue'][_0x33b8ef(0x11e)]({'where':{'id':_0xda68ce[_0x33b8ef(0xf1)]['id']}})[_0x33b8ef(0x109)](handleEntityNotFound(_0x36ba78,null))[_0x33b8ef(0x109)](removeEntity(_0x36ba78,null))[_0x33b8ef(0xf7)](handleError(_0x36ba78,null));},exports[a114_0x4bdc23(0x123)]=function(_0x17046b,_0x488afd){const _0x93507e=a114_0x4bdc23;return db['ChatQueue'][_0x93507e(0x123)]()[_0x93507e(0x109)](respondWithResult(_0x488afd,null))[_0x93507e(0xf7)](handleError(_0x488afd,null));},exports['getMembers']=function(_0xb4c204,_0x1e0c27){const _0x18e2fb=a114_0x4bdc23;let _0x45a4f1={'raw':!![],'where':{}};const _0x26e02a={};let _0x55b381;return db[_0x18e2fb(0x10e)][_0x18e2fb(0x11e)]({'where':{'id':_0xb4c204[_0x18e2fb(0xf1)]['id']}})['then'](handleEntityNotFound(_0x1e0c27,null))[_0x18e2fb(0x109)](function(_0x20c96b){const _0x1c012c=_0x18e2fb;if(_0x20c96b)return _0x55b381=_0x20c96b[_0x1c012c(0xd2)]({'plain':!![]}),_0x26e02a['model']=_[_0x1c012c(0x134)](db[_0x1c012c(0xd3)][_0x1c012c(0x11d)]),_0x26e02a['query']=_['keys'](_0xb4c204[_0x1c012c(0x122)]),_0x26e02a[_0x1c012c(0x13e)]=_[_0x1c012c(0xf8)](_0x26e02a[_0x1c012c(0x11b)],_0x26e02a[_0x1c012c(0x122)]),_0x45a4f1['attributes']=_['intersection'](_0x26e02a[_0x1c012c(0x11b)],qs[_0x1c012c(0x138)](_0xb4c204[_0x1c012c(0x122)][_0x1c012c(0x138)])),_0x45a4f1[_0x1c012c(0x130)]=_0x45a4f1[_0x1c012c(0x130)][_0x1c012c(0xf9)]?_0x45a4f1[_0x1c012c(0x130)]:_0x26e02a[_0x1c012c(0x11b)],typeof _0xb4c204['query']['nolimit']===_0x1c012c(0x111)&&(_0x45a4f1[_0x1c012c(0xd8)]=qs[_0x1c012c(0xd8)](_0xb4c204[_0x1c012c(0x122)]['limit']),_0x45a4f1[_0x1c012c(0x113)]=qs['offset'](_0xb4c204[_0x1c012c(0x122)]['offset'])),_0x45a4f1['order']=qs[_0x1c012c(0xdc)](_0xb4c204[_0x1c012c(0x122)]['sort']),_0x45a4f1[_0x1c012c(0x133)]=qs['filters'](_[_0x1c012c(0x116)](_0xb4c204[_0x1c012c(0x122)],_0x26e02a[_0x1c012c(0x13e)])),_0x45a4f1[_0x1c012c(0x133)][_0x1c012c(0x125)]=_0x20c96b['id'],_0xb4c204[_0x1c012c(0x122)][_0x1c012c(0xf0)]&&(_0x45a4f1[_0x1c012c(0x133)]=_[_0x1c012c(0x10b)](_0x45a4f1[_0x1c012c(0x133)],{[Op['or']]:_[_0x1c012c(0xd7)](_0x45a4f1[_0x1c012c(0x130)],function(_0x593f3a){const _0xa6724f=_0x1c012c,_0x169991={};return _0x169991[_0x593f3a]={[Op['like']]:'%'+_0xb4c204[_0xa6724f(0x122)][_0xa6724f(0xf0)]+'%'},_0x169991;})})),_0x45a4f1=_[_0x1c012c(0x10b)]({},_0x45a4f1,_0xb4c204[_0x1c012c(0xde)]),db[_0x1c012c(0xd3)][_0x1c012c(0xd1)](_0x45a4f1);})[_0x18e2fb(0x109)](function(_0x1ed2bd){const _0x3f3434=_0x18e2fb;if(_0x1ed2bd)return db['User']['findAndCountAll']({'where':{'id':_[_0x3f3434(0xd7)](_0x1ed2bd,_0x3f3434(0x11c)),'role':_0x3f3434(0xdf)},'attributes':['id','name',_0x3f3434(0xeb),_0x3f3434(0xee),_0x3f3434(0xfa)]});})[_0x18e2fb(0x109)](function(_0x5b4823){const _0xb2b895=_0x18e2fb;return _0x5b4823?{'count':_0x5b4823['count'],'rows':_['map'](_0x5b4823[_0xb2b895(0x101)],function(_0x3ba214){const _0x268abf=_0xb2b895;return{'membername':_0x3ba214[_0x268abf(0xce)],'UserId':_0x3ba214['id'],'queue_name':_0x55b381[_0x268abf(0xce)],'ChatQueueId':_0x55b381['id'],'interface':util[_0x268abf(0xfe)]('%s/%s',_0x268abf(0xdb),_0x3ba214['name']),'penalty':0x0,'paused':_0x3ba214[_0x268abf(0xeb)],'createdAt':_0x3ba214['createdAt'],'updatedAt':_0x3ba214[_0x268abf(0xee)]};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0x1e0c27,_0x45a4f1))[_0x18e2fb(0xf7)](handleError(_0x1e0c27,null));},exports['getTeams']=function(_0x46eb72,_0x2f19a2){const _0x218d19=a114_0x4bdc23;let _0x3c9036={};const _0x1d66bd={};let _0x5ab966,_0x22c0cd;return db['ChatQueue'][_0x218d19(0x11e)]({'where':{'id':_0x46eb72[_0x218d19(0xf1)]['id']}})['then'](handleEntityNotFound(_0x2f19a2,null))[_0x218d19(0x109)](function(_0x4f7b89){const _0x59778a=_0x218d19;if(_0x4f7b89)return _0x5ab966=_0x4f7b89,_0x1d66bd['model']=_[_0x59778a(0x134)](db[_0x59778a(0x13d)][_0x59778a(0x11d)]),_0x1d66bd['query']=_['keys'](_0x46eb72[_0x59778a(0x122)]),_0x1d66bd[_0x59778a(0x13e)]=_[_0x59778a(0xf8)](_0x1d66bd[_0x59778a(0x11b)],_0x1d66bd[_0x59778a(0x122)]),_0x3c9036[_0x59778a(0x130)]=_[_0x59778a(0xf8)](_0x1d66bd[_0x59778a(0x11b)],qs[_0x59778a(0x138)](_0x46eb72['query']['fields'])),_0x3c9036[_0x59778a(0x130)]=_0x3c9036[_0x59778a(0x130)][_0x59778a(0xf9)]?_0x3c9036[_0x59778a(0x130)]:_0x1d66bd[_0x59778a(0x11b)],_0x3c9036['order']=qs[_0x59778a(0xdc)](_0x46eb72[_0x59778a(0x122)][_0x59778a(0xdc)]),_0x3c9036[_0x59778a(0x133)]=qs[_0x59778a(0x13e)](_[_0x59778a(0x116)](_0x46eb72['query'],_0x1d66bd['filters'])),_0x46eb72[_0x59778a(0x122)]['filter']&&(_0x3c9036[_0x59778a(0x133)]=_[_0x59778a(0x10b)](_0x3c9036[_0x59778a(0x133)],{[Op['or']]:_[_0x59778a(0xd7)](_0x3c9036[_0x59778a(0x130)],function(_0x5061bb){const _0x320acf=_0x59778a,_0x5129e0={};return _0x5129e0[_0x5061bb]={[Op[_0x320acf(0xfb)]]:'%'+_0x46eb72[_0x320acf(0x122)][_0x320acf(0xf0)]+'%'},_0x5129e0;})})),_0x3c9036=_[_0x59778a(0x10b)]({},_0x3c9036,_0x46eb72[_0x59778a(0xde)]),_0x5ab966['getTeams'](_0x3c9036);})['then'](function(_0x59732a){const _0x23ebca=_0x218d19;if(_0x59732a)return _0x22c0cd=_0x59732a['length'],typeof _0x46eb72[_0x23ebca(0x122)][_0x23ebca(0x11a)]===_0x23ebca(0x111)&&(_0x3c9036[_0x23ebca(0xd8)]=qs[_0x23ebca(0xd8)](_0x46eb72[_0x23ebca(0x122)][_0x23ebca(0xd8)]),_0x3c9036[_0x23ebca(0x113)]=qs[_0x23ebca(0x113)](_0x46eb72[_0x23ebca(0x122)][_0x23ebca(0x113)])),_0x5ab966[_0x23ebca(0x120)](_0x3c9036);})[_0x218d19(0x109)](function(_0x358f06){if(_0x358f06)return _0x358f06?{'count':_0x22c0cd,'rows':_0x358f06}:null;})[_0x218d19(0x109)](respondWithResult(_0x2f19a2,null))[_0x218d19(0xf7)](handleError(_0x2f19a2,null));},exports[a114_0x4bdc23(0x112)]=function(_0x336bcd,_0x5db0ed){const _0x3f98af=a114_0x4bdc23,_0x51ead0=_0x336bcd[_0x3f98af(0x139)]['ids'];return db['Team']['findAll']({'where':{'id':_0x51ead0},'attributes':['id'],'include':[{'model':db[_0x3f98af(0x106)],'as':_0x3f98af(0xe4),'attributes':['id',_0x3f98af(0xce),'online',_0x3f98af(0x12d),_0x3f98af(0xe7)],'raw':!![]}]})[_0x3f98af(0x109)](function(_0x4dee84){const _0x18a7cc=_0x3f98af;if(_0x4dee84){const _0x57655f=_[_0x18a7cc(0x132)](_0x4dee84,function(_0x5f1ea6){const _0x2f1e5e=_0x5f1ea6['get']({'plain':!![]});return _0x2f1e5e['Agents'];});return db['ChatQueue']['findOne']({'where':{'id':_0x336bcd[_0x18a7cc(0xf1)]['id']}})['then'](function(_0x72b523){const _0x169223=_0x18a7cc;return db[_0x169223(0x126)][_0x169223(0xdd)](function(_0x45e7c8){const _0x142e85=_0x169223;return _0x72b523[_0x142e85(0x112)](_0x51ead0,{'transaction':_0x45e7c8})['then'](function(){const _0x129989=_0x142e85;return Promise[_0x129989(0x11f)](_0x57655f[_0x129989(0xd7)](_0x2c2c83=>{const _0x3686f2=_0x129989;return db['UserChatQueue'][_0x3686f2(0x10f)]({'where':{'UserId':_0x2c2c83['id'],'ChatQueueId':_0x336bcd[_0x3686f2(0xf1)]['id']},'transaction':_0x45e7c8});}));})[_0x142e85(0x109)](function(){_0x57655f['forEach'](function(_0x142178){const _0x47301a=a114_0x4d96;socket['emit'](_0x47301a(0xd0),{'UserId':_0x142178['id'],'ChatQueueId':_0x72b523['id']});});});});});}})[_0x3f98af(0x109)](respondWithStatusCode(_0x5db0ed,null))['catch'](handleError(_0x5db0ed,null));},exports[a114_0x4bdc23(0xe3)]=function(_0x33dc56,_0x29a0d8){const _0x472073=a114_0x4bdc23;return db['Team'][_0x472073(0xd1)]({'where':{'id':_0x33dc56[_0x472073(0x122)]['ids']},'attributes':['id'],'include':[{'model':db[_0x472073(0x106)],'as':_0x472073(0xe4),'attributes':['id'],'raw':!![]}]})[_0x472073(0x109)](handleEntityNotFound(_0x29a0d8,null))[_0x472073(0x109)](function(_0x48a0d9){const _0x5bc679=_0x472073,_0x3942cc=_[_0x5bc679(0xd7)](_0x48a0d9,'id');let _0x3b584e=[];const _0x110aa=[],_0x7e0efc=squel[_0x5bc679(0xe5)]();_0x7e0efc[_0x5bc679(0xda)](_0x5bc679(0x110))['from'](_0x5bc679(0x13a),'tq')[_0x5bc679(0x102)](_0x5bc679(0x140),'ut',_0x5bc679(0x104))[_0x5bc679(0x133)](_0x5bc679(0x10c),_0x33dc56[_0x5bc679(0xf1)]['id']);for(let _0x2a6e46=0x0;_0x2a6e46<_0x48a0d9[_0x5bc679(0xf9)];_0x2a6e46+=0x1){const _0x14cc03=_0x48a0d9[_0x2a6e46];for(let _0x5b6c9a=0x0;_0x5b6c9a<_0x14cc03[_0x5bc679(0xe4)][_0x5bc679(0xf9)];_0x5b6c9a+=0x1){const _0x21f0a2=_0x14cc03['Agents'][_0x5b6c9a],_0x4bbfc3=_0x7e0efc['clone']();_0x4bbfc3['where'](_0x5bc679(0xf6),_0x21f0a2['id']),_0x110aa[_0x5bc679(0x10a)](db[_0x5bc679(0x126)][_0x5bc679(0x122)](_0x4bbfc3[_0x5bc679(0xec)](),{'type':QueryTypes[_0x5bc679(0xed)]})['then'](function(_0x4cf1be){const _0x39aa7b=_0x5bc679;if(_0x4cf1be[_0x39aa7b(0xf9)]===0x1)return _0x21f0a2['id'];else{const _0x131e85=_[_0x39aa7b(0x107)](_[_0x39aa7b(0xd7)](_0x4cf1be,'TeamId'),function(_0x539bae){const _0x449273=_0x39aa7b;return _[_0x449273(0x128)](_0x3942cc,_0x539bae);});if(_0x131e85)return _0x21f0a2['id'];}}));}}return Promise[_0x5bc679(0x11f)](_0x110aa)[_0x5bc679(0x109)](function(_0x232f9e){const _0x4dd07e=_0x5bc679;return _0x3b584e=_(_0x3b584e)['union'](_0x232f9e)[_0x4dd07e(0x117)]()['value'](),db[_0x4dd07e(0x10e)][_0x4dd07e(0x11e)]({'where':{'id':_0x33dc56[_0x4dd07e(0xf1)]['id']}})['then'](function(_0x589cf9){return db['sequelize']['transaction'](function(_0x56d4c2){const _0x36f9fb=a114_0x4d96;return _0x589cf9[_0x36f9fb(0xe3)](_0x33dc56[_0x36f9fb(0x122)][_0x36f9fb(0xd6)],{'transaction':_0x56d4c2})['then'](function(){const _0x9fc1c4=_0x36f9fb;if(!_[_0x9fc1c4(0xef)](_0x3b584e))return _0x589cf9['removeAgents'](_0x3b584e,{'transaction':_0x56d4c2});})[_0x36f9fb(0x109)](function(){const _0x433b9f=_0x36f9fb;_0x3b584e[_0x433b9f(0xf3)](function(_0x2b7822){socket['emit']('userChatQueue:remove',{'UserId':_0x2b7822,'ChatQueueId':_0x589cf9['id']});});});});});});})['then'](respondWithStatusCode(_0x29a0d8,null))['catch'](handleError(_0x29a0d8,null));},exports[a114_0x4bdc23(0x115)]=function(_0x264c61,_0x4652ff){const _0xb20bfa=a114_0x4bdc23;return db['ChatQueue'][_0xb20bfa(0x11e)]({'where':{'id':_0x264c61[_0xb20bfa(0xf1)]['id']}})[_0xb20bfa(0x109)](function(_0x553fbd){const _0x216d7d=_0xb20bfa;if(_0x553fbd)return _0x553fbd['addAgents'](_0x264c61[_0x216d7d(0x139)][_0x216d7d(0xd6)],{'through':_[_0x216d7d(0x10d)](_0x264c61[_0x216d7d(0x139)],['ids','id'])})['then'](function(_0x23f182){const _0x20896b=_0x216d7d;for(let _0x512431=0x0;_0x512431<_0x264c61[_0x20896b(0x139)]['ids'][_0x20896b(0xf9)];_0x512431+=0x1){socket[_0x20896b(0x118)]('userChatQueue:save',{'UserId':_0x264c61[_0x20896b(0x139)][_0x20896b(0xd6)][_0x512431],'ChatQueueId':_0x264c61['params']['id']});}return _0x23f182;});})[_0xb20bfa(0x109)](respondWithResult(_0x4652ff,null))[_0xb20bfa(0xf7)](handleError(_0x4652ff,null));},exports[a114_0x4bdc23(0xff)]=function(_0x4ea06b,_0x3ff72a){const _0x461177=a114_0x4bdc23;return db[_0x461177(0x10e)][_0x461177(0x11e)]({'where':{'id':_0x4ea06b[_0x461177(0xf1)]['id']}})[_0x461177(0x109)](handleEntityNotFound(_0x3ff72a,null))[_0x461177(0x109)](function(_0x3d454d){const _0x5b961d=_0x461177;if(_0x3d454d)return _0x3d454d['removeAgents'](_0x4ea06b[_0x5b961d(0x122)]['ids'])[_0x5b961d(0x109)](function(){const _0x464360=_0x5b961d;if(_[_0x464360(0x131)](_0x4ea06b[_0x464360(0x122)][_0x464360(0xd6)]))for(let _0x18ce96=0x0;_0x18ce96<_0x4ea06b[_0x464360(0x122)]['ids'][_0x464360(0xf9)];_0x18ce96+=0x1){socket[_0x464360(0x118)](_0x464360(0xf5),{'UserId':Number(_0x4ea06b[_0x464360(0x122)][_0x464360(0xd6)][_0x18ce96]),'ChatQueueId':Number(_0x4ea06b[_0x464360(0xf1)]['id'])});}else socket[_0x464360(0x118)]('userChatQueue:remove',{'UserId':Number(_0x4ea06b[_0x464360(0x122)][_0x464360(0xd6)]),'ChatQueueId':Number(_0x4ea06b[_0x464360(0xf1)]['id'])});});})['then'](respondWithStatusCode(_0x3ff72a,null))[_0x461177(0xf7)](handleError(_0x3ff72a,null));},exports['getAgents']=function(_0x52ca21,_0x4b026e){const _0x48fb2e=a114_0x4bdc23;let _0x200606={};const _0x1c3da0={};let _0x151beb,_0x15e139;return db[_0x48fb2e(0x10e)][_0x48fb2e(0x11e)]({'where':{'id':_0x52ca21[_0x48fb2e(0xf1)]['id']}})[_0x48fb2e(0x109)](handleEntityNotFound(_0x4b026e,null))[_0x48fb2e(0x109)](function(_0x11daa4){const _0x5afbf0=_0x48fb2e;if(_0x11daa4)return _0x151beb=_0x11daa4,_0x1c3da0[_0x5afbf0(0x11b)]=_[_0x5afbf0(0x134)](db[_0x5afbf0(0x106)]['rawAttributes']),_0x1c3da0['query']=_[_0x5afbf0(0x134)](_0x52ca21[_0x5afbf0(0x122)]),_0x1c3da0[_0x5afbf0(0x13e)]=_['intersection'](_0x1c3da0[_0x5afbf0(0x11b)],_0x1c3da0[_0x5afbf0(0x122)]),_0x200606[_0x5afbf0(0x130)]=_[_0x5afbf0(0xf8)](_0x1c3da0[_0x5afbf0(0x11b)],qs[_0x5afbf0(0x138)](_0x52ca21['query']['fields'])),_0x200606[_0x5afbf0(0x130)]=_0x200606[_0x5afbf0(0x130)][_0x5afbf0(0xf9)]?_0x200606[_0x5afbf0(0x130)]:_0x1c3da0[_0x5afbf0(0x11b)],_0x200606['order']=qs[_0x5afbf0(0xdc)](_0x52ca21[_0x5afbf0(0x122)]['sort']),_0x200606[_0x5afbf0(0x133)]=qs[_0x5afbf0(0x13e)](_['pick'](_0x52ca21[_0x5afbf0(0x122)],_0x1c3da0[_0x5afbf0(0x13e)])),_0x52ca21['query'][_0x5afbf0(0xf0)]&&(_0x200606[_0x5afbf0(0x133)]=_[_0x5afbf0(0x10b)](_0x200606[_0x5afbf0(0x133)],{[Op['or']]:_[_0x5afbf0(0xd7)](_0x200606[_0x5afbf0(0x130)],function(_0x31d0d9){const _0x4c17e4=_0x5afbf0,_0x4e51b1={};return _0x4e51b1[_0x31d0d9]={[Op[_0x4c17e4(0xfb)]]:'%'+_0x52ca21['query']['filter']+'%'},_0x4e51b1;})})),_0x200606=_[_0x5afbf0(0x10b)]({},_0x200606,_0x52ca21[_0x5afbf0(0xde)]),_0x151beb['getAgents'](_0x200606);})[_0x48fb2e(0x109)](function(_0x1af318){const _0x4c8daa=_0x48fb2e;if(_0x1af318)return _0x15e139=_0x1af318['length'],typeof _0x52ca21['query']['nolimit']===_0x4c8daa(0x111)&&(_0x200606[_0x4c8daa(0xd8)]=qs[_0x4c8daa(0xd8)](_0x52ca21[_0x4c8daa(0x122)][_0x4c8daa(0xd8)]),_0x200606['offset']=qs['offset'](_0x52ca21[_0x4c8daa(0x122)][_0x4c8daa(0x113)])),_0x151beb['getAgents'](_0x200606);})[_0x48fb2e(0x109)](function(_0x4ffa1f){if(_0x4ffa1f)return _0x4ffa1f?{'count':_0x15e139,'rows':_0x4ffa1f}:null;})[_0x48fb2e(0x109)](respondWithResult(_0x4b026e,null))[_0x48fb2e(0xf7)](handleError(_0x4b026e,null));}; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.events.js b/server/api/chatQueue/chatQueue.events.js index 28ac952..368284b 100644 --- a/server/api/chatQueue/chatQueue.events.js +++ b/server/api/chatQueue/chatQueue.events.js @@ -1 +1 @@ -const a115_0x17b9=['ChatQueue','exports','undefined','update','remove','events','addHook','emit'];(function(_0x8100c,_0x5b2c65){const _0x17b910=function(_0x1174a1){while(--_0x1174a1){_0x8100c['push'](_0x8100c['shift']());}};_0x17b910(++_0x5b2c65);}(a115_0x17b9,0x16f));const a115_0x1174=function(_0x8100c,_0x5b2c65){_0x8100c=_0x8100c-0x196;let _0x17b910=a115_0x17b9[_0x8100c];return _0x17b910;};const a115_0x7e1696=a115_0x1174;'use strict';const EventEmitter=require(a115_0x7e1696(0x19c)),ChatQueue=require('../../mysqldb')['db'][a115_0x7e1696(0x197)],ChatQueueEvents=new EventEmitter();ChatQueueEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':a115_0x7e1696(0x19a),'afterDestroy':a115_0x7e1696(0x19b)};function emitEvent(_0x35dfd8){return function(_0x6515c9){const _0x32bb2d=a115_0x1174;ChatQueueEvents[_0x32bb2d(0x196)](_0x35dfd8+':'+_0x6515c9['id'],_0x6515c9),ChatQueueEvents['emit'](_0x35dfd8,_0x6515c9);};}for(const e in events){if(typeof events[e]!==a115_0x7e1696(0x199)){const event=events[e];ChatQueue[a115_0x7e1696(0x19d)](e,emitEvent(event));}}module[a115_0x7e1696(0x198)]=ChatQueueEvents; \ No newline at end of file +const a115_0x29e5=['../../mysqldb','setMaxListeners','undefined','emit','addHook','events','ChatQueue','exports','remove'];(function(_0x26ffec,_0x5dd677){const _0x29e596=function(_0x379d15){while(--_0x379d15){_0x26ffec['push'](_0x26ffec['shift']());}};_0x29e596(++_0x5dd677);}(a115_0x29e5,0xc3));const a115_0x379d=function(_0x26ffec,_0x5dd677){_0x26ffec=_0x26ffec-0x1f0;let _0x29e596=a115_0x29e5[_0x26ffec];return _0x29e596;};const a115_0x25535c=a115_0x379d;'use strict';const EventEmitter=require(a115_0x25535c(0x1f8)),ChatQueue=require(a115_0x25535c(0x1f3))['db'][a115_0x25535c(0x1f0)],ChatQueueEvents=new EventEmitter();ChatQueueEvents[a115_0x25535c(0x1f4)](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':a115_0x25535c(0x1f2)};function emitEvent(_0x315c4e){return function(_0x5bd5c6){const _0x18fbe3=a115_0x379d;ChatQueueEvents[_0x18fbe3(0x1f6)](_0x315c4e+':'+_0x5bd5c6['id'],_0x5bd5c6),ChatQueueEvents[_0x18fbe3(0x1f6)](_0x315c4e,_0x5bd5c6);};}for(const e in events){if(typeof events[e]!==a115_0x25535c(0x1f5)){const event=events[e];ChatQueue[a115_0x25535c(0x1f7)](e,emitEvent(event));}}module[a115_0x25535c(0x1f1)]=ChatQueueEvents; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.model.js b/server/api/chatQueue/chatQueue.model.js index 4724ec5..899355e 100644 --- a/server/api/chatQueue/chatQueue.model.js +++ b/server/api/chatQueue/chatQueue.model.js @@ -1 +1 @@ -const a116_0xcb21=['init','./chatQueue.attributes','sequelize','function','./chatQueue.options','exports'];(function(_0x11fd2a,_0x169351){const _0xcb2125=function(_0x131bd8){while(--_0x131bd8){_0x11fd2a['push'](_0x11fd2a['shift']());}};_0xcb2125(++_0x169351);}(a116_0xcb21,0x110));const a116_0x131b=function(_0x11fd2a,_0x169351){_0x11fd2a=_0x11fd2a-0x13d;let _0xcb2125=a116_0xcb21[_0x11fd2a];return _0xcb2125;};const a116_0x194a06=a116_0x131b;'use strict';const {Model}=require(a116_0x194a06(0x13d)),{attributes}=require(a116_0x194a06(0x142)),{options}=require(a116_0x194a06(0x13f));class ChatQueue extends Model{}function init(_0x44fb46,_0x49416e){const _0x4f50ec=a116_0x194a06,_0x3c446c=options(_0x44fb46),_0x5ac4e8=typeof _0x49416e===_0x4f50ec(0x13e)?_0x49416e(_0x3c446c):_0x3c446c;return ChatQueue[_0x4f50ec(0x141)](attributes,_0x5ac4e8),ChatQueue;}module[a116_0x194a06(0x140)]['ChatQueue']=ChatQueue,module[a116_0x194a06(0x140)]['init']=init; \ No newline at end of file +const a116_0x32db=['init','sequelize','ChatQueue','function','./chatQueue.options'];(function(_0x1c7a72,_0xcf3b79){const _0x32dbe1=function(_0x1bc4ff){while(--_0x1bc4ff){_0x1c7a72['push'](_0x1c7a72['shift']());}};_0x32dbe1(++_0xcf3b79);}(a116_0x32db,0x1b7));const a116_0x1bc4=function(_0x1c7a72,_0xcf3b79){_0x1c7a72=_0x1c7a72-0x175;let _0x32dbe1=a116_0x32db[_0x1c7a72];return _0x32dbe1;};const a116_0x44664b=a116_0x1bc4;'use strict';const {Model}=require(a116_0x44664b(0x177)),{attributes}=require('./chatQueue.attributes'),{options}=require(a116_0x44664b(0x175));class ChatQueue extends Model{}function init(_0x2e6e34,_0x3ab1b7){const _0x2a5de3=a116_0x44664b,_0x3a5b70=options(_0x2e6e34),_0x502571=typeof _0x3ab1b7===_0x2a5de3(0x179)?_0x3ab1b7(_0x3a5b70):_0x3a5b70;return ChatQueue[_0x2a5de3(0x176)](attributes,_0x502571),ChatQueue;}module['exports'][a116_0x44664b(0x178)]=ChatQueue,module['exports'][a116_0x44664b(0x176)]=init; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.options.js b/server/api/chatQueue/chatQueue.options.js index 3bb0e01..4d4f2bb 100644 --- a/server/api/chatQueue/chatQueue.options.js +++ b/server/api/chatQueue/chatQueue.options.js @@ -1 +1 @@ -var a117_0x2988=['exports'];(function(_0x508b3,_0x18b134){var _0x29889a=function(_0x3bac8e){while(--_0x3bac8e){_0x508b3['push'](_0x508b3['shift']());}};_0x29889a(++_0x18b134);}(a117_0x2988,0xc8));var a117_0x3bac=function(_0x508b3,_0x18b134){_0x508b3=_0x508b3-0xe3;var _0x29889a=a117_0x2988[_0x508b3];return _0x29889a;};var a117_0x569578=a117_0x3bac;function options(_0x4d6349){return{'sequelize':_0x4d6349,'tableName':'chat_queues','paranoid':![],'indexes':[],'timestamps':!![]};}module[a117_0x569578(0xe3)]['options']=options; \ No newline at end of file +var a117_0x1e35=['options','exports'];(function(_0x1f0765,_0x52f132){var _0x1e354f=function(_0x1a02eb){while(--_0x1a02eb){_0x1f0765['push'](_0x1f0765['shift']());}};_0x1e354f(++_0x52f132);}(a117_0x1e35,0x117));var a117_0x1a02=function(_0x1f0765,_0x52f132){_0x1f0765=_0x1f0765-0x112;var _0x1e354f=a117_0x1e35[_0x1f0765];return _0x1e354f;};var a117_0x320d60=a117_0x1a02;function options(_0x1c230f){return{'sequelize':_0x1c230f,'tableName':'chat_queues','paranoid':![],'indexes':[],'timestamps':!![]};}module[a117_0x320d60(0x112)][a117_0x320d60(0x113)]=options; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.rpc.js b/server/api/chatQueue/chatQueue.rpc.js index 6248e84..e590384 100644 --- a/server/api/chatQueue/chatQueue.rpc.js +++ b/server/api/chatQueue/chatQueue.rpc.js @@ -1 +1 @@ -const a118_0x2962=['limit','attributes','info','findOne','message','./chatQueue.socket','options','map','where','debug','findAll','../../mysqldb','model','catch','../../rediscache','ChatQueue','lodash','raw','include','rpc','error','ShowChatQueue','../../config/logger','then','GetChatQueue','stringify'];(function(_0x2b9180,_0x11b017){const _0x29628c=function(_0xb50c70){while(--_0xb50c70){_0x2b9180['push'](_0x2b9180['shift']());}};_0x29628c(++_0x11b017);}(a118_0x2962,0x173));const a118_0xb50c=function(_0x2b9180,_0x11b017){_0x2b9180=_0x2b9180-0xea;let _0x29628c=a118_0x2962[_0x2b9180];return _0x29628c;};const a118_0x544804=a118_0xb50c;'use strict';const _=require(a118_0x544804(0xf3)),db=require(a118_0x544804(0xee))['db'],logger=require(a118_0x544804(0xf9))(a118_0x544804(0xf6)),{getSocket}=require(a118_0x544804(0xf1)),socket=getSocket();require(a118_0x544804(0x102))['register'](socket),exports[a118_0x544804(0xfb)]=function(_0x2ff10f){const _0x52d6f0=this;return new Promise(function(_0x47b9db,_0x58c045){const _0x3c0dc9=a118_0xb50c;return db[_0x3c0dc9(0xf2)][_0x3c0dc9(0xed)]({'raw':_0x2ff10f[_0x3c0dc9(0x103)]?_0x2ff10f[_0x3c0dc9(0x103)]['raw']===undefined?!![]:![]:!![],'where':_0x2ff10f[_0x3c0dc9(0x103)]?_0x2ff10f[_0x3c0dc9(0x103)][_0x3c0dc9(0xeb)]||null:null,'attributes':_0x2ff10f['options']?_0x2ff10f['options'][_0x3c0dc9(0xfe)]||null:null,'limit':_0x2ff10f[_0x3c0dc9(0x103)]?_0x2ff10f['options'][_0x3c0dc9(0xfd)]||null:null,'include':_0x2ff10f[_0x3c0dc9(0x103)]?_0x2ff10f[_0x3c0dc9(0x103)][_0x3c0dc9(0xf5)]?_[_0x3c0dc9(0xea)](_0x2ff10f[_0x3c0dc9(0x103)][_0x3c0dc9(0xf5)],function(_0x3e588c){const _0x5093b2=_0x3c0dc9;return{'model':db[_0x3e588c[_0x5093b2(0xef)]],'as':_0x3e588c['as'],'attributes':_0x3e588c['attributes'],'include':_0x3e588c[_0x5093b2(0xf5)]?_[_0x5093b2(0xea)](_0x3e588c['include'],function(_0x1d2467){const _0x225695=_0x5093b2;return{'model':db[_0x1d2467[_0x225695(0xef)]],'as':_0x1d2467['as'],'attributes':_0x1d2467[_0x225695(0xfe)],'include':_0x1d2467[_0x225695(0xf5)]?_[_0x225695(0xea)](_0x1d2467['include'],function(_0x1c73fe){const _0x1fd60a=_0x225695;return{'model':db[_0x1c73fe[_0x1fd60a(0xef)]],'as':_0x1c73fe['as'],'attributes':_0x1c73fe[_0x1fd60a(0xfe)]};}):[]};}):[]};}):[]:[]})[_0x3c0dc9(0xfa)](function(_0x32df19){const _0x32636c=_0x3c0dc9;logger[_0x32636c(0xff)](_0x32636c(0xfb),_0x2ff10f),logger['debug']('GetChatQueue',_0x2ff10f,JSON[_0x32636c(0xfc)](_0x32df19)),_0x47b9db(_0x32df19);})[_0x3c0dc9(0xf0)](function(_0xb38942){const _0x5894c2=_0x3c0dc9;logger[_0x5894c2(0xf7)](_0x5894c2(0xfb),_0xb38942['message'],_0x2ff10f),_0x58c045(_0x52d6f0[_0x5894c2(0xf7)](0x1f4,_0xb38942[_0x5894c2(0x101)]));});});},exports[a118_0x544804(0xf8)]=function(_0x3d77dc){const _0xd162f2=this;return new Promise(function(_0x1d92d1,_0x54df70){const _0x373883=a118_0xb50c;return db[_0x373883(0xf2)][_0x373883(0x100)]({'raw':_0x3d77dc[_0x373883(0x103)]?_0x3d77dc[_0x373883(0x103)][_0x373883(0xf4)]===undefined?!![]:![]:!![],'where':_0x3d77dc['options']?_0x3d77dc[_0x373883(0x103)]['where']||null:null,'attributes':_0x3d77dc[_0x373883(0x103)]?_0x3d77dc[_0x373883(0x103)][_0x373883(0xfe)]||null:null,'include':_0x3d77dc[_0x373883(0x103)]?_0x3d77dc['options']['include']?_[_0x373883(0xea)](_0x3d77dc[_0x373883(0x103)][_0x373883(0xf5)],function(_0x30b52d){const _0x474202=_0x373883;return{'model':db[_0x30b52d[_0x474202(0xef)]],'as':_0x30b52d['as'],'attributes':_0x30b52d[_0x474202(0xfe)],'include':_0x30b52d['include']?_[_0x474202(0xea)](_0x30b52d[_0x474202(0xf5)],function(_0x1d649e){const _0x235627=_0x474202;return{'model':db[_0x1d649e[_0x235627(0xef)]],'as':_0x1d649e['as'],'attributes':_0x1d649e[_0x235627(0xfe)],'include':_0x1d649e[_0x235627(0xf5)]?_['map'](_0x1d649e['include'],function(_0x260847){const _0x3c8c5e=_0x235627;return{'model':db[_0x260847[_0x3c8c5e(0xef)]],'as':_0x260847['as'],'attributes':_0x260847[_0x3c8c5e(0xfe)]};}):[]};}):[]};}):[]:[]})[_0x373883(0xfa)](function(_0x4c52c0){const _0x420460=_0x373883;logger['info']('ShowChatQueue',_0x3d77dc),logger[_0x420460(0xec)]('ShowChatQueue',_0x3d77dc,JSON[_0x420460(0xfc)](_0x4c52c0)),_0x1d92d1(_0x4c52c0);})[_0x373883(0xf0)](function(_0x2f8abd){const _0x29b02a=_0x373883;logger['error']('ShowChatQueue',_0x2f8abd[_0x29b02a(0x101)],_0x3d77dc),_0x54df70(_0xd162f2['error'](0x1f4,_0x2f8abd[_0x29b02a(0x101)]));});});}; \ No newline at end of file +const a118_0x1564=['model','findOne','include','error','raw','ShowChatQueue','../../mysqldb','findAll','register','info','GetChatQueue','debug','ChatQueue','rpc','message','map','attributes','options','catch','./chatQueue.socket','lodash','where','stringify','../../config/logger'];(function(_0xe22119,_0x3bc5a1){const _0x156477=function(_0x17a44d){while(--_0x17a44d){_0xe22119['push'](_0xe22119['shift']());}};_0x156477(++_0x3bc5a1);}(a118_0x1564,0x19e));const a118_0x17a4=function(_0xe22119,_0x3bc5a1){_0xe22119=_0xe22119-0x9d;let _0x156477=a118_0x1564[_0xe22119];return _0x156477;};const a118_0x28ec8e=a118_0x17a4;'use strict';const _=require(a118_0x28ec8e(0xab)),db=require(a118_0x28ec8e(0x9d))['db'],logger=require(a118_0x28ec8e(0xae))(a118_0x28ec8e(0xa4)),{getSocket}=require('../../rediscache'),socket=getSocket();require(a118_0x28ec8e(0xaa))[a118_0x28ec8e(0x9f)](socket),exports['GetChatQueue']=function(_0x129890){const _0x1102ef=this;return new Promise(function(_0x593646,_0x26ace3){const _0x13135f=a118_0x17a4;return db[_0x13135f(0xa3)][_0x13135f(0x9e)]({'raw':_0x129890['options']?_0x129890[_0x13135f(0xa8)][_0x13135f(0xb3)]===undefined?!![]:![]:!![],'where':_0x129890[_0x13135f(0xa8)]?_0x129890[_0x13135f(0xa8)]['where']||null:null,'attributes':_0x129890['options']?_0x129890[_0x13135f(0xa8)][_0x13135f(0xa7)]||null:null,'limit':_0x129890[_0x13135f(0xa8)]?_0x129890[_0x13135f(0xa8)]['limit']||null:null,'include':_0x129890[_0x13135f(0xa8)]?_0x129890[_0x13135f(0xa8)]['include']?_[_0x13135f(0xa6)](_0x129890[_0x13135f(0xa8)][_0x13135f(0xb1)],function(_0x1d34a8){const _0xc33ff0=_0x13135f;return{'model':db[_0x1d34a8[_0xc33ff0(0xaf)]],'as':_0x1d34a8['as'],'attributes':_0x1d34a8[_0xc33ff0(0xa7)],'include':_0x1d34a8[_0xc33ff0(0xb1)]?_[_0xc33ff0(0xa6)](_0x1d34a8[_0xc33ff0(0xb1)],function(_0x4f6676){const _0x53d184=_0xc33ff0;return{'model':db[_0x4f6676['model']],'as':_0x4f6676['as'],'attributes':_0x4f6676[_0x53d184(0xa7)],'include':_0x4f6676['include']?_[_0x53d184(0xa6)](_0x4f6676[_0x53d184(0xb1)],function(_0x34493d){const _0x5fbd13=_0x53d184;return{'model':db[_0x34493d[_0x5fbd13(0xaf)]],'as':_0x34493d['as'],'attributes':_0x34493d['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x273b49){const _0x5bad92=_0x13135f;logger[_0x5bad92(0xa0)](_0x5bad92(0xa1),_0x129890),logger[_0x5bad92(0xa2)](_0x5bad92(0xa1),_0x129890,JSON[_0x5bad92(0xad)](_0x273b49)),_0x593646(_0x273b49);})[_0x13135f(0xa9)](function(_0x326f4f){const _0xf484b7=_0x13135f;logger[_0xf484b7(0xb2)](_0xf484b7(0xa1),_0x326f4f[_0xf484b7(0xa5)],_0x129890),_0x26ace3(_0x1102ef[_0xf484b7(0xb2)](0x1f4,_0x326f4f[_0xf484b7(0xa5)]));});});},exports[a118_0x28ec8e(0xb4)]=function(_0x8b2a56){const _0x4be231=this;return new Promise(function(_0x1a835a,_0x4c1387){const _0x18966f=a118_0x17a4;return db['ChatQueue'][_0x18966f(0xb0)]({'raw':_0x8b2a56[_0x18966f(0xa8)]?_0x8b2a56[_0x18966f(0xa8)]['raw']===undefined?!![]:![]:!![],'where':_0x8b2a56['options']?_0x8b2a56[_0x18966f(0xa8)][_0x18966f(0xac)]||null:null,'attributes':_0x8b2a56[_0x18966f(0xa8)]?_0x8b2a56['options'][_0x18966f(0xa7)]||null:null,'include':_0x8b2a56[_0x18966f(0xa8)]?_0x8b2a56[_0x18966f(0xa8)][_0x18966f(0xb1)]?_[_0x18966f(0xa6)](_0x8b2a56[_0x18966f(0xa8)]['include'],function(_0x3b388a){const _0x5cb00a=_0x18966f;return{'model':db[_0x3b388a['model']],'as':_0x3b388a['as'],'attributes':_0x3b388a[_0x5cb00a(0xa7)],'include':_0x3b388a[_0x5cb00a(0xb1)]?_[_0x5cb00a(0xa6)](_0x3b388a[_0x5cb00a(0xb1)],function(_0x2cd842){const _0xecb20e=_0x5cb00a;return{'model':db[_0x2cd842['model']],'as':_0x2cd842['as'],'attributes':_0x2cd842['attributes'],'include':_0x2cd842[_0xecb20e(0xb1)]?_[_0xecb20e(0xa6)](_0x2cd842['include'],function(_0x3298d7){const _0x53e235=_0xecb20e;return{'model':db[_0x3298d7[_0x53e235(0xaf)]],'as':_0x3298d7['as'],'attributes':_0x3298d7[_0x53e235(0xa7)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4f8afe){const _0x43e9a6=_0x18966f;logger[_0x43e9a6(0xa0)]('ShowChatQueue',_0x8b2a56),logger[_0x43e9a6(0xa2)](_0x43e9a6(0xb4),_0x8b2a56,JSON[_0x43e9a6(0xad)](_0x4f8afe)),_0x1a835a(_0x4f8afe);})[_0x18966f(0xa9)](function(_0x2b80de){const _0xe4ef46=_0x18966f;logger[_0xe4ef46(0xb2)](_0xe4ef46(0xb4),_0x2b80de[_0xe4ef46(0xa5)],_0x8b2a56),_0x4c1387(_0x4be231['error'](0x1f4,_0x2b80de[_0xe4ef46(0xa5)]));});});}; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.socket.js b/server/api/chatQueue/chatQueue.socket.js index 98a8251..2f1518b 100644 --- a/server/api/chatQueue/chatQueue.socket.js +++ b/server/api/chatQueue/chatQueue.socket.js @@ -1 +1 @@ -const a119_0x1c6b=['update','save','./chatQueue.events','remove','length','register'];(function(_0x55de75,_0x3fc814){const _0x1c6b31=function(_0x213e69){while(--_0x213e69){_0x55de75['push'](_0x55de75['shift']());}};_0x1c6b31(++_0x3fc814);}(a119_0x1c6b,0xce));const a119_0x213e=function(_0x55de75,_0x3fc814){_0x55de75=_0x55de75-0x19f;let _0x1c6b31=a119_0x1c6b[_0x55de75];return _0x1c6b31;};const a119_0x17c2e3=a119_0x213e;'use strict';const ChatQueueEvents=require(a119_0x17c2e3(0x19f)),events=[a119_0x17c2e3(0x1a4),a119_0x17c2e3(0x1a0),a119_0x17c2e3(0x1a3)];function createListener(_0xb41872,_0x5b20e5){return function(_0xaa5b2e){_0x5b20e5['emit'](_0xb41872,_0xaa5b2e);};}exports[a119_0x17c2e3(0x1a2)]=function(_0x59a23c){const _0x518127=a119_0x17c2e3;for(let _0x99d52e=0x0,_0x46b62c=events[_0x518127(0x1a1)];_0x99d52e<_0x46b62c;_0x99d52e++){const _0x359c0a=events[_0x99d52e],_0x37f572=createListener('chatQueue:'+_0x359c0a,_0x59a23c);ChatQueueEvents['on'](_0x359c0a,_0x37f572);}}; \ No newline at end of file +const a119_0x54fc=['emit','./chatQueue.events','register','save','remove','chatQueue:','update'];(function(_0x33905b,_0x11f1dc){const _0x54fc88=function(_0x2545c5){while(--_0x2545c5){_0x33905b['push'](_0x33905b['shift']());}};_0x54fc88(++_0x11f1dc);}(a119_0x54fc,0x165));const a119_0x2545=function(_0x33905b,_0x11f1dc){_0x33905b=_0x33905b-0x13a;let _0x54fc88=a119_0x54fc[_0x33905b];return _0x54fc88;};const a119_0xcc9a50=a119_0x2545;'use strict';const ChatQueueEvents=require(a119_0xcc9a50(0x13b)),events=[a119_0xcc9a50(0x13d),a119_0xcc9a50(0x13e),a119_0xcc9a50(0x140)];function createListener(_0x29662d,_0x34073b){return function(_0x49e296){const _0x1904f2=a119_0x2545;_0x34073b[_0x1904f2(0x13a)](_0x29662d,_0x49e296);};}exports[a119_0xcc9a50(0x13c)]=function(_0x409bdc){const _0x10e883=a119_0xcc9a50;for(let _0x310cfe=0x0,_0x4cadf8=events['length'];_0x310cfe<_0x4cadf8;_0x310cfe++){const _0xb64ed6=events[_0x310cfe],_0x53623c=createListener(_0x10e883(0x13f)+_0xb64ed6,_0x409bdc);ChatQueueEvents['on'](_0xb64ed6,_0x53623c);}}; \ No newline at end of file diff --git a/server/api/chatQueue/index.js b/server/api/chatQueue/index.js index 38eef01..d8de0d0 100644 --- a/server/api/chatQueue/index.js +++ b/server/api/chatQueue/index.js @@ -1 +1 @@ -const a120_0x4c9f=['/:id','/:id/members','getMembers','get','getAgents','removeAgents','destroy','post','describe','removeTeams','put','/:id/teams','/describe','/:id/users','addAgents','addTeams','delete','exports','../../components/auth/service','isAuthenticated'];(function(_0x4cf3d2,_0x3fb331){const _0x4c9fb7=function(_0x139a0c){while(--_0x139a0c){_0x4cf3d2['push'](_0x4cf3d2['shift']());}};_0x4c9fb7(++_0x3fb331);}(a120_0x4c9f,0x190));const a120_0x139a=function(_0x4cf3d2,_0x3fb331){_0x4cf3d2=_0x4cf3d2-0x1e3;let _0x4c9fb7=a120_0x4c9f[_0x4cf3d2];return _0x4c9fb7;};const a120_0x52bda5=a120_0x139a;'use strict';const express=require('express'),router=express['Router'](),auth=require(a120_0x52bda5(0x1f5)),controller=require('./chatQueue.controller');router[a120_0x52bda5(0x1e6)]('/',auth[a120_0x52bda5(0x1f6)](),controller['index']),router[a120_0x52bda5(0x1e6)](a120_0x52bda5(0x1ef),auth['isAuthenticated'](),controller[a120_0x52bda5(0x1eb)]),router[a120_0x52bda5(0x1e6)](a120_0x52bda5(0x1e3),auth[a120_0x52bda5(0x1f6)](),controller['show']),router['get'](a120_0x52bda5(0x1e4),auth['isAuthenticated'](),controller[a120_0x52bda5(0x1e5)]),router[a120_0x52bda5(0x1e6)](a120_0x52bda5(0x1ee),auth[a120_0x52bda5(0x1f6)](),controller['getTeams']),router[a120_0x52bda5(0x1e6)](a120_0x52bda5(0x1f0),auth[a120_0x52bda5(0x1f6)](),controller[a120_0x52bda5(0x1e7)]),router['post']('/',auth[a120_0x52bda5(0x1f6)](),controller['create']),router[a120_0x52bda5(0x1ea)](a120_0x52bda5(0x1ee),auth[a120_0x52bda5(0x1f6)](),controller[a120_0x52bda5(0x1f2)]),router[a120_0x52bda5(0x1ea)](a120_0x52bda5(0x1f0),auth[a120_0x52bda5(0x1f6)](),controller[a120_0x52bda5(0x1f1)]),router[a120_0x52bda5(0x1ed)](a120_0x52bda5(0x1e3),auth[a120_0x52bda5(0x1f6)](),controller['update']),router[a120_0x52bda5(0x1f3)](a120_0x52bda5(0x1e3),auth[a120_0x52bda5(0x1f6)](),controller[a120_0x52bda5(0x1e9)]),router[a120_0x52bda5(0x1f3)](a120_0x52bda5(0x1ee),auth[a120_0x52bda5(0x1f6)](),controller[a120_0x52bda5(0x1ec)]),router[a120_0x52bda5(0x1f3)](a120_0x52bda5(0x1f0),auth['isAuthenticated'](),controller[a120_0x52bda5(0x1e8)]),module[a120_0x52bda5(0x1f4)]=router; \ No newline at end of file +const a120_0x123f=['express','addTeams','index','describe','getMembers','put','getAgents','getTeams','/describe','destroy','get','./chatQueue.controller','post','removeTeams','addAgents','Router','../../components/auth/service','delete','isAuthenticated','/:id/members','/:id','/:id/teams','/:id/users','removeAgents'];(function(_0x40ce3f,_0x1a8a8b){const _0x123f19=function(_0x456ab1){while(--_0x456ab1){_0x40ce3f['push'](_0x40ce3f['shift']());}};_0x123f19(++_0x1a8a8b);}(a120_0x123f,0x13d));const a120_0x456a=function(_0x40ce3f,_0x1a8a8b){_0x40ce3f=_0x40ce3f-0x6e;let _0x123f19=a120_0x123f[_0x40ce3f];return _0x123f19;};const a120_0xd417c4=a120_0x456a;'use strict';const express=require(a120_0xd417c4(0x81)),router=express[a120_0xd417c4(0x78)](),auth=require(a120_0xd417c4(0x79)),controller=require(a120_0xd417c4(0x74));router[a120_0xd417c4(0x73)]('/',auth[a120_0xd417c4(0x7b)](),controller[a120_0xd417c4(0x83)]),router['get'](a120_0xd417c4(0x71),auth[a120_0xd417c4(0x7b)](),controller[a120_0xd417c4(0x84)]),router['get'](a120_0xd417c4(0x7d),auth[a120_0xd417c4(0x7b)](),controller['show']),router[a120_0xd417c4(0x73)](a120_0xd417c4(0x7c),auth[a120_0xd417c4(0x7b)](),controller[a120_0xd417c4(0x85)]),router[a120_0xd417c4(0x73)](a120_0xd417c4(0x7e),auth[a120_0xd417c4(0x7b)](),controller[a120_0xd417c4(0x70)]),router[a120_0xd417c4(0x73)](a120_0xd417c4(0x7f),auth['isAuthenticated'](),controller[a120_0xd417c4(0x6f)]),router[a120_0xd417c4(0x75)]('/',auth[a120_0xd417c4(0x7b)](),controller['create']),router[a120_0xd417c4(0x75)]('/:id/teams',auth[a120_0xd417c4(0x7b)](),controller[a120_0xd417c4(0x82)]),router['post'](a120_0xd417c4(0x7f),auth[a120_0xd417c4(0x7b)](),controller[a120_0xd417c4(0x77)]),router[a120_0xd417c4(0x6e)](a120_0xd417c4(0x7d),auth[a120_0xd417c4(0x7b)](),controller['update']),router['delete'](a120_0xd417c4(0x7d),auth[a120_0xd417c4(0x7b)](),controller[a120_0xd417c4(0x72)]),router[a120_0xd417c4(0x7a)](a120_0xd417c4(0x7e),auth['isAuthenticated'](),controller[a120_0xd417c4(0x76)]),router[a120_0xd417c4(0x7a)]('/:id/users',auth[a120_0xd417c4(0x7b)](),controller[a120_0xd417c4(0x80)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.attributes.js b/server/api/chatQueueReport/chatQueueReport.attributes.js index f22535e..1ff25c4 100644 --- a/server/api/chatQueueReport/chatQueueReport.attributes.js +++ b/server/api/chatQueueReport/chatQueueReport.attributes.js @@ -1 +1 @@ -const a121_0x3ce0=['DATE','sequelize','STRING','exports'];(function(_0x54b71a,_0x2e0f0a){const _0x3ce001=function(_0x2e337e){while(--_0x2e337e){_0x54b71a['push'](_0x54b71a['shift']());}};_0x3ce001(++_0x2e0f0a);}(a121_0x3ce0,0x16a));const a121_0x2e33=function(_0x54b71a,_0x2e0f0a){_0x54b71a=_0x54b71a-0x1e9;let _0x3ce001=a121_0x3ce0[_0x54b71a];return _0x3ce001;};const a121_0x4ae1dc=a121_0x2e33;'use strict';const {DataTypes}=require(a121_0x4ae1dc(0x1ec)),attributes={'uniqueid':{'type':DataTypes[a121_0x4ae1dc(0x1e9)],'allowNull':![]},'from':{'type':DataTypes[a121_0x4ae1dc(0x1e9)]},'joinAt':{'type':DataTypes[a121_0x4ae1dc(0x1eb)]},'leaveAt':{'type':DataTypes['DATE']},'acceptAt':{'type':DataTypes[a121_0x4ae1dc(0x1eb)]},'exitAt':{'type':DataTypes['DATE']},'reason':{'type':DataTypes[a121_0x4ae1dc(0x1e9)]}};module[a121_0x4ae1dc(0x1ea)]['attributes']=attributes; \ No newline at end of file +const a121_0xbd6c=['DATE','exports','attributes','STRING','sequelize'];(function(_0x3870b7,_0x3a5da6){const _0xbd6caa=function(_0x184bb6){while(--_0x184bb6){_0x3870b7['push'](_0x3870b7['shift']());}};_0xbd6caa(++_0x3a5da6);}(a121_0xbd6c,0x78));const a121_0x184b=function(_0x3870b7,_0x3a5da6){_0x3870b7=_0x3870b7-0xab;let _0xbd6caa=a121_0xbd6c[_0x3870b7];return _0xbd6caa;};const a121_0x58ff32=a121_0x184b;'use strict';const {DataTypes}=require(a121_0x58ff32(0xaf)),attributes={'uniqueid':{'type':DataTypes[a121_0x58ff32(0xae)],'allowNull':![]},'from':{'type':DataTypes[a121_0x58ff32(0xae)]},'joinAt':{'type':DataTypes[a121_0x58ff32(0xab)]},'leaveAt':{'type':DataTypes[a121_0x58ff32(0xab)]},'acceptAt':{'type':DataTypes[a121_0x58ff32(0xab)]},'exitAt':{'type':DataTypes[a121_0x58ff32(0xab)]},'reason':{'type':DataTypes[a121_0x58ff32(0xae)]}};module[a121_0x58ff32(0xac)][a121_0x58ff32(0xad)]=attributes; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.controller.js b/server/api/chatQueueReport/chatQueueReport.controller.js index f2348f1..5179bbc 100644 --- a/server/api/chatQueueReport/chatQueueReport.controller.js +++ b/server/api/chatQueueReport/chatQueueReport.controller.js @@ -1 +1 @@ -const a122_0x7965=['include','count','ChatQueueReport','error','then','offset','key','undefined','json','body','includeAll','filter','filters','type','send','model','catch','pick','describe','show','query','../../components/parsers/qs','limit','sort','findOne','order','params','nolimit','fieldName','name','merge','length','findAll','intersection','fields','status','rawAttributes','options','lodash','create','keys','attributes','where','VIRTUAL','sequelize','map'];(function(_0x428fa9,_0x30aa09){const _0x7965ca=function(_0x475cea){while(--_0x475cea){_0x428fa9['push'](_0x428fa9['shift']());}};_0x7965ca(++_0x30aa09);}(a122_0x7965,0x1f3));const a122_0x475c=function(_0x428fa9,_0x30aa09){_0x428fa9=_0x428fa9-0x1c5;let _0x7965ca=a122_0x7965[_0x428fa9];return _0x7965ca;};const a122_0xd6f0e0=a122_0x475c;'use strict';const _=require(a122_0xd6f0e0(0x1f2)),qs=require(a122_0xd6f0e0(0x1e1)),logger=require('../../config/logger')('api'),{db}=require('../../mysqldb'),{Op}=require(a122_0xd6f0e0(0x1ca));function respondWithResult(_0xbb4398,_0x4cdfcd){return _0x4cdfcd=_0x4cdfcd||0xc8,function(_0x144b58){const _0x285235=a122_0x475c;if(_0x144b58)return _0xbb4398['status'](_0x4cdfcd)[_0x285235(0x1d4)](_0x144b58);};}function respondWithFilteredResult(_0x4f1998,_0x5ec890){return function(_0x171260){const _0x54d49d=a122_0x475c;if(_0x171260){const _0x211b16=_0x171260[_0x54d49d(0x1cd)],_0x5099b9=_0x5ec890[_0x54d49d(0x1d1)];let _0x54a2d1=_0x5ec890[_0x54d49d(0x1d1)]+_0x5ec890[_0x54d49d(0x1e2)],_0x595b5e;return _0x54a2d1>=_0x211b16?(_0x54a2d1=_0x211b16,_0x595b5e=0xc8):_0x595b5e=0xce,_0x4f1998[_0x54d49d(0x1ef)](_0x595b5e),_0x4f1998['set']('Content-Range',_0x5099b9+'-'+_0x54a2d1+'/'+_0x211b16)[_0x54d49d(0x1d4)](_0x171260);}return null;};}function saveUpdates(_0x5e4f9e){return function(_0x10f021){if(_0x10f021)return _0x10f021['update'](_0x5e4f9e)['then'](function(_0x430588){return _0x430588;});return null;};}function removeEntity(_0x5afc99){return function(_0x28e0b2){const _0x31774a=a122_0x475c;if(_0x28e0b2)return _0x28e0b2['destroy']()[_0x31774a(0x1d0)](function(){const _0x5dcc38=_0x31774a;_0x5afc99[_0x5dcc38(0x1ef)](0xcc)['end']();});};}function handleEntityNotFound(_0x2cdf91){return function(_0x322a83){return!_0x322a83&&_0x2cdf91['sendStatus'](0x194),_0x322a83;};}function handleError(_0x30db62,_0x21b0ac){return _0x21b0ac=_0x21b0ac||0x1f4,function(_0x5d9020){const _0x497119=a122_0x475c;logger[_0x497119(0x1cf)](_0x5d9020['stack']),_0x5d9020['name']&&delete _0x5d9020['name'],_0x30db62[_0x497119(0x1ef)](_0x21b0ac)[_0x497119(0x1da)](_0x5d9020);};}exports['index']=function(_0x36f87a,_0x5ed6d8){const _0x561230=a122_0xd6f0e0;let _0x395f50={};const _0x47ea12={},_0x57beef={'count':0x0,'rows':[]},_0x19c2e7=_[_0x561230(0x1cb)](db[_0x561230(0x1ce)][_0x561230(0x1f0)],function(_0x42c7e6){const _0x45aa94=_0x561230;return{'name':_0x42c7e6[_0x45aa94(0x1e8)],'type':_0x42c7e6[_0x45aa94(0x1d9)][_0x45aa94(0x1d2)]};});_0x47ea12[_0x561230(0x1db)]=_[_0x561230(0x1cb)](_0x19c2e7,_0x561230(0x1e9)),_0x47ea12[_0x561230(0x1e0)]=_[_0x561230(0x1c6)](_0x36f87a[_0x561230(0x1e0)]),_0x47ea12[_0x561230(0x1d8)]=_[_0x561230(0x1ed)](_0x47ea12['model'],_0x47ea12[_0x561230(0x1e0)]),_0x395f50[_0x561230(0x1c7)]=_[_0x561230(0x1ed)](_0x47ea12[_0x561230(0x1db)],qs[_0x561230(0x1ee)](_0x36f87a[_0x561230(0x1e0)]['fields'])),_0x395f50[_0x561230(0x1c7)]=_0x395f50['attributes']['length']?_0x395f50[_0x561230(0x1c7)]:_0x47ea12[_0x561230(0x1db)];typeof _0x36f87a[_0x561230(0x1e0)][_0x561230(0x1e7)]===_0x561230(0x1d3)&&(_0x395f50[_0x561230(0x1e2)]=qs[_0x561230(0x1e2)](_0x36f87a[_0x561230(0x1e0)]['limit']),_0x395f50[_0x561230(0x1d1)]=qs[_0x561230(0x1d1)](_0x36f87a[_0x561230(0x1e0)][_0x561230(0x1d1)]));_0x395f50[_0x561230(0x1e5)]=qs[_0x561230(0x1e3)](_0x36f87a['query'][_0x561230(0x1e3)]),_0x395f50[_0x561230(0x1c8)]=qs[_0x561230(0x1d8)](_[_0x561230(0x1dd)](_0x36f87a[_0x561230(0x1e0)],_0x47ea12[_0x561230(0x1d8)]),_0x19c2e7);_0x36f87a[_0x561230(0x1e0)][_0x561230(0x1d7)]&&(_0x395f50[_0x561230(0x1c8)]=_['merge'](_0x395f50[_0x561230(0x1c8)],{[Op['or']]:_['map'](_0x19c2e7,function(_0x20cf67){const _0x4b5a67=_0x561230;if(_0x20cf67[_0x4b5a67(0x1d9)]!==_0x4b5a67(0x1c9)){const _0x2b6ca9={};return _0x2b6ca9[_0x20cf67[_0x4b5a67(0x1e9)]]={[Op['like']]:'%'+_0x36f87a[_0x4b5a67(0x1e0)][_0x4b5a67(0x1d7)]+'%'},_0x2b6ca9;}})}));_0x395f50=_[_0x561230(0x1ea)]({},_0x395f50,_0x36f87a['options']);const _0x5ab4f3={'where':_0x395f50[_0x561230(0x1c8)]};return db[_0x561230(0x1ce)]['count'](_0x5ab4f3)[_0x561230(0x1d0)](function(_0x133807){const _0x322a8a=_0x561230;return _0x57beef[_0x322a8a(0x1cd)]=_0x133807,_0x36f87a[_0x322a8a(0x1e0)][_0x322a8a(0x1d6)]&&(_0x395f50['include']=[{'all':!![]}]),db[_0x322a8a(0x1ce)][_0x322a8a(0x1ec)](_0x395f50);})[_0x561230(0x1d0)](function(_0x2f3743){return _0x57beef['rows']=_0x2f3743,_0x57beef;})[_0x561230(0x1d0)](respondWithFilteredResult(_0x5ed6d8,_0x395f50))[_0x561230(0x1dc)](handleError(_0x5ed6d8,null));},exports[a122_0xd6f0e0(0x1df)]=function(_0x11e498,_0x50344b){const _0x593071=a122_0xd6f0e0;let _0x346c27={'raw':!![],'where':{'id':_0x11e498[_0x593071(0x1e6)]['id']}};const _0xf9a6f5={};return _0xf9a6f5[_0x593071(0x1db)]=_[_0x593071(0x1c6)](db[_0x593071(0x1ce)][_0x593071(0x1f0)]),_0xf9a6f5['query']=_['keys'](_0x11e498[_0x593071(0x1e0)]),_0xf9a6f5['filters']=_[_0x593071(0x1ed)](_0xf9a6f5[_0x593071(0x1db)],_0xf9a6f5[_0x593071(0x1e0)]),_0x346c27[_0x593071(0x1c7)]=_[_0x593071(0x1ed)](_0xf9a6f5[_0x593071(0x1db)],qs[_0x593071(0x1ee)](_0x11e498[_0x593071(0x1e0)]['fields'])),_0x346c27['attributes']=_0x346c27[_0x593071(0x1c7)][_0x593071(0x1eb)]?_0x346c27[_0x593071(0x1c7)]:_0xf9a6f5[_0x593071(0x1db)],_0x11e498['query'][_0x593071(0x1d6)]&&(_0x346c27[_0x593071(0x1cc)]=[{'all':!![]}]),_0x346c27=_[_0x593071(0x1ea)]({},_0x346c27,_0x11e498[_0x593071(0x1f1)]),db[_0x593071(0x1ce)][_0x593071(0x1e4)](_0x346c27)[_0x593071(0x1d0)](handleEntityNotFound(_0x50344b,null))['then'](respondWithResult(_0x50344b,null))[_0x593071(0x1dc)](handleError(_0x50344b,null));},exports['create']=function(_0x57cf92,_0x194561){const _0x3541ed=a122_0xd6f0e0;return db[_0x3541ed(0x1ce)][_0x3541ed(0x1c5)](_0x57cf92[_0x3541ed(0x1d5)],{})[_0x3541ed(0x1d0)](respondWithResult(_0x194561,0xc9))['catch'](handleError(_0x194561,null));},exports['update']=function(_0x2a5fe0,_0x2b34d0){const _0x5f5979=a122_0xd6f0e0;return _0x2a5fe0[_0x5f5979(0x1d5)]['id']&&delete _0x2a5fe0['body']['id'],db['ChatQueueReport']['findOne']({'where':{'id':_0x2a5fe0[_0x5f5979(0x1e6)]['id']}})['then'](handleEntityNotFound(_0x2b34d0,null))[_0x5f5979(0x1d0)](saveUpdates(_0x2a5fe0[_0x5f5979(0x1d5)],null))[_0x5f5979(0x1d0)](respondWithResult(_0x2b34d0,null))['catch'](handleError(_0x2b34d0,null));},exports['destroy']=function(_0x143a12,_0x33b119){const _0x2bab65=a122_0xd6f0e0;return db['ChatQueueReport'][_0x2bab65(0x1e4)]({'where':{'id':_0x143a12[_0x2bab65(0x1e6)]['id']}})[_0x2bab65(0x1d0)](handleEntityNotFound(_0x33b119,null))[_0x2bab65(0x1d0)](removeEntity(_0x33b119,null))[_0x2bab65(0x1dc)](handleError(_0x33b119,null));},exports[a122_0xd6f0e0(0x1de)]=function(_0x3c44ba,_0x2cbc32){const _0x3ee0f9=a122_0xd6f0e0;return db[_0x3ee0f9(0x1ce)][_0x3ee0f9(0x1de)]()[_0x3ee0f9(0x1d0)](respondWithResult(_0x2cbc32,null))[_0x3ee0f9(0x1dc)](handleError(_0x2cbc32,null));}; \ No newline at end of file +const a122_0x85cf=['order','pick','body','offset','findOne','filter','where','options','show','api','length','error','name','../../mysqldb','findAll','map','end','then','stack','send','nolimit','../../config/logger','attributes','sendStatus','count','json','like','update','create','catch','sequelize','limit','Content-Range','rows','key','intersection','destroy','status','ChatQueueReport','params','fields','set','include','../../components/parsers/qs','index','includeAll','sort','model','keys','rawAttributes','lodash','query','fieldName','filters'];(function(_0x33886a,_0x527c20){const _0x85cf29=function(_0x2a373c){while(--_0x2a373c){_0x33886a['push'](_0x33886a['shift']());}};_0x85cf29(++_0x527c20);}(a122_0x85cf,0x147));const a122_0x2a37=function(_0x33886a,_0x527c20){_0x33886a=_0x33886a-0x13b;let _0x85cf29=a122_0x85cf[_0x33886a];return _0x85cf29;};const a122_0x492205=a122_0x2a37;'use strict';const _=require(a122_0x492205(0x16a)),qs=require(a122_0x492205(0x163)),logger=require(a122_0x492205(0x14d))(a122_0x492205(0x141)),{db}=require(a122_0x492205(0x145)),{Op}=require(a122_0x492205(0x156));function respondWithResult(_0x446e41,_0x4dd4d0){return _0x4dd4d0=_0x4dd4d0||0xc8,function(_0x10f076){const _0x1b9dcc=a122_0x2a37;if(_0x10f076)return _0x446e41[_0x1b9dcc(0x15d)](_0x4dd4d0)['json'](_0x10f076);};}function respondWithFilteredResult(_0x449de0,_0x3d5ede){return function(_0x17ec5e){const _0x2f297b=a122_0x2a37;if(_0x17ec5e){const _0x17776e=_0x17ec5e[_0x2f297b(0x150)],_0x28fe70=_0x3d5ede[_0x2f297b(0x13b)];let _0x56ca4f=_0x3d5ede[_0x2f297b(0x13b)]+_0x3d5ede[_0x2f297b(0x157)],_0x5a39af;return _0x56ca4f>=_0x17776e?(_0x56ca4f=_0x17776e,_0x5a39af=0xc8):_0x5a39af=0xce,_0x449de0['status'](_0x5a39af),_0x449de0[_0x2f297b(0x161)](_0x2f297b(0x158),_0x28fe70+'-'+_0x56ca4f+'/'+_0x17776e)[_0x2f297b(0x151)](_0x17ec5e);}return null;};}function saveUpdates(_0x2be822){return function(_0x4b9382){const _0x10baf8=a122_0x2a37;if(_0x4b9382)return _0x4b9382[_0x10baf8(0x153)](_0x2be822)['then'](function(_0x43276e){return _0x43276e;});return null;};}function removeEntity(_0x3c08d1){return function(_0x5b4b77){const _0x2f7caa=a122_0x2a37;if(_0x5b4b77)return _0x5b4b77[_0x2f7caa(0x15c)]()[_0x2f7caa(0x149)](function(){const _0x3d94f7=_0x2f7caa;_0x3c08d1[_0x3d94f7(0x15d)](0xcc)[_0x3d94f7(0x148)]();});};}function handleEntityNotFound(_0x223cf3){return function(_0x19e92e){const _0x2374d8=a122_0x2a37;return!_0x19e92e&&_0x223cf3[_0x2374d8(0x14f)](0x194),_0x19e92e;};}function handleError(_0x3f1ce6,_0x15ac59){return _0x15ac59=_0x15ac59||0x1f4,function(_0x1f321b){const _0x435dcc=a122_0x2a37;logger[_0x435dcc(0x143)](_0x1f321b[_0x435dcc(0x14a)]),_0x1f321b[_0x435dcc(0x144)]&&delete _0x1f321b['name'],_0x3f1ce6[_0x435dcc(0x15d)](_0x15ac59)[_0x435dcc(0x14b)](_0x1f321b);};}exports[a122_0x492205(0x164)]=function(_0x478b76,_0x57b01c){const _0x3a660e=a122_0x492205;let _0x1b2998={};const _0x2828cb={},_0x7fc2d={'count':0x0,'rows':[]},_0x36e06c=_[_0x3a660e(0x147)](db[_0x3a660e(0x15e)][_0x3a660e(0x169)],function(_0x51b3a7){const _0x345bf2=_0x3a660e;return{'name':_0x51b3a7[_0x345bf2(0x16c)],'type':_0x51b3a7['type'][_0x345bf2(0x15a)]};});_0x2828cb['model']=_[_0x3a660e(0x147)](_0x36e06c,_0x3a660e(0x144)),_0x2828cb[_0x3a660e(0x16b)]=_[_0x3a660e(0x168)](_0x478b76['query']),_0x2828cb['filters']=_['intersection'](_0x2828cb[_0x3a660e(0x167)],_0x2828cb[_0x3a660e(0x16b)]),_0x1b2998['attributes']=_['intersection'](_0x2828cb['model'],qs[_0x3a660e(0x160)](_0x478b76[_0x3a660e(0x16b)][_0x3a660e(0x160)])),_0x1b2998[_0x3a660e(0x14e)]=_0x1b2998[_0x3a660e(0x14e)][_0x3a660e(0x142)]?_0x1b2998[_0x3a660e(0x14e)]:_0x2828cb[_0x3a660e(0x167)];typeof _0x478b76[_0x3a660e(0x16b)][_0x3a660e(0x14c)]==='undefined'&&(_0x1b2998[_0x3a660e(0x157)]=qs[_0x3a660e(0x157)](_0x478b76[_0x3a660e(0x16b)]['limit']),_0x1b2998['offset']=qs['offset'](_0x478b76[_0x3a660e(0x16b)][_0x3a660e(0x13b)]));_0x1b2998[_0x3a660e(0x16e)]=qs[_0x3a660e(0x166)](_0x478b76['query'][_0x3a660e(0x166)]),_0x1b2998[_0x3a660e(0x13e)]=qs[_0x3a660e(0x16d)](_[_0x3a660e(0x16f)](_0x478b76['query'],_0x2828cb['filters']),_0x36e06c);_0x478b76[_0x3a660e(0x16b)][_0x3a660e(0x13d)]&&(_0x1b2998[_0x3a660e(0x13e)]=_['merge'](_0x1b2998[_0x3a660e(0x13e)],{[Op['or']]:_[_0x3a660e(0x147)](_0x36e06c,function(_0x49e61e){const _0x1bf9e6=_0x3a660e;if(_0x49e61e['type']!=='VIRTUAL'){const _0xbd9135={};return _0xbd9135[_0x49e61e[_0x1bf9e6(0x144)]]={[Op[_0x1bf9e6(0x152)]]:'%'+_0x478b76['query']['filter']+'%'},_0xbd9135;}})}));_0x1b2998=_['merge']({},_0x1b2998,_0x478b76[_0x3a660e(0x13f)]);const _0x4e073d={'where':_0x1b2998[_0x3a660e(0x13e)]};return db['ChatQueueReport']['count'](_0x4e073d)[_0x3a660e(0x149)](function(_0x347c35){const _0x2fb883=_0x3a660e;return _0x7fc2d[_0x2fb883(0x150)]=_0x347c35,_0x478b76['query'][_0x2fb883(0x165)]&&(_0x1b2998['include']=[{'all':!![]}]),db[_0x2fb883(0x15e)][_0x2fb883(0x146)](_0x1b2998);})['then'](function(_0x1e473b){const _0x30e33c=_0x3a660e;return _0x7fc2d[_0x30e33c(0x159)]=_0x1e473b,_0x7fc2d;})[_0x3a660e(0x149)](respondWithFilteredResult(_0x57b01c,_0x1b2998))[_0x3a660e(0x155)](handleError(_0x57b01c,null));},exports[a122_0x492205(0x140)]=function(_0x515bee,_0x4cb159){const _0x4e8a6b=a122_0x492205;let _0x94e9de={'raw':!![],'where':{'id':_0x515bee[_0x4e8a6b(0x15f)]['id']}};const _0x1888d8={};return _0x1888d8[_0x4e8a6b(0x167)]=_['keys'](db[_0x4e8a6b(0x15e)][_0x4e8a6b(0x169)]),_0x1888d8[_0x4e8a6b(0x16b)]=_[_0x4e8a6b(0x168)](_0x515bee[_0x4e8a6b(0x16b)]),_0x1888d8[_0x4e8a6b(0x16d)]=_['intersection'](_0x1888d8[_0x4e8a6b(0x167)],_0x1888d8['query']),_0x94e9de['attributes']=_[_0x4e8a6b(0x15b)](_0x1888d8[_0x4e8a6b(0x167)],qs[_0x4e8a6b(0x160)](_0x515bee['query'][_0x4e8a6b(0x160)])),_0x94e9de[_0x4e8a6b(0x14e)]=_0x94e9de[_0x4e8a6b(0x14e)][_0x4e8a6b(0x142)]?_0x94e9de[_0x4e8a6b(0x14e)]:_0x1888d8['model'],_0x515bee[_0x4e8a6b(0x16b)][_0x4e8a6b(0x165)]&&(_0x94e9de[_0x4e8a6b(0x162)]=[{'all':!![]}]),_0x94e9de=_['merge']({},_0x94e9de,_0x515bee[_0x4e8a6b(0x13f)]),db[_0x4e8a6b(0x15e)]['findOne'](_0x94e9de)[_0x4e8a6b(0x149)](handleEntityNotFound(_0x4cb159,null))[_0x4e8a6b(0x149)](respondWithResult(_0x4cb159,null))[_0x4e8a6b(0x155)](handleError(_0x4cb159,null));},exports[a122_0x492205(0x154)]=function(_0x2cd30b,_0x1da873){const _0x5624a2=a122_0x492205;return db[_0x5624a2(0x15e)][_0x5624a2(0x154)](_0x2cd30b[_0x5624a2(0x170)],{})[_0x5624a2(0x149)](respondWithResult(_0x1da873,0xc9))[_0x5624a2(0x155)](handleError(_0x1da873,null));},exports['update']=function(_0x3a1e59,_0x10ba57){const _0x34119b=a122_0x492205;return _0x3a1e59[_0x34119b(0x170)]['id']&&delete _0x3a1e59[_0x34119b(0x170)]['id'],db[_0x34119b(0x15e)][_0x34119b(0x13c)]({'where':{'id':_0x3a1e59['params']['id']}})[_0x34119b(0x149)](handleEntityNotFound(_0x10ba57,null))[_0x34119b(0x149)](saveUpdates(_0x3a1e59['body'],null))[_0x34119b(0x149)](respondWithResult(_0x10ba57,null))[_0x34119b(0x155)](handleError(_0x10ba57,null));},exports[a122_0x492205(0x15c)]=function(_0x2848e8,_0x1cde81){const _0x1c0ab4=a122_0x492205;return db[_0x1c0ab4(0x15e)]['findOne']({'where':{'id':_0x2848e8[_0x1c0ab4(0x15f)]['id']}})[_0x1c0ab4(0x149)](handleEntityNotFound(_0x1cde81,null))[_0x1c0ab4(0x149)](removeEntity(_0x1cde81,null))['catch'](handleError(_0x1cde81,null));},exports['describe']=function(_0x312e51,_0x5c1b46){const _0xa42624=a122_0x492205;return db[_0xa42624(0x15e)]['describe']()[_0xa42624(0x149)](respondWithResult(_0x5c1b46,null))[_0xa42624(0x155)](handleError(_0x5c1b46,null));}; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.model.js b/server/api/chatQueueReport/chatQueueReport.model.js index 9aa814a..63e2fe2 100644 --- a/server/api/chatQueueReport/chatQueueReport.model.js +++ b/server/api/chatQueueReport/chatQueueReport.model.js @@ -1 +1 @@ -const a123_0x2650=['ChatQueueReport','exports','./chatQueueReport.options','./chatQueueReport.attributes','function','sequelize'];(function(_0x42ec88,_0x1de7ef){const _0x265082=function(_0x558d44){while(--_0x558d44){_0x42ec88['push'](_0x42ec88['shift']());}};_0x265082(++_0x1de7ef);}(a123_0x2650,0xf1));const a123_0x558d=function(_0x42ec88,_0x1de7ef){_0x42ec88=_0x42ec88-0x118;let _0x265082=a123_0x2650[_0x42ec88];return _0x265082;};const a123_0x3bb30f=a123_0x558d;'use strict';const {Model}=require(a123_0x3bb30f(0x11c)),{attributes}=require(a123_0x3bb30f(0x11a)),{options}=require(a123_0x3bb30f(0x119));class ChatQueueReport extends Model{}function init(_0x37cc38,_0x3e7b00){const _0x5782c9=a123_0x3bb30f,_0x203c5d=options(_0x37cc38),_0xdbf26=typeof _0x3e7b00===_0x5782c9(0x11b)?_0x3e7b00(_0x203c5d):_0x203c5d;return ChatQueueReport['init'](attributes,_0xdbf26),ChatQueueReport;}module[a123_0x3bb30f(0x118)][a123_0x3bb30f(0x11d)]=ChatQueueReport,module['exports']['init']=init; \ No newline at end of file +const a123_0x543a=['function','exports','./chatQueueReport.options','./chatQueueReport.attributes','ChatQueueReport','sequelize'];(function(_0x29f32c,_0x4f489e){const _0x543a91=function(_0x501198){while(--_0x501198){_0x29f32c['push'](_0x29f32c['shift']());}};_0x543a91(++_0x4f489e);}(a123_0x543a,0x1f4));const a123_0x5011=function(_0x29f32c,_0x4f489e){_0x29f32c=_0x29f32c-0x1ac;let _0x543a91=a123_0x543a[_0x29f32c];return _0x543a91;};const a123_0x4300c0=a123_0x5011;'use strict';const {Model}=require(a123_0x4300c0(0x1af)),{attributes}=require(a123_0x4300c0(0x1ad)),{options}=require(a123_0x4300c0(0x1ac));class ChatQueueReport extends Model{}function init(_0x52e645,_0x376828){const _0xdebe29=a123_0x4300c0,_0x22148f=options(_0x52e645),_0x419310=typeof _0x376828===_0xdebe29(0x1b0)?_0x376828(_0x22148f):_0x22148f;return ChatQueueReport['init'](attributes,_0x419310),ChatQueueReport;}module[a123_0x4300c0(0x1b1)][a123_0x4300c0(0x1ae)]=ChatQueueReport,module[a123_0x4300c0(0x1b1)]['init']=init; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.options.js b/server/api/chatQueueReport/chatQueueReport.options.js index 31054f3..3e54d54 100644 --- a/server/api/chatQueueReport/chatQueueReport.options.js +++ b/server/api/chatQueueReport/chatQueueReport.options.js @@ -1 +1 @@ -var a124_0x2360=['options','exports','report_chat_queue','uniqueid'];(function(_0x3447de,_0x396229){var _0x236011=function(_0x214c0f){while(--_0x214c0f){_0x3447de['push'](_0x3447de['shift']());}};_0x236011(++_0x396229);}(a124_0x2360,0x1c2));var a124_0x214c=function(_0x3447de,_0x396229){_0x3447de=_0x3447de-0x73;var _0x236011=a124_0x2360[_0x3447de];return _0x236011;};var a124_0x36f739=a124_0x214c;function options(_0x5e1019){var _0x4d5100=a124_0x214c;return{'sequelize':_0x5e1019,'tableName':_0x4d5100(0x73),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x4d5100(0x74)]}],'timestamps':!![]};}module[a124_0x36f739(0x76)][a124_0x36f739(0x75)]=options; \ No newline at end of file +var a124_0x2f2c=['exports','report_chat_queue','uniqueid','options'];(function(_0xed57c9,_0x16ee86){var _0x2f2c02=function(_0x29a014){while(--_0x29a014){_0xed57c9['push'](_0xed57c9['shift']());}};_0x2f2c02(++_0x16ee86);}(a124_0x2f2c,0x1a2));var a124_0x29a0=function(_0xed57c9,_0x16ee86){_0xed57c9=_0xed57c9-0x1c4;var _0x2f2c02=a124_0x2f2c[_0xed57c9];return _0x2f2c02;};var a124_0x484230=a124_0x29a0;function options(_0x39bec5){var _0x383f02=a124_0x29a0;return{'sequelize':_0x39bec5,'tableName':_0x383f02(0x1c7),'paranoid':![],'indexes':[{'name':_0x383f02(0x1c4),'fields':['uniqueid']}],'timestamps':!![]};}module[a124_0x484230(0x1c6)][a124_0x484230(0x1c5)]=options; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.rpc.js b/server/api/chatQueueReport/chatQueueReport.rpc.js index e7a3755..c4092ad 100644 --- a/server/api/chatQueueReport/chatQueueReport.rpc.js +++ b/server/api/chatQueueReport/chatQueueReport.rpc.js @@ -1 +1 @@ -const a125_0x2826=['options','catch','stringify','../../mysqldb','body','ChatQueueReport','limit','attributes','message','error','debug','info','UpdateChatQueueReport','raw','then','update','CreateChatQueueReport','rpc'];(function(_0x161c95,_0xb3ce0e){const _0x2826ec=function(_0x466d5e){while(--_0x466d5e){_0x161c95['push'](_0x161c95['shift']());}};_0x2826ec(++_0xb3ce0e);}(a125_0x2826,0x1e0));const a125_0x466d=function(_0x161c95,_0xb3ce0e){_0x161c95=_0x161c95-0x126;let _0x2826ec=a125_0x2826[_0x161c95];return _0x2826ec;};const a125_0x4294a7=a125_0x466d;'use strict';const db=require(a125_0x4294a7(0x12f))['db'],logger=require('../../config/logger')(a125_0x4294a7(0x12b));exports[a125_0x4294a7(0x12a)]=function(_0x5af3fa){const _0x576d4a=this;return new Promise(function(_0x3a7b55,_0x184351){const _0x2f4c45=a125_0x466d;return db[_0x2f4c45(0x131)]['create'](_0x5af3fa[_0x2f4c45(0x130)],{'raw':_0x5af3fa[_0x2f4c45(0x12c)]?_0x5af3fa[_0x2f4c45(0x12c)][_0x2f4c45(0x127)]===undefined?!![]:![]:!![]})[_0x2f4c45(0x128)](function(_0x3757a9){const _0x1ea88d=_0x2f4c45;logger[_0x1ea88d(0x137)](_0x1ea88d(0x12a),_0x5af3fa),logger[_0x1ea88d(0x136)](_0x1ea88d(0x12a),_0x5af3fa,JSON['stringify'](_0x3757a9)),_0x3a7b55(_0x3757a9);})[_0x2f4c45(0x12d)](function(_0xaa49){const _0x30001d=_0x2f4c45;logger['error'](_0x30001d(0x12a),_0xaa49[_0x30001d(0x134)],_0x5af3fa),_0x184351(_0x576d4a[_0x30001d(0x135)](0x1f4,_0xaa49[_0x30001d(0x134)]));});});},exports[a125_0x4294a7(0x126)]=function(_0xa2ef69){const _0x279193=this;return new Promise(function(_0x2cb7bf,_0x45e74a){const _0x52c2e7=a125_0x466d;return db[_0x52c2e7(0x131)][_0x52c2e7(0x129)](_0xa2ef69['body'],{'raw':_0xa2ef69[_0x52c2e7(0x12c)]?_0xa2ef69[_0x52c2e7(0x12c)]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xa2ef69[_0x52c2e7(0x12c)]?_0xa2ef69[_0x52c2e7(0x12c)]['where']||null:null,'attributes':_0xa2ef69[_0x52c2e7(0x12c)]?_0xa2ef69[_0x52c2e7(0x12c)][_0x52c2e7(0x133)]||null:null,'limit':_0xa2ef69[_0x52c2e7(0x12c)]?_0xa2ef69[_0x52c2e7(0x12c)][_0x52c2e7(0x132)]||null:null})['then'](function(_0x51202a){const _0x119a40=_0x52c2e7;logger[_0x119a40(0x137)](_0x119a40(0x126),_0xa2ef69),logger['debug'](_0x119a40(0x126),_0xa2ef69,JSON[_0x119a40(0x12e)](_0x51202a)),_0x2cb7bf(_0x51202a);})[_0x52c2e7(0x12d)](function(_0x3d5601){const _0x9552ad=_0x52c2e7;logger[_0x9552ad(0x135)](_0x9552ad(0x126),_0x3d5601[_0x9552ad(0x134)],_0xa2ef69),_0x45e74a(_0x279193[_0x9552ad(0x135)](0x1f4,_0x3d5601[_0x9552ad(0x134)]));});});}; \ No newline at end of file +const a125_0x278b=['UpdateChatQueueReport','message','error','catch','CreateChatQueueReport','create','debug','info','limit','then','stringify','attributes','raw','../../config/logger','where','options','ChatQueueReport','body'];(function(_0x8b69a1,_0x459480){const _0x278bf0=function(_0x5f2f7c){while(--_0x5f2f7c){_0x8b69a1['push'](_0x8b69a1['shift']());}};_0x278bf0(++_0x459480);}(a125_0x278b,0xfa));const a125_0x5f2f=function(_0x8b69a1,_0x459480){_0x8b69a1=_0x8b69a1-0x16a;let _0x278bf0=a125_0x278b[_0x8b69a1];return _0x278bf0;};const a125_0x3f18c5=a125_0x5f2f;'use strict';const db=require('../../mysqldb')['db'],logger=require(a125_0x3f18c5(0x179))('rpc');exports[a125_0x3f18c5(0x170)]=function(_0x4fba3c){const _0x251842=this;return new Promise(function(_0x5419f9,_0x2f315c){const _0x5b4417=a125_0x5f2f;return db[_0x5b4417(0x16a)][_0x5b4417(0x171)](_0x4fba3c[_0x5b4417(0x16b)],{'raw':_0x4fba3c['options']?_0x4fba3c[_0x5b4417(0x17b)][_0x5b4417(0x178)]===undefined?!![]:![]:!![]})['then'](function(_0x454237){const _0x2ae40b=_0x5b4417;logger['info']('CreateChatQueueReport',_0x4fba3c),logger[_0x2ae40b(0x172)](_0x2ae40b(0x170),_0x4fba3c,JSON[_0x2ae40b(0x176)](_0x454237)),_0x5419f9(_0x454237);})[_0x5b4417(0x16f)](function(_0x549952){const _0x2ad208=_0x5b4417;logger[_0x2ad208(0x16e)](_0x2ad208(0x170),_0x549952[_0x2ad208(0x16d)],_0x4fba3c),_0x2f315c(_0x251842[_0x2ad208(0x16e)](0x1f4,_0x549952[_0x2ad208(0x16d)]));});});},exports[a125_0x3f18c5(0x16c)]=function(_0x5c036a){const _0x12019b=this;return new Promise(function(_0x54ec17,_0x351294){const _0x596a08=a125_0x5f2f;return db[_0x596a08(0x16a)]['update'](_0x5c036a[_0x596a08(0x16b)],{'raw':_0x5c036a[_0x596a08(0x17b)]?_0x5c036a[_0x596a08(0x17b)][_0x596a08(0x178)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5c036a[_0x596a08(0x17b)]?_0x5c036a['options'][_0x596a08(0x17a)]||null:null,'attributes':_0x5c036a[_0x596a08(0x17b)]?_0x5c036a[_0x596a08(0x17b)][_0x596a08(0x177)]||null:null,'limit':_0x5c036a[_0x596a08(0x17b)]?_0x5c036a[_0x596a08(0x17b)][_0x596a08(0x174)]||null:null})[_0x596a08(0x175)](function(_0x25ba5d){const _0xb65d92=_0x596a08;logger[_0xb65d92(0x173)](_0xb65d92(0x16c),_0x5c036a),logger[_0xb65d92(0x172)]('UpdateChatQueueReport',_0x5c036a,JSON[_0xb65d92(0x176)](_0x25ba5d)),_0x54ec17(_0x25ba5d);})[_0x596a08(0x16f)](function(_0x6305aa){const _0x1aa5a7=_0x596a08;logger['error']('UpdateChatQueueReport',_0x6305aa[_0x1aa5a7(0x16d)],_0x5c036a),_0x351294(_0x12019b[_0x1aa5a7(0x16e)](0x1f4,_0x6305aa[_0x1aa5a7(0x16d)]));});});}; \ No newline at end of file diff --git a/server/api/chatQueueReport/index.js b/server/api/chatQueueReport/index.js index 464801a..286d861 100644 --- a/server/api/chatQueueReport/index.js +++ b/server/api/chatQueueReport/index.js @@ -1 +1 @@ -const a126_0x1b4e=['Router','index','describe','./chatQueueReport.controller','exports','put','update','get','delete','/describe','/:id','isAuthenticated','create','express','show'];(function(_0x2ec6a3,_0x1b574a){const _0x1b4e8c=function(_0x526a93){while(--_0x526a93){_0x2ec6a3['push'](_0x2ec6a3['shift']());}};_0x1b4e8c(++_0x1b574a);}(a126_0x1b4e,0x199));const a126_0x526a=function(_0x2ec6a3,_0x1b574a){_0x2ec6a3=_0x2ec6a3-0x1e3;let _0x1b4e8c=a126_0x1b4e[_0x2ec6a3];return _0x1b4e8c;};const a126_0x3c2391=a126_0x526a;'use strict';const express=require(a126_0x3c2391(0x1ec)),router=express[a126_0x3c2391(0x1ee)](),auth=require('../../components/auth/service'),controller=require(a126_0x3c2391(0x1f1));router['get']('/',auth[a126_0x3c2391(0x1ea)](),controller[a126_0x3c2391(0x1ef)]),router['get'](a126_0x3c2391(0x1e8),auth['isAuthenticated'](),controller[a126_0x3c2391(0x1f0)]),router[a126_0x3c2391(0x1e6)](a126_0x3c2391(0x1e9),auth[a126_0x3c2391(0x1ea)](),controller[a126_0x3c2391(0x1ed)]),router['post']('/',auth[a126_0x3c2391(0x1ea)](),controller[a126_0x3c2391(0x1eb)]),router[a126_0x3c2391(0x1e4)](a126_0x3c2391(0x1e9),auth[a126_0x3c2391(0x1ea)](),controller[a126_0x3c2391(0x1e5)]),router[a126_0x3c2391(0x1e7)](a126_0x3c2391(0x1e9),auth['isAuthenticated'](),controller['destroy']),module[a126_0x3c2391(0x1e3)]=router; \ No newline at end of file +const a126_0x2b3c=['../../components/auth/service','update','get','show','describe','create','/describe','index','isAuthenticated','put','./chatQueueReport.controller','/:id','post','exports','destroy'];(function(_0x59ed36,_0x5f0f4e){const _0x2b3c71=function(_0x31864e){while(--_0x31864e){_0x59ed36['push'](_0x59ed36['shift']());}};_0x2b3c71(++_0x5f0f4e);}(a126_0x2b3c,0x115));const a126_0x3186=function(_0x59ed36,_0x5f0f4e){_0x59ed36=_0x59ed36-0x121;let _0x2b3c71=a126_0x2b3c[_0x59ed36];return _0x2b3c71;};const a126_0x191d3f=a126_0x3186;'use strict';const express=require('express'),router=express['Router'](),auth=require(a126_0x191d3f(0x129)),controller=require(a126_0x191d3f(0x124));router[a126_0x191d3f(0x12b)]('/',auth[a126_0x191d3f(0x122)](),controller[a126_0x191d3f(0x121)]),router[a126_0x191d3f(0x12b)](a126_0x191d3f(0x12f),auth[a126_0x191d3f(0x122)](),controller[a126_0x191d3f(0x12d)]),router[a126_0x191d3f(0x12b)]('/:id',auth['isAuthenticated'](),controller[a126_0x191d3f(0x12c)]),router[a126_0x191d3f(0x126)]('/',auth[a126_0x191d3f(0x122)](),controller[a126_0x191d3f(0x12e)]),router[a126_0x191d3f(0x123)]('/:id',auth[a126_0x191d3f(0x122)](),controller[a126_0x191d3f(0x12a)]),router['delete'](a126_0x191d3f(0x125),auth['isAuthenticated'](),controller[a126_0x191d3f(0x128)]),module[a126_0x191d3f(0x127)]=router; \ No newline at end of file diff --git a/server/api/chatTransferReport/chatTransferReport.attributes.js b/server/api/chatTransferReport/chatTransferReport.attributes.js index 244f1a9..b6b8a91 100644 --- a/server/api/chatTransferReport/chatTransferReport.attributes.js +++ b/server/api/chatTransferReport/chatTransferReport.attributes.js @@ -1 +1 @@ -const a127_0x46c6=['queue','account','attributes','exports','sequelize','DATE','ENUM','NOW','agent','STRING'];(function(_0x9c8220,_0x1471e5){const _0x46c6cf=function(_0x2403a0){while(--_0x2403a0){_0x9c8220['push'](_0x9c8220['shift']());}};_0x46c6cf(++_0x1471e5);}(a127_0x46c6,0x111));const a127_0x2403=function(_0x9c8220,_0x1471e5){_0x9c8220=_0x9c8220-0x13d;let _0x46c6cf=a127_0x46c6[_0x9c8220];return _0x46c6cf;};const a127_0x219b2d=a127_0x2403;'use strict';const {DataTypes}=require(a127_0x219b2d(0x13e)),attributes={'uniqueid':{'type':DataTypes[a127_0x219b2d(0x143)],'allowNull':![]},'type':{'type':DataTypes[a127_0x219b2d(0x140)](a127_0x219b2d(0x145),a127_0x219b2d(0x142),a127_0x219b2d(0x144)),'allowNull':![],'defaultValue':'queue'},'transferredAt':{'type':DataTypes[a127_0x219b2d(0x13f)],'allowNull':![],'defaultValue':DataTypes[a127_0x219b2d(0x141)]}};module[a127_0x219b2d(0x13d)][a127_0x219b2d(0x146)]=attributes; \ No newline at end of file +const a127_0x21fb=['agent','attributes','ENUM','sequelize','queue','exports','DATE','STRING'];(function(_0x15254f,_0x2bc15f){const _0x21fb2c=function(_0x15746b){while(--_0x15746b){_0x15254f['push'](_0x15254f['shift']());}};_0x21fb2c(++_0x2bc15f);}(a127_0x21fb,0x19e));const a127_0x1574=function(_0x15254f,_0x2bc15f){_0x15254f=_0x15254f-0x1a0;let _0x21fb2c=a127_0x21fb[_0x15254f];return _0x21fb2c;};const a127_0x102e7e=a127_0x1574;'use strict';const {DataTypes}=require(a127_0x102e7e(0x1a5)),attributes={'uniqueid':{'type':DataTypes[a127_0x102e7e(0x1a1)],'allowNull':![]},'type':{'type':DataTypes[a127_0x102e7e(0x1a4)]('account',a127_0x102e7e(0x1a2),a127_0x102e7e(0x1a6)),'allowNull':![],'defaultValue':a127_0x102e7e(0x1a6)},'transferredAt':{'type':DataTypes[a127_0x102e7e(0x1a0)],'allowNull':![],'defaultValue':DataTypes['NOW']}};module[a127_0x102e7e(0x1a7)][a127_0x102e7e(0x1a3)]=attributes; \ No newline at end of file diff --git a/server/api/chatTransferReport/chatTransferReport.controller.js b/server/api/chatTransferReport/chatTransferReport.controller.js index 0be58d3..ff76bc5 100644 --- a/server/api/chatTransferReport/chatTransferReport.controller.js +++ b/server/api/chatTransferReport/chatTransferReport.controller.js @@ -1 +1 @@ -const a128_0x58e7=['catch','VIRTUAL','../../components/parsers/qs','then','describe','offset','query','limit','attributes','length','create','filter','like','name','map','set','type','intersection','filters','ChatTransferReport','params','error','options','sort','pick','Content-Range','model','merge','count','where','destroy','key','body','fields','send','status','update','rawAttributes','show'];(function(_0x127a17,_0x50e075){const _0x58e77c=function(_0x55c234){while(--_0x55c234){_0x127a17['push'](_0x127a17['shift']());}};_0x58e77c(++_0x50e075);}(a128_0x58e7,0x1d8));const a128_0x55c2=function(_0x127a17,_0x50e075){_0x127a17=_0x127a17-0x111;let _0x58e77c=a128_0x58e7[_0x127a17];return _0x58e77c;};const a128_0x2b60d3=a128_0x55c2;'use strict';const _=require('lodash'),qs=require(a128_0x2b60d3(0x136)),logger=require('../../config/logger')('api'),{db}=require('../../mysqldb'),{Op}=require('sequelize');function respondWithResult(_0x10f134,_0x123e24){return _0x123e24=_0x123e24||0xc8,function(_0x1bd421){const _0x329d9b=a128_0x55c2;if(_0x1bd421)return _0x10f134[_0x329d9b(0x130)](_0x123e24)['json'](_0x1bd421);};}function respondWithFilteredResult(_0x378ee9,_0x1d2cad){return function(_0x4e6e32){const _0x2a8b91=a128_0x55c2;if(_0x4e6e32){const _0x3f6da5=_0x4e6e32[_0x2a8b91(0x129)],_0x3affb8=_0x1d2cad[_0x2a8b91(0x112)];let _0x1d1608=_0x1d2cad['offset']+_0x1d2cad['limit'],_0x3abaa0;return _0x1d1608>=_0x3f6da5?(_0x1d1608=_0x3f6da5,_0x3abaa0=0xc8):_0x3abaa0=0xce,_0x378ee9[_0x2a8b91(0x130)](_0x3abaa0),_0x378ee9[_0x2a8b91(0x11c)](_0x2a8b91(0x126),_0x3affb8+'-'+_0x1d1608+'/'+_0x3f6da5)['json'](_0x4e6e32);}return null;};}function saveUpdates(_0x30d306){return function(_0x293c02){const _0x728630=a128_0x55c2;if(_0x293c02)return _0x293c02[_0x728630(0x131)](_0x30d306)[_0x728630(0x137)](function(_0x23989c){return _0x23989c;});return null;};}function removeEntity(_0x353d38){return function(_0x2364a7){const _0x1144be=a128_0x55c2;if(_0x2364a7)return _0x2364a7[_0x1144be(0x12b)]()[_0x1144be(0x137)](function(){const _0x43fc77=_0x1144be;_0x353d38[_0x43fc77(0x130)](0xcc)['end']();});};}function handleEntityNotFound(_0x4204c4){return function(_0x5c0448){return!_0x5c0448&&_0x4204c4['sendStatus'](0x194),_0x5c0448;};}function handleError(_0x473bb5,_0x7baf4c){return _0x7baf4c=_0x7baf4c||0x1f4,function(_0x293d97){const _0x4ca2c9=a128_0x55c2;logger[_0x4ca2c9(0x122)](_0x293d97['stack']),_0x293d97[_0x4ca2c9(0x11a)]&&delete _0x293d97[_0x4ca2c9(0x11a)],_0x473bb5['status'](_0x7baf4c)[_0x4ca2c9(0x12f)](_0x293d97);};}exports['index']=function(_0x481e38,_0x202394){const _0x250ec1=a128_0x2b60d3;let _0x2231f7={};const _0x48ccf4={},_0x1fbecc={'count':0x0,'rows':[]},_0xd1ec3c=_[_0x250ec1(0x11b)](db[_0x250ec1(0x120)][_0x250ec1(0x132)],function(_0x3e377f){const _0x1d1348=_0x250ec1;return{'name':_0x3e377f['fieldName'],'type':_0x3e377f[_0x1d1348(0x11d)][_0x1d1348(0x12c)]};});_0x48ccf4[_0x250ec1(0x127)]=_['map'](_0xd1ec3c,_0x250ec1(0x11a)),_0x48ccf4[_0x250ec1(0x113)]=_['keys'](_0x481e38['query']),_0x48ccf4[_0x250ec1(0x11f)]=_[_0x250ec1(0x11e)](_0x48ccf4[_0x250ec1(0x127)],_0x48ccf4[_0x250ec1(0x113)]),_0x2231f7['attributes']=_[_0x250ec1(0x11e)](_0x48ccf4['model'],qs[_0x250ec1(0x12e)](_0x481e38[_0x250ec1(0x113)][_0x250ec1(0x12e)])),_0x2231f7['attributes']=_0x2231f7['attributes'][_0x250ec1(0x116)]?_0x2231f7['attributes']:_0x48ccf4[_0x250ec1(0x127)];typeof _0x481e38[_0x250ec1(0x113)]['nolimit']==='undefined'&&(_0x2231f7[_0x250ec1(0x114)]=qs['limit'](_0x481e38[_0x250ec1(0x113)][_0x250ec1(0x114)]),_0x2231f7[_0x250ec1(0x112)]=qs['offset'](_0x481e38[_0x250ec1(0x113)][_0x250ec1(0x112)]));_0x2231f7['order']=qs[_0x250ec1(0x124)](_0x481e38[_0x250ec1(0x113)][_0x250ec1(0x124)]),_0x2231f7[_0x250ec1(0x12a)]=qs[_0x250ec1(0x11f)](_[_0x250ec1(0x125)](_0x481e38[_0x250ec1(0x113)],_0x48ccf4[_0x250ec1(0x11f)]),_0xd1ec3c);_0x481e38[_0x250ec1(0x113)]['filter']&&(_0x2231f7[_0x250ec1(0x12a)]=_[_0x250ec1(0x128)](_0x2231f7[_0x250ec1(0x12a)],{[Op['or']]:_[_0x250ec1(0x11b)](_0xd1ec3c,function(_0x5f2777){const _0xec4a5a=_0x250ec1;if(_0x5f2777['type']!==_0xec4a5a(0x135)){const _0x2f0ed5={};return _0x2f0ed5[_0x5f2777['name']]={[Op[_0xec4a5a(0x119)]]:'%'+_0x481e38[_0xec4a5a(0x113)][_0xec4a5a(0x118)]+'%'},_0x2f0ed5;}})}));_0x2231f7=_[_0x250ec1(0x128)]({},_0x2231f7,_0x481e38[_0x250ec1(0x123)]);const _0x43ba29={'where':_0x2231f7[_0x250ec1(0x12a)]};return db['ChatTransferReport'][_0x250ec1(0x129)](_0x43ba29)[_0x250ec1(0x137)](function(_0x5874ae){const _0x2f2c79=_0x250ec1;return _0x1fbecc['count']=_0x5874ae,_0x481e38[_0x2f2c79(0x113)]['includeAll']&&(_0x2231f7['include']=[{'all':!![]}]),db[_0x2f2c79(0x120)]['findAll'](_0x2231f7);})[_0x250ec1(0x137)](function(_0x14f12b){return _0x1fbecc['rows']=_0x14f12b,_0x1fbecc;})['then'](respondWithFilteredResult(_0x202394,_0x2231f7))['catch'](handleError(_0x202394,null));},exports[a128_0x2b60d3(0x133)]=function(_0x53918f,_0x14090a){const _0x4b4579=a128_0x2b60d3;let _0x2fe940={'raw':!![],'where':{'id':_0x53918f[_0x4b4579(0x121)]['id']}};const _0x409803={};return _0x409803[_0x4b4579(0x127)]=_['keys'](db[_0x4b4579(0x120)][_0x4b4579(0x132)]),_0x409803['query']=_['keys'](_0x53918f[_0x4b4579(0x113)]),_0x409803[_0x4b4579(0x11f)]=_[_0x4b4579(0x11e)](_0x409803[_0x4b4579(0x127)],_0x409803[_0x4b4579(0x113)]),_0x2fe940[_0x4b4579(0x115)]=_[_0x4b4579(0x11e)](_0x409803[_0x4b4579(0x127)],qs[_0x4b4579(0x12e)](_0x53918f[_0x4b4579(0x113)]['fields'])),_0x2fe940[_0x4b4579(0x115)]=_0x2fe940['attributes']['length']?_0x2fe940[_0x4b4579(0x115)]:_0x409803[_0x4b4579(0x127)],_0x53918f[_0x4b4579(0x113)]['includeAll']&&(_0x2fe940['include']=[{'all':!![]}]),_0x2fe940=_['merge']({},_0x2fe940,_0x53918f[_0x4b4579(0x123)]),db['ChatTransferReport']['findOne'](_0x2fe940)['then'](handleEntityNotFound(_0x14090a,null))['then'](respondWithResult(_0x14090a,null))[_0x4b4579(0x134)](handleError(_0x14090a,null));},exports[a128_0x2b60d3(0x117)]=function(_0xdef4bd,_0xde4ada){const _0x35c12a=a128_0x2b60d3;return db[_0x35c12a(0x120)][_0x35c12a(0x117)](_0xdef4bd[_0x35c12a(0x12d)],{})['then'](respondWithResult(_0xde4ada,0xc9))[_0x35c12a(0x134)](handleError(_0xde4ada,null));},exports[a128_0x2b60d3(0x131)]=function(_0xcf26b4,_0x34231b){const _0x5e443b=a128_0x2b60d3;return _0xcf26b4['body']['id']&&delete _0xcf26b4[_0x5e443b(0x12d)]['id'],db[_0x5e443b(0x120)]['findOne']({'where':{'id':_0xcf26b4[_0x5e443b(0x121)]['id']}})['then'](handleEntityNotFound(_0x34231b,null))[_0x5e443b(0x137)](saveUpdates(_0xcf26b4[_0x5e443b(0x12d)],null))[_0x5e443b(0x137)](respondWithResult(_0x34231b,null))[_0x5e443b(0x134)](handleError(_0x34231b,null));},exports[a128_0x2b60d3(0x12b)]=function(_0x4411d7,_0x364b66){const _0x3940a1=a128_0x2b60d3;return db[_0x3940a1(0x120)]['findOne']({'where':{'id':_0x4411d7[_0x3940a1(0x121)]['id']}})[_0x3940a1(0x137)](handleEntityNotFound(_0x364b66,null))[_0x3940a1(0x137)](removeEntity(_0x364b66,null))[_0x3940a1(0x134)](handleError(_0x364b66,null));},exports[a128_0x2b60d3(0x111)]=function(_0x560d55,_0x523cc8){const _0x708a15=a128_0x2b60d3;return db[_0x708a15(0x120)]['describe']()[_0x708a15(0x137)](respondWithResult(_0x523cc8,null))['catch'](handleError(_0x523cc8,null));}; \ No newline at end of file +const a128_0x51e7=['ChatTransferReport','type','sort','intersection','includeAll','filters','keys','json','options','set','merge','rows','count','query','name','map','undefined','length','order','model','status','catch','include','fields','Content-Range','describe','then','findOne','sequelize','destroy','like','error','where','params','fieldName','update','nolimit','body','create','../../components/parsers/qs','sendStatus','attributes','../../mysqldb','limit','rawAttributes','offset','filter','end','VIRTUAL','api','lodash'];(function(_0x355eba,_0x4ed875){const _0x51e75e=function(_0x2fcffa){while(--_0x2fcffa){_0x355eba['push'](_0x355eba['shift']());}};_0x51e75e(++_0x4ed875);}(a128_0x51e7,0xf1));const a128_0x2fcf=function(_0x355eba,_0x4ed875){_0x355eba=_0x355eba-0x89;let _0x51e75e=a128_0x51e7[_0x355eba];return _0x51e75e;};const a128_0x577cdc=a128_0x2fcf;'use strict';const _=require(a128_0x577cdc(0x96)),qs=require(a128_0x577cdc(0x8b)),logger=require('../../config/logger')(a128_0x577cdc(0x95)),{db}=require(a128_0x577cdc(0x8e)),{Op}=require(a128_0x577cdc(0xb3));function respondWithResult(_0x507f25,_0x1a925c){return _0x1a925c=_0x1a925c||0xc8,function(_0x46e33b){const _0x205845=a128_0x2fcf;if(_0x46e33b)return _0x507f25[_0x205845(0xab)](_0x1a925c)['json'](_0x46e33b);};}function respondWithFilteredResult(_0xcad7da,_0x3ece4f){return function(_0x2210f4){const _0x290149=a128_0x2fcf;if(_0x2210f4){const _0x50d30f=_0x2210f4[_0x290149(0xa3)],_0x10ae53=_0x3ece4f[_0x290149(0x91)];let _0x704f37=_0x3ece4f[_0x290149(0x91)]+_0x3ece4f[_0x290149(0x8f)],_0x1f04d1;return _0x704f37>=_0x50d30f?(_0x704f37=_0x50d30f,_0x1f04d1=0xc8):_0x1f04d1=0xce,_0xcad7da['status'](_0x1f04d1),_0xcad7da[_0x290149(0xa0)](_0x290149(0xaf),_0x10ae53+'-'+_0x704f37+'/'+_0x50d30f)[_0x290149(0x9e)](_0x2210f4);}return null;};}function saveUpdates(_0x4499e9){return function(_0x126baf){const _0x241c7f=a128_0x2fcf;if(_0x126baf)return _0x126baf[_0x241c7f(0xba)](_0x4499e9)[_0x241c7f(0xb1)](function(_0x47e14c){return _0x47e14c;});return null;};}function removeEntity(_0x2e6fd3){return function(_0x1eeac8){const _0x3429f3=a128_0x2fcf;if(_0x1eeac8)return _0x1eeac8[_0x3429f3(0xb4)]()[_0x3429f3(0xb1)](function(){const _0x229df6=_0x3429f3;_0x2e6fd3['status'](0xcc)[_0x229df6(0x93)]();});};}function handleEntityNotFound(_0x1582ef){return function(_0x3ae880){const _0x4390a8=a128_0x2fcf;return!_0x3ae880&&_0x1582ef[_0x4390a8(0x8c)](0x194),_0x3ae880;};}function handleError(_0x416f9f,_0x5d6911){return _0x5d6911=_0x5d6911||0x1f4,function(_0x52126a){const _0x2a5e30=a128_0x2fcf;logger[_0x2a5e30(0xb6)](_0x52126a['stack']),_0x52126a[_0x2a5e30(0xa5)]&&delete _0x52126a[_0x2a5e30(0xa5)],_0x416f9f['status'](_0x5d6911)['send'](_0x52126a);};}exports['index']=function(_0x1fc1b3,_0x1c69c6){const _0x19db74=a128_0x577cdc;let _0x429630={};const _0x49e706={},_0x940c6d={'count':0x0,'rows':[]},_0x56b56b=_[_0x19db74(0xa6)](db[_0x19db74(0x97)][_0x19db74(0x90)],function(_0x5d04ff){const _0x4e820f=_0x19db74;return{'name':_0x5d04ff[_0x4e820f(0xb9)],'type':_0x5d04ff[_0x4e820f(0x98)]['key']};});_0x49e706['model']=_[_0x19db74(0xa6)](_0x56b56b,_0x19db74(0xa5)),_0x49e706[_0x19db74(0xa4)]=_[_0x19db74(0x9d)](_0x1fc1b3[_0x19db74(0xa4)]),_0x49e706[_0x19db74(0x9c)]=_[_0x19db74(0x9a)](_0x49e706[_0x19db74(0xaa)],_0x49e706[_0x19db74(0xa4)]),_0x429630['attributes']=_[_0x19db74(0x9a)](_0x49e706[_0x19db74(0xaa)],qs['fields'](_0x1fc1b3[_0x19db74(0xa4)][_0x19db74(0xae)])),_0x429630[_0x19db74(0x8d)]=_0x429630[_0x19db74(0x8d)][_0x19db74(0xa8)]?_0x429630[_0x19db74(0x8d)]:_0x49e706[_0x19db74(0xaa)];typeof _0x1fc1b3['query'][_0x19db74(0xbb)]===_0x19db74(0xa7)&&(_0x429630[_0x19db74(0x8f)]=qs[_0x19db74(0x8f)](_0x1fc1b3['query'][_0x19db74(0x8f)]),_0x429630[_0x19db74(0x91)]=qs[_0x19db74(0x91)](_0x1fc1b3[_0x19db74(0xa4)][_0x19db74(0x91)]));_0x429630[_0x19db74(0xa9)]=qs[_0x19db74(0x99)](_0x1fc1b3[_0x19db74(0xa4)][_0x19db74(0x99)]),_0x429630[_0x19db74(0xb7)]=qs[_0x19db74(0x9c)](_['pick'](_0x1fc1b3[_0x19db74(0xa4)],_0x49e706[_0x19db74(0x9c)]),_0x56b56b);_0x1fc1b3[_0x19db74(0xa4)]['filter']&&(_0x429630[_0x19db74(0xb7)]=_['merge'](_0x429630[_0x19db74(0xb7)],{[Op['or']]:_[_0x19db74(0xa6)](_0x56b56b,function(_0x983db3){const _0x25ccfd=_0x19db74;if(_0x983db3['type']!==_0x25ccfd(0x94)){const _0x2fb95e={};return _0x2fb95e[_0x983db3[_0x25ccfd(0xa5)]]={[Op[_0x25ccfd(0xb5)]]:'%'+_0x1fc1b3[_0x25ccfd(0xa4)][_0x25ccfd(0x92)]+'%'},_0x2fb95e;}})}));_0x429630=_[_0x19db74(0xa1)]({},_0x429630,_0x1fc1b3[_0x19db74(0x9f)]);const _0x5b3cb7={'where':_0x429630[_0x19db74(0xb7)]};return db[_0x19db74(0x97)]['count'](_0x5b3cb7)[_0x19db74(0xb1)](function(_0x17c489){const _0x22bab2=_0x19db74;return _0x940c6d['count']=_0x17c489,_0x1fc1b3[_0x22bab2(0xa4)][_0x22bab2(0x9b)]&&(_0x429630[_0x22bab2(0xad)]=[{'all':!![]}]),db[_0x22bab2(0x97)]['findAll'](_0x429630);})[_0x19db74(0xb1)](function(_0xb8fe34){const _0x4fb114=_0x19db74;return _0x940c6d[_0x4fb114(0xa2)]=_0xb8fe34,_0x940c6d;})[_0x19db74(0xb1)](respondWithFilteredResult(_0x1c69c6,_0x429630))[_0x19db74(0xac)](handleError(_0x1c69c6,null));},exports['show']=function(_0x2647d4,_0x1bde93){const _0x1f1b30=a128_0x577cdc;let _0x3b86b9={'raw':!![],'where':{'id':_0x2647d4[_0x1f1b30(0xb8)]['id']}};const _0x308744={};return _0x308744[_0x1f1b30(0xaa)]=_[_0x1f1b30(0x9d)](db[_0x1f1b30(0x97)][_0x1f1b30(0x90)]),_0x308744['query']=_[_0x1f1b30(0x9d)](_0x2647d4[_0x1f1b30(0xa4)]),_0x308744[_0x1f1b30(0x9c)]=_[_0x1f1b30(0x9a)](_0x308744['model'],_0x308744[_0x1f1b30(0xa4)]),_0x3b86b9[_0x1f1b30(0x8d)]=_[_0x1f1b30(0x9a)](_0x308744[_0x1f1b30(0xaa)],qs[_0x1f1b30(0xae)](_0x2647d4[_0x1f1b30(0xa4)]['fields'])),_0x3b86b9[_0x1f1b30(0x8d)]=_0x3b86b9[_0x1f1b30(0x8d)][_0x1f1b30(0xa8)]?_0x3b86b9[_0x1f1b30(0x8d)]:_0x308744['model'],_0x2647d4['query']['includeAll']&&(_0x3b86b9[_0x1f1b30(0xad)]=[{'all':!![]}]),_0x3b86b9=_[_0x1f1b30(0xa1)]({},_0x3b86b9,_0x2647d4[_0x1f1b30(0x9f)]),db[_0x1f1b30(0x97)][_0x1f1b30(0xb2)](_0x3b86b9)[_0x1f1b30(0xb1)](handleEntityNotFound(_0x1bde93,null))[_0x1f1b30(0xb1)](respondWithResult(_0x1bde93,null))[_0x1f1b30(0xac)](handleError(_0x1bde93,null));},exports[a128_0x577cdc(0x8a)]=function(_0x3877f4,_0x1096e4){const _0x3853eb=a128_0x577cdc;return db[_0x3853eb(0x97)][_0x3853eb(0x8a)](_0x3877f4['body'],{})[_0x3853eb(0xb1)](respondWithResult(_0x1096e4,0xc9))['catch'](handleError(_0x1096e4,null));},exports[a128_0x577cdc(0xba)]=function(_0x18bdfc,_0x5d04a3){const _0xd6caa8=a128_0x577cdc;return _0x18bdfc[_0xd6caa8(0x89)]['id']&&delete _0x18bdfc['body']['id'],db['ChatTransferReport'][_0xd6caa8(0xb2)]({'where':{'id':_0x18bdfc[_0xd6caa8(0xb8)]['id']}})[_0xd6caa8(0xb1)](handleEntityNotFound(_0x5d04a3,null))[_0xd6caa8(0xb1)](saveUpdates(_0x18bdfc[_0xd6caa8(0x89)],null))[_0xd6caa8(0xb1)](respondWithResult(_0x5d04a3,null))['catch'](handleError(_0x5d04a3,null));},exports[a128_0x577cdc(0xb4)]=function(_0x3a9b35,_0x57fd5e){const _0x128227=a128_0x577cdc;return db[_0x128227(0x97)][_0x128227(0xb2)]({'where':{'id':_0x3a9b35['params']['id']}})['then'](handleEntityNotFound(_0x57fd5e,null))[_0x128227(0xb1)](removeEntity(_0x57fd5e,null))['catch'](handleError(_0x57fd5e,null));},exports['describe']=function(_0x3fd793,_0x315894){const _0x12cfa0=a128_0x577cdc;return db[_0x12cfa0(0x97)][_0x12cfa0(0xb0)]()[_0x12cfa0(0xb1)](respondWithResult(_0x315894,null))[_0x12cfa0(0xac)](handleError(_0x315894,null));}; \ No newline at end of file diff --git a/server/api/chatTransferReport/chatTransferReport.model.js b/server/api/chatTransferReport/chatTransferReport.model.js index d10a6d1..f4c1a2d 100644 --- a/server/api/chatTransferReport/chatTransferReport.model.js +++ b/server/api/chatTransferReport/chatTransferReport.model.js @@ -1 +1 @@ -const a129_0x3893=['init','./chatTransferReport.attributes','ChatTransferReport','exports'];(function(_0x123884,_0x35e648){const _0x389361=function(_0x1f47d5){while(--_0x1f47d5){_0x123884['push'](_0x123884['shift']());}};_0x389361(++_0x35e648);}(a129_0x3893,0x10b));const a129_0x1f47=function(_0x123884,_0x35e648){_0x123884=_0x123884-0x1a1;let _0x389361=a129_0x3893[_0x123884];return _0x389361;};const a129_0x4cea6a=a129_0x1f47;'use strict';const {Model}=require('sequelize'),{attributes}=require(a129_0x4cea6a(0x1a3)),{options}=require('./chatTransferReport.options');class ChatTransferReport extends Model{}function init(_0x72077a,_0xfdec93){const _0x29a17d=a129_0x4cea6a,_0x4d8217=options(_0x72077a),_0x1257e7=typeof _0xfdec93==='function'?_0xfdec93(_0x4d8217):_0x4d8217;return ChatTransferReport[_0x29a17d(0x1a2)](attributes,_0x1257e7),ChatTransferReport;}module[a129_0x4cea6a(0x1a1)][a129_0x4cea6a(0x1a4)]=ChatTransferReport,module[a129_0x4cea6a(0x1a1)][a129_0x4cea6a(0x1a2)]=init; \ No newline at end of file +const a129_0x4dd9=['init','sequelize','exports','function','./chatTransferReport.attributes'];(function(_0xc5a3e5,_0x3ae970){const _0x4dd954=function(_0x3692c6){while(--_0x3692c6){_0xc5a3e5['push'](_0xc5a3e5['shift']());}};_0x4dd954(++_0x3ae970);}(a129_0x4dd9,0x162));const a129_0x3692=function(_0xc5a3e5,_0x3ae970){_0xc5a3e5=_0xc5a3e5-0x15a;let _0x4dd954=a129_0x4dd9[_0xc5a3e5];return _0x4dd954;};const a129_0x1306d9=a129_0x3692;'use strict';const {Model}=require(a129_0x1306d9(0x15c)),{attributes}=require(a129_0x1306d9(0x15a)),{options}=require('./chatTransferReport.options');class ChatTransferReport extends Model{}function init(_0x2cdb7e,_0x467884){const _0x10d047=a129_0x1306d9,_0x237ef7=options(_0x2cdb7e),_0x9e16cd=typeof _0x467884===_0x10d047(0x15e)?_0x467884(_0x237ef7):_0x237ef7;return ChatTransferReport['init'](attributes,_0x9e16cd),ChatTransferReport;}module[a129_0x1306d9(0x15d)]['ChatTransferReport']=ChatTransferReport,module['exports'][a129_0x1306d9(0x15b)]=init; \ No newline at end of file diff --git a/server/api/chatTransferReport/chatTransferReport.options.js b/server/api/chatTransferReport/chatTransferReport.options.js index 30b8dce..4f6929c 100644 --- a/server/api/chatTransferReport/chatTransferReport.options.js +++ b/server/api/chatTransferReport/chatTransferReport.options.js @@ -1 +1 @@ -var a130_0x463d=['exports','options','uniqueid','report_chat_transfer'];(function(_0x5d86b3,_0x25e51f){var _0x463d85=function(_0x4ff9ae){while(--_0x4ff9ae){_0x5d86b3['push'](_0x5d86b3['shift']());}};_0x463d85(++_0x25e51f);}(a130_0x463d,0x15a));var a130_0x4ff9=function(_0x5d86b3,_0x25e51f){_0x5d86b3=_0x5d86b3-0x125;var _0x463d85=a130_0x463d[_0x5d86b3];return _0x463d85;};var a130_0x1d5f6b=a130_0x4ff9;function options(_0x2ab89a){var _0x40ec55=a130_0x4ff9;return{'sequelize':_0x2ab89a,'tableName':_0x40ec55(0x126),'paranoid':![],'indexes':[{'name':_0x40ec55(0x125),'fields':['uniqueid']}],'timestamps':!![]};}module[a130_0x1d5f6b(0x127)][a130_0x1d5f6b(0x128)]=options; \ No newline at end of file +var a130_0x5c6e=['report_chat_transfer','uniqueid','exports'];(function(_0x5d2a10,_0x4276c){var _0x5c6e3f=function(_0x28f81a){while(--_0x28f81a){_0x5d2a10['push'](_0x5d2a10['shift']());}};_0x5c6e3f(++_0x4276c);}(a130_0x5c6e,0x12c));var a130_0x28f8=function(_0x5d2a10,_0x4276c){_0x5d2a10=_0x5d2a10-0x1c5;var _0x5c6e3f=a130_0x5c6e[_0x5d2a10];return _0x5c6e3f;};var a130_0x5e9257=a130_0x28f8;function options(_0x262129){var _0x4f2546=a130_0x28f8;return{'sequelize':_0x262129,'tableName':_0x4f2546(0x1c5),'paranoid':![],'indexes':[{'name':_0x4f2546(0x1c6),'fields':[_0x4f2546(0x1c6)]}],'timestamps':!![]};}module[a130_0x5e9257(0x1c7)]['options']=options; \ No newline at end of file diff --git a/server/api/chatTransferReport/index.js b/server/api/chatTransferReport/index.js index 6569077..4b66f24 100644 --- a/server/api/chatTransferReport/index.js +++ b/server/api/chatTransferReport/index.js @@ -1 +1 @@ -const a131_0x5f4e=['index','show','./chatTransferReport.controller','isAuthenticated','describe','delete','exports','destroy','../../components/auth/service','/:id','post','get','put','/describe','update'];(function(_0x247276,_0x28f2dd){const _0x5f4e63=function(_0x11670d){while(--_0x11670d){_0x247276['push'](_0x247276['shift']());}};_0x5f4e63(++_0x28f2dd);}(a131_0x5f4e,0xa5));const a131_0x1167=function(_0x247276,_0x28f2dd){_0x247276=_0x247276-0xb0;let _0x5f4e63=a131_0x5f4e[_0x247276];return _0x5f4e63;};const a131_0xa6984b=a131_0x1167;'use strict';const express=require('express'),router=express['Router'](),auth=require(a131_0xa6984b(0xb8)),controller=require(a131_0xa6984b(0xb2));router[a131_0xa6984b(0xbb)]('/',auth['isAuthenticated'](),controller[a131_0xa6984b(0xb0)]),router['get'](a131_0xa6984b(0xbd),auth[a131_0xa6984b(0xb3)](),controller[a131_0xa6984b(0xb4)]),router['get'](a131_0xa6984b(0xb9),auth[a131_0xa6984b(0xb3)](),controller[a131_0xa6984b(0xb1)]),router[a131_0xa6984b(0xba)]('/',auth[a131_0xa6984b(0xb3)](),controller['create']),router[a131_0xa6984b(0xbc)]('/:id',auth[a131_0xa6984b(0xb3)](),controller[a131_0xa6984b(0xbe)]),router[a131_0xa6984b(0xb5)]('/:id',auth[a131_0xa6984b(0xb3)](),controller[a131_0xa6984b(0xb7)]),module[a131_0xa6984b(0xb6)]=router; \ No newline at end of file +const a131_0x31ba=['update','describe','exports','delete','put','show','post','index','isAuthenticated','get','/:id','../../components/auth/service','Router','/describe','destroy'];(function(_0x1f90a4,_0x30afee){const _0x31ba66=function(_0xa14859){while(--_0xa14859){_0x1f90a4['push'](_0x1f90a4['shift']());}};_0x31ba66(++_0x30afee);}(a131_0x31ba,0x19f));const a131_0xa148=function(_0x1f90a4,_0x30afee){_0x1f90a4=_0x1f90a4-0x178;let _0x31ba66=a131_0x31ba[_0x1f90a4];return _0x31ba66;};const a131_0x1c2542=a131_0xa148;'use strict';const express=require('express'),router=express[a131_0x1c2542(0x17a)](),auth=require(a131_0x1c2542(0x179)),controller=require('./chatTransferReport.controller');router[a131_0x1c2542(0x186)]('/',auth[a131_0x1c2542(0x185)](),controller[a131_0x1c2542(0x184)]),router[a131_0x1c2542(0x186)](a131_0x1c2542(0x17b),auth[a131_0x1c2542(0x185)](),controller[a131_0x1c2542(0x17e)]),router[a131_0x1c2542(0x186)](a131_0x1c2542(0x178),auth[a131_0x1c2542(0x185)](),controller[a131_0x1c2542(0x182)]),router[a131_0x1c2542(0x183)]('/',auth[a131_0x1c2542(0x185)](),controller['create']),router[a131_0x1c2542(0x181)]('/:id',auth[a131_0x1c2542(0x185)](),controller[a131_0x1c2542(0x17d)]),router[a131_0x1c2542(0x180)](a131_0x1c2542(0x178),auth[a131_0x1c2542(0x185)](),controller[a131_0x1c2542(0x17c)]),module[a131_0x1c2542(0x17f)]=router; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.attributes.js b/server/api/chatWebsite/chatWebsite.attributes.js index 6e2236f..e8b4266 100644 --- a/server/api/chatWebsite/chatWebsite.attributes.js +++ b/server/api/chatWebsite/chatWebsite.attributes.js @@ -1 +1 @@ -const a132_0xd5f6=['rounded','website_alias','parse','textarea','New\x20offline\x20message\x20from\x20websiteName','Note','email','randomstring','Send','Form\x20submission\x20error','getDataValue','Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.','onlineForm','offlineForm','mandatoryDisposition','#011F6A','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','Thanks\x20you\x20for\x20your\x20time!','Skip','exports','bottom_right','stringify','sequelize','Form\x20properly\x20submitted','Powered\x20by\x20xCALLY','Chat','alternate','address','Contact\x20us','mandatoryDispositionPauseId','STRING','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','star','generate','Agent','input','TEXT','attributes','We\x20are\x20here!','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','Leave\x20your\x20comments','ENUM','BOOLEAN','INTEGER','setDataValue','#fafafa','Comments'];(function(_0x555873,_0x1b17fb){const _0xd5f6a7=function(_0x330f46){while(--_0x330f46){_0x555873['push'](_0x555873['shift']());}};_0xd5f6a7(++_0x1b17fb);}(a132_0xd5f6,0x99));const a132_0x330f=function(_0x555873,_0x1b17fb){_0x555873=_0x555873-0x127;let _0xd5f6a7=a132_0xd5f6[_0x555873];return _0xd5f6a7;};const a132_0x235925=a132_0x330f;'use strict';const {DataTypes}=require(a132_0x235925(0x131)),rs=require(a132_0x235925(0x151)),attributes={'name':{'type':DataTypes[a132_0x235925(0x139)],'allowNull':![]},'address':{'type':DataTypes[a132_0x235925(0x139)],'allowNull':![],'unique':a132_0x235925(0x136)},'description':{'type':DataTypes[a132_0x235925(0x139)]},'mapKey':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':a132_0x235925(0x150)},'mapKeyOffline':{'type':DataTypes['STRING'],'defaultValue':a132_0x235925(0x150)},'key':{'type':DataTypes[a132_0x235925(0x139)],'allowNull':![]},'agentAlias':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':a132_0x235925(0x13d)},'customerAlias':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':'Me'},'color':{'type':DataTypes[a132_0x235925(0x139)],'allowNull':![],'defaultValue':a132_0x235925(0x12a),'validate':{'notEmpty':!![]}},'color_button':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':a132_0x235925(0x12a),'validate':{'notEmpty':!![]}},'textColor':{'type':DataTypes[a132_0x235925(0x139)],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}},'fontSize':{'type':DataTypes[a132_0x235925(0x146)],'defaultValue':0xf},'remote':{'type':DataTypes[a132_0x235925(0x139)]},'animation':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'header_shape':{'type':DataTypes[a132_0x235925(0x144)](a132_0x235925(0x14a),'squared'),'defaultValue':'rounded'},'header_online':{'type':DataTypes['STRING'],'defaultValue':a132_0x235925(0x141)},'start_chat_button':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':a132_0x235925(0x134)},'offline_chat_button':{'type':DataTypes['STRING'],'defaultValue':a132_0x235925(0x152)},'header_offline':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':a132_0x235925(0x137)},'download_transcript':{'type':DataTypes[a132_0x235925(0x145)],'defaultValue':!![]},'timeout':{'type':DataTypes[a132_0x235925(0x146)],'defaultValue':0x0},'whiteLabel':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':a132_0x235925(0x133)},'defaultWhiteLabel':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'sitepic':{'type':DataTypes[a132_0x235925(0x13f)]},'closingQuestion':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':a132_0x235925(0x142)},'formSubmitSuccessMessage':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':a132_0x235925(0x132)},'formSubmitFailureMessage':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':a132_0x235925(0x153)},'noteTitle':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':a132_0x235925(0x14f)},'placeholderMessage':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':'Type\x20a\x20message'},'closingMessage':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':a132_0x235925(0x12c)},'closingMessageButton':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':a132_0x235925(0x152)},'skipMessageButton':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':a132_0x235925(0x12d)},'conditionAgreement':{'type':DataTypes[a132_0x235925(0x145)],'defaultValue':![]},'enableRating':{'type':DataTypes[a132_0x235925(0x145)],'defaultValue':![]},'enableFeedback':{'type':DataTypes[a132_0x235925(0x145)],'defaultValue':![]},'enableSendButton':{'type':DataTypes[a132_0x235925(0x145)],'defaultValue':![]},'feedbackTitle':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':'Feedback'},'ratingType':{'type':DataTypes[a132_0x235925(0x144)]('star','thumb'),'defaultValue':a132_0x235925(0x13b)},'ratingStarsNumber':{'type':DataTypes['INTEGER'],'defaultValue':0x5},'onlineForm':{'type':DataTypes[a132_0x235925(0x13f)],'defaultValue':function(){const _0x2ca99f=a132_0x235925;return JSON[_0x2ca99f(0x130)]({'items':[{'type':_0x2ca99f(0x13e),'variable':null,'config':{'placeholder':'name','type':'text','required':!![]},'props':{'title':'name','helpText':''}},{'type':_0x2ca99f(0x13e),'props':{'title':_0x2ca99f(0x150),'helpText':''},'config':{'required':!![],'placeholder':'email','type':'email'},'variable':null}],'fromKey':0x1});},'get':function(){const _0x435ada=a132_0x235925;return this[_0x435ada(0x154)](_0x435ada(0x127))?JSON['parse'](this[_0x435ada(0x154)](_0x435ada(0x127))):{};},'set':function(_0x5cb7f8){const _0x3c1f95=a132_0x235925;return this[_0x3c1f95(0x147)](_0x3c1f95(0x127),JSON[_0x3c1f95(0x130)](_0x5cb7f8));}},'offlineForm':{'type':DataTypes[a132_0x235925(0x13f)],'defaultValue':function(){const _0x175140=a132_0x235925;return JSON['stringify']({'items':[{'type':_0x175140(0x13e),'props':{'title':_0x175140(0x150),'helpText':''},'config':{'required':!![],'placeholder':_0x175140(0x150),'type':'email'},'variable':null},{'type':_0x175140(0x14d),'config':{'placeholder':'Comments'},'props':{'title':_0x175140(0x149),'helpText':_0x175140(0x143)}}],'fromKey':0x0});},'get':function(){const _0x70ae90=a132_0x235925;return this[_0x70ae90(0x154)](_0x70ae90(0x128))?JSON[_0x70ae90(0x14c)](this[_0x70ae90(0x154)](_0x70ae90(0x128))):{};},'set':function(_0x51823e){const _0x349827=a132_0x235925;return this[_0x349827(0x147)](_0x349827(0x128),JSON[_0x349827(0x130)](_0x51823e));}},'token':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':function(){const _0x2f8120=a132_0x235925;return rs[_0x2f8120(0x13c)]();}},'autoclose':{'type':DataTypes[a132_0x235925(0x145)],'defaultValue':!![]},'enableCustomerWriting':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'forwardTranscript':{'type':DataTypes[a132_0x235925(0x145)],'defaultValue':![]},'forwardTranscriptMessage':{'type':DataTypes[a132_0x235925(0x139)]},'forwardOffline':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'forwardOfflineAddress':{'type':DataTypes[a132_0x235925(0x139)]},'waitingTitle':{'type':DataTypes['STRING'],'defaultValue':'All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.'},'waitingMessage':{'type':DataTypes['STRING'],'defaultValue':a132_0x235925(0x155)},'offlineMessageSubject':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':a132_0x235925(0x14e)},'offlineMessageBody':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':'You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:'},'enableUnmanagedNote':{'type':DataTypes[a132_0x235925(0x145)],'defaultValue':!![]},'unmanagedMessage':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':'Your\x20request\x20has\x20not\x20been\x20processed.'},'skipUnmanaged':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':a132_0x235925(0x12d)},'sendUnmanaged':{'type':DataTypes['STRING'],'defaultValue':'Send'},'enableCustomerAttachment':{'type':DataTypes[a132_0x235925(0x145)],'defaultValue':![]},'enableCustomerCheckmarks':{'type':DataTypes[a132_0x235925(0x145)],'defaultValue':![]},'agentAvatar':{'type':DataTypes[a132_0x235925(0x13f)]},'showAgentAvatar':{'type':DataTypes[a132_0x235925(0x145)],'defaultValue':![]},'timezone':{'type':DataTypes['STRING']},'notificationTemplate':{'type':DataTypes[a132_0x235925(0x13f)],'defaultValue':function(){const _0x83917c=a132_0x235925;return _0x83917c(0x12b);}},'notificationSound':{'type':DataTypes[a132_0x235925(0x145)],'defaultValue':!![]},'notificationShake':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'hideWhenOffline':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'agentIdentifier':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':a132_0x235925(0x14b)},'waitForTheAssignedAgent':{'type':DataTypes[a132_0x235925(0x146)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':a132_0x235925(0x12f)},'verticalAlignment':{'type':DataTypes[a132_0x235925(0x146)],'defaultValue':0x1e},'messagesAlignment':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':a132_0x235925(0x135)},'defaultTitle':{'type':DataTypes[a132_0x235925(0x139)]},'customerAvatar':{'type':DataTypes[a132_0x235925(0x13f)]},'showCustomerAvatar':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'messageFontSize':{'type':DataTypes[a132_0x235925(0x146)],'defaultValue':0xc},'backgroundColor':{'type':DataTypes[a132_0x235925(0x139)],'allowNull':![],'defaultValue':a132_0x235925(0x148),'validate':{'notEmpty':!![]}},'queueTransfer':{'type':DataTypes[a132_0x235925(0x145)],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes[a132_0x235925(0x146)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes[a132_0x235925(0x145)],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes[a132_0x235925(0x146)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':'System'},'systemAvatar':{'type':DataTypes['TEXT']},'mandatoryDispositionPauseId':{'type':DataTypes[a132_0x235925(0x146)],'comment':a132_0x235925(0x13a)},'mandatoryDisposition':{'type':DataTypes[a132_0x235925(0x145)],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x2b0ad3){const _0x3b89c9=a132_0x235925;if(!_0x2b0ad3)this[_0x3b89c9(0x147)](_0x3b89c9(0x138),null);this[_0x3b89c9(0x147)](_0x3b89c9(0x129),_0x2b0ad3);}},'vidaooEscalation':{'type':DataTypes[a132_0x235925(0x145)],'defaultValue':![]},'vidaooApiKey':{'type':DataTypes[a132_0x235925(0x139)],'defaultValue':![]}};module[a132_0x235925(0x12e)][a132_0x235925(0x140)]=attributes; \ No newline at end of file +const a132_0x3982=['Comments','Leave\x20your\x20comments','parse','setDataValue','stringify','Skip','exports','website_alias','email','Thanks\x20you\x20for\x20your\x20time!','Powered\x20by\x20xCALLY','getDataValue','star','Form\x20submission\x20error','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','TEXT','Agent','New\x20offline\x20message\x20from\x20websiteName','alternate','generate','Form\x20properly\x20submitted','randomstring','name','BOOLEAN','ENUM','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.','bottom_right','#011F6A','Contact\x20us','input','All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.','INTEGER','Your\x20request\x20has\x20not\x20been\x20processed.','offlineForm','Chat','mandatoryDispositionPauseId','onlineForm','STRING','Send','rounded','textarea','Note','Type\x20a\x20message','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','thumb','attributes','#fafafa'];(function(_0x103b6c,_0x3c125){const _0x3982ef=function(_0x53e8ce){while(--_0x53e8ce){_0x103b6c['push'](_0x103b6c['shift']());}};_0x3982ef(++_0x3c125);}(a132_0x3982,0x18e));const a132_0x53e8=function(_0x103b6c,_0x3c125){_0x103b6c=_0x103b6c-0x114;let _0x3982ef=a132_0x3982[_0x103b6c];return _0x3982ef;};const a132_0x1254ec=a132_0x53e8;'use strict';const {DataTypes}=require('sequelize'),rs=require(a132_0x1254ec(0x11b)),attributes={'name':{'type':DataTypes['STRING'],'allowNull':![]},'address':{'type':DataTypes[a132_0x1254ec(0x12c)],'allowNull':![],'unique':'address'},'description':{'type':DataTypes[a132_0x1254ec(0x12c)]},'mapKey':{'type':DataTypes['STRING'],'defaultValue':a132_0x1254ec(0x13e)},'mapKeyOffline':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':a132_0x1254ec(0x13e)},'key':{'type':DataTypes[a132_0x1254ec(0x12c)],'allowNull':![]},'agentAlias':{'type':DataTypes['STRING'],'defaultValue':a132_0x1254ec(0x116)},'customerAlias':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':'Me'},'color':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':a132_0x1254ec(0x122),'validate':{'notEmpty':!![]}},'color_button':{'type':DataTypes[a132_0x1254ec(0x12c)],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}},'textColor':{'type':DataTypes[a132_0x1254ec(0x12c)],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}},'fontSize':{'type':DataTypes['INTEGER'],'defaultValue':0xf},'remote':{'type':DataTypes[a132_0x1254ec(0x12c)]},'animation':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':!![]},'header_shape':{'type':DataTypes[a132_0x1254ec(0x11e)](a132_0x1254ec(0x12e),'squared'),'defaultValue':a132_0x1254ec(0x12e)},'header_online':{'type':DataTypes['STRING'],'defaultValue':'We\x20are\x20here!'},'start_chat_button':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':a132_0x1254ec(0x129)},'offline_chat_button':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':'Send'},'header_offline':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':a132_0x1254ec(0x123)},'download_transcript':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'timeout':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'whiteLabel':{'type':DataTypes['STRING'],'defaultValue':a132_0x1254ec(0x140)},'defaultWhiteLabel':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':!![]},'sitepic':{'type':DataTypes[a132_0x1254ec(0x115)]},'closingQuestion':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':a132_0x1254ec(0x114)},'formSubmitSuccessMessage':{'type':DataTypes['STRING'],'defaultValue':a132_0x1254ec(0x11a)},'formSubmitFailureMessage':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':a132_0x1254ec(0x143)},'noteTitle':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':a132_0x1254ec(0x130)},'placeholderMessage':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':a132_0x1254ec(0x131)},'closingMessage':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':a132_0x1254ec(0x13f)},'closingMessageButton':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':'Send'},'skipMessageButton':{'type':DataTypes['STRING'],'defaultValue':a132_0x1254ec(0x13b)},'conditionAgreement':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':![]},'enableRating':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':![]},'enableFeedback':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'enableSendButton':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':![]},'feedbackTitle':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':'Feedback'},'ratingType':{'type':DataTypes[a132_0x1254ec(0x11e)]('star',a132_0x1254ec(0x133)),'defaultValue':a132_0x1254ec(0x142)},'ratingStarsNumber':{'type':DataTypes['INTEGER'],'defaultValue':0x5},'onlineForm':{'type':DataTypes['TEXT'],'defaultValue':function(){const _0x34b62d=a132_0x1254ec;return JSON['stringify']({'items':[{'type':_0x34b62d(0x124),'variable':null,'config':{'placeholder':'name','type':'text','required':!![]},'props':{'title':_0x34b62d(0x11c),'helpText':''}},{'type':_0x34b62d(0x124),'props':{'title':_0x34b62d(0x13e),'helpText':''},'config':{'required':!![],'placeholder':_0x34b62d(0x13e),'type':'email'},'variable':null}],'fromKey':0x1});},'get':function(){const _0x248e5c=a132_0x1254ec;return this['getDataValue']('onlineForm')?JSON[_0x248e5c(0x138)](this['getDataValue'](_0x248e5c(0x12b))):{};},'set':function(_0x1093e1){const _0x4d5517=a132_0x1254ec;return this['setDataValue'](_0x4d5517(0x12b),JSON[_0x4d5517(0x13a)](_0x1093e1));}},'offlineForm':{'type':DataTypes['TEXT'],'defaultValue':function(){const _0x21932b=a132_0x1254ec;return JSON['stringify']({'items':[{'type':_0x21932b(0x124),'props':{'title':_0x21932b(0x13e),'helpText':''},'config':{'required':!![],'placeholder':_0x21932b(0x13e),'type':'email'},'variable':null},{'type':_0x21932b(0x12f),'config':{'placeholder':_0x21932b(0x136)},'props':{'title':_0x21932b(0x136),'helpText':_0x21932b(0x137)}}],'fromKey':0x0});},'get':function(){const _0x598043=a132_0x1254ec;return this['getDataValue'](_0x598043(0x128))?JSON[_0x598043(0x138)](this[_0x598043(0x141)](_0x598043(0x128))):{};},'set':function(_0x1d4742){const _0xc0c56b=a132_0x1254ec;return this[_0xc0c56b(0x139)](_0xc0c56b(0x128),JSON[_0xc0c56b(0x13a)](_0x1d4742));}},'token':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':function(){const _0x32e0de=a132_0x1254ec;return rs[_0x32e0de(0x119)]();}},'autoclose':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':!![]},'enableCustomerWriting':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':![]},'forwardTranscript':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':![]},'forwardTranscriptMessage':{'type':DataTypes[a132_0x1254ec(0x12c)]},'forwardOffline':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':![]},'forwardOfflineAddress':{'type':DataTypes[a132_0x1254ec(0x12c)]},'waitingTitle':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':a132_0x1254ec(0x125)},'waitingMessage':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':a132_0x1254ec(0x120)},'offlineMessageSubject':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':a132_0x1254ec(0x117)},'offlineMessageBody':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':'You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:'},'enableUnmanagedNote':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'unmanagedMessage':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':a132_0x1254ec(0x127)},'skipUnmanaged':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':a132_0x1254ec(0x13b)},'sendUnmanaged':{'type':DataTypes['STRING'],'defaultValue':a132_0x1254ec(0x12d)},'enableCustomerAttachment':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':![]},'enableCustomerCheckmarks':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':![]},'agentAvatar':{'type':DataTypes[a132_0x1254ec(0x115)]},'showAgentAvatar':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':![]},'timezone':{'type':DataTypes['STRING']},'notificationTemplate':{'type':DataTypes['TEXT'],'defaultValue':function(){const _0x199eb9=a132_0x1254ec;return _0x199eb9(0x132);}},'notificationSound':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':!![]},'notificationShake':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':![]},'hideWhenOffline':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'agentIdentifier':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':a132_0x1254ec(0x13d)},'waitForTheAssignedAgent':{'type':DataTypes[a132_0x1254ec(0x126)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':a132_0x1254ec(0x121)},'verticalAlignment':{'type':DataTypes[a132_0x1254ec(0x126)],'defaultValue':0x1e},'messagesAlignment':{'type':DataTypes['STRING'],'defaultValue':a132_0x1254ec(0x118)},'defaultTitle':{'type':DataTypes['STRING']},'customerAvatar':{'type':DataTypes[a132_0x1254ec(0x115)]},'showCustomerAvatar':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':![]},'messageFontSize':{'type':DataTypes[a132_0x1254ec(0x126)],'defaultValue':0xc},'backgroundColor':{'type':DataTypes[a132_0x1254ec(0x12c)],'allowNull':![],'defaultValue':a132_0x1254ec(0x135),'validate':{'notEmpty':!![]}},'queueTransfer':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes[a132_0x1254ec(0x126)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes[a132_0x1254ec(0x126)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':'System'},'systemAvatar':{'type':DataTypes[a132_0x1254ec(0x115)]},'mandatoryDispositionPauseId':{'type':DataTypes['INTEGER'],'comment':a132_0x1254ec(0x11f)},'mandatoryDisposition':{'type':DataTypes[a132_0x1254ec(0x11d)],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x4ca047){const _0x1a9b31=a132_0x1254ec;if(!_0x4ca047)this['setDataValue'](_0x1a9b31(0x12a),null);this[_0x1a9b31(0x139)]('mandatoryDisposition',_0x4ca047);}},'vidaooEscalation':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'vidaooApiKey':{'type':DataTypes[a132_0x1254ec(0x12c)],'defaultValue':![]}};module[a132_0x1254ec(0x13c)][a132_0x1254ec(0x134)]=attributes; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.controller.js b/server/api/chatWebsite/chatWebsite.controller.js index 844b2c8..94da7eb 100644 --- a/server/api/chatWebsite/chatWebsite.controller.js +++ b/server/api/chatWebsite/chatWebsite.controller.js @@ -1 +1 @@ -const a133_0x2a3f=['transaction','json','../../config/logger','account','findAndCountAll','includeAll','ChatWebsite,\x20%s,\x20%s','*,*,*,*','include','false','secure','close','omit','server/files/images/avatars/default_avatar.png','replace','from','mandatoryDispositionPause','findOrCreate','Tag','update','error','service','client','priority','some','true','server/files/images/avatars/','CannedAnswer','ChatWebsiteId','../../config/environment','offset','host','offline','app','ChatOfflineMessage','send','name','isNil','CompanyId','model','MailAccount','Smtp','order','online','indexOf','fullname','x-real-port','fromKey','from\x20is\x20mandatory','referer','create','orderBy','push','../../mysqldb','message','threadId','util','remote','asc','userChatWebsite:remove','autoAssociation','cf-connecting-ip','filename','getAnswers','request','findAll','%s\x20%s','ChatInteraction','systemAvatar','body\x20is\x20mandatory\x20and\x20not\x20empty','user','path','format','set','ONLINE','sort','mapKeyOffline\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','catch','VIRTUAL','like','unmanaged','show','SendMail','getCustomerAvatar','../../components/parsers/qs','rawAttributes','stringify','./chatWebsite.socket','ChatMessage','getDispositions','Disposition','rows','emit','ChatWebsite','user-agent-parser','Applications','device','Unable\x20to\x20retrieve\x20the\x20current\x20user','Start','externalUrl','forwardOfflineAddress','chat','difference','join','ListId','length','chatLicenseExceeded','unknown','no\x20available\x20attributes','items','setUA','list','applications','getLogo','findOne','ContactId','user-agent','download','register','mapKey','undefined','x-forwarded-for','alignment','version','MailServerOut','color','destroy','increment','addProactiveActions','mapKeyOffline\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','filters','%s\x20%s\x20%s','notify','map','Interval','debug','count','keys','server/files/templates/chatOfflineMessage.ejs','List','auth','request\x20sent','existsSync','interval','offlineForm','getInteractions','x-real-ip','CmContact','type','updatedAt','iftime\x20%s','userProfileId','addLogo','AttachmentId','getLicense','addAnswer','intersection','UserProfileResource','forcedOwnership','getAvatar','jayson/promise','split','autoclose','get','file','sequelize','addAgents','role','UserId','lodash','attributes','unshift','getSnippet','status','sendMail','showCustomerAvatar','createdAt','render','readFileSync','Contact','addSystemAvatar','contact','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','custom','[%s][INTERVAL][%s]\x20%s\x20%s\x20(%s)','sendStatus','getOfflineMessages','email','ChatWebsite,\x20%s,\x20%s,\x20%s','where','end','userChatWebsite:save','EventManager','describe','CmList','addAvatar','offlineMessageSubject','created','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','headers','removeAgents','pass','fields','vendor','code','authentication','textColor','getProactiveActions','fieldName','iftime\x20%s,%s','Tags','http','utf8','addApplications','removeDispositions','getApplications','addCustomerAvatar','info','waitForTheAssignedAgent','toPairs','\x22%s\x22\x20<%s>','agentAvatar','customerAvatar','limit','User','UserProfileSection','virtual','timezone','merge','params','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','lastName','interaction','isArray','remoteAddress','server/files/images/logos/','tag','ids','getResult','ChatApplication','OFFLINE','body','options','addInteraction','Command','removeAnswers','then','firstName','customerIp','browser','ChatWebsites','internal','filter','Intervals','ChatProactiveAction','result','Owner','../../rediscache','query','pick','startRouting','messageId','sitepic','key','nolimit','mapKeyOffline','DESC','root','chatProactiveAction','first','index','getAgents'];(function(_0x32befd,_0x1898c5){const _0x2a3fe2=function(_0xd364c8){while(--_0xd364c8){_0x32befd['push'](_0x32befd['shift']());}};_0x2a3fe2(++_0x1898c5);}(a133_0x2a3f,0x18b));const a133_0xd364=function(_0x32befd,_0x1898c5){_0x32befd=_0x32befd-0x87;let _0x2a3fe2=a133_0x2a3f[_0x32befd];return _0x2a3fe2;};const a133_0x522783=a133_0xd364;'use strict';const Mustache=require('mustache'),util=require(a133_0x522783(0x154)),path=require(a133_0x522783(0x163)),ejs=require('ejs'),fs=require('fs'),_=require(a133_0x522783(0xb5)),querystring=require('querystring'),qs=require(a133_0x522783(0x170)),logger=require(a133_0x522783(0x11e))('api'),config=require(a133_0x522783(0x139)),{db}=require(a133_0x522783(0x151)),{Op,ValidationError}=require(a133_0x522783(0xb1)),{getSocket}=require(a133_0x522783(0x10d)),socket=getSocket();require(a133_0x522783(0x173))[a133_0x522783(0x192)](socket);const jayson=require(a133_0x522783(0xac)),client=jayson['client'][a133_0x522783(0xdf)]({'port':0x232c}),client9002=jayson['client'][a133_0x522783(0xdf)]({'port':0x232a}),client9003=jayson[a133_0x522783(0x132)]['http']({'port':0x232b});function respondWithRpcPromise(_0x309ccd,_0x558113,_0x4c3679,_0x3a182c){return new Promise(function(_0x454331,_0x97939c){const _0x4ad510=a133_0xd364,_0x27c64d=_0x3a182c||client;return _0x27c64d[_0x4ad510(0x15c)](_0x309ccd,_0x4c3679)['then'](function(_0xaf4eef){const _0x13d12b=_0x4ad510;logger['info'](_0x13d12b(0x122),_0x558113,_0x13d12b(0x99)),logger[_0x13d12b(0x93)](_0x13d12b(0xc8),_0x558113,_0x13d12b(0x99),JSON[_0x13d12b(0x172)](_0xaf4eef));if(_0xaf4eef['error']){if(_0xaf4eef[_0x13d12b(0x130)][_0x13d12b(0xd8)]===0x1f4)return logger['error'](_0x13d12b(0x122),_0x558113,_0xaf4eef[_0x13d12b(0x130)][_0x13d12b(0x152)]),_0x97939c(_0xaf4eef[_0x13d12b(0x130)][_0x13d12b(0x152)]);return logger['error'](_0x13d12b(0x122),_0x558113,_0xaf4eef[_0x13d12b(0x130)]['message']),_0x454331(_0xaf4eef[_0x13d12b(0x130)][_0x13d12b(0x152)]);}else logger['info'](_0x13d12b(0x122),_0x558113,_0x13d12b(0x99)),_0x454331(_0xaf4eef[_0x13d12b(0x10b)][_0x13d12b(0x152)]);})[_0x4ad510(0x169)](function(_0x9b48d3){const _0x2cd3a0=_0x4ad510;logger[_0x2cd3a0(0x130)](_0x2cd3a0(0x122),_0x558113,_0x9b48d3),_0x97939c(_0x9b48d3);});});}function respondWithStatusCode(_0x4b42bc,_0x4b514f){return _0x4b514f=_0x4b514f||0xcc,function(_0x5207a1){const _0x3b7a42=a133_0xd364;if(_0x5207a1)return _0x4b42bc[_0x3b7a42(0xc5)](_0x4b514f);return _0x4b42bc['status'](_0x4b514f)[_0x3b7a42(0xca)]();};}function respondWithResult(_0xfba67d,_0x47dda2){return _0x47dda2=_0x47dda2||0xc8,function(_0x24638b){const _0x83c523=a133_0xd364;if(_0x24638b)return _0xfba67d['status'](_0x47dda2)[_0x83c523(0x11d)](_0x24638b);};}function respondWithFilteredResult(_0x51f40a,_0x209d7c){return function(_0x91be78){const _0x46fb88=a133_0xd364;if(_0x91be78){const _0x537580=_0x91be78[_0x46fb88(0x94)],_0x40dfa7=_0x209d7c[_0x46fb88(0x13a)];let _0x89d94f=_0x209d7c[_0x46fb88(0x13a)]+_0x209d7c['limit'],_0x3204b1;return _0x89d94f>=_0x537580?(_0x89d94f=_0x537580,_0x3204b1=0xc8):_0x3204b1=0xce,_0x51f40a[_0x46fb88(0xb9)](_0x3204b1),_0x51f40a[_0x46fb88(0x165)]('Content-Range',_0x40dfa7+'-'+_0x89d94f+'/'+_0x537580)[_0x46fb88(0x11d)](_0x91be78);}return null;};}function saveUpdates(_0x165fb5){return function(_0x899d8a){const _0x1c4d29=a133_0xd364;if(_0x899d8a)return _0x899d8a[_0x1c4d29(0x12f)](_0x165fb5)[_0x1c4d29(0x102)](function(_0x2c16c3){return _0x2c16c3;});return null;};}function removeEntity(_0x17e7ea){return function(_0x589cb7){const _0x2936f2=a133_0xd364;if(_0x589cb7)return _0x589cb7['destroy']()[_0x2936f2(0x102)](function(){const _0x1393a7=_0x2936f2,_0x228029=_0x589cb7['get']({'plain':!![]}),_0x4e0251='ChatWebsites';return db[_0x1393a7(0xa9)][_0x1393a7(0x8a)]({'where':{'type':_0x4e0251,'resourceId':_0x228029['id']}})[_0x1393a7(0x102)](function(){return _0x589cb7;});})['then'](function(){const _0xa7de33=_0x2936f2;_0x17e7ea[_0xa7de33(0xb9)](0xcc)['end']();});};}function handleEntityNotFound(_0x316483){return function(_0x130b84){const _0x22e32b=a133_0xd364;return!_0x130b84&&_0x316483[_0x22e32b(0xc5)](0x194),_0x130b84;};}function handleError(_0x3012af,_0x35ca89){return _0x35ca89=_0x35ca89||0x1f4,function(_0x11c844){const _0x354088=a133_0xd364;logger['error'](_0x11c844['stack']),_0x11c844[_0x354088(0x140)]&&delete _0x11c844[_0x354088(0x140)],_0x3012af['status'](_0x35ca89)[_0x354088(0x13f)](_0x11c844);};}exports[a133_0x522783(0x11a)]=function(_0x4576e0,_0x40e08a){const _0xe0008a=a133_0x522783;let _0x51cffa={'include':[{'model':db['Pause'],'as':_0xe0008a(0x12c)}]};const _0x5b9ba1={},_0x3a4073={'count':0x0,'rows':[]},_0x557e81=_[_0xe0008a(0x91)](db[_0xe0008a(0x179)][_0xe0008a(0x171)],function(_0x36736d){const _0x542437=_0xe0008a;return{'name':_0x36736d[_0x542437(0xdc)],'type':_0x36736d[_0x542437(0xa0)][_0x542437(0x113)]};});_0x5b9ba1['model']=_['map'](_0x557e81,_0xe0008a(0x140)),_0x5b9ba1['query']=_[_0xe0008a(0x95)](_0x4576e0[_0xe0008a(0x10e)]),_0x5b9ba1[_0xe0008a(0x8e)]=_['intersection'](_0x5b9ba1[_0xe0008a(0x143)],_0x5b9ba1[_0xe0008a(0x10e)]),_0x51cffa[_0xe0008a(0xb6)]=_[_0xe0008a(0xa8)](_0x5b9ba1['model'],qs[_0xe0008a(0xd6)](_0x4576e0['query'][_0xe0008a(0xd6)])),_0x51cffa[_0xe0008a(0xb6)]=_0x51cffa[_0xe0008a(0xb6)][_0xe0008a(0x185)]?_0x51cffa[_0xe0008a(0xb6)]:_0x5b9ba1['model'];typeof _0x4576e0['query'][_0xe0008a(0x114)]===_0xe0008a(0x194)&&(_0x51cffa[_0xe0008a(0xeb)]=qs[_0xe0008a(0xeb)](_0x4576e0[_0xe0008a(0x10e)]['limit']),_0x51cffa[_0xe0008a(0x13a)]=qs[_0xe0008a(0x13a)](_0x4576e0[_0xe0008a(0x10e)]['offset']));_0x51cffa[_0xe0008a(0x146)]=qs['sort'](_0x4576e0[_0xe0008a(0x10e)][_0xe0008a(0x167)]),_0x51cffa[_0xe0008a(0xc9)]=qs[_0xe0008a(0x8e)](_[_0xe0008a(0x10f)](_0x4576e0[_0xe0008a(0x10e)],_0x5b9ba1[_0xe0008a(0x8e)]),_0x557e81);_0x4576e0['query'][_0xe0008a(0x108)]&&(_0x51cffa[_0xe0008a(0xc9)]=_[_0xe0008a(0xf0)](_0x51cffa[_0xe0008a(0xc9)],{[Op['or']]:_[_0xe0008a(0x91)](_0x557e81,function(_0x1eb948){const _0x34ca6f=_0xe0008a;if(_0x1eb948[_0x34ca6f(0xa0)]!==_0x34ca6f(0x16a)){const _0x5405b1={};return _0x5405b1[_0x1eb948[_0x34ca6f(0x140)]]={[Op[_0x34ca6f(0x16b)]]:'%'+_0x4576e0[_0x34ca6f(0x10e)][_0x34ca6f(0x108)]+'%'},_0x5405b1;}})}));_0x51cffa=_['merge']({},_0x51cffa,_0x4576e0['options']);const _0x470045={'where':_0x51cffa[_0xe0008a(0xc9)]};return db[_0xe0008a(0x179)]['count'](_0x470045)[_0xe0008a(0x102)](function(_0x1e77de){const _0x39da20=_0xe0008a;return _0x3a4073[_0x39da20(0x94)]=_0x1e77de,_0x4576e0[_0x39da20(0x10e)]['includeAll']&&(_0x51cffa[_0x39da20(0x124)]=[{'all':!![]}]),db[_0x39da20(0x179)]['findAll'](_0x51cffa);})[_0xe0008a(0x102)](function(_0x5acdc7){const _0x481801=_0xe0008a;return _0x3a4073[_0x481801(0x177)]=_0x5acdc7,_0x3a4073;})[_0xe0008a(0x102)](respondWithFilteredResult(_0x40e08a,_0x51cffa))[_0xe0008a(0x169)](handleError(_0x40e08a,null));},exports[a133_0x522783(0x16d)]=function(_0x581e8e,_0x4e6a39){const _0x2304ad=a133_0x522783;let _0x2e4c90={'raw':![],'where':{'id':_0x581e8e['params']['id']},'include':[{'model':db['Pause'],'as':_0x2304ad(0x12c)}]};const _0x440d2b={};return _0x440d2b['model']=_[_0x2304ad(0x95)](db[_0x2304ad(0x179)][_0x2304ad(0x171)]),_0x440d2b[_0x2304ad(0x10e)]=_['keys'](_0x581e8e[_0x2304ad(0x10e)]),_0x440d2b[_0x2304ad(0x8e)]=_[_0x2304ad(0xa8)](_0x440d2b[_0x2304ad(0x143)],_0x440d2b['query']),_0x2e4c90[_0x2304ad(0xb6)]=_[_0x2304ad(0xa8)](_0x440d2b['model'],qs['fields'](_0x581e8e[_0x2304ad(0x10e)][_0x2304ad(0xd6)])),_0x2e4c90['attributes']=_0x2e4c90['attributes'][_0x2304ad(0x185)]?_0x2e4c90[_0x2304ad(0xb6)]:_0x440d2b[_0x2304ad(0x143)],_0x581e8e[_0x2304ad(0x10e)][_0x2304ad(0x121)]&&(_0x2e4c90[_0x2304ad(0x124)]=[{'all':!![]}]),_0x2e4c90=_[_0x2304ad(0xf0)]({},_0x2e4c90,_0x581e8e[_0x2304ad(0xfe)]),db['ChatWebsite'][_0x2304ad(0x18e)](_0x2e4c90)['then'](handleEntityNotFound(_0x4e6a39,null))['then'](respondWithResult(_0x4e6a39,null))[_0x2304ad(0x169)](handleError(_0x4e6a39,null));},exports[a133_0x522783(0x14e)]=function(_0x13ae42,_0x53b90b){const _0x2c4385=a133_0x522783;return db[_0x2c4385(0x179)][_0x2c4385(0x14e)](_0x13ae42[_0x2c4385(0xfd)],{})['then'](function(_0xe6ae5f){const _0x1ae45a=_0x2c4385,_0x20c604=_0x13ae42['user'][_0x1ae45a(0xaf)]({'plain':!![]});if(!_0x20c604)throw new Error(_0x1ae45a(0x17d));if(_0x20c604[_0x1ae45a(0xb3)]===_0x1ae45a(0x162)){const _0x5ea108=_0xe6ae5f[_0x1ae45a(0xaf)]({'plain':!![]}),_0x5b478c=_0x1ae45a(0x106);return db[_0x1ae45a(0xed)][_0x1ae45a(0x18e)]({'where':{'name':_0x5b478c,'userProfileId':_0x20c604[_0x1ae45a(0xa3)]},'raw':!![]})[_0x1ae45a(0x102)](function(_0x27aed5){const _0x55ea7b=_0x1ae45a;return _0x27aed5&&_0x27aed5[_0x55ea7b(0x158)]===0x0?db[_0x55ea7b(0xa9)][_0x55ea7b(0x14e)]({'name':_0x5ea108[_0x55ea7b(0x140)],'resourceId':_0x5ea108['id'],'type':_0x27aed5[_0x55ea7b(0x140)],'sectionId':_0x27aed5['id']},{})[_0x55ea7b(0x102)](function(){return _0xe6ae5f;}):_0xe6ae5f;})[_0x1ae45a(0x169)](function(_0x563aa1){const _0x199e8b=_0x1ae45a;logger[_0x199e8b(0x130)](_0x199e8b(0xd2),_0x563aa1);throw _0x563aa1;});}return _0xe6ae5f;})[_0x2c4385(0x102)](respondWithResult(_0x53b90b,0xc9))[_0x2c4385(0x169)](handleError(_0x53b90b,null));},exports[a133_0x522783(0x12f)]=function(_0x3ac7c4,_0x134681){const _0x45a607=a133_0x522783;return _0x3ac7c4['body']['id']&&delete _0x3ac7c4[_0x45a607(0xfd)]['id'],db['ChatWebsite']['findOne']({'where':{'id':_0x3ac7c4['params']['id']},'include':[{'model':db['Pause'],'as':_0x45a607(0x12c)}]})['then'](handleEntityNotFound(_0x134681,null))['then'](saveUpdates(_0x3ac7c4[_0x45a607(0xfd)],null))[_0x45a607(0x102)](respondWithResult(_0x134681,null))[_0x45a607(0x169)](handleError(_0x134681,null));},exports['destroy']=function(_0x1f0f5c,_0xe5415){const _0x361557=a133_0x522783;return db['ChatWebsite']['findOne']({'where':{'id':_0x1f0f5c[_0x361557(0xf1)]['id']}})[_0x361557(0x102)](handleEntityNotFound(_0xe5415,null))[_0x361557(0x102)](removeEntity(_0xe5415,null))[_0x361557(0x169)](handleError(_0xe5415,null));},exports[a133_0x522783(0xcd)]=function(_0x5d48b9,_0x2f0fd4){const _0x5ecce1=a133_0x522783;return db['ChatWebsite'][_0x5ecce1(0xcd)]()[_0x5ecce1(0x102)](respondWithResult(_0x2f0fd4,null))[_0x5ecce1(0x169)](handleError(_0x2f0fd4,null));},exports['addDisposition']=function(_0x243c0c,_0x1f6f6e){const _0x34d79f=a133_0x522783;return _0x243c0c['body']['id']&&delete _0x243c0c['body']['id'],db[_0x34d79f(0x179)][_0x34d79f(0x18e)]({'where':{'id':_0x243c0c[_0x34d79f(0xf1)]['id']}})['then'](handleEntityNotFound(_0x1f6f6e,null))['then'](function(_0x4e3eb4){const _0x1aeef7=_0x34d79f;if(_0x4e3eb4)return _0x243c0c[_0x1aeef7(0xfd)][_0x1aeef7(0x138)]=_0x4e3eb4['id'],db[_0x1aeef7(0x176)][_0x1aeef7(0x14e)](_0x243c0c['body']);})[_0x34d79f(0x102)](respondWithResult(_0x1f6f6e,null))[_0x34d79f(0x169)](handleError(_0x1f6f6e,null));},exports[a133_0x522783(0x175)]=function(_0xbc60c4,_0x3f7bf2){const _0x4e9671=a133_0x522783;let _0x39d9be={'raw':![],'where':{}};const _0x111a72={},_0x46d4aa={'count':0x0,'rows':[]};return db[_0x4e9671(0x179)][_0x4e9671(0x18e)]({'where':{'id':_0xbc60c4[_0x4e9671(0xf1)]['id']}})[_0x4e9671(0x102)](handleEntityNotFound(_0x3f7bf2,null))['then'](function(_0x57f589){const _0x491681=_0x4e9671;if(_0x57f589)return _0x111a72[_0x491681(0x143)]=_[_0x491681(0x95)](db[_0x491681(0x176)]['rawAttributes']),_0x111a72[_0x491681(0x10e)]=_[_0x491681(0x95)](_0xbc60c4[_0x491681(0x10e)]),_0x111a72[_0x491681(0x8e)]=_[_0x491681(0xa8)](_0x111a72[_0x491681(0x143)],_0x111a72[_0x491681(0x10e)]),_0x39d9be['attributes']=_[_0x491681(0xa8)](_0x111a72[_0x491681(0x143)],qs[_0x491681(0xd6)](_0xbc60c4[_0x491681(0x10e)][_0x491681(0xd6)])),_0x39d9be['attributes']=_0x39d9be[_0x491681(0xb6)]['length']?_0x39d9be[_0x491681(0xb6)]:_0x111a72[_0x491681(0x143)],typeof _0xbc60c4[_0x491681(0x10e)][_0x491681(0x114)]===_0x491681(0x194)&&(_0x39d9be['limit']=qs[_0x491681(0xeb)](_0xbc60c4[_0x491681(0x10e)][_0x491681(0xeb)]),_0x39d9be[_0x491681(0x13a)]=qs[_0x491681(0x13a)](_0xbc60c4[_0x491681(0x10e)]['offset'])),_0x39d9be[_0x491681(0x146)]=qs['sort'](_0xbc60c4[_0x491681(0x10e)][_0x491681(0x167)]),_0x39d9be[_0x491681(0xc9)]=qs[_0x491681(0x8e)](_[_0x491681(0x10f)](_0xbc60c4[_0x491681(0x10e)],_0x111a72[_0x491681(0x8e)])),_0x39d9be[_0x491681(0xc9)][_0x491681(0x138)]=_0x57f589['id'],_0xbc60c4[_0x491681(0x10e)][_0x491681(0x108)]&&(_0x39d9be[_0x491681(0xc9)]=_['merge'](_0x39d9be[_0x491681(0xc9)],{[Op['or']]:_[_0x491681(0x91)](_0x39d9be[_0x491681(0xb6)],function(_0x2439b0){const _0x34a7c0=_0x491681,_0x430987={};return _0x430987[_0x2439b0]={[Op[_0x34a7c0(0x16b)]]:'%'+_0xbc60c4[_0x34a7c0(0x10e)][_0x34a7c0(0x108)]+'%'},_0x430987;})})),_0x39d9be=_[_0x491681(0xf0)]({},_0x39d9be,_0xbc60c4[_0x491681(0xfe)]),db[_0x491681(0x176)][_0x491681(0x94)]({'where':_0x39d9be[_0x491681(0xc9)]})[_0x491681(0x102)](function(_0x5178dd){const _0x5ca580=_0x491681;return _0x46d4aa[_0x5ca580(0x94)]=_0x5178dd,_0xbc60c4[_0x5ca580(0x10e)][_0x5ca580(0x121)]&&(_0x39d9be[_0x5ca580(0x124)]=[{'all':!![]}]),db[_0x5ca580(0x176)][_0x5ca580(0x15d)](_0x39d9be);})[_0x491681(0x102)](function(_0x56c71b){const _0x54592c=_0x491681;return _0x46d4aa[_0x54592c(0x177)]=_0x56c71b,_0x46d4aa;});})[_0x4e9671(0x102)](respondWithFilteredResult(_0x3f7bf2,_0x39d9be))['catch'](handleError(_0x3f7bf2,null));},exports['removeDispositions']=function(_0x3cc1bc,_0x326382){const _0x1ad8f9=a133_0x522783;return db['ChatWebsite']['findOne']({'where':{'id':_0x3cc1bc[_0x1ad8f9(0xf1)]['id']}})[_0x1ad8f9(0x102)](handleEntityNotFound(_0x326382,null))[_0x1ad8f9(0x102)](function(_0x9a0f6e){const _0x27a03d=_0x1ad8f9;if(_0x9a0f6e)return _0x9a0f6e[_0x27a03d(0xe2)](_0x3cc1bc[_0x27a03d(0x10e)][_0x27a03d(0xf9)]);})[_0x1ad8f9(0x102)](respondWithStatusCode(_0x326382,null))['catch'](handleError(_0x326382,null));},exports[a133_0x522783(0xa7)]=function(_0x29efe1,_0x1ffaec){const _0xe507dc=a133_0x522783;return _0x29efe1[_0xe507dc(0xfd)]['id']&&delete _0x29efe1[_0xe507dc(0xfd)]['id'],db[_0xe507dc(0x179)][_0xe507dc(0x18e)]({'where':{'id':_0x29efe1[_0xe507dc(0xf1)]['id']}})[_0xe507dc(0x102)](handleEntityNotFound(_0x1ffaec,null))['then'](function(_0x49fa35){const _0x4acd96=_0xe507dc;if(_0x49fa35)return _0x29efe1[_0x4acd96(0xfd)]['ChatWebsiteId']=_0x49fa35['id'],db['CannedAnswer'][_0x4acd96(0x14e)](_0x29efe1[_0x4acd96(0xfd)]);})['then'](respondWithResult(_0x1ffaec,null))['catch'](handleError(_0x1ffaec,null));},exports[a133_0x522783(0x15b)]=function(_0x2d9a74,_0x1ee756){const _0x228731=a133_0x522783;let _0x383b0a={'raw':![],'where':{}};const _0xe04660={},_0x44a611={'count':0x0,'rows':[]};return db['ChatWebsite'][_0x228731(0x18e)]({'where':{'id':_0x2d9a74[_0x228731(0xf1)]['id']}})['then'](handleEntityNotFound(_0x1ee756,null))[_0x228731(0x102)](function(_0x4bc2ca){const _0x3f1a30=_0x228731;if(_0x4bc2ca)return _0xe04660['model']=_[_0x3f1a30(0x95)](db[_0x3f1a30(0x137)][_0x3f1a30(0x171)]),_0xe04660[_0x3f1a30(0x10e)]=_['keys'](_0x2d9a74[_0x3f1a30(0x10e)]),_0xe04660[_0x3f1a30(0x8e)]=_[_0x3f1a30(0xa8)](_0xe04660[_0x3f1a30(0x143)],_0xe04660[_0x3f1a30(0x10e)]),_0x383b0a[_0x3f1a30(0xb6)]=_[_0x3f1a30(0xa8)](_0xe04660[_0x3f1a30(0x143)],qs[_0x3f1a30(0xd6)](_0x2d9a74[_0x3f1a30(0x10e)][_0x3f1a30(0xd6)])),_0x383b0a[_0x3f1a30(0xb6)]=_0x383b0a[_0x3f1a30(0xb6)]['length']?_0x383b0a[_0x3f1a30(0xb6)]:_0xe04660[_0x3f1a30(0x143)],typeof _0x2d9a74[_0x3f1a30(0x10e)][_0x3f1a30(0x114)]===_0x3f1a30(0x194)&&(_0x383b0a[_0x3f1a30(0xeb)]=qs[_0x3f1a30(0xeb)](_0x2d9a74[_0x3f1a30(0x10e)][_0x3f1a30(0xeb)]),_0x383b0a[_0x3f1a30(0x13a)]=qs['offset'](_0x2d9a74[_0x3f1a30(0x10e)][_0x3f1a30(0x13a)])),_0x383b0a[_0x3f1a30(0x146)]=qs[_0x3f1a30(0x167)](_0x2d9a74[_0x3f1a30(0x10e)][_0x3f1a30(0x167)]),_0x383b0a['where']=qs['filters'](_[_0x3f1a30(0x10f)](_0x2d9a74[_0x3f1a30(0x10e)],_0xe04660['filters'])),_0x383b0a['where'][_0x3f1a30(0x138)]=_0x4bc2ca['id'],_0x2d9a74[_0x3f1a30(0x10e)][_0x3f1a30(0x108)]&&(_0x383b0a['where']=_[_0x3f1a30(0xf0)](_0x383b0a['where'],{[Op['or']]:_['map'](_0x383b0a[_0x3f1a30(0xb6)],function(_0x1608b7){const _0x569154=_0x3f1a30,_0x182054={};return _0x182054[_0x1608b7]={[Op[_0x569154(0x16b)]]:'%'+_0x2d9a74['query'][_0x569154(0x108)]+'%'},_0x182054;})})),_0x383b0a=_['merge']({},_0x383b0a,_0x2d9a74[_0x3f1a30(0xfe)]),db[_0x3f1a30(0x137)][_0x3f1a30(0x94)]({'where':_0x383b0a[_0x3f1a30(0xc9)]})[_0x3f1a30(0x102)](function(_0x5ceee2){const _0x1e553a=_0x3f1a30;return _0x44a611[_0x1e553a(0x94)]=_0x5ceee2,_0x2d9a74[_0x1e553a(0x10e)][_0x1e553a(0x121)]&&(_0x383b0a[_0x1e553a(0x124)]=[{'all':!![]}]),db[_0x1e553a(0x137)][_0x1e553a(0x15d)](_0x383b0a);})[_0x3f1a30(0x102)](function(_0x4b1f63){return _0x44a611['rows']=_0x4b1f63,_0x44a611;});})['then'](respondWithFilteredResult(_0x1ee756,_0x383b0a))[_0x228731(0x169)](handleError(_0x1ee756,null));},exports[a133_0x522783(0x101)]=function(_0xc289d5,_0x3d1b9a){const _0x2df34d=a133_0x522783;return db['ChatWebsite'][_0x2df34d(0x18e)]({'where':{'id':_0xc289d5[_0x2df34d(0xf1)]['id']}})[_0x2df34d(0x102)](handleEntityNotFound(_0x3d1b9a,null))['then'](function(_0x2ea87f){const _0x113cc1=_0x2df34d;if(_0x2ea87f)return _0x2ea87f[_0x113cc1(0x101)](_0xc289d5[_0x113cc1(0x10e)][_0x113cc1(0xf9)]);})[_0x2df34d(0x102)](respondWithStatusCode(_0x3d1b9a,null))['catch'](handleError(_0x3d1b9a,null));},exports[a133_0x522783(0xa4)]=function(_0x26140b,_0x1352b7){const _0x450542=a133_0x522783;return _0x26140b[_0x450542(0xfd)][_0x450542(0x112)]=_0x26140b[_0x450542(0xb0)][_0x450542(0x15a)],db[_0x450542(0x179)][_0x450542(0x18e)]({'where':{'id':_0x26140b[_0x450542(0xf1)]['id']}})[_0x450542(0x102)](handleEntityNotFound(_0x1352b7,null))['then'](saveUpdates(_0x26140b[_0x450542(0xfd)],null))['then'](respondWithResult(_0x1352b7,null))['catch'](handleError(_0x1352b7,null));},exports[a133_0x522783(0xcf)]=function(_0x1c5f7c,_0x10985a){const _0x67d4d2=a133_0x522783;return _0x1c5f7c[_0x67d4d2(0xfd)][_0x67d4d2(0xe9)]=_0x1c5f7c[_0x67d4d2(0xb0)][_0x67d4d2(0x15a)],db[_0x67d4d2(0x179)][_0x67d4d2(0x18e)]({'where':{'id':_0x1c5f7c[_0x67d4d2(0xf1)]['id']}})[_0x67d4d2(0x102)](handleEntityNotFound(_0x10985a,null))[_0x67d4d2(0x102)](saveUpdates(_0x1c5f7c[_0x67d4d2(0xfd)],null))[_0x67d4d2(0x102)](respondWithResult(_0x10985a,null))[_0x67d4d2(0x169)](handleError(_0x10985a,null));},exports[a133_0x522783(0xe4)]=function(_0x3968a1,_0xcd55aa){const _0x2a02e4=a133_0x522783;return _0x3968a1[_0x2a02e4(0xfd)][_0x2a02e4(0xea)]=_0x3968a1[_0x2a02e4(0xb0)]['filename'],db['ChatWebsite'][_0x2a02e4(0x18e)]({'where':{'id':_0x3968a1[_0x2a02e4(0xf1)]['id']}})[_0x2a02e4(0x102)](handleEntityNotFound(_0xcd55aa,null))['then'](saveUpdates(_0x3968a1[_0x2a02e4(0xfd)],null))[_0x2a02e4(0x102)](respondWithResult(_0xcd55aa,null))[_0x2a02e4(0x169)](handleError(_0xcd55aa,null));},exports[a133_0x522783(0xc0)]=function(_0x1020cb,_0xffdbc3){const _0x42c187=a133_0x522783;return _0x1020cb[_0x42c187(0xfd)]['systemAvatar']=_0x1020cb[_0x42c187(0xb0)]['filename'],db[_0x42c187(0x179)][_0x42c187(0x18e)]({'where':{'id':_0x1020cb[_0x42c187(0xf1)]['id']}})[_0x42c187(0x102)](handleEntityNotFound(_0xffdbc3,null))[_0x42c187(0x102)](saveUpdates(_0x1020cb[_0x42c187(0xfd)],null))[_0x42c187(0x102)](respondWithResult(_0xffdbc3,null))['catch'](handleError(_0xffdbc3,null));},exports[a133_0x522783(0x18d)]=function(_0xb76b55,_0xcf9315){const _0x414f63=a133_0x522783;let _0x3a9b2e=path['join'](config[_0x414f63(0x117)],'server/files/images/logos/default_logo.svg');const _0x6483c9={'where':{'id':_0xb76b55[_0x414f63(0xf1)]['id']},'attributes':['id',_0x414f63(0x112)],'raw':!![]};let _0x35a9b6=![];return require('../../config/license/util')[_0x414f63(0xa6)]()['then'](function(_0x5811a0){const _0xabb3d0=_0x414f63;_0x5811a0&&(_0x35a9b6=_0x5811a0[_0xabb3d0(0xc3)]);})[_0x414f63(0x102)](function(){const _0x3a82ea=_0x414f63;return db[_0x3a82ea(0x179)][_0x3a82ea(0x18e)](_0x6483c9);})[_0x414f63(0x102)](handleEntityNotFound(_0xcf9315,null))[_0x414f63(0x102)](function(_0x316e27){const _0x203fca=_0x414f63;if(_0x316e27)return!_[_0x203fca(0x141)](_0x316e27[_0x203fca(0x112)])&&(fs[_0x203fca(0x9a)](path[_0x203fca(0x183)](config['root'],_0x203fca(0xf7),_0x316e27[_0x203fca(0x112)]))&&_0x35a9b6&&(_0x3a9b2e=path['join'](config[_0x203fca(0x117)],_0x203fca(0xf7),_0x316e27[_0x203fca(0x112)]))),_0xcf9315[_0x203fca(0x191)](_0x3a9b2e);})[_0x414f63(0x169)](handleError(_0xcf9315,null));},exports[a133_0x522783(0xab)]=function(_0x52a028,_0x1b6a75){const _0x3b51e1=a133_0x522783;let _0x5718ca=path[_0x3b51e1(0x183)](config[_0x3b51e1(0x117)],_0x3b51e1(0x129));const _0x2fd39f={'where':{'id':_0x52a028[_0x3b51e1(0xf1)]['id']},'attributes':['id',_0x3b51e1(0xe9)],'raw':!![]};return db[_0x3b51e1(0x179)]['findOne'](_0x2fd39f)[_0x3b51e1(0x102)](handleEntityNotFound(_0x1b6a75,null))['then'](function(_0x31b147){const _0x3a3008=_0x3b51e1;if(_0x31b147)return!_[_0x3a3008(0x141)](_0x31b147[_0x3a3008(0xe9)])&&(fs[_0x3a3008(0x9a)](path[_0x3a3008(0x183)](config['root'],_0x3a3008(0x136),_0x31b147[_0x3a3008(0xe9)]))&&(_0x5718ca=path[_0x3a3008(0x183)](config[_0x3a3008(0x117)],_0x3a3008(0x136),_0x31b147['agentAvatar']))),_0x1b6a75[_0x3a3008(0x191)](_0x5718ca);})[_0x3b51e1(0x169)](handleError(_0x1b6a75,null));},exports[a133_0x522783(0x16f)]=function(_0x5620ea,_0x27d36b){const _0x4d1f71=a133_0x522783;let _0x2e420e=path[_0x4d1f71(0x183)](config['root'],'server/files/images/avatars/customer_avatar.png');const _0x3c0b2c={'where':{'id':_0x5620ea[_0x4d1f71(0xf1)]['id']},'attributes':['id',_0x4d1f71(0xea),_0x4d1f71(0xbb)],'raw':!![]};return db['ChatWebsite'][_0x4d1f71(0x18e)](_0x3c0b2c)[_0x4d1f71(0x102)](handleEntityNotFound(_0x27d36b,null))['then'](function(_0x2ba691){const _0x48763d=_0x4d1f71;if(_0x2ba691)return!_['isNil'](_0x2ba691['customerAvatar'])&&(fs[_0x48763d(0x9a)](path[_0x48763d(0x183)](config[_0x48763d(0x117)],_0x48763d(0x136),_0x2ba691['customerAvatar']))&&_0x2ba691[_0x48763d(0xbb)]&&(_0x2e420e=path['join'](config[_0x48763d(0x117)],_0x48763d(0x136),_0x2ba691[_0x48763d(0xea)]))),_0x27d36b[_0x48763d(0x191)](_0x2e420e);})[_0x4d1f71(0x169)](handleError(_0x27d36b,null));},exports['getSystemAvatar']=function(_0x35b40d,_0x32c1b0){const _0x50c896=a133_0x522783;let _0x1d0478=path['join'](config['root'],'server/files/images/avatars/system_avatar.png');const _0x40c44f={'where':{'id':_0x35b40d[_0x50c896(0xf1)]['id']},'attributes':['id',_0x50c896(0x160)],'raw':!![]};return db[_0x50c896(0x179)][_0x50c896(0x18e)](_0x40c44f)['then'](handleEntityNotFound(_0x32c1b0,null))[_0x50c896(0x102)](function(_0x1c1bfd){const _0x910095=_0x50c896;if(_0x1c1bfd)return!_[_0x910095(0x141)](_0x1c1bfd['systemAvatar'])&&(fs['existsSync'](path['join'](config[_0x910095(0x117)],_0x910095(0x136),_0x1c1bfd[_0x910095(0x160)]))&&(_0x1d0478=path['join'](config[_0x910095(0x117)],_0x910095(0x136),_0x1c1bfd[_0x910095(0x160)]))),_0x32c1b0[_0x910095(0x191)](_0x1d0478);})[_0x50c896(0x169)](handleError(_0x32c1b0,null));},exports['notify']=function(_0x30d364,_0x5b0765){const _0x81ba83=a133_0x522783,_0x39670a=require(_0x81ba83(0x17a)),_0x6dd09=new _0x39670a(),_0x5d2e52=_0x6dd09[_0x81ba83(0x18a)](_0x30d364[_0x81ba83(0xd3)][_0x81ba83(0x190)])[_0x81ba83(0xfa)](),_0x109b05={'body':_0x30d364[_0x81ba83(0xfd)],'channel':_0x81ba83(0x181)};let _0x1550c6=[],_0x398ae9=[];const _0xa9845a={};let _0x19d6cf=![];return db['CmContact'][_0x81ba83(0xcd)]()[_0x81ba83(0x102)](function(_0x26d8b1){const _0x29fe13=_0x81ba83;if(!_0x26d8b1)throw new ValidationError('no\x20available\x20attributes');_0x1550c6=_[_0x29fe13(0x182)](_[_0x29fe13(0x95)](_0x26d8b1),['createdAt',_0x29fe13(0xa1)]),_0x398ae9=_[_0x29fe13(0x182)](_[_0x29fe13(0x95)](_0x26d8b1),[_0x29fe13(0xbc),'updatedAt','CompanyId',_0x29fe13(0x184)]);_0x30d364[_0x29fe13(0xfd)]['id']&&delete _0x30d364[_0x29fe13(0xfd)]['id'];if(_[_0x29fe13(0x141)](_0x30d364[_0x29fe13(0xfd)]['from']))throw new ValidationError(_0x29fe13(0x14c));if(_['isNil'](_0x30d364[_0x29fe13(0xfd)]['body'])||_0x30d364[_0x29fe13(0xfd)][_0x29fe13(0xfd)]==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x29fe13(0x141)](_0x30d364[_0x29fe13(0xfd)][_0x29fe13(0x193)]))throw new ValidationError(_0x29fe13(0xc2)+_0x398ae9);if(!_['includes'](_0x398ae9,_0x30d364[_0x29fe13(0xfd)][_0x29fe13(0x193)]))throw new ValidationError(_0x29fe13(0xf2)+_0x398ae9);_0xa9845a[_0x30d364[_0x29fe13(0xfd)]['mapKey']]=_0x30d364[_0x29fe13(0xfd)]['from'];})[_0x81ba83(0x102)](function(){const _0x2be3bb=_0x81ba83;return db[_0x2be3bb(0x179)][_0x2be3bb(0x18e)]({'where':{'id':_0x30d364[_0x2be3bb(0xf1)]['id']},'include':[{'model':db[_0x2be3bb(0xce)],'as':_0x2be3bb(0x97),'include':[{'model':db['CmContact'],'as':'Contacts','where':_0xa9845a,'limit':0x1,'order':[[_0x2be3bb(0xa1),_0x2be3bb(0x116)]]}]},{'model':db[_0x2be3bb(0xfb)],'as':_0x2be3bb(0x17b)}]});})[_0x81ba83(0x102)](handleEntityNotFound(_0x5b0765,null))[_0x81ba83(0x102)](function(_0x4221ae){const _0x2fb95f=_0x81ba83;if(_0x4221ae&&_0x4221ae[_0x2fb95f(0x97)]){_0x109b05[_0x2fb95f(0x11f)]=_0x4221ae,_0x109b05[_0x2fb95f(0x18c)]=_0x4221ae[_0x2fb95f(0x17b)],_0x109b05[_0x2fb95f(0x18b)]=_0x4221ae[_0x2fb95f(0x97)],_0x109b05[_0x2fb95f(0x18c)]=_[_0x2fb95f(0x14f)](_0x109b05['applications'],[_0x2fb95f(0x133)],[_0x2fb95f(0x156)]);_0x109b05[_0x2fb95f(0x11f)][_0x2fb95f(0x17b)]&&delete _0x109b05['account'][_0x2fb95f(0x17b)];if(_0x109b05['account']['List']&&_0x109b05[_0x2fb95f(0x11f)][_0x2fb95f(0x97)]['Contacts']['length'])return _0x109b05[_0x2fb95f(0x11f)][_0x2fb95f(0x97)]['Contacts'][0x0];const _0x315425=_['defaults'](_0x30d364[_0x2fb95f(0xfd)],{'firstName':_0x30d364[_0x2fb95f(0xfd)][_0x2fb95f(0x12b)],'ListId':_0x4221ae[_0x2fb95f(0x184)]});return _0x315425[_0x30d364[_0x2fb95f(0xfd)][_0x2fb95f(0x193)]]=_0x30d364['body'][_0x2fb95f(0x12b)],db[_0x2fb95f(0x9f)][_0x2fb95f(0x14e)](_0x315425,{'fields':_0x1550c6,'raw':!![]});}})[_0x81ba83(0x102)](handleEntityNotFound(_0x5b0765,null))[_0x81ba83(0x102)](function(_0x39b75c){const _0x3c5692=_0x81ba83;_0x109b05[_0x3c5692(0xc1)]=_0x39b75c;let _0x3f1bc2=_0x30d364[_0x3c5692(0xfd)][_0x3c5692(0x104)];if(_0x30d364['headers'][_0x3c5692(0x159)])_0x3f1bc2=_0x30d364[_0x3c5692(0xd3)][_0x3c5692(0x159)];else _0x30d364['headers'][_0x3c5692(0x195)]&&(_0x3f1bc2=_[_0x3c5692(0x119)](_0x30d364[_0x3c5692(0xd3)][_0x3c5692(0x195)][_0x3c5692(0xad)](',')));if(_0x39b75c){const _0x4529fb={'ContactId':_0x39b75c['id'],'ChatWebsiteId':_0x30d364[_0x3c5692(0xf1)]['id'],'from':(_0x39b75c[_0x3c5692(0x103)]||'')+'\x20'+(_0x39b75c['lastName']||''),'customerIp':_0x3f1bc2,'customerPort':_0x30d364[_0x3c5692(0xd3)][_0x3c5692(0x14a)]?_0x30d364[_0x3c5692(0xd3)][_0x3c5692(0x14a)]:null,'referer':_0x30d364[_0x3c5692(0xfd)][_0x3c5692(0x14d)],'browserName':_0x5d2e52['browser'][_0x3c5692(0x140)]&&_0x5d2e52[_0x3c5692(0x105)][_0x3c5692(0x87)]?util[_0x3c5692(0x164)](_0x3c5692(0x15e),_0x5d2e52[_0x3c5692(0x105)]['name'],_0x5d2e52['browser'][_0x3c5692(0x87)]):'unknown','browserVersion':_0x5d2e52[_0x3c5692(0x105)][_0x3c5692(0x87)]||_0x3c5692(0x187),'osName':util[_0x3c5692(0x164)](_0x3c5692(0x15e),_0x5d2e52['os'][_0x3c5692(0x140)],_0x5d2e52['os']['version']),'osVersion':_0x5d2e52['os'][_0x3c5692(0x87)],'deviceModel':_0x5d2e52[_0x3c5692(0x17c)][_0x3c5692(0x143)]&&_0x5d2e52[_0x3c5692(0x17c)][_0x3c5692(0xd7)]?util[_0x3c5692(0x164)](_0x3c5692(0x8f),_0x5d2e52[_0x3c5692(0x17c)][_0x3c5692(0x143)],_0x5d2e52[_0x3c5692(0x17c)]['vendor'],_0x5d2e52[_0x3c5692(0x17c)]['type']):null,'deviceVendor':_0x5d2e52[_0x3c5692(0x17c)][_0x3c5692(0xd7)],'deviceType':_0x5d2e52[_0x3c5692(0x17c)][_0x3c5692(0xa0)],'formData':JSON[_0x3c5692(0x172)](_0x30d364[_0x3c5692(0xfd)])},_0x4bd289={'ChatWebsiteId':_0x30d364[_0x3c5692(0xf1)]['id'],'closed':![]};if(_0x30d364[_0x3c5692(0xfd)][_0x3c5692(0x153)])return _0x4bd289[_0x3c5692(0x153)]=_0x30d364[_0x3c5692(0xfd)][_0x3c5692(0x153)],db[_0x3c5692(0x15f)][_0x3c5692(0x18e)]({'where':_0x4bd289})[_0x3c5692(0x102)](function(_0x5a370f){const _0x27642e=_0x3c5692;if(_0x5a370f)return[_0x5a370f,![]];return _0x4529fb[_0x27642e(0x153)]=_0x30d364[_0x27642e(0xfd)][_0x27642e(0x153)],_0x4529fb[_0x27642e(0x17f)]=_0x30d364[_0x27642e(0xfd)][_0x27642e(0x17f)],db[_0x27642e(0x15f)]['create'](_0x4529fb)[_0x27642e(0x102)](function(_0x28c518){return[_0x28c518,!![]];});});_0x4bd289[_0x3c5692(0x18f)]=_0x39b75c['id'];if(_0x30d364[_0x3c5692(0xfd)][_0x3c5692(0xf4)]&&_0x30d364[_0x3c5692(0xfd)]['interaction']['id'])return _0x4bd289['id']=_0x30d364[_0x3c5692(0xfd)][_0x3c5692(0xf4)]['id'],db[_0x3c5692(0x15f)]['findOne']({'where':_0x4bd289})[_0x3c5692(0x102)](function(_0x15edcd){const _0x558af1=_0x3c5692;if(_0x15edcd)return[_0x15edcd,![]];return db[_0x558af1(0x15f)][_0x558af1(0x14e)](_0x4529fb)['then'](function(_0x54cd28){return[_0x54cd28,!![]];});});return db['ChatInteraction'][_0x3c5692(0x14e)](_0x4529fb)[_0x3c5692(0x102)](function(_0x4b28d1){return[_0x4b28d1,!![]];});}})['then'](function([_0x8bef0a,_0x40b307]){const _0x30ff10=_0x81ba83;if(_0x8bef0a){_0x19d6cf=_0x40b307;if(!_0x40b307){const _0x178f4c={'from':(_0x109b05['contact']['firstName']||'')+'\x20'+(_0x109b05[_0x30ff10(0xc1)][_0x30ff10(0xf3)]||'')};return _0x30d364[_0x30ff10(0xfd)][_0x30ff10(0x153)]&&_0x30d364[_0x30ff10(0xfd)][_0x30ff10(0x111)]&&_0x30d364[_0x30ff10(0xfd)][_0x30ff10(0x153)]!=_0x30d364[_0x30ff10(0xfd)][_0x30ff10(0x111)]&&(_0x178f4c[_0x30ff10(0x153)]=_0x30d364[_0x30ff10(0xfd)][_0x30ff10(0x111)]),_0x8bef0a[_0x30ff10(0x12f)](_0x178f4c);}else return _0x8bef0a;}})[_0x81ba83(0x102)](function(_0x560218){const _0x57d5cd=_0x81ba83;return _0x109b05['interaction']=_0x560218[_0x57d5cd(0xaf)]({'plain':!![]}),_0x109b05[_0x57d5cd(0xf4)][_0x57d5cd(0xd1)]=_0x19d6cf,_0x109b05['interaction'][_0x57d5cd(0xd1)]&&(_0x109b05['account'][_0x57d5cd(0xae)]&&_0x109b05[_0x57d5cd(0x18c)][_0x57d5cd(0x150)]({'id':0x0,'priority':_0x109b05[_0x57d5cd(0x18c)][_0x57d5cd(0x185)]+0x1,'app':_0x57d5cd(0x127),'appdata':_0x57d5cd(0x16c),'interval':_0x57d5cd(0x123)})),db[_0x57d5cd(0x174)]['create']({'body':_0x30d364['body'][_0x57d5cd(0xfd)],'ChatWebsiteId':_0x30d364['params']['id'],'ChatInteractionId':_0x560218['id'],'direction':'in','ContactId':_0x109b05[_0x57d5cd(0xc1)]['id'],'AttachmentId':_0x30d364[_0x57d5cd(0xfd)][_0x57d5cd(0xa5)]});})[_0x81ba83(0x102)](function(_0x106fa2){const _0x5293dd=_0x81ba83;_0x109b05[_0x5293dd(0x152)]=_0x106fa2;if(_0x109b05[_0x5293dd(0xf4)][_0x5293dd(0xb4)])return db['User']['findOne']({'attributes':['id',_0x5293dd(0x140)],'where':{'id':_0x109b05[_0x5293dd(0xf4)][_0x5293dd(0xb4)]}})['then'](function(_0x45e609){const _0x1a23d9=_0x5293dd;return _0x45e609&&(_0x109b05['applications'][_0x1a23d9(0xb7)]({'id':0x0,'priority':0x0,'app':'agent','appdata':_0x45e609[_0x1a23d9(0x140)]+','+(_0x109b05[_0x1a23d9(0x11f)][_0x1a23d9(0xe6)]||0xa),'interval':_0x1a23d9(0x123)}),_0x109b05[_0x1a23d9(0xaa)]=!![]),respondWithRpcPromise(_0x1a23d9(0x17e),_0x1a23d9(0x110),_0x109b05);});return respondWithRpcPromise(_0x5293dd(0x17e),'startRouting',_0x109b05);})['then'](function(_0x3ec634){const _0x580c3e=_0x81ba83;return respondWithRpcPromise(_0x580c3e(0xcc),'EventManager',{'event':_0x580c3e(0x90),'message':_0x3ec634},client9002),_0x3ec634;})[_0x81ba83(0x102)](respondWithResult(_0x5b0765,null))[_0x81ba83(0x169)](handleError(_0x5b0765,null));},exports[a133_0x522783(0x13c)]=function(_0x4f8cec,_0x14b8f2){const _0x982905=a133_0x522783;let _0x552c0f,_0x5ca08d,_0x2d00d1=[];const _0x423b04={};return db[_0x982905(0x9f)][_0x982905(0xcd)]()[_0x982905(0x102)](function(_0x15f943){const _0x934e42=_0x982905;if(!_0x15f943)throw new ValidationError(_0x934e42(0x188));_0x2d00d1=_[_0x934e42(0x182)](_['keys'](_0x15f943),['createdAt','updatedAt',_0x934e42(0x142),_0x934e42(0x184)]);_0x4f8cec[_0x934e42(0xfd)]['id']&&delete _0x4f8cec[_0x934e42(0xfd)]['id'];if(_[_0x934e42(0x141)](_0x4f8cec[_0x934e42(0xfd)][_0x934e42(0x12b)]))throw _0x14b8f2[_0x934e42(0xb9)](0x1f4)['send'](new ValidationError(_0x934e42(0x14c)));if(_[_0x934e42(0x141)](_0x4f8cec[_0x934e42(0xfd)][_0x934e42(0xfd)])||_0x4f8cec['body'][_0x934e42(0xfd)]==='')throw _0x14b8f2['status'](0x1f4)[_0x934e42(0x13f)](new ValidationError(_0x934e42(0x161)));if(_[_0x934e42(0x141)](_0x4f8cec['body'][_0x934e42(0x115)]))throw _0x14b8f2[_0x934e42(0xb9)](0x1f4)[_0x934e42(0x13f)](new ValidationError(_0x934e42(0x8d)+_0x2d00d1));if(!_['includes'](_0x2d00d1,_0x4f8cec[_0x934e42(0xfd)][_0x934e42(0x115)]))throw _0x14b8f2[_0x934e42(0xb9)](0x1f4)[_0x934e42(0x13f)](new ValidationError(_0x934e42(0x168)+_0x2d00d1));_0x423b04[_0x4f8cec[_0x934e42(0xfd)][_0x934e42(0x115)]]=_0x4f8cec[_0x934e42(0xfd)][_0x934e42(0x12b)];})[_0x982905(0x102)](function(){const _0x4e1bbb=_0x982905;return db[_0x4e1bbb(0x179)][_0x4e1bbb(0x18e)]({'where':{'id':_0x4f8cec[_0x4e1bbb(0xf1)]['id']},'include':[{'model':db['CmList'],'as':_0x4e1bbb(0x97)}]});})[_0x982905(0x102)](handleEntityNotFound(_0x14b8f2,null))[_0x982905(0x102)](function(_0x14973e){const _0x1112cb=_0x982905;if(_0x14973e&&_0x14973e[_0x1112cb(0x97)]){_0x5ca08d=_0x14973e;const _0x13f9eb=_['defaults'](_0x4f8cec[_0x1112cb(0xfd)],{'firstName':_0x4f8cec[_0x1112cb(0xfd)][_0x1112cb(0x12b)],'phone':_0x4f8cec[_0x1112cb(0xfd)][_0x1112cb(0x12b)],'ListId':_0x14973e[_0x1112cb(0x184)]});return _0x13f9eb[_0x4f8cec['body'][_0x1112cb(0x115)]]=_0x4f8cec[_0x1112cb(0xfd)][_0x1112cb(0x12b)],db[_0x1112cb(0x9f)][_0x1112cb(0x12d)]({'where':_0x423b04,'defaults':_0x13f9eb});}})[_0x982905(0x102)](function([_0x384d6e]){const _0x2e2d43=_0x982905;if(_0x384d6e){const _0xe0dbe7=fs['readFileSync'](path[_0x2e2d43(0x183)](config[_0x2e2d43(0x117)],_0x2e2d43(0x96)),_0x2e2d43(0xe0)),_0xb05d87=ejs['render'](_0xe0dbe7,{'body':_[_0x2e2d43(0xe7)](_0x4f8cec[_0x2e2d43(0xfd)][_0x2e2d43(0xfd)]),'bodyTitle':_0x5ca08d['offlineMessageBody']});return db['ChatOfflineMessage'][_0x2e2d43(0x14e)]({'body':_0xb05d87,'ContactId':_0x384d6e['id'],'ChatWebsiteId':_0x5ca08d['id']});}})[_0x982905(0x102)](function(_0x2c10c6){const _0x34c3f5=_0x982905;if(_0x2c10c6)return _0x552c0f=_0x2c10c6,db[_0x34c3f5(0x144)]['findOne']({'where':{'service':!![]},'include':[{'model':db[_0x34c3f5(0x88)],'as':'Smtp','raw':!![]}]});})[_0x982905(0x102)](function(_0x50bb65){const _0x1ff3d6=_0x982905;if(_0x50bb65&&_0x50bb65[_0x1ff3d6(0x145)]&&_0x5ca08d[_0x1ff3d6(0x180)]){const _0x5b0371={'tls':{'rejectUnauthorized':![]}};return _0x50bb65[_0x1ff3d6(0x145)][_0x1ff3d6(0x131)]?_0x5b0371['service']=_0x50bb65[_0x1ff3d6(0x145)]['service']:(_0x5b0371[_0x1ff3d6(0x13b)]=_0x50bb65['Smtp'][_0x1ff3d6(0x13b)],_0x5b0371['port']=_0x50bb65[_0x1ff3d6(0x145)]['port'],_0x5b0371['secure']=_0x50bb65['Smtp'][_0x1ff3d6(0x126)]),_0x50bb65[_0x1ff3d6(0x145)][_0x1ff3d6(0xd9)]&&(_0x5b0371[_0x1ff3d6(0x98)]={'user':_0x50bb65[_0x1ff3d6(0x145)]['user'],'pass':_0x50bb65[_0x1ff3d6(0x145)][_0x1ff3d6(0xd5)]}),respondWithRpcPromise(_0x1ff3d6(0x16e),_0x1ff3d6(0xba),{'account':_0x5b0371,'message':{'from':util['format'](_0x1ff3d6(0xe8),_0x50bb65[_0x1ff3d6(0x140)],_0x50bb65[_0x1ff3d6(0xc7)]||_0x50bb65[_0x1ff3d6(0x145)]['user']),'to':_0x5ca08d[_0x1ff3d6(0x180)],'subject':_0x5ca08d[_0x1ff3d6(0xd0)],'text':_0x552c0f[_0x1ff3d6(0xfd)]}},client9003)[_0x1ff3d6(0x102)](function(){return _0x552c0f;})[_0x1ff3d6(0x169)](function(_0x4a2f80){const _0x2c6e08=_0x1ff3d6;console[_0x2c6e08(0x130)](_0x4a2f80);});}})[_0x982905(0x102)](function(){if(_0x552c0f)return _0x552c0f;})[_0x982905(0x102)](respondWithResult(_0x14b8f2,null))['catch'](handleError(_0x14b8f2,null));},exports[a133_0x522783(0xff)]=function(_0x13a48b,_0x417f6e){const _0xabbb62=a133_0x522783;return db[_0xabbb62(0x15f)][_0xabbb62(0x18e)]({'where':{'id':_0x13a48b[_0xabbb62(0xf1)]['id']}})[_0xabbb62(0x102)](function(_0x4db731){const _0x373236=_0xabbb62;if(_0x4db731)return _0x4db731[_0x373236(0xff)](_0x13a48b['body'][_0x373236(0xf9)],{'through':_[_0x373236(0x128)](_0x13a48b[_0x373236(0xfd)],[_0x373236(0xf9),'id'])});})[_0xabbb62(0x102)](respondWithResult(_0x417f6e,null))[_0xabbb62(0x169)](handleError(_0x417f6e,null));},exports[a133_0x522783(0x9d)]=function(_0x43bd48,_0x55d9ba){const _0x5ad025=a133_0x522783;let _0x4a3be5={'raw':![],'where':{}};const _0x55cb80={},_0x47c33c={'count':0x0,'rows':[]};return db['ChatWebsite'][_0x5ad025(0x18e)]({'where':{'id':_0x43bd48[_0x5ad025(0xf1)]['id']}})[_0x5ad025(0x102)](handleEntityNotFound(_0x55d9ba,null))['then'](function(_0x46a6d6){const _0x240322=_0x5ad025;if(_0x46a6d6)return _0x55cb80['model']=_[_0x240322(0x95)](db[_0x240322(0x15f)][_0x240322(0x171)]),_0x55cb80[_0x240322(0x10e)]=_[_0x240322(0x95)](_0x43bd48[_0x240322(0x10e)]),_0x55cb80[_0x240322(0x8e)]=_[_0x240322(0xa8)](_0x55cb80['model'],_0x55cb80[_0x240322(0x10e)]),_0x4a3be5[_0x240322(0xb6)]=_[_0x240322(0xa8)](_0x55cb80[_0x240322(0x143)],qs['fields'](_0x43bd48[_0x240322(0x10e)][_0x240322(0xd6)])),_0x4a3be5[_0x240322(0xb6)]=_0x4a3be5[_0x240322(0xb6)][_0x240322(0x185)]?_0x4a3be5[_0x240322(0xb6)]:_0x55cb80[_0x240322(0x143)],typeof _0x43bd48['query']['nolimit']===_0x240322(0x194)&&(_0x4a3be5[_0x240322(0xeb)]=qs[_0x240322(0xeb)](_0x43bd48[_0x240322(0x10e)][_0x240322(0xeb)]),_0x4a3be5[_0x240322(0x13a)]=qs[_0x240322(0x13a)](_0x43bd48['query'][_0x240322(0x13a)])),_0x4a3be5[_0x240322(0x146)]=qs[_0x240322(0x167)](_0x43bd48[_0x240322(0x10e)][_0x240322(0x167)]),_0x4a3be5[_0x240322(0xc9)]=qs[_0x240322(0x8e)](_[_0x240322(0x10f)](_0x43bd48[_0x240322(0x10e)],_0x55cb80[_0x240322(0x8e)])),_0x4a3be5[_0x240322(0xc9)]['ChatWebsiteId']=_0x46a6d6['id'],_0x43bd48[_0x240322(0x10e)]['filter']&&(_0x4a3be5[_0x240322(0xc9)]=_['merge'](_0x4a3be5['where'],{[Op['or']]:_[_0x240322(0x91)](_0x4a3be5[_0x240322(0xb6)],function(_0x8cc34a){const _0x444b6c=_0x240322,_0x1fd1a9={};return _0x1fd1a9[_0x8cc34a]={[Op[_0x444b6c(0x16b)]]:'%'+_0x43bd48[_0x444b6c(0x10e)]['filter']+'%'},_0x1fd1a9;})})),_0x4a3be5=_['merge']({},_0x4a3be5,_0x43bd48['options']),db[_0x240322(0x15f)][_0x240322(0x94)]({'where':_0x4a3be5[_0x240322(0xc9)]})[_0x240322(0x102)](function(_0x4a5a9d){const _0x4f94cc=_0x240322;return _0x47c33c['count']=_0x4a5a9d,_0x43bd48[_0x4f94cc(0x10e)][_0x4f94cc(0x121)]&&(_0x4a3be5['include']=[{'model':db[_0x4f94cc(0x9f)],'as':'Contact','required':![]},{'model':db[_0x4f94cc(0xec)],'as':_0x4f94cc(0x10c),'attributes':[_0x4f94cc(0x140),_0x4f94cc(0x149),_0x4f94cc(0x107)],'required':![]},{'model':db[_0x4f94cc(0x12e)],'as':_0x4f94cc(0xde),'attributes':['id',_0x4f94cc(0x140),_0x4f94cc(0x89)],'where':_0x43bd48[_0x4f94cc(0x10e)]['tag']?{'id':_0x43bd48[_0x4f94cc(0x10e)][_0x4f94cc(0xf8)]}:undefined,'required':_0x43bd48['query'][_0x4f94cc(0xf8)]?!![]:![]}]),db[_0x4f94cc(0x15f)][_0x4f94cc(0x15d)](_0x4a3be5);})['then'](function(_0x45c50a){const _0x2234c2=_0x240322;return _0x47c33c[_0x2234c2(0x177)]=_0x45c50a,_0x47c33c;});})[_0x5ad025(0x102)](respondWithFilteredResult(_0x55d9ba,_0x4a3be5))['catch'](handleError(_0x55d9ba,null));};function iftimePromise(_0x2c4fda,_0x3f1203){const _0x5ae2c2=a133_0x522783;return respondWithRpcPromise(_0x5ae2c2(0x100),_0x5ae2c2(0xb8),{'command':_0x3f1203[_0x5ae2c2(0xef)]?util['format'](_0x5ae2c2(0xdd),_0x2c4fda[_0x5ae2c2(0x9b)],_0x3f1203[_0x5ae2c2(0xef)]):util[_0x5ae2c2(0x164)](_0x5ae2c2(0xa2),_0x2c4fda['interval'])},client9002)[_0x5ae2c2(0x102)](function(_0x189354){const _0xb95a90=_0x5ae2c2,_0x8b0720=_0x189354&&_0x189354[_0xb95a90(0x148)](_0xb95a90(0x135))>=0x0?!![]:![];return logger[_0xb95a90(0xe5)](_0xb95a90(0xc4),_0x3f1203['id'],_0x2c4fda['id'],_0x2c4fda[_0xb95a90(0x9b)],_0x8b0720?_0xb95a90(0x166):_0xb95a90(0xfc),_0x3f1203[_0xb95a90(0xef)]?_0x3f1203['timezone']:'No\x20timezone'),_0x8b0720;})[_0x5ae2c2(0x169)](function(_0x2072a9){const _0x38e45f=_0x5ae2c2;return logger['error'](_0x38e45f(0xc4),_0x3f1203['id'],_0x2c4fda['id'],_0x2c4fda['interval'],util['inspect'](_0x2072a9,{'showHidden':![],'depth':null}),_0x3f1203[_0x38e45f(0xef)]?_0x3f1203['timezone']:'No\x20timezone'),![];});}exports[a133_0x522783(0xb8)]=function(_0x3488cc,_0x5826cc){const _0x5cbd09=a133_0x522783;let _0x4b687e=0x0,_0xea82f3=0x0,_0xc1d6d0=![],_0x51b2d0,_0x5351bf;return db[_0x5cbd09(0x179)]['findOne']({'where':{'id':_0x3488cc[_0x5cbd09(0xf1)]['id']},'include':[{'model':db[_0x5cbd09(0x92)],'as':_0x5cbd09(0x92),'include':[{'model':db['Interval'],'as':_0x5cbd09(0x109),'attributes':['id',_0x5cbd09(0x9b)],'raw':!![]}]}]})['then'](handleEntityNotFound(_0x5826cc,null))[_0x5cbd09(0x102)](function(_0x5ed6fc){const _0x7b1428=_0x5cbd09;if(_0x5ed6fc)return _0x51b2d0=_0x5ed6fc,_0x5ed6fc[_0x7b1428(0xdb)]({'raw':!![]});})[_0x5cbd09(0x102)](function(_0x2dfc5e){const _0x33151a=_0x5cbd09;return _0x51b2d0&&(_0x2dfc5e&&(_0x5351bf=_0x2dfc5e)),require('../../config/license/util')[_0x33151a(0xa6)]();})[_0x5cbd09(0x102)](function(_0x46af89){const _0xc2ec38=_0x5cbd09;_0x46af89&&(_0xea82f3=_0x46af89[_0xc2ec38(0xee)],_0xc1d6d0=_0x46af89[_0xc2ec38(0xc3)]);})[_0x5cbd09(0x102)](function(){const _0xd91a08=_0x5cbd09;return db[_0xd91a08(0x15f)][_0xd91a08(0x94)]({'where':{'closed':![]}});})[_0x5cbd09(0x102)](function(_0x5c0db1){const _0x3f604d=_0x5cbd09;_0x4b687e=_0x5c0db1;if(_0xea82f3&&_0x5c0db1>_0xea82f3)return db['License'][_0x3f604d(0x18e)]({'where':{'id':0x1}})['then'](function(_0x300ce0){const _0x4fda0b=_0x3f604d;_0x300ce0&&_0x300ce0[_0x4fda0b(0x8b)](_0x4fda0b(0x186));});})['then'](function(){const _0x37f426=_0x5cbd09;if(_0x51b2d0[_0x37f426(0x92)]&&_0x51b2d0[_0x37f426(0x92)][_0x37f426(0x109)]){const _0x2de96=[];for(let _0x4414ce=0x0;_0x4414ce<_0x51b2d0[_0x37f426(0x92)][_0x37f426(0x109)][_0x37f426(0x185)];_0x4414ce++){const _0x5bf96f=_0x51b2d0['Interval'][_0x37f426(0x109)][_0x4414ce][_0x37f426(0xaf)]({'plain':!![]});_0x2de96[_0x37f426(0x150)](iftimePromise(_0x5bf96f,_0x51b2d0));}return Promise['all'](_0x2de96)[_0x37f426(0x102)](function(_0xcceca0){const _0x292ca2=_0x37f426;return _[_0x292ca2(0x134)](_0xcceca0);});}else return!![];})['then'](function(_0x118ef5){const _0x46168d=_0x5cbd09,_0xb6d6a0=_0x3488cc[_0x46168d(0x13d)][_0x46168d(0xaf)]('chatVersion'),_0x3748b8=fs[_0x46168d(0xbe)](path[_0x46168d(0x183)](config[_0x46168d(0x117)],'files/chat/iframe.js'),_0x46168d(0xe0)),_0xa98d8c={'chatVersion':_0xb6d6a0,'remote':_0x51b2d0[_0x46168d(0x155)],'query':querystring[_0x46168d(0x172)](_[_0x46168d(0xf0)](_0x51b2d0[_0x46168d(0xaf)]({'plain':!![]}),{'customerIp':_0x3488cc[_0x46168d(0xd3)][_0x46168d(0x195)]||_0x3488cc[_0x46168d(0xd3)][_0x46168d(0x9e)]||_0x3488cc['connection'][_0x46168d(0xf6)]||_0x3488cc['ip'],'referer':_0x3488cc[_0x46168d(0xd3)][_0x46168d(0x14d)],'openedInteractions':_0x4b687e,'maxInteractions':_0xea82f3,'virtual':_0xc1d6d0['virtual'],'online':_0x118ef5,'custom':_0xc1d6d0}))[_0x46168d(0x12a)](/'/g,'\x5c\x27')};_0x5826cc[_0x46168d(0x13f)](ejs[_0x46168d(0xbd)](Mustache[_0x46168d(0xbd)](_0x3748b8,_0xa98d8c),{'proactiveActions':_0x5351bf,'alignment':_0x51b2d0[_0x46168d(0x196)],'verticalAlignment':_0x51b2d0['verticalAlignment'],'div_color':_0x51b2d0[_0x46168d(0x89)],'text_color':_0x51b2d0[_0x46168d(0xda)]}));})['catch'](handleError(_0x5826cc,null));},exports[a133_0x522783(0xe1)]=function(_0xa703d2,_0x2760ee){const _0x2f2f8c=a133_0x522783;return db[_0x2f2f8c(0x179)][_0x2f2f8c(0x18e)]({'where':{'id':_0xa703d2[_0x2f2f8c(0xf1)]['id']}})[_0x2f2f8c(0x102)](handleEntityNotFound(_0x2760ee,null))['then'](function(_0xcf6897){const _0x212cfb=_0x2f2f8c;if(_0xcf6897)return db[_0x212cfb(0xb1)][_0x212cfb(0x11c)](function(_0x3263fd){const _0x4ffbbb=_0x212cfb;return db[_0x4ffbbb(0xfb)][_0x4ffbbb(0x8a)]({'where':{'ChatWebsiteId':_0xa703d2['params']['id']},'transaction':_0x3263fd})[_0x4ffbbb(0x102)](function(){const _0x5f3e14=_0x4ffbbb,_0x5da099=_[_0x5f3e14(0x91)](_0xa703d2[_0x5f3e14(0xfd)],function(_0x4d6c2d){const _0x41d25a=_0x5f3e14;return _0x4d6c2d[_0x41d25a(0x138)]=_0xa703d2[_0x41d25a(0xf1)]['id'],_0x4d6c2d;});return db[_0x5f3e14(0xfb)]['bulkCreate'](_0x5da099,{'transaction':_0x3263fd});});})['then'](function(){const _0x2408c3=_0x212cfb;return db['ChatApplication'][_0x2408c3(0x120)]({'where':{'ChatWebsiteId':_0xa703d2[_0x2408c3(0xf1)]['id']},'order':_0x2408c3(0x133)});});})['then'](respondWithResult(_0x2760ee,null))[_0x2f2f8c(0x169)](handleError(_0x2760ee,null));},exports[a133_0x522783(0xe3)]=function(_0x5154e6,_0x46dd00){const _0x5a2f3b=a133_0x522783;let _0x410a9d={};const _0x7bd62={};let _0x417ab1,_0x43e206;return db[_0x5a2f3b(0x179)][_0x5a2f3b(0x18e)]({'where':{'id':_0x5154e6[_0x5a2f3b(0xf1)]['id']}})[_0x5a2f3b(0x102)](handleEntityNotFound(_0x46dd00,null))[_0x5a2f3b(0x102)](function(_0x4643e0){const _0x6316d2=_0x5a2f3b;if(_0x4643e0)return _0x417ab1=_0x4643e0,_0x7bd62[_0x6316d2(0x143)]=_[_0x6316d2(0x95)](db[_0x6316d2(0xfb)]['rawAttributes']),_0x7bd62[_0x6316d2(0x10e)]=_[_0x6316d2(0x95)](_0x5154e6['query']),_0x7bd62[_0x6316d2(0x8e)]=_[_0x6316d2(0xa8)](_0x7bd62[_0x6316d2(0x143)],_0x7bd62[_0x6316d2(0x10e)]),_0x410a9d[_0x6316d2(0xb6)]=_['intersection'](_0x7bd62[_0x6316d2(0x143)],qs['fields'](_0x5154e6['query'][_0x6316d2(0xd6)])),_0x410a9d[_0x6316d2(0xb6)]=_0x410a9d['attributes'][_0x6316d2(0x185)]?_0x410a9d[_0x6316d2(0xb6)]:_0x7bd62[_0x6316d2(0x143)],_0x410a9d[_0x6316d2(0x146)]=qs['sort'](_0x5154e6[_0x6316d2(0x10e)][_0x6316d2(0x167)]),_0x410a9d[_0x6316d2(0xc9)]=qs[_0x6316d2(0x8e)](_['pick'](_0x5154e6[_0x6316d2(0x10e)],_0x7bd62['filters'])),_0x5154e6['query']['filter']&&(_0x410a9d[_0x6316d2(0xc9)]=_[_0x6316d2(0xf0)](_0x410a9d[_0x6316d2(0xc9)],{[Op['or']]:_[_0x6316d2(0x91)](_0x410a9d[_0x6316d2(0xb6)],function(_0x467162){const _0x4aa6c2=_0x6316d2,_0x39a3fc={};return _0x39a3fc[_0x467162]={[Op[_0x4aa6c2(0x16b)]]:'%'+_0x5154e6[_0x4aa6c2(0x10e)][_0x4aa6c2(0x108)]+'%'},_0x39a3fc;})})),_0x410a9d=_['merge']({},_0x410a9d,_0x5154e6[_0x6316d2(0xfe)]),_0x417ab1['getApplications'](_0x410a9d);})[_0x5a2f3b(0x102)](function(_0x53cb44){const _0x5878b0=_0x5a2f3b;if(_0x53cb44)return _0x43e206=_0x53cb44[_0x5878b0(0x185)],typeof _0x5154e6['query']['nolimit']===_0x5878b0(0x194)&&(_0x410a9d[_0x5878b0(0xeb)]=qs['limit'](_0x5154e6[_0x5878b0(0x10e)]['limit']),_0x410a9d[_0x5878b0(0x13a)]=qs[_0x5878b0(0x13a)](_0x5154e6['query'][_0x5878b0(0x13a)])),_0x417ab1['getApplications'](_0x410a9d);})['then'](function(_0x319b7b){if(_0x319b7b)return _0x319b7b?{'count':_0x43e206,'rows':_0x319b7b}:null;})[_0x5a2f3b(0x102)](respondWithResult(_0x46dd00,null))[_0x5a2f3b(0x169)](handleError(_0x46dd00,null));},exports['addProactiveActions']=function(_0x463de8,_0x4ada19){const _0x37c276=a133_0x522783;return db[_0x37c276(0x118)][_0x37c276(0x18e)]({'where':{'id':_0x463de8[_0x37c276(0xf1)]['id']}})[_0x37c276(0x102)](function(_0x34e4e7){const _0x5d92f7=_0x37c276;if(_0x34e4e7)return _0x34e4e7[_0x5d92f7(0x8c)](_0x463de8['body'][_0x5d92f7(0xf9)],{'through':_[_0x5d92f7(0x128)](_0x463de8[_0x5d92f7(0xfd)],[_0x5d92f7(0xf9),'id'])});})[_0x37c276(0x102)](respondWithResult(_0x4ada19,null))['catch'](handleError(_0x4ada19,null));},exports['getProactiveActions']=function(_0x5ae90b,_0x4d566c){const _0xf60d9b=a133_0x522783;let _0x5da66f={};const _0x323701={};let _0x34e75a,_0x1bd111;return db['ChatWebsite']['findOne']({'where':{'id':_0x5ae90b[_0xf60d9b(0xf1)]['id']}})['then'](handleEntityNotFound(_0x4d566c,null))[_0xf60d9b(0x102)](function(_0x3ab8ac){const _0x263d0d=_0xf60d9b;if(_0x3ab8ac)return _0x34e75a=_0x3ab8ac,_0x323701[_0x263d0d(0x143)]=_[_0x263d0d(0x95)](db[_0x263d0d(0x10a)][_0x263d0d(0x171)]),_0x323701[_0x263d0d(0x10e)]=_[_0x263d0d(0x95)](_0x5ae90b[_0x263d0d(0x10e)]),_0x323701[_0x263d0d(0x8e)]=_[_0x263d0d(0xa8)](_0x323701[_0x263d0d(0x143)],_0x323701[_0x263d0d(0x10e)]),_0x5da66f[_0x263d0d(0xb6)]=_[_0x263d0d(0xa8)](_0x323701[_0x263d0d(0x143)],qs[_0x263d0d(0xd6)](_0x5ae90b['query'][_0x263d0d(0xd6)])),_0x5da66f[_0x263d0d(0xb6)]=_0x5da66f[_0x263d0d(0xb6)][_0x263d0d(0x185)]?_0x5da66f[_0x263d0d(0xb6)]:_0x323701['model'],_0x5da66f['order']=qs['sort'](_0x5ae90b[_0x263d0d(0x10e)][_0x263d0d(0x167)]),_0x5da66f[_0x263d0d(0xc9)]=qs['filters'](_[_0x263d0d(0x10f)](_0x5ae90b['query'],_0x323701[_0x263d0d(0x8e)])),_0x5ae90b[_0x263d0d(0x10e)][_0x263d0d(0x108)]&&(_0x5da66f[_0x263d0d(0xc9)]=_[_0x263d0d(0xf0)](_0x5da66f['where'],{[Op['or']]:_[_0x263d0d(0x91)](_0x5da66f[_0x263d0d(0xb6)],function(_0x1d1d4f){const _0x2a882a=_0x263d0d,_0x11ba97={};return _0x11ba97[_0x1d1d4f]={[Op[_0x2a882a(0x16b)]]:'%'+_0x5ae90b[_0x2a882a(0x10e)][_0x2a882a(0x108)]+'%'},_0x11ba97;})})),_0x5da66f=_[_0x263d0d(0xf0)]({},_0x5da66f,_0x5ae90b[_0x263d0d(0xfe)]),_0x34e75a[_0x263d0d(0xdb)](_0x5da66f);})['then'](function(_0x16a242){const _0x1e5620=_0xf60d9b;if(_0x16a242)return _0x1bd111=_0x16a242[_0x1e5620(0x185)],typeof _0x5ae90b[_0x1e5620(0x10e)][_0x1e5620(0x114)]==='undefined'&&(_0x5da66f[_0x1e5620(0xeb)]=qs[_0x1e5620(0xeb)](_0x5ae90b[_0x1e5620(0x10e)]['limit']),_0x5da66f['offset']=qs['offset'](_0x5ae90b['query'][_0x1e5620(0x13a)])),_0x34e75a[_0x1e5620(0xdb)](_0x5da66f);})[_0xf60d9b(0x102)](function(_0x22933e){if(_0x22933e)return _0x22933e?{'count':_0x1bd111,'rows':_0x22933e}:null;})[_0xf60d9b(0x102)](respondWithResult(_0x4d566c,null))[_0xf60d9b(0x169)](handleError(_0x4d566c,null));},exports['getFields']=function(_0x47aa10,_0x2d9c61){const _0x4fb4da=a133_0x522783,_0x2bcd6b=_0x47aa10[_0x4fb4da(0x10e)][_0x4fb4da(0x147)]===_0x4fb4da(0x125)?_0x4fb4da(0x9c):'onlineForm';return db['ChatWebsite'][_0x4fb4da(0x18e)]({'attributes':['id',_0x2bcd6b],'where':{'id':_0x47aa10['params']['id']}})[_0x4fb4da(0x102)](handleEntityNotFound(_0x2d9c61,null))['then'](function(_0x33ed9c){const _0x5a2d9c=_0x4fb4da;if(_0x33ed9c){const _0x40554b=_0x33ed9c[_0x2bcd6b],_0xdc18a9=_0x40554b&&_0x40554b[_0x5a2d9c(0x189)]?_0x40554b[_0x5a2d9c(0x189)]:[];_0x2d9c61['send']({'fromKey':_[_0x5a2d9c(0x141)](_0x40554b[_0x5a2d9c(0x14b)])?undefined:_0x40554b[_0x5a2d9c(0x14b)],'count':_0xdc18a9[_0x5a2d9c(0x185)],'rows':_0xdc18a9});}})['catch'](handleError(_0x2d9c61,null));},exports[a133_0x522783(0xc6)]=function(_0x5adae2,_0x140c4a){const _0x52a65b=a133_0x522783;let _0x47d44f={'raw':![],'where':{}};const _0x1a67a4={},_0x5e9912={'count':0x0,'rows':[]};return db[_0x52a65b(0x179)]['findOne']({'where':{'id':_0x5adae2[_0x52a65b(0xf1)]['id']}})[_0x52a65b(0x102)](handleEntityNotFound(_0x140c4a,null))[_0x52a65b(0x102)](function(_0x4c8244){const _0x7df85d=_0x52a65b;if(_0x4c8244)return _0x1a67a4[_0x7df85d(0x143)]=_[_0x7df85d(0x95)](db['ChatOfflineMessage']['rawAttributes']),_0x1a67a4['query']=_['keys'](_0x5adae2['query']),_0x1a67a4[_0x7df85d(0x8e)]=_['intersection'](_0x1a67a4['model'],_0x1a67a4[_0x7df85d(0x10e)]),_0x47d44f[_0x7df85d(0xb6)]=_[_0x7df85d(0xa8)](_0x1a67a4[_0x7df85d(0x143)],qs[_0x7df85d(0xd6)](_0x5adae2['query'][_0x7df85d(0xd6)])),_0x47d44f['attributes']=_0x47d44f[_0x7df85d(0xb6)][_0x7df85d(0x185)]?_0x47d44f['attributes']:_0x1a67a4[_0x7df85d(0x143)],typeof _0x5adae2['query'][_0x7df85d(0x114)]==='undefined'&&(_0x47d44f[_0x7df85d(0xeb)]=qs[_0x7df85d(0xeb)](_0x5adae2['query']['limit']),_0x47d44f['offset']=qs[_0x7df85d(0x13a)](_0x5adae2[_0x7df85d(0x10e)][_0x7df85d(0x13a)])),_0x47d44f[_0x7df85d(0x146)]=qs[_0x7df85d(0x167)](_0x5adae2[_0x7df85d(0x10e)][_0x7df85d(0x167)]),_0x47d44f[_0x7df85d(0xc9)]=qs[_0x7df85d(0x8e)](_[_0x7df85d(0x10f)](_0x5adae2[_0x7df85d(0x10e)],_0x1a67a4[_0x7df85d(0x8e)])),_0x47d44f[_0x7df85d(0xc9)][_0x7df85d(0x138)]=_0x4c8244['id'],_0x5adae2[_0x7df85d(0x10e)]['filter']&&(_0x47d44f[_0x7df85d(0xc9)]=_['merge'](_0x47d44f[_0x7df85d(0xc9)],{[Op['or']]:_[_0x7df85d(0x91)](_0x47d44f[_0x7df85d(0xb6)],function(_0x12ad5c){const _0x4a586e=_0x7df85d,_0x380c47={};return _0x380c47[_0x12ad5c]={[Op[_0x4a586e(0x16b)]]:'%'+_0x5adae2[_0x4a586e(0x10e)]['filter']+'%'},_0x380c47;})})),_0x47d44f=_[_0x7df85d(0xf0)]({},_0x47d44f,_0x5adae2[_0x7df85d(0xfe)]),db[_0x7df85d(0x13e)][_0x7df85d(0x94)]({'where':_0x47d44f[_0x7df85d(0xc9)]})[_0x7df85d(0x102)](function(_0xf449b1){const _0x2d81e6=_0x7df85d;return _0x5e9912[_0x2d81e6(0x94)]=_0xf449b1,_0x5adae2[_0x2d81e6(0x10e)][_0x2d81e6(0x121)]?_0x47d44f['include']=[{'all':!![]}]:_0x47d44f[_0x2d81e6(0x124)]=[{'model':db[_0x2d81e6(0x9f)],'as':_0x2d81e6(0xbf),'required':![]}],db[_0x2d81e6(0x13e)][_0x2d81e6(0x15d)](_0x47d44f);})['then'](function(_0x46c534){return _0x5e9912['rows']=_0x46c534,_0x5e9912;});})['then'](respondWithFilteredResult(_0x140c4a,_0x47d44f))[_0x52a65b(0x169)](handleError(_0x140c4a,null));},exports['addAgents']=function(_0xca983a,_0x1e67f5){const _0x2b50f8=a133_0x522783;return db[_0x2b50f8(0x179)][_0x2b50f8(0x18e)]({'where':{'id':_0xca983a['params']['id']}})[_0x2b50f8(0x102)](function(_0x32fd68){const _0x1b1699=_0x2b50f8;if(_0x32fd68)return _0x32fd68[_0x1b1699(0xb2)](_0xca983a[_0x1b1699(0xfd)][_0x1b1699(0xf9)],{'through':_[_0x1b1699(0x128)](_0xca983a[_0x1b1699(0xfd)],[_0x1b1699(0xf9),'id'])})[_0x1b1699(0x102)](function(_0x1d2629){const _0x4151ae=_0x1b1699;for(let _0x2ec55a=0x0;_0x2ec55a<_0xca983a[_0x4151ae(0xfd)][_0x4151ae(0xf9)][_0x4151ae(0x185)];_0x2ec55a+=0x1){socket[_0x4151ae(0x178)](_0x4151ae(0xcb),{'UserId':_0xca983a[_0x4151ae(0xfd)][_0x4151ae(0xf9)][_0x2ec55a],'ChatWebsiteId':_0xca983a[_0x4151ae(0xf1)]['id']});}return _0x1d2629;});})['then'](respondWithResult(_0x1e67f5,null))[_0x2b50f8(0x169)](handleError(_0x1e67f5,null));},exports[a133_0x522783(0xd4)]=function(_0x55f3f0,_0x2f531c){const _0x291245=a133_0x522783;return db[_0x291245(0x179)]['findOne']({'where':{'id':_0x55f3f0[_0x291245(0xf1)]['id']}})[_0x291245(0x102)](handleEntityNotFound(_0x2f531c,null))[_0x291245(0x102)](function(_0x2403f1){const _0x438507=_0x291245;if(_0x2403f1)return _0x2403f1['removeAgents'](_0x55f3f0[_0x438507(0x10e)][_0x438507(0xf9)])[_0x438507(0x102)](function(){const _0x25ded4=_0x438507;if(_[_0x25ded4(0xf5)](_0x55f3f0[_0x25ded4(0x10e)][_0x25ded4(0xf9)]))for(let _0xe3b03a=0x0;_0xe3b03a<_0x55f3f0[_0x25ded4(0x10e)][_0x25ded4(0xf9)][_0x25ded4(0x185)];_0xe3b03a+=0x1){socket[_0x25ded4(0x178)]('userChatWebsite:remove',{'UserId':Number(_0x55f3f0['query'][_0x25ded4(0xf9)][_0xe3b03a]),'ChatWebsiteId':Number(_0x55f3f0[_0x25ded4(0xf1)]['id'])});}else socket[_0x25ded4(0x178)](_0x25ded4(0x157),{'UserId':Number(_0x55f3f0[_0x25ded4(0x10e)][_0x25ded4(0xf9)]),'ChatWebsiteId':Number(_0x55f3f0[_0x25ded4(0xf1)]['id'])});});})[_0x291245(0x102)](respondWithStatusCode(_0x2f531c,null))[_0x291245(0x169)](handleError(_0x2f531c,null));},exports['getAgents']=function(_0xaeeae1,_0x4ce9ee){const _0x542e69=a133_0x522783;let _0x2c84d5={};const _0x4d947f={};let _0x5e4ec9,_0x53c0f0;return db[_0x542e69(0x179)][_0x542e69(0x18e)]({'where':{'id':_0xaeeae1[_0x542e69(0xf1)]['id']}})[_0x542e69(0x102)](handleEntityNotFound(_0x4ce9ee,null))[_0x542e69(0x102)](function(_0x2224ed){const _0x33b601=_0x542e69;if(_0x2224ed)return _0x5e4ec9=_0x2224ed,_0x4d947f[_0x33b601(0x143)]=_[_0x33b601(0x95)](db[_0x33b601(0xec)][_0x33b601(0x171)]),_0x4d947f[_0x33b601(0x10e)]=_[_0x33b601(0x95)](_0xaeeae1[_0x33b601(0x10e)]),_0x4d947f['filters']=_[_0x33b601(0xa8)](_0x4d947f[_0x33b601(0x143)],_0x4d947f[_0x33b601(0x10e)]),_0x2c84d5[_0x33b601(0xb6)]=_[_0x33b601(0xa8)](_0x4d947f[_0x33b601(0x143)],qs[_0x33b601(0xd6)](_0xaeeae1[_0x33b601(0x10e)]['fields'])),_0x2c84d5['attributes']=_0x2c84d5[_0x33b601(0xb6)]['length']?_0x2c84d5['attributes']:_0x4d947f[_0x33b601(0x143)],_0x2c84d5[_0x33b601(0x146)]=qs['sort'](_0xaeeae1['query'][_0x33b601(0x167)]),_0x2c84d5[_0x33b601(0xc9)]=qs['filters'](_[_0x33b601(0x10f)](_0xaeeae1['query'],_0x4d947f[_0x33b601(0x8e)])),_0xaeeae1['query'][_0x33b601(0x108)]&&(_0x2c84d5[_0x33b601(0xc9)]=_[_0x33b601(0xf0)](_0x2c84d5[_0x33b601(0xc9)],{[Op['or']]:_[_0x33b601(0x91)](_0x2c84d5[_0x33b601(0xb6)],function(_0x4ff5a7){const _0xdb110f=_0x33b601,_0xea39f1={};return _0xea39f1[_0x4ff5a7]={[Op[_0xdb110f(0x16b)]]:'%'+_0xaeeae1[_0xdb110f(0x10e)][_0xdb110f(0x108)]+'%'},_0xea39f1;})})),_0x2c84d5=_[_0x33b601(0xf0)]({},_0x2c84d5,_0xaeeae1[_0x33b601(0xfe)]),_0x5e4ec9[_0x33b601(0x11b)](_0x2c84d5);})[_0x542e69(0x102)](function(_0x3f702f){const _0x279a10=_0x542e69;if(_0x3f702f)return _0x53c0f0=_0x3f702f[_0x279a10(0x185)],typeof _0xaeeae1['query']['nolimit']===_0x279a10(0x194)&&(_0x2c84d5[_0x279a10(0xeb)]=qs[_0x279a10(0xeb)](_0xaeeae1[_0x279a10(0x10e)][_0x279a10(0xeb)]),_0x2c84d5['offset']=qs[_0x279a10(0x13a)](_0xaeeae1[_0x279a10(0x10e)]['offset'])),_0x5e4ec9[_0x279a10(0x11b)](_0x2c84d5);})[_0x542e69(0x102)](function(_0x37336b){if(_0x37336b)return _0x37336b?{'count':_0x53c0f0,'rows':_0x37336b}:null;})[_0x542e69(0x102)](respondWithResult(_0x4ce9ee,null))[_0x542e69(0x169)](handleError(_0x4ce9ee,null));}; \ No newline at end of file +const a133_0x4f7b=['ListId','push','show','List','ChatWebsiteId','omit','body\x20is\x20mandatory\x20and\x20not\x20empty','%s\x20%s\x20%s','mapKeyOffline','AttachmentId','undefined','mapKey','MailServerOut','getDispositions','version','destroy','remote','addDisposition','emit','stringify','../../config/environment','referer','addProactiveActions','Contact','interval','chatLicenseExceeded','addAgents','getApplications','email','nolimit','error','json','systemAvatar','getOfflineMessages','getSnippet','agent','server/files/images/avatars/default_avatar.png','User','querystring','CompanyId','options','asc','utf8','get','ChatInteraction','externalUrl','UserId','ChatWebsites','UserProfileSection','mapKeyOffline\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','unmanaged','License','authentication','Tag','register','list','params','userProfileId','Owner','file','keys','addInteraction','sitepic','secure','include','jayson/promise','x-real-ip','files/chat/iframe.js','No\x20timezone','getFields','host','app','ChatProactiveAction','mapKeyOffline\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','userChatWebsite:save','applications','difference','removeAnswers','pass','fieldName','server/files/templates/chatOfflineMessage.ejs','server/files/images/logos/','VIRTUAL','user-agent-parser','addApplications','end','attributes','Pause','join','remoteAddress','pick','defaults','messageId','unknown','addCustomerAvatar','device','%s\x20%s','getProactiveActions','then','../../config/license/util','from\x20is\x20mandatory','DESC','root','updatedAt','\x22%s\x22\x20<%s>','body','OFFLINE','server/files/images/avatars/','x-forwarded-for','offlineMessageBody','request\x20sent','browser','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','../../mysqldb','custom','type','CannedAnswer','*,*,*,*','forwardOfflineAddress','Command','toPairs','getAgents','ONLINE','user','all','color','close','existsSync','format','http','info','Content-Range','index','fromKey','CmList','Disposition','ChatWebsite','../../rediscache','count','server/files/images/avatars/system_avatar.png','getLicense','notify','createdAt','includes','getInteractions','debug','priority','describe','ids','textColor','rawAttributes','render','transaction','intersection','fields','../../config/logger','ChatWebsite,\x20%s,\x20%s','rows','query','account','update','findOne','ChatMessage','CmContact','code','customerAvatar','onlineForm','readFileSync','removeDispositions','sendMail','map','offlineForm','items','from','iftime\x20%s','filter','contact','userChatWebsite:remove','addAvatar','ejs','customerIp','SendMail','like','ChatWebsite,\x20%s,\x20%s,\x20%s','auth','Contacts','catch','threadId','created','where','indexOf','x-real-port','message','vendor','unshift','ChatOfflineMessage','download','name','request','increment','startRouting','getLogo','findAndCountAll','create','send','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','removeAgents','server/files/images/logos/default_logo.svg','Applications','ContactId','mustache','MailAccount','tag','result','UserProfileResource','split','filters','api','Intervals','[%s][INTERVAL][%s]\x20%s\x20%s\x20(%s)','role','setUA','filename','limit','Interval','util','sendStatus','EventManager','client','firstName','timezone','ChatApplication','Unable\x20to\x20retrieve\x20the\x20current\x20user','autoAssociation','includeAll','sequelize','findAll','headers','lastName','chat','verticalAlignment','offset','offline','interaction','sort','../../components/parsers/qs','length','orderBy','addLogo','true','model','path','getSystemAvatar','agentAvatar','merge','findOrCreate','connection','status','getResult','port','isNil','user-agent','service','Smtp','order'];(function(_0x982846,_0x55537a){const _0x4f7ba3=function(_0x44d948){while(--_0x44d948){_0x982846['push'](_0x982846['shift']());}};_0x4f7ba3(++_0x55537a);}(a133_0x4f7b,0xa1));const a133_0x44d9=function(_0x982846,_0x55537a){_0x982846=_0x982846-0x1a5;let _0x4f7ba3=a133_0x4f7b[_0x982846];return _0x4f7ba3;};const a133_0x9e658=a133_0x44d9;'use strict';const Mustache=require(a133_0x9e658(0x1d6)),util=require(a133_0x9e658(0x1e5)),path=require(a133_0x9e658(0x1ff)),ejs=require(a133_0x9e658(0x1b7)),fs=require('fs'),_=require('lodash'),querystring=require(a133_0x9e658(0x233)),qs=require(a133_0x9e658(0x1f9)),logger=require(a133_0x9e658(0x2a8))(a133_0x9e658(0x1dd)),config=require(a133_0x9e658(0x221)),{db}=require(a133_0x9e658(0x27e)),{Op,ValidationError}=require(a133_0x9e658(0x1ef)),{getSocket}=require(a133_0x9e658(0x296)),socket=getSocket();require('./chatWebsite.socket')[a133_0x9e658(0x243)](socket);const jayson=require(a133_0x9e658(0x24e)),client=jayson[a133_0x9e658(0x1e8)]['http']({'port':0x232c}),client9002=jayson[a133_0x9e658(0x1e8)][a133_0x9e658(0x28e)]({'port':0x232a}),client9003=jayson[a133_0x9e658(0x1e8)]['http']({'port':0x232b});function respondWithRpcPromise(_0x3a0931,_0x451686,_0x57da66,_0x31ac65){return new Promise(function(_0x3445db,_0x53ac25){const _0x4d5766=a133_0x44d9,_0x2ae0bb=_0x31ac65||client;return _0x2ae0bb[_0x4d5766(0x1ca)](_0x3a0931,_0x57da66)[_0x4d5766(0x26f)](function(_0x854ea1){const _0x15ea33=_0x4d5766;logger[_0x15ea33(0x28f)](_0x15ea33(0x2a9),_0x451686,'request\x20sent'),logger[_0x15ea33(0x29e)](_0x15ea33(0x1bb),_0x451686,_0x15ea33(0x27b),JSON[_0x15ea33(0x220)](_0x854ea1));if(_0x854ea1[_0x15ea33(0x22b)]){if(_0x854ea1[_0x15ea33(0x22b)][_0x15ea33(0x1a8)]===0x1f4)return logger['error'](_0x15ea33(0x2a9),_0x451686,_0x854ea1['error']['message']),_0x53ac25(_0x854ea1[_0x15ea33(0x22b)][_0x15ea33(0x1c4)]);return logger['error'](_0x15ea33(0x2a9),_0x451686,_0x854ea1[_0x15ea33(0x22b)][_0x15ea33(0x1c4)]),_0x3445db(_0x854ea1[_0x15ea33(0x22b)][_0x15ea33(0x1c4)]);}else logger[_0x15ea33(0x28f)]('ChatWebsite,\x20%s,\x20%s',_0x451686,_0x15ea33(0x27b)),_0x3445db(_0x854ea1[_0x15ea33(0x1d9)][_0x15ea33(0x1c4)]);})[_0x4d5766(0x1be)](function(_0x5407f5){const _0x1efe4a=_0x4d5766;logger['error'](_0x1efe4a(0x2a9),_0x451686,_0x5407f5),_0x53ac25(_0x5407f5);});});}function respondWithStatusCode(_0x5eb2ab,_0x4bbdb7){return _0x4bbdb7=_0x4bbdb7||0xcc,function(_0x40dd4a){const _0x521b06=a133_0x44d9;if(_0x40dd4a)return _0x5eb2ab[_0x521b06(0x1e6)](_0x4bbdb7);return _0x5eb2ab[_0x521b06(0x205)](_0x4bbdb7)[_0x521b06(0x262)]();};}function respondWithResult(_0x2fe87e,_0x3786c9){return _0x3786c9=_0x3786c9||0xc8,function(_0x564190){const _0x3d7a5f=a133_0x44d9;if(_0x564190)return _0x2fe87e[_0x3d7a5f(0x205)](_0x3786c9)[_0x3d7a5f(0x22c)](_0x564190);};}function respondWithFilteredResult(_0x25517f,_0x57955b){return function(_0x597930){const _0x160ff0=a133_0x44d9;if(_0x597930){const _0x4a55ac=_0x597930[_0x160ff0(0x297)],_0x21fa6d=_0x57955b['offset'];let _0x69157b=_0x57955b['offset']+_0x57955b[_0x160ff0(0x1e3)],_0x42a47a;return _0x69157b>=_0x4a55ac?(_0x69157b=_0x4a55ac,_0x42a47a=0xc8):_0x42a47a=0xce,_0x25517f['status'](_0x42a47a),_0x25517f['set'](_0x160ff0(0x290),_0x21fa6d+'-'+_0x69157b+'/'+_0x4a55ac)[_0x160ff0(0x22c)](_0x597930);}return null;};}function saveUpdates(_0x114276){return function(_0xdf7361){const _0x246d6f=a133_0x44d9;if(_0xdf7361)return _0xdf7361[_0x246d6f(0x2ad)](_0x114276)[_0x246d6f(0x26f)](function(_0x1281d8){return _0x1281d8;});return null;};}function removeEntity(_0x2d99cd){return function(_0x5edc0d){const _0x5a8465=a133_0x44d9;if(_0x5edc0d)return _0x5edc0d[_0x5a8465(0x21c)]()[_0x5a8465(0x26f)](function(){const _0x37a579=_0x5a8465,_0x3c3711=_0x5edc0d['get']({'plain':!![]}),_0x3a1dc5='ChatWebsites';return db[_0x37a579(0x1da)]['destroy']({'where':{'type':_0x3a1dc5,'resourceId':_0x3c3711['id']}})['then'](function(){return _0x5edc0d;});})[_0x5a8465(0x26f)](function(){const _0x3b2570=_0x5a8465;_0x2d99cd[_0x3b2570(0x205)](0xcc)[_0x3b2570(0x262)]();});};}function handleEntityNotFound(_0x42ae1b){return function(_0x4109f4){const _0x388183=a133_0x44d9;return!_0x4109f4&&_0x42ae1b[_0x388183(0x1e6)](0x194),_0x4109f4;};}function handleError(_0x23be93,_0x249a2e){return _0x249a2e=_0x249a2e||0x1f4,function(_0x5f09ab){const _0x10a9fb=a133_0x44d9;logger[_0x10a9fb(0x22b)](_0x5f09ab['stack']),_0x5f09ab[_0x10a9fb(0x1c9)]&&delete _0x5f09ab[_0x10a9fb(0x1c9)],_0x23be93[_0x10a9fb(0x205)](_0x249a2e)[_0x10a9fb(0x1d0)](_0x5f09ab);};}exports[a133_0x9e658(0x291)]=function(_0x5a875c,_0x4c0b53){const _0x4af3e3=a133_0x9e658;let _0x351e44={'include':[{'model':db[_0x4af3e3(0x264)],'as':'mandatoryDispositionPause'}]};const _0x4e0c7b={},_0x5e2d00={'count':0x0,'rows':[]},_0x48b6eb=_['map'](db[_0x4af3e3(0x295)][_0x4af3e3(0x2a3)],function(_0x5e3843){const _0x5d916f=_0x4af3e3;return{'name':_0x5e3843[_0x5d916f(0x25c)],'type':_0x5e3843['type']['key']};});_0x4e0c7b['model']=_['map'](_0x48b6eb,_0x4af3e3(0x1c9)),_0x4e0c7b[_0x4af3e3(0x2ab)]=_[_0x4af3e3(0x249)](_0x5a875c[_0x4af3e3(0x2ab)]),_0x4e0c7b[_0x4af3e3(0x1dc)]=_[_0x4af3e3(0x2a6)](_0x4e0c7b[_0x4af3e3(0x1fe)],_0x4e0c7b['query']),_0x351e44[_0x4af3e3(0x263)]=_[_0x4af3e3(0x2a6)](_0x4e0c7b[_0x4af3e3(0x1fe)],qs[_0x4af3e3(0x2a7)](_0x5a875c[_0x4af3e3(0x2ab)][_0x4af3e3(0x2a7)])),_0x351e44[_0x4af3e3(0x263)]=_0x351e44[_0x4af3e3(0x263)]['length']?_0x351e44[_0x4af3e3(0x263)]:_0x4e0c7b['model'];typeof _0x5a875c[_0x4af3e3(0x2ab)]['nolimit']===_0x4af3e3(0x217)&&(_0x351e44['limit']=qs[_0x4af3e3(0x1e3)](_0x5a875c[_0x4af3e3(0x2ab)][_0x4af3e3(0x1e3)]),_0x351e44[_0x4af3e3(0x1f5)]=qs[_0x4af3e3(0x1f5)](_0x5a875c[_0x4af3e3(0x2ab)][_0x4af3e3(0x1f5)]));_0x351e44['order']=qs[_0x4af3e3(0x1f8)](_0x5a875c[_0x4af3e3(0x2ab)][_0x4af3e3(0x1f8)]),_0x351e44['where']=qs[_0x4af3e3(0x1dc)](_[_0x4af3e3(0x267)](_0x5a875c[_0x4af3e3(0x2ab)],_0x4e0c7b[_0x4af3e3(0x1dc)]),_0x48b6eb);_0x5a875c['query'][_0x4af3e3(0x1b3)]&&(_0x351e44['where']=_[_0x4af3e3(0x202)](_0x351e44[_0x4af3e3(0x1c1)],{[Op['or']]:_[_0x4af3e3(0x1ae)](_0x48b6eb,function(_0x40a627){const _0x16c3cc=_0x4af3e3;if(_0x40a627[_0x16c3cc(0x280)]!==_0x16c3cc(0x25f)){const _0xfcbbef={};return _0xfcbbef[_0x40a627[_0x16c3cc(0x1c9)]]={[Op['like']]:'%'+_0x5a875c[_0x16c3cc(0x2ab)][_0x16c3cc(0x1b3)]+'%'},_0xfcbbef;}})}));_0x351e44=_['merge']({},_0x351e44,_0x5a875c[_0x4af3e3(0x235)]);const _0x344309={'where':_0x351e44[_0x4af3e3(0x1c1)]};return db[_0x4af3e3(0x295)][_0x4af3e3(0x297)](_0x344309)[_0x4af3e3(0x26f)](function(_0x2aeb10){const _0x59878f=_0x4af3e3;return _0x5e2d00[_0x59878f(0x297)]=_0x2aeb10,_0x5a875c['query'][_0x59878f(0x1ee)]&&(_0x351e44['include']=[{'all':!![]}]),db[_0x59878f(0x295)][_0x59878f(0x1f0)](_0x351e44);})[_0x4af3e3(0x26f)](function(_0x566fbb){const _0x1aaa95=_0x4af3e3;return _0x5e2d00[_0x1aaa95(0x2aa)]=_0x566fbb,_0x5e2d00;})[_0x4af3e3(0x26f)](respondWithFilteredResult(_0x4c0b53,_0x351e44))['catch'](handleError(_0x4c0b53,null));},exports[a133_0x9e658(0x20f)]=function(_0x535a14,_0x2f9e43){const _0x4079a0=a133_0x9e658;let _0x1716ab={'raw':![],'where':{'id':_0x535a14[_0x4079a0(0x245)]['id']},'include':[{'model':db['Pause'],'as':'mandatoryDispositionPause'}]};const _0x2ef97e={};return _0x2ef97e[_0x4079a0(0x1fe)]=_[_0x4079a0(0x249)](db[_0x4079a0(0x295)]['rawAttributes']),_0x2ef97e[_0x4079a0(0x2ab)]=_[_0x4079a0(0x249)](_0x535a14[_0x4079a0(0x2ab)]),_0x2ef97e[_0x4079a0(0x1dc)]=_['intersection'](_0x2ef97e[_0x4079a0(0x1fe)],_0x2ef97e[_0x4079a0(0x2ab)]),_0x1716ab[_0x4079a0(0x263)]=_[_0x4079a0(0x2a6)](_0x2ef97e['model'],qs[_0x4079a0(0x2a7)](_0x535a14['query']['fields'])),_0x1716ab[_0x4079a0(0x263)]=_0x1716ab[_0x4079a0(0x263)]['length']?_0x1716ab[_0x4079a0(0x263)]:_0x2ef97e[_0x4079a0(0x1fe)],_0x535a14[_0x4079a0(0x2ab)][_0x4079a0(0x1ee)]&&(_0x1716ab[_0x4079a0(0x24d)]=[{'all':!![]}]),_0x1716ab=_[_0x4079a0(0x202)]({},_0x1716ab,_0x535a14[_0x4079a0(0x235)]),db[_0x4079a0(0x295)]['findOne'](_0x1716ab)[_0x4079a0(0x26f)](handleEntityNotFound(_0x2f9e43,null))[_0x4079a0(0x26f)](respondWithResult(_0x2f9e43,null))[_0x4079a0(0x1be)](handleError(_0x2f9e43,null));},exports[a133_0x9e658(0x1cf)]=function(_0xe2e99a,_0x2c6065){const _0x468bd6=a133_0x9e658;return db['ChatWebsite'][_0x468bd6(0x1cf)](_0xe2e99a[_0x468bd6(0x276)],{})[_0x468bd6(0x26f)](function(_0x11d563){const _0x412888=_0x468bd6,_0x11d484=_0xe2e99a['user'][_0x412888(0x238)]({'plain':!![]});if(!_0x11d484)throw new Error(_0x412888(0x1ec));if(_0x11d484[_0x412888(0x1e0)]===_0x412888(0x288)){const _0xa7108a=_0x11d563[_0x412888(0x238)]({'plain':!![]}),_0xeea523=_0x412888(0x23c);return db[_0x412888(0x23d)][_0x412888(0x1a5)]({'where':{'name':_0xeea523,'userProfileId':_0x11d484[_0x412888(0x246)]},'raw':!![]})[_0x412888(0x26f)](function(_0x58eeff){const _0x355bb4=_0x412888;return _0x58eeff&&_0x58eeff[_0x355bb4(0x1ed)]===0x0?db[_0x355bb4(0x1da)][_0x355bb4(0x1cf)]({'name':_0xa7108a[_0x355bb4(0x1c9)],'resourceId':_0xa7108a['id'],'type':_0x58eeff[_0x355bb4(0x1c9)],'sectionId':_0x58eeff['id']},{})[_0x355bb4(0x26f)](function(){return _0x11d563;}):_0x11d563;})[_0x412888(0x1be)](function(_0x266ad5){const _0x1c72f1=_0x412888;logger[_0x1c72f1(0x22b)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x266ad5);throw _0x266ad5;});}return _0x11d563;})['then'](respondWithResult(_0x2c6065,0xc9))[_0x468bd6(0x1be)](handleError(_0x2c6065,null));},exports[a133_0x9e658(0x2ad)]=function(_0x2bddb7,_0x1b9b39){const _0x42f4a0=a133_0x9e658;return _0x2bddb7[_0x42f4a0(0x276)]['id']&&delete _0x2bddb7[_0x42f4a0(0x276)]['id'],db[_0x42f4a0(0x295)][_0x42f4a0(0x1a5)]({'where':{'id':_0x2bddb7[_0x42f4a0(0x245)]['id']},'include':[{'model':db[_0x42f4a0(0x264)],'as':'mandatoryDispositionPause'}]})[_0x42f4a0(0x26f)](handleEntityNotFound(_0x1b9b39,null))[_0x42f4a0(0x26f)](saveUpdates(_0x2bddb7[_0x42f4a0(0x276)],null))['then'](respondWithResult(_0x1b9b39,null))[_0x42f4a0(0x1be)](handleError(_0x1b9b39,null));},exports['destroy']=function(_0x2d5a76,_0x1717d9){const _0x1f08a3=a133_0x9e658;return db[_0x1f08a3(0x295)][_0x1f08a3(0x1a5)]({'where':{'id':_0x2d5a76[_0x1f08a3(0x245)]['id']}})['then'](handleEntityNotFound(_0x1717d9,null))['then'](removeEntity(_0x1717d9,null))['catch'](handleError(_0x1717d9,null));},exports['describe']=function(_0x5607b7,_0x508abe){const _0x3bfd02=a133_0x9e658;return db['ChatWebsite']['describe']()[_0x3bfd02(0x26f)](respondWithResult(_0x508abe,null))[_0x3bfd02(0x1be)](handleError(_0x508abe,null));},exports[a133_0x9e658(0x21e)]=function(_0x1be685,_0x27c4f2){const _0x4fcc9e=a133_0x9e658;return _0x1be685['body']['id']&&delete _0x1be685[_0x4fcc9e(0x276)]['id'],db['ChatWebsite'][_0x4fcc9e(0x1a5)]({'where':{'id':_0x1be685[_0x4fcc9e(0x245)]['id']}})['then'](handleEntityNotFound(_0x27c4f2,null))[_0x4fcc9e(0x26f)](function(_0x175903){const _0x4766a7=_0x4fcc9e;if(_0x175903)return _0x1be685[_0x4766a7(0x276)][_0x4766a7(0x211)]=_0x175903['id'],db[_0x4766a7(0x294)]['create'](_0x1be685['body']);})['then'](respondWithResult(_0x27c4f2,null))[_0x4fcc9e(0x1be)](handleError(_0x27c4f2,null));},exports[a133_0x9e658(0x21a)]=function(_0x22f466,_0x8820b5){const _0x3707d1=a133_0x9e658;let _0x4a5cad={'raw':![],'where':{}};const _0x52bbf0={},_0x3a2aa5={'count':0x0,'rows':[]};return db[_0x3707d1(0x295)][_0x3707d1(0x1a5)]({'where':{'id':_0x22f466[_0x3707d1(0x245)]['id']}})[_0x3707d1(0x26f)](handleEntityNotFound(_0x8820b5,null))['then'](function(_0x4c9203){const _0x10d123=_0x3707d1;if(_0x4c9203)return _0x52bbf0[_0x10d123(0x1fe)]=_[_0x10d123(0x249)](db[_0x10d123(0x294)][_0x10d123(0x2a3)]),_0x52bbf0[_0x10d123(0x2ab)]=_[_0x10d123(0x249)](_0x22f466[_0x10d123(0x2ab)]),_0x52bbf0[_0x10d123(0x1dc)]=_[_0x10d123(0x2a6)](_0x52bbf0[_0x10d123(0x1fe)],_0x52bbf0['query']),_0x4a5cad[_0x10d123(0x263)]=_[_0x10d123(0x2a6)](_0x52bbf0[_0x10d123(0x1fe)],qs[_0x10d123(0x2a7)](_0x22f466[_0x10d123(0x2ab)][_0x10d123(0x2a7)])),_0x4a5cad['attributes']=_0x4a5cad[_0x10d123(0x263)][_0x10d123(0x1fa)]?_0x4a5cad[_0x10d123(0x263)]:_0x52bbf0[_0x10d123(0x1fe)],typeof _0x22f466[_0x10d123(0x2ab)]['nolimit']===_0x10d123(0x217)&&(_0x4a5cad['limit']=qs[_0x10d123(0x1e3)](_0x22f466['query']['limit']),_0x4a5cad[_0x10d123(0x1f5)]=qs[_0x10d123(0x1f5)](_0x22f466[_0x10d123(0x2ab)]['offset'])),_0x4a5cad[_0x10d123(0x20c)]=qs[_0x10d123(0x1f8)](_0x22f466[_0x10d123(0x2ab)]['sort']),_0x4a5cad[_0x10d123(0x1c1)]=qs[_0x10d123(0x1dc)](_['pick'](_0x22f466[_0x10d123(0x2ab)],_0x52bbf0[_0x10d123(0x1dc)])),_0x4a5cad[_0x10d123(0x1c1)][_0x10d123(0x211)]=_0x4c9203['id'],_0x22f466['query']['filter']&&(_0x4a5cad[_0x10d123(0x1c1)]=_[_0x10d123(0x202)](_0x4a5cad[_0x10d123(0x1c1)],{[Op['or']]:_[_0x10d123(0x1ae)](_0x4a5cad[_0x10d123(0x263)],function(_0x83856a){const _0x52e21a=_0x10d123,_0x5ef9db={};return _0x5ef9db[_0x83856a]={[Op[_0x52e21a(0x1ba)]]:'%'+_0x22f466[_0x52e21a(0x2ab)][_0x52e21a(0x1b3)]+'%'},_0x5ef9db;})})),_0x4a5cad=_[_0x10d123(0x202)]({},_0x4a5cad,_0x22f466['options']),db[_0x10d123(0x294)][_0x10d123(0x297)]({'where':_0x4a5cad[_0x10d123(0x1c1)]})[_0x10d123(0x26f)](function(_0x20defa){const _0x59e1a5=_0x10d123;return _0x3a2aa5[_0x59e1a5(0x297)]=_0x20defa,_0x22f466['query'][_0x59e1a5(0x1ee)]&&(_0x4a5cad[_0x59e1a5(0x24d)]=[{'all':!![]}]),db[_0x59e1a5(0x294)][_0x59e1a5(0x1f0)](_0x4a5cad);})[_0x10d123(0x26f)](function(_0x2e998d){const _0x3e7ed2=_0x10d123;return _0x3a2aa5[_0x3e7ed2(0x2aa)]=_0x2e998d,_0x3a2aa5;});})['then'](respondWithFilteredResult(_0x8820b5,_0x4a5cad))['catch'](handleError(_0x8820b5,null));},exports[a133_0x9e658(0x1ac)]=function(_0x474ebb,_0xe41bc2){const _0x4085c8=a133_0x9e658;return db[_0x4085c8(0x295)][_0x4085c8(0x1a5)]({'where':{'id':_0x474ebb[_0x4085c8(0x245)]['id']}})[_0x4085c8(0x26f)](handleEntityNotFound(_0xe41bc2,null))[_0x4085c8(0x26f)](function(_0x16fade){const _0x5e5a23=_0x4085c8;if(_0x16fade)return _0x16fade[_0x5e5a23(0x1ac)](_0x474ebb[_0x5e5a23(0x2ab)]['ids']);})[_0x4085c8(0x26f)](respondWithStatusCode(_0xe41bc2,null))[_0x4085c8(0x1be)](handleError(_0xe41bc2,null));},exports['addAnswer']=function(_0x98c568,_0x13c336){const _0xabb045=a133_0x9e658;return _0x98c568[_0xabb045(0x276)]['id']&&delete _0x98c568[_0xabb045(0x276)]['id'],db[_0xabb045(0x295)][_0xabb045(0x1a5)]({'where':{'id':_0x98c568[_0xabb045(0x245)]['id']}})['then'](handleEntityNotFound(_0x13c336,null))[_0xabb045(0x26f)](function(_0x28fe4b){const _0x1c55df=_0xabb045;if(_0x28fe4b)return _0x98c568[_0x1c55df(0x276)][_0x1c55df(0x211)]=_0x28fe4b['id'],db[_0x1c55df(0x281)][_0x1c55df(0x1cf)](_0x98c568['body']);})['then'](respondWithResult(_0x13c336,null))[_0xabb045(0x1be)](handleError(_0x13c336,null));},exports['getAnswers']=function(_0x2bc261,_0x5d0e73){const _0x2ace96=a133_0x9e658;let _0x1e3162={'raw':![],'where':{}};const _0x387718={},_0x2e5d6f={'count':0x0,'rows':[]};return db[_0x2ace96(0x295)][_0x2ace96(0x1a5)]({'where':{'id':_0x2bc261['params']['id']}})['then'](handleEntityNotFound(_0x5d0e73,null))['then'](function(_0x3d357a){const _0x12fb98=_0x2ace96;if(_0x3d357a)return _0x387718[_0x12fb98(0x1fe)]=_['keys'](db['CannedAnswer'][_0x12fb98(0x2a3)]),_0x387718[_0x12fb98(0x2ab)]=_[_0x12fb98(0x249)](_0x2bc261[_0x12fb98(0x2ab)]),_0x387718[_0x12fb98(0x1dc)]=_['intersection'](_0x387718[_0x12fb98(0x1fe)],_0x387718[_0x12fb98(0x2ab)]),_0x1e3162[_0x12fb98(0x263)]=_[_0x12fb98(0x2a6)](_0x387718[_0x12fb98(0x1fe)],qs[_0x12fb98(0x2a7)](_0x2bc261[_0x12fb98(0x2ab)][_0x12fb98(0x2a7)])),_0x1e3162[_0x12fb98(0x263)]=_0x1e3162[_0x12fb98(0x263)][_0x12fb98(0x1fa)]?_0x1e3162[_0x12fb98(0x263)]:_0x387718[_0x12fb98(0x1fe)],typeof _0x2bc261['query']['nolimit']===_0x12fb98(0x217)&&(_0x1e3162[_0x12fb98(0x1e3)]=qs[_0x12fb98(0x1e3)](_0x2bc261[_0x12fb98(0x2ab)][_0x12fb98(0x1e3)]),_0x1e3162['offset']=qs[_0x12fb98(0x1f5)](_0x2bc261['query'][_0x12fb98(0x1f5)])),_0x1e3162[_0x12fb98(0x20c)]=qs[_0x12fb98(0x1f8)](_0x2bc261[_0x12fb98(0x2ab)][_0x12fb98(0x1f8)]),_0x1e3162['where']=qs[_0x12fb98(0x1dc)](_['pick'](_0x2bc261['query'],_0x387718['filters'])),_0x1e3162['where'][_0x12fb98(0x211)]=_0x3d357a['id'],_0x2bc261[_0x12fb98(0x2ab)][_0x12fb98(0x1b3)]&&(_0x1e3162[_0x12fb98(0x1c1)]=_[_0x12fb98(0x202)](_0x1e3162['where'],{[Op['or']]:_[_0x12fb98(0x1ae)](_0x1e3162[_0x12fb98(0x263)],function(_0x4ca169){const _0x119b92=_0x12fb98,_0x53ec0b={};return _0x53ec0b[_0x4ca169]={[Op['like']]:'%'+_0x2bc261[_0x119b92(0x2ab)][_0x119b92(0x1b3)]+'%'},_0x53ec0b;})})),_0x1e3162=_[_0x12fb98(0x202)]({},_0x1e3162,_0x2bc261[_0x12fb98(0x235)]),db[_0x12fb98(0x281)][_0x12fb98(0x297)]({'where':_0x1e3162[_0x12fb98(0x1c1)]})[_0x12fb98(0x26f)](function(_0x3dfb5a){const _0x3713fe=_0x12fb98;return _0x2e5d6f[_0x3713fe(0x297)]=_0x3dfb5a,_0x2bc261[_0x3713fe(0x2ab)]['includeAll']&&(_0x1e3162[_0x3713fe(0x24d)]=[{'all':!![]}]),db[_0x3713fe(0x281)][_0x3713fe(0x1f0)](_0x1e3162);})['then'](function(_0x527638){const _0x1661bf=_0x12fb98;return _0x2e5d6f[_0x1661bf(0x2aa)]=_0x527638,_0x2e5d6f;});})['then'](respondWithFilteredResult(_0x5d0e73,_0x1e3162))[_0x2ace96(0x1be)](handleError(_0x5d0e73,null));},exports[a133_0x9e658(0x25a)]=function(_0xfb090a,_0xd08970){const _0x46128d=a133_0x9e658;return db[_0x46128d(0x295)][_0x46128d(0x1a5)]({'where':{'id':_0xfb090a[_0x46128d(0x245)]['id']}})['then'](handleEntityNotFound(_0xd08970,null))[_0x46128d(0x26f)](function(_0x41e45b){const _0xe9c7ca=_0x46128d;if(_0x41e45b)return _0x41e45b[_0xe9c7ca(0x25a)](_0xfb090a[_0xe9c7ca(0x2ab)][_0xe9c7ca(0x2a1)]);})['then'](respondWithStatusCode(_0xd08970,null))[_0x46128d(0x1be)](handleError(_0xd08970,null));},exports[a133_0x9e658(0x1fc)]=function(_0x32116b,_0x5eeb73){const _0x1d316f=a133_0x9e658;return _0x32116b[_0x1d316f(0x276)][_0x1d316f(0x24b)]=_0x32116b['file'][_0x1d316f(0x1e2)],db[_0x1d316f(0x295)][_0x1d316f(0x1a5)]({'where':{'id':_0x32116b[_0x1d316f(0x245)]['id']}})[_0x1d316f(0x26f)](handleEntityNotFound(_0x5eeb73,null))[_0x1d316f(0x26f)](saveUpdates(_0x32116b['body'],null))['then'](respondWithResult(_0x5eeb73,null))[_0x1d316f(0x1be)](handleError(_0x5eeb73,null));},exports[a133_0x9e658(0x1b6)]=function(_0x2667e9,_0x14ad17){const _0x58cd19=a133_0x9e658;return _0x2667e9[_0x58cd19(0x276)][_0x58cd19(0x201)]=_0x2667e9[_0x58cd19(0x248)]['filename'],db[_0x58cd19(0x295)][_0x58cd19(0x1a5)]({'where':{'id':_0x2667e9[_0x58cd19(0x245)]['id']}})[_0x58cd19(0x26f)](handleEntityNotFound(_0x14ad17,null))['then'](saveUpdates(_0x2667e9[_0x58cd19(0x276)],null))[_0x58cd19(0x26f)](respondWithResult(_0x14ad17,null))['catch'](handleError(_0x14ad17,null));},exports[a133_0x9e658(0x26b)]=function(_0x4773c1,_0x32e574){const _0x44a14e=a133_0x9e658;return _0x4773c1[_0x44a14e(0x276)][_0x44a14e(0x1a9)]=_0x4773c1['file'][_0x44a14e(0x1e2)],db['ChatWebsite'][_0x44a14e(0x1a5)]({'where':{'id':_0x4773c1['params']['id']}})[_0x44a14e(0x26f)](handleEntityNotFound(_0x32e574,null))[_0x44a14e(0x26f)](saveUpdates(_0x4773c1[_0x44a14e(0x276)],null))[_0x44a14e(0x26f)](respondWithResult(_0x32e574,null))['catch'](handleError(_0x32e574,null));},exports['addSystemAvatar']=function(_0x3ca4d9,_0x3e1528){const _0x58917d=a133_0x9e658;return _0x3ca4d9[_0x58917d(0x276)][_0x58917d(0x22d)]=_0x3ca4d9['file'][_0x58917d(0x1e2)],db['ChatWebsite'][_0x58917d(0x1a5)]({'where':{'id':_0x3ca4d9[_0x58917d(0x245)]['id']}})[_0x58917d(0x26f)](handleEntityNotFound(_0x3e1528,null))[_0x58917d(0x26f)](saveUpdates(_0x3ca4d9[_0x58917d(0x276)],null))[_0x58917d(0x26f)](respondWithResult(_0x3e1528,null))['catch'](handleError(_0x3e1528,null));},exports[a133_0x9e658(0x1cd)]=function(_0x1f52eb,_0x456c04){const _0x41a6f9=a133_0x9e658;let _0x4b0a43=path[_0x41a6f9(0x265)](config[_0x41a6f9(0x273)],_0x41a6f9(0x1d3));const _0x1c26e2={'where':{'id':_0x1f52eb[_0x41a6f9(0x245)]['id']},'attributes':['id',_0x41a6f9(0x24b)],'raw':!![]};let _0xeb8375=![];return require(_0x41a6f9(0x270))[_0x41a6f9(0x299)]()[_0x41a6f9(0x26f)](function(_0x1574be){const _0x2279e6=_0x41a6f9;_0x1574be&&(_0xeb8375=_0x1574be[_0x2279e6(0x27f)]);})['then'](function(){const _0x198820=_0x41a6f9;return db[_0x198820(0x295)]['findOne'](_0x1c26e2);})[_0x41a6f9(0x26f)](handleEntityNotFound(_0x456c04,null))[_0x41a6f9(0x26f)](function(_0xf3eb8b){const _0x78cf53=_0x41a6f9;if(_0xf3eb8b)return!_[_0x78cf53(0x208)](_0xf3eb8b[_0x78cf53(0x24b)])&&(fs[_0x78cf53(0x28c)](path['join'](config[_0x78cf53(0x273)],'server/files/images/logos/',_0xf3eb8b['sitepic']))&&_0xeb8375&&(_0x4b0a43=path[_0x78cf53(0x265)](config[_0x78cf53(0x273)],_0x78cf53(0x25e),_0xf3eb8b[_0x78cf53(0x24b)]))),_0x456c04[_0x78cf53(0x1c8)](_0x4b0a43);})[_0x41a6f9(0x1be)](handleError(_0x456c04,null));},exports['getAvatar']=function(_0x564eaa,_0x29485e){const _0x29e851=a133_0x9e658;let _0x51e4f4=path['join'](config[_0x29e851(0x273)],_0x29e851(0x231));const _0x5ef532={'where':{'id':_0x564eaa[_0x29e851(0x245)]['id']},'attributes':['id','agentAvatar'],'raw':!![]};return db[_0x29e851(0x295)][_0x29e851(0x1a5)](_0x5ef532)[_0x29e851(0x26f)](handleEntityNotFound(_0x29485e,null))[_0x29e851(0x26f)](function(_0x77c01f){const _0x3b411e=_0x29e851;if(_0x77c01f)return!_[_0x3b411e(0x208)](_0x77c01f['agentAvatar'])&&(fs[_0x3b411e(0x28c)](path[_0x3b411e(0x265)](config[_0x3b411e(0x273)],'server/files/images/avatars/',_0x77c01f[_0x3b411e(0x201)]))&&(_0x51e4f4=path['join'](config[_0x3b411e(0x273)],_0x3b411e(0x278),_0x77c01f['agentAvatar']))),_0x29485e['download'](_0x51e4f4);})[_0x29e851(0x1be)](handleError(_0x29485e,null));},exports['getCustomerAvatar']=function(_0x5a3217,_0x401f79){const _0x42aa4d=a133_0x9e658;let _0x407e74=path[_0x42aa4d(0x265)](config['root'],'server/files/images/avatars/customer_avatar.png');const _0x29b3f3={'where':{'id':_0x5a3217[_0x42aa4d(0x245)]['id']},'attributes':['id',_0x42aa4d(0x1a9),'showCustomerAvatar'],'raw':!![]};return db['ChatWebsite'][_0x42aa4d(0x1a5)](_0x29b3f3)[_0x42aa4d(0x26f)](handleEntityNotFound(_0x401f79,null))[_0x42aa4d(0x26f)](function(_0x4f1387){const _0x3130e5=_0x42aa4d;if(_0x4f1387)return!_[_0x3130e5(0x208)](_0x4f1387[_0x3130e5(0x1a9)])&&(fs['existsSync'](path[_0x3130e5(0x265)](config[_0x3130e5(0x273)],_0x3130e5(0x278),_0x4f1387[_0x3130e5(0x1a9)]))&&_0x4f1387['showCustomerAvatar']&&(_0x407e74=path['join'](config[_0x3130e5(0x273)],_0x3130e5(0x278),_0x4f1387[_0x3130e5(0x1a9)]))),_0x401f79[_0x3130e5(0x1c8)](_0x407e74);})[_0x42aa4d(0x1be)](handleError(_0x401f79,null));},exports[a133_0x9e658(0x200)]=function(_0x265c2a,_0x41857b){const _0x1c0c7a=a133_0x9e658;let _0x379dbc=path[_0x1c0c7a(0x265)](config[_0x1c0c7a(0x273)],_0x1c0c7a(0x298));const _0x22a747={'where':{'id':_0x265c2a[_0x1c0c7a(0x245)]['id']},'attributes':['id','systemAvatar'],'raw':!![]};return db[_0x1c0c7a(0x295)]['findOne'](_0x22a747)[_0x1c0c7a(0x26f)](handleEntityNotFound(_0x41857b,null))[_0x1c0c7a(0x26f)](function(_0x21934f){const _0xd7ce80=_0x1c0c7a;if(_0x21934f)return!_[_0xd7ce80(0x208)](_0x21934f[_0xd7ce80(0x22d)])&&(fs['existsSync'](path[_0xd7ce80(0x265)](config[_0xd7ce80(0x273)],_0xd7ce80(0x278),_0x21934f[_0xd7ce80(0x22d)]))&&(_0x379dbc=path[_0xd7ce80(0x265)](config[_0xd7ce80(0x273)],_0xd7ce80(0x278),_0x21934f[_0xd7ce80(0x22d)]))),_0x41857b[_0xd7ce80(0x1c8)](_0x379dbc);})[_0x1c0c7a(0x1be)](handleError(_0x41857b,null));},exports['notify']=function(_0xc7203f,_0xbf2db){const _0x1addc0=a133_0x9e658,_0x1e4089=require(_0x1addc0(0x260)),_0x174b62=new _0x1e4089(),_0x377dcc=_0x174b62[_0x1addc0(0x1e1)](_0xc7203f[_0x1addc0(0x1f1)][_0x1addc0(0x209)])[_0x1addc0(0x206)](),_0xe6a48f={'body':_0xc7203f['body'],'channel':_0x1addc0(0x1f3)};let _0x36d0cf=[],_0x3a2a0c=[];const _0x3e9ca3={};let _0x2b033a=![];return db[_0x1addc0(0x1a7)][_0x1addc0(0x2a0)]()[_0x1addc0(0x26f)](function(_0x4342aa){const _0x5dc6da=_0x1addc0;if(!_0x4342aa)throw new ValidationError('no\x20available\x20attributes');_0x36d0cf=_['difference'](_[_0x5dc6da(0x249)](_0x4342aa),[_0x5dc6da(0x29b),'updatedAt']),_0x3a2a0c=_[_0x5dc6da(0x259)](_[_0x5dc6da(0x249)](_0x4342aa),[_0x5dc6da(0x29b),_0x5dc6da(0x274),'CompanyId',_0x5dc6da(0x20d)]);_0xc7203f['body']['id']&&delete _0xc7203f['body']['id'];if(_[_0x5dc6da(0x208)](_0xc7203f[_0x5dc6da(0x276)]['from']))throw new ValidationError(_0x5dc6da(0x271));if(_['isNil'](_0xc7203f['body'][_0x5dc6da(0x276)])||_0xc7203f[_0x5dc6da(0x276)]['body']==='')throw new ValidationError(_0x5dc6da(0x213));if(_[_0x5dc6da(0x208)](_0xc7203f[_0x5dc6da(0x276)]['mapKey']))throw new ValidationError(_0x5dc6da(0x1d1)+_0x3a2a0c);if(!_[_0x5dc6da(0x29c)](_0x3a2a0c,_0xc7203f[_0x5dc6da(0x276)]['mapKey']))throw new ValidationError(_0x5dc6da(0x27d)+_0x3a2a0c);_0x3e9ca3[_0xc7203f[_0x5dc6da(0x276)][_0x5dc6da(0x218)]]=_0xc7203f[_0x5dc6da(0x276)][_0x5dc6da(0x1b1)];})['then'](function(){const _0x3fdeb4=_0x1addc0;return db['ChatWebsite'][_0x3fdeb4(0x1a5)]({'where':{'id':_0xc7203f[_0x3fdeb4(0x245)]['id']},'include':[{'model':db[_0x3fdeb4(0x293)],'as':_0x3fdeb4(0x210),'include':[{'model':db[_0x3fdeb4(0x1a7)],'as':_0x3fdeb4(0x1bd),'where':_0x3e9ca3,'limit':0x1,'order':[[_0x3fdeb4(0x274),_0x3fdeb4(0x272)]]}]},{'model':db[_0x3fdeb4(0x1eb)],'as':_0x3fdeb4(0x1d4)}]});})[_0x1addc0(0x26f)](handleEntityNotFound(_0xbf2db,null))[_0x1addc0(0x26f)](function(_0x4f73fc){const _0xee0007=_0x1addc0;if(_0x4f73fc&&_0x4f73fc[_0xee0007(0x210)]){_0xe6a48f['account']=_0x4f73fc,_0xe6a48f['applications']=_0x4f73fc[_0xee0007(0x1d4)],_0xe6a48f[_0xee0007(0x244)]=_0x4f73fc['List'],_0xe6a48f[_0xee0007(0x258)]=_[_0xee0007(0x1fb)](_0xe6a48f[_0xee0007(0x258)],['priority'],[_0xee0007(0x236)]);_0xe6a48f[_0xee0007(0x2ac)]['Applications']&&delete _0xe6a48f[_0xee0007(0x2ac)][_0xee0007(0x1d4)];if(_0xe6a48f[_0xee0007(0x2ac)]['List']&&_0xe6a48f[_0xee0007(0x2ac)][_0xee0007(0x210)][_0xee0007(0x1bd)]['length'])return _0xe6a48f[_0xee0007(0x2ac)][_0xee0007(0x210)]['Contacts'][0x0];const _0x37d629=_[_0xee0007(0x268)](_0xc7203f[_0xee0007(0x276)],{'firstName':_0xc7203f[_0xee0007(0x276)][_0xee0007(0x1b1)],'ListId':_0x4f73fc[_0xee0007(0x20d)]});return _0x37d629[_0xc7203f[_0xee0007(0x276)][_0xee0007(0x218)]]=_0xc7203f[_0xee0007(0x276)][_0xee0007(0x1b1)],db[_0xee0007(0x1a7)]['create'](_0x37d629,{'fields':_0x36d0cf,'raw':!![]});}})[_0x1addc0(0x26f)](handleEntityNotFound(_0xbf2db,null))[_0x1addc0(0x26f)](function(_0x14ece){const _0x594290=_0x1addc0;_0xe6a48f[_0x594290(0x1b4)]=_0x14ece;let _0x4b9094=_0xc7203f[_0x594290(0x276)][_0x594290(0x1b8)];if(_0xc7203f[_0x594290(0x1f1)]['cf-connecting-ip'])_0x4b9094=_0xc7203f['headers']['cf-connecting-ip'];else _0xc7203f[_0x594290(0x1f1)][_0x594290(0x279)]&&(_0x4b9094=_['first'](_0xc7203f['headers'][_0x594290(0x279)][_0x594290(0x1db)](',')));if(_0x14ece){const _0x48707d={'ContactId':_0x14ece['id'],'ChatWebsiteId':_0xc7203f['params']['id'],'from':(_0x14ece[_0x594290(0x1e9)]||'')+'\x20'+(_0x14ece['lastName']||''),'customerIp':_0x4b9094,'customerPort':_0xc7203f['headers'][_0x594290(0x1c3)]?_0xc7203f[_0x594290(0x1f1)][_0x594290(0x1c3)]:null,'referer':_0xc7203f[_0x594290(0x276)][_0x594290(0x222)],'browserName':_0x377dcc['browser']['name']&&_0x377dcc['browser'][_0x594290(0x21b)]?util[_0x594290(0x28d)](_0x594290(0x26d),_0x377dcc[_0x594290(0x27c)]['name'],_0x377dcc[_0x594290(0x27c)]['version']):_0x594290(0x26a),'browserVersion':_0x377dcc[_0x594290(0x27c)][_0x594290(0x21b)]||_0x594290(0x26a),'osName':util[_0x594290(0x28d)](_0x594290(0x26d),_0x377dcc['os'][_0x594290(0x1c9)],_0x377dcc['os']['version']),'osVersion':_0x377dcc['os'][_0x594290(0x21b)],'deviceModel':_0x377dcc['device']['model']&&_0x377dcc[_0x594290(0x26c)][_0x594290(0x1c5)]?util[_0x594290(0x28d)](_0x594290(0x214),_0x377dcc[_0x594290(0x26c)][_0x594290(0x1fe)],_0x377dcc[_0x594290(0x26c)][_0x594290(0x1c5)],_0x377dcc['device'][_0x594290(0x280)]):null,'deviceVendor':_0x377dcc['device'][_0x594290(0x1c5)],'deviceType':_0x377dcc[_0x594290(0x26c)][_0x594290(0x280)],'formData':JSON[_0x594290(0x220)](_0xc7203f[_0x594290(0x276)])},_0x25cf10={'ChatWebsiteId':_0xc7203f[_0x594290(0x245)]['id'],'closed':![]};if(_0xc7203f[_0x594290(0x276)][_0x594290(0x1bf)])return _0x25cf10['threadId']=_0xc7203f['body']['threadId'],db[_0x594290(0x239)][_0x594290(0x1a5)]({'where':_0x25cf10})['then'](function(_0xa651f0){const _0x24c664=_0x594290;if(_0xa651f0)return[_0xa651f0,![]];return _0x48707d['threadId']=_0xc7203f[_0x24c664(0x276)][_0x24c664(0x1bf)],_0x48707d[_0x24c664(0x23a)]=_0xc7203f[_0x24c664(0x276)][_0x24c664(0x23a)],db['ChatInteraction'][_0x24c664(0x1cf)](_0x48707d)[_0x24c664(0x26f)](function(_0x6f60f0){return[_0x6f60f0,!![]];});});_0x25cf10[_0x594290(0x1d5)]=_0x14ece['id'];if(_0xc7203f[_0x594290(0x276)][_0x594290(0x1f7)]&&_0xc7203f[_0x594290(0x276)][_0x594290(0x1f7)]['id'])return _0x25cf10['id']=_0xc7203f['body'][_0x594290(0x1f7)]['id'],db[_0x594290(0x239)][_0x594290(0x1a5)]({'where':_0x25cf10})[_0x594290(0x26f)](function(_0xe1677b){const _0x13488d=_0x594290;if(_0xe1677b)return[_0xe1677b,![]];return db['ChatInteraction'][_0x13488d(0x1cf)](_0x48707d)[_0x13488d(0x26f)](function(_0x42fbd4){return[_0x42fbd4,!![]];});});return db['ChatInteraction']['create'](_0x48707d)['then'](function(_0x21d0c9){return[_0x21d0c9,!![]];});}})['then'](function([_0x4f5174,_0x20430a]){const _0x3d75ca=_0x1addc0;if(_0x4f5174){_0x2b033a=_0x20430a;if(!_0x20430a){const _0x15f7fd={'from':(_0xe6a48f['contact'][_0x3d75ca(0x1e9)]||'')+'\x20'+(_0xe6a48f[_0x3d75ca(0x1b4)][_0x3d75ca(0x1f2)]||'')};return _0xc7203f[_0x3d75ca(0x276)]['threadId']&&_0xc7203f[_0x3d75ca(0x276)][_0x3d75ca(0x269)]&&_0xc7203f[_0x3d75ca(0x276)]['threadId']!=_0xc7203f['body'][_0x3d75ca(0x269)]&&(_0x15f7fd[_0x3d75ca(0x1bf)]=_0xc7203f[_0x3d75ca(0x276)]['messageId']),_0x4f5174['update'](_0x15f7fd);}else return _0x4f5174;}})[_0x1addc0(0x26f)](function(_0x57059e){const _0x54631b=_0x1addc0;return _0xe6a48f[_0x54631b(0x1f7)]=_0x57059e[_0x54631b(0x238)]({'plain':!![]}),_0xe6a48f[_0x54631b(0x1f7)]['created']=_0x2b033a,_0xe6a48f[_0x54631b(0x1f7)][_0x54631b(0x1c0)]&&(_0xe6a48f[_0x54631b(0x2ac)]['autoclose']&&_0xe6a48f[_0x54631b(0x258)][_0x54631b(0x20e)]({'id':0x0,'priority':_0xe6a48f['applications'][_0x54631b(0x1fa)]+0x1,'app':_0x54631b(0x28b),'appdata':_0x54631b(0x23f),'interval':_0x54631b(0x282)})),db[_0x54631b(0x1a6)][_0x54631b(0x1cf)]({'body':_0xc7203f[_0x54631b(0x276)][_0x54631b(0x276)],'ChatWebsiteId':_0xc7203f['params']['id'],'ChatInteractionId':_0x57059e['id'],'direction':'in','ContactId':_0xe6a48f['contact']['id'],'AttachmentId':_0xc7203f['body'][_0x54631b(0x216)]});})[_0x1addc0(0x26f)](function(_0xc02705){const _0x524d45=_0x1addc0;_0xe6a48f['message']=_0xc02705;if(_0xe6a48f['interaction'][_0x524d45(0x23b)])return db['User'][_0x524d45(0x1a5)]({'attributes':['id','name'],'where':{'id':_0xe6a48f[_0x524d45(0x1f7)][_0x524d45(0x23b)]}})[_0x524d45(0x26f)](function(_0x3f68d6){const _0x273d42=_0x524d45;return _0x3f68d6&&(_0xe6a48f['applications'][_0x273d42(0x1c6)]({'id':0x0,'priority':0x0,'app':_0x273d42(0x230),'appdata':_0x3f68d6[_0x273d42(0x1c9)]+','+(_0xe6a48f[_0x273d42(0x2ac)]['waitForTheAssignedAgent']||0xa),'interval':_0x273d42(0x282)}),_0xe6a48f['forcedOwnership']=!![]),respondWithRpcPromise('Start',_0x273d42(0x1cc),_0xe6a48f);});return respondWithRpcPromise('Start',_0x524d45(0x1cc),_0xe6a48f);})[_0x1addc0(0x26f)](function(_0x5a3fda){const _0x7b03f6=_0x1addc0;return respondWithRpcPromise(_0x7b03f6(0x1e7),_0x7b03f6(0x1e7),{'event':_0x7b03f6(0x29a),'message':_0x5a3fda},client9002),_0x5a3fda;})[_0x1addc0(0x26f)](respondWithResult(_0xbf2db,null))['catch'](handleError(_0xbf2db,null));},exports[a133_0x9e658(0x1f6)]=function(_0x17e9ed,_0x1d8be2){const _0x2c33ec=a133_0x9e658;let _0xb88f11,_0x4ffd6c,_0x31eacf=[];const _0x399334={};return db[_0x2c33ec(0x1a7)][_0x2c33ec(0x2a0)]()[_0x2c33ec(0x26f)](function(_0x1159f9){const _0x472b02=_0x2c33ec;if(!_0x1159f9)throw new ValidationError('no\x20available\x20attributes');_0x31eacf=_['difference'](_['keys'](_0x1159f9),[_0x472b02(0x29b),_0x472b02(0x274),_0x472b02(0x234),_0x472b02(0x20d)]);_0x17e9ed['body']['id']&&delete _0x17e9ed[_0x472b02(0x276)]['id'];if(_[_0x472b02(0x208)](_0x17e9ed['body'][_0x472b02(0x1b1)]))throw _0x1d8be2[_0x472b02(0x205)](0x1f4)[_0x472b02(0x1d0)](new ValidationError('from\x20is\x20mandatory'));if(_[_0x472b02(0x208)](_0x17e9ed[_0x472b02(0x276)][_0x472b02(0x276)])||_0x17e9ed[_0x472b02(0x276)][_0x472b02(0x276)]==='')throw _0x1d8be2[_0x472b02(0x205)](0x1f4)[_0x472b02(0x1d0)](new ValidationError(_0x472b02(0x213)));if(_[_0x472b02(0x208)](_0x17e9ed['body'][_0x472b02(0x215)]))throw _0x1d8be2[_0x472b02(0x205)](0x1f4)[_0x472b02(0x1d0)](new ValidationError(_0x472b02(0x256)+_0x31eacf));if(!_['includes'](_0x31eacf,_0x17e9ed[_0x472b02(0x276)][_0x472b02(0x215)]))throw _0x1d8be2[_0x472b02(0x205)](0x1f4)['send'](new ValidationError(_0x472b02(0x23e)+_0x31eacf));_0x399334[_0x17e9ed[_0x472b02(0x276)][_0x472b02(0x215)]]=_0x17e9ed['body'][_0x472b02(0x1b1)];})[_0x2c33ec(0x26f)](function(){const _0x4b3458=_0x2c33ec;return db['ChatWebsite'][_0x4b3458(0x1a5)]({'where':{'id':_0x17e9ed[_0x4b3458(0x245)]['id']},'include':[{'model':db[_0x4b3458(0x293)],'as':_0x4b3458(0x210)}]});})[_0x2c33ec(0x26f)](handleEntityNotFound(_0x1d8be2,null))[_0x2c33ec(0x26f)](function(_0x12fc84){const _0x40aa58=_0x2c33ec;if(_0x12fc84&&_0x12fc84[_0x40aa58(0x210)]){_0x4ffd6c=_0x12fc84;const _0x5c4dad=_[_0x40aa58(0x268)](_0x17e9ed[_0x40aa58(0x276)],{'firstName':_0x17e9ed[_0x40aa58(0x276)][_0x40aa58(0x1b1)],'phone':_0x17e9ed['body']['from'],'ListId':_0x12fc84[_0x40aa58(0x20d)]});return _0x5c4dad[_0x17e9ed[_0x40aa58(0x276)][_0x40aa58(0x215)]]=_0x17e9ed[_0x40aa58(0x276)][_0x40aa58(0x1b1)],db[_0x40aa58(0x1a7)][_0x40aa58(0x203)]({'where':_0x399334,'defaults':_0x5c4dad});}})['then'](function([_0x9df39e]){const _0x1a9122=_0x2c33ec;if(_0x9df39e){const _0x411c01=fs[_0x1a9122(0x1ab)](path['join'](config['root'],_0x1a9122(0x25d)),_0x1a9122(0x237)),_0x3a5506=ejs[_0x1a9122(0x2a4)](_0x411c01,{'body':_[_0x1a9122(0x285)](_0x17e9ed[_0x1a9122(0x276)]['body']),'bodyTitle':_0x4ffd6c[_0x1a9122(0x27a)]});return db[_0x1a9122(0x1c7)][_0x1a9122(0x1cf)]({'body':_0x3a5506,'ContactId':_0x9df39e['id'],'ChatWebsiteId':_0x4ffd6c['id']});}})[_0x2c33ec(0x26f)](function(_0x3a0344){const _0x15a11b=_0x2c33ec;if(_0x3a0344)return _0xb88f11=_0x3a0344,db[_0x15a11b(0x1d7)][_0x15a11b(0x1a5)]({'where':{'service':!![]},'include':[{'model':db[_0x15a11b(0x219)],'as':_0x15a11b(0x20b),'raw':!![]}]});})[_0x2c33ec(0x26f)](function(_0x585ebd){const _0x4a7e96=_0x2c33ec;if(_0x585ebd&&_0x585ebd['Smtp']&&_0x4ffd6c['forwardOfflineAddress']){const _0x12cac9={'tls':{'rejectUnauthorized':![]}};return _0x585ebd['Smtp'][_0x4a7e96(0x20a)]?_0x12cac9['service']=_0x585ebd[_0x4a7e96(0x20b)][_0x4a7e96(0x20a)]:(_0x12cac9[_0x4a7e96(0x253)]=_0x585ebd[_0x4a7e96(0x20b)][_0x4a7e96(0x253)],_0x12cac9[_0x4a7e96(0x207)]=_0x585ebd[_0x4a7e96(0x20b)][_0x4a7e96(0x207)],_0x12cac9['secure']=_0x585ebd['Smtp'][_0x4a7e96(0x24c)]),_0x585ebd[_0x4a7e96(0x20b)][_0x4a7e96(0x241)]&&(_0x12cac9[_0x4a7e96(0x1bc)]={'user':_0x585ebd['Smtp']['user'],'pass':_0x585ebd['Smtp'][_0x4a7e96(0x25b)]}),respondWithRpcPromise(_0x4a7e96(0x1b9),_0x4a7e96(0x1ad),{'account':_0x12cac9,'message':{'from':util[_0x4a7e96(0x28d)](_0x4a7e96(0x275),_0x585ebd['name'],_0x585ebd[_0x4a7e96(0x229)]||_0x585ebd[_0x4a7e96(0x20b)][_0x4a7e96(0x288)]),'to':_0x4ffd6c[_0x4a7e96(0x283)],'subject':_0x4ffd6c['offlineMessageSubject'],'text':_0xb88f11[_0x4a7e96(0x276)]}},client9003)['then'](function(){return _0xb88f11;})[_0x4a7e96(0x1be)](function(_0x42b0d4){const _0x2788a2=_0x4a7e96;console[_0x2788a2(0x22b)](_0x42b0d4);});}})['then'](function(){if(_0xb88f11)return _0xb88f11;})[_0x2c33ec(0x26f)](respondWithResult(_0x1d8be2,null))[_0x2c33ec(0x1be)](handleError(_0x1d8be2,null));},exports[a133_0x9e658(0x24a)]=function(_0x7d17d1,_0x16ee6e){const _0x2aba53=a133_0x9e658;return db['ChatInteraction']['findOne']({'where':{'id':_0x7d17d1[_0x2aba53(0x245)]['id']}})[_0x2aba53(0x26f)](function(_0x1c2de2){const _0x4a0043=_0x2aba53;if(_0x1c2de2)return _0x1c2de2[_0x4a0043(0x24a)](_0x7d17d1[_0x4a0043(0x276)][_0x4a0043(0x2a1)],{'through':_['omit'](_0x7d17d1[_0x4a0043(0x276)],[_0x4a0043(0x2a1),'id'])});})[_0x2aba53(0x26f)](respondWithResult(_0x16ee6e,null))[_0x2aba53(0x1be)](handleError(_0x16ee6e,null));},exports[a133_0x9e658(0x29d)]=function(_0x33d15f,_0x3fcec2){const _0x474f58=a133_0x9e658;let _0x47c8df={'raw':![],'where':{}};const _0x334cfc={},_0x4f0ae2={'count':0x0,'rows':[]};return db[_0x474f58(0x295)][_0x474f58(0x1a5)]({'where':{'id':_0x33d15f['params']['id']}})[_0x474f58(0x26f)](handleEntityNotFound(_0x3fcec2,null))[_0x474f58(0x26f)](function(_0x1e6d31){const _0x5271ed=_0x474f58;if(_0x1e6d31)return _0x334cfc[_0x5271ed(0x1fe)]=_[_0x5271ed(0x249)](db[_0x5271ed(0x239)]['rawAttributes']),_0x334cfc[_0x5271ed(0x2ab)]=_[_0x5271ed(0x249)](_0x33d15f['query']),_0x334cfc['filters']=_[_0x5271ed(0x2a6)](_0x334cfc['model'],_0x334cfc[_0x5271ed(0x2ab)]),_0x47c8df[_0x5271ed(0x263)]=_[_0x5271ed(0x2a6)](_0x334cfc[_0x5271ed(0x1fe)],qs[_0x5271ed(0x2a7)](_0x33d15f[_0x5271ed(0x2ab)]['fields'])),_0x47c8df['attributes']=_0x47c8df[_0x5271ed(0x263)][_0x5271ed(0x1fa)]?_0x47c8df[_0x5271ed(0x263)]:_0x334cfc[_0x5271ed(0x1fe)],typeof _0x33d15f[_0x5271ed(0x2ab)][_0x5271ed(0x22a)]===_0x5271ed(0x217)&&(_0x47c8df['limit']=qs[_0x5271ed(0x1e3)](_0x33d15f['query'][_0x5271ed(0x1e3)]),_0x47c8df['offset']=qs[_0x5271ed(0x1f5)](_0x33d15f[_0x5271ed(0x2ab)]['offset'])),_0x47c8df[_0x5271ed(0x20c)]=qs[_0x5271ed(0x1f8)](_0x33d15f['query'][_0x5271ed(0x1f8)]),_0x47c8df[_0x5271ed(0x1c1)]=qs['filters'](_[_0x5271ed(0x267)](_0x33d15f['query'],_0x334cfc[_0x5271ed(0x1dc)])),_0x47c8df['where'][_0x5271ed(0x211)]=_0x1e6d31['id'],_0x33d15f[_0x5271ed(0x2ab)][_0x5271ed(0x1b3)]&&(_0x47c8df[_0x5271ed(0x1c1)]=_['merge'](_0x47c8df[_0x5271ed(0x1c1)],{[Op['or']]:_[_0x5271ed(0x1ae)](_0x47c8df[_0x5271ed(0x263)],function(_0x127137){const _0x32546d=_0x5271ed,_0x8eef0b={};return _0x8eef0b[_0x127137]={[Op[_0x32546d(0x1ba)]]:'%'+_0x33d15f[_0x32546d(0x2ab)][_0x32546d(0x1b3)]+'%'},_0x8eef0b;})})),_0x47c8df=_['merge']({},_0x47c8df,_0x33d15f[_0x5271ed(0x235)]),db[_0x5271ed(0x239)][_0x5271ed(0x297)]({'where':_0x47c8df[_0x5271ed(0x1c1)]})[_0x5271ed(0x26f)](function(_0x967375){const _0x50d573=_0x5271ed;return _0x4f0ae2[_0x50d573(0x297)]=_0x967375,_0x33d15f['query'][_0x50d573(0x1ee)]&&(_0x47c8df[_0x50d573(0x24d)]=[{'model':db[_0x50d573(0x1a7)],'as':'Contact','required':![]},{'model':db[_0x50d573(0x232)],'as':_0x50d573(0x247),'attributes':['name','fullname','internal'],'required':![]},{'model':db[_0x50d573(0x242)],'as':'Tags','attributes':['id','name','color'],'where':_0x33d15f[_0x50d573(0x2ab)]['tag']?{'id':_0x33d15f[_0x50d573(0x2ab)]['tag']}:undefined,'required':_0x33d15f['query'][_0x50d573(0x1d8)]?!![]:![]}]),db[_0x50d573(0x239)][_0x50d573(0x1f0)](_0x47c8df);})[_0x5271ed(0x26f)](function(_0x597fd8){return _0x4f0ae2['rows']=_0x597fd8,_0x4f0ae2;});})[_0x474f58(0x26f)](respondWithFilteredResult(_0x3fcec2,_0x47c8df))['catch'](handleError(_0x3fcec2,null));};function iftimePromise(_0x568843,_0x379a2a){const _0x1fb598=a133_0x9e658;return respondWithRpcPromise(_0x1fb598(0x284),_0x1fb598(0x22f),{'command':_0x379a2a[_0x1fb598(0x1ea)]?util[_0x1fb598(0x28d)]('iftime\x20%s,%s',_0x568843[_0x1fb598(0x225)],_0x379a2a[_0x1fb598(0x1ea)]):util[_0x1fb598(0x28d)](_0x1fb598(0x1b2),_0x568843[_0x1fb598(0x225)])},client9002)['then'](function(_0x4a1060){const _0xc38a4e=_0x1fb598,_0x337b2d=_0x4a1060&&_0x4a1060[_0xc38a4e(0x1c2)](_0xc38a4e(0x1fd))>=0x0?!![]:![];return logger[_0xc38a4e(0x28f)](_0xc38a4e(0x1df),_0x379a2a['id'],_0x568843['id'],_0x568843['interval'],_0x337b2d?_0xc38a4e(0x287):_0xc38a4e(0x277),_0x379a2a[_0xc38a4e(0x1ea)]?_0x379a2a[_0xc38a4e(0x1ea)]:_0xc38a4e(0x251)),_0x337b2d;})[_0x1fb598(0x1be)](function(_0xd69d06){const _0x5cfa5c=_0x1fb598;return logger[_0x5cfa5c(0x22b)](_0x5cfa5c(0x1df),_0x379a2a['id'],_0x568843['id'],_0x568843[_0x5cfa5c(0x225)],util['inspect'](_0xd69d06,{'showHidden':![],'depth':null}),_0x379a2a[_0x5cfa5c(0x1ea)]?_0x379a2a[_0x5cfa5c(0x1ea)]:_0x5cfa5c(0x251)),![];});}exports[a133_0x9e658(0x22f)]=function(_0x23cc55,_0x501ff1){const _0x279ad6=a133_0x9e658;let _0x5878ef=0x0,_0x507e0d=0x0,_0x406d42=![],_0x37b5db,_0x12975f;return db[_0x279ad6(0x295)][_0x279ad6(0x1a5)]({'where':{'id':_0x23cc55[_0x279ad6(0x245)]['id']},'include':[{'model':db[_0x279ad6(0x1e4)],'as':_0x279ad6(0x1e4),'include':[{'model':db[_0x279ad6(0x1e4)],'as':'Intervals','attributes':['id','interval'],'raw':!![]}]}]})['then'](handleEntityNotFound(_0x501ff1,null))[_0x279ad6(0x26f)](function(_0x1a0b6f){const _0x3f3218=_0x279ad6;if(_0x1a0b6f)return _0x37b5db=_0x1a0b6f,_0x1a0b6f[_0x3f3218(0x26e)]({'raw':!![]});})[_0x279ad6(0x26f)](function(_0x11b627){return _0x37b5db&&(_0x11b627&&(_0x12975f=_0x11b627)),require('../../config/license/util')['getLicense']();})['then'](function(_0x138011){const _0xf0ffa=_0x279ad6;_0x138011&&(_0x507e0d=_0x138011['virtual'],_0x406d42=_0x138011[_0xf0ffa(0x27f)]);})[_0x279ad6(0x26f)](function(){const _0xd1f5cf=_0x279ad6;return db['ChatInteraction'][_0xd1f5cf(0x297)]({'where':{'closed':![]}});})[_0x279ad6(0x26f)](function(_0x10cbf3){const _0x2a4a00=_0x279ad6;_0x5878ef=_0x10cbf3;if(_0x507e0d&&_0x10cbf3>_0x507e0d)return db[_0x2a4a00(0x240)][_0x2a4a00(0x1a5)]({'where':{'id':0x1}})[_0x2a4a00(0x26f)](function(_0x5d3613){const _0x278c90=_0x2a4a00;_0x5d3613&&_0x5d3613[_0x278c90(0x1cb)](_0x278c90(0x226));});})[_0x279ad6(0x26f)](function(){const _0x2ac19d=_0x279ad6;if(_0x37b5db[_0x2ac19d(0x1e4)]&&_0x37b5db[_0x2ac19d(0x1e4)][_0x2ac19d(0x1de)]){const _0x44a1e7=[];for(let _0x24d449=0x0;_0x24d449<_0x37b5db[_0x2ac19d(0x1e4)]['Intervals'][_0x2ac19d(0x1fa)];_0x24d449++){const _0x2e6c4d=_0x37b5db[_0x2ac19d(0x1e4)][_0x2ac19d(0x1de)][_0x24d449]['get']({'plain':!![]});_0x44a1e7[_0x2ac19d(0x20e)](iftimePromise(_0x2e6c4d,_0x37b5db));}return Promise[_0x2ac19d(0x289)](_0x44a1e7)['then'](function(_0x281259){return _['some'](_0x281259);});}else return!![];})[_0x279ad6(0x26f)](function(_0x2a2810){const _0x346682=_0x279ad6,_0x278d1e=_0x23cc55[_0x346682(0x254)][_0x346682(0x238)]('chatVersion'),_0x4c1bfb=fs[_0x346682(0x1ab)](path[_0x346682(0x265)](config[_0x346682(0x273)],_0x346682(0x250)),'utf8'),_0x23f026={'chatVersion':_0x278d1e,'remote':_0x37b5db[_0x346682(0x21d)],'query':querystring[_0x346682(0x220)](_[_0x346682(0x202)](_0x37b5db['get']({'plain':!![]}),{'customerIp':_0x23cc55[_0x346682(0x1f1)][_0x346682(0x279)]||_0x23cc55[_0x346682(0x1f1)][_0x346682(0x24f)]||_0x23cc55[_0x346682(0x204)][_0x346682(0x266)]||_0x23cc55['ip'],'referer':_0x23cc55[_0x346682(0x1f1)][_0x346682(0x222)],'openedInteractions':_0x5878ef,'maxInteractions':_0x507e0d,'virtual':_0x406d42['virtual'],'online':_0x2a2810,'custom':_0x406d42}))['replace'](/'/g,'\x5c\x27')};_0x501ff1[_0x346682(0x1d0)](ejs[_0x346682(0x2a4)](Mustache['render'](_0x4c1bfb,_0x23f026),{'proactiveActions':_0x12975f,'alignment':_0x37b5db['alignment'],'verticalAlignment':_0x37b5db[_0x346682(0x1f4)],'div_color':_0x37b5db[_0x346682(0x28a)],'text_color':_0x37b5db[_0x346682(0x2a2)]}));})[_0x279ad6(0x1be)](handleError(_0x501ff1,null));},exports[a133_0x9e658(0x261)]=function(_0x5b5288,_0x5c2fb8){const _0x5e892f=a133_0x9e658;return db[_0x5e892f(0x295)][_0x5e892f(0x1a5)]({'where':{'id':_0x5b5288[_0x5e892f(0x245)]['id']}})[_0x5e892f(0x26f)](handleEntityNotFound(_0x5c2fb8,null))[_0x5e892f(0x26f)](function(_0x3fc7aa){const _0x3b4ba1=_0x5e892f;if(_0x3fc7aa)return db[_0x3b4ba1(0x1ef)][_0x3b4ba1(0x2a5)](function(_0x5cf9c0){const _0x28a1fd=_0x3b4ba1;return db[_0x28a1fd(0x1eb)][_0x28a1fd(0x21c)]({'where':{'ChatWebsiteId':_0x5b5288[_0x28a1fd(0x245)]['id']},'transaction':_0x5cf9c0})['then'](function(){const _0x1a1abb=_0x28a1fd,_0x4d5e99=_[_0x1a1abb(0x1ae)](_0x5b5288[_0x1a1abb(0x276)],function(_0xc9b0d0){const _0x536413=_0x1a1abb;return _0xc9b0d0[_0x536413(0x211)]=_0x5b5288[_0x536413(0x245)]['id'],_0xc9b0d0;});return db[_0x1a1abb(0x1eb)]['bulkCreate'](_0x4d5e99,{'transaction':_0x5cf9c0});});})[_0x3b4ba1(0x26f)](function(){const _0x2d70ab=_0x3b4ba1;return db[_0x2d70ab(0x1eb)][_0x2d70ab(0x1ce)]({'where':{'ChatWebsiteId':_0x5b5288[_0x2d70ab(0x245)]['id']},'order':_0x2d70ab(0x29f)});});})[_0x5e892f(0x26f)](respondWithResult(_0x5c2fb8,null))['catch'](handleError(_0x5c2fb8,null));},exports[a133_0x9e658(0x228)]=function(_0x5a9252,_0x392ec9){const _0x5ab36f=a133_0x9e658;let _0x141d8e={};const _0x1615bf={};let _0x97ec0b,_0x53290d;return db['ChatWebsite'][_0x5ab36f(0x1a5)]({'where':{'id':_0x5a9252[_0x5ab36f(0x245)]['id']}})[_0x5ab36f(0x26f)](handleEntityNotFound(_0x392ec9,null))['then'](function(_0x352d9f){const _0x193055=_0x5ab36f;if(_0x352d9f)return _0x97ec0b=_0x352d9f,_0x1615bf[_0x193055(0x1fe)]=_[_0x193055(0x249)](db[_0x193055(0x1eb)][_0x193055(0x2a3)]),_0x1615bf[_0x193055(0x2ab)]=_[_0x193055(0x249)](_0x5a9252[_0x193055(0x2ab)]),_0x1615bf[_0x193055(0x1dc)]=_['intersection'](_0x1615bf['model'],_0x1615bf[_0x193055(0x2ab)]),_0x141d8e[_0x193055(0x263)]=_['intersection'](_0x1615bf[_0x193055(0x1fe)],qs[_0x193055(0x2a7)](_0x5a9252[_0x193055(0x2ab)][_0x193055(0x2a7)])),_0x141d8e[_0x193055(0x263)]=_0x141d8e[_0x193055(0x263)]['length']?_0x141d8e[_0x193055(0x263)]:_0x1615bf[_0x193055(0x1fe)],_0x141d8e[_0x193055(0x20c)]=qs[_0x193055(0x1f8)](_0x5a9252[_0x193055(0x2ab)][_0x193055(0x1f8)]),_0x141d8e[_0x193055(0x1c1)]=qs[_0x193055(0x1dc)](_[_0x193055(0x267)](_0x5a9252[_0x193055(0x2ab)],_0x1615bf['filters'])),_0x5a9252['query'][_0x193055(0x1b3)]&&(_0x141d8e[_0x193055(0x1c1)]=_[_0x193055(0x202)](_0x141d8e[_0x193055(0x1c1)],{[Op['or']]:_[_0x193055(0x1ae)](_0x141d8e[_0x193055(0x263)],function(_0x124402){const _0x207068=_0x193055,_0x1254a6={};return _0x1254a6[_0x124402]={[Op[_0x207068(0x1ba)]]:'%'+_0x5a9252[_0x207068(0x2ab)]['filter']+'%'},_0x1254a6;})})),_0x141d8e=_[_0x193055(0x202)]({},_0x141d8e,_0x5a9252['options']),_0x97ec0b['getApplications'](_0x141d8e);})[_0x5ab36f(0x26f)](function(_0x405eb8){const _0x4794be=_0x5ab36f;if(_0x405eb8)return _0x53290d=_0x405eb8[_0x4794be(0x1fa)],typeof _0x5a9252['query']['nolimit']==='undefined'&&(_0x141d8e[_0x4794be(0x1e3)]=qs['limit'](_0x5a9252[_0x4794be(0x2ab)][_0x4794be(0x1e3)]),_0x141d8e[_0x4794be(0x1f5)]=qs[_0x4794be(0x1f5)](_0x5a9252[_0x4794be(0x2ab)][_0x4794be(0x1f5)])),_0x97ec0b[_0x4794be(0x228)](_0x141d8e);})[_0x5ab36f(0x26f)](function(_0x989fb9){if(_0x989fb9)return _0x989fb9?{'count':_0x53290d,'rows':_0x989fb9}:null;})[_0x5ab36f(0x26f)](respondWithResult(_0x392ec9,null))['catch'](handleError(_0x392ec9,null));},exports[a133_0x9e658(0x223)]=function(_0x3192c9,_0x41cff7){const _0x8c43fc=a133_0x9e658;return db['chatProactiveAction']['findOne']({'where':{'id':_0x3192c9[_0x8c43fc(0x245)]['id']}})[_0x8c43fc(0x26f)](function(_0x283bb8){const _0x44280e=_0x8c43fc;if(_0x283bb8)return _0x283bb8['addProactiveActions'](_0x3192c9[_0x44280e(0x276)][_0x44280e(0x2a1)],{'through':_['omit'](_0x3192c9[_0x44280e(0x276)],[_0x44280e(0x2a1),'id'])});})['then'](respondWithResult(_0x41cff7,null))['catch'](handleError(_0x41cff7,null));},exports[a133_0x9e658(0x26e)]=function(_0xf3bb92,_0x2dafa0){const _0x1c19ac=a133_0x9e658;let _0x5d6140={};const _0x1eeb8d={};let _0x4a267f,_0xbfc12f;return db[_0x1c19ac(0x295)][_0x1c19ac(0x1a5)]({'where':{'id':_0xf3bb92[_0x1c19ac(0x245)]['id']}})[_0x1c19ac(0x26f)](handleEntityNotFound(_0x2dafa0,null))[_0x1c19ac(0x26f)](function(_0xe6cead){const _0x1049fe=_0x1c19ac;if(_0xe6cead)return _0x4a267f=_0xe6cead,_0x1eeb8d[_0x1049fe(0x1fe)]=_['keys'](db[_0x1049fe(0x255)][_0x1049fe(0x2a3)]),_0x1eeb8d[_0x1049fe(0x2ab)]=_['keys'](_0xf3bb92[_0x1049fe(0x2ab)]),_0x1eeb8d[_0x1049fe(0x1dc)]=_[_0x1049fe(0x2a6)](_0x1eeb8d[_0x1049fe(0x1fe)],_0x1eeb8d['query']),_0x5d6140[_0x1049fe(0x263)]=_[_0x1049fe(0x2a6)](_0x1eeb8d[_0x1049fe(0x1fe)],qs[_0x1049fe(0x2a7)](_0xf3bb92['query']['fields'])),_0x5d6140[_0x1049fe(0x263)]=_0x5d6140['attributes'][_0x1049fe(0x1fa)]?_0x5d6140[_0x1049fe(0x263)]:_0x1eeb8d['model'],_0x5d6140[_0x1049fe(0x20c)]=qs['sort'](_0xf3bb92[_0x1049fe(0x2ab)][_0x1049fe(0x1f8)]),_0x5d6140[_0x1049fe(0x1c1)]=qs[_0x1049fe(0x1dc)](_[_0x1049fe(0x267)](_0xf3bb92[_0x1049fe(0x2ab)],_0x1eeb8d[_0x1049fe(0x1dc)])),_0xf3bb92['query'][_0x1049fe(0x1b3)]&&(_0x5d6140[_0x1049fe(0x1c1)]=_[_0x1049fe(0x202)](_0x5d6140[_0x1049fe(0x1c1)],{[Op['or']]:_[_0x1049fe(0x1ae)](_0x5d6140[_0x1049fe(0x263)],function(_0x144c06){const _0x1783f2=_0x1049fe,_0x3e3584={};return _0x3e3584[_0x144c06]={[Op[_0x1783f2(0x1ba)]]:'%'+_0xf3bb92[_0x1783f2(0x2ab)][_0x1783f2(0x1b3)]+'%'},_0x3e3584;})})),_0x5d6140=_[_0x1049fe(0x202)]({},_0x5d6140,_0xf3bb92[_0x1049fe(0x235)]),_0x4a267f[_0x1049fe(0x26e)](_0x5d6140);})[_0x1c19ac(0x26f)](function(_0x51b2bf){const _0x1eaad2=_0x1c19ac;if(_0x51b2bf)return _0xbfc12f=_0x51b2bf['length'],typeof _0xf3bb92[_0x1eaad2(0x2ab)][_0x1eaad2(0x22a)]===_0x1eaad2(0x217)&&(_0x5d6140[_0x1eaad2(0x1e3)]=qs[_0x1eaad2(0x1e3)](_0xf3bb92[_0x1eaad2(0x2ab)]['limit']),_0x5d6140[_0x1eaad2(0x1f5)]=qs['offset'](_0xf3bb92[_0x1eaad2(0x2ab)][_0x1eaad2(0x1f5)])),_0x4a267f[_0x1eaad2(0x26e)](_0x5d6140);})[_0x1c19ac(0x26f)](function(_0x14c0cb){if(_0x14c0cb)return _0x14c0cb?{'count':_0xbfc12f,'rows':_0x14c0cb}:null;})[_0x1c19ac(0x26f)](respondWithResult(_0x2dafa0,null))[_0x1c19ac(0x1be)](handleError(_0x2dafa0,null));},exports[a133_0x9e658(0x252)]=function(_0x4c694f,_0x27f5ef){const _0x140295=a133_0x9e658,_0x38a7e7=_0x4c694f[_0x140295(0x2ab)]['online']==='false'?_0x140295(0x1af):_0x140295(0x1aa);return db[_0x140295(0x295)][_0x140295(0x1a5)]({'attributes':['id',_0x38a7e7],'where':{'id':_0x4c694f['params']['id']}})[_0x140295(0x26f)](handleEntityNotFound(_0x27f5ef,null))[_0x140295(0x26f)](function(_0x4d2db3){const _0x356865=_0x140295;if(_0x4d2db3){const _0x159b48=_0x4d2db3[_0x38a7e7],_0x1f987b=_0x159b48&&_0x159b48['items']?_0x159b48[_0x356865(0x1b0)]:[];_0x27f5ef['send']({'fromKey':_[_0x356865(0x208)](_0x159b48[_0x356865(0x292)])?undefined:_0x159b48['fromKey'],'count':_0x1f987b[_0x356865(0x1fa)],'rows':_0x1f987b});}})[_0x140295(0x1be)](handleError(_0x27f5ef,null));},exports[a133_0x9e658(0x22e)]=function(_0x26c1f7,_0x559ee5){const _0x36e3b2=a133_0x9e658;let _0x5172af={'raw':![],'where':{}};const _0x4902bd={},_0x4bc11f={'count':0x0,'rows':[]};return db[_0x36e3b2(0x295)]['findOne']({'where':{'id':_0x26c1f7[_0x36e3b2(0x245)]['id']}})['then'](handleEntityNotFound(_0x559ee5,null))[_0x36e3b2(0x26f)](function(_0x455191){const _0x34bbda=_0x36e3b2;if(_0x455191)return _0x4902bd[_0x34bbda(0x1fe)]=_['keys'](db[_0x34bbda(0x1c7)][_0x34bbda(0x2a3)]),_0x4902bd['query']=_['keys'](_0x26c1f7[_0x34bbda(0x2ab)]),_0x4902bd['filters']=_['intersection'](_0x4902bd[_0x34bbda(0x1fe)],_0x4902bd[_0x34bbda(0x2ab)]),_0x5172af[_0x34bbda(0x263)]=_[_0x34bbda(0x2a6)](_0x4902bd[_0x34bbda(0x1fe)],qs[_0x34bbda(0x2a7)](_0x26c1f7['query'][_0x34bbda(0x2a7)])),_0x5172af[_0x34bbda(0x263)]=_0x5172af['attributes'][_0x34bbda(0x1fa)]?_0x5172af['attributes']:_0x4902bd[_0x34bbda(0x1fe)],typeof _0x26c1f7[_0x34bbda(0x2ab)][_0x34bbda(0x22a)]==='undefined'&&(_0x5172af[_0x34bbda(0x1e3)]=qs['limit'](_0x26c1f7[_0x34bbda(0x2ab)][_0x34bbda(0x1e3)]),_0x5172af[_0x34bbda(0x1f5)]=qs[_0x34bbda(0x1f5)](_0x26c1f7[_0x34bbda(0x2ab)][_0x34bbda(0x1f5)])),_0x5172af[_0x34bbda(0x20c)]=qs['sort'](_0x26c1f7['query'][_0x34bbda(0x1f8)]),_0x5172af['where']=qs[_0x34bbda(0x1dc)](_[_0x34bbda(0x267)](_0x26c1f7[_0x34bbda(0x2ab)],_0x4902bd[_0x34bbda(0x1dc)])),_0x5172af[_0x34bbda(0x1c1)][_0x34bbda(0x211)]=_0x455191['id'],_0x26c1f7[_0x34bbda(0x2ab)]['filter']&&(_0x5172af[_0x34bbda(0x1c1)]=_[_0x34bbda(0x202)](_0x5172af[_0x34bbda(0x1c1)],{[Op['or']]:_[_0x34bbda(0x1ae)](_0x5172af[_0x34bbda(0x263)],function(_0x9ed9ff){const _0x98c1e9=_0x34bbda,_0x43753e={};return _0x43753e[_0x9ed9ff]={[Op[_0x98c1e9(0x1ba)]]:'%'+_0x26c1f7[_0x98c1e9(0x2ab)][_0x98c1e9(0x1b3)]+'%'},_0x43753e;})})),_0x5172af=_[_0x34bbda(0x202)]({},_0x5172af,_0x26c1f7[_0x34bbda(0x235)]),db['ChatOfflineMessage'][_0x34bbda(0x297)]({'where':_0x5172af['where']})['then'](function(_0x1583d2){const _0x57e56e=_0x34bbda;return _0x4bc11f[_0x57e56e(0x297)]=_0x1583d2,_0x26c1f7[_0x57e56e(0x2ab)][_0x57e56e(0x1ee)]?_0x5172af[_0x57e56e(0x24d)]=[{'all':!![]}]:_0x5172af['include']=[{'model':db[_0x57e56e(0x1a7)],'as':_0x57e56e(0x224),'required':![]}],db[_0x57e56e(0x1c7)][_0x57e56e(0x1f0)](_0x5172af);})[_0x34bbda(0x26f)](function(_0x79965b){const _0x4722b0=_0x34bbda;return _0x4bc11f[_0x4722b0(0x2aa)]=_0x79965b,_0x4bc11f;});})['then'](respondWithFilteredResult(_0x559ee5,_0x5172af))['catch'](handleError(_0x559ee5,null));},exports[a133_0x9e658(0x227)]=function(_0x9a83a6,_0x7b0b7d){const _0x10e344=a133_0x9e658;return db[_0x10e344(0x295)][_0x10e344(0x1a5)]({'where':{'id':_0x9a83a6[_0x10e344(0x245)]['id']}})[_0x10e344(0x26f)](function(_0x36055c){const _0x38c1e5=_0x10e344;if(_0x36055c)return _0x36055c[_0x38c1e5(0x227)](_0x9a83a6[_0x38c1e5(0x276)][_0x38c1e5(0x2a1)],{'through':_[_0x38c1e5(0x212)](_0x9a83a6[_0x38c1e5(0x276)],[_0x38c1e5(0x2a1),'id'])})[_0x38c1e5(0x26f)](function(_0x529968){const _0x3b26e8=_0x38c1e5;for(let _0x200780=0x0;_0x200780<_0x9a83a6[_0x3b26e8(0x276)]['ids']['length'];_0x200780+=0x1){socket[_0x3b26e8(0x21f)](_0x3b26e8(0x257),{'UserId':_0x9a83a6[_0x3b26e8(0x276)][_0x3b26e8(0x2a1)][_0x200780],'ChatWebsiteId':_0x9a83a6[_0x3b26e8(0x245)]['id']});}return _0x529968;});})[_0x10e344(0x26f)](respondWithResult(_0x7b0b7d,null))[_0x10e344(0x1be)](handleError(_0x7b0b7d,null));},exports[a133_0x9e658(0x1d2)]=function(_0x5d2081,_0x67b181){const _0x4c9dd7=a133_0x9e658;return db[_0x4c9dd7(0x295)]['findOne']({'where':{'id':_0x5d2081['params']['id']}})['then'](handleEntityNotFound(_0x67b181,null))[_0x4c9dd7(0x26f)](function(_0x29e392){const _0x22309c=_0x4c9dd7;if(_0x29e392)return _0x29e392[_0x22309c(0x1d2)](_0x5d2081[_0x22309c(0x2ab)][_0x22309c(0x2a1)])[_0x22309c(0x26f)](function(){const _0x445353=_0x22309c;if(_['isArray'](_0x5d2081['query']['ids']))for(let _0xcab01d=0x0;_0xcab01d<_0x5d2081[_0x445353(0x2ab)][_0x445353(0x2a1)][_0x445353(0x1fa)];_0xcab01d+=0x1){socket[_0x445353(0x21f)]('userChatWebsite:remove',{'UserId':Number(_0x5d2081[_0x445353(0x2ab)]['ids'][_0xcab01d]),'ChatWebsiteId':Number(_0x5d2081[_0x445353(0x245)]['id'])});}else socket[_0x445353(0x21f)](_0x445353(0x1b5),{'UserId':Number(_0x5d2081[_0x445353(0x2ab)][_0x445353(0x2a1)]),'ChatWebsiteId':Number(_0x5d2081[_0x445353(0x245)]['id'])});});})[_0x4c9dd7(0x26f)](respondWithStatusCode(_0x67b181,null))[_0x4c9dd7(0x1be)](handleError(_0x67b181,null));},exports[a133_0x9e658(0x286)]=function(_0x2a51e9,_0x2d4e19){const _0x4089f8=a133_0x9e658;let _0x28a975={};const _0x4e24b6={};let _0x5df35b,_0x11164e;return db[_0x4089f8(0x295)][_0x4089f8(0x1a5)]({'where':{'id':_0x2a51e9[_0x4089f8(0x245)]['id']}})[_0x4089f8(0x26f)](handleEntityNotFound(_0x2d4e19,null))[_0x4089f8(0x26f)](function(_0x7e7ce3){const _0x316f36=_0x4089f8;if(_0x7e7ce3)return _0x5df35b=_0x7e7ce3,_0x4e24b6[_0x316f36(0x1fe)]=_[_0x316f36(0x249)](db[_0x316f36(0x232)][_0x316f36(0x2a3)]),_0x4e24b6['query']=_['keys'](_0x2a51e9['query']),_0x4e24b6[_0x316f36(0x1dc)]=_[_0x316f36(0x2a6)](_0x4e24b6[_0x316f36(0x1fe)],_0x4e24b6[_0x316f36(0x2ab)]),_0x28a975[_0x316f36(0x263)]=_[_0x316f36(0x2a6)](_0x4e24b6[_0x316f36(0x1fe)],qs[_0x316f36(0x2a7)](_0x2a51e9[_0x316f36(0x2ab)][_0x316f36(0x2a7)])),_0x28a975[_0x316f36(0x263)]=_0x28a975['attributes']['length']?_0x28a975[_0x316f36(0x263)]:_0x4e24b6['model'],_0x28a975['order']=qs['sort'](_0x2a51e9[_0x316f36(0x2ab)][_0x316f36(0x1f8)]),_0x28a975[_0x316f36(0x1c1)]=qs[_0x316f36(0x1dc)](_[_0x316f36(0x267)](_0x2a51e9[_0x316f36(0x2ab)],_0x4e24b6[_0x316f36(0x1dc)])),_0x2a51e9['query'][_0x316f36(0x1b3)]&&(_0x28a975['where']=_['merge'](_0x28a975[_0x316f36(0x1c1)],{[Op['or']]:_[_0x316f36(0x1ae)](_0x28a975[_0x316f36(0x263)],function(_0x5f3db8){const _0x20ee13=_0x316f36,_0xbd6fdf={};return _0xbd6fdf[_0x5f3db8]={[Op[_0x20ee13(0x1ba)]]:'%'+_0x2a51e9['query'][_0x20ee13(0x1b3)]+'%'},_0xbd6fdf;})})),_0x28a975=_['merge']({},_0x28a975,_0x2a51e9['options']),_0x5df35b['getAgents'](_0x28a975);})[_0x4089f8(0x26f)](function(_0x589f04){const _0x1c5f7e=_0x4089f8;if(_0x589f04)return _0x11164e=_0x589f04[_0x1c5f7e(0x1fa)],typeof _0x2a51e9[_0x1c5f7e(0x2ab)][_0x1c5f7e(0x22a)]===_0x1c5f7e(0x217)&&(_0x28a975[_0x1c5f7e(0x1e3)]=qs['limit'](_0x2a51e9[_0x1c5f7e(0x2ab)][_0x1c5f7e(0x1e3)]),_0x28a975[_0x1c5f7e(0x1f5)]=qs[_0x1c5f7e(0x1f5)](_0x2a51e9['query'][_0x1c5f7e(0x1f5)])),_0x5df35b[_0x1c5f7e(0x286)](_0x28a975);})[_0x4089f8(0x26f)](function(_0x23e673){if(_0x23e673)return _0x23e673?{'count':_0x11164e,'rows':_0x23e673}:null;})[_0x4089f8(0x26f)](respondWithResult(_0x2d4e19,null))[_0x4089f8(0x1be)](handleError(_0x2d4e19,null));}; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.events.js b/server/api/chatWebsite/chatWebsite.events.js index 1e7f8e1..db6b932 100644 --- a/server/api/chatWebsite/chatWebsite.events.js +++ b/server/api/chatWebsite/chatWebsite.events.js @@ -1 +1 @@ -const a134_0x803b=['setMaxListeners','ChatWebsite','save','events','../../mysqldb','undefined','update','emit','addHook','exports'];(function(_0x773d7e,_0x5d45d7){const _0x803b5=function(_0x14545a){while(--_0x14545a){_0x773d7e['push'](_0x773d7e['shift']());}};_0x803b5(++_0x5d45d7);}(a134_0x803b,0x12d));const a134_0x1454=function(_0x773d7e,_0x5d45d7){_0x773d7e=_0x773d7e-0x1df;let _0x803b5=a134_0x803b[_0x773d7e];return _0x803b5;};const a134_0x4510d0=a134_0x1454;'use strict';const EventEmitter=require(a134_0x4510d0(0x1e1)),ChatWebsite=require(a134_0x4510d0(0x1e2))['db'][a134_0x4510d0(0x1df)],ChatWebsiteEvents=new EventEmitter();ChatWebsiteEvents[a134_0x4510d0(0x1e8)](0x0);const events={'afterCreate':a134_0x4510d0(0x1e0),'afterUpdate':a134_0x4510d0(0x1e4),'afterDestroy':'remove'};function emitEvent(_0x52ace2){return function(_0xc6c3e8){const _0xb8d759=a134_0x1454;ChatWebsiteEvents[_0xb8d759(0x1e5)](_0x52ace2+':'+_0xc6c3e8['id'],_0xc6c3e8),ChatWebsiteEvents[_0xb8d759(0x1e5)](_0x52ace2,_0xc6c3e8);};}for(const e in events){if(typeof events[e]!==a134_0x4510d0(0x1e3)){const event=events[e];ChatWebsite[a134_0x4510d0(0x1e6)](e,emitEvent(event));}}module[a134_0x4510d0(0x1e7)]=ChatWebsiteEvents; \ No newline at end of file +const a134_0x4058=['save','addHook','remove','emit','../../mysqldb','events','exports','undefined','ChatWebsite'];(function(_0x1cb256,_0x1d4092){const _0x40583a=function(_0x54937b){while(--_0x54937b){_0x1cb256['push'](_0x1cb256['shift']());}};_0x40583a(++_0x1d4092);}(a134_0x4058,0x1ea));const a134_0x5493=function(_0x1cb256,_0x1d4092){_0x1cb256=_0x1cb256-0x80;let _0x40583a=a134_0x4058[_0x1cb256];return _0x40583a;};const a134_0x4d9b88=a134_0x5493;'use strict';const EventEmitter=require(a134_0x4d9b88(0x81)),ChatWebsite=require(a134_0x4d9b88(0x80))['db'][a134_0x4d9b88(0x84)],ChatWebsiteEvents=new EventEmitter();ChatWebsiteEvents['setMaxListeners'](0x0);const events={'afterCreate':a134_0x4d9b88(0x85),'afterUpdate':'update','afterDestroy':a134_0x4d9b88(0x87)};function emitEvent(_0x5912d4){return function(_0x3d26dc){const _0x20983b=a134_0x5493;ChatWebsiteEvents[_0x20983b(0x88)](_0x5912d4+':'+_0x3d26dc['id'],_0x3d26dc),ChatWebsiteEvents[_0x20983b(0x88)](_0x5912d4,_0x3d26dc);};}for(const e in events){if(typeof events[e]!==a134_0x4d9b88(0x83)){const event=events[e];ChatWebsite[a134_0x4d9b88(0x86)](e,emitEvent(event));}}module[a134_0x4d9b88(0x82)]=ChatWebsiteEvents; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.model.js b/server/api/chatWebsite/chatWebsite.model.js index 1c58af0..393b68e 100644 --- a/server/api/chatWebsite/chatWebsite.model.js +++ b/server/api/chatWebsite/chatWebsite.model.js @@ -1 +1 @@ -const a135_0x3663=['./chatWebsite.options','./chatWebsite.attributes','exports','init','ChatWebsite','function'];(function(_0x5aa49a,_0x222df3){const _0x3663a9=function(_0x5e4ae2){while(--_0x5e4ae2){_0x5aa49a['push'](_0x5aa49a['shift']());}};_0x3663a9(++_0x222df3);}(a135_0x3663,0x97));const a135_0x5e4a=function(_0x5aa49a,_0x222df3){_0x5aa49a=_0x5aa49a-0xa5;let _0x3663a9=a135_0x3663[_0x5aa49a];return _0x3663a9;};const a135_0x4ec848=a135_0x5e4a;'use strict';const {Model}=require('sequelize'),{attributes}=require(a135_0x4ec848(0xa5)),{options}=require(a135_0x4ec848(0xaa));class ChatWebsite extends Model{}function init(_0x217cc0,_0x103699){const _0x1b75fa=a135_0x4ec848,_0x510945=options(_0x217cc0),_0x470a8f=typeof _0x103699===_0x1b75fa(0xa9)?_0x103699(_0x510945):_0x510945;return ChatWebsite[_0x1b75fa(0xa7)](attributes,_0x470a8f),ChatWebsite;}module[a135_0x4ec848(0xa6)][a135_0x4ec848(0xa8)]=ChatWebsite,module[a135_0x4ec848(0xa6)][a135_0x4ec848(0xa7)]=init; \ No newline at end of file +const a135_0x5f35=['ChatWebsite','function','init','exports','sequelize','./chatWebsite.attributes','./chatWebsite.options'];(function(_0x3987e3,_0x1a3f5a){const _0x5f356b=function(_0x5df4a1){while(--_0x5df4a1){_0x3987e3['push'](_0x3987e3['shift']());}};_0x5f356b(++_0x1a3f5a);}(a135_0x5f35,0x8c));const a135_0x5df4=function(_0x3987e3,_0x1a3f5a){_0x3987e3=_0x3987e3-0x1b9;let _0x5f356b=a135_0x5f35[_0x3987e3];return _0x5f356b;};const a135_0x766020=a135_0x5df4;'use strict';const {Model}=require(a135_0x766020(0x1bd)),{attributes}=require(a135_0x766020(0x1be)),{options}=require(a135_0x766020(0x1bf));class ChatWebsite extends Model{}function init(_0x5e5cea,_0x3fdd91){const _0xaa423f=a135_0x766020,_0x10891e=options(_0x5e5cea),_0x18ab0d=typeof _0x3fdd91===_0xaa423f(0x1ba)?_0x3fdd91(_0x10891e):_0x10891e;return ChatWebsite['init'](attributes,_0x18ab0d),ChatWebsite;}module['exports'][a135_0x766020(0x1b9)]=ChatWebsite,module[a135_0x766020(0x1bc)][a135_0x766020(0x1bb)]=init; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.options.js b/server/api/chatWebsite/chatWebsite.options.js index 9df35cc..f67be93 100644 --- a/server/api/chatWebsite/chatWebsite.options.js +++ b/server/api/chatWebsite/chatWebsite.options.js @@ -1 +1 @@ -var a136_0x4686=['chat_websites','options','exports'];(function(_0x51c9b4,_0x3caaae){var _0x4686bd=function(_0x193f34){while(--_0x193f34){_0x51c9b4['push'](_0x51c9b4['shift']());}};_0x4686bd(++_0x3caaae);}(a136_0x4686,0x191));var a136_0x193f=function(_0x51c9b4,_0x3caaae){_0x51c9b4=_0x51c9b4-0x178;var _0x4686bd=a136_0x4686[_0x51c9b4];return _0x4686bd;};var a136_0x1b454b=a136_0x193f;function options(_0x5f52c5){var _0x29a7e6=a136_0x193f;return{'sequelize':_0x5f52c5,'tableName':_0x29a7e6(0x179),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a136_0x1b454b(0x178)][a136_0x1b454b(0x17a)]=options; \ No newline at end of file +var a136_0x134f=['chat_websites','exports'];(function(_0x49a39c,_0x341b14){var _0x134f14=function(_0x3f214a){while(--_0x3f214a){_0x49a39c['push'](_0x49a39c['shift']());}};_0x134f14(++_0x341b14);}(a136_0x134f,0x122));var a136_0x3f21=function(_0x49a39c,_0x341b14){_0x49a39c=_0x49a39c-0x1ee;var _0x134f14=a136_0x134f[_0x49a39c];return _0x134f14;};var a136_0x4c3592=a136_0x3f21;function options(_0x19e530){var _0x1e8685=a136_0x3f21;return{'sequelize':_0x19e530,'tableName':_0x1e8685(0x1ee),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a136_0x4c3592(0x1ef)]['options']=options; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.rpc.js b/server/api/chatWebsite/chatWebsite.rpc.js index 1426ce7..ea54599 100644 --- a/server/api/chatWebsite/chatWebsite.rpc.js +++ b/server/api/chatWebsite/chatWebsite.rpc.js @@ -1 +1 @@ -const a137_0x3005=['./chatWebsite.socket'];(function(_0x42eb46,_0x30223a){const _0x3005c1=function(_0x159232){while(--_0x159232){_0x42eb46['push'](_0x42eb46['shift']());}};_0x3005c1(++_0x30223a);}(a137_0x3005,0x67));const a137_0x1592=function(_0x42eb46,_0x30223a){_0x42eb46=_0x42eb46-0x157;let _0x3005c1=a137_0x3005[_0x42eb46];return _0x3005c1;};const a137_0x55e4b1=a137_0x1592;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require(a137_0x55e4b1(0x157))['register'](socket); \ No newline at end of file +const a137_0x43d6=['../../rediscache','./chatWebsite.socket','register'];(function(_0xa7f1c5,_0x2d8319){const _0x43d6c8=function(_0x463733){while(--_0x463733){_0xa7f1c5['push'](_0xa7f1c5['shift']());}};_0x43d6c8(++_0x2d8319);}(a137_0x43d6,0x171));const a137_0x4637=function(_0xa7f1c5,_0x2d8319){_0xa7f1c5=_0xa7f1c5-0x160;let _0x43d6c8=a137_0x43d6[_0xa7f1c5];return _0x43d6c8;};const a137_0x5de265=a137_0x4637;'use strict';const {getSocket}=require(a137_0x5de265(0x160)),socket=getSocket();require(a137_0x5de265(0x161))[a137_0x5de265(0x162)](socket); \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.socket.js b/server/api/chatWebsite/chatWebsite.socket.js index ae97b5a..ad309af 100644 --- a/server/api/chatWebsite/chatWebsite.socket.js +++ b/server/api/chatWebsite/chatWebsite.socket.js @@ -1 +1 @@ -const a138_0x2aed=['chatWebsite:','length','update','remove','emit'];(function(_0x5c32d1,_0x5e8ffc){const _0x2aed11=function(_0x2dbac7){while(--_0x2dbac7){_0x5c32d1['push'](_0x5c32d1['shift']());}};_0x2aed11(++_0x5e8ffc);}(a138_0x2aed,0x18f));const a138_0x2dba=function(_0x5c32d1,_0x5e8ffc){_0x5c32d1=_0x5c32d1-0x15c;let _0x2aed11=a138_0x2aed[_0x5c32d1];return _0x2aed11;};const a138_0x3e5e16=a138_0x2dba;'use strict';const ChatWebsiteEvents=require('./chatWebsite.events'),events=['save',a138_0x3e5e16(0x160),a138_0x3e5e16(0x15f)];function createListener(_0x347cfc,_0x3f6971){return function(_0x47dfb9){const _0x9841b9=a138_0x2dba;_0x3f6971[_0x9841b9(0x15c)](_0x347cfc,_0x47dfb9);};}exports['register']=function(_0x11ffb0){const _0x1cac9c=a138_0x3e5e16;for(let _0x1ee8d9=0x0,_0x3c042d=events[_0x1cac9c(0x15e)];_0x1ee8d9<_0x3c042d;_0x1ee8d9++){const _0x81bfbf=events[_0x1ee8d9],_0x47a45c=createListener(_0x1cac9c(0x15d)+_0x81bfbf,_0x11ffb0);ChatWebsiteEvents['on'](_0x81bfbf,_0x47a45c);}}; \ No newline at end of file +const a138_0x4f90=['./chatWebsite.events','register','emit','remove','chatWebsite:','length'];(function(_0x1c67d6,_0x86a0f3){const _0x4f90e0=function(_0x5334e6){while(--_0x5334e6){_0x1c67d6['push'](_0x1c67d6['shift']());}};_0x4f90e0(++_0x86a0f3);}(a138_0x4f90,0x1d0));const a138_0x5334=function(_0x1c67d6,_0x86a0f3){_0x1c67d6=_0x1c67d6-0xc0;let _0x4f90e0=a138_0x4f90[_0x1c67d6];return _0x4f90e0;};const a138_0x3728d8=a138_0x5334;'use strict';const ChatWebsiteEvents=require(a138_0x3728d8(0xc4)),events=['save',a138_0x3728d8(0xc1),'update'];function createListener(_0x165954,_0x21226a){return function(_0x109190){const _0xc3e494=a138_0x5334;_0x21226a[_0xc3e494(0xc0)](_0x165954,_0x109190);};}exports[a138_0x3728d8(0xc5)]=function(_0x3e63dd){const _0x30f2fd=a138_0x3728d8;for(let _0x21b10a=0x0,_0x79ccce=events[_0x30f2fd(0xc3)];_0x21b10a<_0x79ccce;_0x21b10a++){const _0x19d404=events[_0x21b10a],_0x53c3a5=createListener(_0x30f2fd(0xc2)+_0x19d404,_0x3e63dd);ChatWebsiteEvents['on'](_0x19d404,_0x53c3a5);}}; \ No newline at end of file diff --git a/server/api/chatWebsite/index.js b/server/api/chatWebsite/index.js index 6942844..251ab8b 100644 --- a/server/api/chatWebsite/index.js +++ b/server/api/chatWebsite/index.js @@ -1 +1 @@ -const a139_0x174f=['removeAnswers','now','avatars','addSystemAvatar','files/images/','getSnippet','multer','/:id/notify','Router','/:id/fields','removeAgents','originalname','diskStorage','../../components/auth/service','getFields','delete','addDisposition','getAgents','join','addAvatar','getSystemAvatar','/:id/snippet','post','addCustomerAvatar','getLogo','/:id','/:id/applications','/:id/offline','addInteraction','/:id/canned_answers','getAvatar','offline','/:id/avatar','notify','getDispositions','logos','/:id/dispositions','%s-%s','exports','express','single','getCustomerAvatar','file','getInteractions','describe','addAnswer','removeDispositions','/:id/customer_avatar','/:id/logo','get','addApplications','/describe','isAuthenticated','put','/:id/users','update','/:id/system_avatar','getProactiveActions','util','addLogo','getApplications','../../config/environment'];(function(_0x2edc1b,_0x5eb707){const _0x174fdf=function(_0x5497f8){while(--_0x5497f8){_0x2edc1b['push'](_0x2edc1b['shift']());}};_0x174fdf(++_0x5eb707);}(a139_0x174f,0xa1));const a139_0x5497=function(_0x2edc1b,_0x5eb707){_0x2edc1b=_0x2edc1b-0xe2;let _0x174fdf=a139_0x174f[_0x2edc1b];return _0x174fdf;};const a139_0x1cd0db=a139_0x5497;'use strict';const multer=require(a139_0x1cd0db(0x101)),util=require(a139_0x1cd0db(0xf7)),path=require('path'),express=require(a139_0x1cd0db(0xe4)),router=express[a139_0x1cd0db(0x103)](),auth=require(a139_0x1cd0db(0x108)),config=require(a139_0x1cd0db(0xfa)),controller=require('./chatWebsite.controller'),upload=_0x5ae083=>multer({'storage':multer[a139_0x1cd0db(0x107)]({'destination':function(_0x15250b,_0x22cef3,_0x5e8edb){const _0x5406eb=a139_0x1cd0db;_0x5e8edb(null,path[_0x5406eb(0x10d)](config['root'],_0x5406eb(0xff),_0x5ae083));},'filename':function(_0x51df37,_0x1bb9b9,_0x4461b7){const _0x41ada9=a139_0x1cd0db;_0x4461b7(null,util['format'](_0x41ada9(0xe2),Date[_0x41ada9(0xfc)](),_0x1bb9b9[_0x41ada9(0x106)]));}})});router[a139_0x1cd0db(0xee)]('/',auth[a139_0x1cd0db(0xf1)](),controller['index']),router[a139_0x1cd0db(0xee)](a139_0x1cd0db(0xf0),auth[a139_0x1cd0db(0xf1)](),controller[a139_0x1cd0db(0xe9)]),router['get'](a139_0x1cd0db(0x114),auth[a139_0x1cd0db(0xf1)](),controller['show']),router['get'](a139_0x1cd0db(0x11f),auth[a139_0x1cd0db(0xf1)](),controller[a139_0x1cd0db(0x11d)]),router['get'](a139_0x1cd0db(0x118),auth['isAuthenticated'](),controller['getAnswers']),router[a139_0x1cd0db(0xee)](a139_0x1cd0db(0xed),controller[a139_0x1cd0db(0x113)]),router[a139_0x1cd0db(0xee)](a139_0x1cd0db(0x11b),controller[a139_0x1cd0db(0x119)]),router[a139_0x1cd0db(0xee)](a139_0x1cd0db(0xec),controller[a139_0x1cd0db(0xe6)]),router[a139_0x1cd0db(0xee)](a139_0x1cd0db(0xf5),controller[a139_0x1cd0db(0x10f)]),router['get']('/:id/interactions',auth['isAuthenticated'](),controller[a139_0x1cd0db(0xe8)]),router[a139_0x1cd0db(0xee)](a139_0x1cd0db(0x110),controller[a139_0x1cd0db(0x100)]),router[a139_0x1cd0db(0xee)]('/:id/applications',auth[a139_0x1cd0db(0xf1)](),controller[a139_0x1cd0db(0xf9)]),router[a139_0x1cd0db(0xee)]('/:id/proactive_actions',auth['isAuthenticated'](),controller[a139_0x1cd0db(0xf6)]),router['get'](a139_0x1cd0db(0x104),controller[a139_0x1cd0db(0x109)]),router[a139_0x1cd0db(0xee)]('/:id/offline_messages',auth[a139_0x1cd0db(0xf1)](),controller['getOfflineMessages']),router[a139_0x1cd0db(0xee)](a139_0x1cd0db(0xf3),auth[a139_0x1cd0db(0xf1)](),controller[a139_0x1cd0db(0x10c)]),router[a139_0x1cd0db(0x111)]('/',auth['isAuthenticated'](),controller['create']),router[a139_0x1cd0db(0x111)](a139_0x1cd0db(0x11f),auth['isAuthenticated'](),controller[a139_0x1cd0db(0x10b)]),router[a139_0x1cd0db(0x111)](a139_0x1cd0db(0x118),auth['isAuthenticated'](),controller[a139_0x1cd0db(0xea)]),router[a139_0x1cd0db(0x111)](a139_0x1cd0db(0xed),upload(a139_0x1cd0db(0x11e))['single'](a139_0x1cd0db(0xe7)),controller[a139_0x1cd0db(0xf8)]),router[a139_0x1cd0db(0x111)]('/:id/avatar',upload(a139_0x1cd0db(0xfd))[a139_0x1cd0db(0xe5)](a139_0x1cd0db(0xe7)),controller[a139_0x1cd0db(0x10e)]),router[a139_0x1cd0db(0x111)]('/:id/customer_avatar',upload(a139_0x1cd0db(0xfd))[a139_0x1cd0db(0xe5)](a139_0x1cd0db(0xe7)),controller[a139_0x1cd0db(0x112)]),router[a139_0x1cd0db(0x111)](a139_0x1cd0db(0xf5),upload(a139_0x1cd0db(0xfd))[a139_0x1cd0db(0xe5)](a139_0x1cd0db(0xe7)),controller[a139_0x1cd0db(0xfe)]),router['post'](a139_0x1cd0db(0x102),controller[a139_0x1cd0db(0x11c)]),router[a139_0x1cd0db(0x111)](a139_0x1cd0db(0x116),controller[a139_0x1cd0db(0x11a)]),router[a139_0x1cd0db(0x111)]('/:id/interactions',auth[a139_0x1cd0db(0xf1)](),controller[a139_0x1cd0db(0x117)]),router[a139_0x1cd0db(0x111)](a139_0x1cd0db(0x115),auth[a139_0x1cd0db(0xf1)](),controller[a139_0x1cd0db(0xef)]),router[a139_0x1cd0db(0x111)]('/:id/proactive_actions',auth[a139_0x1cd0db(0xf1)](),controller['addProactiveActions']),router[a139_0x1cd0db(0x111)](a139_0x1cd0db(0xf3),auth[a139_0x1cd0db(0xf1)](),controller['addAgents']),router[a139_0x1cd0db(0xf2)](a139_0x1cd0db(0x114),auth[a139_0x1cd0db(0xf1)](),controller[a139_0x1cd0db(0xf4)]),router[a139_0x1cd0db(0x10a)]('/:id',auth[a139_0x1cd0db(0xf1)](),controller['destroy']),router['delete']('/:id/dispositions',auth[a139_0x1cd0db(0xf1)](),controller[a139_0x1cd0db(0xeb)]),router[a139_0x1cd0db(0x10a)](a139_0x1cd0db(0x118),auth['isAuthenticated'](),controller[a139_0x1cd0db(0xfb)]),router[a139_0x1cd0db(0x10a)](a139_0x1cd0db(0xf3),auth[a139_0x1cd0db(0xf1)](),controller[a139_0x1cd0db(0x105)]),module[a139_0x1cd0db(0xe3)]=router; \ No newline at end of file +const a139_0x2171=['getProactiveActions','addDisposition','index','destroy','getInteractions','getAnswers','/:id/customer_avatar','util','delete','addProactiveActions','/:id/offline_messages','notify','now','put','../../config/environment','show','get','/:id/system_avatar','addAgents','create','/:id','addLogo','originalname','isAuthenticated','exports','/:id/dispositions','addAvatar','getAgents','format','addApplications','addInteraction','/describe','file','single','/:id/interactions','path','/:id/notify','/:id/canned_answers','getDispositions','post','avatars','offline','/:id/users','update','express','/:id/applications','getApplications','./chatWebsite.controller','/:id/proactive_actions','diskStorage','removeDispositions','addAnswer','files/images/','multer','/:id/snippet','Router','join','addCustomerAvatar'];(function(_0x3c59be,_0x154be0){const _0x21714f=function(_0x2af11a){while(--_0x2af11a){_0x3c59be['push'](_0x3c59be['shift']());}};_0x21714f(++_0x154be0);}(a139_0x2171,0x6d));const a139_0x2af1=function(_0x3c59be,_0x154be0){_0x3c59be=_0x3c59be-0x9e;let _0x21714f=a139_0x2171[_0x3c59be];return _0x21714f;};const a139_0xb73b77=a139_0x2af1;'use strict';const multer=require(a139_0xb73b77(0xa0)),util=require(a139_0xb73b77(0xac)),path=require(a139_0xb73b77(0xc8)),express=require(a139_0xb73b77(0xd1)),router=express[a139_0xb73b77(0xa2)](),auth=require('../../components/auth/service'),config=require(a139_0xb73b77(0xb3)),controller=require(a139_0xb73b77(0xd4)),upload=_0x1b673f=>multer({'storage':multer[a139_0xb73b77(0xd6)]({'destination':function(_0x8b85b0,_0x3fd4f2,_0x3d8fda){const _0x3ea46d=a139_0xb73b77;_0x3d8fda(null,path[_0x3ea46d(0xa3)](config['root'],_0x3ea46d(0x9f),_0x1b673f));},'filename':function(_0x97aff0,_0x53a87f,_0x38df91){const _0x54e964=a139_0xb73b77;_0x38df91(null,util[_0x54e964(0xc1)]('%s-%s',Date[_0x54e964(0xb1)](),_0x53a87f[_0x54e964(0xbb)]));}})});router[a139_0xb73b77(0xb5)]('/',auth[a139_0xb73b77(0xbc)](),controller[a139_0xb73b77(0xa7)]),router[a139_0xb73b77(0xb5)](a139_0xb73b77(0xc4),auth[a139_0xb73b77(0xbc)](),controller['describe']),router[a139_0xb73b77(0xb5)](a139_0xb73b77(0xb9),auth[a139_0xb73b77(0xbc)](),controller[a139_0xb73b77(0xb4)]),router[a139_0xb73b77(0xb5)](a139_0xb73b77(0xbe),auth['isAuthenticated'](),controller[a139_0xb73b77(0xcb)]),router[a139_0xb73b77(0xb5)](a139_0xb73b77(0xca),auth['isAuthenticated'](),controller[a139_0xb73b77(0xaa)]),router[a139_0xb73b77(0xb5)]('/:id/logo',controller['getLogo']),router[a139_0xb73b77(0xb5)]('/:id/avatar',controller['getAvatar']),router['get']('/:id/customer_avatar',controller['getCustomerAvatar']),router[a139_0xb73b77(0xb5)]('/:id/system_avatar',controller['getSystemAvatar']),router[a139_0xb73b77(0xb5)](a139_0xb73b77(0xc7),auth[a139_0xb73b77(0xbc)](),controller[a139_0xb73b77(0xa9)]),router[a139_0xb73b77(0xb5)](a139_0xb73b77(0xa1),controller['getSnippet']),router['get'](a139_0xb73b77(0xd2),auth[a139_0xb73b77(0xbc)](),controller[a139_0xb73b77(0xd3)]),router[a139_0xb73b77(0xb5)](a139_0xb73b77(0xd5),auth['isAuthenticated'](),controller[a139_0xb73b77(0xa5)]),router['get']('/:id/fields',controller['getFields']),router[a139_0xb73b77(0xb5)](a139_0xb73b77(0xaf),auth['isAuthenticated'](),controller['getOfflineMessages']),router[a139_0xb73b77(0xb5)](a139_0xb73b77(0xcf),auth[a139_0xb73b77(0xbc)](),controller[a139_0xb73b77(0xc0)]),router[a139_0xb73b77(0xcc)]('/',auth[a139_0xb73b77(0xbc)](),controller[a139_0xb73b77(0xb8)]),router['post'](a139_0xb73b77(0xbe),auth['isAuthenticated'](),controller[a139_0xb73b77(0xa6)]),router['post'](a139_0xb73b77(0xca),auth[a139_0xb73b77(0xbc)](),controller[a139_0xb73b77(0x9e)]),router[a139_0xb73b77(0xcc)]('/:id/logo',upload('logos')[a139_0xb73b77(0xc6)](a139_0xb73b77(0xc5)),controller[a139_0xb73b77(0xba)]),router[a139_0xb73b77(0xcc)]('/:id/avatar',upload('avatars')[a139_0xb73b77(0xc6)](a139_0xb73b77(0xc5)),controller[a139_0xb73b77(0xbf)]),router['post'](a139_0xb73b77(0xab),upload(a139_0xb73b77(0xcd))[a139_0xb73b77(0xc6)](a139_0xb73b77(0xc5)),controller[a139_0xb73b77(0xa4)]),router[a139_0xb73b77(0xcc)](a139_0xb73b77(0xb6),upload(a139_0xb73b77(0xcd))[a139_0xb73b77(0xc6)]('file'),controller['addSystemAvatar']),router[a139_0xb73b77(0xcc)](a139_0xb73b77(0xc9),controller[a139_0xb73b77(0xb0)]),router[a139_0xb73b77(0xcc)]('/:id/offline',controller[a139_0xb73b77(0xce)]),router[a139_0xb73b77(0xcc)](a139_0xb73b77(0xc7),auth[a139_0xb73b77(0xbc)](),controller[a139_0xb73b77(0xc3)]),router[a139_0xb73b77(0xcc)](a139_0xb73b77(0xd2),auth[a139_0xb73b77(0xbc)](),controller[a139_0xb73b77(0xc2)]),router[a139_0xb73b77(0xcc)](a139_0xb73b77(0xd5),auth[a139_0xb73b77(0xbc)](),controller[a139_0xb73b77(0xae)]),router[a139_0xb73b77(0xcc)](a139_0xb73b77(0xcf),auth[a139_0xb73b77(0xbc)](),controller[a139_0xb73b77(0xb7)]),router[a139_0xb73b77(0xb2)]('/:id',auth[a139_0xb73b77(0xbc)](),controller[a139_0xb73b77(0xd0)]),router[a139_0xb73b77(0xad)]('/:id',auth[a139_0xb73b77(0xbc)](),controller[a139_0xb73b77(0xa8)]),router['delete'](a139_0xb73b77(0xbe),auth[a139_0xb73b77(0xbc)](),controller[a139_0xb73b77(0xd7)]),router['delete'](a139_0xb73b77(0xca),auth[a139_0xb73b77(0xbc)](),controller['removeAnswers']),router[a139_0xb73b77(0xad)](a139_0xb73b77(0xcf),auth[a139_0xb73b77(0xbc)](),controller['removeAgents']),module[a139_0xb73b77(0xbd)]=router; \ No newline at end of file diff --git a/server/api/cloudProvider/cloudProvider.attributes.js b/server/api/cloudProvider/cloudProvider.attributes.js index 1d31a0b..e4f0050 100644 --- a/server/api/cloudProvider/cloudProvider.attributes.js +++ b/server/api/cloudProvider/cloudProvider.attributes.js @@ -1 +1 @@ -const a140_0x4ef1=['STRING','Google','exports','ENUM','sequelize','AmazonAWS'];(function(_0x4209ad,_0x240ead){const _0x4ef125=function(_0x4e10c2){while(--_0x4e10c2){_0x4209ad['push'](_0x4209ad['shift']());}};_0x4ef125(++_0x240ead);}(a140_0x4ef1,0x84));const a140_0x4e10=function(_0x4209ad,_0x240ead){_0x4209ad=_0x4209ad-0xf4;let _0x4ef125=a140_0x4ef1[_0x4209ad];return _0x4ef125;};const a140_0x478435=a140_0x4e10;'use strict';const {DataTypes}=require(a140_0x478435(0xf8)),attributes={'name':{'type':DataTypes[a140_0x478435(0xf4)],'allowNull':![],'validate':{'notEmpty':!![]}},'service':{'type':DataTypes[a140_0x478435(0xf7)](a140_0x478435(0xf9),a140_0x478435(0xf5)),'allowNull':![],'validate':{'notEmpty':!![]}},'data1':{'type':DataTypes[a140_0x478435(0xf4)]},'data2':{'type':DataTypes['STRING']}};module[a140_0x478435(0xf6)]['attributes']=attributes; \ No newline at end of file +const a140_0x3b0b=['attributes','ENUM','Google','exports','AmazonAWS','STRING'];(function(_0x1f612b,_0x41e458){const _0x3b0b37=function(_0x20de24){while(--_0x20de24){_0x1f612b['push'](_0x1f612b['shift']());}};_0x3b0b37(++_0x41e458);}(a140_0x3b0b,0x1d2));const a140_0x20de=function(_0x1f612b,_0x41e458){_0x1f612b=_0x1f612b-0x127;let _0x3b0b37=a140_0x3b0b[_0x1f612b];return _0x3b0b37;};const a140_0x58e5db=a140_0x20de;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a140_0x58e5db(0x128)],'allowNull':![],'validate':{'notEmpty':!![]}},'service':{'type':DataTypes[a140_0x58e5db(0x12a)](a140_0x58e5db(0x127),a140_0x58e5db(0x12b)),'allowNull':![],'validate':{'notEmpty':!![]}},'data1':{'type':DataTypes[a140_0x58e5db(0x128)]},'data2':{'type':DataTypes[a140_0x58e5db(0x128)]}};module[a140_0x58e5db(0x12c)][a140_0x58e5db(0x129)]=attributes; \ No newline at end of file diff --git a/server/api/cloudProvider/cloudProvider.controller.js b/server/api/cloudProvider/cloudProvider.controller.js index 84f67a0..cb4c65d 100644 --- a/server/api/cloudProvider/cloudProvider.controller.js +++ b/server/api/cloudProvider/cloudProvider.controller.js @@ -1 +1 @@ -const a141_0x10e0=['../../mysqldb','CloudProvider','options','set','end','index','order','stack','../../components/parsers/qs','findOne','keys','sort','where','show','map','then','type','catch','create','destroy','status','lodash','undefined','merge','sendStatus','count','offset','body','intersection','query','Content-Range','model','../../config/logger','like','limit','key','pick','update','filters','send','includeAll','filter','include','fields','params','name','sequelize','rawAttributes','length','attributes','json'];(function(_0x5239c2,_0x41001a){const _0x10e073=function(_0x508e67){while(--_0x508e67){_0x5239c2['push'](_0x5239c2['shift']());}};_0x10e073(++_0x41001a);}(a141_0x10e0,0xdf));const a141_0x508e=function(_0x5239c2,_0x41001a){_0x5239c2=_0x5239c2-0x77;let _0x10e073=a141_0x10e0[_0x5239c2];return _0x10e073;};const a141_0x390e88=a141_0x508e;'use strict';const _=require(a141_0x390e88(0x79)),qs=require(a141_0x390e88(0x9f)),logger=require(a141_0x390e88(0x84))('api'),{db}=require(a141_0x390e88(0x97)),{Op}=require(a141_0x390e88(0x92));function respondWithResult(_0x136777,_0x30c123){return _0x30c123=_0x30c123||0xc8,function(_0x514a99){const _0x51ec15=a141_0x508e;if(_0x514a99)return _0x136777[_0x51ec15(0x78)](_0x30c123)[_0x51ec15(0x96)](_0x514a99);};}function respondWithFilteredResult(_0x288e82,_0x529ec1){return function(_0x3504e0){const _0xbb6ed8=a141_0x508e;if(_0x3504e0){const _0x33d0ed=_0x3504e0['count'],_0xc839db=_0x529ec1[_0xbb6ed8(0x7e)];let _0xc0d987=_0x529ec1[_0xbb6ed8(0x7e)]+_0x529ec1[_0xbb6ed8(0x86)],_0x47405d;return _0xc0d987>=_0x33d0ed?(_0xc0d987=_0x33d0ed,_0x47405d=0xc8):_0x47405d=0xce,_0x288e82[_0xbb6ed8(0x78)](_0x47405d),_0x288e82[_0xbb6ed8(0x9a)](_0xbb6ed8(0x82),_0xc839db+'-'+_0xc0d987+'/'+_0x33d0ed)[_0xbb6ed8(0x96)](_0x3504e0);}return null;};}function saveUpdates(_0x3fbebe){return function(_0x4726cc){const _0x567983=a141_0x508e;if(_0x4726cc)return _0x4726cc['update'](_0x3fbebe)[_0x567983(0xa6)](function(_0x3ccb76){return _0x3ccb76;});return null;};}function removeEntity(_0x1c81b7){return function(_0x551ee0){const _0x53ee8b=a141_0x508e;if(_0x551ee0)return _0x551ee0[_0x53ee8b(0x77)]()[_0x53ee8b(0xa6)](function(){const _0x5c4100=_0x53ee8b;_0x1c81b7[_0x5c4100(0x78)](0xcc)[_0x5c4100(0x9b)]();});};}function handleEntityNotFound(_0x55334a){return function(_0x4e8d1d){const _0x4c4fa3=a141_0x508e;return!_0x4e8d1d&&_0x55334a[_0x4c4fa3(0x7c)](0x194),_0x4e8d1d;};}function handleError(_0x4fd41d,_0x440c59){return _0x440c59=_0x440c59||0x1f4,function(_0x2afdf6){const _0x2c1caa=a141_0x508e;logger['error'](_0x2afdf6[_0x2c1caa(0x9e)]),_0x2afdf6[_0x2c1caa(0x91)]&&delete _0x2afdf6[_0x2c1caa(0x91)],_0x4fd41d[_0x2c1caa(0x78)](_0x440c59)[_0x2c1caa(0x8b)](_0x2afdf6);};}exports[a141_0x390e88(0x9c)]=function(_0x5cabb9,_0x1b21e1){const _0x4c3360=a141_0x390e88;let _0x55a751={};const _0x4ad703={},_0x2bbf93={'count':0x0,'rows':[]},_0x3e9df8=_[_0x4c3360(0xa5)](db[_0x4c3360(0x98)][_0x4c3360(0x93)],function(_0x54be2e){const _0x3906ef=_0x4c3360;return{'name':_0x54be2e['fieldName'],'type':_0x54be2e['type'][_0x3906ef(0x87)]};});_0x4ad703[_0x4c3360(0x83)]=_['map'](_0x3e9df8,'name'),_0x4ad703[_0x4c3360(0x81)]=_[_0x4c3360(0xa1)](_0x5cabb9[_0x4c3360(0x81)]),_0x4ad703['filters']=_[_0x4c3360(0x80)](_0x4ad703[_0x4c3360(0x83)],_0x4ad703[_0x4c3360(0x81)]),_0x55a751[_0x4c3360(0x95)]=_['intersection'](_0x4ad703[_0x4c3360(0x83)],qs[_0x4c3360(0x8f)](_0x5cabb9[_0x4c3360(0x81)][_0x4c3360(0x8f)])),_0x55a751[_0x4c3360(0x95)]=_0x55a751[_0x4c3360(0x95)][_0x4c3360(0x94)]?_0x55a751['attributes']:_0x4ad703[_0x4c3360(0x83)];typeof _0x5cabb9[_0x4c3360(0x81)]['nolimit']===_0x4c3360(0x7a)&&(_0x55a751[_0x4c3360(0x86)]=qs['limit'](_0x5cabb9[_0x4c3360(0x81)][_0x4c3360(0x86)]),_0x55a751[_0x4c3360(0x7e)]=qs[_0x4c3360(0x7e)](_0x5cabb9[_0x4c3360(0x81)][_0x4c3360(0x7e)]));_0x55a751[_0x4c3360(0x9d)]=qs[_0x4c3360(0xa2)](_0x5cabb9[_0x4c3360(0x81)][_0x4c3360(0xa2)]),_0x55a751['where']=qs[_0x4c3360(0x8a)](_[_0x4c3360(0x88)](_0x5cabb9[_0x4c3360(0x81)],_0x4ad703[_0x4c3360(0x8a)]),_0x3e9df8);_0x5cabb9[_0x4c3360(0x81)][_0x4c3360(0x8d)]&&(_0x55a751[_0x4c3360(0xa3)]=_[_0x4c3360(0x7b)](_0x55a751[_0x4c3360(0xa3)],{[Op['or']]:_[_0x4c3360(0xa5)](_0x3e9df8,function(_0xb50cde){const _0x162627=_0x4c3360;if(_0xb50cde[_0x162627(0xa7)]!=='VIRTUAL'){const _0x155769={};return _0x155769[_0xb50cde[_0x162627(0x91)]]={[Op[_0x162627(0x85)]]:'%'+_0x5cabb9[_0x162627(0x81)][_0x162627(0x8d)]+'%'},_0x155769;}})}));_0x55a751=_[_0x4c3360(0x7b)]({},_0x55a751,_0x5cabb9[_0x4c3360(0x99)]);const _0x2f7d4b={'where':_0x55a751[_0x4c3360(0xa3)]};return db[_0x4c3360(0x98)]['count'](_0x2f7d4b)['then'](function(_0x38fa91){const _0x5a1990=_0x4c3360;return _0x2bbf93[_0x5a1990(0x7d)]=_0x38fa91,_0x5cabb9['query']['includeAll']&&(_0x55a751[_0x5a1990(0x8e)]=[{'all':!![]}]),db[_0x5a1990(0x98)]['findAll'](_0x55a751);})[_0x4c3360(0xa6)](function(_0x284000){return _0x2bbf93['rows']=_0x284000,_0x2bbf93;})[_0x4c3360(0xa6)](respondWithFilteredResult(_0x1b21e1,_0x55a751))[_0x4c3360(0xa8)](handleError(_0x1b21e1,null));},exports[a141_0x390e88(0xa4)]=function(_0x471b7d,_0x2fdc91){const _0x2e70cd=a141_0x390e88;let _0x3786ed={'raw':!![],'where':{'id':_0x471b7d[_0x2e70cd(0x90)]['id']}};const _0x933669={};return _0x933669[_0x2e70cd(0x83)]=_[_0x2e70cd(0xa1)](db[_0x2e70cd(0x98)]['rawAttributes']),_0x933669[_0x2e70cd(0x81)]=_[_0x2e70cd(0xa1)](_0x471b7d[_0x2e70cd(0x81)]),_0x933669[_0x2e70cd(0x8a)]=_[_0x2e70cd(0x80)](_0x933669[_0x2e70cd(0x83)],_0x933669[_0x2e70cd(0x81)]),_0x3786ed[_0x2e70cd(0x95)]=_['intersection'](_0x933669[_0x2e70cd(0x83)],qs['fields'](_0x471b7d['query'][_0x2e70cd(0x8f)])),_0x3786ed[_0x2e70cd(0x95)]=_0x3786ed[_0x2e70cd(0x95)][_0x2e70cd(0x94)]?_0x3786ed[_0x2e70cd(0x95)]:_0x933669['model'],_0x471b7d[_0x2e70cd(0x81)][_0x2e70cd(0x8c)]&&(_0x3786ed[_0x2e70cd(0x8e)]=[{'all':!![]}]),_0x3786ed=_['merge']({},_0x3786ed,_0x471b7d[_0x2e70cd(0x99)]),db[_0x2e70cd(0x98)][_0x2e70cd(0xa0)](_0x3786ed)['then'](handleEntityNotFound(_0x2fdc91,null))[_0x2e70cd(0xa6)](respondWithResult(_0x2fdc91,null))[_0x2e70cd(0xa8)](handleError(_0x2fdc91,null));},exports[a141_0x390e88(0xa9)]=function(_0x955e61,_0xaedacf){const _0x4b6c38=a141_0x390e88;return db[_0x4b6c38(0x98)][_0x4b6c38(0xa9)](_0x955e61['body'],{})[_0x4b6c38(0xa6)](respondWithResult(_0xaedacf,0xc9))[_0x4b6c38(0xa8)](handleError(_0xaedacf,null));},exports[a141_0x390e88(0x89)]=function(_0x3b2c0c,_0x15c81b){const _0x30c99a=a141_0x390e88;return _0x3b2c0c['body']['id']&&delete _0x3b2c0c['body']['id'],db['CloudProvider'][_0x30c99a(0xa0)]({'where':{'id':_0x3b2c0c[_0x30c99a(0x90)]['id']}})[_0x30c99a(0xa6)](handleEntityNotFound(_0x15c81b,null))[_0x30c99a(0xa6)](saveUpdates(_0x3b2c0c[_0x30c99a(0x7f)],null))[_0x30c99a(0xa6)](respondWithResult(_0x15c81b,null))[_0x30c99a(0xa8)](handleError(_0x15c81b,null));},exports['destroy']=function(_0x47c3e1,_0x1f2c21){const _0x6c0a5f=a141_0x390e88;return db[_0x6c0a5f(0x98)]['findOne']({'where':{'id':_0x47c3e1[_0x6c0a5f(0x90)]['id']}})[_0x6c0a5f(0xa6)](handleEntityNotFound(_0x1f2c21,null))[_0x6c0a5f(0xa6)](removeEntity(_0x1f2c21,null))[_0x6c0a5f(0xa8)](handleError(_0x1f2c21,null));}; \ No newline at end of file +const a141_0x5e9a=['json','lodash','offset','Content-Range','includeAll','options','findOne','body','show','../../mysqldb','type','fieldName','merge','params','limit','attributes','update','key','where','sort','count','index','api','end','then','../../config/logger','include','VIRTUAL','length','filter','send','query','intersection','order','error','model','create','status','name','catch','destroy','pick','keys','CloudProvider','filters','fields','like','sendStatus','rawAttributes','map','undefined'];(function(_0x42b439,_0x9958af){const _0x5e9a1a=function(_0x486099){while(--_0x486099){_0x42b439['push'](_0x42b439['shift']());}};_0x5e9a1a(++_0x9958af);}(a141_0x5e9a,0xdb));const a141_0x4860=function(_0x42b439,_0x9958af){_0x42b439=_0x42b439-0x10d;let _0x5e9a1a=a141_0x5e9a[_0x42b439];return _0x5e9a1a;};const a141_0x1267b3=a141_0x4860;'use strict';const _=require(a141_0x1267b3(0x132)),qs=require('../../components/parsers/qs'),logger=require(a141_0x1267b3(0x117))(a141_0x1267b3(0x114)),{db}=require(a141_0x1267b3(0x13a)),{Op}=require('sequelize');function respondWithResult(_0x417092,_0x41e9aa){return _0x41e9aa=_0x41e9aa||0xc8,function(_0x1f3f75){const _0x5b0c10=a141_0x4860;if(_0x1f3f75)return _0x417092[_0x5b0c10(0x123)](_0x41e9aa)[_0x5b0c10(0x131)](_0x1f3f75);};}function respondWithFilteredResult(_0x3a2b29,_0x5102c1){return function(_0x4dae3b){const _0x3be2b7=a141_0x4860;if(_0x4dae3b){const _0x1d9b9b=_0x4dae3b[_0x3be2b7(0x112)],_0x2c666a=_0x5102c1[_0x3be2b7(0x133)];let _0x5657de=_0x5102c1[_0x3be2b7(0x133)]+_0x5102c1['limit'],_0x2cf046;return _0x5657de>=_0x1d9b9b?(_0x5657de=_0x1d9b9b,_0x2cf046=0xc8):_0x2cf046=0xce,_0x3a2b29[_0x3be2b7(0x123)](_0x2cf046),_0x3a2b29['set'](_0x3be2b7(0x134),_0x2c666a+'-'+_0x5657de+'/'+_0x1d9b9b)[_0x3be2b7(0x131)](_0x4dae3b);}return null;};}function saveUpdates(_0x1e058a){return function(_0x1d0de8){const _0x344369=a141_0x4860;if(_0x1d0de8)return _0x1d0de8[_0x344369(0x10e)](_0x1e058a)[_0x344369(0x116)](function(_0x56053b){return _0x56053b;});return null;};}function removeEntity(_0x45cdf0){return function(_0xf155f5){const _0x1e2bb1=a141_0x4860;if(_0xf155f5)return _0xf155f5[_0x1e2bb1(0x126)]()['then'](function(){const _0x10e003=_0x1e2bb1;_0x45cdf0[_0x10e003(0x123)](0xcc)[_0x10e003(0x115)]();});};}function handleEntityNotFound(_0x31d96e){return function(_0x136b56){const _0x18c060=a141_0x4860;return!_0x136b56&&_0x31d96e[_0x18c060(0x12d)](0x194),_0x136b56;};}function handleError(_0x1ca84a,_0x578853){return _0x578853=_0x578853||0x1f4,function(_0x34d5c0){const _0x3c8604=a141_0x4860;logger[_0x3c8604(0x120)](_0x34d5c0['stack']),_0x34d5c0[_0x3c8604(0x124)]&&delete _0x34d5c0['name'],_0x1ca84a[_0x3c8604(0x123)](_0x578853)[_0x3c8604(0x11c)](_0x34d5c0);};}exports[a141_0x1267b3(0x113)]=function(_0x35383e,_0xf69c41){const _0xca56b6=a141_0x1267b3;let _0x53806c={};const _0x152ee4={},_0x5aefae={'count':0x0,'rows':[]},_0x114a80=_[_0xca56b6(0x12f)](db[_0xca56b6(0x129)][_0xca56b6(0x12e)],function(_0x52ea88){const _0x7ae990=_0xca56b6;return{'name':_0x52ea88[_0x7ae990(0x13c)],'type':_0x52ea88[_0x7ae990(0x13b)][_0x7ae990(0x10f)]};});_0x152ee4[_0xca56b6(0x121)]=_[_0xca56b6(0x12f)](_0x114a80,_0xca56b6(0x124)),_0x152ee4[_0xca56b6(0x11d)]=_[_0xca56b6(0x128)](_0x35383e[_0xca56b6(0x11d)]),_0x152ee4['filters']=_[_0xca56b6(0x11e)](_0x152ee4['model'],_0x152ee4[_0xca56b6(0x11d)]),_0x53806c['attributes']=_[_0xca56b6(0x11e)](_0x152ee4[_0xca56b6(0x121)],qs[_0xca56b6(0x12b)](_0x35383e['query'][_0xca56b6(0x12b)])),_0x53806c[_0xca56b6(0x10d)]=_0x53806c[_0xca56b6(0x10d)][_0xca56b6(0x11a)]?_0x53806c['attributes']:_0x152ee4[_0xca56b6(0x121)];typeof _0x35383e[_0xca56b6(0x11d)]['nolimit']===_0xca56b6(0x130)&&(_0x53806c['limit']=qs[_0xca56b6(0x13f)](_0x35383e[_0xca56b6(0x11d)][_0xca56b6(0x13f)]),_0x53806c['offset']=qs['offset'](_0x35383e[_0xca56b6(0x11d)][_0xca56b6(0x133)]));_0x53806c[_0xca56b6(0x11f)]=qs[_0xca56b6(0x111)](_0x35383e[_0xca56b6(0x11d)][_0xca56b6(0x111)]),_0x53806c[_0xca56b6(0x110)]=qs['filters'](_[_0xca56b6(0x127)](_0x35383e[_0xca56b6(0x11d)],_0x152ee4[_0xca56b6(0x12a)]),_0x114a80);_0x35383e[_0xca56b6(0x11d)][_0xca56b6(0x11b)]&&(_0x53806c[_0xca56b6(0x110)]=_[_0xca56b6(0x13d)](_0x53806c['where'],{[Op['or']]:_[_0xca56b6(0x12f)](_0x114a80,function(_0x4eeea4){const _0x322822=_0xca56b6;if(_0x4eeea4['type']!==_0x322822(0x119)){const _0xd7b77b={};return _0xd7b77b[_0x4eeea4[_0x322822(0x124)]]={[Op[_0x322822(0x12c)]]:'%'+_0x35383e['query'][_0x322822(0x11b)]+'%'},_0xd7b77b;}})}));_0x53806c=_[_0xca56b6(0x13d)]({},_0x53806c,_0x35383e[_0xca56b6(0x136)]);const _0x4d5052={'where':_0x53806c[_0xca56b6(0x110)]};return db['CloudProvider'][_0xca56b6(0x112)](_0x4d5052)[_0xca56b6(0x116)](function(_0x3948bd){const _0x5ba542=_0xca56b6;return _0x5aefae[_0x5ba542(0x112)]=_0x3948bd,_0x35383e[_0x5ba542(0x11d)][_0x5ba542(0x135)]&&(_0x53806c[_0x5ba542(0x118)]=[{'all':!![]}]),db['CloudProvider']['findAll'](_0x53806c);})[_0xca56b6(0x116)](function(_0x5544a5){return _0x5aefae['rows']=_0x5544a5,_0x5aefae;})[_0xca56b6(0x116)](respondWithFilteredResult(_0xf69c41,_0x53806c))[_0xca56b6(0x125)](handleError(_0xf69c41,null));},exports[a141_0x1267b3(0x139)]=function(_0x588ec0,_0x25d7af){const _0x46e574=a141_0x1267b3;let _0x40ecf5={'raw':!![],'where':{'id':_0x588ec0['params']['id']}};const _0x5368ce={};return _0x5368ce[_0x46e574(0x121)]=_[_0x46e574(0x128)](db['CloudProvider'][_0x46e574(0x12e)]),_0x5368ce['query']=_[_0x46e574(0x128)](_0x588ec0[_0x46e574(0x11d)]),_0x5368ce[_0x46e574(0x12a)]=_[_0x46e574(0x11e)](_0x5368ce['model'],_0x5368ce[_0x46e574(0x11d)]),_0x40ecf5[_0x46e574(0x10d)]=_[_0x46e574(0x11e)](_0x5368ce[_0x46e574(0x121)],qs[_0x46e574(0x12b)](_0x588ec0[_0x46e574(0x11d)][_0x46e574(0x12b)])),_0x40ecf5[_0x46e574(0x10d)]=_0x40ecf5[_0x46e574(0x10d)][_0x46e574(0x11a)]?_0x40ecf5[_0x46e574(0x10d)]:_0x5368ce['model'],_0x588ec0[_0x46e574(0x11d)][_0x46e574(0x135)]&&(_0x40ecf5['include']=[{'all':!![]}]),_0x40ecf5=_[_0x46e574(0x13d)]({},_0x40ecf5,_0x588ec0[_0x46e574(0x136)]),db[_0x46e574(0x129)][_0x46e574(0x137)](_0x40ecf5)[_0x46e574(0x116)](handleEntityNotFound(_0x25d7af,null))['then'](respondWithResult(_0x25d7af,null))['catch'](handleError(_0x25d7af,null));},exports[a141_0x1267b3(0x122)]=function(_0x16a5c0,_0x3d0224){const _0x1caab5=a141_0x1267b3;return db[_0x1caab5(0x129)][_0x1caab5(0x122)](_0x16a5c0[_0x1caab5(0x138)],{})['then'](respondWithResult(_0x3d0224,0xc9))[_0x1caab5(0x125)](handleError(_0x3d0224,null));},exports[a141_0x1267b3(0x10e)]=function(_0x3b6aae,_0x2241ae){const _0xfec320=a141_0x1267b3;return _0x3b6aae['body']['id']&&delete _0x3b6aae[_0xfec320(0x138)]['id'],db[_0xfec320(0x129)]['findOne']({'where':{'id':_0x3b6aae[_0xfec320(0x13e)]['id']}})['then'](handleEntityNotFound(_0x2241ae,null))['then'](saveUpdates(_0x3b6aae[_0xfec320(0x138)],null))[_0xfec320(0x116)](respondWithResult(_0x2241ae,null))[_0xfec320(0x125)](handleError(_0x2241ae,null));},exports['destroy']=function(_0x206f05,_0x50f766){const _0xbc2e0b=a141_0x1267b3;return db['CloudProvider'][_0xbc2e0b(0x137)]({'where':{'id':_0x206f05['params']['id']}})[_0xbc2e0b(0x116)](handleEntityNotFound(_0x50f766,null))[_0xbc2e0b(0x116)](removeEntity(_0x50f766,null))[_0xbc2e0b(0x125)](handleError(_0x50f766,null));}; \ No newline at end of file diff --git a/server/api/cloudProvider/cloudProvider.model.js b/server/api/cloudProvider/cloudProvider.model.js index a5ae3e2..f4d2c60 100644 --- a/server/api/cloudProvider/cloudProvider.model.js +++ b/server/api/cloudProvider/cloudProvider.model.js @@ -1 +1 @@ -const a142_0x20b8=['exports','sequelize','./cloudProvider.attributes','./cloudProvider.options','init','CloudProvider'];(function(_0x514cd8,_0xd9ea0d){const _0x20b8b3=function(_0x1687e7){while(--_0x1687e7){_0x514cd8['push'](_0x514cd8['shift']());}};_0x20b8b3(++_0xd9ea0d);}(a142_0x20b8,0xe0));const a142_0x1687=function(_0x514cd8,_0xd9ea0d){_0x514cd8=_0x514cd8-0x7c;let _0x20b8b3=a142_0x20b8[_0x514cd8];return _0x20b8b3;};const a142_0x18cc89=a142_0x1687;'use strict';const {Model}=require(a142_0x18cc89(0x81)),{attributes}=require(a142_0x18cc89(0x7c)),{options}=require(a142_0x18cc89(0x7d));class CloudProvider extends Model{}function init(_0x48a304,_0x40f72d){const _0x175704=a142_0x18cc89,_0x4176d0=options(_0x48a304),_0x37ccab=typeof _0x40f72d==='function'?_0x40f72d(_0x4176d0):_0x4176d0;return CloudProvider[_0x175704(0x7e)](attributes,_0x37ccab),CloudProvider;}module[a142_0x18cc89(0x80)][a142_0x18cc89(0x7f)]=CloudProvider,module[a142_0x18cc89(0x80)]['init']=init; \ No newline at end of file +const a142_0xe8d0=['init','./cloudProvider.options','CloudProvider','sequelize'];(function(_0xc7b1eb,_0x458e1b){const _0xe8d070=function(_0x16f8d2){while(--_0x16f8d2){_0xc7b1eb['push'](_0xc7b1eb['shift']());}};_0xe8d070(++_0x458e1b);}(a142_0xe8d0,0x1ed));const a142_0x16f8=function(_0xc7b1eb,_0x458e1b){_0xc7b1eb=_0xc7b1eb-0x11c;let _0xe8d070=a142_0xe8d0[_0xc7b1eb];return _0xe8d070;};const a142_0x2deaf5=a142_0x16f8;'use strict';const {Model}=require(a142_0x2deaf5(0x11e)),{attributes}=require('./cloudProvider.attributes'),{options}=require(a142_0x2deaf5(0x11c));class CloudProvider extends Model{}function init(_0xd626f4,_0xf87f1c){const _0x186f8c=a142_0x2deaf5,_0x20c5a3=options(_0xd626f4),_0x4f8573=typeof _0xf87f1c==='function'?_0xf87f1c(_0x20c5a3):_0x20c5a3;return CloudProvider[_0x186f8c(0x11f)](attributes,_0x4f8573),CloudProvider;}module['exports'][a142_0x2deaf5(0x11d)]=CloudProvider,module['exports'][a142_0x2deaf5(0x11f)]=init; \ No newline at end of file diff --git a/server/api/cloudProvider/cloudProvider.options.js b/server/api/cloudProvider/cloudProvider.options.js index 4ff11fb..6036bb1 100644 --- a/server/api/cloudProvider/cloudProvider.options.js +++ b/server/api/cloudProvider/cloudProvider.options.js @@ -1 +1 @@ -var a143_0x5ae9=['exports','cloud_providers','options'];(function(_0x4c3790,_0x398990){var _0x5ae9b3=function(_0xa25304){while(--_0xa25304){_0x4c3790['push'](_0x4c3790['shift']());}};_0x5ae9b3(++_0x398990);}(a143_0x5ae9,0x17f));var a143_0xa253=function(_0x4c3790,_0x398990){_0x4c3790=_0x4c3790-0x127;var _0x5ae9b3=a143_0x5ae9[_0x4c3790];return _0x5ae9b3;};var a143_0x29a374=a143_0xa253;function options(_0x5376e1){var _0x443164=a143_0xa253;return{'sequelize':_0x5376e1,'tableName':_0x443164(0x129),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a143_0x29a374(0x128)][a143_0x29a374(0x127)]=options; \ No newline at end of file +var a143_0x23cb=['exports','options','cloud_providers'];(function(_0x50a2c8,_0xb6fe70){var _0x23cbbb=function(_0x29e89a){while(--_0x29e89a){_0x50a2c8['push'](_0x50a2c8['shift']());}};_0x23cbbb(++_0xb6fe70);}(a143_0x23cb,0xe7));var a143_0x29e8=function(_0x50a2c8,_0xb6fe70){_0x50a2c8=_0x50a2c8-0x158;var _0x23cbbb=a143_0x23cb[_0x50a2c8];return _0x23cbbb;};var a143_0x258ba5=a143_0x29e8;function options(_0xd294ff){var _0x4a4a39=a143_0x29e8;return{'sequelize':_0xd294ff,'tableName':_0x4a4a39(0x15a),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a143_0x258ba5(0x158)][a143_0x258ba5(0x159)]=options; \ No newline at end of file diff --git a/server/api/cloudProvider/index.js b/server/api/cloudProvider/index.js index dc90925..67700d2 100644 --- a/server/api/cloudProvider/index.js +++ b/server/api/cloudProvider/index.js @@ -1 +1 @@ -const a144_0x2f24=['put','../../components/auth/service','express','get','exports','delete','show','post','index','destroy','isAuthenticated','update','Router','/:id'];(function(_0x1e67f7,_0x2115b4){const _0x2f2418=function(_0x207ae3){while(--_0x207ae3){_0x1e67f7['push'](_0x1e67f7['shift']());}};_0x2f2418(++_0x2115b4);}(a144_0x2f24,0x98));const a144_0x207a=function(_0x1e67f7,_0x2115b4){_0x1e67f7=_0x1e67f7-0x146;let _0x2f2418=a144_0x2f24[_0x1e67f7];return _0x2f2418;};const a144_0x262941=a144_0x207a;'use strict';const express=require(a144_0x262941(0x14a)),router=express[a144_0x262941(0x146)](),auth=require(a144_0x262941(0x149)),controller=require('./cloudProvider.controller');router[a144_0x262941(0x14b)]('/',auth[a144_0x262941(0x152)](),controller[a144_0x262941(0x150)]),router[a144_0x262941(0x14b)](a144_0x262941(0x147),auth[a144_0x262941(0x152)](),controller[a144_0x262941(0x14e)]),router[a144_0x262941(0x14f)]('/',auth[a144_0x262941(0x152)](),controller['create']),router[a144_0x262941(0x148)](a144_0x262941(0x147),auth['isAuthenticated'](),controller[a144_0x262941(0x153)]),router[a144_0x262941(0x14d)](a144_0x262941(0x147),auth[a144_0x262941(0x152)](),controller[a144_0x262941(0x151)]),module[a144_0x262941(0x14c)]=router; \ No newline at end of file +const a144_0x1b16=['create','isAuthenticated','index','get','update','exports','put','delete','show','../../components/auth/service','express','/:id','post','./cloudProvider.controller'];(function(_0x23cc6f,_0x2d0bb7){const _0x1b16aa=function(_0x4dfa4c){while(--_0x4dfa4c){_0x23cc6f['push'](_0x23cc6f['shift']());}};_0x1b16aa(++_0x2d0bb7);}(a144_0x1b16,0x98));const a144_0x4dfa=function(_0x23cc6f,_0x2d0bb7){_0x23cc6f=_0x23cc6f-0x17f;let _0x1b16aa=a144_0x1b16[_0x23cc6f];return _0x1b16aa;};const a144_0x29ad43=a144_0x4dfa;'use strict';const express=require(a144_0x29ad43(0x18b)),router=express['Router'](),auth=require(a144_0x29ad43(0x18a)),controller=require(a144_0x29ad43(0x180));router[a144_0x29ad43(0x184)]('/',auth[a144_0x29ad43(0x182)](),controller[a144_0x29ad43(0x183)]),router[a144_0x29ad43(0x184)]('/:id',auth['isAuthenticated'](),controller[a144_0x29ad43(0x189)]),router[a144_0x29ad43(0x17f)]('/',auth[a144_0x29ad43(0x182)](),controller[a144_0x29ad43(0x181)]),router[a144_0x29ad43(0x187)](a144_0x29ad43(0x18c),auth['isAuthenticated'](),controller[a144_0x29ad43(0x185)]),router[a144_0x29ad43(0x188)](a144_0x29ad43(0x18c),auth[a144_0x29ad43(0x182)](),controller['destroy']),module[a144_0x29ad43(0x186)]=router; \ No newline at end of file diff --git a/server/api/cmCompany/cmCompany.attributes.js b/server/api/cmCompany/cmCompany.attributes.js index 4507334..b887550 100644 --- a/server/api/cmCompany/cmCompany.attributes.js +++ b/server/api/cmCompany/cmCompany.attributes.js @@ -1 +1 @@ -const a145_0x221f=['STRING'];(function(_0x40349f,_0x437456){const _0x221f52=function(_0x5e8827){while(--_0x5e8827){_0x40349f['push'](_0x40349f['shift']());}};_0x221f52(++_0x437456);}(a145_0x221f,0x197));const a145_0x5e88=function(_0x40349f,_0x437456){_0x40349f=_0x40349f-0x18a;let _0x221f52=a145_0x221f[_0x40349f];return _0x221f52;};const a145_0x1de041=a145_0x5e88;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a145_0x1de041(0x18a)],'unique':'name','allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':DataTypes[a145_0x1de041(0x18a)]},'companyId':{'type':DataTypes['STRING']},'website':{'type':DataTypes[a145_0x1de041(0x18a)]},'phone':{'type':DataTypes[a145_0x1de041(0x18a)]},'fax':{'type':DataTypes[a145_0x1de041(0x18a)]},'type':{'type':DataTypes[a145_0x1de041(0x18a)]},'street':{'type':DataTypes[a145_0x1de041(0x18a)]},'postalCode':{'type':DataTypes[a145_0x1de041(0x18a)]},'city':{'type':DataTypes[a145_0x1de041(0x18a)]},'country':{'type':DataTypes['STRING']},'email':{'type':DataTypes[a145_0x1de041(0x18a)],'validate':{'isEmail':!![]}},'emailDomain':{'type':DataTypes[a145_0x1de041(0x18a)]},'sStreet':{'type':DataTypes[a145_0x1de041(0x18a)]},'sPostalCode':{'type':DataTypes[a145_0x1de041(0x18a)]},'sCity':{'type':DataTypes[a145_0x1de041(0x18a)]},'sCountry':{'type':DataTypes[a145_0x1de041(0x18a)]},'description':{'type':DataTypes[a145_0x1de041(0x18a)]}};module['exports']['attributes']=attributes; \ No newline at end of file +const a145_0x4723=['attributes','sequelize','exports','name','STRING'];(function(_0x26b744,_0x33465b){const _0x472375=function(_0x45e684){while(--_0x45e684){_0x26b744['push'](_0x26b744['shift']());}};_0x472375(++_0x33465b);}(a145_0x4723,0xa7));const a145_0x45e6=function(_0x26b744,_0x33465b){_0x26b744=_0x26b744-0x1a2;let _0x472375=a145_0x4723[_0x26b744];return _0x472375;};const a145_0x7907c8=a145_0x45e6;'use strict';const {DataTypes}=require(a145_0x7907c8(0x1a6)),attributes={'name':{'type':DataTypes['STRING'],'unique':a145_0x7907c8(0x1a3),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':DataTypes['STRING']},'companyId':{'type':DataTypes[a145_0x7907c8(0x1a4)]},'website':{'type':DataTypes[a145_0x7907c8(0x1a4)]},'phone':{'type':DataTypes[a145_0x7907c8(0x1a4)]},'fax':{'type':DataTypes[a145_0x7907c8(0x1a4)]},'type':{'type':DataTypes[a145_0x7907c8(0x1a4)]},'street':{'type':DataTypes[a145_0x7907c8(0x1a4)]},'postalCode':{'type':DataTypes[a145_0x7907c8(0x1a4)]},'city':{'type':DataTypes[a145_0x7907c8(0x1a4)]},'country':{'type':DataTypes[a145_0x7907c8(0x1a4)]},'email':{'type':DataTypes[a145_0x7907c8(0x1a4)],'validate':{'isEmail':!![]}},'emailDomain':{'type':DataTypes[a145_0x7907c8(0x1a4)]},'sStreet':{'type':DataTypes['STRING']},'sPostalCode':{'type':DataTypes[a145_0x7907c8(0x1a4)]},'sCity':{'type':DataTypes['STRING']},'sCountry':{'type':DataTypes[a145_0x7907c8(0x1a4)]},'description':{'type':DataTypes['STRING']}};module[a145_0x7907c8(0x1a2)][a145_0x7907c8(0x1a5)]=attributes; \ No newline at end of file diff --git a/server/api/cmCompany/cmCompany.controller.js b/server/api/cmCompany/cmCompany.controller.js index a9a8ce4..de339e5 100644 --- a/server/api/cmCompany/cmCompany.controller.js +++ b/server/api/cmCompany/cmCompany.controller.js @@ -1 +1 @@ -const a146_0x50da=['sequelize','../../mysqldb','attributes','then','json','query','filter','includeAll','pick','rows','offset','model','rawAttributes','omit','../../config/logger','sendStatus','order','Companies','error','fields','status','where','lodash','CmContact','UserProfileSection','create','filters','limit','length','count','destroy','body','sort','describe','addContacts','stack','like','undefined','ids','options','findOne','update','catch','name','UserProfileResource','include','nolimit','end','intersection','role','keys','findAll','params','send','merge','user','get','getContacts','map','CmCompany'];(function(_0x34658d,_0xd829b9){const _0x50da5c=function(_0x3c3052){while(--_0x3c3052){_0x34658d['push'](_0x34658d['shift']());}};_0x50da5c(++_0xd829b9);}(a146_0x50da,0xcc));const a146_0x3c30=function(_0x34658d,_0xd829b9){_0x34658d=_0x34658d-0x8d;let _0x50da5c=a146_0x50da[_0x34658d];return _0x50da5c;};const a146_0x1206c4=a146_0x3c30;'use strict';const _=require(a146_0x1206c4(0xc7)),qs=require('../../components/parsers/qs'),logger=require(a146_0x1206c4(0xbf))('api'),{db}=require(a146_0x1206c4(0xb2)),{Op}=require(a146_0x1206c4(0xb1));function respondWithResult(_0x34aa1b,_0x2801ec){return _0x2801ec=_0x2801ec||0xc8,function(_0x1c7036){const _0xe2a447=a146_0x3c30;if(_0x1c7036)return _0x34aa1b[_0xe2a447(0xc5)](_0x2801ec)['json'](_0x1c7036);};}function respondWithFilteredResult(_0x2a0e7e,_0x3860ca){return function(_0x34a15c){const _0xd11b61=a146_0x3c30;if(_0x34a15c){const _0x3fb3a0=_0x34a15c['count'],_0x4ccc58=_0x3860ca[_0xd11b61(0xbb)];let _0x49c4bb=_0x3860ca['offset']+_0x3860ca[_0xd11b61(0x90)],_0x36e5be;return _0x49c4bb>=_0x3fb3a0?(_0x49c4bb=_0x3fb3a0,_0x36e5be=0xc8):_0x36e5be=0xce,_0x2a0e7e[_0xd11b61(0xc5)](_0x36e5be),_0x2a0e7e['set']('Content-Range',_0x4ccc58+'-'+_0x49c4bb+'/'+_0x3fb3a0)[_0xd11b61(0xb5)](_0x34a15c);}return null;};}function saveUpdates(_0x160533){return function(_0x4c5db9){const _0x401c59=a146_0x3c30;if(_0x4c5db9)return _0x4c5db9[_0x401c59(0x9e)](_0x160533)[_0x401c59(0xb4)](function(_0x12a246){return _0x12a246;});return null;};}function removeEntity(_0x54a9eb){return function(_0x16637c){const _0x34eead=a146_0x3c30;if(_0x16637c)return _0x16637c[_0x34eead(0x93)]()[_0x34eead(0xb4)](function(){const _0x3528c4=_0x34eead,_0x40ee31=_0x16637c[_0x3528c4(0xad)]({'plain':!![]}),_0x3edfc3=_0x3528c4(0xc2);return db['UserProfileResource'][_0x3528c4(0x93)]({'where':{'type':_0x3edfc3,'resourceId':_0x40ee31['id']}})[_0x3528c4(0xb4)](function(){return _0x16637c;});})['then'](function(){const _0x54b9fd=_0x34eead;_0x54a9eb['status'](0xcc)[_0x54b9fd(0xa4)]();});};}function handleEntityNotFound(_0x4af573){return function(_0xf4774b){const _0x33d453=a146_0x3c30;return!_0xf4774b&&_0x4af573[_0x33d453(0xc0)](0x194),_0xf4774b;};}function handleError(_0x1e5063,_0x539842){return _0x539842=_0x539842||0x1f4,function(_0x1ca005){const _0x5f596e=a146_0x3c30;logger[_0x5f596e(0xc3)](_0x1ca005[_0x5f596e(0x98)]),_0x1ca005[_0x5f596e(0xa0)]&&delete _0x1ca005['name'],_0x1e5063[_0x5f596e(0xc5)](_0x539842)[_0x5f596e(0xaa)](_0x1ca005);};}exports['index']=function(_0x2f63d9,_0x26ede7){const _0x3f82d5=a146_0x1206c4;let _0x52b306={};const _0xe3736b={},_0x5431f9={'count':0x0,'rows':[]};return db[_0x3f82d5(0xb0)]['describe']()[_0x3f82d5(0xb4)](function(_0x417199){const _0x164ecf=_0x3f82d5;_0xe3736b[_0x164ecf(0xbc)]=_[_0x164ecf(0xa7)](_0x417199),_0xe3736b[_0x164ecf(0xb6)]=_[_0x164ecf(0xa7)](_0x2f63d9['query']),_0xe3736b[_0x164ecf(0x8f)]=_[_0x164ecf(0xa5)](_0xe3736b[_0x164ecf(0xbc)],_0xe3736b[_0x164ecf(0xb6)]),_0x52b306[_0x164ecf(0xb3)]=_[_0x164ecf(0xa5)](_0xe3736b['model'],qs['fields'](_0x2f63d9[_0x164ecf(0xb6)][_0x164ecf(0xc4)])),_0x52b306['attributes']=_0x52b306[_0x164ecf(0xb3)][_0x164ecf(0x91)]?_0x52b306['attributes']:_0xe3736b[_0x164ecf(0xbc)];typeof _0x2f63d9[_0x164ecf(0xb6)][_0x164ecf(0xa3)]===_0x164ecf(0x9a)&&(_0x52b306[_0x164ecf(0x90)]=qs[_0x164ecf(0x90)](_0x2f63d9['query'][_0x164ecf(0x90)]),_0x52b306[_0x164ecf(0xbb)]=qs[_0x164ecf(0xbb)](_0x2f63d9[_0x164ecf(0xb6)][_0x164ecf(0xbb)]));_0x52b306[_0x164ecf(0xc1)]=qs[_0x164ecf(0x95)](_0x2f63d9[_0x164ecf(0xb6)][_0x164ecf(0x95)]),_0x52b306[_0x164ecf(0xc6)]=qs[_0x164ecf(0x8f)](_[_0x164ecf(0xb9)](_0x2f63d9[_0x164ecf(0xb6)],_0xe3736b[_0x164ecf(0x8f)]),_0x417199);_0x2f63d9['query'][_0x164ecf(0xb7)]&&(_0x52b306['where']=_[_0x164ecf(0xab)](_0x52b306[_0x164ecf(0xc6)],{[Op['or']]:_['map'](_0x52b306['attributes'],function(_0x59bcf7){const _0x2a6bab=_0x164ecf,_0x3e3e9a={};return _0x3e3e9a[_0x59bcf7]={[Op[_0x2a6bab(0x99)]]:'%'+_0x2f63d9['query']['filter']+'%'},_0x3e3e9a;})}));_0x52b306=_['merge']({},_0x52b306,_0x2f63d9['options']);const _0x350cbc={'where':_0x52b306[_0x164ecf(0xc6)]};return db[_0x164ecf(0xb0)][_0x164ecf(0x92)](_0x350cbc)[_0x164ecf(0xb4)](function(_0x4d93e4){const _0x45b348=_0x164ecf;return _0x5431f9['count']=_0x4d93e4,_0x2f63d9[_0x45b348(0xb6)][_0x45b348(0xb8)]&&(_0x52b306[_0x45b348(0xa2)]=[{'all':!![]}]),db['CmCompany'][_0x45b348(0xa8)](_0x52b306);})[_0x164ecf(0xb4)](function(_0x53bdea){const _0x570112=_0x164ecf;return _0x5431f9[_0x570112(0xba)]=_0x53bdea,_0x5431f9;})[_0x164ecf(0xb4)](respondWithFilteredResult(_0x26ede7,_0x52b306))[_0x164ecf(0x9f)](handleError(_0x26ede7,null));})[_0x3f82d5(0x9f)](handleError(_0x26ede7,null));},exports['show']=function(_0x4934f0,_0x59c8cf){const _0x42212a=a146_0x1206c4;let _0x87a772={'raw':![],'where':{'id':_0x4934f0['params']['id']}};const _0x4f17e1={};return _0x4f17e1['model']=_[_0x42212a(0xa7)](db[_0x42212a(0xb0)][_0x42212a(0xbd)]),_0x4f17e1['query']=_['keys'](_0x4934f0[_0x42212a(0xb6)]),_0x4f17e1[_0x42212a(0x8f)]=_['intersection'](_0x4f17e1[_0x42212a(0xbc)],_0x4f17e1[_0x42212a(0xb6)]),_0x87a772['attributes']=_[_0x42212a(0xa5)](_0x4f17e1['model'],qs[_0x42212a(0xc4)](_0x4934f0[_0x42212a(0xb6)][_0x42212a(0xc4)])),_0x87a772[_0x42212a(0xb3)]=_0x87a772['attributes']['length']?_0x87a772[_0x42212a(0xb3)]:_0x4f17e1[_0x42212a(0xbc)],_0x4934f0['query']['includeAll']&&(_0x87a772['include']=[{'all':!![]}]),_0x87a772=_['merge']({},_0x87a772,_0x4934f0[_0x42212a(0x9c)]),db[_0x42212a(0xb0)][_0x42212a(0x9d)](_0x87a772)[_0x42212a(0xb4)](handleEntityNotFound(_0x59c8cf,null))[_0x42212a(0xb4)](respondWithResult(_0x59c8cf,null))[_0x42212a(0x9f)](handleError(_0x59c8cf,null));},exports['create']=function(_0x587f72,_0x1d372d){const _0xc1030b=a146_0x1206c4;return db[_0xc1030b(0xb0)][_0xc1030b(0x8e)](_0x587f72['body'],{})[_0xc1030b(0xb4)](function(_0x48ad2f){const _0x3e2975=_0xc1030b,_0x11b90c=_0x587f72[_0x3e2975(0xac)][_0x3e2975(0xad)]({'plain':!![]});if(!_0x11b90c)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x11b90c[_0x3e2975(0xa6)]===_0x3e2975(0xac)){const _0x40a2d0=_0x48ad2f['get']({'plain':!![]}),_0x1ae9ee=_0x3e2975(0xc2);return db[_0x3e2975(0x8d)]['findOne']({'where':{'name':_0x1ae9ee,'userProfileId':_0x11b90c['userProfileId']},'raw':!![]})['then'](function(_0x49fb81){const _0x418d4a=_0x3e2975;return _0x49fb81&&_0x49fb81['autoAssociation']===0x0?db[_0x418d4a(0xa1)][_0x418d4a(0x8e)]({'name':_0x40a2d0[_0x418d4a(0xa0)],'resourceId':_0x40a2d0['id'],'type':_0x49fb81['name'],'sectionId':_0x49fb81['id']},{})[_0x418d4a(0xb4)](function(){return _0x48ad2f;}):_0x48ad2f;})[_0x3e2975(0x9f)](function(_0x493568){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x493568);throw _0x493568;});}return _0x48ad2f;})[_0xc1030b(0xb4)](respondWithResult(_0x1d372d,0xc9))[_0xc1030b(0x9f)](handleError(_0x1d372d,null));},exports[a146_0x1206c4(0x9e)]=function(_0x3b8395,_0x4f18ec){const _0x3e147e=a146_0x1206c4;return _0x3b8395[_0x3e147e(0x94)]['id']&&delete _0x3b8395[_0x3e147e(0x94)]['id'],db[_0x3e147e(0xb0)][_0x3e147e(0x9d)]({'where':{'id':_0x3b8395['params']['id']}})[_0x3e147e(0xb4)](handleEntityNotFound(_0x4f18ec,null))[_0x3e147e(0xb4)](saveUpdates(_0x3b8395[_0x3e147e(0x94)],null))[_0x3e147e(0xb4)](respondWithResult(_0x4f18ec,null))[_0x3e147e(0x9f)](handleError(_0x4f18ec,null));},exports['destroy']=function(_0x3fa7f4,_0x4dddb8){const _0x247203=a146_0x1206c4;return db[_0x247203(0xb0)]['findOne']({'where':{'id':_0x3fa7f4[_0x247203(0xa9)]['id']}})['then'](handleEntityNotFound(_0x4dddb8,null))['then'](removeEntity(_0x4dddb8,null))['catch'](handleError(_0x4dddb8,null));},exports[a146_0x1206c4(0x96)]=function(_0x1c7719,_0x1647ae){const _0x175b73=a146_0x1206c4;return db[_0x175b73(0xb0)][_0x175b73(0x96)]()['then'](respondWithResult(_0x1647ae,null))[_0x175b73(0x9f)](handleError(_0x1647ae,null));},exports[a146_0x1206c4(0x97)]=function(_0x416eaf,_0x4fce56){const _0x1b1751=a146_0x1206c4;return db['CmContact'][_0x1b1751(0x9d)]({'where':{'id':_0x416eaf[_0x1b1751(0xa9)]['id']}})[_0x1b1751(0xb4)](function(_0x5674b0){const _0x2c9224=_0x1b1751;if(_0x5674b0)return _0x5674b0[_0x2c9224(0x97)](_0x416eaf[_0x2c9224(0x94)]['ids'],{'through':_[_0x2c9224(0xbe)](_0x416eaf[_0x2c9224(0x94)],[_0x2c9224(0x9b),'id'])});})[_0x1b1751(0xb4)](respondWithResult(_0x4fce56,null))[_0x1b1751(0x9f)](handleError(_0x4fce56,null));},exports[a146_0x1206c4(0xae)]=function(_0x3c930f,_0x263489){const _0x11bd0c=a146_0x1206c4;let _0x569941={};const _0x19b53e={};let _0x64665d,_0x3b5795;return db[_0x11bd0c(0xb0)][_0x11bd0c(0x9d)]({'where':{'id':_0x3c930f[_0x11bd0c(0xa9)]['id']}})['then'](handleEntityNotFound(_0x263489,null))[_0x11bd0c(0xb4)](function(_0xa06619){const _0xbfa1fb=_0x11bd0c;if(_0xa06619)return _0x64665d=_0xa06619,_0x19b53e[_0xbfa1fb(0xbc)]=_[_0xbfa1fb(0xa7)](db[_0xbfa1fb(0xc8)][_0xbfa1fb(0xbd)]),_0x19b53e[_0xbfa1fb(0xb6)]=_[_0xbfa1fb(0xa7)](_0x3c930f[_0xbfa1fb(0xb6)]),_0x19b53e[_0xbfa1fb(0x8f)]=_[_0xbfa1fb(0xa5)](_0x19b53e['model'],_0x19b53e[_0xbfa1fb(0xb6)]),_0x569941[_0xbfa1fb(0xb3)]=_[_0xbfa1fb(0xa5)](_0x19b53e[_0xbfa1fb(0xbc)],qs[_0xbfa1fb(0xc4)](_0x3c930f[_0xbfa1fb(0xb6)][_0xbfa1fb(0xc4)])),_0x569941[_0xbfa1fb(0xb3)]=_0x569941['attributes']['length']?_0x569941[_0xbfa1fb(0xb3)]:_0x19b53e[_0xbfa1fb(0xbc)],_0x569941['order']=qs['sort'](_0x3c930f['query'][_0xbfa1fb(0x95)]),_0x569941[_0xbfa1fb(0xc6)]=qs[_0xbfa1fb(0x8f)](_[_0xbfa1fb(0xb9)](_0x3c930f[_0xbfa1fb(0xb6)],_0x19b53e[_0xbfa1fb(0x8f)])),_0x3c930f[_0xbfa1fb(0xb6)][_0xbfa1fb(0xb7)]&&(_0x569941[_0xbfa1fb(0xc6)]=_[_0xbfa1fb(0xab)](_0x569941[_0xbfa1fb(0xc6)],{[Op['or']]:_[_0xbfa1fb(0xaf)](_0x569941[_0xbfa1fb(0xb3)],function(_0x23d9b6){const _0x5f42d3=_0xbfa1fb,_0x4a99d2={};return _0x4a99d2[_0x23d9b6]={[Op['like']]:'%'+_0x3c930f['query'][_0x5f42d3(0xb7)]+'%'},_0x4a99d2;})})),_0x569941=_['merge']({},_0x569941,_0x3c930f['options']),_0x64665d[_0xbfa1fb(0xae)](_0x569941);})[_0x11bd0c(0xb4)](function(_0x1ceabb){const _0x43c77a=_0x11bd0c;if(_0x1ceabb)return _0x3b5795=_0x1ceabb[_0x43c77a(0x91)],typeof _0x3c930f[_0x43c77a(0xb6)]['nolimit']===_0x43c77a(0x9a)&&(_0x569941['limit']=qs[_0x43c77a(0x90)](_0x3c930f[_0x43c77a(0xb6)][_0x43c77a(0x90)]),_0x569941['offset']=qs[_0x43c77a(0xbb)](_0x3c930f[_0x43c77a(0xb6)][_0x43c77a(0xbb)])),_0x64665d['getContacts'](_0x569941);})[_0x11bd0c(0xb4)](function(_0x3194bd){if(_0x3194bd)return _0x3194bd?{'count':_0x3b5795,'rows':_0x3194bd}:null;})[_0x11bd0c(0xb4)](respondWithResult(_0x263489,null))[_0x11bd0c(0x9f)](handleError(_0x263489,null));}; \ No newline at end of file +const a146_0x1c1a=['ids','order','length','attributes','filters','update','create','set','Content-Range','nolimit','rawAttributes','include','intersection','map','filter','options','Companies','body','model','../../components/parsers/qs','findOne','limit','error','status','like','query','show','pick','includeAll','describe','fields','get','catch','autoAssociation','UserProfileResource','name','Unable\x20to\x20retrieve\x20the\x20current\x20user','keys','then','end','getContacts','merge','role','rows','addContacts','lodash','stack','CmCompany','CmContact','json','params','sendStatus','sort','index','destroy','../../config/logger','undefined','userProfileId','where','count','user','offset'];(function(_0x3f7b07,_0x454fc1){const _0x1c1aae=function(_0x685053){while(--_0x685053){_0x3f7b07['push'](_0x3f7b07['shift']());}};_0x1c1aae(++_0x454fc1);}(a146_0x1c1a,0x17e));const a146_0x6850=function(_0x3f7b07,_0x454fc1){_0x3f7b07=_0x3f7b07-0x13b;let _0x1c1aae=a146_0x1c1a[_0x3f7b07];return _0x1c1aae;};const a146_0xd42168=a146_0x6850;'use strict';const _=require(a146_0xd42168(0x15e)),qs=require(a146_0xd42168(0x144)),logger=require(a146_0xd42168(0x168))('api'),{db}=require('../../mysqldb'),{Op}=require('sequelize');function respondWithResult(_0x769556,_0x4925b8){return _0x4925b8=_0x4925b8||0xc8,function(_0x15fb8d){const _0xd0bca4=a146_0x6850;if(_0x15fb8d)return _0x769556[_0xd0bca4(0x148)](_0x4925b8)[_0xd0bca4(0x162)](_0x15fb8d);};}function respondWithFilteredResult(_0x3059f4,_0x4149e9){return function(_0x138969){const _0x499cdc=a146_0x6850;if(_0x138969){const _0x3ac7b5=_0x138969[_0x499cdc(0x16c)],_0x5221c7=_0x4149e9[_0x499cdc(0x16e)];let _0x19ae96=_0x4149e9[_0x499cdc(0x16e)]+_0x4149e9[_0x499cdc(0x146)],_0x4860b5;return _0x19ae96>=_0x3ac7b5?(_0x19ae96=_0x3ac7b5,_0x4860b5=0xc8):_0x4860b5=0xce,_0x3059f4[_0x499cdc(0x148)](_0x4860b5),_0x3059f4[_0x499cdc(0x176)](_0x499cdc(0x177),_0x5221c7+'-'+_0x19ae96+'/'+_0x3ac7b5)['json'](_0x138969);}return null;};}function saveUpdates(_0x4fb13c){return function(_0x1cd439){const _0x1ed491=a146_0x6850;if(_0x1cd439)return _0x1cd439[_0x1ed491(0x174)](_0x4fb13c)[_0x1ed491(0x157)](function(_0x58b207){return _0x58b207;});return null;};}function removeEntity(_0x2197ca){return function(_0x183e11){const _0x502d17=a146_0x6850;if(_0x183e11)return _0x183e11['destroy']()['then'](function(){const _0x362a09=a146_0x6850,_0x333f6=_0x183e11[_0x362a09(0x150)]({'plain':!![]}),_0x2974ca='Companies';return db[_0x362a09(0x153)][_0x362a09(0x167)]({'where':{'type':_0x2974ca,'resourceId':_0x333f6['id']}})[_0x362a09(0x157)](function(){return _0x183e11;});})[_0x502d17(0x157)](function(){const _0x505a96=_0x502d17;_0x2197ca[_0x505a96(0x148)](0xcc)[_0x505a96(0x158)]();});};}function handleEntityNotFound(_0x22f4ff){return function(_0x275f70){const _0x433cfc=a146_0x6850;return!_0x275f70&&_0x22f4ff[_0x433cfc(0x164)](0x194),_0x275f70;};}function handleError(_0x4814ac,_0x47903e){return _0x47903e=_0x47903e||0x1f4,function(_0x1fe3a9){const _0x2de0c0=a146_0x6850;logger[_0x2de0c0(0x147)](_0x1fe3a9[_0x2de0c0(0x15f)]),_0x1fe3a9[_0x2de0c0(0x154)]&&delete _0x1fe3a9[_0x2de0c0(0x154)],_0x4814ac[_0x2de0c0(0x148)](_0x47903e)['send'](_0x1fe3a9);};}exports[a146_0xd42168(0x166)]=function(_0x1e7b4e,_0x1601ab){const _0x4eb8da=a146_0xd42168;let _0x406610={};const _0x54b4ca={},_0x50da58={'count':0x0,'rows':[]};return db[_0x4eb8da(0x160)][_0x4eb8da(0x14e)]()['then'](function(_0x37c47b){const _0x148c54=_0x4eb8da;_0x54b4ca[_0x148c54(0x143)]=_[_0x148c54(0x156)](_0x37c47b),_0x54b4ca[_0x148c54(0x14a)]=_[_0x148c54(0x156)](_0x1e7b4e[_0x148c54(0x14a)]),_0x54b4ca[_0x148c54(0x173)]=_['intersection'](_0x54b4ca[_0x148c54(0x143)],_0x54b4ca['query']),_0x406610[_0x148c54(0x172)]=_['intersection'](_0x54b4ca[_0x148c54(0x143)],qs[_0x148c54(0x14f)](_0x1e7b4e[_0x148c54(0x14a)][_0x148c54(0x14f)])),_0x406610[_0x148c54(0x172)]=_0x406610['attributes'][_0x148c54(0x171)]?_0x406610['attributes']:_0x54b4ca[_0x148c54(0x143)];typeof _0x1e7b4e['query'][_0x148c54(0x178)]==='undefined'&&(_0x406610[_0x148c54(0x146)]=qs['limit'](_0x1e7b4e['query']['limit']),_0x406610[_0x148c54(0x16e)]=qs['offset'](_0x1e7b4e[_0x148c54(0x14a)][_0x148c54(0x16e)]));_0x406610[_0x148c54(0x170)]=qs['sort'](_0x1e7b4e[_0x148c54(0x14a)][_0x148c54(0x165)]),_0x406610['where']=qs[_0x148c54(0x173)](_[_0x148c54(0x14c)](_0x1e7b4e['query'],_0x54b4ca[_0x148c54(0x173)]),_0x37c47b);_0x1e7b4e[_0x148c54(0x14a)]['filter']&&(_0x406610[_0x148c54(0x16b)]=_[_0x148c54(0x15a)](_0x406610[_0x148c54(0x16b)],{[Op['or']]:_['map'](_0x406610[_0x148c54(0x172)],function(_0x355d4c){const _0x52f223=_0x148c54,_0x51fd5b={};return _0x51fd5b[_0x355d4c]={[Op[_0x52f223(0x149)]]:'%'+_0x1e7b4e[_0x52f223(0x14a)][_0x52f223(0x13f)]+'%'},_0x51fd5b;})}));_0x406610=_[_0x148c54(0x15a)]({},_0x406610,_0x1e7b4e['options']);const _0x14cb72={'where':_0x406610['where']};return db['CmCompany'][_0x148c54(0x16c)](_0x14cb72)[_0x148c54(0x157)](function(_0x23b291){const _0x2f6ffe=_0x148c54;return _0x50da58[_0x2f6ffe(0x16c)]=_0x23b291,_0x1e7b4e[_0x2f6ffe(0x14a)][_0x2f6ffe(0x14d)]&&(_0x406610['include']=[{'all':!![]}]),db[_0x2f6ffe(0x160)]['findAll'](_0x406610);})[_0x148c54(0x157)](function(_0x25eec2){const _0x248bb0=_0x148c54;return _0x50da58[_0x248bb0(0x15c)]=_0x25eec2,_0x50da58;})['then'](respondWithFilteredResult(_0x1601ab,_0x406610))[_0x148c54(0x151)](handleError(_0x1601ab,null));})['catch'](handleError(_0x1601ab,null));},exports[a146_0xd42168(0x14b)]=function(_0x370794,_0x308d79){const _0xb87e61=a146_0xd42168;let _0x163587={'raw':![],'where':{'id':_0x370794['params']['id']}};const _0x732b25={};return _0x732b25[_0xb87e61(0x143)]=_[_0xb87e61(0x156)](db[_0xb87e61(0x160)][_0xb87e61(0x13b)]),_0x732b25[_0xb87e61(0x14a)]=_[_0xb87e61(0x156)](_0x370794[_0xb87e61(0x14a)]),_0x732b25[_0xb87e61(0x173)]=_[_0xb87e61(0x13d)](_0x732b25[_0xb87e61(0x143)],_0x732b25[_0xb87e61(0x14a)]),_0x163587[_0xb87e61(0x172)]=_['intersection'](_0x732b25[_0xb87e61(0x143)],qs[_0xb87e61(0x14f)](_0x370794[_0xb87e61(0x14a)][_0xb87e61(0x14f)])),_0x163587[_0xb87e61(0x172)]=_0x163587['attributes'][_0xb87e61(0x171)]?_0x163587[_0xb87e61(0x172)]:_0x732b25[_0xb87e61(0x143)],_0x370794[_0xb87e61(0x14a)][_0xb87e61(0x14d)]&&(_0x163587[_0xb87e61(0x13c)]=[{'all':!![]}]),_0x163587=_[_0xb87e61(0x15a)]({},_0x163587,_0x370794[_0xb87e61(0x140)]),db[_0xb87e61(0x160)][_0xb87e61(0x145)](_0x163587)['then'](handleEntityNotFound(_0x308d79,null))[_0xb87e61(0x157)](respondWithResult(_0x308d79,null))[_0xb87e61(0x151)](handleError(_0x308d79,null));},exports[a146_0xd42168(0x175)]=function(_0x119346,_0x36879e){const _0x1096bd=a146_0xd42168;return db[_0x1096bd(0x160)][_0x1096bd(0x175)](_0x119346[_0x1096bd(0x142)],{})[_0x1096bd(0x157)](function(_0x12a6ba){const _0x58b6e1=_0x1096bd,_0x2fc193=_0x119346[_0x58b6e1(0x16d)][_0x58b6e1(0x150)]({'plain':!![]});if(!_0x2fc193)throw new Error(_0x58b6e1(0x155));if(_0x2fc193[_0x58b6e1(0x15b)]===_0x58b6e1(0x16d)){const _0x1689ee=_0x12a6ba[_0x58b6e1(0x150)]({'plain':!![]}),_0x4e0d35=_0x58b6e1(0x141);return db['UserProfileSection'][_0x58b6e1(0x145)]({'where':{'name':_0x4e0d35,'userProfileId':_0x2fc193[_0x58b6e1(0x16a)]},'raw':!![]})[_0x58b6e1(0x157)](function(_0x381a75){const _0x251a31=_0x58b6e1;return _0x381a75&&_0x381a75[_0x251a31(0x152)]===0x0?db[_0x251a31(0x153)]['create']({'name':_0x1689ee[_0x251a31(0x154)],'resourceId':_0x1689ee['id'],'type':_0x381a75[_0x251a31(0x154)],'sectionId':_0x381a75['id']},{})['then'](function(){return _0x12a6ba;}):_0x12a6ba;})[_0x58b6e1(0x151)](function(_0x1915f2){const _0x38bc6d=_0x58b6e1;logger[_0x38bc6d(0x147)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x1915f2);throw _0x1915f2;});}return _0x12a6ba;})[_0x1096bd(0x157)](respondWithResult(_0x36879e,0xc9))[_0x1096bd(0x151)](handleError(_0x36879e,null));},exports[a146_0xd42168(0x174)]=function(_0x54d066,_0xd5e8f0){const _0x9404a2=a146_0xd42168;return _0x54d066[_0x9404a2(0x142)]['id']&&delete _0x54d066[_0x9404a2(0x142)]['id'],db[_0x9404a2(0x160)][_0x9404a2(0x145)]({'where':{'id':_0x54d066[_0x9404a2(0x163)]['id']}})[_0x9404a2(0x157)](handleEntityNotFound(_0xd5e8f0,null))['then'](saveUpdates(_0x54d066[_0x9404a2(0x142)],null))['then'](respondWithResult(_0xd5e8f0,null))[_0x9404a2(0x151)](handleError(_0xd5e8f0,null));},exports[a146_0xd42168(0x167)]=function(_0xd8bb63,_0x49d99a){const _0x4b8e46=a146_0xd42168;return db['CmCompany']['findOne']({'where':{'id':_0xd8bb63[_0x4b8e46(0x163)]['id']}})['then'](handleEntityNotFound(_0x49d99a,null))['then'](removeEntity(_0x49d99a,null))[_0x4b8e46(0x151)](handleError(_0x49d99a,null));},exports['describe']=function(_0x5a3ea8,_0x382b71){const _0x17d57c=a146_0xd42168;return db['CmCompany'][_0x17d57c(0x14e)]()['then'](respondWithResult(_0x382b71,null))[_0x17d57c(0x151)](handleError(_0x382b71,null));},exports['addContacts']=function(_0xd82d09,_0x6292e0){const _0x931d0=a146_0xd42168;return db[_0x931d0(0x161)][_0x931d0(0x145)]({'where':{'id':_0xd82d09[_0x931d0(0x163)]['id']}})[_0x931d0(0x157)](function(_0x270f3b){const _0x17c6e3=_0x931d0;if(_0x270f3b)return _0x270f3b[_0x17c6e3(0x15d)](_0xd82d09[_0x17c6e3(0x142)][_0x17c6e3(0x16f)],{'through':_['omit'](_0xd82d09[_0x17c6e3(0x142)],[_0x17c6e3(0x16f),'id'])});})[_0x931d0(0x157)](respondWithResult(_0x6292e0,null))[_0x931d0(0x151)](handleError(_0x6292e0,null));},exports[a146_0xd42168(0x159)]=function(_0x546297,_0x2e51ac){const _0x49dd93=a146_0xd42168;let _0x3b5928={};const _0x3f2d3d={};let _0x33bad7,_0x1a5a8c;return db[_0x49dd93(0x160)]['findOne']({'where':{'id':_0x546297[_0x49dd93(0x163)]['id']}})['then'](handleEntityNotFound(_0x2e51ac,null))[_0x49dd93(0x157)](function(_0x27be68){const _0x3a4996=_0x49dd93;if(_0x27be68)return _0x33bad7=_0x27be68,_0x3f2d3d[_0x3a4996(0x143)]=_[_0x3a4996(0x156)](db[_0x3a4996(0x161)][_0x3a4996(0x13b)]),_0x3f2d3d[_0x3a4996(0x14a)]=_[_0x3a4996(0x156)](_0x546297['query']),_0x3f2d3d[_0x3a4996(0x173)]=_[_0x3a4996(0x13d)](_0x3f2d3d[_0x3a4996(0x143)],_0x3f2d3d[_0x3a4996(0x14a)]),_0x3b5928[_0x3a4996(0x172)]=_[_0x3a4996(0x13d)](_0x3f2d3d['model'],qs[_0x3a4996(0x14f)](_0x546297[_0x3a4996(0x14a)][_0x3a4996(0x14f)])),_0x3b5928[_0x3a4996(0x172)]=_0x3b5928['attributes']['length']?_0x3b5928[_0x3a4996(0x172)]:_0x3f2d3d[_0x3a4996(0x143)],_0x3b5928[_0x3a4996(0x170)]=qs[_0x3a4996(0x165)](_0x546297['query'][_0x3a4996(0x165)]),_0x3b5928[_0x3a4996(0x16b)]=qs[_0x3a4996(0x173)](_[_0x3a4996(0x14c)](_0x546297[_0x3a4996(0x14a)],_0x3f2d3d[_0x3a4996(0x173)])),_0x546297[_0x3a4996(0x14a)][_0x3a4996(0x13f)]&&(_0x3b5928[_0x3a4996(0x16b)]=_[_0x3a4996(0x15a)](_0x3b5928['where'],{[Op['or']]:_[_0x3a4996(0x13e)](_0x3b5928['attributes'],function(_0x19d100){const _0x27be0d=_0x3a4996,_0x3dd316={};return _0x3dd316[_0x19d100]={[Op[_0x27be0d(0x149)]]:'%'+_0x546297[_0x27be0d(0x14a)][_0x27be0d(0x13f)]+'%'},_0x3dd316;})})),_0x3b5928=_['merge']({},_0x3b5928,_0x546297[_0x3a4996(0x140)]),_0x33bad7[_0x3a4996(0x159)](_0x3b5928);})['then'](function(_0x307ae1){const _0x2c3d7d=_0x49dd93;if(_0x307ae1)return _0x1a5a8c=_0x307ae1[_0x2c3d7d(0x171)],typeof _0x546297[_0x2c3d7d(0x14a)][_0x2c3d7d(0x178)]===_0x2c3d7d(0x169)&&(_0x3b5928['limit']=qs[_0x2c3d7d(0x146)](_0x546297[_0x2c3d7d(0x14a)][_0x2c3d7d(0x146)]),_0x3b5928[_0x2c3d7d(0x16e)]=qs[_0x2c3d7d(0x16e)](_0x546297['query']['offset'])),_0x33bad7[_0x2c3d7d(0x159)](_0x3b5928);})['then'](function(_0x407fc4){if(_0x407fc4)return _0x407fc4?{'count':_0x1a5a8c,'rows':_0x407fc4}:null;})['then'](respondWithResult(_0x2e51ac,null))[_0x49dd93(0x151)](handleError(_0x2e51ac,null));}; \ No newline at end of file diff --git a/server/api/cmCompany/cmCompany.model.js b/server/api/cmCompany/cmCompany.model.js index 08a06e1..40a402d 100644 --- a/server/api/cmCompany/cmCompany.model.js +++ b/server/api/cmCompany/cmCompany.model.js @@ -1 +1 @@ -const a147_0x1067=['./cmCompany.options','exports','./cmCompany.attributes','init','function','sequelize','CmCompany'];(function(_0x46cd9a,_0x20c6e7){const _0x1067b4=function(_0x5cafc){while(--_0x5cafc){_0x46cd9a['push'](_0x46cd9a['shift']());}};_0x1067b4(++_0x20c6e7);}(a147_0x1067,0x124));const a147_0x5caf=function(_0x46cd9a,_0x20c6e7){_0x46cd9a=_0x46cd9a-0x186;let _0x1067b4=a147_0x1067[_0x46cd9a];return _0x1067b4;};const a147_0x5c933d=a147_0x5caf;'use strict';const {Model}=require(a147_0x5c933d(0x186)),{attributes}=require(a147_0x5c933d(0x18a)),{options}=require(a147_0x5c933d(0x188));class CmCompany extends Model{}function init(_0x57b0f9,_0x5472c3){const _0x37a00c=a147_0x5c933d,_0x11057d=options(_0x57b0f9),_0x14402b=typeof _0x5472c3===_0x37a00c(0x18c)?_0x5472c3(_0x11057d):_0x11057d;return CmCompany[_0x37a00c(0x18b)](attributes,_0x14402b),CmCompany;}module[a147_0x5c933d(0x189)][a147_0x5c933d(0x187)]=CmCompany,module['exports']['init']=init; \ No newline at end of file +const a147_0x2bf0=['./cmCompany.options','exports','function','./cmCompany.attributes','sequelize'];(function(_0x2a45fb,_0x3e085a){const _0x2bf09c=function(_0x24015b){while(--_0x24015b){_0x2a45fb['push'](_0x2a45fb['shift']());}};_0x2bf09c(++_0x3e085a);}(a147_0x2bf0,0x82));const a147_0x2401=function(_0x2a45fb,_0x3e085a){_0x2a45fb=_0x2a45fb-0x194;let _0x2bf09c=a147_0x2bf0[_0x2a45fb];return _0x2bf09c;};const a147_0x26e891=a147_0x2401;'use strict';const {Model}=require(a147_0x26e891(0x198)),{attributes}=require(a147_0x26e891(0x197)),{options}=require(a147_0x26e891(0x194));class CmCompany extends Model{}function init(_0x308fd5,_0x22f233){const _0x8f0c85=a147_0x26e891,_0x156f46=options(_0x308fd5),_0x1c2556=typeof _0x22f233===_0x8f0c85(0x196)?_0x22f233(_0x156f46):_0x156f46;return CmCompany['init'](attributes,_0x1c2556),CmCompany;}module[a147_0x26e891(0x195)]['CmCompany']=CmCompany,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/cmCompany/cmCompany.options.js b/server/api/cmCompany/cmCompany.options.js index 7dd2578..4beeba4 100644 --- a/server/api/cmCompany/cmCompany.options.js +++ b/server/api/cmCompany/cmCompany.options.js @@ -1 +1 @@ -var a148_0x29f2=['options','exports'];(function(_0x57df4,_0x36dcb3){var _0x29f205=function(_0x2e081b){while(--_0x2e081b){_0x57df4['push'](_0x57df4['shift']());}};_0x29f205(++_0x36dcb3);}(a148_0x29f2,0x121));var a148_0x2e08=function(_0x57df4,_0x36dcb3){_0x57df4=_0x57df4-0xc2;var _0x29f205=a148_0x29f2[_0x57df4];return _0x29f205;};var a148_0x3450ca=a148_0x2e08;function options(_0x81774f){return{'sequelize':_0x81774f,'tableName':'cm_companies','paranoid':![],'indexes':[],'timestamps':!![]};}module[a148_0x3450ca(0xc2)][a148_0x3450ca(0xc3)]=options; \ No newline at end of file +var a148_0x5d7c=['exports','options','cm_companies'];(function(_0x536697,_0x2a313e){var _0x5d7c80=function(_0x19044f){while(--_0x19044f){_0x536697['push'](_0x536697['shift']());}};_0x5d7c80(++_0x2a313e);}(a148_0x5d7c,0x195));var a148_0x1904=function(_0x536697,_0x2a313e){_0x536697=_0x536697-0x90;var _0x5d7c80=a148_0x5d7c[_0x536697];return _0x5d7c80;};var a148_0x22bba8=a148_0x1904;function options(_0x5350fb){var _0xd9a49f=a148_0x1904;return{'sequelize':_0x5350fb,'tableName':_0xd9a49f(0x92),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a148_0x22bba8(0x90)][a148_0x22bba8(0x91)]=options; \ No newline at end of file diff --git a/server/api/cmCompany/index.js b/server/api/cmCompany/index.js index 6350357..77e60f3 100644 --- a/server/api/cmCompany/index.js +++ b/server/api/cmCompany/index.js @@ -1 +1 @@ -const a149_0x59a9=['get','update','/describe','exports','addContacts','isAuthenticated','./cmCompany.controller','show','put','/:id','/:id/contacts','post','index','getContacts'];(function(_0xf87ac4,_0xd7c756){const _0x59a997=function(_0x19cf9f){while(--_0x19cf9f){_0xf87ac4['push'](_0xf87ac4['shift']());}};_0x59a997(++_0xd7c756);}(a149_0x59a9,0x19c));const a149_0x19cf=function(_0xf87ac4,_0xd7c756){_0xf87ac4=_0xf87ac4-0x6e;let _0x59a997=a149_0x59a9[_0xf87ac4];return _0x59a997;};const a149_0x46e4cb=a149_0x19cf;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a149_0x46e4cb(0x6e));router[a149_0x46e4cb(0x76)]('/',auth[a149_0x46e4cb(0x7b)](),controller[a149_0x46e4cb(0x74)]),router[a149_0x46e4cb(0x76)](a149_0x46e4cb(0x78),auth[a149_0x46e4cb(0x7b)](),controller['describe']),router[a149_0x46e4cb(0x76)](a149_0x46e4cb(0x71),auth['isAuthenticated'](),controller[a149_0x46e4cb(0x6f)]),router[a149_0x46e4cb(0x76)](a149_0x46e4cb(0x72),auth[a149_0x46e4cb(0x7b)](),controller[a149_0x46e4cb(0x75)]),router[a149_0x46e4cb(0x73)]('/',auth['isAuthenticated'](),controller['create']),router[a149_0x46e4cb(0x73)]('/:id/contacts',auth[a149_0x46e4cb(0x7b)](),controller[a149_0x46e4cb(0x7a)]),router[a149_0x46e4cb(0x70)]('/:id',auth['isAuthenticated'](),controller[a149_0x46e4cb(0x77)]),router['delete'](a149_0x46e4cb(0x71),auth[a149_0x46e4cb(0x7b)](),controller['destroy']),module[a149_0x46e4cb(0x79)]=router; \ No newline at end of file +const a149_0x210f=['put','update','post','Router','../../components/auth/service','index','create','getContacts','exports','delete','/:id/contacts','/:id','addContacts','get','isAuthenticated','destroy','describe'];(function(_0x39ea44,_0x53cb74){const _0x210f20=function(_0x3e553b){while(--_0x3e553b){_0x39ea44['push'](_0x39ea44['shift']());}};_0x210f20(++_0x53cb74);}(a149_0x210f,0x1f3));const a149_0x3e55=function(_0x39ea44,_0x53cb74){_0x39ea44=_0x39ea44-0x134;let _0x210f20=a149_0x210f[_0x39ea44];return _0x210f20;};const a149_0x13c00b=a149_0x3e55;'use strict';const express=require('express'),router=express[a149_0x13c00b(0x142)](),auth=require(a149_0x13c00b(0x143)),controller=require('./cmCompany.controller');router[a149_0x13c00b(0x13b)]('/',auth[a149_0x13c00b(0x13c)](),controller[a149_0x13c00b(0x144)]),router[a149_0x13c00b(0x13b)]('/describe',auth['isAuthenticated'](),controller[a149_0x13c00b(0x13e)]),router[a149_0x13c00b(0x13b)](a149_0x13c00b(0x139),auth['isAuthenticated'](),controller['show']),router['get']('/:id/contacts',auth[a149_0x13c00b(0x13c)](),controller[a149_0x13c00b(0x135)]),router[a149_0x13c00b(0x141)]('/',auth[a149_0x13c00b(0x13c)](),controller[a149_0x13c00b(0x134)]),router[a149_0x13c00b(0x141)](a149_0x13c00b(0x138),auth[a149_0x13c00b(0x13c)](),controller[a149_0x13c00b(0x13a)]),router[a149_0x13c00b(0x13f)](a149_0x13c00b(0x139),auth[a149_0x13c00b(0x13c)](),controller[a149_0x13c00b(0x140)]),router[a149_0x13c00b(0x137)]('/:id',auth[a149_0x13c00b(0x13c)](),controller[a149_0x13c00b(0x13d)]),module[a149_0x13c00b(0x136)]=router; \ No newline at end of file diff --git a/server/api/cmContact/cmContact.attributes.js b/server/api/cmContact/cmContact.attributes.js index c20e4ea..3c9c600 100644 --- a/server/api/cmContact/cmContact.attributes.js +++ b/server/api/cmContact/cmContact.attributes.js @@ -1 +1 @@ -const a150_0x16ee=['NOW','STRING','UNSIGNED','attributes','exports','DATE','INTEGER'];(function(_0x50f7e8,_0x4bd1c8){const _0x16eeaa=function(_0x49bcff){while(--_0x49bcff){_0x50f7e8['push'](_0x50f7e8['shift']());}};_0x16eeaa(++_0x4bd1c8);}(a150_0x16ee,0xca));const a150_0x49bc=function(_0x50f7e8,_0x4bd1c8){_0x50f7e8=_0x50f7e8-0xbd;let _0x16eeaa=a150_0x16ee[_0x50f7e8];return _0x16eeaa;};const a150_0x250e35=a150_0x49bc;'use strict';const {DataTypes}=require('sequelize'),attributes={'firstName':{'type':DataTypes[a150_0x250e35(0xbf)],'allowNull':![]},'lastName':{'type':DataTypes[a150_0x250e35(0xbf)]},'street':{'type':DataTypes[a150_0x250e35(0xbf)]},'postalCode':{'type':DataTypes[a150_0x250e35(0xbf)]},'city':{'type':DataTypes[a150_0x250e35(0xbf)]},'country':{'type':DataTypes[a150_0x250e35(0xbf)]},'dateOfBirth':{'type':DataTypes[a150_0x250e35(0xbf)]},'description':{'type':DataTypes['TEXT']},'phone':{'type':DataTypes[a150_0x250e35(0xbf)]},'mobile':{'type':DataTypes['STRING']},'fax':{'type':DataTypes[a150_0x250e35(0xbf)]},'email':{'type':DataTypes[a150_0x250e35(0xbf)]},'url':{'type':DataTypes[a150_0x250e35(0xbf)]},'facebook':{'type':DataTypes[a150_0x250e35(0xbf)]},'fb_data':{'type':DataTypes[a150_0x250e35(0xbf)]},'twitter':{'type':DataTypes[a150_0x250e35(0xbf)]},'skype':{'type':DataTypes[a150_0x250e35(0xbf)]},'teams':{'type':DataTypes['STRING']},'viber':{'type':DataTypes['STRING']},'line':{'type':DataTypes[a150_0x250e35(0xbf)]},'wechat':{'type':DataTypes[a150_0x250e35(0xbf)]},'telegram':{'type':DataTypes[a150_0x250e35(0xbf)]},'UserId':{'type':DataTypes[a150_0x250e35(0xbd)]},'priority':{'type':DataTypes[a150_0x250e35(0xbd)]({'length':0x2})[a150_0x250e35(0xc0)],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'scheduledat':{'type':DataTypes[a150_0x250e35(0xc3)],'defaultValue':DataTypes[a150_0x250e35(0xbe)]}};module[a150_0x250e35(0xc2)][a150_0x250e35(0xc1)]=attributes; \ No newline at end of file +const a150_0x1418=['DATE','STRING','TEXT','INTEGER','sequelize','NOW','UNSIGNED'];(function(_0x1fb4b4,_0x5ef352){const _0x1418c3=function(_0x4f732c){while(--_0x4f732c){_0x1fb4b4['push'](_0x1fb4b4['shift']());}};_0x1418c3(++_0x5ef352);}(a150_0x1418,0x8f));const a150_0x4f73=function(_0x1fb4b4,_0x5ef352){_0x1fb4b4=_0x1fb4b4-0xbd;let _0x1418c3=a150_0x1418[_0x1fb4b4];return _0x1418c3;};const a150_0x4b4c0f=a150_0x4f73;'use strict';const {DataTypes}=require(a150_0x4b4c0f(0xbe)),attributes={'firstName':{'type':DataTypes[a150_0x4b4c0f(0xc2)],'allowNull':![]},'lastName':{'type':DataTypes[a150_0x4b4c0f(0xc2)]},'street':{'type':DataTypes['STRING']},'postalCode':{'type':DataTypes[a150_0x4b4c0f(0xc2)]},'city':{'type':DataTypes[a150_0x4b4c0f(0xc2)]},'country':{'type':DataTypes[a150_0x4b4c0f(0xc2)]},'dateOfBirth':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a150_0x4b4c0f(0xc3)]},'phone':{'type':DataTypes['STRING']},'mobile':{'type':DataTypes['STRING']},'fax':{'type':DataTypes[a150_0x4b4c0f(0xc2)]},'email':{'type':DataTypes[a150_0x4b4c0f(0xc2)]},'url':{'type':DataTypes[a150_0x4b4c0f(0xc2)]},'facebook':{'type':DataTypes[a150_0x4b4c0f(0xc2)]},'fb_data':{'type':DataTypes['STRING']},'twitter':{'type':DataTypes[a150_0x4b4c0f(0xc2)]},'skype':{'type':DataTypes[a150_0x4b4c0f(0xc2)]},'teams':{'type':DataTypes[a150_0x4b4c0f(0xc2)]},'viber':{'type':DataTypes[a150_0x4b4c0f(0xc2)]},'line':{'type':DataTypes[a150_0x4b4c0f(0xc2)]},'wechat':{'type':DataTypes[a150_0x4b4c0f(0xc2)]},'telegram':{'type':DataTypes[a150_0x4b4c0f(0xc2)]},'UserId':{'type':DataTypes[a150_0x4b4c0f(0xbd)]},'priority':{'type':DataTypes['INTEGER']({'length':0x2})[a150_0x4b4c0f(0xc0)],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'scheduledat':{'type':DataTypes[a150_0x4b4c0f(0xc1)],'defaultValue':DataTypes[a150_0x4b4c0f(0xbf)]}};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 a5fe8b2..1cfff83 100644 --- a/server/api/cmContact/cmContact.controller.js +++ b/server/api/cmContact/cmContact.controller.js @@ -1 +1 @@ -const a151_0x44b5=['map','phone','color','VoiceCallReport','t.id\x20=\x20ct.TagId','keyBy','Failed\x20to\x20start\x20','stdout','file','type','c.phone\x20LIKE\x20?','forEach','findAll','DATE','pick','index','create','[CmContact][merge][destroy][CmHopperBlack],\x20%s','log','custom','trimStart','Tags','replace','where','displayName','meta','path','select','firstName','attributes','FaxInteraction','root','body','includeAll','isEmpty','set','c.firstName\x20LIKE\x20?','model','length','Contact','No\x20firstName\x20column\x20specified','some','tag','ids','socket_timestamp','isArray','join','parseSearch','c.firstName','ReportAgentPreview','left_join','upload','error\x20child\x20process','split','data','SmsMessage','child\x20stderr:\x0a','text','ContactId','count','binding','search','stderr','then','JscriptySessionReport','get','message','api','value','import','find','pipe','SmsInteraction','offset','info','../../components/import/cm/csv2.js','getJscriptySessions','and','push','intersection','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','child_process','c.lastName','duplicates','query','destroy','setFields','OpenchannelMessage','c.ListId','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20and\x20agents\x20=\x20','findOrCreate','params','datetime','c.email\x20LIKE\x20?','SmsQueueReport','tools_tags','CmContact','exit','filter','catch','child\x20stdout:\x0a','ChatInteraction','CmCustomField','start','CmHopperBlack','lodash','rows','describe','name','Tag','merge','isNil','getFullTextValue','c.email','bulkCreate','SELECT','CmHopper','values','../../rediscache','pickBy','cf_','MailMessage','c.fax','pid','concat','sequelize','[CmContact][merge]\x20to\x20%s\x20from\x20%s','t.id\x20IN\x20?','format','filters','CmHopperHistory','Content-Range','update','startsWith','stringify','c.mobile\x20LIKE\x20?','include','\x20on\x20file\x20','fieldType','cm_user_has_contacts','stdin','[CmContact][merge][destroy][CmHopper],\x20%s','DESC','uc.UserId\x20=\x20?','omit','CmHopperFinal','from','cf_%d','\x20process:\x20error\x20','squel','keys','Missing\x20stdin\x20and\x20stdout\x20on\x20child\x20process','user','register','MailQueueReport','limit','status','files/tmp','show','fields','GROUP_CONCAT(DISTINCT\x20t.id)','resolve','c.phone','c.ListId\x20IN\x20?','getHopperHistories','c.id','parse','MailInteraction','ChatQueueReport','ListId','TagIds','c.fax\x20LIKE\x20?','rawAttributes','all','FaxMessage','expr','cm_contacts','getTags','conditions','User','tags','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','ct.CmContactId\x20=\x20c.id','papaparse','c.deletedAt\x20IS\x20NULL','order','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20with\x20parameters\x20=\x20','getHoppers','uc.CmContactId\x20=\x20c.id','createReadStream','isNumeric','options','undefined','../../config/environment','nolimit','table','toString','error','findOne','../../components/parsers/advancedSearch','sort','columnName','field','like','No\x20phone\x20column\x20specified','stack','json','end'];(function(_0x30e020,_0x2b5948){const _0x44b5d1=function(_0x1ad14a){while(--_0x1ad14a){_0x30e020['push'](_0x30e020['shift']());}};_0x44b5d1(++_0x2b5948);}(a151_0x44b5,0x136));const a151_0x1ad1=function(_0x30e020,_0x2b5948){_0x30e020=_0x30e020-0x1cc;let _0x44b5d1=a151_0x44b5[_0x30e020];return _0x44b5d1;};const a151_0x115ae4=a151_0x1ad1;'use strict';const util=require('util'),path=require(a151_0x115ae4(0x250)),fs=require('fs'),_=require(a151_0x115ae4(0x1cf)),squel=require(a151_0x115ae4(0x1fb)),Papa=require(a151_0x115ae4(0x21d)),{getSocket}=require(a151_0x115ae4(0x1dc)),socket=getSocket(),qs=require('../../components/parsers/qs'),as=require(a151_0x115ae4(0x22d)),logger=require('../../config/logger')(a151_0x115ae4(0x279)),{db}=require('../../mysqldb'),{Op,QueryTypes}=require(a151_0x115ae4(0x1e3)),{fork}=require(a151_0x115ae4(0x287)),config=require(a151_0x115ae4(0x227));require('./cmContact.socket')[a151_0x115ae4(0x1ff)](socket);const CSV2_SCRIPT=path[a151_0x115ae4(0x264)](__dirname,a151_0x115ae4(0x281));function respondWithResult(_0x3b9f6b,_0x19d4cb){return _0x19d4cb=_0x19d4cb||0xc8,function(_0x3c130d){const _0x33491d=a151_0x1ad1;if(_0x3c130d)return _0x3b9f6b[_0x33491d(0x202)](_0x19d4cb)[_0x33491d(0x234)](_0x3c130d);};}function respondWithFilteredResult(_0x11b7fd,_0x1a8fad){return function(_0x53a175){const _0x20c1e0=a151_0x1ad1;if(_0x53a175){const _0x55ef87=_0x53a175[_0x20c1e0(0x271)],_0x547621=_0x1a8fad[_0x20c1e0(0x27f)];let _0x1bab13=_0x1a8fad[_0x20c1e0(0x27f)]+_0x1a8fad[_0x20c1e0(0x201)],_0x5a1fec;return _0x1bab13>=_0x55ef87?(_0x1bab13=_0x55ef87,_0x5a1fec=0xc8):_0x5a1fec=0xce,_0x11b7fd[_0x20c1e0(0x202)](_0x5a1fec),_0x11b7fd[_0x20c1e0(0x259)](_0x20c1e0(0x1e9),_0x547621+'-'+_0x1bab13+'/'+_0x55ef87)['json'](_0x53a175);}return null;};}function saveUpdates(_0x2f4d29){return function(_0x439bf2){const _0xd97b13=a151_0x1ad1;if(_0x439bf2)return _0x439bf2['update'](_0x2f4d29)[_0xd97b13(0x275)](function(_0x1de7a3){return _0x1de7a3;});return null;};}function removeEntity(_0x5d8ad6){return function(_0x39f8f3){const _0x1e6187=a151_0x1ad1;if(_0x39f8f3)return _0x39f8f3[_0x1e6187(0x28b)]()['then'](function(){const _0x3513eb=_0x1e6187;_0x5d8ad6[_0x3513eb(0x202)](0xcc)[_0x3513eb(0x235)]();});};}function handleEntityNotFound(_0x1f136f){return function(_0x22239b){return!_0x22239b&&_0x1f136f['sendStatus'](0x194),_0x22239b;};}function handleError(_0x3e966b,_0x111cc3){return _0x111cc3=_0x111cc3||0x1f4,function(_0x321c7b){const _0x5aad96=a151_0x1ad1;logger[_0x5aad96(0x22b)](_0x321c7b[_0x5aad96(0x233)]),_0x321c7b['name']&&delete _0x321c7b[_0x5aad96(0x1d2)],_0x3e966b['status'](_0x111cc3)['send'](_0x321c7b);};}exports[a151_0x115ae4(0x245)]=function(_0x1940cd,_0x5e4461){const _0x194659=a151_0x115ae4,_0x4b7ab9={},_0x578655={},_0x22aa11={'count':0x0,'rows':[]};return db[_0x194659(0x296)][_0x194659(0x1d1)]()[_0x194659(0x275)](function(_0x3eb4ec){const _0x4dbc3d=_0x194659,_0x1ced7f=[];for(let _0x40b0f9=0x0;_0x40b0f90x1)_0x262252['or'](_0x23284a(0x286),qs[_0x23284a(0x1d6)](_0x7a7cfd),null);else{if(qs[_0x23284a(0x224)](_0x7a7cfd))_0x262252['or']('c.id\x20LIKE\x20?',_0x7a7cfd+'%'),_0x262252['or'](_0x23284a(0x240),_0x7a7cfd+'%'),_0x262252['or'](_0x23284a(0x1ed),_0x7a7cfd+'%'),_0x262252['or'](_0x23284a(0x211),_0x7a7cfd+'%');else qs['isEmail'](_0x7a7cfd)?_0x262252['or'](_0x23284a(0x293),_0x7a7cfd+'%'):(_0x262252['or'](_0x23284a(0x25a),'%'+_0x7a7cfd+'%'),_0x262252['or']('c.lastName\x20LIKE\x20?','%'+_0x7a7cfd+'%'),_0x262252['or'](_0x23284a(0x293),'%'+_0x7a7cfd+'%'));}}}_0x36388f[_0x23284a(0x24d)](_0x262252),_0x36388f['group'](_0x23284a(0x20b));let _0x3d656c={'type':QueryTypes[_0x23284a(0x1d9)],'raw':!![]};const _0x3f313c=_0x36388f['clone']()[_0x23284a(0x230)]('c.id');_0x4b7ab9[_0x23284a(0x21f)]&&_0x4b7ab9[_0x23284a(0x21f)][_0x23284a(0x241)](function(_0x5185b9){const _0x7a6ce7=_0x23284a;_0x36388f['order']('c.'+_0x5185b9[0x0],_0x5185b9[0x1]===_0x7a6ce7(0x1f4)?![]:!![]);}),!_['isEmpty'](_0x55a18e)&&(_0x36388f['having'](_0x43842f),_0x3f313c['where'](_0x23284a(0x1e5),_0x55a18e)),Promise[_0x23284a(0x207)]()['then'](function(){const _0x667139=_0x23284a;if(_0x573d92&&!_[_0x667139(0x25f)](_0x573d92[_0x667139(0x218)],['field',_0x667139(0x219)]))return _0x1940cd[_0x667139(0x1fe)]['getLists']({'attributes':['id'],'raw':!![]})[_0x667139(0x275)](function(_0x13a001){const _0x4921b1=_0x667139;_['isEmpty'](_0x13a001)?(_0x3f313c[_0x4921b1(0x24d)]('c.ListId\x20IS\x20NULL'),_0x36388f[_0x4921b1(0x24d)]('c.ListId\x20IS\x20NULL')):(_0x3f313c[_0x4921b1(0x24d)]('c.ListId\x20IN\x20?',_[_0x4921b1(0x236)](_0x13a001,'id')),_0x36388f['where'](_0x4921b1(0x209),_[_0x4921b1(0x236)](_0x13a001,'id')));});else return;})['then'](function(){const _0x55e740=_0x23284a;db['sequelize']['query'](_0x3f313c['toString'](),_0x3d656c)[_0x55e740(0x275)](function(_0x1a9f7c){const _0x2f2d03=_0x55e740;_0x22aa11['count']=_0x1a9f7c['length'];if(_0x22aa11['count']===0x0)return[];return db[_0x2f2d03(0x1e3)]['query'](_0x450f0c[_0x2f2d03(0x22a)](),_0x3d656c);})[_0x55e740(0x275)](function(_0x1ec74b){const _0x5ebefb=_0x55e740;_0x524eeb=_[_0x5ebefb(0x23b)](_0x1ec74b,'id'),_0x3d656c=_[_0x5ebefb(0x1d4)](_0x3d656c,{'model':db['CmContact'],'mapToModel':!![],'raw':!![],'nest':!![]});_0x1940cd[_0x5ebefb(0x28a)][_0x5ebefb(0x205)]?_0x4b7ab9[_0x5ebefb(0x253)][_0x5ebefb(0x241)](function(_0x202393){const _0x19066a=_0x5ebefb;_0x36388f[_0x19066a(0x230)]('c.'+_0x202393);}):(_0x36388f['field'](_0x5ebefb(0x20b)),_0x36388f[_0x5ebefb(0x230)](_0x5ebefb(0x266)),_0x36388f[_0x5ebefb(0x230)](_0x5ebefb(0x288)),_0x36388f['field'](_0x5ebefb(0x208)),_0x36388f[_0x5ebefb(0x230)]('c.mobile'),_0x36388f[_0x5ebefb(0x230)](_0x5ebefb(0x1e0)),_0x36388f['field'](_0x5ebefb(0x1d7)),_0x36388f['field'](_0x5ebefb(0x28e)),_0x36388f[_0x5ebefb(0x230)]('c.deletedAt'),_0x36388f[_0x5ebefb(0x230)](_0x5ebefb(0x206),_0x5ebefb(0x210)));if(_0x4b7ab9[_0x5ebefb(0x201)])_0x36388f['limit'](_0x4b7ab9['limit']);if(_0x4b7ab9[_0x5ebefb(0x27f)])_0x36388f[_0x5ebefb(0x27f)](_0x4b7ab9[_0x5ebefb(0x27f)]);return db[_0x5ebefb(0x1e3)]['query'](_0x36388f['toString'](),_0x3d656c);})['then'](function(_0x2dfc28){const _0x31f2f6=_0x55e740;return _0x2dfc28[_0x31f2f6(0x241)](function(_0x354c9d){const _0x207f4a=_0x31f2f6;_0x354c9d[_0x207f4a(0x210)]&&(_0x354c9d[_0x207f4a(0x24b)]=[],_0x354c9d[_0x207f4a(0x210)][_0x207f4a(0x26b)](',')[_0x207f4a(0x241)](function(_0x4f6fce){const _0x1f9229=_0x207f4a;_0x354c9d[_0x1f9229(0x24b)][_0x1f9229(0x284)](_0x524eeb[_0x4f6fce]);})),delete _0x354c9d[_0x207f4a(0x210)];}),_0x22aa11[_0x31f2f6(0x1d0)]=_0x2dfc28,_0x22aa11;})[_0x55e740(0x275)](respondWithFilteredResult(_0x5e4461,_0x4b7ab9));});})[_0x194659(0x299)](handleError(_0x5e4461,null));},exports['destroy']=function(_0x2d5dc2,_0x386cb3){const _0x8c8847=a151_0x115ae4;return db['CmContact'][_0x8c8847(0x22c)]({'where':{'id':_0x2d5dc2['params']['id']}})[_0x8c8847(0x275)](handleEntityNotFound(_0x386cb3,null))[_0x8c8847(0x275)](removeEntity(_0x386cb3,null))[_0x8c8847(0x299)](handleError(_0x386cb3,null));},exports[a151_0x115ae4(0x1d1)]=function(_0x37240e,_0x34f1f3){const _0x534b77=a151_0x115ae4;return db['CmContact'][_0x534b77(0x1d1)]()['then'](function(_0x4dde7c){const _0x54cbf2=_0x534b77;delete _0x4dde7c['tags'];for(let _0x1c362d=0x0;_0x1c362d{const _0xc40007=_0x4bb80f,_0x16d85e={'where':{[Op['or']]:[]},'defaults':_0x19c964,'fields':_[_0xc40007(0x1fc)](_0x2d900d),'raw':!![]};if(_0x19c964[_0xc40007(0x289)]){for(let _0x95e21f=0x0;_0x95e21f<_0x19c964['duplicates'][_0xc40007(0x25c)];_0x95e21f++){const _0xad1af7={};_0xad1af7[_0x19c964[_0xc40007(0x289)][_0x95e21f]]=_0x19c964[_0x19c964[_0xc40007(0x289)][_0x95e21f]],_0x16d85e['where'][Op['or']][_0xc40007(0x284)](_0xad1af7);}_0x16d85e[_0xc40007(0x24d)][_0xc40007(0x20f)]=_0x19c964['ListId'];}return db['CmContact'][_0xc40007(0x290)](_0x16d85e)[_0xc40007(0x275)](function([,_0x30caed]){_0x30caed?_0x3d7e37++:_0x3ea04b++;})[_0xc40007(0x299)](function(_0x52f358){const _0x526747=_0xc40007;console[_0x526747(0x22b)](_0x52f358),_0x49624b++;});}));})['then'](function(_0x1b66b1){if(_0x1b66b1)return{'success':_0x3d7e37,'failure':_0x49624b,'duplicates':_0x3ea04b};})['then'](respondWithResult(_0x5d6b3a,0xc9))[_0x180e08(0x299)](handleError(_0x5d6b3a,null));},exports[a151_0x115ae4(0x204)]=function(_0x4df336,_0x4785ef){const _0x5ca9a9=a151_0x115ae4;let _0x423fc7;return db['CmContact']['describe']()['then'](function(_0x53827c){const _0x2a861b=a151_0x1ad1;return db[_0x2a861b(0x296)][_0x2a861b(0x22c)]({'where':{'id':_0x4df336['params']['id']},'include':[{'model':db[_0x2a861b(0x1d3)],'as':_0x2a861b(0x24b),'attributes':['id',_0x2a861b(0x1d2),_0x2a861b(0x238)],'required':_0x4df336[_0x2a861b(0x28a)][_0x2a861b(0x260)]?!![]:![]}],'attributes':_[_0x2a861b(0x1fc)](_0x53827c)});})['then'](function(_0x2d4a2d){const _0x2eab2e=a151_0x1ad1;_0x423fc7=_0x2d4a2d[_0x2eab2e(0x277)]({'plain':!![]});const _0x3be096={'where':{[Op[_0x2eab2e(0x283)]]:[{'ListId':{[Op['ne']]:null}}]}};return _0x2d4a2d&&_0x2d4a2d['ListId']&&(_0x2d4a2d[_0x2eab2e(0x20f)]&&_0x3be096['where'][Op[_0x2eab2e(0x283)]][_0x2eab2e(0x284)]({'ListId':{[Op['ne']]:_0x2d4a2d[_0x2eab2e(0x20f)]}})),db[_0x2eab2e(0x1cc)][_0x2eab2e(0x242)](_0x3be096);})['then'](function(_0x1ab691){const _0x44aff3=a151_0x1ad1;return _[_0x44aff3(0x1f6)](_0x423fc7,_[_0x44aff3(0x236)](_0x1ab691,function(_0xc976fc){const _0x2cd60c=_0x44aff3;return util[_0x2cd60c(0x1e6)](_0x2cd60c(0x1f9),_0xc976fc['id']);}));})['then'](handleEntityNotFound(_0x4785ef,null))['then'](respondWithResult(_0x4785ef,null))[_0x5ca9a9(0x299)](handleError(_0x4785ef,null));},exports[a151_0x115ae4(0x1ea)]=function(_0x2ac3f1,_0xf460c0){const _0x2b00db=a151_0x115ae4;let _0x2e3831;return _0x2ac3f1[_0x2b00db(0x256)]['id']&&delete _0x2ac3f1[_0x2b00db(0x256)]['id'],db[_0x2b00db(0x296)][_0x2b00db(0x22c)]({'where':{'id':_0x2ac3f1[_0x2b00db(0x291)]['id']}})[_0x2b00db(0x275)](handleEntityNotFound(_0xf460c0,null))['then'](saveUpdates(_0x2ac3f1[_0x2b00db(0x256)],null))[_0x2b00db(0x275)](function(_0x2b3bc4){const _0x4806d4=_0x2b00db;_0x2e3831=_0x2b3bc4;const _0x144f98={'where':{[Op['and']]:[{'ListId':{[Op['ne']]:null}}]}};return _0x2b3bc4&&_0x2b3bc4['ListId']&&(_0x2b3bc4['ListId']&&_0x144f98['where'][Op[_0x4806d4(0x283)]]['push']({'ListId':{[Op['ne']]:_0x2b3bc4[_0x4806d4(0x20f)]}})),db['CmCustomField']['findAll'](_0x144f98);})[_0x2b00db(0x275)](function(_0x506142){const _0x5641cc=_0x2b00db;if(_0x506142)return _[_0x5641cc(0x1f6)](_[_0x5641cc(0x1dd)](_0x2ac3f1[_0x5641cc(0x256)],function(_0x1ba977,_0x4779ec){const _0xb2ce6=_0x5641cc;return _[_0xb2ce6(0x1eb)](_0x4779ec,'cf_');}),_[_0x5641cc(0x236)](_0x506142,function(_0x3ccafe){const _0x123515=_0x5641cc;return util['format'](_0x123515(0x1f9),_0x3ccafe['id']);}));})[_0x2b00db(0x275)](function(_0x1e9e8f){const _0x4ffbc6=_0x2b00db;if(_0x1e9e8f&&!_[_0x4ffbc6(0x258)](_0x1e9e8f)){const _0x154e27=squel[_0x4ffbc6(0x1ea)]()[_0x4ffbc6(0x229)](_0x4ffbc6(0x216))[_0x4ffbc6(0x28c)](_0x1e9e8f)[_0x4ffbc6(0x24d)]('id\x20=\x20?',_0x2ac3f1[_0x4ffbc6(0x291)]['id'])['toParam']();return db[_0x4ffbc6(0x1e3)][_0x4ffbc6(0x28a)](_0x154e27[_0x4ffbc6(0x26f)],{'replacements':_0x154e27['values']});}})[_0x2b00db(0x275)](function(){const _0x4ef99f=_0x2b00db;if(_0x2ac3f1[_0x4ef99f(0x256)][_0x4ef99f(0x237)]&&_0x2e3831)return db['CmHopper'][_0x4ef99f(0x1ea)]({'phone':_0x2ac3f1['body'][_0x4ef99f(0x237)]},{'where':{'ContactId':_0x2e3831['id']}});})['then'](function(){return _0x2e3831;})[_0x2b00db(0x275)](respondWithResult(_0xf460c0,null))['catch'](handleError(_0xf460c0,null));},exports[a151_0x115ae4(0x217)]=function(_0xa3b182,_0x59e345){const _0x4a7526=a151_0x115ae4;let _0x29e7a9={};const _0x2631d0={};let _0x45fa03,_0x24078e;return db[_0x4a7526(0x296)][_0x4a7526(0x22c)]({'where':{'id':_0xa3b182['params']['id']}})[_0x4a7526(0x275)](handleEntityNotFound(_0x59e345,null))[_0x4a7526(0x275)](function(_0x2c3bce){const _0x21a97d=_0x4a7526;if(_0x2c3bce)return _0x45fa03=_0x2c3bce,_0x2631d0[_0x21a97d(0x25b)]=_['keys'](db[_0x21a97d(0x1d3)][_0x21a97d(0x212)]),_0x2631d0[_0x21a97d(0x28a)]=_[_0x21a97d(0x1fc)](_0xa3b182[_0x21a97d(0x28a)]),_0x2631d0[_0x21a97d(0x1e7)]=_[_0x21a97d(0x285)](_0x2631d0[_0x21a97d(0x25b)],_0x2631d0[_0x21a97d(0x28a)]),_0x29e7a9[_0x21a97d(0x253)]=_[_0x21a97d(0x285)](_0x2631d0['model'],qs[_0x21a97d(0x205)](_0xa3b182[_0x21a97d(0x28a)][_0x21a97d(0x205)])),_0x29e7a9[_0x21a97d(0x253)]=_0x29e7a9[_0x21a97d(0x253)][_0x21a97d(0x25c)]?_0x29e7a9[_0x21a97d(0x253)]:_0x2631d0[_0x21a97d(0x25b)],_0x29e7a9[_0x21a97d(0x21f)]=qs['sort'](_0xa3b182[_0x21a97d(0x28a)][_0x21a97d(0x22e)]),_0x29e7a9[_0x21a97d(0x24d)]=qs[_0x21a97d(0x1e7)](_[_0x21a97d(0x244)](_0xa3b182[_0x21a97d(0x28a)],_0x2631d0['filters'])),_0xa3b182['query'][_0x21a97d(0x298)]&&(_0x29e7a9['where']=_[_0x21a97d(0x1d4)](_0x29e7a9[_0x21a97d(0x24d)],{[Op['or']]:_[_0x21a97d(0x236)](_0x29e7a9['attributes'],function(_0x3afc20){const _0x184cdd=_0x21a97d,_0x134f24={};return _0x134f24[_0x3afc20]={[Op[_0x184cdd(0x231)]]:'%'+_0xa3b182[_0x184cdd(0x28a)][_0x184cdd(0x298)]+'%'},_0x134f24;})})),_0x29e7a9=_[_0x21a97d(0x1d4)]({},_0x29e7a9,_0xa3b182[_0x21a97d(0x225)]),_0x45fa03[_0x21a97d(0x217)](_0x29e7a9);})[_0x4a7526(0x275)](function(_0x2314d6){const _0x494f1d=_0x4a7526;if(_0x2314d6)return _0x24078e=_0x2314d6[_0x494f1d(0x25c)],typeof _0xa3b182[_0x494f1d(0x28a)][_0x494f1d(0x228)]==='undefined'&&(_0x29e7a9[_0x494f1d(0x201)]=qs[_0x494f1d(0x201)](_0xa3b182['query']['limit']),_0x29e7a9['offset']=qs['offset'](_0xa3b182[_0x494f1d(0x28a)]['offset'])),_0x45fa03[_0x494f1d(0x217)](_0x29e7a9);})[_0x4a7526(0x275)](function(_0x28fe7f){if(_0x28fe7f)return _0x28fe7f?{'count':_0x24078e,'rows':_0x28fe7f}:null;})[_0x4a7526(0x275)](respondWithResult(_0x59e345,null))[_0x4a7526(0x299)](handleError(_0x59e345,null));},exports['setTags']=function(_0x796e13,_0x449f09){const _0x1e9db3=a151_0x115ae4;return _0x796e13['body']['id']&&delete _0x796e13['body']['id'],db[_0x1e9db3(0x296)][_0x1e9db3(0x22c)]({'where':{'id':_0x796e13[_0x1e9db3(0x291)]['id']}})[_0x1e9db3(0x275)](handleEntityNotFound(_0x449f09,null))[_0x1e9db3(0x275)](function(_0x21d741){const _0x63cd80=_0x1e9db3;if(_0x21d741)return _0x21d741['setTags'](_0x796e13['body'][_0x63cd80(0x261)]||[]);return null;})[_0x1e9db3(0x275)](respondWithResult(_0x449f09,null))['catch'](handleError(_0x449f09,null));},exports[a151_0x115ae4(0x221)]=function(_0x4e927c,_0x32728c){const _0x5a5198=a151_0x115ae4;let _0x43596d={'raw':![],'where':{}};const _0x53f9ea={},_0x51db80={'count':0x0,'rows':[]};return db[_0x5a5198(0x296)][_0x5a5198(0x22c)]({'where':{'id':_0x4e927c[_0x5a5198(0x291)]['id']}})[_0x5a5198(0x275)](handleEntityNotFound(_0x32728c,null))[_0x5a5198(0x275)](function(_0x55d72f){const _0xe6af8c=_0x5a5198;if(_0x55d72f)return _0x53f9ea[_0xe6af8c(0x25b)]=_['keys'](db[_0xe6af8c(0x1da)][_0xe6af8c(0x212)]),_0x53f9ea[_0xe6af8c(0x28a)]=_[_0xe6af8c(0x1fc)](_0x4e927c[_0xe6af8c(0x28a)]),_0x53f9ea[_0xe6af8c(0x1e7)]=_[_0xe6af8c(0x285)](_0x53f9ea[_0xe6af8c(0x25b)],_0x53f9ea[_0xe6af8c(0x28a)]),_0x43596d[_0xe6af8c(0x253)]=_['intersection'](_0x53f9ea[_0xe6af8c(0x25b)],qs['fields'](_0x4e927c['query'][_0xe6af8c(0x205)])),_0x43596d[_0xe6af8c(0x253)]=_0x43596d[_0xe6af8c(0x253)][_0xe6af8c(0x25c)]?_0x43596d[_0xe6af8c(0x253)]:_0x53f9ea[_0xe6af8c(0x25b)],typeof _0x4e927c['query'][_0xe6af8c(0x228)]===_0xe6af8c(0x226)&&(_0x43596d['limit']=qs[_0xe6af8c(0x201)](_0x4e927c[_0xe6af8c(0x28a)]['limit']),_0x43596d['offset']=qs[_0xe6af8c(0x27f)](_0x4e927c['query'][_0xe6af8c(0x27f)])),_0x43596d['order']=qs['sort'](_0x4e927c[_0xe6af8c(0x28a)][_0xe6af8c(0x22e)]),_0x43596d[_0xe6af8c(0x24d)]=qs['filters'](_[_0xe6af8c(0x244)](_0x4e927c['query'],_0x53f9ea[_0xe6af8c(0x1e7)])),_0x43596d[_0xe6af8c(0x24d)][_0xe6af8c(0x270)]=_0x55d72f['id'],_0x4e927c['query'][_0xe6af8c(0x298)]&&(_0x43596d[_0xe6af8c(0x24d)]=_['merge'](_0x43596d[_0xe6af8c(0x24d)],{[Op['or']]:_['map'](_0x43596d[_0xe6af8c(0x253)],function(_0xe2670){const _0x36b4bb=_0xe6af8c,_0x47f1fb={};return _0x47f1fb[_0xe2670]={[Op[_0x36b4bb(0x231)]]:'%'+_0x4e927c[_0x36b4bb(0x28a)][_0x36b4bb(0x298)]+'%'},_0x47f1fb;})})),_0x43596d=_['merge']({},_0x43596d,_0x4e927c['options']),db[_0xe6af8c(0x1da)][_0xe6af8c(0x271)]({'where':_0x43596d[_0xe6af8c(0x24d)]})['then'](function(_0x392df6){const _0x32a301=_0xe6af8c;return _0x51db80['count']=_0x392df6,_0x4e927c[_0x32a301(0x28a)][_0x32a301(0x257)]&&(_0x43596d['include']=[{'all':!![]}]),db['CmHopper']['findAll'](_0x43596d);})[_0xe6af8c(0x275)](function(_0x545ffc){const _0x4eadc5=_0xe6af8c;return _0x51db80[_0x4eadc5(0x1d0)]=_0x545ffc,_0x51db80;});})['then'](respondWithFilteredResult(_0x32728c,_0x43596d))[_0x5a5198(0x299)](handleError(_0x32728c,null));},exports[a151_0x115ae4(0x20a)]=function(_0x1e40fc,_0x3a0ac1){const _0x216fa5=a151_0x115ae4;let _0x46cee4={'raw':!![],'where':{}};const _0x53ce5f={},_0x3535b6={'count':0x0,'rows':[]};return db[_0x216fa5(0x296)][_0x216fa5(0x22c)]({'where':{'id':_0x1e40fc['params']['id']}})[_0x216fa5(0x275)](handleEntityNotFound(_0x3a0ac1,null))['then'](function(_0xb59654){const _0x14fbf2=_0x216fa5;if(_0xb59654)return _0x53ce5f[_0x14fbf2(0x25b)]=_[_0x14fbf2(0x1fc)](db['CmHopperHistory'][_0x14fbf2(0x212)]),_0x53ce5f['query']=_[_0x14fbf2(0x1fc)](_0x1e40fc[_0x14fbf2(0x28a)]),_0x53ce5f['filters']=_['intersection'](_0x53ce5f['model'],_0x53ce5f['query']),_0x46cee4[_0x14fbf2(0x253)]=_[_0x14fbf2(0x285)](_0x53ce5f[_0x14fbf2(0x25b)],qs['fields'](_0x1e40fc[_0x14fbf2(0x28a)][_0x14fbf2(0x205)])),_0x46cee4['attributes']=_0x46cee4[_0x14fbf2(0x253)][_0x14fbf2(0x25c)]?_0x46cee4['attributes']:_0x53ce5f['model'],typeof _0x1e40fc[_0x14fbf2(0x28a)][_0x14fbf2(0x228)]===_0x14fbf2(0x226)&&(_0x46cee4['limit']=qs['limit'](_0x1e40fc[_0x14fbf2(0x28a)][_0x14fbf2(0x201)]),_0x46cee4['offset']=qs[_0x14fbf2(0x27f)](_0x1e40fc[_0x14fbf2(0x28a)]['offset'])),_0x46cee4[_0x14fbf2(0x21f)]=qs[_0x14fbf2(0x22e)](_0x1e40fc[_0x14fbf2(0x28a)][_0x14fbf2(0x22e)]),_0x46cee4[_0x14fbf2(0x24d)]=qs[_0x14fbf2(0x1e7)](_[_0x14fbf2(0x244)](_0x1e40fc[_0x14fbf2(0x28a)],_0x53ce5f[_0x14fbf2(0x1e7)])),_0x46cee4['where']['ContactId']=_0xb59654['id'],_0x1e40fc[_0x14fbf2(0x28a)][_0x14fbf2(0x298)]&&(_0x46cee4[_0x14fbf2(0x24d)]=_['merge'](_0x46cee4['where'],{[Op['or']]:_['map'](_0x46cee4['attributes'],function(_0x3f5fd2){const _0x4887ca=_0x14fbf2,_0xd41a59={};return _0xd41a59[_0x3f5fd2]={[Op[_0x4887ca(0x231)]]:'%'+_0x1e40fc[_0x4887ca(0x28a)][_0x4887ca(0x298)]+'%'},_0xd41a59;})})),_0x46cee4=_[_0x14fbf2(0x1d4)]({},_0x46cee4,_0x1e40fc['options']),db[_0x14fbf2(0x1e8)][_0x14fbf2(0x271)]({'where':_0x46cee4[_0x14fbf2(0x24d)]})[_0x14fbf2(0x275)](function(_0x270560){const _0x2e82b7=_0x14fbf2;return _0x3535b6[_0x2e82b7(0x271)]=_0x270560,_0x1e40fc[_0x2e82b7(0x28a)][_0x2e82b7(0x257)]&&(_0x46cee4['include']=[{'all':!![]}]),db[_0x2e82b7(0x1e8)][_0x2e82b7(0x242)](_0x46cee4);})[_0x14fbf2(0x275)](function(_0x40b34c){const _0x1a0991=_0x14fbf2;return _0x3535b6[_0x1a0991(0x1d0)]=_0x40b34c,_0x3535b6;});})[_0x216fa5(0x275)](respondWithFilteredResult(_0x3a0ac1,_0x46cee4))[_0x216fa5(0x299)](handleError(_0x3a0ac1,null));},exports['getHopperFinals']=function(_0x4c6b92,_0x3efbfb){const _0x570c1f=a151_0x115ae4;let _0x4e0db6={'raw':!![],'where':{}};const _0x5c0c62={},_0x5507c9={'count':0x0,'rows':[]};return db[_0x570c1f(0x296)][_0x570c1f(0x22c)]({'where':{'id':_0x4c6b92['params']['id']}})['then'](handleEntityNotFound(_0x3efbfb,null))[_0x570c1f(0x275)](function(_0x211ea7){const _0x81ad5e=_0x570c1f;if(_0x211ea7)return _0x5c0c62['model']=_['keys'](db[_0x81ad5e(0x1f7)][_0x81ad5e(0x212)]),_0x5c0c62['query']=_[_0x81ad5e(0x1fc)](_0x4c6b92[_0x81ad5e(0x28a)]),_0x5c0c62[_0x81ad5e(0x1e7)]=_[_0x81ad5e(0x285)](_0x5c0c62[_0x81ad5e(0x25b)],_0x5c0c62[_0x81ad5e(0x28a)]),_0x4e0db6[_0x81ad5e(0x253)]=_[_0x81ad5e(0x285)](_0x5c0c62[_0x81ad5e(0x25b)],qs[_0x81ad5e(0x205)](_0x4c6b92[_0x81ad5e(0x28a)][_0x81ad5e(0x205)])),_0x4e0db6[_0x81ad5e(0x253)]=_0x4e0db6['attributes'][_0x81ad5e(0x25c)]?_0x4e0db6[_0x81ad5e(0x253)]:_0x5c0c62[_0x81ad5e(0x25b)],typeof _0x4c6b92[_0x81ad5e(0x28a)][_0x81ad5e(0x228)]===_0x81ad5e(0x226)&&(_0x4e0db6[_0x81ad5e(0x201)]=qs[_0x81ad5e(0x201)](_0x4c6b92[_0x81ad5e(0x28a)][_0x81ad5e(0x201)]),_0x4e0db6[_0x81ad5e(0x27f)]=qs[_0x81ad5e(0x27f)](_0x4c6b92[_0x81ad5e(0x28a)][_0x81ad5e(0x27f)])),_0x4e0db6[_0x81ad5e(0x21f)]=qs[_0x81ad5e(0x22e)](_0x4c6b92[_0x81ad5e(0x28a)][_0x81ad5e(0x22e)]),_0x4e0db6[_0x81ad5e(0x24d)]=qs[_0x81ad5e(0x1e7)](_[_0x81ad5e(0x244)](_0x4c6b92[_0x81ad5e(0x28a)],_0x5c0c62[_0x81ad5e(0x1e7)])),_0x4e0db6[_0x81ad5e(0x24d)][_0x81ad5e(0x270)]=_0x211ea7['id'],_0x4c6b92[_0x81ad5e(0x28a)][_0x81ad5e(0x298)]&&(_0x4e0db6[_0x81ad5e(0x24d)]=_[_0x81ad5e(0x1d4)](_0x4e0db6[_0x81ad5e(0x24d)],{[Op['or']]:_[_0x81ad5e(0x236)](_0x4e0db6[_0x81ad5e(0x253)],function(_0x6683bf){const _0x3849f2=_0x81ad5e,_0xbcab24={};return _0xbcab24[_0x6683bf]={[Op[_0x3849f2(0x231)]]:'%'+_0x4c6b92[_0x3849f2(0x28a)]['filter']+'%'},_0xbcab24;})})),_0x4e0db6=_[_0x81ad5e(0x1d4)]({},_0x4e0db6,_0x4c6b92[_0x81ad5e(0x225)]),db[_0x81ad5e(0x1f7)]['count']({'where':_0x4e0db6[_0x81ad5e(0x24d)]})[_0x81ad5e(0x275)](function(_0xfaa4cc){const _0x4ed600=_0x81ad5e;return _0x5507c9['count']=_0xfaa4cc,_0x4c6b92['query'][_0x4ed600(0x257)]&&(_0x4e0db6[_0x4ed600(0x1ee)]=[{'all':!![]}]),db[_0x4ed600(0x1f7)][_0x4ed600(0x242)](_0x4e0db6);})[_0x81ad5e(0x275)](function(_0x2faaa2){const _0x169db0=_0x81ad5e;return _0x5507c9[_0x169db0(0x1d0)]=_0x2faaa2,_0x5507c9;});})[_0x570c1f(0x275)](respondWithFilteredResult(_0x3efbfb,_0x4e0db6))['catch'](handleError(_0x3efbfb,null));},exports[a151_0x115ae4(0x282)]=function(_0x23f606,_0x3ae928){const _0x224038=a151_0x115ae4;let _0x555a63={'raw':!![],'where':{}};const _0xd5439c={},_0x175103={'count':0x0,'rows':[]};return db[_0x224038(0x296)]['findOne']({'where':{'id':_0x23f606[_0x224038(0x291)]['id']}})['then'](handleEntityNotFound(_0x3ae928,null))[_0x224038(0x275)](function(_0x27d7f7){const _0x5efc44=_0x224038;if(_0x27d7f7)return _0xd5439c['model']=_[_0x5efc44(0x1fc)](db['JscriptySessionReport'][_0x5efc44(0x212)]),_0xd5439c[_0x5efc44(0x28a)]=_['keys'](_0x23f606[_0x5efc44(0x28a)]),_0xd5439c[_0x5efc44(0x1e7)]=_[_0x5efc44(0x285)](_0xd5439c['model'],_0xd5439c['query']),_0x555a63[_0x5efc44(0x253)]=_[_0x5efc44(0x285)](_0xd5439c[_0x5efc44(0x25b)],qs[_0x5efc44(0x205)](_0x23f606[_0x5efc44(0x28a)][_0x5efc44(0x205)])),_0x555a63['attributes']=_0x555a63[_0x5efc44(0x253)][_0x5efc44(0x25c)]?_0x555a63[_0x5efc44(0x253)]:_0xd5439c[_0x5efc44(0x25b)],typeof _0x23f606[_0x5efc44(0x28a)][_0x5efc44(0x228)]===_0x5efc44(0x226)&&(_0x555a63['limit']=qs[_0x5efc44(0x201)](_0x23f606['query'][_0x5efc44(0x201)]),_0x555a63['offset']=qs['offset'](_0x23f606[_0x5efc44(0x28a)][_0x5efc44(0x27f)])),_0x555a63[_0x5efc44(0x21f)]=qs[_0x5efc44(0x22e)](_0x23f606[_0x5efc44(0x28a)][_0x5efc44(0x22e)]),_0x555a63[_0x5efc44(0x24d)]=qs['filters'](_[_0x5efc44(0x244)](_0x23f606[_0x5efc44(0x28a)],_0xd5439c['filters'])),_0x555a63[_0x5efc44(0x24d)][_0x5efc44(0x270)]=_0x27d7f7['id'],_0x23f606[_0x5efc44(0x28a)]['filter']&&(_0x555a63[_0x5efc44(0x24d)]=_['merge'](_0x555a63[_0x5efc44(0x24d)],{[Op['or']]:_['map'](_0x555a63[_0x5efc44(0x253)],function(_0x57e48d){const _0x44f1dc=_0x5efc44,_0x430fdd={};return _0x430fdd[_0x57e48d]={[Op[_0x44f1dc(0x231)]]:'%'+_0x23f606[_0x44f1dc(0x28a)][_0x44f1dc(0x298)]+'%'},_0x430fdd;})})),_0x555a63=_[_0x5efc44(0x1d4)]({},_0x555a63,_0x23f606[_0x5efc44(0x225)]),db[_0x5efc44(0x276)][_0x5efc44(0x271)]({'where':_0x555a63[_0x5efc44(0x24d)]})[_0x5efc44(0x275)](function(_0x425654){const _0xd3337b=_0x5efc44;return _0x175103[_0xd3337b(0x271)]=_0x425654,_0x23f606[_0xd3337b(0x28a)][_0xd3337b(0x257)]&&(_0x555a63[_0xd3337b(0x1ee)]=[{'all':!![]}]),db[_0xd3337b(0x276)][_0xd3337b(0x242)](_0x555a63);})[_0x5efc44(0x275)](function(_0x55dcc1){const _0x5239ec=_0x5efc44;return _0x175103[_0x5239ec(0x1d0)]=_0x55dcc1,_0x175103;});})[_0x224038(0x275)](respondWithFilteredResult(_0x3ae928,_0x555a63))[_0x224038(0x299)](handleError(_0x3ae928,null));},exports[a151_0x115ae4(0x269)]=function(_0x1097a3,_0x588b1b){const _0x5a8e15=a151_0x115ae4,_0x2be906=fs[_0x5a8e15(0x223)](_0x1097a3[_0x5a8e15(0x23e)]['path']);Papa[_0x5a8e15(0x20c)](_0x2be906,{'header':!![],'skipEmptyLines':!![],'preview':0x1,'complete':function(_0x83cfba){const _0x379bf0=_0x5a8e15;return _0x588b1b[_0x379bf0(0x202)](0xc8)['json']({'file':_0x1097a3[_0x379bf0(0x23e)],'fields':_0x83cfba[_0x379bf0(0x24f)][_0x379bf0(0x205)]});}});},exports[a151_0x115ae4(0x27b)]=function(_0x564efa,_0x2389b6){const _0x26832f=a151_0x115ae4;return db[_0x26832f(0x219)][_0x26832f(0x242)]({'raw':!![],'attributes':['id'],'where':{'role':'agent'}})[_0x26832f(0x275)](function(_0x1f8176){const _0x323f83=_0x26832f;let _0x3c3134=![];if(!_0x564efa[_0x323f83(0x256)][_0x323f83(0x20f)])throw new Error('No\x20ListId\x20specified');if(!_0x564efa[_0x323f83(0x256)][_0x323f83(0x272)][_0x323f83(0x237)])throw new Error(_0x323f83(0x232));if(!_0x564efa[_0x323f83(0x256)][_0x323f83(0x272)][_0x323f83(0x252)])throw new Error(_0x323f83(0x25e));if(!_0x564efa['body'][_0x323f83(0x262)])throw new Error('Unable\x20to\x20synchronize\x20socket,\x20no\x20timestamp\x20passed');const _0xe8b364=path[_0x323f83(0x264)](config[_0x323f83(0x255)],_0x323f83(0x203),_0x564efa[_0x323f83(0x291)]['id']),_0x3f48ff=JSON[_0x323f83(0x1ec)](_0x564efa[_0x323f83(0x256)]),_0x1c0553=JSON[_0x323f83(0x1ec)](_0x1f8176);logger[_0x323f83(0x280)]('Calling\x20'+CSV2_SCRIPT+_0x323f83(0x1ef)+_0xe8b364+_0x323f83(0x220)+_0x3f48ff+_0x323f83(0x28f)+_0x1c0553);const _0x64325e=fork(CSV2_SCRIPT,[_0xe8b364,_0x3f48ff,_0x1c0553],{'stdio':_0x323f83(0x27d)});_0x64325e['on'](_0x323f83(0x278),()=>{const _0x6d0735=_0x323f83;return _0x3c3134=!![],_0x2389b6[_0x6d0735(0x202)](0xc8)[_0x6d0735(0x234)]({'message':'start\x20child\x20process\x20correctly!','pid':_0x64325e[_0x6d0735(0x1e1)]});}),_0x64325e['on'](_0x323f83(0x22b),_0x37e9d8=>{const _0x14489b=_0x323f83;logger['error'](_0x14489b(0x23c)+CSV2_SCRIPT+_0x14489b(0x1fa)+_0x37e9d8[_0x14489b(0x278)]+'\x20'+_0x37e9d8['stack']);}),_0x64325e[_0x323f83(0x1f2)]&&_0x64325e[_0x323f83(0x274)]?(_0x64325e[_0x323f83(0x23d)]['on']('data',_0xd4a09=>{const _0x5e9571=_0x323f83;logger['info'](_0x5e9571(0x29a)+_0xd4a09);}),_0x64325e['stderr']['on'](_0x323f83(0x26c),_0x319139=>{const _0x45e2df=_0x323f83;logger[_0x45e2df(0x22b)](_0x45e2df(0x26e)+_0x319139);})):logger[_0x323f83(0x280)](_0x323f83(0x1fd)),_0x64325e['on'](_0x323f83(0x297),_0x4f68cb=>{const _0x1086e7=_0x323f83;if(_0x4f68cb&&!_0x3c3134)return _0x2389b6[_0x1086e7(0x202)](0x1f4)[_0x1086e7(0x234)]({'message':_0x1086e7(0x26a),'pid':_0x64325e[_0x1086e7(0x1e1)]});});})['catch'](handleError(_0x2389b6,null));}; \ No newline at end of file +const a151_0x35e8=['OpenchannelMessage','ListId','union','replace','getJscriptySessions','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','length','tag','CmHopperBlack','like','table','search','DATE','params','status','user','datetime','binding','color','socket_timestamp','User','type','having','attributes','toParam','sqlOperator','setFields','describe','c.lastName','where','SmsInteraction','pick','start\x20child\x20process\x20correctly!','firstName','dateOfBirth','format','limit','TagIds','expr','exit','intersection','filters','from','tags','model','MailMessage','util','JscriptySessionReport','isEmpty','c.firstName\x20LIKE\x20?','sequelize','c.id\x20LIKE\x20?','message','join','show','count','stringify','stack','No\x20phone\x20column\x20specified','[CmContact][merge]\x20to\x20%s\x20from\x20%s','offset','trimStart','../../config/environment','FaxInteraction','SmsMessage','conditions','file','resolve','squel','buildExpression','destroy','./cmContact.socket','No\x20firstName\x20column\x20specified','rawAttributes','setTags','Tags','c.phone\x20LIKE\x20?','update','field','keys','cm_contacts','getLists','cm_contact_has_tags','find','concat','startsWith','FaxMessage','CmCustomField','CmContact','c.id','Tag','sort','pid','getHoppers','c.fax\x20LIKE\x20?','omit','mergeWith','stdout','Contact','register','left_join','isEmail','select','lodash','getHopperFinals','MailQueueReport','forEach','../../mysqldb','text','columnName','../../config/logger','t.id\x20=\x20ct.TagId','c.firstName','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20with\x20parameters\x20=\x20','data','child_process','displayName','value','undefined','name','split','isArray','OpenchannelQueueReport','push','ContactId','c.lastName\x20LIKE\x20?','getTags','[CmContact][merge][destroy][CmHopper],\x20%s','error\x20child\x20process','c.ListId\x20IN\x20?','json','parse','cf_%d','pickBy','\x20on\x20file\x20','ids','order','isNumeric','cf_','root','path','bulkCreate','group','nolimit','MailInteraction','papaparse','SELECT','catch','CmHopperFinal','info','set','../../components/parsers/qs','all','body','options','filter','../../components/parsers/advancedSearch','clone','toString','get','OpenchannelInteraction','duplicates','../../rediscache','map','\x20process:\x20error\x20','fields','query','phone','create','CONCAT_WS(\x27\x20\x27,\x20c.firstName,\x20c.lastName,\x20c.email)\x20LIKE\x20?','castTo','error','stderr','isNil','some','pipe','sendStatus','findAll','rows','keyBy','Failed\x20to\x20start\x20','includeAll','cm_user_has_contacts','agent','[CmContact][merge][destroy][CmHopperBlack],\x20%s','Content-Range','CmHopperHistory','include','child\x20stdout:\x0a','CmHopper','tools_tags','findOrCreate','ChatMessage','merge','child\x20stderr:\x0a','values','c.ListId\x20IS\x20NULL','then','and','alias','findOne','Calling\x20','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','uc.UserId\x20=\x20?','fieldType'];(function(_0x45477f,_0x3797da){const _0x35e8da=function(_0x57551c){while(--_0x57551c){_0x45477f['push'](_0x45477f['shift']());}};_0x35e8da(++_0x3797da);}(a151_0x35e8,0x18f));const a151_0x5755=function(_0x45477f,_0x3797da){_0x45477f=_0x45477f-0x151;let _0x35e8da=a151_0x35e8[_0x45477f];return _0x35e8da;};const a151_0xba8f98=a151_0x5755;'use strict';const util=require(a151_0xba8f98(0x18a)),path=require('path'),fs=require('fs'),_=require(a151_0xba8f98(0x1c3)),squel=require(a151_0xba8f98(0x1a0)),Papa=require(a151_0xba8f98(0x1ed)),{getSocket}=require(a151_0xba8f98(0x1fe)),socket=getSocket(),qs=require(a151_0xba8f98(0x1f3)),as=require(a151_0xba8f98(0x1f8)),logger=require(a151_0xba8f98(0x1ca))('api'),{db}=require(a151_0xba8f98(0x1c7)),{Op,QueryTypes}=require(a151_0xba8f98(0x18e)),{fork}=require(a151_0xba8f98(0x1cf)),config=require(a151_0xba8f98(0x19a));require(a151_0xba8f98(0x1a3))[a151_0xba8f98(0x1bf)](socket);const CSV2_SCRIPT=path[a151_0xba8f98(0x191)](__dirname,'../../components/import/cm/csv2.js');function respondWithResult(_0x530316,_0x2af5fb){return _0x2af5fb=_0x2af5fb||0xc8,function(_0x2743bf){const _0x3eab56=a151_0x5755;if(_0x2743bf)return _0x530316[_0x3eab56(0x16a)](_0x2af5fb)['json'](_0x2743bf);};}function respondWithFilteredResult(_0x3f4160,_0x53773f){return function(_0x3a3f76){const _0x5a9dbb=a151_0x5755;if(_0x3a3f76){const _0x162a4e=_0x3a3f76['count'],_0x7456ce=_0x53773f['offset'];let _0x52fc62=_0x53773f[_0x5a9dbb(0x198)]+_0x53773f[_0x5a9dbb(0x180)],_0x468b47;return _0x52fc62>=_0x162a4e?(_0x52fc62=_0x162a4e,_0x468b47=0xc8):_0x468b47=0xce,_0x3f4160['status'](_0x468b47),_0x3f4160[_0x5a9dbb(0x1f2)](_0x5a9dbb(0x215),_0x7456ce+'-'+_0x52fc62+'/'+_0x162a4e)[_0x5a9dbb(0x1de)](_0x3a3f76);}return null;};}function saveUpdates(_0xf50b1d){return function(_0x4b9f6c){const _0x4e00a2=a151_0x5755;if(_0x4b9f6c)return _0x4b9f6c[_0x4e00a2(0x1a9)](_0xf50b1d)[_0x4e00a2(0x154)](function(_0x4d1179){return _0x4d1179;});return null;};}function removeEntity(_0x59eaf3){return function(_0x455bad){const _0x2e4059=a151_0x5755;if(_0x455bad)return _0x455bad[_0x2e4059(0x1a2)]()[_0x2e4059(0x154)](function(){const _0x448222=_0x2e4059;_0x59eaf3[_0x448222(0x16a)](0xcc)['end']();});};}function handleEntityNotFound(_0x1d8a05){return function(_0x41cd02){const _0x4f71d5=a151_0x5755;return!_0x41cd02&&_0x1d8a05[_0x4f71d5(0x20c)](0x194),_0x41cd02;};}function handleError(_0x190eb1,_0x3a9091){return _0x3a9091=_0x3a9091||0x1f4,function(_0xa18e16){const _0x3f8175=a151_0x5755;logger[_0x3f8175(0x207)](_0xa18e16[_0x3f8175(0x195)]),_0xa18e16[_0x3f8175(0x1d3)]&&delete _0xa18e16[_0x3f8175(0x1d3)],_0x190eb1['status'](_0x3a9091)['send'](_0xa18e16);};}exports['index']=function(_0x2837ae,_0x3f6e75){const _0x3b979f=a151_0xba8f98,_0x360b74={},_0x43d400={},_0xb618aa={'count':0x0,'rows':[]};return db[_0x3b979f(0x1b4)][_0x3b979f(0x177)]()['then'](function(_0x1f0eef){const _0x2dd29b=_0x3b979f,_0x22de09=[];for(let _0x8679b0=0x0;_0x8679b00x1)_0x2a9afe['or'](_0xa73f95(0x159),qs['getFullTextValue'](_0x176d59),null);else{if(qs[_0xa73f95(0x1e5)](_0x176d59))_0x2a9afe['or'](_0xa73f95(0x18f),_0x176d59+'%'),_0x2a9afe['or'](_0xa73f95(0x1a8),_0x176d59+'%'),_0x2a9afe['or']('c.mobile\x20LIKE\x20?',_0x176d59+'%'),_0x2a9afe['or'](_0xa73f95(0x1ba),_0x176d59+'%');else qs[_0xa73f95(0x1c1)](_0x176d59)?_0x2a9afe['or']('c.email\x20LIKE\x20?',_0x176d59+'%'):(_0x2a9afe['or'](_0xa73f95(0x18d),'%'+_0x176d59+'%'),_0x2a9afe['or'](_0xa73f95(0x1d9),'%'+_0x176d59+'%'),_0x2a9afe['or']('c.email\x20LIKE\x20?','%'+_0x176d59+'%'));}}}_0x3912d4[_0xa73f95(0x179)](_0x2a9afe),_0x3912d4[_0xa73f95(0x1ea)](_0xa73f95(0x1b5));let _0x4d95f3={'type':QueryTypes[_0xa73f95(0x1ee)],'raw':!![]};const _0x3cb2c2=_0x3912d4[_0xa73f95(0x1f9)]()[_0xa73f95(0x1aa)](_0xa73f95(0x1b5));_0x360b74[_0xa73f95(0x1e4)]&&_0x360b74['order'][_0xa73f95(0x1c6)](function(_0x5983dd){const _0x3e70f1=_0xa73f95;_0x3912d4[_0x3e70f1(0x1e4)]('c.'+_0x5983dd[0x0],_0x5983dd[0x1]==='DESC'?![]:!![]);}),!_[_0xa73f95(0x18c)](_0xefbd1b)&&(_0x3912d4[_0xa73f95(0x172)](_0x99ed99),_0x3cb2c2[_0xa73f95(0x179)]('t.id\x20IN\x20?',_0xefbd1b)),Promise[_0xa73f95(0x19f)]()[_0xa73f95(0x154)](function(){const _0x31db28=_0xa73f95;if(_0x37e0b8&&!_[_0x31db28(0x20a)](_0x37e0b8['conditions'],[_0x31db28(0x1aa),_0x31db28(0x170)]))return _0x2837ae[_0x31db28(0x16b)][_0x31db28(0x1ad)]({'attributes':['id'],'raw':!![]})[_0x31db28(0x154)](function(_0x2e1c03){const _0x174149=_0x31db28;_['isEmpty'](_0x2e1c03)?(_0x3cb2c2[_0x174149(0x179)](_0x174149(0x153)),_0x3912d4[_0x174149(0x179)]('c.ListId\x20IS\x20NULL')):(_0x3cb2c2[_0x174149(0x179)](_0x174149(0x1dd),_[_0x174149(0x1ff)](_0x2e1c03,'id')),_0x3912d4[_0x174149(0x179)](_0x174149(0x1dd),_[_0x174149(0x1ff)](_0x2e1c03,'id')));});else return;})[_0xa73f95(0x154)](function(){const _0x2adc41=_0xa73f95;db[_0x2adc41(0x18e)][_0x2adc41(0x202)](_0x3cb2c2[_0x2adc41(0x1fa)](),_0x4d95f3)[_0x2adc41(0x154)](function(_0x3b4caf){const _0x170726=_0x2adc41;_0xb618aa[_0x170726(0x193)]=_0x3b4caf['length'];if(_0xb618aa[_0x170726(0x193)]===0x0)return[];return db['sequelize'][_0x170726(0x202)](_0xdabfba['toString'](),_0x4d95f3);})[_0x2adc41(0x154)](function(_0x10c724){const _0x587d96=_0x2adc41;_0x40540b=_[_0x587d96(0x20f)](_0x10c724,'id'),_0x4d95f3=_[_0x587d96(0x21d)](_0x4d95f3,{'model':db[_0x587d96(0x1b4)],'mapToModel':!![],'raw':!![],'nest':!![]});_0x2837ae[_0x587d96(0x202)][_0x587d96(0x201)]?_0x360b74[_0x587d96(0x173)][_0x587d96(0x1c6)](function(_0x2b038f){_0x3912d4['field']('c.'+_0x2b038f);}):(_0x3912d4[_0x587d96(0x1aa)](_0x587d96(0x1b5)),_0x3912d4['field'](_0x587d96(0x1cc)),_0x3912d4[_0x587d96(0x1aa)](_0x587d96(0x178)),_0x3912d4['field']('c.phone'),_0x3912d4[_0x587d96(0x1aa)]('c.mobile'),_0x3912d4['field']('c.fax'),_0x3912d4['field']('c.email'),_0x3912d4[_0x587d96(0x1aa)]('c.ListId'),_0x3912d4[_0x587d96(0x1aa)]('c.deletedAt'),_0x3912d4[_0x587d96(0x1aa)]('GROUP_CONCAT(DISTINCT\x20t.id)',_0x587d96(0x181)));if(_0x360b74[_0x587d96(0x180)])_0x3912d4['limit'](_0x360b74[_0x587d96(0x180)]);if(_0x360b74[_0x587d96(0x198)])_0x3912d4[_0x587d96(0x198)](_0x360b74[_0x587d96(0x198)]);return db['sequelize'][_0x587d96(0x202)](_0x3912d4[_0x587d96(0x1fa)](),_0x4d95f3);})['then'](function(_0x52f051){const _0x2f419f=_0x2adc41;return _0x52f051['forEach'](function(_0xb6799a){const _0x549e31=a151_0x5755;_0xb6799a['TagIds']&&(_0xb6799a[_0x549e31(0x1a7)]=[],_0xb6799a[_0x549e31(0x181)][_0x549e31(0x1d4)](',')[_0x549e31(0x1c6)](function(_0x58bda4){_0xb6799a['Tags']['push'](_0x40540b[_0x58bda4]);})),delete _0xb6799a[_0x549e31(0x181)];}),_0xb618aa[_0x2f419f(0x20e)]=_0x52f051,_0xb618aa;})['then'](respondWithFilteredResult(_0x3f6e75,_0x360b74));});})[_0x3b979f(0x1ef)](handleError(_0x3f6e75,null));},exports[a151_0xba8f98(0x1a2)]=function(_0x32b584,_0x465519){const _0x54ad56=a151_0xba8f98;return db['CmContact'][_0x54ad56(0x157)]({'where':{'id':_0x32b584[_0x54ad56(0x169)]['id']}})['then'](handleEntityNotFound(_0x465519,null))[_0x54ad56(0x154)](removeEntity(_0x465519,null))[_0x54ad56(0x1ef)](handleError(_0x465519,null));},exports['describe']=function(_0xde7fa8,_0x2f811d){const _0x5f5de5=a151_0xba8f98;return db[_0x5f5de5(0x1b4)][_0x5f5de5(0x177)]()['then'](function(_0x5b4d64){const _0x251a9f=_0x5f5de5;delete _0x5b4d64[_0x251a9f(0x187)];for(let _0x592346=0x0;_0x592346{const _0x29252b=_0x3639ba,_0x393c30={'where':{[Op['or']]:[]},'defaults':_0x5e96c2,'fields':_[_0x29252b(0x1ab)](_0x15e6c9),'raw':!![]};if(_0x5e96c2[_0x29252b(0x1fd)]){for(let _0x1b5163=0x0;_0x1b5163<_0x5e96c2[_0x29252b(0x1fd)][_0x29252b(0x162)];_0x1b5163++){const _0x487e00={};_0x487e00[_0x5e96c2['duplicates'][_0x1b5163]]=_0x5e96c2[_0x5e96c2['duplicates'][_0x1b5163]],_0x393c30['where'][Op['or']][_0x29252b(0x1d7)](_0x487e00);}_0x393c30[_0x29252b(0x179)][_0x29252b(0x15d)]=_0x5e96c2[_0x29252b(0x15d)];}return db['CmContact'][_0x29252b(0x21b)](_0x393c30)['then'](function([,_0x4b1afa]){_0x4b1afa?_0x2fd4a4++:_0x14332b++;})[_0x29252b(0x1ef)](function(_0x2df412){const _0x5128d5=_0x29252b;console[_0x5128d5(0x207)](_0x2df412),_0x501ac3++;});}));})['then'](function(_0x3bc0fb){if(_0x3bc0fb)return{'success':_0x2fd4a4,'failure':_0x501ac3,'duplicates':_0x14332b};})['then'](respondWithResult(_0x2463d3,0xc9))['catch'](handleError(_0x2463d3,null));},exports[a151_0xba8f98(0x192)]=function(_0x29bbae,_0x5ccd59){const _0x2fc45b=a151_0xba8f98;let _0x230a1e;return db[_0x2fc45b(0x1b4)][_0x2fc45b(0x177)]()[_0x2fc45b(0x154)](function(_0x3c29dc){const _0x12bc6d=_0x2fc45b;return db[_0x12bc6d(0x1b4)][_0x12bc6d(0x157)]({'where':{'id':_0x29bbae[_0x12bc6d(0x169)]['id']},'include':[{'model':db['Tag'],'as':_0x12bc6d(0x1a7),'attributes':['id','name',_0x12bc6d(0x16e)],'required':_0x29bbae['query'][_0x12bc6d(0x163)]?!![]:![]}],'attributes':_[_0x12bc6d(0x1ab)](_0x3c29dc)});})[_0x2fc45b(0x154)](function(_0x58cbcb){const _0x2456df=_0x2fc45b;_0x230a1e=_0x58cbcb[_0x2456df(0x1fb)]({'plain':!![]});const _0x49b4bc={'where':{[Op[_0x2456df(0x155)]]:[{'ListId':{[Op['ne']]:null}}]}};return _0x58cbcb&&_0x58cbcb['ListId']&&(_0x58cbcb[_0x2456df(0x15d)]&&_0x49b4bc[_0x2456df(0x179)][Op['and']][_0x2456df(0x1d7)]({'ListId':{[Op['ne']]:_0x58cbcb['ListId']}})),db['CmCustomField']['findAll'](_0x49b4bc);})['then'](function(_0x57a7bb){const _0x59d12d=_0x2fc45b;return _[_0x59d12d(0x1bb)](_0x230a1e,_['map'](_0x57a7bb,function(_0x37bde6){const _0x5c107b=_0x59d12d;return util[_0x5c107b(0x17f)]('cf_%d',_0x37bde6['id']);}));})['then'](handleEntityNotFound(_0x5ccd59,null))[_0x2fc45b(0x154)](respondWithResult(_0x5ccd59,null))['catch'](handleError(_0x5ccd59,null));},exports['update']=function(_0x1f84aa,_0x3500bf){const _0x4ceb57=a151_0xba8f98;let _0x1888b8;return _0x1f84aa[_0x4ceb57(0x1f5)]['id']&&delete _0x1f84aa['body']['id'],db['CmContact'][_0x4ceb57(0x157)]({'where':{'id':_0x1f84aa[_0x4ceb57(0x169)]['id']}})[_0x4ceb57(0x154)](handleEntityNotFound(_0x3500bf,null))[_0x4ceb57(0x154)](saveUpdates(_0x1f84aa[_0x4ceb57(0x1f5)],null))[_0x4ceb57(0x154)](function(_0x59ea2b){const _0x65aefb=_0x4ceb57;_0x1888b8=_0x59ea2b;const _0x3cf592={'where':{[Op[_0x65aefb(0x155)]]:[{'ListId':{[Op['ne']]:null}}]}};return _0x59ea2b&&_0x59ea2b['ListId']&&(_0x59ea2b[_0x65aefb(0x15d)]&&_0x3cf592['where'][Op[_0x65aefb(0x155)]]['push']({'ListId':{[Op['ne']]:_0x59ea2b['ListId']}})),db[_0x65aefb(0x1b3)][_0x65aefb(0x20d)](_0x3cf592);})[_0x4ceb57(0x154)](function(_0x3c92ad){const _0x235e2b=_0x4ceb57;if(_0x3c92ad)return _[_0x235e2b(0x1bb)](_[_0x235e2b(0x1e1)](_0x1f84aa['body'],function(_0x5cb1ef,_0x2fea6b){const _0x2e7014=_0x235e2b;return _[_0x2e7014(0x1b1)](_0x2fea6b,_0x2e7014(0x1e6));}),_['map'](_0x3c92ad,function(_0x2dcbea){const _0x432a38=_0x235e2b;return util[_0x432a38(0x17f)](_0x432a38(0x1e0),_0x2dcbea['id']);}));})[_0x4ceb57(0x154)](function(_0x1255d3){const _0x5ca552=_0x4ceb57;if(_0x1255d3&&!_[_0x5ca552(0x18c)](_0x1255d3)){const _0x526a4b=squel['update']()[_0x5ca552(0x166)](_0x5ca552(0x1ac))[_0x5ca552(0x176)](_0x1255d3)[_0x5ca552(0x179)]('id\x20=\x20?',_0x1f84aa['params']['id'])[_0x5ca552(0x174)]();return db[_0x5ca552(0x18e)][_0x5ca552(0x202)](_0x526a4b['text'],{'replacements':_0x526a4b[_0x5ca552(0x152)]});}})[_0x4ceb57(0x154)](function(){const _0x38ca60=_0x4ceb57;if(_0x1f84aa['body'][_0x38ca60(0x203)]&&_0x1888b8)return db[_0x38ca60(0x219)][_0x38ca60(0x1a9)]({'phone':_0x1f84aa[_0x38ca60(0x1f5)][_0x38ca60(0x203)]},{'where':{'ContactId':_0x1888b8['id']}});})[_0x4ceb57(0x154)](function(){return _0x1888b8;})['then'](respondWithResult(_0x3500bf,null))['catch'](handleError(_0x3500bf,null));},exports[a151_0xba8f98(0x1da)]=function(_0x75d089,_0x13beca){const _0xe24160=a151_0xba8f98;let _0x5c0af4={};const _0x4adda4={};let _0x475dfe,_0x59ea44;return db[_0xe24160(0x1b4)][_0xe24160(0x157)]({'where':{'id':_0x75d089[_0xe24160(0x169)]['id']}})[_0xe24160(0x154)](handleEntityNotFound(_0x13beca,null))[_0xe24160(0x154)](function(_0x4b3486){const _0x28c4df=_0xe24160;if(_0x4b3486)return _0x475dfe=_0x4b3486,_0x4adda4['model']=_[_0x28c4df(0x1ab)](db[_0x28c4df(0x1b6)]['rawAttributes']),_0x4adda4['query']=_['keys'](_0x75d089[_0x28c4df(0x202)]),_0x4adda4[_0x28c4df(0x185)]=_[_0x28c4df(0x184)](_0x4adda4[_0x28c4df(0x188)],_0x4adda4[_0x28c4df(0x202)]),_0x5c0af4[_0x28c4df(0x173)]=_[_0x28c4df(0x184)](_0x4adda4[_0x28c4df(0x188)],qs[_0x28c4df(0x201)](_0x75d089['query'][_0x28c4df(0x201)])),_0x5c0af4[_0x28c4df(0x173)]=_0x5c0af4['attributes'][_0x28c4df(0x162)]?_0x5c0af4[_0x28c4df(0x173)]:_0x4adda4['model'],_0x5c0af4[_0x28c4df(0x1e4)]=qs['sort'](_0x75d089[_0x28c4df(0x202)][_0x28c4df(0x1b7)]),_0x5c0af4['where']=qs[_0x28c4df(0x185)](_[_0x28c4df(0x17b)](_0x75d089[_0x28c4df(0x202)],_0x4adda4[_0x28c4df(0x185)])),_0x75d089[_0x28c4df(0x202)]['filter']&&(_0x5c0af4['where']=_['merge'](_0x5c0af4['where'],{[Op['or']]:_['map'](_0x5c0af4[_0x28c4df(0x173)],function(_0x3340f0){const _0x161084=_0x28c4df,_0x1fbb2a={};return _0x1fbb2a[_0x3340f0]={[Op['like']]:'%'+_0x75d089[_0x161084(0x202)][_0x161084(0x1f7)]+'%'},_0x1fbb2a;})})),_0x5c0af4=_['merge']({},_0x5c0af4,_0x75d089[_0x28c4df(0x1f6)]),_0x475dfe[_0x28c4df(0x1da)](_0x5c0af4);})['then'](function(_0x442d98){const _0x43227f=_0xe24160;if(_0x442d98)return _0x59ea44=_0x442d98[_0x43227f(0x162)],typeof _0x75d089[_0x43227f(0x202)][_0x43227f(0x1eb)]===_0x43227f(0x1d2)&&(_0x5c0af4[_0x43227f(0x180)]=qs['limit'](_0x75d089['query']['limit']),_0x5c0af4[_0x43227f(0x198)]=qs[_0x43227f(0x198)](_0x75d089[_0x43227f(0x202)]['offset'])),_0x475dfe[_0x43227f(0x1da)](_0x5c0af4);})['then'](function(_0x42d011){if(_0x42d011)return _0x42d011?{'count':_0x59ea44,'rows':_0x42d011}:null;})[_0xe24160(0x154)](respondWithResult(_0x13beca,null))['catch'](handleError(_0x13beca,null));},exports[a151_0xba8f98(0x1a6)]=function(_0x286435,_0x6ebe2f){const _0xf0610e=a151_0xba8f98;return _0x286435[_0xf0610e(0x1f5)]['id']&&delete _0x286435[_0xf0610e(0x1f5)]['id'],db[_0xf0610e(0x1b4)]['findOne']({'where':{'id':_0x286435['params']['id']}})[_0xf0610e(0x154)](handleEntityNotFound(_0x6ebe2f,null))[_0xf0610e(0x154)](function(_0x3928d0){const _0x55e965=_0xf0610e;if(_0x3928d0)return _0x3928d0[_0x55e965(0x1a6)](_0x286435['body'][_0x55e965(0x1e3)]||[]);return null;})[_0xf0610e(0x154)](respondWithResult(_0x6ebe2f,null))[_0xf0610e(0x1ef)](handleError(_0x6ebe2f,null));},exports[a151_0xba8f98(0x1b9)]=function(_0x19dd2b,_0x11042e){const _0x2b1513=a151_0xba8f98;let _0x1b1e47={'raw':![],'where':{}};const _0x31317={},_0x19d7cb={'count':0x0,'rows':[]};return db[_0x2b1513(0x1b4)]['findOne']({'where':{'id':_0x19dd2b[_0x2b1513(0x169)]['id']}})['then'](handleEntityNotFound(_0x11042e,null))[_0x2b1513(0x154)](function(_0x45631d){const _0x13be65=_0x2b1513;if(_0x45631d)return _0x31317[_0x13be65(0x188)]=_[_0x13be65(0x1ab)](db['CmHopper'][_0x13be65(0x1a5)]),_0x31317['query']=_[_0x13be65(0x1ab)](_0x19dd2b[_0x13be65(0x202)]),_0x31317[_0x13be65(0x185)]=_[_0x13be65(0x184)](_0x31317[_0x13be65(0x188)],_0x31317[_0x13be65(0x202)]),_0x1b1e47[_0x13be65(0x173)]=_[_0x13be65(0x184)](_0x31317[_0x13be65(0x188)],qs[_0x13be65(0x201)](_0x19dd2b[_0x13be65(0x202)][_0x13be65(0x201)])),_0x1b1e47[_0x13be65(0x173)]=_0x1b1e47[_0x13be65(0x173)]['length']?_0x1b1e47[_0x13be65(0x173)]:_0x31317['model'],typeof _0x19dd2b[_0x13be65(0x202)]['nolimit']==='undefined'&&(_0x1b1e47[_0x13be65(0x180)]=qs[_0x13be65(0x180)](_0x19dd2b[_0x13be65(0x202)][_0x13be65(0x180)]),_0x1b1e47['offset']=qs['offset'](_0x19dd2b['query'][_0x13be65(0x198)])),_0x1b1e47[_0x13be65(0x1e4)]=qs[_0x13be65(0x1b7)](_0x19dd2b[_0x13be65(0x202)][_0x13be65(0x1b7)]),_0x1b1e47[_0x13be65(0x179)]=qs['filters'](_['pick'](_0x19dd2b[_0x13be65(0x202)],_0x31317[_0x13be65(0x185)])),_0x1b1e47[_0x13be65(0x179)][_0x13be65(0x1d8)]=_0x45631d['id'],_0x19dd2b[_0x13be65(0x202)]['filter']&&(_0x1b1e47[_0x13be65(0x179)]=_['merge'](_0x1b1e47[_0x13be65(0x179)],{[Op['or']]:_[_0x13be65(0x1ff)](_0x1b1e47[_0x13be65(0x173)],function(_0x3b2d22){const _0x1abff8=_0x13be65,_0x5f0ca4={};return _0x5f0ca4[_0x3b2d22]={[Op[_0x1abff8(0x165)]]:'%'+_0x19dd2b[_0x1abff8(0x202)][_0x1abff8(0x1f7)]+'%'},_0x5f0ca4;})})),_0x1b1e47=_[_0x13be65(0x21d)]({},_0x1b1e47,_0x19dd2b[_0x13be65(0x1f6)]),db['CmHopper'][_0x13be65(0x193)]({'where':_0x1b1e47[_0x13be65(0x179)]})[_0x13be65(0x154)](function(_0x36fff9){const _0x554714=_0x13be65;return _0x19d7cb[_0x554714(0x193)]=_0x36fff9,_0x19dd2b[_0x554714(0x202)]['includeAll']&&(_0x1b1e47[_0x554714(0x217)]=[{'all':!![]}]),db[_0x554714(0x219)][_0x554714(0x20d)](_0x1b1e47);})[_0x13be65(0x154)](function(_0x217cfd){return _0x19d7cb['rows']=_0x217cfd,_0x19d7cb;});})[_0x2b1513(0x154)](respondWithFilteredResult(_0x11042e,_0x1b1e47))['catch'](handleError(_0x11042e,null));},exports['getHopperHistories']=function(_0x3f63e3,_0x16e885){const _0x596c82=a151_0xba8f98;let _0x5a79ff={'raw':!![],'where':{}};const _0x1f90ea={},_0x50a5ba={'count':0x0,'rows':[]};return db[_0x596c82(0x1b4)][_0x596c82(0x157)]({'where':{'id':_0x3f63e3[_0x596c82(0x169)]['id']}})['then'](handleEntityNotFound(_0x16e885,null))[_0x596c82(0x154)](function(_0x51495d){const _0x37ea72=_0x596c82;if(_0x51495d)return _0x1f90ea['model']=_['keys'](db[_0x37ea72(0x216)][_0x37ea72(0x1a5)]),_0x1f90ea[_0x37ea72(0x202)]=_['keys'](_0x3f63e3[_0x37ea72(0x202)]),_0x1f90ea[_0x37ea72(0x185)]=_[_0x37ea72(0x184)](_0x1f90ea[_0x37ea72(0x188)],_0x1f90ea['query']),_0x5a79ff['attributes']=_['intersection'](_0x1f90ea[_0x37ea72(0x188)],qs[_0x37ea72(0x201)](_0x3f63e3[_0x37ea72(0x202)][_0x37ea72(0x201)])),_0x5a79ff[_0x37ea72(0x173)]=_0x5a79ff[_0x37ea72(0x173)][_0x37ea72(0x162)]?_0x5a79ff['attributes']:_0x1f90ea[_0x37ea72(0x188)],typeof _0x3f63e3[_0x37ea72(0x202)][_0x37ea72(0x1eb)]===_0x37ea72(0x1d2)&&(_0x5a79ff['limit']=qs['limit'](_0x3f63e3[_0x37ea72(0x202)][_0x37ea72(0x180)]),_0x5a79ff[_0x37ea72(0x198)]=qs[_0x37ea72(0x198)](_0x3f63e3[_0x37ea72(0x202)]['offset'])),_0x5a79ff[_0x37ea72(0x1e4)]=qs['sort'](_0x3f63e3[_0x37ea72(0x202)][_0x37ea72(0x1b7)]),_0x5a79ff[_0x37ea72(0x179)]=qs['filters'](_[_0x37ea72(0x17b)](_0x3f63e3[_0x37ea72(0x202)],_0x1f90ea[_0x37ea72(0x185)])),_0x5a79ff[_0x37ea72(0x179)]['ContactId']=_0x51495d['id'],_0x3f63e3['query'][_0x37ea72(0x1f7)]&&(_0x5a79ff['where']=_[_0x37ea72(0x21d)](_0x5a79ff[_0x37ea72(0x179)],{[Op['or']]:_[_0x37ea72(0x1ff)](_0x5a79ff[_0x37ea72(0x173)],function(_0x3d302a){const _0x42801e=_0x37ea72,_0x2f5ef8={};return _0x2f5ef8[_0x3d302a]={[Op[_0x42801e(0x165)]]:'%'+_0x3f63e3[_0x42801e(0x202)][_0x42801e(0x1f7)]+'%'},_0x2f5ef8;})})),_0x5a79ff=_[_0x37ea72(0x21d)]({},_0x5a79ff,_0x3f63e3[_0x37ea72(0x1f6)]),db[_0x37ea72(0x216)][_0x37ea72(0x193)]({'where':_0x5a79ff[_0x37ea72(0x179)]})[_0x37ea72(0x154)](function(_0x5c237d){const _0x45f48b=_0x37ea72;return _0x50a5ba[_0x45f48b(0x193)]=_0x5c237d,_0x3f63e3[_0x45f48b(0x202)][_0x45f48b(0x211)]&&(_0x5a79ff[_0x45f48b(0x217)]=[{'all':!![]}]),db[_0x45f48b(0x216)][_0x45f48b(0x20d)](_0x5a79ff);})[_0x37ea72(0x154)](function(_0x2b38d2){const _0x3fd4d4=_0x37ea72;return _0x50a5ba[_0x3fd4d4(0x20e)]=_0x2b38d2,_0x50a5ba;});})[_0x596c82(0x154)](respondWithFilteredResult(_0x16e885,_0x5a79ff))[_0x596c82(0x1ef)](handleError(_0x16e885,null));},exports[a151_0xba8f98(0x1c4)]=function(_0x13a110,_0x155646){const _0x2def1b=a151_0xba8f98;let _0x77e3a7={'raw':!![],'where':{}};const _0x5177f6={},_0x20e68a={'count':0x0,'rows':[]};return db[_0x2def1b(0x1b4)][_0x2def1b(0x157)]({'where':{'id':_0x13a110[_0x2def1b(0x169)]['id']}})[_0x2def1b(0x154)](handleEntityNotFound(_0x155646,null))[_0x2def1b(0x154)](function(_0x698078){const _0x54c064=_0x2def1b;if(_0x698078)return _0x5177f6[_0x54c064(0x188)]=_[_0x54c064(0x1ab)](db[_0x54c064(0x1f0)][_0x54c064(0x1a5)]),_0x5177f6[_0x54c064(0x202)]=_[_0x54c064(0x1ab)](_0x13a110[_0x54c064(0x202)]),_0x5177f6[_0x54c064(0x185)]=_[_0x54c064(0x184)](_0x5177f6[_0x54c064(0x188)],_0x5177f6[_0x54c064(0x202)]),_0x77e3a7[_0x54c064(0x173)]=_['intersection'](_0x5177f6[_0x54c064(0x188)],qs['fields'](_0x13a110['query'][_0x54c064(0x201)])),_0x77e3a7[_0x54c064(0x173)]=_0x77e3a7[_0x54c064(0x173)][_0x54c064(0x162)]?_0x77e3a7[_0x54c064(0x173)]:_0x5177f6[_0x54c064(0x188)],typeof _0x13a110[_0x54c064(0x202)][_0x54c064(0x1eb)]===_0x54c064(0x1d2)&&(_0x77e3a7[_0x54c064(0x180)]=qs['limit'](_0x13a110[_0x54c064(0x202)]['limit']),_0x77e3a7['offset']=qs['offset'](_0x13a110[_0x54c064(0x202)]['offset'])),_0x77e3a7[_0x54c064(0x1e4)]=qs[_0x54c064(0x1b7)](_0x13a110['query'][_0x54c064(0x1b7)]),_0x77e3a7[_0x54c064(0x179)]=qs[_0x54c064(0x185)](_[_0x54c064(0x17b)](_0x13a110[_0x54c064(0x202)],_0x5177f6[_0x54c064(0x185)])),_0x77e3a7[_0x54c064(0x179)][_0x54c064(0x1d8)]=_0x698078['id'],_0x13a110[_0x54c064(0x202)][_0x54c064(0x1f7)]&&(_0x77e3a7['where']=_[_0x54c064(0x21d)](_0x77e3a7[_0x54c064(0x179)],{[Op['or']]:_['map'](_0x77e3a7[_0x54c064(0x173)],function(_0x41027e){const _0x576dd0=_0x54c064,_0x1c1358={};return _0x1c1358[_0x41027e]={[Op[_0x576dd0(0x165)]]:'%'+_0x13a110['query'][_0x576dd0(0x1f7)]+'%'},_0x1c1358;})})),_0x77e3a7=_[_0x54c064(0x21d)]({},_0x77e3a7,_0x13a110[_0x54c064(0x1f6)]),db[_0x54c064(0x1f0)][_0x54c064(0x193)]({'where':_0x77e3a7['where']})[_0x54c064(0x154)](function(_0x30876b){const _0x56f2f7=_0x54c064;return _0x20e68a[_0x56f2f7(0x193)]=_0x30876b,_0x13a110[_0x56f2f7(0x202)][_0x56f2f7(0x211)]&&(_0x77e3a7[_0x56f2f7(0x217)]=[{'all':!![]}]),db[_0x56f2f7(0x1f0)][_0x56f2f7(0x20d)](_0x77e3a7);})[_0x54c064(0x154)](function(_0x348b7a){return _0x20e68a['rows']=_0x348b7a,_0x20e68a;});})[_0x2def1b(0x154)](respondWithFilteredResult(_0x155646,_0x77e3a7))[_0x2def1b(0x1ef)](handleError(_0x155646,null));},exports[a151_0xba8f98(0x160)]=function(_0x5cf65f,_0xf2a5b7){const _0x4e722e=a151_0xba8f98;let _0x8cb306={'raw':!![],'where':{}};const _0x18790d={},_0x5df9a5={'count':0x0,'rows':[]};return db[_0x4e722e(0x1b4)][_0x4e722e(0x157)]({'where':{'id':_0x5cf65f[_0x4e722e(0x169)]['id']}})[_0x4e722e(0x154)](handleEntityNotFound(_0xf2a5b7,null))[_0x4e722e(0x154)](function(_0x4aa50a){const _0x18347c=_0x4e722e;if(_0x4aa50a)return _0x18790d[_0x18347c(0x188)]=_[_0x18347c(0x1ab)](db[_0x18347c(0x18b)][_0x18347c(0x1a5)]),_0x18790d[_0x18347c(0x202)]=_[_0x18347c(0x1ab)](_0x5cf65f[_0x18347c(0x202)]),_0x18790d[_0x18347c(0x185)]=_[_0x18347c(0x184)](_0x18790d['model'],_0x18790d['query']),_0x8cb306[_0x18347c(0x173)]=_[_0x18347c(0x184)](_0x18790d[_0x18347c(0x188)],qs[_0x18347c(0x201)](_0x5cf65f[_0x18347c(0x202)][_0x18347c(0x201)])),_0x8cb306['attributes']=_0x8cb306[_0x18347c(0x173)][_0x18347c(0x162)]?_0x8cb306[_0x18347c(0x173)]:_0x18790d[_0x18347c(0x188)],typeof _0x5cf65f[_0x18347c(0x202)][_0x18347c(0x1eb)]==='undefined'&&(_0x8cb306[_0x18347c(0x180)]=qs[_0x18347c(0x180)](_0x5cf65f['query'][_0x18347c(0x180)]),_0x8cb306['offset']=qs[_0x18347c(0x198)](_0x5cf65f['query'][_0x18347c(0x198)])),_0x8cb306[_0x18347c(0x1e4)]=qs[_0x18347c(0x1b7)](_0x5cf65f[_0x18347c(0x202)][_0x18347c(0x1b7)]),_0x8cb306[_0x18347c(0x179)]=qs['filters'](_['pick'](_0x5cf65f[_0x18347c(0x202)],_0x18790d[_0x18347c(0x185)])),_0x8cb306[_0x18347c(0x179)][_0x18347c(0x1d8)]=_0x4aa50a['id'],_0x5cf65f['query'][_0x18347c(0x1f7)]&&(_0x8cb306[_0x18347c(0x179)]=_[_0x18347c(0x21d)](_0x8cb306['where'],{[Op['or']]:_['map'](_0x8cb306['attributes'],function(_0x25c472){const _0x46bede={};return _0x46bede[_0x25c472]={[Op['like']]:'%'+_0x5cf65f['query']['filter']+'%'},_0x46bede;})})),_0x8cb306=_['merge']({},_0x8cb306,_0x5cf65f[_0x18347c(0x1f6)]),db[_0x18347c(0x18b)]['count']({'where':_0x8cb306['where']})[_0x18347c(0x154)](function(_0xa7b2fd){const _0x275ddc=_0x18347c;return _0x5df9a5['count']=_0xa7b2fd,_0x5cf65f[_0x275ddc(0x202)][_0x275ddc(0x211)]&&(_0x8cb306['include']=[{'all':!![]}]),db[_0x275ddc(0x18b)][_0x275ddc(0x20d)](_0x8cb306);})[_0x18347c(0x154)](function(_0x51816d){return _0x5df9a5['rows']=_0x51816d,_0x5df9a5;});})[_0x4e722e(0x154)](respondWithFilteredResult(_0xf2a5b7,_0x8cb306))['catch'](handleError(_0xf2a5b7,null));},exports['upload']=function(_0x2c7c0e,_0x4d9526){const _0x28441f=a151_0xba8f98,_0x448e8b=fs['createReadStream'](_0x2c7c0e[_0x28441f(0x19e)][_0x28441f(0x1e8)]);Papa[_0x28441f(0x1df)](_0x448e8b,{'header':!![],'skipEmptyLines':!![],'preview':0x1,'complete':function(_0x5b385f){return _0x4d9526['status'](0xc8)['json']({'file':_0x2c7c0e['file'],'fields':_0x5b385f['meta']['fields']});}});},exports['import']=function(_0x45b22a,_0x57e3dc){const _0x275b08=a151_0xba8f98;return db[_0x275b08(0x170)][_0x275b08(0x20d)]({'raw':!![],'attributes':['id'],'where':{'role':_0x275b08(0x213)}})[_0x275b08(0x154)](function(_0x324a54){const _0x4ceee6=_0x275b08;let _0x106bfa=![];if(!_0x45b22a[_0x4ceee6(0x1f5)]['ListId'])throw new Error('No\x20ListId\x20specified');if(!_0x45b22a[_0x4ceee6(0x1f5)][_0x4ceee6(0x16d)]['phone'])throw new Error(_0x4ceee6(0x196));if(!_0x45b22a[_0x4ceee6(0x1f5)][_0x4ceee6(0x16d)][_0x4ceee6(0x17d)])throw new Error(_0x4ceee6(0x1a4));if(!_0x45b22a[_0x4ceee6(0x1f5)][_0x4ceee6(0x16f)])throw new Error('Unable\x20to\x20synchronize\x20socket,\x20no\x20timestamp\x20passed');const _0x18698a=path[_0x4ceee6(0x191)](config[_0x4ceee6(0x1e7)],'files/tmp',_0x45b22a[_0x4ceee6(0x169)]['id']),_0x8cde1a=JSON[_0x4ceee6(0x194)](_0x45b22a[_0x4ceee6(0x1f5)]),_0x4efbc2=JSON[_0x4ceee6(0x194)](_0x324a54);logger[_0x4ceee6(0x1f1)](_0x4ceee6(0x158)+CSV2_SCRIPT+_0x4ceee6(0x1e2)+_0x18698a+_0x4ceee6(0x1cd)+_0x8cde1a+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20and\x20agents\x20=\x20'+_0x4efbc2);const _0x26cdca=fork(CSV2_SCRIPT,[_0x18698a,_0x8cde1a,_0x4efbc2],{'stdio':_0x4ceee6(0x20b)});_0x26cdca['on'](_0x4ceee6(0x190),()=>{const _0xa1239a=_0x4ceee6;return _0x106bfa=!![],_0x57e3dc['status'](0xc8)['json']({'message':_0xa1239a(0x17c),'pid':_0x26cdca[_0xa1239a(0x1b8)]});}),_0x26cdca['on'](_0x4ceee6(0x207),_0xd19137=>{const _0x2daca2=_0x4ceee6;logger[_0x2daca2(0x207)](_0x2daca2(0x210)+CSV2_SCRIPT+_0x2daca2(0x200)+_0xd19137[_0x2daca2(0x190)]+'\x20'+_0xd19137[_0x2daca2(0x195)]);}),_0x26cdca['stdin']&&_0x26cdca['stderr']?(_0x26cdca[_0x4ceee6(0x1bd)]['on'](_0x4ceee6(0x1ce),_0x50dd4c=>{const _0x45facb=_0x4ceee6;logger[_0x45facb(0x1f1)](_0x45facb(0x218)+_0x50dd4c);}),_0x26cdca[_0x4ceee6(0x208)]['on']('data',_0x391969=>{const _0x552c69=_0x4ceee6;logger[_0x552c69(0x207)](_0x552c69(0x151)+_0x391969);})):logger[_0x4ceee6(0x1f1)]('Missing\x20stdin\x20and\x20stdout\x20on\x20child\x20process'),_0x26cdca['on'](_0x4ceee6(0x183),_0x2fc383=>{const _0x155930=_0x4ceee6;if(_0x2fc383&&!_0x106bfa)return _0x57e3dc[_0x155930(0x16a)](0x1f4)['json']({'message':_0x155930(0x1dc),'pid':_0x26cdca[_0x155930(0x1b8)]});});})['catch'](handleError(_0x57e3dc,null));}; \ No newline at end of file diff --git a/server/api/cmContact/cmContact.events.js b/server/api/cmContact/cmContact.events.js index 72e9ff3..7157bed 100644 --- a/server/api/cmContact/cmContact.events.js +++ b/server/api/cmContact/cmContact.events.js @@ -1 +1 @@ -const a152_0x32e1=['exports','../../mysqldb','save','events','emit','addHook','update'];(function(_0x2e044b,_0x5245f7){const _0x32e109=function(_0x431b55){while(--_0x431b55){_0x2e044b['push'](_0x2e044b['shift']());}};_0x32e109(++_0x5245f7);}(a152_0x32e1,0x118));const a152_0x431b=function(_0x2e044b,_0x5245f7){_0x2e044b=_0x2e044b-0x1cd;let _0x32e109=a152_0x32e1[_0x2e044b];return _0x32e109;};const a152_0x13db00=a152_0x431b;'use strict';const EventEmitter=require(a152_0x13db00(0x1d0)),CmContact=require(a152_0x13db00(0x1ce))['db']['CmContact'],CmContactEvents=new EventEmitter();CmContactEvents['setMaxListeners'](0x0);const events={'afterCreate':a152_0x13db00(0x1cf),'afterUpdate':a152_0x13db00(0x1d3),'afterDestroy':'remove'};function emitEvent(_0x2047d2){return function(_0x223a27){const _0x527bb3=a152_0x431b;CmContactEvents[_0x527bb3(0x1d1)](_0x2047d2+':'+_0x223a27['id'],_0x223a27),CmContactEvents[_0x527bb3(0x1d1)](_0x2047d2,_0x223a27);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];CmContact[a152_0x13db00(0x1d2)](e,emitEvent(event));}}module[a152_0x13db00(0x1cd)]=CmContactEvents; \ No newline at end of file +const a152_0x18c8=['addHook','update','emit','exports','remove','../../mysqldb','CmContact','save','undefined'];(function(_0x435908,_0x249855){const _0x18c8b7=function(_0x39f620){while(--_0x39f620){_0x435908['push'](_0x435908['shift']());}};_0x18c8b7(++_0x249855);}(a152_0x18c8,0x68));const a152_0x39f6=function(_0x435908,_0x249855){_0x435908=_0x435908-0x160;let _0x18c8b7=a152_0x18c8[_0x435908];return _0x18c8b7;};const a152_0x43d664=a152_0x39f6;'use strict';const EventEmitter=require('events'),CmContact=require(a152_0x43d664(0x160))['db'][a152_0x43d664(0x161)],CmContactEvents=new EventEmitter();CmContactEvents['setMaxListeners'](0x0);const events={'afterCreate':a152_0x43d664(0x162),'afterUpdate':a152_0x43d664(0x165),'afterDestroy':a152_0x43d664(0x168)};function emitEvent(_0x58f017){return function(_0x20491e){const _0x5cca09=a152_0x39f6;CmContactEvents['emit'](_0x58f017+':'+_0x20491e['id'],_0x20491e),CmContactEvents[_0x5cca09(0x166)](_0x58f017,_0x20491e);};}for(const e in events){if(typeof events[e]!==a152_0x43d664(0x163)){const event=events[e];CmContact[a152_0x43d664(0x164)](e,emitEvent(event));}}module[a152_0x43d664(0x167)]=CmContactEvents; \ No newline at end of file diff --git a/server/api/cmContact/cmContact.model.js b/server/api/cmContact/cmContact.model.js index c2f3ec0..af1b51c 100644 --- a/server/api/cmContact/cmContact.model.js +++ b/server/api/cmContact/cmContact.model.js @@ -1 +1 @@ -const a153_0x3df1=['./cmContact.options','function','sequelize','init','exports','./cmContact.attributes','CmContact'];(function(_0x1f8bc5,_0x32d35e){const _0x3df157=function(_0x586af8){while(--_0x586af8){_0x1f8bc5['push'](_0x1f8bc5['shift']());}};_0x3df157(++_0x32d35e);}(a153_0x3df1,0x1cc));const a153_0x586a=function(_0x1f8bc5,_0x32d35e){_0x1f8bc5=_0x1f8bc5-0x177;let _0x3df157=a153_0x3df1[_0x1f8bc5];return _0x3df157;};const a153_0x48fbe4=a153_0x586a;'use strict';const {Model}=require(a153_0x48fbe4(0x17b)),{attributes}=require(a153_0x48fbe4(0x177)),{options}=require(a153_0x48fbe4(0x179));class CmContact extends Model{}function init(_0x26cc35,_0x312f74){const _0x53a264=a153_0x48fbe4,_0x70c9d1=options(_0x26cc35),_0xc0bef5=typeof _0x312f74===_0x53a264(0x17a)?_0x312f74(_0x70c9d1):_0x70c9d1;return CmContact['init'](attributes,_0xc0bef5),CmContact;}module['exports'][a153_0x48fbe4(0x178)]=CmContact,module[a153_0x48fbe4(0x17d)][a153_0x48fbe4(0x17c)]=init; \ No newline at end of file +const a153_0x3180=['exports','init','CmContact','./cmContact.attributes','./cmContact.options','function','sequelize'];(function(_0x4ea1fc,_0x480ec0){const _0x31803d=function(_0x2a300f){while(--_0x2a300f){_0x4ea1fc['push'](_0x4ea1fc['shift']());}};_0x31803d(++_0x480ec0);}(a153_0x3180,0x131));const a153_0x2a30=function(_0x4ea1fc,_0x480ec0){_0x4ea1fc=_0x4ea1fc-0x95;let _0x31803d=a153_0x3180[_0x4ea1fc];return _0x31803d;};const a153_0x2522c3=a153_0x2a30;'use strict';const {Model}=require(a153_0x2522c3(0x97)),{attributes}=require(a153_0x2522c3(0x9b)),{options}=require(a153_0x2522c3(0x95));class CmContact extends Model{}function init(_0x40b85d,_0x23bd2f){const _0x2dc0f7=a153_0x2522c3,_0x3e967d=options(_0x40b85d),_0x1af1c0=typeof _0x23bd2f===_0x2dc0f7(0x96)?_0x23bd2f(_0x3e967d):_0x3e967d;return CmContact[_0x2dc0f7(0x99)](attributes,_0x1af1c0),CmContact;}module[a153_0x2522c3(0x98)][a153_0x2522c3(0x9a)]=CmContact,module[a153_0x2522c3(0x98)]['init']=init; \ No newline at end of file diff --git a/server/api/cmContact/cmContact.options.js b/server/api/cmContact/cmContact.options.js index 88e7f4b..f3151e6 100644 --- a/server/api/cmContact/cmContact.options.js +++ b/server/api/cmContact/cmContact.options.js @@ -1 +1 @@ -const a154_0x1edb=['lodash','always','Lists','options','all','outbound','ListId','length','destroy','findAll','Campaign','[CmContact][afterDestroy][Error]','get','cmContact,\x20afterCreate\x20','cmContact','YYYY-MM-DD\x20HH:mm:ss','afterCreate','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20onlyIfOpen,\x20exist\x20in\x20hopper\x20VoiceQueue\x20','format','exports','models','ContactId','catch','phone','fti_cm_contacts','dialCheckDuplicateType','BlackLists','lastName','inspect','util','VoiceQueue','priority','CmHopperBlack','findOne','email','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20always,\x20exist\x20in\x20hopperFinal\x20VoiceQueue\x20','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20always,\x20exist\x20in\x20hopper\x20VoiceQueue\x20','CmHopper','CmList','create','CampaignId','error','fax','cm_contacts','firstName','callbackUniqueid','cmContact,\x20afterCreate,\x20','../../config/logger','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20onlyIfOpen,\x20exist\x20in\x20hopper\x20Campaign\x20','List\x20not\x20found','scheduledat','isNil','message','mobile','api','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20always,\x20exist\x20in\x20hopper\x20Campaign\x20','cmContact,\x20%s,\x20%s','then'];(function(_0x15427b,_0x307f0d){const _0x1edb99=function(_0x26c496){while(--_0x26c496){_0x15427b['push'](_0x15427b['shift']());}};_0x1edb99(++_0x307f0d);}(a154_0x1edb,0x159));const a154_0x26c4=function(_0x15427b,_0x307f0d){_0x15427b=_0x15427b-0x1f3;let _0x1edb99=a154_0x1edb[_0x15427b];return _0x1edb99;};const a154_0xa51ad9=a154_0x26c4,util=require(a154_0xa51ad9(0x213)),moment=require('moment'),_=require(a154_0xa51ad9(0x1f6)),logger=require(a154_0xa51ad9(0x225))(a154_0xa51ad9(0x22c));function options(_0x4836dc){const _0x1dbf63=a154_0xa51ad9;return{'sequelize':_0x4836dc,'tableName':_0x1dbf63(0x221),'paranoid':!![],'indexes':[{'name':'phone','fields':[_0x1dbf63(0x20d)]},{'name':_0x1dbf63(0x20e),'fields':[_0x1dbf63(0x222),_0x1dbf63(0x211),_0x1dbf63(0x20d),_0x1dbf63(0x22b),_0x1dbf63(0x220),_0x1dbf63(0x218)],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'afterCreate':function(_0x5e7661){const _0x3c4643=_0x1dbf63,_0x3d490b=_0x4836dc['models'],_0x2000ea=_0x5e7661[_0x3c4643(0x202)]({'plain':!![]});function _0x275484(){return function(_0x11bc07){const _0x4afdd6=a154_0x26c4;logger[_0x4afdd6(0x21f)](_0x4afdd6(0x204),_0x4afdd6(0x206),util[_0x4afdd6(0x212)](_0x11bc07,{'showHidden':![],'depth':null}));};}const _0x4a4e45=function(_0x1d9ce8){return new Promise(function(_0x5f2fa0,_0x544e46){const _0x51793e=a154_0x26c4;_0x3d490b['CmHopper'][_0x51793e(0x217)]({'where':{'phone':_0x2000ea[_0x51793e(0x20d)],'VoiceQueueId':_0x1d9ce8['id']}})[_0x51793e(0x1f5)](function(_0x1da6fd){const _0x309595=_0x51793e;if(!_[_0x309595(0x229)](_0x1da6fd))throw new Error('cmContact,\x20afterCreate\x20'+_0x2000ea[_0x309595(0x20d)]+_0x309595(0x207)+_0x1d9ce8['id']);return _0x3d490b[_0x309595(0x21b)][_0x309595(0x21d)]({'phone':_0x2000ea[_0x309595(0x20d)],'ContactId':_0x2000ea['id'],'ListId':_0x2000ea['ListId'],'priority':_0x2000ea[_0x309595(0x215)]?_0x2000ea[_0x309595(0x215)]:0x2,'scheduledat':_0x2000ea['scheduledat']?_0x2000ea[_0x309595(0x228)]:moment()[_0x309595(0x208)](_0x309595(0x205)),'callback':_0x2000ea['callbackUniqueid']?!![]:![],'callbackuniqueid':_0x2000ea[_0x309595(0x223)]?_0x2000ea[_0x309595(0x223)]:undefined,'callbackat':_0x2000ea[_0x309595(0x223)]?moment()['format'](_0x309595(0x205)):undefined,'VoiceQueueId':_0x1d9ce8['id']});})[_0x51793e(0x20c)](function(_0x4a28d4){_0x544e46(_0x4a28d4);});});},_0x28874e=function(_0x49c3ad){return new Promise(function(_0x5a851b,_0x481129){const _0x49a793=a154_0x26c4;_0x3d490b[_0x49a793(0x21b)][_0x49a793(0x217)]({'where':{'phone':_0x2000ea['phone'],'VoiceQueueId':_0x49c3ad['id']}})[_0x49a793(0x1f5)](function(_0x2a30e9){const _0x5dac2c=_0x49a793;if(!_['isNil'](_0x2a30e9))throw new Error(_0x5dac2c(0x203)+_0x2000ea['phone']+_0x5dac2c(0x21a)+_0x49c3ad['id']);return _0x3d490b['CmHopperFinal'][_0x5dac2c(0x217)]({'where':{'calleridnum':_0x2000ea['phone'],'VoiceQueueId':_0x49c3ad['id']}});})[_0x49a793(0x1f5)](function(_0x1d0ca8){const _0x4687c2=_0x49a793;if(!_['isNil'](_0x1d0ca8))throw new Error(_0x4687c2(0x224)+_0x2000ea[_0x4687c2(0x20d)]+_0x4687c2(0x219)+_0x49c3ad['id']);return _0x3d490b[_0x4687c2(0x21b)]['create']({'phone':_0x2000ea[_0x4687c2(0x20d)],'ContactId':_0x2000ea['id'],'ListId':_0x2000ea[_0x4687c2(0x1fc)],'priority':_0x2000ea[_0x4687c2(0x215)]?_0x2000ea['priority']:0x2,'scheduledat':_0x2000ea[_0x4687c2(0x228)]?_0x2000ea[_0x4687c2(0x228)]:moment()[_0x4687c2(0x208)]('YYYY-MM-DD\x20HH:mm:ss'),'callback':_0x2000ea[_0x4687c2(0x223)]?!![]:![],'callbackuniqueid':_0x2000ea['callbackUniqueid']?_0x2000ea[_0x4687c2(0x223)]:undefined,'callbackat':_0x2000ea['callbackUniqueid']?moment()[_0x4687c2(0x208)](_0x4687c2(0x205)):undefined,'VoiceQueueId':_0x49c3ad['id']});})['catch'](function(_0x2caa1f){_0x481129(_0x2caa1f);});});};function _0x5a8f(){return function(_0x319646){const _0x5ddcbe=a154_0x26c4;logger[_0x5ddcbe(0x21f)](_0x5ddcbe(0x204),_0x5ddcbe(0x206),util[_0x5ddcbe(0x212)](_0x319646,{'showHidden':![],'depth':null}));};}const _0x596525=function(_0x500f68){return new Promise(function(_0x4aab4a,_0x15f805){const _0x2f1749=a154_0x26c4;_0x3d490b['CmHopper']['findOne']({'where':{'phone':_0x2000ea[_0x2f1749(0x20d)],'CampaignId':_0x500f68['id']}})[_0x2f1749(0x1f5)](function(_0x42374a){const _0x457274=_0x2f1749;if(!_[_0x457274(0x229)](_0x42374a))throw new Error('cmContact,\x20afterCreate\x20'+_0x2000ea[_0x457274(0x20d)]+_0x457274(0x226)+_0x500f68['id']);return _0x3d490b[_0x457274(0x21b)][_0x457274(0x21d)]({'phone':_0x2000ea[_0x457274(0x20d)],'ContactId':_0x2000ea['id'],'ListId':_0x2000ea[_0x457274(0x1fc)],'priority':_0x2000ea['priority']?_0x2000ea[_0x457274(0x215)]:0x2,'scheduledat':_0x2000ea['scheduledat']?_0x2000ea[_0x457274(0x228)]:moment()[_0x457274(0x208)]('YYYY-MM-DD\x20HH:mm:ss'),'callback':_0x2000ea['callbackUniqueid']?!![]:![],'callbackuniqueid':_0x2000ea[_0x457274(0x223)]?_0x2000ea[_0x457274(0x223)]:undefined,'callbackat':_0x2000ea[_0x457274(0x223)]?moment()[_0x457274(0x208)](_0x457274(0x205)):undefined,'CampaignId':_0x500f68['id']});})[_0x2f1749(0x20c)](function(_0x4d14b1){_0x15f805(_0x4d14b1);});});},_0x110924=function(_0x3a72bd){return new Promise(function(_0x5215ad,_0x390f72){const _0x1e7674=a154_0x26c4;_0x3d490b['CmHopper'][_0x1e7674(0x217)]({'where':{'phone':_0x2000ea[_0x1e7674(0x20d)],'CampaignId':_0x3a72bd['id']}})['then'](function(_0x38ce96){const _0xbb7c9c=_0x1e7674;if(!_[_0xbb7c9c(0x229)](_0x38ce96))throw new Error(_0xbb7c9c(0x203)+_0x2000ea[_0xbb7c9c(0x20d)]+_0xbb7c9c(0x1f3)+_0x3a72bd['id']);return _0x3d490b['CmHopperFinal']['findOne']({'where':{'calleridnum':_0x2000ea['phone'],'CampaignId':_0x3a72bd['id']}});})[_0x1e7674(0x1f5)](function(_0x594dc1){const _0x5071f4=_0x1e7674;if(!_['isNil'](_0x594dc1))throw new Error(_0x5071f4(0x224)+_0x2000ea[_0x5071f4(0x20d)]+'\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20always,\x20exist\x20in\x20hopperFinal\x20Campaign\x20'+_0x3a72bd['id']);return _0x3d490b[_0x5071f4(0x21b)][_0x5071f4(0x21d)]({'phone':_0x2000ea['phone'],'ContactId':_0x2000ea['id'],'ListId':_0x2000ea[_0x5071f4(0x1fc)],'priority':_0x2000ea[_0x5071f4(0x215)]?_0x2000ea['priority']:0x2,'scheduledat':_0x2000ea[_0x5071f4(0x228)]?_0x2000ea['scheduledat']:moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'callback':_0x2000ea[_0x5071f4(0x223)]?!![]:![],'callbackuniqueid':_0x2000ea[_0x5071f4(0x223)]?_0x2000ea[_0x5071f4(0x223)]:undefined,'callbackat':_0x2000ea[_0x5071f4(0x223)]?moment()[_0x5071f4(0x208)]('YYYY-MM-DD\x20HH:mm:ss'):undefined,'CampaignId':_0x3a72bd['id']});})['catch'](function(_0x3dcd39){_0x390f72(_0x3dcd39);});});};if(_0x2000ea[_0x3c4643(0x1fc)])_0x3d490b[_0x3c4643(0x214)][_0x3c4643(0x1ff)]({'where':{'type':_0x3c4643(0x1fb)},'attributes':['id',_0x3c4643(0x20f)],'include':[{'model':_0x3d490b[_0x3c4643(0x21c)],'as':_0x3c4643(0x1f8),'where':{'id':_0x2000ea[_0x3c4643(0x1fc)]}}]})['then'](function(_0x593557){const _0x177f86=_0x3c4643;if(_0x593557)for(let _0x541b3b=0x0,_0x3b63b2;_0x541b3b<_0x593557[_0x177f86(0x1fd)];_0x541b3b+=0x1){_0x3b63b2=_0x593557[_0x541b3b][_0x177f86(0x202)]({'plain':!![]});switch(_0x3b63b2[_0x177f86(0x20f)]){case _0x177f86(0x1f7):_0x28874e(_0x3b63b2)[_0x177f86(0x20c)](_0x275484());break;case'onlyIfOpen':_0x4a4e45(_0x3b63b2)['catch'](_0x275484());break;default:_0x3d490b['CmHopper'][_0x177f86(0x21d)]({'phone':_0x2000ea['phone'],'ContactId':_0x2000ea['id'],'ListId':_0x2000ea['ListId'],'scheduledat':_0x2000ea['scheduledat']?_0x2000ea[_0x177f86(0x228)]:moment()[_0x177f86(0x208)](_0x177f86(0x205)),'priority':_0x2000ea['priority']?_0x2000ea[_0x177f86(0x215)]:0x2,'callback':_0x2000ea[_0x177f86(0x223)]?!![]:![],'callbackuniqueid':_0x2000ea[_0x177f86(0x223)]?_0x2000ea[_0x177f86(0x223)]:undefined,'callbackat':_0x2000ea[_0x177f86(0x223)]?moment()[_0x177f86(0x208)](_0x177f86(0x205)):undefined,'VoiceQueueId':_0x3b63b2['id']})['catch'](_0x275484());}}})['then'](function(){const _0x1fbada=_0x3c4643;return _0x3d490b['VoiceQueue']['findAll']({'where':{'type':_0x1fbada(0x1fb)},'attributes':['id'],'include':[{'model':_0x3d490b[_0x1fbada(0x21c)],'as':'BlackLists','where':{'id':_0x2000ea[_0x1fbada(0x1fc)]}}]})['then'](function(_0xdd51c){const _0x3f39ff=_0x1fbada;if(_0xdd51c)for(let _0xbb03ea=0x0,_0x523109;_0xbb03ea<_0xdd51c[_0x3f39ff(0x1fd)];_0xbb03ea+=0x1){_0x523109=_0xdd51c[_0xbb03ea]['get']({'plain':!![]}),_0x3d490b[_0x3f39ff(0x216)]['create']({'phone':_0x2000ea['phone'],'ContactId':_0x2000ea['id'],'ListId':_0x2000ea[_0x3f39ff(0x1fc)],'VoiceQueueId':_0x523109['id']})[_0x3f39ff(0x20c)](function(_0x2973e4){const _0xc81b4b=_0x3f39ff;logger[_0xc81b4b(0x21f)]('cmContact,\x20%s,\x20%s',_0xc81b4b(0x206),_0x2973e4[_0xc81b4b(0x22a)]);});}});})[_0x3c4643(0x1f5)](function(){const _0x508ddd=_0x3c4643;return _0x3d490b[_0x508ddd(0x200)][_0x508ddd(0x1ff)]({'attributes':['id',_0x508ddd(0x20f)],'include':[{'model':_0x3d490b[_0x508ddd(0x21c)],'as':'Lists','where':{'id':_0x2000ea['ListId']}}]})[_0x508ddd(0x1f5)](function(_0x19fcb3){const _0x48a794=_0x508ddd;if(_0x19fcb3)for(let _0x29d892=0x0,_0x13ce9f;_0x29d892<_0x19fcb3[_0x48a794(0x1fd)];_0x29d892+=0x1){_0x13ce9f=_0x19fcb3[_0x29d892][_0x48a794(0x202)]({'plain':!![]});switch(_0x13ce9f['dialCheckDuplicateType']){case'always':_0x110924(_0x13ce9f)[_0x48a794(0x20c)](_0x5a8f());break;case'onlyIfOpen':_0x596525(_0x13ce9f)[_0x48a794(0x20c)](_0x5a8f());break;default:_0x3d490b[_0x48a794(0x21b)][_0x48a794(0x21d)]({'phone':_0x2000ea[_0x48a794(0x20d)],'ContactId':_0x2000ea['id'],'ListId':_0x2000ea[_0x48a794(0x1fc)],'scheduledat':_0x2000ea['scheduledat']?_0x2000ea[_0x48a794(0x228)]:moment()['format'](_0x48a794(0x205)),'priority':_0x2000ea['priority']?_0x2000ea['priority']:0x2,'callback':_0x2000ea[_0x48a794(0x223)]?!![]:![],'callbackuniqueid':_0x2000ea[_0x48a794(0x223)]?_0x2000ea[_0x48a794(0x223)]:undefined,'callbackat':_0x2000ea['callbackUniqueid']?moment()[_0x48a794(0x208)]('YYYY-MM-DD\x20HH:mm:ss'):undefined,'CampaignId':_0x13ce9f['id']})['catch'](_0x5a8f());}}});})[_0x3c4643(0x1f5)](function(){const _0x420f25=_0x3c4643;return _0x3d490b[_0x420f25(0x200)][_0x420f25(0x1ff)]({'attributes':['id'],'include':[{'model':_0x3d490b[_0x420f25(0x21c)],'as':_0x420f25(0x210),'where':{'id':_0x2000ea[_0x420f25(0x1fc)]}}]})[_0x420f25(0x1f5)](function(_0x2444b5){const _0xecb598=_0x420f25;if(_0x2444b5)for(let _0x2f4b8a=0x0,_0x22d875;_0x2f4b8a<_0x2444b5['length'];_0x2f4b8a+=0x1){_0x22d875=_0x2444b5[_0x2f4b8a][_0xecb598(0x202)]({'plain':!![]}),_0x3d490b['CmHopperBlack'][_0xecb598(0x21d)]({'phone':_0x2000ea['phone'],'ContactId':_0x2000ea['id'],'ListId':_0x2000ea['ListId'],'CampaignId':_0x22d875['id']})['catch'](function(_0x540c70){const _0x2c6b1d=_0xecb598;logger['error'](_0x2c6b1d(0x1f4),_0x2c6b1d(0x206),_0x540c70['message']);});}});})[_0x3c4643(0x20c)](function(_0x405e2e){const _0x1c2efc=_0x3c4643;logger[_0x1c2efc(0x21f)](_0x1c2efc(0x1f4),_0x1c2efc(0x206),_0x405e2e[_0x1c2efc(0x22a)]);});else throw new Error(_0x3c4643(0x227));},'afterDestroy':function(_0x552bbc){const _0x31e41d=_0x1dbf63,_0x27bd15=_0x4836dc[_0x31e41d(0x20a)],_0x38c1cc=_0x552bbc[_0x31e41d(0x202)]({'plain':!![]});return _0x27bd15[_0x31e41d(0x21b)]['findAll']({'raw':!![],'where':{'ListId':_0x38c1cc['ListId'],'ContactId':_0x38c1cc['id']}})[_0x31e41d(0x1f5)](function(_0x296b03){const _0x1124ca=_0x31e41d;if(!_['isEmpty'](_0x296b03)){const _0x386e9b=[];for(let _0x54be1d=0x0;_0x54be1d<_0x296b03[_0x1124ca(0x1fd)];_0x54be1d+=0x1){const _0x210c00=_0x27bd15['CmHopper'][_0x1124ca(0x1fe)]({'where':{'ListId':_0x296b03[_0x54be1d][_0x1124ca(0x1fc)],'ContactId':_0x296b03[_0x54be1d][_0x1124ca(0x20b)],'VoiceQueueId':_0x296b03[_0x54be1d]['VoiceQueueId'],'CampaignId':_0x296b03[_0x54be1d][_0x1124ca(0x21e)]}});_0x386e9b['push'](_0x210c00);}return Promise[_0x1124ca(0x1fa)](_0x386e9b);}})['then'](function(_0x268115){const _0x4ee869=_0x31e41d;logger['info']('[CmContact][afterDestroy][Succesfull]',util[_0x4ee869(0x212)](_0x268115,{'showHidden':![],'depth':null}));})['catch'](function(_0xd01248){const _0x2bd17d=_0x31e41d;logger[_0x2bd17d(0x21f)](_0x2bd17d(0x201),util[_0x2bd17d(0x212)](_0xd01248,{'showHidden':![],'depth':null}));throw _0xd01248;});}}};}module[a154_0xa51ad9(0x209)][a154_0xa51ad9(0x1f9)]=options; \ No newline at end of file +const a154_0x22c2=['dialCheckDuplicateType','cmContact','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20onlyIfOpen,\x20exist\x20in\x20hopper\x20Campaign\x20','options','get','phone','../../config/logger','create','Campaign','cmContact,\x20afterCreate\x20','format','findOne','moment','outbound','ContactId','all','util','catch','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20always,\x20exist\x20in\x20hopper\x20Campaign\x20','VoiceQueueId','error','cm_contacts','info','callbackUniqueid','push','firstName','VoiceQueue','ListId','fax','cmContact,\x20%s,\x20%s','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20always,\x20exist\x20in\x20hopperFinal\x20VoiceQueue\x20','afterCreate','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20always,\x20exist\x20in\x20hopperFinal\x20Campaign\x20','lodash','CmList','api','message','cmContact,\x20afterCreate,\x20','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20always,\x20exist\x20in\x20hopper\x20VoiceQueue\x20','exports','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20onlyIfOpen,\x20exist\x20in\x20hopper\x20VoiceQueue\x20','then','priority','Lists','findAll','CmHopperFinal','CmHopperBlack','scheduledat','YYYY-MM-DD\x20HH:mm:ss','BlackLists','models','inspect','onlyIfOpen','isNil','CmHopper','FULLTEXT','length','[CmContact][afterDestroy][Succesfull]'];(function(_0x2f74a9,_0x575531){const _0x22c2f6=function(_0x42eadc){while(--_0x42eadc){_0x2f74a9['push'](_0x2f74a9['shift']());}};_0x22c2f6(++_0x575531);}(a154_0x22c2,0x140));const a154_0x42ea=function(_0x2f74a9,_0x575531){_0x2f74a9=_0x2f74a9-0x132;let _0x22c2f6=a154_0x22c2[_0x2f74a9];return _0x22c2f6;};const a154_0x35a7a0=a154_0x42ea,util=require(a154_0x35a7a0(0x15e)),moment=require(a154_0x35a7a0(0x15a)),_=require(a154_0x35a7a0(0x135)),logger=require(a154_0x35a7a0(0x154))(a154_0x35a7a0(0x137));function options(_0xa61e43){const _0x4251f7=a154_0x35a7a0;return{'sequelize':_0xa61e43,'tableName':_0x4251f7(0x163),'paranoid':!![],'indexes':[{'name':'phone','fields':[_0x4251f7(0x153)]},{'name':'fti_cm_contacts','fields':[_0x4251f7(0x167),'lastName',_0x4251f7(0x153),'mobile',_0x4251f7(0x16a),'email'],'type':_0x4251f7(0x14b)}],'timestamps':!![],'hooks':{'afterCreate':function(_0x1f62ca){const _0x56ad95=_0x4251f7,_0x15b622=_0xa61e43[_0x56ad95(0x146)],_0x5e3bd1=_0x1f62ca[_0x56ad95(0x152)]({'plain':!![]});function _0x58c6e9(){return function(_0x558640){const _0x13da1e=a154_0x42ea;logger[_0x13da1e(0x162)](_0x13da1e(0x14f),_0x13da1e(0x133),util['inspect'](_0x558640,{'showHidden':![],'depth':null}));};}const _0xff98ed=function(_0x15cb20){return new Promise(function(_0x509b17,_0x182c67){const _0x8ab7a1=a154_0x42ea;_0x15b622[_0x8ab7a1(0x14a)][_0x8ab7a1(0x159)]({'where':{'phone':_0x5e3bd1[_0x8ab7a1(0x153)],'VoiceQueueId':_0x15cb20['id']}})[_0x8ab7a1(0x13d)](function(_0x25c18e){const _0x2c49f2=_0x8ab7a1;if(!_[_0x2c49f2(0x149)](_0x25c18e))throw new Error(_0x2c49f2(0x157)+_0x5e3bd1[_0x2c49f2(0x153)]+_0x2c49f2(0x13c)+_0x15cb20['id']);return _0x15b622[_0x2c49f2(0x14a)][_0x2c49f2(0x155)]({'phone':_0x5e3bd1['phone'],'ContactId':_0x5e3bd1['id'],'ListId':_0x5e3bd1[_0x2c49f2(0x169)],'priority':_0x5e3bd1[_0x2c49f2(0x13e)]?_0x5e3bd1[_0x2c49f2(0x13e)]:0x2,'scheduledat':_0x5e3bd1[_0x2c49f2(0x143)]?_0x5e3bd1[_0x2c49f2(0x143)]:moment()[_0x2c49f2(0x158)]('YYYY-MM-DD\x20HH:mm:ss'),'callback':_0x5e3bd1[_0x2c49f2(0x165)]?!![]:![],'callbackuniqueid':_0x5e3bd1[_0x2c49f2(0x165)]?_0x5e3bd1[_0x2c49f2(0x165)]:undefined,'callbackat':_0x5e3bd1[_0x2c49f2(0x165)]?moment()[_0x2c49f2(0x158)](_0x2c49f2(0x144)):undefined,'VoiceQueueId':_0x15cb20['id']});})[_0x8ab7a1(0x15f)](function(_0x49bd4f){_0x182c67(_0x49bd4f);});});},_0x555f15=function(_0x2fdc49){return new Promise(function(_0x3b5e1b,_0x243838){const _0x5e6c26=a154_0x42ea;_0x15b622['CmHopper']['findOne']({'where':{'phone':_0x5e3bd1[_0x5e6c26(0x153)],'VoiceQueueId':_0x2fdc49['id']}})[_0x5e6c26(0x13d)](function(_0x2a194b){const _0x162820=_0x5e6c26;if(!_[_0x162820(0x149)](_0x2a194b))throw new Error('cmContact,\x20afterCreate\x20'+_0x5e3bd1[_0x162820(0x153)]+_0x162820(0x13a)+_0x2fdc49['id']);return _0x15b622[_0x162820(0x141)][_0x162820(0x159)]({'where':{'calleridnum':_0x5e3bd1['phone'],'VoiceQueueId':_0x2fdc49['id']}});})[_0x5e6c26(0x13d)](function(_0x344949){const _0x138688=_0x5e6c26;if(!_[_0x138688(0x149)](_0x344949))throw new Error(_0x138688(0x139)+_0x5e3bd1[_0x138688(0x153)]+_0x138688(0x132)+_0x2fdc49['id']);return _0x15b622[_0x138688(0x14a)][_0x138688(0x155)]({'phone':_0x5e3bd1[_0x138688(0x153)],'ContactId':_0x5e3bd1['id'],'ListId':_0x5e3bd1[_0x138688(0x169)],'priority':_0x5e3bd1[_0x138688(0x13e)]?_0x5e3bd1[_0x138688(0x13e)]:0x2,'scheduledat':_0x5e3bd1['scheduledat']?_0x5e3bd1[_0x138688(0x143)]:moment()[_0x138688(0x158)](_0x138688(0x144)),'callback':_0x5e3bd1[_0x138688(0x165)]?!![]:![],'callbackuniqueid':_0x5e3bd1[_0x138688(0x165)]?_0x5e3bd1[_0x138688(0x165)]:undefined,'callbackat':_0x5e3bd1[_0x138688(0x165)]?moment()[_0x138688(0x158)](_0x138688(0x144)):undefined,'VoiceQueueId':_0x2fdc49['id']});})['catch'](function(_0x22ac1c){_0x243838(_0x22ac1c);});});};function _0x102a32(){return function(_0x53a22a){const _0x51f22a=a154_0x42ea;logger['error'](_0x51f22a(0x14f),_0x51f22a(0x133),util[_0x51f22a(0x147)](_0x53a22a,{'showHidden':![],'depth':null}));};}const _0xaf7eb2=function(_0x5f57d6){return new Promise(function(_0x4f518b,_0x1f410c){const _0x25531e=a154_0x42ea;_0x15b622['CmHopper'][_0x25531e(0x159)]({'where':{'phone':_0x5e3bd1['phone'],'CampaignId':_0x5f57d6['id']}})['then'](function(_0x51c9c5){const _0x2eca81=_0x25531e;if(!_[_0x2eca81(0x149)](_0x51c9c5))throw new Error(_0x2eca81(0x157)+_0x5e3bd1[_0x2eca81(0x153)]+_0x2eca81(0x150)+_0x5f57d6['id']);return _0x15b622[_0x2eca81(0x14a)]['create']({'phone':_0x5e3bd1[_0x2eca81(0x153)],'ContactId':_0x5e3bd1['id'],'ListId':_0x5e3bd1[_0x2eca81(0x169)],'priority':_0x5e3bd1[_0x2eca81(0x13e)]?_0x5e3bd1[_0x2eca81(0x13e)]:0x2,'scheduledat':_0x5e3bd1['scheduledat']?_0x5e3bd1[_0x2eca81(0x143)]:moment()[_0x2eca81(0x158)]('YYYY-MM-DD\x20HH:mm:ss'),'callback':_0x5e3bd1[_0x2eca81(0x165)]?!![]:![],'callbackuniqueid':_0x5e3bd1[_0x2eca81(0x165)]?_0x5e3bd1[_0x2eca81(0x165)]:undefined,'callbackat':_0x5e3bd1[_0x2eca81(0x165)]?moment()[_0x2eca81(0x158)](_0x2eca81(0x144)):undefined,'CampaignId':_0x5f57d6['id']});})[_0x25531e(0x15f)](function(_0x2af514){_0x1f410c(_0x2af514);});});},_0x37edf0=function(_0xfc7c32){return new Promise(function(_0x72b79a,_0x453dbc){const _0x245ad8=a154_0x42ea;_0x15b622[_0x245ad8(0x14a)][_0x245ad8(0x159)]({'where':{'phone':_0x5e3bd1[_0x245ad8(0x153)],'CampaignId':_0xfc7c32['id']}})['then'](function(_0x235f2e){const _0x1e3604=_0x245ad8;if(!_[_0x1e3604(0x149)](_0x235f2e))throw new Error(_0x1e3604(0x157)+_0x5e3bd1[_0x1e3604(0x153)]+_0x1e3604(0x160)+_0xfc7c32['id']);return _0x15b622[_0x1e3604(0x141)]['findOne']({'where':{'calleridnum':_0x5e3bd1[_0x1e3604(0x153)],'CampaignId':_0xfc7c32['id']}});})[_0x245ad8(0x13d)](function(_0x4ddb1d){const _0x586620=_0x245ad8;if(!_[_0x586620(0x149)](_0x4ddb1d))throw new Error('cmContact,\x20afterCreate,\x20'+_0x5e3bd1[_0x586620(0x153)]+_0x586620(0x134)+_0xfc7c32['id']);return _0x15b622[_0x586620(0x14a)]['create']({'phone':_0x5e3bd1[_0x586620(0x153)],'ContactId':_0x5e3bd1['id'],'ListId':_0x5e3bd1[_0x586620(0x169)],'priority':_0x5e3bd1[_0x586620(0x13e)]?_0x5e3bd1[_0x586620(0x13e)]:0x2,'scheduledat':_0x5e3bd1[_0x586620(0x143)]?_0x5e3bd1[_0x586620(0x143)]:moment()[_0x586620(0x158)](_0x586620(0x144)),'callback':_0x5e3bd1[_0x586620(0x165)]?!![]:![],'callbackuniqueid':_0x5e3bd1[_0x586620(0x165)]?_0x5e3bd1[_0x586620(0x165)]:undefined,'callbackat':_0x5e3bd1[_0x586620(0x165)]?moment()[_0x586620(0x158)](_0x586620(0x144)):undefined,'CampaignId':_0xfc7c32['id']});})[_0x245ad8(0x15f)](function(_0x381923){_0x453dbc(_0x381923);});});};if(_0x5e3bd1[_0x56ad95(0x169)])_0x15b622[_0x56ad95(0x168)][_0x56ad95(0x140)]({'where':{'type':_0x56ad95(0x15b)},'attributes':['id','dialCheckDuplicateType'],'include':[{'model':_0x15b622[_0x56ad95(0x136)],'as':_0x56ad95(0x13f),'where':{'id':_0x5e3bd1[_0x56ad95(0x169)]}}]})[_0x56ad95(0x13d)](function(_0x3354fe){const _0x5131d9=_0x56ad95;if(_0x3354fe)for(let _0x40cf4d=0x0,_0x4c2f4c;_0x40cf4d<_0x3354fe[_0x5131d9(0x14c)];_0x40cf4d+=0x1){_0x4c2f4c=_0x3354fe[_0x40cf4d][_0x5131d9(0x152)]({'plain':!![]});switch(_0x4c2f4c[_0x5131d9(0x14e)]){case'always':_0x555f15(_0x4c2f4c)['catch'](_0x58c6e9());break;case _0x5131d9(0x148):_0xff98ed(_0x4c2f4c)[_0x5131d9(0x15f)](_0x58c6e9());break;default:_0x15b622[_0x5131d9(0x14a)][_0x5131d9(0x155)]({'phone':_0x5e3bd1[_0x5131d9(0x153)],'ContactId':_0x5e3bd1['id'],'ListId':_0x5e3bd1[_0x5131d9(0x169)],'scheduledat':_0x5e3bd1[_0x5131d9(0x143)]?_0x5e3bd1[_0x5131d9(0x143)]:moment()[_0x5131d9(0x158)]('YYYY-MM-DD\x20HH:mm:ss'),'priority':_0x5e3bd1[_0x5131d9(0x13e)]?_0x5e3bd1['priority']:0x2,'callback':_0x5e3bd1[_0x5131d9(0x165)]?!![]:![],'callbackuniqueid':_0x5e3bd1['callbackUniqueid']?_0x5e3bd1[_0x5131d9(0x165)]:undefined,'callbackat':_0x5e3bd1[_0x5131d9(0x165)]?moment()[_0x5131d9(0x158)](_0x5131d9(0x144)):undefined,'VoiceQueueId':_0x4c2f4c['id']})[_0x5131d9(0x15f)](_0x58c6e9());}}})['then'](function(){const _0x4e2cb3=_0x56ad95;return _0x15b622[_0x4e2cb3(0x168)]['findAll']({'where':{'type':'outbound'},'attributes':['id'],'include':[{'model':_0x15b622['CmList'],'as':_0x4e2cb3(0x145),'where':{'id':_0x5e3bd1[_0x4e2cb3(0x169)]}}]})[_0x4e2cb3(0x13d)](function(_0x5da875){const _0x3ad8a5=_0x4e2cb3;if(_0x5da875)for(let _0x323bee=0x0,_0x2b3421;_0x323bee<_0x5da875[_0x3ad8a5(0x14c)];_0x323bee+=0x1){_0x2b3421=_0x5da875[_0x323bee][_0x3ad8a5(0x152)]({'plain':!![]}),_0x15b622[_0x3ad8a5(0x142)][_0x3ad8a5(0x155)]({'phone':_0x5e3bd1[_0x3ad8a5(0x153)],'ContactId':_0x5e3bd1['id'],'ListId':_0x5e3bd1[_0x3ad8a5(0x169)],'VoiceQueueId':_0x2b3421['id']})[_0x3ad8a5(0x15f)](function(_0x577c1e){const _0x146c0d=_0x3ad8a5;logger['error'](_0x146c0d(0x16b),_0x146c0d(0x133),_0x577c1e[_0x146c0d(0x138)]);});}});})[_0x56ad95(0x13d)](function(){const _0x5ff37e=_0x56ad95;return _0x15b622[_0x5ff37e(0x156)][_0x5ff37e(0x140)]({'attributes':['id',_0x5ff37e(0x14e)],'include':[{'model':_0x15b622[_0x5ff37e(0x136)],'as':'Lists','where':{'id':_0x5e3bd1['ListId']}}]})['then'](function(_0x250e73){const _0x138936=_0x5ff37e;if(_0x250e73)for(let _0x57c9d0=0x0,_0x42e850;_0x57c9d0<_0x250e73[_0x138936(0x14c)];_0x57c9d0+=0x1){_0x42e850=_0x250e73[_0x57c9d0]['get']({'plain':!![]});switch(_0x42e850[_0x138936(0x14e)]){case'always':_0x37edf0(_0x42e850)[_0x138936(0x15f)](_0x102a32());break;case _0x138936(0x148):_0xaf7eb2(_0x42e850)['catch'](_0x102a32());break;default:_0x15b622[_0x138936(0x14a)][_0x138936(0x155)]({'phone':_0x5e3bd1[_0x138936(0x153)],'ContactId':_0x5e3bd1['id'],'ListId':_0x5e3bd1[_0x138936(0x169)],'scheduledat':_0x5e3bd1[_0x138936(0x143)]?_0x5e3bd1[_0x138936(0x143)]:moment()['format'](_0x138936(0x144)),'priority':_0x5e3bd1['priority']?_0x5e3bd1[_0x138936(0x13e)]:0x2,'callback':_0x5e3bd1[_0x138936(0x165)]?!![]:![],'callbackuniqueid':_0x5e3bd1[_0x138936(0x165)]?_0x5e3bd1[_0x138936(0x165)]:undefined,'callbackat':_0x5e3bd1[_0x138936(0x165)]?moment()['format'](_0x138936(0x144)):undefined,'CampaignId':_0x42e850['id']})[_0x138936(0x15f)](_0x102a32());}}});})['then'](function(){const _0x5175aa=_0x56ad95;return _0x15b622['Campaign']['findAll']({'attributes':['id'],'include':[{'model':_0x15b622[_0x5175aa(0x136)],'as':_0x5175aa(0x145),'where':{'id':_0x5e3bd1[_0x5175aa(0x169)]}}]})[_0x5175aa(0x13d)](function(_0x187a96){const _0x5e0f91=_0x5175aa;if(_0x187a96)for(let _0x345bf8=0x0,_0x5737f3;_0x345bf8<_0x187a96[_0x5e0f91(0x14c)];_0x345bf8+=0x1){_0x5737f3=_0x187a96[_0x345bf8]['get']({'plain':!![]}),_0x15b622[_0x5e0f91(0x142)][_0x5e0f91(0x155)]({'phone':_0x5e3bd1[_0x5e0f91(0x153)],'ContactId':_0x5e3bd1['id'],'ListId':_0x5e3bd1[_0x5e0f91(0x169)],'CampaignId':_0x5737f3['id']})['catch'](function(_0x4dc03f){const _0x3d80c5=_0x5e0f91;logger['error'](_0x3d80c5(0x16b),'afterCreate',_0x4dc03f[_0x3d80c5(0x138)]);});}});})[_0x56ad95(0x15f)](function(_0x4ef9f9){const _0x23c16c=_0x56ad95;logger[_0x23c16c(0x162)]('cmContact,\x20%s,\x20%s',_0x23c16c(0x133),_0x4ef9f9[_0x23c16c(0x138)]);});else throw new Error('List\x20not\x20found');},'afterDestroy':function(_0x28e2dd){const _0x392776=_0x4251f7,_0x52543b=_0xa61e43[_0x392776(0x146)],_0x3eef5b=_0x28e2dd[_0x392776(0x152)]({'plain':!![]});return _0x52543b[_0x392776(0x14a)]['findAll']({'raw':!![],'where':{'ListId':_0x3eef5b[_0x392776(0x169)],'ContactId':_0x3eef5b['id']}})[_0x392776(0x13d)](function(_0x116557){const _0xf41f44=_0x392776;if(!_['isEmpty'](_0x116557)){const _0x47c18f=[];for(let _0x28f1fb=0x0;_0x28f1fb<_0x116557[_0xf41f44(0x14c)];_0x28f1fb+=0x1){const _0xd912c2=_0x52543b[_0xf41f44(0x14a)]['destroy']({'where':{'ListId':_0x116557[_0x28f1fb][_0xf41f44(0x169)],'ContactId':_0x116557[_0x28f1fb][_0xf41f44(0x15c)],'VoiceQueueId':_0x116557[_0x28f1fb][_0xf41f44(0x161)],'CampaignId':_0x116557[_0x28f1fb]['CampaignId']}});_0x47c18f[_0xf41f44(0x166)](_0xd912c2);}return Promise[_0xf41f44(0x15d)](_0x47c18f);}})['then'](function(_0x3ae363){const _0x311121=_0x392776;logger[_0x311121(0x164)](_0x311121(0x14d),util[_0x311121(0x147)](_0x3ae363,{'showHidden':![],'depth':null}));})[_0x392776(0x15f)](function(_0x57f2f7){const _0x169104=_0x392776;logger[_0x169104(0x162)]('[CmContact][afterDestroy][Error]',util[_0x169104(0x147)](_0x57f2f7,{'showHidden':![],'depth':null}));throw _0x57f2f7;});}}};}module[a154_0x35a7a0(0x13b)][a154_0x35a7a0(0x151)]=options; \ No newline at end of file diff --git a/server/api/cmContact/cmContact.rpc.js b/server/api/cmContact/cmContact.rpc.js index ce3550e..82ef5f8 100644 --- a/server/api/cmContact/cmContact.rpc.js +++ b/server/api/cmContact/cmContact.rpc.js @@ -1 +1 @@ -const a155_0x2d9f=['info','register','attributes','GetCmContact','catch','create','keys','squel','toString','limit','table','sequelize','include','./cmContact.socket','error','body','debug','map','CreateCmContact','options','cf_','id\x20=\x20?','lodash','cm_contacts','set','where','../../mysqldb','rpc','stringify','model','startsWith','then','findAll','raw'];(function(_0x599af2,_0x36e9df){const _0x2d9f59=function(_0xdcc996){while(--_0xdcc996){_0x599af2['push'](_0x599af2['shift']());}};_0x2d9f59(++_0x36e9df);}(a155_0x2d9f,0x1af));const a155_0xdcc9=function(_0x599af2,_0x36e9df){_0x599af2=_0x599af2-0x156;let _0x2d9f59=a155_0x2d9f[_0x599af2];return _0x2d9f59;};const a155_0x795b4c=a155_0xdcc9;'use strict';const _=require(a155_0x795b4c(0x177)),db=require(a155_0x795b4c(0x159))['db'],logger=require('../../config/logger')(a155_0x795b4c(0x15a)),squel=require(a155_0x795b4c(0x168)),{getSocket}=require('../../rediscache'),socket=getSocket();require(a155_0x795b4c(0x16e))[a155_0x795b4c(0x162)](socket),exports['GetCmContact']=function(_0x4e6ead){const _0x5446d4=this;return new Promise(function(_0x5872a9,_0xd65ca3){const _0x90d8d9=a155_0xdcc9;return db['CmContact'][_0x90d8d9(0x15f)]({'raw':_0x4e6ead[_0x90d8d9(0x174)]?_0x4e6ead[_0x90d8d9(0x174)][_0x90d8d9(0x160)]===undefined?!![]:![]:!![],'where':_0x4e6ead[_0x90d8d9(0x174)]?_0x4e6ead[_0x90d8d9(0x174)][_0x90d8d9(0x158)]||null:null,'attributes':_0x4e6ead[_0x90d8d9(0x174)]?_0x4e6ead['options'][_0x90d8d9(0x163)]||null:null,'limit':_0x4e6ead['options']?_0x4e6ead[_0x90d8d9(0x174)][_0x90d8d9(0x16a)]||null:null,'include':_0x4e6ead['options']?_0x4e6ead[_0x90d8d9(0x174)][_0x90d8d9(0x16d)]?_[_0x90d8d9(0x172)](_0x4e6ead['options'][_0x90d8d9(0x16d)],function(_0x44158c){const _0x3c0f68=_0x90d8d9;return{'model':db[_0x44158c[_0x3c0f68(0x15c)]],'as':_0x44158c['as'],'attributes':_0x44158c[_0x3c0f68(0x163)],'include':_0x44158c[_0x3c0f68(0x16d)]?_['map'](_0x44158c[_0x3c0f68(0x16d)],function(_0x525f1d){const _0x276b94=_0x3c0f68;return{'model':db[_0x525f1d[_0x276b94(0x15c)]],'as':_0x525f1d['as'],'attributes':_0x525f1d[_0x276b94(0x163)],'include':_0x525f1d[_0x276b94(0x16d)]?_[_0x276b94(0x172)](_0x525f1d['include'],function(_0x4b6dbf){const _0x1572e6=_0x276b94;return{'model':db[_0x4b6dbf[_0x1572e6(0x15c)]],'as':_0x4b6dbf['as'],'attributes':_0x4b6dbf['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x27cd48){const _0x315576=_0x90d8d9;logger['info'](_0x315576(0x164),_0x4e6ead),logger[_0x315576(0x171)]('GetCmContact',_0x4e6ead,JSON[_0x315576(0x15b)](_0x27cd48)),_0x5872a9(_0x27cd48);})[_0x90d8d9(0x165)](function(_0x1e7620){const _0x402374=_0x90d8d9;logger[_0x402374(0x16f)](_0x402374(0x164),_0x1e7620['message'],_0x4e6ead),_0xd65ca3(_0x5446d4[_0x402374(0x16f)](0x1f4,_0x1e7620['message']));});});},exports[a155_0x795b4c(0x173)]=function(_0x52d953){const _0x4501cf=this;return new Promise(function(_0x756136,_0x54abe9){const _0x2e64fe=a155_0xdcc9;return db['CmContact'][_0x2e64fe(0x166)](_0x52d953[_0x2e64fe(0x170)],{'raw':_0x52d953['options']?_0x52d953['options'][_0x2e64fe(0x160)]===undefined?!![]:![]:!![]})['then'](function(_0x103d73){const _0x3c888d=_0x2e64fe;let _0x20f5b6;for(let _0x31b541=0x0;_0x31b541{}\s\\|]/g,'-'),_0x2e6bc9(null,util['format'](_0x21a02b(0x1b1),path[_0x21a02b(0x1ba)](_0x2d3882[_0x21a02b(0x1aa)],path[_0x21a02b(0x1b8)](_0x2d3882['originalname'])),Date[_0x21a02b(0x1af)](),path[_0x21a02b(0x1b8)](_0x2d3882[_0x21a02b(0x1aa)])));}})});router[a157_0x31c13f(0x1ac)]('/',auth[a157_0x31c13f(0x1a2)](),controller['index']),router[a157_0x31c13f(0x1ac)]('/describe',auth[a157_0x31c13f(0x1a2)](),controller[a157_0x31c13f(0x1a4)]),router[a157_0x31c13f(0x1ac)](a157_0x31c13f(0x1a3),auth['isAuthenticated'](),controller[a157_0x31c13f(0x1a0)]),router[a157_0x31c13f(0x1ac)](a157_0x31c13f(0x1ab),auth['isAuthenticated'](),controller[a157_0x31c13f(0x1bc)]),router[a157_0x31c13f(0x1ac)](a157_0x31c13f(0x1b5),auth[a157_0x31c13f(0x1a2)](),controller[a157_0x31c13f(0x1a5)]),router['get'](a157_0x31c13f(0x1b7),auth['isAuthenticated'](),controller[a157_0x31c13f(0x19e)]),router[a157_0x31c13f(0x1ac)](a157_0x31c13f(0x1ad),auth[a157_0x31c13f(0x1a2)](),controller[a157_0x31c13f(0x193)]),router[a157_0x31c13f(0x1ac)](a157_0x31c13f(0x195),auth[a157_0x31c13f(0x1a2)](),controller[a157_0x31c13f(0x198)]),router[a157_0x31c13f(0x1b9)](a157_0x31c13f(0x1a8),auth['isAuthenticated'](),controller['merge']),router['post']('/',auth['isAuthenticated'](),controller[a157_0x31c13f(0x1b6)]),router[a157_0x31c13f(0x1b9)](a157_0x31c13f(0x1b0),auth[a157_0x31c13f(0x1a2)](),controller[a157_0x31c13f(0x19c)]),router[a157_0x31c13f(0x1b9)](a157_0x31c13f(0x1ab),auth['isAuthenticated'](),controller['setTags']),router[a157_0x31c13f(0x1b9)](a157_0x31c13f(0x197),upload[a157_0x31c13f(0x1bb)]('file'),controller[a157_0x31c13f(0x194)]),router[a157_0x31c13f(0x1b9)](a157_0x31c13f(0x19d),auth['isAuthenticated'](),controller[a157_0x31c13f(0x19a)]),router['put'](a157_0x31c13f(0x1a3),auth[a157_0x31c13f(0x1a2)](),controller[a157_0x31c13f(0x1b3)]),router[a157_0x31c13f(0x1bd)](a157_0x31c13f(0x1a3),auth[a157_0x31c13f(0x1a2)](),controller[a157_0x31c13f(0x19f)]),module[a157_0x31c13f(0x1a6)]=router; \ No newline at end of file +const a157_0x15da=['getJscriptySessions','delete','isAuthenticated','/merge','/:id','util','upload','/upload','/:id/hopper_histories','getHopperHistories','getHopperFinals','put','express','path','getHoppers','getTags','import','show','file','/:id/hoppers','originalname','bulkCreate','Router','post','root','create','format','diskStorage','single','../../config/environment','../../components/auth/service','extname','basename','%s-%s%s','setTags','merge','get','destroy','/create_many'];(function(_0x140668,_0x3552ae){const _0x15dafa=function(_0x2d30af){while(--_0x2d30af){_0x140668['push'](_0x140668['shift']());}};_0x15dafa(++_0x3552ae);}(a157_0x15da,0x1a3));const a157_0x2d30=function(_0x140668,_0x3552ae){_0x140668=_0x140668-0x170;let _0x15dafa=a157_0x15da[_0x140668];return _0x15dafa;};const a157_0x5353ff=a157_0x2d30;'use strict';const multer=require('multer'),util=require(a157_0x5353ff(0x17f)),path=require(a157_0x5353ff(0x187)),express=require(a157_0x5353ff(0x186)),router=express[a157_0x5353ff(0x190)](),auth=require(a157_0x5353ff(0x171)),config=require(a157_0x5353ff(0x170)),controller=require('./cmContact.controller'),upload=multer({'storage':multer[a157_0x5353ff(0x195)]({'destination':function(_0x4c9219,_0x22e676,_0x52a2df){const _0x36847d=a157_0x5353ff;_0x52a2df(null,path['join'](config[_0x36847d(0x192)],'files/tmp'));},'filename':function(_0x3bc9c6,_0x13f481,_0xa2cdff){const _0x583f8b=a157_0x5353ff;_0x13f481['originalname']=_0x13f481[_0x583f8b(0x18e)]['replace'](/[+@&-/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0xa2cdff(null,util[_0x583f8b(0x194)](_0x583f8b(0x174),path[_0x583f8b(0x173)](_0x13f481['originalname'],path['extname'](_0x13f481['originalname'])),Date['now'](),path[_0x583f8b(0x172)](_0x13f481[_0x583f8b(0x18e)])));}})});router[a157_0x5353ff(0x177)]('/',auth[a157_0x5353ff(0x17c)](),controller['index']),router[a157_0x5353ff(0x177)]('/describe',auth[a157_0x5353ff(0x17c)](),controller['describe']),router[a157_0x5353ff(0x177)](a157_0x5353ff(0x17e),auth['isAuthenticated'](),controller[a157_0x5353ff(0x18b)]),router[a157_0x5353ff(0x177)]('/:id/tags',auth[a157_0x5353ff(0x17c)](),controller[a157_0x5353ff(0x189)]),router[a157_0x5353ff(0x177)](a157_0x5353ff(0x18d),auth[a157_0x5353ff(0x17c)](),controller[a157_0x5353ff(0x188)]),router[a157_0x5353ff(0x177)](a157_0x5353ff(0x182),auth[a157_0x5353ff(0x17c)](),controller[a157_0x5353ff(0x183)]),router[a157_0x5353ff(0x177)]('/:id/hopper_finals',auth[a157_0x5353ff(0x17c)](),controller[a157_0x5353ff(0x184)]),router[a157_0x5353ff(0x177)]('/:id/jscripty_sessions',auth[a157_0x5353ff(0x17c)](),controller[a157_0x5353ff(0x17a)]),router[a157_0x5353ff(0x191)](a157_0x5353ff(0x17d),auth[a157_0x5353ff(0x17c)](),controller[a157_0x5353ff(0x176)]),router[a157_0x5353ff(0x191)]('/',auth[a157_0x5353ff(0x17c)](),controller[a157_0x5353ff(0x193)]),router['post'](a157_0x5353ff(0x179),auth[a157_0x5353ff(0x17c)](),controller[a157_0x5353ff(0x18f)]),router[a157_0x5353ff(0x191)]('/:id/tags',auth[a157_0x5353ff(0x17c)](),controller[a157_0x5353ff(0x175)]),router[a157_0x5353ff(0x191)](a157_0x5353ff(0x181),upload[a157_0x5353ff(0x196)](a157_0x5353ff(0x18c)),controller[a157_0x5353ff(0x180)]),router[a157_0x5353ff(0x191)]('/upload/:id',auth['isAuthenticated'](),controller[a157_0x5353ff(0x18a)]),router[a157_0x5353ff(0x185)](a157_0x5353ff(0x17e),auth[a157_0x5353ff(0x17c)](),controller['update']),router[a157_0x5353ff(0x17b)](a157_0x5353ff(0x17e),auth['isAuthenticated'](),controller[a157_0x5353ff(0x178)]),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 6b178e3..a8e5588 100644 --- a/server/api/cmCustomField/cmCustomField.attributes.js +++ b/server/api/cmCustomField/cmCustomField.attributes.js @@ -1 +1 @@ -const a158_0x1312=['exports','TEXT','stringify','sequelize','alias','type','isArray','select','STRING','setDataValue','ENUM','long','values','VIRTUAL','voice','attributes','getDataValue','parse','BOOLEAN'];(function(_0x1d31e3,_0x39120d){const _0x1312c1=function(_0x5d1d1d){while(--_0x5d1d1d){_0x1d31e3['push'](_0x1d31e3['shift']());}};_0x1312c1(++_0x39120d);}(a158_0x1312,0x126));const a158_0x5d1d=function(_0x1d31e3,_0x39120d){_0x1d31e3=_0x1d31e3-0x1a4;let _0x1312c1=a158_0x1312[_0x1d31e3];return _0x1312c1;};const a158_0x44062f=a158_0x5d1d;'use strict';const {DataTypes}=require(a158_0x44062f(0x1b1)),attributes={'name':{'type':DataTypes[a158_0x44062f(0x1a8)],'get':function(){const _0x55f804=a158_0x44062f;return this['getDataValue'](_0x55f804(0x1b2));}},'alias':{'type':DataTypes['STRING'],'allowNull':![],'set':function(_0x210277){const _0x8d847b=a158_0x44062f;this[_0x8d847b(0x1a4)](_0x8d847b(0x1b2),_0x210277?_0x210277:this[_0x8d847b(0x1ab)]('name'));}},'type':{'type':DataTypes[a158_0x44062f(0x1b6)],'allowNull':![]},'values':{'type':DataTypes[a158_0x44062f(0x1af)]({'length':a158_0x44062f(0x1a6)}),'get':function(){const _0x195486=a158_0x44062f;return this[_0x195486(0x1ab)](_0x195486(0x1b3))===_0x195486(0x1b5)?JSON[_0x195486(0x1ac)](this[_0x195486(0x1ab)](_0x195486(0x1a7))):this['getDataValue'](_0x195486(0x1a7));},'set':function(_0x4500fd){const _0x25b04b=a158_0x44062f;Array[_0x25b04b(0x1b4)](_0x4500fd)?this[_0x25b04b(0x1a4)](_0x25b04b(0x1a7),JSON[_0x25b04b(0x1b0)](_0x4500fd)):this[_0x25b04b(0x1a4)]('values',_0x4500fd);}},'required':{'type':DataTypes[a158_0x44062f(0x1ad)],'defaultValue':![]},'clickToAction':{'type':DataTypes[a158_0x44062f(0x1ad)],'defaultValue':![]},'actionType':{'type':DataTypes[a158_0x44062f(0x1a5)](a158_0x44062f(0x1a9))}};module[a158_0x44062f(0x1ae)][a158_0x44062f(0x1aa)]=attributes; \ No newline at end of file +const a158_0x3b08=['BOOLEAN','stringify','exports','getDataValue','alias','name','attributes','type','sequelize','TEXT','select','ENUM','STRING','values','setDataValue','voice','isArray','VIRTUAL'];(function(_0x4cbed5,_0x202c3f){const _0x3b08aa=function(_0x5e440){while(--_0x5e440){_0x4cbed5['push'](_0x4cbed5['shift']());}};_0x3b08aa(++_0x202c3f);}(a158_0x3b08,0x109));const a158_0x5e44=function(_0x4cbed5,_0x202c3f){_0x4cbed5=_0x4cbed5-0xf4;let _0x3b08aa=a158_0x3b08[_0x4cbed5];return _0x3b08aa;};const a158_0x2a9952=a158_0x5e44;'use strict';const {DataTypes}=require(a158_0x2a9952(0x101)),attributes={'name':{'type':DataTypes[a158_0x2a9952(0xf8)],'get':function(){const _0x1da72a=a158_0x2a9952;return this[_0x1da72a(0xfc)](_0x1da72a(0xfd));}},'alias':{'type':DataTypes[a158_0x2a9952(0x105)],'allowNull':![],'set':function(_0x391975){const _0x1d27fa=a158_0x2a9952;this['setDataValue'](_0x1d27fa(0xfd),_0x391975?_0x391975:this[_0x1d27fa(0xfc)](_0x1d27fa(0xfe)));}},'type':{'type':DataTypes[a158_0x2a9952(0x105)],'allowNull':![]},'values':{'type':DataTypes[a158_0x2a9952(0x102)]({'length':'long'}),'get':function(){const _0x4bd1fb=a158_0x2a9952;return this['getDataValue'](_0x4bd1fb(0x100))===_0x4bd1fb(0x103)?JSON['parse'](this['getDataValue'](_0x4bd1fb(0xf4))):this['getDataValue']('values');},'set':function(_0x456331){const _0x275939=a158_0x2a9952;Array[_0x275939(0xf7)](_0x456331)?this[_0x275939(0xf5)](_0x275939(0xf4),JSON[_0x275939(0xfa)](_0x456331)):this[_0x275939(0xf5)](_0x275939(0xf4),_0x456331);}},'required':{'type':DataTypes[a158_0x2a9952(0xf9)],'defaultValue':![]},'clickToAction':{'type':DataTypes[a158_0x2a9952(0xf9)],'defaultValue':![]},'actionType':{'type':DataTypes[a158_0x2a9952(0x104)](a158_0x2a9952(0xf6))}};module[a158_0x2a9952(0xfb)][a158_0x2a9952(0xff)]=attributes; \ No newline at end of file diff --git a/server/api/cmCustomField/cmCustomField.controller.js b/server/api/cmCustomField/cmCustomField.controller.js index 2bbdb3e..099327b 100644 --- a/server/api/cmCustomField/cmCustomField.controller.js +++ b/server/api/cmCustomField/cmCustomField.controller.js @@ -1 +1 @@ -const a159_0xbab6=['catch','switch','../../config/logger','../../mysqldb','attributes','json','index','TEXT','rawAttributes','pick','fields','findOne','undefined','offset','options','destroy','api','limit','params','nolimit','Content-Range','addColumn','BOOLEAN','text','order','keys','lodash','findAll','query','filter','rows','queryInterface','model','map','show','length','merge','update','filters','cf_%d','send','where','body','fieldName','end','type','VIRTUAL','name','defaultValue','includeAll','like','intersection','sequelize','transaction','then','sendStatus','sort','set','count','create','CmCustomField','status'];(function(_0x3d22f8,_0x505dd8){const _0xbab635=function(_0x31ba89){while(--_0x31ba89){_0x3d22f8['push'](_0x3d22f8['shift']());}};_0xbab635(++_0x505dd8);}(a159_0xbab6,0x140));const a159_0x31ba=function(_0x3d22f8,_0x505dd8){_0x3d22f8=_0x3d22f8-0xcb;let _0xbab635=a159_0xbab6[_0x3d22f8];return _0xbab635;};const a159_0x11ea6c=a159_0x31ba;'use strict';const util=require('util'),_=require(a159_0x11ea6c(0xdb)),qs=require('../../components/parsers/qs'),logger=require(a159_0x11ea6c(0x101))(a159_0x11ea6c(0xd1)),{db}=require(a159_0x11ea6c(0x102)),{Op,DataTypes}=require('sequelize');function respondWithResult(_0x1eb8be,_0xf9be46){return _0xf9be46=_0xf9be46||0xc8,function(_0x41b4a9){const _0x2b907d=a159_0x31ba;if(_0x41b4a9)return _0x1eb8be[_0x2b907d(0xfe)](_0xf9be46)[_0x2b907d(0x104)](_0x41b4a9);};}function respondWithFilteredResult(_0x3366f8,_0x48893d){return function(_0x39a921){const _0xd17499=a159_0x31ba;if(_0x39a921){const _0x5a348d=_0x39a921[_0xd17499(0xfb)],_0x2248a3=_0x48893d['offset'];let _0x37fa3b=_0x48893d[_0xd17499(0xce)]+_0x48893d['limit'],_0x2bcb9f;return _0x37fa3b>=_0x5a348d?(_0x37fa3b=_0x5a348d,_0x2bcb9f=0xc8):_0x2bcb9f=0xce,_0x3366f8[_0xd17499(0xfe)](_0x2bcb9f),_0x3366f8[_0xd17499(0xfa)](_0xd17499(0xd5),_0x2248a3+'-'+_0x37fa3b+'/'+_0x5a348d)['json'](_0x39a921);}return null;};}function saveUpdates(_0x4fd621){return function(_0x360441){const _0xa9b7ec=a159_0x31ba;if(_0x360441)return _0x360441[_0xa9b7ec(0xe6)](_0x4fd621)[_0xa9b7ec(0xf7)](function(_0x7f45b){return _0x7f45b;});return null;};}function removeEntity(_0x1086f5){return function(_0xdbf9ae){const _0x272eb3=a159_0x31ba;if(_0xdbf9ae)return _0xdbf9ae['destroy']()[_0x272eb3(0xf7)](function(){const _0x2b050f=_0x272eb3;_0x1086f5[_0x2b050f(0xfe)](0xcc)[_0x2b050f(0xed)]();});};}function handleEntityNotFound(_0x4b17e1){return function(_0x5194c2){const _0x21575f=a159_0x31ba;return!_0x5194c2&&_0x4b17e1[_0x21575f(0xf8)](0x194),_0x5194c2;};}function handleError(_0x577062,_0x36eb85){return _0x36eb85=_0x36eb85||0x1f4,function(_0x30cfe2){const _0xe94cef=a159_0x31ba;logger['error'](_0x30cfe2['stack']),_0x30cfe2[_0xe94cef(0xf0)]&&delete _0x30cfe2[_0xe94cef(0xf0)],_0x577062[_0xe94cef(0xfe)](_0x36eb85)[_0xe94cef(0xe9)](_0x30cfe2);};}exports[a159_0x11ea6c(0x105)]=function(_0x1cce0c,_0xfe49fd){const _0xaa4957=a159_0x11ea6c;let _0x3f9075={};const _0x38a6f2={},_0x60488b={'count':0x0,'rows':[]},_0x67e5e=_[_0xaa4957(0xe2)](db[_0xaa4957(0xfd)][_0xaa4957(0x107)],function(_0x245b4d){const _0x3412e2=_0xaa4957;return{'name':_0x245b4d[_0x3412e2(0xec)],'type':_0x245b4d[_0x3412e2(0xee)]['key']};});_0x38a6f2[_0xaa4957(0xe1)]=_['differenceBy'](_[_0xaa4957(0xe2)](_0x67e5e,_0xaa4957(0xf0)),[_0xaa4957(0xf0)]),_0x38a6f2[_0xaa4957(0xdd)]=_['keys'](_0x1cce0c[_0xaa4957(0xdd)]),_0x38a6f2['filters']=_[_0xaa4957(0xf4)](_0x38a6f2['model'],_0x38a6f2[_0xaa4957(0xdd)]),_0x3f9075[_0xaa4957(0x103)]=_[_0xaa4957(0xf4)](_0x38a6f2[_0xaa4957(0xe1)],qs[_0xaa4957(0xcb)](_0x1cce0c[_0xaa4957(0xdd)][_0xaa4957(0xcb)])),_0x3f9075[_0xaa4957(0x103)]=_0x3f9075[_0xaa4957(0x103)][_0xaa4957(0xe4)]?_0x3f9075[_0xaa4957(0x103)]:_0x38a6f2[_0xaa4957(0xe1)];typeof _0x1cce0c[_0xaa4957(0xdd)][_0xaa4957(0xd4)]===_0xaa4957(0xcd)&&(_0x3f9075['limit']=qs[_0xaa4957(0xd2)](_0x1cce0c[_0xaa4957(0xdd)][_0xaa4957(0xd2)]),_0x3f9075[_0xaa4957(0xce)]=qs[_0xaa4957(0xce)](_0x1cce0c[_0xaa4957(0xdd)]['offset']));_0x3f9075[_0xaa4957(0xd9)]=qs[_0xaa4957(0xf9)](_0x1cce0c[_0xaa4957(0xdd)][_0xaa4957(0xf9)]),_0x3f9075[_0xaa4957(0xea)]=qs[_0xaa4957(0xe7)](_[_0xaa4957(0x108)](_0x1cce0c[_0xaa4957(0xdd)],_0x38a6f2[_0xaa4957(0xe7)]),_0x67e5e);_0x1cce0c[_0xaa4957(0xdd)][_0xaa4957(0xde)]&&(_0x3f9075[_0xaa4957(0xea)]=_[_0xaa4957(0xe5)](_0x3f9075[_0xaa4957(0xea)],{[Op['or']]:_['map'](_0x67e5e,function(_0x3da7e7){const _0x2562ba=_0xaa4957;if(_0x3da7e7[_0x2562ba(0xee)]!==_0x2562ba(0xef)){const _0x4dde17={};return _0x4dde17[_0x3da7e7[_0x2562ba(0xf0)]]={[Op[_0x2562ba(0xf3)]]:'%'+_0x1cce0c['query']['filter']+'%'},_0x4dde17;}})}));_0x3f9075=_[_0xaa4957(0xe5)]({},_0x3f9075,_0x1cce0c[_0xaa4957(0xcf)]);const _0x5aef17={'where':_0x3f9075[_0xaa4957(0xea)]};return db[_0xaa4957(0xfd)][_0xaa4957(0xfb)](_0x5aef17)[_0xaa4957(0xf7)](function(_0x10f5cb){const _0x420cdf=_0xaa4957;return _0x60488b[_0x420cdf(0xfb)]=_0x10f5cb,_0x1cce0c['query'][_0x420cdf(0xf2)]&&(_0x3f9075['include']=[{'all':!![]}]),db['CmCustomField'][_0x420cdf(0xdc)](_0x3f9075);})[_0xaa4957(0xf7)](function(_0xbd28ff){const _0x341eb4=_0xaa4957;return _0x60488b[_0x341eb4(0xdf)]=_0xbd28ff,_0x60488b;})['then'](respondWithFilteredResult(_0xfe49fd,_0x3f9075))['catch'](handleError(_0xfe49fd,null));},exports[a159_0x11ea6c(0xe3)]=function(_0x269af0,_0x4371c9){const _0x216bd7=a159_0x11ea6c;let _0x579857={'raw':!![],'where':{'id':_0x269af0[_0x216bd7(0xd3)]['id']}};const _0x373be5={};return _0x373be5['model']=_[_0x216bd7(0xda)](db[_0x216bd7(0xfd)]['rawAttributes']),_0x373be5[_0x216bd7(0xdd)]=_['keys'](_0x269af0[_0x216bd7(0xdd)]),_0x373be5[_0x216bd7(0xe7)]=_[_0x216bd7(0xf4)](_0x373be5[_0x216bd7(0xe1)],_0x373be5['query']),_0x579857[_0x216bd7(0x103)]=_[_0x216bd7(0xf4)](_0x373be5[_0x216bd7(0xe1)],qs[_0x216bd7(0xcb)](_0x269af0['query'][_0x216bd7(0xcb)])),_0x579857[_0x216bd7(0x103)]=_0x579857[_0x216bd7(0x103)][_0x216bd7(0xe4)]?_0x579857[_0x216bd7(0x103)]:_0x373be5[_0x216bd7(0xe1)],_0x269af0[_0x216bd7(0xdd)]['includeAll']&&(_0x579857['include']=[{'all':!![]}]),_0x579857=_['merge']({},_0x579857,_0x269af0[_0x216bd7(0xcf)]),db[_0x216bd7(0xfd)][_0x216bd7(0xcc)](_0x579857)[_0x216bd7(0xf7)](handleEntityNotFound(_0x4371c9,null))[_0x216bd7(0xf7)](respondWithResult(_0x4371c9,null))[_0x216bd7(0xff)](handleError(_0x4371c9,null));},exports[a159_0x11ea6c(0xe6)]=function(_0x2c2e5e,_0x2f68a2){const _0xec715=a159_0x11ea6c;return _0x2c2e5e[_0xec715(0xeb)]['id']&&delete _0x2c2e5e['body']['id'],db[_0xec715(0xfd)]['findOne']({'where':{'id':_0x2c2e5e['params']['id']}})['then'](handleEntityNotFound(_0x2f68a2,null))['then'](saveUpdates(_0x2c2e5e[_0xec715(0xeb)],null))[_0xec715(0xf7)](respondWithResult(_0x2f68a2,null))[_0xec715(0xff)](handleError(_0x2f68a2,null));},exports[a159_0x11ea6c(0xd0)]=function(_0x4edb5e,_0x49e4ab){const _0x578c2b=a159_0x11ea6c;return db['CmCustomField']['findOne']({'where':{'id':_0x4edb5e['params']['id']}})[_0x578c2b(0xf7)](handleEntityNotFound(_0x49e4ab,null))['then'](removeEntity(_0x49e4ab,null))[_0x578c2b(0xff)](handleError(_0x49e4ab,null));},exports['create']=function(_0x253cee,_0x3f4ceb){const _0x54613f=a159_0x11ea6c;let _0x3d5883;return db[_0x54613f(0xf5)][_0x54613f(0xf6)](function(_0x357b2b){const _0xbeecde=_0x54613f;return db[_0xbeecde(0xfd)][_0xbeecde(0xfc)](_0x253cee[_0xbeecde(0xeb)],{'transaction':_0x357b2b})[_0xbeecde(0xf7)](function(_0x4dd89f){const _0x3ab2ca=_0xbeecde;_0x3d5883=_0x4dd89f;const _0x80372={'type':DataTypes[_0x3ab2ca(0x106)],'transaction':_0x357b2b};switch(_0x253cee['body']['type']){case _0x3ab2ca(0xd8):_0x80372['type']=DataTypes['TEXT'];break;case'number':_0x80372[_0x3ab2ca(0xee)]=DataTypes['INTEGER'];break;case _0x3ab2ca(0x100):_0x80372[_0x3ab2ca(0xee)]=DataTypes[_0x3ab2ca(0xd7)],_0x80372[_0x3ab2ca(0xf1)]=![];break;default:}return db[_0x3ab2ca(0xf5)][_0x3ab2ca(0xe0)][_0x3ab2ca(0xd6)]('cm_contacts',util['format'](_0x3ab2ca(0xe8),_0x3d5883['id']),_0x80372);})[_0xbeecde(0xf7)](function(){return _0x3d5883;});})[_0x54613f(0xf7)](respondWithResult(_0x3f4ceb,0xc9))['catch'](handleError(_0x3f4ceb,null));}; \ No newline at end of file +const a159_0x118c=['queryInterface','name','BOOLEAN','keys','offset','TEXT','intersection','catch','undefined','then','body','CmCustomField','create','limit','VIRTUAL','../../components/parsers/qs','sendStatus','map','update','json','where','transaction','destroy','show','set','cf_%d','number','defaultValue','send','rawAttributes','pick','status','findOne','sort','../../mysqldb','stack','includeAll','type','include','like','api','query','cm_contacts','options','util','sequelize','fieldName','length','fields','filter','count','merge','switch','key','addColumn','rows','differenceBy','filters','params','attributes','lodash','format','model'];(function(_0x5f3fc8,_0x54d655){const _0x118c28=function(_0x10b892){while(--_0x10b892){_0x5f3fc8['push'](_0x5f3fc8['shift']());}};_0x118c28(++_0x54d655);}(a159_0x118c,0x183));const a159_0x10b8=function(_0x5f3fc8,_0x54d655){_0x5f3fc8=_0x5f3fc8-0x11f;let _0x118c28=a159_0x118c[_0x5f3fc8];return _0x118c28;};const a159_0x1e677e=a159_0x10b8;'use strict';const util=require(a159_0x1e677e(0x142)),_=require(a159_0x1e677e(0x152)),qs=require(a159_0x1e677e(0x125)),logger=require('../../config/logger')(a159_0x1e677e(0x13e)),{db}=require(a159_0x1e677e(0x138)),{Op,DataTypes}=require(a159_0x1e677e(0x143));function respondWithResult(_0x1aae91,_0x73cd39){return _0x73cd39=_0x73cd39||0xc8,function(_0x5aa0b4){const _0x1a908a=a159_0x10b8;if(_0x5aa0b4)return _0x1aae91[_0x1a908a(0x135)](_0x73cd39)['json'](_0x5aa0b4);};}function respondWithFilteredResult(_0x2963d6,_0x1f8aa8){return function(_0x3bfa6f){const _0x159fa1=a159_0x10b8;if(_0x3bfa6f){const _0x41f830=_0x3bfa6f['count'],_0x4d0de1=_0x1f8aa8[_0x159fa1(0x159)];let _0xbfa1a4=_0x1f8aa8[_0x159fa1(0x159)]+_0x1f8aa8[_0x159fa1(0x123)],_0x2b1fcd;return _0xbfa1a4>=_0x41f830?(_0xbfa1a4=_0x41f830,_0x2b1fcd=0xc8):_0x2b1fcd=0xce,_0x2963d6[_0x159fa1(0x135)](_0x2b1fcd),_0x2963d6[_0x159fa1(0x12e)]('Content-Range',_0x4d0de1+'-'+_0xbfa1a4+'/'+_0x41f830)[_0x159fa1(0x129)](_0x3bfa6f);}return null;};}function saveUpdates(_0x5e7f41){return function(_0xa14153){const _0x2646e0=a159_0x10b8;if(_0xa14153)return _0xa14153[_0x2646e0(0x128)](_0x5e7f41)[_0x2646e0(0x11f)](function(_0x350e95){return _0x350e95;});return null;};}function removeEntity(_0x27ac5a){return function(_0x413ea0){const _0x5a9d09=a159_0x10b8;if(_0x413ea0)return _0x413ea0[_0x5a9d09(0x12c)]()[_0x5a9d09(0x11f)](function(){const _0x1ec464=_0x5a9d09;_0x27ac5a[_0x1ec464(0x135)](0xcc)['end']();});};}function handleEntityNotFound(_0x3db979){return function(_0x3458d0){const _0x8dbabf=a159_0x10b8;return!_0x3458d0&&_0x3db979[_0x8dbabf(0x126)](0x194),_0x3458d0;};}function handleError(_0x1aaea4,_0x21c9c9){return _0x21c9c9=_0x21c9c9||0x1f4,function(_0x29ee6b){const _0x5873be=a159_0x10b8;logger['error'](_0x29ee6b[_0x5873be(0x139)]),_0x29ee6b[_0x5873be(0x156)]&&delete _0x29ee6b[_0x5873be(0x156)],_0x1aaea4[_0x5873be(0x135)](_0x21c9c9)[_0x5873be(0x132)](_0x29ee6b);};}exports['index']=function(_0x451202,_0xb0ce98){const _0x6bcd6e=a159_0x1e677e;let _0x119f87={};const _0x5a28dc={},_0x830d72={'count':0x0,'rows':[]},_0xb1ad57=_['map'](db['CmCustomField'][_0x6bcd6e(0x133)],function(_0x2227df){const _0x2af603=_0x6bcd6e;return{'name':_0x2227df[_0x2af603(0x144)],'type':_0x2227df['type'][_0x2af603(0x14b)]};});_0x5a28dc['model']=_[_0x6bcd6e(0x14e)](_['map'](_0xb1ad57,_0x6bcd6e(0x156)),[_0x6bcd6e(0x156)]),_0x5a28dc['query']=_[_0x6bcd6e(0x158)](_0x451202[_0x6bcd6e(0x13f)]),_0x5a28dc[_0x6bcd6e(0x14f)]=_[_0x6bcd6e(0x15b)](_0x5a28dc['model'],_0x5a28dc[_0x6bcd6e(0x13f)]),_0x119f87[_0x6bcd6e(0x151)]=_['intersection'](_0x5a28dc[_0x6bcd6e(0x154)],qs['fields'](_0x451202[_0x6bcd6e(0x13f)][_0x6bcd6e(0x146)])),_0x119f87['attributes']=_0x119f87['attributes'][_0x6bcd6e(0x145)]?_0x119f87[_0x6bcd6e(0x151)]:_0x5a28dc[_0x6bcd6e(0x154)];typeof _0x451202['query']['nolimit']===_0x6bcd6e(0x15d)&&(_0x119f87[_0x6bcd6e(0x123)]=qs['limit'](_0x451202[_0x6bcd6e(0x13f)][_0x6bcd6e(0x123)]),_0x119f87[_0x6bcd6e(0x159)]=qs[_0x6bcd6e(0x159)](_0x451202['query'][_0x6bcd6e(0x159)]));_0x119f87['order']=qs[_0x6bcd6e(0x137)](_0x451202['query'][_0x6bcd6e(0x137)]),_0x119f87[_0x6bcd6e(0x12a)]=qs[_0x6bcd6e(0x14f)](_[_0x6bcd6e(0x134)](_0x451202[_0x6bcd6e(0x13f)],_0x5a28dc[_0x6bcd6e(0x14f)]),_0xb1ad57);_0x451202[_0x6bcd6e(0x13f)][_0x6bcd6e(0x147)]&&(_0x119f87[_0x6bcd6e(0x12a)]=_[_0x6bcd6e(0x149)](_0x119f87[_0x6bcd6e(0x12a)],{[Op['or']]:_[_0x6bcd6e(0x127)](_0xb1ad57,function(_0x1844ea){const _0x19476f=_0x6bcd6e;if(_0x1844ea[_0x19476f(0x13b)]!==_0x19476f(0x124)){const _0x2ea6d3={};return _0x2ea6d3[_0x1844ea[_0x19476f(0x156)]]={[Op[_0x19476f(0x13d)]]:'%'+_0x451202['query'][_0x19476f(0x147)]+'%'},_0x2ea6d3;}})}));_0x119f87=_['merge']({},_0x119f87,_0x451202[_0x6bcd6e(0x141)]);const _0x263221={'where':_0x119f87[_0x6bcd6e(0x12a)]};return db[_0x6bcd6e(0x121)][_0x6bcd6e(0x148)](_0x263221)[_0x6bcd6e(0x11f)](function(_0x1e923d){const _0x19bfa7=_0x6bcd6e;return _0x830d72[_0x19bfa7(0x148)]=_0x1e923d,_0x451202[_0x19bfa7(0x13f)][_0x19bfa7(0x13a)]&&(_0x119f87['include']=[{'all':!![]}]),db[_0x19bfa7(0x121)]['findAll'](_0x119f87);})[_0x6bcd6e(0x11f)](function(_0x1c7e17){const _0x2db999=_0x6bcd6e;return _0x830d72[_0x2db999(0x14d)]=_0x1c7e17,_0x830d72;})[_0x6bcd6e(0x11f)](respondWithFilteredResult(_0xb0ce98,_0x119f87))[_0x6bcd6e(0x15c)](handleError(_0xb0ce98,null));},exports[a159_0x1e677e(0x12d)]=function(_0x346ef3,_0x378dc0){const _0x456543=a159_0x1e677e;let _0xb4e806={'raw':!![],'where':{'id':_0x346ef3[_0x456543(0x150)]['id']}};const _0x447cc4={};return _0x447cc4[_0x456543(0x154)]=_[_0x456543(0x158)](db['CmCustomField'][_0x456543(0x133)]),_0x447cc4[_0x456543(0x13f)]=_[_0x456543(0x158)](_0x346ef3['query']),_0x447cc4[_0x456543(0x14f)]=_[_0x456543(0x15b)](_0x447cc4['model'],_0x447cc4[_0x456543(0x13f)]),_0xb4e806['attributes']=_[_0x456543(0x15b)](_0x447cc4[_0x456543(0x154)],qs[_0x456543(0x146)](_0x346ef3[_0x456543(0x13f)][_0x456543(0x146)])),_0xb4e806[_0x456543(0x151)]=_0xb4e806[_0x456543(0x151)][_0x456543(0x145)]?_0xb4e806[_0x456543(0x151)]:_0x447cc4[_0x456543(0x154)],_0x346ef3[_0x456543(0x13f)][_0x456543(0x13a)]&&(_0xb4e806[_0x456543(0x13c)]=[{'all':!![]}]),_0xb4e806=_[_0x456543(0x149)]({},_0xb4e806,_0x346ef3['options']),db['CmCustomField'][_0x456543(0x136)](_0xb4e806)['then'](handleEntityNotFound(_0x378dc0,null))[_0x456543(0x11f)](respondWithResult(_0x378dc0,null))[_0x456543(0x15c)](handleError(_0x378dc0,null));},exports[a159_0x1e677e(0x128)]=function(_0x2b9ead,_0x21f499){const _0x352efc=a159_0x1e677e;return _0x2b9ead[_0x352efc(0x120)]['id']&&delete _0x2b9ead[_0x352efc(0x120)]['id'],db['CmCustomField'][_0x352efc(0x136)]({'where':{'id':_0x2b9ead['params']['id']}})['then'](handleEntityNotFound(_0x21f499,null))[_0x352efc(0x11f)](saveUpdates(_0x2b9ead['body'],null))[_0x352efc(0x11f)](respondWithResult(_0x21f499,null))[_0x352efc(0x15c)](handleError(_0x21f499,null));},exports['destroy']=function(_0x5f4e29,_0x51aa61){const _0x4c51d2=a159_0x1e677e;return db[_0x4c51d2(0x121)][_0x4c51d2(0x136)]({'where':{'id':_0x5f4e29['params']['id']}})[_0x4c51d2(0x11f)](handleEntityNotFound(_0x51aa61,null))[_0x4c51d2(0x11f)](removeEntity(_0x51aa61,null))['catch'](handleError(_0x51aa61,null));},exports[a159_0x1e677e(0x122)]=function(_0x5e09cb,_0x2c0056){const _0x34c017=a159_0x1e677e;let _0x5ddb04;return db[_0x34c017(0x143)][_0x34c017(0x12b)](function(_0x3e2bdb){const _0x13688=_0x34c017;return db['CmCustomField'][_0x13688(0x122)](_0x5e09cb['body'],{'transaction':_0x3e2bdb})[_0x13688(0x11f)](function(_0x187d8f){const _0x7ad00d=_0x13688;_0x5ddb04=_0x187d8f;const _0x5a6f96={'type':DataTypes[_0x7ad00d(0x15a)],'transaction':_0x3e2bdb};switch(_0x5e09cb[_0x7ad00d(0x120)][_0x7ad00d(0x13b)]){case'text':_0x5a6f96[_0x7ad00d(0x13b)]=DataTypes[_0x7ad00d(0x15a)];break;case _0x7ad00d(0x130):_0x5a6f96[_0x7ad00d(0x13b)]=DataTypes['INTEGER'];break;case _0x7ad00d(0x14a):_0x5a6f96[_0x7ad00d(0x13b)]=DataTypes[_0x7ad00d(0x157)],_0x5a6f96[_0x7ad00d(0x131)]=![];break;default:}return db[_0x7ad00d(0x143)][_0x7ad00d(0x155)][_0x7ad00d(0x14c)](_0x7ad00d(0x140),util[_0x7ad00d(0x153)](_0x7ad00d(0x12f),_0x5ddb04['id']),_0x5a6f96);})[_0x13688(0x11f)](function(){return _0x5ddb04;});})[_0x34c017(0x11f)](respondWithResult(_0x2c0056,0xc9))[_0x34c017(0x15c)](handleError(_0x2c0056,null));}; \ No newline at end of file diff --git a/server/api/cmCustomField/cmCustomField.model.js b/server/api/cmCustomField/cmCustomField.model.js index d6801f4..7e87fee 100644 --- a/server/api/cmCustomField/cmCustomField.model.js +++ b/server/api/cmCustomField/cmCustomField.model.js @@ -1 +1 @@ -const a160_0x276d=['CmCustomField','./cmCustomField.options','exports','sequelize','function','init','./cmCustomField.attributes'];(function(_0x398ed3,_0x3682ce){const _0x276d1b=function(_0x2f8292){while(--_0x2f8292){_0x398ed3['push'](_0x398ed3['shift']());}};_0x276d1b(++_0x3682ce);}(a160_0x276d,0xa0));const a160_0x2f82=function(_0x398ed3,_0x3682ce){_0x398ed3=_0x398ed3-0xf1;let _0x276d1b=a160_0x276d[_0x398ed3];return _0x276d1b;};const a160_0x58605b=a160_0x2f82;'use strict';const {Model}=require(a160_0x58605b(0xf5)),{attributes}=require(a160_0x58605b(0xf1)),{options}=require(a160_0x58605b(0xf3));class CmCustomField extends Model{}function init(_0x53b514,_0x180650){const _0x30a285=a160_0x58605b,_0x2afede=options(_0x53b514),_0x30ecd6=typeof _0x180650===_0x30a285(0xf6)?_0x180650(_0x2afede):_0x2afede;return CmCustomField['init'](attributes,_0x30ecd6),CmCustomField;}module[a160_0x58605b(0xf4)][a160_0x58605b(0xf2)]=CmCustomField,module[a160_0x58605b(0xf4)][a160_0x58605b(0xf7)]=init; \ No newline at end of file +const a160_0x8b28=['./cmCustomField.attributes','function','CmCustomField','init','sequelize','exports'];(function(_0x54a928,_0xbc92c9){const _0x8b28eb=function(_0x286eba){while(--_0x286eba){_0x54a928['push'](_0x54a928['shift']());}};_0x8b28eb(++_0xbc92c9);}(a160_0x8b28,0x17d));const a160_0x286e=function(_0x54a928,_0xbc92c9){_0x54a928=_0x54a928-0x1c1;let _0x8b28eb=a160_0x8b28[_0x54a928];return _0x8b28eb;};const a160_0x58b3cd=a160_0x286e;'use strict';const {Model}=require(a160_0x58b3cd(0x1c2)),{attributes}=require(a160_0x58b3cd(0x1c4)),{options}=require('./cmCustomField.options');class CmCustomField extends Model{}function init(_0x3a57b3,_0x58dbba){const _0x479b8e=a160_0x58b3cd,_0x3ce635=options(_0x3a57b3),_0xc420d=typeof _0x58dbba===_0x479b8e(0x1c5)?_0x58dbba(_0x3ce635):_0x3ce635;return CmCustomField[_0x479b8e(0x1c1)](attributes,_0xc420d),CmCustomField;}module[a160_0x58b3cd(0x1c3)][a160_0x58b3cd(0x1c6)]=CmCustomField,module[a160_0x58b3cd(0x1c3)]['init']=init; \ No newline at end of file diff --git a/server/api/cmCustomField/cmCustomField.options.js b/server/api/cmCustomField/cmCustomField.options.js index abc4f05..2a7c9f5 100644 --- a/server/api/cmCustomField/cmCustomField.options.js +++ b/server/api/cmCustomField/cmCustomField.options.js @@ -1 +1 @@ -var a161_0x1e9f=['cm_custom_fields','options'];(function(_0x2f9826,_0x1893e8){var _0x1e9f15=function(_0x3330fd){while(--_0x3330fd){_0x2f9826['push'](_0x2f9826['shift']());}};_0x1e9f15(++_0x1893e8);}(a161_0x1e9f,0x196));var a161_0x3330=function(_0x2f9826,_0x1893e8){_0x2f9826=_0x2f9826-0x109;var _0x1e9f15=a161_0x1e9f[_0x2f9826];return _0x1e9f15;};var a161_0x2de5a1=a161_0x3330;function options(_0x3778a3){var _0x288907=a161_0x3330;return{'sequelize':_0x3778a3,'tableName':_0x288907(0x109),'paranoid':!![],'indexes':[],'timestamps':!![]};}module['exports'][a161_0x2de5a1(0x10a)]=options; \ No newline at end of file +var a161_0x3f7a=['exports','options'];(function(_0x10cbbd,_0xaeb47e){var _0x3f7a26=function(_0xad6c27){while(--_0xad6c27){_0x10cbbd['push'](_0x10cbbd['shift']());}};_0x3f7a26(++_0xaeb47e);}(a161_0x3f7a,0x181));var a161_0xad6c=function(_0x10cbbd,_0xaeb47e){_0x10cbbd=_0x10cbbd-0x13e;var _0x3f7a26=a161_0x3f7a[_0x10cbbd];return _0x3f7a26;};var a161_0x161ba7=a161_0xad6c;function options(_0x4c9272){return{'sequelize':_0x4c9272,'tableName':'cm_custom_fields','paranoid':!![],'indexes':[],'timestamps':!![]};}module[a161_0x161ba7(0x13f)][a161_0x161ba7(0x13e)]=options; \ No newline at end of file diff --git a/server/api/cmCustomField/index.js b/server/api/cmCustomField/index.js index ed39506..bb98ae1 100644 --- a/server/api/cmCustomField/index.js +++ b/server/api/cmCustomField/index.js @@ -1 +1 @@ -const a162_0x198c=['put','../../components/auth/service','exports','post','express','./cmCustomField.controller','show','delete','isAuthenticated','destroy','Router','/:id','get','create'];(function(_0x435d5f,_0x5b66f6){const _0x198c0a=function(_0x4752ed){while(--_0x4752ed){_0x435d5f['push'](_0x435d5f['shift']());}};_0x198c0a(++_0x5b66f6);}(a162_0x198c,0x19b));const a162_0x4752=function(_0x435d5f,_0x5b66f6){_0x435d5f=_0x435d5f-0x7d;let _0x198c0a=a162_0x198c[_0x435d5f];return _0x198c0a;};const a162_0x4b7fe8=a162_0x4752;'use strict';const express=require(a162_0x4b7fe8(0x8a)),router=express[a162_0x4b7fe8(0x82)](),auth=require(a162_0x4b7fe8(0x87)),controller=require(a162_0x4b7fe8(0x7d));router['get']('/',auth[a162_0x4b7fe8(0x80)](),controller['index']),router[a162_0x4b7fe8(0x84)](a162_0x4b7fe8(0x83),auth['isAuthenticated'](),controller[a162_0x4b7fe8(0x7e)]),router[a162_0x4b7fe8(0x89)]('/',auth[a162_0x4b7fe8(0x80)](),controller[a162_0x4b7fe8(0x85)]),router[a162_0x4b7fe8(0x86)](a162_0x4b7fe8(0x83),auth[a162_0x4b7fe8(0x80)](),controller['update']),router[a162_0x4b7fe8(0x7f)](a162_0x4b7fe8(0x83),auth[a162_0x4b7fe8(0x80)](),controller[a162_0x4b7fe8(0x81)]),module[a162_0x4b7fe8(0x88)]=router; \ No newline at end of file +const a162_0xcaaf=['./cmCustomField.controller','create','index','destroy','/:id','isAuthenticated','get','put','Router','show'];(function(_0x135a60,_0x17593d){const _0xcaafae=function(_0x4e4dd3){while(--_0x4e4dd3){_0x135a60['push'](_0x135a60['shift']());}};_0xcaafae(++_0x17593d);}(a162_0xcaaf,0x197));const a162_0x4e4d=function(_0x135a60,_0x17593d){_0x135a60=_0x135a60-0x1d4;let _0xcaafae=a162_0xcaaf[_0x135a60];return _0xcaafae;};const a162_0x7405e6=a162_0x4e4d;'use strict';const express=require('express'),router=express[a162_0x7405e6(0x1d5)](),auth=require('../../components/auth/service'),controller=require(a162_0x7405e6(0x1d7));router['get']('/',auth[a162_0x7405e6(0x1dc)](),controller[a162_0x7405e6(0x1d9)]),router[a162_0x7405e6(0x1dd)](a162_0x7405e6(0x1db),auth[a162_0x7405e6(0x1dc)](),controller[a162_0x7405e6(0x1d6)]),router['post']('/',auth[a162_0x7405e6(0x1dc)](),controller[a162_0x7405e6(0x1d8)]),router[a162_0x7405e6(0x1d4)](a162_0x7405e6(0x1db),auth['isAuthenticated'](),controller['update']),router['delete']('/:id',auth['isAuthenticated'](),controller[a162_0x7405e6(0x1da)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/cmHopper/cmHopper.attributes.js b/server/api/cmHopper/cmHopper.attributes.js index 06252f5..d7f2fd7 100644 --- a/server/api/cmHopper/cmHopper.attributes.js +++ b/server/api/cmHopper/cmHopper.attributes.js @@ -1 +1 @@ -const a163_0x3fd9=['format','DATE','INTEGER','moment','UNSIGNED','BOOLEAN','YYYY-MM-DD\x20HH:mm:ss','contactListQueue','STRING'];(function(_0x5614b0,_0x5b60d6){const _0x3fd94=function(_0x4c4fd4){while(--_0x4c4fd4){_0x5614b0['push'](_0x5614b0['shift']());}};_0x3fd94(++_0x5b60d6);}(a163_0x3fd9,0x168));const a163_0x4c4f=function(_0x5614b0,_0x5b60d6){_0x5614b0=_0x5614b0-0x16e;let _0x3fd94=a163_0x3fd9[_0x5614b0];return _0x3fd94;};const a163_0x57f838=a163_0x4c4f;'use strict';const moment=require(a163_0x57f838(0x171)),{DataTypes}=require('sequelize'),attributes={'phone':{'type':DataTypes[a163_0x57f838(0x176)],'allowNull':![]},'active':{'type':DataTypes[a163_0x57f838(0x173)],'defaultValue':![]},'scheduledat':{'type':DataTypes[a163_0x57f838(0x16f)],'defaultValue':moment()[a163_0x57f838(0x16e)](a163_0x57f838(0x174))},'countbusyretry':{'type':DataTypes[a163_0x57f838(0x170)],'defaultValue':0x0},'countcongestionretry':{'type':DataTypes[a163_0x57f838(0x170)],'defaultValue':0x0},'countnoanswerretry':{'type':DataTypes[a163_0x57f838(0x170)],'defaultValue':0x0},'callback':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'callbackuniqueid':{'type':DataTypes[a163_0x57f838(0x176)],'defaultValue':null},'callbackat':{'type':DataTypes[a163_0x57f838(0x16f)]},'priority':{'type':DataTypes[a163_0x57f838(0x170)]({'length':0x2})[a163_0x57f838(0x172)],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'recallme':{'type':DataTypes[a163_0x57f838(0x173)],'defaultValue':![]},'ContactId':{'type':DataTypes['INTEGER'],'unique':'contactListQueue'},'ListId':{'type':DataTypes['INTEGER'],'unique':a163_0x57f838(0x175)},'UserId':{'type':DataTypes[a163_0x57f838(0x170)]},'VoiceQueueId':{'type':DataTypes[a163_0x57f838(0x170)],'unique':a163_0x57f838(0x175)},'CampaignId':{'type':DataTypes[a163_0x57f838(0x170)]},'countnosuchnumberretry':{'type':DataTypes[a163_0x57f838(0x170)],'defaultValue':0x0},'countdropretry':{'type':DataTypes[a163_0x57f838(0x170)],'defaultValue':0x0},'countabandonedretry':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'countmachineretry':{'type':DataTypes[a163_0x57f838(0x170)],'defaultValue':0x0},'countagentrejectretry':{'type':DataTypes['INTEGER'],'defaultValue':0x0}};module['exports']['attributes']=attributes; \ No newline at end of file +const a163_0x429e=['exports','attributes','YYYY-MM-DD\x20HH:mm:ss','STRING','INTEGER','sequelize','BOOLEAN','DATE','contactListQueue'];(function(_0x43e163,_0x5470e7){const _0x429e3f=function(_0x5ae5a0){while(--_0x5ae5a0){_0x43e163['push'](_0x43e163['shift']());}};_0x429e3f(++_0x5470e7);}(a163_0x429e,0xc9));const a163_0x5ae5=function(_0x43e163,_0x5470e7){_0x43e163=_0x43e163-0x1c0;let _0x429e3f=a163_0x429e[_0x43e163];return _0x429e3f;};const a163_0x2f5d37=a163_0x5ae5;'use strict';const moment=require('moment'),{DataTypes}=require(a163_0x2f5d37(0x1c2)),attributes={'phone':{'type':DataTypes[a163_0x2f5d37(0x1c0)],'allowNull':![]},'active':{'type':DataTypes[a163_0x2f5d37(0x1c3)],'defaultValue':![]},'scheduledat':{'type':DataTypes[a163_0x2f5d37(0x1c4)],'defaultValue':moment()['format'](a163_0x2f5d37(0x1c8))},'countbusyretry':{'type':DataTypes[a163_0x2f5d37(0x1c1)],'defaultValue':0x0},'countcongestionretry':{'type':DataTypes[a163_0x2f5d37(0x1c1)],'defaultValue':0x0},'countnoanswerretry':{'type':DataTypes[a163_0x2f5d37(0x1c1)],'defaultValue':0x0},'callback':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'callbackuniqueid':{'type':DataTypes['STRING'],'defaultValue':null},'callbackat':{'type':DataTypes[a163_0x2f5d37(0x1c4)]},'priority':{'type':DataTypes[a163_0x2f5d37(0x1c1)]({'length':0x2})['UNSIGNED'],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'recallme':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'ContactId':{'type':DataTypes[a163_0x2f5d37(0x1c1)],'unique':a163_0x2f5d37(0x1c5)},'ListId':{'type':DataTypes[a163_0x2f5d37(0x1c1)],'unique':'contactListQueue'},'UserId':{'type':DataTypes[a163_0x2f5d37(0x1c1)]},'VoiceQueueId':{'type':DataTypes[a163_0x2f5d37(0x1c1)],'unique':a163_0x2f5d37(0x1c5)},'CampaignId':{'type':DataTypes[a163_0x2f5d37(0x1c1)]},'countnosuchnumberretry':{'type':DataTypes[a163_0x2f5d37(0x1c1)],'defaultValue':0x0},'countdropretry':{'type':DataTypes[a163_0x2f5d37(0x1c1)],'defaultValue':0x0},'countabandonedretry':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'countmachineretry':{'type':DataTypes[a163_0x2f5d37(0x1c1)],'defaultValue':0x0},'countagentrejectretry':{'type':DataTypes['INTEGER'],'defaultValue':0x0}};module[a163_0x2f5d37(0x1c6)][a163_0x2f5d37(0x1c7)]=attributes; \ No newline at end of file diff --git a/server/api/cmHopper/cmHopper.controller.js b/server/api/cmHopper/cmHopper.controller.js index c321efd..b041d74 100644 --- a/server/api/cmHopper/cmHopper.controller.js +++ b/server/api/cmHopper/cmHopper.controller.js @@ -1 +1 @@ -const a164_0x4a4e=['concat','findOne','key','user','getPreview','$between','filters','../../components/parsers/qs','entity\x20not\x20found','CmContac','scheduledat','model','type','CmContact','dataValues','COALESCE(CmHopper.UserId,\x200)\x20ASC','send','Content-Range','rawAttributes','$or','limit','$eq','$notBetween','deleted','priority','body','json','hopperIds','ContactId','where','scheduledAt','params','$notIn','like','then','undefined','$not','attributes','$lt','CampaignId','$notLike','length','omit','rows','lodash','order','intersection','direction','merge','sendStatus','$gt','firstName','keys','create','VoiceQueueId','VoiceQueue','$overlap','getOpenContacts','lte','getVoiceQueues','count','deletedat','map','preview','filter','nolimit','$contained','offset','LOCK','format','sort','lastName','$gte','catch','statedesc','pick','Queue','includeAll','$notILike','DESC','ASC','YYYY-MM-DD\x20HH:mm:ss','dialOrderByScheduledAt','Contact','update','CmCompany','describe','CmHopper','fieldName','CmHopperFinal','UserId','transaction','$contains','prev','isNil','show','CmHopper,\x20%s,\x20%s,\x20%s','$any','outbound','calleridnum','finally','phone','error','updatedAt','stack','query','state','List','isEmpty','$like','ivr','$and','isNumber','membername','calleridname','../../config/logger','CmList','name','UPDATE','fields','status','sequelize','VIRTUAL','destroy','queue','include'];(function(_0x5b4929,_0x51603c){const _0x4a4ed9=function(_0x5ad72b){while(--_0x5ad72b){_0x5b4929['push'](_0x5b4929['shift']());}};_0x4a4ed9(++_0x51603c);}(a164_0x4a4e,0x1e0));const a164_0x5ad7=function(_0x5b4929,_0x51603c){_0x5b4929=_0x5b4929-0x16d;let _0x4a4ed9=a164_0x4a4e[_0x5b4929];return _0x4a4ed9;};const a164_0x56e41c=a164_0x5ad7;'use strict';const moment=require('moment'),_=require(a164_0x56e41c(0x1b1)),qs=require(a164_0x56e41c(0x18c)),logger=require(a164_0x56e41c(0x17a))('api'),{db}=require('../../mysqldb'),{Op,literal}=require(a164_0x56e41c(0x180));function respondWithResult(_0x35a4e3,_0x3d49c8){return _0x3d49c8=_0x3d49c8||0xc8,function(_0xd4c892){const _0x3a1556=a164_0x5ad7;if(_0xd4c892)return _0x35a4e3[_0x3a1556(0x17f)](_0x3d49c8)[_0x3a1556(0x19f)](_0xd4c892);};}function respondWithFilteredResult(_0x19e7fc,_0x44b70e){return function(_0x5abaf0){const _0xd2c3ea=a164_0x5ad7;if(_0x5abaf0){const _0x23d94a=_0x5abaf0[_0xd2c3ea(0x1c1)],_0x45e7d5=_0x44b70e['offset'];let _0x45288c=_0x44b70e[_0xd2c3ea(0x1c8)]+_0x44b70e[_0xd2c3ea(0x199)],_0x3af59c;return _0x45288c>=_0x23d94a?(_0x45288c=_0x23d94a,_0x3af59c=0xc8):_0x3af59c=0xce,_0x19e7fc[_0xd2c3ea(0x17f)](_0x3af59c),_0x19e7fc['set'](_0xd2c3ea(0x196),_0x45e7d5+'-'+_0x45288c+'/'+_0x23d94a)[_0xd2c3ea(0x19f)](_0x5abaf0);}return null;};}function saveUpdates(_0x5bf24d){return function(_0x512254){const _0x2a288c=a164_0x5ad7;if(_0x512254)return _0x512254[_0x2a288c(0x1d9)](_0x5bf24d)[_0x2a288c(0x1a7)](function(_0xb1a2bf){return _0xb1a2bf;});return null;};}function handleEntityNotFound(_0x218731){return function(_0x48e977){const _0x53c425=a164_0x5ad7;return!_0x48e977&&_0x218731[_0x53c425(0x1b6)](0x194),_0x48e977;};}function handleError(_0x2e5a82,_0x5b6d71){return _0x5b6d71=_0x5b6d71||0x1f4,function(_0x576926){const _0x35e5cb=a164_0x5ad7;logger[_0x35e5cb(0x16d)](_0x576926[_0x35e5cb(0x16f)]),_0x576926[_0x35e5cb(0x17c)]&&delete _0x576926[_0x35e5cb(0x17c)],_0x2e5a82['status'](_0x5b6d71)[_0x35e5cb(0x195)](_0x576926);};}exports['index']=function(_0x1b9a67,_0x103161){const _0x3a8f8e=a164_0x56e41c;let _0x32598a={};const _0xeaae8e={},_0x500e0b={'count':0x0,'rows':[]},_0x25a72e=_[_0x3a8f8e(0x1c3)](db[_0x3a8f8e(0x1dc)][_0x3a8f8e(0x197)],function(_0x406e1c){const _0x132793=_0x3a8f8e;return{'name':_0x406e1c[_0x132793(0x1dd)],'type':_0x406e1c[_0x132793(0x191)][_0x132793(0x187)]};});_0xeaae8e[_0x3a8f8e(0x190)]=_[_0x3a8f8e(0x1c3)](_0x25a72e,_0x3a8f8e(0x17c)),_0xeaae8e[_0x3a8f8e(0x170)]=_['keys'](_0x1b9a67[_0x3a8f8e(0x170)]),_0xeaae8e[_0x3a8f8e(0x18b)]=_[_0x3a8f8e(0x1b3)](_0xeaae8e[_0x3a8f8e(0x190)],_0xeaae8e[_0x3a8f8e(0x170)]),_0xeaae8e['filters']=_[_0x3a8f8e(0x185)](_0xeaae8e[_0x3a8f8e(0x18b)],[_0x3a8f8e(0x176),_0x3a8f8e(0x198),_0x3a8f8e(0x1b7),_0x3a8f8e(0x1cd),_0x3a8f8e(0x1ab),'$lte','$ne',_0x3a8f8e(0x19a),_0x3a8f8e(0x1a9),_0x3a8f8e(0x18a),_0x3a8f8e(0x19b),'$in',_0x3a8f8e(0x1a5),'$like',_0x3a8f8e(0x1ad),'$iLike',_0x3a8f8e(0x1d3),_0x3a8f8e(0x174),_0x3a8f8e(0x1bd),_0x3a8f8e(0x1e1),_0x3a8f8e(0x1c7),_0x3a8f8e(0x1e6)]),_0x32598a['attributes']=_[_0x3a8f8e(0x1b3)](_0xeaae8e['model'],qs['fields'](_0x1b9a67[_0x3a8f8e(0x170)][_0x3a8f8e(0x17e)])),_0x32598a[_0x3a8f8e(0x1aa)]=_0x32598a[_0x3a8f8e(0x1aa)][_0x3a8f8e(0x1ae)]?_0x32598a['attributes']:_0xeaae8e['model'];typeof _0x1b9a67[_0x3a8f8e(0x170)][_0x3a8f8e(0x1c6)]===_0x3a8f8e(0x1a8)&&(_0x32598a[_0x3a8f8e(0x199)]=qs[_0x3a8f8e(0x199)](_0x1b9a67[_0x3a8f8e(0x170)][_0x3a8f8e(0x199)]),_0x32598a['offset']=qs[_0x3a8f8e(0x1c8)](_0x1b9a67[_0x3a8f8e(0x170)][_0x3a8f8e(0x1c8)]));_0x32598a[_0x3a8f8e(0x1b2)]=qs[_0x3a8f8e(0x1cb)](_0x1b9a67[_0x3a8f8e(0x170)]['sort']),_0x32598a[_0x3a8f8e(0x1a2)]=qs[_0x3a8f8e(0x18b)](_[_0x3a8f8e(0x1d0)](_0x1b9a67[_0x3a8f8e(0x170)],_0xeaae8e['filters']),_0x25a72e);_0x1b9a67[_0x3a8f8e(0x170)][_0x3a8f8e(0x1c5)]&&(_0x32598a['where']=_[_0x3a8f8e(0x1b5)](_0x32598a[_0x3a8f8e(0x1a2)],{[Op['or']]:_[_0x3a8f8e(0x1c3)](_0x25a72e,function(_0x16bbb6){const _0x373f70=_0x3a8f8e;if(_0x16bbb6[_0x373f70(0x191)]!==_0x373f70(0x181)){const _0x58c28c={};return _0x58c28c[_0x16bbb6[_0x373f70(0x17c)]]={[Op[_0x373f70(0x1a6)]]:'%'+_0x1b9a67['query'][_0x373f70(0x1c5)]+'%'},_0x58c28c;}})}));_0x32598a=_['merge']({},_0x32598a,_0x1b9a67['options']);const _0x553b2d={'where':_0x32598a[_0x3a8f8e(0x1a2)]};return db[_0x3a8f8e(0x1dc)][_0x3a8f8e(0x1c1)](_0x553b2d)['then'](function(_0x30641d){const _0x33dc80=_0x3a8f8e;return _0x500e0b['count']=_0x30641d,_0x1b9a67['query'][_0x33dc80(0x1d2)]&&(_0x32598a[_0x33dc80(0x184)]=[{'all':!![]}]),db['CmHopper']['findAll'](_0x32598a);})['then'](function(_0x4162ce){const _0x4c57c2=_0x3a8f8e;return _0x500e0b[_0x4c57c2(0x1b0)]=_0x4162ce,_0x500e0b;})['then'](respondWithFilteredResult(_0x103161,_0x32598a))[_0x3a8f8e(0x1ce)](handleError(_0x103161,null));},exports[a164_0x56e41c(0x1e4)]=function(_0x33935e,_0x43a249){const _0x29c65b=a164_0x56e41c;let _0x4f8e77={'raw':!![],'where':{'id':_0x33935e[_0x29c65b(0x1a4)]['id']}};const _0xf2b776={};return _0xf2b776[_0x29c65b(0x190)]=_[_0x29c65b(0x1b9)](db[_0x29c65b(0x1dc)][_0x29c65b(0x197)]),_0xf2b776[_0x29c65b(0x170)]=_[_0x29c65b(0x1b9)](_0x33935e[_0x29c65b(0x170)]),_0xf2b776['filters']=_[_0x29c65b(0x1b3)](_0xf2b776[_0x29c65b(0x190)],_0xf2b776[_0x29c65b(0x170)]),_0x4f8e77['attributes']=_[_0x29c65b(0x1b3)](_0xf2b776[_0x29c65b(0x190)],qs['fields'](_0x33935e[_0x29c65b(0x170)][_0x29c65b(0x17e)])),_0x4f8e77['attributes']=_0x4f8e77[_0x29c65b(0x1aa)]['length']?_0x4f8e77[_0x29c65b(0x1aa)]:_0xf2b776['model'],_0x33935e['query'][_0x29c65b(0x1d2)]&&(_0x4f8e77[_0x29c65b(0x184)]=[{'all':!![]}]),_0x4f8e77=_['merge']({},_0x4f8e77,_0x33935e['options']),db['CmHopper'][_0x29c65b(0x186)](_0x4f8e77)[_0x29c65b(0x1a7)](handleEntityNotFound(_0x43a249,null))['then'](respondWithResult(_0x43a249,null))[_0x29c65b(0x1ce)](handleError(_0x43a249,null));},exports[a164_0x56e41c(0x1ba)]=function(_0x4cebf8,_0x2ff384){const _0x20effa=a164_0x56e41c;return db['CmHopper'][_0x20effa(0x1ba)](_0x4cebf8[_0x20effa(0x19e)],{})[_0x20effa(0x1a7)](respondWithResult(_0x2ff384,0xc9))[_0x20effa(0x1ce)](handleError(_0x2ff384,null));},exports[a164_0x56e41c(0x1d9)]=function(_0x49940e,_0x1d48ec){const _0x1a6390=a164_0x56e41c;return _0x49940e[_0x1a6390(0x19e)]['id']&&delete _0x49940e[_0x1a6390(0x19e)]['id'],db[_0x1a6390(0x1dc)][_0x1a6390(0x186)]({'where':{'id':_0x49940e[_0x1a6390(0x1a4)]['id']}})[_0x1a6390(0x1a7)](handleEntityNotFound(_0x1d48ec,null))[_0x1a6390(0x1a7)](saveUpdates(_0x49940e[_0x1a6390(0x19e)],null))['then'](respondWithResult(_0x1d48ec,null))[_0x1a6390(0x1ce)](handleError(_0x1d48ec,null));},exports[a164_0x56e41c(0x1db)]=function(_0x1fbc53,_0x3f7e54){const _0x4ef380=a164_0x56e41c;return db[_0x4ef380(0x1dc)]['describe']()[_0x4ef380(0x1a7)](respondWithResult(_0x3f7e54,null))[_0x4ef380(0x1ce)](handleError(_0x3f7e54,null));},exports[a164_0x56e41c(0x182)]=function(_0x384e7a,_0xf13eba){const _0x572400=a164_0x56e41c;let _0x52d1d9;return db[_0x572400(0x1dc)][_0x572400(0x186)]({'where':{'id':_0x384e7a[_0x572400(0x1a4)]['id']}})[_0x572400(0x1a7)](handleEntityNotFound(_0xf13eba,null))[_0x572400(0x1a7)](function(_0x1f4185){const _0x4c0308=_0x572400;if(_0x1f4185)return _0x1f4185['destroy']()[_0x4c0308(0x1a7)](function(_0x565dfe){return _0x565dfe;});})[_0x572400(0x1a7)](function(_0x5b8ef7){const _0x227e32=_0x572400;_0x52d1d9=_0x5b8ef7;if(_0x5b8ef7){if(_0x5b8ef7['VoiceQueueId']||_0x5b8ef7[_0x227e32(0x1ac)])return db[_0x5b8ef7[_0x227e32(0x1bb)]?_0x227e32(0x1bc):'Campaign'][_0x227e32(0x186)]({'where':{'id':_0x5b8ef7[_0x227e32(0x1bb)]?_0x5b8ef7['VoiceQueueId']:_0x5b8ef7[_0x227e32(0x1ac)]},'attributes':['id',_0x227e32(0x17c)],'raw':!![]});}})[_0x572400(0x1a7)](function(_0x23cb62){const _0x3698a0=_0x572400,_0x4e2ba6={};if(_0x23cb62)return _['merge'](_0x4e2ba6,_[_0x3698a0(0x1af)](_0x52d1d9[_0x3698a0(0x193)],['createdAt',_0x3698a0(0x16e),'id'])),_0x4e2ba6[_0x3698a0(0x171)]=0x15,_0x4e2ba6[_0x3698a0(0x1cf)]=_0x3698a0(0x19c),_0x4e2ba6['campaign']=_0x23cb62[_0x3698a0(0x17c)],_0x4e2ba6[_0x3698a0(0x178)]=_0x384e7a[_0x3698a0(0x188)][_0x3698a0(0x17c)],_0x4e2ba6[_0x3698a0(0x1df)]=_0x384e7a[_0x3698a0(0x188)]['id'],_0x4e2ba6[_0x3698a0(0x19c)]=!![],_0x4e2ba6[_0x3698a0(0x1c2)]=moment()[_0x3698a0(0x1ca)](_0x3698a0(0x1d6)),_0x4e2ba6[_0x3698a0(0x1e8)]=_0x52d1d9[_0x3698a0(0x1ea)],_0x4e2ba6['campaigntype']=_0x52d1d9[_0x3698a0(0x1bb)]?_0x3698a0(0x183):_0x3698a0(0x175),db[_0x3698a0(0x18e)]['findOne']({'where':{'id':_0x4e2ba6[_0x3698a0(0x1a1)]},'attributes':['firstName',_0x3698a0(0x1cc)]})[_0x3698a0(0x1a7)](function(_0x318b97){const _0x394211=_0x3698a0;!_[_0x394211(0x1e3)](_0xf13eba)&&!_['isNil'](_0x318b97[_0x394211(0x1b8)])&&(_0x4e2ba6[_0x394211(0x179)]=_0x318b97['firstName'],!_[_0x394211(0x1e3)](_0x318b97[_0x394211(0x1cc)])&&(_0x4e2ba6['calleridname']+='\x20'+_0x318b97[_0x394211(0x1cc)]));})[_0x3698a0(0x1e9)](function(){const _0x48be6a=_0x3698a0;return db[_0x48be6a(0x1de)][_0x48be6a(0x1ba)](_0x4e2ba6);});})[_0x572400(0x1a7)](function(){const _0x39fa3b=_0x572400;return _0xf13eba[_0x39fa3b(0x17f)](0xcc)['end']();})[_0x572400(0x1ce)](handleError(_0xf13eba,null));},exports[a164_0x56e41c(0x189)]=function(_0x24778c,_0x43964f){const _0x55e618=a164_0x56e41c;let _0x2502f8=[];return db[_0x55e618(0x192)][_0x55e618(0x1db)]()['then'](function(_0x5c263f){const _0xccf1e3=_0x55e618;return _0x2502f8=_[_0xccf1e3(0x1b9)](_0x5c263f),_0x24778c[_0xccf1e3(0x188)][_0xccf1e3(0x1c0)]({'where':{'type':_0xccf1e3(0x1e7),'dialActive':!![],'dialMethod':'preview'},'attributes':['id',_0xccf1e3(0x1d7)],'raw':!![]});})['then'](function(_0x3369c0){const _0xc20df0=_0x55e618;if(_0x3369c0&&_0x3369c0[_0xc20df0(0x1ae)])return db[_0xc20df0(0x180)][_0xc20df0(0x1e0)](function(_0x38ca84){const _0x3226de=_0xc20df0,_0x2f515e={'active':![],'recallme':![],'scheduledAt':{[Op['lte']]:moment()[_0x3226de(0x1ca)](_0x3226de(0x1d6))},'VoiceQueueId':{[Op['in']]:_[_0x3226de(0x1c3)](_0x3369c0,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x24778c[_0x3226de(0x188)]['id']}]};let _0x205d13=[];return _0x24778c[_0x3226de(0x19e)]['direction']&&_0x24778c[_0x3226de(0x19e)][_0x3226de(0x1b4)]===_0x3226de(0x1e2)?(!_[_0x3226de(0x173)](_0x24778c[_0x3226de(0x19e)][_0x3226de(0x1a0)])&&(_0x2f515e['id']={'$in':_0x24778c[_0x3226de(0x19e)]['hopperIds']}),_0x205d13=[['priority',_0x3226de(0x1d5)],['scheduledAt',_0x3369c0[0x0][_0x3226de(0x1d7)]===_0x3226de(0x1d5)?'DESC':_0x3226de(0x1d5)],literal(_0x3226de(0x194)),['id',_0x3226de(0x1d4)]]):(!_[_0x3226de(0x173)](_0x24778c[_0x3226de(0x19e)][_0x3226de(0x1a0)])&&(_0x2f515e['id']={'$notIn':_0x24778c['body'][_0x3226de(0x1a0)]}),_0x205d13=[[_0x3226de(0x19d),_0x3226de(0x1d4)],[_0x3226de(0x1a3),_0x3369c0[0x0][_0x3226de(0x1d7)]],literal('COALESCE(CmHopper.UserId,\x200)\x20DESC'),['id',_0x3226de(0x1d5)]]),db[_0x3226de(0x1dc)][_0x3226de(0x186)]({'attributes':['id',_0x3226de(0x18f)],'where':_0x2f515e,'order':_0x205d13,'transaction':_0x38ca84,'lock':_0x38ca84[_0x3226de(0x1c9)][_0x3226de(0x17d)],'include':[{'model':db[_0x3226de(0x192)],'as':_0x3226de(0x1d8),'attributes':_0x2502f8,'include':[{'model':db[_0x3226de(0x1da)],'as':'Company','attributes':['id','name']}]},{'model':db[_0x3226de(0x17b)],'as':_0x3226de(0x172),'attributes':['id',_0x3226de(0x17c)]},{'model':db[_0x3226de(0x1bc)],'as':_0x3226de(0x1d1),'attributes':['id',_0x3226de(0x17c),'dialActive']}]})[_0x3226de(0x1a7)](function(_0x191bb6){const _0x157cb5=_0x3226de;if(_0x191bb6)return _0x191bb6[_0x157cb5(0x1d9)]({'UserId':_0x24778c[_0x157cb5(0x188)]['id']},{'transaction':_0x38ca84});});});})[_0x55e618(0x1a7)](handleEntityNotFound(_0x43964f,null))[_0x55e618(0x1a7)](respondWithResult(_0x43964f,null))[_0x55e618(0x1ce)](handleError(_0x43964f,null));},exports[a164_0x56e41c(0x1be)]=function(_0x2ab1e3,_0x9d0743){const _0x150b65=a164_0x56e41c;return _0x2ab1e3[_0x150b65(0x188)][_0x150b65(0x1c0)]({'where':{'type':_0x150b65(0x1e7),'dialActive':!![],'dialMethod':_0x150b65(0x1c4)},'attributes':['id'],'raw':!![]})[_0x150b65(0x1a7)](function(_0x371e5f){const _0x266a63=_0x150b65;if(_0x371e5f&&_0x371e5f['length'])return db[_0x266a63(0x1dc)][_0x266a63(0x1c1)]({'where':{'active':![],'recallme':![],'scheduledAt':{[Op[_0x266a63(0x1bf)]]:moment()[_0x266a63(0x1ca)]('YYYY-MM-DD\x20HH:mm:ss')},'VoiceQueueId':{[Op['in']]:_[_0x266a63(0x1c3)](_0x371e5f,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x2ab1e3[_0x266a63(0x188)]['id']}]}});return 0x0;})['then'](function(_0x337e52){const _0x4c6a0f=_0x150b65;if(!_[_0x4c6a0f(0x1e3)](_0x337e52)&&_[_0x4c6a0f(0x177)](_0x337e52))return _0x9d0743[_0x4c6a0f(0x17f)](0xc8)[_0x4c6a0f(0x19f)]({'contacts':_0x337e52});else logger[_0x4c6a0f(0x16d)](_0x4c6a0f(0x1e5),_0x4c6a0f(0x1be),0x194,_0x4c6a0f(0x18d)),_0x9d0743[_0x4c6a0f(0x1b6)](0x194);})[_0x150b65(0x1ce)](handleError(_0x9d0743,null));}; \ No newline at end of file +const a164_0xf61d=['../../components/parsers/qs','transaction','$overlap','VoiceQueue','campaign','UPDATE','$gt','limit','keys','name','includeAll','Queue','COALESCE(CmHopper.UserId,\x200)\x20ASC','deleted','then','catch','direction','merge','rawAttributes','sendStatus','COALESCE(CmHopper.UserId,\x200)\x20DESC','sequelize','getOpenContacts','../../config/logger','outbound','$like','getVoiceQueues','set','firstName','LOCK','VoiceQueueId','$and','hopperIds','scheduledat','$contains','intersection','../../mysqldb','filter','destroy','nolimit','options','isNil','Company','query','statedesc','$iLike','finally','describe','body','$notLike','$lt','UserId','length','$any','status','$lte','pick','count','json','deletedat','state','scheduledAt','params','$in','map','isEmpty','user','create','model','CmHopper','$notBetween','findOne','CmContact','CmHopperFinal','lodash','$contained','Content-Range','order','$or','attributes','CmCompany','DESC','include','concat','getPreview','fields','omit','$notIn','calleridnum','CampaignId','entity\x20not\x20found','findAll','filters','YYYY-MM-DD\x20HH:mm:ss','ASC','format','dialOrderByScheduledAt','key','$ne','where','show','preview','phone','$gte','fieldName','lastName','priority','like','error','stack','calleridname','sort','offset','update','$notILike','VIRTUAL','type'];(function(_0x11452a,_0x57994b){const _0xf61d9c=function(_0x38bd99){while(--_0x38bd99){_0x11452a['push'](_0x11452a['shift']());}};_0xf61d9c(++_0x57994b);}(a164_0xf61d,0x121));const a164_0x38bd=function(_0x11452a,_0x57994b){_0x11452a=_0x11452a-0x6d;let _0xf61d9c=a164_0xf61d[_0x11452a];return _0xf61d9c;};const a164_0x3d10aa=a164_0x38bd;'use strict';const moment=require('moment'),_=require(a164_0x3d10aa(0x80)),qs=require(a164_0x3d10aa(0xab)),logger=require(a164_0x3d10aa(0xc2))('api'),{db}=require(a164_0x3d10aa(0xcf)),{Op,literal}=require(a164_0x3d10aa(0xc0));function respondWithResult(_0x16ef08,_0x272e57){return _0x272e57=_0x272e57||0xc8,function(_0x3d2ba2){const _0x32aa0d=a164_0x38bd;if(_0x3d2ba2)return _0x16ef08[_0x32aa0d(0xe1)](_0x272e57)['json'](_0x3d2ba2);};}function respondWithFilteredResult(_0x4189dc,_0x378403){return function(_0x177cd2){const _0x4bbef4=a164_0x38bd;if(_0x177cd2){const _0x591ef2=_0x177cd2[_0x4bbef4(0x6f)],_0x2ca91a=_0x378403[_0x4bbef4(0xa6)];let _0x2915a3=_0x378403[_0x4bbef4(0xa6)]+_0x378403[_0x4bbef4(0xb2)],_0x5a51fe;return _0x2915a3>=_0x591ef2?(_0x2915a3=_0x591ef2,_0x5a51fe=0xc8):_0x5a51fe=0xce,_0x4189dc[_0x4bbef4(0xe1)](_0x5a51fe),_0x4189dc[_0x4bbef4(0xc6)](_0x4bbef4(0x82),_0x2ca91a+'-'+_0x2915a3+'/'+_0x591ef2)[_0x4bbef4(0x70)](_0x177cd2);}return null;};}function saveUpdates(_0x4953c9){return function(_0x32bdac){const _0x804af7=a164_0x38bd;if(_0x32bdac)return _0x32bdac['update'](_0x4953c9)[_0x804af7(0xb9)](function(_0xd73c8b){return _0xd73c8b;});return null;};}function handleEntityNotFound(_0x463d07){return function(_0x308020){const _0x1b24d3=a164_0x38bd;return!_0x308020&&_0x463d07[_0x1b24d3(0xbe)](0x194),_0x308020;};}function handleError(_0x19324e,_0x51a063){return _0x51a063=_0x51a063||0x1f4,function(_0x27c9ed){const _0x2ca6a0=a164_0x38bd;logger[_0x2ca6a0(0xa2)](_0x27c9ed[_0x2ca6a0(0xa3)]),_0x27c9ed['name']&&delete _0x27c9ed[_0x2ca6a0(0xb4)],_0x19324e[_0x2ca6a0(0xe1)](_0x51a063)['send'](_0x27c9ed);};}exports['index']=function(_0xf32cb3,_0x418783){const _0x53865c=a164_0x3d10aa;let _0x352265={};const _0x1cd54f={},_0x3e3a9b={'count':0x0,'rows':[]},_0x36bbc5=_[_0x53865c(0x76)](db[_0x53865c(0x7b)][_0x53865c(0xbd)],function(_0x396785){const _0x48abc9=_0x53865c;return{'name':_0x396785[_0x48abc9(0x9e)],'type':_0x396785[_0x48abc9(0xaa)][_0x48abc9(0x97)]};});_0x1cd54f[_0x53865c(0x7a)]=_[_0x53865c(0x76)](_0x36bbc5,_0x53865c(0xb4)),_0x1cd54f[_0x53865c(0xd6)]=_[_0x53865c(0xb3)](_0xf32cb3['query']),_0x1cd54f[_0x53865c(0x92)]=_[_0x53865c(0xce)](_0x1cd54f[_0x53865c(0x7a)],_0x1cd54f[_0x53865c(0xd6)]),_0x1cd54f['filters']=_[_0x53865c(0x89)](_0x1cd54f['filters'],[_0x53865c(0xca),_0x53865c(0x84),_0x53865c(0xb1),_0x53865c(0x9d),_0x53865c(0xdd),_0x53865c(0x6d),_0x53865c(0x98),'$eq','$not','$between',_0x53865c(0x7c),_0x53865c(0x75),_0x53865c(0x8d),_0x53865c(0xc4),_0x53865c(0xdc),_0x53865c(0xd8),_0x53865c(0xa8),_0x53865c(0xc4),_0x53865c(0xad),_0x53865c(0xcd),_0x53865c(0x81),_0x53865c(0xe0)]),_0x352265[_0x53865c(0x85)]=_['intersection'](_0x1cd54f[_0x53865c(0x7a)],qs['fields'](_0xf32cb3[_0x53865c(0xd6)][_0x53865c(0x8b)])),_0x352265[_0x53865c(0x85)]=_0x352265[_0x53865c(0x85)][_0x53865c(0xdf)]?_0x352265['attributes']:_0x1cd54f[_0x53865c(0x7a)];typeof _0xf32cb3[_0x53865c(0xd6)][_0x53865c(0xd2)]==='undefined'&&(_0x352265['limit']=qs[_0x53865c(0xb2)](_0xf32cb3['query'][_0x53865c(0xb2)]),_0x352265[_0x53865c(0xa6)]=qs[_0x53865c(0xa6)](_0xf32cb3[_0x53865c(0xd6)][_0x53865c(0xa6)]));_0x352265[_0x53865c(0x83)]=qs[_0x53865c(0xa5)](_0xf32cb3[_0x53865c(0xd6)]['sort']),_0x352265['where']=qs['filters'](_[_0x53865c(0x6e)](_0xf32cb3[_0x53865c(0xd6)],_0x1cd54f['filters']),_0x36bbc5);_0xf32cb3[_0x53865c(0xd6)][_0x53865c(0xd0)]&&(_0x352265[_0x53865c(0x99)]=_['merge'](_0x352265[_0x53865c(0x99)],{[Op['or']]:_[_0x53865c(0x76)](_0x36bbc5,function(_0x1229c4){const _0x5e456c=_0x53865c;if(_0x1229c4[_0x5e456c(0xaa)]!==_0x5e456c(0xa9)){const _0x4707ce={};return _0x4707ce[_0x1229c4['name']]={[Op[_0x5e456c(0xa1)]]:'%'+_0xf32cb3['query'][_0x5e456c(0xd0)]+'%'},_0x4707ce;}})}));_0x352265=_[_0x53865c(0xbc)]({},_0x352265,_0xf32cb3[_0x53865c(0xd3)]);const _0x2ecb4f={'where':_0x352265[_0x53865c(0x99)]};return db[_0x53865c(0x7b)][_0x53865c(0x6f)](_0x2ecb4f)[_0x53865c(0xb9)](function(_0x4daffa){const _0x5b2884=_0x53865c;return _0x3e3a9b[_0x5b2884(0x6f)]=_0x4daffa,_0xf32cb3[_0x5b2884(0xd6)][_0x5b2884(0xb5)]&&(_0x352265[_0x5b2884(0x88)]=[{'all':!![]}]),db[_0x5b2884(0x7b)][_0x5b2884(0x91)](_0x352265);})[_0x53865c(0xb9)](function(_0x1af989){return _0x3e3a9b['rows']=_0x1af989,_0x3e3a9b;})['then'](respondWithFilteredResult(_0x418783,_0x352265))[_0x53865c(0xba)](handleError(_0x418783,null));},exports[a164_0x3d10aa(0x9a)]=function(_0x4a4c2e,_0x1a3fb8){const _0x11fb07=a164_0x3d10aa;let _0x124e8d={'raw':!![],'where':{'id':_0x4a4c2e[_0x11fb07(0x74)]['id']}};const _0x2a3bda={};return _0x2a3bda[_0x11fb07(0x7a)]=_[_0x11fb07(0xb3)](db[_0x11fb07(0x7b)][_0x11fb07(0xbd)]),_0x2a3bda[_0x11fb07(0xd6)]=_['keys'](_0x4a4c2e[_0x11fb07(0xd6)]),_0x2a3bda[_0x11fb07(0x92)]=_['intersection'](_0x2a3bda[_0x11fb07(0x7a)],_0x2a3bda['query']),_0x124e8d[_0x11fb07(0x85)]=_[_0x11fb07(0xce)](_0x2a3bda[_0x11fb07(0x7a)],qs['fields'](_0x4a4c2e[_0x11fb07(0xd6)][_0x11fb07(0x8b)])),_0x124e8d[_0x11fb07(0x85)]=_0x124e8d['attributes'][_0x11fb07(0xdf)]?_0x124e8d[_0x11fb07(0x85)]:_0x2a3bda[_0x11fb07(0x7a)],_0x4a4c2e['query'][_0x11fb07(0xb5)]&&(_0x124e8d[_0x11fb07(0x88)]=[{'all':!![]}]),_0x124e8d=_[_0x11fb07(0xbc)]({},_0x124e8d,_0x4a4c2e['options']),db[_0x11fb07(0x7b)][_0x11fb07(0x7d)](_0x124e8d)[_0x11fb07(0xb9)](handleEntityNotFound(_0x1a3fb8,null))[_0x11fb07(0xb9)](respondWithResult(_0x1a3fb8,null))[_0x11fb07(0xba)](handleError(_0x1a3fb8,null));},exports[a164_0x3d10aa(0x79)]=function(_0x4314fe,_0x1849e3){const _0x5d783f=a164_0x3d10aa;return db[_0x5d783f(0x7b)][_0x5d783f(0x79)](_0x4314fe[_0x5d783f(0xdb)],{})[_0x5d783f(0xb9)](respondWithResult(_0x1849e3,0xc9))[_0x5d783f(0xba)](handleError(_0x1849e3,null));},exports[a164_0x3d10aa(0xa7)]=function(_0x24bcf6,_0x53363e){const _0x598551=a164_0x3d10aa;return _0x24bcf6[_0x598551(0xdb)]['id']&&delete _0x24bcf6[_0x598551(0xdb)]['id'],db[_0x598551(0x7b)]['findOne']({'where':{'id':_0x24bcf6[_0x598551(0x74)]['id']}})['then'](handleEntityNotFound(_0x53363e,null))[_0x598551(0xb9)](saveUpdates(_0x24bcf6['body'],null))[_0x598551(0xb9)](respondWithResult(_0x53363e,null))[_0x598551(0xba)](handleError(_0x53363e,null));},exports['describe']=function(_0x48b1ef,_0x41a41e){const _0x4d0c41=a164_0x3d10aa;return db[_0x4d0c41(0x7b)][_0x4d0c41(0xda)]()[_0x4d0c41(0xb9)](respondWithResult(_0x41a41e,null))[_0x4d0c41(0xba)](handleError(_0x41a41e,null));},exports[a164_0x3d10aa(0xd1)]=function(_0x17f159,_0x39d875){const _0x756607=a164_0x3d10aa;let _0x1d34be;return db[_0x756607(0x7b)][_0x756607(0x7d)]({'where':{'id':_0x17f159[_0x756607(0x74)]['id']}})[_0x756607(0xb9)](handleEntityNotFound(_0x39d875,null))[_0x756607(0xb9)](function(_0x2752c5){const _0x8fcdd8=_0x756607;if(_0x2752c5)return _0x2752c5[_0x8fcdd8(0xd1)]()[_0x8fcdd8(0xb9)](function(_0x415729){return _0x415729;});})[_0x756607(0xb9)](function(_0x378b1f){const _0x1ec2d2=_0x756607;_0x1d34be=_0x378b1f;if(_0x378b1f){if(_0x378b1f[_0x1ec2d2(0xc9)]||_0x378b1f[_0x1ec2d2(0x8f)])return db[_0x378b1f[_0x1ec2d2(0xc9)]?_0x1ec2d2(0xae):'Campaign'][_0x1ec2d2(0x7d)]({'where':{'id':_0x378b1f[_0x1ec2d2(0xc9)]?_0x378b1f[_0x1ec2d2(0xc9)]:_0x378b1f['CampaignId']},'attributes':['id',_0x1ec2d2(0xb4)],'raw':!![]});}})[_0x756607(0xb9)](function(_0x1b54d8){const _0x518541=_0x756607,_0x17760a={};if(_0x1b54d8)return _[_0x518541(0xbc)](_0x17760a,_[_0x518541(0x8c)](_0x1d34be['dataValues'],['createdAt','updatedAt','id'])),_0x17760a[_0x518541(0x72)]=0x15,_0x17760a[_0x518541(0xd7)]=_0x518541(0xb8),_0x17760a[_0x518541(0xaf)]=_0x1b54d8[_0x518541(0xb4)],_0x17760a['membername']=_0x17f159[_0x518541(0x78)]['name'],_0x17760a[_0x518541(0xde)]=_0x17f159[_0x518541(0x78)]['id'],_0x17760a['deleted']=!![],_0x17760a[_0x518541(0x71)]=moment()[_0x518541(0x95)](_0x518541(0x93)),_0x17760a[_0x518541(0x8e)]=_0x1d34be[_0x518541(0x9c)],_0x17760a['campaigntype']=_0x1d34be[_0x518541(0xc9)]?'queue':'ivr',db['CmContac'][_0x518541(0x7d)]({'where':{'id':_0x17760a['ContactId']},'attributes':[_0x518541(0xc7),_0x518541(0x9f)]})[_0x518541(0xb9)](function(_0x241c54){const _0x5e6317=_0x518541;!_['isNil'](_0x39d875)&&!_[_0x5e6317(0xd4)](_0x241c54[_0x5e6317(0xc7)])&&(_0x17760a['calleridname']=_0x241c54[_0x5e6317(0xc7)],!_[_0x5e6317(0xd4)](_0x241c54[_0x5e6317(0x9f)])&&(_0x17760a[_0x5e6317(0xa4)]+='\x20'+_0x241c54[_0x5e6317(0x9f)]));})[_0x518541(0xd9)](function(){const _0x1eee98=_0x518541;return db[_0x1eee98(0x7f)]['create'](_0x17760a);});})[_0x756607(0xb9)](function(){const _0x1ff210=_0x756607;return _0x39d875[_0x1ff210(0xe1)](0xcc)['end']();})[_0x756607(0xba)](handleError(_0x39d875,null));},exports[a164_0x3d10aa(0x8a)]=function(_0x5c0785,_0x5df99b){const _0x402d80=a164_0x3d10aa;let _0x41cab7=[];return db[_0x402d80(0x7e)][_0x402d80(0xda)]()['then'](function(_0x2d286b){const _0x48a0a9=_0x402d80;return _0x41cab7=_[_0x48a0a9(0xb3)](_0x2d286b),_0x5c0785[_0x48a0a9(0x78)][_0x48a0a9(0xc5)]({'where':{'type':_0x48a0a9(0xc3),'dialActive':!![],'dialMethod':_0x48a0a9(0x9b)},'attributes':['id',_0x48a0a9(0x96)],'raw':!![]});})[_0x402d80(0xb9)](function(_0x440e43){const _0x49718e=_0x402d80;if(_0x440e43&&_0x440e43[_0x49718e(0xdf)])return db['sequelize'][_0x49718e(0xac)](function(_0x11a728){const _0x32eae7=_0x49718e,_0x2e9d30={'active':![],'recallme':![],'scheduledAt':{[Op['lte']]:moment()['format'](_0x32eae7(0x93))},'VoiceQueueId':{[Op['in']]:_[_0x32eae7(0x76)](_0x440e43,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x5c0785[_0x32eae7(0x78)]['id']}]};let _0x1ca211=[];return _0x5c0785[_0x32eae7(0xdb)][_0x32eae7(0xbb)]&&_0x5c0785[_0x32eae7(0xdb)][_0x32eae7(0xbb)]==='prev'?(!_[_0x32eae7(0x77)](_0x5c0785[_0x32eae7(0xdb)][_0x32eae7(0xcb)])&&(_0x2e9d30['id']={'$in':_0x5c0785['body'][_0x32eae7(0xcb)]}),_0x1ca211=[[_0x32eae7(0xa0),_0x32eae7(0x94)],[_0x32eae7(0x73),_0x440e43[0x0][_0x32eae7(0x96)]===_0x32eae7(0x94)?_0x32eae7(0x87):_0x32eae7(0x94)],literal(_0x32eae7(0xb7)),['id','DESC']]):(!_[_0x32eae7(0x77)](_0x5c0785['body'][_0x32eae7(0xcb)])&&(_0x2e9d30['id']={'$notIn':_0x5c0785[_0x32eae7(0xdb)][_0x32eae7(0xcb)]}),_0x1ca211=[[_0x32eae7(0xa0),'DESC'],[_0x32eae7(0x73),_0x440e43[0x0][_0x32eae7(0x96)]],literal(_0x32eae7(0xbf)),['id','ASC']]),db[_0x32eae7(0x7b)][_0x32eae7(0x7d)]({'attributes':['id',_0x32eae7(0xcc)],'where':_0x2e9d30,'order':_0x1ca211,'transaction':_0x11a728,'lock':_0x11a728[_0x32eae7(0xc8)][_0x32eae7(0xb0)],'include':[{'model':db[_0x32eae7(0x7e)],'as':'Contact','attributes':_0x41cab7,'include':[{'model':db[_0x32eae7(0x86)],'as':_0x32eae7(0xd5),'attributes':['id','name']}]},{'model':db['CmList'],'as':'List','attributes':['id',_0x32eae7(0xb4)]},{'model':db[_0x32eae7(0xae)],'as':_0x32eae7(0xb6),'attributes':['id',_0x32eae7(0xb4),'dialActive']}]})['then'](function(_0x23f5df){const _0x2ec548=_0x32eae7;if(_0x23f5df)return _0x23f5df[_0x2ec548(0xa7)]({'UserId':_0x5c0785[_0x2ec548(0x78)]['id']},{'transaction':_0x11a728});});});})[_0x402d80(0xb9)](handleEntityNotFound(_0x5df99b,null))['then'](respondWithResult(_0x5df99b,null))[_0x402d80(0xba)](handleError(_0x5df99b,null));},exports[a164_0x3d10aa(0xc1)]=function(_0x240793,_0x235a9f){const _0x35b2d1=a164_0x3d10aa;return _0x240793[_0x35b2d1(0x78)][_0x35b2d1(0xc5)]({'where':{'type':_0x35b2d1(0xc3),'dialActive':!![],'dialMethod':_0x35b2d1(0x9b)},'attributes':['id'],'raw':!![]})[_0x35b2d1(0xb9)](function(_0x168204){const _0x13cbdb=_0x35b2d1;if(_0x168204&&_0x168204[_0x13cbdb(0xdf)])return db[_0x13cbdb(0x7b)]['count']({'where':{'active':![],'recallme':![],'scheduledAt':{[Op['lte']]:moment()['format'](_0x13cbdb(0x93))},'VoiceQueueId':{[Op['in']]:_[_0x13cbdb(0x76)](_0x168204,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x240793[_0x13cbdb(0x78)]['id']}]}});return 0x0;})[_0x35b2d1(0xb9)](function(_0x1b4cb8){const _0x98bda6=_0x35b2d1;if(!_[_0x98bda6(0xd4)](_0x1b4cb8)&&_['isNumber'](_0x1b4cb8))return _0x235a9f[_0x98bda6(0xe1)](0xc8)[_0x98bda6(0x70)]({'contacts':_0x1b4cb8});else logger['error']('CmHopper,\x20%s,\x20%s,\x20%s',_0x98bda6(0xc1),0x194,_0x98bda6(0x90)),_0x235a9f[_0x98bda6(0xbe)](0x194);})[_0x35b2d1(0xba)](handleError(_0x235a9f,null));}; \ No newline at end of file diff --git a/server/api/cmHopper/cmHopper.model.js b/server/api/cmHopper/cmHopper.model.js index 9aeee63..7f64772 100644 --- a/server/api/cmHopper/cmHopper.model.js +++ b/server/api/cmHopper/cmHopper.model.js @@ -1 +1 @@ -const a165_0x233a=['./cmHopper.attributes','sequelize','CmHopper','init','./cmHopper.options'];(function(_0x3e82e8,_0x47fafd){const _0x233a9d=function(_0x57dca6){while(--_0x57dca6){_0x3e82e8['push'](_0x3e82e8['shift']());}};_0x233a9d(++_0x47fafd);}(a165_0x233a,0xa8));const a165_0x57dc=function(_0x3e82e8,_0x47fafd){_0x3e82e8=_0x3e82e8-0x169;let _0x233a9d=a165_0x233a[_0x3e82e8];return _0x233a9d;};const a165_0x320c4d=a165_0x57dc;'use strict';const {Model}=require(a165_0x320c4d(0x16c)),{attributes}=require(a165_0x320c4d(0x16b)),{options}=require(a165_0x320c4d(0x16a));class CmHopper extends Model{}function init(_0x2bb5e0,_0x2466a6){const _0x31406c=a165_0x320c4d,_0x597530=options(_0x2bb5e0),_0x42798b=typeof _0x2466a6==='function'?_0x2466a6(_0x597530):_0x597530;return CmHopper[_0x31406c(0x169)](attributes,_0x42798b),CmHopper;}module['exports'][a165_0x320c4d(0x16d)]=CmHopper,module['exports'][a165_0x320c4d(0x169)]=init; \ No newline at end of file +const a165_0x1040=['CmHopper','init','./cmHopper.attributes','exports','sequelize','function','./cmHopper.options'];(function(_0x33e043,_0x2327be){const _0x104037=function(_0x3b4f57){while(--_0x3b4f57){_0x33e043['push'](_0x33e043['shift']());}};_0x104037(++_0x2327be);}(a165_0x1040,0xbc));const a165_0x3b4f=function(_0x33e043,_0x2327be){_0x33e043=_0x33e043-0x152;let _0x104037=a165_0x1040[_0x33e043];return _0x104037;};const a165_0x56bfd3=a165_0x3b4f;'use strict';const {Model}=require(a165_0x56bfd3(0x157)),{attributes}=require(a165_0x56bfd3(0x155)),{options}=require(a165_0x56bfd3(0x152));class CmHopper extends Model{}function init(_0x3efbb6,_0x2f91ea){const _0x49bd4a=a165_0x56bfd3,_0x27780a=options(_0x3efbb6),_0x4def16=typeof _0x2f91ea===_0x49bd4a(0x158)?_0x2f91ea(_0x27780a):_0x27780a;return CmHopper[_0x49bd4a(0x154)](attributes,_0x4def16),CmHopper;}module[a165_0x56bfd3(0x156)][a165_0x56bfd3(0x153)]=CmHopper,module[a165_0x56bfd3(0x156)][a165_0x56bfd3(0x154)]=init; \ No newline at end of file diff --git a/server/api/cmHopper/cmHopper.options.js b/server/api/cmHopper/cmHopper.options.js index 28842a7..06c659b 100644 --- a/server/api/cmHopper/cmHopper.options.js +++ b/server/api/cmHopper/cmHopper.options.js @@ -1 +1 @@ -var a166_0x3747=['cm_hopper','scheduledat','phone','exports','options','priority'];(function(_0x439fdc,_0xfa4670){var _0x374754=function(_0x1f996e){while(--_0x1f996e){_0x439fdc['push'](_0x439fdc['shift']());}};_0x374754(++_0xfa4670);}(a166_0x3747,0x86));var a166_0x1f99=function(_0x439fdc,_0xfa4670){_0x439fdc=_0x439fdc-0x1d3;var _0x374754=a166_0x3747[_0x439fdc];return _0x374754;};var a166_0x4e53e6=a166_0x1f99;function options(_0x393f53){var _0x319724=a166_0x1f99;return{'sequelize':_0x393f53,'tableName':_0x319724(0x1d7),'paranoid':![],'indexes':[{'name':_0x319724(0x1d8),'fields':[_0x319724(0x1d8)]},{'name':'phone','fields':[_0x319724(0x1d3)]},{'name':_0x319724(0x1d6),'fields':[_0x319724(0x1d6)]}],'timestamps':!![]};}module[a166_0x4e53e6(0x1d4)][a166_0x4e53e6(0x1d5)]=options; \ No newline at end of file +var a166_0x505f=['scheduledat','exports','phone','cm_hopper','priority'];(function(_0x4258f4,_0x40b617){var _0x505fde=function(_0x3721f8){while(--_0x3721f8){_0x4258f4['push'](_0x4258f4['shift']());}};_0x505fde(++_0x40b617);}(a166_0x505f,0x1a3));var a166_0x3721=function(_0x4258f4,_0x40b617){_0x4258f4=_0x4258f4-0x1cb;var _0x505fde=a166_0x505f[_0x4258f4];return _0x505fde;};var a166_0x567c6a=a166_0x3721;function options(_0x59e0a1){var _0x28a931=a166_0x3721;return{'sequelize':_0x59e0a1,'tableName':_0x28a931(0x1cf),'paranoid':![],'indexes':[{'name':'scheduledat','fields':[_0x28a931(0x1cc)]},{'name':_0x28a931(0x1ce),'fields':[_0x28a931(0x1ce)]},{'name':_0x28a931(0x1cb),'fields':[_0x28a931(0x1cb)]}],'timestamps':!![]};}module[a166_0x567c6a(0x1cd)]['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 d07b086..610b857 100644 --- a/server/api/cmHopper/cmHopper.rpc.js +++ b/server/api/cmHopper/cmHopper.rpc.js @@ -1 +1 @@ -const a167_0x213e=['all','destroy','catch','format','attributes','message','CmHopper','where','Agent','GetContactDialer','length','stringify','CreateCmHopper','moment','CountReScheduled','UserId','raw','MoveContactManagedDialer','util','name','limit','LOCK','map','voicePause','debug','rpc','error','contactsRescheduled','findOne','order','describe','`scheduledat`\x20>=\x20','lodash','push','GetCmHopper','../../mysqldb','options','findAll','create','\x22%s\x22','then','model','CmHopperFinal','info','update','COUNT','ShowCmHopper','transaction','keys','GetContactRecallMe','CmContact','GetCmHopperPreview','include','UpdateCmHopper','Contact','body','sequelize','DestroyCmHopper'];(function(_0xc682ce,_0x257bb9){const _0x213e70=function(_0x42520d){while(--_0x42520d){_0xc682ce['push'](_0xc682ce['shift']());}};_0x213e70(++_0x257bb9);}(a167_0x213e,0x7d));const a167_0x4252=function(_0xc682ce,_0x257bb9){_0xc682ce=_0xc682ce-0xfc;let _0x213e70=a167_0x213e[_0xc682ce];return _0x213e70;};const a167_0x55cb4e=a167_0x4252;'use strict';const _=require(a167_0x55cb4e(0x113)),util=require(a167_0x55cb4e(0x105)),moment=require(a167_0x55cb4e(0x100)),db=require(a167_0x55cb4e(0x116))['db'],logger=require('../../config/logger')(a167_0x55cb4e(0x10c)),{literal,fn}=require(a167_0x55cb4e(0x12b));exports[a167_0x55cb4e(0x115)]=function(_0x5a8521){const _0x2dba65=this;return new Promise(function(_0x322677,_0x1681cb){const _0x3560f6=a167_0x4252;return db[_0x3560f6(0x133)][_0x3560f6(0x118)]({'raw':_0x5a8521[_0x3560f6(0x117)]?_0x5a8521[_0x3560f6(0x117)]['raw']===undefined?!![]:![]:!![],'where':_0x5a8521['options']?_0x5a8521[_0x3560f6(0x117)][_0x3560f6(0x134)]||null:null,'attributes':_0x5a8521[_0x3560f6(0x117)]?_0x5a8521[_0x3560f6(0x117)]['attributes']||null:null,'limit':_0x5a8521[_0x3560f6(0x117)]?_0x5a8521[_0x3560f6(0x117)][_0x3560f6(0x107)]||null:null,'include':_0x5a8521[_0x3560f6(0x117)]?_0x5a8521[_0x3560f6(0x117)][_0x3560f6(0x127)]?_[_0x3560f6(0x109)](_0x5a8521[_0x3560f6(0x117)][_0x3560f6(0x127)],function(_0x973a9c){const _0x431d9a=_0x3560f6;return{'model':db[_0x973a9c['model']],'as':_0x973a9c['as'],'attributes':_0x973a9c['attributes'],'include':_0x973a9c[_0x431d9a(0x127)]?_['map'](_0x973a9c[_0x431d9a(0x127)],function(_0x2fb578){const _0x174124=_0x431d9a;return{'model':db[_0x2fb578[_0x174124(0x11c)]],'as':_0x2fb578['as'],'attributes':_0x2fb578[_0x174124(0x131)],'include':_0x2fb578[_0x174124(0x127)]?_[_0x174124(0x109)](_0x2fb578[_0x174124(0x127)],function(_0x1303b7){const _0xfd186a=_0x174124;return{'model':db[_0x1303b7[_0xfd186a(0x11c)]],'as':_0x1303b7['as'],'attributes':_0x1303b7[_0xfd186a(0x131)]};}):[]};}):[]};}):[]:[]})[_0x3560f6(0x11b)](function(_0x4b82c9){const _0x11f040=_0x3560f6;logger['info'](_0x11f040(0x115),_0x5a8521),logger[_0x11f040(0x10b)](_0x11f040(0x115),_0x5a8521,JSON[_0x11f040(0xfe)](_0x4b82c9)),_0x322677(_0x4b82c9);})[_0x3560f6(0x12f)](function(_0x1ca7f8){const _0x272a11=_0x3560f6;logger['error'](_0x272a11(0x115),_0x1ca7f8[_0x272a11(0x132)],_0x5a8521),_0x1681cb(_0x2dba65[_0x272a11(0x10d)](0x1f4,_0x1ca7f8[_0x272a11(0x132)]));});});},exports['ShowCmHopper']=function(_0x2597a2){const _0xa3d862=this;return new Promise(function(_0x2938b5,_0x5df1b5){const _0x55dc0f=a167_0x4252;return db[_0x55dc0f(0x133)][_0x55dc0f(0x10f)]({'raw':_0x2597a2['options']?_0x2597a2[_0x55dc0f(0x117)][_0x55dc0f(0x103)]===undefined?!![]:![]:!![],'where':_0x2597a2[_0x55dc0f(0x117)]?_0x2597a2[_0x55dc0f(0x117)][_0x55dc0f(0x134)]||null:null,'attributes':_0x2597a2[_0x55dc0f(0x117)]?_0x2597a2[_0x55dc0f(0x117)][_0x55dc0f(0x131)]||null:null,'include':_0x2597a2[_0x55dc0f(0x117)]?_0x2597a2['options'][_0x55dc0f(0x127)]?_['map'](_0x2597a2['options'][_0x55dc0f(0x127)],function(_0x2a2f51){const _0xea46cc=_0x55dc0f;return{'model':db[_0x2a2f51[_0xea46cc(0x11c)]],'as':_0x2a2f51['as'],'attributes':_0x2a2f51[_0xea46cc(0x131)],'include':_0x2a2f51[_0xea46cc(0x127)]?_['map'](_0x2a2f51[_0xea46cc(0x127)],function(_0x227467){const _0x346172=_0xea46cc;return{'model':db[_0x227467[_0x346172(0x11c)]],'as':_0x227467['as'],'attributes':_0x227467['attributes'],'include':_0x227467[_0x346172(0x127)]?_[_0x346172(0x109)](_0x227467[_0x346172(0x127)],function(_0x1a2fcf){const _0xb6eb37=_0x346172;return{'model':db[_0x1a2fcf[_0xb6eb37(0x11c)]],'as':_0x1a2fcf['as'],'attributes':_0x1a2fcf[_0xb6eb37(0x131)]};}):[]};}):[]};}):[]:[]})[_0x55dc0f(0x11b)](function(_0x4dada9){const _0x1c2ac8=_0x55dc0f;logger[_0x1c2ac8(0x11e)](_0x1c2ac8(0x121),_0x2597a2),logger[_0x1c2ac8(0x10b)](_0x1c2ac8(0x121),_0x2597a2,JSON['stringify'](_0x4dada9)),_0x2938b5(_0x4dada9);})[_0x55dc0f(0x12f)](function(_0x4a7bb3){const _0xcf0ba5=_0x55dc0f;logger[_0xcf0ba5(0x10d)]('ShowCmHopper',_0x4a7bb3[_0xcf0ba5(0x132)],_0x2597a2),_0x5df1b5(_0xa3d862[_0xcf0ba5(0x10d)](0x1f4,_0x4a7bb3[_0xcf0ba5(0x132)]));});});},exports[a167_0x55cb4e(0xff)]=function(_0x5c5e3d){const _0x4213c4=this;return new Promise(function(_0x5e65c3,_0x58e23c){const _0x3ea577=a167_0x4252;return db[_0x3ea577(0x133)]['create'](_0x5c5e3d['body'],{'raw':_0x5c5e3d[_0x3ea577(0x117)]?_0x5c5e3d['options'][_0x3ea577(0x103)]===undefined?!![]:![]:!![]})['then'](function(_0xff2eee){const _0x4dc837=_0x3ea577;logger['info'](_0x4dc837(0xff),_0x5c5e3d),logger[_0x4dc837(0x10b)](_0x4dc837(0xff),_0x5c5e3d,JSON[_0x4dc837(0xfe)](_0xff2eee)),_0x5e65c3(_0xff2eee);})[_0x3ea577(0x12f)](function(_0xec78df){const _0xa0862a=_0x3ea577;logger[_0xa0862a(0x10d)]('CreateCmHopper',_0xec78df['message'],_0x5c5e3d),_0x58e23c(_0x4213c4[_0xa0862a(0x10d)](0x1f4,_0xec78df[_0xa0862a(0x132)]));});});},exports[a167_0x55cb4e(0x128)]=function(_0x198faf){const _0xfc7972=this;return new Promise(function(_0x3c7628,_0x360899){const _0x51fe74=a167_0x4252;return db[_0x51fe74(0x133)][_0x51fe74(0x11f)](_0x198faf['body'],{'raw':_0x198faf['options']?_0x198faf['options'][_0x51fe74(0x103)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x198faf['options']?_0x198faf['options'][_0x51fe74(0x134)]||null:null,'attributes':_0x198faf['options']?_0x198faf['options'][_0x51fe74(0x131)]||null:null,'limit':_0x198faf[_0x51fe74(0x117)]?_0x198faf[_0x51fe74(0x117)]['limit']||null:null})['then'](function(_0x4dfc91){const _0x590888=_0x51fe74;logger[_0x590888(0x11e)](_0x590888(0x128),_0x198faf),logger[_0x590888(0x10b)](_0x590888(0x128),_0x198faf,JSON['stringify'](_0x4dfc91)),_0x3c7628(_0x4dfc91);})[_0x51fe74(0x12f)](function(_0x1784a0){const _0x1dc9d3=_0x51fe74;logger[_0x1dc9d3(0x10d)](_0x1dc9d3(0x128),_0x1784a0[_0x1dc9d3(0x132)],_0x198faf),_0x360899(_0xfc7972[_0x1dc9d3(0x10d)](0x1f4,_0x1784a0[_0x1dc9d3(0x132)]));});});},exports[a167_0x55cb4e(0x12c)]=function(_0x46628e){const _0x2ca760=this;return new Promise(function(_0x13dedf,_0x507728){const _0x58c471=a167_0x4252;return db[_0x58c471(0x133)][_0x58c471(0x12e)]({'where':_0x46628e[_0x58c471(0x117)]?_0x46628e[_0x58c471(0x117)][_0x58c471(0x134)]||null:null})['then'](function(_0x1c973a){const _0x5218fd=_0x58c471;logger[_0x5218fd(0x11e)](_0x5218fd(0x12c),_0x46628e),logger['debug'](_0x5218fd(0x12c),_0x46628e,JSON['stringify'](_0x1c973a)),_0x13dedf(_0x1c973a);})[_0x58c471(0x12f)](function(_0x22d9c6){const _0x40ae4c=_0x58c471;logger['error']('DestroyCmHopper',_0x22d9c6[_0x40ae4c(0x132)],_0x46628e),_0x507728(_0x2ca760[_0x40ae4c(0x10d)](0x1f4,_0x22d9c6[_0x40ae4c(0x132)]));});});},exports[a167_0x55cb4e(0xfc)]=function(_0x3978ad){const _0x2f1bd8=this;return new Promise(function(_0x136bca,_0xd96271){const _0x4a91d9=a167_0x4252;return db[_0x4a91d9(0x125)][_0x4a91d9(0x111)]()['then'](function(_0x58111c){const _0x3d3a13=_0x4a91d9;return db[_0x3d3a13(0x12b)][_0x3d3a13(0x122)](function(_0x229c35){const _0x3ba316=_0x3d3a13;return db[_0x3ba316(0x133)][_0x3ba316(0x118)]({'where':_0x3978ad[_0x3ba316(0x117)]?_0x3978ad[_0x3ba316(0x117)][_0x3ba316(0x134)]||null:null,'attributes':_0x3978ad[_0x3ba316(0x117)]?_0x3978ad[_0x3ba316(0x117)][_0x3ba316(0x131)]||null:null,'limit':_0x3978ad['options']?_0x3978ad[_0x3ba316(0x117)]['limit']||null:null,'order':_0x3978ad[_0x3ba316(0x117)]?_0x3978ad[_0x3ba316(0x117)][_0x3ba316(0x110)]||null:null,'transaction':_0x229c35,'lock':_0x229c35[_0x3ba316(0x108)]['UPDATE'],'include':[{'model':db[_0x3ba316(0x125)],'as':_0x3ba316(0x129),'attributes':_[_0x3ba316(0x123)](_0x58111c)},{'model':db['User'],'as':_0x3ba316(0x135),'attributes':['id',_0x3ba316(0x106),_0x3ba316(0x10a)]}]})['then'](function(_0x65cfaa){const _0x395584=_0x3ba316,_0x360649=[],_0x11d8c4=[];for(let _0x5938b1=0x0;_0x5938b1<_0x65cfaa[_0x395584(0xfd)];_0x5938b1+=0x1){!_0x11d8c4['includes'](_0x65cfaa[_0x5938b1][_0x395584(0x102)])&&(_0x11d8c4[_0x395584(0x114)](_0x65cfaa[_0x5938b1][_0x395584(0x102)]),_0x360649[_0x395584(0x114)](_0x65cfaa[_0x5938b1][_0x395584(0x11f)](_0x3978ad['body'],{'transaction':_0x229c35})));}return Promise[_0x395584(0x12d)](_0x360649);});})['then'](function(_0x4154e6){const _0x1cde8b=_0x3d3a13;logger['info'](_0x1cde8b(0xfc),_0x3978ad),logger[_0x1cde8b(0x10b)](_0x1cde8b(0xfc),_0x3978ad,JSON[_0x1cde8b(0xfe)](_0x4154e6)),_0x136bca(_0x4154e6);})['catch'](function(_0x348810){const _0x56c77a=_0x3d3a13;logger['error'](_0x56c77a(0xfc),_0x348810[_0x56c77a(0x132)],_0x3978ad),_0xd96271(_0x2f1bd8[_0x56c77a(0x10d)](0x1f4,_0x348810['message']));});});});},exports['MoveContactManagedDialer']=function(_0x55798c){const _0x1ec373=this;return new Promise(function(_0x1c288f,_0x1879c9){const _0x51bfa5=a167_0x4252;return db[_0x51bfa5(0x12b)][_0x51bfa5(0x122)](function(_0x474280){const _0x779ec6=_0x51bfa5;return db[_0x779ec6(0x11d)][_0x779ec6(0x119)](_0x55798c[_0x779ec6(0x12a)],{'raw':_0x55798c[_0x779ec6(0x117)]?_0x55798c[_0x779ec6(0x117)][_0x779ec6(0x103)]===undefined?!![]:![]:!![],'transaction':_0x474280})[_0x779ec6(0x11b)](function(){const _0x3cb0d2=_0x779ec6;return db[_0x3cb0d2(0x133)][_0x3cb0d2(0x12e)]({'where':_0x55798c[_0x3cb0d2(0x117)]?_0x55798c[_0x3cb0d2(0x117)][_0x3cb0d2(0x134)]||null:null,'transaction':_0x474280});});})[_0x51bfa5(0x11b)](function(_0x1f6d5f){const _0x4f26b8=_0x51bfa5;logger[_0x4f26b8(0x11e)]('MoveContactManagedDialer',_0x55798c),logger['debug'](_0x4f26b8(0x104),_0x55798c,JSON[_0x4f26b8(0xfe)](_0x1f6d5f)),_0x1c288f(_0x1f6d5f);})[_0x51bfa5(0x12f)](function(_0x13ef65){const _0xe6712a=_0x51bfa5;logger[_0xe6712a(0x10d)]('MoveContactManagedDialer',_0x13ef65[_0xe6712a(0x132)],_0x55798c),_0x1879c9(_0x1ec373[_0xe6712a(0x10d)](0x1f4,_0x13ef65[_0xe6712a(0x132)]));});});},exports['CountReScheduled']=function(_0x52ccbe){const _0x43cd98=this;return new Promise(function(_0x11bcb1,_0x36db67){const _0x448a46=a167_0x4252;return db[_0x448a46(0x133)][_0x448a46(0x118)]({'raw':_0x52ccbe[_0x448a46(0x117)]?_0x52ccbe[_0x448a46(0x117)][_0x448a46(0x103)]===undefined?!![]:![]:!![],'where':_0x52ccbe[_0x448a46(0x117)]?_0x52ccbe[_0x448a46(0x117)][_0x448a46(0x134)]||null:null,'attributes':[[fn(_0x448a46(0x120),fn('IF',literal(_0x448a46(0x112)+util[_0x448a46(0x130)](_0x448a46(0x11a),moment()[_0x448a46(0x130)]('YYYY-MM-DD\x20HH:mm:ss'))+'\x20,\x201,\x20null'))),_0x448a46(0x10e)]]})[_0x448a46(0x11b)](function(_0x2a8c04){const _0x566f43=_0x448a46;logger[_0x566f43(0x11e)](_0x566f43(0x101),_0x52ccbe),logger[_0x566f43(0x10b)](_0x566f43(0x101),_0x52ccbe,JSON['stringify'](_0x2a8c04)),_0x11bcb1(_0x2a8c04);})[_0x448a46(0x12f)](function(_0x37ac78){const _0xbcda5c=_0x448a46;logger[_0xbcda5c(0x10d)](_0xbcda5c(0x101),_0x37ac78[_0xbcda5c(0x132)],_0x52ccbe),_0x36db67(_0x43cd98[_0xbcda5c(0x10d)](0x1f4,_0x37ac78[_0xbcda5c(0x132)]));});});},exports['GetContactRecallMe']=function(_0xe93a13){const _0x3c4a71=this;return new Promise(function(_0x38fbfa,_0x2e6402){const _0x289d1c=a167_0x4252;return db[_0x289d1c(0x125)][_0x289d1c(0x111)]()['then'](function(){const _0xba94d=_0x289d1c;return db[_0xba94d(0x12b)][_0xba94d(0x122)](function(_0xb11373){const _0x5e4da6=_0xba94d;return db[_0x5e4da6(0x133)][_0x5e4da6(0x118)]({'where':_0xe93a13['options']?_0xe93a13['options'][_0x5e4da6(0x134)]||null:null,'attributes':_0xe93a13[_0x5e4da6(0x117)]?_0xe93a13[_0x5e4da6(0x117)][_0x5e4da6(0x131)]||null:null,'limit':0x1,'order':_0xe93a13[_0x5e4da6(0x117)]?_0xe93a13[_0x5e4da6(0x117)][_0x5e4da6(0x110)]||null:null,'group':db[_0x5e4da6(0x133)]['UserId'],'transaction':_0xb11373,'lock':_0xb11373['LOCK']['UPDATE'],'include':_0xe93a13[_0x5e4da6(0x117)]?_0xe93a13[_0x5e4da6(0x117)]['include']?_[_0x5e4da6(0x109)](_0xe93a13[_0x5e4da6(0x117)]['include'],function(_0xe8ee48){const _0x553120=_0x5e4da6;return{'model':db[_0xe8ee48[_0x553120(0x11c)]],'as':_0xe8ee48['as'],'attributes':_0xe8ee48['attributes'],'include':_0xe8ee48[_0x553120(0x127)]?_[_0x553120(0x109)](_0xe8ee48[_0x553120(0x127)],function(_0x214d1f){const _0xc387bb=_0x553120;return{'model':db[_0x214d1f[_0xc387bb(0x11c)]],'as':_0x214d1f['as'],'attributes':_0x214d1f[_0xc387bb(0x131)],'include':_0x214d1f['include']?_['map'](_0x214d1f[_0xc387bb(0x127)],function(_0x424374){const _0x5e0b01=_0xc387bb;return{'model':db[_0x424374[_0x5e0b01(0x11c)]],'as':_0x424374['as'],'attributes':_0x424374[_0x5e0b01(0x131)]};}):[]};}):[]};}):[]:[]})[_0x5e4da6(0x11b)](function(_0x39caea){const _0x16d033=_0x5e4da6,_0x2b35f3=[];for(let _0x39dbac=0x0;_0x39dbac<_0x39caea['length'];_0x39dbac+=0x1){_0x2b35f3[_0x16d033(0x114)](_0x39caea[_0x39dbac][_0x16d033(0x11f)](_0xe93a13['body'],{'transaction':_0xb11373}));}return Promise[_0x16d033(0x12d)](_0x2b35f3);});})[_0xba94d(0x11b)](function(_0x5b67f4){const _0x59ba05=_0xba94d;logger['info']('GetContactRecallMe',_0xe93a13),logger[_0x59ba05(0x10b)](_0x59ba05(0x124),_0xe93a13,JSON['stringify'](_0x5b67f4)),_0x38fbfa(_0x5b67f4);})['catch'](function(_0x8561cf){const _0x4b6f6c=_0xba94d;logger[_0x4b6f6c(0x10d)](_0x4b6f6c(0x124),_0x8561cf[_0x4b6f6c(0x132)],_0xe93a13),_0x2e6402(_0x3c4a71[_0x4b6f6c(0x10d)](0x1f4,_0x8561cf[_0x4b6f6c(0x132)]));});});});},exports[a167_0x55cb4e(0x126)]=function(_0x576220){const _0x2a6826=this;return new Promise(function(_0x1a92f3,_0x470543){const _0x245791=a167_0x4252;db[_0x245791(0x125)][_0x245791(0x111)]()[_0x245791(0x11b)](function(_0x81a6f9){const _0x2e257a=_0x245791;return db[_0x2e257a(0x133)][_0x2e257a(0x118)]({'raw':_0x576220['options']?_0x576220[_0x2e257a(0x117)][_0x2e257a(0x103)]===undefined?!![]:![]:!![],'where':_0x576220[_0x2e257a(0x117)]?_0x576220[_0x2e257a(0x117)]['where']||null:null,'attributes':_0x576220[_0x2e257a(0x117)]?_0x576220[_0x2e257a(0x117)][_0x2e257a(0x131)]||null:null,'limit':_0x576220[_0x2e257a(0x117)]?_0x576220['options'][_0x2e257a(0x107)]||null:null,'include':_0x576220[_0x2e257a(0x117)]?_0x576220[_0x2e257a(0x117)][_0x2e257a(0x127)]?_[_0x2e257a(0x109)](_0x576220[_0x2e257a(0x117)][_0x2e257a(0x127)],function(_0x3c4c13){const _0x34f552=_0x2e257a;return{'model':db[_0x3c4c13[_0x34f552(0x11c)]],'as':_0x3c4c13['as'],'attributes':_0x3c4c13['as']===_0x34f552(0x129)?_['keys'](_0x81a6f9):_0x3c4c13[_0x34f552(0x131)],'include':_0x3c4c13[_0x34f552(0x127)]?_[_0x34f552(0x109)](_0x3c4c13[_0x34f552(0x127)],function(_0x291fa8){const _0x4d9482=_0x34f552;return{'model':db[_0x291fa8[_0x4d9482(0x11c)]],'as':_0x291fa8['as'],'attributes':_0x291fa8[_0x4d9482(0x131)],'include':_0x291fa8[_0x4d9482(0x127)]?_[_0x4d9482(0x109)](_0x291fa8[_0x4d9482(0x127)],function(_0x4ddef8){const _0x36572b=_0x4d9482;return{'model':db[_0x4ddef8[_0x36572b(0x11c)]],'as':_0x4ddef8['as'],'attributes':_0x4ddef8[_0x36572b(0x131)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x59ad7c){const _0x4c1f09=_0x2e257a;logger[_0x4c1f09(0x11e)](_0x4c1f09(0x115),_0x576220),logger[_0x4c1f09(0x10b)](_0x4c1f09(0x115),_0x576220,JSON[_0x4c1f09(0xfe)](_0x59ad7c)),_0x1a92f3(_0x59ad7c);})['catch'](function(_0x1b4064){const _0x5ee41c=_0x2e257a;logger[_0x5ee41c(0x10d)](_0x5ee41c(0x115),_0x1b4064['message'],_0x576220),_0x470543(_0x2a6826[_0x5ee41c(0x10d)](0x1f4,_0x1b4064[_0x5ee41c(0x132)]));});});});}; \ No newline at end of file +const a167_0x5479=['UPDATE','UpdateCmHopper','push','ShowCmHopper','rpc','UserId','info','findAll','map','body','CountReScheduled','raw','CmHopperFinal','keys','YYYY-MM-DD\x20HH:mm:ss','stringify','options','format','then','GetCmHopperPreview','CmContact','`scheduledat`\x20>=\x20','MoveContactManagedDialer','transaction','GetContactDialer','error','GetCmHopper','sequelize','create','limit','GetContactRecallMe','\x20,\x201,\x20null','User','model','findOne','CmHopper','destroy','order','update','length','message','describe','debug','all','LOCK','includes','include','moment','\x22%s\x22','where','catch','Contact','CreateCmHopper','COUNT','attributes','DestroyCmHopper'];(function(_0x1f523c,_0x1d1de6){const _0x547915=function(_0x448292){while(--_0x448292){_0x1f523c['push'](_0x1f523c['shift']());}};_0x547915(++_0x1d1de6);}(a167_0x5479,0x19a));const a167_0x4482=function(_0x1f523c,_0x1d1de6){_0x1f523c=_0x1f523c-0x18c;let _0x547915=a167_0x5479[_0x1f523c];return _0x547915;};const a167_0x3b6541=a167_0x4482;'use strict';const _=require('lodash'),util=require('util'),moment=require(a167_0x3b6541(0x1a9)),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(a167_0x3b6541(0x1b6)),{literal,fn}=require(a167_0x3b6541(0x195));exports[a167_0x3b6541(0x194)]=function(_0x4fd244){const _0x16da54=this;return new Promise(function(_0x331555,_0x3bdcba){const _0x3ba6a9=a167_0x4482;return db[_0x3ba6a9(0x19d)][_0x3ba6a9(0x1b9)]({'raw':_0x4fd244[_0x3ba6a9(0x1c2)]?_0x4fd244[_0x3ba6a9(0x1c2)]['raw']===undefined?!![]:![]:!![],'where':_0x4fd244[_0x3ba6a9(0x1c2)]?_0x4fd244[_0x3ba6a9(0x1c2)]['where']||null:null,'attributes':_0x4fd244['options']?_0x4fd244['options']['attributes']||null:null,'limit':_0x4fd244['options']?_0x4fd244[_0x3ba6a9(0x1c2)]['limit']||null:null,'include':_0x4fd244[_0x3ba6a9(0x1c2)]?_0x4fd244[_0x3ba6a9(0x1c2)]['include']?_[_0x3ba6a9(0x1ba)](_0x4fd244[_0x3ba6a9(0x1c2)][_0x3ba6a9(0x1a8)],function(_0x59111e){const _0x4e8c71=_0x3ba6a9;return{'model':db[_0x59111e[_0x4e8c71(0x19b)]],'as':_0x59111e['as'],'attributes':_0x59111e['attributes'],'include':_0x59111e[_0x4e8c71(0x1a8)]?_[_0x4e8c71(0x1ba)](_0x59111e[_0x4e8c71(0x1a8)],function(_0x30da19){const _0x4092eb=_0x4e8c71;return{'model':db[_0x30da19[_0x4092eb(0x19b)]],'as':_0x30da19['as'],'attributes':_0x30da19[_0x4092eb(0x1b0)],'include':_0x30da19[_0x4092eb(0x1a8)]?_[_0x4092eb(0x1ba)](_0x30da19[_0x4092eb(0x1a8)],function(_0x2f29c8){return{'model':db[_0x2f29c8['model']],'as':_0x2f29c8['as'],'attributes':_0x2f29c8['attributes']};}):[]};}):[]};}):[]:[]})[_0x3ba6a9(0x18c)](function(_0x2fbb51){const _0x2aaebe=_0x3ba6a9;logger[_0x2aaebe(0x1b8)](_0x2aaebe(0x194),_0x4fd244),logger[_0x2aaebe(0x1a4)](_0x2aaebe(0x194),_0x4fd244,JSON['stringify'](_0x2fbb51)),_0x331555(_0x2fbb51);})[_0x3ba6a9(0x1ac)](function(_0x2743b0){const _0x53a0fe=_0x3ba6a9;logger[_0x53a0fe(0x193)]('GetCmHopper',_0x2743b0[_0x53a0fe(0x1a2)],_0x4fd244),_0x3bdcba(_0x16da54[_0x53a0fe(0x193)](0x1f4,_0x2743b0[_0x53a0fe(0x1a2)]));});});},exports[a167_0x3b6541(0x1b5)]=function(_0xbb423a){const _0x5f0e0a=this;return new Promise(function(_0x285aa8,_0xb5aa90){const _0x10ca99=a167_0x4482;return db[_0x10ca99(0x19d)][_0x10ca99(0x19c)]({'raw':_0xbb423a[_0x10ca99(0x1c2)]?_0xbb423a[_0x10ca99(0x1c2)][_0x10ca99(0x1bd)]===undefined?!![]:![]:!![],'where':_0xbb423a['options']?_0xbb423a[_0x10ca99(0x1c2)][_0x10ca99(0x1ab)]||null:null,'attributes':_0xbb423a[_0x10ca99(0x1c2)]?_0xbb423a[_0x10ca99(0x1c2)][_0x10ca99(0x1b0)]||null:null,'include':_0xbb423a[_0x10ca99(0x1c2)]?_0xbb423a[_0x10ca99(0x1c2)][_0x10ca99(0x1a8)]?_[_0x10ca99(0x1ba)](_0xbb423a[_0x10ca99(0x1c2)][_0x10ca99(0x1a8)],function(_0x5858ad){const _0x4d8153=_0x10ca99;return{'model':db[_0x5858ad[_0x4d8153(0x19b)]],'as':_0x5858ad['as'],'attributes':_0x5858ad[_0x4d8153(0x1b0)],'include':_0x5858ad['include']?_['map'](_0x5858ad['include'],function(_0x1257d4){const _0x56ce23=_0x4d8153;return{'model':db[_0x1257d4[_0x56ce23(0x19b)]],'as':_0x1257d4['as'],'attributes':_0x1257d4[_0x56ce23(0x1b0)],'include':_0x1257d4['include']?_['map'](_0x1257d4[_0x56ce23(0x1a8)],function(_0xfaea8f){return{'model':db[_0xfaea8f['model']],'as':_0xfaea8f['as'],'attributes':_0xfaea8f['attributes']};}):[]};}):[]};}):[]:[]})[_0x10ca99(0x18c)](function(_0xd8b758){const _0x48ee57=_0x10ca99;logger['info']('ShowCmHopper',_0xbb423a),logger['debug'](_0x48ee57(0x1b5),_0xbb423a,JSON[_0x48ee57(0x1c1)](_0xd8b758)),_0x285aa8(_0xd8b758);})[_0x10ca99(0x1ac)](function(_0x31046){const _0x526b21=_0x10ca99;logger[_0x526b21(0x193)](_0x526b21(0x1b5),_0x31046[_0x526b21(0x1a2)],_0xbb423a),_0xb5aa90(_0x5f0e0a[_0x526b21(0x193)](0x1f4,_0x31046['message']));});});},exports[a167_0x3b6541(0x1ae)]=function(_0x355bf7){const _0xfa81fb=this;return new Promise(function(_0x214b0f,_0x5ee7e4){const _0x108da5=a167_0x4482;return db['CmHopper'][_0x108da5(0x196)](_0x355bf7[_0x108da5(0x1bb)],{'raw':_0x355bf7[_0x108da5(0x1c2)]?_0x355bf7[_0x108da5(0x1c2)][_0x108da5(0x1bd)]===undefined?!![]:![]:!![]})['then'](function(_0x9b9a6d){const _0x5191ef=_0x108da5;logger[_0x5191ef(0x1b8)](_0x5191ef(0x1ae),_0x355bf7),logger[_0x5191ef(0x1a4)]('CreateCmHopper',_0x355bf7,JSON[_0x5191ef(0x1c1)](_0x9b9a6d)),_0x214b0f(_0x9b9a6d);})[_0x108da5(0x1ac)](function(_0x91704d){const _0x2718d1=_0x108da5;logger['error']('CreateCmHopper',_0x91704d[_0x2718d1(0x1a2)],_0x355bf7),_0x5ee7e4(_0xfa81fb[_0x2718d1(0x193)](0x1f4,_0x91704d[_0x2718d1(0x1a2)]));});});},exports['UpdateCmHopper']=function(_0x25fb24){const _0x3199cb=this;return new Promise(function(_0x3bdb83,_0x557920){const _0x3e6385=a167_0x4482;return db[_0x3e6385(0x19d)][_0x3e6385(0x1a0)](_0x25fb24[_0x3e6385(0x1bb)],{'raw':_0x25fb24[_0x3e6385(0x1c2)]?_0x25fb24['options'][_0x3e6385(0x1bd)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x25fb24[_0x3e6385(0x1c2)]?_0x25fb24[_0x3e6385(0x1c2)][_0x3e6385(0x1ab)]||null:null,'attributes':_0x25fb24[_0x3e6385(0x1c2)]?_0x25fb24[_0x3e6385(0x1c2)][_0x3e6385(0x1b0)]||null:null,'limit':_0x25fb24[_0x3e6385(0x1c2)]?_0x25fb24['options']['limit']||null:null})[_0x3e6385(0x18c)](function(_0x59ac9c){const _0x19e2db=_0x3e6385;logger['info']('UpdateCmHopper',_0x25fb24),logger[_0x19e2db(0x1a4)](_0x19e2db(0x1b3),_0x25fb24,JSON[_0x19e2db(0x1c1)](_0x59ac9c)),_0x3bdb83(_0x59ac9c);})[_0x3e6385(0x1ac)](function(_0x20d010){const _0x24fdec=_0x3e6385;logger['error']('UpdateCmHopper',_0x20d010[_0x24fdec(0x1a2)],_0x25fb24),_0x557920(_0x3199cb[_0x24fdec(0x193)](0x1f4,_0x20d010[_0x24fdec(0x1a2)]));});});},exports[a167_0x3b6541(0x1b1)]=function(_0x1e0700){const _0x38d41b=this;return new Promise(function(_0x50d0ba,_0x1f5cb4){const _0x586c2f=a167_0x4482;return db['CmHopper'][_0x586c2f(0x19e)]({'where':_0x1e0700[_0x586c2f(0x1c2)]?_0x1e0700[_0x586c2f(0x1c2)][_0x586c2f(0x1ab)]||null:null})['then'](function(_0x3efeb3){const _0x302d9a=_0x586c2f;logger[_0x302d9a(0x1b8)](_0x302d9a(0x1b1),_0x1e0700),logger[_0x302d9a(0x1a4)](_0x302d9a(0x1b1),_0x1e0700,JSON[_0x302d9a(0x1c1)](_0x3efeb3)),_0x50d0ba(_0x3efeb3);})['catch'](function(_0x430850){const _0x5813ae=_0x586c2f;logger[_0x5813ae(0x193)](_0x5813ae(0x1b1),_0x430850[_0x5813ae(0x1a2)],_0x1e0700),_0x1f5cb4(_0x38d41b['error'](0x1f4,_0x430850[_0x5813ae(0x1a2)]));});});},exports['GetContactDialer']=function(_0x2f6c36){const _0x23d249=this;return new Promise(function(_0x376c12,_0x2a9f4d){const _0x5b3d19=a167_0x4482;return db[_0x5b3d19(0x18e)][_0x5b3d19(0x1a3)]()[_0x5b3d19(0x18c)](function(_0x16e9ba){const _0x16ccfb=_0x5b3d19;return db[_0x16ccfb(0x195)][_0x16ccfb(0x191)](function(_0x13dc44){const _0x5d32b3=_0x16ccfb;return db[_0x5d32b3(0x19d)][_0x5d32b3(0x1b9)]({'where':_0x2f6c36[_0x5d32b3(0x1c2)]?_0x2f6c36['options'][_0x5d32b3(0x1ab)]||null:null,'attributes':_0x2f6c36[_0x5d32b3(0x1c2)]?_0x2f6c36[_0x5d32b3(0x1c2)]['attributes']||null:null,'limit':_0x2f6c36[_0x5d32b3(0x1c2)]?_0x2f6c36['options']['limit']||null:null,'order':_0x2f6c36[_0x5d32b3(0x1c2)]?_0x2f6c36[_0x5d32b3(0x1c2)][_0x5d32b3(0x19f)]||null:null,'transaction':_0x13dc44,'lock':_0x13dc44[_0x5d32b3(0x1a6)][_0x5d32b3(0x1b2)],'include':[{'model':db[_0x5d32b3(0x18e)],'as':_0x5d32b3(0x1ad),'attributes':_[_0x5d32b3(0x1bf)](_0x16e9ba)},{'model':db[_0x5d32b3(0x19a)],'as':'Agent','attributes':['id','name','voicePause']}]})['then'](function(_0x5b379d){const _0x4f3667=_0x5d32b3,_0x51c4bf=[],_0x5eced0=[];for(let _0x1ef705=0x0;_0x1ef705<_0x5b379d[_0x4f3667(0x1a1)];_0x1ef705+=0x1){!_0x5eced0[_0x4f3667(0x1a7)](_0x5b379d[_0x1ef705][_0x4f3667(0x1b7)])&&(_0x5eced0[_0x4f3667(0x1b4)](_0x5b379d[_0x1ef705]['UserId']),_0x51c4bf[_0x4f3667(0x1b4)](_0x5b379d[_0x1ef705][_0x4f3667(0x1a0)](_0x2f6c36[_0x4f3667(0x1bb)],{'transaction':_0x13dc44})));}return Promise['all'](_0x51c4bf);});})[_0x16ccfb(0x18c)](function(_0x17223f){const _0x899590=_0x16ccfb;logger[_0x899590(0x1b8)]('GetContactDialer',_0x2f6c36),logger[_0x899590(0x1a4)](_0x899590(0x192),_0x2f6c36,JSON[_0x899590(0x1c1)](_0x17223f)),_0x376c12(_0x17223f);})[_0x16ccfb(0x1ac)](function(_0x23863d){const _0x4cda7b=_0x16ccfb;logger[_0x4cda7b(0x193)](_0x4cda7b(0x192),_0x23863d['message'],_0x2f6c36),_0x2a9f4d(_0x23d249['error'](0x1f4,_0x23863d[_0x4cda7b(0x1a2)]));});});});},exports['MoveContactManagedDialer']=function(_0x3e570c){const _0x3cb1a1=this;return new Promise(function(_0x4649df,_0x4aec82){const _0x12aabc=a167_0x4482;return db[_0x12aabc(0x195)][_0x12aabc(0x191)](function(_0x49c599){const _0xad33af=_0x12aabc;return db[_0xad33af(0x1be)][_0xad33af(0x196)](_0x3e570c['body'],{'raw':_0x3e570c[_0xad33af(0x1c2)]?_0x3e570c[_0xad33af(0x1c2)][_0xad33af(0x1bd)]===undefined?!![]:![]:!![],'transaction':_0x49c599})[_0xad33af(0x18c)](function(){const _0x3d6a87=_0xad33af;return db['CmHopper'][_0x3d6a87(0x19e)]({'where':_0x3e570c[_0x3d6a87(0x1c2)]?_0x3e570c['options']['where']||null:null,'transaction':_0x49c599});});})[_0x12aabc(0x18c)](function(_0x56c0bc){const _0x3d870e=_0x12aabc;logger[_0x3d870e(0x1b8)](_0x3d870e(0x190),_0x3e570c),logger[_0x3d870e(0x1a4)]('MoveContactManagedDialer',_0x3e570c,JSON[_0x3d870e(0x1c1)](_0x56c0bc)),_0x4649df(_0x56c0bc);})[_0x12aabc(0x1ac)](function(_0x4e6fbf){const _0x7a14cb=_0x12aabc;logger['error'](_0x7a14cb(0x190),_0x4e6fbf[_0x7a14cb(0x1a2)],_0x3e570c),_0x4aec82(_0x3cb1a1['error'](0x1f4,_0x4e6fbf[_0x7a14cb(0x1a2)]));});});},exports[a167_0x3b6541(0x1bc)]=function(_0x20b318){const _0x2e2acf=this;return new Promise(function(_0x5ec3c9,_0x51577c){const _0x1ef06f=a167_0x4482;return db[_0x1ef06f(0x19d)][_0x1ef06f(0x1b9)]({'raw':_0x20b318['options']?_0x20b318[_0x1ef06f(0x1c2)]['raw']===undefined?!![]:![]:!![],'where':_0x20b318[_0x1ef06f(0x1c2)]?_0x20b318[_0x1ef06f(0x1c2)][_0x1ef06f(0x1ab)]||null:null,'attributes':[[fn(_0x1ef06f(0x1af),fn('IF',literal(_0x1ef06f(0x18f)+util[_0x1ef06f(0x1c3)](_0x1ef06f(0x1aa),moment()[_0x1ef06f(0x1c3)](_0x1ef06f(0x1c0)))+_0x1ef06f(0x199)))),'contactsRescheduled']]})[_0x1ef06f(0x18c)](function(_0x15e16e){const _0x32fd94=_0x1ef06f;logger[_0x32fd94(0x1b8)](_0x32fd94(0x1bc),_0x20b318),logger[_0x32fd94(0x1a4)](_0x32fd94(0x1bc),_0x20b318,JSON[_0x32fd94(0x1c1)](_0x15e16e)),_0x5ec3c9(_0x15e16e);})[_0x1ef06f(0x1ac)](function(_0x563aea){const _0x29793d=_0x1ef06f;logger['error'](_0x29793d(0x1bc),_0x563aea[_0x29793d(0x1a2)],_0x20b318),_0x51577c(_0x2e2acf['error'](0x1f4,_0x563aea[_0x29793d(0x1a2)]));});});},exports[a167_0x3b6541(0x198)]=function(_0xafd619){const _0x1b39c7=this;return new Promise(function(_0x221cba,_0x59308e){const _0x27e0ed=a167_0x4482;return db[_0x27e0ed(0x18e)]['describe']()[_0x27e0ed(0x18c)](function(){const _0x2bc901=_0x27e0ed;return db['sequelize'][_0x2bc901(0x191)](function(_0x506ed2){const _0x3e909d=_0x2bc901;return db[_0x3e909d(0x19d)][_0x3e909d(0x1b9)]({'where':_0xafd619[_0x3e909d(0x1c2)]?_0xafd619[_0x3e909d(0x1c2)][_0x3e909d(0x1ab)]||null:null,'attributes':_0xafd619['options']?_0xafd619[_0x3e909d(0x1c2)]['attributes']||null:null,'limit':0x1,'order':_0xafd619[_0x3e909d(0x1c2)]?_0xafd619[_0x3e909d(0x1c2)][_0x3e909d(0x19f)]||null:null,'group':db['CmHopper'][_0x3e909d(0x1b7)],'transaction':_0x506ed2,'lock':_0x506ed2['LOCK'][_0x3e909d(0x1b2)],'include':_0xafd619[_0x3e909d(0x1c2)]?_0xafd619[_0x3e909d(0x1c2)][_0x3e909d(0x1a8)]?_[_0x3e909d(0x1ba)](_0xafd619[_0x3e909d(0x1c2)][_0x3e909d(0x1a8)],function(_0x570aeb){const _0x1b762e=_0x3e909d;return{'model':db[_0x570aeb['model']],'as':_0x570aeb['as'],'attributes':_0x570aeb[_0x1b762e(0x1b0)],'include':_0x570aeb[_0x1b762e(0x1a8)]?_[_0x1b762e(0x1ba)](_0x570aeb[_0x1b762e(0x1a8)],function(_0x40465e){const _0x58f534=_0x1b762e;return{'model':db[_0x40465e[_0x58f534(0x19b)]],'as':_0x40465e['as'],'attributes':_0x40465e[_0x58f534(0x1b0)],'include':_0x40465e[_0x58f534(0x1a8)]?_[_0x58f534(0x1ba)](_0x40465e[_0x58f534(0x1a8)],function(_0x3a6737){const _0x737a08=_0x58f534;return{'model':db[_0x3a6737[_0x737a08(0x19b)]],'as':_0x3a6737['as'],'attributes':_0x3a6737['attributes']};}):[]};}):[]};}):[]:[]})[_0x3e909d(0x18c)](function(_0x58c425){const _0x4b8bdd=_0x3e909d,_0x174308=[];for(let _0x4f8481=0x0;_0x4f8481<_0x58c425[_0x4b8bdd(0x1a1)];_0x4f8481+=0x1){_0x174308[_0x4b8bdd(0x1b4)](_0x58c425[_0x4f8481][_0x4b8bdd(0x1a0)](_0xafd619[_0x4b8bdd(0x1bb)],{'transaction':_0x506ed2}));}return Promise[_0x4b8bdd(0x1a5)](_0x174308);});})['then'](function(_0x3ce421){const _0x498828=_0x2bc901;logger['info'](_0x498828(0x198),_0xafd619),logger['debug'](_0x498828(0x198),_0xafd619,JSON['stringify'](_0x3ce421)),_0x221cba(_0x3ce421);})[_0x2bc901(0x1ac)](function(_0x13ef22){const _0x4cc34c=_0x2bc901;logger['error']('GetContactRecallMe',_0x13ef22['message'],_0xafd619),_0x59308e(_0x1b39c7[_0x4cc34c(0x193)](0x1f4,_0x13ef22[_0x4cc34c(0x1a2)]));});});});},exports[a167_0x3b6541(0x18d)]=function(_0xf71ada){const _0x5bdbc0=this;return new Promise(function(_0x5f1608,_0x5d42d4){const _0x49c006=a167_0x4482;db['CmContact'][_0x49c006(0x1a3)]()[_0x49c006(0x18c)](function(_0x4c5674){const _0x3a2ec7=_0x49c006;return db[_0x3a2ec7(0x19d)][_0x3a2ec7(0x1b9)]({'raw':_0xf71ada[_0x3a2ec7(0x1c2)]?_0xf71ada[_0x3a2ec7(0x1c2)][_0x3a2ec7(0x1bd)]===undefined?!![]:![]:!![],'where':_0xf71ada[_0x3a2ec7(0x1c2)]?_0xf71ada[_0x3a2ec7(0x1c2)][_0x3a2ec7(0x1ab)]||null:null,'attributes':_0xf71ada['options']?_0xf71ada['options']['attributes']||null:null,'limit':_0xf71ada[_0x3a2ec7(0x1c2)]?_0xf71ada['options'][_0x3a2ec7(0x197)]||null:null,'include':_0xf71ada[_0x3a2ec7(0x1c2)]?_0xf71ada['options'][_0x3a2ec7(0x1a8)]?_[_0x3a2ec7(0x1ba)](_0xf71ada[_0x3a2ec7(0x1c2)]['include'],function(_0x39e38d){const _0x57217d=_0x3a2ec7;return{'model':db[_0x39e38d['model']],'as':_0x39e38d['as'],'attributes':_0x39e38d['as']==='Contact'?_['keys'](_0x4c5674):_0x39e38d[_0x57217d(0x1b0)],'include':_0x39e38d[_0x57217d(0x1a8)]?_[_0x57217d(0x1ba)](_0x39e38d[_0x57217d(0x1a8)],function(_0xf12727){const _0x61684e=_0x57217d;return{'model':db[_0xf12727[_0x61684e(0x19b)]],'as':_0xf12727['as'],'attributes':_0xf12727[_0x61684e(0x1b0)],'include':_0xf12727[_0x61684e(0x1a8)]?_[_0x61684e(0x1ba)](_0xf12727[_0x61684e(0x1a8)],function(_0x14770f){const _0x2e9118=_0x61684e;return{'model':db[_0x14770f[_0x2e9118(0x19b)]],'as':_0x14770f['as'],'attributes':_0x14770f[_0x2e9118(0x1b0)]};}):[]};}):[]};}):[]:[]})[_0x3a2ec7(0x18c)](function(_0x57995e){const _0x374691=_0x3a2ec7;logger[_0x374691(0x1b8)](_0x374691(0x194),_0xf71ada),logger[_0x374691(0x1a4)](_0x374691(0x194),_0xf71ada,JSON[_0x374691(0x1c1)](_0x57995e)),_0x5f1608(_0x57995e);})[_0x3a2ec7(0x1ac)](function(_0x3e4bc6){const _0xa71110=_0x3a2ec7;logger[_0xa71110(0x193)](_0xa71110(0x194),_0x3e4bc6[_0xa71110(0x1a2)],_0xf71ada),_0x5d42d4(_0x5bdbc0[_0xa71110(0x193)](0x1f4,_0x3e4bc6[_0xa71110(0x1a2)]));});});});}; \ No newline at end of file diff --git a/server/api/cmHopper/index.js b/server/api/cmHopper/index.js index 57951ba..443f604 100644 --- a/server/api/cmHopper/index.js +++ b/server/api/cmHopper/index.js @@ -1 +1 @@ -const a168_0x49ba=['../../components/auth/service','getOpenContacts','get','/preview','Router','show','delete','/opencontacts','destroy','/describe','post','isAuthenticated','index','express','update','put','create'];(function(_0x57ad11,_0x2afd9f){const _0x49ba6e=function(_0x8e5930){while(--_0x8e5930){_0x57ad11['push'](_0x57ad11['shift']());}};_0x49ba6e(++_0x2afd9f);}(a168_0x49ba,0x173));const a168_0x8e59=function(_0x57ad11,_0x2afd9f){_0x57ad11=_0x57ad11-0x1e4;let _0x49ba6e=a168_0x49ba[_0x57ad11];return _0x49ba6e;};const a168_0x4a684f=a168_0x8e59;'use strict';const express=require(a168_0x4a684f(0x1f4)),router=express[a168_0x4a684f(0x1eb)](),auth=require(a168_0x4a684f(0x1e7)),controller=require('./cmHopper.controller');router['get']('/',auth[a168_0x4a684f(0x1f2)](),controller[a168_0x4a684f(0x1f3)]),router[a168_0x4a684f(0x1e9)](a168_0x4a684f(0x1f0),auth['isAuthenticated'](),controller['describe']),router[a168_0x4a684f(0x1e9)](a168_0x4a684f(0x1ee),auth[a168_0x4a684f(0x1f2)](),controller[a168_0x4a684f(0x1e8)]),router[a168_0x4a684f(0x1e9)]('/:id',auth[a168_0x4a684f(0x1f2)](),controller[a168_0x4a684f(0x1ec)]),router[a168_0x4a684f(0x1f1)]('/',auth[a168_0x4a684f(0x1f2)](),controller[a168_0x4a684f(0x1e6)]),router['post'](a168_0x4a684f(0x1ea),auth[a168_0x4a684f(0x1f2)](),controller['getPreview']),router[a168_0x4a684f(0x1e5)]('/:id',auth[a168_0x4a684f(0x1f2)](),controller[a168_0x4a684f(0x1e4)]),router[a168_0x4a684f(0x1ed)]('/:id',auth[a168_0x4a684f(0x1f2)](),controller[a168_0x4a684f(0x1ef)]),module['exports']=router; \ No newline at end of file +const a168_0x4d08=['/opencontacts','put','/:id','isAuthenticated','getOpenContacts','./cmHopper.controller','exports','../../components/auth/service','express','create','get','index','destroy','show','post','update','/preview'];(function(_0x4b3580,_0x200f17){const _0x4d08ad=function(_0x5a1602){while(--_0x5a1602){_0x4b3580['push'](_0x4b3580['shift']());}};_0x4d08ad(++_0x200f17);}(a168_0x4d08,0x141));const a168_0x5a16=function(_0x4b3580,_0x200f17){_0x4b3580=_0x4b3580-0x16c;let _0x4d08ad=a168_0x4d08[_0x4b3580];return _0x4d08ad;};const a168_0x1b0fb4=a168_0x5a16;'use strict';const express=require(a168_0x1b0fb4(0x176)),router=express['Router'](),auth=require(a168_0x1b0fb4(0x175)),controller=require(a168_0x1b0fb4(0x173));router['get']('/',auth['isAuthenticated'](),controller[a168_0x1b0fb4(0x179)]),router['get']('/describe',auth[a168_0x1b0fb4(0x171)](),controller['describe']),router[a168_0x1b0fb4(0x178)](a168_0x1b0fb4(0x16e),auth['isAuthenticated'](),controller[a168_0x1b0fb4(0x172)]),router[a168_0x1b0fb4(0x178)](a168_0x1b0fb4(0x170),auth[a168_0x1b0fb4(0x171)](),controller[a168_0x1b0fb4(0x17b)]),router['post']('/',auth[a168_0x1b0fb4(0x171)](),controller[a168_0x1b0fb4(0x177)]),router[a168_0x1b0fb4(0x17c)](a168_0x1b0fb4(0x16d),auth[a168_0x1b0fb4(0x171)](),controller['getPreview']),router[a168_0x1b0fb4(0x16f)](a168_0x1b0fb4(0x170),auth[a168_0x1b0fb4(0x171)](),controller[a168_0x1b0fb4(0x16c)]),router['delete'](a168_0x1b0fb4(0x170),auth['isAuthenticated'](),controller[a168_0x1b0fb4(0x17a)]),module[a168_0x1b0fb4(0x174)]=router; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.attributes.js b/server/api/cmHopperBlack/cmHopperBlack.attributes.js index 664ceb0..16c402b 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.attributes.js +++ b/server/api/cmHopperBlack/cmHopperBlack.attributes.js @@ -1 +1 @@ -const a169_0x567c=['attributes','contactListQueue','exports','sequelize','INTEGER'];(function(_0x35f50d,_0x1db965){const _0x567ce5=function(_0x4efdf5){while(--_0x4efdf5){_0x35f50d['push'](_0x35f50d['shift']());}};_0x567ce5(++_0x1db965);}(a169_0x567c,0xf9));const a169_0x4efd=function(_0x35f50d,_0x1db965){_0x35f50d=_0x35f50d-0xb1;let _0x567ce5=a169_0x567c[_0x35f50d];return _0x567ce5;};const a169_0x3a4201=a169_0x4efd;'use strict';const {DataTypes}=require(a169_0x3a4201(0xb5)),attributes={'phone':{'type':DataTypes['STRING'],'allowNull':![]},'ContactId':{'type':DataTypes[a169_0x3a4201(0xb1)],'unique':'contactListQueue'},'ListId':{'type':DataTypes[a169_0x3a4201(0xb1)],'unique':a169_0x3a4201(0xb3)},'VoiceQueueId':{'type':DataTypes['INTEGER'],'unique':a169_0x3a4201(0xb3)}};module[a169_0x3a4201(0xb4)][a169_0x3a4201(0xb2)]=attributes; \ No newline at end of file +const a169_0x4d60=['INTEGER','sequelize','exports','contactListQueue'];(function(_0x44a4d7,_0x2f7c70){const _0x4d6079=function(_0x2a71c3){while(--_0x2a71c3){_0x44a4d7['push'](_0x44a4d7['shift']());}};_0x4d6079(++_0x2f7c70);}(a169_0x4d60,0x161));const a169_0x2a71=function(_0x44a4d7,_0x2f7c70){_0x44a4d7=_0x44a4d7-0x1a5;let _0x4d6079=a169_0x4d60[_0x44a4d7];return _0x4d6079;};const a169_0x1c4a5a=a169_0x2a71;'use strict';const {DataTypes}=require(a169_0x1c4a5a(0x1a5)),attributes={'phone':{'type':DataTypes['STRING'],'allowNull':![]},'ContactId':{'type':DataTypes[a169_0x1c4a5a(0x1a8)],'unique':a169_0x1c4a5a(0x1a7)},'ListId':{'type':DataTypes['INTEGER'],'unique':a169_0x1c4a5a(0x1a7)},'VoiceQueueId':{'type':DataTypes[a169_0x1c4a5a(0x1a8)],'unique':a169_0x1c4a5a(0x1a7)}};module[a169_0x1c4a5a(0x1a6)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.controller.js b/server/api/cmHopperBlack/cmHopperBlack.controller.js index 4d8e938..b3254df 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.controller.js +++ b/server/api/cmHopperBlack/cmHopperBlack.controller.js @@ -1 +1 @@ -const a170_0x4095=['attributes','count','CmHopperBlack','lodash','catch','pick','describe','undefined','body','index','map','rawAttributes','query','filters','fields','model','merge','sendStatus','like','includeAll','show','key','include','stack','type','where','filter','sequelize','destroy','length','json','../../config/logger','limit','options','../../mysqldb','intersection','../../components/parsers/qs','then','offset','Content-Range','error','update','set','status','keys','name','send','findAll','nolimit','findOne','fieldName','order'];(function(_0x330022,_0x1d9eec){const _0x4095d3=function(_0x29dc81){while(--_0x29dc81){_0x330022['push'](_0x330022['shift']());}};_0x4095d3(++_0x1d9eec);}(a170_0x4095,0xb2));const a170_0x29dc=function(_0x330022,_0x1d9eec){_0x330022=_0x330022-0x19f;let _0x4095d3=a170_0x4095[_0x330022];return _0x4095d3;};const a170_0x3b0c6f=a170_0x29dc;'use strict';const _=require(a170_0x3b0c6f(0x1c0)),qs=require(a170_0x3b0c6f(0x1ad)),logger=require(a170_0x3b0c6f(0x1a8))('api'),{db}=require(a170_0x3b0c6f(0x1ab)),{Op}=require(a170_0x3b0c6f(0x1a4));function respondWithResult(_0x8c65a5,_0x383d4a){return _0x383d4a=_0x383d4a||0xc8,function(_0x3605f1){const _0x313636=a170_0x29dc;if(_0x3605f1)return _0x8c65a5[_0x313636(0x1b4)](_0x383d4a)[_0x313636(0x1a7)](_0x3605f1);};}function respondWithFilteredResult(_0x27b241,_0x30f343){return function(_0x131fce){const _0xd0aabf=a170_0x29dc;if(_0x131fce){const _0x329456=_0x131fce[_0xd0aabf(0x1be)],_0x470971=_0x30f343[_0xd0aabf(0x1af)];let _0x278372=_0x30f343['offset']+_0x30f343[_0xd0aabf(0x1a9)],_0xfb74c8;return _0x278372>=_0x329456?(_0x278372=_0x329456,_0xfb74c8=0xc8):_0xfb74c8=0xce,_0x27b241[_0xd0aabf(0x1b4)](_0xfb74c8),_0x27b241[_0xd0aabf(0x1b3)](_0xd0aabf(0x1b0),_0x470971+'-'+_0x278372+'/'+_0x329456)[_0xd0aabf(0x1a7)](_0x131fce);}return null;};}function saveUpdates(_0x2a4f48){return function(_0x5700e2){const _0x43f898=a170_0x29dc;if(_0x5700e2)return _0x5700e2['update'](_0x2a4f48)[_0x43f898(0x1ae)](function(_0x385d34){return _0x385d34;});return null;};}function removeEntity(_0x31eb89){return function(_0x3a0cec){const _0x4f82f0=a170_0x29dc;if(_0x3a0cec)return _0x3a0cec[_0x4f82f0(0x1a5)]()[_0x4f82f0(0x1ae)](function(){const _0x5b15c5=_0x4f82f0;_0x31eb89[_0x5b15c5(0x1b4)](0xcc)['end']();});};}function handleEntityNotFound(_0x18d0ae){return function(_0x51de42){const _0x21fbed=a170_0x29dc;return!_0x51de42&&_0x18d0ae[_0x21fbed(0x1ce)](0x194),_0x51de42;};}function handleError(_0x160d48,_0x4866e7){return _0x4866e7=_0x4866e7||0x1f4,function(_0x2e3af5){const _0x9894d7=a170_0x29dc;logger[_0x9894d7(0x1b1)](_0x2e3af5[_0x9894d7(0x1a0)]),_0x2e3af5[_0x9894d7(0x1b6)]&&delete _0x2e3af5[_0x9894d7(0x1b6)],_0x160d48['status'](_0x4866e7)[_0x9894d7(0x1b7)](_0x2e3af5);};}exports[a170_0x3b0c6f(0x1c6)]=function(_0x324323,_0x3d8e62){const _0x477e38=a170_0x3b0c6f;let _0x1ecd49={};const _0x3db236={},_0x990191={'count':0x0,'rows':[]},_0x2e3d8f=_['map'](db['CmHopperBlack'][_0x477e38(0x1c8)],function(_0x3416be){const _0x351ef6=_0x477e38;return{'name':_0x3416be[_0x351ef6(0x1bb)],'type':_0x3416be['type'][_0x351ef6(0x1d2)]};});_0x3db236['model']=_[_0x477e38(0x1c7)](_0x2e3d8f,_0x477e38(0x1b6)),_0x3db236[_0x477e38(0x1c9)]=_[_0x477e38(0x1b5)](_0x324323[_0x477e38(0x1c9)]),_0x3db236[_0x477e38(0x1ca)]=_['intersection'](_0x3db236[_0x477e38(0x1cc)],_0x3db236[_0x477e38(0x1c9)]),_0x1ecd49['attributes']=_['intersection'](_0x3db236[_0x477e38(0x1cc)],qs['fields'](_0x324323[_0x477e38(0x1c9)][_0x477e38(0x1cb)])),_0x1ecd49[_0x477e38(0x1bd)]=_0x1ecd49[_0x477e38(0x1bd)][_0x477e38(0x1a6)]?_0x1ecd49[_0x477e38(0x1bd)]:_0x3db236[_0x477e38(0x1cc)];typeof _0x324323['query'][_0x477e38(0x1b9)]===_0x477e38(0x1c4)&&(_0x1ecd49[_0x477e38(0x1a9)]=qs[_0x477e38(0x1a9)](_0x324323[_0x477e38(0x1c9)][_0x477e38(0x1a9)]),_0x1ecd49['offset']=qs[_0x477e38(0x1af)](_0x324323['query'][_0x477e38(0x1af)]));_0x1ecd49[_0x477e38(0x1bc)]=qs['sort'](_0x324323[_0x477e38(0x1c9)]['sort']),_0x1ecd49[_0x477e38(0x1a2)]=qs['filters'](_[_0x477e38(0x1c2)](_0x324323[_0x477e38(0x1c9)],_0x3db236['filters']),_0x2e3d8f);_0x324323[_0x477e38(0x1c9)]['filter']&&(_0x1ecd49[_0x477e38(0x1a2)]=_[_0x477e38(0x1cd)](_0x1ecd49[_0x477e38(0x1a2)],{[Op['or']]:_['map'](_0x2e3d8f,function(_0x370dac){const _0x43183e=_0x477e38;if(_0x370dac[_0x43183e(0x1a1)]!=='VIRTUAL'){const _0x423be5={};return _0x423be5[_0x370dac[_0x43183e(0x1b6)]]={[Op[_0x43183e(0x1cf)]]:'%'+_0x324323[_0x43183e(0x1c9)][_0x43183e(0x1a3)]+'%'},_0x423be5;}})}));_0x1ecd49=_[_0x477e38(0x1cd)]({},_0x1ecd49,_0x324323[_0x477e38(0x1aa)]);const _0xf7693f={'where':_0x1ecd49[_0x477e38(0x1a2)]};return db[_0x477e38(0x1bf)][_0x477e38(0x1be)](_0xf7693f)['then'](function(_0x4e302d){const _0x3f3a44=_0x477e38;return _0x990191['count']=_0x4e302d,_0x324323[_0x3f3a44(0x1c9)][_0x3f3a44(0x1d0)]&&(_0x1ecd49[_0x3f3a44(0x19f)]=[{'all':!![]}]),db[_0x3f3a44(0x1bf)][_0x3f3a44(0x1b8)](_0x1ecd49);})[_0x477e38(0x1ae)](function(_0x37d233){return _0x990191['rows']=_0x37d233,_0x990191;})[_0x477e38(0x1ae)](respondWithFilteredResult(_0x3d8e62,_0x1ecd49))[_0x477e38(0x1c1)](handleError(_0x3d8e62,null));},exports[a170_0x3b0c6f(0x1d1)]=function(_0x1e0981,_0x19a39b){const _0x4bc040=a170_0x3b0c6f;let _0x41a361={'raw':!![],'where':{'id':_0x1e0981['params']['id']}};const _0x37a0ba={};return _0x37a0ba[_0x4bc040(0x1cc)]=_[_0x4bc040(0x1b5)](db[_0x4bc040(0x1bf)][_0x4bc040(0x1c8)]),_0x37a0ba[_0x4bc040(0x1c9)]=_['keys'](_0x1e0981['query']),_0x37a0ba[_0x4bc040(0x1ca)]=_[_0x4bc040(0x1ac)](_0x37a0ba[_0x4bc040(0x1cc)],_0x37a0ba['query']),_0x41a361['attributes']=_['intersection'](_0x37a0ba['model'],qs['fields'](_0x1e0981['query']['fields'])),_0x41a361['attributes']=_0x41a361[_0x4bc040(0x1bd)][_0x4bc040(0x1a6)]?_0x41a361['attributes']:_0x37a0ba['model'],_0x1e0981[_0x4bc040(0x1c9)][_0x4bc040(0x1d0)]&&(_0x41a361[_0x4bc040(0x19f)]=[{'all':!![]}]),_0x41a361=_['merge']({},_0x41a361,_0x1e0981[_0x4bc040(0x1aa)]),db[_0x4bc040(0x1bf)][_0x4bc040(0x1ba)](_0x41a361)[_0x4bc040(0x1ae)](handleEntityNotFound(_0x19a39b,null))[_0x4bc040(0x1ae)](respondWithResult(_0x19a39b,null))[_0x4bc040(0x1c1)](handleError(_0x19a39b,null));},exports[a170_0x3b0c6f(0x1b2)]=function(_0x20bc01,_0x133ad6){const _0x47eeba=a170_0x3b0c6f;return _0x20bc01[_0x47eeba(0x1c5)]['id']&&delete _0x20bc01['body']['id'],db['CmHopperBlack']['findOne']({'where':{'id':_0x20bc01['params']['id']}})[_0x47eeba(0x1ae)](handleEntityNotFound(_0x133ad6,null))[_0x47eeba(0x1ae)](saveUpdates(_0x20bc01[_0x47eeba(0x1c5)],null))[_0x47eeba(0x1ae)](respondWithResult(_0x133ad6,null))[_0x47eeba(0x1c1)](handleError(_0x133ad6,null));},exports[a170_0x3b0c6f(0x1a5)]=function(_0x118806,_0x249697){const _0x563013=a170_0x3b0c6f;return db[_0x563013(0x1bf)][_0x563013(0x1ba)]({'where':{'id':_0x118806['params']['id']}})[_0x563013(0x1ae)](handleEntityNotFound(_0x249697,null))['then'](removeEntity(_0x249697,null))[_0x563013(0x1c1)](handleError(_0x249697,null));},exports[a170_0x3b0c6f(0x1c3)]=function(_0x569116,_0x388080){const _0x29762d=a170_0x3b0c6f;return db[_0x29762d(0x1bf)][_0x29762d(0x1c3)]()[_0x29762d(0x1ae)](respondWithResult(_0x388080,null))[_0x29762d(0x1c1)](handleError(_0x388080,null));}; \ No newline at end of file +const a170_0x50e7=['error','pick','include','filter','rows','sort','offset','../../components/parsers/qs','lodash','../../config/logger','json','name','merge','describe','like','VIRTUAL','nolimit','update','send','fields','then','findOne','show','end','catch','count','destroy','stack','model','index','key','undefined','map','order','length','query','attributes','limit','intersection','rawAttributes','options','where','body','sequelize','keys','filters','includeAll','type','status','sendStatus','params','CmHopperBlack','set'];(function(_0x24a98f,_0x3f8473){const _0x50e709=function(_0x43e9e1){while(--_0x43e9e1){_0x24a98f['push'](_0x24a98f['shift']());}};_0x50e709(++_0x3f8473);}(a170_0x50e7,0x71));const a170_0x43e9=function(_0x24a98f,_0x3f8473){_0x24a98f=_0x24a98f-0x81;let _0x50e709=a170_0x50e7[_0x24a98f];return _0x50e709;};const a170_0x544dd4=a170_0x43e9;'use strict';const _=require(a170_0x544dd4(0x82)),qs=require(a170_0x544dd4(0x81)),logger=require(a170_0x544dd4(0x83))('api'),{db}=require('../../mysqldb'),{Op}=require(a170_0x544dd4(0xa5));function respondWithResult(_0x17a34e,_0x551d8d){return _0x551d8d=_0x551d8d||0xc8,function(_0x43105c){const _0x393cd8=a170_0x43e9;if(_0x43105c)return _0x17a34e['status'](_0x551d8d)[_0x393cd8(0x84)](_0x43105c);};}function respondWithFilteredResult(_0x1d4647,_0x2a8d36){return function(_0x17d95c){const _0x59a57a=a170_0x43e9;if(_0x17d95c){const _0x4c71db=_0x17d95c[_0x59a57a(0x93)],_0x8ad357=_0x2a8d36['offset'];let _0x36abe6=_0x2a8d36[_0x59a57a(0xb5)]+_0x2a8d36[_0x59a57a(0x9f)],_0x1551e4;return _0x36abe6>=_0x4c71db?(_0x36abe6=_0x4c71db,_0x1551e4=0xc8):_0x1551e4=0xce,_0x1d4647['status'](_0x1551e4),_0x1d4647[_0x59a57a(0xae)]('Content-Range',_0x8ad357+'-'+_0x36abe6+'/'+_0x4c71db)[_0x59a57a(0x84)](_0x17d95c);}return null;};}function saveUpdates(_0xee1786){return function(_0x5211bf){if(_0x5211bf)return _0x5211bf['update'](_0xee1786)['then'](function(_0x23cd83){return _0x23cd83;});return null;};}function removeEntity(_0x2fa829){return function(_0x398f17){const _0x3f0bfb=a170_0x43e9;if(_0x398f17)return _0x398f17[_0x3f0bfb(0x94)]()[_0x3f0bfb(0x8e)](function(){const _0x9d14bd=_0x3f0bfb;_0x2fa829['status'](0xcc)[_0x9d14bd(0x91)]();});};}function handleEntityNotFound(_0x230d64){return function(_0x2169d7){const _0x935bae=a170_0x43e9;return!_0x2169d7&&_0x230d64[_0x935bae(0xab)](0x194),_0x2169d7;};}function handleError(_0x4717a0,_0x2c3000){return _0x2c3000=_0x2c3000||0x1f4,function(_0x361b9c){const _0x6ab8a8=a170_0x43e9;logger[_0x6ab8a8(0xaf)](_0x361b9c[_0x6ab8a8(0x95)]),_0x361b9c['name']&&delete _0x361b9c['name'],_0x4717a0[_0x6ab8a8(0xaa)](_0x2c3000)[_0x6ab8a8(0x8c)](_0x361b9c);};}exports[a170_0x544dd4(0x97)]=function(_0x336d5d,_0x12807b){const _0x3b0c98=a170_0x544dd4;let _0x2c256b={};const _0x2638db={},_0x20290f={'count':0x0,'rows':[]},_0x309f3a=_['map'](db['CmHopperBlack'][_0x3b0c98(0xa1)],function(_0x928399){const _0x4cf715=_0x3b0c98;return{'name':_0x928399['fieldName'],'type':_0x928399['type'][_0x4cf715(0x98)]};});_0x2638db[_0x3b0c98(0x96)]=_[_0x3b0c98(0x9a)](_0x309f3a,_0x3b0c98(0x85)),_0x2638db['query']=_[_0x3b0c98(0xa6)](_0x336d5d['query']),_0x2638db[_0x3b0c98(0xa7)]=_['intersection'](_0x2638db[_0x3b0c98(0x96)],_0x2638db[_0x3b0c98(0x9d)]),_0x2c256b[_0x3b0c98(0x9e)]=_[_0x3b0c98(0xa0)](_0x2638db[_0x3b0c98(0x96)],qs['fields'](_0x336d5d[_0x3b0c98(0x9d)]['fields'])),_0x2c256b[_0x3b0c98(0x9e)]=_0x2c256b[_0x3b0c98(0x9e)][_0x3b0c98(0x9c)]?_0x2c256b[_0x3b0c98(0x9e)]:_0x2638db['model'];typeof _0x336d5d[_0x3b0c98(0x9d)][_0x3b0c98(0x8a)]===_0x3b0c98(0x99)&&(_0x2c256b[_0x3b0c98(0x9f)]=qs[_0x3b0c98(0x9f)](_0x336d5d[_0x3b0c98(0x9d)][_0x3b0c98(0x9f)]),_0x2c256b[_0x3b0c98(0xb5)]=qs[_0x3b0c98(0xb5)](_0x336d5d[_0x3b0c98(0x9d)]['offset']));_0x2c256b[_0x3b0c98(0x9b)]=qs[_0x3b0c98(0xb4)](_0x336d5d[_0x3b0c98(0x9d)][_0x3b0c98(0xb4)]),_0x2c256b[_0x3b0c98(0xa3)]=qs[_0x3b0c98(0xa7)](_[_0x3b0c98(0xb0)](_0x336d5d[_0x3b0c98(0x9d)],_0x2638db[_0x3b0c98(0xa7)]),_0x309f3a);_0x336d5d[_0x3b0c98(0x9d)]['filter']&&(_0x2c256b[_0x3b0c98(0xa3)]=_[_0x3b0c98(0x86)](_0x2c256b[_0x3b0c98(0xa3)],{[Op['or']]:_[_0x3b0c98(0x9a)](_0x309f3a,function(_0x2e5585){const _0x25da80=_0x3b0c98;if(_0x2e5585[_0x25da80(0xa9)]!==_0x25da80(0x89)){const _0x101964={};return _0x101964[_0x2e5585[_0x25da80(0x85)]]={[Op[_0x25da80(0x88)]]:'%'+_0x336d5d[_0x25da80(0x9d)][_0x25da80(0xb2)]+'%'},_0x101964;}})}));_0x2c256b=_[_0x3b0c98(0x86)]({},_0x2c256b,_0x336d5d[_0x3b0c98(0xa2)]);const _0x473fbe={'where':_0x2c256b['where']};return db[_0x3b0c98(0xad)][_0x3b0c98(0x93)](_0x473fbe)[_0x3b0c98(0x8e)](function(_0x5db45f){const _0x73953d=_0x3b0c98;return _0x20290f['count']=_0x5db45f,_0x336d5d[_0x73953d(0x9d)]['includeAll']&&(_0x2c256b[_0x73953d(0xb1)]=[{'all':!![]}]),db[_0x73953d(0xad)]['findAll'](_0x2c256b);})[_0x3b0c98(0x8e)](function(_0x531374){const _0x2108bc=_0x3b0c98;return _0x20290f[_0x2108bc(0xb3)]=_0x531374,_0x20290f;})[_0x3b0c98(0x8e)](respondWithFilteredResult(_0x12807b,_0x2c256b))[_0x3b0c98(0x92)](handleError(_0x12807b,null));},exports[a170_0x544dd4(0x90)]=function(_0x18b5fc,_0x191a2f){const _0x9aa707=a170_0x544dd4;let _0x58a389={'raw':!![],'where':{'id':_0x18b5fc[_0x9aa707(0xac)]['id']}};const _0xbe1f65={};return _0xbe1f65[_0x9aa707(0x96)]=_[_0x9aa707(0xa6)](db[_0x9aa707(0xad)][_0x9aa707(0xa1)]),_0xbe1f65['query']=_[_0x9aa707(0xa6)](_0x18b5fc[_0x9aa707(0x9d)]),_0xbe1f65[_0x9aa707(0xa7)]=_['intersection'](_0xbe1f65[_0x9aa707(0x96)],_0xbe1f65[_0x9aa707(0x9d)]),_0x58a389[_0x9aa707(0x9e)]=_[_0x9aa707(0xa0)](_0xbe1f65[_0x9aa707(0x96)],qs['fields'](_0x18b5fc[_0x9aa707(0x9d)][_0x9aa707(0x8d)])),_0x58a389[_0x9aa707(0x9e)]=_0x58a389['attributes'][_0x9aa707(0x9c)]?_0x58a389['attributes']:_0xbe1f65[_0x9aa707(0x96)],_0x18b5fc['query'][_0x9aa707(0xa8)]&&(_0x58a389[_0x9aa707(0xb1)]=[{'all':!![]}]),_0x58a389=_['merge']({},_0x58a389,_0x18b5fc[_0x9aa707(0xa2)]),db['CmHopperBlack'][_0x9aa707(0x8f)](_0x58a389)[_0x9aa707(0x8e)](handleEntityNotFound(_0x191a2f,null))[_0x9aa707(0x8e)](respondWithResult(_0x191a2f,null))[_0x9aa707(0x92)](handleError(_0x191a2f,null));},exports[a170_0x544dd4(0x8b)]=function(_0x345fd0,_0x588320){const _0x319b33=a170_0x544dd4;return _0x345fd0[_0x319b33(0xa4)]['id']&&delete _0x345fd0[_0x319b33(0xa4)]['id'],db['CmHopperBlack']['findOne']({'where':{'id':_0x345fd0[_0x319b33(0xac)]['id']}})[_0x319b33(0x8e)](handleEntityNotFound(_0x588320,null))[_0x319b33(0x8e)](saveUpdates(_0x345fd0[_0x319b33(0xa4)],null))[_0x319b33(0x8e)](respondWithResult(_0x588320,null))[_0x319b33(0x92)](handleError(_0x588320,null));},exports['destroy']=function(_0x5ed461,_0x44b0e7){const _0x38b3bf=a170_0x544dd4;return db[_0x38b3bf(0xad)][_0x38b3bf(0x8f)]({'where':{'id':_0x5ed461[_0x38b3bf(0xac)]['id']}})['then'](handleEntityNotFound(_0x44b0e7,null))['then'](removeEntity(_0x44b0e7,null))[_0x38b3bf(0x92)](handleError(_0x44b0e7,null));},exports['describe']=function(_0x1b2b0e,_0x3b5a59){const _0x2f9cef=a170_0x544dd4;return db['CmHopperBlack'][_0x2f9cef(0x87)]()['then'](respondWithResult(_0x3b5a59,null))[_0x2f9cef(0x92)](handleError(_0x3b5a59,null));}; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.model.js b/server/api/cmHopperBlack/cmHopperBlack.model.js index 5643945..bf0c9f5 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.model.js +++ b/server/api/cmHopperBlack/cmHopperBlack.model.js @@ -1 +1 @@ -const a171_0x5e15=['init','CmHopperBlack','exports','function'];(function(_0x2ed270,_0xf08dca){const _0x5e15fb=function(_0x4acbf0){while(--_0x4acbf0){_0x2ed270['push'](_0x2ed270['shift']());}};_0x5e15fb(++_0xf08dca);}(a171_0x5e15,0x1c3));const a171_0x4acb=function(_0x2ed270,_0xf08dca){_0x2ed270=_0x2ed270-0x103;let _0x5e15fb=a171_0x5e15[_0x2ed270];return _0x5e15fb;};const a171_0xe1aeeb=a171_0x4acb;'use strict';const {Model}=require('sequelize'),{attributes}=require('./cmHopperBlack.attributes'),{options}=require('./cmHopperBlack.options');class CmHopperBlack extends Model{}function init(_0x20df4f,_0x3d924a){const _0x23ed8f=a171_0x4acb,_0xb02ed2=options(_0x20df4f),_0x4457ca=typeof _0x3d924a===_0x23ed8f(0x103)?_0x3d924a(_0xb02ed2):_0xb02ed2;return CmHopperBlack[_0x23ed8f(0x104)](attributes,_0x4457ca),CmHopperBlack;}module['exports'][a171_0xe1aeeb(0x105)]=CmHopperBlack,module[a171_0xe1aeeb(0x106)][a171_0xe1aeeb(0x104)]=init; \ No newline at end of file +const a171_0x2735=['./cmHopperBlack.attributes','function','sequelize','exports','init'];(function(_0x3db927,_0x735282){const _0x2735c9=function(_0x1c81e0){while(--_0x1c81e0){_0x3db927['push'](_0x3db927['shift']());}};_0x2735c9(++_0x735282);}(a171_0x2735,0x167));const a171_0x1c81=function(_0x3db927,_0x735282){_0x3db927=_0x3db927-0x16b;let _0x2735c9=a171_0x2735[_0x3db927];return _0x2735c9;};const a171_0x2fc480=a171_0x1c81;'use strict';const {Model}=require(a171_0x2fc480(0x16e)),{attributes}=require(a171_0x2fc480(0x16c)),{options}=require('./cmHopperBlack.options');class CmHopperBlack extends Model{}function init(_0x3ccb88,_0x485765){const _0x58db92=a171_0x2fc480,_0x4b873a=options(_0x3ccb88),_0x448e9d=typeof _0x485765===_0x58db92(0x16d)?_0x485765(_0x4b873a):_0x4b873a;return CmHopperBlack['init'](attributes,_0x448e9d),CmHopperBlack;}module[a171_0x2fc480(0x16f)]['CmHopperBlack']=CmHopperBlack,module['exports'][a171_0x2fc480(0x16b)]=init; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.options.js b/server/api/cmHopperBlack/cmHopperBlack.options.js index ac8f954..9d17e3a 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.options.js +++ b/server/api/cmHopperBlack/cmHopperBlack.options.js @@ -1 +1 @@ -function options(_0xc60bb){return{'sequelize':_0xc60bb,'tableName':'cm_hopper_black','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports']['options']=options; \ No newline at end of file +var a172_0x2237=['cm_hopper_black','options','exports'];(function(_0x329393,_0x230c45){var _0x22375f=function(_0x385ac5){while(--_0x385ac5){_0x329393['push'](_0x329393['shift']());}};_0x22375f(++_0x230c45);}(a172_0x2237,0x9c));var a172_0x385a=function(_0x329393,_0x230c45){_0x329393=_0x329393-0x18a;var _0x22375f=a172_0x2237[_0x329393];return _0x22375f;};var a172_0x15b302=a172_0x385a;function options(_0x238718){var _0x109aff=a172_0x385a;return{'sequelize':_0x238718,'tableName':_0x109aff(0x18a),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a172_0x15b302(0x18c)][a172_0x15b302(0x18b)]=options; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.rpc.js b/server/api/cmHopperBlack/cmHopperBlack.rpc.js index 3161479..edec080 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.rpc.js +++ b/server/api/cmHopperBlack/cmHopperBlack.rpc.js @@ -1 +1 @@ -const a173_0x16f2=['rpc','include','../../config/logger','GetCmHopperBlack','where','raw','attributes','UpdateCmHopperBlack','DestroyCmHopperBlack','map','findAll','CmHopperBlack','update','message','body','debug','then','info','limit','model','error','destroy','options','stringify','../../mysqldb','catch','lodash'];(function(_0x4b40ba,_0x4c6b17){const _0x16f221=function(_0x445a2c){while(--_0x445a2c){_0x4b40ba['push'](_0x4b40ba['shift']());}};_0x16f221(++_0x4c6b17);}(a173_0x16f2,0xfb));const a173_0x445a=function(_0x4b40ba,_0x4c6b17){_0x4b40ba=_0x4b40ba-0x75;let _0x16f221=a173_0x16f2[_0x4b40ba];return _0x16f221;};const a173_0x11ab57=a173_0x445a;'use strict';const _=require(a173_0x11ab57(0x87)),db=require(a173_0x11ab57(0x85))['db'],logger=require(a173_0x11ab57(0x8a))(a173_0x11ab57(0x88));exports[a173_0x11ab57(0x8b)]=function(_0x8f6bec){const _0x478c58=this;return new Promise(function(_0x26de88,_0x4e9ff3){const _0x91d846=a173_0x445a;return db['CmHopperBlack'][_0x91d846(0x77)]({'raw':_0x8f6bec[_0x91d846(0x83)]?_0x8f6bec[_0x91d846(0x83)][_0x91d846(0x8d)]===undefined?!![]:![]:!![],'where':_0x8f6bec[_0x91d846(0x83)]?_0x8f6bec['options'][_0x91d846(0x8c)]||null:null,'attributes':_0x8f6bec['options']?_0x8f6bec['options'][_0x91d846(0x8e)]||null:null,'limit':_0x8f6bec[_0x91d846(0x83)]?_0x8f6bec[_0x91d846(0x83)][_0x91d846(0x7f)]||null:null,'include':_0x8f6bec[_0x91d846(0x83)]?_0x8f6bec[_0x91d846(0x83)][_0x91d846(0x89)]?_[_0x91d846(0x76)](_0x8f6bec[_0x91d846(0x83)][_0x91d846(0x89)],function(_0x1be269){const _0x25141c=_0x91d846;return{'model':db[_0x1be269[_0x25141c(0x80)]],'as':_0x1be269['as'],'attributes':_0x1be269[_0x25141c(0x8e)],'include':_0x1be269[_0x25141c(0x89)]?_[_0x25141c(0x76)](_0x1be269[_0x25141c(0x89)],function(_0x523e1c){const _0x231b7f=_0x25141c;return{'model':db[_0x523e1c[_0x231b7f(0x80)]],'as':_0x523e1c['as'],'attributes':_0x523e1c[_0x231b7f(0x8e)],'include':_0x523e1c[_0x231b7f(0x89)]?_[_0x231b7f(0x76)](_0x523e1c['include'],function(_0x345047){const _0x11c477=_0x231b7f;return{'model':db[_0x345047[_0x11c477(0x80)]],'as':_0x345047['as'],'attributes':_0x345047[_0x11c477(0x8e)]};}):[]};}):[]};}):[]:[]})[_0x91d846(0x7d)](function(_0x490797){const _0x3b0684=_0x91d846;logger[_0x3b0684(0x7e)](_0x3b0684(0x8b),_0x8f6bec),logger[_0x3b0684(0x7c)]('GetCmHopperBlack',_0x8f6bec,JSON[_0x3b0684(0x84)](_0x490797)),_0x26de88(_0x490797);})[_0x91d846(0x86)](function(_0x28ed99){const _0x5461c6=_0x91d846;logger[_0x5461c6(0x81)](_0x5461c6(0x8b),_0x28ed99[_0x5461c6(0x7a)],_0x8f6bec),_0x4e9ff3(_0x478c58[_0x5461c6(0x81)](0x1f4,_0x28ed99[_0x5461c6(0x7a)]));});});},exports[a173_0x11ab57(0x8f)]=function(_0x2e5319){const _0x364c53=this;return new Promise(function(_0x31ebf1,_0xb00e3f){const _0x523a5b=a173_0x445a;return db[_0x523a5b(0x78)][_0x523a5b(0x79)](_0x2e5319[_0x523a5b(0x7b)],{'raw':_0x2e5319['options']?_0x2e5319[_0x523a5b(0x83)][_0x523a5b(0x8d)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2e5319['options']?_0x2e5319[_0x523a5b(0x83)]['where']||null:null,'attributes':_0x2e5319[_0x523a5b(0x83)]?_0x2e5319['options'][_0x523a5b(0x8e)]||null:null,'limit':_0x2e5319[_0x523a5b(0x83)]?_0x2e5319[_0x523a5b(0x83)][_0x523a5b(0x7f)]||null:null})[_0x523a5b(0x7d)](function(_0x4b9173){const _0x155879=_0x523a5b;logger[_0x155879(0x7e)](_0x155879(0x8f),_0x2e5319),logger[_0x155879(0x7c)](_0x155879(0x8f),_0x2e5319,JSON[_0x155879(0x84)](_0x4b9173)),_0x31ebf1(_0x4b9173);})['catch'](function(_0x15d3e6){const _0x1dd096=_0x523a5b;logger[_0x1dd096(0x81)](_0x1dd096(0x8f),_0x15d3e6[_0x1dd096(0x7a)],_0x2e5319),_0xb00e3f(_0x364c53['error'](0x1f4,_0x15d3e6['message']));});});},exports[a173_0x11ab57(0x75)]=function(_0x524cc2){const _0x270125=this;return new Promise(function(_0x2dd586,_0x31680a){const _0x91cc44=a173_0x445a;return db[_0x91cc44(0x78)][_0x91cc44(0x82)]({'where':_0x524cc2[_0x91cc44(0x83)]?_0x524cc2[_0x91cc44(0x83)][_0x91cc44(0x8c)]||null:null})[_0x91cc44(0x7d)](function(_0x1f33fe){const _0x50390f=_0x91cc44;logger[_0x50390f(0x7e)](_0x50390f(0x75),_0x524cc2),logger['debug'](_0x50390f(0x75),_0x524cc2,JSON[_0x50390f(0x84)](_0x1f33fe)),_0x2dd586(_0x1f33fe);})[_0x91cc44(0x86)](function(_0x23898b){const _0x2ca89d=_0x91cc44;logger[_0x2ca89d(0x81)](_0x2ca89d(0x75),_0x23898b['message'],_0x524cc2),_0x31680a(_0x270125[_0x2ca89d(0x81)](0x1f4,_0x23898b[_0x2ca89d(0x7a)]));});});}; \ No newline at end of file +const a173_0x1399=['UpdateCmHopperBlack','options','include','../../config/logger','error','map','raw','message','../../mysqldb','DestroyCmHopperBlack','limit','CmHopperBlack','findAll','GetCmHopperBlack','stringify','lodash','then','update','where','attributes','destroy','debug','model','body','catch','info'];(function(_0xa61bc1,_0xed604d){const _0x139942=function(_0x228603){while(--_0x228603){_0xa61bc1['push'](_0xa61bc1['shift']());}};_0x139942(++_0xed604d);}(a173_0x1399,0x120));const a173_0x2286=function(_0xa61bc1,_0xed604d){_0xa61bc1=_0xa61bc1-0x140;let _0x139942=a173_0x1399[_0xa61bc1];return _0x139942;};const a173_0x2d7e0f=a173_0x2286;'use strict';const _=require(a173_0x2d7e0f(0x14d)),db=require(a173_0x2d7e0f(0x146))['db'],logger=require(a173_0x2d7e0f(0x141))('rpc');exports[a173_0x2d7e0f(0x14b)]=function(_0x2f1df0){const _0x568398=this;return new Promise(function(_0x1647ba,_0x20f532){const _0x4df6eb=a173_0x2286;return db[_0x4df6eb(0x149)][_0x4df6eb(0x14a)]({'raw':_0x2f1df0['options']?_0x2f1df0['options'][_0x4df6eb(0x144)]===undefined?!![]:![]:!![],'where':_0x2f1df0[_0x4df6eb(0x159)]?_0x2f1df0[_0x4df6eb(0x159)]['where']||null:null,'attributes':_0x2f1df0[_0x4df6eb(0x159)]?_0x2f1df0[_0x4df6eb(0x159)]['attributes']||null:null,'limit':_0x2f1df0[_0x4df6eb(0x159)]?_0x2f1df0[_0x4df6eb(0x159)][_0x4df6eb(0x148)]||null:null,'include':_0x2f1df0['options']?_0x2f1df0[_0x4df6eb(0x159)][_0x4df6eb(0x140)]?_[_0x4df6eb(0x143)](_0x2f1df0[_0x4df6eb(0x159)][_0x4df6eb(0x140)],function(_0x5e1f41){const _0x36d1ad=_0x4df6eb;return{'model':db[_0x5e1f41[_0x36d1ad(0x154)]],'as':_0x5e1f41['as'],'attributes':_0x5e1f41[_0x36d1ad(0x151)],'include':_0x5e1f41[_0x36d1ad(0x140)]?_[_0x36d1ad(0x143)](_0x5e1f41[_0x36d1ad(0x140)],function(_0x2a0d30){const _0x6b343c=_0x36d1ad;return{'model':db[_0x2a0d30[_0x6b343c(0x154)]],'as':_0x2a0d30['as'],'attributes':_0x2a0d30['attributes'],'include':_0x2a0d30[_0x6b343c(0x140)]?_['map'](_0x2a0d30[_0x6b343c(0x140)],function(_0x48a4cd){const _0x2bd492=_0x6b343c;return{'model':db[_0x48a4cd[_0x2bd492(0x154)]],'as':_0x48a4cd['as'],'attributes':_0x48a4cd['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x2b266a){const _0xb776ed=_0x4df6eb;logger[_0xb776ed(0x157)]('GetCmHopperBlack',_0x2f1df0),logger['debug']('GetCmHopperBlack',_0x2f1df0,JSON[_0xb776ed(0x14c)](_0x2b266a)),_0x1647ba(_0x2b266a);})[_0x4df6eb(0x156)](function(_0xad4eec){const _0x304d78=_0x4df6eb;logger[_0x304d78(0x142)](_0x304d78(0x14b),_0xad4eec['message'],_0x2f1df0),_0x20f532(_0x568398['error'](0x1f4,_0xad4eec[_0x304d78(0x145)]));});});},exports[a173_0x2d7e0f(0x158)]=function(_0x20c71b){const _0x26964c=this;return new Promise(function(_0x11ae64,_0x55207d){const _0x4c72bd=a173_0x2286;return db[_0x4c72bd(0x149)][_0x4c72bd(0x14f)](_0x20c71b[_0x4c72bd(0x155)],{'raw':_0x20c71b[_0x4c72bd(0x159)]?_0x20c71b[_0x4c72bd(0x159)][_0x4c72bd(0x144)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x20c71b['options']?_0x20c71b[_0x4c72bd(0x159)][_0x4c72bd(0x150)]||null:null,'attributes':_0x20c71b[_0x4c72bd(0x159)]?_0x20c71b['options'][_0x4c72bd(0x151)]||null:null,'limit':_0x20c71b[_0x4c72bd(0x159)]?_0x20c71b[_0x4c72bd(0x159)][_0x4c72bd(0x148)]||null:null})[_0x4c72bd(0x14e)](function(_0x38ed20){const _0x537a33=_0x4c72bd;logger['info'](_0x537a33(0x158),_0x20c71b),logger[_0x537a33(0x153)]('UpdateCmHopperBlack',_0x20c71b,JSON[_0x537a33(0x14c)](_0x38ed20)),_0x11ae64(_0x38ed20);})[_0x4c72bd(0x156)](function(_0x352600){const _0x4bcd16=_0x4c72bd;logger[_0x4bcd16(0x142)]('UpdateCmHopperBlack',_0x352600[_0x4bcd16(0x145)],_0x20c71b),_0x55207d(_0x26964c[_0x4bcd16(0x142)](0x1f4,_0x352600[_0x4bcd16(0x145)]));});});},exports[a173_0x2d7e0f(0x147)]=function(_0x48be50){const _0x28f8f1=this;return new Promise(function(_0x114792,_0x5b44e1){const _0x369118=a173_0x2286;return db['CmHopperBlack'][_0x369118(0x152)]({'where':_0x48be50[_0x369118(0x159)]?_0x48be50[_0x369118(0x159)]['where']||null:null})['then'](function(_0x25b0e8){const _0x2ed2bd=_0x369118;logger['info'](_0x2ed2bd(0x147),_0x48be50),logger[_0x2ed2bd(0x153)](_0x2ed2bd(0x147),_0x48be50,JSON[_0x2ed2bd(0x14c)](_0x25b0e8)),_0x114792(_0x25b0e8);})[_0x369118(0x156)](function(_0x13eb65){const _0x2b9701=_0x369118;logger[_0x2b9701(0x142)](_0x2b9701(0x147),_0x13eb65[_0x2b9701(0x145)],_0x48be50),_0x5b44e1(_0x28f8f1[_0x2b9701(0x142)](0x1f4,_0x13eb65['message']));});});}; \ No newline at end of file diff --git a/server/api/cmHopperBlack/index.js b/server/api/cmHopperBlack/index.js index ab00ac9..f96afd7 100644 --- a/server/api/cmHopperBlack/index.js +++ b/server/api/cmHopperBlack/index.js @@ -1 +1 @@ -const a174_0x4d21=['isAuthenticated','delete','/:id','express','update','/describe','get','show','describe','destroy','put','./cmHopperBlack.controller','../../components/auth/service','exports'];(function(_0x4901f2,_0x5d2be5){const _0x4d21be=function(_0x372c9b){while(--_0x372c9b){_0x4901f2['push'](_0x4901f2['shift']());}};_0x4d21be(++_0x5d2be5);}(a174_0x4d21,0x1de));const a174_0x372c=function(_0x4901f2,_0x5d2be5){_0x4901f2=_0x4901f2-0xc4;let _0x4d21be=a174_0x4d21[_0x4901f2];return _0x4d21be;};const a174_0x2c4566=a174_0x372c;'use strict';const express=require(a174_0x2c4566(0xc5)),router=express['Router'](),auth=require(a174_0x2c4566(0xce)),controller=require(a174_0x2c4566(0xcd));router[a174_0x2c4566(0xc8)]('/',auth[a174_0x2c4566(0xd0)](),controller['index']),router[a174_0x2c4566(0xc8)](a174_0x2c4566(0xc7),auth['isAuthenticated'](),controller[a174_0x2c4566(0xca)]),router['get'](a174_0x2c4566(0xc4),auth[a174_0x2c4566(0xd0)](),controller[a174_0x2c4566(0xc9)]),router[a174_0x2c4566(0xcc)]('/:id',auth[a174_0x2c4566(0xd0)](),controller[a174_0x2c4566(0xc6)]),router[a174_0x2c4566(0xd1)]('/:id',auth[a174_0x2c4566(0xd0)](),controller[a174_0x2c4566(0xcb)]),module[a174_0x2c4566(0xcf)]=router; \ No newline at end of file +const a174_0x1e46=['update','isAuthenticated','../../components/auth/service','./cmHopperBlack.controller','exports','/:id','get','express','describe'];(function(_0x3c7100,_0x413e96){const _0x1e46e3=function(_0x488436){while(--_0x488436){_0x3c7100['push'](_0x3c7100['shift']());}};_0x1e46e3(++_0x413e96);}(a174_0x1e46,0x12c));const a174_0x4884=function(_0x3c7100,_0x413e96){_0x3c7100=_0x3c7100-0x106;let _0x1e46e3=a174_0x1e46[_0x3c7100];return _0x1e46e3;};const a174_0x5b621b=a174_0x4884;'use strict';const express=require(a174_0x5b621b(0x10a)),router=express['Router'](),auth=require(a174_0x5b621b(0x10e)),controller=require(a174_0x5b621b(0x106));router[a174_0x5b621b(0x109)]('/',auth[a174_0x5b621b(0x10d)](),controller['index']),router[a174_0x5b621b(0x109)]('/describe',auth['isAuthenticated'](),controller[a174_0x5b621b(0x10b)]),router[a174_0x5b621b(0x109)]('/:id',auth[a174_0x5b621b(0x10d)](),controller['show']),router['put'](a174_0x5b621b(0x108),auth[a174_0x5b621b(0x10d)](),controller[a174_0x5b621b(0x10c)]),router['delete']('/:id',auth[a174_0x5b621b(0x10d)](),controller['destroy']),module[a174_0x5b621b(0x107)]=router; \ No newline at end of file diff --git a/server/api/cmHopperFinal/cmHopperFinal.attributes.js b/server/api/cmHopperFinal/cmHopperFinal.attributes.js index 08c5e3c..ccba702 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.attributes.js +++ b/server/api/cmHopperFinal/cmHopperFinal.attributes.js @@ -1 +1 @@ -const a175_0x4f9d=['STRING','DATE','sequelize','attributes','getDataValue','followuptime','BOOLEAN','setDataValue','endtime','exports','seconds','diff','INTEGER'];(function(_0x19b7e9,_0x81b5b8){const _0x4f9de4=function(_0x26827e){while(--_0x26827e){_0x19b7e9['push'](_0x19b7e9['shift']());}};_0x4f9de4(++_0x81b5b8);}(a175_0x4f9d,0x7a));const a175_0x2682=function(_0x19b7e9,_0x81b5b8){_0x19b7e9=_0x19b7e9-0x6a;let _0x4f9de4=a175_0x4f9d[_0x19b7e9];return _0x4f9de4;};const a175_0x21c40c=a175_0x2682;'use strict';const {DataTypes}=require(a175_0x21c40c(0x74)),moment=require('moment'),attributes={'state':{'type':DataTypes['INTEGER']({'length':0x2})},'statedesc':{'type':DataTypes[a175_0x21c40c(0x72)]},'scheduledat':{'type':DataTypes[a175_0x21c40c(0x73)]},'countbusyretry':{'type':DataTypes[a175_0x21c40c(0x71)],'defaultValue':0x0},'countcongestionretry':{'type':DataTypes[a175_0x21c40c(0x71)],'defaultValue':0x0},'countnoanswerretry':{'type':DataTypes[a175_0x21c40c(0x71)],'defaultValue':0x0},'countglobal':{'type':DataTypes[a175_0x21c40c(0x71)],'defaultValue':0x0},'uniqueid':{'type':DataTypes['STRING']},'originatecalleridnum':{'type':DataTypes[a175_0x21c40c(0x72)]},'originatecalleridname':{'type':DataTypes[a175_0x21c40c(0x72)]},'calleridnum':{'type':DataTypes['STRING']},'calleridname':{'type':DataTypes['STRING']},'starttime':{'type':DataTypes[a175_0x21c40c(0x73)]},'responsetime':{'type':DataTypes['DATE']},'answertime':{'type':DataTypes[a175_0x21c40c(0x73)]},'droptime':{'type':DataTypes[a175_0x21c40c(0x73)]},'endtime':{'type':DataTypes[a175_0x21c40c(0x73)]},'ringtime':{'type':DataTypes[a175_0x21c40c(0x71)],'defaultValue':0x0},'holdtime':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'talktime':{'type':DataTypes[a175_0x21c40c(0x71)],'defaultValue':0x0},'followuptime':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'dropreason':{'type':DataTypes[a175_0x21c40c(0x72)]},'campaign':{'type':DataTypes['STRING']},'campaigntype':{'type':DataTypes['STRING']},'membername':{'type':DataTypes[a175_0x21c40c(0x72)]},'reason':{'type':DataTypes['STRING']},'disposition':{'type':DataTypes[a175_0x21c40c(0x72)]},'secondDisposition':{'type':DataTypes[a175_0x21c40c(0x72)]},'thirdDisposition':{'type':DataTypes[a175_0x21c40c(0x72)]},'dispositionat':{'type':DataTypes[a175_0x21c40c(0x73)],'set':function(_0x4ab9e0){const _0x156b80=a175_0x21c40c,_0x479c42=this[_0x156b80(0x76)](_0x156b80(0x6d));return _0x479c42&&_0x4ab9e0&&this[_0x156b80(0x6c)](_0x156b80(0x6a),moment(_0x4ab9e0)[_0x156b80(0x70)](moment(_0x479c42),_0x156b80(0x6f))),this[_0x156b80(0x6c)]('dispositionat',_0x4ab9e0);}},'amd':{'type':DataTypes[a175_0x21c40c(0x6b)],'defaultValue':![]},'fax':{'type':DataTypes[a175_0x21c40c(0x6b)],'defaultValue':![]},'blacklist':{'type':DataTypes[a175_0x21c40c(0x6b)],'defaultValue':![]},'rescheduled':{'type':DataTypes[a175_0x21c40c(0x6b)],'defaultValue':![]},'rescheduledat':{'type':DataTypes[a175_0x21c40c(0x73)]},'callback':{'type':DataTypes[a175_0x21c40c(0x6b)],'defaultValue':![]},'callbackuniqueid':{'type':DataTypes[a175_0x21c40c(0x72)],'defaultValue':null},'callbackat':{'type':DataTypes[a175_0x21c40c(0x73)]},'deleted':{'type':DataTypes['STRING'],'defaultValue':null},'deletedat':{'type':DataTypes[a175_0x21c40c(0x73)]},'recallme':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'agiafterat':{'type':DataTypes[a175_0x21c40c(0x73)]},'countnosuchnumberretry':{'type':DataTypes[a175_0x21c40c(0x71)],'defaultValue':0x0},'countdropretry':{'type':DataTypes[a175_0x21c40c(0x71)],'defaultValue':0x0},'countabandonedretry':{'type':DataTypes[a175_0x21c40c(0x71)],'defaultValue':0x0},'countmachineretry':{'type':DataTypes[a175_0x21c40c(0x71)],'defaultValue':0x0},'countagentrejectretry':{'type':DataTypes[a175_0x21c40c(0x71)],'defaultValue':0x0}};module[a175_0x21c40c(0x6e)][a175_0x21c40c(0x75)]=attributes; \ No newline at end of file +const a175_0x5400=['sequelize','endtime','dispositionat','INTEGER','BOOLEAN','moment','setDataValue','attributes','exports','diff','STRING','seconds','getDataValue','DATE'];(function(_0x189bd5,_0x2094f8){const _0x540064=function(_0x13b127){while(--_0x13b127){_0x189bd5['push'](_0x189bd5['shift']());}};_0x540064(++_0x2094f8);}(a175_0x5400,0x93));const a175_0x13b1=function(_0x189bd5,_0x2094f8){_0x189bd5=_0x189bd5-0xdc;let _0x540064=a175_0x5400[_0x189bd5];return _0x540064;};const a175_0x44c9f2=a175_0x13b1;'use strict';const {DataTypes}=require(a175_0x44c9f2(0xe3)),moment=require(a175_0x44c9f2(0xe8)),attributes={'state':{'type':DataTypes[a175_0x44c9f2(0xe6)]({'length':0x2})},'statedesc':{'type':DataTypes[a175_0x44c9f2(0xdf)]},'scheduledat':{'type':DataTypes[a175_0x44c9f2(0xe2)]},'countbusyretry':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'countcongestionretry':{'type':DataTypes[a175_0x44c9f2(0xe6)],'defaultValue':0x0},'countnoanswerretry':{'type':DataTypes[a175_0x44c9f2(0xe6)],'defaultValue':0x0},'countglobal':{'type':DataTypes[a175_0x44c9f2(0xe6)],'defaultValue':0x0},'uniqueid':{'type':DataTypes['STRING']},'originatecalleridnum':{'type':DataTypes[a175_0x44c9f2(0xdf)]},'originatecalleridname':{'type':DataTypes['STRING']},'calleridnum':{'type':DataTypes[a175_0x44c9f2(0xdf)]},'calleridname':{'type':DataTypes[a175_0x44c9f2(0xdf)]},'starttime':{'type':DataTypes['DATE']},'responsetime':{'type':DataTypes[a175_0x44c9f2(0xe2)]},'answertime':{'type':DataTypes['DATE']},'droptime':{'type':DataTypes[a175_0x44c9f2(0xe2)]},'endtime':{'type':DataTypes[a175_0x44c9f2(0xe2)]},'ringtime':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'holdtime':{'type':DataTypes[a175_0x44c9f2(0xe6)],'defaultValue':0x0},'talktime':{'type':DataTypes[a175_0x44c9f2(0xe6)],'defaultValue':0x0},'followuptime':{'type':DataTypes[a175_0x44c9f2(0xe6)],'defaultValue':0x0},'dropreason':{'type':DataTypes['STRING']},'campaign':{'type':DataTypes[a175_0x44c9f2(0xdf)]},'campaigntype':{'type':DataTypes[a175_0x44c9f2(0xdf)]},'membername':{'type':DataTypes[a175_0x44c9f2(0xdf)]},'reason':{'type':DataTypes[a175_0x44c9f2(0xdf)]},'disposition':{'type':DataTypes[a175_0x44c9f2(0xdf)]},'secondDisposition':{'type':DataTypes[a175_0x44c9f2(0xdf)]},'thirdDisposition':{'type':DataTypes[a175_0x44c9f2(0xdf)]},'dispositionat':{'type':DataTypes[a175_0x44c9f2(0xe2)],'set':function(_0x46083e){const _0x5e427=a175_0x44c9f2,_0x6a178c=this[_0x5e427(0xe1)](_0x5e427(0xe4));return _0x6a178c&&_0x46083e&&this[_0x5e427(0xe9)]('followuptime',moment(_0x46083e)[_0x5e427(0xde)](moment(_0x6a178c),_0x5e427(0xe0))),this['setDataValue'](_0x5e427(0xe5),_0x46083e);}},'amd':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'fax':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'blacklist':{'type':DataTypes[a175_0x44c9f2(0xe7)],'defaultValue':![]},'rescheduled':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'rescheduledat':{'type':DataTypes[a175_0x44c9f2(0xe2)]},'callback':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'callbackuniqueid':{'type':DataTypes['STRING'],'defaultValue':null},'callbackat':{'type':DataTypes[a175_0x44c9f2(0xe2)]},'deleted':{'type':DataTypes['STRING'],'defaultValue':null},'deletedat':{'type':DataTypes[a175_0x44c9f2(0xe2)]},'recallme':{'type':DataTypes[a175_0x44c9f2(0xe7)],'defaultValue':![]},'agiafterat':{'type':DataTypes[a175_0x44c9f2(0xe2)]},'countnosuchnumberretry':{'type':DataTypes[a175_0x44c9f2(0xe6)],'defaultValue':0x0},'countdropretry':{'type':DataTypes[a175_0x44c9f2(0xe6)],'defaultValue':0x0},'countabandonedretry':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'countmachineretry':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'countagentrejectretry':{'type':DataTypes[a175_0x44c9f2(0xe6)],'defaultValue':0x0}};module[a175_0x44c9f2(0xdd)][a175_0x44c9f2(0xdc)]=attributes; \ No newline at end of file diff --git a/server/api/cmHopperFinal/cmHopperFinal.controller.js b/server/api/cmHopperFinal/cmHopperFinal.controller.js index 6ddf549..b1ce66e 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.controller.js +++ b/server/api/cmHopperFinal/cmHopperFinal.controller.js @@ -1 +1 @@ -const a176_0x4e1b=['where','sort','count','intersection','checkContactHopper','send','../../config/logger','rawAttributes','merge','findOne','order','ContactId','map','filter','../../components/parsers/qs','squel','group','NOW()','VoiceQueueId\x20=\x20?','query','ANY_VALUE(calleridnum)','COUNT','then','updatedAt','Content-Range','calleridnum\x20NOT\x20IN\x20(?)','cm_hopper','pick','VoiceQueueId','VoiceQueue','../../mysqldb','`state`\x20=\x205,\x201,\x20null','sequelize','key','set','busyContacts','error','filters','`state`\x20=\x2022,\x201,\x20null','index','scheduledAt','catch','`state`\x20=\x200,\x201,\x20null','field','`state`\x20=\x208,\x201,\x20null','insert','moveContactsIvrCampaignHopperFinal','state\x20=\x20?','cm_hopper_final','keys','limit','calleridnum','name','into','calleridnum\x20IS\x20NOT\x20NULL','dropContacts','show','offset','body','`state`\x20=\x2010\x20,\x201,\x20null','findAll','includeAll','stack','fromQuery','toString','ANY_VALUE(CampaignId)','ListId','from','VIRTUAL','noAnswerContacts','api','moveContactsQueueCampaignHopperFinal','noSuchContacts','CampaignId','describe','state','sendStatus','`state`\x20=\x2019,\x201,\x20null','params','CmHopperFinal','update','answeringMachine','reCallContacts','CampaignId\x20=\x20?','countContactsQueueCampaignHopperFinal','lodash','nolimit','model','fieldName','attributes','uniqueid','like','ANY_VALUE(VoiceQueueId)','`state`\x20=\x2011\x20,\x201,\x20null','select','type','state\x20=\x204','congestionContacts','status','phone','countContactsIvrCampaignHopperFinal','abandonedContacts','length','json','CmHopper','fields','createdAt'];(function(_0x325506,_0x4e4075){const _0x4e1b63=function(_0x421503){while(--_0x421503){_0x325506['push'](_0x325506['shift']());}};_0x4e1b63(++_0x4e4075);}(a176_0x4e1b,0x196));const a176_0x4215=function(_0x325506,_0x4e4075){_0x325506=_0x325506-0x159;let _0x4e1b63=a176_0x4e1b[_0x325506];return _0x4e1b63;};const a176_0x4534aa=a176_0x4215;'use strict';const _=require(a176_0x4534aa(0x159)),squel=require(a176_0x4534aa(0x17e)),qs=require(a176_0x4534aa(0x17d)),logger=require(a176_0x4534aa(0x175))(a176_0x4534aa(0x1b5)),{db}=require(a176_0x4534aa(0x18d)),{Op,fn,literal}=require(a176_0x4534aa(0x18f));function respondWithResult(_0x5020ce,_0x62c03b){return _0x62c03b=_0x62c03b||0xc8,function(_0x58e6ad){const _0xffa216=a176_0x4215;if(_0x58e6ad)return _0x5020ce[_0xffa216(0x166)](_0x62c03b)[_0xffa216(0x16b)](_0x58e6ad);};}function respondWithFilteredResult(_0x4dae64,_0x3fbfcc){return function(_0x2b2f7a){const _0x538cc3=a176_0x4215;if(_0x2b2f7a){const _0x27e038=_0x2b2f7a[_0x538cc3(0x171)],_0x3e7e90=_0x3fbfcc[_0x538cc3(0x1a8)];let _0x564d24=_0x3fbfcc[_0x538cc3(0x1a8)]+_0x3fbfcc[_0x538cc3(0x1a1)],_0x21db7e;return _0x564d24>=_0x27e038?(_0x564d24=_0x27e038,_0x21db7e=0xc8):_0x21db7e=0xce,_0x4dae64[_0x538cc3(0x166)](_0x21db7e),_0x4dae64[_0x538cc3(0x191)](_0x538cc3(0x187),_0x3e7e90+'-'+_0x564d24+'/'+_0x27e038)[_0x538cc3(0x16b)](_0x2b2f7a);}return null;};}function saveUpdates(_0x49dc1c){return function(_0x14d517){const _0x5dea13=a176_0x4215;if(_0x14d517)return _0x14d517['update'](_0x49dc1c)[_0x5dea13(0x185)](function(_0x1777cb){return _0x1777cb;});return null;};}function handleEntityNotFound(_0x4de184){return function(_0x4c1aab){const _0x3aa57d=a176_0x4215;return!_0x4c1aab&&_0x4de184[_0x3aa57d(0x1bb)](0x194),_0x4c1aab;};}function handleError(_0x58a7e5,_0x548e16){return _0x548e16=_0x548e16||0x1f4,function(_0x53edf9){const _0x4ce945=a176_0x4215;logger[_0x4ce945(0x193)](_0x53edf9[_0x4ce945(0x1ad)]),_0x53edf9[_0x4ce945(0x1a3)]&&delete _0x53edf9[_0x4ce945(0x1a3)],_0x58a7e5[_0x4ce945(0x166)](_0x548e16)[_0x4ce945(0x174)](_0x53edf9);};}exports[a176_0x4534aa(0x196)]=function(_0x3f03c5,_0x4cdf66){const _0x3449c9=a176_0x4534aa;let _0x1443ec={};const _0x797bab={},_0x4c4f4b={'count':0x0,'rows':[]},_0xfc79a=_[_0x3449c9(0x17b)](db[_0x3449c9(0x1be)][_0x3449c9(0x176)],function(_0x2efc57){const _0x4d4acf=_0x3449c9;return{'name':_0x2efc57[_0x4d4acf(0x15c)],'type':_0x2efc57['type'][_0x4d4acf(0x190)]};});_0x797bab['model']=_[_0x3449c9(0x17b)](_0xfc79a,'name'),_0x797bab[_0x3449c9(0x182)]=_['keys'](_0x3f03c5[_0x3449c9(0x182)]),_0x797bab['filters']=_[_0x3449c9(0x172)](_0x797bab[_0x3449c9(0x15b)],_0x797bab[_0x3449c9(0x182)]),_0x1443ec[_0x3449c9(0x15d)]=_[_0x3449c9(0x172)](_0x797bab[_0x3449c9(0x15b)],qs[_0x3449c9(0x16d)](_0x3f03c5['query'][_0x3449c9(0x16d)])),_0x1443ec[_0x3449c9(0x15d)]=_0x1443ec[_0x3449c9(0x15d)][_0x3449c9(0x16a)]?_0x1443ec[_0x3449c9(0x15d)]:_0x797bab['model'];typeof _0x3f03c5[_0x3449c9(0x182)][_0x3449c9(0x15a)]==='undefined'&&(_0x1443ec[_0x3449c9(0x1a1)]=qs[_0x3449c9(0x1a1)](_0x3f03c5['query']['limit']),_0x1443ec[_0x3449c9(0x1a8)]=qs['offset'](_0x3f03c5[_0x3449c9(0x182)]['offset']));_0x1443ec[_0x3449c9(0x179)]=qs['sort'](_0x3f03c5['query'][_0x3449c9(0x170)]),_0x1443ec[_0x3449c9(0x16f)]=qs[_0x3449c9(0x194)](_[_0x3449c9(0x18a)](_0x3f03c5['query'],_0x797bab[_0x3449c9(0x194)]),_0xfc79a);_0x3f03c5['query'][_0x3449c9(0x17c)]&&(_0x1443ec['where']=_[_0x3449c9(0x177)](_0x1443ec['where'],{[Op['or']]:_[_0x3449c9(0x17b)](_0xfc79a,function(_0x598781){const _0x3b2add=_0x3449c9;if(_0x598781[_0x3b2add(0x163)]!==_0x3b2add(0x1b3)){const _0x113e54={};return _0x113e54[_0x598781['name']]={[Op[_0x3b2add(0x15f)]]:'%'+_0x3f03c5['query'][_0x3b2add(0x17c)]+'%'},_0x113e54;}})}));_0x1443ec=_[_0x3449c9(0x177)]({},_0x1443ec,_0x3f03c5['options']);const _0x358366={'where':_0x1443ec[_0x3449c9(0x16f)]};return db[_0x3449c9(0x1be)][_0x3449c9(0x171)](_0x358366)[_0x3449c9(0x185)](function(_0x3bfae3){const _0x15668d=_0x3449c9;return _0x4c4f4b['count']=_0x3bfae3,_0x3f03c5[_0x15668d(0x182)][_0x15668d(0x1ac)]&&(_0x1443ec['include']=[{'all':!![]}]),db[_0x15668d(0x1be)][_0x15668d(0x1ab)](_0x1443ec);})['then'](function(_0x2a6b45){return _0x4c4f4b['rows']=_0x2a6b45,_0x4c4f4b;})[_0x3449c9(0x185)](respondWithFilteredResult(_0x4cdf66,_0x1443ec))['catch'](handleError(_0x4cdf66,null));},exports[a176_0x4534aa(0x1a7)]=function(_0x5643cc,_0x4eb118){const _0x35a515=a176_0x4534aa;let _0x4edd49={'raw':!![],'where':{'id':_0x5643cc[_0x35a515(0x1bd)]['id']}};const _0x387466={};return _0x387466['model']=_[_0x35a515(0x1a0)](db[_0x35a515(0x1be)][_0x35a515(0x176)]),_0x387466['query']=_['keys'](_0x5643cc[_0x35a515(0x182)]),_0x387466[_0x35a515(0x194)]=_['intersection'](_0x387466[_0x35a515(0x15b)],_0x387466[_0x35a515(0x182)]),_0x4edd49[_0x35a515(0x15d)]=_[_0x35a515(0x172)](_0x387466[_0x35a515(0x15b)],qs[_0x35a515(0x16d)](_0x5643cc['query'][_0x35a515(0x16d)])),_0x4edd49[_0x35a515(0x15d)]=_0x4edd49['attributes'][_0x35a515(0x16a)]?_0x4edd49[_0x35a515(0x15d)]:_0x387466['model'],_0x5643cc[_0x35a515(0x182)][_0x35a515(0x1ac)]&&(_0x4edd49['include']=[{'all':!![]}]),_0x4edd49=_['merge']({},_0x4edd49,_0x5643cc['options']),db[_0x35a515(0x1be)]['findOne'](_0x4edd49)[_0x35a515(0x185)](handleEntityNotFound(_0x4eb118,null))[_0x35a515(0x185)](respondWithResult(_0x4eb118,null))['catch'](handleError(_0x4eb118,null));},exports[a176_0x4534aa(0x1b9)]=function(_0x44f1fd,_0x2d5424){const _0x3ea4b0=a176_0x4534aa;return db[_0x3ea4b0(0x1be)][_0x3ea4b0(0x1b9)]()[_0x3ea4b0(0x185)](respondWithResult(_0x2d5424,null))[_0x3ea4b0(0x198)](handleError(_0x2d5424,null));},exports[a176_0x4534aa(0x1bf)]=function(_0x5a20c9,_0x2cac20){const _0x25eaa4=a176_0x4534aa;return _0x5a20c9[_0x25eaa4(0x1a9)][_0x25eaa4(0x15e)]&&delete _0x5a20c9[_0x25eaa4(0x1a9)][_0x25eaa4(0x15e)],db[_0x25eaa4(0x1be)][_0x25eaa4(0x178)]({'where':{'uniqueid':_0x5a20c9[_0x25eaa4(0x1bd)]['id']}})[_0x25eaa4(0x185)](handleEntityNotFound(_0x2cac20,null))['then'](saveUpdates(_0x5a20c9[_0x25eaa4(0x1a9)],null))['then'](respondWithResult(_0x2cac20,null))['catch'](handleError(_0x2cac20,null));},exports[a176_0x4534aa(0x1c3)]=function(_0x543362,_0x3dae1f){const _0x7f7113=a176_0x4534aa;return db['CmHopperFinal']['findAll']({'raw':![],'where':{'VoiceQueueId':_0x543362['params']['id']},'attributes':[[fn('COUNT',fn('IF',literal(_0x7f7113(0x199)))),_0x7f7113(0x1b7)],[fn('COUNT',fn('IF',literal('`state`\x20=\x203,\x201,\x20null'))),_0x7f7113(0x1b4)],[fn(_0x7f7113(0x184),fn('IF',literal(_0x7f7113(0x18e)))),_0x7f7113(0x192)],[fn('COUNT',fn('IF',literal(_0x7f7113(0x19b)))),_0x7f7113(0x165)],[fn('COUNT',fn('IF',literal(_0x7f7113(0x1aa)))),_0x7f7113(0x1a6)],[fn('COUNT',fn('IF',literal(_0x7f7113(0x161)))),_0x7f7113(0x169)],[fn('COUNT',fn('IF',literal('`state`\x20=\x2022,\x201,\x20null'))),_0x7f7113(0x1c1)],[fn(_0x7f7113(0x184),fn('IF',literal(_0x7f7113(0x1bc)))),_0x7f7113(0x1c0)]]})[_0x7f7113(0x185)](handleEntityNotFound(_0x3dae1f,null))[_0x7f7113(0x185)](respondWithResult(_0x3dae1f,null))['catch'](handleError(_0x3dae1f,null));},exports[a176_0x4534aa(0x168)]=function(_0x4134c9,_0x1c19be){const _0x3d2a39=a176_0x4534aa;return db[_0x3d2a39(0x1be)][_0x3d2a39(0x1ab)]({'raw':![],'where':{'CampaignId':_0x4134c9[_0x3d2a39(0x1bd)]['id']},'attributes':[[fn(_0x3d2a39(0x184),fn('IF',literal(_0x3d2a39(0x199)))),_0x3d2a39(0x1b7)],[fn('COUNT',fn('IF',literal('`state`\x20=\x203,\x201,\x20null'))),_0x3d2a39(0x1b4)],[fn(_0x3d2a39(0x184),fn('IF',literal('`state`\x20=\x205,\x201,\x20null'))),_0x3d2a39(0x192)],[fn(_0x3d2a39(0x184),fn('IF',literal(_0x3d2a39(0x19b)))),'congestionContacts'],[fn(_0x3d2a39(0x184),fn('IF',literal(_0x3d2a39(0x1aa)))),_0x3d2a39(0x1a6)],[fn(_0x3d2a39(0x184),fn('IF',literal(_0x3d2a39(0x161)))),_0x3d2a39(0x169)],[fn(_0x3d2a39(0x184),fn('IF',literal(_0x3d2a39(0x195)))),_0x3d2a39(0x1c1)],[fn(_0x3d2a39(0x184),fn('IF',literal('`state`\x20=\x2019,\x201,\x20null'))),_0x3d2a39(0x1c0)]]})['then'](handleEntityNotFound(_0x1c19be,null))[_0x3d2a39(0x185)](respondWithResult(_0x1c19be,null))[_0x3d2a39(0x198)](handleError(_0x1c19be,null));},exports[a176_0x4534aa(0x1b6)]=function(_0x524d8f,_0x1ad0ae){const _0x507a75=a176_0x4534aa;return db[_0x507a75(0x18c)]['findOne']({'where':{'id':_0x524d8f[_0x507a75(0x1bd)]['id']}})[_0x507a75(0x185)](handleEntityNotFound(_0x1ad0ae,null))['then'](function(_0x1e31cb){const _0xcbcc03=_0x507a75;let _0x4b195b;if(_0x1e31cb)return _0x4b195b=squel['insert']()['into']('cm_hopper')[_0xcbcc03(0x1ae)]([_0xcbcc03(0x167),_0xcbcc03(0x197),_0xcbcc03(0x17a),_0xcbcc03(0x1b1),_0xcbcc03(0x18b),'createdAt',_0xcbcc03(0x186)],squel[_0xcbcc03(0x162)]()[_0xcbcc03(0x19a)]('ANY_VALUE(calleridnum)','phone')[_0xcbcc03(0x19a)]('NOW()',_0xcbcc03(0x197))[_0xcbcc03(0x19a)]('ANY_VALUE(ContactId)','ContactId')[_0xcbcc03(0x19a)]('ANY_VALUE(ListId)',_0xcbcc03(0x1b1))[_0xcbcc03(0x19a)](_0xcbcc03(0x160),'VoiceQueueId')[_0xcbcc03(0x19a)](_0xcbcc03(0x180),'createdAt')[_0xcbcc03(0x19a)](_0xcbcc03(0x180),_0xcbcc03(0x186))[_0xcbcc03(0x1b2)](_0xcbcc03(0x19f))[_0xcbcc03(0x16f)](_0xcbcc03(0x181),_0x524d8f['params']['id'][_0xcbcc03(0x1af)]())[_0xcbcc03(0x16f)](_0xcbcc03(0x19e),_0x524d8f[_0xcbcc03(0x1a9)]['state'][_0xcbcc03(0x1af)]())[_0xcbcc03(0x16f)](_0xcbcc03(0x1a5))['where']('calleridnum\x20NOT\x20IN\x20(?)',squel[_0xcbcc03(0x162)]()['field'](_0xcbcc03(0x167))[_0xcbcc03(0x1b2)](_0xcbcc03(0x189))['where']('VoiceQueueId\x20=\x20?',_0x524d8f[_0xcbcc03(0x1bd)]['id'][_0xcbcc03(0x1af)]()))[_0xcbcc03(0x16f)]('calleridnum\x20NOT\x20IN\x20(?)',squel[_0xcbcc03(0x162)]()[_0xcbcc03(0x19a)]('calleridnum')[_0xcbcc03(0x1b2)](_0xcbcc03(0x19f))[_0xcbcc03(0x16f)](_0xcbcc03(0x181),_0x524d8f['params']['id'][_0xcbcc03(0x1af)]())['where'](_0xcbcc03(0x164)))[_0xcbcc03(0x17f)]('ContactId'))[_0xcbcc03(0x1af)](),db[_0xcbcc03(0x18f)]['query'](_0x4b195b);return[];})['then'](respondWithResult(_0x1ad0ae,null))['catch'](handleError(_0x1ad0ae,null));},exports[a176_0x4534aa(0x19d)]=function(_0x59ad7f,_0x4699cd){const _0x4b6226=a176_0x4534aa;return db['Campaign'][_0x4b6226(0x178)]({'where':{'id':_0x59ad7f['params']['id']}})[_0x4b6226(0x185)](handleEntityNotFound(_0x4699cd,null))[_0x4b6226(0x185)](function(_0x25e544){const _0x1ffb6a=_0x4b6226;let _0x4d37ce;if(_0x25e544)return _0x4d37ce=squel[_0x1ffb6a(0x19c)]()[_0x1ffb6a(0x1a4)](_0x1ffb6a(0x189))[_0x1ffb6a(0x1ae)](['phone',_0x1ffb6a(0x197),'ContactId',_0x1ffb6a(0x1b1),_0x1ffb6a(0x1b8),_0x1ffb6a(0x16e),'updatedAt'],squel[_0x1ffb6a(0x162)]()[_0x1ffb6a(0x19a)](_0x1ffb6a(0x183),_0x1ffb6a(0x167))[_0x1ffb6a(0x19a)](_0x1ffb6a(0x180),_0x1ffb6a(0x197))[_0x1ffb6a(0x19a)]('ANY_VALUE(ContactId)',_0x1ffb6a(0x17a))[_0x1ffb6a(0x19a)]('ANY_VALUE(ListId)',_0x1ffb6a(0x1b1))[_0x1ffb6a(0x19a)](_0x1ffb6a(0x1b0),_0x1ffb6a(0x1b8))[_0x1ffb6a(0x19a)](_0x1ffb6a(0x180),_0x1ffb6a(0x16e))[_0x1ffb6a(0x19a)](_0x1ffb6a(0x180),'updatedAt')[_0x1ffb6a(0x1b2)](_0x1ffb6a(0x19f))['where'](_0x1ffb6a(0x1c2),_0x59ad7f[_0x1ffb6a(0x1bd)]['id'][_0x1ffb6a(0x1af)]())[_0x1ffb6a(0x16f)]('state\x20=\x20?',_0x59ad7f[_0x1ffb6a(0x1a9)][_0x1ffb6a(0x1ba)][_0x1ffb6a(0x1af)]())[_0x1ffb6a(0x16f)]('calleridnum\x20IS\x20NOT\x20NULL')['where'](_0x1ffb6a(0x188),squel[_0x1ffb6a(0x162)]()['field'](_0x1ffb6a(0x167))[_0x1ffb6a(0x1b2)](_0x1ffb6a(0x189))[_0x1ffb6a(0x16f)](_0x1ffb6a(0x1c2),_0x59ad7f[_0x1ffb6a(0x1bd)]['id'][_0x1ffb6a(0x1af)]()))['where'](_0x1ffb6a(0x188),squel[_0x1ffb6a(0x162)]()[_0x1ffb6a(0x19a)](_0x1ffb6a(0x1a2))['from'](_0x1ffb6a(0x19f))[_0x1ffb6a(0x16f)]('CampaignId\x20=\x20?',_0x59ad7f[_0x1ffb6a(0x1bd)]['id'][_0x1ffb6a(0x1af)]())[_0x1ffb6a(0x16f)](_0x1ffb6a(0x164)))[_0x1ffb6a(0x17f)](_0x1ffb6a(0x17a)))[_0x1ffb6a(0x1af)](),db['sequelize'][_0x1ffb6a(0x182)](_0x4d37ce);return[];})[_0x4b6226(0x185)](respondWithResult(_0x4699cd,null))['catch'](handleError(_0x4699cd,null));},exports[a176_0x4534aa(0x173)]=function(_0x23e967,_0x2c4399){const _0x1d17af=a176_0x4534aa;return db[_0x1d17af(0x16c)][_0x1d17af(0x178)]({'where':{'VoiceQueueId':_0x23e967[_0x1d17af(0x1a9)][_0x1d17af(0x18b)],'CampaignId':_0x23e967[_0x1d17af(0x1a9)][_0x1d17af(0x1b8)],'ContactId':_0x23e967[_0x1d17af(0x1a9)]['ContactId']}})['then'](handleEntityNotFound(_0x2c4399,null))[_0x1d17af(0x185)](function(_0x262502){if(_0x262502)return _0x262502;return null;})[_0x1d17af(0x185)](respondWithResult(_0x2c4399,null))[_0x1d17af(0x198)](handleError(_0x2c4399,null));}; \ No newline at end of file +const a176_0x5a5b=['`state`\x20=\x2010\x20,\x201,\x20null','congestionContacts','describe','state\x20=\x204','insert','state\x20=\x20?','scheduledAt','field','COUNT','sort','../../config/logger','group','rawAttributes','ANY_VALUE(CampaignId)','`state`\x20=\x208,\x201,\x20null','createdAt','state','name','key','findOne','Campaign','send','ANY_VALUE(calleridnum)','updatedAt','CmHopper','moveContactsIvrCampaignHopperFinal','VoiceQueueId','squel','`state`\x20=\x200,\x201,\x20null','ListId','merge','`state`\x20=\x2011\x20,\x201,\x20null','where','stack','into','intersection','abandonedContacts','uniqueid','ANY_VALUE(ContactId)','filter','attributes','../../components/parsers/qs','type','model','dropContacts','count','reCallContacts','map','cm_hopper','answeringMachine','noAnswerContacts','`state`\x20=\x2022,\x201,\x20null','pick','includeAll','update','fieldName','busyContacts','toString','VIRTUAL','ANY_VALUE(VoiceQueueId)','nolimit','CampaignId','findAll','order','filters','json','calleridnum','calleridnum\x20NOT\x20IN\x20(?)','query','phone','offset','params','ContactId','fromQuery','countContactsQueueCampaignHopperFinal','rows','options','NOW()','select','then','api','fields','limit','sequelize','CampaignId\x20=\x20?','include','status','noSuchContacts','VoiceQueueId\x20=\x20?','calleridnum\x20IS\x20NOT\x20NULL','ANY_VALUE(ListId)','catch','Content-Range','body','CmHopperFinal','`state`\x20=\x203,\x201,\x20null','undefined','from','`state`\x20=\x205,\x201,\x20null','VoiceQueue','keys','`state`\x20=\x2019,\x201,\x20null','cm_hopper_final','error','sendStatus','length'];(function(_0x2fdf17,_0x2ffc47){const _0x5a5bf0=function(_0x28c153){while(--_0x28c153){_0x2fdf17['push'](_0x2fdf17['shift']());}};_0x5a5bf0(++_0x2ffc47);}(a176_0x5a5b,0x74));const a176_0x28c1=function(_0x2fdf17,_0x2ffc47){_0x2fdf17=_0x2fdf17-0x8e;let _0x5a5bf0=a176_0x5a5b[_0x2fdf17];return _0x5a5bf0;};const a176_0x52c964=a176_0x28c1;'use strict';const _=require('lodash'),squel=require(a176_0x52c964(0x9f)),qs=require(a176_0x52c964(0xad)),logger=require(a176_0x52c964(0x8e))(a176_0x52c964(0xd4)),{db}=require('../../mysqldb'),{Op,fn,literal}=require(a176_0x52c964(0xd7));function respondWithResult(_0x470d87,_0x2e365a){return _0x2e365a=_0x2e365a||0xc8,function(_0x17d849){const _0x1ec074=a176_0x28c1;if(_0x17d849)return _0x470d87['status'](_0x2e365a)[_0x1ec074(0xc5)](_0x17d849);};}function respondWithFilteredResult(_0x47077e,_0x4b3737){return function(_0x4ff175){const _0x50e880=a176_0x28c1;if(_0x4ff175){const _0x1509a5=_0x4ff175[_0x50e880(0xb1)],_0x171d56=_0x4b3737[_0x50e880(0xca)];let _0x1ba792=_0x4b3737[_0x50e880(0xca)]+_0x4b3737[_0x50e880(0xd6)],_0x3adcda;return _0x1ba792>=_0x1509a5?(_0x1ba792=_0x1509a5,_0x3adcda=0xc8):_0x3adcda=0xce,_0x47077e[_0x50e880(0xda)](_0x3adcda),_0x47077e['set'](_0x50e880(0xe0),_0x171d56+'-'+_0x1ba792+'/'+_0x1509a5)['json'](_0x4ff175);}return null;};}function saveUpdates(_0x480f8f){return function(_0x420fbb){const _0x4cdaeb=a176_0x28c1;if(_0x420fbb)return _0x420fbb['update'](_0x480f8f)[_0x4cdaeb(0xd3)](function(_0x5b1d68){return _0x5b1d68;});return null;};}function handleEntityNotFound(_0x2c0159){return function(_0x47cd7f){const _0x234b48=a176_0x28c1;return!_0x47cd7f&&_0x2c0159[_0x234b48(0xec)](0x194),_0x47cd7f;};}function handleError(_0x1c0f42,_0x19b8f2){return _0x19b8f2=_0x19b8f2||0x1f4,function(_0x52f58d){const _0x5c1e96=a176_0x28c1;logger[_0x5c1e96(0xeb)](_0x52f58d[_0x5c1e96(0xa5)]),_0x52f58d['name']&&delete _0x52f58d[_0x5c1e96(0x95)],_0x1c0f42[_0x5c1e96(0xda)](_0x19b8f2)[_0x5c1e96(0x99)](_0x52f58d);};}exports['index']=function(_0x2339b8,_0x535e91){const _0x283d0b=a176_0x52c964;let _0x1a5752={};const _0x42bb6d={},_0x10383f={'count':0x0,'rows':[]},_0x3aaf27=_[_0x283d0b(0xb3)](db['CmHopperFinal'][_0x283d0b(0x90)],function(_0x4387e3){const _0x517ec7=_0x283d0b;return{'name':_0x4387e3[_0x517ec7(0xbb)],'type':_0x4387e3['type'][_0x517ec7(0x96)]};});_0x42bb6d[_0x283d0b(0xaf)]=_[_0x283d0b(0xb3)](_0x3aaf27,'name'),_0x42bb6d['query']=_[_0x283d0b(0xe8)](_0x2339b8[_0x283d0b(0xc8)]),_0x42bb6d['filters']=_[_0x283d0b(0xa7)](_0x42bb6d[_0x283d0b(0xaf)],_0x42bb6d['query']),_0x1a5752[_0x283d0b(0xac)]=_[_0x283d0b(0xa7)](_0x42bb6d[_0x283d0b(0xaf)],qs[_0x283d0b(0xd5)](_0x2339b8[_0x283d0b(0xc8)][_0x283d0b(0xd5)])),_0x1a5752[_0x283d0b(0xac)]=_0x1a5752['attributes'][_0x283d0b(0xed)]?_0x1a5752['attributes']:_0x42bb6d['model'];typeof _0x2339b8[_0x283d0b(0xc8)][_0x283d0b(0xc0)]===_0x283d0b(0xe4)&&(_0x1a5752['limit']=qs[_0x283d0b(0xd6)](_0x2339b8[_0x283d0b(0xc8)][_0x283d0b(0xd6)]),_0x1a5752[_0x283d0b(0xca)]=qs[_0x283d0b(0xca)](_0x2339b8[_0x283d0b(0xc8)][_0x283d0b(0xca)]));_0x1a5752[_0x283d0b(0xc3)]=qs[_0x283d0b(0xf7)](_0x2339b8['query']['sort']),_0x1a5752['where']=qs['filters'](_[_0x283d0b(0xb8)](_0x2339b8[_0x283d0b(0xc8)],_0x42bb6d[_0x283d0b(0xc4)]),_0x3aaf27);_0x2339b8[_0x283d0b(0xc8)][_0x283d0b(0xab)]&&(_0x1a5752['where']=_['merge'](_0x1a5752['where'],{[Op['or']]:_[_0x283d0b(0xb3)](_0x3aaf27,function(_0x173ca0){const _0x48557b=_0x283d0b;if(_0x173ca0[_0x48557b(0xae)]!==_0x48557b(0xbe)){const _0x20dadc={};return _0x20dadc[_0x173ca0['name']]={[Op['like']]:'%'+_0x2339b8['query']['filter']+'%'},_0x20dadc;}})}));_0x1a5752=_[_0x283d0b(0xa2)]({},_0x1a5752,_0x2339b8[_0x283d0b(0xd0)]);const _0x12f36a={'where':_0x1a5752[_0x283d0b(0xa4)]};return db[_0x283d0b(0xe2)][_0x283d0b(0xb1)](_0x12f36a)[_0x283d0b(0xd3)](function(_0x5f1514){const _0x24895e=_0x283d0b;return _0x10383f[_0x24895e(0xb1)]=_0x5f1514,_0x2339b8[_0x24895e(0xc8)][_0x24895e(0xb9)]&&(_0x1a5752['include']=[{'all':!![]}]),db['CmHopperFinal'][_0x24895e(0xc2)](_0x1a5752);})[_0x283d0b(0xd3)](function(_0x35e6e2){const _0x9f0203=_0x283d0b;return _0x10383f[_0x9f0203(0xcf)]=_0x35e6e2,_0x10383f;})[_0x283d0b(0xd3)](respondWithFilteredResult(_0x535e91,_0x1a5752))[_0x283d0b(0xdf)](handleError(_0x535e91,null));},exports['show']=function(_0x26b094,_0x5cb717){const _0x1b246d=a176_0x52c964;let _0x58f8a5={'raw':!![],'where':{'id':_0x26b094['params']['id']}};const _0x5bc9dd={};return _0x5bc9dd[_0x1b246d(0xaf)]=_[_0x1b246d(0xe8)](db[_0x1b246d(0xe2)][_0x1b246d(0x90)]),_0x5bc9dd['query']=_['keys'](_0x26b094[_0x1b246d(0xc8)]),_0x5bc9dd['filters']=_[_0x1b246d(0xa7)](_0x5bc9dd['model'],_0x5bc9dd[_0x1b246d(0xc8)]),_0x58f8a5[_0x1b246d(0xac)]=_[_0x1b246d(0xa7)](_0x5bc9dd[_0x1b246d(0xaf)],qs[_0x1b246d(0xd5)](_0x26b094[_0x1b246d(0xc8)][_0x1b246d(0xd5)])),_0x58f8a5['attributes']=_0x58f8a5[_0x1b246d(0xac)][_0x1b246d(0xed)]?_0x58f8a5[_0x1b246d(0xac)]:_0x5bc9dd[_0x1b246d(0xaf)],_0x26b094['query'][_0x1b246d(0xb9)]&&(_0x58f8a5[_0x1b246d(0xd9)]=[{'all':!![]}]),_0x58f8a5=_[_0x1b246d(0xa2)]({},_0x58f8a5,_0x26b094[_0x1b246d(0xd0)]),db['CmHopperFinal'][_0x1b246d(0x97)](_0x58f8a5)[_0x1b246d(0xd3)](handleEntityNotFound(_0x5cb717,null))['then'](respondWithResult(_0x5cb717,null))['catch'](handleError(_0x5cb717,null));},exports[a176_0x52c964(0xf0)]=function(_0x1f2889,_0x1ae5fb){const _0x477312=a176_0x52c964;return db[_0x477312(0xe2)][_0x477312(0xf0)]()[_0x477312(0xd3)](respondWithResult(_0x1ae5fb,null))[_0x477312(0xdf)](handleError(_0x1ae5fb,null));},exports[a176_0x52c964(0xba)]=function(_0xa71d29,_0x4920a4){const _0x536c5b=a176_0x52c964;return _0xa71d29['body'][_0x536c5b(0xa9)]&&delete _0xa71d29[_0x536c5b(0xe1)][_0x536c5b(0xa9)],db[_0x536c5b(0xe2)]['findOne']({'where':{'uniqueid':_0xa71d29['params']['id']}})[_0x536c5b(0xd3)](handleEntityNotFound(_0x4920a4,null))[_0x536c5b(0xd3)](saveUpdates(_0xa71d29[_0x536c5b(0xe1)],null))[_0x536c5b(0xd3)](respondWithResult(_0x4920a4,null))[_0x536c5b(0xdf)](handleError(_0x4920a4,null));},exports[a176_0x52c964(0xce)]=function(_0x2e752b,_0x237397){const _0x2f2017=a176_0x52c964;return db['CmHopperFinal'][_0x2f2017(0xc2)]({'raw':![],'where':{'VoiceQueueId':_0x2e752b[_0x2f2017(0xcb)]['id']},'attributes':[[fn(_0x2f2017(0xf6),fn('IF',literal(_0x2f2017(0xa0)))),'noSuchContacts'],[fn(_0x2f2017(0xf6),fn('IF',literal(_0x2f2017(0xe3)))),_0x2f2017(0xb6)],[fn(_0x2f2017(0xf6),fn('IF',literal(_0x2f2017(0xe6)))),'busyContacts'],[fn(_0x2f2017(0xf6),fn('IF',literal('`state`\x20=\x208,\x201,\x20null'))),_0x2f2017(0xef)],[fn(_0x2f2017(0xf6),fn('IF',literal(_0x2f2017(0xee)))),'dropContacts'],[fn(_0x2f2017(0xf6),fn('IF',literal(_0x2f2017(0xa3)))),_0x2f2017(0xa8)],[fn(_0x2f2017(0xf6),fn('IF',literal('`state`\x20=\x2022,\x201,\x20null'))),_0x2f2017(0xb2)],[fn('COUNT',fn('IF',literal(_0x2f2017(0xe9)))),_0x2f2017(0xb5)]]})[_0x2f2017(0xd3)](handleEntityNotFound(_0x237397,null))[_0x2f2017(0xd3)](respondWithResult(_0x237397,null))['catch'](handleError(_0x237397,null));},exports['countContactsIvrCampaignHopperFinal']=function(_0x57e661,_0x4d3d26){const _0xc73364=a176_0x52c964;return db['CmHopperFinal']['findAll']({'raw':![],'where':{'CampaignId':_0x57e661[_0xc73364(0xcb)]['id']},'attributes':[[fn(_0xc73364(0xf6),fn('IF',literal(_0xc73364(0xa0)))),_0xc73364(0xdb)],[fn(_0xc73364(0xf6),fn('IF',literal(_0xc73364(0xe3)))),_0xc73364(0xb6)],[fn('COUNT',fn('IF',literal(_0xc73364(0xe6)))),_0xc73364(0xbc)],[fn(_0xc73364(0xf6),fn('IF',literal(_0xc73364(0x92)))),_0xc73364(0xef)],[fn(_0xc73364(0xf6),fn('IF',literal('`state`\x20=\x2010\x20,\x201,\x20null'))),_0xc73364(0xb0)],[fn(_0xc73364(0xf6),fn('IF',literal('`state`\x20=\x2011\x20,\x201,\x20null'))),_0xc73364(0xa8)],[fn(_0xc73364(0xf6),fn('IF',literal(_0xc73364(0xb7)))),_0xc73364(0xb2)],[fn('COUNT',fn('IF',literal(_0xc73364(0xe9)))),_0xc73364(0xb5)]]})[_0xc73364(0xd3)](handleEntityNotFound(_0x4d3d26,null))[_0xc73364(0xd3)](respondWithResult(_0x4d3d26,null))[_0xc73364(0xdf)](handleError(_0x4d3d26,null));},exports['moveContactsQueueCampaignHopperFinal']=function(_0xc84fe1,_0x96057a){const _0x4d893b=a176_0x52c964;return db[_0x4d893b(0xe7)][_0x4d893b(0x97)]({'where':{'id':_0xc84fe1[_0x4d893b(0xcb)]['id']}})['then'](handleEntityNotFound(_0x96057a,null))[_0x4d893b(0xd3)](function(_0x102cc9){const _0x3a6a26=_0x4d893b;let _0x31d050;if(_0x102cc9)return _0x31d050=squel[_0x3a6a26(0xf2)]()[_0x3a6a26(0xa6)](_0x3a6a26(0xb4))[_0x3a6a26(0xcd)]([_0x3a6a26(0xc9),_0x3a6a26(0xf4),_0x3a6a26(0xcc),_0x3a6a26(0xa1),'VoiceQueueId','createdAt',_0x3a6a26(0x9b)],squel[_0x3a6a26(0xd2)]()[_0x3a6a26(0xf5)](_0x3a6a26(0x9a),_0x3a6a26(0xc9))[_0x3a6a26(0xf5)](_0x3a6a26(0xd1),_0x3a6a26(0xf4))[_0x3a6a26(0xf5)](_0x3a6a26(0xaa),'ContactId')[_0x3a6a26(0xf5)]('ANY_VALUE(ListId)',_0x3a6a26(0xa1))[_0x3a6a26(0xf5)](_0x3a6a26(0xbf),_0x3a6a26(0x9e))['field'](_0x3a6a26(0xd1),_0x3a6a26(0x93))[_0x3a6a26(0xf5)]('NOW()',_0x3a6a26(0x9b))[_0x3a6a26(0xe5)](_0x3a6a26(0xea))[_0x3a6a26(0xa4)](_0x3a6a26(0xdc),_0xc84fe1[_0x3a6a26(0xcb)]['id'][_0x3a6a26(0xbd)]())[_0x3a6a26(0xa4)](_0x3a6a26(0xf3),_0xc84fe1[_0x3a6a26(0xe1)]['state'][_0x3a6a26(0xbd)]())[_0x3a6a26(0xa4)](_0x3a6a26(0xdd))[_0x3a6a26(0xa4)](_0x3a6a26(0xc7),squel[_0x3a6a26(0xd2)]()[_0x3a6a26(0xf5)](_0x3a6a26(0xc9))[_0x3a6a26(0xe5)](_0x3a6a26(0xb4))['where'](_0x3a6a26(0xdc),_0xc84fe1[_0x3a6a26(0xcb)]['id'][_0x3a6a26(0xbd)]()))['where']('calleridnum\x20NOT\x20IN\x20(?)',squel['select']()[_0x3a6a26(0xf5)](_0x3a6a26(0xc6))[_0x3a6a26(0xe5)](_0x3a6a26(0xea))['where'](_0x3a6a26(0xdc),_0xc84fe1['params']['id']['toString']())[_0x3a6a26(0xa4)](_0x3a6a26(0xf1)))[_0x3a6a26(0x8f)]('ContactId'))[_0x3a6a26(0xbd)](),db[_0x3a6a26(0xd7)][_0x3a6a26(0xc8)](_0x31d050);return[];})[_0x4d893b(0xd3)](respondWithResult(_0x96057a,null))[_0x4d893b(0xdf)](handleError(_0x96057a,null));},exports[a176_0x52c964(0x9d)]=function(_0xbaf140,_0x1d751c){const _0x1d1f9a=a176_0x52c964;return db[_0x1d1f9a(0x98)][_0x1d1f9a(0x97)]({'where':{'id':_0xbaf140[_0x1d1f9a(0xcb)]['id']}})[_0x1d1f9a(0xd3)](handleEntityNotFound(_0x1d751c,null))[_0x1d1f9a(0xd3)](function(_0x1fa6f2){const _0x4bab47=_0x1d1f9a;let _0xb59099;if(_0x1fa6f2)return _0xb59099=squel[_0x4bab47(0xf2)]()[_0x4bab47(0xa6)](_0x4bab47(0xb4))[_0x4bab47(0xcd)]([_0x4bab47(0xc9),_0x4bab47(0xf4),_0x4bab47(0xcc),_0x4bab47(0xa1),_0x4bab47(0xc1),'createdAt',_0x4bab47(0x9b)],squel[_0x4bab47(0xd2)]()[_0x4bab47(0xf5)](_0x4bab47(0x9a),_0x4bab47(0xc9))[_0x4bab47(0xf5)](_0x4bab47(0xd1),'scheduledAt')[_0x4bab47(0xf5)](_0x4bab47(0xaa),_0x4bab47(0xcc))[_0x4bab47(0xf5)](_0x4bab47(0xde),_0x4bab47(0xa1))[_0x4bab47(0xf5)](_0x4bab47(0x91),_0x4bab47(0xc1))[_0x4bab47(0xf5)](_0x4bab47(0xd1),_0x4bab47(0x93))[_0x4bab47(0xf5)](_0x4bab47(0xd1),_0x4bab47(0x9b))[_0x4bab47(0xe5)](_0x4bab47(0xea))[_0x4bab47(0xa4)](_0x4bab47(0xd8),_0xbaf140[_0x4bab47(0xcb)]['id'][_0x4bab47(0xbd)]())[_0x4bab47(0xa4)](_0x4bab47(0xf3),_0xbaf140[_0x4bab47(0xe1)][_0x4bab47(0x94)][_0x4bab47(0xbd)]())[_0x4bab47(0xa4)](_0x4bab47(0xdd))[_0x4bab47(0xa4)](_0x4bab47(0xc7),squel['select']()['field'](_0x4bab47(0xc9))[_0x4bab47(0xe5)](_0x4bab47(0xb4))['where'](_0x4bab47(0xd8),_0xbaf140[_0x4bab47(0xcb)]['id'][_0x4bab47(0xbd)]()))[_0x4bab47(0xa4)](_0x4bab47(0xc7),squel['select']()[_0x4bab47(0xf5)](_0x4bab47(0xc6))[_0x4bab47(0xe5)](_0x4bab47(0xea))[_0x4bab47(0xa4)](_0x4bab47(0xd8),_0xbaf140[_0x4bab47(0xcb)]['id'][_0x4bab47(0xbd)]())[_0x4bab47(0xa4)]('state\x20=\x204'))['group'](_0x4bab47(0xcc)))['toString'](),db[_0x4bab47(0xd7)][_0x4bab47(0xc8)](_0xb59099);return[];})[_0x1d1f9a(0xd3)](respondWithResult(_0x1d751c,null))[_0x1d1f9a(0xdf)](handleError(_0x1d751c,null));},exports['checkContactHopper']=function(_0x31ac9c,_0x3af04a){const _0x24f321=a176_0x52c964;return db[_0x24f321(0x9c)]['findOne']({'where':{'VoiceQueueId':_0x31ac9c[_0x24f321(0xe1)][_0x24f321(0x9e)],'CampaignId':_0x31ac9c[_0x24f321(0xe1)][_0x24f321(0xc1)],'ContactId':_0x31ac9c[_0x24f321(0xe1)][_0x24f321(0xcc)]}})[_0x24f321(0xd3)](handleEntityNotFound(_0x3af04a,null))[_0x24f321(0xd3)](function(_0xef962e){if(_0xef962e)return _0xef962e;return null;})['then'](respondWithResult(_0x3af04a,null))[_0x24f321(0xdf)](handleError(_0x3af04a,null));}; \ No newline at end of file diff --git a/server/api/cmHopperFinal/cmHopperFinal.model.js b/server/api/cmHopperFinal/cmHopperFinal.model.js index e0bc58c..2c117fa 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.model.js +++ b/server/api/cmHopperFinal/cmHopperFinal.model.js @@ -1 +1 @@ -const a177_0x21f6=['./cmHopperFinal.attributes','sequelize','init','./cmHopperFinal.options','exports','function'];(function(_0x3649a8,_0x15f684){const _0x21f653=function(_0x5d787c){while(--_0x5d787c){_0x3649a8['push'](_0x3649a8['shift']());}};_0x21f653(++_0x15f684);}(a177_0x21f6,0x87));const a177_0x5d78=function(_0x3649a8,_0x15f684){_0x3649a8=_0x3649a8-0x9c;let _0x21f653=a177_0x21f6[_0x3649a8];return _0x21f653;};const a177_0x385e3b=a177_0x5d78;'use strict';const {Model}=require(a177_0x385e3b(0xa0)),{attributes}=require(a177_0x385e3b(0x9f)),{options}=require(a177_0x385e3b(0x9c));class CmHopperFinal extends Model{}function init(_0x4b48a9,_0x28e06f){const _0x39a193=a177_0x385e3b,_0xb8e5b5=options(_0x4b48a9),_0x4157ab=typeof _0x28e06f===_0x39a193(0x9e)?_0x28e06f(_0xb8e5b5):_0xb8e5b5;return CmHopperFinal[_0x39a193(0xa1)](attributes,_0x4157ab),CmHopperFinal;}module['exports']['CmHopperFinal']=CmHopperFinal,module[a177_0x385e3b(0x9d)][a177_0x385e3b(0xa1)]=init; \ No newline at end of file +const a177_0xb2f5=['CmHopperFinal','./cmHopperFinal.attributes','sequelize','init','exports'];(function(_0x2b8f81,_0x475682){const _0xb2f500=function(_0x1b2574){while(--_0x1b2574){_0x2b8f81['push'](_0x2b8f81['shift']());}};_0xb2f500(++_0x475682);}(a177_0xb2f5,0x1ce));const a177_0x1b25=function(_0x2b8f81,_0x475682){_0x2b8f81=_0x2b8f81-0xa4;let _0xb2f500=a177_0xb2f5[_0x2b8f81];return _0xb2f500;};const a177_0x17dd40=a177_0x1b25;'use strict';const {Model}=require(a177_0x17dd40(0xa4)),{attributes}=require(a177_0x17dd40(0xa8)),{options}=require('./cmHopperFinal.options');class CmHopperFinal extends Model{}function init(_0x39e674,_0x43ef13){const _0x5d7961=a177_0x17dd40,_0x56a313=options(_0x39e674),_0x5e2ace=typeof _0x43ef13==='function'?_0x43ef13(_0x56a313):_0x56a313;return CmHopperFinal[_0x5d7961(0xa5)](attributes,_0x5e2ace),CmHopperFinal;}module[a177_0x17dd40(0xa6)][a177_0x17dd40(0xa7)]=CmHopperFinal,module[a177_0x17dd40(0xa6)][a177_0x17dd40(0xa5)]=init; \ No newline at end of file diff --git a/server/api/cmHopperFinal/cmHopperFinal.options.js b/server/api/cmHopperFinal/cmHopperFinal.options.js index aedc66e..32dd6a0 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.options.js +++ b/server/api/cmHopperFinal/cmHopperFinal.options.js @@ -1 +1 @@ -var a178_0x5218=['calleridnum','options','uniqueid'];(function(_0x26fe48,_0x519706){var _0x521864=function(_0x1d34b5){while(--_0x1d34b5){_0x26fe48['push'](_0x26fe48['shift']());}};_0x521864(++_0x519706);}(a178_0x5218,0x1e9));var a178_0x1d34=function(_0x26fe48,_0x519706){_0x26fe48=_0x26fe48-0x11f;var _0x521864=a178_0x5218[_0x26fe48];return _0x521864;};var a178_0x32cb30=a178_0x1d34;function options(_0x2d832a){var _0x190232=a178_0x1d34;return{'sequelize':_0x2d832a,'tableName':'cm_hopper_final','paranoid':![],'indexes':[{'name':_0x190232(0x11f),'fields':[_0x190232(0x11f)]},{'name':_0x190232(0x121),'fields':[_0x190232(0x121)]}],'timestamps':!![]};}module['exports'][a178_0x32cb30(0x120)]=options; \ No newline at end of file +var a178_0x40b1=['options','exports','calleridnum','uniqueid'];(function(_0xbd168a,_0x50ad54){var _0x40b18e=function(_0x4efe58){while(--_0x4efe58){_0xbd168a['push'](_0xbd168a['shift']());}};_0x40b18e(++_0x50ad54);}(a178_0x40b1,0x1e2));var a178_0x4efe=function(_0xbd168a,_0x50ad54){_0xbd168a=_0xbd168a-0xa1;var _0x40b18e=a178_0x40b1[_0xbd168a];return _0x40b18e;};var a178_0x183cc8=a178_0x4efe;function options(_0x24cf96){var _0x485e47=a178_0x4efe;return{'sequelize':_0x24cf96,'tableName':'cm_hopper_final','paranoid':![],'indexes':[{'name':_0x485e47(0xa1),'fields':['calleridnum']},{'name':_0x485e47(0xa2),'fields':[_0x485e47(0xa2)]}],'timestamps':!![]};}module[a178_0x183cc8(0xa4)][a178_0x183cc8(0xa3)]=options; \ No newline at end of file diff --git a/server/api/cmHopperFinal/cmHopperFinal.rpc.js b/server/api/cmHopperFinal/cmHopperFinal.rpc.js index ccb2bb4..daa0468 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.rpc.js +++ b/server/api/cmHopperFinal/cmHopperFinal.rpc.js @@ -1 +1 @@ -const a179_0xd333=['stringify','options','CmHopperFinal','error','CreateCmHopperFinal','body','rpc','debug','info','raw','catch','then','create','message','../../mysqldb'];(function(_0x4416c6,_0x4ba079){const _0xd3331d=function(_0x179cab){while(--_0x179cab){_0x4416c6['push'](_0x4416c6['shift']());}};_0xd3331d(++_0x4ba079);}(a179_0xd333,0x1b3));const a179_0x179c=function(_0x4416c6,_0x4ba079){_0x4416c6=_0x4416c6-0x14e;let _0xd3331d=a179_0xd333[_0x4416c6];return _0xd3331d;};const a179_0x342a13=a179_0x179c;'use strict';const db=require(a179_0x342a13(0x15c))['db'],logger=require('../../config/logger')(a179_0x342a13(0x154));exports[a179_0x342a13(0x152)]=function(_0x114ead){const _0x2ca8ed=this;return new Promise(function(_0x4929e0,_0x27ee75){const _0x542667=a179_0x179c;return db[_0x542667(0x150)][_0x542667(0x15a)](_0x114ead[_0x542667(0x153)],{'raw':_0x114ead[_0x542667(0x14f)]?_0x114ead[_0x542667(0x14f)][_0x542667(0x157)]===undefined?!![]:![]:!![]})[_0x542667(0x159)](function(_0x1a9b4b){const _0x9b7cb3=_0x542667;logger[_0x9b7cb3(0x156)]('CreateCmHopperFinal',_0x114ead),logger[_0x9b7cb3(0x155)](_0x9b7cb3(0x152),_0x114ead,JSON[_0x9b7cb3(0x14e)](_0x1a9b4b)),_0x4929e0(_0x1a9b4b);})[_0x542667(0x158)](function(_0x3c3972){const _0x1d83d0=_0x542667;logger[_0x1d83d0(0x151)](_0x1d83d0(0x152),_0x3c3972[_0x1d83d0(0x15b)],_0x114ead),_0x27ee75(_0x2ca8ed[_0x1d83d0(0x151)](0x1f4,_0x3c3972[_0x1d83d0(0x15b)]));});});}; \ No newline at end of file +const a179_0x3290=['message','rpc','raw','info','../../config/logger','options','error','debug','stringify','CreateCmHopperFinal','then','CmHopperFinal','catch'];(function(_0x1ab18b,_0x3f0731){const _0x32906e=function(_0x3c7f73){while(--_0x3c7f73){_0x1ab18b['push'](_0x1ab18b['shift']());}};_0x32906e(++_0x3f0731);}(a179_0x3290,0x9f));const a179_0x3c7f=function(_0x1ab18b,_0x3f0731){_0x1ab18b=_0x1ab18b-0x1e2;let _0x32906e=a179_0x3290[_0x1ab18b];return _0x32906e;};const a179_0x6104b1=a179_0x3c7f;'use strict';const db=require('../../mysqldb')['db'],logger=require(a179_0x6104b1(0x1e3))(a179_0x6104b1(0x1ed));exports[a179_0x6104b1(0x1e8)]=function(_0x5cdd94){const _0xacf4c8=this;return new Promise(function(_0x465c9e,_0x5aa7c0){const _0x5413ee=a179_0x3c7f;return db[_0x5413ee(0x1ea)]['create'](_0x5cdd94['body'],{'raw':_0x5cdd94[_0x5413ee(0x1e4)]?_0x5cdd94[_0x5413ee(0x1e4)][_0x5413ee(0x1ee)]===undefined?!![]:![]:!![]})[_0x5413ee(0x1e9)](function(_0x27ee01){const _0x3a8888=_0x5413ee;logger[_0x3a8888(0x1e2)](_0x3a8888(0x1e8),_0x5cdd94),logger[_0x3a8888(0x1e6)](_0x3a8888(0x1e8),_0x5cdd94,JSON[_0x3a8888(0x1e7)](_0x27ee01)),_0x465c9e(_0x27ee01);})[_0x5413ee(0x1eb)](function(_0x521687){const _0x148f65=_0x5413ee;logger[_0x148f65(0x1e5)](_0x148f65(0x1e8),_0x521687[_0x148f65(0x1ec)],_0x5cdd94),_0x5aa7c0(_0xacf4c8['error'](0x1f4,_0x521687[_0x148f65(0x1ec)]));});});}; \ No newline at end of file diff --git a/server/api/cmHopperFinal/index.js b/server/api/cmHopperFinal/index.js index c278d86..b092b7e 100644 --- a/server/api/cmHopperFinal/index.js +++ b/server/api/cmHopperFinal/index.js @@ -1 +1 @@ -const a180_0x9549=['/campaign/countAttributes/:id','Router','countContactsIvrCampaignHopperFinal','exports','moveContactsIvrCampaignHopperFinal','/describe','/voice/queue/moveContacts/:id','get','isAuthenticated','post','express','show','./cmHopperFinal.controller','/:id','/voice/queue/countAttributes/:id','countContactsQueueCampaignHopperFinal','moveContactsQueueCampaignHopperFinal','put','update'];(function(_0x31c77b,_0x19f926){const _0x95491b=function(_0x3b39f0){while(--_0x3b39f0){_0x31c77b['push'](_0x31c77b['shift']());}};_0x95491b(++_0x19f926);}(a180_0x9549,0x169));const a180_0x3b39=function(_0x31c77b,_0x19f926){_0x31c77b=_0x31c77b-0x13a;let _0x95491b=a180_0x9549[_0x31c77b];return _0x95491b;};const a180_0x150b0f=a180_0x3b39;'use strict';const express=require(a180_0x150b0f(0x144)),router=express[a180_0x150b0f(0x13b)](),auth=require('../../components/auth/service'),controller=require(a180_0x150b0f(0x146));router[a180_0x150b0f(0x141)]('/',auth[a180_0x150b0f(0x142)](),controller['index']),router['get'](a180_0x150b0f(0x13f),auth['isAuthenticated'](),controller['describe']),router[a180_0x150b0f(0x141)](a180_0x150b0f(0x147),auth['isAuthenticated'](),controller[a180_0x150b0f(0x145)]),router[a180_0x150b0f(0x141)](a180_0x150b0f(0x148),auth[a180_0x150b0f(0x142)](),controller[a180_0x150b0f(0x149)]),router[a180_0x150b0f(0x141)](a180_0x150b0f(0x13a),auth[a180_0x150b0f(0x142)](),controller[a180_0x150b0f(0x13c)]),router[a180_0x150b0f(0x143)](a180_0x150b0f(0x140),auth[a180_0x150b0f(0x142)](),controller[a180_0x150b0f(0x14a)]),router[a180_0x150b0f(0x143)]('/voice/campaign/moveContacts/:id',auth[a180_0x150b0f(0x142)](),controller[a180_0x150b0f(0x13e)]),router[a180_0x150b0f(0x143)]('/checkContactHopper',auth[a180_0x150b0f(0x142)](),controller['checkContactHopper']),router[a180_0x150b0f(0x14b)]('/:id',auth[a180_0x150b0f(0x142)](),controller[a180_0x150b0f(0x14c)]),module[a180_0x150b0f(0x13d)]=router; \ No newline at end of file +const a180_0x3883=['post','checkContactHopper','countContactsIvrCampaignHopperFinal','/campaign/countAttributes/:id','/voice/queue/countAttributes/:id','show','countContactsQueueCampaignHopperFinal','moveContactsIvrCampaignHopperFinal','../../components/auth/service','/describe','/voice/campaign/moveContacts/:id','./cmHopperFinal.controller','express','Router','get','put','moveContactsQueueCampaignHopperFinal','index','update','isAuthenticated'];(function(_0x1d0d8f,_0x1bbed3){const _0x38836c=function(_0x109e1f){while(--_0x109e1f){_0x1d0d8f['push'](_0x1d0d8f['shift']());}};_0x38836c(++_0x1bbed3);}(a180_0x3883,0x7b));const a180_0x109e=function(_0x1d0d8f,_0x1bbed3){_0x1d0d8f=_0x1d0d8f-0xe0;let _0x38836c=a180_0x3883[_0x1d0d8f];return _0x38836c;};const a180_0x3692ab=a180_0x109e;'use strict';const express=require(a180_0x3692ab(0xe9)),router=express[a180_0x3692ab(0xea)](),auth=require(a180_0x3692ab(0xe5)),controller=require(a180_0x3692ab(0xe8));router[a180_0x3692ab(0xeb)]('/',auth['isAuthenticated'](),controller[a180_0x3692ab(0xee)]),router['get'](a180_0x3692ab(0xe6),auth[a180_0x3692ab(0xf0)](),controller['describe']),router[a180_0x3692ab(0xeb)]('/:id',auth[a180_0x3692ab(0xf0)](),controller[a180_0x3692ab(0xe2)]),router['get'](a180_0x3692ab(0xe1),auth['isAuthenticated'](),controller[a180_0x3692ab(0xe3)]),router[a180_0x3692ab(0xeb)](a180_0x3692ab(0xe0),auth['isAuthenticated'](),controller[a180_0x3692ab(0xf3)]),router[a180_0x3692ab(0xf1)]('/voice/queue/moveContacts/:id',auth[a180_0x3692ab(0xf0)](),controller[a180_0x3692ab(0xed)]),router[a180_0x3692ab(0xf1)](a180_0x3692ab(0xe7),auth[a180_0x3692ab(0xf0)](),controller[a180_0x3692ab(0xe4)]),router[a180_0x3692ab(0xf1)]('/checkContactHopper',auth[a180_0x3692ab(0xf0)](),controller[a180_0x3692ab(0xf2)]),router[a180_0x3692ab(0xec)]('/:id',auth[a180_0x3692ab(0xf0)](),controller[a180_0x3692ab(0xef)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/cmHopperHistory/cmHopperHistory.attributes.js b/server/api/cmHopperHistory/cmHopperHistory.attributes.js index 024c834..eecfb1e 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.attributes.js +++ b/server/api/cmHopperHistory/cmHopperHistory.attributes.js @@ -1 +1 @@ -const a181_0x3914=['INTEGER','STRING','exports','BOOLEAN','sequelize','DATE'];(function(_0x2b852f,_0x31705a){const _0x391427=function(_0x208c2e){while(--_0x208c2e){_0x2b852f['push'](_0x2b852f['shift']());}};_0x391427(++_0x31705a);}(a181_0x3914,0x177));const a181_0x208c=function(_0x2b852f,_0x31705a){_0x2b852f=_0x2b852f-0xd4;let _0x391427=a181_0x3914[_0x2b852f];return _0x391427;};const a181_0x1d8f4d=a181_0x208c;'use strict';const {DataTypes}=require(a181_0x1d8f4d(0xd5)),attributes={'state':{'type':DataTypes[a181_0x1d8f4d(0xd7)]({'length':0x2})},'statedesc':{'type':DataTypes['STRING']},'scheduledat':{'type':DataTypes[a181_0x1d8f4d(0xd6)]},'countbusyretry':{'type':DataTypes[a181_0x1d8f4d(0xd7)],'defaultValue':0x0},'countcongestionretry':{'type':DataTypes[a181_0x1d8f4d(0xd7)],'defaultValue':0x0},'countnoanswerretry':{'type':DataTypes[a181_0x1d8f4d(0xd7)],'defaultValue':0x0},'countglobal':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'uniqueid':{'type':DataTypes[a181_0x1d8f4d(0xd8)]},'originatecalleridnum':{'type':DataTypes[a181_0x1d8f4d(0xd8)]},'originatecalleridname':{'type':DataTypes['STRING']},'calleridnum':{'type':DataTypes[a181_0x1d8f4d(0xd8)]},'calleridname':{'type':DataTypes[a181_0x1d8f4d(0xd8)]},'starttime':{'type':DataTypes[a181_0x1d8f4d(0xd6)]},'responsetime':{'type':DataTypes[a181_0x1d8f4d(0xd6)]},'answertime':{'type':DataTypes[a181_0x1d8f4d(0xd6)]},'droptime':{'type':DataTypes[a181_0x1d8f4d(0xd6)]},'endtime':{'type':DataTypes[a181_0x1d8f4d(0xd6)]},'ringtime':{'type':DataTypes[a181_0x1d8f4d(0xd7)],'defaultValue':0x0},'holdtime':{'type':DataTypes[a181_0x1d8f4d(0xd7)],'defaultValue':0x0},'talktime':{'type':DataTypes[a181_0x1d8f4d(0xd7)],'defaultValue':0x0},'followuptime':{'type':DataTypes[a181_0x1d8f4d(0xd7)],'defaultValue':0x0},'dropreason':{'type':DataTypes[a181_0x1d8f4d(0xd8)]},'campaign':{'type':DataTypes[a181_0x1d8f4d(0xd8)]},'campaigntype':{'type':DataTypes[a181_0x1d8f4d(0xd8)]},'membername':{'type':DataTypes[a181_0x1d8f4d(0xd8)]},'reason':{'type':DataTypes['STRING']},'amd':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'fax':{'type':DataTypes[a181_0x1d8f4d(0xd4)],'defaultValue':![]},'callback':{'type':DataTypes[a181_0x1d8f4d(0xd4)],'defaultValue':![]},'callbackuniqueid':{'type':DataTypes[a181_0x1d8f4d(0xd8)],'defaultValue':null},'callbackat':{'type':DataTypes[a181_0x1d8f4d(0xd6)]},'recallme':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'editedat':{'type':DataTypes[a181_0x1d8f4d(0xd6)]},'edited':{'type':DataTypes[a181_0x1d8f4d(0xd4)],'defaultValue':![]},'countnosuchnumberretry':{'type':DataTypes[a181_0x1d8f4d(0xd7)],'defaultValue':0x0},'countdropretry':{'type':DataTypes[a181_0x1d8f4d(0xd7)],'defaultValue':0x0},'countabandonedretry':{'type':DataTypes[a181_0x1d8f4d(0xd7)],'defaultValue':0x0},'countmachineretry':{'type':DataTypes[a181_0x1d8f4d(0xd7)],'defaultValue':0x0},'countagentrejectretry':{'type':DataTypes[a181_0x1d8f4d(0xd7)],'defaultValue':0x0}};module[a181_0x1d8f4d(0xd9)]['attributes']=attributes; \ No newline at end of file +const a181_0x1bdd=['INTEGER','STRING','DATE','BOOLEAN','exports','attributes'];(function(_0x1b8bf5,_0x42fc3a){const _0x1bdd1e=function(_0xafda93){while(--_0xafda93){_0x1b8bf5['push'](_0x1b8bf5['shift']());}};_0x1bdd1e(++_0x42fc3a);}(a181_0x1bdd,0x150));const a181_0xafda=function(_0x1b8bf5,_0x42fc3a){_0x1b8bf5=_0x1b8bf5-0x157;let _0x1bdd1e=a181_0x1bdd[_0x1b8bf5];return _0x1bdd1e;};const a181_0x415bac=a181_0xafda;'use strict';const {DataTypes}=require('sequelize'),attributes={'state':{'type':DataTypes[a181_0x415bac(0x157)]({'length':0x2})},'statedesc':{'type':DataTypes[a181_0x415bac(0x158)]},'scheduledat':{'type':DataTypes[a181_0x415bac(0x159)]},'countbusyretry':{'type':DataTypes[a181_0x415bac(0x157)],'defaultValue':0x0},'countcongestionretry':{'type':DataTypes[a181_0x415bac(0x157)],'defaultValue':0x0},'countnoanswerretry':{'type':DataTypes[a181_0x415bac(0x157)],'defaultValue':0x0},'countglobal':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'uniqueid':{'type':DataTypes['STRING']},'originatecalleridnum':{'type':DataTypes[a181_0x415bac(0x158)]},'originatecalleridname':{'type':DataTypes['STRING']},'calleridnum':{'type':DataTypes['STRING']},'calleridname':{'type':DataTypes[a181_0x415bac(0x158)]},'starttime':{'type':DataTypes['DATE']},'responsetime':{'type':DataTypes['DATE']},'answertime':{'type':DataTypes[a181_0x415bac(0x159)]},'droptime':{'type':DataTypes[a181_0x415bac(0x159)]},'endtime':{'type':DataTypes[a181_0x415bac(0x159)]},'ringtime':{'type':DataTypes[a181_0x415bac(0x157)],'defaultValue':0x0},'holdtime':{'type':DataTypes[a181_0x415bac(0x157)],'defaultValue':0x0},'talktime':{'type':DataTypes[a181_0x415bac(0x157)],'defaultValue':0x0},'followuptime':{'type':DataTypes[a181_0x415bac(0x157)],'defaultValue':0x0},'dropreason':{'type':DataTypes[a181_0x415bac(0x158)]},'campaign':{'type':DataTypes[a181_0x415bac(0x158)]},'campaigntype':{'type':DataTypes[a181_0x415bac(0x158)]},'membername':{'type':DataTypes[a181_0x415bac(0x158)]},'reason':{'type':DataTypes[a181_0x415bac(0x158)]},'amd':{'type':DataTypes[a181_0x415bac(0x15a)],'defaultValue':![]},'fax':{'type':DataTypes[a181_0x415bac(0x15a)],'defaultValue':![]},'callback':{'type':DataTypes[a181_0x415bac(0x15a)],'defaultValue':![]},'callbackuniqueid':{'type':DataTypes[a181_0x415bac(0x158)],'defaultValue':null},'callbackat':{'type':DataTypes[a181_0x415bac(0x159)]},'recallme':{'type':DataTypes[a181_0x415bac(0x15a)],'defaultValue':![]},'editedat':{'type':DataTypes['DATE']},'edited':{'type':DataTypes[a181_0x415bac(0x15a)],'defaultValue':![]},'countnosuchnumberretry':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'countdropretry':{'type':DataTypes[a181_0x415bac(0x157)],'defaultValue':0x0},'countabandonedretry':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'countmachineretry':{'type':DataTypes[a181_0x415bac(0x157)],'defaultValue':0x0},'countagentrejectretry':{'type':DataTypes['INTEGER'],'defaultValue':0x0}};module[a181_0x415bac(0x15b)][a181_0x415bac(0x15c)]=attributes; \ No newline at end of file diff --git a/server/api/cmHopperHistory/cmHopperHistory.controller.js b/server/api/cmHopperHistory/cmHopperHistory.controller.js index ab57255..7f00621 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.controller.js +++ b/server/api/cmHopperHistory/cmHopperHistory.controller.js @@ -1 +1 @@ -const a182_0x5ca2=['attributes','sort','merge','json','then','fields','offset','findOne','rows','map','error','like','body','status','count','../../components/parsers/qs','filters','options','../../config/logger','lodash','Content-Range','show','rawAttributes','sequelize','CmHopperHistory','nolimit','set','include','length','describe','includeAll','order','send','model','index','key','api','name','update','keys','uniqueid','stack','intersection','limit','VIRTUAL','findAll','query','fieldName','sendStatus','type','where','catch','filter'];(function(_0x189d89,_0x9e99be){const _0x5ca2f1=function(_0x3f6cfa){while(--_0x3f6cfa){_0x189d89['push'](_0x189d89['shift']());}};_0x5ca2f1(++_0x9e99be);}(a182_0x5ca2,0x1ea));const a182_0x3f6c=function(_0x189d89,_0x9e99be){_0x189d89=_0x189d89-0x11a;let _0x5ca2f1=a182_0x5ca2[_0x189d89];return _0x5ca2f1;};const a182_0x1cb8b5=a182_0x3f6c;'use strict';const _=require(a182_0x1cb8b5(0x120)),qs=require(a182_0x1cb8b5(0x11c)),logger=require(a182_0x1cb8b5(0x11f))(a182_0x1cb8b5(0x131)),{db}=require('../../mysqldb'),{Op}=require(a182_0x1cb8b5(0x124));function respondWithResult(_0xc0bb52,_0x141d8d){return _0x141d8d=_0x141d8d||0xc8,function(_0x3bd40f){const _0x35f0bb=a182_0x3f6c;if(_0x3bd40f)return _0xc0bb52['status'](_0x141d8d)[_0x35f0bb(0x145)](_0x3bd40f);};}function respondWithFilteredResult(_0x5982e7,_0x3fa47d){return function(_0x329cb4){const _0x4aca98=a182_0x3f6c;if(_0x329cb4){const _0x4d3d2b=_0x329cb4[_0x4aca98(0x11b)],_0x39f037=_0x3fa47d[_0x4aca98(0x148)];let _0x2d8e7b=_0x3fa47d[_0x4aca98(0x148)]+_0x3fa47d['limit'],_0x5839c6;return _0x2d8e7b>=_0x4d3d2b?(_0x2d8e7b=_0x4d3d2b,_0x5839c6=0xc8):_0x5839c6=0xce,_0x5982e7[_0x4aca98(0x11a)](_0x5839c6),_0x5982e7[_0x4aca98(0x127)](_0x4aca98(0x121),_0x39f037+'-'+_0x2d8e7b+'/'+_0x4d3d2b)[_0x4aca98(0x145)](_0x329cb4);}return null;};}function saveUpdates(_0x4ca1f2){return function(_0x1b0a52){const _0x2544a2=a182_0x3f6c;if(_0x1b0a52)return _0x1b0a52[_0x2544a2(0x133)](_0x4ca1f2)[_0x2544a2(0x146)](function(_0x41b92d){return _0x41b92d;});return null;};}function handleEntityNotFound(_0xc9c0cd){return function(_0x254901){const _0x208933=a182_0x3f6c;return!_0x254901&&_0xc9c0cd[_0x208933(0x13d)](0x194),_0x254901;};}function handleError(_0x9c8185,_0x492022){return _0x492022=_0x492022||0x1f4,function(_0x59f943){const _0x1ea4d9=a182_0x3f6c;logger[_0x1ea4d9(0x14c)](_0x59f943[_0x1ea4d9(0x136)]),_0x59f943[_0x1ea4d9(0x132)]&&delete _0x59f943[_0x1ea4d9(0x132)],_0x9c8185['status'](_0x492022)[_0x1ea4d9(0x12d)](_0x59f943);};}exports[a182_0x1cb8b5(0x12f)]=function(_0x4affd5,_0x188b8e){const _0x1fac90=a182_0x1cb8b5;let _0x91e885={};const _0x3e981e={},_0x37cb0e={'count':0x0,'rows':[]},_0x2d9640=_[_0x1fac90(0x14b)](db['CmHopperHistory'][_0x1fac90(0x123)],function(_0x4cd410){const _0x242536=_0x1fac90;return{'name':_0x4cd410[_0x242536(0x13c)],'type':_0x4cd410[_0x242536(0x13e)][_0x242536(0x130)]};});_0x3e981e[_0x1fac90(0x12e)]=_[_0x1fac90(0x14b)](_0x2d9640,_0x1fac90(0x132)),_0x3e981e['query']=_['keys'](_0x4affd5[_0x1fac90(0x13b)]),_0x3e981e['filters']=_[_0x1fac90(0x137)](_0x3e981e[_0x1fac90(0x12e)],_0x3e981e[_0x1fac90(0x13b)]),_0x91e885[_0x1fac90(0x142)]=_['intersection'](_0x3e981e[_0x1fac90(0x12e)],qs['fields'](_0x4affd5[_0x1fac90(0x13b)]['fields'])),_0x91e885[_0x1fac90(0x142)]=_0x91e885[_0x1fac90(0x142)]['length']?_0x91e885[_0x1fac90(0x142)]:_0x3e981e[_0x1fac90(0x12e)];typeof _0x4affd5[_0x1fac90(0x13b)][_0x1fac90(0x126)]==='undefined'&&(_0x91e885[_0x1fac90(0x138)]=qs['limit'](_0x4affd5[_0x1fac90(0x13b)]['limit']),_0x91e885[_0x1fac90(0x148)]=qs[_0x1fac90(0x148)](_0x4affd5[_0x1fac90(0x13b)][_0x1fac90(0x148)]));_0x91e885[_0x1fac90(0x12c)]=qs[_0x1fac90(0x143)](_0x4affd5[_0x1fac90(0x13b)][_0x1fac90(0x143)]),_0x91e885[_0x1fac90(0x13f)]=qs[_0x1fac90(0x11d)](_['pick'](_0x4affd5[_0x1fac90(0x13b)],_0x3e981e[_0x1fac90(0x11d)]),_0x2d9640);_0x4affd5[_0x1fac90(0x13b)]['filter']&&(_0x91e885[_0x1fac90(0x13f)]=_[_0x1fac90(0x144)](_0x91e885['where'],{[Op['or']]:_[_0x1fac90(0x14b)](_0x2d9640,function(_0x50ced0){const _0x3cb06b=_0x1fac90;if(_0x50ced0[_0x3cb06b(0x13e)]!==_0x3cb06b(0x139)){const _0x3ee84c={};return _0x3ee84c[_0x50ced0['name']]={[Op[_0x3cb06b(0x14d)]]:'%'+_0x4affd5[_0x3cb06b(0x13b)][_0x3cb06b(0x141)]+'%'},_0x3ee84c;}})}));_0x91e885=_['merge']({},_0x91e885,_0x4affd5[_0x1fac90(0x11e)]);const _0x5d55ef={'where':_0x91e885['where']};return db[_0x1fac90(0x125)][_0x1fac90(0x11b)](_0x5d55ef)[_0x1fac90(0x146)](function(_0x5adec7){const _0x188ead=_0x1fac90;return _0x37cb0e['count']=_0x5adec7,_0x4affd5[_0x188ead(0x13b)][_0x188ead(0x12b)]&&(_0x91e885[_0x188ead(0x128)]=[{'all':!![]}]),db[_0x188ead(0x125)][_0x188ead(0x13a)](_0x91e885);})[_0x1fac90(0x146)](function(_0x1ae44c){const _0x50ac2d=_0x1fac90;return _0x37cb0e[_0x50ac2d(0x14a)]=_0x1ae44c,_0x37cb0e;})[_0x1fac90(0x146)](respondWithFilteredResult(_0x188b8e,_0x91e885))[_0x1fac90(0x140)](handleError(_0x188b8e,null));},exports[a182_0x1cb8b5(0x122)]=function(_0x15d7e0,_0x5eb28f){const _0x1c1ca6=a182_0x1cb8b5;let _0xfd6ab2={'raw':!![],'where':{'id':_0x15d7e0['params']['id']}};const _0x21eaff={};return _0x21eaff[_0x1c1ca6(0x12e)]=_['keys'](db[_0x1c1ca6(0x125)][_0x1c1ca6(0x123)]),_0x21eaff[_0x1c1ca6(0x13b)]=_[_0x1c1ca6(0x134)](_0x15d7e0[_0x1c1ca6(0x13b)]),_0x21eaff[_0x1c1ca6(0x11d)]=_[_0x1c1ca6(0x137)](_0x21eaff['model'],_0x21eaff['query']),_0xfd6ab2[_0x1c1ca6(0x142)]=_[_0x1c1ca6(0x137)](_0x21eaff['model'],qs[_0x1c1ca6(0x147)](_0x15d7e0['query'][_0x1c1ca6(0x147)])),_0xfd6ab2[_0x1c1ca6(0x142)]=_0xfd6ab2['attributes'][_0x1c1ca6(0x129)]?_0xfd6ab2[_0x1c1ca6(0x142)]:_0x21eaff[_0x1c1ca6(0x12e)],_0x15d7e0[_0x1c1ca6(0x13b)][_0x1c1ca6(0x12b)]&&(_0xfd6ab2['include']=[{'all':!![]}]),_0xfd6ab2=_[_0x1c1ca6(0x144)]({},_0xfd6ab2,_0x15d7e0['options']),db[_0x1c1ca6(0x125)][_0x1c1ca6(0x149)](_0xfd6ab2)[_0x1c1ca6(0x146)](handleEntityNotFound(_0x5eb28f,null))[_0x1c1ca6(0x146)](respondWithResult(_0x5eb28f,null))[_0x1c1ca6(0x140)](handleError(_0x5eb28f,null));},exports['create']=function(_0x34e5e0,_0x32f298){const _0x27c3d1=a182_0x1cb8b5;return db['CmHopperHistory']['create'](_0x34e5e0[_0x27c3d1(0x14e)],{})[_0x27c3d1(0x146)](respondWithResult(_0x32f298,0xc9))[_0x27c3d1(0x140)](handleError(_0x32f298,null));},exports[a182_0x1cb8b5(0x12a)]=function(_0x21831c,_0x48b313){const _0x41791c=a182_0x1cb8b5;return db[_0x41791c(0x125)][_0x41791c(0x12a)]()['then'](respondWithResult(_0x48b313,null))[_0x41791c(0x140)](handleError(_0x48b313,null));},exports[a182_0x1cb8b5(0x133)]=function(_0x195f18,_0x52c9bf){const _0x90eb1b=a182_0x1cb8b5;return _0x195f18[_0x90eb1b(0x14e)][_0x90eb1b(0x135)]&&delete _0x195f18[_0x90eb1b(0x14e)][_0x90eb1b(0x135)],db[_0x90eb1b(0x125)][_0x90eb1b(0x149)]({'where':{'uniqueid':_0x195f18['params']['id']}})[_0x90eb1b(0x146)](handleEntityNotFound(_0x52c9bf,null))[_0x90eb1b(0x146)](saveUpdates(_0x195f18[_0x90eb1b(0x14e)],null))[_0x90eb1b(0x146)](respondWithResult(_0x52c9bf,null))[_0x90eb1b(0x140)](handleError(_0x52c9bf,null));}; \ No newline at end of file +const a182_0x507f=['then','CmHopperHistory','filter','type','attributes','show','../../components/parsers/qs','intersection','index','VIRTUAL','name','sendStatus','json','where','describe','fieldName','count','params','uniqueid','findOne','offset','keys','filters','nolimit','model','catch','limit','rawAttributes','merge','like','include','rows','map','includeAll','findAll','options','status','update','length','query','body','api','sequelize','fields','undefined','Content-Range','stack','pick','sort','../../mysqldb','create'];(function(_0x24db9e,_0x4bb7de){const _0x507f52=function(_0x11e793){while(--_0x11e793){_0x24db9e['push'](_0x24db9e['shift']());}};_0x507f52(++_0x4bb7de);}(a182_0x507f,0xfd));const a182_0x11e7=function(_0x24db9e,_0x4bb7de){_0x24db9e=_0x24db9e-0x1eb;let _0x507f52=a182_0x507f[_0x24db9e];return _0x507f52;};const a182_0x16ff7b=a182_0x11e7;'use strict';const _=require('lodash'),qs=require(a182_0x16ff7b(0x1f3)),logger=require('../../config/logger')(a182_0x16ff7b(0x216)),{db}=require(a182_0x16ff7b(0x1eb)),{Op}=require(a182_0x16ff7b(0x217));function respondWithResult(_0x3b208d,_0x2bfd2b){return _0x2bfd2b=_0x2bfd2b||0xc8,function(_0x3fd7c3){const _0x2eff58=a182_0x11e7;if(_0x3fd7c3)return _0x3b208d['status'](_0x2bfd2b)[_0x2eff58(0x1f9)](_0x3fd7c3);};}function respondWithFilteredResult(_0x2c4df9,_0x5cccfa){return function(_0x50212b){const _0x26afac=a182_0x11e7;if(_0x50212b){const _0x3006f5=_0x50212b['count'],_0x45397e=_0x5cccfa[_0x26afac(0x201)];let _0x371c78=_0x5cccfa[_0x26afac(0x201)]+_0x5cccfa[_0x26afac(0x207)],_0x23d6b4;return _0x371c78>=_0x3006f5?(_0x371c78=_0x3006f5,_0x23d6b4=0xc8):_0x23d6b4=0xce,_0x2c4df9[_0x26afac(0x211)](_0x23d6b4),_0x2c4df9['set'](_0x26afac(0x21a),_0x45397e+'-'+_0x371c78+'/'+_0x3006f5)[_0x26afac(0x1f9)](_0x50212b);}return null;};}function saveUpdates(_0x5a992a){return function(_0x489304){const _0x186b9f=a182_0x11e7;if(_0x489304)return _0x489304[_0x186b9f(0x212)](_0x5a992a)[_0x186b9f(0x1ed)](function(_0xcbafa8){return _0xcbafa8;});return null;};}function handleEntityNotFound(_0x5847e3){return function(_0x5359f4){const _0x6acfc8=a182_0x11e7;return!_0x5359f4&&_0x5847e3[_0x6acfc8(0x1f8)](0x194),_0x5359f4;};}function handleError(_0x568341,_0x565d38){return _0x565d38=_0x565d38||0x1f4,function(_0x57884f){const _0x56ffe2=a182_0x11e7;logger['error'](_0x57884f[_0x56ffe2(0x21b)]),_0x57884f[_0x56ffe2(0x1f7)]&&delete _0x57884f[_0x56ffe2(0x1f7)],_0x568341[_0x56ffe2(0x211)](_0x565d38)['send'](_0x57884f);};}exports[a182_0x16ff7b(0x1f5)]=function(_0x1bf228,_0x320250){const _0x5f5932=a182_0x16ff7b;let _0x3cfa9b={};const _0x44538f={},_0x2c3c12={'count':0x0,'rows':[]},_0x12e3e0=_[_0x5f5932(0x20d)](db[_0x5f5932(0x1ee)][_0x5f5932(0x208)],function(_0x4fa45d){const _0x5981d1=_0x5f5932;return{'name':_0x4fa45d[_0x5981d1(0x1fc)],'type':_0x4fa45d['type']['key']};});_0x44538f[_0x5f5932(0x205)]=_[_0x5f5932(0x20d)](_0x12e3e0,_0x5f5932(0x1f7)),_0x44538f[_0x5f5932(0x214)]=_[_0x5f5932(0x202)](_0x1bf228[_0x5f5932(0x214)]),_0x44538f[_0x5f5932(0x203)]=_[_0x5f5932(0x1f4)](_0x44538f['model'],_0x44538f['query']),_0x3cfa9b['attributes']=_['intersection'](_0x44538f['model'],qs[_0x5f5932(0x218)](_0x1bf228['query'][_0x5f5932(0x218)])),_0x3cfa9b[_0x5f5932(0x1f1)]=_0x3cfa9b[_0x5f5932(0x1f1)]['length']?_0x3cfa9b[_0x5f5932(0x1f1)]:_0x44538f[_0x5f5932(0x205)];typeof _0x1bf228[_0x5f5932(0x214)][_0x5f5932(0x204)]===_0x5f5932(0x219)&&(_0x3cfa9b[_0x5f5932(0x207)]=qs[_0x5f5932(0x207)](_0x1bf228[_0x5f5932(0x214)]['limit']),_0x3cfa9b[_0x5f5932(0x201)]=qs[_0x5f5932(0x201)](_0x1bf228[_0x5f5932(0x214)][_0x5f5932(0x201)]));_0x3cfa9b['order']=qs[_0x5f5932(0x21d)](_0x1bf228[_0x5f5932(0x214)][_0x5f5932(0x21d)]),_0x3cfa9b[_0x5f5932(0x1fa)]=qs['filters'](_[_0x5f5932(0x21c)](_0x1bf228[_0x5f5932(0x214)],_0x44538f[_0x5f5932(0x203)]),_0x12e3e0);_0x1bf228['query'][_0x5f5932(0x1ef)]&&(_0x3cfa9b[_0x5f5932(0x1fa)]=_[_0x5f5932(0x209)](_0x3cfa9b[_0x5f5932(0x1fa)],{[Op['or']]:_[_0x5f5932(0x20d)](_0x12e3e0,function(_0x226a9f){const _0x377ae5=_0x5f5932;if(_0x226a9f[_0x377ae5(0x1f0)]!==_0x377ae5(0x1f6)){const _0x5f330f={};return _0x5f330f[_0x226a9f[_0x377ae5(0x1f7)]]={[Op[_0x377ae5(0x20a)]]:'%'+_0x1bf228[_0x377ae5(0x214)][_0x377ae5(0x1ef)]+'%'},_0x5f330f;}})}));_0x3cfa9b=_[_0x5f5932(0x209)]({},_0x3cfa9b,_0x1bf228[_0x5f5932(0x210)]);const _0x58bcac={'where':_0x3cfa9b[_0x5f5932(0x1fa)]};return db[_0x5f5932(0x1ee)][_0x5f5932(0x1fd)](_0x58bcac)[_0x5f5932(0x1ed)](function(_0x4e63d2){const _0x14a224=_0x5f5932;return _0x2c3c12['count']=_0x4e63d2,_0x1bf228['query'][_0x14a224(0x20e)]&&(_0x3cfa9b['include']=[{'all':!![]}]),db[_0x14a224(0x1ee)][_0x14a224(0x20f)](_0x3cfa9b);})['then'](function(_0x32c6b1){const _0x2d3543=_0x5f5932;return _0x2c3c12[_0x2d3543(0x20c)]=_0x32c6b1,_0x2c3c12;})['then'](respondWithFilteredResult(_0x320250,_0x3cfa9b))['catch'](handleError(_0x320250,null));},exports[a182_0x16ff7b(0x1f2)]=function(_0x2bf1ae,_0x103fe1){const _0x3e5fb1=a182_0x16ff7b;let _0x54da71={'raw':!![],'where':{'id':_0x2bf1ae[_0x3e5fb1(0x1fe)]['id']}};const _0x13ae8f={};return _0x13ae8f[_0x3e5fb1(0x205)]=_[_0x3e5fb1(0x202)](db['CmHopperHistory'][_0x3e5fb1(0x208)]),_0x13ae8f[_0x3e5fb1(0x214)]=_[_0x3e5fb1(0x202)](_0x2bf1ae[_0x3e5fb1(0x214)]),_0x13ae8f[_0x3e5fb1(0x203)]=_[_0x3e5fb1(0x1f4)](_0x13ae8f[_0x3e5fb1(0x205)],_0x13ae8f['query']),_0x54da71[_0x3e5fb1(0x1f1)]=_[_0x3e5fb1(0x1f4)](_0x13ae8f[_0x3e5fb1(0x205)],qs['fields'](_0x2bf1ae['query'][_0x3e5fb1(0x218)])),_0x54da71[_0x3e5fb1(0x1f1)]=_0x54da71[_0x3e5fb1(0x1f1)][_0x3e5fb1(0x213)]?_0x54da71[_0x3e5fb1(0x1f1)]:_0x13ae8f[_0x3e5fb1(0x205)],_0x2bf1ae[_0x3e5fb1(0x214)]['includeAll']&&(_0x54da71[_0x3e5fb1(0x20b)]=[{'all':!![]}]),_0x54da71=_[_0x3e5fb1(0x209)]({},_0x54da71,_0x2bf1ae[_0x3e5fb1(0x210)]),db[_0x3e5fb1(0x1ee)][_0x3e5fb1(0x200)](_0x54da71)[_0x3e5fb1(0x1ed)](handleEntityNotFound(_0x103fe1,null))['then'](respondWithResult(_0x103fe1,null))['catch'](handleError(_0x103fe1,null));},exports['create']=function(_0x499579,_0x2bec97){const _0x1d260a=a182_0x16ff7b;return db[_0x1d260a(0x1ee)][_0x1d260a(0x1ec)](_0x499579[_0x1d260a(0x215)],{})['then'](respondWithResult(_0x2bec97,0xc9))[_0x1d260a(0x206)](handleError(_0x2bec97,null));},exports[a182_0x16ff7b(0x1fb)]=function(_0x33c2e4,_0x33a48d){const _0x1e591e=a182_0x16ff7b;return db[_0x1e591e(0x1ee)][_0x1e591e(0x1fb)]()[_0x1e591e(0x1ed)](respondWithResult(_0x33a48d,null))[_0x1e591e(0x206)](handleError(_0x33a48d,null));},exports[a182_0x16ff7b(0x212)]=function(_0x14a73d,_0x40ba33){const _0x50239c=a182_0x16ff7b;return _0x14a73d[_0x50239c(0x215)][_0x50239c(0x1ff)]&&delete _0x14a73d[_0x50239c(0x215)][_0x50239c(0x1ff)],db[_0x50239c(0x1ee)][_0x50239c(0x200)]({'where':{'uniqueid':_0x14a73d[_0x50239c(0x1fe)]['id']}})[_0x50239c(0x1ed)](handleEntityNotFound(_0x40ba33,null))['then'](saveUpdates(_0x14a73d[_0x50239c(0x215)],null))[_0x50239c(0x1ed)](respondWithResult(_0x40ba33,null))['catch'](handleError(_0x40ba33,null));}; \ No newline at end of file diff --git a/server/api/cmHopperHistory/cmHopperHistory.model.js b/server/api/cmHopperHistory/cmHopperHistory.model.js index 6f85205..04acd85 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.model.js +++ b/server/api/cmHopperHistory/cmHopperHistory.model.js @@ -1 +1 @@ -const a183_0xe08b=['./cmHopperHistory.options','init','./cmHopperHistory.attributes','function','exports'];(function(_0x3036f8,_0x49be90){const _0xe08b7b=function(_0x5d06f4){while(--_0x5d06f4){_0x3036f8['push'](_0x3036f8['shift']());}};_0xe08b7b(++_0x49be90);}(a183_0xe08b,0xde));const a183_0x5d06=function(_0x3036f8,_0x49be90){_0x3036f8=_0x3036f8-0x15e;let _0xe08b7b=a183_0xe08b[_0x3036f8];return _0xe08b7b;};const a183_0x5143a4=a183_0x5d06;'use strict';const {Model}=require('sequelize'),{attributes}=require(a183_0x5143a4(0x15e)),{options}=require(a183_0x5143a4(0x161));class CmHopperHistory extends Model{}function init(_0x102858,_0x1d3ccf){const _0x57c73f=a183_0x5143a4,_0x31b493=options(_0x102858),_0x317450=typeof _0x1d3ccf===_0x57c73f(0x15f)?_0x1d3ccf(_0x31b493):_0x31b493;return CmHopperHistory['init'](attributes,_0x317450),CmHopperHistory;}module[a183_0x5143a4(0x160)]['CmHopperHistory']=CmHopperHistory,module[a183_0x5143a4(0x160)][a183_0x5143a4(0x162)]=init; \ No newline at end of file +const a183_0x3da6=['exports','./cmHopperHistory.attributes','init','CmHopperHistory','sequelize'];(function(_0x1bbd36,_0x3254ff){const _0x3da6dc=function(_0x16e383){while(--_0x16e383){_0x1bbd36['push'](_0x1bbd36['shift']());}};_0x3da6dc(++_0x3254ff);}(a183_0x3da6,0x134));const a183_0x16e3=function(_0x1bbd36,_0x3254ff){_0x1bbd36=_0x1bbd36-0x1b2;let _0x3da6dc=a183_0x3da6[_0x1bbd36];return _0x3da6dc;};const a183_0x1637da=a183_0x16e3;'use strict';const {Model}=require(a183_0x1637da(0x1b3)),{attributes}=require(a183_0x1637da(0x1b5)),{options}=require('./cmHopperHistory.options');class CmHopperHistory extends Model{}function init(_0x795a66,_0x499db1){const _0x9e8d02=a183_0x1637da,_0x4cb497=options(_0x795a66),_0x5c6c20=typeof _0x499db1==='function'?_0x499db1(_0x4cb497):_0x4cb497;return CmHopperHistory[_0x9e8d02(0x1b6)](attributes,_0x5c6c20),CmHopperHistory;}module[a183_0x1637da(0x1b4)][a183_0x1637da(0x1b2)]=CmHopperHistory,module[a183_0x1637da(0x1b4)][a183_0x1637da(0x1b6)]=init; \ No newline at end of file diff --git a/server/api/cmHopperHistory/cmHopperHistory.options.js b/server/api/cmHopperHistory/cmHopperHistory.options.js index 657f894..0a1b176 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.options.js +++ b/server/api/cmHopperHistory/cmHopperHistory.options.js @@ -1 +1 @@ -var a184_0x2533=['exports','uniqueid','cm_hopper_history','endtime'];(function(_0xc37e7c,_0x1a8594){var _0x2533d8=function(_0x507699){while(--_0x507699){_0xc37e7c['push'](_0xc37e7c['shift']());}};_0x2533d8(++_0x1a8594);}(a184_0x2533,0x197));var a184_0x5076=function(_0xc37e7c,_0x1a8594){_0xc37e7c=_0xc37e7c-0x8e;var _0x2533d8=a184_0x2533[_0xc37e7c];return _0x2533d8;};var a184_0x1fb07f=a184_0x5076;function options(_0x216ff5){var _0x44d070=a184_0x5076;return{'sequelize':_0x216ff5,'tableName':_0x44d070(0x91),'paranoid':![],'indexes':[{'name':'endtime','fields':[_0x44d070(0x8e)]},{'name':_0x44d070(0x90),'fields':[_0x44d070(0x90)]}],'timestamps':!![]};}module[a184_0x1fb07f(0x8f)]['options']=options; \ No newline at end of file +var a184_0x1f37=['exports','endtime','uniqueid','options'];(function(_0x1703b5,_0x1ed3da){var _0x1f373c=function(_0x32b655){while(--_0x32b655){_0x1703b5['push'](_0x1703b5['shift']());}};_0x1f373c(++_0x1ed3da);}(a184_0x1f37,0x79));var a184_0x32b6=function(_0x1703b5,_0x1ed3da){_0x1703b5=_0x1703b5-0x1ba;var _0x1f373c=a184_0x1f37[_0x1703b5];return _0x1f373c;};var a184_0x1dc673=a184_0x32b6;function options(_0x3471a3){var _0x893821=a184_0x32b6;return{'sequelize':_0x3471a3,'tableName':'cm_hopper_history','paranoid':![],'indexes':[{'name':_0x893821(0x1ba),'fields':['endtime']},{'name':_0x893821(0x1bb),'fields':[_0x893821(0x1bb)]}],'timestamps':!![]};}module[a184_0x1dc673(0x1bd)][a184_0x1dc673(0x1bc)]=options; \ No newline at end of file diff --git a/server/api/cmHopperHistory/cmHopperHistory.rpc.js b/server/api/cmHopperHistory/cmHopperHistory.rpc.js index 4c06a36..5ef5c28 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.rpc.js +++ b/server/api/cmHopperHistory/cmHopperHistory.rpc.js @@ -1 +1 @@ -const a185_0x309e=['`state`\x20=\x2014,\x201,\x20null','`state`\x20=\x2011,\x201,\x20null','outboundNoAnswerCallsDay','`state`\x20=\x2018,\x201,\x20null','predictiveIntervalAnsweredCalls','campaign','outboundUnknownCallsDay','outboundDropCallsDayTimeout','error','`state`\x20=\x2010,\x201,\x20null','outboundNoSuchCallsDay','catch','findAll','predictiveIntervalDroppedCallsTimeout','`state`\x20=\x204,\x201,\x20null','outboundDropCallsDayCallersExit','CreateCmHopperHistory','name','ivrAnswerCallsDay','raw','then','sequelize','options','body','where','`state`\x20=\x2020,\x201,\x20null','CmHopperHistory','GetVoiceQueueHopperHistory','outboundRejectCallsDay','predictiveIntervalAvgTalktime','`state`\x20=\x2011\x20,\x201,\x20null','AVG','outboundOriginateFailureCallsDay','AvgHandleTime','debug','../../mysqldb','predictiveIntervalAvgHoldtime','outboundAnswerCallsDay','rpc','GetCampaignHopperHistory','stringify','info','message','`state`\x20=\x2016,\x201,\x20null','outboundBusyCallsDay','`state`\x20=\x2010\x20,\x201,\x20null','COUNT','outboundBlacklistCallsDay'];(function(_0x29fbe4,_0x255065){const _0x309ee5=function(_0x3de546){while(--_0x3de546){_0x29fbe4['push'](_0x29fbe4['shift']());}};_0x309ee5(++_0x255065);}(a185_0x309e,0x1eb));const a185_0x3de5=function(_0x29fbe4,_0x255065){_0x29fbe4=_0x29fbe4-0x19e;let _0x309ee5=a185_0x309e[_0x29fbe4];return _0x309ee5;};const a185_0x37f05c=a185_0x3de5;'use strict';const db=require(a185_0x37f05c(0x1b6))['db'],{fn,literal,col}=require(a185_0x37f05c(0x1a8)),logger=require('../../config/logger')(a185_0x37f05c(0x1b9));exports[a185_0x37f05c(0x1a3)]=function(_0x3f8c24){const _0x31c1c0=this;return new Promise(function(_0x630304,_0x321b1f){const _0x33b6fc=a185_0x3de5;return db[_0x33b6fc(0x1ad)]['create'](_0x3f8c24[_0x33b6fc(0x1aa)],{'raw':_0x3f8c24['options']?_0x3f8c24[_0x33b6fc(0x1a9)]['raw']===undefined?!![]:![]:!![]})[_0x33b6fc(0x1a7)](function(_0x56e2e8){const _0x19f113=_0x33b6fc;logger[_0x19f113(0x1bc)](_0x19f113(0x1a3),_0x3f8c24),logger[_0x19f113(0x1b5)](_0x19f113(0x1a3),_0x3f8c24,JSON[_0x19f113(0x1bb)](_0x56e2e8)),_0x630304(_0x56e2e8);})['catch'](function(_0xc08139){const _0x9c81b5=_0x33b6fc;logger[_0x9c81b5(0x1cb)]('CreateCmHopperHistory',_0xc08139[_0x9c81b5(0x1bd)],_0x3f8c24),_0x321b1f(_0x31c1c0[_0x9c81b5(0x1cb)](0x1f4,_0xc08139[_0x9c81b5(0x1bd)]));});});},exports[a185_0x37f05c(0x1b4)]=function(_0x1fb37d){const _0x445aa8=this;return new Promise(function(_0x21e2e0,_0x4fa156){const _0x49db2f=a185_0x3de5;return db[_0x49db2f(0x1ad)][_0x49db2f(0x19f)]({'raw':_0x1fb37d['options']?_0x1fb37d[_0x49db2f(0x1a9)][_0x49db2f(0x1a6)]===undefined?!![]:![]:!![],'where':_0x1fb37d[_0x49db2f(0x1a9)]?_0x1fb37d[_0x49db2f(0x1a9)]['where']||null:null,'attributes':[[fn(_0x49db2f(0x1c1),col('id')),'predictiveIntervalTotalCalls'],[fn(_0x49db2f(0x1c1),fn('IF',literal(_0x49db2f(0x1a1)))),_0x49db2f(0x1c7)],[fn(_0x49db2f(0x1c1),fn('IF',literal(_0x49db2f(0x1cc)))),_0x49db2f(0x1a0)],[fn('COUNT',fn('IF',literal(_0x49db2f(0x1c4)))),'predictiveIntervalDroppedCallsCallersExit'],[fn(_0x49db2f(0x1b2),fn('IF',literal('`state`\x20=\x204,\x20`holdtime`,\x20null'))),_0x49db2f(0x1b7)],[fn(_0x49db2f(0x1b2),fn('IF',literal('`state`\x20=\x204,\x20`talktime`,\x20null'))),_0x49db2f(0x1b0)]]})[_0x49db2f(0x1a7)](function(_0x58fdc5){const _0x3a3ff2=_0x49db2f;logger[_0x3a3ff2(0x1bc)](_0x3a3ff2(0x1b4),_0x1fb37d),logger[_0x3a3ff2(0x1b5)](_0x3a3ff2(0x1b4),_0x1fb37d,JSON[_0x3a3ff2(0x1bb)](_0x58fdc5)),_0x21e2e0(_0x58fdc5);})[_0x49db2f(0x19e)](function(_0x5495de){const _0x14c760=_0x49db2f;logger[_0x14c760(0x1cb)](_0x14c760(0x1b4),_0x5495de[_0x14c760(0x1bd)],_0x1fb37d),_0x4fa156(_0x445aa8[_0x14c760(0x1cb)](0x1f4,_0x5495de[_0x14c760(0x1bd)]));});});},exports[a185_0x37f05c(0x1ae)]=function(_0x564980){const _0xbdbe4b=this;return new Promise(function(_0x526512,_0x2c33ea){const _0x21d90f=a185_0x3de5;return db[_0x21d90f(0x1ad)][_0x21d90f(0x19f)]({'raw':_0x564980[_0x21d90f(0x1a9)]?_0x564980[_0x21d90f(0x1a9)][_0x21d90f(0x1a6)]===undefined?!![]:![]:!![],'where':_0x564980[_0x21d90f(0x1a9)]?_0x564980[_0x21d90f(0x1a9)]['where']||null:null,'attributes':[['campaign',_0x21d90f(0x1a4)],[fn(_0x21d90f(0x1c1),fn('IF',literal('`state`\x20=\x200,\x201,\x20null'))),_0x21d90f(0x1cd)],[fn(_0x21d90f(0x1c1),fn('IF',literal('`state`\x20=\x203,\x201,\x20null'))),_0x21d90f(0x1c5)],[fn(_0x21d90f(0x1c1),fn('IF',literal(_0x21d90f(0x1a1)))),_0x21d90f(0x1b8)],[fn(_0x21d90f(0x1c1),fn('IF',literal('`state`\x20=\x205,\x201,\x20null'))),_0x21d90f(0x1bf)],[fn(_0x21d90f(0x1c1),fn('IF',literal('`state`\x20=\x208,\x201,\x20null'))),'outboundCongestionCallsDay'],[fn(_0x21d90f(0x1c1),fn('IF',literal(_0x21d90f(0x1c0)))),_0x21d90f(0x1ca)],[fn(_0x21d90f(0x1c1),fn('IF',literal(_0x21d90f(0x1b1)))),_0x21d90f(0x1a2)],[fn(_0x21d90f(0x1c1),fn('IF',literal('`state`\x20=\x2012,\x201,\x20null'))),_0x21d90f(0x1c9)],[fn('COUNT',fn('IF',literal('`state`\x20=\x2013,\x201,\x20null'))),_0x21d90f(0x1c2)],[fn(_0x21d90f(0x1c1),fn('IF',literal(_0x21d90f(0x1c3)))),_0x21d90f(0x1b3)],[fn(_0x21d90f(0x1c1),fn('IF',literal(_0x21d90f(0x1c6)))),_0x21d90f(0x1af)],[fn(_0x21d90f(0x1c1),fn('IF',literal(_0x21d90f(0x1be)))),'outboundAnswerAgiCallsDay'],[fn(_0x21d90f(0x1c1),fn('IF',literal(_0x21d90f(0x1ac)))),'outboundRejectCallsDay'],[fn(_0x21d90f(0x1c1),fn('IF',literal('`state`\x20=\x2022\x20or\x20`state`\x20=\x2023,\x201,\x20null'))),'outboundReCallsDay']],'group':[_0x21d90f(0x1c8)]})[_0x21d90f(0x1a7)](function(_0x210777){const _0x568a24=_0x21d90f;logger[_0x568a24(0x1bc)](_0x568a24(0x1ae),_0x564980),logger[_0x568a24(0x1b5)](_0x568a24(0x1ae),_0x564980,JSON[_0x568a24(0x1bb)](_0x210777)),_0x526512(_0x210777);})[_0x21d90f(0x19e)](function(_0x41640a){const _0x3bb48d=_0x21d90f;logger[_0x3bb48d(0x1cb)](_0x3bb48d(0x1ae),_0x41640a[_0x3bb48d(0x1bd)],_0x564980),_0x2c33ea(_0xbdbe4b[_0x3bb48d(0x1cb)](0x1f4,_0x41640a[_0x3bb48d(0x1bd)]));});});},exports['GetCampaignHopperHistory']=function(_0xdf5921){const _0x4eb92e=this;return new Promise(function(_0x5b096e,_0x13f27b){const _0x466514=a185_0x3de5;return db['CmHopperHistory'][_0x466514(0x19f)]({'raw':_0xdf5921[_0x466514(0x1a9)]?_0xdf5921[_0x466514(0x1a9)][_0x466514(0x1a6)]===undefined?!![]:![]:!![],'where':_0xdf5921['options']?_0xdf5921[_0x466514(0x1a9)][_0x466514(0x1ab)]||null:null,'attributes':[['campaign',_0x466514(0x1a4)],[fn(_0x466514(0x1c1),col('id')),'ivrTotalCallsDays'],[fn(_0x466514(0x1c1),fn('IF',literal(_0x466514(0x1a1)))),_0x466514(0x1a5)]],'group':[_0x466514(0x1c8)]})[_0x466514(0x1a7)](function(_0x2373d1){const _0x172005=_0x466514;logger['info'](_0x172005(0x1ba),_0xdf5921),logger[_0x172005(0x1b5)](_0x172005(0x1ba),_0xdf5921,JSON[_0x172005(0x1bb)](_0x2373d1)),_0x5b096e(_0x2373d1);})['catch'](function(_0xff92f7){const _0x32eade=_0x466514;logger['error']('GetCampaignHopperHistory',_0xff92f7[_0x32eade(0x1bd)],_0xdf5921),_0x13f27b(_0x4eb92e[_0x32eade(0x1cb)](0x1f4,_0xff92f7['message']));});});}; \ No newline at end of file +const a185_0x4f87=['COUNT','outboundDropCallsDayTimeout','predictiveIntervalAvgTalktime','then','GetVoiceQueueHopperHistory','`state`\x20=\x205,\x201,\x20null','AVG','outboundDropCallsDayCallersExit','`state`\x20=\x2011\x20,\x201,\x20null','outboundReCallsDay','findAll','predictiveIntervalDroppedCallsTimeout','error','`state`\x20=\x204,\x20`talktime`,\x20null','name','message','GetCampaignHopperHistory','predictiveIntervalAvgHoldtime','outboundAnswerAgiCallsDay','outboundOriginateFailureCallsDay','options','sequelize','predictiveIntervalDroppedCallsCallersExit','outboundNoAnswerCallsDay','AvgHandleTime','CmHopperHistory','debug','`state`\x20=\x203,\x201,\x20null','`state`\x20=\x2012,\x201,\x20null','stringify','`state`\x20=\x2018,\x201,\x20null','raw','campaign','outboundNoSuchCallsDay','`state`\x20=\x2022\x20or\x20`state`\x20=\x2023,\x201,\x20null','where','catch','`state`\x20=\x2010,\x201,\x20null','`state`\x20=\x2020,\x201,\x20null','`state`\x20=\x200,\x201,\x20null','`state`\x20=\x204,\x201,\x20null','outboundBlacklistCallsDay','`state`\x20=\x2014,\x201,\x20null','`state`\x20=\x2010\x20,\x201,\x20null','`state`\x20=\x204,\x20`holdtime`,\x20null','ivrTotalCallsDays','CreateCmHopperHistory','create','ivrAnswerCallsDay','body','info','outboundRejectCallsDay'];(function(_0x1b7514,_0x1202bb){const _0x4f8709=function(_0x26a229){while(--_0x26a229){_0x1b7514['push'](_0x1b7514['shift']());}};_0x4f8709(++_0x1202bb);}(a185_0x4f87,0x18f));const a185_0x26a2=function(_0x1b7514,_0x1202bb){_0x1b7514=_0x1b7514-0x1b1;let _0x4f8709=a185_0x4f87[_0x1b7514];return _0x4f8709;};const a185_0x3685ca=a185_0x26a2;'use strict';const db=require('../../mysqldb')['db'],{fn,literal,col}=require(a185_0x3685ca(0x1d7)),logger=require('../../config/logger')('rpc');exports[a185_0x3685ca(0x1bc)]=function(_0x9d3a4e){const _0x59ad73=this;return new Promise(function(_0x433f9e,_0x2140ad){const _0x1c7017=a185_0x26a2;return db[_0x1c7017(0x1db)][_0x1c7017(0x1bd)](_0x9d3a4e[_0x1c7017(0x1bf)],{'raw':_0x9d3a4e[_0x1c7017(0x1d6)]?_0x9d3a4e['options'][_0x1c7017(0x1e1)]===undefined?!![]:![]:!![]})[_0x1c7017(0x1c5)](function(_0x177e7b){const _0x542ab0=_0x1c7017;logger[_0x542ab0(0x1c0)](_0x542ab0(0x1bc),_0x9d3a4e),logger[_0x542ab0(0x1dc)](_0x542ab0(0x1bc),_0x9d3a4e,JSON['stringify'](_0x177e7b)),_0x433f9e(_0x177e7b);})[_0x1c7017(0x1b2)](function(_0x3bc435){const _0x3c712d=_0x1c7017;logger['error']('CreateCmHopperHistory',_0x3bc435[_0x3c712d(0x1d1)],_0x9d3a4e),_0x2140ad(_0x59ad73['error'](0x1f4,_0x3bc435[_0x3c712d(0x1d1)]));});});},exports['AvgHandleTime']=function(_0x3a3ccd){const _0x1fc002=this;return new Promise(function(_0x437a41,_0x520eea){const _0x4fe749=a185_0x26a2;return db['CmHopperHistory'][_0x4fe749(0x1cc)]({'raw':_0x3a3ccd[_0x4fe749(0x1d6)]?_0x3a3ccd[_0x4fe749(0x1d6)]['raw']===undefined?!![]:![]:!![],'where':_0x3a3ccd[_0x4fe749(0x1d6)]?_0x3a3ccd[_0x4fe749(0x1d6)][_0x4fe749(0x1b1)]||null:null,'attributes':[[fn('COUNT',col('id')),'predictiveIntervalTotalCalls'],[fn('COUNT',fn('IF',literal('`state`\x20=\x204,\x201,\x20null'))),'predictiveIntervalAnsweredCalls'],[fn('COUNT',fn('IF',literal(_0x4fe749(0x1b3)))),_0x4fe749(0x1cd)],[fn(_0x4fe749(0x1c2),fn('IF',literal('`state`\x20=\x2011,\x201,\x20null'))),_0x4fe749(0x1d8)],[fn('AVG',fn('IF',literal(_0x4fe749(0x1ba)))),_0x4fe749(0x1d3)],[fn(_0x4fe749(0x1c8),fn('IF',literal(_0x4fe749(0x1cf)))),_0x4fe749(0x1c4)]]})[_0x4fe749(0x1c5)](function(_0x45568b){const _0x21160b=_0x4fe749;logger[_0x21160b(0x1c0)](_0x21160b(0x1da),_0x3a3ccd),logger['debug'](_0x21160b(0x1da),_0x3a3ccd,JSON[_0x21160b(0x1df)](_0x45568b)),_0x437a41(_0x45568b);})['catch'](function(_0x31cc34){const _0x30af92=_0x4fe749;logger['error'](_0x30af92(0x1da),_0x31cc34[_0x30af92(0x1d1)],_0x3a3ccd),_0x520eea(_0x1fc002[_0x30af92(0x1ce)](0x1f4,_0x31cc34['message']));});});},exports[a185_0x3685ca(0x1c6)]=function(_0x4495c1){const _0x2ea9c0=this;return new Promise(function(_0xe37cca,_0xf703){const _0x33cb31=a185_0x26a2;return db['CmHopperHistory'][_0x33cb31(0x1cc)]({'raw':_0x4495c1['options']?_0x4495c1['options'][_0x33cb31(0x1e1)]===undefined?!![]:![]:!![],'where':_0x4495c1[_0x33cb31(0x1d6)]?_0x4495c1[_0x33cb31(0x1d6)][_0x33cb31(0x1b1)]||null:null,'attributes':[['campaign',_0x33cb31(0x1d0)],[fn(_0x33cb31(0x1c2),fn('IF',literal(_0x33cb31(0x1b5)))),_0x33cb31(0x1e3)],[fn(_0x33cb31(0x1c2),fn('IF',literal(_0x33cb31(0x1dd)))),_0x33cb31(0x1d9)],[fn(_0x33cb31(0x1c2),fn('IF',literal(_0x33cb31(0x1b6)))),'outboundAnswerCallsDay'],[fn(_0x33cb31(0x1c2),fn('IF',literal(_0x33cb31(0x1c7)))),'outboundBusyCallsDay'],[fn(_0x33cb31(0x1c2),fn('IF',literal('`state`\x20=\x208,\x201,\x20null'))),'outboundCongestionCallsDay'],[fn(_0x33cb31(0x1c2),fn('IF',literal(_0x33cb31(0x1b9)))),_0x33cb31(0x1c3)],[fn(_0x33cb31(0x1c2),fn('IF',literal(_0x33cb31(0x1ca)))),_0x33cb31(0x1c9)],[fn('COUNT',fn('IF',literal(_0x33cb31(0x1de)))),'outboundUnknownCallsDay'],[fn(_0x33cb31(0x1c2),fn('IF',literal('`state`\x20=\x2013,\x201,\x20null'))),_0x33cb31(0x1b7)],[fn(_0x33cb31(0x1c2),fn('IF',literal(_0x33cb31(0x1b8)))),_0x33cb31(0x1d5)],[fn('COUNT',fn('IF',literal(_0x33cb31(0x1e0)))),_0x33cb31(0x1c1)],[fn(_0x33cb31(0x1c2),fn('IF',literal('`state`\x20=\x2016,\x201,\x20null'))),_0x33cb31(0x1d4)],[fn(_0x33cb31(0x1c2),fn('IF',literal(_0x33cb31(0x1b4)))),'outboundRejectCallsDay'],[fn(_0x33cb31(0x1c2),fn('IF',literal(_0x33cb31(0x1e4)))),_0x33cb31(0x1cb)]],'group':[_0x33cb31(0x1e2)]})[_0x33cb31(0x1c5)](function(_0x36159d){const _0x1c1f82=_0x33cb31;logger['info'](_0x1c1f82(0x1c6),_0x4495c1),logger[_0x1c1f82(0x1dc)](_0x1c1f82(0x1c6),_0x4495c1,JSON[_0x1c1f82(0x1df)](_0x36159d)),_0xe37cca(_0x36159d);})[_0x33cb31(0x1b2)](function(_0x2f35ea){const _0x452f34=_0x33cb31;logger['error'](_0x452f34(0x1c6),_0x2f35ea[_0x452f34(0x1d1)],_0x4495c1),_0xf703(_0x2ea9c0['error'](0x1f4,_0x2f35ea[_0x452f34(0x1d1)]));});});},exports[a185_0x3685ca(0x1d2)]=function(_0x2b0438){const _0x243c57=this;return new Promise(function(_0x203399,_0x341b3f){const _0x25105c=a185_0x26a2;return db[_0x25105c(0x1db)][_0x25105c(0x1cc)]({'raw':_0x2b0438[_0x25105c(0x1d6)]?_0x2b0438[_0x25105c(0x1d6)][_0x25105c(0x1e1)]===undefined?!![]:![]:!![],'where':_0x2b0438['options']?_0x2b0438[_0x25105c(0x1d6)][_0x25105c(0x1b1)]||null:null,'attributes':[[_0x25105c(0x1e2),_0x25105c(0x1d0)],[fn(_0x25105c(0x1c2),col('id')),_0x25105c(0x1bb)],[fn(_0x25105c(0x1c2),fn('IF',literal(_0x25105c(0x1b6)))),_0x25105c(0x1be)]],'group':['campaign']})[_0x25105c(0x1c5)](function(_0x46429d){const _0x3e3806=_0x25105c;logger['info'](_0x3e3806(0x1d2),_0x2b0438),logger['debug'](_0x3e3806(0x1d2),_0x2b0438,JSON['stringify'](_0x46429d)),_0x203399(_0x46429d);})[_0x25105c(0x1b2)](function(_0x5b2481){const _0x5eb021=_0x25105c;logger['error'](_0x5eb021(0x1d2),_0x5b2481[_0x5eb021(0x1d1)],_0x2b0438),_0x341b3f(_0x243c57[_0x5eb021(0x1ce)](0x1f4,_0x5b2481[_0x5eb021(0x1d1)]));});});}; \ No newline at end of file diff --git a/server/api/cmHopperHistory/index.js b/server/api/cmHopperHistory/index.js index 28575d5..03b42ae 100644 --- a/server/api/cmHopperHistory/index.js +++ b/server/api/cmHopperHistory/index.js @@ -1 +1 @@ -const a186_0x290d=['get','create','update','exports','/:id','../../components/auth/service','post','put','isAuthenticated','show','/describe','describe'];(function(_0x3684b0,_0x3ba8f4){const _0x290d9b=function(_0x55ad7d){while(--_0x55ad7d){_0x3684b0['push'](_0x3684b0['shift']());}};_0x290d9b(++_0x3ba8f4);}(a186_0x290d,0x1e4));const a186_0x55ad=function(_0x3684b0,_0x3ba8f4){_0x3684b0=_0x3684b0-0xac;let _0x290d9b=a186_0x290d[_0x3684b0];return _0x290d9b;};const a186_0x6e044f=a186_0x55ad;'use strict';const express=require('express'),router=express['Router'](),auth=require(a186_0x6e044f(0xad)),controller=require('./cmHopperHistory.controller');router[a186_0x6e044f(0xb4)]('/',auth[a186_0x6e044f(0xb0)](),controller['index']),router['get'](a186_0x6e044f(0xb2),auth['isAuthenticated'](),controller[a186_0x6e044f(0xb3)]),router[a186_0x6e044f(0xb4)](a186_0x6e044f(0xac),auth['isAuthenticated'](),controller[a186_0x6e044f(0xb1)]),router[a186_0x6e044f(0xae)]('/',auth[a186_0x6e044f(0xb0)](),controller[a186_0x6e044f(0xb5)]),router[a186_0x6e044f(0xaf)]('/:id',auth[a186_0x6e044f(0xb0)](),controller[a186_0x6e044f(0xb6)]),module[a186_0x6e044f(0xb7)]=router; \ No newline at end of file +const a186_0xa9f0=['/:id','get','Router','/describe','isAuthenticated','./cmHopperHistory.controller','post','update','exports','index','put','express','show'];(function(_0x2db49b,_0x4df9ee){const _0xa9f034=function(_0x379a60){while(--_0x379a60){_0x2db49b['push'](_0x2db49b['shift']());}};_0xa9f034(++_0x4df9ee);}(a186_0xa9f0,0xc7));const a186_0x379a=function(_0x2db49b,_0x4df9ee){_0x2db49b=_0x2db49b-0xbd;let _0xa9f034=a186_0xa9f0[_0x2db49b];return _0xa9f034;};const a186_0x5a9af4=a186_0x379a;'use strict';const express=require(a186_0x5a9af4(0xc4)),router=express[a186_0x5a9af4(0xc8)](),auth=require('../../components/auth/service'),controller=require(a186_0x5a9af4(0xbe));router[a186_0x5a9af4(0xc7)]('/',auth[a186_0x5a9af4(0xbd)](),controller[a186_0x5a9af4(0xc2)]),router[a186_0x5a9af4(0xc7)](a186_0x5a9af4(0xc9),auth[a186_0x5a9af4(0xbd)](),controller['describe']),router[a186_0x5a9af4(0xc7)](a186_0x5a9af4(0xc6),auth[a186_0x5a9af4(0xbd)](),controller[a186_0x5a9af4(0xc5)]),router[a186_0x5a9af4(0xbf)]('/',auth[a186_0x5a9af4(0xbd)](),controller['create']),router[a186_0x5a9af4(0xc3)](a186_0x5a9af4(0xc6),auth[a186_0x5a9af4(0xbd)](),controller[a186_0x5a9af4(0xc0)]),module[a186_0x5a9af4(0xc1)]=router; \ No newline at end of file diff --git a/server/api/cmList/cmList.attributes.js b/server/api/cmList/cmList.attributes.js index 4726534..ce1b1c0 100644 --- a/server/api/cmList/cmList.attributes.js +++ b/server/api/cmList/cmList.attributes.js @@ -1 +1 @@ -const a187_0xb123=['attributes','STRING','exports'];(function(_0x2cb5c8,_0x2ba7fb){const _0xb12333=function(_0x3993af){while(--_0x3993af){_0x2cb5c8['push'](_0x2cb5c8['shift']());}};_0xb12333(++_0x2ba7fb);}(a187_0xb123,0x16f));const a187_0x3993=function(_0x2cb5c8,_0x2ba7fb){_0x2cb5c8=_0x2cb5c8-0xec;let _0xb12333=a187_0xb123[_0x2cb5c8];return _0xb12333;};const a187_0x238ac5=a187_0x3993;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes['STRING'],'unique':'name','allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':DataTypes[a187_0x238ac5(0xec)]},'dialPrefix':{'type':DataTypes[a187_0x238ac5(0xec)]}};module[a187_0x238ac5(0xed)][a187_0x238ac5(0xee)]=attributes; \ No newline at end of file +const a187_0x1ce7=['exports','name','sequelize','STRING'];(function(_0x40e35f,_0x58343c){const _0x1ce7d6=function(_0x7b2e9c){while(--_0x7b2e9c){_0x40e35f['push'](_0x40e35f['shift']());}};_0x1ce7d6(++_0x58343c);}(a187_0x1ce7,0x1c3));const a187_0x7b2e=function(_0x40e35f,_0x58343c){_0x40e35f=_0x40e35f-0x15e;let _0x1ce7d6=a187_0x1ce7[_0x40e35f];return _0x1ce7d6;};const a187_0x4e9df2=a187_0x7b2e;'use strict';const {DataTypes}=require(a187_0x4e9df2(0x161)),attributes={'name':{'type':DataTypes['STRING'],'unique':a187_0x4e9df2(0x160),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':DataTypes['STRING']},'dialPrefix':{'type':DataTypes[a187_0x4e9df2(0x15e)]}};module[a187_0x4e9df2(0x15f)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/cmList/cmList.controller.js b/server/api/cmList/cmList.controller.js index ecc951b..08bee8e 100644 --- a/server/api/cmList/cmList.controller.js +++ b/server/api/cmList/cmList.controller.js @@ -1 +1 @@ -const a188_0x22d2=['sort','addAgents','UserProfileSection','writeFileSync','update','json','offset','sendStatus','rows','get','limit','format','addCustomField','filters','order','to-csv','index','list_%d_%s.csv','dataValues','getContacts','push','now','removeAgents','join','cf_%s','emit','Malformed\x20request\x20syntax','User','findOne','map','like','Content-disposition','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','where','userCmList:save','addCustomFields','params','text/csv','then','attributes','getAgents','Lists','cm_contacts','UserProfileResource','describe','cf_%d','sequelize','pick','name','Unable\x20to\x20retrieve\x20the\x20current\x20user','download','findAll','query','ids','getCustomFields','../../mysqldb','BOOLEAN','create','addContacts','catch','text','register','merge','fields','userProfileId','../../config/logger','include','CmCustomField','removeDispositions','send','intersection','fieldName','util','status','api','type','model','/tmp/list_%d_%s.csv','rawAttributes','./cmList.socket','ListId','defaultValue','CmList','tags','concat','isArray','raw','queryInterface','options','length','includeAll','error','all','success','keys','userCmList:remove','end','destroy','CustomFields','setHeader','user','number','filter','nolimit','undefined','body','addDisposition','count','omit','CmContact','attachment;\x20filename=','switch','show','stack','message','set','isEmpty','Disposition','getContactsCsv'];(function(_0x158ba8,_0x4222b9){const _0x22d295=function(_0x552820){while(--_0x552820){_0x158ba8['push'](_0x158ba8['shift']());}};_0x22d295(++_0x4222b9);}(a188_0x22d2,0xef));const a188_0x5528=function(_0x158ba8,_0x4222b9){_0x158ba8=_0x158ba8-0x123;let _0x22d295=a188_0x22d2[_0x158ba8];return _0x22d295;};const a188_0x5a476b=a188_0x5528;'use strict';const util=require(a188_0x5a476b(0x16a)),fs=require('fs'),_=require('lodash'),toCsv=require(a188_0x5a476b(0x131)),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require('../../components/parsers/qs'),logger=require(a188_0x5a476b(0x163))(a188_0x5a476b(0x16c)),{db}=require(a188_0x5a476b(0x159)),{Op,DataTypes}=require(a188_0x5a476b(0x150));require(a188_0x5a476b(0x171))[a188_0x5a476b(0x15f)](socket);function respondWithStatusCode(_0x67f733,_0x5eaa35){return _0x5eaa35=_0x5eaa35||0xcc,function(_0x315710){const _0x55a4ea=a188_0x5528;if(_0x315710)return _0x67f733[_0x55a4ea(0x129)](_0x5eaa35);return _0x67f733[_0x55a4ea(0x16b)](_0x5eaa35)[_0x55a4ea(0x182)]();};}function respondWithResult(_0x153859,_0x1ef1b9){return _0x1ef1b9=_0x1ef1b9||0xc8,function(_0x5d826f){const _0x47ccf7=a188_0x5528;if(_0x5d826f)return _0x153859[_0x47ccf7(0x16b)](_0x1ef1b9)[_0x47ccf7(0x127)](_0x5d826f);};}function respondWithFilteredResult(_0xcbccfa,_0xb158ad){return function(_0x4967a0){const _0x5aba4d=a188_0x5528;if(_0x4967a0){const _0x1d98d6=_0x4967a0[_0x5aba4d(0x18d)],_0x4f1017=_0xb158ad[_0x5aba4d(0x128)];let _0x5a5d14=_0xb158ad[_0x5aba4d(0x128)]+_0xb158ad[_0x5aba4d(0x12c)],_0x1daa7a;return _0x5a5d14>=_0x1d98d6?(_0x5a5d14=_0x1d98d6,_0x1daa7a=0xc8):_0x1daa7a=0xce,_0xcbccfa['status'](_0x1daa7a),_0xcbccfa[_0x5aba4d(0x195)]('Content-Range',_0x4f1017+'-'+_0x5a5d14+'/'+_0x1d98d6)[_0x5aba4d(0x127)](_0x4967a0);}return null;};}function saveUpdates(_0x61dfbd){return function(_0x3bc052){const _0x394912=a188_0x5528;if(_0x3bc052)return _0x3bc052[_0x394912(0x126)](_0x61dfbd)['then'](function(_0x488991){return _0x488991;});return null;};}function removeEntity(_0x1aa336){return function(_0x3994df){const _0x423025=a188_0x5528;if(_0x3994df)return _0x3994df[_0x423025(0x183)]()['then'](function(){const _0x4bdfbf=_0x423025,_0x2c6a07=_0x3994df[_0x4bdfbf(0x12b)]({'plain':!![]}),_0x3a7301='Lists';return db[_0x4bdfbf(0x14d)][_0x4bdfbf(0x183)]({'where':{'type':_0x3a7301,'resourceId':_0x2c6a07['id']}})[_0x4bdfbf(0x148)](function(){return _0x3994df;});})[_0x423025(0x148)](function(){const _0x29aca9=_0x423025;_0x1aa336[_0x29aca9(0x16b)](0xcc)[_0x29aca9(0x182)]();});};}function handleEntityNotFound(_0x26fe8b){return function(_0x2b552b){const _0x1892f5=a188_0x5528;return!_0x2b552b&&_0x26fe8b[_0x1892f5(0x129)](0x194),_0x2b552b;};}function handleError(_0x25d840,_0x280d43){return _0x280d43=_0x280d43||0x1f4,function(_0x15dd0b){const _0x2f8f41=a188_0x5528;logger['error'](_0x15dd0b[_0x2f8f41(0x193)]),_0x15dd0b[_0x2f8f41(0x152)]&&delete _0x15dd0b[_0x2f8f41(0x152)],_0x25d840[_0x2f8f41(0x16b)](_0x280d43)[_0x2f8f41(0x167)](_0x15dd0b);};}exports[a188_0x5a476b(0x132)]=function(_0x43c369,_0x1b5b01){const _0xeb303d=a188_0x5a476b;let _0x59ef65={};const _0xf28b7f={},_0x3bea0f={'count':0x0,'rows':[]},_0x9723e7=_[_0xeb303d(0x13f)](db[_0xeb303d(0x174)]['rawAttributes'],function(_0x4a9e55){const _0x3785f9=_0xeb303d;return{'name':_0x4a9e55[_0x3785f9(0x169)],'type':_0x4a9e55['type']['key']};});_0xf28b7f[_0xeb303d(0x16e)]=_[_0xeb303d(0x13f)](_0x9723e7,'name'),_0xf28b7f[_0xeb303d(0x156)]=_['keys'](_0x43c369['query']),_0xf28b7f[_0xeb303d(0x12f)]=_[_0xeb303d(0x168)](_0xf28b7f['model'],_0xf28b7f[_0xeb303d(0x156)]),_0x59ef65[_0xeb303d(0x149)]=_[_0xeb303d(0x168)](_0xf28b7f['model'],qs[_0xeb303d(0x161)](_0x43c369[_0xeb303d(0x156)][_0xeb303d(0x161)])),_0x59ef65[_0xeb303d(0x149)]=_0x59ef65[_0xeb303d(0x149)][_0xeb303d(0x17b)]?_0x59ef65[_0xeb303d(0x149)]:_0xf28b7f[_0xeb303d(0x16e)];typeof _0x43c369[_0xeb303d(0x156)][_0xeb303d(0x189)]===_0xeb303d(0x18a)&&(_0x59ef65[_0xeb303d(0x12c)]=qs['limit'](_0x43c369[_0xeb303d(0x156)]['limit']),_0x59ef65[_0xeb303d(0x128)]=qs[_0xeb303d(0x128)](_0x43c369[_0xeb303d(0x156)][_0xeb303d(0x128)]));_0x59ef65[_0xeb303d(0x130)]=qs[_0xeb303d(0x199)](_0x43c369['query'][_0xeb303d(0x199)]),_0x59ef65[_0xeb303d(0x143)]=qs[_0xeb303d(0x12f)](_[_0xeb303d(0x151)](_0x43c369['query'],_0xf28b7f[_0xeb303d(0x12f)]),_0x9723e7);_0x43c369[_0xeb303d(0x156)]['filter']&&(_0x59ef65[_0xeb303d(0x143)]=_[_0xeb303d(0x160)](_0x59ef65[_0xeb303d(0x143)],{[Op['or']]:_['map'](_0x9723e7,function(_0x564ce7){const _0xa11f40=_0xeb303d;if(_0x564ce7['type']!=='VIRTUAL'){const _0x427b2f={};return _0x427b2f[_0x564ce7[_0xa11f40(0x152)]]={[Op[_0xa11f40(0x140)]]:'%'+_0x43c369[_0xa11f40(0x156)][_0xa11f40(0x188)]+'%'},_0x427b2f;}})}));_0x59ef65=_[_0xeb303d(0x160)]({},_0x59ef65,_0x43c369['options']);const _0x5cd092={'where':_0x59ef65[_0xeb303d(0x143)]};return db[_0xeb303d(0x174)][_0xeb303d(0x18d)](_0x5cd092)[_0xeb303d(0x148)](function(_0x2f4a8e){const _0x1bf408=_0xeb303d;return _0x3bea0f[_0x1bf408(0x18d)]=_0x2f4a8e,_0x43c369[_0x1bf408(0x156)][_0x1bf408(0x17c)]&&(_0x59ef65['include']=[{'all':!![]}]),db[_0x1bf408(0x174)][_0x1bf408(0x155)](_0x59ef65);})['then'](function(_0x3330f1){const _0x39e455=_0xeb303d;return _0x3bea0f[_0x39e455(0x12a)]=_0x3330f1,_0x3bea0f;})[_0xeb303d(0x148)](respondWithFilteredResult(_0x1b5b01,_0x59ef65))[_0xeb303d(0x15d)](handleError(_0x1b5b01,null));},exports[a188_0x5a476b(0x192)]=function(_0x4443ce,_0x5a7dbd){const _0x116c7b=a188_0x5a476b;let _0x1cd1e8={'raw':![],'where':{'id':_0x4443ce[_0x116c7b(0x146)]['id']}};const _0x5a9f3f={};return _0x5a9f3f[_0x116c7b(0x16e)]=_[_0x116c7b(0x180)](db[_0x116c7b(0x174)][_0x116c7b(0x170)]),_0x5a9f3f[_0x116c7b(0x156)]=_['keys'](_0x4443ce[_0x116c7b(0x156)]),_0x5a9f3f[_0x116c7b(0x12f)]=_[_0x116c7b(0x168)](_0x5a9f3f['model'],_0x5a9f3f['query']),_0x1cd1e8[_0x116c7b(0x149)]=_[_0x116c7b(0x168)](_0x5a9f3f[_0x116c7b(0x16e)],qs[_0x116c7b(0x161)](_0x4443ce[_0x116c7b(0x156)][_0x116c7b(0x161)])),_0x1cd1e8[_0x116c7b(0x149)]=_0x1cd1e8[_0x116c7b(0x149)]['length']?_0x1cd1e8[_0x116c7b(0x149)]:_0x5a9f3f[_0x116c7b(0x16e)],_0x4443ce[_0x116c7b(0x156)][_0x116c7b(0x17c)]&&(_0x1cd1e8[_0x116c7b(0x164)]=[{'all':!![]}]),_0x1cd1e8=_['merge']({},_0x1cd1e8,_0x4443ce['options']),db[_0x116c7b(0x174)]['findOne'](_0x1cd1e8)[_0x116c7b(0x148)](handleEntityNotFound(_0x5a7dbd,null))[_0x116c7b(0x148)](respondWithResult(_0x5a7dbd,null))['catch'](handleError(_0x5a7dbd,null));},exports[a188_0x5a476b(0x15b)]=function(_0x3b0a21,_0x24806a){const _0x2f815e=a188_0x5a476b;return db[_0x2f815e(0x174)]['create'](_0x3b0a21[_0x2f815e(0x18b)],{})[_0x2f815e(0x148)](function(_0x56fbca){const _0x403ee2=_0x2f815e,_0x186a80=_0x3b0a21[_0x403ee2(0x186)][_0x403ee2(0x12b)]({'plain':!![]});if(!_0x186a80)throw new Error(_0x403ee2(0x153));if(_0x186a80['role']===_0x403ee2(0x186)){const _0x6e0d41=_0x56fbca[_0x403ee2(0x12b)]({'plain':!![]}),_0x1bbcb2=_0x403ee2(0x14b);return db[_0x403ee2(0x124)][_0x403ee2(0x13e)]({'where':{'name':_0x1bbcb2,'userProfileId':_0x186a80[_0x403ee2(0x162)]},'raw':!![]})[_0x403ee2(0x148)](function(_0x2158f7){const _0x5dbdfa=_0x403ee2;return _0x2158f7&&_0x2158f7['autoAssociation']===0x0?db['UserProfileResource'][_0x5dbdfa(0x15b)]({'name':_0x6e0d41['name'],'resourceId':_0x6e0d41['id'],'type':_0x2158f7[_0x5dbdfa(0x152)],'sectionId':_0x2158f7['id']},{})[_0x5dbdfa(0x148)](function(){return _0x56fbca;}):_0x56fbca;})[_0x403ee2(0x15d)](function(_0x4a1ed6){const _0x369d4a=_0x403ee2;logger[_0x369d4a(0x17d)](_0x369d4a(0x142),_0x4a1ed6);throw _0x4a1ed6;});}return _0x56fbca;})['then'](respondWithResult(_0x24806a,0xc9))[_0x2f815e(0x15d)](handleError(_0x24806a,null));},exports[a188_0x5a476b(0x126)]=function(_0x26146b,_0x1c3c69){const _0x3fb89e=a188_0x5a476b;return _0x26146b['body']['id']&&delete _0x26146b[_0x3fb89e(0x18b)]['id'],db[_0x3fb89e(0x174)][_0x3fb89e(0x13e)]({'where':{'id':_0x26146b['params']['id']}})[_0x3fb89e(0x148)](handleEntityNotFound(_0x1c3c69,null))[_0x3fb89e(0x148)](saveUpdates(_0x26146b[_0x3fb89e(0x18b)],null))['then'](respondWithResult(_0x1c3c69,null))['catch'](handleError(_0x1c3c69,null));},exports[a188_0x5a476b(0x183)]=function(_0x41204b,_0x2febfd){const _0x40aa5d=a188_0x5a476b;return db[_0x40aa5d(0x174)][_0x40aa5d(0x13e)]({'where':{'id':_0x41204b[_0x40aa5d(0x146)]['id']}})['then'](handleEntityNotFound(_0x2febfd,null))[_0x40aa5d(0x148)](removeEntity(_0x2febfd,null))[_0x40aa5d(0x15d)](handleError(_0x2febfd,null));},exports['describe']=function(_0xa848fd,_0x238e6e){const _0x32e2f6=a188_0x5a476b;return db['CmList'][_0x32e2f6(0x14e)]()[_0x32e2f6(0x148)](respondWithResult(_0x238e6e,null))[_0x32e2f6(0x15d)](handleError(_0x238e6e,null));},exports[a188_0x5a476b(0x18c)]=function(_0x3174a0,_0x18a970){const _0x1c50d7=a188_0x5a476b;return _0x3174a0['body']['id']&&delete _0x3174a0[_0x1c50d7(0x18b)]['id'],db[_0x1c50d7(0x174)][_0x1c50d7(0x13e)]({'where':{'id':_0x3174a0[_0x1c50d7(0x146)]['id']}})[_0x1c50d7(0x148)](handleEntityNotFound(_0x18a970,null))[_0x1c50d7(0x148)](function(_0x3a5205){const _0x3cba60=_0x1c50d7;if(_0x3a5205)return _0x3174a0['body']['ListId']=_0x3a5205['id'],db[_0x3cba60(0x197)][_0x3cba60(0x15b)](_0x3174a0[_0x3cba60(0x18b)]);})[_0x1c50d7(0x148)](respondWithResult(_0x18a970,null))['catch'](handleError(_0x18a970,null));},exports['getDispositions']=function(_0x540565,_0x1faaa8){const _0x1fbfd0=a188_0x5a476b;let _0x3890d7={'raw':![],'where':{}};const _0x547e37={},_0x5826f3={'count':0x0,'rows':[]};return db[_0x1fbfd0(0x174)][_0x1fbfd0(0x13e)]({'where':{'id':_0x540565[_0x1fbfd0(0x146)]['id']}})[_0x1fbfd0(0x148)](handleEntityNotFound(_0x1faaa8,null))[_0x1fbfd0(0x148)](function(_0x26fb52){const _0x42285e=_0x1fbfd0;if(_0x26fb52)return _0x547e37[_0x42285e(0x16e)]=_[_0x42285e(0x180)](db[_0x42285e(0x197)][_0x42285e(0x170)]),_0x547e37[_0x42285e(0x156)]=_[_0x42285e(0x180)](_0x540565[_0x42285e(0x156)]),_0x547e37[_0x42285e(0x12f)]=_[_0x42285e(0x168)](_0x547e37[_0x42285e(0x16e)],_0x547e37['query']),_0x3890d7[_0x42285e(0x149)]=_[_0x42285e(0x168)](_0x547e37[_0x42285e(0x16e)],qs[_0x42285e(0x161)](_0x540565[_0x42285e(0x156)][_0x42285e(0x161)])),_0x3890d7[_0x42285e(0x149)]=_0x3890d7[_0x42285e(0x149)][_0x42285e(0x17b)]?_0x3890d7[_0x42285e(0x149)]:_0x547e37[_0x42285e(0x16e)],typeof _0x540565[_0x42285e(0x156)][_0x42285e(0x189)]===_0x42285e(0x18a)&&(_0x3890d7['limit']=qs[_0x42285e(0x12c)](_0x540565['query'][_0x42285e(0x12c)]),_0x3890d7[_0x42285e(0x128)]=qs['offset'](_0x540565['query']['offset'])),_0x3890d7[_0x42285e(0x130)]=qs[_0x42285e(0x199)](_0x540565[_0x42285e(0x156)][_0x42285e(0x199)]),_0x3890d7[_0x42285e(0x143)]=qs['filters'](_['pick'](_0x540565[_0x42285e(0x156)],_0x547e37[_0x42285e(0x12f)])),_0x3890d7[_0x42285e(0x143)][_0x42285e(0x172)]=_0x26fb52['id'],_0x540565[_0x42285e(0x156)]['filter']&&(_0x3890d7['where']=_[_0x42285e(0x160)](_0x3890d7[_0x42285e(0x143)],{[Op['or']]:_['map'](_0x3890d7[_0x42285e(0x149)],function(_0x2bd157){const _0x129575=_0x42285e,_0x3533c3={};return _0x3533c3[_0x2bd157]={[Op[_0x129575(0x140)]]:'%'+_0x540565[_0x129575(0x156)][_0x129575(0x188)]+'%'},_0x3533c3;})})),_0x3890d7=_[_0x42285e(0x160)]({},_0x3890d7,_0x540565[_0x42285e(0x17a)]),db[_0x42285e(0x197)][_0x42285e(0x18d)]({'where':_0x3890d7[_0x42285e(0x143)]})['then'](function(_0x451193){const _0xadf508=_0x42285e;return _0x5826f3[_0xadf508(0x18d)]=_0x451193,_0x540565[_0xadf508(0x156)][_0xadf508(0x17c)]&&(_0x3890d7[_0xadf508(0x164)]=[{'all':!![]}]),db[_0xadf508(0x197)][_0xadf508(0x155)](_0x3890d7);})['then'](function(_0x2621d0){const _0x3bf57d=_0x42285e;return _0x5826f3[_0x3bf57d(0x12a)]=_0x2621d0,_0x5826f3;});})[_0x1fbfd0(0x148)](respondWithFilteredResult(_0x1faaa8,_0x3890d7))['catch'](handleError(_0x1faaa8,null));},exports[a188_0x5a476b(0x166)]=function(_0xbf8b63,_0x433971){const _0x14160a=a188_0x5a476b;return db['CmList']['findOne']({'where':{'id':_0xbf8b63[_0x14160a(0x146)]['id']}})[_0x14160a(0x148)](handleEntityNotFound(_0x433971,null))[_0x14160a(0x148)](function(_0x461552){const _0x47fe7c=_0x14160a;if(_0x461552)return _0x461552['removeDispositions'](_0xbf8b63['query'][_0x47fe7c(0x157)]);})[_0x14160a(0x148)](respondWithStatusCode(_0x433971,null))[_0x14160a(0x15d)](handleError(_0x433971,null));},exports[a188_0x5a476b(0x15c)]=function(_0x279033,_0x51c478){const _0x884f0b=a188_0x5a476b;return db['CmList'][_0x884f0b(0x13e)]({'where':{'id':_0x279033[_0x884f0b(0x146)]['id']}})[_0x884f0b(0x148)](handleEntityNotFound(_0x51c478,null))[_0x884f0b(0x148)](function(_0x30d52f){const _0x49df3d=_0x884f0b;if(_0x30d52f){const _0x224165=[],_0x5b4a7c={'success':[],'errors':[]};return db[_0x49df3d(0x18f)][_0x49df3d(0x14e)]()['then'](function(_0x2c15fe){const _0x937747=_0x49df3d;_0x279033['body']['tags']&&_['isArray'](_0x279033['body'][_0x937747(0x175)])?_0x279033['body']['tags'][_0x937747(0x17b)]?_0x279033[_0x937747(0x18b)][_0x937747(0x175)]=_0x279033[_0x937747(0x18b)]['tags'][_0x937747(0x139)](';')+';':_0x279033['body']['tags']=null:_0x279033[_0x937747(0x18b)][_0x937747(0x175)]=null;if(_0x279033[_0x937747(0x18b)]&&_[_0x937747(0x177)](_0x279033[_0x937747(0x18b)])){for(let _0x5132de=0x0;_0x5132de<_0x279033[_0x937747(0x18b)]['length'];_0x5132de+=0x1){_0x279033[_0x937747(0x18b)][_0x5132de][_0x937747(0x172)]=_0x279033[_0x937747(0x146)]['id'],_0x224165['push'](_0x279033[_0x937747(0x18b)][_0x5132de]);}return Promise[_0x937747(0x17e)](_0x224165['map'](_0x5493c9=>{const _0x34ef26=_0x937747;return db[_0x34ef26(0x18f)][_0x34ef26(0x15b)](_[_0x34ef26(0x18e)](_0x5493c9,['ids','id'])||{},{'fields':_[_0x34ef26(0x180)](_0x2c15fe),'raw':!![]})[_0x34ef26(0x148)](function(_0x59ea67){const _0x255b52=_0x34ef26;_0x5b4a7c[_0x255b52(0x17f)]['push'](_0x59ea67[_0x255b52(0x134)]);})[_0x34ef26(0x15d)](function(_0x2f6977){const _0x2a1f17=_0x34ef26;_0x5b4a7c['errors'][_0x2a1f17(0x136)]({'data':_0x5493c9,'error':_0x2f6977[_0x2a1f17(0x194)]});});}))[_0x937747(0x148)](function(){return _0x5b4a7c;})[_0x937747(0x15d)](function(_0x1be2d8){return _0x1be2d8;});}else _0x51c478[_0x937747(0x16b)](0x190)['json']({'message':_0x937747(0x13c)});});}})[_0x884f0b(0x148)](respondWithResult(_0x51c478,null))[_0x884f0b(0x15d)](handleError(_0x51c478,null));},exports['getContacts']=function(_0x3ea8a4,_0xd78a17){const _0x483f29=a188_0x5a476b;let _0x549065;return db[_0x483f29(0x174)][_0x483f29(0x13e)]({'where':{'id':_0x3ea8a4['params']['id']},'include':[{'model':db['CmCustomField'],'as':_0x483f29(0x184)}]})[_0x483f29(0x148)](handleEntityNotFound(_0xd78a17,null))[_0x483f29(0x148)](function(_0x5d3efc){const _0xcf16a5=_0x483f29;if(_0x5d3efc)return _0x549065=_0x5d3efc,db[_0xcf16a5(0x18f)][_0xcf16a5(0x170)];})[_0x483f29(0x148)](function(_0x5180ae){const _0x2ec0a7=_0x483f29;if(_0x5180ae){let _0x85ce84={};const _0x23ce51={};return _0x23ce51[_0x2ec0a7(0x16e)]=_[_0x2ec0a7(0x176)](_[_0x2ec0a7(0x180)](_0x5180ae),_[_0x2ec0a7(0x13f)](_0x549065[_0x2ec0a7(0x184)],function(_0x36a858){const _0x40bf90=_0x2ec0a7;return util['format'](_0x40bf90(0x14f),_0x36a858['id']);})),_0x23ce51['query']=_['keys'](_0x3ea8a4['query']),_0x23ce51[_0x2ec0a7(0x12f)]=_[_0x2ec0a7(0x168)](_0x23ce51[_0x2ec0a7(0x16e)],_0x23ce51[_0x2ec0a7(0x156)]),_0x85ce84[_0x2ec0a7(0x149)]=_[_0x2ec0a7(0x168)](_0x23ce51['model'],qs[_0x2ec0a7(0x161)](_0x3ea8a4[_0x2ec0a7(0x156)][_0x2ec0a7(0x161)])),_0x85ce84[_0x2ec0a7(0x149)]=_0x85ce84['attributes'][_0x2ec0a7(0x17b)]?_0x85ce84[_0x2ec0a7(0x149)]:_0x23ce51['model'],typeof _0x3ea8a4['query'][_0x2ec0a7(0x189)]===_0x2ec0a7(0x18a)&&(_0x85ce84[_0x2ec0a7(0x12c)]=qs[_0x2ec0a7(0x12c)](_0x3ea8a4[_0x2ec0a7(0x156)][_0x2ec0a7(0x12c)]),_0x85ce84[_0x2ec0a7(0x128)]=qs['offset'](_0x3ea8a4[_0x2ec0a7(0x156)]['offset'])),_0x85ce84[_0x2ec0a7(0x130)]=qs[_0x2ec0a7(0x199)](_0x3ea8a4['query'][_0x2ec0a7(0x199)]),_0x85ce84['where']=qs[_0x2ec0a7(0x12f)](_[_0x2ec0a7(0x151)](_0x3ea8a4['query'],_0x23ce51[_0x2ec0a7(0x12f)])),_0x85ce84[_0x2ec0a7(0x178)]=!![],_0x3ea8a4['query'][_0x2ec0a7(0x188)]&&(_0x85ce84[_0x2ec0a7(0x143)]=_['merge'](_0x85ce84[_0x2ec0a7(0x143)],{[Op['or']]:_[_0x2ec0a7(0x13f)](_0x85ce84['attributes'],function(_0x58be02){const _0x34d3fc=_0x2ec0a7,_0x2a622d={};return _0x2a622d[_0x58be02]={[Op[_0x34d3fc(0x140)]]:'%'+_0x3ea8a4[_0x34d3fc(0x156)][_0x34d3fc(0x188)]+'%'},_0x2a622d;})})),_0x85ce84=_['merge']({},_0x85ce84,_0x3ea8a4[_0x2ec0a7(0x17a)]),_0x549065[_0x2ec0a7(0x135)](_0x85ce84);}})[_0x483f29(0x148)](respondWithResult(_0xd78a17,null))[_0x483f29(0x15d)](handleError(_0xd78a17,null));},exports[a188_0x5a476b(0x198)]=function(_0x220492,_0x3f23b5){const _0x3fa131=a188_0x5a476b;let _0x10d6cf;return db[_0x3fa131(0x174)][_0x3fa131(0x13e)]({'where':{'id':_0x220492[_0x3fa131(0x146)]['id']},'include':[{'model':db[_0x3fa131(0x165)],'as':_0x3fa131(0x184)}]})[_0x3fa131(0x148)](handleEntityNotFound(_0x3f23b5,null))[_0x3fa131(0x148)](function(_0x240ef0){const _0x5668b3=_0x3fa131;if(_0x240ef0)return _0x10d6cf=_0x240ef0,db[_0x5668b3(0x18f)]['rawAttributes'];})[_0x3fa131(0x148)](function(_0x1ad82f){const _0x1227b1=_0x3fa131;if(_0x1ad82f){let _0x28bc22={};const _0x47bf30={};return _0x47bf30[_0x1227b1(0x16e)]=_[_0x1227b1(0x176)](_[_0x1227b1(0x180)](_0x1ad82f),_['map'](_0x10d6cf['CustomFields'],function(_0x1a0876){const _0x16e2b6=_0x1227b1;return util['format'](_0x16e2b6(0x14f),_0x1a0876['id']);})),_0x47bf30[_0x1227b1(0x156)]=_[_0x1227b1(0x180)](_0x220492['query']),_0x47bf30[_0x1227b1(0x12f)]=_['intersection'](_0x47bf30['model'],_0x47bf30[_0x1227b1(0x156)]),_0x28bc22[_0x1227b1(0x149)]=_[_0x1227b1(0x168)](_0x47bf30[_0x1227b1(0x16e)],qs[_0x1227b1(0x161)](_0x220492[_0x1227b1(0x156)][_0x1227b1(0x161)])),_0x28bc22[_0x1227b1(0x149)]=_0x28bc22['attributes'][_0x1227b1(0x17b)]?_0x28bc22['attributes']:_0x47bf30[_0x1227b1(0x16e)],typeof _0x220492[_0x1227b1(0x156)]['nolimit']===_0x1227b1(0x18a)&&(_0x28bc22[_0x1227b1(0x12c)]=qs['limit'](_0x220492[_0x1227b1(0x156)][_0x1227b1(0x12c)]),_0x28bc22[_0x1227b1(0x128)]=qs[_0x1227b1(0x128)](_0x220492[_0x1227b1(0x156)][_0x1227b1(0x128)])),_0x28bc22[_0x1227b1(0x130)]=qs[_0x1227b1(0x199)](_0x220492[_0x1227b1(0x156)][_0x1227b1(0x199)]),_0x28bc22[_0x1227b1(0x143)]=qs[_0x1227b1(0x12f)](_[_0x1227b1(0x151)](_0x220492['query'],_0x47bf30[_0x1227b1(0x12f)])),_0x28bc22[_0x1227b1(0x178)]=!![],_0x220492[_0x1227b1(0x156)][_0x1227b1(0x188)]&&(_0x28bc22[_0x1227b1(0x143)]=_[_0x1227b1(0x160)](_0x28bc22[_0x1227b1(0x143)],{[Op['or']]:_[_0x1227b1(0x13f)](_0x28bc22[_0x1227b1(0x149)],function(_0x548b0d){const _0x599db7=_0x1227b1,_0x47fb47={};return _0x47fb47[_0x548b0d]={[Op[_0x599db7(0x140)]]:'%'+_0x220492['query'][_0x599db7(0x188)]+'%'},_0x47fb47;})})),_0x28bc22=_['merge']({},_0x28bc22,_0x220492['options']),_0x10d6cf[_0x1227b1(0x135)](_0x28bc22);}})['then'](function(_0x11cb66){const _0x105fe4=_0x3fa131;if(!_[_0x105fe4(0x196)](_0x11cb66)){const _0x53f1cc=toCsv(_0x11cb66),_0x2a4171=Date[_0x105fe4(0x137)]();return fs[_0x105fe4(0x125)](util[_0x105fe4(0x12d)](_0x105fe4(0x16f),_0x10d6cf['id'],_0x2a4171),_0x53f1cc),_0x3f23b5[_0x105fe4(0x185)](_0x105fe4(0x141),_0x105fe4(0x190)+util[_0x105fe4(0x12d)](_0x105fe4(0x133),_0x10d6cf['id'],_0x2a4171)),_0x3f23b5[_0x105fe4(0x185)]('Content-type',_0x105fe4(0x147)),_0x3f23b5[_0x105fe4(0x154)](util[_0x105fe4(0x12d)](_0x105fe4(0x16f),_0x10d6cf['id'],_0x2a4171));}else return _0x3f23b5['sendStatus'](0xcc);})[_0x3fa131(0x15d)](handleError(_0x3f23b5,null));},exports[a188_0x5a476b(0x12e)]=function(_0x340ec3,_0x46ea9a){const _0x188533=a188_0x5a476b;let _0x3751f3;return delete _0x340ec3['body']['id'],db['CmList'][_0x188533(0x13e)]({'where':{'id':_0x340ec3[_0x188533(0x146)]['id']}})[_0x188533(0x148)](handleEntityNotFound(_0x46ea9a,null))[_0x188533(0x148)](function(_0x57c9bc){const _0x263c86=_0x188533;if(_0x57c9bc)return db[_0x263c86(0x150)]['transaction'](function(_0x425e5a){const _0x234134=_0x263c86;return db[_0x234134(0x165)][_0x234134(0x15b)](_0x340ec3[_0x234134(0x18b)],{'transaction':_0x425e5a})['then'](function(_0x4642e5){const _0x3b9dd6=_0x234134;return _0x3751f3=_0x4642e5,_0x57c9bc[_0x3b9dd6(0x145)](_0x4642e5,{'transaction':_0x425e5a});})['then'](function(){const _0x25a6d1=_0x234134,_0x34ed01={'type':DataTypes['TEXT'],'transaction':_0x425e5a};switch(_0x340ec3[_0x25a6d1(0x18b)][_0x25a6d1(0x16d)]){case _0x25a6d1(0x15e):_0x34ed01[_0x25a6d1(0x16d)]=DataTypes['TEXT'];break;case _0x25a6d1(0x187):_0x34ed01[_0x25a6d1(0x16d)]=DataTypes['INTEGER'];break;case _0x25a6d1(0x191):_0x34ed01[_0x25a6d1(0x16d)]=DataTypes[_0x25a6d1(0x15a)],_0x34ed01[_0x25a6d1(0x173)]=![];break;default:}return db['sequelize'][_0x25a6d1(0x179)]['addColumn'](_0x25a6d1(0x14c),util['format'](_0x25a6d1(0x13a),_0x3751f3['id']),_0x34ed01);})['then'](function(){return _0x3751f3;});});})[_0x188533(0x148)](respondWithResult(_0x46ea9a,null))['catch'](handleError(_0x46ea9a,null));},exports[a188_0x5a476b(0x158)]=function(_0x57004c,_0x464253){const _0x5b9400=a188_0x5a476b;let _0x1c64f2={};const _0x39f1ef={};return db[_0x5b9400(0x174)][_0x5b9400(0x13e)]({'where':{'id':_0x57004c[_0x5b9400(0x146)]['id']}})['then'](handleEntityNotFound(_0x464253,null))[_0x5b9400(0x148)](function(_0x1a4d1d){const _0x24890c=_0x5b9400;if(_0x1a4d1d){_0x39f1ef[_0x24890c(0x16e)]=_['keys'](db['CmCustomField'][_0x24890c(0x170)]),_0x39f1ef[_0x24890c(0x156)]=_[_0x24890c(0x180)](_0x57004c['query']),_0x39f1ef[_0x24890c(0x12f)]=_[_0x24890c(0x168)](_0x39f1ef[_0x24890c(0x16e)],_0x39f1ef[_0x24890c(0x156)]),_0x1c64f2[_0x24890c(0x149)]=_['intersection'](_0x39f1ef[_0x24890c(0x16e)],qs[_0x24890c(0x161)](_0x57004c[_0x24890c(0x156)]['fields'])),_0x1c64f2['attributes']=_0x1c64f2[_0x24890c(0x149)]['length']?_0x1c64f2[_0x24890c(0x149)]:_0x39f1ef[_0x24890c(0x16e)],_0x1c64f2['order']=qs[_0x24890c(0x199)](_0x57004c[_0x24890c(0x156)][_0x24890c(0x199)]),_0x1c64f2[_0x24890c(0x143)]=qs['filters'](_[_0x24890c(0x151)](_0x57004c[_0x24890c(0x156)],_0x39f1ef[_0x24890c(0x12f)]));let _0x5c3dff={'ListId':null};return _0x1a4d1d['id']&&(_0x5c3dff={'ListId':_0x1a4d1d['id']}),_0x1c64f2[_0x24890c(0x143)]=_[_0x24890c(0x160)](_0x1c64f2[_0x24890c(0x143)],_0x5c3dff),_0x57004c['query'][_0x24890c(0x188)]&&(_0x1c64f2[_0x24890c(0x143)]=_[_0x24890c(0x160)](_0x1c64f2[_0x24890c(0x143)],{[Op['or']]:_[_0x24890c(0x13f)](_0x1c64f2[_0x24890c(0x149)],function(_0x2c6814){const _0x3a226a=_0x24890c,_0x2ecdaa={};return _0x2ecdaa[_0x2c6814]={[Op[_0x3a226a(0x140)]]:'%'+_0x57004c['query']['filter']+'%'},_0x2ecdaa;})})),_0x1c64f2=_[_0x24890c(0x160)]({},_0x1c64f2,_0x57004c['options']),db[_0x24890c(0x165)]['findAndCountAll'](_0x1c64f2);}})[_0x5b9400(0x148)](respondWithResult(_0x464253,null))[_0x5b9400(0x15d)](handleError(_0x464253,null));},exports[a188_0x5a476b(0x123)]=function(_0x331cc0,_0x275e7f){const _0x61fe74=a188_0x5a476b;return db['CmList']['findOne']({'where':{'id':_0x331cc0['params']['id']}})[_0x61fe74(0x148)](function(_0x4d7aca){const _0x17bcae=_0x61fe74;if(_0x4d7aca)return _0x4d7aca[_0x17bcae(0x123)](_0x331cc0[_0x17bcae(0x18b)]['ids'],{'through':_['omit'](_0x331cc0['body'],['ids','id'])})[_0x17bcae(0x148)](function(_0x5c1d08){const _0x16159d=_0x17bcae;for(let _0x533d8a=0x0;_0x533d8a<_0x331cc0['body'][_0x16159d(0x157)]['length'];_0x533d8a+=0x1){socket[_0x16159d(0x13b)](_0x16159d(0x144),{'UserId':_0x331cc0['body'][_0x16159d(0x157)][_0x533d8a],'CmListId':_0x331cc0[_0x16159d(0x146)]['id']});}return _0x5c1d08;});})['then'](respondWithResult(_0x275e7f,null))[_0x61fe74(0x15d)](handleError(_0x275e7f,null));},exports[a188_0x5a476b(0x138)]=function(_0x1900d6,_0x4a4004){const _0x35c3ca=a188_0x5a476b;return db[_0x35c3ca(0x174)]['findOne']({'where':{'id':_0x1900d6[_0x35c3ca(0x146)]['id']}})[_0x35c3ca(0x148)](handleEntityNotFound(_0x4a4004,null))['then'](function(_0x2ac01d){const _0x2fea3f=_0x35c3ca;if(_0x2ac01d)return _0x2ac01d['removeAgents'](_0x1900d6[_0x2fea3f(0x156)][_0x2fea3f(0x157)])[_0x2fea3f(0x148)](function(){const _0x521ad8=_0x2fea3f;if(_['isArray'](_0x1900d6[_0x521ad8(0x156)][_0x521ad8(0x157)]))for(let _0x2a440f=0x0;_0x2a440f<_0x1900d6[_0x521ad8(0x156)][_0x521ad8(0x157)][_0x521ad8(0x17b)];_0x2a440f+=0x1){socket['emit']('userCmList:remove',{'UserId':Number(_0x1900d6[_0x521ad8(0x156)]['ids'][_0x2a440f]),'CmListId':Number(_0x1900d6['params']['id'])});}else socket[_0x521ad8(0x13b)](_0x521ad8(0x181),{'UserId':Number(_0x1900d6[_0x521ad8(0x156)]['ids']),'CmListId':Number(_0x1900d6[_0x521ad8(0x146)]['id'])});});})[_0x35c3ca(0x148)](respondWithStatusCode(_0x4a4004,null))['catch'](handleError(_0x4a4004,null));},exports[a188_0x5a476b(0x14a)]=function(_0x14927a,_0x1b9320){const _0x2c0375=a188_0x5a476b;let _0x33c745={};const _0x397d53={};let _0x222506,_0x364fdf;return db[_0x2c0375(0x174)]['findOne']({'where':{'id':_0x14927a[_0x2c0375(0x146)]['id']}})[_0x2c0375(0x148)](handleEntityNotFound(_0x1b9320,null))[_0x2c0375(0x148)](function(_0x5909ca){const _0x2fee25=_0x2c0375;if(_0x5909ca)return _0x222506=_0x5909ca,_0x397d53[_0x2fee25(0x16e)]=_[_0x2fee25(0x180)](db[_0x2fee25(0x13d)][_0x2fee25(0x170)]),_0x397d53['query']=_[_0x2fee25(0x180)](_0x14927a[_0x2fee25(0x156)]),_0x397d53['filters']=_[_0x2fee25(0x168)](_0x397d53[_0x2fee25(0x16e)],_0x397d53[_0x2fee25(0x156)]),_0x33c745[_0x2fee25(0x149)]=_['intersection'](_0x397d53[_0x2fee25(0x16e)],qs['fields'](_0x14927a[_0x2fee25(0x156)][_0x2fee25(0x161)])),_0x33c745[_0x2fee25(0x149)]=_0x33c745[_0x2fee25(0x149)][_0x2fee25(0x17b)]?_0x33c745[_0x2fee25(0x149)]:_0x397d53[_0x2fee25(0x16e)],_0x33c745[_0x2fee25(0x130)]=qs['sort'](_0x14927a[_0x2fee25(0x156)]['sort']),_0x33c745[_0x2fee25(0x143)]=qs[_0x2fee25(0x12f)](_[_0x2fee25(0x151)](_0x14927a[_0x2fee25(0x156)],_0x397d53[_0x2fee25(0x12f)])),_0x14927a[_0x2fee25(0x156)][_0x2fee25(0x188)]&&(_0x33c745['where']=_[_0x2fee25(0x160)](_0x33c745[_0x2fee25(0x143)],{[Op['or']]:_['map'](_0x33c745[_0x2fee25(0x149)],function(_0x1dfdbe){const _0x4a354c=_0x2fee25,_0x2f3ad9={};return _0x2f3ad9[_0x1dfdbe]={[Op[_0x4a354c(0x140)]]:'%'+_0x14927a[_0x4a354c(0x156)]['filter']+'%'},_0x2f3ad9;})})),_0x33c745=_[_0x2fee25(0x160)]({},_0x33c745,_0x14927a[_0x2fee25(0x17a)]),_0x222506[_0x2fee25(0x14a)](_0x33c745);})[_0x2c0375(0x148)](function(_0x283636){const _0xe11a7a=_0x2c0375;if(_0x283636)return _0x364fdf=_0x283636[_0xe11a7a(0x17b)],typeof _0x14927a[_0xe11a7a(0x156)][_0xe11a7a(0x189)]===_0xe11a7a(0x18a)&&(_0x33c745[_0xe11a7a(0x12c)]=qs[_0xe11a7a(0x12c)](_0x14927a[_0xe11a7a(0x156)][_0xe11a7a(0x12c)]),_0x33c745[_0xe11a7a(0x128)]=qs[_0xe11a7a(0x128)](_0x14927a[_0xe11a7a(0x156)]['offset'])),_0x222506[_0xe11a7a(0x14a)](_0x33c745);})[_0x2c0375(0x148)](function(_0x2fc1af){if(_0x2fc1af)return _0x2fc1af?{'count':_0x364fdf,'rows':_0x2fc1af}:null;})['then'](respondWithResult(_0x1b9320,null))[_0x2c0375(0x15d)](handleError(_0x1b9320,null));}; \ No newline at end of file +const a188_0x52e3=['map','getContacts','to-csv','params','create','status','number','include','addCustomFields','register','writeFileSync','getCustomFields','index','attachment;\x20filename=','UserProfileSection','error','userProfileId','concat','limit','Malformed\x20request\x20syntax','get','rows','attributes','addColumn','nolimit','sendStatus','sort','Content-type','intersection','stack','show','destroy','like','autoAssociation','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','api','userCmList:remove','isArray','getContactsCsv','keys','addAgents','json','text/csv','includeAll','../../config/logger','Lists','removeDispositions','findOne','transaction','undefined','describe','user','body','Content-Range','cm_contacts','ids','now','filter','raw','sequelize','findAll','pick','/tmp/list_%d_%s.csv','key','options','removeAgents','download','tags','where','end','switch','format','length','list_%d_%s.csv','CustomFields','set','../../mysqldb','getAgents','model','INTEGER','join','name','dataValues','addCustomField','text','getDispositions','rawAttributes','order','errors','setHeader','push','CmList','success','offset','lodash','VIRTUAL','catch','query','merge','CmCustomField','filters','ListId','then','emit','count','Disposition','TEXT','BOOLEAN','CmContact','cf_%d','fields','send','UserProfileResource','type'];(function(_0x534908,_0x10304e){const _0x52e378=function(_0x389a0d){while(--_0x389a0d){_0x534908['push'](_0x534908['shift']());}};_0x52e378(++_0x10304e);}(a188_0x52e3,0x97));const a188_0x389a=function(_0x534908,_0x10304e){_0x534908=_0x534908-0x7d;let _0x52e378=a188_0x52e3[_0x534908];return _0x52e378;};const a188_0x21b99b=a188_0x389a;'use strict';const util=require('util'),fs=require('fs'),_=require(a188_0x21b99b(0xb6)),toCsv=require(a188_0x21b99b(0xcc)),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require('../../components/parsers/qs'),logger=require(a188_0x21b99b(0x84))(a188_0x21b99b(0xed)),{db}=require(a188_0x21b99b(0xa4)),{Op,DataTypes}=require('sequelize');require('./cmList.socket')[a188_0x21b99b(0xd3)](socket);function respondWithStatusCode(_0x123f0b,_0x1d3e00){return _0x1d3e00=_0x1d3e00||0xcc,function(_0x4ccd8c){const _0x40f335=a188_0x389a;if(_0x4ccd8c)return _0x123f0b[_0x40f335(0xe3)](_0x1d3e00);return _0x123f0b[_0x40f335(0xcf)](_0x1d3e00)[_0x40f335(0x9d)]();};}function respondWithResult(_0x36c82e,_0x26556f){return _0x26556f=_0x26556f||0xc8,function(_0x15964a){const _0x592122=a188_0x389a;if(_0x15964a)return _0x36c82e[_0x592122(0xcf)](_0x26556f)[_0x592122(0x81)](_0x15964a);};}function respondWithFilteredResult(_0x44fb48,_0x5cac09){return function(_0x56bef5){const _0x3ac188=a188_0x389a;if(_0x56bef5){const _0x3c8ccf=_0x56bef5[_0x3ac188(0xc0)],_0x17e84e=_0x5cac09['offset'];let _0x21fb66=_0x5cac09[_0x3ac188(0xb5)]+_0x5cac09[_0x3ac188(0xdc)],_0x5dac53;return _0x21fb66>=_0x3c8ccf?(_0x21fb66=_0x3c8ccf,_0x5dac53=0xc8):_0x5dac53=0xce,_0x44fb48[_0x3ac188(0xcf)](_0x5dac53),_0x44fb48[_0x3ac188(0xa3)](_0x3ac188(0x8d),_0x17e84e+'-'+_0x21fb66+'/'+_0x3c8ccf)['json'](_0x56bef5);}return null;};}function saveUpdates(_0x5a3e07){return function(_0x24aaf0){const _0x4b4570=a188_0x389a;if(_0x24aaf0)return _0x24aaf0['update'](_0x5a3e07)[_0x4b4570(0xbe)](function(_0x5e7f22){return _0x5e7f22;});return null;};}function removeEntity(_0x3034df){return function(_0x49f6bc){const _0x22587c=a188_0x389a;if(_0x49f6bc)return _0x49f6bc['destroy']()[_0x22587c(0xbe)](function(){const _0x2c4110=_0x22587c,_0x1f2683=_0x49f6bc[_0x2c4110(0xde)]({'plain':!![]}),_0xbd701d='Lists';return db[_0x2c4110(0xc8)][_0x2c4110(0xe9)]({'where':{'type':_0xbd701d,'resourceId':_0x1f2683['id']}})[_0x2c4110(0xbe)](function(){return _0x49f6bc;});})[_0x22587c(0xbe)](function(){const _0x3a1231=_0x22587c;_0x3034df[_0x3a1231(0xcf)](0xcc)[_0x3a1231(0x9d)]();});};}function handleEntityNotFound(_0x147e8e){return function(_0x1f5170){const _0x395ee5=a188_0x389a;return!_0x1f5170&&_0x147e8e[_0x395ee5(0xe3)](0x194),_0x1f5170;};}function handleError(_0x292175,_0x82dc8){return _0x82dc8=_0x82dc8||0x1f4,function(_0x1b67f6){const _0x4c2fed=a188_0x389a;logger['error'](_0x1b67f6[_0x4c2fed(0xe7)]),_0x1b67f6[_0x4c2fed(0xa9)]&&delete _0x1b67f6[_0x4c2fed(0xa9)],_0x292175[_0x4c2fed(0xcf)](_0x82dc8)[_0x4c2fed(0xc7)](_0x1b67f6);};}exports[a188_0x21b99b(0xd6)]=function(_0x25346f,_0x224bdb){const _0x2fe441=a188_0x21b99b;let _0x2af8f1={};const _0x40dc0c={},_0x3c6441={'count':0x0,'rows':[]},_0x3cf21a=_[_0x2fe441(0xca)](db[_0x2fe441(0xb3)][_0x2fe441(0xae)],function(_0x40c86b){const _0x1a2813=_0x2fe441;return{'name':_0x40c86b['fieldName'],'type':_0x40c86b['type'][_0x1a2813(0x97)]};});_0x40dc0c[_0x2fe441(0xa6)]=_[_0x2fe441(0xca)](_0x3cf21a,_0x2fe441(0xa9)),_0x40dc0c['query']=_[_0x2fe441(0x7f)](_0x25346f['query']),_0x40dc0c[_0x2fe441(0xbc)]=_[_0x2fe441(0xe6)](_0x40dc0c['model'],_0x40dc0c['query']),_0x2af8f1[_0x2fe441(0xe0)]=_['intersection'](_0x40dc0c[_0x2fe441(0xa6)],qs['fields'](_0x25346f[_0x2fe441(0xb9)][_0x2fe441(0xc6)])),_0x2af8f1[_0x2fe441(0xe0)]=_0x2af8f1[_0x2fe441(0xe0)]['length']?_0x2af8f1[_0x2fe441(0xe0)]:_0x40dc0c[_0x2fe441(0xa6)];typeof _0x25346f[_0x2fe441(0xb9)]['nolimit']==='undefined'&&(_0x2af8f1[_0x2fe441(0xdc)]=qs[_0x2fe441(0xdc)](_0x25346f[_0x2fe441(0xb9)][_0x2fe441(0xdc)]),_0x2af8f1[_0x2fe441(0xb5)]=qs['offset'](_0x25346f[_0x2fe441(0xb9)]['offset']));_0x2af8f1[_0x2fe441(0xaf)]=qs['sort'](_0x25346f[_0x2fe441(0xb9)][_0x2fe441(0xe4)]),_0x2af8f1[_0x2fe441(0x9c)]=qs[_0x2fe441(0xbc)](_[_0x2fe441(0x95)](_0x25346f[_0x2fe441(0xb9)],_0x40dc0c[_0x2fe441(0xbc)]),_0x3cf21a);_0x25346f['query'][_0x2fe441(0x91)]&&(_0x2af8f1['where']=_[_0x2fe441(0xba)](_0x2af8f1['where'],{[Op['or']]:_[_0x2fe441(0xca)](_0x3cf21a,function(_0x5c1bfb){const _0x4a4ee1=_0x2fe441;if(_0x5c1bfb[_0x4a4ee1(0xc9)]!==_0x4a4ee1(0xb7)){const _0x2bef9f={};return _0x2bef9f[_0x5c1bfb['name']]={[Op['like']]:'%'+_0x25346f['query'][_0x4a4ee1(0x91)]+'%'},_0x2bef9f;}})}));_0x2af8f1=_[_0x2fe441(0xba)]({},_0x2af8f1,_0x25346f['options']);const _0x424958={'where':_0x2af8f1[_0x2fe441(0x9c)]};return db[_0x2fe441(0xb3)]['count'](_0x424958)[_0x2fe441(0xbe)](function(_0x24e54a){const _0x392bec=_0x2fe441;return _0x3c6441[_0x392bec(0xc0)]=_0x24e54a,_0x25346f['query'][_0x392bec(0x83)]&&(_0x2af8f1[_0x392bec(0xd1)]=[{'all':!![]}]),db[_0x392bec(0xb3)][_0x392bec(0x94)](_0x2af8f1);})['then'](function(_0x2e96d2){const _0x1d39be=_0x2fe441;return _0x3c6441[_0x1d39be(0xdf)]=_0x2e96d2,_0x3c6441;})[_0x2fe441(0xbe)](respondWithFilteredResult(_0x224bdb,_0x2af8f1))[_0x2fe441(0xb8)](handleError(_0x224bdb,null));},exports[a188_0x21b99b(0xe8)]=function(_0x4a39fe,_0x430ed5){const _0x192078=a188_0x21b99b;let _0x563b79={'raw':![],'where':{'id':_0x4a39fe[_0x192078(0xcd)]['id']}};const _0x52d1b2={};return _0x52d1b2[_0x192078(0xa6)]=_['keys'](db[_0x192078(0xb3)][_0x192078(0xae)]),_0x52d1b2[_0x192078(0xb9)]=_[_0x192078(0x7f)](_0x4a39fe[_0x192078(0xb9)]),_0x52d1b2['filters']=_[_0x192078(0xe6)](_0x52d1b2['model'],_0x52d1b2[_0x192078(0xb9)]),_0x563b79[_0x192078(0xe0)]=_['intersection'](_0x52d1b2['model'],qs[_0x192078(0xc6)](_0x4a39fe[_0x192078(0xb9)][_0x192078(0xc6)])),_0x563b79[_0x192078(0xe0)]=_0x563b79['attributes']['length']?_0x563b79[_0x192078(0xe0)]:_0x52d1b2[_0x192078(0xa6)],_0x4a39fe[_0x192078(0xb9)][_0x192078(0x83)]&&(_0x563b79[_0x192078(0xd1)]=[{'all':!![]}]),_0x563b79=_[_0x192078(0xba)]({},_0x563b79,_0x4a39fe[_0x192078(0x98)]),db[_0x192078(0xb3)][_0x192078(0x87)](_0x563b79)['then'](handleEntityNotFound(_0x430ed5,null))[_0x192078(0xbe)](respondWithResult(_0x430ed5,null))[_0x192078(0xb8)](handleError(_0x430ed5,null));},exports['create']=function(_0x472b39,_0x92e5d7){const _0x141b64=a188_0x21b99b;return db[_0x141b64(0xb3)][_0x141b64(0xce)](_0x472b39['body'],{})[_0x141b64(0xbe)](function(_0x3157db){const _0xd43871=_0x141b64,_0x246ac2=_0x472b39[_0xd43871(0x8b)][_0xd43871(0xde)]({'plain':!![]});if(!_0x246ac2)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x246ac2['role']===_0xd43871(0x8b)){const _0x33f6e7=_0x3157db['get']({'plain':!![]}),_0xbcffe2=_0xd43871(0x85);return db[_0xd43871(0xd8)][_0xd43871(0x87)]({'where':{'name':_0xbcffe2,'userProfileId':_0x246ac2[_0xd43871(0xda)]},'raw':!![]})['then'](function(_0x8d222c){const _0x424afe=_0xd43871;return _0x8d222c&&_0x8d222c[_0x424afe(0xeb)]===0x0?db[_0x424afe(0xc8)]['create']({'name':_0x33f6e7[_0x424afe(0xa9)],'resourceId':_0x33f6e7['id'],'type':_0x8d222c[_0x424afe(0xa9)],'sectionId':_0x8d222c['id']},{})['then'](function(){return _0x3157db;}):_0x3157db;})[_0xd43871(0xb8)](function(_0x128c65){const _0x319a8f=_0xd43871;logger[_0x319a8f(0xd9)](_0x319a8f(0xec),_0x128c65);throw _0x128c65;});}return _0x3157db;})[_0x141b64(0xbe)](respondWithResult(_0x92e5d7,0xc9))[_0x141b64(0xb8)](handleError(_0x92e5d7,null));},exports['update']=function(_0x5f3635,_0x56813a){const _0x31513a=a188_0x21b99b;return _0x5f3635['body']['id']&&delete _0x5f3635[_0x31513a(0x8c)]['id'],db['CmList']['findOne']({'where':{'id':_0x5f3635[_0x31513a(0xcd)]['id']}})['then'](handleEntityNotFound(_0x56813a,null))[_0x31513a(0xbe)](saveUpdates(_0x5f3635[_0x31513a(0x8c)],null))[_0x31513a(0xbe)](respondWithResult(_0x56813a,null))[_0x31513a(0xb8)](handleError(_0x56813a,null));},exports[a188_0x21b99b(0xe9)]=function(_0x249dff,_0x12a364){const _0x1b17db=a188_0x21b99b;return db[_0x1b17db(0xb3)][_0x1b17db(0x87)]({'where':{'id':_0x249dff[_0x1b17db(0xcd)]['id']}})['then'](handleEntityNotFound(_0x12a364,null))[_0x1b17db(0xbe)](removeEntity(_0x12a364,null))[_0x1b17db(0xb8)](handleError(_0x12a364,null));},exports[a188_0x21b99b(0x8a)]=function(_0xccf1de,_0x445f76){const _0x433939=a188_0x21b99b;return db[_0x433939(0xb3)][_0x433939(0x8a)]()['then'](respondWithResult(_0x445f76,null))['catch'](handleError(_0x445f76,null));},exports['addDisposition']=function(_0x541da9,_0x39c57e){const _0x3552cd=a188_0x21b99b;return _0x541da9[_0x3552cd(0x8c)]['id']&&delete _0x541da9[_0x3552cd(0x8c)]['id'],db[_0x3552cd(0xb3)][_0x3552cd(0x87)]({'where':{'id':_0x541da9[_0x3552cd(0xcd)]['id']}})[_0x3552cd(0xbe)](handleEntityNotFound(_0x39c57e,null))[_0x3552cd(0xbe)](function(_0x457ff4){const _0x22c741=_0x3552cd;if(_0x457ff4)return _0x541da9[_0x22c741(0x8c)][_0x22c741(0xbd)]=_0x457ff4['id'],db[_0x22c741(0xc1)][_0x22c741(0xce)](_0x541da9[_0x22c741(0x8c)]);})['then'](respondWithResult(_0x39c57e,null))[_0x3552cd(0xb8)](handleError(_0x39c57e,null));},exports[a188_0x21b99b(0xad)]=function(_0x4ef8d0,_0x5a7130){const _0x4cba8f=a188_0x21b99b;let _0x1bccc6={'raw':![],'where':{}};const _0x58b368={},_0x4e59f2={'count':0x0,'rows':[]};return db[_0x4cba8f(0xb3)]['findOne']({'where':{'id':_0x4ef8d0[_0x4cba8f(0xcd)]['id']}})['then'](handleEntityNotFound(_0x5a7130,null))[_0x4cba8f(0xbe)](function(_0x597d6a){const _0x5e8f3d=_0x4cba8f;if(_0x597d6a)return _0x58b368[_0x5e8f3d(0xa6)]=_[_0x5e8f3d(0x7f)](db[_0x5e8f3d(0xc1)][_0x5e8f3d(0xae)]),_0x58b368['query']=_[_0x5e8f3d(0x7f)](_0x4ef8d0[_0x5e8f3d(0xb9)]),_0x58b368[_0x5e8f3d(0xbc)]=_[_0x5e8f3d(0xe6)](_0x58b368['model'],_0x58b368[_0x5e8f3d(0xb9)]),_0x1bccc6['attributes']=_[_0x5e8f3d(0xe6)](_0x58b368[_0x5e8f3d(0xa6)],qs[_0x5e8f3d(0xc6)](_0x4ef8d0['query'][_0x5e8f3d(0xc6)])),_0x1bccc6[_0x5e8f3d(0xe0)]=_0x1bccc6['attributes'][_0x5e8f3d(0xa0)]?_0x1bccc6['attributes']:_0x58b368[_0x5e8f3d(0xa6)],typeof _0x4ef8d0['query'][_0x5e8f3d(0xe2)]===_0x5e8f3d(0x89)&&(_0x1bccc6['limit']=qs[_0x5e8f3d(0xdc)](_0x4ef8d0[_0x5e8f3d(0xb9)][_0x5e8f3d(0xdc)]),_0x1bccc6[_0x5e8f3d(0xb5)]=qs[_0x5e8f3d(0xb5)](_0x4ef8d0[_0x5e8f3d(0xb9)][_0x5e8f3d(0xb5)])),_0x1bccc6[_0x5e8f3d(0xaf)]=qs[_0x5e8f3d(0xe4)](_0x4ef8d0['query'][_0x5e8f3d(0xe4)]),_0x1bccc6['where']=qs['filters'](_[_0x5e8f3d(0x95)](_0x4ef8d0[_0x5e8f3d(0xb9)],_0x58b368[_0x5e8f3d(0xbc)])),_0x1bccc6[_0x5e8f3d(0x9c)][_0x5e8f3d(0xbd)]=_0x597d6a['id'],_0x4ef8d0['query'][_0x5e8f3d(0x91)]&&(_0x1bccc6[_0x5e8f3d(0x9c)]=_[_0x5e8f3d(0xba)](_0x1bccc6['where'],{[Op['or']]:_[_0x5e8f3d(0xca)](_0x1bccc6[_0x5e8f3d(0xe0)],function(_0x5a8d32){const _0xcd57a1=_0x5e8f3d,_0x20d5e5={};return _0x20d5e5[_0x5a8d32]={[Op[_0xcd57a1(0xea)]]:'%'+_0x4ef8d0[_0xcd57a1(0xb9)]['filter']+'%'},_0x20d5e5;})})),_0x1bccc6=_[_0x5e8f3d(0xba)]({},_0x1bccc6,_0x4ef8d0[_0x5e8f3d(0x98)]),db[_0x5e8f3d(0xc1)]['count']({'where':_0x1bccc6['where']})[_0x5e8f3d(0xbe)](function(_0x1e3586){const _0x56476d=_0x5e8f3d;return _0x4e59f2[_0x56476d(0xc0)]=_0x1e3586,_0x4ef8d0['query']['includeAll']&&(_0x1bccc6[_0x56476d(0xd1)]=[{'all':!![]}]),db['Disposition'][_0x56476d(0x94)](_0x1bccc6);})[_0x5e8f3d(0xbe)](function(_0x14bb40){return _0x4e59f2['rows']=_0x14bb40,_0x4e59f2;});})[_0x4cba8f(0xbe)](respondWithFilteredResult(_0x5a7130,_0x1bccc6))[_0x4cba8f(0xb8)](handleError(_0x5a7130,null));},exports[a188_0x21b99b(0x86)]=function(_0x3f8c1a,_0x2d92b5){const _0x33498c=a188_0x21b99b;return db[_0x33498c(0xb3)][_0x33498c(0x87)]({'where':{'id':_0x3f8c1a[_0x33498c(0xcd)]['id']}})[_0x33498c(0xbe)](handleEntityNotFound(_0x2d92b5,null))[_0x33498c(0xbe)](function(_0x3c0c64){const _0x20377b=_0x33498c;if(_0x3c0c64)return _0x3c0c64[_0x20377b(0x86)](_0x3f8c1a[_0x20377b(0xb9)][_0x20377b(0x8f)]);})['then'](respondWithStatusCode(_0x2d92b5,null))[_0x33498c(0xb8)](handleError(_0x2d92b5,null));},exports['addContacts']=function(_0x5bcca5,_0x552612){const _0x24f3bb=a188_0x21b99b;return db['CmList'][_0x24f3bb(0x87)]({'where':{'id':_0x5bcca5[_0x24f3bb(0xcd)]['id']}})[_0x24f3bb(0xbe)](handleEntityNotFound(_0x552612,null))[_0x24f3bb(0xbe)](function(_0x11feb7){const _0x146431=_0x24f3bb;if(_0x11feb7){const _0x4dea26=[],_0x3cdab6={'success':[],'errors':[]};return db[_0x146431(0xc4)][_0x146431(0x8a)]()[_0x146431(0xbe)](function(_0x5acbf0){const _0xc1c9e=_0x146431;_0x5bcca5[_0xc1c9e(0x8c)][_0xc1c9e(0x9b)]&&_[_0xc1c9e(0x7d)](_0x5bcca5['body'][_0xc1c9e(0x9b)])?_0x5bcca5['body'][_0xc1c9e(0x9b)][_0xc1c9e(0xa0)]?_0x5bcca5[_0xc1c9e(0x8c)]['tags']=_0x5bcca5[_0xc1c9e(0x8c)][_0xc1c9e(0x9b)][_0xc1c9e(0xa8)](';')+';':_0x5bcca5[_0xc1c9e(0x8c)][_0xc1c9e(0x9b)]=null:_0x5bcca5['body'][_0xc1c9e(0x9b)]=null;if(_0x5bcca5['body']&&_[_0xc1c9e(0x7d)](_0x5bcca5[_0xc1c9e(0x8c)])){for(let _0x46425f=0x0;_0x46425f<_0x5bcca5[_0xc1c9e(0x8c)][_0xc1c9e(0xa0)];_0x46425f+=0x1){_0x5bcca5[_0xc1c9e(0x8c)][_0x46425f][_0xc1c9e(0xbd)]=_0x5bcca5[_0xc1c9e(0xcd)]['id'],_0x4dea26[_0xc1c9e(0xb2)](_0x5bcca5[_0xc1c9e(0x8c)][_0x46425f]);}return Promise['all'](_0x4dea26[_0xc1c9e(0xca)](_0x1b0c8d=>{const _0x4df39e=_0xc1c9e;return db[_0x4df39e(0xc4)][_0x4df39e(0xce)](_['omit'](_0x1b0c8d,['ids','id'])||{},{'fields':_['keys'](_0x5acbf0),'raw':!![]})[_0x4df39e(0xbe)](function(_0x217271){const _0x34da29=_0x4df39e;_0x3cdab6[_0x34da29(0xb4)]['push'](_0x217271[_0x34da29(0xaa)]);})[_0x4df39e(0xb8)](function(_0x48d0bb){const _0x52dd5e=_0x4df39e;_0x3cdab6[_0x52dd5e(0xb0)]['push']({'data':_0x1b0c8d,'error':_0x48d0bb['message']});});}))[_0xc1c9e(0xbe)](function(){return _0x3cdab6;})['catch'](function(_0x59df16){return _0x59df16;});}else _0x552612[_0xc1c9e(0xcf)](0x190)['json']({'message':_0xc1c9e(0xdd)});});}})[_0x24f3bb(0xbe)](respondWithResult(_0x552612,null))[_0x24f3bb(0xb8)](handleError(_0x552612,null));},exports['getContacts']=function(_0x304624,_0x4f3189){const _0x12157a=a188_0x21b99b;let _0x8883d2;return db[_0x12157a(0xb3)]['findOne']({'where':{'id':_0x304624[_0x12157a(0xcd)]['id']},'include':[{'model':db[_0x12157a(0xbb)],'as':'CustomFields'}]})[_0x12157a(0xbe)](handleEntityNotFound(_0x4f3189,null))['then'](function(_0x4089de){const _0x225678=_0x12157a;if(_0x4089de)return _0x8883d2=_0x4089de,db[_0x225678(0xc4)][_0x225678(0xae)];})['then'](function(_0x150b39){const _0x2aae53=_0x12157a;if(_0x150b39){let _0x2b40d7={};const _0x26eb61={};return _0x26eb61['model']=_[_0x2aae53(0xdb)](_[_0x2aae53(0x7f)](_0x150b39),_['map'](_0x8883d2[_0x2aae53(0xa2)],function(_0x103211){const _0x3dee28=_0x2aae53;return util[_0x3dee28(0x9f)](_0x3dee28(0xc5),_0x103211['id']);})),_0x26eb61[_0x2aae53(0xb9)]=_[_0x2aae53(0x7f)](_0x304624['query']),_0x26eb61[_0x2aae53(0xbc)]=_[_0x2aae53(0xe6)](_0x26eb61['model'],_0x26eb61[_0x2aae53(0xb9)]),_0x2b40d7[_0x2aae53(0xe0)]=_[_0x2aae53(0xe6)](_0x26eb61['model'],qs[_0x2aae53(0xc6)](_0x304624['query'][_0x2aae53(0xc6)])),_0x2b40d7['attributes']=_0x2b40d7[_0x2aae53(0xe0)][_0x2aae53(0xa0)]?_0x2b40d7[_0x2aae53(0xe0)]:_0x26eb61[_0x2aae53(0xa6)],typeof _0x304624[_0x2aae53(0xb9)][_0x2aae53(0xe2)]==='undefined'&&(_0x2b40d7[_0x2aae53(0xdc)]=qs[_0x2aae53(0xdc)](_0x304624[_0x2aae53(0xb9)][_0x2aae53(0xdc)]),_0x2b40d7[_0x2aae53(0xb5)]=qs[_0x2aae53(0xb5)](_0x304624[_0x2aae53(0xb9)][_0x2aae53(0xb5)])),_0x2b40d7[_0x2aae53(0xaf)]=qs[_0x2aae53(0xe4)](_0x304624['query'][_0x2aae53(0xe4)]),_0x2b40d7['where']=qs['filters'](_[_0x2aae53(0x95)](_0x304624['query'],_0x26eb61[_0x2aae53(0xbc)])),_0x2b40d7[_0x2aae53(0x92)]=!![],_0x304624['query'][_0x2aae53(0x91)]&&(_0x2b40d7['where']=_[_0x2aae53(0xba)](_0x2b40d7['where'],{[Op['or']]:_[_0x2aae53(0xca)](_0x2b40d7['attributes'],function(_0x49254b){const _0x1e8dee=_0x2aae53,_0x472de1={};return _0x472de1[_0x49254b]={[Op[_0x1e8dee(0xea)]]:'%'+_0x304624[_0x1e8dee(0xb9)][_0x1e8dee(0x91)]+'%'},_0x472de1;})})),_0x2b40d7=_[_0x2aae53(0xba)]({},_0x2b40d7,_0x304624['options']),_0x8883d2[_0x2aae53(0xcb)](_0x2b40d7);}})['then'](respondWithResult(_0x4f3189,null))[_0x12157a(0xb8)](handleError(_0x4f3189,null));},exports[a188_0x21b99b(0x7e)]=function(_0x5eab0b,_0x3467c9){const _0xf9c3db=a188_0x21b99b;let _0x37cfb7;return db[_0xf9c3db(0xb3)][_0xf9c3db(0x87)]({'where':{'id':_0x5eab0b['params']['id']},'include':[{'model':db[_0xf9c3db(0xbb)],'as':_0xf9c3db(0xa2)}]})[_0xf9c3db(0xbe)](handleEntityNotFound(_0x3467c9,null))['then'](function(_0x3361bc){const _0x1a1e1d=_0xf9c3db;if(_0x3361bc)return _0x37cfb7=_0x3361bc,db[_0x1a1e1d(0xc4)][_0x1a1e1d(0xae)];})[_0xf9c3db(0xbe)](function(_0x3b938e){const _0x48c53e=_0xf9c3db;if(_0x3b938e){let _0x47c1fd={};const _0x1df7c7={};return _0x1df7c7['model']=_[_0x48c53e(0xdb)](_[_0x48c53e(0x7f)](_0x3b938e),_[_0x48c53e(0xca)](_0x37cfb7['CustomFields'],function(_0x1c7282){const _0x13a652=_0x48c53e;return util['format'](_0x13a652(0xc5),_0x1c7282['id']);})),_0x1df7c7['query']=_['keys'](_0x5eab0b[_0x48c53e(0xb9)]),_0x1df7c7[_0x48c53e(0xbc)]=_[_0x48c53e(0xe6)](_0x1df7c7['model'],_0x1df7c7['query']),_0x47c1fd[_0x48c53e(0xe0)]=_[_0x48c53e(0xe6)](_0x1df7c7[_0x48c53e(0xa6)],qs[_0x48c53e(0xc6)](_0x5eab0b[_0x48c53e(0xb9)][_0x48c53e(0xc6)])),_0x47c1fd[_0x48c53e(0xe0)]=_0x47c1fd[_0x48c53e(0xe0)][_0x48c53e(0xa0)]?_0x47c1fd[_0x48c53e(0xe0)]:_0x1df7c7[_0x48c53e(0xa6)],typeof _0x5eab0b[_0x48c53e(0xb9)][_0x48c53e(0xe2)]===_0x48c53e(0x89)&&(_0x47c1fd[_0x48c53e(0xdc)]=qs['limit'](_0x5eab0b[_0x48c53e(0xb9)][_0x48c53e(0xdc)]),_0x47c1fd['offset']=qs[_0x48c53e(0xb5)](_0x5eab0b[_0x48c53e(0xb9)]['offset'])),_0x47c1fd[_0x48c53e(0xaf)]=qs['sort'](_0x5eab0b[_0x48c53e(0xb9)][_0x48c53e(0xe4)]),_0x47c1fd[_0x48c53e(0x9c)]=qs[_0x48c53e(0xbc)](_['pick'](_0x5eab0b[_0x48c53e(0xb9)],_0x1df7c7[_0x48c53e(0xbc)])),_0x47c1fd[_0x48c53e(0x92)]=!![],_0x5eab0b[_0x48c53e(0xb9)][_0x48c53e(0x91)]&&(_0x47c1fd[_0x48c53e(0x9c)]=_[_0x48c53e(0xba)](_0x47c1fd[_0x48c53e(0x9c)],{[Op['or']]:_[_0x48c53e(0xca)](_0x47c1fd[_0x48c53e(0xe0)],function(_0x379271){const _0x594320=_0x48c53e,_0x4bce12={};return _0x4bce12[_0x379271]={[Op[_0x594320(0xea)]]:'%'+_0x5eab0b[_0x594320(0xb9)][_0x594320(0x91)]+'%'},_0x4bce12;})})),_0x47c1fd=_['merge']({},_0x47c1fd,_0x5eab0b[_0x48c53e(0x98)]),_0x37cfb7[_0x48c53e(0xcb)](_0x47c1fd);}})[_0xf9c3db(0xbe)](function(_0x44ed06){const _0x53347f=_0xf9c3db;if(!_['isEmpty'](_0x44ed06)){const _0x27d158=toCsv(_0x44ed06),_0x296c45=Date[_0x53347f(0x90)]();return fs[_0x53347f(0xd4)](util['format']('/tmp/list_%d_%s.csv',_0x37cfb7['id'],_0x296c45),_0x27d158),_0x3467c9['setHeader']('Content-disposition',_0x53347f(0xd7)+util[_0x53347f(0x9f)](_0x53347f(0xa1),_0x37cfb7['id'],_0x296c45)),_0x3467c9[_0x53347f(0xb1)](_0x53347f(0xe5),_0x53347f(0x82)),_0x3467c9[_0x53347f(0x9a)](util[_0x53347f(0x9f)](_0x53347f(0x96),_0x37cfb7['id'],_0x296c45));}else return _0x3467c9[_0x53347f(0xe3)](0xcc);})[_0xf9c3db(0xb8)](handleError(_0x3467c9,null));},exports[a188_0x21b99b(0xab)]=function(_0x483e1e,_0x1fb3d9){const _0x579d65=a188_0x21b99b;let _0x29fa59;return delete _0x483e1e[_0x579d65(0x8c)]['id'],db[_0x579d65(0xb3)]['findOne']({'where':{'id':_0x483e1e[_0x579d65(0xcd)]['id']}})[_0x579d65(0xbe)](handleEntityNotFound(_0x1fb3d9,null))[_0x579d65(0xbe)](function(_0x4b7eca){const _0xfcb819=_0x579d65;if(_0x4b7eca)return db['sequelize'][_0xfcb819(0x88)](function(_0x53048b){const _0xf4884=_0xfcb819;return db[_0xf4884(0xbb)][_0xf4884(0xce)](_0x483e1e[_0xf4884(0x8c)],{'transaction':_0x53048b})[_0xf4884(0xbe)](function(_0x4d0b99){const _0x279beb=_0xf4884;return _0x29fa59=_0x4d0b99,_0x4b7eca[_0x279beb(0xd2)](_0x4d0b99,{'transaction':_0x53048b});})[_0xf4884(0xbe)](function(){const _0x56fb44=_0xf4884,_0x57efbc={'type':DataTypes[_0x56fb44(0xc2)],'transaction':_0x53048b};switch(_0x483e1e[_0x56fb44(0x8c)][_0x56fb44(0xc9)]){case _0x56fb44(0xac):_0x57efbc[_0x56fb44(0xc9)]=DataTypes[_0x56fb44(0xc2)];break;case _0x56fb44(0xd0):_0x57efbc[_0x56fb44(0xc9)]=DataTypes[_0x56fb44(0xa7)];break;case _0x56fb44(0x9e):_0x57efbc[_0x56fb44(0xc9)]=DataTypes[_0x56fb44(0xc3)],_0x57efbc['defaultValue']=![];break;default:}return db[_0x56fb44(0x93)]['queryInterface'][_0x56fb44(0xe1)](_0x56fb44(0x8e),util[_0x56fb44(0x9f)]('cf_%s',_0x29fa59['id']),_0x57efbc);})['then'](function(){return _0x29fa59;});});})[_0x579d65(0xbe)](respondWithResult(_0x1fb3d9,null))[_0x579d65(0xb8)](handleError(_0x1fb3d9,null));},exports[a188_0x21b99b(0xd5)]=function(_0xc0caf,_0x38ffa2){const _0x1ff13d=a188_0x21b99b;let _0x55346a={};const _0x27d5f2={};return db[_0x1ff13d(0xb3)][_0x1ff13d(0x87)]({'where':{'id':_0xc0caf['params']['id']}})[_0x1ff13d(0xbe)](handleEntityNotFound(_0x38ffa2,null))[_0x1ff13d(0xbe)](function(_0x5c05a1){const _0x2e6ed4=_0x1ff13d;if(_0x5c05a1){_0x27d5f2[_0x2e6ed4(0xa6)]=_[_0x2e6ed4(0x7f)](db[_0x2e6ed4(0xbb)][_0x2e6ed4(0xae)]),_0x27d5f2[_0x2e6ed4(0xb9)]=_[_0x2e6ed4(0x7f)](_0xc0caf[_0x2e6ed4(0xb9)]),_0x27d5f2[_0x2e6ed4(0xbc)]=_[_0x2e6ed4(0xe6)](_0x27d5f2[_0x2e6ed4(0xa6)],_0x27d5f2[_0x2e6ed4(0xb9)]),_0x55346a[_0x2e6ed4(0xe0)]=_['intersection'](_0x27d5f2[_0x2e6ed4(0xa6)],qs[_0x2e6ed4(0xc6)](_0xc0caf[_0x2e6ed4(0xb9)][_0x2e6ed4(0xc6)])),_0x55346a[_0x2e6ed4(0xe0)]=_0x55346a['attributes'][_0x2e6ed4(0xa0)]?_0x55346a[_0x2e6ed4(0xe0)]:_0x27d5f2[_0x2e6ed4(0xa6)],_0x55346a['order']=qs[_0x2e6ed4(0xe4)](_0xc0caf[_0x2e6ed4(0xb9)][_0x2e6ed4(0xe4)]),_0x55346a[_0x2e6ed4(0x9c)]=qs['filters'](_[_0x2e6ed4(0x95)](_0xc0caf[_0x2e6ed4(0xb9)],_0x27d5f2['filters']));let _0x526190={'ListId':null};return _0x5c05a1['id']&&(_0x526190={'ListId':_0x5c05a1['id']}),_0x55346a[_0x2e6ed4(0x9c)]=_[_0x2e6ed4(0xba)](_0x55346a[_0x2e6ed4(0x9c)],_0x526190),_0xc0caf[_0x2e6ed4(0xb9)][_0x2e6ed4(0x91)]&&(_0x55346a['where']=_[_0x2e6ed4(0xba)](_0x55346a[_0x2e6ed4(0x9c)],{[Op['or']]:_['map'](_0x55346a[_0x2e6ed4(0xe0)],function(_0x32c2b5){const _0x48b663=_0x2e6ed4,_0x3a0216={};return _0x3a0216[_0x32c2b5]={[Op[_0x48b663(0xea)]]:'%'+_0xc0caf[_0x48b663(0xb9)][_0x48b663(0x91)]+'%'},_0x3a0216;})})),_0x55346a=_[_0x2e6ed4(0xba)]({},_0x55346a,_0xc0caf[_0x2e6ed4(0x98)]),db['CmCustomField']['findAndCountAll'](_0x55346a);}})[_0x1ff13d(0xbe)](respondWithResult(_0x38ffa2,null))[_0x1ff13d(0xb8)](handleError(_0x38ffa2,null));},exports[a188_0x21b99b(0x80)]=function(_0x3aa873,_0x471f0d){const _0x547dfe=a188_0x21b99b;return db['CmList']['findOne']({'where':{'id':_0x3aa873[_0x547dfe(0xcd)]['id']}})['then'](function(_0x21eb08){const _0x50c1c4=_0x547dfe;if(_0x21eb08)return _0x21eb08[_0x50c1c4(0x80)](_0x3aa873[_0x50c1c4(0x8c)][_0x50c1c4(0x8f)],{'through':_['omit'](_0x3aa873[_0x50c1c4(0x8c)],['ids','id'])})[_0x50c1c4(0xbe)](function(_0x212660){const _0x162d9b=_0x50c1c4;for(let _0x4a49ca=0x0;_0x4a49ca<_0x3aa873[_0x162d9b(0x8c)][_0x162d9b(0x8f)][_0x162d9b(0xa0)];_0x4a49ca+=0x1){socket['emit']('userCmList:save',{'UserId':_0x3aa873[_0x162d9b(0x8c)]['ids'][_0x4a49ca],'CmListId':_0x3aa873[_0x162d9b(0xcd)]['id']});}return _0x212660;});})['then'](respondWithResult(_0x471f0d,null))[_0x547dfe(0xb8)](handleError(_0x471f0d,null));},exports[a188_0x21b99b(0x99)]=function(_0x3268ed,_0x1ac4d5){const _0x5dde71=a188_0x21b99b;return db[_0x5dde71(0xb3)]['findOne']({'where':{'id':_0x3268ed['params']['id']}})['then'](handleEntityNotFound(_0x1ac4d5,null))[_0x5dde71(0xbe)](function(_0x136b6e){const _0x10ec03=_0x5dde71;if(_0x136b6e)return _0x136b6e[_0x10ec03(0x99)](_0x3268ed[_0x10ec03(0xb9)][_0x10ec03(0x8f)])[_0x10ec03(0xbe)](function(){const _0x7e4ce2=_0x10ec03;if(_[_0x7e4ce2(0x7d)](_0x3268ed['query'][_0x7e4ce2(0x8f)]))for(let _0x45caed=0x0;_0x45caed<_0x3268ed[_0x7e4ce2(0xb9)]['ids'][_0x7e4ce2(0xa0)];_0x45caed+=0x1){socket[_0x7e4ce2(0xbf)](_0x7e4ce2(0xee),{'UserId':Number(_0x3268ed[_0x7e4ce2(0xb9)]['ids'][_0x45caed]),'CmListId':Number(_0x3268ed[_0x7e4ce2(0xcd)]['id'])});}else socket['emit'](_0x7e4ce2(0xee),{'UserId':Number(_0x3268ed['query']['ids']),'CmListId':Number(_0x3268ed['params']['id'])});});})['then'](respondWithStatusCode(_0x1ac4d5,null))[_0x5dde71(0xb8)](handleError(_0x1ac4d5,null));},exports[a188_0x21b99b(0xa5)]=function(_0xcb6959,_0x50a2af){const _0x2a565a=a188_0x21b99b;let _0x197ee7={};const _0x488d02={};let _0x18e0d7,_0x13510e;return db[_0x2a565a(0xb3)]['findOne']({'where':{'id':_0xcb6959[_0x2a565a(0xcd)]['id']}})[_0x2a565a(0xbe)](handleEntityNotFound(_0x50a2af,null))[_0x2a565a(0xbe)](function(_0x561b90){const _0xbc2308=_0x2a565a;if(_0x561b90)return _0x18e0d7=_0x561b90,_0x488d02[_0xbc2308(0xa6)]=_[_0xbc2308(0x7f)](db['User']['rawAttributes']),_0x488d02[_0xbc2308(0xb9)]=_[_0xbc2308(0x7f)](_0xcb6959['query']),_0x488d02[_0xbc2308(0xbc)]=_['intersection'](_0x488d02[_0xbc2308(0xa6)],_0x488d02[_0xbc2308(0xb9)]),_0x197ee7[_0xbc2308(0xe0)]=_[_0xbc2308(0xe6)](_0x488d02[_0xbc2308(0xa6)],qs[_0xbc2308(0xc6)](_0xcb6959[_0xbc2308(0xb9)][_0xbc2308(0xc6)])),_0x197ee7[_0xbc2308(0xe0)]=_0x197ee7[_0xbc2308(0xe0)]['length']?_0x197ee7[_0xbc2308(0xe0)]:_0x488d02['model'],_0x197ee7[_0xbc2308(0xaf)]=qs[_0xbc2308(0xe4)](_0xcb6959[_0xbc2308(0xb9)][_0xbc2308(0xe4)]),_0x197ee7[_0xbc2308(0x9c)]=qs['filters'](_[_0xbc2308(0x95)](_0xcb6959[_0xbc2308(0xb9)],_0x488d02[_0xbc2308(0xbc)])),_0xcb6959[_0xbc2308(0xb9)][_0xbc2308(0x91)]&&(_0x197ee7['where']=_[_0xbc2308(0xba)](_0x197ee7['where'],{[Op['or']]:_[_0xbc2308(0xca)](_0x197ee7[_0xbc2308(0xe0)],function(_0x4bd6f4){const _0x2e6584=_0xbc2308,_0xff03c6={};return _0xff03c6[_0x4bd6f4]={[Op[_0x2e6584(0xea)]]:'%'+_0xcb6959[_0x2e6584(0xb9)][_0x2e6584(0x91)]+'%'},_0xff03c6;})})),_0x197ee7=_[_0xbc2308(0xba)]({},_0x197ee7,_0xcb6959[_0xbc2308(0x98)]),_0x18e0d7[_0xbc2308(0xa5)](_0x197ee7);})[_0x2a565a(0xbe)](function(_0x57185d){const _0x1fd130=_0x2a565a;if(_0x57185d)return _0x13510e=_0x57185d[_0x1fd130(0xa0)],typeof _0xcb6959['query']['nolimit']===_0x1fd130(0x89)&&(_0x197ee7[_0x1fd130(0xdc)]=qs[_0x1fd130(0xdc)](_0xcb6959[_0x1fd130(0xb9)]['limit']),_0x197ee7['offset']=qs[_0x1fd130(0xb5)](_0xcb6959['query'][_0x1fd130(0xb5)])),_0x18e0d7[_0x1fd130(0xa5)](_0x197ee7);})[_0x2a565a(0xbe)](function(_0x3f5c6d){if(_0x3f5c6d)return _0x3f5c6d?{'count':_0x13510e,'rows':_0x3f5c6d}:null;})[_0x2a565a(0xbe)](respondWithResult(_0x50a2af,null))[_0x2a565a(0xb8)](handleError(_0x50a2af,null));}; \ No newline at end of file diff --git a/server/api/cmList/cmList.events.js b/server/api/cmList/cmList.events.js index 6c3b1fa..e6da63d 100644 --- a/server/api/cmList/cmList.events.js +++ b/server/api/cmList/cmList.events.js @@ -1 +1 @@ -const a189_0x52fc=['remove','exports','update','emit','undefined','CmList','../../mysqldb'];(function(_0x55a862,_0x4fc6e3){const _0x52fcaf=function(_0x5d9d11){while(--_0x5d9d11){_0x55a862['push'](_0x55a862['shift']());}};_0x52fcaf(++_0x4fc6e3);}(a189_0x52fc,0x1e8));const a189_0x5d9d=function(_0x55a862,_0x4fc6e3){_0x55a862=_0x55a862-0x1e9;let _0x52fcaf=a189_0x52fc[_0x55a862];return _0x52fcaf;};const a189_0x303cc5=a189_0x5d9d;'use strict';const EventEmitter=require('events'),CmList=require(a189_0x303cc5(0x1ea))['db'][a189_0x303cc5(0x1e9)],CmListEvents=new EventEmitter();CmListEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':a189_0x303cc5(0x1ed),'afterDestroy':a189_0x303cc5(0x1eb)};function emitEvent(_0x112ce5){return function(_0x2d8d41){const _0x40f068=a189_0x5d9d;CmListEvents[_0x40f068(0x1ee)](_0x112ce5+':'+_0x2d8d41['id'],_0x2d8d41),CmListEvents[_0x40f068(0x1ee)](_0x112ce5,_0x2d8d41);};}for(const e in events){if(typeof events[e]!==a189_0x303cc5(0x1ef)){const event=events[e];CmList['addHook'](e,emitEvent(event));}}module[a189_0x303cc5(0x1ec)]=CmListEvents; \ No newline at end of file +const a189_0x5e52=['emit','events','save','undefined','setMaxListeners','update','CmList','../../mysqldb'];(function(_0x7f2174,_0x215549){const _0x5e521e=function(_0x693564){while(--_0x693564){_0x7f2174['push'](_0x7f2174['shift']());}};_0x5e521e(++_0x215549);}(a189_0x5e52,0x195));const a189_0x6935=function(_0x7f2174,_0x215549){_0x7f2174=_0x7f2174-0x16e;let _0x5e521e=a189_0x5e52[_0x7f2174];return _0x5e521e;};const a189_0x121cd2=a189_0x6935;'use strict';const EventEmitter=require(a189_0x121cd2(0x172)),CmList=require(a189_0x121cd2(0x170))['db'][a189_0x121cd2(0x16f)],CmListEvents=new EventEmitter();CmListEvents[a189_0x121cd2(0x175)](0x0);const events={'afterCreate':a189_0x121cd2(0x173),'afterUpdate':a189_0x121cd2(0x16e),'afterDestroy':'remove'};function emitEvent(_0x46efe8){return function(_0x46d92c){const _0x6cf4=a189_0x6935;CmListEvents['emit'](_0x46efe8+':'+_0x46d92c['id'],_0x46d92c),CmListEvents[_0x6cf4(0x171)](_0x46efe8,_0x46d92c);};}for(const e in events){if(typeof events[e]!==a189_0x121cd2(0x174)){const event=events[e];CmList['addHook'](e,emitEvent(event));}}module['exports']=CmListEvents; \ No newline at end of file diff --git a/server/api/cmList/cmList.model.js b/server/api/cmList/cmList.model.js index 78e9bdd..bb04206 100644 --- a/server/api/cmList/cmList.model.js +++ b/server/api/cmList/cmList.model.js @@ -1 +1 @@ -const a190_0x5af5=['init','function','CmList','exports'];(function(_0x2914b9,_0x3b6271){const _0x5af553=function(_0x3196ab){while(--_0x3196ab){_0x2914b9['push'](_0x2914b9['shift']());}};_0x5af553(++_0x3b6271);}(a190_0x5af5,0xe8));const a190_0x3196=function(_0x2914b9,_0x3b6271){_0x2914b9=_0x2914b9-0x7b;let _0x5af553=a190_0x5af5[_0x2914b9];return _0x5af553;};const a190_0x23d5c4=a190_0x3196;'use strict';const {Model}=require('sequelize'),{attributes}=require('./cmList.attributes'),{options}=require('./cmList.options');class CmList extends Model{}function init(_0x4eac72,_0x327ac4){const _0x53592a=a190_0x3196,_0x4994ee=options(_0x4eac72),_0x3db698=typeof _0x327ac4===_0x53592a(0x7c)?_0x327ac4(_0x4994ee):_0x4994ee;return CmList[_0x53592a(0x7b)](attributes,_0x3db698),CmList;}module['exports'][a190_0x23d5c4(0x7d)]=CmList,module[a190_0x23d5c4(0x7e)][a190_0x23d5c4(0x7b)]=init; \ No newline at end of file +const a190_0x3e4c=['function','init','CmList','./cmList.attributes','sequelize','./cmList.options'];(function(_0x4f1977,_0x5fa7a3){const _0x3e4c5f=function(_0x56625b){while(--_0x56625b){_0x4f1977['push'](_0x4f1977['shift']());}};_0x3e4c5f(++_0x5fa7a3);}(a190_0x3e4c,0xe2));const a190_0x5662=function(_0x4f1977,_0x5fa7a3){_0x4f1977=_0x4f1977-0x13d;let _0x3e4c5f=a190_0x3e4c[_0x4f1977];return _0x3e4c5f;};const a190_0x49f7f7=a190_0x5662;'use strict';const {Model}=require(a190_0x49f7f7(0x13d)),{attributes}=require(a190_0x49f7f7(0x142)),{options}=require(a190_0x49f7f7(0x13e));class CmList extends Model{}function init(_0x2c5d44,_0x1a5156){const _0x45c0c9=a190_0x49f7f7,_0x5ece9d=options(_0x2c5d44),_0x50b0d5=typeof _0x1a5156===_0x45c0c9(0x13f)?_0x1a5156(_0x5ece9d):_0x5ece9d;return CmList[_0x45c0c9(0x140)](attributes,_0x50b0d5),CmList;}module['exports'][a190_0x49f7f7(0x141)]=CmList,module['exports'][a190_0x49f7f7(0x140)]=init; \ No newline at end of file diff --git a/server/api/cmList/cmList.options.js b/server/api/cmList/cmList.options.js index 6b382b1..c19a95c 100644 --- a/server/api/cmList/cmList.options.js +++ b/server/api/cmList/cmList.options.js @@ -1 +1 @@ -var a191_0x41d2=['options','cm_lists','exports'];(function(_0x5dd3ba,_0x46aa84){var _0x41d2bf=function(_0xf9a7e1){while(--_0xf9a7e1){_0x5dd3ba['push'](_0x5dd3ba['shift']());}};_0x41d2bf(++_0x46aa84);}(a191_0x41d2,0x11b));var a191_0xf9a7=function(_0x5dd3ba,_0x46aa84){_0x5dd3ba=_0x5dd3ba-0x70;var _0x41d2bf=a191_0x41d2[_0x5dd3ba];return _0x41d2bf;};var a191_0xfc057d=a191_0xf9a7;function options(_0x45742e){var _0x2e98c1=a191_0xf9a7;return{'sequelize':_0x45742e,'tableName':_0x2e98c1(0x70),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a191_0xfc057d(0x71)][a191_0xfc057d(0x72)]=options; \ No newline at end of file +var a191_0x2285=['exports','options'];(function(_0x1ddf31,_0x1941ce){var _0x22859=function(_0xd41505){while(--_0xd41505){_0x1ddf31['push'](_0x1ddf31['shift']());}};_0x22859(++_0x1941ce);}(a191_0x2285,0xc3));var a191_0xd415=function(_0x1ddf31,_0x1941ce){_0x1ddf31=_0x1ddf31-0x1c9;var _0x22859=a191_0x2285[_0x1ddf31];return _0x22859;};var a191_0x4874e0=a191_0xd415;function options(_0xc469da){return{'sequelize':_0xc469da,'tableName':'cm_lists','paranoid':![],'indexes':[],'timestamps':!![]};}module[a191_0x4874e0(0x1ca)][a191_0x4874e0(0x1c9)]=options; \ No newline at end of file diff --git a/server/api/cmList/cmList.rpc.js b/server/api/cmList/cmList.rpc.js index 842b6fe..096deb7 100644 --- a/server/api/cmList/cmList.rpc.js +++ b/server/api/cmList/cmList.rpc.js @@ -1 +1 @@ -const a192_0x5815=['register','./cmList.socket'];(function(_0x1b739b,_0x562cd1){const _0x581519=function(_0x452905){while(--_0x452905){_0x1b739b['push'](_0x1b739b['shift']());}};_0x581519(++_0x562cd1);}(a192_0x5815,0x18d));const a192_0x4529=function(_0x1b739b,_0x562cd1){_0x1b739b=_0x1b739b-0x9c;let _0x581519=a192_0x5815[_0x1b739b];return _0x581519;};const a192_0x931d9=a192_0x4529;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require(a192_0x931d9(0x9c))[a192_0x931d9(0x9d)](socket); \ No newline at end of file +const a192_0x5e3d=['register','./cmList.socket','../../rediscache'];(function(_0x5604d2,_0x1f8824){const _0x5e3d06=function(_0xe7ff4b){while(--_0xe7ff4b){_0x5604d2['push'](_0x5604d2['shift']());}};_0x5e3d06(++_0x1f8824);}(a192_0x5e3d,0x1de));const a192_0xe7ff=function(_0x5604d2,_0x1f8824){_0x5604d2=_0x5604d2-0x114;let _0x5e3d06=a192_0x5e3d[_0x5604d2];return _0x5e3d06;};const a192_0x312d9f=a192_0xe7ff;'use strict';const {getSocket}=require(a192_0x312d9f(0x115)),socket=getSocket();require(a192_0x312d9f(0x114))[a192_0x312d9f(0x116)](socket); \ No newline at end of file diff --git a/server/api/cmList/cmList.socket.js b/server/api/cmList/cmList.socket.js index af29389..47d78c8 100644 --- a/server/api/cmList/cmList.socket.js +++ b/server/api/cmList/cmList.socket.js @@ -1 +1 @@ -const a193_0x4628=['remove','emit','./cmList.events','save','length','update','cmList:'];(function(_0x43e17b,_0x5ee014){const _0x462896=function(_0x3ee0db){while(--_0x3ee0db){_0x43e17b['push'](_0x43e17b['shift']());}};_0x462896(++_0x5ee014);}(a193_0x4628,0x6e));const a193_0x3ee0=function(_0x43e17b,_0x5ee014){_0x43e17b=_0x43e17b-0x8f;let _0x462896=a193_0x4628[_0x43e17b];return _0x462896;};const a193_0x44550a=a193_0x3ee0;'use strict';const CmListEvents=require(a193_0x44550a(0x93)),events=[a193_0x44550a(0x94),a193_0x44550a(0x91),a193_0x44550a(0x8f)];function createListener(_0x49aea4,_0xa81c3a){return function(_0x4b33d8){const _0x3a2550=a193_0x3ee0;_0xa81c3a[_0x3a2550(0x92)](_0x49aea4,_0x4b33d8);};}exports['register']=function(_0xb78ddf){const _0x54c7e6=a193_0x44550a;for(let _0x9e82e2=0x0,_0x38f5ca=events[_0x54c7e6(0x95)];_0x9e82e2<_0x38f5ca;_0x9e82e2++){const _0x2b3479=events[_0x9e82e2],_0x105d9a=createListener(_0x54c7e6(0x90)+_0x2b3479,_0xb78ddf);CmListEvents['on'](_0x2b3479,_0x105d9a);}}; \ No newline at end of file +const a193_0x3125=['./cmList.events','emit','remove','cmList:','length','register'];(function(_0xf47bc9,_0x23a8fa){const _0x312504=function(_0x1aa17c){while(--_0x1aa17c){_0xf47bc9['push'](_0xf47bc9['shift']());}};_0x312504(++_0x23a8fa);}(a193_0x3125,0xd6));const a193_0x1aa1=function(_0xf47bc9,_0x23a8fa){_0xf47bc9=_0xf47bc9-0x147;let _0x312504=a193_0x3125[_0xf47bc9];return _0x312504;};const a193_0x32aa4d=a193_0x1aa1;'use strict';const CmListEvents=require(a193_0x32aa4d(0x149)),events=['save',a193_0x32aa4d(0x14b),'update'];function createListener(_0x3f9dd1,_0x37638e){return function(_0xbf4050){const _0x4927dc=a193_0x1aa1;_0x37638e[_0x4927dc(0x14a)](_0x3f9dd1,_0xbf4050);};}exports[a193_0x32aa4d(0x148)]=function(_0x474ee7){const _0x203cee=a193_0x32aa4d;for(let _0x37d17f=0x0,_0x203d1d=events[_0x203cee(0x147)];_0x37d17f<_0x203d1d;_0x37d17f++){const _0x26eaa7=events[_0x37d17f],_0x71423c=createListener(_0x203cee(0x14c)+_0x26eaa7,_0x474ee7);CmListEvents['on'](_0x26eaa7,_0x71423c);}}; \ No newline at end of file diff --git a/server/api/cmList/index.js b/server/api/cmList/index.js index 1da7cc3..e62438c 100644 --- a/server/api/cmList/index.js +++ b/server/api/cmList/index.js @@ -1 +1 @@ -const a194_0x24b0=['addContacts','put','getCustomFields','show','addCustomField','/:id/contacts/csv','/describe','/:id/dispositions','post','delete','getAgents','getDispositions','create','isAuthenticated','describe','express','Router','exports','/:id/fields','destroy','/:id/users','/:id/contacts','addDisposition','getContactsCsv','getContacts','get','../../components/auth/service','/:id','removeDispositions','./cmList.controller'];(function(_0x1106cf,_0x50f390){const _0x24b079=function(_0x2ad83a){while(--_0x2ad83a){_0x1106cf['push'](_0x1106cf['shift']());}};_0x24b079(++_0x50f390);}(a194_0x24b0,0x14f));const a194_0x2ad8=function(_0x1106cf,_0x50f390){_0x1106cf=_0x1106cf-0x192;let _0x24b079=a194_0x24b0[_0x1106cf];return _0x24b079;};const a194_0x514fcd=a194_0x2ad8;'use strict';const express=require(a194_0x514fcd(0x19c)),router=express[a194_0x514fcd(0x19d)](),auth=require(a194_0x514fcd(0x1a7)),controller=require(a194_0x514fcd(0x1aa));router[a194_0x514fcd(0x1a6)]('/',auth[a194_0x514fcd(0x19a)](),controller['index']),router['get'](a194_0x514fcd(0x193),auth[a194_0x514fcd(0x19a)](),controller[a194_0x514fcd(0x19b)]),router[a194_0x514fcd(0x1a6)](a194_0x514fcd(0x1a8),auth[a194_0x514fcd(0x19a)](),controller[a194_0x514fcd(0x1ae)]),router[a194_0x514fcd(0x1a6)](a194_0x514fcd(0x194),auth[a194_0x514fcd(0x19a)](),controller[a194_0x514fcd(0x198)]),router[a194_0x514fcd(0x1a6)](a194_0x514fcd(0x1a2),auth['isAuthenticated'](),controller[a194_0x514fcd(0x1a5)]),router['get'](a194_0x514fcd(0x192),auth[a194_0x514fcd(0x19a)](),controller[a194_0x514fcd(0x1a4)]),router[a194_0x514fcd(0x1a6)](a194_0x514fcd(0x19f),auth[a194_0x514fcd(0x19a)](),controller[a194_0x514fcd(0x1ad)]),router[a194_0x514fcd(0x1a6)]('/:id/users',auth[a194_0x514fcd(0x19a)](),controller[a194_0x514fcd(0x197)]),router['post']('/',auth[a194_0x514fcd(0x19a)](),controller[a194_0x514fcd(0x199)]),router[a194_0x514fcd(0x195)]('/:id/dispositions',auth['isAuthenticated'](),controller[a194_0x514fcd(0x1a3)]),router[a194_0x514fcd(0x195)](a194_0x514fcd(0x1a2),auth[a194_0x514fcd(0x19a)](),controller[a194_0x514fcd(0x1ab)]),router[a194_0x514fcd(0x195)](a194_0x514fcd(0x19f),auth[a194_0x514fcd(0x19a)](),controller[a194_0x514fcd(0x1af)]),router[a194_0x514fcd(0x195)](a194_0x514fcd(0x1a1),auth[a194_0x514fcd(0x19a)](),controller['addAgents']),router[a194_0x514fcd(0x1ac)]('/:id',auth['isAuthenticated'](),controller['update']),router[a194_0x514fcd(0x196)](a194_0x514fcd(0x1a8),auth['isAuthenticated'](),controller[a194_0x514fcd(0x1a0)]),router[a194_0x514fcd(0x196)](a194_0x514fcd(0x194),auth[a194_0x514fcd(0x19a)](),controller[a194_0x514fcd(0x1a9)]),router[a194_0x514fcd(0x196)]('/:id/users',auth[a194_0x514fcd(0x19a)](),controller['removeAgents']),module[a194_0x514fcd(0x19e)]=router; \ No newline at end of file +const a194_0x498d=['get','getCustomFields','../../components/auth/service','/:id/users','create','/:id/contacts','addContacts','/:id/fields','getContacts','/:id','show','removeDispositions','Router','exports','put','addAgents','isAuthenticated','delete','./cmList.controller','/:id/contacts/csv','getAgents','getContactsCsv','describe','getDispositions','/:id/dispositions','addCustomField','express','/describe','addDisposition','post'];(function(_0x4e3ec9,_0x1ef599){const _0x498d98=function(_0x5327ed){while(--_0x5327ed){_0x4e3ec9['push'](_0x4e3ec9['shift']());}};_0x498d98(++_0x1ef599);}(a194_0x498d,0x1ed));const a194_0x5327=function(_0x4e3ec9,_0x1ef599){_0x4e3ec9=_0x4e3ec9-0x78;let _0x498d98=a194_0x498d[_0x4e3ec9];return _0x498d98;};const a194_0xd0e435=a194_0x5327;'use strict';const express=require(a194_0xd0e435(0x85)),router=express[a194_0xd0e435(0x95)](),auth=require(a194_0xd0e435(0x8b)),controller=require(a194_0xd0e435(0x7d));router['get']('/',auth[a194_0xd0e435(0x7b)](),controller['index']),router[a194_0xd0e435(0x89)](a194_0xd0e435(0x86),auth['isAuthenticated'](),controller[a194_0xd0e435(0x81)]),router['get'](a194_0xd0e435(0x92),auth[a194_0xd0e435(0x7b)](),controller[a194_0xd0e435(0x93)]),router[a194_0xd0e435(0x89)](a194_0xd0e435(0x83),auth[a194_0xd0e435(0x7b)](),controller[a194_0xd0e435(0x82)]),router['get'](a194_0xd0e435(0x8e),auth[a194_0xd0e435(0x7b)](),controller[a194_0xd0e435(0x91)]),router['get'](a194_0xd0e435(0x7e),auth[a194_0xd0e435(0x7b)](),controller[a194_0xd0e435(0x80)]),router[a194_0xd0e435(0x89)](a194_0xd0e435(0x90),auth[a194_0xd0e435(0x7b)](),controller[a194_0xd0e435(0x8a)]),router['get']('/:id/users',auth['isAuthenticated'](),controller[a194_0xd0e435(0x7f)]),router[a194_0xd0e435(0x88)]('/',auth[a194_0xd0e435(0x7b)](),controller[a194_0xd0e435(0x8d)]),router['post'](a194_0xd0e435(0x83),auth['isAuthenticated'](),controller[a194_0xd0e435(0x87)]),router[a194_0xd0e435(0x88)](a194_0xd0e435(0x8e),auth[a194_0xd0e435(0x7b)](),controller[a194_0xd0e435(0x8f)]),router['post'](a194_0xd0e435(0x90),auth['isAuthenticated'](),controller[a194_0xd0e435(0x84)]),router[a194_0xd0e435(0x88)](a194_0xd0e435(0x8c),auth[a194_0xd0e435(0x7b)](),controller[a194_0xd0e435(0x7a)]),router[a194_0xd0e435(0x79)](a194_0xd0e435(0x92),auth[a194_0xd0e435(0x7b)](),controller['update']),router['delete'](a194_0xd0e435(0x92),auth[a194_0xd0e435(0x7b)](),controller['destroy']),router[a194_0xd0e435(0x7c)]('/:id/dispositions',auth['isAuthenticated'](),controller[a194_0xd0e435(0x94)]),router[a194_0xd0e435(0x7c)]('/:id/users',auth[a194_0xd0e435(0x7b)](),controller['removeAgents']),module[a194_0xd0e435(0x78)]=router; \ No newline at end of file diff --git a/server/api/condition/condition.attributes.js b/server/api/condition/condition.attributes.js index 1022bda..6bf1f7a 100644 --- a/server/api/condition/condition.attributes.js +++ b/server/api/condition/condition.attributes.js @@ -1 +1 @@ -const a195_0x50ac=['getDataValue','STRING','field'];(function(_0x2ac1df,_0x22e7e5){const _0x50ac2e=function(_0x3200bd){while(--_0x3200bd){_0x2ac1df['push'](_0x2ac1df['shift']());}};_0x50ac2e(++_0x22e7e5);}(a195_0x50ac,0x96));const a195_0x3200=function(_0x2ac1df,_0x22e7e5){_0x2ac1df=_0x2ac1df-0x89;let _0x50ac2e=a195_0x50ac[_0x2ac1df];return _0x50ac2e;};const a195_0x596db9=a195_0x3200;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes['VIRTUAL'],'get':function(){const _0x4197b5=a195_0x3200;return this[_0x4197b5(0x89)](_0x4197b5(0x8b));}},'field':{'type':DataTypes['STRING'],'allowNull':![]},'operator':{'type':DataTypes['STRING'],'allowNull':![]},'value':{'type':DataTypes[a195_0x596db9(0x8a)],'allowNull':![]}};module['exports']['attributes']=attributes; \ No newline at end of file +const a195_0x14d6=['STRING','VIRTUAL','sequelize','field','attributes','getDataValue'];(function(_0x59bad9,_0x27a395){const _0x14d6ee=function(_0x458e32){while(--_0x458e32){_0x59bad9['push'](_0x59bad9['shift']());}};_0x14d6ee(++_0x27a395);}(a195_0x14d6,0x182));const a195_0x458e=function(_0x59bad9,_0x27a395){_0x59bad9=_0x59bad9-0xf6;let _0x14d6ee=a195_0x14d6[_0x59bad9];return _0x14d6ee;};const a195_0x4a1c94=a195_0x458e;'use strict';const {DataTypes}=require(a195_0x4a1c94(0xf6)),attributes={'name':{'type':DataTypes[a195_0x4a1c94(0xfb)],'get':function(){const _0x22a71e=a195_0x4a1c94;return this[_0x22a71e(0xf9)](_0x22a71e(0xf7));}},'field':{'type':DataTypes[a195_0x4a1c94(0xfa)],'allowNull':![]},'operator':{'type':DataTypes[a195_0x4a1c94(0xfa)],'allowNull':![]},'value':{'type':DataTypes['STRING'],'allowNull':![]}};module['exports'][a195_0x4a1c94(0xf8)]=attributes; \ No newline at end of file diff --git a/server/api/condition/condition.controller.js b/server/api/condition/condition.controller.js index 39a0419..15f26dd 100644 --- a/server/api/condition/condition.controller.js +++ b/server/api/condition/condition.controller.js @@ -1 +1 @@ -const a196_0x31cf=['end','json','body','stack','destroy','then','status','catch','sendStatus','params','error','../../mysqldb','send','update','findOne'];(function(_0x2caac1,_0x56d72f){const _0x31cf26=function(_0x4a1252){while(--_0x4a1252){_0x2caac1['push'](_0x2caac1['shift']());}};_0x31cf26(++_0x56d72f);}(a196_0x31cf,0x87));const a196_0x4a12=function(_0x2caac1,_0x56d72f){_0x2caac1=_0x2caac1-0xa4;let _0x31cf26=a196_0x31cf[_0x2caac1];return _0x31cf26;};const a196_0x5d20e6=a196_0x4a12;'use strict';const logger=require('../../config/logger')('api'),{db}=require(a196_0x5d20e6(0xaf));function respondWithResult(_0x40b32b,_0x184ae9){return _0x184ae9=_0x184ae9||0xc8,function(_0x1fbc6c){const _0x591b01=a196_0x4a12;if(_0x1fbc6c)return _0x40b32b[_0x591b01(0xaa)](_0x184ae9)[_0x591b01(0xa5)](_0x1fbc6c);};}function saveUpdates(_0x3c226e){return function(_0x2f1872){const _0x1fe2f2=a196_0x4a12;if(_0x2f1872)return _0x2f1872[_0x1fe2f2(0xb1)](_0x3c226e)[_0x1fe2f2(0xa9)](function(_0x499c60){return _0x499c60;});return null;};}function removeEntity(_0x4bd61f){return function(_0x120f04){if(_0x120f04)return _0x120f04['destroy']()['then'](function(){const _0x287e7d=a196_0x4a12;_0x4bd61f[_0x287e7d(0xaa)](0xcc)[_0x287e7d(0xa4)]();});};}function handleEntityNotFound(_0x25c4e2){return function(_0x4824fa){const _0x231e86=a196_0x4a12;return!_0x4824fa&&_0x25c4e2[_0x231e86(0xac)](0x194),_0x4824fa;};}function handleError(_0x3e495a,_0x24466c){return _0x24466c=_0x24466c||0x1f4,function(_0xac0280){const _0x2f08b5=a196_0x4a12;logger[_0x2f08b5(0xae)](_0xac0280[_0x2f08b5(0xa7)]),_0xac0280['name']&&delete _0xac0280['name'],_0x3e495a[_0x2f08b5(0xaa)](_0x24466c)[_0x2f08b5(0xb0)](_0xac0280);};}exports['update']=function(_0x38fb5f,_0x43809a){const _0x54ae0b=a196_0x5d20e6;return _0x38fb5f[_0x54ae0b(0xa6)]['id']&&delete _0x38fb5f[_0x54ae0b(0xa6)]['id'],db['Condition']['findOne']({'where':{'id':_0x38fb5f[_0x54ae0b(0xad)]['id']}})['then'](handleEntityNotFound(_0x43809a,null))[_0x54ae0b(0xa9)](saveUpdates(_0x38fb5f[_0x54ae0b(0xa6)],null))[_0x54ae0b(0xa9)](respondWithResult(_0x43809a,null))[_0x54ae0b(0xab)](handleError(_0x43809a,null));},exports[a196_0x5d20e6(0xa8)]=function(_0x3e869b,_0x3987d2){const _0x3ca52d=a196_0x5d20e6;return db['Condition'][_0x3ca52d(0xb2)]({'where':{'id':_0x3e869b[_0x3ca52d(0xad)]['id']}})['then'](handleEntityNotFound(_0x3987d2,null))[_0x3ca52d(0xa9)](removeEntity(_0x3987d2,null))[_0x3ca52d(0xab)](handleError(_0x3987d2,null));}; \ No newline at end of file +const a196_0x437e=['then','params','sendStatus','api','destroy','update','end','catch','stack','send','name','json','findOne','body','../../config/logger','Condition'];(function(_0x3b0557,_0xe37537){const _0x437e3b=function(_0x3627df){while(--_0x3627df){_0x3b0557['push'](_0x3b0557['shift']());}};_0x437e3b(++_0xe37537);}(a196_0x437e,0xe6));const a196_0x3627=function(_0x3b0557,_0xe37537){_0x3b0557=_0x3b0557-0x90;let _0x437e3b=a196_0x437e[_0x3b0557];return _0x437e3b;};const a196_0x1294c1=a196_0x3627;'use strict';const logger=require(a196_0x1294c1(0x98))(a196_0x1294c1(0x9d)),{db}=require('../../mysqldb');function respondWithResult(_0x4b283c,_0x32f508){return _0x32f508=_0x32f508||0xc8,function(_0x3c79e3){const _0x515247=a196_0x3627;if(_0x3c79e3)return _0x4b283c['status'](_0x32f508)[_0x515247(0x95)](_0x3c79e3);};}function saveUpdates(_0x1efdb3){return function(_0x326b8b){const _0x276bee=a196_0x3627;if(_0x326b8b)return _0x326b8b[_0x276bee(0x9f)](_0x1efdb3)[_0x276bee(0x9a)](function(_0x4f3e97){return _0x4f3e97;});return null;};}function removeEntity(_0x695fe0){return function(_0xa0d746){const _0x237d3a=a196_0x3627;if(_0xa0d746)return _0xa0d746[_0x237d3a(0x9e)]()[_0x237d3a(0x9a)](function(){const _0x274e9a=_0x237d3a;_0x695fe0['status'](0xcc)[_0x274e9a(0x90)]();});};}function handleEntityNotFound(_0x2916c4){return function(_0x2f7388){const _0x2c470c=a196_0x3627;return!_0x2f7388&&_0x2916c4[_0x2c470c(0x9c)](0x194),_0x2f7388;};}function handleError(_0x3280a3,_0x5def1a){return _0x5def1a=_0x5def1a||0x1f4,function(_0x35b437){const _0x4c2828=a196_0x3627;logger['error'](_0x35b437[_0x4c2828(0x92)]),_0x35b437['name']&&delete _0x35b437[_0x4c2828(0x94)],_0x3280a3['status'](_0x5def1a)[_0x4c2828(0x93)](_0x35b437);};}exports[a196_0x1294c1(0x9f)]=function(_0x39b193,_0x4538a0){const _0x9cb3cb=a196_0x1294c1;return _0x39b193[_0x9cb3cb(0x97)]['id']&&delete _0x39b193['body']['id'],db['Condition'][_0x9cb3cb(0x96)]({'where':{'id':_0x39b193[_0x9cb3cb(0x9b)]['id']}})[_0x9cb3cb(0x9a)](handleEntityNotFound(_0x4538a0,null))[_0x9cb3cb(0x9a)](saveUpdates(_0x39b193[_0x9cb3cb(0x97)],null))[_0x9cb3cb(0x9a)](respondWithResult(_0x4538a0,null))[_0x9cb3cb(0x91)](handleError(_0x4538a0,null));},exports[a196_0x1294c1(0x9e)]=function(_0x21dd65,_0x101868){const _0x257bf9=a196_0x1294c1;return db[_0x257bf9(0x99)]['findOne']({'where':{'id':_0x21dd65[_0x257bf9(0x9b)]['id']}})[_0x257bf9(0x9a)](handleEntityNotFound(_0x101868,null))[_0x257bf9(0x9a)](removeEntity(_0x101868,null))[_0x257bf9(0x91)](handleError(_0x101868,null));}; \ No newline at end of file diff --git a/server/api/condition/condition.model.js b/server/api/condition/condition.model.js index 3b6dbe6..7c0bba0 100644 --- a/server/api/condition/condition.model.js +++ b/server/api/condition/condition.model.js @@ -1 +1 @@ -const a197_0x2807=['init','./condition.options','exports','function','Condition','sequelize'];(function(_0x42bc82,_0x1881a4){const _0x28075b=function(_0x36ce35){while(--_0x36ce35){_0x42bc82['push'](_0x42bc82['shift']());}};_0x28075b(++_0x1881a4);}(a197_0x2807,0x99));const a197_0x36ce=function(_0x42bc82,_0x1881a4){_0x42bc82=_0x42bc82-0xcc;let _0x28075b=a197_0x2807[_0x42bc82];return _0x28075b;};const a197_0x48b1f1=a197_0x36ce;'use strict';const {Model}=require(a197_0x48b1f1(0xce)),{attributes}=require('./condition.attributes'),{options}=require(a197_0x48b1f1(0xd0));class Condition extends Model{}function init(_0x504683,_0x271c9d){const _0x4667fd=a197_0x48b1f1,_0x5c082e=options(_0x504683),_0x1f1835=typeof _0x271c9d===_0x4667fd(0xcc)?_0x271c9d(_0x5c082e):_0x5c082e;return Condition[_0x4667fd(0xcf)](attributes,_0x1f1835),Condition;}module['exports'][a197_0x48b1f1(0xcd)]=Condition,module[a197_0x48b1f1(0xd1)][a197_0x48b1f1(0xcf)]=init; \ No newline at end of file +const a197_0x4503=['./condition.options','init','function','sequelize','exports'];(function(_0x5c5a31,_0x35d336){const _0x450328=function(_0x203721){while(--_0x203721){_0x5c5a31['push'](_0x5c5a31['shift']());}};_0x450328(++_0x35d336);}(a197_0x4503,0xff));const a197_0x2037=function(_0x5c5a31,_0x35d336){_0x5c5a31=_0x5c5a31-0x182;let _0x450328=a197_0x4503[_0x5c5a31];return _0x450328;};const a197_0x4fda69=a197_0x2037;'use strict';const {Model}=require(a197_0x4fda69(0x185)),{attributes}=require('./condition.attributes'),{options}=require(a197_0x4fda69(0x182));class Condition extends Model{}function init(_0x10cbc9,_0x3b3658){const _0x2d2e10=a197_0x4fda69,_0x49dd1b=options(_0x10cbc9),_0x461a92=typeof _0x3b3658===_0x2d2e10(0x184)?_0x3b3658(_0x49dd1b):_0x49dd1b;return Condition['init'](attributes,_0x461a92),Condition;}module[a197_0x4fda69(0x186)]['Condition']=Condition,module[a197_0x4fda69(0x186)][a197_0x4fda69(0x183)]=init; \ No newline at end of file diff --git a/server/api/condition/condition.options.js b/server/api/condition/condition.options.js index 14eb68d..899025b 100644 --- a/server/api/condition/condition.options.js +++ b/server/api/condition/condition.options.js @@ -1 +1 @@ -var a198_0x3a70=['tools_conditions','exports','options'];(function(_0x53e9a3,_0x5574b3){var _0x3a7067=function(_0x441a0e){while(--_0x441a0e){_0x53e9a3['push'](_0x53e9a3['shift']());}};_0x3a7067(++_0x5574b3);}(a198_0x3a70,0x1be));var a198_0x441a=function(_0x53e9a3,_0x5574b3){_0x53e9a3=_0x53e9a3-0x169;var _0x3a7067=a198_0x3a70[_0x53e9a3];return _0x3a7067;};var a198_0xf01c44=a198_0x441a;function options(_0x6cf2b6){var _0x4708bc=a198_0x441a;return{'sequelize':_0x6cf2b6,'tableName':_0x4708bc(0x16a),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a198_0xf01c44(0x16b)][a198_0xf01c44(0x169)]=options; \ No newline at end of file +var a198_0x4595=['options','tools_conditions','exports'];(function(_0x34a7da,_0xb6305f){var _0x4595af=function(_0x41c409){while(--_0x41c409){_0x34a7da['push'](_0x34a7da['shift']());}};_0x4595af(++_0xb6305f);}(a198_0x4595,0x16c));var a198_0x41c4=function(_0x34a7da,_0xb6305f){_0x34a7da=_0x34a7da-0x7c;var _0x4595af=a198_0x4595[_0x34a7da];return _0x4595af;};var a198_0x2a61ae=a198_0x41c4;function options(_0x9313ae){var _0xdb086a=a198_0x41c4;return{'sequelize':_0x9313ae,'tableName':_0xdb086a(0x7c),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a198_0x2a61ae(0x7d)][a198_0x2a61ae(0x7e)]=options; \ No newline at end of file diff --git a/server/api/condition/index.js b/server/api/condition/index.js index cbf8561..3363eb8 100644 --- a/server/api/condition/index.js +++ b/server/api/condition/index.js @@ -1 +1 @@ -const a199_0x3dfb=['./condition.controller','express','Router','delete','put','../../components/auth/service','update','destroy','isAuthenticated'];(function(_0x320222,_0x5f45ab){const _0x3dfb0d=function(_0x5c1a2e){while(--_0x5c1a2e){_0x320222['push'](_0x320222['shift']());}};_0x3dfb0d(++_0x5f45ab);}(a199_0x3dfb,0x6d));const a199_0x5c1a=function(_0x320222,_0x5f45ab){_0x320222=_0x320222-0x11e;let _0x3dfb0d=a199_0x3dfb[_0x320222];return _0x3dfb0d;};const a199_0x470da8=a199_0x5c1a;'use strict';const express=require(a199_0x470da8(0x11e)),router=express[a199_0x470da8(0x11f)](),auth=require(a199_0x470da8(0x122)),controller=require(a199_0x470da8(0x126));router[a199_0x470da8(0x121)]('/:id',auth[a199_0x470da8(0x125)](),controller[a199_0x470da8(0x123)]),router[a199_0x470da8(0x120)]('/:id',auth[a199_0x470da8(0x125)](),controller[a199_0x470da8(0x124)]),module['exports']=router; \ No newline at end of file +const a199_0x4646=['/:id','express','exports','update','isAuthenticated','delete','put','Router','./condition.controller'];(function(_0x38c732,_0x374ccc){const _0x464671=function(_0x46901a){while(--_0x46901a){_0x38c732['push'](_0x38c732['shift']());}};_0x464671(++_0x374ccc);}(a199_0x4646,0x195));const a199_0x4690=function(_0x38c732,_0x374ccc){_0x38c732=_0x38c732-0x1c8;let _0x464671=a199_0x4646[_0x38c732];return _0x464671;};const a199_0x3c6da8=a199_0x4690;'use strict';const express=require(a199_0x3c6da8(0x1c9)),router=express[a199_0x3c6da8(0x1cf)](),auth=require('../../components/auth/service'),controller=require(a199_0x3c6da8(0x1d0));router[a199_0x3c6da8(0x1ce)](a199_0x3c6da8(0x1c8),auth[a199_0x3c6da8(0x1cc)](),controller[a199_0x3c6da8(0x1cb)]),router[a199_0x3c6da8(0x1cd)](a199_0x3c6da8(0x1c8),auth[a199_0x3c6da8(0x1cc)](),controller['destroy']),module[a199_0x3c6da8(0x1ca)]=router; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.attributes.js b/server/api/dashboard/dashboard.attributes.js index 8c87025..70482af 100644 --- a/server/api/dashboard/dashboard.attributes.js +++ b/server/api/dashboard/dashboard.attributes.js @@ -1 +1 @@ -const a200_0x4c09=['name','STRING','attributes','sequelize','exports'];(function(_0x191225,_0x56e3bf){const _0x4c09de=function(_0x172d6b){while(--_0x172d6b){_0x191225['push'](_0x191225['shift']());}};_0x4c09de(++_0x56e3bf);}(a200_0x4c09,0x1ed));const a200_0x172d=function(_0x191225,_0x56e3bf){_0x191225=_0x191225-0x118;let _0x4c09de=a200_0x4c09[_0x191225];return _0x4c09de;};const a200_0x4c0b8d=a200_0x172d;'use strict';const {DataTypes}=require(a200_0x4c0b8d(0x118)),attributes={'name':{'type':DataTypes['STRING'],'allowNull':![],'unique':a200_0x4c0b8d(0x11a)},'description':{'type':DataTypes[a200_0x4c0b8d(0x11b)]}};module[a200_0x4c0b8d(0x119)][a200_0x4c0b8d(0x11c)]=attributes; \ No newline at end of file +const a200_0x59a3=['attributes','STRING','name'];(function(_0x3549ed,_0x245b02){const _0x59a3da=function(_0x4432cb){while(--_0x4432cb){_0x3549ed['push'](_0x3549ed['shift']());}};_0x59a3da(++_0x245b02);}(a200_0x59a3,0x125));const a200_0x4432=function(_0x3549ed,_0x245b02){_0x3549ed=_0x3549ed-0xd0;let _0x59a3da=a200_0x59a3[_0x3549ed];return _0x59a3da;};const a200_0x103fbd=a200_0x4432;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a200_0x103fbd(0xd2)],'allowNull':![],'unique':a200_0x103fbd(0xd0)},'description':{'type':DataTypes[a200_0x103fbd(0xd2)]}};module['exports'][a200_0x103fbd(0xd1)]=attributes; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.controller.js b/server/api/dashboard/dashboard.controller.js index 18b0e80..b427a4f 100644 --- a/server/api/dashboard/dashboard.controller.js +++ b/server/api/dashboard/dashboard.controller.js @@ -1 +1 @@ -const a201_0x5ae9=['fieldName','role','widgetAttributes:\x20%s','0.00','key','attrSerie2','length','api','end','reportType','total','pick','count','user','includeAll','keys','rows','params','filters','where','../../config/logger','Content-Range','custom','stack','attrTimezone','HH:mm:ss','intersection','userProfileId','status','stringify','undefined','error','DashboardId','attrVoiceQueues','lodash','like','then','create','autoAssociation','omit','findAll','register','attrHourFormat','createdAt','fields','CustomDashboards','clone','merge','attrSerie3','attrPath','set','DashboardItem','map','catch','UserProfileResource','offset','findOne','addItem','https://','multibar-chart','include','getItems','sort','type','attrs','body','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','VIRTUAL','Unable\x20to\x20retrieve\x20the\x20current\x20user','value','order','UserProfileSection','attributes','show','attrUrl','json','limit','update','sequelize','./dashboard.socket','rawAttributes','options','attrSerie1','attrFontSize','iframe','attrRefresh','query','destroy','Dashboard','get','attrReport','nolimit','filter','updatedAt','../../mysqldb','send','name','model'];(function(_0x72cec8,_0xa1c624){const _0x5ae9ab=function(_0x14d459){while(--_0x14d459){_0x72cec8['push'](_0x72cec8['shift']());}};_0x5ae9ab(++_0xa1c624);}(a201_0x5ae9,0x113));const a201_0x14d4=function(_0x72cec8,_0xa1c624){_0x72cec8=_0x72cec8-0x88;let _0x5ae9ab=a201_0x5ae9[_0x72cec8];return _0x5ae9ab;};const a201_0x3c8f50=a201_0x14d4;'use strict';const _=require(a201_0x3c8f50(0xbd)),qs=require('../../components/parsers/qs'),logger=require(a201_0x3c8f50(0xaf))(a201_0x3c8f50(0xa2)),{getSocket}=require('../../rediscache'),socket=getSocket(),{db}=require(a201_0x3c8f50(0x97)),{Op}=require(a201_0x3c8f50(0xe9));require(a201_0x3c8f50(0x88))[a201_0x3c8f50(0xc4)](socket);function respondWithResult(_0x319b2a,_0x3a1ae0){return _0x3a1ae0=_0x3a1ae0||0xc8,function(_0x577ecd){const _0x3484a3=a201_0x14d4;if(_0x577ecd)return _0x319b2a[_0x3484a3(0xb7)](_0x3a1ae0)[_0x3484a3(0xe6)](_0x577ecd);};}function respondWithFilteredResult(_0x40faaf,_0x15700b){return function(_0x25c8f8){const _0x118c13=a201_0x14d4;if(_0x25c8f8){const _0x3c984b=_0x25c8f8['count'],_0x2015ae=_0x15700b[_0x118c13(0xd2)];let _0x2e1726=_0x15700b[_0x118c13(0xd2)]+_0x15700b[_0x118c13(0xe7)],_0x1ba79e;return _0x2e1726>=_0x3c984b?(_0x2e1726=_0x3c984b,_0x1ba79e=0xc8):_0x1ba79e=0xce,_0x40faaf['status'](_0x1ba79e),_0x40faaf[_0x118c13(0xcd)](_0x118c13(0xb0),_0x2015ae+'-'+_0x2e1726+'/'+_0x3c984b)[_0x118c13(0xe6)](_0x25c8f8);}return null;};}function saveUpdates(_0x4c8320){return function(_0x29cb98){const _0x33507b=a201_0x14d4;if(_0x29cb98)return _0x29cb98[_0x33507b(0xe8)](_0x4c8320)[_0x33507b(0xbf)](function(_0x22c405){return _0x22c405;});return null;};}function removeEntity(_0x29c4a7){return function(_0x4815a1){const _0x30c0c2=a201_0x14d4;if(_0x4815a1)return _0x4815a1[_0x30c0c2(0x90)]()[_0x30c0c2(0xbf)](function(){const _0x5748e6=_0x30c0c2,_0x55c0c1=_0x4815a1['get']({'plain':!![]}),_0x6e8c31='CustomDashboards';return db[_0x5748e6(0xd1)][_0x5748e6(0x90)]({'where':{'type':_0x6e8c31,'resourceId':_0x55c0c1['id']}})[_0x5748e6(0xbf)](function(){return _0x4815a1;});})[_0x30c0c2(0xbf)](function(){const _0x17ed49=_0x30c0c2;_0x29c4a7[_0x17ed49(0xb7)](0xcc)[_0x17ed49(0xa3)]();});};}function handleEntityNotFound(_0x48c4de){return function(_0x2cf63a){return!_0x2cf63a&&_0x48c4de['sendStatus'](0x194),_0x2cf63a;};}function handleError(_0x264fbf,_0x26dad6){return _0x26dad6=_0x26dad6||0x1f4,function(_0x15e183){const _0x23de4f=a201_0x14d4;logger[_0x23de4f(0xba)](_0x15e183[_0x23de4f(0xb2)]),_0x15e183[_0x23de4f(0x99)]&&delete _0x15e183['name'],_0x264fbf[_0x23de4f(0xb7)](_0x26dad6)[_0x23de4f(0x98)](_0x15e183);};}exports['index']=function(_0x49a38e,_0x3adb6f){const _0x54bf35=a201_0x3c8f50;let _0x2cb457={};const _0x5f2109={},_0x446081={'count':0x0,'rows':[]},_0x370bc7=_[_0x54bf35(0xcf)](db[_0x54bf35(0x91)][_0x54bf35(0x89)],function(_0x43d2e6){const _0x1b99e3=_0x54bf35;return{'name':_0x43d2e6[_0x1b99e3(0x9b)],'type':_0x43d2e6[_0x1b99e3(0xda)][_0x1b99e3(0x9f)]};});_0x5f2109[_0x54bf35(0x9a)]=_['map'](_0x370bc7,'name'),_0x5f2109[_0x54bf35(0x8f)]=_[_0x54bf35(0xaa)](_0x49a38e[_0x54bf35(0x8f)]),_0x5f2109['filters']=_[_0x54bf35(0xb5)](_0x5f2109[_0x54bf35(0x9a)],_0x5f2109[_0x54bf35(0x8f)]),_0x2cb457[_0x54bf35(0xe3)]=_[_0x54bf35(0xb5)](_0x5f2109[_0x54bf35(0x9a)],qs[_0x54bf35(0xc7)](_0x49a38e[_0x54bf35(0x8f)][_0x54bf35(0xc7)])),_0x2cb457[_0x54bf35(0xe3)]=_0x2cb457[_0x54bf35(0xe3)][_0x54bf35(0xa1)]?_0x2cb457[_0x54bf35(0xe3)]:_0x5f2109[_0x54bf35(0x9a)];typeof _0x49a38e[_0x54bf35(0x8f)]['nolimit']===_0x54bf35(0xb9)&&(_0x2cb457[_0x54bf35(0xe7)]=qs['limit'](_0x49a38e[_0x54bf35(0x8f)][_0x54bf35(0xe7)]),_0x2cb457[_0x54bf35(0xd2)]=qs[_0x54bf35(0xd2)](_0x49a38e[_0x54bf35(0x8f)][_0x54bf35(0xd2)]));_0x2cb457['order']=qs[_0x54bf35(0xd9)](_0x49a38e[_0x54bf35(0x8f)][_0x54bf35(0xd9)]),_0x2cb457[_0x54bf35(0xae)]=qs[_0x54bf35(0xad)](_['pick'](_0x49a38e[_0x54bf35(0x8f)],_0x5f2109[_0x54bf35(0xad)]),_0x370bc7);_0x49a38e['query'][_0x54bf35(0x95)]&&(_0x2cb457[_0x54bf35(0xae)]=_[_0x54bf35(0xca)](_0x2cb457[_0x54bf35(0xae)],{[Op['or']]:_[_0x54bf35(0xcf)](_0x370bc7,function(_0x51b407){const _0x40855e=_0x54bf35;if(_0x51b407[_0x40855e(0xda)]!==_0x40855e(0xde)){const _0x468a8c={};return _0x468a8c[_0x51b407[_0x40855e(0x99)]]={[Op[_0x40855e(0xbe)]]:'%'+_0x49a38e['query']['filter']+'%'},_0x468a8c;}})}));_0x2cb457=_[_0x54bf35(0xca)]({},_0x2cb457,_0x49a38e[_0x54bf35(0x8a)]);const _0x103b40={'where':_0x2cb457[_0x54bf35(0xae)]};return db[_0x54bf35(0x91)][_0x54bf35(0xa7)](_0x103b40)[_0x54bf35(0xbf)](function(_0x1ebf35){const _0x4680f5=_0x54bf35;return _0x446081['count']=_0x1ebf35,_0x49a38e[_0x4680f5(0x8f)]['includeAll']&&(_0x2cb457[_0x4680f5(0xd7)]=[{'all':!![]}]),db[_0x4680f5(0x91)][_0x4680f5(0xc3)](_0x2cb457);})[_0x54bf35(0xbf)](function(_0x1459b2){const _0x3b2806=_0x54bf35;return _0x446081[_0x3b2806(0xab)]=_0x1459b2,_0x446081;})['then'](respondWithFilteredResult(_0x3adb6f,_0x2cb457))['catch'](handleError(_0x3adb6f,null));},exports[a201_0x3c8f50(0xe4)]=function(_0x3ebacd,_0x56b907){const _0x2621a1=a201_0x3c8f50;let _0x1d8b19={'raw':![],'where':{'id':_0x3ebacd[_0x2621a1(0xac)]['id']}};const _0x2261e1={};return _0x2261e1[_0x2621a1(0x9a)]=_[_0x2621a1(0xaa)](db['Dashboard'][_0x2621a1(0x89)]),_0x2261e1[_0x2621a1(0x8f)]=_['keys'](_0x3ebacd['query']),_0x2261e1[_0x2621a1(0xad)]=_['intersection'](_0x2261e1[_0x2621a1(0x9a)],_0x2261e1['query']),_0x1d8b19['attributes']=_['intersection'](_0x2261e1[_0x2621a1(0x9a)],qs[_0x2621a1(0xc7)](_0x3ebacd[_0x2621a1(0x8f)]['fields'])),_0x1d8b19['attributes']=_0x1d8b19['attributes'][_0x2621a1(0xa1)]?_0x1d8b19[_0x2621a1(0xe3)]:_0x2261e1[_0x2621a1(0x9a)],_0x3ebacd['query'][_0x2621a1(0xa9)]&&(_0x1d8b19[_0x2621a1(0xd7)]=[{'all':!![]}]),_0x1d8b19=_[_0x2621a1(0xca)]({},_0x1d8b19,_0x3ebacd[_0x2621a1(0x8a)]),db[_0x2621a1(0x91)][_0x2621a1(0xd3)](_0x1d8b19)['then'](handleEntityNotFound(_0x56b907,null))[_0x2621a1(0xbf)](respondWithResult(_0x56b907,null))[_0x2621a1(0xd0)](handleError(_0x56b907,null));},exports[a201_0x3c8f50(0xc0)]=function(_0x59d717,_0x347d96){const _0x123b96=a201_0x3c8f50;return db[_0x123b96(0x91)]['create'](_0x59d717[_0x123b96(0xdc)],{})[_0x123b96(0xbf)](function(_0x344fc2){const _0x2026b6=_0x123b96,_0x173c65=_0x59d717['user'][_0x2026b6(0x92)]({'plain':!![]});if(!_0x173c65)throw new Error(_0x2026b6(0xdf));if(_0x173c65[_0x2026b6(0x9c)]==='user'){const _0x479521=_0x344fc2[_0x2026b6(0x92)]({'plain':!![]}),_0x123708=_0x2026b6(0xc8);return db['UserProfileSection']['findOne']({'where':{'name':_0x123708,'userProfileId':_0x173c65['userProfileId']},'raw':!![]})[_0x2026b6(0xbf)](function(_0x50ceb5){const _0x234fd4=_0x2026b6;return _0x50ceb5&&_0x50ceb5[_0x234fd4(0xc1)]===0x0?db[_0x234fd4(0xd1)]['create']({'name':_0x479521['name'],'resourceId':_0x479521['id'],'type':_0x50ceb5[_0x234fd4(0x99)],'sectionId':_0x50ceb5['id']},{})[_0x234fd4(0xbf)](function(){return _0x344fc2;}):_0x344fc2;})[_0x2026b6(0xd0)](function(_0x30a84e){const _0x1c86d5=_0x2026b6;logger[_0x1c86d5(0xba)](_0x1c86d5(0xdd),_0x30a84e);throw _0x30a84e;});}return _0x344fc2;})[_0x123b96(0xbf)](respondWithResult(_0x347d96,0xc9))[_0x123b96(0xd0)](handleError(_0x347d96,null));},exports[a201_0x3c8f50(0xc9)]=function(_0x2b146a,_0x218444){const _0x762f63=a201_0x3c8f50;let _0x419579={'where':{'id':_0x2b146a[_0x762f63(0xac)]['id']}};const _0x8e2e87={};return _0x8e2e87[_0x762f63(0x9a)]=_[_0x762f63(0xaa)](db['Dashboard']['rawAttributes']),_0x419579['attributes']=_[_0x762f63(0xb5)](_0x8e2e87[_0x762f63(0x9a)],qs['fields'](_0x2b146a[_0x762f63(0x8f)][_0x762f63(0xc7)])),_0x419579[_0x762f63(0xe3)]=_0x419579[_0x762f63(0xe3)][_0x762f63(0xa1)]?_0x419579['attributes']:_0x8e2e87[_0x762f63(0x9a)],_0x2b146a['query'][_0x762f63(0xa9)]&&(_0x419579[_0x762f63(0xd7)]=[{'all':!![]}]),_0x419579=_[_0x762f63(0xca)]({},_0x419579,_0x2b146a[_0x762f63(0x8a)]),db[_0x762f63(0x91)][_0x762f63(0xd3)](_0x419579)[_0x762f63(0xbf)](handleEntityNotFound(_0x218444,null))[_0x762f63(0xbf)](function(_0xf41e22){const _0x1759a5=_0x762f63;if(_0xf41e22){let _0x2a0baf=_0xf41e22[_0x1759a5(0x92)]({'plain':!![]});return _0x2a0baf=qs['omit'](_0x2a0baf,['id',_0x1759a5(0xc6),'updatedAt']),_0x2b146a[_0x1759a5(0xdc)]=_[_0x1759a5(0xc2)](_0x2b146a[_0x1759a5(0xdc)],['id',_0x1759a5(0xc6),_0x1759a5(0x96)]),db[_0x1759a5(0x91)][_0x1759a5(0xc0)](_[_0x1759a5(0xca)](_0x2a0baf,_0x2b146a['body']),{'include':_0x2b146a['query']['includeAll']?[{'all':!![]}]:undefined})['then'](function(_0x2828c9){const _0x14c976=_0x1759a5,_0x143c1d=_0x2b146a[_0x14c976(0xa8)]['get']({'plain':!![]});if(!_0x143c1d)throw new Error(_0x14c976(0xdf));if(_0x143c1d[_0x14c976(0x9c)]==='user'){const _0x877b28=_0x2828c9[_0x14c976(0x92)]({'plain':!![]}),_0x2bb617=_0x14c976(0xc8);return db[_0x14c976(0xe2)][_0x14c976(0xd3)]({'where':{'name':_0x2bb617,'userProfileId':_0x143c1d[_0x14c976(0xb6)]},'raw':!![]})[_0x14c976(0xbf)](function(_0x3c589f){const _0x1af16d=_0x14c976;return _0x3c589f&&_0x3c589f[_0x1af16d(0xc1)]===0x0?db[_0x1af16d(0xd1)][_0x1af16d(0xc0)]({'name':_0x877b28[_0x1af16d(0x99)],'resourceId':_0x877b28['id'],'type':_0x3c589f[_0x1af16d(0x99)],'sectionId':_0x3c589f['id']},{})[_0x1af16d(0xbf)](function(){return _0x2828c9;}):_0x2828c9;})[_0x14c976(0xd0)](function(_0x2e3728){const _0x25e4f3=_0x14c976;logger[_0x25e4f3(0xba)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x2e3728);throw _0x2e3728;});}return _0x2828c9;});}})[_0x762f63(0xbf)](respondWithResult(_0x218444,0xc9))['catch'](handleError(_0x218444,null));},exports['update']=function(_0x4aa386,_0x593f27){const _0x498f02=a201_0x3c8f50;return _0x4aa386['body']['id']&&delete _0x4aa386['body']['id'],db[_0x498f02(0x91)][_0x498f02(0xd3)]({'where':{'id':_0x4aa386[_0x498f02(0xac)]['id']}})['then'](handleEntityNotFound(_0x593f27,null))[_0x498f02(0xbf)](saveUpdates(_0x4aa386['body'],null))[_0x498f02(0xbf)](respondWithResult(_0x593f27,null))[_0x498f02(0xd0)](handleError(_0x593f27,null));},exports[a201_0x3c8f50(0x90)]=function(_0x1d1e19,_0x591cd4){const _0x1e5056=a201_0x3c8f50;return db[_0x1e5056(0x91)][_0x1e5056(0xd3)]({'where':{'id':_0x1d1e19[_0x1e5056(0xac)]['id']}})['then'](handleEntityNotFound(_0x591cd4,null))[_0x1e5056(0xbf)](removeEntity(_0x591cd4,null))[_0x1e5056(0xd0)](handleError(_0x591cd4,null));};function widgetAttributes(_0x4d4974){const _0x324e22=a201_0x3c8f50;try{switch(_0x4d4974[_0x324e22(0xda)]){case _0x324e22(0x8d):return[{'name':_0x324e22(0xe5),'value':_0x4d4974[_0x324e22(0xe5)]||(_0x4d4974[_0x324e22(0xdb)]&&_0x4d4974[_0x324e22(0xdb)][0x0]?_0x4d4974['attrs'][0x0][_0x324e22(0xe0)]:undefined)||_0x324e22(0xd5)}];case _0x324e22(0xb1):return[{'name':'attrPath','value':_0x4d4974[_0x324e22(0xcc)]||(_0x4d4974['attrs']&&_0x4d4974['attrs'][0x0]?_0x4d4974[_0x324e22(0xdb)][0x0][_0x324e22(0xe0)]:undefined)||''}];case'clock':return[{'name':_0x324e22(0xc5),'value':_0x4d4974[_0x324e22(0xc5)]||(_0x4d4974[_0x324e22(0xdb)]&&_0x4d4974[_0x324e22(0xdb)][0x0]?_0x4d4974[_0x324e22(0xdb)][0x0]['value']:undefined)||_0x324e22(0xb4)},{'name':'attrTimezone','value':_0x4d4974[_0x324e22(0xb3)]||(_0x4d4974[_0x324e22(0xdb)]&&_0x4d4974[_0x324e22(0xdb)][0x1]?_0x4d4974[_0x324e22(0xdb)][0x1][_0x324e22(0xe0)]:undefined)||_0x324e22(0x9e)},{'name':_0x324e22(0x8c),'value':_0x4d4974[_0x324e22(0x8c)]||(_0x4d4974['attrs']&&_0x4d4974['attrs'][0x2]?_0x4d4974[_0x324e22(0xdb)][0x2][_0x324e22(0xe0)]:undefined)||0xc}];case'counter':return[{'name':'attrMetric','value':_0x4d4974['attrMetric']||(_0x4d4974['attrs']&&_0x4d4974[_0x324e22(0xdb)][0x0]?_0x4d4974[_0x324e22(0xdb)][0x0][_0x324e22(0xe0)]:undefined)||_0x324e22(0xa5)},{'name':_0x324e22(0xbc),'value':_0x4d4974[_0x324e22(0xbc)]||(_0x4d4974[_0x324e22(0xdb)]&&_0x4d4974[_0x324e22(0xdb)][0x1]?_0x4d4974[_0x324e22(0xdb)][0x1][_0x324e22(0xe0)]:undefined)||[]},{'name':_0x324e22(0x8c),'value':_0x4d4974[_0x324e22(0x8c)]||(_0x4d4974[_0x324e22(0xdb)]&&_0x4d4974[_0x324e22(0xdb)][0x2]?_0x4d4974[_0x324e22(0xdb)][0x2][_0x324e22(0xe0)]:undefined)||0x14}];case _0x324e22(0xd6):case'pie-chart':return[{'name':_0x324e22(0x8b),'value':_0x4d4974[_0x324e22(0x8b)]||(_0x4d4974['attrs']&&_0x4d4974[_0x324e22(0xdb)][0x0]?_0x4d4974[_0x324e22(0xdb)][0x0]['value']:undefined)||_0x324e22(0xa5)},{'name':_0x324e22(0xa0),'value':_0x4d4974[_0x324e22(0xa0)]||(_0x4d4974[_0x324e22(0xdb)]&&_0x4d4974[_0x324e22(0xdb)][0x1]?_0x4d4974[_0x324e22(0xdb)][0x1][_0x324e22(0xe0)]:undefined)||null},{'name':'attrSerie3','value':_0x4d4974[_0x324e22(0xcb)]||(_0x4d4974[_0x324e22(0xdb)]&&_0x4d4974[_0x324e22(0xdb)][0x2]?_0x4d4974[_0x324e22(0xdb)][0x2][_0x324e22(0xe0)]:undefined)||null},{'name':_0x324e22(0xbc),'value':_0x4d4974['attrVoiceQueues']||(_0x4d4974['attrs']&&_0x4d4974['attrs'][0x3]?_0x4d4974['attrs'][0x3][_0x324e22(0xe0)]:undefined)||[]}];case'web-report':return[{'name':_0x324e22(0x93),'type':_0x4d4974[_0x324e22(0xa4)]||(_0x4d4974[_0x324e22(0xdb)]&&_0x4d4974[_0x324e22(0xdb)][0x0]?_0x4d4974[_0x324e22(0xdb)][0x0][_0x324e22(0xda)]:undefined)||null,'value':_0x4d4974['attrReport']||(_0x4d4974['attrs']&&_0x4d4974[_0x324e22(0xdb)][0x0]?_0x4d4974[_0x324e22(0xdb)][0x0]['value']:undefined)||null},{'name':'attrRefresh','value':_0x4d4974[_0x324e22(0x8e)]||(_0x4d4974[_0x324e22(0xdb)]&&_0x4d4974[_0x324e22(0xdb)][0x1]?_0x4d4974['attrs'][0x1][_0x324e22(0xe0)]:undefined)||0x0}];default:return[];}}catch(_0x1db561){return logger[_0x324e22(0xba)](_0x324e22(0x9d),JSON[_0x324e22(0xb8)](_0x1db561)),[];}}exports[a201_0x3c8f50(0xd4)]=function(_0x2a10ec,_0x4a9423){const _0x2f0a76=a201_0x3c8f50;return _0x2a10ec['body']['id']&&delete _0x2a10ec[_0x2f0a76(0xdc)]['id'],db[_0x2f0a76(0x91)][_0x2f0a76(0xd3)]({'where':{'id':_0x2a10ec['params']['id']}})[_0x2f0a76(0xbf)](handleEntityNotFound(_0x4a9423,null))[_0x2f0a76(0xbf)](function(_0x167f86){const _0x418cf6=_0x2f0a76;if(_0x167f86)return _0x2a10ec[_0x418cf6(0xdc)][_0x418cf6(0xbb)]=_0x167f86['id'],_0x2a10ec[_0x418cf6(0xdc)][_0x418cf6(0xdb)]=widgetAttributes(_0x2a10ec['body']),db['DashboardItem'][_0x418cf6(0xc0)](_0x2a10ec[_0x418cf6(0xdc)]);})[_0x2f0a76(0xbf)](respondWithResult(_0x4a9423,null))['catch'](handleError(_0x4a9423,null));},exports[a201_0x3c8f50(0xd8)]=function(_0x376f3d,_0x551d55){const _0x52c4dd=a201_0x3c8f50;let _0x1bdc78={};const _0x24a5d3={};let _0x2d4586,_0x3ebc33;return db[_0x52c4dd(0x91)][_0x52c4dd(0xd3)]({'where':{'id':_0x376f3d['params']['id']}})[_0x52c4dd(0xbf)](handleEntityNotFound(_0x551d55,null))[_0x52c4dd(0xbf)](function(_0x37612d){const _0x3f1643=_0x52c4dd;if(_0x37612d)return _0x2d4586=_0x37612d,_0x24a5d3[_0x3f1643(0x9a)]=_[_0x3f1643(0xaa)](db[_0x3f1643(0xce)][_0x3f1643(0x89)]),_0x24a5d3['query']=_['keys'](_0x376f3d[_0x3f1643(0x8f)]),_0x24a5d3[_0x3f1643(0xad)]=_[_0x3f1643(0xb5)](_0x24a5d3[_0x3f1643(0x9a)],_0x24a5d3[_0x3f1643(0x8f)]),_0x1bdc78[_0x3f1643(0xe3)]=_[_0x3f1643(0xb5)](_0x24a5d3[_0x3f1643(0x9a)],qs[_0x3f1643(0xc7)](_0x376f3d[_0x3f1643(0x8f)][_0x3f1643(0xc7)])),_0x1bdc78[_0x3f1643(0xe3)]=_0x1bdc78[_0x3f1643(0xe3)]['length']?_0x1bdc78['attributes']:_0x24a5d3[_0x3f1643(0x9a)],_0x1bdc78[_0x3f1643(0xe1)]=qs[_0x3f1643(0xd9)](_0x376f3d[_0x3f1643(0x8f)]['sort']),_0x1bdc78[_0x3f1643(0xae)]=qs[_0x3f1643(0xad)](_[_0x3f1643(0xa6)](_0x376f3d[_0x3f1643(0x8f)],_0x24a5d3[_0x3f1643(0xad)])),_0x376f3d['query']['filter']&&(_0x1bdc78['where']=_[_0x3f1643(0xca)](_0x1bdc78[_0x3f1643(0xae)],{[Op['or']]:_[_0x3f1643(0xcf)](_0x1bdc78['attributes'],function(_0x52fd2b){const _0x59a03d=_0x3f1643,_0x758471={};return _0x758471[_0x52fd2b]={[Op[_0x59a03d(0xbe)]]:'%'+_0x376f3d[_0x59a03d(0x8f)][_0x59a03d(0x95)]+'%'},_0x758471;})})),_0x1bdc78=_['merge']({},_0x1bdc78,_0x376f3d[_0x3f1643(0x8a)]),_0x2d4586[_0x3f1643(0xd8)](_0x1bdc78);})[_0x52c4dd(0xbf)](function(_0x1681c4){const _0x476c18=_0x52c4dd;if(_0x1681c4)return _0x3ebc33=_0x1681c4[_0x476c18(0xa1)],typeof _0x376f3d[_0x476c18(0x8f)][_0x476c18(0x94)]==='undefined'&&(_0x1bdc78[_0x476c18(0xe7)]=qs[_0x476c18(0xe7)](_0x376f3d[_0x476c18(0x8f)][_0x476c18(0xe7)]),_0x1bdc78[_0x476c18(0xd2)]=qs[_0x476c18(0xd2)](_0x376f3d[_0x476c18(0x8f)]['offset'])),_0x2d4586['getItems'](_0x1bdc78);})[_0x52c4dd(0xbf)](function(_0xbd0aaf){if(_0xbd0aaf)return _0xbd0aaf?{'count':_0x3ebc33,'rows':_0xbd0aaf}:null;})[_0x52c4dd(0xbf)](respondWithResult(_0x551d55,null))[_0x52c4dd(0xd0)](handleError(_0x551d55,null));}; \ No newline at end of file +const a201_0x253d=['VIRTUAL','filter','UserProfileSection','show','total','rawAttributes','get','userProfileId','limit','UserProfileResource','filters','stack','error','./dashboard.socket','update','attrFontSize','DashboardItem','map','like','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','counter','rows','pick','status','json','where','catch','query','name','keys','findOne','findAll','then','register','attrSerie3','Unable\x20to\x20retrieve\x20the\x20current\x20user','sequelize','options','../../config/logger','multibar-chart','attrHourFormat','model','role','../../components/parsers/qs','../../rediscache','getItems','merge','attrMetric','pie-chart','user','undefined','order','attrSerie1','end','attrs','omit','updatedAt','length','Content-Range','lodash','send','nolimit','intersection','includeAll','web-report','Dashboard','addItem','include','api','type','offset','CustomDashboards','sort','attributes','create','autoAssociation','destroy','createdAt','key','attrReport','clock','value','body','params','iframe','count','attrRefresh','fields','attrTimezone','widgetAttributes:\x20%s','attrVoiceQueues','stringify'];(function(_0x23d969,_0x197398){const _0x253d1d=function(_0xde0606){while(--_0xde0606){_0x23d969['push'](_0x23d969['shift']());}};_0x253d1d(++_0x197398);}(a201_0x253d,0xa7));const a201_0xde06=function(_0x23d969,_0x197398){_0x23d969=_0x23d969-0x1c2;let _0x253d1d=a201_0x253d[_0x23d969];return _0x253d1d;};const a201_0x192e24=a201_0xde06;'use strict';const _=require(a201_0x192e24(0x20e)),qs=require(a201_0x192e24(0x1fe)),logger=require(a201_0x192e24(0x1f9))(a201_0x192e24(0x217)),{getSocket}=require(a201_0x192e24(0x1ff)),socket=getSocket(),{db}=require('../../mysqldb'),{Op}=require(a201_0x192e24(0x1f7));require(a201_0x192e24(0x1e0))[a201_0x192e24(0x1f4)](socket);function respondWithResult(_0x21d11b,_0x9aa7e0){return _0x9aa7e0=_0x9aa7e0||0xc8,function(_0x650c5a){const _0x53215e=a201_0xde06;if(_0x650c5a)return _0x21d11b[_0x53215e(0x1ea)](_0x9aa7e0)[_0x53215e(0x1eb)](_0x650c5a);};}function respondWithFilteredResult(_0x344200,_0xb72e05){return function(_0x3fdd96){const _0x43e270=a201_0xde06;if(_0x3fdd96){const _0xa1b044=_0x3fdd96['count'],_0x45e42a=_0xb72e05[_0x43e270(0x219)];let _0x5ea5c2=_0xb72e05[_0x43e270(0x219)]+_0xb72e05[_0x43e270(0x1db)],_0x4669b1;return _0x5ea5c2>=_0xa1b044?(_0x5ea5c2=_0xa1b044,_0x4669b1=0xc8):_0x4669b1=0xce,_0x344200[_0x43e270(0x1ea)](_0x4669b1),_0x344200['set'](_0x43e270(0x20d),_0x45e42a+'-'+_0x5ea5c2+'/'+_0xa1b044)[_0x43e270(0x1eb)](_0x3fdd96);}return null;};}function saveUpdates(_0xf993bf){return function(_0x552fc7){const _0x527189=a201_0xde06;if(_0x552fc7)return _0x552fc7[_0x527189(0x1e1)](_0xf993bf)['then'](function(_0x5a7b97){return _0x5a7b97;});return null;};}function removeEntity(_0x8247d){return function(_0x468781){const _0x403908=a201_0xde06;if(_0x468781)return _0x468781[_0x403908(0x1c3)]()[_0x403908(0x1f3)](function(){const _0x5acf0a=_0x403908,_0x2a5254=_0x468781[_0x5acf0a(0x1d9)]({'plain':!![]}),_0x5c6706='CustomDashboards';return db[_0x5acf0a(0x1dc)][_0x5acf0a(0x1c3)]({'where':{'type':_0x5c6706,'resourceId':_0x2a5254['id']}})[_0x5acf0a(0x1f3)](function(){return _0x468781;});})['then'](function(){const _0x5396da=_0x403908;_0x8247d[_0x5396da(0x1ea)](0xcc)[_0x5396da(0x208)]();});};}function handleEntityNotFound(_0xf430af){return function(_0x3679a2){return!_0x3679a2&&_0xf430af['sendStatus'](0x194),_0x3679a2;};}function handleError(_0x19bbab,_0x57cf98){return _0x57cf98=_0x57cf98||0x1f4,function(_0x5b8af5){const _0x25736c=a201_0xde06;logger['error'](_0x5b8af5[_0x25736c(0x1de)]),_0x5b8af5[_0x25736c(0x1ef)]&&delete _0x5b8af5[_0x25736c(0x1ef)],_0x19bbab[_0x25736c(0x1ea)](_0x57cf98)[_0x25736c(0x20f)](_0x5b8af5);};}exports['index']=function(_0x15ef40,_0xd73010){const _0x125b35=a201_0x192e24;let _0x27c2ec={};const _0x5583a7={},_0x4d92a3={'count':0x0,'rows':[]},_0x76c05e=_[_0x125b35(0x1e4)](db['Dashboard'][_0x125b35(0x1d8)],function(_0xe7b4de){const _0x19900c=_0x125b35;return{'name':_0xe7b4de['fieldName'],'type':_0xe7b4de[_0x19900c(0x218)][_0x19900c(0x1c5)]};});_0x5583a7[_0x125b35(0x1fc)]=_[_0x125b35(0x1e4)](_0x76c05e,_0x125b35(0x1ef)),_0x5583a7[_0x125b35(0x1ee)]=_[_0x125b35(0x1f0)](_0x15ef40[_0x125b35(0x1ee)]),_0x5583a7[_0x125b35(0x1dd)]=_[_0x125b35(0x211)](_0x5583a7[_0x125b35(0x1fc)],_0x5583a7[_0x125b35(0x1ee)]),_0x27c2ec[_0x125b35(0x21c)]=_[_0x125b35(0x211)](_0x5583a7['model'],qs[_0x125b35(0x1ce)](_0x15ef40[_0x125b35(0x1ee)][_0x125b35(0x1ce)])),_0x27c2ec[_0x125b35(0x21c)]=_0x27c2ec['attributes'][_0x125b35(0x20c)]?_0x27c2ec[_0x125b35(0x21c)]:_0x5583a7[_0x125b35(0x1fc)];typeof _0x15ef40[_0x125b35(0x1ee)][_0x125b35(0x210)]==='undefined'&&(_0x27c2ec['limit']=qs['limit'](_0x15ef40[_0x125b35(0x1ee)][_0x125b35(0x1db)]),_0x27c2ec[_0x125b35(0x219)]=qs[_0x125b35(0x219)](_0x15ef40[_0x125b35(0x1ee)][_0x125b35(0x219)]));_0x27c2ec[_0x125b35(0x206)]=qs[_0x125b35(0x21b)](_0x15ef40[_0x125b35(0x1ee)][_0x125b35(0x21b)]),_0x27c2ec[_0x125b35(0x1ec)]=qs['filters'](_['pick'](_0x15ef40[_0x125b35(0x1ee)],_0x5583a7[_0x125b35(0x1dd)]),_0x76c05e);_0x15ef40[_0x125b35(0x1ee)][_0x125b35(0x1d4)]&&(_0x27c2ec['where']=_[_0x125b35(0x201)](_0x27c2ec[_0x125b35(0x1ec)],{[Op['or']]:_[_0x125b35(0x1e4)](_0x76c05e,function(_0x4a79bb){const _0x199663=_0x125b35;if(_0x4a79bb[_0x199663(0x218)]!==_0x199663(0x1d3)){const _0x3cf6b4={};return _0x3cf6b4[_0x4a79bb['name']]={[Op[_0x199663(0x1e5)]]:'%'+_0x15ef40[_0x199663(0x1ee)]['filter']+'%'},_0x3cf6b4;}})}));_0x27c2ec=_[_0x125b35(0x201)]({},_0x27c2ec,_0x15ef40[_0x125b35(0x1f8)]);const _0x2d977c={'where':_0x27c2ec[_0x125b35(0x1ec)]};return db[_0x125b35(0x214)][_0x125b35(0x1cc)](_0x2d977c)[_0x125b35(0x1f3)](function(_0x3a6148){const _0x22b832=_0x125b35;return _0x4d92a3[_0x22b832(0x1cc)]=_0x3a6148,_0x15ef40[_0x22b832(0x1ee)][_0x22b832(0x212)]&&(_0x27c2ec['include']=[{'all':!![]}]),db['Dashboard'][_0x22b832(0x1f2)](_0x27c2ec);})[_0x125b35(0x1f3)](function(_0x2349e2){const _0x95f0b2=_0x125b35;return _0x4d92a3[_0x95f0b2(0x1e8)]=_0x2349e2,_0x4d92a3;})['then'](respondWithFilteredResult(_0xd73010,_0x27c2ec))[_0x125b35(0x1ed)](handleError(_0xd73010,null));},exports[a201_0x192e24(0x1d6)]=function(_0x2fcd91,_0x5648a0){const _0x145db2=a201_0x192e24;let _0x1116d1={'raw':![],'where':{'id':_0x2fcd91['params']['id']}};const _0xd0c1c={};return _0xd0c1c['model']=_[_0x145db2(0x1f0)](db[_0x145db2(0x214)][_0x145db2(0x1d8)]),_0xd0c1c[_0x145db2(0x1ee)]=_[_0x145db2(0x1f0)](_0x2fcd91[_0x145db2(0x1ee)]),_0xd0c1c[_0x145db2(0x1dd)]=_[_0x145db2(0x211)](_0xd0c1c[_0x145db2(0x1fc)],_0xd0c1c[_0x145db2(0x1ee)]),_0x1116d1['attributes']=_['intersection'](_0xd0c1c['model'],qs[_0x145db2(0x1ce)](_0x2fcd91[_0x145db2(0x1ee)][_0x145db2(0x1ce)])),_0x1116d1['attributes']=_0x1116d1[_0x145db2(0x21c)][_0x145db2(0x20c)]?_0x1116d1[_0x145db2(0x21c)]:_0xd0c1c[_0x145db2(0x1fc)],_0x2fcd91[_0x145db2(0x1ee)]['includeAll']&&(_0x1116d1['include']=[{'all':!![]}]),_0x1116d1=_['merge']({},_0x1116d1,_0x2fcd91[_0x145db2(0x1f8)]),db[_0x145db2(0x214)][_0x145db2(0x1f1)](_0x1116d1)['then'](handleEntityNotFound(_0x5648a0,null))['then'](respondWithResult(_0x5648a0,null))[_0x145db2(0x1ed)](handleError(_0x5648a0,null));},exports[a201_0x192e24(0x21d)]=function(_0x109e94,_0x3132c9){const _0x58b346=a201_0x192e24;return db[_0x58b346(0x214)][_0x58b346(0x21d)](_0x109e94[_0x58b346(0x1c9)],{})['then'](function(_0x24f409){const _0x23d253=_0x58b346,_0x49336b=_0x109e94[_0x23d253(0x204)][_0x23d253(0x1d9)]({'plain':!![]});if(!_0x49336b)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x49336b['role']===_0x23d253(0x204)){const _0x5f5ce2=_0x24f409[_0x23d253(0x1d9)]({'plain':!![]}),_0x5ebe3c='CustomDashboards';return db[_0x23d253(0x1d5)][_0x23d253(0x1f1)]({'where':{'name':_0x5ebe3c,'userProfileId':_0x49336b[_0x23d253(0x1da)]},'raw':!![]})['then'](function(_0x114081){const _0x387465=_0x23d253;return _0x114081&&_0x114081[_0x387465(0x1c2)]===0x0?db[_0x387465(0x1dc)][_0x387465(0x21d)]({'name':_0x5f5ce2[_0x387465(0x1ef)],'resourceId':_0x5f5ce2['id'],'type':_0x114081[_0x387465(0x1ef)],'sectionId':_0x114081['id']},{})[_0x387465(0x1f3)](function(){return _0x24f409;}):_0x24f409;})[_0x23d253(0x1ed)](function(_0x396b62){const _0x1e42e2=_0x23d253;logger[_0x1e42e2(0x1df)](_0x1e42e2(0x1e6),_0x396b62);throw _0x396b62;});}return _0x24f409;})[_0x58b346(0x1f3)](respondWithResult(_0x3132c9,0xc9))[_0x58b346(0x1ed)](handleError(_0x3132c9,null));},exports['clone']=function(_0x3fd659,_0x59c274){const _0x3ed2c5=a201_0x192e24;let _0x327fe4={'where':{'id':_0x3fd659[_0x3ed2c5(0x1ca)]['id']}};const _0x24245b={};return _0x24245b[_0x3ed2c5(0x1fc)]=_[_0x3ed2c5(0x1f0)](db[_0x3ed2c5(0x214)][_0x3ed2c5(0x1d8)]),_0x327fe4[_0x3ed2c5(0x21c)]=_[_0x3ed2c5(0x211)](_0x24245b[_0x3ed2c5(0x1fc)],qs[_0x3ed2c5(0x1ce)](_0x3fd659[_0x3ed2c5(0x1ee)][_0x3ed2c5(0x1ce)])),_0x327fe4['attributes']=_0x327fe4[_0x3ed2c5(0x21c)]['length']?_0x327fe4[_0x3ed2c5(0x21c)]:_0x24245b[_0x3ed2c5(0x1fc)],_0x3fd659[_0x3ed2c5(0x1ee)]['includeAll']&&(_0x327fe4[_0x3ed2c5(0x216)]=[{'all':!![]}]),_0x327fe4=_['merge']({},_0x327fe4,_0x3fd659[_0x3ed2c5(0x1f8)]),db[_0x3ed2c5(0x214)][_0x3ed2c5(0x1f1)](_0x327fe4)[_0x3ed2c5(0x1f3)](handleEntityNotFound(_0x59c274,null))['then'](function(_0x386587){const _0x57a4b9=_0x3ed2c5;if(_0x386587){let _0x1903d4=_0x386587[_0x57a4b9(0x1d9)]({'plain':!![]});return _0x1903d4=qs[_0x57a4b9(0x20a)](_0x1903d4,['id',_0x57a4b9(0x1c4),_0x57a4b9(0x20b)]),_0x3fd659[_0x57a4b9(0x1c9)]=_[_0x57a4b9(0x20a)](_0x3fd659['body'],['id',_0x57a4b9(0x1c4),'updatedAt']),db[_0x57a4b9(0x214)][_0x57a4b9(0x21d)](_[_0x57a4b9(0x201)](_0x1903d4,_0x3fd659['body']),{'include':_0x3fd659['query'][_0x57a4b9(0x212)]?[{'all':!![]}]:undefined})[_0x57a4b9(0x1f3)](function(_0xcddaab){const _0x33872e=_0x57a4b9,_0x4e620b=_0x3fd659[_0x33872e(0x204)]['get']({'plain':!![]});if(!_0x4e620b)throw new Error(_0x33872e(0x1f6));if(_0x4e620b[_0x33872e(0x1fd)]==='user'){const _0x1a7d8d=_0xcddaab[_0x33872e(0x1d9)]({'plain':!![]}),_0x36c44c=_0x33872e(0x21a);return db[_0x33872e(0x1d5)]['findOne']({'where':{'name':_0x36c44c,'userProfileId':_0x4e620b[_0x33872e(0x1da)]},'raw':!![]})[_0x33872e(0x1f3)](function(_0x14730d){const _0x261a0b=_0x33872e;return _0x14730d&&_0x14730d[_0x261a0b(0x1c2)]===0x0?db[_0x261a0b(0x1dc)][_0x261a0b(0x21d)]({'name':_0x1a7d8d['name'],'resourceId':_0x1a7d8d['id'],'type':_0x14730d[_0x261a0b(0x1ef)],'sectionId':_0x14730d['id']},{})[_0x261a0b(0x1f3)](function(){return _0xcddaab;}):_0xcddaab;})[_0x33872e(0x1ed)](function(_0x28ac4f){const _0xd29cc2=_0x33872e;logger[_0xd29cc2(0x1df)](_0xd29cc2(0x1e6),_0x28ac4f);throw _0x28ac4f;});}return _0xcddaab;});}})[_0x3ed2c5(0x1f3)](respondWithResult(_0x59c274,0xc9))[_0x3ed2c5(0x1ed)](handleError(_0x59c274,null));},exports[a201_0x192e24(0x1e1)]=function(_0x29c90e,_0x21a0ad){const _0x2a764a=a201_0x192e24;return _0x29c90e[_0x2a764a(0x1c9)]['id']&&delete _0x29c90e[_0x2a764a(0x1c9)]['id'],db[_0x2a764a(0x214)][_0x2a764a(0x1f1)]({'where':{'id':_0x29c90e[_0x2a764a(0x1ca)]['id']}})[_0x2a764a(0x1f3)](handleEntityNotFound(_0x21a0ad,null))[_0x2a764a(0x1f3)](saveUpdates(_0x29c90e[_0x2a764a(0x1c9)],null))[_0x2a764a(0x1f3)](respondWithResult(_0x21a0ad,null))['catch'](handleError(_0x21a0ad,null));},exports[a201_0x192e24(0x1c3)]=function(_0xf10d03,_0x4a64f8){const _0x4aadfb=a201_0x192e24;return db[_0x4aadfb(0x214)][_0x4aadfb(0x1f1)]({'where':{'id':_0xf10d03[_0x4aadfb(0x1ca)]['id']}})[_0x4aadfb(0x1f3)](handleEntityNotFound(_0x4a64f8,null))[_0x4aadfb(0x1f3)](removeEntity(_0x4a64f8,null))[_0x4aadfb(0x1ed)](handleError(_0x4a64f8,null));};function widgetAttributes(_0x2fdc22){const _0x307292=a201_0x192e24;try{switch(_0x2fdc22[_0x307292(0x218)]){case _0x307292(0x1cb):return[{'name':'attrUrl','value':_0x2fdc22['attrUrl']||(_0x2fdc22[_0x307292(0x209)]&&_0x2fdc22[_0x307292(0x209)][0x0]?_0x2fdc22[_0x307292(0x209)][0x0][_0x307292(0x1c8)]:undefined)||'https://'}];case'custom':return[{'name':'attrPath','value':_0x2fdc22['attrPath']||(_0x2fdc22[_0x307292(0x209)]&&_0x2fdc22['attrs'][0x0]?_0x2fdc22['attrs'][0x0][_0x307292(0x1c8)]:undefined)||''}];case _0x307292(0x1c7):return[{'name':_0x307292(0x1fb),'value':_0x2fdc22['attrHourFormat']||(_0x2fdc22['attrs']&&_0x2fdc22[_0x307292(0x209)][0x0]?_0x2fdc22[_0x307292(0x209)][0x0][_0x307292(0x1c8)]:undefined)||'HH:mm:ss'},{'name':_0x307292(0x1cf),'value':_0x2fdc22[_0x307292(0x1cf)]||(_0x2fdc22[_0x307292(0x209)]&&_0x2fdc22[_0x307292(0x209)][0x1]?_0x2fdc22[_0x307292(0x209)][0x1][_0x307292(0x1c8)]:undefined)||'0.00'},{'name':_0x307292(0x1e2),'value':_0x2fdc22[_0x307292(0x1e2)]||(_0x2fdc22[_0x307292(0x209)]&&_0x2fdc22['attrs'][0x2]?_0x2fdc22[_0x307292(0x209)][0x2][_0x307292(0x1c8)]:undefined)||0xc}];case _0x307292(0x1e7):return[{'name':_0x307292(0x202),'value':_0x2fdc22[_0x307292(0x202)]||(_0x2fdc22['attrs']&&_0x2fdc22['attrs'][0x0]?_0x2fdc22[_0x307292(0x209)][0x0][_0x307292(0x1c8)]:undefined)||_0x307292(0x1d7)},{'name':'attrVoiceQueues','value':_0x2fdc22[_0x307292(0x1d1)]||(_0x2fdc22[_0x307292(0x209)]&&_0x2fdc22[_0x307292(0x209)][0x1]?_0x2fdc22[_0x307292(0x209)][0x1][_0x307292(0x1c8)]:undefined)||[]},{'name':'attrFontSize','value':_0x2fdc22['attrFontSize']||(_0x2fdc22[_0x307292(0x209)]&&_0x2fdc22[_0x307292(0x209)][0x2]?_0x2fdc22[_0x307292(0x209)][0x2][_0x307292(0x1c8)]:undefined)||0x14}];case _0x307292(0x1fa):case _0x307292(0x203):return[{'name':_0x307292(0x207),'value':_0x2fdc22[_0x307292(0x207)]||(_0x2fdc22[_0x307292(0x209)]&&_0x2fdc22[_0x307292(0x209)][0x0]?_0x2fdc22[_0x307292(0x209)][0x0]['value']:undefined)||_0x307292(0x1d7)},{'name':'attrSerie2','value':_0x2fdc22['attrSerie2']||(_0x2fdc22['attrs']&&_0x2fdc22['attrs'][0x1]?_0x2fdc22[_0x307292(0x209)][0x1]['value']:undefined)||null},{'name':_0x307292(0x1f5),'value':_0x2fdc22[_0x307292(0x1f5)]||(_0x2fdc22['attrs']&&_0x2fdc22[_0x307292(0x209)][0x2]?_0x2fdc22['attrs'][0x2]['value']:undefined)||null},{'name':_0x307292(0x1d1),'value':_0x2fdc22[_0x307292(0x1d1)]||(_0x2fdc22[_0x307292(0x209)]&&_0x2fdc22[_0x307292(0x209)][0x3]?_0x2fdc22[_0x307292(0x209)][0x3][_0x307292(0x1c8)]:undefined)||[]}];case _0x307292(0x213):return[{'name':_0x307292(0x1c6),'type':_0x2fdc22['reportType']||(_0x2fdc22[_0x307292(0x209)]&&_0x2fdc22[_0x307292(0x209)][0x0]?_0x2fdc22[_0x307292(0x209)][0x0][_0x307292(0x218)]:undefined)||null,'value':_0x2fdc22[_0x307292(0x1c6)]||(_0x2fdc22[_0x307292(0x209)]&&_0x2fdc22[_0x307292(0x209)][0x0]?_0x2fdc22[_0x307292(0x209)][0x0][_0x307292(0x1c8)]:undefined)||null},{'name':_0x307292(0x1cd),'value':_0x2fdc22[_0x307292(0x1cd)]||(_0x2fdc22[_0x307292(0x209)]&&_0x2fdc22[_0x307292(0x209)][0x1]?_0x2fdc22[_0x307292(0x209)][0x1][_0x307292(0x1c8)]:undefined)||0x0}];default:return[];}}catch(_0x1f8a93){return logger[_0x307292(0x1df)](_0x307292(0x1d0),JSON[_0x307292(0x1d2)](_0x1f8a93)),[];}}exports[a201_0x192e24(0x215)]=function(_0x1937ca,_0x4033cd){const _0x4cb21a=a201_0x192e24;return _0x1937ca['body']['id']&&delete _0x1937ca[_0x4cb21a(0x1c9)]['id'],db['Dashboard']['findOne']({'where':{'id':_0x1937ca[_0x4cb21a(0x1ca)]['id']}})[_0x4cb21a(0x1f3)](handleEntityNotFound(_0x4033cd,null))[_0x4cb21a(0x1f3)](function(_0xde928f){const _0x274890=_0x4cb21a;if(_0xde928f)return _0x1937ca[_0x274890(0x1c9)]['DashboardId']=_0xde928f['id'],_0x1937ca[_0x274890(0x1c9)]['attrs']=widgetAttributes(_0x1937ca[_0x274890(0x1c9)]),db[_0x274890(0x1e3)][_0x274890(0x21d)](_0x1937ca[_0x274890(0x1c9)]);})['then'](respondWithResult(_0x4033cd,null))[_0x4cb21a(0x1ed)](handleError(_0x4033cd,null));},exports['getItems']=function(_0xf9e52a,_0x14a45f){const _0x2da94d=a201_0x192e24;let _0x4dfb21={};const _0xf1174d={};let _0x593ddb,_0x25ffbc;return db['Dashboard'][_0x2da94d(0x1f1)]({'where':{'id':_0xf9e52a[_0x2da94d(0x1ca)]['id']}})['then'](handleEntityNotFound(_0x14a45f,null))[_0x2da94d(0x1f3)](function(_0x4f191b){const _0x21bae5=_0x2da94d;if(_0x4f191b)return _0x593ddb=_0x4f191b,_0xf1174d[_0x21bae5(0x1fc)]=_[_0x21bae5(0x1f0)](db[_0x21bae5(0x1e3)][_0x21bae5(0x1d8)]),_0xf1174d[_0x21bae5(0x1ee)]=_[_0x21bae5(0x1f0)](_0xf9e52a[_0x21bae5(0x1ee)]),_0xf1174d[_0x21bae5(0x1dd)]=_['intersection'](_0xf1174d[_0x21bae5(0x1fc)],_0xf1174d['query']),_0x4dfb21[_0x21bae5(0x21c)]=_['intersection'](_0xf1174d[_0x21bae5(0x1fc)],qs[_0x21bae5(0x1ce)](_0xf9e52a[_0x21bae5(0x1ee)]['fields'])),_0x4dfb21[_0x21bae5(0x21c)]=_0x4dfb21[_0x21bae5(0x21c)][_0x21bae5(0x20c)]?_0x4dfb21[_0x21bae5(0x21c)]:_0xf1174d['model'],_0x4dfb21[_0x21bae5(0x206)]=qs[_0x21bae5(0x21b)](_0xf9e52a['query'][_0x21bae5(0x21b)]),_0x4dfb21['where']=qs['filters'](_[_0x21bae5(0x1e9)](_0xf9e52a['query'],_0xf1174d['filters'])),_0xf9e52a[_0x21bae5(0x1ee)][_0x21bae5(0x1d4)]&&(_0x4dfb21[_0x21bae5(0x1ec)]=_[_0x21bae5(0x201)](_0x4dfb21[_0x21bae5(0x1ec)],{[Op['or']]:_[_0x21bae5(0x1e4)](_0x4dfb21[_0x21bae5(0x21c)],function(_0x9dfda2){const _0xc37bb2=_0x21bae5,_0x3d672e={};return _0x3d672e[_0x9dfda2]={[Op[_0xc37bb2(0x1e5)]]:'%'+_0xf9e52a['query'][_0xc37bb2(0x1d4)]+'%'},_0x3d672e;})})),_0x4dfb21=_[_0x21bae5(0x201)]({},_0x4dfb21,_0xf9e52a[_0x21bae5(0x1f8)]),_0x593ddb['getItems'](_0x4dfb21);})['then'](function(_0x5d122a){const _0x4d9673=_0x2da94d;if(_0x5d122a)return _0x25ffbc=_0x5d122a[_0x4d9673(0x20c)],typeof _0xf9e52a['query'][_0x4d9673(0x210)]===_0x4d9673(0x205)&&(_0x4dfb21[_0x4d9673(0x1db)]=qs['limit'](_0xf9e52a[_0x4d9673(0x1ee)][_0x4d9673(0x1db)]),_0x4dfb21['offset']=qs[_0x4d9673(0x219)](_0xf9e52a[_0x4d9673(0x1ee)]['offset'])),_0x593ddb[_0x4d9673(0x200)](_0x4dfb21);})['then'](function(_0x11e784){if(_0x11e784)return _0x11e784?{'count':_0x25ffbc,'rows':_0x11e784}:null;})['then'](respondWithResult(_0x14a45f,null))[_0x2da94d(0x1ed)](handleError(_0x14a45f,null));}; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.events.js b/server/api/dashboard/dashboard.events.js index dca0bbd..195521d 100644 --- a/server/api/dashboard/dashboard.events.js +++ b/server/api/dashboard/dashboard.events.js @@ -1 +1 @@ -const a202_0x1aec=['update','remove','events','save','Dashboard','emit','setMaxListeners','../../mysqldb'];(function(_0x3d7c22,_0x31408a){const _0x1aec84=function(_0x5e0534){while(--_0x5e0534){_0x3d7c22['push'](_0x3d7c22['shift']());}};_0x1aec84(++_0x31408a);}(a202_0x1aec,0x11f));const a202_0x5e05=function(_0x3d7c22,_0x31408a){_0x3d7c22=_0x3d7c22-0x17a;let _0x1aec84=a202_0x1aec[_0x3d7c22];return _0x1aec84;};const a202_0x4dafaf=a202_0x5e05;'use strict';const EventEmitter=require(a202_0x4dafaf(0x17d)),Dashboard=require(a202_0x4dafaf(0x17a))['db'][a202_0x4dafaf(0x17f)],DashboardEvents=new EventEmitter();DashboardEvents[a202_0x4dafaf(0x181)](0x0);const events={'afterCreate':a202_0x4dafaf(0x17e),'afterUpdate':a202_0x4dafaf(0x17b),'afterDestroy':a202_0x4dafaf(0x17c)};function emitEvent(_0x3274f4){return function(_0x1bf37d){const _0x4c9c43=a202_0x5e05;DashboardEvents['emit'](_0x3274f4+':'+_0x1bf37d['id'],_0x1bf37d),DashboardEvents[_0x4c9c43(0x180)](_0x3274f4,_0x1bf37d);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];Dashboard['addHook'](e,emitEvent(event));}}module['exports']=DashboardEvents; \ No newline at end of file +const a202_0x306c=['save','Dashboard','undefined','addHook','update','exports','emit','events'];(function(_0x2c6e11,_0x123bec){const _0x306c07=function(_0x2760ec){while(--_0x2760ec){_0x2c6e11['push'](_0x2c6e11['shift']());}};_0x306c07(++_0x123bec);}(a202_0x306c,0x1df));const a202_0x2760=function(_0x2c6e11,_0x123bec){_0x2c6e11=_0x2c6e11-0x94;let _0x306c07=a202_0x306c[_0x2c6e11];return _0x306c07;};const a202_0x329424=a202_0x2760;'use strict';const EventEmitter=require(a202_0x329424(0x94)),Dashboard=require('../../mysqldb')['db'][a202_0x329424(0x96)],DashboardEvents=new EventEmitter();DashboardEvents['setMaxListeners'](0x0);const events={'afterCreate':a202_0x329424(0x95),'afterUpdate':a202_0x329424(0x99),'afterDestroy':'remove'};function emitEvent(_0x536b79){return function(_0x1ca7d5){const _0x379c4d=a202_0x2760;DashboardEvents[_0x379c4d(0x9b)](_0x536b79+':'+_0x1ca7d5['id'],_0x1ca7d5),DashboardEvents[_0x379c4d(0x9b)](_0x536b79,_0x1ca7d5);};}for(const e in events){if(typeof events[e]!==a202_0x329424(0x97)){const event=events[e];Dashboard[a202_0x329424(0x98)](e,emitEvent(event));}}module[a202_0x329424(0x9a)]=DashboardEvents; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.model.js b/server/api/dashboard/dashboard.model.js index 94c11ef..2cc967c 100644 --- a/server/api/dashboard/dashboard.model.js +++ b/server/api/dashboard/dashboard.model.js @@ -1 +1 @@ -const a203_0x455f=['exports','sequelize','function','init'];(function(_0x2373c3,_0x1ef5c4){const _0x455fd3=function(_0x390a77){while(--_0x390a77){_0x2373c3['push'](_0x2373c3['shift']());}};_0x455fd3(++_0x1ef5c4);}(a203_0x455f,0x1ba));const a203_0x390a=function(_0x2373c3,_0x1ef5c4){_0x2373c3=_0x2373c3-0xc5;let _0x455fd3=a203_0x455f[_0x2373c3];return _0x455fd3;};const a203_0x394f02=a203_0x390a;'use strict';const {Model}=require(a203_0x394f02(0xc8)),{attributes}=require('./dashboard.attributes'),{options}=require('./dashboard.options');class Dashboard extends Model{}function init(_0x31943e,_0x1c7a1c){const _0x2d0cf9=a203_0x394f02,_0x1eceba=options(_0x31943e),_0x543d49=typeof _0x1c7a1c===_0x2d0cf9(0xc5)?_0x1c7a1c(_0x1eceba):_0x1eceba;return Dashboard[_0x2d0cf9(0xc6)](attributes,_0x543d49),Dashboard;}module['exports']['Dashboard']=Dashboard,module[a203_0x394f02(0xc7)][a203_0x394f02(0xc6)]=init; \ No newline at end of file +const a203_0x2397=['./dashboard.attributes','./dashboard.options','init','exports','Dashboard','sequelize'];(function(_0x499251,_0x401113){const _0x239712=function(_0x19d014){while(--_0x19d014){_0x499251['push'](_0x499251['shift']());}};_0x239712(++_0x401113);}(a203_0x2397,0x10d));const a203_0x19d0=function(_0x499251,_0x401113){_0x499251=_0x499251-0xc1;let _0x239712=a203_0x2397[_0x499251];return _0x239712;};const a203_0x358b8e=a203_0x19d0;'use strict';const {Model}=require(a203_0x358b8e(0xc1)),{attributes}=require(a203_0x358b8e(0xc2)),{options}=require(a203_0x358b8e(0xc3));class Dashboard extends Model{}function init(_0x33a055,_0x504237){const _0x54cf47=options(_0x33a055),_0x58bd41=typeof _0x504237==='function'?_0x504237(_0x54cf47):_0x54cf47;return Dashboard['init'](attributes,_0x58bd41),Dashboard;}module['exports'][a203_0x358b8e(0xc6)]=Dashboard,module[a203_0x358b8e(0xc5)][a203_0x358b8e(0xc4)]=init; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.options.js b/server/api/dashboard/dashboard.options.js index 2a9e0a2..bf224cd 100644 --- a/server/api/dashboard/dashboard.options.js +++ b/server/api/dashboard/dashboard.options.js @@ -1 +1 @@ -var a204_0x347c=['dashboards','exports'];(function(_0x302e01,_0x1bfe81){var _0x347c57=function(_0x126f11){while(--_0x126f11){_0x302e01['push'](_0x302e01['shift']());}};_0x347c57(++_0x1bfe81);}(a204_0x347c,0xf6));var a204_0x126f=function(_0x302e01,_0x1bfe81){_0x302e01=_0x302e01-0xef;var _0x347c57=a204_0x347c[_0x302e01];return _0x347c57;};var a204_0x317c32=a204_0x126f;function options(_0x13344c){var _0x15c05e=a204_0x126f;return{'sequelize':_0x13344c,'tableName':_0x15c05e(0xef),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a204_0x317c32(0xf0)]['options']=options; \ No newline at end of file +var a204_0x5de2=['exports','dashboards','options'];(function(_0x88b5bb,_0x2901d7){var _0x5de22e=function(_0x34b6ef){while(--_0x34b6ef){_0x88b5bb['push'](_0x88b5bb['shift']());}};_0x5de22e(++_0x2901d7);}(a204_0x5de2,0xf3));var a204_0x34b6=function(_0x88b5bb,_0x2901d7){_0x88b5bb=_0x88b5bb-0x95;var _0x5de22e=a204_0x5de2[_0x88b5bb];return _0x5de22e;};var a204_0x52210c=a204_0x34b6;function options(_0x1bdda4){var _0x2e6437=a204_0x34b6;return{'sequelize':_0x1bdda4,'tableName':_0x2e6437(0x96),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a204_0x52210c(0x95)][a204_0x52210c(0x97)]=options; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.rpc.js b/server/api/dashboard/dashboard.rpc.js index b3e9539..f838cf7 100644 --- a/server/api/dashboard/dashboard.rpc.js +++ b/server/api/dashboard/dashboard.rpc.js @@ -1 +1 @@ -const a205_0xf225=['register','../../rediscache','./dashboard.socket'];(function(_0x144714,_0x26dcba){const _0xf2251d=function(_0x188c2f){while(--_0x188c2f){_0x144714['push'](_0x144714['shift']());}};_0xf2251d(++_0x26dcba);}(a205_0xf225,0x11c));const a205_0x188c=function(_0x144714,_0x26dcba){_0x144714=_0x144714-0x14e;let _0xf2251d=a205_0xf225[_0x144714];return _0xf2251d;};const a205_0xd99819=a205_0x188c;'use strict';const {getSocket}=require(a205_0xd99819(0x150)),socket=getSocket();require(a205_0xd99819(0x14e))[a205_0xd99819(0x14f)](socket); \ No newline at end of file +const a205_0x2042=['register','../../rediscache','./dashboard.socket'];(function(_0xbe0aaf,_0x458f26){const _0x20428a=function(_0x188fcc){while(--_0x188fcc){_0xbe0aaf['push'](_0xbe0aaf['shift']());}};_0x20428a(++_0x458f26);}(a205_0x2042,0xbe));const a205_0x188f=function(_0xbe0aaf,_0x458f26){_0xbe0aaf=_0xbe0aaf-0x81;let _0x20428a=a205_0x2042[_0xbe0aaf];return _0x20428a;};const a205_0x2d85b9=a205_0x188f;'use strict';const {getSocket}=require(a205_0x2d85b9(0x81)),socket=getSocket();require(a205_0x2d85b9(0x82))[a205_0x2d85b9(0x83)](socket); \ No newline at end of file diff --git a/server/api/dashboard/dashboard.socket.js b/server/api/dashboard/dashboard.socket.js index c961240..cd20841 100644 --- a/server/api/dashboard/dashboard.socket.js +++ b/server/api/dashboard/dashboard.socket.js @@ -1 +1 @@ -const a206_0x4ef2=['emit','save','length','./dashboard.events','remove'];(function(_0x18a47a,_0x35e61f){const _0x4ef225=function(_0x1f408c){while(--_0x1f408c){_0x18a47a['push'](_0x18a47a['shift']());}};_0x4ef225(++_0x35e61f);}(a206_0x4ef2,0xe5));const a206_0x1f40=function(_0x18a47a,_0x35e61f){_0x18a47a=_0x18a47a-0xb4;let _0x4ef225=a206_0x4ef2[_0x18a47a];return _0x4ef225;};const a206_0x518dbb=a206_0x1f40;'use strict';const DashboardEvents=require(a206_0x518dbb(0xb8)),events=[a206_0x518dbb(0xb6),a206_0x518dbb(0xb4),'update'];function createListener(_0x15956a,_0x27f130){return function(_0x40f768){const _0x1d055e=a206_0x1f40;_0x27f130[_0x1d055e(0xb5)](_0x15956a,_0x40f768);};}exports['register']=function(_0x3f0777){const _0x50805d=a206_0x518dbb;for(let _0x58516c=0x0,_0x5a7b8d=events[_0x50805d(0xb7)];_0x58516c<_0x5a7b8d;_0x58516c++){const _0x5dfa6c=events[_0x58516c],_0x5fe35f=createListener('dashboard:'+_0x5dfa6c,_0x3f0777);DashboardEvents['on'](_0x5dfa6c,_0x5fe35f);}}; \ No newline at end of file +const a206_0x269f=['length','save','emit','./dashboard.events','remove','register'];(function(_0x9f20ea,_0x3ace79){const _0x269f4b=function(_0x17ee69){while(--_0x17ee69){_0x9f20ea['push'](_0x9f20ea['shift']());}};_0x269f4b(++_0x3ace79);}(a206_0x269f,0xd5));const a206_0x17ee=function(_0x9f20ea,_0x3ace79){_0x9f20ea=_0x9f20ea-0x8a;let _0x269f4b=a206_0x269f[_0x9f20ea];return _0x269f4b;};const a206_0x569b8d=a206_0x17ee;'use strict';const DashboardEvents=require(a206_0x569b8d(0x8a)),events=[a206_0x569b8d(0x8e),a206_0x569b8d(0x8b),'update'];function createListener(_0x28b260,_0x1c8a7e){return function(_0x54e638){const _0x53c07b=a206_0x17ee;_0x1c8a7e[_0x53c07b(0x8f)](_0x28b260,_0x54e638);};}exports[a206_0x569b8d(0x8c)]=function(_0x329b47){const _0xe9400d=a206_0x569b8d;for(let _0x26263e=0x0,_0x25ac78=events[_0xe9400d(0x8d)];_0x26263e<_0x25ac78;_0x26263e++){const _0x921ef5=events[_0x26263e],_0xa8a92b=createListener('dashboard:'+_0x921ef5,_0x329b47);DashboardEvents['on'](_0x921ef5,_0xa8a92b);}}; \ No newline at end of file diff --git a/server/api/dashboard/index.js b/server/api/dashboard/index.js index 5dc06bd..5106544 100644 --- a/server/api/dashboard/index.js +++ b/server/api/dashboard/index.js @@ -1 +1 @@ -const a207_0x2248=['index','../../components/auth/service','Router','destroy','./dashboard.controller','getItems','update','create','isAuthenticated','/:id','exports','get','/:id/items','/:id/clone','put','express','addItem','post','clone','delete'];(function(_0x5f07d8,_0x24ca53){const _0x2248b2=function(_0x56d111){while(--_0x56d111){_0x5f07d8['push'](_0x5f07d8['shift']());}};_0x2248b2(++_0x24ca53);}(a207_0x2248,0x1a3));const a207_0x56d1=function(_0x5f07d8,_0x24ca53){_0x5f07d8=_0x5f07d8-0x142;let _0x2248b2=a207_0x2248[_0x5f07d8];return _0x2248b2;};const a207_0x5da7b2=a207_0x56d1;'use strict';const express=require(a207_0x5da7b2(0x152)),router=express[a207_0x5da7b2(0x145)](),auth=require(a207_0x5da7b2(0x144)),controller=require(a207_0x5da7b2(0x147));router[a207_0x5da7b2(0x14e)]('/',auth[a207_0x5da7b2(0x14b)](),controller[a207_0x5da7b2(0x143)]),router['get']('/:id',auth[a207_0x5da7b2(0x14b)](),controller['show']),router['get'](a207_0x5da7b2(0x14f),auth[a207_0x5da7b2(0x14b)](),controller[a207_0x5da7b2(0x148)]),router[a207_0x5da7b2(0x154)]('/',auth[a207_0x5da7b2(0x14b)](),controller[a207_0x5da7b2(0x14a)]),router[a207_0x5da7b2(0x154)](a207_0x5da7b2(0x150),auth[a207_0x5da7b2(0x14b)](),controller[a207_0x5da7b2(0x155)]),router[a207_0x5da7b2(0x154)]('/:id/items',auth[a207_0x5da7b2(0x14b)](),controller[a207_0x5da7b2(0x153)]),router[a207_0x5da7b2(0x151)](a207_0x5da7b2(0x14c),auth[a207_0x5da7b2(0x14b)](),controller[a207_0x5da7b2(0x149)]),router[a207_0x5da7b2(0x142)](a207_0x5da7b2(0x14c),auth[a207_0x5da7b2(0x14b)](),controller[a207_0x5da7b2(0x146)]),module[a207_0x5da7b2(0x14d)]=router; \ No newline at end of file +const a207_0x362f=['Router','/:id/items','update','post','isAuthenticated','exports','create','delete','./dashboard.controller','get','clone','addItem','/:id','/:id/clone'];(function(_0x70d7b7,_0x52f27a){const _0x362f4c=function(_0x3ed570){while(--_0x3ed570){_0x70d7b7['push'](_0x70d7b7['shift']());}};_0x362f4c(++_0x52f27a);}(a207_0x362f,0xce));const a207_0x3ed5=function(_0x70d7b7,_0x52f27a){_0x70d7b7=_0x70d7b7-0x1b0;let _0x362f4c=a207_0x362f[_0x70d7b7];return _0x362f4c;};const a207_0x285ca5=a207_0x3ed5;'use strict';const express=require('express'),router=express[a207_0x285ca5(0x1b4)](),auth=require('../../components/auth/service'),controller=require(a207_0x285ca5(0x1bc));router[a207_0x285ca5(0x1bd)]('/',auth[a207_0x285ca5(0x1b8)](),controller['index']),router[a207_0x285ca5(0x1bd)](a207_0x285ca5(0x1b2),auth[a207_0x285ca5(0x1b8)](),controller['show']),router['get'](a207_0x285ca5(0x1b5),auth[a207_0x285ca5(0x1b8)](),controller['getItems']),router[a207_0x285ca5(0x1b7)]('/',auth[a207_0x285ca5(0x1b8)](),controller[a207_0x285ca5(0x1ba)]),router[a207_0x285ca5(0x1b7)](a207_0x285ca5(0x1b3),auth['isAuthenticated'](),controller[a207_0x285ca5(0x1b0)]),router[a207_0x285ca5(0x1b7)](a207_0x285ca5(0x1b5),auth[a207_0x285ca5(0x1b8)](),controller[a207_0x285ca5(0x1b1)]),router['put'](a207_0x285ca5(0x1b2),auth[a207_0x285ca5(0x1b8)](),controller[a207_0x285ca5(0x1b6)]),router[a207_0x285ca5(0x1bb)](a207_0x285ca5(0x1b2),auth[a207_0x285ca5(0x1b8)](),controller['destroy']),module[a207_0x285ca5(0x1b9)]=router; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.attributes.js b/server/api/dashboardItem/dashboardItem.attributes.js index 9f5f714..4680db1 100644 --- a/server/api/dashboardItem/dashboardItem.attributes.js +++ b/server/api/dashboardItem/dashboardItem.attributes.js @@ -1 +1 @@ -const a208_0x46a0=['#ffffff','stringify','attrs','STRING','INTEGER','long','setDataValue','getDataValue','sequelize','#2196f3','TEXT'];(function(_0x4d7550,_0x5f246){const _0x46a06e=function(_0x9b0be){while(--_0x9b0be){_0x4d7550['push'](_0x4d7550['shift']());}};_0x46a06e(++_0x5f246);}(a208_0x46a0,0xf9));const a208_0x9b0b=function(_0x4d7550,_0x5f246){_0x4d7550=_0x4d7550-0xd6;let _0x46a06e=a208_0x46a0[_0x4d7550];return _0x46a06e;};const a208_0x570cf0=a208_0x9b0b;'use strict';const {DataTypes}=require(a208_0x570cf0(0xd7)),attributes={'title':{'type':DataTypes[a208_0x570cf0(0xdd)],'allowNull':![]},'type':{'type':DataTypes[a208_0x570cf0(0xdd)](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':DataTypes[a208_0x570cf0(0xd9)]({'length':a208_0x570cf0(0xdf)}),'get':function(){const _0x175fc2=a208_0x570cf0;try{return JSON['parse'](this[_0x175fc2(0xd6)]('attrs'));}catch(_0xbba408){return[];}},'set':function(_0x341a91){const _0x5a68cb=a208_0x570cf0;try{this[_0x5a68cb(0xe0)](_0x5a68cb(0xdc),JSON[_0x5a68cb(0xdb)](_0x341a91));}catch(_0x6447de){this[_0x5a68cb(0xe0)](_0x5a68cb(0xdc),JSON[_0x5a68cb(0xdb)]([]));}}},'sizeX':{'type':DataTypes[a208_0x570cf0(0xde)],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':DataTypes[a208_0x570cf0(0xde)],'allowNull':![],'defaultValue':0x1},'row':{'type':DataTypes[a208_0x570cf0(0xde)]},'col':{'type':DataTypes[a208_0x570cf0(0xde)]},'background':{'type':DataTypes[a208_0x570cf0(0xdd)],'allowNull':![],'defaultValue':a208_0x570cf0(0xda),'validate':{'notEmpty':!![]}},'foreground':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':a208_0x570cf0(0xd8),'validate':{'notEmpty':!![]}},'link':{'type':DataTypes[a208_0x570cf0(0xdd)]}};module['exports']['attributes']=attributes; \ No newline at end of file +const a208_0x573d=['TEXT','attrs','#ffffff','long','sequelize','stringify','setDataValue','#2196f3','exports','INTEGER','STRING','getDataValue'];(function(_0x928ebd,_0x19b892){const _0x573d1c=function(_0x18c65e){while(--_0x18c65e){_0x928ebd['push'](_0x928ebd['shift']());}};_0x573d1c(++_0x19b892);}(a208_0x573d,0x117));const a208_0x18c6=function(_0x928ebd,_0x19b892){_0x928ebd=_0x928ebd-0xd9;let _0x573d1c=a208_0x573d[_0x928ebd];return _0x573d1c;};const a208_0x159d46=a208_0x18c6;'use strict';const {DataTypes}=require(a208_0x159d46(0xda)),attributes={'title':{'type':DataTypes[a208_0x159d46(0xe0)],'allowNull':![]},'type':{'type':DataTypes[a208_0x159d46(0xe0)](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':DataTypes[a208_0x159d46(0xe2)]({'length':a208_0x159d46(0xd9)}),'get':function(){const _0x402b97=a208_0x159d46;try{return JSON['parse'](this[_0x402b97(0xe1)]('attrs'));}catch(_0xdbf346){return[];}},'set':function(_0x42ea82){const _0xdfb311=a208_0x159d46;try{this['setDataValue']('attrs',JSON['stringify'](_0x42ea82));}catch(_0x4b19a8){this[_0xdfb311(0xdc)](_0xdfb311(0xe3),JSON[_0xdfb311(0xdb)]([]));}}},'sizeX':{'type':DataTypes['INTEGER'],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':DataTypes[a208_0x159d46(0xdf)],'allowNull':![],'defaultValue':0x1},'row':{'type':DataTypes[a208_0x159d46(0xdf)]},'col':{'type':DataTypes['INTEGER']},'background':{'type':DataTypes[a208_0x159d46(0xe0)],'allowNull':![],'defaultValue':a208_0x159d46(0xe4),'validate':{'notEmpty':!![]}},'foreground':{'type':DataTypes[a208_0x159d46(0xe0)],'allowNull':![],'defaultValue':a208_0x159d46(0xdd),'validate':{'notEmpty':!![]}},'link':{'type':DataTypes['STRING']}};module[a208_0x159d46(0xde)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.controller.js b/server/api/dashboardItem/dashboardItem.controller.js index 9612cef..256ecbe 100644 --- a/server/api/dashboardItem/dashboardItem.controller.js +++ b/server/api/dashboardItem/dashboardItem.controller.js @@ -1 +1 @@ -const a209_0x1bc1=['model','params','update','attrSerie1','../../mysqldb','total','filters','0.00','show','send','keys','type','counter','stringify','attrFontSize','custom','pie-chart','query','value','attrPath','intersection','end','./dashboardItem.socket','attrs','attributes','error','web-report','rawAttributes','attrVoiceQueues','../../components/parsers/qs','attrTimezone','status','body','destroy','attrSerie2','name','https://','catch','then','multibar-chart','json','attrUrl','attrMetric','widgetAttributes:\x20%s','../../rediscache','DashboardItem','fields','findOne','attrReport','register','sendStatus','create','stack','attrSerie3','merge','lodash','clock'];(function(_0x271a2b,_0x1a57d8){const _0x1bc1b8=function(_0x49fa54){while(--_0x49fa54){_0x271a2b['push'](_0x271a2b['shift']());}};_0x1bc1b8(++_0x1a57d8);}(a209_0x1bc1,0xac));const a209_0x49fa=function(_0x271a2b,_0x1a57d8){_0x271a2b=_0x271a2b-0x1b2;let _0x1bc1b8=a209_0x1bc1[_0x271a2b];return _0x1bc1b8;};const a209_0x405643=a209_0x49fa;'use strict';const _=require(a209_0x405643(0x1e8)),qs=require(a209_0x405643(0x1ce)),logger=require('../../config/logger')('api'),{getSocket}=require(a209_0x405643(0x1dd)),socket=getSocket(),{db}=require(a209_0x405643(0x1b5));require(a209_0x405643(0x1c7))[a209_0x405643(0x1e2)](socket);function respondWithResult(_0x506266,_0x59bd42){return _0x59bd42=_0x59bd42||0xc8,function(_0x1dd141){const _0x3198dd=a209_0x49fa;if(_0x1dd141)return _0x506266['status'](_0x59bd42)[_0x3198dd(0x1d9)](_0x1dd141);};}function saveUpdates(_0x1fd065){return function(_0x5cb185){const _0x4f92e3=a209_0x49fa;if(_0x5cb185)return _0x5cb185['update'](_0x1fd065)[_0x4f92e3(0x1d7)](function(_0x346ddf){return _0x346ddf;});return null;};}function removeEntity(_0x3eb14b){return function(_0x427c12){const _0x5ded71=a209_0x49fa;if(_0x427c12)return _0x427c12[_0x5ded71(0x1d2)]()['then'](function(){const _0x4cf122=_0x5ded71;_0x3eb14b['status'](0xcc)[_0x4cf122(0x1c6)]();});};}function handleEntityNotFound(_0x8cd86d){return function(_0x17b480){const _0x515199=a209_0x49fa;return!_0x17b480&&_0x8cd86d[_0x515199(0x1e3)](0x194),_0x17b480;};}function handleError(_0x7f9ec8,_0x6100b8){return _0x6100b8=_0x6100b8||0x1f4,function(_0xe74e10){const _0x496b93=a209_0x49fa;logger[_0x496b93(0x1ca)](_0xe74e10[_0x496b93(0x1e5)]),_0xe74e10[_0x496b93(0x1d4)]&&delete _0xe74e10['name'],_0x7f9ec8[_0x496b93(0x1d0)](_0x6100b8)[_0x496b93(0x1ba)](_0xe74e10);};}exports[a209_0x405643(0x1b9)]=function(_0x3ef95c,_0x575936){const _0x414b1b=a209_0x405643;let _0x15a41f={'raw':![],'where':{'id':_0x3ef95c[_0x414b1b(0x1b2)]['id']}};const _0x2f2de6={};return _0x2f2de6[_0x414b1b(0x1ea)]=_[_0x414b1b(0x1bb)](db['DashboardItem'][_0x414b1b(0x1cc)]),_0x2f2de6[_0x414b1b(0x1c2)]=_['keys'](_0x3ef95c[_0x414b1b(0x1c2)]),_0x2f2de6[_0x414b1b(0x1b7)]=_[_0x414b1b(0x1c5)](_0x2f2de6['model'],_0x2f2de6['query']),_0x15a41f[_0x414b1b(0x1c9)]=_['intersection'](_0x2f2de6[_0x414b1b(0x1ea)],qs[_0x414b1b(0x1df)](_0x3ef95c['query'][_0x414b1b(0x1df)])),_0x15a41f['attributes']=_0x15a41f[_0x414b1b(0x1c9)]['length']?_0x15a41f[_0x414b1b(0x1c9)]:_0x2f2de6[_0x414b1b(0x1ea)],_0x3ef95c[_0x414b1b(0x1c2)]['includeAll']&&(_0x15a41f['include']=[{'all':!![]}]),_0x15a41f=_[_0x414b1b(0x1e7)]({},_0x15a41f,_0x3ef95c['options']),db[_0x414b1b(0x1de)][_0x414b1b(0x1e0)](_0x15a41f)[_0x414b1b(0x1d7)](handleEntityNotFound(_0x575936,null))[_0x414b1b(0x1d7)](respondWithResult(_0x575936,null))[_0x414b1b(0x1d6)](handleError(_0x575936,null));},exports[a209_0x405643(0x1d2)]=function(_0x2d30b9,_0x62d02a){const _0x5d3dec=a209_0x405643;return db[_0x5d3dec(0x1de)][_0x5d3dec(0x1e0)]({'where':{'id':_0x2d30b9[_0x5d3dec(0x1b2)]['id']}})['then'](handleEntityNotFound(_0x62d02a,null))[_0x5d3dec(0x1d7)](removeEntity(_0x62d02a,null))['catch'](handleError(_0x62d02a,null));};function widgetAttributes(_0x4f1d94){const _0x287b69=a209_0x405643;try{switch(_0x4f1d94[_0x287b69(0x1bc)]){case'iframe':return[{'name':_0x287b69(0x1da),'value':_0x4f1d94['attrUrl']||(_0x4f1d94[_0x287b69(0x1c8)]&&_0x4f1d94[_0x287b69(0x1c8)][0x0]?_0x4f1d94[_0x287b69(0x1c8)][0x0][_0x287b69(0x1c3)]:undefined)||_0x287b69(0x1d5)}];case _0x287b69(0x1c0):return[{'name':_0x287b69(0x1c4),'value':_0x4f1d94[_0x287b69(0x1c4)]||(_0x4f1d94[_0x287b69(0x1c8)]&&_0x4f1d94[_0x287b69(0x1c8)][0x0]?_0x4f1d94[_0x287b69(0x1c8)][0x0]['value']:undefined)||''}];case _0x287b69(0x1e9):return[{'name':'attrHourFormat','value':_0x4f1d94['attrHourFormat']||(_0x4f1d94[_0x287b69(0x1c8)]&&_0x4f1d94['attrs'][0x0]?_0x4f1d94[_0x287b69(0x1c8)][0x0][_0x287b69(0x1c3)]:undefined)||'HH:mm:ss'},{'name':'attrTimezone','value':_0x4f1d94[_0x287b69(0x1cf)]||(_0x4f1d94['attrs']&&_0x4f1d94[_0x287b69(0x1c8)][0x1]?_0x4f1d94['attrs'][0x1]['value']:undefined)||_0x287b69(0x1b8)},{'name':_0x287b69(0x1bf),'value':_0x4f1d94[_0x287b69(0x1bf)]||(_0x4f1d94[_0x287b69(0x1c8)]&&_0x4f1d94[_0x287b69(0x1c8)][0x2]?_0x4f1d94[_0x287b69(0x1c8)][0x2][_0x287b69(0x1c3)]:undefined)||0xc}];case _0x287b69(0x1bd):return[{'name':_0x287b69(0x1db),'value':_0x4f1d94[_0x287b69(0x1db)]||(_0x4f1d94[_0x287b69(0x1c8)]&&_0x4f1d94[_0x287b69(0x1c8)][0x0]?_0x4f1d94[_0x287b69(0x1c8)][0x0][_0x287b69(0x1c3)]:undefined)||_0x287b69(0x1b6)},{'name':_0x287b69(0x1cd),'value':_0x4f1d94['attrVoiceQueues']||(_0x4f1d94[_0x287b69(0x1c8)]&&_0x4f1d94['attrs'][0x1]?_0x4f1d94[_0x287b69(0x1c8)][0x1][_0x287b69(0x1c3)]:undefined)||[]},{'name':_0x287b69(0x1bf),'value':_0x4f1d94['attrFontSize']||(_0x4f1d94[_0x287b69(0x1c8)]&&_0x4f1d94[_0x287b69(0x1c8)][0x2]?_0x4f1d94[_0x287b69(0x1c8)][0x2][_0x287b69(0x1c3)]:undefined)||0x14}];case _0x287b69(0x1d8):case _0x287b69(0x1c1):return[{'name':_0x287b69(0x1b4),'value':_0x4f1d94['attrSerie1']||(_0x4f1d94[_0x287b69(0x1c8)]&&_0x4f1d94[_0x287b69(0x1c8)][0x0]?_0x4f1d94[_0x287b69(0x1c8)][0x0][_0x287b69(0x1c3)]:undefined)||_0x287b69(0x1b6)},{'name':_0x287b69(0x1d3),'value':_0x4f1d94[_0x287b69(0x1d3)]||(_0x4f1d94[_0x287b69(0x1c8)]&&_0x4f1d94[_0x287b69(0x1c8)][0x1]?_0x4f1d94[_0x287b69(0x1c8)][0x1][_0x287b69(0x1c3)]:undefined)||null},{'name':_0x287b69(0x1e6),'value':_0x4f1d94[_0x287b69(0x1e6)]||(_0x4f1d94['attrs']&&_0x4f1d94[_0x287b69(0x1c8)][0x2]?_0x4f1d94['attrs'][0x2]['value']:undefined)||null},{'name':_0x287b69(0x1cd),'value':_0x4f1d94[_0x287b69(0x1cd)]||(_0x4f1d94['attrs']&&_0x4f1d94['attrs'][0x3]?_0x4f1d94[_0x287b69(0x1c8)][0x3][_0x287b69(0x1c3)]:undefined)||[]}];case _0x287b69(0x1cb):return[{'name':_0x287b69(0x1e1),'type':_0x4f1d94['reportType']||(_0x4f1d94[_0x287b69(0x1c8)]&&_0x4f1d94[_0x287b69(0x1c8)][0x0]?_0x4f1d94[_0x287b69(0x1c8)][0x0][_0x287b69(0x1bc)]:undefined)||null,'value':_0x4f1d94[_0x287b69(0x1e1)]||(_0x4f1d94['attrs']&&_0x4f1d94[_0x287b69(0x1c8)][0x0]?_0x4f1d94[_0x287b69(0x1c8)][0x0][_0x287b69(0x1c3)]:undefined)||null},{'name':'attrRefresh','value':_0x4f1d94['attrRefresh']||(_0x4f1d94['attrs']&&_0x4f1d94['attrs'][0x1]?_0x4f1d94[_0x287b69(0x1c8)][0x1]['value']:undefined)||0x0}];default:return[];}}catch(_0x3ddb56){return logger['error'](_0x287b69(0x1dc),JSON[_0x287b69(0x1be)](_0x3ddb56)),[];}}exports['create']=function(_0x15e1b2,_0x421cde){const _0x36bfce=a209_0x405643;return _0x15e1b2[_0x36bfce(0x1d1)]&&(_0x15e1b2[_0x36bfce(0x1d1)][_0x36bfce(0x1c8)]=widgetAttributes(_0x15e1b2[_0x36bfce(0x1d1)])),db[_0x36bfce(0x1de)][_0x36bfce(0x1e4)](_0x15e1b2[_0x36bfce(0x1d1)],{})[_0x36bfce(0x1d7)](respondWithResult(_0x421cde,0xc9))[_0x36bfce(0x1d6)](handleError(_0x421cde,null));},exports[a209_0x405643(0x1b3)]=function(_0xe3b3ad,_0x907dea){const _0x19dc5f=a209_0x405643;return _0xe3b3ad[_0x19dc5f(0x1d1)]['id']&&delete _0xe3b3ad[_0x19dc5f(0x1d1)]['id'],_0xe3b3ad[_0x19dc5f(0x1d1)][_0x19dc5f(0x1c8)]=widgetAttributes(_0xe3b3ad[_0x19dc5f(0x1d1)]),db[_0x19dc5f(0x1de)]['findOne']({'where':{'id':_0xe3b3ad[_0x19dc5f(0x1b2)]['id']}})[_0x19dc5f(0x1d7)](handleEntityNotFound(_0x907dea,null))[_0x19dc5f(0x1d7)](saveUpdates(_0xe3b3ad[_0x19dc5f(0x1d1)],null))[_0x19dc5f(0x1d7)](respondWithResult(_0x907dea,null))['catch'](handleError(_0x907dea,null));}; \ No newline at end of file +const a209_0x3a5e=['options','clock','filters','attrFontSize','findOne','status','length','0.00','attrSerie2','pie-chart','../../mysqldb','attrUrl','attrRefresh','keys','query','stack','DashboardItem','attributes','stringify','attrSerie3','custom','update','multibar-chart','send','json','attrs','create','counter','includeAll','type','attrReport','lodash','attrSerie1','model','catch','../../components/parsers/qs','value','attrMetric','merge','name','body','register','params','../../config/logger','fields','attrHourFormat','attrTimezone','include','destroy','intersection','then','attrVoiceQueues'];(function(_0x45f2d8,_0x50a58b){const _0x3a5e8c=function(_0x50198e){while(--_0x50198e){_0x45f2d8['push'](_0x45f2d8['shift']());}};_0x3a5e8c(++_0x50a58b);}(a209_0x3a5e,0x13a));const a209_0x5019=function(_0x45f2d8,_0x50a58b){_0x45f2d8=_0x45f2d8-0x1d3;let _0x3a5e8c=a209_0x3a5e[_0x45f2d8];return _0x3a5e8c;};const a209_0x9a0b95=a209_0x5019;'use strict';const _=require(a209_0x9a0b95(0x1f0)),qs=require(a209_0x9a0b95(0x1f4)),logger=require(a209_0x9a0b95(0x1fc))('api'),{getSocket}=require('../../rediscache'),socket=getSocket(),{db}=require(a209_0x9a0b95(0x1db));require('./dashboardItem.socket')[a209_0x9a0b95(0x1fa)](socket);function respondWithResult(_0x115a7a,_0x434945){return _0x434945=_0x434945||0xc8,function(_0x38d8b8){const _0x1e0971=a209_0x5019;if(_0x38d8b8)return _0x115a7a[_0x1e0971(0x1d6)](_0x434945)[_0x1e0971(0x1e9)](_0x38d8b8);};}function saveUpdates(_0x357681){return function(_0x1bbcec){const _0x4c3175=a209_0x5019;if(_0x1bbcec)return _0x1bbcec['update'](_0x357681)[_0x4c3175(0x203)](function(_0x107c40){return _0x107c40;});return null;};}function removeEntity(_0x59f3d7){return function(_0x16f982){const _0x562899=a209_0x5019;if(_0x16f982)return _0x16f982[_0x562899(0x201)]()[_0x562899(0x203)](function(){_0x59f3d7['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x242d9b){return function(_0x27909c){return!_0x27909c&&_0x242d9b['sendStatus'](0x194),_0x27909c;};}function handleError(_0x555e7d,_0x17bce2){return _0x17bce2=_0x17bce2||0x1f4,function(_0x119df0){const _0x1acee1=a209_0x5019;logger['error'](_0x119df0[_0x1acee1(0x1e0)]),_0x119df0[_0x1acee1(0x1f8)]&&delete _0x119df0[_0x1acee1(0x1f8)],_0x555e7d[_0x1acee1(0x1d6)](_0x17bce2)[_0x1acee1(0x1e8)](_0x119df0);};}exports['show']=function(_0x22460b,_0x4f46e1){const _0x517cd7=a209_0x9a0b95;let _0x3fe3bc={'raw':![],'where':{'id':_0x22460b[_0x517cd7(0x1fb)]['id']}};const _0x488009={};return _0x488009[_0x517cd7(0x1f2)]=_[_0x517cd7(0x1de)](db['DashboardItem']['rawAttributes']),_0x488009[_0x517cd7(0x1df)]=_[_0x517cd7(0x1de)](_0x22460b[_0x517cd7(0x1df)]),_0x488009[_0x517cd7(0x1d3)]=_['intersection'](_0x488009[_0x517cd7(0x1f2)],_0x488009['query']),_0x3fe3bc[_0x517cd7(0x1e2)]=_[_0x517cd7(0x202)](_0x488009['model'],qs['fields'](_0x22460b[_0x517cd7(0x1df)][_0x517cd7(0x1fd)])),_0x3fe3bc[_0x517cd7(0x1e2)]=_0x3fe3bc[_0x517cd7(0x1e2)][_0x517cd7(0x1d7)]?_0x3fe3bc[_0x517cd7(0x1e2)]:_0x488009['model'],_0x22460b[_0x517cd7(0x1df)][_0x517cd7(0x1ed)]&&(_0x3fe3bc[_0x517cd7(0x200)]=[{'all':!![]}]),_0x3fe3bc=_[_0x517cd7(0x1f7)]({},_0x3fe3bc,_0x22460b[_0x517cd7(0x205)]),db[_0x517cd7(0x1e1)][_0x517cd7(0x1d5)](_0x3fe3bc)[_0x517cd7(0x203)](handleEntityNotFound(_0x4f46e1,null))[_0x517cd7(0x203)](respondWithResult(_0x4f46e1,null))[_0x517cd7(0x1f3)](handleError(_0x4f46e1,null));},exports['destroy']=function(_0x44b6c9,_0x1c43a7){const _0x9d4c90=a209_0x9a0b95;return db[_0x9d4c90(0x1e1)][_0x9d4c90(0x1d5)]({'where':{'id':_0x44b6c9[_0x9d4c90(0x1fb)]['id']}})[_0x9d4c90(0x203)](handleEntityNotFound(_0x1c43a7,null))['then'](removeEntity(_0x1c43a7,null))[_0x9d4c90(0x1f3)](handleError(_0x1c43a7,null));};function widgetAttributes(_0x477678){const _0x1daf9f=a209_0x9a0b95;try{switch(_0x477678[_0x1daf9f(0x1ee)]){case'iframe':return[{'name':_0x1daf9f(0x1dc),'value':_0x477678[_0x1daf9f(0x1dc)]||(_0x477678['attrs']&&_0x477678[_0x1daf9f(0x1ea)][0x0]?_0x477678[_0x1daf9f(0x1ea)][0x0][_0x1daf9f(0x1f5)]:undefined)||'https://'}];case _0x1daf9f(0x1e5):return[{'name':'attrPath','value':_0x477678['attrPath']||(_0x477678[_0x1daf9f(0x1ea)]&&_0x477678[_0x1daf9f(0x1ea)][0x0]?_0x477678[_0x1daf9f(0x1ea)][0x0][_0x1daf9f(0x1f5)]:undefined)||''}];case _0x1daf9f(0x206):return[{'name':_0x1daf9f(0x1fe),'value':_0x477678[_0x1daf9f(0x1fe)]||(_0x477678[_0x1daf9f(0x1ea)]&&_0x477678['attrs'][0x0]?_0x477678[_0x1daf9f(0x1ea)][0x0]['value']:undefined)||'HH:mm:ss'},{'name':_0x1daf9f(0x1ff),'value':_0x477678[_0x1daf9f(0x1ff)]||(_0x477678[_0x1daf9f(0x1ea)]&&_0x477678[_0x1daf9f(0x1ea)][0x1]?_0x477678[_0x1daf9f(0x1ea)][0x1][_0x1daf9f(0x1f5)]:undefined)||_0x1daf9f(0x1d8)},{'name':_0x1daf9f(0x1d4),'value':_0x477678[_0x1daf9f(0x1d4)]||(_0x477678[_0x1daf9f(0x1ea)]&&_0x477678['attrs'][0x2]?_0x477678['attrs'][0x2][_0x1daf9f(0x1f5)]:undefined)||0xc}];case _0x1daf9f(0x1ec):return[{'name':_0x1daf9f(0x1f6),'value':_0x477678[_0x1daf9f(0x1f6)]||(_0x477678[_0x1daf9f(0x1ea)]&&_0x477678[_0x1daf9f(0x1ea)][0x0]?_0x477678['attrs'][0x0][_0x1daf9f(0x1f5)]:undefined)||'total'},{'name':_0x1daf9f(0x204),'value':_0x477678[_0x1daf9f(0x204)]||(_0x477678[_0x1daf9f(0x1ea)]&&_0x477678[_0x1daf9f(0x1ea)][0x1]?_0x477678['attrs'][0x1][_0x1daf9f(0x1f5)]:undefined)||[]},{'name':_0x1daf9f(0x1d4),'value':_0x477678[_0x1daf9f(0x1d4)]||(_0x477678[_0x1daf9f(0x1ea)]&&_0x477678[_0x1daf9f(0x1ea)][0x2]?_0x477678[_0x1daf9f(0x1ea)][0x2][_0x1daf9f(0x1f5)]:undefined)||0x14}];case _0x1daf9f(0x1e7):case _0x1daf9f(0x1da):return[{'name':_0x1daf9f(0x1f1),'value':_0x477678[_0x1daf9f(0x1f1)]||(_0x477678[_0x1daf9f(0x1ea)]&&_0x477678[_0x1daf9f(0x1ea)][0x0]?_0x477678[_0x1daf9f(0x1ea)][0x0]['value']:undefined)||'total'},{'name':_0x1daf9f(0x1d9),'value':_0x477678[_0x1daf9f(0x1d9)]||(_0x477678[_0x1daf9f(0x1ea)]&&_0x477678[_0x1daf9f(0x1ea)][0x1]?_0x477678[_0x1daf9f(0x1ea)][0x1]['value']:undefined)||null},{'name':'attrSerie3','value':_0x477678[_0x1daf9f(0x1e4)]||(_0x477678[_0x1daf9f(0x1ea)]&&_0x477678[_0x1daf9f(0x1ea)][0x2]?_0x477678['attrs'][0x2][_0x1daf9f(0x1f5)]:undefined)||null},{'name':_0x1daf9f(0x204),'value':_0x477678[_0x1daf9f(0x204)]||(_0x477678[_0x1daf9f(0x1ea)]&&_0x477678[_0x1daf9f(0x1ea)][0x3]?_0x477678[_0x1daf9f(0x1ea)][0x3][_0x1daf9f(0x1f5)]:undefined)||[]}];case'web-report':return[{'name':_0x1daf9f(0x1ef),'type':_0x477678['reportType']||(_0x477678[_0x1daf9f(0x1ea)]&&_0x477678[_0x1daf9f(0x1ea)][0x0]?_0x477678[_0x1daf9f(0x1ea)][0x0][_0x1daf9f(0x1ee)]:undefined)||null,'value':_0x477678[_0x1daf9f(0x1ef)]||(_0x477678['attrs']&&_0x477678[_0x1daf9f(0x1ea)][0x0]?_0x477678[_0x1daf9f(0x1ea)][0x0]['value']:undefined)||null},{'name':_0x1daf9f(0x1dd),'value':_0x477678[_0x1daf9f(0x1dd)]||(_0x477678[_0x1daf9f(0x1ea)]&&_0x477678[_0x1daf9f(0x1ea)][0x1]?_0x477678[_0x1daf9f(0x1ea)][0x1][_0x1daf9f(0x1f5)]:undefined)||0x0}];default:return[];}}catch(_0x462427){return logger['error']('widgetAttributes:\x20%s',JSON[_0x1daf9f(0x1e3)](_0x462427)),[];}}exports[a209_0x9a0b95(0x1eb)]=function(_0x4489ed,_0x25fad2){const _0x4c3afa=a209_0x9a0b95;return _0x4489ed[_0x4c3afa(0x1f9)]&&(_0x4489ed[_0x4c3afa(0x1f9)][_0x4c3afa(0x1ea)]=widgetAttributes(_0x4489ed[_0x4c3afa(0x1f9)])),db[_0x4c3afa(0x1e1)]['create'](_0x4489ed[_0x4c3afa(0x1f9)],{})['then'](respondWithResult(_0x25fad2,0xc9))[_0x4c3afa(0x1f3)](handleError(_0x25fad2,null));},exports[a209_0x9a0b95(0x1e6)]=function(_0x2ec85b,_0x43b540){const _0x44e82c=a209_0x9a0b95;return _0x2ec85b[_0x44e82c(0x1f9)]['id']&&delete _0x2ec85b[_0x44e82c(0x1f9)]['id'],_0x2ec85b['body']['attrs']=widgetAttributes(_0x2ec85b[_0x44e82c(0x1f9)]),db[_0x44e82c(0x1e1)]['findOne']({'where':{'id':_0x2ec85b[_0x44e82c(0x1fb)]['id']}})[_0x44e82c(0x203)](handleEntityNotFound(_0x43b540,null))[_0x44e82c(0x203)](saveUpdates(_0x2ec85b[_0x44e82c(0x1f9)],null))[_0x44e82c(0x203)](respondWithResult(_0x43b540,null))[_0x44e82c(0x1f3)](handleError(_0x43b540,null));}; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.events.js b/server/api/dashboardItem/dashboardItem.events.js index 4f1c14d..d3c0b2b 100644 --- a/server/api/dashboardItem/dashboardItem.events.js +++ b/server/api/dashboardItem/dashboardItem.events.js @@ -1 +1 @@ -const a210_0x232c=['DashboardItem','update','remove','emit','../../mysqldb','exports','setMaxListeners','save','undefined'];(function(_0x4fee66,_0x5cc121){const _0x232c23=function(_0x2f1b44){while(--_0x2f1b44){_0x4fee66['push'](_0x4fee66['shift']());}};_0x232c23(++_0x5cc121);}(a210_0x232c,0x96));const a210_0x2f1b=function(_0x4fee66,_0x5cc121){_0x4fee66=_0x4fee66-0x1d1;let _0x232c23=a210_0x232c[_0x4fee66];return _0x232c23;};const a210_0x22a159=a210_0x2f1b;'use strict';const EventEmitter=require('events'),DashboardItem=require(a210_0x22a159(0x1d8))['db'][a210_0x22a159(0x1d4)],DashboardItemEvents=new EventEmitter();DashboardItemEvents[a210_0x22a159(0x1d1)](0x0);const events={'afterCreate':a210_0x22a159(0x1d2),'afterUpdate':a210_0x22a159(0x1d5),'afterDestroy':a210_0x22a159(0x1d6)};function emitEvent(_0x35badf){return function(_0x5a943d){const _0x22262b=a210_0x2f1b;DashboardItemEvents[_0x22262b(0x1d7)](_0x35badf+':'+_0x5a943d['id'],_0x5a943d),DashboardItemEvents[_0x22262b(0x1d7)](_0x35badf,_0x5a943d);};}for(const e in events){if(typeof events[e]!==a210_0x22a159(0x1d3)){const event=events[e];DashboardItem['addHook'](e,emitEvent(event));}}module[a210_0x22a159(0x1d9)]=DashboardItemEvents; \ No newline at end of file +const a210_0x4947=['save','events','remove','setMaxListeners','update','DashboardItem','addHook','exports','emit'];(function(_0x359615,_0x336d68){const _0x494749=function(_0x393a8b){while(--_0x393a8b){_0x359615['push'](_0x359615['shift']());}};_0x494749(++_0x336d68);}(a210_0x4947,0xf6));const a210_0x393a=function(_0x359615,_0x336d68){_0x359615=_0x359615-0xdb;let _0x494749=a210_0x4947[_0x359615];return _0x494749;};const a210_0x4c3c90=a210_0x393a;'use strict';const EventEmitter=require(a210_0x4c3c90(0xe2)),DashboardItem=require('../../mysqldb')['db'][a210_0x4c3c90(0xdd)],DashboardItemEvents=new EventEmitter();DashboardItemEvents[a210_0x4c3c90(0xdb)](0x0);const events={'afterCreate':a210_0x4c3c90(0xe1),'afterUpdate':a210_0x4c3c90(0xdc),'afterDestroy':a210_0x4c3c90(0xe3)};function emitEvent(_0xe6758d){return function(_0x23c2c9){const _0x119535=a210_0x393a;DashboardItemEvents[_0x119535(0xe0)](_0xe6758d+':'+_0x23c2c9['id'],_0x23c2c9),DashboardItemEvents[_0x119535(0xe0)](_0xe6758d,_0x23c2c9);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];DashboardItem[a210_0x4c3c90(0xde)](e,emitEvent(event));}}module[a210_0x4c3c90(0xdf)]=DashboardItemEvents; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.model.js b/server/api/dashboardItem/dashboardItem.model.js index fa336ca..a5da608 100644 --- a/server/api/dashboardItem/dashboardItem.model.js +++ b/server/api/dashboardItem/dashboardItem.model.js @@ -1 +1 @@ -const a211_0x1039=['exports','DashboardItem','init','function','sequelize'];(function(_0x52c475,_0x1d73d7){const _0x1039b1=function(_0x4735b0){while(--_0x4735b0){_0x52c475['push'](_0x52c475['shift']());}};_0x1039b1(++_0x1d73d7);}(a211_0x1039,0x19c));const a211_0x4735=function(_0x52c475,_0x1d73d7){_0x52c475=_0x52c475-0xd4;let _0x1039b1=a211_0x1039[_0x52c475];return _0x1039b1;};const a211_0x16dd95=a211_0x4735;'use strict';const {Model}=require(a211_0x16dd95(0xd6)),{attributes}=require('./dashboardItem.attributes'),{options}=require('./dashboardItem.options');class DashboardItem extends Model{}function init(_0x3a2483,_0x336d9c){const _0xf233fb=a211_0x16dd95,_0x31b82b=options(_0x3a2483),_0x18254f=typeof _0x336d9c===_0xf233fb(0xd5)?_0x336d9c(_0x31b82b):_0x31b82b;return DashboardItem[_0xf233fb(0xd4)](attributes,_0x18254f),DashboardItem;}module[a211_0x16dd95(0xd7)][a211_0x16dd95(0xd8)]=DashboardItem,module[a211_0x16dd95(0xd7)][a211_0x16dd95(0xd4)]=init; \ No newline at end of file +const a211_0x46d1=['exports','./dashboardItem.options','./dashboardItem.attributes','init','function','DashboardItem'];(function(_0x4e3f6c,_0x49c553){const _0x46d188=function(_0x537d46){while(--_0x537d46){_0x4e3f6c['push'](_0x4e3f6c['shift']());}};_0x46d188(++_0x49c553);}(a211_0x46d1,0x64));const a211_0x537d=function(_0x4e3f6c,_0x49c553){_0x4e3f6c=_0x4e3f6c-0x7a;let _0x46d188=a211_0x46d1[_0x4e3f6c];return _0x46d188;};const a211_0x468c90=a211_0x537d;'use strict';const {Model}=require('sequelize'),{attributes}=require(a211_0x468c90(0x7e)),{options}=require(a211_0x468c90(0x7d));class DashboardItem extends Model{}function init(_0x1f8c49,_0xb7003d){const _0x249462=a211_0x468c90,_0x1172cf=options(_0x1f8c49),_0x5c7d84=typeof _0xb7003d===_0x249462(0x7a)?_0xb7003d(_0x1172cf):_0x1172cf;return DashboardItem[_0x249462(0x7f)](attributes,_0x5c7d84),DashboardItem;}module[a211_0x468c90(0x7c)][a211_0x468c90(0x7b)]=DashboardItem,module['exports'][a211_0x468c90(0x7f)]=init; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.options.js b/server/api/dashboardItem/dashboardItem.options.js index 7dcd723..c88cdb5 100644 --- a/server/api/dashboardItem/dashboardItem.options.js +++ b/server/api/dashboardItem/dashboardItem.options.js @@ -1 +1 @@ -var a212_0x5e47=['options','dashboard_items','exports'];(function(_0xf78efb,_0x3b8768){var _0x5e47c8=function(_0x295efa){while(--_0x295efa){_0xf78efb['push'](_0xf78efb['shift']());}};_0x5e47c8(++_0x3b8768);}(a212_0x5e47,0x1c8));var a212_0x295e=function(_0xf78efb,_0x3b8768){_0xf78efb=_0xf78efb-0x169;var _0x5e47c8=a212_0x5e47[_0xf78efb];return _0x5e47c8;};var a212_0x7d4da4=a212_0x295e;function options(_0x2a169c){var _0x59aad9=a212_0x295e;return{'sequelize':_0x2a169c,'tableName':_0x59aad9(0x16a),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a212_0x7d4da4(0x16b)][a212_0x7d4da4(0x169)]=options; \ No newline at end of file +var a212_0x20a7=['options','dashboard_items'];(function(_0x360ee4,_0xcfb690){var _0x20a717=function(_0xdbab53){while(--_0xdbab53){_0x360ee4['push'](_0x360ee4['shift']());}};_0x20a717(++_0xcfb690);}(a212_0x20a7,0x132));var a212_0xdbab=function(_0x360ee4,_0xcfb690){_0x360ee4=_0x360ee4-0x146;var _0x20a717=a212_0x20a7[_0x360ee4];return _0x20a717;};var a212_0x5f2500=a212_0xdbab;function options(_0x599b25){var _0x318602=a212_0xdbab;return{'sequelize':_0x599b25,'tableName':_0x318602(0x147),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a212_0x5f2500(0x146)]=options; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.rpc.js b/server/api/dashboardItem/dashboardItem.rpc.js index b4354a8..3023b70 100644 --- a/server/api/dashboardItem/dashboardItem.rpc.js +++ b/server/api/dashboardItem/dashboardItem.rpc.js @@ -1 +1 @@ -const a213_0xba16=['register','../../rediscache','./dashboardItem.socket'];(function(_0x2a1090,_0x3a10d0){const _0xba1605=function(_0x28a8f3){while(--_0x28a8f3){_0x2a1090['push'](_0x2a1090['shift']());}};_0xba1605(++_0x3a10d0);}(a213_0xba16,0xab));const a213_0x28a8=function(_0x2a1090,_0x3a10d0){_0x2a1090=_0x2a1090-0xe3;let _0xba1605=a213_0xba16[_0x2a1090];return _0xba1605;};const a213_0xf9e347=a213_0x28a8;'use strict';const {getSocket}=require(a213_0xf9e347(0xe4)),socket=getSocket();require(a213_0xf9e347(0xe5))[a213_0xf9e347(0xe3)](socket); \ No newline at end of file +const a213_0x4b0f=['../../rediscache'];(function(_0x254d19,_0x4b3009){const _0x4b0fee=function(_0x1e1eb3){while(--_0x1e1eb3){_0x254d19['push'](_0x254d19['shift']());}};_0x4b0fee(++_0x4b3009);}(a213_0x4b0f,0xa5));const a213_0x1e1e=function(_0x254d19,_0x4b3009){_0x254d19=_0x254d19-0xc6;let _0x4b0fee=a213_0x4b0f[_0x254d19];return _0x4b0fee;};const a213_0x92897b=a213_0x1e1e;'use strict';const {getSocket}=require(a213_0x92897b(0xc6)),socket=getSocket();require('./dashboardItem.socket')['register'](socket); \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.socket.js b/server/api/dashboardItem/dashboardItem.socket.js index 1fa96bc..481b8e6 100644 --- a/server/api/dashboardItem/dashboardItem.socket.js +++ b/server/api/dashboardItem/dashboardItem.socket.js @@ -1 +1 @@ -const a214_0x8272=['save','register','emit','remove','update','length','dashboardItem:'];(function(_0x29d4ca,_0x3b5e43){const _0x82723f=function(_0x5eeb12){while(--_0x5eeb12){_0x29d4ca['push'](_0x29d4ca['shift']());}};_0x82723f(++_0x3b5e43);}(a214_0x8272,0x1eb));const a214_0x5eeb=function(_0x29d4ca,_0x3b5e43){_0x29d4ca=_0x29d4ca-0x13e;let _0x82723f=a214_0x8272[_0x29d4ca];return _0x82723f;};const a214_0x220998=a214_0x5eeb;'use strict';const DashboardItemEvents=require('./dashboardItem.events'),events=[a214_0x220998(0x144),a214_0x220998(0x140),a214_0x220998(0x141)];function createListener(_0x58b968,_0x261c97){return function(_0x40f1e5){const _0x575c4b=a214_0x5eeb;_0x261c97[_0x575c4b(0x13f)](_0x58b968,_0x40f1e5);};}exports[a214_0x220998(0x13e)]=function(_0x5a5447){const _0xff456e=a214_0x220998;for(let _0x43060f=0x0,_0x3eea4e=events[_0xff456e(0x142)];_0x43060f<_0x3eea4e;_0x43060f++){const _0x14e420=events[_0x43060f],_0x37a232=createListener(_0xff456e(0x143)+_0x14e420,_0x5a5447);DashboardItemEvents['on'](_0x14e420,_0x37a232);}}; \ No newline at end of file +const a214_0x5842=['update','./dashboardItem.events','dashboardItem:','save','register','length','remove'];(function(_0x5bb81a,_0x486bd3){const _0x58429a=function(_0x13df85){while(--_0x13df85){_0x5bb81a['push'](_0x5bb81a['shift']());}};_0x58429a(++_0x486bd3);}(a214_0x5842,0xdd));const a214_0x13df=function(_0x5bb81a,_0x486bd3){_0x5bb81a=_0x5bb81a-0x91;let _0x58429a=a214_0x5842[_0x5bb81a];return _0x58429a;};const a214_0x4fc180=a214_0x13df;'use strict';const DashboardItemEvents=require(a214_0x4fc180(0x95)),events=[a214_0x4fc180(0x97),a214_0x4fc180(0x93),a214_0x4fc180(0x94)];function createListener(_0x1e3d09,_0x1936f){return function(_0xc856c3){_0x1936f['emit'](_0x1e3d09,_0xc856c3);};}exports[a214_0x4fc180(0x91)]=function(_0x51d4c0){const _0x228596=a214_0x4fc180;for(let _0x17979c=0x0,_0x50ca28=events[_0x228596(0x92)];_0x17979c<_0x50ca28;_0x17979c++){const _0x5da2e4=events[_0x17979c],_0x5c468a=createListener(_0x228596(0x96)+_0x5da2e4,_0x51d4c0);DashboardItemEvents['on'](_0x5da2e4,_0x5c468a);}}; \ No newline at end of file diff --git a/server/api/dashboardItem/index.js b/server/api/dashboardItem/index.js index 154abd9..2409ce6 100644 --- a/server/api/dashboardItem/index.js +++ b/server/api/dashboardItem/index.js @@ -1 +1 @@ -const a215_0x1ade=['delete','get','create','exports','express','/:id','Router','../../components/auth/service','update','show','isAuthenticated','./dashboardItem.controller'];(function(_0x111556,_0x104b96){const _0x1adeaa=function(_0x180f96){while(--_0x180f96){_0x111556['push'](_0x111556['shift']());}};_0x1adeaa(++_0x104b96);}(a215_0x1ade,0x1a3));const a215_0x180f=function(_0x111556,_0x104b96){_0x111556=_0x111556-0xb7;let _0x1adeaa=a215_0x1ade[_0x111556];return _0x1adeaa;};const a215_0x4dae2e=a215_0x180f;'use strict';const express=require(a215_0x4dae2e(0xbc)),router=express[a215_0x4dae2e(0xbe)](),auth=require(a215_0x4dae2e(0xbf)),controller=require(a215_0x4dae2e(0xb7));router[a215_0x4dae2e(0xb9)](a215_0x4dae2e(0xbd),auth['isAuthenticated'](),controller[a215_0x4dae2e(0xc1)]),router['post']('/',auth[a215_0x4dae2e(0xc2)](),controller[a215_0x4dae2e(0xba)]),router['put'](a215_0x4dae2e(0xbd),auth[a215_0x4dae2e(0xc2)](),controller[a215_0x4dae2e(0xc0)]),router[a215_0x4dae2e(0xb8)](a215_0x4dae2e(0xbd),auth['isAuthenticated'](),controller['destroy']),module[a215_0x4dae2e(0xbb)]=router; \ No newline at end of file +const a215_0x1579=['show','post','update','Router','isAuthenticated','destroy','exports','./dashboardItem.controller','/:id','create','delete','../../components/auth/service'];(function(_0x2a3c0c,_0x16b5a0){const _0x1579f6=function(_0x1320b3){while(--_0x1320b3){_0x2a3c0c['push'](_0x2a3c0c['shift']());}};_0x1579f6(++_0x16b5a0);}(a215_0x1579,0x194));const a215_0x1320=function(_0x2a3c0c,_0x16b5a0){_0x2a3c0c=_0x2a3c0c-0x1a8;let _0x1579f6=a215_0x1579[_0x2a3c0c];return _0x1579f6;};const a215_0x423629=a215_0x1320;'use strict';const express=require('express'),router=express[a215_0x423629(0x1af)](),auth=require(a215_0x423629(0x1ab)),controller=require(a215_0x423629(0x1b3));router['get'](a215_0x423629(0x1a8),auth[a215_0x423629(0x1b0)](),controller[a215_0x423629(0x1ac)]),router[a215_0x423629(0x1ad)]('/',auth[a215_0x423629(0x1b0)](),controller[a215_0x423629(0x1a9)]),router['put'](a215_0x423629(0x1a8),auth[a215_0x423629(0x1b0)](),controller[a215_0x423629(0x1ae)]),router[a215_0x423629(0x1aa)](a215_0x423629(0x1a8),auth[a215_0x423629(0x1b0)](),controller[a215_0x423629(0x1b1)]),module[a215_0x423629(0x1b2)]=router; \ No newline at end of file diff --git a/server/api/disposition/disposition.attributes.js b/server/api/disposition/disposition.attributes.js index 44f4241..3e93ab4 100644 --- a/server/api/disposition/disposition.attributes.js +++ b/server/api/disposition/disposition.attributes.js @@ -1 +1 @@ -const a216_0x3123=['second','sequelize','third','first','exports','attributes','ENUM','STRING'];(function(_0x5ea3e8,_0x37b04f){const _0x312357=function(_0x51822){while(--_0x51822){_0x5ea3e8['push'](_0x5ea3e8['shift']());}};_0x312357(++_0x37b04f);}(a216_0x3123,0xfe));const a216_0x5182=function(_0x5ea3e8,_0x37b04f){_0x5ea3e8=_0x5ea3e8-0x68;let _0x312357=a216_0x3123[_0x5ea3e8];return _0x312357;};const a216_0x4a3626=a216_0x5182;'use strict';const {DataTypes}=require(a216_0x4a3626(0x6b)),attributes={'name':{'type':DataTypes['STRING'],'allowNull':![]},'level':{'type':DataTypes[a216_0x4a3626(0x68)]('first',a216_0x4a3626(0x6a),a216_0x4a3626(0x6c)),'allowNull':![],'defaultValue':a216_0x4a3626(0x6d)},'description':{'type':DataTypes[a216_0x4a3626(0x69)]}};module[a216_0x4a3626(0x6e)][a216_0x4a3626(0x6f)]=attributes; \ No newline at end of file +const a216_0x11c2=['ENUM','sequelize','attributes','exports','second','STRING','first'];(function(_0x8fe42b,_0x4a4a95){const _0x11c282=function(_0x3b0fc8){while(--_0x3b0fc8){_0x8fe42b['push'](_0x8fe42b['shift']());}};_0x11c282(++_0x4a4a95);}(a216_0x11c2,0x195));const a216_0x3b0f=function(_0x8fe42b,_0x4a4a95){_0x8fe42b=_0x8fe42b-0xec;let _0x11c282=a216_0x11c2[_0x8fe42b];return _0x11c282;};const a216_0xccdfce=a216_0x3b0f;'use strict';const {DataTypes}=require(a216_0xccdfce(0xee)),attributes={'name':{'type':DataTypes[a216_0xccdfce(0xf2)],'allowNull':![]},'level':{'type':DataTypes[a216_0xccdfce(0xed)](a216_0xccdfce(0xec),a216_0xccdfce(0xf1),'third'),'allowNull':![],'defaultValue':a216_0xccdfce(0xec)},'description':{'type':DataTypes['STRING']}};module[a216_0xccdfce(0xf0)][a216_0xccdfce(0xef)]=attributes; \ No newline at end of file diff --git a/server/api/disposition/disposition.controller.js b/server/api/disposition/disposition.controller.js index 3cb07c6..83cf0c7 100644 --- a/server/api/disposition/disposition.controller.js +++ b/server/api/disposition/disposition.controller.js @@ -1 +1 @@ -const a217_0x61d4=['where','like','set','name','role','fields','autoAssociation','undefined','../../mysqldb','update','includeAll','index','type','rawAttributes','findOne','fieldName','sort','Content-Range','keys','map','VIRTUAL','include','user','length','merge','params','catch','model','UserProfileResource','rows','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','destroy','nolimit','create','Unable\x20to\x20retrieve\x20the\x20current\x20user','offset','sequelize','api','Disposition','body','limit','get','stack','query','findAll','filter','Dispositions','attributes','count','status','show','UserProfileSection','userProfileId','filters','then','error','json','pick'];(function(_0x4fbab6,_0x15a90e){const _0x61d44d=function(_0x4349af){while(--_0x4349af){_0x4fbab6['push'](_0x4fbab6['shift']());}};_0x61d44d(++_0x15a90e);}(a217_0x61d4,0x1cb));const a217_0x4349=function(_0x4fbab6,_0x15a90e){_0x4fbab6=_0x4fbab6-0x1c9;let _0x61d44d=a217_0x61d4[_0x4fbab6];return _0x61d44d;};const a217_0x292c17=a217_0x4349;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(a217_0x292c17(0x1f3)),{db}=require(a217_0x292c17(0x1d6)),{Op}=require(a217_0x292c17(0x1f2));function respondWithResult(_0x38c6e3,_0x46ca3d){return _0x46ca3d=_0x46ca3d||0xc8,function(_0x55384b){const _0x2c894a=a217_0x4349;if(_0x55384b)return _0x38c6e3[_0x2c894a(0x1ff)](_0x46ca3d)[_0x2c894a(0x1cc)](_0x55384b);};}function respondWithFilteredResult(_0x2eb619,_0x30ac99){return function(_0x32604d){const _0xa93731=a217_0x4349;if(_0x32604d){const _0x84c0a=_0x32604d[_0xa93731(0x1fe)],_0x34f7f3=_0x30ac99[_0xa93731(0x1f1)];let _0x38a535=_0x30ac99[_0xa93731(0x1f1)]+_0x30ac99[_0xa93731(0x1f6)],_0x46415d;return _0x38a535>=_0x84c0a?(_0x38a535=_0x84c0a,_0x46415d=0xc8):_0x46415d=0xce,_0x2eb619[_0xa93731(0x1ff)](_0x46415d),_0x2eb619[_0xa93731(0x1d0)](_0xa93731(0x1df),_0x34f7f3+'-'+_0x38a535+'/'+_0x84c0a)[_0xa93731(0x1cc)](_0x32604d);}return null;};}function saveUpdates(_0x64c4d7){return function(_0x2453a8){if(_0x2453a8)return _0x2453a8['update'](_0x64c4d7)['then'](function(_0x5813c4){return _0x5813c4;});return null;};}function removeEntity(_0x5a06be){return function(_0x1c6c0){const _0x37f315=a217_0x4349;if(_0x1c6c0)return _0x1c6c0[_0x37f315(0x1ed)]()[_0x37f315(0x1ca)](function(){const _0x3b9fe9=_0x37f315,_0x1811fc=_0x1c6c0[_0x3b9fe9(0x1f7)]({'plain':!![]}),_0x101fee=_0x3b9fe9(0x1fc);return db['UserProfileResource'][_0x3b9fe9(0x1ed)]({'where':{'type':_0x101fee,'resourceId':_0x1811fc['id']}})['then'](function(){return _0x1c6c0;});})[_0x37f315(0x1ca)](function(){const _0xce6432=_0x37f315;_0x5a06be[_0xce6432(0x1ff)](0xcc)['end']();});};}function handleEntityNotFound(_0x387465){return function(_0x53c587){return!_0x53c587&&_0x387465['sendStatus'](0x194),_0x53c587;};}function handleError(_0x3ab207,_0x15aaf2){return _0x15aaf2=_0x15aaf2||0x1f4,function(_0x81894){const _0x4a1317=a217_0x4349;logger[_0x4a1317(0x1cb)](_0x81894[_0x4a1317(0x1f8)]),_0x81894['name']&&delete _0x81894['name'],_0x3ab207[_0x4a1317(0x1ff)](_0x15aaf2)['send'](_0x81894);};}exports[a217_0x292c17(0x1d9)]=function(_0x4f5c30,_0x2b3727){const _0x4a0257=a217_0x292c17;let _0x8e0f9d={};const _0x331de0={},_0x28d22d={'count':0x0,'rows':[]},_0x3032a4=_[_0x4a0257(0x1e1)](db['Disposition'][_0x4a0257(0x1db)],function(_0x2fabee){const _0x378c36=_0x4a0257;return{'name':_0x2fabee[_0x378c36(0x1dd)],'type':_0x2fabee['type']['key']};});_0x331de0[_0x4a0257(0x1e9)]=_[_0x4a0257(0x1e1)](_0x3032a4,'name'),_0x331de0[_0x4a0257(0x1f9)]=_['keys'](_0x4f5c30[_0x4a0257(0x1f9)]),_0x331de0[_0x4a0257(0x1c9)]=_['intersection'](_0x331de0['model'],_0x331de0[_0x4a0257(0x1f9)]),_0x8e0f9d['attributes']=_['intersection'](_0x331de0[_0x4a0257(0x1e9)],qs[_0x4a0257(0x1d3)](_0x4f5c30[_0x4a0257(0x1f9)][_0x4a0257(0x1d3)])),_0x8e0f9d['attributes']=_0x8e0f9d[_0x4a0257(0x1fd)][_0x4a0257(0x1e5)]?_0x8e0f9d[_0x4a0257(0x1fd)]:_0x331de0[_0x4a0257(0x1e9)];typeof _0x4f5c30[_0x4a0257(0x1f9)][_0x4a0257(0x1ee)]===_0x4a0257(0x1d5)&&(_0x8e0f9d[_0x4a0257(0x1f6)]=qs[_0x4a0257(0x1f6)](_0x4f5c30['query'][_0x4a0257(0x1f6)]),_0x8e0f9d[_0x4a0257(0x1f1)]=qs[_0x4a0257(0x1f1)](_0x4f5c30[_0x4a0257(0x1f9)][_0x4a0257(0x1f1)]));_0x8e0f9d['order']=qs[_0x4a0257(0x1de)](_0x4f5c30[_0x4a0257(0x1f9)][_0x4a0257(0x1de)]),_0x8e0f9d[_0x4a0257(0x1ce)]=qs['filters'](_[_0x4a0257(0x1cd)](_0x4f5c30['query'],_0x331de0['filters']),_0x3032a4);_0x4f5c30[_0x4a0257(0x1f9)][_0x4a0257(0x1fb)]&&(_0x8e0f9d[_0x4a0257(0x1ce)]=_[_0x4a0257(0x1e6)](_0x8e0f9d['where'],{[Op['or']]:_[_0x4a0257(0x1e1)](_0x3032a4,function(_0x25615c){const _0x1151db=_0x4a0257;if(_0x25615c[_0x1151db(0x1da)]!==_0x1151db(0x1e2)){const _0x106742={};return _0x106742[_0x25615c[_0x1151db(0x1d1)]]={[Op[_0x1151db(0x1cf)]]:'%'+_0x4f5c30[_0x1151db(0x1f9)][_0x1151db(0x1fb)]+'%'},_0x106742;}})}));_0x8e0f9d=_[_0x4a0257(0x1e6)]({},_0x8e0f9d,_0x4f5c30['options']);const _0x2a1553={'where':_0x8e0f9d[_0x4a0257(0x1ce)]};return db['Disposition'][_0x4a0257(0x1fe)](_0x2a1553)[_0x4a0257(0x1ca)](function(_0x138ef6){const _0x980da4=_0x4a0257;return _0x28d22d['count']=_0x138ef6,_0x4f5c30[_0x980da4(0x1f9)][_0x980da4(0x1d8)]&&(_0x8e0f9d[_0x980da4(0x1e3)]=[{'all':!![]}]),db['Disposition'][_0x980da4(0x1fa)](_0x8e0f9d);})[_0x4a0257(0x1ca)](function(_0x4a475c){const _0x2a4121=_0x4a0257;return _0x28d22d[_0x2a4121(0x1eb)]=_0x4a475c,_0x28d22d;})[_0x4a0257(0x1ca)](respondWithFilteredResult(_0x2b3727,_0x8e0f9d))[_0x4a0257(0x1e8)](handleError(_0x2b3727,null));},exports[a217_0x292c17(0x200)]=function(_0x1dc184,_0x1148d1){const _0x11e2d4=a217_0x292c17;let _0x7648b5={'raw':!![],'where':{'id':_0x1dc184['params']['id']}};const _0x4ec929={};return _0x4ec929['model']=_[_0x11e2d4(0x1e0)](db[_0x11e2d4(0x1f4)][_0x11e2d4(0x1db)]),_0x4ec929[_0x11e2d4(0x1f9)]=_[_0x11e2d4(0x1e0)](_0x1dc184[_0x11e2d4(0x1f9)]),_0x4ec929[_0x11e2d4(0x1c9)]=_['intersection'](_0x4ec929[_0x11e2d4(0x1e9)],_0x4ec929[_0x11e2d4(0x1f9)]),_0x7648b5[_0x11e2d4(0x1fd)]=_['intersection'](_0x4ec929[_0x11e2d4(0x1e9)],qs[_0x11e2d4(0x1d3)](_0x1dc184[_0x11e2d4(0x1f9)][_0x11e2d4(0x1d3)])),_0x7648b5[_0x11e2d4(0x1fd)]=_0x7648b5[_0x11e2d4(0x1fd)][_0x11e2d4(0x1e5)]?_0x7648b5[_0x11e2d4(0x1fd)]:_0x4ec929[_0x11e2d4(0x1e9)],_0x1dc184[_0x11e2d4(0x1f9)][_0x11e2d4(0x1d8)]&&(_0x7648b5[_0x11e2d4(0x1e3)]=[{'all':!![]}]),_0x7648b5=_[_0x11e2d4(0x1e6)]({},_0x7648b5,_0x1dc184['options']),db[_0x11e2d4(0x1f4)][_0x11e2d4(0x1dc)](_0x7648b5)[_0x11e2d4(0x1ca)](handleEntityNotFound(_0x1148d1,null))[_0x11e2d4(0x1ca)](respondWithResult(_0x1148d1,null))[_0x11e2d4(0x1e8)](handleError(_0x1148d1,null));},exports[a217_0x292c17(0x1ef)]=function(_0x41d0f4,_0x3f9448){const _0x1760a7=a217_0x292c17;return db[_0x1760a7(0x1f4)][_0x1760a7(0x1ef)](_0x41d0f4[_0x1760a7(0x1f5)],{})[_0x1760a7(0x1ca)](function(_0x23e619){const _0x375aad=_0x1760a7,_0x5635ad=_0x41d0f4[_0x375aad(0x1e4)][_0x375aad(0x1f7)]({'plain':!![]});if(!_0x5635ad)throw new Error(_0x375aad(0x1f0));if(_0x5635ad[_0x375aad(0x1d2)]==='user'){const _0x49685b=_0x23e619['get']({'plain':!![]}),_0x5d7852=_0x375aad(0x1fc);return db[_0x375aad(0x201)][_0x375aad(0x1dc)]({'where':{'name':_0x5d7852,'userProfileId':_0x5635ad[_0x375aad(0x202)]},'raw':!![]})[_0x375aad(0x1ca)](function(_0x47168e){const _0xc41af1=_0x375aad;return _0x47168e&&_0x47168e[_0xc41af1(0x1d4)]===0x0?db[_0xc41af1(0x1ea)][_0xc41af1(0x1ef)]({'name':_0x49685b[_0xc41af1(0x1d1)],'resourceId':_0x49685b['id'],'type':_0x47168e['name'],'sectionId':_0x47168e['id']},{})[_0xc41af1(0x1ca)](function(){return _0x23e619;}):_0x23e619;})['catch'](function(_0xcd706b){const _0x154718=_0x375aad;logger['error'](_0x154718(0x1ec),_0xcd706b);throw _0xcd706b;});}return _0x23e619;})[_0x1760a7(0x1ca)](respondWithResult(_0x3f9448,0xc9))[_0x1760a7(0x1e8)](handleError(_0x3f9448,null));},exports[a217_0x292c17(0x1d7)]=function(_0x5899c0,_0x405756){const _0xd2a56f=a217_0x292c17;return _0x5899c0[_0xd2a56f(0x1f5)]['id']&&delete _0x5899c0[_0xd2a56f(0x1f5)]['id'],db[_0xd2a56f(0x1f4)][_0xd2a56f(0x1dc)]({'where':{'id':_0x5899c0[_0xd2a56f(0x1e7)]['id']}})[_0xd2a56f(0x1ca)](handleEntityNotFound(_0x405756,null))[_0xd2a56f(0x1ca)](saveUpdates(_0x5899c0[_0xd2a56f(0x1f5)],null))[_0xd2a56f(0x1ca)](respondWithResult(_0x405756,null))[_0xd2a56f(0x1e8)](handleError(_0x405756,null));},exports[a217_0x292c17(0x1ed)]=function(_0x28555e,_0x23cc12){const _0x539783=a217_0x292c17;return db['Disposition'][_0x539783(0x1dc)]({'where':{'id':_0x28555e[_0x539783(0x1e7)]['id']}})[_0x539783(0x1ca)](handleEntityNotFound(_0x23cc12,null))['then'](removeEntity(_0x23cc12,null))[_0x539783(0x1e8)](handleError(_0x23cc12,null));}; \ No newline at end of file +const a217_0x4c7b=['filter','get','api','UserProfileSection','user','rawAttributes','create','limit','key','UserProfileResource','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','body','Disposition','params','then','end','query','json','attributes','keys','sendStatus','error','destroy','findAll','../../mysqldb','update','options','type','nolimit','filters','sequelize','fields','merge','where','count','Dispositions','Content-Range','include','sort','name','undefined','model','length','../../components/parsers/qs','catch','VIRTUAL','pick','includeAll','lodash','order','offset','map','userProfileId','autoAssociation','intersection','like','status','findOne','set','../../config/logger','index','role','Unable\x20to\x20retrieve\x20the\x20current\x20user'];(function(_0x3195b8,_0x1bcc08){const _0x4c7b75=function(_0x5af805){while(--_0x5af805){_0x3195b8['push'](_0x3195b8['shift']());}};_0x4c7b75(++_0x1bcc08);}(a217_0x4c7b,0x75));const a217_0x5af8=function(_0x3195b8,_0x1bcc08){_0x3195b8=_0x3195b8-0x17d;let _0x4c7b75=a217_0x4c7b[_0x3195b8];return _0x4c7b75;};const a217_0x52abb5=a217_0x5af8;'use strict';const _=require(a217_0x52abb5(0x1b6)),qs=require(a217_0x52abb5(0x1b1)),logger=require(a217_0x52abb5(0x182))(a217_0x52abb5(0x188)),{db}=require(a217_0x52abb5(0x19e)),{Op}=require(a217_0x52abb5(0x1a4));function respondWithResult(_0x306227,_0x4680e4){return _0x4680e4=_0x4680e4||0xc8,function(_0x27efec){const _0x9c8ee6=a217_0x5af8;if(_0x27efec)return _0x306227[_0x9c8ee6(0x17f)](_0x4680e4)[_0x9c8ee6(0x197)](_0x27efec);};}function respondWithFilteredResult(_0x30f42f,_0x14aa94){return function(_0x4841c0){const _0x4ce0df=a217_0x5af8;if(_0x4841c0){const _0x2a0c4c=_0x4841c0['count'],_0x228800=_0x14aa94[_0x4ce0df(0x1b8)];let _0x110476=_0x14aa94[_0x4ce0df(0x1b8)]+_0x14aa94[_0x4ce0df(0x18d)],_0x196d1a;return _0x110476>=_0x2a0c4c?(_0x110476=_0x2a0c4c,_0x196d1a=0xc8):_0x196d1a=0xce,_0x30f42f[_0x4ce0df(0x17f)](_0x196d1a),_0x30f42f[_0x4ce0df(0x181)](_0x4ce0df(0x1aa),_0x228800+'-'+_0x110476+'/'+_0x2a0c4c)[_0x4ce0df(0x197)](_0x4841c0);}return null;};}function saveUpdates(_0x418863){return function(_0xceec8){const _0x257682=a217_0x5af8;if(_0xceec8)return _0xceec8[_0x257682(0x19f)](_0x418863)[_0x257682(0x194)](function(_0x1c1f4c){return _0x1c1f4c;});return null;};}function removeEntity(_0x1ea953){return function(_0x58cd3a){const _0x4c393e=a217_0x5af8;if(_0x58cd3a)return _0x58cd3a[_0x4c393e(0x19c)]()['then'](function(){const _0x58a8b8=_0x4c393e,_0x190623=_0x58cd3a[_0x58a8b8(0x187)]({'plain':!![]}),_0xfd800e='Dispositions';return db[_0x58a8b8(0x18f)][_0x58a8b8(0x19c)]({'where':{'type':_0xfd800e,'resourceId':_0x190623['id']}})['then'](function(){return _0x58cd3a;});})['then'](function(){const _0x2fe6f6=_0x4c393e;_0x1ea953['status'](0xcc)[_0x2fe6f6(0x195)]();});};}function handleEntityNotFound(_0x36c3b9){return function(_0x48069b){const _0x36c3bb=a217_0x5af8;return!_0x48069b&&_0x36c3b9[_0x36c3bb(0x19a)](0x194),_0x48069b;};}function handleError(_0x109c36,_0x216cd6){return _0x216cd6=_0x216cd6||0x1f4,function(_0x484de4){const _0x5c5cb3=a217_0x5af8;logger[_0x5c5cb3(0x19b)](_0x484de4['stack']),_0x484de4[_0x5c5cb3(0x1ad)]&&delete _0x484de4[_0x5c5cb3(0x1ad)],_0x109c36['status'](_0x216cd6)['send'](_0x484de4);};}exports[a217_0x52abb5(0x183)]=function(_0x46cb84,_0x15046b){const _0x3a46cd=a217_0x52abb5;let _0x4e2210={};const _0x3a4ad5={},_0x5cfc23={'count':0x0,'rows':[]},_0x194a03=_[_0x3a46cd(0x1b9)](db[_0x3a46cd(0x192)][_0x3a46cd(0x18b)],function(_0x3512fa){const _0x12ad4b=_0x3a46cd;return{'name':_0x3512fa['fieldName'],'type':_0x3512fa['type'][_0x12ad4b(0x18e)]};});_0x3a4ad5['model']=_[_0x3a46cd(0x1b9)](_0x194a03,_0x3a46cd(0x1ad)),_0x3a4ad5[_0x3a46cd(0x196)]=_[_0x3a46cd(0x199)](_0x46cb84[_0x3a46cd(0x196)]),_0x3a4ad5[_0x3a46cd(0x1a3)]=_['intersection'](_0x3a4ad5[_0x3a46cd(0x1af)],_0x3a4ad5[_0x3a46cd(0x196)]),_0x4e2210[_0x3a46cd(0x198)]=_['intersection'](_0x3a4ad5[_0x3a46cd(0x1af)],qs[_0x3a46cd(0x1a5)](_0x46cb84[_0x3a46cd(0x196)][_0x3a46cd(0x1a5)])),_0x4e2210[_0x3a46cd(0x198)]=_0x4e2210['attributes']['length']?_0x4e2210['attributes']:_0x3a4ad5[_0x3a46cd(0x1af)];typeof _0x46cb84[_0x3a46cd(0x196)][_0x3a46cd(0x1a2)]===_0x3a46cd(0x1ae)&&(_0x4e2210[_0x3a46cd(0x18d)]=qs[_0x3a46cd(0x18d)](_0x46cb84['query'][_0x3a46cd(0x18d)]),_0x4e2210[_0x3a46cd(0x1b8)]=qs['offset'](_0x46cb84[_0x3a46cd(0x196)][_0x3a46cd(0x1b8)]));_0x4e2210[_0x3a46cd(0x1b7)]=qs[_0x3a46cd(0x1ac)](_0x46cb84[_0x3a46cd(0x196)][_0x3a46cd(0x1ac)]),_0x4e2210['where']=qs[_0x3a46cd(0x1a3)](_[_0x3a46cd(0x1b4)](_0x46cb84[_0x3a46cd(0x196)],_0x3a4ad5[_0x3a46cd(0x1a3)]),_0x194a03);_0x46cb84[_0x3a46cd(0x196)][_0x3a46cd(0x186)]&&(_0x4e2210['where']=_[_0x3a46cd(0x1a6)](_0x4e2210[_0x3a46cd(0x1a7)],{[Op['or']]:_[_0x3a46cd(0x1b9)](_0x194a03,function(_0x227ed6){const _0x1dd1c4=_0x3a46cd;if(_0x227ed6[_0x1dd1c4(0x1a1)]!==_0x1dd1c4(0x1b3)){const _0x5b3e4e={};return _0x5b3e4e[_0x227ed6[_0x1dd1c4(0x1ad)]]={[Op[_0x1dd1c4(0x17e)]]:'%'+_0x46cb84[_0x1dd1c4(0x196)]['filter']+'%'},_0x5b3e4e;}})}));_0x4e2210=_[_0x3a46cd(0x1a6)]({},_0x4e2210,_0x46cb84[_0x3a46cd(0x1a0)]);const _0x314461={'where':_0x4e2210[_0x3a46cd(0x1a7)]};return db['Disposition'][_0x3a46cd(0x1a8)](_0x314461)[_0x3a46cd(0x194)](function(_0x283d6f){const _0x37bf88=_0x3a46cd;return _0x5cfc23[_0x37bf88(0x1a8)]=_0x283d6f,_0x46cb84[_0x37bf88(0x196)][_0x37bf88(0x1b5)]&&(_0x4e2210['include']=[{'all':!![]}]),db[_0x37bf88(0x192)][_0x37bf88(0x19d)](_0x4e2210);})['then'](function(_0x5eeb1e){return _0x5cfc23['rows']=_0x5eeb1e,_0x5cfc23;})[_0x3a46cd(0x194)](respondWithFilteredResult(_0x15046b,_0x4e2210))[_0x3a46cd(0x1b2)](handleError(_0x15046b,null));},exports['show']=function(_0x132098,_0xd21fe1){const _0x2a0ebe=a217_0x52abb5;let _0x588849={'raw':!![],'where':{'id':_0x132098[_0x2a0ebe(0x193)]['id']}};const _0x482862={};return _0x482862[_0x2a0ebe(0x1af)]=_['keys'](db[_0x2a0ebe(0x192)][_0x2a0ebe(0x18b)]),_0x482862['query']=_[_0x2a0ebe(0x199)](_0x132098[_0x2a0ebe(0x196)]),_0x482862[_0x2a0ebe(0x1a3)]=_[_0x2a0ebe(0x17d)](_0x482862[_0x2a0ebe(0x1af)],_0x482862[_0x2a0ebe(0x196)]),_0x588849[_0x2a0ebe(0x198)]=_[_0x2a0ebe(0x17d)](_0x482862['model'],qs[_0x2a0ebe(0x1a5)](_0x132098[_0x2a0ebe(0x196)]['fields'])),_0x588849['attributes']=_0x588849[_0x2a0ebe(0x198)][_0x2a0ebe(0x1b0)]?_0x588849[_0x2a0ebe(0x198)]:_0x482862['model'],_0x132098['query'][_0x2a0ebe(0x1b5)]&&(_0x588849[_0x2a0ebe(0x1ab)]=[{'all':!![]}]),_0x588849=_[_0x2a0ebe(0x1a6)]({},_0x588849,_0x132098[_0x2a0ebe(0x1a0)]),db[_0x2a0ebe(0x192)][_0x2a0ebe(0x180)](_0x588849)[_0x2a0ebe(0x194)](handleEntityNotFound(_0xd21fe1,null))[_0x2a0ebe(0x194)](respondWithResult(_0xd21fe1,null))[_0x2a0ebe(0x1b2)](handleError(_0xd21fe1,null));},exports[a217_0x52abb5(0x18c)]=function(_0x3b3e25,_0x566139){const _0x25cf5d=a217_0x52abb5;return db[_0x25cf5d(0x192)][_0x25cf5d(0x18c)](_0x3b3e25[_0x25cf5d(0x191)],{})[_0x25cf5d(0x194)](function(_0x85cce1){const _0x1d8a7d=_0x25cf5d,_0x54bec9=_0x3b3e25[_0x1d8a7d(0x18a)][_0x1d8a7d(0x187)]({'plain':!![]});if(!_0x54bec9)throw new Error(_0x1d8a7d(0x185));if(_0x54bec9[_0x1d8a7d(0x184)]===_0x1d8a7d(0x18a)){const _0x1dcb7d=_0x85cce1[_0x1d8a7d(0x187)]({'plain':!![]}),_0x4fc3c4=_0x1d8a7d(0x1a9);return db[_0x1d8a7d(0x189)][_0x1d8a7d(0x180)]({'where':{'name':_0x4fc3c4,'userProfileId':_0x54bec9[_0x1d8a7d(0x1ba)]},'raw':!![]})[_0x1d8a7d(0x194)](function(_0x5995b6){const _0x10fc69=_0x1d8a7d;return _0x5995b6&&_0x5995b6[_0x10fc69(0x1bb)]===0x0?db[_0x10fc69(0x18f)][_0x10fc69(0x18c)]({'name':_0x1dcb7d[_0x10fc69(0x1ad)],'resourceId':_0x1dcb7d['id'],'type':_0x5995b6[_0x10fc69(0x1ad)],'sectionId':_0x5995b6['id']},{})[_0x10fc69(0x194)](function(){return _0x85cce1;}):_0x85cce1;})[_0x1d8a7d(0x1b2)](function(_0x256c6a){const _0x40c0bf=_0x1d8a7d;logger[_0x40c0bf(0x19b)](_0x40c0bf(0x190),_0x256c6a);throw _0x256c6a;});}return _0x85cce1;})[_0x25cf5d(0x194)](respondWithResult(_0x566139,0xc9))[_0x25cf5d(0x1b2)](handleError(_0x566139,null));},exports[a217_0x52abb5(0x19f)]=function(_0x3681bf,_0x36bcbb){const _0x4d7e4d=a217_0x52abb5;return _0x3681bf[_0x4d7e4d(0x191)]['id']&&delete _0x3681bf['body']['id'],db[_0x4d7e4d(0x192)][_0x4d7e4d(0x180)]({'where':{'id':_0x3681bf['params']['id']}})[_0x4d7e4d(0x194)](handleEntityNotFound(_0x36bcbb,null))[_0x4d7e4d(0x194)](saveUpdates(_0x3681bf[_0x4d7e4d(0x191)],null))[_0x4d7e4d(0x194)](respondWithResult(_0x36bcbb,null))[_0x4d7e4d(0x1b2)](handleError(_0x36bcbb,null));},exports[a217_0x52abb5(0x19c)]=function(_0x557f12,_0x1f7087){const _0x310dae=a217_0x52abb5;return db['Disposition'][_0x310dae(0x180)]({'where':{'id':_0x557f12[_0x310dae(0x193)]['id']}})['then'](handleEntityNotFound(_0x1f7087,null))[_0x310dae(0x194)](removeEntity(_0x1f7087,null))[_0x310dae(0x1b2)](handleError(_0x1f7087,null));}; \ No newline at end of file diff --git a/server/api/disposition/disposition.model.js b/server/api/disposition/disposition.model.js index 8670494..f77f0ef 100644 --- a/server/api/disposition/disposition.model.js +++ b/server/api/disposition/disposition.model.js @@ -1 +1 @@ -const a218_0x5b3c=['./disposition.attributes','Disposition','function','sequelize','exports','init'];(function(_0x43f582,_0x4a4bb2){const _0x5b3c35=function(_0x1b7f50){while(--_0x1b7f50){_0x43f582['push'](_0x43f582['shift']());}};_0x5b3c35(++_0x4a4bb2);}(a218_0x5b3c,0x12c));const a218_0x1b7f=function(_0x43f582,_0x4a4bb2){_0x43f582=_0x43f582-0x158;let _0x5b3c35=a218_0x5b3c[_0x43f582];return _0x5b3c35;};const a218_0x26ed54=a218_0x1b7f;'use strict';const {Model}=require(a218_0x26ed54(0x15b)),{attributes}=require(a218_0x26ed54(0x158)),{options}=require('./disposition.options');class Disposition extends Model{}function init(_0x2d8799,_0x4df750){const _0x14bd89=a218_0x26ed54,_0x53cccf=options(_0x2d8799),_0x10e611=typeof _0x4df750===_0x14bd89(0x15a)?_0x4df750(_0x53cccf):_0x53cccf;return Disposition[_0x14bd89(0x15d)](attributes,_0x10e611),Disposition;}module[a218_0x26ed54(0x15c)][a218_0x26ed54(0x159)]=Disposition,module[a218_0x26ed54(0x15c)][a218_0x26ed54(0x15d)]=init; \ No newline at end of file +const a218_0x461a=['init','./disposition.options','Disposition','sequelize','exports'];(function(_0x30b39e,_0x22b072){const _0x461a24=function(_0x353fc2){while(--_0x353fc2){_0x30b39e['push'](_0x30b39e['shift']());}};_0x461a24(++_0x22b072);}(a218_0x461a,0x189));const a218_0x353f=function(_0x30b39e,_0x22b072){_0x30b39e=_0x30b39e-0xc1;let _0x461a24=a218_0x461a[_0x30b39e];return _0x461a24;};const a218_0xa2f4d8=a218_0x353f;'use strict';const {Model}=require(a218_0xa2f4d8(0xc1)),{attributes}=require('./disposition.attributes'),{options}=require(a218_0xa2f4d8(0xc4));class Disposition extends Model{}function init(_0x22a71b,_0x420f81){const _0x190a17=a218_0xa2f4d8,_0x2f9946=options(_0x22a71b),_0x32b0cd=typeof _0x420f81==='function'?_0x420f81(_0x2f9946):_0x2f9946;return Disposition[_0x190a17(0xc3)](attributes,_0x32b0cd),Disposition;}module[a218_0xa2f4d8(0xc2)][a218_0xa2f4d8(0xc5)]=Disposition,module[a218_0xa2f4d8(0xc2)][a218_0xa2f4d8(0xc3)]=init; \ No newline at end of file diff --git a/server/api/disposition/disposition.options.js b/server/api/disposition/disposition.options.js index 86ed18e..61707ed 100644 --- a/server/api/disposition/disposition.options.js +++ b/server/api/disposition/disposition.options.js @@ -1 +1 @@ -var a219_0x4aee=['name_voice','name_whatsapp','WhatsappAccountId','FaxAccountId','MailAccountId','OpenchannelAccountId','ChatWebsiteId','name_sms','exports','ListId','name_fax','name_openchannel','name'];(function(_0x5ac439,_0x13097a){var _0x4aee0b=function(_0x5526af){while(--_0x5526af){_0x5ac439['push'](_0x5ac439['shift']());}};_0x4aee0b(++_0x13097a);}(a219_0x4aee,0x110));var a219_0x5526=function(_0x5ac439,_0x13097a){_0x5ac439=_0x5ac439-0x1c4;var _0x4aee0b=a219_0x4aee[_0x5ac439];return _0x4aee0b;};var a219_0x397ca1=a219_0x5526;function options(_0x4390be){var _0x25d4ef=a219_0x5526;return{'sequelize':_0x4390be,'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':_0x25d4ef(0x1c5),'fields':['name',_0x25d4ef(0x1ce)]},{'unique':!![],'name':'name_chat','fields':['name',_0x25d4ef(0x1cb)]},{'unique':!![],'name':'name_mail','fields':[_0x25d4ef(0x1c4),_0x25d4ef(0x1c9)]},{'unique':!![],'name':_0x25d4ef(0x1cc),'fields':[_0x25d4ef(0x1c4),'SmsAccountId']},{'unique':!![],'name':_0x25d4ef(0x1cf),'fields':['name',_0x25d4ef(0x1c8)]},{'unique':!![],'name':_0x25d4ef(0x1d0),'fields':[_0x25d4ef(0x1c4),_0x25d4ef(0x1ca)]},{'unique':!![],'name':_0x25d4ef(0x1c6),'fields':[_0x25d4ef(0x1c4),_0x25d4ef(0x1c7)]}],'timestamps':!![]};}module[a219_0x397ca1(0x1cd)]['options']=options; \ No newline at end of file +var a219_0x167c=['ChatWebsiteId','name_mail','WhatsappAccountId','name_voice','tools_dispositions','SmsAccountId','options','name_fax','name','exports','name_sms','name_openchannel','name_whatsapp','FaxAccountId','MailAccountId','OpenchannelAccountId'];(function(_0x17a740,_0x15f684){var _0x167cb4=function(_0x141584){while(--_0x141584){_0x17a740['push'](_0x17a740['shift']());}};_0x167cb4(++_0x15f684);}(a219_0x167c,0x76));var a219_0x1415=function(_0x17a740,_0x15f684){_0x17a740=_0x17a740-0x69;var _0x167cb4=a219_0x167c[_0x17a740];return _0x167cb4;};var a219_0x519598=a219_0x1415;function options(_0x45a533){var _0x10893d=a219_0x1415;return{'sequelize':_0x45a533,'tableName':_0x10893d(0x77),'paranoid':![],'indexes':[{'unique':!![],'name':_0x10893d(0x76),'fields':[_0x10893d(0x6b),'ListId']},{'unique':!![],'name':'name_chat','fields':['name',_0x10893d(0x73)]},{'unique':!![],'name':_0x10893d(0x74),'fields':['name',_0x10893d(0x71)]},{'unique':!![],'name':_0x10893d(0x6d),'fields':[_0x10893d(0x6b),_0x10893d(0x78)]},{'unique':!![],'name':_0x10893d(0x6a),'fields':[_0x10893d(0x6b),_0x10893d(0x70)]},{'unique':!![],'name':_0x10893d(0x6e),'fields':[_0x10893d(0x6b),_0x10893d(0x72)]},{'unique':!![],'name':_0x10893d(0x6f),'fields':[_0x10893d(0x6b),_0x10893d(0x75)]}],'timestamps':!![]};}module[a219_0x519598(0x6c)][a219_0x519598(0x69)]=options; \ No newline at end of file diff --git a/server/api/disposition/index.js b/server/api/disposition/index.js index 4f5989d..e6263f0 100644 --- a/server/api/disposition/index.js +++ b/server/api/disposition/index.js @@ -1 +1 @@ -const a220_0x3831=['Router','./disposition.controller','index','../../components/auth/service','isAuthenticated','put','update','destroy','get','/:id','exports','post'];(function(_0x49e355,_0x4e027e){const _0x38314c=function(_0x205ea0){while(--_0x205ea0){_0x49e355['push'](_0x49e355['shift']());}};_0x38314c(++_0x4e027e);}(a220_0x3831,0x122));const a220_0x205e=function(_0x49e355,_0x4e027e){_0x49e355=_0x49e355-0x101;let _0x38314c=a220_0x3831[_0x49e355];return _0x38314c;};const a220_0x47e528=a220_0x205e;'use strict';const express=require('express'),router=express[a220_0x47e528(0x10b)](),auth=require(a220_0x47e528(0x102)),controller=require(a220_0x47e528(0x10c));router['get']('/',auth[a220_0x47e528(0x103)](),controller[a220_0x47e528(0x101)]),router[a220_0x47e528(0x107)](a220_0x47e528(0x108),auth['isAuthenticated'](),controller['show']),router[a220_0x47e528(0x10a)]('/',auth['isAuthenticated'](),controller['create']),router[a220_0x47e528(0x104)](a220_0x47e528(0x108),auth[a220_0x47e528(0x103)](),controller[a220_0x47e528(0x105)]),router['delete'](a220_0x47e528(0x108),auth[a220_0x47e528(0x103)](),controller[a220_0x47e528(0x106)]),module[a220_0x47e528(0x109)]=router; \ No newline at end of file +const a220_0x4e42=['../../components/auth/service','create','Router','isAuthenticated','show','destroy','update','/:id','get','index'];(function(_0x12e59e,_0x58acef){const _0x4e4233=function(_0x3fbc48){while(--_0x3fbc48){_0x12e59e['push'](_0x12e59e['shift']());}};_0x4e4233(++_0x58acef);}(a220_0x4e42,0x84));const a220_0x3fbc=function(_0x12e59e,_0x58acef){_0x12e59e=_0x12e59e-0x179;let _0x4e4233=a220_0x4e42[_0x12e59e];return _0x4e4233;};const a220_0x100ec0=a220_0x3fbc;'use strict';const express=require('express'),router=express[a220_0x100ec0(0x179)](),auth=require(a220_0x100ec0(0x181)),controller=require('./disposition.controller');router[a220_0x100ec0(0x17f)]('/',auth[a220_0x100ec0(0x17a)](),controller[a220_0x100ec0(0x180)]),router[a220_0x100ec0(0x17f)](a220_0x100ec0(0x17e),auth['isAuthenticated'](),controller[a220_0x100ec0(0x17b)]),router['post']('/',auth[a220_0x100ec0(0x17a)](),controller[a220_0x100ec0(0x182)]),router['put']('/:id',auth[a220_0x100ec0(0x17a)](),controller[a220_0x100ec0(0x17d)]),router['delete'](a220_0x100ec0(0x17e),auth[a220_0x100ec0(0x17a)](),controller[a220_0x100ec0(0x17c)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.attributes.js b/server/api/faxAccount/faxAccount.attributes.js index 6a3266e..2478b10 100644 --- a/server/api/faxAccount/faxAccount.attributes.js +++ b/server/api/faxAccount/faxAccount.attributes.js @@ -1 +1 @@ -const a221_0x228c=['Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','TEXT','mandatoryDispositionPauseId','14400','KHOMP','BOOLEAN','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','2400','yes','v17,v27,v29','INTEGER','mandatoryDisposition','7200','12000','xCALLY\x20Motion\x20Fax','exports','9600','sequelize','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','DADHI','4800','setDataValue','STRING','SIP','ENUM'];(function(_0x40e876,_0x37359b){const _0x228c51=function(_0x4d53f8){while(--_0x4d53f8){_0x40e876['push'](_0x40e876['shift']());}};_0x228c51(++_0x37359b);}(a221_0x228c,0x1c3));const a221_0x4d53=function(_0x40e876,_0x37359b){_0x40e876=_0x40e876-0xc6;let _0x228c51=a221_0x228c[_0x40e876];return _0x228c51;};const a221_0x336591=a221_0x4d53;'use strict';const {DataTypes}=require(a221_0x336591(0xd6)),attributes={'name':{'type':DataTypes[a221_0x336591(0xdb)],'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':DataTypes[a221_0x336591(0xdb)]},'ecm':{'type':DataTypes[a221_0x336591(0xdd)](a221_0x336591(0xcd),'no'),'defaultValue':a221_0x336591(0xcd)},'headerinfo':{'type':DataTypes[a221_0x336591(0xdb)],'defaultValue':a221_0x336591(0xd3)},'localstationid':{'type':DataTypes[a221_0x336591(0xdb)],'unique':'localstationid'},'minrate':{'type':DataTypes[a221_0x336591(0xdd)](a221_0x336591(0xcc),a221_0x336591(0xd9),a221_0x336591(0xd1),'9600',a221_0x336591(0xd2),'14400'),'defaultValue':a221_0x336591(0xd9)},'maxrate':{'type':DataTypes['ENUM'](a221_0x336591(0xcc),a221_0x336591(0xd9),'7200',a221_0x336591(0xd5),a221_0x336591(0xd2),'14400'),'defaultValue':a221_0x336591(0xc8)},'modem':{'type':DataTypes[a221_0x336591(0xdb)],'defaultValue':a221_0x336591(0xce)},'gateway':{'type':DataTypes[a221_0x336591(0xdb)],'defaultValue':'no','validate':{'is':/^(?:yes|no|[0-9]+)$/}},'faxdetect':{'type':DataTypes[a221_0x336591(0xdb)],'defaultValue':'no','validate':{'is':/^(?:yes|no|t38|cng|[0-9]+)$/}},'t38timeout':{'type':DataTypes[a221_0x336591(0xcf)],'defaultValue':0x1388,'validate':{'min':0x3e8}},'tech':{'type':DataTypes['ENUM'](a221_0x336591(0xdc),'IAX',a221_0x336591(0xd8),a221_0x336591(0xc9)),'defaultValue':a221_0x336591(0xdc)},'key':{'type':DataTypes[a221_0x336591(0xdb)],'allowNull':![]},'notificationTemplate':{'type':DataTypes[a221_0x336591(0xc6)],'defaultValue':function(){const _0x315ddd=a221_0x336591;return _0x315ddd(0xcb);}},'notificationSound':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':DataTypes[a221_0x336591(0xca)],'defaultValue':![]},'waitForTheAssignedAgent':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':DataTypes[a221_0x336591(0xca)],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes[a221_0x336591(0xcf)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes[a221_0x336591(0xcf)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':DataTypes['INTEGER'],'allowNull':!![],'defaultValue':null,'comment':a221_0x336591(0xd7)},'mandatoryDisposition':{'type':DataTypes['BOOLEAN'],'defaultValue':![],'comment':a221_0x336591(0xde),'set':function(_0x576c69){const _0x1a26df=a221_0x336591;if(!_0x576c69)this[_0x1a26df(0xda)](_0x1a26df(0xc7),null);this[_0x1a26df(0xda)](_0x1a26df(0xd0),_0x576c69);}}};module[a221_0x336591(0xd4)]['attributes']=attributes; \ No newline at end of file +const a221_0x3268=['mandatoryDisposition','14400','12000','2400','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','KHOMP','yes','9600','IAX','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','INTEGER','localstationid','xCALLY\x20Motion\x20Fax','sequelize','mandatoryDispositionPauseId','7200','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','STRING','setDataValue','ENUM','4800','SIP','BOOLEAN','DADHI','v17,v27,v29'];(function(_0x276b91,_0x33a748){const _0x32685a=function(_0x50fcb4){while(--_0x50fcb4){_0x276b91['push'](_0x276b91['shift']());}};_0x32685a(++_0x33a748);}(a221_0x3268,0x111));const a221_0x50fc=function(_0x276b91,_0x33a748){_0x276b91=_0x276b91-0x1db;let _0x32685a=a221_0x3268[_0x276b91];return _0x32685a;};const a221_0x57d83c=a221_0x50fc;'use strict';const {DataTypes}=require(a221_0x57d83c(0x1ea)),attributes={'name':{'type':DataTypes[a221_0x57d83c(0x1ee)],'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':DataTypes[a221_0x57d83c(0x1ee)]},'ecm':{'type':DataTypes['ENUM'](a221_0x57d83c(0x1e3),'no'),'defaultValue':a221_0x57d83c(0x1e3)},'headerinfo':{'type':DataTypes[a221_0x57d83c(0x1ee)],'defaultValue':a221_0x57d83c(0x1e9)},'localstationid':{'type':DataTypes[a221_0x57d83c(0x1ee)],'unique':a221_0x57d83c(0x1e8)},'minrate':{'type':DataTypes[a221_0x57d83c(0x1f0)](a221_0x57d83c(0x1e0),a221_0x57d83c(0x1f1),a221_0x57d83c(0x1ec),a221_0x57d83c(0x1e4),a221_0x57d83c(0x1df),'14400'),'defaultValue':a221_0x57d83c(0x1f1)},'maxrate':{'type':DataTypes[a221_0x57d83c(0x1f0)](a221_0x57d83c(0x1e0),a221_0x57d83c(0x1f1),'7200',a221_0x57d83c(0x1e4),a221_0x57d83c(0x1df),'14400'),'defaultValue':a221_0x57d83c(0x1de)},'modem':{'type':DataTypes[a221_0x57d83c(0x1ee)],'defaultValue':a221_0x57d83c(0x1dc)},'gateway':{'type':DataTypes['STRING'],'defaultValue':'no','validate':{'is':/^(?:yes|no|[0-9]+)$/}},'faxdetect':{'type':DataTypes['STRING'],'defaultValue':'no','validate':{'is':/^(?:yes|no|t38|cng|[0-9]+)$/}},'t38timeout':{'type':DataTypes[a221_0x57d83c(0x1e7)],'defaultValue':0x1388,'validate':{'min':0x3e8}},'tech':{'type':DataTypes[a221_0x57d83c(0x1f0)](a221_0x57d83c(0x1f2),a221_0x57d83c(0x1e5),a221_0x57d83c(0x1db),a221_0x57d83c(0x1e2)),'defaultValue':a221_0x57d83c(0x1f2)},'key':{'type':DataTypes['STRING'],'allowNull':![]},'notificationTemplate':{'type':DataTypes['TEXT'],'defaultValue':function(){const _0x12a2f0=a221_0x57d83c;return _0x12a2f0(0x1e1);}},'notificationSound':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':DataTypes[a221_0x57d83c(0x1f3)],'defaultValue':![]},'waitForTheAssignedAgent':{'type':DataTypes[a221_0x57d83c(0x1e7)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':DataTypes[a221_0x57d83c(0x1f3)],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes[a221_0x57d83c(0x1f3)],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':DataTypes['INTEGER'],'allowNull':!![],'defaultValue':null,'comment':a221_0x57d83c(0x1ed)},'mandatoryDisposition':{'type':DataTypes[a221_0x57d83c(0x1f3)],'defaultValue':![],'comment':a221_0x57d83c(0x1e6),'set':function(_0x148aa3){const _0x426413=a221_0x57d83c;if(!_0x148aa3)this[_0x426413(0x1ef)](_0x426413(0x1eb),null);this[_0x426413(0x1ef)](_0x426413(0x1dd),_0x148aa3);}}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.controller.js b/server/api/faxAccount/faxAccount.controller.js index 6816652..903168d 100644 --- a/server/api/faxAccount/faxAccount.controller.js +++ b/server/api/faxAccount/faxAccount.controller.js @@ -1 +1 @@ -const a222_0x2d36=['user','nolimit','User','Tag','describe','message','merge','Pause','sendStatus','map','addAnswer','getAgents','keys','body','model','Messages','json','set','ids','DESC','getMessages','dataValues','destroy','updatedAt','findOne','color','tech','show','SendFax','TrunkId','api','UserProfileResource','\x22%s\x22\x20<%s>','YYYY-MM-DD\x20HH:mm:ss','omit','localstationid','userProfileId','ContactId','removeAnswers','http','addApplications','tag','bulkCreate','length','intersection','Wait','rows','isArray','Contact','filename','mandatoryDispositionPause','FaxAccounts','appdata','role','maxrate','result','rawAttributes','fax','index','offset','addInteraction','path','Set','List','autoAssociation','get','FaxAccount','Contact\x20not\x20found','CDR(type)=inbound-fax','FaxMessage','removeDispositions','isNil','../../mysqldb','include','key','sort','util','FaxInteraction','FaxAccountId','error','push','Fax\x20Extension','fields','userFaxAccount:save','then','limit','removeAgents','request','includeAll','name','like','VoiceExtension','attachments','lodash','options','catch','order','join','fieldName','stringify','faxdetect','format','defaults','gateway','jayson/promise','FaxAccount,\x20%s,\x20%s,\x20%s','Answer','../../components/parsers/qs','params','filter','ecm','ReceiveFax','end','findByPk','request\x20sent','./faxAccount.socket','minrate','getApplications','stack','query','from','CmContact','$gte','Content-Range','../../rediscache','undefined','t38timeout','addAccountApplications','userFaxAccount:remove','sequelize','debug','FaxAccount,\x20%s,\x20%s','../../config/environment','VIRTUAL','ListId','SendFaxRpc,\x20%s','Contacts','count','Disposition','moment','where','findAll','context','description','FAXOPT(','findAndCountAll','code','modem','priority','info','gte','FaxApplication','transaction','type','from-voip-provider','split','client','getInteractions','status','root','internal','update','Owner','send','server/files/attachments','CmList','attributes','/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','List\x20not\x20found','CannedAnswer','addAgents','pick','UserProfileSection','create','headerinfo','filters','out','system','emit'];(function(_0x52411a,_0x2efebe){const _0x2d3686=function(_0x5d9f59){while(--_0x5d9f59){_0x52411a['push'](_0x52411a['shift']());}};_0x2d3686(++_0x2efebe);}(a222_0x2d36,0x1db));const a222_0x5d9f=function(_0x52411a,_0x2efebe){_0x52411a=_0x52411a-0x107;let _0x2d3686=a222_0x2d36[_0x52411a];return _0x2d3686;};const a222_0x20224a=a222_0x5d9f;'use strict';const moment=require(a222_0x20224a(0x11d)),util=require(a222_0x20224a(0x191)),path=require('path'),_=require(a222_0x20224a(0x1a2)),{getSocket}=require(a222_0x20224a(0x10e)),socket=getSocket(),qs=require(a222_0x20224a(0x1b0)),logger=require('../../config/logger')(a222_0x20224a(0x163)),config=require(a222_0x20224a(0x116)),{db}=require(a222_0x20224a(0x18d)),{Op}=require(a222_0x20224a(0x113));require(a222_0x20224a(0x1b8))['register'](socket);const jayson=require(a222_0x20224a(0x1ad)),client=jayson[a222_0x20224a(0x12e)][a222_0x20224a(0x16c)]({'port':0x232c}),client9002=jayson[a222_0x20224a(0x12e)][a222_0x20224a(0x16c)]({'port':0x232a});function respondWithRpcPromise(_0xf83418,_0x32df85,_0x16c9ed,_0x51a852){return new Promise(function(_0x585269,_0x569414){const _0x50f9bd=a222_0x5d9f,_0x635fe4=_0x51a852||client;return _0x635fe4[_0x50f9bd(0x19c)](_0xf83418,_0x16c9ed)['then'](function(_0x5eb0a8){const _0x3fa176=_0x50f9bd;logger[_0x3fa176(0x127)](_0x3fa176(0x115),_0x32df85,_0x3fa176(0x1b7)),logger[_0x3fa176(0x114)](_0x3fa176(0x1ae),_0x32df85,_0x3fa176(0x1b7),JSON[_0x3fa176(0x1a8)](_0x5eb0a8));if(_0x5eb0a8[_0x3fa176(0x194)]){if(_0x5eb0a8['error'][_0x3fa176(0x124)]===0x1f4)return logger[_0x3fa176(0x194)](_0x3fa176(0x115),_0x32df85,_0x5eb0a8[_0x3fa176(0x194)]['message']),_0x569414(_0x5eb0a8[_0x3fa176(0x194)][_0x3fa176(0x14a)]);return logger[_0x3fa176(0x194)](_0x3fa176(0x115),_0x32df85,_0x5eb0a8[_0x3fa176(0x194)][_0x3fa176(0x14a)]),_0x585269(_0x5eb0a8[_0x3fa176(0x194)][_0x3fa176(0x14a)]);}else logger[_0x3fa176(0x127)](_0x3fa176(0x115),_0x32df85,_0x3fa176(0x1b7)),_0x585269(_0x5eb0a8[_0x3fa176(0x17c)][_0x3fa176(0x14a)]);})[_0x50f9bd(0x1a4)](function(_0x645508){const _0x3f2954=_0x50f9bd;logger['error'](_0x3f2954(0x115),_0x32df85,_0x645508),_0x569414(_0x645508);});});}function respondWithStatusCode(_0x10bd4b,_0x45fbda){return _0x45fbda=_0x45fbda||0xcc,function(_0x55b3e7){const _0x2f54da=a222_0x5d9f;if(_0x55b3e7)return _0x10bd4b[_0x2f54da(0x14d)](_0x45fbda);return _0x10bd4b[_0x2f54da(0x130)](_0x45fbda)[_0x2f54da(0x1b5)]();};}function respondWithResult(_0x5491a3,_0x594c23){return _0x594c23=_0x594c23||0xc8,function(_0x3626b6){const _0x17e55a=a222_0x5d9f;if(_0x3626b6)return _0x5491a3[_0x17e55a(0x130)](_0x594c23)[_0x17e55a(0x155)](_0x3626b6);};}function respondWithFilteredResult(_0x35c29a,_0x135cea){return function(_0x1b06e0){const _0x11c09b=a222_0x5d9f;if(_0x1b06e0){const _0x155d0b=_0x1b06e0['count'],_0x3e6c5a=_0x135cea[_0x11c09b(0x180)];let _0x530f4b=_0x135cea[_0x11c09b(0x180)]+_0x135cea[_0x11c09b(0x19a)],_0x295183;return _0x530f4b>=_0x155d0b?(_0x530f4b=_0x155d0b,_0x295183=0xc8):_0x295183=0xce,_0x35c29a[_0x11c09b(0x130)](_0x295183),_0x35c29a[_0x11c09b(0x156)](_0x11c09b(0x10d),_0x3e6c5a+'-'+_0x530f4b+'/'+_0x155d0b)[_0x11c09b(0x155)](_0x1b06e0);}return null;};}function saveUpdates(_0x4bea4d){return function(_0x5c9cef){const _0x1fabfe=a222_0x5d9f;if(_0x5c9cef)return _0x5c9cef[_0x1fabfe(0x133)](_0x4bea4d)[_0x1fabfe(0x199)](function(_0x37c244){return _0x37c244;});return null;};}function removeEntity(_0xf4339d){return function(_0x1887c8){const _0x2fdc46=a222_0x5d9f;if(_0x1887c8)return _0x1887c8[_0x2fdc46(0x15b)]()[_0x2fdc46(0x199)](function(){const _0x379111=_0x2fdc46,_0x2323d3=_0x1887c8[_0x379111(0x186)]({'plain':!![]}),_0xe668a9='FaxAccounts';return db[_0x379111(0x164)][_0x379111(0x15b)]({'where':{'type':_0xe668a9,'resourceId':_0x2323d3['id']}})[_0x379111(0x199)](function(){return _0x1887c8;});})[_0x2fdc46(0x199)](function(){const _0x48d2c3=_0x2fdc46;_0xf4339d[_0x48d2c3(0x130)](0xcc)[_0x48d2c3(0x1b5)]();});};}function handleEntityNotFound(_0x1c4390){return function(_0x102a8b){return!_0x102a8b&&_0x1c4390['sendStatus'](0x194),_0x102a8b;};}function handleError(_0x4fb08d,_0x1491ec){return _0x1491ec=_0x1491ec||0x1f4,function(_0x51f0de){const _0x2f2db3=a222_0x5d9f;logger[_0x2f2db3(0x194)](_0x51f0de[_0x2f2db3(0x108)]),_0x51f0de[_0x2f2db3(0x19e)]&&delete _0x51f0de[_0x2f2db3(0x19e)],_0x4fb08d[_0x2f2db3(0x130)](_0x1491ec)[_0x2f2db3(0x135)](_0x51f0de);};}exports[a222_0x20224a(0x17f)]=function(_0x1d45af,_0x5efbef){const _0x1cf59b=a222_0x20224a;let _0x1684b1={'include':[{'model':db[_0x1cf59b(0x14c)],'as':'mandatoryDispositionPause'}]};const _0x418927={},_0x4d6b07={'count':0x0,'rows':[]},_0x4d3453=_['map'](db[_0x1cf59b(0x187)]['rawAttributes'],function(_0xdb6de8){const _0x22d6a1=_0x1cf59b;return{'name':_0xdb6de8[_0x22d6a1(0x1a7)],'type':_0xdb6de8[_0x22d6a1(0x12b)]['key']};});_0x418927['model']=_[_0x1cf59b(0x14e)](_0x4d3453,'name'),_0x418927[_0x1cf59b(0x109)]=_[_0x1cf59b(0x151)](_0x1d45af[_0x1cf59b(0x109)]),_0x418927[_0x1cf59b(0x141)]=_[_0x1cf59b(0x171)](_0x418927[_0x1cf59b(0x153)],_0x418927['query']),_0x1684b1[_0x1cf59b(0x138)]=_['intersection'](_0x418927[_0x1cf59b(0x153)],qs[_0x1cf59b(0x197)](_0x1d45af[_0x1cf59b(0x109)][_0x1cf59b(0x197)])),_0x1684b1[_0x1cf59b(0x138)]=_0x1684b1[_0x1cf59b(0x138)][_0x1cf59b(0x170)]?_0x1684b1['attributes']:_0x418927[_0x1cf59b(0x153)];typeof _0x1d45af[_0x1cf59b(0x109)][_0x1cf59b(0x146)]===_0x1cf59b(0x10f)&&(_0x1684b1[_0x1cf59b(0x19a)]=qs['limit'](_0x1d45af[_0x1cf59b(0x109)][_0x1cf59b(0x19a)]),_0x1684b1['offset']=qs[_0x1cf59b(0x180)](_0x1d45af[_0x1cf59b(0x109)][_0x1cf59b(0x180)]));_0x1684b1[_0x1cf59b(0x1a5)]=qs[_0x1cf59b(0x190)](_0x1d45af['query'][_0x1cf59b(0x190)]),_0x1684b1[_0x1cf59b(0x11e)]=qs[_0x1cf59b(0x141)](_[_0x1cf59b(0x13d)](_0x1d45af[_0x1cf59b(0x109)],_0x418927['filters']),_0x4d3453);_0x1d45af['query'][_0x1cf59b(0x1b2)]&&(_0x1684b1['where']=_['merge'](_0x1684b1[_0x1cf59b(0x11e)],{[Op['or']]:_[_0x1cf59b(0x14e)](_0x4d3453,function(_0xdcecf8){const _0x523ba9=_0x1cf59b;if(_0xdcecf8['type']!==_0x523ba9(0x117)){const _0x159d25={};return _0x159d25[_0xdcecf8[_0x523ba9(0x19e)]]={[Op[_0x523ba9(0x19f)]]:'%'+_0x1d45af[_0x523ba9(0x109)]['filter']+'%'},_0x159d25;}})}));_0x1684b1=_[_0x1cf59b(0x14b)]({},_0x1684b1,_0x1d45af[_0x1cf59b(0x1a3)]);const _0x247582={'where':_0x1684b1[_0x1cf59b(0x11e)]};return db[_0x1cf59b(0x187)]['count'](_0x247582)['then'](function(_0x22d15d){const _0xc2269=_0x1cf59b;return _0x4d6b07[_0xc2269(0x11b)]=_0x22d15d,_0x1d45af[_0xc2269(0x109)][_0xc2269(0x19d)]&&(_0x1684b1['include']=[{'all':!![]}]),db['FaxAccount']['findAll'](_0x1684b1);})[_0x1cf59b(0x199)](function(_0x56b466){return _0x4d6b07['rows']=_0x56b466,_0x4d6b07;})['then'](respondWithFilteredResult(_0x5efbef,_0x1684b1))[_0x1cf59b(0x1a4)](handleError(_0x5efbef,null));},exports[a222_0x20224a(0x160)]=function(_0x1a3621,_0x15f0ca){const _0x296364=a222_0x20224a;let _0x5c8e74={'raw':![],'where':{'id':_0x1a3621[_0x296364(0x1b1)]['id']},'include':[{'model':db[_0x296364(0x14c)],'as':_0x296364(0x177)}]};const _0x368fcc={};return _0x368fcc[_0x296364(0x153)]=_[_0x296364(0x151)](db['FaxAccount']['rawAttributes']),_0x368fcc[_0x296364(0x109)]=_[_0x296364(0x151)](_0x1a3621[_0x296364(0x109)]),_0x368fcc[_0x296364(0x141)]=_[_0x296364(0x171)](_0x368fcc['model'],_0x368fcc[_0x296364(0x109)]),_0x5c8e74['attributes']=_['intersection'](_0x368fcc[_0x296364(0x153)],qs['fields'](_0x1a3621[_0x296364(0x109)][_0x296364(0x197)])),_0x5c8e74['attributes']=_0x5c8e74[_0x296364(0x138)]['length']?_0x5c8e74['attributes']:_0x368fcc[_0x296364(0x153)],_0x1a3621[_0x296364(0x109)][_0x296364(0x19d)]&&(_0x5c8e74[_0x296364(0x18e)]=[{'all':!![]}]),_0x5c8e74=_[_0x296364(0x14b)]({},_0x5c8e74,_0x1a3621[_0x296364(0x1a3)]),db[_0x296364(0x187)][_0x296364(0x15d)](_0x5c8e74)[_0x296364(0x199)](handleEntityNotFound(_0x15f0ca,null))['then'](respondWithResult(_0x15f0ca,null))[_0x296364(0x1a4)](handleError(_0x15f0ca,null));},exports['create']=function(_0x422c66,_0x34c653){const _0x21a370=a222_0x20224a;return db[_0x21a370(0x187)][_0x21a370(0x13f)](_0x422c66[_0x21a370(0x152)],{})[_0x21a370(0x199)](function(_0x62201a){const _0x2baf38=_0x21a370,_0x2e485b=_0x422c66[_0x2baf38(0x145)][_0x2baf38(0x186)]({'plain':!![]});if(!_0x2e485b)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x2e485b[_0x2baf38(0x17a)]===_0x2baf38(0x145)){const _0x1d50c8=_0x62201a[_0x2baf38(0x186)]({'plain':!![]}),_0x1d8710=_0x2baf38(0x178);return db[_0x2baf38(0x13e)]['findOne']({'where':{'name':_0x1d8710,'userProfileId':_0x2e485b[_0x2baf38(0x169)]},'raw':!![]})[_0x2baf38(0x199)](function(_0x5db85f){const _0x272c9a=_0x2baf38;return _0x5db85f&&_0x5db85f[_0x272c9a(0x185)]===0x0?db[_0x272c9a(0x164)][_0x272c9a(0x13f)]({'name':_0x1d50c8[_0x272c9a(0x19e)],'resourceId':_0x1d50c8['id'],'type':_0x5db85f[_0x272c9a(0x19e)],'sectionId':_0x5db85f['id']},{})['then'](function(){return _0x62201a;}):_0x62201a;})[_0x2baf38(0x1a4)](function(_0x4cddcc){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x4cddcc);throw _0x4cddcc;});}return _0x62201a;})[_0x21a370(0x199)](respondWithResult(_0x34c653,0xc9))[_0x21a370(0x1a4)](handleError(_0x34c653,null));},exports[a222_0x20224a(0x133)]=function(_0x43ce2c,_0x45b1ee){const _0x151b5a=a222_0x20224a;return _0x43ce2c[_0x151b5a(0x152)]['id']&&delete _0x43ce2c['body']['id'],db['FaxAccount']['findOne']({'where':{'id':_0x43ce2c[_0x151b5a(0x1b1)]['id']},'include':[{'model':db[_0x151b5a(0x14c)],'as':_0x151b5a(0x177)}]})[_0x151b5a(0x199)](handleEntityNotFound(_0x45b1ee,null))[_0x151b5a(0x199)](saveUpdates(_0x43ce2c['body'],null))['then'](respondWithResult(_0x45b1ee,null))[_0x151b5a(0x1a4)](handleError(_0x45b1ee,null));},exports[a222_0x20224a(0x15b)]=function(_0x59d7a4,_0x54acc0){const _0x56a8d0=a222_0x20224a;return db['FaxAccount'][_0x56a8d0(0x15d)]({'where':{'id':_0x59d7a4[_0x56a8d0(0x1b1)]['id']}})[_0x56a8d0(0x199)](handleEntityNotFound(_0x54acc0,null))['then'](removeEntity(_0x54acc0,null))[_0x56a8d0(0x1a4)](handleError(_0x54acc0,null));},exports['describe']=function(_0x36f443,_0x17fc83){const _0x568a6b=a222_0x20224a;return db[_0x568a6b(0x187)][_0x568a6b(0x149)]()[_0x568a6b(0x199)](respondWithResult(_0x17fc83,null))['catch'](handleError(_0x17fc83,null));},exports['addDisposition']=function(_0x5f816d,_0x1dfcaf){const _0x3a4c89=a222_0x20224a;return _0x5f816d[_0x3a4c89(0x152)]['id']&&delete _0x5f816d[_0x3a4c89(0x152)]['id'],db['FaxAccount'][_0x3a4c89(0x15d)]({'where':{'id':_0x5f816d[_0x3a4c89(0x1b1)]['id']}})[_0x3a4c89(0x199)](handleEntityNotFound(_0x1dfcaf,null))[_0x3a4c89(0x199)](function(_0x8cdcf0){const _0x5bfcb9=_0x3a4c89;if(_0x8cdcf0)return _0x5f816d[_0x5bfcb9(0x152)]['FaxAccountId']=_0x8cdcf0['id'],db[_0x5bfcb9(0x11c)][_0x5bfcb9(0x13f)](_0x5f816d[_0x5bfcb9(0x152)]);})['then'](respondWithResult(_0x1dfcaf,null))['catch'](handleError(_0x1dfcaf,null));},exports['getDispositions']=function(_0x157582,_0x25564e){const _0x25a78b=a222_0x20224a;let _0x25c5fc={'raw':![],'where':{}};const _0x1c197f={},_0x3d3214={'count':0x0,'rows':[]};return db[_0x25a78b(0x187)][_0x25a78b(0x15d)]({'where':{'id':_0x157582['params']['id']}})[_0x25a78b(0x199)](handleEntityNotFound(_0x25564e,null))[_0x25a78b(0x199)](function(_0x41d929){const _0x2ab810=_0x25a78b;if(_0x41d929)return _0x1c197f['model']=_['keys'](db[_0x2ab810(0x11c)][_0x2ab810(0x17d)]),_0x1c197f[_0x2ab810(0x109)]=_['keys'](_0x157582[_0x2ab810(0x109)]),_0x1c197f[_0x2ab810(0x141)]=_[_0x2ab810(0x171)](_0x1c197f[_0x2ab810(0x153)],_0x1c197f['query']),_0x25c5fc[_0x2ab810(0x138)]=_[_0x2ab810(0x171)](_0x1c197f[_0x2ab810(0x153)],qs['fields'](_0x157582['query']['fields'])),_0x25c5fc[_0x2ab810(0x138)]=_0x25c5fc[_0x2ab810(0x138)][_0x2ab810(0x170)]?_0x25c5fc[_0x2ab810(0x138)]:_0x1c197f[_0x2ab810(0x153)],typeof _0x157582[_0x2ab810(0x109)][_0x2ab810(0x146)]==='undefined'&&(_0x25c5fc[_0x2ab810(0x19a)]=qs['limit'](_0x157582[_0x2ab810(0x109)][_0x2ab810(0x19a)]),_0x25c5fc[_0x2ab810(0x180)]=qs[_0x2ab810(0x180)](_0x157582[_0x2ab810(0x109)][_0x2ab810(0x180)])),_0x25c5fc[_0x2ab810(0x1a5)]=qs[_0x2ab810(0x190)](_0x157582['query'][_0x2ab810(0x190)]),_0x25c5fc[_0x2ab810(0x11e)]=qs[_0x2ab810(0x141)](_[_0x2ab810(0x13d)](_0x157582[_0x2ab810(0x109)],_0x1c197f['filters'])),_0x25c5fc['where'][_0x2ab810(0x193)]=_0x41d929['id'],_0x157582[_0x2ab810(0x109)]['filter']&&(_0x25c5fc[_0x2ab810(0x11e)]=_[_0x2ab810(0x14b)](_0x25c5fc['where'],{[Op['or']]:_[_0x2ab810(0x14e)](_0x25c5fc[_0x2ab810(0x138)],function(_0x5b6f9f){const _0x188d66={};return _0x188d66[_0x5b6f9f]={[Op['like']]:'%'+_0x157582['query']['filter']+'%'},_0x188d66;})})),_0x25c5fc=_[_0x2ab810(0x14b)]({},_0x25c5fc,_0x157582['options']),db[_0x2ab810(0x11c)][_0x2ab810(0x11b)]({'where':_0x25c5fc['where']})['then'](function(_0x53b0a8){const _0x5ec8e6=_0x2ab810;return _0x3d3214[_0x5ec8e6(0x11b)]=_0x53b0a8,_0x157582[_0x5ec8e6(0x109)]['includeAll']&&(_0x25c5fc[_0x5ec8e6(0x18e)]=[{'all':!![]}]),db['Disposition'][_0x5ec8e6(0x11f)](_0x25c5fc);})[_0x2ab810(0x199)](function(_0x121650){const _0x335ae8=_0x2ab810;return _0x3d3214[_0x335ae8(0x173)]=_0x121650,_0x3d3214;});})[_0x25a78b(0x199)](respondWithFilteredResult(_0x25564e,_0x25c5fc))[_0x25a78b(0x1a4)](handleError(_0x25564e,null));},exports[a222_0x20224a(0x18b)]=function(_0x168865,_0x3d42de){const _0x16b443=a222_0x20224a;return db[_0x16b443(0x187)][_0x16b443(0x15d)]({'where':{'id':_0x168865[_0x16b443(0x1b1)]['id']}})[_0x16b443(0x199)](handleEntityNotFound(_0x3d42de,null))[_0x16b443(0x199)](function(_0x13023f){const _0x754b3b=_0x16b443;if(_0x13023f)return _0x13023f[_0x754b3b(0x18b)](_0x168865[_0x754b3b(0x109)][_0x754b3b(0x157)]);})['then'](respondWithStatusCode(_0x3d42de,null))[_0x16b443(0x1a4)](handleError(_0x3d42de,null));},exports[a222_0x20224a(0x14f)]=function(_0x4a6181,_0x1141f8){const _0x53611b=a222_0x20224a;return _0x4a6181[_0x53611b(0x152)]['id']&&delete _0x4a6181[_0x53611b(0x152)]['id'],db[_0x53611b(0x187)][_0x53611b(0x15d)]({'where':{'id':_0x4a6181[_0x53611b(0x1b1)]['id']}})[_0x53611b(0x199)](handleEntityNotFound(_0x1141f8,null))['then'](function(_0x297f19){const _0x539e7a=_0x53611b;if(_0x297f19)return _0x4a6181[_0x539e7a(0x152)][_0x539e7a(0x193)]=_0x297f19['id'],db['CannedAnswer'][_0x539e7a(0x13f)](_0x4a6181[_0x539e7a(0x152)]);})[_0x53611b(0x199)](respondWithResult(_0x1141f8,null))[_0x53611b(0x1a4)](handleError(_0x1141f8,null));},exports['getAnswers']=function(_0x1d581d,_0x451106){const _0x26c5ba=a222_0x20224a;let _0x4ec58e={'raw':![],'where':{}};const _0x301312={},_0x2a9f4d={'count':0x0,'rows':[]};return db[_0x26c5ba(0x187)][_0x26c5ba(0x15d)]({'where':{'id':_0x1d581d[_0x26c5ba(0x1b1)]['id']}})['then'](handleEntityNotFound(_0x451106,null))[_0x26c5ba(0x199)](function(_0x29d51d){const _0x21df81=_0x26c5ba;if(_0x29d51d)return _0x301312[_0x21df81(0x153)]=_[_0x21df81(0x151)](db[_0x21df81(0x13b)]['rawAttributes']),_0x301312[_0x21df81(0x109)]=_[_0x21df81(0x151)](_0x1d581d[_0x21df81(0x109)]),_0x301312['filters']=_[_0x21df81(0x171)](_0x301312[_0x21df81(0x153)],_0x301312[_0x21df81(0x109)]),_0x4ec58e[_0x21df81(0x138)]=_[_0x21df81(0x171)](_0x301312[_0x21df81(0x153)],qs[_0x21df81(0x197)](_0x1d581d[_0x21df81(0x109)][_0x21df81(0x197)])),_0x4ec58e[_0x21df81(0x138)]=_0x4ec58e['attributes'][_0x21df81(0x170)]?_0x4ec58e[_0x21df81(0x138)]:_0x301312['model'],typeof _0x1d581d['query'][_0x21df81(0x146)]===_0x21df81(0x10f)&&(_0x4ec58e[_0x21df81(0x19a)]=qs[_0x21df81(0x19a)](_0x1d581d[_0x21df81(0x109)][_0x21df81(0x19a)]),_0x4ec58e[_0x21df81(0x180)]=qs[_0x21df81(0x180)](_0x1d581d[_0x21df81(0x109)][_0x21df81(0x180)])),_0x4ec58e[_0x21df81(0x1a5)]=qs[_0x21df81(0x190)](_0x1d581d[_0x21df81(0x109)][_0x21df81(0x190)]),_0x4ec58e[_0x21df81(0x11e)]=qs[_0x21df81(0x141)](_[_0x21df81(0x13d)](_0x1d581d[_0x21df81(0x109)],_0x301312[_0x21df81(0x141)])),_0x4ec58e[_0x21df81(0x11e)]['FaxAccountId']=_0x29d51d['id'],_0x1d581d['query'][_0x21df81(0x1b2)]&&(_0x4ec58e[_0x21df81(0x11e)]=_[_0x21df81(0x14b)](_0x4ec58e[_0x21df81(0x11e)],{[Op['or']]:_[_0x21df81(0x14e)](_0x4ec58e[_0x21df81(0x138)],function(_0x18ad2e){const _0x28a520=_0x21df81,_0x4e4661={};return _0x4e4661[_0x18ad2e]={[Op[_0x28a520(0x19f)]]:'%'+_0x1d581d['query'][_0x28a520(0x1b2)]+'%'},_0x4e4661;})})),_0x4ec58e=_[_0x21df81(0x14b)]({},_0x4ec58e,_0x1d581d[_0x21df81(0x1a3)]),db['CannedAnswer']['count']({'where':_0x4ec58e[_0x21df81(0x11e)]})[_0x21df81(0x199)](function(_0x4d11eb){const _0x3fb36e=_0x21df81;return _0x2a9f4d[_0x3fb36e(0x11b)]=_0x4d11eb,_0x1d581d[_0x3fb36e(0x109)][_0x3fb36e(0x19d)]&&(_0x4ec58e['include']=[{'all':!![]}]),db[_0x3fb36e(0x13b)]['findAll'](_0x4ec58e);})[_0x21df81(0x199)](function(_0x187f1d){const _0x307557=_0x21df81;return _0x2a9f4d[_0x307557(0x173)]=_0x187f1d,_0x2a9f4d;});})[_0x26c5ba(0x199)](respondWithFilteredResult(_0x451106,_0x4ec58e))[_0x26c5ba(0x1a4)](handleError(_0x451106,null));},exports[a222_0x20224a(0x16b)]=function(_0x167bec,_0x35f33e){const _0x3087fa=a222_0x20224a;return db[_0x3087fa(0x187)]['findOne']({'where':{'id':_0x167bec[_0x3087fa(0x1b1)]['id']}})[_0x3087fa(0x199)](handleEntityNotFound(_0x35f33e,null))[_0x3087fa(0x199)](function(_0x3ec4ca){const _0x1197d1=_0x3087fa;if(_0x3ec4ca)return _0x3ec4ca['removeAnswers'](_0x167bec[_0x1197d1(0x109)][_0x1197d1(0x157)]);})[_0x3087fa(0x199)](respondWithStatusCode(_0x35f33e,null))[_0x3087fa(0x1a4)](handleError(_0x35f33e,null));},exports[a222_0x20224a(0x181)]=function(_0x74ab1c,_0x57fbdb){const _0x49e49a=a222_0x20224a;return db[_0x49e49a(0x192)]['findOne']({'where':{'id':_0x74ab1c['params']['id']}})[_0x49e49a(0x199)](function(_0x239ed2){const _0x21d53f=_0x49e49a;if(_0x239ed2)return _0x239ed2[_0x21d53f(0x181)](_0x74ab1c[_0x21d53f(0x152)][_0x21d53f(0x157)],{'through':_[_0x21d53f(0x167)](_0x74ab1c[_0x21d53f(0x152)],['ids','id'])});})[_0x49e49a(0x199)](respondWithResult(_0x57fbdb,null))[_0x49e49a(0x1a4)](handleError(_0x57fbdb,null));},exports[a222_0x20224a(0x12f)]=function(_0x1ba30b,_0x543d00){const _0x10024c=a222_0x20224a;let _0x523393={'raw':![],'where':{}};const _0x1124a0={},_0x5fc1b={'count':0x0,'rows':[]};return db['FaxAccount'][_0x10024c(0x15d)]({'where':{'id':_0x1ba30b[_0x10024c(0x1b1)]['id']}})[_0x10024c(0x199)](handleEntityNotFound(_0x543d00,null))[_0x10024c(0x199)](function(_0x1acce7){const _0x51c94b=_0x10024c;if(_0x1acce7)return _0x1124a0[_0x51c94b(0x153)]=_['keys'](db[_0x51c94b(0x192)][_0x51c94b(0x17d)]),_0x1124a0[_0x51c94b(0x109)]=_[_0x51c94b(0x151)](_0x1ba30b[_0x51c94b(0x109)]),_0x1124a0[_0x51c94b(0x141)]=_[_0x51c94b(0x171)](_0x1124a0[_0x51c94b(0x153)],_0x1124a0[_0x51c94b(0x109)]),_0x523393[_0x51c94b(0x138)]=_[_0x51c94b(0x171)](_0x1124a0[_0x51c94b(0x153)],qs[_0x51c94b(0x197)](_0x1ba30b[_0x51c94b(0x109)][_0x51c94b(0x197)])),_0x523393['attributes']=_0x523393[_0x51c94b(0x138)][_0x51c94b(0x170)]?_0x523393[_0x51c94b(0x138)]:_0x1124a0['model'],typeof _0x1ba30b[_0x51c94b(0x109)][_0x51c94b(0x146)]==='undefined'&&(_0x523393[_0x51c94b(0x19a)]=qs[_0x51c94b(0x19a)](_0x1ba30b[_0x51c94b(0x109)][_0x51c94b(0x19a)]),_0x523393[_0x51c94b(0x180)]=qs[_0x51c94b(0x180)](_0x1ba30b[_0x51c94b(0x109)][_0x51c94b(0x180)])),_0x523393['order']=qs[_0x51c94b(0x190)](_0x1ba30b[_0x51c94b(0x109)][_0x51c94b(0x190)]),_0x523393[_0x51c94b(0x11e)]=qs['filters'](_[_0x51c94b(0x13d)](_0x1ba30b['query'],_0x1124a0[_0x51c94b(0x141)])),_0x523393[_0x51c94b(0x11e)]['FaxAccountId']=_0x1acce7['id'],_0x1ba30b[_0x51c94b(0x109)]['filter']&&(_0x523393['where']=_[_0x51c94b(0x14b)](_0x523393['where'],{[Op['or']]:_[_0x51c94b(0x14e)](_0x523393[_0x51c94b(0x138)],function(_0x18788c){const _0x307053=_0x51c94b,_0x146a8b={};return _0x146a8b[_0x18788c]={[Op['like']]:'%'+_0x1ba30b[_0x307053(0x109)]['filter']+'%'},_0x146a8b;})})),_0x523393=_[_0x51c94b(0x14b)]({},_0x523393,_0x1ba30b[_0x51c94b(0x1a3)]),db[_0x51c94b(0x192)][_0x51c94b(0x11b)]({'where':_0x523393[_0x51c94b(0x11e)]})[_0x51c94b(0x199)](function(_0x2248f3){const _0x5adb46=_0x51c94b;return _0x5fc1b[_0x5adb46(0x11b)]=_0x2248f3,_0x1ba30b['query'][_0x5adb46(0x19d)]&&(_0x523393[_0x5adb46(0x18e)]=[{'model':db[_0x5adb46(0x10b)],'as':_0x5adb46(0x175),'required':![]},{'model':db[_0x5adb46(0x147)],'as':_0x5adb46(0x134),'attributes':['name','fullname',_0x5adb46(0x132)],'required':![]},{'model':db[_0x5adb46(0x148)],'as':'Tags','attributes':['id',_0x5adb46(0x19e),_0x5adb46(0x15e)],'where':_0x1ba30b[_0x5adb46(0x109)][_0x5adb46(0x16e)]?{'id':_0x1ba30b[_0x5adb46(0x109)]['tag']}:undefined,'required':_0x1ba30b[_0x5adb46(0x109)]['tag']?!![]:![]}]),db[_0x5adb46(0x192)][_0x5adb46(0x11f)](_0x523393);})[_0x51c94b(0x199)](function(_0x1e4aea){const _0x3879f8=_0x51c94b;return _0x5fc1b[_0x3879f8(0x173)]=_0x1e4aea,_0x5fc1b;});})[_0x10024c(0x199)](respondWithFilteredResult(_0x543d00,_0x523393))[_0x10024c(0x1a4)](handleError(_0x543d00,null));},exports[a222_0x20224a(0x16d)]=function(_0x55b031,_0x5ed29c){const _0xfea6ff=a222_0x20224a;return db[_0xfea6ff(0x187)][_0xfea6ff(0x15d)]({'where':{'id':_0x55b031[_0xfea6ff(0x1b1)]['id']}})['then'](handleEntityNotFound(_0x5ed29c,null))['then'](function(_0x4980d4){const _0x28fb19=_0xfea6ff;if(_0x4980d4)return db['sequelize']['transaction'](function(_0x48022e){const _0x3441fa=a222_0x5d9f;return db[_0x3441fa(0x129)]['destroy']({'where':{'FaxAccountId':_0x55b031[_0x3441fa(0x1b1)]['id']},'transaction':_0x48022e})[_0x3441fa(0x199)](function(){const _0x288be0=_0x3441fa,_0x5e4327=_[_0x288be0(0x14e)](_0x55b031['body'],function(_0x5aa09b){const _0x21f0ff=_0x288be0;return _0x5aa09b[_0x21f0ff(0x193)]=_0x55b031['params']['id'],_0x5aa09b;});return db[_0x288be0(0x129)][_0x288be0(0x16f)](_0x5e4327,{'transaction':_0x48022e});});})[_0x28fb19(0x199)](function(){const _0x265adb=_0x28fb19;return db['FaxApplication'][_0x265adb(0x123)]({'where':{'FaxAccountId':_0x55b031[_0x265adb(0x1b1)]['id']},'order':_0x265adb(0x126)});});})[_0xfea6ff(0x199)](respondWithResult(_0x5ed29c,null))[_0xfea6ff(0x1a4)](handleError(_0x5ed29c,null));},exports['getApplications']=function(_0x58cac4,_0x59b75){const _0x575ca7=a222_0x20224a;let _0x2259d5={};const _0x1283fa={};let _0x574562,_0xff13c7;return db[_0x575ca7(0x187)][_0x575ca7(0x15d)]({'where':{'id':_0x58cac4[_0x575ca7(0x1b1)]['id']}})[_0x575ca7(0x199)](handleEntityNotFound(_0x59b75,null))[_0x575ca7(0x199)](function(_0x14d8a3){const _0x1e7b76=_0x575ca7;if(_0x14d8a3)return _0x574562=_0x14d8a3,_0x1283fa[_0x1e7b76(0x153)]=_[_0x1e7b76(0x151)](db[_0x1e7b76(0x129)][_0x1e7b76(0x17d)]),_0x1283fa[_0x1e7b76(0x109)]=_[_0x1e7b76(0x151)](_0x58cac4[_0x1e7b76(0x109)]),_0x1283fa[_0x1e7b76(0x141)]=_[_0x1e7b76(0x171)](_0x1283fa['model'],_0x1283fa['query']),_0x2259d5[_0x1e7b76(0x138)]=_[_0x1e7b76(0x171)](_0x1283fa['model'],qs[_0x1e7b76(0x197)](_0x58cac4[_0x1e7b76(0x109)][_0x1e7b76(0x197)])),_0x2259d5[_0x1e7b76(0x138)]=_0x2259d5[_0x1e7b76(0x138)][_0x1e7b76(0x170)]?_0x2259d5[_0x1e7b76(0x138)]:_0x1283fa['model'],_0x2259d5[_0x1e7b76(0x1a5)]=qs['sort'](_0x58cac4[_0x1e7b76(0x109)]['sort']),_0x2259d5[_0x1e7b76(0x11e)]=qs[_0x1e7b76(0x141)](_['pick'](_0x58cac4['query'],_0x1283fa[_0x1e7b76(0x141)])),_0x58cac4[_0x1e7b76(0x109)][_0x1e7b76(0x1b2)]&&(_0x2259d5[_0x1e7b76(0x11e)]=_[_0x1e7b76(0x14b)](_0x2259d5[_0x1e7b76(0x11e)],{[Op['or']]:_[_0x1e7b76(0x14e)](_0x2259d5[_0x1e7b76(0x138)],function(_0x212662){const _0x4bc271=_0x1e7b76,_0x38befd={};return _0x38befd[_0x212662]={[Op['like']]:'%'+_0x58cac4[_0x4bc271(0x109)]['filter']+'%'},_0x38befd;})})),_0x2259d5=_[_0x1e7b76(0x14b)]({},_0x2259d5,_0x58cac4[_0x1e7b76(0x1a3)]),_0x574562[_0x1e7b76(0x107)](_0x2259d5);})['then'](function(_0x528577){const _0x1953af=_0x575ca7;if(_0x528577)return _0xff13c7=_0x528577[_0x1953af(0x170)],typeof _0x58cac4[_0x1953af(0x109)]['nolimit']==='undefined'&&(_0x2259d5[_0x1953af(0x19a)]=qs[_0x1953af(0x19a)](_0x58cac4['query'][_0x1953af(0x19a)]),_0x2259d5[_0x1953af(0x180)]=qs[_0x1953af(0x180)](_0x58cac4[_0x1953af(0x109)][_0x1953af(0x180)])),_0x574562['getApplications'](_0x2259d5);})[_0x575ca7(0x199)](function(_0x42556b){if(_0x42556b)return _0x42556b?{'count':_0xff13c7,'rows':_0x42556b}:null;})[_0x575ca7(0x199)](respondWithResult(_0x59b75,null))[_0x575ca7(0x1a4)](handleError(_0x59b75,null));};function Extension(_0x1c594e,_0x219898,_0x1928d1,_0x5ac366){const _0x16e025=a222_0x20224a;this[_0x16e025(0x120)]=_0x16e025(0x12c),this['exten']=_0x1c594e[_0x16e025(0x168)],this['app']=_0x5ac366,this['type']=_0x16e025(0x143),this[_0x16e025(0x121)]=_0x16e025(0x196),this[_0x16e025(0x193)]=_0x1c594e['id'],this['priority']=_0x219898,this[_0x16e025(0x179)]=_0x1928d1;}function createExtensionsReciveFax(_0x3d8a15){const _0x3aea14=a222_0x20224a;let _0x5905a1=0x1;const _0x87d788=[];_0x87d788[_0x3aea14(0x195)](new Extension(_0x3d8a15,_0x5905a1,'',_0x3aea14(0x1af))),_0x5905a1+=0x1,_0x87d788[_0x3aea14(0x195)](new Extension(_0x3d8a15,_0x5905a1,_0x3aea14(0x189),_0x3aea14(0x183))),_0x5905a1+=0x1;for(const _0x29757b in _0x3d8a15){typeof _0x3d8a15[_0x29757b]!==_0x3aea14(0x10f)&&(_0x29757b===_0x3aea14(0x1b3)||_0x29757b===_0x3aea14(0x168)||_0x29757b===_0x3aea14(0x1ac)||_0x29757b===_0x3aea14(0x1a9)||_0x29757b===_0x3aea14(0x140)||_0x29757b===_0x3aea14(0x17b)||_0x29757b===_0x3aea14(0x1b9)||_0x29757b===_0x3aea14(0x125)||_0x29757b===_0x3aea14(0x110))&&(_0x87d788[_0x3aea14(0x195)](new Extension(_0x3d8a15,_0x5905a1,_0x3aea14(0x122)+_0x29757b+')='+_0x3d8a15[_0x29757b],'Set')),_0x5905a1+=0x1);}return _0x87d788[_0x3aea14(0x195)](new Extension(_0x3d8a15,_0x5905a1,'6',_0x3aea14(0x172))),_0x5905a1+=0x1,_0x87d788[_0x3aea14(0x195)](new Extension(_0x3d8a15,_0x5905a1,_0x3aea14(0x139),_0x3aea14(0x1b4))),_0x5905a1=0x0,_0x87d788;}exports[a222_0x20224a(0x111)]=function(_0x2734a2,_0x17829a){const _0x1c4d31=a222_0x20224a;let _0x4dfd88;return db['sequelize'][_0x1c4d31(0x12a)](function(_0x115a47){const _0x5e6eb2=_0x1c4d31;return db[_0x5e6eb2(0x187)][_0x5e6eb2(0x13f)](_0x2734a2[_0x5e6eb2(0x152)],{'transaction':_0x115a47})[_0x5e6eb2(0x199)](function(_0x41c33f){const _0x2ccab5=_0x5e6eb2;return _0x4dfd88=_0x41c33f['get']({'plain':!![]}),db[_0x2ccab5(0x1a0)][_0x2ccab5(0x16f)](createExtensionsReciveFax(_0x4dfd88),{'transaction':_0x115a47});});})[_0x1c4d31(0x199)](function(){return _0x4dfd88;})[_0x1c4d31(0x199)](respondWithResult(_0x17829a,null))[_0x1c4d31(0x1a4)](handleError(_0x17829a,null));},exports['updateAccountApplications']=function(_0xf2bf68,_0x3b5f99){const _0x100b57=a222_0x20224a;return db['sequelize'][_0x100b57(0x12a)](function(_0x58f552){const _0x5d48e4=_0x100b57;return db[_0x5d48e4(0x187)][_0x5d48e4(0x133)](_0xf2bf68[_0x5d48e4(0x152)],{'where':{'id':_0xf2bf68[_0x5d48e4(0x152)]['id']},'transaction':_0x58f552})['then'](function(){const _0x174dd8=_0x5d48e4;return db['VoiceExtension'][_0x174dd8(0x15b)]({'where':{'FaxAccountId':_0xf2bf68['body']['id']},'transaction':_0x58f552})['then'](function(){const _0x193e2c=_0x174dd8;return db['VoiceExtension'][_0x193e2c(0x16f)](createExtensionsReciveFax(_[_0x193e2c(0x167)](_0xf2bf68[_0x193e2c(0x152)],[_0x193e2c(0x15f),_0x193e2c(0x18f),'createdAt',_0x193e2c(0x15c),_0x193e2c(0x162),'ListId'])),{'transaction':_0x58f552});});});})['then'](function(){const _0x459211=_0x100b57;return db[_0x459211(0x187)][_0x459211(0x1b6)](_0xf2bf68[_0x459211(0x152)]['id']);})[_0x100b57(0x199)](respondWithResult(_0x3b5f99,null))[_0x100b57(0x1a4)](handleError(_0x3b5f99,null));},exports[a222_0x20224a(0x159)]=function(_0x2d86ae,_0x44ab5a){const _0x5d791b=a222_0x20224a;let _0xba52f1={'raw':!![],'where':{}};const _0x20cf23={},_0x409bf0={'count':0x0,'rows':[]};return db['FaxAccount'][_0x5d791b(0x15d)]({'where':{'id':_0x2d86ae['params']['id']}})[_0x5d791b(0x199)](handleEntityNotFound(_0x44ab5a,null))[_0x5d791b(0x199)](function(_0x1c8ae6){const _0x3aa364=_0x5d791b;if(_0x1c8ae6){_0x20cf23['model']=_[_0x3aa364(0x151)](db[_0x3aa364(0x18a)][_0x3aa364(0x17d)]),_0x20cf23['query']=_[_0x3aa364(0x151)](_0x2d86ae[_0x3aa364(0x109)]),_0x20cf23['filters']=_['intersection'](_0x20cf23['model'],_0x20cf23['query']),_0xba52f1['attributes']=_['intersection'](_0x20cf23[_0x3aa364(0x153)],qs[_0x3aa364(0x197)](_0x2d86ae['query'][_0x3aa364(0x197)])),_0xba52f1[_0x3aa364(0x138)]=_0xba52f1[_0x3aa364(0x138)][_0x3aa364(0x170)]?_0xba52f1['attributes']:_0x20cf23['model'];typeof _0x2d86ae['query'][_0x3aa364(0x146)]==='undefined'&&(_0xba52f1[_0x3aa364(0x19a)]=qs[_0x3aa364(0x19a)](_0x2d86ae[_0x3aa364(0x109)][_0x3aa364(0x19a)]),_0xba52f1[_0x3aa364(0x180)]=qs[_0x3aa364(0x180)](_0x2d86ae[_0x3aa364(0x109)][_0x3aa364(0x180)]));_0xba52f1[_0x3aa364(0x1a5)]=qs[_0x3aa364(0x190)](_0x2d86ae[_0x3aa364(0x109)][_0x3aa364(0x190)]),_0xba52f1[_0x3aa364(0x11e)]=qs[_0x3aa364(0x141)](_[_0x3aa364(0x13d)](_0x2d86ae[_0x3aa364(0x109)],_0x20cf23[_0x3aa364(0x141)])),_0xba52f1[_0x3aa364(0x11e)][_0x3aa364(0x193)]=_0x1c8ae6['id'];_0x2d86ae[_0x3aa364(0x109)][_0x3aa364(0x1b2)]&&(_0xba52f1[_0x3aa364(0x11e)]=_[_0x3aa364(0x14b)](_0xba52f1['where'],{[Op['or']]:_[_0x3aa364(0x14e)](_0xba52f1[_0x3aa364(0x138)],function(_0x16b3cf){const _0x4e84c1=_0x3aa364,_0x5ca56f={};return _0x5ca56f[_0x16b3cf]={[Op['like']]:'%'+_0x2d86ae[_0x4e84c1(0x109)][_0x4e84c1(0x1b2)]+'%'},_0x5ca56f;})}));if(_0x2d86ae[_0x3aa364(0x109)][_0x3aa364(0x10c)]){const _0x475f6a=_0x2d86ae[_0x3aa364(0x109)][_0x3aa364(0x10c)][_0x3aa364(0x12d)](','),_0x414ea3={};_0x414ea3[_0x475f6a[0x0]]={[Op[_0x3aa364(0x128)]]:moment(_0x475f6a[0x1])[_0x3aa364(0x1aa)](_0x3aa364(0x166))},_0xba52f1[_0x3aa364(0x11e)]=_[_0x3aa364(0x14b)](_0xba52f1[_0x3aa364(0x11e)],_0x414ea3);}return _0xba52f1=_[_0x3aa364(0x14b)]({},_0xba52f1,_0x2d86ae[_0x3aa364(0x1a3)]),db[_0x3aa364(0x18a)][_0x3aa364(0x11b)]({'where':_0xba52f1[_0x3aa364(0x11e)]})[_0x3aa364(0x199)](function(_0x44aead){const _0x56ac21=_0x3aa364;return _0x409bf0['count']=_0x44aead,_0x2d86ae[_0x56ac21(0x109)][_0x56ac21(0x19d)]&&(_0xba52f1['include']=[{'all':!![]}]),db['FaxMessage'][_0x56ac21(0x11f)](_0xba52f1);})[_0x3aa364(0x199)](function(_0x445522){const _0x22b086=_0x3aa364;return _0x409bf0[_0x22b086(0x173)]=_0x445522,_0x409bf0;});}})[_0x5d791b(0x199)](respondWithFilteredResult(_0x44ab5a,_0xba52f1))[_0x5d791b(0x1a4)](handleError(_0x44ab5a,null));},exports[a222_0x20224a(0x135)]=function(_0x338a5b,_0x40c24f){const _0xcaf7c6=a222_0x20224a;let _0x49eac6,_0x294c8f;return _0x338a5b[_0xcaf7c6(0x152)]['to']&&(_0x294c8f=_0x338a5b[_0xcaf7c6(0x152)]['to'][0x0]),db[_0xcaf7c6(0x187)][_0xcaf7c6(0x15d)]({'where':{'id':_0x338a5b['params']['id']},'include':[{'model':db[_0xcaf7c6(0x137)],'as':'List','include':[{'model':db[_0xcaf7c6(0x10b)],'as':_0xcaf7c6(0x11a),'where':{'fax':_0x294c8f},'limit':0x1,'order':[[_0xcaf7c6(0x15c),_0xcaf7c6(0x158)]]}]}]})[_0xcaf7c6(0x199)](handleEntityNotFound(_0x40c24f,null))['then'](function(_0x1b3a2a){const _0x334980=_0xcaf7c6;_0x49eac6=_0x1b3a2a;if(_0x338a5b[_0x334980(0x152)][_0x334980(0x1a1)]&&_0x338a5b[_0x334980(0x152)][_0x334980(0x1a1)][_0x334980(0x170)])for(let _0xbc76d=0x0;_0xbc76d<_0x338a5b[_0x334980(0x152)][_0x334980(0x1a1)]['length'];_0xbc76d+=0x1){_0x338a5b[_0x334980(0x152)][_0x334980(0x1a1)][_0xbc76d]={'filename':_0x338a5b['body']['attachments'][_0xbc76d][_0x334980(0x19e)],'id':_0x338a5b[_0x334980(0x152)][_0x334980(0x1a1)][_0xbc76d]['id'],'path':path[_0x334980(0x1a6)](config[_0x334980(0x131)],_0x334980(0x136),_0x338a5b[_0x334980(0x152)][_0x334980(0x1a1)][_0xbc76d]['basename'])};}return respondWithRpcPromise('CheckAfterSend','CheckAfterSend',{'FaxAccountId':_[_0x334980(0x18c)](_0x338a5b[_0x334980(0x1b1)]['id'])?undefined:_0x338a5b[_0x334980(0x1b1)]['id'],'path':_['isNil'](_0x338a5b[_0x334980(0x152)][_0x334980(0x1a1)][0x0][_0x334980(0x182)])?undefined:_0x338a5b[_0x334980(0x152)][_0x334980(0x1a1)][0x0][_0x334980(0x182)],'fax':_[_0x334980(0x18c)](_0x338a5b['body']['to'][0x0])?undefined:_0x338a5b[_0x334980(0x152)]['to'][0x0]},client9002);})[_0xcaf7c6(0x199)](function(){const _0x1fd2f3=_0xcaf7c6;if(_0x49eac6){_[_0x1fd2f3(0x18c)](_0x338a5b[_0x1fd2f3(0x152)]['from'])&&(_0x338a5b[_0x1fd2f3(0x152)][_0x1fd2f3(0x10a)]=util[_0x1fd2f3(0x1aa)](_0x1fd2f3(0x165),_0x49eac6['name'],_0x49eac6[_0x1fd2f3(0x17e)]));if(_0x49eac6[_0x1fd2f3(0x184)])return _0x49eac6[_0x1fd2f3(0x184)]['Contacts'][_0x1fd2f3(0x170)]?_0x49eac6[_0x1fd2f3(0x184)]['Contacts'][0x0]:db[_0x1fd2f3(0x10b)][_0x1fd2f3(0x13f)](_[_0x1fd2f3(0x1ab)](_0x338a5b[_0x1fd2f3(0x152)],{'firstName':_0x338a5b[_0x1fd2f3(0x152)]['to'][0x0],'phone':_0x338a5b['body']['to'][0x0],'fax':_0x338a5b[_0x1fd2f3(0x152)]['to'][0x0],'ListId':_0x49eac6[_0x1fd2f3(0x118)]}));else throw new Error(_0x1fd2f3(0x13a));}else throw new Error('Send\x20Fax\x20failed');})[_0xcaf7c6(0x199)](function(_0x4402f3){const _0x4093dd=_0xcaf7c6;if(_0x4402f3)return db[_0x4093dd(0x192)][_0x4093dd(0x15d)]({'where':{'ContactId':_0x4402f3['id'],'closed':![],'FaxAccountId':_0x49eac6['id']}})[_0x4093dd(0x199)](function(_0x5bb2e0){const _0x10635a=_0x4093dd;if(_0x5bb2e0)return[_0x5bb2e0,![]];return db[_0x10635a(0x192)]['create']({'UserId':_0x338a5b[_0x10635a(0x145)]['id'],'ContactId':_0x4402f3['id'],'FaxAccountId':_0x49eac6['id'],'fax':_0x338a5b[_0x10635a(0x152)]['to'][0x0],'firstMsgDirection':'out','Messages':[_[_0x10635a(0x14b)](_0x338a5b[_0x10635a(0x152)],{'read':![],'body':_0x338a5b[_0x10635a(0x152)][_0x10635a(0x1a1)][0x0][_0x10635a(0x176)],'FaxAccountId':_0x49eac6['id'],'UserId':_0x338a5b[_0x10635a(0x145)]['id'],'ContactId':_0x4402f3['id'],'AttachmentId':_0x338a5b[_0x10635a(0x152)][_0x10635a(0x1a1)][0x0]['id']})]},{'include':[{'model':db[_0x10635a(0x18a)],'as':_0x10635a(0x154)}]})[_0x10635a(0x199)](function(_0x39d152){return[_0x39d152,!![]];});});else throw new Error(_0x4093dd(0x188));})[_0xcaf7c6(0x199)](function([_0x1baaf8,_0x52c75e]){const _0x17a8c7=_0xcaf7c6;if(_0x52c75e)return _0x1baaf8;return db[_0x17a8c7(0x18a)][_0x17a8c7(0x13f)]({'direction':_0x17a8c7(0x142),'read':![],'body':_0x338a5b[_0x17a8c7(0x152)]['attachments'][0x0][_0x17a8c7(0x176)],'FaxAccountId':_0x49eac6['id'],'FaxInteractionId':_0x1baaf8['id'],'UserId':_0x338a5b['user']['id'],'ContactId':_0x1baaf8[_0x17a8c7(0x16a)],'AttachmentId':_0x338a5b[_0x17a8c7(0x152)][_0x17a8c7(0x1a1)][0x0]['id']})[_0x17a8c7(0x199)](function(_0x4b5911){const _0x50deff=_0x17a8c7;return _0x1baaf8[_0x50deff(0x15a)][_0x50deff(0x154)]=[],_0x1baaf8[_0x50deff(0x15a)]['Messages'][_0x50deff(0x195)](_0x4b5911[_0x50deff(0x15a)]),_0x1baaf8;});})[_0xcaf7c6(0x199)](function(_0x2dffde){const _0xd9272=_0xcaf7c6;return respondWithRpcPromise(_0xd9272(0x161),'SendFax',{'FaxAccountId':_[_0xd9272(0x18c)](_0x338a5b['params']['id'])?undefined:_0x338a5b[_0xd9272(0x1b1)]['id'],'path':_[_0xd9272(0x18c)](_0x338a5b[_0xd9272(0x152)][_0xd9272(0x1a1)][0x0][_0xd9272(0x182)])?undefined:_0x338a5b[_0xd9272(0x152)]['attachments'][0x0][_0xd9272(0x182)],'fax':_[_0xd9272(0x18c)](_0x338a5b[_0xd9272(0x152)]['to'][0x0])?undefined:_0x338a5b[_0xd9272(0x152)]['to'][0x0],'AttachmentId':_0x338a5b[_0xd9272(0x152)][_0xd9272(0x1a1)][0x0]['id']},client9002)[_0xd9272(0x199)](function(_0x33f8f4){logger['info']('SendFaxRpc,\x20%s',_0x33f8f4);})['catch'](function(_0x12ae24){const _0x102615=_0xd9272;logger[_0x102615(0x127)](_0x102615(0x119),_0x12ae24);}),_0x2dffde;})['then'](respondWithResult(_0x40c24f,null))[_0xcaf7c6(0x1a4)](handleError(_0x40c24f,null));},exports[a222_0x20224a(0x13c)]=function(_0x5f435a,_0x419662){const _0x3ef7e8=a222_0x20224a;return db[_0x3ef7e8(0x187)][_0x3ef7e8(0x15d)]({'where':{'id':_0x5f435a[_0x3ef7e8(0x1b1)]['id']}})['then'](function(_0x54d370){const _0x2621d0=_0x3ef7e8;if(_0x54d370)return _0x54d370[_0x2621d0(0x13c)](_0x5f435a[_0x2621d0(0x152)][_0x2621d0(0x157)],{'through':_[_0x2621d0(0x167)](_0x5f435a[_0x2621d0(0x152)],[_0x2621d0(0x157),'id'])})[_0x2621d0(0x199)](function(_0x36f68d){const _0x3e352c=_0x2621d0;for(let _0x13767f=0x0;_0x13767f<_0x5f435a['body']['ids'][_0x3e352c(0x170)];_0x13767f+=0x1){socket[_0x3e352c(0x144)](_0x3e352c(0x198),{'UserId':_0x5f435a[_0x3e352c(0x152)][_0x3e352c(0x157)][_0x13767f],'FaxAccountId':_0x5f435a[_0x3e352c(0x1b1)]['id']});}return _0x36f68d;});})[_0x3ef7e8(0x199)](respondWithResult(_0x419662,null))[_0x3ef7e8(0x1a4)](handleError(_0x419662,null));},exports[a222_0x20224a(0x19b)]=function(_0x126d82,_0x4825c3){const _0x41a19c=a222_0x20224a;return db[_0x41a19c(0x187)][_0x41a19c(0x15d)]({'where':{'id':_0x126d82['params']['id']}})['then'](handleEntityNotFound(_0x4825c3,null))[_0x41a19c(0x199)](function(_0x3dc8b6){const _0x7c7203=_0x41a19c;if(_0x3dc8b6)return _0x3dc8b6[_0x7c7203(0x19b)](_0x126d82[_0x7c7203(0x109)][_0x7c7203(0x157)])[_0x7c7203(0x199)](function(){const _0x299f04=_0x7c7203;if(_[_0x299f04(0x174)](_0x126d82['query'][_0x299f04(0x157)]))for(let _0x4d2b84=0x0;_0x4d2b84<_0x126d82['query']['ids'][_0x299f04(0x170)];_0x4d2b84+=0x1){socket[_0x299f04(0x144)](_0x299f04(0x112),{'UserId':Number(_0x126d82['query'][_0x299f04(0x157)][_0x4d2b84]),'FaxAccountId':Number(_0x126d82['params']['id'])});}else socket[_0x299f04(0x144)](_0x299f04(0x112),{'UserId':Number(_0x126d82[_0x299f04(0x109)][_0x299f04(0x157)]),'FaxAccountId':Number(_0x126d82['params']['id'])});});})[_0x41a19c(0x199)](respondWithStatusCode(_0x4825c3,null))[_0x41a19c(0x1a4)](handleError(_0x4825c3,null));},exports[a222_0x20224a(0x150)]=function(_0x4d6eb0,_0x15e564){const _0x3d107f=a222_0x20224a;let _0x7e69fa={};const _0x49cad1={};let _0x6edda1,_0x2cc975;return db['FaxAccount'][_0x3d107f(0x15d)]({'where':{'id':_0x4d6eb0[_0x3d107f(0x1b1)]['id']}})[_0x3d107f(0x199)](handleEntityNotFound(_0x15e564,null))[_0x3d107f(0x199)](function(_0x3f251a){const _0x115db0=_0x3d107f;if(_0x3f251a)return _0x6edda1=_0x3f251a,_0x49cad1[_0x115db0(0x153)]=_[_0x115db0(0x151)](db[_0x115db0(0x147)][_0x115db0(0x17d)]),_0x49cad1['query']=_[_0x115db0(0x151)](_0x4d6eb0['query']),_0x49cad1[_0x115db0(0x141)]=_[_0x115db0(0x171)](_0x49cad1['model'],_0x49cad1[_0x115db0(0x109)]),_0x7e69fa[_0x115db0(0x138)]=_[_0x115db0(0x171)](_0x49cad1[_0x115db0(0x153)],qs[_0x115db0(0x197)](_0x4d6eb0['query'][_0x115db0(0x197)])),_0x7e69fa[_0x115db0(0x138)]=_0x7e69fa[_0x115db0(0x138)][_0x115db0(0x170)]?_0x7e69fa[_0x115db0(0x138)]:_0x49cad1['model'],_0x7e69fa[_0x115db0(0x1a5)]=qs['sort'](_0x4d6eb0[_0x115db0(0x109)][_0x115db0(0x190)]),_0x7e69fa['where']=qs[_0x115db0(0x141)](_[_0x115db0(0x13d)](_0x4d6eb0[_0x115db0(0x109)],_0x49cad1[_0x115db0(0x141)])),_0x4d6eb0[_0x115db0(0x109)][_0x115db0(0x1b2)]&&(_0x7e69fa[_0x115db0(0x11e)]=_['merge'](_0x7e69fa['where'],{[Op['or']]:_['map'](_0x7e69fa[_0x115db0(0x138)],function(_0x251cc3){const _0x463342=_0x115db0,_0x2a0729={};return _0x2a0729[_0x251cc3]={[Op[_0x463342(0x19f)]]:'%'+_0x4d6eb0[_0x463342(0x109)][_0x463342(0x1b2)]+'%'},_0x2a0729;})})),_0x7e69fa=_['merge']({},_0x7e69fa,_0x4d6eb0[_0x115db0(0x1a3)]),_0x6edda1[_0x115db0(0x150)](_0x7e69fa);})[_0x3d107f(0x199)](function(_0x1425fe){const _0x3df4d0=_0x3d107f;if(_0x1425fe)return _0x2cc975=_0x1425fe[_0x3df4d0(0x170)],typeof _0x4d6eb0[_0x3df4d0(0x109)][_0x3df4d0(0x146)]===_0x3df4d0(0x10f)&&(_0x7e69fa[_0x3df4d0(0x19a)]=qs[_0x3df4d0(0x19a)](_0x4d6eb0['query'][_0x3df4d0(0x19a)]),_0x7e69fa[_0x3df4d0(0x180)]=qs[_0x3df4d0(0x180)](_0x4d6eb0['query'][_0x3df4d0(0x180)])),_0x6edda1[_0x3df4d0(0x150)](_0x7e69fa);})[_0x3d107f(0x199)](function(_0x347755){if(_0x347755)return _0x347755?{'count':_0x2cc975,'rows':_0x347755}:null;})[_0x3d107f(0x199)](respondWithResult(_0x15e564,null))[_0x3d107f(0x1a4)](handleError(_0x15e564,null));}; \ No newline at end of file +const a222_0x22f9=['debug','removeAnswers','attributes','findOne','options','include','../../config/logger','stringify','root','count','findByPk','mandatoryDispositionPause','../../rediscache','offset','VoiceExtension','rows','SendFaxRpc,\x20%s','lodash','createdAt','includeAll','FaxApplication','/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','CmList','ContactId','Pause','tech','basename','catch','server/files/attachments','userFaxAccount:remove','filter','then','rawAttributes','color','attachments','Tag','List','from','omit','FaxAccount,\x20%s,\x20%s,\x20%s','Content-Range','key','show','map','pick','gte','sequelize','findAndCountAll','ids','UserProfileSection','getInteractions','FaxAccount','DESC','code','$gte','merge','isArray','name','end','sort','YYYY-MM-DD\x20HH:mm:ss','from-voip-provider','CDR(type)=inbound-fax','query','request','FaxAccounts','system','app','addInteraction','get','addAgents','exten','context','Contact\x20not\x20found','Send\x20Fax\x20failed','user','send','out','FaxInteraction','update','moment','FaxMessage','Contact','json','isNil','register','client','Contacts','join','params','where','filename','filters','error','Set','emit','result','User','format','CheckAfterSend','bulkCreate','order','request\x20sent','model','dataValues','transaction','removeDispositions','nolimit','undefined','like','stack','faxdetect','limit','ListId','autoAssociation','getApplications','FAXOPT(','push','SendFax','Unable\x20to\x20retrieve\x20the\x20current\x20user','intersection','length','path','ReceiveFax','./faxAccount.socket','priority','CannedAnswer','defaults','CmContact','role','getAgents','TrunkId','info','Wait','fields','body','Owner','type','maxrate','removeAgents','create','status','findAll','addApplications','Messages','ecm','description','keys','headerinfo','getDispositions','set','../../config/environment','destroy','userFaxAccount:save','FaxAccount,\x20%s,\x20%s','tag','Tags','addAnswer','http','fax','message','gateway','fullname','sendStatus','List\x20not\x20found','FaxAccountId','../../components/parsers/qs','updatedAt','getMessages','internal','describe','Disposition','addDisposition'];(function(_0x515b96,_0x653a17){const _0x22f982=function(_0x1c8ca7){while(--_0x1c8ca7){_0x515b96['push'](_0x515b96['shift']());}};_0x22f982(++_0x653a17);}(a222_0x22f9,0xd4));const a222_0x1c8c=function(_0x515b96,_0x653a17){_0x515b96=_0x515b96-0x1b0;let _0x22f982=a222_0x22f9[_0x515b96];return _0x22f982;};const a222_0x1c105d=a222_0x1c8c;'use strict';const moment=require(a222_0x1c105d(0x1d9)),util=require('util'),path=require('path'),_=require(a222_0x1c105d(0x247)),{getSocket}=require(a222_0x1c105d(0x242)),socket=getSocket(),qs=require(a222_0x1c105d(0x22f)),logger=require(a222_0x1c105d(0x23c))('api'),config=require(a222_0x1c105d(0x220)),{db}=require('../../mysqldb'),{Op}=require(a222_0x1c105d(0x1b7));require(a222_0x1c105d(0x205))[a222_0x1c105d(0x1de)](socket);const jayson=require('jayson/promise'),client=jayson[a222_0x1c105d(0x1df)]['http']({'port':0x232c}),client9002=jayson['client'][a222_0x1c105d(0x227)]({'port':0x232a});function respondWithRpcPromise(_0x55123e,_0x5ca740,_0x52c3ca,_0x35cc58){return new Promise(function(_0x5b6656,_0x5c93de){const _0x8ac1bd=a222_0x1c8c,_0x587f9c=_0x35cc58||client;return _0x587f9c[_0x8ac1bd(0x1c9)](_0x55123e,_0x52c3ca)[_0x8ac1bd(0x255)](function(_0x164e8b){const _0xc646c5=_0x8ac1bd;logger[_0xc646c5(0x20d)](_0xc646c5(0x223),_0x5ca740,_0xc646c5(0x1ef)),logger[_0xc646c5(0x236)](_0xc646c5(0x1b0),_0x5ca740,_0xc646c5(0x1ef),JSON[_0xc646c5(0x23d)](_0x164e8b));if(_0x164e8b['error']){if(_0x164e8b['error'][_0xc646c5(0x1be)]===0x1f4)return logger[_0xc646c5(0x1e6)]('FaxAccount,\x20%s,\x20%s',_0x5ca740,_0x164e8b[_0xc646c5(0x1e6)][_0xc646c5(0x229)]),_0x5c93de(_0x164e8b[_0xc646c5(0x1e6)]['message']);return logger[_0xc646c5(0x1e6)](_0xc646c5(0x223),_0x5ca740,_0x164e8b[_0xc646c5(0x1e6)][_0xc646c5(0x229)]),_0x5b6656(_0x164e8b[_0xc646c5(0x1e6)][_0xc646c5(0x229)]);}else logger[_0xc646c5(0x20d)](_0xc646c5(0x223),_0x5ca740,_0xc646c5(0x1ef)),_0x5b6656(_0x164e8b[_0xc646c5(0x1e9)][_0xc646c5(0x229)]);})[_0x8ac1bd(0x251)](function(_0x5753ae){const _0x339ad6=_0x8ac1bd;logger['error'](_0x339ad6(0x223),_0x5ca740,_0x5753ae),_0x5c93de(_0x5753ae);});});}function respondWithStatusCode(_0x455f32,_0x6d826e){return _0x6d826e=_0x6d826e||0xcc,function(_0x195470){const _0x330f4e=a222_0x1c8c;if(_0x195470)return _0x455f32[_0x330f4e(0x22c)](_0x6d826e);return _0x455f32[_0x330f4e(0x216)](_0x6d826e)[_0x330f4e(0x1c3)]();};}function respondWithResult(_0x475c6f,_0x57d527){return _0x57d527=_0x57d527||0xc8,function(_0xa45c90){const _0x50e282=a222_0x1c8c;if(_0xa45c90)return _0x475c6f['status'](_0x57d527)[_0x50e282(0x1dc)](_0xa45c90);};}function respondWithFilteredResult(_0xaf4d73,_0x4c177e){return function(_0x5642c6){const _0x85fbf=a222_0x1c8c;if(_0x5642c6){const _0x513af3=_0x5642c6[_0x85fbf(0x23f)],_0x4bc94e=_0x4c177e[_0x85fbf(0x243)];let _0x337cb8=_0x4c177e[_0x85fbf(0x243)]+_0x4c177e[_0x85fbf(0x1f9)],_0x1e2a33;return _0x337cb8>=_0x513af3?(_0x337cb8=_0x513af3,_0x1e2a33=0xc8):_0x1e2a33=0xce,_0xaf4d73['status'](_0x1e2a33),_0xaf4d73[_0x85fbf(0x21f)](_0x85fbf(0x1b1),_0x4bc94e+'-'+_0x337cb8+'/'+_0x513af3)[_0x85fbf(0x1dc)](_0x5642c6);}return null;};}function saveUpdates(_0x3c7005){return function(_0x11812a){const _0xfcec0f=a222_0x1c8c;if(_0x11812a)return _0x11812a[_0xfcec0f(0x1d8)](_0x3c7005)[_0xfcec0f(0x255)](function(_0x5690ca){return _0x5690ca;});return null;};}function removeEntity(_0x17b258){return function(_0x19e6ed){const _0xff5608=a222_0x1c8c;if(_0x19e6ed)return _0x19e6ed['destroy']()[_0xff5608(0x255)](function(){const _0x44b96f=_0xff5608,_0x56a6b4=_0x19e6ed[_0x44b96f(0x1ce)]({'plain':!![]}),_0x570f99=_0x44b96f(0x1ca);return db['UserProfileResource'][_0x44b96f(0x221)]({'where':{'type':_0x570f99,'resourceId':_0x56a6b4['id']}})[_0x44b96f(0x255)](function(){return _0x19e6ed;});})['then'](function(){const _0x19ef48=_0xff5608;_0x17b258[_0x19ef48(0x216)](0xcc)[_0x19ef48(0x1c3)]();});};}function handleEntityNotFound(_0x4736f9){return function(_0x4574d9){const _0x3876b9=a222_0x1c8c;return!_0x4574d9&&_0x4736f9[_0x3876b9(0x22c)](0x194),_0x4574d9;};}function handleError(_0x2d8c83,_0x48aa45){return _0x48aa45=_0x48aa45||0x1f4,function(_0x4fb3d4){const _0x1a7d01=a222_0x1c8c;logger[_0x1a7d01(0x1e6)](_0x4fb3d4[_0x1a7d01(0x1f7)]),_0x4fb3d4['name']&&delete _0x4fb3d4['name'],_0x2d8c83['status'](_0x48aa45)[_0x1a7d01(0x1d5)](_0x4fb3d4);};}exports['index']=function(_0x4663f2,_0x37e346){const _0x21e5fc=a222_0x1c105d;let _0x49d66a={'include':[{'model':db[_0x21e5fc(0x24e)],'as':_0x21e5fc(0x241)}]};const _0xbb4e50={},_0x82ff9c={'count':0x0,'rows':[]},_0xc9b4f0=_[_0x21e5fc(0x1b4)](db['FaxAccount'][_0x21e5fc(0x256)],function(_0x591766){const _0x35d4fc=_0x21e5fc;return{'name':_0x591766['fieldName'],'type':_0x591766[_0x35d4fc(0x212)]['key']};});_0xbb4e50['model']=_[_0x21e5fc(0x1b4)](_0xc9b4f0,'name'),_0xbb4e50['query']=_[_0x21e5fc(0x21c)](_0x4663f2[_0x21e5fc(0x1c8)]),_0xbb4e50[_0x21e5fc(0x1e5)]=_[_0x21e5fc(0x201)](_0xbb4e50['model'],_0xbb4e50[_0x21e5fc(0x1c8)]),_0x49d66a[_0x21e5fc(0x238)]=_[_0x21e5fc(0x201)](_0xbb4e50[_0x21e5fc(0x1f0)],qs['fields'](_0x4663f2[_0x21e5fc(0x1c8)][_0x21e5fc(0x20f)])),_0x49d66a[_0x21e5fc(0x238)]=_0x49d66a['attributes'][_0x21e5fc(0x202)]?_0x49d66a[_0x21e5fc(0x238)]:_0xbb4e50[_0x21e5fc(0x1f0)];typeof _0x4663f2[_0x21e5fc(0x1c8)][_0x21e5fc(0x1f4)]===_0x21e5fc(0x1f5)&&(_0x49d66a[_0x21e5fc(0x1f9)]=qs['limit'](_0x4663f2[_0x21e5fc(0x1c8)]['limit']),_0x49d66a[_0x21e5fc(0x243)]=qs[_0x21e5fc(0x243)](_0x4663f2[_0x21e5fc(0x1c8)]['offset']));_0x49d66a[_0x21e5fc(0x1ee)]=qs['sort'](_0x4663f2['query'][_0x21e5fc(0x1c4)]),_0x49d66a['where']=qs['filters'](_['pick'](_0x4663f2[_0x21e5fc(0x1c8)],_0xbb4e50[_0x21e5fc(0x1e5)]),_0xc9b4f0);_0x4663f2[_0x21e5fc(0x1c8)]['filter']&&(_0x49d66a[_0x21e5fc(0x1e3)]=_[_0x21e5fc(0x1c0)](_0x49d66a[_0x21e5fc(0x1e3)],{[Op['or']]:_[_0x21e5fc(0x1b4)](_0xc9b4f0,function(_0x3896ae){const _0x1e19fa=_0x21e5fc;if(_0x3896ae[_0x1e19fa(0x212)]!=='VIRTUAL'){const _0x3322ac={};return _0x3322ac[_0x3896ae[_0x1e19fa(0x1c2)]]={[Op[_0x1e19fa(0x1f6)]]:'%'+_0x4663f2['query'][_0x1e19fa(0x254)]+'%'},_0x3322ac;}})}));_0x49d66a=_[_0x21e5fc(0x1c0)]({},_0x49d66a,_0x4663f2[_0x21e5fc(0x23a)]);const _0x5a14df={'where':_0x49d66a['where']};return db[_0x21e5fc(0x1bc)]['count'](_0x5a14df)[_0x21e5fc(0x255)](function(_0x613236){const _0xe5f2fa=_0x21e5fc;return _0x82ff9c['count']=_0x613236,_0x4663f2['query'][_0xe5f2fa(0x249)]&&(_0x49d66a['include']=[{'all':!![]}]),db[_0xe5f2fa(0x1bc)]['findAll'](_0x49d66a);})[_0x21e5fc(0x255)](function(_0x135be9){return _0x82ff9c['rows']=_0x135be9,_0x82ff9c;})[_0x21e5fc(0x255)](respondWithFilteredResult(_0x37e346,_0x49d66a))['catch'](handleError(_0x37e346,null));},exports[a222_0x1c105d(0x1b3)]=function(_0x44b23b,_0x268f9d){const _0x1a8b40=a222_0x1c105d;let _0x524a1f={'raw':![],'where':{'id':_0x44b23b['params']['id']},'include':[{'model':db[_0x1a8b40(0x24e)],'as':'mandatoryDispositionPause'}]};const _0x3ebeb9={};return _0x3ebeb9[_0x1a8b40(0x1f0)]=_[_0x1a8b40(0x21c)](db['FaxAccount'][_0x1a8b40(0x256)]),_0x3ebeb9[_0x1a8b40(0x1c8)]=_['keys'](_0x44b23b[_0x1a8b40(0x1c8)]),_0x3ebeb9['filters']=_[_0x1a8b40(0x201)](_0x3ebeb9[_0x1a8b40(0x1f0)],_0x3ebeb9[_0x1a8b40(0x1c8)]),_0x524a1f[_0x1a8b40(0x238)]=_[_0x1a8b40(0x201)](_0x3ebeb9[_0x1a8b40(0x1f0)],qs[_0x1a8b40(0x20f)](_0x44b23b[_0x1a8b40(0x1c8)][_0x1a8b40(0x20f)])),_0x524a1f[_0x1a8b40(0x238)]=_0x524a1f[_0x1a8b40(0x238)]['length']?_0x524a1f['attributes']:_0x3ebeb9[_0x1a8b40(0x1f0)],_0x44b23b[_0x1a8b40(0x1c8)][_0x1a8b40(0x249)]&&(_0x524a1f['include']=[{'all':!![]}]),_0x524a1f=_[_0x1a8b40(0x1c0)]({},_0x524a1f,_0x44b23b['options']),db[_0x1a8b40(0x1bc)][_0x1a8b40(0x239)](_0x524a1f)[_0x1a8b40(0x255)](handleEntityNotFound(_0x268f9d,null))[_0x1a8b40(0x255)](respondWithResult(_0x268f9d,null))['catch'](handleError(_0x268f9d,null));},exports[a222_0x1c105d(0x215)]=function(_0x2fe965,_0x42e2e9){const _0x3070d7=a222_0x1c105d;return db[_0x3070d7(0x1bc)]['create'](_0x2fe965[_0x3070d7(0x210)],{})[_0x3070d7(0x255)](function(_0x26f4ae){const _0x14e088=_0x3070d7,_0x37e856=_0x2fe965['user']['get']({'plain':!![]});if(!_0x37e856)throw new Error(_0x14e088(0x200));if(_0x37e856[_0x14e088(0x20a)]===_0x14e088(0x1d4)){const _0x3224a0=_0x26f4ae[_0x14e088(0x1ce)]({'plain':!![]}),_0x11397c='FaxAccounts';return db[_0x14e088(0x1ba)][_0x14e088(0x239)]({'where':{'name':_0x11397c,'userProfileId':_0x37e856['userProfileId']},'raw':!![]})['then'](function(_0x92b17b){const _0x279593=_0x14e088;return _0x92b17b&&_0x92b17b[_0x279593(0x1fb)]===0x0?db['UserProfileResource']['create']({'name':_0x3224a0[_0x279593(0x1c2)],'resourceId':_0x3224a0['id'],'type':_0x92b17b[_0x279593(0x1c2)],'sectionId':_0x92b17b['id']},{})[_0x279593(0x255)](function(){return _0x26f4ae;}):_0x26f4ae;})[_0x14e088(0x251)](function(_0x31f02d){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x31f02d);throw _0x31f02d;});}return _0x26f4ae;})[_0x3070d7(0x255)](respondWithResult(_0x42e2e9,0xc9))[_0x3070d7(0x251)](handleError(_0x42e2e9,null));},exports[a222_0x1c105d(0x1d8)]=function(_0x1dee91,_0x29adc4){const _0x5514e6=a222_0x1c105d;return _0x1dee91[_0x5514e6(0x210)]['id']&&delete _0x1dee91[_0x5514e6(0x210)]['id'],db[_0x5514e6(0x1bc)]['findOne']({'where':{'id':_0x1dee91[_0x5514e6(0x1e2)]['id']},'include':[{'model':db[_0x5514e6(0x24e)],'as':_0x5514e6(0x241)}]})[_0x5514e6(0x255)](handleEntityNotFound(_0x29adc4,null))[_0x5514e6(0x255)](saveUpdates(_0x1dee91[_0x5514e6(0x210)],null))[_0x5514e6(0x255)](respondWithResult(_0x29adc4,null))['catch'](handleError(_0x29adc4,null));},exports[a222_0x1c105d(0x221)]=function(_0x1f2cfa,_0x501b2d){const _0x323016=a222_0x1c105d;return db[_0x323016(0x1bc)][_0x323016(0x239)]({'where':{'id':_0x1f2cfa[_0x323016(0x1e2)]['id']}})[_0x323016(0x255)](handleEntityNotFound(_0x501b2d,null))[_0x323016(0x255)](removeEntity(_0x501b2d,null))['catch'](handleError(_0x501b2d,null));},exports[a222_0x1c105d(0x233)]=function(_0x499ddd,_0x4f32bf){const _0x145ea3=a222_0x1c105d;return db[_0x145ea3(0x1bc)][_0x145ea3(0x233)]()[_0x145ea3(0x255)](respondWithResult(_0x4f32bf,null))['catch'](handleError(_0x4f32bf,null));},exports[a222_0x1c105d(0x235)]=function(_0x5f25b8,_0x200795){const _0x303e70=a222_0x1c105d;return _0x5f25b8[_0x303e70(0x210)]['id']&&delete _0x5f25b8['body']['id'],db['FaxAccount']['findOne']({'where':{'id':_0x5f25b8[_0x303e70(0x1e2)]['id']}})[_0x303e70(0x255)](handleEntityNotFound(_0x200795,null))['then'](function(_0x422416){const _0x2c0d67=_0x303e70;if(_0x422416)return _0x5f25b8[_0x2c0d67(0x210)][_0x2c0d67(0x22e)]=_0x422416['id'],db[_0x2c0d67(0x234)][_0x2c0d67(0x215)](_0x5f25b8[_0x2c0d67(0x210)]);})[_0x303e70(0x255)](respondWithResult(_0x200795,null))[_0x303e70(0x251)](handleError(_0x200795,null));},exports[a222_0x1c105d(0x21e)]=function(_0x44c377,_0x1bc393){const _0x463fde=a222_0x1c105d;let _0x727642={'raw':![],'where':{}};const _0x2bf33e={},_0x2b8dcc={'count':0x0,'rows':[]};return db['FaxAccount'][_0x463fde(0x239)]({'where':{'id':_0x44c377[_0x463fde(0x1e2)]['id']}})[_0x463fde(0x255)](handleEntityNotFound(_0x1bc393,null))['then'](function(_0x35828e){const _0x553ed8=_0x463fde;if(_0x35828e)return _0x2bf33e['model']=_[_0x553ed8(0x21c)](db[_0x553ed8(0x234)][_0x553ed8(0x256)]),_0x2bf33e['query']=_[_0x553ed8(0x21c)](_0x44c377[_0x553ed8(0x1c8)]),_0x2bf33e[_0x553ed8(0x1e5)]=_[_0x553ed8(0x201)](_0x2bf33e['model'],_0x2bf33e[_0x553ed8(0x1c8)]),_0x727642[_0x553ed8(0x238)]=_[_0x553ed8(0x201)](_0x2bf33e[_0x553ed8(0x1f0)],qs[_0x553ed8(0x20f)](_0x44c377['query'][_0x553ed8(0x20f)])),_0x727642[_0x553ed8(0x238)]=_0x727642['attributes'][_0x553ed8(0x202)]?_0x727642[_0x553ed8(0x238)]:_0x2bf33e[_0x553ed8(0x1f0)],typeof _0x44c377[_0x553ed8(0x1c8)][_0x553ed8(0x1f4)]==='undefined'&&(_0x727642[_0x553ed8(0x1f9)]=qs[_0x553ed8(0x1f9)](_0x44c377[_0x553ed8(0x1c8)]['limit']),_0x727642[_0x553ed8(0x243)]=qs['offset'](_0x44c377[_0x553ed8(0x1c8)][_0x553ed8(0x243)])),_0x727642[_0x553ed8(0x1ee)]=qs[_0x553ed8(0x1c4)](_0x44c377['query']['sort']),_0x727642[_0x553ed8(0x1e3)]=qs['filters'](_[_0x553ed8(0x1b5)](_0x44c377[_0x553ed8(0x1c8)],_0x2bf33e[_0x553ed8(0x1e5)])),_0x727642[_0x553ed8(0x1e3)][_0x553ed8(0x22e)]=_0x35828e['id'],_0x44c377[_0x553ed8(0x1c8)][_0x553ed8(0x254)]&&(_0x727642['where']=_['merge'](_0x727642[_0x553ed8(0x1e3)],{[Op['or']]:_[_0x553ed8(0x1b4)](_0x727642['attributes'],function(_0x94e6e){const _0x15c6d4=_0x553ed8,_0x178966={};return _0x178966[_0x94e6e]={[Op[_0x15c6d4(0x1f6)]]:'%'+_0x44c377['query'][_0x15c6d4(0x254)]+'%'},_0x178966;})})),_0x727642=_['merge']({},_0x727642,_0x44c377[_0x553ed8(0x23a)]),db[_0x553ed8(0x234)][_0x553ed8(0x23f)]({'where':_0x727642[_0x553ed8(0x1e3)]})[_0x553ed8(0x255)](function(_0x62102c){const _0x42c1b6=_0x553ed8;return _0x2b8dcc[_0x42c1b6(0x23f)]=_0x62102c,_0x44c377[_0x42c1b6(0x1c8)]['includeAll']&&(_0x727642[_0x42c1b6(0x23b)]=[{'all':!![]}]),db['Disposition'][_0x42c1b6(0x217)](_0x727642);})[_0x553ed8(0x255)](function(_0x31f32b){const _0x3dcea2=_0x553ed8;return _0x2b8dcc[_0x3dcea2(0x245)]=_0x31f32b,_0x2b8dcc;});})['then'](respondWithFilteredResult(_0x1bc393,_0x727642))[_0x463fde(0x251)](handleError(_0x1bc393,null));},exports[a222_0x1c105d(0x1f3)]=function(_0x11a3b5,_0x2b118e){const _0xd70c07=a222_0x1c105d;return db[_0xd70c07(0x1bc)]['findOne']({'where':{'id':_0x11a3b5[_0xd70c07(0x1e2)]['id']}})['then'](handleEntityNotFound(_0x2b118e,null))[_0xd70c07(0x255)](function(_0x2e9917){const _0x2d20a2=_0xd70c07;if(_0x2e9917)return _0x2e9917[_0x2d20a2(0x1f3)](_0x11a3b5[_0x2d20a2(0x1c8)][_0x2d20a2(0x1b9)]);})[_0xd70c07(0x255)](respondWithStatusCode(_0x2b118e,null))[_0xd70c07(0x251)](handleError(_0x2b118e,null));},exports[a222_0x1c105d(0x226)]=function(_0x1b5b8f,_0x4dc81e){const _0x18b0ce=a222_0x1c105d;return _0x1b5b8f['body']['id']&&delete _0x1b5b8f[_0x18b0ce(0x210)]['id'],db[_0x18b0ce(0x1bc)]['findOne']({'where':{'id':_0x1b5b8f['params']['id']}})[_0x18b0ce(0x255)](handleEntityNotFound(_0x4dc81e,null))[_0x18b0ce(0x255)](function(_0x23cb38){const _0x4d2748=_0x18b0ce;if(_0x23cb38)return _0x1b5b8f[_0x4d2748(0x210)][_0x4d2748(0x22e)]=_0x23cb38['id'],db[_0x4d2748(0x207)]['create'](_0x1b5b8f[_0x4d2748(0x210)]);})[_0x18b0ce(0x255)](respondWithResult(_0x4dc81e,null))[_0x18b0ce(0x251)](handleError(_0x4dc81e,null));},exports['getAnswers']=function(_0x2a8b84,_0x20725d){const _0x20bb96=a222_0x1c105d;let _0x3584a2={'raw':![],'where':{}};const _0x220f6b={},_0x2751cf={'count':0x0,'rows':[]};return db[_0x20bb96(0x1bc)][_0x20bb96(0x239)]({'where':{'id':_0x2a8b84['params']['id']}})[_0x20bb96(0x255)](handleEntityNotFound(_0x20725d,null))[_0x20bb96(0x255)](function(_0x15aff4){const _0x297805=_0x20bb96;if(_0x15aff4)return _0x220f6b[_0x297805(0x1f0)]=_['keys'](db[_0x297805(0x207)][_0x297805(0x256)]),_0x220f6b['query']=_[_0x297805(0x21c)](_0x2a8b84[_0x297805(0x1c8)]),_0x220f6b[_0x297805(0x1e5)]=_[_0x297805(0x201)](_0x220f6b[_0x297805(0x1f0)],_0x220f6b['query']),_0x3584a2[_0x297805(0x238)]=_[_0x297805(0x201)](_0x220f6b[_0x297805(0x1f0)],qs[_0x297805(0x20f)](_0x2a8b84[_0x297805(0x1c8)]['fields'])),_0x3584a2['attributes']=_0x3584a2[_0x297805(0x238)]['length']?_0x3584a2['attributes']:_0x220f6b['model'],typeof _0x2a8b84[_0x297805(0x1c8)][_0x297805(0x1f4)]===_0x297805(0x1f5)&&(_0x3584a2['limit']=qs[_0x297805(0x1f9)](_0x2a8b84[_0x297805(0x1c8)][_0x297805(0x1f9)]),_0x3584a2['offset']=qs['offset'](_0x2a8b84['query'][_0x297805(0x243)])),_0x3584a2[_0x297805(0x1ee)]=qs[_0x297805(0x1c4)](_0x2a8b84[_0x297805(0x1c8)][_0x297805(0x1c4)]),_0x3584a2[_0x297805(0x1e3)]=qs['filters'](_['pick'](_0x2a8b84[_0x297805(0x1c8)],_0x220f6b[_0x297805(0x1e5)])),_0x3584a2[_0x297805(0x1e3)]['FaxAccountId']=_0x15aff4['id'],_0x2a8b84['query'][_0x297805(0x254)]&&(_0x3584a2[_0x297805(0x1e3)]=_['merge'](_0x3584a2[_0x297805(0x1e3)],{[Op['or']]:_[_0x297805(0x1b4)](_0x3584a2[_0x297805(0x238)],function(_0x1ac6c9){const _0xe6ce63=_0x297805,_0x802e9a={};return _0x802e9a[_0x1ac6c9]={[Op[_0xe6ce63(0x1f6)]]:'%'+_0x2a8b84[_0xe6ce63(0x1c8)][_0xe6ce63(0x254)]+'%'},_0x802e9a;})})),_0x3584a2=_[_0x297805(0x1c0)]({},_0x3584a2,_0x2a8b84[_0x297805(0x23a)]),db[_0x297805(0x207)][_0x297805(0x23f)]({'where':_0x3584a2['where']})[_0x297805(0x255)](function(_0xccdca3){const _0x1c196c=_0x297805;return _0x2751cf[_0x1c196c(0x23f)]=_0xccdca3,_0x2a8b84['query'][_0x1c196c(0x249)]&&(_0x3584a2[_0x1c196c(0x23b)]=[{'all':!![]}]),db['CannedAnswer'][_0x1c196c(0x217)](_0x3584a2);})[_0x297805(0x255)](function(_0x446e24){const _0x348b9f=_0x297805;return _0x2751cf[_0x348b9f(0x245)]=_0x446e24,_0x2751cf;});})['then'](respondWithFilteredResult(_0x20725d,_0x3584a2))[_0x20bb96(0x251)](handleError(_0x20725d,null));},exports['removeAnswers']=function(_0x309fa6,_0xa613e0){const _0x3cd2fc=a222_0x1c105d;return db[_0x3cd2fc(0x1bc)]['findOne']({'where':{'id':_0x309fa6[_0x3cd2fc(0x1e2)]['id']}})['then'](handleEntityNotFound(_0xa613e0,null))[_0x3cd2fc(0x255)](function(_0x232d59){const _0x26402b=_0x3cd2fc;if(_0x232d59)return _0x232d59[_0x26402b(0x237)](_0x309fa6[_0x26402b(0x1c8)][_0x26402b(0x1b9)]);})[_0x3cd2fc(0x255)](respondWithStatusCode(_0xa613e0,null))['catch'](handleError(_0xa613e0,null));},exports[a222_0x1c105d(0x1cd)]=function(_0x32d645,_0x3fd46f){const _0x5e8e13=a222_0x1c105d;return db[_0x5e8e13(0x1d7)][_0x5e8e13(0x239)]({'where':{'id':_0x32d645[_0x5e8e13(0x1e2)]['id']}})['then'](function(_0x1451ba){const _0x469b77=_0x5e8e13;if(_0x1451ba)return _0x1451ba[_0x469b77(0x1cd)](_0x32d645['body']['ids'],{'through':_[_0x469b77(0x25c)](_0x32d645[_0x469b77(0x210)],[_0x469b77(0x1b9),'id'])});})[_0x5e8e13(0x255)](respondWithResult(_0x3fd46f,null))['catch'](handleError(_0x3fd46f,null));},exports[a222_0x1c105d(0x1bb)]=function(_0x4bc43a,_0x554a5e){const _0x337012=a222_0x1c105d;let _0x155c22={'raw':![],'where':{}};const _0x27c309={},_0x4dc6b4={'count':0x0,'rows':[]};return db['FaxAccount'][_0x337012(0x239)]({'where':{'id':_0x4bc43a['params']['id']}})['then'](handleEntityNotFound(_0x554a5e,null))['then'](function(_0x3e1488){const _0x525b62=_0x337012;if(_0x3e1488)return _0x27c309[_0x525b62(0x1f0)]=_[_0x525b62(0x21c)](db['FaxInteraction'][_0x525b62(0x256)]),_0x27c309[_0x525b62(0x1c8)]=_['keys'](_0x4bc43a[_0x525b62(0x1c8)]),_0x27c309[_0x525b62(0x1e5)]=_['intersection'](_0x27c309[_0x525b62(0x1f0)],_0x27c309[_0x525b62(0x1c8)]),_0x155c22['attributes']=_[_0x525b62(0x201)](_0x27c309[_0x525b62(0x1f0)],qs[_0x525b62(0x20f)](_0x4bc43a[_0x525b62(0x1c8)][_0x525b62(0x20f)])),_0x155c22[_0x525b62(0x238)]=_0x155c22['attributes'][_0x525b62(0x202)]?_0x155c22[_0x525b62(0x238)]:_0x27c309[_0x525b62(0x1f0)],typeof _0x4bc43a[_0x525b62(0x1c8)]['nolimit']==='undefined'&&(_0x155c22[_0x525b62(0x1f9)]=qs[_0x525b62(0x1f9)](_0x4bc43a[_0x525b62(0x1c8)][_0x525b62(0x1f9)]),_0x155c22[_0x525b62(0x243)]=qs[_0x525b62(0x243)](_0x4bc43a['query']['offset'])),_0x155c22[_0x525b62(0x1ee)]=qs['sort'](_0x4bc43a[_0x525b62(0x1c8)][_0x525b62(0x1c4)]),_0x155c22[_0x525b62(0x1e3)]=qs[_0x525b62(0x1e5)](_[_0x525b62(0x1b5)](_0x4bc43a[_0x525b62(0x1c8)],_0x27c309[_0x525b62(0x1e5)])),_0x155c22[_0x525b62(0x1e3)][_0x525b62(0x22e)]=_0x3e1488['id'],_0x4bc43a[_0x525b62(0x1c8)]['filter']&&(_0x155c22[_0x525b62(0x1e3)]=_[_0x525b62(0x1c0)](_0x155c22[_0x525b62(0x1e3)],{[Op['or']]:_[_0x525b62(0x1b4)](_0x155c22['attributes'],function(_0x37b4e2){const _0x559d20=_0x525b62,_0x118a25={};return _0x118a25[_0x37b4e2]={[Op[_0x559d20(0x1f6)]]:'%'+_0x4bc43a[_0x559d20(0x1c8)]['filter']+'%'},_0x118a25;})})),_0x155c22=_[_0x525b62(0x1c0)]({},_0x155c22,_0x4bc43a[_0x525b62(0x23a)]),db[_0x525b62(0x1d7)][_0x525b62(0x23f)]({'where':_0x155c22['where']})[_0x525b62(0x255)](function(_0x55a235){const _0x4920b7=_0x525b62;return _0x4dc6b4[_0x4920b7(0x23f)]=_0x55a235,_0x4bc43a[_0x4920b7(0x1c8)][_0x4920b7(0x249)]&&(_0x155c22[_0x4920b7(0x23b)]=[{'model':db[_0x4920b7(0x209)],'as':_0x4920b7(0x1db),'required':![]},{'model':db[_0x4920b7(0x1ea)],'as':_0x4920b7(0x211),'attributes':[_0x4920b7(0x1c2),_0x4920b7(0x22b),_0x4920b7(0x232)],'required':![]},{'model':db[_0x4920b7(0x259)],'as':_0x4920b7(0x225),'attributes':['id',_0x4920b7(0x1c2),_0x4920b7(0x257)],'where':_0x4bc43a[_0x4920b7(0x1c8)][_0x4920b7(0x224)]?{'id':_0x4bc43a[_0x4920b7(0x1c8)][_0x4920b7(0x224)]}:undefined,'required':_0x4bc43a['query']['tag']?!![]:![]}]),db[_0x4920b7(0x1d7)][_0x4920b7(0x217)](_0x155c22);})[_0x525b62(0x255)](function(_0x202a83){const _0x37061c=_0x525b62;return _0x4dc6b4[_0x37061c(0x245)]=_0x202a83,_0x4dc6b4;});})[_0x337012(0x255)](respondWithFilteredResult(_0x554a5e,_0x155c22))[_0x337012(0x251)](handleError(_0x554a5e,null));},exports[a222_0x1c105d(0x218)]=function(_0x1119cf,_0x2e55e3){const _0x2ee49f=a222_0x1c105d;return db[_0x2ee49f(0x1bc)][_0x2ee49f(0x239)]({'where':{'id':_0x1119cf[_0x2ee49f(0x1e2)]['id']}})['then'](handleEntityNotFound(_0x2e55e3,null))[_0x2ee49f(0x255)](function(_0x2f4fab){const _0x23546a=_0x2ee49f;if(_0x2f4fab)return db[_0x23546a(0x1b7)][_0x23546a(0x1f2)](function(_0x1ae8c){const _0x2f7226=_0x23546a;return db['FaxApplication']['destroy']({'where':{'FaxAccountId':_0x1119cf[_0x2f7226(0x1e2)]['id']},'transaction':_0x1ae8c})[_0x2f7226(0x255)](function(){const _0x1314cf=_0x2f7226,_0xa5f855=_[_0x1314cf(0x1b4)](_0x1119cf[_0x1314cf(0x210)],function(_0x3d7735){const _0xdaf460=_0x1314cf;return _0x3d7735[_0xdaf460(0x22e)]=_0x1119cf[_0xdaf460(0x1e2)]['id'],_0x3d7735;});return db[_0x1314cf(0x24a)]['bulkCreate'](_0xa5f855,{'transaction':_0x1ae8c});});})[_0x23546a(0x255)](function(){const _0x3650d4=_0x23546a;return db['FaxApplication'][_0x3650d4(0x1b8)]({'where':{'FaxAccountId':_0x1119cf[_0x3650d4(0x1e2)]['id']},'order':_0x3650d4(0x206)});});})[_0x2ee49f(0x255)](respondWithResult(_0x2e55e3,null))['catch'](handleError(_0x2e55e3,null));},exports[a222_0x1c105d(0x1fc)]=function(_0x5eada4,_0x315fb0){const _0x2ff22c=a222_0x1c105d;let _0x500b6f={};const _0x4985f5={};let _0x5a5d4d,_0x51455e;return db[_0x2ff22c(0x1bc)]['findOne']({'where':{'id':_0x5eada4['params']['id']}})['then'](handleEntityNotFound(_0x315fb0,null))[_0x2ff22c(0x255)](function(_0x1c1c89){const _0x102584=_0x2ff22c;if(_0x1c1c89)return _0x5a5d4d=_0x1c1c89,_0x4985f5['model']=_['keys'](db[_0x102584(0x24a)]['rawAttributes']),_0x4985f5[_0x102584(0x1c8)]=_[_0x102584(0x21c)](_0x5eada4[_0x102584(0x1c8)]),_0x4985f5[_0x102584(0x1e5)]=_[_0x102584(0x201)](_0x4985f5[_0x102584(0x1f0)],_0x4985f5[_0x102584(0x1c8)]),_0x500b6f[_0x102584(0x238)]=_[_0x102584(0x201)](_0x4985f5[_0x102584(0x1f0)],qs[_0x102584(0x20f)](_0x5eada4[_0x102584(0x1c8)][_0x102584(0x20f)])),_0x500b6f[_0x102584(0x238)]=_0x500b6f[_0x102584(0x238)]['length']?_0x500b6f[_0x102584(0x238)]:_0x4985f5[_0x102584(0x1f0)],_0x500b6f[_0x102584(0x1ee)]=qs[_0x102584(0x1c4)](_0x5eada4['query'][_0x102584(0x1c4)]),_0x500b6f[_0x102584(0x1e3)]=qs[_0x102584(0x1e5)](_['pick'](_0x5eada4[_0x102584(0x1c8)],_0x4985f5[_0x102584(0x1e5)])),_0x5eada4[_0x102584(0x1c8)][_0x102584(0x254)]&&(_0x500b6f[_0x102584(0x1e3)]=_['merge'](_0x500b6f[_0x102584(0x1e3)],{[Op['or']]:_[_0x102584(0x1b4)](_0x500b6f[_0x102584(0x238)],function(_0x4a645c){const _0x3ac3db=_0x102584,_0x5481ca={};return _0x5481ca[_0x4a645c]={[Op[_0x3ac3db(0x1f6)]]:'%'+_0x5eada4[_0x3ac3db(0x1c8)][_0x3ac3db(0x254)]+'%'},_0x5481ca;})})),_0x500b6f=_[_0x102584(0x1c0)]({},_0x500b6f,_0x5eada4[_0x102584(0x23a)]),_0x5a5d4d['getApplications'](_0x500b6f);})[_0x2ff22c(0x255)](function(_0x47e70){const _0x55d29a=_0x2ff22c;if(_0x47e70)return _0x51455e=_0x47e70[_0x55d29a(0x202)],typeof _0x5eada4[_0x55d29a(0x1c8)][_0x55d29a(0x1f4)]===_0x55d29a(0x1f5)&&(_0x500b6f[_0x55d29a(0x1f9)]=qs[_0x55d29a(0x1f9)](_0x5eada4[_0x55d29a(0x1c8)][_0x55d29a(0x1f9)]),_0x500b6f[_0x55d29a(0x243)]=qs['offset'](_0x5eada4[_0x55d29a(0x1c8)][_0x55d29a(0x243)])),_0x5a5d4d[_0x55d29a(0x1fc)](_0x500b6f);})[_0x2ff22c(0x255)](function(_0xd81f64){if(_0xd81f64)return _0xd81f64?{'count':_0x51455e,'rows':_0xd81f64}:null;})[_0x2ff22c(0x255)](respondWithResult(_0x315fb0,null))[_0x2ff22c(0x251)](handleError(_0x315fb0,null));};function Extension(_0x4fc307,_0x1cbd56,_0x22c307,_0x201a57){const _0x1fb741=a222_0x1c105d;this[_0x1fb741(0x1d1)]=_0x1fb741(0x1c6),this[_0x1fb741(0x1d0)]=_0x4fc307['localstationid'],this[_0x1fb741(0x1cc)]=_0x201a57,this['type']=_0x1fb741(0x1cb),this[_0x1fb741(0x21b)]='Fax\x20Extension',this[_0x1fb741(0x22e)]=_0x4fc307['id'],this[_0x1fb741(0x206)]=_0x1cbd56,this['appdata']=_0x22c307;}function createExtensionsReciveFax(_0x23720f){const _0x532572=a222_0x1c105d;let _0x2972a6=0x1;const _0x5a851f=[];_0x5a851f[_0x532572(0x1fe)](new Extension(_0x23720f,_0x2972a6,'','Answer')),_0x2972a6+=0x1,_0x5a851f['push'](new Extension(_0x23720f,_0x2972a6,_0x532572(0x1c7),_0x532572(0x1e7))),_0x2972a6+=0x1;for(const _0x48ca30 in _0x23720f){typeof _0x23720f[_0x48ca30]!==_0x532572(0x1f5)&&(_0x48ca30===_0x532572(0x21a)||_0x48ca30==='localstationid'||_0x48ca30===_0x532572(0x22a)||_0x48ca30===_0x532572(0x1f8)||_0x48ca30===_0x532572(0x21d)||_0x48ca30===_0x532572(0x213)||_0x48ca30==='minrate'||_0x48ca30==='modem'||_0x48ca30==='t38timeout')&&(_0x5a851f[_0x532572(0x1fe)](new Extension(_0x23720f,_0x2972a6,_0x532572(0x1fd)+_0x48ca30+')='+_0x23720f[_0x48ca30],_0x532572(0x1e7))),_0x2972a6+=0x1);}return _0x5a851f['push'](new Extension(_0x23720f,_0x2972a6,'6',_0x532572(0x20e))),_0x2972a6+=0x1,_0x5a851f[_0x532572(0x1fe)](new Extension(_0x23720f,_0x2972a6,_0x532572(0x24b),_0x532572(0x204))),_0x2972a6=0x0,_0x5a851f;}exports['addAccountApplications']=function(_0x88410f,_0x207b14){const _0x47df36=a222_0x1c105d;let _0x15d2a5;return db[_0x47df36(0x1b7)][_0x47df36(0x1f2)](function(_0x2dc3cb){const _0x1fb400=_0x47df36;return db['FaxAccount'][_0x1fb400(0x215)](_0x88410f['body'],{'transaction':_0x2dc3cb})['then'](function(_0x477c4f){const _0xf8045e=_0x1fb400;return _0x15d2a5=_0x477c4f[_0xf8045e(0x1ce)]({'plain':!![]}),db['VoiceExtension'][_0xf8045e(0x1ed)](createExtensionsReciveFax(_0x15d2a5),{'transaction':_0x2dc3cb});});})['then'](function(){return _0x15d2a5;})[_0x47df36(0x255)](respondWithResult(_0x207b14,null))[_0x47df36(0x251)](handleError(_0x207b14,null));},exports['updateAccountApplications']=function(_0x1c8336,_0x558e98){const _0x15a2f6=a222_0x1c105d;return db['sequelize'][_0x15a2f6(0x1f2)](function(_0x2e2bb7){const _0x4c1bd5=_0x15a2f6;return db[_0x4c1bd5(0x1bc)][_0x4c1bd5(0x1d8)](_0x1c8336[_0x4c1bd5(0x210)],{'where':{'id':_0x1c8336[_0x4c1bd5(0x210)]['id']},'transaction':_0x2e2bb7})[_0x4c1bd5(0x255)](function(){const _0x4a9e5c=_0x4c1bd5;return db[_0x4a9e5c(0x244)][_0x4a9e5c(0x221)]({'where':{'FaxAccountId':_0x1c8336[_0x4a9e5c(0x210)]['id']},'transaction':_0x2e2bb7})[_0x4a9e5c(0x255)](function(){const _0x49e797=_0x4a9e5c;return db[_0x49e797(0x244)][_0x49e797(0x1ed)](createExtensionsReciveFax(_['omit'](_0x1c8336[_0x49e797(0x210)],[_0x49e797(0x24f),_0x49e797(0x1b2),_0x49e797(0x248),_0x49e797(0x230),_0x49e797(0x20c),_0x49e797(0x1fa)])),{'transaction':_0x2e2bb7});});});})[_0x15a2f6(0x255)](function(){const _0x46300b=_0x15a2f6;return db[_0x46300b(0x1bc)][_0x46300b(0x240)](_0x1c8336['body']['id']);})[_0x15a2f6(0x255)](respondWithResult(_0x558e98,null))[_0x15a2f6(0x251)](handleError(_0x558e98,null));},exports[a222_0x1c105d(0x231)]=function(_0x505f16,_0x576632){const _0x1dc42c=a222_0x1c105d;let _0x15b4f8={'raw':!![],'where':{}};const _0x2a6af0={},_0x574ce4={'count':0x0,'rows':[]};return db[_0x1dc42c(0x1bc)][_0x1dc42c(0x239)]({'where':{'id':_0x505f16[_0x1dc42c(0x1e2)]['id']}})[_0x1dc42c(0x255)](handleEntityNotFound(_0x576632,null))[_0x1dc42c(0x255)](function(_0x104229){const _0x47b3a7=_0x1dc42c;if(_0x104229){_0x2a6af0[_0x47b3a7(0x1f0)]=_['keys'](db['FaxMessage']['rawAttributes']),_0x2a6af0[_0x47b3a7(0x1c8)]=_[_0x47b3a7(0x21c)](_0x505f16[_0x47b3a7(0x1c8)]),_0x2a6af0[_0x47b3a7(0x1e5)]=_[_0x47b3a7(0x201)](_0x2a6af0[_0x47b3a7(0x1f0)],_0x2a6af0[_0x47b3a7(0x1c8)]),_0x15b4f8['attributes']=_[_0x47b3a7(0x201)](_0x2a6af0[_0x47b3a7(0x1f0)],qs['fields'](_0x505f16['query']['fields'])),_0x15b4f8[_0x47b3a7(0x238)]=_0x15b4f8['attributes']['length']?_0x15b4f8[_0x47b3a7(0x238)]:_0x2a6af0[_0x47b3a7(0x1f0)];typeof _0x505f16[_0x47b3a7(0x1c8)][_0x47b3a7(0x1f4)]===_0x47b3a7(0x1f5)&&(_0x15b4f8[_0x47b3a7(0x1f9)]=qs[_0x47b3a7(0x1f9)](_0x505f16[_0x47b3a7(0x1c8)][_0x47b3a7(0x1f9)]),_0x15b4f8['offset']=qs[_0x47b3a7(0x243)](_0x505f16[_0x47b3a7(0x1c8)]['offset']));_0x15b4f8[_0x47b3a7(0x1ee)]=qs[_0x47b3a7(0x1c4)](_0x505f16[_0x47b3a7(0x1c8)][_0x47b3a7(0x1c4)]),_0x15b4f8[_0x47b3a7(0x1e3)]=qs[_0x47b3a7(0x1e5)](_[_0x47b3a7(0x1b5)](_0x505f16[_0x47b3a7(0x1c8)],_0x2a6af0[_0x47b3a7(0x1e5)])),_0x15b4f8['where']['FaxAccountId']=_0x104229['id'];_0x505f16['query']['filter']&&(_0x15b4f8[_0x47b3a7(0x1e3)]=_[_0x47b3a7(0x1c0)](_0x15b4f8[_0x47b3a7(0x1e3)],{[Op['or']]:_['map'](_0x15b4f8['attributes'],function(_0xb0a241){const _0x388262=_0x47b3a7,_0x28e892={};return _0x28e892[_0xb0a241]={[Op[_0x388262(0x1f6)]]:'%'+_0x505f16[_0x388262(0x1c8)][_0x388262(0x254)]+'%'},_0x28e892;})}));if(_0x505f16[_0x47b3a7(0x1c8)][_0x47b3a7(0x1bf)]){const _0x5b280a=_0x505f16[_0x47b3a7(0x1c8)][_0x47b3a7(0x1bf)]['split'](','),_0x5a5061={};_0x5a5061[_0x5b280a[0x0]]={[Op[_0x47b3a7(0x1b6)]]:moment(_0x5b280a[0x1])[_0x47b3a7(0x1eb)](_0x47b3a7(0x1c5))},_0x15b4f8[_0x47b3a7(0x1e3)]=_[_0x47b3a7(0x1c0)](_0x15b4f8[_0x47b3a7(0x1e3)],_0x5a5061);}return _0x15b4f8=_[_0x47b3a7(0x1c0)]({},_0x15b4f8,_0x505f16[_0x47b3a7(0x23a)]),db[_0x47b3a7(0x1da)]['count']({'where':_0x15b4f8['where']})[_0x47b3a7(0x255)](function(_0x3b340e){const _0x3186ce=_0x47b3a7;return _0x574ce4[_0x3186ce(0x23f)]=_0x3b340e,_0x505f16[_0x3186ce(0x1c8)]['includeAll']&&(_0x15b4f8['include']=[{'all':!![]}]),db[_0x3186ce(0x1da)][_0x3186ce(0x217)](_0x15b4f8);})[_0x47b3a7(0x255)](function(_0x9c635f){const _0x3cf6b8=_0x47b3a7;return _0x574ce4[_0x3cf6b8(0x245)]=_0x9c635f,_0x574ce4;});}})[_0x1dc42c(0x255)](respondWithFilteredResult(_0x576632,_0x15b4f8))[_0x1dc42c(0x251)](handleError(_0x576632,null));},exports['send']=function(_0x2f95d8,_0x4e9dc2){const _0x34bf43=a222_0x1c105d;let _0x1d915e,_0x3e169c;return _0x2f95d8[_0x34bf43(0x210)]['to']&&(_0x3e169c=_0x2f95d8[_0x34bf43(0x210)]['to'][0x0]),db[_0x34bf43(0x1bc)][_0x34bf43(0x239)]({'where':{'id':_0x2f95d8[_0x34bf43(0x1e2)]['id']},'include':[{'model':db[_0x34bf43(0x24c)],'as':_0x34bf43(0x25a),'include':[{'model':db[_0x34bf43(0x209)],'as':_0x34bf43(0x1e0),'where':{'fax':_0x3e169c},'limit':0x1,'order':[[_0x34bf43(0x230),_0x34bf43(0x1bd)]]}]}]})['then'](handleEntityNotFound(_0x4e9dc2,null))[_0x34bf43(0x255)](function(_0x2e2911){const _0x293d46=_0x34bf43;_0x1d915e=_0x2e2911;if(_0x2f95d8[_0x293d46(0x210)][_0x293d46(0x258)]&&_0x2f95d8['body']['attachments'][_0x293d46(0x202)])for(let _0x15d86f=0x0;_0x15d86f<_0x2f95d8[_0x293d46(0x210)][_0x293d46(0x258)][_0x293d46(0x202)];_0x15d86f+=0x1){_0x2f95d8[_0x293d46(0x210)][_0x293d46(0x258)][_0x15d86f]={'filename':_0x2f95d8[_0x293d46(0x210)]['attachments'][_0x15d86f][_0x293d46(0x1c2)],'id':_0x2f95d8[_0x293d46(0x210)][_0x293d46(0x258)][_0x15d86f]['id'],'path':path[_0x293d46(0x1e1)](config[_0x293d46(0x23e)],_0x293d46(0x252),_0x2f95d8['body'][_0x293d46(0x258)][_0x15d86f][_0x293d46(0x250)])};}return respondWithRpcPromise(_0x293d46(0x1ec),_0x293d46(0x1ec),{'FaxAccountId':_[_0x293d46(0x1dd)](_0x2f95d8[_0x293d46(0x1e2)]['id'])?undefined:_0x2f95d8['params']['id'],'path':_['isNil'](_0x2f95d8[_0x293d46(0x210)][_0x293d46(0x258)][0x0]['path'])?undefined:_0x2f95d8['body'][_0x293d46(0x258)][0x0][_0x293d46(0x203)],'fax':_[_0x293d46(0x1dd)](_0x2f95d8[_0x293d46(0x210)]['to'][0x0])?undefined:_0x2f95d8[_0x293d46(0x210)]['to'][0x0]},client9002);})['then'](function(){const _0x45beb9=_0x34bf43;if(_0x1d915e){_[_0x45beb9(0x1dd)](_0x2f95d8[_0x45beb9(0x210)][_0x45beb9(0x25b)])&&(_0x2f95d8[_0x45beb9(0x210)]['from']=util[_0x45beb9(0x1eb)]('\x22%s\x22\x20<%s>',_0x1d915e[_0x45beb9(0x1c2)],_0x1d915e[_0x45beb9(0x228)]));if(_0x1d915e[_0x45beb9(0x25a)])return _0x1d915e[_0x45beb9(0x25a)][_0x45beb9(0x1e0)][_0x45beb9(0x202)]?_0x1d915e[_0x45beb9(0x25a)][_0x45beb9(0x1e0)][0x0]:db[_0x45beb9(0x209)]['create'](_[_0x45beb9(0x208)](_0x2f95d8['body'],{'firstName':_0x2f95d8[_0x45beb9(0x210)]['to'][0x0],'phone':_0x2f95d8[_0x45beb9(0x210)]['to'][0x0],'fax':_0x2f95d8[_0x45beb9(0x210)]['to'][0x0],'ListId':_0x1d915e[_0x45beb9(0x1fa)]}));else throw new Error(_0x45beb9(0x22d));}else throw new Error(_0x45beb9(0x1d3));})[_0x34bf43(0x255)](function(_0x211708){const _0x2a3ebd=_0x34bf43;if(_0x211708)return db[_0x2a3ebd(0x1d7)][_0x2a3ebd(0x239)]({'where':{'ContactId':_0x211708['id'],'closed':![],'FaxAccountId':_0x1d915e['id']}})[_0x2a3ebd(0x255)](function(_0x14510b){const _0x4e9f15=_0x2a3ebd;if(_0x14510b)return[_0x14510b,![]];return db['FaxInteraction']['create']({'UserId':_0x2f95d8['user']['id'],'ContactId':_0x211708['id'],'FaxAccountId':_0x1d915e['id'],'fax':_0x2f95d8['body']['to'][0x0],'firstMsgDirection':_0x4e9f15(0x1d6),'Messages':[_[_0x4e9f15(0x1c0)](_0x2f95d8[_0x4e9f15(0x210)],{'read':![],'body':_0x2f95d8[_0x4e9f15(0x210)][_0x4e9f15(0x258)][0x0][_0x4e9f15(0x1e4)],'FaxAccountId':_0x1d915e['id'],'UserId':_0x2f95d8['user']['id'],'ContactId':_0x211708['id'],'AttachmentId':_0x2f95d8[_0x4e9f15(0x210)]['attachments'][0x0]['id']})]},{'include':[{'model':db[_0x4e9f15(0x1da)],'as':'Messages'}]})['then'](function(_0x55ec8e){return[_0x55ec8e,!![]];});});else throw new Error(_0x2a3ebd(0x1d2));})[_0x34bf43(0x255)](function([_0x1ac9f2,_0xb80a80]){const _0x1c1c6b=_0x34bf43;if(_0xb80a80)return _0x1ac9f2;return db[_0x1c1c6b(0x1da)][_0x1c1c6b(0x215)]({'direction':_0x1c1c6b(0x1d6),'read':![],'body':_0x2f95d8['body'][_0x1c1c6b(0x258)][0x0][_0x1c1c6b(0x1e4)],'FaxAccountId':_0x1d915e['id'],'FaxInteractionId':_0x1ac9f2['id'],'UserId':_0x2f95d8['user']['id'],'ContactId':_0x1ac9f2[_0x1c1c6b(0x24d)],'AttachmentId':_0x2f95d8[_0x1c1c6b(0x210)]['attachments'][0x0]['id']})[_0x1c1c6b(0x255)](function(_0xe2a38e){const _0x341259=_0x1c1c6b;return _0x1ac9f2[_0x341259(0x1f1)][_0x341259(0x219)]=[],_0x1ac9f2[_0x341259(0x1f1)][_0x341259(0x219)][_0x341259(0x1fe)](_0xe2a38e[_0x341259(0x1f1)]),_0x1ac9f2;});})[_0x34bf43(0x255)](function(_0x5efb6e){const _0x2de5df=_0x34bf43;return respondWithRpcPromise(_0x2de5df(0x1ff),_0x2de5df(0x1ff),{'FaxAccountId':_[_0x2de5df(0x1dd)](_0x2f95d8['params']['id'])?undefined:_0x2f95d8['params']['id'],'path':_[_0x2de5df(0x1dd)](_0x2f95d8[_0x2de5df(0x210)][_0x2de5df(0x258)][0x0][_0x2de5df(0x203)])?undefined:_0x2f95d8['body'][_0x2de5df(0x258)][0x0][_0x2de5df(0x203)],'fax':_[_0x2de5df(0x1dd)](_0x2f95d8['body']['to'][0x0])?undefined:_0x2f95d8[_0x2de5df(0x210)]['to'][0x0],'AttachmentId':_0x2f95d8[_0x2de5df(0x210)][_0x2de5df(0x258)][0x0]['id']},client9002)[_0x2de5df(0x255)](function(_0x33aedc){const _0x483fb3=_0x2de5df;logger[_0x483fb3(0x20d)](_0x483fb3(0x246),_0x33aedc);})['catch'](function(_0x244559){const _0x5cd937=_0x2de5df;logger['info'](_0x5cd937(0x246),_0x244559);}),_0x5efb6e;})[_0x34bf43(0x255)](respondWithResult(_0x4e9dc2,null))[_0x34bf43(0x251)](handleError(_0x4e9dc2,null));},exports[a222_0x1c105d(0x1cf)]=function(_0x379276,_0x4cfdcf){const _0x410149=a222_0x1c105d;return db[_0x410149(0x1bc)][_0x410149(0x239)]({'where':{'id':_0x379276[_0x410149(0x1e2)]['id']}})[_0x410149(0x255)](function(_0x580aae){const _0x916486=_0x410149;if(_0x580aae)return _0x580aae[_0x916486(0x1cf)](_0x379276[_0x916486(0x210)][_0x916486(0x1b9)],{'through':_[_0x916486(0x25c)](_0x379276[_0x916486(0x210)],['ids','id'])})[_0x916486(0x255)](function(_0x41fcb1){const _0x101fe3=_0x916486;for(let _0x2d7e3b=0x0;_0x2d7e3b<_0x379276[_0x101fe3(0x210)][_0x101fe3(0x1b9)][_0x101fe3(0x202)];_0x2d7e3b+=0x1){socket[_0x101fe3(0x1e8)](_0x101fe3(0x222),{'UserId':_0x379276[_0x101fe3(0x210)][_0x101fe3(0x1b9)][_0x2d7e3b],'FaxAccountId':_0x379276[_0x101fe3(0x1e2)]['id']});}return _0x41fcb1;});})[_0x410149(0x255)](respondWithResult(_0x4cfdcf,null))[_0x410149(0x251)](handleError(_0x4cfdcf,null));},exports[a222_0x1c105d(0x214)]=function(_0x340769,_0x294d05){const _0xf5c8c4=a222_0x1c105d;return db['FaxAccount'][_0xf5c8c4(0x239)]({'where':{'id':_0x340769[_0xf5c8c4(0x1e2)]['id']}})[_0xf5c8c4(0x255)](handleEntityNotFound(_0x294d05,null))['then'](function(_0xde8b33){const _0x580ddf=_0xf5c8c4;if(_0xde8b33)return _0xde8b33[_0x580ddf(0x214)](_0x340769[_0x580ddf(0x1c8)]['ids'])[_0x580ddf(0x255)](function(){const _0x348185=_0x580ddf;if(_[_0x348185(0x1c1)](_0x340769[_0x348185(0x1c8)][_0x348185(0x1b9)]))for(let _0x47b005=0x0;_0x47b005<_0x340769[_0x348185(0x1c8)]['ids']['length'];_0x47b005+=0x1){socket['emit'](_0x348185(0x253),{'UserId':Number(_0x340769[_0x348185(0x1c8)][_0x348185(0x1b9)][_0x47b005]),'FaxAccountId':Number(_0x340769[_0x348185(0x1e2)]['id'])});}else socket['emit'](_0x348185(0x253),{'UserId':Number(_0x340769['query']['ids']),'FaxAccountId':Number(_0x340769['params']['id'])});});})[_0xf5c8c4(0x255)](respondWithStatusCode(_0x294d05,null))[_0xf5c8c4(0x251)](handleError(_0x294d05,null));},exports['getAgents']=function(_0x3f521d,_0x293035){const _0x1744fa=a222_0x1c105d;let _0x17aa08={};const _0x1dca09={};let _0x5472ff,_0x36cdfc;return db[_0x1744fa(0x1bc)]['findOne']({'where':{'id':_0x3f521d[_0x1744fa(0x1e2)]['id']}})[_0x1744fa(0x255)](handleEntityNotFound(_0x293035,null))[_0x1744fa(0x255)](function(_0x18b89b){const _0x578ccd=_0x1744fa;if(_0x18b89b)return _0x5472ff=_0x18b89b,_0x1dca09[_0x578ccd(0x1f0)]=_[_0x578ccd(0x21c)](db[_0x578ccd(0x1ea)][_0x578ccd(0x256)]),_0x1dca09[_0x578ccd(0x1c8)]=_[_0x578ccd(0x21c)](_0x3f521d[_0x578ccd(0x1c8)]),_0x1dca09[_0x578ccd(0x1e5)]=_[_0x578ccd(0x201)](_0x1dca09['model'],_0x1dca09[_0x578ccd(0x1c8)]),_0x17aa08[_0x578ccd(0x238)]=_[_0x578ccd(0x201)](_0x1dca09['model'],qs[_0x578ccd(0x20f)](_0x3f521d['query']['fields'])),_0x17aa08[_0x578ccd(0x238)]=_0x17aa08[_0x578ccd(0x238)][_0x578ccd(0x202)]?_0x17aa08[_0x578ccd(0x238)]:_0x1dca09[_0x578ccd(0x1f0)],_0x17aa08['order']=qs['sort'](_0x3f521d['query']['sort']),_0x17aa08[_0x578ccd(0x1e3)]=qs[_0x578ccd(0x1e5)](_[_0x578ccd(0x1b5)](_0x3f521d['query'],_0x1dca09[_0x578ccd(0x1e5)])),_0x3f521d[_0x578ccd(0x1c8)][_0x578ccd(0x254)]&&(_0x17aa08[_0x578ccd(0x1e3)]=_[_0x578ccd(0x1c0)](_0x17aa08[_0x578ccd(0x1e3)],{[Op['or']]:_['map'](_0x17aa08[_0x578ccd(0x238)],function(_0x4b98f0){const _0x520058=_0x578ccd,_0x400bad={};return _0x400bad[_0x4b98f0]={[Op[_0x520058(0x1f6)]]:'%'+_0x3f521d['query'][_0x520058(0x254)]+'%'},_0x400bad;})})),_0x17aa08=_[_0x578ccd(0x1c0)]({},_0x17aa08,_0x3f521d[_0x578ccd(0x23a)]),_0x5472ff[_0x578ccd(0x20b)](_0x17aa08);})[_0x1744fa(0x255)](function(_0x39245d){const _0x375e49=_0x1744fa;if(_0x39245d)return _0x36cdfc=_0x39245d['length'],typeof _0x3f521d[_0x375e49(0x1c8)]['nolimit']===_0x375e49(0x1f5)&&(_0x17aa08[_0x375e49(0x1f9)]=qs[_0x375e49(0x1f9)](_0x3f521d[_0x375e49(0x1c8)][_0x375e49(0x1f9)]),_0x17aa08[_0x375e49(0x243)]=qs['offset'](_0x3f521d['query'][_0x375e49(0x243)])),_0x5472ff[_0x375e49(0x20b)](_0x17aa08);})[_0x1744fa(0x255)](function(_0x3eaa88){if(_0x3eaa88)return _0x3eaa88?{'count':_0x36cdfc,'rows':_0x3eaa88}:null;})[_0x1744fa(0x255)](respondWithResult(_0x293035,null))['catch'](handleError(_0x293035,null));}; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.events.js b/server/api/faxAccount/faxAccount.events.js index 43097af..70dc69e 100644 --- a/server/api/faxAccount/faxAccount.events.js +++ b/server/api/faxAccount/faxAccount.events.js @@ -1 +1 @@ -const a223_0x236c=['undefined','exports','save','FaxAccount','addHook','remove','emit','../../mysqldb','update','setMaxListeners','events'];(function(_0x1fb655,_0x1f4422){const _0x236c64=function(_0x14241){while(--_0x14241){_0x1fb655['push'](_0x1fb655['shift']());}};_0x236c64(++_0x1f4422);}(a223_0x236c,0x138));const a223_0x1424=function(_0x1fb655,_0x1f4422){_0x1fb655=_0x1fb655-0x84;let _0x236c64=a223_0x236c[_0x1fb655];return _0x236c64;};const a223_0x3f9255=a223_0x1424;'use strict';const EventEmitter=require(a223_0x3f9255(0x8a)),FaxAccount=require(a223_0x3f9255(0x87))['db'][a223_0x3f9255(0x8e)],FaxAccountEvents=new EventEmitter();FaxAccountEvents[a223_0x3f9255(0x89)](0x0);const events={'afterCreate':a223_0x3f9255(0x8d),'afterUpdate':a223_0x3f9255(0x88),'afterDestroy':a223_0x3f9255(0x85)};function emitEvent(_0x23219c){return function(_0x181f99){const _0xa17e79=a223_0x1424;FaxAccountEvents['emit'](_0x23219c+':'+_0x181f99['id'],_0x181f99),FaxAccountEvents[_0xa17e79(0x86)](_0x23219c,_0x181f99);};}for(const e in events){if(typeof events[e]!==a223_0x3f9255(0x8b)){const event=events[e];FaxAccount[a223_0x3f9255(0x84)](e,emitEvent(event));}}module[a223_0x3f9255(0x8c)]=FaxAccountEvents; \ No newline at end of file +const a223_0x1850=['remove','setMaxListeners','FaxAccount','save','events','emit','exports','addHook'];(function(_0x3b8b08,_0x4a1e98){const _0x1850fc=function(_0x5c83c1){while(--_0x5c83c1){_0x3b8b08['push'](_0x3b8b08['shift']());}};_0x1850fc(++_0x4a1e98);}(a223_0x1850,0x1b9));const a223_0x5c83=function(_0x3b8b08,_0x4a1e98){_0x3b8b08=_0x3b8b08-0x14e;let _0x1850fc=a223_0x1850[_0x3b8b08];return _0x1850fc;};const a223_0x3ddc67=a223_0x5c83;'use strict';const EventEmitter=require(a223_0x3ddc67(0x151)),FaxAccount=require('../../mysqldb')['db'][a223_0x3ddc67(0x14f)],FaxAccountEvents=new EventEmitter();FaxAccountEvents[a223_0x3ddc67(0x14e)](0x0);const events={'afterCreate':a223_0x3ddc67(0x150),'afterUpdate':'update','afterDestroy':a223_0x3ddc67(0x155)};function emitEvent(_0x3d12c1){return function(_0x17544d){const _0x2f8ce9=a223_0x5c83;FaxAccountEvents[_0x2f8ce9(0x152)](_0x3d12c1+':'+_0x17544d['id'],_0x17544d),FaxAccountEvents[_0x2f8ce9(0x152)](_0x3d12c1,_0x17544d);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];FaxAccount[a223_0x3ddc67(0x154)](e,emitEvent(event));}}module[a223_0x3ddc67(0x153)]=FaxAccountEvents; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.model.js b/server/api/faxAccount/faxAccount.model.js index 81fa315..0a2c6d4 100644 --- a/server/api/faxAccount/faxAccount.model.js +++ b/server/api/faxAccount/faxAccount.model.js @@ -1 +1 @@ -const a224_0x1b03=['exports','function','./faxAccount.attributes','sequelize','./faxAccount.options','init'];(function(_0x1c6261,_0x5d1241){const _0x1b03d9=function(_0x251bf5){while(--_0x251bf5){_0x1c6261['push'](_0x1c6261['shift']());}};_0x1b03d9(++_0x5d1241);}(a224_0x1b03,0x1ad));const a224_0x251b=function(_0x1c6261,_0x5d1241){_0x1c6261=_0x1c6261-0x195;let _0x1b03d9=a224_0x1b03[_0x1c6261];return _0x1b03d9;};const a224_0xea710c=a224_0x251b;'use strict';const {Model}=require(a224_0xea710c(0x195)),{attributes}=require(a224_0xea710c(0x19a)),{options}=require(a224_0xea710c(0x196));class FaxAccount extends Model{}function init(_0x2dd434,_0x3a1dbb){const _0x42333a=a224_0xea710c,_0x186c9f=options(_0x2dd434),_0x26f4c1=typeof _0x3a1dbb===_0x42333a(0x199)?_0x3a1dbb(_0x186c9f):_0x186c9f;return FaxAccount[_0x42333a(0x197)](attributes,_0x26f4c1),FaxAccount;}module[a224_0xea710c(0x198)]['FaxAccount']=FaxAccount,module[a224_0xea710c(0x198)][a224_0xea710c(0x197)]=init; \ No newline at end of file +const a224_0x5b16=['exports','./faxAccount.options','init','./faxAccount.attributes'];(function(_0x2e6224,_0x197647){const _0x5b1604=function(_0x985d73){while(--_0x985d73){_0x2e6224['push'](_0x2e6224['shift']());}};_0x5b1604(++_0x197647);}(a224_0x5b16,0xb8));const a224_0x985d=function(_0x2e6224,_0x197647){_0x2e6224=_0x2e6224-0x1a0;let _0x5b1604=a224_0x5b16[_0x2e6224];return _0x5b1604;};const a224_0x79bed=a224_0x985d;'use strict';const {Model}=require('sequelize'),{attributes}=require(a224_0x79bed(0x1a3)),{options}=require(a224_0x79bed(0x1a1));class FaxAccount extends Model{}function init(_0x1fd671,_0x33237b){const _0x2e79c5=a224_0x79bed,_0x41bdd9=options(_0x1fd671),_0x217b12=typeof _0x33237b==='function'?_0x33237b(_0x41bdd9):_0x41bdd9;return FaxAccount[_0x2e79c5(0x1a2)](attributes,_0x217b12),FaxAccount;}module[a224_0x79bed(0x1a0)]['FaxAccount']=FaxAccount,module['exports'][a224_0x79bed(0x1a2)]=init; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.options.js b/server/api/faxAccount/faxAccount.options.js index ba66704..9c1b3f4 100644 --- a/server/api/faxAccount/faxAccount.options.js +++ b/server/api/faxAccount/faxAccount.options.js @@ -1 +1 @@ -var a225_0x2996=['exports','options'];(function(_0x471687,_0x35ecc5){var _0x299607=function(_0x238790){while(--_0x238790){_0x471687['push'](_0x471687['shift']());}};_0x299607(++_0x35ecc5);}(a225_0x2996,0x18b));var a225_0x2387=function(_0x471687,_0x35ecc5){_0x471687=_0x471687-0x12a;var _0x299607=a225_0x2996[_0x471687];return _0x299607;};var a225_0x594479=a225_0x2387;function options(_0x4cf1c3){return{'sequelize':_0x4cf1c3,'tableName':'fax_accounts','paranoid':![],'indexes':[],'timestamps':!![]};}module[a225_0x594479(0x12b)][a225_0x594479(0x12a)]=options; \ No newline at end of file +var a225_0xaec4=['options','fax_accounts'];(function(_0x4603a7,_0x41a7f3){var _0xaec403=function(_0x43c8cc){while(--_0x43c8cc){_0x4603a7['push'](_0x4603a7['shift']());}};_0xaec403(++_0x41a7f3);}(a225_0xaec4,0xa3));var a225_0x43c8=function(_0x4603a7,_0x41a7f3){_0x4603a7=_0x4603a7-0x1bc;var _0xaec403=a225_0xaec4[_0x4603a7];return _0xaec403;};var a225_0xe843ab=a225_0x43c8;function options(_0x7270b1){var _0x34d51b=a225_0x43c8;return{'sequelize':_0x7270b1,'tableName':_0x34d51b(0x1bc),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a225_0xe843ab(0x1bd)]=options; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.rpc.js b/server/api/faxAccount/faxAccount.rpc.js index 5b9c9b8..f82e7c6 100644 --- a/server/api/faxAccount/faxAccount.rpc.js +++ b/server/api/faxAccount/faxAccount.rpc.js @@ -1 +1 @@ -const a226_0x26c8=['User','ContactId','findOne','unshift','orderBy','created','keys','stringify','interaction','unmanaged','get','createdAt','FaxApplication','message','from','result','attributes','register','include','lodash','debug','model','from\x20is\x20mandatory','body\x20is\x20mandatory\x20and\x20not\x20empty','name','FaxInteraction','map','includes','create','../../mysqldb','account','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','fax','CompanyId','catch','UserId','http','contact','Applications','ListId','push','jayson/promise','FaxAccount,\x20%s,\x20%s,\x20%s','difference','no\x20available\x20attributes','error','startRouting','limit','body','then','rpc','./faxAccount.socket','request\x20sent','updatedAt','isNil','length','FaxAccount','List','where','../../rediscache','priority','Contacts','code','FaxMessage','info','list','defaults','sequelize','Start','raw','FaxAccount,\x20%s,\x20%s','*,*,*,*','Contact\x20not\x20found','GetFaxAccount','options','close','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','mapKey','request','NotifyFaxAccount','agent','applications','../../config/logger','autoclose'];(function(_0x106ac7,_0x474b75){const _0x26c806=function(_0x43fb2b){while(--_0x43fb2b){_0x106ac7['push'](_0x106ac7['shift']());}};_0x26c806(++_0x474b75);}(a226_0x26c8,0x9f));const a226_0x43fb=function(_0x106ac7,_0x474b75){_0x106ac7=_0x106ac7-0x17d;let _0x26c806=a226_0x26c8[_0x106ac7];return _0x26c806;};const a226_0x134849=a226_0x43fb;'use strict';const _=require(a226_0x134849(0x199)),db=require(a226_0x134849(0x1a3))['db'],{ValidationError}=require(a226_0x134849(0x1c9)),logger=require(a226_0x134849(0x184))(a226_0x134849(0x1b8)),{getSocket}=require(a226_0x134849(0x1c1)),socket=getSocket(),jayson=require(a226_0x134849(0x1af)),client=jayson['client'][a226_0x134849(0x1aa)]({'port':0x232c});require(a226_0x134849(0x1b9))[a226_0x134849(0x197)](socket);function respondWithRpcPromise(_0x7cc407,_0x3570a3,_0x3c60b9){return new Promise(function(_0x57cc3d,_0x58f22b){const _0x9f0be2=a226_0x43fb;return client[_0x9f0be2(0x180)](_0x7cc407,_0x3c60b9)[_0x9f0be2(0x1b7)](function(_0x1b03cb){const _0x22439b=_0x9f0be2;logger[_0x22439b(0x1c6)](_0x22439b(0x1cc),_0x3570a3,_0x22439b(0x1ba)),logger[_0x22439b(0x19a)](_0x22439b(0x1b0),_0x3570a3,_0x22439b(0x1ba),JSON[_0x22439b(0x18d)](_0x1b03cb));if(_0x1b03cb[_0x22439b(0x1b3)]){if(_0x1b03cb[_0x22439b(0x1b3)][_0x22439b(0x1c4)]===0x1f4)return logger[_0x22439b(0x1b3)]('FaxAccount,\x20%s,\x20%s',_0x3570a3,_0x1b03cb[_0x22439b(0x1b3)][_0x22439b(0x193)]),_0x58f22b(_0x1b03cb[_0x22439b(0x1b3)][_0x22439b(0x193)]);return logger[_0x22439b(0x1b3)](_0x22439b(0x1cc),_0x3570a3,_0x1b03cb[_0x22439b(0x1b3)][_0x22439b(0x193)]),_0x57cc3d(_0x1b03cb['error']['message']);}else logger[_0x22439b(0x1c6)](_0x22439b(0x1cc),_0x3570a3,'request\x20sent'),_0x57cc3d(_0x1b03cb[_0x22439b(0x195)][_0x22439b(0x193)]);})[_0x9f0be2(0x1a8)](function(_0x1bc0bb){const _0x348f64=_0x9f0be2;logger[_0x348f64(0x1b3)]('FaxAccount,\x20%s,\x20%s',_0x3570a3,_0x1bc0bb),_0x58f22b(_0x1bc0bb);});});}exports[a226_0x134849(0x1cf)]=function(_0x599c4c){const _0x1c7db6=this;return new Promise(function(_0x1d738c,_0x34fb98){const _0x4ae324=a226_0x43fb;return db[_0x4ae324(0x1be)]['findAll']({'raw':_0x599c4c[_0x4ae324(0x1d0)]?_0x599c4c[_0x4ae324(0x1d0)][_0x4ae324(0x1cb)]===undefined?!![]:![]:!![],'where':_0x599c4c[_0x4ae324(0x1d0)]?_0x599c4c[_0x4ae324(0x1d0)][_0x4ae324(0x1c0)]||null:null,'attributes':_0x599c4c[_0x4ae324(0x1d0)]?_0x599c4c[_0x4ae324(0x1d0)][_0x4ae324(0x196)]||null:null,'limit':_0x599c4c[_0x4ae324(0x1d0)]?_0x599c4c[_0x4ae324(0x1d0)][_0x4ae324(0x1b5)]||null:null,'include':_0x599c4c[_0x4ae324(0x1d0)]?_0x599c4c[_0x4ae324(0x1d0)]['include']?_['map'](_0x599c4c[_0x4ae324(0x1d0)][_0x4ae324(0x198)],function(_0x2cf49b){const _0x15e474=_0x4ae324;return{'model':db[_0x2cf49b[_0x15e474(0x19b)]],'as':_0x2cf49b['as'],'attributes':_0x2cf49b['attributes'],'include':_0x2cf49b[_0x15e474(0x198)]?_['map'](_0x2cf49b[_0x15e474(0x198)],function(_0x224601){const _0x183966=_0x15e474;return{'model':db[_0x224601[_0x183966(0x19b)]],'as':_0x224601['as'],'attributes':_0x224601['attributes'],'include':_0x224601[_0x183966(0x198)]?_[_0x183966(0x1a0)](_0x224601[_0x183966(0x198)],function(_0x12f1ed){const _0x15be2d=_0x183966;return{'model':db[_0x12f1ed['model']],'as':_0x12f1ed['as'],'attributes':_0x12f1ed[_0x15be2d(0x196)]};}):[]};}):[]};}):[]:[]})[_0x4ae324(0x1b7)](function(_0x15468d){const _0xaa29fc=_0x4ae324;logger[_0xaa29fc(0x1c6)](_0xaa29fc(0x1cf),_0x599c4c),logger[_0xaa29fc(0x19a)](_0xaa29fc(0x1cf),_0x599c4c,JSON[_0xaa29fc(0x18d)](_0x15468d)),_0x1d738c(_0x15468d);})[_0x4ae324(0x1a8)](function(_0x5bfd5b){const _0x2f9187=_0x4ae324;logger[_0x2f9187(0x1b3)]('GetFaxAccount',_0x5bfd5b['message'],_0x599c4c),_0x34fb98(_0x1c7db6[_0x2f9187(0x1b3)](0x1f4,_0x5bfd5b['message']));});});},exports[a226_0x134849(0x181)]=function(_0x5e5bcb){const _0x4c1753=this;return new Promise(function(_0x43e63c,_0x1fb089){const _0x4d6ebd=a226_0x43fb,_0x2af314={'body':_0x5e5bcb[_0x4d6ebd(0x1b6)],'channel':_0x4d6ebd(0x1a6)};let _0x285b18=[],_0x548dd6=[];const _0x169c8d={};return db['CmContact']['describe']()[_0x4d6ebd(0x1b7)](function(_0x110d18){const _0x518d92=_0x4d6ebd;if(!_0x110d18)throw new ValidationError(_0x518d92(0x1b2));_0x285b18=_['difference'](_[_0x518d92(0x18c)](_0x110d18),[_0x518d92(0x191),_0x518d92(0x1bb)]),_0x548dd6=_[_0x518d92(0x1b1)](_[_0x518d92(0x18c)](_0x110d18),[_0x518d92(0x191),_0x518d92(0x1bb),_0x518d92(0x1a7),_0x518d92(0x1ad)]);_0x5e5bcb[_0x518d92(0x1b6)]['id']&&delete _0x5e5bcb[_0x518d92(0x1b6)]['id'];if(_[_0x518d92(0x1bc)](_0x5e5bcb[_0x518d92(0x1b6)][_0x518d92(0x194)]))throw new ValidationError(_0x518d92(0x19c));if(_[_0x518d92(0x1bc)](_0x5e5bcb[_0x518d92(0x1b6)]['body'])||_0x5e5bcb[_0x518d92(0x1b6)][_0x518d92(0x1b6)]==='')throw new ValidationError(_0x518d92(0x19d));if(_['isNil'](_0x5e5bcb['body'][_0x518d92(0x17f)]))throw new ValidationError(_0x518d92(0x1a5)+_0x548dd6);if(!_[_0x518d92(0x1a1)](_0x548dd6,_0x5e5bcb[_0x518d92(0x1b6)][_0x518d92(0x17f)]))throw new ValidationError(_0x518d92(0x17e)+_0x548dd6);_0x169c8d[_0x5e5bcb[_0x518d92(0x1b6)]['mapKey']]=_0x5e5bcb[_0x518d92(0x1b6)][_0x518d92(0x194)];})[_0x4d6ebd(0x1b7)](function(){const _0x37adff=_0x4d6ebd;return db['FaxAccount']['findOne']({'where':{'id':_0x5e5bcb[_0x37adff(0x1a4)]['id']},'include':[{'model':db['CmList'],'as':_0x37adff(0x1bf),'include':[{'model':db['CmContact'],'as':_0x37adff(0x1c3),'where':_0x169c8d,'limit':0x1,'order':[[_0x37adff(0x1bb),'DESC']]}]},{'model':db[_0x37adff(0x192)],'as':_0x37adff(0x1ac)}]});})[_0x4d6ebd(0x1b7)](function(_0x5e7267){const _0x3fad71=_0x4d6ebd;if(_0x5e7267&&_0x5e7267[_0x3fad71(0x1bf)]){const _0x44434d=_0x5e7267['get']({'plain':!![]});_0x2af314[_0x3fad71(0x1a4)]=_0x44434d,_0x2af314[_0x3fad71(0x183)]=_0x44434d['Applications'],_0x2af314[_0x3fad71(0x1c7)]=_0x44434d[_0x3fad71(0x1bf)],_0x2af314[_0x3fad71(0x183)]=_[_0x3fad71(0x18a)](_0x2af314[_0x3fad71(0x183)],[_0x3fad71(0x1c2)],['asc']);_0x2af314[_0x3fad71(0x1a4)][_0x3fad71(0x1ac)]&&delete _0x2af314[_0x3fad71(0x1a4)]['Applications'];if(_0x2af314[_0x3fad71(0x1a4)][_0x3fad71(0x1bf)]&&_0x2af314['account'][_0x3fad71(0x1bf)][_0x3fad71(0x1c3)][_0x3fad71(0x1bd)])return _0x2af314[_0x3fad71(0x1a4)][_0x3fad71(0x1bf)][_0x3fad71(0x1c3)][0x0];const _0x5adbb9=_[_0x3fad71(0x1c8)](_0x5e5bcb[_0x3fad71(0x1b6)],{'firstName':_0x5e5bcb[_0x3fad71(0x1b6)][_0x3fad71(0x194)],'ListId':_0x44434d[_0x3fad71(0x1ad)]});return _0x5adbb9[_0x5e5bcb[_0x3fad71(0x1b6)][_0x3fad71(0x17f)]]=_0x5e5bcb[_0x3fad71(0x1b6)][_0x3fad71(0x194)],db['CmContact'][_0x3fad71(0x1a2)](_0x5adbb9,{'fields':_0x285b18,'raw':!![]});}})[_0x4d6ebd(0x1b7)](function(_0x1c0a1c){const _0x710c0a=_0x4d6ebd;_0x2af314[_0x710c0a(0x1ab)]=_0x1c0a1c;if(_0x1c0a1c){const _0x9fdfc9={'ContactId':_0x1c0a1c['id'],'FaxAccountId':_0x5e5bcb[_0x710c0a(0x1a4)]['id'],'fax':_0x1c0a1c[_0x710c0a(0x1a6)]};return db[_0x710c0a(0x19f)]['findOne']({'where':{'ContactId':_0x1c0a1c['id'],'closed':![],'FaxAccountId':_0x5e5bcb[_0x710c0a(0x1a4)]['id']}})[_0x710c0a(0x1b7)](function(_0xa2d45b){const _0x2c5f59=_0x710c0a;if(_0xa2d45b)return[_0xa2d45b,![]];return db[_0x2c5f59(0x19f)][_0x2c5f59(0x1a2)](_0x9fdfc9)[_0x2c5f59(0x1b7)](function(_0x4ee9b2){return[_0x4ee9b2,!![]];});});}else throw new Error(_0x710c0a(0x1ce));})[_0x4d6ebd(0x1b7)](function([_0x4730e6,_0xd146f6]){const _0x1f8070=_0x4d6ebd,_0x543aa0=_0x4730e6[_0x1f8070(0x190)]({'plain':!![]});return _0xd146f6?(_0x2af314[_0x1f8070(0x1a4)][_0x1f8070(0x185)]&&_0x2af314['applications'][_0x1f8070(0x1ae)]({'id':0x0,'priority':_0x2af314['applications'][_0x1f8070(0x1bd)]+0x1,'app':_0x1f8070(0x17d),'appdata':_0x1f8070(0x18f),'interval':'*,*,*,*'}),_0x543aa0['created']=!![]):_0x543aa0[_0x1f8070(0x18b)]=![],_0x2af314[_0x1f8070(0x18e)]=_0x543aa0,db[_0x1f8070(0x1c5)][_0x1f8070(0x1a2)]({'body':_0x5e5bcb[_0x1f8070(0x1b6)][_0x1f8070(0x1b6)],'FaxAccountId':_0x5e5bcb[_0x1f8070(0x1a4)]['id'],'FaxInteractionId':_0x4730e6['id'],'direction':'in','ContactId':_0x4730e6[_0x1f8070(0x187)],'AttachmentId':_0x5e5bcb['body']['AttachmentId']});})[_0x4d6ebd(0x1b7)](function(_0xa7f0e1){const _0x2a1a8c=_0x4d6ebd;_0x2af314[_0x2a1a8c(0x193)]=_0xa7f0e1;if(_0x2af314[_0x2a1a8c(0x18e)]['UserId'])return db[_0x2a1a8c(0x186)][_0x2a1a8c(0x188)]({'attributes':['id',_0x2a1a8c(0x19e)],'where':{'id':_0x2af314[_0x2a1a8c(0x18e)][_0x2a1a8c(0x1a9)]}})[_0x2a1a8c(0x1b7)](function(_0x39ed21){const _0x343500=_0x2a1a8c;return _0x39ed21&&_0x2af314[_0x343500(0x183)][_0x343500(0x189)]({'id':0x0,'priority':0x0,'app':_0x343500(0x182),'appdata':_0x39ed21['name']+','+(_0x2af314['account']['waitForTheAssignedAgent']||0xa),'interval':_0x343500(0x1cd)}),respondWithRpcPromise(_0x343500(0x1ca),_0x343500(0x1b4),_0x2af314);});return respondWithRpcPromise(_0x2a1a8c(0x1ca),_0x2a1a8c(0x1b4),_0x2af314);})[_0x4d6ebd(0x1b7)](function(_0x32e000){_0x43e63c(_0x32e000);})[_0x4d6ebd(0x1a8)](function(_0x488429){const _0x58ade0=_0x4d6ebd;_0x1fb089(_0x4c1753['error'](0x1f4,_0x488429[_0x58ade0(0x193)]));});});}; \ No newline at end of file +const a226_0x1518=['lodash','options','createdAt','fax','User','difference','client','name','limit','CmContact','applications','includes','message','Applications','asc','error','raw','then','sequelize','interaction','push','findAll','unshift','from','FaxAccount,\x20%s,\x20%s','FaxInteraction','DESC','describe','create','../../rediscache','register','body','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','priority','map','debug','CompanyId','Start','mapKey','length','account','ListId','body\x20is\x20mandatory\x20and\x20not\x20empty','AttachmentId','catch','FaxMessage','created','request\x20sent','updatedAt','FaxApplication','model','waitForTheAssignedAgent','rpc','stringify','orderBy','keys','attributes','List','CmList','result','UserId','from\x20is\x20mandatory','request','where','Contact\x20not\x20found','Contacts','startRouting','include','info','defaults','FaxAccount','agent','isNil','*,*,*,*','jayson/promise','get','GetFaxAccount','code','findOne','../../mysqldb'];(function(_0x561a6a,_0x4b8d55){const _0x1518d6=function(_0xe14111){while(--_0xe14111){_0x561a6a['push'](_0x561a6a['shift']());}};_0x1518d6(++_0x4b8d55);}(a226_0x1518,0x1a0));const a226_0xe141=function(_0x561a6a,_0x4b8d55){_0x561a6a=_0x561a6a-0x1e4;let _0x1518d6=a226_0x1518[_0x561a6a];return _0x1518d6;};const a226_0x4a9ea8=a226_0xe141;'use strict';const _=require(a226_0x4a9ea8(0x224)),db=require(a226_0x4a9ea8(0x223))['db'],{ValidationError}=require(a226_0x4a9ea8(0x1e6)),logger=require('../../config/logger')(a226_0x4a9ea8(0x208)),{getSocket}=require(a226_0x4a9ea8(0x1f1)),socket=getSocket(),jayson=require(a226_0x4a9ea8(0x21e)),client=jayson[a226_0x4a9ea8(0x22a)]['http']({'port':0x232c});require('./faxAccount.socket')[a226_0x4a9ea8(0x1f2)](socket);function respondWithRpcPromise(_0x471cf1,_0x145044,_0x111164){return new Promise(function(_0x3023a6,_0x53649e){const _0x410626=a226_0xe141;return client[_0x410626(0x212)](_0x471cf1,_0x111164)[_0x410626(0x1e5)](function(_0x4dfff3){const _0x2bafc3=_0x410626;logger[_0x2bafc3(0x218)](_0x2bafc3(0x1ec),_0x145044,_0x2bafc3(0x203)),logger['debug']('FaxAccount,\x20%s,\x20%s,\x20%s',_0x145044,_0x2bafc3(0x203),JSON[_0x2bafc3(0x209)](_0x4dfff3));if(_0x4dfff3['error']){if(_0x4dfff3[_0x2bafc3(0x233)][_0x2bafc3(0x221)]===0x1f4)return logger['error']('FaxAccount,\x20%s,\x20%s',_0x145044,_0x4dfff3['error'][_0x2bafc3(0x230)]),_0x53649e(_0x4dfff3[_0x2bafc3(0x233)][_0x2bafc3(0x230)]);return logger[_0x2bafc3(0x233)](_0x2bafc3(0x1ec),_0x145044,_0x4dfff3[_0x2bafc3(0x233)][_0x2bafc3(0x230)]),_0x3023a6(_0x4dfff3[_0x2bafc3(0x233)][_0x2bafc3(0x230)]);}else logger[_0x2bafc3(0x218)](_0x2bafc3(0x1ec),_0x145044,'request\x20sent'),_0x3023a6(_0x4dfff3[_0x2bafc3(0x20f)]['message']);})[_0x410626(0x200)](function(_0x1da41f){const _0x32694a=_0x410626;logger[_0x32694a(0x233)]('FaxAccount,\x20%s,\x20%s',_0x145044,_0x1da41f),_0x53649e(_0x1da41f);});});}exports[a226_0x4a9ea8(0x220)]=function(_0x512daa){const _0x22b075=this;return new Promise(function(_0x31ff84,_0x4c5422){const _0x67094c=a226_0xe141;return db[_0x67094c(0x21a)][_0x67094c(0x1e9)]({'raw':_0x512daa[_0x67094c(0x225)]?_0x512daa['options'][_0x67094c(0x1e4)]===undefined?!![]:![]:!![],'where':_0x512daa['options']?_0x512daa[_0x67094c(0x225)][_0x67094c(0x213)]||null:null,'attributes':_0x512daa[_0x67094c(0x225)]?_0x512daa['options'][_0x67094c(0x20c)]||null:null,'limit':_0x512daa[_0x67094c(0x225)]?_0x512daa[_0x67094c(0x225)][_0x67094c(0x22c)]||null:null,'include':_0x512daa[_0x67094c(0x225)]?_0x512daa[_0x67094c(0x225)][_0x67094c(0x217)]?_[_0x67094c(0x1f6)](_0x512daa[_0x67094c(0x225)][_0x67094c(0x217)],function(_0x51779b){const _0x84600b=_0x67094c;return{'model':db[_0x51779b[_0x84600b(0x206)]],'as':_0x51779b['as'],'attributes':_0x51779b[_0x84600b(0x20c)],'include':_0x51779b[_0x84600b(0x217)]?_[_0x84600b(0x1f6)](_0x51779b[_0x84600b(0x217)],function(_0x516a0e){const _0x11aa71=_0x84600b;return{'model':db[_0x516a0e[_0x11aa71(0x206)]],'as':_0x516a0e['as'],'attributes':_0x516a0e[_0x11aa71(0x20c)],'include':_0x516a0e[_0x11aa71(0x217)]?_[_0x11aa71(0x1f6)](_0x516a0e[_0x11aa71(0x217)],function(_0x2d9dae){const _0x473254=_0x11aa71;return{'model':db[_0x2d9dae[_0x473254(0x206)]],'as':_0x2d9dae['as'],'attributes':_0x2d9dae[_0x473254(0x20c)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x2e99f8){const _0x21c6a6=_0x67094c;logger[_0x21c6a6(0x218)]('GetFaxAccount',_0x512daa),logger[_0x21c6a6(0x1f7)](_0x21c6a6(0x220),_0x512daa,JSON['stringify'](_0x2e99f8)),_0x31ff84(_0x2e99f8);})[_0x67094c(0x200)](function(_0x56db3c){const _0x509c2f=_0x67094c;logger[_0x509c2f(0x233)](_0x509c2f(0x220),_0x56db3c['message'],_0x512daa),_0x4c5422(_0x22b075[_0x509c2f(0x233)](0x1f4,_0x56db3c['message']));});});},exports['NotifyFaxAccount']=function(_0xff367e){const _0x47673b=this;return new Promise(function(_0x4be231,_0xaa7337){const _0xce2834=a226_0xe141,_0x2b5c7a={'body':_0xff367e[_0xce2834(0x1f3)],'channel':_0xce2834(0x227)};let _0x1cefea=[],_0x209564=[];const _0x2a7504={};return db['CmContact'][_0xce2834(0x1ef)]()[_0xce2834(0x1e5)](function(_0x52bbba){const _0x54bc3f=_0xce2834;if(!_0x52bbba)throw new ValidationError('no\x20available\x20attributes');_0x1cefea=_[_0x54bc3f(0x229)](_[_0x54bc3f(0x20b)](_0x52bbba),[_0x54bc3f(0x226),_0x54bc3f(0x204)]),_0x209564=_['difference'](_[_0x54bc3f(0x20b)](_0x52bbba),[_0x54bc3f(0x226),'updatedAt',_0x54bc3f(0x1f8),_0x54bc3f(0x1fd)]);_0xff367e['body']['id']&&delete _0xff367e[_0x54bc3f(0x1f3)]['id'];if(_[_0x54bc3f(0x21c)](_0xff367e[_0x54bc3f(0x1f3)]['from']))throw new ValidationError(_0x54bc3f(0x211));if(_[_0x54bc3f(0x21c)](_0xff367e[_0x54bc3f(0x1f3)][_0x54bc3f(0x1f3)])||_0xff367e[_0x54bc3f(0x1f3)][_0x54bc3f(0x1f3)]==='')throw new ValidationError(_0x54bc3f(0x1fe));if(_[_0x54bc3f(0x21c)](_0xff367e['body'][_0x54bc3f(0x1fa)]))throw new ValidationError(_0x54bc3f(0x1f4)+_0x209564);if(!_[_0x54bc3f(0x22f)](_0x209564,_0xff367e[_0x54bc3f(0x1f3)][_0x54bc3f(0x1fa)]))throw new ValidationError('mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x209564);_0x2a7504[_0xff367e[_0x54bc3f(0x1f3)][_0x54bc3f(0x1fa)]]=_0xff367e[_0x54bc3f(0x1f3)]['from'];})['then'](function(){const _0xbe69b7=_0xce2834;return db[_0xbe69b7(0x21a)][_0xbe69b7(0x222)]({'where':{'id':_0xff367e['account']['id']},'include':[{'model':db[_0xbe69b7(0x20e)],'as':_0xbe69b7(0x20d),'include':[{'model':db[_0xbe69b7(0x22d)],'as':_0xbe69b7(0x215),'where':_0x2a7504,'limit':0x1,'order':[['updatedAt',_0xbe69b7(0x1ee)]]}]},{'model':db[_0xbe69b7(0x205)],'as':'Applications'}]});})[_0xce2834(0x1e5)](function(_0x2b62a2){const _0x33e170=_0xce2834;if(_0x2b62a2&&_0x2b62a2['List']){const _0x324643=_0x2b62a2['get']({'plain':!![]});_0x2b5c7a[_0x33e170(0x1fc)]=_0x324643,_0x2b5c7a[_0x33e170(0x22e)]=_0x324643[_0x33e170(0x231)],_0x2b5c7a['list']=_0x324643[_0x33e170(0x20d)],_0x2b5c7a['applications']=_[_0x33e170(0x20a)](_0x2b5c7a[_0x33e170(0x22e)],[_0x33e170(0x1f5)],[_0x33e170(0x232)]);_0x2b5c7a[_0x33e170(0x1fc)][_0x33e170(0x231)]&&delete _0x2b5c7a['account']['Applications'];if(_0x2b5c7a['account'][_0x33e170(0x20d)]&&_0x2b5c7a[_0x33e170(0x1fc)]['List'][_0x33e170(0x215)][_0x33e170(0x1fb)])return _0x2b5c7a['account']['List'][_0x33e170(0x215)][0x0];const _0x4c9217=_[_0x33e170(0x219)](_0xff367e[_0x33e170(0x1f3)],{'firstName':_0xff367e['body'][_0x33e170(0x1eb)],'ListId':_0x324643[_0x33e170(0x1fd)]});return _0x4c9217[_0xff367e[_0x33e170(0x1f3)][_0x33e170(0x1fa)]]=_0xff367e[_0x33e170(0x1f3)][_0x33e170(0x1eb)],db[_0x33e170(0x22d)][_0x33e170(0x1f0)](_0x4c9217,{'fields':_0x1cefea,'raw':!![]});}})[_0xce2834(0x1e5)](function(_0x8a1f93){const _0x3e6f2d=_0xce2834;_0x2b5c7a['contact']=_0x8a1f93;if(_0x8a1f93){const _0x16beb3={'ContactId':_0x8a1f93['id'],'FaxAccountId':_0xff367e[_0x3e6f2d(0x1fc)]['id'],'fax':_0x8a1f93['fax']};return db[_0x3e6f2d(0x1ed)][_0x3e6f2d(0x222)]({'where':{'ContactId':_0x8a1f93['id'],'closed':![],'FaxAccountId':_0xff367e[_0x3e6f2d(0x1fc)]['id']}})[_0x3e6f2d(0x1e5)](function(_0x59cab9){const _0xf4d2e3=_0x3e6f2d;if(_0x59cab9)return[_0x59cab9,![]];return db['FaxInteraction'][_0xf4d2e3(0x1f0)](_0x16beb3)[_0xf4d2e3(0x1e5)](function(_0x2110f9){return[_0x2110f9,!![]];});});}else throw new Error(_0x3e6f2d(0x214));})[_0xce2834(0x1e5)](function([_0x2c1229,_0x500962]){const _0x4052da=_0xce2834,_0x4efed5=_0x2c1229[_0x4052da(0x21f)]({'plain':!![]});return _0x500962?(_0x2b5c7a[_0x4052da(0x1fc)]['autoclose']&&_0x2b5c7a[_0x4052da(0x22e)][_0x4052da(0x1e8)]({'id':0x0,'priority':_0x2b5c7a[_0x4052da(0x22e)][_0x4052da(0x1fb)]+0x1,'app':'close','appdata':'unmanaged','interval':_0x4052da(0x21d)}),_0x4efed5[_0x4052da(0x202)]=!![]):_0x4efed5[_0x4052da(0x202)]=![],_0x2b5c7a[_0x4052da(0x1e7)]=_0x4efed5,db[_0x4052da(0x201)][_0x4052da(0x1f0)]({'body':_0xff367e[_0x4052da(0x1f3)]['body'],'FaxAccountId':_0xff367e[_0x4052da(0x1fc)]['id'],'FaxInteractionId':_0x2c1229['id'],'direction':'in','ContactId':_0x2c1229['ContactId'],'AttachmentId':_0xff367e['body'][_0x4052da(0x1ff)]});})[_0xce2834(0x1e5)](function(_0x34e072){const _0x1faf5a=_0xce2834;_0x2b5c7a[_0x1faf5a(0x230)]=_0x34e072;if(_0x2b5c7a[_0x1faf5a(0x1e7)]['UserId'])return db[_0x1faf5a(0x228)][_0x1faf5a(0x222)]({'attributes':['id',_0x1faf5a(0x22b)],'where':{'id':_0x2b5c7a[_0x1faf5a(0x1e7)][_0x1faf5a(0x210)]}})[_0x1faf5a(0x1e5)](function(_0x95c6b8){const _0x4191b2=_0x1faf5a;return _0x95c6b8&&_0x2b5c7a[_0x4191b2(0x22e)][_0x4191b2(0x1ea)]({'id':0x0,'priority':0x0,'app':_0x4191b2(0x21b),'appdata':_0x95c6b8[_0x4191b2(0x22b)]+','+(_0x2b5c7a[_0x4191b2(0x1fc)][_0x4191b2(0x207)]||0xa),'interval':_0x4191b2(0x21d)}),respondWithRpcPromise(_0x4191b2(0x1f9),'startRouting',_0x2b5c7a);});return respondWithRpcPromise(_0x1faf5a(0x1f9),_0x1faf5a(0x216),_0x2b5c7a);})['then'](function(_0x19dfb6){_0x4be231(_0x19dfb6);})['catch'](function(_0x22bf6a){const _0x99890c=_0xce2834;_0xaa7337(_0x47673b[_0x99890c(0x233)](0x1f4,_0x22bf6a[_0x99890c(0x230)]));});});}; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.socket.js b/server/api/faxAccount/faxAccount.socket.js index 1e05b45..b91cedb 100644 --- a/server/api/faxAccount/faxAccount.socket.js +++ b/server/api/faxAccount/faxAccount.socket.js @@ -1 +1 @@ -const a227_0x3915=['emit','faxAccount:','./faxAccount.events','update','length','save'];(function(_0x1286fa,_0x255062){const _0x391575=function(_0x7fb97c){while(--_0x7fb97c){_0x1286fa['push'](_0x1286fa['shift']());}};_0x391575(++_0x255062);}(a227_0x3915,0x73));const a227_0x7fb9=function(_0x1286fa,_0x255062){_0x1286fa=_0x1286fa-0xda;let _0x391575=a227_0x3915[_0x1286fa];return _0x391575;};const a227_0x1a0c3e=a227_0x7fb9;'use strict';const FaxAccountEvents=require(a227_0x1a0c3e(0xdb)),events=[a227_0x1a0c3e(0xde),'remove',a227_0x1a0c3e(0xdc)];function createListener(_0xb8cd83,_0x4fb94f){return function(_0x2597c7){const _0x5de9c4=a227_0x7fb9;_0x4fb94f[_0x5de9c4(0xdf)](_0xb8cd83,_0x2597c7);};}exports['register']=function(_0x3d96a3){const _0xb87b92=a227_0x1a0c3e;for(let _0x32fd5a=0x0,_0x3dcab5=events[_0xb87b92(0xdd)];_0x32fd5a<_0x3dcab5;_0x32fd5a++){const _0x3b89ed=events[_0x32fd5a],_0x1bc1d8=createListener(_0xb87b92(0xda)+_0x3b89ed,_0x3d96a3);FaxAccountEvents['on'](_0x3b89ed,_0x1bc1d8);}}; \ No newline at end of file +const a227_0x593e=['save','faxAccount:','register','remove'];(function(_0x27503e,_0x536ff0){const _0x593ed6=function(_0x4d44bd){while(--_0x4d44bd){_0x27503e['push'](_0x27503e['shift']());}};_0x593ed6(++_0x536ff0);}(a227_0x593e,0x144));const a227_0x4d44=function(_0x27503e,_0x536ff0){_0x27503e=_0x27503e-0xbe;let _0x593ed6=a227_0x593e[_0x27503e];return _0x593ed6;};const a227_0x48ae0e=a227_0x4d44;'use strict';const FaxAccountEvents=require('./faxAccount.events'),events=[a227_0x48ae0e(0xbe),a227_0x48ae0e(0xc1),'update'];function createListener(_0x3e015c,_0x1e7d05){return function(_0x4f6b38){_0x1e7d05['emit'](_0x3e015c,_0x4f6b38);};}exports[a227_0x48ae0e(0xc0)]=function(_0xca163a){const _0x425870=a227_0x48ae0e;for(let _0x4cabce=0x0,_0x54b432=events['length'];_0x4cabce<_0x54b432;_0x4cabce++){const _0x3505d1=events[_0x4cabce],_0x417eca=createListener(_0x425870(0xbf)+_0x3505d1,_0xca163a);FaxAccountEvents['on'](_0x3505d1,_0x417eca);}}; \ No newline at end of file diff --git a/server/api/faxAccount/index.js b/server/api/faxAccount/index.js index f2f4fe9..7c360a9 100644 --- a/server/api/faxAccount/index.js +++ b/server/api/faxAccount/index.js @@ -1 +1 @@ -const a228_0x19c0=['/:id/applications','/:id/canned_answers','index','removeDispositions','addAgents','delete','/:id/messages','addInteraction','describe','getAnswers','/:id/users','post','exports','removeAnswers','addAnswer','update','addDisposition','updateAccountApplications','addApplications','/:id/dispositions','show','removeAgents','getMessages','destroy','addAccountApplications','getApplications','isAuthenticated','send','get','put','/:id','create','getDispositions','./faxAccount.controller','/:id/send','/updateaccountapplications','Router','/addaccountapplications'];(function(_0x151a64,_0x1c7842){const _0x19c0a1=function(_0x3f9ebe){while(--_0x3f9ebe){_0x151a64['push'](_0x151a64['shift']());}};_0x19c0a1(++_0x1c7842);}(a228_0x19c0,0x16e));const a228_0x3f9e=function(_0x151a64,_0x1c7842){_0x151a64=_0x151a64-0x104;let _0x19c0a1=a228_0x19c0[_0x151a64];return _0x19c0a1;};const a228_0x534a79=a228_0x3f9e;'use strict';const express=require('express'),router=express[a228_0x534a79(0x110)](),auth=require('../../components/auth/service'),controller=require(a228_0x534a79(0x10d));router[a228_0x534a79(0x108)]('/',auth[a228_0x534a79(0x106)](),controller[a228_0x534a79(0x114)]),router[a228_0x534a79(0x108)]('/describe',auth[a228_0x534a79(0x106)](),controller[a228_0x534a79(0x11a)]),router[a228_0x534a79(0x108)](a228_0x534a79(0x10a),auth[a228_0x534a79(0x106)](),controller[a228_0x534a79(0x126)]),router[a228_0x534a79(0x108)](a228_0x534a79(0x125),auth[a228_0x534a79(0x106)](),controller[a228_0x534a79(0x10c)]),router['get'](a228_0x534a79(0x113),auth['isAuthenticated'](),controller[a228_0x534a79(0x11b)]),router[a228_0x534a79(0x108)]('/:id/interactions',auth['isAuthenticated'](),controller['getInteractions']),router[a228_0x534a79(0x108)](a228_0x534a79(0x112),auth[a228_0x534a79(0x106)](),controller[a228_0x534a79(0x105)]),router[a228_0x534a79(0x108)](a228_0x534a79(0x118),auth['isAuthenticated'](),controller[a228_0x534a79(0x128)]),router['get'](a228_0x534a79(0x11c),auth[a228_0x534a79(0x106)](),controller['getAgents']),router[a228_0x534a79(0x11d)]('/',auth[a228_0x534a79(0x106)](),controller[a228_0x534a79(0x10b)]),router['post'](a228_0x534a79(0x125),auth[a228_0x534a79(0x106)](),controller[a228_0x534a79(0x122)]),router['post'](a228_0x534a79(0x113),auth['isAuthenticated'](),controller[a228_0x534a79(0x120)]),router['post']('/:id/interactions',auth[a228_0x534a79(0x106)](),controller[a228_0x534a79(0x119)]),router['post'](a228_0x534a79(0x112),auth['isAuthenticated'](),controller[a228_0x534a79(0x124)]),router[a228_0x534a79(0x11d)](a228_0x534a79(0x111),auth['isAuthenticated'](),controller[a228_0x534a79(0x104)]),router[a228_0x534a79(0x11d)](a228_0x534a79(0x10f),auth[a228_0x534a79(0x106)](),controller[a228_0x534a79(0x123)]),router[a228_0x534a79(0x11d)](a228_0x534a79(0x10e),auth[a228_0x534a79(0x106)](),controller[a228_0x534a79(0x107)]),router[a228_0x534a79(0x11d)](a228_0x534a79(0x11c),auth[a228_0x534a79(0x106)](),controller[a228_0x534a79(0x116)]),router[a228_0x534a79(0x109)](a228_0x534a79(0x10a),auth[a228_0x534a79(0x106)](),controller[a228_0x534a79(0x121)]),router[a228_0x534a79(0x117)]('/:id',auth['isAuthenticated'](),controller[a228_0x534a79(0x129)]),router[a228_0x534a79(0x117)](a228_0x534a79(0x125),auth['isAuthenticated'](),controller[a228_0x534a79(0x115)]),router['delete'](a228_0x534a79(0x113),auth['isAuthenticated'](),controller[a228_0x534a79(0x11f)]),router['delete'](a228_0x534a79(0x11c),auth[a228_0x534a79(0x106)](),controller[a228_0x534a79(0x127)]),module[a228_0x534a79(0x11e)]=router; \ No newline at end of file +const a228_0x4c04=['/:id/canned_answers','addAnswer','post','send','/:id/users','getAgents','index','express','update','/:id/applications','removeDispositions','/:id','/:id/messages','delete','addAccountApplications','Router','../../components/auth/service','/updateaccountapplications','getMessages','/:id/interactions','put','destroy','exports','addAgents','/describe','getDispositions','getAnswers','get','show','removeAgents','/:id/dispositions','isAuthenticated','getApplications','addApplications','/:id/send','create'];(function(_0x22396c,_0x31d404){const _0x4c0475=function(_0x2aa592){while(--_0x2aa592){_0x22396c['push'](_0x22396c['shift']());}};_0x4c0475(++_0x31d404);}(a228_0x4c04,0x83));const a228_0x2aa5=function(_0x22396c,_0x31d404){_0x22396c=_0x22396c-0x17c;let _0x4c0475=a228_0x4c04[_0x22396c];return _0x4c0475;};const a228_0x4f7196=a228_0x2aa5;'use strict';const express=require(a228_0x4f7196(0x190)),router=express[a228_0x4f7196(0x198)](),auth=require(a228_0x4f7196(0x199)),controller=require('./faxAccount.controller');router[a228_0x4f7196(0x180)]('/',auth[a228_0x4f7196(0x184)](),controller[a228_0x4f7196(0x18f)]),router[a228_0x4f7196(0x180)](a228_0x4f7196(0x17d),auth[a228_0x4f7196(0x184)](),controller['describe']),router[a228_0x4f7196(0x180)]('/:id',auth[a228_0x4f7196(0x184)](),controller[a228_0x4f7196(0x181)]),router[a228_0x4f7196(0x180)](a228_0x4f7196(0x183),auth['isAuthenticated'](),controller[a228_0x4f7196(0x17e)]),router[a228_0x4f7196(0x180)](a228_0x4f7196(0x189),auth[a228_0x4f7196(0x184)](),controller[a228_0x4f7196(0x17f)]),router[a228_0x4f7196(0x180)](a228_0x4f7196(0x19c),auth['isAuthenticated'](),controller['getInteractions']),router['get']('/:id/applications',auth[a228_0x4f7196(0x184)](),controller[a228_0x4f7196(0x185)]),router[a228_0x4f7196(0x180)](a228_0x4f7196(0x195),auth[a228_0x4f7196(0x184)](),controller[a228_0x4f7196(0x19b)]),router[a228_0x4f7196(0x180)](a228_0x4f7196(0x18d),auth[a228_0x4f7196(0x184)](),controller[a228_0x4f7196(0x18e)]),router[a228_0x4f7196(0x18b)]('/',auth[a228_0x4f7196(0x184)](),controller[a228_0x4f7196(0x188)]),router[a228_0x4f7196(0x18b)](a228_0x4f7196(0x183),auth[a228_0x4f7196(0x184)](),controller['addDisposition']),router['post']('/:id/canned_answers',auth['isAuthenticated'](),controller[a228_0x4f7196(0x18a)]),router[a228_0x4f7196(0x18b)]('/:id/interactions',auth[a228_0x4f7196(0x184)](),controller['addInteraction']),router[a228_0x4f7196(0x18b)](a228_0x4f7196(0x192),auth[a228_0x4f7196(0x184)](),controller[a228_0x4f7196(0x186)]),router[a228_0x4f7196(0x18b)]('/addaccountapplications',auth['isAuthenticated'](),controller[a228_0x4f7196(0x197)]),router[a228_0x4f7196(0x18b)](a228_0x4f7196(0x19a),auth[a228_0x4f7196(0x184)](),controller['updateAccountApplications']),router['post'](a228_0x4f7196(0x187),auth[a228_0x4f7196(0x184)](),controller[a228_0x4f7196(0x18c)]),router[a228_0x4f7196(0x18b)](a228_0x4f7196(0x18d),auth[a228_0x4f7196(0x184)](),controller[a228_0x4f7196(0x17c)]),router[a228_0x4f7196(0x19d)](a228_0x4f7196(0x194),auth[a228_0x4f7196(0x184)](),controller[a228_0x4f7196(0x191)]),router[a228_0x4f7196(0x196)](a228_0x4f7196(0x194),auth[a228_0x4f7196(0x184)](),controller[a228_0x4f7196(0x19e)]),router[a228_0x4f7196(0x196)](a228_0x4f7196(0x183),auth[a228_0x4f7196(0x184)](),controller[a228_0x4f7196(0x193)]),router[a228_0x4f7196(0x196)]('/:id/canned_answers',auth[a228_0x4f7196(0x184)](),controller['removeAnswers']),router[a228_0x4f7196(0x196)]('/:id/users',auth['isAuthenticated'](),controller[a228_0x4f7196(0x182)]),module[a228_0x4f7196(0x19f)]=router; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.attributes.js b/server/api/faxApplication/faxApplication.attributes.js index 0c8d335..f16617c 100644 --- a/server/api/faxApplication/faxApplication.attributes.js +++ b/server/api/faxApplication/faxApplication.attributes.js @@ -1 +1 @@ -const a229_0x2cc5=['sequelize','exports','noop','attributes','INTEGER','STRING'];(function(_0x5cd9af,_0x4e5a3f){const _0x2cc5d7=function(_0x531ad3){while(--_0x531ad3){_0x5cd9af['push'](_0x5cd9af['shift']());}};_0x2cc5d7(++_0x4e5a3f);}(a229_0x2cc5,0x158));const a229_0x531a=function(_0x5cd9af,_0x4e5a3f){_0x5cd9af=_0x5cd9af-0xb2;let _0x2cc5d7=a229_0x2cc5[_0x5cd9af];return _0x2cc5d7;};const a229_0x2e2ebb=a229_0x531a;'use strict';const {DataTypes}=require(a229_0x2e2ebb(0xb6)),attributes={'priority':{'type':DataTypes[a229_0x2e2ebb(0xb4)],'allowNull':![]},'app':{'type':DataTypes[a229_0x2e2ebb(0xb5)],'allowNull':![],'defaultValue':a229_0x2e2ebb(0xb2)},'appdata':{'type':DataTypes['TEXT']()},'description':{'type':DataTypes['STRING']},'interval':{'type':DataTypes[a229_0x2e2ebb(0xb5)],'defaultValue':'*,*,*,*'}};module[a229_0x2e2ebb(0xb7)][a229_0x2e2ebb(0xb3)]=attributes; \ No newline at end of file +const a229_0x5d33=['exports','noop','STRING','attributes','sequelize','INTEGER'];(function(_0x1051ed,_0xcf4d69){const _0x5d3311=function(_0x28450b){while(--_0x28450b){_0x1051ed['push'](_0x1051ed['shift']());}};_0x5d3311(++_0xcf4d69);}(a229_0x5d33,0x1a9));const a229_0x2845=function(_0x1051ed,_0xcf4d69){_0x1051ed=_0x1051ed-0x1a0;let _0x5d3311=a229_0x5d33[_0x1051ed];return _0x5d3311;};const a229_0x39df9e=a229_0x2845;'use strict';const {DataTypes}=require(a229_0x39df9e(0x1a5)),attributes={'priority':{'type':DataTypes[a229_0x39df9e(0x1a0)],'allowNull':![]},'app':{'type':DataTypes[a229_0x39df9e(0x1a3)],'allowNull':![],'defaultValue':a229_0x39df9e(0x1a2)},'appdata':{'type':DataTypes['TEXT']()},'description':{'type':DataTypes['STRING']},'interval':{'type':DataTypes['STRING'],'defaultValue':'*,*,*,*'}};module[a229_0x39df9e(0x1a1)][a229_0x39df9e(0x1a4)]=attributes; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.controller.js b/server/api/faxApplication/faxApplication.controller.js index f70dea4..cde5927 100644 --- a/server/api/faxApplication/faxApplication.controller.js +++ b/server/api/faxApplication/faxApplication.controller.js @@ -1 +1 @@ -const a230_0x4398=['findAll','map','attributes','../../mysqldb','count','fields','json','type','where','name','Content-Range','include','order','../../config/logger','merge','stack','findOne','status','nolimit','destroy','offset','../../components/parsers/qs','pick','sort','send','body','update','query','fieldName','filters','filter','undefined','params','rows','FaxApplication','then','VIRTUAL','create','show','catch','rawAttributes','error','like','includeAll','options','limit','key','keys','set','model','intersection','index'];(function(_0x453a9c,_0x52d2ba){const _0x4398b8=function(_0x4fec1d){while(--_0x4fec1d){_0x453a9c['push'](_0x453a9c['shift']());}};_0x4398b8(++_0x52d2ba);}(a230_0x4398,0x6c));const a230_0x4fec=function(_0x453a9c,_0x52d2ba){_0x453a9c=_0x453a9c-0x76;let _0x4398b8=a230_0x4398[_0x453a9c];return _0x4398b8;};const a230_0x2ba1da=a230_0x4fec;'use strict';const _=require('lodash'),qs=require(a230_0x2ba1da(0x87)),logger=require(a230_0x2ba1da(0x7f))('api'),{db}=require(a230_0x2ba1da(0xa9)),{Op}=require('sequelize');function respondWithResult(_0x2867fb,_0x1c47db){return _0x1c47db=_0x1c47db||0xc8,function(_0x33fadd){if(_0x33fadd)return _0x2867fb['status'](_0x1c47db)['json'](_0x33fadd);};}function respondWithFilteredResult(_0x15e083,_0xe76992){return function(_0x5798b6){const _0xbfdf42=a230_0x4fec;if(_0x5798b6){const _0x3b73cf=_0x5798b6[_0xbfdf42(0x76)],_0x426624=_0xe76992[_0xbfdf42(0x86)];let _0x10ca63=_0xe76992[_0xbfdf42(0x86)]+_0xe76992[_0xbfdf42(0x9f)],_0x248133;return _0x10ca63>=_0x3b73cf?(_0x10ca63=_0x3b73cf,_0x248133=0xc8):_0x248133=0xce,_0x15e083[_0xbfdf42(0x83)](_0x248133),_0x15e083[_0xbfdf42(0xa2)](_0xbfdf42(0x7c),_0x426624+'-'+_0x10ca63+'/'+_0x3b73cf)[_0xbfdf42(0x78)](_0x5798b6);}return null;};}function saveUpdates(_0x311eaf){return function(_0x57ed77){const _0x2f1375=a230_0x4fec;if(_0x57ed77)return _0x57ed77[_0x2f1375(0x8c)](_0x311eaf)['then'](function(_0x4a94c1){return _0x4a94c1;});return null;};}function removeEntity(_0x1fac03){return function(_0x5f39b6){const _0x2c52dd=a230_0x4fec;if(_0x5f39b6)return _0x5f39b6[_0x2c52dd(0x85)]()[_0x2c52dd(0x95)](function(){const _0x1faf03=_0x2c52dd;_0x1fac03[_0x1faf03(0x83)](0xcc)['end']();});};}function handleEntityNotFound(_0x588f79){return function(_0xf27669){return!_0xf27669&&_0x588f79['sendStatus'](0x194),_0xf27669;};}function handleError(_0x2799da,_0x5640f9){return _0x5640f9=_0x5640f9||0x1f4,function(_0xcc8cdf){const _0x28820c=a230_0x4fec;logger[_0x28820c(0x9b)](_0xcc8cdf[_0x28820c(0x81)]),_0xcc8cdf[_0x28820c(0x7b)]&&delete _0xcc8cdf['name'],_0x2799da[_0x28820c(0x83)](_0x5640f9)[_0x28820c(0x8a)](_0xcc8cdf);};}exports[a230_0x2ba1da(0xa5)]=function(_0x372ad5,_0xad19d){const _0x2f8d5b=a230_0x2ba1da;let _0x2f1e03={};const _0x389f50={},_0x40b9f6={'count':0x0,'rows':[]},_0x5786ef=_[_0x2f8d5b(0xa7)](db[_0x2f8d5b(0x94)][_0x2f8d5b(0x9a)],function(_0x26b127){const _0x4c258a=_0x2f8d5b;return{'name':_0x26b127[_0x4c258a(0x8e)],'type':_0x26b127['type'][_0x4c258a(0xa0)]};});_0x389f50['model']=_['map'](_0x5786ef,_0x2f8d5b(0x7b)),_0x389f50[_0x2f8d5b(0x8d)]=_[_0x2f8d5b(0xa1)](_0x372ad5[_0x2f8d5b(0x8d)]),_0x389f50[_0x2f8d5b(0x8f)]=_['intersection'](_0x389f50[_0x2f8d5b(0xa3)],_0x389f50[_0x2f8d5b(0x8d)]),_0x2f1e03[_0x2f8d5b(0xa8)]=_[_0x2f8d5b(0xa4)](_0x389f50[_0x2f8d5b(0xa3)],qs['fields'](_0x372ad5[_0x2f8d5b(0x8d)][_0x2f8d5b(0x77)])),_0x2f1e03[_0x2f8d5b(0xa8)]=_0x2f1e03['attributes']['length']?_0x2f1e03[_0x2f8d5b(0xa8)]:_0x389f50[_0x2f8d5b(0xa3)];typeof _0x372ad5[_0x2f8d5b(0x8d)][_0x2f8d5b(0x84)]===_0x2f8d5b(0x91)&&(_0x2f1e03[_0x2f8d5b(0x9f)]=qs[_0x2f8d5b(0x9f)](_0x372ad5[_0x2f8d5b(0x8d)][_0x2f8d5b(0x9f)]),_0x2f1e03[_0x2f8d5b(0x86)]=qs['offset'](_0x372ad5[_0x2f8d5b(0x8d)][_0x2f8d5b(0x86)]));_0x2f1e03[_0x2f8d5b(0x7e)]=qs[_0x2f8d5b(0x89)](_0x372ad5[_0x2f8d5b(0x8d)]['sort']),_0x2f1e03[_0x2f8d5b(0x7a)]=qs[_0x2f8d5b(0x8f)](_[_0x2f8d5b(0x88)](_0x372ad5[_0x2f8d5b(0x8d)],_0x389f50['filters']),_0x5786ef);_0x372ad5[_0x2f8d5b(0x8d)][_0x2f8d5b(0x90)]&&(_0x2f1e03['where']=_['merge'](_0x2f1e03[_0x2f8d5b(0x7a)],{[Op['or']]:_[_0x2f8d5b(0xa7)](_0x5786ef,function(_0x3ff74d){const _0x37f97f=_0x2f8d5b;if(_0x3ff74d[_0x37f97f(0x79)]!==_0x37f97f(0x96)){const _0x18ba05={};return _0x18ba05[_0x3ff74d[_0x37f97f(0x7b)]]={[Op[_0x37f97f(0x9c)]]:'%'+_0x372ad5[_0x37f97f(0x8d)][_0x37f97f(0x90)]+'%'},_0x18ba05;}})}));_0x2f1e03=_[_0x2f8d5b(0x80)]({},_0x2f1e03,_0x372ad5[_0x2f8d5b(0x9e)]);const _0x42891d={'where':_0x2f1e03[_0x2f8d5b(0x7a)]};return db[_0x2f8d5b(0x94)][_0x2f8d5b(0x76)](_0x42891d)['then'](function(_0x4ea0ca){const _0x11f792=_0x2f8d5b;return _0x40b9f6[_0x11f792(0x76)]=_0x4ea0ca,_0x372ad5[_0x11f792(0x8d)][_0x11f792(0x9d)]&&(_0x2f1e03[_0x11f792(0x7d)]=[{'all':!![]}]),db['FaxApplication'][_0x11f792(0xa6)](_0x2f1e03);})[_0x2f8d5b(0x95)](function(_0xbc2734){const _0x7d79c2=_0x2f8d5b;return _0x40b9f6[_0x7d79c2(0x93)]=_0xbc2734,_0x40b9f6;})['then'](respondWithFilteredResult(_0xad19d,_0x2f1e03))[_0x2f8d5b(0x99)](handleError(_0xad19d,null));},exports[a230_0x2ba1da(0x98)]=function(_0x1026cf,_0xfc2981){const _0x2da846=a230_0x2ba1da;let _0x1385b2={'raw':!![],'where':{'id':_0x1026cf[_0x2da846(0x92)]['id']}};const _0x2f763a={};return _0x2f763a[_0x2da846(0xa3)]=_[_0x2da846(0xa1)](db[_0x2da846(0x94)][_0x2da846(0x9a)]),_0x2f763a[_0x2da846(0x8d)]=_[_0x2da846(0xa1)](_0x1026cf['query']),_0x2f763a[_0x2da846(0x8f)]=_[_0x2da846(0xa4)](_0x2f763a[_0x2da846(0xa3)],_0x2f763a[_0x2da846(0x8d)]),_0x1385b2['attributes']=_[_0x2da846(0xa4)](_0x2f763a[_0x2da846(0xa3)],qs[_0x2da846(0x77)](_0x1026cf['query']['fields'])),_0x1385b2['attributes']=_0x1385b2[_0x2da846(0xa8)]['length']?_0x1385b2['attributes']:_0x2f763a['model'],_0x1026cf[_0x2da846(0x8d)]['includeAll']&&(_0x1385b2[_0x2da846(0x7d)]=[{'all':!![]}]),_0x1385b2=_[_0x2da846(0x80)]({},_0x1385b2,_0x1026cf[_0x2da846(0x9e)]),db[_0x2da846(0x94)][_0x2da846(0x82)](_0x1385b2)['then'](handleEntityNotFound(_0xfc2981,null))[_0x2da846(0x95)](respondWithResult(_0xfc2981,null))[_0x2da846(0x99)](handleError(_0xfc2981,null));},exports[a230_0x2ba1da(0x97)]=function(_0x157544,_0xeb65b){const _0x146927=a230_0x2ba1da;return db[_0x146927(0x94)][_0x146927(0x97)](_0x157544['body'],{})[_0x146927(0x95)](respondWithResult(_0xeb65b,0xc9))[_0x146927(0x99)](handleError(_0xeb65b,null));},exports[a230_0x2ba1da(0x8c)]=function(_0x322591,_0x1e4019){const _0x592fff=a230_0x2ba1da;return _0x322591['body']['id']&&delete _0x322591[_0x592fff(0x8b)]['id'],db[_0x592fff(0x94)][_0x592fff(0x82)]({'where':{'id':_0x322591[_0x592fff(0x92)]['id']}})[_0x592fff(0x95)](handleEntityNotFound(_0x1e4019,null))[_0x592fff(0x95)](saveUpdates(_0x322591[_0x592fff(0x8b)],null))[_0x592fff(0x95)](respondWithResult(_0x1e4019,null))[_0x592fff(0x99)](handleError(_0x1e4019,null));},exports['destroy']=function(_0x293af8,_0x1c3ad2){const _0x112397=a230_0x2ba1da;return db[_0x112397(0x94)]['findOne']({'where':{'id':_0x293af8[_0x112397(0x92)]['id']}})[_0x112397(0x95)](handleEntityNotFound(_0x1c3ad2,null))[_0x112397(0x95)](removeEntity(_0x1c3ad2,null))[_0x112397(0x99)](handleError(_0x1c3ad2,null));}; \ No newline at end of file +const a230_0x2705=['sort','Content-Range','include','name','filter','lodash','filters','send','map','like','create','findOne','stack','keys','update','includeAll','model','options','../../config/logger','fieldName','params','status','rows','undefined','limit','index','json','VIRTUAL','count','destroy','../../mysqldb','show','nolimit','rawAttributes','body','query','fields','type','catch','length','api','intersection','end','error','findAll','offset','FaxApplication','merge','set','then','attributes','where'];(function(_0x1dd7b2,_0x48bd91){const _0x2705b1=function(_0x13e3b8){while(--_0x13e3b8){_0x1dd7b2['push'](_0x1dd7b2['shift']());}};_0x2705b1(++_0x48bd91);}(a230_0x2705,0x1a5));const a230_0x13e3=function(_0x1dd7b2,_0x48bd91){_0x1dd7b2=_0x1dd7b2-0x1f3;let _0x2705b1=a230_0x2705[_0x1dd7b2];return _0x2705b1;};const a230_0x2cccbf=a230_0x13e3;'use strict';const _=require(a230_0x2cccbf(0x1f3)),qs=require('../../components/parsers/qs'),logger=require(a230_0x2cccbf(0x200))(a230_0x2cccbf(0x216)),{db}=require(a230_0x2cccbf(0x20c)),{Op}=require('sequelize');function respondWithResult(_0x4804a4,_0x46824b){return _0x46824b=_0x46824b||0xc8,function(_0x180233){const _0x454445=a230_0x13e3;if(_0x180233)return _0x4804a4[_0x454445(0x203)](_0x46824b)[_0x454445(0x208)](_0x180233);};}function respondWithFilteredResult(_0x1b186b,_0x1bbdef){return function(_0x29c9ae){const _0x9a032b=a230_0x13e3;if(_0x29c9ae){const _0xfd619c=_0x29c9ae[_0x9a032b(0x20a)],_0x46b95b=_0x1bbdef[_0x9a032b(0x21b)];let _0x2b1d35=_0x1bbdef[_0x9a032b(0x21b)]+_0x1bbdef[_0x9a032b(0x206)],_0xba2933;return _0x2b1d35>=_0xfd619c?(_0x2b1d35=_0xfd619c,_0xba2933=0xc8):_0xba2933=0xce,_0x1b186b[_0x9a032b(0x203)](_0xba2933),_0x1b186b[_0x9a032b(0x21e)](_0x9a032b(0x223),_0x46b95b+'-'+_0x2b1d35+'/'+_0xfd619c)[_0x9a032b(0x208)](_0x29c9ae);}return null;};}function saveUpdates(_0x3d131f){return function(_0xbef948){const _0x15ac4b=a230_0x13e3;if(_0xbef948)return _0xbef948[_0x15ac4b(0x1fc)](_0x3d131f)[_0x15ac4b(0x21f)](function(_0x44dcca){return _0x44dcca;});return null;};}function removeEntity(_0x381af5){return function(_0x4c49a8){const _0x192739=a230_0x13e3;if(_0x4c49a8)return _0x4c49a8[_0x192739(0x20b)]()[_0x192739(0x21f)](function(){const _0x46344d=_0x192739;_0x381af5[_0x46344d(0x203)](0xcc)[_0x46344d(0x218)]();});};}function handleEntityNotFound(_0x38d00b){return function(_0x47444f){return!_0x47444f&&_0x38d00b['sendStatus'](0x194),_0x47444f;};}function handleError(_0x3f6cba,_0x4c77e3){return _0x4c77e3=_0x4c77e3||0x1f4,function(_0x5ef597){const _0x24de29=a230_0x13e3;logger[_0x24de29(0x219)](_0x5ef597[_0x24de29(0x1fa)]),_0x5ef597[_0x24de29(0x225)]&&delete _0x5ef597[_0x24de29(0x225)],_0x3f6cba['status'](_0x4c77e3)[_0x24de29(0x1f5)](_0x5ef597);};}exports[a230_0x2cccbf(0x207)]=function(_0x55cf1a,_0x4ef20a){const _0x89db92=a230_0x2cccbf;let _0x57e5ed={};const _0xd9e8e9={},_0x480a50={'count':0x0,'rows':[]},_0x407595=_[_0x89db92(0x1f6)](db[_0x89db92(0x21c)][_0x89db92(0x20f)],function(_0x5665fc){const _0x5841ab=_0x89db92;return{'name':_0x5665fc[_0x5841ab(0x201)],'type':_0x5665fc[_0x5841ab(0x213)]['key']};});_0xd9e8e9[_0x89db92(0x1fe)]=_[_0x89db92(0x1f6)](_0x407595,_0x89db92(0x225)),_0xd9e8e9[_0x89db92(0x211)]=_[_0x89db92(0x1fb)](_0x55cf1a['query']),_0xd9e8e9[_0x89db92(0x1f4)]=_['intersection'](_0xd9e8e9[_0x89db92(0x1fe)],_0xd9e8e9['query']),_0x57e5ed['attributes']=_[_0x89db92(0x217)](_0xd9e8e9['model'],qs[_0x89db92(0x212)](_0x55cf1a[_0x89db92(0x211)][_0x89db92(0x212)])),_0x57e5ed[_0x89db92(0x220)]=_0x57e5ed[_0x89db92(0x220)][_0x89db92(0x215)]?_0x57e5ed[_0x89db92(0x220)]:_0xd9e8e9['model'];typeof _0x55cf1a[_0x89db92(0x211)][_0x89db92(0x20e)]===_0x89db92(0x205)&&(_0x57e5ed[_0x89db92(0x206)]=qs['limit'](_0x55cf1a[_0x89db92(0x211)][_0x89db92(0x206)]),_0x57e5ed[_0x89db92(0x21b)]=qs[_0x89db92(0x21b)](_0x55cf1a[_0x89db92(0x211)][_0x89db92(0x21b)]));_0x57e5ed['order']=qs[_0x89db92(0x222)](_0x55cf1a[_0x89db92(0x211)][_0x89db92(0x222)]),_0x57e5ed[_0x89db92(0x221)]=qs[_0x89db92(0x1f4)](_['pick'](_0x55cf1a[_0x89db92(0x211)],_0xd9e8e9[_0x89db92(0x1f4)]),_0x407595);_0x55cf1a['query'][_0x89db92(0x226)]&&(_0x57e5ed[_0x89db92(0x221)]=_[_0x89db92(0x21d)](_0x57e5ed['where'],{[Op['or']]:_[_0x89db92(0x1f6)](_0x407595,function(_0xdd93ac){const _0x3f59fc=_0x89db92;if(_0xdd93ac['type']!==_0x3f59fc(0x209)){const _0x62d4d={};return _0x62d4d[_0xdd93ac[_0x3f59fc(0x225)]]={[Op[_0x3f59fc(0x1f7)]]:'%'+_0x55cf1a[_0x3f59fc(0x211)][_0x3f59fc(0x226)]+'%'},_0x62d4d;}})}));_0x57e5ed=_['merge']({},_0x57e5ed,_0x55cf1a[_0x89db92(0x1ff)]);const _0x50977c={'where':_0x57e5ed['where']};return db['FaxApplication'][_0x89db92(0x20a)](_0x50977c)[_0x89db92(0x21f)](function(_0x2a676e){const _0x171731=_0x89db92;return _0x480a50['count']=_0x2a676e,_0x55cf1a['query'][_0x171731(0x1fd)]&&(_0x57e5ed[_0x171731(0x224)]=[{'all':!![]}]),db['FaxApplication'][_0x171731(0x21a)](_0x57e5ed);})['then'](function(_0x286f96){const _0x30360e=_0x89db92;return _0x480a50[_0x30360e(0x204)]=_0x286f96,_0x480a50;})[_0x89db92(0x21f)](respondWithFilteredResult(_0x4ef20a,_0x57e5ed))[_0x89db92(0x214)](handleError(_0x4ef20a,null));},exports[a230_0x2cccbf(0x20d)]=function(_0x242d84,_0x168a7d){const _0x36a08c=a230_0x2cccbf;let _0x1be785={'raw':!![],'where':{'id':_0x242d84[_0x36a08c(0x202)]['id']}};const _0x95faa2={};return _0x95faa2[_0x36a08c(0x1fe)]=_[_0x36a08c(0x1fb)](db[_0x36a08c(0x21c)][_0x36a08c(0x20f)]),_0x95faa2[_0x36a08c(0x211)]=_[_0x36a08c(0x1fb)](_0x242d84[_0x36a08c(0x211)]),_0x95faa2[_0x36a08c(0x1f4)]=_['intersection'](_0x95faa2[_0x36a08c(0x1fe)],_0x95faa2['query']),_0x1be785[_0x36a08c(0x220)]=_[_0x36a08c(0x217)](_0x95faa2['model'],qs[_0x36a08c(0x212)](_0x242d84[_0x36a08c(0x211)][_0x36a08c(0x212)])),_0x1be785[_0x36a08c(0x220)]=_0x1be785['attributes'][_0x36a08c(0x215)]?_0x1be785['attributes']:_0x95faa2['model'],_0x242d84['query'][_0x36a08c(0x1fd)]&&(_0x1be785['include']=[{'all':!![]}]),_0x1be785=_[_0x36a08c(0x21d)]({},_0x1be785,_0x242d84[_0x36a08c(0x1ff)]),db[_0x36a08c(0x21c)]['findOne'](_0x1be785)[_0x36a08c(0x21f)](handleEntityNotFound(_0x168a7d,null))[_0x36a08c(0x21f)](respondWithResult(_0x168a7d,null))[_0x36a08c(0x214)](handleError(_0x168a7d,null));},exports[a230_0x2cccbf(0x1f8)]=function(_0x43f6f6,_0x5f41a3){const _0x18ffb5=a230_0x2cccbf;return db['FaxApplication'][_0x18ffb5(0x1f8)](_0x43f6f6[_0x18ffb5(0x210)],{})['then'](respondWithResult(_0x5f41a3,0xc9))[_0x18ffb5(0x214)](handleError(_0x5f41a3,null));},exports[a230_0x2cccbf(0x1fc)]=function(_0x4cd6f5,_0x212d24){const _0x5518bb=a230_0x2cccbf;return _0x4cd6f5[_0x5518bb(0x210)]['id']&&delete _0x4cd6f5[_0x5518bb(0x210)]['id'],db['FaxApplication'][_0x5518bb(0x1f9)]({'where':{'id':_0x4cd6f5[_0x5518bb(0x202)]['id']}})[_0x5518bb(0x21f)](handleEntityNotFound(_0x212d24,null))[_0x5518bb(0x21f)](saveUpdates(_0x4cd6f5[_0x5518bb(0x210)],null))['then'](respondWithResult(_0x212d24,null))['catch'](handleError(_0x212d24,null));},exports[a230_0x2cccbf(0x20b)]=function(_0x1ac7b7,_0x4f6fa4){const _0x11df91=a230_0x2cccbf;return db[_0x11df91(0x21c)][_0x11df91(0x1f9)]({'where':{'id':_0x1ac7b7[_0x11df91(0x202)]['id']}})['then'](handleEntityNotFound(_0x4f6fa4,null))['then'](removeEntity(_0x4f6fa4,null))['catch'](handleError(_0x4f6fa4,null));}; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.model.js b/server/api/faxApplication/faxApplication.model.js index a8bd8fa..dd681c4 100644 --- a/server/api/faxApplication/faxApplication.model.js +++ b/server/api/faxApplication/faxApplication.model.js @@ -1 +1 @@ -const a231_0x5540=['function','FaxApplication','./faxApplication.attributes','sequelize','init','exports'];(function(_0x5840f4,_0x45bab5){const _0x5540a0=function(_0x5f2433){while(--_0x5f2433){_0x5840f4['push'](_0x5840f4['shift']());}};_0x5540a0(++_0x45bab5);}(a231_0x5540,0x73));const a231_0x5f24=function(_0x5840f4,_0x45bab5){_0x5840f4=_0x5840f4-0x1be;let _0x5540a0=a231_0x5540[_0x5840f4];return _0x5540a0;};const a231_0x20c1c3=a231_0x5f24;'use strict';const {Model}=require(a231_0x20c1c3(0x1c0)),{attributes}=require(a231_0x20c1c3(0x1bf)),{options}=require('./faxApplication.options');class FaxApplication extends Model{}function init(_0x5d480d,_0x18d62d){const _0xb3083=a231_0x20c1c3,_0x3c5687=options(_0x5d480d),_0x3f71e9=typeof _0x18d62d===_0xb3083(0x1c3)?_0x18d62d(_0x3c5687):_0x3c5687;return FaxApplication[_0xb3083(0x1c1)](attributes,_0x3f71e9),FaxApplication;}module[a231_0x20c1c3(0x1c2)][a231_0x20c1c3(0x1be)]=FaxApplication,module[a231_0x20c1c3(0x1c2)][a231_0x20c1c3(0x1c1)]=init; \ No newline at end of file +const a231_0x33a9=['init','exports','function','./faxApplication.attributes','./faxApplication.options','FaxApplication','sequelize'];(function(_0x245287,_0x5c2496){const _0x33a9e2=function(_0x3e1f6c){while(--_0x3e1f6c){_0x245287['push'](_0x245287['shift']());}};_0x33a9e2(++_0x5c2496);}(a231_0x33a9,0x13c));const a231_0x3e1f=function(_0x245287,_0x5c2496){_0x245287=_0x245287-0x120;let _0x33a9e2=a231_0x33a9[_0x245287];return _0x33a9e2;};const a231_0x26fc59=a231_0x3e1f;'use strict';const {Model}=require(a231_0x26fc59(0x125)),{attributes}=require(a231_0x26fc59(0x122)),{options}=require(a231_0x26fc59(0x123));class FaxApplication extends Model{}function init(_0x990509,_0x597d76){const _0x235747=a231_0x26fc59,_0x3ed57f=options(_0x990509),_0x2edf1c=typeof _0x597d76===_0x235747(0x121)?_0x597d76(_0x3ed57f):_0x3ed57f;return FaxApplication[_0x235747(0x126)](attributes,_0x2edf1c),FaxApplication;}module[a231_0x26fc59(0x120)][a231_0x26fc59(0x124)]=FaxApplication,module['exports'][a231_0x26fc59(0x126)]=init; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.options.js b/server/api/faxApplication/faxApplication.options.js index 6ce3dec..572308e 100644 --- a/server/api/faxApplication/faxApplication.options.js +++ b/server/api/faxApplication/faxApplication.options.js @@ -1 +1 @@ -var a232_0x49ee=['exports'];(function(_0xfa09ed,_0xa17b79){var _0x49eeed=function(_0x55cd9e){while(--_0x55cd9e){_0xfa09ed['push'](_0xfa09ed['shift']());}};_0x49eeed(++_0xa17b79);}(a232_0x49ee,0x1bf));var a232_0x55cd=function(_0xfa09ed,_0xa17b79){_0xfa09ed=_0xfa09ed-0x120;var _0x49eeed=a232_0x49ee[_0xfa09ed];return _0x49eeed;};var a232_0x43501e=a232_0x55cd;function options(_0x197937){return{'sequelize':_0x197937,'tableName':'fax_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'};}module[a232_0x43501e(0x120)]['options']=options; \ No newline at end of file +var a232_0x6467=['exports','utf8mb4','fax_applications','options','utf8mb4_unicode_ci'];(function(_0x528e42,_0x55a029){var _0x646783=function(_0x4257bc){while(--_0x4257bc){_0x528e42['push'](_0x528e42['shift']());}};_0x646783(++_0x55a029);}(a232_0x6467,0xce));var a232_0x4257=function(_0x528e42,_0x55a029){_0x528e42=_0x528e42-0xc9;var _0x646783=a232_0x6467[_0x528e42];return _0x646783;};var a232_0x621cc3=a232_0x4257;function options(_0x28c02f){var _0x2f74bc=a232_0x4257;return{'sequelize':_0x28c02f,'tableName':_0x2f74bc(0xca),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x2f74bc(0xc9),'collate':_0x2f74bc(0xcc)};}module[a232_0x621cc3(0xcd)][a232_0x621cc3(0xcb)]=options; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.rpc.js b/server/api/faxApplication/faxApplication.rpc.js index 917b801..93610b4 100644 --- a/server/api/faxApplication/faxApplication.rpc.js +++ b/server/api/faxApplication/faxApplication.rpc.js @@ -1 +1 @@ -const a233_0x16df=['options','raw','FaxApplication','body','stringify','message','where','error','UpdateFaxApplication','catch','rpc','then','../../mysqldb','../../config/logger','limit','attributes','update'];(function(_0x198931,_0x219500){const _0x16df26=function(_0x1cc601){while(--_0x1cc601){_0x198931['push'](_0x198931['shift']());}};_0x16df26(++_0x219500);}(a233_0x16df,0x18b));const a233_0x1cc6=function(_0x198931,_0x219500){_0x198931=_0x198931-0x1b9;let _0x16df26=a233_0x16df[_0x198931];return _0x16df26;};const a233_0x3b5874=a233_0x1cc6;'use strict';const db=require(a233_0x3b5874(0x1c1))['db'],logger=require(a233_0x3b5874(0x1c2))(a233_0x3b5874(0x1bf));exports[a233_0x3b5874(0x1bd)]=function(_0x535e4e){const _0x21b7e8=this;return new Promise(function(_0x4b71cc,_0x4ce3a8){const _0x48f1da=a233_0x1cc6;return db[_0x48f1da(0x1c8)][_0x48f1da(0x1c5)](_0x535e4e[_0x48f1da(0x1c9)],{'raw':_0x535e4e[_0x48f1da(0x1c6)]?_0x535e4e[_0x48f1da(0x1c6)][_0x48f1da(0x1c7)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x535e4e[_0x48f1da(0x1c6)]?_0x535e4e['options'][_0x48f1da(0x1bb)]||null:null,'attributes':_0x535e4e[_0x48f1da(0x1c6)]?_0x535e4e[_0x48f1da(0x1c6)][_0x48f1da(0x1c4)]||null:null,'limit':_0x535e4e['options']?_0x535e4e[_0x48f1da(0x1c6)][_0x48f1da(0x1c3)]||null:null})[_0x48f1da(0x1c0)](function(_0x50faef){const _0x5c503a=_0x48f1da;logger['info'](_0x5c503a(0x1bd),_0x535e4e),logger['debug'](_0x5c503a(0x1bd),_0x535e4e,JSON[_0x5c503a(0x1b9)](_0x50faef)),_0x4b71cc(_0x50faef);})[_0x48f1da(0x1be)](function(_0x77736b){const _0x316593=_0x48f1da;logger[_0x316593(0x1bc)](_0x316593(0x1bd),_0x77736b['message'],_0x535e4e),_0x4ce3a8(_0x21b7e8[_0x316593(0x1bc)](0x1f4,_0x77736b[_0x316593(0x1ba)]));});});}; \ No newline at end of file +const a233_0x1578=['where','raw','FaxApplication','debug','info','body','attributes','message','error','options','UpdateFaxApplication','../../mysqldb','rpc','limit','stringify'];(function(_0x29d30b,_0x378cb4){const _0x157811=function(_0x32cab3){while(--_0x32cab3){_0x29d30b['push'](_0x29d30b['shift']());}};_0x157811(++_0x378cb4);}(a233_0x1578,0xf8));const a233_0x32ca=function(_0x29d30b,_0x378cb4){_0x29d30b=_0x29d30b-0x18f;let _0x157811=a233_0x1578[_0x29d30b];return _0x157811;};const a233_0x4995de=a233_0x32ca;'use strict';const db=require(a233_0x4995de(0x192))['db'],logger=require('../../config/logger')(a233_0x4995de(0x193));exports['UpdateFaxApplication']=function(_0x59d1bb){const _0x5197f7=this;return new Promise(function(_0x5dcb6f,_0x3b6108){const _0xce8a85=a233_0x32ca;return db[_0xce8a85(0x198)]['update'](_0x59d1bb[_0xce8a85(0x19b)],{'raw':_0x59d1bb[_0xce8a85(0x190)]?_0x59d1bb[_0xce8a85(0x190)][_0xce8a85(0x197)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x59d1bb['options']?_0x59d1bb[_0xce8a85(0x190)][_0xce8a85(0x196)]||null:null,'attributes':_0x59d1bb[_0xce8a85(0x190)]?_0x59d1bb[_0xce8a85(0x190)][_0xce8a85(0x19c)]||null:null,'limit':_0x59d1bb['options']?_0x59d1bb[_0xce8a85(0x190)][_0xce8a85(0x194)]||null:null})['then'](function(_0x3273be){const _0x16d3c1=_0xce8a85;logger[_0x16d3c1(0x19a)](_0x16d3c1(0x191),_0x59d1bb),logger[_0x16d3c1(0x199)](_0x16d3c1(0x191),_0x59d1bb,JSON[_0x16d3c1(0x195)](_0x3273be)),_0x5dcb6f(_0x3273be);})['catch'](function(_0x4a69f6){const _0x1af0be=_0xce8a85;logger[_0x1af0be(0x18f)](_0x1af0be(0x191),_0x4a69f6[_0x1af0be(0x19d)],_0x59d1bb),_0x3b6108(_0x5197f7[_0x1af0be(0x18f)](0x1f4,_0x4a69f6[_0x1af0be(0x19d)]));});});}; \ No newline at end of file diff --git a/server/api/faxApplication/index.js b/server/api/faxApplication/index.js index bff2061..4fdc622 100644 --- a/server/api/faxApplication/index.js +++ b/server/api/faxApplication/index.js @@ -1 +1 @@ -const a234_0x1555=['destroy','show','./faxApplication.controller','isAuthenticated','exports','Router','put','get','post','/:id','delete','update'];(function(_0x3cd976,_0x458af1){const _0x155557=function(_0x413471){while(--_0x413471){_0x3cd976['push'](_0x3cd976['shift']());}};_0x155557(++_0x458af1);}(a234_0x1555,0x197));const a234_0x4134=function(_0x3cd976,_0x458af1){_0x3cd976=_0x3cd976-0x1e3;let _0x155557=a234_0x1555[_0x3cd976];return _0x155557;};const a234_0x4ac383=a234_0x4134;'use strict';const express=require('express'),router=express[a234_0x4ac383(0x1e9)](),auth=require('../../components/auth/service'),controller=require(a234_0x4ac383(0x1e6));router[a234_0x4ac383(0x1eb)]('/',auth[a234_0x4ac383(0x1e7)](),controller['index']),router[a234_0x4ac383(0x1eb)](a234_0x4ac383(0x1ed),auth[a234_0x4ac383(0x1e7)](),controller[a234_0x4ac383(0x1e5)]),router[a234_0x4ac383(0x1ec)]('/',auth['isAuthenticated'](),controller['create']),router[a234_0x4ac383(0x1ea)]('/:id',auth[a234_0x4ac383(0x1e7)](),controller[a234_0x4ac383(0x1e3)]),router[a234_0x4ac383(0x1ee)]('/:id',auth[a234_0x4ac383(0x1e7)](),controller[a234_0x4ac383(0x1e4)]),module[a234_0x4ac383(0x1e8)]=router; \ No newline at end of file +const a234_0xe7b5=['../../components/auth/service','show','exports','create','/:id','update','isAuthenticated','Router','delete','express','post','destroy'];(function(_0x2da63d,_0x402782){const _0xe7b529=function(_0x2ae1e5){while(--_0x2ae1e5){_0x2da63d['push'](_0x2da63d['shift']());}};_0xe7b529(++_0x402782);}(a234_0xe7b5,0x1e2));const a234_0x2ae1=function(_0x2da63d,_0x402782){_0x2da63d=_0x2da63d-0x133;let _0xe7b529=a234_0xe7b5[_0x2da63d];return _0xe7b529;};const a234_0x9ca0e8=a234_0x2ae1;'use strict';const express=require(a234_0x9ca0e8(0x13a)),router=express[a234_0x9ca0e8(0x138)](),auth=require(a234_0x9ca0e8(0x13d)),controller=require('./faxApplication.controller');router['get']('/',auth[a234_0x9ca0e8(0x137)](),controller['index']),router['get'](a234_0x9ca0e8(0x135),auth[a234_0x9ca0e8(0x137)](),controller[a234_0x9ca0e8(0x13e)]),router[a234_0x9ca0e8(0x13b)]('/',auth[a234_0x9ca0e8(0x137)](),controller[a234_0x9ca0e8(0x134)]),router['put'](a234_0x9ca0e8(0x135),auth[a234_0x9ca0e8(0x137)](),controller[a234_0x9ca0e8(0x136)]),router[a234_0x9ca0e8(0x139)](a234_0x9ca0e8(0x135),auth['isAuthenticated'](),controller[a234_0x9ca0e8(0x13c)]),module[a234_0x9ca0e8(0x133)]=router; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.attributes.js b/server/api/faxInteraction/faxInteraction.attributes.js index ca2f3e3..2583a7a 100644 --- a/server/api/faxInteraction/faxInteraction.attributes.js +++ b/server/api/faxInteraction/faxInteraction.attributes.js @@ -1 +1 @@ -const a235_0x3d6f=['sequelize','exports','out','STRING','DATE','BOOLEAN','ENUM','attributes'];(function(_0x4925aa,_0x1d1fca){const _0x3d6ffe=function(_0x58372b){while(--_0x58372b){_0x4925aa['push'](_0x4925aa['shift']());}};_0x3d6ffe(++_0x1d1fca);}(a235_0x3d6f,0x1bd));const a235_0x5837=function(_0x4925aa,_0x1d1fca){_0x4925aa=_0x4925aa-0x1e7;let _0x3d6ffe=a235_0x3d6f[_0x4925aa];return _0x3d6ffe;};const a235_0x3ae541=a235_0x5837;'use strict';const {DataTypes}=require(a235_0x3ae541(0x1ea)),attributes={'closed':{'type':DataTypes[a235_0x3ae541(0x1e7)],'defaultValue':![]},'closedAt':{'type':DataTypes[a235_0x3ae541(0x1ee)]},'disposition':{'type':DataTypes[a235_0x3ae541(0x1ed)]},'secondDisposition':{'type':DataTypes['STRING']},'thirdDisposition':{'type':DataTypes[a235_0x3ae541(0x1ed)]},'note':{'type':DataTypes[a235_0x3ae541(0x1ed)]},'read1stAt':{'type':DataTypes['DATE']},'fax':{'type':DataTypes[a235_0x3ae541(0x1ed)]},'firstMsgDirection':{'type':DataTypes[a235_0x3ae541(0x1e8)]('in',a235_0x3ae541(0x1ec)),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':DataTypes[a235_0x3ae541(0x1ee)]},'lastMsgDirection':{'type':DataTypes[a235_0x3ae541(0x1e8)]('in',a235_0x3ae541(0x1ec)),'defaultValue':'in','allowNull':![]}};module[a235_0x3ae541(0x1eb)][a235_0x3ae541(0x1e9)]=attributes; \ No newline at end of file +const a235_0x3712=['DATE','out','ENUM','STRING','attributes'];(function(_0x4bc50d,_0x37f874){const _0x3712e4=function(_0xcfe424){while(--_0xcfe424){_0x4bc50d['push'](_0x4bc50d['shift']());}};_0x3712e4(++_0x37f874);}(a235_0x3712,0x191));const a235_0xcfe4=function(_0x4bc50d,_0x37f874){_0x4bc50d=_0x4bc50d-0x15d;let _0x3712e4=a235_0x3712[_0x4bc50d];return _0x3712e4;};const a235_0x5565dc=a235_0xcfe4;'use strict';const {DataTypes}=require('sequelize'),attributes={'closed':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'closedAt':{'type':DataTypes[a235_0x5565dc(0x161)]},'disposition':{'type':DataTypes[a235_0x5565dc(0x15f)]},'secondDisposition':{'type':DataTypes[a235_0x5565dc(0x15f)]},'thirdDisposition':{'type':DataTypes[a235_0x5565dc(0x15f)]},'note':{'type':DataTypes[a235_0x5565dc(0x15f)]},'read1stAt':{'type':DataTypes[a235_0x5565dc(0x161)]},'fax':{'type':DataTypes['STRING']},'firstMsgDirection':{'type':DataTypes[a235_0x5565dc(0x15e)]('in',a235_0x5565dc(0x15d)),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':DataTypes[a235_0x5565dc(0x161)]},'lastMsgDirection':{'type':DataTypes[a235_0x5565dc(0x15e)]('in',a235_0x5565dc(0x15d)),'defaultValue':'in','allowNull':![]}};module['exports'][a235_0x5565dc(0x160)]=attributes; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.controller.js b/server/api/faxInteraction/faxInteraction.controller.js index 40c9404..018be12 100644 --- a/server/api/faxInteraction/faxInteraction.controller.js +++ b/server/api/faxInteraction/faxInteraction.controller.js @@ -1 +1 @@ -const a236_0x51c1=['then','i.*','keyBy','FaxInteraction','union','u.id\x20=\x20ui.UserId','faxInteractionTags:save','addTags','`unreadMessages`\x20>\x200','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','../../config/logger','User','server','tag','user','TagIds','UserId','attributes','stack','\x20IS\x20NULL','value','files','params','merge','Content-Range','length','Contact.firstName','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','buildExpression','path','query','squel','format','describe','count','basename','Contact.fax','lodash','root','include','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','where','model','select','tmp','o.id\x20=\x20i.UserId','sendStatus','destroy','removeTags','a.key','t.id\x20=\x20it.TagId','Tags','i.FaxAccountId\x20IN\x20?','Tag','sqlOperator','Owner.fullname','conditions','forEach','clone','cm_contacts','map','isEmpty','parse','user_has_fax_interactions','util','mkdirSync','pick','read','contactName','from','omit','GROUP_CONCAT(DISTINCT\x20t.id)','body','c.phone','tools_tags','some','register','field','left_join','search','json','name','addMessage','createReadStream','fullname','$lte','includeAll','gte','ids','FaxInteractionId','groupBy','pipe','intersection','having','split','Owner.internal','concat','order','limit','../../mysqldb','keys','c.firstName','createdAt','Contact','status','findOne','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','Contact.phone','set','c.mobile','c.fax','Account.key','getFaxAccounts','SELECT','existsSync','u.id','fields','findAll','log','offset','create','setTags','`unreadMessages`\x20=\x200','i.id','end','Contact.lastName','me.FaxInteractionId\x20=\x20i.id','moment','sort','CASE\x20WHEN\x20(c.firstName\x20IS\x20NOT\x20NULL\x20AND\x20c.firstName\x20<>\x20\x27\x27)\x20OR\x20(c.lastName\x20IS\x20NOT\x20NULL\x20AND\x20c.lastName\x20<>\x20\x27\x27)\x20THEN\x20CONCAT(IFNULL(c.firstName,\x20\x27\x27),\x20\x27\x20\x27,\x20IFNULL(c.lastName,\x20\x27\x27))\x20ELSE\x20\x27Unknown\x27\x20END','rows','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','i.FaxAccountId\x20IS\x20NULL','like','undefined','rimraf','emit','send','index','i.id\x20LIKE\x20?','FaxMessage','options','nolimit','ui.FaxInteractionId','u.fullname','fax_interactions','isNumeric','parseSearch','catch','filter','unreadMessages','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','Account.mandatoryDisposition','DESC','Users','c.lastName','a.mandatoryDisposition','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','toString','error','rawAttributes','find','all','fax_interaction_has_tags','Messages','filters','getMessages','type','users','join','group','./faxInteraction.socket','unlinkSync','expr','fax_accounts','Attachment','FaxAccountId','color','createWriteStream','ContactId','text','YYYY-MM-DD\x20HH:mm:ss','$gte','i.fax\x20LIKE\x20?','i.FaxAccountId\x20IS\x20NOT\x20NULL','err','$substring','download','start','push','sequelize','update','unix'];(function(_0xa9f3a6,_0x54e12b){const _0x51c1cd=function(_0x35ce28){while(--_0x35ce28){_0xa9f3a6['push'](_0xa9f3a6['shift']());}};_0x51c1cd(++_0x54e12b);}(a236_0x51c1,0x1a6));const a236_0x35ce=function(_0xa9f3a6,_0x54e12b){_0xa9f3a6=_0xa9f3a6-0x1b8;let _0x51c1cd=a236_0x51c1[_0xa9f3a6];return _0x51c1cd;};const a236_0x1889ec=a236_0x35ce;'use strict';const rimraf=require(a236_0x1889ec(0x21e)),zipdir=require('zip-dir'),moment=require(a236_0x1889ec(0x216)),util=require(a236_0x1889ec(0x1d6)),path=require(a236_0x1889ec(0x275)),fs=require('fs'),_=require(a236_0x1889ec(0x1bb)),squel=require(a236_0x1889ec(0x277)),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require('../../components/parsers/qs'),as=require('../../components/parsers/advancedSearch'),logger=require(a236_0x1889ec(0x262))('api'),config=require('../../config/environment'),{db}=require(a236_0x1889ec(0x1f9)),{Op,QueryTypes}=require(a236_0x1889ec(0x255));require(a236_0x1889ec(0x242))[a236_0x1889ec(0x1e2)](socket);function respondWithStatusCode(_0x5a8735,_0xceed8a){return _0xceed8a=_0xceed8a||0xcc,function(_0x55b8df){const _0x57ae09=a236_0x35ce;if(_0x55b8df)return _0x5a8735[_0x57ae09(0x1c4)](_0xceed8a);return _0x5a8735[_0x57ae09(0x1fe)](_0xceed8a)['end']();};}function respondWithResult(_0x14b61a,_0x27dead){return _0x27dead=_0x27dead||0xc8,function(_0x5b68b8){const _0x52bf3e=a236_0x35ce;if(_0x5b68b8)return _0x14b61a['status'](_0x27dead)[_0x52bf3e(0x1e6)](_0x5b68b8);};}function respondWithFilteredResult(_0x26ab1e,_0x536905){return function(_0x391db9){const _0x1bf7a0=a236_0x35ce;if(_0x391db9){const _0x1e67d2=_0x391db9[_0x1bf7a0(0x1b8)],_0xa58aba=_0x536905[_0x1bf7a0(0x20e)];let _0x41c2c8=_0x536905[_0x1bf7a0(0x20e)]+_0x536905[_0x1bf7a0(0x1f8)],_0x2f7e0a;return _0x41c2c8>=_0x1e67d2?(_0x41c2c8=_0x1e67d2,_0x2f7e0a=0xc8):_0x2f7e0a=0xce,_0x26ab1e['status'](_0x2f7e0a),_0x26ab1e[_0x1bf7a0(0x203)](_0x1bf7a0(0x270),_0xa58aba+'-'+_0x41c2c8+'/'+_0x1e67d2)['json'](_0x391db9);}return null;};}function saveUpdates(_0x173fac){return function(_0x1d08c4){const _0x4d7644=a236_0x35ce;if(_0x1d08c4)return _0x1d08c4[_0x4d7644(0x256)](_0x173fac)[_0x4d7644(0x258)](function(_0x54be55){return _0x54be55;});return null;};}function removeEntity(_0x24b02e){return function(_0x2375bd){const _0x4eb5e6=a236_0x35ce;if(_0x2375bd)return _0x2375bd['destroy']()[_0x4eb5e6(0x258)](function(){const _0x4e8bd5=_0x4eb5e6;_0x24b02e[_0x4e8bd5(0x1fe)](0xcc)[_0x4e8bd5(0x213)]();});};}function handleEntityNotFound(_0x537695){return function(_0x1da9f9){const _0x32a832=a236_0x35ce;return!_0x1da9f9&&_0x537695[_0x32a832(0x1c4)](0x194),_0x1da9f9;};}function handleError(_0x1c7da8,_0x337283){return _0x337283=_0x337283||0x1f4,function(_0x46498d){const _0x53e7b7=a236_0x35ce;logger[_0x53e7b7(0x236)](_0x46498d[_0x53e7b7(0x26a)]),_0x46498d['name']&&delete _0x46498d['name'],_0x1c7da8[_0x53e7b7(0x1fe)](_0x337283)[_0x53e7b7(0x220)](_0x46498d);};}function getInteractionUsers(_0x393131,_0x3f214a){return new Promise(function(_0x542c7c,_0x37dd97){const _0xff50ca=a236_0x35ce;try{_0x3f214a[_0x393131['id']]&&(_0x393131[_0xff50ca(0x231)]=_[_0xff50ca(0x1d2)](_0x3f214a[_0x393131['id']],function(_0xeebdcb){const _0x120589=_0xff50ca;return{'id':_0xeebdcb['id'],'fullname':_0xeebdcb[_0x120589(0x1ea)]};}));}catch(_0x1ab0db){_0x37dd97(_0x1ab0db);}_0x542c7c(_0x393131);});}function getInteractionTags(_0x21d6d1,_0x3902bb){return new Promise(function(_0x1fbe22,_0x392552){const _0x22aeee=a236_0x35ce;try{_0x21d6d1[_0x22aeee(0x267)]&&(_0x21d6d1[_0x22aeee(0x1c9)]=[],_0x21d6d1['TagIds']['split'](',')[_0x22aeee(0x1cf)](function(_0x304bb4){const _0x255d1b=_0x22aeee;_0x21d6d1[_0x255d1b(0x1c9)][_0x255d1b(0x254)](_0x3902bb[_0x304bb4]);})),delete _0x21d6d1[_0x22aeee(0x267)];}catch(_0x5a5b2b){_0x392552(_0x5a5b2b);}_0x1fbe22(_0x21d6d1);});}function updateFaxInteraction(_0x2bd287,_0x47b996,_0x36a46d){return new Promise(function(_0x1e20a6,_0x1d47ea){const _0x61fa1e=a236_0x35ce;return getInteractionUsers(_0x2bd287,_0x36a46d)[_0x61fa1e(0x258)](function(_0x26f6da){return getInteractionTags(_0x26f6da,_0x47b996);})[_0x61fa1e(0x258)](function(_0x39fc7f){_0x1e20a6(_0x39fc7f);})[_0x61fa1e(0x22b)](function(_0x2b32fd){_0x1d47ea(_0x2b32fd);});});}exports[a236_0x1889ec(0x221)]=function(_0x1e9228,_0x929651){const _0x47d078=a236_0x1889ec,_0x4da129={},_0x1edf60={},_0x1af397={'count':0x0,'rows':[]},_0x1e7f2e=_['map'](db[_0x47d078(0x25b)][_0x47d078(0x237)],function(_0x748c39){return{'name':_0x748c39['fieldName'],'type':_0x748c39['type']['key']};});_0x1edf60[_0x47d078(0x1c0)]=_[_0x47d078(0x1d2)](_0x1e7f2e,_0x47d078(0x1e7)),_0x1edf60[_0x47d078(0x276)]=_[_0x47d078(0x1fa)](_0x1e9228[_0x47d078(0x276)]),_0x1edf60[_0x47d078(0x23c)]=_[_0x47d078(0x1f2)](_0x1edf60[_0x47d078(0x1c0)],_0x1edf60['query']),_0x4da129['attributes']=_[_0x47d078(0x1f2)](_0x1edf60['model'],qs[_0x47d078(0x20b)](_0x1e9228[_0x47d078(0x276)][_0x47d078(0x20b)])),_0x4da129[_0x47d078(0x269)]=_0x4da129[_0x47d078(0x269)][_0x47d078(0x271)]?_0x4da129[_0x47d078(0x269)]:_0x1edf60[_0x47d078(0x1c0)];typeof _0x1e9228[_0x47d078(0x276)][_0x47d078(0x225)]===_0x47d078(0x21d)&&(_0x4da129['limit']=qs[_0x47d078(0x1f8)](_0x1e9228[_0x47d078(0x276)][_0x47d078(0x1f8)]),_0x4da129[_0x47d078(0x20e)]=qs['offset'](_0x1e9228[_0x47d078(0x276)][_0x47d078(0x20e)]));_0x4da129['order']=qs['sort'](_0x1e9228[_0x47d078(0x276)][_0x47d078(0x217)]),_0x4da129[_0x47d078(0x1bf)]=qs[_0x47d078(0x23c)](_[_0x47d078(0x1d8)](_0x1e9228[_0x47d078(0x276)],_0x1edf60[_0x47d078(0x23c)]),_0x1e7f2e);let _0x5a4b32=[];const _0x43aa8d=squel['select']()['field']('id')['field'](_0x47d078(0x1e7))[_0x47d078(0x1e3)](_0x47d078(0x248))['from'](_0x47d078(0x1e0)),_0x35f580=squel[_0x47d078(0x1c1)]()[_0x47d078(0x1e3)](_0x47d078(0x20a))[_0x47d078(0x1e3)](_0x47d078(0x227))[_0x47d078(0x1e3)](_0x47d078(0x226))['from'](_0x47d078(0x1d5),'ui')['left_join'](_0x47d078(0x23f),'u',_0x47d078(0x25d)),_0x2c4120=squel[_0x47d078(0x1c1)]()[_0x47d078(0x1db)](_0x47d078(0x228),'i')['left_join'](_0x47d078(0x1d1),'c',_0x47d078(0x201))['left_join'](_0x47d078(0x23f),'o',_0x47d078(0x1c3))['left_join'](_0x47d078(0x245),'a','a.id\x20=\x20i.FaxAccountId')['left_join']('fax_messages','me',_0x47d078(0x215))[_0x47d078(0x1e4)](_0x47d078(0x23a),'it','it.FaxInteractionId\x20=\x20i.id')[_0x47d078(0x1e4)](_0x47d078(0x1e0),'t',_0x47d078(0x1c8)),_0x5c6def=squel[_0x47d078(0x244)]();let _0x3ed9ff=[];const _0x58b35d=squel['expr']();let _0xb45fb5;if(_0x1e9228[_0x47d078(0x276)][_0x47d078(0x1e5)]){_0xb45fb5=as[_0x47d078(0x22a)](_0x1e9228['query'][_0x47d078(0x1e5)]);const _0x4a19b8=_0xb45fb5[_0x47d078(0x1cc)];for(let _0x3a1e83=0x0;_0x3a1e83<_0xb45fb5[_0x47d078(0x1ce)][_0x47d078(0x271)];_0x3a1e83++){const _0x49080=_0xb45fb5['conditions'][_0x3a1e83],_0x3d6f3e='i';let _0x2173d8,_0x18cbf7=_['find'](_0x1e7f2e,[_0x47d078(0x1e7),_0x49080[_0x47d078(0x1e3)]]);if(!_0x18cbf7)switch(_0x49080[_0x47d078(0x1e3)]){case _0x47d078(0x22d):_0x49080[_0x47d078(0x26c)]==0x1?_0x2c4120[_0x47d078(0x1f3)]('`'+_0x49080[_0x47d078(0x1e3)]+'`\x20=\x200'):_0x2c4120[_0x47d078(0x1f3)]('`'+_0x49080[_0x47d078(0x1e3)]+'`\x20>\x200');break;case _0x47d078(0x1fd):if(_0x49080['operator']==='$substring'){if(_0x49080[_0x47d078(0x26c)][_0x47d078(0x1f4)]('\x20')['length']>0x1)_0x5c6def[_0x4a19b8](_0x47d078(0x21a),qs['getFullTextValue'](_0x49080['value']),null);else{const _0x3cc2ad='%'+_0x49080[_0x47d078(0x26c)]+'%';_0x5c6def[_0x4a19b8](_0x47d078(0x261),_0x3cc2ad,_0x3cc2ad,_0x3cc2ad);}}else _0x18cbf7=_['find'](_0x1e7f2e,['name',_0x47d078(0x24a)]),_0x49080[_0x47d078(0x1e3)]=_0x47d078(0x24a),_0x2173d8=as[_0x47d078(0x274)](_0x3d6f3e,_0x18cbf7['type'],_0x49080),_0x5c6def[_0x4a19b8](_0x2173d8[_0x47d078(0x24b)],_0x2173d8['value'][_0x47d078(0x253)],_0x2173d8[_0x47d078(0x26c)][_0x47d078(0x213)]);break;case _0x47d078(0x1cb):{const _0x2b346b=_0x49080[_0x47d078(0x26c)][_0x47d078(0x1f4)](',')[_0x47d078(0x1d2)](function(_0x5b9f72){return Number(_0x5b9f72);});_0x2b346b[_0x47d078(0x1cf)](function(_0x2b8d3d){const _0x5f0d30=_0x47d078;_0x58b35d['or'](_0x5f0d30(0x234),'%,'+_0x2b8d3d+',%');}),_0x3ed9ff=_[_0x47d078(0x25c)](_0x3ed9ff,_0x2b346b);}break;case _0x47d078(0x263):_0x49080['operator']===_0x47d078(0x251)?_0x5c6def[_0x4a19b8](_0x47d078(0x200),'%'+_0x49080[_0x47d078(0x26c)]+'%',null):(_0x18cbf7=_[_0x47d078(0x238)](_0x1e7f2e,[_0x47d078(0x1e7),_0x47d078(0x268)]),_0x49080[_0x47d078(0x1e3)]=_0x47d078(0x268),_0x2173d8=as[_0x47d078(0x274)](_0x3d6f3e,_0x18cbf7['type'],_0x49080),_0x5c6def[_0x4a19b8](_0x2173d8[_0x47d078(0x24b)],_0x2173d8['value'][_0x47d078(0x253)],_0x2173d8[_0x47d078(0x26c)]['end']));break;case _0x47d078(0x1de):_0x2173d8=as[_0x47d078(0x274)]('me',null,_0x49080),_0x5c6def[_0x4a19b8](_0x2173d8[_0x47d078(0x24b)],_0x2173d8[_0x47d078(0x26c)][_0x47d078(0x253)],_0x2173d8[_0x47d078(0x26c)][_0x47d078(0x213)]);break;}else _0x2173d8=as[_0x47d078(0x274)](_0x3d6f3e,_0x18cbf7[_0x47d078(0x23e)],_0x49080),_0x5c6def[_0x4a19b8](_0x2173d8['text'],_0x2173d8[_0x47d078(0x26c)][_0x47d078(0x253)],_0x2173d8[_0x47d078(0x26c)][_0x47d078(0x213)]);}}else{const _0x52f37d=_(_0x1e9228[_0x47d078(0x276)])['keys']()['map'](function(_0x914b9b){const _0x439285=_0x47d078;return _[_0x439285(0x1e1)](_0x1e7f2e,[_0x439285(0x1e7),_0x914b9b])?_0x914b9b:undefined;})['compact']()[_0x47d078(0x26c)]();!_[_0x47d078(0x1d3)](_0x52f37d)&&_0x52f37d[_0x47d078(0x1cf)](function(_0x25e2e1){const _0x12148c=_0x47d078;if(_0x25e2e1===_0x12148c(0x247))_0x2c4120[_0x12148c(0x1bf)]('i.FaxAccountId\x20IN\x20?',[][_0x12148c(0x1f6)](_0x1e9228['query'][_0x25e2e1]));else{if(_0x25e2e1==='createdAt'){const _0x4505a4=JSON[_0x12148c(0x1d4)](_0x1e9228[_0x12148c(0x276)][_0x25e2e1])[_0x12148c(0x24d)],_0x40b015=JSON[_0x12148c(0x1d4)](_0x1e9228[_0x12148c(0x276)][_0x25e2e1])[_0x12148c(0x1eb)];_0x2c4120['where'](_0x12148c(0x22e),_0x4505a4,_0x40b015);}else _0x1e9228[_0x12148c(0x276)][_0x25e2e1]==='null'?_0x2c4120[_0x12148c(0x1bf)]('i.'+_0x25e2e1+_0x12148c(0x26b)):_0x2c4120['where']('i.'+_0x25e2e1+'\x20=\x20?',_0x1e9228[_0x12148c(0x276)][_0x25e2e1]);}});_0x1e9228[_0x47d078(0x276)]['read']&&(_0x1e9228['query'][_0x47d078(0x1d9)]==0x1?_0x2c4120[_0x47d078(0x1f3)](_0x47d078(0x211)):_0x2c4120[_0x47d078(0x1f3)](_0x47d078(0x260)));_0x1e9228['query'][_0x47d078(0x265)]&&(_0x3ed9ff=_['isArray'](_0x1e9228[_0x47d078(0x276)][_0x47d078(0x265)])?_0x1e9228[_0x47d078(0x276)][_0x47d078(0x265)]:new Array(_0x1e9228[_0x47d078(0x276)][_0x47d078(0x265)]),_0x3ed9ff[_0x47d078(0x1cf)](function(_0x12a39d){const _0x5caa99=_0x47d078;_0x58b35d['or'](_0x5caa99(0x234),'%,'+_0x12a39d+',%');}));if(_0x1e9228['query'][_0x47d078(0x22c)]){const _0x62e204=_0x1e9228[_0x47d078(0x276)][_0x47d078(0x22c)]['replace']('\x5c','\x5c\x5c')['replace'](/'/g,'\x27\x27');qs[_0x47d078(0x229)](_0x62e204)&&_0x5c6def['or'](_0x47d078(0x222),_0x62e204+'%')['or'](_0x47d078(0x24e),_0x62e204+'%'),_0x5c6def['or'](_0x47d078(0x273),_0x62e204+'%');}}_0x2c4120['where'](_0x5c6def),_0x2c4120[_0x47d078(0x241)](_0x47d078(0x212));let _0x4dfabf={'type':QueryTypes[_0x47d078(0x208)],'raw':!![]};const _0x33b5da=_0x2c4120[_0x47d078(0x1d0)]();_0x33b5da['field'](_0x47d078(0x212)),_0x33b5da[_0x47d078(0x1e3)](_0x47d078(0x1be),_0x47d078(0x22d)),_0x4da129[_0x47d078(0x1f7)]&&_0x4da129[_0x47d078(0x1f7)][_0x47d078(0x1cf)](function(_0x5cb382){const _0x11455a=_0x47d078,_0x56c803=_0x5cb382[0x0]===_0x11455a(0x1da)?_0x5cb382[0x0]:'i.'+_0x5cb382[0x0];_0x2c4120[_0x11455a(0x1f7)](_0x56c803,_0x5cb382[0x1]===_0x11455a(0x230)?![]:!![]);}),!_[_0x47d078(0x1d3)](_0x3ed9ff)&&(_0x2c4120[_0x47d078(0x1f3)](_0x58b35d),_0x33b5da[_0x47d078(0x1bf)]('t.id\x20IN\x20?',_0x3ed9ff)),Promise['resolve']()[_0x47d078(0x258)](function(){const _0x552864=_0x47d078;if(!_0xb45fb5){if(_0x1e9228['query'][_0x552864(0x247)]||_0x1e9228[_0x552864(0x276)]['journey'])return;_0x33b5da[_0x552864(0x1bf)](_0x552864(0x24f)),_0x2c4120[_0x552864(0x1bf)](_0x552864(0x24f));return;}return _0x1e9228[_0x552864(0x266)][_0x552864(0x207)]({'attributes':['id'],'raw':!![]})[_0x552864(0x258)](function(_0x1c7a7e){const _0x4a16a6=_0x552864;_[_0x4a16a6(0x1d3)](_0x1c7a7e)?(_0x33b5da[_0x4a16a6(0x1bf)](_0x4a16a6(0x21b)),_0x2c4120[_0x4a16a6(0x1bf)](_0x4a16a6(0x21b))):(_0x33b5da[_0x4a16a6(0x1bf)](_0x4a16a6(0x1ca),_[_0x4a16a6(0x1d2)](_0x1c7a7e,'id')),_0x2c4120[_0x4a16a6(0x1bf)]('i.FaxAccountId\x20IN\x20?',_[_0x4a16a6(0x1d2)](_0x1c7a7e,'id')));});})[_0x47d078(0x258)](function(){const _0x12daf9=_0x47d078;db[_0x12daf9(0x255)][_0x12daf9(0x276)](_0x33b5da[_0x12daf9(0x235)](),_0x4dfabf)[_0x12daf9(0x258)](function(_0x42fa7b){const _0x6cca54=_0x12daf9;_0x1af397['count']=_0x42fa7b[_0x6cca54(0x271)];if(_0x1af397[_0x6cca54(0x1b8)]===0x0)return[];return db['sequelize'][_0x6cca54(0x276)](_0x43aa8d[_0x6cca54(0x235)](),_0x4dfabf)[_0x6cca54(0x258)](function(_0x438917){const _0x4715d4=_0x6cca54;_0x5a4b32=_[_0x4715d4(0x25a)](_0x438917,'id'),_0x4dfabf=_['merge'](_0x4dfabf,{'model':db[_0x4715d4(0x25b)],'mapToModel':!![],'raw':!![],'nest':!![]});_0x1e9228[_0x4715d4(0x276)][_0x4715d4(0x20b)]?_0x4da129['attributes'][_0x4715d4(0x1cf)](function(_0x5505c6){_0x2c4120['field']('i.'+_0x5505c6);}):(_0x2c4120[_0x4715d4(0x1e3)](_0x4715d4(0x1be),'unreadMessages'),_0x2c4120['field'](_0x4715d4(0x1c7),_0x4715d4(0x206)),_0x2c4120[_0x4715d4(0x1e3)](_0x4715d4(0x233),_0x4715d4(0x22f)),_0x2c4120[_0x4715d4(0x1e3)](_0x4715d4(0x218),_0x4715d4(0x1da)),_0x2c4120[_0x4715d4(0x1e3)](_0x4715d4(0x259)),_0x2c4120['field'](_0x4715d4(0x1fb),_0x4715d4(0x272)),_0x2c4120[_0x4715d4(0x1e3)](_0x4715d4(0x232),_0x4715d4(0x214)),_0x2c4120[_0x4715d4(0x1e3)]('c.email','Contact.email'),_0x2c4120[_0x4715d4(0x1e3)](_0x4715d4(0x1df),_0x4715d4(0x202)),_0x2c4120['field'](_0x4715d4(0x204),'Contact.mobile'),_0x2c4120[_0x4715d4(0x1e3)](_0x4715d4(0x205),_0x4715d4(0x1ba)),_0x2c4120['field']('o.fullname',_0x4715d4(0x1cd)),_0x2c4120[_0x4715d4(0x1e3)]('o.internal',_0x4715d4(0x1f5)),_0x2c4120[_0x4715d4(0x1e3)](_0x4715d4(0x1dd),'TagIds'));if(_0x4da129[_0x4715d4(0x1f8)])_0x2c4120['limit'](_0x4da129[_0x4715d4(0x1f8)]);if(_0x4da129[_0x4715d4(0x20e)])_0x2c4120['offset'](_0x4da129[_0x4715d4(0x20e)]);return db[_0x4715d4(0x255)][_0x4715d4(0x276)](_0x2c4120[_0x4715d4(0x235)](),_0x4dfabf);})[_0x6cca54(0x258)](function(_0xa68d92){const _0x3a90a2=_0x6cca54;return _0x35f580[_0x3a90a2(0x1bf)]('ui.FaxInteractionId\x20IN\x20?',_[_0x3a90a2(0x1d2)](_0xa68d92,'id')),db[_0x3a90a2(0x255)][_0x3a90a2(0x276)](_0x35f580[_0x3a90a2(0x235)](),_0x4dfabf)[_0x3a90a2(0x258)](function(_0x33fa96){const _0x41c8d2=_0x3a90a2,_0xe8e5f7=_[_0x41c8d2(0x1f0)](_0x33fa96,_0x41c8d2(0x1ef)),_0x307405=[];return _0xa68d92['forEach'](function(_0x140228){const _0xace3a5=_0x41c8d2;_0x307405[_0xace3a5(0x254)](updateFaxInteraction(_0x140228,_0x5a4b32,_0xe8e5f7));}),Promise[_0x41c8d2(0x239)](_0x307405);});});})[_0x12daf9(0x258)](function(_0x3e9ad1){const _0x52dfc1=_0x12daf9;return _0x1af397[_0x52dfc1(0x219)]=_0x3e9ad1,_0x1af397;})[_0x12daf9(0x258)](respondWithFilteredResult(_0x929651,_0x4da129));})[_0x47d078(0x22b)](handleError(_0x929651,null));},exports['show']=function(_0x2122e9,_0x2a89f4){const _0xdd0ce1=a236_0x1889ec;let _0x4197be={'raw':![],'where':{'id':_0x2122e9[_0xdd0ce1(0x26e)]['id']}};const _0x18dacd={};return _0x18dacd[_0xdd0ce1(0x1c0)]=_[_0xdd0ce1(0x1fa)](db[_0xdd0ce1(0x25b)][_0xdd0ce1(0x237)]),_0x18dacd[_0xdd0ce1(0x276)]=_[_0xdd0ce1(0x1fa)](_0x2122e9[_0xdd0ce1(0x276)]),_0x18dacd['filters']=_[_0xdd0ce1(0x1f2)](_0x18dacd[_0xdd0ce1(0x1c0)],_0x18dacd['query']),_0x4197be[_0xdd0ce1(0x269)]=_[_0xdd0ce1(0x1f2)](_0x18dacd[_0xdd0ce1(0x1c0)],qs[_0xdd0ce1(0x20b)](_0x2122e9[_0xdd0ce1(0x276)][_0xdd0ce1(0x20b)])),_0x4197be[_0xdd0ce1(0x269)]=_0x4197be[_0xdd0ce1(0x269)][_0xdd0ce1(0x271)]?_0x4197be[_0xdd0ce1(0x269)]:_0x18dacd[_0xdd0ce1(0x1c0)],_0x2122e9[_0xdd0ce1(0x276)][_0xdd0ce1(0x1ec)]&&(_0x4197be[_0xdd0ce1(0x1bd)]=[{'all':!![]}]),_0x4197be=_[_0xdd0ce1(0x26f)]({},_0x4197be,_0x2122e9['options']),db[_0xdd0ce1(0x25b)][_0xdd0ce1(0x1ff)](_0x4197be)[_0xdd0ce1(0x258)](handleEntityNotFound(_0x2a89f4,null))['then'](respondWithResult(_0x2a89f4,null))[_0xdd0ce1(0x22b)](handleError(_0x2a89f4,null));},exports[a236_0x1889ec(0x20f)]=function(_0x48f796,_0x1dc576){const _0x1d34c7=a236_0x1889ec;return db[_0x1d34c7(0x25b)]['create'](_0x48f796[_0x1d34c7(0x1de)],{})['then'](respondWithResult(_0x1dc576,0xc9))['catch'](handleError(_0x1dc576,null));},exports[a236_0x1889ec(0x256)]=function(_0x2454d1,_0x144425){const _0x3f6c42=a236_0x1889ec;return _0x2454d1[_0x3f6c42(0x1de)]['id']&&delete _0x2454d1[_0x3f6c42(0x1de)]['id'],db['FaxInteraction'][_0x3f6c42(0x1ff)]({'where':{'id':_0x2454d1[_0x3f6c42(0x26e)]['id']}})[_0x3f6c42(0x258)](handleEntityNotFound(_0x144425,null))[_0x3f6c42(0x258)](saveUpdates(_0x2454d1[_0x3f6c42(0x1de)],null))[_0x3f6c42(0x258)](respondWithResult(_0x144425,null))[_0x3f6c42(0x22b)](handleError(_0x144425,null));},exports[a236_0x1889ec(0x1c5)]=function(_0x517d48,_0x3f49cd){const _0x28c846=a236_0x1889ec;return db[_0x28c846(0x25b)][_0x28c846(0x1ff)]({'where':{'id':_0x517d48['params']['id']}})[_0x28c846(0x258)](handleEntityNotFound(_0x3f49cd,null))[_0x28c846(0x258)](removeEntity(_0x3f49cd,null))['catch'](handleError(_0x3f49cd,null));},exports[a236_0x1889ec(0x279)]=function(_0x2a7b05,_0x4d4d5b){const _0x2d6157=a236_0x1889ec;return db['FaxInteraction'][_0x2d6157(0x279)]()['then'](respondWithResult(_0x4d4d5b,null))['catch'](handleError(_0x4d4d5b,null));},exports[a236_0x1889ec(0x1e8)]=function(_0x493a3d,_0x24ff63){const _0x234f58=a236_0x1889ec;return db[_0x234f58(0x223)][_0x234f58(0x1ff)]({'where':{'id':_0x493a3d['params']['id']}})[_0x234f58(0x258)](function(_0x118bba){const _0x50ed5f=_0x234f58;if(_0x118bba)return _0x118bba[_0x50ed5f(0x1e8)](_0x493a3d[_0x50ed5f(0x1de)][_0x50ed5f(0x1ee)],{'through':_[_0x50ed5f(0x1dc)](_0x493a3d[_0x50ed5f(0x1de)],[_0x50ed5f(0x1ee),'id'])});})[_0x234f58(0x258)](respondWithResult(_0x24ff63,null))['catch'](handleError(_0x24ff63,null));},exports[a236_0x1889ec(0x23d)]=function(_0x5857be,_0x4af369){const _0x239584=a236_0x1889ec;let _0x2f4843={'raw':![],'where':{}};const _0x557f1e={},_0x963cf4={'count':0x0,'rows':[]};return db['FaxInteraction'][_0x239584(0x1ff)]({'where':{'id':_0x5857be['params']['id']}})[_0x239584(0x258)](handleEntityNotFound(_0x4af369,null))['then'](function(_0x25ed28){const _0x32f9f8=_0x239584;if(_0x25ed28){_0x557f1e['model']=_[_0x32f9f8(0x1fa)](db['FaxMessage'][_0x32f9f8(0x237)]),_0x557f1e['query']=_[_0x32f9f8(0x1fa)](_0x5857be[_0x32f9f8(0x276)]),_0x557f1e[_0x32f9f8(0x23c)]=_['intersection'](_0x557f1e[_0x32f9f8(0x1c0)],_0x557f1e[_0x32f9f8(0x276)]),_0x2f4843[_0x32f9f8(0x269)]=_['intersection'](_0x557f1e[_0x32f9f8(0x1c0)],qs[_0x32f9f8(0x20b)](_0x5857be[_0x32f9f8(0x276)][_0x32f9f8(0x20b)])),_0x2f4843[_0x32f9f8(0x269)]=_0x2f4843[_0x32f9f8(0x269)]['length']?_0x2f4843[_0x32f9f8(0x269)]:_0x557f1e[_0x32f9f8(0x1c0)];typeof _0x5857be[_0x32f9f8(0x276)][_0x32f9f8(0x225)]===_0x32f9f8(0x21d)&&(_0x2f4843[_0x32f9f8(0x1f8)]=qs[_0x32f9f8(0x1f8)](_0x5857be[_0x32f9f8(0x276)][_0x32f9f8(0x1f8)]),_0x2f4843[_0x32f9f8(0x20e)]=qs[_0x32f9f8(0x20e)](_0x5857be['query'][_0x32f9f8(0x20e)]));_0x2f4843[_0x32f9f8(0x1f7)]=qs[_0x32f9f8(0x217)](_0x5857be['query'][_0x32f9f8(0x217)]),_0x2f4843[_0x32f9f8(0x1bf)]=qs[_0x32f9f8(0x23c)](_[_0x32f9f8(0x1d8)](_0x5857be[_0x32f9f8(0x276)],_0x557f1e[_0x32f9f8(0x23c)])),_0x2f4843[_0x32f9f8(0x1bf)]['FaxInteractionId']=_0x25ed28['id'];_0x5857be[_0x32f9f8(0x276)][_0x32f9f8(0x22c)]&&(_0x2f4843['where']=_[_0x32f9f8(0x26f)](_0x2f4843[_0x32f9f8(0x1bf)],{[Op['or']]:_['map'](_0x2f4843[_0x32f9f8(0x269)],function(_0x41f65f){const _0x39c82c=_0x32f9f8,_0x2ca9d9={};return _0x2ca9d9[_0x41f65f]={[Op[_0x39c82c(0x21c)]]:'%'+_0x5857be['query'][_0x39c82c(0x22c)]+'%'},_0x2ca9d9;})}));if(_0x5857be['query'][_0x32f9f8(0x24d)]){const _0x21a602=_0x5857be[_0x32f9f8(0x276)]['$gte'][_0x32f9f8(0x1f4)](','),_0x2d0235={};_0x2d0235[_0x21a602[0x0]]={[Op[_0x32f9f8(0x1ed)]]:moment(_0x21a602[0x1])[_0x32f9f8(0x278)](_0x32f9f8(0x24c))},_0x2f4843[_0x32f9f8(0x1bf)]=_[_0x32f9f8(0x26f)](_0x2f4843[_0x32f9f8(0x1bf)],_0x2d0235);}return _0x2f4843=_[_0x32f9f8(0x26f)]({},_0x2f4843,_0x5857be[_0x32f9f8(0x224)]),db[_0x32f9f8(0x223)][_0x32f9f8(0x1b8)]({'where':_0x2f4843[_0x32f9f8(0x1bf)]})[_0x32f9f8(0x258)](function(_0x1d3fd5){const _0x5e295e=_0x32f9f8;return _0x963cf4[_0x5e295e(0x1b8)]=_0x1d3fd5,_0x5857be['query'][_0x5e295e(0x1ec)]&&(_0x2f4843['include']=[{'all':!![]}]),db['FaxMessage'][_0x5e295e(0x20c)](_0x2f4843);})[_0x32f9f8(0x258)](function(_0x379c90){const _0x30c4e0=_0x32f9f8;return _0x963cf4[_0x30c4e0(0x219)]=_0x379c90,_0x963cf4;});}})['then'](respondWithFilteredResult(_0x4af369,_0x2f4843))[_0x239584(0x22b)](handleError(_0x4af369,null));},exports[a236_0x1889ec(0x25f)]=function(_0x1373c2,_0x8dfd07){const _0x12a8a7=a236_0x1889ec;return db[_0x12a8a7(0x25b)][_0x12a8a7(0x1ff)]({'where':{'id':_0x1373c2[_0x12a8a7(0x26e)]['id']}})[_0x12a8a7(0x258)](function(_0x120a14){const _0x3d94c7=_0x12a8a7;if(_0x120a14)return _0x120a14[_0x3d94c7(0x210)](_0x1373c2[_0x3d94c7(0x1de)][_0x3d94c7(0x1ee)],{'through':_[_0x3d94c7(0x1dc)](_0x1373c2[_0x3d94c7(0x1de)],[_0x3d94c7(0x1ee),'id'])})['then'](function(){const _0x50ce20=_0x3d94c7;return db[_0x50ce20(0x1cb)][_0x50ce20(0x20c)]({'attributes':['id','name','color'],'where':{'id':_0x1373c2[_0x50ce20(0x1de)][_0x50ce20(0x1ee)]}});})[_0x3d94c7(0x258)](function(_0x5f137c){const _0x2fc952=_0x3d94c7;return socket[_0x2fc952(0x21f)](_0x2fc952(0x25e),{'id':Number(_0x1373c2['params']['id']),'tags':_0x5f137c||[]}),{'id':Number(_0x1373c2[_0x2fc952(0x26e)]['id']),'tags':_0x5f137c||[]};});})['then'](respondWithResult(_0x8dfd07,null))[_0x12a8a7(0x22b)](handleError(_0x8dfd07,null));},exports[a236_0x1889ec(0x1c6)]=function(_0x875506,_0x47d862){const _0x4d8c49=a236_0x1889ec;return db[_0x4d8c49(0x25b)]['findOne']({'where':{'id':_0x875506[_0x4d8c49(0x26e)]['id']}})[_0x4d8c49(0x258)](handleEntityNotFound(_0x47d862,null))[_0x4d8c49(0x258)](function(_0x553f9e){const _0x4a6c8c=_0x4d8c49;if(_0x553f9e)return _0x553f9e[_0x4a6c8c(0x1c6)](_0x875506[_0x4a6c8c(0x276)]['ids']);})[_0x4d8c49(0x258)](respondWithStatusCode(_0x47d862,null))[_0x4d8c49(0x22b)](handleError(_0x47d862,null));},exports[a236_0x1889ec(0x252)]=function(_0x33e498,_0x1e25a9){const _0x397175=a236_0x1889ec,_0x335f81=moment()[_0x397175(0x257)]()[_0x397175(0x235)](),_0x5df8f9=path['join'](config[_0x397175(0x1bc)],_0x397175(0x26d),_0x397175(0x1c2)),_0x255a0d=path[_0x397175(0x240)](config[_0x397175(0x1bc)],_0x397175(0x264),_0x397175(0x26d),'attachments'),_0x4f3492=path[_0x397175(0x240)](_0x5df8f9,_0x335f81),_0x542287=util[_0x397175(0x278)]('transcript-%d-%s.zip',_0x33e498[_0x397175(0x26e)]['id'],_0x335f81),_0x42a3a9=path['join'](_0x5df8f9,_0x542287),_0x2192d5=[];_0x2192d5[_0x397175(0x254)]({'model':db[_0x397175(0x246)],'as':_0x397175(0x246),'raw':!![]});const _0x566250=[{'model':db[_0x397175(0x223)],'as':_0x397175(0x23b),'attributes':['id',_0x397175(0x1de),_0x397175(0x1fc)],'include':_0x2192d5}];return db[_0x397175(0x25b)][_0x397175(0x1ff)]({'where':{'id':_0x33e498['params']['id']},'include':_0x566250})[_0x397175(0x258)](handleEntityNotFound(_0x1e25a9,null))['then'](function(_0x179a16){const _0x1acf19=_0x397175;if(_0x179a16&&_0x179a16[_0x1acf19(0x23b)]){const _0x3836d7=_0x179a16['get']({'plain':!![]});fs[_0x1acf19(0x1d7)](_0x4f3492);for(let _0x18b527=0x0;_0x18b527<_0x3836d7[_0x1acf19(0x23b)][_0x1acf19(0x271)];_0x18b527++){const _0x2f22bd=_0x3836d7[_0x1acf19(0x23b)][_0x18b527][_0x1acf19(0x246)];if(_0x2f22bd){const _0x500229=path[_0x1acf19(0x240)](_0x255a0d,_0x2f22bd[_0x1acf19(0x1b9)]);fs[_0x1acf19(0x209)](_0x500229)&&fs[_0x1acf19(0x1e9)](_0x500229)[_0x1acf19(0x1f1)](fs[_0x1acf19(0x249)](path[_0x1acf19(0x240)](_0x4f3492,_0x2f22bd[_0x1acf19(0x1b9)])));}}return Promise['resolve']()[_0x1acf19(0x258)](function(){const _0x248ab3=_0x1acf19;return new Promise(function(_0x432772,_0x2ccc9f){zipdir(_0x4f3492,{'saveTo':_0x42a3a9},function(_0x3829a1,_0x57e2ab){if(_0x3829a1)return _0x2ccc9f(_0x3829a1);return _0x432772(_0x57e2ab);});})[_0x248ab3(0x258)](function(){return new Promise(function(_0x5f1b04,_0x1a809d){rimraf(_0x4f3492,function(_0x1dead0){if(_0x1dead0)_0x1a809d(_0x1dead0);return _0x5f1b04();});});})[_0x248ab3(0x258)](function(){const _0x38810d=_0x248ab3;return _0x1e25a9[_0x38810d(0x252)](_0x42a3a9,_0x542287,function(_0x66cdd6){const _0x49d328=_0x38810d;_0x66cdd6?console[_0x49d328(0x20d)](_0x49d328(0x250),_0x66cdd6):fs[_0x49d328(0x243)](_0x42a3a9);});});});}else return _0x1e25a9[_0x1acf19(0x1c4)](0xc8);})[_0x397175(0x22b)](handleError(_0x1e25a9,null));}; \ No newline at end of file +const a236_0x1fd9=['color','rows','end','set','Attachment','c.firstName','basename','update','Contact.fax','count','cm_contacts','join','key','replace','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','merge','limit','select','Tags','undefined','Contact.mobile','search','c.phone','union','contactName','removeTags','u.fullname','operator','unix','Contact','existsSync','Contact.email','\x20IS\x20NULL','ids','parse','body','get','sequelize','Contact.firstName','t.id\x20=\x20it.TagId','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','$gte','c.mobile','tools_tags','u.id\x20=\x20ui.UserId','conditions','journey','getFullTextValue','lodash','length','expr','sqlOperator','DESC','map','fields','isNumeric','i.*','findOne','destroy','../../config/environment','fullname','create','a.id\x20=\x20i.FaxAccountId','having','i.FaxAccountId\x20IS\x20NULL','i.FaxAccountId\x20IS\x20NOT\x20NULL','YYYY-MM-DD\x20HH:mm:ss','omit','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','download','TagIds','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','model','sort','files','attachments','rawAttributes','find','User','c.email','compact','FaxAccountId','Users','Owner.fullname','fax_interactions','tag','left_join','like','addMessage','toString','json','log','`unreadMessages`\x20>\x200','value','i.id','push','Contact.lastName','o.fullname','Messages','../../components/parsers/advancedSearch','forEach','type','unlinkSync','describe','all','fax_accounts','c.fax','query','addTags','Tag','$substring','me.FaxInteractionId\x20=\x20i.id','clone','SELECT','buildExpression','../../rediscache','intersection','FaxInteraction','attributes','zip-dir','format','api','gte','`\x20=\x200','nolimit','a.key','FaxInteractionId','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','squel','i.FaxAccountId\x20IN\x20?','Account.key','util','transcript-%d-%s.zip','from','pick','ContactId','then','start','status','name','filters','offset','root','order','users','params','c.lastName','isEmpty','catch','moment','Content-Range','concat','emit','unreadMessages','`unreadMessages`\x20=\x200','GROUP_CONCAT(DISTINCT\x20t.id)','sendStatus','getMessages','FaxMessage','tmp','$lte','Account.mandatoryDisposition','where','user_has_fax_interactions','field','pipe','i.id\x20LIKE\x20?','\x20=\x20?','split','includeAll','UserId','parseSearch','ui.FaxInteractionId\x20IN\x20?','filter','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','findAll','CASE\x20WHEN\x20(c.firstName\x20IS\x20NOT\x20NULL\x20AND\x20c.firstName\x20<>\x20\x27\x27)\x20OR\x20(c.lastName\x20IS\x20NOT\x20NULL\x20AND\x20c.lastName\x20<>\x20\x27\x27)\x20THEN\x20CONCAT(IFNULL(c.firstName,\x20\x27\x27),\x20\x27\x20\x27,\x20IFNULL(c.lastName,\x20\x27\x27))\x20ELSE\x20\x27Unknown\x27\x20END','keyBy','resolve','text','keys','../../config/logger','include','createdAt'];(function(_0x1e183a,_0x39d286){const _0x1fd91d=function(_0x5c167e){while(--_0x5c167e){_0x1e183a['push'](_0x1e183a['shift']());}};_0x1fd91d(++_0x39d286);}(a236_0x1fd9,0x104));const a236_0x5c16=function(_0x1e183a,_0x39d286){_0x1e183a=_0x1e183a-0x1d1;let _0x1fd91d=a236_0x1fd9[_0x1e183a];return _0x1fd91d;};const a236_0x43d570=a236_0x5c16;'use strict';const rimraf=require('rimraf'),zipdir=require(a236_0x43d570(0x1fc)),moment=require(a236_0x43d570(0x21a)),util=require(a236_0x43d570(0x208)),path=require('path'),fs=require('fs'),_=require(a236_0x43d570(0x26d)),squel=require(a236_0x43d570(0x205)),{getSocket}=require(a236_0x43d570(0x1f8)),socket=getSocket(),qs=require('../../components/parsers/qs'),as=require(a236_0x43d570(0x1e8)),logger=require(a236_0x43d570(0x23a))(a236_0x43d570(0x1fe)),config=require(a236_0x43d570(0x278)),{db}=require('../../mysqldb'),{Op,QueryTypes}=require('sequelize');require('./faxInteraction.socket')['register'](socket);function respondWithStatusCode(_0x1b0049,_0x493b31){return _0x493b31=_0x493b31||0xcc,function(_0x4d0ccd){const _0x9c1ac8=a236_0x5c16;if(_0x4d0ccd)return _0x1b0049[_0x9c1ac8(0x221)](_0x493b31);return _0x1b0049[_0x9c1ac8(0x20f)](_0x493b31)[_0x9c1ac8(0x23f)]();};}function respondWithResult(_0x588168,_0x5dcdb6){return _0x5dcdb6=_0x5dcdb6||0xc8,function(_0x315a04){const _0x462e34=a236_0x5c16;if(_0x315a04)return _0x588168[_0x462e34(0x20f)](_0x5dcdb6)[_0x462e34(0x1df)](_0x315a04);};}function respondWithFilteredResult(_0x44c30b,_0x13fbfb){return function(_0x229404){const _0x339ac6=a236_0x5c16;if(_0x229404){const _0x494786=_0x229404[_0x339ac6(0x246)],_0x3463e7=_0x13fbfb[_0x339ac6(0x212)];let _0x5d8b33=_0x13fbfb['offset']+_0x13fbfb[_0x339ac6(0x24d)],_0x30d015;return _0x5d8b33>=_0x494786?(_0x5d8b33=_0x494786,_0x30d015=0xc8):_0x30d015=0xce,_0x44c30b['status'](_0x30d015),_0x44c30b[_0x339ac6(0x240)](_0x339ac6(0x21b),_0x3463e7+'-'+_0x5d8b33+'/'+_0x494786)[_0x339ac6(0x1df)](_0x229404);}return null;};}function saveUpdates(_0x3633ff){return function(_0x460989){const _0xb548e4=a236_0x5c16;if(_0x460989)return _0x460989[_0xb548e4(0x244)](_0x3633ff)[_0xb548e4(0x20d)](function(_0x2957c6){return _0x2957c6;});return null;};}function removeEntity(_0x59256b){return function(_0x287c27){const _0x4c1353=a236_0x5c16;if(_0x287c27)return _0x287c27[_0x4c1353(0x277)]()[_0x4c1353(0x20d)](function(){const _0xd97a57=_0x4c1353;_0x59256b[_0xd97a57(0x20f)](0xcc)[_0xd97a57(0x23f)]();});};}function handleEntityNotFound(_0x5def57){return function(_0x419fe5){const _0x44775d=a236_0x5c16;return!_0x419fe5&&_0x5def57[_0x44775d(0x221)](0x194),_0x419fe5;};}function handleError(_0x480c76,_0x34fce3){return _0x34fce3=_0x34fce3||0x1f4,function(_0x20ec78){const _0x15b970=a236_0x5c16;logger['error'](_0x20ec78['stack']),_0x20ec78[_0x15b970(0x210)]&&delete _0x20ec78[_0x15b970(0x210)],_0x480c76['status'](_0x34fce3)['send'](_0x20ec78);};}function getInteractionUsers(_0x320a32,_0x1f013e){return new Promise(function(_0x432eb8,_0x4abba9){const _0x40f910=a236_0x5c16;try{_0x1f013e[_0x320a32['id']]&&(_0x320a32[_0x40f910(0x1d7)]=_[_0x40f910(0x272)](_0x1f013e[_0x320a32['id']],function(_0x30fc21){const _0xd8348b=_0x40f910;return{'id':_0x30fc21['id'],'fullname':_0x30fc21[_0xd8348b(0x279)]};}));}catch(_0x3f5cfa){_0x4abba9(_0x3f5cfa);}_0x432eb8(_0x320a32);});}function getInteractionTags(_0x548eeb,_0x2b5edb){return new Promise(function(_0xd2a0,_0x45bff3){const _0x5e247f=a236_0x5c16;try{_0x548eeb[_0x5e247f(0x283)]&&(_0x548eeb[_0x5e247f(0x24f)]=[],_0x548eeb[_0x5e247f(0x283)][_0x5e247f(0x22d)](',')['forEach'](function(_0x10e0d3){const _0x15a8d4=_0x5e247f;_0x548eeb[_0x15a8d4(0x24f)]['push'](_0x2b5edb[_0x10e0d3]);})),delete _0x548eeb[_0x5e247f(0x283)];}catch(_0x516230){_0x45bff3(_0x516230);}_0xd2a0(_0x548eeb);});}function updateFaxInteraction(_0x3ac4a2,_0x52a25f,_0x2ab2a8){return new Promise(function(_0x637c33,_0x596877){return getInteractionUsers(_0x3ac4a2,_0x2ab2a8)['then'](function(_0x478817){return getInteractionTags(_0x478817,_0x52a25f);})['then'](function(_0x41d1cc){_0x637c33(_0x41d1cc);})['catch'](function(_0x3a0a1f){_0x596877(_0x3a0a1f);});});}exports['index']=function(_0xae06ac,_0xfdd1b7){const _0x1fab0d=a236_0x43d570,_0x5b20cb={},_0x5a8b0c={},_0x40aefc={'count':0x0,'rows':[]},_0x33ecc9=_[_0x1fab0d(0x272)](db['FaxInteraction'][_0x1fab0d(0x1d1)],function(_0x4aef58){const _0x37834f=_0x1fab0d;return{'name':_0x4aef58['fieldName'],'type':_0x4aef58['type'][_0x37834f(0x249)]};});_0x5a8b0c[_0x1fab0d(0x285)]=_['map'](_0x33ecc9,'name'),_0x5a8b0c[_0x1fab0d(0x1f0)]=_[_0x1fab0d(0x239)](_0xae06ac['query']),_0x5a8b0c[_0x1fab0d(0x211)]=_['intersection'](_0x5a8b0c[_0x1fab0d(0x285)],_0x5a8b0c['query']),_0x5b20cb[_0x1fab0d(0x1fb)]=_[_0x1fab0d(0x1f9)](_0x5a8b0c['model'],qs['fields'](_0xae06ac['query'][_0x1fab0d(0x273)])),_0x5b20cb[_0x1fab0d(0x1fb)]=_0x5b20cb['attributes'][_0x1fab0d(0x26e)]?_0x5b20cb[_0x1fab0d(0x1fb)]:_0x5a8b0c['model'];typeof _0xae06ac[_0x1fab0d(0x1f0)][_0x1fab0d(0x201)]===_0x1fab0d(0x250)&&(_0x5b20cb[_0x1fab0d(0x24d)]=qs[_0x1fab0d(0x24d)](_0xae06ac[_0x1fab0d(0x1f0)][_0x1fab0d(0x24d)]),_0x5b20cb[_0x1fab0d(0x212)]=qs['offset'](_0xae06ac[_0x1fab0d(0x1f0)][_0x1fab0d(0x212)]));_0x5b20cb['order']=qs['sort'](_0xae06ac[_0x1fab0d(0x1f0)][_0x1fab0d(0x286)]),_0x5b20cb['where']=qs[_0x1fab0d(0x211)](_[_0x1fab0d(0x20b)](_0xae06ac[_0x1fab0d(0x1f0)],_0x5a8b0c[_0x1fab0d(0x211)]),_0x33ecc9);let _0x55fedf=[];const _0x3263fb=squel['select']()['field']('id')['field'](_0x1fab0d(0x210))[_0x1fab0d(0x229)]('color')[_0x1fab0d(0x20a)](_0x1fab0d(0x268)),_0x56f211=squel['select']()['field']('u.id')[_0x1fab0d(0x229)](_0x1fab0d(0x257))[_0x1fab0d(0x229)]('ui.FaxInteractionId')[_0x1fab0d(0x20a)](_0x1fab0d(0x228),'ui')['left_join']('users','u',_0x1fab0d(0x269)),_0x212119=squel[_0x1fab0d(0x24e)]()['from'](_0x1fab0d(0x1d9),'i')['left_join'](_0x1fab0d(0x247),'c',_0x1fab0d(0x265))[_0x1fab0d(0x1db)](_0x1fab0d(0x215),'o','o.id\x20=\x20i.UserId')[_0x1fab0d(0x1db)](_0x1fab0d(0x1ee),'a',_0x1fab0d(0x27b))[_0x1fab0d(0x1db)]('fax_messages','me',_0x1fab0d(0x1f4))[_0x1fab0d(0x1db)]('fax_interaction_has_tags','it','it.FaxInteractionId\x20=\x20i.id')['left_join'](_0x1fab0d(0x268),'t',_0x1fab0d(0x264)),_0x1b2ff9=squel['expr']();let _0x7f6fd1=[];const _0x4a3562=squel[_0x1fab0d(0x26f)]();let _0x389896;if(_0xae06ac[_0x1fab0d(0x1f0)]['search']){_0x389896=as[_0x1fab0d(0x230)](_0xae06ac[_0x1fab0d(0x1f0)][_0x1fab0d(0x252)]);const _0x4a7a28=_0x389896[_0x1fab0d(0x270)];for(let _0x142b6a=0x0;_0x142b6a<_0x389896[_0x1fab0d(0x26a)]['length'];_0x142b6a++){const _0x33fe1a=_0x389896[_0x1fab0d(0x26a)][_0x142b6a],_0x49ac55='i';let _0xa7a85b,_0x58358c=_[_0x1fab0d(0x1d2)](_0x33ecc9,['name',_0x33fe1a['field']]);if(!_0x58358c)switch(_0x33fe1a['field']){case _0x1fab0d(0x21e):_0x33fe1a[_0x1fab0d(0x1e2)]==0x1?_0x212119[_0x1fab0d(0x27c)]('`'+_0x33fe1a[_0x1fab0d(0x229)]+_0x1fab0d(0x200)):_0x212119[_0x1fab0d(0x27c)]('`'+_0x33fe1a[_0x1fab0d(0x229)]+'`\x20>\x200');break;case _0x1fab0d(0x25a):if(_0x33fe1a[_0x1fab0d(0x258)]===_0x1fab0d(0x1f3)){if(_0x33fe1a['value'][_0x1fab0d(0x22d)]('\x20')[_0x1fab0d(0x26e)]>0x1)_0x1b2ff9[_0x4a7a28](_0x1fab0d(0x204),qs[_0x1fab0d(0x26c)](_0x33fe1a['value']),null);else{const _0x52693e='%'+_0x33fe1a['value']+'%';_0x1b2ff9[_0x4a7a28]('c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?',_0x52693e,_0x52693e,_0x52693e);}}else _0x58358c=_[_0x1fab0d(0x1d2)](_0x33ecc9,[_0x1fab0d(0x210),'ContactId']),_0x33fe1a['field']=_0x1fab0d(0x20c),_0xa7a85b=as[_0x1fab0d(0x1f7)](_0x49ac55,_0x58358c['type'],_0x33fe1a),_0x1b2ff9[_0x4a7a28](_0xa7a85b['text'],_0xa7a85b[_0x1fab0d(0x1e2)][_0x1fab0d(0x20e)],_0xa7a85b[_0x1fab0d(0x1e2)][_0x1fab0d(0x23f)]);break;case _0x1fab0d(0x1f2):{const _0x1b2484=_0x33fe1a[_0x1fab0d(0x1e2)][_0x1fab0d(0x22d)](',')[_0x1fab0d(0x272)](function(_0x4a1d62){return Number(_0x4a1d62);});_0x1b2484[_0x1fab0d(0x1e9)](function(_0x5f60c3){const _0x4a846b=_0x1fab0d;_0x4a3562['or'](_0x4a846b(0x281),'%,'+_0x5f60c3+',%');}),_0x7f6fd1=_[_0x1fab0d(0x254)](_0x7f6fd1,_0x1b2484);}break;case _0x1fab0d(0x1d3):_0x33fe1a[_0x1fab0d(0x258)]===_0x1fab0d(0x1f3)?_0x1b2ff9[_0x4a7a28](_0x1fab0d(0x233),'%'+_0x33fe1a[_0x1fab0d(0x1e2)]+'%',null):(_0x58358c=_[_0x1fab0d(0x1d2)](_0x33ecc9,[_0x1fab0d(0x210),_0x1fab0d(0x22f)]),_0x33fe1a['field']='UserId',_0xa7a85b=as[_0x1fab0d(0x1f7)](_0x49ac55,_0x58358c[_0x1fab0d(0x1ea)],_0x33fe1a),_0x1b2ff9[_0x4a7a28](_0xa7a85b[_0x1fab0d(0x238)],_0xa7a85b[_0x1fab0d(0x1e2)][_0x1fab0d(0x20e)],_0xa7a85b['value'][_0x1fab0d(0x23f)]));break;case _0x1fab0d(0x260):_0xa7a85b=as[_0x1fab0d(0x1f7)]('me',null,_0x33fe1a),_0x1b2ff9[_0x4a7a28](_0xa7a85b[_0x1fab0d(0x238)],_0xa7a85b[_0x1fab0d(0x1e2)]['start'],_0xa7a85b[_0x1fab0d(0x1e2)]['end']);break;}else _0xa7a85b=as[_0x1fab0d(0x1f7)](_0x49ac55,_0x58358c[_0x1fab0d(0x1ea)],_0x33fe1a),_0x1b2ff9[_0x4a7a28](_0xa7a85b['text'],_0xa7a85b[_0x1fab0d(0x1e2)][_0x1fab0d(0x20e)],_0xa7a85b[_0x1fab0d(0x1e2)][_0x1fab0d(0x23f)]);}}else{const _0xdeeb72=_(_0xae06ac[_0x1fab0d(0x1f0)])[_0x1fab0d(0x239)]()['map'](function(_0x3520c6){return _['some'](_0x33ecc9,['name',_0x3520c6])?_0x3520c6:undefined;})[_0x1fab0d(0x1d5)]()[_0x1fab0d(0x1e2)]();!_[_0x1fab0d(0x218)](_0xdeeb72)&&_0xdeeb72['forEach'](function(_0x3b93e2){const _0x52031c=_0x1fab0d;if(_0x3b93e2===_0x52031c(0x1d6))_0x212119[_0x52031c(0x227)]('i.FaxAccountId\x20IN\x20?',[][_0x52031c(0x21c)](_0xae06ac[_0x52031c(0x1f0)][_0x3b93e2]));else{if(_0x3b93e2==='createdAt'){const _0x3ab708=JSON[_0x52031c(0x25f)](_0xae06ac[_0x52031c(0x1f0)][_0x3b93e2])[_0x52031c(0x266)],_0x58e359=JSON[_0x52031c(0x25f)](_0xae06ac['query'][_0x3b93e2])[_0x52031c(0x225)];_0x212119['where'](_0x52031c(0x24b),_0x3ab708,_0x58e359);}else _0xae06ac[_0x52031c(0x1f0)][_0x3b93e2]==='null'?_0x212119[_0x52031c(0x227)]('i.'+_0x3b93e2+_0x52031c(0x25d)):_0x212119[_0x52031c(0x227)]('i.'+_0x3b93e2+_0x52031c(0x22c),_0xae06ac['query'][_0x3b93e2]);}});_0xae06ac[_0x1fab0d(0x1f0)]['read']&&(_0xae06ac[_0x1fab0d(0x1f0)]['read']==0x1?_0x212119[_0x1fab0d(0x27c)](_0x1fab0d(0x21f)):_0x212119[_0x1fab0d(0x27c)](_0x1fab0d(0x1e1)));_0xae06ac[_0x1fab0d(0x1f0)][_0x1fab0d(0x1da)]&&(_0x7f6fd1=_['isArray'](_0xae06ac[_0x1fab0d(0x1f0)][_0x1fab0d(0x1da)])?_0xae06ac['query'][_0x1fab0d(0x1da)]:new Array(_0xae06ac[_0x1fab0d(0x1f0)][_0x1fab0d(0x1da)]),_0x7f6fd1['forEach'](function(_0x4f63f6){_0x4a3562['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x4f63f6+',%');}));if(_0xae06ac[_0x1fab0d(0x1f0)][_0x1fab0d(0x232)]){const _0x4587f7=_0xae06ac['query'][_0x1fab0d(0x232)]['replace']('\x5c','\x5c\x5c')[_0x1fab0d(0x24a)](/'/g,'\x27\x27');qs[_0x1fab0d(0x274)](_0x4587f7)&&_0x1b2ff9['or'](_0x1fab0d(0x22b),_0x4587f7+'%')['or']('i.fax\x20LIKE\x20?',_0x4587f7+'%'),_0x1b2ff9['or']('CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?',_0x4587f7+'%');}}_0x212119[_0x1fab0d(0x227)](_0x1b2ff9),_0x212119['group'](_0x1fab0d(0x1e3));let _0x434897={'type':QueryTypes[_0x1fab0d(0x1f6)],'raw':!![]};const _0x5c7bc6=_0x212119[_0x1fab0d(0x1f5)]();_0x5c7bc6[_0x1fab0d(0x229)](_0x1fab0d(0x1e3)),_0x5c7bc6[_0x1fab0d(0x229)]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x1fab0d(0x21e)),_0x5b20cb['order']&&_0x5b20cb[_0x1fab0d(0x214)][_0x1fab0d(0x1e9)](function(_0x12dfd3){const _0x3e2c18=_0x1fab0d,_0x56a039=_0x12dfd3[0x0]===_0x3e2c18(0x255)?_0x12dfd3[0x0]:'i.'+_0x12dfd3[0x0];_0x212119[_0x3e2c18(0x214)](_0x56a039,_0x12dfd3[0x1]===_0x3e2c18(0x271)?![]:!![]);}),!_[_0x1fab0d(0x218)](_0x7f6fd1)&&(_0x212119[_0x1fab0d(0x27c)](_0x4a3562),_0x5c7bc6[_0x1fab0d(0x227)]('t.id\x20IN\x20?',_0x7f6fd1)),Promise['resolve']()['then'](function(){const _0x555c57=_0x1fab0d;if(!_0x389896){if(_0xae06ac[_0x555c57(0x1f0)][_0x555c57(0x1d6)]||_0xae06ac[_0x555c57(0x1f0)][_0x555c57(0x26b)])return;_0x5c7bc6[_0x555c57(0x227)](_0x555c57(0x27e)),_0x212119[_0x555c57(0x227)](_0x555c57(0x27e));return;}return _0xae06ac['user']['getFaxAccounts']({'attributes':['id'],'raw':!![]})[_0x555c57(0x20d)](function(_0x3c4723){const _0x5b11f9=_0x555c57;_[_0x5b11f9(0x218)](_0x3c4723)?(_0x5c7bc6['where'](_0x5b11f9(0x27d)),_0x212119[_0x5b11f9(0x227)](_0x5b11f9(0x27d))):(_0x5c7bc6[_0x5b11f9(0x227)](_0x5b11f9(0x206),_['map'](_0x3c4723,'id')),_0x212119['where'](_0x5b11f9(0x206),_[_0x5b11f9(0x272)](_0x3c4723,'id')));});})['then'](function(){const _0x530a17=_0x1fab0d;db[_0x530a17(0x262)][_0x530a17(0x1f0)](_0x5c7bc6[_0x530a17(0x1de)](),_0x434897)[_0x530a17(0x20d)](function(_0x41c9a5){const _0x3f6976=_0x530a17;_0x40aefc[_0x3f6976(0x246)]=_0x41c9a5[_0x3f6976(0x26e)];if(_0x40aefc['count']===0x0)return[];return db[_0x3f6976(0x262)][_0x3f6976(0x1f0)](_0x3263fb[_0x3f6976(0x1de)](),_0x434897)['then'](function(_0x554738){const _0x3f8757=_0x3f6976;_0x55fedf=_[_0x3f8757(0x236)](_0x554738,'id'),_0x434897=_[_0x3f8757(0x24c)](_0x434897,{'model':db[_0x3f8757(0x1fa)],'mapToModel':!![],'raw':!![],'nest':!![]});_0xae06ac[_0x3f8757(0x1f0)][_0x3f8757(0x273)]?_0x5b20cb[_0x3f8757(0x1fb)][_0x3f8757(0x1e9)](function(_0x255272){_0x212119['field']('i.'+_0x255272);}):(_0x212119[_0x3f8757(0x229)](_0x3f8757(0x284),_0x3f8757(0x21e)),_0x212119[_0x3f8757(0x229)](_0x3f8757(0x202),_0x3f8757(0x207)),_0x212119[_0x3f8757(0x229)]('a.mandatoryDisposition',_0x3f8757(0x226)),_0x212119['field'](_0x3f8757(0x235),'contactName'),_0x212119['field'](_0x3f8757(0x275)),_0x212119[_0x3f8757(0x229)](_0x3f8757(0x242),_0x3f8757(0x263)),_0x212119[_0x3f8757(0x229)](_0x3f8757(0x217),_0x3f8757(0x1e5)),_0x212119['field'](_0x3f8757(0x1d4),_0x3f8757(0x25c)),_0x212119[_0x3f8757(0x229)](_0x3f8757(0x253),'Contact.phone'),_0x212119[_0x3f8757(0x229)](_0x3f8757(0x267),_0x3f8757(0x251)),_0x212119[_0x3f8757(0x229)](_0x3f8757(0x1ef),_0x3f8757(0x245)),_0x212119[_0x3f8757(0x229)](_0x3f8757(0x1e6),_0x3f8757(0x1d8)),_0x212119[_0x3f8757(0x229)]('o.internal','Owner.internal'),_0x212119[_0x3f8757(0x229)](_0x3f8757(0x220),_0x3f8757(0x283)));if(_0x5b20cb['limit'])_0x212119[_0x3f8757(0x24d)](_0x5b20cb['limit']);if(_0x5b20cb['offset'])_0x212119[_0x3f8757(0x212)](_0x5b20cb['offset']);return db[_0x3f8757(0x262)][_0x3f8757(0x1f0)](_0x212119[_0x3f8757(0x1de)](),_0x434897);})[_0x3f6976(0x20d)](function(_0x4322bb){const _0x41b892=_0x3f6976;return _0x56f211['where'](_0x41b892(0x231),_[_0x41b892(0x272)](_0x4322bb,'id')),db[_0x41b892(0x262)][_0x41b892(0x1f0)](_0x56f211[_0x41b892(0x1de)](),_0x434897)['then'](function(_0x6afaa1){const _0x55cf0a=_0x41b892,_0x1796b8=_['groupBy'](_0x6afaa1,'FaxInteractionId'),_0x1f21ea=[];return _0x4322bb[_0x55cf0a(0x1e9)](function(_0x16a9d4){const _0x4ed2b1=_0x55cf0a;_0x1f21ea[_0x4ed2b1(0x1e4)](updateFaxInteraction(_0x16a9d4,_0x55fedf,_0x1796b8));}),Promise[_0x55cf0a(0x1ed)](_0x1f21ea);});});})[_0x530a17(0x20d)](function(_0x2f7bd1){const _0x1fe5fc=_0x530a17;return _0x40aefc[_0x1fe5fc(0x23e)]=_0x2f7bd1,_0x40aefc;})['then'](respondWithFilteredResult(_0xfdd1b7,_0x5b20cb));})[_0x1fab0d(0x219)](handleError(_0xfdd1b7,null));},exports['show']=function(_0x418021,_0xfa21d6){const _0x25842c=a236_0x43d570;let _0x26b379={'raw':![],'where':{'id':_0x418021[_0x25842c(0x216)]['id']}};const _0x1c4cbf={};return _0x1c4cbf[_0x25842c(0x285)]=_[_0x25842c(0x239)](db[_0x25842c(0x1fa)][_0x25842c(0x1d1)]),_0x1c4cbf[_0x25842c(0x1f0)]=_[_0x25842c(0x239)](_0x418021[_0x25842c(0x1f0)]),_0x1c4cbf[_0x25842c(0x211)]=_[_0x25842c(0x1f9)](_0x1c4cbf[_0x25842c(0x285)],_0x1c4cbf[_0x25842c(0x1f0)]),_0x26b379['attributes']=_[_0x25842c(0x1f9)](_0x1c4cbf[_0x25842c(0x285)],qs['fields'](_0x418021[_0x25842c(0x1f0)][_0x25842c(0x273)])),_0x26b379[_0x25842c(0x1fb)]=_0x26b379['attributes']['length']?_0x26b379[_0x25842c(0x1fb)]:_0x1c4cbf[_0x25842c(0x285)],_0x418021[_0x25842c(0x1f0)][_0x25842c(0x22e)]&&(_0x26b379[_0x25842c(0x23b)]=[{'all':!![]}]),_0x26b379=_[_0x25842c(0x24c)]({},_0x26b379,_0x418021['options']),db[_0x25842c(0x1fa)]['findOne'](_0x26b379)[_0x25842c(0x20d)](handleEntityNotFound(_0xfa21d6,null))['then'](respondWithResult(_0xfa21d6,null))[_0x25842c(0x219)](handleError(_0xfa21d6,null));},exports['create']=function(_0x5a102e,_0x3ad0a5){const _0x26bf96=a236_0x43d570;return db[_0x26bf96(0x1fa)][_0x26bf96(0x27a)](_0x5a102e[_0x26bf96(0x260)],{})['then'](respondWithResult(_0x3ad0a5,0xc9))['catch'](handleError(_0x3ad0a5,null));},exports[a236_0x43d570(0x244)]=function(_0x378a04,_0x1904e6){const _0xd1fca9=a236_0x43d570;return _0x378a04['body']['id']&&delete _0x378a04[_0xd1fca9(0x260)]['id'],db[_0xd1fca9(0x1fa)][_0xd1fca9(0x276)]({'where':{'id':_0x378a04[_0xd1fca9(0x216)]['id']}})[_0xd1fca9(0x20d)](handleEntityNotFound(_0x1904e6,null))[_0xd1fca9(0x20d)](saveUpdates(_0x378a04['body'],null))['then'](respondWithResult(_0x1904e6,null))[_0xd1fca9(0x219)](handleError(_0x1904e6,null));},exports[a236_0x43d570(0x277)]=function(_0x1c839c,_0x316b81){const _0x2a08d6=a236_0x43d570;return db[_0x2a08d6(0x1fa)][_0x2a08d6(0x276)]({'where':{'id':_0x1c839c[_0x2a08d6(0x216)]['id']}})[_0x2a08d6(0x20d)](handleEntityNotFound(_0x316b81,null))[_0x2a08d6(0x20d)](removeEntity(_0x316b81,null))[_0x2a08d6(0x219)](handleError(_0x316b81,null));},exports['describe']=function(_0x27c773,_0x1f56eb){const _0x3d0099=a236_0x43d570;return db[_0x3d0099(0x1fa)][_0x3d0099(0x1ec)]()[_0x3d0099(0x20d)](respondWithResult(_0x1f56eb,null))[_0x3d0099(0x219)](handleError(_0x1f56eb,null));},exports['addMessage']=function(_0x2a3b17,_0x2efa21){const _0x1a4852=a236_0x43d570;return db[_0x1a4852(0x223)][_0x1a4852(0x276)]({'where':{'id':_0x2a3b17[_0x1a4852(0x216)]['id']}})[_0x1a4852(0x20d)](function(_0x4859c7){const _0x3c72a8=_0x1a4852;if(_0x4859c7)return _0x4859c7[_0x3c72a8(0x1dd)](_0x2a3b17['body']['ids'],{'through':_[_0x3c72a8(0x280)](_0x2a3b17[_0x3c72a8(0x260)],[_0x3c72a8(0x25e),'id'])});})[_0x1a4852(0x20d)](respondWithResult(_0x2efa21,null))[_0x1a4852(0x219)](handleError(_0x2efa21,null));},exports[a236_0x43d570(0x222)]=function(_0x5c1d7e,_0x36112c){const _0x407dfd=a236_0x43d570;let _0x84b785={'raw':![],'where':{}};const _0x8222da={},_0x3593cf={'count':0x0,'rows':[]};return db[_0x407dfd(0x1fa)][_0x407dfd(0x276)]({'where':{'id':_0x5c1d7e['params']['id']}})['then'](handleEntityNotFound(_0x36112c,null))['then'](function(_0x50a086){const _0x598c6d=_0x407dfd;if(_0x50a086){_0x8222da[_0x598c6d(0x285)]=_[_0x598c6d(0x239)](db['FaxMessage']['rawAttributes']),_0x8222da[_0x598c6d(0x1f0)]=_['keys'](_0x5c1d7e[_0x598c6d(0x1f0)]),_0x8222da[_0x598c6d(0x211)]=_[_0x598c6d(0x1f9)](_0x8222da[_0x598c6d(0x285)],_0x8222da[_0x598c6d(0x1f0)]),_0x84b785[_0x598c6d(0x1fb)]=_[_0x598c6d(0x1f9)](_0x8222da[_0x598c6d(0x285)],qs['fields'](_0x5c1d7e[_0x598c6d(0x1f0)][_0x598c6d(0x273)])),_0x84b785[_0x598c6d(0x1fb)]=_0x84b785[_0x598c6d(0x1fb)][_0x598c6d(0x26e)]?_0x84b785[_0x598c6d(0x1fb)]:_0x8222da[_0x598c6d(0x285)];typeof _0x5c1d7e[_0x598c6d(0x1f0)]['nolimit']===_0x598c6d(0x250)&&(_0x84b785['limit']=qs[_0x598c6d(0x24d)](_0x5c1d7e[_0x598c6d(0x1f0)][_0x598c6d(0x24d)]),_0x84b785['offset']=qs[_0x598c6d(0x212)](_0x5c1d7e[_0x598c6d(0x1f0)][_0x598c6d(0x212)]));_0x84b785['order']=qs[_0x598c6d(0x286)](_0x5c1d7e[_0x598c6d(0x1f0)][_0x598c6d(0x286)]),_0x84b785[_0x598c6d(0x227)]=qs[_0x598c6d(0x211)](_['pick'](_0x5c1d7e[_0x598c6d(0x1f0)],_0x8222da[_0x598c6d(0x211)])),_0x84b785[_0x598c6d(0x227)][_0x598c6d(0x203)]=_0x50a086['id'];_0x5c1d7e[_0x598c6d(0x1f0)]['filter']&&(_0x84b785[_0x598c6d(0x227)]=_['merge'](_0x84b785[_0x598c6d(0x227)],{[Op['or']]:_['map'](_0x84b785['attributes'],function(_0x1b0c4f){const _0xcc762e=_0x598c6d,_0x4cfbbb={};return _0x4cfbbb[_0x1b0c4f]={[Op[_0xcc762e(0x1dc)]]:'%'+_0x5c1d7e[_0xcc762e(0x1f0)][_0xcc762e(0x232)]+'%'},_0x4cfbbb;})}));if(_0x5c1d7e[_0x598c6d(0x1f0)]['$gte']){const _0x3d9fb6=_0x5c1d7e[_0x598c6d(0x1f0)][_0x598c6d(0x266)][_0x598c6d(0x22d)](','),_0x3ad530={};_0x3ad530[_0x3d9fb6[0x0]]={[Op[_0x598c6d(0x1ff)]]:moment(_0x3d9fb6[0x1])[_0x598c6d(0x1fd)](_0x598c6d(0x27f))},_0x84b785[_0x598c6d(0x227)]=_[_0x598c6d(0x24c)](_0x84b785[_0x598c6d(0x227)],_0x3ad530);}return _0x84b785=_[_0x598c6d(0x24c)]({},_0x84b785,_0x5c1d7e['options']),db[_0x598c6d(0x223)][_0x598c6d(0x246)]({'where':_0x84b785[_0x598c6d(0x227)]})[_0x598c6d(0x20d)](function(_0x1b12fd){const _0x50c633=_0x598c6d;return _0x3593cf[_0x50c633(0x246)]=_0x1b12fd,_0x5c1d7e[_0x50c633(0x1f0)][_0x50c633(0x22e)]&&(_0x84b785[_0x50c633(0x23b)]=[{'all':!![]}]),db[_0x50c633(0x223)]['findAll'](_0x84b785);})[_0x598c6d(0x20d)](function(_0x4f965e){return _0x3593cf['rows']=_0x4f965e,_0x3593cf;});}})[_0x407dfd(0x20d)](respondWithFilteredResult(_0x36112c,_0x84b785))[_0x407dfd(0x219)](handleError(_0x36112c,null));},exports[a236_0x43d570(0x1f1)]=function(_0x42c219,_0x548c28){const _0x5897dd=a236_0x43d570;return db[_0x5897dd(0x1fa)][_0x5897dd(0x276)]({'where':{'id':_0x42c219[_0x5897dd(0x216)]['id']}})[_0x5897dd(0x20d)](function(_0x1a5163){const _0xc57f84=_0x5897dd;if(_0x1a5163)return _0x1a5163['setTags'](_0x42c219['body'][_0xc57f84(0x25e)],{'through':_[_0xc57f84(0x280)](_0x42c219[_0xc57f84(0x260)],[_0xc57f84(0x25e),'id'])})['then'](function(){const _0x178faf=_0xc57f84;return db[_0x178faf(0x1f2)][_0x178faf(0x234)]({'attributes':['id',_0x178faf(0x210),_0x178faf(0x23d)],'where':{'id':_0x42c219[_0x178faf(0x260)][_0x178faf(0x25e)]}});})[_0xc57f84(0x20d)](function(_0x6a64a1){const _0x3b7de7=_0xc57f84;return socket[_0x3b7de7(0x21d)]('faxInteractionTags:save',{'id':Number(_0x42c219[_0x3b7de7(0x216)]['id']),'tags':_0x6a64a1||[]}),{'id':Number(_0x42c219[_0x3b7de7(0x216)]['id']),'tags':_0x6a64a1||[]};});})[_0x5897dd(0x20d)](respondWithResult(_0x548c28,null))[_0x5897dd(0x219)](handleError(_0x548c28,null));},exports[a236_0x43d570(0x256)]=function(_0x50a182,_0x180abe){const _0x1337f9=a236_0x43d570;return db[_0x1337f9(0x1fa)][_0x1337f9(0x276)]({'where':{'id':_0x50a182[_0x1337f9(0x216)]['id']}})[_0x1337f9(0x20d)](handleEntityNotFound(_0x180abe,null))['then'](function(_0x45dd97){const _0x13437b=_0x1337f9;if(_0x45dd97)return _0x45dd97[_0x13437b(0x256)](_0x50a182[_0x13437b(0x1f0)]['ids']);})['then'](respondWithStatusCode(_0x180abe,null))[_0x1337f9(0x219)](handleError(_0x180abe,null));},exports[a236_0x43d570(0x282)]=function(_0x24ac2,_0x1f0fa2){const _0x116fc4=a236_0x43d570,_0x265095=moment()[_0x116fc4(0x259)]()[_0x116fc4(0x1de)](),_0x32c329=path[_0x116fc4(0x248)](config['root'],_0x116fc4(0x287),_0x116fc4(0x224)),_0x147f8c=path[_0x116fc4(0x248)](config[_0x116fc4(0x213)],'server',_0x116fc4(0x287),_0x116fc4(0x288)),_0x4f41f1=path[_0x116fc4(0x248)](_0x32c329,_0x265095),_0xfaa433=util[_0x116fc4(0x1fd)](_0x116fc4(0x209),_0x24ac2[_0x116fc4(0x216)]['id'],_0x265095),_0x522c5e=path['join'](_0x32c329,_0xfaa433),_0x3d23e7=[];_0x3d23e7[_0x116fc4(0x1e4)]({'model':db[_0x116fc4(0x241)],'as':_0x116fc4(0x241),'raw':!![]});const _0xb92156=[{'model':db[_0x116fc4(0x223)],'as':_0x116fc4(0x1e7),'attributes':['id',_0x116fc4(0x260),_0x116fc4(0x23c)],'include':_0x3d23e7}];return db[_0x116fc4(0x1fa)]['findOne']({'where':{'id':_0x24ac2[_0x116fc4(0x216)]['id']},'include':_0xb92156})[_0x116fc4(0x20d)](handleEntityNotFound(_0x1f0fa2,null))['then'](function(_0x3b872f){const _0x3ed918=_0x116fc4;if(_0x3b872f&&_0x3b872f[_0x3ed918(0x1e7)]){const _0x592861=_0x3b872f[_0x3ed918(0x261)]({'plain':!![]});fs['mkdirSync'](_0x4f41f1);for(let _0x21f445=0x0;_0x21f445<_0x592861[_0x3ed918(0x1e7)][_0x3ed918(0x26e)];_0x21f445++){const _0x4ec21c=_0x592861[_0x3ed918(0x1e7)][_0x21f445]['Attachment'];if(_0x4ec21c){const _0x1d547d=path[_0x3ed918(0x248)](_0x147f8c,_0x4ec21c[_0x3ed918(0x243)]);fs[_0x3ed918(0x25b)](_0x1d547d)&&fs['createReadStream'](_0x1d547d)[_0x3ed918(0x22a)](fs['createWriteStream'](path['join'](_0x4f41f1,_0x4ec21c['basename'])));}}return Promise[_0x3ed918(0x237)]()['then'](function(){const _0x549e49=_0x3ed918;return new Promise(function(_0x52eb98,_0x5dfebe){zipdir(_0x4f41f1,{'saveTo':_0x522c5e},function(_0x332166,_0x366ce1){if(_0x332166)return _0x5dfebe(_0x332166);return _0x52eb98(_0x366ce1);});})[_0x549e49(0x20d)](function(){return new Promise(function(_0x477689,_0x7e86c0){rimraf(_0x4f41f1,function(_0x10dc1){if(_0x10dc1)_0x7e86c0(_0x10dc1);return _0x477689();});});})[_0x549e49(0x20d)](function(){return _0x1f0fa2['download'](_0x522c5e,_0xfaa433,function(_0x241cef){const _0x22c92f=a236_0x5c16;_0x241cef?console[_0x22c92f(0x1e0)]('err',_0x241cef):fs[_0x22c92f(0x1eb)](_0x522c5e);});});});}else return _0x1f0fa2[_0x3ed918(0x221)](0xc8);})['catch'](handleError(_0x1f0fa2,null));}; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.events.js b/server/api/faxInteraction/faxInteraction.events.js index 06a1e43..a79e5c1 100644 --- a/server/api/faxInteraction/faxInteraction.events.js +++ b/server/api/faxInteraction/faxInteraction.events.js @@ -1 +1 @@ -const a237_0x20fd=['FaxInteraction','getUsers','Users','unreadMessages','setDataValue','addHook','then','../../mysqldb','length','findAll','events','setMaxListeners','emit','update'];(function(_0x943785,_0x41fccb){const _0x20fdfa=function(_0x197f5f){while(--_0x197f5f){_0x943785['push'](_0x943785['shift']());}};_0x20fdfa(++_0x41fccb);}(a237_0x20fd,0x1ae));const a237_0x197f=function(_0x943785,_0x41fccb){_0x943785=_0x943785-0x15d;let _0x20fdfa=a237_0x20fd[_0x943785];return _0x20fdfa;};const a237_0x786ace=a237_0x197f;'use strict';const EventEmitter=require(a237_0x786ace(0x15d)),FaxInteraction=require(a237_0x786ace(0x168))['db'][a237_0x786ace(0x161)],FaxMessage=require(a237_0x786ace(0x168))['db']['FaxMessage'],FaxInteractionEvents=new EventEmitter();FaxInteractionEvents[a237_0x786ace(0x15e)](0x0);const events={'afterCreate':'save','afterUpdate':a237_0x786ace(0x160),'afterDestroy':'remove'};function emitEvent(_0xc12804){return function(_0x229efa){const _0x1eef60=a237_0x197f;_0x229efa[_0x1eef60(0x162)]({'attributes':['id'],'raw':!![]})[_0x1eef60(0x167)](function(_0x157e4d){const _0xd402a6=_0x1eef60;return _0x229efa[_0xd402a6(0x165)](_0xd402a6(0x163),_0x157e4d['map'](function(_0xfd85f8){return{'id':_0xfd85f8['id']};})),FaxMessage[_0xd402a6(0x16a)]({'where':{'FaxInteractionId':_0x229efa['id'],'direction':'in','read':![]},'raw':!![]});})[_0x1eef60(0x167)](function(_0xfad962){const _0x2f7572=_0x1eef60;_0x229efa['setDataValue'](_0x2f7572(0x164),_0xfad962[_0x2f7572(0x169)]),FaxInteractionEvents[_0x2f7572(0x15f)](_0xc12804+':'+_0x229efa['id'],_0x229efa),FaxInteractionEvents['emit'](_0xc12804,_0x229efa);})['catch'](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];FaxInteraction[a237_0x786ace(0x166)](e,emitEvent(event));}}module['exports']=FaxInteractionEvents; \ No newline at end of file +const a237_0x5bfe=['remove','../../mysqldb','save','findAll','addHook','unreadMessages','FaxMessage','Users','setDataValue','catch','emit'];(function(_0x1fc5e8,_0x1e6744){const _0x5bfe4f=function(_0x196ce6){while(--_0x196ce6){_0x1fc5e8['push'](_0x1fc5e8['shift']());}};_0x5bfe4f(++_0x1e6744);}(a237_0x5bfe,0x1c1));const a237_0x196c=function(_0x1fc5e8,_0x1e6744){_0x1fc5e8=_0x1fc5e8-0xd0;let _0x5bfe4f=a237_0x5bfe[_0x1fc5e8];return _0x5bfe4f;};const a237_0xb76a46=a237_0x196c;'use strict';const EventEmitter=require('events'),FaxInteraction=require(a237_0xb76a46(0xd3))['db']['FaxInteraction'],FaxMessage=require(a237_0xb76a46(0xd3))['db'][a237_0xb76a46(0xd8)],FaxInteractionEvents=new EventEmitter();FaxInteractionEvents['setMaxListeners'](0x0);const events={'afterCreate':a237_0xb76a46(0xd4),'afterUpdate':'update','afterDestroy':a237_0xb76a46(0xd2)};function emitEvent(_0x36dd32){return function(_0x2fed77){const _0x474356=a237_0x196c;_0x2fed77['getUsers']({'attributes':['id'],'raw':!![]})['then'](function(_0xcad40a){const _0x17ac59=a237_0x196c;return _0x2fed77[_0x17ac59(0xda)](_0x17ac59(0xd9),_0xcad40a['map'](function(_0x3ba1f2){return{'id':_0x3ba1f2['id']};})),FaxMessage[_0x17ac59(0xd5)]({'where':{'FaxInteractionId':_0x2fed77['id'],'direction':'in','read':![]},'raw':!![]});})['then'](function(_0x2f4ea6){const _0x364749=a237_0x196c;_0x2fed77['setDataValue'](_0x364749(0xd7),_0x2f4ea6['length']),FaxInteractionEvents[_0x364749(0xd1)](_0x36dd32+':'+_0x2fed77['id'],_0x2fed77),FaxInteractionEvents[_0x364749(0xd1)](_0x36dd32,_0x2fed77);})[_0x474356(0xd0)](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];FaxInteraction[a237_0xb76a46(0xd6)](e,emitEvent(event));}}module['exports']=FaxInteractionEvents; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.model.js b/server/api/faxInteraction/faxInteraction.model.js index a32cfb2..dd2d966 100644 --- a/server/api/faxInteraction/faxInteraction.model.js +++ b/server/api/faxInteraction/faxInteraction.model.js @@ -1 +1 @@ -const a238_0xa030=['sequelize','FaxInteraction','exports','init','./faxInteraction.options','./faxInteraction.attributes'];(function(_0x36b348,_0xe9f85f){const _0xa03062=function(_0x2630db){while(--_0x2630db){_0x36b348['push'](_0x36b348['shift']());}};_0xa03062(++_0xe9f85f);}(a238_0xa030,0x11e));const a238_0x2630=function(_0x36b348,_0xe9f85f){_0x36b348=_0x36b348-0xd7;let _0xa03062=a238_0xa030[_0x36b348];return _0xa03062;};const a238_0x59c811=a238_0x2630;'use strict';const {Model}=require(a238_0x59c811(0xd9)),{attributes}=require(a238_0x59c811(0xd8)),{options}=require(a238_0x59c811(0xd7));class FaxInteraction extends Model{}function init(_0x17547c,_0x3332bd){const _0x3841e4=a238_0x59c811,_0x47180f=options(_0x17547c),_0x5b7bb4=typeof _0x3332bd==='function'?_0x3332bd(_0x47180f):_0x47180f;return FaxInteraction[_0x3841e4(0xdc)](attributes,_0x5b7bb4),FaxInteraction;}module[a238_0x59c811(0xdb)][a238_0x59c811(0xda)]=FaxInteraction,module[a238_0x59c811(0xdb)]['init']=init; \ No newline at end of file +const a238_0x5971=['init','./faxInteraction.options','function','./faxInteraction.attributes','sequelize','exports'];(function(_0x3b5b77,_0x5e6d07){const _0x5971dd=function(_0x1e472d){while(--_0x1e472d){_0x3b5b77['push'](_0x3b5b77['shift']());}};_0x5971dd(++_0x5e6d07);}(a238_0x5971,0x131));const a238_0x1e47=function(_0x3b5b77,_0x5e6d07){_0x3b5b77=_0x3b5b77-0x1bd;let _0x5971dd=a238_0x5971[_0x3b5b77];return _0x5971dd;};const a238_0x58adf6=a238_0x1e47;'use strict';const {Model}=require(a238_0x58adf6(0x1c2)),{attributes}=require(a238_0x58adf6(0x1c1)),{options}=require(a238_0x58adf6(0x1bf));class FaxInteraction extends Model{}function init(_0x431cc4,_0x5d12c7){const _0x1cfbd5=a238_0x58adf6,_0x43a9dd=options(_0x431cc4),_0x10349e=typeof _0x5d12c7===_0x1cfbd5(0x1c0)?_0x5d12c7(_0x43a9dd):_0x43a9dd;return FaxInteraction[_0x1cfbd5(0x1be)](attributes,_0x10349e),FaxInteraction;}module['exports']['FaxInteraction']=FaxInteraction,module[a238_0x58adf6(0x1bd)][a238_0x58adf6(0x1be)]=init; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.options.js b/server/api/faxInteraction/faxInteraction.options.js index b26b51d..07785b0 100644 --- a/server/api/faxInteraction/faxInteraction.options.js +++ b/server/api/faxInteraction/faxInteraction.options.js @@ -1 +1 @@ -const a239_0x2173=['YYYY-MM-DD\x20HH:mm:ss','moment','options','exports','fax_interactions'];(function(_0x43ab96,_0x116a95){const _0x21730b=function(_0x16eb89){while(--_0x16eb89){_0x43ab96['push'](_0x43ab96['shift']());}};_0x21730b(++_0x116a95);}(a239_0x2173,0x14f));const a239_0x16eb=function(_0x43ab96,_0x116a95){_0x43ab96=_0x43ab96-0xc2;let _0x21730b=a239_0x2173[_0x43ab96];return _0x21730b;};const a239_0x11bf5d=a239_0x16eb,moment=require(a239_0x11bf5d(0xc3));function options(_0x217c51){const _0x66fcfd=a239_0x11bf5d;return{'sequelize':_0x217c51,'tableName':_0x66fcfd(0xc6),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x598bd3){const _0x2f869f=_0x66fcfd;_0x598bd3['changed']('closed')&&(_0x598bd3['closedAt']=moment()['format'](_0x2f869f(0xc2)));}}};}module[a239_0x11bf5d(0xc5)][a239_0x11bf5d(0xc4)]=options; \ No newline at end of file +const a239_0x1d2b=['closedAt','YYYY-MM-DD\x20HH:mm:ss','changed','moment','format','exports','options','closed'];(function(_0x2726aa,_0x23bf14){const _0x1d2b6b=function(_0x1af091){while(--_0x1af091){_0x2726aa['push'](_0x2726aa['shift']());}};_0x1d2b6b(++_0x23bf14);}(a239_0x1d2b,0xa6));const a239_0x1af0=function(_0x2726aa,_0x23bf14){_0x2726aa=_0x2726aa-0xf7;let _0x1d2b6b=a239_0x1d2b[_0x2726aa];return _0x1d2b6b;};const a239_0xafc5e2=a239_0x1af0,moment=require(a239_0xafc5e2(0xfc));function options(_0x30c1d7){return{'sequelize':_0x30c1d7,'tableName':'fax_interactions','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x1502d1){const _0x51240c=a239_0x1af0;_0x1502d1[_0x51240c(0xfb)](_0x51240c(0xf8))&&(_0x1502d1[_0x51240c(0xf9)]=moment()[_0x51240c(0xfd)](_0x51240c(0xfa)));}}};}module[a239_0xafc5e2(0xfe)][a239_0xafc5e2(0xf7)]=options; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.rpc.js b/server/api/faxInteraction/faxInteraction.rpc.js index fef00d5..f9aa5ca 100644 --- a/server/api/faxInteraction/faxInteraction.rpc.js +++ b/server/api/faxInteraction/faxInteraction.rpc.js @@ -1 +1 @@ -const a240_0x28c8=['omit','catch','message','AddTagsToFaxInteraction','../../mysqldb','debug','findOne','ids','error','info','stringify','lodash','where','./faxInteraction.socket','body','then','../../rediscache','AddTags','options','FaxInteraction','UpdateFaxInteraction','addTags','register'];(function(_0x2696f7,_0x427c1c){const _0x28c89a=function(_0x5f1cee){while(--_0x5f1cee){_0x2696f7['push'](_0x2696f7['shift']());}};_0x28c89a(++_0x427c1c);}(a240_0x28c8,0x14d));const a240_0x5f1c=function(_0x2696f7,_0x427c1c){_0x2696f7=_0x2696f7-0xa1;let _0x28c89a=a240_0x28c8[_0x2696f7];return _0x28c89a;};const a240_0x605056=a240_0x5f1c;'use strict';const _=require(a240_0x605056(0xa1)),db=require(a240_0x605056(0xb1))['db'],logger=require('../../config/logger')('rpc'),{getSocket}=require(a240_0x605056(0xa6)),socket=getSocket();require(a240_0x605056(0xa3))[a240_0x605056(0xac)](socket),exports[a240_0x605056(0xaa)]=function(_0x47c963){const _0x56d569=this;return new Promise(function(_0x28945b,_0x57b234){const _0x919276=a240_0x5f1c;return db[_0x919276(0xa9)]['update'](_0x47c963[_0x919276(0xa4)],{'raw':_0x47c963[_0x919276(0xa8)]?_0x47c963[_0x919276(0xa8)]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x47c963[_0x919276(0xa8)]?_0x47c963[_0x919276(0xa8)][_0x919276(0xa2)]||null:null,'attributes':_0x47c963[_0x919276(0xa8)]?_0x47c963[_0x919276(0xa8)]['attributes']||null:null,'limit':_0x47c963[_0x919276(0xa8)]?_0x47c963[_0x919276(0xa8)]['limit']||null:null})['then'](function(_0x13ee42){const _0x134c31=_0x919276;logger[_0x134c31(0xb6)](_0x134c31(0xaa),_0x47c963),logger['debug'](_0x134c31(0xaa),_0x47c963,JSON['stringify'](_0x13ee42)),_0x28945b(_0x13ee42);})[_0x919276(0xae)](function(_0x4cf8ce){const _0x6c6870=_0x919276;logger[_0x6c6870(0xb5)]('UpdateFaxInteraction',_0x4cf8ce[_0x6c6870(0xaf)],_0x47c963),_0x57b234(_0x56d569[_0x6c6870(0xb5)](0x1f4,_0x4cf8ce['message']));});});},exports[a240_0x605056(0xb0)]=function(_0x56ab88){const _0x3f08d2=this;return new Promise(function(_0x5eee0b,_0x2d1083){const _0x113af4=a240_0x5f1c;return db[_0x113af4(0xa9)][_0x113af4(0xb3)]({'where':_0x56ab88[_0x113af4(0xa8)]?_0x56ab88['options'][_0x113af4(0xa2)]||null:null})[_0x113af4(0xa5)](function(_0x4d8186){const _0x4b3d93=_0x113af4;if(_0x4d8186)return _0x4d8186[_0x4b3d93(0xab)](_0x56ab88[_0x4b3d93(0xa4)][_0x4b3d93(0xb4)],{'through':_[_0x4b3d93(0xad)](_0x56ab88['body'],[_0x4b3d93(0xb4),'id'])});})[_0x113af4(0xa5)](function([_0x29d625]){const _0x31c38c=_0x113af4;logger[_0x31c38c(0xb6)](_0x31c38c(0xa7),_0x56ab88),logger[_0x31c38c(0xb2)](_0x31c38c(0xa7),_0x56ab88,JSON[_0x31c38c(0xb7)](_0x29d625)),_0x5eee0b(_0x29d625);})[_0x113af4(0xae)](function(_0x263f8f){const _0x56cd5e=_0x113af4;logger[_0x56cd5e(0xb5)](_0x56cd5e(0xa7),_0x263f8f[_0x56cd5e(0xaf)],_0x56ab88),_0x2d1083(_0x3f08d2[_0x56cd5e(0xb5)](0x1f4,_0x263f8f[_0x56cd5e(0xaf)]));});});}; \ No newline at end of file +const a240_0x23ee=['omit','debug','info','update','where','ids','limit','options','UpdateFaxInteraction','body','then','AddTags','./faxInteraction.socket','../../config/logger','FaxInteraction','../../mysqldb','AddTagsToFaxInteraction','rpc','message','catch','error','stringify','../../rediscache','lodash','attributes'];(function(_0x4e32b9,_0xc2d607){const _0x23eee0=function(_0x4c842e){while(--_0x4c842e){_0x4e32b9['push'](_0x4e32b9['shift']());}};_0x23eee0(++_0xc2d607);}(a240_0x23ee,0x10b));const a240_0x4c84=function(_0x4e32b9,_0xc2d607){_0x4e32b9=_0x4e32b9-0xe2;let _0x23eee0=a240_0x23ee[_0x4e32b9];return _0x23eee0;};const a240_0x48a3d7=a240_0x4c84;'use strict';const _=require(a240_0x48a3d7(0xe8)),db=require(a240_0x48a3d7(0xf9))['db'],logger=require(a240_0x48a3d7(0xf7))(a240_0x48a3d7(0xe2)),{getSocket}=require(a240_0x48a3d7(0xe7)),socket=getSocket();require(a240_0x48a3d7(0xf6))['register'](socket),exports[a240_0x48a3d7(0xf2)]=function(_0x157d3b){const _0x5d2d80=this;return new Promise(function(_0x1cb220,_0x1bd5ab){const _0x2cfbdc=a240_0x4c84;return db[_0x2cfbdc(0xf8)][_0x2cfbdc(0xed)](_0x157d3b[_0x2cfbdc(0xf3)],{'raw':_0x157d3b[_0x2cfbdc(0xf1)]?_0x157d3b[_0x2cfbdc(0xf1)]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x157d3b[_0x2cfbdc(0xf1)]?_0x157d3b['options'][_0x2cfbdc(0xee)]||null:null,'attributes':_0x157d3b['options']?_0x157d3b[_0x2cfbdc(0xf1)][_0x2cfbdc(0xe9)]||null:null,'limit':_0x157d3b[_0x2cfbdc(0xf1)]?_0x157d3b['options'][_0x2cfbdc(0xf0)]||null:null})[_0x2cfbdc(0xf4)](function(_0x48af87){const _0x1541e2=_0x2cfbdc;logger[_0x1541e2(0xec)](_0x1541e2(0xf2),_0x157d3b),logger[_0x1541e2(0xeb)](_0x1541e2(0xf2),_0x157d3b,JSON[_0x1541e2(0xe6)](_0x48af87)),_0x1cb220(_0x48af87);})['catch'](function(_0xf84873){logger['error']('UpdateFaxInteraction',_0xf84873['message'],_0x157d3b),_0x1bd5ab(_0x5d2d80['error'](0x1f4,_0xf84873['message']));});});},exports[a240_0x48a3d7(0xfa)]=function(_0x42479d){const _0x450af3=this;return new Promise(function(_0xefaa44,_0x479d50){const _0x283303=a240_0x4c84;return db['FaxInteraction']['findOne']({'where':_0x42479d[_0x283303(0xf1)]?_0x42479d[_0x283303(0xf1)][_0x283303(0xee)]||null:null})[_0x283303(0xf4)](function(_0x5ba06b){const _0x5cc8ca=_0x283303;if(_0x5ba06b)return _0x5ba06b['addTags'](_0x42479d[_0x5cc8ca(0xf3)]['ids'],{'through':_[_0x5cc8ca(0xea)](_0x42479d[_0x5cc8ca(0xf3)],[_0x5cc8ca(0xef),'id'])});})[_0x283303(0xf4)](function([_0x3213fc]){const _0xbc1b2=_0x283303;logger[_0xbc1b2(0xec)]('AddTags',_0x42479d),logger[_0xbc1b2(0xeb)](_0xbc1b2(0xf5),_0x42479d,JSON[_0xbc1b2(0xe6)](_0x3213fc)),_0xefaa44(_0x3213fc);})[_0x283303(0xe4)](function(_0x21d702){const _0x14b08d=_0x283303;logger['error'](_0x14b08d(0xf5),_0x21d702[_0x14b08d(0xe3)],_0x42479d),_0x479d50(_0x450af3[_0x14b08d(0xe5)](0x1f4,_0x21d702[_0x14b08d(0xe3)]));});});}; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.socket.js b/server/api/faxInteraction/faxInteraction.socket.js index 5ce77cc..35e15a8 100644 --- a/server/api/faxInteraction/faxInteraction.socket.js +++ b/server/api/faxInteraction/faxInteraction.socket.js @@ -1 +1 @@ -const a241_0x293b=['save','remove','faxInteraction:','register','emit','./faxInteraction.events','update'];(function(_0x2b6192,_0x3ca337){const _0x293bdb=function(_0x207666){while(--_0x207666){_0x2b6192['push'](_0x2b6192['shift']());}};_0x293bdb(++_0x3ca337);}(a241_0x293b,0xb5));const a241_0x2076=function(_0x2b6192,_0x3ca337){_0x2b6192=_0x2b6192-0x1db;let _0x293bdb=a241_0x293b[_0x2b6192];return _0x293bdb;};const a241_0xc1fbb1=a241_0x2076;'use strict';const FaxInteractionEvents=require(a241_0xc1fbb1(0x1e1)),events=[a241_0xc1fbb1(0x1dc),a241_0xc1fbb1(0x1dd),a241_0xc1fbb1(0x1db)];function createListener(_0x2282f8,_0x579713){return function(_0x4f7be2){const _0x1cd0d6=a241_0x2076;_0x579713[_0x1cd0d6(0x1e0)](_0x2282f8,_0x4f7be2);};}exports[a241_0xc1fbb1(0x1df)]=function(_0x2565bc){const _0x4a0605=a241_0xc1fbb1;for(let _0x4591c7=0x0,_0x5e1f58=events['length'];_0x4591c7<_0x5e1f58;_0x4591c7++){const _0x27044f=events[_0x4591c7],_0x44ccb1=createListener(_0x4a0605(0x1de)+_0x27044f,_0x2565bc);FaxInteractionEvents['on'](_0x27044f,_0x44ccb1);}}; \ No newline at end of file +const a241_0x3d8d=['faxInteraction:','./faxInteraction.events','save','emit','length','remove'];(function(_0x1c0dd3,_0x56141a){const _0x3d8d43=function(_0x4826e9){while(--_0x4826e9){_0x1c0dd3['push'](_0x1c0dd3['shift']());}};_0x3d8d43(++_0x56141a);}(a241_0x3d8d,0xf8));const a241_0x4826=function(_0x1c0dd3,_0x56141a){_0x1c0dd3=_0x1c0dd3-0x1ec;let _0x3d8d43=a241_0x3d8d[_0x1c0dd3];return _0x3d8d43;};const a241_0x28419d=a241_0x4826;'use strict';const FaxInteractionEvents=require(a241_0x28419d(0x1f1)),events=[a241_0x28419d(0x1ec),a241_0x28419d(0x1ef),'update'];function createListener(_0x538011,_0x497fda){return function(_0x315201){const _0x42cc47=a241_0x4826;_0x497fda[_0x42cc47(0x1ed)](_0x538011,_0x315201);};}exports['register']=function(_0x1c77f8){const _0x11bda0=a241_0x28419d;for(let _0x27a770=0x0,_0x5c8ab7=events[_0x11bda0(0x1ee)];_0x27a770<_0x5c8ab7;_0x27a770++){const _0x488edb=events[_0x27a770],_0x1cd172=createListener(_0x11bda0(0x1f0)+_0x488edb,_0x1c77f8);FaxInteractionEvents['on'](_0x488edb,_0x1cd172);}}; \ No newline at end of file diff --git a/server/api/faxInteraction/index.js b/server/api/faxInteraction/index.js index a30a2fd..4165f45 100644 --- a/server/api/faxInteraction/index.js +++ b/server/api/faxInteraction/index.js @@ -1 +1 @@ -const a242_0x2610=['../../components/auth/service','faxinteraction:addtags','isAuthenticated','getMessages','exports','show','express','destroy','faxinteraction:destroy','fax','./faxInteraction.controller','/:id/messages','/describe','tracked','/:id','removeTags','Router','get','index','delete','/:id/download','/:id/tags','download','describe'];(function(_0x487232,_0x10182b){const _0x2610bd=function(_0x2deced){while(--_0x2deced){_0x487232['push'](_0x487232['shift']());}};_0x2610bd(++_0x10182b);}(a242_0x2610,0x18c));const a242_0x2dec=function(_0x487232,_0x10182b){_0x487232=_0x487232-0x8b;let _0x2610bd=a242_0x2610[_0x487232];return _0x2610bd;};const a242_0x15200f=a242_0x2dec;'use strict';const express=require(a242_0x15200f(0x9d)),router=express[a242_0x15200f(0x8f)](),auth=require(a242_0x15200f(0x97)),interaction=require('../../components/interaction/service'),controller=require(a242_0x15200f(0xa1));router['get']('/',auth[a242_0x15200f(0x99)](),controller[a242_0x15200f(0x91)]),router[a242_0x15200f(0x90)](a242_0x15200f(0x8b),auth['isAuthenticated'](),controller[a242_0x15200f(0x96)]),router[a242_0x15200f(0x90)](a242_0x15200f(0x8d),auth[a242_0x15200f(0x99)](),controller[a242_0x15200f(0x9c)]),router[a242_0x15200f(0x90)](a242_0x15200f(0xa2),auth[a242_0x15200f(0x99)](),controller[a242_0x15200f(0x9a)]),router[a242_0x15200f(0x90)](a242_0x15200f(0x93),auth[a242_0x15200f(0x99)](),controller[a242_0x15200f(0x95)]),router['post']('/',auth['isAuthenticated'](),controller['create']),router['post'](a242_0x15200f(0xa2),auth[a242_0x15200f(0x99)](),controller['addMessage']),router['post']('/:id/tags',auth[a242_0x15200f(0x99)](),interaction[a242_0x15200f(0x8c)](a242_0x15200f(0xa0),a242_0x15200f(0x98)),controller['addTags']),router['put'](a242_0x15200f(0x8d),auth['isAuthenticated'](),interaction[a242_0x15200f(0x8c)](a242_0x15200f(0xa0),'faxinteraction:update'),controller['update']),router['delete'](a242_0x15200f(0x8d),auth['isAuthenticated'](),interaction['tracked'](a242_0x15200f(0xa0),a242_0x15200f(0x9f)),controller[a242_0x15200f(0x9e)]),router[a242_0x15200f(0x92)](a242_0x15200f(0x94),auth[a242_0x15200f(0x99)](),controller[a242_0x15200f(0x8e)]),module[a242_0x15200f(0x9b)]=router; \ No newline at end of file +const a242_0x5c71=['update','/:id/messages','get','addTags','fax','put','show','faxinteraction:destroy','delete','../../components/auth/service','describe','create','/:id/tags','/:id','../../components/interaction/service','addMessage','tracked','/:id/download','post','faxinteraction:update','isAuthenticated','./faxInteraction.controller','Router','faxinteraction:addtags','getMessages'];(function(_0x521441,_0x4b9a19){const _0x5c7120=function(_0x56652f){while(--_0x56652f){_0x521441['push'](_0x521441['shift']());}};_0x5c7120(++_0x4b9a19);}(a242_0x5c71,0x181));const a242_0x5665=function(_0x521441,_0x4b9a19){_0x521441=_0x521441-0x126;let _0x5c7120=a242_0x5c71[_0x521441];return _0x5c7120;};const a242_0x52c0a4=a242_0x5665;'use strict';const express=require('express'),router=express[a242_0x52c0a4(0x132)](),auth=require(a242_0x52c0a4(0x13e)),interaction=require(a242_0x52c0a4(0x12a)),controller=require(a242_0x52c0a4(0x131));router['get']('/',auth[a242_0x52c0a4(0x130)](),controller['index']),router['get']('/describe',auth['isAuthenticated'](),controller[a242_0x52c0a4(0x126)]),router[a242_0x52c0a4(0x137)](a242_0x52c0a4(0x129),auth[a242_0x52c0a4(0x130)](),controller[a242_0x52c0a4(0x13b)]),router[a242_0x52c0a4(0x137)](a242_0x52c0a4(0x136),auth[a242_0x52c0a4(0x130)](),controller[a242_0x52c0a4(0x134)]),router[a242_0x52c0a4(0x137)](a242_0x52c0a4(0x12d),auth[a242_0x52c0a4(0x130)](),controller['download']),router[a242_0x52c0a4(0x12e)]('/',auth[a242_0x52c0a4(0x130)](),controller[a242_0x52c0a4(0x127)]),router[a242_0x52c0a4(0x12e)](a242_0x52c0a4(0x136),auth['isAuthenticated'](),controller[a242_0x52c0a4(0x12b)]),router[a242_0x52c0a4(0x12e)](a242_0x52c0a4(0x128),auth[a242_0x52c0a4(0x130)](),interaction['tracked'](a242_0x52c0a4(0x139),a242_0x52c0a4(0x133)),controller[a242_0x52c0a4(0x138)]),router[a242_0x52c0a4(0x13a)](a242_0x52c0a4(0x129),auth['isAuthenticated'](),interaction[a242_0x52c0a4(0x12c)](a242_0x52c0a4(0x139),a242_0x52c0a4(0x12f)),controller[a242_0x52c0a4(0x135)]),router[a242_0x52c0a4(0x13d)](a242_0x52c0a4(0x129),auth[a242_0x52c0a4(0x130)](),interaction[a242_0x52c0a4(0x12c)](a242_0x52c0a4(0x139),a242_0x52c0a4(0x13c)),controller['destroy']),router[a242_0x52c0a4(0x13d)](a242_0x52c0a4(0x128),auth[a242_0x52c0a4(0x130)](),controller['removeTags']),module['exports']=router; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.attributes.js b/server/api/faxMessage/faxMessage.attributes.js index 724aecc..74c3a94 100644 --- a/server/api/faxMessage/faxMessage.attributes.js +++ b/server/api/faxMessage/faxMessage.attributes.js @@ -1 +1 @@ -const a243_0x258e=['medium','ENUM','out','DATE','sequelize','TEXT','BOOLEAN','attributes','exports'];(function(_0x42de73,_0x5e215c){const _0x258ecd=function(_0x65dd57){while(--_0x65dd57){_0x42de73['push'](_0x42de73['shift']());}};_0x258ecd(++_0x5e215c);}(a243_0x258e,0x89));const a243_0x65dd=function(_0x42de73,_0x5e215c){_0x42de73=_0x42de73-0x79;let _0x258ecd=a243_0x258e[_0x42de73];return _0x258ecd;};const a243_0x48bef0=a243_0x65dd;'use strict';const {DataTypes}=require(a243_0x48bef0(0x7b)),attributes={'body':{'type':DataTypes[a243_0x48bef0(0x7c)]({'length':a243_0x48bef0(0x80)}),'allowNull':![]},'read':{'type':DataTypes[a243_0x48bef0(0x7d)],'defaultValue':![]},'direction':{'type':DataTypes[a243_0x48bef0(0x81)]('in',a243_0x48bef0(0x79)),'defaultValue':'out','allowNull':![]},'failMessage':{'type':DataTypes['TEXT'],'defaultValue':null},'readAt':{'type':DataTypes[a243_0x48bef0(0x7a)]}};module[a243_0x48bef0(0x7f)][a243_0x48bef0(0x7e)]=attributes; \ No newline at end of file +const a243_0x4cac=['ENUM','exports','out','TEXT','DATE','BOOLEAN','medium','attributes','sequelize'];(function(_0xd0795d,_0x4828a1){const _0x4cac8a=function(_0x30e867){while(--_0x30e867){_0xd0795d['push'](_0xd0795d['shift']());}};_0x4cac8a(++_0x4828a1);}(a243_0x4cac,0xdf));const a243_0x30e8=function(_0xd0795d,_0x4828a1){_0xd0795d=_0xd0795d-0x1f1;let _0x4cac8a=a243_0x4cac[_0xd0795d];return _0x4cac8a;};const a243_0x3e98c5=a243_0x30e8;'use strict';const {DataTypes}=require(a243_0x3e98c5(0x1f2)),attributes={'body':{'type':DataTypes['TEXT']({'length':a243_0x3e98c5(0x1f9)}),'allowNull':![]},'read':{'type':DataTypes[a243_0x3e98c5(0x1f8)],'defaultValue':![]},'direction':{'type':DataTypes[a243_0x3e98c5(0x1f3)]('in',a243_0x3e98c5(0x1f5)),'defaultValue':a243_0x3e98c5(0x1f5),'allowNull':![]},'failMessage':{'type':DataTypes[a243_0x3e98c5(0x1f6)],'defaultValue':null},'readAt':{'type':DataTypes[a243_0x3e98c5(0x1f7)]}};module[a243_0x3e98c5(0x1f4)][a243_0x3e98c5(0x1f1)]=attributes; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.controller.js b/server/api/faxMessage/faxMessage.controller.js index 45a1b6b..55c8ea6 100644 --- a/server/api/faxMessage/faxMessage.controller.js +++ b/server/api/faxMessage/faxMessage.controller.js @@ -1 +1 @@ -const a244_0x5186=['findAll','manual','AttachmentId','include','then','VIRTUAL','request\x20sent','acceptMessage','offset','status','client','undefined','agent','event','model','channel','catch','AcceptMessage','fieldName','stack','message','util','../../rediscache','Content-Range','server','reject','path','includeAll','attributes','sort','rawAttributes','intersection','limit','rows','[FAXMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','moment','fax','user','findOne','pick','FaxMessage','end','http','type','rejectMessage','filters','root','name','count','create','interface','jayson/promise','FaxMessage,\x20%s,\x20%s','download','null','CmContact','isNil','error','set','../../config/logger','format','readAt','update','like','role','read','YYYY-MM-DD\x20HH:mm:ss','params','UserId','interaction','sequelize','../../config/environment','show','length','read1stAt','lodash','get','index','SendFax','where','Attachment','accept','EventManager','./faxMessage.socket','basename','debug','info','FaxAccountId','stringify','json','fields','query','describe','body','options','[FAXMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','acceptmessage','FaxMessage,\x20%s,\x20%s,\x20%s','nolimit','destroy','FaxInteractionId','keys','join','rejectmessage','merge','send','SIP/%s','filter','../../components/parsers/qs'];(function(_0x14d025,_0x41dae9){const _0x51863a=function(_0x2c3aeb){while(--_0x2c3aeb){_0x14d025['push'](_0x14d025['shift']());}};_0x51863a(++_0x41dae9);}(a244_0x5186,0x17d));const a244_0x2c3a=function(_0x14d025,_0x41dae9){_0x14d025=_0x14d025-0x6f;let _0x51863a=a244_0x5186[_0x14d025];return _0x51863a;};const a244_0x4868be=a244_0x2c3a;'use strict';const moment=require(a244_0x4868be(0xc9)),util=require(a244_0x4868be(0xbb)),path=require(a244_0x4868be(0xc0)),_=require(a244_0x4868be(0x84)),{getSocket}=require(a244_0x4868be(0xbc)),socket=getSocket(),qs=require(a244_0x4868be(0xa5)),logger=require(a244_0x4868be(0x74))('api'),config=require(a244_0x4868be(0x80)),interaction_log=require(a244_0x4868be(0x74))('fax-interactions'),{db}=require('../../mysqldb'),{Op}=require(a244_0x4868be(0x7f));require(a244_0x4868be(0x8c))['register'](socket);const jayson=require(a244_0x4868be(0xd9)),client=jayson[a244_0x4868be(0xb0)]['http']({'port':0x232c}),client9002=jayson['client'][a244_0x4868be(0xd0)]({'port':0x232a});function respondWithRpcPromise(_0x3c7fb9,_0x286af5,_0x381693,_0x36611c){return new Promise(function(_0x101190,_0x132d55){const _0x477d05=a244_0x2c3a,_0x5dd2a5=_0x36611c||client;return _0x5dd2a5['request'](_0x3c7fb9,_0x381693)[_0x477d05(0xaa)](function(_0x7c7aa2){const _0x326694=_0x477d05;logger[_0x326694(0x8f)](_0x326694(0xda),_0x286af5,_0x326694(0xac)),logger[_0x326694(0x8e)](_0x326694(0x9a),_0x286af5,_0x326694(0xac),JSON[_0x326694(0x91)](_0x7c7aa2));if(_0x7c7aa2['error']){if(_0x7c7aa2['error']['code']===0x1f4)return logger[_0x326694(0x72)]('FaxMessage,\x20%s,\x20%s',_0x286af5,_0x7c7aa2['error']['message']),_0x132d55(_0x7c7aa2[_0x326694(0x72)]['message']);return logger['error'](_0x326694(0xda),_0x286af5,_0x7c7aa2[_0x326694(0x72)]['message']),_0x101190(_0x7c7aa2[_0x326694(0x72)]['message']);}else logger[_0x326694(0x8f)]('FaxMessage,\x20%s,\x20%s',_0x286af5,_0x326694(0xac)),_0x101190(_0x7c7aa2['result'][_0x326694(0xba)]);})[_0x477d05(0xb6)](function(_0x318d26){const _0x9c2fd1=_0x477d05;logger[_0x9c2fd1(0x72)](_0x9c2fd1(0xda),_0x286af5,_0x318d26),_0x132d55(_0x318d26);});});}function respondWithResult(_0x348f15,_0x440d98){return _0x440d98=_0x440d98||0xc8,function(_0xcb2629){const _0x5433a8=a244_0x2c3a;if(_0xcb2629)return _0x348f15[_0x5433a8(0xaf)](_0x440d98)[_0x5433a8(0x92)](_0xcb2629);};}function respondWithFilteredResult(_0x52a5b8,_0x236185){return function(_0x4fd7a9){const _0x39f232=a244_0x2c3a;if(_0x4fd7a9){const _0x1268ec=_0x4fd7a9[_0x39f232(0xd6)],_0x55baa0=_0x236185[_0x39f232(0xae)];let _0x115a7f=_0x236185[_0x39f232(0xae)]+_0x236185[_0x39f232(0xc6)],_0x4a96a1;return _0x115a7f>=_0x1268ec?(_0x115a7f=_0x1268ec,_0x4a96a1=0xc8):_0x4a96a1=0xce,_0x52a5b8[_0x39f232(0xaf)](_0x4a96a1),_0x52a5b8[_0x39f232(0x73)](_0x39f232(0xbd),_0x55baa0+'-'+_0x115a7f+'/'+_0x1268ec)[_0x39f232(0x92)](_0x4fd7a9);}return null;};}function saveUpdates(_0xe3aac1){return function(_0x1711bb){const _0x49f047=a244_0x2c3a;if(_0x1711bb)return _0x1711bb[_0x49f047(0x77)](_0xe3aac1)[_0x49f047(0xaa)](function(_0x26abfb){return _0x26abfb;});return null;};}function removeEntity(_0x148b2a){return function(_0x2a80c9){const _0x53c29f=a244_0x2c3a;if(_0x2a80c9)return _0x2a80c9[_0x53c29f(0x9c)]()[_0x53c29f(0xaa)](function(){const _0x1e120d=_0x53c29f;_0x148b2a[_0x1e120d(0xaf)](0xcc)[_0x1e120d(0xcf)]();});};}function handleEntityNotFound(_0x1c10bc){return function(_0x43bee5){return!_0x43bee5&&_0x1c10bc['sendStatus'](0x194),_0x43bee5;};}function handleError(_0x20f701,_0x70d68c){return _0x70d68c=_0x70d68c||0x1f4,function(_0x30b151){const _0x9b5cd5=a244_0x2c3a;logger[_0x9b5cd5(0x72)](_0x30b151[_0x9b5cd5(0xb9)]),_0x30b151[_0x9b5cd5(0xd5)]&&delete _0x30b151['name'],_0x20f701[_0x9b5cd5(0xaf)](_0x70d68c)[_0x9b5cd5(0xa2)](_0x30b151);};}exports[a244_0x4868be(0x86)]=function(_0x302074,_0x550ee8){const _0x553e78=a244_0x4868be;let _0xbe33d3={};const _0xf1de5c={},_0x1ab490={'count':0x0,'rows':[]},_0x1fe525=_['map'](db['FaxMessage'][_0x553e78(0xc4)],function(_0xee8d19){const _0x288b4b=_0x553e78;return{'name':_0xee8d19[_0x288b4b(0xb8)],'type':_0xee8d19[_0x288b4b(0xd1)]['key']};});_0xf1de5c[_0x553e78(0xb4)]=_['map'](_0x1fe525,_0x553e78(0xd5)),_0xf1de5c['query']=_[_0x553e78(0x9e)](_0x302074[_0x553e78(0x94)]),_0xf1de5c[_0x553e78(0xd3)]=_[_0x553e78(0xc5)](_0xf1de5c[_0x553e78(0xb4)],_0xf1de5c[_0x553e78(0x94)]),_0xbe33d3['attributes']=_[_0x553e78(0xc5)](_0xf1de5c[_0x553e78(0xb4)],qs['fields'](_0x302074[_0x553e78(0x94)][_0x553e78(0x93)])),_0xbe33d3[_0x553e78(0xc2)]=_0xbe33d3[_0x553e78(0xc2)][_0x553e78(0x82)]?_0xbe33d3[_0x553e78(0xc2)]:_0xf1de5c[_0x553e78(0xb4)];typeof _0x302074[_0x553e78(0x94)][_0x553e78(0x9b)]===_0x553e78(0xb1)&&(_0xbe33d3[_0x553e78(0xc6)]=qs[_0x553e78(0xc6)](_0x302074['query'][_0x553e78(0xc6)]),_0xbe33d3[_0x553e78(0xae)]=qs[_0x553e78(0xae)](_0x302074[_0x553e78(0x94)][_0x553e78(0xae)]));_0xbe33d3['order']=qs['sort'](_0x302074[_0x553e78(0x94)][_0x553e78(0xc3)]),_0xbe33d3[_0x553e78(0x88)]=qs[_0x553e78(0xd3)](_[_0x553e78(0xcd)](_0x302074[_0x553e78(0x94)],_0xf1de5c['filters']),_0x1fe525);_0x302074['query'][_0x553e78(0xa4)]&&(_0xbe33d3[_0x553e78(0x88)]=_[_0x553e78(0xa1)](_0xbe33d3[_0x553e78(0x88)],{[Op['or']]:_['map'](_0x1fe525,function(_0x49353d){const _0x592ee4=_0x553e78;if(_0x49353d[_0x592ee4(0xd1)]!==_0x592ee4(0xab)){const _0xe6950f={};return _0xe6950f[_0x49353d[_0x592ee4(0xd5)]]={[Op[_0x592ee4(0x78)]]:'%'+_0x302074[_0x592ee4(0x94)][_0x592ee4(0xa4)]+'%'},_0xe6950f;}})}));_0xbe33d3=_['merge']({},_0xbe33d3,_0x302074[_0x553e78(0x97)]);const _0x28b437={'where':_0xbe33d3[_0x553e78(0x88)]};return db[_0x553e78(0xce)][_0x553e78(0xd6)](_0x28b437)['then'](function(_0x5f087c){const _0xbbe645=_0x553e78;return _0x1ab490['count']=_0x5f087c,_0x302074[_0xbbe645(0x94)]['includeAll']&&(_0xbe33d3[_0xbbe645(0xa9)]=[{'all':!![]}]),db['FaxMessage'][_0xbbe645(0xa6)](_0xbe33d3);})[_0x553e78(0xaa)](function(_0x22260d){const _0x4448b2=_0x553e78;return _0x1ab490[_0x4448b2(0xc7)]=_0x22260d,_0x1ab490;})['then'](respondWithFilteredResult(_0x550ee8,_0xbe33d3))[_0x553e78(0xb6)](handleError(_0x550ee8,null));},exports[a244_0x4868be(0x81)]=function(_0x23ee2e,_0x4a2853){const _0x11b157=a244_0x4868be;let _0x435b09={'raw':!![],'where':{'id':_0x23ee2e[_0x11b157(0x7c)]['id']}};const _0x9ab7b0={};return _0x9ab7b0[_0x11b157(0xb4)]=_[_0x11b157(0x9e)](db['FaxMessage']['rawAttributes']),_0x9ab7b0[_0x11b157(0x94)]=_[_0x11b157(0x9e)](_0x23ee2e[_0x11b157(0x94)]),_0x9ab7b0[_0x11b157(0xd3)]=_[_0x11b157(0xc5)](_0x9ab7b0['model'],_0x9ab7b0[_0x11b157(0x94)]),_0x435b09[_0x11b157(0xc2)]=_['intersection'](_0x9ab7b0[_0x11b157(0xb4)],qs['fields'](_0x23ee2e[_0x11b157(0x94)][_0x11b157(0x93)])),_0x435b09[_0x11b157(0xc2)]=_0x435b09[_0x11b157(0xc2)][_0x11b157(0x82)]?_0x435b09[_0x11b157(0xc2)]:_0x9ab7b0['model'],_0x23ee2e[_0x11b157(0x94)][_0x11b157(0xc1)]&&(_0x435b09[_0x11b157(0xa9)]=[{'all':!![]}]),_0x435b09=_[_0x11b157(0xa1)]({},_0x435b09,_0x23ee2e[_0x11b157(0x97)]),db['FaxMessage']['findOne'](_0x435b09)[_0x11b157(0xaa)](handleEntityNotFound(_0x4a2853,null))['then'](respondWithResult(_0x4a2853,null))[_0x11b157(0xb6)](handleError(_0x4a2853,null));},exports['update']=function(_0x3d4994,_0x77c7e3){const _0x4cdf1b=a244_0x4868be;return _0x3d4994[_0x4cdf1b(0x96)]['id']&&delete _0x3d4994[_0x4cdf1b(0x96)]['id'],db[_0x4cdf1b(0xce)][_0x4cdf1b(0xcc)]({'where':{'id':_0x3d4994['params']['id']}})[_0x4cdf1b(0xaa)](handleEntityNotFound(_0x77c7e3,null))[_0x4cdf1b(0xaa)](saveUpdates(_0x3d4994['body'],null))[_0x4cdf1b(0xaa)](respondWithResult(_0x77c7e3,null))[_0x4cdf1b(0xb6)](handleError(_0x77c7e3,null));},exports[a244_0x4868be(0x9c)]=function(_0x5c7b77,_0x121ef8){const _0x2f198d=a244_0x4868be;return db[_0x2f198d(0xce)][_0x2f198d(0xcc)]({'where':{'id':_0x5c7b77[_0x2f198d(0x7c)]['id']}})['then'](handleEntityNotFound(_0x121ef8,null))[_0x2f198d(0xaa)](removeEntity(_0x121ef8,null))[_0x2f198d(0xb6)](handleError(_0x121ef8,null));},exports['describe']=function(_0x531b74,_0x111d99){const _0x17af22=a244_0x4868be;return db[_0x17af22(0xce)][_0x17af22(0x95)]()[_0x17af22(0xaa)](respondWithResult(_0x111d99,null))['catch'](handleError(_0x111d99,null));},exports[a244_0x4868be(0x8a)]=function(_0x4a1ae3,_0xc47c0c){const _0x36f5f0=a244_0x4868be,_0x3bbdf0={'channel':_0x36f5f0(0xca)};return _0x4a1ae3['body']['id']&&delete _0x4a1ae3[_0x36f5f0(0x96)]['id'],_0x4a1ae3[_0x36f5f0(0x96)][_0x36f5f0(0x7a)]=!![],_0x4a1ae3[_0x36f5f0(0x96)][_0x36f5f0(0x76)]=moment()['format'](_0x36f5f0(0x7b)),_0x4a1ae3[_0x36f5f0(0x96)][_0x36f5f0(0x7d)]=_0x4a1ae3['body'][_0x36f5f0(0x7d)]||_0x4a1ae3['user']['id'],db[_0x36f5f0(0xce)]['findOne']({'where':{'id':_0x4a1ae3[_0x36f5f0(0x7c)]['id'],'UserId':null},'include':[{'model':db['CmContact'],'as':'Contact'}]})[_0x36f5f0(0xaa)](handleEntityNotFound(_0xc47c0c,null))[_0x36f5f0(0xaa)](saveUpdates(_0x4a1ae3[_0x36f5f0(0x96)],null))[_0x36f5f0(0xaa)](function(_0x564c1a){const _0x3d1b12=_0x36f5f0;if(_0x564c1a)return _0x3bbdf0[_0x3d1b12(0xba)]=_0x564c1a[_0x3d1b12(0x85)]({'plain':!![]}),db['FaxInteraction']['findOne']({'where':{'id':_0x564c1a['FaxInteractionId']}});return null;})['then'](handleEntityNotFound(_0xc47c0c,null))['then'](function(_0x4a8236){const _0x4f7553=_0x36f5f0;if(_0x4a8236)return _0x4a8236['update']({'UserId':_0x4a1ae3['body']['UserId'],'read1stAt':_[_0x4f7553(0x71)](_0x4a8236[_0x4f7553(0x83)])?moment()[_0x4f7553(0x75)](_0x4f7553(0x7b)):undefined});return null;})['then'](function(_0x13520e){const _0x468292=_0x36f5f0;if(_0x13520e)return _0x3bbdf0[_0x468292(0x7e)]=_0x13520e['get']({'plain':!![]}),interaction_log[_0x468292(0x8f)](_0x468292(0x98),_0x4a1ae3[_0x468292(0xcb)]['id'],_0x4a1ae3[_0x468292(0xcb)]['name'],_0x4a1ae3[_0x468292(0xcb)][_0x468292(0x79)],_0x3bbdf0[_0x468292(0x7e)]['id'],_0x4a1ae3['body']?JSON[_0x468292(0x91)](_0x4a1ae3[_0x468292(0x96)]):_0x468292(0x6f)),respondWithRpcPromise(_0x468292(0xb7),_0x468292(0xad),_0x3bbdf0);return null;})[_0x36f5f0(0xaa)](function(_0x279cf1){const _0x2db757=_0x36f5f0;if(_0x279cf1){if(_0x4a1ae3[_0x2db757(0x96)][_0x2db757(0xa7)])return _0x3bbdf0[_0x2db757(0xba)][_0x2db757(0xd8)]=util[_0x2db757(0x75)](_0x2db757(0xa3),_0x4a1ae3[_0x2db757(0xcb)]['name']),_0x3bbdf0[_0x2db757(0xba)][_0x2db757(0xb5)]=_0x3bbdf0[_0x2db757(0xb5)],_0x3bbdf0['message'][_0x2db757(0xb3)]=_0x2db757(0x8a),respondWithRpcPromise(_0x2db757(0x8b),_0x2db757(0x8b),{'event':_0x2db757(0x99),'message':_0x3bbdf0[_0x2db757(0xba)]},client9002)[_0x2db757(0xaa)](function(){return _0x3bbdf0;});return _0x3bbdf0;}return null;})[_0x36f5f0(0xaa)](respondWithResult(_0xc47c0c,null))[_0x36f5f0(0xb6)](handleError(_0xc47c0c,null));},exports[a244_0x4868be(0xbf)]=function(_0x3dd2e7,_0x1e27a5){const _0x270bc8=a244_0x4868be,_0x33d206={'agent':{},'channel':_0x270bc8(0xca)};return _0x3dd2e7[_0x270bc8(0x96)]['id']&&delete _0x3dd2e7['body']['id'],_0x3dd2e7[_0x270bc8(0x96)][_0x270bc8(0x7d)]=_0x3dd2e7[_0x270bc8(0x96)][_0x270bc8(0x7d)]||_0x3dd2e7[_0x270bc8(0xcb)]['id'],_0x33d206[_0x270bc8(0xb2)]['id']=_0x3dd2e7['body'][_0x270bc8(0x7d)],db[_0x270bc8(0xce)][_0x270bc8(0xcc)]({'where':{'id':_0x3dd2e7[_0x270bc8(0x7c)]['id'],'UserId':null}})['then'](handleEntityNotFound(_0x1e27a5,null))[_0x270bc8(0xaa)](function(_0x4ff900){const _0x403915=_0x270bc8;if(_0x4ff900)return _0x33d206[_0x403915(0xba)]=_0x4ff900[_0x403915(0x85)]({'plain':!![]}),db['FaxInteraction'][_0x403915(0xcc)]({'where':{'id':_0x4ff900[_0x403915(0x9d)]}});return null;})[_0x270bc8(0xaa)](handleEntityNotFound(_0x1e27a5,null))[_0x270bc8(0xaa)](function(_0x4bcdba){const _0x56f4ba=_0x270bc8;if(_0x4bcdba)return _0x33d206['interaction']=_0x4bcdba[_0x56f4ba(0x85)]({'plain':!![]}),interaction_log[_0x56f4ba(0x8f)](_0x56f4ba(0xc8),_0x3dd2e7[_0x56f4ba(0xcb)]['id'],_0x3dd2e7[_0x56f4ba(0xcb)][_0x56f4ba(0xd5)],_0x3dd2e7[_0x56f4ba(0xcb)][_0x56f4ba(0x79)],_0x33d206[_0x56f4ba(0x7e)]['id'],_0x3dd2e7[_0x56f4ba(0x96)]?JSON[_0x56f4ba(0x91)](_0x3dd2e7[_0x56f4ba(0x96)]):_0x56f4ba(0x6f)),respondWithRpcPromise('RejectMessage',_0x56f4ba(0xd2),_0x33d206);return null;})[_0x270bc8(0xaa)](function(_0x41f2f3){const _0xe8195=_0x270bc8;if(_0x41f2f3)return _0x41f2f3['message'][_0xe8195(0xd8)]=util[_0xe8195(0x75)](_0xe8195(0xa3),_0x3dd2e7[_0xe8195(0xcb)]['name']),_0x41f2f3[_0xe8195(0xba)][_0xe8195(0xb5)]=_0x33d206[_0xe8195(0xb5)],_0x41f2f3[_0xe8195(0xba)][_0xe8195(0xb3)]='reject',respondWithRpcPromise(_0xe8195(0x8b),_0xe8195(0x8b),{'event':_0xe8195(0xa0),'message':_0x41f2f3['message']},client9002),_0x33d206;return null;})[_0x270bc8(0xaa)](respondWithResult(_0x1e27a5,null))[_0x270bc8(0xb6)](handleError(_0x1e27a5,null));},exports[a244_0x4868be(0xd7)]=function(_0x201f34,_0x4df25){const _0x53edf1=a244_0x4868be;let _0x6b0d95;return db['FaxMessage'][_0x53edf1(0xd7)](_0x201f34[_0x53edf1(0x96)],{})[_0x53edf1(0xaa)](function(_0x290ac0){const _0x41ff2e=_0x53edf1;return _0x6b0d95=_0x290ac0,db[_0x41ff2e(0x70)][_0x41ff2e(0xcc)]({'where':{'id':_0x6b0d95['ContactId']}});})[_0x53edf1(0xaa)](function(_0x1355a1){const _0x1e19e7=_0x53edf1;if(_[_0x1e19e7(0x71)](_0x1355a1))return;else return _0x6b0d95[_0x1e19e7(0xca)]=_0x1355a1[_0x1e19e7(0xca)],db[_0x1e19e7(0x89)][_0x1e19e7(0xcc)]({'where':{'id':_0x6b0d95[_0x1e19e7(0xa8)]}});})[_0x53edf1(0xaa)](function(_0x5da571){const _0x2137e7=_0x53edf1;return respondWithRpcPromise(_0x2137e7(0x87),_0x2137e7(0x87),{'FaxAccountId':_['isNil'](_0x201f34[_0x2137e7(0x96)])?undefined:_0x201f34[_0x2137e7(0x96)][_0x2137e7(0x90)],'path':_['isNil'](_0x5da571)?undefined:util[_0x2137e7(0x75)]('/var/opt/motion2/server/files/attachments/%s',_0x5da571[_0x2137e7(0x8d)]),'fax':_['isNil'](_0x6b0d95[_0x2137e7(0xca)])?undefined:_0x6b0d95['fax'],'AttachmentId':_0x6b0d95[_0x2137e7(0xa8)]},client9002);})[_0x53edf1(0xaa)](respondWithResult(_0x4df25,0xc9))[_0x53edf1(0xb6)](handleError(_0x4df25,null));},exports[a244_0x4868be(0xdb)]=function(_0x283377,_0x5b958f){const _0x1c5d55=a244_0x4868be,_0x2836e2=path[_0x1c5d55(0x9f)](config[_0x1c5d55(0xd4)],_0x1c5d55(0xbe),'files','attachments');return db[_0x1c5d55(0xce)][_0x1c5d55(0xcc)]({'where':{'id':_0x283377[_0x1c5d55(0x7c)]['id']},'include':[{'model':db[_0x1c5d55(0x89)],'as':_0x1c5d55(0x89)}]})[_0x1c5d55(0xaa)](handleEntityNotFound(_0x5b958f,null))['then'](function(_0x2bd17b){const _0x51ee7a=_0x1c5d55;if(_0x2bd17b)return _0x5b958f[_0x51ee7a(0xdb)](path[_0x51ee7a(0x9f)](_0x2836e2,_0x2bd17b['Attachment'][_0x51ee7a(0x8d)]));})[_0x1c5d55(0xb6)](handleError(_0x5b958f,null));}; \ No newline at end of file +const a244_0x38c4=['limit','read','FaxMessage','../../config/environment','client','body','http','set','json','join','request\x20sent','include','CmContact','YYYY-MM-DD\x20HH:mm:ss','rawAttributes','offset','attributes','agent','channel','filter','show','/var/opt/motion2/server/files/attachments/%s','pick','fields','AcceptMessage','role','reject','fax-interactions','interaction','intersection','../../rediscache','like','SendFax','moment','format','../../config/logger','info','RejectMessage','root','findAll','model','stack','catch','merge','attachments','sendStatus','interface','jayson/promise','name','acceptmessage','message','stringify','basename','path','get','Contact','register','then','count','filters','rejectmessage','rejectMessage','destroy','accept','FaxAccountId','isNil','EventManager','options','query','length','sequelize','type','fieldName','download','Content-Range','UserId','nolimit','findOne','params','user','../../components/parsers/qs','FaxInteractionId','describe','null','VIRTUAL','request','AttachmentId','includeAll','Attachment','event','acceptMessage','create','[FAXMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','map','error','sort','[FAXMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','server','fax','rows','util','FaxMessage,\x20%s,\x20%s','key','./faxMessage.socket','where','keys','code','status'];(function(_0xfd8a57,_0xda9e74){const _0x38c4fe=function(_0x415dfa){while(--_0x415dfa){_0xfd8a57['push'](_0xfd8a57['shift']());}};_0x38c4fe(++_0xda9e74);}(a244_0x38c4,0x13a));const a244_0x415d=function(_0xfd8a57,_0xda9e74){_0xfd8a57=_0xfd8a57-0xa7;let _0x38c4fe=a244_0x38c4[_0xfd8a57];return _0x38c4fe;};const a244_0x4cf31d=a244_0x415d;'use strict';const moment=require(a244_0x4cf31d(0xd2)),util=require(a244_0x4cf31d(0xa9)),path=require(a244_0x4cf31d(0xe6)),_=require('lodash'),{getSocket}=require(a244_0x4cf31d(0xcf)),socket=getSocket(),qs=require(a244_0x4cf31d(0x101)),logger=require(a244_0x4cf31d(0xd4))('api'),config=require(a244_0x4cf31d(0xb4)),interaction_log=require('../../config/logger')(a244_0x4cf31d(0xcc)),{db}=require('../../mysqldb'),{Op}=require(a244_0x4cf31d(0xf7));require(a244_0x4cf31d(0xac))[a244_0x4cf31d(0xe9)](socket);const jayson=require(a244_0x4cf31d(0xe0)),client=jayson[a244_0x4cf31d(0xb5)][a244_0x4cf31d(0xb7)]({'port':0x232c}),client9002=jayson[a244_0x4cf31d(0xb5)][a244_0x4cf31d(0xb7)]({'port':0x232a});function respondWithRpcPromise(_0x2e5ae9,_0x404d53,_0x1c9250,_0x5e4ce4){return new Promise(function(_0x337b09,_0x26d0e9){const _0x343ba1=a244_0x415d,_0x1306b0=_0x5e4ce4||client;return _0x1306b0[_0x343ba1(0x106)](_0x2e5ae9,_0x1c9250)[_0x343ba1(0xea)](function(_0x134bc1){const _0x2ff525=_0x343ba1;logger['info'](_0x2ff525(0xaa),_0x404d53,'request\x20sent'),logger['debug']('FaxMessage,\x20%s,\x20%s,\x20%s',_0x404d53,_0x2ff525(0xbb),JSON[_0x2ff525(0xe4)](_0x134bc1));if(_0x134bc1[_0x2ff525(0x10f)]){if(_0x134bc1['error'][_0x2ff525(0xaf)]===0x1f4)return logger['error'](_0x2ff525(0xaa),_0x404d53,_0x134bc1[_0x2ff525(0x10f)][_0x2ff525(0xe3)]),_0x26d0e9(_0x134bc1[_0x2ff525(0x10f)][_0x2ff525(0xe3)]);return logger[_0x2ff525(0x10f)](_0x2ff525(0xaa),_0x404d53,_0x134bc1[_0x2ff525(0x10f)][_0x2ff525(0xe3)]),_0x337b09(_0x134bc1[_0x2ff525(0x10f)]['message']);}else logger[_0x2ff525(0xd5)](_0x2ff525(0xaa),_0x404d53,_0x2ff525(0xbb)),_0x337b09(_0x134bc1['result'][_0x2ff525(0xe3)]);})[_0x343ba1(0xdb)](function(_0x4f227f){const _0x26a6ad=_0x343ba1;logger[_0x26a6ad(0x10f)](_0x26a6ad(0xaa),_0x404d53,_0x4f227f),_0x26d0e9(_0x4f227f);});});}function respondWithResult(_0xceb867,_0x423222){return _0x423222=_0x423222||0xc8,function(_0x585b05){const _0x9e80b4=a244_0x415d;if(_0x585b05)return _0xceb867['status'](_0x423222)[_0x9e80b4(0xb9)](_0x585b05);};}function respondWithFilteredResult(_0x4de2b9,_0x4c087d){return function(_0x2cfbe2){const _0x44d31f=a244_0x415d;if(_0x2cfbe2){const _0x288725=_0x2cfbe2[_0x44d31f(0xeb)],_0x4b39fe=_0x4c087d[_0x44d31f(0xc0)];let _0x2b9dce=_0x4c087d[_0x44d31f(0xc0)]+_0x4c087d[_0x44d31f(0xb1)],_0x382b25;return _0x2b9dce>=_0x288725?(_0x2b9dce=_0x288725,_0x382b25=0xc8):_0x382b25=0xce,_0x4de2b9[_0x44d31f(0xb0)](_0x382b25),_0x4de2b9[_0x44d31f(0xb8)](_0x44d31f(0xfb),_0x4b39fe+'-'+_0x2b9dce+'/'+_0x288725)[_0x44d31f(0xb9)](_0x2cfbe2);}return null;};}function saveUpdates(_0x14ee0e){return function(_0x167c86){if(_0x167c86)return _0x167c86['update'](_0x14ee0e)['then'](function(_0x1e41ce){return _0x1e41ce;});return null;};}function removeEntity(_0x6f3162){return function(_0x31b07b){const _0x2ab29e=a244_0x415d;if(_0x31b07b)return _0x31b07b['destroy']()[_0x2ab29e(0xea)](function(){const _0x4ec82d=_0x2ab29e;_0x6f3162[_0x4ec82d(0xb0)](0xcc)['end']();});};}function handleEntityNotFound(_0x42a884){return function(_0x26ae8f){const _0x4a36cc=a244_0x415d;return!_0x26ae8f&&_0x42a884[_0x4a36cc(0xde)](0x194),_0x26ae8f;};}function handleError(_0x2c1750,_0x263e55){return _0x263e55=_0x263e55||0x1f4,function(_0x571eec){const _0x169dc4=a244_0x415d;logger[_0x169dc4(0x10f)](_0x571eec[_0x169dc4(0xda)]),_0x571eec['name']&&delete _0x571eec[_0x169dc4(0xe1)],_0x2c1750['status'](_0x263e55)['send'](_0x571eec);};}exports['index']=function(_0x15eabb,_0x49bef5){const _0x873ae7=a244_0x4cf31d;let _0x11a026={};const _0x427eef={},_0x2f2f31={'count':0x0,'rows':[]},_0x1015c=_[_0x873ae7(0x10e)](db['FaxMessage'][_0x873ae7(0xbf)],function(_0x162a03){const _0x528adc=_0x873ae7;return{'name':_0x162a03[_0x528adc(0xf9)],'type':_0x162a03['type'][_0x528adc(0xab)]};});_0x427eef[_0x873ae7(0xd9)]=_[_0x873ae7(0x10e)](_0x1015c,'name'),_0x427eef[_0x873ae7(0xf5)]=_['keys'](_0x15eabb[_0x873ae7(0xf5)]),_0x427eef[_0x873ae7(0xec)]=_[_0x873ae7(0xce)](_0x427eef[_0x873ae7(0xd9)],_0x427eef[_0x873ae7(0xf5)]),_0x11a026[_0x873ae7(0xc1)]=_[_0x873ae7(0xce)](_0x427eef[_0x873ae7(0xd9)],qs[_0x873ae7(0xc8)](_0x15eabb[_0x873ae7(0xf5)][_0x873ae7(0xc8)])),_0x11a026['attributes']=_0x11a026[_0x873ae7(0xc1)][_0x873ae7(0xf6)]?_0x11a026[_0x873ae7(0xc1)]:_0x427eef['model'];typeof _0x15eabb[_0x873ae7(0xf5)][_0x873ae7(0xfd)]==='undefined'&&(_0x11a026['limit']=qs['limit'](_0x15eabb[_0x873ae7(0xf5)][_0x873ae7(0xb1)]),_0x11a026['offset']=qs[_0x873ae7(0xc0)](_0x15eabb[_0x873ae7(0xf5)]['offset']));_0x11a026['order']=qs[_0x873ae7(0x110)](_0x15eabb[_0x873ae7(0xf5)][_0x873ae7(0x110)]),_0x11a026[_0x873ae7(0xad)]=qs[_0x873ae7(0xec)](_[_0x873ae7(0xc7)](_0x15eabb[_0x873ae7(0xf5)],_0x427eef['filters']),_0x1015c);_0x15eabb[_0x873ae7(0xf5)][_0x873ae7(0xc4)]&&(_0x11a026[_0x873ae7(0xad)]=_['merge'](_0x11a026[_0x873ae7(0xad)],{[Op['or']]:_[_0x873ae7(0x10e)](_0x1015c,function(_0x5b2085){const _0x462e84=_0x873ae7;if(_0x5b2085[_0x462e84(0xf8)]!==_0x462e84(0x105)){const _0x2e7b21={};return _0x2e7b21[_0x5b2085[_0x462e84(0xe1)]]={[Op[_0x462e84(0xd0)]]:'%'+_0x15eabb[_0x462e84(0xf5)][_0x462e84(0xc4)]+'%'},_0x2e7b21;}})}));_0x11a026=_[_0x873ae7(0xdc)]({},_0x11a026,_0x15eabb[_0x873ae7(0xf4)]);const _0x109a3a={'where':_0x11a026[_0x873ae7(0xad)]};return db[_0x873ae7(0xb3)][_0x873ae7(0xeb)](_0x109a3a)['then'](function(_0x527db0){const _0x622b38=_0x873ae7;return _0x2f2f31[_0x622b38(0xeb)]=_0x527db0,_0x15eabb[_0x622b38(0xf5)][_0x622b38(0x108)]&&(_0x11a026['include']=[{'all':!![]}]),db[_0x622b38(0xb3)][_0x622b38(0xd8)](_0x11a026);})['then'](function(_0x3f67f9){const _0x2593b4=_0x873ae7;return _0x2f2f31[_0x2593b4(0xa8)]=_0x3f67f9,_0x2f2f31;})[_0x873ae7(0xea)](respondWithFilteredResult(_0x49bef5,_0x11a026))[_0x873ae7(0xdb)](handleError(_0x49bef5,null));},exports[a244_0x4cf31d(0xc5)]=function(_0x46c6df,_0x414c8e){const _0x1743e9=a244_0x4cf31d;let _0x51f0c5={'raw':!![],'where':{'id':_0x46c6df[_0x1743e9(0xff)]['id']}};const _0x490cac={};return _0x490cac[_0x1743e9(0xd9)]=_[_0x1743e9(0xae)](db[_0x1743e9(0xb3)]['rawAttributes']),_0x490cac['query']=_[_0x1743e9(0xae)](_0x46c6df[_0x1743e9(0xf5)]),_0x490cac[_0x1743e9(0xec)]=_[_0x1743e9(0xce)](_0x490cac[_0x1743e9(0xd9)],_0x490cac[_0x1743e9(0xf5)]),_0x51f0c5['attributes']=_[_0x1743e9(0xce)](_0x490cac[_0x1743e9(0xd9)],qs['fields'](_0x46c6df[_0x1743e9(0xf5)]['fields'])),_0x51f0c5[_0x1743e9(0xc1)]=_0x51f0c5[_0x1743e9(0xc1)][_0x1743e9(0xf6)]?_0x51f0c5[_0x1743e9(0xc1)]:_0x490cac[_0x1743e9(0xd9)],_0x46c6df[_0x1743e9(0xf5)][_0x1743e9(0x108)]&&(_0x51f0c5[_0x1743e9(0xbc)]=[{'all':!![]}]),_0x51f0c5=_['merge']({},_0x51f0c5,_0x46c6df[_0x1743e9(0xf4)]),db[_0x1743e9(0xb3)]['findOne'](_0x51f0c5)[_0x1743e9(0xea)](handleEntityNotFound(_0x414c8e,null))[_0x1743e9(0xea)](respondWithResult(_0x414c8e,null))['catch'](handleError(_0x414c8e,null));},exports['update']=function(_0x14df4f,_0x1cb0ba){const _0xad7877=a244_0x4cf31d;return _0x14df4f[_0xad7877(0xb6)]['id']&&delete _0x14df4f['body']['id'],db[_0xad7877(0xb3)][_0xad7877(0xfe)]({'where':{'id':_0x14df4f['params']['id']}})[_0xad7877(0xea)](handleEntityNotFound(_0x1cb0ba,null))[_0xad7877(0xea)](saveUpdates(_0x14df4f[_0xad7877(0xb6)],null))[_0xad7877(0xea)](respondWithResult(_0x1cb0ba,null))[_0xad7877(0xdb)](handleError(_0x1cb0ba,null));},exports[a244_0x4cf31d(0xef)]=function(_0x414ad2,_0x4323d8){const _0x831e95=a244_0x4cf31d;return db[_0x831e95(0xb3)][_0x831e95(0xfe)]({'where':{'id':_0x414ad2['params']['id']}})[_0x831e95(0xea)](handleEntityNotFound(_0x4323d8,null))[_0x831e95(0xea)](removeEntity(_0x4323d8,null))[_0x831e95(0xdb)](handleError(_0x4323d8,null));},exports[a244_0x4cf31d(0x103)]=function(_0x40ed2d,_0x45bf10){const _0x4e89b9=a244_0x4cf31d;return db[_0x4e89b9(0xb3)][_0x4e89b9(0x103)]()[_0x4e89b9(0xea)](respondWithResult(_0x45bf10,null))[_0x4e89b9(0xdb)](handleError(_0x45bf10,null));},exports[a244_0x4cf31d(0xf0)]=function(_0x3ff7d0,_0x3bfa08){const _0x132d6a=a244_0x4cf31d,_0x1ddc4c={'channel':_0x132d6a(0xa7)};return _0x3ff7d0[_0x132d6a(0xb6)]['id']&&delete _0x3ff7d0[_0x132d6a(0xb6)]['id'],_0x3ff7d0['body'][_0x132d6a(0xb2)]=!![],_0x3ff7d0[_0x132d6a(0xb6)]['readAt']=moment()['format'](_0x132d6a(0xbe)),_0x3ff7d0[_0x132d6a(0xb6)][_0x132d6a(0xfc)]=_0x3ff7d0[_0x132d6a(0xb6)][_0x132d6a(0xfc)]||_0x3ff7d0['user']['id'],db[_0x132d6a(0xb3)][_0x132d6a(0xfe)]({'where':{'id':_0x3ff7d0[_0x132d6a(0xff)]['id'],'UserId':null},'include':[{'model':db[_0x132d6a(0xbd)],'as':_0x132d6a(0xe8)}]})['then'](handleEntityNotFound(_0x3bfa08,null))[_0x132d6a(0xea)](saveUpdates(_0x3ff7d0[_0x132d6a(0xb6)],null))['then'](function(_0x292786){const _0x51f80e=_0x132d6a;if(_0x292786)return _0x1ddc4c[_0x51f80e(0xe3)]=_0x292786[_0x51f80e(0xe7)]({'plain':!![]}),db['FaxInteraction'][_0x51f80e(0xfe)]({'where':{'id':_0x292786[_0x51f80e(0x102)]}});return null;})[_0x132d6a(0xea)](handleEntityNotFound(_0x3bfa08,null))[_0x132d6a(0xea)](function(_0xe519f6){const _0x1941aa=_0x132d6a;if(_0xe519f6)return _0xe519f6['update']({'UserId':_0x3ff7d0[_0x1941aa(0xb6)]['UserId'],'read1stAt':_['isNil'](_0xe519f6['read1stAt'])?moment()[_0x1941aa(0xd3)](_0x1941aa(0xbe)):undefined});return null;})['then'](function(_0xd8a7a8){const _0x6676a7=_0x132d6a;if(_0xd8a7a8)return _0x1ddc4c[_0x6676a7(0xcd)]=_0xd8a7a8[_0x6676a7(0xe7)]({'plain':!![]}),interaction_log[_0x6676a7(0xd5)](_0x6676a7(0x111),_0x3ff7d0['user']['id'],_0x3ff7d0[_0x6676a7(0x100)][_0x6676a7(0xe1)],_0x3ff7d0[_0x6676a7(0x100)][_0x6676a7(0xca)],_0x1ddc4c['interaction']['id'],_0x3ff7d0[_0x6676a7(0xb6)]?JSON['stringify'](_0x3ff7d0[_0x6676a7(0xb6)]):_0x6676a7(0x104)),respondWithRpcPromise(_0x6676a7(0xc9),_0x6676a7(0x10b),_0x1ddc4c);return null;})[_0x132d6a(0xea)](function(_0x439023){const _0x3ad444=_0x132d6a;if(_0x439023){if(_0x3ff7d0[_0x3ad444(0xb6)]['manual'])return _0x1ddc4c['message'][_0x3ad444(0xdf)]=util['format']('SIP/%s',_0x3ff7d0['user'][_0x3ad444(0xe1)]),_0x1ddc4c[_0x3ad444(0xe3)][_0x3ad444(0xc3)]=_0x1ddc4c[_0x3ad444(0xc3)],_0x1ddc4c[_0x3ad444(0xe3)][_0x3ad444(0x10a)]=_0x3ad444(0xf0),respondWithRpcPromise(_0x3ad444(0xf3),_0x3ad444(0xf3),{'event':_0x3ad444(0xe2),'message':_0x1ddc4c[_0x3ad444(0xe3)]},client9002)[_0x3ad444(0xea)](function(){return _0x1ddc4c;});return _0x1ddc4c;}return null;})[_0x132d6a(0xea)](respondWithResult(_0x3bfa08,null))[_0x132d6a(0xdb)](handleError(_0x3bfa08,null));},exports[a244_0x4cf31d(0xcb)]=function(_0x1007f7,_0x4ba86d){const _0x3a0c2a=a244_0x4cf31d,_0x32b492={'agent':{},'channel':_0x3a0c2a(0xa7)};return _0x1007f7['body']['id']&&delete _0x1007f7[_0x3a0c2a(0xb6)]['id'],_0x1007f7[_0x3a0c2a(0xb6)]['UserId']=_0x1007f7[_0x3a0c2a(0xb6)][_0x3a0c2a(0xfc)]||_0x1007f7['user']['id'],_0x32b492[_0x3a0c2a(0xc2)]['id']=_0x1007f7[_0x3a0c2a(0xb6)][_0x3a0c2a(0xfc)],db[_0x3a0c2a(0xb3)][_0x3a0c2a(0xfe)]({'where':{'id':_0x1007f7[_0x3a0c2a(0xff)]['id'],'UserId':null}})[_0x3a0c2a(0xea)](handleEntityNotFound(_0x4ba86d,null))[_0x3a0c2a(0xea)](function(_0x19aa83){const _0x43cb34=_0x3a0c2a;if(_0x19aa83)return _0x32b492[_0x43cb34(0xe3)]=_0x19aa83['get']({'plain':!![]}),db['FaxInteraction'][_0x43cb34(0xfe)]({'where':{'id':_0x19aa83[_0x43cb34(0x102)]}});return null;})[_0x3a0c2a(0xea)](handleEntityNotFound(_0x4ba86d,null))[_0x3a0c2a(0xea)](function(_0x5e4494){const _0x2438e6=_0x3a0c2a;if(_0x5e4494)return _0x32b492[_0x2438e6(0xcd)]=_0x5e4494['get']({'plain':!![]}),interaction_log[_0x2438e6(0xd5)](_0x2438e6(0x10d),_0x1007f7[_0x2438e6(0x100)]['id'],_0x1007f7['user'][_0x2438e6(0xe1)],_0x1007f7[_0x2438e6(0x100)]['role'],_0x32b492[_0x2438e6(0xcd)]['id'],_0x1007f7['body']?JSON[_0x2438e6(0xe4)](_0x1007f7[_0x2438e6(0xb6)]):_0x2438e6(0x104)),respondWithRpcPromise(_0x2438e6(0xd6),_0x2438e6(0xee),_0x32b492);return null;})[_0x3a0c2a(0xea)](function(_0x3dcdb8){const _0x85ca6a=_0x3a0c2a;if(_0x3dcdb8)return _0x3dcdb8['message'][_0x85ca6a(0xdf)]=util[_0x85ca6a(0xd3)]('SIP/%s',_0x1007f7[_0x85ca6a(0x100)][_0x85ca6a(0xe1)]),_0x3dcdb8[_0x85ca6a(0xe3)][_0x85ca6a(0xc3)]=_0x32b492[_0x85ca6a(0xc3)],_0x3dcdb8['message'][_0x85ca6a(0x10a)]=_0x85ca6a(0xcb),respondWithRpcPromise('EventManager','EventManager',{'event':_0x85ca6a(0xed),'message':_0x3dcdb8[_0x85ca6a(0xe3)]},client9002),_0x32b492;return null;})[_0x3a0c2a(0xea)](respondWithResult(_0x4ba86d,null))[_0x3a0c2a(0xdb)](handleError(_0x4ba86d,null));},exports['create']=function(_0x4df33e,_0x5663fd){const _0x224df1=a244_0x4cf31d;let _0x61c264;return db['FaxMessage'][_0x224df1(0x10c)](_0x4df33e[_0x224df1(0xb6)],{})[_0x224df1(0xea)](function(_0x1027bd){const _0x5b616d=_0x224df1;return _0x61c264=_0x1027bd,db[_0x5b616d(0xbd)]['findOne']({'where':{'id':_0x61c264['ContactId']}});})[_0x224df1(0xea)](function(_0x72cacc){const _0x13165b=_0x224df1;if(_[_0x13165b(0xf2)](_0x72cacc))return;else return _0x61c264[_0x13165b(0xa7)]=_0x72cacc[_0x13165b(0xa7)],db[_0x13165b(0x109)]['findOne']({'where':{'id':_0x61c264['AttachmentId']}});})[_0x224df1(0xea)](function(_0x3f4fb3){const _0x569860=_0x224df1;return respondWithRpcPromise(_0x569860(0xd1),_0x569860(0xd1),{'FaxAccountId':_[_0x569860(0xf2)](_0x4df33e[_0x569860(0xb6)])?undefined:_0x4df33e['body'][_0x569860(0xf1)],'path':_['isNil'](_0x3f4fb3)?undefined:util[_0x569860(0xd3)](_0x569860(0xc6),_0x3f4fb3[_0x569860(0xe5)]),'fax':_['isNil'](_0x61c264[_0x569860(0xa7)])?undefined:_0x61c264[_0x569860(0xa7)],'AttachmentId':_0x61c264[_0x569860(0x107)]},client9002);})[_0x224df1(0xea)](respondWithResult(_0x5663fd,0xc9))['catch'](handleError(_0x5663fd,null));},exports[a244_0x4cf31d(0xfa)]=function(_0x6236e6,_0x460df3){const _0x268a8e=a244_0x4cf31d,_0x297e65=path['join'](config[_0x268a8e(0xd7)],_0x268a8e(0x112),'files',_0x268a8e(0xdd));return db[_0x268a8e(0xb3)][_0x268a8e(0xfe)]({'where':{'id':_0x6236e6[_0x268a8e(0xff)]['id']},'include':[{'model':db[_0x268a8e(0x109)],'as':_0x268a8e(0x109)}]})[_0x268a8e(0xea)](handleEntityNotFound(_0x460df3,null))['then'](function(_0x2c284e){const _0x3b3fe0=_0x268a8e;if(_0x2c284e)return _0x460df3[_0x3b3fe0(0xfa)](path[_0x3b3fe0(0xba)](_0x297e65,_0x2c284e[_0x3b3fe0(0x109)][_0x3b3fe0(0xe5)]));})[_0x268a8e(0xdb)](handleError(_0x460df3,null));}; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.events.js b/server/api/faxMessage/faxMessage.events.js index ca0a34b..df88b56 100644 --- a/server/api/faxMessage/faxMessage.events.js +++ b/server/api/faxMessage/faxMessage.events.js @@ -1 +1 @@ -const a245_0x9921=['remove','exports','setMaxListeners','emit','addHook','undefined'];(function(_0x302eb8,_0x5d3023){const _0x9921a2=function(_0x452023){while(--_0x452023){_0x302eb8['push'](_0x302eb8['shift']());}};_0x9921a2(++_0x5d3023);}(a245_0x9921,0x1bc));const a245_0x4520=function(_0x302eb8,_0x5d3023){_0x302eb8=_0x302eb8-0x1e0;let _0x9921a2=a245_0x9921[_0x302eb8];return _0x9921a2;};const a245_0x413745=a245_0x4520;'use strict';const EventEmitter=require('events'),FaxMessage=require('../../mysqldb')['db']['FaxMessage'],FaxMessageEvents=new EventEmitter();FaxMessageEvents[a245_0x413745(0x1e2)](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':a245_0x413745(0x1e0)};function emitEvent(_0x264485){return function(_0xebb9c){const _0x162b8a=a245_0x4520;FaxMessageEvents[_0x162b8a(0x1e3)](_0x264485+':'+_0xebb9c['id'],_0xebb9c),FaxMessageEvents[_0x162b8a(0x1e3)](_0x264485,_0xebb9c);};}for(const e in events){if(typeof events[e]!==a245_0x413745(0x1e5)){const event=events[e];FaxMessage[a245_0x413745(0x1e4)](e,emitEvent(event));}}module[a245_0x413745(0x1e1)]=FaxMessageEvents; \ No newline at end of file +const a245_0xb6d3=['../../mysqldb','events','addHook','setMaxListeners','remove','FaxMessage','undefined','emit','save'];(function(_0x3d08cb,_0x28c494){const _0xb6d3a3=function(_0x328001){while(--_0x328001){_0x3d08cb['push'](_0x3d08cb['shift']());}};_0xb6d3a3(++_0x28c494);}(a245_0xb6d3,0x14d));const a245_0x3280=function(_0x3d08cb,_0x28c494){_0x3d08cb=_0x3d08cb-0x19c;let _0xb6d3a3=a245_0xb6d3[_0x3d08cb];return _0xb6d3a3;};const a245_0x5c1176=a245_0x3280;'use strict';const EventEmitter=require(a245_0x5c1176(0x19d)),FaxMessage=require(a245_0x5c1176(0x19c))['db'][a245_0x5c1176(0x1a1)],FaxMessageEvents=new EventEmitter();FaxMessageEvents[a245_0x5c1176(0x19f)](0x0);const events={'afterCreate':a245_0x5c1176(0x1a4),'afterUpdate':'update','afterDestroy':a245_0x5c1176(0x1a0)};function emitEvent(_0x49e95a){return function(_0x95cbe0){const _0x272210=a245_0x3280;FaxMessageEvents[_0x272210(0x1a3)](_0x49e95a+':'+_0x95cbe0['id'],_0x95cbe0),FaxMessageEvents['emit'](_0x49e95a,_0x95cbe0);};}for(const e in events){if(typeof events[e]!==a245_0x5c1176(0x1a2)){const event=events[e];FaxMessage[a245_0x5c1176(0x19e)](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 fcf38aa..c0c063c 100644 --- a/server/api/faxMessage/faxMessage.model.js +++ b/server/api/faxMessage/faxMessage.model.js @@ -1 +1 @@ -const a246_0x506d=['function','./faxMessage.options','./faxMessage.attributes','init','sequelize','FaxMessage','exports'];(function(_0xca77d5,_0x2b259e){const _0x506dee=function(_0x69c0ae){while(--_0x69c0ae){_0xca77d5['push'](_0xca77d5['shift']());}};_0x506dee(++_0x2b259e);}(a246_0x506d,0xd1));const a246_0x69c0=function(_0xca77d5,_0x2b259e){_0xca77d5=_0xca77d5-0x1dc;let _0x506dee=a246_0x506d[_0xca77d5];return _0x506dee;};const a246_0x44d8d5=a246_0x69c0;'use strict';const {Model}=require(a246_0x44d8d5(0x1e1)),{attributes}=require(a246_0x44d8d5(0x1df)),{options}=require(a246_0x44d8d5(0x1de));class FaxMessage extends Model{}function init(_0x32ce2e,_0x4e539c){const _0x17d7f9=a246_0x44d8d5,_0x2b8747=options(_0x32ce2e),_0x51569b=typeof _0x4e539c===_0x17d7f9(0x1dd)?_0x4e539c(_0x2b8747):_0x2b8747;return FaxMessage[_0x17d7f9(0x1e0)](attributes,_0x51569b),FaxMessage;}module[a246_0x44d8d5(0x1dc)][a246_0x44d8d5(0x1e2)]=FaxMessage,module['exports']['init']=init; \ No newline at end of file +const a246_0x4f3f=['./faxMessage.options','FaxMessage','init','function','sequelize','./faxMessage.attributes'];(function(_0xf31e37,_0x28f32b){const _0x4f3f43=function(_0x1d8147){while(--_0x1d8147){_0xf31e37['push'](_0xf31e37['shift']());}};_0x4f3f43(++_0x28f32b);}(a246_0x4f3f,0x191));const a246_0x1d81=function(_0xf31e37,_0x28f32b){_0xf31e37=_0xf31e37-0x16d;let _0x4f3f43=a246_0x4f3f[_0xf31e37];return _0x4f3f43;};const a246_0x56a843=a246_0x1d81;'use strict';const {Model}=require(a246_0x56a843(0x172)),{attributes}=require(a246_0x56a843(0x16d)),{options}=require(a246_0x56a843(0x16e));class FaxMessage extends Model{}function init(_0x8c3a5a,_0x165a3f){const _0x28aed0=a246_0x56a843,_0x30251b=options(_0x8c3a5a),_0x3fa017=typeof _0x165a3f===_0x28aed0(0x171)?_0x165a3f(_0x30251b):_0x30251b;return FaxMessage[_0x28aed0(0x170)](attributes,_0x3fa017),FaxMessage;}module['exports'][a246_0x56a843(0x16f)]=FaxMessage,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.options.js b/server/api/faxMessage/faxMessage.options.js index f228452..b2d88bf 100644 --- a/server/api/faxMessage/faxMessage.options.js +++ b/server/api/faxMessage/faxMessage.options.js @@ -1 +1 @@ -const a247_0x4642=['FULLTEXT','utf8mb4_unicode_ci','UserId','FaxInteractionId','direction','catch','secret','then','toLowerCase','createdAt','error','FaxInteraction','out','findOne','exports','get','fti_fax_messages','isNil','body','fax_messages','lodash','utf8mb4'];(function(_0x5c8be1,_0x56938d){const _0x464288=function(_0x41166f){while(--_0x41166f){_0x5c8be1['push'](_0x5c8be1['shift']());}};_0x464288(++_0x56938d);}(a247_0x4642,0x1bc));const a247_0x4116=function(_0x5c8be1,_0x56938d){_0x5c8be1=_0x5c8be1-0xd5;let _0x464288=a247_0x4642[_0x5c8be1];return _0x464288;};const a247_0xf09406=a247_0x4116,_=require(a247_0xf09406(0xe5));function options(_0x53ac1e){const _0x2714a6=a247_0xf09406;return{'sequelize':_0x53ac1e,'tableName':_0x2714a6(0xe4),'paranoid':![],'indexes':[{'name':_0x2714a6(0xe1),'fields':[_0x2714a6(0xe3)],'type':_0x2714a6(0xe7)}],'timestamps':!![],'hooks':{'afterCreate':function(_0x40de49){const _0x1c0ec4=_0x2714a6,_0x28c022=_0x53ac1e['models'],_0x3451bd=_0x40de49[_0x1c0ec4(0xe0)]({'plain':!![]});(_0x3451bd[_0x1c0ec4(0xd5)][_0x1c0ec4(0xd9)]()==='in'||_0x3451bd[_0x1c0ec4(0xd5)]['toLowerCase']()===_0x1c0ec4(0xdd)&&!_0x3451bd[_0x1c0ec4(0xd7)]&&!_[_0x1c0ec4(0xe2)](_0x3451bd[_0x1c0ec4(0xe9)]))&&_0x28c022[_0x1c0ec4(0xdc)][_0x1c0ec4(0xde)]({'where':{'id':_0x3451bd[_0x1c0ec4(0xea)]}})[_0x1c0ec4(0xd8)](function(_0x2df0c5){const _0xbe0788=_0x1c0ec4;_0x2df0c5&&_0x2df0c5['update']({'lastMsgAt':_0x3451bd[_0xbe0788(0xda)],'lastMsgDirection':_0x3451bd[_0xbe0788(0xd5)][_0xbe0788(0xd9)]()});})[_0x1c0ec4(0xd6)](function(_0x1c6492){const _0x5be79d=_0x1c0ec4;console[_0x5be79d(0xdb)](_0x1c6492);});}},'charset':_0x2714a6(0xe6),'collate':_0x2714a6(0xe8)};}module[a247_0xf09406(0xdf)]['options']=options; \ No newline at end of file +const a247_0x34f1=['toLowerCase','out','catch','then','utf8mb4_unicode_ci','update','body','direction','isNil','error','utf8mb4','createdAt','FaxInteraction','fax_messages','findOne','options','lodash','UserId','secret'];(function(_0x46d8b6,_0x5697f8){const _0x34f15c=function(_0x2d21fe){while(--_0x2d21fe){_0x46d8b6['push'](_0x46d8b6['shift']());}};_0x34f15c(++_0x5697f8);}(a247_0x34f1,0x15b));const a247_0x2d21=function(_0x46d8b6,_0x5697f8){_0x46d8b6=_0x46d8b6-0x1de;let _0x34f15c=a247_0x34f1[_0x46d8b6];return _0x34f15c;};const a247_0x1cdaf5=a247_0x2d21,_=require(a247_0x1cdaf5(0x1e9));function options(_0x1d7aad){const _0x5868fd=a247_0x1cdaf5;return{'sequelize':_0x1d7aad,'tableName':_0x5868fd(0x1e6),'paranoid':![],'indexes':[{'name':'fti_fax_messages','fields':[_0x5868fd(0x1df)],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'afterCreate':function(_0x1dbaba){const _0x52baac=_0x5868fd,_0x13ac6b=_0x1d7aad['models'],_0x51e019=_0x1dbaba['get']({'plain':!![]});(_0x51e019[_0x52baac(0x1e0)]['toLowerCase']()==='in'||_0x51e019[_0x52baac(0x1e0)]['toLowerCase']()===_0x52baac(0x1ed)&&!_0x51e019[_0x52baac(0x1eb)]&&!_[_0x52baac(0x1e1)](_0x51e019[_0x52baac(0x1ea)]))&&_0x13ac6b[_0x52baac(0x1e5)][_0x52baac(0x1e7)]({'where':{'id':_0x51e019['FaxInteractionId']}})[_0x52baac(0x1ef)](function(_0x4ad560){const _0x15bf3f=_0x52baac;_0x4ad560&&_0x4ad560[_0x15bf3f(0x1de)]({'lastMsgAt':_0x51e019[_0x15bf3f(0x1e4)],'lastMsgDirection':_0x51e019[_0x15bf3f(0x1e0)][_0x15bf3f(0x1ec)]()});})[_0x52baac(0x1ee)](function(_0x1cebcc){const _0x4d4728=_0x52baac;console[_0x4d4728(0x1e2)](_0x1cebcc);});}},'charset':_0x5868fd(0x1e3),'collate':_0x5868fd(0x1f0)};}module['exports'][a247_0x1cdaf5(0x1e8)]=options; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.rpc.js b/server/api/faxMessage/faxMessage.rpc.js index 4efdadc..e5e4742 100644 --- a/server/api/faxMessage/faxMessage.rpc.js +++ b/server/api/faxMessage/faxMessage.rpc.js @@ -1 +1 @@ -const a248_0x1748=['../../config/logger','FaxMessage','body','limit','update','register','CreateFaxMessage','where','debug','catch','message','attributes','rpc','../../mysqldb','stringify','error','then','../../rediscache','options','UpdateFaxMessage','create','info'];(function(_0x19e656,_0x308e4b){const _0x174844=function(_0x1db186){while(--_0x1db186){_0x19e656['push'](_0x19e656['shift']());}};_0x174844(++_0x308e4b);}(a248_0x1748,0xc2));const a248_0x1db1=function(_0x19e656,_0x308e4b){_0x19e656=_0x19e656-0x135;let _0x174844=a248_0x1748[_0x19e656];return _0x174844;};const a248_0x27dac2=a248_0x1db1;'use strict';const db=require(a248_0x27dac2(0x146))['db'],logger=require(a248_0x27dac2(0x139))(a248_0x27dac2(0x145)),{getSocket}=require(a248_0x27dac2(0x14a)),socket=getSocket();require('./faxMessage.socket')[a248_0x27dac2(0x13e)](socket),exports[a248_0x27dac2(0x13f)]=function(_0x1087a1){const _0x448621=this;return new Promise(function(_0x5a112b,_0x444370){const _0x12e786=a248_0x1db1;return db[_0x12e786(0x13a)][_0x12e786(0x137)](_0x1087a1[_0x12e786(0x13b)],{'raw':_0x1087a1[_0x12e786(0x135)]?_0x1087a1[_0x12e786(0x135)]['raw']===undefined?!![]:![]:!![]})[_0x12e786(0x149)](function(_0x1cd62b){const _0xa6e194=_0x12e786;logger['info']('CreateFaxMessage',_0x1087a1),logger[_0xa6e194(0x141)]('CreateFaxMessage',_0x1087a1,JSON[_0xa6e194(0x147)](_0x1cd62b)),_0x5a112b(_0x1cd62b);})[_0x12e786(0x142)](function(_0x1d6205){const _0x1add0c=_0x12e786;logger[_0x1add0c(0x148)](_0x1add0c(0x13f),_0x1d6205[_0x1add0c(0x143)],_0x1087a1),_0x444370(_0x448621['error'](0x1f4,_0x1d6205[_0x1add0c(0x143)]));});});},exports[a248_0x27dac2(0x136)]=function(_0x1e380c){const _0x467f3f=this;return new Promise(function(_0x49eca1,_0x1d2c84){const _0x5432d6=a248_0x1db1;return db[_0x5432d6(0x13a)][_0x5432d6(0x13d)](_0x1e380c['body'],{'raw':_0x1e380c[_0x5432d6(0x135)]?_0x1e380c['options']['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1e380c[_0x5432d6(0x135)]?_0x1e380c['options'][_0x5432d6(0x140)]||null:null,'attributes':_0x1e380c[_0x5432d6(0x135)]?_0x1e380c['options'][_0x5432d6(0x144)]||null:null,'limit':_0x1e380c[_0x5432d6(0x135)]?_0x1e380c[_0x5432d6(0x135)][_0x5432d6(0x13c)]||null:null})[_0x5432d6(0x149)](function(_0x498b69){const _0x379736=_0x5432d6;logger[_0x379736(0x138)]('UpdateFaxMessage',_0x1e380c),logger[_0x379736(0x141)]('UpdateFaxMessage',_0x1e380c,JSON[_0x379736(0x147)](_0x498b69)),_0x49eca1(_0x498b69);})[_0x5432d6(0x142)](function(_0xe5be19){const _0x1de0f6=_0x5432d6;logger[_0x1de0f6(0x148)]('UpdateFaxMessage',_0xe5be19[_0x1de0f6(0x143)],_0x1e380c),_0x1d2c84(_0x467f3f[_0x1de0f6(0x148)](0x1f4,_0xe5be19[_0x1de0f6(0x143)]));});});}; \ No newline at end of file +const a248_0x71b9=['stringify','rpc','./faxMessage.socket','where','register','message','then','create','limit','FaxMessage','options','attributes','info','error','raw','UpdateFaxMessage','catch','debug','../../mysqldb','CreateFaxMessage','../../rediscache'];(function(_0x3d1cb5,_0x48e284){const _0x71b95f=function(_0x162447){while(--_0x162447){_0x3d1cb5['push'](_0x3d1cb5['shift']());}};_0x71b95f(++_0x48e284);}(a248_0x71b9,0x8a));const a248_0x1624=function(_0x3d1cb5,_0x48e284){_0x3d1cb5=_0x3d1cb5-0x17f;let _0x71b95f=a248_0x71b9[_0x3d1cb5];return _0x71b95f;};const a248_0x5351cd=a248_0x1624;'use strict';const db=require(a248_0x5351cd(0x185))['db'],logger=require('../../config/logger')(a248_0x5351cd(0x189)),{getSocket}=require(a248_0x5351cd(0x187)),socket=getSocket();require(a248_0x5351cd(0x18a))[a248_0x5351cd(0x18c)](socket),exports['CreateFaxMessage']=function(_0x41c18f){const _0x4d3ae4=this;return new Promise(function(_0x45c422,_0x3b7932){const _0x1a7838=a248_0x1624;return db[_0x1a7838(0x191)][_0x1a7838(0x18f)](_0x41c18f['body'],{'raw':_0x41c18f[_0x1a7838(0x192)]?_0x41c18f[_0x1a7838(0x192)][_0x1a7838(0x181)]===undefined?!![]:![]:!![]})[_0x1a7838(0x18e)](function(_0x3b4e03){const _0x576b08=_0x1a7838;logger['info']('CreateFaxMessage',_0x41c18f),logger[_0x576b08(0x184)](_0x576b08(0x186),_0x41c18f,JSON['stringify'](_0x3b4e03)),_0x45c422(_0x3b4e03);})[_0x1a7838(0x183)](function(_0xb04c44){const _0x2d1b40=_0x1a7838;logger[_0x2d1b40(0x180)](_0x2d1b40(0x186),_0xb04c44[_0x2d1b40(0x18d)],_0x41c18f),_0x3b7932(_0x4d3ae4[_0x2d1b40(0x180)](0x1f4,_0xb04c44[_0x2d1b40(0x18d)]));});});},exports['UpdateFaxMessage']=function(_0x1ce5eb){const _0x5a8b39=this;return new Promise(function(_0x12b8b7,_0x335d7e){const _0x587e6d=a248_0x1624;return db[_0x587e6d(0x191)]['update'](_0x1ce5eb['body'],{'raw':_0x1ce5eb['options']?_0x1ce5eb[_0x587e6d(0x192)][_0x587e6d(0x181)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1ce5eb[_0x587e6d(0x192)]?_0x1ce5eb[_0x587e6d(0x192)][_0x587e6d(0x18b)]||null:null,'attributes':_0x1ce5eb[_0x587e6d(0x192)]?_0x1ce5eb[_0x587e6d(0x192)][_0x587e6d(0x193)]||null:null,'limit':_0x1ce5eb[_0x587e6d(0x192)]?_0x1ce5eb['options'][_0x587e6d(0x190)]||null:null})['then'](function(_0x43ccdb){const _0xa92dd3=_0x587e6d;logger[_0xa92dd3(0x17f)]('UpdateFaxMessage',_0x1ce5eb),logger[_0xa92dd3(0x184)](_0xa92dd3(0x182),_0x1ce5eb,JSON[_0xa92dd3(0x188)](_0x43ccdb)),_0x12b8b7(_0x43ccdb);})[_0x587e6d(0x183)](function(_0x39428c){const _0x338366=_0x587e6d;logger[_0x338366(0x180)](_0x338366(0x182),_0x39428c[_0x338366(0x18d)],_0x1ce5eb),_0x335d7e(_0x5a8b39[_0x338366(0x180)](0x1f4,_0x39428c[_0x338366(0x18d)]));});});}; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.socket.js b/server/api/faxMessage/faxMessage.socket.js index 30c2f2a..e745b99 100644 --- a/server/api/faxMessage/faxMessage.socket.js +++ b/server/api/faxMessage/faxMessage.socket.js @@ -1 +1 @@ -const a249_0x740d=['faxMessage:','remove','emit','save','length','register','./faxMessage.events','update'];(function(_0x55af54,_0x34e238){const _0x740d61=function(_0x1c91c0){while(--_0x1c91c0){_0x55af54['push'](_0x55af54['shift']());}};_0x740d61(++_0x34e238);}(a249_0x740d,0x1bc));const a249_0x1c91=function(_0x55af54,_0x34e238){_0x55af54=_0x55af54-0xa2;let _0x740d61=a249_0x740d[_0x55af54];return _0x740d61;};const a249_0x51efd6=a249_0x1c91;'use strict';const FaxMessageEvents=require(a249_0x51efd6(0xa4)),events=[a249_0x51efd6(0xa9),a249_0x51efd6(0xa7),a249_0x51efd6(0xa5)];function createListener(_0x539a11,_0xd63c2b){return function(_0x508225){const _0x466a4e=a249_0x1c91;_0xd63c2b[_0x466a4e(0xa8)](_0x539a11,_0x508225);};}exports[a249_0x51efd6(0xa3)]=function(_0x2442a1){const _0x579cb8=a249_0x51efd6;for(let _0x547525=0x0,_0x2b7818=events[_0x579cb8(0xa2)];_0x547525<_0x2b7818;_0x547525++){const _0x4aed1f=events[_0x547525],_0x73f8e1=createListener(_0x579cb8(0xa6)+_0x4aed1f,_0x2442a1);FaxMessageEvents['on'](_0x4aed1f,_0x73f8e1);}}; \ No newline at end of file +const a249_0x21dd=['save','register','update','./faxMessage.events','length'];(function(_0x2c7123,_0x42992c){const _0x21ddc2=function(_0x2774ba){while(--_0x2774ba){_0x2c7123['push'](_0x2c7123['shift']());}};_0x21ddc2(++_0x42992c);}(a249_0x21dd,0xe1));const a249_0x2774=function(_0x2c7123,_0x42992c){_0x2c7123=_0x2c7123-0x85;let _0x21ddc2=a249_0x21dd[_0x2c7123];return _0x21ddc2;};const a249_0x24ca1a=a249_0x2774;'use strict';const FaxMessageEvents=require(a249_0x24ca1a(0x88)),events=[a249_0x24ca1a(0x85),'remove',a249_0x24ca1a(0x87)];function createListener(_0x744e64,_0x1393aa){return function(_0x52dc26){_0x1393aa['emit'](_0x744e64,_0x52dc26);};}exports[a249_0x24ca1a(0x86)]=function(_0x27c3d7){const _0x39f483=a249_0x24ca1a;for(let _0x1761a7=0x0,_0x18e9b0=events[_0x39f483(0x89)];_0x1761a7<_0x18e9b0;_0x1761a7++){const _0x39730c=events[_0x1761a7],_0x5302a3=createListener('faxMessage:'+_0x39730c,_0x27c3d7);FaxMessageEvents['on'](_0x39730c,_0x5302a3);}}; \ No newline at end of file diff --git a/server/api/faxMessage/index.js b/server/api/faxMessage/index.js index 81f9f2b..d2528b7 100644 --- a/server/api/faxMessage/index.js +++ b/server/api/faxMessage/index.js @@ -1 +1 @@ -const a250_0x348c=['/:id/accept','exports','get','put','delete','Router','/describe','/:id','update','/:id/reject','post','/:id/download','index','faxmessage:create','destroy','../../components/interaction/service','isAuthenticated','./faxMessage.controller','tracked','show','create','fax','express','../../components/auth/service','download'];(function(_0xee8dac,_0x47875b){const _0x348c36=function(_0x467f7f){while(--_0x467f7f){_0xee8dac['push'](_0xee8dac['shift']());}};_0x348c36(++_0x47875b);}(a250_0x348c,0xa7));const a250_0x467f=function(_0xee8dac,_0x47875b){_0xee8dac=_0xee8dac-0x76;let _0x348c36=a250_0x348c[_0xee8dac];return _0x348c36;};const a250_0x1c3944=a250_0x467f;'use strict';const express=require(a250_0x1c3944(0x7b)),router=express[a250_0x1c3944(0x83)](),auth=require(a250_0x1c3944(0x7c)),interaction=require(a250_0x1c3944(0x8d)),controller=require(a250_0x1c3944(0x76));router['get']('/',auth[a250_0x1c3944(0x8e)](),controller[a250_0x1c3944(0x8a)]),router[a250_0x1c3944(0x80)](a250_0x1c3944(0x84),auth[a250_0x1c3944(0x8e)](),controller['describe']),router[a250_0x1c3944(0x80)](a250_0x1c3944(0x85),auth[a250_0x1c3944(0x8e)](),controller[a250_0x1c3944(0x78)]),router[a250_0x1c3944(0x80)](a250_0x1c3944(0x89),auth['isAuthenticated'](),controller[a250_0x1c3944(0x7d)]),router[a250_0x1c3944(0x88)]('/',auth[a250_0x1c3944(0x8e)](),interaction[a250_0x1c3944(0x77)](a250_0x1c3944(0x7a),a250_0x1c3944(0x8b)),controller[a250_0x1c3944(0x79)]),router[a250_0x1c3944(0x81)](a250_0x1c3944(0x85),auth[a250_0x1c3944(0x8e)](),controller[a250_0x1c3944(0x86)]),router[a250_0x1c3944(0x81)](a250_0x1c3944(0x7e),auth[a250_0x1c3944(0x8e)](),controller['accept']),router[a250_0x1c3944(0x81)](a250_0x1c3944(0x87),auth[a250_0x1c3944(0x8e)](),controller['reject']),router[a250_0x1c3944(0x82)](a250_0x1c3944(0x85),auth[a250_0x1c3944(0x8e)](),controller[a250_0x1c3944(0x8c)]),module[a250_0x1c3944(0x7f)]=router; \ No newline at end of file +const a250_0x5511=['delete','/:id/reject','/:id/download','destroy','/:id','create','download','./faxMessage.controller','describe','../../components/interaction/service','fax','index','tracked','exports','update','../../components/auth/service','/describe','get','put','isAuthenticated'];(function(_0xd27bc,_0x568e3f){const _0x5511e2=function(_0x525758){while(--_0x525758){_0xd27bc['push'](_0xd27bc['shift']());}};_0x5511e2(++_0x568e3f);}(a250_0x5511,0xe0));const a250_0x5257=function(_0xd27bc,_0x568e3f){_0xd27bc=_0xd27bc-0x1a1;let _0x5511e2=a250_0x5511[_0xd27bc];return _0x5511e2;};const a250_0x2620a6=a250_0x5257;'use strict';const express=require('express'),router=express['Router'](),auth=require(a250_0x2620a6(0x1ac)),interaction=require(a250_0x2620a6(0x1a6)),controller=require(a250_0x2620a6(0x1a4));router[a250_0x2620a6(0x1ae)]('/',auth[a250_0x2620a6(0x1b0)](),controller[a250_0x2620a6(0x1a8)]),router[a250_0x2620a6(0x1ae)](a250_0x2620a6(0x1ad),auth['isAuthenticated'](),controller[a250_0x2620a6(0x1a5)]),router['get'](a250_0x2620a6(0x1a1),auth['isAuthenticated'](),controller['show']),router[a250_0x2620a6(0x1ae)](a250_0x2620a6(0x1b3),auth[a250_0x2620a6(0x1b0)](),controller[a250_0x2620a6(0x1a3)]),router['post']('/',auth[a250_0x2620a6(0x1b0)](),interaction[a250_0x2620a6(0x1a9)](a250_0x2620a6(0x1a7),'faxmessage:create'),controller[a250_0x2620a6(0x1a2)]),router['put']('/:id',auth[a250_0x2620a6(0x1b0)](),controller[a250_0x2620a6(0x1ab)]),router[a250_0x2620a6(0x1af)]('/:id/accept',auth['isAuthenticated'](),controller['accept']),router[a250_0x2620a6(0x1af)](a250_0x2620a6(0x1b2),auth[a250_0x2620a6(0x1b0)](),controller['reject']),router[a250_0x2620a6(0x1b1)](a250_0x2620a6(0x1a1),auth[a250_0x2620a6(0x1b0)](),controller[a250_0x2620a6(0x1b4)]),module[a250_0x2620a6(0x1aa)]=router; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.attributes.js b/server/api/faxQueue/faxQueue.attributes.js index f33c4e8..883e703 100644 --- a/server/api/faxQueue/faxQueue.attributes.js +++ b/server/api/faxQueue/faxQueue.attributes.js @@ -1 +1 @@ -const a251_0x1d02=['exports','name','rrmemory','attributes','beepall','sequelize','INTEGER'];(function(_0xb9b62d,_0x5d6f1e){const _0x1d029b=function(_0x25ac75){while(--_0x25ac75){_0xb9b62d['push'](_0xb9b62d['shift']());}};_0x1d029b(++_0x5d6f1e);}(a251_0x1d02,0xf1));const a251_0x25ac=function(_0xb9b62d,_0x5d6f1e){_0xb9b62d=_0xb9b62d-0x96;let _0x1d029b=a251_0x1d02[_0xb9b62d];return _0x1d029b;};const a251_0x16c7d4=a251_0x25ac;'use strict';const {DataTypes}=require(a251_0x16c7d4(0x98)),attributes={'name':{'type':DataTypes['STRING'],'unique':a251_0x16c7d4(0x9b),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':DataTypes['STRING']},'timeout':{'type':DataTypes[a251_0x16c7d4(0x99)],'allowNull':![],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes['ENUM'](a251_0x16c7d4(0x9c),a251_0x16c7d4(0x97),'roundrobin'),'allowNull':![]},'lastAgent':{'type':DataTypes[a251_0x16c7d4(0x99)],'defaultValue':0x0}};module[a251_0x16c7d4(0x9a)][a251_0x16c7d4(0x96)]=attributes; \ No newline at end of file +const a251_0x50c9=['ENUM','STRING','attributes','sequelize','name','INTEGER'];(function(_0x6c12bf,_0x43960f){const _0x50c9c8=function(_0x49e356){while(--_0x49e356){_0x6c12bf['push'](_0x6c12bf['shift']());}};_0x50c9c8(++_0x43960f);}(a251_0x50c9,0x10b));const a251_0x49e3=function(_0x6c12bf,_0x43960f){_0x6c12bf=_0x6c12bf-0x19b;let _0x50c9c8=a251_0x50c9[_0x6c12bf];return _0x50c9c8;};const a251_0x38feae=a251_0x49e3;'use strict';const {DataTypes}=require(a251_0x38feae(0x19b)),attributes={'name':{'type':DataTypes['STRING'],'unique':a251_0x38feae(0x19c),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':DataTypes[a251_0x38feae(0x19f)]},'timeout':{'type':DataTypes[a251_0x38feae(0x19d)],'allowNull':![],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes[a251_0x38feae(0x19e)]('rrmemory','beepall','roundrobin'),'allowNull':![]},'lastAgent':{'type':DataTypes['INTEGER'],'defaultValue':0x0}};module['exports'][a251_0x38feae(0x1a0)]=attributes; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.controller.js b/server/api/faxQueue/faxQueue.controller.js index f824954..834217e 100644 --- a/server/api/faxQueue/faxQueue.controller.js +++ b/server/api/faxQueue/faxQueue.controller.js @@ -1 +1 @@ -const a252_0x73f5=['value','create','end','filter','interface','get','ut.UserId\x20=\x20?','flatMap','getMembers','User','undefined','query','destroy','fields','key','agent','filters','length','union','clone','./faxQueue.socket','FaxQueueId','sort','error','getTeams','count','addAgents','attributes','send','set','Team','model','pick','addTeams','where','findAll','isEmpty','UserProfileSection','name','../../config/logger','UserProfileResource','updatedAt','map','omit','createdAt','removeTeams','getAgents','select','type','json','rawAttributes','format','isArray','keys','online','register','SELECT','api','userFaxQueue:remove','userProfileId','limit','params','UserId','sendStatus','offset','findAndCountAll','VIRTUAL','ut.TeamId\x20=\x20tq.TeamId','options','removeAgents','includeAll','every','toString','team_has_fax_queues','rows','compact','merge','util','faxPause','include','from','show','SIP','like','then','sequelize','forEach','FaxQueue','FaxQueues','FaxQueueId\x20=\x20?','catch','%s/%s','body','nolimit','Agents','UserFaxQueue','user','push','all','order','findOne','userFaxQueue:save','intersection','Content-Range','update','TeamId','Unable\x20to\x20retrieve\x20the\x20current\x20user','emit','ids','status'];(function(_0x24ff63,_0x38262f){const _0x73f51f=function(_0x1ac41f){while(--_0x1ac41f){_0x24ff63['push'](_0x24ff63['shift']());}};_0x73f51f(++_0x38262f);}(a252_0x73f5,0xa5));const a252_0x1ac4=function(_0x24ff63,_0x38262f){_0x24ff63=_0x24ff63-0x112;let _0x73f51f=a252_0x73f5[_0x24ff63];return _0x73f51f;};const a252_0x30b074=a252_0x1ac4;'use strict';const util=require(a252_0x30b074(0x128)),_=require('lodash'),squel=require('squel'),qs=require('../../components/parsers/qs'),logger=require(a252_0x30b074(0x170))(a252_0x30b074(0x114)),{getSocket}=require('../../rediscache'),socket=getSocket(),{db}=require('../../mysqldb'),{Op,QueryTypes}=require(a252_0x30b074(0x130));require(a252_0x30b074(0x15d))[a252_0x30b074(0x112)](socket);function respondWithStatusCode(_0x517c13,_0x298c99){return _0x298c99=_0x298c99||0xcc,function(_0x539f7d){const _0x2d906f=a252_0x1ac4;if(_0x539f7d)return _0x517c13[_0x2d906f(0x11a)](_0x298c99);return _0x517c13[_0x2d906f(0x148)](_0x298c99)[_0x2d906f(0x14b)]();};}function respondWithResult(_0x3d5b98,_0x5a2b88){return _0x5a2b88=_0x5a2b88||0xc8,function(_0x4ca919){const _0x1f8ded=a252_0x1ac4;if(_0x4ca919)return _0x3d5b98[_0x1f8ded(0x148)](_0x5a2b88)[_0x1f8ded(0x17a)](_0x4ca919);};}function respondWithFilteredResult(_0x72e738,_0x4a66d3){return function(_0x302c7b){const _0x54c596=a252_0x1ac4;if(_0x302c7b){const _0x5dc235=_0x302c7b[_0x54c596(0x162)],_0x3629cc=_0x4a66d3[_0x54c596(0x11b)];let _0x25c90b=_0x4a66d3[_0x54c596(0x11b)]+_0x4a66d3['limit'],_0x4ef0c6;return _0x25c90b>=_0x5dc235?(_0x25c90b=_0x5dc235,_0x4ef0c6=0xc8):_0x4ef0c6=0xce,_0x72e738[_0x54c596(0x148)](_0x4ef0c6),_0x72e738[_0x54c596(0x166)](_0x54c596(0x142),_0x3629cc+'-'+_0x25c90b+'/'+_0x5dc235)[_0x54c596(0x17a)](_0x302c7b);}return null;};}function saveUpdates(_0x5673d3){return function(_0x5966f0){const _0x1b7b5e=a252_0x1ac4;if(_0x5966f0)return _0x5966f0[_0x1b7b5e(0x143)](_0x5673d3)[_0x1b7b5e(0x12f)](function(_0xe53bfd){return _0xe53bfd;});return null;};}function removeEntity(_0xe9d24c){return function(_0x455179){const _0x4bdced=a252_0x1ac4;if(_0x455179)return _0x455179[_0x4bdced(0x155)]()[_0x4bdced(0x12f)](function(){const _0x249b6c=_0x4bdced,_0x498465=_0x455179[_0x249b6c(0x14e)]({'plain':!![]}),_0x31f11d=_0x249b6c(0x133);return db[_0x249b6c(0x171)][_0x249b6c(0x155)]({'where':{'type':_0x31f11d,'resourceId':_0x498465['id']}})[_0x249b6c(0x12f)](function(){return _0x455179;});})['then'](function(){const _0xb109cd=_0x4bdced;_0xe9d24c[_0xb109cd(0x148)](0xcc)[_0xb109cd(0x14b)]();});};}function handleEntityNotFound(_0x3291ac){return function(_0x2f205f){return!_0x2f205f&&_0x3291ac['sendStatus'](0x194),_0x2f205f;};}function handleError(_0x2c0847,_0x42d756){return _0x42d756=_0x42d756||0x1f4,function(_0x1cfad2){const _0x1d5238=a252_0x1ac4;logger[_0x1d5238(0x160)](_0x1cfad2['stack']),_0x1cfad2[_0x1d5238(0x16f)]&&delete _0x1cfad2[_0x1d5238(0x16f)],_0x2c0847[_0x1d5238(0x148)](_0x42d756)[_0x1d5238(0x165)](_0x1cfad2);};}exports['index']=function(_0x5d44ea,_0x1c6257){const _0x254793=a252_0x30b074;let _0x5c0356={};const _0x31a00e={},_0x37920d={'count':0x0,'rows':[]},_0xa58bbe=_[_0x254793(0x173)](db[_0x254793(0x132)][_0x254793(0x17b)],function(_0x2819e4){const _0x3c1ed9=_0x254793;return{'name':_0x2819e4['fieldName'],'type':_0x2819e4[_0x3c1ed9(0x179)][_0x3c1ed9(0x157)]};});_0x31a00e[_0x254793(0x168)]=_[_0x254793(0x173)](_0xa58bbe,'name'),_0x31a00e[_0x254793(0x154)]=_[_0x254793(0x17e)](_0x5d44ea[_0x254793(0x154)]),_0x31a00e[_0x254793(0x159)]=_[_0x254793(0x141)](_0x31a00e[_0x254793(0x168)],_0x31a00e['query']),_0x5c0356[_0x254793(0x164)]=_[_0x254793(0x141)](_0x31a00e['model'],qs['fields'](_0x5d44ea[_0x254793(0x154)]['fields'])),_0x5c0356[_0x254793(0x164)]=_0x5c0356[_0x254793(0x164)][_0x254793(0x15a)]?_0x5c0356['attributes']:_0x31a00e[_0x254793(0x168)];typeof _0x5d44ea[_0x254793(0x154)]['nolimit']==='undefined'&&(_0x5c0356['limit']=qs[_0x254793(0x117)](_0x5d44ea[_0x254793(0x154)][_0x254793(0x117)]),_0x5c0356[_0x254793(0x11b)]=qs[_0x254793(0x11b)](_0x5d44ea[_0x254793(0x154)][_0x254793(0x11b)]));_0x5c0356['order']=qs[_0x254793(0x15f)](_0x5d44ea[_0x254793(0x154)]['sort']),_0x5c0356[_0x254793(0x16b)]=qs[_0x254793(0x159)](_['pick'](_0x5d44ea['query'],_0x31a00e[_0x254793(0x159)]),_0xa58bbe);_0x5d44ea[_0x254793(0x154)][_0x254793(0x14c)]&&(_0x5c0356[_0x254793(0x16b)]=_[_0x254793(0x127)](_0x5c0356[_0x254793(0x16b)],{[Op['or']]:_['map'](_0xa58bbe,function(_0x438e8d){const _0x4727e0=_0x254793;if(_0x438e8d['type']!==_0x4727e0(0x11d)){const _0x39f97e={};return _0x39f97e[_0x438e8d['name']]={[Op[_0x4727e0(0x12e)]]:'%'+_0x5d44ea[_0x4727e0(0x154)][_0x4727e0(0x14c)]+'%'},_0x39f97e;}})}));_0x5c0356=_['merge']({},_0x5c0356,_0x5d44ea[_0x254793(0x11f)]);const _0x4ed760={'where':_0x5c0356[_0x254793(0x16b)]};return db[_0x254793(0x132)]['count'](_0x4ed760)[_0x254793(0x12f)](function(_0x70c7c5){const _0x508135=_0x254793;return _0x37920d[_0x508135(0x162)]=_0x70c7c5,_0x5d44ea[_0x508135(0x154)]['includeAll']&&(_0x5c0356[_0x508135(0x12a)]=[{'all':!![]}]),db['FaxQueue']['findAll'](_0x5c0356);})[_0x254793(0x12f)](function(_0x5ca6d5){const _0x2ce4db=_0x254793;return _0x37920d[_0x2ce4db(0x125)]=_0x5ca6d5,_0x37920d;})[_0x254793(0x12f)](respondWithFilteredResult(_0x1c6257,_0x5c0356))[_0x254793(0x135)](handleError(_0x1c6257,null));},exports[a252_0x30b074(0x12c)]=function(_0x526a7f,_0x196992){const _0x165dda=a252_0x30b074;let _0x2c5d89={'raw':!![],'where':{'id':_0x526a7f[_0x165dda(0x118)]['id']}};const _0x56348b={};return _0x56348b[_0x165dda(0x168)]=_[_0x165dda(0x17e)](db[_0x165dda(0x132)]['rawAttributes']),_0x56348b[_0x165dda(0x154)]=_['keys'](_0x526a7f[_0x165dda(0x154)]),_0x56348b[_0x165dda(0x159)]=_[_0x165dda(0x141)](_0x56348b['model'],_0x56348b['query']),_0x2c5d89['attributes']=_[_0x165dda(0x141)](_0x56348b[_0x165dda(0x168)],qs[_0x165dda(0x156)](_0x526a7f[_0x165dda(0x154)][_0x165dda(0x156)])),_0x2c5d89[_0x165dda(0x164)]=_0x2c5d89[_0x165dda(0x164)][_0x165dda(0x15a)]?_0x2c5d89['attributes']:_0x56348b[_0x165dda(0x168)],_0x526a7f[_0x165dda(0x154)][_0x165dda(0x121)]&&(_0x2c5d89[_0x165dda(0x12a)]=[{'all':!![]}]),_0x2c5d89=_[_0x165dda(0x127)]({},_0x2c5d89,_0x526a7f['options']),db[_0x165dda(0x132)][_0x165dda(0x13f)](_0x2c5d89)[_0x165dda(0x12f)](handleEntityNotFound(_0x196992,null))['then'](respondWithResult(_0x196992,null))[_0x165dda(0x135)](handleError(_0x196992,null));},exports['create']=function(_0x5f356c,_0x1d5414){const _0x1575fc=a252_0x30b074;return db[_0x1575fc(0x132)][_0x1575fc(0x14a)](_0x5f356c['body'],{})['then'](function(_0x46b73f){const _0x30f45c=_0x1575fc,_0x108ee0=_0x5f356c[_0x30f45c(0x13b)]['get']({'plain':!![]});if(!_0x108ee0)throw new Error(_0x30f45c(0x145));if(_0x108ee0['role']===_0x30f45c(0x13b)){const _0x564d56=_0x46b73f[_0x30f45c(0x14e)]({'plain':!![]}),_0x33ed1a=_0x30f45c(0x133);return db[_0x30f45c(0x16e)][_0x30f45c(0x13f)]({'where':{'name':_0x33ed1a,'userProfileId':_0x108ee0[_0x30f45c(0x116)]},'raw':!![]})[_0x30f45c(0x12f)](function(_0x2a2c32){const _0x245743=_0x30f45c;return _0x2a2c32&&_0x2a2c32['autoAssociation']===0x0?db[_0x245743(0x171)]['create']({'name':_0x564d56[_0x245743(0x16f)],'resourceId':_0x564d56['id'],'type':_0x2a2c32['name'],'sectionId':_0x2a2c32['id']},{})[_0x245743(0x12f)](function(){return _0x46b73f;}):_0x46b73f;})[_0x30f45c(0x135)](function(_0x54ffd4){const _0x5d2559=_0x30f45c;logger[_0x5d2559(0x160)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x54ffd4);throw _0x54ffd4;});}return _0x46b73f;})[_0x1575fc(0x12f)](respondWithResult(_0x1d5414,0xc9))[_0x1575fc(0x135)](handleError(_0x1d5414,null));},exports['update']=function(_0x3893b7,_0x433676){const _0x3b78c8=a252_0x30b074;return _0x3893b7[_0x3b78c8(0x137)]['id']&&delete _0x3893b7[_0x3b78c8(0x137)]['id'],db[_0x3b78c8(0x132)][_0x3b78c8(0x13f)]({'where':{'id':_0x3893b7[_0x3b78c8(0x118)]['id']}})[_0x3b78c8(0x12f)](handleEntityNotFound(_0x433676,null))[_0x3b78c8(0x12f)](saveUpdates(_0x3893b7['body'],null))['then'](respondWithResult(_0x433676,null))[_0x3b78c8(0x135)](handleError(_0x433676,null));},exports[a252_0x30b074(0x155)]=function(_0x39efcb,_0x1fb1b7){const _0x2e6529=a252_0x30b074;return db['FaxQueue'][_0x2e6529(0x13f)]({'where':{'id':_0x39efcb['params']['id']}})['then'](handleEntityNotFound(_0x1fb1b7,null))[_0x2e6529(0x12f)](removeEntity(_0x1fb1b7,null))[_0x2e6529(0x135)](handleError(_0x1fb1b7,null));},exports['describe']=function(_0x46ee64,_0x335f7e){const _0x44bbbb=a252_0x30b074;return db[_0x44bbbb(0x132)]['describe']()[_0x44bbbb(0x12f)](respondWithResult(_0x335f7e,null))[_0x44bbbb(0x135)](handleError(_0x335f7e,null));},exports[a252_0x30b074(0x151)]=function(_0x30f0cc,_0x5dabd9){const _0x18a840=a252_0x30b074;let _0x3cdc94={'raw':!![],'where':{}};const _0x5c8f35={};let _0x313be5;return db[_0x18a840(0x132)][_0x18a840(0x13f)]({'where':{'id':_0x30f0cc[_0x18a840(0x118)]['id']}})[_0x18a840(0x12f)](handleEntityNotFound(_0x5dabd9,null))['then'](function(_0x3945f4){const _0x9cd0ea=_0x18a840;if(_0x3945f4)return _0x313be5=_0x3945f4['get']({'plain':!![]}),_0x5c8f35[_0x9cd0ea(0x168)]=_['keys'](db[_0x9cd0ea(0x13a)][_0x9cd0ea(0x17b)]),_0x5c8f35[_0x9cd0ea(0x154)]=_[_0x9cd0ea(0x17e)](_0x30f0cc[_0x9cd0ea(0x154)]),_0x5c8f35[_0x9cd0ea(0x159)]=_[_0x9cd0ea(0x141)](_0x5c8f35['model'],_0x5c8f35[_0x9cd0ea(0x154)]),_0x3cdc94[_0x9cd0ea(0x164)]=_[_0x9cd0ea(0x141)](_0x5c8f35[_0x9cd0ea(0x168)],qs[_0x9cd0ea(0x156)](_0x30f0cc[_0x9cd0ea(0x154)][_0x9cd0ea(0x156)])),_0x3cdc94[_0x9cd0ea(0x164)]=_0x3cdc94[_0x9cd0ea(0x164)]['length']?_0x3cdc94['attributes']:_0x5c8f35[_0x9cd0ea(0x168)],typeof _0x30f0cc[_0x9cd0ea(0x154)][_0x9cd0ea(0x138)]===_0x9cd0ea(0x153)&&(_0x3cdc94['limit']=qs[_0x9cd0ea(0x117)](_0x30f0cc['query'][_0x9cd0ea(0x117)]),_0x3cdc94[_0x9cd0ea(0x11b)]=qs[_0x9cd0ea(0x11b)](_0x30f0cc[_0x9cd0ea(0x154)][_0x9cd0ea(0x11b)])),_0x3cdc94[_0x9cd0ea(0x13e)]=qs['sort'](_0x30f0cc[_0x9cd0ea(0x154)][_0x9cd0ea(0x15f)]),_0x3cdc94[_0x9cd0ea(0x16b)]=qs[_0x9cd0ea(0x159)](_['pick'](_0x30f0cc['query'],_0x5c8f35[_0x9cd0ea(0x159)])),_0x3cdc94[_0x9cd0ea(0x16b)][_0x9cd0ea(0x15e)]=_0x3945f4['id'],_0x30f0cc['query'][_0x9cd0ea(0x14c)]&&(_0x3cdc94[_0x9cd0ea(0x16b)]=_['merge'](_0x3cdc94[_0x9cd0ea(0x16b)],{[Op['or']]:_['map'](_0x3cdc94['attributes'],function(_0x504f6){const _0x24adee=_0x9cd0ea,_0x4ad48a={};return _0x4ad48a[_0x504f6]={[Op['like']]:'%'+_0x30f0cc[_0x24adee(0x154)][_0x24adee(0x14c)]+'%'},_0x4ad48a;})})),_0x3cdc94=_[_0x9cd0ea(0x127)]({},_0x3cdc94,_0x30f0cc[_0x9cd0ea(0x11f)]),db['UserFaxQueue'][_0x9cd0ea(0x16c)](_0x3cdc94);})[_0x18a840(0x12f)](function(_0x24f298){const _0x3dd215=_0x18a840;if(_0x24f298)return db[_0x3dd215(0x152)][_0x3dd215(0x11c)]({'where':{'id':_['map'](_0x24f298,_0x3dd215(0x119)),'role':_0x3dd215(0x158)},'attributes':['id',_0x3dd215(0x16f),_0x3dd215(0x129),_0x3dd215(0x172),'createdAt']});})[_0x18a840(0x12f)](function(_0x3b13a6){const _0x4e4e1e=_0x18a840;return _0x3b13a6?{'count':_0x3b13a6['count'],'rows':_[_0x4e4e1e(0x173)](_0x3b13a6[_0x4e4e1e(0x125)],function(_0x149da9){const _0x3913d2=_0x4e4e1e;return{'membername':_0x149da9[_0x3913d2(0x16f)],'UserId':_0x149da9['id'],'queue_name':_0x313be5[_0x3913d2(0x16f)],'FaxQueueId':_0x313be5['id'],'interface':util[_0x3913d2(0x17c)](_0x3913d2(0x136),_0x3913d2(0x12d),_0x149da9['name']),'penalty':0x0,'paused':_0x149da9['faxPause'],'createdAt':_0x149da9[_0x3913d2(0x175)],'updatedAt':_0x149da9[_0x3913d2(0x172)]};})}:{'count':0x0,'rows':[]};})[_0x18a840(0x12f)](respondWithFilteredResult(_0x5dabd9,_0x3cdc94))[_0x18a840(0x135)](handleError(_0x5dabd9,null));},exports[a252_0x30b074(0x161)]=function(_0x31a62e,_0x2d1ac4){const _0xbcaf82=a252_0x30b074;let _0x4d17c0={};const _0x4914b9={};let _0x4de194,_0x26363e;return db[_0xbcaf82(0x132)][_0xbcaf82(0x13f)]({'where':{'id':_0x31a62e[_0xbcaf82(0x118)]['id']}})[_0xbcaf82(0x12f)](handleEntityNotFound(_0x2d1ac4,null))[_0xbcaf82(0x12f)](function(_0x2fa5c0){const _0x383ce7=_0xbcaf82;if(_0x2fa5c0)return _0x4de194=_0x2fa5c0,_0x4914b9[_0x383ce7(0x168)]=_[_0x383ce7(0x17e)](db[_0x383ce7(0x167)][_0x383ce7(0x17b)]),_0x4914b9['query']=_[_0x383ce7(0x17e)](_0x31a62e[_0x383ce7(0x154)]),_0x4914b9[_0x383ce7(0x159)]=_[_0x383ce7(0x141)](_0x4914b9[_0x383ce7(0x168)],_0x4914b9[_0x383ce7(0x154)]),_0x4d17c0[_0x383ce7(0x164)]=_[_0x383ce7(0x141)](_0x4914b9[_0x383ce7(0x168)],qs[_0x383ce7(0x156)](_0x31a62e['query']['fields'])),_0x4d17c0[_0x383ce7(0x164)]=_0x4d17c0[_0x383ce7(0x164)][_0x383ce7(0x15a)]?_0x4d17c0[_0x383ce7(0x164)]:_0x4914b9[_0x383ce7(0x168)],_0x4d17c0['order']=qs[_0x383ce7(0x15f)](_0x31a62e[_0x383ce7(0x154)][_0x383ce7(0x15f)]),_0x4d17c0[_0x383ce7(0x16b)]=qs[_0x383ce7(0x159)](_[_0x383ce7(0x169)](_0x31a62e[_0x383ce7(0x154)],_0x4914b9[_0x383ce7(0x159)])),_0x31a62e[_0x383ce7(0x154)][_0x383ce7(0x14c)]&&(_0x4d17c0[_0x383ce7(0x16b)]=_[_0x383ce7(0x127)](_0x4d17c0[_0x383ce7(0x16b)],{[Op['or']]:_[_0x383ce7(0x173)](_0x4d17c0[_0x383ce7(0x164)],function(_0x44bedb){const _0x375e40=_0x383ce7,_0xe43d72={};return _0xe43d72[_0x44bedb]={[Op[_0x375e40(0x12e)]]:'%'+_0x31a62e['query'][_0x375e40(0x14c)]+'%'},_0xe43d72;})})),_0x4d17c0=_[_0x383ce7(0x127)]({},_0x4d17c0,_0x31a62e['options']),_0x4de194[_0x383ce7(0x161)](_0x4d17c0);})['then'](function(_0x4eb53c){const _0x51cb36=_0xbcaf82;if(_0x4eb53c)return _0x26363e=_0x4eb53c[_0x51cb36(0x15a)],typeof _0x31a62e['query'][_0x51cb36(0x138)]==='undefined'&&(_0x4d17c0[_0x51cb36(0x117)]=qs[_0x51cb36(0x117)](_0x31a62e['query'][_0x51cb36(0x117)]),_0x4d17c0[_0x51cb36(0x11b)]=qs['offset'](_0x31a62e[_0x51cb36(0x154)][_0x51cb36(0x11b)])),_0x4de194[_0x51cb36(0x161)](_0x4d17c0);})[_0xbcaf82(0x12f)](function(_0x284ae1){if(_0x284ae1)return _0x284ae1?{'count':_0x26363e,'rows':_0x284ae1}:null;})[_0xbcaf82(0x12f)](respondWithResult(_0x2d1ac4,null))['catch'](handleError(_0x2d1ac4,null));},exports['addTeams']=function(_0xd3f352,_0x1e98c7){const _0x1e6991=a252_0x30b074,_0x35ac36=_0xd3f352[_0x1e6991(0x137)][_0x1e6991(0x147)];return db[_0x1e6991(0x167)][_0x1e6991(0x16c)]({'where':{'id':_0x35ac36},'attributes':['id'],'include':[{'model':db['User'],'as':_0x1e6991(0x139),'attributes':['id',_0x1e6991(0x16f),_0x1e6991(0x17f),'voicePause',_0x1e6991(0x14d)],'raw':!![]}]})[_0x1e6991(0x12f)](function(_0x39369f){const _0x1ac43f=_0x1e6991;if(_0x39369f){const _0xa7721c=_[_0x1ac43f(0x150)](_0x39369f,function(_0x3c0f23){const _0x55000a=_0x1ac43f,_0x367692=_0x3c0f23[_0x55000a(0x14e)]({'plain':!![]});return _0x367692[_0x55000a(0x139)];});return db['FaxQueue']['findOne']({'where':{'id':_0xd3f352[_0x1ac43f(0x118)]['id']}})[_0x1ac43f(0x12f)](function(_0xf612f7){const _0x43e3a7=_0x1ac43f;return db[_0x43e3a7(0x130)]['transaction'](function(_0x3e2c1e){const _0x1f4990=_0x43e3a7;return _0xf612f7[_0x1f4990(0x16a)](_0x35ac36,{'transaction':_0x3e2c1e})['then'](function(){const _0x383954=_0x1f4990;return Promise[_0x383954(0x13d)](_0xa7721c[_0x383954(0x173)](_0x4272d5=>{const _0x596b25=_0x383954;return db[_0x596b25(0x13a)]['findOrCreate']({'where':{'UserId':_0x4272d5['id'],'FaxQueueId':_0xd3f352[_0x596b25(0x118)]['id']},'transaction':_0x3e2c1e});}));})[_0x1f4990(0x12f)](function(){const _0x3f5508=_0x1f4990;_0xa7721c[_0x3f5508(0x131)](function(_0x36538b){const _0x3bd1e7=_0x3f5508;socket[_0x3bd1e7(0x146)](_0x3bd1e7(0x140),{'UserId':_0x36538b['id'],'FaxQueueId':_0xf612f7['id']});});});});});}})[_0x1e6991(0x12f)](respondWithStatusCode(_0x1e98c7,null))[_0x1e6991(0x135)](handleError(_0x1e98c7,null));},exports[a252_0x30b074(0x176)]=function(_0x57f49e,_0xbc474a){const _0x5947fe=a252_0x30b074;return db[_0x5947fe(0x167)][_0x5947fe(0x16c)]({'where':{'id':_0x57f49e['query']['ids']},'attributes':['id'],'include':[{'model':db[_0x5947fe(0x152)],'as':'Agents','attributes':['id'],'raw':!![]}]})['then'](handleEntityNotFound(_0xbc474a,null))[_0x5947fe(0x12f)](function(_0x4ca088){const _0x5ab55e=_0x5947fe,_0x235d2b=_[_0x5ab55e(0x173)](_0x4ca088,'id');let _0x8c11a0=[];const _0x57cf90=[],_0x3ba940=squel[_0x5ab55e(0x178)]();_0x3ba940['field']('tq.TeamId')[_0x5ab55e(0x12b)](_0x5ab55e(0x124),'tq')['join']('user_has_teams','ut',_0x5ab55e(0x11e))[_0x5ab55e(0x16b)](_0x5ab55e(0x134),_0x57f49e[_0x5ab55e(0x118)]['id']);for(let _0x27ebda=0x0;_0x27ebda<_0x4ca088[_0x5ab55e(0x15a)];_0x27ebda+=0x1){const _0x646fa5=_0x4ca088[_0x27ebda];for(let _0x381bd5=0x0;_0x381bd5<_0x646fa5[_0x5ab55e(0x139)][_0x5ab55e(0x15a)];_0x381bd5+=0x1){const _0x165c5c=_0x646fa5[_0x5ab55e(0x139)][_0x381bd5],_0x2ad040=_0x3ba940[_0x5ab55e(0x15c)]();_0x2ad040['where'](_0x5ab55e(0x14f),_0x165c5c['id']),_0x57cf90[_0x5ab55e(0x13c)](db['sequelize'][_0x5ab55e(0x154)](_0x2ad040[_0x5ab55e(0x123)](),{'type':QueryTypes[_0x5ab55e(0x113)]})['then'](function(_0x4887f8){const _0x190e81=_0x5ab55e;if(_0x4887f8[_0x190e81(0x15a)]===0x1)return _0x165c5c['id'];else{const _0x54cc7e=_[_0x190e81(0x122)](_[_0x190e81(0x173)](_0x4887f8,_0x190e81(0x144)),function(_0x324f17){return _['includes'](_0x235d2b,_0x324f17);});if(_0x54cc7e)return _0x165c5c['id'];}}));}}return Promise[_0x5ab55e(0x13d)](_0x57cf90)[_0x5ab55e(0x12f)](function(_0x4970a9){const _0x158747=_0x5ab55e;return _0x8c11a0=_(_0x8c11a0)[_0x158747(0x15b)](_0x4970a9)[_0x158747(0x126)]()[_0x158747(0x149)](),db[_0x158747(0x132)][_0x158747(0x13f)]({'where':{'id':_0x57f49e[_0x158747(0x118)]['id']}})[_0x158747(0x12f)](function(_0x1198bc){const _0x8b896=_0x158747;return db[_0x8b896(0x130)]['transaction'](function(_0x41289e){const _0x2c16ed=_0x8b896;return _0x1198bc[_0x2c16ed(0x176)](_0x57f49e[_0x2c16ed(0x154)][_0x2c16ed(0x147)],{'transaction':_0x41289e})['then'](function(){const _0x4d0994=_0x2c16ed;if(!_[_0x4d0994(0x16d)](_0x8c11a0))return _0x1198bc[_0x4d0994(0x120)](_0x8c11a0,{'transaction':_0x41289e});})[_0x2c16ed(0x12f)](function(){const _0x210687=_0x2c16ed;_0x8c11a0[_0x210687(0x131)](function(_0x93feee){const _0x210d5f=_0x210687;socket[_0x210d5f(0x146)](_0x210d5f(0x115),{'UserId':_0x93feee,'FaxQueueId':_0x1198bc['id']});});});});});});})['then'](respondWithStatusCode(_0xbc474a,null))['catch'](handleError(_0xbc474a,null));},exports[a252_0x30b074(0x163)]=function(_0x28684d,_0x577434){const _0x72b567=a252_0x30b074;return db[_0x72b567(0x132)]['findOne']({'where':{'id':_0x28684d['params']['id']}})['then'](function(_0x47736c){const _0x373037=_0x72b567;if(_0x47736c)return _0x47736c[_0x373037(0x163)](_0x28684d[_0x373037(0x137)][_0x373037(0x147)],{'through':_[_0x373037(0x174)](_0x28684d[_0x373037(0x137)],[_0x373037(0x147),'id'])})[_0x373037(0x12f)](function(_0x41e2fa){const _0xdf6d5a=_0x373037;for(let _0x58aace=0x0;_0x58aace<_0x28684d[_0xdf6d5a(0x137)][_0xdf6d5a(0x147)][_0xdf6d5a(0x15a)];_0x58aace+=0x1){socket[_0xdf6d5a(0x146)]('userFaxQueue:save',{'UserId':_0x28684d[_0xdf6d5a(0x137)]['ids'][_0x58aace],'FaxQueueId':_0x28684d['params']['id']});}return _0x41e2fa;});})[_0x72b567(0x12f)](respondWithResult(_0x577434,null))[_0x72b567(0x135)](handleError(_0x577434,null));},exports[a252_0x30b074(0x120)]=function(_0x45466a,_0x5ea0dd){const _0x3f1c7d=a252_0x30b074;return db['FaxQueue'][_0x3f1c7d(0x13f)]({'where':{'id':_0x45466a[_0x3f1c7d(0x118)]['id']}})[_0x3f1c7d(0x12f)](handleEntityNotFound(_0x5ea0dd,null))[_0x3f1c7d(0x12f)](function(_0x4c707e){const _0x1e8241=_0x3f1c7d;if(_0x4c707e)return _0x4c707e[_0x1e8241(0x120)](_0x45466a[_0x1e8241(0x154)]['ids'])[_0x1e8241(0x12f)](function(){const _0x40708a=_0x1e8241;if(_[_0x40708a(0x17d)](_0x45466a[_0x40708a(0x154)][_0x40708a(0x147)]))for(let _0x7e0818=0x0;_0x7e0818<_0x45466a[_0x40708a(0x154)][_0x40708a(0x147)]['length'];_0x7e0818+=0x1){socket[_0x40708a(0x146)](_0x40708a(0x115),{'UserId':Number(_0x45466a['query']['ids'][_0x7e0818]),'FaxQueueId':Number(_0x45466a[_0x40708a(0x118)]['id'])});}else socket[_0x40708a(0x146)](_0x40708a(0x115),{'UserId':Number(_0x45466a[_0x40708a(0x154)][_0x40708a(0x147)]),'FaxQueueId':Number(_0x45466a[_0x40708a(0x118)]['id'])});});})[_0x3f1c7d(0x12f)](respondWithStatusCode(_0x5ea0dd,null))['catch'](handleError(_0x5ea0dd,null));},exports['getAgents']=function(_0x33d938,_0x57ad98){const _0xc3be64=a252_0x30b074;let _0x14dca9={};const _0x52f21b={};let _0x209aa5,_0x180779;return db[_0xc3be64(0x132)][_0xc3be64(0x13f)]({'where':{'id':_0x33d938[_0xc3be64(0x118)]['id']}})[_0xc3be64(0x12f)](handleEntityNotFound(_0x57ad98,null))[_0xc3be64(0x12f)](function(_0x122ab2){const _0x3e70d2=_0xc3be64;if(_0x122ab2)return _0x209aa5=_0x122ab2,_0x52f21b['model']=_[_0x3e70d2(0x17e)](db['User'][_0x3e70d2(0x17b)]),_0x52f21b[_0x3e70d2(0x154)]=_[_0x3e70d2(0x17e)](_0x33d938[_0x3e70d2(0x154)]),_0x52f21b[_0x3e70d2(0x159)]=_[_0x3e70d2(0x141)](_0x52f21b[_0x3e70d2(0x168)],_0x52f21b[_0x3e70d2(0x154)]),_0x14dca9['attributes']=_[_0x3e70d2(0x141)](_0x52f21b[_0x3e70d2(0x168)],qs[_0x3e70d2(0x156)](_0x33d938[_0x3e70d2(0x154)][_0x3e70d2(0x156)])),_0x14dca9[_0x3e70d2(0x164)]=_0x14dca9[_0x3e70d2(0x164)][_0x3e70d2(0x15a)]?_0x14dca9[_0x3e70d2(0x164)]:_0x52f21b[_0x3e70d2(0x168)],_0x14dca9['order']=qs[_0x3e70d2(0x15f)](_0x33d938[_0x3e70d2(0x154)][_0x3e70d2(0x15f)]),_0x14dca9[_0x3e70d2(0x16b)]=qs[_0x3e70d2(0x159)](_['pick'](_0x33d938[_0x3e70d2(0x154)],_0x52f21b[_0x3e70d2(0x159)])),_0x33d938[_0x3e70d2(0x154)]['filter']&&(_0x14dca9[_0x3e70d2(0x16b)]=_[_0x3e70d2(0x127)](_0x14dca9['where'],{[Op['or']]:_[_0x3e70d2(0x173)](_0x14dca9['attributes'],function(_0xc6bc1a){const _0x16b402=_0x3e70d2,_0x11d384={};return _0x11d384[_0xc6bc1a]={[Op['like']]:'%'+_0x33d938[_0x16b402(0x154)][_0x16b402(0x14c)]+'%'},_0x11d384;})})),_0x14dca9=_[_0x3e70d2(0x127)]({},_0x14dca9,_0x33d938[_0x3e70d2(0x11f)]),_0x209aa5[_0x3e70d2(0x177)](_0x14dca9);})[_0xc3be64(0x12f)](function(_0x30754e){const _0x466f27=_0xc3be64;if(_0x30754e)return _0x180779=_0x30754e[_0x466f27(0x15a)],typeof _0x33d938[_0x466f27(0x154)]['nolimit']===_0x466f27(0x153)&&(_0x14dca9[_0x466f27(0x117)]=qs[_0x466f27(0x117)](_0x33d938['query'][_0x466f27(0x117)]),_0x14dca9[_0x466f27(0x11b)]=qs[_0x466f27(0x11b)](_0x33d938['query'][_0x466f27(0x11b)])),_0x209aa5['getAgents'](_0x14dca9);})[_0xc3be64(0x12f)](function(_0x2c1daa){if(_0x2c1daa)return _0x2c1daa?{'count':_0x180779,'rows':_0x2c1daa}:null;})[_0xc3be64(0x12f)](respondWithResult(_0x57ad98,null))[_0xc3be64(0x135)](handleError(_0x57ad98,null));}; \ No newline at end of file +const a252_0x2612=['ut.TeamId\x20=\x20tq.TeamId','send','union','agent','describe','rawAttributes','%s/%s','role','field','SIP','update','api','findAll','get','lodash','UserId','query','where','user','merge','fieldName','sendStatus','intersection','UserProfileResource','Content-Range','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','interface','findOne','index','includes','then','online','../../rediscache','filters','pick','addAgents','createdAt','ut.UserId\x20=\x20?','json','rows','../../mysqldb','key','fields','catch','clone','sort','FaxQueueId','length','set','userFaxQueue:save','addTeams','select','findAndCountAll','Unable\x20to\x20retrieve\x20the\x20current\x20user','squel','includeAll','tq.TeamId','userFaxQueue:remove','nolimit','map','create','push','options','transaction','isArray','format','sequelize','body','model','destroy','flatMap','getTeams','updatedAt','like','count','FaxQueue','Team','stack','Agents','show','getAgents','end','toString','limit','order','FaxQueues','UserProfileSection','autoAssociation','undefined','include','status','./faxQueue.socket','params','register','omit','User','../../components/parsers/qs','name','emit','user_has_teams','faxPause','offset','type','keys','all','every','removeTeams','ids','error','UserFaxQueue','util','attributes','removeAgents','filter','from'];(function(_0x376cf7,_0x480e55){const _0x2612e7=function(_0x1c7170){while(--_0x1c7170){_0x376cf7['push'](_0x376cf7['shift']());}};_0x2612e7(++_0x480e55);}(a252_0x2612,0xdd));const a252_0x1c71=function(_0x376cf7,_0x480e55){_0x376cf7=_0x376cf7-0x6f;let _0x2612e7=a252_0x2612[_0x376cf7];return _0x2612e7;};const a252_0x4cdabf=a252_0x1c71;'use strict';const util=require(a252_0x4cdabf(0x73)),_=require(a252_0x4cdabf(0x86)),squel=require(a252_0x4cdabf(0xae)),qs=require(a252_0x4cdabf(0xd8)),logger=require('../../config/logger')(a252_0x4cdabf(0x83)),{getSocket}=require(a252_0x4cdabf(0x98)),socket=getSocket(),{db}=require(a252_0x4cdabf(0xa0)),{Op,QueryTypes}=require('sequelize');require(a252_0x4cdabf(0xd3))[a252_0x4cdabf(0xd5)](socket);function respondWithStatusCode(_0x249964,_0x570f3a){return _0x570f3a=_0x570f3a||0xcc,function(_0x4cd0ea){const _0xc005b4=a252_0x1c71;if(_0x4cd0ea)return _0x249964[_0xc005b4(0x8d)](_0x570f3a);return _0x249964[_0xc005b4(0xd2)](_0x570f3a)[_0xc005b4(0xc9)]();};}function respondWithResult(_0x59d910,_0x80bcb0){return _0x80bcb0=_0x80bcb0||0xc8,function(_0x270697){const _0x3fd18b=a252_0x1c71;if(_0x270697)return _0x59d910[_0x3fd18b(0xd2)](_0x80bcb0)[_0x3fd18b(0x9e)](_0x270697);};}function respondWithFilteredResult(_0x2ed49d,_0x2a16a2){return function(_0x2c34a0){const _0x3db39a=a252_0x1c71;if(_0x2c34a0){const _0x7b45d1=_0x2c34a0['count'],_0x55fd35=_0x2a16a2['offset'];let _0x32c0d7=_0x2a16a2['offset']+_0x2a16a2[_0x3db39a(0xcb)],_0x460eb8;return _0x32c0d7>=_0x7b45d1?(_0x32c0d7=_0x7b45d1,_0x460eb8=0xc8):_0x460eb8=0xce,_0x2ed49d[_0x3db39a(0xd2)](_0x460eb8),_0x2ed49d[_0x3db39a(0xa8)](_0x3db39a(0x90),_0x55fd35+'-'+_0x32c0d7+'/'+_0x7b45d1)[_0x3db39a(0x9e)](_0x2c34a0);}return null;};}function saveUpdates(_0x43fd8d){return function(_0x275610){const _0x1c0f62=a252_0x1c71;if(_0x275610)return _0x275610['update'](_0x43fd8d)[_0x1c0f62(0x96)](function(_0x382b31){return _0x382b31;});return null;};}function removeEntity(_0x40438d){return function(_0x14998f){const _0x17f7d0=a252_0x1c71;if(_0x14998f)return _0x14998f[_0x17f7d0(0xbd)]()[_0x17f7d0(0x96)](function(){const _0x1f83b1=_0x17f7d0,_0xb010c2=_0x14998f[_0x1f83b1(0x85)]({'plain':!![]}),_0x20eb63=_0x1f83b1(0xcd);return db['UserProfileResource'][_0x1f83b1(0xbd)]({'where':{'type':_0x20eb63,'resourceId':_0xb010c2['id']}})[_0x1f83b1(0x96)](function(){return _0x14998f;});})[_0x17f7d0(0x96)](function(){const _0x195fad=_0x17f7d0;_0x40438d['status'](0xcc)[_0x195fad(0xc9)]();});};}function handleEntityNotFound(_0x3d5c0f){return function(_0x1961d5){const _0x21c224=a252_0x1c71;return!_0x1961d5&&_0x3d5c0f[_0x21c224(0x8d)](0x194),_0x1961d5;};}function handleError(_0x2f0828,_0x403cd5){return _0x403cd5=_0x403cd5||0x1f4,function(_0x505eef){const _0xe02d8a=a252_0x1c71;logger['error'](_0x505eef[_0xe02d8a(0xc5)]),_0x505eef[_0xe02d8a(0xd9)]&&delete _0x505eef[_0xe02d8a(0xd9)],_0x2f0828[_0xe02d8a(0xd2)](_0x403cd5)[_0xe02d8a(0x79)](_0x505eef);};}exports[a252_0x4cdabf(0x94)]=function(_0x21e458,_0x3ab057){const _0x45af2e=a252_0x4cdabf;let _0x4ac140={};const _0x50de88={},_0x3843fc={'count':0x0,'rows':[]},_0x4e4dc7=_[_0x45af2e(0xb3)](db[_0x45af2e(0xc3)]['rawAttributes'],function(_0x4bdcac){const _0x1b75a2=_0x45af2e;return{'name':_0x4bdcac[_0x1b75a2(0x8c)],'type':_0x4bdcac[_0x1b75a2(0xde)][_0x1b75a2(0xa1)]};});_0x50de88[_0x45af2e(0xbc)]=_[_0x45af2e(0xb3)](_0x4e4dc7,_0x45af2e(0xd9)),_0x50de88['query']=_[_0x45af2e(0xdf)](_0x21e458['query']),_0x50de88[_0x45af2e(0x99)]=_['intersection'](_0x50de88[_0x45af2e(0xbc)],_0x50de88[_0x45af2e(0x88)]),_0x4ac140[_0x45af2e(0x74)]=_[_0x45af2e(0x8e)](_0x50de88[_0x45af2e(0xbc)],qs[_0x45af2e(0xa2)](_0x21e458[_0x45af2e(0x88)][_0x45af2e(0xa2)])),_0x4ac140[_0x45af2e(0x74)]=_0x4ac140[_0x45af2e(0x74)][_0x45af2e(0xa7)]?_0x4ac140[_0x45af2e(0x74)]:_0x50de88[_0x45af2e(0xbc)];typeof _0x21e458['query'][_0x45af2e(0xb2)]===_0x45af2e(0xd0)&&(_0x4ac140['limit']=qs[_0x45af2e(0xcb)](_0x21e458[_0x45af2e(0x88)][_0x45af2e(0xcb)]),_0x4ac140[_0x45af2e(0xdd)]=qs[_0x45af2e(0xdd)](_0x21e458[_0x45af2e(0x88)][_0x45af2e(0xdd)]));_0x4ac140[_0x45af2e(0xcc)]=qs[_0x45af2e(0xa5)](_0x21e458[_0x45af2e(0x88)]['sort']),_0x4ac140['where']=qs['filters'](_[_0x45af2e(0x9a)](_0x21e458[_0x45af2e(0x88)],_0x50de88['filters']),_0x4e4dc7);_0x21e458[_0x45af2e(0x88)][_0x45af2e(0x76)]&&(_0x4ac140['where']=_[_0x45af2e(0x8b)](_0x4ac140['where'],{[Op['or']]:_[_0x45af2e(0xb3)](_0x4e4dc7,function(_0x46abf2){const _0x5e55b9=_0x45af2e;if(_0x46abf2[_0x5e55b9(0xde)]!=='VIRTUAL'){const _0x22a43b={};return _0x22a43b[_0x46abf2[_0x5e55b9(0xd9)]]={[Op['like']]:'%'+_0x21e458[_0x5e55b9(0x88)][_0x5e55b9(0x76)]+'%'},_0x22a43b;}})}));_0x4ac140=_[_0x45af2e(0x8b)]({},_0x4ac140,_0x21e458[_0x45af2e(0xb6)]);const _0x23793a={'where':_0x4ac140[_0x45af2e(0x89)]};return db['FaxQueue']['count'](_0x23793a)[_0x45af2e(0x96)](function(_0x2231ba){const _0x19e042=_0x45af2e;return _0x3843fc[_0x19e042(0xc2)]=_0x2231ba,_0x21e458['query'][_0x19e042(0xaf)]&&(_0x4ac140[_0x19e042(0xd1)]=[{'all':!![]}]),db[_0x19e042(0xc3)][_0x19e042(0x84)](_0x4ac140);})[_0x45af2e(0x96)](function(_0x3d90a1){const _0x521164=_0x45af2e;return _0x3843fc[_0x521164(0x9f)]=_0x3d90a1,_0x3843fc;})[_0x45af2e(0x96)](respondWithFilteredResult(_0x3ab057,_0x4ac140))[_0x45af2e(0xa3)](handleError(_0x3ab057,null));},exports[a252_0x4cdabf(0xc7)]=function(_0x35b60a,_0x2fb6c9){const _0x19d1d3=a252_0x4cdabf;let _0x509bb6={'raw':!![],'where':{'id':_0x35b60a['params']['id']}};const _0x429301={};return _0x429301[_0x19d1d3(0xbc)]=_[_0x19d1d3(0xdf)](db[_0x19d1d3(0xc3)]['rawAttributes']),_0x429301[_0x19d1d3(0x88)]=_[_0x19d1d3(0xdf)](_0x35b60a[_0x19d1d3(0x88)]),_0x429301[_0x19d1d3(0x99)]=_['intersection'](_0x429301[_0x19d1d3(0xbc)],_0x429301[_0x19d1d3(0x88)]),_0x509bb6[_0x19d1d3(0x74)]=_['intersection'](_0x429301['model'],qs[_0x19d1d3(0xa2)](_0x35b60a[_0x19d1d3(0x88)]['fields'])),_0x509bb6[_0x19d1d3(0x74)]=_0x509bb6[_0x19d1d3(0x74)][_0x19d1d3(0xa7)]?_0x509bb6[_0x19d1d3(0x74)]:_0x429301[_0x19d1d3(0xbc)],_0x35b60a[_0x19d1d3(0x88)][_0x19d1d3(0xaf)]&&(_0x509bb6[_0x19d1d3(0xd1)]=[{'all':!![]}]),_0x509bb6=_[_0x19d1d3(0x8b)]({},_0x509bb6,_0x35b60a[_0x19d1d3(0xb6)]),db[_0x19d1d3(0xc3)]['findOne'](_0x509bb6)[_0x19d1d3(0x96)](handleEntityNotFound(_0x2fb6c9,null))[_0x19d1d3(0x96)](respondWithResult(_0x2fb6c9,null))['catch'](handleError(_0x2fb6c9,null));},exports[a252_0x4cdabf(0xb4)]=function(_0x17383b,_0x5d4e8a){const _0x174b00=a252_0x4cdabf;return db[_0x174b00(0xc3)][_0x174b00(0xb4)](_0x17383b['body'],{})[_0x174b00(0x96)](function(_0x51a44e){const _0x40f8c4=_0x174b00,_0x15d07a=_0x17383b[_0x40f8c4(0x8a)]['get']({'plain':!![]});if(!_0x15d07a)throw new Error(_0x40f8c4(0xad));if(_0x15d07a[_0x40f8c4(0x7f)]===_0x40f8c4(0x8a)){const _0x47284a=_0x51a44e[_0x40f8c4(0x85)]({'plain':!![]}),_0x5a5c59='FaxQueues';return db[_0x40f8c4(0xce)][_0x40f8c4(0x93)]({'where':{'name':_0x5a5c59,'userProfileId':_0x15d07a['userProfileId']},'raw':!![]})[_0x40f8c4(0x96)](function(_0x2b5772){const _0x111615=_0x40f8c4;return _0x2b5772&&_0x2b5772[_0x111615(0xcf)]===0x0?db[_0x111615(0x8f)]['create']({'name':_0x47284a['name'],'resourceId':_0x47284a['id'],'type':_0x2b5772['name'],'sectionId':_0x2b5772['id']},{})[_0x111615(0x96)](function(){return _0x51a44e;}):_0x51a44e;})[_0x40f8c4(0xa3)](function(_0x38f7f1){const _0x219564=_0x40f8c4;logger[_0x219564(0x71)](_0x219564(0x91),_0x38f7f1);throw _0x38f7f1;});}return _0x51a44e;})[_0x174b00(0x96)](respondWithResult(_0x5d4e8a,0xc9))['catch'](handleError(_0x5d4e8a,null));},exports[a252_0x4cdabf(0x82)]=function(_0x354fba,_0x322f2b){const _0x18b715=a252_0x4cdabf;return _0x354fba[_0x18b715(0xbb)]['id']&&delete _0x354fba[_0x18b715(0xbb)]['id'],db[_0x18b715(0xc3)]['findOne']({'where':{'id':_0x354fba[_0x18b715(0xd4)]['id']}})[_0x18b715(0x96)](handleEntityNotFound(_0x322f2b,null))[_0x18b715(0x96)](saveUpdates(_0x354fba['body'],null))[_0x18b715(0x96)](respondWithResult(_0x322f2b,null))[_0x18b715(0xa3)](handleError(_0x322f2b,null));},exports[a252_0x4cdabf(0xbd)]=function(_0x31d4aa,_0x11979c){const _0xc49259=a252_0x4cdabf;return db[_0xc49259(0xc3)]['findOne']({'where':{'id':_0x31d4aa['params']['id']}})[_0xc49259(0x96)](handleEntityNotFound(_0x11979c,null))['then'](removeEntity(_0x11979c,null))[_0xc49259(0xa3)](handleError(_0x11979c,null));},exports['describe']=function(_0x3aaf8b,_0xb624f6){const _0x41a55b=a252_0x4cdabf;return db[_0x41a55b(0xc3)][_0x41a55b(0x7c)]()[_0x41a55b(0x96)](respondWithResult(_0xb624f6,null))[_0x41a55b(0xa3)](handleError(_0xb624f6,null));},exports['getMembers']=function(_0x4f6093,_0xff580a){const _0x272cec=a252_0x4cdabf;let _0x430e8a={'raw':!![],'where':{}};const _0x3070c9={};let _0x28fd64;return db[_0x272cec(0xc3)][_0x272cec(0x93)]({'where':{'id':_0x4f6093[_0x272cec(0xd4)]['id']}})[_0x272cec(0x96)](handleEntityNotFound(_0xff580a,null))[_0x272cec(0x96)](function(_0x4b29cb){const _0x128497=_0x272cec;if(_0x4b29cb)return _0x28fd64=_0x4b29cb[_0x128497(0x85)]({'plain':!![]}),_0x3070c9['model']=_[_0x128497(0xdf)](db[_0x128497(0x72)]['rawAttributes']),_0x3070c9[_0x128497(0x88)]=_[_0x128497(0xdf)](_0x4f6093[_0x128497(0x88)]),_0x3070c9[_0x128497(0x99)]=_[_0x128497(0x8e)](_0x3070c9[_0x128497(0xbc)],_0x3070c9[_0x128497(0x88)]),_0x430e8a['attributes']=_[_0x128497(0x8e)](_0x3070c9[_0x128497(0xbc)],qs[_0x128497(0xa2)](_0x4f6093[_0x128497(0x88)][_0x128497(0xa2)])),_0x430e8a[_0x128497(0x74)]=_0x430e8a[_0x128497(0x74)][_0x128497(0xa7)]?_0x430e8a['attributes']:_0x3070c9['model'],typeof _0x4f6093[_0x128497(0x88)]['nolimit']===_0x128497(0xd0)&&(_0x430e8a[_0x128497(0xcb)]=qs[_0x128497(0xcb)](_0x4f6093[_0x128497(0x88)][_0x128497(0xcb)]),_0x430e8a[_0x128497(0xdd)]=qs[_0x128497(0xdd)](_0x4f6093[_0x128497(0x88)][_0x128497(0xdd)])),_0x430e8a['order']=qs[_0x128497(0xa5)](_0x4f6093[_0x128497(0x88)][_0x128497(0xa5)]),_0x430e8a[_0x128497(0x89)]=qs[_0x128497(0x99)](_[_0x128497(0x9a)](_0x4f6093['query'],_0x3070c9[_0x128497(0x99)])),_0x430e8a[_0x128497(0x89)][_0x128497(0xa6)]=_0x4b29cb['id'],_0x4f6093[_0x128497(0x88)][_0x128497(0x76)]&&(_0x430e8a['where']=_[_0x128497(0x8b)](_0x430e8a['where'],{[Op['or']]:_[_0x128497(0xb3)](_0x430e8a[_0x128497(0x74)],function(_0x344385){const _0x32918a=_0x128497,_0x1d9f0b={};return _0x1d9f0b[_0x344385]={[Op[_0x32918a(0xc1)]]:'%'+_0x4f6093[_0x32918a(0x88)][_0x32918a(0x76)]+'%'},_0x1d9f0b;})})),_0x430e8a=_[_0x128497(0x8b)]({},_0x430e8a,_0x4f6093[_0x128497(0xb6)]),db[_0x128497(0x72)][_0x128497(0x84)](_0x430e8a);})['then'](function(_0x31df46){const _0x582555=_0x272cec;if(_0x31df46)return db[_0x582555(0xd7)][_0x582555(0xac)]({'where':{'id':_['map'](_0x31df46,_0x582555(0x87)),'role':_0x582555(0x7b)},'attributes':['id','name',_0x582555(0xdc),_0x582555(0xc0),_0x582555(0x9c)]});})[_0x272cec(0x96)](function(_0x4377f9){const _0xdd7c17=_0x272cec;return _0x4377f9?{'count':_0x4377f9[_0xdd7c17(0xc2)],'rows':_['map'](_0x4377f9[_0xdd7c17(0x9f)],function(_0x28054c){const _0x3ba1c4=_0xdd7c17;return{'membername':_0x28054c[_0x3ba1c4(0xd9)],'UserId':_0x28054c['id'],'queue_name':_0x28fd64[_0x3ba1c4(0xd9)],'FaxQueueId':_0x28fd64['id'],'interface':util[_0x3ba1c4(0xb9)](_0x3ba1c4(0x7e),_0x3ba1c4(0x81),_0x28054c['name']),'penalty':0x0,'paused':_0x28054c[_0x3ba1c4(0xdc)],'createdAt':_0x28054c[_0x3ba1c4(0x9c)],'updatedAt':_0x28054c[_0x3ba1c4(0xc0)]};})}:{'count':0x0,'rows':[]};})[_0x272cec(0x96)](respondWithFilteredResult(_0xff580a,_0x430e8a))[_0x272cec(0xa3)](handleError(_0xff580a,null));},exports[a252_0x4cdabf(0xbf)]=function(_0xac41d7,_0x17c32e){const _0x513dc5=a252_0x4cdabf;let _0x179ac4={};const _0x39df0e={};let _0x521f3c,_0x38bd72;return db[_0x513dc5(0xc3)]['findOne']({'where':{'id':_0xac41d7[_0x513dc5(0xd4)]['id']}})[_0x513dc5(0x96)](handleEntityNotFound(_0x17c32e,null))[_0x513dc5(0x96)](function(_0x353d75){const _0x56751d=_0x513dc5;if(_0x353d75)return _0x521f3c=_0x353d75,_0x39df0e[_0x56751d(0xbc)]=_[_0x56751d(0xdf)](db[_0x56751d(0xc4)][_0x56751d(0x7d)]),_0x39df0e[_0x56751d(0x88)]=_['keys'](_0xac41d7['query']),_0x39df0e['filters']=_[_0x56751d(0x8e)](_0x39df0e['model'],_0x39df0e[_0x56751d(0x88)]),_0x179ac4['attributes']=_[_0x56751d(0x8e)](_0x39df0e[_0x56751d(0xbc)],qs[_0x56751d(0xa2)](_0xac41d7[_0x56751d(0x88)][_0x56751d(0xa2)])),_0x179ac4[_0x56751d(0x74)]=_0x179ac4['attributes'][_0x56751d(0xa7)]?_0x179ac4[_0x56751d(0x74)]:_0x39df0e[_0x56751d(0xbc)],_0x179ac4['order']=qs[_0x56751d(0xa5)](_0xac41d7['query'][_0x56751d(0xa5)]),_0x179ac4[_0x56751d(0x89)]=qs[_0x56751d(0x99)](_[_0x56751d(0x9a)](_0xac41d7[_0x56751d(0x88)],_0x39df0e[_0x56751d(0x99)])),_0xac41d7['query'][_0x56751d(0x76)]&&(_0x179ac4[_0x56751d(0x89)]=_[_0x56751d(0x8b)](_0x179ac4[_0x56751d(0x89)],{[Op['or']]:_['map'](_0x179ac4[_0x56751d(0x74)],function(_0x4ec311){const _0x49789d=_0x56751d,_0x53f116={};return _0x53f116[_0x4ec311]={[Op['like']]:'%'+_0xac41d7[_0x49789d(0x88)][_0x49789d(0x76)]+'%'},_0x53f116;})})),_0x179ac4=_[_0x56751d(0x8b)]({},_0x179ac4,_0xac41d7[_0x56751d(0xb6)]),_0x521f3c['getTeams'](_0x179ac4);})[_0x513dc5(0x96)](function(_0x190448){const _0x460253=_0x513dc5;if(_0x190448)return _0x38bd72=_0x190448[_0x460253(0xa7)],typeof _0xac41d7[_0x460253(0x88)][_0x460253(0xb2)]==='undefined'&&(_0x179ac4[_0x460253(0xcb)]=qs[_0x460253(0xcb)](_0xac41d7[_0x460253(0x88)][_0x460253(0xcb)]),_0x179ac4[_0x460253(0xdd)]=qs[_0x460253(0xdd)](_0xac41d7[_0x460253(0x88)]['offset'])),_0x521f3c[_0x460253(0xbf)](_0x179ac4);})[_0x513dc5(0x96)](function(_0x6db0f7){if(_0x6db0f7)return _0x6db0f7?{'count':_0x38bd72,'rows':_0x6db0f7}:null;})[_0x513dc5(0x96)](respondWithResult(_0x17c32e,null))['catch'](handleError(_0x17c32e,null));},exports[a252_0x4cdabf(0xaa)]=function(_0x3e9fdc,_0x1042f8){const _0x288b98=a252_0x4cdabf,_0x11e4ac=_0x3e9fdc[_0x288b98(0xbb)][_0x288b98(0x70)];return db[_0x288b98(0xc4)][_0x288b98(0x84)]({'where':{'id':_0x11e4ac},'attributes':['id'],'include':[{'model':db[_0x288b98(0xd7)],'as':_0x288b98(0xc6),'attributes':['id','name',_0x288b98(0x97),'voicePause',_0x288b98(0x92)],'raw':!![]}]})[_0x288b98(0x96)](function(_0x356732){const _0x4af4ff=_0x288b98;if(_0x356732){const _0x9873a7=_[_0x4af4ff(0xbe)](_0x356732,function(_0x2bbf33){const _0x2087bc=_0x4af4ff,_0x498cba=_0x2bbf33[_0x2087bc(0x85)]({'plain':!![]});return _0x498cba[_0x2087bc(0xc6)];});return db[_0x4af4ff(0xc3)][_0x4af4ff(0x93)]({'where':{'id':_0x3e9fdc[_0x4af4ff(0xd4)]['id']}})['then'](function(_0x334e9e){const _0x39701f=_0x4af4ff;return db[_0x39701f(0xba)][_0x39701f(0xb7)](function(_0x37665c){const _0x256e64=_0x39701f;return _0x334e9e[_0x256e64(0xaa)](_0x11e4ac,{'transaction':_0x37665c})['then'](function(){const _0x1a2712=_0x256e64;return Promise[_0x1a2712(0xe0)](_0x9873a7[_0x1a2712(0xb3)](_0x87683d=>{const _0xcdc3a8=_0x1a2712;return db[_0xcdc3a8(0x72)]['findOrCreate']({'where':{'UserId':_0x87683d['id'],'FaxQueueId':_0x3e9fdc[_0xcdc3a8(0xd4)]['id']},'transaction':_0x37665c});}));})['then'](function(){_0x9873a7['forEach'](function(_0x356845){const _0x35ecf4=a252_0x1c71;socket['emit'](_0x35ecf4(0xa9),{'UserId':_0x356845['id'],'FaxQueueId':_0x334e9e['id']});});});});});}})['then'](respondWithStatusCode(_0x1042f8,null))['catch'](handleError(_0x1042f8,null));},exports[a252_0x4cdabf(0x6f)]=function(_0x12249e,_0x64b9be){const _0x5a7f3a=a252_0x4cdabf;return db['Team']['findAll']({'where':{'id':_0x12249e[_0x5a7f3a(0x88)][_0x5a7f3a(0x70)]},'attributes':['id'],'include':[{'model':db[_0x5a7f3a(0xd7)],'as':_0x5a7f3a(0xc6),'attributes':['id'],'raw':!![]}]})[_0x5a7f3a(0x96)](handleEntityNotFound(_0x64b9be,null))[_0x5a7f3a(0x96)](function(_0x88206c){const _0x59acd4=_0x5a7f3a,_0x2dbf1c=_['map'](_0x88206c,'id');let _0x323e73=[];const _0x386e43=[],_0xcde3e1=squel[_0x59acd4(0xab)]();_0xcde3e1[_0x59acd4(0x80)](_0x59acd4(0xb0))[_0x59acd4(0x77)]('team_has_fax_queues','tq')['join'](_0x59acd4(0xdb),'ut',_0x59acd4(0x78))['where']('FaxQueueId\x20=\x20?',_0x12249e['params']['id']);for(let _0x3f01b2=0x0;_0x3f01b2<_0x88206c['length'];_0x3f01b2+=0x1){const _0x5b7eb5=_0x88206c[_0x3f01b2];for(let _0x5ed376=0x0;_0x5ed376<_0x5b7eb5['Agents'][_0x59acd4(0xa7)];_0x5ed376+=0x1){const _0x154d5c=_0x5b7eb5[_0x59acd4(0xc6)][_0x5ed376],_0x3014c4=_0xcde3e1[_0x59acd4(0xa4)]();_0x3014c4['where'](_0x59acd4(0x9d),_0x154d5c['id']),_0x386e43[_0x59acd4(0xb5)](db['sequelize'][_0x59acd4(0x88)](_0x3014c4[_0x59acd4(0xca)](),{'type':QueryTypes['SELECT']})['then'](function(_0x130806){const _0x5f19ff=_0x59acd4;if(_0x130806['length']===0x1)return _0x154d5c['id'];else{const _0x5a030b=_[_0x5f19ff(0xe1)](_[_0x5f19ff(0xb3)](_0x130806,'TeamId'),function(_0x237f27){const _0x2dea7f=_0x5f19ff;return _[_0x2dea7f(0x95)](_0x2dbf1c,_0x237f27);});if(_0x5a030b)return _0x154d5c['id'];}}));}}return Promise[_0x59acd4(0xe0)](_0x386e43)[_0x59acd4(0x96)](function(_0x139b2b){const _0x42a8ca=_0x59acd4;return _0x323e73=_(_0x323e73)[_0x42a8ca(0x7a)](_0x139b2b)['compact']()['value'](),db[_0x42a8ca(0xc3)][_0x42a8ca(0x93)]({'where':{'id':_0x12249e[_0x42a8ca(0xd4)]['id']}})[_0x42a8ca(0x96)](function(_0x3b81f8){const _0x49fd91=_0x42a8ca;return db['sequelize'][_0x49fd91(0xb7)](function(_0x37f942){const _0x32a0c9=_0x49fd91;return _0x3b81f8['removeTeams'](_0x12249e[_0x32a0c9(0x88)]['ids'],{'transaction':_0x37f942})[_0x32a0c9(0x96)](function(){const _0x445ff8=_0x32a0c9;if(!_['isEmpty'](_0x323e73))return _0x3b81f8[_0x445ff8(0x75)](_0x323e73,{'transaction':_0x37f942});})[_0x32a0c9(0x96)](function(){_0x323e73['forEach'](function(_0x4f4976){const _0x342f9a=a252_0x1c71;socket['emit'](_0x342f9a(0xb1),{'UserId':_0x4f4976,'FaxQueueId':_0x3b81f8['id']});});});});});});})['then'](respondWithStatusCode(_0x64b9be,null))[_0x5a7f3a(0xa3)](handleError(_0x64b9be,null));},exports[a252_0x4cdabf(0x9b)]=function(_0x2ae463,_0x4d3954){const _0x93639a=a252_0x4cdabf;return db[_0x93639a(0xc3)][_0x93639a(0x93)]({'where':{'id':_0x2ae463[_0x93639a(0xd4)]['id']}})['then'](function(_0xc6bd3f){const _0x220872=_0x93639a;if(_0xc6bd3f)return _0xc6bd3f[_0x220872(0x9b)](_0x2ae463[_0x220872(0xbb)][_0x220872(0x70)],{'through':_[_0x220872(0xd6)](_0x2ae463[_0x220872(0xbb)],[_0x220872(0x70),'id'])})[_0x220872(0x96)](function(_0x2eef39){const _0x4509ee=_0x220872;for(let _0x5c64ff=0x0;_0x5c64ff<_0x2ae463['body'][_0x4509ee(0x70)][_0x4509ee(0xa7)];_0x5c64ff+=0x1){socket[_0x4509ee(0xda)](_0x4509ee(0xa9),{'UserId':_0x2ae463[_0x4509ee(0xbb)][_0x4509ee(0x70)][_0x5c64ff],'FaxQueueId':_0x2ae463[_0x4509ee(0xd4)]['id']});}return _0x2eef39;});})[_0x93639a(0x96)](respondWithResult(_0x4d3954,null))[_0x93639a(0xa3)](handleError(_0x4d3954,null));},exports[a252_0x4cdabf(0x75)]=function(_0x5ce6a0,_0x208ac9){const _0x5af68b=a252_0x4cdabf;return db['FaxQueue'][_0x5af68b(0x93)]({'where':{'id':_0x5ce6a0[_0x5af68b(0xd4)]['id']}})[_0x5af68b(0x96)](handleEntityNotFound(_0x208ac9,null))[_0x5af68b(0x96)](function(_0x111324){const _0x4af415=_0x5af68b;if(_0x111324)return _0x111324['removeAgents'](_0x5ce6a0[_0x4af415(0x88)][_0x4af415(0x70)])[_0x4af415(0x96)](function(){const _0x54a9e3=_0x4af415;if(_[_0x54a9e3(0xb8)](_0x5ce6a0['query'][_0x54a9e3(0x70)]))for(let _0x2166ad=0x0;_0x2166ad<_0x5ce6a0[_0x54a9e3(0x88)][_0x54a9e3(0x70)][_0x54a9e3(0xa7)];_0x2166ad+=0x1){socket[_0x54a9e3(0xda)](_0x54a9e3(0xb1),{'UserId':Number(_0x5ce6a0[_0x54a9e3(0x88)][_0x54a9e3(0x70)][_0x2166ad]),'FaxQueueId':Number(_0x5ce6a0[_0x54a9e3(0xd4)]['id'])});}else socket['emit']('userFaxQueue:remove',{'UserId':Number(_0x5ce6a0[_0x54a9e3(0x88)][_0x54a9e3(0x70)]),'FaxQueueId':Number(_0x5ce6a0[_0x54a9e3(0xd4)]['id'])});});})['then'](respondWithStatusCode(_0x208ac9,null))[_0x5af68b(0xa3)](handleError(_0x208ac9,null));},exports['getAgents']=function(_0x8fc58b,_0x179eba){const _0x5b0fba=a252_0x4cdabf;let _0xd6a2e={};const _0x38065c={};let _0x11dd80,_0x566938;return db[_0x5b0fba(0xc3)][_0x5b0fba(0x93)]({'where':{'id':_0x8fc58b['params']['id']}})[_0x5b0fba(0x96)](handleEntityNotFound(_0x179eba,null))[_0x5b0fba(0x96)](function(_0x24f244){const _0x30c79a=_0x5b0fba;if(_0x24f244)return _0x11dd80=_0x24f244,_0x38065c[_0x30c79a(0xbc)]=_[_0x30c79a(0xdf)](db[_0x30c79a(0xd7)]['rawAttributes']),_0x38065c['query']=_[_0x30c79a(0xdf)](_0x8fc58b[_0x30c79a(0x88)]),_0x38065c['filters']=_['intersection'](_0x38065c['model'],_0x38065c['query']),_0xd6a2e[_0x30c79a(0x74)]=_['intersection'](_0x38065c[_0x30c79a(0xbc)],qs[_0x30c79a(0xa2)](_0x8fc58b['query'][_0x30c79a(0xa2)])),_0xd6a2e[_0x30c79a(0x74)]=_0xd6a2e['attributes']['length']?_0xd6a2e[_0x30c79a(0x74)]:_0x38065c[_0x30c79a(0xbc)],_0xd6a2e['order']=qs['sort'](_0x8fc58b['query'][_0x30c79a(0xa5)]),_0xd6a2e[_0x30c79a(0x89)]=qs[_0x30c79a(0x99)](_[_0x30c79a(0x9a)](_0x8fc58b[_0x30c79a(0x88)],_0x38065c['filters'])),_0x8fc58b[_0x30c79a(0x88)][_0x30c79a(0x76)]&&(_0xd6a2e['where']=_[_0x30c79a(0x8b)](_0xd6a2e[_0x30c79a(0x89)],{[Op['or']]:_[_0x30c79a(0xb3)](_0xd6a2e[_0x30c79a(0x74)],function(_0x447c27){const _0x26c7eb=_0x30c79a,_0x3b7dd7={};return _0x3b7dd7[_0x447c27]={[Op[_0x26c7eb(0xc1)]]:'%'+_0x8fc58b['query'][_0x26c7eb(0x76)]+'%'},_0x3b7dd7;})})),_0xd6a2e=_[_0x30c79a(0x8b)]({},_0xd6a2e,_0x8fc58b[_0x30c79a(0xb6)]),_0x11dd80[_0x30c79a(0xc8)](_0xd6a2e);})['then'](function(_0xdf51ea){const _0x11970f=_0x5b0fba;if(_0xdf51ea)return _0x566938=_0xdf51ea['length'],typeof _0x8fc58b[_0x11970f(0x88)][_0x11970f(0xb2)]==='undefined'&&(_0xd6a2e['limit']=qs[_0x11970f(0xcb)](_0x8fc58b['query']['limit']),_0xd6a2e[_0x11970f(0xdd)]=qs['offset'](_0x8fc58b['query'][_0x11970f(0xdd)])),_0x11dd80[_0x11970f(0xc8)](_0xd6a2e);})[_0x5b0fba(0x96)](function(_0x26fadc){if(_0x26fadc)return _0x26fadc?{'count':_0x566938,'rows':_0x26fadc}:null;})[_0x5b0fba(0x96)](respondWithResult(_0x179eba,null))[_0x5b0fba(0xa3)](handleError(_0x179eba,null));}; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.events.js b/server/api/faxQueue/faxQueue.events.js index ea949b8..7cd56c6 100644 --- a/server/api/faxQueue/faxQueue.events.js +++ b/server/api/faxQueue/faxQueue.events.js @@ -1 +1 @@ -const a253_0x3145=['remove','undefined','../../mysqldb','addHook','exports','FaxQueue','save','setMaxListeners','events','emit'];(function(_0x32213a,_0x2192b3){const _0x314550=function(_0x49b1a5){while(--_0x49b1a5){_0x32213a['push'](_0x32213a['shift']());}};_0x314550(++_0x2192b3);}(a253_0x3145,0xe9));const a253_0x49b1=function(_0x32213a,_0x2192b3){_0x32213a=_0x32213a-0x1d0;let _0x314550=a253_0x3145[_0x32213a];return _0x314550;};const a253_0x5136e0=a253_0x49b1;'use strict';const EventEmitter=require(a253_0x5136e0(0x1d5)),FaxQueue=require(a253_0x5136e0(0x1d9))['db'][a253_0x5136e0(0x1d2)],FaxQueueEvents=new EventEmitter();FaxQueueEvents[a253_0x5136e0(0x1d4)](0x0);const events={'afterCreate':a253_0x5136e0(0x1d3),'afterUpdate':'update','afterDestroy':a253_0x5136e0(0x1d7)};function emitEvent(_0x2145b8){return function(_0x3abec3){const _0xe1acba=a253_0x49b1;FaxQueueEvents[_0xe1acba(0x1d6)](_0x2145b8+':'+_0x3abec3['id'],_0x3abec3),FaxQueueEvents[_0xe1acba(0x1d6)](_0x2145b8,_0x3abec3);};}for(const e in events){if(typeof events[e]!==a253_0x5136e0(0x1d8)){const event=events[e];FaxQueue[a253_0x5136e0(0x1d0)](e,emitEvent(event));}}module[a253_0x5136e0(0x1d1)]=FaxQueueEvents; \ No newline at end of file +const a253_0x5f15=['setMaxListeners','update','FaxQueue','save','undefined','../../mysqldb','emit','remove','exports','addHook'];(function(_0x4cfa55,_0x26e6c3){const _0x5f1589=function(_0x30bb59){while(--_0x30bb59){_0x4cfa55['push'](_0x4cfa55['shift']());}};_0x5f1589(++_0x26e6c3);}(a253_0x5f15,0xf8));const a253_0x30bb=function(_0x4cfa55,_0x26e6c3){_0x4cfa55=_0x4cfa55-0x70;let _0x5f1589=a253_0x5f15[_0x4cfa55];return _0x5f1589;};const a253_0x237440=a253_0x30bb;'use strict';const EventEmitter=require('events'),FaxQueue=require(a253_0x237440(0x77))['db'][a253_0x237440(0x74)],FaxQueueEvents=new EventEmitter();FaxQueueEvents[a253_0x237440(0x72)](0x0);const events={'afterCreate':a253_0x237440(0x75),'afterUpdate':a253_0x237440(0x73),'afterDestroy':a253_0x237440(0x79)};function emitEvent(_0x1a886f){return function(_0x4aa85c){const _0x68f36=a253_0x30bb;FaxQueueEvents[_0x68f36(0x78)](_0x1a886f+':'+_0x4aa85c['id'],_0x4aa85c),FaxQueueEvents[_0x68f36(0x78)](_0x1a886f,_0x4aa85c);};}for(const e in events){if(typeof events[e]!==a253_0x237440(0x76)){const event=events[e];FaxQueue[a253_0x237440(0x71)](e,emitEvent(event));}}module[a253_0x237440(0x70)]=FaxQueueEvents; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.model.js b/server/api/faxQueue/faxQueue.model.js index eff68a8..6cb9440 100644 --- a/server/api/faxQueue/faxQueue.model.js +++ b/server/api/faxQueue/faxQueue.model.js @@ -1 +1 @@ -const a254_0xe9f8=['sequelize','exports','FaxQueue','./faxQueue.options','./faxQueue.attributes','init'];(function(_0x3657d5,_0x346c8b){const _0xe9f80a=function(_0x146044){while(--_0x146044){_0x3657d5['push'](_0x3657d5['shift']());}};_0xe9f80a(++_0x346c8b);}(a254_0xe9f8,0x1b7));const a254_0x1460=function(_0x3657d5,_0x346c8b){_0x3657d5=_0x3657d5-0x1b1;let _0xe9f80a=a254_0xe9f8[_0x3657d5];return _0xe9f80a;};const a254_0xf18723=a254_0x1460;'use strict';const {Model}=require(a254_0xf18723(0x1b6)),{attributes}=require(a254_0xf18723(0x1b4)),{options}=require(a254_0xf18723(0x1b3));class FaxQueue extends Model{}function init(_0x28119a,_0x1cbadc){const _0xf055ea=a254_0xf18723,_0x6732d4=options(_0x28119a),_0x59a4d5=typeof _0x1cbadc==='function'?_0x1cbadc(_0x6732d4):_0x6732d4;return FaxQueue[_0xf055ea(0x1b5)](attributes,_0x59a4d5),FaxQueue;}module['exports'][a254_0xf18723(0x1b2)]=FaxQueue,module[a254_0xf18723(0x1b1)]['init']=init; \ No newline at end of file +const a254_0xcf0f=['init','exports','./faxQueue.attributes','function','./faxQueue.options','FaxQueue'];(function(_0x13cf61,_0xff1d1e){const _0xcf0f4=function(_0x11d36f){while(--_0x11d36f){_0x13cf61['push'](_0x13cf61['shift']());}};_0xcf0f4(++_0xff1d1e);}(a254_0xcf0f,0x1a8));const a254_0x11d3=function(_0x13cf61,_0xff1d1e){_0x13cf61=_0x13cf61-0x18e;let _0xcf0f4=a254_0xcf0f[_0x13cf61];return _0xcf0f4;};const a254_0x4e8424=a254_0x11d3;'use strict';const {Model}=require('sequelize'),{attributes}=require(a254_0x4e8424(0x192)),{options}=require(a254_0x4e8424(0x18e));class FaxQueue extends Model{}function init(_0xe72f10,_0x4eb940){const _0x158b21=a254_0x4e8424,_0x46653d=options(_0xe72f10),_0x350bbd=typeof _0x4eb940===_0x158b21(0x193)?_0x4eb940(_0x46653d):_0x46653d;return FaxQueue[_0x158b21(0x190)](attributes,_0x350bbd),FaxQueue;}module[a254_0x4e8424(0x191)][a254_0x4e8424(0x18f)]=FaxQueue,module['exports'][a254_0x4e8424(0x190)]=init; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.options.js b/server/api/faxQueue/faxQueue.options.js index cde9917..90c33e1 100644 --- a/server/api/faxQueue/faxQueue.options.js +++ b/server/api/faxQueue/faxQueue.options.js @@ -1 +1 @@ -var a255_0xcd04=['exports','fax_queues','options'];(function(_0x561fe5,_0x4ad004){var _0xcd0478=function(_0x502f83){while(--_0x502f83){_0x561fe5['push'](_0x561fe5['shift']());}};_0xcd0478(++_0x4ad004);}(a255_0xcd04,0x185));var a255_0x502f=function(_0x561fe5,_0x4ad004){_0x561fe5=_0x561fe5-0x1d9;var _0xcd0478=a255_0xcd04[_0x561fe5];return _0xcd0478;};var a255_0x49430e=a255_0x502f;function options(_0x32cfeb){var _0x25da60=a255_0x502f;return{'sequelize':_0x32cfeb,'tableName':_0x25da60(0x1db),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a255_0x49430e(0x1da)][a255_0x49430e(0x1d9)]=options; \ No newline at end of file +var a255_0x24c1=['fax_queues','exports','options'];(function(_0x50ec94,_0x5beccb){var _0x24c1a9=function(_0x339b11){while(--_0x339b11){_0x50ec94['push'](_0x50ec94['shift']());}};_0x24c1a9(++_0x5beccb);}(a255_0x24c1,0x89));var a255_0x339b=function(_0x50ec94,_0x5beccb){_0x50ec94=_0x50ec94-0x1d6;var _0x24c1a9=a255_0x24c1[_0x50ec94];return _0x24c1a9;};var a255_0x5e0483=a255_0x339b;function options(_0x2d4a43){var _0x55f200=a255_0x339b;return{'sequelize':_0x2d4a43,'tableName':_0x55f200(0x1d7),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a255_0x5e0483(0x1d8)][a255_0x5e0483(0x1d6)]=options; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.rpc.js b/server/api/faxQueue/faxQueue.rpc.js index 3052cec..77d5aed 100644 --- a/server/api/faxQueue/faxQueue.rpc.js +++ b/server/api/faxQueue/faxQueue.rpc.js @@ -1 +1 @@ -const a256_0x4ddc=['GetFaxQueue','map','ShowFaxQueue','attributes','raw','then','../../rediscache','register','catch','limit','FaxQueue','error','info','rpc','findAll','../../config/logger','model','options','lodash','include','message','debug','stringify','./faxQueue.socket'];(function(_0x14d9ef,_0x3c5f89){const _0x4ddc61=function(_0xf530a2){while(--_0xf530a2){_0x14d9ef['push'](_0x14d9ef['shift']());}};_0x4ddc61(++_0x3c5f89);}(a256_0x4ddc,0x146));const a256_0xf530=function(_0x14d9ef,_0x3c5f89){_0x14d9ef=_0x14d9ef-0x6e;let _0x4ddc61=a256_0x4ddc[_0x14d9ef];return _0x4ddc61;};const a256_0x42cb7e=a256_0xf530;'use strict';const _=require(a256_0x42cb7e(0x72)),db=require('../../mysqldb')['db'],logger=require(a256_0x42cb7e(0x6f))(a256_0x42cb7e(0x85)),{getSocket}=require(a256_0x42cb7e(0x7e)),socket=getSocket();require(a256_0x42cb7e(0x77))[a256_0x42cb7e(0x7f)](socket),exports[a256_0x42cb7e(0x78)]=function(_0x11121a){const _0x2b51c0=this;return new Promise(function(_0xf97969,_0x2c3151){const _0x2b0bd2=a256_0xf530;return db['FaxQueue'][_0x2b0bd2(0x6e)]({'raw':_0x11121a[_0x2b0bd2(0x71)]?_0x11121a[_0x2b0bd2(0x71)][_0x2b0bd2(0x7c)]===undefined?!![]:![]:!![],'where':_0x11121a[_0x2b0bd2(0x71)]?_0x11121a[_0x2b0bd2(0x71)]['where']||null:null,'attributes':_0x11121a[_0x2b0bd2(0x71)]?_0x11121a[_0x2b0bd2(0x71)][_0x2b0bd2(0x7b)]||null:null,'limit':_0x11121a['options']?_0x11121a[_0x2b0bd2(0x71)][_0x2b0bd2(0x81)]||null:null,'include':_0x11121a[_0x2b0bd2(0x71)]?_0x11121a[_0x2b0bd2(0x71)][_0x2b0bd2(0x73)]?_[_0x2b0bd2(0x79)](_0x11121a[_0x2b0bd2(0x71)][_0x2b0bd2(0x73)],function(_0x2273a1){const _0x4e337c=_0x2b0bd2;return{'model':db[_0x2273a1['model']],'as':_0x2273a1['as'],'attributes':_0x2273a1[_0x4e337c(0x7b)],'include':_0x2273a1[_0x4e337c(0x73)]?_[_0x4e337c(0x79)](_0x2273a1[_0x4e337c(0x73)],function(_0x18bd03){const _0x4aa7f4=_0x4e337c;return{'model':db[_0x18bd03[_0x4aa7f4(0x70)]],'as':_0x18bd03['as'],'attributes':_0x18bd03[_0x4aa7f4(0x7b)],'include':_0x18bd03[_0x4aa7f4(0x73)]?_[_0x4aa7f4(0x79)](_0x18bd03[_0x4aa7f4(0x73)],function(_0xb3ff2f){const _0x48ec1d=_0x4aa7f4;return{'model':db[_0xb3ff2f[_0x48ec1d(0x70)]],'as':_0xb3ff2f['as'],'attributes':_0xb3ff2f[_0x48ec1d(0x7b)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x496782){const _0x1a2bef=_0x2b0bd2;logger[_0x1a2bef(0x84)](_0x1a2bef(0x78),_0x11121a),logger[_0x1a2bef(0x75)](_0x1a2bef(0x78),_0x11121a,JSON[_0x1a2bef(0x76)](_0x496782)),_0xf97969(_0x496782);})[_0x2b0bd2(0x80)](function(_0x3b158a){const _0x58df13=_0x2b0bd2;logger['error'](_0x58df13(0x78),_0x3b158a[_0x58df13(0x74)],_0x11121a),_0x2c3151(_0x2b51c0['error'](0x1f4,_0x3b158a[_0x58df13(0x74)]));});});},exports[a256_0x42cb7e(0x7a)]=function(_0x21786f){const _0x381ac8=this;return new Promise(function(_0x1b6633,_0x409fe4){const _0x44e684=a256_0xf530;return db[_0x44e684(0x82)]['findOne']({'raw':_0x21786f[_0x44e684(0x71)]?_0x21786f[_0x44e684(0x71)][_0x44e684(0x7c)]===undefined?!![]:![]:!![],'where':_0x21786f[_0x44e684(0x71)]?_0x21786f[_0x44e684(0x71)]['where']||null:null,'attributes':_0x21786f['options']?_0x21786f[_0x44e684(0x71)][_0x44e684(0x7b)]||null:null,'include':_0x21786f[_0x44e684(0x71)]?_0x21786f['options'][_0x44e684(0x73)]?_[_0x44e684(0x79)](_0x21786f[_0x44e684(0x71)]['include'],function(_0x5c7dba){const _0x16443a=_0x44e684;return{'model':db[_0x5c7dba[_0x16443a(0x70)]],'as':_0x5c7dba['as'],'attributes':_0x5c7dba[_0x16443a(0x7b)],'include':_0x5c7dba[_0x16443a(0x73)]?_[_0x16443a(0x79)](_0x5c7dba[_0x16443a(0x73)],function(_0x50ea26){const _0x14b40f=_0x16443a;return{'model':db[_0x50ea26[_0x14b40f(0x70)]],'as':_0x50ea26['as'],'attributes':_0x50ea26['attributes'],'include':_0x50ea26['include']?_[_0x14b40f(0x79)](_0x50ea26['include'],function(_0x35bb9e){const _0x431dfb=_0x14b40f;return{'model':db[_0x35bb9e[_0x431dfb(0x70)]],'as':_0x35bb9e['as'],'attributes':_0x35bb9e[_0x431dfb(0x7b)]};}):[]};}):[]};}):[]:[]})[_0x44e684(0x7d)](function(_0x2b6180){const _0x22ded0=_0x44e684;logger[_0x22ded0(0x84)](_0x22ded0(0x7a),_0x21786f),logger[_0x22ded0(0x75)](_0x22ded0(0x7a),_0x21786f,JSON['stringify'](_0x2b6180)),_0x1b6633(_0x2b6180);})[_0x44e684(0x80)](function(_0x33e854){const _0x12e2eb=_0x44e684;logger[_0x12e2eb(0x83)](_0x12e2eb(0x7a),_0x33e854[_0x12e2eb(0x74)],_0x21786f),_0x409fe4(_0x381ac8['error'](0x1f4,_0x33e854['message']));});});}; \ No newline at end of file +const a256_0x2269=['catch','findAll','stringify','where','ShowFaxQueue','findOne','raw','map','info','attributes','register','message','error','model','GetFaxQueue','then','options','../../config/logger','rpc','include','debug','../../mysqldb'];(function(_0x1664c1,_0x1f6766){const _0x22693c=function(_0x510b9d){while(--_0x510b9d){_0x1664c1['push'](_0x1664c1['shift']());}};_0x22693c(++_0x1f6766);}(a256_0x2269,0x18d));const a256_0x510b=function(_0x1664c1,_0x1f6766){_0x1664c1=_0x1664c1-0x10b;let _0x22693c=a256_0x2269[_0x1664c1];return _0x22693c;};const a256_0x224dc7=a256_0x510b;'use strict';const _=require('lodash'),db=require(a256_0x224dc7(0x11f))['db'],logger=require(a256_0x224dc7(0x11b))(a256_0x224dc7(0x11c)),{getSocket}=require('../../rediscache'),socket=getSocket();require('./faxQueue.socket')[a256_0x224dc7(0x114)](socket),exports['GetFaxQueue']=function(_0x51717b){const _0xdf4c2e=this;return new Promise(function(_0x891868,_0x5a6f69){const _0x4c1064=a256_0x510b;return db['FaxQueue'][_0x4c1064(0x10b)]({'raw':_0x51717b[_0x4c1064(0x11a)]?_0x51717b[_0x4c1064(0x11a)][_0x4c1064(0x110)]===undefined?!![]:![]:!![],'where':_0x51717b['options']?_0x51717b[_0x4c1064(0x11a)]['where']||null:null,'attributes':_0x51717b[_0x4c1064(0x11a)]?_0x51717b[_0x4c1064(0x11a)][_0x4c1064(0x113)]||null:null,'limit':_0x51717b[_0x4c1064(0x11a)]?_0x51717b[_0x4c1064(0x11a)]['limit']||null:null,'include':_0x51717b['options']?_0x51717b[_0x4c1064(0x11a)][_0x4c1064(0x11d)]?_[_0x4c1064(0x111)](_0x51717b[_0x4c1064(0x11a)][_0x4c1064(0x11d)],function(_0x4adc37){const _0x44475a=_0x4c1064;return{'model':db[_0x4adc37[_0x44475a(0x117)]],'as':_0x4adc37['as'],'attributes':_0x4adc37['attributes'],'include':_0x4adc37[_0x44475a(0x11d)]?_[_0x44475a(0x111)](_0x4adc37[_0x44475a(0x11d)],function(_0xd1dfa){const _0x5ee605=_0x44475a;return{'model':db[_0xd1dfa['model']],'as':_0xd1dfa['as'],'attributes':_0xd1dfa['attributes'],'include':_0xd1dfa['include']?_[_0x5ee605(0x111)](_0xd1dfa[_0x5ee605(0x11d)],function(_0x334383){const _0x587aac=_0x5ee605;return{'model':db[_0x334383[_0x587aac(0x117)]],'as':_0x334383['as'],'attributes':_0x334383[_0x587aac(0x113)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x3fa52f){const _0x1eb88b=_0x4c1064;logger[_0x1eb88b(0x112)]('GetFaxQueue',_0x51717b),logger[_0x1eb88b(0x11e)](_0x1eb88b(0x118),_0x51717b,JSON[_0x1eb88b(0x10c)](_0x3fa52f)),_0x891868(_0x3fa52f);})[_0x4c1064(0x120)](function(_0x3924fb){const _0x17eb6e=_0x4c1064;logger[_0x17eb6e(0x116)](_0x17eb6e(0x118),_0x3924fb['message'],_0x51717b),_0x5a6f69(_0xdf4c2e[_0x17eb6e(0x116)](0x1f4,_0x3924fb['message']));});});},exports[a256_0x224dc7(0x10e)]=function(_0x1051e9){const _0x25b919=this;return new Promise(function(_0x2e3590,_0x2204c9){const _0x19e851=a256_0x510b;return db['FaxQueue'][_0x19e851(0x10f)]({'raw':_0x1051e9[_0x19e851(0x11a)]?_0x1051e9[_0x19e851(0x11a)][_0x19e851(0x110)]===undefined?!![]:![]:!![],'where':_0x1051e9[_0x19e851(0x11a)]?_0x1051e9[_0x19e851(0x11a)][_0x19e851(0x10d)]||null:null,'attributes':_0x1051e9[_0x19e851(0x11a)]?_0x1051e9['options'][_0x19e851(0x113)]||null:null,'include':_0x1051e9[_0x19e851(0x11a)]?_0x1051e9[_0x19e851(0x11a)][_0x19e851(0x11d)]?_[_0x19e851(0x111)](_0x1051e9[_0x19e851(0x11a)][_0x19e851(0x11d)],function(_0x4deec8){const _0x2fd5e2=_0x19e851;return{'model':db[_0x4deec8[_0x2fd5e2(0x117)]],'as':_0x4deec8['as'],'attributes':_0x4deec8[_0x2fd5e2(0x113)],'include':_0x4deec8[_0x2fd5e2(0x11d)]?_[_0x2fd5e2(0x111)](_0x4deec8['include'],function(_0x12231e){const _0x2962be=_0x2fd5e2;return{'model':db[_0x12231e['model']],'as':_0x12231e['as'],'attributes':_0x12231e['attributes'],'include':_0x12231e[_0x2962be(0x11d)]?_['map'](_0x12231e[_0x2962be(0x11d)],function(_0x649089){const _0xa426ea=_0x2962be;return{'model':db[_0x649089[_0xa426ea(0x117)]],'as':_0x649089['as'],'attributes':_0x649089['attributes']};}):[]};}):[]};}):[]:[]})[_0x19e851(0x119)](function(_0x444786){const _0x254776=_0x19e851;logger[_0x254776(0x112)](_0x254776(0x10e),_0x1051e9),logger[_0x254776(0x11e)](_0x254776(0x10e),_0x1051e9,JSON[_0x254776(0x10c)](_0x444786)),_0x2e3590(_0x444786);})['catch'](function(_0x127c94){const _0x5c7eef=_0x19e851;logger[_0x5c7eef(0x116)](_0x5c7eef(0x10e),_0x127c94[_0x5c7eef(0x115)],_0x1051e9),_0x2204c9(_0x25b919[_0x5c7eef(0x116)](0x1f4,_0x127c94['message']));});});}; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.socket.js b/server/api/faxQueue/faxQueue.socket.js index 8766b5d..24edd14 100644 --- a/server/api/faxQueue/faxQueue.socket.js +++ b/server/api/faxQueue/faxQueue.socket.js @@ -1 +1 @@ -const a257_0x374f=['save','./faxQueue.events','length','faxQueue:','remove'];(function(_0x3dd2cd,_0x32115c){const _0x374f7d=function(_0x396110){while(--_0x396110){_0x3dd2cd['push'](_0x3dd2cd['shift']());}};_0x374f7d(++_0x32115c);}(a257_0x374f,0x164));const a257_0x3961=function(_0x3dd2cd,_0x32115c){_0x3dd2cd=_0x3dd2cd-0xde;let _0x374f7d=a257_0x374f[_0x3dd2cd];return _0x374f7d;};const a257_0x1650a1=a257_0x3961;'use strict';const FaxQueueEvents=require(a257_0x1650a1(0xde)),events=[a257_0x1650a1(0xe2),a257_0x1650a1(0xe1),'update'];function createListener(_0x2b58c8,_0x4a8941){return function(_0x44dfba){_0x4a8941['emit'](_0x2b58c8,_0x44dfba);};}exports['register']=function(_0x59a0fa){const _0xcdfa5f=a257_0x1650a1;for(let _0x7632ad=0x0,_0x1307af=events[_0xcdfa5f(0xdf)];_0x7632ad<_0x1307af;_0x7632ad++){const _0x44090e=events[_0x7632ad],_0x53aaa5=createListener(_0xcdfa5f(0xe0)+_0x44090e,_0x59a0fa);FaxQueueEvents['on'](_0x44090e,_0x53aaa5);}}; \ No newline at end of file +const a257_0x4254=['./faxQueue.events','length','emit','faxQueue:','register'];(function(_0x12aa11,_0x4510da){const _0x4254cd=function(_0xcfbb83){while(--_0xcfbb83){_0x12aa11['push'](_0x12aa11['shift']());}};_0x4254cd(++_0x4510da);}(a257_0x4254,0xa3));const a257_0xcfbb=function(_0x12aa11,_0x4510da){_0x12aa11=_0x12aa11-0x197;let _0x4254cd=a257_0x4254[_0x12aa11];return _0x4254cd;};const a257_0x515d48=a257_0xcfbb;'use strict';const FaxQueueEvents=require(a257_0x515d48(0x199)),events=['save','remove','update'];function createListener(_0x5a5ab3,_0x4a441f){return function(_0x1502ce){const _0x3a83e0=a257_0xcfbb;_0x4a441f[_0x3a83e0(0x19b)](_0x5a5ab3,_0x1502ce);};}exports[a257_0x515d48(0x198)]=function(_0x5485b6){const _0x54eb69=a257_0x515d48;for(let _0x2e1738=0x0,_0x231914=events[_0x54eb69(0x19a)];_0x2e1738<_0x231914;_0x2e1738++){const _0xdc41ce=events[_0x2e1738],_0x1fed52=createListener(_0x54eb69(0x197)+_0xdc41ce,_0x5485b6);FaxQueueEvents['on'](_0xdc41ce,_0x1fed52);}}; \ No newline at end of file diff --git a/server/api/faxQueue/index.js b/server/api/faxQueue/index.js index 4f3f3d1..f16f09a 100644 --- a/server/api/faxQueue/index.js +++ b/server/api/faxQueue/index.js @@ -1 +1 @@ -const a258_0x3a12=['exports','getMembers','/describe','getAgents','/:id','isAuthenticated','get','/:id/teams','/:id/users','Router','post','./faxQueue.controller','destroy','addAgents','express','index','describe','delete','update','addTeams','removeTeams','show'];(function(_0x21d716,_0x3f6d4d){const _0x3a12f4=function(_0x572406){while(--_0x572406){_0x21d716['push'](_0x21d716['shift']());}};_0x3a12f4(++_0x3f6d4d);}(a258_0x3a12,0x1f3));const a258_0x5724=function(_0x21d716,_0x3f6d4d){_0x21d716=_0x21d716-0x100;let _0x3a12f4=a258_0x3a12[_0x21d716];return _0x3a12f4;};const a258_0x333328=a258_0x5724;'use strict';const express=require(a258_0x333328(0x115)),router=express[a258_0x333328(0x110)](),auth=require('../../components/auth/service'),controller=require(a258_0x333328(0x112));router[a258_0x333328(0x10d)]('/',auth[a258_0x333328(0x10c)](),controller[a258_0x333328(0x100)]),router[a258_0x333328(0x10d)](a258_0x333328(0x109),auth[a258_0x333328(0x10c)](),controller[a258_0x333328(0x101)]),router[a258_0x333328(0x10d)](a258_0x333328(0x10b),auth[a258_0x333328(0x10c)](),controller[a258_0x333328(0x106)]),router[a258_0x333328(0x10d)]('/:id/members',auth[a258_0x333328(0x10c)](),controller[a258_0x333328(0x108)]),router['get'](a258_0x333328(0x10e),auth['isAuthenticated'](),controller['getTeams']),router['get'](a258_0x333328(0x10f),auth[a258_0x333328(0x10c)](),controller[a258_0x333328(0x10a)]),router[a258_0x333328(0x111)]('/',auth[a258_0x333328(0x10c)](),controller['create']),router['post'](a258_0x333328(0x10e),auth[a258_0x333328(0x10c)](),controller[a258_0x333328(0x104)]),router[a258_0x333328(0x111)]('/:id/users',auth[a258_0x333328(0x10c)](),controller[a258_0x333328(0x114)]),router['put'](a258_0x333328(0x10b),auth[a258_0x333328(0x10c)](),controller[a258_0x333328(0x103)]),router[a258_0x333328(0x102)](a258_0x333328(0x10b),auth[a258_0x333328(0x10c)](),controller[a258_0x333328(0x113)]),router[a258_0x333328(0x102)](a258_0x333328(0x10e),auth[a258_0x333328(0x10c)](),controller[a258_0x333328(0x105)]),router['delete']('/:id/users',auth[a258_0x333328(0x10c)](),controller['removeAgents']),module[a258_0x333328(0x107)]=router; \ No newline at end of file +const a258_0x1b2d=['addAgents','show','getAgents','/:id/teams','addTeams','post','update','/:id','exports','Router','/:id/members','getTeams','get','index','isAuthenticated','destroy','getMembers','removeTeams','delete','./faxQueue.controller','/:id/users','put'];(function(_0x3c4240,_0xbf2b7b){const _0x1b2de9=function(_0x238727){while(--_0x238727){_0x3c4240['push'](_0x3c4240['shift']());}};_0x1b2de9(++_0xbf2b7b);}(a258_0x1b2d,0x10c));const a258_0x2387=function(_0x3c4240,_0xbf2b7b){_0x3c4240=_0x3c4240-0x166;let _0x1b2de9=a258_0x1b2d[_0x3c4240];return _0x1b2de9;};const a258_0x5ce525=a258_0x2387;'use strict';const express=require('express'),router=express[a258_0x5ce525(0x16b)](),auth=require('../../components/auth/service'),controller=require(a258_0x5ce525(0x175));router['get']('/',auth[a258_0x5ce525(0x170)](),controller[a258_0x5ce525(0x16f)]),router[a258_0x5ce525(0x16e)]('/describe',auth[a258_0x5ce525(0x170)](),controller['describe']),router['get'](a258_0x5ce525(0x169),auth[a258_0x5ce525(0x170)](),controller[a258_0x5ce525(0x179)]),router[a258_0x5ce525(0x16e)](a258_0x5ce525(0x16c),auth[a258_0x5ce525(0x170)](),controller[a258_0x5ce525(0x172)]),router['get'](a258_0x5ce525(0x17b),auth[a258_0x5ce525(0x170)](),controller[a258_0x5ce525(0x16d)]),router['get'](a258_0x5ce525(0x176),auth[a258_0x5ce525(0x170)](),controller[a258_0x5ce525(0x17a)]),router['post']('/',auth['isAuthenticated'](),controller['create']),router[a258_0x5ce525(0x167)](a258_0x5ce525(0x17b),auth['isAuthenticated'](),controller[a258_0x5ce525(0x166)]),router[a258_0x5ce525(0x167)]('/:id/users',auth[a258_0x5ce525(0x170)](),controller[a258_0x5ce525(0x178)]),router[a258_0x5ce525(0x177)](a258_0x5ce525(0x169),auth[a258_0x5ce525(0x170)](),controller[a258_0x5ce525(0x168)]),router[a258_0x5ce525(0x174)](a258_0x5ce525(0x169),auth[a258_0x5ce525(0x170)](),controller[a258_0x5ce525(0x171)]),router['delete']('/:id/teams',auth[a258_0x5ce525(0x170)](),controller[a258_0x5ce525(0x173)]),router[a258_0x5ce525(0x174)](a258_0x5ce525(0x176),auth[a258_0x5ce525(0x170)](),controller['removeAgents']),module[a258_0x5ce525(0x16a)]=router; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.attributes.js b/server/api/faxQueueReport/faxQueueReport.attributes.js index 6c1a586..ff05a5c 100644 --- a/server/api/faxQueueReport/faxQueueReport.attributes.js +++ b/server/api/faxQueueReport/faxQueueReport.attributes.js @@ -1 +1 @@ -const a259_0x7196=['sequelize','STRING','exports','DATE'];(function(_0x1028ae,_0x6924f0){const _0x71963e=function(_0x37cb15){while(--_0x37cb15){_0x1028ae['push'](_0x1028ae['shift']());}};_0x71963e(++_0x6924f0);}(a259_0x7196,0xd6));const a259_0x37cb=function(_0x1028ae,_0x6924f0){_0x1028ae=_0x1028ae-0x1d1;let _0x71963e=a259_0x7196[_0x1028ae];return _0x71963e;};const a259_0x9c7a60=a259_0x37cb;'use strict';const {DataTypes}=require(a259_0x9c7a60(0x1d3)),attributes={'uniqueid':{'type':DataTypes[a259_0x9c7a60(0x1d4)],'allowNull':![]},'from':{'type':DataTypes[a259_0x9c7a60(0x1d4)]},'joinAt':{'type':DataTypes[a259_0x9c7a60(0x1d2)]},'leaveAt':{'type':DataTypes['DATE']},'acceptAt':{'type':DataTypes[a259_0x9c7a60(0x1d2)]},'exitAt':{'type':DataTypes[a259_0x9c7a60(0x1d2)]},'reason':{'type':DataTypes[a259_0x9c7a60(0x1d4)]}};module[a259_0x9c7a60(0x1d1)]['attributes']=attributes; \ No newline at end of file +const a259_0x3444=['attributes','DATE'];(function(_0x3f2293,_0x1020cb){const _0x3444e0=function(_0x200c0b){while(--_0x200c0b){_0x3f2293['push'](_0x3f2293['shift']());}};_0x3444e0(++_0x1020cb);}(a259_0x3444,0xe2));const a259_0x200c=function(_0x3f2293,_0x1020cb){_0x3f2293=_0x3f2293-0x17b;let _0x3444e0=a259_0x3444[_0x3f2293];return _0x3444e0;};const a259_0xe7718=a259_0x200c;'use strict';const {DataTypes}=require('sequelize'),attributes={'uniqueid':{'type':DataTypes['STRING'],'allowNull':![]},'from':{'type':DataTypes['STRING']},'joinAt':{'type':DataTypes[a259_0xe7718(0x17c)]},'leaveAt':{'type':DataTypes[a259_0xe7718(0x17c)]},'acceptAt':{'type':DataTypes['DATE']},'exitAt':{'type':DataTypes[a259_0xe7718(0x17c)]},'reason':{'type':DataTypes['STRING']}};module['exports'][a259_0xe7718(0x17b)]=attributes; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.controller.js b/server/api/faxQueueReport/faxQueueReport.controller.js index 6a2d47d..84e9d5b 100644 --- a/server/api/faxQueueReport/faxQueueReport.controller.js +++ b/server/api/faxQueueReport/faxQueueReport.controller.js @@ -1 +1 @@ -const a260_0x5b3c=['pick','end','send','includeAll','findOne','name','where','order','rawAttributes','set','json','model','../../components/parsers/qs','key','filters','type','length','../../mysqldb','fieldName','params','fields','stack','intersection','filter','undefined','show','index','merge','options','../../config/logger','FaxQueueReport','update','Content-Range','destroy','rows','include','status','catch','findAll','body','attributes','create','keys','then','limit','map','sort','query','offset','sendStatus'];(function(_0xb63a40,_0x4a5414){const _0x5b3c76=function(_0x2ebe10){while(--_0x2ebe10){_0xb63a40['push'](_0xb63a40['shift']());}};_0x5b3c76(++_0x4a5414);}(a260_0x5b3c,0x82));const a260_0x2ebe=function(_0xb63a40,_0x4a5414){_0xb63a40=_0xb63a40-0x7f;let _0x5b3c76=a260_0x5b3c[_0xb63a40];return _0x5b3c76;};const a260_0x42e97d=a260_0x2ebe;'use strict';const _=require('lodash'),qs=require(a260_0x42e97d(0x9f)),logger=require(a260_0x42e97d(0xb0))('api'),{db}=require(a260_0x42e97d(0xa4)),{Op}=require('sequelize');function respondWithResult(_0x5dbada,_0x1fbd49){return _0x1fbd49=_0x1fbd49||0xc8,function(_0x551d78){const _0x20e1a8=a260_0x2ebe;if(_0x551d78)return _0x5dbada[_0x20e1a8(0x85)](_0x1fbd49)['json'](_0x551d78);};}function respondWithFilteredResult(_0x1fa4d4,_0x1906a5){return function(_0x5a4177){const _0x1486b2=a260_0x2ebe;if(_0x5a4177){const _0x3ce365=_0x5a4177['count'],_0x3cdb36=_0x1906a5['offset'];let _0x5c73bd=_0x1906a5[_0x1486b2(0x91)]+_0x1906a5[_0x1486b2(0x8d)],_0x3fc09b;return _0x5c73bd>=_0x3ce365?(_0x5c73bd=_0x3ce365,_0x3fc09b=0xc8):_0x3fc09b=0xce,_0x1fa4d4[_0x1486b2(0x85)](_0x3fc09b),_0x1fa4d4[_0x1486b2(0x9c)](_0x1486b2(0x81),_0x3cdb36+'-'+_0x5c73bd+'/'+_0x3ce365)[_0x1486b2(0x9d)](_0x5a4177);}return null;};}function saveUpdates(_0x53ccfe){return function(_0x59a5c8){const _0x317af3=a260_0x2ebe;if(_0x59a5c8)return _0x59a5c8[_0x317af3(0x80)](_0x53ccfe)[_0x317af3(0x8c)](function(_0x2a95c5){return _0x2a95c5;});return null;};}function removeEntity(_0x534030){return function(_0x4d2373){const _0x32525e=a260_0x2ebe;if(_0x4d2373)return _0x4d2373[_0x32525e(0x82)]()[_0x32525e(0x8c)](function(){const _0x43c004=_0x32525e;_0x534030[_0x43c004(0x85)](0xcc)[_0x43c004(0x94)]();});};}function handleEntityNotFound(_0x2e3faf){return function(_0x1c1e35){const _0x5a3e14=a260_0x2ebe;return!_0x1c1e35&&_0x2e3faf[_0x5a3e14(0x92)](0x194),_0x1c1e35;};}function handleError(_0x1eb6cb,_0x2726ba){return _0x2726ba=_0x2726ba||0x1f4,function(_0x2463e0){const _0xbad7cd=a260_0x2ebe;logger['error'](_0x2463e0[_0xbad7cd(0xa8)]),_0x2463e0[_0xbad7cd(0x98)]&&delete _0x2463e0['name'],_0x1eb6cb[_0xbad7cd(0x85)](_0x2726ba)[_0xbad7cd(0x95)](_0x2463e0);};}exports[a260_0x42e97d(0xad)]=function(_0x5bef3f,_0x2a8390){const _0x23559f=a260_0x42e97d;let _0x1c7d46={};const _0x27cef1={},_0xee8c2={'count':0x0,'rows':[]},_0x53f8a7=_[_0x23559f(0x8e)](db['FaxQueueReport'][_0x23559f(0x9b)],function(_0x3e5c23){const _0x115688=_0x23559f;return{'name':_0x3e5c23[_0x115688(0xa5)],'type':_0x3e5c23[_0x115688(0xa2)][_0x115688(0xa0)]};});_0x27cef1[_0x23559f(0x9e)]=_[_0x23559f(0x8e)](_0x53f8a7,'name'),_0x27cef1['query']=_[_0x23559f(0x8b)](_0x5bef3f[_0x23559f(0x90)]),_0x27cef1['filters']=_[_0x23559f(0xa9)](_0x27cef1[_0x23559f(0x9e)],_0x27cef1['query']),_0x1c7d46['attributes']=_[_0x23559f(0xa9)](_0x27cef1[_0x23559f(0x9e)],qs['fields'](_0x5bef3f['query'][_0x23559f(0xa7)])),_0x1c7d46[_0x23559f(0x89)]=_0x1c7d46[_0x23559f(0x89)][_0x23559f(0xa3)]?_0x1c7d46['attributes']:_0x27cef1['model'];typeof _0x5bef3f[_0x23559f(0x90)]['nolimit']===_0x23559f(0xab)&&(_0x1c7d46[_0x23559f(0x8d)]=qs['limit'](_0x5bef3f[_0x23559f(0x90)][_0x23559f(0x8d)]),_0x1c7d46['offset']=qs[_0x23559f(0x91)](_0x5bef3f[_0x23559f(0x90)][_0x23559f(0x91)]));_0x1c7d46[_0x23559f(0x9a)]=qs[_0x23559f(0x8f)](_0x5bef3f[_0x23559f(0x90)][_0x23559f(0x8f)]),_0x1c7d46[_0x23559f(0x99)]=qs[_0x23559f(0xa1)](_[_0x23559f(0x93)](_0x5bef3f['query'],_0x27cef1['filters']),_0x53f8a7);_0x5bef3f[_0x23559f(0x90)]['filter']&&(_0x1c7d46[_0x23559f(0x99)]=_['merge'](_0x1c7d46[_0x23559f(0x99)],{[Op['or']]:_['map'](_0x53f8a7,function(_0x5db7a6){const _0x8530b9=_0x23559f;if(_0x5db7a6['type']!=='VIRTUAL'){const _0xd30bf3={};return _0xd30bf3[_0x5db7a6[_0x8530b9(0x98)]]={[Op['like']]:'%'+_0x5bef3f[_0x8530b9(0x90)][_0x8530b9(0xaa)]+'%'},_0xd30bf3;}})}));_0x1c7d46=_[_0x23559f(0xae)]({},_0x1c7d46,_0x5bef3f['options']);const _0x29dcb5={'where':_0x1c7d46[_0x23559f(0x99)]};return db[_0x23559f(0x7f)]['count'](_0x29dcb5)['then'](function(_0x5d30b5){const _0x58c573=_0x23559f;return _0xee8c2['count']=_0x5d30b5,_0x5bef3f[_0x58c573(0x90)][_0x58c573(0x96)]&&(_0x1c7d46[_0x58c573(0x84)]=[{'all':!![]}]),db[_0x58c573(0x7f)][_0x58c573(0x87)](_0x1c7d46);})[_0x23559f(0x8c)](function(_0x52fab3){const _0x481349=_0x23559f;return _0xee8c2[_0x481349(0x83)]=_0x52fab3,_0xee8c2;})['then'](respondWithFilteredResult(_0x2a8390,_0x1c7d46))['catch'](handleError(_0x2a8390,null));},exports[a260_0x42e97d(0xac)]=function(_0x281aa7,_0x26c452){const _0x76833=a260_0x42e97d;let _0x43cc84={'raw':!![],'where':{'id':_0x281aa7[_0x76833(0xa6)]['id']}};const _0x2147d6={};return _0x2147d6['model']=_[_0x76833(0x8b)](db[_0x76833(0x7f)][_0x76833(0x9b)]),_0x2147d6[_0x76833(0x90)]=_[_0x76833(0x8b)](_0x281aa7[_0x76833(0x90)]),_0x2147d6[_0x76833(0xa1)]=_[_0x76833(0xa9)](_0x2147d6['model'],_0x2147d6['query']),_0x43cc84[_0x76833(0x89)]=_[_0x76833(0xa9)](_0x2147d6[_0x76833(0x9e)],qs[_0x76833(0xa7)](_0x281aa7[_0x76833(0x90)][_0x76833(0xa7)])),_0x43cc84[_0x76833(0x89)]=_0x43cc84[_0x76833(0x89)][_0x76833(0xa3)]?_0x43cc84[_0x76833(0x89)]:_0x2147d6[_0x76833(0x9e)],_0x281aa7[_0x76833(0x90)][_0x76833(0x96)]&&(_0x43cc84[_0x76833(0x84)]=[{'all':!![]}]),_0x43cc84=_['merge']({},_0x43cc84,_0x281aa7[_0x76833(0xaf)]),db[_0x76833(0x7f)][_0x76833(0x97)](_0x43cc84)[_0x76833(0x8c)](handleEntityNotFound(_0x26c452,null))['then'](respondWithResult(_0x26c452,null))['catch'](handleError(_0x26c452,null));},exports[a260_0x42e97d(0x8a)]=function(_0x1884ca,_0x58e1fc){const _0x48da38=a260_0x42e97d;return db['FaxQueueReport'][_0x48da38(0x8a)](_0x1884ca[_0x48da38(0x88)],{})[_0x48da38(0x8c)](respondWithResult(_0x58e1fc,0xc9))[_0x48da38(0x86)](handleError(_0x58e1fc,null));},exports[a260_0x42e97d(0x80)]=function(_0x11417c,_0x2bc50e){const _0x163f5f=a260_0x42e97d;return _0x11417c[_0x163f5f(0x88)]['id']&&delete _0x11417c['body']['id'],db[_0x163f5f(0x7f)][_0x163f5f(0x97)]({'where':{'id':_0x11417c[_0x163f5f(0xa6)]['id']}})['then'](handleEntityNotFound(_0x2bc50e,null))[_0x163f5f(0x8c)](saveUpdates(_0x11417c[_0x163f5f(0x88)],null))[_0x163f5f(0x8c)](respondWithResult(_0x2bc50e,null))[_0x163f5f(0x86)](handleError(_0x2bc50e,null));},exports[a260_0x42e97d(0x82)]=function(_0x1e1db5,_0xbc5875){const _0x294dcc=a260_0x42e97d;return db['FaxQueueReport'][_0x294dcc(0x97)]({'where':{'id':_0x1e1db5[_0x294dcc(0xa6)]['id']}})['then'](handleEntityNotFound(_0xbc5875,null))[_0x294dcc(0x8c)](removeEntity(_0xbc5875,null))[_0x294dcc(0x86)](handleError(_0xbc5875,null));},exports['describe']=function(_0x5656fa,_0x4629bc){const _0x42d4b8=a260_0x42e97d;return db[_0x42d4b8(0x7f)]['describe']()[_0x42d4b8(0x8c)](respondWithResult(_0x4629bc,null))[_0x42d4b8(0x86)](handleError(_0x4629bc,null));}; \ No newline at end of file +const a260_0x1d96=['order','filters','type','intersection','body','../../components/parsers/qs','map','findOne','then','stack','destroy','FaxQueueReport','include','update','send','Content-Range','options','api','includeAll','sendStatus','set','merge','key','attributes','count','create','limit','keys','query','params','sort','filter','catch','end','../../config/logger','fields','model','where','lodash','sequelize','name','describe','index','nolimit','error','status','length','offset','rawAttributes','json'];(function(_0xd74920,_0x590572){const _0x1d965f=function(_0x5583bd){while(--_0x5583bd){_0xd74920['push'](_0xd74920['shift']());}};_0x1d965f(++_0x590572);}(a260_0x1d96,0x11e));const a260_0x5583=function(_0xd74920,_0x590572){_0xd74920=_0xd74920-0xb1;let _0x1d965f=a260_0x1d96[_0xd74920];return _0x1d965f;};const a260_0x59e44c=a260_0x5583;'use strict';const _=require(a260_0x59e44c(0xb3)),qs=require(a260_0x59e44c(0xc4)),logger=require(a260_0x59e44c(0xe1))(a260_0x59e44c(0xd0)),{db}=require('../../mysqldb'),{Op}=require(a260_0x59e44c(0xb4));function respondWithResult(_0x3191a8,_0x561620){return _0x561620=_0x561620||0xc8,function(_0x1af7e6){const _0x8c8dff=a260_0x5583;if(_0x1af7e6)return _0x3191a8[_0x8c8dff(0xba)](_0x561620)[_0x8c8dff(0xbe)](_0x1af7e6);};}function respondWithFilteredResult(_0x12a025,_0x13b0aa){return function(_0x3b6239){const _0x2e481d=a260_0x5583;if(_0x3b6239){const _0x198abf=_0x3b6239['count'],_0x1613f6=_0x13b0aa[_0x2e481d(0xbc)];let _0x19cc22=_0x13b0aa['offset']+_0x13b0aa[_0x2e481d(0xd9)],_0x1c77d4;return _0x19cc22>=_0x198abf?(_0x19cc22=_0x198abf,_0x1c77d4=0xc8):_0x1c77d4=0xce,_0x12a025[_0x2e481d(0xba)](_0x1c77d4),_0x12a025[_0x2e481d(0xd3)](_0x2e481d(0xce),_0x1613f6+'-'+_0x19cc22+'/'+_0x198abf)[_0x2e481d(0xbe)](_0x3b6239);}return null;};}function saveUpdates(_0x3172a6){return function(_0x57a266){const _0xc20ecc=a260_0x5583;if(_0x57a266)return _0x57a266[_0xc20ecc(0xcc)](_0x3172a6)[_0xc20ecc(0xc7)](function(_0x36b683){return _0x36b683;});return null;};}function removeEntity(_0x22d0d1){return function(_0x11e56e){const _0x26093c=a260_0x5583;if(_0x11e56e)return _0x11e56e[_0x26093c(0xc9)]()['then'](function(){const _0x17563b=_0x26093c;_0x22d0d1['status'](0xcc)[_0x17563b(0xe0)]();});};}function handleEntityNotFound(_0x57b846){return function(_0x542c42){const _0x1d02f2=a260_0x5583;return!_0x542c42&&_0x57b846[_0x1d02f2(0xd2)](0x194),_0x542c42;};}function handleError(_0x240c62,_0x1d3223){return _0x1d3223=_0x1d3223||0x1f4,function(_0x309b92){const _0x2a0b41=a260_0x5583;logger[_0x2a0b41(0xb9)](_0x309b92[_0x2a0b41(0xc8)]),_0x309b92[_0x2a0b41(0xb5)]&&delete _0x309b92[_0x2a0b41(0xb5)],_0x240c62['status'](_0x1d3223)[_0x2a0b41(0xcd)](_0x309b92);};}exports[a260_0x59e44c(0xb7)]=function(_0xe4efb8,_0x4a1bad){const _0x4d5079=a260_0x59e44c;let _0x587144={};const _0x2f84f9={},_0x7c695e={'count':0x0,'rows':[]},_0x2ce3e7=_[_0x4d5079(0xc5)](db[_0x4d5079(0xca)][_0x4d5079(0xbd)],function(_0x54bbd6){const _0x593aa9=_0x4d5079;return{'name':_0x54bbd6['fieldName'],'type':_0x54bbd6['type'][_0x593aa9(0xd5)]};});_0x2f84f9[_0x4d5079(0xb1)]=_[_0x4d5079(0xc5)](_0x2ce3e7,_0x4d5079(0xb5)),_0x2f84f9[_0x4d5079(0xdb)]=_['keys'](_0xe4efb8[_0x4d5079(0xdb)]),_0x2f84f9[_0x4d5079(0xc0)]=_[_0x4d5079(0xc2)](_0x2f84f9[_0x4d5079(0xb1)],_0x2f84f9['query']),_0x587144[_0x4d5079(0xd6)]=_[_0x4d5079(0xc2)](_0x2f84f9[_0x4d5079(0xb1)],qs[_0x4d5079(0xe2)](_0xe4efb8[_0x4d5079(0xdb)][_0x4d5079(0xe2)])),_0x587144['attributes']=_0x587144[_0x4d5079(0xd6)][_0x4d5079(0xbb)]?_0x587144['attributes']:_0x2f84f9[_0x4d5079(0xb1)];typeof _0xe4efb8[_0x4d5079(0xdb)][_0x4d5079(0xb8)]==='undefined'&&(_0x587144[_0x4d5079(0xd9)]=qs[_0x4d5079(0xd9)](_0xe4efb8[_0x4d5079(0xdb)]['limit']),_0x587144['offset']=qs['offset'](_0xe4efb8['query'][_0x4d5079(0xbc)]));_0x587144[_0x4d5079(0xbf)]=qs['sort'](_0xe4efb8[_0x4d5079(0xdb)][_0x4d5079(0xdd)]),_0x587144['where']=qs[_0x4d5079(0xc0)](_['pick'](_0xe4efb8[_0x4d5079(0xdb)],_0x2f84f9[_0x4d5079(0xc0)]),_0x2ce3e7);_0xe4efb8[_0x4d5079(0xdb)][_0x4d5079(0xde)]&&(_0x587144[_0x4d5079(0xb2)]=_[_0x4d5079(0xd4)](_0x587144[_0x4d5079(0xb2)],{[Op['or']]:_[_0x4d5079(0xc5)](_0x2ce3e7,function(_0x3fa6f3){const _0x2e1d66=_0x4d5079;if(_0x3fa6f3[_0x2e1d66(0xc1)]!=='VIRTUAL'){const _0x8f9a40={};return _0x8f9a40[_0x3fa6f3[_0x2e1d66(0xb5)]]={[Op['like']]:'%'+_0xe4efb8['query']['filter']+'%'},_0x8f9a40;}})}));_0x587144=_[_0x4d5079(0xd4)]({},_0x587144,_0xe4efb8[_0x4d5079(0xcf)]);const _0x3969a6={'where':_0x587144[_0x4d5079(0xb2)]};return db[_0x4d5079(0xca)][_0x4d5079(0xd7)](_0x3969a6)[_0x4d5079(0xc7)](function(_0x8b79ff){const _0x3718e1=_0x4d5079;return _0x7c695e[_0x3718e1(0xd7)]=_0x8b79ff,_0xe4efb8[_0x3718e1(0xdb)][_0x3718e1(0xd1)]&&(_0x587144[_0x3718e1(0xcb)]=[{'all':!![]}]),db['FaxQueueReport']['findAll'](_0x587144);})[_0x4d5079(0xc7)](function(_0x471465){return _0x7c695e['rows']=_0x471465,_0x7c695e;})['then'](respondWithFilteredResult(_0x4a1bad,_0x587144))[_0x4d5079(0xdf)](handleError(_0x4a1bad,null));},exports['show']=function(_0x1ad0f7,_0xaffd4a){const _0x3c618d=a260_0x59e44c;let _0x259e94={'raw':!![],'where':{'id':_0x1ad0f7['params']['id']}};const _0x1abe8b={};return _0x1abe8b['model']=_[_0x3c618d(0xda)](db[_0x3c618d(0xca)]['rawAttributes']),_0x1abe8b['query']=_['keys'](_0x1ad0f7[_0x3c618d(0xdb)]),_0x1abe8b['filters']=_[_0x3c618d(0xc2)](_0x1abe8b[_0x3c618d(0xb1)],_0x1abe8b['query']),_0x259e94[_0x3c618d(0xd6)]=_['intersection'](_0x1abe8b['model'],qs[_0x3c618d(0xe2)](_0x1ad0f7[_0x3c618d(0xdb)][_0x3c618d(0xe2)])),_0x259e94[_0x3c618d(0xd6)]=_0x259e94[_0x3c618d(0xd6)][_0x3c618d(0xbb)]?_0x259e94[_0x3c618d(0xd6)]:_0x1abe8b['model'],_0x1ad0f7['query']['includeAll']&&(_0x259e94['include']=[{'all':!![]}]),_0x259e94=_[_0x3c618d(0xd4)]({},_0x259e94,_0x1ad0f7[_0x3c618d(0xcf)]),db[_0x3c618d(0xca)][_0x3c618d(0xc6)](_0x259e94)[_0x3c618d(0xc7)](handleEntityNotFound(_0xaffd4a,null))['then'](respondWithResult(_0xaffd4a,null))[_0x3c618d(0xdf)](handleError(_0xaffd4a,null));},exports['create']=function(_0x48763d,_0x367dcc){const _0x2870bc=a260_0x59e44c;return db[_0x2870bc(0xca)][_0x2870bc(0xd8)](_0x48763d[_0x2870bc(0xc3)],{})[_0x2870bc(0xc7)](respondWithResult(_0x367dcc,0xc9))[_0x2870bc(0xdf)](handleError(_0x367dcc,null));},exports['update']=function(_0x1dddff,_0x480c00){const _0x12da1e=a260_0x59e44c;return _0x1dddff[_0x12da1e(0xc3)]['id']&&delete _0x1dddff['body']['id'],db[_0x12da1e(0xca)][_0x12da1e(0xc6)]({'where':{'id':_0x1dddff['params']['id']}})[_0x12da1e(0xc7)](handleEntityNotFound(_0x480c00,null))[_0x12da1e(0xc7)](saveUpdates(_0x1dddff[_0x12da1e(0xc3)],null))[_0x12da1e(0xc7)](respondWithResult(_0x480c00,null))['catch'](handleError(_0x480c00,null));},exports['destroy']=function(_0xe80cc1,_0x2ebbb5){const _0x1f0eee=a260_0x59e44c;return db[_0x1f0eee(0xca)][_0x1f0eee(0xc6)]({'where':{'id':_0xe80cc1[_0x1f0eee(0xdc)]['id']}})[_0x1f0eee(0xc7)](handleEntityNotFound(_0x2ebbb5,null))[_0x1f0eee(0xc7)](removeEntity(_0x2ebbb5,null))[_0x1f0eee(0xdf)](handleError(_0x2ebbb5,null));},exports['describe']=function(_0x42f163,_0x41bc39){const _0x1010c6=a260_0x59e44c;return db[_0x1010c6(0xca)][_0x1010c6(0xb6)]()[_0x1010c6(0xc7)](respondWithResult(_0x41bc39,null))[_0x1010c6(0xdf)](handleError(_0x41bc39,null));}; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.model.js b/server/api/faxQueueReport/faxQueueReport.model.js index 3a17006..fdf4731 100644 --- a/server/api/faxQueueReport/faxQueueReport.model.js +++ b/server/api/faxQueueReport/faxQueueReport.model.js @@ -1 +1 @@ -const a261_0x13f9=['init','./faxQueueReport.options','function','FaxQueueReport','sequelize','exports'];(function(_0x350221,_0x1ec42e){const _0x13f9d9=function(_0x4796f2){while(--_0x4796f2){_0x350221['push'](_0x350221['shift']());}};_0x13f9d9(++_0x1ec42e);}(a261_0x13f9,0x13d));const a261_0x4796=function(_0x350221,_0x1ec42e){_0x350221=_0x350221-0x77;let _0x13f9d9=a261_0x13f9[_0x350221];return _0x13f9d9;};const a261_0x20fab4=a261_0x4796;'use strict';const {Model}=require(a261_0x20fab4(0x7c)),{attributes}=require('./faxQueueReport.attributes'),{options}=require(a261_0x20fab4(0x79));class FaxQueueReport extends Model{}function init(_0x63860,_0x272e30){const _0x2c68ab=a261_0x20fab4,_0xc02e48=options(_0x63860),_0x34819d=typeof _0x272e30===_0x2c68ab(0x7a)?_0x272e30(_0xc02e48):_0xc02e48;return FaxQueueReport[_0x2c68ab(0x78)](attributes,_0x34819d),FaxQueueReport;}module[a261_0x20fab4(0x77)][a261_0x20fab4(0x7b)]=FaxQueueReport,module[a261_0x20fab4(0x77)][a261_0x20fab4(0x78)]=init; \ No newline at end of file +const a261_0x291c=['init','exports','./faxQueueReport.attributes','FaxQueueReport'];(function(_0x16b4b3,_0x4fe95b){const _0x291cb2=function(_0xa44cae){while(--_0xa44cae){_0x16b4b3['push'](_0x16b4b3['shift']());}};_0x291cb2(++_0x4fe95b);}(a261_0x291c,0x1b5));const a261_0xa44c=function(_0x16b4b3,_0x4fe95b){_0x16b4b3=_0x16b4b3-0xa7;let _0x291cb2=a261_0x291c[_0x16b4b3];return _0x291cb2;};const a261_0x46fc8f=a261_0xa44c;'use strict';const {Model}=require('sequelize'),{attributes}=require(a261_0x46fc8f(0xa8)),{options}=require('./faxQueueReport.options');class FaxQueueReport extends Model{}function init(_0x79650d,_0x51d251){const _0x44fcab=a261_0x46fc8f,_0x202c96=options(_0x79650d),_0x4447ea=typeof _0x51d251==='function'?_0x51d251(_0x202c96):_0x202c96;return FaxQueueReport[_0x44fcab(0xaa)](attributes,_0x4447ea),FaxQueueReport;}module[a261_0x46fc8f(0xa7)][a261_0x46fc8f(0xa9)]=FaxQueueReport,module[a261_0x46fc8f(0xa7)][a261_0x46fc8f(0xaa)]=init; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.options.js b/server/api/faxQueueReport/faxQueueReport.options.js index f5d5895..985b3b1 100644 --- a/server/api/faxQueueReport/faxQueueReport.options.js +++ b/server/api/faxQueueReport/faxQueueReport.options.js @@ -1 +1 @@ -var a262_0x4519=['uniqueid','exports','report_fax_queue'];(function(_0x16f5a0,_0x3b12ea){var _0x451988=function(_0x213b59){while(--_0x213b59){_0x16f5a0['push'](_0x16f5a0['shift']());}};_0x451988(++_0x3b12ea);}(a262_0x4519,0x14c));var a262_0x213b=function(_0x16f5a0,_0x3b12ea){_0x16f5a0=_0x16f5a0-0x14f;var _0x451988=a262_0x4519[_0x16f5a0];return _0x451988;};var a262_0x3c84d8=a262_0x213b;function options(_0x1bcaf9){var _0x7ace27=a262_0x213b;return{'sequelize':_0x1bcaf9,'tableName':_0x7ace27(0x14f),'paranoid':![],'indexes':[{'name':_0x7ace27(0x150),'fields':[_0x7ace27(0x150)]}],'timestamps':!![]};}module[a262_0x3c84d8(0x151)]['options']=options; \ No newline at end of file +var a262_0x29a2=['report_fax_queue','uniqueid','options','exports'];(function(_0x3f1881,_0x10504d){var _0x29a25d=function(_0x4dfc34){while(--_0x4dfc34){_0x3f1881['push'](_0x3f1881['shift']());}};_0x29a25d(++_0x10504d);}(a262_0x29a2,0x88));var a262_0x4dfc=function(_0x3f1881,_0x10504d){_0x3f1881=_0x3f1881-0xb2;var _0x29a25d=a262_0x29a2[_0x3f1881];return _0x29a25d;};var a262_0x9577c8=a262_0x4dfc;function options(_0x314035){var _0x3556ec=a262_0x4dfc;return{'sequelize':_0x314035,'tableName':_0x3556ec(0xb2),'paranoid':![],'indexes':[{'name':_0x3556ec(0xb3),'fields':['uniqueid']}],'timestamps':!![]};}module[a262_0x9577c8(0xb5)][a262_0x9577c8(0xb4)]=options; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.rpc.js b/server/api/faxQueueReport/faxQueueReport.rpc.js index 571fba3..e4b1234 100644 --- a/server/api/faxQueueReport/faxQueueReport.rpc.js +++ b/server/api/faxQueueReport/faxQueueReport.rpc.js @@ -1 +1 @@ -const a263_0x2523=['message','CreateFaxQueueReport','body','stringify','attributes','catch','then','FaxQueueReport','create','../../mysqldb','update','debug','options','UpdateFaxQueueReport','rpc','error','limit','raw','where','../../config/logger','info'];(function(_0x2aa837,_0x5681a2){const _0x2523a6=function(_0x89b8e7){while(--_0x89b8e7){_0x2aa837['push'](_0x2aa837['shift']());}};_0x2523a6(++_0x5681a2);}(a263_0x2523,0xb5));const a263_0x89b8=function(_0x2aa837,_0x5681a2){_0x2aa837=_0x2aa837-0x1a7;let _0x2523a6=a263_0x2523[_0x2aa837];return _0x2523a6;};const a263_0x1231c5=a263_0x89b8;'use strict';const db=require(a263_0x1231c5(0x1b8))['db'],logger=require(a263_0x1231c5(0x1ad))(a263_0x1231c5(0x1a8));exports['CreateFaxQueueReport']=function(_0x28335b){const _0x1ae20c=this;return new Promise(function(_0x3d2d74,_0x1602f7){const _0x3ed227=a263_0x89b8;return db['FaxQueueReport'][_0x3ed227(0x1b7)](_0x28335b[_0x3ed227(0x1b1)],{'raw':_0x28335b[_0x3ed227(0x1bb)]?_0x28335b[_0x3ed227(0x1bb)][_0x3ed227(0x1ab)]===undefined?!![]:![]:!![]})[_0x3ed227(0x1b5)](function(_0x45c089){const _0x244660=_0x3ed227;logger[_0x244660(0x1ae)](_0x244660(0x1b0),_0x28335b),logger[_0x244660(0x1ba)](_0x244660(0x1b0),_0x28335b,JSON['stringify'](_0x45c089)),_0x3d2d74(_0x45c089);})[_0x3ed227(0x1b4)](function(_0x454e7a){const _0x5c5f8b=_0x3ed227;logger[_0x5c5f8b(0x1a9)](_0x5c5f8b(0x1b0),_0x454e7a[_0x5c5f8b(0x1af)],_0x28335b),_0x1602f7(_0x1ae20c[_0x5c5f8b(0x1a9)](0x1f4,_0x454e7a['message']));});});},exports['UpdateFaxQueueReport']=function(_0xf54c4d){const _0x129b14=this;return new Promise(function(_0x2a8418,_0x5dedef){const _0x1c05f8=a263_0x89b8;return db[_0x1c05f8(0x1b6)][_0x1c05f8(0x1b9)](_0xf54c4d[_0x1c05f8(0x1b1)],{'raw':_0xf54c4d['options']?_0xf54c4d[_0x1c05f8(0x1bb)][_0x1c05f8(0x1ab)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xf54c4d[_0x1c05f8(0x1bb)]?_0xf54c4d['options'][_0x1c05f8(0x1ac)]||null:null,'attributes':_0xf54c4d[_0x1c05f8(0x1bb)]?_0xf54c4d[_0x1c05f8(0x1bb)][_0x1c05f8(0x1b3)]||null:null,'limit':_0xf54c4d[_0x1c05f8(0x1bb)]?_0xf54c4d['options'][_0x1c05f8(0x1aa)]||null:null})[_0x1c05f8(0x1b5)](function(_0x3b8bed){const _0x22cd85=_0x1c05f8;logger[_0x22cd85(0x1ae)](_0x22cd85(0x1a7),_0xf54c4d),logger[_0x22cd85(0x1ba)]('UpdateFaxQueueReport',_0xf54c4d,JSON[_0x22cd85(0x1b2)](_0x3b8bed)),_0x2a8418(_0x3b8bed);})[_0x1c05f8(0x1b4)](function(_0x22efea){const _0x33de52=_0x1c05f8;logger[_0x33de52(0x1a9)](_0x33de52(0x1a7),_0x22efea[_0x33de52(0x1af)],_0xf54c4d),_0x5dedef(_0x129b14[_0x33de52(0x1a9)](0x1f4,_0x22efea[_0x33de52(0x1af)]));});});}; \ No newline at end of file +const a263_0x1f84=['raw','info','update','attributes','options','rpc','limit','../../mysqldb','stringify','CreateFaxQueueReport','message','then','../../config/logger','body','create','FaxQueueReport','catch','debug','UpdateFaxQueueReport','where','error'];(function(_0x296b5a,_0x5c5719){const _0x1f848d=function(_0x4834fc){while(--_0x4834fc){_0x296b5a['push'](_0x296b5a['shift']());}};_0x1f848d(++_0x5c5719);}(a263_0x1f84,0x130));const a263_0x4834=function(_0x296b5a,_0x5c5719){_0x296b5a=_0x296b5a-0x114;let _0x1f848d=a263_0x1f84[_0x296b5a];return _0x1f848d;};const a263_0x322f8a=a263_0x4834;'use strict';const db=require(a263_0x322f8a(0x126))['db'],logger=require(a263_0x322f8a(0x116))(a263_0x322f8a(0x124));exports[a263_0x322f8a(0x128)]=function(_0x4ee449){const _0x3e8a9a=this;return new Promise(function(_0x54fa63,_0x3a9569){const _0x297681=a263_0x4834;return db[_0x297681(0x119)][_0x297681(0x118)](_0x4ee449[_0x297681(0x117)],{'raw':_0x4ee449[_0x297681(0x123)]?_0x4ee449[_0x297681(0x123)][_0x297681(0x11f)]===undefined?!![]:![]:!![]})[_0x297681(0x115)](function(_0x3d26db){const _0x404dcc=_0x297681;logger[_0x404dcc(0x120)]('CreateFaxQueueReport',_0x4ee449),logger['debug'](_0x404dcc(0x128),_0x4ee449,JSON[_0x404dcc(0x127)](_0x3d26db)),_0x54fa63(_0x3d26db);})['catch'](function(_0x50402f){const _0x143842=_0x297681;logger['error']('CreateFaxQueueReport',_0x50402f[_0x143842(0x114)],_0x4ee449),_0x3a9569(_0x3e8a9a[_0x143842(0x11e)](0x1f4,_0x50402f['message']));});});},exports['UpdateFaxQueueReport']=function(_0x64898f){const _0x3b2a6a=this;return new Promise(function(_0x12589c,_0x3af2a5){const _0x148104=a263_0x4834;return db['FaxQueueReport'][_0x148104(0x121)](_0x64898f[_0x148104(0x117)],{'raw':_0x64898f[_0x148104(0x123)]?_0x64898f[_0x148104(0x123)][_0x148104(0x11f)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x64898f[_0x148104(0x123)]?_0x64898f[_0x148104(0x123)][_0x148104(0x11d)]||null:null,'attributes':_0x64898f[_0x148104(0x123)]?_0x64898f[_0x148104(0x123)][_0x148104(0x122)]||null:null,'limit':_0x64898f[_0x148104(0x123)]?_0x64898f[_0x148104(0x123)][_0x148104(0x125)]||null:null})[_0x148104(0x115)](function(_0x2051c4){const _0x530e5d=_0x148104;logger[_0x530e5d(0x120)](_0x530e5d(0x11c),_0x64898f),logger[_0x530e5d(0x11b)](_0x530e5d(0x11c),_0x64898f,JSON['stringify'](_0x2051c4)),_0x12589c(_0x2051c4);})[_0x148104(0x11a)](function(_0x446832){const _0x40236c=_0x148104;logger['error']('UpdateFaxQueueReport',_0x446832[_0x40236c(0x114)],_0x64898f),_0x3af2a5(_0x3b2a6a[_0x40236c(0x11e)](0x1f4,_0x446832[_0x40236c(0x114)]));});});}; \ No newline at end of file diff --git a/server/api/faxQueueReport/index.js b/server/api/faxQueueReport/index.js index a0f2e02..5b7ef1f 100644 --- a/server/api/faxQueueReport/index.js +++ b/server/api/faxQueueReport/index.js @@ -1 +1 @@ -const a264_0xb5de=['../../components/auth/service','show','Router','destroy','get','index','create','post','delete','isAuthenticated','update','/:id','./faxQueueReport.controller'];(function(_0x57f028,_0x45c225){const _0xb5dea1=function(_0x316a8f){while(--_0x316a8f){_0x57f028['push'](_0x57f028['shift']());}};_0xb5dea1(++_0x45c225);}(a264_0xb5de,0x170));const a264_0x316a=function(_0x57f028,_0x45c225){_0x57f028=_0x57f028-0x1b5;let _0xb5dea1=a264_0xb5de[_0x57f028];return _0xb5dea1;};const a264_0xf999f9=a264_0x316a;'use strict';const express=require('express'),router=express[a264_0xf999f9(0x1c0)](),auth=require(a264_0xf999f9(0x1be)),controller=require(a264_0xf999f9(0x1bd));router[a264_0xf999f9(0x1b5)]('/',auth[a264_0xf999f9(0x1ba)](),controller[a264_0xf999f9(0x1b6)]),router[a264_0xf999f9(0x1b5)]('/describe',auth[a264_0xf999f9(0x1ba)](),controller['describe']),router[a264_0xf999f9(0x1b5)](a264_0xf999f9(0x1bc),auth[a264_0xf999f9(0x1ba)](),controller[a264_0xf999f9(0x1bf)]),router[a264_0xf999f9(0x1b8)]('/',auth['isAuthenticated'](),controller[a264_0xf999f9(0x1b7)]),router['put'](a264_0xf999f9(0x1bc),auth[a264_0xf999f9(0x1ba)](),controller[a264_0xf999f9(0x1bb)]),router[a264_0xf999f9(0x1b9)](a264_0xf999f9(0x1bc),auth[a264_0xf999f9(0x1ba)](),controller[a264_0xf999f9(0x1c1)]),module['exports']=router; \ No newline at end of file +const a264_0x5080=['exports','/describe','isAuthenticated','show','/:id','delete','../../components/auth/service','Router','get','index','express','describe','put','update','destroy','post'];(function(_0x59548e,_0x52f75a){const _0x5080b3=function(_0x3add12){while(--_0x3add12){_0x59548e['push'](_0x59548e['shift']());}};_0x5080b3(++_0x52f75a);}(a264_0x5080,0xc8));const a264_0x3add=function(_0x59548e,_0x52f75a){_0x59548e=_0x59548e-0x89;let _0x5080b3=a264_0x5080[_0x59548e];return _0x5080b3;};const a264_0x3c2fca=a264_0x3add;'use strict';const express=require(a264_0x3c2fca(0x8b)),router=express[a264_0x3c2fca(0x98)](),auth=require(a264_0x3c2fca(0x97)),controller=require('./faxQueueReport.controller');router[a264_0x3c2fca(0x89)]('/',auth[a264_0x3c2fca(0x93)](),controller[a264_0x3c2fca(0x8a)]),router[a264_0x3c2fca(0x89)](a264_0x3c2fca(0x92),auth[a264_0x3c2fca(0x93)](),controller[a264_0x3c2fca(0x8c)]),router[a264_0x3c2fca(0x89)]('/:id',auth[a264_0x3c2fca(0x93)](),controller[a264_0x3c2fca(0x94)]),router[a264_0x3c2fca(0x90)]('/',auth[a264_0x3c2fca(0x93)](),controller['create']),router[a264_0x3c2fca(0x8d)](a264_0x3c2fca(0x95),auth[a264_0x3c2fca(0x93)](),controller[a264_0x3c2fca(0x8e)]),router[a264_0x3c2fca(0x96)]('/:id',auth[a264_0x3c2fca(0x93)](),controller[a264_0x3c2fca(0x8f)]),module[a264_0x3c2fca(0x91)]=router; \ No newline at end of file diff --git a/server/api/faxTransferReport/faxTransferReport.attributes.js b/server/api/faxTransferReport/faxTransferReport.attributes.js index 5c9307f..3dd590e 100644 --- a/server/api/faxTransferReport/faxTransferReport.attributes.js +++ b/server/api/faxTransferReport/faxTransferReport.attributes.js @@ -1 +1 @@ -const a265_0x3bdb=['account','ENUM','agent','DATE','sequelize','NOW','exports','queue'];(function(_0x176024,_0x55cc0f){const _0x3bdb66=function(_0x1cdc25){while(--_0x1cdc25){_0x176024['push'](_0x176024['shift']());}};_0x3bdb66(++_0x55cc0f);}(a265_0x3bdb,0x7a));const a265_0x1cdc=function(_0x176024,_0x55cc0f){_0x176024=_0x176024-0x12e;let _0x3bdb66=a265_0x3bdb[_0x176024];return _0x3bdb66;};const a265_0xc4eb76=a265_0x1cdc;'use strict';const {DataTypes}=require(a265_0xc4eb76(0x130)),attributes={'uniqueid':{'type':DataTypes['STRING'],'allowNull':![]},'type':{'type':DataTypes[a265_0xc4eb76(0x135)](a265_0xc4eb76(0x134),a265_0xc4eb76(0x12e),a265_0xc4eb76(0x133)),'allowNull':![],'defaultValue':'queue'},'transferredAt':{'type':DataTypes[a265_0xc4eb76(0x12f)],'allowNull':![],'defaultValue':DataTypes[a265_0xc4eb76(0x131)]}};module[a265_0xc4eb76(0x132)]['attributes']=attributes; \ No newline at end of file +const a265_0x3bf1=['account','queue','exports','NOW','sequelize','agent'];(function(_0x5a3850,_0x2cfa0e){const _0x3bf110=function(_0x3da1a0){while(--_0x3da1a0){_0x5a3850['push'](_0x5a3850['shift']());}};_0x3bf110(++_0x2cfa0e);}(a265_0x3bf1,0x1c9));const a265_0x3da1=function(_0x5a3850,_0x2cfa0e){_0x5a3850=_0x5a3850-0x1a8;let _0x3bf110=a265_0x3bf1[_0x5a3850];return _0x3bf110;};const a265_0x2a1a8d=a265_0x3da1;'use strict';const {DataTypes}=require(a265_0x2a1a8d(0x1ab)),attributes={'uniqueid':{'type':DataTypes['STRING'],'allowNull':![]},'type':{'type':DataTypes['ENUM'](a265_0x2a1a8d(0x1ad),a265_0x2a1a8d(0x1ac),a265_0x2a1a8d(0x1a8)),'allowNull':![],'defaultValue':a265_0x2a1a8d(0x1a8)},'transferredAt':{'type':DataTypes['DATE'],'allowNull':![],'defaultValue':DataTypes[a265_0x2a1a8d(0x1aa)]}};module[a265_0x2a1a8d(0x1a9)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/faxTransferReport/faxTransferReport.controller.js b/server/api/faxTransferReport/faxTransferReport.controller.js index deecded..21a8d88 100644 --- a/server/api/faxTransferReport/faxTransferReport.controller.js +++ b/server/api/faxTransferReport/faxTransferReport.controller.js @@ -1 +1 @@ -const a266_0x342b=['merge','sequelize','params','where','query','attributes','rawAttributes','destroy','status','name','filters','options','lodash','end','FaxTransferReport','fieldName','like','model','findOne','intersection','filter','include','send','keys','length','type','map','create','order','error','sort','api','show','describe','findAll','Content-Range','includeAll','sendStatus','body','count','pick','fields','limit','then','nolimit','catch','VIRTUAL','offset','set'];(function(_0x5bce18,_0x4b4007){const _0x342b89=function(_0x59bde3){while(--_0x59bde3){_0x5bce18['push'](_0x5bce18['shift']());}};_0x342b89(++_0x4b4007);}(a266_0x342b,0x14e));const a266_0x59bd=function(_0x5bce18,_0x4b4007){_0x5bce18=_0x5bce18-0x11a;let _0x342b89=a266_0x342b[_0x5bce18];return _0x342b89;};const a266_0x14ab9d=a266_0x59bd;'use strict';const _=require(a266_0x14ab9d(0x12f)),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(a266_0x14ab9d(0x142)),{db}=require('../../mysqldb'),{Op}=require(a266_0x14ab9d(0x124));function respondWithResult(_0x13bc6f,_0x2a0c85){return _0x2a0c85=_0x2a0c85||0xc8,function(_0x55b992){const _0x17d9d1=a266_0x59bd;if(_0x55b992)return _0x13bc6f[_0x17d9d1(0x12b)](_0x2a0c85)['json'](_0x55b992);};}function respondWithFilteredResult(_0x4c9a17,_0x2d9922){return function(_0x5eb98d){const _0x5acf6e=a266_0x59bd;if(_0x5eb98d){const _0xf0126c=_0x5eb98d[_0x5acf6e(0x14a)],_0x3b9de3=_0x2d9922[_0x5acf6e(0x121)];let _0x27b103=_0x2d9922[_0x5acf6e(0x121)]+_0x2d9922[_0x5acf6e(0x11c)],_0x50a7c2;return _0x27b103>=_0xf0126c?(_0x27b103=_0xf0126c,_0x50a7c2=0xc8):_0x50a7c2=0xce,_0x4c9a17[_0x5acf6e(0x12b)](_0x50a7c2),_0x4c9a17[_0x5acf6e(0x122)](_0x5acf6e(0x146),_0x3b9de3+'-'+_0x27b103+'/'+_0xf0126c)['json'](_0x5eb98d);}return null;};}function saveUpdates(_0x1ffe19){return function(_0x394b65){const _0x5e2c86=a266_0x59bd;if(_0x394b65)return _0x394b65['update'](_0x1ffe19)[_0x5e2c86(0x11d)](function(_0x32f124){return _0x32f124;});return null;};}function removeEntity(_0x3f4561){return function(_0x1622e5){const _0x38adde=a266_0x59bd;if(_0x1622e5)return _0x1622e5['destroy']()[_0x38adde(0x11d)](function(){const _0x371467=_0x38adde;_0x3f4561[_0x371467(0x12b)](0xcc)[_0x371467(0x130)]();});};}function handleEntityNotFound(_0x33fc2c){return function(_0x50444e){const _0x528200=a266_0x59bd;return!_0x50444e&&_0x33fc2c[_0x528200(0x148)](0x194),_0x50444e;};}function handleError(_0x3aaee8,_0x50f3cc){return _0x50f3cc=_0x50f3cc||0x1f4,function(_0x5b7c5d){const _0xcc094=a266_0x59bd;logger[_0xcc094(0x140)](_0x5b7c5d['stack']),_0x5b7c5d[_0xcc094(0x12c)]&&delete _0x5b7c5d[_0xcc094(0x12c)],_0x3aaee8[_0xcc094(0x12b)](_0x50f3cc)[_0xcc094(0x139)](_0x5b7c5d);};}exports['index']=function(_0x2d7933,_0x278008){const _0x4b5837=a266_0x14ab9d;let _0x1aeb55={};const _0x34ac3b={},_0x250488={'count':0x0,'rows':[]},_0x2ed89c=_[_0x4b5837(0x13d)](db['FaxTransferReport'][_0x4b5837(0x129)],function(_0x5c414f){const _0x11a548=_0x4b5837;return{'name':_0x5c414f[_0x11a548(0x132)],'type':_0x5c414f[_0x11a548(0x13c)]['key']};});_0x34ac3b[_0x4b5837(0x134)]=_[_0x4b5837(0x13d)](_0x2ed89c,_0x4b5837(0x12c)),_0x34ac3b[_0x4b5837(0x127)]=_[_0x4b5837(0x13a)](_0x2d7933[_0x4b5837(0x127)]),_0x34ac3b[_0x4b5837(0x12d)]=_['intersection'](_0x34ac3b['model'],_0x34ac3b['query']),_0x1aeb55[_0x4b5837(0x128)]=_['intersection'](_0x34ac3b[_0x4b5837(0x134)],qs[_0x4b5837(0x11b)](_0x2d7933[_0x4b5837(0x127)][_0x4b5837(0x11b)])),_0x1aeb55[_0x4b5837(0x128)]=_0x1aeb55[_0x4b5837(0x128)][_0x4b5837(0x13b)]?_0x1aeb55[_0x4b5837(0x128)]:_0x34ac3b['model'];typeof _0x2d7933[_0x4b5837(0x127)][_0x4b5837(0x11e)]==='undefined'&&(_0x1aeb55[_0x4b5837(0x11c)]=qs[_0x4b5837(0x11c)](_0x2d7933['query'][_0x4b5837(0x11c)]),_0x1aeb55[_0x4b5837(0x121)]=qs['offset'](_0x2d7933[_0x4b5837(0x127)][_0x4b5837(0x121)]));_0x1aeb55[_0x4b5837(0x13f)]=qs[_0x4b5837(0x141)](_0x2d7933['query']['sort']),_0x1aeb55[_0x4b5837(0x126)]=qs['filters'](_[_0x4b5837(0x11a)](_0x2d7933['query'],_0x34ac3b[_0x4b5837(0x12d)]),_0x2ed89c);_0x2d7933['query'][_0x4b5837(0x137)]&&(_0x1aeb55[_0x4b5837(0x126)]=_['merge'](_0x1aeb55[_0x4b5837(0x126)],{[Op['or']]:_[_0x4b5837(0x13d)](_0x2ed89c,function(_0x313873){const _0x5e7070=_0x4b5837;if(_0x313873[_0x5e7070(0x13c)]!==_0x5e7070(0x120)){const _0x5c5b9e={};return _0x5c5b9e[_0x313873[_0x5e7070(0x12c)]]={[Op[_0x5e7070(0x133)]]:'%'+_0x2d7933[_0x5e7070(0x127)][_0x5e7070(0x137)]+'%'},_0x5c5b9e;}})}));_0x1aeb55=_[_0x4b5837(0x123)]({},_0x1aeb55,_0x2d7933[_0x4b5837(0x12e)]);const _0x13fd00={'where':_0x1aeb55['where']};return db['FaxTransferReport'][_0x4b5837(0x14a)](_0x13fd00)['then'](function(_0x40c55b){const _0x1f2269=_0x4b5837;return _0x250488[_0x1f2269(0x14a)]=_0x40c55b,_0x2d7933[_0x1f2269(0x127)][_0x1f2269(0x147)]&&(_0x1aeb55[_0x1f2269(0x138)]=[{'all':!![]}]),db[_0x1f2269(0x131)][_0x1f2269(0x145)](_0x1aeb55);})[_0x4b5837(0x11d)](function(_0x561e4d){return _0x250488['rows']=_0x561e4d,_0x250488;})[_0x4b5837(0x11d)](respondWithFilteredResult(_0x278008,_0x1aeb55))[_0x4b5837(0x11f)](handleError(_0x278008,null));},exports[a266_0x14ab9d(0x143)]=function(_0x213e29,_0x412e33){const _0x16185b=a266_0x14ab9d;let _0x4daa81={'raw':!![],'where':{'id':_0x213e29['params']['id']}};const _0x555321={};return _0x555321[_0x16185b(0x134)]=_[_0x16185b(0x13a)](db['FaxTransferReport'][_0x16185b(0x129)]),_0x555321[_0x16185b(0x127)]=_['keys'](_0x213e29['query']),_0x555321['filters']=_['intersection'](_0x555321['model'],_0x555321['query']),_0x4daa81[_0x16185b(0x128)]=_[_0x16185b(0x136)](_0x555321['model'],qs[_0x16185b(0x11b)](_0x213e29[_0x16185b(0x127)]['fields'])),_0x4daa81[_0x16185b(0x128)]=_0x4daa81[_0x16185b(0x128)][_0x16185b(0x13b)]?_0x4daa81[_0x16185b(0x128)]:_0x555321[_0x16185b(0x134)],_0x213e29[_0x16185b(0x127)][_0x16185b(0x147)]&&(_0x4daa81['include']=[{'all':!![]}]),_0x4daa81=_[_0x16185b(0x123)]({},_0x4daa81,_0x213e29[_0x16185b(0x12e)]),db[_0x16185b(0x131)][_0x16185b(0x135)](_0x4daa81)[_0x16185b(0x11d)](handleEntityNotFound(_0x412e33,null))[_0x16185b(0x11d)](respondWithResult(_0x412e33,null))['catch'](handleError(_0x412e33,null));},exports[a266_0x14ab9d(0x13e)]=function(_0x3b5b24,_0x1d0ca7){const _0x460ebf=a266_0x14ab9d;return db['FaxTransferReport']['create'](_0x3b5b24[_0x460ebf(0x149)],{})[_0x460ebf(0x11d)](respondWithResult(_0x1d0ca7,0xc9))['catch'](handleError(_0x1d0ca7,null));},exports['update']=function(_0x96a0f9,_0x39918d){const _0x3207d2=a266_0x14ab9d;return _0x96a0f9[_0x3207d2(0x149)]['id']&&delete _0x96a0f9[_0x3207d2(0x149)]['id'],db['FaxTransferReport'][_0x3207d2(0x135)]({'where':{'id':_0x96a0f9[_0x3207d2(0x125)]['id']}})[_0x3207d2(0x11d)](handleEntityNotFound(_0x39918d,null))[_0x3207d2(0x11d)](saveUpdates(_0x96a0f9[_0x3207d2(0x149)],null))[_0x3207d2(0x11d)](respondWithResult(_0x39918d,null))[_0x3207d2(0x11f)](handleError(_0x39918d,null));},exports[a266_0x14ab9d(0x12a)]=function(_0x15e495,_0x4434bb){const _0x341381=a266_0x14ab9d;return db[_0x341381(0x131)][_0x341381(0x135)]({'where':{'id':_0x15e495[_0x341381(0x125)]['id']}})['then'](handleEntityNotFound(_0x4434bb,null))[_0x341381(0x11d)](removeEntity(_0x4434bb,null))[_0x341381(0x11f)](handleError(_0x4434bb,null));},exports[a266_0x14ab9d(0x144)]=function(_0x38ad41,_0x510146){const _0x2640ec=a266_0x14ab9d;return db[_0x2640ec(0x131)]['describe']()[_0x2640ec(0x11d)](respondWithResult(_0x510146,null))['catch'](handleError(_0x510146,null));}; \ No newline at end of file +const a266_0x12c4=['rawAttributes','describe','filter','../../mysqldb','lodash','set','status','show','Content-Range','map','create','body','fields','params','query','includeAll','json','fieldName','destroy','update','api','undefined','catch','type','error','where','attributes','sequelize','order','key','offset','stack','FaxTransferReport','pick','name','end','count','VIRTUAL','then','findOne','nolimit','model','limit','intersection','findAll','filters','options','keys','../../config/logger','merge','send','include','sort','rows'];(function(_0x2ce97c,_0x1cd9ff){const _0x12c4e8=function(_0x54a431){while(--_0x54a431){_0x2ce97c['push'](_0x2ce97c['shift']());}};_0x12c4e8(++_0x1cd9ff);}(a266_0x12c4,0x1e4));const a266_0x54a4=function(_0x2ce97c,_0x1cd9ff){_0x2ce97c=_0x2ce97c-0x13f;let _0x12c4e8=a266_0x12c4[_0x2ce97c];return _0x12c4e8;};const a266_0x20b369=a266_0x54a4;'use strict';const _=require(a266_0x20b369(0x145)),qs=require('../../components/parsers/qs'),logger=require(a266_0x20b369(0x171))(a266_0x20b369(0x155)),{db}=require(a266_0x20b369(0x144)),{Op}=require(a266_0x20b369(0x15c));function respondWithResult(_0x74e736,_0x281286){return _0x281286=_0x281286||0xc8,function(_0x4b29a9){const _0x2ac693=a266_0x54a4;if(_0x4b29a9)return _0x74e736['status'](_0x281286)[_0x2ac693(0x151)](_0x4b29a9);};}function respondWithFilteredResult(_0x420836,_0x28365a){return function(_0x48b46d){const _0x446773=a266_0x54a4;if(_0x48b46d){const _0x411e52=_0x48b46d['count'],_0x4dcce7=_0x28365a[_0x446773(0x15f)];let _0x1b4df8=_0x28365a[_0x446773(0x15f)]+_0x28365a[_0x446773(0x16b)],_0x34ab7a;return _0x1b4df8>=_0x411e52?(_0x1b4df8=_0x411e52,_0x34ab7a=0xc8):_0x34ab7a=0xce,_0x420836[_0x446773(0x147)](_0x34ab7a),_0x420836[_0x446773(0x146)](_0x446773(0x149),_0x4dcce7+'-'+_0x1b4df8+'/'+_0x411e52)[_0x446773(0x151)](_0x48b46d);}return null;};}function saveUpdates(_0x46b014){return function(_0x3ea6c4){const _0xd9ce05=a266_0x54a4;if(_0x3ea6c4)return _0x3ea6c4['update'](_0x46b014)[_0xd9ce05(0x167)](function(_0x8c4af){return _0x8c4af;});return null;};}function removeEntity(_0x21cc31){return function(_0x5d1ebe){const _0x51ab95=a266_0x54a4;if(_0x5d1ebe)return _0x5d1ebe[_0x51ab95(0x153)]()[_0x51ab95(0x167)](function(){const _0x41b08f=_0x51ab95;_0x21cc31['status'](0xcc)[_0x41b08f(0x164)]();});};}function handleEntityNotFound(_0x43e872){return function(_0x43803f){return!_0x43803f&&_0x43e872['sendStatus'](0x194),_0x43803f;};}function handleError(_0x1ca3f5,_0x273c8d){return _0x273c8d=_0x273c8d||0x1f4,function(_0x53653f){const _0x155592=a266_0x54a4;logger[_0x155592(0x159)](_0x53653f[_0x155592(0x160)]),_0x53653f[_0x155592(0x163)]&&delete _0x53653f[_0x155592(0x163)],_0x1ca3f5[_0x155592(0x147)](_0x273c8d)[_0x155592(0x173)](_0x53653f);};}exports['index']=function(_0x366af8,_0x202650){const _0x50e600=a266_0x20b369;let _0x339d4c={};const _0x5b0928={},_0x26f306={'count':0x0,'rows':[]},_0x47d5f7=_[_0x50e600(0x14a)](db[_0x50e600(0x161)][_0x50e600(0x141)],function(_0x53539c){const _0xc8faf7=_0x50e600;return{'name':_0x53539c[_0xc8faf7(0x152)],'type':_0x53539c[_0xc8faf7(0x158)][_0xc8faf7(0x15e)]};});_0x5b0928[_0x50e600(0x16a)]=_[_0x50e600(0x14a)](_0x47d5f7,_0x50e600(0x163)),_0x5b0928['query']=_[_0x50e600(0x170)](_0x366af8['query']),_0x5b0928[_0x50e600(0x16e)]=_[_0x50e600(0x16c)](_0x5b0928['model'],_0x5b0928[_0x50e600(0x14f)]),_0x339d4c[_0x50e600(0x15b)]=_[_0x50e600(0x16c)](_0x5b0928[_0x50e600(0x16a)],qs[_0x50e600(0x14d)](_0x366af8[_0x50e600(0x14f)][_0x50e600(0x14d)])),_0x339d4c[_0x50e600(0x15b)]=_0x339d4c[_0x50e600(0x15b)]['length']?_0x339d4c['attributes']:_0x5b0928[_0x50e600(0x16a)];typeof _0x366af8[_0x50e600(0x14f)][_0x50e600(0x169)]===_0x50e600(0x156)&&(_0x339d4c[_0x50e600(0x16b)]=qs['limit'](_0x366af8[_0x50e600(0x14f)][_0x50e600(0x16b)]),_0x339d4c[_0x50e600(0x15f)]=qs[_0x50e600(0x15f)](_0x366af8[_0x50e600(0x14f)][_0x50e600(0x15f)]));_0x339d4c[_0x50e600(0x15d)]=qs['sort'](_0x366af8['query'][_0x50e600(0x13f)]),_0x339d4c[_0x50e600(0x15a)]=qs['filters'](_[_0x50e600(0x162)](_0x366af8[_0x50e600(0x14f)],_0x5b0928[_0x50e600(0x16e)]),_0x47d5f7);_0x366af8[_0x50e600(0x14f)][_0x50e600(0x143)]&&(_0x339d4c[_0x50e600(0x15a)]=_[_0x50e600(0x172)](_0x339d4c[_0x50e600(0x15a)],{[Op['or']]:_[_0x50e600(0x14a)](_0x47d5f7,function(_0x536610){const _0x4127c3=_0x50e600;if(_0x536610[_0x4127c3(0x158)]!==_0x4127c3(0x166)){const _0x43d406={};return _0x43d406[_0x536610[_0x4127c3(0x163)]]={[Op['like']]:'%'+_0x366af8[_0x4127c3(0x14f)][_0x4127c3(0x143)]+'%'},_0x43d406;}})}));_0x339d4c=_[_0x50e600(0x172)]({},_0x339d4c,_0x366af8[_0x50e600(0x16f)]);const _0x3ddc41={'where':_0x339d4c[_0x50e600(0x15a)]};return db['FaxTransferReport'][_0x50e600(0x165)](_0x3ddc41)['then'](function(_0x590b64){const _0x3dbeeb=_0x50e600;return _0x26f306[_0x3dbeeb(0x165)]=_0x590b64,_0x366af8['query'][_0x3dbeeb(0x150)]&&(_0x339d4c[_0x3dbeeb(0x174)]=[{'all':!![]}]),db['FaxTransferReport'][_0x3dbeeb(0x16d)](_0x339d4c);})[_0x50e600(0x167)](function(_0x1b3666){const _0x52a895=_0x50e600;return _0x26f306[_0x52a895(0x140)]=_0x1b3666,_0x26f306;})['then'](respondWithFilteredResult(_0x202650,_0x339d4c))['catch'](handleError(_0x202650,null));},exports[a266_0x20b369(0x148)]=function(_0x26423f,_0x4086f0){const _0x38c837=a266_0x20b369;let _0x31eb96={'raw':!![],'where':{'id':_0x26423f[_0x38c837(0x14e)]['id']}};const _0x4674b8={};return _0x4674b8['model']=_['keys'](db[_0x38c837(0x161)][_0x38c837(0x141)]),_0x4674b8[_0x38c837(0x14f)]=_['keys'](_0x26423f['query']),_0x4674b8[_0x38c837(0x16e)]=_[_0x38c837(0x16c)](_0x4674b8['model'],_0x4674b8[_0x38c837(0x14f)]),_0x31eb96[_0x38c837(0x15b)]=_[_0x38c837(0x16c)](_0x4674b8[_0x38c837(0x16a)],qs[_0x38c837(0x14d)](_0x26423f[_0x38c837(0x14f)][_0x38c837(0x14d)])),_0x31eb96[_0x38c837(0x15b)]=_0x31eb96['attributes']['length']?_0x31eb96[_0x38c837(0x15b)]:_0x4674b8[_0x38c837(0x16a)],_0x26423f[_0x38c837(0x14f)][_0x38c837(0x150)]&&(_0x31eb96[_0x38c837(0x174)]=[{'all':!![]}]),_0x31eb96=_[_0x38c837(0x172)]({},_0x31eb96,_0x26423f[_0x38c837(0x16f)]),db[_0x38c837(0x161)][_0x38c837(0x168)](_0x31eb96)[_0x38c837(0x167)](handleEntityNotFound(_0x4086f0,null))[_0x38c837(0x167)](respondWithResult(_0x4086f0,null))[_0x38c837(0x157)](handleError(_0x4086f0,null));},exports[a266_0x20b369(0x14b)]=function(_0x3cdd39,_0x1b3947){const _0x205b0e=a266_0x20b369;return db[_0x205b0e(0x161)][_0x205b0e(0x14b)](_0x3cdd39[_0x205b0e(0x14c)],{})[_0x205b0e(0x167)](respondWithResult(_0x1b3947,0xc9))[_0x205b0e(0x157)](handleError(_0x1b3947,null));},exports[a266_0x20b369(0x154)]=function(_0x5dbd02,_0x5aabc8){const _0x187ee7=a266_0x20b369;return _0x5dbd02[_0x187ee7(0x14c)]['id']&&delete _0x5dbd02[_0x187ee7(0x14c)]['id'],db['FaxTransferReport'][_0x187ee7(0x168)]({'where':{'id':_0x5dbd02['params']['id']}})[_0x187ee7(0x167)](handleEntityNotFound(_0x5aabc8,null))[_0x187ee7(0x167)](saveUpdates(_0x5dbd02[_0x187ee7(0x14c)],null))[_0x187ee7(0x167)](respondWithResult(_0x5aabc8,null))[_0x187ee7(0x157)](handleError(_0x5aabc8,null));},exports[a266_0x20b369(0x153)]=function(_0x35c972,_0x2503a0){const _0x44807c=a266_0x20b369;return db[_0x44807c(0x161)][_0x44807c(0x168)]({'where':{'id':_0x35c972[_0x44807c(0x14e)]['id']}})[_0x44807c(0x167)](handleEntityNotFound(_0x2503a0,null))[_0x44807c(0x167)](removeEntity(_0x2503a0,null))[_0x44807c(0x157)](handleError(_0x2503a0,null));},exports[a266_0x20b369(0x142)]=function(_0x51fc27,_0x4d5381){const _0x1f9d1b=a266_0x20b369;return db['FaxTransferReport'][_0x1f9d1b(0x142)]()[_0x1f9d1b(0x167)](respondWithResult(_0x4d5381,null))[_0x1f9d1b(0x157)](handleError(_0x4d5381,null));}; \ No newline at end of file diff --git a/server/api/faxTransferReport/faxTransferReport.model.js b/server/api/faxTransferReport/faxTransferReport.model.js index 5ab29ef..eb6db5d 100644 --- a/server/api/faxTransferReport/faxTransferReport.model.js +++ b/server/api/faxTransferReport/faxTransferReport.model.js @@ -1 +1 @@ -const a267_0x4be8=['exports','init','./faxTransferReport.options','sequelize','function','./faxTransferReport.attributes','FaxTransferReport'];(function(_0x329f2f,_0x939263){const _0x4be8c4=function(_0xe96f16){while(--_0xe96f16){_0x329f2f['push'](_0x329f2f['shift']());}};_0x4be8c4(++_0x939263);}(a267_0x4be8,0x151));const a267_0xe96f=function(_0x329f2f,_0x939263){_0x329f2f=_0x329f2f-0xd0;let _0x4be8c4=a267_0x4be8[_0x329f2f];return _0x4be8c4;};const a267_0x278622=a267_0xe96f;'use strict';const {Model}=require(a267_0x278622(0xd2)),{attributes}=require(a267_0x278622(0xd4)),{options}=require(a267_0x278622(0xd1));class FaxTransferReport extends Model{}function init(_0x43756e,_0x14c4e9){const _0x1a7656=a267_0x278622,_0x3e0777=options(_0x43756e),_0x1943a1=typeof _0x14c4e9===_0x1a7656(0xd3)?_0x14c4e9(_0x3e0777):_0x3e0777;return FaxTransferReport[_0x1a7656(0xd0)](attributes,_0x1943a1),FaxTransferReport;}module[a267_0x278622(0xd6)][a267_0x278622(0xd5)]=FaxTransferReport,module[a267_0x278622(0xd6)][a267_0x278622(0xd0)]=init; \ No newline at end of file +const a267_0xf52f=['./faxTransferReport.options','FaxTransferReport','init','exports','function','./faxTransferReport.attributes'];(function(_0x1b1264,_0x8ff0de){const _0xf52f4e=function(_0x2f5848){while(--_0x2f5848){_0x1b1264['push'](_0x1b1264['shift']());}};_0xf52f4e(++_0x8ff0de);}(a267_0xf52f,0xdb));const a267_0x2f58=function(_0x1b1264,_0x8ff0de){_0x1b1264=_0x1b1264-0x197;let _0xf52f4e=a267_0xf52f[_0x1b1264];return _0xf52f4e;};const a267_0x34137a=a267_0x2f58;'use strict';const {Model}=require('sequelize'),{attributes}=require(a267_0x34137a(0x199)),{options}=require(a267_0x34137a(0x19a));class FaxTransferReport extends Model{}function init(_0x4d35bd,_0x5b8930){const _0x802d36=a267_0x34137a,_0x2e2718=options(_0x4d35bd),_0x334496=typeof _0x5b8930===_0x802d36(0x198)?_0x5b8930(_0x2e2718):_0x2e2718;return FaxTransferReport['init'](attributes,_0x334496),FaxTransferReport;}module[a267_0x34137a(0x197)][a267_0x34137a(0x19b)]=FaxTransferReport,module['exports'][a267_0x34137a(0x19c)]=init; \ No newline at end of file diff --git a/server/api/faxTransferReport/faxTransferReport.options.js b/server/api/faxTransferReport/faxTransferReport.options.js index 3ae7cbc..52d0cd6 100644 --- a/server/api/faxTransferReport/faxTransferReport.options.js +++ b/server/api/faxTransferReport/faxTransferReport.options.js @@ -1 +1 @@ -var a268_0x29c9=['uniqueid','exports','report_fax_transfer','options'];(function(_0x1205ec,_0x42f22c){var _0x29c975=function(_0x375608){while(--_0x375608){_0x1205ec['push'](_0x1205ec['shift']());}};_0x29c975(++_0x42f22c);}(a268_0x29c9,0x141));var a268_0x3756=function(_0x1205ec,_0x42f22c){_0x1205ec=_0x1205ec-0x75;var _0x29c975=a268_0x29c9[_0x1205ec];return _0x29c975;};var a268_0x41d831=a268_0x3756;function options(_0x423757){var _0x2015de=a268_0x3756;return{'sequelize':_0x423757,'tableName':_0x2015de(0x76),'paranoid':![],'indexes':[{'name':_0x2015de(0x78),'fields':['uniqueid']}],'timestamps':!![]};}module[a268_0x41d831(0x75)][a268_0x41d831(0x77)]=options; \ No newline at end of file +var a268_0x42a8=['exports','options','report_fax_transfer','uniqueid'];(function(_0x543c29,_0x5e84e4){var _0x42a80a=function(_0x43d5a9){while(--_0x43d5a9){_0x543c29['push'](_0x543c29['shift']());}};_0x42a80a(++_0x5e84e4);}(a268_0x42a8,0xab));var a268_0x43d5=function(_0x543c29,_0x5e84e4){_0x543c29=_0x543c29-0xed;var _0x42a80a=a268_0x42a8[_0x543c29];return _0x42a80a;};var a268_0x60a85=a268_0x43d5;function options(_0xe1451e){var _0x154422=a268_0x43d5;return{'sequelize':_0xe1451e,'tableName':_0x154422(0xf0),'paranoid':![],'indexes':[{'name':_0x154422(0xed),'fields':[_0x154422(0xed)]}],'timestamps':!![]};}module[a268_0x60a85(0xee)][a268_0x60a85(0xef)]=options; \ No newline at end of file diff --git a/server/api/faxTransferReport/index.js b/server/api/faxTransferReport/index.js index 55b8506..65a52d7 100644 --- a/server/api/faxTransferReport/index.js +++ b/server/api/faxTransferReport/index.js @@ -1 +1 @@ -const a269_0x5ef7=['isAuthenticated','/:id','create','describe','index','put','update','show','express','destroy','delete','get','post','/describe','../../components/auth/service'];(function(_0x37bfd9,_0x3d4025){const _0x5ef70b=function(_0x43f344){while(--_0x43f344){_0x37bfd9['push'](_0x37bfd9['shift']());}};_0x5ef70b(++_0x3d4025);}(a269_0x5ef7,0x6d));const a269_0x43f3=function(_0x37bfd9,_0x3d4025){_0x37bfd9=_0x37bfd9-0x1d6;let _0x5ef70b=a269_0x5ef7[_0x37bfd9];return _0x5ef70b;};const a269_0x3f8a07=a269_0x43f3;'use strict';const express=require(a269_0x3f8a07(0x1da)),router=express['Router'](),auth=require(a269_0x3f8a07(0x1e0)),controller=require('./faxTransferReport.controller');router[a269_0x3f8a07(0x1dd)]('/',auth['isAuthenticated'](),controller[a269_0x3f8a07(0x1d6)]),router[a269_0x3f8a07(0x1dd)](a269_0x3f8a07(0x1df),auth[a269_0x3f8a07(0x1e1)](),controller[a269_0x3f8a07(0x1e4)]),router[a269_0x3f8a07(0x1dd)](a269_0x3f8a07(0x1e2),auth[a269_0x3f8a07(0x1e1)](),controller[a269_0x3f8a07(0x1d9)]),router[a269_0x3f8a07(0x1de)]('/',auth[a269_0x3f8a07(0x1e1)](),controller[a269_0x3f8a07(0x1e3)]),router[a269_0x3f8a07(0x1d7)](a269_0x3f8a07(0x1e2),auth['isAuthenticated'](),controller[a269_0x3f8a07(0x1d8)]),router[a269_0x3f8a07(0x1dc)](a269_0x3f8a07(0x1e2),auth[a269_0x3f8a07(0x1e1)](),controller[a269_0x3f8a07(0x1db)]),module['exports']=router; \ No newline at end of file +const a269_0x26a1=['get','delete','isAuthenticated','express','create','show','index','/:id','destroy','exports','update'];(function(_0x26988c,_0x18eb30){const _0x26a178=function(_0x5707ae){while(--_0x5707ae){_0x26988c['push'](_0x26988c['shift']());}};_0x26a178(++_0x18eb30);}(a269_0x26a1,0x17b));const a269_0x5707=function(_0x26988c,_0x18eb30){_0x26988c=_0x26988c-0x125;let _0x26a178=a269_0x26a1[_0x26988c];return _0x26a178;};const a269_0x2bda8c=a269_0x5707;'use strict';const express=require(a269_0x2bda8c(0x12e)),router=express['Router'](),auth=require('../../components/auth/service'),controller=require('./faxTransferReport.controller');router[a269_0x2bda8c(0x12b)]('/',auth[a269_0x2bda8c(0x12d)](),controller[a269_0x2bda8c(0x126)]),router['get']('/describe',auth[a269_0x2bda8c(0x12d)](),controller['describe']),router[a269_0x2bda8c(0x12b)](a269_0x2bda8c(0x127),auth[a269_0x2bda8c(0x12d)](),controller[a269_0x2bda8c(0x125)]),router['post']('/',auth[a269_0x2bda8c(0x12d)](),controller[a269_0x2bda8c(0x12f)]),router['put'](a269_0x2bda8c(0x127),auth[a269_0x2bda8c(0x12d)](),controller[a269_0x2bda8c(0x12a)]),router[a269_0x2bda8c(0x12c)](a269_0x2bda8c(0x127),auth[a269_0x2bda8c(0x12d)](),controller[a269_0x2bda8c(0x128)]),module[a269_0x2bda8c(0x129)]=router; \ No newline at end of file diff --git a/server/api/intDeskAccount/index.js b/server/api/intDeskAccount/index.js index 335bd9f..91869a9 100644 --- a/server/api/intDeskAccount/index.js +++ b/server/api/intDeskAccount/index.js @@ -1 +1 @@ -const a270_0x198e=['exports','Router','get','delete','index','/:id/fields','getConfigurations','show','create','/:id/configurations','../../components/auth/service','destroy','/:id','getFields','isAuthenticated','post','./intDeskAccount.controller','put','addConfiguration'];(function(_0x2a5246,_0x1b8342){const _0x198e51=function(_0x34f60e){while(--_0x34f60e){_0x2a5246['push'](_0x2a5246['shift']());}};_0x198e51(++_0x1b8342);}(a270_0x198e,0xd3));const a270_0x34f6=function(_0x2a5246,_0x1b8342){_0x2a5246=_0x2a5246-0x118;let _0x198e51=a270_0x198e[_0x2a5246];return _0x198e51;};const a270_0x5c9138=a270_0x34f6;'use strict';const express=require('express'),router=express[a270_0x5c9138(0x12a)](),auth=require(a270_0x5c9138(0x120)),controller=require(a270_0x5c9138(0x126));router[a270_0x5c9138(0x118)]('/',auth[a270_0x5c9138(0x124)](),controller[a270_0x5c9138(0x11a)]),router[a270_0x5c9138(0x118)](a270_0x5c9138(0x122),auth['isAuthenticated'](),controller[a270_0x5c9138(0x11d)]),router[a270_0x5c9138(0x118)](a270_0x5c9138(0x11f),auth[a270_0x5c9138(0x124)](),controller[a270_0x5c9138(0x11c)]),router[a270_0x5c9138(0x118)](a270_0x5c9138(0x11b),auth['isAuthenticated'](),controller[a270_0x5c9138(0x123)]),router[a270_0x5c9138(0x125)]('/',auth[a270_0x5c9138(0x124)](),controller[a270_0x5c9138(0x11e)]),router[a270_0x5c9138(0x125)]('/:id/configurations',auth[a270_0x5c9138(0x124)](),controller[a270_0x5c9138(0x128)]),router[a270_0x5c9138(0x127)](a270_0x5c9138(0x122),auth[a270_0x5c9138(0x124)](),controller['update']),router[a270_0x5c9138(0x119)](a270_0x5c9138(0x122),auth[a270_0x5c9138(0x124)](),controller[a270_0x5c9138(0x121)]),module[a270_0x5c9138(0x129)]=router; \ No newline at end of file +const a270_0x465a=['/:id/configurations','/:id','index','exports','post','delete','get','../../components/auth/service','update','put','/:id/fields','Router','create','express','isAuthenticated','addConfiguration','destroy','./intDeskAccount.controller'];(function(_0x89235d,_0x4a6b3b){const _0x465abc=function(_0x3d5cd2){while(--_0x3d5cd2){_0x89235d['push'](_0x89235d['shift']());}};_0x465abc(++_0x4a6b3b);}(a270_0x465a,0x112));const a270_0x3d5c=function(_0x89235d,_0x4a6b3b){_0x89235d=_0x89235d-0xe5;let _0x465abc=a270_0x465a[_0x89235d];return _0x465abc;};const a270_0x2bd1f7=a270_0x3d5c;'use strict';const express=require(a270_0x2bd1f7(0xee)),router=express[a270_0x2bd1f7(0xec)](),auth=require(a270_0x2bd1f7(0xe8)),controller=require(a270_0x2bd1f7(0xf2));router[a270_0x2bd1f7(0xe7)]('/',auth[a270_0x2bd1f7(0xef)](),controller[a270_0x2bd1f7(0xf5)]),router[a270_0x2bd1f7(0xe7)](a270_0x2bd1f7(0xf4),auth[a270_0x2bd1f7(0xef)](),controller['show']),router['get']('/:id/configurations',auth[a270_0x2bd1f7(0xef)](),controller['getConfigurations']),router[a270_0x2bd1f7(0xe7)](a270_0x2bd1f7(0xeb),auth[a270_0x2bd1f7(0xef)](),controller['getFields']),router[a270_0x2bd1f7(0xe5)]('/',auth[a270_0x2bd1f7(0xef)](),controller[a270_0x2bd1f7(0xed)]),router[a270_0x2bd1f7(0xe5)](a270_0x2bd1f7(0xf3),auth[a270_0x2bd1f7(0xef)](),controller[a270_0x2bd1f7(0xf0)]),router[a270_0x2bd1f7(0xea)](a270_0x2bd1f7(0xf4),auth[a270_0x2bd1f7(0xef)](),controller[a270_0x2bd1f7(0xe9)]),router[a270_0x2bd1f7(0xe6)](a270_0x2bd1f7(0xf4),auth['isAuthenticated'](),controller[a270_0x2bd1f7(0xf1)]),module[a270_0x2bd1f7(0xf6)]=router; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.attributes.js b/server/api/intDeskAccount/intDeskAccount.attributes.js index ff7a89d..387475e 100644 --- a/server/api/intDeskAccount/intDeskAccount.attributes.js +++ b/server/api/intDeskAccount/intDeskAccount.attributes.js @@ -1 +1 @@ -const a271_0x120a=['basic','newTab','STRING','sequelize','exports'];(function(_0x2e6a97,_0xacfb5b){const _0x120a00=function(_0x41104d){while(--_0x41104d){_0x2e6a97['push'](_0x2e6a97['shift']());}};_0x120a00(++_0xacfb5b);}(a271_0x120a,0x18e));const a271_0x4110=function(_0x2e6a97,_0xacfb5b){_0x2e6a97=_0x2e6a97-0x100;let _0x120a00=a271_0x120a[_0x2e6a97];return _0x120a00;};const a271_0x168a42=a271_0x4110;'use strict';const {DataTypes}=require(a271_0x168a42(0x100)),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a271_0x168a42(0x104)]},'username':{'type':DataTypes['STRING']},'remoteUri':{'type':DataTypes[a271_0x168a42(0x104)]},'authType':{'type':DataTypes['ENUM'](a271_0x168a42(0x102)),'defaultValue':'basic'},'password':{'type':DataTypes['STRING']},'consumerKey':{'type':DataTypes['STRING']},'consumerSecret':{'type':DataTypes[a271_0x168a42(0x104)]},'token':{'type':DataTypes[a271_0x168a42(0x104)]},'tokenSecret':{'type':DataTypes['STRING']},'serverUrl':{'type':DataTypes[a271_0x168a42(0x104)]},'type':{'type':DataTypes['ENUM']('integrationTab',a271_0x168a42(0x103)),'defaultValue':'integrationTab'}};module[a271_0x168a42(0x101)]['attributes']=attributes; \ No newline at end of file +const a271_0x4370=['sequelize','integrationTab','attributes','basic','ENUM','STRING'];(function(_0x5ee79a,_0x1510f0){const _0x4370ac=function(_0x239eac){while(--_0x239eac){_0x5ee79a['push'](_0x5ee79a['shift']());}};_0x4370ac(++_0x1510f0);}(a271_0x4370,0xb3));const a271_0x239e=function(_0x5ee79a,_0x1510f0){_0x5ee79a=_0x5ee79a-0x19c;let _0x4370ac=a271_0x4370[_0x5ee79a];return _0x4370ac;};const a271_0x12dac2=a271_0x239e;'use strict';const {DataTypes}=require(a271_0x12dac2(0x19d)),attributes={'name':{'type':DataTypes[a271_0x12dac2(0x19c)]},'description':{'type':DataTypes[a271_0x12dac2(0x19c)]},'username':{'type':DataTypes[a271_0x12dac2(0x19c)]},'remoteUri':{'type':DataTypes['STRING']},'authType':{'type':DataTypes[a271_0x12dac2(0x1a1)](a271_0x12dac2(0x1a0)),'defaultValue':'basic'},'password':{'type':DataTypes[a271_0x12dac2(0x19c)]},'consumerKey':{'type':DataTypes[a271_0x12dac2(0x19c)]},'consumerSecret':{'type':DataTypes[a271_0x12dac2(0x19c)]},'token':{'type':DataTypes[a271_0x12dac2(0x19c)]},'tokenSecret':{'type':DataTypes['STRING']},'serverUrl':{'type':DataTypes[a271_0x12dac2(0x19c)]},'type':{'type':DataTypes[a271_0x12dac2(0x1a1)](a271_0x12dac2(0x19e),'newTab'),'defaultValue':a271_0x12dac2(0x19e)}};module['exports'][a271_0x12dac2(0x19f)]=attributes; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.controller.js b/server/api/intDeskAccount/intDeskAccount.controller.js index 5d78aa7..43c906d 100644 --- a/server/api/intDeskAccount/intDeskAccount.controller.js +++ b/server/api/intDeskAccount/intDeskAccount.controller.js @@ -1 +1 @@ -const a272_0x5f4b=['%s/custom_fields','DeskField','rows','model','rawAttributes','status','DeskConfiguration','getSubjects','body','toString','_embedded','label','end','fields','where','getConfigurations','show','includeAll','include','json','basic','map','substring','limit','base64','format','destroy','../../config/logger','channel','getFields,\x20%s,\x20%s,\x20%s','length','attributes','sort','remoteUri','username','Basic\x20%s','params','nolimit','error','send','test','offset','findOne','undefined','VIRTUAL','lodash','GET','index','application/json','../../components/parsers/qs','authType','DeskAccount','statusCode','like','query','order','options','../../mysqldb','key','sequelize','addConfiguration','intersection','filters','password','set','../../components/integrations/configuration','%s:%s','name','Descriptions','type','stack','Subjects','catch','slice','then','priority','keys','findAll','tokenSecret','merge','create','filter','getFields','count','active','Authorization','entries','consumerKey','pick'];(function(_0x2dd460,_0x23c4dd){const _0x5f4b39=function(_0x208248){while(--_0x208248){_0x2dd460['push'](_0x2dd460['shift']());}};_0x5f4b39(++_0x23c4dd);}(a272_0x5f4b,0x1b5));const a272_0x2082=function(_0x2dd460,_0x23c4dd){_0x2dd460=_0x2dd460-0x13f;let _0x5f4b39=a272_0x5f4b[_0x2dd460];return _0x5f4b39;};const a272_0x3cbc8e=a272_0x2082;'use strict';const rp=require('request-promise-native'),util=require('util'),_=require(a272_0x3cbc8e(0x174)),qs=require(a272_0x3cbc8e(0x178)),logger=require(a272_0x3cbc8e(0x162))('api'),{db}=require(a272_0x3cbc8e(0x180)),{Op}=require(a272_0x3cbc8e(0x182)),integrations=require(a272_0x3cbc8e(0x188));function respondWithResult(_0x393070,_0x5dc1e2){return _0x5dc1e2=_0x5dc1e2||0xc8,function(_0x5ba252){const _0x1cfd3b=a272_0x2082;if(_0x5ba252)return _0x393070['status'](_0x5dc1e2)[_0x1cfd3b(0x15a)](_0x5ba252);};}function respondWithFilteredResult(_0xe6351e,_0x221eaf){return function(_0x10c0f7){const _0x2835de=a272_0x2082;if(_0x10c0f7){const _0x129a63=_0x10c0f7[_0x2835de(0x141)],_0x21fe42=_0x221eaf[_0x2835de(0x170)];let _0x5139b5=_0x221eaf[_0x2835de(0x170)]+_0x221eaf[_0x2835de(0x15e)],_0x1a626d;return _0x5139b5>=_0x129a63?(_0x5139b5=_0x129a63,_0x1a626d=0xc8):_0x1a626d=0xce,_0xe6351e[_0x2835de(0x14c)](_0x1a626d),_0xe6351e[_0x2835de(0x187)]('Content-Range',_0x21fe42+'-'+_0x5139b5+'/'+_0x129a63)[_0x2835de(0x15a)](_0x10c0f7);}return null;};}function saveUpdates(_0x3f5a2d){return function(_0x5b3506){const _0x140542=a272_0x2082;if(_0x5b3506)return _0x5b3506['update'](_0x3f5a2d)[_0x140542(0x191)](function(_0x2a02c6){return _0x2a02c6;});return null;};}function removeEntity(_0x98a566){return function(_0x50f67c){if(_0x50f67c)return _0x50f67c['destroy']()['then'](function(){const _0x11c9c3=a272_0x2082;_0x98a566['status'](0xcc)[_0x11c9c3(0x153)]();});};}function handleEntityNotFound(_0x524346){return function(_0x530008){return!_0x530008&&_0x524346['sendStatus'](0x194),_0x530008;};}function handleError(_0x4ae4da,_0x25ee57){return _0x25ee57=_0x25ee57||0x1f4,function(_0x2af23c){const _0x2f5938=a272_0x2082;logger['error'](_0x2af23c[_0x2f5938(0x18d)]),_0x2af23c[_0x2f5938(0x18a)]&&delete _0x2af23c['name'],_0x4ae4da[_0x2f5938(0x14c)](_0x25ee57)[_0x2f5938(0x16e)](_0x2af23c);};}exports[a272_0x3cbc8e(0x176)]=function(_0x2de778,_0x3087c4){const _0x100578=a272_0x3cbc8e;let _0x2cae4a={};const _0x68245e={},_0x35935f={'count':0x0,'rows':[]},_0x5e8c97=_[_0x100578(0x15c)](db[_0x100578(0x17a)]['rawAttributes'],function(_0x3057c3){const _0x5a2678=_0x100578;return{'name':_0x3057c3['fieldName'],'type':_0x3057c3[_0x5a2678(0x18c)][_0x5a2678(0x181)]};});_0x68245e[_0x100578(0x14a)]=_['map'](_0x5e8c97,_0x100578(0x18a)),_0x68245e['query']=_[_0x100578(0x193)](_0x2de778[_0x100578(0x17d)]),_0x68245e[_0x100578(0x185)]=_[_0x100578(0x184)](_0x68245e[_0x100578(0x14a)],_0x68245e[_0x100578(0x17d)]),_0x2cae4a[_0x100578(0x166)]=_[_0x100578(0x184)](_0x68245e[_0x100578(0x14a)],qs[_0x100578(0x154)](_0x2de778[_0x100578(0x17d)][_0x100578(0x154)])),_0x2cae4a[_0x100578(0x166)]=_0x2cae4a['attributes']['length']?_0x2cae4a[_0x100578(0x166)]:_0x68245e[_0x100578(0x14a)];typeof _0x2de778[_0x100578(0x17d)][_0x100578(0x16c)]===_0x100578(0x172)&&(_0x2cae4a['limit']=qs['limit'](_0x2de778[_0x100578(0x17d)][_0x100578(0x15e)]),_0x2cae4a[_0x100578(0x170)]=qs[_0x100578(0x170)](_0x2de778[_0x100578(0x17d)][_0x100578(0x170)]));_0x2cae4a[_0x100578(0x17e)]=qs[_0x100578(0x167)](_0x2de778['query'][_0x100578(0x167)]),_0x2cae4a[_0x100578(0x155)]=qs[_0x100578(0x185)](_['pick'](_0x2de778[_0x100578(0x17d)],_0x68245e[_0x100578(0x185)]),_0x5e8c97);_0x2de778[_0x100578(0x17d)][_0x100578(0x13f)]&&(_0x2cae4a[_0x100578(0x155)]=_['merge'](_0x2cae4a[_0x100578(0x155)],{[Op['or']]:_[_0x100578(0x15c)](_0x5e8c97,function(_0x4512f5){const _0x3b4b1b=_0x100578;if(_0x4512f5[_0x3b4b1b(0x18c)]!==_0x3b4b1b(0x173)){const _0x431ada={};return _0x431ada[_0x4512f5[_0x3b4b1b(0x18a)]]={[Op[_0x3b4b1b(0x17c)]]:'%'+_0x2de778[_0x3b4b1b(0x17d)][_0x3b4b1b(0x13f)]+'%'},_0x431ada;}})}));_0x2cae4a=_[_0x100578(0x196)]({},_0x2cae4a,_0x2de778[_0x100578(0x17f)]);const _0x552eeb={'where':_0x2cae4a[_0x100578(0x155)]};return db[_0x100578(0x17a)][_0x100578(0x141)](_0x552eeb)['then'](function(_0x20b100){const _0x5a298f=_0x100578;return _0x35935f[_0x5a298f(0x141)]=_0x20b100,_0x2de778['query'][_0x5a298f(0x158)]&&(_0x2cae4a[_0x5a298f(0x159)]=[{'all':!![]}]),db[_0x5a298f(0x17a)][_0x5a298f(0x194)](_0x2cae4a);})['then'](function(_0x1353ea){const _0x1178b4=_0x100578;return _0x35935f[_0x1178b4(0x149)]=_0x1353ea,_0x35935f;})['then'](respondWithFilteredResult(_0x3087c4,_0x2cae4a))[_0x100578(0x18f)](handleError(_0x3087c4,null));},exports[a272_0x3cbc8e(0x157)]=function(_0x586ef5,_0xd065ea){const _0x1a9ec6=a272_0x3cbc8e;let _0x161e5f={'raw':![],'where':{'id':_0x586ef5[_0x1a9ec6(0x16b)]['id']}};const _0x4a62c5={};return _0x4a62c5[_0x1a9ec6(0x14a)]=_['keys'](db[_0x1a9ec6(0x17a)][_0x1a9ec6(0x14b)]),_0x4a62c5[_0x1a9ec6(0x17d)]=_[_0x1a9ec6(0x193)](_0x586ef5[_0x1a9ec6(0x17d)]),_0x4a62c5['filters']=_['intersection'](_0x4a62c5[_0x1a9ec6(0x14a)],_0x4a62c5[_0x1a9ec6(0x17d)]),_0x161e5f[_0x1a9ec6(0x166)]=_[_0x1a9ec6(0x184)](_0x4a62c5[_0x1a9ec6(0x14a)],qs[_0x1a9ec6(0x154)](_0x586ef5[_0x1a9ec6(0x17d)][_0x1a9ec6(0x154)])),_0x161e5f[_0x1a9ec6(0x166)]=_0x161e5f[_0x1a9ec6(0x166)][_0x1a9ec6(0x165)]?_0x161e5f['attributes']:_0x4a62c5['model'],_0x586ef5['query']['includeAll']&&(_0x161e5f[_0x1a9ec6(0x159)]=[{'all':!![]}]),_0x161e5f=_[_0x1a9ec6(0x196)]({},_0x161e5f,_0x586ef5[_0x1a9ec6(0x17f)]),db['DeskAccount'][_0x1a9ec6(0x171)](_0x161e5f)[_0x1a9ec6(0x191)](handleEntityNotFound(_0xd065ea,null))[_0x1a9ec6(0x191)](respondWithResult(_0xd065ea,null))[_0x1a9ec6(0x18f)](handleError(_0xd065ea,null));},exports[a272_0x3cbc8e(0x197)]=function(_0x2771dc,_0x39c025){const _0x497f76=a272_0x3cbc8e;return db[_0x497f76(0x17a)][_0x497f76(0x197)](_0x2771dc[_0x497f76(0x14f)],{})[_0x497f76(0x191)](respondWithResult(_0x39c025,0xc9))[_0x497f76(0x18f)](handleError(_0x39c025,null));},exports['update']=function(_0x444376,_0x3abed6){const _0x56972f=a272_0x3cbc8e;return _0x444376[_0x56972f(0x14f)]['id']&&delete _0x444376[_0x56972f(0x14f)]['id'],db[_0x56972f(0x17a)][_0x56972f(0x171)]({'where':{'id':_0x444376[_0x56972f(0x16b)]['id']}})[_0x56972f(0x191)](handleEntityNotFound(_0x3abed6,null))[_0x56972f(0x191)](saveUpdates(_0x444376[_0x56972f(0x14f)],null))[_0x56972f(0x191)](respondWithResult(_0x3abed6,null))['catch'](handleError(_0x3abed6,null));},exports[a272_0x3cbc8e(0x161)]=function(_0x546ded,_0xecc7e2){const _0x11b9ca=a272_0x3cbc8e;return db['DeskAccount'][_0x11b9ca(0x171)]({'where':{'id':_0x546ded[_0x11b9ca(0x16b)]['id']}})[_0x11b9ca(0x191)](handleEntityNotFound(_0xecc7e2,null))[_0x11b9ca(0x191)](removeEntity(_0xecc7e2,null))[_0x11b9ca(0x18f)](handleError(_0xecc7e2,null));},exports[a272_0x3cbc8e(0x156)]=function(_0x53779f,_0x93acf5){const _0x144693=a272_0x3cbc8e;let _0x56b319={};const _0xa5b382={};let _0x41d0ef,_0x19a56e;return db[_0x144693(0x17a)]['findOne']({'where':{'id':_0x53779f['params']['id']}})['then'](handleEntityNotFound(_0x93acf5,null))[_0x144693(0x191)](function(_0x596cd4){const _0x49515b=_0x144693;if(_0x596cd4)return _0x41d0ef=_0x596cd4,_0xa5b382['model']=_[_0x49515b(0x193)](db['DeskConfiguration'][_0x49515b(0x14b)]),_0xa5b382[_0x49515b(0x17d)]=_['keys'](_0x53779f['query']),_0xa5b382[_0x49515b(0x185)]=_[_0x49515b(0x184)](_0xa5b382[_0x49515b(0x14a)],_0xa5b382[_0x49515b(0x17d)]),_0x56b319[_0x49515b(0x166)]=_[_0x49515b(0x184)](_0xa5b382[_0x49515b(0x14a)],qs[_0x49515b(0x154)](_0x53779f['query'][_0x49515b(0x154)])),_0x56b319[_0x49515b(0x166)]=_0x56b319[_0x49515b(0x166)][_0x49515b(0x165)]?_0x56b319['attributes']:_0xa5b382[_0x49515b(0x14a)],_0x56b319[_0x49515b(0x17e)]=qs['sort'](_0x53779f['query'][_0x49515b(0x167)]),_0x56b319['where']=qs[_0x49515b(0x185)](_[_0x49515b(0x146)](_0x53779f[_0x49515b(0x17d)],_0xa5b382['filters'])),_0x53779f[_0x49515b(0x17d)][_0x49515b(0x13f)]&&(_0x56b319['where']=_[_0x49515b(0x196)](_0x56b319[_0x49515b(0x155)],{[Op['or']]:_[_0x49515b(0x15c)](_0x56b319['attributes'],function(_0x4fcbde){const _0x2e61a2=_0x49515b,_0x70f4ad={};return _0x70f4ad[_0x4fcbde]={[Op[_0x2e61a2(0x17c)]]:'%'+_0x53779f['query'][_0x2e61a2(0x13f)]+'%'},_0x70f4ad;})})),_0x56b319=_[_0x49515b(0x196)]({},_0x56b319,_0x53779f['options']),_0x41d0ef[_0x49515b(0x156)](_0x56b319);})[_0x144693(0x191)](function(_0x4468f2){const _0x223577=_0x144693;if(_0x4468f2)return _0x19a56e=_0x4468f2[_0x223577(0x165)],typeof _0x53779f['query'][_0x223577(0x16c)]===_0x223577(0x172)&&(_0x56b319['limit']=qs[_0x223577(0x15e)](_0x53779f[_0x223577(0x17d)]['limit']),_0x56b319[_0x223577(0x170)]=qs[_0x223577(0x170)](_0x53779f[_0x223577(0x17d)][_0x223577(0x170)])),_0x41d0ef[_0x223577(0x156)](_0x56b319);})['then'](function(_0x33a81e){if(_0x33a81e)return _0x33a81e?{'count':_0x19a56e,'rows':_0x33a81e}:null;})[_0x144693(0x191)](respondWithResult(_0x93acf5,null))['catch'](handleError(_0x93acf5,null));},exports[a272_0x3cbc8e(0x183)]=function(_0x1703bc,_0x5d5c89){const _0x2a5174=a272_0x3cbc8e;return _0x1703bc[_0x2a5174(0x14f)]['id']&&delete _0x1703bc['body']['id'],db[_0x2a5174(0x17a)][_0x2a5174(0x171)]({'where':{'id':_0x1703bc['params']['id']}})[_0x2a5174(0x191)](handleEntityNotFound(_0x5d5c89,null))[_0x2a5174(0x191)](function(_0x241eb0){const _0x56a642=_0x2a5174;if(_0x241eb0)return _0x1703bc[_0x56a642(0x14f)]['AccountId']=_0x241eb0['id'],_0x1703bc['body'][_0x56a642(0x18e)]=integrations[_0x56a642(0x14e)](_0x1703bc[_0x56a642(0x14f)][_0x56a642(0x163)],_0x1703bc[_0x56a642(0x14f)][_0x56a642(0x18c)]),_0x1703bc[_0x56a642(0x14f)]['Descriptions']=integrations['getDescriptions'](_0x1703bc[_0x56a642(0x14f)][_0x56a642(0x163)],_0x1703bc[_0x56a642(0x14f)][_0x56a642(0x18c)]),db[_0x56a642(0x14d)]['create'](_0x1703bc[_0x56a642(0x14f)],{'include':[{'model':db[_0x56a642(0x148)],'as':_0x56a642(0x18e)},{'model':db[_0x56a642(0x148)],'as':_0x56a642(0x18b)}]});return null;})['then'](respondWithResult(_0x5d5c89,null))[_0x2a5174(0x18f)](handleError(_0x5d5c89,null));},exports[a272_0x3cbc8e(0x140)]=function(_0x5321fd,_0x3f3287){const _0x105668=a272_0x3cbc8e,_0x56cc53=[{'name':_0x105668(0x192),'label':_0x105668(0x192),'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 _0x495a7e='';return db[_0x105668(0x17a)]['findOne']({'where':{'id':_0x5321fd[_0x105668(0x16b)]['id']},'attributes':['id',_0x105668(0x168),_0x105668(0x179),_0x105668(0x169),_0x105668(0x186),_0x105668(0x145),'consumerSecret','token',_0x105668(0x195)]})[_0x105668(0x191)](handleEntityNotFound(_0x3f3287,null))[_0x105668(0x191)](function(_0x223cbf){const _0x373482=_0x105668;if(_0x223cbf){_0x495a7e=_0x223cbf[_0x373482(0x168)];const _0x56b848=_0x495a7e[_0x373482(0x190)](-0x1);_0x56b848==='/'&&(_0x495a7e=_0x495a7e[_0x373482(0x15d)](0x0,_0x495a7e['lastIndexOf'](_0x56b848)));const _0x576ebd={'method':_0x373482(0x175),'uri':util[_0x373482(0x160)](_0x373482(0x147),_0x495a7e),'headers':{'Content-Type':_0x373482(0x177),'Accept':_0x373482(0x177)},'json':!![]};return _0x223cbf[_0x373482(0x179)]===_0x373482(0x15b)&&(_0x576ebd['headers'][_0x373482(0x143)]=util[_0x373482(0x160)](_0x373482(0x16a),Buffer['from'](util['format'](_0x373482(0x189),_0x223cbf[_0x373482(0x169)],_0x223cbf[_0x373482(0x186)]))[_0x373482(0x150)](_0x373482(0x15f)))),rp(_0x576ebd)[_0x373482(0x191)](function(_0x4d30b8){const _0x60a710=_0x373482;return _0x56cc53['concat'](_[_0x60a710(0x15c)](_0x4d30b8[_0x60a710(0x151)][_0x60a710(0x144)],function(_0x2e0316){const _0x28ff4b=_0x60a710;return{'id':_0x2e0316['name'],'name':_0x2e0316[_0x28ff4b(0x18a)],'type':_0x2e0316[_0x28ff4b(0x18c)],'active':_0x2e0316[_0x28ff4b(0x142)],'label':_0x2e0316[_0x28ff4b(0x152)],'custom':!![]};}));});}})[_0x105668(0x191)](function(_0x5a6813){const _0xd89517=_0x105668;return{'count':_0x5a6813[_0xd89517(0x165)],'rows':_0x5a6813};})[_0x105668(0x191)](respondWithResult(_0x3f3287,null))['catch'](function(_0x34b425){const _0x3ddc4f=_0x105668;let _0x30fb43=_0x5321fd[_0x3ddc4f(0x17d)][_0x3ddc4f(0x16f)]?0x1f4:_0x34b425['statusCode']||0x1f4;logger[_0x3ddc4f(0x16d)](_0x3ddc4f(0x164),_0x3ddc4f(0x140),_0x30fb43,JSON['stringify'](_0x34b425)),delete _0x34b425[_0x3ddc4f(0x18a)],_0x30fb43===0x191&&(_0x30fb43=0x190),_0x3f3287['status'](_0x30fb43)[_0x3ddc4f(0x16e)](_0x5321fd['query']['test']?{'message':'Wrong\x20credentials','statusCode':_0x34b425[_0x3ddc4f(0x17b)]}:_0x34b425);});}; \ No newline at end of file +const a272_0x3bcb=['type','format','query','getSubjects','nolimit','then','stack','offset','DeskAccount','error','../../components/integrations/configuration','stringify','getDescriptions','catch','length','entries','model','DeskConfiguration','application/json','pick','consumerKey','remoteUri','Wrong\x20credentials','name','rawAttributes','../../mysqldb','Basic\x20%s','intersection','Subjects','%s/custom_fields','sort','label','filters','tokenSecret','../../components/parsers/qs','send','concat','sequelize','json','base64','DeskField','toString','findOne','password','Authorization','lastIndexOf','fieldName','order','priority','status','GET','options','keys','body','slice','where','show','getFields,\x20%s,\x20%s,\x20%s','fields','map','token','util','channel','consumerSecret','end','undefined','create','destroy','count','../../config/logger','findAll','params','api','limit','getFields','test','includeAll','substring','active','Descriptions','include','from','index','AccountId','getConfigurations','attributes','authType','lodash','filter','username','like','merge','update','statusCode','request-promise-native'];(function(_0x854832,_0x539b35){const _0x3bcb41=function(_0x27a30b){while(--_0x27a30b){_0x854832['push'](_0x854832['shift']());}};_0x3bcb41(++_0x539b35);}(a272_0x3bcb,0x98));const a272_0x27a3=function(_0x854832,_0x539b35){_0x854832=_0x854832-0x13b;let _0x3bcb41=a272_0x3bcb[_0x854832];return _0x3bcb41;};const a272_0x1269cb=a272_0x27a3;'use strict';const rp=require(a272_0x1269cb(0x160)),util=require(a272_0x1269cb(0x13f)),_=require(a272_0x1269cb(0x159)),qs=require(a272_0x1269cb(0x183)),logger=require(a272_0x1269cb(0x147))(a272_0x1269cb(0x14a)),{db}=require(a272_0x1269cb(0x17a)),{Op}=require(a272_0x1269cb(0x186)),integrations=require(a272_0x1269cb(0x16b));function respondWithResult(_0x2b95d2,_0x883edf){return _0x883edf=_0x883edf||0xc8,function(_0x42bd40){const _0x2911c9=a272_0x27a3;if(_0x42bd40)return _0x2b95d2[_0x2911c9(0x192)](_0x883edf)[_0x2911c9(0x187)](_0x42bd40);};}function respondWithFilteredResult(_0x5175e0,_0x4e09fd){return function(_0x1cbe9a){const _0x59f097=a272_0x27a3;if(_0x1cbe9a){const _0x521c89=_0x1cbe9a['count'],_0x162544=_0x4e09fd[_0x59f097(0x168)];let _0x21a8f9=_0x4e09fd[_0x59f097(0x168)]+_0x4e09fd[_0x59f097(0x14b)],_0x2ff0a7;return _0x21a8f9>=_0x521c89?(_0x21a8f9=_0x521c89,_0x2ff0a7=0xc8):_0x2ff0a7=0xce,_0x5175e0[_0x59f097(0x192)](_0x2ff0a7),_0x5175e0['set']('Content-Range',_0x162544+'-'+_0x21a8f9+'/'+_0x521c89)[_0x59f097(0x187)](_0x1cbe9a);}return null;};}function saveUpdates(_0x42b9d4){return function(_0xf2a568){const _0x3d502e=a272_0x27a3;if(_0xf2a568)return _0xf2a568[_0x3d502e(0x15e)](_0x42b9d4)['then'](function(_0x245b60){return _0x245b60;});return null;};}function removeEntity(_0x2b5910){return function(_0x2f3733){if(_0x2f3733)return _0x2f3733['destroy']()['then'](function(){const _0x3dbb37=a272_0x27a3;_0x2b5910[_0x3dbb37(0x192)](0xcc)[_0x3dbb37(0x142)]();});};}function handleEntityNotFound(_0x389ab7){return function(_0x136376){return!_0x136376&&_0x389ab7['sendStatus'](0x194),_0x136376;};}function handleError(_0x17e7c2,_0x428577){return _0x428577=_0x428577||0x1f4,function(_0x160c46){const _0x33d78e=a272_0x27a3;logger['error'](_0x160c46[_0x33d78e(0x167)]),_0x160c46[_0x33d78e(0x178)]&&delete _0x160c46['name'],_0x17e7c2[_0x33d78e(0x192)](_0x428577)[_0x33d78e(0x184)](_0x160c46);};}exports[a272_0x1269cb(0x154)]=function(_0x3245d2,_0x3d80c3){const _0x1e7bf5=a272_0x1269cb;let _0x433cab={};const _0x3cedb7={},_0x4b16c4={'count':0x0,'rows':[]},_0x43d021=_['map'](db[_0x1e7bf5(0x169)][_0x1e7bf5(0x179)],function(_0x22253a){const _0x366f86=_0x1e7bf5;return{'name':_0x22253a[_0x366f86(0x18f)],'type':_0x22253a[_0x366f86(0x161)]['key']};});_0x3cedb7['model']=_[_0x1e7bf5(0x13d)](_0x43d021,_0x1e7bf5(0x178)),_0x3cedb7['query']=_[_0x1e7bf5(0x195)](_0x3245d2['query']),_0x3cedb7[_0x1e7bf5(0x181)]=_['intersection'](_0x3cedb7[_0x1e7bf5(0x171)],_0x3cedb7[_0x1e7bf5(0x163)]),_0x433cab['attributes']=_[_0x1e7bf5(0x17c)](_0x3cedb7['model'],qs[_0x1e7bf5(0x13c)](_0x3245d2[_0x1e7bf5(0x163)][_0x1e7bf5(0x13c)])),_0x433cab[_0x1e7bf5(0x157)]=_0x433cab[_0x1e7bf5(0x157)][_0x1e7bf5(0x16f)]?_0x433cab[_0x1e7bf5(0x157)]:_0x3cedb7['model'];typeof _0x3245d2['query']['nolimit']==='undefined'&&(_0x433cab[_0x1e7bf5(0x14b)]=qs[_0x1e7bf5(0x14b)](_0x3245d2['query'][_0x1e7bf5(0x14b)]),_0x433cab[_0x1e7bf5(0x168)]=qs['offset'](_0x3245d2['query'][_0x1e7bf5(0x168)]));_0x433cab[_0x1e7bf5(0x190)]=qs[_0x1e7bf5(0x17f)](_0x3245d2[_0x1e7bf5(0x163)]['sort']),_0x433cab['where']=qs[_0x1e7bf5(0x181)](_[_0x1e7bf5(0x174)](_0x3245d2[_0x1e7bf5(0x163)],_0x3cedb7[_0x1e7bf5(0x181)]),_0x43d021);_0x3245d2['query'][_0x1e7bf5(0x15a)]&&(_0x433cab[_0x1e7bf5(0x198)]=_['merge'](_0x433cab[_0x1e7bf5(0x198)],{[Op['or']]:_['map'](_0x43d021,function(_0x3d2ae6){const _0xa2e5f9=_0x1e7bf5;if(_0x3d2ae6['type']!=='VIRTUAL'){const _0x34613f={};return _0x34613f[_0x3d2ae6['name']]={[Op[_0xa2e5f9(0x15c)]]:'%'+_0x3245d2['query']['filter']+'%'},_0x34613f;}})}));_0x433cab=_[_0x1e7bf5(0x15d)]({},_0x433cab,_0x3245d2[_0x1e7bf5(0x194)]);const _0x574b7b={'where':_0x433cab[_0x1e7bf5(0x198)]};return db[_0x1e7bf5(0x169)]['count'](_0x574b7b)['then'](function(_0x5086e3){const _0x503fcb=_0x1e7bf5;return _0x4b16c4[_0x503fcb(0x146)]=_0x5086e3,_0x3245d2[_0x503fcb(0x163)][_0x503fcb(0x14e)]&&(_0x433cab['include']=[{'all':!![]}]),db[_0x503fcb(0x169)][_0x503fcb(0x148)](_0x433cab);})[_0x1e7bf5(0x166)](function(_0x423915){return _0x4b16c4['rows']=_0x423915,_0x4b16c4;})[_0x1e7bf5(0x166)](respondWithFilteredResult(_0x3d80c3,_0x433cab))[_0x1e7bf5(0x16e)](handleError(_0x3d80c3,null));},exports[a272_0x1269cb(0x199)]=function(_0x35da8d,_0x43c2c3){const _0x2c8f60=a272_0x1269cb;let _0x4a03a9={'raw':![],'where':{'id':_0x35da8d[_0x2c8f60(0x149)]['id']}};const _0x253024={};return _0x253024[_0x2c8f60(0x171)]=_[_0x2c8f60(0x195)](db[_0x2c8f60(0x169)][_0x2c8f60(0x179)]),_0x253024['query']=_['keys'](_0x35da8d[_0x2c8f60(0x163)]),_0x253024[_0x2c8f60(0x181)]=_['intersection'](_0x253024['model'],_0x253024[_0x2c8f60(0x163)]),_0x4a03a9[_0x2c8f60(0x157)]=_[_0x2c8f60(0x17c)](_0x253024[_0x2c8f60(0x171)],qs['fields'](_0x35da8d['query'][_0x2c8f60(0x13c)])),_0x4a03a9[_0x2c8f60(0x157)]=_0x4a03a9[_0x2c8f60(0x157)]['length']?_0x4a03a9[_0x2c8f60(0x157)]:_0x253024[_0x2c8f60(0x171)],_0x35da8d[_0x2c8f60(0x163)]['includeAll']&&(_0x4a03a9[_0x2c8f60(0x152)]=[{'all':!![]}]),_0x4a03a9=_[_0x2c8f60(0x15d)]({},_0x4a03a9,_0x35da8d[_0x2c8f60(0x194)]),db[_0x2c8f60(0x169)]['findOne'](_0x4a03a9)[_0x2c8f60(0x166)](handleEntityNotFound(_0x43c2c3,null))[_0x2c8f60(0x166)](respondWithResult(_0x43c2c3,null))[_0x2c8f60(0x16e)](handleError(_0x43c2c3,null));},exports[a272_0x1269cb(0x144)]=function(_0x22817f,_0x2c0f21){const _0x26ec4d=a272_0x1269cb;return db['DeskAccount'][_0x26ec4d(0x144)](_0x22817f[_0x26ec4d(0x196)],{})[_0x26ec4d(0x166)](respondWithResult(_0x2c0f21,0xc9))['catch'](handleError(_0x2c0f21,null));},exports[a272_0x1269cb(0x15e)]=function(_0x321631,_0x136ade){const _0x4087b5=a272_0x1269cb;return _0x321631[_0x4087b5(0x196)]['id']&&delete _0x321631[_0x4087b5(0x196)]['id'],db['DeskAccount'][_0x4087b5(0x18b)]({'where':{'id':_0x321631['params']['id']}})[_0x4087b5(0x166)](handleEntityNotFound(_0x136ade,null))[_0x4087b5(0x166)](saveUpdates(_0x321631[_0x4087b5(0x196)],null))[_0x4087b5(0x166)](respondWithResult(_0x136ade,null))['catch'](handleError(_0x136ade,null));},exports[a272_0x1269cb(0x145)]=function(_0x58db0c,_0x47847a){const _0x21384e=a272_0x1269cb;return db[_0x21384e(0x169)][_0x21384e(0x18b)]({'where':{'id':_0x58db0c[_0x21384e(0x149)]['id']}})[_0x21384e(0x166)](handleEntityNotFound(_0x47847a,null))['then'](removeEntity(_0x47847a,null))[_0x21384e(0x16e)](handleError(_0x47847a,null));},exports[a272_0x1269cb(0x156)]=function(_0x34e085,_0x10e500){const _0x488b5e=a272_0x1269cb;let _0x404ff9={};const _0x19ca5d={};let _0x14e6b0,_0x5563e3;return db[_0x488b5e(0x169)][_0x488b5e(0x18b)]({'where':{'id':_0x34e085['params']['id']}})[_0x488b5e(0x166)](handleEntityNotFound(_0x10e500,null))[_0x488b5e(0x166)](function(_0x238674){const _0x92ee40=_0x488b5e;if(_0x238674)return _0x14e6b0=_0x238674,_0x19ca5d[_0x92ee40(0x171)]=_[_0x92ee40(0x195)](db[_0x92ee40(0x172)][_0x92ee40(0x179)]),_0x19ca5d[_0x92ee40(0x163)]=_[_0x92ee40(0x195)](_0x34e085[_0x92ee40(0x163)]),_0x19ca5d['filters']=_[_0x92ee40(0x17c)](_0x19ca5d[_0x92ee40(0x171)],_0x19ca5d[_0x92ee40(0x163)]),_0x404ff9[_0x92ee40(0x157)]=_[_0x92ee40(0x17c)](_0x19ca5d[_0x92ee40(0x171)],qs[_0x92ee40(0x13c)](_0x34e085[_0x92ee40(0x163)]['fields'])),_0x404ff9[_0x92ee40(0x157)]=_0x404ff9[_0x92ee40(0x157)]['length']?_0x404ff9[_0x92ee40(0x157)]:_0x19ca5d[_0x92ee40(0x171)],_0x404ff9[_0x92ee40(0x190)]=qs[_0x92ee40(0x17f)](_0x34e085[_0x92ee40(0x163)][_0x92ee40(0x17f)]),_0x404ff9[_0x92ee40(0x198)]=qs[_0x92ee40(0x181)](_[_0x92ee40(0x174)](_0x34e085[_0x92ee40(0x163)],_0x19ca5d[_0x92ee40(0x181)])),_0x34e085['query'][_0x92ee40(0x15a)]&&(_0x404ff9[_0x92ee40(0x198)]=_[_0x92ee40(0x15d)](_0x404ff9[_0x92ee40(0x198)],{[Op['or']]:_[_0x92ee40(0x13d)](_0x404ff9[_0x92ee40(0x157)],function(_0x31325a){const _0xd9512=_0x92ee40,_0x587b49={};return _0x587b49[_0x31325a]={[Op[_0xd9512(0x15c)]]:'%'+_0x34e085[_0xd9512(0x163)][_0xd9512(0x15a)]+'%'},_0x587b49;})})),_0x404ff9=_[_0x92ee40(0x15d)]({},_0x404ff9,_0x34e085[_0x92ee40(0x194)]),_0x14e6b0[_0x92ee40(0x156)](_0x404ff9);})[_0x488b5e(0x166)](function(_0x327a9a){const _0x45e742=_0x488b5e;if(_0x327a9a)return _0x5563e3=_0x327a9a[_0x45e742(0x16f)],typeof _0x34e085[_0x45e742(0x163)][_0x45e742(0x165)]===_0x45e742(0x143)&&(_0x404ff9[_0x45e742(0x14b)]=qs[_0x45e742(0x14b)](_0x34e085[_0x45e742(0x163)][_0x45e742(0x14b)]),_0x404ff9[_0x45e742(0x168)]=qs[_0x45e742(0x168)](_0x34e085[_0x45e742(0x163)]['offset'])),_0x14e6b0[_0x45e742(0x156)](_0x404ff9);})['then'](function(_0x720614){if(_0x720614)return _0x720614?{'count':_0x5563e3,'rows':_0x720614}:null;})[_0x488b5e(0x166)](respondWithResult(_0x10e500,null))['catch'](handleError(_0x10e500,null));},exports['addConfiguration']=function(_0x1a5a4c,_0x1b2b30){const _0x5d1193=a272_0x1269cb;return _0x1a5a4c[_0x5d1193(0x196)]['id']&&delete _0x1a5a4c[_0x5d1193(0x196)]['id'],db[_0x5d1193(0x169)][_0x5d1193(0x18b)]({'where':{'id':_0x1a5a4c[_0x5d1193(0x149)]['id']}})['then'](handleEntityNotFound(_0x1b2b30,null))[_0x5d1193(0x166)](function(_0x3db0fc){const _0x515a66=_0x5d1193;if(_0x3db0fc)return _0x1a5a4c['body'][_0x515a66(0x155)]=_0x3db0fc['id'],_0x1a5a4c[_0x515a66(0x196)][_0x515a66(0x17d)]=integrations[_0x515a66(0x164)](_0x1a5a4c[_0x515a66(0x196)][_0x515a66(0x140)],_0x1a5a4c[_0x515a66(0x196)][_0x515a66(0x161)]),_0x1a5a4c[_0x515a66(0x196)][_0x515a66(0x151)]=integrations[_0x515a66(0x16d)](_0x1a5a4c[_0x515a66(0x196)][_0x515a66(0x140)],_0x1a5a4c[_0x515a66(0x196)][_0x515a66(0x161)]),db[_0x515a66(0x172)][_0x515a66(0x144)](_0x1a5a4c[_0x515a66(0x196)],{'include':[{'model':db[_0x515a66(0x189)],'as':'Subjects'},{'model':db[_0x515a66(0x189)],'as':_0x515a66(0x151)}]});return null;})[_0x5d1193(0x166)](respondWithResult(_0x1b2b30,null))['catch'](handleError(_0x1b2b30,null));},exports[a272_0x1269cb(0x14c)]=function(_0x2fd069,_0x4574eb){const _0x29424d=a272_0x1269cb,_0x4f101c=[{'name':_0x29424d(0x191),'label':_0x29424d(0x191),'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 _0x3b44a2='';return db[_0x29424d(0x169)][_0x29424d(0x18b)]({'where':{'id':_0x2fd069['params']['id']},'attributes':['id','remoteUri',_0x29424d(0x158),_0x29424d(0x15b),_0x29424d(0x18c),_0x29424d(0x175),_0x29424d(0x141),_0x29424d(0x13e),_0x29424d(0x182)]})[_0x29424d(0x166)](handleEntityNotFound(_0x4574eb,null))[_0x29424d(0x166)](function(_0x1117a7){const _0x1e616a=_0x29424d;if(_0x1117a7){_0x3b44a2=_0x1117a7[_0x1e616a(0x176)];const _0x2942b5=_0x3b44a2[_0x1e616a(0x197)](-0x1);_0x2942b5==='/'&&(_0x3b44a2=_0x3b44a2[_0x1e616a(0x14f)](0x0,_0x3b44a2[_0x1e616a(0x18e)](_0x2942b5)));const _0x427370={'method':_0x1e616a(0x193),'uri':util[_0x1e616a(0x162)](_0x1e616a(0x17e),_0x3b44a2),'headers':{'Content-Type':_0x1e616a(0x173),'Accept':_0x1e616a(0x173)},'json':!![]};return _0x1117a7[_0x1e616a(0x158)]==='basic'&&(_0x427370['headers'][_0x1e616a(0x18d)]=util['format'](_0x1e616a(0x17b),Buffer[_0x1e616a(0x153)](util[_0x1e616a(0x162)]('%s:%s',_0x1117a7[_0x1e616a(0x15b)],_0x1117a7['password']))[_0x1e616a(0x18a)](_0x1e616a(0x188)))),rp(_0x427370)[_0x1e616a(0x166)](function(_0x21a2bf){const _0x5bae4e=_0x1e616a;return _0x4f101c[_0x5bae4e(0x185)](_[_0x5bae4e(0x13d)](_0x21a2bf['_embedded'][_0x5bae4e(0x170)],function(_0x27c66c){const _0x4108f3=_0x5bae4e;return{'id':_0x27c66c[_0x4108f3(0x178)],'name':_0x27c66c[_0x4108f3(0x178)],'type':_0x27c66c[_0x4108f3(0x161)],'active':_0x27c66c[_0x4108f3(0x150)],'label':_0x27c66c[_0x4108f3(0x180)],'custom':!![]};}));});}})[_0x29424d(0x166)](function(_0x2a9684){const _0x5eaf71=_0x29424d;return{'count':_0x2a9684[_0x5eaf71(0x16f)],'rows':_0x2a9684};})[_0x29424d(0x166)](respondWithResult(_0x4574eb,null))['catch'](function(_0x43e47d){const _0x55fc77=_0x29424d;let _0x29e750=_0x2fd069['query'][_0x55fc77(0x14d)]?0x1f4:_0x43e47d[_0x55fc77(0x15f)]||0x1f4;logger[_0x55fc77(0x16a)](_0x55fc77(0x13b),_0x55fc77(0x14c),_0x29e750,JSON[_0x55fc77(0x16c)](_0x43e47d)),delete _0x43e47d[_0x55fc77(0x178)],_0x29e750===0x191&&(_0x29e750=0x190),_0x4574eb['status'](_0x29e750)[_0x55fc77(0x184)](_0x2fd069['query'][_0x55fc77(0x14d)]?{'message':_0x55fc77(0x177),'statusCode':_0x43e47d[_0x55fc77(0x15f)]}:_0x43e47d);});}; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.model.js b/server/api/intDeskAccount/intDeskAccount.model.js index 8ade924..a79dd39 100644 --- a/server/api/intDeskAccount/intDeskAccount.model.js +++ b/server/api/intDeskAccount/intDeskAccount.model.js @@ -1 +1 @@ -const a273_0x5b5e=['function','DeskAccount','sequelize','exports','init'];(function(_0x90eb34,_0x1ff8be){const _0x5b5e85=function(_0x5493fc){while(--_0x5493fc){_0x90eb34['push'](_0x90eb34['shift']());}};_0x5b5e85(++_0x1ff8be);}(a273_0x5b5e,0x75));const a273_0x5493=function(_0x90eb34,_0x1ff8be){_0x90eb34=_0x90eb34-0x18f;let _0x5b5e85=a273_0x5b5e[_0x90eb34];return _0x5b5e85;};const a273_0x469d85=a273_0x5493;'use strict';const {Model}=require(a273_0x469d85(0x18f)),{attributes}=require('./intDeskAccount.attributes'),{options}=require('./intDeskAccount.options');class DeskAccount extends Model{}function init(_0x10a1c2,_0x2ef7b3){const _0x85b209=a273_0x469d85,_0x1f6059=options(_0x10a1c2),_0x316a62=typeof _0x2ef7b3===_0x85b209(0x192)?_0x2ef7b3(_0x1f6059):_0x1f6059;return DeskAccount[_0x85b209(0x191)](attributes,_0x316a62),DeskAccount;}module[a273_0x469d85(0x190)][a273_0x469d85(0x193)]=DeskAccount,module['exports'][a273_0x469d85(0x191)]=init; \ No newline at end of file +const a273_0x8ec9=['init','exports','DeskAccount','./intDeskAccount.attributes','function','./intDeskAccount.options'];(function(_0x2088c2,_0x3eaeeb){const _0x8ec993=function(_0x4204b8){while(--_0x4204b8){_0x2088c2['push'](_0x2088c2['shift']());}};_0x8ec993(++_0x3eaeeb);}(a273_0x8ec9,0x1ee));const a273_0x4204=function(_0x2088c2,_0x3eaeeb){_0x2088c2=_0x2088c2-0x1b1;let _0x8ec993=a273_0x8ec9[_0x2088c2];return _0x8ec993;};const a273_0x2f974b=a273_0x4204;'use strict';const {Model}=require('sequelize'),{attributes}=require(a273_0x2f974b(0x1b2)),{options}=require(a273_0x2f974b(0x1b4));class DeskAccount extends Model{}function init(_0x3e0a77,_0x9237cb){const _0x39fd71=a273_0x2f974b,_0x3f7179=options(_0x3e0a77),_0x2c59fa=typeof _0x9237cb===_0x39fd71(0x1b3)?_0x9237cb(_0x3f7179):_0x3f7179;return DeskAccount[_0x39fd71(0x1b5)](attributes,_0x2c59fa),DeskAccount;}module[a273_0x2f974b(0x1b6)][a273_0x2f974b(0x1b1)]=DeskAccount,module[a273_0x2f974b(0x1b6)][a273_0x2f974b(0x1b5)]=init; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.options.js b/server/api/intDeskAccount/intDeskAccount.options.js index f258c82..776d7aa 100644 --- a/server/api/intDeskAccount/intDeskAccount.options.js +++ b/server/api/intDeskAccount/intDeskAccount.options.js @@ -1 +1 @@ -var a274_0x30b7=['options','exports'];(function(_0x2549f8,_0x5884ac){var _0x30b706=function(_0x515efe){while(--_0x515efe){_0x2549f8['push'](_0x2549f8['shift']());}};_0x30b706(++_0x5884ac);}(a274_0x30b7,0x9c));var a274_0x515e=function(_0x2549f8,_0x5884ac){_0x2549f8=_0x2549f8-0x12f;var _0x30b706=a274_0x30b7[_0x2549f8];return _0x30b706;};var a274_0x13bae1=a274_0x515e;function options(_0x5b057e){return{'sequelize':_0x5b057e,'tableName':'int_desk_accounts','paranoid':![],'indexes':[],'timestamps':!![]};}module[a274_0x13bae1(0x130)][a274_0x13bae1(0x12f)]=options; \ No newline at end of file +var a274_0xcde0=['exports','int_desk_accounts'];(function(_0x5e3ec4,_0x1f9d9a){var _0xcde03a=function(_0x3e644a){while(--_0x3e644a){_0x5e3ec4['push'](_0x5e3ec4['shift']());}};_0xcde03a(++_0x1f9d9a);}(a274_0xcde0,0x112));var a274_0x3e64=function(_0x5e3ec4,_0x1f9d9a){_0x5e3ec4=_0x5e3ec4-0x19e;var _0xcde03a=a274_0xcde0[_0x5e3ec4];return _0xcde03a;};var a274_0x3f5eb3=a274_0x3e64;function options(_0x3333d2){var _0x336f9f=a274_0x3e64;return{'sequelize':_0x3333d2,'tableName':_0x336f9f(0x19f),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a274_0x3f5eb3(0x19e)]['options']=options; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.rpc.js b/server/api/intDeskAccount/intDeskAccount.rpc.js index 1440085..4bc4619 100644 --- a/server/api/intDeskAccount/intDeskAccount.rpc.js +++ b/server/api/intDeskAccount/intDeskAccount.rpc.js @@ -1 +1 @@ -const a275_0x4574=['lodash','catch','error','GetDeskAccount','raw','then','model','../../config/logger','message','limit','rpc','DeskAccount','ShowDeskAccount','debug','where','map','attributes','findAll','include','options','findOne','info'];(function(_0x9bcf4,_0x19b11b){const _0x457400=function(_0x13941a){while(--_0x13941a){_0x9bcf4['push'](_0x9bcf4['shift']());}};_0x457400(++_0x19b11b);}(a275_0x4574,0x112));const a275_0x1394=function(_0x9bcf4,_0x19b11b){_0x9bcf4=_0x9bcf4-0xe3;let _0x457400=a275_0x4574[_0x9bcf4];return _0x457400;};const a275_0x1c6565=a275_0x1394;'use strict';const _=require(a275_0x1c6565(0xef)),db=require('../../mysqldb')['db'],logger=require(a275_0x1c6565(0xf6))(a275_0x1c6565(0xe3));exports[a275_0x1c6565(0xf2)]=function(_0x5c77b0){const _0x3f9af4=this;return new Promise(function(_0x1fb793,_0x5e7281){const _0x5e06bf=a275_0x1394;return db[_0x5e06bf(0xe4)][_0x5e06bf(0xea)]({'raw':_0x5c77b0[_0x5e06bf(0xec)]?_0x5c77b0['options'][_0x5e06bf(0xf3)]===undefined?!![]:![]:!![],'where':_0x5c77b0[_0x5e06bf(0xec)]?_0x5c77b0['options']['where']||null:null,'attributes':_0x5c77b0['options']?_0x5c77b0[_0x5e06bf(0xec)]['attributes']||null:null,'limit':_0x5c77b0[_0x5e06bf(0xec)]?_0x5c77b0[_0x5e06bf(0xec)][_0x5e06bf(0xf8)]||null:null,'include':_0x5c77b0[_0x5e06bf(0xec)]?_0x5c77b0[_0x5e06bf(0xec)][_0x5e06bf(0xeb)]?_['map'](_0x5c77b0[_0x5e06bf(0xec)][_0x5e06bf(0xeb)],function(_0x5ea3c9){const _0x48b578=_0x5e06bf;return{'model':db[_0x5ea3c9[_0x48b578(0xf5)]],'as':_0x5ea3c9['as'],'attributes':_0x5ea3c9['attributes'],'include':_0x5ea3c9[_0x48b578(0xeb)]?_[_0x48b578(0xe8)](_0x5ea3c9[_0x48b578(0xeb)],function(_0x4a9e17){const _0x39a017=_0x48b578;return{'model':db[_0x4a9e17['model']],'as':_0x4a9e17['as'],'attributes':_0x4a9e17[_0x39a017(0xe9)],'include':_0x4a9e17[_0x39a017(0xeb)]?_[_0x39a017(0xe8)](_0x4a9e17[_0x39a017(0xeb)],function(_0x241f7c){const _0x156340=_0x39a017;return{'model':db[_0x241f7c[_0x156340(0xf5)]],'as':_0x241f7c['as'],'attributes':_0x241f7c[_0x156340(0xe9)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x5b05cb){const _0xd3ad4b=_0x5e06bf;logger['info']('GetDeskAccount',_0x5c77b0),logger[_0xd3ad4b(0xe6)]('GetDeskAccount',_0x5c77b0,JSON['stringify'](_0x5b05cb)),_0x1fb793(_0x5b05cb);})[_0x5e06bf(0xf0)](function(_0x573e28){const _0x2947a8=_0x5e06bf;logger[_0x2947a8(0xf1)](_0x2947a8(0xf2),_0x573e28[_0x2947a8(0xf7)],_0x5c77b0),_0x5e7281(_0x3f9af4[_0x2947a8(0xf1)](0x1f4,_0x573e28[_0x2947a8(0xf7)]));});});},exports['ShowDeskAccount']=function(_0x2a24c2){const _0x189fc5=this;return new Promise(function(_0x3d8b5b,_0x257c67){const _0x2c4522=a275_0x1394;return db[_0x2c4522(0xe4)][_0x2c4522(0xed)]({'raw':_0x2a24c2[_0x2c4522(0xec)]?_0x2a24c2[_0x2c4522(0xec)][_0x2c4522(0xf3)]===undefined?!![]:![]:!![],'where':_0x2a24c2[_0x2c4522(0xec)]?_0x2a24c2[_0x2c4522(0xec)][_0x2c4522(0xe7)]||null:null,'attributes':_0x2a24c2[_0x2c4522(0xec)]?_0x2a24c2[_0x2c4522(0xec)][_0x2c4522(0xe9)]||null:null,'include':_0x2a24c2['options']?_0x2a24c2[_0x2c4522(0xec)]['include']?_[_0x2c4522(0xe8)](_0x2a24c2['options'][_0x2c4522(0xeb)],function(_0x338be6){const _0x391e80=_0x2c4522;return{'model':db[_0x338be6['model']],'as':_0x338be6['as'],'attributes':_0x338be6[_0x391e80(0xe9)],'include':_0x338be6['include']?_[_0x391e80(0xe8)](_0x338be6['include'],function(_0x15232f){const _0x738166=_0x391e80;return{'model':db[_0x15232f['model']],'as':_0x15232f['as'],'attributes':_0x15232f['attributes'],'include':_0x15232f[_0x738166(0xeb)]?_[_0x738166(0xe8)](_0x15232f['include'],function(_0x47741f){const _0x2b9803=_0x738166;return{'model':db[_0x47741f[_0x2b9803(0xf5)]],'as':_0x47741f['as'],'attributes':_0x47741f[_0x2b9803(0xe9)]};}):[]};}):[]};}):[]:[]})[_0x2c4522(0xf4)](function(_0xcb7dbf){const _0x3cd71c=_0x2c4522;logger[_0x3cd71c(0xee)](_0x3cd71c(0xe5),_0x2a24c2),logger['debug'](_0x3cd71c(0xe5),_0x2a24c2,JSON['stringify'](_0xcb7dbf)),_0x3d8b5b(_0xcb7dbf);})[_0x2c4522(0xf0)](function(_0x594555){const _0x21e683=_0x2c4522;logger[_0x21e683(0xf1)]('ShowDeskAccount',_0x594555[_0x21e683(0xf7)],_0x2a24c2),_0x257c67(_0x189fc5[_0x21e683(0xf1)](0x1f4,_0x594555[_0x21e683(0xf7)]));});});}; \ No newline at end of file +const a275_0xc8e3=['then','rpc','options','stringify','DeskAccount','catch','findAll','include','debug','ShowDeskAccount','info','attributes','model','../../mysqldb','raw','GetDeskAccount','map','error','message','where'];(function(_0x2b52fc,_0x47b32f){const _0xc8e384=function(_0x24f21d){while(--_0x24f21d){_0x2b52fc['push'](_0x2b52fc['shift']());}};_0xc8e384(++_0x47b32f);}(a275_0xc8e3,0xce));const a275_0x24f2=function(_0x2b52fc,_0x47b32f){_0x2b52fc=_0x2b52fc-0x1cb;let _0xc8e384=a275_0xc8e3[_0x2b52fc];return _0xc8e384;};const a275_0x5e01da=a275_0x24f2;'use strict';const _=require('lodash'),db=require(a275_0x5e01da(0x1d2))['db'],logger=require('../../config/logger')(a275_0x5e01da(0x1da));exports[a275_0x5e01da(0x1d4)]=function(_0x99a394){const _0x569e90=this;return new Promise(function(_0x5a88b3,_0x597420){const _0x11447c=a275_0x24f2;return db[_0x11447c(0x1dd)][_0x11447c(0x1cb)]({'raw':_0x99a394[_0x11447c(0x1db)]?_0x99a394['options'][_0x11447c(0x1d3)]===undefined?!![]:![]:!![],'where':_0x99a394[_0x11447c(0x1db)]?_0x99a394[_0x11447c(0x1db)][_0x11447c(0x1d8)]||null:null,'attributes':_0x99a394[_0x11447c(0x1db)]?_0x99a394[_0x11447c(0x1db)]['attributes']||null:null,'limit':_0x99a394[_0x11447c(0x1db)]?_0x99a394['options']['limit']||null:null,'include':_0x99a394['options']?_0x99a394[_0x11447c(0x1db)]['include']?_['map'](_0x99a394[_0x11447c(0x1db)]['include'],function(_0x4c8697){const _0x2aef40=_0x11447c;return{'model':db[_0x4c8697[_0x2aef40(0x1d1)]],'as':_0x4c8697['as'],'attributes':_0x4c8697[_0x2aef40(0x1d0)],'include':_0x4c8697[_0x2aef40(0x1cc)]?_[_0x2aef40(0x1d5)](_0x4c8697[_0x2aef40(0x1cc)],function(_0x4f8de6){const _0x579ba6=_0x2aef40;return{'model':db[_0x4f8de6[_0x579ba6(0x1d1)]],'as':_0x4f8de6['as'],'attributes':_0x4f8de6[_0x579ba6(0x1d0)],'include':_0x4f8de6[_0x579ba6(0x1cc)]?_[_0x579ba6(0x1d5)](_0x4f8de6[_0x579ba6(0x1cc)],function(_0x2b49b8){const _0x425ad6=_0x579ba6;return{'model':db[_0x2b49b8[_0x425ad6(0x1d1)]],'as':_0x2b49b8['as'],'attributes':_0x2b49b8['attributes']};}):[]};}):[]};}):[]:[]})[_0x11447c(0x1d9)](function(_0x55a37d){const _0x4ffb33=_0x11447c;logger[_0x4ffb33(0x1cf)](_0x4ffb33(0x1d4),_0x99a394),logger[_0x4ffb33(0x1cd)](_0x4ffb33(0x1d4),_0x99a394,JSON[_0x4ffb33(0x1dc)](_0x55a37d)),_0x5a88b3(_0x55a37d);})[_0x11447c(0x1de)](function(_0x2e0f6d){const _0x259886=_0x11447c;logger['error'](_0x259886(0x1d4),_0x2e0f6d[_0x259886(0x1d7)],_0x99a394),_0x597420(_0x569e90[_0x259886(0x1d6)](0x1f4,_0x2e0f6d['message']));});});},exports[a275_0x5e01da(0x1ce)]=function(_0x44df48){const _0x25eb01=this;return new Promise(function(_0x263eb7,_0x2a4a4e){const _0x1f3516=a275_0x24f2;return db[_0x1f3516(0x1dd)]['findOne']({'raw':_0x44df48[_0x1f3516(0x1db)]?_0x44df48[_0x1f3516(0x1db)][_0x1f3516(0x1d3)]===undefined?!![]:![]:!![],'where':_0x44df48['options']?_0x44df48[_0x1f3516(0x1db)][_0x1f3516(0x1d8)]||null:null,'attributes':_0x44df48[_0x1f3516(0x1db)]?_0x44df48[_0x1f3516(0x1db)][_0x1f3516(0x1d0)]||null:null,'include':_0x44df48['options']?_0x44df48['options'][_0x1f3516(0x1cc)]?_[_0x1f3516(0x1d5)](_0x44df48[_0x1f3516(0x1db)]['include'],function(_0x2d9029){const _0x4f89d2=_0x1f3516;return{'model':db[_0x2d9029['model']],'as':_0x2d9029['as'],'attributes':_0x2d9029[_0x4f89d2(0x1d0)],'include':_0x2d9029[_0x4f89d2(0x1cc)]?_[_0x4f89d2(0x1d5)](_0x2d9029['include'],function(_0x886c3c){const _0x130191=_0x4f89d2;return{'model':db[_0x886c3c[_0x130191(0x1d1)]],'as':_0x886c3c['as'],'attributes':_0x886c3c[_0x130191(0x1d0)],'include':_0x886c3c[_0x130191(0x1cc)]?_[_0x130191(0x1d5)](_0x886c3c[_0x130191(0x1cc)],function(_0x1af3c8){const _0x5d769f=_0x130191;return{'model':db[_0x1af3c8[_0x5d769f(0x1d1)]],'as':_0x1af3c8['as'],'attributes':_0x1af3c8['attributes']};}):[]};}):[]};}):[]:[]})[_0x1f3516(0x1d9)](function(_0x13daa4){const _0x95cbbc=_0x1f3516;logger[_0x95cbbc(0x1cf)]('ShowDeskAccount',_0x44df48),logger[_0x95cbbc(0x1cd)](_0x95cbbc(0x1ce),_0x44df48,JSON['stringify'](_0x13daa4)),_0x263eb7(_0x13daa4);})['catch'](function(_0x6cd27c){const _0xb52678=_0x1f3516;logger['error'](_0xb52678(0x1ce),_0x6cd27c['message'],_0x44df48),_0x2a4a4e(_0x25eb01['error'](0x1f4,_0x6cd27c[_0xb52678(0x1d7)]));});});}; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/index.js b/server/api/intDeskConfiguration/index.js index 5406002..ec00bf1 100644 --- a/server/api/intDeskConfiguration/index.js +++ b/server/api/intDeskConfiguration/index.js @@ -1 +1 @@ -const a276_0x83df=['/:id/tags','/:id','update','getSubjects','./intDeskConfiguration.controller','post','destroy','express','/:id/fields','put','delete','getDescriptions','get','../../components/auth/service','/:id/descriptions','/:id/subjects','getTags','Router','show','isAuthenticated'];(function(_0x2238b2,_0x14c44e){const _0x83dfb2=function(_0x4baf3b){while(--_0x4baf3b){_0x2238b2['push'](_0x2238b2['shift']());}};_0x83dfb2(++_0x14c44e);}(a276_0x83df,0x119));const a276_0x4baf=function(_0x2238b2,_0x14c44e){_0x2238b2=_0x2238b2-0x1c2;let _0x83dfb2=a276_0x83df[_0x2238b2];return _0x83dfb2;};const a276_0x3522ed=a276_0x4baf;'use strict';const express=require(a276_0x3522ed(0x1c8)),router=express[a276_0x3522ed(0x1d2)](),auth=require(a276_0x3522ed(0x1ce)),controller=require(a276_0x3522ed(0x1c5));router[a276_0x3522ed(0x1cd)]('/',auth[a276_0x3522ed(0x1d4)](),controller['index']),router[a276_0x3522ed(0x1cd)](a276_0x3522ed(0x1c2),auth[a276_0x3522ed(0x1d4)](),controller[a276_0x3522ed(0x1d3)]),router[a276_0x3522ed(0x1cd)](a276_0x3522ed(0x1c9),auth[a276_0x3522ed(0x1d4)](),controller['getFields']),router[a276_0x3522ed(0x1cd)](a276_0x3522ed(0x1d0),auth[a276_0x3522ed(0x1d4)](),controller[a276_0x3522ed(0x1c4)]),router['get'](a276_0x3522ed(0x1cf),auth[a276_0x3522ed(0x1d4)](),controller[a276_0x3522ed(0x1cc)]),router[a276_0x3522ed(0x1cd)](a276_0x3522ed(0x1d5),auth[a276_0x3522ed(0x1d4)](),controller[a276_0x3522ed(0x1d1)]),router['post']('/',auth['isAuthenticated'](),controller['create']),router[a276_0x3522ed(0x1c6)](a276_0x3522ed(0x1d5),auth[a276_0x3522ed(0x1d4)](),controller['setTags']),router[a276_0x3522ed(0x1ca)](a276_0x3522ed(0x1c2),auth['isAuthenticated'](),controller[a276_0x3522ed(0x1c3)]),router[a276_0x3522ed(0x1cb)](a276_0x3522ed(0x1c2),auth[a276_0x3522ed(0x1d4)](),controller[a276_0x3522ed(0x1c7)]),module['exports']=router; \ No newline at end of file +const a276_0x2243=['get','/:id/descriptions','Router','getTags','express','./intDeskConfiguration.controller','/:id/fields','create','../../components/auth/service','setTags','/:id','index','show','exports','update','post','getFields','isAuthenticated','/:id/tags','put'];(function(_0x35f686,_0x1bc061){const _0x224351=function(_0x2270c2){while(--_0x2270c2){_0x35f686['push'](_0x35f686['shift']());}};_0x224351(++_0x1bc061);}(a276_0x2243,0x1b7));const a276_0x2270=function(_0x35f686,_0x1bc061){_0x35f686=_0x35f686-0x1d4;let _0x224351=a276_0x2243[_0x35f686];return _0x224351;};const a276_0x4bff7a=a276_0x2270;'use strict';const express=require(a276_0x4bff7a(0x1d9)),router=express[a276_0x4bff7a(0x1d7)](),auth=require(a276_0x4bff7a(0x1dd)),controller=require(a276_0x4bff7a(0x1da));router[a276_0x4bff7a(0x1d5)]('/',auth['isAuthenticated'](),controller[a276_0x4bff7a(0x1e0)]),router['get'](a276_0x4bff7a(0x1df),auth[a276_0x4bff7a(0x1e6)](),controller[a276_0x4bff7a(0x1e1)]),router[a276_0x4bff7a(0x1d5)](a276_0x4bff7a(0x1db),auth[a276_0x4bff7a(0x1e6)](),controller[a276_0x4bff7a(0x1e5)]),router[a276_0x4bff7a(0x1d5)]('/:id/subjects',auth[a276_0x4bff7a(0x1e6)](),controller['getSubjects']),router[a276_0x4bff7a(0x1d5)](a276_0x4bff7a(0x1d6),auth[a276_0x4bff7a(0x1e6)](),controller['getDescriptions']),router[a276_0x4bff7a(0x1d5)](a276_0x4bff7a(0x1e7),auth[a276_0x4bff7a(0x1e6)](),controller[a276_0x4bff7a(0x1d8)]),router[a276_0x4bff7a(0x1e4)]('/',auth[a276_0x4bff7a(0x1e6)](),controller[a276_0x4bff7a(0x1dc)]),router['post'](a276_0x4bff7a(0x1e7),auth[a276_0x4bff7a(0x1e6)](),controller[a276_0x4bff7a(0x1de)]),router[a276_0x4bff7a(0x1d4)]('/:id',auth[a276_0x4bff7a(0x1e6)](),controller[a276_0x4bff7a(0x1e3)]),router['delete'](a276_0x4bff7a(0x1df),auth[a276_0x4bff7a(0x1e6)](),controller['destroy']),module[a276_0x4bff7a(0x1e2)]=router; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js b/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js index 77c89cf..294010e 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js @@ -1 +1 @@ -const a277_0x4cf7=['sequelize','STRING','exports'];(function(_0x16a9a6,_0xc5e646){const _0x4cf773=function(_0x5f1eb0){while(--_0x5f1eb0){_0x16a9a6['push'](_0x16a9a6['shift']());}};_0x4cf773(++_0xc5e646);}(a277_0x4cf7,0xa3));const a277_0x5f1e=function(_0x16a9a6,_0xc5e646){_0x16a9a6=_0x16a9a6-0x1d4;let _0x4cf773=a277_0x4cf7[_0x16a9a6];return _0x4cf773;};const a277_0x4a4159=a277_0x5f1e;'use strict';const {DataTypes}=require(a277_0x4a4159(0x1d6)),attributes={'name':{'type':DataTypes[a277_0x4a4159(0x1d4)]},'description':{'type':DataTypes[a277_0x4a4159(0x1d4)]}};module[a277_0x4a4159(0x1d5)]['attributes']=attributes; \ No newline at end of file +const a277_0x195e=['exports','sequelize','attributes'];(function(_0x59d8af,_0x12ae4d){const _0x195e9d=function(_0x586963){while(--_0x586963){_0x59d8af['push'](_0x59d8af['shift']());}};_0x195e9d(++_0x12ae4d);}(a277_0x195e,0x130));const a277_0x5869=function(_0x59d8af,_0x12ae4d){_0x59d8af=_0x59d8af-0x121;let _0x195e9d=a277_0x195e[_0x59d8af];return _0x195e9d;};const a277_0x504853=a277_0x5869;'use strict';const {DataTypes}=require(a277_0x504853(0x121)),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes['STRING']}};module[a277_0x504853(0x123)][a277_0x504853(0x122)]=attributes; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.controller.js b/server/api/intDeskConfiguration/intDeskConfiguration.controller.js index 90868fb..0757311 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.controller.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.controller.js @@ -1 +1 @@ -const a278_0x31fc=['name','options','attributes','count','lodash','undefined','where','nolimit','send','DeskField','body','catch','findAll','length','rows','create','status','includeAll','findOne','sequelize','then','DeskConfiguration','like','getSubjects','fieldName','keys','../../config/logger','pick','update','params','filter','error','getTags','setTags','VIRTUAL','order','index','sort','../../mysqldb','getDescriptions','key','rawAttributes','type','sendStatus','query','getFields','model','ids','Content-Range','fields','offset','stack','json','map','end','filters','intersection','limit','include','destroy','merge'];(function(_0x27f440,_0x5e784e){const _0x31fc99=function(_0x38857){while(--_0x38857){_0x27f440['push'](_0x27f440['shift']());}};_0x31fc99(++_0x5e784e);}(a278_0x31fc,0xa3));const a278_0x3885=function(_0x27f440,_0x5e784e){_0x27f440=_0x27f440-0xcd;let _0x31fc99=a278_0x31fc[_0x27f440];return _0x31fc99;};const a278_0x2ecff1=a278_0x3885;'use strict';const _=require(a278_0x2ecff1(0xe5)),qs=require('../../components/parsers/qs'),logger=require(a278_0x2ecff1(0xfb))('api'),{db}=require(a278_0x2ecff1(0x107)),{Op}=require(a278_0x2ecff1(0xf4));function respondWithResult(_0x5b58a9,_0x323d1e){return _0x323d1e=_0x323d1e||0xc8,function(_0x369454){const _0x13d000=a278_0x3885;if(_0x369454)return _0x5b58a9[_0x13d000(0xf1)](_0x323d1e)[_0x13d000(0xd8)](_0x369454);};}function respondWithFilteredResult(_0x4dbdb9,_0xba5ece){return function(_0x3e58be){const _0x23984a=a278_0x3885;if(_0x3e58be){const _0x58f401=_0x3e58be[_0x23984a(0xe4)],_0x243a34=_0xba5ece['offset'];let _0x353e94=_0xba5ece[_0x23984a(0xd6)]+_0xba5ece[_0x23984a(0xdd)],_0x270fad;return _0x353e94>=_0x58f401?(_0x353e94=_0x58f401,_0x270fad=0xc8):_0x270fad=0xce,_0x4dbdb9[_0x23984a(0xf1)](_0x270fad),_0x4dbdb9['set'](_0x23984a(0xd4),_0x243a34+'-'+_0x353e94+'/'+_0x58f401)[_0x23984a(0xd8)](_0x3e58be);}return null;};}function saveUpdates(_0x5c8000){return function(_0x6a9dea){if(_0x6a9dea)return _0x6a9dea['update'](_0x5c8000)['then'](function(_0x5691db){return _0x5691db;});return null;};}function removeEntity(_0x537a68){return function(_0x36c2d2){const _0x5f16cb=a278_0x3885;if(_0x36c2d2)return _0x36c2d2[_0x5f16cb(0xdf)]()[_0x5f16cb(0xf5)](function(){const _0x392ca0=_0x5f16cb;_0x537a68[_0x392ca0(0xf1)](0xcc)[_0x392ca0(0xda)]();});};}function handleEntityNotFound(_0x519ae7){return function(_0x57dde9){const _0x56dc7f=a278_0x3885;return!_0x57dde9&&_0x519ae7[_0x56dc7f(0xcf)](0x194),_0x57dde9;};}function handleError(_0x443a68,_0x33d04a){return _0x33d04a=_0x33d04a||0x1f4,function(_0x5c597d){const _0xabc725=a278_0x3885;logger[_0xabc725(0x100)](_0x5c597d[_0xabc725(0xd7)]),_0x5c597d['name']&&delete _0x5c597d[_0xabc725(0xe1)],_0x443a68['status'](_0x33d04a)[_0xabc725(0xe9)](_0x5c597d);};}exports[a278_0x2ecff1(0x105)]=function(_0x9f5e88,_0x983d8a){const _0x3caa77=a278_0x2ecff1;let _0x5b58f5={};const _0x39a680={},_0x49be73={'count':0x0,'rows':[]},_0x40d559=_[_0x3caa77(0xd9)](db[_0x3caa77(0xf6)][_0x3caa77(0xcd)],function(_0x54054f){const _0x1a6810=_0x3caa77;return{'name':_0x54054f[_0x1a6810(0xf9)],'type':_0x54054f[_0x1a6810(0xce)][_0x1a6810(0x109)]};});_0x39a680[_0x3caa77(0xd2)]=_[_0x3caa77(0xd9)](_0x40d559,_0x3caa77(0xe1)),_0x39a680[_0x3caa77(0xd0)]=_[_0x3caa77(0xfa)](_0x9f5e88[_0x3caa77(0xd0)]),_0x39a680[_0x3caa77(0xdb)]=_[_0x3caa77(0xdc)](_0x39a680['model'],_0x39a680['query']),_0x5b58f5[_0x3caa77(0xe3)]=_[_0x3caa77(0xdc)](_0x39a680[_0x3caa77(0xd2)],qs['fields'](_0x9f5e88['query']['fields'])),_0x5b58f5[_0x3caa77(0xe3)]=_0x5b58f5[_0x3caa77(0xe3)][_0x3caa77(0xee)]?_0x5b58f5[_0x3caa77(0xe3)]:_0x39a680[_0x3caa77(0xd2)];typeof _0x9f5e88[_0x3caa77(0xd0)][_0x3caa77(0xe8)]===_0x3caa77(0xe6)&&(_0x5b58f5['limit']=qs[_0x3caa77(0xdd)](_0x9f5e88[_0x3caa77(0xd0)]['limit']),_0x5b58f5[_0x3caa77(0xd6)]=qs[_0x3caa77(0xd6)](_0x9f5e88['query']['offset']));_0x5b58f5[_0x3caa77(0x104)]=qs[_0x3caa77(0x106)](_0x9f5e88['query'][_0x3caa77(0x106)]),_0x5b58f5['where']=qs[_0x3caa77(0xdb)](_[_0x3caa77(0xfc)](_0x9f5e88['query'],_0x39a680[_0x3caa77(0xdb)]),_0x40d559);_0x9f5e88[_0x3caa77(0xd0)][_0x3caa77(0xff)]&&(_0x5b58f5[_0x3caa77(0xe7)]=_[_0x3caa77(0xe0)](_0x5b58f5[_0x3caa77(0xe7)],{[Op['or']]:_[_0x3caa77(0xd9)](_0x40d559,function(_0xd9e0dc){const _0x4f4931=_0x3caa77;if(_0xd9e0dc[_0x4f4931(0xce)]!==_0x4f4931(0x103)){const _0x199e9e={};return _0x199e9e[_0xd9e0dc[_0x4f4931(0xe1)]]={[Op[_0x4f4931(0xf7)]]:'%'+_0x9f5e88[_0x4f4931(0xd0)]['filter']+'%'},_0x199e9e;}})}));_0x5b58f5=_[_0x3caa77(0xe0)]({},_0x5b58f5,_0x9f5e88[_0x3caa77(0xe2)]);const _0x56e415={'where':_0x5b58f5[_0x3caa77(0xe7)]};return db[_0x3caa77(0xf6)][_0x3caa77(0xe4)](_0x56e415)[_0x3caa77(0xf5)](function(_0x191064){const _0x1d212c=_0x3caa77;return _0x49be73[_0x1d212c(0xe4)]=_0x191064,_0x9f5e88[_0x1d212c(0xd0)][_0x1d212c(0xf2)]&&(_0x5b58f5[_0x1d212c(0xde)]=[{'all':!![]}]),db[_0x1d212c(0xf6)][_0x1d212c(0xed)](_0x5b58f5);})[_0x3caa77(0xf5)](function(_0x4c155c){const _0x304066=_0x3caa77;return _0x49be73[_0x304066(0xef)]=_0x4c155c,_0x49be73;})[_0x3caa77(0xf5)](respondWithFilteredResult(_0x983d8a,_0x5b58f5))[_0x3caa77(0xec)](handleError(_0x983d8a,null));},exports['show']=function(_0x201472,_0x2afeba){const _0x5de88c=a278_0x2ecff1;let _0x40cea8={'raw':![],'where':{'id':_0x201472['params']['id']}};const _0x3bec7a={};return _0x3bec7a['model']=_[_0x5de88c(0xfa)](db[_0x5de88c(0xf6)][_0x5de88c(0xcd)]),_0x3bec7a[_0x5de88c(0xd0)]=_[_0x5de88c(0xfa)](_0x201472[_0x5de88c(0xd0)]),_0x3bec7a[_0x5de88c(0xdb)]=_[_0x5de88c(0xdc)](_0x3bec7a[_0x5de88c(0xd2)],_0x3bec7a[_0x5de88c(0xd0)]),_0x40cea8[_0x5de88c(0xe3)]=_[_0x5de88c(0xdc)](_0x3bec7a[_0x5de88c(0xd2)],qs[_0x5de88c(0xd5)](_0x201472[_0x5de88c(0xd0)][_0x5de88c(0xd5)])),_0x40cea8[_0x5de88c(0xe3)]=_0x40cea8[_0x5de88c(0xe3)][_0x5de88c(0xee)]?_0x40cea8[_0x5de88c(0xe3)]:_0x3bec7a[_0x5de88c(0xd2)],_0x201472[_0x5de88c(0xd0)][_0x5de88c(0xf2)]&&(_0x40cea8[_0x5de88c(0xde)]=[{'all':!![]}]),_0x40cea8=_[_0x5de88c(0xe0)]({},_0x40cea8,_0x201472['options']),db[_0x5de88c(0xf6)]['findOne'](_0x40cea8)[_0x5de88c(0xf5)](handleEntityNotFound(_0x2afeba,null))[_0x5de88c(0xf5)](respondWithResult(_0x2afeba,null))[_0x5de88c(0xec)](handleError(_0x2afeba,null));},exports[a278_0x2ecff1(0xf0)]=function(_0x166242,_0x5dc542){const _0x1ba1a2=a278_0x2ecff1;return db[_0x1ba1a2(0xf6)][_0x1ba1a2(0xf0)](_0x166242[_0x1ba1a2(0xeb)],{})['then'](respondWithResult(_0x5dc542,0xc9))['catch'](handleError(_0x5dc542,null));},exports[a278_0x2ecff1(0xfd)]=function(_0x12c56d,_0x2d0e4d){const _0x411534=a278_0x2ecff1;return _0x12c56d[_0x411534(0xeb)]['id']&&delete _0x12c56d[_0x411534(0xeb)]['id'],db['DeskConfiguration'][_0x411534(0xf3)]({'where':{'id':_0x12c56d[_0x411534(0xfe)]['id']}})[_0x411534(0xf5)](handleEntityNotFound(_0x2d0e4d,null))[_0x411534(0xf5)](saveUpdates(_0x12c56d[_0x411534(0xeb)],null))[_0x411534(0xf5)](respondWithResult(_0x2d0e4d,null))[_0x411534(0xec)](handleError(_0x2d0e4d,null));},exports['destroy']=function(_0x48bf0b,_0x47e445){const _0x4300d5=a278_0x2ecff1;return db[_0x4300d5(0xf6)]['findOne']({'where':{'id':_0x48bf0b[_0x4300d5(0xfe)]['id']}})[_0x4300d5(0xf5)](handleEntityNotFound(_0x47e445,null))['then'](removeEntity(_0x47e445,null))[_0x4300d5(0xec)](handleError(_0x47e445,null));},exports[a278_0x2ecff1(0xd1)]=function(_0x5234c7,_0x19f44b){const _0x202ce2=a278_0x2ecff1;let _0x59ac54={};const _0x5187e5={};let _0x5e0d38,_0x18832a;return db[_0x202ce2(0xf6)][_0x202ce2(0xf3)]({'where':{'id':_0x5234c7[_0x202ce2(0xfe)]['id']}})['then'](handleEntityNotFound(_0x19f44b,null))[_0x202ce2(0xf5)](function(_0x5d31d5){const _0x21084b=_0x202ce2;if(_0x5d31d5)return _0x5e0d38=_0x5d31d5,_0x5187e5[_0x21084b(0xd2)]=_[_0x21084b(0xfa)](db['DeskField'][_0x21084b(0xcd)]),_0x5187e5[_0x21084b(0xd0)]=_[_0x21084b(0xfa)](_0x5234c7[_0x21084b(0xd0)]),_0x5187e5['filters']=_['intersection'](_0x5187e5['model'],_0x5187e5[_0x21084b(0xd0)]),_0x59ac54[_0x21084b(0xe3)]=_[_0x21084b(0xdc)](_0x5187e5[_0x21084b(0xd2)],qs[_0x21084b(0xd5)](_0x5234c7[_0x21084b(0xd0)][_0x21084b(0xd5)])),_0x59ac54['attributes']=_0x59ac54[_0x21084b(0xe3)][_0x21084b(0xee)]?_0x59ac54[_0x21084b(0xe3)]:_0x5187e5[_0x21084b(0xd2)],_0x59ac54['order']=qs[_0x21084b(0x106)](_0x5234c7[_0x21084b(0xd0)][_0x21084b(0x106)]),_0x59ac54[_0x21084b(0xe7)]=qs['filters'](_[_0x21084b(0xfc)](_0x5234c7['query'],_0x5187e5[_0x21084b(0xdb)])),_0x5234c7[_0x21084b(0xd0)]['filter']&&(_0x59ac54[_0x21084b(0xe7)]=_[_0x21084b(0xe0)](_0x59ac54[_0x21084b(0xe7)],{[Op['or']]:_['map'](_0x59ac54[_0x21084b(0xe3)],function(_0x5401aa){const _0x2372b0=_0x21084b,_0x57e129={};return _0x57e129[_0x5401aa]={[Op[_0x2372b0(0xf7)]]:'%'+_0x5234c7[_0x2372b0(0xd0)][_0x2372b0(0xff)]+'%'},_0x57e129;})})),_0x59ac54=_[_0x21084b(0xe0)]({},_0x59ac54,_0x5234c7['options']),_0x5e0d38['getFields'](_0x59ac54);})[_0x202ce2(0xf5)](function(_0x6192bc){const _0x46f1e2=_0x202ce2;if(_0x6192bc)return _0x18832a=_0x6192bc[_0x46f1e2(0xee)],typeof _0x5234c7[_0x46f1e2(0xd0)][_0x46f1e2(0xe8)]===_0x46f1e2(0xe6)&&(_0x59ac54[_0x46f1e2(0xdd)]=qs[_0x46f1e2(0xdd)](_0x5234c7[_0x46f1e2(0xd0)][_0x46f1e2(0xdd)]),_0x59ac54['offset']=qs[_0x46f1e2(0xd6)](_0x5234c7[_0x46f1e2(0xd0)][_0x46f1e2(0xd6)])),_0x5e0d38[_0x46f1e2(0xd1)](_0x59ac54);})[_0x202ce2(0xf5)](function(_0x169906){if(_0x169906)return _0x169906?{'count':_0x18832a,'rows':_0x169906}:null;})[_0x202ce2(0xf5)](respondWithResult(_0x19f44b,null))[_0x202ce2(0xec)](handleError(_0x19f44b,null));},exports[a278_0x2ecff1(0xf8)]=function(_0x1c370f,_0x2fee19){const _0x3c22c9=a278_0x2ecff1;let _0x594aea={};const _0x522f18={};let _0x4c663b,_0x3af146;return db[_0x3c22c9(0xf6)][_0x3c22c9(0xf3)]({'where':{'id':_0x1c370f[_0x3c22c9(0xfe)]['id']}})['then'](handleEntityNotFound(_0x2fee19,null))[_0x3c22c9(0xf5)](function(_0x5eeae1){const _0x409d72=_0x3c22c9;if(_0x5eeae1)return _0x4c663b=_0x5eeae1,_0x522f18[_0x409d72(0xd2)]=_[_0x409d72(0xfa)](db[_0x409d72(0xea)][_0x409d72(0xcd)]),_0x522f18[_0x409d72(0xd0)]=_[_0x409d72(0xfa)](_0x1c370f[_0x409d72(0xd0)]),_0x522f18[_0x409d72(0xdb)]=_[_0x409d72(0xdc)](_0x522f18[_0x409d72(0xd2)],_0x522f18[_0x409d72(0xd0)]),_0x594aea['attributes']=_[_0x409d72(0xdc)](_0x522f18['model'],qs[_0x409d72(0xd5)](_0x1c370f[_0x409d72(0xd0)][_0x409d72(0xd5)])),_0x594aea[_0x409d72(0xe3)]=_0x594aea[_0x409d72(0xe3)][_0x409d72(0xee)]?_0x594aea[_0x409d72(0xe3)]:_0x522f18['model'],_0x594aea[_0x409d72(0x104)]=qs[_0x409d72(0x106)](_0x1c370f[_0x409d72(0xd0)][_0x409d72(0x106)]),_0x594aea[_0x409d72(0xe7)]=qs['filters'](_[_0x409d72(0xfc)](_0x1c370f['query'],_0x522f18[_0x409d72(0xdb)])),_0x1c370f[_0x409d72(0xd0)][_0x409d72(0xff)]&&(_0x594aea[_0x409d72(0xe7)]=_[_0x409d72(0xe0)](_0x594aea[_0x409d72(0xe7)],{[Op['or']]:_[_0x409d72(0xd9)](_0x594aea[_0x409d72(0xe3)],function(_0x185ae7){const _0x5d6e3b=_0x409d72,_0x5045ff={};return _0x5045ff[_0x185ae7]={[Op['like']]:'%'+_0x1c370f[_0x5d6e3b(0xd0)][_0x5d6e3b(0xff)]+'%'},_0x5045ff;})})),_0x594aea=_[_0x409d72(0xe0)]({},_0x594aea,_0x1c370f[_0x409d72(0xe2)]),_0x4c663b[_0x409d72(0xf8)](_0x594aea);})['then'](function(_0xd26622){const _0x6c441f=_0x3c22c9;if(_0xd26622)return _0x3af146=_0xd26622[_0x6c441f(0xee)],typeof _0x1c370f[_0x6c441f(0xd0)][_0x6c441f(0xe8)]===_0x6c441f(0xe6)&&(_0x594aea[_0x6c441f(0xdd)]=qs[_0x6c441f(0xdd)](_0x1c370f[_0x6c441f(0xd0)][_0x6c441f(0xdd)]),_0x594aea[_0x6c441f(0xd6)]=qs[_0x6c441f(0xd6)](_0x1c370f[_0x6c441f(0xd0)]['offset'])),_0x4c663b[_0x6c441f(0xf8)](_0x594aea);})[_0x3c22c9(0xf5)](function(_0x30bb76){if(_0x30bb76)return _0x30bb76?{'count':_0x3af146,'rows':_0x30bb76}:null;})[_0x3c22c9(0xf5)](respondWithResult(_0x2fee19,null))['catch'](handleError(_0x2fee19,null));},exports[a278_0x2ecff1(0x108)]=function(_0x553210,_0x1bc631){const _0x16b009=a278_0x2ecff1;let _0x1d743a={};const _0xd54464={};let _0x3990d9,_0x208f73;return db[_0x16b009(0xf6)]['findOne']({'where':{'id':_0x553210['params']['id']}})[_0x16b009(0xf5)](handleEntityNotFound(_0x1bc631,null))[_0x16b009(0xf5)](function(_0x3d040b){const _0x2d1c80=_0x16b009;if(_0x3d040b)return _0x3990d9=_0x3d040b,_0xd54464[_0x2d1c80(0xd2)]=_[_0x2d1c80(0xfa)](db[_0x2d1c80(0xea)][_0x2d1c80(0xcd)]),_0xd54464[_0x2d1c80(0xd0)]=_['keys'](_0x553210['query']),_0xd54464[_0x2d1c80(0xdb)]=_[_0x2d1c80(0xdc)](_0xd54464[_0x2d1c80(0xd2)],_0xd54464[_0x2d1c80(0xd0)]),_0x1d743a[_0x2d1c80(0xe3)]=_[_0x2d1c80(0xdc)](_0xd54464[_0x2d1c80(0xd2)],qs[_0x2d1c80(0xd5)](_0x553210[_0x2d1c80(0xd0)][_0x2d1c80(0xd5)])),_0x1d743a[_0x2d1c80(0xe3)]=_0x1d743a['attributes']['length']?_0x1d743a[_0x2d1c80(0xe3)]:_0xd54464['model'],_0x1d743a['order']=qs['sort'](_0x553210[_0x2d1c80(0xd0)][_0x2d1c80(0x106)]),_0x1d743a['where']=qs[_0x2d1c80(0xdb)](_[_0x2d1c80(0xfc)](_0x553210[_0x2d1c80(0xd0)],_0xd54464[_0x2d1c80(0xdb)])),_0x553210['query'][_0x2d1c80(0xff)]&&(_0x1d743a[_0x2d1c80(0xe7)]=_[_0x2d1c80(0xe0)](_0x1d743a[_0x2d1c80(0xe7)],{[Op['or']]:_[_0x2d1c80(0xd9)](_0x1d743a[_0x2d1c80(0xe3)],function(_0x2604d2){const _0x393705=_0x2d1c80,_0xc467eb={};return _0xc467eb[_0x2604d2]={[Op[_0x393705(0xf7)]]:'%'+_0x553210['query'][_0x393705(0xff)]+'%'},_0xc467eb;})})),_0x1d743a=_[_0x2d1c80(0xe0)]({},_0x1d743a,_0x553210[_0x2d1c80(0xe2)]),_0x3990d9['getDescriptions'](_0x1d743a);})[_0x16b009(0xf5)](function(_0x18eeee){const _0x5cfa63=_0x16b009;if(_0x18eeee)return _0x208f73=_0x18eeee[_0x5cfa63(0xee)],typeof _0x553210['query'][_0x5cfa63(0xe8)]===_0x5cfa63(0xe6)&&(_0x1d743a[_0x5cfa63(0xdd)]=qs[_0x5cfa63(0xdd)](_0x553210['query'][_0x5cfa63(0xdd)]),_0x1d743a[_0x5cfa63(0xd6)]=qs[_0x5cfa63(0xd6)](_0x553210[_0x5cfa63(0xd0)][_0x5cfa63(0xd6)])),_0x3990d9[_0x5cfa63(0x108)](_0x1d743a);})['then'](function(_0x400df0){if(_0x400df0)return _0x400df0?{'count':_0x208f73,'rows':_0x400df0}:null;})[_0x16b009(0xf5)](respondWithResult(_0x1bc631,null))[_0x16b009(0xec)](handleError(_0x1bc631,null));},exports[a278_0x2ecff1(0x101)]=function(_0x2b3e99,_0x5d3ad4){const _0xcc4d3d=a278_0x2ecff1;let _0x5e30c7={};const _0x184153={};let _0x2e6363,_0x5f17d9;return db[_0xcc4d3d(0xf6)]['findOne']({'where':{'id':_0x2b3e99[_0xcc4d3d(0xfe)]['id']}})[_0xcc4d3d(0xf5)](handleEntityNotFound(_0x5d3ad4,null))[_0xcc4d3d(0xf5)](function(_0x160f3d){const _0x2d76b7=_0xcc4d3d;if(_0x160f3d)return _0x2e6363=_0x160f3d,_0x184153[_0x2d76b7(0xd2)]=_[_0x2d76b7(0xfa)](db['Tag'][_0x2d76b7(0xcd)]),_0x184153[_0x2d76b7(0xd0)]=_[_0x2d76b7(0xfa)](_0x2b3e99[_0x2d76b7(0xd0)]),_0x184153[_0x2d76b7(0xdb)]=_[_0x2d76b7(0xdc)](_0x184153['model'],_0x184153['query']),_0x5e30c7[_0x2d76b7(0xe3)]=_[_0x2d76b7(0xdc)](_0x184153[_0x2d76b7(0xd2)],qs[_0x2d76b7(0xd5)](_0x2b3e99[_0x2d76b7(0xd0)][_0x2d76b7(0xd5)])),_0x5e30c7[_0x2d76b7(0xe3)]=_0x5e30c7[_0x2d76b7(0xe3)]['length']?_0x5e30c7[_0x2d76b7(0xe3)]:_0x184153[_0x2d76b7(0xd2)],_0x5e30c7['order']=qs[_0x2d76b7(0x106)](_0x2b3e99[_0x2d76b7(0xd0)][_0x2d76b7(0x106)]),_0x5e30c7['where']=qs[_0x2d76b7(0xdb)](_[_0x2d76b7(0xfc)](_0x2b3e99[_0x2d76b7(0xd0)],_0x184153['filters'])),_0x2b3e99[_0x2d76b7(0xd0)][_0x2d76b7(0xff)]&&(_0x5e30c7[_0x2d76b7(0xe7)]=_[_0x2d76b7(0xe0)](_0x5e30c7[_0x2d76b7(0xe7)],{[Op['or']]:_[_0x2d76b7(0xd9)](_0x5e30c7[_0x2d76b7(0xe3)],function(_0x5911e9){const _0x50920c=_0x2d76b7,_0x574391={};return _0x574391[_0x5911e9]={[Op[_0x50920c(0xf7)]]:'%'+_0x2b3e99['query'][_0x50920c(0xff)]+'%'},_0x574391;})})),_0x5e30c7=_[_0x2d76b7(0xe0)]({},_0x5e30c7,_0x2b3e99[_0x2d76b7(0xe2)]),_0x2e6363[_0x2d76b7(0x101)](_0x5e30c7);})[_0xcc4d3d(0xf5)](function(_0x57fac3){const _0x38881e=_0xcc4d3d;if(_0x57fac3)return _0x5f17d9=_0x57fac3['length'],typeof _0x2b3e99[_0x38881e(0xd0)][_0x38881e(0xe8)]===_0x38881e(0xe6)&&(_0x5e30c7[_0x38881e(0xdd)]=qs[_0x38881e(0xdd)](_0x2b3e99[_0x38881e(0xd0)][_0x38881e(0xdd)]),_0x5e30c7[_0x38881e(0xd6)]=qs[_0x38881e(0xd6)](_0x2b3e99[_0x38881e(0xd0)][_0x38881e(0xd6)])),_0x2e6363[_0x38881e(0x101)](_0x5e30c7);})[_0xcc4d3d(0xf5)](function(_0x3bdba1){if(_0x3bdba1)return _0x3bdba1?{'count':_0x5f17d9,'rows':_0x3bdba1}:null;})[_0xcc4d3d(0xf5)](respondWithResult(_0x5d3ad4,null))[_0xcc4d3d(0xec)](handleError(_0x5d3ad4,null));},exports[a278_0x2ecff1(0x102)]=function(_0x5312b1,_0x2bd26f){const _0x251fcc=a278_0x2ecff1;return _0x5312b1[_0x251fcc(0xeb)]['id']&&delete _0x5312b1[_0x251fcc(0xeb)]['id'],db['DeskConfiguration'][_0x251fcc(0xf3)]({'where':{'id':_0x5312b1['params']['id']}})[_0x251fcc(0xf5)](handleEntityNotFound(_0x2bd26f,null))['then'](function(_0x59b7b6){const _0x4dfc19=_0x251fcc;if(_0x59b7b6)return _0x59b7b6[_0x4dfc19(0x102)](_0x5312b1[_0x4dfc19(0xeb)][_0x4dfc19(0xd3)]||[]);return null;})[_0x251fcc(0xf5)](respondWithResult(_0x2bd26f,null))['catch'](handleError(_0x2bd26f,null));}; \ No newline at end of file +const a278_0x83f9=['filter','../../config/logger','VIRTUAL','index','send','sort','getTags','count','update','merge','map','rawAttributes','end','length','getSubjects','json','nolimit','options','findOne','intersection','name','sendStatus','type','then','query','filters','show','DeskField','undefined','rows','key','keys','DeskConfiguration','where','findAll','status','like','offset','api','../../mysqldb','pick','getFields','Tag','sequelize','stack','catch','attributes','include','setTags','../../components/parsers/qs','create','limit','body','error','fields','includeAll','params','model','getDescriptions','destroy','order'];(function(_0x5d63d0,_0x4ee8d2){const _0x83f9a1=function(_0x51f09c){while(--_0x51f09c){_0x5d63d0['push'](_0x5d63d0['shift']());}};_0x83f9a1(++_0x4ee8d2);}(a278_0x83f9,0x106));const a278_0x51f0=function(_0x5d63d0,_0x4ee8d2){_0x5d63d0=_0x5d63d0-0x17c;let _0x83f9a1=a278_0x83f9[_0x5d63d0];return _0x83f9a1;};const a278_0x1301f1=a278_0x51f0;'use strict';const _=require('lodash'),qs=require(a278_0x1301f1(0x19b)),logger=require(a278_0x1301f1(0x1a8))(a278_0x1301f1(0x190)),{db}=require(a278_0x1301f1(0x191)),{Op}=require(a278_0x1301f1(0x195));function respondWithResult(_0x38762f,_0x2e26cd){return _0x2e26cd=_0x2e26cd||0xc8,function(_0x368434){const _0x4abd02=a278_0x51f0;if(_0x368434)return _0x38762f[_0x4abd02(0x18d)](_0x2e26cd)[_0x4abd02(0x1b6)](_0x368434);};}function respondWithFilteredResult(_0x28d3a9,_0x42144c){return function(_0x583689){const _0x201846=a278_0x51f0;if(_0x583689){const _0x58b311=_0x583689[_0x201846(0x1ae)],_0x4b03f9=_0x42144c[_0x201846(0x18f)];let _0x5d3dfd=_0x42144c[_0x201846(0x18f)]+_0x42144c[_0x201846(0x19d)],_0x5e4e3f;return _0x5d3dfd>=_0x58b311?(_0x5d3dfd=_0x58b311,_0x5e4e3f=0xc8):_0x5e4e3f=0xce,_0x28d3a9['status'](_0x5e4e3f),_0x28d3a9['set']('Content-Range',_0x4b03f9+'-'+_0x5d3dfd+'/'+_0x58b311)[_0x201846(0x1b6)](_0x583689);}return null;};}function saveUpdates(_0x21e343){return function(_0x4b9eba){const _0x27a80d=a278_0x51f0;if(_0x4b9eba)return _0x4b9eba[_0x27a80d(0x1af)](_0x21e343)[_0x27a80d(0x181)](function(_0x3682f2){return _0x3682f2;});return null;};}function removeEntity(_0x1b959a){return function(_0xbbec1a){const _0x5a733a=a278_0x51f0;if(_0xbbec1a)return _0xbbec1a[_0x5a733a(0x1a5)]()[_0x5a733a(0x181)](function(){const _0x11ea0a=_0x5a733a;_0x1b959a[_0x11ea0a(0x18d)](0xcc)[_0x11ea0a(0x1b3)]();});};}function handleEntityNotFound(_0x2db66b){return function(_0x1aca3e){const _0x19a4de=a278_0x51f0;return!_0x1aca3e&&_0x2db66b[_0x19a4de(0x17f)](0x194),_0x1aca3e;};}function handleError(_0x17ce35,_0x846870){return _0x846870=_0x846870||0x1f4,function(_0xe7a449){const _0x1afd82=a278_0x51f0;logger[_0x1afd82(0x19f)](_0xe7a449[_0x1afd82(0x196)]),_0xe7a449[_0x1afd82(0x17e)]&&delete _0xe7a449['name'],_0x17ce35['status'](_0x846870)[_0x1afd82(0x1ab)](_0xe7a449);};}exports[a278_0x1301f1(0x1aa)]=function(_0x234d3a,_0x339cec){const _0x499316=a278_0x1301f1;let _0x1f00a1={};const _0x3d227f={},_0x3d78e3={'count':0x0,'rows':[]},_0x1ab3bf=_[_0x499316(0x1b1)](db[_0x499316(0x18a)][_0x499316(0x1b2)],function(_0x4290c1){const _0x119594=_0x499316;return{'name':_0x4290c1['fieldName'],'type':_0x4290c1[_0x119594(0x180)][_0x119594(0x188)]};});_0x3d227f['model']=_[_0x499316(0x1b1)](_0x1ab3bf,_0x499316(0x17e)),_0x3d227f['query']=_[_0x499316(0x189)](_0x234d3a[_0x499316(0x182)]),_0x3d227f[_0x499316(0x183)]=_[_0x499316(0x17d)](_0x3d227f[_0x499316(0x1a3)],_0x3d227f[_0x499316(0x182)]),_0x1f00a1['attributes']=_[_0x499316(0x17d)](_0x3d227f[_0x499316(0x1a3)],qs[_0x499316(0x1a0)](_0x234d3a[_0x499316(0x182)]['fields'])),_0x1f00a1[_0x499316(0x198)]=_0x1f00a1['attributes'][_0x499316(0x1b4)]?_0x1f00a1[_0x499316(0x198)]:_0x3d227f[_0x499316(0x1a3)];typeof _0x234d3a[_0x499316(0x182)]['nolimit']==='undefined'&&(_0x1f00a1[_0x499316(0x19d)]=qs[_0x499316(0x19d)](_0x234d3a[_0x499316(0x182)]['limit']),_0x1f00a1[_0x499316(0x18f)]=qs[_0x499316(0x18f)](_0x234d3a[_0x499316(0x182)][_0x499316(0x18f)]));_0x1f00a1[_0x499316(0x1a6)]=qs[_0x499316(0x1ac)](_0x234d3a['query'][_0x499316(0x1ac)]),_0x1f00a1[_0x499316(0x18b)]=qs['filters'](_[_0x499316(0x192)](_0x234d3a[_0x499316(0x182)],_0x3d227f['filters']),_0x1ab3bf);_0x234d3a[_0x499316(0x182)][_0x499316(0x1a7)]&&(_0x1f00a1[_0x499316(0x18b)]=_['merge'](_0x1f00a1[_0x499316(0x18b)],{[Op['or']]:_[_0x499316(0x1b1)](_0x1ab3bf,function(_0x36cf31){const _0x31f385=_0x499316;if(_0x36cf31['type']!==_0x31f385(0x1a9)){const _0x709ed1={};return _0x709ed1[_0x36cf31[_0x31f385(0x17e)]]={[Op[_0x31f385(0x18e)]]:'%'+_0x234d3a[_0x31f385(0x182)][_0x31f385(0x1a7)]+'%'},_0x709ed1;}})}));_0x1f00a1=_[_0x499316(0x1b0)]({},_0x1f00a1,_0x234d3a[_0x499316(0x1b8)]);const _0xd8941b={'where':_0x1f00a1[_0x499316(0x18b)]};return db['DeskConfiguration'][_0x499316(0x1ae)](_0xd8941b)[_0x499316(0x181)](function(_0x4ce63a){const _0x52ac72=_0x499316;return _0x3d78e3['count']=_0x4ce63a,_0x234d3a[_0x52ac72(0x182)][_0x52ac72(0x1a1)]&&(_0x1f00a1[_0x52ac72(0x199)]=[{'all':!![]}]),db[_0x52ac72(0x18a)][_0x52ac72(0x18c)](_0x1f00a1);})[_0x499316(0x181)](function(_0x1cc2a1){const _0x1f346a=_0x499316;return _0x3d78e3[_0x1f346a(0x187)]=_0x1cc2a1,_0x3d78e3;})[_0x499316(0x181)](respondWithFilteredResult(_0x339cec,_0x1f00a1))[_0x499316(0x197)](handleError(_0x339cec,null));},exports[a278_0x1301f1(0x184)]=function(_0x194d9e,_0x303621){const _0x567edb=a278_0x1301f1;let _0x3348e6={'raw':![],'where':{'id':_0x194d9e[_0x567edb(0x1a2)]['id']}};const _0x2ab0dd={};return _0x2ab0dd[_0x567edb(0x1a3)]=_[_0x567edb(0x189)](db[_0x567edb(0x18a)][_0x567edb(0x1b2)]),_0x2ab0dd[_0x567edb(0x182)]=_[_0x567edb(0x189)](_0x194d9e['query']),_0x2ab0dd[_0x567edb(0x183)]=_[_0x567edb(0x17d)](_0x2ab0dd[_0x567edb(0x1a3)],_0x2ab0dd[_0x567edb(0x182)]),_0x3348e6[_0x567edb(0x198)]=_[_0x567edb(0x17d)](_0x2ab0dd[_0x567edb(0x1a3)],qs[_0x567edb(0x1a0)](_0x194d9e[_0x567edb(0x182)][_0x567edb(0x1a0)])),_0x3348e6[_0x567edb(0x198)]=_0x3348e6[_0x567edb(0x198)][_0x567edb(0x1b4)]?_0x3348e6['attributes']:_0x2ab0dd['model'],_0x194d9e[_0x567edb(0x182)][_0x567edb(0x1a1)]&&(_0x3348e6[_0x567edb(0x199)]=[{'all':!![]}]),_0x3348e6=_[_0x567edb(0x1b0)]({},_0x3348e6,_0x194d9e['options']),db['DeskConfiguration'][_0x567edb(0x17c)](_0x3348e6)[_0x567edb(0x181)](handleEntityNotFound(_0x303621,null))[_0x567edb(0x181)](respondWithResult(_0x303621,null))[_0x567edb(0x197)](handleError(_0x303621,null));},exports['create']=function(_0x3f3ccf,_0x346ad5){const _0x314d7c=a278_0x1301f1;return db[_0x314d7c(0x18a)][_0x314d7c(0x19c)](_0x3f3ccf['body'],{})[_0x314d7c(0x181)](respondWithResult(_0x346ad5,0xc9))[_0x314d7c(0x197)](handleError(_0x346ad5,null));},exports[a278_0x1301f1(0x1af)]=function(_0x588593,_0x2fe10e){const _0x1d551c=a278_0x1301f1;return _0x588593['body']['id']&&delete _0x588593[_0x1d551c(0x19e)]['id'],db['DeskConfiguration'][_0x1d551c(0x17c)]({'where':{'id':_0x588593['params']['id']}})[_0x1d551c(0x181)](handleEntityNotFound(_0x2fe10e,null))[_0x1d551c(0x181)](saveUpdates(_0x588593[_0x1d551c(0x19e)],null))[_0x1d551c(0x181)](respondWithResult(_0x2fe10e,null))[_0x1d551c(0x197)](handleError(_0x2fe10e,null));},exports['destroy']=function(_0x4bb5d6,_0x46b886){const _0x1bea18=a278_0x1301f1;return db[_0x1bea18(0x18a)][_0x1bea18(0x17c)]({'where':{'id':_0x4bb5d6[_0x1bea18(0x1a2)]['id']}})[_0x1bea18(0x181)](handleEntityNotFound(_0x46b886,null))[_0x1bea18(0x181)](removeEntity(_0x46b886,null))['catch'](handleError(_0x46b886,null));},exports[a278_0x1301f1(0x193)]=function(_0x369d1c,_0xbd885c){const _0x4dff3e=a278_0x1301f1;let _0x5648f1={};const _0xf41aa5={};let _0x21efb8,_0x146dcf;return db['DeskConfiguration'][_0x4dff3e(0x17c)]({'where':{'id':_0x369d1c[_0x4dff3e(0x1a2)]['id']}})[_0x4dff3e(0x181)](handleEntityNotFound(_0xbd885c,null))[_0x4dff3e(0x181)](function(_0x4a1b03){const _0xe3a458=_0x4dff3e;if(_0x4a1b03)return _0x21efb8=_0x4a1b03,_0xf41aa5[_0xe3a458(0x1a3)]=_[_0xe3a458(0x189)](db[_0xe3a458(0x185)]['rawAttributes']),_0xf41aa5[_0xe3a458(0x182)]=_[_0xe3a458(0x189)](_0x369d1c[_0xe3a458(0x182)]),_0xf41aa5['filters']=_['intersection'](_0xf41aa5['model'],_0xf41aa5[_0xe3a458(0x182)]),_0x5648f1[_0xe3a458(0x198)]=_[_0xe3a458(0x17d)](_0xf41aa5['model'],qs[_0xe3a458(0x1a0)](_0x369d1c[_0xe3a458(0x182)][_0xe3a458(0x1a0)])),_0x5648f1[_0xe3a458(0x198)]=_0x5648f1[_0xe3a458(0x198)][_0xe3a458(0x1b4)]?_0x5648f1[_0xe3a458(0x198)]:_0xf41aa5[_0xe3a458(0x1a3)],_0x5648f1[_0xe3a458(0x1a6)]=qs[_0xe3a458(0x1ac)](_0x369d1c[_0xe3a458(0x182)][_0xe3a458(0x1ac)]),_0x5648f1[_0xe3a458(0x18b)]=qs[_0xe3a458(0x183)](_[_0xe3a458(0x192)](_0x369d1c['query'],_0xf41aa5[_0xe3a458(0x183)])),_0x369d1c['query']['filter']&&(_0x5648f1[_0xe3a458(0x18b)]=_['merge'](_0x5648f1[_0xe3a458(0x18b)],{[Op['or']]:_[_0xe3a458(0x1b1)](_0x5648f1[_0xe3a458(0x198)],function(_0x583542){const _0x3b9882=_0xe3a458,_0x2bd8fd={};return _0x2bd8fd[_0x583542]={[Op[_0x3b9882(0x18e)]]:'%'+_0x369d1c[_0x3b9882(0x182)][_0x3b9882(0x1a7)]+'%'},_0x2bd8fd;})})),_0x5648f1=_[_0xe3a458(0x1b0)]({},_0x5648f1,_0x369d1c[_0xe3a458(0x1b8)]),_0x21efb8[_0xe3a458(0x193)](_0x5648f1);})[_0x4dff3e(0x181)](function(_0x89788a){const _0x556545=_0x4dff3e;if(_0x89788a)return _0x146dcf=_0x89788a[_0x556545(0x1b4)],typeof _0x369d1c[_0x556545(0x182)]['nolimit']===_0x556545(0x186)&&(_0x5648f1[_0x556545(0x19d)]=qs[_0x556545(0x19d)](_0x369d1c[_0x556545(0x182)][_0x556545(0x19d)]),_0x5648f1[_0x556545(0x18f)]=qs[_0x556545(0x18f)](_0x369d1c[_0x556545(0x182)][_0x556545(0x18f)])),_0x21efb8['getFields'](_0x5648f1);})['then'](function(_0x34d280){if(_0x34d280)return _0x34d280?{'count':_0x146dcf,'rows':_0x34d280}:null;})[_0x4dff3e(0x181)](respondWithResult(_0xbd885c,null))['catch'](handleError(_0xbd885c,null));},exports['getSubjects']=function(_0x586644,_0x460570){const _0x543ddf=a278_0x1301f1;let _0x4e6b06={};const _0x32519d={};let _0x2028f8,_0x5c04fa;return db[_0x543ddf(0x18a)][_0x543ddf(0x17c)]({'where':{'id':_0x586644[_0x543ddf(0x1a2)]['id']}})['then'](handleEntityNotFound(_0x460570,null))[_0x543ddf(0x181)](function(_0x316d84){const _0x514251=_0x543ddf;if(_0x316d84)return _0x2028f8=_0x316d84,_0x32519d['model']=_['keys'](db[_0x514251(0x185)][_0x514251(0x1b2)]),_0x32519d[_0x514251(0x182)]=_[_0x514251(0x189)](_0x586644[_0x514251(0x182)]),_0x32519d[_0x514251(0x183)]=_[_0x514251(0x17d)](_0x32519d['model'],_0x32519d[_0x514251(0x182)]),_0x4e6b06['attributes']=_[_0x514251(0x17d)](_0x32519d[_0x514251(0x1a3)],qs[_0x514251(0x1a0)](_0x586644[_0x514251(0x182)][_0x514251(0x1a0)])),_0x4e6b06[_0x514251(0x198)]=_0x4e6b06[_0x514251(0x198)][_0x514251(0x1b4)]?_0x4e6b06[_0x514251(0x198)]:_0x32519d['model'],_0x4e6b06[_0x514251(0x1a6)]=qs[_0x514251(0x1ac)](_0x586644[_0x514251(0x182)]['sort']),_0x4e6b06[_0x514251(0x18b)]=qs[_0x514251(0x183)](_[_0x514251(0x192)](_0x586644[_0x514251(0x182)],_0x32519d['filters'])),_0x586644[_0x514251(0x182)]['filter']&&(_0x4e6b06[_0x514251(0x18b)]=_[_0x514251(0x1b0)](_0x4e6b06[_0x514251(0x18b)],{[Op['or']]:_[_0x514251(0x1b1)](_0x4e6b06['attributes'],function(_0x31fcf8){const _0x358370=_0x514251,_0x44e838={};return _0x44e838[_0x31fcf8]={[Op[_0x358370(0x18e)]]:'%'+_0x586644[_0x358370(0x182)][_0x358370(0x1a7)]+'%'},_0x44e838;})})),_0x4e6b06=_[_0x514251(0x1b0)]({},_0x4e6b06,_0x586644['options']),_0x2028f8[_0x514251(0x1b5)](_0x4e6b06);})['then'](function(_0x412d2c){const _0x339b82=_0x543ddf;if(_0x412d2c)return _0x5c04fa=_0x412d2c[_0x339b82(0x1b4)],typeof _0x586644[_0x339b82(0x182)][_0x339b82(0x1b7)]===_0x339b82(0x186)&&(_0x4e6b06[_0x339b82(0x19d)]=qs[_0x339b82(0x19d)](_0x586644[_0x339b82(0x182)][_0x339b82(0x19d)]),_0x4e6b06[_0x339b82(0x18f)]=qs['offset'](_0x586644[_0x339b82(0x182)][_0x339b82(0x18f)])),_0x2028f8['getSubjects'](_0x4e6b06);})['then'](function(_0x1c3c50){if(_0x1c3c50)return _0x1c3c50?{'count':_0x5c04fa,'rows':_0x1c3c50}:null;})['then'](respondWithResult(_0x460570,null))[_0x543ddf(0x197)](handleError(_0x460570,null));},exports[a278_0x1301f1(0x1a4)]=function(_0x3965dc,_0x2d5fe7){const _0xf88ed2=a278_0x1301f1;let _0x8b5b06={};const _0x40ac91={};let _0x75c475,_0x1eb0fa;return db[_0xf88ed2(0x18a)][_0xf88ed2(0x17c)]({'where':{'id':_0x3965dc[_0xf88ed2(0x1a2)]['id']}})[_0xf88ed2(0x181)](handleEntityNotFound(_0x2d5fe7,null))[_0xf88ed2(0x181)](function(_0x7d37fb){const _0x3be6c3=_0xf88ed2;if(_0x7d37fb)return _0x75c475=_0x7d37fb,_0x40ac91[_0x3be6c3(0x1a3)]=_['keys'](db[_0x3be6c3(0x185)][_0x3be6c3(0x1b2)]),_0x40ac91[_0x3be6c3(0x182)]=_[_0x3be6c3(0x189)](_0x3965dc[_0x3be6c3(0x182)]),_0x40ac91['filters']=_[_0x3be6c3(0x17d)](_0x40ac91[_0x3be6c3(0x1a3)],_0x40ac91[_0x3be6c3(0x182)]),_0x8b5b06[_0x3be6c3(0x198)]=_['intersection'](_0x40ac91[_0x3be6c3(0x1a3)],qs[_0x3be6c3(0x1a0)](_0x3965dc[_0x3be6c3(0x182)]['fields'])),_0x8b5b06[_0x3be6c3(0x198)]=_0x8b5b06[_0x3be6c3(0x198)][_0x3be6c3(0x1b4)]?_0x8b5b06['attributes']:_0x40ac91[_0x3be6c3(0x1a3)],_0x8b5b06[_0x3be6c3(0x1a6)]=qs[_0x3be6c3(0x1ac)](_0x3965dc[_0x3be6c3(0x182)][_0x3be6c3(0x1ac)]),_0x8b5b06[_0x3be6c3(0x18b)]=qs[_0x3be6c3(0x183)](_[_0x3be6c3(0x192)](_0x3965dc[_0x3be6c3(0x182)],_0x40ac91[_0x3be6c3(0x183)])),_0x3965dc[_0x3be6c3(0x182)][_0x3be6c3(0x1a7)]&&(_0x8b5b06['where']=_[_0x3be6c3(0x1b0)](_0x8b5b06[_0x3be6c3(0x18b)],{[Op['or']]:_[_0x3be6c3(0x1b1)](_0x8b5b06['attributes'],function(_0x3a933a){const _0x22cf14=_0x3be6c3,_0x733a3c={};return _0x733a3c[_0x3a933a]={[Op[_0x22cf14(0x18e)]]:'%'+_0x3965dc[_0x22cf14(0x182)][_0x22cf14(0x1a7)]+'%'},_0x733a3c;})})),_0x8b5b06=_['merge']({},_0x8b5b06,_0x3965dc[_0x3be6c3(0x1b8)]),_0x75c475[_0x3be6c3(0x1a4)](_0x8b5b06);})[_0xf88ed2(0x181)](function(_0x45f657){const _0x21c503=_0xf88ed2;if(_0x45f657)return _0x1eb0fa=_0x45f657[_0x21c503(0x1b4)],typeof _0x3965dc[_0x21c503(0x182)]['nolimit']===_0x21c503(0x186)&&(_0x8b5b06[_0x21c503(0x19d)]=qs[_0x21c503(0x19d)](_0x3965dc['query'][_0x21c503(0x19d)]),_0x8b5b06[_0x21c503(0x18f)]=qs[_0x21c503(0x18f)](_0x3965dc[_0x21c503(0x182)][_0x21c503(0x18f)])),_0x75c475[_0x21c503(0x1a4)](_0x8b5b06);})[_0xf88ed2(0x181)](function(_0x290f93){if(_0x290f93)return _0x290f93?{'count':_0x1eb0fa,'rows':_0x290f93}:null;})[_0xf88ed2(0x181)](respondWithResult(_0x2d5fe7,null))[_0xf88ed2(0x197)](handleError(_0x2d5fe7,null));},exports[a278_0x1301f1(0x1ad)]=function(_0x411865,_0x273a48){const _0x362b92=a278_0x1301f1;let _0x2a1c30={};const _0x50a65b={};let _0xbc0970,_0x4bd847;return db[_0x362b92(0x18a)][_0x362b92(0x17c)]({'where':{'id':_0x411865['params']['id']}})['then'](handleEntityNotFound(_0x273a48,null))[_0x362b92(0x181)](function(_0x37b0ad){const _0x5449ad=_0x362b92;if(_0x37b0ad)return _0xbc0970=_0x37b0ad,_0x50a65b[_0x5449ad(0x1a3)]=_[_0x5449ad(0x189)](db[_0x5449ad(0x194)][_0x5449ad(0x1b2)]),_0x50a65b[_0x5449ad(0x182)]=_[_0x5449ad(0x189)](_0x411865[_0x5449ad(0x182)]),_0x50a65b[_0x5449ad(0x183)]=_['intersection'](_0x50a65b[_0x5449ad(0x1a3)],_0x50a65b[_0x5449ad(0x182)]),_0x2a1c30[_0x5449ad(0x198)]=_[_0x5449ad(0x17d)](_0x50a65b[_0x5449ad(0x1a3)],qs['fields'](_0x411865['query'][_0x5449ad(0x1a0)])),_0x2a1c30[_0x5449ad(0x198)]=_0x2a1c30[_0x5449ad(0x198)][_0x5449ad(0x1b4)]?_0x2a1c30[_0x5449ad(0x198)]:_0x50a65b[_0x5449ad(0x1a3)],_0x2a1c30['order']=qs[_0x5449ad(0x1ac)](_0x411865[_0x5449ad(0x182)][_0x5449ad(0x1ac)]),_0x2a1c30[_0x5449ad(0x18b)]=qs[_0x5449ad(0x183)](_[_0x5449ad(0x192)](_0x411865[_0x5449ad(0x182)],_0x50a65b[_0x5449ad(0x183)])),_0x411865[_0x5449ad(0x182)]['filter']&&(_0x2a1c30['where']=_[_0x5449ad(0x1b0)](_0x2a1c30[_0x5449ad(0x18b)],{[Op['or']]:_[_0x5449ad(0x1b1)](_0x2a1c30[_0x5449ad(0x198)],function(_0x2a6cdb){const _0x588a77=_0x5449ad,_0x2a8a2f={};return _0x2a8a2f[_0x2a6cdb]={[Op['like']]:'%'+_0x411865[_0x588a77(0x182)][_0x588a77(0x1a7)]+'%'},_0x2a8a2f;})})),_0x2a1c30=_[_0x5449ad(0x1b0)]({},_0x2a1c30,_0x411865[_0x5449ad(0x1b8)]),_0xbc0970[_0x5449ad(0x1ad)](_0x2a1c30);})[_0x362b92(0x181)](function(_0x593e5c){const _0x97b5de=_0x362b92;if(_0x593e5c)return _0x4bd847=_0x593e5c[_0x97b5de(0x1b4)],typeof _0x411865['query'][_0x97b5de(0x1b7)]===_0x97b5de(0x186)&&(_0x2a1c30[_0x97b5de(0x19d)]=qs[_0x97b5de(0x19d)](_0x411865[_0x97b5de(0x182)]['limit']),_0x2a1c30['offset']=qs[_0x97b5de(0x18f)](_0x411865[_0x97b5de(0x182)][_0x97b5de(0x18f)])),_0xbc0970[_0x97b5de(0x1ad)](_0x2a1c30);})['then'](function(_0x32ec8e){if(_0x32ec8e)return _0x32ec8e?{'count':_0x4bd847,'rows':_0x32ec8e}:null;})[_0x362b92(0x181)](respondWithResult(_0x273a48,null))[_0x362b92(0x197)](handleError(_0x273a48,null));},exports[a278_0x1301f1(0x19a)]=function(_0x26404a,_0x194f68){const _0x1c7726=a278_0x1301f1;return _0x26404a[_0x1c7726(0x19e)]['id']&&delete _0x26404a[_0x1c7726(0x19e)]['id'],db[_0x1c7726(0x18a)][_0x1c7726(0x17c)]({'where':{'id':_0x26404a['params']['id']}})[_0x1c7726(0x181)](handleEntityNotFound(_0x194f68,null))[_0x1c7726(0x181)](function(_0x2c34f8){const _0x2e5f01=_0x1c7726;if(_0x2c34f8)return _0x2c34f8[_0x2e5f01(0x19a)](_0x26404a[_0x2e5f01(0x19e)]['ids']||[]);return null;})[_0x1c7726(0x181)](respondWithResult(_0x194f68,null))['catch'](handleError(_0x194f68,null));}; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.model.js b/server/api/intDeskConfiguration/intDeskConfiguration.model.js index b24204d..54346f3 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.model.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.model.js @@ -1 +1 @@ -const a279_0xd946=['init','./intDeskConfiguration.attributes','./intDeskConfiguration.options','DeskConfiguration','exports','function'];(function(_0x53b28d,_0xaa9ac0){const _0xd94686=function(_0x4bc48c){while(--_0x4bc48c){_0x53b28d['push'](_0x53b28d['shift']());}};_0xd94686(++_0xaa9ac0);}(a279_0xd946,0x68));const a279_0x4bc4=function(_0x53b28d,_0xaa9ac0){_0x53b28d=_0x53b28d-0x9e;let _0xd94686=a279_0xd946[_0x53b28d];return _0xd94686;};const a279_0x59196d=a279_0x4bc4;'use strict';const {Model}=require('sequelize'),{attributes}=require(a279_0x59196d(0xa3)),{options}=require(a279_0x59196d(0x9e));class DeskConfiguration extends Model{}function init(_0x5882df,_0x3e7d6b){const _0x2d8638=a279_0x59196d,_0x46c95c=options(_0x5882df),_0x4e0932=typeof _0x3e7d6b===_0x2d8638(0xa1)?_0x3e7d6b(_0x46c95c):_0x46c95c;return DeskConfiguration[_0x2d8638(0xa2)](attributes,_0x4e0932),DeskConfiguration;}module[a279_0x59196d(0xa0)][a279_0x59196d(0x9f)]=DeskConfiguration,module[a279_0x59196d(0xa0)][a279_0x59196d(0xa2)]=init; \ No newline at end of file +const a279_0x1ec0=['init','DeskConfiguration','./intDeskConfiguration.options','function','sequelize','./intDeskConfiguration.attributes','exports'];(function(_0x56f3f5,_0x277533){const _0x1ec078=function(_0x4aa301){while(--_0x4aa301){_0x56f3f5['push'](_0x56f3f5['shift']());}};_0x1ec078(++_0x277533);}(a279_0x1ec0,0x86));const a279_0x4aa3=function(_0x56f3f5,_0x277533){_0x56f3f5=_0x56f3f5-0x81;let _0x1ec078=a279_0x1ec0[_0x56f3f5];return _0x1ec078;};const a279_0x290e9e=a279_0x4aa3;'use strict';const {Model}=require(a279_0x290e9e(0x84)),{attributes}=require(a279_0x290e9e(0x85)),{options}=require(a279_0x290e9e(0x82));class DeskConfiguration extends Model{}function init(_0x6669c4,_0x4e1652){const _0x15bb56=a279_0x290e9e,_0x115593=options(_0x6669c4),_0x5d6ce1=typeof _0x4e1652===_0x15bb56(0x83)?_0x4e1652(_0x115593):_0x115593;return DeskConfiguration['init'](attributes,_0x5d6ce1),DeskConfiguration;}module[a279_0x290e9e(0x86)][a279_0x290e9e(0x81)]=DeskConfiguration,module[a279_0x290e9e(0x86)][a279_0x290e9e(0x87)]=init; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.options.js b/server/api/intDeskConfiguration/intDeskConfiguration.options.js index b66b3d3..136b4ca 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.options.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.options.js @@ -1 +1 @@ -var a280_0xd3b4=['options','int_desk_configurations','exports'];(function(_0x43c76a,_0xb83708){var _0xd3b4f5=function(_0x422edf){while(--_0x422edf){_0x43c76a['push'](_0x43c76a['shift']());}};_0xd3b4f5(++_0xb83708);}(a280_0xd3b4,0x114));var a280_0x422e=function(_0x43c76a,_0xb83708){_0x43c76a=_0x43c76a-0x83;var _0xd3b4f5=a280_0xd3b4[_0x43c76a];return _0xd3b4f5;};var a280_0x46ec0a=a280_0x422e;function options(_0xd2038d){var _0x30fef2=a280_0x422e;return{'sequelize':_0xd2038d,'tableName':_0x30fef2(0x84),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a280_0x46ec0a(0x85)][a280_0x46ec0a(0x83)]=options; \ No newline at end of file +var a280_0x1cd0=['options','int_desk_configurations','exports'];(function(_0x49e5ed,_0x410668){var _0x1cd040=function(_0x5d410c){while(--_0x5d410c){_0x49e5ed['push'](_0x49e5ed['shift']());}};_0x1cd040(++_0x410668);}(a280_0x1cd0,0xb6));var a280_0x5d41=function(_0x49e5ed,_0x410668){_0x49e5ed=_0x49e5ed-0x9b;var _0x1cd040=a280_0x1cd0[_0x49e5ed];return _0x1cd040;};var a280_0x154890=a280_0x5d41;function options(_0x65f86b){var _0x24cc48=a280_0x5d41;return{'sequelize':_0x65f86b,'tableName':_0x24cc48(0x9d),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a280_0x154890(0x9b)][a280_0x154890(0x9c)]=options; \ No newline at end of file diff --git a/server/api/intDeskField/index.js b/server/api/intDeskField/index.js index 1262777..053744c 100644 --- a/server/api/intDeskField/index.js +++ b/server/api/intDeskField/index.js @@ -1 +1 @@ -const a281_0x4ff8=['index','./intDeskField.controller','put','get','../../components/auth/service','isAuthenticated','/:id','destroy','Router','update','express'];(function(_0x267d5a,_0x56fd4d){const _0x4ff80e=function(_0x18e09f){while(--_0x18e09f){_0x267d5a['push'](_0x267d5a['shift']());}};_0x4ff80e(++_0x56fd4d);}(a281_0x4ff8,0x168));const a281_0x18e0=function(_0x267d5a,_0x56fd4d){_0x267d5a=_0x267d5a-0x1d1;let _0x4ff80e=a281_0x4ff8[_0x267d5a];return _0x4ff80e;};const a281_0x19dffc=a281_0x18e0;'use strict';const express=require(a281_0x19dffc(0x1d3)),router=express[a281_0x19dffc(0x1d1)](),auth=require(a281_0x19dffc(0x1d8)),controller=require(a281_0x19dffc(0x1d5));router['get']('/',auth[a281_0x19dffc(0x1d9)](),controller[a281_0x19dffc(0x1d4)]),router[a281_0x19dffc(0x1d7)](a281_0x19dffc(0x1da),auth[a281_0x19dffc(0x1d9)](),controller['show']),router['post']('/',auth[a281_0x19dffc(0x1d9)](),controller['create']),router[a281_0x19dffc(0x1d6)](a281_0x19dffc(0x1da),auth[a281_0x19dffc(0x1d9)](),controller[a281_0x19dffc(0x1d2)]),router['delete'](a281_0x19dffc(0x1da),auth['isAuthenticated'](),controller[a281_0x19dffc(0x1db)]),module['exports']=router; \ No newline at end of file +const a281_0x1e7b=['exports','express','index','Router','put','show','delete','isAuthenticated','/:id','destroy','./intDeskField.controller','../../components/auth/service','get'];(function(_0x16d461,_0x470c60){const _0x1e7b21=function(_0x1538cf){while(--_0x1538cf){_0x16d461['push'](_0x16d461['shift']());}};_0x1e7b21(++_0x470c60);}(a281_0x1e7b,0x1db));const a281_0x1538=function(_0x16d461,_0x470c60){_0x16d461=_0x16d461-0x118;let _0x1e7b21=a281_0x1e7b[_0x16d461];return _0x1e7b21;};const a281_0x30c3c3=a281_0x1538;'use strict';const express=require(a281_0x30c3c3(0x11f)),router=express[a281_0x30c3c3(0x121)](),auth=require(a281_0x30c3c3(0x11c)),controller=require(a281_0x30c3c3(0x11b));router[a281_0x30c3c3(0x11d)]('/',auth[a281_0x30c3c3(0x118)](),controller[a281_0x30c3c3(0x120)]),router[a281_0x30c3c3(0x11d)](a281_0x30c3c3(0x119),auth[a281_0x30c3c3(0x118)](),controller[a281_0x30c3c3(0x123)]),router['post']('/',auth[a281_0x30c3c3(0x118)](),controller['create']),router[a281_0x30c3c3(0x122)](a281_0x30c3c3(0x119),auth[a281_0x30c3c3(0x118)](),controller['update']),router[a281_0x30c3c3(0x124)]('/:id',auth[a281_0x30c3c3(0x118)](),controller[a281_0x30c3c3(0x11a)]),module[a281_0x30c3c3(0x11e)]=router; \ No newline at end of file diff --git a/server/api/intDeskField/intDeskField.attributes.js b/server/api/intDeskField/intDeskField.attributes.js index e4137ff..67b573f 100644 --- a/server/api/intDeskField/intDeskField.attributes.js +++ b/server/api/intDeskField/intDeskField.attributes.js @@ -1 +1 @@ -const a282_0x15e9=['variable','string','BOOLEAN','ENUM','attributes','STRING','sequelize','exports','customVariable'];(function(_0x1b8f48,_0x56707a){const _0x15e94d=function(_0x2e5bf4){while(--_0x2e5bf4){_0x1b8f48['push'](_0x1b8f48['shift']());}};_0x15e94d(++_0x56707a);}(a282_0x15e9,0x14b));const a282_0x2e5b=function(_0x1b8f48,_0x56707a){_0x1b8f48=_0x1b8f48-0x174;let _0x15e94d=a282_0x15e9[_0x1b8f48];return _0x15e94d;};const a282_0x243766=a282_0x2e5b;'use strict';const {DataTypes}=require(a282_0x243766(0x17c)),attributes={'type':{'type':DataTypes[a282_0x243766(0x179)](a282_0x243766(0x177),a282_0x243766(0x176),a282_0x243766(0x175),'keyValue'),'defaultValue':a282_0x243766(0x177)},'content':{'type':DataTypes[a282_0x243766(0x17b)]},'key':{'type':DataTypes[a282_0x243766(0x17b)]},'keyType':{'type':DataTypes[a282_0x243766(0x179)](a282_0x243766(0x177),a282_0x243766(0x176),a282_0x243766(0x175))},'keyContent':{'type':DataTypes[a282_0x243766(0x17b)]},'idField':{'type':DataTypes[a282_0x243766(0x17b)]},'nameField':{'type':DataTypes['STRING']},'customField':{'type':DataTypes[a282_0x243766(0x178)],'defaultValue':!![]},'variableName':{'type':DataTypes[a282_0x243766(0x17b)]}};module[a282_0x243766(0x174)][a282_0x243766(0x17a)]=attributes; \ No newline at end of file +const a282_0x4303=['sequelize','variable','attributes','string','exports','keyValue','BOOLEAN','ENUM','STRING','customVariable'];(function(_0x225d81,_0x4e57f3){const _0x430382=function(_0x3cdbd8){while(--_0x3cdbd8){_0x225d81['push'](_0x225d81['shift']());}};_0x430382(++_0x4e57f3);}(a282_0x4303,0x15a));const a282_0x3cdb=function(_0x225d81,_0x4e57f3){_0x225d81=_0x225d81-0xc9;let _0x430382=a282_0x4303[_0x225d81];return _0x430382;};const a282_0x1f2f4b=a282_0x3cdb;'use strict';const {DataTypes}=require(a282_0x1f2f4b(0xcd)),attributes={'type':{'type':DataTypes[a282_0x1f2f4b(0xca)](a282_0x1f2f4b(0xd0),a282_0x1f2f4b(0xce),'customVariable',a282_0x1f2f4b(0xd2)),'defaultValue':'string'},'content':{'type':DataTypes[a282_0x1f2f4b(0xcb)]},'key':{'type':DataTypes['STRING']},'keyType':{'type':DataTypes[a282_0x1f2f4b(0xca)](a282_0x1f2f4b(0xd0),'variable',a282_0x1f2f4b(0xcc))},'keyContent':{'type':DataTypes['STRING']},'idField':{'type':DataTypes[a282_0x1f2f4b(0xcb)]},'nameField':{'type':DataTypes['STRING']},'customField':{'type':DataTypes[a282_0x1f2f4b(0xc9)],'defaultValue':!![]},'variableName':{'type':DataTypes[a282_0x1f2f4b(0xcb)]}};module[a282_0x1f2f4b(0xd1)][a282_0x1f2f4b(0xcf)]=attributes; \ No newline at end of file diff --git a/server/api/intDeskField/intDeskField.controller.js b/server/api/intDeskField/intDeskField.controller.js index df07927..fece49c 100644 --- a/server/api/intDeskField/intDeskField.controller.js +++ b/server/api/intDeskField/intDeskField.controller.js @@ -1 +1 @@ -const a283_0x528f=['../../mysqldb','DeskField','then','fields','error','name','destroy','set','body','pick','index','json','sort','catch','show','limit','findOne','includeAll','lodash','keys','offset','map','VIRTUAL','findAll','../../components/parsers/qs','undefined','include','../../config/logger','like','options','length','send','attributes','query','rawAttributes','count','sendStatus','filters','sequelize','where','intersection','type','create','model','status','merge','order','rows','filter','fieldName','update','params'];(function(_0x171094,_0x5ecac1){const _0x528f3e=function(_0x33156e){while(--_0x33156e){_0x171094['push'](_0x171094['shift']());}};_0x528f3e(++_0x5ecac1);}(a283_0x528f,0x13a));const a283_0x3315=function(_0x171094,_0x5ecac1){_0x171094=_0x171094-0x1bc;let _0x528f3e=a283_0x528f[_0x171094];return _0x528f3e;};const a283_0x46fe88=a283_0x3315;'use strict';const _=require(a283_0x46fe88(0x1cc)),qs=require(a283_0x46fe88(0x1d2)),logger=require(a283_0x46fe88(0x1d5))('api'),{db}=require(a283_0x46fe88(0x1ee)),{Op}=require(a283_0x46fe88(0x1e0));function respondWithResult(_0xddefb1,_0x4f65c5){return _0x4f65c5=_0x4f65c5||0xc8,function(_0x5f3cd0){const _0x4b2336=a283_0x3315;if(_0x5f3cd0)return _0xddefb1['status'](_0x4f65c5)[_0x4b2336(0x1c5)](_0x5f3cd0);};}function respondWithFilteredResult(_0x5049eb,_0x3b2f4a){return function(_0x4df043){const _0x10a690=a283_0x3315;if(_0x4df043){const _0xfcd3a3=_0x4df043[_0x10a690(0x1dd)],_0x5e5ded=_0x3b2f4a[_0x10a690(0x1ce)];let _0x3366ce=_0x3b2f4a['offset']+_0x3b2f4a[_0x10a690(0x1c9)],_0x201931;return _0x3366ce>=_0xfcd3a3?(_0x3366ce=_0xfcd3a3,_0x201931=0xc8):_0x201931=0xce,_0x5049eb[_0x10a690(0x1e6)](_0x201931),_0x5049eb[_0x10a690(0x1c1)]('Content-Range',_0x5e5ded+'-'+_0x3366ce+'/'+_0xfcd3a3)[_0x10a690(0x1c5)](_0x4df043);}return null;};}function saveUpdates(_0x20f089){return function(_0x1a5abb){const _0x461ef5=a283_0x3315;if(_0x1a5abb)return _0x1a5abb[_0x461ef5(0x1ec)](_0x20f089)[_0x461ef5(0x1bc)](function(_0x2a8538){return _0x2a8538;});return null;};}function removeEntity(_0xfb5fdd){return function(_0x427a2c){const _0x105efb=a283_0x3315;if(_0x427a2c)return _0x427a2c['destroy']()[_0x105efb(0x1bc)](function(){const _0x416a08=_0x105efb;_0xfb5fdd[_0x416a08(0x1e6)](0xcc)['end']();});};}function handleEntityNotFound(_0x2cb25c){return function(_0x557bbb){const _0x1dfa42=a283_0x3315;return!_0x557bbb&&_0x2cb25c[_0x1dfa42(0x1de)](0x194),_0x557bbb;};}function handleError(_0x232d77,_0x6f7d25){return _0x6f7d25=_0x6f7d25||0x1f4,function(_0x41f120){const _0x5d942d=a283_0x3315;logger[_0x5d942d(0x1be)](_0x41f120['stack']),_0x41f120[_0x5d942d(0x1bf)]&&delete _0x41f120[_0x5d942d(0x1bf)],_0x232d77[_0x5d942d(0x1e6)](_0x6f7d25)[_0x5d942d(0x1d9)](_0x41f120);};}exports[a283_0x46fe88(0x1c4)]=function(_0x275f02,_0x4eb35d){const _0x2cd743=a283_0x46fe88;let _0x4e258c={};const _0x37f82e={},_0x5d73ca={'count':0x0,'rows':[]},_0x4c0ba2=_[_0x2cd743(0x1cf)](db[_0x2cd743(0x1ef)][_0x2cd743(0x1dc)],function(_0x447e0b){const _0x557fc7=_0x2cd743;return{'name':_0x447e0b[_0x557fc7(0x1eb)],'type':_0x447e0b['type']['key']};});_0x37f82e[_0x2cd743(0x1e5)]=_[_0x2cd743(0x1cf)](_0x4c0ba2,_0x2cd743(0x1bf)),_0x37f82e[_0x2cd743(0x1db)]=_['keys'](_0x275f02[_0x2cd743(0x1db)]),_0x37f82e[_0x2cd743(0x1df)]=_[_0x2cd743(0x1e2)](_0x37f82e[_0x2cd743(0x1e5)],_0x37f82e[_0x2cd743(0x1db)]),_0x4e258c[_0x2cd743(0x1da)]=_[_0x2cd743(0x1e2)](_0x37f82e[_0x2cd743(0x1e5)],qs[_0x2cd743(0x1bd)](_0x275f02['query'][_0x2cd743(0x1bd)])),_0x4e258c[_0x2cd743(0x1da)]=_0x4e258c['attributes'][_0x2cd743(0x1d8)]?_0x4e258c[_0x2cd743(0x1da)]:_0x37f82e[_0x2cd743(0x1e5)];typeof _0x275f02[_0x2cd743(0x1db)]['nolimit']===_0x2cd743(0x1d3)&&(_0x4e258c[_0x2cd743(0x1c9)]=qs[_0x2cd743(0x1c9)](_0x275f02[_0x2cd743(0x1db)]['limit']),_0x4e258c[_0x2cd743(0x1ce)]=qs[_0x2cd743(0x1ce)](_0x275f02[_0x2cd743(0x1db)][_0x2cd743(0x1ce)]));_0x4e258c[_0x2cd743(0x1e8)]=qs[_0x2cd743(0x1c6)](_0x275f02[_0x2cd743(0x1db)][_0x2cd743(0x1c6)]),_0x4e258c[_0x2cd743(0x1e1)]=qs[_0x2cd743(0x1df)](_[_0x2cd743(0x1c3)](_0x275f02[_0x2cd743(0x1db)],_0x37f82e[_0x2cd743(0x1df)]),_0x4c0ba2);_0x275f02['query'][_0x2cd743(0x1ea)]&&(_0x4e258c['where']=_[_0x2cd743(0x1e7)](_0x4e258c['where'],{[Op['or']]:_['map'](_0x4c0ba2,function(_0x4e4094){const _0x2469f3=_0x2cd743;if(_0x4e4094[_0x2469f3(0x1e3)]!==_0x2469f3(0x1d0)){const _0x326279={};return _0x326279[_0x4e4094[_0x2469f3(0x1bf)]]={[Op[_0x2469f3(0x1d6)]]:'%'+_0x275f02['query'][_0x2469f3(0x1ea)]+'%'},_0x326279;}})}));_0x4e258c=_['merge']({},_0x4e258c,_0x275f02[_0x2cd743(0x1d7)]);const _0x566e8c={'where':_0x4e258c[_0x2cd743(0x1e1)]};return db[_0x2cd743(0x1ef)][_0x2cd743(0x1dd)](_0x566e8c)['then'](function(_0x2b44d7){const _0x2c71da=_0x2cd743;return _0x5d73ca[_0x2c71da(0x1dd)]=_0x2b44d7,_0x275f02[_0x2c71da(0x1db)]['includeAll']&&(_0x4e258c['include']=[{'all':!![]}]),db[_0x2c71da(0x1ef)][_0x2c71da(0x1d1)](_0x4e258c);})[_0x2cd743(0x1bc)](function(_0x348159){const _0x2fe867=_0x2cd743;return _0x5d73ca[_0x2fe867(0x1e9)]=_0x348159,_0x5d73ca;})[_0x2cd743(0x1bc)](respondWithFilteredResult(_0x4eb35d,_0x4e258c))['catch'](handleError(_0x4eb35d,null));},exports[a283_0x46fe88(0x1c8)]=function(_0x3d7189,_0x5b3046){const _0x2e5397=a283_0x46fe88;let _0x209061={'raw':!![],'where':{'id':_0x3d7189[_0x2e5397(0x1ed)]['id']}};const _0x42adb2={};return _0x42adb2[_0x2e5397(0x1e5)]=_[_0x2e5397(0x1cd)](db['DeskField']['rawAttributes']),_0x42adb2[_0x2e5397(0x1db)]=_[_0x2e5397(0x1cd)](_0x3d7189[_0x2e5397(0x1db)]),_0x42adb2['filters']=_['intersection'](_0x42adb2[_0x2e5397(0x1e5)],_0x42adb2['query']),_0x209061[_0x2e5397(0x1da)]=_['intersection'](_0x42adb2[_0x2e5397(0x1e5)],qs[_0x2e5397(0x1bd)](_0x3d7189[_0x2e5397(0x1db)][_0x2e5397(0x1bd)])),_0x209061[_0x2e5397(0x1da)]=_0x209061[_0x2e5397(0x1da)][_0x2e5397(0x1d8)]?_0x209061['attributes']:_0x42adb2[_0x2e5397(0x1e5)],_0x3d7189['query'][_0x2e5397(0x1cb)]&&(_0x209061[_0x2e5397(0x1d4)]=[{'all':!![]}]),_0x209061=_[_0x2e5397(0x1e7)]({},_0x209061,_0x3d7189['options']),db[_0x2e5397(0x1ef)][_0x2e5397(0x1ca)](_0x209061)[_0x2e5397(0x1bc)](handleEntityNotFound(_0x5b3046,null))['then'](respondWithResult(_0x5b3046,null))[_0x2e5397(0x1c7)](handleError(_0x5b3046,null));},exports[a283_0x46fe88(0x1e4)]=function(_0x4d2f14,_0x56d5fe){const _0x145706=a283_0x46fe88;return db['DeskField'][_0x145706(0x1e4)](_0x4d2f14[_0x145706(0x1c2)],{})[_0x145706(0x1bc)](respondWithResult(_0x56d5fe,0xc9))[_0x145706(0x1c7)](handleError(_0x56d5fe,null));},exports['update']=function(_0x3188fb,_0x38d9df){const _0x297569=a283_0x46fe88;return _0x3188fb['body']['id']&&delete _0x3188fb[_0x297569(0x1c2)]['id'],db[_0x297569(0x1ef)]['findOne']({'where':{'id':_0x3188fb['params']['id']}})['then'](handleEntityNotFound(_0x38d9df,null))[_0x297569(0x1bc)](saveUpdates(_0x3188fb[_0x297569(0x1c2)],null))['then'](respondWithResult(_0x38d9df,null))[_0x297569(0x1c7)](handleError(_0x38d9df,null));},exports[a283_0x46fe88(0x1c0)]=function(_0x18c86a,_0x75465d){const _0x2b57e5=a283_0x46fe88;return db[_0x2b57e5(0x1ef)][_0x2b57e5(0x1ca)]({'where':{'id':_0x18c86a[_0x2b57e5(0x1ed)]['id']}})[_0x2b57e5(0x1bc)](handleEntityNotFound(_0x75465d,null))[_0x2b57e5(0x1bc)](removeEntity(_0x75465d,null))['catch'](handleError(_0x75465d,null));}; \ No newline at end of file +const a283_0x2af2=['findOne','model','status','name','../../mysqldb','fields','Content-Range','set','index','nolimit','length','update','stack','destroy','end','count','keys','offset','create','catch','VIRTUAL','attributes','params','pick','sendStatus','map','body','api','then','merge','send','type','filters','intersection','../../config/logger','include','findAll','undefined','fieldName','sequelize','json','query','DeskField','limit','like','order','sort','filter','where','includeAll'];(function(_0x3ccfbf,_0xac90c7){const _0x2af25f=function(_0x43e40c){while(--_0x43e40c){_0x3ccfbf['push'](_0x3ccfbf['shift']());}};_0x2af25f(++_0xac90c7);}(a283_0x2af2,0x7d));const a283_0x43e4=function(_0x3ccfbf,_0xac90c7){_0x3ccfbf=_0x3ccfbf-0x135;let _0x2af25f=a283_0x2af2[_0x3ccfbf];return _0x2af25f;};const a283_0x1f3d6c=a283_0x43e4;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(a283_0x1f3d6c(0x13e))(a283_0x1f3d6c(0x137)),{db}=require(a283_0x1f3d6c(0x152)),{Op}=require(a283_0x1f3d6c(0x143));function respondWithResult(_0x4443ad,_0x291d85){return _0x291d85=_0x291d85||0xc8,function(_0x366510){const _0x2d8247=a283_0x43e4;if(_0x366510)return _0x4443ad[_0x2d8247(0x150)](_0x291d85)[_0x2d8247(0x144)](_0x366510);};}function respondWithFilteredResult(_0xdc3384,_0x21c465){return function(_0x5d2ade){const _0x149835=a283_0x43e4;if(_0x5d2ade){const _0x4739ea=_0x5d2ade[_0x149835(0x15d)],_0x31a500=_0x21c465[_0x149835(0x15f)];let _0x4f0580=_0x21c465[_0x149835(0x15f)]+_0x21c465['limit'],_0x3d297e;return _0x4f0580>=_0x4739ea?(_0x4f0580=_0x4739ea,_0x3d297e=0xc8):_0x3d297e=0xce,_0xdc3384[_0x149835(0x150)](_0x3d297e),_0xdc3384[_0x149835(0x155)](_0x149835(0x154),_0x31a500+'-'+_0x4f0580+'/'+_0x4739ea)[_0x149835(0x144)](_0x5d2ade);}return null;};}function saveUpdates(_0x4293f3){return function(_0x36fec3){const _0x290a9c=a283_0x43e4;if(_0x36fec3)return _0x36fec3[_0x290a9c(0x159)](_0x4293f3)[_0x290a9c(0x138)](function(_0x143f64){return _0x143f64;});return null;};}function removeEntity(_0x26d84f){return function(_0x787236){const _0x486a40=a283_0x43e4;if(_0x787236)return _0x787236[_0x486a40(0x15b)]()[_0x486a40(0x138)](function(){const _0x26ab5d=_0x486a40;_0x26d84f['status'](0xcc)[_0x26ab5d(0x15c)]();});};}function handleEntityNotFound(_0x535101){return function(_0x35357b){const _0x10bd94=a283_0x43e4;return!_0x35357b&&_0x535101[_0x10bd94(0x166)](0x194),_0x35357b;};}function handleError(_0xbbbfe7,_0x4f0892){return _0x4f0892=_0x4f0892||0x1f4,function(_0x65053f){const _0x4bd9fd=a283_0x43e4;logger['error'](_0x65053f[_0x4bd9fd(0x15a)]),_0x65053f[_0x4bd9fd(0x151)]&&delete _0x65053f[_0x4bd9fd(0x151)],_0xbbbfe7[_0x4bd9fd(0x150)](_0x4f0892)[_0x4bd9fd(0x13a)](_0x65053f);};}exports[a283_0x1f3d6c(0x156)]=function(_0xbc909b,_0x37c6f7){const _0x54ccef=a283_0x1f3d6c;let _0x4f43b3={};const _0x4b1b86={},_0x8cba43={'count':0x0,'rows':[]},_0x1c5ded=_[_0x54ccef(0x135)](db[_0x54ccef(0x146)]['rawAttributes'],function(_0x15c70b){const _0x504728=_0x54ccef;return{'name':_0x15c70b[_0x504728(0x142)],'type':_0x15c70b[_0x504728(0x13b)]['key']};});_0x4b1b86['model']=_[_0x54ccef(0x135)](_0x1c5ded,_0x54ccef(0x151)),_0x4b1b86[_0x54ccef(0x145)]=_['keys'](_0xbc909b[_0x54ccef(0x145)]),_0x4b1b86['filters']=_[_0x54ccef(0x13d)](_0x4b1b86[_0x54ccef(0x14f)],_0x4b1b86[_0x54ccef(0x145)]),_0x4f43b3[_0x54ccef(0x163)]=_[_0x54ccef(0x13d)](_0x4b1b86['model'],qs[_0x54ccef(0x153)](_0xbc909b['query'][_0x54ccef(0x153)])),_0x4f43b3[_0x54ccef(0x163)]=_0x4f43b3['attributes'][_0x54ccef(0x158)]?_0x4f43b3[_0x54ccef(0x163)]:_0x4b1b86['model'];typeof _0xbc909b['query'][_0x54ccef(0x157)]===_0x54ccef(0x141)&&(_0x4f43b3[_0x54ccef(0x147)]=qs[_0x54ccef(0x147)](_0xbc909b[_0x54ccef(0x145)][_0x54ccef(0x147)]),_0x4f43b3[_0x54ccef(0x15f)]=qs['offset'](_0xbc909b['query']['offset']));_0x4f43b3[_0x54ccef(0x149)]=qs[_0x54ccef(0x14a)](_0xbc909b['query'][_0x54ccef(0x14a)]),_0x4f43b3[_0x54ccef(0x14c)]=qs[_0x54ccef(0x13c)](_[_0x54ccef(0x165)](_0xbc909b[_0x54ccef(0x145)],_0x4b1b86[_0x54ccef(0x13c)]),_0x1c5ded);_0xbc909b[_0x54ccef(0x145)][_0x54ccef(0x14b)]&&(_0x4f43b3['where']=_[_0x54ccef(0x139)](_0x4f43b3[_0x54ccef(0x14c)],{[Op['or']]:_[_0x54ccef(0x135)](_0x1c5ded,function(_0x389b66){const _0x2bb185=_0x54ccef;if(_0x389b66[_0x2bb185(0x13b)]!==_0x2bb185(0x162)){const _0x511e43={};return _0x511e43[_0x389b66['name']]={[Op[_0x2bb185(0x148)]]:'%'+_0xbc909b[_0x2bb185(0x145)][_0x2bb185(0x14b)]+'%'},_0x511e43;}})}));_0x4f43b3=_[_0x54ccef(0x139)]({},_0x4f43b3,_0xbc909b['options']);const _0x946ef7={'where':_0x4f43b3[_0x54ccef(0x14c)]};return db['DeskField'][_0x54ccef(0x15d)](_0x946ef7)[_0x54ccef(0x138)](function(_0x5e398e){const _0x12cb69=_0x54ccef;return _0x8cba43[_0x12cb69(0x15d)]=_0x5e398e,_0xbc909b['query']['includeAll']&&(_0x4f43b3['include']=[{'all':!![]}]),db[_0x12cb69(0x146)][_0x12cb69(0x140)](_0x4f43b3);})[_0x54ccef(0x138)](function(_0x4f1350){return _0x8cba43['rows']=_0x4f1350,_0x8cba43;})[_0x54ccef(0x138)](respondWithFilteredResult(_0x37c6f7,_0x4f43b3))[_0x54ccef(0x161)](handleError(_0x37c6f7,null));},exports['show']=function(_0x4f9bdf,_0x45d250){const _0x11cb67=a283_0x1f3d6c;let _0x502df5={'raw':!![],'where':{'id':_0x4f9bdf[_0x11cb67(0x164)]['id']}};const _0x2f3bfd={};return _0x2f3bfd[_0x11cb67(0x14f)]=_[_0x11cb67(0x15e)](db[_0x11cb67(0x146)]['rawAttributes']),_0x2f3bfd['query']=_[_0x11cb67(0x15e)](_0x4f9bdf[_0x11cb67(0x145)]),_0x2f3bfd[_0x11cb67(0x13c)]=_['intersection'](_0x2f3bfd[_0x11cb67(0x14f)],_0x2f3bfd[_0x11cb67(0x145)]),_0x502df5['attributes']=_[_0x11cb67(0x13d)](_0x2f3bfd[_0x11cb67(0x14f)],qs[_0x11cb67(0x153)](_0x4f9bdf[_0x11cb67(0x145)][_0x11cb67(0x153)])),_0x502df5[_0x11cb67(0x163)]=_0x502df5[_0x11cb67(0x163)][_0x11cb67(0x158)]?_0x502df5[_0x11cb67(0x163)]:_0x2f3bfd['model'],_0x4f9bdf['query'][_0x11cb67(0x14d)]&&(_0x502df5[_0x11cb67(0x13f)]=[{'all':!![]}]),_0x502df5=_[_0x11cb67(0x139)]({},_0x502df5,_0x4f9bdf['options']),db[_0x11cb67(0x146)]['findOne'](_0x502df5)['then'](handleEntityNotFound(_0x45d250,null))[_0x11cb67(0x138)](respondWithResult(_0x45d250,null))[_0x11cb67(0x161)](handleError(_0x45d250,null));},exports[a283_0x1f3d6c(0x160)]=function(_0x18e94d,_0x198e55){const _0x21d3a7=a283_0x1f3d6c;return db['DeskField']['create'](_0x18e94d['body'],{})[_0x21d3a7(0x138)](respondWithResult(_0x198e55,0xc9))[_0x21d3a7(0x161)](handleError(_0x198e55,null));},exports[a283_0x1f3d6c(0x159)]=function(_0x205b16,_0x19b6b1){const _0x322607=a283_0x1f3d6c;return _0x205b16[_0x322607(0x136)]['id']&&delete _0x205b16['body']['id'],db[_0x322607(0x146)]['findOne']({'where':{'id':_0x205b16['params']['id']}})[_0x322607(0x138)](handleEntityNotFound(_0x19b6b1,null))[_0x322607(0x138)](saveUpdates(_0x205b16['body'],null))[_0x322607(0x138)](respondWithResult(_0x19b6b1,null))[_0x322607(0x161)](handleError(_0x19b6b1,null));},exports[a283_0x1f3d6c(0x15b)]=function(_0x1cb657,_0x43f327){const _0x55ae0d=a283_0x1f3d6c;return db[_0x55ae0d(0x146)][_0x55ae0d(0x14e)]({'where':{'id':_0x1cb657[_0x55ae0d(0x164)]['id']}})['then'](handleEntityNotFound(_0x43f327,null))['then'](removeEntity(_0x43f327,null))[_0x55ae0d(0x161)](handleError(_0x43f327,null));}; \ No newline at end of file diff --git a/server/api/intDeskField/intDeskField.model.js b/server/api/intDeskField/intDeskField.model.js index 7834b44..e242cc6 100644 --- a/server/api/intDeskField/intDeskField.model.js +++ b/server/api/intDeskField/intDeskField.model.js @@ -1 +1 @@ -const a284_0x1198=['./intDeskField.options','./intDeskField.attributes','DeskField','sequelize','function','exports','init'];(function(_0x130b8e,_0x2ea53f){const _0x1198f2=function(_0x24649d){while(--_0x24649d){_0x130b8e['push'](_0x130b8e['shift']());}};_0x1198f2(++_0x2ea53f);}(a284_0x1198,0x19d));const a284_0x2464=function(_0x130b8e,_0x2ea53f){_0x130b8e=_0x130b8e-0x149;let _0x1198f2=a284_0x1198[_0x130b8e];return _0x1198f2;};const a284_0x2655f5=a284_0x2464;'use strict';const {Model}=require(a284_0x2655f5(0x14c)),{attributes}=require(a284_0x2655f5(0x14a)),{options}=require(a284_0x2655f5(0x149));class DeskField extends Model{}function init(_0x1a8d50,_0x5f3690){const _0x161d5f=a284_0x2655f5,_0x549037=options(_0x1a8d50),_0x286120=typeof _0x5f3690===_0x161d5f(0x14d)?_0x5f3690(_0x549037):_0x549037;return DeskField[_0x161d5f(0x14f)](attributes,_0x286120),DeskField;}module[a284_0x2655f5(0x14e)][a284_0x2655f5(0x14b)]=DeskField,module[a284_0x2655f5(0x14e)][a284_0x2655f5(0x14f)]=init; \ No newline at end of file +const a284_0x4c05=['init','function','exports','DeskField','./intDeskField.options'];(function(_0x23caf7,_0x33bfaf){const _0x4c0567=function(_0x365c1d){while(--_0x365c1d){_0x23caf7['push'](_0x23caf7['shift']());}};_0x4c0567(++_0x33bfaf);}(a284_0x4c05,0xf6));const a284_0x365c=function(_0x23caf7,_0x33bfaf){_0x23caf7=_0x23caf7-0x1a4;let _0x4c0567=a284_0x4c05[_0x23caf7];return _0x4c0567;};const a284_0x2751ab=a284_0x365c;'use strict';const {Model}=require('sequelize'),{attributes}=require('./intDeskField.attributes'),{options}=require(a284_0x2751ab(0x1a7));class DeskField extends Model{}function init(_0xe74af1,_0x13657e){const _0x4cd99e=a284_0x2751ab,_0xe3a9aa=options(_0xe74af1),_0x3e2059=typeof _0x13657e===_0x4cd99e(0x1a4)?_0x13657e(_0xe3a9aa):_0xe3a9aa;return DeskField[_0x4cd99e(0x1a8)](attributes,_0x3e2059),DeskField;}module['exports'][a284_0x2751ab(0x1a6)]=DeskField,module[a284_0x2751ab(0x1a5)][a284_0x2751ab(0x1a8)]=init; \ No newline at end of file diff --git a/server/api/intDeskField/intDeskField.options.js b/server/api/intDeskField/intDeskField.options.js index 83be3be..3cf0f8e 100644 --- a/server/api/intDeskField/intDeskField.options.js +++ b/server/api/intDeskField/intDeskField.options.js @@ -1 +1 @@ -var a285_0x342f=['FieldId','idField','exports','int_desk_fields'];(function(_0x239676,_0x4ea1c3){var _0x342f76=function(_0x7c4a42){while(--_0x7c4a42){_0x239676['push'](_0x239676['shift']());}};_0x342f76(++_0x4ea1c3);}(a285_0x342f,0x1d8));var a285_0x7c4a=function(_0x239676,_0x4ea1c3){_0x239676=_0x239676-0x101;var _0x342f76=a285_0x342f[_0x239676];return _0x342f76;};var a285_0x4d1424=a285_0x7c4a;function options(_0x2f6530){var _0x54d76a=a285_0x7c4a;return{'sequelize':_0x2f6530,'tableName':_0x54d76a(0x104),'paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0x54d76a(0x102),_0x54d76a(0x101)],'unique':!![]}],'timestamps':!![]};}module[a285_0x4d1424(0x103)]['options']=options; \ No newline at end of file +var a285_0x2b3a=['exports','idField','FieldId','desk_unique_index','options'];(function(_0x3c99f9,_0x197159){var _0x2b3aad=function(_0x5ea6da){while(--_0x5ea6da){_0x3c99f9['push'](_0x3c99f9['shift']());}};_0x2b3aad(++_0x197159);}(a285_0x2b3a,0xfb));var a285_0x5ea6=function(_0x3c99f9,_0x197159){_0x3c99f9=_0x3c99f9-0xd9;var _0x2b3aad=a285_0x2b3a[_0x3c99f9];return _0x2b3aad;};var a285_0x3c3094=a285_0x5ea6;function options(_0x2ccfdb){var _0x4c884e=a285_0x5ea6;return{'sequelize':_0x2ccfdb,'tableName':'int_desk_fields','paranoid':![],'indexes':[{'name':_0x4c884e(0xdb),'fields':[_0x4c884e(0xd9),_0x4c884e(0xda)],'unique':!![]}],'timestamps':!![]};}module[a285_0x3c3094(0xdd)][a285_0x3c3094(0xdc)]=options; \ No newline at end of file diff --git a/server/api/intDynamics365Account/index.js b/server/api/intDynamics365Account/index.js index 7443af0..1bf4a69 100644 --- a/server/api/intDynamics365Account/index.js +++ b/server/api/intDynamics365Account/index.js @@ -1 +1 @@ -const a286_0x462b=['put','/:id/configurations','index','show','getConfigurations','express','Router','get','../../components/auth/service','exports','create','post','isAuthenticated','update','delete','/:id','addConfiguration'];(function(_0x2c6a6e,_0x5d2f41){const _0x462bfe=function(_0x2100db){while(--_0x2100db){_0x2c6a6e['push'](_0x2c6a6e['shift']());}};_0x462bfe(++_0x5d2f41);}(a286_0x462b,0xf5));const a286_0x2100=function(_0x2c6a6e,_0x5d2f41){_0x2c6a6e=_0x2c6a6e-0x9a;let _0x462bfe=a286_0x462b[_0x2c6a6e];return _0x462bfe;};const a286_0x2d629d=a286_0x2100;'use strict';const express=require(a286_0x2d629d(0xa9)),router=express[a286_0x2d629d(0xaa)](),auth=require(a286_0x2d629d(0x9b)),controller=require('./intDynamics365Account.controller');router[a286_0x2d629d(0x9a)]('/',auth['isAuthenticated'](),controller[a286_0x2d629d(0xa6)]),router[a286_0x2d629d(0x9a)]('/:id',auth[a286_0x2d629d(0x9f)](),controller[a286_0x2d629d(0xa7)]),router[a286_0x2d629d(0x9a)](a286_0x2d629d(0xa5),auth['isAuthenticated'](),controller[a286_0x2d629d(0xa8)]),router['get']('/:id/fields',auth['isAuthenticated'](),controller['getFields']),router[a286_0x2d629d(0x9e)]('/',auth[a286_0x2d629d(0x9f)](),controller[a286_0x2d629d(0x9d)]),router[a286_0x2d629d(0x9e)](a286_0x2d629d(0xa5),auth[a286_0x2d629d(0x9f)](),controller[a286_0x2d629d(0xa3)]),router[a286_0x2d629d(0xa4)](a286_0x2d629d(0xa2),auth[a286_0x2d629d(0x9f)](),controller[a286_0x2d629d(0xa0)]),router[a286_0x2d629d(0xa1)]('/:id',auth[a286_0x2d629d(0x9f)](),controller['destroy']),module[a286_0x2d629d(0x9c)]=router; \ No newline at end of file +const a286_0x4a45=['Router','delete','getConfigurations','/:id','post','create','get','addConfiguration','exports','show','index','express','isAuthenticated','/:id/fields','../../components/auth/service','getFields'];(function(_0x3fe0f7,_0x11e425){const _0x4a4557=function(_0x2c7ffc){while(--_0x2c7ffc){_0x3fe0f7['push'](_0x3fe0f7['shift']());}};_0x4a4557(++_0x11e425);}(a286_0x4a45,0x13b));const a286_0x2c7f=function(_0x3fe0f7,_0x11e425){_0x3fe0f7=_0x3fe0f7-0x14d;let _0x4a4557=a286_0x4a45[_0x3fe0f7];return _0x4a4557;};const a286_0x4b8a4d=a286_0x2c7f;'use strict';const express=require(a286_0x4b8a4d(0x14d)),router=express[a286_0x4b8a4d(0x152)](),auth=require(a286_0x4b8a4d(0x150)),controller=require('./intDynamics365Account.controller');router[a286_0x4b8a4d(0x158)]('/',auth[a286_0x4b8a4d(0x14e)](),controller[a286_0x4b8a4d(0x15c)]),router[a286_0x4b8a4d(0x158)](a286_0x4b8a4d(0x155),auth[a286_0x4b8a4d(0x14e)](),controller[a286_0x4b8a4d(0x15b)]),router['get']('/:id/configurations',auth[a286_0x4b8a4d(0x14e)](),controller[a286_0x4b8a4d(0x154)]),router[a286_0x4b8a4d(0x158)](a286_0x4b8a4d(0x14f),auth['isAuthenticated'](),controller[a286_0x4b8a4d(0x151)]),router[a286_0x4b8a4d(0x156)]('/',auth[a286_0x4b8a4d(0x14e)](),controller[a286_0x4b8a4d(0x157)]),router['post']('/:id/configurations',auth[a286_0x4b8a4d(0x14e)](),controller[a286_0x4b8a4d(0x159)]),router['put']('/:id',auth[a286_0x4b8a4d(0x14e)](),controller['update']),router[a286_0x4b8a4d(0x153)](a286_0x4b8a4d(0x155),auth[a286_0x4b8a4d(0x14e)](),controller['destroy']),module[a286_0x4b8a4d(0x15a)]=router; \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.attributes.js b/server/api/intDynamics365Account/intDynamics365Account.attributes.js index 7c9fa45..1805ead 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.attributes.js +++ b/server/api/intDynamics365Account/intDynamics365Account.attributes.js @@ -1 +1 @@ -const a287_0x2dda=['STRING','sequelize','attributes'];(function(_0x16aee2,_0x4f00c7){const _0x2ddabe=function(_0x545537){while(--_0x545537){_0x16aee2['push'](_0x16aee2['shift']());}};_0x2ddabe(++_0x4f00c7);}(a287_0x2dda,0x169));const a287_0x5455=function(_0x16aee2,_0x4f00c7){_0x16aee2=_0x16aee2-0xf2;let _0x2ddabe=a287_0x2dda[_0x16aee2];return _0x2ddabe;};const a287_0x183db1=a287_0x5455;'use strict';const {DataTypes}=require(a287_0x183db1(0xf2)),attributes={'name':{'type':DataTypes[a287_0x183db1(0xf4)]},'username':{'type':DataTypes['STRING']},'password':{'type':DataTypes[a287_0x183db1(0xf4)]},'remoteUri':{'type':DataTypes[a287_0x183db1(0xf4)]},'tenantId':{'type':DataTypes[a287_0x183db1(0xf4)]},'clientId':{'type':DataTypes[a287_0x183db1(0xf4)]},'clientSecret':{'type':DataTypes[a287_0x183db1(0xf4)]},'serverUrl':{'type':DataTypes[a287_0x183db1(0xf4)]},'description':{'type':DataTypes[a287_0x183db1(0xf4)]}};module['exports'][a287_0x183db1(0xf3)]=attributes; \ No newline at end of file +const a287_0xaf61=['STRING','attributes','exports','sequelize'];(function(_0x4b83d2,_0x38fc0c){const _0xaf6136=function(_0x102670){while(--_0x102670){_0x4b83d2['push'](_0x4b83d2['shift']());}};_0xaf6136(++_0x38fc0c);}(a287_0xaf61,0x1e5));const a287_0x1026=function(_0x4b83d2,_0x38fc0c){_0x4b83d2=_0x4b83d2-0xe1;let _0xaf6136=a287_0xaf61[_0x4b83d2];return _0xaf6136;};const a287_0x1d07f5=a287_0x1026;'use strict';const {DataTypes}=require(a287_0x1d07f5(0xe3)),attributes={'name':{'type':DataTypes[a287_0x1d07f5(0xe4)]},'username':{'type':DataTypes[a287_0x1d07f5(0xe4)]},'password':{'type':DataTypes[a287_0x1d07f5(0xe4)]},'remoteUri':{'type':DataTypes['STRING']},'tenantId':{'type':DataTypes[a287_0x1d07f5(0xe4)]},'clientId':{'type':DataTypes['STRING']},'clientSecret':{'type':DataTypes[a287_0x1d07f5(0xe4)]},'serverUrl':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a287_0x1d07f5(0xe4)]}};module[a287_0x1d07f5(0xe2)][a287_0x1d07f5(0xe1)]=attributes; \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.controller.js b/server/api/intDynamics365Account/intDynamics365Account.controller.js index bc0dcdd..a6cc9f6 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.controller.js +++ b/server/api/intDynamics365Account/intDynamics365Account.controller.js @@ -1 +1 @@ -const a288_0x7874=['UserLocalizedLabel','undefined','false','offset','findOne','send','options','versionnumber','rawAttributes','responsiblecontactidname','entityimage_timestamp','contactidyominame',')/Attributes(','model','filters','Dynamics365Field','Label','merge','directioncode','owneridyominame','createdbyyominame','../../config/logger','primarycontactidyominame','intersection','actualserviceunits','entitlementidname','billedserviceunits','POST','modifiedbyexternalpartyyominame','nolimit','all','value','productidname','remoteUri','sort','destroy','Dynamics365Account','includes','title','filter','influencescore','statecode','GET','status','getFields','name','forEach',')/Microsoft.Dynamics.CRM.','subject','EntityDefinitions(','VIRTUAL','getSubjects','include','query','modifiedbyyominame','body','statuscode','phonenumber','escalatedon','params','$select=DisplayName,LogicalName&$expand=OptionSet($select=Options)','format','slice','keys','exchangerate','attributes','sequelize','Bearer\x20','4.0','addConfiguration','isNil','BooleanAttributeMetadata','Descriptions','EntityNameAttributeMetadata','like','../../components/integrations/configuration','transactioncurrencyidname',')/Microsoft.Dynamics.CRM.BooleanAttributeMetadata?$select=DisplayName,LogicalName&$expand=OptionSet($select=FalseOption,\x20TrueOption)','substring','password','customeridyominame','customerid','Value','importsequencenumber','util','update','MetadataId','TrueOption','true','onholdtime','FalseOption','StringAttributeMetadata','slainvokedidname','concat','MemoAttributeMetadata','tenantId','regardingobjectid','request-promise-native','https://login.microsoftonline.com/','test','modifiedon','clientId','accountidyominame','numberofchildincidents','channel','overriddencreatedon','customeridname','timezoneruleversionnumber','order','owneridtype','createdonbehalfbyname','Dynamics365Configuration','StateAttributeMetadata','includeAll','map','incident','pick','slaname','EntityDefinitions?$select=DisplayName,EntitySetName&$filter=SchemaName\x20eq\x20\x27','lodash','DecimalAttributeMetadata','index','ownerid','sendStatus','length',')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?','createdonbehalfbyyominame','create','primarycontactidname','resolvebykpiidname','masteridname','access_token','createdon','contractdetailidname','owneridname','PicklistAttributeMetadata','findAll','count','stack','customeridtype','lastIndexOf','../../components/parsers/qs','type','remove','end','set','kbarticleidname','where','contractidname','msdyn_incidenttypename','caseorigincode','IntegerAttributeMetadata','Options','sentimentvalue','getConfigurations','ticketnumber','subjectidname','followupby','ticketType','productserialnumber','username','StatusAttributeMetadata','/oauth2/token','catch','prioritycodename','Subjects','emailaddress','@odata.type','limit','json','clientSecret','fields','LogicalName','parentcaseidname','then','?$select=DisplayName,LogicalName','error','Incident','OptionSet','Content-Range','DisplayName','push','lastonholdtime','BigIntAttributeMetadata','getDescriptions','show'];(function(_0x5757e0,_0x1377ab){const _0x78746c=function(_0x2889cf){while(--_0x2889cf){_0x5757e0['push'](_0x5757e0['shift']());}};_0x78746c(++_0x1377ab);}(a288_0x7874,0x16d));const a288_0x2889=function(_0x5757e0,_0x1377ab){_0x5757e0=_0x5757e0-0x155;let _0x78746c=a288_0x7874[_0x5757e0];return _0x78746c;};const a288_0xe6aebb=a288_0x2889;'use strict';const rp=require(a288_0xe6aebb(0x1bd)),util=require(a288_0xe6aebb(0x1b0)),_=require(a288_0xe6aebb(0x1d3)),qs=require(a288_0xe6aebb(0x1e9)),logger=require(a288_0xe6aebb(0x171))('api'),{db}=require('../../mysqldb'),{Op}=require(a288_0xe6aebb(0x19e)),integrations=require(a288_0xe6aebb(0x1a7));function respondWithResult(_0x693eee,_0x4b9846){return _0x4b9846=_0x4b9846||0xc8,function(_0x1bdd66){if(_0x1bdd66)return _0x693eee['status'](_0x4b9846)['json'](_0x1bdd66);};}function respondWithFilteredResult(_0xc136aa,_0xee0ddc){return function(_0x164538){const _0xba2a59=a288_0x2889;if(_0x164538){const _0xab96ef=_0x164538[_0xba2a59(0x1e5)],_0x4af67e=_0xee0ddc['offset'];let _0x3265f5=_0xee0ddc[_0xba2a59(0x15f)]+_0xee0ddc['limit'],_0x45280b;return _0x3265f5>=_0xab96ef?(_0x3265f5=_0xab96ef,_0x45280b=0xc8):_0x45280b=0xce,_0xc136aa[_0xba2a59(0x187)](_0x45280b),_0xc136aa[_0xba2a59(0x1ed)](_0xba2a59(0x155),_0x4af67e+'-'+_0x3265f5+'/'+_0xab96ef)[_0xba2a59(0x205)](_0x164538);}return null;};}function saveUpdates(_0xa2023){return function(_0x4d61c4){const _0x31fa4e=a288_0x2889;if(_0x4d61c4)return _0x4d61c4[_0x31fa4e(0x1b1)](_0xa2023)[_0x31fa4e(0x20a)](function(_0x59210f){return _0x59210f;});return null;};}function removeEntity(_0x1d2e3d){return function(_0x16e30c){const _0x3772d2=a288_0x2889;if(_0x16e30c)return _0x16e30c[_0x3772d2(0x17f)]()[_0x3772d2(0x20a)](function(){const _0x1432a9=_0x3772d2;_0x1d2e3d[_0x1432a9(0x187)](0xcc)[_0x1432a9(0x1ec)]();});};}function handleEntityNotFound(_0x43a682){return function(_0x48a728){const _0x2ea63c=a288_0x2889;return!_0x48a728&&_0x43a682[_0x2ea63c(0x1d7)](0x194),_0x48a728;};}function handleError(_0x353f02,_0x35d986){return _0x35d986=_0x35d986||0x1f4,function(_0x4e1ae5){const _0x5e4873=a288_0x2889;logger[_0x5e4873(0x20c)](_0x4e1ae5[_0x5e4873(0x1e6)]),_0x4e1ae5[_0x5e4873(0x189)]&&delete _0x4e1ae5[_0x5e4873(0x189)],_0x353f02['status'](_0x35d986)[_0x5e4873(0x161)](_0x4e1ae5);};}exports[a288_0xe6aebb(0x1d5)]=function(_0x56cff3,_0x392d51){const _0x3123c3=a288_0xe6aebb;let _0x3dc951={};const _0xfa9c84={},_0x1dd642={'count':0x0,'rows':[]},_0x51361f=_['map'](db[_0x3123c3(0x180)][_0x3123c3(0x164)],function(_0x2d5f35){const _0x56f25a=_0x3123c3;return{'name':_0x2d5f35['fieldName'],'type':_0x2d5f35[_0x56f25a(0x1ea)]['key']};});_0xfa9c84[_0x3123c3(0x169)]=_[_0x3123c3(0x1ce)](_0x51361f,'name'),_0xfa9c84[_0x3123c3(0x191)]=_[_0x3123c3(0x19b)](_0x56cff3[_0x3123c3(0x191)]),_0xfa9c84[_0x3123c3(0x16a)]=_[_0x3123c3(0x173)](_0xfa9c84[_0x3123c3(0x169)],_0xfa9c84[_0x3123c3(0x191)]),_0x3dc951[_0x3123c3(0x19d)]=_['intersection'](_0xfa9c84[_0x3123c3(0x169)],qs['fields'](_0x56cff3[_0x3123c3(0x191)][_0x3123c3(0x207)])),_0x3dc951[_0x3123c3(0x19d)]=_0x3dc951['attributes']['length']?_0x3dc951[_0x3123c3(0x19d)]:_0xfa9c84[_0x3123c3(0x169)];typeof _0x56cff3[_0x3123c3(0x191)][_0x3123c3(0x179)]===_0x3123c3(0x15d)&&(_0x3dc951[_0x3123c3(0x204)]=qs[_0x3123c3(0x204)](_0x56cff3[_0x3123c3(0x191)][_0x3123c3(0x204)]),_0x3dc951[_0x3123c3(0x15f)]=qs[_0x3123c3(0x15f)](_0x56cff3[_0x3123c3(0x191)][_0x3123c3(0x15f)]));_0x3dc951[_0x3123c3(0x1c8)]=qs[_0x3123c3(0x17e)](_0x56cff3[_0x3123c3(0x191)]['sort']),_0x3dc951[_0x3123c3(0x1ef)]=qs[_0x3123c3(0x16a)](_[_0x3123c3(0x1d0)](_0x56cff3[_0x3123c3(0x191)],_0xfa9c84['filters']),_0x51361f);_0x56cff3[_0x3123c3(0x191)][_0x3123c3(0x183)]&&(_0x3dc951[_0x3123c3(0x1ef)]=_[_0x3123c3(0x16d)](_0x3dc951[_0x3123c3(0x1ef)],{[Op['or']]:_[_0x3123c3(0x1ce)](_0x51361f,function(_0x215e10){const _0x3721e8=_0x3123c3;if(_0x215e10[_0x3721e8(0x1ea)]!==_0x3721e8(0x18e)){const _0x529d58={};return _0x529d58[_0x215e10[_0x3721e8(0x189)]]={[Op[_0x3721e8(0x1a6)]]:'%'+_0x56cff3[_0x3721e8(0x191)][_0x3721e8(0x183)]+'%'},_0x529d58;}})}));_0x3dc951=_[_0x3123c3(0x16d)]({},_0x3dc951,_0x56cff3[_0x3123c3(0x162)]);const _0x2d2384={'where':_0x3dc951['where']};return db[_0x3123c3(0x180)][_0x3123c3(0x1e5)](_0x2d2384)[_0x3123c3(0x20a)](function(_0x276973){const _0x2505c7=_0x3123c3;return _0x1dd642[_0x2505c7(0x1e5)]=_0x276973,_0x56cff3['query'][_0x2505c7(0x1cd)]&&(_0x3dc951[_0x2505c7(0x190)]=[{'all':!![]}]),db[_0x2505c7(0x180)][_0x2505c7(0x1e4)](_0x3dc951);})[_0x3123c3(0x20a)](function(_0x3a6d50){return _0x1dd642['rows']=_0x3a6d50,_0x1dd642;})[_0x3123c3(0x20a)](respondWithFilteredResult(_0x392d51,_0x3dc951))['catch'](handleError(_0x392d51,null));},exports[a288_0xe6aebb(0x15b)]=function(_0x2801c4,_0x2f39c7){const _0x5ccc40=a288_0xe6aebb;let _0x12eb1e={'raw':![],'where':{'id':_0x2801c4[_0x5ccc40(0x197)]['id']}};const _0x1faf69={};return _0x1faf69['model']=_[_0x5ccc40(0x19b)](db[_0x5ccc40(0x180)]['rawAttributes']),_0x1faf69[_0x5ccc40(0x191)]=_[_0x5ccc40(0x19b)](_0x2801c4[_0x5ccc40(0x191)]),_0x1faf69[_0x5ccc40(0x16a)]=_[_0x5ccc40(0x173)](_0x1faf69[_0x5ccc40(0x169)],_0x1faf69['query']),_0x12eb1e[_0x5ccc40(0x19d)]=_['intersection'](_0x1faf69[_0x5ccc40(0x169)],qs[_0x5ccc40(0x207)](_0x2801c4[_0x5ccc40(0x191)][_0x5ccc40(0x207)])),_0x12eb1e[_0x5ccc40(0x19d)]=_0x12eb1e[_0x5ccc40(0x19d)][_0x5ccc40(0x1d8)]?_0x12eb1e[_0x5ccc40(0x19d)]:_0x1faf69[_0x5ccc40(0x169)],_0x2801c4[_0x5ccc40(0x191)][_0x5ccc40(0x1cd)]&&(_0x12eb1e[_0x5ccc40(0x190)]=[{'all':!![]}]),_0x12eb1e=_[_0x5ccc40(0x16d)]({},_0x12eb1e,_0x2801c4[_0x5ccc40(0x162)]),db[_0x5ccc40(0x180)][_0x5ccc40(0x160)](_0x12eb1e)[_0x5ccc40(0x20a)](handleEntityNotFound(_0x2f39c7,null))[_0x5ccc40(0x20a)](respondWithResult(_0x2f39c7,null))[_0x5ccc40(0x1ff)](handleError(_0x2f39c7,null));},exports[a288_0xe6aebb(0x1db)]=function(_0x2806df,_0x197374){const _0x1b617e=a288_0xe6aebb;return db['Dynamics365Account'][_0x1b617e(0x1db)](_0x2806df[_0x1b617e(0x193)],{})[_0x1b617e(0x20a)](respondWithResult(_0x197374,0xc9))[_0x1b617e(0x1ff)](handleError(_0x197374,null));},exports[a288_0xe6aebb(0x1b1)]=function(_0x38dc99,_0x264bdf){const _0x6f0fd2=a288_0xe6aebb;return _0x38dc99[_0x6f0fd2(0x193)]['id']&&delete _0x38dc99[_0x6f0fd2(0x193)]['id'],db[_0x6f0fd2(0x180)]['findOne']({'where':{'id':_0x38dc99['params']['id']}})['then'](handleEntityNotFound(_0x264bdf,null))[_0x6f0fd2(0x20a)](saveUpdates(_0x38dc99[_0x6f0fd2(0x193)],null))[_0x6f0fd2(0x20a)](respondWithResult(_0x264bdf,null))[_0x6f0fd2(0x1ff)](handleError(_0x264bdf,null));},exports['destroy']=function(_0x46b9d9,_0x3b098b){const _0x4eed1a=a288_0xe6aebb;return db[_0x4eed1a(0x180)][_0x4eed1a(0x160)]({'where':{'id':_0x46b9d9['params']['id']}})[_0x4eed1a(0x20a)](handleEntityNotFound(_0x3b098b,null))['then'](removeEntity(_0x3b098b,null))[_0x4eed1a(0x1ff)](handleError(_0x3b098b,null));},exports[a288_0xe6aebb(0x1f6)]=function(_0x21ddcd,_0x5c8554){const _0x201ea6=a288_0xe6aebb;let _0xdceeb2={};const _0x1f851e={};let _0x4c2675,_0x29f020;return db[_0x201ea6(0x180)][_0x201ea6(0x160)]({'where':{'id':_0x21ddcd[_0x201ea6(0x197)]['id']}})[_0x201ea6(0x20a)](handleEntityNotFound(_0x5c8554,null))[_0x201ea6(0x20a)](function(_0x19c1cf){const _0x8d7ebf=_0x201ea6;if(_0x19c1cf)return _0x4c2675=_0x19c1cf,_0x1f851e['model']=_['keys'](db[_0x8d7ebf(0x1cb)][_0x8d7ebf(0x164)]),_0x1f851e[_0x8d7ebf(0x191)]=_[_0x8d7ebf(0x19b)](_0x21ddcd['query']),_0x1f851e[_0x8d7ebf(0x16a)]=_['intersection'](_0x1f851e[_0x8d7ebf(0x169)],_0x1f851e[_0x8d7ebf(0x191)]),_0xdceeb2[_0x8d7ebf(0x19d)]=_[_0x8d7ebf(0x173)](_0x1f851e[_0x8d7ebf(0x169)],qs['fields'](_0x21ddcd[_0x8d7ebf(0x191)][_0x8d7ebf(0x207)])),_0xdceeb2[_0x8d7ebf(0x19d)]=_0xdceeb2['attributes'][_0x8d7ebf(0x1d8)]?_0xdceeb2[_0x8d7ebf(0x19d)]:_0x1f851e[_0x8d7ebf(0x169)],_0xdceeb2[_0x8d7ebf(0x1c8)]=qs[_0x8d7ebf(0x17e)](_0x21ddcd[_0x8d7ebf(0x191)][_0x8d7ebf(0x17e)]),_0xdceeb2[_0x8d7ebf(0x1ef)]=qs[_0x8d7ebf(0x16a)](_[_0x8d7ebf(0x1d0)](_0x21ddcd[_0x8d7ebf(0x191)],_0x1f851e['filters'])),_0x21ddcd[_0x8d7ebf(0x191)][_0x8d7ebf(0x183)]&&(_0xdceeb2[_0x8d7ebf(0x1ef)]=_[_0x8d7ebf(0x16d)](_0xdceeb2[_0x8d7ebf(0x1ef)],{[Op['or']]:_[_0x8d7ebf(0x1ce)](_0xdceeb2[_0x8d7ebf(0x19d)],function(_0xb3e01){const _0x572cbb=_0x8d7ebf,_0x272c6e={};return _0x272c6e[_0xb3e01]={[Op[_0x572cbb(0x1a6)]]:'%'+_0x21ddcd[_0x572cbb(0x191)][_0x572cbb(0x183)]+'%'},_0x272c6e;})})),_0xdceeb2=_[_0x8d7ebf(0x16d)]({},_0xdceeb2,_0x21ddcd['options']),_0x4c2675[_0x8d7ebf(0x1f6)](_0xdceeb2);})[_0x201ea6(0x20a)](function(_0x2946b0){const _0x3b7db4=_0x201ea6;if(_0x2946b0)return _0x29f020=_0x2946b0['length'],typeof _0x21ddcd[_0x3b7db4(0x191)][_0x3b7db4(0x179)]==='undefined'&&(_0xdceeb2['limit']=qs['limit'](_0x21ddcd[_0x3b7db4(0x191)][_0x3b7db4(0x204)]),_0xdceeb2['offset']=qs[_0x3b7db4(0x15f)](_0x21ddcd[_0x3b7db4(0x191)][_0x3b7db4(0x15f)])),_0x4c2675['getConfigurations'](_0xdceeb2);})['then'](function(_0x3748e1){if(_0x3748e1)return _0x3748e1?{'count':_0x29f020,'rows':_0x3748e1}:null;})[_0x201ea6(0x20a)](respondWithResult(_0x5c8554,null))[_0x201ea6(0x1ff)](handleError(_0x5c8554,null));},exports[a288_0xe6aebb(0x1a1)]=function(_0x40f8b0,_0x1e8c88){const _0x343be2=a288_0xe6aebb;return _0x40f8b0[_0x343be2(0x193)]['id']&&delete _0x40f8b0[_0x343be2(0x193)]['id'],db[_0x343be2(0x180)][_0x343be2(0x160)]({'where':{'id':_0x40f8b0[_0x343be2(0x197)]['id']}})[_0x343be2(0x20a)](handleEntityNotFound(_0x1e8c88,null))[_0x343be2(0x20a)](function(_0x4eedc4){const _0x295f21=_0x343be2;if(_0x4eedc4)return _0x40f8b0[_0x295f21(0x193)]['AccountId']=_0x4eedc4['id'],_0x40f8b0[_0x295f21(0x193)][_0x295f21(0x201)]=integrations[_0x295f21(0x18f)](_0x40f8b0[_0x295f21(0x193)][_0x295f21(0x1c4)],_0x40f8b0[_0x295f21(0x193)]['type']),_0x40f8b0[_0x295f21(0x193)][_0x295f21(0x1a4)]=integrations[_0x295f21(0x15a)](_0x40f8b0[_0x295f21(0x193)][_0x295f21(0x1c4)],_0x40f8b0['body'][_0x295f21(0x1ea)]),db['Dynamics365Configuration'][_0x295f21(0x1db)](_0x40f8b0[_0x295f21(0x193)],{'include':[{'model':db[_0x295f21(0x16b)],'as':'Subjects'},{'model':db[_0x295f21(0x16b)],'as':'Descriptions'}]});return null;})[_0x343be2(0x20a)](respondWithResult(_0x1e8c88,null))[_0x343be2(0x1ff)](handleError(_0x1e8c88,null));},exports[a288_0xe6aebb(0x188)]=function(_0x552a45,_0x4a7869){const _0x135a4d=a288_0xe6aebb,_0x346ee4=_0x552a45[_0x135a4d(0x191)][_0x135a4d(0x1fa)],_0x5f0332=_0x346ee4===_0x135a4d(0x1cf)?_0x135a4d(0x20d):'PhoneCall';let _0x57b797='',_0x151a3b='',_0x55c37b='',_0x3b4862='',_0x383e1e='',_0x1cd539='',_0x931aee='',_0x4726e7='';const _0x435b76=[_0x135a4d(0x182),'description',_0x135a4d(0x1ad),_0x135a4d(0x1d6),_0x135a4d(0x1f2),_0x135a4d(0x18c),_0x135a4d(0x195),_0x135a4d(0x1bc),_0x135a4d(0x16e),'phonecall_activity_parties'],_0x58c89c=['accountidname',_0x135a4d(0x1c2),_0x135a4d(0x174),_0x135a4d(0x176),'contactidname',_0x135a4d(0x167),_0x135a4d(0x1e1),_0x135a4d(0x1f0),'createdbyexternalpartyname','createdbyexternalpartyyominame','createdbyname',_0x135a4d(0x170),_0x135a4d(0x1e0),_0x135a4d(0x1ca),_0x135a4d(0x1da),_0x135a4d(0x1c6),_0x135a4d(0x1e7),_0x135a4d(0x1ac),_0x135a4d(0x202),_0x135a4d(0x175),_0x135a4d(0x166),'entityimage_url',_0x135a4d(0x196),_0x135a4d(0x19c),'firstresponsebykpiidname',_0x135a4d(0x1f9),_0x135a4d(0x1af),_0x135a4d(0x184),_0x135a4d(0x1ee),_0x135a4d(0x158),_0x135a4d(0x1de),'modifiedbyexternalpartyname',_0x135a4d(0x178),'modifiedbyname',_0x135a4d(0x192),_0x135a4d(0x1c0),'modifiedonbehalfbyname','modifiedonbehalfbyyominame',_0x135a4d(0x1f1),'msdyn_iotalertname',_0x135a4d(0x1c3),_0x135a4d(0x1b5),_0x135a4d(0x1c5),_0x135a4d(0x1e2),_0x135a4d(0x1c9),_0x135a4d(0x16f),_0x135a4d(0x209),_0x135a4d(0x1dc),_0x135a4d(0x172),_0x135a4d(0x200),_0x135a4d(0x17c),_0x135a4d(0x1fb),'resolveby',_0x135a4d(0x1dd),'responseby',_0x135a4d(0x165),'responsiblecontactidyominame',_0x135a4d(0x1f5),_0x135a4d(0x1b8),_0x135a4d(0x1d1),'socialprofileidname',_0x135a4d(0x185),_0x135a4d(0x194),_0x135a4d(0x1f8),_0x135a4d(0x1f7),_0x135a4d(0x1c7),_0x135a4d(0x1a8),'traversedpath','utcconversiontimezonecode',_0x135a4d(0x163)],_0x6947bc=_0x435b76[_0x135a4d(0x1b9)](_0x58c89c);return db['Dynamics365Account']['findOne']({'where':{'id':_0x552a45[_0x135a4d(0x197)]['id']},'attributes':['id',_0x135a4d(0x1fc),'password',_0x135a4d(0x17d),_0x135a4d(0x1bb),_0x135a4d(0x1c1),'clientSecret']})[_0x135a4d(0x20a)](handleEntityNotFound(_0x4a7869,null))['then'](function(_0x3dd66){const _0x26e32c=_0x135a4d;if(_0x3dd66){_0x4726e7=_0x3dd66['remoteUri'];const _0x274e7a=_0x4726e7[_0x26e32c(0x19a)](-0x1);_0x274e7a==='/'&&(_0x4726e7=_0x4726e7['substring'](0x0,_0x4726e7[_0x26e32c(0x1e8)](_0x274e7a)));_0x931aee=util[_0x26e32c(0x199)]('%s/api/data/v9.0/',_0x4726e7);const _0xfd1101={'method':_0x26e32c(0x177),'uri':_0x26e32c(0x1be)+_0x3dd66[_0x26e32c(0x1bb)]+_0x26e32c(0x1fe),'form':{'client_id':_0x3dd66[_0x26e32c(0x1c1)],'resource':_0x4726e7,'username':_0x3dd66['username'],'password':_0x3dd66[_0x26e32c(0x1ab)],'grant_type':_0x26e32c(0x1ab),'client_secret':_0x3dd66[_0x26e32c(0x206)]},'json':!![]};return rp(_0xfd1101);}})[_0x135a4d(0x20a)](function(_0x43145a){const _0x38195d=_0x135a4d;_0x1cd539=_0x43145a[_0x38195d(0x1df)];const _0x2e611a={'method':_0x38195d(0x186),'uri':encodeURI(_0x931aee+_0x38195d(0x1d2)+_0x5f0332+'\x27'),'headers':{'Authorization':_0x38195d(0x19f)+_0x1cd539,'If-None-Match':null,'OData-Version':'4.0'},'json':!![]};return rp(_0x2e611a);})['then'](function(_0xfc0c1c){const _0x351298=_0x135a4d,_0x1397ee=_0xfc0c1c[_0x351298(0x17b)][0x0],_0x4e81b1=_0x1397ee[_0x351298(0x1b2)],_0x3401bb={'method':_0x351298(0x186),'uri':_0x931aee+_0x351298(0x18d)+_0x4e81b1+')?$select=LogicalName&$expand=Attributes($select=LogicalName)','headers':{'Authorization':_0x351298(0x19f)+_0x1cd539,'If-None-Match':null,'OData-Version':_0x351298(0x1a0)},'json':!![]};return rp(_0x3401bb);})[_0x135a4d(0x20a)](function(_0x4acda0){const _0x1e918f=_0x135a4d;_0x57b797=_0x4acda0,_0x151a3b=_0x57b797['Attributes'],_0x151a3b=_[_0x1e918f(0x1eb)](_0x151a3b,function(_0x112be5){const _0x32b66b=_0x1e918f;return!_0x6947bc[_0x32b66b(0x181)](_0x112be5[_0x32b66b(0x208)]);});const _0x2ab60a=[],_0xbce960=[];return _0x151a3b['forEach'](function(_0x3db3f0){const _0x1849c7=_0x1e918f;if(_0x3db3f0['@odata.type']){const _0x3d44d4=_0x3db3f0['@odata.type'][_0x1849c7(0x1aa)](_0x3db3f0['@odata.type']['lastIndexOf']('.')+0x1);_0x3d44d4===_0x1849c7(0x1e3)&&_0x2ab60a[_0x1849c7(0x157)](getSelectList(_0x931aee,_0x346ee4,_0xbce960,_0x57b797[_0x1849c7(0x1b2)],_0x3db3f0[_0x1849c7(0x1b2)],_0x1cd539));}}),Promise[_0x1e918f(0x17a)](_0x2ab60a);})[_0x135a4d(0x20a)](function(_0x3f93dc){const _0x220705=_0x135a4d;_0x55c37b=_0x3f93dc[0x0];const _0x207a43=[],_0x451253=[];return _0x151a3b[_0x220705(0x18a)](function(_0x24248d){const _0x4d01e2=_0x220705;if(!_[_0x4d01e2(0x1a2)](_0x24248d[_0x4d01e2(0x203)])){const _0x130ddc=_0x24248d[_0x4d01e2(0x203)]['substring'](_0x24248d[_0x4d01e2(0x203)][_0x4d01e2(0x1e8)]('.')+0x1);_0x130ddc===_0x4d01e2(0x1a3)&&_0x207a43[_0x4d01e2(0x157)](getBooleanList(_0x931aee,_0x346ee4,_0x451253,_0x57b797[_0x4d01e2(0x1b2)],_0x24248d[_0x4d01e2(0x1b2)],_0x1cd539));}}),Promise[_0x220705(0x17a)](_0x207a43);})['then'](function(_0x581792){const _0x54ed77=_0x135a4d;_0x3b4862=_0x581792[0x0];const _0x27d648=[],_0x2c18a7=[];return _0x151a3b[_0x54ed77(0x18a)](function(_0x2c54fe){const _0x221c82=_0x54ed77;if(_0x2c54fe[_0x221c82(0x203)]){const _0x13e7a1=_0x2c54fe[_0x221c82(0x203)][_0x221c82(0x1aa)](_0x2c54fe[_0x221c82(0x203)][_0x221c82(0x1e8)]('.')+0x1);(_0x13e7a1===_0x221c82(0x1b7)||_0x13e7a1==='DoubleAttributeMetadata'||_0x13e7a1===_0x221c82(0x159)||_0x13e7a1===_0x221c82(0x1f3)||_0x13e7a1===_0x221c82(0x1ba)||_0x13e7a1==='DateTimeAttributeMetadata'||_0x13e7a1===_0x221c82(0x1fd)||_0x13e7a1===_0x221c82(0x1a5)||_0x13e7a1===_0x221c82(0x1cc)||_0x13e7a1===_0x221c82(0x1d4))&&_0x27d648[_0x221c82(0x157)](getInputList(_0x931aee,_0x346ee4,_0x13e7a1,_0x2c18a7,_0x57b797[_0x221c82(0x1b2)],_0x2c54fe[_0x221c82(0x1b2)],_0x1cd539));}}),Promise['all'](_0x27d648);})[_0x135a4d(0x20a)](function(_0x3c4d22){const _0x1ae0ee=_0x135a4d;_0x383e1e=_0x3c4d22[0x0];const _0x3fd716=_0x55c37b['concat'](_0x3b4862)[_0x1ae0ee(0x1b9)](_0x383e1e),_0x401334={'count':_0x3fd716['length'],'rows':_0x3fd716};return _0x401334;})[_0x135a4d(0x20a)](respondWithResult(_0x4a7869,null))[_0x135a4d(0x1ff)](function(_0x4215d7){const _0x38d610=_0x135a4d;let _0x1fc710=_0x552a45[_0x38d610(0x191)][_0x38d610(0x1bf)]?0x1f4:_0x4215d7['statusCode']||0x1f4;logger['error'](_0x4215d7[_0x38d610(0x1e6)]),delete _0x4215d7[_0x38d610(0x189)],_0x1fc710===0x191&&(_0x1fc710=0x190),_0x4a7869[_0x38d610(0x187)](_0x1fc710)[_0x38d610(0x161)](_0x552a45['query'][_0x38d610(0x1bf)]?{'message':'Wrong\x20credentials','statusCode':_0x4215d7['statusCode']}:_0x4215d7);});};function getSelectList(_0x377dfb,_0x181ca6,_0xf698d5,_0x14a7c9,_0x3bf234,_0x181dd4){const _0x413e27=a288_0xe6aebb,_0x1e16c7={'method':'GET','uri':_0x377dfb+_0x413e27(0x18d)+_0x14a7c9+_0x413e27(0x168)+_0x3bf234+_0x413e27(0x1d9)+_0x413e27(0x198),'headers':{'Authorization':_0x413e27(0x19f)+_0x181dd4,'If-None-Match':null,'OData-Version':_0x413e27(0x1a0)},'json':!![]};return rp(_0x1e16c7)[_0x413e27(0x20a)](function(_0x52af64){const _0x5ca62f=_0x413e27,_0x29c2cc=[],_0x3dc631=_0x52af64[_0x5ca62f(0x20e)][_0x5ca62f(0x1f4)];_0x3dc631['forEach'](function(_0x5273fc){const _0x34f64b=_0x5ca62f;_0x29c2cc[_0x34f64b(0x157)]({'name':_0x5273fc['Label'][_0x34f64b(0x15c)][_0x34f64b(0x16c)],'value':String(_0x5273fc[_0x34f64b(0x1ae)])});});const _0x58fe7b={'id':_0x181ca6+'_'+_0x52af64['LogicalName'],'name':_0x52af64[_0x5ca62f(0x156)][_0x5ca62f(0x15c)][_0x5ca62f(0x16c)],'custom':![],'options':_0x29c2cc};return _0xf698d5[_0x5ca62f(0x157)](_0x58fe7b),_0xf698d5;});}function getBooleanList(_0x492a06,_0x24f6a7,_0x2d779a,_0x52903b,_0x1994d2,_0x241357){const _0x6af02a=a288_0xe6aebb,_0x3320dc={'method':_0x6af02a(0x186),'uri':_0x492a06+_0x6af02a(0x18d)+_0x52903b+_0x6af02a(0x168)+_0x1994d2+_0x6af02a(0x1a9),'headers':{'Authorization':_0x6af02a(0x19f)+_0x241357,'If-None-Match':null,'OData-Version':'4.0'},'json':!![]};return rp(_0x3320dc)['then'](function(_0x4aef6e){const _0x1e5690=_0x6af02a,_0x5dba75=[];_0x5dba75['push']({'name':_0x4aef6e['OptionSet'][_0x1e5690(0x1b3)]['Label'][_0x1e5690(0x15c)][_0x1e5690(0x16c)],'value':_0x1e5690(0x1b4)},{'name':_0x4aef6e[_0x1e5690(0x20e)][_0x1e5690(0x1b6)][_0x1e5690(0x16c)][_0x1e5690(0x15c)][_0x1e5690(0x16c)],'value':_0x1e5690(0x15e)});const _0x2bb935={'id':_0x24f6a7+'_'+_0x4aef6e[_0x1e5690(0x208)],'name':_0x4aef6e[_0x1e5690(0x156)]['UserLocalizedLabel'][_0x1e5690(0x16c)],'custom':![],'options':_0x5dba75};return _0x2d779a[_0x1e5690(0x157)](_0x2bb935),_0x2d779a;});}function getInputList(_0x4e1576,_0x43d197,_0xd9058c,_0x3b3bc1,_0x4a1a33,_0x20b18d,_0x36f9ce){const _0x590bdf=a288_0xe6aebb,_0x68e710={'method':_0x590bdf(0x186),'uri':_0x4e1576+_0x590bdf(0x18d)+_0x4a1a33+')/Attributes('+_0x20b18d+_0x590bdf(0x18b)+_0xd9058c+_0x590bdf(0x20b),'headers':{'Authorization':_0x590bdf(0x19f)+_0x36f9ce,'If-None-Match':null,'OData-Version':_0x590bdf(0x1a0)},'json':!![]};return rp(_0x68e710)[_0x590bdf(0x20a)](function(_0x1387b4){const _0x2664e3=_0x590bdf,_0x4f1920={'id':_0x43d197+'_'+_0x1387b4[_0x2664e3(0x208)],'name':_0x1387b4[_0x2664e3(0x156)][_0x2664e3(0x15c)]?_0x1387b4[_0x2664e3(0x156)][_0x2664e3(0x15c)][_0x2664e3(0x16c)]:_0x1387b4['LogicalName'],'custom':![],'options':[]};return _0x3b3bc1[_0x2664e3(0x157)](_0x4f1920),_0x3b3bc1;});} \ No newline at end of file +const a288_0x5f4e=['type','BooleanAttributeMetadata','masteridname',')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?','addConfiguration','contractdetailidname','statusCode','sort','modifiedonbehalfbyyominame','followupby','findOne','order','responsiblecontactidyominame','attributes','Subjects','body','ownerid','VIRTUAL','responsiblecontactidname','Descriptions','prioritycodename',')?$select=LogicalName&$expand=Attributes($select=LogicalName)','ticketnumber','pick','remove','modifiedbyname','exchangerate','StateAttributeMetadata','modifiedbyexternalpartyname',')/Microsoft.Dynamics.CRM.','overriddencreatedon','accountidyominame','push','sendStatus','utcconversiontimezonecode','DoubleAttributeMetadata','accountidname',')/Attributes(','forEach','lastonholdtime','entityimage_url','customerid','StatusAttributeMetadata','Dynamics365Configuration','sentimentvalue','statuscode','destroy','entitlementidname','ticketType','sequelize','Dynamics365Account','FalseOption','EntityDefinitions(','util','Attributes','access_token','description','rawAttributes','intersection','channel','clientId','lodash','../../mysqldb','includeAll','keys','send','emailaddress','fields','parentcaseidname','primarycontactidname','map','owneridname','request-promise-native','4.0','contactidyominame','title','TrueOption','customeridtype','filters','nolimit','resolvebykpiidname','GET','../../components/parsers/qs','StringAttributeMetadata','/oauth2/token','lastIndexOf','password','remoteUri','all','createdbyexternalpartyyominame','https://login.microsoftonline.com/','slainvokedidname','error','influencescore','Dynamics365Field','catch','versionnumber','merge','getSubjects','firstresponsebykpiidname','billedserviceunits','caseorigincode','phonecall_activity_parties','contractidname','createdonbehalfbyname','status','getDescriptions','getConfigurations','entityimage_timestamp','IntegerAttributeMetadata','traversedpath','DateTimeAttributeMetadata','clientSecret','undefined','actualserviceunits','DecimalAttributeMetadata','BigIntAttributeMetadata','test','json','regardingobjectid',')/Microsoft.Dynamics.CRM.BooleanAttributeMetadata?$select=DisplayName,LogicalName&$expand=OptionSet($select=FalseOption,\x20TrueOption)','stack','createdbyexternalpartyname','rows','numberofchildincidents','where','@odata.type','Options','$select=DisplayName,LogicalName&$expand=OptionSet($select=Options)','offset','subject','end','kbarticleidname','include','limit','then','count','Bearer\x20','DisplayName','createdbyname','Value','incident','Incident','index','UserLocalizedLabel','includes','params','owneridtype','substring','modifiedbyexternalpartyyominame','../../config/logger','true','filter','create','length','name','socialprofileidname','OptionSet','modifiedon','owneridyominame','query','Wrong\x20credentials','primarycontactidyominame','update','model','findAll','username','options','customeridyominame','MetadataId','fieldName','tenantId','resolveby','phonenumber','LogicalName','subjectidname','Label'];(function(_0x1d6ddb,_0x44625c){const _0x5f4eb1=function(_0x2e0f04){while(--_0x2e0f04){_0x1d6ddb['push'](_0x1d6ddb['shift']());}};_0x5f4eb1(++_0x44625c);}(a288_0x5f4e,0xed));const a288_0x2e0f=function(_0x1d6ddb,_0x44625c){_0x1d6ddb=_0x1d6ddb-0x160;let _0x5f4eb1=a288_0x5f4e[_0x1d6ddb];return _0x5f4eb1;};const a288_0x272c48=a288_0x2e0f;'use strict';const rp=require(a288_0x272c48(0x16c)),util=require(a288_0x272c48(0x20a)),_=require(a288_0x272c48(0x161)),qs=require(a288_0x272c48(0x176)),logger=require(a288_0x272c48(0x1ba))('api'),{db}=require(a288_0x272c48(0x162)),{Op}=require(a288_0x272c48(0x206)),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x182d27,_0x136fb6){return _0x136fb6=_0x136fb6||0xc8,function(_0x538379){const _0x43300b=a288_0x2e0f;if(_0x538379)return _0x182d27[_0x43300b(0x18d)](_0x136fb6)['json'](_0x538379);};}function respondWithFilteredResult(_0x138476,_0xd9f329){return function(_0x127fe4){const _0x229f26=a288_0x2e0f;if(_0x127fe4){const _0x2bf125=_0x127fe4['count'],_0x414d90=_0xd9f329[_0x229f26(0x1a5)];let _0x2ed865=_0xd9f329[_0x229f26(0x1a5)]+_0xd9f329[_0x229f26(0x1aa)],_0x4d457f;return _0x2ed865>=_0x2bf125?(_0x2ed865=_0x2bf125,_0x4d457f=0xc8):_0x4d457f=0xce,_0x138476[_0x229f26(0x18d)](_0x4d457f),_0x138476['set']('Content-Range',_0x414d90+'-'+_0x2ed865+'/'+_0x2bf125)[_0x229f26(0x19a)](_0x127fe4);}return null;};}function saveUpdates(_0x1acc46){return function(_0x2758a8){const _0x2648ce=a288_0x2e0f;if(_0x2758a8)return _0x2758a8[_0x2648ce(0x1c7)](_0x1acc46)[_0x2648ce(0x1ab)](function(_0x1795e5){return _0x1795e5;});return null;};}function removeEntity(_0x7d6da5){return function(_0x1ed955){const _0x5109ae=a288_0x2e0f;if(_0x1ed955)return _0x1ed955[_0x5109ae(0x203)]()[_0x5109ae(0x1ab)](function(){const _0x34b190=_0x5109ae;_0x7d6da5[_0x34b190(0x18d)](0xcc)[_0x34b190(0x1a7)]();});};}function handleEntityNotFound(_0x2f132e){return function(_0x3c2fee){const _0x34749b=a288_0x2e0f;return!_0x3c2fee&&_0x2f132e[_0x34749b(0x1f6)](0x194),_0x3c2fee;};}function handleError(_0x10e93b,_0x5d726b){return _0x5d726b=_0x5d726b||0x1f4,function(_0x4d7128){const _0x183963=a288_0x2e0f;logger[_0x183963(0x180)](_0x4d7128[_0x183963(0x19d)]),_0x4d7128[_0x183963(0x1bf)]&&delete _0x4d7128[_0x183963(0x1bf)],_0x10e93b[_0x183963(0x18d)](_0x5d726b)[_0x183963(0x165)](_0x4d7128);};}exports[a288_0x272c48(0x1b3)]=function(_0x5b7ce6,_0x248711){const _0x3aef0a=a288_0x272c48;let _0x2f2bf3={};const _0x5cb49f={},_0x2f2d1b={'count':0x0,'rows':[]},_0x51f28f=_['map'](db[_0x3aef0a(0x207)][_0x3aef0a(0x20e)],function(_0x856f60){const _0x118cef=_0x3aef0a;return{'name':_0x856f60[_0x118cef(0x1ce)],'type':_0x856f60[_0x118cef(0x1d5)]['key']};});_0x5cb49f['model']=_[_0x3aef0a(0x16a)](_0x51f28f,_0x3aef0a(0x1bf)),_0x5cb49f[_0x3aef0a(0x1c4)]=_[_0x3aef0a(0x164)](_0x5b7ce6[_0x3aef0a(0x1c4)]),_0x5cb49f[_0x3aef0a(0x172)]=_['intersection'](_0x5cb49f[_0x3aef0a(0x1c8)],_0x5cb49f['query']),_0x2f2bf3[_0x3aef0a(0x1e2)]=_['intersection'](_0x5cb49f[_0x3aef0a(0x1c8)],qs[_0x3aef0a(0x167)](_0x5b7ce6[_0x3aef0a(0x1c4)][_0x3aef0a(0x167)])),_0x2f2bf3[_0x3aef0a(0x1e2)]=_0x2f2bf3[_0x3aef0a(0x1e2)][_0x3aef0a(0x1be)]?_0x2f2bf3[_0x3aef0a(0x1e2)]:_0x5cb49f[_0x3aef0a(0x1c8)];typeof _0x5b7ce6[_0x3aef0a(0x1c4)][_0x3aef0a(0x173)]===_0x3aef0a(0x195)&&(_0x2f2bf3[_0x3aef0a(0x1aa)]=qs[_0x3aef0a(0x1aa)](_0x5b7ce6[_0x3aef0a(0x1c4)][_0x3aef0a(0x1aa)]),_0x2f2bf3[_0x3aef0a(0x1a5)]=qs[_0x3aef0a(0x1a5)](_0x5b7ce6[_0x3aef0a(0x1c4)][_0x3aef0a(0x1a5)]));_0x2f2bf3[_0x3aef0a(0x1e0)]=qs['sort'](_0x5b7ce6[_0x3aef0a(0x1c4)][_0x3aef0a(0x1dc)]),_0x2f2bf3[_0x3aef0a(0x1a1)]=qs[_0x3aef0a(0x172)](_[_0x3aef0a(0x1ec)](_0x5b7ce6['query'],_0x5cb49f[_0x3aef0a(0x172)]),_0x51f28f);_0x5b7ce6[_0x3aef0a(0x1c4)][_0x3aef0a(0x1bc)]&&(_0x2f2bf3['where']=_['merge'](_0x2f2bf3['where'],{[Op['or']]:_['map'](_0x51f28f,function(_0x4f9867){const _0xed1a9c=_0x3aef0a;if(_0x4f9867[_0xed1a9c(0x1d5)]!==_0xed1a9c(0x1e6)){const _0x57e2ed={};return _0x57e2ed[_0x4f9867[_0xed1a9c(0x1bf)]]={[Op['like']]:'%'+_0x5b7ce6['query'][_0xed1a9c(0x1bc)]+'%'},_0x57e2ed;}})}));_0x2f2bf3=_[_0x3aef0a(0x185)]({},_0x2f2bf3,_0x5b7ce6['options']);const _0x55c1db={'where':_0x2f2bf3['where']};return db[_0x3aef0a(0x207)][_0x3aef0a(0x1ac)](_0x55c1db)['then'](function(_0x16e7f1){const _0x1aadfe=_0x3aef0a;return _0x2f2d1b['count']=_0x16e7f1,_0x5b7ce6['query'][_0x1aadfe(0x163)]&&(_0x2f2bf3[_0x1aadfe(0x1a9)]=[{'all':!![]}]),db['Dynamics365Account'][_0x1aadfe(0x1c9)](_0x2f2bf3);})[_0x3aef0a(0x1ab)](function(_0xb5154a){const _0x40e8cf=_0x3aef0a;return _0x2f2d1b[_0x40e8cf(0x19f)]=_0xb5154a,_0x2f2d1b;})['then'](respondWithFilteredResult(_0x248711,_0x2f2bf3))[_0x3aef0a(0x183)](handleError(_0x248711,null));},exports['show']=function(_0x33bf54,_0x1952d2){const _0x3fdff8=a288_0x272c48;let _0x5bde4b={'raw':![],'where':{'id':_0x33bf54[_0x3fdff8(0x1b6)]['id']}};const _0x283cda={};return _0x283cda[_0x3fdff8(0x1c8)]=_[_0x3fdff8(0x164)](db[_0x3fdff8(0x207)][_0x3fdff8(0x20e)]),_0x283cda[_0x3fdff8(0x1c4)]=_[_0x3fdff8(0x164)](_0x33bf54[_0x3fdff8(0x1c4)]),_0x283cda[_0x3fdff8(0x172)]=_[_0x3fdff8(0x20f)](_0x283cda['model'],_0x283cda[_0x3fdff8(0x1c4)]),_0x5bde4b[_0x3fdff8(0x1e2)]=_['intersection'](_0x283cda[_0x3fdff8(0x1c8)],qs[_0x3fdff8(0x167)](_0x33bf54[_0x3fdff8(0x1c4)]['fields'])),_0x5bde4b['attributes']=_0x5bde4b['attributes']['length']?_0x5bde4b[_0x3fdff8(0x1e2)]:_0x283cda[_0x3fdff8(0x1c8)],_0x33bf54[_0x3fdff8(0x1c4)][_0x3fdff8(0x163)]&&(_0x5bde4b['include']=[{'all':!![]}]),_0x5bde4b=_['merge']({},_0x5bde4b,_0x33bf54[_0x3fdff8(0x1cb)]),db[_0x3fdff8(0x207)][_0x3fdff8(0x1df)](_0x5bde4b)[_0x3fdff8(0x1ab)](handleEntityNotFound(_0x1952d2,null))[_0x3fdff8(0x1ab)](respondWithResult(_0x1952d2,null))[_0x3fdff8(0x183)](handleError(_0x1952d2,null));},exports[a288_0x272c48(0x1bd)]=function(_0x58f652,_0x47a4d5){const _0x33278c=a288_0x272c48;return db[_0x33278c(0x207)]['create'](_0x58f652[_0x33278c(0x1e4)],{})[_0x33278c(0x1ab)](respondWithResult(_0x47a4d5,0xc9))[_0x33278c(0x183)](handleError(_0x47a4d5,null));},exports[a288_0x272c48(0x1c7)]=function(_0x3d2dc7,_0x549891){const _0x3e3c39=a288_0x272c48;return _0x3d2dc7['body']['id']&&delete _0x3d2dc7['body']['id'],db['Dynamics365Account'][_0x3e3c39(0x1df)]({'where':{'id':_0x3d2dc7[_0x3e3c39(0x1b6)]['id']}})[_0x3e3c39(0x1ab)](handleEntityNotFound(_0x549891,null))[_0x3e3c39(0x1ab)](saveUpdates(_0x3d2dc7[_0x3e3c39(0x1e4)],null))[_0x3e3c39(0x1ab)](respondWithResult(_0x549891,null))[_0x3e3c39(0x183)](handleError(_0x549891,null));},exports[a288_0x272c48(0x203)]=function(_0x486969,_0x3fd416){const _0x31810d=a288_0x272c48;return db[_0x31810d(0x207)][_0x31810d(0x1df)]({'where':{'id':_0x486969[_0x31810d(0x1b6)]['id']}})[_0x31810d(0x1ab)](handleEntityNotFound(_0x3fd416,null))[_0x31810d(0x1ab)](removeEntity(_0x3fd416,null))[_0x31810d(0x183)](handleError(_0x3fd416,null));},exports[a288_0x272c48(0x18f)]=function(_0x1ee225,_0x412707){const _0x2419e2=a288_0x272c48;let _0x52332e={};const _0x446442={};let _0x87e28a,_0x294136;return db[_0x2419e2(0x207)][_0x2419e2(0x1df)]({'where':{'id':_0x1ee225['params']['id']}})['then'](handleEntityNotFound(_0x412707,null))[_0x2419e2(0x1ab)](function(_0x5c69f6){const _0xc2a73a=_0x2419e2;if(_0x5c69f6)return _0x87e28a=_0x5c69f6,_0x446442['model']=_[_0xc2a73a(0x164)](db[_0xc2a73a(0x200)][_0xc2a73a(0x20e)]),_0x446442['query']=_[_0xc2a73a(0x164)](_0x1ee225[_0xc2a73a(0x1c4)]),_0x446442['filters']=_[_0xc2a73a(0x20f)](_0x446442[_0xc2a73a(0x1c8)],_0x446442['query']),_0x52332e[_0xc2a73a(0x1e2)]=_[_0xc2a73a(0x20f)](_0x446442['model'],qs[_0xc2a73a(0x167)](_0x1ee225['query'][_0xc2a73a(0x167)])),_0x52332e[_0xc2a73a(0x1e2)]=_0x52332e[_0xc2a73a(0x1e2)][_0xc2a73a(0x1be)]?_0x52332e[_0xc2a73a(0x1e2)]:_0x446442[_0xc2a73a(0x1c8)],_0x52332e['order']=qs[_0xc2a73a(0x1dc)](_0x1ee225['query'][_0xc2a73a(0x1dc)]),_0x52332e[_0xc2a73a(0x1a1)]=qs[_0xc2a73a(0x172)](_['pick'](_0x1ee225['query'],_0x446442[_0xc2a73a(0x172)])),_0x1ee225[_0xc2a73a(0x1c4)][_0xc2a73a(0x1bc)]&&(_0x52332e[_0xc2a73a(0x1a1)]=_[_0xc2a73a(0x185)](_0x52332e[_0xc2a73a(0x1a1)],{[Op['or']]:_[_0xc2a73a(0x16a)](_0x52332e[_0xc2a73a(0x1e2)],function(_0xb9ad82){const _0x5a46ea=_0xc2a73a,_0x337294={};return _0x337294[_0xb9ad82]={[Op['like']]:'%'+_0x1ee225[_0x5a46ea(0x1c4)][_0x5a46ea(0x1bc)]+'%'},_0x337294;})})),_0x52332e=_[_0xc2a73a(0x185)]({},_0x52332e,_0x1ee225['options']),_0x87e28a['getConfigurations'](_0x52332e);})[_0x2419e2(0x1ab)](function(_0x17e7d1){const _0x142633=_0x2419e2;if(_0x17e7d1)return _0x294136=_0x17e7d1[_0x142633(0x1be)],typeof _0x1ee225[_0x142633(0x1c4)][_0x142633(0x173)]==='undefined'&&(_0x52332e[_0x142633(0x1aa)]=qs[_0x142633(0x1aa)](_0x1ee225[_0x142633(0x1c4)][_0x142633(0x1aa)]),_0x52332e[_0x142633(0x1a5)]=qs[_0x142633(0x1a5)](_0x1ee225[_0x142633(0x1c4)]['offset'])),_0x87e28a[_0x142633(0x18f)](_0x52332e);})[_0x2419e2(0x1ab)](function(_0x3b1fc2){if(_0x3b1fc2)return _0x3b1fc2?{'count':_0x294136,'rows':_0x3b1fc2}:null;})[_0x2419e2(0x1ab)](respondWithResult(_0x412707,null))[_0x2419e2(0x183)](handleError(_0x412707,null));},exports[a288_0x272c48(0x1d9)]=function(_0x1678ac,_0x4a5608){const _0x20fc4f=a288_0x272c48;return _0x1678ac['body']['id']&&delete _0x1678ac[_0x20fc4f(0x1e4)]['id'],db[_0x20fc4f(0x207)][_0x20fc4f(0x1df)]({'where':{'id':_0x1678ac['params']['id']}})[_0x20fc4f(0x1ab)](handleEntityNotFound(_0x4a5608,null))['then'](function(_0x332e43){const _0x2b01ad=_0x20fc4f;if(_0x332e43)return _0x1678ac[_0x2b01ad(0x1e4)]['AccountId']=_0x332e43['id'],_0x1678ac[_0x2b01ad(0x1e4)][_0x2b01ad(0x1e3)]=integrations[_0x2b01ad(0x186)](_0x1678ac['body'][_0x2b01ad(0x210)],_0x1678ac[_0x2b01ad(0x1e4)][_0x2b01ad(0x1d5)]),_0x1678ac[_0x2b01ad(0x1e4)][_0x2b01ad(0x1e8)]=integrations[_0x2b01ad(0x18e)](_0x1678ac['body']['channel'],_0x1678ac[_0x2b01ad(0x1e4)][_0x2b01ad(0x1d5)]),db[_0x2b01ad(0x200)][_0x2b01ad(0x1bd)](_0x1678ac[_0x2b01ad(0x1e4)],{'include':[{'model':db[_0x2b01ad(0x182)],'as':_0x2b01ad(0x1e3)},{'model':db[_0x2b01ad(0x182)],'as':_0x2b01ad(0x1e8)}]});return null;})[_0x20fc4f(0x1ab)](respondWithResult(_0x4a5608,null))[_0x20fc4f(0x183)](handleError(_0x4a5608,null));},exports['getFields']=function(_0x3dd2b5,_0xb88ea7){const _0x3898c0=a288_0x272c48,_0x5492a9=_0x3dd2b5[_0x3898c0(0x1c4)][_0x3898c0(0x205)],_0x1652cc=_0x5492a9===_0x3898c0(0x1b1)?_0x3898c0(0x1b2):'PhoneCall';let _0x14c403='',_0x5190a7='',_0x52dc80='',_0x34ed17='',_0x880cc8='',_0x462fb7='',_0x2ff9af='',_0x14d17c='';const _0x29fb9d=[_0x3898c0(0x16f),_0x3898c0(0x20d),_0x3898c0(0x1fe),_0x3898c0(0x1e5),_0x3898c0(0x189),_0x3898c0(0x1a6),_0x3898c0(0x1d1),_0x3898c0(0x19b),'directioncode',_0x3898c0(0x18a)],_0x3bb697=[_0x3898c0(0x1f9),_0x3898c0(0x1f4),_0x3898c0(0x196),_0x3898c0(0x188),'contactidname',_0x3898c0(0x16e),_0x3898c0(0x1da),_0x3898c0(0x18b),_0x3898c0(0x19e),_0x3898c0(0x17d),_0x3898c0(0x1af),'createdbyyominame','createdon',_0x3898c0(0x18c),'createdonbehalfbyyominame','customeridname',_0x3898c0(0x171),_0x3898c0(0x1cc),_0x3898c0(0x166),_0x3898c0(0x204),_0x3898c0(0x190),_0x3898c0(0x1fd),'escalatedon',_0x3898c0(0x1ef),_0x3898c0(0x187),_0x3898c0(0x1de),'importsequencenumber',_0x3898c0(0x181),_0x3898c0(0x1a8),_0x3898c0(0x1fc),_0x3898c0(0x1d7),_0x3898c0(0x1f1),_0x3898c0(0x1b9),_0x3898c0(0x1ee),'modifiedbyyominame',_0x3898c0(0x1c2),'modifiedonbehalfbyname',_0x3898c0(0x1dd),'msdyn_incidenttypename','msdyn_iotalertname',_0x3898c0(0x1a0),'onholdtime',_0x3898c0(0x1f3),_0x3898c0(0x16b),_0x3898c0(0x1b7),_0x3898c0(0x1c3),_0x3898c0(0x168),_0x3898c0(0x169),_0x3898c0(0x1c6),_0x3898c0(0x1e9),'productidname','productserialnumber',_0x3898c0(0x1d0),_0x3898c0(0x174),'responseby',_0x3898c0(0x1e7),_0x3898c0(0x1e1),_0x3898c0(0x201),_0x3898c0(0x17f),'slaname',_0x3898c0(0x1c0),'statecode',_0x3898c0(0x202),_0x3898c0(0x1d3),_0x3898c0(0x1eb),'timezoneruleversionnumber','transactioncurrencyidname',_0x3898c0(0x192),_0x3898c0(0x1f7),_0x3898c0(0x184)],_0x97ff81=_0x29fb9d['concat'](_0x3bb697);return db[_0x3898c0(0x207)]['findOne']({'where':{'id':_0x3dd2b5['params']['id']},'attributes':['id','username',_0x3898c0(0x17a),_0x3898c0(0x17b),_0x3898c0(0x1cf),_0x3898c0(0x160),_0x3898c0(0x194)]})['then'](handleEntityNotFound(_0xb88ea7,null))[_0x3898c0(0x1ab)](function(_0x233914){const _0x561582=_0x3898c0;if(_0x233914){_0x14d17c=_0x233914['remoteUri'];const _0xb7ebd4=_0x14d17c['slice'](-0x1);_0xb7ebd4==='/'&&(_0x14d17c=_0x14d17c[_0x561582(0x1b8)](0x0,_0x14d17c[_0x561582(0x179)](_0xb7ebd4)));_0x2ff9af=util['format']('%s/api/data/v9.0/',_0x14d17c);const _0x4e4cd3={'method':'POST','uri':_0x561582(0x17e)+_0x233914['tenantId']+_0x561582(0x178),'form':{'client_id':_0x233914['clientId'],'resource':_0x14d17c,'username':_0x233914[_0x561582(0x1ca)],'password':_0x233914[_0x561582(0x17a)],'grant_type':_0x561582(0x17a),'client_secret':_0x233914['clientSecret']},'json':!![]};return rp(_0x4e4cd3);}})[_0x3898c0(0x1ab)](function(_0x1a5525){const _0x206d69=_0x3898c0;_0x462fb7=_0x1a5525[_0x206d69(0x20c)];const _0x560c97={'method':_0x206d69(0x175),'uri':encodeURI(_0x2ff9af+'EntityDefinitions?$select=DisplayName,EntitySetName&$filter=SchemaName\x20eq\x20\x27'+_0x1652cc+'\x27'),'headers':{'Authorization':_0x206d69(0x1ad)+_0x462fb7,'If-None-Match':null,'OData-Version':_0x206d69(0x16d)},'json':!![]};return rp(_0x560c97);})[_0x3898c0(0x1ab)](function(_0x40cb06){const _0x4f83b1=_0x3898c0,_0x2ac5c3=_0x40cb06['value'][0x0],_0x1cfd67=_0x2ac5c3[_0x4f83b1(0x1cd)],_0x5307a4={'method':_0x4f83b1(0x175),'uri':_0x2ff9af+'EntityDefinitions('+_0x1cfd67+_0x4f83b1(0x1ea),'headers':{'Authorization':'Bearer\x20'+_0x462fb7,'If-None-Match':null,'OData-Version':_0x4f83b1(0x16d)},'json':!![]};return rp(_0x5307a4);})[_0x3898c0(0x1ab)](function(_0x18be83){const _0x485fe4=_0x3898c0;_0x14c403=_0x18be83,_0x5190a7=_0x14c403[_0x485fe4(0x20b)],_0x5190a7=_[_0x485fe4(0x1ed)](_0x5190a7,function(_0x28968d){const _0x3bd885=_0x485fe4;return!_0x97ff81[_0x3bd885(0x1b5)](_0x28968d[_0x3bd885(0x1d2)]);});const _0xb75028=[],_0x41cc4a=[];return _0x5190a7['forEach'](function(_0x114856){const _0xec947d=_0x485fe4;if(_0x114856[_0xec947d(0x1a2)]){const _0xa5a7cb=_0x114856[_0xec947d(0x1a2)][_0xec947d(0x1b8)](_0x114856[_0xec947d(0x1a2)]['lastIndexOf']('.')+0x1);_0xa5a7cb==='PicklistAttributeMetadata'&&_0xb75028[_0xec947d(0x1f5)](getSelectList(_0x2ff9af,_0x5492a9,_0x41cc4a,_0x14c403[_0xec947d(0x1cd)],_0x114856[_0xec947d(0x1cd)],_0x462fb7));}}),Promise[_0x485fe4(0x17c)](_0xb75028);})['then'](function(_0xe76340){_0x52dc80=_0xe76340[0x0];const _0x729270=[],_0x5229df=[];return _0x5190a7['forEach'](function(_0x40d127){const _0x1c57a8=a288_0x2e0f;if(!_['isNil'](_0x40d127['@odata.type'])){const _0x20e53b=_0x40d127['@odata.type'][_0x1c57a8(0x1b8)](_0x40d127[_0x1c57a8(0x1a2)]['lastIndexOf']('.')+0x1);_0x20e53b===_0x1c57a8(0x1d6)&&_0x729270['push'](getBooleanList(_0x2ff9af,_0x5492a9,_0x5229df,_0x14c403[_0x1c57a8(0x1cd)],_0x40d127['MetadataId'],_0x462fb7));}}),Promise['all'](_0x729270);})[_0x3898c0(0x1ab)](function(_0x1f4b06){const _0x579cd8=_0x3898c0;_0x34ed17=_0x1f4b06[0x0];const _0x1c4812=[],_0x1e3007=[];return _0x5190a7[_0x579cd8(0x1fb)](function(_0x38f7c6){const _0x40ee79=_0x579cd8;if(_0x38f7c6[_0x40ee79(0x1a2)]){const _0x1921b8=_0x38f7c6['@odata.type'][_0x40ee79(0x1b8)](_0x38f7c6['@odata.type']['lastIndexOf']('.')+0x1);(_0x1921b8===_0x40ee79(0x177)||_0x1921b8===_0x40ee79(0x1f8)||_0x1921b8===_0x40ee79(0x198)||_0x1921b8===_0x40ee79(0x191)||_0x1921b8==='MemoAttributeMetadata'||_0x1921b8===_0x40ee79(0x193)||_0x1921b8===_0x40ee79(0x1ff)||_0x1921b8==='EntityNameAttributeMetadata'||_0x1921b8===_0x40ee79(0x1f0)||_0x1921b8===_0x40ee79(0x197))&&_0x1c4812[_0x40ee79(0x1f5)](getInputList(_0x2ff9af,_0x5492a9,_0x1921b8,_0x1e3007,_0x14c403[_0x40ee79(0x1cd)],_0x38f7c6[_0x40ee79(0x1cd)],_0x462fb7));}}),Promise[_0x579cd8(0x17c)](_0x1c4812);})[_0x3898c0(0x1ab)](function(_0x564b9c){const _0x44537d=_0x3898c0;_0x880cc8=_0x564b9c[0x0];const _0x1c2945=_0x52dc80['concat'](_0x34ed17)['concat'](_0x880cc8),_0x232693={'count':_0x1c2945[_0x44537d(0x1be)],'rows':_0x1c2945};return _0x232693;})[_0x3898c0(0x1ab)](respondWithResult(_0xb88ea7,null))[_0x3898c0(0x183)](function(_0x4b2f8d){const _0x418e1b=_0x3898c0;let _0x5bc39f=_0x3dd2b5[_0x418e1b(0x1c4)]['test']?0x1f4:_0x4b2f8d['statusCode']||0x1f4;logger[_0x418e1b(0x180)](_0x4b2f8d[_0x418e1b(0x19d)]),delete _0x4b2f8d[_0x418e1b(0x1bf)],_0x5bc39f===0x191&&(_0x5bc39f=0x190),_0xb88ea7[_0x418e1b(0x18d)](_0x5bc39f)[_0x418e1b(0x165)](_0x3dd2b5['query'][_0x418e1b(0x199)]?{'message':_0x418e1b(0x1c5),'statusCode':_0x4b2f8d[_0x418e1b(0x1db)]}:_0x4b2f8d);});};function getSelectList(_0x426d4f,_0x1706db,_0x1ec776,_0x341db2,_0x10bb4e,_0x2828c5){const _0x5ea332=a288_0x272c48,_0x2a3e89={'method':_0x5ea332(0x175),'uri':_0x426d4f+_0x5ea332(0x209)+_0x341db2+_0x5ea332(0x1fa)+_0x10bb4e+_0x5ea332(0x1d8)+_0x5ea332(0x1a4),'headers':{'Authorization':_0x5ea332(0x1ad)+_0x2828c5,'If-None-Match':null,'OData-Version':_0x5ea332(0x16d)},'json':!![]};return rp(_0x2a3e89)[_0x5ea332(0x1ab)](function(_0x2cc3f3){const _0x56fdfe=_0x5ea332,_0x41937c=[],_0x4b2d53=_0x2cc3f3[_0x56fdfe(0x1c1)][_0x56fdfe(0x1a3)];_0x4b2d53[_0x56fdfe(0x1fb)](function(_0x46fbd4){const _0x63da50=_0x56fdfe;_0x41937c[_0x63da50(0x1f5)]({'name':_0x46fbd4[_0x63da50(0x1d4)][_0x63da50(0x1b4)]['Label'],'value':String(_0x46fbd4[_0x63da50(0x1b0)])});});const _0x2e6043={'id':_0x1706db+'_'+_0x2cc3f3[_0x56fdfe(0x1d2)],'name':_0x2cc3f3[_0x56fdfe(0x1ae)][_0x56fdfe(0x1b4)][_0x56fdfe(0x1d4)],'custom':![],'options':_0x41937c};return _0x1ec776[_0x56fdfe(0x1f5)](_0x2e6043),_0x1ec776;});}function getBooleanList(_0x83e443,_0x55a39c,_0x48e777,_0x5f08f9,_0x3a15ab,_0x3e34f3){const _0x3ab563=a288_0x272c48,_0x44ae9e={'method':_0x3ab563(0x175),'uri':_0x83e443+'EntityDefinitions('+_0x5f08f9+')/Attributes('+_0x3a15ab+_0x3ab563(0x19c),'headers':{'Authorization':'Bearer\x20'+_0x3e34f3,'If-None-Match':null,'OData-Version':_0x3ab563(0x16d)},'json':!![]};return rp(_0x44ae9e)[_0x3ab563(0x1ab)](function(_0x7fa892){const _0x46aa34=_0x3ab563,_0x2d72f4=[];_0x2d72f4['push']({'name':_0x7fa892[_0x46aa34(0x1c1)][_0x46aa34(0x170)][_0x46aa34(0x1d4)][_0x46aa34(0x1b4)][_0x46aa34(0x1d4)],'value':_0x46aa34(0x1bb)},{'name':_0x7fa892[_0x46aa34(0x1c1)][_0x46aa34(0x208)]['Label'][_0x46aa34(0x1b4)][_0x46aa34(0x1d4)],'value':'false'});const _0x18e081={'id':_0x55a39c+'_'+_0x7fa892[_0x46aa34(0x1d2)],'name':_0x7fa892[_0x46aa34(0x1ae)]['UserLocalizedLabel'][_0x46aa34(0x1d4)],'custom':![],'options':_0x2d72f4};return _0x48e777['push'](_0x18e081),_0x48e777;});}function getInputList(_0x2b6b5f,_0x2a5e04,_0xaa5639,_0x499256,_0x41ce64,_0x3428dc,_0xc083d4){const _0x458b57=a288_0x272c48,_0x515ef8={'method':_0x458b57(0x175),'uri':_0x2b6b5f+_0x458b57(0x209)+_0x41ce64+_0x458b57(0x1fa)+_0x3428dc+_0x458b57(0x1f2)+_0xaa5639+'?$select=DisplayName,LogicalName','headers':{'Authorization':'Bearer\x20'+_0xc083d4,'If-None-Match':null,'OData-Version':'4.0'},'json':!![]};return rp(_0x515ef8)[_0x458b57(0x1ab)](function(_0x2464d1){const _0x438c4e=_0x458b57,_0x57acdf={'id':_0x2a5e04+'_'+_0x2464d1['LogicalName'],'name':_0x2464d1[_0x438c4e(0x1ae)][_0x438c4e(0x1b4)]?_0x2464d1['DisplayName']['UserLocalizedLabel']['Label']:_0x2464d1[_0x438c4e(0x1d2)],'custom':![],'options':[]};return _0x499256[_0x438c4e(0x1f5)](_0x57acdf),_0x499256;});} \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.model.js b/server/api/intDynamics365Account/intDynamics365Account.model.js index 3b01c77..9e03725 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.model.js +++ b/server/api/intDynamics365Account/intDynamics365Account.model.js @@ -1 +1 @@ -const a289_0x3591=['./intDynamics365Account.attributes','function','exports','Dynamics365Account','init','sequelize','./intDynamics365Account.options'];(function(_0x49dcc9,_0x228db5){const _0x359113=function(_0x58490c){while(--_0x58490c){_0x49dcc9['push'](_0x49dcc9['shift']());}};_0x359113(++_0x228db5);}(a289_0x3591,0xcb));const a289_0x5849=function(_0x49dcc9,_0x228db5){_0x49dcc9=_0x49dcc9-0x6d;let _0x359113=a289_0x3591[_0x49dcc9];return _0x359113;};const a289_0x1075c8=a289_0x5849;'use strict';const {Model}=require(a289_0x1075c8(0x72)),{attributes}=require(a289_0x1075c8(0x6d)),{options}=require(a289_0x1075c8(0x73));class Dynamics365Account extends Model{}function init(_0x545879,_0xaca451){const _0x142160=a289_0x1075c8,_0x3d3023=options(_0x545879),_0x4d886c=typeof _0xaca451===_0x142160(0x6e)?_0xaca451(_0x3d3023):_0x3d3023;return Dynamics365Account['init'](attributes,_0x4d886c),Dynamics365Account;}module[a289_0x1075c8(0x6f)][a289_0x1075c8(0x70)]=Dynamics365Account,module['exports'][a289_0x1075c8(0x71)]=init; \ No newline at end of file +const a289_0x3819=['Dynamics365Account','./intDynamics365Account.options','function','exports','sequelize','./intDynamics365Account.attributes'];(function(_0x547f77,_0x3017c8){const _0x381936=function(_0x49be8d){while(--_0x49be8d){_0x547f77['push'](_0x547f77['shift']());}};_0x381936(++_0x3017c8);}(a289_0x3819,0x104));const a289_0x49be=function(_0x547f77,_0x3017c8){_0x547f77=_0x547f77-0x183;let _0x381936=a289_0x3819[_0x547f77];return _0x381936;};const a289_0x4baa23=a289_0x49be;'use strict';const {Model}=require(a289_0x4baa23(0x185)),{attributes}=require(a289_0x4baa23(0x186)),{options}=require(a289_0x4baa23(0x188));class Dynamics365Account extends Model{}function init(_0x153563,_0x542088){const _0x885db4=a289_0x4baa23,_0x9a29d6=options(_0x153563),_0x19fe06=typeof _0x542088===_0x885db4(0x183)?_0x542088(_0x9a29d6):_0x9a29d6;return Dynamics365Account['init'](attributes,_0x19fe06),Dynamics365Account;}module[a289_0x4baa23(0x184)][a289_0x4baa23(0x187)]=Dynamics365Account,module[a289_0x4baa23(0x184)]['init']=init; \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.options.js b/server/api/intDynamics365Account/intDynamics365Account.options.js index 5eb526b..cf6bfdd 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.options.js +++ b/server/api/intDynamics365Account/intDynamics365Account.options.js @@ -1 +1 @@ -var a290_0x407f=['exports','options'];(function(_0x5ed4fd,_0x5a2727){var _0x407fbd=function(_0x251258){while(--_0x251258){_0x5ed4fd['push'](_0x5ed4fd['shift']());}};_0x407fbd(++_0x5a2727);}(a290_0x407f,0x1d6));var a290_0x2512=function(_0x5ed4fd,_0x5a2727){_0x5ed4fd=_0x5ed4fd-0xaf;var _0x407fbd=a290_0x407f[_0x5ed4fd];return _0x407fbd;};var a290_0x18bebd=a290_0x2512;function options(_0x462a37){return{'sequelize':_0x462a37,'tableName':'int_dynamics365_accounts','paranoid':![],'indexes':[],'timestamps':!![]};}module[a290_0x18bebd(0xaf)][a290_0x18bebd(0xb0)]=options; \ No newline at end of file +var a290_0x4d5a=['exports','options','int_dynamics365_accounts'];(function(_0x3fc1e2,_0x143fd3){var _0x4d5a35=function(_0x43e07e){while(--_0x43e07e){_0x3fc1e2['push'](_0x3fc1e2['shift']());}};_0x4d5a35(++_0x143fd3);}(a290_0x4d5a,0x122));var a290_0x43e0=function(_0x3fc1e2,_0x143fd3){_0x3fc1e2=_0x3fc1e2-0xb9;var _0x4d5a35=a290_0x4d5a[_0x3fc1e2];return _0x4d5a35;};var a290_0x542db6=a290_0x43e0;function options(_0x319f67){var _0xeb616f=a290_0x43e0;return{'sequelize':_0x319f67,'tableName':_0xeb616f(0xb9),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a290_0x542db6(0xba)][a290_0x542db6(0xbb)]=options; \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.rpc.js b/server/api/intDynamics365Account/intDynamics365Account.rpc.js index e367e26..4d7bc13 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.rpc.js +++ b/server/api/intDynamics365Account/intDynamics365Account.rpc.js @@ -1 +1 @@ -const a291_0xb6b3=['GetDynamics365Account','../../config/logger','findAll','Dynamics365Account','include','debug','model','where','error','then','raw','map','info','ShowDynamics365Account','stringify','options','message','../../mysqldb','limit','attributes','rpc'];(function(_0x45fce0,_0x366fbe){const _0xb6b3b0=function(_0x13487a){while(--_0x13487a){_0x45fce0['push'](_0x45fce0['shift']());}};_0xb6b3b0(++_0x366fbe);}(a291_0xb6b3,0xf8));const a291_0x1348=function(_0x45fce0,_0x366fbe){_0x45fce0=_0x45fce0-0xca;let _0xb6b3b0=a291_0xb6b3[_0x45fce0];return _0xb6b3b0;};const a291_0x58f0d3=a291_0x1348;'use strict';const _=require('lodash'),db=require(a291_0x58f0d3(0xca))['db'],logger=require(a291_0x58f0d3(0xcf))(a291_0x58f0d3(0xcd));exports[a291_0x58f0d3(0xce)]=function(_0x3f1d1a){const _0x32a39a=this;return new Promise(function(_0x10d828,_0x48abf4){const _0x5eff41=a291_0x1348;return db['Dynamics365Account'][_0x5eff41(0xd0)]({'raw':_0x3f1d1a[_0x5eff41(0xdd)]?_0x3f1d1a[_0x5eff41(0xdd)][_0x5eff41(0xd8)]===undefined?!![]:![]:!![],'where':_0x3f1d1a[_0x5eff41(0xdd)]?_0x3f1d1a[_0x5eff41(0xdd)][_0x5eff41(0xd5)]||null:null,'attributes':_0x3f1d1a[_0x5eff41(0xdd)]?_0x3f1d1a[_0x5eff41(0xdd)][_0x5eff41(0xcc)]||null:null,'limit':_0x3f1d1a[_0x5eff41(0xdd)]?_0x3f1d1a['options'][_0x5eff41(0xcb)]||null:null,'include':_0x3f1d1a[_0x5eff41(0xdd)]?_0x3f1d1a['options'][_0x5eff41(0xd2)]?_['map'](_0x3f1d1a[_0x5eff41(0xdd)]['include'],function(_0x382e44){const _0x45693f=_0x5eff41;return{'model':db[_0x382e44['model']],'as':_0x382e44['as'],'attributes':_0x382e44[_0x45693f(0xcc)],'include':_0x382e44[_0x45693f(0xd2)]?_['map'](_0x382e44[_0x45693f(0xd2)],function(_0x160139){const _0x23d317=_0x45693f;return{'model':db[_0x160139[_0x23d317(0xd4)]],'as':_0x160139['as'],'attributes':_0x160139['attributes'],'include':_0x160139[_0x23d317(0xd2)]?_[_0x23d317(0xd9)](_0x160139['include'],function(_0x3b788f){const _0x5f24f1=_0x23d317;return{'model':db[_0x3b788f[_0x5f24f1(0xd4)]],'as':_0x3b788f['as'],'attributes':_0x3b788f[_0x5f24f1(0xcc)]};}):[]};}):[]};}):[]:[]})[_0x5eff41(0xd7)](function(_0xde9184){const _0x320294=_0x5eff41;logger[_0x320294(0xda)](_0x320294(0xce),_0x3f1d1a),logger[_0x320294(0xd3)](_0x320294(0xce),_0x3f1d1a,JSON[_0x320294(0xdc)](_0xde9184)),_0x10d828(_0xde9184);})['catch'](function(_0x115bbe){const _0x2aaa29=_0x5eff41;logger[_0x2aaa29(0xd6)](_0x2aaa29(0xce),_0x115bbe[_0x2aaa29(0xde)],_0x3f1d1a),_0x48abf4(_0x32a39a[_0x2aaa29(0xd6)](0x1f4,_0x115bbe['message']));});});},exports['ShowDynamics365Account']=function(_0x2d70f9){const _0x4b0056=this;return new Promise(function(_0xd86e3c,_0x3d956f){const _0x2c2841=a291_0x1348;return db[_0x2c2841(0xd1)]['findOne']({'raw':_0x2d70f9['options']?_0x2d70f9[_0x2c2841(0xdd)][_0x2c2841(0xd8)]===undefined?!![]:![]:!![],'where':_0x2d70f9['options']?_0x2d70f9['options'][_0x2c2841(0xd5)]||null:null,'attributes':_0x2d70f9[_0x2c2841(0xdd)]?_0x2d70f9[_0x2c2841(0xdd)][_0x2c2841(0xcc)]||null:null,'include':_0x2d70f9['options']?_0x2d70f9[_0x2c2841(0xdd)][_0x2c2841(0xd2)]?_['map'](_0x2d70f9[_0x2c2841(0xdd)][_0x2c2841(0xd2)],function(_0x3c8cdb){const _0x2ff0a3=_0x2c2841;return{'model':db[_0x3c8cdb[_0x2ff0a3(0xd4)]],'as':_0x3c8cdb['as'],'attributes':_0x3c8cdb[_0x2ff0a3(0xcc)],'include':_0x3c8cdb[_0x2ff0a3(0xd2)]?_['map'](_0x3c8cdb[_0x2ff0a3(0xd2)],function(_0x3e25e1){const _0x4961e9=_0x2ff0a3;return{'model':db[_0x3e25e1[_0x4961e9(0xd4)]],'as':_0x3e25e1['as'],'attributes':_0x3e25e1[_0x4961e9(0xcc)],'include':_0x3e25e1[_0x4961e9(0xd2)]?_[_0x4961e9(0xd9)](_0x3e25e1[_0x4961e9(0xd2)],function(_0x5cb7d6){const _0x26477e=_0x4961e9;return{'model':db[_0x5cb7d6[_0x26477e(0xd4)]],'as':_0x5cb7d6['as'],'attributes':_0x5cb7d6[_0x26477e(0xcc)]};}):[]};}):[]};}):[]:[]})[_0x2c2841(0xd7)](function(_0x5a0e55){const _0x449622=_0x2c2841;logger[_0x449622(0xda)]('ShowDynamics365Account',_0x2d70f9),logger['debug']('ShowDynamics365Account',_0x2d70f9,JSON[_0x449622(0xdc)](_0x5a0e55)),_0xd86e3c(_0x5a0e55);})['catch'](function(_0x453ab3){const _0x2a271c=_0x2c2841;logger['error'](_0x2a271c(0xdb),_0x453ab3[_0x2a271c(0xde)],_0x2d70f9),_0x3d956f(_0x4b0056[_0x2a271c(0xd6)](0x1f4,_0x453ab3[_0x2a271c(0xde)]));});});}; \ No newline at end of file +const a291_0x37ee=['catch','../../config/logger','findOne','Dynamics365Account','error','map','model','info','ShowDynamics365Account','findAll','where','rpc','attributes','include','GetDynamics365Account','debug','limit','stringify','options','then','message','../../mysqldb'];(function(_0x2ef7d9,_0x523a13){const _0x37ee79=function(_0x3b9828){while(--_0x3b9828){_0x2ef7d9['push'](_0x2ef7d9['shift']());}};_0x37ee79(++_0x523a13);}(a291_0x37ee,0x1f3));const a291_0x3b98=function(_0x2ef7d9,_0x523a13){_0x2ef7d9=_0x2ef7d9-0xe1;let _0x37ee79=a291_0x37ee[_0x2ef7d9];return _0x37ee79;};const a291_0x54a8f3=a291_0x3b98;'use strict';const _=require('lodash'),db=require(a291_0x54a8f3(0xe7))['db'],logger=require(a291_0x54a8f3(0xe9))(a291_0x54a8f3(0xf3));exports['GetDynamics365Account']=function(_0x268485){const _0x5c3bbf=this;return new Promise(function(_0x32b43c,_0x33a6d2){const _0x1a326b=a291_0x3b98;return db[_0x1a326b(0xeb)][_0x1a326b(0xf1)]({'raw':_0x268485[_0x1a326b(0xe4)]?_0x268485[_0x1a326b(0xe4)]['raw']===undefined?!![]:![]:!![],'where':_0x268485[_0x1a326b(0xe4)]?_0x268485['options']['where']||null:null,'attributes':_0x268485[_0x1a326b(0xe4)]?_0x268485[_0x1a326b(0xe4)][_0x1a326b(0xf4)]||null:null,'limit':_0x268485['options']?_0x268485[_0x1a326b(0xe4)][_0x1a326b(0xe2)]||null:null,'include':_0x268485[_0x1a326b(0xe4)]?_0x268485['options']['include']?_[_0x1a326b(0xed)](_0x268485[_0x1a326b(0xe4)][_0x1a326b(0xf5)],function(_0x2eabdf){const _0x33c8fb=_0x1a326b;return{'model':db[_0x2eabdf[_0x33c8fb(0xee)]],'as':_0x2eabdf['as'],'attributes':_0x2eabdf['attributes'],'include':_0x2eabdf[_0x33c8fb(0xf5)]?_[_0x33c8fb(0xed)](_0x2eabdf[_0x33c8fb(0xf5)],function(_0x40704b){const _0x28d6fa=_0x33c8fb;return{'model':db[_0x40704b[_0x28d6fa(0xee)]],'as':_0x40704b['as'],'attributes':_0x40704b[_0x28d6fa(0xf4)],'include':_0x40704b[_0x28d6fa(0xf5)]?_[_0x28d6fa(0xed)](_0x40704b[_0x28d6fa(0xf5)],function(_0x504a1c){return{'model':db[_0x504a1c['model']],'as':_0x504a1c['as'],'attributes':_0x504a1c['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x21211c){const _0x20ad81=_0x1a326b;logger[_0x20ad81(0xef)](_0x20ad81(0xf6),_0x268485),logger['debug'](_0x20ad81(0xf6),_0x268485,JSON[_0x20ad81(0xe3)](_0x21211c)),_0x32b43c(_0x21211c);})[_0x1a326b(0xe8)](function(_0x4e793a){const _0x2ac39d=_0x1a326b;logger['error'](_0x2ac39d(0xf6),_0x4e793a['message'],_0x268485),_0x33a6d2(_0x5c3bbf[_0x2ac39d(0xec)](0x1f4,_0x4e793a[_0x2ac39d(0xe6)]));});});},exports['ShowDynamics365Account']=function(_0x2ad094){const _0x1d4884=this;return new Promise(function(_0x2f4be3,_0x1f6b30){const _0x2ed0fa=a291_0x3b98;return db[_0x2ed0fa(0xeb)][_0x2ed0fa(0xea)]({'raw':_0x2ad094['options']?_0x2ad094['options']['raw']===undefined?!![]:![]:!![],'where':_0x2ad094[_0x2ed0fa(0xe4)]?_0x2ad094['options'][_0x2ed0fa(0xf2)]||null:null,'attributes':_0x2ad094[_0x2ed0fa(0xe4)]?_0x2ad094['options'][_0x2ed0fa(0xf4)]||null:null,'include':_0x2ad094[_0x2ed0fa(0xe4)]?_0x2ad094[_0x2ed0fa(0xe4)][_0x2ed0fa(0xf5)]?_[_0x2ed0fa(0xed)](_0x2ad094[_0x2ed0fa(0xe4)][_0x2ed0fa(0xf5)],function(_0x3274cb){const _0x4250dc=_0x2ed0fa;return{'model':db[_0x3274cb[_0x4250dc(0xee)]],'as':_0x3274cb['as'],'attributes':_0x3274cb[_0x4250dc(0xf4)],'include':_0x3274cb[_0x4250dc(0xf5)]?_[_0x4250dc(0xed)](_0x3274cb['include'],function(_0x2bfe5f){const _0x300cdf=_0x4250dc;return{'model':db[_0x2bfe5f[_0x300cdf(0xee)]],'as':_0x2bfe5f['as'],'attributes':_0x2bfe5f[_0x300cdf(0xf4)],'include':_0x2bfe5f[_0x300cdf(0xf5)]?_[_0x300cdf(0xed)](_0x2bfe5f[_0x300cdf(0xf5)],function(_0x3f87c9){const _0x207601=_0x300cdf;return{'model':db[_0x3f87c9[_0x207601(0xee)]],'as':_0x3f87c9['as'],'attributes':_0x3f87c9['attributes']};}):[]};}):[]};}):[]:[]})[_0x2ed0fa(0xe5)](function(_0xa9ef32){const _0x1fde45=_0x2ed0fa;logger[_0x1fde45(0xef)](_0x1fde45(0xf0),_0x2ad094),logger[_0x1fde45(0xe1)](_0x1fde45(0xf0),_0x2ad094,JSON[_0x1fde45(0xe3)](_0xa9ef32)),_0x2f4be3(_0xa9ef32);})[_0x2ed0fa(0xe8)](function(_0x27c2a3){const _0x452517=_0x2ed0fa;logger[_0x452517(0xec)](_0x452517(0xf0),_0x27c2a3[_0x452517(0xe6)],_0x2ad094),_0x1f6b30(_0x1d4884['error'](0x1f4,_0x27c2a3['message']));});});}; \ No newline at end of file diff --git a/server/api/intDynamics365Configuration/index.js b/server/api/intDynamics365Configuration/index.js index 4edad36..3145483 100644 --- a/server/api/intDynamics365Configuration/index.js +++ b/server/api/intDynamics365Configuration/index.js @@ -1 +1 @@ -const a292_0x5ad7=['/:id','put','express','post','index','Router','../../components/auth/service','get','getFields','create','./intDynamics365Configuration.controller','destroy','getDescriptions','isAuthenticated','/:id/descriptions','exports','/:id/fields','show','getSubjects','update'];(function(_0xedb17a,_0x4ea98f){const _0x5ad7b6=function(_0x185ef3){while(--_0x185ef3){_0xedb17a['push'](_0xedb17a['shift']());}};_0x5ad7b6(++_0x4ea98f);}(a292_0x5ad7,0x1df));const a292_0x185e=function(_0xedb17a,_0x4ea98f){_0xedb17a=_0xedb17a-0x133;let _0x5ad7b6=a292_0x5ad7[_0xedb17a];return _0x5ad7b6;};const a292_0x1f348a=a292_0x185e;'use strict';const express=require(a292_0x1f348a(0x136)),router=express[a292_0x1f348a(0x139)](),auth=require(a292_0x1f348a(0x13a)),controller=require(a292_0x1f348a(0x13e));router[a292_0x1f348a(0x13b)]('/',auth[a292_0x1f348a(0x141)](),controller[a292_0x1f348a(0x138)]),router['get'](a292_0x1f348a(0x134),auth[a292_0x1f348a(0x141)](),controller[a292_0x1f348a(0x145)]),router['get'](a292_0x1f348a(0x144),auth[a292_0x1f348a(0x141)](),controller[a292_0x1f348a(0x13c)]),router[a292_0x1f348a(0x13b)]('/:id/subjects',auth[a292_0x1f348a(0x141)](),controller[a292_0x1f348a(0x146)]),router[a292_0x1f348a(0x13b)](a292_0x1f348a(0x142),auth[a292_0x1f348a(0x141)](),controller[a292_0x1f348a(0x140)]),router[a292_0x1f348a(0x137)]('/',auth['isAuthenticated'](),controller[a292_0x1f348a(0x13d)]),router[a292_0x1f348a(0x135)](a292_0x1f348a(0x134),auth['isAuthenticated'](),controller[a292_0x1f348a(0x133)]),router['delete'](a292_0x1f348a(0x134),auth['isAuthenticated'](),controller[a292_0x1f348a(0x13f)]),module[a292_0x1f348a(0x143)]=router; \ No newline at end of file +const a292_0x5f0c=['/:id/fields','destroy','index','/:id/descriptions','isAuthenticated','put','post','delete','/:id','get','Router','express','getSubjects','show','../../components/auth/service','getDescriptions'];(function(_0xfadfed,_0x18d7be){const _0x5f0c2c=function(_0x34a40e){while(--_0x34a40e){_0xfadfed['push'](_0xfadfed['shift']());}};_0x5f0c2c(++_0x18d7be);}(a292_0x5f0c,0x1e8));const a292_0x34a4=function(_0xfadfed,_0x18d7be){_0xfadfed=_0xfadfed-0x13b;let _0x5f0c2c=a292_0x5f0c[_0xfadfed];return _0x5f0c2c;};const a292_0x348bc3=a292_0x34a4;'use strict';const express=require(a292_0x348bc3(0x13e)),router=express[a292_0x348bc3(0x13d)](),auth=require(a292_0x348bc3(0x141)),controller=require('./intDynamics365Configuration.controller');router[a292_0x348bc3(0x13c)]('/',auth[a292_0x348bc3(0x147)](),controller[a292_0x348bc3(0x145)]),router[a292_0x348bc3(0x13c)](a292_0x348bc3(0x13b),auth[a292_0x348bc3(0x147)](),controller[a292_0x348bc3(0x140)]),router[a292_0x348bc3(0x13c)](a292_0x348bc3(0x143),auth['isAuthenticated'](),controller['getFields']),router['get']('/:id/subjects',auth[a292_0x348bc3(0x147)](),controller[a292_0x348bc3(0x13f)]),router[a292_0x348bc3(0x13c)](a292_0x348bc3(0x146),auth[a292_0x348bc3(0x147)](),controller[a292_0x348bc3(0x142)]),router[a292_0x348bc3(0x149)]('/',auth['isAuthenticated'](),controller['create']),router[a292_0x348bc3(0x148)](a292_0x348bc3(0x13b),auth[a292_0x348bc3(0x147)](),controller['update']),router[a292_0x348bc3(0x14a)](a292_0x348bc3(0x13b),auth['isAuthenticated'](),controller[a292_0x348bc3(0x144)]),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 ceabed9..f302e1c 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js @@ -1 +1 @@ -const a293_0x40f2=['incident','exports','STRING','attributes'];(function(_0x168646,_0x221e13){const _0x40f2f1=function(_0x45ccca){while(--_0x45ccca){_0x168646['push'](_0x168646['shift']());}};_0x40f2f1(++_0x221e13);}(a293_0x40f2,0x1b7));const a293_0x45cc=function(_0x168646,_0x221e13){_0x168646=_0x168646-0x14b;let _0x40f2f1=a293_0x40f2[_0x168646];return _0x40f2f1;};const a293_0x3ffc65=a293_0x45cc;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a293_0x3ffc65(0x14e)]},'ticketType':{'type':DataTypes['ENUM'](a293_0x3ffc65(0x14c),'phonecall'),'defaultValue':a293_0x3ffc65(0x14c)}};module[a293_0x3ffc65(0x14d)][a293_0x3ffc65(0x14b)]=attributes; \ No newline at end of file +const a293_0x5edb=['attributes','exports','incident','STRING','phonecall','sequelize','ENUM'];(function(_0x157d50,_0x11cef5){const _0x5edb23=function(_0x2b97d5){while(--_0x2b97d5){_0x157d50['push'](_0x157d50['shift']());}};_0x5edb23(++_0x11cef5);}(a293_0x5edb,0x6c));const a293_0x2b97=function(_0x157d50,_0x11cef5){_0x157d50=_0x157d50-0x176;let _0x5edb23=a293_0x5edb[_0x157d50];return _0x5edb23;};const a293_0x5f13ca=a293_0x2b97;'use strict';const {DataTypes}=require(a293_0x5f13ca(0x178)),attributes={'name':{'type':DataTypes[a293_0x5f13ca(0x176)]},'description':{'type':DataTypes['STRING']},'ticketType':{'type':DataTypes[a293_0x5f13ca(0x179)](a293_0x5f13ca(0x17c),a293_0x5f13ca(0x177)),'defaultValue':a293_0x5f13ca(0x17c)}};module[a293_0x5f13ca(0x17b)][a293_0x5f13ca(0x17a)]=attributes; \ No newline at end of file diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js index a5546b5..9569fff 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js @@ -1 +1 @@ -const a294_0x2628=['pick','fieldName','then','query','body','VIRTUAL','params','catch','map','count','undefined','length','show','model','like','merge','findOne','includeAll','intersection','attributes','../../config/logger','api','error','lodash','create','options','update','Dynamics365Field','Dynamics365Configuration','rawAttributes','order','getFields','keys','../../mysqldb','include','filter','where','filters','sendStatus','getSubjects','fields','getDescriptions','stack','json','offset','sequelize','name','sort','set','destroy','findAll','nolimit','limit','status','type'];(function(_0x467fe7,_0x1b6112){const _0x262857=function(_0x599b26){while(--_0x599b26){_0x467fe7['push'](_0x467fe7['shift']());}};_0x262857(++_0x1b6112);}(a294_0x2628,0x14f));const a294_0x599b=function(_0x467fe7,_0x1b6112){_0x467fe7=_0x467fe7-0x15a;let _0x262857=a294_0x2628[_0x467fe7];return _0x262857;};const a294_0x4e7092=a294_0x599b;'use strict';const _=require(a294_0x4e7092(0x16c)),qs=require('../../components/parsers/qs'),logger=require(a294_0x4e7092(0x169))(a294_0x4e7092(0x16a)),{db}=require(a294_0x4e7092(0x176)),{Op}=require(a294_0x4e7092(0x182));function respondWithResult(_0x803aa8,_0xd08fe9){return _0xd08fe9=_0xd08fe9||0xc8,function(_0x13b2fd){const _0x2bcf0c=a294_0x599b;if(_0x13b2fd)return _0x803aa8[_0x2bcf0c(0x18a)](_0xd08fe9)[_0x2bcf0c(0x180)](_0x13b2fd);};}function respondWithFilteredResult(_0xc3254b,_0x4f325f){return function(_0x295329){const _0x3295ef=a294_0x599b;if(_0x295329){const _0x40c431=_0x295329[_0x3295ef(0x15e)],_0x396126=_0x4f325f['offset'];let _0x47899a=_0x4f325f[_0x3295ef(0x181)]+_0x4f325f['limit'],_0xaba3cd;return _0x47899a>=_0x40c431?(_0x47899a=_0x40c431,_0xaba3cd=0xc8):_0xaba3cd=0xce,_0xc3254b[_0x3295ef(0x18a)](_0xaba3cd),_0xc3254b[_0x3295ef(0x185)]('Content-Range',_0x396126+'-'+_0x47899a+'/'+_0x40c431)[_0x3295ef(0x180)](_0x295329);}return null;};}function saveUpdates(_0x473bf5){return function(_0x28247a){const _0x956f0a=a294_0x599b;if(_0x28247a)return _0x28247a[_0x956f0a(0x16f)](_0x473bf5)[_0x956f0a(0x18e)](function(_0x41950d){return _0x41950d;});return null;};}function removeEntity(_0x278ef4){return function(_0x534445){const _0x1ddabd=a294_0x599b;if(_0x534445)return _0x534445[_0x1ddabd(0x186)]()[_0x1ddabd(0x18e)](function(){const _0x3ad0db=_0x1ddabd;_0x278ef4[_0x3ad0db(0x18a)](0xcc)['end']();});};}function handleEntityNotFound(_0x22b983){return function(_0x292c9a){const _0x54dba6=a294_0x599b;return!_0x292c9a&&_0x22b983[_0x54dba6(0x17b)](0x194),_0x292c9a;};}function handleError(_0x496968,_0x350d73){return _0x350d73=_0x350d73||0x1f4,function(_0x3d18ab){const _0x1117d3=a294_0x599b;logger[_0x1117d3(0x16b)](_0x3d18ab[_0x1117d3(0x17f)]),_0x3d18ab[_0x1117d3(0x183)]&&delete _0x3d18ab[_0x1117d3(0x183)],_0x496968[_0x1117d3(0x18a)](_0x350d73)['send'](_0x3d18ab);};}exports['index']=function(_0x215b4b,_0x2b4daf){const _0x464e64=a294_0x4e7092;let _0x57dfab={};const _0x501b27={},_0x242150={'count':0x0,'rows':[]},_0x4d0b9b=_[_0x464e64(0x15d)](db[_0x464e64(0x171)]['rawAttributes'],function(_0x19b998){const _0xd523c8=_0x464e64;return{'name':_0x19b998[_0xd523c8(0x18d)],'type':_0x19b998[_0xd523c8(0x18b)]['key']};});_0x501b27[_0x464e64(0x162)]=_['map'](_0x4d0b9b,'name'),_0x501b27[_0x464e64(0x18f)]=_[_0x464e64(0x175)](_0x215b4b[_0x464e64(0x18f)]),_0x501b27[_0x464e64(0x17a)]=_[_0x464e64(0x167)](_0x501b27[_0x464e64(0x162)],_0x501b27[_0x464e64(0x18f)]),_0x57dfab[_0x464e64(0x168)]=_[_0x464e64(0x167)](_0x501b27[_0x464e64(0x162)],qs[_0x464e64(0x17d)](_0x215b4b[_0x464e64(0x18f)][_0x464e64(0x17d)])),_0x57dfab[_0x464e64(0x168)]=_0x57dfab[_0x464e64(0x168)][_0x464e64(0x160)]?_0x57dfab[_0x464e64(0x168)]:_0x501b27[_0x464e64(0x162)];typeof _0x215b4b[_0x464e64(0x18f)][_0x464e64(0x188)]===_0x464e64(0x15f)&&(_0x57dfab[_0x464e64(0x189)]=qs[_0x464e64(0x189)](_0x215b4b[_0x464e64(0x18f)][_0x464e64(0x189)]),_0x57dfab[_0x464e64(0x181)]=qs['offset'](_0x215b4b[_0x464e64(0x18f)][_0x464e64(0x181)]));_0x57dfab['order']=qs[_0x464e64(0x184)](_0x215b4b['query'][_0x464e64(0x184)]),_0x57dfab['where']=qs[_0x464e64(0x17a)](_[_0x464e64(0x18c)](_0x215b4b['query'],_0x501b27[_0x464e64(0x17a)]),_0x4d0b9b);_0x215b4b['query'][_0x464e64(0x178)]&&(_0x57dfab[_0x464e64(0x179)]=_[_0x464e64(0x164)](_0x57dfab['where'],{[Op['or']]:_[_0x464e64(0x15d)](_0x4d0b9b,function(_0x404cd6){const _0x2ed89f=_0x464e64;if(_0x404cd6[_0x2ed89f(0x18b)]!==_0x2ed89f(0x15a)){const _0x493f9c={};return _0x493f9c[_0x404cd6[_0x2ed89f(0x183)]]={[Op[_0x2ed89f(0x163)]]:'%'+_0x215b4b[_0x2ed89f(0x18f)]['filter']+'%'},_0x493f9c;}})}));_0x57dfab=_[_0x464e64(0x164)]({},_0x57dfab,_0x215b4b['options']);const _0x36b88c={'where':_0x57dfab[_0x464e64(0x179)]};return db[_0x464e64(0x171)]['count'](_0x36b88c)[_0x464e64(0x18e)](function(_0x13c5e4){const _0x4d8c33=_0x464e64;return _0x242150[_0x4d8c33(0x15e)]=_0x13c5e4,_0x215b4b['query']['includeAll']&&(_0x57dfab[_0x4d8c33(0x177)]=[{'all':!![]}]),db['Dynamics365Configuration'][_0x4d8c33(0x187)](_0x57dfab);})[_0x464e64(0x18e)](function(_0x36edf2){return _0x242150['rows']=_0x36edf2,_0x242150;})[_0x464e64(0x18e)](respondWithFilteredResult(_0x2b4daf,_0x57dfab))[_0x464e64(0x15c)](handleError(_0x2b4daf,null));},exports[a294_0x4e7092(0x161)]=function(_0x12a7f9,_0x4a503a){const _0x27b5f9=a294_0x4e7092;let _0x8c3857={'raw':![],'where':{'id':_0x12a7f9[_0x27b5f9(0x15b)]['id']}};const _0x5da1b5={};return _0x5da1b5[_0x27b5f9(0x162)]=_[_0x27b5f9(0x175)](db[_0x27b5f9(0x171)][_0x27b5f9(0x172)]),_0x5da1b5[_0x27b5f9(0x18f)]=_['keys'](_0x12a7f9[_0x27b5f9(0x18f)]),_0x5da1b5[_0x27b5f9(0x17a)]=_[_0x27b5f9(0x167)](_0x5da1b5['model'],_0x5da1b5[_0x27b5f9(0x18f)]),_0x8c3857['attributes']=_[_0x27b5f9(0x167)](_0x5da1b5[_0x27b5f9(0x162)],qs[_0x27b5f9(0x17d)](_0x12a7f9['query'][_0x27b5f9(0x17d)])),_0x8c3857['attributes']=_0x8c3857[_0x27b5f9(0x168)][_0x27b5f9(0x160)]?_0x8c3857[_0x27b5f9(0x168)]:_0x5da1b5['model'],_0x12a7f9[_0x27b5f9(0x18f)][_0x27b5f9(0x166)]&&(_0x8c3857['include']=[{'all':!![]}]),_0x8c3857=_[_0x27b5f9(0x164)]({},_0x8c3857,_0x12a7f9[_0x27b5f9(0x16e)]),db[_0x27b5f9(0x171)][_0x27b5f9(0x165)](_0x8c3857)['then'](handleEntityNotFound(_0x4a503a,null))[_0x27b5f9(0x18e)](respondWithResult(_0x4a503a,null))[_0x27b5f9(0x15c)](handleError(_0x4a503a,null));},exports[a294_0x4e7092(0x16d)]=function(_0x11912b,_0x48a63e){const _0x1d08b4=a294_0x4e7092;return db['Dynamics365Configuration']['create'](_0x11912b[_0x1d08b4(0x190)],{})[_0x1d08b4(0x18e)](respondWithResult(_0x48a63e,0xc9))['catch'](handleError(_0x48a63e,null));},exports[a294_0x4e7092(0x16f)]=function(_0x2fb99a,_0xf3a630){const _0x36fd61=a294_0x4e7092;return _0x2fb99a[_0x36fd61(0x190)]['id']&&delete _0x2fb99a[_0x36fd61(0x190)]['id'],db['Dynamics365Configuration']['findOne']({'where':{'id':_0x2fb99a[_0x36fd61(0x15b)]['id']}})[_0x36fd61(0x18e)](handleEntityNotFound(_0xf3a630,null))[_0x36fd61(0x18e)](saveUpdates(_0x2fb99a[_0x36fd61(0x190)],null))[_0x36fd61(0x18e)](respondWithResult(_0xf3a630,null))[_0x36fd61(0x15c)](handleError(_0xf3a630,null));},exports[a294_0x4e7092(0x186)]=function(_0x969cfb,_0x5d931b){const _0x549db6=a294_0x4e7092;return db[_0x549db6(0x171)]['findOne']({'where':{'id':_0x969cfb[_0x549db6(0x15b)]['id']}})[_0x549db6(0x18e)](handleEntityNotFound(_0x5d931b,null))[_0x549db6(0x18e)](removeEntity(_0x5d931b,null))[_0x549db6(0x15c)](handleError(_0x5d931b,null));},exports[a294_0x4e7092(0x174)]=function(_0x171daf,_0x34b4bd){const _0x36ab6e=a294_0x4e7092;let _0x36fbd0={};const _0x559468={};let _0x1bab97,_0x567296;return db['Dynamics365Configuration']['findOne']({'where':{'id':_0x171daf[_0x36ab6e(0x15b)]['id']}})[_0x36ab6e(0x18e)](handleEntityNotFound(_0x34b4bd,null))[_0x36ab6e(0x18e)](function(_0x288a2f){const _0x10cc0f=_0x36ab6e;if(_0x288a2f)return _0x1bab97=_0x288a2f,_0x559468[_0x10cc0f(0x162)]=_[_0x10cc0f(0x175)](db['Dynamics365Field'][_0x10cc0f(0x172)]),_0x559468['query']=_[_0x10cc0f(0x175)](_0x171daf[_0x10cc0f(0x18f)]),_0x559468['filters']=_[_0x10cc0f(0x167)](_0x559468[_0x10cc0f(0x162)],_0x559468['query']),_0x36fbd0[_0x10cc0f(0x168)]=_[_0x10cc0f(0x167)](_0x559468['model'],qs['fields'](_0x171daf[_0x10cc0f(0x18f)][_0x10cc0f(0x17d)])),_0x36fbd0['attributes']=_0x36fbd0[_0x10cc0f(0x168)][_0x10cc0f(0x160)]?_0x36fbd0[_0x10cc0f(0x168)]:_0x559468[_0x10cc0f(0x162)],_0x36fbd0[_0x10cc0f(0x173)]=qs['sort'](_0x171daf['query'][_0x10cc0f(0x184)]),_0x36fbd0['where']=qs['filters'](_[_0x10cc0f(0x18c)](_0x171daf[_0x10cc0f(0x18f)],_0x559468[_0x10cc0f(0x17a)])),_0x171daf[_0x10cc0f(0x18f)]['filter']&&(_0x36fbd0[_0x10cc0f(0x179)]=_['merge'](_0x36fbd0['where'],{[Op['or']]:_[_0x10cc0f(0x15d)](_0x36fbd0['attributes'],function(_0x482cf2){const _0x5113eb=_0x10cc0f,_0x3dbfd2={};return _0x3dbfd2[_0x482cf2]={[Op[_0x5113eb(0x163)]]:'%'+_0x171daf[_0x5113eb(0x18f)][_0x5113eb(0x178)]+'%'},_0x3dbfd2;})})),_0x36fbd0=_[_0x10cc0f(0x164)]({},_0x36fbd0,_0x171daf[_0x10cc0f(0x16e)]),_0x1bab97[_0x10cc0f(0x174)](_0x36fbd0);})[_0x36ab6e(0x18e)](function(_0x3be134){const _0x443bcf=_0x36ab6e;if(_0x3be134)return _0x567296=_0x3be134[_0x443bcf(0x160)],typeof _0x171daf[_0x443bcf(0x18f)][_0x443bcf(0x188)]===_0x443bcf(0x15f)&&(_0x36fbd0[_0x443bcf(0x189)]=qs[_0x443bcf(0x189)](_0x171daf[_0x443bcf(0x18f)][_0x443bcf(0x189)]),_0x36fbd0[_0x443bcf(0x181)]=qs['offset'](_0x171daf[_0x443bcf(0x18f)]['offset'])),_0x1bab97[_0x443bcf(0x174)](_0x36fbd0);})[_0x36ab6e(0x18e)](function(_0x224915){if(_0x224915)return _0x224915?{'count':_0x567296,'rows':_0x224915}:null;})[_0x36ab6e(0x18e)](respondWithResult(_0x34b4bd,null))[_0x36ab6e(0x15c)](handleError(_0x34b4bd,null));},exports[a294_0x4e7092(0x17c)]=function(_0x1e61e5,_0x40a31e){const _0xa8687d=a294_0x4e7092;let _0x224289={};const _0x556fa8={};let _0x5e6f71,_0x4891c1;return db[_0xa8687d(0x171)][_0xa8687d(0x165)]({'where':{'id':_0x1e61e5['params']['id']}})[_0xa8687d(0x18e)](handleEntityNotFound(_0x40a31e,null))['then'](function(_0x185f7a){const _0x3e880b=_0xa8687d;if(_0x185f7a)return _0x5e6f71=_0x185f7a,_0x556fa8[_0x3e880b(0x162)]=_[_0x3e880b(0x175)](db[_0x3e880b(0x170)][_0x3e880b(0x172)]),_0x556fa8['query']=_[_0x3e880b(0x175)](_0x1e61e5[_0x3e880b(0x18f)]),_0x556fa8['filters']=_['intersection'](_0x556fa8[_0x3e880b(0x162)],_0x556fa8['query']),_0x224289[_0x3e880b(0x168)]=_[_0x3e880b(0x167)](_0x556fa8[_0x3e880b(0x162)],qs[_0x3e880b(0x17d)](_0x1e61e5['query'][_0x3e880b(0x17d)])),_0x224289[_0x3e880b(0x168)]=_0x224289[_0x3e880b(0x168)][_0x3e880b(0x160)]?_0x224289[_0x3e880b(0x168)]:_0x556fa8[_0x3e880b(0x162)],_0x224289[_0x3e880b(0x173)]=qs[_0x3e880b(0x184)](_0x1e61e5[_0x3e880b(0x18f)][_0x3e880b(0x184)]),_0x224289[_0x3e880b(0x179)]=qs[_0x3e880b(0x17a)](_[_0x3e880b(0x18c)](_0x1e61e5['query'],_0x556fa8['filters'])),_0x1e61e5[_0x3e880b(0x18f)][_0x3e880b(0x178)]&&(_0x224289[_0x3e880b(0x179)]=_[_0x3e880b(0x164)](_0x224289[_0x3e880b(0x179)],{[Op['or']]:_[_0x3e880b(0x15d)](_0x224289[_0x3e880b(0x168)],function(_0xa4582b){const _0x4a5465=_0x3e880b,_0x3981cf={};return _0x3981cf[_0xa4582b]={[Op[_0x4a5465(0x163)]]:'%'+_0x1e61e5[_0x4a5465(0x18f)][_0x4a5465(0x178)]+'%'},_0x3981cf;})})),_0x224289=_['merge']({},_0x224289,_0x1e61e5[_0x3e880b(0x16e)]),_0x5e6f71['getSubjects'](_0x224289);})[_0xa8687d(0x18e)](function(_0x2e3fcd){const _0x254ead=_0xa8687d;if(_0x2e3fcd)return _0x4891c1=_0x2e3fcd['length'],typeof _0x1e61e5['query'][_0x254ead(0x188)]===_0x254ead(0x15f)&&(_0x224289['limit']=qs[_0x254ead(0x189)](_0x1e61e5[_0x254ead(0x18f)][_0x254ead(0x189)]),_0x224289[_0x254ead(0x181)]=qs[_0x254ead(0x181)](_0x1e61e5[_0x254ead(0x18f)]['offset'])),_0x5e6f71[_0x254ead(0x17c)](_0x224289);})['then'](function(_0x81c2bb){if(_0x81c2bb)return _0x81c2bb?{'count':_0x4891c1,'rows':_0x81c2bb}:null;})['then'](respondWithResult(_0x40a31e,null))[_0xa8687d(0x15c)](handleError(_0x40a31e,null));},exports[a294_0x4e7092(0x17e)]=function(_0x14ab39,_0x19ca66){const _0x3f63de=a294_0x4e7092;let _0xb30a84={};const _0x324f25={};let _0x475c27,_0x9021c0;return db[_0x3f63de(0x171)][_0x3f63de(0x165)]({'where':{'id':_0x14ab39[_0x3f63de(0x15b)]['id']}})['then'](handleEntityNotFound(_0x19ca66,null))['then'](function(_0x2008df){const _0x39afba=_0x3f63de;if(_0x2008df)return _0x475c27=_0x2008df,_0x324f25[_0x39afba(0x162)]=_[_0x39afba(0x175)](db[_0x39afba(0x170)][_0x39afba(0x172)]),_0x324f25[_0x39afba(0x18f)]=_[_0x39afba(0x175)](_0x14ab39[_0x39afba(0x18f)]),_0x324f25[_0x39afba(0x17a)]=_['intersection'](_0x324f25[_0x39afba(0x162)],_0x324f25[_0x39afba(0x18f)]),_0xb30a84[_0x39afba(0x168)]=_[_0x39afba(0x167)](_0x324f25[_0x39afba(0x162)],qs[_0x39afba(0x17d)](_0x14ab39['query'][_0x39afba(0x17d)])),_0xb30a84['attributes']=_0xb30a84[_0x39afba(0x168)]['length']?_0xb30a84[_0x39afba(0x168)]:_0x324f25[_0x39afba(0x162)],_0xb30a84[_0x39afba(0x173)]=qs['sort'](_0x14ab39[_0x39afba(0x18f)][_0x39afba(0x184)]),_0xb30a84[_0x39afba(0x179)]=qs[_0x39afba(0x17a)](_[_0x39afba(0x18c)](_0x14ab39[_0x39afba(0x18f)],_0x324f25[_0x39afba(0x17a)])),_0x14ab39[_0x39afba(0x18f)]['filter']&&(_0xb30a84[_0x39afba(0x179)]=_[_0x39afba(0x164)](_0xb30a84[_0x39afba(0x179)],{[Op['or']]:_['map'](_0xb30a84[_0x39afba(0x168)],function(_0xffc01b){const _0x142aaf=_0x39afba,_0x1a4c19={};return _0x1a4c19[_0xffc01b]={[Op['like']]:'%'+_0x14ab39['query'][_0x142aaf(0x178)]+'%'},_0x1a4c19;})})),_0xb30a84=_[_0x39afba(0x164)]({},_0xb30a84,_0x14ab39[_0x39afba(0x16e)]),_0x475c27[_0x39afba(0x17e)](_0xb30a84);})[_0x3f63de(0x18e)](function(_0x37d95f){const _0x50bbb8=_0x3f63de;if(_0x37d95f)return _0x9021c0=_0x37d95f['length'],typeof _0x14ab39['query']['nolimit']===_0x50bbb8(0x15f)&&(_0xb30a84[_0x50bbb8(0x189)]=qs[_0x50bbb8(0x189)](_0x14ab39[_0x50bbb8(0x18f)]['limit']),_0xb30a84[_0x50bbb8(0x181)]=qs[_0x50bbb8(0x181)](_0x14ab39['query']['offset'])),_0x475c27[_0x50bbb8(0x17e)](_0xb30a84);})[_0x3f63de(0x18e)](function(_0x3a062c){if(_0x3a062c)return _0x3a062c?{'count':_0x9021c0,'rows':_0x3a062c}:null;})['then'](respondWithResult(_0x19ca66,null))[_0x3f63de(0x15c)](handleError(_0x19ca66,null));}; \ No newline at end of file +const a294_0x2171=['intersection','catch','Content-Range','create','Dynamics365Field','nolimit','keys','../../components/parsers/qs','getFields','filters','like','json','count','stack','api','error','status','query','where','body','filter','rawAttributes','Dynamics365Configuration','getDescriptions','sequelize','sort','limit','getSubjects','params','options','order','rows','update','fields','key','includeAll','undefined','merge','index','findOne','model','offset','map','include','length','pick','findAll','VIRTUAL','sendStatus','name','send','type','attributes','then'];(function(_0x4a9778,_0x15f63d){const _0x217146=function(_0x4c3e27){while(--_0x4c3e27){_0x4a9778['push'](_0x4a9778['shift']());}};_0x217146(++_0x15f63d);}(a294_0x2171,0xe2));const a294_0x4c3e=function(_0x4a9778,_0x15f63d){_0x4a9778=_0x4a9778-0x15d;let _0x217146=a294_0x2171[_0x4a9778];return _0x217146;};const a294_0x23385a=a294_0x4c3e;'use strict';const _=require('lodash'),qs=require(a294_0x23385a(0x190)),logger=require('../../config/logger')(a294_0x23385a(0x161)),{db}=require('../../mysqldb'),{Op}=require(a294_0x23385a(0x16b));function respondWithResult(_0x1df0cb,_0x173edf){return _0x173edf=_0x173edf||0xc8,function(_0x28f49c){const _0x4c14d3=a294_0x4c3e;if(_0x28f49c)return _0x1df0cb[_0x4c14d3(0x163)](_0x173edf)[_0x4c14d3(0x15e)](_0x28f49c);};}function respondWithFilteredResult(_0x372fc0,_0x5d80b1){return function(_0x4d94de){const _0x44de8b=a294_0x4c3e;if(_0x4d94de){const _0x2fa304=_0x4d94de[_0x44de8b(0x15f)],_0x45c7e5=_0x5d80b1[_0x44de8b(0x17c)];let _0x24ebae=_0x5d80b1['offset']+_0x5d80b1[_0x44de8b(0x16d)],_0x27947d;return _0x24ebae>=_0x2fa304?(_0x24ebae=_0x2fa304,_0x27947d=0xc8):_0x27947d=0xce,_0x372fc0[_0x44de8b(0x163)](_0x27947d),_0x372fc0['set'](_0x44de8b(0x18b),_0x45c7e5+'-'+_0x24ebae+'/'+_0x2fa304)['json'](_0x4d94de);}return null;};}function saveUpdates(_0xd8aaf1){return function(_0x17e248){const _0x1d794c=a294_0x4c3e;if(_0x17e248)return _0x17e248['update'](_0xd8aaf1)[_0x1d794c(0x188)](function(_0x738ddb){return _0x738ddb;});return null;};}function removeEntity(_0x274058){return function(_0x42290c){const _0x5d3c03=a294_0x4c3e;if(_0x42290c)return _0x42290c['destroy']()[_0x5d3c03(0x188)](function(){_0x274058['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x4d8dc3){return function(_0x409756){const _0x5eef11=a294_0x4c3e;return!_0x409756&&_0x4d8dc3[_0x5eef11(0x183)](0x194),_0x409756;};}function handleError(_0x2558d6,_0xb40c6d){return _0xb40c6d=_0xb40c6d||0x1f4,function(_0x3128a9){const _0x38ab2a=a294_0x4c3e;logger[_0x38ab2a(0x162)](_0x3128a9[_0x38ab2a(0x160)]),_0x3128a9[_0x38ab2a(0x184)]&&delete _0x3128a9[_0x38ab2a(0x184)],_0x2558d6['status'](_0xb40c6d)[_0x38ab2a(0x185)](_0x3128a9);};}exports[a294_0x23385a(0x179)]=function(_0x54b3f7,_0x49f6df){const _0x20714a=a294_0x23385a;let _0x4f8da6={};const _0x14194c={},_0x57231c={'count':0x0,'rows':[]},_0x2b67da=_[_0x20714a(0x17d)](db[_0x20714a(0x169)][_0x20714a(0x168)],function(_0x140a27){const _0x4eb87c=_0x20714a;return{'name':_0x140a27['fieldName'],'type':_0x140a27[_0x4eb87c(0x186)][_0x4eb87c(0x175)]};});_0x14194c['model']=_[_0x20714a(0x17d)](_0x2b67da,_0x20714a(0x184)),_0x14194c[_0x20714a(0x164)]=_[_0x20714a(0x18f)](_0x54b3f7['query']),_0x14194c[_0x20714a(0x192)]=_[_0x20714a(0x189)](_0x14194c[_0x20714a(0x17b)],_0x14194c['query']),_0x4f8da6[_0x20714a(0x187)]=_[_0x20714a(0x189)](_0x14194c['model'],qs['fields'](_0x54b3f7[_0x20714a(0x164)]['fields'])),_0x4f8da6[_0x20714a(0x187)]=_0x4f8da6[_0x20714a(0x187)][_0x20714a(0x17f)]?_0x4f8da6[_0x20714a(0x187)]:_0x14194c['model'];typeof _0x54b3f7[_0x20714a(0x164)]['nolimit']===_0x20714a(0x177)&&(_0x4f8da6['limit']=qs[_0x20714a(0x16d)](_0x54b3f7[_0x20714a(0x164)][_0x20714a(0x16d)]),_0x4f8da6[_0x20714a(0x17c)]=qs[_0x20714a(0x17c)](_0x54b3f7[_0x20714a(0x164)][_0x20714a(0x17c)]));_0x4f8da6['order']=qs['sort'](_0x54b3f7[_0x20714a(0x164)]['sort']),_0x4f8da6[_0x20714a(0x165)]=qs[_0x20714a(0x192)](_[_0x20714a(0x180)](_0x54b3f7[_0x20714a(0x164)],_0x14194c['filters']),_0x2b67da);_0x54b3f7['query'][_0x20714a(0x167)]&&(_0x4f8da6[_0x20714a(0x165)]=_[_0x20714a(0x178)](_0x4f8da6['where'],{[Op['or']]:_['map'](_0x2b67da,function(_0xd9133b){const _0x3e8464=_0x20714a;if(_0xd9133b[_0x3e8464(0x186)]!==_0x3e8464(0x182)){const _0x578ce9={};return _0x578ce9[_0xd9133b[_0x3e8464(0x184)]]={[Op[_0x3e8464(0x15d)]]:'%'+_0x54b3f7[_0x3e8464(0x164)][_0x3e8464(0x167)]+'%'},_0x578ce9;}})}));_0x4f8da6=_[_0x20714a(0x178)]({},_0x4f8da6,_0x54b3f7['options']);const _0x3a87f6={'where':_0x4f8da6[_0x20714a(0x165)]};return db['Dynamics365Configuration'][_0x20714a(0x15f)](_0x3a87f6)['then'](function(_0x1d90ea){const _0x44051a=_0x20714a;return _0x57231c[_0x44051a(0x15f)]=_0x1d90ea,_0x54b3f7[_0x44051a(0x164)]['includeAll']&&(_0x4f8da6[_0x44051a(0x17e)]=[{'all':!![]}]),db['Dynamics365Configuration'][_0x44051a(0x181)](_0x4f8da6);})['then'](function(_0x375fb6){const _0x31b3de=_0x20714a;return _0x57231c[_0x31b3de(0x172)]=_0x375fb6,_0x57231c;})[_0x20714a(0x188)](respondWithFilteredResult(_0x49f6df,_0x4f8da6))[_0x20714a(0x18a)](handleError(_0x49f6df,null));},exports['show']=function(_0x291b87,_0x5018e3){const _0x40d9e0=a294_0x23385a;let _0x41fab1={'raw':![],'where':{'id':_0x291b87['params']['id']}};const _0x5a4b99={};return _0x5a4b99['model']=_['keys'](db['Dynamics365Configuration']['rawAttributes']),_0x5a4b99[_0x40d9e0(0x164)]=_['keys'](_0x291b87[_0x40d9e0(0x164)]),_0x5a4b99[_0x40d9e0(0x192)]=_['intersection'](_0x5a4b99['model'],_0x5a4b99[_0x40d9e0(0x164)]),_0x41fab1[_0x40d9e0(0x187)]=_['intersection'](_0x5a4b99[_0x40d9e0(0x17b)],qs[_0x40d9e0(0x174)](_0x291b87[_0x40d9e0(0x164)][_0x40d9e0(0x174)])),_0x41fab1['attributes']=_0x41fab1[_0x40d9e0(0x187)][_0x40d9e0(0x17f)]?_0x41fab1['attributes']:_0x5a4b99[_0x40d9e0(0x17b)],_0x291b87[_0x40d9e0(0x164)][_0x40d9e0(0x176)]&&(_0x41fab1['include']=[{'all':!![]}]),_0x41fab1=_['merge']({},_0x41fab1,_0x291b87[_0x40d9e0(0x170)]),db['Dynamics365Configuration'][_0x40d9e0(0x17a)](_0x41fab1)[_0x40d9e0(0x188)](handleEntityNotFound(_0x5018e3,null))[_0x40d9e0(0x188)](respondWithResult(_0x5018e3,null))[_0x40d9e0(0x18a)](handleError(_0x5018e3,null));},exports[a294_0x23385a(0x18c)]=function(_0x24c2d5,_0x41e6d5){const _0x504c38=a294_0x23385a;return db[_0x504c38(0x169)]['create'](_0x24c2d5[_0x504c38(0x166)],{})[_0x504c38(0x188)](respondWithResult(_0x41e6d5,0xc9))[_0x504c38(0x18a)](handleError(_0x41e6d5,null));},exports[a294_0x23385a(0x173)]=function(_0x360a8b,_0x410e4a){const _0x18e0e9=a294_0x23385a;return _0x360a8b[_0x18e0e9(0x166)]['id']&&delete _0x360a8b[_0x18e0e9(0x166)]['id'],db[_0x18e0e9(0x169)][_0x18e0e9(0x17a)]({'where':{'id':_0x360a8b[_0x18e0e9(0x16f)]['id']}})[_0x18e0e9(0x188)](handleEntityNotFound(_0x410e4a,null))[_0x18e0e9(0x188)](saveUpdates(_0x360a8b['body'],null))[_0x18e0e9(0x188)](respondWithResult(_0x410e4a,null))[_0x18e0e9(0x18a)](handleError(_0x410e4a,null));},exports['destroy']=function(_0x10dbcb,_0x4bf45c){const _0x3c666f=a294_0x23385a;return db[_0x3c666f(0x169)]['findOne']({'where':{'id':_0x10dbcb[_0x3c666f(0x16f)]['id']}})['then'](handleEntityNotFound(_0x4bf45c,null))[_0x3c666f(0x188)](removeEntity(_0x4bf45c,null))[_0x3c666f(0x18a)](handleError(_0x4bf45c,null));},exports[a294_0x23385a(0x191)]=function(_0xbbf7aa,_0xda750e){const _0x1d562b=a294_0x23385a;let _0xe8ca14={};const _0x3cb77c={};let _0x35202c,_0x311084;return db[_0x1d562b(0x169)][_0x1d562b(0x17a)]({'where':{'id':_0xbbf7aa[_0x1d562b(0x16f)]['id']}})[_0x1d562b(0x188)](handleEntityNotFound(_0xda750e,null))['then'](function(_0x1fd654){const _0x34bf37=_0x1d562b;if(_0x1fd654)return _0x35202c=_0x1fd654,_0x3cb77c[_0x34bf37(0x17b)]=_[_0x34bf37(0x18f)](db[_0x34bf37(0x18d)][_0x34bf37(0x168)]),_0x3cb77c[_0x34bf37(0x164)]=_[_0x34bf37(0x18f)](_0xbbf7aa[_0x34bf37(0x164)]),_0x3cb77c[_0x34bf37(0x192)]=_[_0x34bf37(0x189)](_0x3cb77c[_0x34bf37(0x17b)],_0x3cb77c['query']),_0xe8ca14[_0x34bf37(0x187)]=_[_0x34bf37(0x189)](_0x3cb77c['model'],qs['fields'](_0xbbf7aa[_0x34bf37(0x164)][_0x34bf37(0x174)])),_0xe8ca14[_0x34bf37(0x187)]=_0xe8ca14[_0x34bf37(0x187)][_0x34bf37(0x17f)]?_0xe8ca14[_0x34bf37(0x187)]:_0x3cb77c[_0x34bf37(0x17b)],_0xe8ca14[_0x34bf37(0x171)]=qs[_0x34bf37(0x16c)](_0xbbf7aa[_0x34bf37(0x164)]['sort']),_0xe8ca14[_0x34bf37(0x165)]=qs[_0x34bf37(0x192)](_['pick'](_0xbbf7aa['query'],_0x3cb77c[_0x34bf37(0x192)])),_0xbbf7aa['query'][_0x34bf37(0x167)]&&(_0xe8ca14[_0x34bf37(0x165)]=_['merge'](_0xe8ca14[_0x34bf37(0x165)],{[Op['or']]:_[_0x34bf37(0x17d)](_0xe8ca14[_0x34bf37(0x187)],function(_0x119e09){const _0x4c6279={};return _0x4c6279[_0x119e09]={[Op['like']]:'%'+_0xbbf7aa['query']['filter']+'%'},_0x4c6279;})})),_0xe8ca14=_[_0x34bf37(0x178)]({},_0xe8ca14,_0xbbf7aa[_0x34bf37(0x170)]),_0x35202c['getFields'](_0xe8ca14);})['then'](function(_0x5d1c55){const _0x24d923=_0x1d562b;if(_0x5d1c55)return _0x311084=_0x5d1c55['length'],typeof _0xbbf7aa['query'][_0x24d923(0x18e)]===_0x24d923(0x177)&&(_0xe8ca14[_0x24d923(0x16d)]=qs['limit'](_0xbbf7aa[_0x24d923(0x164)][_0x24d923(0x16d)]),_0xe8ca14[_0x24d923(0x17c)]=qs['offset'](_0xbbf7aa['query']['offset'])),_0x35202c[_0x24d923(0x191)](_0xe8ca14);})['then'](function(_0x18d77){if(_0x18d77)return _0x18d77?{'count':_0x311084,'rows':_0x18d77}:null;})[_0x1d562b(0x188)](respondWithResult(_0xda750e,null))['catch'](handleError(_0xda750e,null));},exports[a294_0x23385a(0x16e)]=function(_0x28670,_0x441b65){const _0x3bbdc6=a294_0x23385a;let _0x333d0f={};const _0x4dadda={};let _0x5ee563,_0x8d0a3e;return db['Dynamics365Configuration'][_0x3bbdc6(0x17a)]({'where':{'id':_0x28670['params']['id']}})['then'](handleEntityNotFound(_0x441b65,null))['then'](function(_0x3c6c35){const _0x399ec3=_0x3bbdc6;if(_0x3c6c35)return _0x5ee563=_0x3c6c35,_0x4dadda[_0x399ec3(0x17b)]=_[_0x399ec3(0x18f)](db[_0x399ec3(0x18d)][_0x399ec3(0x168)]),_0x4dadda[_0x399ec3(0x164)]=_['keys'](_0x28670[_0x399ec3(0x164)]),_0x4dadda[_0x399ec3(0x192)]=_[_0x399ec3(0x189)](_0x4dadda[_0x399ec3(0x17b)],_0x4dadda[_0x399ec3(0x164)]),_0x333d0f[_0x399ec3(0x187)]=_[_0x399ec3(0x189)](_0x4dadda[_0x399ec3(0x17b)],qs['fields'](_0x28670['query']['fields'])),_0x333d0f[_0x399ec3(0x187)]=_0x333d0f[_0x399ec3(0x187)][_0x399ec3(0x17f)]?_0x333d0f[_0x399ec3(0x187)]:_0x4dadda[_0x399ec3(0x17b)],_0x333d0f[_0x399ec3(0x171)]=qs[_0x399ec3(0x16c)](_0x28670['query']['sort']),_0x333d0f[_0x399ec3(0x165)]=qs[_0x399ec3(0x192)](_[_0x399ec3(0x180)](_0x28670[_0x399ec3(0x164)],_0x4dadda['filters'])),_0x28670[_0x399ec3(0x164)][_0x399ec3(0x167)]&&(_0x333d0f[_0x399ec3(0x165)]=_['merge'](_0x333d0f[_0x399ec3(0x165)],{[Op['or']]:_[_0x399ec3(0x17d)](_0x333d0f[_0x399ec3(0x187)],function(_0x5a80cf){const _0x531327=_0x399ec3,_0x6bca06={};return _0x6bca06[_0x5a80cf]={[Op['like']]:'%'+_0x28670[_0x531327(0x164)][_0x531327(0x167)]+'%'},_0x6bca06;})})),_0x333d0f=_[_0x399ec3(0x178)]({},_0x333d0f,_0x28670['options']),_0x5ee563[_0x399ec3(0x16e)](_0x333d0f);})[_0x3bbdc6(0x188)](function(_0x149048){const _0x390de8=_0x3bbdc6;if(_0x149048)return _0x8d0a3e=_0x149048[_0x390de8(0x17f)],typeof _0x28670[_0x390de8(0x164)][_0x390de8(0x18e)]==='undefined'&&(_0x333d0f[_0x390de8(0x16d)]=qs[_0x390de8(0x16d)](_0x28670[_0x390de8(0x164)][_0x390de8(0x16d)]),_0x333d0f[_0x390de8(0x17c)]=qs[_0x390de8(0x17c)](_0x28670[_0x390de8(0x164)][_0x390de8(0x17c)])),_0x5ee563['getSubjects'](_0x333d0f);})[_0x3bbdc6(0x188)](function(_0x56f2d6){if(_0x56f2d6)return _0x56f2d6?{'count':_0x8d0a3e,'rows':_0x56f2d6}:null;})[_0x3bbdc6(0x188)](respondWithResult(_0x441b65,null))['catch'](handleError(_0x441b65,null));},exports['getDescriptions']=function(_0x36f915,_0x3d9cbc){const _0x56036d=a294_0x23385a;let _0x51f370={};const _0x25f85={};let _0x33c9fc,_0x3b97bd;return db[_0x56036d(0x169)]['findOne']({'where':{'id':_0x36f915[_0x56036d(0x16f)]['id']}})['then'](handleEntityNotFound(_0x3d9cbc,null))[_0x56036d(0x188)](function(_0x32aa0f){const _0x526116=_0x56036d;if(_0x32aa0f)return _0x33c9fc=_0x32aa0f,_0x25f85[_0x526116(0x17b)]=_[_0x526116(0x18f)](db['Dynamics365Field'][_0x526116(0x168)]),_0x25f85[_0x526116(0x164)]=_['keys'](_0x36f915[_0x526116(0x164)]),_0x25f85['filters']=_['intersection'](_0x25f85[_0x526116(0x17b)],_0x25f85[_0x526116(0x164)]),_0x51f370[_0x526116(0x187)]=_['intersection'](_0x25f85[_0x526116(0x17b)],qs['fields'](_0x36f915['query'][_0x526116(0x174)])),_0x51f370[_0x526116(0x187)]=_0x51f370['attributes'][_0x526116(0x17f)]?_0x51f370[_0x526116(0x187)]:_0x25f85['model'],_0x51f370['order']=qs[_0x526116(0x16c)](_0x36f915[_0x526116(0x164)][_0x526116(0x16c)]),_0x51f370[_0x526116(0x165)]=qs[_0x526116(0x192)](_[_0x526116(0x180)](_0x36f915['query'],_0x25f85[_0x526116(0x192)])),_0x36f915['query'][_0x526116(0x167)]&&(_0x51f370[_0x526116(0x165)]=_[_0x526116(0x178)](_0x51f370[_0x526116(0x165)],{[Op['or']]:_[_0x526116(0x17d)](_0x51f370[_0x526116(0x187)],function(_0xbd108e){const _0x4cba35=_0x526116,_0xabf1cc={};return _0xabf1cc[_0xbd108e]={[Op[_0x4cba35(0x15d)]]:'%'+_0x36f915[_0x4cba35(0x164)][_0x4cba35(0x167)]+'%'},_0xabf1cc;})})),_0x51f370=_['merge']({},_0x51f370,_0x36f915[_0x526116(0x170)]),_0x33c9fc[_0x526116(0x16a)](_0x51f370);})[_0x56036d(0x188)](function(_0x715999){const _0x3b2381=_0x56036d;if(_0x715999)return _0x3b97bd=_0x715999[_0x3b2381(0x17f)],typeof _0x36f915['query'][_0x3b2381(0x18e)]==='undefined'&&(_0x51f370[_0x3b2381(0x16d)]=qs[_0x3b2381(0x16d)](_0x36f915[_0x3b2381(0x164)]['limit']),_0x51f370[_0x3b2381(0x17c)]=qs[_0x3b2381(0x17c)](_0x36f915[_0x3b2381(0x164)]['offset'])),_0x33c9fc[_0x3b2381(0x16a)](_0x51f370);})[_0x56036d(0x188)](function(_0x2707c3){if(_0x2707c3)return _0x2707c3?{'count':_0x3b97bd,'rows':_0x2707c3}:null;})[_0x56036d(0x188)](respondWithResult(_0x3d9cbc,null))[_0x56036d(0x18a)](handleError(_0x3d9cbc,null));}; \ No newline at end of file diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js index 77756d6..9d75833 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js @@ -1 +1 @@ -const a295_0x2d64=['function','sequelize','init','./intDynamics365Configuration.attributes','./intDynamics365Configuration.options','Dynamics365Configuration','exports'];(function(_0x50045a,_0x447bad){const _0x2d6412=function(_0xb11904){while(--_0xb11904){_0x50045a['push'](_0x50045a['shift']());}};_0x2d6412(++_0x447bad);}(a295_0x2d64,0xe8));const a295_0xb119=function(_0x50045a,_0x447bad){_0x50045a=_0x50045a-0x160;let _0x2d6412=a295_0x2d64[_0x50045a];return _0x2d6412;};const a295_0x1f9aa8=a295_0xb119;'use strict';const {Model}=require(a295_0x1f9aa8(0x160)),{attributes}=require(a295_0x1f9aa8(0x162)),{options}=require(a295_0x1f9aa8(0x163));class Dynamics365Configuration extends Model{}function init(_0x373fb6,_0x57bef5){const _0x5eaefb=a295_0x1f9aa8,_0x551569=options(_0x373fb6),_0x580f33=typeof _0x57bef5===_0x5eaefb(0x166)?_0x57bef5(_0x551569):_0x551569;return Dynamics365Configuration[_0x5eaefb(0x161)](attributes,_0x580f33),Dynamics365Configuration;}module[a295_0x1f9aa8(0x165)][a295_0x1f9aa8(0x164)]=Dynamics365Configuration,module[a295_0x1f9aa8(0x165)][a295_0x1f9aa8(0x161)]=init; \ No newline at end of file +const a295_0x32ed=['exports','Dynamics365Configuration','./intDynamics365Configuration.options','./intDynamics365Configuration.attributes','init','sequelize'];(function(_0x3240e8,_0x40311a){const _0x32edaa=function(_0x41ae11){while(--_0x41ae11){_0x3240e8['push'](_0x3240e8['shift']());}};_0x32edaa(++_0x40311a);}(a295_0x32ed,0xd8));const a295_0x41ae=function(_0x3240e8,_0x40311a){_0x3240e8=_0x3240e8-0x1b4;let _0x32edaa=a295_0x32ed[_0x3240e8];return _0x32edaa;};const a295_0x30d884=a295_0x41ae;'use strict';const {Model}=require(a295_0x30d884(0x1b9)),{attributes}=require(a295_0x30d884(0x1b7)),{options}=require(a295_0x30d884(0x1b6));class Dynamics365Configuration extends Model{}function init(_0x509565,_0x971366){const _0x39f1b2=a295_0x30d884,_0x31bcdc=options(_0x509565),_0x1da7f4=typeof _0x971366==='function'?_0x971366(_0x31bcdc):_0x31bcdc;return Dynamics365Configuration[_0x39f1b2(0x1b8)](attributes,_0x1da7f4),Dynamics365Configuration;}module[a295_0x30d884(0x1b4)][a295_0x30d884(0x1b5)]=Dynamics365Configuration,module[a295_0x30d884(0x1b4)][a295_0x30d884(0x1b8)]=init; \ No newline at end of file diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.options.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.options.js index bcf8a56..61bf624 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.options.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.options.js @@ -1 +1 @@ -var a296_0x506d=['options','exports','int_dynamics365_configurations'];(function(_0x38d287,_0x3544d1){var _0x506dd8=function(_0x1263e2){while(--_0x1263e2){_0x38d287['push'](_0x38d287['shift']());}};_0x506dd8(++_0x3544d1);}(a296_0x506d,0x14d));var a296_0x1263=function(_0x38d287,_0x3544d1){_0x38d287=_0x38d287-0x15c;var _0x506dd8=a296_0x506d[_0x38d287];return _0x506dd8;};var a296_0x379ee0=a296_0x1263;function options(_0x395267){var _0x570929=a296_0x1263;return{'sequelize':_0x395267,'tableName':_0x570929(0x15e),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a296_0x379ee0(0x15d)][a296_0x379ee0(0x15c)]=options; \ No newline at end of file +var a296_0xa3ba=['options','int_dynamics365_configurations'];(function(_0x2d0c10,_0x2ecc16){var _0xa3ba6a=function(_0xe7f7cf){while(--_0xe7f7cf){_0x2d0c10['push'](_0x2d0c10['shift']());}};_0xa3ba6a(++_0x2ecc16);}(a296_0xa3ba,0x9b));var a296_0xe7f7=function(_0x2d0c10,_0x2ecc16){_0x2d0c10=_0x2d0c10-0x64;var _0xa3ba6a=a296_0xa3ba[_0x2d0c10];return _0xa3ba6a;};var a296_0x45731f=a296_0xe7f7;function options(_0x41e67){var _0x1a57df=a296_0xe7f7;return{'sequelize':_0x41e67,'tableName':_0x1a57df(0x64),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a296_0x45731f(0x65)]=options; \ No newline at end of file diff --git a/server/api/intDynamics365Field/index.js b/server/api/intDynamics365Field/index.js index f580dd3..0709a4f 100644 --- a/server/api/intDynamics365Field/index.js +++ b/server/api/intDynamics365Field/index.js @@ -1 +1 @@ -const a297_0x2e89=['/:id','./intDynamics365Field.controller','express','put','show','post','index','update','exports','Router','create','isAuthenticated','get'];(function(_0xba8ba9,_0xcd072e){const _0x2e8974=function(_0x401a32){while(--_0x401a32){_0xba8ba9['push'](_0xba8ba9['shift']());}};_0x2e8974(++_0xcd072e);}(a297_0x2e89,0xe8));const a297_0x401a=function(_0xba8ba9,_0xcd072e){_0xba8ba9=_0xba8ba9-0x14d;let _0x2e8974=a297_0x2e89[_0xba8ba9];return _0x2e8974;};const a297_0x2de71e=a297_0x401a;'use strict';const express=require(a297_0x2de71e(0x151)),router=express[a297_0x2de71e(0x158)](),auth=require('../../components/auth/service'),controller=require(a297_0x2de71e(0x150));router[a297_0x2de71e(0x14e)]('/',auth['isAuthenticated'](),controller[a297_0x2de71e(0x155)]),router[a297_0x2de71e(0x14e)]('/:id',auth['isAuthenticated'](),controller[a297_0x2de71e(0x153)]),router[a297_0x2de71e(0x154)]('/',auth[a297_0x2de71e(0x14d)](),controller[a297_0x2de71e(0x159)]),router[a297_0x2de71e(0x152)]('/:id',auth['isAuthenticated'](),controller[a297_0x2de71e(0x156)]),router['delete'](a297_0x2de71e(0x14f),auth[a297_0x2de71e(0x14d)](),controller['destroy']),module[a297_0x2de71e(0x157)]=router; \ No newline at end of file +const a297_0x51bb=['post','update','isAuthenticated','delete','./intDynamics365Field.controller','../../components/auth/service','express','get','/:id','index'];(function(_0x3b1237,_0x56894d){const _0x51bbc=function(_0x3a9222){while(--_0x3a9222){_0x3b1237['push'](_0x3b1237['shift']());}};_0x51bbc(++_0x56894d);}(a297_0x51bb,0xa6));const a297_0x3a92=function(_0x3b1237,_0x56894d){_0x3b1237=_0x3b1237-0x180;let _0x51bbc=a297_0x51bb[_0x3b1237];return _0x51bbc;};const a297_0x25aa4c=a297_0x3a92;'use strict';const express=require(a297_0x25aa4c(0x180)),router=express['Router'](),auth=require(a297_0x25aa4c(0x189)),controller=require(a297_0x25aa4c(0x188));router['get']('/',auth[a297_0x25aa4c(0x186)](),controller[a297_0x25aa4c(0x183)]),router[a297_0x25aa4c(0x181)](a297_0x25aa4c(0x182),auth[a297_0x25aa4c(0x186)](),controller['show']),router[a297_0x25aa4c(0x184)]('/',auth[a297_0x25aa4c(0x186)](),controller['create']),router['put']('/:id',auth[a297_0x25aa4c(0x186)](),controller[a297_0x25aa4c(0x185)]),router[a297_0x25aa4c(0x187)](a297_0x25aa4c(0x182),auth[a297_0x25aa4c(0x186)](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/intDynamics365Field/intDynamics365Field.attributes.js b/server/api/intDynamics365Field/intDynamics365Field.attributes.js index 4329c83..25e8ea5 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.attributes.js +++ b/server/api/intDynamics365Field/intDynamics365Field.attributes.js @@ -1 +1 @@ -const a298_0x1a8d=['sequelize','customVariable','string','STRING','variable','ENUM'];(function(_0x214bf6,_0x59ad69){const _0x1a8d07=function(_0x59eab4){while(--_0x59eab4){_0x214bf6['push'](_0x214bf6['shift']());}};_0x1a8d07(++_0x59ad69);}(a298_0x1a8d,0x101));const a298_0x59ea=function(_0x214bf6,_0x59ad69){_0x214bf6=_0x214bf6-0x12e;let _0x1a8d07=a298_0x1a8d[_0x214bf6];return _0x1a8d07;};const a298_0x36d983=a298_0x59ea;'use strict';const {DataTypes}=require(a298_0x36d983(0x12f)),attributes={'type':{'type':DataTypes[a298_0x36d983(0x12e)]('string',a298_0x36d983(0x133),'customVariable','keyValue'),'defaultValue':a298_0x36d983(0x131)},'content':{'type':DataTypes[a298_0x36d983(0x132)]},'key':{'type':DataTypes[a298_0x36d983(0x132)]},'keyType':{'type':DataTypes[a298_0x36d983(0x12e)](a298_0x36d983(0x131),'variable',a298_0x36d983(0x130))},'keyContent':{'type':DataTypes[a298_0x36d983(0x132)]},'idField':{'type':DataTypes['STRING']},'nameField':{'type':DataTypes[a298_0x36d983(0x132)]},'customField':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':DataTypes['STRING']}};module['exports']['attributes']=attributes; \ No newline at end of file +const a298_0x24f3=['BOOLEAN','ENUM','exports','sequelize','variable','attributes','customVariable','STRING','string','keyValue'];(function(_0x5330b8,_0x5b51f4){const _0x24f345=function(_0x4073f6){while(--_0x4073f6){_0x5330b8['push'](_0x5330b8['shift']());}};_0x24f345(++_0x5b51f4);}(a298_0x24f3,0x11c));const a298_0x4073=function(_0x5330b8,_0x5b51f4){_0x5330b8=_0x5330b8-0x1d0;let _0x24f345=a298_0x24f3[_0x5330b8];return _0x24f345;};const a298_0x12b5a6=a298_0x4073;'use strict';const {DataTypes}=require(a298_0x12b5a6(0x1d9)),attributes={'type':{'type':DataTypes[a298_0x12b5a6(0x1d7)](a298_0x12b5a6(0x1d4),a298_0x12b5a6(0x1d0),'customVariable',a298_0x12b5a6(0x1d5)),'defaultValue':a298_0x12b5a6(0x1d4)},'content':{'type':DataTypes[a298_0x12b5a6(0x1d3)]},'key':{'type':DataTypes[a298_0x12b5a6(0x1d3)]},'keyType':{'type':DataTypes['ENUM']('string',a298_0x12b5a6(0x1d0),a298_0x12b5a6(0x1d2))},'keyContent':{'type':DataTypes[a298_0x12b5a6(0x1d3)]},'idField':{'type':DataTypes['STRING']},'nameField':{'type':DataTypes[a298_0x12b5a6(0x1d3)]},'customField':{'type':DataTypes[a298_0x12b5a6(0x1d6)],'defaultValue':!![]},'variableName':{'type':DataTypes['STRING']}};module[a298_0x12b5a6(0x1d8)][a298_0x12b5a6(0x1d1)]=attributes; \ No newline at end of file diff --git a/server/api/intDynamics365Field/intDynamics365Field.controller.js b/server/api/intDynamics365Field/intDynamics365Field.controller.js index 1ba9a0c..30227e1 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.controller.js +++ b/server/api/intDynamics365Field/intDynamics365Field.controller.js @@ -1 +1 @@ -const a299_0x54e1=['attributes','VIRTUAL','merge','fields','length','update','findOne','body','keys','../../components/parsers/qs','../../config/logger','model','count','api','includeAll','options','sendStatus','pick','sequelize','intersection','Content-Range','filters','include','map','catch','query','where','Dynamics365Field','filter','json','rawAttributes','index','lodash','key','rows','../../mysqldb','order','create','error','status','limit','name','fieldName','offset','type','send','set','then','sort','destroy','like'];(function(_0x7af3de,_0x582ed8){const _0x54e116=function(_0x3f26a5){while(--_0x3f26a5){_0x7af3de['push'](_0x7af3de['shift']());}};_0x54e116(++_0x582ed8);}(a299_0x54e1,0x125));const a299_0x3f26=function(_0x7af3de,_0x582ed8){_0x7af3de=_0x7af3de-0xae;let _0x54e116=a299_0x54e1[_0x7af3de];return _0x54e116;};const a299_0x14953b=a299_0x3f26;'use strict';const _=require(a299_0x14953b(0xdb)),qs=require(a299_0x14953b(0xc4)),logger=require(a299_0x14953b(0xc5))(a299_0x14953b(0xc8)),{db}=require(a299_0x14953b(0xde)),{Op}=require(a299_0x14953b(0xcd));function respondWithResult(_0x458422,_0x23ec1a){return _0x23ec1a=_0x23ec1a||0xc8,function(_0xffa9ba){const _0x4115cf=a299_0x3f26;if(_0xffa9ba)return _0x458422['status'](_0x23ec1a)[_0x4115cf(0xd8)](_0xffa9ba);};}function respondWithFilteredResult(_0x3e2743,_0x5e4b6f){return function(_0x77dac8){const _0x41464b=a299_0x3f26;if(_0x77dac8){const _0x510cf7=_0x77dac8[_0x41464b(0xc7)],_0x45861b=_0x5e4b6f[_0x41464b(0xb3)];let _0x4bc640=_0x5e4b6f['offset']+_0x5e4b6f[_0x41464b(0xb0)],_0x364996;return _0x4bc640>=_0x510cf7?(_0x4bc640=_0x510cf7,_0x364996=0xc8):_0x364996=0xce,_0x3e2743['status'](_0x364996),_0x3e2743[_0x41464b(0xb6)](_0x41464b(0xcf),_0x45861b+'-'+_0x4bc640+'/'+_0x510cf7)[_0x41464b(0xd8)](_0x77dac8);}return null;};}function saveUpdates(_0x27b923){return function(_0x19beeb){const _0x1f4975=a299_0x3f26;if(_0x19beeb)return _0x19beeb[_0x1f4975(0xc0)](_0x27b923)[_0x1f4975(0xb7)](function(_0x27b09b){return _0x27b09b;});return null;};}function removeEntity(_0x460b51){return function(_0x287d4e){const _0x3e214b=a299_0x3f26;if(_0x287d4e)return _0x287d4e[_0x3e214b(0xb9)]()[_0x3e214b(0xb7)](function(){const _0x2aadec=_0x3e214b;_0x460b51[_0x2aadec(0xaf)](0xcc)['end']();});};}function handleEntityNotFound(_0x296bfe){return function(_0x51b614){const _0xf0a388=a299_0x3f26;return!_0x51b614&&_0x296bfe[_0xf0a388(0xcb)](0x194),_0x51b614;};}function handleError(_0x3ac8e7,_0x399d89){return _0x399d89=_0x399d89||0x1f4,function(_0x53a66c){const _0x167449=a299_0x3f26;logger[_0x167449(0xae)](_0x53a66c['stack']),_0x53a66c[_0x167449(0xb1)]&&delete _0x53a66c['name'],_0x3ac8e7[_0x167449(0xaf)](_0x399d89)[_0x167449(0xb5)](_0x53a66c);};}exports[a299_0x14953b(0xda)]=function(_0x58ed6b,_0x4870ff){const _0x29c747=a299_0x14953b;let _0x583ba6={};const _0x173e63={},_0x2e59ca={'count':0x0,'rows':[]},_0x3c5c83=_[_0x29c747(0xd2)](db[_0x29c747(0xd6)][_0x29c747(0xd9)],function(_0x540c46){const _0x424837=_0x29c747;return{'name':_0x540c46[_0x424837(0xb2)],'type':_0x540c46[_0x424837(0xb4)][_0x424837(0xdc)]};});_0x173e63[_0x29c747(0xc6)]=_[_0x29c747(0xd2)](_0x3c5c83,_0x29c747(0xb1)),_0x173e63[_0x29c747(0xd4)]=_['keys'](_0x58ed6b[_0x29c747(0xd4)]),_0x173e63[_0x29c747(0xd0)]=_[_0x29c747(0xce)](_0x173e63[_0x29c747(0xc6)],_0x173e63['query']),_0x583ba6[_0x29c747(0xbb)]=_[_0x29c747(0xce)](_0x173e63[_0x29c747(0xc6)],qs[_0x29c747(0xbe)](_0x58ed6b[_0x29c747(0xd4)][_0x29c747(0xbe)])),_0x583ba6[_0x29c747(0xbb)]=_0x583ba6['attributes'][_0x29c747(0xbf)]?_0x583ba6[_0x29c747(0xbb)]:_0x173e63[_0x29c747(0xc6)];typeof _0x58ed6b[_0x29c747(0xd4)]['nolimit']==='undefined'&&(_0x583ba6[_0x29c747(0xb0)]=qs[_0x29c747(0xb0)](_0x58ed6b['query'][_0x29c747(0xb0)]),_0x583ba6['offset']=qs[_0x29c747(0xb3)](_0x58ed6b[_0x29c747(0xd4)][_0x29c747(0xb3)]));_0x583ba6[_0x29c747(0xdf)]=qs[_0x29c747(0xb8)](_0x58ed6b['query'][_0x29c747(0xb8)]),_0x583ba6[_0x29c747(0xd5)]=qs['filters'](_[_0x29c747(0xcc)](_0x58ed6b[_0x29c747(0xd4)],_0x173e63['filters']),_0x3c5c83);_0x58ed6b[_0x29c747(0xd4)]['filter']&&(_0x583ba6[_0x29c747(0xd5)]=_['merge'](_0x583ba6[_0x29c747(0xd5)],{[Op['or']]:_[_0x29c747(0xd2)](_0x3c5c83,function(_0x35a610){const _0x32b544=_0x29c747;if(_0x35a610[_0x32b544(0xb4)]!==_0x32b544(0xbc)){const _0x17fced={};return _0x17fced[_0x35a610['name']]={[Op[_0x32b544(0xba)]]:'%'+_0x58ed6b['query'][_0x32b544(0xd7)]+'%'},_0x17fced;}})}));_0x583ba6=_[_0x29c747(0xbd)]({},_0x583ba6,_0x58ed6b[_0x29c747(0xca)]);const _0x3b5a69={'where':_0x583ba6[_0x29c747(0xd5)]};return db[_0x29c747(0xd6)]['count'](_0x3b5a69)[_0x29c747(0xb7)](function(_0x2015ec){const _0x4f5276=_0x29c747;return _0x2e59ca[_0x4f5276(0xc7)]=_0x2015ec,_0x58ed6b[_0x4f5276(0xd4)][_0x4f5276(0xc9)]&&(_0x583ba6['include']=[{'all':!![]}]),db[_0x4f5276(0xd6)]['findAll'](_0x583ba6);})[_0x29c747(0xb7)](function(_0x5186c8){const _0x18f076=_0x29c747;return _0x2e59ca[_0x18f076(0xdd)]=_0x5186c8,_0x2e59ca;})[_0x29c747(0xb7)](respondWithFilteredResult(_0x4870ff,_0x583ba6))[_0x29c747(0xd3)](handleError(_0x4870ff,null));},exports['show']=function(_0x197e75,_0x5852d5){const _0x508852=a299_0x14953b;let _0x1284fb={'raw':!![],'where':{'id':_0x197e75['params']['id']}};const _0x385547={};return _0x385547[_0x508852(0xc6)]=_[_0x508852(0xc3)](db[_0x508852(0xd6)][_0x508852(0xd9)]),_0x385547['query']=_['keys'](_0x197e75['query']),_0x385547['filters']=_['intersection'](_0x385547[_0x508852(0xc6)],_0x385547[_0x508852(0xd4)]),_0x1284fb[_0x508852(0xbb)]=_[_0x508852(0xce)](_0x385547['model'],qs[_0x508852(0xbe)](_0x197e75[_0x508852(0xd4)]['fields'])),_0x1284fb[_0x508852(0xbb)]=_0x1284fb[_0x508852(0xbb)]['length']?_0x1284fb[_0x508852(0xbb)]:_0x385547[_0x508852(0xc6)],_0x197e75[_0x508852(0xd4)][_0x508852(0xc9)]&&(_0x1284fb[_0x508852(0xd1)]=[{'all':!![]}]),_0x1284fb=_[_0x508852(0xbd)]({},_0x1284fb,_0x197e75[_0x508852(0xca)]),db[_0x508852(0xd6)][_0x508852(0xc1)](_0x1284fb)[_0x508852(0xb7)](handleEntityNotFound(_0x5852d5,null))[_0x508852(0xb7)](respondWithResult(_0x5852d5,null))[_0x508852(0xd3)](handleError(_0x5852d5,null));},exports[a299_0x14953b(0xe0)]=function(_0x1afe69,_0x4d26e9){const _0x41ff8a=a299_0x14953b;return db[_0x41ff8a(0xd6)]['create'](_0x1afe69[_0x41ff8a(0xc2)],{})[_0x41ff8a(0xb7)](respondWithResult(_0x4d26e9,0xc9))[_0x41ff8a(0xd3)](handleError(_0x4d26e9,null));},exports[a299_0x14953b(0xc0)]=function(_0x269b91,_0x3f78ae){const _0x1a4986=a299_0x14953b;return _0x269b91[_0x1a4986(0xc2)]['id']&&delete _0x269b91[_0x1a4986(0xc2)]['id'],db[_0x1a4986(0xd6)][_0x1a4986(0xc1)]({'where':{'id':_0x269b91['params']['id']}})[_0x1a4986(0xb7)](handleEntityNotFound(_0x3f78ae,null))[_0x1a4986(0xb7)](saveUpdates(_0x269b91[_0x1a4986(0xc2)],null))[_0x1a4986(0xb7)](respondWithResult(_0x3f78ae,null))[_0x1a4986(0xd3)](handleError(_0x3f78ae,null));},exports[a299_0x14953b(0xb9)]=function(_0x3993b2,_0x55ee25){const _0x5952e9=a299_0x14953b;return db[_0x5952e9(0xd6)][_0x5952e9(0xc1)]({'where':{'id':_0x3993b2['params']['id']}})['then'](handleEntityNotFound(_0x55ee25,null))[_0x5952e9(0xb7)](removeEntity(_0x55ee25,null))[_0x5952e9(0xd3)](handleError(_0x55ee25,null));}; \ No newline at end of file +const a299_0x1f62=['Content-Range','options','destroy','limit','../../components/parsers/qs','Dynamics365Field','model','order','../../config/logger','json','show','sort','offset','findOne','body','catch','length','rawAttributes','keys','../../mysqldb','rows','attributes','then','findAll','like','create','count','name','sequelize','filters','status','end','query','send','include','index','fields','merge','api','VIRTUAL','where','filter','stack','intersection','type','fieldName','undefined','key','update','error'];(function(_0x10f9c0,_0x1639f3){const _0x1f6245=function(_0x349788){while(--_0x349788){_0x10f9c0['push'](_0x10f9c0['shift']());}};_0x1f6245(++_0x1639f3);}(a299_0x1f62,0x6c));const a299_0x3497=function(_0x10f9c0,_0x1639f3){_0x10f9c0=_0x10f9c0-0x1b0;let _0x1f6245=a299_0x1f62[_0x10f9c0];return _0x1f6245;};const a299_0x1d3aa7=a299_0x3497;'use strict';const _=require('lodash'),qs=require(a299_0x1d3aa7(0x1de)),logger=require(a299_0x1d3aa7(0x1b0))(a299_0x1d3aa7(0x1ce)),{db}=require(a299_0x1d3aa7(0x1bb)),{Op}=require(a299_0x1d3aa7(0x1c4));function respondWithResult(_0x48a125,_0x57afab){return _0x57afab=_0x57afab||0xc8,function(_0x1537e4){const _0x5a3851=a299_0x3497;if(_0x1537e4)return _0x48a125[_0x5a3851(0x1c6)](_0x57afab)[_0x5a3851(0x1b1)](_0x1537e4);};}function respondWithFilteredResult(_0x28488c,_0x2633d9){return function(_0x3e1ddd){const _0x4245b2=a299_0x3497;if(_0x3e1ddd){const _0x475e98=_0x3e1ddd['count'],_0x3945e9=_0x2633d9['offset'];let _0x51a49f=_0x2633d9[_0x4245b2(0x1b4)]+_0x2633d9[_0x4245b2(0x1dd)],_0x35f929;return _0x51a49f>=_0x475e98?(_0x51a49f=_0x475e98,_0x35f929=0xc8):_0x35f929=0xce,_0x28488c[_0x4245b2(0x1c6)](_0x35f929),_0x28488c['set'](_0x4245b2(0x1da),_0x3945e9+'-'+_0x51a49f+'/'+_0x475e98)[_0x4245b2(0x1b1)](_0x3e1ddd);}return null;};}function saveUpdates(_0x332f71){return function(_0x2c3e0c){const _0x4d4201=a299_0x3497;if(_0x2c3e0c)return _0x2c3e0c['update'](_0x332f71)[_0x4d4201(0x1be)](function(_0x5e1f08){return _0x5e1f08;});return null;};}function removeEntity(_0x1699b6){return function(_0x166abd){const _0x390dd0=a299_0x3497;if(_0x166abd)return _0x166abd[_0x390dd0(0x1dc)]()['then'](function(){const _0x3b9e59=_0x390dd0;_0x1699b6[_0x3b9e59(0x1c6)](0xcc)[_0x3b9e59(0x1c7)]();});};}function handleEntityNotFound(_0x57b41d){return function(_0x4d842a){return!_0x4d842a&&_0x57b41d['sendStatus'](0x194),_0x4d842a;};}function handleError(_0x462810,_0x5db6f5){return _0x5db6f5=_0x5db6f5||0x1f4,function(_0xf46a27){const _0x220b0f=a299_0x3497;logger[_0x220b0f(0x1d9)](_0xf46a27[_0x220b0f(0x1d2)]),_0xf46a27[_0x220b0f(0x1c3)]&&delete _0xf46a27['name'],_0x462810['status'](_0x5db6f5)[_0x220b0f(0x1c9)](_0xf46a27);};}exports[a299_0x1d3aa7(0x1cb)]=function(_0x3894b1,_0x42511d){const _0x26953a=a299_0x1d3aa7;let _0x4b6095={};const _0x7e58df={},_0x361108={'count':0x0,'rows':[]},_0x4e0107=_['map'](db[_0x26953a(0x1df)][_0x26953a(0x1b9)],function(_0x39cdf7){const _0x38fe12=_0x26953a;return{'name':_0x39cdf7[_0x38fe12(0x1d5)],'type':_0x39cdf7[_0x38fe12(0x1d4)][_0x38fe12(0x1d7)]};});_0x7e58df['model']=_['map'](_0x4e0107,_0x26953a(0x1c3)),_0x7e58df[_0x26953a(0x1c8)]=_[_0x26953a(0x1ba)](_0x3894b1[_0x26953a(0x1c8)]),_0x7e58df[_0x26953a(0x1c5)]=_[_0x26953a(0x1d3)](_0x7e58df[_0x26953a(0x1e0)],_0x7e58df[_0x26953a(0x1c8)]),_0x4b6095[_0x26953a(0x1bd)]=_[_0x26953a(0x1d3)](_0x7e58df[_0x26953a(0x1e0)],qs['fields'](_0x3894b1[_0x26953a(0x1c8)][_0x26953a(0x1cc)])),_0x4b6095[_0x26953a(0x1bd)]=_0x4b6095[_0x26953a(0x1bd)][_0x26953a(0x1b8)]?_0x4b6095['attributes']:_0x7e58df['model'];typeof _0x3894b1[_0x26953a(0x1c8)]['nolimit']===_0x26953a(0x1d6)&&(_0x4b6095[_0x26953a(0x1dd)]=qs['limit'](_0x3894b1['query'][_0x26953a(0x1dd)]),_0x4b6095[_0x26953a(0x1b4)]=qs[_0x26953a(0x1b4)](_0x3894b1[_0x26953a(0x1c8)][_0x26953a(0x1b4)]));_0x4b6095[_0x26953a(0x1e1)]=qs[_0x26953a(0x1b3)](_0x3894b1[_0x26953a(0x1c8)][_0x26953a(0x1b3)]),_0x4b6095['where']=qs['filters'](_['pick'](_0x3894b1[_0x26953a(0x1c8)],_0x7e58df[_0x26953a(0x1c5)]),_0x4e0107);_0x3894b1[_0x26953a(0x1c8)]['filter']&&(_0x4b6095['where']=_[_0x26953a(0x1cd)](_0x4b6095[_0x26953a(0x1d0)],{[Op['or']]:_['map'](_0x4e0107,function(_0x2c5149){const _0x3b78ed=_0x26953a;if(_0x2c5149[_0x3b78ed(0x1d4)]!==_0x3b78ed(0x1cf)){const _0x1ca53a={};return _0x1ca53a[_0x2c5149[_0x3b78ed(0x1c3)]]={[Op[_0x3b78ed(0x1c0)]]:'%'+_0x3894b1[_0x3b78ed(0x1c8)][_0x3b78ed(0x1d1)]+'%'},_0x1ca53a;}})}));_0x4b6095=_['merge']({},_0x4b6095,_0x3894b1[_0x26953a(0x1db)]);const _0x6f39fb={'where':_0x4b6095[_0x26953a(0x1d0)]};return db[_0x26953a(0x1df)][_0x26953a(0x1c2)](_0x6f39fb)[_0x26953a(0x1be)](function(_0x18dadc){const _0x142819=_0x26953a;return _0x361108['count']=_0x18dadc,_0x3894b1[_0x142819(0x1c8)]['includeAll']&&(_0x4b6095['include']=[{'all':!![]}]),db[_0x142819(0x1df)][_0x142819(0x1bf)](_0x4b6095);})[_0x26953a(0x1be)](function(_0xde0bc5){const _0xb41e05=_0x26953a;return _0x361108[_0xb41e05(0x1bc)]=_0xde0bc5,_0x361108;})[_0x26953a(0x1be)](respondWithFilteredResult(_0x42511d,_0x4b6095))[_0x26953a(0x1b7)](handleError(_0x42511d,null));},exports[a299_0x1d3aa7(0x1b2)]=function(_0x2039dc,_0x3fa3c9){const _0x169c8f=a299_0x1d3aa7;let _0x229a28={'raw':!![],'where':{'id':_0x2039dc['params']['id']}};const _0x4a1f53={};return _0x4a1f53[_0x169c8f(0x1e0)]=_[_0x169c8f(0x1ba)](db[_0x169c8f(0x1df)][_0x169c8f(0x1b9)]),_0x4a1f53[_0x169c8f(0x1c8)]=_[_0x169c8f(0x1ba)](_0x2039dc['query']),_0x4a1f53['filters']=_[_0x169c8f(0x1d3)](_0x4a1f53['model'],_0x4a1f53[_0x169c8f(0x1c8)]),_0x229a28[_0x169c8f(0x1bd)]=_[_0x169c8f(0x1d3)](_0x4a1f53[_0x169c8f(0x1e0)],qs[_0x169c8f(0x1cc)](_0x2039dc[_0x169c8f(0x1c8)][_0x169c8f(0x1cc)])),_0x229a28[_0x169c8f(0x1bd)]=_0x229a28[_0x169c8f(0x1bd)][_0x169c8f(0x1b8)]?_0x229a28[_0x169c8f(0x1bd)]:_0x4a1f53[_0x169c8f(0x1e0)],_0x2039dc[_0x169c8f(0x1c8)]['includeAll']&&(_0x229a28[_0x169c8f(0x1ca)]=[{'all':!![]}]),_0x229a28=_['merge']({},_0x229a28,_0x2039dc[_0x169c8f(0x1db)]),db['Dynamics365Field']['findOne'](_0x229a28)[_0x169c8f(0x1be)](handleEntityNotFound(_0x3fa3c9,null))[_0x169c8f(0x1be)](respondWithResult(_0x3fa3c9,null))[_0x169c8f(0x1b7)](handleError(_0x3fa3c9,null));},exports[a299_0x1d3aa7(0x1c1)]=function(_0x2deb95,_0x241c5c){const _0x554585=a299_0x1d3aa7;return db['Dynamics365Field'][_0x554585(0x1c1)](_0x2deb95['body'],{})['then'](respondWithResult(_0x241c5c,0xc9))[_0x554585(0x1b7)](handleError(_0x241c5c,null));},exports[a299_0x1d3aa7(0x1d8)]=function(_0x2e9877,_0x4bd811){const _0x183aa6=a299_0x1d3aa7;return _0x2e9877[_0x183aa6(0x1b6)]['id']&&delete _0x2e9877['body']['id'],db[_0x183aa6(0x1df)]['findOne']({'where':{'id':_0x2e9877['params']['id']}})['then'](handleEntityNotFound(_0x4bd811,null))['then'](saveUpdates(_0x2e9877[_0x183aa6(0x1b6)],null))[_0x183aa6(0x1be)](respondWithResult(_0x4bd811,null))[_0x183aa6(0x1b7)](handleError(_0x4bd811,null));},exports[a299_0x1d3aa7(0x1dc)]=function(_0x11bf48,_0x253f1c){const _0xe9f311=a299_0x1d3aa7;return db['Dynamics365Field'][_0xe9f311(0x1b5)]({'where':{'id':_0x11bf48['params']['id']}})[_0xe9f311(0x1be)](handleEntityNotFound(_0x253f1c,null))[_0xe9f311(0x1be)](removeEntity(_0x253f1c,null))[_0xe9f311(0x1b7)](handleError(_0x253f1c,null));}; \ No newline at end of file diff --git a/server/api/intDynamics365Field/intDynamics365Field.model.js b/server/api/intDynamics365Field/intDynamics365Field.model.js index f4f3fef..bd5168a 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.model.js +++ b/server/api/intDynamics365Field/intDynamics365Field.model.js @@ -1 +1 @@ -const a300_0x1b85=['function','./intDynamics365Field.options','Dynamics365Field','exports','sequelize','init','./intDynamics365Field.attributes'];(function(_0x131959,_0x3cc10c){const _0x1b85ac=function(_0x5b90a7){while(--_0x5b90a7){_0x131959['push'](_0x131959['shift']());}};_0x1b85ac(++_0x3cc10c);}(a300_0x1b85,0xe0));const a300_0x5b90=function(_0x131959,_0x3cc10c){_0x131959=_0x131959-0x191;let _0x1b85ac=a300_0x1b85[_0x131959];return _0x1b85ac;};const a300_0x2b7798=a300_0x5b90;'use strict';const {Model}=require(a300_0x2b7798(0x195)),{attributes}=require(a300_0x2b7798(0x197)),{options}=require(a300_0x2b7798(0x192));class Dynamics365Field extends Model{}function init(_0x363e41,_0x21c3ac){const _0x488c36=a300_0x2b7798,_0x223049=options(_0x363e41),_0x44caa1=typeof _0x21c3ac===_0x488c36(0x191)?_0x21c3ac(_0x223049):_0x223049;return Dynamics365Field[_0x488c36(0x196)](attributes,_0x44caa1),Dynamics365Field;}module[a300_0x2b7798(0x194)][a300_0x2b7798(0x193)]=Dynamics365Field,module[a300_0x2b7798(0x194)][a300_0x2b7798(0x196)]=init; \ No newline at end of file +const a300_0x1df9=['./intDynamics365Field.attributes','exports','Dynamics365Field','init','./intDynamics365Field.options'];(function(_0x51806e,_0x13cf34){const _0x1df947=function(_0x2799b0){while(--_0x2799b0){_0x51806e['push'](_0x51806e['shift']());}};_0x1df947(++_0x13cf34);}(a300_0x1df9,0x69));const a300_0x2799=function(_0x51806e,_0x13cf34){_0x51806e=_0x51806e-0x13f;let _0x1df947=a300_0x1df9[_0x51806e];return _0x1df947;};const a300_0x5983eb=a300_0x2799;'use strict';const {Model}=require('sequelize'),{attributes}=require(a300_0x5983eb(0x13f)),{options}=require(a300_0x5983eb(0x143));class Dynamics365Field extends Model{}function init(_0x4f68ee,_0x106edf){const _0xff5233=options(_0x4f68ee),_0x5cc5ee=typeof _0x106edf==='function'?_0x106edf(_0xff5233):_0xff5233;return Dynamics365Field['init'](attributes,_0x5cc5ee),Dynamics365Field;}module[a300_0x5983eb(0x140)][a300_0x5983eb(0x141)]=Dynamics365Field,module[a300_0x5983eb(0x140)][a300_0x5983eb(0x142)]=init; \ No newline at end of file diff --git a/server/api/intDynamics365Field/intDynamics365Field.options.js b/server/api/intDynamics365Field/intDynamics365Field.options.js index 62f4a58..9ab9bd5 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.options.js +++ b/server/api/intDynamics365Field/intDynamics365Field.options.js @@ -1 +1 @@ -var a301_0x822a=['idField','FieldId'];(function(_0x4a046a,_0x42a38b){var _0x822a70=function(_0x516a0c){while(--_0x516a0c){_0x4a046a['push'](_0x4a046a['shift']());}};_0x822a70(++_0x42a38b);}(a301_0x822a,0x7d));var a301_0x516a=function(_0x4a046a,_0x42a38b){_0x4a046a=_0x4a046a-0x178;var _0x822a70=a301_0x822a[_0x4a046a];return _0x822a70;};function options(_0x2d0e66){var _0x34a942=a301_0x516a;return{'sequelize':_0x2d0e66,'tableName':'int_dynamics365_fields','paranoid':![],'indexes':[{'name':'dynamics365_unique_index','fields':[_0x34a942(0x179),_0x34a942(0x178)],'unique':!![]}],'timestamps':!![]};}module['exports']['options']=options; \ No newline at end of file +var a301_0x5015=['exports','int_dynamics365_fields','options'];(function(_0x3d9672,_0x219005){var _0x5015d7=function(_0xf875da){while(--_0xf875da){_0x3d9672['push'](_0x3d9672['shift']());}};_0x5015d7(++_0x219005);}(a301_0x5015,0x64));var a301_0xf875=function(_0x3d9672,_0x219005){_0x3d9672=_0x3d9672-0x1a7;var _0x5015d7=a301_0x5015[_0x3d9672];return _0x5015d7;};var a301_0x5dd9ad=a301_0xf875;function options(_0x5c96d0){var _0x5c869d=a301_0xf875;return{'sequelize':_0x5c96d0,'tableName':_0x5c869d(0x1a7),'paranoid':![],'indexes':[{'name':'dynamics365_unique_index','fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]};}module[a301_0x5dd9ad(0x1a9)][a301_0x5dd9ad(0x1a8)]=options; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/index.js b/server/api/intFreshdeskAccount/index.js index 49d1a13..c3ff2e5 100644 --- a/server/api/intFreshdeskAccount/index.js +++ b/server/api/intFreshdeskAccount/index.js @@ -1 +1 @@ -const a302_0xd5da=['../../components/auth/service','update','getConfigurations','put','get','/:id','delete','addConfiguration','./intFreshdeskAccount.controller','/:id/fields','exports','post','express','index','/:id/configurations','isAuthenticated','show','destroy','create','getFields'];(function(_0x5928ec,_0x5ac153){const _0xd5daaf=function(_0x59c877){while(--_0x59c877){_0x5928ec['push'](_0x5928ec['shift']());}};_0xd5daaf(++_0x5ac153);}(a302_0xd5da,0x8a));const a302_0x59c8=function(_0x5928ec,_0x5ac153){_0x5928ec=_0x5928ec-0xea;let _0xd5daaf=a302_0xd5da[_0x5928ec];return _0xd5daaf;};const a302_0x2c315c=a302_0x59c8;'use strict';const express=require(a302_0x2c315c(0xf8)),router=express['Router'](),auth=require(a302_0x2c315c(0xec)),controller=require(a302_0x2c315c(0xf4));router[a302_0x2c315c(0xf0)]('/',auth[a302_0x2c315c(0xfb)](),controller[a302_0x2c315c(0xf9)]),router[a302_0x2c315c(0xf0)](a302_0x2c315c(0xf1),auth[a302_0x2c315c(0xfb)](),controller[a302_0x2c315c(0xfc)]),router[a302_0x2c315c(0xf0)]('/:id/configurations',auth[a302_0x2c315c(0xfb)](),controller[a302_0x2c315c(0xee)]),router[a302_0x2c315c(0xf0)](a302_0x2c315c(0xf5),auth[a302_0x2c315c(0xfb)](),controller[a302_0x2c315c(0xeb)]),router['post']('/',auth[a302_0x2c315c(0xfb)](),controller[a302_0x2c315c(0xea)]),router[a302_0x2c315c(0xf7)](a302_0x2c315c(0xfa),auth['isAuthenticated'](),controller[a302_0x2c315c(0xf3)]),router[a302_0x2c315c(0xef)](a302_0x2c315c(0xf1),auth[a302_0x2c315c(0xfb)](),controller[a302_0x2c315c(0xed)]),router[a302_0x2c315c(0xf2)]('/:id',auth[a302_0x2c315c(0xfb)](),controller[a302_0x2c315c(0xfd)]),module[a302_0x2c315c(0xf6)]=router; \ No newline at end of file +const a302_0x401d=['destroy','getFields','/:id/fields','/:id/configurations','exports','Router','../../components/auth/service','put','./intFreshdeskAccount.controller','isAuthenticated','create','getConfigurations','update','get','/:id','post'];(function(_0x8cb5db,_0x28874a){const _0x401dde=function(_0x1656ea){while(--_0x1656ea){_0x8cb5db['push'](_0x8cb5db['shift']());}};_0x401dde(++_0x28874a);}(a302_0x401d,0x87));const a302_0x1656=function(_0x8cb5db,_0x28874a){_0x8cb5db=_0x8cb5db-0x8d;let _0x401dde=a302_0x401d[_0x8cb5db];return _0x401dde;};const a302_0x405122=a302_0x1656;'use strict';const express=require('express'),router=express[a302_0x405122(0x9b)](),auth=require(a302_0x405122(0x9c)),controller=require(a302_0x405122(0x8e));router[a302_0x405122(0x93)]('/',auth[a302_0x405122(0x8f)](),controller['index']),router[a302_0x405122(0x93)](a302_0x405122(0x94),auth['isAuthenticated'](),controller['show']),router[a302_0x405122(0x93)](a302_0x405122(0x99),auth[a302_0x405122(0x8f)](),controller[a302_0x405122(0x91)]),router['get'](a302_0x405122(0x98),auth[a302_0x405122(0x8f)](),controller[a302_0x405122(0x97)]),router[a302_0x405122(0x95)]('/',auth['isAuthenticated'](),controller[a302_0x405122(0x90)]),router['post'](a302_0x405122(0x99),auth['isAuthenticated'](),controller['addConfiguration']),router[a302_0x405122(0x8d)](a302_0x405122(0x94),auth[a302_0x405122(0x8f)](),controller[a302_0x405122(0x92)]),router['delete'](a302_0x405122(0x94),auth[a302_0x405122(0x8f)](),controller[a302_0x405122(0x96)]),module[a302_0x405122(0x9a)]=router; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js index 5de7c75..8d4de0a 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js @@ -1 +1 @@ -const a303_0x146c=['exports','STRING','attributes','sequelize','remoteUri'];(function(_0x5ee2d2,_0x323e40){const _0x146c2c=function(_0x2270ec){while(--_0x2270ec){_0x5ee2d2['push'](_0x5ee2d2['shift']());}};_0x146c2c(++_0x323e40);}(a303_0x146c,0x1d7));const a303_0x2270=function(_0x5ee2d2,_0x323e40){_0x5ee2d2=_0x5ee2d2-0xe1;let _0x146c2c=a303_0x146c[_0x5ee2d2];return _0x146c2c;};const a303_0xbf65bf=a303_0x2270;'use strict';const {DataTypes}=require(a303_0xbf65bf(0xe3)),attributes={'name':{'type':DataTypes[a303_0xbf65bf(0xe1)]},'description':{'type':DataTypes['STRING']},'username':{'type':DataTypes['STRING'],'unique':'username'},'apiKey':{'type':DataTypes[a303_0xbf65bf(0xe1)]},'remoteUri':{'type':DataTypes[a303_0xbf65bf(0xe1)],'unique':a303_0xbf65bf(0xe4)},'serverUrl':{'type':DataTypes['STRING']}};module[a303_0xbf65bf(0xe5)][a303_0xbf65bf(0xe2)]=attributes; \ No newline at end of file +const a303_0x24bb=['sequelize','attributes','STRING','username','remoteUri'];(function(_0x151ab6,_0x47b76b){const _0x24bb1d=function(_0x5065fd){while(--_0x5065fd){_0x151ab6['push'](_0x151ab6['shift']());}};_0x24bb1d(++_0x47b76b);}(a303_0x24bb,0x141));const a303_0x5065=function(_0x151ab6,_0x47b76b){_0x151ab6=_0x151ab6-0x173;let _0x24bb1d=a303_0x24bb[_0x151ab6];return _0x24bb1d;};const a303_0x2c13ee=a303_0x5065;'use strict';const {DataTypes}=require(a303_0x2c13ee(0x177)),attributes={'name':{'type':DataTypes[a303_0x2c13ee(0x174)]},'description':{'type':DataTypes[a303_0x2c13ee(0x174)]},'username':{'type':DataTypes['STRING'],'unique':a303_0x2c13ee(0x175)},'apiKey':{'type':DataTypes[a303_0x2c13ee(0x174)]},'remoteUri':{'type':DataTypes[a303_0x2c13ee(0x174)],'unique':a303_0x2c13ee(0x176)},'serverUrl':{'type':DataTypes[a303_0x2c13ee(0x174)]}};module['exports'][a303_0x2c13ee(0x173)]=attributes; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js index f726e0f..fabe109 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js @@ -1 +1 @@ -const a304_0x4343=['substring','intersection','subject','remove','includes','map','channel','FreshdeskAccount','source','rawAttributes','params','Wrong\x20credentials','addConfiguration','json','lastIndexOf','getFields,\x20%s,\x20%s,\x20%s','sequelize','destroy','model','nolimit','getSubjects','options','stack','update','requester','undefined','name','filters','format','getConfigurations','where','statusCode','type','%s/%s','merge','base64','length','label','include','then','catch','getDescriptions','FreshdeskField','limit','key','fieldName','FreshdeskConfiguration','custom_dropdown','stringify','Descriptions','Subjects','filter','GET','status','sort','../../config/logger','api','AccountId','group','choices','body','keys','test','apiKey','default','../../components/parsers/qs','offset','create','../../components/integrations/configuration','findOne','pick','getFields','fields','ticket_type','end','Basic\x20%s','Content-Range','remoteUri','like','show','request-promise-native','util','count','toString','send','slice','rows','attributes','query','set','%s:X','sendStatus','lodash','VIRTUAL'];(function(_0x2f837b,_0x240c1f){const _0x4343fc=function(_0x4543cf){while(--_0x4543cf){_0x2f837b['push'](_0x2f837b['shift']());}};_0x4343fc(++_0x240c1f);}(a304_0x4343,0x1c9));const a304_0x4543=function(_0x2f837b,_0x240c1f){_0x2f837b=_0x2f837b-0x84;let _0x4343fc=a304_0x4343[_0x2f837b];return _0x4343fc;};const a304_0x12586a=a304_0x4543;'use strict';const rp=require(a304_0x12586a(0xe1)),util=require(a304_0x12586a(0x84)),_=require(a304_0x12586a(0x8f)),qs=require(a304_0x12586a(0xd2)),logger=require(a304_0x12586a(0xc8))(a304_0x12586a(0xc9)),{db}=require('../../mysqldb'),{Op}=require(a304_0x12586a(0xa1)),integrations=require(a304_0x12586a(0xd5));function respondWithResult(_0x39d995,_0x1ebcdf){return _0x1ebcdf=_0x1ebcdf||0xc8,function(_0x594681){const _0xe8fc5=a304_0x4543;if(_0x594681)return _0x39d995[_0xe8fc5(0xc6)](_0x1ebcdf)[_0xe8fc5(0x9e)](_0x594681);};}function respondWithFilteredResult(_0x2277bd,_0x24f68d){return function(_0x2dfde9){const _0x5f52ad=a304_0x4543;if(_0x2dfde9){const _0x57c722=_0x2dfde9['count'],_0x15de31=_0x24f68d['offset'];let _0x2ffeb0=_0x24f68d[_0x5f52ad(0xd3)]+_0x24f68d[_0x5f52ad(0xbc)],_0x469e9c;return _0x2ffeb0>=_0x57c722?(_0x2ffeb0=_0x57c722,_0x469e9c=0xc8):_0x469e9c=0xce,_0x2277bd['status'](_0x469e9c),_0x2277bd[_0x5f52ad(0x8c)](_0x5f52ad(0xdd),_0x15de31+'-'+_0x2ffeb0+'/'+_0x57c722)[_0x5f52ad(0x9e)](_0x2dfde9);}return null;};}function saveUpdates(_0x452b9b){return function(_0x3c62eb){const _0x130bba=a304_0x4543;if(_0x3c62eb)return _0x3c62eb[_0x130bba(0xa8)](_0x452b9b)['then'](function(_0x544075){return _0x544075;});return null;};}function removeEntity(_0x2b919a){return function(_0x56b6c5){if(_0x56b6c5)return _0x56b6c5['destroy']()['then'](function(){const _0x50d437=a304_0x4543;_0x2b919a['status'](0xcc)[_0x50d437(0xdb)]();});};}function handleEntityNotFound(_0x35d8b8){return function(_0x342bc8){const _0x3be63b=a304_0x4543;return!_0x342bc8&&_0x35d8b8[_0x3be63b(0x8e)](0x194),_0x342bc8;};}function handleError(_0x3f072c,_0x365b65){return _0x365b65=_0x365b65||0x1f4,function(_0x3d7728){const _0x107c85=a304_0x4543;logger['error'](_0x3d7728[_0x107c85(0xa7)]),_0x3d7728[_0x107c85(0xab)]&&delete _0x3d7728[_0x107c85(0xab)],_0x3f072c[_0x107c85(0xc6)](_0x365b65)[_0x107c85(0x87)](_0x3d7728);};}exports['index']=function(_0xd9b4d,_0x4edac4){const _0x4838bf=a304_0x12586a;let _0x43a5da={};const _0x3615a1={},_0x44b2fa={'count':0x0,'rows':[]},_0x4e61da=_['map'](db[_0x4838bf(0x98)][_0x4838bf(0x9a)],function(_0x1526c3){const _0x234557=_0x4838bf;return{'name':_0x1526c3[_0x234557(0xbe)],'type':_0x1526c3['type'][_0x234557(0xbd)]};});_0x3615a1[_0x4838bf(0xa3)]=_[_0x4838bf(0x96)](_0x4e61da,_0x4838bf(0xab)),_0x3615a1[_0x4838bf(0x8b)]=_['keys'](_0xd9b4d[_0x4838bf(0x8b)]),_0x3615a1[_0x4838bf(0xac)]=_[_0x4838bf(0x92)](_0x3615a1['model'],_0x3615a1[_0x4838bf(0x8b)]),_0x43a5da[_0x4838bf(0x8a)]=_[_0x4838bf(0x92)](_0x3615a1[_0x4838bf(0xa3)],qs['fields'](_0xd9b4d['query']['fields'])),_0x43a5da[_0x4838bf(0x8a)]=_0x43a5da[_0x4838bf(0x8a)][_0x4838bf(0xb5)]?_0x43a5da[_0x4838bf(0x8a)]:_0x3615a1['model'];typeof _0xd9b4d[_0x4838bf(0x8b)][_0x4838bf(0xa4)]===_0x4838bf(0xaa)&&(_0x43a5da[_0x4838bf(0xbc)]=qs[_0x4838bf(0xbc)](_0xd9b4d['query'][_0x4838bf(0xbc)]),_0x43a5da['offset']=qs[_0x4838bf(0xd3)](_0xd9b4d[_0x4838bf(0x8b)][_0x4838bf(0xd3)]));_0x43a5da['order']=qs[_0x4838bf(0xc7)](_0xd9b4d[_0x4838bf(0x8b)][_0x4838bf(0xc7)]),_0x43a5da[_0x4838bf(0xaf)]=qs[_0x4838bf(0xac)](_[_0x4838bf(0xd7)](_0xd9b4d[_0x4838bf(0x8b)],_0x3615a1[_0x4838bf(0xac)]),_0x4e61da);_0xd9b4d['query'][_0x4838bf(0xc4)]&&(_0x43a5da[_0x4838bf(0xaf)]=_[_0x4838bf(0xb3)](_0x43a5da[_0x4838bf(0xaf)],{[Op['or']]:_['map'](_0x4e61da,function(_0x564382){const _0x419b98=_0x4838bf;if(_0x564382[_0x419b98(0xb1)]!==_0x419b98(0x90)){const _0x45de9d={};return _0x45de9d[_0x564382[_0x419b98(0xab)]]={[Op[_0x419b98(0xdf)]]:'%'+_0xd9b4d['query']['filter']+'%'},_0x45de9d;}})}));_0x43a5da=_[_0x4838bf(0xb3)]({},_0x43a5da,_0xd9b4d['options']);const _0x4c0c8a={'where':_0x43a5da[_0x4838bf(0xaf)]};return db[_0x4838bf(0x98)][_0x4838bf(0x85)](_0x4c0c8a)[_0x4838bf(0xb8)](function(_0x49602d){const _0x4ee954=_0x4838bf;return _0x44b2fa[_0x4ee954(0x85)]=_0x49602d,_0xd9b4d[_0x4ee954(0x8b)]['includeAll']&&(_0x43a5da['include']=[{'all':!![]}]),db[_0x4ee954(0x98)]['findAll'](_0x43a5da);})[_0x4838bf(0xb8)](function(_0x4a7a6a){const _0xa51325=_0x4838bf;return _0x44b2fa[_0xa51325(0x89)]=_0x4a7a6a,_0x44b2fa;})[_0x4838bf(0xb8)](respondWithFilteredResult(_0x4edac4,_0x43a5da))['catch'](handleError(_0x4edac4,null));},exports[a304_0x12586a(0xe0)]=function(_0x20f635,_0x5ede80){const _0x4f74d4=a304_0x12586a;let _0x2947bf={'raw':![],'where':{'id':_0x20f635[_0x4f74d4(0x9b)]['id']}};const _0x1c873a={};return _0x1c873a[_0x4f74d4(0xa3)]=_['keys'](db[_0x4f74d4(0x98)][_0x4f74d4(0x9a)]),_0x1c873a[_0x4f74d4(0x8b)]=_['keys'](_0x20f635[_0x4f74d4(0x8b)]),_0x1c873a[_0x4f74d4(0xac)]=_[_0x4f74d4(0x92)](_0x1c873a['model'],_0x1c873a[_0x4f74d4(0x8b)]),_0x2947bf[_0x4f74d4(0x8a)]=_[_0x4f74d4(0x92)](_0x1c873a[_0x4f74d4(0xa3)],qs[_0x4f74d4(0xd9)](_0x20f635['query'][_0x4f74d4(0xd9)])),_0x2947bf['attributes']=_0x2947bf[_0x4f74d4(0x8a)][_0x4f74d4(0xb5)]?_0x2947bf[_0x4f74d4(0x8a)]:_0x1c873a[_0x4f74d4(0xa3)],_0x20f635[_0x4f74d4(0x8b)]['includeAll']&&(_0x2947bf[_0x4f74d4(0xb7)]=[{'all':!![]}]),_0x2947bf=_[_0x4f74d4(0xb3)]({},_0x2947bf,_0x20f635[_0x4f74d4(0xa6)]),db[_0x4f74d4(0x98)]['findOne'](_0x2947bf)[_0x4f74d4(0xb8)](handleEntityNotFound(_0x5ede80,null))[_0x4f74d4(0xb8)](respondWithResult(_0x5ede80,null))[_0x4f74d4(0xb9)](handleError(_0x5ede80,null));},exports[a304_0x12586a(0xd4)]=function(_0x216673,_0x2a4500){const _0x28d55f=a304_0x12586a;return db[_0x28d55f(0x98)][_0x28d55f(0xd4)](_0x216673[_0x28d55f(0xcd)],{})[_0x28d55f(0xb8)](respondWithResult(_0x2a4500,0xc9))[_0x28d55f(0xb9)](handleError(_0x2a4500,null));},exports[a304_0x12586a(0xa8)]=function(_0x50767b,_0x1ab527){const _0x3de54d=a304_0x12586a;return _0x50767b[_0x3de54d(0xcd)]['id']&&delete _0x50767b['body']['id'],db[_0x3de54d(0x98)]['findOne']({'where':{'id':_0x50767b[_0x3de54d(0x9b)]['id']}})[_0x3de54d(0xb8)](handleEntityNotFound(_0x1ab527,null))[_0x3de54d(0xb8)](saveUpdates(_0x50767b[_0x3de54d(0xcd)],null))[_0x3de54d(0xb8)](respondWithResult(_0x1ab527,null))[_0x3de54d(0xb9)](handleError(_0x1ab527,null));},exports[a304_0x12586a(0xa2)]=function(_0x50e29a,_0x233a61){const _0x330750=a304_0x12586a;return db[_0x330750(0x98)][_0x330750(0xd6)]({'where':{'id':_0x50e29a[_0x330750(0x9b)]['id']}})[_0x330750(0xb8)](handleEntityNotFound(_0x233a61,null))[_0x330750(0xb8)](removeEntity(_0x233a61,null))[_0x330750(0xb9)](handleError(_0x233a61,null));},exports[a304_0x12586a(0xae)]=function(_0x1355e0,_0x2d142d){const _0x5eb950=a304_0x12586a;let _0x8c3cc8={};const _0x38bfa2={};let _0x3d5d92,_0x199986;return db[_0x5eb950(0x98)][_0x5eb950(0xd6)]({'where':{'id':_0x1355e0['params']['id']}})['then'](handleEntityNotFound(_0x2d142d,null))[_0x5eb950(0xb8)](function(_0x132fdf){const _0x180241=_0x5eb950;if(_0x132fdf)return _0x3d5d92=_0x132fdf,_0x38bfa2[_0x180241(0xa3)]=_[_0x180241(0xce)](db[_0x180241(0xbf)]['rawAttributes']),_0x38bfa2[_0x180241(0x8b)]=_[_0x180241(0xce)](_0x1355e0[_0x180241(0x8b)]),_0x38bfa2[_0x180241(0xac)]=_[_0x180241(0x92)](_0x38bfa2[_0x180241(0xa3)],_0x38bfa2[_0x180241(0x8b)]),_0x8c3cc8[_0x180241(0x8a)]=_[_0x180241(0x92)](_0x38bfa2[_0x180241(0xa3)],qs['fields'](_0x1355e0[_0x180241(0x8b)][_0x180241(0xd9)])),_0x8c3cc8['attributes']=_0x8c3cc8[_0x180241(0x8a)][_0x180241(0xb5)]?_0x8c3cc8['attributes']:_0x38bfa2[_0x180241(0xa3)],_0x8c3cc8['order']=qs['sort'](_0x1355e0[_0x180241(0x8b)]['sort']),_0x8c3cc8[_0x180241(0xaf)]=qs[_0x180241(0xac)](_['pick'](_0x1355e0['query'],_0x38bfa2['filters'])),_0x1355e0['query']['filter']&&(_0x8c3cc8['where']=_[_0x180241(0xb3)](_0x8c3cc8[_0x180241(0xaf)],{[Op['or']]:_[_0x180241(0x96)](_0x8c3cc8[_0x180241(0x8a)],function(_0x377ada){const _0x22a4fc=_0x180241,_0x32dc10={};return _0x32dc10[_0x377ada]={[Op[_0x22a4fc(0xdf)]]:'%'+_0x1355e0[_0x22a4fc(0x8b)][_0x22a4fc(0xc4)]+'%'},_0x32dc10;})})),_0x8c3cc8=_[_0x180241(0xb3)]({},_0x8c3cc8,_0x1355e0['options']),_0x3d5d92[_0x180241(0xae)](_0x8c3cc8);})[_0x5eb950(0xb8)](function(_0x1e76e1){const _0xa0a967=_0x5eb950;if(_0x1e76e1)return _0x199986=_0x1e76e1[_0xa0a967(0xb5)],typeof _0x1355e0[_0xa0a967(0x8b)][_0xa0a967(0xa4)]==='undefined'&&(_0x8c3cc8['limit']=qs['limit'](_0x1355e0[_0xa0a967(0x8b)][_0xa0a967(0xbc)]),_0x8c3cc8[_0xa0a967(0xd3)]=qs['offset'](_0x1355e0[_0xa0a967(0x8b)]['offset'])),_0x3d5d92[_0xa0a967(0xae)](_0x8c3cc8);})[_0x5eb950(0xb8)](function(_0x17fdf0){if(_0x17fdf0)return _0x17fdf0?{'count':_0x199986,'rows':_0x17fdf0}:null;})[_0x5eb950(0xb8)](respondWithResult(_0x2d142d,null))[_0x5eb950(0xb9)](handleError(_0x2d142d,null));},exports[a304_0x12586a(0x9d)]=function(_0x516f3a,_0x525e92){const _0x54846c=a304_0x12586a;return _0x516f3a[_0x54846c(0xcd)]['id']&&delete _0x516f3a[_0x54846c(0xcd)]['id'],db[_0x54846c(0x98)][_0x54846c(0xd6)]({'where':{'id':_0x516f3a[_0x54846c(0x9b)]['id']}})['then'](handleEntityNotFound(_0x525e92,null))[_0x54846c(0xb8)](function(_0x23b04c){const _0x26cd37=_0x54846c;if(_0x23b04c)return _0x516f3a[_0x26cd37(0xcd)][_0x26cd37(0xca)]=_0x23b04c['id'],_0x516f3a['body'][_0x26cd37(0xc3)]=integrations[_0x26cd37(0xa5)](_0x516f3a['body'][_0x26cd37(0x97)],_0x516f3a[_0x26cd37(0xcd)][_0x26cd37(0xb1)]),_0x516f3a['body'][_0x26cd37(0xc2)]=integrations[_0x26cd37(0xba)](_0x516f3a[_0x26cd37(0xcd)][_0x26cd37(0x97)],_0x516f3a[_0x26cd37(0xcd)]['type']),db[_0x26cd37(0xbf)][_0x26cd37(0xd4)](_0x516f3a['body'],{'include':[{'model':db[_0x26cd37(0xbb)],'as':_0x26cd37(0xc3)},{'model':db[_0x26cd37(0xbb)],'as':_0x26cd37(0xc2)}]});return null;})[_0x54846c(0xb8)](respondWithResult(_0x525e92,null))[_0x54846c(0xb9)](handleError(_0x525e92,null));},exports[a304_0x12586a(0xd8)]=function(_0x3f9094,_0x4653cc){const _0x2246eb=a304_0x12586a;let _0x51db31='';return db[_0x2246eb(0x98)]['findOne']({'where':{'id':_0x3f9094[_0x2246eb(0x9b)]['id']},'attributes':['id',_0x2246eb(0xde),_0x2246eb(0xd0)]})[_0x2246eb(0xb8)](handleEntityNotFound(_0x4653cc,null))[_0x2246eb(0xb8)](function(_0x2924a7){const _0x41ebdc=_0x2246eb;if(_0x2924a7){_0x51db31=_0x2924a7['remoteUri'];const _0x218852=_0x51db31[_0x41ebdc(0x88)](-0x1);return _0x218852==='/'&&(_0x51db31=_0x51db31[_0x41ebdc(0x91)](0x0,_0x51db31[_0x41ebdc(0x9f)](_0x218852))),rp({'method':_0x41ebdc(0xc5),'uri':util['format'](_0x41ebdc(0xb2),_0x51db31,'api/v2/ticket_fields'),'headers':{'Authorization':util[_0x41ebdc(0xad)](_0x41ebdc(0xdc),Buffer['from'](util[_0x41ebdc(0xad)](_0x41ebdc(0x8d),_0x2924a7[_0x41ebdc(0xd0)]))[_0x41ebdc(0x86)](_0x41ebdc(0xb4)))},'json':!![]});}})['then'](function(_0x5ebc49){const _0x31bb1a=_0x2246eb;if(_0x5ebc49){const _0x5bd7cb=[_0x31bb1a(0xa9),_0x31bb1a(0x93),'agent','description',_0x31bb1a(0xc6),'priority',_0x31bb1a(0xcb),_0x31bb1a(0x99),_0x31bb1a(0xda),_0x31bb1a(0xcb),'company'];return _[_0x31bb1a(0x94)](_0x5ebc49,function(_0x23d90d){const _0x59a869=_0x31bb1a;return _0x5bd7cb[_0x59a869(0x95)](_0x23d90d[_0x59a869(0xab)])||!_0x23d90d['default']&&_0x23d90d[_0x59a869(0xb1)]!=='custom_text'&&_0x23d90d[_0x59a869(0xb1)]!==_0x59a869(0xc0);}),{'count':_0x5ebc49[_0x31bb1a(0xb5)],'rows':_[_0x31bb1a(0x96)](_0x5ebc49,function(_0x25a6dd){const _0x4d09a7=_0x31bb1a;return{'id':_0x25a6dd[_0x4d09a7(0xab)],'name':_0x25a6dd[_0x4d09a7(0xb6)],'custom':!_0x25a6dd[_0x4d09a7(0xd1)],'options':_0x25a6dd[_0x4d09a7(0xcc)]?_[_0x4d09a7(0x96)](_0x25a6dd[_0x4d09a7(0xcc)],function(_0x560fd5){return{'name':_['capitalize'](_0x560fd5),'value':_0x560fd5};}):[]};})};}})['then'](respondWithResult(_0x4653cc,null))[_0x2246eb(0xb9)](function(_0x30ff8d){const _0x384fd7=_0x2246eb;let _0x108884=_0x3f9094[_0x384fd7(0x8b)][_0x384fd7(0xcf)]?0x1f4:_0x30ff8d['statusCode']||0x1f4;logger['error'](_0x384fd7(0xa0),_0x384fd7(0xd8),_0x108884,JSON[_0x384fd7(0xc1)](_0x30ff8d)),delete _0x30ff8d[_0x384fd7(0xab)],_0x108884===0x191&&(_0x108884=0x190),_0x4653cc[_0x384fd7(0xc6)](_0x108884)[_0x384fd7(0x87)](_0x3f9094[_0x384fd7(0x8b)][_0x384fd7(0xcf)]?{'message':_0x384fd7(0x9c),'statusCode':_0x30ff8d[_0x384fd7(0xb0)]}:_0x30ff8d);});}; \ No newline at end of file +const a304_0x4ee4=['../../components/integrations/configuration','capitalize','Basic\x20%s','keys','api','destroy','../../components/parsers/qs','priority','FreshdeskField','label','count','test','findOne','model','type','name','getDescriptions','includes','include','custom_dropdown','create','toString','map','query','requester','Content-Range','custom_text','update','source','send','intersection','filter','nolimit','AccountId','from','where','FreshdeskAccount','VIRTUAL','getFields','fields','choices','like','includeAll','getConfigurations','apiKey','show','set','findAll','../../config/logger','then','group','getFields,\x20%s,\x20%s,\x20%s','options','%s:X','end','addConfiguration','agent','subject','limit','json','rawAttributes','ticket_type','index','filters','sort','format','%s/%s','status','request-promise-native','util','remoteUri','Wrong\x20credentials','default','length','getSubjects','catch','FreshdeskConfiguration','slice','body','params','statusCode','attributes','pick','sequelize','merge','order','offset','key','error','base64','Subjects','channel','lastIndexOf'];(function(_0x5d21c7,_0x53294a){const _0x4ee42b=function(_0x301686){while(--_0x301686){_0x5d21c7['push'](_0x5d21c7['shift']());}};_0x4ee42b(++_0x53294a);}(a304_0x4ee4,0x95));const a304_0x3016=function(_0x5d21c7,_0x53294a){_0x5d21c7=_0x5d21c7-0x12b;let _0x4ee42b=a304_0x4ee4[_0x5d21c7];return _0x4ee42b;};const a304_0x49a94a=a304_0x3016;'use strict';const rp=require(a304_0x49a94a(0x137)),util=require(a304_0x49a94a(0x138)),_=require('lodash'),qs=require(a304_0x49a94a(0x156)),logger=require(a304_0x49a94a(0x180))(a304_0x49a94a(0x154)),{db}=require('../../mysqldb'),{Op}=require(a304_0x49a94a(0x146)),integrations=require(a304_0x49a94a(0x150));function respondWithResult(_0x39cf8b,_0x5178f2){return _0x5178f2=_0x5178f2||0xc8,function(_0x5cc979){const _0x2fdc34=a304_0x3016;if(_0x5cc979)return _0x39cf8b[_0x2fdc34(0x136)](_0x5178f2)[_0x2fdc34(0x12e)](_0x5cc979);};}function respondWithFilteredResult(_0x30a0b3,_0x5452bf){return function(_0x5bdfc9){const _0x5358ca=a304_0x3016;if(_0x5bdfc9){const _0x56e47f=_0x5bdfc9[_0x5358ca(0x15a)],_0x483055=_0x5452bf['offset'];let _0xa4d137=_0x5452bf[_0x5358ca(0x149)]+_0x5452bf[_0x5358ca(0x12d)],_0xa5f806;return _0xa4d137>=_0x56e47f?(_0xa4d137=_0x56e47f,_0xa5f806=0xc8):_0xa5f806=0xce,_0x30a0b3['status'](_0xa5f806),_0x30a0b3[_0x5358ca(0x17e)](_0x5358ca(0x169),_0x483055+'-'+_0xa4d137+'/'+_0x56e47f)[_0x5358ca(0x12e)](_0x5bdfc9);}return null;};}function saveUpdates(_0x23275e){return function(_0x748886){const _0x17a3a5=a304_0x3016;if(_0x748886)return _0x748886[_0x17a3a5(0x16b)](_0x23275e)[_0x17a3a5(0x181)](function(_0x1b8f7b){return _0x1b8f7b;});return null;};}function removeEntity(_0x3b33de){return function(_0x48735a){const _0x19b779=a304_0x3016;if(_0x48735a)return _0x48735a[_0x19b779(0x155)]()[_0x19b779(0x181)](function(){const _0x349344=_0x19b779;_0x3b33de[_0x349344(0x136)](0xcc)[_0x349344(0x186)]();});};}function handleEntityNotFound(_0x3357e4){return function(_0x1ef3ec){return!_0x1ef3ec&&_0x3357e4['sendStatus'](0x194),_0x1ef3ec;};}function handleError(_0x2329b7,_0x1023e9){return _0x1023e9=_0x1023e9||0x1f4,function(_0x2d868d){const _0x44709c=a304_0x3016;logger[_0x44709c(0x14b)](_0x2d868d['stack']),_0x2d868d['name']&&delete _0x2d868d['name'],_0x2329b7[_0x44709c(0x136)](_0x1023e9)['send'](_0x2d868d);};}exports[a304_0x49a94a(0x131)]=function(_0xb2c0b1,_0xd1d0ea){const _0x31d88b=a304_0x49a94a;let _0x88ac4f={};const _0x344b60={},_0x568296={'count':0x0,'rows':[]},_0x28aee7=_[_0x31d88b(0x166)](db[_0x31d88b(0x174)][_0x31d88b(0x12f)],function(_0x47086c){const _0x2353fd=_0x31d88b;return{'name':_0x47086c['fieldName'],'type':_0x47086c[_0x2353fd(0x15e)][_0x2353fd(0x14a)]};});_0x344b60['model']=_[_0x31d88b(0x166)](_0x28aee7,_0x31d88b(0x15f)),_0x344b60[_0x31d88b(0x167)]=_[_0x31d88b(0x153)](_0xb2c0b1['query']),_0x344b60[_0x31d88b(0x132)]=_['intersection'](_0x344b60[_0x31d88b(0x15d)],_0x344b60['query']),_0x88ac4f['attributes']=_[_0x31d88b(0x16e)](_0x344b60[_0x31d88b(0x15d)],qs[_0x31d88b(0x177)](_0xb2c0b1[_0x31d88b(0x167)][_0x31d88b(0x177)])),_0x88ac4f['attributes']=_0x88ac4f[_0x31d88b(0x144)]['length']?_0x88ac4f['attributes']:_0x344b60[_0x31d88b(0x15d)];typeof _0xb2c0b1[_0x31d88b(0x167)][_0x31d88b(0x170)]==='undefined'&&(_0x88ac4f[_0x31d88b(0x12d)]=qs[_0x31d88b(0x12d)](_0xb2c0b1[_0x31d88b(0x167)][_0x31d88b(0x12d)]),_0x88ac4f[_0x31d88b(0x149)]=qs['offset'](_0xb2c0b1[_0x31d88b(0x167)][_0x31d88b(0x149)]));_0x88ac4f[_0x31d88b(0x148)]=qs[_0x31d88b(0x133)](_0xb2c0b1[_0x31d88b(0x167)][_0x31d88b(0x133)]),_0x88ac4f[_0x31d88b(0x173)]=qs[_0x31d88b(0x132)](_[_0x31d88b(0x145)](_0xb2c0b1[_0x31d88b(0x167)],_0x344b60[_0x31d88b(0x132)]),_0x28aee7);_0xb2c0b1[_0x31d88b(0x167)][_0x31d88b(0x16f)]&&(_0x88ac4f[_0x31d88b(0x173)]=_['merge'](_0x88ac4f['where'],{[Op['or']]:_[_0x31d88b(0x166)](_0x28aee7,function(_0x61a82f){const _0x64097a=_0x31d88b;if(_0x61a82f[_0x64097a(0x15e)]!==_0x64097a(0x175)){const _0x22e0b2={};return _0x22e0b2[_0x61a82f['name']]={[Op[_0x64097a(0x179)]]:'%'+_0xb2c0b1[_0x64097a(0x167)][_0x64097a(0x16f)]+'%'},_0x22e0b2;}})}));_0x88ac4f=_['merge']({},_0x88ac4f,_0xb2c0b1[_0x31d88b(0x184)]);const _0x52c458={'where':_0x88ac4f[_0x31d88b(0x173)]};return db[_0x31d88b(0x174)][_0x31d88b(0x15a)](_0x52c458)['then'](function(_0x13bbf4){const _0x2f65de=_0x31d88b;return _0x568296[_0x2f65de(0x15a)]=_0x13bbf4,_0xb2c0b1[_0x2f65de(0x167)][_0x2f65de(0x17a)]&&(_0x88ac4f[_0x2f65de(0x162)]=[{'all':!![]}]),db[_0x2f65de(0x174)][_0x2f65de(0x17f)](_0x88ac4f);})[_0x31d88b(0x181)](function(_0x1ebb6e){return _0x568296['rows']=_0x1ebb6e,_0x568296;})['then'](respondWithFilteredResult(_0xd1d0ea,_0x88ac4f))['catch'](handleError(_0xd1d0ea,null));},exports[a304_0x49a94a(0x17d)]=function(_0x5f0210,_0x5b21c6){const _0x4c3226=a304_0x49a94a;let _0x1aa824={'raw':![],'where':{'id':_0x5f0210['params']['id']}};const _0x2fa39d={};return _0x2fa39d[_0x4c3226(0x15d)]=_[_0x4c3226(0x153)](db['FreshdeskAccount']['rawAttributes']),_0x2fa39d[_0x4c3226(0x167)]=_[_0x4c3226(0x153)](_0x5f0210['query']),_0x2fa39d['filters']=_[_0x4c3226(0x16e)](_0x2fa39d['model'],_0x2fa39d[_0x4c3226(0x167)]),_0x1aa824['attributes']=_[_0x4c3226(0x16e)](_0x2fa39d[_0x4c3226(0x15d)],qs['fields'](_0x5f0210[_0x4c3226(0x167)]['fields'])),_0x1aa824[_0x4c3226(0x144)]=_0x1aa824[_0x4c3226(0x144)][_0x4c3226(0x13c)]?_0x1aa824[_0x4c3226(0x144)]:_0x2fa39d[_0x4c3226(0x15d)],_0x5f0210[_0x4c3226(0x167)]['includeAll']&&(_0x1aa824[_0x4c3226(0x162)]=[{'all':!![]}]),_0x1aa824=_['merge']({},_0x1aa824,_0x5f0210[_0x4c3226(0x184)]),db[_0x4c3226(0x174)][_0x4c3226(0x15c)](_0x1aa824)[_0x4c3226(0x181)](handleEntityNotFound(_0x5b21c6,null))[_0x4c3226(0x181)](respondWithResult(_0x5b21c6,null))[_0x4c3226(0x13e)](handleError(_0x5b21c6,null));},exports[a304_0x49a94a(0x164)]=function(_0x44dca0,_0x5446b0){const _0x1329cd=a304_0x49a94a;return db[_0x1329cd(0x174)][_0x1329cd(0x164)](_0x44dca0['body'],{})['then'](respondWithResult(_0x5446b0,0xc9))[_0x1329cd(0x13e)](handleError(_0x5446b0,null));},exports[a304_0x49a94a(0x16b)]=function(_0xe7cdaf,_0x28d579){const _0x3f395e=a304_0x49a94a;return _0xe7cdaf[_0x3f395e(0x141)]['id']&&delete _0xe7cdaf['body']['id'],db[_0x3f395e(0x174)]['findOne']({'where':{'id':_0xe7cdaf[_0x3f395e(0x142)]['id']}})['then'](handleEntityNotFound(_0x28d579,null))[_0x3f395e(0x181)](saveUpdates(_0xe7cdaf['body'],null))[_0x3f395e(0x181)](respondWithResult(_0x28d579,null))[_0x3f395e(0x13e)](handleError(_0x28d579,null));},exports[a304_0x49a94a(0x155)]=function(_0x12c3b0,_0x46a174){const _0x17067b=a304_0x49a94a;return db[_0x17067b(0x174)]['findOne']({'where':{'id':_0x12c3b0['params']['id']}})[_0x17067b(0x181)](handleEntityNotFound(_0x46a174,null))[_0x17067b(0x181)](removeEntity(_0x46a174,null))[_0x17067b(0x13e)](handleError(_0x46a174,null));},exports['getConfigurations']=function(_0x2de3e2,_0x2b7887){const _0x29f505=a304_0x49a94a;let _0x4188d8={};const _0x1e4b3f={};let _0x2d605f,_0x1485c9;return db['FreshdeskAccount'][_0x29f505(0x15c)]({'where':{'id':_0x2de3e2['params']['id']}})['then'](handleEntityNotFound(_0x2b7887,null))[_0x29f505(0x181)](function(_0x2746f1){const _0x5e8c10=_0x29f505;if(_0x2746f1)return _0x2d605f=_0x2746f1,_0x1e4b3f[_0x5e8c10(0x15d)]=_['keys'](db['FreshdeskConfiguration'][_0x5e8c10(0x12f)]),_0x1e4b3f[_0x5e8c10(0x167)]=_[_0x5e8c10(0x153)](_0x2de3e2[_0x5e8c10(0x167)]),_0x1e4b3f[_0x5e8c10(0x132)]=_[_0x5e8c10(0x16e)](_0x1e4b3f[_0x5e8c10(0x15d)],_0x1e4b3f[_0x5e8c10(0x167)]),_0x4188d8['attributes']=_[_0x5e8c10(0x16e)](_0x1e4b3f[_0x5e8c10(0x15d)],qs['fields'](_0x2de3e2['query'][_0x5e8c10(0x177)])),_0x4188d8['attributes']=_0x4188d8['attributes'][_0x5e8c10(0x13c)]?_0x4188d8['attributes']:_0x1e4b3f[_0x5e8c10(0x15d)],_0x4188d8[_0x5e8c10(0x148)]=qs[_0x5e8c10(0x133)](_0x2de3e2[_0x5e8c10(0x167)][_0x5e8c10(0x133)]),_0x4188d8[_0x5e8c10(0x173)]=qs[_0x5e8c10(0x132)](_[_0x5e8c10(0x145)](_0x2de3e2[_0x5e8c10(0x167)],_0x1e4b3f[_0x5e8c10(0x132)])),_0x2de3e2['query'][_0x5e8c10(0x16f)]&&(_0x4188d8['where']=_[_0x5e8c10(0x147)](_0x4188d8[_0x5e8c10(0x173)],{[Op['or']]:_[_0x5e8c10(0x166)](_0x4188d8['attributes'],function(_0x13fb5a){const _0x34e07d=_0x5e8c10,_0x21afd8={};return _0x21afd8[_0x13fb5a]={[Op[_0x34e07d(0x179)]]:'%'+_0x2de3e2[_0x34e07d(0x167)]['filter']+'%'},_0x21afd8;})})),_0x4188d8=_[_0x5e8c10(0x147)]({},_0x4188d8,_0x2de3e2['options']),_0x2d605f['getConfigurations'](_0x4188d8);})['then'](function(_0x1e7083){const _0x10f378=_0x29f505;if(_0x1e7083)return _0x1485c9=_0x1e7083[_0x10f378(0x13c)],typeof _0x2de3e2[_0x10f378(0x167)][_0x10f378(0x170)]==='undefined'&&(_0x4188d8[_0x10f378(0x12d)]=qs[_0x10f378(0x12d)](_0x2de3e2['query'][_0x10f378(0x12d)]),_0x4188d8[_0x10f378(0x149)]=qs[_0x10f378(0x149)](_0x2de3e2[_0x10f378(0x167)][_0x10f378(0x149)])),_0x2d605f[_0x10f378(0x17b)](_0x4188d8);})[_0x29f505(0x181)](function(_0x2a6c40){if(_0x2a6c40)return _0x2a6c40?{'count':_0x1485c9,'rows':_0x2a6c40}:null;})[_0x29f505(0x181)](respondWithResult(_0x2b7887,null))[_0x29f505(0x13e)](handleError(_0x2b7887,null));},exports[a304_0x49a94a(0x187)]=function(_0x522b53,_0x13ec19){const _0x5100ff=a304_0x49a94a;return _0x522b53[_0x5100ff(0x141)]['id']&&delete _0x522b53[_0x5100ff(0x141)]['id'],db[_0x5100ff(0x174)][_0x5100ff(0x15c)]({'where':{'id':_0x522b53[_0x5100ff(0x142)]['id']}})[_0x5100ff(0x181)](handleEntityNotFound(_0x13ec19,null))[_0x5100ff(0x181)](function(_0x4bf62d){const _0x550660=_0x5100ff;if(_0x4bf62d)return _0x522b53[_0x550660(0x141)][_0x550660(0x171)]=_0x4bf62d['id'],_0x522b53['body'][_0x550660(0x14d)]=integrations[_0x550660(0x13d)](_0x522b53[_0x550660(0x141)][_0x550660(0x14e)],_0x522b53[_0x550660(0x141)][_0x550660(0x15e)]),_0x522b53[_0x550660(0x141)]['Descriptions']=integrations[_0x550660(0x160)](_0x522b53[_0x550660(0x141)]['channel'],_0x522b53[_0x550660(0x141)][_0x550660(0x15e)]),db[_0x550660(0x13f)][_0x550660(0x164)](_0x522b53[_0x550660(0x141)],{'include':[{'model':db['FreshdeskField'],'as':_0x550660(0x14d)},{'model':db[_0x550660(0x158)],'as':'Descriptions'}]});return null;})[_0x5100ff(0x181)](respondWithResult(_0x13ec19,null))['catch'](handleError(_0x13ec19,null));},exports[a304_0x49a94a(0x176)]=function(_0x4b954e,_0x4ba75f){const _0x416dfb=a304_0x49a94a;let _0x101a88='';return db[_0x416dfb(0x174)][_0x416dfb(0x15c)]({'where':{'id':_0x4b954e[_0x416dfb(0x142)]['id']},'attributes':['id','remoteUri',_0x416dfb(0x17c)]})[_0x416dfb(0x181)](handleEntityNotFound(_0x4ba75f,null))['then'](function(_0x50c176){const _0x392d72=_0x416dfb;if(_0x50c176){_0x101a88=_0x50c176[_0x392d72(0x139)];const _0x1e14a5=_0x101a88[_0x392d72(0x140)](-0x1);return _0x1e14a5==='/'&&(_0x101a88=_0x101a88['substring'](0x0,_0x101a88[_0x392d72(0x14f)](_0x1e14a5))),rp({'method':'GET','uri':util['format'](_0x392d72(0x135),_0x101a88,'api/v2/ticket_fields'),'headers':{'Authorization':util['format'](_0x392d72(0x152),Buffer[_0x392d72(0x172)](util[_0x392d72(0x134)](_0x392d72(0x185),_0x50c176['apiKey']))[_0x392d72(0x165)](_0x392d72(0x14c)))},'json':!![]});}})[_0x416dfb(0x181)](function(_0x2adc8a){const _0x5808a6=_0x416dfb;if(_0x2adc8a){const _0x1a64cf=[_0x5808a6(0x168),_0x5808a6(0x12c),_0x5808a6(0x12b),'description',_0x5808a6(0x136),_0x5808a6(0x157),_0x5808a6(0x182),_0x5808a6(0x16c),_0x5808a6(0x130),_0x5808a6(0x182),'company'];return _['remove'](_0x2adc8a,function(_0x45e872){const _0x5bd872=_0x5808a6;return _0x1a64cf[_0x5bd872(0x161)](_0x45e872['name'])||!_0x45e872[_0x5bd872(0x13b)]&&_0x45e872['type']!==_0x5bd872(0x16a)&&_0x45e872[_0x5bd872(0x15e)]!==_0x5bd872(0x163);}),{'count':_0x2adc8a[_0x5808a6(0x13c)],'rows':_['map'](_0x2adc8a,function(_0x1b7c67){const _0x2805cd=_0x5808a6;return{'id':_0x1b7c67[_0x2805cd(0x15f)],'name':_0x1b7c67[_0x2805cd(0x159)],'custom':!_0x1b7c67[_0x2805cd(0x13b)],'options':_0x1b7c67['choices']?_[_0x2805cd(0x166)](_0x1b7c67[_0x2805cd(0x178)],function(_0x29ee96){const _0xa712b5=_0x2805cd;return{'name':_[_0xa712b5(0x151)](_0x29ee96),'value':_0x29ee96};}):[]};})};}})[_0x416dfb(0x181)](respondWithResult(_0x4ba75f,null))[_0x416dfb(0x13e)](function(_0x4ba871){const _0x4c99fe=_0x416dfb;let _0x32229b=_0x4b954e[_0x4c99fe(0x167)][_0x4c99fe(0x15b)]?0x1f4:_0x4ba871[_0x4c99fe(0x143)]||0x1f4;logger['error'](_0x4c99fe(0x183),'getFields',_0x32229b,JSON['stringify'](_0x4ba871)),delete _0x4ba871[_0x4c99fe(0x15f)],_0x32229b===0x191&&(_0x32229b=0x190),_0x4ba75f[_0x4c99fe(0x136)](_0x32229b)[_0x4c99fe(0x16d)](_0x4b954e[_0x4c99fe(0x167)][_0x4c99fe(0x15b)]?{'message':_0x4c99fe(0x13a),'statusCode':_0x4ba871[_0x4c99fe(0x143)]}:_0x4ba871);});}; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js index dc272e3..ccff771 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js @@ -1 +1 @@ -const a305_0x1057=['exports','function','./intFreshdeskAccount.attributes','FreshdeskAccount','sequelize','./intFreshdeskAccount.options','init'];(function(_0x16f6be,_0x17420f){const _0x1057d8=function(_0x253e05){while(--_0x253e05){_0x16f6be['push'](_0x16f6be['shift']());}};_0x1057d8(++_0x17420f);}(a305_0x1057,0x1df));const a305_0x253e=function(_0x16f6be,_0x17420f){_0x16f6be=_0x16f6be-0x144;let _0x1057d8=a305_0x1057[_0x16f6be];return _0x1057d8;};const a305_0x3b2e33=a305_0x253e;'use strict';const {Model}=require(a305_0x3b2e33(0x145)),{attributes}=require(a305_0x3b2e33(0x14a)),{options}=require(a305_0x3b2e33(0x146));class FreshdeskAccount extends Model{}function init(_0x5b43a6,_0x52b3b5){const _0x11c672=a305_0x3b2e33,_0x549df7=options(_0x5b43a6),_0x4fa149=typeof _0x52b3b5===_0x11c672(0x149)?_0x52b3b5(_0x549df7):_0x549df7;return FreshdeskAccount[_0x11c672(0x147)](attributes,_0x4fa149),FreshdeskAccount;}module['exports'][a305_0x3b2e33(0x144)]=FreshdeskAccount,module[a305_0x3b2e33(0x148)][a305_0x3b2e33(0x147)]=init; \ No newline at end of file +const a305_0x132a=['./intFreshdeskAccount.attributes','init','FreshdeskAccount','sequelize','./intFreshdeskAccount.options','exports'];(function(_0x47245f,_0x525793){const _0x132a45=function(_0x3102ff){while(--_0x3102ff){_0x47245f['push'](_0x47245f['shift']());}};_0x132a45(++_0x525793);}(a305_0x132a,0x1c3));const a305_0x3102=function(_0x47245f,_0x525793){_0x47245f=_0x47245f-0x1e7;let _0x132a45=a305_0x132a[_0x47245f];return _0x132a45;};const a305_0x5da3d3=a305_0x3102;'use strict';const {Model}=require(a305_0x5da3d3(0x1e9)),{attributes}=require(a305_0x5da3d3(0x1ec)),{options}=require(a305_0x5da3d3(0x1ea));class FreshdeskAccount extends Model{}function init(_0x5fcfbe,_0x2cb509){const _0x3a2b1e=a305_0x5da3d3,_0x1d7446=options(_0x5fcfbe),_0x180d00=typeof _0x2cb509==='function'?_0x2cb509(_0x1d7446):_0x1d7446;return FreshdeskAccount[_0x3a2b1e(0x1e7)](attributes,_0x180d00),FreshdeskAccount;}module[a305_0x5da3d3(0x1eb)][a305_0x5da3d3(0x1e8)]=FreshdeskAccount,module[a305_0x5da3d3(0x1eb)]['init']=init; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.options.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.options.js index 6a1d351..d97090d 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.options.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.options.js @@ -1 +1 @@ -var a306_0x5203=['exports','options'];(function(_0x51cac1,_0x322187){var _0x520337=function(_0x33fbdf){while(--_0x33fbdf){_0x51cac1['push'](_0x51cac1['shift']());}};_0x520337(++_0x322187);}(a306_0x5203,0x1a4));var a306_0x33fb=function(_0x51cac1,_0x322187){_0x51cac1=_0x51cac1-0x158;var _0x520337=a306_0x5203[_0x51cac1];return _0x520337;};var a306_0x135ec7=a306_0x33fb;function options(_0x3e4904){return{'sequelize':_0x3e4904,'tableName':'int_freshdesk_accounts','paranoid':![],'indexes':[],'timestamps':!![]};}module[a306_0x135ec7(0x158)][a306_0x135ec7(0x159)]=options; \ No newline at end of file +var a306_0x38cf=['exports','options','int_freshdesk_accounts'];(function(_0x2abcb7,_0xcfd5e8){var _0x38cf39=function(_0x44e41f){while(--_0x44e41f){_0x2abcb7['push'](_0x2abcb7['shift']());}};_0x38cf39(++_0xcfd5e8);}(a306_0x38cf,0x83));var a306_0x44e4=function(_0x2abcb7,_0xcfd5e8){_0x2abcb7=_0x2abcb7-0x1b4;var _0x38cf39=a306_0x38cf[_0x2abcb7];return _0x38cf39;};var a306_0x4530c6=a306_0x44e4;function options(_0xbd757e){var _0x4de524=a306_0x44e4;return{'sequelize':_0xbd757e,'tableName':_0x4de524(0x1b4),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a306_0x4530c6(0x1b5)][a306_0x4530c6(0x1b6)]=options; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js index 0cb14d8..a151596 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js @@ -1 +1 @@ -const a307_0x5b01=['error','stringify','model','options','include','GetFreshdeskAccount','rpc','map','where','catch','limit','findOne','attributes','FreshdeskAccount','../../config/logger','raw','message','debug','then','ShowFreshdeskAccount','info'];(function(_0x42eddf,_0x3d25b0){const _0x5b0184=function(_0x56d75d){while(--_0x56d75d){_0x42eddf['push'](_0x42eddf['shift']());}};_0x5b0184(++_0x3d25b0);}(a307_0x5b01,0xa2));const a307_0x56d7=function(_0x42eddf,_0x3d25b0){_0x42eddf=_0x42eddf-0x1a6;let _0x5b0184=a307_0x5b01[_0x42eddf];return _0x5b0184;};const a307_0xbc8723=a307_0x56d7;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require(a307_0xbc8723(0x1ba))(a307_0xbc8723(0x1b2));exports[a307_0xbc8723(0x1b1)]=function(_0x30b4f9){const _0x393cf8=this;return new Promise(function(_0x472168,_0x48d102){const _0x322c63=a307_0x56d7;return db[_0x322c63(0x1b9)]['findAll']({'raw':_0x30b4f9[_0x322c63(0x1af)]?_0x30b4f9[_0x322c63(0x1af)]['raw']===undefined?!![]:![]:!![],'where':_0x30b4f9[_0x322c63(0x1af)]?_0x30b4f9['options'][_0x322c63(0x1b4)]||null:null,'attributes':_0x30b4f9[_0x322c63(0x1af)]?_0x30b4f9[_0x322c63(0x1af)][_0x322c63(0x1b8)]||null:null,'limit':_0x30b4f9['options']?_0x30b4f9['options'][_0x322c63(0x1b6)]||null:null,'include':_0x30b4f9[_0x322c63(0x1af)]?_0x30b4f9[_0x322c63(0x1af)][_0x322c63(0x1b0)]?_['map'](_0x30b4f9[_0x322c63(0x1af)][_0x322c63(0x1b0)],function(_0x2d113e){const _0x716a7a=_0x322c63;return{'model':db[_0x2d113e[_0x716a7a(0x1ae)]],'as':_0x2d113e['as'],'attributes':_0x2d113e[_0x716a7a(0x1b8)],'include':_0x2d113e['include']?_['map'](_0x2d113e[_0x716a7a(0x1b0)],function(_0xcd5f47){const _0x29242e=_0x716a7a;return{'model':db[_0xcd5f47[_0x29242e(0x1ae)]],'as':_0xcd5f47['as'],'attributes':_0xcd5f47[_0x29242e(0x1b8)],'include':_0xcd5f47[_0x29242e(0x1b0)]?_[_0x29242e(0x1b3)](_0xcd5f47[_0x29242e(0x1b0)],function(_0x32858c){const _0x7df8ea=_0x29242e;return{'model':db[_0x32858c[_0x7df8ea(0x1ae)]],'as':_0x32858c['as'],'attributes':_0x32858c[_0x7df8ea(0x1b8)]};}):[]};}):[]};}):[]:[]})[_0x322c63(0x1a9)](function(_0x302ce9){const _0x4f5de6=_0x322c63;logger['info'](_0x4f5de6(0x1b1),_0x30b4f9),logger[_0x4f5de6(0x1a8)]('GetFreshdeskAccount',_0x30b4f9,JSON['stringify'](_0x302ce9)),_0x472168(_0x302ce9);})[_0x322c63(0x1b5)](function(_0x4fe098){const _0x56cd31=_0x322c63;logger[_0x56cd31(0x1ac)](_0x56cd31(0x1b1),_0x4fe098['message'],_0x30b4f9),_0x48d102(_0x393cf8[_0x56cd31(0x1ac)](0x1f4,_0x4fe098[_0x56cd31(0x1a7)]));});});},exports[a307_0xbc8723(0x1aa)]=function(_0x32aeea){const _0x23a458=this;return new Promise(function(_0x59a3d4,_0x240496){const _0x505764=a307_0x56d7;return db[_0x505764(0x1b9)][_0x505764(0x1b7)]({'raw':_0x32aeea['options']?_0x32aeea[_0x505764(0x1af)][_0x505764(0x1a6)]===undefined?!![]:![]:!![],'where':_0x32aeea[_0x505764(0x1af)]?_0x32aeea[_0x505764(0x1af)]['where']||null:null,'attributes':_0x32aeea[_0x505764(0x1af)]?_0x32aeea[_0x505764(0x1af)][_0x505764(0x1b8)]||null:null,'include':_0x32aeea[_0x505764(0x1af)]?_0x32aeea['options'][_0x505764(0x1b0)]?_[_0x505764(0x1b3)](_0x32aeea['options'][_0x505764(0x1b0)],function(_0x28f3fc){const _0x3348ec=_0x505764;return{'model':db[_0x28f3fc[_0x3348ec(0x1ae)]],'as':_0x28f3fc['as'],'attributes':_0x28f3fc[_0x3348ec(0x1b8)],'include':_0x28f3fc['include']?_[_0x3348ec(0x1b3)](_0x28f3fc[_0x3348ec(0x1b0)],function(_0x3d8209){const _0x106284=_0x3348ec;return{'model':db[_0x3d8209[_0x106284(0x1ae)]],'as':_0x3d8209['as'],'attributes':_0x3d8209[_0x106284(0x1b8)],'include':_0x3d8209[_0x106284(0x1b0)]?_['map'](_0x3d8209[_0x106284(0x1b0)],function(_0x1e73c4){const _0x47141f=_0x106284;return{'model':db[_0x1e73c4[_0x47141f(0x1ae)]],'as':_0x1e73c4['as'],'attributes':_0x1e73c4[_0x47141f(0x1b8)]};}):[]};}):[]};}):[]:[]})[_0x505764(0x1a9)](function(_0x3cb512){const _0x2dc043=_0x505764;logger[_0x2dc043(0x1ab)](_0x2dc043(0x1aa),_0x32aeea),logger[_0x2dc043(0x1a8)](_0x2dc043(0x1aa),_0x32aeea,JSON[_0x2dc043(0x1ad)](_0x3cb512)),_0x59a3d4(_0x3cb512);})[_0x505764(0x1b5)](function(_0x10caa7){const _0x139e4f=_0x505764;logger[_0x139e4f(0x1ac)](_0x139e4f(0x1aa),_0x10caa7[_0x139e4f(0x1a7)],_0x32aeea),_0x240496(_0x23a458[_0x139e4f(0x1ac)](0x1f4,_0x10caa7['message']));});});}; \ No newline at end of file +const a307_0x33c1=['then','GetFreshdeskAccount','raw','../../mysqldb','include','lodash','debug','error','where','model','ShowFreshdeskAccount','message','findAll','options','map','info','../../config/logger','FreshdeskAccount','limit','catch','attributes'];(function(_0xe7d2d,_0x37af1d){const _0x33c1a1=function(_0x1926d6){while(--_0x1926d6){_0xe7d2d['push'](_0xe7d2d['shift']());}};_0x33c1a1(++_0x37af1d);}(a307_0x33c1,0xc2));const a307_0x1926=function(_0xe7d2d,_0x37af1d){_0xe7d2d=_0xe7d2d-0x153;let _0x33c1a1=a307_0x33c1[_0xe7d2d];return _0x33c1a1;};const a307_0x149976=a307_0x1926;'use strict';const _=require(a307_0x149976(0x153)),db=require(a307_0x149976(0x166))['db'],logger=require(a307_0x149976(0x15e))('rpc');exports['GetFreshdeskAccount']=function(_0x4ac072){const _0x5a0e49=this;return new Promise(function(_0x4f3c82,_0x4b9b92){const _0x914c08=a307_0x1926;return db['FreshdeskAccount'][_0x914c08(0x15a)]({'raw':_0x4ac072[_0x914c08(0x15b)]?_0x4ac072['options'][_0x914c08(0x165)]===undefined?!![]:![]:!![],'where':_0x4ac072['options']?_0x4ac072[_0x914c08(0x15b)][_0x914c08(0x156)]||null:null,'attributes':_0x4ac072[_0x914c08(0x15b)]?_0x4ac072[_0x914c08(0x15b)][_0x914c08(0x162)]||null:null,'limit':_0x4ac072[_0x914c08(0x15b)]?_0x4ac072[_0x914c08(0x15b)][_0x914c08(0x160)]||null:null,'include':_0x4ac072['options']?_0x4ac072[_0x914c08(0x15b)][_0x914c08(0x167)]?_[_0x914c08(0x15c)](_0x4ac072[_0x914c08(0x15b)][_0x914c08(0x167)],function(_0x28a273){const _0x4d93b8=_0x914c08;return{'model':db[_0x28a273[_0x4d93b8(0x157)]],'as':_0x28a273['as'],'attributes':_0x28a273[_0x4d93b8(0x162)],'include':_0x28a273[_0x4d93b8(0x167)]?_[_0x4d93b8(0x15c)](_0x28a273['include'],function(_0x47259e){const _0x3ed2eb=_0x4d93b8;return{'model':db[_0x47259e[_0x3ed2eb(0x157)]],'as':_0x47259e['as'],'attributes':_0x47259e[_0x3ed2eb(0x162)],'include':_0x47259e['include']?_[_0x3ed2eb(0x15c)](_0x47259e[_0x3ed2eb(0x167)],function(_0x153946){const _0x374e6c=_0x3ed2eb;return{'model':db[_0x153946['model']],'as':_0x153946['as'],'attributes':_0x153946[_0x374e6c(0x162)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4d1af1){const _0x4a9114=_0x914c08;logger['info']('GetFreshdeskAccount',_0x4ac072),logger[_0x4a9114(0x154)](_0x4a9114(0x164),_0x4ac072,JSON['stringify'](_0x4d1af1)),_0x4f3c82(_0x4d1af1);})[_0x914c08(0x161)](function(_0x2d2e4a){const _0x1a9199=_0x914c08;logger['error'](_0x1a9199(0x164),_0x2d2e4a['message'],_0x4ac072),_0x4b9b92(_0x5a0e49[_0x1a9199(0x155)](0x1f4,_0x2d2e4a[_0x1a9199(0x159)]));});});},exports[a307_0x149976(0x158)]=function(_0x2f207f){const _0x1f5843=this;return new Promise(function(_0x3355c7,_0x3b51c7){const _0x24b0f5=a307_0x1926;return db[_0x24b0f5(0x15f)]['findOne']({'raw':_0x2f207f[_0x24b0f5(0x15b)]?_0x2f207f[_0x24b0f5(0x15b)]['raw']===undefined?!![]:![]:!![],'where':_0x2f207f[_0x24b0f5(0x15b)]?_0x2f207f['options']['where']||null:null,'attributes':_0x2f207f[_0x24b0f5(0x15b)]?_0x2f207f['options'][_0x24b0f5(0x162)]||null:null,'include':_0x2f207f[_0x24b0f5(0x15b)]?_0x2f207f[_0x24b0f5(0x15b)][_0x24b0f5(0x167)]?_[_0x24b0f5(0x15c)](_0x2f207f[_0x24b0f5(0x15b)][_0x24b0f5(0x167)],function(_0x28744a){const _0x5f1051=_0x24b0f5;return{'model':db[_0x28744a[_0x5f1051(0x157)]],'as':_0x28744a['as'],'attributes':_0x28744a[_0x5f1051(0x162)],'include':_0x28744a[_0x5f1051(0x167)]?_[_0x5f1051(0x15c)](_0x28744a['include'],function(_0x5bef50){const _0x57de3b=_0x5f1051;return{'model':db[_0x5bef50[_0x57de3b(0x157)]],'as':_0x5bef50['as'],'attributes':_0x5bef50[_0x57de3b(0x162)],'include':_0x5bef50[_0x57de3b(0x167)]?_[_0x57de3b(0x15c)](_0x5bef50[_0x57de3b(0x167)],function(_0x5b7cf2){const _0x42d694=_0x57de3b;return{'model':db[_0x5b7cf2[_0x42d694(0x157)]],'as':_0x5b7cf2['as'],'attributes':_0x5b7cf2[_0x42d694(0x162)]};}):[]};}):[]};}):[]:[]})[_0x24b0f5(0x163)](function(_0x18eff3){const _0x214fdf=_0x24b0f5;logger[_0x214fdf(0x15d)](_0x214fdf(0x158),_0x2f207f),logger[_0x214fdf(0x154)]('ShowFreshdeskAccount',_0x2f207f,JSON['stringify'](_0x18eff3)),_0x3355c7(_0x18eff3);})[_0x24b0f5(0x161)](function(_0x577304){const _0x522637=_0x24b0f5;logger[_0x522637(0x155)](_0x522637(0x158),_0x577304['message'],_0x2f207f),_0x3b51c7(_0x1f5843[_0x522637(0x155)](0x1f4,_0x577304[_0x522637(0x159)]));});});}; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/index.js b/server/api/intFreshdeskConfiguration/index.js index e37359a..80a7115 100644 --- a/server/api/intFreshdeskConfiguration/index.js +++ b/server/api/intFreshdeskConfiguration/index.js @@ -1 +1 @@ -const a308_0x2d7c=['getDescriptions','/:id','/:id/descriptions','index','update','create','isAuthenticated','./intFreshdeskConfiguration.controller','../../components/auth/service','setTags','getTags','destroy','get','/:id/tags','exports','Router'];(function(_0x5d71e7,_0x1b9381){const _0x2d7c3b=function(_0x44fd9b){while(--_0x44fd9b){_0x5d71e7['push'](_0x5d71e7['shift']());}};_0x2d7c3b(++_0x1b9381);}(a308_0x2d7c,0x77));const a308_0x44fd=function(_0x5d71e7,_0x1b9381){_0x5d71e7=_0x5d71e7-0xa9;let _0x2d7c3b=a308_0x2d7c[_0x5d71e7];return _0x2d7c3b;};const a308_0x5cd19b=a308_0x44fd;'use strict';const express=require('express'),router=express[a308_0x5cd19b(0xb1)](),auth=require(a308_0x5cd19b(0xaa)),controller=require(a308_0x5cd19b(0xa9));router[a308_0x5cd19b(0xae)]('/',auth[a308_0x5cd19b(0xb8)](),controller[a308_0x5cd19b(0xb5)]),router[a308_0x5cd19b(0xae)]('/:id',auth[a308_0x5cd19b(0xb8)](),controller['show']),router[a308_0x5cd19b(0xae)]('/:id/fields',auth[a308_0x5cd19b(0xb8)](),controller['getFields']),router[a308_0x5cd19b(0xae)]('/:id/subjects',auth[a308_0x5cd19b(0xb8)](),controller['getSubjects']),router[a308_0x5cd19b(0xae)](a308_0x5cd19b(0xb4),auth[a308_0x5cd19b(0xb8)](),controller[a308_0x5cd19b(0xb2)]),router[a308_0x5cd19b(0xae)](a308_0x5cd19b(0xaf),auth[a308_0x5cd19b(0xb8)](),controller[a308_0x5cd19b(0xac)]),router['post']('/',auth[a308_0x5cd19b(0xb8)](),controller[a308_0x5cd19b(0xb7)]),router['post'](a308_0x5cd19b(0xaf),auth[a308_0x5cd19b(0xb8)](),controller[a308_0x5cd19b(0xab)]),router['put'](a308_0x5cd19b(0xb3),auth['isAuthenticated'](),controller[a308_0x5cd19b(0xb6)]),router['delete'](a308_0x5cd19b(0xb3),auth[a308_0x5cd19b(0xb8)](),controller[a308_0x5cd19b(0xad)]),module[a308_0x5cd19b(0xb0)]=router; \ No newline at end of file +const a308_0xff35=['/:id/fields','./intFreshdeskConfiguration.controller','isAuthenticated','index','show','/:id','getFields','create','getTags','post','delete','../../components/auth/service','/:id/tags','getDescriptions','get','/:id/descriptions','express','/:id/subjects','put'];(function(_0x3c4fa4,_0x1bcdd8){const _0xff3513=function(_0x7d931a){while(--_0x7d931a){_0x3c4fa4['push'](_0x3c4fa4['shift']());}};_0xff3513(++_0x1bcdd8);}(a308_0xff35,0x1bb));const a308_0x7d93=function(_0x3c4fa4,_0x1bcdd8){_0x3c4fa4=_0x3c4fa4-0xdc;let _0xff3513=a308_0xff35[_0x3c4fa4];return _0xff3513;};const a308_0x16403f=a308_0x7d93;'use strict';const express=require(a308_0x16403f(0xe6)),router=express['Router'](),auth=require(a308_0x16403f(0xe1)),controller=require(a308_0x16403f(0xea));router['get']('/',auth[a308_0x16403f(0xeb)](),controller[a308_0x16403f(0xec)]),router[a308_0x16403f(0xe4)](a308_0x16403f(0xee),auth['isAuthenticated'](),controller[a308_0x16403f(0xed)]),router[a308_0x16403f(0xe4)](a308_0x16403f(0xe9),auth[a308_0x16403f(0xeb)](),controller[a308_0x16403f(0xdc)]),router[a308_0x16403f(0xe4)](a308_0x16403f(0xe7),auth[a308_0x16403f(0xeb)](),controller['getSubjects']),router[a308_0x16403f(0xe4)](a308_0x16403f(0xe5),auth['isAuthenticated'](),controller[a308_0x16403f(0xe3)]),router['get'](a308_0x16403f(0xe2),auth[a308_0x16403f(0xeb)](),controller[a308_0x16403f(0xde)]),router[a308_0x16403f(0xdf)]('/',auth['isAuthenticated'](),controller[a308_0x16403f(0xdd)]),router['post'](a308_0x16403f(0xe2),auth[a308_0x16403f(0xeb)](),controller['setTags']),router[a308_0x16403f(0xe8)]('/:id',auth[a308_0x16403f(0xeb)](),controller['update']),router[a308_0x16403f(0xe0)](a308_0x16403f(0xee),auth[a308_0x16403f(0xeb)](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js index d1e8a8d..c3d5eae 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js @@ -1 +1 @@ -const a309_0x272d=['attributes','sequelize','STRING','exports'];(function(_0x4a0bba,_0xff1673){const _0x272d52=function(_0x1f4b1f){while(--_0x1f4b1f){_0x4a0bba['push'](_0x4a0bba['shift']());}};_0x272d52(++_0xff1673);}(a309_0x272d,0x116));const a309_0x1f4b=function(_0x4a0bba,_0xff1673){_0x4a0bba=_0x4a0bba-0x1ef;let _0x272d52=a309_0x272d[_0x4a0bba];return _0x272d52;};const a309_0x373111=a309_0x1f4b;'use strict';const {DataTypes}=require(a309_0x373111(0x1f2)),attributes={'name':{'type':DataTypes[a309_0x373111(0x1ef)]},'description':{'type':DataTypes[a309_0x373111(0x1ef)]}};module[a309_0x373111(0x1f0)][a309_0x373111(0x1f1)]=attributes; \ No newline at end of file +const a309_0xb4f5=['sequelize','attributes','STRING'];(function(_0x533f44,_0x2de024){const _0xb4f506=function(_0x26b6d8){while(--_0x26b6d8){_0x533f44['push'](_0x533f44['shift']());}};_0xb4f506(++_0x2de024);}(a309_0xb4f5,0x189));const a309_0x26b6=function(_0x533f44,_0x2de024){_0x533f44=_0x533f44-0x12f;let _0xb4f506=a309_0xb4f5[_0x533f44];return _0xb4f506;};const a309_0x246daf=a309_0x26b6;'use strict';const {DataTypes}=require(a309_0x246daf(0x12f)),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a309_0x246daf(0x131)]}};module['exports'][a309_0x246daf(0x130)]=attributes; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js index beff214..f8aed7c 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js @@ -1 +1 @@ -const a310_0x405e=['catch','filter','includeAll','count','create','api','fields','status','options','filters','undefined','getDescriptions','findOne','query','limit','key','fieldName','end','order','getFields','getTags','setTags','length','update','merge','like','then','nolimit','VIRTUAL','index','intersection','map','../../mysqldb','type','show','rows','set','body','FreshdeskConfiguration','lodash','ids','model','offset','send','stack','sequelize','name','where','keys','json','params','pick','error','sort','include','attributes','destroy','FreshdeskField','Content-Range','rawAttributes','../../config/logger','getSubjects'];(function(_0x2f6df9,_0x4604d1){const _0x405e2b=function(_0x213fb9){while(--_0x213fb9){_0x2f6df9['push'](_0x2f6df9['shift']());}};_0x405e2b(++_0x4604d1);}(a310_0x405e,0xcd));const a310_0x213f=function(_0x2f6df9,_0x4604d1){_0x2f6df9=_0x2f6df9-0x1ad;let _0x405e2b=a310_0x405e[_0x2f6df9];return _0x405e2b;};const a310_0x4ec898=a310_0x213f;'use strict';const _=require(a310_0x4ec898(0x1c1)),qs=require('../../components/parsers/qs'),logger=require(a310_0x4ec898(0x1d6))(a310_0x4ec898(0x1dd)),{db}=require(a310_0x4ec898(0x1ba)),{Op}=require(a310_0x4ec898(0x1c7));function respondWithResult(_0x5d3e70,_0x4f10c0){return _0x4f10c0=_0x4f10c0||0xc8,function(_0x572cb6){const _0x2d188a=a310_0x213f;if(_0x572cb6)return _0x5d3e70[_0x2d188a(0x1df)](_0x4f10c0)[_0x2d188a(0x1cb)](_0x572cb6);};}function respondWithFilteredResult(_0x228e02,_0x754107){return function(_0x10adb8){const _0x126f3b=a310_0x213f;if(_0x10adb8){const _0x160700=_0x10adb8[_0x126f3b(0x1db)],_0x5a100d=_0x754107[_0x126f3b(0x1c4)];let _0x1e1492=_0x754107[_0x126f3b(0x1c4)]+_0x754107[_0x126f3b(0x1e6)],_0x36833f;return _0x1e1492>=_0x160700?(_0x1e1492=_0x160700,_0x36833f=0xc8):_0x36833f=0xce,_0x228e02[_0x126f3b(0x1df)](_0x36833f),_0x228e02[_0x126f3b(0x1be)](_0x126f3b(0x1d4),_0x5a100d+'-'+_0x1e1492+'/'+_0x160700)['json'](_0x10adb8);}return null;};}function saveUpdates(_0x5313e7){return function(_0x5ccfb5){const _0xf9e473=a310_0x213f;if(_0x5ccfb5)return _0x5ccfb5[_0xf9e473(0x1b1)](_0x5313e7)[_0xf9e473(0x1b4)](function(_0x1d543f){return _0x1d543f;});return null;};}function removeEntity(_0x564d2e){return function(_0x315ddf){const _0x39c10f=a310_0x213f;if(_0x315ddf)return _0x315ddf[_0x39c10f(0x1d2)]()[_0x39c10f(0x1b4)](function(){const _0x946236=_0x39c10f;_0x564d2e[_0x946236(0x1df)](0xcc)[_0x946236(0x1e9)]();});};}function handleEntityNotFound(_0x326984){return function(_0x36ec2c){return!_0x36ec2c&&_0x326984['sendStatus'](0x194),_0x36ec2c;};}function handleError(_0x436253,_0x117b85){return _0x117b85=_0x117b85||0x1f4,function(_0x3cc3fb){const _0x2fc7f3=a310_0x213f;logger[_0x2fc7f3(0x1ce)](_0x3cc3fb[_0x2fc7f3(0x1c6)]),_0x3cc3fb[_0x2fc7f3(0x1c8)]&&delete _0x3cc3fb['name'],_0x436253['status'](_0x117b85)[_0x2fc7f3(0x1c5)](_0x3cc3fb);};}exports[a310_0x4ec898(0x1b7)]=function(_0x50a45b,_0x2e8480){const _0x4cca78=a310_0x4ec898;let _0x25c6ee={};const _0x3aa965={},_0x4dcb13={'count':0x0,'rows':[]},_0x2b797f=_[_0x4cca78(0x1b9)](db[_0x4cca78(0x1c0)][_0x4cca78(0x1d5)],function(_0x457243){const _0x167937=_0x4cca78;return{'name':_0x457243[_0x167937(0x1e8)],'type':_0x457243['type'][_0x167937(0x1e7)]};});_0x3aa965[_0x4cca78(0x1c3)]=_[_0x4cca78(0x1b9)](_0x2b797f,'name'),_0x3aa965[_0x4cca78(0x1e5)]=_[_0x4cca78(0x1ca)](_0x50a45b[_0x4cca78(0x1e5)]),_0x3aa965[_0x4cca78(0x1e1)]=_['intersection'](_0x3aa965[_0x4cca78(0x1c3)],_0x3aa965[_0x4cca78(0x1e5)]),_0x25c6ee[_0x4cca78(0x1d1)]=_[_0x4cca78(0x1b8)](_0x3aa965[_0x4cca78(0x1c3)],qs[_0x4cca78(0x1de)](_0x50a45b[_0x4cca78(0x1e5)][_0x4cca78(0x1de)])),_0x25c6ee['attributes']=_0x25c6ee[_0x4cca78(0x1d1)][_0x4cca78(0x1b0)]?_0x25c6ee[_0x4cca78(0x1d1)]:_0x3aa965['model'];typeof _0x50a45b[_0x4cca78(0x1e5)]['nolimit']===_0x4cca78(0x1e2)&&(_0x25c6ee['limit']=qs[_0x4cca78(0x1e6)](_0x50a45b[_0x4cca78(0x1e5)]['limit']),_0x25c6ee['offset']=qs[_0x4cca78(0x1c4)](_0x50a45b[_0x4cca78(0x1e5)][_0x4cca78(0x1c4)]));_0x25c6ee[_0x4cca78(0x1ea)]=qs[_0x4cca78(0x1cf)](_0x50a45b['query'][_0x4cca78(0x1cf)]),_0x25c6ee['where']=qs['filters'](_['pick'](_0x50a45b[_0x4cca78(0x1e5)],_0x3aa965[_0x4cca78(0x1e1)]),_0x2b797f);_0x50a45b[_0x4cca78(0x1e5)][_0x4cca78(0x1d9)]&&(_0x25c6ee['where']=_[_0x4cca78(0x1b2)](_0x25c6ee[_0x4cca78(0x1c9)],{[Op['or']]:_['map'](_0x2b797f,function(_0x56340c){const _0x1b48b6=_0x4cca78;if(_0x56340c[_0x1b48b6(0x1bb)]!==_0x1b48b6(0x1b6)){const _0x5e603c={};return _0x5e603c[_0x56340c[_0x1b48b6(0x1c8)]]={[Op[_0x1b48b6(0x1b3)]]:'%'+_0x50a45b[_0x1b48b6(0x1e5)][_0x1b48b6(0x1d9)]+'%'},_0x5e603c;}})}));_0x25c6ee=_[_0x4cca78(0x1b2)]({},_0x25c6ee,_0x50a45b[_0x4cca78(0x1e0)]);const _0x4cd774={'where':_0x25c6ee[_0x4cca78(0x1c9)]};return db['FreshdeskConfiguration'][_0x4cca78(0x1db)](_0x4cd774)[_0x4cca78(0x1b4)](function(_0x277598){const _0x2b49b8=_0x4cca78;return _0x4dcb13[_0x2b49b8(0x1db)]=_0x277598,_0x50a45b[_0x2b49b8(0x1e5)][_0x2b49b8(0x1da)]&&(_0x25c6ee[_0x2b49b8(0x1d0)]=[{'all':!![]}]),db[_0x2b49b8(0x1c0)]['findAll'](_0x25c6ee);})[_0x4cca78(0x1b4)](function(_0x4845ef){const _0x1c8207=_0x4cca78;return _0x4dcb13[_0x1c8207(0x1bd)]=_0x4845ef,_0x4dcb13;})[_0x4cca78(0x1b4)](respondWithFilteredResult(_0x2e8480,_0x25c6ee))[_0x4cca78(0x1d8)](handleError(_0x2e8480,null));},exports[a310_0x4ec898(0x1bc)]=function(_0x24a43e,_0x26943e){const _0x2cc4ee=a310_0x4ec898;let _0x3970c8={'raw':![],'where':{'id':_0x24a43e[_0x2cc4ee(0x1cc)]['id']}};const _0x588e08={};return _0x588e08[_0x2cc4ee(0x1c3)]=_[_0x2cc4ee(0x1ca)](db[_0x2cc4ee(0x1c0)][_0x2cc4ee(0x1d5)]),_0x588e08[_0x2cc4ee(0x1e5)]=_[_0x2cc4ee(0x1ca)](_0x24a43e['query']),_0x588e08[_0x2cc4ee(0x1e1)]=_[_0x2cc4ee(0x1b8)](_0x588e08[_0x2cc4ee(0x1c3)],_0x588e08['query']),_0x3970c8[_0x2cc4ee(0x1d1)]=_[_0x2cc4ee(0x1b8)](_0x588e08[_0x2cc4ee(0x1c3)],qs[_0x2cc4ee(0x1de)](_0x24a43e['query'][_0x2cc4ee(0x1de)])),_0x3970c8[_0x2cc4ee(0x1d1)]=_0x3970c8[_0x2cc4ee(0x1d1)][_0x2cc4ee(0x1b0)]?_0x3970c8[_0x2cc4ee(0x1d1)]:_0x588e08['model'],_0x24a43e[_0x2cc4ee(0x1e5)][_0x2cc4ee(0x1da)]&&(_0x3970c8[_0x2cc4ee(0x1d0)]=[{'all':!![]}]),_0x3970c8=_[_0x2cc4ee(0x1b2)]({},_0x3970c8,_0x24a43e['options']),db['FreshdeskConfiguration'][_0x2cc4ee(0x1e4)](_0x3970c8)[_0x2cc4ee(0x1b4)](handleEntityNotFound(_0x26943e,null))[_0x2cc4ee(0x1b4)](respondWithResult(_0x26943e,null))[_0x2cc4ee(0x1d8)](handleError(_0x26943e,null));},exports[a310_0x4ec898(0x1dc)]=function(_0x2319d6,_0x4d7083){const _0x2fa0ba=a310_0x4ec898;return db[_0x2fa0ba(0x1c0)][_0x2fa0ba(0x1dc)](_0x2319d6[_0x2fa0ba(0x1bf)],{})[_0x2fa0ba(0x1b4)](respondWithResult(_0x4d7083,0xc9))['catch'](handleError(_0x4d7083,null));},exports[a310_0x4ec898(0x1b1)]=function(_0x40cb91,_0x1fdf18){const _0x2df926=a310_0x4ec898;return _0x40cb91[_0x2df926(0x1bf)]['id']&&delete _0x40cb91[_0x2df926(0x1bf)]['id'],db[_0x2df926(0x1c0)]['findOne']({'where':{'id':_0x40cb91[_0x2df926(0x1cc)]['id']}})[_0x2df926(0x1b4)](handleEntityNotFound(_0x1fdf18,null))[_0x2df926(0x1b4)](saveUpdates(_0x40cb91['body'],null))[_0x2df926(0x1b4)](respondWithResult(_0x1fdf18,null))['catch'](handleError(_0x1fdf18,null));},exports['destroy']=function(_0x56eacf,_0x52bfd3){const _0x2f3204=a310_0x4ec898;return db[_0x2f3204(0x1c0)]['findOne']({'where':{'id':_0x56eacf[_0x2f3204(0x1cc)]['id']}})[_0x2f3204(0x1b4)](handleEntityNotFound(_0x52bfd3,null))[_0x2f3204(0x1b4)](removeEntity(_0x52bfd3,null))[_0x2f3204(0x1d8)](handleError(_0x52bfd3,null));},exports[a310_0x4ec898(0x1ad)]=function(_0x3dcacd,_0x6faeaa){const _0x38fefd=a310_0x4ec898;let _0x117cc2={};const _0x53ac1d={};let _0xdb80de,_0x3b2a51;return db[_0x38fefd(0x1c0)][_0x38fefd(0x1e4)]({'where':{'id':_0x3dcacd[_0x38fefd(0x1cc)]['id']}})[_0x38fefd(0x1b4)](handleEntityNotFound(_0x6faeaa,null))[_0x38fefd(0x1b4)](function(_0x35f556){const _0x5645f7=_0x38fefd;if(_0x35f556)return _0xdb80de=_0x35f556,_0x53ac1d['model']=_[_0x5645f7(0x1ca)](db[_0x5645f7(0x1d3)][_0x5645f7(0x1d5)]),_0x53ac1d['query']=_[_0x5645f7(0x1ca)](_0x3dcacd[_0x5645f7(0x1e5)]),_0x53ac1d['filters']=_[_0x5645f7(0x1b8)](_0x53ac1d['model'],_0x53ac1d['query']),_0x117cc2[_0x5645f7(0x1d1)]=_[_0x5645f7(0x1b8)](_0x53ac1d[_0x5645f7(0x1c3)],qs[_0x5645f7(0x1de)](_0x3dcacd[_0x5645f7(0x1e5)][_0x5645f7(0x1de)])),_0x117cc2[_0x5645f7(0x1d1)]=_0x117cc2[_0x5645f7(0x1d1)][_0x5645f7(0x1b0)]?_0x117cc2[_0x5645f7(0x1d1)]:_0x53ac1d['model'],_0x117cc2[_0x5645f7(0x1ea)]=qs['sort'](_0x3dcacd[_0x5645f7(0x1e5)][_0x5645f7(0x1cf)]),_0x117cc2[_0x5645f7(0x1c9)]=qs[_0x5645f7(0x1e1)](_['pick'](_0x3dcacd['query'],_0x53ac1d[_0x5645f7(0x1e1)])),_0x3dcacd[_0x5645f7(0x1e5)][_0x5645f7(0x1d9)]&&(_0x117cc2['where']=_['merge'](_0x117cc2[_0x5645f7(0x1c9)],{[Op['or']]:_['map'](_0x117cc2[_0x5645f7(0x1d1)],function(_0x40830d){const _0x1026d2=_0x5645f7,_0x83b346={};return _0x83b346[_0x40830d]={[Op[_0x1026d2(0x1b3)]]:'%'+_0x3dcacd[_0x1026d2(0x1e5)][_0x1026d2(0x1d9)]+'%'},_0x83b346;})})),_0x117cc2=_[_0x5645f7(0x1b2)]({},_0x117cc2,_0x3dcacd['options']),_0xdb80de[_0x5645f7(0x1ad)](_0x117cc2);})[_0x38fefd(0x1b4)](function(_0x22b684){const _0x57380b=_0x38fefd;if(_0x22b684)return _0x3b2a51=_0x22b684['length'],typeof _0x3dcacd[_0x57380b(0x1e5)][_0x57380b(0x1b5)]===_0x57380b(0x1e2)&&(_0x117cc2[_0x57380b(0x1e6)]=qs[_0x57380b(0x1e6)](_0x3dcacd[_0x57380b(0x1e5)]['limit']),_0x117cc2[_0x57380b(0x1c4)]=qs['offset'](_0x3dcacd[_0x57380b(0x1e5)][_0x57380b(0x1c4)])),_0xdb80de['getFields'](_0x117cc2);})['then'](function(_0x314996){if(_0x314996)return _0x314996?{'count':_0x3b2a51,'rows':_0x314996}:null;})[_0x38fefd(0x1b4)](respondWithResult(_0x6faeaa,null))[_0x38fefd(0x1d8)](handleError(_0x6faeaa,null));},exports[a310_0x4ec898(0x1d7)]=function(_0x1c41f3,_0x139494){const _0x37e6d0=a310_0x4ec898;let _0x519c81={};const _0x124c86={};let _0x3b6289,_0x3062db;return db['FreshdeskConfiguration'][_0x37e6d0(0x1e4)]({'where':{'id':_0x1c41f3[_0x37e6d0(0x1cc)]['id']}})[_0x37e6d0(0x1b4)](handleEntityNotFound(_0x139494,null))[_0x37e6d0(0x1b4)](function(_0x52b7ae){const _0x96248b=_0x37e6d0;if(_0x52b7ae)return _0x3b6289=_0x52b7ae,_0x124c86['model']=_[_0x96248b(0x1ca)](db[_0x96248b(0x1d3)][_0x96248b(0x1d5)]),_0x124c86[_0x96248b(0x1e5)]=_[_0x96248b(0x1ca)](_0x1c41f3[_0x96248b(0x1e5)]),_0x124c86['filters']=_[_0x96248b(0x1b8)](_0x124c86[_0x96248b(0x1c3)],_0x124c86['query']),_0x519c81[_0x96248b(0x1d1)]=_['intersection'](_0x124c86[_0x96248b(0x1c3)],qs[_0x96248b(0x1de)](_0x1c41f3['query']['fields'])),_0x519c81[_0x96248b(0x1d1)]=_0x519c81[_0x96248b(0x1d1)]['length']?_0x519c81[_0x96248b(0x1d1)]:_0x124c86[_0x96248b(0x1c3)],_0x519c81[_0x96248b(0x1ea)]=qs[_0x96248b(0x1cf)](_0x1c41f3[_0x96248b(0x1e5)][_0x96248b(0x1cf)]),_0x519c81[_0x96248b(0x1c9)]=qs[_0x96248b(0x1e1)](_[_0x96248b(0x1cd)](_0x1c41f3[_0x96248b(0x1e5)],_0x124c86[_0x96248b(0x1e1)])),_0x1c41f3[_0x96248b(0x1e5)]['filter']&&(_0x519c81[_0x96248b(0x1c9)]=_[_0x96248b(0x1b2)](_0x519c81[_0x96248b(0x1c9)],{[Op['or']]:_[_0x96248b(0x1b9)](_0x519c81['attributes'],function(_0x4ff73f){const _0x129800=_0x96248b,_0x5399ff={};return _0x5399ff[_0x4ff73f]={[Op[_0x129800(0x1b3)]]:'%'+_0x1c41f3['query'][_0x129800(0x1d9)]+'%'},_0x5399ff;})})),_0x519c81=_[_0x96248b(0x1b2)]({},_0x519c81,_0x1c41f3[_0x96248b(0x1e0)]),_0x3b6289[_0x96248b(0x1d7)](_0x519c81);})[_0x37e6d0(0x1b4)](function(_0x324fae){const _0x4f822d=_0x37e6d0;if(_0x324fae)return _0x3062db=_0x324fae['length'],typeof _0x1c41f3[_0x4f822d(0x1e5)][_0x4f822d(0x1b5)]===_0x4f822d(0x1e2)&&(_0x519c81[_0x4f822d(0x1e6)]=qs[_0x4f822d(0x1e6)](_0x1c41f3[_0x4f822d(0x1e5)][_0x4f822d(0x1e6)]),_0x519c81[_0x4f822d(0x1c4)]=qs['offset'](_0x1c41f3[_0x4f822d(0x1e5)][_0x4f822d(0x1c4)])),_0x3b6289[_0x4f822d(0x1d7)](_0x519c81);})[_0x37e6d0(0x1b4)](function(_0x36cbc1){if(_0x36cbc1)return _0x36cbc1?{'count':_0x3062db,'rows':_0x36cbc1}:null;})[_0x37e6d0(0x1b4)](respondWithResult(_0x139494,null))[_0x37e6d0(0x1d8)](handleError(_0x139494,null));},exports[a310_0x4ec898(0x1e3)]=function(_0x518988,_0x39e262){const _0x2a2044=a310_0x4ec898;let _0x43b35a={};const _0x5dd850={};let _0x308041,_0x5963d7;return db[_0x2a2044(0x1c0)][_0x2a2044(0x1e4)]({'where':{'id':_0x518988[_0x2a2044(0x1cc)]['id']}})[_0x2a2044(0x1b4)](handleEntityNotFound(_0x39e262,null))[_0x2a2044(0x1b4)](function(_0x131951){const _0x424ca8=_0x2a2044;if(_0x131951)return _0x308041=_0x131951,_0x5dd850[_0x424ca8(0x1c3)]=_[_0x424ca8(0x1ca)](db[_0x424ca8(0x1d3)]['rawAttributes']),_0x5dd850[_0x424ca8(0x1e5)]=_['keys'](_0x518988[_0x424ca8(0x1e5)]),_0x5dd850[_0x424ca8(0x1e1)]=_[_0x424ca8(0x1b8)](_0x5dd850[_0x424ca8(0x1c3)],_0x5dd850[_0x424ca8(0x1e5)]),_0x43b35a[_0x424ca8(0x1d1)]=_[_0x424ca8(0x1b8)](_0x5dd850['model'],qs[_0x424ca8(0x1de)](_0x518988['query']['fields'])),_0x43b35a[_0x424ca8(0x1d1)]=_0x43b35a[_0x424ca8(0x1d1)][_0x424ca8(0x1b0)]?_0x43b35a['attributes']:_0x5dd850[_0x424ca8(0x1c3)],_0x43b35a[_0x424ca8(0x1ea)]=qs[_0x424ca8(0x1cf)](_0x518988[_0x424ca8(0x1e5)][_0x424ca8(0x1cf)]),_0x43b35a[_0x424ca8(0x1c9)]=qs[_0x424ca8(0x1e1)](_[_0x424ca8(0x1cd)](_0x518988[_0x424ca8(0x1e5)],_0x5dd850['filters'])),_0x518988[_0x424ca8(0x1e5)][_0x424ca8(0x1d9)]&&(_0x43b35a['where']=_[_0x424ca8(0x1b2)](_0x43b35a[_0x424ca8(0x1c9)],{[Op['or']]:_['map'](_0x43b35a[_0x424ca8(0x1d1)],function(_0x571482){const _0x2d248f=_0x424ca8,_0x355d65={};return _0x355d65[_0x571482]={[Op['like']]:'%'+_0x518988['query'][_0x2d248f(0x1d9)]+'%'},_0x355d65;})})),_0x43b35a=_[_0x424ca8(0x1b2)]({},_0x43b35a,_0x518988['options']),_0x308041[_0x424ca8(0x1e3)](_0x43b35a);})['then'](function(_0xfd9f2e){const _0x59f618=_0x2a2044;if(_0xfd9f2e)return _0x5963d7=_0xfd9f2e[_0x59f618(0x1b0)],typeof _0x518988[_0x59f618(0x1e5)]['nolimit']===_0x59f618(0x1e2)&&(_0x43b35a['limit']=qs[_0x59f618(0x1e6)](_0x518988[_0x59f618(0x1e5)]['limit']),_0x43b35a[_0x59f618(0x1c4)]=qs[_0x59f618(0x1c4)](_0x518988[_0x59f618(0x1e5)]['offset'])),_0x308041[_0x59f618(0x1e3)](_0x43b35a);})[_0x2a2044(0x1b4)](function(_0x5b4c39){if(_0x5b4c39)return _0x5b4c39?{'count':_0x5963d7,'rows':_0x5b4c39}:null;})[_0x2a2044(0x1b4)](respondWithResult(_0x39e262,null))[_0x2a2044(0x1d8)](handleError(_0x39e262,null));},exports[a310_0x4ec898(0x1ae)]=function(_0x17b02e,_0x3aaff6){const _0x38bf8d=a310_0x4ec898;let _0x3da2a5={};const _0x264e7d={};let _0x5d945f,_0x28cb77;return db[_0x38bf8d(0x1c0)][_0x38bf8d(0x1e4)]({'where':{'id':_0x17b02e['params']['id']}})[_0x38bf8d(0x1b4)](handleEntityNotFound(_0x3aaff6,null))[_0x38bf8d(0x1b4)](function(_0x29142b){const _0x10b014=_0x38bf8d;if(_0x29142b)return _0x5d945f=_0x29142b,_0x264e7d['model']=_[_0x10b014(0x1ca)](db['Tag'][_0x10b014(0x1d5)]),_0x264e7d[_0x10b014(0x1e5)]=_['keys'](_0x17b02e[_0x10b014(0x1e5)]),_0x264e7d['filters']=_[_0x10b014(0x1b8)](_0x264e7d[_0x10b014(0x1c3)],_0x264e7d[_0x10b014(0x1e5)]),_0x3da2a5[_0x10b014(0x1d1)]=_[_0x10b014(0x1b8)](_0x264e7d['model'],qs[_0x10b014(0x1de)](_0x17b02e[_0x10b014(0x1e5)][_0x10b014(0x1de)])),_0x3da2a5[_0x10b014(0x1d1)]=_0x3da2a5[_0x10b014(0x1d1)][_0x10b014(0x1b0)]?_0x3da2a5[_0x10b014(0x1d1)]:_0x264e7d[_0x10b014(0x1c3)],_0x3da2a5[_0x10b014(0x1ea)]=qs[_0x10b014(0x1cf)](_0x17b02e[_0x10b014(0x1e5)][_0x10b014(0x1cf)]),_0x3da2a5[_0x10b014(0x1c9)]=qs['filters'](_[_0x10b014(0x1cd)](_0x17b02e[_0x10b014(0x1e5)],_0x264e7d['filters'])),_0x17b02e[_0x10b014(0x1e5)][_0x10b014(0x1d9)]&&(_0x3da2a5[_0x10b014(0x1c9)]=_[_0x10b014(0x1b2)](_0x3da2a5['where'],{[Op['or']]:_[_0x10b014(0x1b9)](_0x3da2a5[_0x10b014(0x1d1)],function(_0x3d9e1a){const _0x271ff9=_0x10b014,_0x3d424a={};return _0x3d424a[_0x3d9e1a]={[Op[_0x271ff9(0x1b3)]]:'%'+_0x17b02e['query']['filter']+'%'},_0x3d424a;})})),_0x3da2a5=_[_0x10b014(0x1b2)]({},_0x3da2a5,_0x17b02e[_0x10b014(0x1e0)]),_0x5d945f[_0x10b014(0x1ae)](_0x3da2a5);})[_0x38bf8d(0x1b4)](function(_0x59a6a1){const _0x55af36=_0x38bf8d;if(_0x59a6a1)return _0x28cb77=_0x59a6a1['length'],typeof _0x17b02e[_0x55af36(0x1e5)]['nolimit']===_0x55af36(0x1e2)&&(_0x3da2a5[_0x55af36(0x1e6)]=qs[_0x55af36(0x1e6)](_0x17b02e['query'][_0x55af36(0x1e6)]),_0x3da2a5[_0x55af36(0x1c4)]=qs[_0x55af36(0x1c4)](_0x17b02e[_0x55af36(0x1e5)][_0x55af36(0x1c4)])),_0x5d945f[_0x55af36(0x1ae)](_0x3da2a5);})['then'](function(_0x48a407){if(_0x48a407)return _0x48a407?{'count':_0x28cb77,'rows':_0x48a407}:null;})[_0x38bf8d(0x1b4)](respondWithResult(_0x3aaff6,null))['catch'](handleError(_0x3aaff6,null));},exports[a310_0x4ec898(0x1af)]=function(_0x45506c,_0xa5a8de){const _0x220093=a310_0x4ec898;return _0x45506c[_0x220093(0x1bf)]['id']&&delete _0x45506c[_0x220093(0x1bf)]['id'],db[_0x220093(0x1c0)][_0x220093(0x1e4)]({'where':{'id':_0x45506c[_0x220093(0x1cc)]['id']}})[_0x220093(0x1b4)](handleEntityNotFound(_0xa5a8de,null))['then'](function(_0x3bc691){const _0x45ec2f=_0x220093;if(_0x3bc691)return _0x3bc691[_0x45ec2f(0x1af)](_0x45506c['body'][_0x45ec2f(0x1c2)]||[]);return null;})['then'](respondWithResult(_0xa5a8de,null))['catch'](handleError(_0xa5a8de,null));}; \ No newline at end of file +const a310_0x344d=['length','getTags','undefined','destroy','filters','model','where','sendStatus','offset','getFields','pick','send','../../config/logger','attributes','../../components/parsers/qs','FreshdeskConfiguration','map','type','fieldName','Content-Range','getSubjects','intersection','merge','findAll','update','order','stack','includeAll','query','setTags','sort','fields','create','keys','options','ids','set','catch','count','include','end','like','getDescriptions','api','json','status','show','then','limit','../../mysqldb','nolimit','error','rawAttributes','findOne','filter','params','name','FreshdeskField','sequelize','body'];(function(_0x2117d1,_0x57fa76){const _0x344d0b=function(_0x4f3c0c){while(--_0x4f3c0c){_0x2117d1['push'](_0x2117d1['shift']());}};_0x344d0b(++_0x57fa76);}(a310_0x344d,0x1b8));const a310_0x4f3c=function(_0x2117d1,_0x57fa76){_0x2117d1=_0x2117d1-0x13e;let _0x344d0b=a310_0x344d[_0x2117d1];return _0x344d0b;};const a310_0x368f72=a310_0x4f3c;'use strict';const _=require('lodash'),qs=require(a310_0x368f72(0x174)),logger=require(a310_0x368f72(0x172))(a310_0x368f72(0x155)),{db}=require(a310_0x368f72(0x15b)),{Op}=require(a310_0x368f72(0x164));function respondWithResult(_0x164c5e,_0x55eb70){return _0x55eb70=_0x55eb70||0xc8,function(_0x40c4cb){if(_0x40c4cb)return _0x164c5e['status'](_0x55eb70)['json'](_0x40c4cb);};}function respondWithFilteredResult(_0x20e6f2,_0x2e7191){return function(_0x593644){const _0x48d99e=a310_0x4f3c;if(_0x593644){const _0x423869=_0x593644['count'],_0x227b53=_0x2e7191['offset'];let _0x31e4f=_0x2e7191[_0x48d99e(0x16e)]+_0x2e7191[_0x48d99e(0x15a)],_0x5ee59b;return _0x31e4f>=_0x423869?(_0x31e4f=_0x423869,_0x5ee59b=0xc8):_0x5ee59b=0xce,_0x20e6f2[_0x48d99e(0x157)](_0x5ee59b),_0x20e6f2[_0x48d99e(0x14e)](_0x48d99e(0x179),_0x227b53+'-'+_0x31e4f+'/'+_0x423869)[_0x48d99e(0x156)](_0x593644);}return null;};}function saveUpdates(_0x246a8c){return function(_0x7df3fe){const _0x3bae37=a310_0x4f3c;if(_0x7df3fe)return _0x7df3fe[_0x3bae37(0x142)](_0x246a8c)[_0x3bae37(0x159)](function(_0x25566e){return _0x25566e;});return null;};}function removeEntity(_0x2658e1){return function(_0x5c41ac){const _0x1f9219=a310_0x4f3c;if(_0x5c41ac)return _0x5c41ac[_0x1f9219(0x169)]()[_0x1f9219(0x159)](function(){const _0x3bfa6d=_0x1f9219;_0x2658e1['status'](0xcc)[_0x3bfa6d(0x152)]();});};}function handleEntityNotFound(_0xb9f9b4){return function(_0x2ec9f4){const _0x18cd6b=a310_0x4f3c;return!_0x2ec9f4&&_0xb9f9b4[_0x18cd6b(0x16d)](0x194),_0x2ec9f4;};}function handleError(_0x412311,_0x122c67){return _0x122c67=_0x122c67||0x1f4,function(_0x538852){const _0x290e99=a310_0x4f3c;logger[_0x290e99(0x15d)](_0x538852[_0x290e99(0x144)]),_0x538852[_0x290e99(0x162)]&&delete _0x538852['name'],_0x412311[_0x290e99(0x157)](_0x122c67)[_0x290e99(0x171)](_0x538852);};}exports['index']=function(_0x44ade7,_0x9cfaef){const _0xdcbc54=a310_0x368f72;let _0x396ae3={};const _0x2c036b={},_0x5b60e6={'count':0x0,'rows':[]},_0x4bb640=_[_0xdcbc54(0x176)](db['FreshdeskConfiguration']['rawAttributes'],function(_0x39fa75){const _0x532ffb=_0xdcbc54;return{'name':_0x39fa75[_0x532ffb(0x178)],'type':_0x39fa75[_0x532ffb(0x177)]['key']};});_0x2c036b[_0xdcbc54(0x16b)]=_[_0xdcbc54(0x176)](_0x4bb640,'name'),_0x2c036b[_0xdcbc54(0x146)]=_[_0xdcbc54(0x14b)](_0x44ade7[_0xdcbc54(0x146)]),_0x2c036b[_0xdcbc54(0x16a)]=_[_0xdcbc54(0x13f)](_0x2c036b[_0xdcbc54(0x16b)],_0x2c036b[_0xdcbc54(0x146)]),_0x396ae3[_0xdcbc54(0x173)]=_[_0xdcbc54(0x13f)](_0x2c036b[_0xdcbc54(0x16b)],qs[_0xdcbc54(0x149)](_0x44ade7[_0xdcbc54(0x146)][_0xdcbc54(0x149)])),_0x396ae3[_0xdcbc54(0x173)]=_0x396ae3[_0xdcbc54(0x173)][_0xdcbc54(0x166)]?_0x396ae3['attributes']:_0x2c036b[_0xdcbc54(0x16b)];typeof _0x44ade7[_0xdcbc54(0x146)][_0xdcbc54(0x15c)]===_0xdcbc54(0x168)&&(_0x396ae3[_0xdcbc54(0x15a)]=qs['limit'](_0x44ade7['query'][_0xdcbc54(0x15a)]),_0x396ae3['offset']=qs[_0xdcbc54(0x16e)](_0x44ade7[_0xdcbc54(0x146)][_0xdcbc54(0x16e)]));_0x396ae3[_0xdcbc54(0x143)]=qs[_0xdcbc54(0x148)](_0x44ade7[_0xdcbc54(0x146)][_0xdcbc54(0x148)]),_0x396ae3[_0xdcbc54(0x16c)]=qs['filters'](_['pick'](_0x44ade7[_0xdcbc54(0x146)],_0x2c036b[_0xdcbc54(0x16a)]),_0x4bb640);_0x44ade7[_0xdcbc54(0x146)][_0xdcbc54(0x160)]&&(_0x396ae3[_0xdcbc54(0x16c)]=_[_0xdcbc54(0x140)](_0x396ae3[_0xdcbc54(0x16c)],{[Op['or']]:_[_0xdcbc54(0x176)](_0x4bb640,function(_0x3e7532){const _0x3c2643=_0xdcbc54;if(_0x3e7532[_0x3c2643(0x177)]!=='VIRTUAL'){const _0x44f6f8={};return _0x44f6f8[_0x3e7532['name']]={[Op[_0x3c2643(0x153)]]:'%'+_0x44ade7[_0x3c2643(0x146)][_0x3c2643(0x160)]+'%'},_0x44f6f8;}})}));_0x396ae3=_[_0xdcbc54(0x140)]({},_0x396ae3,_0x44ade7[_0xdcbc54(0x14c)]);const _0x21fa1a={'where':_0x396ae3[_0xdcbc54(0x16c)]};return db[_0xdcbc54(0x175)][_0xdcbc54(0x150)](_0x21fa1a)[_0xdcbc54(0x159)](function(_0x53cebe){const _0x7b6fbe=_0xdcbc54;return _0x5b60e6[_0x7b6fbe(0x150)]=_0x53cebe,_0x44ade7[_0x7b6fbe(0x146)][_0x7b6fbe(0x145)]&&(_0x396ae3[_0x7b6fbe(0x151)]=[{'all':!![]}]),db[_0x7b6fbe(0x175)][_0x7b6fbe(0x141)](_0x396ae3);})['then'](function(_0x11fa5c){return _0x5b60e6['rows']=_0x11fa5c,_0x5b60e6;})[_0xdcbc54(0x159)](respondWithFilteredResult(_0x9cfaef,_0x396ae3))[_0xdcbc54(0x14f)](handleError(_0x9cfaef,null));},exports[a310_0x368f72(0x158)]=function(_0x352b35,_0xd93af){const _0x4f1a22=a310_0x368f72;let _0x42e6c1={'raw':![],'where':{'id':_0x352b35['params']['id']}};const _0x5dd8ac={};return _0x5dd8ac[_0x4f1a22(0x16b)]=_[_0x4f1a22(0x14b)](db[_0x4f1a22(0x175)]['rawAttributes']),_0x5dd8ac['query']=_[_0x4f1a22(0x14b)](_0x352b35[_0x4f1a22(0x146)]),_0x5dd8ac[_0x4f1a22(0x16a)]=_[_0x4f1a22(0x13f)](_0x5dd8ac[_0x4f1a22(0x16b)],_0x5dd8ac[_0x4f1a22(0x146)]),_0x42e6c1['attributes']=_[_0x4f1a22(0x13f)](_0x5dd8ac[_0x4f1a22(0x16b)],qs[_0x4f1a22(0x149)](_0x352b35[_0x4f1a22(0x146)][_0x4f1a22(0x149)])),_0x42e6c1[_0x4f1a22(0x173)]=_0x42e6c1[_0x4f1a22(0x173)][_0x4f1a22(0x166)]?_0x42e6c1[_0x4f1a22(0x173)]:_0x5dd8ac[_0x4f1a22(0x16b)],_0x352b35['query'][_0x4f1a22(0x145)]&&(_0x42e6c1[_0x4f1a22(0x151)]=[{'all':!![]}]),_0x42e6c1=_['merge']({},_0x42e6c1,_0x352b35['options']),db[_0x4f1a22(0x175)][_0x4f1a22(0x15f)](_0x42e6c1)[_0x4f1a22(0x159)](handleEntityNotFound(_0xd93af,null))[_0x4f1a22(0x159)](respondWithResult(_0xd93af,null))['catch'](handleError(_0xd93af,null));},exports[a310_0x368f72(0x14a)]=function(_0x2686f2,_0x3ded0b){const _0x1e675f=a310_0x368f72;return db[_0x1e675f(0x175)][_0x1e675f(0x14a)](_0x2686f2[_0x1e675f(0x165)],{})[_0x1e675f(0x159)](respondWithResult(_0x3ded0b,0xc9))[_0x1e675f(0x14f)](handleError(_0x3ded0b,null));},exports['update']=function(_0x55a4c6,_0x5337f8){const _0x2fecbf=a310_0x368f72;return _0x55a4c6['body']['id']&&delete _0x55a4c6[_0x2fecbf(0x165)]['id'],db[_0x2fecbf(0x175)]['findOne']({'where':{'id':_0x55a4c6[_0x2fecbf(0x161)]['id']}})['then'](handleEntityNotFound(_0x5337f8,null))[_0x2fecbf(0x159)](saveUpdates(_0x55a4c6[_0x2fecbf(0x165)],null))[_0x2fecbf(0x159)](respondWithResult(_0x5337f8,null))[_0x2fecbf(0x14f)](handleError(_0x5337f8,null));},exports['destroy']=function(_0x25fd42,_0x545290){const _0x2937d3=a310_0x368f72;return db[_0x2937d3(0x175)][_0x2937d3(0x15f)]({'where':{'id':_0x25fd42[_0x2937d3(0x161)]['id']}})['then'](handleEntityNotFound(_0x545290,null))[_0x2937d3(0x159)](removeEntity(_0x545290,null))[_0x2937d3(0x14f)](handleError(_0x545290,null));},exports[a310_0x368f72(0x16f)]=function(_0x4158d0,_0x352858){const _0x327c7f=a310_0x368f72;let _0x52354c={};const _0x543fe5={};let _0x54a0ba,_0x434298;return db[_0x327c7f(0x175)][_0x327c7f(0x15f)]({'where':{'id':_0x4158d0[_0x327c7f(0x161)]['id']}})[_0x327c7f(0x159)](handleEntityNotFound(_0x352858,null))[_0x327c7f(0x159)](function(_0x29ba4f){const _0xdfc9ec=_0x327c7f;if(_0x29ba4f)return _0x54a0ba=_0x29ba4f,_0x543fe5[_0xdfc9ec(0x16b)]=_['keys'](db[_0xdfc9ec(0x163)]['rawAttributes']),_0x543fe5[_0xdfc9ec(0x146)]=_[_0xdfc9ec(0x14b)](_0x4158d0[_0xdfc9ec(0x146)]),_0x543fe5['filters']=_[_0xdfc9ec(0x13f)](_0x543fe5[_0xdfc9ec(0x16b)],_0x543fe5['query']),_0x52354c['attributes']=_[_0xdfc9ec(0x13f)](_0x543fe5[_0xdfc9ec(0x16b)],qs[_0xdfc9ec(0x149)](_0x4158d0[_0xdfc9ec(0x146)][_0xdfc9ec(0x149)])),_0x52354c[_0xdfc9ec(0x173)]=_0x52354c[_0xdfc9ec(0x173)][_0xdfc9ec(0x166)]?_0x52354c[_0xdfc9ec(0x173)]:_0x543fe5['model'],_0x52354c[_0xdfc9ec(0x143)]=qs['sort'](_0x4158d0['query'][_0xdfc9ec(0x148)]),_0x52354c[_0xdfc9ec(0x16c)]=qs[_0xdfc9ec(0x16a)](_[_0xdfc9ec(0x170)](_0x4158d0['query'],_0x543fe5[_0xdfc9ec(0x16a)])),_0x4158d0[_0xdfc9ec(0x146)][_0xdfc9ec(0x160)]&&(_0x52354c[_0xdfc9ec(0x16c)]=_[_0xdfc9ec(0x140)](_0x52354c[_0xdfc9ec(0x16c)],{[Op['or']]:_[_0xdfc9ec(0x176)](_0x52354c[_0xdfc9ec(0x173)],function(_0x35f5b7){const _0x417025=_0xdfc9ec,_0x57d55c={};return _0x57d55c[_0x35f5b7]={[Op['like']]:'%'+_0x4158d0[_0x417025(0x146)][_0x417025(0x160)]+'%'},_0x57d55c;})})),_0x52354c=_[_0xdfc9ec(0x140)]({},_0x52354c,_0x4158d0[_0xdfc9ec(0x14c)]),_0x54a0ba[_0xdfc9ec(0x16f)](_0x52354c);})[_0x327c7f(0x159)](function(_0x50a43d){const _0x1b2d53=_0x327c7f;if(_0x50a43d)return _0x434298=_0x50a43d[_0x1b2d53(0x166)],typeof _0x4158d0[_0x1b2d53(0x146)]['nolimit']===_0x1b2d53(0x168)&&(_0x52354c[_0x1b2d53(0x15a)]=qs[_0x1b2d53(0x15a)](_0x4158d0['query'][_0x1b2d53(0x15a)]),_0x52354c[_0x1b2d53(0x16e)]=qs[_0x1b2d53(0x16e)](_0x4158d0[_0x1b2d53(0x146)]['offset'])),_0x54a0ba['getFields'](_0x52354c);})['then'](function(_0x443768){if(_0x443768)return _0x443768?{'count':_0x434298,'rows':_0x443768}:null;})[_0x327c7f(0x159)](respondWithResult(_0x352858,null))[_0x327c7f(0x14f)](handleError(_0x352858,null));},exports[a310_0x368f72(0x13e)]=function(_0x56d6ee,_0xd064fa){const _0x34f39e=a310_0x368f72;let _0x4b2f59={};const _0x16b2b4={};let _0x22dce2,_0x38e284;return db[_0x34f39e(0x175)][_0x34f39e(0x15f)]({'where':{'id':_0x56d6ee[_0x34f39e(0x161)]['id']}})['then'](handleEntityNotFound(_0xd064fa,null))[_0x34f39e(0x159)](function(_0x20d0e1){const _0x2bcf62=_0x34f39e;if(_0x20d0e1)return _0x22dce2=_0x20d0e1,_0x16b2b4[_0x2bcf62(0x16b)]=_['keys'](db[_0x2bcf62(0x163)][_0x2bcf62(0x15e)]),_0x16b2b4[_0x2bcf62(0x146)]=_[_0x2bcf62(0x14b)](_0x56d6ee[_0x2bcf62(0x146)]),_0x16b2b4[_0x2bcf62(0x16a)]=_[_0x2bcf62(0x13f)](_0x16b2b4['model'],_0x16b2b4[_0x2bcf62(0x146)]),_0x4b2f59[_0x2bcf62(0x173)]=_[_0x2bcf62(0x13f)](_0x16b2b4[_0x2bcf62(0x16b)],qs[_0x2bcf62(0x149)](_0x56d6ee[_0x2bcf62(0x146)][_0x2bcf62(0x149)])),_0x4b2f59[_0x2bcf62(0x173)]=_0x4b2f59[_0x2bcf62(0x173)][_0x2bcf62(0x166)]?_0x4b2f59[_0x2bcf62(0x173)]:_0x16b2b4[_0x2bcf62(0x16b)],_0x4b2f59[_0x2bcf62(0x143)]=qs['sort'](_0x56d6ee[_0x2bcf62(0x146)][_0x2bcf62(0x148)]),_0x4b2f59[_0x2bcf62(0x16c)]=qs[_0x2bcf62(0x16a)](_[_0x2bcf62(0x170)](_0x56d6ee[_0x2bcf62(0x146)],_0x16b2b4[_0x2bcf62(0x16a)])),_0x56d6ee[_0x2bcf62(0x146)][_0x2bcf62(0x160)]&&(_0x4b2f59[_0x2bcf62(0x16c)]=_['merge'](_0x4b2f59['where'],{[Op['or']]:_[_0x2bcf62(0x176)](_0x4b2f59['attributes'],function(_0x26b673){const _0x59f517=_0x2bcf62,_0x4d4dfe={};return _0x4d4dfe[_0x26b673]={[Op[_0x59f517(0x153)]]:'%'+_0x56d6ee[_0x59f517(0x146)]['filter']+'%'},_0x4d4dfe;})})),_0x4b2f59=_['merge']({},_0x4b2f59,_0x56d6ee[_0x2bcf62(0x14c)]),_0x22dce2[_0x2bcf62(0x13e)](_0x4b2f59);})['then'](function(_0x4922ee){const _0x26fa58=_0x34f39e;if(_0x4922ee)return _0x38e284=_0x4922ee[_0x26fa58(0x166)],typeof _0x56d6ee[_0x26fa58(0x146)][_0x26fa58(0x15c)]===_0x26fa58(0x168)&&(_0x4b2f59['limit']=qs['limit'](_0x56d6ee[_0x26fa58(0x146)][_0x26fa58(0x15a)]),_0x4b2f59[_0x26fa58(0x16e)]=qs[_0x26fa58(0x16e)](_0x56d6ee[_0x26fa58(0x146)]['offset'])),_0x22dce2[_0x26fa58(0x13e)](_0x4b2f59);})[_0x34f39e(0x159)](function(_0x473e16){if(_0x473e16)return _0x473e16?{'count':_0x38e284,'rows':_0x473e16}:null;})[_0x34f39e(0x159)](respondWithResult(_0xd064fa,null))['catch'](handleError(_0xd064fa,null));},exports['getDescriptions']=function(_0x4fc8a3,_0x2cbdf3){const _0x56d9cd=a310_0x368f72;let _0x499d83={};const _0x1d5681={};let _0x4928d5,_0x11f16c;return db[_0x56d9cd(0x175)][_0x56d9cd(0x15f)]({'where':{'id':_0x4fc8a3['params']['id']}})['then'](handleEntityNotFound(_0x2cbdf3,null))['then'](function(_0x1ed099){const _0x1d6599=_0x56d9cd;if(_0x1ed099)return _0x4928d5=_0x1ed099,_0x1d5681[_0x1d6599(0x16b)]=_['keys'](db[_0x1d6599(0x163)][_0x1d6599(0x15e)]),_0x1d5681[_0x1d6599(0x146)]=_[_0x1d6599(0x14b)](_0x4fc8a3[_0x1d6599(0x146)]),_0x1d5681[_0x1d6599(0x16a)]=_[_0x1d6599(0x13f)](_0x1d5681[_0x1d6599(0x16b)],_0x1d5681['query']),_0x499d83['attributes']=_[_0x1d6599(0x13f)](_0x1d5681[_0x1d6599(0x16b)],qs[_0x1d6599(0x149)](_0x4fc8a3[_0x1d6599(0x146)][_0x1d6599(0x149)])),_0x499d83['attributes']=_0x499d83[_0x1d6599(0x173)]['length']?_0x499d83['attributes']:_0x1d5681[_0x1d6599(0x16b)],_0x499d83[_0x1d6599(0x143)]=qs['sort'](_0x4fc8a3['query']['sort']),_0x499d83[_0x1d6599(0x16c)]=qs['filters'](_['pick'](_0x4fc8a3[_0x1d6599(0x146)],_0x1d5681['filters'])),_0x4fc8a3[_0x1d6599(0x146)][_0x1d6599(0x160)]&&(_0x499d83[_0x1d6599(0x16c)]=_[_0x1d6599(0x140)](_0x499d83[_0x1d6599(0x16c)],{[Op['or']]:_[_0x1d6599(0x176)](_0x499d83[_0x1d6599(0x173)],function(_0xd1fe5){const _0x375e0e=_0x1d6599,_0x5ac523={};return _0x5ac523[_0xd1fe5]={[Op[_0x375e0e(0x153)]]:'%'+_0x4fc8a3[_0x375e0e(0x146)]['filter']+'%'},_0x5ac523;})})),_0x499d83=_[_0x1d6599(0x140)]({},_0x499d83,_0x4fc8a3[_0x1d6599(0x14c)]),_0x4928d5[_0x1d6599(0x154)](_0x499d83);})['then'](function(_0x356d00){const _0x5f26a8=_0x56d9cd;if(_0x356d00)return _0x11f16c=_0x356d00[_0x5f26a8(0x166)],typeof _0x4fc8a3[_0x5f26a8(0x146)][_0x5f26a8(0x15c)]===_0x5f26a8(0x168)&&(_0x499d83[_0x5f26a8(0x15a)]=qs['limit'](_0x4fc8a3[_0x5f26a8(0x146)]['limit']),_0x499d83[_0x5f26a8(0x16e)]=qs[_0x5f26a8(0x16e)](_0x4fc8a3['query'][_0x5f26a8(0x16e)])),_0x4928d5[_0x5f26a8(0x154)](_0x499d83);})[_0x56d9cd(0x159)](function(_0x4639f9){if(_0x4639f9)return _0x4639f9?{'count':_0x11f16c,'rows':_0x4639f9}:null;})[_0x56d9cd(0x159)](respondWithResult(_0x2cbdf3,null))['catch'](handleError(_0x2cbdf3,null));},exports[a310_0x368f72(0x167)]=function(_0x4b7fa4,_0x3c5ed0){const _0x3fed00=a310_0x368f72;let _0x3b8796={};const _0x2572a8={};let _0x5cef21,_0x517f4e;return db[_0x3fed00(0x175)][_0x3fed00(0x15f)]({'where':{'id':_0x4b7fa4[_0x3fed00(0x161)]['id']}})[_0x3fed00(0x159)](handleEntityNotFound(_0x3c5ed0,null))[_0x3fed00(0x159)](function(_0x1e3ffb){const _0x2a963c=_0x3fed00;if(_0x1e3ffb)return _0x5cef21=_0x1e3ffb,_0x2572a8['model']=_[_0x2a963c(0x14b)](db['Tag']['rawAttributes']),_0x2572a8[_0x2a963c(0x146)]=_[_0x2a963c(0x14b)](_0x4b7fa4[_0x2a963c(0x146)]),_0x2572a8[_0x2a963c(0x16a)]=_[_0x2a963c(0x13f)](_0x2572a8[_0x2a963c(0x16b)],_0x2572a8[_0x2a963c(0x146)]),_0x3b8796['attributes']=_[_0x2a963c(0x13f)](_0x2572a8[_0x2a963c(0x16b)],qs[_0x2a963c(0x149)](_0x4b7fa4[_0x2a963c(0x146)][_0x2a963c(0x149)])),_0x3b8796[_0x2a963c(0x173)]=_0x3b8796[_0x2a963c(0x173)][_0x2a963c(0x166)]?_0x3b8796[_0x2a963c(0x173)]:_0x2572a8[_0x2a963c(0x16b)],_0x3b8796['order']=qs[_0x2a963c(0x148)](_0x4b7fa4['query'][_0x2a963c(0x148)]),_0x3b8796[_0x2a963c(0x16c)]=qs[_0x2a963c(0x16a)](_[_0x2a963c(0x170)](_0x4b7fa4['query'],_0x2572a8[_0x2a963c(0x16a)])),_0x4b7fa4[_0x2a963c(0x146)]['filter']&&(_0x3b8796[_0x2a963c(0x16c)]=_[_0x2a963c(0x140)](_0x3b8796[_0x2a963c(0x16c)],{[Op['or']]:_[_0x2a963c(0x176)](_0x3b8796['attributes'],function(_0x392be1){const _0x446fc3=_0x2a963c,_0x3cc999={};return _0x3cc999[_0x392be1]={[Op['like']]:'%'+_0x4b7fa4['query'][_0x446fc3(0x160)]+'%'},_0x3cc999;})})),_0x3b8796=_[_0x2a963c(0x140)]({},_0x3b8796,_0x4b7fa4['options']),_0x5cef21[_0x2a963c(0x167)](_0x3b8796);})[_0x3fed00(0x159)](function(_0x3029f1){const _0x2ffc7a=_0x3fed00;if(_0x3029f1)return _0x517f4e=_0x3029f1[_0x2ffc7a(0x166)],typeof _0x4b7fa4[_0x2ffc7a(0x146)][_0x2ffc7a(0x15c)]===_0x2ffc7a(0x168)&&(_0x3b8796[_0x2ffc7a(0x15a)]=qs['limit'](_0x4b7fa4[_0x2ffc7a(0x146)][_0x2ffc7a(0x15a)]),_0x3b8796[_0x2ffc7a(0x16e)]=qs[_0x2ffc7a(0x16e)](_0x4b7fa4[_0x2ffc7a(0x146)][_0x2ffc7a(0x16e)])),_0x5cef21[_0x2ffc7a(0x167)](_0x3b8796);})[_0x3fed00(0x159)](function(_0x59715a){if(_0x59715a)return _0x59715a?{'count':_0x517f4e,'rows':_0x59715a}:null;})[_0x3fed00(0x159)](respondWithResult(_0x3c5ed0,null))['catch'](handleError(_0x3c5ed0,null));},exports[a310_0x368f72(0x147)]=function(_0x39e14f,_0x5c363c){const _0x1f4610=a310_0x368f72;return _0x39e14f[_0x1f4610(0x165)]['id']&&delete _0x39e14f[_0x1f4610(0x165)]['id'],db[_0x1f4610(0x175)][_0x1f4610(0x15f)]({'where':{'id':_0x39e14f[_0x1f4610(0x161)]['id']}})[_0x1f4610(0x159)](handleEntityNotFound(_0x5c363c,null))['then'](function(_0x536e22){const _0x2e8323=_0x1f4610;if(_0x536e22)return _0x536e22['setTags'](_0x39e14f[_0x2e8323(0x165)][_0x2e8323(0x14d)]||[]);return null;})[_0x1f4610(0x159)](respondWithResult(_0x5c363c,null))['catch'](handleError(_0x5c363c,null));}; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js index 93bff81..1f60263 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js @@ -1 +1 @@ -const a311_0x179d=['sequelize','FreshdeskConfiguration','function','init','./intFreshdeskConfiguration.attributes','exports','./intFreshdeskConfiguration.options'];(function(_0x35ebb2,_0x3338f6){const _0x179dcb=function(_0x5150d3){while(--_0x5150d3){_0x35ebb2['push'](_0x35ebb2['shift']());}};_0x179dcb(++_0x3338f6);}(a311_0x179d,0x169));const a311_0x5150=function(_0x35ebb2,_0x3338f6){_0x35ebb2=_0x35ebb2-0x1d5;let _0x179dcb=a311_0x179d[_0x35ebb2];return _0x179dcb;};const a311_0x1da613=a311_0x5150;'use strict';const {Model}=require(a311_0x1da613(0x1d8)),{attributes}=require(a311_0x1da613(0x1d5)),{options}=require(a311_0x1da613(0x1d7));class FreshdeskConfiguration extends Model{}function init(_0x539f95,_0x25d074){const _0x313f4c=a311_0x1da613,_0xbb5bc8=options(_0x539f95),_0x55590d=typeof _0x25d074===_0x313f4c(0x1da)?_0x25d074(_0xbb5bc8):_0xbb5bc8;return FreshdeskConfiguration[_0x313f4c(0x1db)](attributes,_0x55590d),FreshdeskConfiguration;}module['exports'][a311_0x1da613(0x1d9)]=FreshdeskConfiguration,module[a311_0x1da613(0x1d6)]['init']=init; \ No newline at end of file +const a311_0x5c5d=['function','./intFreshdeskConfiguration.options','./intFreshdeskConfiguration.attributes','exports','init','FreshdeskConfiguration'];(function(_0x27615d,_0x2dc13b){const _0x5c5d1b=function(_0x7b7648){while(--_0x7b7648){_0x27615d['push'](_0x27615d['shift']());}};_0x5c5d1b(++_0x2dc13b);}(a311_0x5c5d,0x1e3));const a311_0x7b76=function(_0x27615d,_0x2dc13b){_0x27615d=_0x27615d-0xce;let _0x5c5d1b=a311_0x5c5d[_0x27615d];return _0x5c5d1b;};const a311_0x138d09=a311_0x7b76;'use strict';const {Model}=require('sequelize'),{attributes}=require(a311_0x138d09(0xd3)),{options}=require(a311_0x138d09(0xd2));class FreshdeskConfiguration extends Model{}function init(_0x12cc41,_0x2a1ede){const _0x312dcb=a311_0x138d09,_0x20c0af=options(_0x12cc41),_0x582d61=typeof _0x2a1ede===_0x312dcb(0xd1)?_0x2a1ede(_0x20c0af):_0x20c0af;return FreshdeskConfiguration['init'](attributes,_0x582d61),FreshdeskConfiguration;}module[a311_0x138d09(0xce)][a311_0x138d09(0xd0)]=FreshdeskConfiguration,module[a311_0x138d09(0xce)][a311_0x138d09(0xcf)]=init; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.options.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.options.js index cfa8b7e..be4b76a 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.options.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.options.js @@ -1 +1 @@ -var a312_0x4683=['int_freshdesk_configurations'];(function(_0x4d203c,_0x53ce00){var _0x4683c5=function(_0x291ab7){while(--_0x291ab7){_0x4d203c['push'](_0x4d203c['shift']());}};_0x4683c5(++_0x53ce00);}(a312_0x4683,0x196));var a312_0x291a=function(_0x4d203c,_0x53ce00){_0x4d203c=_0x4d203c-0x14d;var _0x4683c5=a312_0x4683[_0x4d203c];return _0x4683c5;};function options(_0x5df1ea){var _0x19e406=a312_0x291a;return{'sequelize':_0x5df1ea,'tableName':_0x19e406(0x14d),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports']['options']=options; \ No newline at end of file +var a312_0x4fd3=['exports','options','int_freshdesk_configurations'];(function(_0x4f8196,_0x32e65b){var _0x4fd3a2=function(_0x4e34da){while(--_0x4e34da){_0x4f8196['push'](_0x4f8196['shift']());}};_0x4fd3a2(++_0x32e65b);}(a312_0x4fd3,0x6a));var a312_0x4e34=function(_0x4f8196,_0x32e65b){_0x4f8196=_0x4f8196-0x82;var _0x4fd3a2=a312_0x4fd3[_0x4f8196];return _0x4fd3a2;};var a312_0x54e423=a312_0x4e34;function options(_0x10f665){var _0x4246ea=a312_0x4e34;return{'sequelize':_0x10f665,'tableName':_0x4246ea(0x83),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a312_0x54e423(0x84)][a312_0x54e423(0x82)]=options; \ No newline at end of file diff --git a/server/api/intFreshdeskField/index.js b/server/api/intFreshdeskField/index.js index 264fd90..0201a8e 100644 --- a/server/api/intFreshdeskField/index.js +++ b/server/api/intFreshdeskField/index.js @@ -1 +1 @@ -const a313_0x5761=['create','delete','update','show','Router','index','../../components/auth/service','express','destroy','get','/:id','put','isAuthenticated','./intFreshdeskField.controller','post'];(function(_0x5c8d8e,_0x5505a5){const _0x576182=function(_0x29a273){while(--_0x29a273){_0x5c8d8e['push'](_0x5c8d8e['shift']());}};_0x576182(++_0x5505a5);}(a313_0x5761,0xb2));const a313_0x29a2=function(_0x5c8d8e,_0x5505a5){_0x5c8d8e=_0x5c8d8e-0x1a4;let _0x576182=a313_0x5761[_0x5c8d8e];return _0x576182;};const a313_0x1089f9=a313_0x29a2;'use strict';const express=require(a313_0x1089f9(0x1ad)),router=express[a313_0x1089f9(0x1aa)](),auth=require(a313_0x1089f9(0x1ac)),controller=require(a313_0x1089f9(0x1a4));router['get']('/',auth[a313_0x1089f9(0x1b2)](),controller[a313_0x1089f9(0x1ab)]),router[a313_0x1089f9(0x1af)](a313_0x1089f9(0x1b0),auth[a313_0x1089f9(0x1b2)](),controller[a313_0x1089f9(0x1a9)]),router[a313_0x1089f9(0x1a5)]('/',auth[a313_0x1089f9(0x1b2)](),controller[a313_0x1089f9(0x1a6)]),router[a313_0x1089f9(0x1b1)]('/:id',auth[a313_0x1089f9(0x1b2)](),controller[a313_0x1089f9(0x1a8)]),router[a313_0x1089f9(0x1a7)]('/:id',auth[a313_0x1089f9(0x1b2)](),controller[a313_0x1089f9(0x1ae)]),module['exports']=router; \ No newline at end of file +const a313_0x334e=['post','get','delete','isAuthenticated','Router','destroy','show','express','/:id','index','create','put','exports'];(function(_0x501c0d,_0x4ebf25){const _0x334e2b=function(_0x270be4){while(--_0x270be4){_0x501c0d['push'](_0x501c0d['shift']());}};_0x334e2b(++_0x4ebf25);}(a313_0x334e,0x10f));const a313_0x270b=function(_0x501c0d,_0x4ebf25){_0x501c0d=_0x501c0d-0x196;let _0x334e2b=a313_0x334e[_0x501c0d];return _0x334e2b;};const a313_0xb82071=a313_0x270b;'use strict';const express=require(a313_0xb82071(0x19f)),router=express[a313_0xb82071(0x19c)](),auth=require('../../components/auth/service'),controller=require('./intFreshdeskField.controller');router[a313_0xb82071(0x199)]('/',auth['isAuthenticated'](),controller[a313_0xb82071(0x1a1)]),router[a313_0xb82071(0x199)](a313_0xb82071(0x1a0),auth['isAuthenticated'](),controller[a313_0xb82071(0x19e)]),router[a313_0xb82071(0x198)]('/',auth['isAuthenticated'](),controller[a313_0xb82071(0x1a2)]),router[a313_0xb82071(0x196)](a313_0xb82071(0x1a0),auth[a313_0xb82071(0x19b)](),controller['update']),router[a313_0xb82071(0x19a)](a313_0xb82071(0x1a0),auth['isAuthenticated'](),controller[a313_0xb82071(0x19d)]),module[a313_0xb82071(0x197)]=router; \ No newline at end of file diff --git a/server/api/intFreshdeskField/intFreshdeskField.attributes.js b/server/api/intFreshdeskField/intFreshdeskField.attributes.js index 9696e2a..0cf2f60 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.attributes.js +++ b/server/api/intFreshdeskField/intFreshdeskField.attributes.js @@ -1 +1 @@ -const a314_0x51b7=['customVariable','keyValue','sequelize','string','ENUM','STRING','variable','attributes','BOOLEAN'];(function(_0x270c6f,_0x1398e0){const _0x51b7f8=function(_0x9a8b94){while(--_0x9a8b94){_0x270c6f['push'](_0x270c6f['shift']());}};_0x51b7f8(++_0x1398e0);}(a314_0x51b7,0xb4));const a314_0x9a8b=function(_0x270c6f,_0x1398e0){_0x270c6f=_0x270c6f-0x1f1;let _0x51b7f8=a314_0x51b7[_0x270c6f];return _0x51b7f8;};const a314_0x4eea42=a314_0x9a8b;'use strict';const {DataTypes}=require(a314_0x4eea42(0x1f3)),attributes={'type':{'type':DataTypes[a314_0x4eea42(0x1f5)](a314_0x4eea42(0x1f4),a314_0x4eea42(0x1f7),a314_0x4eea42(0x1f1),a314_0x4eea42(0x1f2)),'defaultValue':'string'},'content':{'type':DataTypes[a314_0x4eea42(0x1f6)]},'key':{'type':DataTypes['STRING']},'keyType':{'type':DataTypes[a314_0x4eea42(0x1f5)](a314_0x4eea42(0x1f4),'variable','customVariable')},'keyContent':{'type':DataTypes[a314_0x4eea42(0x1f6)]},'idField':{'type':DataTypes['STRING']},'nameField':{'type':DataTypes['STRING']},'customField':{'type':DataTypes[a314_0x4eea42(0x1f9)],'defaultValue':!![]},'variableName':{'type':DataTypes['STRING']}};module['exports'][a314_0x4eea42(0x1f8)]=attributes; \ No newline at end of file +const a314_0x7073=['attributes','ENUM','variable','BOOLEAN','string','STRING','keyValue'];(function(_0x8877c2,_0x5182ce){const _0x70731d=function(_0x260471){while(--_0x260471){_0x8877c2['push'](_0x8877c2['shift']());}};_0x70731d(++_0x5182ce);}(a314_0x7073,0x7d));const a314_0x2604=function(_0x8877c2,_0x5182ce){_0x8877c2=_0x8877c2-0x1dd;let _0x70731d=a314_0x7073[_0x8877c2];return _0x70731d;};const a314_0x31e34a=a314_0x2604;'use strict';const {DataTypes}=require('sequelize'),attributes={'type':{'type':DataTypes[a314_0x31e34a(0x1df)](a314_0x31e34a(0x1e2),a314_0x31e34a(0x1e0),'customVariable',a314_0x31e34a(0x1dd)),'defaultValue':a314_0x31e34a(0x1e2)},'content':{'type':DataTypes['STRING']},'key':{'type':DataTypes[a314_0x31e34a(0x1e3)]},'keyType':{'type':DataTypes[a314_0x31e34a(0x1df)]('string',a314_0x31e34a(0x1e0),'customVariable')},'keyContent':{'type':DataTypes[a314_0x31e34a(0x1e3)]},'idField':{'type':DataTypes['STRING']},'nameField':{'type':DataTypes[a314_0x31e34a(0x1e3)]},'customField':{'type':DataTypes[a314_0x31e34a(0x1e1)],'defaultValue':!![]},'variableName':{'type':DataTypes[a314_0x31e34a(0x1e3)]}};module['exports'][a314_0x31e34a(0x1de)]=attributes; \ No newline at end of file diff --git a/server/api/intFreshdeskField/intFreshdeskField.controller.js b/server/api/intFreshdeskField/intFreshdeskField.controller.js index 8a17e3c..d008514 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.controller.js +++ b/server/api/intFreshdeskField/intFreshdeskField.controller.js @@ -1 +1 @@ -const a315_0x4a88=['update','lodash','status','filters','send','merge','intersection','model','end','FreshdeskField','name','like','where','rows','../../components/parsers/qs','fieldName','include','stack','query','show','count','body','rawAttributes','offset','../../mysqldb','options','api','VIRTUAL','findOne','json','../../config/logger','sort','type','index','keys','undefined','then','sequelize','sendStatus','includeAll','params','limit','length','create','map','fields','destroy','catch','attributes'];(function(_0x51ad3f,_0x47c24f){const _0x4a8812=function(_0x2cb6ff){while(--_0x2cb6ff){_0x51ad3f['push'](_0x51ad3f['shift']());}};_0x4a8812(++_0x47c24f);}(a315_0x4a88,0xe8));const a315_0x2cb6=function(_0x51ad3f,_0x47c24f){_0x51ad3f=_0x51ad3f-0xff;let _0x4a8812=a315_0x4a88[_0x51ad3f];return _0x4a8812;};const a315_0x482ff0=a315_0x2cb6;'use strict';const _=require(a315_0x482ff0(0x10d)),qs=require(a315_0x482ff0(0x11a)),logger=require(a315_0x482ff0(0x12a))(a315_0x482ff0(0x126)),{db}=require(a315_0x482ff0(0x124)),{Op}=require(a315_0x482ff0(0x100));function respondWithResult(_0x22289a,_0x5d7232){return _0x5d7232=_0x5d7232||0xc8,function(_0x5a6441){const _0x5352a4=a315_0x2cb6;if(_0x5a6441)return _0x22289a['status'](_0x5d7232)[_0x5352a4(0x129)](_0x5a6441);};}function respondWithFilteredResult(_0xe21311,_0x41654f){return function(_0x1208ab){const _0x2fe20d=a315_0x2cb6;if(_0x1208ab){const _0x3915d7=_0x1208ab[_0x2fe20d(0x120)],_0x4449e4=_0x41654f['offset'];let _0x13cf40=_0x41654f['offset']+_0x41654f[_0x2fe20d(0x104)],_0x47ee0a;return _0x13cf40>=_0x3915d7?(_0x13cf40=_0x3915d7,_0x47ee0a=0xc8):_0x47ee0a=0xce,_0xe21311[_0x2fe20d(0x10e)](_0x47ee0a),_0xe21311['set']('Content-Range',_0x4449e4+'-'+_0x13cf40+'/'+_0x3915d7)[_0x2fe20d(0x129)](_0x1208ab);}return null;};}function saveUpdates(_0x3282cf){return function(_0x910139){const _0x46be4a=a315_0x2cb6;if(_0x910139)return _0x910139[_0x46be4a(0x10c)](_0x3282cf)[_0x46be4a(0xff)](function(_0x2b07e0){return _0x2b07e0;});return null;};}function removeEntity(_0x2af30a){return function(_0x2ccd65){const _0x48c162=a315_0x2cb6;if(_0x2ccd65)return _0x2ccd65[_0x48c162(0x109)]()[_0x48c162(0xff)](function(){const _0x1922ca=_0x48c162;_0x2af30a[_0x1922ca(0x10e)](0xcc)[_0x1922ca(0x114)]();});};}function handleEntityNotFound(_0x201aa9){return function(_0x46c603){const _0x257e7c=a315_0x2cb6;return!_0x46c603&&_0x201aa9[_0x257e7c(0x101)](0x194),_0x46c603;};}function handleError(_0x31bae3,_0x31cadb){return _0x31cadb=_0x31cadb||0x1f4,function(_0x3acf9b){const _0x2cf77a=a315_0x2cb6;logger['error'](_0x3acf9b[_0x2cf77a(0x11d)]),_0x3acf9b[_0x2cf77a(0x116)]&&delete _0x3acf9b[_0x2cf77a(0x116)],_0x31bae3[_0x2cf77a(0x10e)](_0x31cadb)[_0x2cf77a(0x110)](_0x3acf9b);};}exports[a315_0x482ff0(0x12d)]=function(_0x59aac5,_0x49cc42){const _0x1350f3=a315_0x482ff0;let _0x47abaa={};const _0x30313e={},_0xda01fe={'count':0x0,'rows':[]},_0x31b0d1=_[_0x1350f3(0x107)](db[_0x1350f3(0x115)]['rawAttributes'],function(_0xa11ed1){const _0x58b0cc=_0x1350f3;return{'name':_0xa11ed1[_0x58b0cc(0x11b)],'type':_0xa11ed1[_0x58b0cc(0x12c)]['key']};});_0x30313e['model']=_[_0x1350f3(0x107)](_0x31b0d1,'name'),_0x30313e[_0x1350f3(0x11e)]=_[_0x1350f3(0x12e)](_0x59aac5['query']),_0x30313e[_0x1350f3(0x10f)]=_[_0x1350f3(0x112)](_0x30313e['model'],_0x30313e[_0x1350f3(0x11e)]),_0x47abaa['attributes']=_['intersection'](_0x30313e[_0x1350f3(0x113)],qs[_0x1350f3(0x108)](_0x59aac5['query']['fields'])),_0x47abaa[_0x1350f3(0x10b)]=_0x47abaa['attributes'][_0x1350f3(0x105)]?_0x47abaa['attributes']:_0x30313e[_0x1350f3(0x113)];typeof _0x59aac5[_0x1350f3(0x11e)]['nolimit']===_0x1350f3(0x12f)&&(_0x47abaa[_0x1350f3(0x104)]=qs[_0x1350f3(0x104)](_0x59aac5[_0x1350f3(0x11e)][_0x1350f3(0x104)]),_0x47abaa['offset']=qs['offset'](_0x59aac5[_0x1350f3(0x11e)][_0x1350f3(0x123)]));_0x47abaa['order']=qs[_0x1350f3(0x12b)](_0x59aac5[_0x1350f3(0x11e)][_0x1350f3(0x12b)]),_0x47abaa[_0x1350f3(0x118)]=qs[_0x1350f3(0x10f)](_['pick'](_0x59aac5[_0x1350f3(0x11e)],_0x30313e[_0x1350f3(0x10f)]),_0x31b0d1);_0x59aac5[_0x1350f3(0x11e)]['filter']&&(_0x47abaa[_0x1350f3(0x118)]=_[_0x1350f3(0x111)](_0x47abaa[_0x1350f3(0x118)],{[Op['or']]:_['map'](_0x31b0d1,function(_0x37583f){const _0x5b3f11=_0x1350f3;if(_0x37583f['type']!==_0x5b3f11(0x127)){const _0x3aa5de={};return _0x3aa5de[_0x37583f['name']]={[Op[_0x5b3f11(0x117)]]:'%'+_0x59aac5[_0x5b3f11(0x11e)]['filter']+'%'},_0x3aa5de;}})}));_0x47abaa=_['merge']({},_0x47abaa,_0x59aac5[_0x1350f3(0x125)]);const _0x13c0c8={'where':_0x47abaa['where']};return db['FreshdeskField'][_0x1350f3(0x120)](_0x13c0c8)['then'](function(_0x47538d){const _0x1ad9c1=_0x1350f3;return _0xda01fe[_0x1ad9c1(0x120)]=_0x47538d,_0x59aac5[_0x1ad9c1(0x11e)]['includeAll']&&(_0x47abaa['include']=[{'all':!![]}]),db['FreshdeskField']['findAll'](_0x47abaa);})[_0x1350f3(0xff)](function(_0x575446){const _0x4c1fe4=_0x1350f3;return _0xda01fe[_0x4c1fe4(0x119)]=_0x575446,_0xda01fe;})[_0x1350f3(0xff)](respondWithFilteredResult(_0x49cc42,_0x47abaa))[_0x1350f3(0x10a)](handleError(_0x49cc42,null));},exports[a315_0x482ff0(0x11f)]=function(_0xf519d,_0x34269e){const _0x5bf699=a315_0x482ff0;let _0x4b92dd={'raw':!![],'where':{'id':_0xf519d[_0x5bf699(0x103)]['id']}};const _0xcaa5d={};return _0xcaa5d['model']=_['keys'](db[_0x5bf699(0x115)][_0x5bf699(0x122)]),_0xcaa5d[_0x5bf699(0x11e)]=_[_0x5bf699(0x12e)](_0xf519d[_0x5bf699(0x11e)]),_0xcaa5d[_0x5bf699(0x10f)]=_['intersection'](_0xcaa5d[_0x5bf699(0x113)],_0xcaa5d[_0x5bf699(0x11e)]),_0x4b92dd[_0x5bf699(0x10b)]=_[_0x5bf699(0x112)](_0xcaa5d[_0x5bf699(0x113)],qs[_0x5bf699(0x108)](_0xf519d[_0x5bf699(0x11e)][_0x5bf699(0x108)])),_0x4b92dd[_0x5bf699(0x10b)]=_0x4b92dd[_0x5bf699(0x10b)][_0x5bf699(0x105)]?_0x4b92dd['attributes']:_0xcaa5d['model'],_0xf519d[_0x5bf699(0x11e)][_0x5bf699(0x102)]&&(_0x4b92dd[_0x5bf699(0x11c)]=[{'all':!![]}]),_0x4b92dd=_['merge']({},_0x4b92dd,_0xf519d['options']),db[_0x5bf699(0x115)]['findOne'](_0x4b92dd)[_0x5bf699(0xff)](handleEntityNotFound(_0x34269e,null))[_0x5bf699(0xff)](respondWithResult(_0x34269e,null))[_0x5bf699(0x10a)](handleError(_0x34269e,null));},exports[a315_0x482ff0(0x106)]=function(_0x1347f9,_0x498b6d){const _0x5caf23=a315_0x482ff0;return db[_0x5caf23(0x115)][_0x5caf23(0x106)](_0x1347f9['body'],{})[_0x5caf23(0xff)](respondWithResult(_0x498b6d,0xc9))[_0x5caf23(0x10a)](handleError(_0x498b6d,null));},exports[a315_0x482ff0(0x10c)]=function(_0x512d20,_0x192989){const _0x6a41f7=a315_0x482ff0;return _0x512d20[_0x6a41f7(0x121)]['id']&&delete _0x512d20[_0x6a41f7(0x121)]['id'],db[_0x6a41f7(0x115)][_0x6a41f7(0x128)]({'where':{'id':_0x512d20[_0x6a41f7(0x103)]['id']}})[_0x6a41f7(0xff)](handleEntityNotFound(_0x192989,null))['then'](saveUpdates(_0x512d20[_0x6a41f7(0x121)],null))[_0x6a41f7(0xff)](respondWithResult(_0x192989,null))[_0x6a41f7(0x10a)](handleError(_0x192989,null));},exports[a315_0x482ff0(0x109)]=function(_0x4835bc,_0x2d040c){const _0x1a4e6e=a315_0x482ff0;return db[_0x1a4e6e(0x115)][_0x1a4e6e(0x128)]({'where':{'id':_0x4835bc[_0x1a4e6e(0x103)]['id']}})[_0x1a4e6e(0xff)](handleEntityNotFound(_0x2d040c,null))[_0x1a4e6e(0xff)](removeEntity(_0x2d040c,null))['catch'](handleError(_0x2d040c,null));}; \ No newline at end of file +const a315_0x1b70=['status','name','json','sort','set','filters','pick','show','options','then','keys','type','offset','rows','model','error','query','fieldName','map','body','lodash','includeAll','count','../../config/logger','nolimit','rawAttributes','findOne','update','create','fields','include','destroy','stack','where','catch','attributes','intersection','merge','undefined','params','FreshdeskField','limit','end','sendStatus','filter','VIRTUAL','send','like','index','api'];(function(_0x123323,_0x2e4b0e){const _0x1b701d=function(_0x425710){while(--_0x425710){_0x123323['push'](_0x123323['shift']());}};_0x1b701d(++_0x2e4b0e);}(a315_0x1b70,0x17b));const a315_0x4257=function(_0x123323,_0x2e4b0e){_0x123323=_0x123323-0x103;let _0x1b701d=a315_0x1b70[_0x123323];return _0x1b701d;};const a315_0x40171a=a315_0x4257;'use strict';const _=require(a315_0x40171a(0x12c)),qs=require('../../components/parsers/qs'),logger=require(a315_0x40171a(0x12f))(a315_0x40171a(0x117)),{db}=require('../../mysqldb'),{Op}=require('sequelize');function respondWithResult(_0x29b16a,_0x4255ee){return _0x4255ee=_0x4255ee||0xc8,function(_0x4279a5){const _0x82e299=a315_0x4257;if(_0x4279a5)return _0x29b16a[_0x82e299(0x118)](_0x4255ee)[_0x82e299(0x11a)](_0x4279a5);};}function respondWithFilteredResult(_0x2bb2af,_0x4699a7){return function(_0x5dd250){const _0x179cd0=a315_0x4257;if(_0x5dd250){const _0x47c08b=_0x5dd250[_0x179cd0(0x12e)],_0xe11b92=_0x4699a7[_0x179cd0(0x124)];let _0x483b55=_0x4699a7['offset']+_0x4699a7[_0x179cd0(0x10f)],_0xd051e0;return _0x483b55>=_0x47c08b?(_0x483b55=_0x47c08b,_0xd051e0=0xc8):_0xd051e0=0xce,_0x2bb2af[_0x179cd0(0x118)](_0xd051e0),_0x2bb2af[_0x179cd0(0x11c)]('Content-Range',_0xe11b92+'-'+_0x483b55+'/'+_0x47c08b)[_0x179cd0(0x11a)](_0x5dd250);}return null;};}function saveUpdates(_0x59b1e0){return function(_0x30ab14){const _0x1f265d=a315_0x4257;if(_0x30ab14)return _0x30ab14[_0x1f265d(0x133)](_0x59b1e0)[_0x1f265d(0x121)](function(_0x54bb2d){return _0x54bb2d;});return null;};}function removeEntity(_0x8216ee){return function(_0x40f171){const _0x65bc86=a315_0x4257;if(_0x40f171)return _0x40f171[_0x65bc86(0x105)]()[_0x65bc86(0x121)](function(){const _0x2f383a=_0x65bc86;_0x8216ee[_0x2f383a(0x118)](0xcc)[_0x2f383a(0x110)]();});};}function handleEntityNotFound(_0x53ef08){return function(_0x39ff51){const _0x588a93=a315_0x4257;return!_0x39ff51&&_0x53ef08[_0x588a93(0x111)](0x194),_0x39ff51;};}function handleError(_0x57e109,_0x2e93bf){return _0x2e93bf=_0x2e93bf||0x1f4,function(_0x419767){const _0x45988a=a315_0x4257;logger[_0x45988a(0x127)](_0x419767[_0x45988a(0x106)]),_0x419767[_0x45988a(0x119)]&&delete _0x419767[_0x45988a(0x119)],_0x57e109['status'](_0x2e93bf)[_0x45988a(0x114)](_0x419767);};}exports[a315_0x40171a(0x116)]=function(_0x40aff3,_0x297589){const _0x3a48ec=a315_0x40171a;let _0x50eadc={};const _0x1b5b85={},_0x443dec={'count':0x0,'rows':[]},_0x7aa7c2=_['map'](db[_0x3a48ec(0x10e)]['rawAttributes'],function(_0x56c618){const _0x4fca58=_0x3a48ec;return{'name':_0x56c618[_0x4fca58(0x129)],'type':_0x56c618[_0x4fca58(0x123)]['key']};});_0x1b5b85[_0x3a48ec(0x126)]=_[_0x3a48ec(0x12a)](_0x7aa7c2,'name'),_0x1b5b85[_0x3a48ec(0x128)]=_[_0x3a48ec(0x122)](_0x40aff3[_0x3a48ec(0x128)]),_0x1b5b85[_0x3a48ec(0x11d)]=_[_0x3a48ec(0x10a)](_0x1b5b85['model'],_0x1b5b85[_0x3a48ec(0x128)]),_0x50eadc[_0x3a48ec(0x109)]=_[_0x3a48ec(0x10a)](_0x1b5b85[_0x3a48ec(0x126)],qs[_0x3a48ec(0x103)](_0x40aff3[_0x3a48ec(0x128)]['fields'])),_0x50eadc[_0x3a48ec(0x109)]=_0x50eadc[_0x3a48ec(0x109)]['length']?_0x50eadc['attributes']:_0x1b5b85[_0x3a48ec(0x126)];typeof _0x40aff3['query'][_0x3a48ec(0x130)]===_0x3a48ec(0x10c)&&(_0x50eadc['limit']=qs[_0x3a48ec(0x10f)](_0x40aff3['query'][_0x3a48ec(0x10f)]),_0x50eadc[_0x3a48ec(0x124)]=qs[_0x3a48ec(0x124)](_0x40aff3[_0x3a48ec(0x128)][_0x3a48ec(0x124)]));_0x50eadc['order']=qs['sort'](_0x40aff3['query'][_0x3a48ec(0x11b)]),_0x50eadc['where']=qs[_0x3a48ec(0x11d)](_[_0x3a48ec(0x11e)](_0x40aff3['query'],_0x1b5b85['filters']),_0x7aa7c2);_0x40aff3['query'][_0x3a48ec(0x112)]&&(_0x50eadc[_0x3a48ec(0x107)]=_['merge'](_0x50eadc[_0x3a48ec(0x107)],{[Op['or']]:_['map'](_0x7aa7c2,function(_0x18ab53){const _0x478c4d=_0x3a48ec;if(_0x18ab53[_0x478c4d(0x123)]!==_0x478c4d(0x113)){const _0xff91a6={};return _0xff91a6[_0x18ab53['name']]={[Op[_0x478c4d(0x115)]]:'%'+_0x40aff3[_0x478c4d(0x128)][_0x478c4d(0x112)]+'%'},_0xff91a6;}})}));_0x50eadc=_['merge']({},_0x50eadc,_0x40aff3[_0x3a48ec(0x120)]);const _0xb24f37={'where':_0x50eadc[_0x3a48ec(0x107)]};return db['FreshdeskField'][_0x3a48ec(0x12e)](_0xb24f37)['then'](function(_0x4a58fe){const _0x4c8b24=_0x3a48ec;return _0x443dec[_0x4c8b24(0x12e)]=_0x4a58fe,_0x40aff3['query'][_0x4c8b24(0x12d)]&&(_0x50eadc[_0x4c8b24(0x104)]=[{'all':!![]}]),db[_0x4c8b24(0x10e)]['findAll'](_0x50eadc);})['then'](function(_0x32cf43){const _0x4daa2f=_0x3a48ec;return _0x443dec[_0x4daa2f(0x125)]=_0x32cf43,_0x443dec;})[_0x3a48ec(0x121)](respondWithFilteredResult(_0x297589,_0x50eadc))[_0x3a48ec(0x108)](handleError(_0x297589,null));},exports[a315_0x40171a(0x11f)]=function(_0x19651c,_0x53b8ba){const _0x4c8b15=a315_0x40171a;let _0x2a4a93={'raw':!![],'where':{'id':_0x19651c[_0x4c8b15(0x10d)]['id']}};const _0x1c4c22={};return _0x1c4c22[_0x4c8b15(0x126)]=_[_0x4c8b15(0x122)](db[_0x4c8b15(0x10e)][_0x4c8b15(0x131)]),_0x1c4c22[_0x4c8b15(0x128)]=_[_0x4c8b15(0x122)](_0x19651c[_0x4c8b15(0x128)]),_0x1c4c22[_0x4c8b15(0x11d)]=_[_0x4c8b15(0x10a)](_0x1c4c22[_0x4c8b15(0x126)],_0x1c4c22[_0x4c8b15(0x128)]),_0x2a4a93[_0x4c8b15(0x109)]=_[_0x4c8b15(0x10a)](_0x1c4c22[_0x4c8b15(0x126)],qs[_0x4c8b15(0x103)](_0x19651c[_0x4c8b15(0x128)][_0x4c8b15(0x103)])),_0x2a4a93[_0x4c8b15(0x109)]=_0x2a4a93['attributes']['length']?_0x2a4a93[_0x4c8b15(0x109)]:_0x1c4c22['model'],_0x19651c[_0x4c8b15(0x128)][_0x4c8b15(0x12d)]&&(_0x2a4a93['include']=[{'all':!![]}]),_0x2a4a93=_[_0x4c8b15(0x10b)]({},_0x2a4a93,_0x19651c['options']),db[_0x4c8b15(0x10e)][_0x4c8b15(0x132)](_0x2a4a93)[_0x4c8b15(0x121)](handleEntityNotFound(_0x53b8ba,null))[_0x4c8b15(0x121)](respondWithResult(_0x53b8ba,null))['catch'](handleError(_0x53b8ba,null));},exports[a315_0x40171a(0x134)]=function(_0x4dbc84,_0x33904d){const _0x23d649=a315_0x40171a;return db[_0x23d649(0x10e)][_0x23d649(0x134)](_0x4dbc84[_0x23d649(0x12b)],{})['then'](respondWithResult(_0x33904d,0xc9))[_0x23d649(0x108)](handleError(_0x33904d,null));},exports[a315_0x40171a(0x133)]=function(_0x4d3bef,_0x12c475){const _0x55b33f=a315_0x40171a;return _0x4d3bef[_0x55b33f(0x12b)]['id']&&delete _0x4d3bef[_0x55b33f(0x12b)]['id'],db['FreshdeskField'][_0x55b33f(0x132)]({'where':{'id':_0x4d3bef[_0x55b33f(0x10d)]['id']}})['then'](handleEntityNotFound(_0x12c475,null))['then'](saveUpdates(_0x4d3bef[_0x55b33f(0x12b)],null))[_0x55b33f(0x121)](respondWithResult(_0x12c475,null))[_0x55b33f(0x108)](handleError(_0x12c475,null));},exports[a315_0x40171a(0x105)]=function(_0x24ce76,_0x320d8f){const _0xb4c41c=a315_0x40171a;return db[_0xb4c41c(0x10e)]['findOne']({'where':{'id':_0x24ce76[_0xb4c41c(0x10d)]['id']}})['then'](handleEntityNotFound(_0x320d8f,null))['then'](removeEntity(_0x320d8f,null))[_0xb4c41c(0x108)](handleError(_0x320d8f,null));}; \ No newline at end of file diff --git a/server/api/intFreshdeskField/intFreshdeskField.model.js b/server/api/intFreshdeskField/intFreshdeskField.model.js index d3dbb24..9886e71 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.model.js +++ b/server/api/intFreshdeskField/intFreshdeskField.model.js @@ -1 +1 @@ -const a316_0x4c2b=['function','./intFreshdeskField.options','init','exports','sequelize','FreshdeskField','./intFreshdeskField.attributes'];(function(_0x260899,_0x33e0ba){const _0x4c2b5e=function(_0x420e9c){while(--_0x420e9c){_0x260899['push'](_0x260899['shift']());}};_0x4c2b5e(++_0x33e0ba);}(a316_0x4c2b,0x1c1));const a316_0x420e=function(_0x260899,_0x33e0ba){_0x260899=_0x260899-0x68;let _0x4c2b5e=a316_0x4c2b[_0x260899];return _0x4c2b5e;};const a316_0x53fabc=a316_0x420e;'use strict';const {Model}=require(a316_0x53fabc(0x6b)),{attributes}=require(a316_0x53fabc(0x6d)),{options}=require(a316_0x53fabc(0x68));class FreshdeskField extends Model{}function init(_0x2557ee,_0x9e934e){const _0x3a8055=a316_0x53fabc,_0xd7628d=options(_0x2557ee),_0x1bc8cd=typeof _0x9e934e===_0x3a8055(0x6e)?_0x9e934e(_0xd7628d):_0xd7628d;return FreshdeskField[_0x3a8055(0x69)](attributes,_0x1bc8cd),FreshdeskField;}module[a316_0x53fabc(0x6a)][a316_0x53fabc(0x6c)]=FreshdeskField,module[a316_0x53fabc(0x6a)]['init']=init; \ No newline at end of file +const a316_0x558f=['exports','FreshdeskField','function','sequelize','init'];(function(_0x4ce461,_0x4960a2){const _0x558f96=function(_0x165595){while(--_0x165595){_0x4ce461['push'](_0x4ce461['shift']());}};_0x558f96(++_0x4960a2);}(a316_0x558f,0xb2));const a316_0x1655=function(_0x4ce461,_0x4960a2){_0x4ce461=_0x4ce461-0xe2;let _0x558f96=a316_0x558f[_0x4ce461];return _0x558f96;};const a316_0x428287=a316_0x1655;'use strict';const {Model}=require(a316_0x428287(0xe2)),{attributes}=require('./intFreshdeskField.attributes'),{options}=require('./intFreshdeskField.options');class FreshdeskField extends Model{}function init(_0x4acb3c,_0x564bee){const _0x3d871c=a316_0x428287,_0x1898b0=options(_0x4acb3c),_0x1207b5=typeof _0x564bee===_0x3d871c(0xe6)?_0x564bee(_0x1898b0):_0x1898b0;return FreshdeskField['init'](attributes,_0x1207b5),FreshdeskField;}module['exports'][a316_0x428287(0xe5)]=FreshdeskField,module[a316_0x428287(0xe4)][a316_0x428287(0xe3)]=init; \ No newline at end of file diff --git a/server/api/intFreshdeskField/intFreshdeskField.options.js b/server/api/intFreshdeskField/intFreshdeskField.options.js index 85c8db6..406fdec 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.options.js +++ b/server/api/intFreshdeskField/intFreshdeskField.options.js @@ -1 +1 @@ -var a317_0x2f38=['options','idField','int_freshdesk_fields'];(function(_0x36fb9c,_0x460754){var _0x2f3810=function(_0x4e6411){while(--_0x4e6411){_0x36fb9c['push'](_0x36fb9c['shift']());}};_0x2f3810(++_0x460754);}(a317_0x2f38,0x14b));var a317_0x4e64=function(_0x36fb9c,_0x460754){_0x36fb9c=_0x36fb9c-0x182;var _0x2f3810=a317_0x2f38[_0x36fb9c];return _0x2f3810;};var a317_0x8e3d0a=a317_0x4e64;function options(_0xb8e38b){var _0x33ee20=a317_0x4e64;return{'sequelize':_0xb8e38b,'tableName':_0x33ee20(0x183),'paranoid':![],'indexes':[{'name':'freshdesk_unique_index','fields':[_0x33ee20(0x182),'FieldId'],'unique':!![]}],'timestamps':!![]};}module['exports'][a317_0x8e3d0a(0x184)]=options; \ No newline at end of file +var a317_0x49f7=['FieldId','options'];(function(_0x6ff918,_0x4febca){var _0x49f72f=function(_0x3f8565){while(--_0x3f8565){_0x6ff918['push'](_0x6ff918['shift']());}};_0x49f72f(++_0x4febca);}(a317_0x49f7,0xe3));var a317_0x3f85=function(_0x6ff918,_0x4febca){_0x6ff918=_0x6ff918-0x155;var _0x49f72f=a317_0x49f7[_0x6ff918];return _0x49f72f;};var a317_0x56c4b6=a317_0x3f85;function options(_0x545297){var _0xaa376c=a317_0x3f85;return{'sequelize':_0x545297,'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':'freshdesk_unique_index','fields':['idField',_0xaa376c(0x156)],'unique':!![]}],'timestamps':!![]};}module['exports'][a317_0x56c4b6(0x155)]=options; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/index.js b/server/api/intFreshsalesAccount/index.js index afccfe5..90188a2 100644 --- a/server/api/intFreshsalesAccount/index.js +++ b/server/api/intFreshsalesAccount/index.js @@ -1 +1 @@ -const a318_0x34d4=['Router','post','/:id','isAuthenticated','getConfigurations','get','/:id/configurations','../../components/auth/service','create','getFields','addConfiguration','update','exports','/:id/fields','destroy','put'];(function(_0x22fe71,_0x1065d8){const _0x34d492=function(_0x2c1f39){while(--_0x2c1f39){_0x22fe71['push'](_0x22fe71['shift']());}};_0x34d492(++_0x1065d8);}(a318_0x34d4,0x1d1));const a318_0x2c1f=function(_0x22fe71,_0x1065d8){_0x22fe71=_0x22fe71-0xd8;let _0x34d492=a318_0x34d4[_0x22fe71];return _0x34d492;};const a318_0x55ae1f=a318_0x2c1f;'use strict';const express=require('express'),router=express[a318_0x55ae1f(0xe7)](),auth=require(a318_0x55ae1f(0xde)),controller=require('./intFreshsalesAccount.controller');router['get']('/',auth[a318_0x55ae1f(0xda)](),controller['index']),router[a318_0x55ae1f(0xdc)]('/:id',auth['isAuthenticated'](),controller['show']),router['get']('/:id/configurations',auth[a318_0x55ae1f(0xda)](),controller[a318_0x55ae1f(0xdb)]),router[a318_0x55ae1f(0xdc)](a318_0x55ae1f(0xe4),auth['isAuthenticated'](),controller[a318_0x55ae1f(0xe0)]),router[a318_0x55ae1f(0xd8)]('/',auth[a318_0x55ae1f(0xda)](),controller[a318_0x55ae1f(0xdf)]),router['post'](a318_0x55ae1f(0xdd),auth[a318_0x55ae1f(0xda)](),controller[a318_0x55ae1f(0xe1)]),router[a318_0x55ae1f(0xe6)](a318_0x55ae1f(0xd9),auth[a318_0x55ae1f(0xda)](),controller[a318_0x55ae1f(0xe2)]),router['delete']('/:id',auth[a318_0x55ae1f(0xda)](),controller[a318_0x55ae1f(0xe5)]),module[a318_0x55ae1f(0xe3)]=router; \ No newline at end of file +const a318_0x310f=['/:id/configurations','/:id/fields','../../components/auth/service','Router','isAuthenticated','show','addConfiguration','/:id','put','post','create','get','getConfigurations','express','destroy','delete','index'];(function(_0x32ca86,_0x3104b1){const _0x310fda=function(_0x1c9f2b){while(--_0x1c9f2b){_0x32ca86['push'](_0x32ca86['shift']());}};_0x310fda(++_0x3104b1);}(a318_0x310f,0xbc));const a318_0x1c9f=function(_0x32ca86,_0x3104b1){_0x32ca86=_0x32ca86-0x1b5;let _0x310fda=a318_0x310f[_0x32ca86];return _0x310fda;};const a318_0x5d89ac=a318_0x1c9f;'use strict';const express=require(a318_0x5d89ac(0x1c1)),router=express[a318_0x5d89ac(0x1b7)](),auth=require(a318_0x5d89ac(0x1b6)),controller=require('./intFreshsalesAccount.controller');router['get']('/',auth[a318_0x5d89ac(0x1b8)](),controller[a318_0x5d89ac(0x1c4)]),router[a318_0x5d89ac(0x1bf)](a318_0x5d89ac(0x1bb),auth[a318_0x5d89ac(0x1b8)](),controller[a318_0x5d89ac(0x1b9)]),router[a318_0x5d89ac(0x1bf)](a318_0x5d89ac(0x1c5),auth[a318_0x5d89ac(0x1b8)](),controller[a318_0x5d89ac(0x1c0)]),router[a318_0x5d89ac(0x1bf)](a318_0x5d89ac(0x1b5),auth['isAuthenticated'](),controller['getFields']),router[a318_0x5d89ac(0x1bd)]('/',auth[a318_0x5d89ac(0x1b8)](),controller[a318_0x5d89ac(0x1be)]),router[a318_0x5d89ac(0x1bd)]('/:id/configurations',auth[a318_0x5d89ac(0x1b8)](),controller[a318_0x5d89ac(0x1ba)]),router[a318_0x5d89ac(0x1bc)](a318_0x5d89ac(0x1bb),auth[a318_0x5d89ac(0x1b8)](),controller['update']),router[a318_0x5d89ac(0x1c3)](a318_0x5d89ac(0x1bb),auth[a318_0x5d89ac(0x1b8)](),controller[a318_0x5d89ac(0x1c2)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js index eb142f6..80554f6 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js @@ -1 +1 @@ -const a319_0xaafb=['sequelize','STRING','username','attributes','remoteUri'];(function(_0x5489cd,_0x46c681){const _0xaafbe2=function(_0x5231e4){while(--_0x5231e4){_0x5489cd['push'](_0x5489cd['shift']());}};_0xaafbe2(++_0x46c681);}(a319_0xaafb,0xe4));const a319_0x5231=function(_0x5489cd,_0x46c681){_0x5489cd=_0x5489cd-0x1d6;let _0xaafbe2=a319_0xaafb[_0x5489cd];return _0xaafbe2;};const a319_0x81de0e=a319_0x5231;'use strict';const {DataTypes}=require(a319_0x81de0e(0x1d8)),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a319_0x81de0e(0x1d9)]},'username':{'type':DataTypes[a319_0x81de0e(0x1d9)],'unique':a319_0x81de0e(0x1da)},'apiKey':{'type':DataTypes[a319_0x81de0e(0x1d9)]},'remoteUri':{'type':DataTypes[a319_0x81de0e(0x1d9)],'unique':a319_0x81de0e(0x1d7)},'serverUrl':{'type':DataTypes[a319_0x81de0e(0x1d9)]}};module['exports'][a319_0x81de0e(0x1d6)]=attributes; \ No newline at end of file +const a319_0x534c=['remoteUri','exports','attributes','STRING','sequelize','username'];(function(_0x329f29,_0x30942d){const _0x534c1c=function(_0x3b0b0a){while(--_0x3b0b0a){_0x329f29['push'](_0x329f29['shift']());}};_0x534c1c(++_0x30942d);}(a319_0x534c,0x174));const a319_0x3b0b=function(_0x329f29,_0x30942d){_0x329f29=_0x329f29-0x1c7;let _0x534c1c=a319_0x534c[_0x329f29];return _0x534c1c;};const a319_0x289364=a319_0x3b0b;'use strict';const {DataTypes}=require(a319_0x289364(0x1cb)),attributes={'name':{'type':DataTypes[a319_0x289364(0x1ca)]},'description':{'type':DataTypes['STRING']},'username':{'type':DataTypes[a319_0x289364(0x1ca)],'unique':a319_0x289364(0x1cc)},'apiKey':{'type':DataTypes[a319_0x289364(0x1ca)]},'remoteUri':{'type':DataTypes[a319_0x289364(0x1ca)],'unique':a319_0x289364(0x1c7)},'serverUrl':{'type':DataTypes[a319_0x289364(0x1ca)]}};module[a319_0x289364(0x1c8)][a319_0x289364(0x1c9)]=attributes; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js index dc0da55..d324e80 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js @@ -1 +1 @@ -const a320_0x1306=['then','limit','getFields,\x20%s,\x20%s,\x20%s','../../components/parsers/qs','remoteUri','where','nolimit','channel','format','Subjects','fieldName','Requested\x20Resource\x20not\x20Found','count','undefined','length','VIRTUAL','map','substring','attributes','include','send','%s%s','test','lastIndexOf','status','fields','order','getDescriptions','Wrong\x20credentials','destroy','statusCode','../../mysqldb','getFields','filter','FreshsalesConfiguration','rawAttributes','options','email','util','FreshsalesAccount','merge','sequelize','rows','catch','model','update','index','name','FreshsalesField','Descriptions','offset','slice','users','like','intersection','end','api','json','sort','findOne','type','error','lodash','create','pick','Content-Range','set','show','getConfigurations','../../components/integrations/configuration','query','key','filters','params','username','keys','body','includeAll','apiKey','stack','GET'];(function(_0x235823,_0x2dcaf0){const _0x13060e=function(_0x5a05b2){while(--_0x5a05b2){_0x235823['push'](_0x235823['shift']());}};_0x13060e(++_0x2dcaf0);}(a320_0x1306,0xc1));const a320_0x5a05=function(_0x235823,_0x2dcaf0){_0x235823=_0x235823-0x68;let _0x13060e=a320_0x1306[_0x235823];return _0x13060e;};const a320_0x5abf34=a320_0x5a05;'use strict';const rp=require('request-promise-native'),util=require(a320_0x5abf34(0x6f)),_=require(a320_0x5abf34(0x87)),qs=require(a320_0x5abf34(0x9d)),logger=require('../../config/logger')(a320_0x5abf34(0x81)),{db}=require(a320_0x5abf34(0x68)),{Op}=require(a320_0x5abf34(0x72)),integrations=require(a320_0x5abf34(0x8e));function respondWithResult(_0x12e1fa,_0x4eb7fe){return _0x4eb7fe=_0x4eb7fe||0xc8,function(_0x5ee494){const _0x7be6ed=a320_0x5a05;if(_0x5ee494)return _0x12e1fa[_0x7be6ed(0xb2)](_0x4eb7fe)[_0x7be6ed(0x82)](_0x5ee494);};}function respondWithFilteredResult(_0x53d773,_0x2d536a){return function(_0x5b03b5){const _0x10c34a=a320_0x5a05;if(_0x5b03b5){const _0x4ab6f1=_0x5b03b5[_0x10c34a(0xa6)],_0x444c2e=_0x2d536a[_0x10c34a(0x7b)];let _0x16f67c=_0x2d536a[_0x10c34a(0x7b)]+_0x2d536a[_0x10c34a(0x9b)],_0x3d6a53;return _0x16f67c>=_0x4ab6f1?(_0x16f67c=_0x4ab6f1,_0x3d6a53=0xc8):_0x3d6a53=0xce,_0x53d773[_0x10c34a(0xb2)](_0x3d6a53),_0x53d773[_0x10c34a(0x8b)](_0x10c34a(0x8a),_0x444c2e+'-'+_0x16f67c+'/'+_0x4ab6f1)['json'](_0x5b03b5);}return null;};}function saveUpdates(_0x476f97){return function(_0x3c85a2){const _0x5cc19f=a320_0x5a05;if(_0x3c85a2)return _0x3c85a2[_0x5cc19f(0x76)](_0x476f97)[_0x5cc19f(0x9a)](function(_0x3a20e6){return _0x3a20e6;});return null;};}function removeEntity(_0x263396){return function(_0x11bc7e){const _0x59c629=a320_0x5a05;if(_0x11bc7e)return _0x11bc7e[_0x59c629(0xb7)]()[_0x59c629(0x9a)](function(){const _0x45c5ea=_0x59c629;_0x263396[_0x45c5ea(0xb2)](0xcc)[_0x45c5ea(0x80)]();});};}function handleEntityNotFound(_0x4c6a11){return function(_0x16afd2){return!_0x16afd2&&_0x4c6a11['sendStatus'](0x194),_0x16afd2;};}function handleError(_0x3e8940,_0x1b8841){return _0x1b8841=_0x1b8841||0x1f4,function(_0x22dd06){const _0x577bce=a320_0x5a05;logger[_0x577bce(0x86)](_0x22dd06[_0x577bce(0x98)]),_0x22dd06[_0x577bce(0x78)]&&delete _0x22dd06[_0x577bce(0x78)],_0x3e8940[_0x577bce(0xb2)](_0x1b8841)[_0x577bce(0xae)](_0x22dd06);};}exports[a320_0x5abf34(0x77)]=function(_0x3cca92,_0x102249){const _0x423dc9=a320_0x5abf34;let _0x4c0015={};const _0x35762a={},_0x4d525c={'count':0x0,'rows':[]},_0xec3240=_[_0x423dc9(0xaa)](db['FreshsalesAccount'][_0x423dc9(0x6c)],function(_0x56c8b6){const _0x55d2f2=_0x423dc9;return{'name':_0x56c8b6[_0x55d2f2(0xa4)],'type':_0x56c8b6[_0x55d2f2(0x85)][_0x55d2f2(0x90)]};});_0x35762a[_0x423dc9(0x75)]=_[_0x423dc9(0xaa)](_0xec3240,_0x423dc9(0x78)),_0x35762a['query']=_[_0x423dc9(0x94)](_0x3cca92[_0x423dc9(0x8f)]),_0x35762a['filters']=_[_0x423dc9(0x7f)](_0x35762a[_0x423dc9(0x75)],_0x35762a[_0x423dc9(0x8f)]),_0x4c0015[_0x423dc9(0xac)]=_[_0x423dc9(0x7f)](_0x35762a['model'],qs[_0x423dc9(0xb3)](_0x3cca92[_0x423dc9(0x8f)]['fields'])),_0x4c0015[_0x423dc9(0xac)]=_0x4c0015[_0x423dc9(0xac)][_0x423dc9(0xa8)]?_0x4c0015[_0x423dc9(0xac)]:_0x35762a['model'];typeof _0x3cca92[_0x423dc9(0x8f)][_0x423dc9(0xa0)]===_0x423dc9(0xa7)&&(_0x4c0015[_0x423dc9(0x9b)]=qs['limit'](_0x3cca92[_0x423dc9(0x8f)]['limit']),_0x4c0015[_0x423dc9(0x7b)]=qs[_0x423dc9(0x7b)](_0x3cca92['query'][_0x423dc9(0x7b)]));_0x4c0015[_0x423dc9(0xb4)]=qs[_0x423dc9(0x83)](_0x3cca92[_0x423dc9(0x8f)][_0x423dc9(0x83)]),_0x4c0015[_0x423dc9(0x9f)]=qs[_0x423dc9(0x91)](_[_0x423dc9(0x89)](_0x3cca92['query'],_0x35762a[_0x423dc9(0x91)]),_0xec3240);_0x3cca92[_0x423dc9(0x8f)]['filter']&&(_0x4c0015['where']=_[_0x423dc9(0x71)](_0x4c0015[_0x423dc9(0x9f)],{[Op['or']]:_['map'](_0xec3240,function(_0x13338a){const _0x422df5=_0x423dc9;if(_0x13338a[_0x422df5(0x85)]!==_0x422df5(0xa9)){const _0x1af04e={};return _0x1af04e[_0x13338a[_0x422df5(0x78)]]={[Op['like']]:'%'+_0x3cca92[_0x422df5(0x8f)][_0x422df5(0x6a)]+'%'},_0x1af04e;}})}));_0x4c0015=_[_0x423dc9(0x71)]({},_0x4c0015,_0x3cca92[_0x423dc9(0x6d)]);const _0x512012={'where':_0x4c0015[_0x423dc9(0x9f)]};return db[_0x423dc9(0x70)]['count'](_0x512012)[_0x423dc9(0x9a)](function(_0x2bcf21){const _0x197397=_0x423dc9;return _0x4d525c[_0x197397(0xa6)]=_0x2bcf21,_0x3cca92[_0x197397(0x8f)][_0x197397(0x96)]&&(_0x4c0015[_0x197397(0xad)]=[{'all':!![]}]),db[_0x197397(0x70)]['findAll'](_0x4c0015);})['then'](function(_0x5143c4){const _0x335e5f=_0x423dc9;return _0x4d525c[_0x335e5f(0x73)]=_0x5143c4,_0x4d525c;})['then'](respondWithFilteredResult(_0x102249,_0x4c0015))[_0x423dc9(0x74)](handleError(_0x102249,null));},exports[a320_0x5abf34(0x8c)]=function(_0x348e0f,_0x41e0c6){const _0x39563f=a320_0x5abf34;let _0x4741e7={'raw':![],'where':{'id':_0x348e0f[_0x39563f(0x92)]['id']}};const _0x3d066a={};return _0x3d066a[_0x39563f(0x75)]=_[_0x39563f(0x94)](db['FreshsalesAccount'][_0x39563f(0x6c)]),_0x3d066a[_0x39563f(0x8f)]=_['keys'](_0x348e0f[_0x39563f(0x8f)]),_0x3d066a[_0x39563f(0x91)]=_['intersection'](_0x3d066a[_0x39563f(0x75)],_0x3d066a[_0x39563f(0x8f)]),_0x4741e7['attributes']=_[_0x39563f(0x7f)](_0x3d066a[_0x39563f(0x75)],qs[_0x39563f(0xb3)](_0x348e0f['query'][_0x39563f(0xb3)])),_0x4741e7['attributes']=_0x4741e7[_0x39563f(0xac)]['length']?_0x4741e7[_0x39563f(0xac)]:_0x3d066a[_0x39563f(0x75)],_0x348e0f['query'][_0x39563f(0x96)]&&(_0x4741e7[_0x39563f(0xad)]=[{'all':!![]}]),_0x4741e7=_[_0x39563f(0x71)]({},_0x4741e7,_0x348e0f[_0x39563f(0x6d)]),db[_0x39563f(0x70)][_0x39563f(0x84)](_0x4741e7)[_0x39563f(0x9a)](handleEntityNotFound(_0x41e0c6,null))[_0x39563f(0x9a)](respondWithResult(_0x41e0c6,null))[_0x39563f(0x74)](handleError(_0x41e0c6,null));},exports[a320_0x5abf34(0x88)]=function(_0x41f95a,_0x5f190d){const _0xebd943=a320_0x5abf34;return db[_0xebd943(0x70)]['create'](_0x41f95a['body'],{})['then'](respondWithResult(_0x5f190d,0xc9))[_0xebd943(0x74)](handleError(_0x5f190d,null));},exports[a320_0x5abf34(0x76)]=function(_0x54e0c4,_0x440048){const _0x44a1a4=a320_0x5abf34;return _0x54e0c4[_0x44a1a4(0x95)]['id']&&delete _0x54e0c4['body']['id'],db[_0x44a1a4(0x70)][_0x44a1a4(0x84)]({'where':{'id':_0x54e0c4['params']['id']}})['then'](handleEntityNotFound(_0x440048,null))[_0x44a1a4(0x9a)](saveUpdates(_0x54e0c4[_0x44a1a4(0x95)],null))[_0x44a1a4(0x9a)](respondWithResult(_0x440048,null))['catch'](handleError(_0x440048,null));},exports[a320_0x5abf34(0xb7)]=function(_0x591f13,_0x5152d6){const _0x45e93a=a320_0x5abf34;return db[_0x45e93a(0x70)][_0x45e93a(0x84)]({'where':{'id':_0x591f13['params']['id']}})[_0x45e93a(0x9a)](handleEntityNotFound(_0x5152d6,null))[_0x45e93a(0x9a)](removeEntity(_0x5152d6,null))[_0x45e93a(0x74)](handleError(_0x5152d6,null));},exports[a320_0x5abf34(0x8d)]=function(_0xe79f1b,_0x301d42){const _0x5cd0fe=a320_0x5abf34;let _0x24d076={};const _0x2d3ec7={};let _0x42301c,_0x24e778;return db[_0x5cd0fe(0x70)][_0x5cd0fe(0x84)]({'where':{'id':_0xe79f1b['params']['id']}})[_0x5cd0fe(0x9a)](handleEntityNotFound(_0x301d42,null))[_0x5cd0fe(0x9a)](function(_0x5b281c){const _0x227060=_0x5cd0fe;if(_0x5b281c)return _0x42301c=_0x5b281c,_0x2d3ec7[_0x227060(0x75)]=_[_0x227060(0x94)](db[_0x227060(0x6b)][_0x227060(0x6c)]),_0x2d3ec7[_0x227060(0x8f)]=_[_0x227060(0x94)](_0xe79f1b[_0x227060(0x8f)]),_0x2d3ec7[_0x227060(0x91)]=_[_0x227060(0x7f)](_0x2d3ec7[_0x227060(0x75)],_0x2d3ec7[_0x227060(0x8f)]),_0x24d076['attributes']=_[_0x227060(0x7f)](_0x2d3ec7['model'],qs[_0x227060(0xb3)](_0xe79f1b['query'][_0x227060(0xb3)])),_0x24d076[_0x227060(0xac)]=_0x24d076[_0x227060(0xac)]['length']?_0x24d076[_0x227060(0xac)]:_0x2d3ec7['model'],_0x24d076['order']=qs[_0x227060(0x83)](_0xe79f1b[_0x227060(0x8f)][_0x227060(0x83)]),_0x24d076[_0x227060(0x9f)]=qs['filters'](_[_0x227060(0x89)](_0xe79f1b[_0x227060(0x8f)],_0x2d3ec7[_0x227060(0x91)])),_0xe79f1b[_0x227060(0x8f)][_0x227060(0x6a)]&&(_0x24d076[_0x227060(0x9f)]=_[_0x227060(0x71)](_0x24d076[_0x227060(0x9f)],{[Op['or']]:_['map'](_0x24d076[_0x227060(0xac)],function(_0x3887fc){const _0x394dd1=_0x227060,_0x1f7c7f={};return _0x1f7c7f[_0x3887fc]={[Op[_0x394dd1(0x7e)]]:'%'+_0xe79f1b[_0x394dd1(0x8f)][_0x394dd1(0x6a)]+'%'},_0x1f7c7f;})})),_0x24d076=_[_0x227060(0x71)]({},_0x24d076,_0xe79f1b['options']),_0x42301c['getConfigurations'](_0x24d076);})[_0x5cd0fe(0x9a)](function(_0xba7fd9){const _0x38475d=_0x5cd0fe;if(_0xba7fd9)return _0x24e778=_0xba7fd9['length'],typeof _0xe79f1b['query'][_0x38475d(0xa0)]===_0x38475d(0xa7)&&(_0x24d076[_0x38475d(0x9b)]=qs[_0x38475d(0x9b)](_0xe79f1b[_0x38475d(0x8f)][_0x38475d(0x9b)]),_0x24d076[_0x38475d(0x7b)]=qs[_0x38475d(0x7b)](_0xe79f1b[_0x38475d(0x8f)][_0x38475d(0x7b)])),_0x42301c['getConfigurations'](_0x24d076);})[_0x5cd0fe(0x9a)](function(_0x431abe){if(_0x431abe)return _0x431abe?{'count':_0x24e778,'rows':_0x431abe}:null;})[_0x5cd0fe(0x9a)](respondWithResult(_0x301d42,null))['catch'](handleError(_0x301d42,null));},exports['addConfiguration']=function(_0x7ef260,_0x5b9880){const _0x18c096=a320_0x5abf34;return _0x7ef260[_0x18c096(0x95)]['id']&&delete _0x7ef260['body']['id'],db['FreshsalesAccount']['findOne']({'where':{'id':_0x7ef260[_0x18c096(0x92)]['id']}})[_0x18c096(0x9a)](handleEntityNotFound(_0x5b9880,null))[_0x18c096(0x9a)](function(_0x562006){const _0x149c92=_0x18c096;if(_0x562006)return _0x7ef260[_0x149c92(0x95)]['AccountId']=_0x562006['id'],_0x7ef260[_0x149c92(0x95)]['Subjects']=integrations['getSubjects'](_0x7ef260[_0x149c92(0x95)][_0x149c92(0xa1)],_0x7ef260['body'][_0x149c92(0x85)]),_0x7ef260[_0x149c92(0x95)][_0x149c92(0x7a)]=integrations[_0x149c92(0xb5)](_0x7ef260['body'][_0x149c92(0xa1)],_0x7ef260[_0x149c92(0x95)][_0x149c92(0x85)]),db[_0x149c92(0x6b)][_0x149c92(0x88)](_0x7ef260[_0x149c92(0x95)],{'include':[{'model':db[_0x149c92(0x79)],'as':_0x149c92(0xa3)},{'model':db[_0x149c92(0x79)],'as':_0x149c92(0x7a)}]});return null;})[_0x18c096(0x9a)](respondWithResult(_0x5b9880,null))['catch'](handleError(_0x5b9880,null));},exports['getFields']=function(_0x21ef10,_0x425984){const _0x290ede=a320_0x5abf34;let _0x3d4644='',_0x379b59='';return db['FreshsalesAccount'][_0x290ede(0x84)]({'where':{'id':_0x21ef10[_0x290ede(0x92)]['id']},'attributes':['id',_0x290ede(0x93),_0x290ede(0x9e),_0x290ede(0x97)]})[_0x290ede(0x9a)](handleEntityNotFound(_0x425984,null))[_0x290ede(0x9a)](function(_0x38d51d){const _0xe2d031=_0x290ede;if(_0x38d51d){_0x379b59=_0x38d51d[_0xe2d031(0x93)],_0x3d4644=_0x38d51d[_0xe2d031(0x9e)];const _0xa1725c=_0x38d51d['remoteUri'][_0xe2d031(0x7c)](-0x1);return _0xa1725c==='/'&&(_0x3d4644=_0x3d4644[_0xe2d031(0xab)](0x0,_0x3d4644[_0xe2d031(0xb1)](_0xa1725c))),rp({'method':_0xe2d031(0x99),'uri':util[_0xe2d031(0xa2)](_0xe2d031(0xaf),_0x3d4644,'/api/selector/owners'),'headers':{'Authorization':'Token\x20token='+_0x38d51d[_0xe2d031(0x97)]},'json':!![]});}})[_0x290ede(0x9a)](function(_0x226dde){const _0x5b0c43=_0x290ede;if(_0x226dde){const _0x1b5f4e=_0x226dde[_0x5b0c43(0x7d)];let _0x156a54=![],_0x3c2231=null;for(_0x3c2231=0x0;_0x3c2231<_0x1b5f4e[_0x5b0c43(0xa8)];_0x3c2231++){_0x1b5f4e[_0x3c2231][_0x5b0c43(0x6e)]===_0x379b59&&(_0x156a54=!![]);}if(_0x156a54)return!![];else throw new Error({'statusCode':0x194,'message':_0x5b0c43(0xa5)});}})[_0x290ede(0x9a)](respondWithResult(_0x425984,null))[_0x290ede(0x74)](function(_0x12c924){const _0x554127=_0x290ede;let _0x45e094=_0x21ef10[_0x554127(0x8f)][_0x554127(0xb0)]?0x1f4:_0x12c924[_0x554127(0xb8)]||0x1f4;logger[_0x554127(0x86)](_0x554127(0x9c),_0x554127(0x69),_0x45e094,JSON['stringify'](_0x12c924)),delete _0x12c924[_0x554127(0x78)],_0x45e094===0x191&&(_0x45e094=0x190),_0x425984[_0x554127(0xb2)](_0x45e094)[_0x554127(0xae)](_0x21ef10[_0x554127(0x8f)][_0x554127(0xb0)]?{'message':_0x554127(0xb6),'statusCode':_0x12c924[_0x554127(0xb8)]}:_0x12c924);});}; \ No newline at end of file +const a320_0x4e52=['fieldName','options','name','catch','getFields','params','../../config/logger','/api/selector/owners','sort','rawAttributes','length','findOne','map','sendStatus','apiKey','AccountId','count','set','include','stringify','getFields,\x20%s,\x20%s,\x20%s','pick','users','error','substring','type','model','status','api','attributes','limit','intersection','Requested\x20Resource\x20not\x20Found','filter','where','request-promise-native','%s%s','Subjects','offset','query','show','includeAll','remoteUri','addConfiguration','Descriptions','then','order','Token\x20token=','rows','../../components/parsers/qs','nolimit','json','merge','Wrong\x20credentials','getDescriptions','fields','statusCode','keys','slice','like','create','filters','index','username','FreshsalesAccount','Content-Range','getSubjects','body','getConfigurations','channel','email','destroy','FreshsalesField','../../mysqldb','GET','lodash','update','util','test'];(function(_0xa5e565,_0x5223a6){const _0x4e52c7=function(_0x3b7516){while(--_0x3b7516){_0xa5e565['push'](_0xa5e565['shift']());}};_0x4e52c7(++_0x5223a6);}(a320_0x4e52,0xee));const a320_0x3b75=function(_0xa5e565,_0x5223a6){_0xa5e565=_0xa5e565-0xeb;let _0x4e52c7=a320_0x4e52[_0xa5e565];return _0x4e52c7;};const a320_0x26480=a320_0x3b75;'use strict';const rp=require(a320_0x26480(0x10d)),util=require(a320_0x26480(0x137)),_=require(a320_0x26480(0x135)),qs=require(a320_0x26480(0x11b)),logger=require(a320_0x26480(0xf0))(a320_0x26480(0x106)),{db}=require(a320_0x26480(0x133)),{Op}=require('sequelize'),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x1d6864,_0x5f4548){return _0x5f4548=_0x5f4548||0xc8,function(_0x5190a7){const _0x368039=a320_0x3b75;if(_0x5190a7)return _0x1d6864[_0x368039(0x105)](_0x5f4548)[_0x368039(0x11d)](_0x5190a7);};}function respondWithFilteredResult(_0x7840bb,_0x393835){return function(_0x21447a){const _0x142030=a320_0x3b75;if(_0x21447a){const _0x279399=_0x21447a[_0x142030(0xfa)],_0xc97667=_0x393835[_0x142030(0x110)];let _0x596540=_0x393835[_0x142030(0x110)]+_0x393835[_0x142030(0x108)],_0x4afc74;return _0x596540>=_0x279399?(_0x596540=_0x279399,_0x4afc74=0xc8):_0x4afc74=0xce,_0x7840bb[_0x142030(0x105)](_0x4afc74),_0x7840bb[_0x142030(0xfb)](_0x142030(0x12b),_0xc97667+'-'+_0x596540+'/'+_0x279399)['json'](_0x21447a);}return null;};}function saveUpdates(_0x4a8db5){return function(_0x3d8883){if(_0x3d8883)return _0x3d8883['update'](_0x4a8db5)['then'](function(_0x480435){return _0x480435;});return null;};}function removeEntity(_0x4403a3){return function(_0x1f8518){const _0x197c7b=a320_0x3b75;if(_0x1f8518)return _0x1f8518[_0x197c7b(0x131)]()[_0x197c7b(0x117)](function(){const _0x5c0f7e=_0x197c7b;_0x4403a3[_0x5c0f7e(0x105)](0xcc)['end']();});};}function handleEntityNotFound(_0x11fee9){return function(_0x17971c){const _0x3e4296=a320_0x3b75;return!_0x17971c&&_0x11fee9[_0x3e4296(0xf7)](0x194),_0x17971c;};}function handleError(_0xf2bd71,_0x5be11d){return _0x5be11d=_0x5be11d||0x1f4,function(_0x48ca61){const _0x3312a4=a320_0x3b75;logger[_0x3312a4(0x101)](_0x48ca61['stack']),_0x48ca61['name']&&delete _0x48ca61[_0x3312a4(0xec)],_0xf2bd71[_0x3312a4(0x105)](_0x5be11d)['send'](_0x48ca61);};}exports[a320_0x26480(0x128)]=function(_0xc6ee78,_0x89abda){const _0x5dd5ec=a320_0x26480;let _0x6c0b15={};const _0x3185c5={},_0x4be047={'count':0x0,'rows':[]},_0x3dda9e=_[_0x5dd5ec(0xf6)](db[_0x5dd5ec(0x12a)][_0x5dd5ec(0xf3)],function(_0x10f5f3){const _0x52c336=_0x5dd5ec;return{'name':_0x10f5f3[_0x52c336(0x139)],'type':_0x10f5f3[_0x52c336(0x103)]['key']};});_0x3185c5[_0x5dd5ec(0x104)]=_[_0x5dd5ec(0xf6)](_0x3dda9e,_0x5dd5ec(0xec)),_0x3185c5[_0x5dd5ec(0x111)]=_[_0x5dd5ec(0x123)](_0xc6ee78[_0x5dd5ec(0x111)]),_0x3185c5['filters']=_[_0x5dd5ec(0x109)](_0x3185c5[_0x5dd5ec(0x104)],_0x3185c5[_0x5dd5ec(0x111)]),_0x6c0b15[_0x5dd5ec(0x107)]=_[_0x5dd5ec(0x109)](_0x3185c5[_0x5dd5ec(0x104)],qs['fields'](_0xc6ee78[_0x5dd5ec(0x111)][_0x5dd5ec(0x121)])),_0x6c0b15[_0x5dd5ec(0x107)]=_0x6c0b15[_0x5dd5ec(0x107)][_0x5dd5ec(0xf4)]?_0x6c0b15[_0x5dd5ec(0x107)]:_0x3185c5[_0x5dd5ec(0x104)];typeof _0xc6ee78[_0x5dd5ec(0x111)][_0x5dd5ec(0x11c)]==='undefined'&&(_0x6c0b15[_0x5dd5ec(0x108)]=qs['limit'](_0xc6ee78[_0x5dd5ec(0x111)][_0x5dd5ec(0x108)]),_0x6c0b15['offset']=qs[_0x5dd5ec(0x110)](_0xc6ee78[_0x5dd5ec(0x111)][_0x5dd5ec(0x110)]));_0x6c0b15['order']=qs['sort'](_0xc6ee78['query']['sort']),_0x6c0b15[_0x5dd5ec(0x10c)]=qs[_0x5dd5ec(0x127)](_[_0x5dd5ec(0xff)](_0xc6ee78['query'],_0x3185c5[_0x5dd5ec(0x127)]),_0x3dda9e);_0xc6ee78[_0x5dd5ec(0x111)][_0x5dd5ec(0x10b)]&&(_0x6c0b15[_0x5dd5ec(0x10c)]=_['merge'](_0x6c0b15[_0x5dd5ec(0x10c)],{[Op['or']]:_['map'](_0x3dda9e,function(_0x12ffb5){const _0x36e3d3=_0x5dd5ec;if(_0x12ffb5[_0x36e3d3(0x103)]!=='VIRTUAL'){const _0x5cdf3a={};return _0x5cdf3a[_0x12ffb5[_0x36e3d3(0xec)]]={[Op[_0x36e3d3(0x125)]]:'%'+_0xc6ee78[_0x36e3d3(0x111)][_0x36e3d3(0x10b)]+'%'},_0x5cdf3a;}})}));_0x6c0b15=_[_0x5dd5ec(0x11e)]({},_0x6c0b15,_0xc6ee78[_0x5dd5ec(0xeb)]);const _0x201870={'where':_0x6c0b15['where']};return db[_0x5dd5ec(0x12a)]['count'](_0x201870)['then'](function(_0x347db2){const _0x229629=_0x5dd5ec;return _0x4be047[_0x229629(0xfa)]=_0x347db2,_0xc6ee78[_0x229629(0x111)][_0x229629(0x113)]&&(_0x6c0b15[_0x229629(0xfc)]=[{'all':!![]}]),db[_0x229629(0x12a)]['findAll'](_0x6c0b15);})[_0x5dd5ec(0x117)](function(_0x4eebd9){const _0x34a1bb=_0x5dd5ec;return _0x4be047[_0x34a1bb(0x11a)]=_0x4eebd9,_0x4be047;})[_0x5dd5ec(0x117)](respondWithFilteredResult(_0x89abda,_0x6c0b15))[_0x5dd5ec(0xed)](handleError(_0x89abda,null));},exports[a320_0x26480(0x112)]=function(_0x17081d,_0x3848bb){const _0x563caf=a320_0x26480;let _0x36a491={'raw':![],'where':{'id':_0x17081d[_0x563caf(0xef)]['id']}};const _0x323be0={};return _0x323be0[_0x563caf(0x104)]=_[_0x563caf(0x123)](db[_0x563caf(0x12a)][_0x563caf(0xf3)]),_0x323be0['query']=_[_0x563caf(0x123)](_0x17081d[_0x563caf(0x111)]),_0x323be0[_0x563caf(0x127)]=_['intersection'](_0x323be0[_0x563caf(0x104)],_0x323be0[_0x563caf(0x111)]),_0x36a491[_0x563caf(0x107)]=_[_0x563caf(0x109)](_0x323be0['model'],qs[_0x563caf(0x121)](_0x17081d['query']['fields'])),_0x36a491['attributes']=_0x36a491[_0x563caf(0x107)][_0x563caf(0xf4)]?_0x36a491['attributes']:_0x323be0[_0x563caf(0x104)],_0x17081d[_0x563caf(0x111)][_0x563caf(0x113)]&&(_0x36a491[_0x563caf(0xfc)]=[{'all':!![]}]),_0x36a491=_[_0x563caf(0x11e)]({},_0x36a491,_0x17081d['options']),db['FreshsalesAccount'][_0x563caf(0xf5)](_0x36a491)[_0x563caf(0x117)](handleEntityNotFound(_0x3848bb,null))['then'](respondWithResult(_0x3848bb,null))[_0x563caf(0xed)](handleError(_0x3848bb,null));},exports[a320_0x26480(0x126)]=function(_0x1fed63,_0x11dc53){const _0x3d9350=a320_0x26480;return db[_0x3d9350(0x12a)][_0x3d9350(0x126)](_0x1fed63['body'],{})[_0x3d9350(0x117)](respondWithResult(_0x11dc53,0xc9))[_0x3d9350(0xed)](handleError(_0x11dc53,null));},exports[a320_0x26480(0x136)]=function(_0x47f0ff,_0x272d29){const _0x12f01a=a320_0x26480;return _0x47f0ff[_0x12f01a(0x12d)]['id']&&delete _0x47f0ff['body']['id'],db[_0x12f01a(0x12a)][_0x12f01a(0xf5)]({'where':{'id':_0x47f0ff[_0x12f01a(0xef)]['id']}})[_0x12f01a(0x117)](handleEntityNotFound(_0x272d29,null))[_0x12f01a(0x117)](saveUpdates(_0x47f0ff[_0x12f01a(0x12d)],null))[_0x12f01a(0x117)](respondWithResult(_0x272d29,null))[_0x12f01a(0xed)](handleError(_0x272d29,null));},exports[a320_0x26480(0x131)]=function(_0x2b4d1e,_0x554b5a){const _0x516473=a320_0x26480;return db[_0x516473(0x12a)][_0x516473(0xf5)]({'where':{'id':_0x2b4d1e[_0x516473(0xef)]['id']}})['then'](handleEntityNotFound(_0x554b5a,null))[_0x516473(0x117)](removeEntity(_0x554b5a,null))[_0x516473(0xed)](handleError(_0x554b5a,null));},exports['getConfigurations']=function(_0x1b0696,_0x335b63){const _0x20a0e0=a320_0x26480;let _0x374912={};const _0x4167d3={};let _0x28a56a,_0x52735d;return db[_0x20a0e0(0x12a)][_0x20a0e0(0xf5)]({'where':{'id':_0x1b0696['params']['id']}})[_0x20a0e0(0x117)](handleEntityNotFound(_0x335b63,null))[_0x20a0e0(0x117)](function(_0xd1b20f){const _0x433680=_0x20a0e0;if(_0xd1b20f)return _0x28a56a=_0xd1b20f,_0x4167d3[_0x433680(0x104)]=_[_0x433680(0x123)](db['FreshsalesConfiguration'][_0x433680(0xf3)]),_0x4167d3[_0x433680(0x111)]=_['keys'](_0x1b0696[_0x433680(0x111)]),_0x4167d3[_0x433680(0x127)]=_[_0x433680(0x109)](_0x4167d3[_0x433680(0x104)],_0x4167d3[_0x433680(0x111)]),_0x374912[_0x433680(0x107)]=_[_0x433680(0x109)](_0x4167d3[_0x433680(0x104)],qs[_0x433680(0x121)](_0x1b0696[_0x433680(0x111)][_0x433680(0x121)])),_0x374912[_0x433680(0x107)]=_0x374912['attributes'][_0x433680(0xf4)]?_0x374912[_0x433680(0x107)]:_0x4167d3[_0x433680(0x104)],_0x374912[_0x433680(0x118)]=qs['sort'](_0x1b0696[_0x433680(0x111)][_0x433680(0xf2)]),_0x374912['where']=qs[_0x433680(0x127)](_['pick'](_0x1b0696['query'],_0x4167d3[_0x433680(0x127)])),_0x1b0696[_0x433680(0x111)][_0x433680(0x10b)]&&(_0x374912[_0x433680(0x10c)]=_[_0x433680(0x11e)](_0x374912['where'],{[Op['or']]:_[_0x433680(0xf6)](_0x374912['attributes'],function(_0x5ee0d9){const _0x3dafc2=_0x433680,_0x76149c={};return _0x76149c[_0x5ee0d9]={[Op[_0x3dafc2(0x125)]]:'%'+_0x1b0696[_0x3dafc2(0x111)][_0x3dafc2(0x10b)]+'%'},_0x76149c;})})),_0x374912=_[_0x433680(0x11e)]({},_0x374912,_0x1b0696[_0x433680(0xeb)]),_0x28a56a[_0x433680(0x12e)](_0x374912);})['then'](function(_0x47faeb){const _0x2d0752=_0x20a0e0;if(_0x47faeb)return _0x52735d=_0x47faeb['length'],typeof _0x1b0696[_0x2d0752(0x111)][_0x2d0752(0x11c)]==='undefined'&&(_0x374912[_0x2d0752(0x108)]=qs[_0x2d0752(0x108)](_0x1b0696['query'][_0x2d0752(0x108)]),_0x374912[_0x2d0752(0x110)]=qs[_0x2d0752(0x110)](_0x1b0696[_0x2d0752(0x111)][_0x2d0752(0x110)])),_0x28a56a[_0x2d0752(0x12e)](_0x374912);})[_0x20a0e0(0x117)](function(_0x58dde5){if(_0x58dde5)return _0x58dde5?{'count':_0x52735d,'rows':_0x58dde5}:null;})[_0x20a0e0(0x117)](respondWithResult(_0x335b63,null))[_0x20a0e0(0xed)](handleError(_0x335b63,null));},exports[a320_0x26480(0x115)]=function(_0x45248e,_0x2aa7c9){const _0x103856=a320_0x26480;return _0x45248e[_0x103856(0x12d)]['id']&&delete _0x45248e['body']['id'],db[_0x103856(0x12a)][_0x103856(0xf5)]({'where':{'id':_0x45248e[_0x103856(0xef)]['id']}})[_0x103856(0x117)](handleEntityNotFound(_0x2aa7c9,null))[_0x103856(0x117)](function(_0x4f8e9e){const _0x24bd4e=_0x103856;if(_0x4f8e9e)return _0x45248e[_0x24bd4e(0x12d)][_0x24bd4e(0xf9)]=_0x4f8e9e['id'],_0x45248e[_0x24bd4e(0x12d)][_0x24bd4e(0x10f)]=integrations[_0x24bd4e(0x12c)](_0x45248e[_0x24bd4e(0x12d)][_0x24bd4e(0x12f)],_0x45248e[_0x24bd4e(0x12d)][_0x24bd4e(0x103)]),_0x45248e['body'][_0x24bd4e(0x116)]=integrations[_0x24bd4e(0x120)](_0x45248e[_0x24bd4e(0x12d)][_0x24bd4e(0x12f)],_0x45248e[_0x24bd4e(0x12d)][_0x24bd4e(0x103)]),db['FreshsalesConfiguration'][_0x24bd4e(0x126)](_0x45248e['body'],{'include':[{'model':db[_0x24bd4e(0x132)],'as':'Subjects'},{'model':db[_0x24bd4e(0x132)],'as':'Descriptions'}]});return null;})['then'](respondWithResult(_0x2aa7c9,null))[_0x103856(0xed)](handleError(_0x2aa7c9,null));},exports[a320_0x26480(0xee)]=function(_0x5dd0f6,_0x5cef1d){const _0x436fb5=a320_0x26480;let _0x5fcf01='',_0x2a131b='';return db['FreshsalesAccount']['findOne']({'where':{'id':_0x5dd0f6[_0x436fb5(0xef)]['id']},'attributes':['id',_0x436fb5(0x129),_0x436fb5(0x114),_0x436fb5(0xf8)]})[_0x436fb5(0x117)](handleEntityNotFound(_0x5cef1d,null))[_0x436fb5(0x117)](function(_0x25e88a){const _0x2c33b3=_0x436fb5;if(_0x25e88a){_0x2a131b=_0x25e88a[_0x2c33b3(0x129)],_0x5fcf01=_0x25e88a[_0x2c33b3(0x114)];const _0x2eeb70=_0x25e88a[_0x2c33b3(0x114)][_0x2c33b3(0x124)](-0x1);return _0x2eeb70==='/'&&(_0x5fcf01=_0x5fcf01[_0x2c33b3(0x102)](0x0,_0x5fcf01['lastIndexOf'](_0x2eeb70))),rp({'method':_0x2c33b3(0x134),'uri':util['format'](_0x2c33b3(0x10e),_0x5fcf01,_0x2c33b3(0xf1)),'headers':{'Authorization':_0x2c33b3(0x119)+_0x25e88a[_0x2c33b3(0xf8)]},'json':!![]});}})[_0x436fb5(0x117)](function(_0x59bdb2){const _0x25d1d3=_0x436fb5;if(_0x59bdb2){const _0x334b58=_0x59bdb2[_0x25d1d3(0x100)];let _0x4eb211=![],_0x4cbe74=null;for(_0x4cbe74=0x0;_0x4cbe74<_0x334b58[_0x25d1d3(0xf4)];_0x4cbe74++){_0x334b58[_0x4cbe74][_0x25d1d3(0x130)]===_0x2a131b&&(_0x4eb211=!![]);}if(_0x4eb211)return!![];else throw new Error({'statusCode':0x194,'message':_0x25d1d3(0x10a)});}})[_0x436fb5(0x117)](respondWithResult(_0x5cef1d,null))[_0x436fb5(0xed)](function(_0x34ba47){const _0x472732=_0x436fb5;let _0x5e1a15=_0x5dd0f6[_0x472732(0x111)][_0x472732(0x138)]?0x1f4:_0x34ba47[_0x472732(0x122)]||0x1f4;logger[_0x472732(0x101)](_0x472732(0xfe),_0x472732(0xee),_0x5e1a15,JSON[_0x472732(0xfd)](_0x34ba47)),delete _0x34ba47[_0x472732(0xec)],_0x5e1a15===0x191&&(_0x5e1a15=0x190),_0x5cef1d[_0x472732(0x105)](_0x5e1a15)['send'](_0x5dd0f6[_0x472732(0x111)][_0x472732(0x138)]?{'message':_0x472732(0x11f),'statusCode':_0x34ba47[_0x472732(0x122)]}:_0x34ba47);});}; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js index 0c25b4a..0e4aa9d 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js @@ -1 +1 @@ -const a321_0x4281=['sequelize','function','init','FreshsalesAccount','./intFreshsalesAccount.attributes','exports'];(function(_0x2fbc14,_0x357d70){const _0x42814a=function(_0x567ef0){while(--_0x567ef0){_0x2fbc14['push'](_0x2fbc14['shift']());}};_0x42814a(++_0x357d70);}(a321_0x4281,0x1e8));const a321_0x567e=function(_0x2fbc14,_0x357d70){_0x2fbc14=_0x2fbc14-0x102;let _0x42814a=a321_0x4281[_0x2fbc14];return _0x42814a;};const a321_0x54576a=a321_0x567e;'use strict';const {Model}=require(a321_0x54576a(0x106)),{attributes}=require(a321_0x54576a(0x104)),{options}=require('./intFreshsalesAccount.options');class FreshsalesAccount extends Model{}function init(_0x133124,_0x54d38b){const _0x37e10d=a321_0x54576a,_0x5c765d=options(_0x133124),_0x5c760e=typeof _0x54d38b===_0x37e10d(0x107)?_0x54d38b(_0x5c765d):_0x5c765d;return FreshsalesAccount[_0x37e10d(0x102)](attributes,_0x5c760e),FreshsalesAccount;}module[a321_0x54576a(0x105)][a321_0x54576a(0x103)]=FreshsalesAccount,module[a321_0x54576a(0x105)][a321_0x54576a(0x102)]=init; \ No newline at end of file +const a321_0x1fbd=['exports','FreshsalesAccount','./intFreshsalesAccount.options','init'];(function(_0x3c5e01,_0x363f07){const _0x1fbdae=function(_0x574cce){while(--_0x574cce){_0x3c5e01['push'](_0x3c5e01['shift']());}};_0x1fbdae(++_0x363f07);}(a321_0x1fbd,0x123));const a321_0x574c=function(_0x3c5e01,_0x363f07){_0x3c5e01=_0x3c5e01-0xaa;let _0x1fbdae=a321_0x1fbd[_0x3c5e01];return _0x1fbdae;};const a321_0x1eccc9=a321_0x574c;'use strict';const {Model}=require('sequelize'),{attributes}=require('./intFreshsalesAccount.attributes'),{options}=require(a321_0x1eccc9(0xad));class FreshsalesAccount extends Model{}function init(_0x3fbb1f,_0x2a74d9){const _0x158aa8=options(_0x3fbb1f),_0x48fe66=typeof _0x2a74d9==='function'?_0x2a74d9(_0x158aa8):_0x158aa8;return FreshsalesAccount['init'](attributes,_0x48fe66),FreshsalesAccount;}module['exports'][a321_0x1eccc9(0xac)]=FreshsalesAccount,module[a321_0x1eccc9(0xab)][a321_0x1eccc9(0xaa)]=init; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.options.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.options.js index 608e8a3..25d4d09 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.options.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.options.js @@ -1 +1 @@ -var a322_0x45b6=['exports','options','int_freshsales_accounts'];(function(_0x5a6719,_0x520c12){var _0x45b619=function(_0x42a4b4){while(--_0x42a4b4){_0x5a6719['push'](_0x5a6719['shift']());}};_0x45b619(++_0x520c12);}(a322_0x45b6,0x1db));var a322_0x42a4=function(_0x5a6719,_0x520c12){_0x5a6719=_0x5a6719-0x164;var _0x45b619=a322_0x45b6[_0x5a6719];return _0x45b619;};var a322_0x8a8fd4=a322_0x42a4;function options(_0x4706fb){var _0x38b1d7=a322_0x42a4;return{'sequelize':_0x4706fb,'tableName':_0x38b1d7(0x165),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a322_0x8a8fd4(0x166)][a322_0x8a8fd4(0x164)]=options; \ No newline at end of file +var a322_0x360e=['exports','options','int_freshsales_accounts'];(function(_0x2ca388,_0x354cc8){var _0x360e37=function(_0x4f3d41){while(--_0x4f3d41){_0x2ca388['push'](_0x2ca388['shift']());}};_0x360e37(++_0x354cc8);}(a322_0x360e,0x1bc));var a322_0x4f3d=function(_0x2ca388,_0x354cc8){_0x2ca388=_0x2ca388-0x9f;var _0x360e37=a322_0x360e[_0x2ca388];return _0x360e37;};var a322_0x5c68a3=a322_0x4f3d;function options(_0x10bb4d){var _0x130825=a322_0x4f3d;return{'sequelize':_0x10bb4d,'tableName':_0x130825(0xa1),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a322_0x5c68a3(0x9f)][a322_0x5c68a3(0xa0)]=options; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js index 66687b8..f302223 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js @@ -1 +1 @@ -const a323_0x248d=['attributes','limit','FreshsalesAccount','stringify','message','debug','include','findAll','rpc','model','../../config/logger','../../mysqldb','lodash','info','then','raw','GetFreshsalesAccount','ShowFreshsalesAccount','error','catch','options','where','map'];(function(_0x22a089,_0x55728e){const _0x248d2b=function(_0xb390bb){while(--_0xb390bb){_0x22a089['push'](_0x22a089['shift']());}};_0x248d2b(++_0x55728e);}(a323_0x248d,0x111));const a323_0xb390=function(_0x22a089,_0x55728e){_0x22a089=_0x22a089-0x11c;let _0x248d2b=a323_0x248d[_0x22a089];return _0x248d2b;};const a323_0x2d6d99=a323_0xb390;'use strict';const _=require(a323_0x2d6d99(0x12b)),db=require(a323_0x2d6d99(0x12a))['db'],logger=require(a323_0x2d6d99(0x129))(a323_0x2d6d99(0x127));exports[a323_0x2d6d99(0x12f)]=function(_0x5ec9cc){const _0x5b2da4=this;return new Promise(function(_0x289e8e,_0x1057df){const _0xcbcf4b=a323_0xb390;return db[_0xcbcf4b(0x121)][_0xcbcf4b(0x126)]({'raw':_0x5ec9cc['options']?_0x5ec9cc[_0xcbcf4b(0x11c)][_0xcbcf4b(0x12e)]===undefined?!![]:![]:!![],'where':_0x5ec9cc['options']?_0x5ec9cc[_0xcbcf4b(0x11c)][_0xcbcf4b(0x11d)]||null:null,'attributes':_0x5ec9cc[_0xcbcf4b(0x11c)]?_0x5ec9cc[_0xcbcf4b(0x11c)]['attributes']||null:null,'limit':_0x5ec9cc[_0xcbcf4b(0x11c)]?_0x5ec9cc[_0xcbcf4b(0x11c)][_0xcbcf4b(0x120)]||null:null,'include':_0x5ec9cc['options']?_0x5ec9cc[_0xcbcf4b(0x11c)]['include']?_[_0xcbcf4b(0x11e)](_0x5ec9cc[_0xcbcf4b(0x11c)]['include'],function(_0x1bf780){const _0x792d56=_0xcbcf4b;return{'model':db[_0x1bf780[_0x792d56(0x128)]],'as':_0x1bf780['as'],'attributes':_0x1bf780[_0x792d56(0x11f)],'include':_0x1bf780[_0x792d56(0x125)]?_['map'](_0x1bf780[_0x792d56(0x125)],function(_0x16858c){const _0x56dcf2=_0x792d56;return{'model':db[_0x16858c[_0x56dcf2(0x128)]],'as':_0x16858c['as'],'attributes':_0x16858c[_0x56dcf2(0x11f)],'include':_0x16858c[_0x56dcf2(0x125)]?_[_0x56dcf2(0x11e)](_0x16858c[_0x56dcf2(0x125)],function(_0xc8a0b1){const _0x9d4739=_0x56dcf2;return{'model':db[_0xc8a0b1[_0x9d4739(0x128)]],'as':_0xc8a0b1['as'],'attributes':_0xc8a0b1[_0x9d4739(0x11f)]};}):[]};}):[]};}):[]:[]})[_0xcbcf4b(0x12d)](function(_0x3e2235){const _0x215b1a=_0xcbcf4b;logger['info'](_0x215b1a(0x12f),_0x5ec9cc),logger[_0x215b1a(0x124)](_0x215b1a(0x12f),_0x5ec9cc,JSON[_0x215b1a(0x122)](_0x3e2235)),_0x289e8e(_0x3e2235);})['catch'](function(_0x12d5b7){const _0x6bff84=_0xcbcf4b;logger[_0x6bff84(0x131)](_0x6bff84(0x12f),_0x12d5b7['message'],_0x5ec9cc),_0x1057df(_0x5b2da4['error'](0x1f4,_0x12d5b7['message']));});});},exports[a323_0x2d6d99(0x130)]=function(_0x4eb404){const _0x189e7d=this;return new Promise(function(_0x349b5c,_0x1ddb5e){const _0xf2b283=a323_0xb390;return db[_0xf2b283(0x121)]['findOne']({'raw':_0x4eb404[_0xf2b283(0x11c)]?_0x4eb404[_0xf2b283(0x11c)][_0xf2b283(0x12e)]===undefined?!![]:![]:!![],'where':_0x4eb404[_0xf2b283(0x11c)]?_0x4eb404[_0xf2b283(0x11c)][_0xf2b283(0x11d)]||null:null,'attributes':_0x4eb404[_0xf2b283(0x11c)]?_0x4eb404[_0xf2b283(0x11c)][_0xf2b283(0x11f)]||null:null,'include':_0x4eb404[_0xf2b283(0x11c)]?_0x4eb404[_0xf2b283(0x11c)][_0xf2b283(0x125)]?_[_0xf2b283(0x11e)](_0x4eb404[_0xf2b283(0x11c)][_0xf2b283(0x125)],function(_0x56d48f){const _0x4a9e75=_0xf2b283;return{'model':db[_0x56d48f[_0x4a9e75(0x128)]],'as':_0x56d48f['as'],'attributes':_0x56d48f[_0x4a9e75(0x11f)],'include':_0x56d48f[_0x4a9e75(0x125)]?_[_0x4a9e75(0x11e)](_0x56d48f[_0x4a9e75(0x125)],function(_0x157bac){const _0x5ddd3b=_0x4a9e75;return{'model':db[_0x157bac[_0x5ddd3b(0x128)]],'as':_0x157bac['as'],'attributes':_0x157bac[_0x5ddd3b(0x11f)],'include':_0x157bac[_0x5ddd3b(0x125)]?_['map'](_0x157bac[_0x5ddd3b(0x125)],function(_0x3dd651){const _0xc79c04=_0x5ddd3b;return{'model':db[_0x3dd651[_0xc79c04(0x128)]],'as':_0x3dd651['as'],'attributes':_0x3dd651[_0xc79c04(0x11f)]};}):[]};}):[]};}):[]:[]})[_0xf2b283(0x12d)](function(_0x4bf783){const _0x13d2ed=_0xf2b283;logger[_0x13d2ed(0x12c)]('ShowFreshsalesAccount',_0x4eb404),logger[_0x13d2ed(0x124)](_0x13d2ed(0x130),_0x4eb404,JSON['stringify'](_0x4bf783)),_0x349b5c(_0x4bf783);})[_0xf2b283(0x132)](function(_0x12c362){const _0x53eeb9=_0xf2b283;logger[_0x53eeb9(0x131)](_0x53eeb9(0x130),_0x12c362['message'],_0x4eb404),_0x1ddb5e(_0x189e7d[_0x53eeb9(0x131)](0x1f4,_0x12c362[_0x53eeb9(0x123)]));});});}; \ No newline at end of file +const a323_0x38ba=['stringify','options','ShowFreshsalesAccount','message','where','limit','then','error','catch','GetFreshsalesAccount','info','map','findAll','FreshsalesAccount','include','raw','../../config/logger','attributes','../../mysqldb','model','rpc','lodash','debug'];(function(_0x3367fc,_0x51f529){const _0x38bae1=function(_0x933060){while(--_0x933060){_0x3367fc['push'](_0x3367fc['shift']());}};_0x38bae1(++_0x51f529);}(a323_0x38ba,0x1d7));const a323_0x9330=function(_0x3367fc,_0x51f529){_0x3367fc=_0x3367fc-0x99;let _0x38bae1=a323_0x38ba[_0x3367fc];return _0x38bae1;};const a323_0x6fce43=a323_0x9330;'use strict';const _=require(a323_0x6fce43(0xa3)),db=require(a323_0x6fce43(0xa0))['db'],logger=require(a323_0x6fce43(0x9e))(a323_0x6fce43(0xa2));exports[a323_0x6fce43(0xae)]=function(_0x3f0681){const _0x469816=this;return new Promise(function(_0x31c9c4,_0x444d00){const _0x3ea5b8=a323_0x9330;return db[_0x3ea5b8(0x9b)][_0x3ea5b8(0x9a)]({'raw':_0x3f0681[_0x3ea5b8(0xa6)]?_0x3f0681[_0x3ea5b8(0xa6)][_0x3ea5b8(0x9d)]===undefined?!![]:![]:!![],'where':_0x3f0681['options']?_0x3f0681[_0x3ea5b8(0xa6)][_0x3ea5b8(0xa9)]||null:null,'attributes':_0x3f0681['options']?_0x3f0681['options']['attributes']||null:null,'limit':_0x3f0681['options']?_0x3f0681[_0x3ea5b8(0xa6)][_0x3ea5b8(0xaa)]||null:null,'include':_0x3f0681[_0x3ea5b8(0xa6)]?_0x3f0681[_0x3ea5b8(0xa6)]['include']?_[_0x3ea5b8(0x99)](_0x3f0681[_0x3ea5b8(0xa6)][_0x3ea5b8(0x9c)],function(_0x31971e){const _0x12bc30=_0x3ea5b8;return{'model':db[_0x31971e[_0x12bc30(0xa1)]],'as':_0x31971e['as'],'attributes':_0x31971e[_0x12bc30(0x9f)],'include':_0x31971e['include']?_[_0x12bc30(0x99)](_0x31971e['include'],function(_0x3b81f3){const _0x1550bf=_0x12bc30;return{'model':db[_0x3b81f3[_0x1550bf(0xa1)]],'as':_0x3b81f3['as'],'attributes':_0x3b81f3[_0x1550bf(0x9f)],'include':_0x3b81f3['include']?_[_0x1550bf(0x99)](_0x3b81f3[_0x1550bf(0x9c)],function(_0xdd7fb8){const _0x47f62d=_0x1550bf;return{'model':db[_0xdd7fb8[_0x47f62d(0xa1)]],'as':_0xdd7fb8['as'],'attributes':_0xdd7fb8['attributes']};}):[]};}):[]};}):[]:[]})[_0x3ea5b8(0xab)](function(_0x131b1b){const _0x34075b=_0x3ea5b8;logger[_0x34075b(0xaf)](_0x34075b(0xae),_0x3f0681),logger[_0x34075b(0xa4)]('GetFreshsalesAccount',_0x3f0681,JSON[_0x34075b(0xa5)](_0x131b1b)),_0x31c9c4(_0x131b1b);})[_0x3ea5b8(0xad)](function(_0x18a417){const _0x28f245=_0x3ea5b8;logger['error']('GetFreshsalesAccount',_0x18a417['message'],_0x3f0681),_0x444d00(_0x469816[_0x28f245(0xac)](0x1f4,_0x18a417[_0x28f245(0xa8)]));});});},exports[a323_0x6fce43(0xa7)]=function(_0x467b9e){const _0x42c9d7=this;return new Promise(function(_0x51bf0c,_0x3bec2d){const _0x4129eb=a323_0x9330;return db[_0x4129eb(0x9b)]['findOne']({'raw':_0x467b9e[_0x4129eb(0xa6)]?_0x467b9e[_0x4129eb(0xa6)][_0x4129eb(0x9d)]===undefined?!![]:![]:!![],'where':_0x467b9e[_0x4129eb(0xa6)]?_0x467b9e[_0x4129eb(0xa6)][_0x4129eb(0xa9)]||null:null,'attributes':_0x467b9e['options']?_0x467b9e[_0x4129eb(0xa6)][_0x4129eb(0x9f)]||null:null,'include':_0x467b9e['options']?_0x467b9e[_0x4129eb(0xa6)]['include']?_[_0x4129eb(0x99)](_0x467b9e[_0x4129eb(0xa6)][_0x4129eb(0x9c)],function(_0x196676){const _0x1fc325=_0x4129eb;return{'model':db[_0x196676[_0x1fc325(0xa1)]],'as':_0x196676['as'],'attributes':_0x196676[_0x1fc325(0x9f)],'include':_0x196676[_0x1fc325(0x9c)]?_['map'](_0x196676[_0x1fc325(0x9c)],function(_0x93e91e){const _0x1e82d6=_0x1fc325;return{'model':db[_0x93e91e[_0x1e82d6(0xa1)]],'as':_0x93e91e['as'],'attributes':_0x93e91e[_0x1e82d6(0x9f)],'include':_0x93e91e[_0x1e82d6(0x9c)]?_[_0x1e82d6(0x99)](_0x93e91e['include'],function(_0x39451a){return{'model':db[_0x39451a['model']],'as':_0x39451a['as'],'attributes':_0x39451a['attributes']};}):[]};}):[]};}):[]:[]})[_0x4129eb(0xab)](function(_0xd18d35){const _0x594205=_0x4129eb;logger[_0x594205(0xaf)](_0x594205(0xa7),_0x467b9e),logger['debug'](_0x594205(0xa7),_0x467b9e,JSON[_0x594205(0xa5)](_0xd18d35)),_0x51bf0c(_0xd18d35);})[_0x4129eb(0xad)](function(_0x4a0a6e){const _0x2f2bd6=_0x4129eb;logger[_0x2f2bd6(0xac)]('ShowFreshsalesAccount',_0x4a0a6e[_0x2f2bd6(0xa8)],_0x467b9e),_0x3bec2d(_0x42c9d7[_0x2f2bd6(0xac)](0x1f4,_0x4a0a6e[_0x2f2bd6(0xa8)]));});});}; \ No newline at end of file diff --git a/server/api/intFreshsalesConfiguration/index.js b/server/api/intFreshsalesConfiguration/index.js index d3094db..b4f897f 100644 --- a/server/api/intFreshsalesConfiguration/index.js +++ b/server/api/intFreshsalesConfiguration/index.js @@ -1 +1 @@ -const a324_0x52c6=['getSubjects','express','../../components/auth/service','destroy','post','/:id/subjects','/:id','show','isAuthenticated','get','Router','exports','/:id/fields','create','getDescriptions','./intFreshsalesConfiguration.controller','delete','index'];(function(_0x3ab08b,_0x5b2a2c){const _0x52c692=function(_0x27d641){while(--_0x27d641){_0x3ab08b['push'](_0x3ab08b['shift']());}};_0x52c692(++_0x5b2a2c);}(a324_0x52c6,0x15f));const a324_0x27d6=function(_0x3ab08b,_0x5b2a2c){_0x3ab08b=_0x3ab08b-0x19f;let _0x52c692=a324_0x52c6[_0x3ab08b];return _0x52c692;};const a324_0x2e0ab6=a324_0x27d6;'use strict';const express=require(a324_0x2e0ab6(0x1a9)),router=express[a324_0x2e0ab6(0x1a0)](),auth=require(a324_0x2e0ab6(0x1aa)),controller=require(a324_0x2e0ab6(0x1a5));router[a324_0x2e0ab6(0x19f)]('/',auth[a324_0x2e0ab6(0x1b0)](),controller[a324_0x2e0ab6(0x1a7)]),router[a324_0x2e0ab6(0x19f)]('/:id',auth[a324_0x2e0ab6(0x1b0)](),controller[a324_0x2e0ab6(0x1af)]),router[a324_0x2e0ab6(0x19f)](a324_0x2e0ab6(0x1ad),auth['isAuthenticated'](),controller[a324_0x2e0ab6(0x1a8)]),router[a324_0x2e0ab6(0x19f)]('/:id/descriptions',auth[a324_0x2e0ab6(0x1b0)](),controller[a324_0x2e0ab6(0x1a4)]),router[a324_0x2e0ab6(0x19f)](a324_0x2e0ab6(0x1a2),auth[a324_0x2e0ab6(0x1b0)](),controller['getFields']),router[a324_0x2e0ab6(0x1ac)]('/',auth[a324_0x2e0ab6(0x1b0)](),controller[a324_0x2e0ab6(0x1a3)]),router['put']('/:id',auth[a324_0x2e0ab6(0x1b0)](),controller['update']),router[a324_0x2e0ab6(0x1a6)](a324_0x2e0ab6(0x1ae),auth[a324_0x2e0ab6(0x1b0)](),controller[a324_0x2e0ab6(0x1ab)]),module[a324_0x2e0ab6(0x1a1)]=router; \ No newline at end of file +const a324_0x3ff3=['delete','/:id/subjects','index','create','/:id','destroy','express','./intFreshsalesConfiguration.controller','getFields','put','get','update','getDescriptions','../../components/auth/service','isAuthenticated'];(function(_0x47573c,_0x118b87){const _0x3ff3c1=function(_0xf2891){while(--_0xf2891){_0x47573c['push'](_0x47573c['shift']());}};_0x3ff3c1(++_0x118b87);}(a324_0x3ff3,0xf2));const a324_0xf289=function(_0x47573c,_0x118b87){_0x47573c=_0x47573c-0x1ef;let _0x3ff3c1=a324_0x3ff3[_0x47573c];return _0x3ff3c1;};const a324_0x15171f=a324_0xf289;'use strict';const express=require(a324_0x15171f(0x1f3)),router=express['Router'](),auth=require(a324_0x15171f(0x1fa)),controller=require(a324_0x15171f(0x1f4));router[a324_0x15171f(0x1f7)]('/',auth[a324_0x15171f(0x1fb)](),controller[a324_0x15171f(0x1ef)]),router[a324_0x15171f(0x1f7)]('/:id',auth[a324_0x15171f(0x1fb)](),controller['show']),router[a324_0x15171f(0x1f7)](a324_0x15171f(0x1fd),auth[a324_0x15171f(0x1fb)](),controller['getSubjects']),router[a324_0x15171f(0x1f7)]('/:id/descriptions',auth[a324_0x15171f(0x1fb)](),controller[a324_0x15171f(0x1f9)]),router[a324_0x15171f(0x1f7)]('/:id/fields',auth[a324_0x15171f(0x1fb)](),controller[a324_0x15171f(0x1f5)]),router['post']('/',auth[a324_0x15171f(0x1fb)](),controller[a324_0x15171f(0x1f0)]),router[a324_0x15171f(0x1f6)]('/:id',auth[a324_0x15171f(0x1fb)](),controller[a324_0x15171f(0x1f8)]),router[a324_0x15171f(0x1fc)](a324_0x15171f(0x1f1),auth['isAuthenticated'](),controller[a324_0x15171f(0x1f2)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js index 7b0443c..41db939 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js @@ -1 +1 @@ -const a325_0x54c3=['sequelize','attributes','STRING','exports'];(function(_0xce9201,_0x4b35cf){const _0x54c369=function(_0x3581a9){while(--_0x3581a9){_0xce9201['push'](_0xce9201['shift']());}};_0x54c369(++_0x4b35cf);}(a325_0x54c3,0x108));const a325_0x3581=function(_0xce9201,_0x4b35cf){_0xce9201=_0xce9201-0x1d6;let _0x54c369=a325_0x54c3[_0xce9201];return _0x54c369;};const a325_0x666e5c=a325_0x3581;'use strict';const {DataTypes}=require(a325_0x666e5c(0x1d6)),attributes={'name':{'type':DataTypes[a325_0x666e5c(0x1d8)]},'description':{'type':DataTypes['STRING']}};module[a325_0x666e5c(0x1d9)][a325_0x666e5c(0x1d7)]=attributes; \ No newline at end of file +const a325_0xd3cf=['STRING','sequelize','exports'];(function(_0x823029,_0x12400a){const _0xd3cfd3=function(_0x22f2b6){while(--_0x22f2b6){_0x823029['push'](_0x823029['shift']());}};_0xd3cfd3(++_0x12400a);}(a325_0xd3cf,0x8f));const a325_0x22f2=function(_0x823029,_0x12400a){_0x823029=_0x823029-0xd2;let _0xd3cfd3=a325_0xd3cf[_0x823029];return _0xd3cfd3;};const a325_0x14b7cb=a325_0x22f2;'use strict';const {DataTypes}=require(a325_0x14b7cb(0xd4)),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a325_0x14b7cb(0xd3)]}};module[a325_0x14b7cb(0xd2)]['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 0f220fd..de8532f 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js @@ -1 +1 @@ -const a326_0x118f=['FreshsalesConfiguration','FreshsalesField','params','attributes','name','destroy','../../mysqldb','set','merge','Content-Range','end','fieldName','length','like','getDescriptions','map','error','send','model','intersection','stack','json','update','fields','pick','sort','order','includeAll','filter','nolimit','options','status','findOne','catch','create','keys','key','../../components/parsers/qs','filters','VIRTUAL','query','show','rawAttributes','body','offset','then','getFields','count','type','getSubjects','api','undefined','include','limit','lodash','where'];(function(_0x29d1d7,_0x2b3cde){const _0x118f14=function(_0xe15621){while(--_0xe15621){_0x29d1d7['push'](_0x29d1d7['shift']());}};_0x118f14(++_0x2b3cde);}(a326_0x118f,0x144));const a326_0xe156=function(_0x29d1d7,_0x2b3cde){_0x29d1d7=_0x29d1d7-0x1e0;let _0x118f14=a326_0x118f[_0x29d1d7];return _0x118f14;};const a326_0x2fef67=a326_0xe156;'use strict';const _=require(a326_0x2fef67(0x1ea)),qs=require(a326_0x2fef67(0x211)),logger=require('../../config/logger')(a326_0x2fef67(0x1e6)),{db}=require(a326_0x2fef67(0x1f2)),{Op}=require('sequelize');function respondWithResult(_0x510813,_0x4b4cb0){return _0x4b4cb0=_0x4b4cb0||0xc8,function(_0x818d73){const _0x270c7f=a326_0xe156;if(_0x818d73)return _0x510813[_0x270c7f(0x20b)](_0x4b4cb0)[_0x270c7f(0x201)](_0x818d73);};}function respondWithFilteredResult(_0x55489a,_0x37c684){return function(_0x3149b7){const _0x1fbf93=a326_0xe156;if(_0x3149b7){const _0x30e456=_0x3149b7[_0x1fbf93(0x1e3)],_0x3206f5=_0x37c684[_0x1fbf93(0x1e0)];let _0x54a99d=_0x37c684[_0x1fbf93(0x1e0)]+_0x37c684[_0x1fbf93(0x1e9)],_0x2ffce5;return _0x54a99d>=_0x30e456?(_0x54a99d=_0x30e456,_0x2ffce5=0xc8):_0x2ffce5=0xce,_0x55489a[_0x1fbf93(0x20b)](_0x2ffce5),_0x55489a[_0x1fbf93(0x1f3)](_0x1fbf93(0x1f5),_0x3206f5+'-'+_0x54a99d+'/'+_0x30e456)[_0x1fbf93(0x201)](_0x3149b7);}return null;};}function saveUpdates(_0x38aa1e){return function(_0x3bd6ca){const _0xb176ee=a326_0xe156;if(_0x3bd6ca)return _0x3bd6ca[_0xb176ee(0x202)](_0x38aa1e)[_0xb176ee(0x1e1)](function(_0x505b32){return _0x505b32;});return null;};}function removeEntity(_0x48e6bd){return function(_0x1a250c){const _0x2d5d61=a326_0xe156;if(_0x1a250c)return _0x1a250c[_0x2d5d61(0x1f1)]()[_0x2d5d61(0x1e1)](function(){const _0x4028f6=_0x2d5d61;_0x48e6bd[_0x4028f6(0x20b)](0xcc)[_0x4028f6(0x1f6)]();});};}function handleEntityNotFound(_0x5cafe4){return function(_0x52758c){return!_0x52758c&&_0x5cafe4['sendStatus'](0x194),_0x52758c;};}function handleError(_0x1cc3a7,_0x46d4e1){return _0x46d4e1=_0x46d4e1||0x1f4,function(_0x8fe785){const _0x226d8c=a326_0xe156;logger[_0x226d8c(0x1fc)](_0x8fe785[_0x226d8c(0x200)]),_0x8fe785['name']&&delete _0x8fe785[_0x226d8c(0x1f0)],_0x1cc3a7[_0x226d8c(0x20b)](_0x46d4e1)[_0x226d8c(0x1fd)](_0x8fe785);};}exports['index']=function(_0x56c340,_0x379025){const _0x4b7678=a326_0x2fef67;let _0x4d21fb={};const _0x1d95d8={},_0x5afad5={'count':0x0,'rows':[]},_0x4e6c0c=_[_0x4b7678(0x1fb)](db[_0x4b7678(0x1ec)][_0x4b7678(0x216)],function(_0x325370){const _0x139441=_0x4b7678;return{'name':_0x325370[_0x139441(0x1f7)],'type':_0x325370[_0x139441(0x1e4)][_0x139441(0x210)]};});_0x1d95d8['model']=_[_0x4b7678(0x1fb)](_0x4e6c0c,_0x4b7678(0x1f0)),_0x1d95d8[_0x4b7678(0x214)]=_['keys'](_0x56c340['query']),_0x1d95d8[_0x4b7678(0x212)]=_['intersection'](_0x1d95d8[_0x4b7678(0x1fe)],_0x1d95d8[_0x4b7678(0x214)]),_0x4d21fb[_0x4b7678(0x1ef)]=_['intersection'](_0x1d95d8[_0x4b7678(0x1fe)],qs['fields'](_0x56c340[_0x4b7678(0x214)][_0x4b7678(0x203)])),_0x4d21fb[_0x4b7678(0x1ef)]=_0x4d21fb[_0x4b7678(0x1ef)][_0x4b7678(0x1f8)]?_0x4d21fb[_0x4b7678(0x1ef)]:_0x1d95d8[_0x4b7678(0x1fe)];typeof _0x56c340['query'][_0x4b7678(0x209)]===_0x4b7678(0x1e7)&&(_0x4d21fb[_0x4b7678(0x1e9)]=qs['limit'](_0x56c340[_0x4b7678(0x214)][_0x4b7678(0x1e9)]),_0x4d21fb[_0x4b7678(0x1e0)]=qs[_0x4b7678(0x1e0)](_0x56c340[_0x4b7678(0x214)][_0x4b7678(0x1e0)]));_0x4d21fb['order']=qs[_0x4b7678(0x205)](_0x56c340[_0x4b7678(0x214)][_0x4b7678(0x205)]),_0x4d21fb[_0x4b7678(0x1eb)]=qs['filters'](_[_0x4b7678(0x204)](_0x56c340[_0x4b7678(0x214)],_0x1d95d8['filters']),_0x4e6c0c);_0x56c340[_0x4b7678(0x214)]['filter']&&(_0x4d21fb[_0x4b7678(0x1eb)]=_[_0x4b7678(0x1f4)](_0x4d21fb[_0x4b7678(0x1eb)],{[Op['or']]:_[_0x4b7678(0x1fb)](_0x4e6c0c,function(_0x5574a3){const _0x58c855=_0x4b7678;if(_0x5574a3[_0x58c855(0x1e4)]!==_0x58c855(0x213)){const _0x1ec841={};return _0x1ec841[_0x5574a3['name']]={[Op[_0x58c855(0x1f9)]]:'%'+_0x56c340[_0x58c855(0x214)]['filter']+'%'},_0x1ec841;}})}));_0x4d21fb=_[_0x4b7678(0x1f4)]({},_0x4d21fb,_0x56c340[_0x4b7678(0x20a)]);const _0x4ccc4d={'where':_0x4d21fb['where']};return db['FreshsalesConfiguration'][_0x4b7678(0x1e3)](_0x4ccc4d)[_0x4b7678(0x1e1)](function(_0x45c07d){const _0x3c6e22=_0x4b7678;return _0x5afad5[_0x3c6e22(0x1e3)]=_0x45c07d,_0x56c340[_0x3c6e22(0x214)][_0x3c6e22(0x207)]&&(_0x4d21fb[_0x3c6e22(0x1e8)]=[{'all':!![]}]),db[_0x3c6e22(0x1ec)]['findAll'](_0x4d21fb);})[_0x4b7678(0x1e1)](function(_0x303fc6){return _0x5afad5['rows']=_0x303fc6,_0x5afad5;})['then'](respondWithFilteredResult(_0x379025,_0x4d21fb))[_0x4b7678(0x20d)](handleError(_0x379025,null));},exports[a326_0x2fef67(0x215)]=function(_0x3ed265,_0x350fbf){const _0x543095=a326_0x2fef67;let _0x4685e0={'raw':![],'where':{'id':_0x3ed265[_0x543095(0x1ee)]['id']}};const _0x339952={};return _0x339952['model']=_[_0x543095(0x20f)](db['FreshsalesConfiguration'][_0x543095(0x216)]),_0x339952[_0x543095(0x214)]=_[_0x543095(0x20f)](_0x3ed265['query']),_0x339952[_0x543095(0x212)]=_['intersection'](_0x339952[_0x543095(0x1fe)],_0x339952[_0x543095(0x214)]),_0x4685e0['attributes']=_['intersection'](_0x339952['model'],qs['fields'](_0x3ed265[_0x543095(0x214)][_0x543095(0x203)])),_0x4685e0['attributes']=_0x4685e0[_0x543095(0x1ef)][_0x543095(0x1f8)]?_0x4685e0[_0x543095(0x1ef)]:_0x339952[_0x543095(0x1fe)],_0x3ed265['query'][_0x543095(0x207)]&&(_0x4685e0[_0x543095(0x1e8)]=[{'all':!![]}]),_0x4685e0=_[_0x543095(0x1f4)]({},_0x4685e0,_0x3ed265[_0x543095(0x20a)]),db[_0x543095(0x1ec)][_0x543095(0x20c)](_0x4685e0)[_0x543095(0x1e1)](handleEntityNotFound(_0x350fbf,null))[_0x543095(0x1e1)](respondWithResult(_0x350fbf,null))[_0x543095(0x20d)](handleError(_0x350fbf,null));},exports['create']=function(_0x16a372,_0x29b011){const _0x1ca3fb=a326_0x2fef67;return db[_0x1ca3fb(0x1ec)][_0x1ca3fb(0x20e)](_0x16a372[_0x1ca3fb(0x217)],{})['then'](respondWithResult(_0x29b011,0xc9))[_0x1ca3fb(0x20d)](handleError(_0x29b011,null));},exports['update']=function(_0x3ab6b7,_0x490f17){const _0x1003a2=a326_0x2fef67;return _0x3ab6b7[_0x1003a2(0x217)]['id']&&delete _0x3ab6b7['body']['id'],db[_0x1003a2(0x1ec)]['findOne']({'where':{'id':_0x3ab6b7[_0x1003a2(0x1ee)]['id']}})[_0x1003a2(0x1e1)](handleEntityNotFound(_0x490f17,null))[_0x1003a2(0x1e1)](saveUpdates(_0x3ab6b7[_0x1003a2(0x217)],null))['then'](respondWithResult(_0x490f17,null))[_0x1003a2(0x20d)](handleError(_0x490f17,null));},exports[a326_0x2fef67(0x1f1)]=function(_0x2ca97c,_0x416595){const _0x297adc=a326_0x2fef67;return db['FreshsalesConfiguration'][_0x297adc(0x20c)]({'where':{'id':_0x2ca97c[_0x297adc(0x1ee)]['id']}})[_0x297adc(0x1e1)](handleEntityNotFound(_0x416595,null))[_0x297adc(0x1e1)](removeEntity(_0x416595,null))['catch'](handleError(_0x416595,null));},exports[a326_0x2fef67(0x1e5)]=function(_0x1f994f,_0x275afe){const _0x15e0aa=a326_0x2fef67;let _0x13e021={};const _0x1a9c3b={};let _0x4e3f98,_0xcb8a3a;return db[_0x15e0aa(0x1ec)][_0x15e0aa(0x20c)]({'where':{'id':_0x1f994f['params']['id']}})['then'](handleEntityNotFound(_0x275afe,null))[_0x15e0aa(0x1e1)](function(_0x4a3891){const _0x1bf8f6=_0x15e0aa;if(_0x4a3891)return _0x4e3f98=_0x4a3891,_0x1a9c3b[_0x1bf8f6(0x1fe)]=_['keys'](db[_0x1bf8f6(0x1ed)][_0x1bf8f6(0x216)]),_0x1a9c3b[_0x1bf8f6(0x214)]=_['keys'](_0x1f994f['query']),_0x1a9c3b[_0x1bf8f6(0x212)]=_[_0x1bf8f6(0x1ff)](_0x1a9c3b[_0x1bf8f6(0x1fe)],_0x1a9c3b[_0x1bf8f6(0x214)]),_0x13e021[_0x1bf8f6(0x1ef)]=_[_0x1bf8f6(0x1ff)](_0x1a9c3b[_0x1bf8f6(0x1fe)],qs[_0x1bf8f6(0x203)](_0x1f994f['query'][_0x1bf8f6(0x203)])),_0x13e021['attributes']=_0x13e021[_0x1bf8f6(0x1ef)]['length']?_0x13e021[_0x1bf8f6(0x1ef)]:_0x1a9c3b[_0x1bf8f6(0x1fe)],_0x13e021[_0x1bf8f6(0x206)]=qs['sort'](_0x1f994f[_0x1bf8f6(0x214)]['sort']),_0x13e021[_0x1bf8f6(0x1eb)]=qs[_0x1bf8f6(0x212)](_['pick'](_0x1f994f[_0x1bf8f6(0x214)],_0x1a9c3b[_0x1bf8f6(0x212)])),_0x1f994f[_0x1bf8f6(0x214)]['filter']&&(_0x13e021['where']=_['merge'](_0x13e021[_0x1bf8f6(0x1eb)],{[Op['or']]:_[_0x1bf8f6(0x1fb)](_0x13e021[_0x1bf8f6(0x1ef)],function(_0x2790f9){const _0x2f4fbf=_0x1bf8f6,_0x5c01d5={};return _0x5c01d5[_0x2790f9]={[Op['like']]:'%'+_0x1f994f[_0x2f4fbf(0x214)][_0x2f4fbf(0x208)]+'%'},_0x5c01d5;})})),_0x13e021=_[_0x1bf8f6(0x1f4)]({},_0x13e021,_0x1f994f[_0x1bf8f6(0x20a)]),_0x4e3f98['getSubjects'](_0x13e021);})[_0x15e0aa(0x1e1)](function(_0x3ac8cc){const _0x431e4d=_0x15e0aa;if(_0x3ac8cc)return _0xcb8a3a=_0x3ac8cc['length'],typeof _0x1f994f['query'][_0x431e4d(0x209)]==='undefined'&&(_0x13e021[_0x431e4d(0x1e9)]=qs[_0x431e4d(0x1e9)](_0x1f994f[_0x431e4d(0x214)][_0x431e4d(0x1e9)]),_0x13e021[_0x431e4d(0x1e0)]=qs[_0x431e4d(0x1e0)](_0x1f994f[_0x431e4d(0x214)]['offset'])),_0x4e3f98[_0x431e4d(0x1e5)](_0x13e021);})[_0x15e0aa(0x1e1)](function(_0x56cf5c){if(_0x56cf5c)return _0x56cf5c?{'count':_0xcb8a3a,'rows':_0x56cf5c}:null;})[_0x15e0aa(0x1e1)](respondWithResult(_0x275afe,null))[_0x15e0aa(0x20d)](handleError(_0x275afe,null));},exports['getDescriptions']=function(_0x22cd8a,_0x468ffc){const _0x2d287f=a326_0x2fef67;let _0x37a517={};const _0x3bf689={};let _0x450523,_0x298910;return db['FreshsalesConfiguration'][_0x2d287f(0x20c)]({'where':{'id':_0x22cd8a['params']['id']}})['then'](handleEntityNotFound(_0x468ffc,null))[_0x2d287f(0x1e1)](function(_0x3e1a5b){const _0x59d174=_0x2d287f;if(_0x3e1a5b)return _0x450523=_0x3e1a5b,_0x3bf689['model']=_[_0x59d174(0x20f)](db['FreshsalesField'][_0x59d174(0x216)]),_0x3bf689[_0x59d174(0x214)]=_[_0x59d174(0x20f)](_0x22cd8a[_0x59d174(0x214)]),_0x3bf689['filters']=_[_0x59d174(0x1ff)](_0x3bf689[_0x59d174(0x1fe)],_0x3bf689[_0x59d174(0x214)]),_0x37a517[_0x59d174(0x1ef)]=_[_0x59d174(0x1ff)](_0x3bf689[_0x59d174(0x1fe)],qs[_0x59d174(0x203)](_0x22cd8a[_0x59d174(0x214)][_0x59d174(0x203)])),_0x37a517['attributes']=_0x37a517['attributes'][_0x59d174(0x1f8)]?_0x37a517['attributes']:_0x3bf689[_0x59d174(0x1fe)],_0x37a517[_0x59d174(0x206)]=qs[_0x59d174(0x205)](_0x22cd8a['query'][_0x59d174(0x205)]),_0x37a517[_0x59d174(0x1eb)]=qs[_0x59d174(0x212)](_[_0x59d174(0x204)](_0x22cd8a[_0x59d174(0x214)],_0x3bf689['filters'])),_0x22cd8a['query'][_0x59d174(0x208)]&&(_0x37a517[_0x59d174(0x1eb)]=_[_0x59d174(0x1f4)](_0x37a517[_0x59d174(0x1eb)],{[Op['or']]:_[_0x59d174(0x1fb)](_0x37a517[_0x59d174(0x1ef)],function(_0x4a122e){const _0x5066a3=_0x59d174,_0x2119b4={};return _0x2119b4[_0x4a122e]={[Op['like']]:'%'+_0x22cd8a[_0x5066a3(0x214)]['filter']+'%'},_0x2119b4;})})),_0x37a517=_[_0x59d174(0x1f4)]({},_0x37a517,_0x22cd8a[_0x59d174(0x20a)]),_0x450523[_0x59d174(0x1fa)](_0x37a517);})[_0x2d287f(0x1e1)](function(_0x4a9de4){const _0x269f60=_0x2d287f;if(_0x4a9de4)return _0x298910=_0x4a9de4[_0x269f60(0x1f8)],typeof _0x22cd8a['query']['nolimit']==='undefined'&&(_0x37a517[_0x269f60(0x1e9)]=qs[_0x269f60(0x1e9)](_0x22cd8a[_0x269f60(0x214)][_0x269f60(0x1e9)]),_0x37a517[_0x269f60(0x1e0)]=qs['offset'](_0x22cd8a[_0x269f60(0x214)][_0x269f60(0x1e0)])),_0x450523[_0x269f60(0x1fa)](_0x37a517);})[_0x2d287f(0x1e1)](function(_0x21593f){if(_0x21593f)return _0x21593f?{'count':_0x298910,'rows':_0x21593f}:null;})[_0x2d287f(0x1e1)](respondWithResult(_0x468ffc,null))[_0x2d287f(0x20d)](handleError(_0x468ffc,null));},exports[a326_0x2fef67(0x1e2)]=function(_0x33335c,_0x202a81){const _0x1d1865=a326_0x2fef67;let _0x422efe={};const _0x19b5f1={};let _0x5c7171,_0x2aee9f;return db[_0x1d1865(0x1ec)][_0x1d1865(0x20c)]({'where':{'id':_0x33335c[_0x1d1865(0x1ee)]['id']}})['then'](handleEntityNotFound(_0x202a81,null))[_0x1d1865(0x1e1)](function(_0x1d6015){const _0x4c3599=_0x1d1865;if(_0x1d6015)return _0x5c7171=_0x1d6015,_0x19b5f1[_0x4c3599(0x1fe)]=_[_0x4c3599(0x20f)](db[_0x4c3599(0x1ed)]['rawAttributes']),_0x19b5f1[_0x4c3599(0x214)]=_[_0x4c3599(0x20f)](_0x33335c['query']),_0x19b5f1['filters']=_[_0x4c3599(0x1ff)](_0x19b5f1[_0x4c3599(0x1fe)],_0x19b5f1[_0x4c3599(0x214)]),_0x422efe['attributes']=_[_0x4c3599(0x1ff)](_0x19b5f1[_0x4c3599(0x1fe)],qs[_0x4c3599(0x203)](_0x33335c[_0x4c3599(0x214)][_0x4c3599(0x203)])),_0x422efe[_0x4c3599(0x1ef)]=_0x422efe[_0x4c3599(0x1ef)][_0x4c3599(0x1f8)]?_0x422efe[_0x4c3599(0x1ef)]:_0x19b5f1['model'],_0x422efe[_0x4c3599(0x206)]=qs[_0x4c3599(0x205)](_0x33335c['query'][_0x4c3599(0x205)]),_0x422efe['where']=qs[_0x4c3599(0x212)](_[_0x4c3599(0x204)](_0x33335c['query'],_0x19b5f1['filters'])),_0x33335c[_0x4c3599(0x214)][_0x4c3599(0x208)]&&(_0x422efe[_0x4c3599(0x1eb)]=_[_0x4c3599(0x1f4)](_0x422efe[_0x4c3599(0x1eb)],{[Op['or']]:_['map'](_0x422efe[_0x4c3599(0x1ef)],function(_0x1e287d){const _0x5ed973=_0x4c3599,_0xd0bc87={};return _0xd0bc87[_0x1e287d]={[Op[_0x5ed973(0x1f9)]]:'%'+_0x33335c[_0x5ed973(0x214)]['filter']+'%'},_0xd0bc87;})})),_0x422efe=_[_0x4c3599(0x1f4)]({},_0x422efe,_0x33335c['options']),_0x5c7171[_0x4c3599(0x1e2)](_0x422efe);})['then'](function(_0x2d64a8){const _0xa708ea=_0x1d1865;if(_0x2d64a8)return _0x2aee9f=_0x2d64a8[_0xa708ea(0x1f8)],typeof _0x33335c['query'][_0xa708ea(0x209)]==='undefined'&&(_0x422efe[_0xa708ea(0x1e9)]=qs['limit'](_0x33335c[_0xa708ea(0x214)][_0xa708ea(0x1e9)]),_0x422efe[_0xa708ea(0x1e0)]=qs[_0xa708ea(0x1e0)](_0x33335c['query'][_0xa708ea(0x1e0)])),_0x5c7171[_0xa708ea(0x1e2)](_0x422efe);})[_0x1d1865(0x1e1)](function(_0xabfcd6){if(_0xabfcd6)return _0xabfcd6?{'count':_0x2aee9f,'rows':_0xabfcd6}:null;})['then'](respondWithResult(_0x202a81,null))['catch'](handleError(_0x202a81,null));}; \ No newline at end of file +const a326_0x5a2a=['fieldName','getDescriptions','FreshsalesField','query','count','limit','FreshsalesConfiguration','order','map','api','intersection','Content-Range','then','update','filter','pick','rawAttributes','catch','where','index','json','filters','send','type','findAll','../../components/parsers/qs','findOne','getFields','body','set','lodash','model','offset','VIRTUAL','../../config/logger','name','keys','options','sort','attributes','nolimit','include','merge','rows','show','key','undefined','params','includeAll','create','fields','status','error','end','sendStatus','destroy','sequelize','length','like','getSubjects'];(function(_0x33042f,_0x169aa7){const _0x5a2ae0=function(_0x3c2cd2){while(--_0x3c2cd2){_0x33042f['push'](_0x33042f['shift']());}};_0x5a2ae0(++_0x169aa7);}(a326_0x5a2a,0x19f));const a326_0x3c2c=function(_0x33042f,_0x169aa7){_0x33042f=_0x33042f-0x197;let _0x5a2ae0=a326_0x5a2a[_0x33042f];return _0x5a2ae0;};const a326_0x38d0ce=a326_0x3c2c;'use strict';const _=require(a326_0x38d0ce(0x1ba)),qs=require(a326_0x38d0ce(0x1b5)),logger=require(a326_0x38d0ce(0x1be))(a326_0x38d0ce(0x1a5)),{db}=require('../../mysqldb'),{Op}=require(a326_0x38d0ce(0x198));function respondWithResult(_0x4b82e4,_0x2622ed){return _0x2622ed=_0x2622ed||0xc8,function(_0x2d5f98){const _0x350d6e=a326_0x3c2c;if(_0x2d5f98)return _0x4b82e4[_0x350d6e(0x1cf)](_0x2622ed)[_0x350d6e(0x1b0)](_0x2d5f98);};}function respondWithFilteredResult(_0x2c83cb,_0x1afad7){return function(_0x3629a2){const _0x1257fa=a326_0x3c2c;if(_0x3629a2){const _0x4e5a7c=_0x3629a2[_0x1257fa(0x1a0)],_0x42fb50=_0x1afad7[_0x1257fa(0x1bc)];let _0x3627b1=_0x1afad7[_0x1257fa(0x1bc)]+_0x1afad7['limit'],_0x251e53;return _0x3627b1>=_0x4e5a7c?(_0x3627b1=_0x4e5a7c,_0x251e53=0xc8):_0x251e53=0xce,_0x2c83cb['status'](_0x251e53),_0x2c83cb[_0x1257fa(0x1b9)](_0x1257fa(0x1a7),_0x42fb50+'-'+_0x3627b1+'/'+_0x4e5a7c)[_0x1257fa(0x1b0)](_0x3629a2);}return null;};}function saveUpdates(_0x1097e3){return function(_0x3b9fa5){const _0x5c27d5=a326_0x3c2c;if(_0x3b9fa5)return _0x3b9fa5[_0x5c27d5(0x1a9)](_0x1097e3)[_0x5c27d5(0x1a8)](function(_0x49b40e){return _0x49b40e;});return null;};}function removeEntity(_0x5cc0aa){return function(_0x70aa30){if(_0x70aa30)return _0x70aa30['destroy']()['then'](function(){const _0x1eb515=a326_0x3c2c;_0x5cc0aa[_0x1eb515(0x1cf)](0xcc)[_0x1eb515(0x1d1)]();});};}function handleEntityNotFound(_0x546f35){return function(_0x33e552){const _0x51dd00=a326_0x3c2c;return!_0x33e552&&_0x546f35[_0x51dd00(0x1d2)](0x194),_0x33e552;};}function handleError(_0x47b881,_0xeff1c){return _0xeff1c=_0xeff1c||0x1f4,function(_0x3d7601){const _0x4de51c=a326_0x3c2c;logger[_0x4de51c(0x1d0)](_0x3d7601['stack']),_0x3d7601['name']&&delete _0x3d7601[_0x4de51c(0x1bf)],_0x47b881[_0x4de51c(0x1cf)](_0xeff1c)[_0x4de51c(0x1b2)](_0x3d7601);};}exports[a326_0x38d0ce(0x1af)]=function(_0x40c51d,_0x3ebd25){const _0x1310de=a326_0x38d0ce;let _0x1f351d={};const _0x2f441f={},_0x1da3f9={'count':0x0,'rows':[]},_0x5a5632=_['map'](db[_0x1310de(0x1a2)][_0x1310de(0x1ac)],function(_0x4473be){const _0x4a773d=_0x1310de;return{'name':_0x4473be[_0x4a773d(0x19c)],'type':_0x4473be['type'][_0x4a773d(0x1c9)]};});_0x2f441f[_0x1310de(0x1bb)]=_[_0x1310de(0x1a4)](_0x5a5632,_0x1310de(0x1bf)),_0x2f441f[_0x1310de(0x19f)]=_['keys'](_0x40c51d['query']),_0x2f441f[_0x1310de(0x1b1)]=_[_0x1310de(0x1a6)](_0x2f441f[_0x1310de(0x1bb)],_0x2f441f[_0x1310de(0x19f)]),_0x1f351d['attributes']=_['intersection'](_0x2f441f[_0x1310de(0x1bb)],qs[_0x1310de(0x1ce)](_0x40c51d[_0x1310de(0x19f)][_0x1310de(0x1ce)])),_0x1f351d[_0x1310de(0x1c3)]=_0x1f351d[_0x1310de(0x1c3)][_0x1310de(0x199)]?_0x1f351d[_0x1310de(0x1c3)]:_0x2f441f['model'];typeof _0x40c51d[_0x1310de(0x19f)][_0x1310de(0x1c4)]===_0x1310de(0x1ca)&&(_0x1f351d[_0x1310de(0x1a1)]=qs['limit'](_0x40c51d['query'][_0x1310de(0x1a1)]),_0x1f351d[_0x1310de(0x1bc)]=qs['offset'](_0x40c51d[_0x1310de(0x19f)][_0x1310de(0x1bc)]));_0x1f351d[_0x1310de(0x1a3)]=qs[_0x1310de(0x1c2)](_0x40c51d[_0x1310de(0x19f)][_0x1310de(0x1c2)]),_0x1f351d[_0x1310de(0x1ae)]=qs['filters'](_[_0x1310de(0x1ab)](_0x40c51d[_0x1310de(0x19f)],_0x2f441f['filters']),_0x5a5632);_0x40c51d[_0x1310de(0x19f)][_0x1310de(0x1aa)]&&(_0x1f351d[_0x1310de(0x1ae)]=_[_0x1310de(0x1c6)](_0x1f351d['where'],{[Op['or']]:_[_0x1310de(0x1a4)](_0x5a5632,function(_0x56d698){const _0x216f62=_0x1310de;if(_0x56d698[_0x216f62(0x1b3)]!==_0x216f62(0x1bd)){const _0x10d5f={};return _0x10d5f[_0x56d698['name']]={[Op[_0x216f62(0x19a)]]:'%'+_0x40c51d[_0x216f62(0x19f)][_0x216f62(0x1aa)]+'%'},_0x10d5f;}})}));_0x1f351d=_[_0x1310de(0x1c6)]({},_0x1f351d,_0x40c51d[_0x1310de(0x1c1)]);const _0x512437={'where':_0x1f351d[_0x1310de(0x1ae)]};return db[_0x1310de(0x1a2)][_0x1310de(0x1a0)](_0x512437)['then'](function(_0x892a8d){const _0x1e43af=_0x1310de;return _0x1da3f9['count']=_0x892a8d,_0x40c51d[_0x1e43af(0x19f)][_0x1e43af(0x1cc)]&&(_0x1f351d['include']=[{'all':!![]}]),db['FreshsalesConfiguration'][_0x1e43af(0x1b4)](_0x1f351d);})[_0x1310de(0x1a8)](function(_0x396059){const _0x409bdc=_0x1310de;return _0x1da3f9[_0x409bdc(0x1c7)]=_0x396059,_0x1da3f9;})[_0x1310de(0x1a8)](respondWithFilteredResult(_0x3ebd25,_0x1f351d))['catch'](handleError(_0x3ebd25,null));},exports[a326_0x38d0ce(0x1c8)]=function(_0x1c61ca,_0x19d99a){const _0x198380=a326_0x38d0ce;let _0x2936cf={'raw':![],'where':{'id':_0x1c61ca[_0x198380(0x1cb)]['id']}};const _0x446a86={};return _0x446a86[_0x198380(0x1bb)]=_['keys'](db[_0x198380(0x1a2)][_0x198380(0x1ac)]),_0x446a86[_0x198380(0x19f)]=_[_0x198380(0x1c0)](_0x1c61ca[_0x198380(0x19f)]),_0x446a86[_0x198380(0x1b1)]=_[_0x198380(0x1a6)](_0x446a86[_0x198380(0x1bb)],_0x446a86[_0x198380(0x19f)]),_0x2936cf['attributes']=_[_0x198380(0x1a6)](_0x446a86[_0x198380(0x1bb)],qs['fields'](_0x1c61ca[_0x198380(0x19f)][_0x198380(0x1ce)])),_0x2936cf[_0x198380(0x1c3)]=_0x2936cf[_0x198380(0x1c3)][_0x198380(0x199)]?_0x2936cf[_0x198380(0x1c3)]:_0x446a86[_0x198380(0x1bb)],_0x1c61ca[_0x198380(0x19f)][_0x198380(0x1cc)]&&(_0x2936cf[_0x198380(0x1c5)]=[{'all':!![]}]),_0x2936cf=_[_0x198380(0x1c6)]({},_0x2936cf,_0x1c61ca[_0x198380(0x1c1)]),db[_0x198380(0x1a2)]['findOne'](_0x2936cf)['then'](handleEntityNotFound(_0x19d99a,null))[_0x198380(0x1a8)](respondWithResult(_0x19d99a,null))[_0x198380(0x1ad)](handleError(_0x19d99a,null));},exports['create']=function(_0x37bea9,_0x3b771d){const _0x370039=a326_0x38d0ce;return db[_0x370039(0x1a2)][_0x370039(0x1cd)](_0x37bea9[_0x370039(0x1b8)],{})[_0x370039(0x1a8)](respondWithResult(_0x3b771d,0xc9))['catch'](handleError(_0x3b771d,null));},exports['update']=function(_0x2102b0,_0x13c810){const _0x167aa8=a326_0x38d0ce;return _0x2102b0[_0x167aa8(0x1b8)]['id']&&delete _0x2102b0['body']['id'],db[_0x167aa8(0x1a2)][_0x167aa8(0x1b6)]({'where':{'id':_0x2102b0[_0x167aa8(0x1cb)]['id']}})[_0x167aa8(0x1a8)](handleEntityNotFound(_0x13c810,null))[_0x167aa8(0x1a8)](saveUpdates(_0x2102b0[_0x167aa8(0x1b8)],null))[_0x167aa8(0x1a8)](respondWithResult(_0x13c810,null))[_0x167aa8(0x1ad)](handleError(_0x13c810,null));},exports[a326_0x38d0ce(0x197)]=function(_0x5af043,_0x39de12){const _0x129168=a326_0x38d0ce;return db[_0x129168(0x1a2)][_0x129168(0x1b6)]({'where':{'id':_0x5af043[_0x129168(0x1cb)]['id']}})[_0x129168(0x1a8)](handleEntityNotFound(_0x39de12,null))[_0x129168(0x1a8)](removeEntity(_0x39de12,null))[_0x129168(0x1ad)](handleError(_0x39de12,null));},exports[a326_0x38d0ce(0x19b)]=function(_0x211a6e,_0x3e4623){const _0x2be898=a326_0x38d0ce;let _0x522dd0={};const _0x39b5cb={};let _0xfda580,_0x33cb7a;return db['FreshsalesConfiguration'][_0x2be898(0x1b6)]({'where':{'id':_0x211a6e[_0x2be898(0x1cb)]['id']}})[_0x2be898(0x1a8)](handleEntityNotFound(_0x3e4623,null))[_0x2be898(0x1a8)](function(_0x3ef8ba){const _0x2ec166=_0x2be898;if(_0x3ef8ba)return _0xfda580=_0x3ef8ba,_0x39b5cb[_0x2ec166(0x1bb)]=_['keys'](db['FreshsalesField']['rawAttributes']),_0x39b5cb['query']=_['keys'](_0x211a6e[_0x2ec166(0x19f)]),_0x39b5cb[_0x2ec166(0x1b1)]=_['intersection'](_0x39b5cb['model'],_0x39b5cb[_0x2ec166(0x19f)]),_0x522dd0[_0x2ec166(0x1c3)]=_[_0x2ec166(0x1a6)](_0x39b5cb[_0x2ec166(0x1bb)],qs[_0x2ec166(0x1ce)](_0x211a6e[_0x2ec166(0x19f)][_0x2ec166(0x1ce)])),_0x522dd0[_0x2ec166(0x1c3)]=_0x522dd0[_0x2ec166(0x1c3)][_0x2ec166(0x199)]?_0x522dd0[_0x2ec166(0x1c3)]:_0x39b5cb[_0x2ec166(0x1bb)],_0x522dd0[_0x2ec166(0x1a3)]=qs[_0x2ec166(0x1c2)](_0x211a6e[_0x2ec166(0x19f)][_0x2ec166(0x1c2)]),_0x522dd0['where']=qs['filters'](_[_0x2ec166(0x1ab)](_0x211a6e[_0x2ec166(0x19f)],_0x39b5cb[_0x2ec166(0x1b1)])),_0x211a6e[_0x2ec166(0x19f)]['filter']&&(_0x522dd0[_0x2ec166(0x1ae)]=_[_0x2ec166(0x1c6)](_0x522dd0[_0x2ec166(0x1ae)],{[Op['or']]:_[_0x2ec166(0x1a4)](_0x522dd0[_0x2ec166(0x1c3)],function(_0x35611c){const _0x4b5954=_0x2ec166,_0x10cc05={};return _0x10cc05[_0x35611c]={[Op['like']]:'%'+_0x211a6e[_0x4b5954(0x19f)]['filter']+'%'},_0x10cc05;})})),_0x522dd0=_[_0x2ec166(0x1c6)]({},_0x522dd0,_0x211a6e[_0x2ec166(0x1c1)]),_0xfda580[_0x2ec166(0x19b)](_0x522dd0);})[_0x2be898(0x1a8)](function(_0x39c3e8){const _0x190a89=_0x2be898;if(_0x39c3e8)return _0x33cb7a=_0x39c3e8[_0x190a89(0x199)],typeof _0x211a6e[_0x190a89(0x19f)][_0x190a89(0x1c4)]===_0x190a89(0x1ca)&&(_0x522dd0['limit']=qs[_0x190a89(0x1a1)](_0x211a6e[_0x190a89(0x19f)][_0x190a89(0x1a1)]),_0x522dd0['offset']=qs[_0x190a89(0x1bc)](_0x211a6e['query'][_0x190a89(0x1bc)])),_0xfda580[_0x190a89(0x19b)](_0x522dd0);})['then'](function(_0x2382a3){if(_0x2382a3)return _0x2382a3?{'count':_0x33cb7a,'rows':_0x2382a3}:null;})[_0x2be898(0x1a8)](respondWithResult(_0x3e4623,null))[_0x2be898(0x1ad)](handleError(_0x3e4623,null));},exports[a326_0x38d0ce(0x19d)]=function(_0x3e2a4d,_0x15381a){const _0x513e03=a326_0x38d0ce;let _0x55674e={};const _0x3cd6d9={};let _0x5864fd,_0x47dbe0;return db[_0x513e03(0x1a2)][_0x513e03(0x1b6)]({'where':{'id':_0x3e2a4d[_0x513e03(0x1cb)]['id']}})['then'](handleEntityNotFound(_0x15381a,null))[_0x513e03(0x1a8)](function(_0x277e7d){const _0x25a571=_0x513e03;if(_0x277e7d)return _0x5864fd=_0x277e7d,_0x3cd6d9[_0x25a571(0x1bb)]=_[_0x25a571(0x1c0)](db[_0x25a571(0x19e)][_0x25a571(0x1ac)]),_0x3cd6d9[_0x25a571(0x19f)]=_[_0x25a571(0x1c0)](_0x3e2a4d[_0x25a571(0x19f)]),_0x3cd6d9[_0x25a571(0x1b1)]=_['intersection'](_0x3cd6d9[_0x25a571(0x1bb)],_0x3cd6d9[_0x25a571(0x19f)]),_0x55674e[_0x25a571(0x1c3)]=_[_0x25a571(0x1a6)](_0x3cd6d9[_0x25a571(0x1bb)],qs[_0x25a571(0x1ce)](_0x3e2a4d[_0x25a571(0x19f)]['fields'])),_0x55674e[_0x25a571(0x1c3)]=_0x55674e['attributes'][_0x25a571(0x199)]?_0x55674e[_0x25a571(0x1c3)]:_0x3cd6d9[_0x25a571(0x1bb)],_0x55674e[_0x25a571(0x1a3)]=qs[_0x25a571(0x1c2)](_0x3e2a4d[_0x25a571(0x19f)]['sort']),_0x55674e['where']=qs[_0x25a571(0x1b1)](_['pick'](_0x3e2a4d[_0x25a571(0x19f)],_0x3cd6d9[_0x25a571(0x1b1)])),_0x3e2a4d[_0x25a571(0x19f)][_0x25a571(0x1aa)]&&(_0x55674e[_0x25a571(0x1ae)]=_['merge'](_0x55674e['where'],{[Op['or']]:_[_0x25a571(0x1a4)](_0x55674e['attributes'],function(_0x11fa2a){const _0x1e4b04=_0x25a571,_0xe64e05={};return _0xe64e05[_0x11fa2a]={[Op[_0x1e4b04(0x19a)]]:'%'+_0x3e2a4d[_0x1e4b04(0x19f)][_0x1e4b04(0x1aa)]+'%'},_0xe64e05;})})),_0x55674e=_[_0x25a571(0x1c6)]({},_0x55674e,_0x3e2a4d[_0x25a571(0x1c1)]),_0x5864fd['getDescriptions'](_0x55674e);})['then'](function(_0x15a019){const _0x1a2b2c=_0x513e03;if(_0x15a019)return _0x47dbe0=_0x15a019[_0x1a2b2c(0x199)],typeof _0x3e2a4d[_0x1a2b2c(0x19f)][_0x1a2b2c(0x1c4)]===_0x1a2b2c(0x1ca)&&(_0x55674e[_0x1a2b2c(0x1a1)]=qs[_0x1a2b2c(0x1a1)](_0x3e2a4d[_0x1a2b2c(0x19f)][_0x1a2b2c(0x1a1)]),_0x55674e[_0x1a2b2c(0x1bc)]=qs['offset'](_0x3e2a4d[_0x1a2b2c(0x19f)][_0x1a2b2c(0x1bc)])),_0x5864fd[_0x1a2b2c(0x19d)](_0x55674e);})['then'](function(_0x18c000){if(_0x18c000)return _0x18c000?{'count':_0x47dbe0,'rows':_0x18c000}:null;})[_0x513e03(0x1a8)](respondWithResult(_0x15381a,null))[_0x513e03(0x1ad)](handleError(_0x15381a,null));},exports[a326_0x38d0ce(0x1b7)]=function(_0xc60cd4,_0x5d0a9d){const _0x56e735=a326_0x38d0ce;let _0x43ac78={};const _0x26c773={};let _0x2871e7,_0x2c5e2a;return db[_0x56e735(0x1a2)][_0x56e735(0x1b6)]({'where':{'id':_0xc60cd4[_0x56e735(0x1cb)]['id']}})['then'](handleEntityNotFound(_0x5d0a9d,null))[_0x56e735(0x1a8)](function(_0x3d06b9){const _0x4a8d1e=_0x56e735;if(_0x3d06b9)return _0x2871e7=_0x3d06b9,_0x26c773[_0x4a8d1e(0x1bb)]=_[_0x4a8d1e(0x1c0)](db[_0x4a8d1e(0x19e)][_0x4a8d1e(0x1ac)]),_0x26c773[_0x4a8d1e(0x19f)]=_[_0x4a8d1e(0x1c0)](_0xc60cd4['query']),_0x26c773[_0x4a8d1e(0x1b1)]=_[_0x4a8d1e(0x1a6)](_0x26c773[_0x4a8d1e(0x1bb)],_0x26c773[_0x4a8d1e(0x19f)]),_0x43ac78[_0x4a8d1e(0x1c3)]=_['intersection'](_0x26c773[_0x4a8d1e(0x1bb)],qs[_0x4a8d1e(0x1ce)](_0xc60cd4[_0x4a8d1e(0x19f)][_0x4a8d1e(0x1ce)])),_0x43ac78[_0x4a8d1e(0x1c3)]=_0x43ac78[_0x4a8d1e(0x1c3)][_0x4a8d1e(0x199)]?_0x43ac78[_0x4a8d1e(0x1c3)]:_0x26c773[_0x4a8d1e(0x1bb)],_0x43ac78[_0x4a8d1e(0x1a3)]=qs[_0x4a8d1e(0x1c2)](_0xc60cd4[_0x4a8d1e(0x19f)][_0x4a8d1e(0x1c2)]),_0x43ac78['where']=qs[_0x4a8d1e(0x1b1)](_[_0x4a8d1e(0x1ab)](_0xc60cd4[_0x4a8d1e(0x19f)],_0x26c773[_0x4a8d1e(0x1b1)])),_0xc60cd4['query'][_0x4a8d1e(0x1aa)]&&(_0x43ac78[_0x4a8d1e(0x1ae)]=_['merge'](_0x43ac78[_0x4a8d1e(0x1ae)],{[Op['or']]:_[_0x4a8d1e(0x1a4)](_0x43ac78[_0x4a8d1e(0x1c3)],function(_0x1c9d63){const _0x457115=_0x4a8d1e,_0x1ea228={};return _0x1ea228[_0x1c9d63]={[Op[_0x457115(0x19a)]]:'%'+_0xc60cd4[_0x457115(0x19f)]['filter']+'%'},_0x1ea228;})})),_0x43ac78=_[_0x4a8d1e(0x1c6)]({},_0x43ac78,_0xc60cd4['options']),_0x2871e7[_0x4a8d1e(0x1b7)](_0x43ac78);})[_0x56e735(0x1a8)](function(_0xb27035){const _0x5831d5=_0x56e735;if(_0xb27035)return _0x2c5e2a=_0xb27035[_0x5831d5(0x199)],typeof _0xc60cd4['query'][_0x5831d5(0x1c4)]===_0x5831d5(0x1ca)&&(_0x43ac78['limit']=qs[_0x5831d5(0x1a1)](_0xc60cd4[_0x5831d5(0x19f)][_0x5831d5(0x1a1)]),_0x43ac78[_0x5831d5(0x1bc)]=qs[_0x5831d5(0x1bc)](_0xc60cd4[_0x5831d5(0x19f)][_0x5831d5(0x1bc)])),_0x2871e7[_0x5831d5(0x1b7)](_0x43ac78);})[_0x56e735(0x1a8)](function(_0x3e82ed){if(_0x3e82ed)return _0x3e82ed?{'count':_0x2c5e2a,'rows':_0x3e82ed}:null;})[_0x56e735(0x1a8)](respondWithResult(_0x5d0a9d,null))[_0x56e735(0x1ad)](handleError(_0x5d0a9d,null));}; \ No newline at end of file diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js index 0fc719e..8758b43 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js @@ -1 +1 @@ -const a327_0x1aaf=['init','exports','./intFreshsalesConfiguration.options','./intFreshsalesConfiguration.attributes','function'];(function(_0xc07217,_0x5781f2){const _0x1aaf83=function(_0xcef58){while(--_0xcef58){_0xc07217['push'](_0xc07217['shift']());}};_0x1aaf83(++_0x5781f2);}(a327_0x1aaf,0x89));const a327_0xcef5=function(_0xc07217,_0x5781f2){_0xc07217=_0xc07217-0x15c;let _0x1aaf83=a327_0x1aaf[_0xc07217];return _0x1aaf83;};const a327_0x35eee7=a327_0xcef5;'use strict';const {Model}=require('sequelize'),{attributes}=require(a327_0x35eee7(0x15d)),{options}=require(a327_0x35eee7(0x15c));class FreshsalesConfiguration extends Model{}function init(_0x50e2b7,_0x345056){const _0x5d1446=a327_0x35eee7,_0x36fede=options(_0x50e2b7),_0x1be196=typeof _0x345056===_0x5d1446(0x15e)?_0x345056(_0x36fede):_0x36fede;return FreshsalesConfiguration[_0x5d1446(0x15f)](attributes,_0x1be196),FreshsalesConfiguration;}module[a327_0x35eee7(0x160)]['FreshsalesConfiguration']=FreshsalesConfiguration,module[a327_0x35eee7(0x160)]['init']=init; \ No newline at end of file +const a327_0x53e6=['sequelize','./intFreshsalesConfiguration.options','init','exports','FreshsalesConfiguration','function'];(function(_0x24d6e6,_0x37812e){const _0x53e63a=function(_0x1d84cc){while(--_0x1d84cc){_0x24d6e6['push'](_0x24d6e6['shift']());}};_0x53e63a(++_0x37812e);}(a327_0x53e6,0x8f));const a327_0x1d84=function(_0x24d6e6,_0x37812e){_0x24d6e6=_0x24d6e6-0xb8;let _0x53e63a=a327_0x53e6[_0x24d6e6];return _0x53e63a;};const a327_0x245d98=a327_0x1d84;'use strict';const {Model}=require(a327_0x245d98(0xb9)),{attributes}=require('./intFreshsalesConfiguration.attributes'),{options}=require(a327_0x245d98(0xba));class FreshsalesConfiguration extends Model{}function init(_0x236ad9,_0x3d8ad9){const _0xdf3a08=a327_0x245d98,_0x536939=options(_0x236ad9),_0x4da3fc=typeof _0x3d8ad9===_0xdf3a08(0xb8)?_0x3d8ad9(_0x536939):_0x536939;return FreshsalesConfiguration[_0xdf3a08(0xbb)](attributes,_0x4da3fc),FreshsalesConfiguration;}module['exports'][a327_0x245d98(0xbd)]=FreshsalesConfiguration,module[a327_0x245d98(0xbc)][a327_0x245d98(0xbb)]=init; \ No newline at end of file diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.options.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.options.js index 0152089..2691500 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.options.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.options.js @@ -1 +1 @@ -var a328_0x5847=['exports','int_freshsales_configurations'];(function(_0x395a7a,_0x514c7f){var _0x5847fd=function(_0x549514){while(--_0x549514){_0x395a7a['push'](_0x395a7a['shift']());}};_0x5847fd(++_0x514c7f);}(a328_0x5847,0x132));var a328_0x5495=function(_0x395a7a,_0x514c7f){_0x395a7a=_0x395a7a-0x1b6;var _0x5847fd=a328_0x5847[_0x395a7a];return _0x5847fd;};var a328_0x21efab=a328_0x5495;function options(_0x1afb99){var _0x1766a3=a328_0x5495;return{'sequelize':_0x1afb99,'tableName':_0x1766a3(0x1b7),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a328_0x21efab(0x1b6)]['options']=options; \ No newline at end of file +var a328_0x58cb=['exports','options','int_freshsales_configurations'];(function(_0x515dcc,_0x416114){var _0x58cbc5=function(_0x2fb289){while(--_0x2fb289){_0x515dcc['push'](_0x515dcc['shift']());}};_0x58cbc5(++_0x416114);}(a328_0x58cb,0x13a));var a328_0x2fb2=function(_0x515dcc,_0x416114){_0x515dcc=_0x515dcc-0x15b;var _0x58cbc5=a328_0x58cb[_0x515dcc];return _0x58cbc5;};var a328_0x30794f=a328_0x2fb2;function options(_0x284edd){var _0x25f96a=a328_0x2fb2;return{'sequelize':_0x284edd,'tableName':_0x25f96a(0x15b),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a328_0x30794f(0x15c)][a328_0x30794f(0x15d)]=options; \ No newline at end of file diff --git a/server/api/intFreshsalesField/index.js b/server/api/intFreshsalesField/index.js index fe75467..9c6537c 100644 --- a/server/api/intFreshsalesField/index.js +++ b/server/api/intFreshsalesField/index.js @@ -1 +1 @@ -const a329_0x49e3=['express','../../components/auth/service','delete','exports','/:id','Router','post','isAuthenticated','create','update','./intFreshsalesField.controller','show','index','destroy','get','put'];(function(_0x4f9483,_0x3a8197){const _0x49e30b=function(_0x543edc){while(--_0x543edc){_0x4f9483['push'](_0x4f9483['shift']());}};_0x49e30b(++_0x3a8197);}(a329_0x49e3,0xe2));const a329_0x543e=function(_0x4f9483,_0x3a8197){_0x4f9483=_0x4f9483-0x172;let _0x49e30b=a329_0x49e3[_0x4f9483];return _0x49e30b;};const a329_0x564d0a=a329_0x543e;'use strict';const express=require(a329_0x564d0a(0x180)),router=express[a329_0x564d0a(0x175)](),auth=require(a329_0x564d0a(0x181)),controller=require(a329_0x564d0a(0x17a));router[a329_0x564d0a(0x17e)]('/',auth[a329_0x564d0a(0x177)](),controller[a329_0x564d0a(0x17c)]),router['get'](a329_0x564d0a(0x174),auth[a329_0x564d0a(0x177)](),controller[a329_0x564d0a(0x17b)]),router[a329_0x564d0a(0x176)]('/',auth[a329_0x564d0a(0x177)](),controller[a329_0x564d0a(0x178)]),router[a329_0x564d0a(0x17f)]('/:id',auth[a329_0x564d0a(0x177)](),controller[a329_0x564d0a(0x179)]),router[a329_0x564d0a(0x172)]('/:id',auth[a329_0x564d0a(0x177)](),controller[a329_0x564d0a(0x17d)]),module[a329_0x564d0a(0x173)]=router; \ No newline at end of file +const a329_0x3b23=['Router','put','./intFreshsalesField.controller','exports','get','show','delete','/:id','destroy','create','index','isAuthenticated'];(function(_0x12c118,_0x3235c4){const _0x3b23f6=function(_0x1ff1d6){while(--_0x1ff1d6){_0x12c118['push'](_0x12c118['shift']());}};_0x3b23f6(++_0x3235c4);}(a329_0x3b23,0x118));const a329_0x1ff1=function(_0x12c118,_0x3235c4){_0x12c118=_0x12c118-0xa9;let _0x3b23f6=a329_0x3b23[_0x12c118];return _0x3b23f6;};const a329_0x4764cf=a329_0x1ff1;'use strict';const express=require('express'),router=express[a329_0x4764cf(0xb1)](),auth=require('../../components/auth/service'),controller=require(a329_0x4764cf(0xb3));router['get']('/',auth[a329_0x4764cf(0xb0)](),controller[a329_0x4764cf(0xaf)]),router[a329_0x4764cf(0xa9)](a329_0x4764cf(0xac),auth[a329_0x4764cf(0xb0)](),controller[a329_0x4764cf(0xaa)]),router['post']('/',auth[a329_0x4764cf(0xb0)](),controller[a329_0x4764cf(0xae)]),router[a329_0x4764cf(0xb2)]('/:id',auth['isAuthenticated'](),controller['update']),router[a329_0x4764cf(0xab)](a329_0x4764cf(0xac),auth['isAuthenticated'](),controller[a329_0x4764cf(0xad)]),module[a329_0x4764cf(0xb4)]=router; \ No newline at end of file diff --git a/server/api/intFreshsalesField/intFreshsalesField.attributes.js b/server/api/intFreshsalesField/intFreshsalesField.attributes.js index bf9742b..75435c0 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.attributes.js +++ b/server/api/intFreshsalesField/intFreshsalesField.attributes.js @@ -1 +1 @@ -const a330_0x6cc6=['attributes','string','ENUM','keyValue','STRING','variable','sequelize','BOOLEAN','customVariable'];(function(_0x5b7a19,_0x27f576){const _0x6cc675=function(_0x1fe92a){while(--_0x1fe92a){_0x5b7a19['push'](_0x5b7a19['shift']());}};_0x6cc675(++_0x27f576);}(a330_0x6cc6,0x66));const a330_0x1fe9=function(_0x5b7a19,_0x27f576){_0x5b7a19=_0x5b7a19-0xb1;let _0x6cc675=a330_0x6cc6[_0x5b7a19];return _0x6cc675;};const a330_0x9d870c=a330_0x1fe9;'use strict';const {DataTypes}=require(a330_0x9d870c(0xb4)),attributes={'type':{'type':DataTypes['ENUM'](a330_0x9d870c(0xb8),a330_0x9d870c(0xb3),a330_0x9d870c(0xb6),a330_0x9d870c(0xb1)),'defaultValue':a330_0x9d870c(0xb8)},'content':{'type':DataTypes[a330_0x9d870c(0xb2)]},'key':{'type':DataTypes[a330_0x9d870c(0xb2)]},'keyType':{'type':DataTypes[a330_0x9d870c(0xb9)](a330_0x9d870c(0xb8),a330_0x9d870c(0xb3),a330_0x9d870c(0xb6))},'keyContent':{'type':DataTypes['STRING']},'idField':{'type':DataTypes[a330_0x9d870c(0xb2)]},'nameField':{'type':DataTypes['STRING']},'customField':{'type':DataTypes[a330_0x9d870c(0xb5)],'defaultValue':!![]},'variableName':{'type':DataTypes[a330_0x9d870c(0xb2)]}};module['exports'][a330_0x9d870c(0xb7)]=attributes; \ No newline at end of file +const a330_0x2607=['keyValue','sequelize','customVariable','STRING','attributes','ENUM','string','BOOLEAN','variable','exports'];(function(_0x2e4c50,_0x159930){const _0x260776=function(_0x319675){while(--_0x319675){_0x2e4c50['push'](_0x2e4c50['shift']());}};_0x260776(++_0x159930);}(a330_0x2607,0x83));const a330_0x3196=function(_0x2e4c50,_0x159930){_0x2e4c50=_0x2e4c50-0x190;let _0x260776=a330_0x2607[_0x2e4c50];return _0x260776;};const a330_0xcde16c=a330_0x3196;'use strict';const {DataTypes}=require(a330_0xcde16c(0x190)),attributes={'type':{'type':DataTypes[a330_0xcde16c(0x194)](a330_0xcde16c(0x195),a330_0xcde16c(0x197),'customVariable',a330_0xcde16c(0x199)),'defaultValue':a330_0xcde16c(0x195)},'content':{'type':DataTypes[a330_0xcde16c(0x192)]},'key':{'type':DataTypes['STRING']},'keyType':{'type':DataTypes[a330_0xcde16c(0x194)](a330_0xcde16c(0x195),a330_0xcde16c(0x197),a330_0xcde16c(0x191))},'keyContent':{'type':DataTypes[a330_0xcde16c(0x192)]},'idField':{'type':DataTypes[a330_0xcde16c(0x192)]},'nameField':{'type':DataTypes['STRING']},'customField':{'type':DataTypes[a330_0xcde16c(0x196)],'defaultValue':!![]},'variableName':{'type':DataTypes[a330_0xcde16c(0x192)]}};module[a330_0xcde16c(0x198)][a330_0xcde16c(0x193)]=attributes; \ No newline at end of file diff --git a/server/api/intFreshsalesField/intFreshsalesField.controller.js b/server/api/intFreshsalesField/intFreshsalesField.controller.js index 6c87387..526320e 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.controller.js +++ b/server/api/intFreshsalesField/intFreshsalesField.controller.js @@ -1 +1 @@ -const a331_0x555f=['order','then','../../components/parsers/qs','error','attributes','create','pick','lodash','offset','sort','keys','../../config/logger','update','end','includeAll','include','type','undefined','length','fieldName','merge','filter','where','show','params','nolimit','json','destroy','query','catch','map','rawAttributes','sendStatus','filters','findOne','intersection','model','fields','index','send','FreshsalesField','name','Content-Range','body','options','api','status','findAll','rows','set','VIRTUAL','limit','stack','count'];(function(_0x28b02c,_0x128342){const _0x555f91=function(_0x2bf82d){while(--_0x2bf82d){_0x28b02c['push'](_0x28b02c['shift']());}};_0x555f91(++_0x128342);}(a331_0x555f,0x6a));const a331_0x2bf8=function(_0x28b02c,_0x128342){_0x28b02c=_0x28b02c-0x126;let _0x555f91=a331_0x555f[_0x28b02c];return _0x555f91;};const a331_0x3c38a=a331_0x2bf8;'use strict';const _=require(a331_0x3c38a(0x12f)),qs=require(a331_0x3c38a(0x12a)),logger=require(a331_0x3c38a(0x133))(a331_0x3c38a(0x155)),{db}=require('../../mysqldb'),{Op}=require('sequelize');function respondWithResult(_0x11a3b1,_0x36d8b4){return _0x36d8b4=_0x36d8b4||0xc8,function(_0x793a7e){const _0x1ba979=a331_0x2bf8;if(_0x793a7e)return _0x11a3b1['status'](_0x36d8b4)[_0x1ba979(0x142)](_0x793a7e);};}function respondWithFilteredResult(_0x521125,_0x1f1c73){return function(_0xe83601){const _0x3c2cad=a331_0x2bf8;if(_0xe83601){const _0x4f9aaa=_0xe83601['count'],_0x27364c=_0x1f1c73['offset'];let _0x200e44=_0x1f1c73[_0x3c2cad(0x130)]+_0x1f1c73[_0x3c2cad(0x15b)],_0x5cf963;return _0x200e44>=_0x4f9aaa?(_0x200e44=_0x4f9aaa,_0x5cf963=0xc8):_0x5cf963=0xce,_0x521125[_0x3c2cad(0x156)](_0x5cf963),_0x521125[_0x3c2cad(0x159)](_0x3c2cad(0x152),_0x27364c+'-'+_0x200e44+'/'+_0x4f9aaa)['json'](_0xe83601);}return null;};}function saveUpdates(_0x13aa7a){return function(_0x186f9e){if(_0x186f9e)return _0x186f9e['update'](_0x13aa7a)['then'](function(_0x55380a){return _0x55380a;});return null;};}function removeEntity(_0x178c2d){return function(_0x19c82c){const _0x56d3a5=a331_0x2bf8;if(_0x19c82c)return _0x19c82c[_0x56d3a5(0x143)]()[_0x56d3a5(0x129)](function(){const _0x37f083=_0x56d3a5;_0x178c2d[_0x37f083(0x156)](0xcc)[_0x37f083(0x135)]();});};}function handleEntityNotFound(_0x48a631){return function(_0x463ee4){const _0x8318eb=a331_0x2bf8;return!_0x463ee4&&_0x48a631[_0x8318eb(0x148)](0x194),_0x463ee4;};}function handleError(_0x44bae9,_0x42f12f){return _0x42f12f=_0x42f12f||0x1f4,function(_0x290c8a){const _0xea0791=a331_0x2bf8;logger[_0xea0791(0x12b)](_0x290c8a[_0xea0791(0x126)]),_0x290c8a[_0xea0791(0x151)]&&delete _0x290c8a['name'],_0x44bae9[_0xea0791(0x156)](_0x42f12f)[_0xea0791(0x14f)](_0x290c8a);};}exports[a331_0x3c38a(0x14e)]=function(_0x1194ad,_0x122a80){const _0x37a9e2=a331_0x3c38a;let _0x40ba58={};const _0x25f12a={},_0x378d0c={'count':0x0,'rows':[]},_0x4726e4=_['map'](db[_0x37a9e2(0x150)]['rawAttributes'],function(_0x3f16bd){const _0x44da1c=_0x37a9e2;return{'name':_0x3f16bd[_0x44da1c(0x13b)],'type':_0x3f16bd[_0x44da1c(0x138)]['key']};});_0x25f12a[_0x37a9e2(0x14c)]=_[_0x37a9e2(0x146)](_0x4726e4,_0x37a9e2(0x151)),_0x25f12a[_0x37a9e2(0x144)]=_[_0x37a9e2(0x132)](_0x1194ad[_0x37a9e2(0x144)]),_0x25f12a[_0x37a9e2(0x149)]=_[_0x37a9e2(0x14b)](_0x25f12a[_0x37a9e2(0x14c)],_0x25f12a[_0x37a9e2(0x144)]),_0x40ba58[_0x37a9e2(0x12c)]=_[_0x37a9e2(0x14b)](_0x25f12a[_0x37a9e2(0x14c)],qs[_0x37a9e2(0x14d)](_0x1194ad[_0x37a9e2(0x144)]['fields'])),_0x40ba58[_0x37a9e2(0x12c)]=_0x40ba58[_0x37a9e2(0x12c)][_0x37a9e2(0x13a)]?_0x40ba58['attributes']:_0x25f12a[_0x37a9e2(0x14c)];typeof _0x1194ad['query'][_0x37a9e2(0x141)]===_0x37a9e2(0x139)&&(_0x40ba58[_0x37a9e2(0x15b)]=qs[_0x37a9e2(0x15b)](_0x1194ad['query'][_0x37a9e2(0x15b)]),_0x40ba58['offset']=qs[_0x37a9e2(0x130)](_0x1194ad[_0x37a9e2(0x144)][_0x37a9e2(0x130)]));_0x40ba58[_0x37a9e2(0x128)]=qs[_0x37a9e2(0x131)](_0x1194ad['query'][_0x37a9e2(0x131)]),_0x40ba58['where']=qs[_0x37a9e2(0x149)](_[_0x37a9e2(0x12e)](_0x1194ad[_0x37a9e2(0x144)],_0x25f12a['filters']),_0x4726e4);_0x1194ad[_0x37a9e2(0x144)][_0x37a9e2(0x13d)]&&(_0x40ba58[_0x37a9e2(0x13e)]=_[_0x37a9e2(0x13c)](_0x40ba58[_0x37a9e2(0x13e)],{[Op['or']]:_['map'](_0x4726e4,function(_0x10556a){const _0x3d4d18=_0x37a9e2;if(_0x10556a[_0x3d4d18(0x138)]!==_0x3d4d18(0x15a)){const _0x5f361b={};return _0x5f361b[_0x10556a[_0x3d4d18(0x151)]]={[Op['like']]:'%'+_0x1194ad[_0x3d4d18(0x144)][_0x3d4d18(0x13d)]+'%'},_0x5f361b;}})}));_0x40ba58=_[_0x37a9e2(0x13c)]({},_0x40ba58,_0x1194ad[_0x37a9e2(0x154)]);const _0x42296d={'where':_0x40ba58[_0x37a9e2(0x13e)]};return db[_0x37a9e2(0x150)][_0x37a9e2(0x127)](_0x42296d)[_0x37a9e2(0x129)](function(_0x1b497b){const _0x57d820=_0x37a9e2;return _0x378d0c[_0x57d820(0x127)]=_0x1b497b,_0x1194ad[_0x57d820(0x144)][_0x57d820(0x136)]&&(_0x40ba58[_0x57d820(0x137)]=[{'all':!![]}]),db[_0x57d820(0x150)][_0x57d820(0x157)](_0x40ba58);})[_0x37a9e2(0x129)](function(_0x3983b7){const _0x30e4ef=_0x37a9e2;return _0x378d0c[_0x30e4ef(0x158)]=_0x3983b7,_0x378d0c;})[_0x37a9e2(0x129)](respondWithFilteredResult(_0x122a80,_0x40ba58))['catch'](handleError(_0x122a80,null));},exports[a331_0x3c38a(0x13f)]=function(_0x36128a,_0x2bcf75){const _0x132ef8=a331_0x3c38a;let _0x30668c={'raw':!![],'where':{'id':_0x36128a['params']['id']}};const _0x3a36f8={};return _0x3a36f8['model']=_[_0x132ef8(0x132)](db[_0x132ef8(0x150)][_0x132ef8(0x147)]),_0x3a36f8[_0x132ef8(0x144)]=_[_0x132ef8(0x132)](_0x36128a[_0x132ef8(0x144)]),_0x3a36f8['filters']=_[_0x132ef8(0x14b)](_0x3a36f8['model'],_0x3a36f8[_0x132ef8(0x144)]),_0x30668c[_0x132ef8(0x12c)]=_[_0x132ef8(0x14b)](_0x3a36f8[_0x132ef8(0x14c)],qs['fields'](_0x36128a[_0x132ef8(0x144)][_0x132ef8(0x14d)])),_0x30668c[_0x132ef8(0x12c)]=_0x30668c[_0x132ef8(0x12c)][_0x132ef8(0x13a)]?_0x30668c[_0x132ef8(0x12c)]:_0x3a36f8[_0x132ef8(0x14c)],_0x36128a[_0x132ef8(0x144)]['includeAll']&&(_0x30668c[_0x132ef8(0x137)]=[{'all':!![]}]),_0x30668c=_[_0x132ef8(0x13c)]({},_0x30668c,_0x36128a[_0x132ef8(0x154)]),db[_0x132ef8(0x150)][_0x132ef8(0x14a)](_0x30668c)['then'](handleEntityNotFound(_0x2bcf75,null))[_0x132ef8(0x129)](respondWithResult(_0x2bcf75,null))[_0x132ef8(0x145)](handleError(_0x2bcf75,null));},exports[a331_0x3c38a(0x12d)]=function(_0x5c4335,_0x421ae7){const _0x13443c=a331_0x3c38a;return db[_0x13443c(0x150)][_0x13443c(0x12d)](_0x5c4335[_0x13443c(0x153)],{})[_0x13443c(0x129)](respondWithResult(_0x421ae7,0xc9))[_0x13443c(0x145)](handleError(_0x421ae7,null));},exports[a331_0x3c38a(0x134)]=function(_0x11ee3f,_0x1e049e){const _0x2e1a99=a331_0x3c38a;return _0x11ee3f[_0x2e1a99(0x153)]['id']&&delete _0x11ee3f['body']['id'],db[_0x2e1a99(0x150)][_0x2e1a99(0x14a)]({'where':{'id':_0x11ee3f[_0x2e1a99(0x140)]['id']}})[_0x2e1a99(0x129)](handleEntityNotFound(_0x1e049e,null))[_0x2e1a99(0x129)](saveUpdates(_0x11ee3f[_0x2e1a99(0x153)],null))[_0x2e1a99(0x129)](respondWithResult(_0x1e049e,null))[_0x2e1a99(0x145)](handleError(_0x1e049e,null));},exports['destroy']=function(_0x574d2d,_0x3b13be){const _0x5e17ed=a331_0x3c38a;return db[_0x5e17ed(0x150)]['findOne']({'where':{'id':_0x574d2d[_0x5e17ed(0x140)]['id']}})[_0x5e17ed(0x129)](handleEntityNotFound(_0x3b13be,null))[_0x5e17ed(0x129)](removeEntity(_0x3b13be,null))['catch'](handleError(_0x3b13be,null));}; \ No newline at end of file +const a331_0x4f3b=['keys','catch','includeAll','body','params','where','include','findAll','query','Content-Range','rawAttributes','like','order','index','stack','name','filters','set','type','end','fields','create','../../components/parsers/qs','then','update','lodash','../../mysqldb','attributes','FreshsalesField','limit','length','merge','findOne','sort','sendStatus','json','offset','count','send','map','../../config/logger','api','options','status','pick','intersection','VIRTUAL','nolimit','destroy','model','fieldName','filter'];(function(_0x29dd43,_0x1045ce){const _0x4f3b6c=function(_0x3faa1c){while(--_0x3faa1c){_0x29dd43['push'](_0x29dd43['shift']());}};_0x4f3b6c(++_0x1045ce);}(a331_0x4f3b,0x1e0));const a331_0x3faa=function(_0x29dd43,_0x1045ce){_0x29dd43=_0x29dd43-0x7c;let _0x4f3b6c=a331_0x4f3b[_0x29dd43];return _0x4f3b6c;};const a331_0x1b6c0c=a331_0x3faa;'use strict';const _=require(a331_0x1b6c0c(0x89)),qs=require(a331_0x1b6c0c(0x86)),logger=require(a331_0x1b6c0c(0x98))(a331_0x1b6c0c(0x99)),{db}=require(a331_0x1b6c0c(0x8a)),{Op}=require('sequelize');function respondWithResult(_0x510292,_0x2083d5){return _0x2083d5=_0x2083d5||0xc8,function(_0x3d1e8a){const _0x332ad8=a331_0x3faa;if(_0x3d1e8a)return _0x510292[_0x332ad8(0x9b)](_0x2083d5)[_0x332ad8(0x93)](_0x3d1e8a);};}function respondWithFilteredResult(_0x3e389d,_0x2f9fb4){return function(_0xf42acb){const _0x805493=a331_0x3faa;if(_0xf42acb){const _0xb4779f=_0xf42acb['count'],_0x21ebdb=_0x2f9fb4[_0x805493(0x94)];let _0x29e55c=_0x2f9fb4['offset']+_0x2f9fb4[_0x805493(0x8d)],_0x2c29e1;return _0x29e55c>=_0xb4779f?(_0x29e55c=_0xb4779f,_0x2c29e1=0xc8):_0x2c29e1=0xce,_0x3e389d['status'](_0x2c29e1),_0x3e389d[_0x805493(0x81)](_0x805493(0xad),_0x21ebdb+'-'+_0x29e55c+'/'+_0xb4779f)['json'](_0xf42acb);}return null;};}function saveUpdates(_0x2f8927){return function(_0x382361){const _0x5c08d5=a331_0x3faa;if(_0x382361)return _0x382361[_0x5c08d5(0x88)](_0x2f8927)[_0x5c08d5(0x87)](function(_0x378e7b){return _0x378e7b;});return null;};}function removeEntity(_0x5e970e){return function(_0x1d0639){const _0xc700d4=a331_0x3faa;if(_0x1d0639)return _0x1d0639[_0xc700d4(0xa0)]()[_0xc700d4(0x87)](function(){const _0x1fa960=_0xc700d4;_0x5e970e[_0x1fa960(0x9b)](0xcc)[_0x1fa960(0x83)]();});};}function handleEntityNotFound(_0x445609){return function(_0x10a069){const _0x49bff8=a331_0x3faa;return!_0x10a069&&_0x445609[_0x49bff8(0x92)](0x194),_0x10a069;};}function handleError(_0x452ab1,_0x487000){return _0x487000=_0x487000||0x1f4,function(_0x257ad7){const _0x41a38f=a331_0x3faa;logger['error'](_0x257ad7[_0x41a38f(0x7e)]),_0x257ad7[_0x41a38f(0x7f)]&&delete _0x257ad7[_0x41a38f(0x7f)],_0x452ab1[_0x41a38f(0x9b)](_0x487000)[_0x41a38f(0x96)](_0x257ad7);};}exports[a331_0x1b6c0c(0x7d)]=function(_0x30a24c,_0x3e6a32){const _0x3e1c77=a331_0x1b6c0c;let _0x193722={};const _0x1934b6={},_0x5245a={'count':0x0,'rows':[]},_0x4ce54f=_['map'](db['FreshsalesField'][_0x3e1c77(0xae)],function(_0x2eb4aa){const _0x590297=_0x3e1c77;return{'name':_0x2eb4aa[_0x590297(0xa2)],'type':_0x2eb4aa[_0x590297(0x82)]['key']};});_0x1934b6[_0x3e1c77(0xa1)]=_[_0x3e1c77(0x97)](_0x4ce54f,'name'),_0x1934b6[_0x3e1c77(0xac)]=_['keys'](_0x30a24c[_0x3e1c77(0xac)]),_0x1934b6['filters']=_[_0x3e1c77(0x9d)](_0x1934b6[_0x3e1c77(0xa1)],_0x1934b6['query']),_0x193722[_0x3e1c77(0x8b)]=_[_0x3e1c77(0x9d)](_0x1934b6[_0x3e1c77(0xa1)],qs['fields'](_0x30a24c['query'][_0x3e1c77(0x84)])),_0x193722['attributes']=_0x193722[_0x3e1c77(0x8b)][_0x3e1c77(0x8e)]?_0x193722[_0x3e1c77(0x8b)]:_0x1934b6[_0x3e1c77(0xa1)];typeof _0x30a24c[_0x3e1c77(0xac)][_0x3e1c77(0x9f)]==='undefined'&&(_0x193722['limit']=qs['limit'](_0x30a24c[_0x3e1c77(0xac)]['limit']),_0x193722[_0x3e1c77(0x94)]=qs[_0x3e1c77(0x94)](_0x30a24c['query'][_0x3e1c77(0x94)]));_0x193722[_0x3e1c77(0x7c)]=qs[_0x3e1c77(0x91)](_0x30a24c['query'][_0x3e1c77(0x91)]),_0x193722[_0x3e1c77(0xa9)]=qs[_0x3e1c77(0x80)](_[_0x3e1c77(0x9c)](_0x30a24c[_0x3e1c77(0xac)],_0x1934b6[_0x3e1c77(0x80)]),_0x4ce54f);_0x30a24c[_0x3e1c77(0xac)][_0x3e1c77(0xa3)]&&(_0x193722[_0x3e1c77(0xa9)]=_['merge'](_0x193722['where'],{[Op['or']]:_[_0x3e1c77(0x97)](_0x4ce54f,function(_0x33b650){const _0x30e1e7=_0x3e1c77;if(_0x33b650[_0x30e1e7(0x82)]!==_0x30e1e7(0x9e)){const _0x590e12={};return _0x590e12[_0x33b650[_0x30e1e7(0x7f)]]={[Op[_0x30e1e7(0xaf)]]:'%'+_0x30a24c[_0x30e1e7(0xac)][_0x30e1e7(0xa3)]+'%'},_0x590e12;}})}));_0x193722=_[_0x3e1c77(0x8f)]({},_0x193722,_0x30a24c['options']);const _0x14912e={'where':_0x193722[_0x3e1c77(0xa9)]};return db[_0x3e1c77(0x8c)][_0x3e1c77(0x95)](_0x14912e)['then'](function(_0x34d774){const _0x4b82ac=_0x3e1c77;return _0x5245a[_0x4b82ac(0x95)]=_0x34d774,_0x30a24c[_0x4b82ac(0xac)]['includeAll']&&(_0x193722[_0x4b82ac(0xaa)]=[{'all':!![]}]),db[_0x4b82ac(0x8c)][_0x4b82ac(0xab)](_0x193722);})[_0x3e1c77(0x87)](function(_0x468480){return _0x5245a['rows']=_0x468480,_0x5245a;})[_0x3e1c77(0x87)](respondWithFilteredResult(_0x3e6a32,_0x193722))[_0x3e1c77(0xa5)](handleError(_0x3e6a32,null));},exports['show']=function(_0x5bb961,_0x8070e9){const _0xf4b586=a331_0x1b6c0c;let _0x19b8fb={'raw':!![],'where':{'id':_0x5bb961[_0xf4b586(0xa8)]['id']}};const _0x202c50={};return _0x202c50[_0xf4b586(0xa1)]=_[_0xf4b586(0xa4)](db[_0xf4b586(0x8c)]['rawAttributes']),_0x202c50['query']=_[_0xf4b586(0xa4)](_0x5bb961['query']),_0x202c50[_0xf4b586(0x80)]=_[_0xf4b586(0x9d)](_0x202c50[_0xf4b586(0xa1)],_0x202c50[_0xf4b586(0xac)]),_0x19b8fb[_0xf4b586(0x8b)]=_[_0xf4b586(0x9d)](_0x202c50[_0xf4b586(0xa1)],qs[_0xf4b586(0x84)](_0x5bb961[_0xf4b586(0xac)][_0xf4b586(0x84)])),_0x19b8fb['attributes']=_0x19b8fb[_0xf4b586(0x8b)][_0xf4b586(0x8e)]?_0x19b8fb[_0xf4b586(0x8b)]:_0x202c50['model'],_0x5bb961[_0xf4b586(0xac)][_0xf4b586(0xa6)]&&(_0x19b8fb['include']=[{'all':!![]}]),_0x19b8fb=_['merge']({},_0x19b8fb,_0x5bb961[_0xf4b586(0x9a)]),db[_0xf4b586(0x8c)][_0xf4b586(0x90)](_0x19b8fb)[_0xf4b586(0x87)](handleEntityNotFound(_0x8070e9,null))['then'](respondWithResult(_0x8070e9,null))[_0xf4b586(0xa5)](handleError(_0x8070e9,null));},exports['create']=function(_0x108294,_0x5f4420){const _0x31c9aa=a331_0x1b6c0c;return db[_0x31c9aa(0x8c)][_0x31c9aa(0x85)](_0x108294[_0x31c9aa(0xa7)],{})[_0x31c9aa(0x87)](respondWithResult(_0x5f4420,0xc9))['catch'](handleError(_0x5f4420,null));},exports[a331_0x1b6c0c(0x88)]=function(_0x453420,_0x4ec6c4){const _0x51dcd9=a331_0x1b6c0c;return _0x453420[_0x51dcd9(0xa7)]['id']&&delete _0x453420[_0x51dcd9(0xa7)]['id'],db[_0x51dcd9(0x8c)][_0x51dcd9(0x90)]({'where':{'id':_0x453420[_0x51dcd9(0xa8)]['id']}})[_0x51dcd9(0x87)](handleEntityNotFound(_0x4ec6c4,null))[_0x51dcd9(0x87)](saveUpdates(_0x453420[_0x51dcd9(0xa7)],null))[_0x51dcd9(0x87)](respondWithResult(_0x4ec6c4,null))['catch'](handleError(_0x4ec6c4,null));},exports[a331_0x1b6c0c(0xa0)]=function(_0x2b100a,_0x4bf4c5){const _0x4d12e1=a331_0x1b6c0c;return db[_0x4d12e1(0x8c)]['findOne']({'where':{'id':_0x2b100a[_0x4d12e1(0xa8)]['id']}})['then'](handleEntityNotFound(_0x4bf4c5,null))[_0x4d12e1(0x87)](removeEntity(_0x4bf4c5,null))[_0x4d12e1(0xa5)](handleError(_0x4bf4c5,null));}; \ No newline at end of file diff --git a/server/api/intFreshsalesField/intFreshsalesField.model.js b/server/api/intFreshsalesField/intFreshsalesField.model.js index adb3597..e26b481 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.model.js +++ b/server/api/intFreshsalesField/intFreshsalesField.model.js @@ -1 +1 @@ -const a332_0x449e=['init','FreshsalesField','./intFreshsalesField.options','function','exports','./intFreshsalesField.attributes','sequelize'];(function(_0x29c150,_0x203f31){const _0x449edb=function(_0x18efd5){while(--_0x18efd5){_0x29c150['push'](_0x29c150['shift']());}};_0x449edb(++_0x203f31);}(a332_0x449e,0x9f));const a332_0x18ef=function(_0x29c150,_0x203f31){_0x29c150=_0x29c150-0x1c9;let _0x449edb=a332_0x449e[_0x29c150];return _0x449edb;};const a332_0x3d790d=a332_0x18ef;'use strict';const {Model}=require(a332_0x3d790d(0x1ca)),{attributes}=require(a332_0x3d790d(0x1c9)),{options}=require(a332_0x3d790d(0x1cd));class FreshsalesField extends Model{}function init(_0x36a2c,_0x2965c7){const _0x584fdb=a332_0x3d790d,_0x336b55=options(_0x36a2c),_0x34799d=typeof _0x2965c7===_0x584fdb(0x1ce)?_0x2965c7(_0x336b55):_0x336b55;return FreshsalesField[_0x584fdb(0x1cb)](attributes,_0x34799d),FreshsalesField;}module[a332_0x3d790d(0x1cf)][a332_0x3d790d(0x1cc)]=FreshsalesField,module[a332_0x3d790d(0x1cf)][a332_0x3d790d(0x1cb)]=init; \ No newline at end of file +const a332_0x41a6=['init','sequelize','exports','FreshsalesField','function','./intFreshsalesField.options'];(function(_0x56f341,_0x4646b3){const _0x41a6c4=function(_0x503f00){while(--_0x503f00){_0x56f341['push'](_0x56f341['shift']());}};_0x41a6c4(++_0x4646b3);}(a332_0x41a6,0x87));const a332_0x503f=function(_0x56f341,_0x4646b3){_0x56f341=_0x56f341-0x1b2;let _0x41a6c4=a332_0x41a6[_0x56f341];return _0x41a6c4;};const a332_0x4526e3=a332_0x503f;'use strict';const {Model}=require(a332_0x4526e3(0x1b6)),{attributes}=require('./intFreshsalesField.attributes'),{options}=require(a332_0x4526e3(0x1b4));class FreshsalesField extends Model{}function init(_0xe8f33e,_0x5e9965){const _0x2a1b26=a332_0x4526e3,_0x2ecf66=options(_0xe8f33e),_0x15869c=typeof _0x5e9965===_0x2a1b26(0x1b3)?_0x5e9965(_0x2ecf66):_0x2ecf66;return FreshsalesField[_0x2a1b26(0x1b5)](attributes,_0x15869c),FreshsalesField;}module[a332_0x4526e3(0x1b7)][a332_0x4526e3(0x1b2)]=FreshsalesField,module[a332_0x4526e3(0x1b7)][a332_0x4526e3(0x1b5)]=init; \ No newline at end of file diff --git a/server/api/intFreshsalesField/intFreshsalesField.options.js b/server/api/intFreshsalesField/intFreshsalesField.options.js index 2d7bcde..c8da985 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.options.js +++ b/server/api/intFreshsalesField/intFreshsalesField.options.js @@ -1 +1 @@ -var a333_0xa030=['exports','idField','FieldId','int_freshsales_fields','options'];(function(_0x10f58a,_0x57af73){var _0xa03063=function(_0x52f6ce){while(--_0x52f6ce){_0x10f58a['push'](_0x10f58a['shift']());}};_0xa03063(++_0x57af73);}(a333_0xa030,0x188));var a333_0x52f6=function(_0x10f58a,_0x57af73){_0x10f58a=_0x10f58a-0x1a8;var _0xa03063=a333_0xa030[_0x10f58a];return _0xa03063;};var a333_0x433b16=a333_0x52f6;function options(_0x3d0845){var _0x1d8106=a333_0x52f6;return{'sequelize':_0x3d0845,'tableName':_0x1d8106(0x1a9),'paranoid':![],'indexes':[{'name':'freshsales_unique_index','fields':[_0x1d8106(0x1ac),_0x1d8106(0x1a8)],'unique':!![]}],'timestamps':!![]};}module[a333_0x433b16(0x1ab)][a333_0x433b16(0x1aa)]=options; \ No newline at end of file +var a333_0x4b55=['FieldId','options','int_freshsales_fields','idField','freshsales_unique_index'];(function(_0x5e5937,_0x499dcd){var _0x4b55b5=function(_0x315036){while(--_0x315036){_0x5e5937['push'](_0x5e5937['shift']());}};_0x4b55b5(++_0x499dcd);}(a333_0x4b55,0xc1));var a333_0x3150=function(_0x5e5937,_0x499dcd){_0x5e5937=_0x5e5937-0xc1;var _0x4b55b5=a333_0x4b55[_0x5e5937];return _0x4b55b5;};var a333_0x235490=a333_0x3150;function options(_0x40d682){var _0x13c8ea=a333_0x3150;return{'sequelize':_0x40d682,'tableName':_0x13c8ea(0xc5),'paranoid':![],'indexes':[{'name':_0x13c8ea(0xc2),'fields':[_0x13c8ea(0xc1),_0x13c8ea(0xc3)],'unique':!![]}],'timestamps':!![]};}module['exports'][a333_0x235490(0xc4)]=options; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/index.js b/server/api/intSalesforceAccount/index.js index bd15394..4e31380 100644 --- a/server/api/intSalesforceAccount/index.js +++ b/server/api/intSalesforceAccount/index.js @@ -1 +1 @@ -const a334_0x49dd=['get','index','addConfiguration','isAuthenticated','getConfigurations','/:id/configurations','/:id','Router','./intSalesforceAccount.controller','post','show','update','/:id/fields'];(function(_0xaec72f,_0x1d6a30){const _0x49dd97=function(_0x2db98d){while(--_0x2db98d){_0xaec72f['push'](_0xaec72f['shift']());}};_0x49dd97(++_0x1d6a30);}(a334_0x49dd,0xd4));const a334_0x2db9=function(_0xaec72f,_0x1d6a30){_0xaec72f=_0xaec72f-0x1e6;let _0x49dd97=a334_0x49dd[_0xaec72f];return _0x49dd97;};const a334_0xa44c7d=a334_0x2db9;'use strict';const express=require('express'),router=express[a334_0xa44c7d(0x1e9)](),auth=require('../../components/auth/service'),controller=require(a334_0xa44c7d(0x1ea));router['get']('/',auth[a334_0xa44c7d(0x1f2)](),controller[a334_0xa44c7d(0x1f0)]),router['get']('/:id',auth[a334_0xa44c7d(0x1f2)](),controller[a334_0xa44c7d(0x1ec)]),router[a334_0xa44c7d(0x1ef)](a334_0xa44c7d(0x1e7),auth[a334_0xa44c7d(0x1f2)](),controller[a334_0xa44c7d(0x1e6)]),router[a334_0xa44c7d(0x1ef)](a334_0xa44c7d(0x1ee),auth['isAuthenticated'](),controller['getFields']),router[a334_0xa44c7d(0x1eb)]('/',auth[a334_0xa44c7d(0x1f2)](),controller['create']),router[a334_0xa44c7d(0x1eb)](a334_0xa44c7d(0x1e7),auth[a334_0xa44c7d(0x1f2)](),controller[a334_0xa44c7d(0x1f1)]),router['put'](a334_0xa44c7d(0x1e8),auth[a334_0xa44c7d(0x1f2)](),controller[a334_0xa44c7d(0x1ed)]),router['delete'](a334_0xa44c7d(0x1e8),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a334_0x505f=['/:id/fields','isAuthenticated','addConfiguration','./intSalesforceAccount.controller','exports','get','destroy','getConfigurations','express','getFields','update','create','delete','Router','index','post','show','/:id'];(function(_0x46e96a,_0xab4183){const _0x505f83=function(_0x2f81d1){while(--_0x2f81d1){_0x46e96a['push'](_0x46e96a['shift']());}};_0x505f83(++_0xab4183);}(a334_0x505f,0xe8));const a334_0x2f81=function(_0x46e96a,_0xab4183){_0x46e96a=_0x46e96a-0x69;let _0x505f83=a334_0x505f[_0x46e96a];return _0x505f83;};const a334_0x339524=a334_0x2f81;'use strict';const express=require(a334_0x339524(0x73)),router=express[a334_0x339524(0x78)](),auth=require('../../components/auth/service'),controller=require(a334_0x339524(0x6e));router[a334_0x339524(0x70)]('/',auth[a334_0x339524(0x6c)](),controller[a334_0x339524(0x79)]),router[a334_0x339524(0x70)](a334_0x339524(0x6a),auth[a334_0x339524(0x6c)](),controller[a334_0x339524(0x69)]),router[a334_0x339524(0x70)]('/:id/configurations',auth[a334_0x339524(0x6c)](),controller[a334_0x339524(0x72)]),router[a334_0x339524(0x70)](a334_0x339524(0x6b),auth['isAuthenticated'](),controller[a334_0x339524(0x74)]),router['post']('/',auth['isAuthenticated'](),controller[a334_0x339524(0x76)]),router[a334_0x339524(0x7a)]('/:id/configurations',auth[a334_0x339524(0x6c)](),controller[a334_0x339524(0x6d)]),router['put'](a334_0x339524(0x6a),auth['isAuthenticated'](),controller[a334_0x339524(0x75)]),router[a334_0x339524(0x77)](a334_0x339524(0x6a),auth[a334_0x339524(0x6c)](),controller[a334_0x339524(0x71)]),module[a334_0x339524(0x6f)]=router; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js b/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js index 1366f9a..bb1a68f 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js @@ -1 +1 @@ -const a335_0x4673=['sequelize','STRING','exports','attributes','username','newTab','integrationTab','ENUM'];(function(_0x2f494b,_0x47970b){const _0x467396=function(_0x1eba65){while(--_0x1eba65){_0x2f494b['push'](_0x2f494b['shift']());}};_0x467396(++_0x47970b);}(a335_0x4673,0xfc));const a335_0x1eba=function(_0x2f494b,_0x47970b){_0x2f494b=_0x2f494b-0x15f;let _0x467396=a335_0x4673[_0x2f494b];return _0x467396;};const a335_0x3260ae=a335_0x1eba;'use strict';const {DataTypes}=require(a335_0x3260ae(0x163)),attributes={'name':{'type':DataTypes[a335_0x3260ae(0x164)]},'description':{'type':DataTypes[a335_0x3260ae(0x164)]},'username':{'type':DataTypes[a335_0x3260ae(0x164)],'unique':a335_0x3260ae(0x15f)},'remoteUri':{'type':DataTypes['STRING']},'password':{'type':DataTypes['STRING']},'clientId':{'type':DataTypes[a335_0x3260ae(0x164)]},'clientSecret':{'type':DataTypes['STRING']},'securityToken':{'type':DataTypes['STRING']},'serverUrl':{'type':DataTypes['STRING']},'type':{'type':DataTypes[a335_0x3260ae(0x162)](a335_0x3260ae(0x161),a335_0x3260ae(0x160)),'defaultValue':a335_0x3260ae(0x161)}};module[a335_0x3260ae(0x165)][a335_0x3260ae(0x166)]=attributes; \ No newline at end of file +const a335_0x3338=['newTab','ENUM','STRING','sequelize','integrationTab','username'];(function(_0x3da3c6,_0x490c7a){const _0x333821=function(_0x37ee42){while(--_0x37ee42){_0x3da3c6['push'](_0x3da3c6['shift']());}};_0x333821(++_0x490c7a);}(a335_0x3338,0x1f4));const a335_0x37ee=function(_0x3da3c6,_0x490c7a){_0x3da3c6=_0x3da3c6-0x1dc;let _0x333821=a335_0x3338[_0x3da3c6];return _0x333821;};const a335_0x59d49c=a335_0x37ee;'use strict';const {DataTypes}=require(a335_0x59d49c(0x1dd)),attributes={'name':{'type':DataTypes[a335_0x59d49c(0x1dc)]},'description':{'type':DataTypes['STRING']},'username':{'type':DataTypes[a335_0x59d49c(0x1dc)],'unique':a335_0x59d49c(0x1df)},'remoteUri':{'type':DataTypes[a335_0x59d49c(0x1dc)]},'password':{'type':DataTypes['STRING']},'clientId':{'type':DataTypes['STRING']},'clientSecret':{'type':DataTypes['STRING']},'securityToken':{'type':DataTypes[a335_0x59d49c(0x1dc)]},'serverUrl':{'type':DataTypes[a335_0x59d49c(0x1dc)]},'type':{'type':DataTypes[a335_0x59d49c(0x1e1)]('integrationTab',a335_0x59d49c(0x1e0)),'defaultValue':a335_0x59d49c(0x1de)}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.controller.js b/server/api/intSalesforceAccount/intSalesforceAccount.controller.js index a16efb2..9a2c59f 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.controller.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.controller.js @@ -1 +1 @@ -const a336_0x3711=['login','sequelize','intersection','findAll','limit','value','CallObject','order','SuppliedCompany','substring','include','filters','params','password','username','getConfigurations','concat','attributes','getDescriptions','update','statusCode','then','false','CallType','clientId','Subjects','includeAll','true','like','../../mysqldb','channel','remoteUri','AccountId','custom','error','nolimit','../../components/integrations/configuration','destroy','model','merge','type','stack','pick','Connection','keys','getFields','../../components/parsers/qs','json','options','length','getSubjects','IsArchived','show','False','rows','send','isNil','test','index','../../config/logger','SalesforceConfiguration','SuppliedName','SalesforceAccount','query','SalesforceField','Type','lodash','jsforce','offset','Case','Descriptions','name','securityToken','map','ticketType','describe','VIRTUAL','where','addConfiguration','Wrong\x20credentials','body','rawAttributes','label','Content-Range','catch','boolean','Status','True','sendStatus','Reason','sort','remove','filter','undefined','create','clientSecret','end','fields','api','status','findOne'];(function(_0x328787,_0x409803){const _0x3711a7=function(_0x5b12cb){while(--_0x5b12cb){_0x328787['push'](_0x328787['shift']());}};_0x3711a7(++_0x409803);}(a336_0x3711,0x184));const a336_0x5b12=function(_0x328787,_0x409803){_0x328787=_0x328787-0xc7;let _0x3711a7=a336_0x3711[_0x328787];return _0x3711a7;};const a336_0x7e4da7=a336_0x5b12;'use strict';const _=require(a336_0x7e4da7(0x119)),jsforce=require(a336_0x7e4da7(0x11a)),qs=require(a336_0x7e4da7(0x105)),logger=require(a336_0x7e4da7(0x112))(a336_0x7e4da7(0xd4)),{db}=require(a336_0x7e4da7(0xf4)),{Op}=require(a336_0x7e4da7(0xd8)),integrations=require(a336_0x7e4da7(0xfb));function respondWithResult(_0x395278,_0x190929){return _0x190929=_0x190929||0xc8,function(_0x2043bf){const _0x3f47a=a336_0x5b12;if(_0x2043bf)return _0x395278['status'](_0x190929)[_0x3f47a(0x106)](_0x2043bf);};}function respondWithFilteredResult(_0x227939,_0x5233b8){return function(_0x12bad0){const _0x5ea726=a336_0x5b12;if(_0x12bad0){const _0x17d89f=_0x12bad0['count'],_0x13c630=_0x5233b8[_0x5ea726(0x11b)];let _0x171225=_0x5233b8['offset']+_0x5233b8['limit'],_0xf2b2dd;return _0x171225>=_0x17d89f?(_0x171225=_0x17d89f,_0xf2b2dd=0xc8):_0xf2b2dd=0xce,_0x227939[_0x5ea726(0xd5)](_0xf2b2dd),_0x227939['set'](_0x5ea726(0x12a),_0x13c630+'-'+_0x171225+'/'+_0x17d89f)['json'](_0x12bad0);}return null;};}function saveUpdates(_0x2a604e){return function(_0x318d57){const _0x1f9510=a336_0x5b12;if(_0x318d57)return _0x318d57[_0x1f9510(0xea)](_0x2a604e)[_0x1f9510(0xec)](function(_0x5d3a3c){return _0x5d3a3c;});return null;};}function removeEntity(_0x47bdf1){return function(_0x57e4aa){const _0x404ab4=a336_0x5b12;if(_0x57e4aa)return _0x57e4aa['destroy']()[_0x404ab4(0xec)](function(){const _0x14fc58=_0x404ab4;_0x47bdf1['status'](0xcc)[_0x14fc58(0xd2)]();});};}function handleEntityNotFound(_0x3833df){return function(_0x196f2d){const _0x43a61a=a336_0x5b12;return!_0x196f2d&&_0x3833df[_0x43a61a(0xca)](0x194),_0x196f2d;};}function handleError(_0x8573fc,_0x47a5fa){return _0x47a5fa=_0x47a5fa||0x1f4,function(_0x3b92f9){const _0x2fa09d=a336_0x5b12;logger[_0x2fa09d(0xf9)](_0x3b92f9[_0x2fa09d(0x100)]),_0x3b92f9['name']&&delete _0x3b92f9['name'],_0x8573fc[_0x2fa09d(0xd5)](_0x47a5fa)['send'](_0x3b92f9);};}exports[a336_0x7e4da7(0x111)]=function(_0x6afe3,_0x2a80fb){const _0x149d3b=a336_0x7e4da7;let _0x1e093e={};const _0x2ff6a4={},_0x1aa2e8={'count':0x0,'rows':[]},_0x22da20=_['map'](db[_0x149d3b(0x115)][_0x149d3b(0x128)],function(_0x5a0403){const _0x4e53bf=_0x149d3b;return{'name':_0x5a0403['fieldName'],'type':_0x5a0403[_0x4e53bf(0xff)]['key']};});_0x2ff6a4[_0x149d3b(0xfd)]=_[_0x149d3b(0x120)](_0x22da20,'name'),_0x2ff6a4[_0x149d3b(0x116)]=_[_0x149d3b(0x103)](_0x6afe3['query']),_0x2ff6a4[_0x149d3b(0xe2)]=_[_0x149d3b(0xd9)](_0x2ff6a4[_0x149d3b(0xfd)],_0x2ff6a4['query']),_0x1e093e[_0x149d3b(0xe8)]=_['intersection'](_0x2ff6a4[_0x149d3b(0xfd)],qs[_0x149d3b(0xd3)](_0x6afe3['query']['fields'])),_0x1e093e[_0x149d3b(0xe8)]=_0x1e093e[_0x149d3b(0xe8)][_0x149d3b(0x108)]?_0x1e093e[_0x149d3b(0xe8)]:_0x2ff6a4['model'];typeof _0x6afe3[_0x149d3b(0x116)][_0x149d3b(0xfa)]===_0x149d3b(0xcf)&&(_0x1e093e[_0x149d3b(0xdb)]=qs[_0x149d3b(0xdb)](_0x6afe3[_0x149d3b(0x116)]['limit']),_0x1e093e[_0x149d3b(0x11b)]=qs[_0x149d3b(0x11b)](_0x6afe3[_0x149d3b(0x116)][_0x149d3b(0x11b)]));_0x1e093e[_0x149d3b(0xde)]=qs[_0x149d3b(0xcc)](_0x6afe3['query'][_0x149d3b(0xcc)]),_0x1e093e[_0x149d3b(0x124)]=qs[_0x149d3b(0xe2)](_['pick'](_0x6afe3[_0x149d3b(0x116)],_0x2ff6a4['filters']),_0x22da20);_0x6afe3[_0x149d3b(0x116)]['filter']&&(_0x1e093e['where']=_[_0x149d3b(0xfe)](_0x1e093e[_0x149d3b(0x124)],{[Op['or']]:_[_0x149d3b(0x120)](_0x22da20,function(_0x148ec4){const _0x34d394=_0x149d3b;if(_0x148ec4[_0x34d394(0xff)]!==_0x34d394(0x123)){const _0x4984fe={};return _0x4984fe[_0x148ec4[_0x34d394(0x11e)]]={[Op[_0x34d394(0xf3)]]:'%'+_0x6afe3[_0x34d394(0x116)][_0x34d394(0xce)]+'%'},_0x4984fe;}})}));_0x1e093e=_[_0x149d3b(0xfe)]({},_0x1e093e,_0x6afe3[_0x149d3b(0x107)]);const _0x57d301={'where':_0x1e093e[_0x149d3b(0x124)]};return db['SalesforceAccount']['count'](_0x57d301)[_0x149d3b(0xec)](function(_0x4e6b7e){const _0x174f02=_0x149d3b;return _0x1aa2e8['count']=_0x4e6b7e,_0x6afe3['query'][_0x174f02(0xf1)]&&(_0x1e093e[_0x174f02(0xe1)]=[{'all':!![]}]),db['SalesforceAccount'][_0x174f02(0xda)](_0x1e093e);})[_0x149d3b(0xec)](function(_0x69e98){const _0x44e928=_0x149d3b;return _0x1aa2e8[_0x44e928(0x10d)]=_0x69e98,_0x1aa2e8;})[_0x149d3b(0xec)](respondWithFilteredResult(_0x2a80fb,_0x1e093e))[_0x149d3b(0x12b)](handleError(_0x2a80fb,null));},exports[a336_0x7e4da7(0x10b)]=function(_0x2a65f5,_0x246cc4){const _0x50e2b7=a336_0x7e4da7;let _0x2d982f={'raw':![],'where':{'id':_0x2a65f5[_0x50e2b7(0xe3)]['id']}};const _0x5001eb={};return _0x5001eb[_0x50e2b7(0xfd)]=_[_0x50e2b7(0x103)](db['SalesforceAccount'][_0x50e2b7(0x128)]),_0x5001eb[_0x50e2b7(0x116)]=_[_0x50e2b7(0x103)](_0x2a65f5['query']),_0x5001eb['filters']=_[_0x50e2b7(0xd9)](_0x5001eb[_0x50e2b7(0xfd)],_0x5001eb[_0x50e2b7(0x116)]),_0x2d982f['attributes']=_[_0x50e2b7(0xd9)](_0x5001eb[_0x50e2b7(0xfd)],qs[_0x50e2b7(0xd3)](_0x2a65f5[_0x50e2b7(0x116)][_0x50e2b7(0xd3)])),_0x2d982f[_0x50e2b7(0xe8)]=_0x2d982f[_0x50e2b7(0xe8)][_0x50e2b7(0x108)]?_0x2d982f['attributes']:_0x5001eb[_0x50e2b7(0xfd)],_0x2a65f5[_0x50e2b7(0x116)][_0x50e2b7(0xf1)]&&(_0x2d982f[_0x50e2b7(0xe1)]=[{'all':!![]}]),_0x2d982f=_['merge']({},_0x2d982f,_0x2a65f5[_0x50e2b7(0x107)]),db[_0x50e2b7(0x115)][_0x50e2b7(0xd6)](_0x2d982f)[_0x50e2b7(0xec)](handleEntityNotFound(_0x246cc4,null))[_0x50e2b7(0xec)](respondWithResult(_0x246cc4,null))[_0x50e2b7(0x12b)](handleError(_0x246cc4,null));},exports['create']=function(_0x544934,_0x15fd20){const _0x298bec=a336_0x7e4da7;return db['SalesforceAccount'][_0x298bec(0xd0)](_0x544934[_0x298bec(0x127)],{})[_0x298bec(0xec)](respondWithResult(_0x15fd20,0xc9))[_0x298bec(0x12b)](handleError(_0x15fd20,null));},exports[a336_0x7e4da7(0xea)]=function(_0xd7a63b,_0x540fd0){const _0x33b827=a336_0x7e4da7;return _0xd7a63b['body']['id']&&delete _0xd7a63b['body']['id'],db[_0x33b827(0x115)]['findOne']({'where':{'id':_0xd7a63b['params']['id']}})[_0x33b827(0xec)](handleEntityNotFound(_0x540fd0,null))[_0x33b827(0xec)](saveUpdates(_0xd7a63b['body'],null))[_0x33b827(0xec)](respondWithResult(_0x540fd0,null))[_0x33b827(0x12b)](handleError(_0x540fd0,null));},exports[a336_0x7e4da7(0xfc)]=function(_0x2809e2,_0x392c1e){const _0x55b91=a336_0x7e4da7;return db['SalesforceAccount'][_0x55b91(0xd6)]({'where':{'id':_0x2809e2['params']['id']}})[_0x55b91(0xec)](handleEntityNotFound(_0x392c1e,null))[_0x55b91(0xec)](removeEntity(_0x392c1e,null))[_0x55b91(0x12b)](handleError(_0x392c1e,null));},exports['getConfigurations']=function(_0xe6e1f2,_0x3a30e6){const _0x30ac9f=a336_0x7e4da7;let _0x525b61={};const _0x35ed08={};let _0x2b592e,_0x300416;return db[_0x30ac9f(0x115)][_0x30ac9f(0xd6)]({'where':{'id':_0xe6e1f2[_0x30ac9f(0xe3)]['id']}})[_0x30ac9f(0xec)](handleEntityNotFound(_0x3a30e6,null))[_0x30ac9f(0xec)](function(_0x19665e){const _0x10c4de=_0x30ac9f;if(_0x19665e)return _0x2b592e=_0x19665e,_0x35ed08[_0x10c4de(0xfd)]=_[_0x10c4de(0x103)](db[_0x10c4de(0x113)][_0x10c4de(0x128)]),_0x35ed08[_0x10c4de(0x116)]=_[_0x10c4de(0x103)](_0xe6e1f2[_0x10c4de(0x116)]),_0x35ed08[_0x10c4de(0xe2)]=_['intersection'](_0x35ed08[_0x10c4de(0xfd)],_0x35ed08[_0x10c4de(0x116)]),_0x525b61['attributes']=_[_0x10c4de(0xd9)](_0x35ed08['model'],qs[_0x10c4de(0xd3)](_0xe6e1f2[_0x10c4de(0x116)]['fields'])),_0x525b61[_0x10c4de(0xe8)]=_0x525b61[_0x10c4de(0xe8)][_0x10c4de(0x108)]?_0x525b61['attributes']:_0x35ed08[_0x10c4de(0xfd)],_0x525b61[_0x10c4de(0xde)]=qs[_0x10c4de(0xcc)](_0xe6e1f2[_0x10c4de(0x116)][_0x10c4de(0xcc)]),_0x525b61['where']=qs['filters'](_[_0x10c4de(0x101)](_0xe6e1f2[_0x10c4de(0x116)],_0x35ed08[_0x10c4de(0xe2)])),_0xe6e1f2['query']['filter']&&(_0x525b61['where']=_[_0x10c4de(0xfe)](_0x525b61['where'],{[Op['or']]:_[_0x10c4de(0x120)](_0x525b61[_0x10c4de(0xe8)],function(_0x2daa01){const _0x21aed4=_0x10c4de,_0x498050={};return _0x498050[_0x2daa01]={[Op['like']]:'%'+_0xe6e1f2[_0x21aed4(0x116)][_0x21aed4(0xce)]+'%'},_0x498050;})})),_0x525b61=_[_0x10c4de(0xfe)]({},_0x525b61,_0xe6e1f2[_0x10c4de(0x107)]),_0x2b592e[_0x10c4de(0xe6)](_0x525b61);})['then'](function(_0x2a4778){const _0x416f28=_0x30ac9f;if(_0x2a4778)return _0x300416=_0x2a4778[_0x416f28(0x108)],typeof _0xe6e1f2[_0x416f28(0x116)][_0x416f28(0xfa)]==='undefined'&&(_0x525b61['limit']=qs[_0x416f28(0xdb)](_0xe6e1f2[_0x416f28(0x116)][_0x416f28(0xdb)]),_0x525b61[_0x416f28(0x11b)]=qs['offset'](_0xe6e1f2[_0x416f28(0x116)][_0x416f28(0x11b)])),_0x2b592e[_0x416f28(0xe6)](_0x525b61);})[_0x30ac9f(0xec)](function(_0x39bb9b){if(_0x39bb9b)return _0x39bb9b?{'count':_0x300416,'rows':_0x39bb9b}:null;})['then'](respondWithResult(_0x3a30e6,null))[_0x30ac9f(0x12b)](handleError(_0x3a30e6,null));},exports[a336_0x7e4da7(0x125)]=function(_0x1918dc,_0x10bca8){const _0x173e5=a336_0x7e4da7;return _0x1918dc['body']['id']&&delete _0x1918dc[_0x173e5(0x127)]['id'],db[_0x173e5(0x115)][_0x173e5(0xd6)]({'where':{'id':_0x1918dc[_0x173e5(0xe3)]['id']}})[_0x173e5(0xec)](handleEntityNotFound(_0x10bca8,null))[_0x173e5(0xec)](function(_0x3c05f1){const _0xf54b7c=_0x173e5;if(_0x3c05f1)return _0x1918dc[_0xf54b7c(0x127)][_0xf54b7c(0xf7)]=_0x3c05f1['id'],_0x1918dc[_0xf54b7c(0x127)][_0xf54b7c(0xf0)]=integrations[_0xf54b7c(0x109)](_0x1918dc[_0xf54b7c(0x127)][_0xf54b7c(0xf5)],_0x1918dc[_0xf54b7c(0x127)][_0xf54b7c(0xff)]),_0x1918dc[_0xf54b7c(0x127)][_0xf54b7c(0x11d)]=integrations[_0xf54b7c(0xe9)](_0x1918dc[_0xf54b7c(0x127)][_0xf54b7c(0xf5)],_0x1918dc[_0xf54b7c(0x127)]['type']),db[_0xf54b7c(0x113)]['create'](_0x1918dc['body'],{'include':[{'model':db[_0xf54b7c(0x117)],'as':_0xf54b7c(0xf0)},{'model':db[_0xf54b7c(0x117)],'as':'Descriptions'}]});return null;})[_0x173e5(0xec)](respondWithResult(_0x10bca8,null))['catch'](handleError(_0x10bca8,null));},exports[a336_0x7e4da7(0x104)]=function(_0x9092a1,_0x13318f){const _0x358bab=a336_0x7e4da7;let _0x4e54f9,_0x13644c='',_0x5c9bd4='Task';return db[_0x358bab(0x115)]['findOne']({'where':{'id':_0x9092a1[_0x358bab(0xe3)]['id']},'attributes':['id',_0x358bab(0xf6),_0x358bab(0xef),_0x358bab(0xd1),_0x358bab(0xe5),_0x358bab(0xe4),_0x358bab(0x11f)]})[_0x358bab(0xec)](handleEntityNotFound(_0x13318f,null))[_0x358bab(0xec)](function(_0x216bd4){const _0x1cfec7=_0x358bab;if(_0x216bd4){_0x13644c=_0x216bd4['remoteUri'];const _0x552682=_0x13644c['slice'](-0x1);return _0x552682==='/'&&(_0x13644c=_0x13644c[_0x1cfec7(0xe0)](0x0,_0x13644c['lastIndexOf'](_0x552682))),_0x4e54f9=new jsforce[(_0x1cfec7(0x102))]({'oauth2':{'loginUrl':_0x13644c,'clientId':_0x216bd4[_0x1cfec7(0xef)],'clientSecret':_0x216bd4[_0x1cfec7(0xd1)]}}),_0x4e54f9[_0x1cfec7(0xd7)](_0x216bd4['username'],_0x216bd4[_0x1cfec7(0xe4)][_0x1cfec7(0xe7)](_0x216bd4[_0x1cfec7(0x11f)]));}})[_0x358bab(0xec)](function(_0x533303){const _0x49b1ee=_0x358bab;if(_0x533303)return!_['isNil'](_0x9092a1[_0x49b1ee(0x116)][_0x49b1ee(0x121)])&&(_0x5c9bd4=_0x9092a1['query'][_0x49b1ee(0x121)]),_0x4e54f9['sobject'](_0x5c9bd4)[_0x49b1ee(0x122)]();})['then'](function(_0x52f03a){const _0x4aa057=_0x358bab;let _0xae579c=['CallDisposition','CallDurationInSeconds',_0x4aa057(0xdd),_0x4aa057(0xee),_0x4aa057(0x10a),'Priority',_0x4aa057(0xc8),_0x4aa057(0x118)];!_[_0x4aa057(0x10f)](_0x9092a1[_0x4aa057(0x116)][_0x4aa057(0x121)])&&_0x9092a1[_0x4aa057(0x116)][_0x4aa057(0x121)]===_0x4aa057(0x11c)&&(_0xae579c=['Type','Origin',_0x4aa057(0xcb),_0x4aa057(0xc8),'Priority','IsEscalated',_0x4aa057(0x114),_0x4aa057(0xdf)]);if(_0x52f03a)return _[_0x4aa057(0xcd)](_0x52f03a[_0x4aa057(0xd3)],function(_0x493bf2){const _0x4c8a2f=_0x4aa057;return _0x493bf2[_0x4c8a2f(0xf8)]===![]&&!_0xae579c['includes'](_0x493bf2[_0x4c8a2f(0x11e)]);}),{'count':_0x52f03a['fields'][_0x4aa057(0x108)],'rows':_['map'](_0x52f03a[_0x4aa057(0xd3)],function(_0x4c71b2){const _0x3edb20=_0x4aa057;return{'id':_0x4c71b2[_0x3edb20(0x11e)],'name':_0x4c71b2['label'],'custom':_0x4c71b2['custom'],'options':_0x4c71b2['picklistValues'][_0x3edb20(0x108)]>0x0?_[_0x3edb20(0x120)](_0x4c71b2['picklistValues'],function(_0x472992){const _0x401f9b=_0x3edb20;return{'name':_0x472992[_0x401f9b(0x129)],'value':_0x472992[_0x401f9b(0xdc)]};}):_0x4c71b2[_0x3edb20(0xff)]==_0x3edb20(0xc7)?[{'name':_0x3edb20(0xc9),'value':_0x3edb20(0xf2)},{'name':_0x3edb20(0x10c),'value':_0x3edb20(0xed)}]:[]};})};})[_0x358bab(0xec)](respondWithResult(_0x13318f,null))[_0x358bab(0x12b)](function(_0x48f773){const _0x1eb1ca=_0x358bab;let _0x56c94a=_0x9092a1['query'][_0x1eb1ca(0x110)]?0x1f4:_0x48f773[_0x1eb1ca(0xeb)]||0x1f4;logger['error']('getFields,\x20%s,\x20%s,\x20%s',_0x1eb1ca(0x104),_0x56c94a,JSON['stringify'](_0x48f773)),delete _0x48f773[_0x1eb1ca(0x11e)],_0x56c94a===0x191&&(_0x56c94a=0x190),_0x13318f[_0x1eb1ca(0xd5)](_0x56c94a)[_0x1eb1ca(0x10e)](_0x9092a1[_0x1eb1ca(0x116)][_0x1eb1ca(0x110)]?{'message':_0x1eb1ca(0x126),'statusCode':_0x48f773[_0x1eb1ca(0xeb)]}:_0x48f773);});}; \ No newline at end of file +const a336_0x3274=['rows','Origin','getConfigurations','length','type','create','params','set','VIRTUAL','send','test','include','query','jsforce','sort','index','includeAll','where','concat','like','IsArchived','rawAttributes','boolean','remove','../../components/integrations/configuration','lastIndexOf','substring','SuppliedCompany','Wrong\x20credentials','custom','body','map','SalesforceField','destroy','error','../../config/logger','SalesforceAccount','Reason','Descriptions','stack','name','Task','clientId','clientSecret','stringify','key','CallObject','merge','offset','intersection','getSubjects','Type','False','remoteUri','findOne','username','login','label','channel','IsEscalated','Case','json','false','options','order','statusCode','update','true','../../mysqldb','keys','sequelize','../../components/parsers/qs','describe','filter','then','slice','value','api','Content-Range','ticketType','SuppliedName','sendStatus','pick','lodash','limit','fields','Status','Subjects','show','attributes','nolimit','getFields,\x20%s,\x20%s,\x20%s','getFields','model','catch','securityToken','CallDurationInSeconds','True','Connection','isNil','fieldName','status','filters','sobject','count','addConfiguration','includes','password','SalesforceConfiguration','Priority','undefined'];(function(_0x2cc370,_0x4314c2){const _0x3274c3=function(_0x307be5){while(--_0x307be5){_0x2cc370['push'](_0x2cc370['shift']());}};_0x3274c3(++_0x4314c2);}(a336_0x3274,0x1f2));const a336_0x307b=function(_0x2cc370,_0x4314c2){_0x2cc370=_0x2cc370-0x1da;let _0x3274c3=a336_0x3274[_0x2cc370];return _0x3274c3;};const a336_0xd8c7ec=a336_0x307b;'use strict';const _=require(a336_0xd8c7ec(0x1f7)),jsforce=require(a336_0xd8c7ec(0x220)),qs=require(a336_0xd8c7ec(0x1eb)),logger=require(a336_0xd8c7ec(0x236))(a336_0xd8c7ec(0x1f1)),{db}=require(a336_0xd8c7ec(0x1e8)),{Op}=require(a336_0xd8c7ec(0x1ea)),integrations=require(a336_0xd8c7ec(0x22b));function respondWithResult(_0x50005e,_0x164686){return _0x164686=_0x164686||0xc8,function(_0x66d8b7){const _0x26eec5=a336_0x307b;if(_0x66d8b7)return _0x50005e[_0x26eec5(0x209)](_0x164686)[_0x26eec5(0x1e1)](_0x66d8b7);};}function respondWithFilteredResult(_0xdd9208,_0x591619){return function(_0x4fa38c){const _0xf31301=a336_0x307b;if(_0x4fa38c){const _0x299a79=_0x4fa38c[_0xf31301(0x20c)],_0x452de7=_0x591619[_0xf31301(0x243)];let _0x419556=_0x591619[_0xf31301(0x243)]+_0x591619['limit'],_0x2323f5;return _0x419556>=_0x299a79?(_0x419556=_0x299a79,_0x2323f5=0xc8):_0x2323f5=0xce,_0xdd9208[_0xf31301(0x209)](_0x2323f5),_0xdd9208[_0xf31301(0x21a)](_0xf31301(0x1f2),_0x452de7+'-'+_0x419556+'/'+_0x299a79)[_0xf31301(0x1e1)](_0x4fa38c);}return null;};}function saveUpdates(_0x246952){return function(_0x31464f){const _0x38e529=a336_0x307b;if(_0x31464f)return _0x31464f[_0x38e529(0x1e6)](_0x246952)[_0x38e529(0x1ee)](function(_0x345f91){return _0x345f91;});return null;};}function removeEntity(_0x378bcf){return function(_0x41e4a2){const _0x27d18e=a336_0x307b;if(_0x41e4a2)return _0x41e4a2[_0x27d18e(0x234)]()[_0x27d18e(0x1ee)](function(){const _0xf8fdcb=_0x27d18e;_0x378bcf[_0xf8fdcb(0x209)](0xcc)['end']();});};}function handleEntityNotFound(_0x7b2b1){return function(_0xa6bc44){const _0x328448=a336_0x307b;return!_0xa6bc44&&_0x7b2b1[_0x328448(0x1f5)](0x194),_0xa6bc44;};}function handleError(_0x46914c,_0x2dc673){return _0x2dc673=_0x2dc673||0x1f4,function(_0x72228e){const _0x97dc3d=a336_0x307b;logger[_0x97dc3d(0x235)](_0x72228e[_0x97dc3d(0x23a)]),_0x72228e[_0x97dc3d(0x23b)]&&delete _0x72228e[_0x97dc3d(0x23b)],_0x46914c[_0x97dc3d(0x209)](_0x2dc673)['send'](_0x72228e);};}exports[a336_0xd8c7ec(0x222)]=function(_0x5402af,_0x354dd3){const _0xe338d2=a336_0xd8c7ec;let _0x5b8657={};const _0x207c0f={},_0x803aa3={'count':0x0,'rows':[]},_0x1316db=_[_0xe338d2(0x232)](db[_0xe338d2(0x237)]['rawAttributes'],function(_0xfa6759){const _0x441c63=_0xe338d2;return{'name':_0xfa6759[_0x441c63(0x208)],'type':_0xfa6759[_0x441c63(0x217)][_0x441c63(0x240)]};});_0x207c0f[_0xe338d2(0x201)]=_[_0xe338d2(0x232)](_0x1316db,_0xe338d2(0x23b)),_0x207c0f[_0xe338d2(0x21f)]=_[_0xe338d2(0x1e9)](_0x5402af[_0xe338d2(0x21f)]),_0x207c0f[_0xe338d2(0x20a)]=_[_0xe338d2(0x244)](_0x207c0f[_0xe338d2(0x201)],_0x207c0f['query']),_0x5b8657[_0xe338d2(0x1fd)]=_[_0xe338d2(0x244)](_0x207c0f[_0xe338d2(0x201)],qs['fields'](_0x5402af[_0xe338d2(0x21f)][_0xe338d2(0x1f9)])),_0x5b8657[_0xe338d2(0x1fd)]=_0x5b8657['attributes']['length']?_0x5b8657[_0xe338d2(0x1fd)]:_0x207c0f[_0xe338d2(0x201)];typeof _0x5402af[_0xe338d2(0x21f)][_0xe338d2(0x1fe)]===_0xe338d2(0x212)&&(_0x5b8657[_0xe338d2(0x1f8)]=qs[_0xe338d2(0x1f8)](_0x5402af['query']['limit']),_0x5b8657[_0xe338d2(0x243)]=qs[_0xe338d2(0x243)](_0x5402af[_0xe338d2(0x21f)][_0xe338d2(0x243)]));_0x5b8657[_0xe338d2(0x1e4)]=qs[_0xe338d2(0x221)](_0x5402af[_0xe338d2(0x21f)][_0xe338d2(0x221)]),_0x5b8657['where']=qs['filters'](_[_0xe338d2(0x1f6)](_0x5402af[_0xe338d2(0x21f)],_0x207c0f['filters']),_0x1316db);_0x5402af[_0xe338d2(0x21f)][_0xe338d2(0x1ed)]&&(_0x5b8657[_0xe338d2(0x224)]=_[_0xe338d2(0x242)](_0x5b8657['where'],{[Op['or']]:_[_0xe338d2(0x232)](_0x1316db,function(_0x10e70e){const _0x1a61fc=_0xe338d2;if(_0x10e70e[_0x1a61fc(0x217)]!==_0x1a61fc(0x21b)){const _0x430df6={};return _0x430df6[_0x10e70e['name']]={[Op[_0x1a61fc(0x226)]]:'%'+_0x5402af[_0x1a61fc(0x21f)][_0x1a61fc(0x1ed)]+'%'},_0x430df6;}})}));_0x5b8657=_[_0xe338d2(0x242)]({},_0x5b8657,_0x5402af[_0xe338d2(0x1e3)]);const _0x40edfb={'where':_0x5b8657[_0xe338d2(0x224)]};return db[_0xe338d2(0x237)][_0xe338d2(0x20c)](_0x40edfb)[_0xe338d2(0x1ee)](function(_0x47860d){const _0x372bfb=_0xe338d2;return _0x803aa3['count']=_0x47860d,_0x5402af[_0x372bfb(0x21f)]['includeAll']&&(_0x5b8657[_0x372bfb(0x21e)]=[{'all':!![]}]),db['SalesforceAccount']['findAll'](_0x5b8657);})[_0xe338d2(0x1ee)](function(_0x26013e){const _0x292131=_0xe338d2;return _0x803aa3[_0x292131(0x213)]=_0x26013e,_0x803aa3;})[_0xe338d2(0x1ee)](respondWithFilteredResult(_0x354dd3,_0x5b8657))[_0xe338d2(0x202)](handleError(_0x354dd3,null));},exports[a336_0xd8c7ec(0x1fc)]=function(_0x3b6f22,_0x4cbf5b){const _0x4ad4a4=a336_0xd8c7ec;let _0x14bef8={'raw':![],'where':{'id':_0x3b6f22[_0x4ad4a4(0x219)]['id']}};const _0x5a28dc={};return _0x5a28dc[_0x4ad4a4(0x201)]=_[_0x4ad4a4(0x1e9)](db[_0x4ad4a4(0x237)][_0x4ad4a4(0x228)]),_0x5a28dc['query']=_[_0x4ad4a4(0x1e9)](_0x3b6f22['query']),_0x5a28dc[_0x4ad4a4(0x20a)]=_[_0x4ad4a4(0x244)](_0x5a28dc['model'],_0x5a28dc[_0x4ad4a4(0x21f)]),_0x14bef8[_0x4ad4a4(0x1fd)]=_[_0x4ad4a4(0x244)](_0x5a28dc[_0x4ad4a4(0x201)],qs['fields'](_0x3b6f22[_0x4ad4a4(0x21f)][_0x4ad4a4(0x1f9)])),_0x14bef8[_0x4ad4a4(0x1fd)]=_0x14bef8['attributes'][_0x4ad4a4(0x216)]?_0x14bef8[_0x4ad4a4(0x1fd)]:_0x5a28dc[_0x4ad4a4(0x201)],_0x3b6f22['query'][_0x4ad4a4(0x223)]&&(_0x14bef8[_0x4ad4a4(0x21e)]=[{'all':!![]}]),_0x14bef8=_['merge']({},_0x14bef8,_0x3b6f22['options']),db[_0x4ad4a4(0x237)]['findOne'](_0x14bef8)[_0x4ad4a4(0x1ee)](handleEntityNotFound(_0x4cbf5b,null))[_0x4ad4a4(0x1ee)](respondWithResult(_0x4cbf5b,null))[_0x4ad4a4(0x202)](handleError(_0x4cbf5b,null));},exports[a336_0xd8c7ec(0x218)]=function(_0x22bedf,_0x245b3a){const _0x4fefb5=a336_0xd8c7ec;return db['SalesforceAccount'][_0x4fefb5(0x218)](_0x22bedf[_0x4fefb5(0x231)],{})['then'](respondWithResult(_0x245b3a,0xc9))[_0x4fefb5(0x202)](handleError(_0x245b3a,null));},exports[a336_0xd8c7ec(0x1e6)]=function(_0x40bb73,_0x39deb6){const _0x186fd9=a336_0xd8c7ec;return _0x40bb73['body']['id']&&delete _0x40bb73[_0x186fd9(0x231)]['id'],db['SalesforceAccount'][_0x186fd9(0x1da)]({'where':{'id':_0x40bb73[_0x186fd9(0x219)]['id']}})['then'](handleEntityNotFound(_0x39deb6,null))[_0x186fd9(0x1ee)](saveUpdates(_0x40bb73[_0x186fd9(0x231)],null))[_0x186fd9(0x1ee)](respondWithResult(_0x39deb6,null))[_0x186fd9(0x202)](handleError(_0x39deb6,null));},exports[a336_0xd8c7ec(0x234)]=function(_0x1adecb,_0x22c533){const _0xfa72e8=a336_0xd8c7ec;return db[_0xfa72e8(0x237)]['findOne']({'where':{'id':_0x1adecb[_0xfa72e8(0x219)]['id']}})[_0xfa72e8(0x1ee)](handleEntityNotFound(_0x22c533,null))[_0xfa72e8(0x1ee)](removeEntity(_0x22c533,null))['catch'](handleError(_0x22c533,null));},exports[a336_0xd8c7ec(0x215)]=function(_0x501083,_0x19601a){const _0x2b9cbd=a336_0xd8c7ec;let _0x49265b={};const _0x4a67fd={};let _0x1f377b,_0x1c1063;return db['SalesforceAccount'][_0x2b9cbd(0x1da)]({'where':{'id':_0x501083[_0x2b9cbd(0x219)]['id']}})['then'](handleEntityNotFound(_0x19601a,null))[_0x2b9cbd(0x1ee)](function(_0x503330){const _0x172736=_0x2b9cbd;if(_0x503330)return _0x1f377b=_0x503330,_0x4a67fd[_0x172736(0x201)]=_[_0x172736(0x1e9)](db[_0x172736(0x210)][_0x172736(0x228)]),_0x4a67fd[_0x172736(0x21f)]=_[_0x172736(0x1e9)](_0x501083['query']),_0x4a67fd[_0x172736(0x20a)]=_['intersection'](_0x4a67fd['model'],_0x4a67fd[_0x172736(0x21f)]),_0x49265b[_0x172736(0x1fd)]=_[_0x172736(0x244)](_0x4a67fd[_0x172736(0x201)],qs[_0x172736(0x1f9)](_0x501083['query'][_0x172736(0x1f9)])),_0x49265b[_0x172736(0x1fd)]=_0x49265b[_0x172736(0x1fd)]['length']?_0x49265b[_0x172736(0x1fd)]:_0x4a67fd[_0x172736(0x201)],_0x49265b['order']=qs['sort'](_0x501083['query'][_0x172736(0x221)]),_0x49265b[_0x172736(0x224)]=qs[_0x172736(0x20a)](_[_0x172736(0x1f6)](_0x501083[_0x172736(0x21f)],_0x4a67fd['filters'])),_0x501083[_0x172736(0x21f)][_0x172736(0x1ed)]&&(_0x49265b[_0x172736(0x224)]=_[_0x172736(0x242)](_0x49265b[_0x172736(0x224)],{[Op['or']]:_['map'](_0x49265b['attributes'],function(_0x1097c4){const _0x1bd64e=_0x172736,_0x504872={};return _0x504872[_0x1097c4]={[Op[_0x1bd64e(0x226)]]:'%'+_0x501083[_0x1bd64e(0x21f)]['filter']+'%'},_0x504872;})})),_0x49265b=_[_0x172736(0x242)]({},_0x49265b,_0x501083[_0x172736(0x1e3)]),_0x1f377b['getConfigurations'](_0x49265b);})[_0x2b9cbd(0x1ee)](function(_0x2a9ba3){const _0x497bf8=_0x2b9cbd;if(_0x2a9ba3)return _0x1c1063=_0x2a9ba3['length'],typeof _0x501083['query'][_0x497bf8(0x1fe)]===_0x497bf8(0x212)&&(_0x49265b[_0x497bf8(0x1f8)]=qs[_0x497bf8(0x1f8)](_0x501083[_0x497bf8(0x21f)][_0x497bf8(0x1f8)]),_0x49265b['offset']=qs[_0x497bf8(0x243)](_0x501083[_0x497bf8(0x21f)][_0x497bf8(0x243)])),_0x1f377b[_0x497bf8(0x215)](_0x49265b);})['then'](function(_0x408c6b){if(_0x408c6b)return _0x408c6b?{'count':_0x1c1063,'rows':_0x408c6b}:null;})[_0x2b9cbd(0x1ee)](respondWithResult(_0x19601a,null))['catch'](handleError(_0x19601a,null));},exports[a336_0xd8c7ec(0x20d)]=function(_0x3bc5ba,_0x305002){const _0x59bb24=a336_0xd8c7ec;return _0x3bc5ba[_0x59bb24(0x231)]['id']&&delete _0x3bc5ba['body']['id'],db[_0x59bb24(0x237)][_0x59bb24(0x1da)]({'where':{'id':_0x3bc5ba[_0x59bb24(0x219)]['id']}})[_0x59bb24(0x1ee)](handleEntityNotFound(_0x305002,null))['then'](function(_0x213d5a){const _0x5e1b45=_0x59bb24;if(_0x213d5a)return _0x3bc5ba[_0x5e1b45(0x231)]['AccountId']=_0x213d5a['id'],_0x3bc5ba[_0x5e1b45(0x231)]['Subjects']=integrations[_0x5e1b45(0x245)](_0x3bc5ba[_0x5e1b45(0x231)][_0x5e1b45(0x1de)],_0x3bc5ba[_0x5e1b45(0x231)][_0x5e1b45(0x217)]),_0x3bc5ba[_0x5e1b45(0x231)][_0x5e1b45(0x239)]=integrations['getDescriptions'](_0x3bc5ba['body'][_0x5e1b45(0x1de)],_0x3bc5ba[_0x5e1b45(0x231)][_0x5e1b45(0x217)]),db[_0x5e1b45(0x210)][_0x5e1b45(0x218)](_0x3bc5ba[_0x5e1b45(0x231)],{'include':[{'model':db[_0x5e1b45(0x233)],'as':_0x5e1b45(0x1fb)},{'model':db[_0x5e1b45(0x233)],'as':_0x5e1b45(0x239)}]});return null;})[_0x59bb24(0x1ee)](respondWithResult(_0x305002,null))[_0x59bb24(0x202)](handleError(_0x305002,null));},exports[a336_0xd8c7ec(0x200)]=function(_0x4cac2f,_0x384cea){const _0x3edf02=a336_0xd8c7ec;let _0x228f97,_0x193543='',_0x52bcb8=_0x3edf02(0x23c);return db[_0x3edf02(0x237)][_0x3edf02(0x1da)]({'where':{'id':_0x4cac2f[_0x3edf02(0x219)]['id']},'attributes':['id','remoteUri',_0x3edf02(0x23d),_0x3edf02(0x23e),'username',_0x3edf02(0x20f),_0x3edf02(0x203)]})['then'](handleEntityNotFound(_0x384cea,null))[_0x3edf02(0x1ee)](function(_0x1cf100){const _0x28b977=_0x3edf02;if(_0x1cf100){_0x193543=_0x1cf100[_0x28b977(0x248)];const _0x111d0e=_0x193543[_0x28b977(0x1ef)](-0x1);return _0x111d0e==='/'&&(_0x193543=_0x193543[_0x28b977(0x22d)](0x0,_0x193543[_0x28b977(0x22c)](_0x111d0e))),_0x228f97=new jsforce[(_0x28b977(0x206))]({'oauth2':{'loginUrl':_0x193543,'clientId':_0x1cf100[_0x28b977(0x23d)],'clientSecret':_0x1cf100['clientSecret']}}),_0x228f97[_0x28b977(0x1dc)](_0x1cf100[_0x28b977(0x1db)],_0x1cf100[_0x28b977(0x20f)][_0x28b977(0x225)](_0x1cf100[_0x28b977(0x203)]));}})[_0x3edf02(0x1ee)](function(_0x17a552){const _0xe23684=_0x3edf02;if(_0x17a552)return!_[_0xe23684(0x207)](_0x4cac2f[_0xe23684(0x21f)]['ticketType'])&&(_0x52bcb8=_0x4cac2f[_0xe23684(0x21f)][_0xe23684(0x1f3)]),_0x228f97[_0xe23684(0x20b)](_0x52bcb8)[_0xe23684(0x1ec)]();})[_0x3edf02(0x1ee)](function(_0x73047c){const _0xa29818=_0x3edf02;let _0x3ec70d=['CallDisposition',_0xa29818(0x204),_0xa29818(0x241),'CallType',_0xa29818(0x227),_0xa29818(0x211),'Status',_0xa29818(0x246)];!_['isNil'](_0x4cac2f['query'][_0xa29818(0x1f3)])&&_0x4cac2f[_0xa29818(0x21f)][_0xa29818(0x1f3)]===_0xa29818(0x1e0)&&(_0x3ec70d=[_0xa29818(0x246),_0xa29818(0x214),_0xa29818(0x238),_0xa29818(0x1fa),_0xa29818(0x211),_0xa29818(0x1df),_0xa29818(0x1f4),_0xa29818(0x22e)]);if(_0x73047c)return _[_0xa29818(0x22a)](_0x73047c['fields'],function(_0x4aecaf){const _0x39fb4a=_0xa29818;return _0x4aecaf[_0x39fb4a(0x230)]===![]&&!_0x3ec70d[_0x39fb4a(0x20e)](_0x4aecaf[_0x39fb4a(0x23b)]);}),{'count':_0x73047c[_0xa29818(0x1f9)][_0xa29818(0x216)],'rows':_[_0xa29818(0x232)](_0x73047c['fields'],function(_0x561d60){const _0xe0d4de=_0xa29818;return{'id':_0x561d60[_0xe0d4de(0x23b)],'name':_0x561d60[_0xe0d4de(0x1dd)],'custom':_0x561d60[_0xe0d4de(0x230)],'options':_0x561d60['picklistValues']['length']>0x0?_[_0xe0d4de(0x232)](_0x561d60['picklistValues'],function(_0x4ec357){const _0x1c825e=_0xe0d4de;return{'name':_0x4ec357['label'],'value':_0x4ec357[_0x1c825e(0x1f0)]};}):_0x561d60[_0xe0d4de(0x217)]==_0xe0d4de(0x229)?[{'name':_0xe0d4de(0x205),'value':_0xe0d4de(0x1e7)},{'name':_0xe0d4de(0x247),'value':_0xe0d4de(0x1e2)}]:[]};})};})[_0x3edf02(0x1ee)](respondWithResult(_0x384cea,null))['catch'](function(_0x1c5bd7){const _0x1e7b06=_0x3edf02;let _0x3d496e=_0x4cac2f[_0x1e7b06(0x21f)]['test']?0x1f4:_0x1c5bd7[_0x1e7b06(0x1e5)]||0x1f4;logger[_0x1e7b06(0x235)](_0x1e7b06(0x1ff),_0x1e7b06(0x200),_0x3d496e,JSON[_0x1e7b06(0x23f)](_0x1c5bd7)),delete _0x1c5bd7[_0x1e7b06(0x23b)],_0x3d496e===0x191&&(_0x3d496e=0x190),_0x384cea[_0x1e7b06(0x209)](_0x3d496e)[_0x1e7b06(0x21c)](_0x4cac2f[_0x1e7b06(0x21f)][_0x1e7b06(0x21d)]?{'message':_0x1e7b06(0x22f),'statusCode':_0x1c5bd7[_0x1e7b06(0x1e5)]}:_0x1c5bd7);});}; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.model.js b/server/api/intSalesforceAccount/intSalesforceAccount.model.js index 59140eb..6958e37 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.model.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.model.js @@ -1 +1 @@ -const a337_0x4f5e=['./intSalesforceAccount.attributes','SalesforceAccount','init','exports','function','./intSalesforceAccount.options'];(function(_0x416dca,_0x2cea43){const _0x4f5e44=function(_0xfd751a){while(--_0xfd751a){_0x416dca['push'](_0x416dca['shift']());}};_0x4f5e44(++_0x2cea43);}(a337_0x4f5e,0xbb));const a337_0xfd75=function(_0x416dca,_0x2cea43){_0x416dca=_0x416dca-0xc0;let _0x4f5e44=a337_0x4f5e[_0x416dca];return _0x4f5e44;};const a337_0x23cf49=a337_0xfd75;'use strict';const {Model}=require('sequelize'),{attributes}=require(a337_0x23cf49(0xc5)),{options}=require(a337_0x23cf49(0xc4));class SalesforceAccount extends Model{}function init(_0x2cbc79,_0x5aa57d){const _0x5d13f4=a337_0x23cf49,_0x3b996a=options(_0x2cbc79),_0x582d73=typeof _0x5aa57d===_0x5d13f4(0xc3)?_0x5aa57d(_0x3b996a):_0x3b996a;return SalesforceAccount[_0x5d13f4(0xc1)](attributes,_0x582d73),SalesforceAccount;}module['exports'][a337_0x23cf49(0xc0)]=SalesforceAccount,module[a337_0x23cf49(0xc2)][a337_0x23cf49(0xc1)]=init; \ No newline at end of file +const a337_0xf16b=['sequelize','exports','init','function','./intSalesforceAccount.attributes'];(function(_0x5fda74,_0x23eb9a){const _0xf16b28=function(_0xa8da11){while(--_0xa8da11){_0x5fda74['push'](_0x5fda74['shift']());}};_0xf16b28(++_0x23eb9a);}(a337_0xf16b,0x1e6));const a337_0xa8da=function(_0x5fda74,_0x23eb9a){_0x5fda74=_0x5fda74-0x10f;let _0xf16b28=a337_0xf16b[_0x5fda74];return _0xf16b28;};const a337_0x4123ee=a337_0xa8da;'use strict';const {Model}=require(a337_0x4123ee(0x113)),{attributes}=require(a337_0x4123ee(0x112)),{options}=require('./intSalesforceAccount.options');class SalesforceAccount extends Model{}function init(_0x592f60,_0xf5155f){const _0x2cc641=a337_0x4123ee,_0x8930ed=options(_0x592f60),_0x5985c2=typeof _0xf5155f===_0x2cc641(0x111)?_0xf5155f(_0x8930ed):_0x8930ed;return SalesforceAccount[_0x2cc641(0x110)](attributes,_0x5985c2),SalesforceAccount;}module[a337_0x4123ee(0x10f)]['SalesforceAccount']=SalesforceAccount,module['exports'][a337_0x4123ee(0x110)]=init; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.options.js b/server/api/intSalesforceAccount/intSalesforceAccount.options.js index f6c25cc..e46eb8a 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.options.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.options.js @@ -1 +1 @@ -var a338_0x3e90=['options','int_salesforce_accounts','exports'];(function(_0x475db6,_0x5547e2){var _0x3e90b4=function(_0x303c3e){while(--_0x303c3e){_0x475db6['push'](_0x475db6['shift']());}};_0x3e90b4(++_0x5547e2);}(a338_0x3e90,0xb2));var a338_0x303c=function(_0x475db6,_0x5547e2){_0x475db6=_0x475db6-0x8e;var _0x3e90b4=a338_0x3e90[_0x475db6];return _0x3e90b4;};var a338_0x5c8ee8=a338_0x303c;function options(_0x5a4f71){var _0x2980ef=a338_0x303c;return{'sequelize':_0x5a4f71,'tableName':_0x2980ef(0x8e),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a338_0x5c8ee8(0x8f)][a338_0x5c8ee8(0x90)]=options; \ No newline at end of file +var a338_0x360a=['exports','int_salesforce_accounts'];(function(_0x557e03,_0x542eed){var _0x360a6b=function(_0x53985a){while(--_0x53985a){_0x557e03['push'](_0x557e03['shift']());}};_0x360a6b(++_0x542eed);}(a338_0x360a,0x136));var a338_0x5398=function(_0x557e03,_0x542eed){_0x557e03=_0x557e03-0x127;var _0x360a6b=a338_0x360a[_0x557e03];return _0x360a6b;};var a338_0x15cdbd=a338_0x5398;function options(_0x4f6647){var _0x39ce5a=a338_0x5398;return{'sequelize':_0x4f6647,'tableName':_0x39ce5a(0x128),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a338_0x15cdbd(0x127)]['options']=options; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js b/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js index d23834d..0a70506 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js @@ -1 +1 @@ -const a339_0x3204=['raw','rpc','map','findOne','options','error','then','GetSalesforceAccount','message','include','where','catch','ShowSalesforceAccount','info','stringify','../../mysqldb','lodash','../../config/logger','debug','attributes','model'];(function(_0x21de90,_0xb58d6e){const _0x320470=function(_0x28b97a){while(--_0x28b97a){_0x21de90['push'](_0x21de90['shift']());}};_0x320470(++_0xb58d6e);}(a339_0x3204,0x18e));const a339_0x28b9=function(_0x21de90,_0xb58d6e){_0x21de90=_0x21de90-0x1de;let _0x320470=a339_0x3204[_0x21de90];return _0x320470;};const a339_0x24f94b=a339_0x28b9;'use strict';const _=require(a339_0x24f94b(0x1ef)),db=require(a339_0x24f94b(0x1ee))['db'],logger=require(a339_0x24f94b(0x1f0))(a339_0x24f94b(0x1e0));exports[a339_0x24f94b(0x1e6)]=function(_0x21f9d4){const _0xaffd8e=this;return new Promise(function(_0x20663c,_0x788fd7){const _0x292bdf=a339_0x28b9;return db['SalesforceAccount']['findAll']({'raw':_0x21f9d4[_0x292bdf(0x1e3)]?_0x21f9d4[_0x292bdf(0x1e3)][_0x292bdf(0x1df)]===undefined?!![]:![]:!![],'where':_0x21f9d4[_0x292bdf(0x1e3)]?_0x21f9d4[_0x292bdf(0x1e3)]['where']||null:null,'attributes':_0x21f9d4[_0x292bdf(0x1e3)]?_0x21f9d4[_0x292bdf(0x1e3)]['attributes']||null:null,'limit':_0x21f9d4[_0x292bdf(0x1e3)]?_0x21f9d4[_0x292bdf(0x1e3)]['limit']||null:null,'include':_0x21f9d4[_0x292bdf(0x1e3)]?_0x21f9d4['options'][_0x292bdf(0x1e8)]?_[_0x292bdf(0x1e1)](_0x21f9d4[_0x292bdf(0x1e3)]['include'],function(_0x1bf54a){const _0xdcb337=_0x292bdf;return{'model':db[_0x1bf54a[_0xdcb337(0x1de)]],'as':_0x1bf54a['as'],'attributes':_0x1bf54a['attributes'],'include':_0x1bf54a[_0xdcb337(0x1e8)]?_[_0xdcb337(0x1e1)](_0x1bf54a[_0xdcb337(0x1e8)],function(_0xfcd31f){const _0x367a04=_0xdcb337;return{'model':db[_0xfcd31f[_0x367a04(0x1de)]],'as':_0xfcd31f['as'],'attributes':_0xfcd31f[_0x367a04(0x1f2)],'include':_0xfcd31f['include']?_['map'](_0xfcd31f[_0x367a04(0x1e8)],function(_0x53338b){const _0x23d9da=_0x367a04;return{'model':db[_0x53338b[_0x23d9da(0x1de)]],'as':_0x53338b['as'],'attributes':_0x53338b[_0x23d9da(0x1f2)]};}):[]};}):[]};}):[]:[]})[_0x292bdf(0x1e5)](function(_0x1f4c82){const _0x2ca8ed=_0x292bdf;logger[_0x2ca8ed(0x1ec)](_0x2ca8ed(0x1e6),_0x21f9d4),logger[_0x2ca8ed(0x1f1)]('GetSalesforceAccount',_0x21f9d4,JSON[_0x2ca8ed(0x1ed)](_0x1f4c82)),_0x20663c(_0x1f4c82);})['catch'](function(_0x48ed5c){const _0x272e09=_0x292bdf;logger[_0x272e09(0x1e4)](_0x272e09(0x1e6),_0x48ed5c['message'],_0x21f9d4),_0x788fd7(_0xaffd8e[_0x272e09(0x1e4)](0x1f4,_0x48ed5c['message']));});});},exports['ShowSalesforceAccount']=function(_0x278bfe){const _0x5eafaf=this;return new Promise(function(_0x9cf040,_0x4bbf12){const _0x3ce3ce=a339_0x28b9;return db['SalesforceAccount'][_0x3ce3ce(0x1e2)]({'raw':_0x278bfe[_0x3ce3ce(0x1e3)]?_0x278bfe[_0x3ce3ce(0x1e3)][_0x3ce3ce(0x1df)]===undefined?!![]:![]:!![],'where':_0x278bfe['options']?_0x278bfe['options'][_0x3ce3ce(0x1e9)]||null:null,'attributes':_0x278bfe[_0x3ce3ce(0x1e3)]?_0x278bfe[_0x3ce3ce(0x1e3)][_0x3ce3ce(0x1f2)]||null:null,'include':_0x278bfe[_0x3ce3ce(0x1e3)]?_0x278bfe[_0x3ce3ce(0x1e3)][_0x3ce3ce(0x1e8)]?_[_0x3ce3ce(0x1e1)](_0x278bfe[_0x3ce3ce(0x1e3)]['include'],function(_0x9d0788){const _0x173cdf=_0x3ce3ce;return{'model':db[_0x9d0788[_0x173cdf(0x1de)]],'as':_0x9d0788['as'],'attributes':_0x9d0788[_0x173cdf(0x1f2)],'include':_0x9d0788[_0x173cdf(0x1e8)]?_[_0x173cdf(0x1e1)](_0x9d0788[_0x173cdf(0x1e8)],function(_0x21ca16){const _0x30c383=_0x173cdf;return{'model':db[_0x21ca16[_0x30c383(0x1de)]],'as':_0x21ca16['as'],'attributes':_0x21ca16[_0x30c383(0x1f2)],'include':_0x21ca16[_0x30c383(0x1e8)]?_[_0x30c383(0x1e1)](_0x21ca16[_0x30c383(0x1e8)],function(_0x178c21){const _0x4098eb=_0x30c383;return{'model':db[_0x178c21[_0x4098eb(0x1de)]],'as':_0x178c21['as'],'attributes':_0x178c21['attributes']};}):[]};}):[]};}):[]:[]})[_0x3ce3ce(0x1e5)](function(_0x151772){const _0x3049ec=_0x3ce3ce;logger[_0x3049ec(0x1ec)](_0x3049ec(0x1eb),_0x278bfe),logger[_0x3049ec(0x1f1)](_0x3049ec(0x1eb),_0x278bfe,JSON[_0x3049ec(0x1ed)](_0x151772)),_0x9cf040(_0x151772);})[_0x3ce3ce(0x1ea)](function(_0x2bab8e){const _0x1405ad=_0x3ce3ce;logger[_0x1405ad(0x1e4)](_0x1405ad(0x1eb),_0x2bab8e[_0x1405ad(0x1e7)],_0x278bfe),_0x4bbf12(_0x5eafaf[_0x1405ad(0x1e4)](0x1f4,_0x2bab8e['message']));});});}; \ No newline at end of file +const a339_0x536a=['limit','stringify','raw','catch','SalesforceAccount','message','map','GetSalesforceAccount','model','include','attributes','options','info','findAll','error','findOne','then','ShowSalesforceAccount','lodash','where'];(function(_0x2ecf75,_0x5de6b8){const _0x536afe=function(_0x1fa047){while(--_0x1fa047){_0x2ecf75['push'](_0x2ecf75['shift']());}};_0x536afe(++_0x5de6b8);}(a339_0x536a,0x1b7));const a339_0x1fa0=function(_0x2ecf75,_0x5de6b8){_0x2ecf75=_0x2ecf75-0x158;let _0x536afe=a339_0x536a[_0x2ecf75];return _0x536afe;};const a339_0x4f2e86=a339_0x1fa0;'use strict';const _=require(a339_0x4f2e86(0x16b)),db=require('../../mysqldb')['db'],logger=require('../../config/logger')('rpc');exports[a339_0x4f2e86(0x160)]=function(_0x3b340c){const _0x968efb=this;return new Promise(function(_0x30dfb1,_0x44e282){const _0x25c39b=a339_0x1fa0;return db[_0x25c39b(0x15d)][_0x25c39b(0x166)]({'raw':_0x3b340c[_0x25c39b(0x164)]?_0x3b340c[_0x25c39b(0x164)]['raw']===undefined?!![]:![]:!![],'where':_0x3b340c['options']?_0x3b340c[_0x25c39b(0x164)][_0x25c39b(0x158)]||null:null,'attributes':_0x3b340c[_0x25c39b(0x164)]?_0x3b340c[_0x25c39b(0x164)][_0x25c39b(0x163)]||null:null,'limit':_0x3b340c['options']?_0x3b340c[_0x25c39b(0x164)][_0x25c39b(0x159)]||null:null,'include':_0x3b340c[_0x25c39b(0x164)]?_0x3b340c[_0x25c39b(0x164)][_0x25c39b(0x162)]?_[_0x25c39b(0x15f)](_0x3b340c[_0x25c39b(0x164)][_0x25c39b(0x162)],function(_0x783c3f){const _0x269822=_0x25c39b;return{'model':db[_0x783c3f[_0x269822(0x161)]],'as':_0x783c3f['as'],'attributes':_0x783c3f[_0x269822(0x163)],'include':_0x783c3f[_0x269822(0x162)]?_[_0x269822(0x15f)](_0x783c3f[_0x269822(0x162)],function(_0x2e4040){const _0x1d2dc8=_0x269822;return{'model':db[_0x2e4040['model']],'as':_0x2e4040['as'],'attributes':_0x2e4040[_0x1d2dc8(0x163)],'include':_0x2e4040[_0x1d2dc8(0x162)]?_[_0x1d2dc8(0x15f)](_0x2e4040['include'],function(_0x27e255){const _0x17bb02=_0x1d2dc8;return{'model':db[_0x27e255[_0x17bb02(0x161)]],'as':_0x27e255['as'],'attributes':_0x27e255['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x51f76c){const _0x595c2d=_0x25c39b;logger[_0x595c2d(0x165)](_0x595c2d(0x160),_0x3b340c),logger['debug'](_0x595c2d(0x160),_0x3b340c,JSON['stringify'](_0x51f76c)),_0x30dfb1(_0x51f76c);})[_0x25c39b(0x15c)](function(_0x30e6f4){const _0x1e5b02=_0x25c39b;logger[_0x1e5b02(0x167)](_0x1e5b02(0x160),_0x30e6f4[_0x1e5b02(0x15e)],_0x3b340c),_0x44e282(_0x968efb[_0x1e5b02(0x167)](0x1f4,_0x30e6f4[_0x1e5b02(0x15e)]));});});},exports['ShowSalesforceAccount']=function(_0x14882e){const _0x4f657c=this;return new Promise(function(_0x4bdb59,_0x44ef91){const _0x3760fa=a339_0x1fa0;return db[_0x3760fa(0x15d)][_0x3760fa(0x168)]({'raw':_0x14882e[_0x3760fa(0x164)]?_0x14882e[_0x3760fa(0x164)][_0x3760fa(0x15b)]===undefined?!![]:![]:!![],'where':_0x14882e[_0x3760fa(0x164)]?_0x14882e[_0x3760fa(0x164)][_0x3760fa(0x158)]||null:null,'attributes':_0x14882e[_0x3760fa(0x164)]?_0x14882e[_0x3760fa(0x164)]['attributes']||null:null,'include':_0x14882e[_0x3760fa(0x164)]?_0x14882e[_0x3760fa(0x164)][_0x3760fa(0x162)]?_[_0x3760fa(0x15f)](_0x14882e[_0x3760fa(0x164)][_0x3760fa(0x162)],function(_0x356ed9){const _0x42aee8=_0x3760fa;return{'model':db[_0x356ed9[_0x42aee8(0x161)]],'as':_0x356ed9['as'],'attributes':_0x356ed9[_0x42aee8(0x163)],'include':_0x356ed9[_0x42aee8(0x162)]?_[_0x42aee8(0x15f)](_0x356ed9[_0x42aee8(0x162)],function(_0x197579){const _0x2aa0d9=_0x42aee8;return{'model':db[_0x197579[_0x2aa0d9(0x161)]],'as':_0x197579['as'],'attributes':_0x197579[_0x2aa0d9(0x163)],'include':_0x197579[_0x2aa0d9(0x162)]?_['map'](_0x197579['include'],function(_0x12da9d){const _0x37d753=_0x2aa0d9;return{'model':db[_0x12da9d[_0x37d753(0x161)]],'as':_0x12da9d['as'],'attributes':_0x12da9d[_0x37d753(0x163)]};}):[]};}):[]};}):[]:[]})[_0x3760fa(0x169)](function(_0x1ba0fe){const _0x56c32f=_0x3760fa;logger['info']('ShowSalesforceAccount',_0x14882e),logger['debug'](_0x56c32f(0x16a),_0x14882e,JSON[_0x56c32f(0x15a)](_0x1ba0fe)),_0x4bdb59(_0x1ba0fe);})['catch'](function(_0x2737e6){const _0x4d2651=_0x3760fa;logger[_0x4d2651(0x167)](_0x4d2651(0x16a),_0x2737e6[_0x4d2651(0x15e)],_0x14882e),_0x44ef91(_0x4f657c[_0x4d2651(0x167)](0x1f4,_0x2737e6[_0x4d2651(0x15e)]));});});}; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/index.js b/server/api/intSalesforceConfiguration/index.js index 12ab07a..53a6f3b 100644 --- a/server/api/intSalesforceConfiguration/index.js +++ b/server/api/intSalesforceConfiguration/index.js @@ -1 +1 @@ -const a340_0x549f=['exports','getDescriptions','isAuthenticated','get','update','Router','/:id/descriptions','create','destroy','./intSalesforceConfiguration.controller','getFields','../../components/auth/service','index','/:id','show','/:id/fields','express','put','delete','/:id/subjects','getSubjects'];(function(_0x257c10,_0x3d011e){const _0x549fe5=function(_0x381d11){while(--_0x381d11){_0x257c10['push'](_0x257c10['shift']());}};_0x549fe5(++_0x3d011e);}(a340_0x549f,0x1d4));const a340_0x381d=function(_0x257c10,_0x3d011e){_0x257c10=_0x257c10-0x160;let _0x549fe5=a340_0x549f[_0x257c10];return _0x549fe5;};const a340_0x281b6d=a340_0x381d;'use strict';const express=require(a340_0x281b6d(0x16a)),router=express[a340_0x281b6d(0x174)](),auth=require(a340_0x281b6d(0x165)),controller=require(a340_0x281b6d(0x163));router[a340_0x281b6d(0x172)]('/',auth[a340_0x281b6d(0x171)](),controller[a340_0x281b6d(0x166)]),router['get'](a340_0x281b6d(0x167),auth[a340_0x281b6d(0x171)](),controller[a340_0x281b6d(0x168)]),router['get'](a340_0x281b6d(0x169),auth['isAuthenticated'](),controller[a340_0x281b6d(0x164)]),router[a340_0x281b6d(0x172)](a340_0x281b6d(0x16d),auth[a340_0x281b6d(0x171)](),controller[a340_0x281b6d(0x16e)]),router[a340_0x281b6d(0x172)](a340_0x281b6d(0x160),auth['isAuthenticated'](),controller[a340_0x281b6d(0x170)]),router['post']('/',auth[a340_0x281b6d(0x171)](),controller[a340_0x281b6d(0x161)]),router[a340_0x281b6d(0x16b)](a340_0x281b6d(0x167),auth['isAuthenticated'](),controller[a340_0x281b6d(0x173)]),router[a340_0x281b6d(0x16c)](a340_0x281b6d(0x167),auth[a340_0x281b6d(0x171)](),controller[a340_0x281b6d(0x162)]),module[a340_0x281b6d(0x16f)]=router; \ No newline at end of file +const a340_0x2959=['put','Router','../../components/auth/service','/:id/subjects','express','/:id/descriptions','show','delete','/:id','getSubjects','getDescriptions','get','update','post','/:id/fields','destroy','exports','isAuthenticated'];(function(_0x4442bb,_0xc1e265){const _0x2959f6=function(_0x1fe47f){while(--_0x1fe47f){_0x4442bb['push'](_0x4442bb['shift']());}};_0x2959f6(++_0xc1e265);}(a340_0x2959,0x1bd));const a340_0x1fe4=function(_0x4442bb,_0xc1e265){_0x4442bb=_0x4442bb-0x83;let _0x2959f6=a340_0x2959[_0x4442bb];return _0x2959f6;};const a340_0x69010e=a340_0x1fe4;'use strict';const express=require(a340_0x69010e(0x8c)),router=express[a340_0x69010e(0x89)](),auth=require(a340_0x69010e(0x8a)),controller=require('./intSalesforceConfiguration.controller');router[a340_0x69010e(0x93)]('/',auth[a340_0x69010e(0x87)](),controller['index']),router['get'](a340_0x69010e(0x90),auth[a340_0x69010e(0x87)](),controller[a340_0x69010e(0x8e)]),router[a340_0x69010e(0x93)](a340_0x69010e(0x84),auth['isAuthenticated'](),controller['getFields']),router['get'](a340_0x69010e(0x8b),auth[a340_0x69010e(0x87)](),controller[a340_0x69010e(0x91)]),router[a340_0x69010e(0x93)](a340_0x69010e(0x8d),auth['isAuthenticated'](),controller[a340_0x69010e(0x92)]),router[a340_0x69010e(0x83)]('/',auth[a340_0x69010e(0x87)](),controller['create']),router[a340_0x69010e(0x88)](a340_0x69010e(0x90),auth['isAuthenticated'](),controller[a340_0x69010e(0x94)]),router[a340_0x69010e(0x8f)]('/:id',auth['isAuthenticated'](),controller[a340_0x69010e(0x85)]),module[a340_0x69010e(0x86)]=router; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js index cfad046..4e19564 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js @@ -1 +1 @@ -const a341_0x1db2=['attributes','nothing','ENUM','Case','sequelize','Task','contact','exports','STRING','lead'];(function(_0x464a3f,_0xd2ae06){const _0x1db225=function(_0x382a6e){while(--_0x382a6e){_0x464a3f['push'](_0x464a3f['shift']());}};_0x1db225(++_0xd2ae06);}(a341_0x1db2,0x88));const a341_0x382a=function(_0x464a3f,_0xd2ae06){_0x464a3f=_0x464a3f-0x115;let _0x1db225=a341_0x1db2[_0x464a3f];return _0x1db225;};const a341_0x53b71e=a341_0x382a;'use strict';const {DataTypes}=require(a341_0x53b71e(0x11d)),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a341_0x53b71e(0x117)]},'ticketType':{'type':DataTypes[a341_0x53b71e(0x11b)](a341_0x53b71e(0x11e),a341_0x53b71e(0x11c)),'defaultValue':'Task'},'moduleSearch':{'type':DataTypes[a341_0x53b71e(0x11b)]('contact_lead','contact','lead'),'defaultValue':'contact_lead'},'moduleCreate':{'type':DataTypes[a341_0x53b71e(0x11b)](a341_0x53b71e(0x11a),a341_0x53b71e(0x115),a341_0x53b71e(0x118)),'defaultValue':a341_0x53b71e(0x118)}};module[a341_0x53b71e(0x116)][a341_0x53b71e(0x119)]=attributes; \ No newline at end of file +const a341_0x32a8=['contact_lead','lead','contact','STRING','nothing','ENUM','Task','attributes'];(function(_0x201d5a,_0x247619){const _0x32a8f5=function(_0x5ac8bd){while(--_0x5ac8bd){_0x201d5a['push'](_0x201d5a['shift']());}};_0x32a8f5(++_0x247619);}(a341_0x32a8,0xb0));const a341_0x5ac8=function(_0x201d5a,_0x247619){_0x201d5a=_0x201d5a-0x17d;let _0x32a8f5=a341_0x32a8[_0x201d5a];return _0x32a8f5;};const a341_0x451bf7=a341_0x5ac8;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a341_0x451bf7(0x180)]},'description':{'type':DataTypes[a341_0x451bf7(0x180)]},'ticketType':{'type':DataTypes[a341_0x451bf7(0x182)](a341_0x451bf7(0x183),'Case'),'defaultValue':a341_0x451bf7(0x183)},'moduleSearch':{'type':DataTypes[a341_0x451bf7(0x182)]('contact_lead',a341_0x451bf7(0x17f),'lead'),'defaultValue':a341_0x451bf7(0x17d)},'moduleCreate':{'type':DataTypes['ENUM'](a341_0x451bf7(0x181),a341_0x451bf7(0x17f),a341_0x451bf7(0x17e)),'defaultValue':a341_0x451bf7(0x17e)}};module['exports'][a341_0x451bf7(0x184)]=attributes; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js index afe4ed5..41314c0 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js @@ -1 +1 @@ -const a342_0x55c9=['show','type','lodash','filter','SalesforceConfiguration','SalesforceField','offset','limit','VIRTUAL','order','include','getSubjects','pick','keys','params','findOne','sort','stack','name','destroy','create','catch','options','../../mysqldb','end','../../components/parsers/qs','intersection','map','query','length','model','body','sequelize','index','then','filters','includeAll','status','fieldName','error','rows','where','json','set','undefined','merge','getDescriptions','attributes','count','like','sendStatus','nolimit','getFields','rawAttributes','fields','key','../../config/logger'];(function(_0x302cfd,_0x271e36){const _0x55c980=function(_0x283fae){while(--_0x283fae){_0x302cfd['push'](_0x302cfd['shift']());}};_0x55c980(++_0x271e36);}(a342_0x55c9,0xe9));const a342_0x283f=function(_0x302cfd,_0x271e36){_0x302cfd=_0x302cfd-0x138;let _0x55c980=a342_0x55c9[_0x302cfd];return _0x55c980;};const a342_0x397445=a342_0x283f;'use strict';const _=require(a342_0x397445(0x16e)),qs=require(a342_0x397445(0x14c)),logger=require(a342_0x397445(0x16b))('api'),{db}=require(a342_0x397445(0x14a)),{Op}=require(a342_0x397445(0x153));function respondWithResult(_0x52676c,_0x4550c5){return _0x4550c5=_0x4550c5||0xc8,function(_0x521a8f){const _0x3eef36=a342_0x283f;if(_0x521a8f)return _0x52676c[_0x3eef36(0x158)](_0x4550c5)[_0x3eef36(0x15d)](_0x521a8f);};}function respondWithFilteredResult(_0x27af01,_0x4765d1){return function(_0x193b92){const _0x37d1cd=a342_0x283f;if(_0x193b92){const _0x4c6b07=_0x193b92[_0x37d1cd(0x163)],_0x41046b=_0x4765d1[_0x37d1cd(0x139)];let _0x3216ce=_0x4765d1['offset']+_0x4765d1['limit'],_0x410a6f;return _0x3216ce>=_0x4c6b07?(_0x3216ce=_0x4c6b07,_0x410a6f=0xc8):_0x410a6f=0xce,_0x27af01[_0x37d1cd(0x158)](_0x410a6f),_0x27af01[_0x37d1cd(0x15e)]('Content-Range',_0x41046b+'-'+_0x3216ce+'/'+_0x4c6b07)[_0x37d1cd(0x15d)](_0x193b92);}return null;};}function saveUpdates(_0x1173e4){return function(_0x1bf7b7){const _0x15b413=a342_0x283f;if(_0x1bf7b7)return _0x1bf7b7['update'](_0x1173e4)[_0x15b413(0x155)](function(_0x23fccf){return _0x23fccf;});return null;};}function removeEntity(_0xa46758){return function(_0x2623c6){const _0x2c86fa=a342_0x283f;if(_0x2623c6)return _0x2623c6[_0x2c86fa(0x146)]()[_0x2c86fa(0x155)](function(){const _0x43a9ed=_0x2c86fa;_0xa46758[_0x43a9ed(0x158)](0xcc)[_0x43a9ed(0x14b)]();});};}function handleEntityNotFound(_0x1ba77f){return function(_0x53990d){const _0x3dac3e=a342_0x283f;return!_0x53990d&&_0x1ba77f[_0x3dac3e(0x165)](0x194),_0x53990d;};}function handleError(_0xfa3bf7,_0x25345c){return _0x25345c=_0x25345c||0x1f4,function(_0x40639b){const _0x151564=a342_0x283f;logger[_0x151564(0x15a)](_0x40639b[_0x151564(0x144)]),_0x40639b[_0x151564(0x145)]&&delete _0x40639b[_0x151564(0x145)],_0xfa3bf7[_0x151564(0x158)](_0x25345c)['send'](_0x40639b);};}exports[a342_0x397445(0x154)]=function(_0xadfad9,_0x1154f4){const _0x4f97bb=a342_0x397445;let _0x2aaa97={};const _0xd65b93={},_0x1f6eae={'count':0x0,'rows':[]},_0x507fe8=_[_0x4f97bb(0x14e)](db['SalesforceConfiguration'][_0x4f97bb(0x168)],function(_0x58b84b){const _0x2117c3=_0x4f97bb;return{'name':_0x58b84b[_0x2117c3(0x159)],'type':_0x58b84b[_0x2117c3(0x16d)][_0x2117c3(0x16a)]};});_0xd65b93[_0x4f97bb(0x151)]=_[_0x4f97bb(0x14e)](_0x507fe8,_0x4f97bb(0x145)),_0xd65b93[_0x4f97bb(0x14f)]=_['keys'](_0xadfad9[_0x4f97bb(0x14f)]),_0xd65b93[_0x4f97bb(0x156)]=_[_0x4f97bb(0x14d)](_0xd65b93['model'],_0xd65b93['query']),_0x2aaa97[_0x4f97bb(0x162)]=_[_0x4f97bb(0x14d)](_0xd65b93[_0x4f97bb(0x151)],qs[_0x4f97bb(0x169)](_0xadfad9[_0x4f97bb(0x14f)][_0x4f97bb(0x169)])),_0x2aaa97[_0x4f97bb(0x162)]=_0x2aaa97[_0x4f97bb(0x162)][_0x4f97bb(0x150)]?_0x2aaa97[_0x4f97bb(0x162)]:_0xd65b93[_0x4f97bb(0x151)];typeof _0xadfad9[_0x4f97bb(0x14f)][_0x4f97bb(0x166)]===_0x4f97bb(0x15f)&&(_0x2aaa97[_0x4f97bb(0x13a)]=qs[_0x4f97bb(0x13a)](_0xadfad9[_0x4f97bb(0x14f)][_0x4f97bb(0x13a)]),_0x2aaa97[_0x4f97bb(0x139)]=qs['offset'](_0xadfad9[_0x4f97bb(0x14f)][_0x4f97bb(0x139)]));_0x2aaa97['order']=qs[_0x4f97bb(0x143)](_0xadfad9['query']['sort']),_0x2aaa97[_0x4f97bb(0x15c)]=qs[_0x4f97bb(0x156)](_[_0x4f97bb(0x13f)](_0xadfad9[_0x4f97bb(0x14f)],_0xd65b93['filters']),_0x507fe8);_0xadfad9[_0x4f97bb(0x14f)][_0x4f97bb(0x16f)]&&(_0x2aaa97[_0x4f97bb(0x15c)]=_[_0x4f97bb(0x160)](_0x2aaa97['where'],{[Op['or']]:_[_0x4f97bb(0x14e)](_0x507fe8,function(_0x4e3f27){const _0x581a1a=_0x4f97bb;if(_0x4e3f27['type']!==_0x581a1a(0x13b)){const _0x33307a={};return _0x33307a[_0x4e3f27['name']]={[Op[_0x581a1a(0x164)]]:'%'+_0xadfad9['query']['filter']+'%'},_0x33307a;}})}));_0x2aaa97=_[_0x4f97bb(0x160)]({},_0x2aaa97,_0xadfad9[_0x4f97bb(0x149)]);const _0x4389e6={'where':_0x2aaa97[_0x4f97bb(0x15c)]};return db[_0x4f97bb(0x170)][_0x4f97bb(0x163)](_0x4389e6)[_0x4f97bb(0x155)](function(_0x3b0a20){const _0x18a192=_0x4f97bb;return _0x1f6eae[_0x18a192(0x163)]=_0x3b0a20,_0xadfad9[_0x18a192(0x14f)][_0x18a192(0x157)]&&(_0x2aaa97['include']=[{'all':!![]}]),db[_0x18a192(0x170)]['findAll'](_0x2aaa97);})[_0x4f97bb(0x155)](function(_0x4da4b8){const _0x15db9f=_0x4f97bb;return _0x1f6eae[_0x15db9f(0x15b)]=_0x4da4b8,_0x1f6eae;})[_0x4f97bb(0x155)](respondWithFilteredResult(_0x1154f4,_0x2aaa97))['catch'](handleError(_0x1154f4,null));},exports[a342_0x397445(0x16c)]=function(_0x3a1985,_0x7f1c57){const _0x3ed0d8=a342_0x397445;let _0xabbbde={'raw':![],'where':{'id':_0x3a1985['params']['id']}};const _0x17442f={};return _0x17442f[_0x3ed0d8(0x151)]=_[_0x3ed0d8(0x140)](db[_0x3ed0d8(0x170)][_0x3ed0d8(0x168)]),_0x17442f['query']=_[_0x3ed0d8(0x140)](_0x3a1985[_0x3ed0d8(0x14f)]),_0x17442f[_0x3ed0d8(0x156)]=_[_0x3ed0d8(0x14d)](_0x17442f[_0x3ed0d8(0x151)],_0x17442f[_0x3ed0d8(0x14f)]),_0xabbbde[_0x3ed0d8(0x162)]=_[_0x3ed0d8(0x14d)](_0x17442f[_0x3ed0d8(0x151)],qs[_0x3ed0d8(0x169)](_0x3a1985[_0x3ed0d8(0x14f)][_0x3ed0d8(0x169)])),_0xabbbde['attributes']=_0xabbbde[_0x3ed0d8(0x162)][_0x3ed0d8(0x150)]?_0xabbbde[_0x3ed0d8(0x162)]:_0x17442f['model'],_0x3a1985[_0x3ed0d8(0x14f)][_0x3ed0d8(0x157)]&&(_0xabbbde[_0x3ed0d8(0x13d)]=[{'all':!![]}]),_0xabbbde=_[_0x3ed0d8(0x160)]({},_0xabbbde,_0x3a1985[_0x3ed0d8(0x149)]),db['SalesforceConfiguration'][_0x3ed0d8(0x142)](_0xabbbde)[_0x3ed0d8(0x155)](handleEntityNotFound(_0x7f1c57,null))[_0x3ed0d8(0x155)](respondWithResult(_0x7f1c57,null))[_0x3ed0d8(0x148)](handleError(_0x7f1c57,null));},exports[a342_0x397445(0x147)]=function(_0x2a5221,_0x30ab93){const _0x55c422=a342_0x397445;return db[_0x55c422(0x170)][_0x55c422(0x147)](_0x2a5221[_0x55c422(0x152)],{})[_0x55c422(0x155)](respondWithResult(_0x30ab93,0xc9))[_0x55c422(0x148)](handleError(_0x30ab93,null));},exports['update']=function(_0x371f2c,_0x415aaa){const _0x298380=a342_0x397445;return _0x371f2c[_0x298380(0x152)]['id']&&delete _0x371f2c[_0x298380(0x152)]['id'],db[_0x298380(0x170)][_0x298380(0x142)]({'where':{'id':_0x371f2c['params']['id']}})[_0x298380(0x155)](handleEntityNotFound(_0x415aaa,null))[_0x298380(0x155)](saveUpdates(_0x371f2c[_0x298380(0x152)],null))[_0x298380(0x155)](respondWithResult(_0x415aaa,null))[_0x298380(0x148)](handleError(_0x415aaa,null));},exports[a342_0x397445(0x146)]=function(_0x53ef7c,_0xc4a82e){const _0x3fba44=a342_0x397445;return db[_0x3fba44(0x170)][_0x3fba44(0x142)]({'where':{'id':_0x53ef7c['params']['id']}})['then'](handleEntityNotFound(_0xc4a82e,null))[_0x3fba44(0x155)](removeEntity(_0xc4a82e,null))['catch'](handleError(_0xc4a82e,null));},exports[a342_0x397445(0x167)]=function(_0x3646c7,_0x372720){const _0x3d0e73=a342_0x397445;let _0xf49687={};const _0x2c1f87={};let _0x33e652,_0x2d1e2d;return db['SalesforceConfiguration'][_0x3d0e73(0x142)]({'where':{'id':_0x3646c7[_0x3d0e73(0x141)]['id']}})[_0x3d0e73(0x155)](handleEntityNotFound(_0x372720,null))[_0x3d0e73(0x155)](function(_0x3ea881){const _0x54930f=_0x3d0e73;if(_0x3ea881)return _0x33e652=_0x3ea881,_0x2c1f87['model']=_['keys'](db[_0x54930f(0x138)][_0x54930f(0x168)]),_0x2c1f87[_0x54930f(0x14f)]=_['keys'](_0x3646c7[_0x54930f(0x14f)]),_0x2c1f87[_0x54930f(0x156)]=_[_0x54930f(0x14d)](_0x2c1f87[_0x54930f(0x151)],_0x2c1f87[_0x54930f(0x14f)]),_0xf49687['attributes']=_[_0x54930f(0x14d)](_0x2c1f87['model'],qs[_0x54930f(0x169)](_0x3646c7['query'][_0x54930f(0x169)])),_0xf49687[_0x54930f(0x162)]=_0xf49687[_0x54930f(0x162)][_0x54930f(0x150)]?_0xf49687[_0x54930f(0x162)]:_0x2c1f87[_0x54930f(0x151)],_0xf49687[_0x54930f(0x13c)]=qs['sort'](_0x3646c7[_0x54930f(0x14f)][_0x54930f(0x143)]),_0xf49687['where']=qs[_0x54930f(0x156)](_[_0x54930f(0x13f)](_0x3646c7['query'],_0x2c1f87[_0x54930f(0x156)])),_0x3646c7[_0x54930f(0x14f)][_0x54930f(0x16f)]&&(_0xf49687[_0x54930f(0x15c)]=_[_0x54930f(0x160)](_0xf49687[_0x54930f(0x15c)],{[Op['or']]:_[_0x54930f(0x14e)](_0xf49687[_0x54930f(0x162)],function(_0x5f321a){const _0x377be2=_0x54930f,_0x543011={};return _0x543011[_0x5f321a]={[Op['like']]:'%'+_0x3646c7[_0x377be2(0x14f)][_0x377be2(0x16f)]+'%'},_0x543011;})})),_0xf49687=_['merge']({},_0xf49687,_0x3646c7[_0x54930f(0x149)]),_0x33e652['getFields'](_0xf49687);})[_0x3d0e73(0x155)](function(_0x2cadcc){const _0x185310=_0x3d0e73;if(_0x2cadcc)return _0x2d1e2d=_0x2cadcc[_0x185310(0x150)],typeof _0x3646c7[_0x185310(0x14f)][_0x185310(0x166)]===_0x185310(0x15f)&&(_0xf49687['limit']=qs[_0x185310(0x13a)](_0x3646c7['query'][_0x185310(0x13a)]),_0xf49687[_0x185310(0x139)]=qs[_0x185310(0x139)](_0x3646c7['query'][_0x185310(0x139)])),_0x33e652[_0x185310(0x167)](_0xf49687);})[_0x3d0e73(0x155)](function(_0x4f8c16){if(_0x4f8c16)return _0x4f8c16?{'count':_0x2d1e2d,'rows':_0x4f8c16}:null;})[_0x3d0e73(0x155)](respondWithResult(_0x372720,null))[_0x3d0e73(0x148)](handleError(_0x372720,null));},exports[a342_0x397445(0x13e)]=function(_0x3b35e7,_0xbc51d0){const _0x2eed08=a342_0x397445;let _0x5315fd={};const _0x26a69b={};let _0x130072,_0x36bfff;return db[_0x2eed08(0x170)]['findOne']({'where':{'id':_0x3b35e7[_0x2eed08(0x141)]['id']}})[_0x2eed08(0x155)](handleEntityNotFound(_0xbc51d0,null))[_0x2eed08(0x155)](function(_0x60c6c2){const _0x11700e=_0x2eed08;if(_0x60c6c2)return _0x130072=_0x60c6c2,_0x26a69b[_0x11700e(0x151)]=_[_0x11700e(0x140)](db[_0x11700e(0x138)][_0x11700e(0x168)]),_0x26a69b[_0x11700e(0x14f)]=_[_0x11700e(0x140)](_0x3b35e7[_0x11700e(0x14f)]),_0x26a69b['filters']=_[_0x11700e(0x14d)](_0x26a69b[_0x11700e(0x151)],_0x26a69b[_0x11700e(0x14f)]),_0x5315fd[_0x11700e(0x162)]=_['intersection'](_0x26a69b['model'],qs['fields'](_0x3b35e7['query'][_0x11700e(0x169)])),_0x5315fd[_0x11700e(0x162)]=_0x5315fd[_0x11700e(0x162)]['length']?_0x5315fd['attributes']:_0x26a69b['model'],_0x5315fd['order']=qs[_0x11700e(0x143)](_0x3b35e7[_0x11700e(0x14f)][_0x11700e(0x143)]),_0x5315fd[_0x11700e(0x15c)]=qs[_0x11700e(0x156)](_[_0x11700e(0x13f)](_0x3b35e7[_0x11700e(0x14f)],_0x26a69b[_0x11700e(0x156)])),_0x3b35e7['query']['filter']&&(_0x5315fd[_0x11700e(0x15c)]=_[_0x11700e(0x160)](_0x5315fd[_0x11700e(0x15c)],{[Op['or']]:_['map'](_0x5315fd[_0x11700e(0x162)],function(_0x2f4b15){const _0x44a447=_0x11700e,_0x4dcaf4={};return _0x4dcaf4[_0x2f4b15]={[Op[_0x44a447(0x164)]]:'%'+_0x3b35e7[_0x44a447(0x14f)][_0x44a447(0x16f)]+'%'},_0x4dcaf4;})})),_0x5315fd=_[_0x11700e(0x160)]({},_0x5315fd,_0x3b35e7[_0x11700e(0x149)]),_0x130072[_0x11700e(0x13e)](_0x5315fd);})[_0x2eed08(0x155)](function(_0x21d721){const _0x117003=_0x2eed08;if(_0x21d721)return _0x36bfff=_0x21d721['length'],typeof _0x3b35e7[_0x117003(0x14f)][_0x117003(0x166)]===_0x117003(0x15f)&&(_0x5315fd[_0x117003(0x13a)]=qs['limit'](_0x3b35e7[_0x117003(0x14f)]['limit']),_0x5315fd[_0x117003(0x139)]=qs[_0x117003(0x139)](_0x3b35e7[_0x117003(0x14f)][_0x117003(0x139)])),_0x130072[_0x117003(0x13e)](_0x5315fd);})[_0x2eed08(0x155)](function(_0x152bd0){if(_0x152bd0)return _0x152bd0?{'count':_0x36bfff,'rows':_0x152bd0}:null;})[_0x2eed08(0x155)](respondWithResult(_0xbc51d0,null))[_0x2eed08(0x148)](handleError(_0xbc51d0,null));},exports[a342_0x397445(0x161)]=function(_0x1f7ff1,_0x5ef3a8){const _0x1073fc=a342_0x397445;let _0x323c58={};const _0x160573={};let _0xe21f35,_0x20b37f;return db['SalesforceConfiguration'][_0x1073fc(0x142)]({'where':{'id':_0x1f7ff1[_0x1073fc(0x141)]['id']}})[_0x1073fc(0x155)](handleEntityNotFound(_0x5ef3a8,null))['then'](function(_0x85ac9d){const _0x6e020f=_0x1073fc;if(_0x85ac9d)return _0xe21f35=_0x85ac9d,_0x160573['model']=_[_0x6e020f(0x140)](db[_0x6e020f(0x138)]['rawAttributes']),_0x160573[_0x6e020f(0x14f)]=_[_0x6e020f(0x140)](_0x1f7ff1[_0x6e020f(0x14f)]),_0x160573[_0x6e020f(0x156)]=_['intersection'](_0x160573['model'],_0x160573[_0x6e020f(0x14f)]),_0x323c58['attributes']=_[_0x6e020f(0x14d)](_0x160573[_0x6e020f(0x151)],qs[_0x6e020f(0x169)](_0x1f7ff1[_0x6e020f(0x14f)]['fields'])),_0x323c58[_0x6e020f(0x162)]=_0x323c58[_0x6e020f(0x162)][_0x6e020f(0x150)]?_0x323c58[_0x6e020f(0x162)]:_0x160573['model'],_0x323c58['order']=qs['sort'](_0x1f7ff1[_0x6e020f(0x14f)][_0x6e020f(0x143)]),_0x323c58['where']=qs[_0x6e020f(0x156)](_[_0x6e020f(0x13f)](_0x1f7ff1['query'],_0x160573['filters'])),_0x1f7ff1[_0x6e020f(0x14f)]['filter']&&(_0x323c58[_0x6e020f(0x15c)]=_[_0x6e020f(0x160)](_0x323c58[_0x6e020f(0x15c)],{[Op['or']]:_[_0x6e020f(0x14e)](_0x323c58['attributes'],function(_0x19d698){const _0x3b41ca=_0x6e020f,_0x400373={};return _0x400373[_0x19d698]={[Op[_0x3b41ca(0x164)]]:'%'+_0x1f7ff1['query'][_0x3b41ca(0x16f)]+'%'},_0x400373;})})),_0x323c58=_[_0x6e020f(0x160)]({},_0x323c58,_0x1f7ff1[_0x6e020f(0x149)]),_0xe21f35['getDescriptions'](_0x323c58);})[_0x1073fc(0x155)](function(_0x3ca627){const _0x114e3e=_0x1073fc;if(_0x3ca627)return _0x20b37f=_0x3ca627[_0x114e3e(0x150)],typeof _0x1f7ff1[_0x114e3e(0x14f)][_0x114e3e(0x166)]===_0x114e3e(0x15f)&&(_0x323c58[_0x114e3e(0x13a)]=qs[_0x114e3e(0x13a)](_0x1f7ff1[_0x114e3e(0x14f)][_0x114e3e(0x13a)]),_0x323c58['offset']=qs['offset'](_0x1f7ff1['query']['offset'])),_0xe21f35[_0x114e3e(0x161)](_0x323c58);})[_0x1073fc(0x155)](function(_0x3284ef){if(_0x3284ef)return _0x3284ef?{'count':_0x20b37f,'rows':_0x3284ef}:null;})[_0x1073fc(0x155)](respondWithResult(_0x5ef3a8,null))[_0x1073fc(0x148)](handleError(_0x5ef3a8,null));}; \ No newline at end of file +const a342_0x3810=['error','options','findOne','sendStatus','params','api','filters','SalesforceField','status','create','../../mysqldb','map','json','getDescriptions','../../config/logger','sequelize','update','key','SalesforceConfiguration','catch','like','query','destroy','includeAll','model','name','keys','merge','attributes','then','pick','end','order','rawAttributes','undefined','getFields','getSubjects','show','filter','offset','count','lodash','length','nolimit','../../components/parsers/qs','limit','type','where','set','fields','body','intersection','Content-Range','sort'];(function(_0x169508,_0x475613){const _0x3810af=function(_0x47a64a){while(--_0x47a64a){_0x169508['push'](_0x169508['shift']());}};_0x3810af(++_0x475613);}(a342_0x3810,0x1b2));const a342_0x47a6=function(_0x169508,_0x475613){_0x169508=_0x169508-0x71;let _0x3810af=a342_0x3810[_0x169508];return _0x3810af;};const a342_0x5a3977=a342_0x47a6;'use strict';const _=require(a342_0x5a3977(0x98)),qs=require(a342_0x5a3977(0x9b)),logger=require(a342_0x5a3977(0x7d))(a342_0x5a3977(0x74)),{db}=require(a342_0x5a3977(0x79)),{Op}=require(a342_0x5a3977(0x7e));function respondWithResult(_0x5733de,_0x3c7758){return _0x3c7758=_0x3c7758||0xc8,function(_0xccc37d){const _0x5ab05d=a342_0x47a6;if(_0xccc37d)return _0x5733de[_0x5ab05d(0x77)](_0x3c7758)[_0x5ab05d(0x7b)](_0xccc37d);};}function respondWithFilteredResult(_0x487405,_0x46d304){return function(_0x5d0fb9){const _0x459cbc=a342_0x47a6;if(_0x5d0fb9){const _0x5deef3=_0x5d0fb9['count'],_0x10845b=_0x46d304['offset'];let _0x4addfa=_0x46d304[_0x459cbc(0x96)]+_0x46d304[_0x459cbc(0x9c)],_0x514359;return _0x4addfa>=_0x5deef3?(_0x4addfa=_0x5deef3,_0x514359=0xc8):_0x514359=0xce,_0x487405[_0x459cbc(0x77)](_0x514359),_0x487405[_0x459cbc(0x9f)](_0x459cbc(0xa3),_0x10845b+'-'+_0x4addfa+'/'+_0x5deef3)[_0x459cbc(0x7b)](_0x5d0fb9);}return null;};}function saveUpdates(_0x552a7c){return function(_0x2fcfc2){const _0x202c42=a342_0x47a6;if(_0x2fcfc2)return _0x2fcfc2[_0x202c42(0x7f)](_0x552a7c)[_0x202c42(0x8c)](function(_0x2488a3){return _0x2488a3;});return null;};}function removeEntity(_0x12ad18){return function(_0x55a957){const _0x3aedaf=a342_0x47a6;if(_0x55a957)return _0x55a957[_0x3aedaf(0x85)]()[_0x3aedaf(0x8c)](function(){const _0x16b749=_0x3aedaf;_0x12ad18[_0x16b749(0x77)](0xcc)[_0x16b749(0x8e)]();});};}function handleEntityNotFound(_0x4394a9){return function(_0x39d1f9){const _0x5df8de=a342_0x47a6;return!_0x39d1f9&&_0x4394a9[_0x5df8de(0x72)](0x194),_0x39d1f9;};}function handleError(_0x34c267,_0x40becb){return _0x40becb=_0x40becb||0x1f4,function(_0x554f4c){const _0x5d1885=a342_0x47a6;logger[_0x5d1885(0xa5)](_0x554f4c['stack']),_0x554f4c[_0x5d1885(0x88)]&&delete _0x554f4c[_0x5d1885(0x88)],_0x34c267[_0x5d1885(0x77)](_0x40becb)['send'](_0x554f4c);};}exports['index']=function(_0x433f93,_0x1253fc){const _0x468970=a342_0x5a3977;let _0x1f5104={};const _0xdc262e={},_0x3d973e={'count':0x0,'rows':[]},_0xb8b535=_[_0x468970(0x7a)](db[_0x468970(0x81)]['rawAttributes'],function(_0x54b4f9){const _0x4736c4=_0x468970;return{'name':_0x54b4f9['fieldName'],'type':_0x54b4f9[_0x4736c4(0x9d)][_0x4736c4(0x80)]};});_0xdc262e[_0x468970(0x87)]=_[_0x468970(0x7a)](_0xb8b535,'name'),_0xdc262e[_0x468970(0x84)]=_['keys'](_0x433f93[_0x468970(0x84)]),_0xdc262e[_0x468970(0x75)]=_[_0x468970(0xa2)](_0xdc262e[_0x468970(0x87)],_0xdc262e[_0x468970(0x84)]),_0x1f5104[_0x468970(0x8b)]=_[_0x468970(0xa2)](_0xdc262e[_0x468970(0x87)],qs[_0x468970(0xa0)](_0x433f93['query']['fields'])),_0x1f5104[_0x468970(0x8b)]=_0x1f5104[_0x468970(0x8b)][_0x468970(0x99)]?_0x1f5104[_0x468970(0x8b)]:_0xdc262e[_0x468970(0x87)];typeof _0x433f93['query'][_0x468970(0x9a)]===_0x468970(0x91)&&(_0x1f5104['limit']=qs[_0x468970(0x9c)](_0x433f93[_0x468970(0x84)][_0x468970(0x9c)]),_0x1f5104[_0x468970(0x96)]=qs[_0x468970(0x96)](_0x433f93[_0x468970(0x84)][_0x468970(0x96)]));_0x1f5104[_0x468970(0x8f)]=qs[_0x468970(0xa4)](_0x433f93['query'][_0x468970(0xa4)]),_0x1f5104[_0x468970(0x9e)]=qs[_0x468970(0x75)](_['pick'](_0x433f93['query'],_0xdc262e[_0x468970(0x75)]),_0xb8b535);_0x433f93['query'][_0x468970(0x95)]&&(_0x1f5104[_0x468970(0x9e)]=_['merge'](_0x1f5104[_0x468970(0x9e)],{[Op['or']]:_['map'](_0xb8b535,function(_0x31d11a){const _0x4b1bcf=_0x468970;if(_0x31d11a[_0x4b1bcf(0x9d)]!=='VIRTUAL'){const _0x2e4ec5={};return _0x2e4ec5[_0x31d11a[_0x4b1bcf(0x88)]]={[Op['like']]:'%'+_0x433f93['query'][_0x4b1bcf(0x95)]+'%'},_0x2e4ec5;}})}));_0x1f5104=_[_0x468970(0x8a)]({},_0x1f5104,_0x433f93[_0x468970(0xa6)]);const _0x5c80a3={'where':_0x1f5104[_0x468970(0x9e)]};return db['SalesforceConfiguration']['count'](_0x5c80a3)['then'](function(_0x195bdf){const _0x4fbcb2=_0x468970;return _0x3d973e[_0x4fbcb2(0x97)]=_0x195bdf,_0x433f93[_0x4fbcb2(0x84)]['includeAll']&&(_0x1f5104['include']=[{'all':!![]}]),db[_0x4fbcb2(0x81)]['findAll'](_0x1f5104);})['then'](function(_0x1a9660){return _0x3d973e['rows']=_0x1a9660,_0x3d973e;})['then'](respondWithFilteredResult(_0x1253fc,_0x1f5104))[_0x468970(0x82)](handleError(_0x1253fc,null));},exports[a342_0x5a3977(0x94)]=function(_0x40b5cf,_0x466974){const _0xc001d3=a342_0x5a3977;let _0x21339f={'raw':![],'where':{'id':_0x40b5cf[_0xc001d3(0x73)]['id']}};const _0x25d7d8={};return _0x25d7d8[_0xc001d3(0x87)]=_['keys'](db[_0xc001d3(0x81)]['rawAttributes']),_0x25d7d8['query']=_['keys'](_0x40b5cf[_0xc001d3(0x84)]),_0x25d7d8['filters']=_[_0xc001d3(0xa2)](_0x25d7d8['model'],_0x25d7d8[_0xc001d3(0x84)]),_0x21339f['attributes']=_[_0xc001d3(0xa2)](_0x25d7d8[_0xc001d3(0x87)],qs['fields'](_0x40b5cf[_0xc001d3(0x84)][_0xc001d3(0xa0)])),_0x21339f[_0xc001d3(0x8b)]=_0x21339f['attributes'][_0xc001d3(0x99)]?_0x21339f[_0xc001d3(0x8b)]:_0x25d7d8[_0xc001d3(0x87)],_0x40b5cf['query'][_0xc001d3(0x86)]&&(_0x21339f['include']=[{'all':!![]}]),_0x21339f=_[_0xc001d3(0x8a)]({},_0x21339f,_0x40b5cf[_0xc001d3(0xa6)]),db[_0xc001d3(0x81)]['findOne'](_0x21339f)[_0xc001d3(0x8c)](handleEntityNotFound(_0x466974,null))[_0xc001d3(0x8c)](respondWithResult(_0x466974,null))[_0xc001d3(0x82)](handleError(_0x466974,null));},exports[a342_0x5a3977(0x78)]=function(_0x264583,_0x5ae820){const _0x55d71b=a342_0x5a3977;return db[_0x55d71b(0x81)][_0x55d71b(0x78)](_0x264583[_0x55d71b(0xa1)],{})[_0x55d71b(0x8c)](respondWithResult(_0x5ae820,0xc9))[_0x55d71b(0x82)](handleError(_0x5ae820,null));},exports[a342_0x5a3977(0x7f)]=function(_0x10c100,_0x3411d2){const _0x1329bf=a342_0x5a3977;return _0x10c100[_0x1329bf(0xa1)]['id']&&delete _0x10c100[_0x1329bf(0xa1)]['id'],db[_0x1329bf(0x81)][_0x1329bf(0x71)]({'where':{'id':_0x10c100['params']['id']}})[_0x1329bf(0x8c)](handleEntityNotFound(_0x3411d2,null))[_0x1329bf(0x8c)](saveUpdates(_0x10c100[_0x1329bf(0xa1)],null))[_0x1329bf(0x8c)](respondWithResult(_0x3411d2,null))[_0x1329bf(0x82)](handleError(_0x3411d2,null));},exports['destroy']=function(_0x1ec9ee,_0x29e550){const _0x39a63a=a342_0x5a3977;return db[_0x39a63a(0x81)]['findOne']({'where':{'id':_0x1ec9ee[_0x39a63a(0x73)]['id']}})[_0x39a63a(0x8c)](handleEntityNotFound(_0x29e550,null))[_0x39a63a(0x8c)](removeEntity(_0x29e550,null))['catch'](handleError(_0x29e550,null));},exports[a342_0x5a3977(0x92)]=function(_0x5693a3,_0x51c34c){const _0x3aa4e0=a342_0x5a3977;let _0x27bfd0={};const _0x5a56ce={};let _0x24c643,_0x2265db;return db['SalesforceConfiguration']['findOne']({'where':{'id':_0x5693a3[_0x3aa4e0(0x73)]['id']}})[_0x3aa4e0(0x8c)](handleEntityNotFound(_0x51c34c,null))[_0x3aa4e0(0x8c)](function(_0x2caf4f){const _0x8a8ccc=_0x3aa4e0;if(_0x2caf4f)return _0x24c643=_0x2caf4f,_0x5a56ce[_0x8a8ccc(0x87)]=_[_0x8a8ccc(0x89)](db[_0x8a8ccc(0x76)][_0x8a8ccc(0x90)]),_0x5a56ce[_0x8a8ccc(0x84)]=_[_0x8a8ccc(0x89)](_0x5693a3['query']),_0x5a56ce['filters']=_['intersection'](_0x5a56ce['model'],_0x5a56ce['query']),_0x27bfd0[_0x8a8ccc(0x8b)]=_[_0x8a8ccc(0xa2)](_0x5a56ce[_0x8a8ccc(0x87)],qs['fields'](_0x5693a3['query'][_0x8a8ccc(0xa0)])),_0x27bfd0[_0x8a8ccc(0x8b)]=_0x27bfd0['attributes']['length']?_0x27bfd0[_0x8a8ccc(0x8b)]:_0x5a56ce['model'],_0x27bfd0[_0x8a8ccc(0x8f)]=qs[_0x8a8ccc(0xa4)](_0x5693a3[_0x8a8ccc(0x84)][_0x8a8ccc(0xa4)]),_0x27bfd0[_0x8a8ccc(0x9e)]=qs[_0x8a8ccc(0x75)](_[_0x8a8ccc(0x8d)](_0x5693a3[_0x8a8ccc(0x84)],_0x5a56ce[_0x8a8ccc(0x75)])),_0x5693a3[_0x8a8ccc(0x84)]['filter']&&(_0x27bfd0[_0x8a8ccc(0x9e)]=_[_0x8a8ccc(0x8a)](_0x27bfd0[_0x8a8ccc(0x9e)],{[Op['or']]:_[_0x8a8ccc(0x7a)](_0x27bfd0[_0x8a8ccc(0x8b)],function(_0x26ee66){const _0x5bfd58=_0x8a8ccc,_0x1c087a={};return _0x1c087a[_0x26ee66]={[Op[_0x5bfd58(0x83)]]:'%'+_0x5693a3['query']['filter']+'%'},_0x1c087a;})})),_0x27bfd0=_[_0x8a8ccc(0x8a)]({},_0x27bfd0,_0x5693a3[_0x8a8ccc(0xa6)]),_0x24c643[_0x8a8ccc(0x92)](_0x27bfd0);})['then'](function(_0x3a33cc){const _0x8ac9d1=_0x3aa4e0;if(_0x3a33cc)return _0x2265db=_0x3a33cc[_0x8ac9d1(0x99)],typeof _0x5693a3[_0x8ac9d1(0x84)][_0x8ac9d1(0x9a)]===_0x8ac9d1(0x91)&&(_0x27bfd0[_0x8ac9d1(0x9c)]=qs['limit'](_0x5693a3[_0x8ac9d1(0x84)][_0x8ac9d1(0x9c)]),_0x27bfd0['offset']=qs[_0x8ac9d1(0x96)](_0x5693a3[_0x8ac9d1(0x84)][_0x8ac9d1(0x96)])),_0x24c643[_0x8ac9d1(0x92)](_0x27bfd0);})[_0x3aa4e0(0x8c)](function(_0x31353a){if(_0x31353a)return _0x31353a?{'count':_0x2265db,'rows':_0x31353a}:null;})[_0x3aa4e0(0x8c)](respondWithResult(_0x51c34c,null))[_0x3aa4e0(0x82)](handleError(_0x51c34c,null));},exports[a342_0x5a3977(0x93)]=function(_0x33dc33,_0x22ee50){const _0x56426c=a342_0x5a3977;let _0x1005b6={};const _0x350da2={};let _0x58e630,_0x13e6bc;return db['SalesforceConfiguration']['findOne']({'where':{'id':_0x33dc33[_0x56426c(0x73)]['id']}})['then'](handleEntityNotFound(_0x22ee50,null))[_0x56426c(0x8c)](function(_0x4e22c3){const _0x51ad77=_0x56426c;if(_0x4e22c3)return _0x58e630=_0x4e22c3,_0x350da2[_0x51ad77(0x87)]=_['keys'](db[_0x51ad77(0x76)][_0x51ad77(0x90)]),_0x350da2[_0x51ad77(0x84)]=_[_0x51ad77(0x89)](_0x33dc33['query']),_0x350da2[_0x51ad77(0x75)]=_['intersection'](_0x350da2[_0x51ad77(0x87)],_0x350da2[_0x51ad77(0x84)]),_0x1005b6['attributes']=_[_0x51ad77(0xa2)](_0x350da2[_0x51ad77(0x87)],qs[_0x51ad77(0xa0)](_0x33dc33[_0x51ad77(0x84)]['fields'])),_0x1005b6['attributes']=_0x1005b6[_0x51ad77(0x8b)][_0x51ad77(0x99)]?_0x1005b6[_0x51ad77(0x8b)]:_0x350da2['model'],_0x1005b6['order']=qs[_0x51ad77(0xa4)](_0x33dc33[_0x51ad77(0x84)][_0x51ad77(0xa4)]),_0x1005b6[_0x51ad77(0x9e)]=qs[_0x51ad77(0x75)](_[_0x51ad77(0x8d)](_0x33dc33[_0x51ad77(0x84)],_0x350da2[_0x51ad77(0x75)])),_0x33dc33['query'][_0x51ad77(0x95)]&&(_0x1005b6[_0x51ad77(0x9e)]=_['merge'](_0x1005b6[_0x51ad77(0x9e)],{[Op['or']]:_[_0x51ad77(0x7a)](_0x1005b6['attributes'],function(_0x3f7556){const _0xc8c1bd=_0x51ad77,_0x21add4={};return _0x21add4[_0x3f7556]={[Op[_0xc8c1bd(0x83)]]:'%'+_0x33dc33[_0xc8c1bd(0x84)][_0xc8c1bd(0x95)]+'%'},_0x21add4;})})),_0x1005b6=_[_0x51ad77(0x8a)]({},_0x1005b6,_0x33dc33['options']),_0x58e630[_0x51ad77(0x93)](_0x1005b6);})[_0x56426c(0x8c)](function(_0x4d0258){const _0x209b5e=_0x56426c;if(_0x4d0258)return _0x13e6bc=_0x4d0258[_0x209b5e(0x99)],typeof _0x33dc33[_0x209b5e(0x84)][_0x209b5e(0x9a)]===_0x209b5e(0x91)&&(_0x1005b6[_0x209b5e(0x9c)]=qs[_0x209b5e(0x9c)](_0x33dc33[_0x209b5e(0x84)][_0x209b5e(0x9c)]),_0x1005b6[_0x209b5e(0x96)]=qs[_0x209b5e(0x96)](_0x33dc33[_0x209b5e(0x84)][_0x209b5e(0x96)])),_0x58e630[_0x209b5e(0x93)](_0x1005b6);})[_0x56426c(0x8c)](function(_0x46aae5){if(_0x46aae5)return _0x46aae5?{'count':_0x13e6bc,'rows':_0x46aae5}:null;})[_0x56426c(0x8c)](respondWithResult(_0x22ee50,null))['catch'](handleError(_0x22ee50,null));},exports[a342_0x5a3977(0x7c)]=function(_0x50900a,_0x3b49e1){const _0x29b205=a342_0x5a3977;let _0x52c8be={};const _0x11214f={};let _0x4760e2,_0x41f6c1;return db[_0x29b205(0x81)][_0x29b205(0x71)]({'where':{'id':_0x50900a['params']['id']}})[_0x29b205(0x8c)](handleEntityNotFound(_0x3b49e1,null))[_0x29b205(0x8c)](function(_0x182a3c){const _0x2d6e33=_0x29b205;if(_0x182a3c)return _0x4760e2=_0x182a3c,_0x11214f[_0x2d6e33(0x87)]=_[_0x2d6e33(0x89)](db[_0x2d6e33(0x76)][_0x2d6e33(0x90)]),_0x11214f['query']=_['keys'](_0x50900a[_0x2d6e33(0x84)]),_0x11214f['filters']=_[_0x2d6e33(0xa2)](_0x11214f[_0x2d6e33(0x87)],_0x11214f['query']),_0x52c8be[_0x2d6e33(0x8b)]=_[_0x2d6e33(0xa2)](_0x11214f[_0x2d6e33(0x87)],qs[_0x2d6e33(0xa0)](_0x50900a['query'][_0x2d6e33(0xa0)])),_0x52c8be[_0x2d6e33(0x8b)]=_0x52c8be[_0x2d6e33(0x8b)][_0x2d6e33(0x99)]?_0x52c8be[_0x2d6e33(0x8b)]:_0x11214f[_0x2d6e33(0x87)],_0x52c8be[_0x2d6e33(0x8f)]=qs['sort'](_0x50900a[_0x2d6e33(0x84)][_0x2d6e33(0xa4)]),_0x52c8be[_0x2d6e33(0x9e)]=qs[_0x2d6e33(0x75)](_['pick'](_0x50900a[_0x2d6e33(0x84)],_0x11214f[_0x2d6e33(0x75)])),_0x50900a[_0x2d6e33(0x84)]['filter']&&(_0x52c8be[_0x2d6e33(0x9e)]=_[_0x2d6e33(0x8a)](_0x52c8be['where'],{[Op['or']]:_[_0x2d6e33(0x7a)](_0x52c8be[_0x2d6e33(0x8b)],function(_0x20bdf9){const _0x339d9b=_0x2d6e33,_0x214fba={};return _0x214fba[_0x20bdf9]={[Op[_0x339d9b(0x83)]]:'%'+_0x50900a[_0x339d9b(0x84)][_0x339d9b(0x95)]+'%'},_0x214fba;})})),_0x52c8be=_[_0x2d6e33(0x8a)]({},_0x52c8be,_0x50900a[_0x2d6e33(0xa6)]),_0x4760e2[_0x2d6e33(0x7c)](_0x52c8be);})[_0x29b205(0x8c)](function(_0x1badbf){const _0x33a61f=_0x29b205;if(_0x1badbf)return _0x41f6c1=_0x1badbf[_0x33a61f(0x99)],typeof _0x50900a['query'][_0x33a61f(0x9a)]===_0x33a61f(0x91)&&(_0x52c8be['limit']=qs['limit'](_0x50900a[_0x33a61f(0x84)][_0x33a61f(0x9c)]),_0x52c8be[_0x33a61f(0x96)]=qs[_0x33a61f(0x96)](_0x50900a[_0x33a61f(0x84)][_0x33a61f(0x96)])),_0x4760e2[_0x33a61f(0x7c)](_0x52c8be);})[_0x29b205(0x8c)](function(_0x4a6701){if(_0x4a6701)return _0x4a6701?{'count':_0x41f6c1,'rows':_0x4a6701}:null;})[_0x29b205(0x8c)](respondWithResult(_0x3b49e1,null))[_0x29b205(0x82)](handleError(_0x3b49e1,null));}; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js index 38f7216..ef40707 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js @@ -1 +1 @@ -const a343_0x1c99=['init','sequelize','./intSalesforceConfiguration.attributes','./intSalesforceConfiguration.options','function','exports'];(function(_0xee1e6e,_0x191c5c){const _0x1c994a=function(_0x1eb3f6){while(--_0x1eb3f6){_0xee1e6e['push'](_0xee1e6e['shift']());}};_0x1c994a(++_0x191c5c);}(a343_0x1c99,0xf9));const a343_0x1eb3=function(_0xee1e6e,_0x191c5c){_0xee1e6e=_0xee1e6e-0x158;let _0x1c994a=a343_0x1c99[_0xee1e6e];return _0x1c994a;};const a343_0x5dcdc2=a343_0x1eb3;'use strict';const {Model}=require(a343_0x5dcdc2(0x15c)),{attributes}=require(a343_0x5dcdc2(0x15d)),{options}=require(a343_0x5dcdc2(0x158));class SalesforceConfiguration extends Model{}function init(_0x21fe67,_0x368bfc){const _0x42eec4=a343_0x5dcdc2,_0x28b358=options(_0x21fe67),_0x2904b1=typeof _0x368bfc===_0x42eec4(0x159)?_0x368bfc(_0x28b358):_0x28b358;return SalesforceConfiguration[_0x42eec4(0x15b)](attributes,_0x2904b1),SalesforceConfiguration;}module[a343_0x5dcdc2(0x15a)]['SalesforceConfiguration']=SalesforceConfiguration,module[a343_0x5dcdc2(0x15a)][a343_0x5dcdc2(0x15b)]=init; \ No newline at end of file +const a343_0x2c20=['./intSalesforceConfiguration.options','exports','function','sequelize'];(function(_0x57c78d,_0x387231){const _0x2c20d3=function(_0x538642){while(--_0x538642){_0x57c78d['push'](_0x57c78d['shift']());}};_0x2c20d3(++_0x387231);}(a343_0x2c20,0x17c));const a343_0x5386=function(_0x57c78d,_0x387231){_0x57c78d=_0x57c78d-0xab;let _0x2c20d3=a343_0x2c20[_0x57c78d];return _0x2c20d3;};const a343_0x18bffc=a343_0x5386;'use strict';const {Model}=require(a343_0x18bffc(0xae)),{attributes}=require('./intSalesforceConfiguration.attributes'),{options}=require(a343_0x18bffc(0xab));class SalesforceConfiguration extends Model{}function init(_0x1fae1c,_0x3ba2a8){const _0x58f20b=a343_0x18bffc,_0x547e59=options(_0x1fae1c),_0x830370=typeof _0x3ba2a8===_0x58f20b(0xad)?_0x3ba2a8(_0x547e59):_0x547e59;return SalesforceConfiguration['init'](attributes,_0x830370),SalesforceConfiguration;}module[a343_0x18bffc(0xac)]['SalesforceConfiguration']=SalesforceConfiguration,module[a343_0x18bffc(0xac)]['init']=init; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.options.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.options.js index c0b4cbf..9b88c0c 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.options.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.options.js @@ -1 +1 @@ -var a344_0x157d=['int_salesforce_configurations','options'];(function(_0xfc282,_0xacefb4){var _0x157d26=function(_0x3cf949){while(--_0x3cf949){_0xfc282['push'](_0xfc282['shift']());}};_0x157d26(++_0xacefb4);}(a344_0x157d,0x9a));var a344_0x3cf9=function(_0xfc282,_0xacefb4){_0xfc282=_0xfc282-0xe9;var _0x157d26=a344_0x157d[_0xfc282];return _0x157d26;};var a344_0x3f2ba0=a344_0x3cf9;function options(_0x258157){var _0x3ef62d=a344_0x3cf9;return{'sequelize':_0x258157,'tableName':_0x3ef62d(0xe9),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a344_0x3f2ba0(0xea)]=options; \ No newline at end of file +var a344_0x1207=['exports','int_salesforce_configurations'];(function(_0x494878,_0x5ee925){var _0x12077a=function(_0x2a031c){while(--_0x2a031c){_0x494878['push'](_0x494878['shift']());}};_0x12077a(++_0x5ee925);}(a344_0x1207,0x18f));var a344_0x2a03=function(_0x494878,_0x5ee925){_0x494878=_0x494878-0xe5;var _0x12077a=a344_0x1207[_0x494878];return _0x12077a;};var a344_0x38f5dd=a344_0x2a03;function options(_0x215929){var _0x44d41d=a344_0x2a03;return{'sequelize':_0x215929,'tableName':_0x44d41d(0xe5),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a344_0x38f5dd(0xe6)]['options']=options; \ No newline at end of file diff --git a/server/api/intSalesforceField/index.js b/server/api/intSalesforceField/index.js index 584d326..482b967 100644 --- a/server/api/intSalesforceField/index.js +++ b/server/api/intSalesforceField/index.js @@ -1 +1 @@ -const a345_0x3548=['index','isAuthenticated','exports','Router','destroy','show','/:id','put','update','create','delete','get','post'];(function(_0x188fb1,_0x307c4a){const _0x354843=function(_0x20f81b){while(--_0x20f81b){_0x188fb1['push'](_0x188fb1['shift']());}};_0x354843(++_0x307c4a);}(a345_0x3548,0x19c));const a345_0x20f8=function(_0x188fb1,_0x307c4a){_0x188fb1=_0x188fb1-0x17c;let _0x354843=a345_0x3548[_0x188fb1];return _0x354843;};const a345_0x4b9460=a345_0x20f8;'use strict';const express=require('express'),router=express[a345_0x4b9460(0x183)](),auth=require('../../components/auth/service'),controller=require('./intSalesforceField.controller');router[a345_0x4b9460(0x17e)]('/',auth[a345_0x4b9460(0x181)](),controller[a345_0x4b9460(0x180)]),router[a345_0x4b9460(0x17e)](a345_0x4b9460(0x186),auth[a345_0x4b9460(0x181)](),controller[a345_0x4b9460(0x185)]),router[a345_0x4b9460(0x17f)]('/',auth['isAuthenticated'](),controller[a345_0x4b9460(0x17c)]),router[a345_0x4b9460(0x187)](a345_0x4b9460(0x186),auth[a345_0x4b9460(0x181)](),controller[a345_0x4b9460(0x188)]),router[a345_0x4b9460(0x17d)](a345_0x4b9460(0x186),auth['isAuthenticated'](),controller[a345_0x4b9460(0x184)]),module[a345_0x4b9460(0x182)]=router; \ No newline at end of file +const a345_0x5567=['get','destroy','./intSalesforceField.controller','put','delete','exports','create','Router','/:id','show','../../components/auth/service','isAuthenticated','post','update'];(function(_0x243874,_0x8f5185){const _0x556739=function(_0x118949){while(--_0x118949){_0x243874['push'](_0x243874['shift']());}};_0x556739(++_0x8f5185);}(a345_0x5567,0x1ca));const a345_0x1189=function(_0x243874,_0x8f5185){_0x243874=_0x243874-0x16a;let _0x556739=a345_0x5567[_0x243874];return _0x556739;};const a345_0x1a15a2=a345_0x1189;'use strict';const express=require('express'),router=express[a345_0x1a15a2(0x175)](),auth=require(a345_0x1a15a2(0x16a)),controller=require(a345_0x1a15a2(0x170));router['get']('/',auth[a345_0x1a15a2(0x16b)](),controller['index']),router[a345_0x1a15a2(0x16e)](a345_0x1a15a2(0x176),auth[a345_0x1a15a2(0x16b)](),controller[a345_0x1a15a2(0x177)]),router[a345_0x1a15a2(0x16c)]('/',auth[a345_0x1a15a2(0x16b)](),controller[a345_0x1a15a2(0x174)]),router[a345_0x1a15a2(0x171)]('/:id',auth[a345_0x1a15a2(0x16b)](),controller[a345_0x1a15a2(0x16d)]),router[a345_0x1a15a2(0x172)](a345_0x1a15a2(0x176),auth[a345_0x1a15a2(0x16b)](),controller[a345_0x1a15a2(0x16f)]),module[a345_0x1a15a2(0x173)]=router; \ No newline at end of file diff --git a/server/api/intSalesforceField/intSalesforceField.attributes.js b/server/api/intSalesforceField/intSalesforceField.attributes.js index 777e503..336fa3f 100644 --- a/server/api/intSalesforceField/intSalesforceField.attributes.js +++ b/server/api/intSalesforceField/intSalesforceField.attributes.js @@ -1 +1 @@ -const a346_0x2a17=['exports','sequelize','ENUM','attributes','keyValue','string','STRING','variable','customVariable'];(function(_0x5acbca,_0x23d4d2){const _0x2a1722=function(_0x2a7ac1){while(--_0x2a7ac1){_0x5acbca['push'](_0x5acbca['shift']());}};_0x2a1722(++_0x23d4d2);}(a346_0x2a17,0x9a));const a346_0x2a7a=function(_0x5acbca,_0x23d4d2){_0x5acbca=_0x5acbca-0xb1;let _0x2a1722=a346_0x2a17[_0x5acbca];return _0x2a1722;};const a346_0x152fe4=a346_0x2a7a;'use strict';const {DataTypes}=require(a346_0x152fe4(0xb1)),attributes={'type':{'type':DataTypes['ENUM'](a346_0x152fe4(0xb5),'variable',a346_0x152fe4(0xb8),a346_0x152fe4(0xb4)),'defaultValue':a346_0x152fe4(0xb5)},'content':{'type':DataTypes[a346_0x152fe4(0xb6)]},'key':{'type':DataTypes[a346_0x152fe4(0xb6)]},'keyType':{'type':DataTypes[a346_0x152fe4(0xb2)](a346_0x152fe4(0xb5),a346_0x152fe4(0xb7),'customVariable')},'keyContent':{'type':DataTypes[a346_0x152fe4(0xb6)]},'idField':{'type':DataTypes['STRING']},'variableName':{'type':DataTypes[a346_0x152fe4(0xb6)]}};module[a346_0x152fe4(0xb9)][a346_0x152fe4(0xb3)]=attributes; \ No newline at end of file +const a346_0x4fcb=['string','sequelize','customVariable','STRING','exports','ENUM','variable'];(function(_0x28106e,_0x1e1fad){const _0x4fcb7d=function(_0xf7abb9){while(--_0xf7abb9){_0x28106e['push'](_0x28106e['shift']());}};_0x4fcb7d(++_0x1e1fad);}(a346_0x4fcb,0xd1));const a346_0xf7ab=function(_0x28106e,_0x1e1fad){_0x28106e=_0x28106e-0x117;let _0x4fcb7d=a346_0x4fcb[_0x28106e];return _0x4fcb7d;};const a346_0x110613=a346_0xf7ab;'use strict';const {DataTypes}=require(a346_0x110613(0x119)),attributes={'type':{'type':DataTypes['ENUM'](a346_0x110613(0x118),a346_0x110613(0x117),a346_0x110613(0x11a),'keyValue'),'defaultValue':a346_0x110613(0x118)},'content':{'type':DataTypes['STRING']},'key':{'type':DataTypes['STRING']},'keyType':{'type':DataTypes[a346_0x110613(0x11d)](a346_0x110613(0x118),a346_0x110613(0x117),a346_0x110613(0x11a))},'keyContent':{'type':DataTypes[a346_0x110613(0x11b)]},'idField':{'type':DataTypes[a346_0x110613(0x11b)]},'variableName':{'type':DataTypes[a346_0x110613(0x11b)]}};module[a346_0x110613(0x11c)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/intSalesforceField/intSalesforceField.controller.js b/server/api/intSalesforceField/intSalesforceField.controller.js index 263572c..57f5c23 100644 --- a/server/api/intSalesforceField/intSalesforceField.controller.js +++ b/server/api/intSalesforceField/intSalesforceField.controller.js @@ -1 +1 @@ -const a347_0x10cc=['api','type','intersection','sort','where','keys','order','include','SalesforceField','map','merge','undefined','key','options','index','count','VIRTUAL','body','query','limit','fieldName','stack','rawAttributes','set','send','fields','status','nolimit','../../components/parsers/qs','offset','model','sendStatus','update','Content-Range','length','like','findOne','../../config/logger','sequelize','json','catch','then','filters','show','findAll','end','filter','params','name','destroy','attributes','create','rows'];(function(_0xc20c57,_0x5a777a){const _0x10cc71=function(_0x4793fb){while(--_0x4793fb){_0xc20c57['push'](_0xc20c57['shift']());}};_0x10cc71(++_0x5a777a);}(a347_0x10cc,0x7b));const a347_0x4793=function(_0xc20c57,_0x5a777a){_0xc20c57=_0xc20c57-0x173;let _0x10cc71=a347_0x10cc[_0xc20c57];return _0x10cc71;};const a347_0x3400da=a347_0x4793;'use strict';const _=require('lodash'),qs=require(a347_0x3400da(0x17e)),logger=require(a347_0x3400da(0x187))(a347_0x3400da(0x197)),{db}=require('../../mysqldb'),{Op}=require(a347_0x3400da(0x188));function respondWithResult(_0x5e3896,_0x43336a){return _0x43336a=_0x43336a||0xc8,function(_0x331691){const _0x4b47b8=a347_0x4793;if(_0x331691)return _0x5e3896['status'](_0x43336a)[_0x4b47b8(0x189)](_0x331691);};}function respondWithFilteredResult(_0x881bf2,_0x693a8f){return function(_0x169953){const _0x566656=a347_0x4793;if(_0x169953){const _0x578ee0=_0x169953[_0x566656(0x1a6)],_0x4eae72=_0x693a8f[_0x566656(0x17f)];let _0x55b09d=_0x693a8f[_0x566656(0x17f)]+_0x693a8f[_0x566656(0x175)],_0x3d2a41;return _0x55b09d>=_0x578ee0?(_0x55b09d=_0x578ee0,_0x3d2a41=0xc8):_0x3d2a41=0xce,_0x881bf2['status'](_0x3d2a41),_0x881bf2[_0x566656(0x179)](_0x566656(0x183),_0x4eae72+'-'+_0x55b09d+'/'+_0x578ee0)[_0x566656(0x189)](_0x169953);}return null;};}function saveUpdates(_0x139e6b){return function(_0x5a2ccd){const _0x1bf26e=a347_0x4793;if(_0x5a2ccd)return _0x5a2ccd[_0x1bf26e(0x182)](_0x139e6b)['then'](function(_0x551ce0){return _0x551ce0;});return null;};}function removeEntity(_0x4262cd){return function(_0x303ccc){const _0x16d382=a347_0x4793;if(_0x303ccc)return _0x303ccc['destroy']()[_0x16d382(0x18b)](function(){const _0x2c5a70=_0x16d382;_0x4262cd[_0x2c5a70(0x17c)](0xcc)[_0x2c5a70(0x18f)]();});};}function handleEntityNotFound(_0x2620b7){return function(_0x346acb){const _0x446f8d=a347_0x4793;return!_0x346acb&&_0x2620b7[_0x446f8d(0x181)](0x194),_0x346acb;};}function handleError(_0x4da1b8,_0x893d3a){return _0x893d3a=_0x893d3a||0x1f4,function(_0x36bec9){const _0x4f22d8=a347_0x4793;logger['error'](_0x36bec9[_0x4f22d8(0x177)]),_0x36bec9[_0x4f22d8(0x192)]&&delete _0x36bec9[_0x4f22d8(0x192)],_0x4da1b8[_0x4f22d8(0x17c)](_0x893d3a)[_0x4f22d8(0x17a)](_0x36bec9);};}exports[a347_0x3400da(0x1a5)]=function(_0x2bdbc5,_0x2093b0){const _0x54c1d3=a347_0x3400da;let _0x387a84={};const _0x532b22={},_0x3aa5c6={'count':0x0,'rows':[]},_0x51df22=_[_0x54c1d3(0x1a0)](db['SalesforceField'][_0x54c1d3(0x178)],function(_0x2be211){const _0x58e988=_0x54c1d3;return{'name':_0x2be211[_0x58e988(0x176)],'type':_0x2be211[_0x58e988(0x198)][_0x58e988(0x1a3)]};});_0x532b22[_0x54c1d3(0x180)]=_[_0x54c1d3(0x1a0)](_0x51df22,_0x54c1d3(0x192)),_0x532b22[_0x54c1d3(0x174)]=_['keys'](_0x2bdbc5[_0x54c1d3(0x174)]),_0x532b22[_0x54c1d3(0x18c)]=_[_0x54c1d3(0x199)](_0x532b22['model'],_0x532b22[_0x54c1d3(0x174)]),_0x387a84['attributes']=_[_0x54c1d3(0x199)](_0x532b22[_0x54c1d3(0x180)],qs[_0x54c1d3(0x17b)](_0x2bdbc5['query'][_0x54c1d3(0x17b)])),_0x387a84[_0x54c1d3(0x194)]=_0x387a84['attributes']['length']?_0x387a84['attributes']:_0x532b22[_0x54c1d3(0x180)];typeof _0x2bdbc5['query'][_0x54c1d3(0x17d)]===_0x54c1d3(0x1a2)&&(_0x387a84['limit']=qs['limit'](_0x2bdbc5[_0x54c1d3(0x174)]['limit']),_0x387a84[_0x54c1d3(0x17f)]=qs[_0x54c1d3(0x17f)](_0x2bdbc5['query'][_0x54c1d3(0x17f)]));_0x387a84[_0x54c1d3(0x19d)]=qs[_0x54c1d3(0x19a)](_0x2bdbc5['query'][_0x54c1d3(0x19a)]),_0x387a84[_0x54c1d3(0x19b)]=qs['filters'](_['pick'](_0x2bdbc5[_0x54c1d3(0x174)],_0x532b22[_0x54c1d3(0x18c)]),_0x51df22);_0x2bdbc5[_0x54c1d3(0x174)][_0x54c1d3(0x190)]&&(_0x387a84[_0x54c1d3(0x19b)]=_[_0x54c1d3(0x1a1)](_0x387a84['where'],{[Op['or']]:_[_0x54c1d3(0x1a0)](_0x51df22,function(_0x2bb458){const _0x45fef2=_0x54c1d3;if(_0x2bb458['type']!==_0x45fef2(0x1a7)){const _0xdf150={};return _0xdf150[_0x2bb458[_0x45fef2(0x192)]]={[Op[_0x45fef2(0x185)]]:'%'+_0x2bdbc5[_0x45fef2(0x174)]['filter']+'%'},_0xdf150;}})}));_0x387a84=_[_0x54c1d3(0x1a1)]({},_0x387a84,_0x2bdbc5[_0x54c1d3(0x1a4)]);const _0x445d06={'where':_0x387a84[_0x54c1d3(0x19b)]};return db[_0x54c1d3(0x19f)][_0x54c1d3(0x1a6)](_0x445d06)['then'](function(_0x3cca55){const _0x4cd878=_0x54c1d3;return _0x3aa5c6['count']=_0x3cca55,_0x2bdbc5['query']['includeAll']&&(_0x387a84[_0x4cd878(0x19e)]=[{'all':!![]}]),db[_0x4cd878(0x19f)][_0x4cd878(0x18e)](_0x387a84);})[_0x54c1d3(0x18b)](function(_0x3a6022){const _0x121b67=_0x54c1d3;return _0x3aa5c6[_0x121b67(0x196)]=_0x3a6022,_0x3aa5c6;})[_0x54c1d3(0x18b)](respondWithFilteredResult(_0x2093b0,_0x387a84))[_0x54c1d3(0x18a)](handleError(_0x2093b0,null));},exports[a347_0x3400da(0x18d)]=function(_0x3433ba,_0xe420ec){const _0x137868=a347_0x3400da;let _0x3d5a21={'raw':!![],'where':{'id':_0x3433ba[_0x137868(0x191)]['id']}};const _0x3eddfd={};return _0x3eddfd[_0x137868(0x180)]=_[_0x137868(0x19c)](db[_0x137868(0x19f)][_0x137868(0x178)]),_0x3eddfd[_0x137868(0x174)]=_[_0x137868(0x19c)](_0x3433ba[_0x137868(0x174)]),_0x3eddfd[_0x137868(0x18c)]=_['intersection'](_0x3eddfd[_0x137868(0x180)],_0x3eddfd['query']),_0x3d5a21[_0x137868(0x194)]=_[_0x137868(0x199)](_0x3eddfd[_0x137868(0x180)],qs[_0x137868(0x17b)](_0x3433ba['query'][_0x137868(0x17b)])),_0x3d5a21['attributes']=_0x3d5a21[_0x137868(0x194)][_0x137868(0x184)]?_0x3d5a21[_0x137868(0x194)]:_0x3eddfd[_0x137868(0x180)],_0x3433ba[_0x137868(0x174)]['includeAll']&&(_0x3d5a21[_0x137868(0x19e)]=[{'all':!![]}]),_0x3d5a21=_[_0x137868(0x1a1)]({},_0x3d5a21,_0x3433ba['options']),db['SalesforceField'][_0x137868(0x186)](_0x3d5a21)[_0x137868(0x18b)](handleEntityNotFound(_0xe420ec,null))['then'](respondWithResult(_0xe420ec,null))[_0x137868(0x18a)](handleError(_0xe420ec,null));},exports[a347_0x3400da(0x195)]=function(_0x55a636,_0x49e928){const _0x2f0759=a347_0x3400da;return db[_0x2f0759(0x19f)][_0x2f0759(0x195)](_0x55a636[_0x2f0759(0x173)],{})['then'](respondWithResult(_0x49e928,0xc9))['catch'](handleError(_0x49e928,null));},exports[a347_0x3400da(0x182)]=function(_0x1658d7,_0xc12d7f){const _0x33ad9d=a347_0x3400da;return _0x1658d7[_0x33ad9d(0x173)]['id']&&delete _0x1658d7[_0x33ad9d(0x173)]['id'],db[_0x33ad9d(0x19f)]['findOne']({'where':{'id':_0x1658d7[_0x33ad9d(0x191)]['id']}})[_0x33ad9d(0x18b)](handleEntityNotFound(_0xc12d7f,null))[_0x33ad9d(0x18b)](saveUpdates(_0x1658d7['body'],null))[_0x33ad9d(0x18b)](respondWithResult(_0xc12d7f,null))[_0x33ad9d(0x18a)](handleError(_0xc12d7f,null));},exports[a347_0x3400da(0x193)]=function(_0x5108c6,_0x78a4f6){const _0xe9822a=a347_0x3400da;return db[_0xe9822a(0x19f)][_0xe9822a(0x186)]({'where':{'id':_0x5108c6[_0xe9822a(0x191)]['id']}})['then'](handleEntityNotFound(_0x78a4f6,null))[_0xe9822a(0x18b)](removeEntity(_0x78a4f6,null))['catch'](handleError(_0x78a4f6,null));}; \ No newline at end of file +const a347_0xe4d7=['fieldName','map','../../config/logger','limit','model','length','catch','intersection','../../mysqldb','query','pick','send','nolimit','filters','order','params','index','json','destroy','rows','filter','update','keys','findOne','VIRTUAL','show','rawAttributes','includeAll','end','options','fields','then','sendStatus','undefined','sort','like','where','offset','type','../../components/parsers/qs','error','body','findAll','status','sequelize','merge','SalesforceField','count','stack','attributes','name','include'];(function(_0x2cc540,_0x330f6e){const _0xe4d7a0=function(_0x29e4de){while(--_0x29e4de){_0x2cc540['push'](_0x2cc540['shift']());}};_0xe4d7a0(++_0x330f6e);}(a347_0xe4d7,0x1b8));const a347_0x29e4=function(_0x2cc540,_0x330f6e){_0x2cc540=_0x2cc540-0x19b;let _0xe4d7a0=a347_0xe4d7[_0x2cc540];return _0xe4d7a0;};const a347_0x1e2303=a347_0x29e4;'use strict';const _=require('lodash'),qs=require(a347_0x1e2303(0x1aa)),logger=require(a347_0x1e2303(0x1b9))('api'),{db}=require(a347_0x1e2303(0x1bf)),{Op}=require(a347_0x1e2303(0x1af));function respondWithResult(_0x4caf80,_0x6d6c75){return _0x6d6c75=_0x6d6c75||0xc8,function(_0x3236b8){const _0x552c2d=a347_0x29e4;if(_0x3236b8)return _0x4caf80['status'](_0x6d6c75)[_0x552c2d(0x1c8)](_0x3236b8);};}function respondWithFilteredResult(_0x49b104,_0x2b9067){return function(_0x53bf73){const _0x2adc0c=a347_0x29e4;if(_0x53bf73){const _0x28ed48=_0x53bf73[_0x2adc0c(0x1b2)],_0x3b32d4=_0x2b9067[_0x2adc0c(0x1a8)];let _0x400a9=_0x2b9067['offset']+_0x2b9067[_0x2adc0c(0x1ba)],_0x3863a5;return _0x400a9>=_0x28ed48?(_0x400a9=_0x28ed48,_0x3863a5=0xc8):_0x3863a5=0xce,_0x49b104['status'](_0x3863a5),_0x49b104['set']('Content-Range',_0x3b32d4+'-'+_0x400a9+'/'+_0x28ed48)[_0x2adc0c(0x1c8)](_0x53bf73);}return null;};}function saveUpdates(_0x48d56a){return function(_0x35b67d){const _0x2abad8=a347_0x29e4;if(_0x35b67d)return _0x35b67d[_0x2abad8(0x1cc)](_0x48d56a)[_0x2abad8(0x1a2)](function(_0xc6080e){return _0xc6080e;});return null;};}function removeEntity(_0x57f0b3){return function(_0x17bbfd){const _0xb19d71=a347_0x29e4;if(_0x17bbfd)return _0x17bbfd['destroy']()[_0xb19d71(0x1a2)](function(){const _0x46f13f=_0xb19d71;_0x57f0b3[_0x46f13f(0x1ae)](0xcc)[_0x46f13f(0x19f)]();});};}function handleEntityNotFound(_0x4613ab){return function(_0x5ebf62){const _0x3b36d9=a347_0x29e4;return!_0x5ebf62&&_0x4613ab[_0x3b36d9(0x1a3)](0x194),_0x5ebf62;};}function handleError(_0xfa4059,_0x34e560){return _0x34e560=_0x34e560||0x1f4,function(_0x1c27c1){const _0x3a233d=a347_0x29e4;logger[_0x3a233d(0x1ab)](_0x1c27c1[_0x3a233d(0x1b3)]),_0x1c27c1['name']&&delete _0x1c27c1[_0x3a233d(0x1b5)],_0xfa4059[_0x3a233d(0x1ae)](_0x34e560)[_0x3a233d(0x1c2)](_0x1c27c1);};}exports[a347_0x1e2303(0x1c7)]=function(_0x16f223,_0xdf4395){const _0x4b59b9=a347_0x1e2303;let _0x1dc8d0={};const _0x3e2f67={},_0x128fb9={'count':0x0,'rows':[]},_0x10f3dd=_[_0x4b59b9(0x1b8)](db[_0x4b59b9(0x1b1)][_0x4b59b9(0x19d)],function(_0x4f90bb){const _0x5efe6a=_0x4b59b9;return{'name':_0x4f90bb[_0x5efe6a(0x1b7)],'type':_0x4f90bb['type']['key']};});_0x3e2f67[_0x4b59b9(0x1bb)]=_['map'](_0x10f3dd,'name'),_0x3e2f67[_0x4b59b9(0x1c0)]=_[_0x4b59b9(0x1cd)](_0x16f223[_0x4b59b9(0x1c0)]),_0x3e2f67[_0x4b59b9(0x1c4)]=_['intersection'](_0x3e2f67[_0x4b59b9(0x1bb)],_0x3e2f67[_0x4b59b9(0x1c0)]),_0x1dc8d0[_0x4b59b9(0x1b4)]=_[_0x4b59b9(0x1be)](_0x3e2f67[_0x4b59b9(0x1bb)],qs[_0x4b59b9(0x1a1)](_0x16f223[_0x4b59b9(0x1c0)][_0x4b59b9(0x1a1)])),_0x1dc8d0[_0x4b59b9(0x1b4)]=_0x1dc8d0['attributes'][_0x4b59b9(0x1bc)]?_0x1dc8d0[_0x4b59b9(0x1b4)]:_0x3e2f67[_0x4b59b9(0x1bb)];typeof _0x16f223[_0x4b59b9(0x1c0)][_0x4b59b9(0x1c3)]===_0x4b59b9(0x1a4)&&(_0x1dc8d0[_0x4b59b9(0x1ba)]=qs['limit'](_0x16f223[_0x4b59b9(0x1c0)][_0x4b59b9(0x1ba)]),_0x1dc8d0[_0x4b59b9(0x1a8)]=qs['offset'](_0x16f223[_0x4b59b9(0x1c0)][_0x4b59b9(0x1a8)]));_0x1dc8d0[_0x4b59b9(0x1c5)]=qs[_0x4b59b9(0x1a5)](_0x16f223[_0x4b59b9(0x1c0)]['sort']),_0x1dc8d0['where']=qs[_0x4b59b9(0x1c4)](_[_0x4b59b9(0x1c1)](_0x16f223['query'],_0x3e2f67[_0x4b59b9(0x1c4)]),_0x10f3dd);_0x16f223[_0x4b59b9(0x1c0)]['filter']&&(_0x1dc8d0[_0x4b59b9(0x1a7)]=_[_0x4b59b9(0x1b0)](_0x1dc8d0['where'],{[Op['or']]:_[_0x4b59b9(0x1b8)](_0x10f3dd,function(_0x51f079){const _0x12f38b=_0x4b59b9;if(_0x51f079[_0x12f38b(0x1a9)]!==_0x12f38b(0x19b)){const _0x22d079={};return _0x22d079[_0x51f079[_0x12f38b(0x1b5)]]={[Op[_0x12f38b(0x1a6)]]:'%'+_0x16f223[_0x12f38b(0x1c0)][_0x12f38b(0x1cb)]+'%'},_0x22d079;}})}));_0x1dc8d0=_[_0x4b59b9(0x1b0)]({},_0x1dc8d0,_0x16f223[_0x4b59b9(0x1a0)]);const _0x17b4d2={'where':_0x1dc8d0[_0x4b59b9(0x1a7)]};return db[_0x4b59b9(0x1b1)][_0x4b59b9(0x1b2)](_0x17b4d2)[_0x4b59b9(0x1a2)](function(_0x4362ba){const _0x2b61e1=_0x4b59b9;return _0x128fb9['count']=_0x4362ba,_0x16f223[_0x2b61e1(0x1c0)][_0x2b61e1(0x19e)]&&(_0x1dc8d0[_0x2b61e1(0x1b6)]=[{'all':!![]}]),db[_0x2b61e1(0x1b1)][_0x2b61e1(0x1ad)](_0x1dc8d0);})['then'](function(_0x7aa7b3){const _0x1fded3=_0x4b59b9;return _0x128fb9[_0x1fded3(0x1ca)]=_0x7aa7b3,_0x128fb9;})[_0x4b59b9(0x1a2)](respondWithFilteredResult(_0xdf4395,_0x1dc8d0))[_0x4b59b9(0x1bd)](handleError(_0xdf4395,null));},exports[a347_0x1e2303(0x19c)]=function(_0x21e7b2,_0x3e1048){const _0x3a2a9=a347_0x1e2303;let _0x45dca4={'raw':!![],'where':{'id':_0x21e7b2[_0x3a2a9(0x1c6)]['id']}};const _0xab343d={};return _0xab343d[_0x3a2a9(0x1bb)]=_['keys'](db[_0x3a2a9(0x1b1)][_0x3a2a9(0x19d)]),_0xab343d[_0x3a2a9(0x1c0)]=_[_0x3a2a9(0x1cd)](_0x21e7b2[_0x3a2a9(0x1c0)]),_0xab343d[_0x3a2a9(0x1c4)]=_[_0x3a2a9(0x1be)](_0xab343d[_0x3a2a9(0x1bb)],_0xab343d['query']),_0x45dca4[_0x3a2a9(0x1b4)]=_[_0x3a2a9(0x1be)](_0xab343d['model'],qs[_0x3a2a9(0x1a1)](_0x21e7b2[_0x3a2a9(0x1c0)][_0x3a2a9(0x1a1)])),_0x45dca4[_0x3a2a9(0x1b4)]=_0x45dca4[_0x3a2a9(0x1b4)][_0x3a2a9(0x1bc)]?_0x45dca4[_0x3a2a9(0x1b4)]:_0xab343d['model'],_0x21e7b2[_0x3a2a9(0x1c0)][_0x3a2a9(0x19e)]&&(_0x45dca4['include']=[{'all':!![]}]),_0x45dca4=_[_0x3a2a9(0x1b0)]({},_0x45dca4,_0x21e7b2['options']),db[_0x3a2a9(0x1b1)]['findOne'](_0x45dca4)[_0x3a2a9(0x1a2)](handleEntityNotFound(_0x3e1048,null))[_0x3a2a9(0x1a2)](respondWithResult(_0x3e1048,null))['catch'](handleError(_0x3e1048,null));},exports['create']=function(_0x297b51,_0xd1e84b){const _0x1e7ea7=a347_0x1e2303;return db[_0x1e7ea7(0x1b1)]['create'](_0x297b51[_0x1e7ea7(0x1ac)],{})[_0x1e7ea7(0x1a2)](respondWithResult(_0xd1e84b,0xc9))[_0x1e7ea7(0x1bd)](handleError(_0xd1e84b,null));},exports[a347_0x1e2303(0x1cc)]=function(_0x282550,_0x5234c1){const _0x8e04ae=a347_0x1e2303;return _0x282550[_0x8e04ae(0x1ac)]['id']&&delete _0x282550[_0x8e04ae(0x1ac)]['id'],db[_0x8e04ae(0x1b1)][_0x8e04ae(0x1ce)]({'where':{'id':_0x282550['params']['id']}})[_0x8e04ae(0x1a2)](handleEntityNotFound(_0x5234c1,null))['then'](saveUpdates(_0x282550['body'],null))[_0x8e04ae(0x1a2)](respondWithResult(_0x5234c1,null))[_0x8e04ae(0x1bd)](handleError(_0x5234c1,null));},exports[a347_0x1e2303(0x1c9)]=function(_0x326c5e,_0x5429b3){const _0x1ad6ce=a347_0x1e2303;return db[_0x1ad6ce(0x1b1)][_0x1ad6ce(0x1ce)]({'where':{'id':_0x326c5e[_0x1ad6ce(0x1c6)]['id']}})[_0x1ad6ce(0x1a2)](handleEntityNotFound(_0x5429b3,null))[_0x1ad6ce(0x1a2)](removeEntity(_0x5429b3,null))['catch'](handleError(_0x5429b3,null));}; \ No newline at end of file diff --git a/server/api/intSalesforceField/intSalesforceField.model.js b/server/api/intSalesforceField/intSalesforceField.model.js index ac6ae2b..d657659 100644 --- a/server/api/intSalesforceField/intSalesforceField.model.js +++ b/server/api/intSalesforceField/intSalesforceField.model.js @@ -1 +1 @@ -const a348_0x2cd7=['SalesforceField','./intSalesforceField.options','exports','./intSalesforceField.attributes','init'];(function(_0x576ae7,_0xa2a001){const _0x2cd722=function(_0x47f5fd){while(--_0x47f5fd){_0x576ae7['push'](_0x576ae7['shift']());}};_0x2cd722(++_0xa2a001);}(a348_0x2cd7,0x1d5));const a348_0x47f5=function(_0x576ae7,_0xa2a001){_0x576ae7=_0x576ae7-0xcb;let _0x2cd722=a348_0x2cd7[_0x576ae7];return _0x2cd722;};const a348_0x22fc76=a348_0x47f5;'use strict';const {Model}=require('sequelize'),{attributes}=require(a348_0x22fc76(0xcf)),{options}=require(a348_0x22fc76(0xcd));class SalesforceField extends Model{}function init(_0x5d123d,_0x49cedf){const _0x5db090=options(_0x5d123d),_0x4831e2=typeof _0x49cedf==='function'?_0x49cedf(_0x5db090):_0x5db090;return SalesforceField['init'](attributes,_0x4831e2),SalesforceField;}module['exports'][a348_0x22fc76(0xcc)]=SalesforceField,module[a348_0x22fc76(0xce)][a348_0x22fc76(0xcb)]=init; \ No newline at end of file +const a348_0x3bdc=['SalesforceField','sequelize','./intSalesforceField.attributes','exports','init','./intSalesforceField.options','function'];(function(_0x51094e,_0x59e7a9){const _0x3bdc53=function(_0x3ab4d0){while(--_0x3ab4d0){_0x51094e['push'](_0x51094e['shift']());}};_0x3bdc53(++_0x59e7a9);}(a348_0x3bdc,0x106));const a348_0x3ab4=function(_0x51094e,_0x59e7a9){_0x51094e=_0x51094e-0x17e;let _0x3bdc53=a348_0x3bdc[_0x51094e];return _0x3bdc53;};const a348_0x285986=a348_0x3ab4;'use strict';const {Model}=require(a348_0x285986(0x183)),{attributes}=require(a348_0x285986(0x184)),{options}=require(a348_0x285986(0x180));class SalesforceField extends Model{}function init(_0x3cbf10,_0x8416b6){const _0x176a29=a348_0x285986,_0x209c82=options(_0x3cbf10),_0x478227=typeof _0x8416b6===_0x176a29(0x181)?_0x8416b6(_0x209c82):_0x209c82;return SalesforceField[_0x176a29(0x17f)](attributes,_0x478227),SalesforceField;}module[a348_0x285986(0x17e)][a348_0x285986(0x182)]=SalesforceField,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/intSalesforceField/intSalesforceField.options.js b/server/api/intSalesforceField/intSalesforceField.options.js index b3e8436..d1a35bb 100644 --- a/server/api/intSalesforceField/intSalesforceField.options.js +++ b/server/api/intSalesforceField/intSalesforceField.options.js @@ -1 +1 @@ -var a349_0x1cb8=['idField','salesforce_unique_index','exports','options'];(function(_0x156cd8,_0x38abba){var _0x1cb865=function(_0x44c43a){while(--_0x44c43a){_0x156cd8['push'](_0x156cd8['shift']());}};_0x1cb865(++_0x38abba);}(a349_0x1cb8,0x1ba));var a349_0x44c4=function(_0x156cd8,_0x38abba){_0x156cd8=_0x156cd8-0x180;var _0x1cb865=a349_0x1cb8[_0x156cd8];return _0x1cb865;};var a349_0x15f639=a349_0x44c4;function options(_0x4e6106){var _0x55ce64=a349_0x44c4;return{'sequelize':_0x4e6106,'tableName':'int_salesforce_fields','paranoid':![],'indexes':[{'name':_0x55ce64(0x183),'fields':[_0x55ce64(0x182),'FieldId'],'unique':!![]}],'timestamps':!![]};}module[a349_0x15f639(0x180)][a349_0x15f639(0x181)]=options; \ No newline at end of file +var a349_0x8a52=['exports','idField','options','int_salesforce_fields','FieldId'];(function(_0x164b99,_0x164523){var _0x8a5215=function(_0x21bdca){while(--_0x21bdca){_0x164b99['push'](_0x164b99['shift']());}};_0x8a5215(++_0x164523);}(a349_0x8a52,0x7f));var a349_0x21bd=function(_0x164b99,_0x164523){_0x164b99=_0x164b99-0x84;var _0x8a5215=a349_0x8a52[_0x164b99];return _0x8a5215;};var a349_0x382c89=a349_0x21bd;function options(_0x324c4a){var _0x51b432=a349_0x21bd;return{'sequelize':_0x324c4a,'tableName':_0x51b432(0x85),'paranoid':![],'indexes':[{'name':'salesforce_unique_index','fields':[_0x51b432(0x88),_0x51b432(0x86)],'unique':!![]}],'timestamps':!![]};}module[a349_0x382c89(0x87)][a349_0x382c89(0x84)]=options; \ No newline at end of file diff --git a/server/api/intServicenowAccount/index.js b/server/api/intServicenowAccount/index.js index 5e7c4dd..b680047 100644 --- a/server/api/intServicenowAccount/index.js +++ b/server/api/intServicenowAccount/index.js @@ -1 +1 @@ -const a350_0x22ea=['post','../../components/auth/service','delete','./intServicenowAccount.controller','express','/:id/fields','show','Router','update','create','addConfiguration','get','put','getFields','/:id/configurations','/:id','index','isAuthenticated'];(function(_0xc62233,_0x2f067b){const _0x22ea11=function(_0x1b4f7e){while(--_0x1b4f7e){_0xc62233['push'](_0xc62233['shift']());}};_0x22ea11(++_0x2f067b);}(a350_0x22ea,0xf6));const a350_0x1b4f=function(_0xc62233,_0x2f067b){_0xc62233=_0xc62233-0x6e;let _0x22ea11=a350_0x22ea[_0xc62233];return _0x22ea11;};const a350_0x2f4517=a350_0x1b4f;'use strict';const express=require(a350_0x2f4517(0x78)),router=express[a350_0x2f4517(0x7b)](),auth=require(a350_0x2f4517(0x75)),controller=require(a350_0x2f4517(0x77));router[a350_0x2f4517(0x7f)]('/',auth[a350_0x2f4517(0x73)](),controller[a350_0x2f4517(0x72)]),router[a350_0x2f4517(0x7f)](a350_0x2f4517(0x71),auth[a350_0x2f4517(0x73)](),controller[a350_0x2f4517(0x7a)]),router[a350_0x2f4517(0x7f)]('/:id/configurations',auth[a350_0x2f4517(0x73)](),controller['getConfigurations']),router['get'](a350_0x2f4517(0x79),auth['isAuthenticated'](),controller[a350_0x2f4517(0x6f)]),router[a350_0x2f4517(0x74)]('/',auth[a350_0x2f4517(0x73)](),controller[a350_0x2f4517(0x7d)]),router[a350_0x2f4517(0x74)](a350_0x2f4517(0x70),auth[a350_0x2f4517(0x73)](),controller[a350_0x2f4517(0x7e)]),router[a350_0x2f4517(0x6e)](a350_0x2f4517(0x71),auth[a350_0x2f4517(0x73)](),controller[a350_0x2f4517(0x7c)]),router[a350_0x2f4517(0x76)](a350_0x2f4517(0x71),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a350_0x11be=['getFields','destroy','/:id/fields','put','index','/:id/configurations','get','addConfiguration','./intServicenowAccount.controller','../../components/auth/service','express','isAuthenticated','getConfigurations','create','Router','delete','/:id','exports','show'];(function(_0x2b2820,_0x38fedc){const _0x11be3b=function(_0x5ab730){while(--_0x5ab730){_0x2b2820['push'](_0x2b2820['shift']());}};_0x11be3b(++_0x38fedc);}(a350_0x11be,0xe1));const a350_0x5ab7=function(_0x2b2820,_0x38fedc){_0x2b2820=_0x2b2820-0x9e;let _0x11be3b=a350_0x11be[_0x2b2820];return _0x11be3b;};const a350_0x1dc6da=a350_0x5ab7;'use strict';const express=require(a350_0x1dc6da(0xab)),router=express[a350_0x1dc6da(0xaf)](),auth=require(a350_0x1dc6da(0xaa)),controller=require(a350_0x1dc6da(0xa9));router[a350_0x1dc6da(0xa7)]('/',auth[a350_0x1dc6da(0xac)](),controller[a350_0x1dc6da(0xa5)]),router[a350_0x1dc6da(0xa7)](a350_0x1dc6da(0x9e),auth[a350_0x1dc6da(0xac)](),controller[a350_0x1dc6da(0xa0)]),router[a350_0x1dc6da(0xa7)](a350_0x1dc6da(0xa6),auth['isAuthenticated'](),controller[a350_0x1dc6da(0xad)]),router[a350_0x1dc6da(0xa7)](a350_0x1dc6da(0xa3),auth['isAuthenticated'](),controller[a350_0x1dc6da(0xa1)]),router['post']('/',auth[a350_0x1dc6da(0xac)](),controller[a350_0x1dc6da(0xae)]),router['post'](a350_0x1dc6da(0xa6),auth[a350_0x1dc6da(0xac)](),controller[a350_0x1dc6da(0xa8)]),router[a350_0x1dc6da(0xa4)](a350_0x1dc6da(0x9e),auth[a350_0x1dc6da(0xac)](),controller['update']),router[a350_0x1dc6da(0xb0)](a350_0x1dc6da(0x9e),auth[a350_0x1dc6da(0xac)](),controller[a350_0x1dc6da(0xa2)]),module[a350_0x1dc6da(0x9f)]=router; \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.attributes.js b/server/api/intServicenowAccount/intServicenowAccount.attributes.js index a7ef264..a4f639d 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.attributes.js +++ b/server/api/intServicenowAccount/intServicenowAccount.attributes.js @@ -1 +1 @@ -const a351_0x4d66=['attributes','STRING','exports','username'];(function(_0x3a4515,_0x1702b5){const _0x4d6689=function(_0x39335c){while(--_0x39335c){_0x3a4515['push'](_0x3a4515['shift']());}};_0x4d6689(++_0x1702b5);}(a351_0x4d66,0x19c));const a351_0x3933=function(_0x3a4515,_0x1702b5){_0x3a4515=_0x3a4515-0x65;let _0x4d6689=a351_0x4d66[_0x3a4515];return _0x4d6689;};const a351_0xc73da0=a351_0x3933;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a351_0xc73da0(0x66)]},'username':{'type':DataTypes['STRING'],'unique':a351_0xc73da0(0x68)},'password':{'type':DataTypes[a351_0xc73da0(0x66)]},'email':{'type':DataTypes['STRING']},'remoteUri':{'type':DataTypes[a351_0xc73da0(0x66)],'unique':'remoteUri'},'serverUrl':{'type':DataTypes[a351_0xc73da0(0x66)]}};module[a351_0xc73da0(0x67)][a351_0xc73da0(0x65)]=attributes; \ No newline at end of file +const a351_0x2ba5=['exports','sequelize','remoteUri','username','STRING'];(function(_0x45088e,_0x1f8893){const _0x2ba5e9=function(_0x174457){while(--_0x174457){_0x45088e['push'](_0x45088e['shift']());}};_0x2ba5e9(++_0x1f8893);}(a351_0x2ba5,0xe1));const a351_0x1744=function(_0x45088e,_0x1f8893){_0x45088e=_0x45088e-0x94;let _0x2ba5e9=a351_0x2ba5[_0x45088e];return _0x2ba5e9;};const a351_0x82bed6=a351_0x1744;'use strict';const {DataTypes}=require(a351_0x82bed6(0x95)),attributes={'name':{'type':DataTypes[a351_0x82bed6(0x98)]},'description':{'type':DataTypes[a351_0x82bed6(0x98)]},'username':{'type':DataTypes[a351_0x82bed6(0x98)],'unique':a351_0x82bed6(0x97)},'password':{'type':DataTypes[a351_0x82bed6(0x98)]},'email':{'type':DataTypes[a351_0x82bed6(0x98)]},'remoteUri':{'type':DataTypes[a351_0x82bed6(0x98)],'unique':a351_0x82bed6(0x96)},'serverUrl':{'type':DataTypes['STRING']}};module[a351_0x82bed6(0x94)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.controller.js b/server/api/intServicenowAccount/intServicenowAccount.controller.js index 32099f9..a84097b 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.controller.js +++ b/server/api/intServicenowAccount/intServicenowAccount.controller.js @@ -1 +1 @@ -const a352_0x9721=['category','GET','short_description','activity_due','label','password','correlation_id','false','api','map','opened_at','../../components/integrations/configuration','calendar_stc','user_input','../../mysqldb','Descriptions','forEach','time_worked','made_sla','impact','test','work_notes_list','cmdb_ci','undefined','length','parent','sys_choice?sysparm_query=name=incident^element=','description','assign','query','VIRTUAL','parent_incident','assigned_to','like','sys_created_by','offset','sys_tags','type','hold_reason','upon_approval','stack','concat','value','email','sla_due','urgency','sendStatus','active','findAll','reopen_count','False','lodash','util','child_incidents','correlation_display','Wrong\x20credentials','channel','set','log','destroy','ServicenowField','result','format','remove','sys_mod_count','follow_up','addConfiguration','boolean','options','push','incident_state','true','fieldName','sys_updated_on','internalType','getConfigurations','where','sequelize','comments','statusCode','lastIndexOf','includeAll','ServicenowConfiguration','filters','ServicenowAccount','ServiceNow\x20error:\x20','filter','problem_id','serverUrl','Subjects','calendar_duration','close_notes','json','work_notes','resolved_by','keys','attributes','getFields','create','send','name','getDescriptions','status','findOne','company','work_start','model','end','../../components/parsers/qs','all','then','rawAttributes','True','delivery_task','includes','params','sort','key','rows','approval','body','close_code','catch','sys_domain_path','business_service','notify','nolimit','error','resolved_at','incident?sysparm_display_value=all','show','opened_by','username','merge','closed_by','assignment_group','update','upon_reject','reassignment_count','rfc','additional_assignee_list','remoteUri','knowledge','limit','order','subcategory','include','contact_type','fields','intersection','pick','sys_class_name','substring','request-promise-native','count','business_duration','slice','delivery_plan','priority','state'];(function(_0x4331df,_0x43bca8){const _0x9721c5=function(_0x3925c9){while(--_0x3925c9){_0x4331df['push'](_0x4331df['shift']());}};_0x9721c5(++_0x43bca8);}(a352_0x9721,0xff));const a352_0x3925=function(_0x4331df,_0x43bca8){_0x4331df=_0x4331df-0xc4;let _0x9721c5=a352_0x9721[_0x4331df];return _0x9721c5;};const a352_0x18a97f=a352_0x3925;'use strict';const rp=require(a352_0x18a97f(0xfe)),util=require(a352_0x18a97f(0x139)),_=require(a352_0x18a97f(0x138)),qs=require(a352_0x18a97f(0xd1)),logger=require('../../config/logger')(a352_0x18a97f(0x10d)),{db}=require(a352_0x18a97f(0x113)),{Op}=require(a352_0x18a97f(0x152)),integrations=require(a352_0x18a97f(0x110));function respondWithResult(_0x4eabdd,_0x1d173b){return _0x1d173b=_0x1d173b||0xc8,function(_0x1ddb1c){const _0x2ca6ea=a352_0x3925;if(_0x1ddb1c)return _0x4eabdd[_0x2ca6ea(0xcb)](_0x1d173b)['json'](_0x1ddb1c);};}function respondWithFilteredResult(_0x5e0510,_0x27e03d){return function(_0x20e925){const _0x1bba69=a352_0x3925;if(_0x20e925){const _0x5e8a12=_0x20e925[_0x1bba69(0xff)],_0x56a306=_0x27e03d['offset'];let _0x24c409=_0x27e03d[_0x1bba69(0x128)]+_0x27e03d[_0x1bba69(0xf4)],_0x4715e9;return _0x24c409>=_0x5e8a12?(_0x24c409=_0x5e8a12,_0x4715e9=0xc8):_0x4715e9=0xce,_0x5e0510['status'](_0x4715e9),_0x5e0510[_0x1bba69(0x13e)]('Content-Range',_0x56a306+'-'+_0x24c409+'/'+_0x5e8a12)[_0x1bba69(0x161)](_0x20e925);}return null;};}function saveUpdates(_0x2ddcf4){return function(_0x57c466){const _0x210ea1=a352_0x3925;if(_0x57c466)return _0x57c466['update'](_0x2ddcf4)[_0x210ea1(0xd3)](function(_0x2fc399){return _0x2fc399;});return null;};}function removeEntity(_0x38b9f6){return function(_0x1f8ae5){const _0x376ba8=a352_0x3925;if(_0x1f8ae5)return _0x1f8ae5[_0x376ba8(0x140)]()[_0x376ba8(0xd3)](function(){const _0x1cffcf=_0x376ba8;_0x38b9f6[_0x1cffcf(0xcb)](0xcc)[_0x1cffcf(0xd0)]();});};}function handleEntityNotFound(_0x1fabc1){return function(_0x20a495){const _0x2faac4=a352_0x3925;return!_0x20a495&&_0x1fabc1[_0x2faac4(0x133)](0x194),_0x20a495;};}function handleError(_0x5066c2,_0x319111){return _0x319111=_0x319111||0x1f4,function(_0x5c999f){const _0x421095=a352_0x3925;logger['error'](_0x5c999f[_0x421095(0x12d)]),_0x5c999f[_0x421095(0xc9)]&&delete _0x5c999f[_0x421095(0xc9)],_0x5066c2[_0x421095(0xcb)](_0x319111)[_0x421095(0xc8)](_0x5c999f);};}exports['index']=function(_0x10587f,_0x40cf80){const _0x58bdc5=a352_0x18a97f;let _0x413b37={};const _0xb642e6={},_0x23cb35={'count':0x0,'rows':[]},_0x3c2320=_[_0x58bdc5(0x10e)](db['ServicenowAccount'][_0x58bdc5(0xd4)],function(_0x41988e){const _0x3f748f=_0x58bdc5;return{'name':_0x41988e[_0x3f748f(0x14d)],'type':_0x41988e[_0x3f748f(0x12a)][_0x3f748f(0xda)]};});_0xb642e6[_0x58bdc5(0xcf)]=_[_0x58bdc5(0x10e)](_0x3c2320,'name'),_0xb642e6[_0x58bdc5(0x122)]=_[_0x58bdc5(0xc4)](_0x10587f[_0x58bdc5(0x122)]),_0xb642e6['filters']=_[_0x58bdc5(0xfa)](_0xb642e6['model'],_0xb642e6[_0x58bdc5(0x122)]),_0x413b37[_0x58bdc5(0xc5)]=_[_0x58bdc5(0xfa)](_0xb642e6[_0x58bdc5(0xcf)],qs['fields'](_0x10587f[_0x58bdc5(0x122)][_0x58bdc5(0xf9)])),_0x413b37[_0x58bdc5(0xc5)]=_0x413b37['attributes'][_0x58bdc5(0x11d)]?_0x413b37['attributes']:_0xb642e6[_0x58bdc5(0xcf)];typeof _0x10587f[_0x58bdc5(0x122)][_0x58bdc5(0xe3)]===_0x58bdc5(0x11c)&&(_0x413b37[_0x58bdc5(0xf4)]=qs[_0x58bdc5(0xf4)](_0x10587f[_0x58bdc5(0x122)][_0x58bdc5(0xf4)]),_0x413b37[_0x58bdc5(0x128)]=qs['offset'](_0x10587f[_0x58bdc5(0x122)][_0x58bdc5(0x128)]));_0x413b37[_0x58bdc5(0xf5)]=qs[_0x58bdc5(0xd9)](_0x10587f['query'][_0x58bdc5(0xd9)]),_0x413b37[_0x58bdc5(0x151)]=qs['filters'](_[_0x58bdc5(0xfb)](_0x10587f[_0x58bdc5(0x122)],_0xb642e6[_0x58bdc5(0x158)]),_0x3c2320);_0x10587f[_0x58bdc5(0x122)][_0x58bdc5(0x15b)]&&(_0x413b37[_0x58bdc5(0x151)]=_[_0x58bdc5(0xea)](_0x413b37['where'],{[Op['or']]:_[_0x58bdc5(0x10e)](_0x3c2320,function(_0x4a6287){const _0xc424e8=_0x58bdc5;if(_0x4a6287['type']!==_0xc424e8(0x123)){const _0x332783={};return _0x332783[_0x4a6287[_0xc424e8(0xc9)]]={[Op[_0xc424e8(0x126)]]:'%'+_0x10587f['query'][_0xc424e8(0x15b)]+'%'},_0x332783;}})}));_0x413b37=_[_0x58bdc5(0xea)]({},_0x413b37,_0x10587f['options']);const _0x4910ed={'where':_0x413b37[_0x58bdc5(0x151)]};return db[_0x58bdc5(0x159)][_0x58bdc5(0xff)](_0x4910ed)[_0x58bdc5(0xd3)](function(_0x1bcba4){const _0x3a4c2e=_0x58bdc5;return _0x23cb35['count']=_0x1bcba4,_0x10587f[_0x3a4c2e(0x122)][_0x3a4c2e(0x156)]&&(_0x413b37[_0x3a4c2e(0xf7)]=[{'all':!![]}]),db[_0x3a4c2e(0x159)][_0x3a4c2e(0x135)](_0x413b37);})[_0x58bdc5(0xd3)](function(_0x32d0ed){const _0xbc3402=_0x58bdc5;return _0x23cb35[_0xbc3402(0xdb)]=_0x32d0ed,_0x23cb35;})[_0x58bdc5(0xd3)](respondWithFilteredResult(_0x40cf80,_0x413b37))['catch'](handleError(_0x40cf80,null));},exports[a352_0x18a97f(0xe7)]=function(_0x23ee5a,_0x5d6540){const _0x4647a5=a352_0x18a97f;let _0x30f06f={'raw':![],'where':{'id':_0x23ee5a[_0x4647a5(0xd8)]['id']}};const _0x2dce68={};return _0x2dce68[_0x4647a5(0xcf)]=_['keys'](db[_0x4647a5(0x159)][_0x4647a5(0xd4)]),_0x2dce68[_0x4647a5(0x122)]=_[_0x4647a5(0xc4)](_0x23ee5a[_0x4647a5(0x122)]),_0x2dce68[_0x4647a5(0x158)]=_[_0x4647a5(0xfa)](_0x2dce68[_0x4647a5(0xcf)],_0x2dce68['query']),_0x30f06f['attributes']=_[_0x4647a5(0xfa)](_0x2dce68[_0x4647a5(0xcf)],qs[_0x4647a5(0xf9)](_0x23ee5a[_0x4647a5(0x122)][_0x4647a5(0xf9)])),_0x30f06f[_0x4647a5(0xc5)]=_0x30f06f['attributes'][_0x4647a5(0x11d)]?_0x30f06f[_0x4647a5(0xc5)]:_0x2dce68[_0x4647a5(0xcf)],_0x23ee5a[_0x4647a5(0x122)]['includeAll']&&(_0x30f06f[_0x4647a5(0xf7)]=[{'all':!![]}]),_0x30f06f=_[_0x4647a5(0xea)]({},_0x30f06f,_0x23ee5a['options']),db[_0x4647a5(0x159)][_0x4647a5(0xcc)](_0x30f06f)[_0x4647a5(0xd3)](handleEntityNotFound(_0x5d6540,null))[_0x4647a5(0xd3)](respondWithResult(_0x5d6540,null))['catch'](handleError(_0x5d6540,null));},exports['create']=function(_0x128e1e,_0x3def92){const _0x372aad=a352_0x18a97f;return db[_0x372aad(0x159)][_0x372aad(0xc7)](_0x128e1e[_0x372aad(0xdd)],{})['then'](respondWithResult(_0x3def92,0xc9))[_0x372aad(0xdf)](handleError(_0x3def92,null));},exports[a352_0x18a97f(0xed)]=function(_0x179550,_0x2b4d64){const _0x34fc4f=a352_0x18a97f;return _0x179550[_0x34fc4f(0xdd)]['id']&&delete _0x179550[_0x34fc4f(0xdd)]['id'],db[_0x34fc4f(0x159)][_0x34fc4f(0xcc)]({'where':{'id':_0x179550['params']['id']}})[_0x34fc4f(0xd3)](handleEntityNotFound(_0x2b4d64,null))[_0x34fc4f(0xd3)](saveUpdates(_0x179550[_0x34fc4f(0xdd)],null))[_0x34fc4f(0xd3)](respondWithResult(_0x2b4d64,null))[_0x34fc4f(0xdf)](handleError(_0x2b4d64,null));},exports[a352_0x18a97f(0x140)]=function(_0x496df6,_0x24daea){const _0x4a3fb2=a352_0x18a97f;return db[_0x4a3fb2(0x159)][_0x4a3fb2(0xcc)]({'where':{'id':_0x496df6[_0x4a3fb2(0xd8)]['id']}})['then'](handleEntityNotFound(_0x24daea,null))[_0x4a3fb2(0xd3)](removeEntity(_0x24daea,null))['catch'](handleError(_0x24daea,null));},exports[a352_0x18a97f(0x150)]=function(_0x342ac8,_0x574200){const _0x448427=a352_0x18a97f;let _0x12e5e8={};const _0x13565d={};let _0xe7e1f9,_0xc5b89d;return db[_0x448427(0x159)]['findOne']({'where':{'id':_0x342ac8[_0x448427(0xd8)]['id']}})[_0x448427(0xd3)](handleEntityNotFound(_0x574200,null))[_0x448427(0xd3)](function(_0x2b6c6d){const _0x4cbd5e=_0x448427;if(_0x2b6c6d)return _0xe7e1f9=_0x2b6c6d,_0x13565d['model']=_[_0x4cbd5e(0xc4)](db['ServicenowConfiguration'][_0x4cbd5e(0xd4)]),_0x13565d[_0x4cbd5e(0x122)]=_[_0x4cbd5e(0xc4)](_0x342ac8[_0x4cbd5e(0x122)]),_0x13565d[_0x4cbd5e(0x158)]=_['intersection'](_0x13565d[_0x4cbd5e(0xcf)],_0x13565d[_0x4cbd5e(0x122)]),_0x12e5e8[_0x4cbd5e(0xc5)]=_[_0x4cbd5e(0xfa)](_0x13565d[_0x4cbd5e(0xcf)],qs[_0x4cbd5e(0xf9)](_0x342ac8[_0x4cbd5e(0x122)][_0x4cbd5e(0xf9)])),_0x12e5e8[_0x4cbd5e(0xc5)]=_0x12e5e8[_0x4cbd5e(0xc5)][_0x4cbd5e(0x11d)]?_0x12e5e8[_0x4cbd5e(0xc5)]:_0x13565d[_0x4cbd5e(0xcf)],_0x12e5e8[_0x4cbd5e(0xf5)]=qs[_0x4cbd5e(0xd9)](_0x342ac8[_0x4cbd5e(0x122)][_0x4cbd5e(0xd9)]),_0x12e5e8[_0x4cbd5e(0x151)]=qs[_0x4cbd5e(0x158)](_[_0x4cbd5e(0xfb)](_0x342ac8['query'],_0x13565d[_0x4cbd5e(0x158)])),_0x342ac8['query'][_0x4cbd5e(0x15b)]&&(_0x12e5e8[_0x4cbd5e(0x151)]=_[_0x4cbd5e(0xea)](_0x12e5e8['where'],{[Op['or']]:_[_0x4cbd5e(0x10e)](_0x12e5e8[_0x4cbd5e(0xc5)],function(_0x22cea6){const _0x142c76=_0x4cbd5e,_0x495f66={};return _0x495f66[_0x22cea6]={[Op[_0x142c76(0x126)]]:'%'+_0x342ac8[_0x142c76(0x122)][_0x142c76(0x15b)]+'%'},_0x495f66;})})),_0x12e5e8=_['merge']({},_0x12e5e8,_0x342ac8[_0x4cbd5e(0x149)]),_0xe7e1f9[_0x4cbd5e(0x150)](_0x12e5e8);})['then'](function(_0x380c18){const _0x5af995=_0x448427;if(_0x380c18)return _0xc5b89d=_0x380c18[_0x5af995(0x11d)],typeof _0x342ac8['query']['nolimit']===_0x5af995(0x11c)&&(_0x12e5e8[_0x5af995(0xf4)]=qs[_0x5af995(0xf4)](_0x342ac8[_0x5af995(0x122)][_0x5af995(0xf4)]),_0x12e5e8['offset']=qs[_0x5af995(0x128)](_0x342ac8[_0x5af995(0x122)][_0x5af995(0x128)])),_0xe7e1f9['getConfigurations'](_0x12e5e8);})[_0x448427(0xd3)](function(_0x531167){if(_0x531167)return _0x531167?{'count':_0xc5b89d,'rows':_0x531167}:null;})['then'](respondWithResult(_0x574200,null))[_0x448427(0xdf)](handleError(_0x574200,null));},exports[a352_0x18a97f(0x147)]=function(_0x2cc0f7,_0x5d8393){const _0x4dd24e=a352_0x18a97f;return _0x2cc0f7[_0x4dd24e(0xdd)]['id']&&delete _0x2cc0f7[_0x4dd24e(0xdd)]['id'],db[_0x4dd24e(0x159)][_0x4dd24e(0xcc)]({'where':{'id':_0x2cc0f7[_0x4dd24e(0xd8)]['id']}})[_0x4dd24e(0xd3)](handleEntityNotFound(_0x5d8393,null))[_0x4dd24e(0xd3)](function(_0x3595a6){const _0x37197c=_0x4dd24e;if(_0x3595a6)return _0x2cc0f7[_0x37197c(0xdd)]['AccountId']=_0x3595a6['id'],_0x2cc0f7[_0x37197c(0xdd)]['Subjects']=integrations['getSubjects'](_0x2cc0f7[_0x37197c(0xdd)][_0x37197c(0x13d)],_0x2cc0f7['body']['type']),_0x2cc0f7[_0x37197c(0xdd)][_0x37197c(0x114)]=integrations[_0x37197c(0xca)](_0x2cc0f7[_0x37197c(0xdd)][_0x37197c(0x13d)],_0x2cc0f7[_0x37197c(0xdd)][_0x37197c(0x12a)]),db[_0x37197c(0x157)][_0x37197c(0xc7)](_0x2cc0f7['body'],{'include':[{'model':db[_0x37197c(0x141)],'as':_0x37197c(0x15e)},{'model':db[_0x37197c(0x141)],'as':'Descriptions'}]});return null;})[_0x4dd24e(0xd3)](respondWithResult(_0x5d8393,null))['catch'](handleError(_0x5d8393,null));},exports[a352_0x18a97f(0xc6)]=function(_0x440487,_0x24c08f){const _0x2ab58c=a352_0x18a97f,_0xf23b91=[_0x2ab58c(0x117),_0x2ab58c(0x12b),_0x2ab58c(0xf3),_0x2ab58c(0xf6),_0x2ab58c(0xde),_0x2ab58c(0xe2),'incident_state','severity','category'],_0x25fa42=[_0x2ab58c(0x11e),_0x2ab58c(0x117),'caused_by','watch_list',_0x2ab58c(0xee),_0x2ab58c(0x14e),_0x2ab58c(0x13a),_0x2ab58c(0x12b),'approval_history','number',_0x2ab58c(0x163),'sys_updated_by',_0x2ab58c(0xe8),_0x2ab58c(0x112),'sys_created_on','sys_domain',_0x2ab58c(0x104),_0x2ab58c(0x127),'knowledge',_0x2ab58c(0xf5),_0x2ab58c(0x111),'closed_at',_0x2ab58c(0x11b),_0x2ab58c(0x102),_0x2ab58c(0x118),_0x2ab58c(0x134),_0x2ab58c(0x11a),_0x2ab58c(0xe1),_0x2ab58c(0x103),_0x2ab58c(0xe0),_0x2ab58c(0xf0),_0x2ab58c(0x116),'expected_start',_0x2ab58c(0x10f),_0x2ab58c(0x100),'group_list','work_end','reopened_time',_0x2ab58c(0xe5),'caller_id','approval_set',_0x2ab58c(0xf6),_0x2ab58c(0x162),_0x2ab58c(0x107),'close_code',_0x2ab58c(0x13b),_0x2ab58c(0xd6),_0x2ab58c(0xce),_0x2ab58c(0xec),'business_stc',_0x2ab58c(0xf1),_0x2ab58c(0x120),_0x2ab58c(0x15f),_0x2ab58c(0xe2),_0x2ab58c(0xfc),_0x2ab58c(0x160),_0x2ab58c(0xeb),_0x2ab58c(0x146),_0x2ab58c(0x124),'sys_id',_0x2ab58c(0xf8),'reopened_by',_0x2ab58c(0x14b),_0x2ab58c(0x132),_0x2ab58c(0x15c),_0x2ab58c(0xcd),_0x2ab58c(0xef),_0x2ab58c(0x108),_0x2ab58c(0x125),'severity',_0x2ab58c(0x153),_0x2ab58c(0x131),_0x2ab58c(0xdc),'comments_and_work_notes','due_date',_0x2ab58c(0x145),_0x2ab58c(0x136),_0x2ab58c(0x129),'escalation',_0x2ab58c(0x12c),_0x2ab58c(0x10b),'location',_0x2ab58c(0x105)];let _0x4f22aa='',_0x2154b7='',_0x2ef45c=[],_0x1794a4='',_0x37fce9='',_0x53e6a1=[],_0x5b44d9='',_0x46808f='',_0x86de71={},_0x46d6a5='';return db[_0x2ab58c(0x159)][_0x2ab58c(0xcc)]({'where':{'id':_0x440487['params']['id']},'attributes':['id',_0x2ab58c(0xe9),_0x2ab58c(0x10a),_0x2ab58c(0x130),_0x2ab58c(0xf2),_0x2ab58c(0x15d)]})[_0x2ab58c(0xd3)](handleEntityNotFound(_0x24c08f,null))[_0x2ab58c(0xd3)](function(_0x5a6fb5){const _0x680b03=_0x2ab58c;if(_0x5a6fb5){_0x46d6a5=_0x5a6fb5[_0x680b03(0xf2)];const _0x1190be=_0x46d6a5[_0x680b03(0x101)](-0x1);_0x1190be==='/'&&(_0x46d6a5=_0x46d6a5[_0x680b03(0xfd)](0x0,_0x46d6a5[_0x680b03(0x155)](_0x1190be)));_0x46808f=util[_0x680b03(0x143)]('%s/api/now/doc/table/schema/',_0x46d6a5),_0x5b44d9=util['format']('%s/api/now/table/',_0x46d6a5),_0x86de71={'user':_0x5a6fb5[_0x680b03(0xe9)],'pass':_0x5a6fb5[_0x680b03(0x10a)]};const _0x405243={'method':_0x680b03(0x106),'uri':_0x46808f+_0x680b03(0xe6),'auth':_0x86de71,'json':!![]};return rp(_0x405243);}})[_0x2ab58c(0xd3)](function(_0x45371c){const _0x26d6b7=_0x2ab58c;return _0x45371c[_0x26d6b7(0x142)][_0x26d6b7(0x11d)]>0x0&&(_0x4f22aa=_0x45371c[_0x26d6b7(0x142)]),console[_0x26d6b7(0x13f)]('incident\x20table\x20objects',_0x4f22aa),_0x53e6a1=[],_0x2154b7=Object[_0x26d6b7(0x121)]([],_0x4f22aa),_[_0x26d6b7(0x144)](_0x2154b7,function(_0x3b4f0b){const _0x54c840=_0x26d6b7;return!_0xf23b91[_0x54c840(0xd7)](_0x3b4f0b[_0x54c840(0xc9)]);}),_0x2154b7[_0x26d6b7(0x115)](function(_0x1b24cc){const _0x4942e7=_0x26d6b7,_0x2f6351=createFieldObject(_0x5b44d9,_0x86de71,_0x1b24cc[_0x4942e7(0x14f)],_0x1b24cc[_0x4942e7(0xc9)],_0x1b24cc['label'],![]);_0x53e6a1[_0x4942e7(0x14a)](_0x2f6351);}),Promise['all'](_0x53e6a1);})[_0x2ab58c(0xd3)](function(_0x467e71){const _0x3c7fd7=_0x2ab58c;return _0x2ef45c=_0x467e71,_0x1794a4=Object[_0x3c7fd7(0x121)]([],_0x4f22aa),console[_0x3c7fd7(0x13f)]('TCL:\x20_object',_0x4f22aa),_[_0x3c7fd7(0x144)](_0x1794a4,function(_0xc7a793){const _0xfc85d0=_0x3c7fd7;return _0x25fa42['includes'](_0xc7a793[_0xfc85d0(0xc9)]);}),console[_0x3c7fd7(0x13f)]('TCL:\x20exports.getEntityFields\x20->\x20_objectsCustom',_0x1794a4),_0x53e6a1=[],_0x1794a4[_0x3c7fd7(0x115)](function(_0x17be88){const _0x31307e=_0x3c7fd7,_0x2b7f00=createFieldObject(_0x5b44d9,_0x86de71,_0x17be88[_0x31307e(0x14f)],_0x17be88[_0x31307e(0xc9)],_0x17be88[_0x31307e(0x109)],!![]);_0x53e6a1[_0x31307e(0x14a)](_0x2b7f00);}),Promise[_0x3c7fd7(0xd2)](_0x53e6a1);})[_0x2ab58c(0xd3)](function(_0x25fca9){const _0x29ee39=_0x2ab58c;_0x37fce9=_0x25fca9;const _0x5a0566=_0x2ef45c[_0x29ee39(0x12e)](_0x37fce9);return{'count':_0x5a0566['length'],'rows':_0x5a0566};})[_0x2ab58c(0xd3)](respondWithResult(_0x24c08f,null))[_0x2ab58c(0xdf)](function(_0x5eccc8){const _0x4d2604=_0x2ab58c;console[_0x4d2604(0x13f)](_0x4d2604(0x15a)+_0x5eccc8);let _0x230c00=_0x440487[_0x4d2604(0x122)][_0x4d2604(0x119)]?0x1f4:_0x5eccc8['statusCode']||0x1f4;logger[_0x4d2604(0xe4)](_0x5eccc8[_0x4d2604(0x12d)]),delete _0x5eccc8[_0x4d2604(0xc9)],_0x230c00===0x191&&(_0x230c00=0x190),_0x24c08f['status'](_0x230c00)['send'](_0x440487[_0x4d2604(0x122)][_0x4d2604(0x119)]?{'message':_0x4d2604(0x13c),'statusCode':_0x5eccc8[_0x4d2604(0x154)]}:_0x5eccc8);});};function createFieldObject(_0x51033c,_0x461ea7,_0x3adb6e,_0x4a3249,_0xd153d3,_0x39d818){return new Promise(function(_0x408d0c){const _0x5a91af=a352_0x3925,_0x29aaaa={'id':_0x4a3249,'name':_0xd153d3,'custom':_0x39d818};if(_0x3adb6e===_0x5a91af(0x148))_0x29aaaa[_0x5a91af(0x149)]=[{'name':_0x5a91af(0xd5),'value':_0x5a91af(0x14c)},{'name':_0x5a91af(0x137),'value':_0x5a91af(0x10c)}],_0x408d0c(_0x29aaaa);else{const _0x3d8011={'method':_0x5a91af(0x106),'uri':_0x51033c+_0x5a91af(0x11f)+_0x4a3249,'auth':_0x461ea7,'json':!![]};return rp(_0x3d8011)[_0x5a91af(0xd3)](function(_0x3d687d){const _0x4368b3=_0x5a91af,_0x36a545=[];_0x3d687d[_0x4368b3(0x142)][_0x4368b3(0x11d)]>0x0&&_0x3d687d[_0x4368b3(0x142)][_0x4368b3(0x115)](function(_0xbc4dfa){const _0x12c34c=_0x4368b3;if(_0xbc4dfa['inactive']===_0x12c34c(0x10c)){const _0x47b967={'name':_0xbc4dfa[_0x12c34c(0x109)],'value':_0xbc4dfa[_0x12c34c(0x12f)]};_0x36a545[_0x12c34c(0x14a)](_0x47b967);}}),_0x29aaaa['options']=_0x36a545,_0x29aaaa['options'][_0x4368b3(0x11d)]>0x0?_0x408d0c(_0x29aaaa):_0x39d818==![]?_0x408d0c():_0x408d0c(_0x29aaaa);});}});} \ No newline at end of file +const a352_0x5c8e=['filters','where','label','Descriptions','create','upon_reject','status','assign','internalType','set','false','follow_up','sys_updated_on','sys_domain_path','sys_id','sendStatus','description','name','close_code','length','assigned_to','category','cmdb_ci','includeAll','location','params','comments_and_work_notes','include','fields','channel','True','business_stc','findOne','count','sort','getConfigurations','catch','../../config/logger','short_description','incident_state','caused_by','problem_id','GET','getFields','subcategory','json','active','correlation_id','severity','opened_at','rows','resolved_at','body','intersection','approval','incident\x20table\x20objects','fieldName','type','stack','nolimit','correlation_display','format','%s/api/now/doc/table/schema/','sys_created_by','opened_by','like','sys_domain','hold_reason','serverUrl','../../components/parsers/qs','impact','map','closed_at','reopen_count','addConfiguration','offset','getDescriptions','then','notify','model','business_service','TCL:\x20exports.getEntityFields\x20->\x20_objectsCustom','error','merge','reopened_by','reopened_time','send','findAll','work_notes','time_worked','order','Wrong\x20credentials','sequelize','options','VIRTUAL','caller_id','work_start','contact_type','Subjects','forEach','sys_updated_by','ServicenowConfiguration','state','approval_set','substring','keys','test','sla_due','made_sla','request-promise-native','index','escalation','slice','username','ServicenowAccount','%s/api/now/table/','value','password','query','boolean','sys_created_on','business_duration','rawAttributes','../../mysqldb','child_incidents','undefined','key','company','api','calendar_duration','calendar_stc','util','assignment_group','remoteUri','reassignment_count','incident?sysparm_display_value=all','end','update','log','email','lastIndexOf','../../components/integrations/configuration','filter','work_end','closed_by','AccountId','ServicenowField','activity_due','sys_class_name','limit','upon_approval','statusCode','attributes','result','parent_incident','due_date','number','False','watch_list','sys_choice?sysparm_query=name=incident^element='];(function(_0x3e8dc8,_0x587b31){const _0x5c8e28=function(_0x12e7b2){while(--_0x12e7b2){_0x3e8dc8['push'](_0x3e8dc8['shift']());}};_0x5c8e28(++_0x587b31);}(a352_0x5c8e,0x1a7));const a352_0x12e7=function(_0x3e8dc8,_0x587b31){_0x3e8dc8=_0x3e8dc8-0x99;let _0x5c8e28=a352_0x5c8e[_0x3e8dc8];return _0x5c8e28;};const a352_0xaa0d9d=a352_0x12e7;'use strict';const rp=require(a352_0xaa0d9d(0x9f)),util=require(a352_0xaa0d9d(0xb5)),_=require('lodash'),qs=require(a352_0xaa0d9d(0x117)),logger=require(a352_0xaa0d9d(0xf7))(a352_0xaa0d9d(0xb2)),{db}=require(a352_0xaa0d9d(0xad)),{Op}=require(a352_0xaa0d9d(0x12e)),integrations=require(a352_0xaa0d9d(0xbf));function respondWithResult(_0xaad524,_0x539b1e){return _0x539b1e=_0x539b1e||0xc8,function(_0x3275a7){const _0x4ba2b9=a352_0x12e7;if(_0x3275a7)return _0xaad524['status'](_0x539b1e)[_0x4ba2b9(0xff)](_0x3275a7);};}function respondWithFilteredResult(_0x6aa023,_0x48ab01){return function(_0x18e493){const _0x579084=a352_0x12e7;if(_0x18e493){const _0x5bd028=_0x18e493[_0x579084(0xf3)],_0x209573=_0x48ab01[_0x579084(0x11d)];let _0x41855f=_0x48ab01[_0x579084(0x11d)]+_0x48ab01[_0x579084(0xc7)],_0x802777;return _0x41855f>=_0x5bd028?(_0x41855f=_0x5bd028,_0x802777=0xc8):_0x802777=0xce,_0x6aa023[_0x579084(0xd8)](_0x802777),_0x6aa023[_0x579084(0xdb)]('Content-Range',_0x209573+'-'+_0x41855f+'/'+_0x5bd028)['json'](_0x18e493);}return null;};}function saveUpdates(_0x3d3641){return function(_0x71d834){const _0x59f4f2=a352_0x12e7;if(_0x71d834)return _0x71d834[_0x59f4f2(0xbb)](_0x3d3641)[_0x59f4f2(0x11f)](function(_0x3454b9){return _0x3454b9;});return null;};}function removeEntity(_0xb122ee){return function(_0x248ec2){const _0x22f6d9=a352_0x12e7;if(_0x248ec2)return _0x248ec2['destroy']()[_0x22f6d9(0x11f)](function(){const _0xf7cab7=_0x22f6d9;_0xb122ee[_0xf7cab7(0xd8)](0xcc)[_0xf7cab7(0xba)]();});};}function handleEntityNotFound(_0x5d9371){return function(_0x3c1554){const _0x161432=a352_0x12e7;return!_0x3c1554&&_0x5d9371[_0x161432(0xe1)](0x194),_0x3c1554;};}function handleError(_0x2709a9,_0x16cf29){return _0x16cf29=_0x16cf29||0x1f4,function(_0x4886c6){const _0x58fb31=a352_0x12e7;logger[_0x58fb31(0x124)](_0x4886c6[_0x58fb31(0x10c)]),_0x4886c6['name']&&delete _0x4886c6[_0x58fb31(0xe3)],_0x2709a9['status'](_0x16cf29)[_0x58fb31(0x128)](_0x4886c6);};}exports[a352_0xaa0d9d(0xa0)]=function(_0x422990,_0x57526e){const _0x531233=a352_0xaa0d9d;let _0x4f4fe7={};const _0x5eccab={},_0x1c1863={'count':0x0,'rows':[]},_0x4334d0=_[_0x531233(0x119)](db[_0x531233(0xa4)][_0x531233(0xac)],function(_0x3b99f5){const _0x3b256b=_0x531233;return{'name':_0x3b99f5[_0x3b256b(0x10a)],'type':_0x3b99f5['type'][_0x3b256b(0xb0)]};});_0x5eccab['model']=_[_0x531233(0x119)](_0x4334d0,'name'),_0x5eccab[_0x531233(0xa8)]=_[_0x531233(0x9b)](_0x422990[_0x531233(0xa8)]),_0x5eccab['filters']=_[_0x531233(0x107)](_0x5eccab[_0x531233(0x121)],_0x5eccab[_0x531233(0xa8)]),_0x4f4fe7[_0x531233(0xca)]=_['intersection'](_0x5eccab[_0x531233(0x121)],qs[_0x531233(0xee)](_0x422990[_0x531233(0xa8)]['fields'])),_0x4f4fe7[_0x531233(0xca)]=_0x4f4fe7[_0x531233(0xca)][_0x531233(0xe5)]?_0x4f4fe7[_0x531233(0xca)]:_0x5eccab['model'];typeof _0x422990[_0x531233(0xa8)][_0x531233(0x10d)]===_0x531233(0xaf)&&(_0x4f4fe7[_0x531233(0xc7)]=qs['limit'](_0x422990[_0x531233(0xa8)][_0x531233(0xc7)]),_0x4f4fe7[_0x531233(0x11d)]=qs[_0x531233(0x11d)](_0x422990[_0x531233(0xa8)][_0x531233(0x11d)]));_0x4f4fe7[_0x531233(0x12c)]=qs[_0x531233(0xf4)](_0x422990[_0x531233(0xa8)][_0x531233(0xf4)]),_0x4f4fe7[_0x531233(0xd3)]=qs[_0x531233(0xd2)](_['pick'](_0x422990[_0x531233(0xa8)],_0x5eccab['filters']),_0x4334d0);_0x422990[_0x531233(0xa8)][_0x531233(0xc0)]&&(_0x4f4fe7[_0x531233(0xd3)]=_[_0x531233(0x125)](_0x4f4fe7[_0x531233(0xd3)],{[Op['or']]:_[_0x531233(0x119)](_0x4334d0,function(_0x46ba6e){const _0x3732bb=_0x531233;if(_0x46ba6e[_0x3732bb(0x10b)]!==_0x3732bb(0x130)){const _0xc0da1c={};return _0xc0da1c[_0x46ba6e['name']]={[Op[_0x3732bb(0x113)]]:'%'+_0x422990['query'][_0x3732bb(0xc0)]+'%'},_0xc0da1c;}})}));_0x4f4fe7=_[_0x531233(0x125)]({},_0x4f4fe7,_0x422990['options']);const _0x1c4e20={'where':_0x4f4fe7[_0x531233(0xd3)]};return db[_0x531233(0xa4)]['count'](_0x1c4e20)['then'](function(_0x3c654b){const _0x510b2d=_0x531233;return _0x1c1863[_0x510b2d(0xf3)]=_0x3c654b,_0x422990[_0x510b2d(0xa8)][_0x510b2d(0xe9)]&&(_0x4f4fe7[_0x510b2d(0xed)]=[{'all':!![]}]),db['ServicenowAccount'][_0x510b2d(0x129)](_0x4f4fe7);})[_0x531233(0x11f)](function(_0x72300){const _0x30dd36=_0x531233;return _0x1c1863[_0x30dd36(0x104)]=_0x72300,_0x1c1863;})[_0x531233(0x11f)](respondWithFilteredResult(_0x57526e,_0x4f4fe7))[_0x531233(0xf6)](handleError(_0x57526e,null));},exports['show']=function(_0xaf8c74,_0x50a923){const _0x397560=a352_0xaa0d9d;let _0x506c3f={'raw':![],'where':{'id':_0xaf8c74[_0x397560(0xeb)]['id']}};const _0x674786={};return _0x674786['model']=_[_0x397560(0x9b)](db[_0x397560(0xa4)][_0x397560(0xac)]),_0x674786[_0x397560(0xa8)]=_[_0x397560(0x9b)](_0xaf8c74[_0x397560(0xa8)]),_0x674786[_0x397560(0xd2)]=_[_0x397560(0x107)](_0x674786[_0x397560(0x121)],_0x674786[_0x397560(0xa8)]),_0x506c3f[_0x397560(0xca)]=_[_0x397560(0x107)](_0x674786[_0x397560(0x121)],qs[_0x397560(0xee)](_0xaf8c74[_0x397560(0xa8)][_0x397560(0xee)])),_0x506c3f[_0x397560(0xca)]=_0x506c3f[_0x397560(0xca)][_0x397560(0xe5)]?_0x506c3f[_0x397560(0xca)]:_0x674786[_0x397560(0x121)],_0xaf8c74[_0x397560(0xa8)][_0x397560(0xe9)]&&(_0x506c3f[_0x397560(0xed)]=[{'all':!![]}]),_0x506c3f=_[_0x397560(0x125)]({},_0x506c3f,_0xaf8c74[_0x397560(0x12f)]),db[_0x397560(0xa4)][_0x397560(0xf2)](_0x506c3f)[_0x397560(0x11f)](handleEntityNotFound(_0x50a923,null))[_0x397560(0x11f)](respondWithResult(_0x50a923,null))[_0x397560(0xf6)](handleError(_0x50a923,null));},exports[a352_0xaa0d9d(0xd6)]=function(_0x4480ae,_0x16740d){const _0x517112=a352_0xaa0d9d;return db[_0x517112(0xa4)]['create'](_0x4480ae[_0x517112(0x106)],{})[_0x517112(0x11f)](respondWithResult(_0x16740d,0xc9))[_0x517112(0xf6)](handleError(_0x16740d,null));},exports[a352_0xaa0d9d(0xbb)]=function(_0x53d428,_0x3f9c8e){const _0x1deee9=a352_0xaa0d9d;return _0x53d428[_0x1deee9(0x106)]['id']&&delete _0x53d428['body']['id'],db[_0x1deee9(0xa4)][_0x1deee9(0xf2)]({'where':{'id':_0x53d428[_0x1deee9(0xeb)]['id']}})[_0x1deee9(0x11f)](handleEntityNotFound(_0x3f9c8e,null))[_0x1deee9(0x11f)](saveUpdates(_0x53d428[_0x1deee9(0x106)],null))[_0x1deee9(0x11f)](respondWithResult(_0x3f9c8e,null))[_0x1deee9(0xf6)](handleError(_0x3f9c8e,null));},exports['destroy']=function(_0x83c7a1,_0x2fceed){const _0x216334=a352_0xaa0d9d;return db['ServicenowAccount'][_0x216334(0xf2)]({'where':{'id':_0x83c7a1[_0x216334(0xeb)]['id']}})[_0x216334(0x11f)](handleEntityNotFound(_0x2fceed,null))[_0x216334(0x11f)](removeEntity(_0x2fceed,null))[_0x216334(0xf6)](handleError(_0x2fceed,null));},exports[a352_0xaa0d9d(0xf5)]=function(_0x469211,_0x26b30b){const _0x14829a=a352_0xaa0d9d;let _0x53b831={};const _0xba0db5={};let _0x55bd11,_0x2b5dc8;return db[_0x14829a(0xa4)][_0x14829a(0xf2)]({'where':{'id':_0x469211['params']['id']}})[_0x14829a(0x11f)](handleEntityNotFound(_0x26b30b,null))[_0x14829a(0x11f)](function(_0x48e1a4){const _0x29f881=_0x14829a;if(_0x48e1a4)return _0x55bd11=_0x48e1a4,_0xba0db5[_0x29f881(0x121)]=_[_0x29f881(0x9b)](db[_0x29f881(0x137)]['rawAttributes']),_0xba0db5['query']=_[_0x29f881(0x9b)](_0x469211[_0x29f881(0xa8)]),_0xba0db5[_0x29f881(0xd2)]=_[_0x29f881(0x107)](_0xba0db5['model'],_0xba0db5['query']),_0x53b831['attributes']=_[_0x29f881(0x107)](_0xba0db5['model'],qs['fields'](_0x469211[_0x29f881(0xa8)]['fields'])),_0x53b831[_0x29f881(0xca)]=_0x53b831[_0x29f881(0xca)][_0x29f881(0xe5)]?_0x53b831[_0x29f881(0xca)]:_0xba0db5[_0x29f881(0x121)],_0x53b831[_0x29f881(0x12c)]=qs[_0x29f881(0xf4)](_0x469211[_0x29f881(0xa8)]['sort']),_0x53b831['where']=qs[_0x29f881(0xd2)](_['pick'](_0x469211['query'],_0xba0db5[_0x29f881(0xd2)])),_0x469211[_0x29f881(0xa8)][_0x29f881(0xc0)]&&(_0x53b831[_0x29f881(0xd3)]=_[_0x29f881(0x125)](_0x53b831['where'],{[Op['or']]:_['map'](_0x53b831['attributes'],function(_0x5245ac){const _0x145751=_0x29f881,_0x57dbd4={};return _0x57dbd4[_0x5245ac]={[Op[_0x145751(0x113)]]:'%'+_0x469211['query'][_0x145751(0xc0)]+'%'},_0x57dbd4;})})),_0x53b831=_[_0x29f881(0x125)]({},_0x53b831,_0x469211[_0x29f881(0x12f)]),_0x55bd11[_0x29f881(0xf5)](_0x53b831);})[_0x14829a(0x11f)](function(_0x3f335a){const _0x4a49a8=_0x14829a;if(_0x3f335a)return _0x2b5dc8=_0x3f335a[_0x4a49a8(0xe5)],typeof _0x469211[_0x4a49a8(0xa8)][_0x4a49a8(0x10d)]===_0x4a49a8(0xaf)&&(_0x53b831[_0x4a49a8(0xc7)]=qs[_0x4a49a8(0xc7)](_0x469211[_0x4a49a8(0xa8)][_0x4a49a8(0xc7)]),_0x53b831[_0x4a49a8(0x11d)]=qs[_0x4a49a8(0x11d)](_0x469211[_0x4a49a8(0xa8)][_0x4a49a8(0x11d)])),_0x55bd11[_0x4a49a8(0xf5)](_0x53b831);})[_0x14829a(0x11f)](function(_0x242dd6){if(_0x242dd6)return _0x242dd6?{'count':_0x2b5dc8,'rows':_0x242dd6}:null;})['then'](respondWithResult(_0x26b30b,null))[_0x14829a(0xf6)](handleError(_0x26b30b,null));},exports[a352_0xaa0d9d(0x11c)]=function(_0x3820a0,_0x434281){const _0x32cb48=a352_0xaa0d9d;return _0x3820a0[_0x32cb48(0x106)]['id']&&delete _0x3820a0[_0x32cb48(0x106)]['id'],db[_0x32cb48(0xa4)]['findOne']({'where':{'id':_0x3820a0[_0x32cb48(0xeb)]['id']}})['then'](handleEntityNotFound(_0x434281,null))[_0x32cb48(0x11f)](function(_0x596bd6){const _0x42c84b=_0x32cb48;if(_0x596bd6)return _0x3820a0['body'][_0x42c84b(0xc3)]=_0x596bd6['id'],_0x3820a0[_0x42c84b(0x106)][_0x42c84b(0x134)]=integrations['getSubjects'](_0x3820a0['body'][_0x42c84b(0xef)],_0x3820a0[_0x42c84b(0x106)][_0x42c84b(0x10b)]),_0x3820a0['body'][_0x42c84b(0xd5)]=integrations[_0x42c84b(0x11e)](_0x3820a0[_0x42c84b(0x106)][_0x42c84b(0xef)],_0x3820a0['body'][_0x42c84b(0x10b)]),db[_0x42c84b(0x137)][_0x42c84b(0xd6)](_0x3820a0[_0x42c84b(0x106)],{'include':[{'model':db['ServicenowField'],'as':_0x42c84b(0x134)},{'model':db[_0x42c84b(0xc4)],'as':_0x42c84b(0xd5)}]});return null;})[_0x32cb48(0x11f)](respondWithResult(_0x434281,null))['catch'](handleError(_0x434281,null));},exports[a352_0xaa0d9d(0xfd)]=function(_0x46132a,_0x5068c9){const _0x2e48a1=a352_0xaa0d9d,_0x1e14b6=[_0x2e48a1(0x9e),_0x2e48a1(0x115),'knowledge','subcategory','close_code',_0x2e48a1(0x120),_0x2e48a1(0xf9),_0x2e48a1(0x102),_0x2e48a1(0xe7)],_0x301f69=['parent',_0x2e48a1(0x9e),_0x2e48a1(0xfa),_0x2e48a1(0xd0),_0x2e48a1(0xd7),_0x2e48a1(0xde),_0x2e48a1(0xae),'hold_reason','approval_history',_0x2e48a1(0xce),'resolved_by',_0x2e48a1(0x136),_0x2e48a1(0x112),'user_input',_0x2e48a1(0xaa),_0x2e48a1(0x114),_0x2e48a1(0x138),_0x2e48a1(0x111),'knowledge','order',_0x2e48a1(0xb4),_0x2e48a1(0x11a),_0x2e48a1(0xe8),'delivery_plan',_0x2e48a1(0x118),_0x2e48a1(0x100),'work_notes_list',_0x2e48a1(0x122),'priority',_0x2e48a1(0xdf),'rfc',_0x2e48a1(0x12b),'expected_start',_0x2e48a1(0x103),_0x2e48a1(0xab),'group_list',_0x2e48a1(0xc1),_0x2e48a1(0x127),_0x2e48a1(0x105),_0x2e48a1(0x131),_0x2e48a1(0x99),_0x2e48a1(0xfe),_0x2e48a1(0x12a),_0x2e48a1(0xf8),_0x2e48a1(0xe4),_0x2e48a1(0x10e),'delivery_task',_0x2e48a1(0x132),_0x2e48a1(0xb6),_0x2e48a1(0xf1),'additional_assignee_list',_0x2e48a1(0xe2),_0x2e48a1(0xb3),'notify',_0x2e48a1(0xc6),'close_notes',_0x2e48a1(0xc2),_0x2e48a1(0xdd),_0x2e48a1(0xcc),_0x2e48a1(0xe0),_0x2e48a1(0x133),_0x2e48a1(0x126),_0x2e48a1(0xf9),'urgency',_0x2e48a1(0xfb),_0x2e48a1(0xb1),_0x2e48a1(0xb8),_0x2e48a1(0xc5),_0x2e48a1(0xe6),_0x2e48a1(0x102),'comments',_0x2e48a1(0x9d),_0x2e48a1(0x108),_0x2e48a1(0xec),_0x2e48a1(0xcd),'sys_mod_count',_0x2e48a1(0x11b),'sys_tags',_0x2e48a1(0xa1),_0x2e48a1(0xc8),_0x2e48a1(0x101),_0x2e48a1(0xea),_0x2e48a1(0xe7)];let _0x4212a3='',_0x134b0b='',_0x5c90c5=[],_0x371c08='',_0x163a88='',_0x4de762=[],_0x45310d='',_0x57210d='',_0x5c5c8d={},_0x5bd406='';return db[_0x2e48a1(0xa4)]['findOne']({'where':{'id':_0x46132a['params']['id']},'attributes':['id','username',_0x2e48a1(0xa7),_0x2e48a1(0xbd),_0x2e48a1(0xb7),_0x2e48a1(0x116)]})[_0x2e48a1(0x11f)](handleEntityNotFound(_0x5068c9,null))['then'](function(_0x3c70bc){const _0x5f5798=_0x2e48a1;if(_0x3c70bc){_0x5bd406=_0x3c70bc[_0x5f5798(0xb7)];const _0x1efc13=_0x5bd406[_0x5f5798(0xa2)](-0x1);_0x1efc13==='/'&&(_0x5bd406=_0x5bd406[_0x5f5798(0x9a)](0x0,_0x5bd406[_0x5f5798(0xbe)](_0x1efc13)));_0x57210d=util[_0x5f5798(0x10f)](_0x5f5798(0x110),_0x5bd406),_0x45310d=util[_0x5f5798(0x10f)](_0x5f5798(0xa5),_0x5bd406),_0x5c5c8d={'user':_0x3c70bc[_0x5f5798(0xa3)],'pass':_0x3c70bc['password']};const _0x6a5647={'method':'GET','uri':_0x57210d+_0x5f5798(0xb9),'auth':_0x5c5c8d,'json':!![]};return rp(_0x6a5647);}})['then'](function(_0x3387b5){const _0x4ecac4=_0x2e48a1;return _0x3387b5[_0x4ecac4(0xcb)][_0x4ecac4(0xe5)]>0x0&&(_0x4212a3=_0x3387b5[_0x4ecac4(0xcb)]),console['log'](_0x4ecac4(0x109),_0x4212a3),_0x4de762=[],_0x134b0b=Object['assign']([],_0x4212a3),_['remove'](_0x134b0b,function(_0x1b4d12){const _0x37b2ab=_0x4ecac4;return!_0x1e14b6['includes'](_0x1b4d12[_0x37b2ab(0xe3)]);}),_0x134b0b[_0x4ecac4(0x135)](function(_0x242ed5){const _0x1297b9=_0x4ecac4,_0x5a56a9=createFieldObject(_0x45310d,_0x5c5c8d,_0x242ed5[_0x1297b9(0xda)],_0x242ed5[_0x1297b9(0xe3)],_0x242ed5[_0x1297b9(0xd4)],![]);_0x4de762['push'](_0x5a56a9);}),Promise['all'](_0x4de762);})[_0x2e48a1(0x11f)](function(_0x51cdbb){const _0x1cbb68=_0x2e48a1;return _0x5c90c5=_0x51cdbb,_0x371c08=Object[_0x1cbb68(0xd9)]([],_0x4212a3),console[_0x1cbb68(0xbc)]('TCL:\x20_object',_0x4212a3),_['remove'](_0x371c08,function(_0x506072){return _0x301f69['includes'](_0x506072['name']);}),console['log'](_0x1cbb68(0x123),_0x371c08),_0x4de762=[],_0x371c08[_0x1cbb68(0x135)](function(_0x12f170){const _0x277afd=_0x1cbb68,_0x38af66=createFieldObject(_0x45310d,_0x5c5c8d,_0x12f170['internalType'],_0x12f170[_0x277afd(0xe3)],_0x12f170[_0x277afd(0xd4)],!![]);_0x4de762['push'](_0x38af66);}),Promise['all'](_0x4de762);})[_0x2e48a1(0x11f)](function(_0xe4d5d9){const _0x3ef8b6=_0x2e48a1;_0x163a88=_0xe4d5d9;const _0x3ac628=_0x5c90c5['concat'](_0x163a88);return{'count':_0x3ac628[_0x3ef8b6(0xe5)],'rows':_0x3ac628};})['then'](respondWithResult(_0x5068c9,null))[_0x2e48a1(0xf6)](function(_0xba2c0f){const _0x1a1461=_0x2e48a1;console[_0x1a1461(0xbc)]('ServiceNow\x20error:\x20'+_0xba2c0f);let _0x366c82=_0x46132a[_0x1a1461(0xa8)]['test']?0x1f4:_0xba2c0f[_0x1a1461(0xc9)]||0x1f4;logger[_0x1a1461(0x124)](_0xba2c0f['stack']),delete _0xba2c0f[_0x1a1461(0xe3)],_0x366c82===0x191&&(_0x366c82=0x190),_0x5068c9[_0x1a1461(0xd8)](_0x366c82)['send'](_0x46132a[_0x1a1461(0xa8)][_0x1a1461(0x9c)]?{'message':_0x1a1461(0x12d),'statusCode':_0xba2c0f[_0x1a1461(0xc9)]}:_0xba2c0f);});};function createFieldObject(_0x4e9a96,_0x3c79c8,_0x80083f,_0x183d41,_0x2f2039,_0x4e92d9){return new Promise(function(_0x19c9be){const _0x4bfb5f=a352_0x12e7,_0x66c40d={'id':_0x183d41,'name':_0x2f2039,'custom':_0x4e92d9};if(_0x80083f===_0x4bfb5f(0xa9))_0x66c40d[_0x4bfb5f(0x12f)]=[{'name':_0x4bfb5f(0xf0),'value':'true'},{'name':_0x4bfb5f(0xcf),'value':'false'}],_0x19c9be(_0x66c40d);else{const _0xe19b78={'method':_0x4bfb5f(0xfc),'uri':_0x4e9a96+_0x4bfb5f(0xd1)+_0x183d41,'auth':_0x3c79c8,'json':!![]};return rp(_0xe19b78)[_0x4bfb5f(0x11f)](function(_0x322cec){const _0x2d27da=_0x4bfb5f,_0x4ca6ca=[];_0x322cec[_0x2d27da(0xcb)]['length']>0x0&&_0x322cec['result'][_0x2d27da(0x135)](function(_0x26a69f){const _0x58c7e5=_0x2d27da;if(_0x26a69f['inactive']===_0x58c7e5(0xdc)){const _0x20a701={'name':_0x26a69f[_0x58c7e5(0xd4)],'value':_0x26a69f[_0x58c7e5(0xa6)]};_0x4ca6ca['push'](_0x20a701);}}),_0x66c40d['options']=_0x4ca6ca,_0x66c40d[_0x2d27da(0x12f)][_0x2d27da(0xe5)]>0x0?_0x19c9be(_0x66c40d):_0x4e92d9==![]?_0x19c9be():_0x19c9be(_0x66c40d);});}});} \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.model.js b/server/api/intServicenowAccount/intServicenowAccount.model.js index d02b952..4971148 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.model.js +++ b/server/api/intServicenowAccount/intServicenowAccount.model.js @@ -1 +1 @@ -const a353_0xe876=['sequelize','function','init','./intServicenowAccount.options','exports'];(function(_0xf47ca4,_0x509f5e){const _0xe8766e=function(_0x58f845){while(--_0x58f845){_0xf47ca4['push'](_0xf47ca4['shift']());}};_0xe8766e(++_0x509f5e);}(a353_0xe876,0x11e));const a353_0x58f8=function(_0xf47ca4,_0x509f5e){_0xf47ca4=_0xf47ca4-0x65;let _0xe8766e=a353_0xe876[_0xf47ca4];return _0xe8766e;};const a353_0x48174f=a353_0x58f8;'use strict';const {Model}=require(a353_0x48174f(0x69)),{attributes}=require('./intServicenowAccount.attributes'),{options}=require(a353_0x48174f(0x67));class ServicenowAccount extends Model{}function init(_0x28757a,_0x51ada0){const _0xefdcb=a353_0x48174f,_0x417107=options(_0x28757a),_0x36427e=typeof _0x51ada0===_0xefdcb(0x65)?_0x51ada0(_0x417107):_0x417107;return ServicenowAccount['init'](attributes,_0x36427e),ServicenowAccount;}module[a353_0x48174f(0x68)]['ServicenowAccount']=ServicenowAccount,module[a353_0x48174f(0x68)][a353_0x48174f(0x66)]=init; \ No newline at end of file +const a353_0xf28e=['./intServicenowAccount.options','./intServicenowAccount.attributes','init','exports','function','sequelize'];(function(_0x2cbc8e,_0x3ef409){const _0xf28e02=function(_0x297e90){while(--_0x297e90){_0x2cbc8e['push'](_0x2cbc8e['shift']());}};_0xf28e02(++_0x3ef409);}(a353_0xf28e,0x100));const a353_0x297e=function(_0x2cbc8e,_0x3ef409){_0x2cbc8e=_0x2cbc8e-0x1b9;let _0xf28e02=a353_0xf28e[_0x2cbc8e];return _0xf28e02;};const a353_0x4c292f=a353_0x297e;'use strict';const {Model}=require(a353_0x4c292f(0x1ba)),{attributes}=require(a353_0x4c292f(0x1bc)),{options}=require(a353_0x4c292f(0x1bb));class ServicenowAccount extends Model{}function init(_0x5cb139,_0x292f2b){const _0x101eb4=a353_0x4c292f,_0x539482=options(_0x5cb139),_0x4995e4=typeof _0x292f2b===_0x101eb4(0x1b9)?_0x292f2b(_0x539482):_0x539482;return ServicenowAccount['init'](attributes,_0x4995e4),ServicenowAccount;}module[a353_0x4c292f(0x1be)]['ServicenowAccount']=ServicenowAccount,module[a353_0x4c292f(0x1be)][a353_0x4c292f(0x1bd)]=init; \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.options.js b/server/api/intServicenowAccount/intServicenowAccount.options.js index 74be949..29f5bc7 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.options.js +++ b/server/api/intServicenowAccount/intServicenowAccount.options.js @@ -1 +1 @@ -var a354_0x41b6=['int_servicenow_accounts','exports'];(function(_0x468c7a,_0x1a62c7){var _0x41b6b6=function(_0x18726d){while(--_0x18726d){_0x468c7a['push'](_0x468c7a['shift']());}};_0x41b6b6(++_0x1a62c7);}(a354_0x41b6,0x1db));var a354_0x1872=function(_0x468c7a,_0x1a62c7){_0x468c7a=_0x468c7a-0x1b4;var _0x41b6b6=a354_0x41b6[_0x468c7a];return _0x41b6b6;};var a354_0x260644=a354_0x1872;function options(_0x242a2a){var _0x512424=a354_0x1872;return{'sequelize':_0x242a2a,'tableName':_0x512424(0x1b5),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a354_0x260644(0x1b4)]['options']=options; \ No newline at end of file +var a354_0x8869=['exports','int_servicenow_accounts','options'];(function(_0x135beb,_0x207053){var _0x886958=function(_0x5ba109){while(--_0x5ba109){_0x135beb['push'](_0x135beb['shift']());}};_0x886958(++_0x207053);}(a354_0x8869,0x8e));var a354_0x5ba1=function(_0x135beb,_0x207053){_0x135beb=_0x135beb-0x192;var _0x886958=a354_0x8869[_0x135beb];return _0x886958;};var a354_0x4dbf11=a354_0x5ba1;function options(_0x7427d8){var _0x483634=a354_0x5ba1;return{'sequelize':_0x7427d8,'tableName':_0x483634(0x192),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a354_0x4dbf11(0x194)][a354_0x4dbf11(0x193)]=options; \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.rpc.js b/server/api/intServicenowAccount/intServicenowAccount.rpc.js index 304fb41..b27d514 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.rpc.js +++ b/server/api/intServicenowAccount/intServicenowAccount.rpc.js @@ -1 +1 @@ -const a355_0x157f=['model','info','options','message','debug','limit','where','attributes','stringify','then','../../mysqldb','include','GetServicenowAccount','error','findAll','../../config/logger','raw','map','catch','lodash','ShowServicenowAccount','ServicenowAccount'];(function(_0x24942d,_0x179e5c){const _0x157fa7=function(_0xf4a0b8){while(--_0xf4a0b8){_0x24942d['push'](_0x24942d['shift']());}};_0x157fa7(++_0x179e5c);}(a355_0x157f,0x18a));const a355_0xf4a0=function(_0x24942d,_0x179e5c){_0x24942d=_0x24942d-0x66;let _0x157fa7=a355_0x157f[_0x24942d];return _0x157fa7;};const a355_0x2f5d6a=a355_0xf4a0;'use strict';const _=require(a355_0x2f5d6a(0x7b)),db=require(a355_0x2f5d6a(0x72))['db'],logger=require(a355_0x2f5d6a(0x77))('rpc');exports[a355_0x2f5d6a(0x74)]=function(_0x14d9eb){const _0x1764ed=this;return new Promise(function(_0xb06df7,_0xe696ee){const _0x439528=a355_0xf4a0;return db[_0x439528(0x67)][_0x439528(0x76)]({'raw':_0x14d9eb[_0x439528(0x6a)]?_0x14d9eb[_0x439528(0x6a)][_0x439528(0x78)]===undefined?!![]:![]:!![],'where':_0x14d9eb[_0x439528(0x6a)]?_0x14d9eb[_0x439528(0x6a)][_0x439528(0x6e)]||null:null,'attributes':_0x14d9eb[_0x439528(0x6a)]?_0x14d9eb[_0x439528(0x6a)][_0x439528(0x6f)]||null:null,'limit':_0x14d9eb['options']?_0x14d9eb[_0x439528(0x6a)][_0x439528(0x6d)]||null:null,'include':_0x14d9eb[_0x439528(0x6a)]?_0x14d9eb['options'][_0x439528(0x73)]?_[_0x439528(0x79)](_0x14d9eb[_0x439528(0x6a)][_0x439528(0x73)],function(_0x2566a6){const _0x90d02f=_0x439528;return{'model':db[_0x2566a6[_0x90d02f(0x68)]],'as':_0x2566a6['as'],'attributes':_0x2566a6[_0x90d02f(0x6f)],'include':_0x2566a6[_0x90d02f(0x73)]?_['map'](_0x2566a6['include'],function(_0x49e62f){const _0x3268de=_0x90d02f;return{'model':db[_0x49e62f[_0x3268de(0x68)]],'as':_0x49e62f['as'],'attributes':_0x49e62f[_0x3268de(0x6f)],'include':_0x49e62f[_0x3268de(0x73)]?_[_0x3268de(0x79)](_0x49e62f['include'],function(_0x19ba21){const _0x1a7a10=_0x3268de;return{'model':db[_0x19ba21[_0x1a7a10(0x68)]],'as':_0x19ba21['as'],'attributes':_0x19ba21[_0x1a7a10(0x6f)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x311cea){const _0x3f12e3=_0x439528;logger[_0x3f12e3(0x69)](_0x3f12e3(0x74),_0x14d9eb),logger[_0x3f12e3(0x6c)](_0x3f12e3(0x74),_0x14d9eb,JSON['stringify'](_0x311cea)),_0xb06df7(_0x311cea);})[_0x439528(0x7a)](function(_0x5e98a8){const _0x3fc64b=_0x439528;logger[_0x3fc64b(0x75)]('GetServicenowAccount',_0x5e98a8[_0x3fc64b(0x6b)],_0x14d9eb),_0xe696ee(_0x1764ed[_0x3fc64b(0x75)](0x1f4,_0x5e98a8[_0x3fc64b(0x6b)]));});});},exports['ShowServicenowAccount']=function(_0xed923d){const _0x407bcc=this;return new Promise(function(_0x103559,_0x17ca9e){const _0x1db67c=a355_0xf4a0;return db[_0x1db67c(0x67)]['findOne']({'raw':_0xed923d['options']?_0xed923d[_0x1db67c(0x6a)][_0x1db67c(0x78)]===undefined?!![]:![]:!![],'where':_0xed923d[_0x1db67c(0x6a)]?_0xed923d[_0x1db67c(0x6a)][_0x1db67c(0x6e)]||null:null,'attributes':_0xed923d[_0x1db67c(0x6a)]?_0xed923d['options'][_0x1db67c(0x6f)]||null:null,'include':_0xed923d['options']?_0xed923d[_0x1db67c(0x6a)][_0x1db67c(0x73)]?_[_0x1db67c(0x79)](_0xed923d[_0x1db67c(0x6a)][_0x1db67c(0x73)],function(_0x174dc6){const _0x1d4f43=_0x1db67c;return{'model':db[_0x174dc6[_0x1d4f43(0x68)]],'as':_0x174dc6['as'],'attributes':_0x174dc6[_0x1d4f43(0x6f)],'include':_0x174dc6[_0x1d4f43(0x73)]?_['map'](_0x174dc6[_0x1d4f43(0x73)],function(_0x3aa07b){const _0x23b3e7=_0x1d4f43;return{'model':db[_0x3aa07b[_0x23b3e7(0x68)]],'as':_0x3aa07b['as'],'attributes':_0x3aa07b[_0x23b3e7(0x6f)],'include':_0x3aa07b['include']?_['map'](_0x3aa07b[_0x23b3e7(0x73)],function(_0x114174){const _0x25bb08=_0x23b3e7;return{'model':db[_0x114174['model']],'as':_0x114174['as'],'attributes':_0x114174[_0x25bb08(0x6f)]};}):[]};}):[]};}):[]:[]})[_0x1db67c(0x71)](function(_0x2e45df){const _0x181122=_0x1db67c;logger['info'](_0x181122(0x66),_0xed923d),logger['debug'](_0x181122(0x66),_0xed923d,JSON[_0x181122(0x70)](_0x2e45df)),_0x103559(_0x2e45df);})[_0x1db67c(0x7a)](function(_0x1cd658){const _0x3acb3f=_0x1db67c;logger[_0x3acb3f(0x75)](_0x3acb3f(0x66),_0x1cd658[_0x3acb3f(0x6b)],_0xed923d),_0x17ca9e(_0x407bcc[_0x3acb3f(0x75)](0x1f4,_0x1cd658[_0x3acb3f(0x6b)]));});});}; \ No newline at end of file +const a355_0x52ea=['catch','error','lodash','map','include','model','../../mysqldb','message','rpc','ServicenowAccount','GetServicenowAccount','options','stringify','ShowServicenowAccount','raw','attributes','debug','where','../../config/logger','then'];(function(_0x5a38fb,_0x237f5f){const _0x52eacd=function(_0x529a1f){while(--_0x529a1f){_0x5a38fb['push'](_0x5a38fb['shift']());}};_0x52eacd(++_0x237f5f);}(a355_0x52ea,0xc9));const a355_0x529a=function(_0x5a38fb,_0x237f5f){_0x5a38fb=_0x5a38fb-0xf4;let _0x52eacd=a355_0x52ea[_0x5a38fb];return _0x52eacd;};const a355_0x534bb6=a355_0x529a;'use strict';const _=require(a355_0x534bb6(0xf5)),db=require(a355_0x534bb6(0xf9))['db'],logger=require(a355_0x534bb6(0x105))(a355_0x534bb6(0xfb));exports[a355_0x534bb6(0xfd)]=function(_0x47ea88){const _0x4108be=this;return new Promise(function(_0x2fc3f1,_0x1029cf){const _0x3d0617=a355_0x529a;return db['ServicenowAccount']['findAll']({'raw':_0x47ea88[_0x3d0617(0xfe)]?_0x47ea88[_0x3d0617(0xfe)][_0x3d0617(0x101)]===undefined?!![]:![]:!![],'where':_0x47ea88['options']?_0x47ea88['options'][_0x3d0617(0x104)]||null:null,'attributes':_0x47ea88['options']?_0x47ea88[_0x3d0617(0xfe)][_0x3d0617(0x102)]||null:null,'limit':_0x47ea88[_0x3d0617(0xfe)]?_0x47ea88[_0x3d0617(0xfe)]['limit']||null:null,'include':_0x47ea88[_0x3d0617(0xfe)]?_0x47ea88[_0x3d0617(0xfe)][_0x3d0617(0xf7)]?_[_0x3d0617(0xf6)](_0x47ea88[_0x3d0617(0xfe)][_0x3d0617(0xf7)],function(_0x47d313){const _0x433632=_0x3d0617;return{'model':db[_0x47d313['model']],'as':_0x47d313['as'],'attributes':_0x47d313[_0x433632(0x102)],'include':_0x47d313['include']?_[_0x433632(0xf6)](_0x47d313[_0x433632(0xf7)],function(_0x33aa60){const _0x537402=_0x433632;return{'model':db[_0x33aa60[_0x537402(0xf8)]],'as':_0x33aa60['as'],'attributes':_0x33aa60[_0x537402(0x102)],'include':_0x33aa60[_0x537402(0xf7)]?_[_0x537402(0xf6)](_0x33aa60[_0x537402(0xf7)],function(_0x18175b){const _0x26759a=_0x537402;return{'model':db[_0x18175b[_0x26759a(0xf8)]],'as':_0x18175b['as'],'attributes':_0x18175b[_0x26759a(0x102)]};}):[]};}):[]};}):[]:[]})[_0x3d0617(0x106)](function(_0x5deeaf){const _0x456192=_0x3d0617;logger['info'](_0x456192(0xfd),_0x47ea88),logger[_0x456192(0x103)]('GetServicenowAccount',_0x47ea88,JSON[_0x456192(0xff)](_0x5deeaf)),_0x2fc3f1(_0x5deeaf);})[_0x3d0617(0x107)](function(_0x3038bb){const _0x39a6b2=_0x3d0617;logger[_0x39a6b2(0xf4)](_0x39a6b2(0xfd),_0x3038bb[_0x39a6b2(0xfa)],_0x47ea88),_0x1029cf(_0x4108be[_0x39a6b2(0xf4)](0x1f4,_0x3038bb[_0x39a6b2(0xfa)]));});});},exports['ShowServicenowAccount']=function(_0x3979d1){const _0x22eef9=this;return new Promise(function(_0x525a7f,_0x5ec4e8){const _0x194cf7=a355_0x529a;return db[_0x194cf7(0xfc)]['findOne']({'raw':_0x3979d1[_0x194cf7(0xfe)]?_0x3979d1['options'][_0x194cf7(0x101)]===undefined?!![]:![]:!![],'where':_0x3979d1['options']?_0x3979d1['options'][_0x194cf7(0x104)]||null:null,'attributes':_0x3979d1[_0x194cf7(0xfe)]?_0x3979d1['options'][_0x194cf7(0x102)]||null:null,'include':_0x3979d1['options']?_0x3979d1['options']['include']?_['map'](_0x3979d1[_0x194cf7(0xfe)][_0x194cf7(0xf7)],function(_0x426da6){const _0x390a84=_0x194cf7;return{'model':db[_0x426da6[_0x390a84(0xf8)]],'as':_0x426da6['as'],'attributes':_0x426da6['attributes'],'include':_0x426da6['include']?_[_0x390a84(0xf6)](_0x426da6[_0x390a84(0xf7)],function(_0x38b02f){const _0x416ff4=_0x390a84;return{'model':db[_0x38b02f[_0x416ff4(0xf8)]],'as':_0x38b02f['as'],'attributes':_0x38b02f[_0x416ff4(0x102)],'include':_0x38b02f[_0x416ff4(0xf7)]?_[_0x416ff4(0xf6)](_0x38b02f[_0x416ff4(0xf7)],function(_0x33bd8a){const _0x7d765e=_0x416ff4;return{'model':db[_0x33bd8a[_0x7d765e(0xf8)]],'as':_0x33bd8a['as'],'attributes':_0x33bd8a['attributes']};}):[]};}):[]};}):[]:[]})[_0x194cf7(0x106)](function(_0x22c11f){const _0x25a757=_0x194cf7;logger['info'](_0x25a757(0x100),_0x3979d1),logger[_0x25a757(0x103)]('ShowServicenowAccount',_0x3979d1,JSON[_0x25a757(0xff)](_0x22c11f)),_0x525a7f(_0x22c11f);})['catch'](function(_0x361792){const _0x5cd889=_0x194cf7;logger[_0x5cd889(0xf4)](_0x5cd889(0x100),_0x361792[_0x5cd889(0xfa)],_0x3979d1),_0x5ec4e8(_0x22eef9['error'](0x1f4,_0x361792[_0x5cd889(0xfa)]));});});}; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/index.js b/server/api/intServicenowConfiguration/index.js index 4d00531..7701d5a 100644 --- a/server/api/intServicenowConfiguration/index.js +++ b/server/api/intServicenowConfiguration/index.js @@ -1 +1 @@ -const a356_0x3034=['get','create','getDescriptions','post','isAuthenticated','/:id/fields','/:id','Router','exports','delete','update','getSubjects','index','../../components/auth/service','express'];(function(_0x9b3a7b,_0x3e7305){const _0x3034a3=function(_0x331ba6){while(--_0x331ba6){_0x9b3a7b['push'](_0x9b3a7b['shift']());}};_0x3034a3(++_0x3e7305);}(a356_0x3034,0x190));const a356_0x331b=function(_0x9b3a7b,_0x3e7305){_0x9b3a7b=_0x9b3a7b-0x194;let _0x3034a3=a356_0x3034[_0x9b3a7b];return _0x3034a3;};const a356_0x18961e=a356_0x331b;'use strict';const express=require(a356_0x18961e(0x198)),router=express[a356_0x18961e(0x1a0)](),auth=require(a356_0x18961e(0x197)),controller=require('./intServicenowConfiguration.controller');router[a356_0x18961e(0x199)]('/',auth['isAuthenticated'](),controller[a356_0x18961e(0x196)]),router[a356_0x18961e(0x199)](a356_0x18961e(0x19f),auth[a356_0x18961e(0x19d)](),controller['show']),router[a356_0x18961e(0x199)](a356_0x18961e(0x19e),auth[a356_0x18961e(0x19d)](),controller['getFields']),router[a356_0x18961e(0x199)]('/:id/subjects',auth[a356_0x18961e(0x19d)](),controller[a356_0x18961e(0x195)]),router[a356_0x18961e(0x199)]('/:id/descriptions',auth[a356_0x18961e(0x19d)](),controller[a356_0x18961e(0x19b)]),router[a356_0x18961e(0x19c)]('/',auth[a356_0x18961e(0x19d)](),controller[a356_0x18961e(0x19a)]),router['put'](a356_0x18961e(0x19f),auth[a356_0x18961e(0x19d)](),controller[a356_0x18961e(0x194)]),router[a356_0x18961e(0x1a2)](a356_0x18961e(0x19f),auth[a356_0x18961e(0x19d)](),controller['destroy']),module[a356_0x18961e(0x1a1)]=router; \ No newline at end of file +const a356_0x1c42=['getDescriptions','isAuthenticated','exports','../../components/auth/service','put','post','get','/:id/descriptions','delete','create','/:id/fields','Router','/:id','./intServicenowConfiguration.controller','update'];(function(_0x40f739,_0x22646b){const _0x1c423d=function(_0x4db621){while(--_0x4db621){_0x40f739['push'](_0x40f739['shift']());}};_0x1c423d(++_0x22646b);}(a356_0x1c42,0xcc));const a356_0x4db6=function(_0x40f739,_0x22646b){_0x40f739=_0x40f739-0x159;let _0x1c423d=a356_0x1c42[_0x40f739];return _0x1c423d;};const a356_0x267b7f=a356_0x4db6;'use strict';const express=require('express'),router=express[a356_0x267b7f(0x15b)](),auth=require(a356_0x267b7f(0x162)),controller=require(a356_0x267b7f(0x15d));router[a356_0x267b7f(0x165)]('/',auth['isAuthenticated'](),controller['index']),router[a356_0x267b7f(0x165)](a356_0x267b7f(0x15c),auth[a356_0x267b7f(0x160)](),controller['show']),router[a356_0x267b7f(0x165)](a356_0x267b7f(0x15a),auth[a356_0x267b7f(0x160)](),controller['getFields']),router[a356_0x267b7f(0x165)]('/:id/subjects',auth[a356_0x267b7f(0x160)](),controller['getSubjects']),router['get'](a356_0x267b7f(0x166),auth['isAuthenticated'](),controller[a356_0x267b7f(0x15f)]),router[a356_0x267b7f(0x164)]('/',auth['isAuthenticated'](),controller[a356_0x267b7f(0x159)]),router[a356_0x267b7f(0x163)](a356_0x267b7f(0x15c),auth[a356_0x267b7f(0x160)](),controller[a356_0x267b7f(0x15e)]),router[a356_0x267b7f(0x167)]('/:id',auth[a356_0x267b7f(0x160)](),controller['destroy']),module[a356_0x267b7f(0x161)]=router; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js index 8fc42c1..cba6f25 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js @@ -1 +1 @@ -const a357_0x38f5=['sequelize','STRING','exports'];(function(_0x3db4e3,_0x370dbd){const _0x38f57e=function(_0x3964ff){while(--_0x3964ff){_0x3db4e3['push'](_0x3db4e3['shift']());}};_0x38f57e(++_0x370dbd);}(a357_0x38f5,0x161));const a357_0x3964=function(_0x3db4e3,_0x370dbd){_0x3db4e3=_0x3db4e3-0x1cd;let _0x38f57e=a357_0x38f5[_0x3db4e3];return _0x38f57e;};const a357_0x10b7aa=a357_0x3964;'use strict';const {DataTypes}=require(a357_0x10b7aa(0x1ce)),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a357_0x10b7aa(0x1cf)]}};module[a357_0x10b7aa(0x1cd)]['attributes']=attributes; \ No newline at end of file +const a357_0x4599=['attributes','sequelize','exports','STRING'];(function(_0x5b7a27,_0x25394c){const _0x459997=function(_0x5ad0db){while(--_0x5ad0db){_0x5b7a27['push'](_0x5b7a27['shift']());}};_0x459997(++_0x25394c);}(a357_0x4599,0x7e));const a357_0x5ad0=function(_0x5b7a27,_0x25394c){_0x5b7a27=_0x5b7a27-0xc9;let _0x459997=a357_0x4599[_0x5b7a27];return _0x459997;};const a357_0x4fd417=a357_0x5ad0;'use strict';const {DataTypes}=require(a357_0x4fd417(0xcc)),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a357_0x4fd417(0xca)]}};module[a357_0x4fd417(0xc9)][a357_0x4fd417(0xcb)]=attributes; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js index d0a7c80..2f40807 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js @@ -1 +1 @@ -const a358_0x2a25=['includeAll','keys','../../config/logger','findOne','rawAttributes','type','lodash','filters','intersection','getFields','sendStatus','limit','pick','where','attributes','status','json','nolimit','like','sequelize','set','error','params','key','sort','update','send','getSubjects','create','merge','then','ServicenowField','../../components/parsers/qs','length','findAll','filter','count','rows','offset','order','options','undefined','Content-Range','getDescriptions','fields','include','catch','model','end','body','map','query','ServicenowConfiguration','name'];(function(_0x5a018a,_0xc83e18){const _0x2a258d=function(_0x153767){while(--_0x153767){_0x5a018a['push'](_0x5a018a['shift']());}};_0x2a258d(++_0xc83e18);}(a358_0x2a25,0x82));const a358_0x1537=function(_0x5a018a,_0xc83e18){_0x5a018a=_0x5a018a-0x157;let _0x2a258d=a358_0x2a25[_0x5a018a];return _0x2a258d;};const a358_0x2e127c=a358_0x1537;'use strict';const _=require(a358_0x2e127c(0x17d)),qs=require(a358_0x2e127c(0x161)),logger=require(a358_0x2e127c(0x179))('api'),{db}=require('../../mysqldb'),{Op}=require(a358_0x2e127c(0x18a));function respondWithResult(_0x466a21,_0x48fbc4){return _0x48fbc4=_0x48fbc4||0xc8,function(_0x54818d){const _0x17f9af=a358_0x1537;if(_0x54818d)return _0x466a21['status'](_0x48fbc4)[_0x17f9af(0x187)](_0x54818d);};}function respondWithFilteredResult(_0x2d82af,_0x537d48){return function(_0x332e86){const _0x1b6f52=a358_0x1537;if(_0x332e86){const _0x4d1518=_0x332e86['count'],_0x21b446=_0x537d48[_0x1b6f52(0x167)];let _0x11fd90=_0x537d48[_0x1b6f52(0x167)]+_0x537d48[_0x1b6f52(0x182)],_0x339de3;return _0x11fd90>=_0x4d1518?(_0x11fd90=_0x4d1518,_0x339de3=0xc8):_0x339de3=0xce,_0x2d82af[_0x1b6f52(0x186)](_0x339de3),_0x2d82af[_0x1b6f52(0x18b)](_0x1b6f52(0x16b),_0x21b446+'-'+_0x11fd90+'/'+_0x4d1518)[_0x1b6f52(0x187)](_0x332e86);}return null;};}function saveUpdates(_0x26a51f){return function(_0x27329b){const _0x2078b0=a358_0x1537;if(_0x27329b)return _0x27329b[_0x2078b0(0x15a)](_0x26a51f)[_0x2078b0(0x15f)](function(_0xbf6de6){return _0xbf6de6;});return null;};}function removeEntity(_0x40f2a0){return function(_0x33cb45){const _0x15ca11=a358_0x1537;if(_0x33cb45)return _0x33cb45['destroy']()[_0x15ca11(0x15f)](function(){const _0x344fc3=_0x15ca11;_0x40f2a0['status'](0xcc)[_0x344fc3(0x171)]();});};}function handleEntityNotFound(_0x3cfa01){return function(_0x417636){const _0x3cb28e=a358_0x1537;return!_0x417636&&_0x3cfa01[_0x3cb28e(0x181)](0x194),_0x417636;};}function handleError(_0x58081f,_0xa3a623){return _0xa3a623=_0xa3a623||0x1f4,function(_0x3727d8){const _0x51cb56=a358_0x1537;logger[_0x51cb56(0x18c)](_0x3727d8['stack']),_0x3727d8['name']&&delete _0x3727d8[_0x51cb56(0x176)],_0x58081f[_0x51cb56(0x186)](_0xa3a623)[_0x51cb56(0x15b)](_0x3727d8);};}exports['index']=function(_0x11872e,_0x45262c){const _0x1a8c68=a358_0x2e127c;let _0x30eafc={};const _0x3e4715={},_0xd6e77b={'count':0x0,'rows':[]},_0x3b54f2=_['map'](db['ServicenowConfiguration']['rawAttributes'],function(_0x973e1c){const _0x5afe8b=a358_0x1537;return{'name':_0x973e1c['fieldName'],'type':_0x973e1c[_0x5afe8b(0x17c)][_0x5afe8b(0x158)]};});_0x3e4715[_0x1a8c68(0x170)]=_[_0x1a8c68(0x173)](_0x3b54f2,_0x1a8c68(0x176)),_0x3e4715['query']=_['keys'](_0x11872e['query']),_0x3e4715[_0x1a8c68(0x17e)]=_[_0x1a8c68(0x17f)](_0x3e4715[_0x1a8c68(0x170)],_0x3e4715['query']),_0x30eafc[_0x1a8c68(0x185)]=_['intersection'](_0x3e4715[_0x1a8c68(0x170)],qs[_0x1a8c68(0x16d)](_0x11872e[_0x1a8c68(0x174)][_0x1a8c68(0x16d)])),_0x30eafc[_0x1a8c68(0x185)]=_0x30eafc['attributes'][_0x1a8c68(0x162)]?_0x30eafc['attributes']:_0x3e4715[_0x1a8c68(0x170)];typeof _0x11872e[_0x1a8c68(0x174)]['nolimit']===_0x1a8c68(0x16a)&&(_0x30eafc[_0x1a8c68(0x182)]=qs[_0x1a8c68(0x182)](_0x11872e[_0x1a8c68(0x174)][_0x1a8c68(0x182)]),_0x30eafc['offset']=qs[_0x1a8c68(0x167)](_0x11872e[_0x1a8c68(0x174)][_0x1a8c68(0x167)]));_0x30eafc[_0x1a8c68(0x168)]=qs[_0x1a8c68(0x159)](_0x11872e[_0x1a8c68(0x174)][_0x1a8c68(0x159)]),_0x30eafc['where']=qs[_0x1a8c68(0x17e)](_[_0x1a8c68(0x183)](_0x11872e['query'],_0x3e4715['filters']),_0x3b54f2);_0x11872e[_0x1a8c68(0x174)][_0x1a8c68(0x164)]&&(_0x30eafc[_0x1a8c68(0x184)]=_[_0x1a8c68(0x15e)](_0x30eafc['where'],{[Op['or']]:_[_0x1a8c68(0x173)](_0x3b54f2,function(_0x266107){const _0x18a537=_0x1a8c68;if(_0x266107[_0x18a537(0x17c)]!=='VIRTUAL'){const _0x17f263={};return _0x17f263[_0x266107[_0x18a537(0x176)]]={[Op[_0x18a537(0x189)]]:'%'+_0x11872e[_0x18a537(0x174)][_0x18a537(0x164)]+'%'},_0x17f263;}})}));_0x30eafc=_[_0x1a8c68(0x15e)]({},_0x30eafc,_0x11872e[_0x1a8c68(0x169)]);const _0x491944={'where':_0x30eafc['where']};return db[_0x1a8c68(0x175)][_0x1a8c68(0x165)](_0x491944)[_0x1a8c68(0x15f)](function(_0x560003){const _0x3643b3=_0x1a8c68;return _0xd6e77b[_0x3643b3(0x165)]=_0x560003,_0x11872e[_0x3643b3(0x174)][_0x3643b3(0x177)]&&(_0x30eafc[_0x3643b3(0x16e)]=[{'all':!![]}]),db[_0x3643b3(0x175)][_0x3643b3(0x163)](_0x30eafc);})[_0x1a8c68(0x15f)](function(_0x52a218){const _0x16d1d0=_0x1a8c68;return _0xd6e77b[_0x16d1d0(0x166)]=_0x52a218,_0xd6e77b;})[_0x1a8c68(0x15f)](respondWithFilteredResult(_0x45262c,_0x30eafc))[_0x1a8c68(0x16f)](handleError(_0x45262c,null));},exports['show']=function(_0x2bb67e,_0x579918){const _0xa01e1e=a358_0x2e127c;let _0x2c5512={'raw':![],'where':{'id':_0x2bb67e[_0xa01e1e(0x157)]['id']}};const _0xc72340={};return _0xc72340['model']=_[_0xa01e1e(0x178)](db[_0xa01e1e(0x175)][_0xa01e1e(0x17b)]),_0xc72340[_0xa01e1e(0x174)]=_[_0xa01e1e(0x178)](_0x2bb67e[_0xa01e1e(0x174)]),_0xc72340[_0xa01e1e(0x17e)]=_[_0xa01e1e(0x17f)](_0xc72340[_0xa01e1e(0x170)],_0xc72340['query']),_0x2c5512[_0xa01e1e(0x185)]=_[_0xa01e1e(0x17f)](_0xc72340['model'],qs[_0xa01e1e(0x16d)](_0x2bb67e[_0xa01e1e(0x174)][_0xa01e1e(0x16d)])),_0x2c5512[_0xa01e1e(0x185)]=_0x2c5512[_0xa01e1e(0x185)][_0xa01e1e(0x162)]?_0x2c5512[_0xa01e1e(0x185)]:_0xc72340[_0xa01e1e(0x170)],_0x2bb67e['query']['includeAll']&&(_0x2c5512[_0xa01e1e(0x16e)]=[{'all':!![]}]),_0x2c5512=_[_0xa01e1e(0x15e)]({},_0x2c5512,_0x2bb67e[_0xa01e1e(0x169)]),db['ServicenowConfiguration'][_0xa01e1e(0x17a)](_0x2c5512)[_0xa01e1e(0x15f)](handleEntityNotFound(_0x579918,null))[_0xa01e1e(0x15f)](respondWithResult(_0x579918,null))['catch'](handleError(_0x579918,null));},exports[a358_0x2e127c(0x15d)]=function(_0xb78574,_0x31dfcc){const _0x34cfc3=a358_0x2e127c;return db['ServicenowConfiguration']['create'](_0xb78574[_0x34cfc3(0x172)],{})[_0x34cfc3(0x15f)](respondWithResult(_0x31dfcc,0xc9))[_0x34cfc3(0x16f)](handleError(_0x31dfcc,null));},exports[a358_0x2e127c(0x15a)]=function(_0x22f4fa,_0x12cec5){const _0x317cef=a358_0x2e127c;return _0x22f4fa['body']['id']&&delete _0x22f4fa[_0x317cef(0x172)]['id'],db[_0x317cef(0x175)][_0x317cef(0x17a)]({'where':{'id':_0x22f4fa[_0x317cef(0x157)]['id']}})[_0x317cef(0x15f)](handleEntityNotFound(_0x12cec5,null))[_0x317cef(0x15f)](saveUpdates(_0x22f4fa[_0x317cef(0x172)],null))[_0x317cef(0x15f)](respondWithResult(_0x12cec5,null))['catch'](handleError(_0x12cec5,null));},exports['destroy']=function(_0x50ea95,_0x100185){const _0x19bd6a=a358_0x2e127c;return db[_0x19bd6a(0x175)]['findOne']({'where':{'id':_0x50ea95[_0x19bd6a(0x157)]['id']}})[_0x19bd6a(0x15f)](handleEntityNotFound(_0x100185,null))[_0x19bd6a(0x15f)](removeEntity(_0x100185,null))[_0x19bd6a(0x16f)](handleError(_0x100185,null));},exports[a358_0x2e127c(0x180)]=function(_0x29d9f8,_0x270b4d){const _0x252a78=a358_0x2e127c;let _0x3969fa={};const _0x229ea6={};let _0x342ea0,_0x34a555;return db[_0x252a78(0x175)][_0x252a78(0x17a)]({'where':{'id':_0x29d9f8[_0x252a78(0x157)]['id']}})[_0x252a78(0x15f)](handleEntityNotFound(_0x270b4d,null))[_0x252a78(0x15f)](function(_0x1e909b){const _0x185aaa=_0x252a78;if(_0x1e909b)return _0x342ea0=_0x1e909b,_0x229ea6[_0x185aaa(0x170)]=_[_0x185aaa(0x178)](db[_0x185aaa(0x160)][_0x185aaa(0x17b)]),_0x229ea6[_0x185aaa(0x174)]=_['keys'](_0x29d9f8[_0x185aaa(0x174)]),_0x229ea6[_0x185aaa(0x17e)]=_['intersection'](_0x229ea6[_0x185aaa(0x170)],_0x229ea6[_0x185aaa(0x174)]),_0x3969fa[_0x185aaa(0x185)]=_[_0x185aaa(0x17f)](_0x229ea6[_0x185aaa(0x170)],qs['fields'](_0x29d9f8['query'][_0x185aaa(0x16d)])),_0x3969fa[_0x185aaa(0x185)]=_0x3969fa[_0x185aaa(0x185)]['length']?_0x3969fa[_0x185aaa(0x185)]:_0x229ea6[_0x185aaa(0x170)],_0x3969fa[_0x185aaa(0x168)]=qs[_0x185aaa(0x159)](_0x29d9f8[_0x185aaa(0x174)]['sort']),_0x3969fa['where']=qs[_0x185aaa(0x17e)](_['pick'](_0x29d9f8['query'],_0x229ea6[_0x185aaa(0x17e)])),_0x29d9f8['query'][_0x185aaa(0x164)]&&(_0x3969fa['where']=_['merge'](_0x3969fa[_0x185aaa(0x184)],{[Op['or']]:_['map'](_0x3969fa[_0x185aaa(0x185)],function(_0x23aebe){const _0x2652a4=_0x185aaa,_0x3a1950={};return _0x3a1950[_0x23aebe]={[Op['like']]:'%'+_0x29d9f8[_0x2652a4(0x174)][_0x2652a4(0x164)]+'%'},_0x3a1950;})})),_0x3969fa=_[_0x185aaa(0x15e)]({},_0x3969fa,_0x29d9f8['options']),_0x342ea0[_0x185aaa(0x180)](_0x3969fa);})[_0x252a78(0x15f)](function(_0x336d39){const _0x3434f0=_0x252a78;if(_0x336d39)return _0x34a555=_0x336d39[_0x3434f0(0x162)],typeof _0x29d9f8[_0x3434f0(0x174)][_0x3434f0(0x188)]===_0x3434f0(0x16a)&&(_0x3969fa[_0x3434f0(0x182)]=qs['limit'](_0x29d9f8['query'][_0x3434f0(0x182)]),_0x3969fa[_0x3434f0(0x167)]=qs[_0x3434f0(0x167)](_0x29d9f8[_0x3434f0(0x174)][_0x3434f0(0x167)])),_0x342ea0[_0x3434f0(0x180)](_0x3969fa);})[_0x252a78(0x15f)](function(_0x11c048){if(_0x11c048)return _0x11c048?{'count':_0x34a555,'rows':_0x11c048}:null;})['then'](respondWithResult(_0x270b4d,null))[_0x252a78(0x16f)](handleError(_0x270b4d,null));},exports[a358_0x2e127c(0x15c)]=function(_0x299db1,_0x25745e){const _0x1ce88d=a358_0x2e127c;let _0x59c59b={};const _0x3cb7fb={};let _0x193cf9,_0x320e77;return db['ServicenowConfiguration'][_0x1ce88d(0x17a)]({'where':{'id':_0x299db1[_0x1ce88d(0x157)]['id']}})[_0x1ce88d(0x15f)](handleEntityNotFound(_0x25745e,null))[_0x1ce88d(0x15f)](function(_0x894338){const _0x2f181f=_0x1ce88d;if(_0x894338)return _0x193cf9=_0x894338,_0x3cb7fb[_0x2f181f(0x170)]=_[_0x2f181f(0x178)](db['ServicenowField']['rawAttributes']),_0x3cb7fb[_0x2f181f(0x174)]=_[_0x2f181f(0x178)](_0x299db1[_0x2f181f(0x174)]),_0x3cb7fb[_0x2f181f(0x17e)]=_[_0x2f181f(0x17f)](_0x3cb7fb[_0x2f181f(0x170)],_0x3cb7fb['query']),_0x59c59b[_0x2f181f(0x185)]=_[_0x2f181f(0x17f)](_0x3cb7fb['model'],qs[_0x2f181f(0x16d)](_0x299db1[_0x2f181f(0x174)]['fields'])),_0x59c59b[_0x2f181f(0x185)]=_0x59c59b[_0x2f181f(0x185)][_0x2f181f(0x162)]?_0x59c59b[_0x2f181f(0x185)]:_0x3cb7fb[_0x2f181f(0x170)],_0x59c59b['order']=qs[_0x2f181f(0x159)](_0x299db1['query'][_0x2f181f(0x159)]),_0x59c59b[_0x2f181f(0x184)]=qs['filters'](_[_0x2f181f(0x183)](_0x299db1[_0x2f181f(0x174)],_0x3cb7fb[_0x2f181f(0x17e)])),_0x299db1[_0x2f181f(0x174)][_0x2f181f(0x164)]&&(_0x59c59b[_0x2f181f(0x184)]=_['merge'](_0x59c59b[_0x2f181f(0x184)],{[Op['or']]:_[_0x2f181f(0x173)](_0x59c59b[_0x2f181f(0x185)],function(_0x51d85d){const _0xb114ab=_0x2f181f,_0xd462d2={};return _0xd462d2[_0x51d85d]={[Op[_0xb114ab(0x189)]]:'%'+_0x299db1[_0xb114ab(0x174)][_0xb114ab(0x164)]+'%'},_0xd462d2;})})),_0x59c59b=_[_0x2f181f(0x15e)]({},_0x59c59b,_0x299db1[_0x2f181f(0x169)]),_0x193cf9['getSubjects'](_0x59c59b);})['then'](function(_0x5d26f2){const _0x4c8ecd=_0x1ce88d;if(_0x5d26f2)return _0x320e77=_0x5d26f2[_0x4c8ecd(0x162)],typeof _0x299db1[_0x4c8ecd(0x174)][_0x4c8ecd(0x188)]===_0x4c8ecd(0x16a)&&(_0x59c59b['limit']=qs['limit'](_0x299db1[_0x4c8ecd(0x174)][_0x4c8ecd(0x182)]),_0x59c59b[_0x4c8ecd(0x167)]=qs[_0x4c8ecd(0x167)](_0x299db1['query'][_0x4c8ecd(0x167)])),_0x193cf9['getSubjects'](_0x59c59b);})['then'](function(_0x2f9955){if(_0x2f9955)return _0x2f9955?{'count':_0x320e77,'rows':_0x2f9955}:null;})[_0x1ce88d(0x15f)](respondWithResult(_0x25745e,null))['catch'](handleError(_0x25745e,null));},exports[a358_0x2e127c(0x16c)]=function(_0x1e34c5,_0x3cc9c7){const _0x385bf1=a358_0x2e127c;let _0x34e526={};const _0x283e0e={};let _0x53226f,_0x21edba;return db[_0x385bf1(0x175)]['findOne']({'where':{'id':_0x1e34c5[_0x385bf1(0x157)]['id']}})[_0x385bf1(0x15f)](handleEntityNotFound(_0x3cc9c7,null))['then'](function(_0x16f039){const _0x4a9ece=_0x385bf1;if(_0x16f039)return _0x53226f=_0x16f039,_0x283e0e['model']=_[_0x4a9ece(0x178)](db[_0x4a9ece(0x160)]['rawAttributes']),_0x283e0e[_0x4a9ece(0x174)]=_[_0x4a9ece(0x178)](_0x1e34c5[_0x4a9ece(0x174)]),_0x283e0e[_0x4a9ece(0x17e)]=_[_0x4a9ece(0x17f)](_0x283e0e[_0x4a9ece(0x170)],_0x283e0e[_0x4a9ece(0x174)]),_0x34e526[_0x4a9ece(0x185)]=_['intersection'](_0x283e0e[_0x4a9ece(0x170)],qs[_0x4a9ece(0x16d)](_0x1e34c5['query']['fields'])),_0x34e526[_0x4a9ece(0x185)]=_0x34e526[_0x4a9ece(0x185)][_0x4a9ece(0x162)]?_0x34e526['attributes']:_0x283e0e[_0x4a9ece(0x170)],_0x34e526[_0x4a9ece(0x168)]=qs['sort'](_0x1e34c5[_0x4a9ece(0x174)][_0x4a9ece(0x159)]),_0x34e526[_0x4a9ece(0x184)]=qs[_0x4a9ece(0x17e)](_[_0x4a9ece(0x183)](_0x1e34c5[_0x4a9ece(0x174)],_0x283e0e['filters'])),_0x1e34c5[_0x4a9ece(0x174)]['filter']&&(_0x34e526[_0x4a9ece(0x184)]=_['merge'](_0x34e526[_0x4a9ece(0x184)],{[Op['or']]:_[_0x4a9ece(0x173)](_0x34e526[_0x4a9ece(0x185)],function(_0x276f94){const _0x4a7c2=_0x4a9ece,_0x2fc3f5={};return _0x2fc3f5[_0x276f94]={[Op['like']]:'%'+_0x1e34c5[_0x4a7c2(0x174)][_0x4a7c2(0x164)]+'%'},_0x2fc3f5;})})),_0x34e526=_['merge']({},_0x34e526,_0x1e34c5[_0x4a9ece(0x169)]),_0x53226f[_0x4a9ece(0x16c)](_0x34e526);})['then'](function(_0x32f273){const _0x2a414c=_0x385bf1;if(_0x32f273)return _0x21edba=_0x32f273[_0x2a414c(0x162)],typeof _0x1e34c5[_0x2a414c(0x174)]['nolimit']===_0x2a414c(0x16a)&&(_0x34e526[_0x2a414c(0x182)]=qs[_0x2a414c(0x182)](_0x1e34c5[_0x2a414c(0x174)][_0x2a414c(0x182)]),_0x34e526[_0x2a414c(0x167)]=qs['offset'](_0x1e34c5[_0x2a414c(0x174)]['offset'])),_0x53226f[_0x2a414c(0x16c)](_0x34e526);})[_0x385bf1(0x15f)](function(_0x43031f){if(_0x43031f)return _0x43031f?{'count':_0x21edba,'rows':_0x43031f}:null;})['then'](respondWithResult(_0x3cc9c7,null))[_0x385bf1(0x16f)](handleError(_0x3cc9c7,null));}; \ No newline at end of file +const a358_0x42b2=['stack','model','order','json','nolimit','pick','type','end','status','query','Content-Range','filter','includeAll','body','show','limit','map','getFields','params','undefined','findAll','ServicenowConfiguration','rows','getDescriptions','api','set','include','index','then','filters','send','sort','error','../../config/logger','../../components/parsers/qs','../../mysqldb','name','lodash','intersection','keys','rawAttributes','update','fields','findOne','offset','count','like','where','getSubjects','options','length','VIRTUAL','attributes','create','catch','ServicenowField','merge'];(function(_0x286afb,_0x30711c){const _0x42b22c=function(_0x19cc0f){while(--_0x19cc0f){_0x286afb['push'](_0x286afb['shift']());}};_0x42b22c(++_0x30711c);}(a358_0x42b2,0x169));const a358_0x19cc=function(_0x286afb,_0x30711c){_0x286afb=_0x286afb-0x1c7;let _0x42b22c=a358_0x42b2[_0x286afb];return _0x42b22c;};const a358_0x19fd20=a358_0x19cc;'use strict';const _=require(a358_0x19fd20(0x1d9)),qs=require(a358_0x19fd20(0x1d6)),logger=require(a358_0x19fd20(0x1d5))(a358_0x19fd20(0x1cc)),{db}=require(a358_0x19fd20(0x1d7)),{Op}=require('sequelize');function respondWithResult(_0x3133aa,_0x3c9caa){return _0x3c9caa=_0x3c9caa||0xc8,function(_0x57c3c9){const _0x9fd296=a358_0x19cc;if(_0x57c3c9)return _0x3133aa[_0x9fd296(0x1f5)](_0x3c9caa)[_0x9fd296(0x1f0)](_0x57c3c9);};}function respondWithFilteredResult(_0x17b045,_0x199bc9){return function(_0x19d09b){const _0x476bf1=a358_0x19cc;if(_0x19d09b){const _0x368ea2=_0x19d09b[_0x476bf1(0x1e1)],_0x15e7e6=_0x199bc9[_0x476bf1(0x1e0)];let _0x40e1d8=_0x199bc9[_0x476bf1(0x1e0)]+_0x199bc9[_0x476bf1(0x1fc)],_0x5921f0;return _0x40e1d8>=_0x368ea2?(_0x40e1d8=_0x368ea2,_0x5921f0=0xc8):_0x5921f0=0xce,_0x17b045[_0x476bf1(0x1f5)](_0x5921f0),_0x17b045[_0x476bf1(0x1cd)](_0x476bf1(0x1f7),_0x15e7e6+'-'+_0x40e1d8+'/'+_0x368ea2)['json'](_0x19d09b);}return null;};}function saveUpdates(_0x17cbee){return function(_0x2ef8a1){const _0x31ca7f=a358_0x19cc;if(_0x2ef8a1)return _0x2ef8a1[_0x31ca7f(0x1dd)](_0x17cbee)[_0x31ca7f(0x1d0)](function(_0x19f13e){return _0x19f13e;});return null;};}function removeEntity(_0x15fb86){return function(_0x3c79f3){const _0x58342d=a358_0x19cc;if(_0x3c79f3)return _0x3c79f3['destroy']()[_0x58342d(0x1d0)](function(){const _0x3824b8=_0x58342d;_0x15fb86['status'](0xcc)[_0x3824b8(0x1f4)]();});};}function handleEntityNotFound(_0x413512){return function(_0xaf7af8){return!_0xaf7af8&&_0x413512['sendStatus'](0x194),_0xaf7af8;};}function handleError(_0x229e41,_0x276769){return _0x276769=_0x276769||0x1f4,function(_0x5d6ff5){const _0x40f5f0=a358_0x19cc;logger[_0x40f5f0(0x1d4)](_0x5d6ff5[_0x40f5f0(0x1ed)]),_0x5d6ff5[_0x40f5f0(0x1d8)]&&delete _0x5d6ff5[_0x40f5f0(0x1d8)],_0x229e41[_0x40f5f0(0x1f5)](_0x276769)[_0x40f5f0(0x1d2)](_0x5d6ff5);};}exports[a358_0x19fd20(0x1cf)]=function(_0x163804,_0x44b289){const _0x28e328=a358_0x19fd20;let _0x4afd6f={};const _0x56d6e2={},_0xbebf0f={'count':0x0,'rows':[]},_0x36644a=_[_0x28e328(0x1fd)](db[_0x28e328(0x1c9)][_0x28e328(0x1dc)],function(_0x79356c){const _0x31c19e=_0x28e328;return{'name':_0x79356c['fieldName'],'type':_0x79356c[_0x31c19e(0x1f3)]['key']};});_0x56d6e2[_0x28e328(0x1ee)]=_[_0x28e328(0x1fd)](_0x36644a,'name'),_0x56d6e2[_0x28e328(0x1f6)]=_[_0x28e328(0x1db)](_0x163804[_0x28e328(0x1f6)]),_0x56d6e2[_0x28e328(0x1d1)]=_[_0x28e328(0x1da)](_0x56d6e2[_0x28e328(0x1ee)],_0x56d6e2[_0x28e328(0x1f6)]),_0x4afd6f[_0x28e328(0x1e8)]=_[_0x28e328(0x1da)](_0x56d6e2[_0x28e328(0x1ee)],qs['fields'](_0x163804[_0x28e328(0x1f6)][_0x28e328(0x1de)])),_0x4afd6f[_0x28e328(0x1e8)]=_0x4afd6f[_0x28e328(0x1e8)]['length']?_0x4afd6f['attributes']:_0x56d6e2[_0x28e328(0x1ee)];typeof _0x163804['query'][_0x28e328(0x1f1)]===_0x28e328(0x1c7)&&(_0x4afd6f[_0x28e328(0x1fc)]=qs['limit'](_0x163804[_0x28e328(0x1f6)][_0x28e328(0x1fc)]),_0x4afd6f[_0x28e328(0x1e0)]=qs['offset'](_0x163804[_0x28e328(0x1f6)][_0x28e328(0x1e0)]));_0x4afd6f[_0x28e328(0x1ef)]=qs[_0x28e328(0x1d3)](_0x163804['query'][_0x28e328(0x1d3)]),_0x4afd6f[_0x28e328(0x1e3)]=qs[_0x28e328(0x1d1)](_[_0x28e328(0x1f2)](_0x163804[_0x28e328(0x1f6)],_0x56d6e2[_0x28e328(0x1d1)]),_0x36644a);_0x163804[_0x28e328(0x1f6)][_0x28e328(0x1f8)]&&(_0x4afd6f[_0x28e328(0x1e3)]=_['merge'](_0x4afd6f[_0x28e328(0x1e3)],{[Op['or']]:_[_0x28e328(0x1fd)](_0x36644a,function(_0x17db42){const _0x24eb63=_0x28e328;if(_0x17db42['type']!==_0x24eb63(0x1e7)){const _0x430cbc={};return _0x430cbc[_0x17db42[_0x24eb63(0x1d8)]]={[Op[_0x24eb63(0x1e2)]]:'%'+_0x163804[_0x24eb63(0x1f6)][_0x24eb63(0x1f8)]+'%'},_0x430cbc;}})}));_0x4afd6f=_[_0x28e328(0x1ec)]({},_0x4afd6f,_0x163804['options']);const _0x2e0e0b={'where':_0x4afd6f['where']};return db['ServicenowConfiguration'][_0x28e328(0x1e1)](_0x2e0e0b)[_0x28e328(0x1d0)](function(_0x1e2ab4){const _0x4b83c7=_0x28e328;return _0xbebf0f[_0x4b83c7(0x1e1)]=_0x1e2ab4,_0x163804[_0x4b83c7(0x1f6)][_0x4b83c7(0x1f9)]&&(_0x4afd6f[_0x4b83c7(0x1ce)]=[{'all':!![]}]),db[_0x4b83c7(0x1c9)][_0x4b83c7(0x1c8)](_0x4afd6f);})[_0x28e328(0x1d0)](function(_0x4c6e3c){const _0x37f3d3=_0x28e328;return _0xbebf0f[_0x37f3d3(0x1ca)]=_0x4c6e3c,_0xbebf0f;})['then'](respondWithFilteredResult(_0x44b289,_0x4afd6f))[_0x28e328(0x1ea)](handleError(_0x44b289,null));},exports[a358_0x19fd20(0x1fb)]=function(_0x8a080,_0x3d7330){const _0xb21637=a358_0x19fd20;let _0x151311={'raw':![],'where':{'id':_0x8a080[_0xb21637(0x1ff)]['id']}};const _0x24731f={};return _0x24731f['model']=_[_0xb21637(0x1db)](db[_0xb21637(0x1c9)]['rawAttributes']),_0x24731f[_0xb21637(0x1f6)]=_[_0xb21637(0x1db)](_0x8a080[_0xb21637(0x1f6)]),_0x24731f[_0xb21637(0x1d1)]=_[_0xb21637(0x1da)](_0x24731f[_0xb21637(0x1ee)],_0x24731f[_0xb21637(0x1f6)]),_0x151311[_0xb21637(0x1e8)]=_[_0xb21637(0x1da)](_0x24731f[_0xb21637(0x1ee)],qs[_0xb21637(0x1de)](_0x8a080['query']['fields'])),_0x151311['attributes']=_0x151311[_0xb21637(0x1e8)][_0xb21637(0x1e6)]?_0x151311['attributes']:_0x24731f[_0xb21637(0x1ee)],_0x8a080['query'][_0xb21637(0x1f9)]&&(_0x151311[_0xb21637(0x1ce)]=[{'all':!![]}]),_0x151311=_[_0xb21637(0x1ec)]({},_0x151311,_0x8a080[_0xb21637(0x1e5)]),db[_0xb21637(0x1c9)]['findOne'](_0x151311)['then'](handleEntityNotFound(_0x3d7330,null))[_0xb21637(0x1d0)](respondWithResult(_0x3d7330,null))['catch'](handleError(_0x3d7330,null));},exports[a358_0x19fd20(0x1e9)]=function(_0x1e5ef0,_0x743255){const _0x22649a=a358_0x19fd20;return db[_0x22649a(0x1c9)][_0x22649a(0x1e9)](_0x1e5ef0[_0x22649a(0x1fa)],{})[_0x22649a(0x1d0)](respondWithResult(_0x743255,0xc9))[_0x22649a(0x1ea)](handleError(_0x743255,null));},exports[a358_0x19fd20(0x1dd)]=function(_0x5861d2,_0x584f8e){const _0x262e3c=a358_0x19fd20;return _0x5861d2[_0x262e3c(0x1fa)]['id']&&delete _0x5861d2[_0x262e3c(0x1fa)]['id'],db['ServicenowConfiguration']['findOne']({'where':{'id':_0x5861d2[_0x262e3c(0x1ff)]['id']}})[_0x262e3c(0x1d0)](handleEntityNotFound(_0x584f8e,null))[_0x262e3c(0x1d0)](saveUpdates(_0x5861d2['body'],null))[_0x262e3c(0x1d0)](respondWithResult(_0x584f8e,null))['catch'](handleError(_0x584f8e,null));},exports['destroy']=function(_0x2f00f7,_0x32d574){const _0x1e398f=a358_0x19fd20;return db[_0x1e398f(0x1c9)][_0x1e398f(0x1df)]({'where':{'id':_0x2f00f7[_0x1e398f(0x1ff)]['id']}})[_0x1e398f(0x1d0)](handleEntityNotFound(_0x32d574,null))[_0x1e398f(0x1d0)](removeEntity(_0x32d574,null))[_0x1e398f(0x1ea)](handleError(_0x32d574,null));},exports['getFields']=function(_0x472e8a,_0xbb1465){const _0x12c7c7=a358_0x19fd20;let _0x476b91={};const _0x51ae97={};let _0x357645,_0x559dcc;return db['ServicenowConfiguration'][_0x12c7c7(0x1df)]({'where':{'id':_0x472e8a[_0x12c7c7(0x1ff)]['id']}})[_0x12c7c7(0x1d0)](handleEntityNotFound(_0xbb1465,null))['then'](function(_0x50b873){const _0x32697d=_0x12c7c7;if(_0x50b873)return _0x357645=_0x50b873,_0x51ae97[_0x32697d(0x1ee)]=_[_0x32697d(0x1db)](db['ServicenowField'][_0x32697d(0x1dc)]),_0x51ae97[_0x32697d(0x1f6)]=_['keys'](_0x472e8a[_0x32697d(0x1f6)]),_0x51ae97[_0x32697d(0x1d1)]=_[_0x32697d(0x1da)](_0x51ae97[_0x32697d(0x1ee)],_0x51ae97['query']),_0x476b91[_0x32697d(0x1e8)]=_[_0x32697d(0x1da)](_0x51ae97[_0x32697d(0x1ee)],qs[_0x32697d(0x1de)](_0x472e8a['query'][_0x32697d(0x1de)])),_0x476b91['attributes']=_0x476b91[_0x32697d(0x1e8)][_0x32697d(0x1e6)]?_0x476b91[_0x32697d(0x1e8)]:_0x51ae97[_0x32697d(0x1ee)],_0x476b91[_0x32697d(0x1ef)]=qs['sort'](_0x472e8a[_0x32697d(0x1f6)][_0x32697d(0x1d3)]),_0x476b91[_0x32697d(0x1e3)]=qs[_0x32697d(0x1d1)](_['pick'](_0x472e8a[_0x32697d(0x1f6)],_0x51ae97['filters'])),_0x472e8a[_0x32697d(0x1f6)][_0x32697d(0x1f8)]&&(_0x476b91[_0x32697d(0x1e3)]=_[_0x32697d(0x1ec)](_0x476b91[_0x32697d(0x1e3)],{[Op['or']]:_[_0x32697d(0x1fd)](_0x476b91['attributes'],function(_0x12b748){const _0x4beb1a=_0x32697d,_0x454d36={};return _0x454d36[_0x12b748]={[Op[_0x4beb1a(0x1e2)]]:'%'+_0x472e8a[_0x4beb1a(0x1f6)][_0x4beb1a(0x1f8)]+'%'},_0x454d36;})})),_0x476b91=_[_0x32697d(0x1ec)]({},_0x476b91,_0x472e8a[_0x32697d(0x1e5)]),_0x357645[_0x32697d(0x1fe)](_0x476b91);})['then'](function(_0xc78a47){const _0x5760ed=_0x12c7c7;if(_0xc78a47)return _0x559dcc=_0xc78a47[_0x5760ed(0x1e6)],typeof _0x472e8a[_0x5760ed(0x1f6)][_0x5760ed(0x1f1)]===_0x5760ed(0x1c7)&&(_0x476b91[_0x5760ed(0x1fc)]=qs[_0x5760ed(0x1fc)](_0x472e8a[_0x5760ed(0x1f6)][_0x5760ed(0x1fc)]),_0x476b91[_0x5760ed(0x1e0)]=qs[_0x5760ed(0x1e0)](_0x472e8a[_0x5760ed(0x1f6)]['offset'])),_0x357645['getFields'](_0x476b91);})[_0x12c7c7(0x1d0)](function(_0x692c9b){if(_0x692c9b)return _0x692c9b?{'count':_0x559dcc,'rows':_0x692c9b}:null;})['then'](respondWithResult(_0xbb1465,null))[_0x12c7c7(0x1ea)](handleError(_0xbb1465,null));},exports[a358_0x19fd20(0x1e4)]=function(_0x3cca90,_0x41a2d9){const _0x4f3633=a358_0x19fd20;let _0x169f7f={};const _0x241d23={};let _0x489399,_0x3e4691;return db['ServicenowConfiguration'][_0x4f3633(0x1df)]({'where':{'id':_0x3cca90['params']['id']}})[_0x4f3633(0x1d0)](handleEntityNotFound(_0x41a2d9,null))[_0x4f3633(0x1d0)](function(_0x95fc6d){const _0x2b8685=_0x4f3633;if(_0x95fc6d)return _0x489399=_0x95fc6d,_0x241d23[_0x2b8685(0x1ee)]=_[_0x2b8685(0x1db)](db[_0x2b8685(0x1eb)][_0x2b8685(0x1dc)]),_0x241d23[_0x2b8685(0x1f6)]=_[_0x2b8685(0x1db)](_0x3cca90['query']),_0x241d23[_0x2b8685(0x1d1)]=_[_0x2b8685(0x1da)](_0x241d23['model'],_0x241d23['query']),_0x169f7f[_0x2b8685(0x1e8)]=_['intersection'](_0x241d23[_0x2b8685(0x1ee)],qs['fields'](_0x3cca90[_0x2b8685(0x1f6)][_0x2b8685(0x1de)])),_0x169f7f[_0x2b8685(0x1e8)]=_0x169f7f['attributes'][_0x2b8685(0x1e6)]?_0x169f7f[_0x2b8685(0x1e8)]:_0x241d23[_0x2b8685(0x1ee)],_0x169f7f['order']=qs[_0x2b8685(0x1d3)](_0x3cca90['query'][_0x2b8685(0x1d3)]),_0x169f7f[_0x2b8685(0x1e3)]=qs['filters'](_[_0x2b8685(0x1f2)](_0x3cca90['query'],_0x241d23[_0x2b8685(0x1d1)])),_0x3cca90[_0x2b8685(0x1f6)]['filter']&&(_0x169f7f[_0x2b8685(0x1e3)]=_['merge'](_0x169f7f[_0x2b8685(0x1e3)],{[Op['or']]:_[_0x2b8685(0x1fd)](_0x169f7f[_0x2b8685(0x1e8)],function(_0xa1e9a){const _0x243b43=_0x2b8685,_0x5f4946={};return _0x5f4946[_0xa1e9a]={[Op[_0x243b43(0x1e2)]]:'%'+_0x3cca90[_0x243b43(0x1f6)]['filter']+'%'},_0x5f4946;})})),_0x169f7f=_[_0x2b8685(0x1ec)]({},_0x169f7f,_0x3cca90['options']),_0x489399[_0x2b8685(0x1e4)](_0x169f7f);})['then'](function(_0x3af172){const _0x1e0331=_0x4f3633;if(_0x3af172)return _0x3e4691=_0x3af172['length'],typeof _0x3cca90[_0x1e0331(0x1f6)]['nolimit']==='undefined'&&(_0x169f7f['limit']=qs['limit'](_0x3cca90[_0x1e0331(0x1f6)][_0x1e0331(0x1fc)]),_0x169f7f[_0x1e0331(0x1e0)]=qs[_0x1e0331(0x1e0)](_0x3cca90['query'][_0x1e0331(0x1e0)])),_0x489399[_0x1e0331(0x1e4)](_0x169f7f);})['then'](function(_0x153828){if(_0x153828)return _0x153828?{'count':_0x3e4691,'rows':_0x153828}:null;})['then'](respondWithResult(_0x41a2d9,null))[_0x4f3633(0x1ea)](handleError(_0x41a2d9,null));},exports[a358_0x19fd20(0x1cb)]=function(_0x211db1,_0x41e2cb){const _0x18c51e=a358_0x19fd20;let _0x1a952e={};const _0x1cad19={};let _0x10f51a,_0x3cd569;return db[_0x18c51e(0x1c9)][_0x18c51e(0x1df)]({'where':{'id':_0x211db1[_0x18c51e(0x1ff)]['id']}})[_0x18c51e(0x1d0)](handleEntityNotFound(_0x41e2cb,null))[_0x18c51e(0x1d0)](function(_0x45aada){const _0x4ddbec=_0x18c51e;if(_0x45aada)return _0x10f51a=_0x45aada,_0x1cad19[_0x4ddbec(0x1ee)]=_[_0x4ddbec(0x1db)](db[_0x4ddbec(0x1eb)]['rawAttributes']),_0x1cad19[_0x4ddbec(0x1f6)]=_['keys'](_0x211db1['query']),_0x1cad19[_0x4ddbec(0x1d1)]=_[_0x4ddbec(0x1da)](_0x1cad19['model'],_0x1cad19[_0x4ddbec(0x1f6)]),_0x1a952e['attributes']=_[_0x4ddbec(0x1da)](_0x1cad19[_0x4ddbec(0x1ee)],qs['fields'](_0x211db1[_0x4ddbec(0x1f6)][_0x4ddbec(0x1de)])),_0x1a952e[_0x4ddbec(0x1e8)]=_0x1a952e['attributes'][_0x4ddbec(0x1e6)]?_0x1a952e[_0x4ddbec(0x1e8)]:_0x1cad19['model'],_0x1a952e[_0x4ddbec(0x1ef)]=qs['sort'](_0x211db1[_0x4ddbec(0x1f6)][_0x4ddbec(0x1d3)]),_0x1a952e[_0x4ddbec(0x1e3)]=qs['filters'](_[_0x4ddbec(0x1f2)](_0x211db1['query'],_0x1cad19[_0x4ddbec(0x1d1)])),_0x211db1[_0x4ddbec(0x1f6)]['filter']&&(_0x1a952e[_0x4ddbec(0x1e3)]=_[_0x4ddbec(0x1ec)](_0x1a952e[_0x4ddbec(0x1e3)],{[Op['or']]:_[_0x4ddbec(0x1fd)](_0x1a952e[_0x4ddbec(0x1e8)],function(_0x356df6){const _0x515e8b=_0x4ddbec,_0x31e425={};return _0x31e425[_0x356df6]={[Op[_0x515e8b(0x1e2)]]:'%'+_0x211db1[_0x515e8b(0x1f6)]['filter']+'%'},_0x31e425;})})),_0x1a952e=_[_0x4ddbec(0x1ec)]({},_0x1a952e,_0x211db1[_0x4ddbec(0x1e5)]),_0x10f51a[_0x4ddbec(0x1cb)](_0x1a952e);})[_0x18c51e(0x1d0)](function(_0x46ee8f){const _0xf0fc1=_0x18c51e;if(_0x46ee8f)return _0x3cd569=_0x46ee8f[_0xf0fc1(0x1e6)],typeof _0x211db1[_0xf0fc1(0x1f6)][_0xf0fc1(0x1f1)]===_0xf0fc1(0x1c7)&&(_0x1a952e['limit']=qs[_0xf0fc1(0x1fc)](_0x211db1[_0xf0fc1(0x1f6)][_0xf0fc1(0x1fc)]),_0x1a952e['offset']=qs[_0xf0fc1(0x1e0)](_0x211db1[_0xf0fc1(0x1f6)]['offset'])),_0x10f51a[_0xf0fc1(0x1cb)](_0x1a952e);})[_0x18c51e(0x1d0)](function(_0x3d2baf){if(_0x3d2baf)return _0x3d2baf?{'count':_0x3cd569,'rows':_0x3d2baf}:null;})[_0x18c51e(0x1d0)](respondWithResult(_0x41e2cb,null))[_0x18c51e(0x1ea)](handleError(_0x41e2cb,null));}; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js index 5e6deb9..d1f6046 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js @@ -1 +1 @@ -const a359_0x375c=['ServicenowConfiguration','sequelize','exports','./intServicenowConfiguration.attributes','./intServicenowConfiguration.options','init'];(function(_0x12e9a0,_0x21776d){const _0x375ce7=function(_0x53c3ae){while(--_0x53c3ae){_0x12e9a0['push'](_0x12e9a0['shift']());}};_0x375ce7(++_0x21776d);}(a359_0x375c,0x6d));const a359_0x53c3=function(_0x12e9a0,_0x21776d){_0x12e9a0=_0x12e9a0-0x137;let _0x375ce7=a359_0x375c[_0x12e9a0];return _0x375ce7;};const a359_0x4b55ab=a359_0x53c3;'use strict';const {Model}=require(a359_0x4b55ab(0x137)),{attributes}=require(a359_0x4b55ab(0x139)),{options}=require(a359_0x4b55ab(0x13a));class ServicenowConfiguration extends Model{}function init(_0x49e220,_0x1c3696){const _0x542899=options(_0x49e220),_0x3c6fbc=typeof _0x1c3696==='function'?_0x1c3696(_0x542899):_0x542899;return ServicenowConfiguration['init'](attributes,_0x3c6fbc),ServicenowConfiguration;}module[a359_0x4b55ab(0x138)][a359_0x4b55ab(0x13c)]=ServicenowConfiguration,module['exports'][a359_0x4b55ab(0x13b)]=init; \ No newline at end of file +const a359_0x2bc0=['exports','./intServicenowConfiguration.options','sequelize','./intServicenowConfiguration.attributes','init','ServicenowConfiguration'];(function(_0x2b9d2a,_0x22f34){const _0x2bc02f=function(_0x18c5b1){while(--_0x18c5b1){_0x2b9d2a['push'](_0x2b9d2a['shift']());}};_0x2bc02f(++_0x22f34);}(a359_0x2bc0,0x19e));const a359_0x18c5=function(_0x2b9d2a,_0x22f34){_0x2b9d2a=_0x2b9d2a-0x14a;let _0x2bc02f=a359_0x2bc0[_0x2b9d2a];return _0x2bc02f;};const a359_0x50f537=a359_0x18c5;'use strict';const {Model}=require(a359_0x50f537(0x14c)),{attributes}=require(a359_0x50f537(0x14d)),{options}=require(a359_0x50f537(0x14b));class ServicenowConfiguration extends Model{}function init(_0x383e14,_0x35d0d3){const _0x5baccb=options(_0x383e14),_0x2dc652=typeof _0x35d0d3==='function'?_0x35d0d3(_0x5baccb):_0x5baccb;return ServicenowConfiguration['init'](attributes,_0x2dc652),ServicenowConfiguration;}module[a359_0x50f537(0x14a)][a359_0x50f537(0x14f)]=ServicenowConfiguration,module['exports'][a359_0x50f537(0x14e)]=init; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.options.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.options.js index 93c7174..07d64a2 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.options.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.options.js @@ -1 +1 @@ -var a360_0xe1b7=['int_servicenow_configurations','exports','options'];(function(_0x4578fe,_0x53bae8){var _0xe1b760=function(_0x10f910){while(--_0x10f910){_0x4578fe['push'](_0x4578fe['shift']());}};_0xe1b760(++_0x53bae8);}(a360_0xe1b7,0xf4));var a360_0x10f9=function(_0x4578fe,_0x53bae8){_0x4578fe=_0x4578fe-0xa1;var _0xe1b760=a360_0xe1b7[_0x4578fe];return _0xe1b760;};var a360_0x5b6f43=a360_0x10f9;function options(_0x325a58){var _0x1da8fd=a360_0x10f9;return{'sequelize':_0x325a58,'tableName':_0x1da8fd(0xa3),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a360_0x5b6f43(0xa1)][a360_0x5b6f43(0xa2)]=options; \ No newline at end of file +var a360_0x1bdc=['int_servicenow_configurations','options'];(function(_0x8e3278,_0x15294f){var _0x1bdc35=function(_0xabb75e){while(--_0xabb75e){_0x8e3278['push'](_0x8e3278['shift']());}};_0x1bdc35(++_0x15294f);}(a360_0x1bdc,0x1e5));var a360_0xabb7=function(_0x8e3278,_0x15294f){_0x8e3278=_0x8e3278-0x110;var _0x1bdc35=a360_0x1bdc[_0x8e3278];return _0x1bdc35;};var a360_0x20b568=a360_0xabb7;function options(_0x27c0fa){var _0x5cf6cc=a360_0xabb7;return{'sequelize':_0x27c0fa,'tableName':_0x5cf6cc(0x111),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a360_0x20b568(0x110)]=options; \ No newline at end of file diff --git a/server/api/intServicenowField/index.js b/server/api/intServicenowField/index.js index 94e9a5f..9929078 100644 --- a/server/api/intServicenowField/index.js +++ b/server/api/intServicenowField/index.js @@ -1 +1 @@ -const a361_0x1daa=['post','exports','get','create','./intServicenowField.controller','update','isAuthenticated','express','Router'];(function(_0x2fcce4,_0x25be01){const _0x1daa74=function(_0x1cdf35){while(--_0x1cdf35){_0x2fcce4['push'](_0x2fcce4['shift']());}};_0x1daa74(++_0x25be01);}(a361_0x1daa,0x169));const a361_0x1cdf=function(_0x2fcce4,_0x25be01){_0x2fcce4=_0x2fcce4-0x102;let _0x1daa74=a361_0x1daa[_0x2fcce4];return _0x1daa74;};const a361_0x3dda4c=a361_0x1cdf;'use strict';const express=require(a361_0x3dda4c(0x108)),router=express[a361_0x3dda4c(0x109)](),auth=require('../../components/auth/service'),controller=require(a361_0x3dda4c(0x105));router[a361_0x3dda4c(0x103)]('/',auth[a361_0x3dda4c(0x107)](),controller['index']),router[a361_0x3dda4c(0x103)]('/:id',auth[a361_0x3dda4c(0x107)](),controller['show']),router[a361_0x3dda4c(0x10a)]('/',auth[a361_0x3dda4c(0x107)](),controller[a361_0x3dda4c(0x104)]),router['put']('/:id',auth[a361_0x3dda4c(0x107)](),controller[a361_0x3dda4c(0x106)]),router['delete']('/:id',auth[a361_0x3dda4c(0x107)](),controller['destroy']),module[a361_0x3dda4c(0x102)]=router; \ No newline at end of file +const a361_0x2634=['./intServicenowField.controller','update','isAuthenticated','create','post','express','/:id','show','get','exports','delete','put','destroy'];(function(_0x1e7fc9,_0x2503d4){const _0x2634cc=function(_0x2b1c40){while(--_0x2b1c40){_0x1e7fc9['push'](_0x1e7fc9['shift']());}};_0x2634cc(++_0x2503d4);}(a361_0x2634,0x118));const a361_0x2b1c=function(_0x1e7fc9,_0x2503d4){_0x1e7fc9=_0x1e7fc9-0x156;let _0x2634cc=a361_0x2634[_0x1e7fc9];return _0x2634cc;};const a361_0x19ca77=a361_0x2b1c;'use strict';const express=require(a361_0x19ca77(0x161)),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a361_0x19ca77(0x15c));router[a361_0x19ca77(0x157)]('/',auth[a361_0x19ca77(0x15e)](),controller['index']),router['get'](a361_0x19ca77(0x162),auth[a361_0x19ca77(0x15e)](),controller[a361_0x19ca77(0x156)]),router[a361_0x19ca77(0x160)]('/',auth[a361_0x19ca77(0x15e)](),controller[a361_0x19ca77(0x15f)]),router[a361_0x19ca77(0x15a)]('/:id',auth['isAuthenticated'](),controller[a361_0x19ca77(0x15d)]),router[a361_0x19ca77(0x159)]('/:id',auth['isAuthenticated'](),controller[a361_0x19ca77(0x15b)]),module[a361_0x19ca77(0x158)]=router; \ No newline at end of file diff --git a/server/api/intServicenowField/intServicenowField.attributes.js b/server/api/intServicenowField/intServicenowField.attributes.js index 8b8bfeb..295f362 100644 --- a/server/api/intServicenowField/intServicenowField.attributes.js +++ b/server/api/intServicenowField/intServicenowField.attributes.js @@ -1 +1 @@ -const a362_0x96db=['STRING','string','customVariable','BOOLEAN','variable','keyValue','sequelize','ENUM'];(function(_0x2a5c54,_0x421243){const _0x96db8a=function(_0x284f73){while(--_0x284f73){_0x2a5c54['push'](_0x2a5c54['shift']());}};_0x96db8a(++_0x421243);}(a362_0x96db,0x1e4));const a362_0x284f=function(_0x2a5c54,_0x421243){_0x2a5c54=_0x2a5c54-0x163;let _0x96db8a=a362_0x96db[_0x2a5c54];return _0x96db8a;};const a362_0x3d70a8=a362_0x284f;'use strict';const {DataTypes}=require(a362_0x3d70a8(0x165)),attributes={'type':{'type':DataTypes[a362_0x3d70a8(0x166)]('string',a362_0x3d70a8(0x163),a362_0x3d70a8(0x169),a362_0x3d70a8(0x164)),'defaultValue':'string'},'content':{'type':DataTypes[a362_0x3d70a8(0x167)]},'key':{'type':DataTypes[a362_0x3d70a8(0x167)]},'keyType':{'type':DataTypes['ENUM'](a362_0x3d70a8(0x168),a362_0x3d70a8(0x163),'customVariable')},'keyContent':{'type':DataTypes[a362_0x3d70a8(0x167)]},'idField':{'type':DataTypes['STRING']},'nameField':{'type':DataTypes[a362_0x3d70a8(0x167)]},'customField':{'type':DataTypes[a362_0x3d70a8(0x16a)],'defaultValue':!![]},'variableName':{'type':DataTypes[a362_0x3d70a8(0x167)]}};module['exports']['attributes']=attributes; \ No newline at end of file +const a362_0x55d7=['customVariable','string','STRING','sequelize','variable','attributes','BOOLEAN','keyValue'];(function(_0x33ef99,_0x3f81e3){const _0x55d7ad=function(_0x585d30){while(--_0x585d30){_0x33ef99['push'](_0x33ef99['shift']());}};_0x55d7ad(++_0x3f81e3);}(a362_0x55d7,0x16a));const a362_0x585d=function(_0x33ef99,_0x3f81e3){_0x33ef99=_0x33ef99-0xc2;let _0x55d7ad=a362_0x55d7[_0x33ef99];return _0x55d7ad;};const a362_0xf98aa6=a362_0x585d;'use strict';const {DataTypes}=require(a362_0xf98aa6(0xc3)),attributes={'type':{'type':DataTypes['ENUM'](a362_0xf98aa6(0xc9),a362_0xf98aa6(0xc4),a362_0xf98aa6(0xc8),a362_0xf98aa6(0xc7)),'defaultValue':a362_0xf98aa6(0xc9)},'content':{'type':DataTypes[a362_0xf98aa6(0xc2)]},'key':{'type':DataTypes[a362_0xf98aa6(0xc2)]},'keyType':{'type':DataTypes['ENUM'](a362_0xf98aa6(0xc9),a362_0xf98aa6(0xc4),'customVariable')},'keyContent':{'type':DataTypes[a362_0xf98aa6(0xc2)]},'idField':{'type':DataTypes[a362_0xf98aa6(0xc2)]},'nameField':{'type':DataTypes['STRING']},'customField':{'type':DataTypes[a362_0xf98aa6(0xc6)],'defaultValue':!![]},'variableName':{'type':DataTypes[a362_0xf98aa6(0xc2)]}};module['exports'][a362_0xf98aa6(0xc5)]=attributes; \ No newline at end of file diff --git a/server/api/intServicenowField/intServicenowField.controller.js b/server/api/intServicenowField/intServicenowField.controller.js index b08e750..630bf9f 100644 --- a/server/api/intServicenowField/intServicenowField.controller.js +++ b/server/api/intServicenowField/intServicenowField.controller.js @@ -1 +1 @@ -const a363_0x111c=['offset','sort','pick','findOne','status','fieldName','keys','filter','merge','type','send','body','destroy','filters','key','map','limit','includeAll','order','nolimit','api','set','stack','Content-Range','undefined','query','sendStatus','model','json','include','params','fields','catch','VIRTUAL','show','lodash','../../mysqldb','options','update','ServicenowField','../../config/logger','name','findAll','../../components/parsers/qs','intersection','then','count','sequelize','create','index','attributes','error','rawAttributes','end','where'];(function(_0x995361,_0x5ec7d1){const _0x111c1a=function(_0x308683){while(--_0x308683){_0x995361['push'](_0x995361['shift']());}};_0x111c1a(++_0x5ec7d1);}(a363_0x111c,0x150));const a363_0x3086=function(_0x995361,_0x5ec7d1){_0x995361=_0x995361-0x17f;let _0x111c1a=a363_0x111c[_0x995361];return _0x111c1a;};const a363_0x68a89d=a363_0x3086;'use strict';const _=require(a363_0x68a89d(0x19c)),qs=require(a363_0x68a89d(0x1a4)),logger=require(a363_0x68a89d(0x1a1))(a363_0x68a89d(0x18d)),{db}=require(a363_0x68a89d(0x19d)),{Op}=require(a363_0x68a89d(0x1a8));function respondWithResult(_0x55e236,_0x4a3b96){return _0x4a3b96=_0x4a3b96||0xc8,function(_0x47f192){const _0x5b0088=a363_0x3086;if(_0x47f192)return _0x55e236[_0x5b0088(0x1b4)](_0x4a3b96)[_0x5b0088(0x195)](_0x47f192);};}function respondWithFilteredResult(_0x416416,_0x477f4e){return function(_0x2d1aca){const _0x227f0c=a363_0x3086;if(_0x2d1aca){const _0x462ad5=_0x2d1aca[_0x227f0c(0x1a7)],_0x261458=_0x477f4e['offset'];let _0x3da957=_0x477f4e[_0x227f0c(0x1b0)]+_0x477f4e[_0x227f0c(0x189)],_0x149c6f;return _0x3da957>=_0x462ad5?(_0x3da957=_0x462ad5,_0x149c6f=0xc8):_0x149c6f=0xce,_0x416416['status'](_0x149c6f),_0x416416[_0x227f0c(0x18e)](_0x227f0c(0x190),_0x261458+'-'+_0x3da957+'/'+_0x462ad5)[_0x227f0c(0x195)](_0x2d1aca);}return null;};}function saveUpdates(_0x25da33){return function(_0x72146){const _0x122f3c=a363_0x3086;if(_0x72146)return _0x72146[_0x122f3c(0x19f)](_0x25da33)['then'](function(_0x3f32a9){return _0x3f32a9;});return null;};}function removeEntity(_0x1511be){return function(_0x3f56b9){const _0x54bd81=a363_0x3086;if(_0x3f56b9)return _0x3f56b9[_0x54bd81(0x185)]()[_0x54bd81(0x1a6)](function(){const _0x55df14=_0x54bd81;_0x1511be['status'](0xcc)[_0x55df14(0x1ae)]();});};}function handleEntityNotFound(_0x4c8880){return function(_0x5ad9c2){const _0x48b58a=a363_0x3086;return!_0x5ad9c2&&_0x4c8880[_0x48b58a(0x193)](0x194),_0x5ad9c2;};}function handleError(_0x14007d,_0x17395a){return _0x17395a=_0x17395a||0x1f4,function(_0xe50d69){const _0x47e6d4=a363_0x3086;logger[_0x47e6d4(0x1ac)](_0xe50d69[_0x47e6d4(0x18f)]),_0xe50d69['name']&&delete _0xe50d69['name'],_0x14007d[_0x47e6d4(0x1b4)](_0x17395a)[_0x47e6d4(0x183)](_0xe50d69);};}exports[a363_0x68a89d(0x1aa)]=function(_0x2a57cd,_0x5534a4){const _0x200894=a363_0x68a89d;let _0x374f7c={};const _0x118795={},_0x57ebf4={'count':0x0,'rows':[]},_0x477bd8=_[_0x200894(0x188)](db['ServicenowField'][_0x200894(0x1ad)],function(_0x239a21){const _0x3aed4f=_0x200894;return{'name':_0x239a21[_0x3aed4f(0x1b5)],'type':_0x239a21['type'][_0x3aed4f(0x187)]};});_0x118795[_0x200894(0x194)]=_[_0x200894(0x188)](_0x477bd8,_0x200894(0x1a2)),_0x118795[_0x200894(0x192)]=_[_0x200894(0x17f)](_0x2a57cd[_0x200894(0x192)]),_0x118795[_0x200894(0x186)]=_['intersection'](_0x118795[_0x200894(0x194)],_0x118795[_0x200894(0x192)]),_0x374f7c[_0x200894(0x1ab)]=_['intersection'](_0x118795[_0x200894(0x194)],qs['fields'](_0x2a57cd[_0x200894(0x192)][_0x200894(0x198)])),_0x374f7c[_0x200894(0x1ab)]=_0x374f7c[_0x200894(0x1ab)]['length']?_0x374f7c[_0x200894(0x1ab)]:_0x118795[_0x200894(0x194)];typeof _0x2a57cd[_0x200894(0x192)][_0x200894(0x18c)]===_0x200894(0x191)&&(_0x374f7c[_0x200894(0x189)]=qs[_0x200894(0x189)](_0x2a57cd[_0x200894(0x192)][_0x200894(0x189)]),_0x374f7c['offset']=qs[_0x200894(0x1b0)](_0x2a57cd[_0x200894(0x192)][_0x200894(0x1b0)]));_0x374f7c[_0x200894(0x18b)]=qs['sort'](_0x2a57cd['query'][_0x200894(0x1b1)]),_0x374f7c['where']=qs[_0x200894(0x186)](_[_0x200894(0x1b2)](_0x2a57cd['query'],_0x118795[_0x200894(0x186)]),_0x477bd8);_0x2a57cd[_0x200894(0x192)][_0x200894(0x180)]&&(_0x374f7c['where']=_[_0x200894(0x181)](_0x374f7c[_0x200894(0x1af)],{[Op['or']]:_['map'](_0x477bd8,function(_0x323bbc){const _0x486536=_0x200894;if(_0x323bbc[_0x486536(0x182)]!==_0x486536(0x19a)){const _0x3bf8eb={};return _0x3bf8eb[_0x323bbc[_0x486536(0x1a2)]]={[Op['like']]:'%'+_0x2a57cd[_0x486536(0x192)][_0x486536(0x180)]+'%'},_0x3bf8eb;}})}));_0x374f7c=_[_0x200894(0x181)]({},_0x374f7c,_0x2a57cd[_0x200894(0x19e)]);const _0xe4590c={'where':_0x374f7c[_0x200894(0x1af)]};return db[_0x200894(0x1a0)]['count'](_0xe4590c)[_0x200894(0x1a6)](function(_0x54e31b){const _0x52ce9a=_0x200894;return _0x57ebf4[_0x52ce9a(0x1a7)]=_0x54e31b,_0x2a57cd[_0x52ce9a(0x192)][_0x52ce9a(0x18a)]&&(_0x374f7c[_0x52ce9a(0x196)]=[{'all':!![]}]),db[_0x52ce9a(0x1a0)][_0x52ce9a(0x1a3)](_0x374f7c);})[_0x200894(0x1a6)](function(_0x18b043){return _0x57ebf4['rows']=_0x18b043,_0x57ebf4;})[_0x200894(0x1a6)](respondWithFilteredResult(_0x5534a4,_0x374f7c))[_0x200894(0x199)](handleError(_0x5534a4,null));},exports[a363_0x68a89d(0x19b)]=function(_0x13ae7d,_0x12a05b){const _0x2b84d6=a363_0x68a89d;let _0x4f3304={'raw':!![],'where':{'id':_0x13ae7d[_0x2b84d6(0x197)]['id']}};const _0x513ccd={};return _0x513ccd[_0x2b84d6(0x194)]=_[_0x2b84d6(0x17f)](db[_0x2b84d6(0x1a0)]['rawAttributes']),_0x513ccd[_0x2b84d6(0x192)]=_[_0x2b84d6(0x17f)](_0x13ae7d[_0x2b84d6(0x192)]),_0x513ccd['filters']=_[_0x2b84d6(0x1a5)](_0x513ccd[_0x2b84d6(0x194)],_0x513ccd['query']),_0x4f3304[_0x2b84d6(0x1ab)]=_['intersection'](_0x513ccd[_0x2b84d6(0x194)],qs[_0x2b84d6(0x198)](_0x13ae7d[_0x2b84d6(0x192)][_0x2b84d6(0x198)])),_0x4f3304[_0x2b84d6(0x1ab)]=_0x4f3304[_0x2b84d6(0x1ab)]['length']?_0x4f3304['attributes']:_0x513ccd[_0x2b84d6(0x194)],_0x13ae7d[_0x2b84d6(0x192)][_0x2b84d6(0x18a)]&&(_0x4f3304[_0x2b84d6(0x196)]=[{'all':!![]}]),_0x4f3304=_[_0x2b84d6(0x181)]({},_0x4f3304,_0x13ae7d[_0x2b84d6(0x19e)]),db[_0x2b84d6(0x1a0)][_0x2b84d6(0x1b3)](_0x4f3304)[_0x2b84d6(0x1a6)](handleEntityNotFound(_0x12a05b,null))[_0x2b84d6(0x1a6)](respondWithResult(_0x12a05b,null))[_0x2b84d6(0x199)](handleError(_0x12a05b,null));},exports[a363_0x68a89d(0x1a9)]=function(_0x34ca21,_0x3fa3b9){const _0x48d37d=a363_0x68a89d;return db[_0x48d37d(0x1a0)][_0x48d37d(0x1a9)](_0x34ca21[_0x48d37d(0x184)],{})[_0x48d37d(0x1a6)](respondWithResult(_0x3fa3b9,0xc9))[_0x48d37d(0x199)](handleError(_0x3fa3b9,null));},exports[a363_0x68a89d(0x19f)]=function(_0x2cd84c,_0x4227cd){const _0x449928=a363_0x68a89d;return _0x2cd84c['body']['id']&&delete _0x2cd84c['body']['id'],db[_0x449928(0x1a0)]['findOne']({'where':{'id':_0x2cd84c[_0x449928(0x197)]['id']}})[_0x449928(0x1a6)](handleEntityNotFound(_0x4227cd,null))['then'](saveUpdates(_0x2cd84c[_0x449928(0x184)],null))[_0x449928(0x1a6)](respondWithResult(_0x4227cd,null))['catch'](handleError(_0x4227cd,null));},exports[a363_0x68a89d(0x185)]=function(_0x2d6b4d,_0x5937f8){const _0xf66ea1=a363_0x68a89d;return db[_0xf66ea1(0x1a0)][_0xf66ea1(0x1b3)]({'where':{'id':_0x2d6b4d[_0xf66ea1(0x197)]['id']}})[_0xf66ea1(0x1a6)](handleEntityNotFound(_0x5937f8,null))[_0xf66ea1(0x1a6)](removeEntity(_0x5937f8,null))['catch'](handleError(_0x5937f8,null));}; \ No newline at end of file +const a363_0x1daa=['attributes','findAll','offset','destroy','create','keys','fieldName','set','json','update','sendStatus','body','fields','key','rawAttributes','nolimit','VIRTUAL','model','pick','where','api','count','options','../../components/parsers/qs','stack','length','ServicenowField','merge','Content-Range','type','query','filters','sequelize','findOne','map','then','index','catch','limit','filter','name','sort','../../config/logger','include','show','end','intersection','rows','status','undefined','params'];(function(_0x24058b,_0x237d45){const _0x1daafc=function(_0x4a8677){while(--_0x4a8677){_0x24058b['push'](_0x24058b['shift']());}};_0x1daafc(++_0x237d45);}(a363_0x1daa,0x1c8));const a363_0x4a86=function(_0x24058b,_0x237d45){_0x24058b=_0x24058b-0x11c;let _0x1daafc=a363_0x1daa[_0x24058b];return _0x1daafc;};const a363_0x1a006d=a363_0x4a86;'use strict';const _=require('lodash'),qs=require(a363_0x1a006d(0x136)),logger=require(a363_0x1a006d(0x149))(a363_0x1a006d(0x133)),{db}=require('../../mysqldb'),{Op}=require(a363_0x1a006d(0x13f));function respondWithResult(_0x5379f9,_0x1d9fab){return _0x1d9fab=_0x1d9fab||0xc8,function(_0xd36d7c){const _0x503bb8=a363_0x4a86;if(_0xd36d7c)return _0x5379f9['status'](_0x1d9fab)[_0x503bb8(0x127)](_0xd36d7c);};}function respondWithFilteredResult(_0x7894de,_0x43ccae){return function(_0x168d71){const _0x1974bd=a363_0x4a86;if(_0x168d71){const _0x5d5bbd=_0x168d71[_0x1974bd(0x134)],_0x327779=_0x43ccae[_0x1974bd(0x121)];let _0x31c5b9=_0x43ccae[_0x1974bd(0x121)]+_0x43ccae['limit'],_0x98b605;return _0x31c5b9>=_0x5d5bbd?(_0x31c5b9=_0x5d5bbd,_0x98b605=0xc8):_0x98b605=0xce,_0x7894de[_0x1974bd(0x11c)](_0x98b605),_0x7894de[_0x1974bd(0x126)](_0x1974bd(0x13b),_0x327779+'-'+_0x31c5b9+'/'+_0x5d5bbd)[_0x1974bd(0x127)](_0x168d71);}return null;};}function saveUpdates(_0x106757){return function(_0x20672c){const _0xa17000=a363_0x4a86;if(_0x20672c)return _0x20672c[_0xa17000(0x128)](_0x106757)['then'](function(_0x286fb0){return _0x286fb0;});return null;};}function removeEntity(_0x546481){return function(_0x5d11a5){const _0x338a09=a363_0x4a86;if(_0x5d11a5)return _0x5d11a5[_0x338a09(0x122)]()[_0x338a09(0x142)](function(){const _0x3d1ad5=_0x338a09;_0x546481[_0x3d1ad5(0x11c)](0xcc)[_0x3d1ad5(0x14c)]();});};}function handleEntityNotFound(_0x2bf572){return function(_0x15097c){const _0x21e7a1=a363_0x4a86;return!_0x15097c&&_0x2bf572[_0x21e7a1(0x129)](0x194),_0x15097c;};}function handleError(_0x420cec,_0x53ceaf){return _0x53ceaf=_0x53ceaf||0x1f4,function(_0x53cfa6){const _0x4b34b5=a363_0x4a86;logger['error'](_0x53cfa6[_0x4b34b5(0x137)]),_0x53cfa6[_0x4b34b5(0x147)]&&delete _0x53cfa6[_0x4b34b5(0x147)],_0x420cec[_0x4b34b5(0x11c)](_0x53ceaf)['send'](_0x53cfa6);};}exports[a363_0x1a006d(0x143)]=function(_0x46cd33,_0x10dabc){const _0x23e5cd=a363_0x1a006d;let _0x12d8bc={};const _0x5582f9={},_0x382d16={'count':0x0,'rows':[]},_0x2ecb3e=_['map'](db[_0x23e5cd(0x139)][_0x23e5cd(0x12d)],function(_0x38d7f6){const _0x596f8e=_0x23e5cd;return{'name':_0x38d7f6[_0x596f8e(0x125)],'type':_0x38d7f6[_0x596f8e(0x13c)][_0x596f8e(0x12c)]};});_0x5582f9[_0x23e5cd(0x130)]=_[_0x23e5cd(0x141)](_0x2ecb3e,_0x23e5cd(0x147)),_0x5582f9['query']=_[_0x23e5cd(0x124)](_0x46cd33['query']),_0x5582f9[_0x23e5cd(0x13e)]=_[_0x23e5cd(0x14d)](_0x5582f9[_0x23e5cd(0x130)],_0x5582f9[_0x23e5cd(0x13d)]),_0x12d8bc['attributes']=_['intersection'](_0x5582f9['model'],qs[_0x23e5cd(0x12b)](_0x46cd33['query'][_0x23e5cd(0x12b)])),_0x12d8bc[_0x23e5cd(0x11f)]=_0x12d8bc[_0x23e5cd(0x11f)][_0x23e5cd(0x138)]?_0x12d8bc[_0x23e5cd(0x11f)]:_0x5582f9['model'];typeof _0x46cd33['query'][_0x23e5cd(0x12e)]===_0x23e5cd(0x11d)&&(_0x12d8bc[_0x23e5cd(0x145)]=qs[_0x23e5cd(0x145)](_0x46cd33['query']['limit']),_0x12d8bc[_0x23e5cd(0x121)]=qs['offset'](_0x46cd33[_0x23e5cd(0x13d)]['offset']));_0x12d8bc['order']=qs[_0x23e5cd(0x148)](_0x46cd33[_0x23e5cd(0x13d)][_0x23e5cd(0x148)]),_0x12d8bc[_0x23e5cd(0x132)]=qs['filters'](_[_0x23e5cd(0x131)](_0x46cd33[_0x23e5cd(0x13d)],_0x5582f9[_0x23e5cd(0x13e)]),_0x2ecb3e);_0x46cd33[_0x23e5cd(0x13d)][_0x23e5cd(0x146)]&&(_0x12d8bc[_0x23e5cd(0x132)]=_['merge'](_0x12d8bc[_0x23e5cd(0x132)],{[Op['or']]:_['map'](_0x2ecb3e,function(_0x2b505a){const _0x2efbf3=_0x23e5cd;if(_0x2b505a['type']!==_0x2efbf3(0x12f)){const _0xbc783f={};return _0xbc783f[_0x2b505a[_0x2efbf3(0x147)]]={[Op['like']]:'%'+_0x46cd33[_0x2efbf3(0x13d)][_0x2efbf3(0x146)]+'%'},_0xbc783f;}})}));_0x12d8bc=_[_0x23e5cd(0x13a)]({},_0x12d8bc,_0x46cd33[_0x23e5cd(0x135)]);const _0x1d8fdc={'where':_0x12d8bc['where']};return db[_0x23e5cd(0x139)]['count'](_0x1d8fdc)[_0x23e5cd(0x142)](function(_0x2bcba6){const _0x31aed1=_0x23e5cd;return _0x382d16[_0x31aed1(0x134)]=_0x2bcba6,_0x46cd33[_0x31aed1(0x13d)]['includeAll']&&(_0x12d8bc[_0x31aed1(0x14a)]=[{'all':!![]}]),db[_0x31aed1(0x139)][_0x31aed1(0x120)](_0x12d8bc);})[_0x23e5cd(0x142)](function(_0x59fe2e){const _0x1bc8e6=_0x23e5cd;return _0x382d16[_0x1bc8e6(0x14e)]=_0x59fe2e,_0x382d16;})[_0x23e5cd(0x142)](respondWithFilteredResult(_0x10dabc,_0x12d8bc))[_0x23e5cd(0x144)](handleError(_0x10dabc,null));},exports[a363_0x1a006d(0x14b)]=function(_0x34fbc4,_0x1dc5e0){const _0x2d48e5=a363_0x1a006d;let _0x2d625d={'raw':!![],'where':{'id':_0x34fbc4['params']['id']}};const _0x44aa63={};return _0x44aa63[_0x2d48e5(0x130)]=_[_0x2d48e5(0x124)](db[_0x2d48e5(0x139)][_0x2d48e5(0x12d)]),_0x44aa63['query']=_[_0x2d48e5(0x124)](_0x34fbc4['query']),_0x44aa63[_0x2d48e5(0x13e)]=_[_0x2d48e5(0x14d)](_0x44aa63['model'],_0x44aa63[_0x2d48e5(0x13d)]),_0x2d625d[_0x2d48e5(0x11f)]=_['intersection'](_0x44aa63[_0x2d48e5(0x130)],qs[_0x2d48e5(0x12b)](_0x34fbc4[_0x2d48e5(0x13d)][_0x2d48e5(0x12b)])),_0x2d625d[_0x2d48e5(0x11f)]=_0x2d625d[_0x2d48e5(0x11f)][_0x2d48e5(0x138)]?_0x2d625d['attributes']:_0x44aa63['model'],_0x34fbc4[_0x2d48e5(0x13d)]['includeAll']&&(_0x2d625d[_0x2d48e5(0x14a)]=[{'all':!![]}]),_0x2d625d=_[_0x2d48e5(0x13a)]({},_0x2d625d,_0x34fbc4[_0x2d48e5(0x135)]),db[_0x2d48e5(0x139)][_0x2d48e5(0x140)](_0x2d625d)[_0x2d48e5(0x142)](handleEntityNotFound(_0x1dc5e0,null))[_0x2d48e5(0x142)](respondWithResult(_0x1dc5e0,null))[_0x2d48e5(0x144)](handleError(_0x1dc5e0,null));},exports[a363_0x1a006d(0x123)]=function(_0x5362a8,_0x20452b){const _0x5ad4a9=a363_0x1a006d;return db[_0x5ad4a9(0x139)][_0x5ad4a9(0x123)](_0x5362a8[_0x5ad4a9(0x12a)],{})[_0x5ad4a9(0x142)](respondWithResult(_0x20452b,0xc9))['catch'](handleError(_0x20452b,null));},exports[a363_0x1a006d(0x128)]=function(_0x1f485d,_0x3addbc){const _0x1074cc=a363_0x1a006d;return _0x1f485d[_0x1074cc(0x12a)]['id']&&delete _0x1f485d['body']['id'],db[_0x1074cc(0x139)][_0x1074cc(0x140)]({'where':{'id':_0x1f485d[_0x1074cc(0x11e)]['id']}})[_0x1074cc(0x142)](handleEntityNotFound(_0x3addbc,null))[_0x1074cc(0x142)](saveUpdates(_0x1f485d[_0x1074cc(0x12a)],null))[_0x1074cc(0x142)](respondWithResult(_0x3addbc,null))[_0x1074cc(0x144)](handleError(_0x3addbc,null));},exports['destroy']=function(_0x3bff66,_0x1616ef){const _0x2757e4=a363_0x1a006d;return db['ServicenowField'][_0x2757e4(0x140)]({'where':{'id':_0x3bff66['params']['id']}})[_0x2757e4(0x142)](handleEntityNotFound(_0x1616ef,null))[_0x2757e4(0x142)](removeEntity(_0x1616ef,null))[_0x2757e4(0x144)](handleError(_0x1616ef,null));}; \ No newline at end of file diff --git a/server/api/intServicenowField/intServicenowField.model.js b/server/api/intServicenowField/intServicenowField.model.js index 0e3a5f0..3845ac2 100644 --- a/server/api/intServicenowField/intServicenowField.model.js +++ b/server/api/intServicenowField/intServicenowField.model.js @@ -1 +1 @@ -const a364_0x3e15=['exports','function','sequelize','./intServicenowField.attributes','./intServicenowField.options'];(function(_0x8e04dd,_0x13bed1){const _0x3e1560=function(_0x3607af){while(--_0x3607af){_0x8e04dd['push'](_0x8e04dd['shift']());}};_0x3e1560(++_0x13bed1);}(a364_0x3e15,0x1c9));const a364_0x3607=function(_0x8e04dd,_0x13bed1){_0x8e04dd=_0x8e04dd-0x166;let _0x3e1560=a364_0x3e15[_0x8e04dd];return _0x3e1560;};const a364_0x362606=a364_0x3607;'use strict';const {Model}=require(a364_0x362606(0x166)),{attributes}=require(a364_0x362606(0x167)),{options}=require(a364_0x362606(0x168));class ServicenowField extends Model{}function init(_0xcdea57,_0x157652){const _0x3f75b8=a364_0x362606,_0x2d1274=options(_0xcdea57),_0x52ab3c=typeof _0x157652===_0x3f75b8(0x16a)?_0x157652(_0x2d1274):_0x2d1274;return ServicenowField['init'](attributes,_0x52ab3c),ServicenowField;}module[a364_0x362606(0x169)]['ServicenowField']=ServicenowField,module[a364_0x362606(0x169)]['init']=init; \ No newline at end of file +const a364_0x39b8=['./intServicenowField.attributes','./intServicenowField.options','function','exports','init','ServicenowField'];(function(_0x370b32,_0x3afff7){const _0x39b8ad=function(_0xb5b82d){while(--_0xb5b82d){_0x370b32['push'](_0x370b32['shift']());}};_0x39b8ad(++_0x3afff7);}(a364_0x39b8,0x121));const a364_0xb5b8=function(_0x370b32,_0x3afff7){_0x370b32=_0x370b32-0xf5;let _0x39b8ad=a364_0x39b8[_0x370b32];return _0x39b8ad;};const a364_0xd0c829=a364_0xb5b8;'use strict';const {Model}=require('sequelize'),{attributes}=require(a364_0xd0c829(0xfa)),{options}=require(a364_0xd0c829(0xf5));class ServicenowField extends Model{}function init(_0x58028f,_0x172f3d){const _0x482171=a364_0xd0c829,_0x27c28c=options(_0x58028f),_0xf95acd=typeof _0x172f3d===_0x482171(0xf6)?_0x172f3d(_0x27c28c):_0x27c28c;return ServicenowField[_0x482171(0xf8)](attributes,_0xf95acd),ServicenowField;}module[a364_0xd0c829(0xf7)][a364_0xd0c829(0xf9)]=ServicenowField,module[a364_0xd0c829(0xf7)][a364_0xd0c829(0xf8)]=init; \ No newline at end of file diff --git a/server/api/intServicenowField/intServicenowField.options.js b/server/api/intServicenowField/intServicenowField.options.js index 9d7ca1f..3a3907a 100644 --- a/server/api/intServicenowField/intServicenowField.options.js +++ b/server/api/intServicenowField/intServicenowField.options.js @@ -1 +1 @@ -var a365_0x12df=['servicenow_unique_index','options','exports','int_servicenow_fields','FieldId','idField'];(function(_0x16fcc8,_0xa066f0){var _0x12df07=function(_0x11d729){while(--_0x11d729){_0x16fcc8['push'](_0x16fcc8['shift']());}};_0x12df07(++_0xa066f0);}(a365_0x12df,0x1dc));var a365_0x11d7=function(_0x16fcc8,_0xa066f0){_0x16fcc8=_0x16fcc8-0x124;var _0x12df07=a365_0x12df[_0x16fcc8];return _0x12df07;};var a365_0x51f23=a365_0x11d7;function options(_0x300626){var _0x22fc70=a365_0x11d7;return{'sequelize':_0x300626,'tableName':_0x22fc70(0x125),'paranoid':![],'indexes':[{'name':_0x22fc70(0x128),'fields':[_0x22fc70(0x127),_0x22fc70(0x126)],'unique':!![]}],'timestamps':!![]};}module[a365_0x51f23(0x124)][a365_0x51f23(0x129)]=options; \ No newline at end of file +var a365_0x2cb9=['int_servicenow_fields','idField'];(function(_0x5ed9e1,_0x5ecb42){var _0x2cb9d4=function(_0x572785){while(--_0x572785){_0x5ed9e1['push'](_0x5ed9e1['shift']());}};_0x2cb9d4(++_0x5ecb42);}(a365_0x2cb9,0x183));var a365_0x5727=function(_0x5ed9e1,_0x5ecb42){_0x5ed9e1=_0x5ed9e1-0xeb;var _0x2cb9d4=a365_0x2cb9[_0x5ed9e1];return _0x2cb9d4;};function options(_0x1ec0ff){var _0x1cdc1a=a365_0x5727;return{'sequelize':_0x1ec0ff,'tableName':_0x1cdc1a(0xec),'paranoid':![],'indexes':[{'name':'servicenow_unique_index','fields':[_0x1cdc1a(0xeb),'FieldId'],'unique':!![]}],'timestamps':!![]};}module['exports']['options']=options; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/index.js b/server/api/intSugarcrmAccount/index.js index 76b4c59..50ff008 100644 --- a/server/api/intSugarcrmAccount/index.js +++ b/server/api/intSugarcrmAccount/index.js @@ -1 +1 @@ -const a366_0x13e1=['destroy','./intSugarcrmAccount.controller','express','get','post','Router','getConfigurations','/:id','isAuthenticated','index','../../components/auth/service','exports','update','/:id/fields','put','addConfiguration','/:id/configurations'];(function(_0x5b1ab5,_0x2872a8){const _0x13e13e=function(_0x1b7ea5){while(--_0x1b7ea5){_0x5b1ab5['push'](_0x5b1ab5['shift']());}};_0x13e13e(++_0x2872a8);}(a366_0x13e1,0x6d));const a366_0x1b7e=function(_0x5b1ab5,_0x2872a8){_0x5b1ab5=_0x5b1ab5-0xcb;let _0x13e13e=a366_0x13e1[_0x5b1ab5];return _0x13e13e;};const a366_0x41f394=a366_0x1b7e;'use strict';const express=require(a366_0x41f394(0xd7)),router=express[a366_0x41f394(0xda)](),auth=require(a366_0x41f394(0xce)),controller=require(a366_0x41f394(0xd6));router[a366_0x41f394(0xd8)]('/',auth[a366_0x41f394(0xcc)](),controller[a366_0x41f394(0xcd)]),router[a366_0x41f394(0xd8)]('/:id',auth['isAuthenticated'](),controller['show']),router[a366_0x41f394(0xd8)](a366_0x41f394(0xd4),auth[a366_0x41f394(0xcc)](),controller[a366_0x41f394(0xdb)]),router[a366_0x41f394(0xd8)](a366_0x41f394(0xd1),auth['isAuthenticated'](),controller['getFields']),router[a366_0x41f394(0xd9)]('/',auth['isAuthenticated'](),controller['create']),router[a366_0x41f394(0xd9)](a366_0x41f394(0xd4),auth[a366_0x41f394(0xcc)](),controller[a366_0x41f394(0xd3)]),router[a366_0x41f394(0xd2)]('/:id',auth[a366_0x41f394(0xcc)](),controller[a366_0x41f394(0xd0)]),router['delete'](a366_0x41f394(0xcb),auth[a366_0x41f394(0xcc)](),controller[a366_0x41f394(0xd5)]),module[a366_0x41f394(0xcf)]=router; \ No newline at end of file +const a366_0xa5de=['show','../../components/auth/service','exports','post','/:id','/:id/fields','get','create','put','/:id/configurations','Router','delete','addConfiguration','isAuthenticated','./intSugarcrmAccount.controller','getFields','update'];(function(_0x174a84,_0x34c89e){const _0xa5de2a=function(_0x18213b){while(--_0x18213b){_0x174a84['push'](_0x174a84['shift']());}};_0xa5de2a(++_0x34c89e);}(a366_0xa5de,0x194));const a366_0x1821=function(_0x174a84,_0x34c89e){_0x174a84=_0x174a84-0x14e;let _0xa5de2a=a366_0xa5de[_0x174a84];return _0xa5de2a;};const a366_0x5f25d1=a366_0x1821;'use strict';const express=require('express'),router=express[a366_0x5f25d1(0x15c)](),auth=require(a366_0x5f25d1(0x153)),controller=require(a366_0x5f25d1(0x14f));router[a366_0x5f25d1(0x158)]('/',auth['isAuthenticated'](),controller['index']),router[a366_0x5f25d1(0x158)](a366_0x5f25d1(0x156),auth['isAuthenticated'](),controller[a366_0x5f25d1(0x152)]),router[a366_0x5f25d1(0x158)](a366_0x5f25d1(0x15b),auth[a366_0x5f25d1(0x14e)](),controller['getConfigurations']),router[a366_0x5f25d1(0x158)](a366_0x5f25d1(0x157),auth[a366_0x5f25d1(0x14e)](),controller[a366_0x5f25d1(0x150)]),router[a366_0x5f25d1(0x155)]('/',auth[a366_0x5f25d1(0x14e)](),controller[a366_0x5f25d1(0x159)]),router[a366_0x5f25d1(0x155)](a366_0x5f25d1(0x15b),auth[a366_0x5f25d1(0x14e)](),controller[a366_0x5f25d1(0x15e)]),router[a366_0x5f25d1(0x15a)](a366_0x5f25d1(0x156),auth[a366_0x5f25d1(0x14e)](),controller[a366_0x5f25d1(0x151)]),router[a366_0x5f25d1(0x15d)](a366_0x5f25d1(0x156),auth[a366_0x5f25d1(0x14e)](),controller['destroy']),module[a366_0x5f25d1(0x154)]=router; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js index f8a0d62..6675811 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js @@ -1 +1 @@ -const a367_0x1319=['attributes','exports','STRING','sequelize'];(function(_0x49afa5,_0x5d19da){const _0x1319a2=function(_0x30891f){while(--_0x30891f){_0x49afa5['push'](_0x49afa5['shift']());}};_0x1319a2(++_0x5d19da);}(a367_0x1319,0x7a));const a367_0x3089=function(_0x49afa5,_0x5d19da){_0x49afa5=_0x49afa5-0x1c4;let _0x1319a2=a367_0x1319[_0x49afa5];return _0x1319a2;};const a367_0x3aaad2=a367_0x3089;'use strict';const {DataTypes}=require(a367_0x3aaad2(0x1c5)),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a367_0x3aaad2(0x1c4)]},'username':{'type':DataTypes[a367_0x3aaad2(0x1c4)],'unique':'username'},'password':{'type':DataTypes[a367_0x3aaad2(0x1c4)]},'remoteUri':{'type':DataTypes['STRING'],'unique':'remoteUri'},'serverUrl':{'type':DataTypes[a367_0x3aaad2(0x1c4)]}};module[a367_0x3aaad2(0x1c7)][a367_0x3aaad2(0x1c6)]=attributes; \ No newline at end of file +const a367_0x39a8=['STRING','remoteUri','attributes','username','exports'];(function(_0x409c19,_0x295921){const _0x39a8fd=function(_0x22d61f){while(--_0x22d61f){_0x409c19['push'](_0x409c19['shift']());}};_0x39a8fd(++_0x295921);}(a367_0x39a8,0x163));const a367_0x22d6=function(_0x409c19,_0x295921){_0x409c19=_0x409c19-0x1cf;let _0x39a8fd=a367_0x39a8[_0x409c19];return _0x39a8fd;};const a367_0x330a64=a367_0x22d6;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a367_0x330a64(0x1cf)]},'description':{'type':DataTypes[a367_0x330a64(0x1cf)]},'username':{'type':DataTypes[a367_0x330a64(0x1cf)],'unique':a367_0x330a64(0x1d2)},'password':{'type':DataTypes['STRING']},'remoteUri':{'type':DataTypes[a367_0x330a64(0x1cf)],'unique':a367_0x330a64(0x1d0)},'serverUrl':{'type':DataTypes[a367_0x330a64(0x1cf)]}};module[a367_0x330a64(0x1d3)][a367_0x330a64(0x1d1)]=attributes; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js index fc100aa..b2a1b41 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js @@ -1 +1 @@ -const a368_0xbc1e=['SugarcrmConfiguration','Wrong\x20credentials','getDescriptions','api','value','date_start','Subjects','map','includeAll','length','sort','endsWith','remove','where','/service/v4_1/rest.php','intersection','module_fields','nolimit','query','filter','pick','fieldName','login','created_by','offset','channel','status','sequelize','key','remoteUri','values','request-promise-native','like','SugarcrmField','params','stack','fields','format','../../components/parsers/qs','type','then','findOne','xCALLY\x20Motion\x20Integration','Invalid\x20Login','getFields','undefined','order','VIRTUAL','includes','filters','username','../../mysqldb','body','JSON','options','Calls','send','POST','Descriptions','%s%s','label','merge','duration_minutes','destroy','SugarcrmAccount','statusCode','test','getSubjects','assigned_user_id','getConfigurations','password','catch','direction','limit','../../components/integrations/configuration','slice','create','description','sendStatus','stringify','count','set','rawAttributes','json','name','util','index','model','rows','parent_id','substring','update','Content-Range','parent_type','../../config/logger','addConfiguration','end','attributes','PLAIN','keys'];(function(_0xd4cec7,_0x48e614){const _0xbc1e32=function(_0x597600){while(--_0x597600){_0xd4cec7['push'](_0xd4cec7['shift']());}};_0xbc1e32(++_0x48e614);}(a368_0xbc1e,0x69));const a368_0x5976=function(_0xd4cec7,_0x48e614){_0xd4cec7=_0xd4cec7-0xc5;let _0xbc1e32=a368_0xbc1e[_0xd4cec7];return _0xbc1e32;};const a368_0x381745=a368_0x5976;'use strict';const rp=require(a368_0x381745(0xdf)),util=require(a368_0x381745(0x115)),_=require('lodash'),qs=require(a368_0x381745(0xe6)),logger=require(a368_0x381745(0x11e))(a368_0x381745(0x127)),{db}=require(a368_0x381745(0xf3)),{Op}=require(a368_0x381745(0xdb)),integrations=require(a368_0x381745(0x10a));function respondWithResult(_0x3b1e73,_0x4bd771){return _0x4bd771=_0x4bd771||0xc8,function(_0x1d5696){const _0x20f712=a368_0x5976;if(_0x1d5696)return _0x3b1e73[_0x20f712(0xda)](_0x4bd771)['json'](_0x1d5696);};}function respondWithFilteredResult(_0x390e4e,_0x2f5742){return function(_0x1981cb){const _0x1c7069=a368_0x5976;if(_0x1981cb){const _0x16f091=_0x1981cb[_0x1c7069(0x110)],_0x541d9a=_0x2f5742['offset'];let _0x82fa2e=_0x2f5742['offset']+_0x2f5742[_0x1c7069(0x109)],_0x5cde2d;return _0x82fa2e>=_0x16f091?(_0x82fa2e=_0x16f091,_0x5cde2d=0xc8):_0x5cde2d=0xce,_0x390e4e[_0x1c7069(0xda)](_0x5cde2d),_0x390e4e[_0x1c7069(0x111)](_0x1c7069(0x11c),_0x541d9a+'-'+_0x82fa2e+'/'+_0x16f091)[_0x1c7069(0x113)](_0x1981cb);}return null;};}function saveUpdates(_0x1295b2){return function(_0x40b331){const _0x97ee96=a368_0x5976;if(_0x40b331)return _0x40b331[_0x97ee96(0x11b)](_0x1295b2)[_0x97ee96(0xe8)](function(_0x2f1356){return _0x2f1356;});return null;};}function removeEntity(_0x33b121){return function(_0x3cda12){const _0x3f41f4=a368_0x5976;if(_0x3cda12)return _0x3cda12[_0x3f41f4(0xff)]()[_0x3f41f4(0xe8)](function(){const _0x4ec5f8=_0x3f41f4;_0x33b121[_0x4ec5f8(0xda)](0xcc)[_0x4ec5f8(0x120)]();});};}function handleEntityNotFound(_0x42ce06){return function(_0x485cc5){const _0x9cf37=a368_0x5976;return!_0x485cc5&&_0x42ce06[_0x9cf37(0x10e)](0x194),_0x485cc5;};}function handleError(_0x44a817,_0x2355df){return _0x2355df=_0x2355df||0x1f4,function(_0x172185){const _0x4cfccb=a368_0x5976;logger['error'](_0x172185[_0x4cfccb(0xe3)]),_0x172185['name']&&delete _0x172185[_0x4cfccb(0x114)],_0x44a817[_0x4cfccb(0xda)](_0x2355df)['send'](_0x172185);};}exports[a368_0x381745(0x116)]=function(_0xbc86cc,_0x302e23){const _0xe948bf=a368_0x381745;let _0x1f2047={};const _0x3bb94c={},_0x3ab966={'count':0x0,'rows':[]},_0x1d854e=_[_0xe948bf(0xc7)](db[_0xe948bf(0x100)][_0xe948bf(0x112)],function(_0x599c8e){const _0x1e454f=_0xe948bf;return{'name':_0x599c8e[_0x1e454f(0xd5)],'type':_0x599c8e[_0x1e454f(0xe7)][_0x1e454f(0xdc)]};});_0x3bb94c[_0xe948bf(0x117)]=_[_0xe948bf(0xc7)](_0x1d854e,_0xe948bf(0x114)),_0x3bb94c['query']=_[_0xe948bf(0x123)](_0xbc86cc['query']),_0x3bb94c[_0xe948bf(0xf1)]=_[_0xe948bf(0xcf)](_0x3bb94c[_0xe948bf(0x117)],_0x3bb94c[_0xe948bf(0xd2)]),_0x1f2047[_0xe948bf(0x121)]=_['intersection'](_0x3bb94c[_0xe948bf(0x117)],qs['fields'](_0xbc86cc['query'][_0xe948bf(0xe4)])),_0x1f2047['attributes']=_0x1f2047[_0xe948bf(0x121)][_0xe948bf(0xc9)]?_0x1f2047[_0xe948bf(0x121)]:_0x3bb94c[_0xe948bf(0x117)];typeof _0xbc86cc[_0xe948bf(0xd2)][_0xe948bf(0xd1)]===_0xe948bf(0xed)&&(_0x1f2047['limit']=qs[_0xe948bf(0x109)](_0xbc86cc[_0xe948bf(0xd2)][_0xe948bf(0x109)]),_0x1f2047[_0xe948bf(0xd8)]=qs[_0xe948bf(0xd8)](_0xbc86cc['query']['offset']));_0x1f2047[_0xe948bf(0xee)]=qs[_0xe948bf(0xca)](_0xbc86cc['query'][_0xe948bf(0xca)]),_0x1f2047['where']=qs[_0xe948bf(0xf1)](_[_0xe948bf(0xd4)](_0xbc86cc[_0xe948bf(0xd2)],_0x3bb94c['filters']),_0x1d854e);_0xbc86cc[_0xe948bf(0xd2)][_0xe948bf(0xd3)]&&(_0x1f2047[_0xe948bf(0xcd)]=_[_0xe948bf(0xfd)](_0x1f2047[_0xe948bf(0xcd)],{[Op['or']]:_[_0xe948bf(0xc7)](_0x1d854e,function(_0x164545){const _0x431099=_0xe948bf;if(_0x164545['type']!==_0x431099(0xef)){const _0x2c45e4={};return _0x2c45e4[_0x164545['name']]={[Op[_0x431099(0xe0)]]:'%'+_0xbc86cc[_0x431099(0xd2)][_0x431099(0xd3)]+'%'},_0x2c45e4;}})}));_0x1f2047=_[_0xe948bf(0xfd)]({},_0x1f2047,_0xbc86cc[_0xe948bf(0xf6)]);const _0x57313d={'where':_0x1f2047[_0xe948bf(0xcd)]};return db[_0xe948bf(0x100)][_0xe948bf(0x110)](_0x57313d)[_0xe948bf(0xe8)](function(_0x276363){const _0x59e46b=_0xe948bf;return _0x3ab966['count']=_0x276363,_0xbc86cc[_0x59e46b(0xd2)]['includeAll']&&(_0x1f2047['include']=[{'all':!![]}]),db[_0x59e46b(0x100)]['findAll'](_0x1f2047);})[_0xe948bf(0xe8)](function(_0x5c2f27){const _0xfcb4f3=_0xe948bf;return _0x3ab966[_0xfcb4f3(0x118)]=_0x5c2f27,_0x3ab966;})[_0xe948bf(0xe8)](respondWithFilteredResult(_0x302e23,_0x1f2047))[_0xe948bf(0x107)](handleError(_0x302e23,null));},exports['show']=function(_0xf91ae0,_0x4e3a37){const _0x3c2774=a368_0x381745;let _0x2cabd0={'raw':![],'where':{'id':_0xf91ae0[_0x3c2774(0xe2)]['id']}};const _0x12ca7c={};return _0x12ca7c[_0x3c2774(0x117)]=_[_0x3c2774(0x123)](db[_0x3c2774(0x100)][_0x3c2774(0x112)]),_0x12ca7c['query']=_['keys'](_0xf91ae0[_0x3c2774(0xd2)]),_0x12ca7c[_0x3c2774(0xf1)]=_[_0x3c2774(0xcf)](_0x12ca7c[_0x3c2774(0x117)],_0x12ca7c[_0x3c2774(0xd2)]),_0x2cabd0[_0x3c2774(0x121)]=_[_0x3c2774(0xcf)](_0x12ca7c['model'],qs[_0x3c2774(0xe4)](_0xf91ae0[_0x3c2774(0xd2)]['fields'])),_0x2cabd0[_0x3c2774(0x121)]=_0x2cabd0['attributes'][_0x3c2774(0xc9)]?_0x2cabd0['attributes']:_0x12ca7c['model'],_0xf91ae0[_0x3c2774(0xd2)][_0x3c2774(0xc8)]&&(_0x2cabd0['include']=[{'all':!![]}]),_0x2cabd0=_[_0x3c2774(0xfd)]({},_0x2cabd0,_0xf91ae0['options']),db[_0x3c2774(0x100)][_0x3c2774(0xe9)](_0x2cabd0)[_0x3c2774(0xe8)](handleEntityNotFound(_0x4e3a37,null))['then'](respondWithResult(_0x4e3a37,null))[_0x3c2774(0x107)](handleError(_0x4e3a37,null));},exports['create']=function(_0x59ba84,_0x2e1ee5){const _0x41f6bf=a368_0x381745;return db[_0x41f6bf(0x100)][_0x41f6bf(0x10c)](_0x59ba84['body'],{})[_0x41f6bf(0xe8)](respondWithResult(_0x2e1ee5,0xc9))['catch'](handleError(_0x2e1ee5,null));},exports['update']=function(_0x3191d0,_0x171d84){const _0x5a27d8=a368_0x381745;return _0x3191d0['body']['id']&&delete _0x3191d0[_0x5a27d8(0xf4)]['id'],db[_0x5a27d8(0x100)][_0x5a27d8(0xe9)]({'where':{'id':_0x3191d0[_0x5a27d8(0xe2)]['id']}})[_0x5a27d8(0xe8)](handleEntityNotFound(_0x171d84,null))[_0x5a27d8(0xe8)](saveUpdates(_0x3191d0['body'],null))[_0x5a27d8(0xe8)](respondWithResult(_0x171d84,null))[_0x5a27d8(0x107)](handleError(_0x171d84,null));},exports['destroy']=function(_0x568165,_0x1b1f11){const _0x5ab1ab=a368_0x381745;return db['SugarcrmAccount']['findOne']({'where':{'id':_0x568165[_0x5ab1ab(0xe2)]['id']}})[_0x5ab1ab(0xe8)](handleEntityNotFound(_0x1b1f11,null))[_0x5ab1ab(0xe8)](removeEntity(_0x1b1f11,null))[_0x5ab1ab(0x107)](handleError(_0x1b1f11,null));},exports[a368_0x381745(0x105)]=function(_0x1e0651,_0x1c9133){const _0x3b8b91=a368_0x381745;let _0x4600da={};const _0x1136eb={};let _0x33f168,_0x44c337;return db[_0x3b8b91(0x100)]['findOne']({'where':{'id':_0x1e0651[_0x3b8b91(0xe2)]['id']}})[_0x3b8b91(0xe8)](handleEntityNotFound(_0x1c9133,null))[_0x3b8b91(0xe8)](function(_0x291723){const _0x228f6d=_0x3b8b91;if(_0x291723)return _0x33f168=_0x291723,_0x1136eb[_0x228f6d(0x117)]=_[_0x228f6d(0x123)](db['SugarcrmConfiguration'][_0x228f6d(0x112)]),_0x1136eb[_0x228f6d(0xd2)]=_['keys'](_0x1e0651[_0x228f6d(0xd2)]),_0x1136eb[_0x228f6d(0xf1)]=_['intersection'](_0x1136eb[_0x228f6d(0x117)],_0x1136eb[_0x228f6d(0xd2)]),_0x4600da[_0x228f6d(0x121)]=_['intersection'](_0x1136eb[_0x228f6d(0x117)],qs[_0x228f6d(0xe4)](_0x1e0651[_0x228f6d(0xd2)][_0x228f6d(0xe4)])),_0x4600da[_0x228f6d(0x121)]=_0x4600da[_0x228f6d(0x121)][_0x228f6d(0xc9)]?_0x4600da['attributes']:_0x1136eb['model'],_0x4600da[_0x228f6d(0xee)]=qs[_0x228f6d(0xca)](_0x1e0651[_0x228f6d(0xd2)][_0x228f6d(0xca)]),_0x4600da[_0x228f6d(0xcd)]=qs['filters'](_[_0x228f6d(0xd4)](_0x1e0651[_0x228f6d(0xd2)],_0x1136eb[_0x228f6d(0xf1)])),_0x1e0651[_0x228f6d(0xd2)][_0x228f6d(0xd3)]&&(_0x4600da[_0x228f6d(0xcd)]=_['merge'](_0x4600da[_0x228f6d(0xcd)],{[Op['or']]:_[_0x228f6d(0xc7)](_0x4600da[_0x228f6d(0x121)],function(_0x1d3d76){const _0x3449d4=_0x228f6d,_0x4b7bbb={};return _0x4b7bbb[_0x1d3d76]={[Op[_0x3449d4(0xe0)]]:'%'+_0x1e0651[_0x3449d4(0xd2)]['filter']+'%'},_0x4b7bbb;})})),_0x4600da=_[_0x228f6d(0xfd)]({},_0x4600da,_0x1e0651[_0x228f6d(0xf6)]),_0x33f168[_0x228f6d(0x105)](_0x4600da);})[_0x3b8b91(0xe8)](function(_0x42be9b){const _0x22c1d6=_0x3b8b91;if(_0x42be9b)return _0x44c337=_0x42be9b['length'],typeof _0x1e0651[_0x22c1d6(0xd2)][_0x22c1d6(0xd1)]==='undefined'&&(_0x4600da[_0x22c1d6(0x109)]=qs[_0x22c1d6(0x109)](_0x1e0651[_0x22c1d6(0xd2)][_0x22c1d6(0x109)]),_0x4600da[_0x22c1d6(0xd8)]=qs['offset'](_0x1e0651[_0x22c1d6(0xd2)][_0x22c1d6(0xd8)])),_0x33f168['getConfigurations'](_0x4600da);})[_0x3b8b91(0xe8)](function(_0x3925fe){if(_0x3925fe)return _0x3925fe?{'count':_0x44c337,'rows':_0x3925fe}:null;})[_0x3b8b91(0xe8)](respondWithResult(_0x1c9133,null))[_0x3b8b91(0x107)](handleError(_0x1c9133,null));},exports[a368_0x381745(0x11f)]=function(_0x13c30f,_0x3afea3){const _0x5dd5cd=a368_0x381745;return _0x13c30f[_0x5dd5cd(0xf4)]['id']&&delete _0x13c30f[_0x5dd5cd(0xf4)]['id'],db[_0x5dd5cd(0x100)][_0x5dd5cd(0xe9)]({'where':{'id':_0x13c30f[_0x5dd5cd(0xe2)]['id']}})[_0x5dd5cd(0xe8)](handleEntityNotFound(_0x3afea3,null))[_0x5dd5cd(0xe8)](function(_0x17f0e5){const _0x2217b2=_0x5dd5cd;if(_0x17f0e5)return _0x13c30f[_0x2217b2(0xf4)]['AccountId']=_0x17f0e5['id'],_0x13c30f[_0x2217b2(0xf4)][_0x2217b2(0xc6)]=integrations[_0x2217b2(0x103)](_0x13c30f[_0x2217b2(0xf4)]['channel'],_0x13c30f[_0x2217b2(0xf4)][_0x2217b2(0xe7)]),_0x13c30f[_0x2217b2(0xf4)][_0x2217b2(0xfa)]=integrations[_0x2217b2(0x126)](_0x13c30f[_0x2217b2(0xf4)][_0x2217b2(0xd9)],_0x13c30f[_0x2217b2(0xf4)]['type']),db[_0x2217b2(0x124)]['create'](_0x13c30f[_0x2217b2(0xf4)],{'include':[{'model':db[_0x2217b2(0xe1)],'as':_0x2217b2(0xc6)},{'model':db[_0x2217b2(0xe1)],'as':'Descriptions'}]});return null;})[_0x5dd5cd(0xe8)](respondWithResult(_0x3afea3,null))['catch'](handleError(_0x3afea3,null));},exports[a368_0x381745(0xec)]=function(_0x1a9582,_0x58ee3b){const _0x28a791=a368_0x381745;let _0x57acc3='';const _0x4ee8e4=['id',_0x28a791(0x114),_0x28a791(0x104),_0x28a791(0xd7),_0x28a791(0x10d),_0x28a791(0xc5),'duration_hours',_0x28a791(0xfe),_0x28a791(0x119),_0x28a791(0x11d),'parent_name',_0x28a791(0x108)];return db[_0x28a791(0x100)][_0x28a791(0xe9)]({'where':{'id':_0x1a9582[_0x28a791(0xe2)]['id']},'attributes':['id',_0x28a791(0xf2),'password',_0x28a791(0xdd)]})['then'](handleEntityNotFound(_0x58ee3b,null))[_0x28a791(0xe8)](function(_0xf686eb){const _0x4f5b9c=_0x28a791;if(_0xf686eb){_0x57acc3=_0xf686eb['remoteUri'];const _0x423500=_0x57acc3[_0x4f5b9c(0x10b)](-0x1);return _0x423500==='/'&&(_0x57acc3=_0x57acc3[_0x4f5b9c(0x11a)](0x0,_0x57acc3['lastIndexOf'](_0x423500))),rp({'method':_0x4f5b9c(0xf9),'uri':util[_0x4f5b9c(0xe5)]('%s%s',_0x57acc3,_0x4f5b9c(0xce)),'json':!![],'form':{'method':_0x4f5b9c(0xd6),'input_type':'JSON','response_type':'JSON','rest_data':JSON[_0x4f5b9c(0x10f)]({'user_auth':{'user_name':_0xf686eb['username'],'password':_0xf686eb[_0x4f5b9c(0x106)],'encryption':_0x4f5b9c(0x122)},'application':_0x4f5b9c(0xea)})}});}})[_0x28a791(0xe8)](function(_0x10756e){const _0x538aba=_0x28a791;if(_0x10756e&&_0x10756e[_0x538aba(0x114)]!==_0x538aba(0xeb)&&_0x10756e['name']!=='Password\x20Expired')return rp({'method':_0x538aba(0xf9),'uri':util[_0x538aba(0xe5)](_0x538aba(0xfb),_0x57acc3,'/service/v4_1/rest.php'),'json':!![],'form':{'method':'get_module_fields','input_type':_0x538aba(0xf5),'response_type':_0x538aba(0xf5),'rest_data':JSON[_0x538aba(0x10f)]({'session':_0x10756e['id'],'module_name':_0x538aba(0xf7)})}})[_0x538aba(0xe8)](function(_0x19331e){const _0x3f374f=_0x538aba;if(_0x19331e){const _0x592892=_['values'](_0x19331e[_0x3f374f(0xd0)]);return _[_0x3f374f(0xcc)](_0x592892,function(_0x43950e){const _0x30048d=_0x3f374f;return _0x4ee8e4[_0x30048d(0xf0)](_0x43950e[_0x30048d(0x114)]);}),{'count':_0x592892[_0x3f374f(0xc9)],'rows':_[_0x3f374f(0xc7)](_0x592892,function(_0x1ef7eb){const _0x228aa6=_0x3f374f;return{'id':_0x1ef7eb['name'],'name':_0x1ef7eb[_0x228aa6(0xfc)],'custom':_[_0x228aa6(0xcb)](_0x1ef7eb[_0x228aa6(0x114)],'_c')?!![]:![],'options':_0x1ef7eb[_0x228aa6(0xf6)]?_[_0x228aa6(0xc7)](_[_0x228aa6(0xde)](_0x1ef7eb['options']),function(_0x1a3450){const _0x566ced=_0x228aa6;return{'name':_0x1a3450[_0x566ced(0x128)],'value':_0x1a3450['name']};}):[]};})};}})[_0x538aba(0xe8)](respondWithResult(_0x58ee3b,null))['catch'](function(_0x3099d7){const _0x37c0c6=_0x538aba;let _0x193ed3=_0x1a9582[_0x37c0c6(0xd2)][_0x37c0c6(0x102)]?0x1f4:_0x3099d7[_0x37c0c6(0x101)]||0x1f4;logger['error']('getFields,\x20%s,\x20%s,\x20%s',_0x37c0c6(0xec),_0x193ed3,JSON[_0x37c0c6(0x10f)](_0x3099d7)),delete _0x3099d7[_0x37c0c6(0x114)],_0x193ed3===0x191&&(_0x193ed3=0x190),_0x58ee3b[_0x37c0c6(0xda)](_0x193ed3)[_0x37c0c6(0xf8)](_0x1a9582['query'][_0x37c0c6(0x102)]?{'message':'Wrong\x20credentials','statusCode':_0x3099d7[_0x37c0c6(0x101)]}:_0x3099d7);});else{const _0x139655=0x1f4;_0x58ee3b[_0x538aba(0xda)](_0x139655)[_0x538aba(0xf8)]({'message':_0x538aba(0x125),'statusCode':0x190});}});}; \ No newline at end of file +const a368_0x29e0=['label','rows','nolimit','getSubjects','intersection','getDescriptions','destroy','POST','findAll','parent_name','findOne','value','channel','remove','SugarcrmField','count','model','then','Password\x20Expired','error','parent_id','parent_type','slice','fields','sort','params','Descriptions','description','endsWith','values','lodash','username','keys','JSON','attributes','Wrong\x20credentials','send','format','type','like','created_by','/service/v4_1/rest.php','body','options','includeAll','sequelize','PLAIN','get_module_fields','where','getFields','rawAttributes','Subjects','SugarcrmAccount','set','name','../../components/parsers/qs','getConfigurations','key','map','remoteUri','test','length','status','SugarcrmConfiguration','json','query','end','offset','sendStatus','undefined','filter','index','stack','lastIndexOf','../../config/logger','show','order','addConfiguration','statusCode','merge','pick','util','stringify','includes','xCALLY\x20Motion\x20Integration','limit','create','assigned_user_id','catch','api','update','filters','fieldName'];(function(_0x2a5b6c,_0x1ff1bf){const _0x29e0c7=function(_0x49913e){while(--_0x49913e){_0x2a5b6c['push'](_0x2a5b6c['shift']());}};_0x29e0c7(++_0x1ff1bf);}(a368_0x29e0,0x9f));const a368_0x4991=function(_0x2a5b6c,_0x1ff1bf){_0x2a5b6c=_0x2a5b6c-0xda;let _0x29e0c7=a368_0x29e0[_0x2a5b6c];return _0x29e0c7;};const a368_0x5825dd=a368_0x4991;'use strict';const rp=require('request-promise-native'),util=require(a368_0x5825dd(0xe9)),_=require(a368_0x5825dd(0x113)),qs=require(a368_0x5825dd(0x12c)),logger=require(a368_0x5825dd(0xe2))(a368_0x5825dd(0xf1)),{db}=require('../../mysqldb'),{Op}=require(a368_0x5825dd(0x122)),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x46d505,_0x5289b7){return _0x5289b7=_0x5289b7||0xc8,function(_0x1e8824){const _0x5711b9=a368_0x4991;if(_0x1e8824)return _0x46d505[_0x5711b9(0x133)](_0x5289b7)[_0x5711b9(0x135)](_0x1e8824);};}function respondWithFilteredResult(_0x2b3758,_0x24109b){return function(_0x4c388d){const _0x30af01=a368_0x4991;if(_0x4c388d){const _0x102f17=_0x4c388d[_0x30af01(0x104)],_0x376414=_0x24109b[_0x30af01(0xdb)];let _0x132709=_0x24109b[_0x30af01(0xdb)]+_0x24109b['limit'],_0x4ad187;return _0x132709>=_0x102f17?(_0x132709=_0x102f17,_0x4ad187=0xc8):_0x4ad187=0xce,_0x2b3758[_0x30af01(0x133)](_0x4ad187),_0x2b3758[_0x30af01(0x12a)]('Content-Range',_0x376414+'-'+_0x132709+'/'+_0x102f17)[_0x30af01(0x135)](_0x4c388d);}return null;};}function saveUpdates(_0x210365){return function(_0x55153b){const _0x470ad7=a368_0x4991;if(_0x55153b)return _0x55153b['update'](_0x210365)[_0x470ad7(0x106)](function(_0x37ae15){return _0x37ae15;});return null;};}function removeEntity(_0x3bef3f){return function(_0x681fc3){const _0x3dbd66=a368_0x4991;if(_0x681fc3)return _0x681fc3[_0x3dbd66(0xfb)]()['then'](function(){const _0x40313e=_0x3dbd66;_0x3bef3f[_0x40313e(0x133)](0xcc)[_0x40313e(0xda)]();});};}function handleEntityNotFound(_0x3dc0fd){return function(_0x5a1366){const _0x7c89bd=a368_0x4991;return!_0x5a1366&&_0x3dc0fd[_0x7c89bd(0xdc)](0x194),_0x5a1366;};}function handleError(_0x433954,_0x356d7d){return _0x356d7d=_0x356d7d||0x1f4,function(_0x8e4572){const _0x519560=a368_0x4991;logger['error'](_0x8e4572[_0x519560(0xe0)]),_0x8e4572[_0x519560(0x12b)]&&delete _0x8e4572[_0x519560(0x12b)],_0x433954[_0x519560(0x133)](_0x356d7d)[_0x519560(0x119)](_0x8e4572);};}exports[a368_0x5825dd(0xdf)]=function(_0x458c43,_0x316137){const _0x46b441=a368_0x5825dd;let _0x1f05c1={};const _0x5272c8={},_0x5940be={'count':0x0,'rows':[]},_0x3148c=_[_0x46b441(0x12f)](db[_0x46b441(0x129)][_0x46b441(0x127)],function(_0x208128){const _0x1fa781=_0x46b441;return{'name':_0x208128[_0x1fa781(0xf4)],'type':_0x208128[_0x1fa781(0x11b)][_0x1fa781(0x12e)]};});_0x5272c8[_0x46b441(0x105)]=_[_0x46b441(0x12f)](_0x3148c,_0x46b441(0x12b)),_0x5272c8[_0x46b441(0x136)]=_['keys'](_0x458c43[_0x46b441(0x136)]),_0x5272c8[_0x46b441(0xf3)]=_[_0x46b441(0xf9)](_0x5272c8['model'],_0x5272c8['query']),_0x1f05c1[_0x46b441(0x117)]=_['intersection'](_0x5272c8['model'],qs[_0x46b441(0x10c)](_0x458c43[_0x46b441(0x136)][_0x46b441(0x10c)])),_0x1f05c1[_0x46b441(0x117)]=_0x1f05c1[_0x46b441(0x117)][_0x46b441(0x132)]?_0x1f05c1[_0x46b441(0x117)]:_0x5272c8[_0x46b441(0x105)];typeof _0x458c43[_0x46b441(0x136)][_0x46b441(0xf7)]===_0x46b441(0xdd)&&(_0x1f05c1[_0x46b441(0xed)]=qs[_0x46b441(0xed)](_0x458c43[_0x46b441(0x136)][_0x46b441(0xed)]),_0x1f05c1['offset']=qs[_0x46b441(0xdb)](_0x458c43[_0x46b441(0x136)][_0x46b441(0xdb)]));_0x1f05c1[_0x46b441(0xe4)]=qs[_0x46b441(0x10d)](_0x458c43[_0x46b441(0x136)][_0x46b441(0x10d)]),_0x1f05c1[_0x46b441(0x125)]=qs['filters'](_['pick'](_0x458c43[_0x46b441(0x136)],_0x5272c8[_0x46b441(0xf3)]),_0x3148c);_0x458c43[_0x46b441(0x136)][_0x46b441(0xde)]&&(_0x1f05c1[_0x46b441(0x125)]=_[_0x46b441(0xe7)](_0x1f05c1[_0x46b441(0x125)],{[Op['or']]:_[_0x46b441(0x12f)](_0x3148c,function(_0x3ee20f){const _0x372ed4=_0x46b441;if(_0x3ee20f[_0x372ed4(0x11b)]!=='VIRTUAL'){const _0x222f99={};return _0x222f99[_0x3ee20f['name']]={[Op[_0x372ed4(0x11c)]]:'%'+_0x458c43[_0x372ed4(0x136)]['filter']+'%'},_0x222f99;}})}));_0x1f05c1=_['merge']({},_0x1f05c1,_0x458c43[_0x46b441(0x120)]);const _0x166e0e={'where':_0x1f05c1[_0x46b441(0x125)]};return db[_0x46b441(0x129)][_0x46b441(0x104)](_0x166e0e)[_0x46b441(0x106)](function(_0xbe81f5){const _0xb807a7=_0x46b441;return _0x5940be[_0xb807a7(0x104)]=_0xbe81f5,_0x458c43[_0xb807a7(0x136)][_0xb807a7(0x121)]&&(_0x1f05c1['include']=[{'all':!![]}]),db[_0xb807a7(0x129)][_0xb807a7(0xfd)](_0x1f05c1);})[_0x46b441(0x106)](function(_0x2f886b){const _0x41a5c2=_0x46b441;return _0x5940be[_0x41a5c2(0xf6)]=_0x2f886b,_0x5940be;})['then'](respondWithFilteredResult(_0x316137,_0x1f05c1))[_0x46b441(0xf0)](handleError(_0x316137,null));},exports[a368_0x5825dd(0xe3)]=function(_0x45711,_0x5be58a){const _0x3967b0=a368_0x5825dd;let _0x1d0e7d={'raw':![],'where':{'id':_0x45711[_0x3967b0(0x10e)]['id']}};const _0x3df7f1={};return _0x3df7f1[_0x3967b0(0x105)]=_[_0x3967b0(0x115)](db[_0x3967b0(0x129)][_0x3967b0(0x127)]),_0x3df7f1[_0x3967b0(0x136)]=_['keys'](_0x45711[_0x3967b0(0x136)]),_0x3df7f1[_0x3967b0(0xf3)]=_[_0x3967b0(0xf9)](_0x3df7f1[_0x3967b0(0x105)],_0x3df7f1['query']),_0x1d0e7d[_0x3967b0(0x117)]=_['intersection'](_0x3df7f1[_0x3967b0(0x105)],qs[_0x3967b0(0x10c)](_0x45711[_0x3967b0(0x136)][_0x3967b0(0x10c)])),_0x1d0e7d[_0x3967b0(0x117)]=_0x1d0e7d[_0x3967b0(0x117)][_0x3967b0(0x132)]?_0x1d0e7d['attributes']:_0x3df7f1[_0x3967b0(0x105)],_0x45711[_0x3967b0(0x136)]['includeAll']&&(_0x1d0e7d['include']=[{'all':!![]}]),_0x1d0e7d=_[_0x3967b0(0xe7)]({},_0x1d0e7d,_0x45711[_0x3967b0(0x120)]),db[_0x3967b0(0x129)][_0x3967b0(0xff)](_0x1d0e7d)[_0x3967b0(0x106)](handleEntityNotFound(_0x5be58a,null))[_0x3967b0(0x106)](respondWithResult(_0x5be58a,null))[_0x3967b0(0xf0)](handleError(_0x5be58a,null));},exports[a368_0x5825dd(0xee)]=function(_0x128765,_0x5eddbe){const _0x4ecdab=a368_0x5825dd;return db[_0x4ecdab(0x129)][_0x4ecdab(0xee)](_0x128765[_0x4ecdab(0x11f)],{})[_0x4ecdab(0x106)](respondWithResult(_0x5eddbe,0xc9))[_0x4ecdab(0xf0)](handleError(_0x5eddbe,null));},exports[a368_0x5825dd(0xf2)]=function(_0x261115,_0x400d88){const _0xfac8c8=a368_0x5825dd;return _0x261115[_0xfac8c8(0x11f)]['id']&&delete _0x261115['body']['id'],db[_0xfac8c8(0x129)][_0xfac8c8(0xff)]({'where':{'id':_0x261115[_0xfac8c8(0x10e)]['id']}})['then'](handleEntityNotFound(_0x400d88,null))[_0xfac8c8(0x106)](saveUpdates(_0x261115['body'],null))[_0xfac8c8(0x106)](respondWithResult(_0x400d88,null))[_0xfac8c8(0xf0)](handleError(_0x400d88,null));},exports[a368_0x5825dd(0xfb)]=function(_0x1b1c69,_0x2850bd){const _0x15f849=a368_0x5825dd;return db[_0x15f849(0x129)][_0x15f849(0xff)]({'where':{'id':_0x1b1c69[_0x15f849(0x10e)]['id']}})[_0x15f849(0x106)](handleEntityNotFound(_0x2850bd,null))[_0x15f849(0x106)](removeEntity(_0x2850bd,null))[_0x15f849(0xf0)](handleError(_0x2850bd,null));},exports[a368_0x5825dd(0x12d)]=function(_0x2d8b8f,_0x2edd33){const _0x7e365a=a368_0x5825dd;let _0x458c9a={};const _0x515231={};let _0x411118,_0x2cf62f;return db[_0x7e365a(0x129)]['findOne']({'where':{'id':_0x2d8b8f['params']['id']}})[_0x7e365a(0x106)](handleEntityNotFound(_0x2edd33,null))['then'](function(_0x2baf66){const _0xbd4a2d=_0x7e365a;if(_0x2baf66)return _0x411118=_0x2baf66,_0x515231['model']=_['keys'](db[_0xbd4a2d(0x134)][_0xbd4a2d(0x127)]),_0x515231[_0xbd4a2d(0x136)]=_[_0xbd4a2d(0x115)](_0x2d8b8f[_0xbd4a2d(0x136)]),_0x515231['filters']=_[_0xbd4a2d(0xf9)](_0x515231[_0xbd4a2d(0x105)],_0x515231[_0xbd4a2d(0x136)]),_0x458c9a[_0xbd4a2d(0x117)]=_['intersection'](_0x515231[_0xbd4a2d(0x105)],qs['fields'](_0x2d8b8f[_0xbd4a2d(0x136)][_0xbd4a2d(0x10c)])),_0x458c9a['attributes']=_0x458c9a[_0xbd4a2d(0x117)][_0xbd4a2d(0x132)]?_0x458c9a[_0xbd4a2d(0x117)]:_0x515231['model'],_0x458c9a[_0xbd4a2d(0xe4)]=qs[_0xbd4a2d(0x10d)](_0x2d8b8f[_0xbd4a2d(0x136)][_0xbd4a2d(0x10d)]),_0x458c9a[_0xbd4a2d(0x125)]=qs[_0xbd4a2d(0xf3)](_[_0xbd4a2d(0xe8)](_0x2d8b8f[_0xbd4a2d(0x136)],_0x515231[_0xbd4a2d(0xf3)])),_0x2d8b8f['query']['filter']&&(_0x458c9a[_0xbd4a2d(0x125)]=_[_0xbd4a2d(0xe7)](_0x458c9a['where'],{[Op['or']]:_[_0xbd4a2d(0x12f)](_0x458c9a[_0xbd4a2d(0x117)],function(_0x2f6547){const _0x1a5e94=_0xbd4a2d,_0x3acd15={};return _0x3acd15[_0x2f6547]={[Op[_0x1a5e94(0x11c)]]:'%'+_0x2d8b8f['query'][_0x1a5e94(0xde)]+'%'},_0x3acd15;})})),_0x458c9a=_['merge']({},_0x458c9a,_0x2d8b8f[_0xbd4a2d(0x120)]),_0x411118['getConfigurations'](_0x458c9a);})[_0x7e365a(0x106)](function(_0x2983ca){const _0x528878=_0x7e365a;if(_0x2983ca)return _0x2cf62f=_0x2983ca[_0x528878(0x132)],typeof _0x2d8b8f[_0x528878(0x136)][_0x528878(0xf7)]==='undefined'&&(_0x458c9a['limit']=qs[_0x528878(0xed)](_0x2d8b8f[_0x528878(0x136)][_0x528878(0xed)]),_0x458c9a[_0x528878(0xdb)]=qs[_0x528878(0xdb)](_0x2d8b8f[_0x528878(0x136)][_0x528878(0xdb)])),_0x411118['getConfigurations'](_0x458c9a);})[_0x7e365a(0x106)](function(_0x5f2440){if(_0x5f2440)return _0x5f2440?{'count':_0x2cf62f,'rows':_0x5f2440}:null;})[_0x7e365a(0x106)](respondWithResult(_0x2edd33,null))[_0x7e365a(0xf0)](handleError(_0x2edd33,null));},exports[a368_0x5825dd(0xe5)]=function(_0x575446,_0x1aa5d3){const _0x16aee1=a368_0x5825dd;return _0x575446[_0x16aee1(0x11f)]['id']&&delete _0x575446[_0x16aee1(0x11f)]['id'],db[_0x16aee1(0x129)][_0x16aee1(0xff)]({'where':{'id':_0x575446[_0x16aee1(0x10e)]['id']}})[_0x16aee1(0x106)](handleEntityNotFound(_0x1aa5d3,null))[_0x16aee1(0x106)](function(_0x48072b){const _0x54aaa8=_0x16aee1;if(_0x48072b)return _0x575446[_0x54aaa8(0x11f)]['AccountId']=_0x48072b['id'],_0x575446['body'][_0x54aaa8(0x128)]=integrations[_0x54aaa8(0xf8)](_0x575446[_0x54aaa8(0x11f)][_0x54aaa8(0x101)],_0x575446[_0x54aaa8(0x11f)]['type']),_0x575446['body'][_0x54aaa8(0x10f)]=integrations[_0x54aaa8(0xfa)](_0x575446[_0x54aaa8(0x11f)][_0x54aaa8(0x101)],_0x575446[_0x54aaa8(0x11f)][_0x54aaa8(0x11b)]),db[_0x54aaa8(0x134)][_0x54aaa8(0xee)](_0x575446[_0x54aaa8(0x11f)],{'include':[{'model':db['SugarcrmField'],'as':_0x54aaa8(0x128)},{'model':db[_0x54aaa8(0x103)],'as':'Descriptions'}]});return null;})[_0x16aee1(0x106)](respondWithResult(_0x1aa5d3,null))[_0x16aee1(0xf0)](handleError(_0x1aa5d3,null));},exports[a368_0x5825dd(0x126)]=function(_0x24540a,_0x4a31bd){const _0x288ebf=a368_0x5825dd;let _0x583b64='';const _0x47cc80=['id',_0x288ebf(0x12b),_0x288ebf(0xef),_0x288ebf(0x11d),_0x288ebf(0x110),'date_start','duration_hours','duration_minutes',_0x288ebf(0x109),_0x288ebf(0x10a),_0x288ebf(0xfe),'direction'];return db[_0x288ebf(0x129)][_0x288ebf(0xff)]({'where':{'id':_0x24540a[_0x288ebf(0x10e)]['id']},'attributes':['id',_0x288ebf(0x114),'password',_0x288ebf(0x130)]})['then'](handleEntityNotFound(_0x4a31bd,null))['then'](function(_0x2b2f78){const _0x25939a=_0x288ebf;if(_0x2b2f78){_0x583b64=_0x2b2f78[_0x25939a(0x130)];const _0x4f1dc1=_0x583b64[_0x25939a(0x10b)](-0x1);return _0x4f1dc1==='/'&&(_0x583b64=_0x583b64['substring'](0x0,_0x583b64[_0x25939a(0xe1)](_0x4f1dc1))),rp({'method':'POST','uri':util[_0x25939a(0x11a)]('%s%s',_0x583b64,_0x25939a(0x11e)),'json':!![],'form':{'method':'login','input_type':_0x25939a(0x116),'response_type':_0x25939a(0x116),'rest_data':JSON[_0x25939a(0xea)]({'user_auth':{'user_name':_0x2b2f78[_0x25939a(0x114)],'password':_0x2b2f78['password'],'encryption':_0x25939a(0x123)},'application':_0x25939a(0xec)})}});}})['then'](function(_0x1ab946){const _0x2e5928=_0x288ebf;if(_0x1ab946&&_0x1ab946['name']!=='Invalid\x20Login'&&_0x1ab946['name']!==_0x2e5928(0x107))return rp({'method':_0x2e5928(0xfc),'uri':util['format']('%s%s',_0x583b64,_0x2e5928(0x11e)),'json':!![],'form':{'method':_0x2e5928(0x124),'input_type':_0x2e5928(0x116),'response_type':_0x2e5928(0x116),'rest_data':JSON[_0x2e5928(0xea)]({'session':_0x1ab946['id'],'module_name':'Calls'})}})[_0x2e5928(0x106)](function(_0xef02bd){const _0x1c0934=_0x2e5928;if(_0xef02bd){const _0x4a13f2=_[_0x1c0934(0x112)](_0xef02bd['module_fields']);return _[_0x1c0934(0x102)](_0x4a13f2,function(_0x5e6984){const _0xfeed1b=_0x1c0934;return _0x47cc80[_0xfeed1b(0xeb)](_0x5e6984[_0xfeed1b(0x12b)]);}),{'count':_0x4a13f2[_0x1c0934(0x132)],'rows':_[_0x1c0934(0x12f)](_0x4a13f2,function(_0x1caf06){const _0x1a27aa=_0x1c0934;return{'id':_0x1caf06[_0x1a27aa(0x12b)],'name':_0x1caf06[_0x1a27aa(0xf5)],'custom':_[_0x1a27aa(0x111)](_0x1caf06[_0x1a27aa(0x12b)],'_c')?!![]:![],'options':_0x1caf06[_0x1a27aa(0x120)]?_[_0x1a27aa(0x12f)](_[_0x1a27aa(0x112)](_0x1caf06[_0x1a27aa(0x120)]),function(_0x552066){const _0x114ef6=_0x1a27aa;return{'name':_0x552066[_0x114ef6(0x100)],'value':_0x552066[_0x114ef6(0x12b)]};}):[]};})};}})[_0x2e5928(0x106)](respondWithResult(_0x4a31bd,null))['catch'](function(_0x327345){const _0x22d537=_0x2e5928;let _0x326dc5=_0x24540a[_0x22d537(0x136)][_0x22d537(0x131)]?0x1f4:_0x327345[_0x22d537(0xe6)]||0x1f4;logger[_0x22d537(0x108)]('getFields,\x20%s,\x20%s,\x20%s',_0x22d537(0x126),_0x326dc5,JSON[_0x22d537(0xea)](_0x327345)),delete _0x327345[_0x22d537(0x12b)],_0x326dc5===0x191&&(_0x326dc5=0x190),_0x4a31bd[_0x22d537(0x133)](_0x326dc5)[_0x22d537(0x119)](_0x24540a['query'][_0x22d537(0x131)]?{'message':'Wrong\x20credentials','statusCode':_0x327345[_0x22d537(0xe6)]}:_0x327345);});else{const _0x7d6495=0x1f4;_0x4a31bd['status'](_0x7d6495)['send']({'message':_0x2e5928(0x118),'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 b72dd91..d3cc502 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js @@ -1 +1 @@ -const a369_0x5ee5=['SugarcrmAccount','function','./intSugarcrmAccount.options','init','exports'];(function(_0x381cb4,_0x3e7a7a){const _0x5ee593=function(_0xe77c52){while(--_0xe77c52){_0x381cb4['push'](_0x381cb4['shift']());}};_0x5ee593(++_0x3e7a7a);}(a369_0x5ee5,0x1d5));const a369_0xe77c=function(_0x381cb4,_0x3e7a7a){_0x381cb4=_0x381cb4-0x196;let _0x5ee593=a369_0x5ee5[_0x381cb4];return _0x5ee593;};const a369_0xc438bc=a369_0xe77c;'use strict';const {Model}=require('sequelize'),{attributes}=require('./intSugarcrmAccount.attributes'),{options}=require(a369_0xc438bc(0x199));class SugarcrmAccount extends Model{}function init(_0x11c07d,_0x3331ec){const _0x2d4cbf=a369_0xc438bc,_0xdad0=options(_0x11c07d),_0x29bdd9=typeof _0x3331ec===_0x2d4cbf(0x198)?_0x3331ec(_0xdad0):_0xdad0;return SugarcrmAccount[_0x2d4cbf(0x19a)](attributes,_0x29bdd9),SugarcrmAccount;}module[a369_0xc438bc(0x196)][a369_0xc438bc(0x197)]=SugarcrmAccount,module[a369_0xc438bc(0x196)][a369_0xc438bc(0x19a)]=init; \ No newline at end of file +const a369_0x378a=['exports','./intSugarcrmAccount.attributes','init','sequelize','SugarcrmAccount','function'];(function(_0x210a96,_0xd3fc9b){const _0x378ac7=function(_0x4f6e3d){while(--_0x4f6e3d){_0x210a96['push'](_0x210a96['shift']());}};_0x378ac7(++_0xd3fc9b);}(a369_0x378a,0x189));const a369_0x4f6e=function(_0x210a96,_0xd3fc9b){_0x210a96=_0x210a96-0x1cc;let _0x378ac7=a369_0x378a[_0x210a96];return _0x378ac7;};const a369_0x1ebde5=a369_0x4f6e;'use strict';const {Model}=require(a369_0x1ebde5(0x1cc)),{attributes}=require(a369_0x1ebde5(0x1d0)),{options}=require('./intSugarcrmAccount.options');class SugarcrmAccount extends Model{}function init(_0x7c643a,_0x66873b){const _0x47dc98=a369_0x1ebde5,_0x57d373=options(_0x7c643a),_0x5b2140=typeof _0x66873b===_0x47dc98(0x1ce)?_0x66873b(_0x57d373):_0x57d373;return SugarcrmAccount['init'](attributes,_0x5b2140),SugarcrmAccount;}module['exports'][a369_0x1ebde5(0x1cd)]=SugarcrmAccount,module[a369_0x1ebde5(0x1cf)][a369_0x1ebde5(0x1d1)]=init; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.options.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.options.js index 0a73dee..77078bd 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.options.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.options.js @@ -1 +1 @@ -var a370_0x4f5f=['exports','options'];(function(_0x2c9996,_0xc5f19c){var _0x4f5fbf=function(_0x2a122f){while(--_0x2a122f){_0x2c9996['push'](_0x2c9996['shift']());}};_0x4f5fbf(++_0xc5f19c);}(a370_0x4f5f,0x138));var a370_0x2a12=function(_0x2c9996,_0xc5f19c){_0x2c9996=_0x2c9996-0x9a;var _0x4f5fbf=a370_0x4f5f[_0x2c9996];return _0x4f5fbf;};var a370_0x2c1d8d=a370_0x2a12;function options(_0x5d4bac){return{'sequelize':_0x5d4bac,'tableName':'int_sugarcrm_accounts','paranoid':![],'indexes':[],'timestamps':!![]};}module[a370_0x2c1d8d(0x9a)][a370_0x2c1d8d(0x9b)]=options; \ No newline at end of file +var a370_0x1edb=['int_sugarcrm_accounts','exports'];(function(_0x31408d,_0x26fe36){var _0x1edb11=function(_0x562465){while(--_0x562465){_0x31408d['push'](_0x31408d['shift']());}};_0x1edb11(++_0x26fe36);}(a370_0x1edb,0x1ad));var a370_0x5624=function(_0x31408d,_0x26fe36){_0x31408d=_0x31408d-0x9e;var _0x1edb11=a370_0x1edb[_0x31408d];return _0x1edb11;};var a370_0x401788=a370_0x5624;function options(_0x14ea74){var _0x535279=a370_0x5624;return{'sequelize':_0x14ea74,'tableName':_0x535279(0x9f),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a370_0x401788(0x9e)]['options']=options; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js index 542eb79..369bdc2 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js @@ -1 +1 @@ -const a371_0x3420=['map','catch','error','message','lodash','debug','then','findOne','where','include','GetSugarcrmAccount','raw','ShowSugarcrmAccount','info','SugarcrmAccount','../../config/logger','options','../../mysqldb','limit','model','attributes'];(function(_0x5aa980,_0xd6f81){const _0x3420d9=function(_0x5b09d4){while(--_0x5b09d4){_0x5aa980['push'](_0x5aa980['shift']());}};_0x3420d9(++_0xd6f81);}(a371_0x3420,0x18f));const a371_0x5b09=function(_0x5aa980,_0xd6f81){_0x5aa980=_0x5aa980-0x17d;let _0x3420d9=a371_0x3420[_0x5aa980];return _0x3420d9;};const a371_0x475326=a371_0x5b09;'use strict';const _=require(a371_0x475326(0x181)),db=require(a371_0x475326(0x18e))['db'],logger=require(a371_0x475326(0x18c))('rpc');exports[a371_0x475326(0x187)]=function(_0x45cd32){const _0x37d276=this;return new Promise(function(_0x87f5c0,_0x334bef){const _0x68c8e7=a371_0x5b09;return db[_0x68c8e7(0x18b)]['findAll']({'raw':_0x45cd32['options']?_0x45cd32[_0x68c8e7(0x18d)][_0x68c8e7(0x188)]===undefined?!![]:![]:!![],'where':_0x45cd32[_0x68c8e7(0x18d)]?_0x45cd32[_0x68c8e7(0x18d)][_0x68c8e7(0x185)]||null:null,'attributes':_0x45cd32['options']?_0x45cd32['options']['attributes']||null:null,'limit':_0x45cd32[_0x68c8e7(0x18d)]?_0x45cd32[_0x68c8e7(0x18d)][_0x68c8e7(0x18f)]||null:null,'include':_0x45cd32[_0x68c8e7(0x18d)]?_0x45cd32[_0x68c8e7(0x18d)]['include']?_[_0x68c8e7(0x17d)](_0x45cd32[_0x68c8e7(0x18d)][_0x68c8e7(0x186)],function(_0x583b3d){const _0x1195aa=_0x68c8e7;return{'model':db[_0x583b3d[_0x1195aa(0x190)]],'as':_0x583b3d['as'],'attributes':_0x583b3d[_0x1195aa(0x191)],'include':_0x583b3d['include']?_[_0x1195aa(0x17d)](_0x583b3d['include'],function(_0x187258){const _0x3a5ace=_0x1195aa;return{'model':db[_0x187258['model']],'as':_0x187258['as'],'attributes':_0x187258[_0x3a5ace(0x191)],'include':_0x187258['include']?_[_0x3a5ace(0x17d)](_0x187258[_0x3a5ace(0x186)],function(_0x281ec2){const _0x501841=_0x3a5ace;return{'model':db[_0x281ec2[_0x501841(0x190)]],'as':_0x281ec2['as'],'attributes':_0x281ec2[_0x501841(0x191)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x38eb8f){const _0x47e338=_0x68c8e7;logger[_0x47e338(0x18a)]('GetSugarcrmAccount',_0x45cd32),logger[_0x47e338(0x182)](_0x47e338(0x187),_0x45cd32,JSON['stringify'](_0x38eb8f)),_0x87f5c0(_0x38eb8f);})[_0x68c8e7(0x17e)](function(_0x21aa02){const _0x552c92=_0x68c8e7;logger[_0x552c92(0x17f)](_0x552c92(0x187),_0x21aa02[_0x552c92(0x180)],_0x45cd32),_0x334bef(_0x37d276['error'](0x1f4,_0x21aa02[_0x552c92(0x180)]));});});},exports[a371_0x475326(0x189)]=function(_0x4ff810){const _0x49a803=this;return new Promise(function(_0x39133a,_0x2baea5){const _0x3a27fe=a371_0x5b09;return db[_0x3a27fe(0x18b)][_0x3a27fe(0x184)]({'raw':_0x4ff810[_0x3a27fe(0x18d)]?_0x4ff810[_0x3a27fe(0x18d)][_0x3a27fe(0x188)]===undefined?!![]:![]:!![],'where':_0x4ff810[_0x3a27fe(0x18d)]?_0x4ff810['options'][_0x3a27fe(0x185)]||null:null,'attributes':_0x4ff810[_0x3a27fe(0x18d)]?_0x4ff810[_0x3a27fe(0x18d)][_0x3a27fe(0x191)]||null:null,'include':_0x4ff810[_0x3a27fe(0x18d)]?_0x4ff810[_0x3a27fe(0x18d)]['include']?_[_0x3a27fe(0x17d)](_0x4ff810[_0x3a27fe(0x18d)][_0x3a27fe(0x186)],function(_0x434ada){const _0x111f33=_0x3a27fe;return{'model':db[_0x434ada[_0x111f33(0x190)]],'as':_0x434ada['as'],'attributes':_0x434ada[_0x111f33(0x191)],'include':_0x434ada[_0x111f33(0x186)]?_[_0x111f33(0x17d)](_0x434ada['include'],function(_0x4b2733){const _0x1cac39=_0x111f33;return{'model':db[_0x4b2733['model']],'as':_0x4b2733['as'],'attributes':_0x4b2733['attributes'],'include':_0x4b2733[_0x1cac39(0x186)]?_[_0x1cac39(0x17d)](_0x4b2733[_0x1cac39(0x186)],function(_0x45aa8e){const _0x46264c=_0x1cac39;return{'model':db[_0x45aa8e['model']],'as':_0x45aa8e['as'],'attributes':_0x45aa8e[_0x46264c(0x191)]};}):[]};}):[]};}):[]:[]})[_0x3a27fe(0x183)](function(_0x5889ac){const _0x82e83=_0x3a27fe;logger[_0x82e83(0x18a)](_0x82e83(0x189),_0x4ff810),logger['debug']('ShowSugarcrmAccount',_0x4ff810,JSON['stringify'](_0x5889ac)),_0x39133a(_0x5889ac);})['catch'](function(_0x22cedc){const _0x373da3=_0x3a27fe;logger['error'](_0x373da3(0x189),_0x22cedc[_0x373da3(0x180)],_0x4ff810),_0x2baea5(_0x49a803[_0x373da3(0x17f)](0x1f4,_0x22cedc[_0x373da3(0x180)]));});});}; \ No newline at end of file +const a371_0x351f=['options','debug','raw','where','catch','map','include','GetSugarcrmAccount','findOne','SugarcrmAccount','stringify','model','attributes','lodash','info','ShowSugarcrmAccount','rpc','message','error','limit','../../config/logger','then'];(function(_0x327a59,_0x39d613){const _0x351f6d=function(_0x27a1bc){while(--_0x27a1bc){_0x327a59['push'](_0x327a59['shift']());}};_0x351f6d(++_0x39d613);}(a371_0x351f,0x191));const a371_0x27a1=function(_0x327a59,_0x39d613){_0x327a59=_0x327a59-0x7a;let _0x351f6d=a371_0x351f[_0x327a59];return _0x351f6d;};const a371_0x5955ed=a371_0x27a1;'use strict';const _=require(a371_0x5955ed(0x82)),db=require('../../mysqldb')['db'],logger=require(a371_0x5955ed(0x89))(a371_0x5955ed(0x85));exports[a371_0x5955ed(0x7c)]=function(_0x49c1bb){const _0x37a1e5=this;return new Promise(function(_0x47bab4,_0x35c5cb){const _0x317a2f=a371_0x27a1;return db[_0x317a2f(0x7e)]['findAll']({'raw':_0x49c1bb[_0x317a2f(0x8b)]?_0x49c1bb[_0x317a2f(0x8b)][_0x317a2f(0x8d)]===undefined?!![]:![]:!![],'where':_0x49c1bb[_0x317a2f(0x8b)]?_0x49c1bb[_0x317a2f(0x8b)]['where']||null:null,'attributes':_0x49c1bb[_0x317a2f(0x8b)]?_0x49c1bb[_0x317a2f(0x8b)][_0x317a2f(0x81)]||null:null,'limit':_0x49c1bb['options']?_0x49c1bb[_0x317a2f(0x8b)][_0x317a2f(0x88)]||null:null,'include':_0x49c1bb['options']?_0x49c1bb[_0x317a2f(0x8b)][_0x317a2f(0x7b)]?_[_0x317a2f(0x7a)](_0x49c1bb[_0x317a2f(0x8b)]['include'],function(_0x7948b4){const _0x4f5bee=_0x317a2f;return{'model':db[_0x7948b4[_0x4f5bee(0x80)]],'as':_0x7948b4['as'],'attributes':_0x7948b4[_0x4f5bee(0x81)],'include':_0x7948b4[_0x4f5bee(0x7b)]?_[_0x4f5bee(0x7a)](_0x7948b4['include'],function(_0x276f33){const _0x1a72ad=_0x4f5bee;return{'model':db[_0x276f33[_0x1a72ad(0x80)]],'as':_0x276f33['as'],'attributes':_0x276f33[_0x1a72ad(0x81)],'include':_0x276f33[_0x1a72ad(0x7b)]?_[_0x1a72ad(0x7a)](_0x276f33[_0x1a72ad(0x7b)],function(_0x5e99b0){const _0x37bdc5=_0x1a72ad;return{'model':db[_0x5e99b0[_0x37bdc5(0x80)]],'as':_0x5e99b0['as'],'attributes':_0x5e99b0[_0x37bdc5(0x81)]};}):[]};}):[]};}):[]:[]})[_0x317a2f(0x8a)](function(_0x5eb86e){const _0x3ac44f=_0x317a2f;logger[_0x3ac44f(0x83)]('GetSugarcrmAccount',_0x49c1bb),logger[_0x3ac44f(0x8c)](_0x3ac44f(0x7c),_0x49c1bb,JSON[_0x3ac44f(0x7f)](_0x5eb86e)),_0x47bab4(_0x5eb86e);})['catch'](function(_0x323421){const _0x2e581e=_0x317a2f;logger[_0x2e581e(0x87)]('GetSugarcrmAccount',_0x323421[_0x2e581e(0x86)],_0x49c1bb),_0x35c5cb(_0x37a1e5[_0x2e581e(0x87)](0x1f4,_0x323421[_0x2e581e(0x86)]));});});},exports[a371_0x5955ed(0x84)]=function(_0x38e805){const _0x5eac2c=this;return new Promise(function(_0x250a08,_0x26d863){const _0x272892=a371_0x27a1;return db[_0x272892(0x7e)][_0x272892(0x7d)]({'raw':_0x38e805[_0x272892(0x8b)]?_0x38e805['options'][_0x272892(0x8d)]===undefined?!![]:![]:!![],'where':_0x38e805[_0x272892(0x8b)]?_0x38e805[_0x272892(0x8b)][_0x272892(0x8e)]||null:null,'attributes':_0x38e805[_0x272892(0x8b)]?_0x38e805[_0x272892(0x8b)]['attributes']||null:null,'include':_0x38e805[_0x272892(0x8b)]?_0x38e805[_0x272892(0x8b)][_0x272892(0x7b)]?_['map'](_0x38e805[_0x272892(0x8b)][_0x272892(0x7b)],function(_0x3ead78){const _0xb1d79e=_0x272892;return{'model':db[_0x3ead78[_0xb1d79e(0x80)]],'as':_0x3ead78['as'],'attributes':_0x3ead78[_0xb1d79e(0x81)],'include':_0x3ead78[_0xb1d79e(0x7b)]?_[_0xb1d79e(0x7a)](_0x3ead78['include'],function(_0xd81507){const _0x524573=_0xb1d79e;return{'model':db[_0xd81507[_0x524573(0x80)]],'as':_0xd81507['as'],'attributes':_0xd81507[_0x524573(0x81)],'include':_0xd81507[_0x524573(0x7b)]?_[_0x524573(0x7a)](_0xd81507[_0x524573(0x7b)],function(_0x1af008){const _0x4a1675=_0x524573;return{'model':db[_0x1af008[_0x4a1675(0x80)]],'as':_0x1af008['as'],'attributes':_0x1af008[_0x4a1675(0x81)]};}):[]};}):[]};}):[]:[]})[_0x272892(0x8a)](function(_0x5811d3){const _0x147fc2=_0x272892;logger[_0x147fc2(0x83)](_0x147fc2(0x84),_0x38e805),logger[_0x147fc2(0x8c)](_0x147fc2(0x84),_0x38e805,JSON['stringify'](_0x5811d3)),_0x250a08(_0x5811d3);})[_0x272892(0x8f)](function(_0x2f62c9){const _0x363cc7=_0x272892;logger[_0x363cc7(0x87)]('ShowSugarcrmAccount',_0x2f62c9['message'],_0x38e805),_0x26d863(_0x5eac2c['error'](0x1f4,_0x2f62c9[_0x363cc7(0x86)]));});});}; \ No newline at end of file diff --git a/server/api/intSugarcrmConfiguration/index.js b/server/api/intSugarcrmConfiguration/index.js index 0124d45..932e237 100644 --- a/server/api/intSugarcrmConfiguration/index.js +++ b/server/api/intSugarcrmConfiguration/index.js @@ -1 +1 @@ -const a372_0x80a3=['delete','Router','/:id/subjects','get','index','post','getSubjects','show','/:id/fields','../../components/auth/service','exports','express','destroy','/:id/descriptions','update','put','create','/:id','./intSugarcrmConfiguration.controller','isAuthenticated'];(function(_0x5b8d8c,_0x299930){const _0x80a304=function(_0x2c57b7){while(--_0x2c57b7){_0x5b8d8c['push'](_0x5b8d8c['shift']());}};_0x80a304(++_0x299930);}(a372_0x80a3,0x1b0));const a372_0x2c57=function(_0x5b8d8c,_0x299930){_0x5b8d8c=_0x5b8d8c-0x1f4;let _0x80a304=a372_0x80a3[_0x5b8d8c];return _0x80a304;};const a372_0x181c14=a372_0x2c57;'use strict';const express=require(a372_0x181c14(0x207)),router=express[a372_0x181c14(0x1fd)](),auth=require(a372_0x181c14(0x205)),controller=require(a372_0x181c14(0x1fa));router[a372_0x181c14(0x1ff)]('/',auth[a372_0x181c14(0x1fb)](),controller[a372_0x181c14(0x200)]),router[a372_0x181c14(0x1ff)](a372_0x181c14(0x1f9),auth[a372_0x181c14(0x1fb)](),controller[a372_0x181c14(0x203)]),router[a372_0x181c14(0x1ff)](a372_0x181c14(0x204),auth[a372_0x181c14(0x1fb)](),controller['getFields']),router[a372_0x181c14(0x1ff)](a372_0x181c14(0x1fe),auth['isAuthenticated'](),controller[a372_0x181c14(0x202)]),router[a372_0x181c14(0x1ff)](a372_0x181c14(0x1f5),auth[a372_0x181c14(0x1fb)](),controller['getDescriptions']),router[a372_0x181c14(0x201)]('/',auth[a372_0x181c14(0x1fb)](),controller[a372_0x181c14(0x1f8)]),router[a372_0x181c14(0x1f7)](a372_0x181c14(0x1f9),auth['isAuthenticated'](),controller[a372_0x181c14(0x1f6)]),router[a372_0x181c14(0x1fc)](a372_0x181c14(0x1f9),auth[a372_0x181c14(0x1fb)](),controller[a372_0x181c14(0x1f4)]),module[a372_0x181c14(0x206)]=router; \ No newline at end of file +const a372_0xea7b=['destroy','/:id','show','post','getDescriptions','getFields','isAuthenticated','get','getSubjects','exports','/:id/subjects','./intSugarcrmConfiguration.controller','/:id/fields'];(function(_0x5b9770,_0x1c2053){const _0xea7bfb=function(_0x231071){while(--_0x231071){_0x5b9770['push'](_0x5b9770['shift']());}};_0xea7bfb(++_0x1c2053);}(a372_0xea7b,0x1a6));const a372_0x2310=function(_0x5b9770,_0x1c2053){_0x5b9770=_0x5b9770-0xf9;let _0xea7bfb=a372_0xea7b[_0x5b9770];return _0xea7bfb;};const a372_0x37ec8f=a372_0x2310;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a372_0x37ec8f(0xfe));router['get']('/',auth[a372_0x37ec8f(0xf9)](),controller['index']),router['get'](a372_0x37ec8f(0x101),auth[a372_0x37ec8f(0xf9)](),controller[a372_0x37ec8f(0x102)]),router['get'](a372_0x37ec8f(0xff),auth['isAuthenticated'](),controller[a372_0x37ec8f(0x105)]),router[a372_0x37ec8f(0xfa)](a372_0x37ec8f(0xfd),auth[a372_0x37ec8f(0xf9)](),controller[a372_0x37ec8f(0xfb)]),router[a372_0x37ec8f(0xfa)]('/:id/descriptions',auth[a372_0x37ec8f(0xf9)](),controller[a372_0x37ec8f(0x104)]),router[a372_0x37ec8f(0x103)]('/',auth[a372_0x37ec8f(0xf9)](),controller['create']),router['put'](a372_0x37ec8f(0x101),auth['isAuthenticated'](),controller['update']),router['delete'](a372_0x37ec8f(0x101),auth[a372_0x37ec8f(0xf9)](),controller[a372_0x37ec8f(0x100)]),module[a372_0x37ec8f(0xfc)]=router; \ No newline at end of file diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js index 71244a4..413443c 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js @@ -1 +1 @@ -const a373_0x848c=['sequelize','exports','attributes','STRING'];(function(_0x1d4eeb,_0x109008){const _0x848c5d=function(_0x5f4394){while(--_0x5f4394){_0x1d4eeb['push'](_0x1d4eeb['shift']());}};_0x848c5d(++_0x109008);}(a373_0x848c,0x12c));const a373_0x5f43=function(_0x1d4eeb,_0x109008){_0x1d4eeb=_0x1d4eeb-0x1d9;let _0x848c5d=a373_0x848c[_0x1d4eeb];return _0x848c5d;};const a373_0x2159e2=a373_0x5f43;'use strict';const {DataTypes}=require(a373_0x2159e2(0x1d9)),attributes={'name':{'type':DataTypes[a373_0x2159e2(0x1dc)]},'description':{'type':DataTypes[a373_0x2159e2(0x1dc)]}};module[a373_0x2159e2(0x1da)][a373_0x2159e2(0x1db)]=attributes; \ No newline at end of file +const a373_0x541a=['exports','STRING','attributes'];(function(_0x4002b9,_0xa6c843){const _0x541aa8=function(_0x505f89){while(--_0x505f89){_0x4002b9['push'](_0x4002b9['shift']());}};_0x541aa8(++_0xa6c843);}(a373_0x541a,0x7e));const a373_0x505f=function(_0x4002b9,_0xa6c843){_0x4002b9=_0x4002b9-0x14a;let _0x541aa8=a373_0x541a[_0x4002b9];return _0x541aa8;};const a373_0x4a6342=a373_0x505f;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a373_0x4a6342(0x14b)]},'description':{'type':DataTypes['STRING']}};module[a373_0x4a6342(0x14a)][a373_0x4a6342(0x14c)]=attributes; \ No newline at end of file diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js index 2250033..c6fc66e 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js @@ -1 +1 @@ -const a374_0x5138=['count','nolimit','where','options','findOne','getFields','getSubjects','sequelize','limit','order','../../mysqldb','include','query','type','then','fieldName','filters','pick','filter','length','create','getDescriptions','update','../../config/logger','map','params','fields','rawAttributes','findAll','sort','rows','stack','model','intersection','offset','set','keys','SugarcrmField','error','undefined','json','merge','SugarcrmConfiguration','body','attributes','catch','destroy','name','end','index','Content-Range','../../components/parsers/qs','like','status','lodash','includeAll','key'];(function(_0x547233,_0x35e8eb){const _0x513803=function(_0x293145){while(--_0x293145){_0x547233['push'](_0x547233['shift']());}};_0x513803(++_0x35e8eb);}(a374_0x5138,0x153));const a374_0x2931=function(_0x547233,_0x35e8eb){_0x547233=_0x547233-0x15c;let _0x513803=a374_0x5138[_0x547233];return _0x513803;};const a374_0x2361b9=a374_0x2931;'use strict';const _=require(a374_0x2361b9(0x15c)),qs=require(a374_0x2361b9(0x192)),logger=require(a374_0x2361b9(0x176))('api'),{db}=require(a374_0x2361b9(0x169)),{Op}=require(a374_0x2361b9(0x166));function respondWithResult(_0xee55b7,_0x31a059){return _0x31a059=_0x31a059||0xc8,function(_0x387e31){const _0x25a60b=a374_0x2931;if(_0x387e31)return _0xee55b7[_0x25a60b(0x194)](_0x31a059)['json'](_0x387e31);};}function respondWithFilteredResult(_0x556303,_0x5ab16d){return function(_0x567da9){const _0x33bd9c=a374_0x2931;if(_0x567da9){const _0x13af5d=_0x567da9[_0x33bd9c(0x15f)],_0x5578d6=_0x5ab16d[_0x33bd9c(0x181)];let _0x5159cb=_0x5ab16d[_0x33bd9c(0x181)]+_0x5ab16d[_0x33bd9c(0x167)],_0x511bdf;return _0x5159cb>=_0x13af5d?(_0x5159cb=_0x13af5d,_0x511bdf=0xc8):_0x511bdf=0xce,_0x556303[_0x33bd9c(0x194)](_0x511bdf),_0x556303[_0x33bd9c(0x182)](_0x33bd9c(0x191),_0x5578d6+'-'+_0x5159cb+'/'+_0x13af5d)[_0x33bd9c(0x187)](_0x567da9);}return null;};}function saveUpdates(_0x7c15cc){return function(_0x3fbe9a){const _0x58ba7e=a374_0x2931;if(_0x3fbe9a)return _0x3fbe9a[_0x58ba7e(0x175)](_0x7c15cc)['then'](function(_0x3433e3){return _0x3433e3;});return null;};}function removeEntity(_0x481a26){return function(_0x404fde){const _0x3793f3=a374_0x2931;if(_0x404fde)return _0x404fde[_0x3793f3(0x18d)]()['then'](function(){const _0x282c46=_0x3793f3;_0x481a26[_0x282c46(0x194)](0xcc)[_0x282c46(0x18f)]();});};}function handleEntityNotFound(_0x4b4fb2){return function(_0x3bc117){return!_0x3bc117&&_0x4b4fb2['sendStatus'](0x194),_0x3bc117;};}function handleError(_0x32d9dd,_0x479455){return _0x479455=_0x479455||0x1f4,function(_0x488f5e){const _0x220413=a374_0x2931;logger[_0x220413(0x185)](_0x488f5e[_0x220413(0x17e)]),_0x488f5e[_0x220413(0x18e)]&&delete _0x488f5e[_0x220413(0x18e)],_0x32d9dd[_0x220413(0x194)](_0x479455)['send'](_0x488f5e);};}exports[a374_0x2361b9(0x190)]=function(_0x3f0d6f,_0x36986c){const _0x3a7a00=a374_0x2361b9;let _0x538a0b={};const _0x4ea4b3={},_0x4fd9b4={'count':0x0,'rows':[]},_0xb37911=_[_0x3a7a00(0x177)](db[_0x3a7a00(0x189)][_0x3a7a00(0x17a)],function(_0x1140c3){const _0x2a3e8d=_0x3a7a00;return{'name':_0x1140c3[_0x2a3e8d(0x16e)],'type':_0x1140c3['type'][_0x2a3e8d(0x15e)]};});_0x4ea4b3[_0x3a7a00(0x17f)]=_['map'](_0xb37911,_0x3a7a00(0x18e)),_0x4ea4b3[_0x3a7a00(0x16b)]=_[_0x3a7a00(0x183)](_0x3f0d6f[_0x3a7a00(0x16b)]),_0x4ea4b3[_0x3a7a00(0x16f)]=_[_0x3a7a00(0x180)](_0x4ea4b3[_0x3a7a00(0x17f)],_0x4ea4b3['query']),_0x538a0b[_0x3a7a00(0x18b)]=_[_0x3a7a00(0x180)](_0x4ea4b3[_0x3a7a00(0x17f)],qs['fields'](_0x3f0d6f[_0x3a7a00(0x16b)][_0x3a7a00(0x179)])),_0x538a0b[_0x3a7a00(0x18b)]=_0x538a0b[_0x3a7a00(0x18b)][_0x3a7a00(0x172)]?_0x538a0b[_0x3a7a00(0x18b)]:_0x4ea4b3['model'];typeof _0x3f0d6f[_0x3a7a00(0x16b)]['nolimit']===_0x3a7a00(0x186)&&(_0x538a0b[_0x3a7a00(0x167)]=qs[_0x3a7a00(0x167)](_0x3f0d6f[_0x3a7a00(0x16b)][_0x3a7a00(0x167)]),_0x538a0b[_0x3a7a00(0x181)]=qs[_0x3a7a00(0x181)](_0x3f0d6f[_0x3a7a00(0x16b)]['offset']));_0x538a0b[_0x3a7a00(0x168)]=qs[_0x3a7a00(0x17c)](_0x3f0d6f[_0x3a7a00(0x16b)][_0x3a7a00(0x17c)]),_0x538a0b['where']=qs[_0x3a7a00(0x16f)](_[_0x3a7a00(0x170)](_0x3f0d6f[_0x3a7a00(0x16b)],_0x4ea4b3[_0x3a7a00(0x16f)]),_0xb37911);_0x3f0d6f[_0x3a7a00(0x16b)]['filter']&&(_0x538a0b[_0x3a7a00(0x161)]=_[_0x3a7a00(0x188)](_0x538a0b[_0x3a7a00(0x161)],{[Op['or']]:_['map'](_0xb37911,function(_0x235af3){const _0x52c23d=_0x3a7a00;if(_0x235af3[_0x52c23d(0x16c)]!=='VIRTUAL'){const _0x5c2a53={};return _0x5c2a53[_0x235af3['name']]={[Op[_0x52c23d(0x193)]]:'%'+_0x3f0d6f['query'][_0x52c23d(0x171)]+'%'},_0x5c2a53;}})}));_0x538a0b=_[_0x3a7a00(0x188)]({},_0x538a0b,_0x3f0d6f[_0x3a7a00(0x162)]);const _0x3d4991={'where':_0x538a0b[_0x3a7a00(0x161)]};return db['SugarcrmConfiguration'][_0x3a7a00(0x15f)](_0x3d4991)['then'](function(_0x34e1d1){const _0x5ec998=_0x3a7a00;return _0x4fd9b4[_0x5ec998(0x15f)]=_0x34e1d1,_0x3f0d6f[_0x5ec998(0x16b)]['includeAll']&&(_0x538a0b[_0x5ec998(0x16a)]=[{'all':!![]}]),db[_0x5ec998(0x189)][_0x5ec998(0x17b)](_0x538a0b);})['then'](function(_0x259ebf){const _0x4b212b=_0x3a7a00;return _0x4fd9b4[_0x4b212b(0x17d)]=_0x259ebf,_0x4fd9b4;})[_0x3a7a00(0x16d)](respondWithFilteredResult(_0x36986c,_0x538a0b))[_0x3a7a00(0x18c)](handleError(_0x36986c,null));},exports['show']=function(_0x5a42d9,_0x19a6ff){const _0x212620=a374_0x2361b9;let _0x3b3de9={'raw':![],'where':{'id':_0x5a42d9[_0x212620(0x178)]['id']}};const _0x2e473b={};return _0x2e473b[_0x212620(0x17f)]=_[_0x212620(0x183)](db[_0x212620(0x189)][_0x212620(0x17a)]),_0x2e473b[_0x212620(0x16b)]=_[_0x212620(0x183)](_0x5a42d9['query']),_0x2e473b[_0x212620(0x16f)]=_[_0x212620(0x180)](_0x2e473b['model'],_0x2e473b[_0x212620(0x16b)]),_0x3b3de9[_0x212620(0x18b)]=_['intersection'](_0x2e473b[_0x212620(0x17f)],qs[_0x212620(0x179)](_0x5a42d9[_0x212620(0x16b)][_0x212620(0x179)])),_0x3b3de9[_0x212620(0x18b)]=_0x3b3de9[_0x212620(0x18b)][_0x212620(0x172)]?_0x3b3de9[_0x212620(0x18b)]:_0x2e473b[_0x212620(0x17f)],_0x5a42d9[_0x212620(0x16b)][_0x212620(0x15d)]&&(_0x3b3de9[_0x212620(0x16a)]=[{'all':!![]}]),_0x3b3de9=_[_0x212620(0x188)]({},_0x3b3de9,_0x5a42d9[_0x212620(0x162)]),db[_0x212620(0x189)][_0x212620(0x163)](_0x3b3de9)[_0x212620(0x16d)](handleEntityNotFound(_0x19a6ff,null))[_0x212620(0x16d)](respondWithResult(_0x19a6ff,null))[_0x212620(0x18c)](handleError(_0x19a6ff,null));},exports[a374_0x2361b9(0x173)]=function(_0x3e32cd,_0x43c55f){const _0x2184ee=a374_0x2361b9;return db[_0x2184ee(0x189)][_0x2184ee(0x173)](_0x3e32cd['body'],{})[_0x2184ee(0x16d)](respondWithResult(_0x43c55f,0xc9))['catch'](handleError(_0x43c55f,null));},exports[a374_0x2361b9(0x175)]=function(_0x5c842b,_0x435350){const _0x431e4a=a374_0x2361b9;return _0x5c842b['body']['id']&&delete _0x5c842b[_0x431e4a(0x18a)]['id'],db[_0x431e4a(0x189)][_0x431e4a(0x163)]({'where':{'id':_0x5c842b[_0x431e4a(0x178)]['id']}})['then'](handleEntityNotFound(_0x435350,null))[_0x431e4a(0x16d)](saveUpdates(_0x5c842b[_0x431e4a(0x18a)],null))[_0x431e4a(0x16d)](respondWithResult(_0x435350,null))[_0x431e4a(0x18c)](handleError(_0x435350,null));},exports[a374_0x2361b9(0x18d)]=function(_0x2d916d,_0x1849b1){const _0x26d0a6=a374_0x2361b9;return db['SugarcrmConfiguration'][_0x26d0a6(0x163)]({'where':{'id':_0x2d916d['params']['id']}})['then'](handleEntityNotFound(_0x1849b1,null))[_0x26d0a6(0x16d)](removeEntity(_0x1849b1,null))[_0x26d0a6(0x18c)](handleError(_0x1849b1,null));},exports['getFields']=function(_0x564aa7,_0x3cd784){const _0x2a95d4=a374_0x2361b9;let _0xd9f44={};const _0x36f5a2={};let _0x18e256,_0x442520;return db[_0x2a95d4(0x189)][_0x2a95d4(0x163)]({'where':{'id':_0x564aa7[_0x2a95d4(0x178)]['id']}})[_0x2a95d4(0x16d)](handleEntityNotFound(_0x3cd784,null))['then'](function(_0x24d887){const _0x40ca37=_0x2a95d4;if(_0x24d887)return _0x18e256=_0x24d887,_0x36f5a2['model']=_[_0x40ca37(0x183)](db['SugarcrmField'][_0x40ca37(0x17a)]),_0x36f5a2['query']=_[_0x40ca37(0x183)](_0x564aa7[_0x40ca37(0x16b)]),_0x36f5a2[_0x40ca37(0x16f)]=_[_0x40ca37(0x180)](_0x36f5a2['model'],_0x36f5a2[_0x40ca37(0x16b)]),_0xd9f44[_0x40ca37(0x18b)]=_[_0x40ca37(0x180)](_0x36f5a2[_0x40ca37(0x17f)],qs[_0x40ca37(0x179)](_0x564aa7[_0x40ca37(0x16b)]['fields'])),_0xd9f44[_0x40ca37(0x18b)]=_0xd9f44[_0x40ca37(0x18b)]['length']?_0xd9f44[_0x40ca37(0x18b)]:_0x36f5a2['model'],_0xd9f44['order']=qs[_0x40ca37(0x17c)](_0x564aa7[_0x40ca37(0x16b)][_0x40ca37(0x17c)]),_0xd9f44['where']=qs[_0x40ca37(0x16f)](_[_0x40ca37(0x170)](_0x564aa7[_0x40ca37(0x16b)],_0x36f5a2[_0x40ca37(0x16f)])),_0x564aa7[_0x40ca37(0x16b)][_0x40ca37(0x171)]&&(_0xd9f44[_0x40ca37(0x161)]=_[_0x40ca37(0x188)](_0xd9f44[_0x40ca37(0x161)],{[Op['or']]:_[_0x40ca37(0x177)](_0xd9f44[_0x40ca37(0x18b)],function(_0x2718dd){const _0x3e7564=_0x40ca37,_0x232f52={};return _0x232f52[_0x2718dd]={[Op[_0x3e7564(0x193)]]:'%'+_0x564aa7['query'][_0x3e7564(0x171)]+'%'},_0x232f52;})})),_0xd9f44=_[_0x40ca37(0x188)]({},_0xd9f44,_0x564aa7[_0x40ca37(0x162)]),_0x18e256[_0x40ca37(0x164)](_0xd9f44);})[_0x2a95d4(0x16d)](function(_0x20f8a9){const _0x590ba7=_0x2a95d4;if(_0x20f8a9)return _0x442520=_0x20f8a9['length'],typeof _0x564aa7[_0x590ba7(0x16b)][_0x590ba7(0x160)]===_0x590ba7(0x186)&&(_0xd9f44[_0x590ba7(0x167)]=qs[_0x590ba7(0x167)](_0x564aa7[_0x590ba7(0x16b)][_0x590ba7(0x167)]),_0xd9f44[_0x590ba7(0x181)]=qs[_0x590ba7(0x181)](_0x564aa7['query'][_0x590ba7(0x181)])),_0x18e256[_0x590ba7(0x164)](_0xd9f44);})[_0x2a95d4(0x16d)](function(_0xe3fefb){if(_0xe3fefb)return _0xe3fefb?{'count':_0x442520,'rows':_0xe3fefb}:null;})['then'](respondWithResult(_0x3cd784,null))[_0x2a95d4(0x18c)](handleError(_0x3cd784,null));},exports[a374_0x2361b9(0x165)]=function(_0x2f98b0,_0x36038e){const _0x25b145=a374_0x2361b9;let _0x1ffcfa={};const _0x23dc19={};let _0x24fe66,_0x708975;return db[_0x25b145(0x189)][_0x25b145(0x163)]({'where':{'id':_0x2f98b0['params']['id']}})[_0x25b145(0x16d)](handleEntityNotFound(_0x36038e,null))[_0x25b145(0x16d)](function(_0xd2b8fd){const _0x461c88=_0x25b145;if(_0xd2b8fd)return _0x24fe66=_0xd2b8fd,_0x23dc19['model']=_[_0x461c88(0x183)](db[_0x461c88(0x184)][_0x461c88(0x17a)]),_0x23dc19[_0x461c88(0x16b)]=_[_0x461c88(0x183)](_0x2f98b0[_0x461c88(0x16b)]),_0x23dc19['filters']=_[_0x461c88(0x180)](_0x23dc19[_0x461c88(0x17f)],_0x23dc19['query']),_0x1ffcfa[_0x461c88(0x18b)]=_['intersection'](_0x23dc19['model'],qs[_0x461c88(0x179)](_0x2f98b0['query'][_0x461c88(0x179)])),_0x1ffcfa[_0x461c88(0x18b)]=_0x1ffcfa[_0x461c88(0x18b)][_0x461c88(0x172)]?_0x1ffcfa[_0x461c88(0x18b)]:_0x23dc19[_0x461c88(0x17f)],_0x1ffcfa[_0x461c88(0x168)]=qs[_0x461c88(0x17c)](_0x2f98b0['query'][_0x461c88(0x17c)]),_0x1ffcfa[_0x461c88(0x161)]=qs[_0x461c88(0x16f)](_['pick'](_0x2f98b0[_0x461c88(0x16b)],_0x23dc19[_0x461c88(0x16f)])),_0x2f98b0[_0x461c88(0x16b)][_0x461c88(0x171)]&&(_0x1ffcfa['where']=_['merge'](_0x1ffcfa[_0x461c88(0x161)],{[Op['or']]:_[_0x461c88(0x177)](_0x1ffcfa[_0x461c88(0x18b)],function(_0x167844){const _0x22f6fc=_0x461c88,_0x375b9a={};return _0x375b9a[_0x167844]={[Op[_0x22f6fc(0x193)]]:'%'+_0x2f98b0[_0x22f6fc(0x16b)][_0x22f6fc(0x171)]+'%'},_0x375b9a;})})),_0x1ffcfa=_['merge']({},_0x1ffcfa,_0x2f98b0[_0x461c88(0x162)]),_0x24fe66['getSubjects'](_0x1ffcfa);})[_0x25b145(0x16d)](function(_0x10b4c0){const _0x28fa3b=_0x25b145;if(_0x10b4c0)return _0x708975=_0x10b4c0[_0x28fa3b(0x172)],typeof _0x2f98b0[_0x28fa3b(0x16b)][_0x28fa3b(0x160)]===_0x28fa3b(0x186)&&(_0x1ffcfa[_0x28fa3b(0x167)]=qs[_0x28fa3b(0x167)](_0x2f98b0['query'][_0x28fa3b(0x167)]),_0x1ffcfa[_0x28fa3b(0x181)]=qs[_0x28fa3b(0x181)](_0x2f98b0[_0x28fa3b(0x16b)][_0x28fa3b(0x181)])),_0x24fe66[_0x28fa3b(0x165)](_0x1ffcfa);})[_0x25b145(0x16d)](function(_0x13bc58){if(_0x13bc58)return _0x13bc58?{'count':_0x708975,'rows':_0x13bc58}:null;})[_0x25b145(0x16d)](respondWithResult(_0x36038e,null))[_0x25b145(0x18c)](handleError(_0x36038e,null));},exports['getDescriptions']=function(_0x417ca1,_0x36e27d){const _0x4a224a=a374_0x2361b9;let _0x1e0924={};const _0x46480a={};let _0x56a860,_0x5988b3;return db[_0x4a224a(0x189)]['findOne']({'where':{'id':_0x417ca1[_0x4a224a(0x178)]['id']}})[_0x4a224a(0x16d)](handleEntityNotFound(_0x36e27d,null))[_0x4a224a(0x16d)](function(_0x3ec804){const _0x4ed599=_0x4a224a;if(_0x3ec804)return _0x56a860=_0x3ec804,_0x46480a['model']=_[_0x4ed599(0x183)](db[_0x4ed599(0x184)]['rawAttributes']),_0x46480a[_0x4ed599(0x16b)]=_[_0x4ed599(0x183)](_0x417ca1[_0x4ed599(0x16b)]),_0x46480a[_0x4ed599(0x16f)]=_[_0x4ed599(0x180)](_0x46480a[_0x4ed599(0x17f)],_0x46480a['query']),_0x1e0924[_0x4ed599(0x18b)]=_[_0x4ed599(0x180)](_0x46480a[_0x4ed599(0x17f)],qs[_0x4ed599(0x179)](_0x417ca1[_0x4ed599(0x16b)][_0x4ed599(0x179)])),_0x1e0924['attributes']=_0x1e0924[_0x4ed599(0x18b)][_0x4ed599(0x172)]?_0x1e0924['attributes']:_0x46480a[_0x4ed599(0x17f)],_0x1e0924[_0x4ed599(0x168)]=qs[_0x4ed599(0x17c)](_0x417ca1[_0x4ed599(0x16b)][_0x4ed599(0x17c)]),_0x1e0924[_0x4ed599(0x161)]=qs[_0x4ed599(0x16f)](_['pick'](_0x417ca1[_0x4ed599(0x16b)],_0x46480a[_0x4ed599(0x16f)])),_0x417ca1[_0x4ed599(0x16b)][_0x4ed599(0x171)]&&(_0x1e0924[_0x4ed599(0x161)]=_[_0x4ed599(0x188)](_0x1e0924[_0x4ed599(0x161)],{[Op['or']]:_[_0x4ed599(0x177)](_0x1e0924[_0x4ed599(0x18b)],function(_0x4474fc){const _0x306502=_0x4ed599,_0xed1d95={};return _0xed1d95[_0x4474fc]={[Op['like']]:'%'+_0x417ca1[_0x306502(0x16b)][_0x306502(0x171)]+'%'},_0xed1d95;})})),_0x1e0924=_['merge']({},_0x1e0924,_0x417ca1[_0x4ed599(0x162)]),_0x56a860['getDescriptions'](_0x1e0924);})[_0x4a224a(0x16d)](function(_0x172e89){const _0x12baa4=_0x4a224a;if(_0x172e89)return _0x5988b3=_0x172e89[_0x12baa4(0x172)],typeof _0x417ca1[_0x12baa4(0x16b)][_0x12baa4(0x160)]===_0x12baa4(0x186)&&(_0x1e0924[_0x12baa4(0x167)]=qs[_0x12baa4(0x167)](_0x417ca1[_0x12baa4(0x16b)][_0x12baa4(0x167)]),_0x1e0924[_0x12baa4(0x181)]=qs['offset'](_0x417ca1[_0x12baa4(0x16b)][_0x12baa4(0x181)])),_0x56a860[_0x12baa4(0x174)](_0x1e0924);})['then'](function(_0x15418a){if(_0x15418a)return _0x15418a?{'count':_0x5988b3,'rows':_0x15418a}:null;})[_0x4a224a(0x16d)](respondWithResult(_0x36e27d,null))[_0x4a224a(0x18c)](handleError(_0x36e27d,null));}; \ No newline at end of file +const a374_0x5499=['body','api','merge','nolimit','stack','length','update','sequelize','rawAttributes','then','undefined','limit','findAll','fields','end','create','Content-Range','send','include','query','map','like','../../components/parsers/qs','error','../../config/logger','catch','getSubjects','filters','attributes','filter','set','pick','findOne','key','status','params','destroy','where','getDescriptions','offset','includeAll','name','rows','sort','show','type','SugarcrmConfiguration','options','count','index','getFields','../../mysqldb','model','keys','order','SugarcrmField','intersection'];(function(_0x58852e,_0x4e8913){const _0x549987=function(_0x1d4978){while(--_0x1d4978){_0x58852e['push'](_0x58852e['shift']());}};_0x549987(++_0x4e8913);}(a374_0x5499,0xac));const a374_0x1d49=function(_0x58852e,_0x4e8913){_0x58852e=_0x58852e-0x90;let _0x549987=a374_0x5499[_0x58852e];return _0x549987;};const a374_0x502cfd=a374_0x1d49;'use strict';const _=require('lodash'),qs=require(a374_0x502cfd(0xa5)),logger=require(a374_0x502cfd(0xa7))(a374_0x502cfd(0x90)),{db}=require(a374_0x502cfd(0xc2)),{Op}=require(a374_0x502cfd(0x96));function respondWithResult(_0x5b24e8,_0xc6d410){return _0xc6d410=_0xc6d410||0xc8,function(_0x4f5fbb){const _0x4c659a=a374_0x1d49;if(_0x4f5fbb)return _0x5b24e8[_0x4c659a(0xb1)](_0xc6d410)['json'](_0x4f5fbb);};}function respondWithFilteredResult(_0x501f60,_0x5f34de){return function(_0x29566f){const _0x8d43e9=a374_0x1d49;if(_0x29566f){const _0x24b55c=_0x29566f[_0x8d43e9(0xbf)],_0x2ad5b4=_0x5f34de['offset'];let _0xeff3db=_0x5f34de['offset']+_0x5f34de[_0x8d43e9(0x9a)],_0x36064b;return _0xeff3db>=_0x24b55c?(_0xeff3db=_0x24b55c,_0x36064b=0xc8):_0x36064b=0xce,_0x501f60['status'](_0x36064b),_0x501f60[_0x8d43e9(0xad)](_0x8d43e9(0x9f),_0x2ad5b4+'-'+_0xeff3db+'/'+_0x24b55c)['json'](_0x29566f);}return null;};}function saveUpdates(_0x125673){return function(_0x41688c){const _0x10c000=a374_0x1d49;if(_0x41688c)return _0x41688c[_0x10c000(0x95)](_0x125673)[_0x10c000(0x98)](function(_0x15504c){return _0x15504c;});return null;};}function removeEntity(_0x32491c){return function(_0x27a38c){const _0xf2a230=a374_0x1d49;if(_0x27a38c)return _0x27a38c[_0xf2a230(0xb3)]()[_0xf2a230(0x98)](function(){const _0x26df03=_0xf2a230;_0x32491c[_0x26df03(0xb1)](0xcc)[_0x26df03(0x9d)]();});};}function handleEntityNotFound(_0x4a27d3){return function(_0x4d5433){return!_0x4d5433&&_0x4a27d3['sendStatus'](0x194),_0x4d5433;};}function handleError(_0x43e289,_0x41035f){return _0x41035f=_0x41035f||0x1f4,function(_0x3a87d8){const _0x234521=a374_0x1d49;logger[_0x234521(0xa6)](_0x3a87d8[_0x234521(0x93)]),_0x3a87d8[_0x234521(0xb8)]&&delete _0x3a87d8['name'],_0x43e289[_0x234521(0xb1)](_0x41035f)[_0x234521(0xa0)](_0x3a87d8);};}exports[a374_0x502cfd(0xc0)]=function(_0x14344a,_0x1e81fd){const _0x35d5fd=a374_0x502cfd;let _0x54324b={};const _0x41f3b6={},_0x87ffbb={'count':0x0,'rows':[]},_0xbcab47=_['map'](db[_0x35d5fd(0xbd)]['rawAttributes'],function(_0x317658){const _0xfe1df=_0x35d5fd;return{'name':_0x317658['fieldName'],'type':_0x317658[_0xfe1df(0xbc)][_0xfe1df(0xb0)]};});_0x41f3b6['model']=_[_0x35d5fd(0xa3)](_0xbcab47,_0x35d5fd(0xb8)),_0x41f3b6[_0x35d5fd(0xa2)]=_[_0x35d5fd(0xc4)](_0x14344a[_0x35d5fd(0xa2)]),_0x41f3b6[_0x35d5fd(0xaa)]=_['intersection'](_0x41f3b6[_0x35d5fd(0xc3)],_0x41f3b6['query']),_0x54324b[_0x35d5fd(0xab)]=_[_0x35d5fd(0xc7)](_0x41f3b6[_0x35d5fd(0xc3)],qs[_0x35d5fd(0x9c)](_0x14344a[_0x35d5fd(0xa2)][_0x35d5fd(0x9c)])),_0x54324b[_0x35d5fd(0xab)]=_0x54324b[_0x35d5fd(0xab)][_0x35d5fd(0x94)]?_0x54324b[_0x35d5fd(0xab)]:_0x41f3b6[_0x35d5fd(0xc3)];typeof _0x14344a[_0x35d5fd(0xa2)][_0x35d5fd(0x92)]==='undefined'&&(_0x54324b['limit']=qs[_0x35d5fd(0x9a)](_0x14344a[_0x35d5fd(0xa2)]['limit']),_0x54324b['offset']=qs[_0x35d5fd(0xb6)](_0x14344a[_0x35d5fd(0xa2)][_0x35d5fd(0xb6)]));_0x54324b['order']=qs[_0x35d5fd(0xba)](_0x14344a[_0x35d5fd(0xa2)][_0x35d5fd(0xba)]),_0x54324b[_0x35d5fd(0xb4)]=qs[_0x35d5fd(0xaa)](_[_0x35d5fd(0xae)](_0x14344a[_0x35d5fd(0xa2)],_0x41f3b6[_0x35d5fd(0xaa)]),_0xbcab47);_0x14344a['query'][_0x35d5fd(0xac)]&&(_0x54324b[_0x35d5fd(0xb4)]=_[_0x35d5fd(0x91)](_0x54324b[_0x35d5fd(0xb4)],{[Op['or']]:_[_0x35d5fd(0xa3)](_0xbcab47,function(_0x2a7588){const _0x51fe73=_0x35d5fd;if(_0x2a7588[_0x51fe73(0xbc)]!=='VIRTUAL'){const _0x448231={};return _0x448231[_0x2a7588['name']]={[Op[_0x51fe73(0xa4)]]:'%'+_0x14344a[_0x51fe73(0xa2)][_0x51fe73(0xac)]+'%'},_0x448231;}})}));_0x54324b=_['merge']({},_0x54324b,_0x14344a[_0x35d5fd(0xbe)]);const _0x5787c2={'where':_0x54324b[_0x35d5fd(0xb4)]};return db[_0x35d5fd(0xbd)][_0x35d5fd(0xbf)](_0x5787c2)['then'](function(_0x1dc305){const _0x303e01=_0x35d5fd;return _0x87ffbb[_0x303e01(0xbf)]=_0x1dc305,_0x14344a[_0x303e01(0xa2)][_0x303e01(0xb7)]&&(_0x54324b[_0x303e01(0xa1)]=[{'all':!![]}]),db[_0x303e01(0xbd)][_0x303e01(0x9b)](_0x54324b);})['then'](function(_0x3a897d){const _0x2276ce=_0x35d5fd;return _0x87ffbb[_0x2276ce(0xb9)]=_0x3a897d,_0x87ffbb;})[_0x35d5fd(0x98)](respondWithFilteredResult(_0x1e81fd,_0x54324b))['catch'](handleError(_0x1e81fd,null));},exports[a374_0x502cfd(0xbb)]=function(_0x1517ed,_0x34abc0){const _0x33eed7=a374_0x502cfd;let _0xa32059={'raw':![],'where':{'id':_0x1517ed[_0x33eed7(0xb2)]['id']}};const _0x18b08a={};return _0x18b08a[_0x33eed7(0xc3)]=_[_0x33eed7(0xc4)](db[_0x33eed7(0xbd)][_0x33eed7(0x97)]),_0x18b08a[_0x33eed7(0xa2)]=_[_0x33eed7(0xc4)](_0x1517ed['query']),_0x18b08a[_0x33eed7(0xaa)]=_[_0x33eed7(0xc7)](_0x18b08a[_0x33eed7(0xc3)],_0x18b08a[_0x33eed7(0xa2)]),_0xa32059[_0x33eed7(0xab)]=_['intersection'](_0x18b08a['model'],qs[_0x33eed7(0x9c)](_0x1517ed[_0x33eed7(0xa2)][_0x33eed7(0x9c)])),_0xa32059[_0x33eed7(0xab)]=_0xa32059[_0x33eed7(0xab)][_0x33eed7(0x94)]?_0xa32059[_0x33eed7(0xab)]:_0x18b08a[_0x33eed7(0xc3)],_0x1517ed[_0x33eed7(0xa2)]['includeAll']&&(_0xa32059[_0x33eed7(0xa1)]=[{'all':!![]}]),_0xa32059=_['merge']({},_0xa32059,_0x1517ed['options']),db[_0x33eed7(0xbd)][_0x33eed7(0xaf)](_0xa32059)['then'](handleEntityNotFound(_0x34abc0,null))[_0x33eed7(0x98)](respondWithResult(_0x34abc0,null))[_0x33eed7(0xa8)](handleError(_0x34abc0,null));},exports[a374_0x502cfd(0x9e)]=function(_0x8659a0,_0x14d3da){const _0x3b6e3c=a374_0x502cfd;return db[_0x3b6e3c(0xbd)][_0x3b6e3c(0x9e)](_0x8659a0[_0x3b6e3c(0xc8)],{})[_0x3b6e3c(0x98)](respondWithResult(_0x14d3da,0xc9))[_0x3b6e3c(0xa8)](handleError(_0x14d3da,null));},exports[a374_0x502cfd(0x95)]=function(_0x1b6767,_0xe070b0){const _0x740c71=a374_0x502cfd;return _0x1b6767[_0x740c71(0xc8)]['id']&&delete _0x1b6767['body']['id'],db[_0x740c71(0xbd)][_0x740c71(0xaf)]({'where':{'id':_0x1b6767['params']['id']}})['then'](handleEntityNotFound(_0xe070b0,null))[_0x740c71(0x98)](saveUpdates(_0x1b6767[_0x740c71(0xc8)],null))['then'](respondWithResult(_0xe070b0,null))[_0x740c71(0xa8)](handleError(_0xe070b0,null));},exports['destroy']=function(_0x488066,_0x5daf7e){const _0x35f7d4=a374_0x502cfd;return db[_0x35f7d4(0xbd)]['findOne']({'where':{'id':_0x488066[_0x35f7d4(0xb2)]['id']}})[_0x35f7d4(0x98)](handleEntityNotFound(_0x5daf7e,null))['then'](removeEntity(_0x5daf7e,null))['catch'](handleError(_0x5daf7e,null));},exports[a374_0x502cfd(0xc1)]=function(_0x14eb46,_0x2701e1){const _0x5eb4f9=a374_0x502cfd;let _0x10e809={};const _0x5b7be7={};let _0x348ab2,_0x3eb1f8;return db[_0x5eb4f9(0xbd)][_0x5eb4f9(0xaf)]({'where':{'id':_0x14eb46[_0x5eb4f9(0xb2)]['id']}})[_0x5eb4f9(0x98)](handleEntityNotFound(_0x2701e1,null))[_0x5eb4f9(0x98)](function(_0x429ce9){const _0x36bdec=_0x5eb4f9;if(_0x429ce9)return _0x348ab2=_0x429ce9,_0x5b7be7[_0x36bdec(0xc3)]=_[_0x36bdec(0xc4)](db[_0x36bdec(0xc6)][_0x36bdec(0x97)]),_0x5b7be7[_0x36bdec(0xa2)]=_['keys'](_0x14eb46[_0x36bdec(0xa2)]),_0x5b7be7[_0x36bdec(0xaa)]=_['intersection'](_0x5b7be7[_0x36bdec(0xc3)],_0x5b7be7[_0x36bdec(0xa2)]),_0x10e809['attributes']=_[_0x36bdec(0xc7)](_0x5b7be7[_0x36bdec(0xc3)],qs['fields'](_0x14eb46[_0x36bdec(0xa2)][_0x36bdec(0x9c)])),_0x10e809[_0x36bdec(0xab)]=_0x10e809['attributes']['length']?_0x10e809[_0x36bdec(0xab)]:_0x5b7be7[_0x36bdec(0xc3)],_0x10e809['order']=qs['sort'](_0x14eb46[_0x36bdec(0xa2)]['sort']),_0x10e809[_0x36bdec(0xb4)]=qs[_0x36bdec(0xaa)](_[_0x36bdec(0xae)](_0x14eb46[_0x36bdec(0xa2)],_0x5b7be7[_0x36bdec(0xaa)])),_0x14eb46[_0x36bdec(0xa2)][_0x36bdec(0xac)]&&(_0x10e809[_0x36bdec(0xb4)]=_['merge'](_0x10e809[_0x36bdec(0xb4)],{[Op['or']]:_[_0x36bdec(0xa3)](_0x10e809['attributes'],function(_0x1be4de){const _0x14a1ff=_0x36bdec,_0x3d8c22={};return _0x3d8c22[_0x1be4de]={[Op['like']]:'%'+_0x14eb46['query'][_0x14a1ff(0xac)]+'%'},_0x3d8c22;})})),_0x10e809=_['merge']({},_0x10e809,_0x14eb46[_0x36bdec(0xbe)]),_0x348ab2[_0x36bdec(0xc1)](_0x10e809);})[_0x5eb4f9(0x98)](function(_0x51a295){const _0x1aa14f=_0x5eb4f9;if(_0x51a295)return _0x3eb1f8=_0x51a295[_0x1aa14f(0x94)],typeof _0x14eb46[_0x1aa14f(0xa2)][_0x1aa14f(0x92)]===_0x1aa14f(0x99)&&(_0x10e809[_0x1aa14f(0x9a)]=qs[_0x1aa14f(0x9a)](_0x14eb46[_0x1aa14f(0xa2)][_0x1aa14f(0x9a)]),_0x10e809[_0x1aa14f(0xb6)]=qs[_0x1aa14f(0xb6)](_0x14eb46['query'][_0x1aa14f(0xb6)])),_0x348ab2[_0x1aa14f(0xc1)](_0x10e809);})[_0x5eb4f9(0x98)](function(_0x21036c){if(_0x21036c)return _0x21036c?{'count':_0x3eb1f8,'rows':_0x21036c}:null;})[_0x5eb4f9(0x98)](respondWithResult(_0x2701e1,null))[_0x5eb4f9(0xa8)](handleError(_0x2701e1,null));},exports[a374_0x502cfd(0xa9)]=function(_0x212dbe,_0x444c2d){const _0xa9295a=a374_0x502cfd;let _0x32e3e6={};const _0x9b143f={};let _0x3283eb,_0x2d74d8;return db['SugarcrmConfiguration'][_0xa9295a(0xaf)]({'where':{'id':_0x212dbe[_0xa9295a(0xb2)]['id']}})['then'](handleEntityNotFound(_0x444c2d,null))['then'](function(_0x10f5fe){const _0x5263a7=_0xa9295a;if(_0x10f5fe)return _0x3283eb=_0x10f5fe,_0x9b143f['model']=_[_0x5263a7(0xc4)](db['SugarcrmField'][_0x5263a7(0x97)]),_0x9b143f[_0x5263a7(0xa2)]=_['keys'](_0x212dbe[_0x5263a7(0xa2)]),_0x9b143f[_0x5263a7(0xaa)]=_[_0x5263a7(0xc7)](_0x9b143f[_0x5263a7(0xc3)],_0x9b143f[_0x5263a7(0xa2)]),_0x32e3e6[_0x5263a7(0xab)]=_[_0x5263a7(0xc7)](_0x9b143f[_0x5263a7(0xc3)],qs[_0x5263a7(0x9c)](_0x212dbe[_0x5263a7(0xa2)]['fields'])),_0x32e3e6[_0x5263a7(0xab)]=_0x32e3e6['attributes']['length']?_0x32e3e6[_0x5263a7(0xab)]:_0x9b143f[_0x5263a7(0xc3)],_0x32e3e6[_0x5263a7(0xc5)]=qs[_0x5263a7(0xba)](_0x212dbe[_0x5263a7(0xa2)]['sort']),_0x32e3e6[_0x5263a7(0xb4)]=qs[_0x5263a7(0xaa)](_[_0x5263a7(0xae)](_0x212dbe[_0x5263a7(0xa2)],_0x9b143f[_0x5263a7(0xaa)])),_0x212dbe[_0x5263a7(0xa2)][_0x5263a7(0xac)]&&(_0x32e3e6[_0x5263a7(0xb4)]=_[_0x5263a7(0x91)](_0x32e3e6[_0x5263a7(0xb4)],{[Op['or']]:_['map'](_0x32e3e6[_0x5263a7(0xab)],function(_0x214327){const _0x13b123=_0x5263a7,_0x2888e6={};return _0x2888e6[_0x214327]={[Op[_0x13b123(0xa4)]]:'%'+_0x212dbe['query']['filter']+'%'},_0x2888e6;})})),_0x32e3e6=_[_0x5263a7(0x91)]({},_0x32e3e6,_0x212dbe[_0x5263a7(0xbe)]),_0x3283eb[_0x5263a7(0xa9)](_0x32e3e6);})[_0xa9295a(0x98)](function(_0x58b851){const _0x4a9f9e=_0xa9295a;if(_0x58b851)return _0x2d74d8=_0x58b851[_0x4a9f9e(0x94)],typeof _0x212dbe[_0x4a9f9e(0xa2)]['nolimit']==='undefined'&&(_0x32e3e6[_0x4a9f9e(0x9a)]=qs['limit'](_0x212dbe[_0x4a9f9e(0xa2)]['limit']),_0x32e3e6[_0x4a9f9e(0xb6)]=qs[_0x4a9f9e(0xb6)](_0x212dbe[_0x4a9f9e(0xa2)][_0x4a9f9e(0xb6)])),_0x3283eb[_0x4a9f9e(0xa9)](_0x32e3e6);})[_0xa9295a(0x98)](function(_0x3fe63c){if(_0x3fe63c)return _0x3fe63c?{'count':_0x2d74d8,'rows':_0x3fe63c}:null;})[_0xa9295a(0x98)](respondWithResult(_0x444c2d,null))[_0xa9295a(0xa8)](handleError(_0x444c2d,null));},exports['getDescriptions']=function(_0x1c19db,_0x289731){const _0x282ec3=a374_0x502cfd;let _0x26342a={};const _0x31c023={};let _0x52e20d,_0x388167;return db['SugarcrmConfiguration']['findOne']({'where':{'id':_0x1c19db[_0x282ec3(0xb2)]['id']}})[_0x282ec3(0x98)](handleEntityNotFound(_0x289731,null))['then'](function(_0x131835){const _0x4d7198=_0x282ec3;if(_0x131835)return _0x52e20d=_0x131835,_0x31c023[_0x4d7198(0xc3)]=_[_0x4d7198(0xc4)](db[_0x4d7198(0xc6)][_0x4d7198(0x97)]),_0x31c023[_0x4d7198(0xa2)]=_[_0x4d7198(0xc4)](_0x1c19db[_0x4d7198(0xa2)]),_0x31c023[_0x4d7198(0xaa)]=_[_0x4d7198(0xc7)](_0x31c023[_0x4d7198(0xc3)],_0x31c023[_0x4d7198(0xa2)]),_0x26342a[_0x4d7198(0xab)]=_[_0x4d7198(0xc7)](_0x31c023['model'],qs[_0x4d7198(0x9c)](_0x1c19db[_0x4d7198(0xa2)][_0x4d7198(0x9c)])),_0x26342a['attributes']=_0x26342a[_0x4d7198(0xab)]['length']?_0x26342a['attributes']:_0x31c023[_0x4d7198(0xc3)],_0x26342a[_0x4d7198(0xc5)]=qs[_0x4d7198(0xba)](_0x1c19db['query'][_0x4d7198(0xba)]),_0x26342a[_0x4d7198(0xb4)]=qs['filters'](_['pick'](_0x1c19db[_0x4d7198(0xa2)],_0x31c023[_0x4d7198(0xaa)])),_0x1c19db[_0x4d7198(0xa2)][_0x4d7198(0xac)]&&(_0x26342a[_0x4d7198(0xb4)]=_[_0x4d7198(0x91)](_0x26342a[_0x4d7198(0xb4)],{[Op['or']]:_['map'](_0x26342a[_0x4d7198(0xab)],function(_0x502e2a){const _0x4437ed=_0x4d7198,_0x494bca={};return _0x494bca[_0x502e2a]={[Op[_0x4437ed(0xa4)]]:'%'+_0x1c19db[_0x4437ed(0xa2)]['filter']+'%'},_0x494bca;})})),_0x26342a=_['merge']({},_0x26342a,_0x1c19db[_0x4d7198(0xbe)]),_0x52e20d[_0x4d7198(0xb5)](_0x26342a);})[_0x282ec3(0x98)](function(_0x2a7451){const _0x2b87a2=_0x282ec3;if(_0x2a7451)return _0x388167=_0x2a7451[_0x2b87a2(0x94)],typeof _0x1c19db['query'][_0x2b87a2(0x92)]===_0x2b87a2(0x99)&&(_0x26342a[_0x2b87a2(0x9a)]=qs[_0x2b87a2(0x9a)](_0x1c19db[_0x2b87a2(0xa2)][_0x2b87a2(0x9a)]),_0x26342a[_0x2b87a2(0xb6)]=qs['offset'](_0x1c19db['query'][_0x2b87a2(0xb6)])),_0x52e20d[_0x2b87a2(0xb5)](_0x26342a);})[_0x282ec3(0x98)](function(_0x1d6fd1){if(_0x1d6fd1)return _0x1d6fd1?{'count':_0x388167,'rows':_0x1d6fd1}:null;})['then'](respondWithResult(_0x289731,null))['catch'](handleError(_0x289731,null));}; \ No newline at end of file diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js index 681e00d..8124d3d 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js @@ -1 +1 @@ -const a375_0x3092=['init','sequelize','./intSugarcrmConfiguration.attributes','function','exports','SugarcrmConfiguration','./intSugarcrmConfiguration.options'];(function(_0x5984aa,_0x514522){const _0x309209=function(_0x177b2a){while(--_0x177b2a){_0x5984aa['push'](_0x5984aa['shift']());}};_0x309209(++_0x514522);}(a375_0x3092,0x1bd));const a375_0x177b=function(_0x5984aa,_0x514522){_0x5984aa=_0x5984aa-0x1a1;let _0x309209=a375_0x3092[_0x5984aa];return _0x309209;};const a375_0x531c0c=a375_0x177b;'use strict';const {Model}=require(a375_0x531c0c(0x1a5)),{attributes}=require(a375_0x531c0c(0x1a6)),{options}=require(a375_0x531c0c(0x1a3));class SugarcrmConfiguration extends Model{}function init(_0x1d6d8d,_0x353ad0){const _0x31a1a4=a375_0x531c0c,_0xe1d43=options(_0x1d6d8d),_0x1caca2=typeof _0x353ad0===_0x31a1a4(0x1a7)?_0x353ad0(_0xe1d43):_0xe1d43;return SugarcrmConfiguration['init'](attributes,_0x1caca2),SugarcrmConfiguration;}module[a375_0x531c0c(0x1a1)][a375_0x531c0c(0x1a2)]=SugarcrmConfiguration,module[a375_0x531c0c(0x1a1)][a375_0x531c0c(0x1a4)]=init; \ No newline at end of file +const a375_0x8650=['exports','function','init','./intSugarcrmConfiguration.options','./intSugarcrmConfiguration.attributes'];(function(_0x12c53b,_0x590cb0){const _0x865020=function(_0x2e6bc8){while(--_0x2e6bc8){_0x12c53b['push'](_0x12c53b['shift']());}};_0x865020(++_0x590cb0);}(a375_0x8650,0x10a));const a375_0x2e6b=function(_0x12c53b,_0x590cb0){_0x12c53b=_0x12c53b-0xb6;let _0x865020=a375_0x8650[_0x12c53b];return _0x865020;};const a375_0x295ff2=a375_0x2e6b;'use strict';const {Model}=require('sequelize'),{attributes}=require(a375_0x295ff2(0xb9)),{options}=require(a375_0x295ff2(0xb8));class SugarcrmConfiguration extends Model{}function init(_0x21de4e,_0xd36888){const _0x50507d=a375_0x295ff2,_0x527fae=options(_0x21de4e),_0x26dd8a=typeof _0xd36888===_0x50507d(0xb6)?_0xd36888(_0x527fae):_0x527fae;return SugarcrmConfiguration[_0x50507d(0xb7)](attributes,_0x26dd8a),SugarcrmConfiguration;}module[a375_0x295ff2(0xba)]['SugarcrmConfiguration']=SugarcrmConfiguration,module[a375_0x295ff2(0xba)][a375_0x295ff2(0xb7)]=init; \ No newline at end of file diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.options.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.options.js index a4f8bcd..624015d 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.options.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.options.js @@ -1 +1 @@ -var a376_0xf7f9=['options','exports','int_sugarcrm_configurations'];(function(_0x28bbec,_0x536f38){var _0xf7f9bc=function(_0x31206f){while(--_0x31206f){_0x28bbec['push'](_0x28bbec['shift']());}};_0xf7f9bc(++_0x536f38);}(a376_0xf7f9,0x151));var a376_0x3120=function(_0x28bbec,_0x536f38){_0x28bbec=_0x28bbec-0xc1;var _0xf7f9bc=a376_0xf7f9[_0x28bbec];return _0xf7f9bc;};var a376_0x1bc574=a376_0x3120;function options(_0x92f61){var _0x22a773=a376_0x3120;return{'sequelize':_0x92f61,'tableName':_0x22a773(0xc2),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a376_0x1bc574(0xc1)][a376_0x1bc574(0xc3)]=options; \ No newline at end of file +var a376_0x1ca8=['int_sugarcrm_configurations','exports'];(function(_0x5bef68,_0x5ee024){var _0x1ca8cb=function(_0x532e95){while(--_0x532e95){_0x5bef68['push'](_0x5bef68['shift']());}};_0x1ca8cb(++_0x5ee024);}(a376_0x1ca8,0x64));var a376_0x532e=function(_0x5bef68,_0x5ee024){_0x5bef68=_0x5bef68-0x12f;var _0x1ca8cb=a376_0x1ca8[_0x5bef68];return _0x1ca8cb;};var a376_0x1a8855=a376_0x532e;function options(_0x598448){var _0x237012=a376_0x532e;return{'sequelize':_0x598448,'tableName':_0x237012(0x12f),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a376_0x1a8855(0x130)]['options']=options; \ No newline at end of file diff --git a/server/api/intSugarcrmField/index.js b/server/api/intSugarcrmField/index.js index df5770c..9284451 100644 --- a/server/api/intSugarcrmField/index.js +++ b/server/api/intSugarcrmField/index.js @@ -1 +1 @@ -const a377_0x4f2d=['get','isAuthenticated','show','put','Router','express','/:id','create','./intSugarcrmField.controller','exports','index','delete','../../components/auth/service'];(function(_0x5ec54c,_0x5810f5){const _0x4f2ded=function(_0x48fac3){while(--_0x48fac3){_0x5ec54c['push'](_0x5ec54c['shift']());}};_0x4f2ded(++_0x5810f5);}(a377_0x4f2d,0xc7));const a377_0x48fa=function(_0x5ec54c,_0x5810f5){_0x5ec54c=_0x5ec54c-0x1ce;let _0x4f2ded=a377_0x4f2d[_0x5ec54c];return _0x4f2ded;};const a377_0x2c6111=a377_0x48fa;'use strict';const express=require(a377_0x2c6111(0x1cf)),router=express[a377_0x2c6111(0x1ce)](),auth=require(a377_0x2c6111(0x1d6)),controller=require(a377_0x2c6111(0x1d2));router[a377_0x2c6111(0x1d7)]('/',auth[a377_0x2c6111(0x1d8)](),controller[a377_0x2c6111(0x1d4)]),router[a377_0x2c6111(0x1d7)](a377_0x2c6111(0x1d0),auth['isAuthenticated'](),controller[a377_0x2c6111(0x1d9)]),router['post']('/',auth[a377_0x2c6111(0x1d8)](),controller[a377_0x2c6111(0x1d1)]),router[a377_0x2c6111(0x1da)](a377_0x2c6111(0x1d0),auth[a377_0x2c6111(0x1d8)](),controller['update']),router[a377_0x2c6111(0x1d5)](a377_0x2c6111(0x1d0),auth[a377_0x2c6111(0x1d8)](),controller['destroy']),module[a377_0x2c6111(0x1d3)]=router; \ No newline at end of file +const a377_0x1dbe=['delete','index','/:id','isAuthenticated','post','../../components/auth/service','Router','./intSugarcrmField.controller','exports','get','show','create'];(function(_0x1ed543,_0x5436a1){const _0x1dbe6a=function(_0x5149c7){while(--_0x5149c7){_0x1ed543['push'](_0x1ed543['shift']());}};_0x1dbe6a(++_0x5436a1);}(a377_0x1dbe,0x1f0));const a377_0x5149=function(_0x1ed543,_0x5436a1){_0x1ed543=_0x1ed543-0xe0;let _0x1dbe6a=a377_0x1dbe[_0x1ed543];return _0x1dbe6a;};const a377_0x1be247=a377_0x5149;'use strict';const express=require('express'),router=express[a377_0x1be247(0xe2)](),auth=require(a377_0x1be247(0xe1)),controller=require(a377_0x1be247(0xe3));router[a377_0x1be247(0xe5)]('/',auth[a377_0x1be247(0xeb)](),controller[a377_0x1be247(0xe9)]),router[a377_0x1be247(0xe5)](a377_0x1be247(0xea),auth[a377_0x1be247(0xeb)](),controller[a377_0x1be247(0xe6)]),router[a377_0x1be247(0xe0)]('/',auth[a377_0x1be247(0xeb)](),controller[a377_0x1be247(0xe7)]),router['put']('/:id',auth[a377_0x1be247(0xeb)](),controller['update']),router[a377_0x1be247(0xe8)]('/:id',auth[a377_0x1be247(0xeb)](),controller['destroy']),module[a377_0x1be247(0xe4)]=router; \ No newline at end of file diff --git a/server/api/intSugarcrmField/intSugarcrmField.attributes.js b/server/api/intSugarcrmField/intSugarcrmField.attributes.js index 0900c44..3f2df06 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.attributes.js +++ b/server/api/intSugarcrmField/intSugarcrmField.attributes.js @@ -1 +1 @@ -const a378_0x518e=['keyValue','STRING','BOOLEAN','string','attributes','ENUM','sequelize','customVariable','exports','variable'];(function(_0x17d8ea,_0x301d2d){const _0x518ed5=function(_0xe1ef7){while(--_0xe1ef7){_0x17d8ea['push'](_0x17d8ea['shift']());}};_0x518ed5(++_0x301d2d);}(a378_0x518e,0xdf));const a378_0xe1ef=function(_0x17d8ea,_0x301d2d){_0x17d8ea=_0x17d8ea-0xab;let _0x518ed5=a378_0x518e[_0x17d8ea];return _0x518ed5;};const a378_0xa23437=a378_0xe1ef;'use strict';const {DataTypes}=require(a378_0xa23437(0xae)),attributes={'type':{'type':DataTypes[a378_0xa23437(0xad)](a378_0xa23437(0xab),a378_0xa23437(0xb1),a378_0xa23437(0xaf),a378_0xa23437(0xb2)),'defaultValue':a378_0xa23437(0xab)},'content':{'type':DataTypes['STRING']},'key':{'type':DataTypes[a378_0xa23437(0xb3)]},'keyType':{'type':DataTypes['ENUM'](a378_0xa23437(0xab),a378_0xa23437(0xb1),a378_0xa23437(0xaf))},'keyContent':{'type':DataTypes[a378_0xa23437(0xb3)]},'idField':{'type':DataTypes[a378_0xa23437(0xb3)]},'nameField':{'type':DataTypes[a378_0xa23437(0xb3)]},'customField':{'type':DataTypes[a378_0xa23437(0xb4)],'defaultValue':!![]},'variableName':{'type':DataTypes[a378_0xa23437(0xb3)]}};module[a378_0xa23437(0xb0)][a378_0xa23437(0xac)]=attributes; \ No newline at end of file +const a378_0x2ed5=['keyValue','STRING','customVariable','sequelize','string','ENUM','exports'];(function(_0x61560b,_0x6d3f2d){const _0x2ed507=function(_0x4f355d){while(--_0x4f355d){_0x61560b['push'](_0x61560b['shift']());}};_0x2ed507(++_0x6d3f2d);}(a378_0x2ed5,0x18e));const a378_0x4f35=function(_0x61560b,_0x6d3f2d){_0x61560b=_0x61560b-0xb4;let _0x2ed507=a378_0x2ed5[_0x61560b];return _0x2ed507;};const a378_0x153baf=a378_0x4f35;'use strict';const {DataTypes}=require(a378_0x153baf(0xb8)),attributes={'type':{'type':DataTypes[a378_0x153baf(0xba)](a378_0x153baf(0xb9),'variable',a378_0x153baf(0xb7),a378_0x153baf(0xb5)),'defaultValue':a378_0x153baf(0xb9)},'content':{'type':DataTypes[a378_0x153baf(0xb6)]},'key':{'type':DataTypes[a378_0x153baf(0xb6)]},'keyType':{'type':DataTypes[a378_0x153baf(0xba)](a378_0x153baf(0xb9),'variable',a378_0x153baf(0xb7))},'keyContent':{'type':DataTypes[a378_0x153baf(0xb6)]},'idField':{'type':DataTypes[a378_0x153baf(0xb6)]},'nameField':{'type':DataTypes[a378_0x153baf(0xb6)]},'customField':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':DataTypes[a378_0x153baf(0xb6)]}};module[a378_0x153baf(0xb4)]['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 3f3e2cf..c8ee83b 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.controller.js +++ b/server/api/intSugarcrmField/intSugarcrmField.controller.js @@ -1 +1 @@ -const a379_0x9db4=['error','name','json','filters','fieldName','body','undefined','lodash','filter','where','options','type','intersection','update','length','send','api','index','sequelize','findOne','key','query','limit','rawAttributes','like','attributes','sendStatus','rows','map','create','offset','count','VIRTUAL','stack','../../config/logger','model','SugarcrmField','then','fields','include','includeAll','sort','merge','status','catch','destroy','findAll','keys'];(function(_0x5c7d2c,_0x258fb7){const _0x9db4f2=function(_0x1eeecd){while(--_0x1eeecd){_0x5c7d2c['push'](_0x5c7d2c['shift']());}};_0x9db4f2(++_0x258fb7);}(a379_0x9db4,0x72));const a379_0x1eee=function(_0x5c7d2c,_0x258fb7){_0x5c7d2c=_0x5c7d2c-0xef;let _0x9db4f2=a379_0x9db4[_0x5c7d2c];return _0x9db4f2;};const a379_0x1bf918=a379_0x1eee;'use strict';const _=require(a379_0x1bf918(0x114)),qs=require('../../components/parsers/qs'),logger=require(a379_0x1bf918(0xff))(a379_0x1bf918(0x11d)),{db}=require('../../mysqldb'),{Op}=require(a379_0x1bf918(0xef));function respondWithResult(_0x3cef07,_0x20c8e6){return _0x20c8e6=_0x20c8e6||0xc8,function(_0xf57eab){const _0x18608e=a379_0x1eee;if(_0xf57eab)return _0x3cef07[_0x18608e(0x108)](_0x20c8e6)[_0x18608e(0x10f)](_0xf57eab);};}function respondWithFilteredResult(_0x4d9c29,_0x1e6a4c){return function(_0x2f18a7){const _0x1897af=a379_0x1eee;if(_0x2f18a7){const _0x58d778=_0x2f18a7[_0x1897af(0xfc)],_0x49c2d6=_0x1e6a4c['offset'];let _0x18712c=_0x1e6a4c['offset']+_0x1e6a4c['limit'],_0x5d7523;return _0x18712c>=_0x58d778?(_0x18712c=_0x58d778,_0x5d7523=0xc8):_0x5d7523=0xce,_0x4d9c29[_0x1897af(0x108)](_0x5d7523),_0x4d9c29['set']('Content-Range',_0x49c2d6+'-'+_0x18712c+'/'+_0x58d778)[_0x1897af(0x10f)](_0x2f18a7);}return null;};}function saveUpdates(_0x552fdc){return function(_0x303abc){const _0x24dfdc=a379_0x1eee;if(_0x303abc)return _0x303abc[_0x24dfdc(0x11a)](_0x552fdc)['then'](function(_0x4ebdd8){return _0x4ebdd8;});return null;};}function removeEntity(_0x3c6a51){return function(_0x50156c){const _0x5b25db=a379_0x1eee;if(_0x50156c)return _0x50156c['destroy']()[_0x5b25db(0x102)](function(){_0x3c6a51['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x30b716){return function(_0x3b66fb){const _0x350086=a379_0x1eee;return!_0x3b66fb&&_0x30b716[_0x350086(0xf7)](0x194),_0x3b66fb;};}function handleError(_0xaf3cf5,_0x1ab070){return _0x1ab070=_0x1ab070||0x1f4,function(_0x1ac970){const _0xa905de=a379_0x1eee;logger[_0xa905de(0x10d)](_0x1ac970[_0xa905de(0xfe)]),_0x1ac970[_0xa905de(0x10e)]&&delete _0x1ac970['name'],_0xaf3cf5[_0xa905de(0x108)](_0x1ab070)[_0xa905de(0x11c)](_0x1ac970);};}exports[a379_0x1bf918(0x11e)]=function(_0x82582d,_0x43a61d){const _0x2a4bb1=a379_0x1bf918;let _0x138e7d={};const _0x22749a={},_0x366a34={'count':0x0,'rows':[]},_0x407fcc=_[_0x2a4bb1(0xf9)](db['SugarcrmField'][_0x2a4bb1(0xf4)],function(_0x380195){const _0x5db34c=_0x2a4bb1;return{'name':_0x380195[_0x5db34c(0x111)],'type':_0x380195[_0x5db34c(0x118)][_0x5db34c(0xf1)]};});_0x22749a['model']=_[_0x2a4bb1(0xf9)](_0x407fcc,_0x2a4bb1(0x10e)),_0x22749a[_0x2a4bb1(0xf2)]=_[_0x2a4bb1(0x10c)](_0x82582d[_0x2a4bb1(0xf2)]),_0x22749a[_0x2a4bb1(0x110)]=_['intersection'](_0x22749a[_0x2a4bb1(0x100)],_0x22749a[_0x2a4bb1(0xf2)]),_0x138e7d[_0x2a4bb1(0xf6)]=_[_0x2a4bb1(0x119)](_0x22749a[_0x2a4bb1(0x100)],qs[_0x2a4bb1(0x103)](_0x82582d['query'][_0x2a4bb1(0x103)])),_0x138e7d[_0x2a4bb1(0xf6)]=_0x138e7d[_0x2a4bb1(0xf6)][_0x2a4bb1(0x11b)]?_0x138e7d['attributes']:_0x22749a[_0x2a4bb1(0x100)];typeof _0x82582d[_0x2a4bb1(0xf2)]['nolimit']===_0x2a4bb1(0x113)&&(_0x138e7d[_0x2a4bb1(0xf3)]=qs[_0x2a4bb1(0xf3)](_0x82582d['query']['limit']),_0x138e7d[_0x2a4bb1(0xfb)]=qs['offset'](_0x82582d[_0x2a4bb1(0xf2)][_0x2a4bb1(0xfb)]));_0x138e7d['order']=qs[_0x2a4bb1(0x106)](_0x82582d[_0x2a4bb1(0xf2)]['sort']),_0x138e7d['where']=qs['filters'](_['pick'](_0x82582d['query'],_0x22749a[_0x2a4bb1(0x110)]),_0x407fcc);_0x82582d[_0x2a4bb1(0xf2)][_0x2a4bb1(0x115)]&&(_0x138e7d[_0x2a4bb1(0x116)]=_[_0x2a4bb1(0x107)](_0x138e7d[_0x2a4bb1(0x116)],{[Op['or']]:_['map'](_0x407fcc,function(_0x1dd3d6){const _0x11b801=_0x2a4bb1;if(_0x1dd3d6[_0x11b801(0x118)]!==_0x11b801(0xfd)){const _0x242e71={};return _0x242e71[_0x1dd3d6[_0x11b801(0x10e)]]={[Op[_0x11b801(0xf5)]]:'%'+_0x82582d[_0x11b801(0xf2)][_0x11b801(0x115)]+'%'},_0x242e71;}})}));_0x138e7d=_[_0x2a4bb1(0x107)]({},_0x138e7d,_0x82582d[_0x2a4bb1(0x117)]);const _0x2cb0ae={'where':_0x138e7d['where']};return db['SugarcrmField'][_0x2a4bb1(0xfc)](_0x2cb0ae)['then'](function(_0x578ede){const _0x23b296=_0x2a4bb1;return _0x366a34[_0x23b296(0xfc)]=_0x578ede,_0x82582d['query'][_0x23b296(0x105)]&&(_0x138e7d['include']=[{'all':!![]}]),db[_0x23b296(0x101)][_0x23b296(0x10b)](_0x138e7d);})[_0x2a4bb1(0x102)](function(_0x1d5992){const _0x25858c=_0x2a4bb1;return _0x366a34[_0x25858c(0xf8)]=_0x1d5992,_0x366a34;})['then'](respondWithFilteredResult(_0x43a61d,_0x138e7d))[_0x2a4bb1(0x109)](handleError(_0x43a61d,null));},exports['show']=function(_0x485666,_0x12a537){const _0x39f59d=a379_0x1bf918;let _0x181be5={'raw':!![],'where':{'id':_0x485666['params']['id']}};const _0x50bb9a={};return _0x50bb9a[_0x39f59d(0x100)]=_['keys'](db[_0x39f59d(0x101)][_0x39f59d(0xf4)]),_0x50bb9a[_0x39f59d(0xf2)]=_[_0x39f59d(0x10c)](_0x485666[_0x39f59d(0xf2)]),_0x50bb9a[_0x39f59d(0x110)]=_['intersection'](_0x50bb9a[_0x39f59d(0x100)],_0x50bb9a['query']),_0x181be5[_0x39f59d(0xf6)]=_['intersection'](_0x50bb9a[_0x39f59d(0x100)],qs['fields'](_0x485666[_0x39f59d(0xf2)][_0x39f59d(0x103)])),_0x181be5[_0x39f59d(0xf6)]=_0x181be5[_0x39f59d(0xf6)]['length']?_0x181be5[_0x39f59d(0xf6)]:_0x50bb9a[_0x39f59d(0x100)],_0x485666['query'][_0x39f59d(0x105)]&&(_0x181be5[_0x39f59d(0x104)]=[{'all':!![]}]),_0x181be5=_[_0x39f59d(0x107)]({},_0x181be5,_0x485666[_0x39f59d(0x117)]),db['SugarcrmField'][_0x39f59d(0xf0)](_0x181be5)[_0x39f59d(0x102)](handleEntityNotFound(_0x12a537,null))['then'](respondWithResult(_0x12a537,null))[_0x39f59d(0x109)](handleError(_0x12a537,null));},exports[a379_0x1bf918(0xfa)]=function(_0x225cdf,_0x22ae80){const _0x1760c0=a379_0x1bf918;return db[_0x1760c0(0x101)]['create'](_0x225cdf['body'],{})[_0x1760c0(0x102)](respondWithResult(_0x22ae80,0xc9))[_0x1760c0(0x109)](handleError(_0x22ae80,null));},exports[a379_0x1bf918(0x11a)]=function(_0x47b8dd,_0x40d2df){const _0x21d717=a379_0x1bf918;return _0x47b8dd['body']['id']&&delete _0x47b8dd[_0x21d717(0x112)]['id'],db[_0x21d717(0x101)]['findOne']({'where':{'id':_0x47b8dd['params']['id']}})['then'](handleEntityNotFound(_0x40d2df,null))[_0x21d717(0x102)](saveUpdates(_0x47b8dd['body'],null))[_0x21d717(0x102)](respondWithResult(_0x40d2df,null))[_0x21d717(0x109)](handleError(_0x40d2df,null));},exports[a379_0x1bf918(0x10a)]=function(_0x11d598,_0x5f273d){const _0x5bf939=a379_0x1bf918;return db[_0x5bf939(0x101)][_0x5bf939(0xf0)]({'where':{'id':_0x11d598['params']['id']}})[_0x5bf939(0x102)](handleEntityNotFound(_0x5f273d,null))[_0x5bf939(0x102)](removeEntity(_0x5f273d,null))[_0x5bf939(0x109)](handleError(_0x5f273d,null));}; \ No newline at end of file +const a379_0x17ba=['rawAttributes','rows','body','filter','model','sort','nolimit','send','SugarcrmField','count','options','then','error','map','findAll','lodash','type','update','query','destroy','show','findOne','status','attributes','params','length','undefined','end','set','order','stack','fields','filters','keys','includeAll','create','json','where','name','../../components/parsers/qs','sequelize','merge','include','index','catch','limit','VIRTUAL','intersection','offset','pick','sendStatus'];(function(_0x307cde,_0x49d711){const _0x17ba6a=function(_0x52b016){while(--_0x52b016){_0x307cde['push'](_0x307cde['shift']());}};_0x17ba6a(++_0x49d711);}(a379_0x17ba,0xb4));const a379_0x52b0=function(_0x307cde,_0x49d711){_0x307cde=_0x307cde-0x1b7;let _0x17ba6a=a379_0x17ba[_0x307cde];return _0x17ba6a;};const a379_0x11fc7a=a379_0x52b0;'use strict';const _=require(a379_0x11fc7a(0x1de)),qs=require(a379_0x11fc7a(0x1c3)),logger=require('../../config/logger')('api'),{db}=require('../../mysqldb'),{Op}=require(a379_0x11fc7a(0x1c4));function respondWithResult(_0x21a79b,_0x33607a){return _0x33607a=_0x33607a||0xc8,function(_0x1eea9b){const _0x196239=a379_0x52b0;if(_0x1eea9b)return _0x21a79b[_0x196239(0x1e5)](_0x33607a)[_0x196239(0x1c0)](_0x1eea9b);};}function respondWithFilteredResult(_0x5c27a2,_0x193f71){return function(_0x117e0f){const _0x5a0f5a=a379_0x52b0;if(_0x117e0f){const _0x4a99e3=_0x117e0f[_0x5a0f5a(0x1d8)],_0x37c649=_0x193f71[_0x5a0f5a(0x1cc)];let _0x3bb12b=_0x193f71[_0x5a0f5a(0x1cc)]+_0x193f71['limit'],_0xae8685;return _0x3bb12b>=_0x4a99e3?(_0x3bb12b=_0x4a99e3,_0xae8685=0xc8):_0xae8685=0xce,_0x5c27a2[_0x5a0f5a(0x1e5)](_0xae8685),_0x5c27a2[_0x5a0f5a(0x1b8)]('Content-Range',_0x37c649+'-'+_0x3bb12b+'/'+_0x4a99e3)[_0x5a0f5a(0x1c0)](_0x117e0f);}return null;};}function saveUpdates(_0xb0326b){return function(_0x2008a4){const _0x3b95a5=a379_0x52b0;if(_0x2008a4)return _0x2008a4[_0x3b95a5(0x1e0)](_0xb0326b)[_0x3b95a5(0x1da)](function(_0x563ca8){return _0x563ca8;});return null;};}function removeEntity(_0x508c01){return function(_0x5465f7){const _0x5e73e0=a379_0x52b0;if(_0x5465f7)return _0x5465f7['destroy']()[_0x5e73e0(0x1da)](function(){const _0x4bcc97=_0x5e73e0;_0x508c01[_0x4bcc97(0x1e5)](0xcc)[_0x4bcc97(0x1b7)]();});};}function handleEntityNotFound(_0x14eaa5){return function(_0x1dc2a2){const _0x2974b0=a379_0x52b0;return!_0x1dc2a2&&_0x14eaa5[_0x2974b0(0x1ce)](0x194),_0x1dc2a2;};}function handleError(_0x2d296f,_0x548626){return _0x548626=_0x548626||0x1f4,function(_0x115428){const _0x38c9e5=a379_0x52b0;logger[_0x38c9e5(0x1db)](_0x115428[_0x38c9e5(0x1ba)]),_0x115428[_0x38c9e5(0x1c2)]&&delete _0x115428[_0x38c9e5(0x1c2)],_0x2d296f[_0x38c9e5(0x1e5)](_0x548626)[_0x38c9e5(0x1d6)](_0x115428);};}exports[a379_0x11fc7a(0x1c7)]=function(_0x3e5050,_0x2c86c0){const _0x4eec0e=a379_0x11fc7a;let _0x22dfae={};const _0x20eb37={},_0x31bbaa={'count':0x0,'rows':[]},_0x12a5f8=_[_0x4eec0e(0x1dc)](db[_0x4eec0e(0x1d7)][_0x4eec0e(0x1cf)],function(_0x37ac95){return{'name':_0x37ac95['fieldName'],'type':_0x37ac95['type']['key']};});_0x20eb37[_0x4eec0e(0x1d3)]=_[_0x4eec0e(0x1dc)](_0x12a5f8,_0x4eec0e(0x1c2)),_0x20eb37[_0x4eec0e(0x1e1)]=_[_0x4eec0e(0x1bd)](_0x3e5050[_0x4eec0e(0x1e1)]),_0x20eb37[_0x4eec0e(0x1bc)]=_[_0x4eec0e(0x1cb)](_0x20eb37[_0x4eec0e(0x1d3)],_0x20eb37[_0x4eec0e(0x1e1)]),_0x22dfae['attributes']=_['intersection'](_0x20eb37[_0x4eec0e(0x1d3)],qs['fields'](_0x3e5050['query']['fields'])),_0x22dfae[_0x4eec0e(0x1e6)]=_0x22dfae[_0x4eec0e(0x1e6)][_0x4eec0e(0x1e8)]?_0x22dfae['attributes']:_0x20eb37[_0x4eec0e(0x1d3)];typeof _0x3e5050[_0x4eec0e(0x1e1)][_0x4eec0e(0x1d5)]===_0x4eec0e(0x1e9)&&(_0x22dfae['limit']=qs[_0x4eec0e(0x1c9)](_0x3e5050[_0x4eec0e(0x1e1)]['limit']),_0x22dfae[_0x4eec0e(0x1cc)]=qs[_0x4eec0e(0x1cc)](_0x3e5050[_0x4eec0e(0x1e1)][_0x4eec0e(0x1cc)]));_0x22dfae[_0x4eec0e(0x1b9)]=qs[_0x4eec0e(0x1d4)](_0x3e5050[_0x4eec0e(0x1e1)][_0x4eec0e(0x1d4)]),_0x22dfae[_0x4eec0e(0x1c1)]=qs[_0x4eec0e(0x1bc)](_[_0x4eec0e(0x1cd)](_0x3e5050[_0x4eec0e(0x1e1)],_0x20eb37['filters']),_0x12a5f8);_0x3e5050['query'][_0x4eec0e(0x1d2)]&&(_0x22dfae[_0x4eec0e(0x1c1)]=_[_0x4eec0e(0x1c5)](_0x22dfae[_0x4eec0e(0x1c1)],{[Op['or']]:_['map'](_0x12a5f8,function(_0x388f06){const _0x598339=_0x4eec0e;if(_0x388f06[_0x598339(0x1df)]!==_0x598339(0x1ca)){const _0x23092e={};return _0x23092e[_0x388f06[_0x598339(0x1c2)]]={[Op['like']]:'%'+_0x3e5050['query'][_0x598339(0x1d2)]+'%'},_0x23092e;}})}));_0x22dfae=_[_0x4eec0e(0x1c5)]({},_0x22dfae,_0x3e5050[_0x4eec0e(0x1d9)]);const _0x1890d3={'where':_0x22dfae[_0x4eec0e(0x1c1)]};return db[_0x4eec0e(0x1d7)][_0x4eec0e(0x1d8)](_0x1890d3)[_0x4eec0e(0x1da)](function(_0x5bf849){const _0x369ad5=_0x4eec0e;return _0x31bbaa[_0x369ad5(0x1d8)]=_0x5bf849,_0x3e5050['query']['includeAll']&&(_0x22dfae[_0x369ad5(0x1c6)]=[{'all':!![]}]),db[_0x369ad5(0x1d7)][_0x369ad5(0x1dd)](_0x22dfae);})[_0x4eec0e(0x1da)](function(_0x340ffd){const _0x7b841c=_0x4eec0e;return _0x31bbaa[_0x7b841c(0x1d0)]=_0x340ffd,_0x31bbaa;})[_0x4eec0e(0x1da)](respondWithFilteredResult(_0x2c86c0,_0x22dfae))['catch'](handleError(_0x2c86c0,null));},exports[a379_0x11fc7a(0x1e3)]=function(_0x5bd3fe,_0x455ed7){const _0x5b92d3=a379_0x11fc7a;let _0x213dd9={'raw':!![],'where':{'id':_0x5bd3fe[_0x5b92d3(0x1e7)]['id']}};const _0x3f9d5f={};return _0x3f9d5f[_0x5b92d3(0x1d3)]=_[_0x5b92d3(0x1bd)](db[_0x5b92d3(0x1d7)][_0x5b92d3(0x1cf)]),_0x3f9d5f[_0x5b92d3(0x1e1)]=_[_0x5b92d3(0x1bd)](_0x5bd3fe[_0x5b92d3(0x1e1)]),_0x3f9d5f['filters']=_[_0x5b92d3(0x1cb)](_0x3f9d5f[_0x5b92d3(0x1d3)],_0x3f9d5f[_0x5b92d3(0x1e1)]),_0x213dd9[_0x5b92d3(0x1e6)]=_[_0x5b92d3(0x1cb)](_0x3f9d5f[_0x5b92d3(0x1d3)],qs['fields'](_0x5bd3fe[_0x5b92d3(0x1e1)][_0x5b92d3(0x1bb)])),_0x213dd9[_0x5b92d3(0x1e6)]=_0x213dd9[_0x5b92d3(0x1e6)]['length']?_0x213dd9['attributes']:_0x3f9d5f[_0x5b92d3(0x1d3)],_0x5bd3fe[_0x5b92d3(0x1e1)][_0x5b92d3(0x1be)]&&(_0x213dd9[_0x5b92d3(0x1c6)]=[{'all':!![]}]),_0x213dd9=_[_0x5b92d3(0x1c5)]({},_0x213dd9,_0x5bd3fe[_0x5b92d3(0x1d9)]),db[_0x5b92d3(0x1d7)][_0x5b92d3(0x1e4)](_0x213dd9)['then'](handleEntityNotFound(_0x455ed7,null))['then'](respondWithResult(_0x455ed7,null))[_0x5b92d3(0x1c8)](handleError(_0x455ed7,null));},exports['create']=function(_0x5d5be1,_0x50fbe0){const _0x319723=a379_0x11fc7a;return db[_0x319723(0x1d7)][_0x319723(0x1bf)](_0x5d5be1[_0x319723(0x1d1)],{})['then'](respondWithResult(_0x50fbe0,0xc9))[_0x319723(0x1c8)](handleError(_0x50fbe0,null));},exports['update']=function(_0x30ff9b,_0x580d55){const _0x2a1ee5=a379_0x11fc7a;return _0x30ff9b[_0x2a1ee5(0x1d1)]['id']&&delete _0x30ff9b['body']['id'],db['SugarcrmField'][_0x2a1ee5(0x1e4)]({'where':{'id':_0x30ff9b['params']['id']}})[_0x2a1ee5(0x1da)](handleEntityNotFound(_0x580d55,null))[_0x2a1ee5(0x1da)](saveUpdates(_0x30ff9b[_0x2a1ee5(0x1d1)],null))[_0x2a1ee5(0x1da)](respondWithResult(_0x580d55,null))['catch'](handleError(_0x580d55,null));},exports[a379_0x11fc7a(0x1e2)]=function(_0x32807f,_0x11a0eb){const _0x53f1e=a379_0x11fc7a;return db[_0x53f1e(0x1d7)][_0x53f1e(0x1e4)]({'where':{'id':_0x32807f[_0x53f1e(0x1e7)]['id']}})[_0x53f1e(0x1da)](handleEntityNotFound(_0x11a0eb,null))[_0x53f1e(0x1da)](removeEntity(_0x11a0eb,null))[_0x53f1e(0x1c8)](handleError(_0x11a0eb,null));}; \ No newline at end of file diff --git a/server/api/intSugarcrmField/intSugarcrmField.model.js b/server/api/intSugarcrmField/intSugarcrmField.model.js index d5cf112..9a5e32b 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.model.js +++ b/server/api/intSugarcrmField/intSugarcrmField.model.js @@ -1 +1 @@ -const a380_0x441a=['./intSugarcrmField.attributes','sequelize','SugarcrmField','init','function','exports'];(function(_0x2e672c,_0x7f3279){const _0x441a02=function(_0x109ad8){while(--_0x109ad8){_0x2e672c['push'](_0x2e672c['shift']());}};_0x441a02(++_0x7f3279);}(a380_0x441a,0x86));const a380_0x109a=function(_0x2e672c,_0x7f3279){_0x2e672c=_0x2e672c-0x8c;let _0x441a02=a380_0x441a[_0x2e672c];return _0x441a02;};const a380_0x4d770c=a380_0x109a;'use strict';const {Model}=require(a380_0x4d770c(0x91)),{attributes}=require(a380_0x4d770c(0x90)),{options}=require('./intSugarcrmField.options');class SugarcrmField extends Model{}function init(_0x31ac8c,_0x169719){const _0x59a7f9=a380_0x4d770c,_0x20abe0=options(_0x31ac8c),_0x4a630b=typeof _0x169719===_0x59a7f9(0x8e)?_0x169719(_0x20abe0):_0x20abe0;return SugarcrmField[_0x59a7f9(0x8d)](attributes,_0x4a630b),SugarcrmField;}module[a380_0x4d770c(0x8f)][a380_0x4d770c(0x8c)]=SugarcrmField,module[a380_0x4d770c(0x8f)][a380_0x4d770c(0x8d)]=init; \ No newline at end of file +const a380_0x5959=['exports','sequelize','./intSugarcrmField.attributes','init','./intSugarcrmField.options','SugarcrmField'];(function(_0x1a9b63,_0x36a07a){const _0x595944=function(_0x453771){while(--_0x453771){_0x1a9b63['push'](_0x1a9b63['shift']());}};_0x595944(++_0x36a07a);}(a380_0x5959,0x19f));const a380_0x4537=function(_0x1a9b63,_0x36a07a){_0x1a9b63=_0x1a9b63-0xc5;let _0x595944=a380_0x5959[_0x1a9b63];return _0x595944;};const a380_0x592570=a380_0x4537;'use strict';const {Model}=require(a380_0x592570(0xc5)),{attributes}=require(a380_0x592570(0xc6)),{options}=require(a380_0x592570(0xc8));class SugarcrmField extends Model{}function init(_0x312855,_0x20b74f){const _0x2b2148=a380_0x592570,_0x1de98b=options(_0x312855),_0x203752=typeof _0x20b74f==='function'?_0x20b74f(_0x1de98b):_0x1de98b;return SugarcrmField[_0x2b2148(0xc7)](attributes,_0x203752),SugarcrmField;}module[a380_0x592570(0xca)][a380_0x592570(0xc9)]=SugarcrmField,module[a380_0x592570(0xca)][a380_0x592570(0xc7)]=init; \ No newline at end of file diff --git a/server/api/intSugarcrmField/intSugarcrmField.options.js b/server/api/intSugarcrmField/intSugarcrmField.options.js index ebd48df..d625a4d 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.options.js +++ b/server/api/intSugarcrmField/intSugarcrmField.options.js @@ -1 +1 @@ -var a381_0x3f96=['int_sugarcrm_fields','idField','FieldId','exports','options'];(function(_0x500c69,_0x2e4a63){var _0x3f9643=function(_0x6fb594){while(--_0x6fb594){_0x500c69['push'](_0x500c69['shift']());}};_0x3f9643(++_0x2e4a63);}(a381_0x3f96,0x16c));var a381_0x6fb5=function(_0x500c69,_0x2e4a63){_0x500c69=_0x500c69-0x118;var _0x3f9643=a381_0x3f96[_0x500c69];return _0x3f9643;};var a381_0x30789c=a381_0x6fb5;function options(_0x5f2f4d){var _0x1b8700=a381_0x6fb5;return{'sequelize':_0x5f2f4d,'tableName':_0x1b8700(0x119),'paranoid':![],'indexes':[{'name':'sugarcrm_unique_index','fields':[_0x1b8700(0x11a),_0x1b8700(0x11b)],'unique':!![]}],'timestamps':!![]};}module[a381_0x30789c(0x11c)][a381_0x30789c(0x118)]=options; \ No newline at end of file +var a381_0xd65f=['exports','FieldId','options','idField'];(function(_0xc6009e,_0x65c09a){var _0xd65fcf=function(_0x100da6){while(--_0x100da6){_0xc6009e['push'](_0xc6009e['shift']());}};_0xd65fcf(++_0x65c09a);}(a381_0xd65f,0x17d));var a381_0x100d=function(_0xc6009e,_0x65c09a){_0xc6009e=_0xc6009e-0x18f;var _0xd65fcf=a381_0xd65f[_0xc6009e];return _0xd65fcf;};var a381_0xa54bc0=a381_0x100d;function options(_0x38067c){var _0x12c169=a381_0x100d;return{'sequelize':_0x38067c,'tableName':'int_sugarcrm_fields','paranoid':![],'indexes':[{'name':'sugarcrm_unique_index','fields':[_0x12c169(0x191),_0x12c169(0x18f)],'unique':!![]}],'timestamps':!![]};}module[a381_0xa54bc0(0x192)][a381_0xa54bc0(0x190)]=options; \ No newline at end of file diff --git a/server/api/intVtigerAccount/index.js b/server/api/intVtigerAccount/index.js index 1aff5ee..89e0f27 100644 --- a/server/api/intVtigerAccount/index.js +++ b/server/api/intVtigerAccount/index.js @@ -1 +1 @@ -const a382_0x3829=['get','post','delete','/:id/configurations','show','express','exports','/:id/fields','create','getConfigurations','put','update','/:id','destroy','../../components/auth/service','addConfiguration','isAuthenticated','./intVtigerAccount.controller'];(function(_0x57ec1b,_0x500e50){const _0x382996=function(_0x5553e9){while(--_0x5553e9){_0x57ec1b['push'](_0x57ec1b['shift']());}};_0x382996(++_0x500e50);}(a382_0x3829,0xd0));const a382_0x5553=function(_0x57ec1b,_0x500e50){_0x57ec1b=_0x57ec1b-0x16c;let _0x382996=a382_0x3829[_0x57ec1b];return _0x382996;};const a382_0x1ba7b0=a382_0x5553;'use strict';const express=require(a382_0x1ba7b0(0x179)),router=express['Router'](),auth=require(a382_0x1ba7b0(0x170)),controller=require(a382_0x1ba7b0(0x173));router[a382_0x1ba7b0(0x174)]('/',auth[a382_0x1ba7b0(0x172)](),controller['index']),router[a382_0x1ba7b0(0x174)](a382_0x1ba7b0(0x16e),auth['isAuthenticated'](),controller[a382_0x1ba7b0(0x178)]),router[a382_0x1ba7b0(0x174)](a382_0x1ba7b0(0x177),auth[a382_0x1ba7b0(0x172)](),controller[a382_0x1ba7b0(0x17d)]),router['get'](a382_0x1ba7b0(0x17b),auth[a382_0x1ba7b0(0x172)](),controller['getFields']),router[a382_0x1ba7b0(0x175)]('/',auth['isAuthenticated'](),controller[a382_0x1ba7b0(0x17c)]),router['post']('/:id/configurations',auth[a382_0x1ba7b0(0x172)](),controller[a382_0x1ba7b0(0x171)]),router[a382_0x1ba7b0(0x16c)](a382_0x1ba7b0(0x16e),auth[a382_0x1ba7b0(0x172)](),controller[a382_0x1ba7b0(0x16d)]),router[a382_0x1ba7b0(0x176)]('/:id',auth[a382_0x1ba7b0(0x172)](),controller[a382_0x1ba7b0(0x16f)]),module[a382_0x1ba7b0(0x17a)]=router; \ No newline at end of file +const a382_0x5f7a=['isAuthenticated','get','show','/:id','/:id/configurations','./intVtigerAccount.controller','put','destroy','update','getFields','../../components/auth/service','getConfigurations','post','express','exports','addConfiguration','index','/:id/fields','create'];(function(_0x3c53c7,_0x5d2a40){const _0x5f7a05=function(_0xd81f4f){while(--_0xd81f4f){_0x3c53c7['push'](_0x3c53c7['shift']());}};_0x5f7a05(++_0x5d2a40);}(a382_0x5f7a,0xa9));const a382_0xd81f=function(_0x3c53c7,_0x5d2a40){_0x3c53c7=_0x3c53c7-0x81;let _0x5f7a05=a382_0x5f7a[_0x3c53c7];return _0x5f7a05;};const a382_0x27e3cf=a382_0xd81f;'use strict';const express=require(a382_0x27e3cf(0x90)),router=express['Router'](),auth=require(a382_0x27e3cf(0x8d)),controller=require(a382_0x27e3cf(0x88));router[a382_0x27e3cf(0x84)]('/',auth[a382_0x27e3cf(0x83)](),controller[a382_0x27e3cf(0x93)]),router[a382_0x27e3cf(0x84)](a382_0x27e3cf(0x86),auth['isAuthenticated'](),controller[a382_0x27e3cf(0x85)]),router[a382_0x27e3cf(0x84)](a382_0x27e3cf(0x87),auth[a382_0x27e3cf(0x83)](),controller[a382_0x27e3cf(0x8e)]),router['get'](a382_0x27e3cf(0x81),auth['isAuthenticated'](),controller[a382_0x27e3cf(0x8c)]),router['post']('/',auth[a382_0x27e3cf(0x83)](),controller[a382_0x27e3cf(0x82)]),router[a382_0x27e3cf(0x8f)](a382_0x27e3cf(0x87),auth['isAuthenticated'](),controller[a382_0x27e3cf(0x92)]),router[a382_0x27e3cf(0x89)](a382_0x27e3cf(0x86),auth[a382_0x27e3cf(0x83)](),controller[a382_0x27e3cf(0x8b)]),router['delete'](a382_0x27e3cf(0x86),auth[a382_0x27e3cf(0x83)](),controller[a382_0x27e3cf(0x8a)]),module[a382_0x27e3cf(0x91)]=router; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.attributes.js b/server/api/intVtigerAccount/intVtigerAccount.attributes.js index 38b7a8f..a1c2ac3 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.attributes.js +++ b/server/api/intVtigerAccount/intVtigerAccount.attributes.js @@ -1 +1 @@ -const a383_0x4d89=['HelpDesk','exports','STRING','sequelize'];(function(_0x5b8cfd,_0x3ba524){const _0x4d89e5=function(_0x12f9dc){while(--_0x12f9dc){_0x5b8cfd['push'](_0x5b8cfd['shift']());}};_0x4d89e5(++_0x3ba524);}(a383_0x4d89,0xf8));const a383_0x12f9=function(_0x5b8cfd,_0x3ba524){_0x5b8cfd=_0x5b8cfd-0x144;let _0x4d89e5=a383_0x4d89[_0x5b8cfd];return _0x4d89e5;};const a383_0xc86154=a383_0x12f9;'use strict';const {DataTypes}=require(a383_0xc86154(0x147)),attributes={'name':{'type':DataTypes[a383_0xc86154(0x146)],'allowNull':![]},'description':{'type':DataTypes['STRING']},'username':{'type':DataTypes['STRING'],'allowNull':![]},'moduleName':{'type':DataTypes[a383_0xc86154(0x146)],'allowNull':![],'defaultValue':a383_0xc86154(0x144)},'remoteUri':{'type':DataTypes[a383_0xc86154(0x146)],'allowNull':![]},'serverUrl':{'type':DataTypes['STRING']},'accessKey':{'type':DataTypes['STRING'],'allowNull':![]}};module[a383_0xc86154(0x145)]['attributes']=attributes; \ No newline at end of file +const a383_0x2f19=['exports','HelpDesk','STRING','attributes','sequelize'];(function(_0x7e7ffc,_0x485e19){const _0x2f19a6=function(_0x4cc0fd){while(--_0x4cc0fd){_0x7e7ffc['push'](_0x7e7ffc['shift']());}};_0x2f19a6(++_0x485e19);}(a383_0x2f19,0xfa));const a383_0x4cc0=function(_0x7e7ffc,_0x485e19){_0x7e7ffc=_0x7e7ffc-0x187;let _0x2f19a6=a383_0x2f19[_0x7e7ffc];return _0x2f19a6;};const a383_0x46eb32=a383_0x4cc0;'use strict';const {DataTypes}=require(a383_0x46eb32(0x18b)),attributes={'name':{'type':DataTypes[a383_0x46eb32(0x189)],'allowNull':![]},'description':{'type':DataTypes['STRING']},'username':{'type':DataTypes[a383_0x46eb32(0x189)],'allowNull':![]},'moduleName':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':a383_0x46eb32(0x188)},'remoteUri':{'type':DataTypes[a383_0x46eb32(0x189)],'allowNull':![]},'serverUrl':{'type':DataTypes['STRING']},'accessKey':{'type':DataTypes[a383_0x46eb32(0x189)],'allowNull':![]}};module[a383_0x46eb32(0x187)][a383_0x46eb32(0x18a)]=attributes; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.controller.js b/server/api/intVtigerAccount/intVtigerAccount.controller.js index 17016de..c465aa7 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.controller.js +++ b/server/api/intVtigerAccount/intVtigerAccount.controller.js @@ -1 +1 @@ -const a384_0x4553=['VIRTUAL','offset','key','create','status','%s/webservice.php','result','undefined','serverUrl','options','cf_','catch','update','AccountId','test','stringify','addConfiguration','send','VtigerConfiguration','findAll','length','filter','getchallenge','description','VtigerAccount','attributes','show','stack','Descriptions','like','limit','rawAttributes','rows','autogenerated','VtigerField','map','count','sort','api','index','sequelize','error','channel','destroy','model','params','json','lastIndexOf','then','include','../../components/parsers/qs','remoteUri','pick','../../components/integrations/configuration','editable','filters','format','query','Wrong\x20credentials','reference','name','Subjects','../../config/logger','value','fields','body','accessKey','sessionName','merge','getConfigurations','findOne','util','owner','login','picklistValues','intersection','end','success','type','getFields,\x20%s,\x20%s,\x20%s','includeAll','remove','nolimit','getSubjects','statusCode','fieldName','sendStatus','moduleName','substring','where','getFields','md5','includes','keys','order'];(function(_0x4d13d,_0x293147){const _0x45538b=function(_0x5ef6fd){while(--_0x5ef6fd){_0x4d13d['push'](_0x4d13d['shift']());}};_0x45538b(++_0x293147);}(a384_0x4553,0xfa));const a384_0x5ef6=function(_0x4d13d,_0x293147){_0x4d13d=_0x4d13d-0xa4;let _0x45538b=a384_0x4553[_0x4d13d];return _0x45538b;};const a384_0x1f549b=a384_0x5ef6;'use strict';const rp=require('request-promise-native'),util=require(a384_0x1f549b(0xaf)),_=require('lodash'),qs=require(a384_0x1f549b(0xf9)),logger=require(a384_0x1f549b(0xa6))(a384_0x1f549b(0xed)),{db}=require('../../mysqldb'),{Op}=require(a384_0x1f549b(0xef)),integrations=require(a384_0x1f549b(0xfc));function respondWithResult(_0x38890b,_0x3a5fe7){return _0x3a5fe7=_0x3a5fe7||0xc8,function(_0x4afb27){const _0x228420=a384_0x5ef6;if(_0x4afb27)return _0x38890b['status'](_0x3a5fe7)[_0x228420(0xf5)](_0x4afb27);};}function respondWithFilteredResult(_0x15cb68,_0x2315bd){return function(_0x3ad00f){const _0x64bbfb=a384_0x5ef6;if(_0x3ad00f){const _0x321f0d=_0x3ad00f[_0x64bbfb(0xeb)],_0x35f0fe=_0x2315bd['offset'];let _0x1391c9=_0x2315bd['offset']+_0x2315bd[_0x64bbfb(0xe5)],_0x7fab9;return _0x1391c9>=_0x321f0d?(_0x1391c9=_0x321f0d,_0x7fab9=0xc8):_0x7fab9=0xce,_0x15cb68['status'](_0x7fab9),_0x15cb68['set']('Content-Range',_0x35f0fe+'-'+_0x1391c9+'/'+_0x321f0d)[_0x64bbfb(0xf5)](_0x3ad00f);}return null;};}function saveUpdates(_0x23a053){return function(_0x6de19f){const _0x227583=a384_0x5ef6;if(_0x6de19f)return _0x6de19f[_0x227583(0xd3)](_0x23a053)[_0x227583(0xf7)](function(_0x5e3092){return _0x5e3092;});return null;};}function removeEntity(_0x9151e5){return function(_0x127be2){const _0x1d1922=a384_0x5ef6;if(_0x127be2)return _0x127be2[_0x1d1922(0xf2)]()['then'](function(){const _0x5ad351=_0x1d1922;_0x9151e5[_0x5ad351(0xcb)](0xcc)[_0x5ad351(0xb4)]();});};}function handleEntityNotFound(_0x2d1000){return function(_0x48b866){const _0x2ee2f4=a384_0x5ef6;return!_0x48b866&&_0x2d1000[_0x2ee2f4(0xbe)](0x194),_0x48b866;};}function handleError(_0x47bbf2,_0x3dcfe4){return _0x3dcfe4=_0x3dcfe4||0x1f4,function(_0x1032b8){const _0x339b19=a384_0x5ef6;logger[_0x339b19(0xf0)](_0x1032b8[_0x339b19(0xe2)]),_0x1032b8[_0x339b19(0xa4)]&&delete _0x1032b8[_0x339b19(0xa4)],_0x47bbf2['status'](_0x3dcfe4)[_0x339b19(0xd8)](_0x1032b8);};}exports[a384_0x1f549b(0xee)]=function(_0x3b1703,_0xd9f2d9){const _0x5a3b47=a384_0x1f549b;let _0x18378e={};const _0x1760b5={},_0x58bf20={'count':0x0,'rows':[]},_0x35e838=_[_0x5a3b47(0xea)](db[_0x5a3b47(0xdf)][_0x5a3b47(0xe6)],function(_0x319d07){const _0x2286d4=_0x5a3b47;return{'name':_0x319d07[_0x2286d4(0xbd)],'type':_0x319d07['type'][_0x2286d4(0xc9)]};});_0x1760b5[_0x5a3b47(0xf3)]=_[_0x5a3b47(0xea)](_0x35e838,_0x5a3b47(0xa4)),_0x1760b5['query']=_[_0x5a3b47(0xc5)](_0x3b1703[_0x5a3b47(0x100)]),_0x1760b5[_0x5a3b47(0xfe)]=_[_0x5a3b47(0xb3)](_0x1760b5[_0x5a3b47(0xf3)],_0x1760b5[_0x5a3b47(0x100)]),_0x18378e['attributes']=_[_0x5a3b47(0xb3)](_0x1760b5['model'],qs['fields'](_0x3b1703[_0x5a3b47(0x100)][_0x5a3b47(0xa8)])),_0x18378e['attributes']=_0x18378e['attributes']['length']?_0x18378e['attributes']:_0x1760b5[_0x5a3b47(0xf3)];typeof _0x3b1703[_0x5a3b47(0x100)][_0x5a3b47(0xba)]===_0x5a3b47(0xce)&&(_0x18378e[_0x5a3b47(0xe5)]=qs[_0x5a3b47(0xe5)](_0x3b1703[_0x5a3b47(0x100)][_0x5a3b47(0xe5)]),_0x18378e[_0x5a3b47(0xc8)]=qs[_0x5a3b47(0xc8)](_0x3b1703[_0x5a3b47(0x100)][_0x5a3b47(0xc8)]));_0x18378e[_0x5a3b47(0xc6)]=qs[_0x5a3b47(0xec)](_0x3b1703['query'][_0x5a3b47(0xec)]),_0x18378e[_0x5a3b47(0xc1)]=qs[_0x5a3b47(0xfe)](_[_0x5a3b47(0xfb)](_0x3b1703['query'],_0x1760b5[_0x5a3b47(0xfe)]),_0x35e838);_0x3b1703[_0x5a3b47(0x100)][_0x5a3b47(0xdc)]&&(_0x18378e[_0x5a3b47(0xc1)]=_[_0x5a3b47(0xac)](_0x18378e[_0x5a3b47(0xc1)],{[Op['or']]:_[_0x5a3b47(0xea)](_0x35e838,function(_0x3275a2){const _0x1585de=_0x5a3b47;if(_0x3275a2[_0x1585de(0xb6)]!==_0x1585de(0xc7)){const _0x571e3a={};return _0x571e3a[_0x3275a2[_0x1585de(0xa4)]]={[Op[_0x1585de(0xe4)]]:'%'+_0x3b1703[_0x1585de(0x100)][_0x1585de(0xdc)]+'%'},_0x571e3a;}})}));_0x18378e=_['merge']({},_0x18378e,_0x3b1703['options']);const _0x104435={'where':_0x18378e[_0x5a3b47(0xc1)]};return db['VtigerAccount']['count'](_0x104435)[_0x5a3b47(0xf7)](function(_0x34a0f4){const _0x199a88=_0x5a3b47;return _0x58bf20[_0x199a88(0xeb)]=_0x34a0f4,_0x3b1703['query'][_0x199a88(0xb8)]&&(_0x18378e[_0x199a88(0xf8)]=[{'all':!![]}]),db[_0x199a88(0xdf)][_0x199a88(0xda)](_0x18378e);})[_0x5a3b47(0xf7)](function(_0x45936f){const _0x264aaa=_0x5a3b47;return _0x58bf20[_0x264aaa(0xe7)]=_0x45936f,_0x58bf20;})[_0x5a3b47(0xf7)](respondWithFilteredResult(_0xd9f2d9,_0x18378e))[_0x5a3b47(0xd2)](handleError(_0xd9f2d9,null));},exports[a384_0x1f549b(0xe1)]=function(_0x52b381,_0x2fa345){const _0x30c395=a384_0x1f549b;let _0x37e2ab={'raw':![],'where':{'id':_0x52b381[_0x30c395(0xf4)]['id']}};const _0x2c36e4={};return _0x2c36e4[_0x30c395(0xf3)]=_[_0x30c395(0xc5)](db[_0x30c395(0xdf)][_0x30c395(0xe6)]),_0x2c36e4[_0x30c395(0x100)]=_['keys'](_0x52b381[_0x30c395(0x100)]),_0x2c36e4[_0x30c395(0xfe)]=_['intersection'](_0x2c36e4['model'],_0x2c36e4['query']),_0x37e2ab['attributes']=_['intersection'](_0x2c36e4[_0x30c395(0xf3)],qs[_0x30c395(0xa8)](_0x52b381[_0x30c395(0x100)]['fields'])),_0x37e2ab[_0x30c395(0xe0)]=_0x37e2ab[_0x30c395(0xe0)][_0x30c395(0xdb)]?_0x37e2ab[_0x30c395(0xe0)]:_0x2c36e4[_0x30c395(0xf3)],_0x52b381[_0x30c395(0x100)]['includeAll']&&(_0x37e2ab[_0x30c395(0xf8)]=[{'all':!![]}]),_0x37e2ab=_[_0x30c395(0xac)]({},_0x37e2ab,_0x52b381[_0x30c395(0xd0)]),db['VtigerAccount'][_0x30c395(0xae)](_0x37e2ab)[_0x30c395(0xf7)](handleEntityNotFound(_0x2fa345,null))[_0x30c395(0xf7)](respondWithResult(_0x2fa345,null))[_0x30c395(0xd2)](handleError(_0x2fa345,null));},exports[a384_0x1f549b(0xca)]=function(_0x53610e,_0x89e4c1){const _0x23ccc4=a384_0x1f549b;return db[_0x23ccc4(0xdf)][_0x23ccc4(0xca)](_0x53610e[_0x23ccc4(0xa9)],{})[_0x23ccc4(0xf7)](respondWithResult(_0x89e4c1,0xc9))['catch'](handleError(_0x89e4c1,null));},exports['update']=function(_0x7bcf55,_0x3c01e6){const _0x2882ec=a384_0x1f549b;return _0x7bcf55['body']['id']&&delete _0x7bcf55['body']['id'],db['VtigerAccount'][_0x2882ec(0xae)]({'where':{'id':_0x7bcf55[_0x2882ec(0xf4)]['id']}})[_0x2882ec(0xf7)](handleEntityNotFound(_0x3c01e6,null))['then'](saveUpdates(_0x7bcf55[_0x2882ec(0xa9)],null))[_0x2882ec(0xf7)](respondWithResult(_0x3c01e6,null))[_0x2882ec(0xd2)](handleError(_0x3c01e6,null));},exports[a384_0x1f549b(0xf2)]=function(_0x32a1e0,_0x51ee80){const _0x49a73a=a384_0x1f549b;return db[_0x49a73a(0xdf)][_0x49a73a(0xae)]({'where':{'id':_0x32a1e0[_0x49a73a(0xf4)]['id']}})[_0x49a73a(0xf7)](handleEntityNotFound(_0x51ee80,null))['then'](removeEntity(_0x51ee80,null))[_0x49a73a(0xd2)](handleError(_0x51ee80,null));},exports[a384_0x1f549b(0xad)]=function(_0xeba16a,_0x56bacf){const _0x133ad9=a384_0x1f549b;let _0x109be9={};const _0x558340={};let _0x554a31,_0x5caf5b;return db[_0x133ad9(0xdf)]['findOne']({'where':{'id':_0xeba16a[_0x133ad9(0xf4)]['id']}})[_0x133ad9(0xf7)](handleEntityNotFound(_0x56bacf,null))[_0x133ad9(0xf7)](function(_0x422afe){const _0x342119=_0x133ad9;if(_0x422afe)return _0x554a31=_0x422afe,_0x558340[_0x342119(0xf3)]=_[_0x342119(0xc5)](db[_0x342119(0xd9)][_0x342119(0xe6)]),_0x558340[_0x342119(0x100)]=_[_0x342119(0xc5)](_0xeba16a[_0x342119(0x100)]),_0x558340[_0x342119(0xfe)]=_['intersection'](_0x558340[_0x342119(0xf3)],_0x558340['query']),_0x109be9[_0x342119(0xe0)]=_[_0x342119(0xb3)](_0x558340[_0x342119(0xf3)],qs['fields'](_0xeba16a[_0x342119(0x100)][_0x342119(0xa8)])),_0x109be9['attributes']=_0x109be9[_0x342119(0xe0)][_0x342119(0xdb)]?_0x109be9[_0x342119(0xe0)]:_0x558340[_0x342119(0xf3)],_0x109be9[_0x342119(0xc6)]=qs[_0x342119(0xec)](_0xeba16a[_0x342119(0x100)][_0x342119(0xec)]),_0x109be9[_0x342119(0xc1)]=qs['filters'](_[_0x342119(0xfb)](_0xeba16a[_0x342119(0x100)],_0x558340[_0x342119(0xfe)])),_0xeba16a['query'][_0x342119(0xdc)]&&(_0x109be9[_0x342119(0xc1)]=_[_0x342119(0xac)](_0x109be9['where'],{[Op['or']]:_['map'](_0x109be9[_0x342119(0xe0)],function(_0x481e71){const _0x30fe0d=_0x342119,_0x1775bb={};return _0x1775bb[_0x481e71]={[Op[_0x30fe0d(0xe4)]]:'%'+_0xeba16a['query'][_0x30fe0d(0xdc)]+'%'},_0x1775bb;})})),_0x109be9=_['merge']({},_0x109be9,_0xeba16a[_0x342119(0xd0)]),_0x554a31[_0x342119(0xad)](_0x109be9);})['then'](function(_0x7db078){const _0x100604=_0x133ad9;if(_0x7db078)return _0x5caf5b=_0x7db078[_0x100604(0xdb)],typeof _0xeba16a[_0x100604(0x100)][_0x100604(0xba)]===_0x100604(0xce)&&(_0x109be9[_0x100604(0xe5)]=qs[_0x100604(0xe5)](_0xeba16a['query'][_0x100604(0xe5)]),_0x109be9['offset']=qs[_0x100604(0xc8)](_0xeba16a['query'][_0x100604(0xc8)])),_0x554a31[_0x100604(0xad)](_0x109be9);})[_0x133ad9(0xf7)](function(_0x19604e){if(_0x19604e)return _0x19604e?{'count':_0x5caf5b,'rows':_0x19604e}:null;})[_0x133ad9(0xf7)](respondWithResult(_0x56bacf,null))[_0x133ad9(0xd2)](handleError(_0x56bacf,null));},exports[a384_0x1f549b(0xd7)]=function(_0x9a2554,_0x2c6ca0){const _0x32739d=a384_0x1f549b;return _0x9a2554[_0x32739d(0xa9)]['id']&&delete _0x9a2554[_0x32739d(0xa9)]['id'],db[_0x32739d(0xdf)][_0x32739d(0xae)]({'where':{'id':_0x9a2554[_0x32739d(0xf4)]['id']}})[_0x32739d(0xf7)](handleEntityNotFound(_0x2c6ca0,null))[_0x32739d(0xf7)](function(_0x2c7ea1){const _0x11d7f7=_0x32739d;if(_0x2c7ea1)return _0x9a2554[_0x11d7f7(0xa9)][_0x11d7f7(0xd4)]=_0x2c7ea1['id'],_0x9a2554[_0x11d7f7(0xa9)][_0x11d7f7(0xa5)]=integrations[_0x11d7f7(0xbb)](_0x9a2554[_0x11d7f7(0xa9)][_0x11d7f7(0xf1)],_0x9a2554[_0x11d7f7(0xa9)][_0x11d7f7(0xb6)]),_0x9a2554[_0x11d7f7(0xa9)]['Descriptions']=integrations['getDescriptions'](_0x9a2554[_0x11d7f7(0xa9)]['channel'],_0x9a2554[_0x11d7f7(0xa9)]['type']),db['VtigerConfiguration'][_0x11d7f7(0xca)](_0x9a2554[_0x11d7f7(0xa9)],{'include':[{'model':db[_0x11d7f7(0xe9)],'as':_0x11d7f7(0xa5)},{'model':db['VtigerField'],'as':_0x11d7f7(0xe3)}]});return null;})[_0x32739d(0xf7)](respondWithResult(_0x2c6ca0,null))['catch'](handleError(_0x2c6ca0,null));};const md5=require(a384_0x1f549b(0xc3));exports['getFields']=function(_0x174936,_0x3f86ef){const _0x36b44b=a384_0x1f549b;let _0xa7544b=null,_0x120c6a=null,_0x1be7cc=null,_0x52982e=null,_0x43877='';return db['VtigerAccount'][_0x36b44b(0xae)]({'where':{'id':_0x174936[_0x36b44b(0xf4)]['id']},'attributes':['id',_0x36b44b(0xa4),'username',_0x36b44b(0xde),_0x36b44b(0xbf),_0x36b44b(0xfa),_0x36b44b(0xcf),_0x36b44b(0xaa)]})[_0x36b44b(0xf7)](handleEntityNotFound(_0x3f86ef,null))['then'](function(_0xb0943b){const _0x1265d3=_0x36b44b;if(_0xb0943b){_0xa7544b=_0xb0943b['username'],_0x120c6a=_0xb0943b[_0x1265d3(0xaa)],_0x1be7cc=_0xb0943b[_0x1265d3(0xbf)],_0x43877=_0xb0943b[_0x1265d3(0xfa)];const _0x59e779=_0x43877['slice'](-0x1);_0x59e779==='/'&&(_0x43877=_0x43877[_0x1265d3(0xc0)](0x0,_0x43877[_0x1265d3(0xf6)](_0x59e779)));_0x52982e=util[_0x1265d3(0xff)](_0x1265d3(0xcc),_0x43877);const _0x5d954e={'method':'GET','uri':_0x52982e,'qs':{'operation':_0x1265d3(0xdd),'username':_0xb0943b['username']},'json':!![]};return rp(_0x5d954e);}})[_0x36b44b(0xf7)](function(_0x39aa02){const _0x5362a2=_0x36b44b;if(_0x39aa02['success']){const _0x2dd7a7={'method':'POST','uri':_0x52982e,'form':{'operation':_0x5362a2(0xb1),'username':_0xa7544b,'accessKey':md5(_0x39aa02[_0x5362a2(0xcd)]['token']+_0x120c6a)},'json':!![]};return rp(_0x2dd7a7);}})[_0x36b44b(0xf7)](function(_0x224c45){const _0x34ab42=_0x36b44b;if(_0x224c45[_0x34ab42(0xb5)]){const _0x357219={'method':'GET','uri':_0x52982e,'qs':{'operation':'describe','username':_0xa7544b,'sessionName':_0x224c45['result'][_0x34ab42(0xab)],'elementType':_0x1be7cc},'json':!![]};return rp(_0x357219);}})['then'](function(_0x46c9c2){const _0x4b4c51=_0x36b44b;if(_0x46c9c2[_0x4b4c51(0xb5)]){const _0x3a3e9=[_0x4b4c51(0xe8),_0x4b4c51(0x102),_0x4b4c51(0xb0)];return _[_0x4b4c51(0xb9)](_0x46c9c2[_0x4b4c51(0xcd)][_0x4b4c51(0xa8)],function(_0x35b761){const _0x54725c=_0x4b4c51;return _0x3a3e9[_0x54725c(0xc4)](_0x35b761[_0x54725c(0xb6)]['name']);}),_['remove'](_0x46c9c2[_0x4b4c51(0xcd)][_0x4b4c51(0xa8)],function(_0x238103){const _0x5459f6=_0x4b4c51;return _0x238103[_0x5459f6(0xfd)]==='false';}),{'count':_0x46c9c2['result']['fields'][_0x4b4c51(0xdb)],'rows':_['map'](_0x46c9c2[_0x4b4c51(0xcd)][_0x4b4c51(0xa8)],function(_0x21fe6d){const _0x26775b=_0x4b4c51;return{'id':_0x21fe6d['name'],'name':_0x21fe6d['label'],'custom':_['startsWith'](_0x21fe6d[_0x26775b(0xa4)],_0x26775b(0xd1))?!![]:![],'options':_0x21fe6d['type']['name']==='picklist'&&_0x21fe6d[_0x26775b(0xb6)][_0x26775b(0xb2)][_0x26775b(0xdb)]>0x0?_[_0x26775b(0xea)](_0x21fe6d[_0x26775b(0xb6)][_0x26775b(0xb2)],function(_0x563ed4){const _0x42872d=_0x26775b;return{'name':_0x563ed4['label'],'value':_0x563ed4[_0x42872d(0xa7)]};}):[]};})};}})[_0x36b44b(0xf7)](respondWithResult(_0x3f86ef,null))[_0x36b44b(0xd2)](function(_0x5c9a42){const _0x23a971=_0x36b44b;console['log']('vTiger\x20error:\x20'+_0x5c9a42);let _0x288249=_0x174936['query'][_0x23a971(0xd5)]?0x1f4:_0x5c9a42[_0x23a971(0xbc)]||0x1f4;logger[_0x23a971(0xf0)](_0x23a971(0xb7),_0x23a971(0xc2),_0x288249,JSON[_0x23a971(0xd6)](_0x5c9a42)),delete _0x5c9a42[_0x23a971(0xa4)],_0x288249===0x191&&(_0x288249=0x190),_0x3f86ef[_0x23a971(0xcb)](_0x288249)['send'](_0x174936[_0x23a971(0x100)][_0x23a971(0xd5)]?{'message':_0x23a971(0x101),'statusCode':_0x5c9a42[_0x23a971(0xbc)]}:_0x5c9a42);});}; \ No newline at end of file +const a384_0x3fa1=['../../config/logger','sort','autogenerated','model','editable','keys','picklistValues','Subjects','index','result','where','GET','status','../../components/parsers/qs','limit','findOne','%s/webservice.php','Descriptions','cf_','POST','../../mysqldb','getSubjects','getFields','update','stringify','type','show','api','channel','offset','../../components/integrations/configuration','statusCode','success','VtigerAccount','VIRTUAL','includes','sequelize','label','body','value','filters','order','describe','getConfigurations','owner','options','false','destroy','remoteUri','then','log','lastIndexOf','test','like','fieldName','remove','sendStatus','json','getchallenge','stack','include','send','serverUrl','query','length','util','format','rawAttributes','undefined','fields','catch','includeAll','intersection','description','filter','error','attributes','count','VtigerField','pick','set','username','moduleName','Content-Range','rows','map','nolimit','create','name','params','merge','token','accessKey'];(function(_0x41fa4a,_0x3d2cc0){const _0x3fa131=function(_0x2bbc48){while(--_0x2bbc48){_0x41fa4a['push'](_0x41fa4a['shift']());}};_0x3fa131(++_0x3d2cc0);}(a384_0x3fa1,0xb9));const a384_0x2bbc=function(_0x41fa4a,_0x3d2cc0){_0x41fa4a=_0x41fa4a-0x15b;let _0x3fa131=a384_0x3fa1[_0x41fa4a];return _0x3fa131;};const a384_0x505e6f=a384_0x2bbc;'use strict';const rp=require('request-promise-native'),util=require(a384_0x505e6f(0x19d)),_=require('lodash'),qs=require(a384_0x505e6f(0x169)),logger=require(a384_0x505e6f(0x15c))(a384_0x505e6f(0x177)),{db}=require(a384_0x505e6f(0x170)),{Op}=require(a384_0x505e6f(0x180)),integrations=require(a384_0x505e6f(0x17a));function respondWithResult(_0xf7f112,_0x588a37){return _0x588a37=_0x588a37||0xc8,function(_0x34cf1a){const _0x128d37=a384_0x2bbc;if(_0x34cf1a)return _0xf7f112[_0x128d37(0x168)](_0x588a37)[_0x128d37(0x195)](_0x34cf1a);};}function respondWithFilteredResult(_0x37e99e,_0x40063f){return function(_0xa280c0){const _0x380d96=a384_0x2bbc;if(_0xa280c0){const _0x1cfff3=_0xa280c0[_0x380d96(0x1a9)],_0x4893e3=_0x40063f[_0x380d96(0x179)];let _0x59d797=_0x40063f['offset']+_0x40063f[_0x380d96(0x16a)],_0x1d0e45;return _0x59d797>=_0x1cfff3?(_0x59d797=_0x1cfff3,_0x1d0e45=0xc8):_0x1d0e45=0xce,_0x37e99e[_0x380d96(0x168)](_0x1d0e45),_0x37e99e[_0x380d96(0x1ac)](_0x380d96(0x1af),_0x4893e3+'-'+_0x59d797+'/'+_0x1cfff3)[_0x380d96(0x195)](_0xa280c0);}return null;};}function saveUpdates(_0x320d02){return function(_0x409b7c){const _0x5c90d4=a384_0x2bbc;if(_0x409b7c)return _0x409b7c[_0x5c90d4(0x173)](_0x320d02)['then'](function(_0x3199da){return _0x3199da;});return null;};}function removeEntity(_0x352f23){return function(_0x226346){const _0x5be923=a384_0x2bbc;if(_0x226346)return _0x226346[_0x5be923(0x18b)]()[_0x5be923(0x18d)](function(){const _0x1ce092=_0x5be923;_0x352f23[_0x1ce092(0x168)](0xcc)['end']();});};}function handleEntityNotFound(_0x16207f){return function(_0x3c4a82){const _0x5a3107=a384_0x2bbc;return!_0x3c4a82&&_0x16207f[_0x5a3107(0x194)](0x194),_0x3c4a82;};}function handleError(_0x494e4a,_0x34c197){return _0x34c197=_0x34c197||0x1f4,function(_0x312d59){const _0x4c3380=a384_0x2bbc;logger['error'](_0x312d59[_0x4c3380(0x197)]),_0x312d59[_0x4c3380(0x1b4)]&&delete _0x312d59['name'],_0x494e4a[_0x4c3380(0x168)](_0x34c197)[_0x4c3380(0x199)](_0x312d59);};}exports[a384_0x505e6f(0x164)]=function(_0x13a2c3,_0x43c849){const _0x14591d=a384_0x505e6f;let _0x4484c2={};const _0x1862bd={},_0xc6471e={'count':0x0,'rows':[]},_0x2e9534=_['map'](db[_0x14591d(0x17d)][_0x14591d(0x19f)],function(_0x3ceacf){const _0x3db879=_0x14591d;return{'name':_0x3ceacf[_0x3db879(0x192)],'type':_0x3ceacf[_0x3db879(0x175)]['key']};});_0x1862bd[_0x14591d(0x15f)]=_[_0x14591d(0x1b1)](_0x2e9534,'name'),_0x1862bd[_0x14591d(0x19b)]=_[_0x14591d(0x161)](_0x13a2c3[_0x14591d(0x19b)]),_0x1862bd[_0x14591d(0x184)]=_[_0x14591d(0x1a4)](_0x1862bd[_0x14591d(0x15f)],_0x1862bd[_0x14591d(0x19b)]),_0x4484c2[_0x14591d(0x1a8)]=_[_0x14591d(0x1a4)](_0x1862bd['model'],qs[_0x14591d(0x1a1)](_0x13a2c3['query'][_0x14591d(0x1a1)])),_0x4484c2[_0x14591d(0x1a8)]=_0x4484c2[_0x14591d(0x1a8)]['length']?_0x4484c2['attributes']:_0x1862bd['model'];typeof _0x13a2c3['query'][_0x14591d(0x1b2)]===_0x14591d(0x1a0)&&(_0x4484c2['limit']=qs['limit'](_0x13a2c3[_0x14591d(0x19b)][_0x14591d(0x16a)]),_0x4484c2[_0x14591d(0x179)]=qs[_0x14591d(0x179)](_0x13a2c3[_0x14591d(0x19b)]['offset']));_0x4484c2[_0x14591d(0x185)]=qs['sort'](_0x13a2c3[_0x14591d(0x19b)]['sort']),_0x4484c2['where']=qs['filters'](_[_0x14591d(0x1ab)](_0x13a2c3[_0x14591d(0x19b)],_0x1862bd[_0x14591d(0x184)]),_0x2e9534);_0x13a2c3[_0x14591d(0x19b)][_0x14591d(0x1a6)]&&(_0x4484c2[_0x14591d(0x166)]=_[_0x14591d(0x1b6)](_0x4484c2[_0x14591d(0x166)],{[Op['or']]:_[_0x14591d(0x1b1)](_0x2e9534,function(_0x231eab){const _0x2b69e2=_0x14591d;if(_0x231eab[_0x2b69e2(0x175)]!==_0x2b69e2(0x17e)){const _0x4e3b48={};return _0x4e3b48[_0x231eab[_0x2b69e2(0x1b4)]]={[Op[_0x2b69e2(0x191)]]:'%'+_0x13a2c3[_0x2b69e2(0x19b)][_0x2b69e2(0x1a6)]+'%'},_0x4e3b48;}})}));_0x4484c2=_[_0x14591d(0x1b6)]({},_0x4484c2,_0x13a2c3[_0x14591d(0x189)]);const _0x5b279d={'where':_0x4484c2[_0x14591d(0x166)]};return db[_0x14591d(0x17d)]['count'](_0x5b279d)['then'](function(_0x1a0832){const _0x4805d4=_0x14591d;return _0xc6471e[_0x4805d4(0x1a9)]=_0x1a0832,_0x13a2c3[_0x4805d4(0x19b)][_0x4805d4(0x1a3)]&&(_0x4484c2[_0x4805d4(0x198)]=[{'all':!![]}]),db[_0x4805d4(0x17d)]['findAll'](_0x4484c2);})[_0x14591d(0x18d)](function(_0x27cfbc){const _0xddf8a4=_0x14591d;return _0xc6471e[_0xddf8a4(0x1b0)]=_0x27cfbc,_0xc6471e;})[_0x14591d(0x18d)](respondWithFilteredResult(_0x43c849,_0x4484c2))[_0x14591d(0x1a2)](handleError(_0x43c849,null));},exports[a384_0x505e6f(0x176)]=function(_0x4e0da2,_0x249c2a){const _0x5ee33c=a384_0x505e6f;let _0x5e13bf={'raw':![],'where':{'id':_0x4e0da2[_0x5ee33c(0x1b5)]['id']}};const _0x3c9858={};return _0x3c9858[_0x5ee33c(0x15f)]=_[_0x5ee33c(0x161)](db['VtigerAccount'][_0x5ee33c(0x19f)]),_0x3c9858[_0x5ee33c(0x19b)]=_[_0x5ee33c(0x161)](_0x4e0da2[_0x5ee33c(0x19b)]),_0x3c9858[_0x5ee33c(0x184)]=_[_0x5ee33c(0x1a4)](_0x3c9858[_0x5ee33c(0x15f)],_0x3c9858['query']),_0x5e13bf[_0x5ee33c(0x1a8)]=_[_0x5ee33c(0x1a4)](_0x3c9858['model'],qs[_0x5ee33c(0x1a1)](_0x4e0da2[_0x5ee33c(0x19b)]['fields'])),_0x5e13bf[_0x5ee33c(0x1a8)]=_0x5e13bf[_0x5ee33c(0x1a8)][_0x5ee33c(0x19c)]?_0x5e13bf[_0x5ee33c(0x1a8)]:_0x3c9858['model'],_0x4e0da2[_0x5ee33c(0x19b)][_0x5ee33c(0x1a3)]&&(_0x5e13bf[_0x5ee33c(0x198)]=[{'all':!![]}]),_0x5e13bf=_[_0x5ee33c(0x1b6)]({},_0x5e13bf,_0x4e0da2[_0x5ee33c(0x189)]),db[_0x5ee33c(0x17d)][_0x5ee33c(0x16b)](_0x5e13bf)['then'](handleEntityNotFound(_0x249c2a,null))[_0x5ee33c(0x18d)](respondWithResult(_0x249c2a,null))[_0x5ee33c(0x1a2)](handleError(_0x249c2a,null));},exports[a384_0x505e6f(0x1b3)]=function(_0x3a7b84,_0x561303){const _0x50678a=a384_0x505e6f;return db[_0x50678a(0x17d)][_0x50678a(0x1b3)](_0x3a7b84[_0x50678a(0x182)],{})[_0x50678a(0x18d)](respondWithResult(_0x561303,0xc9))['catch'](handleError(_0x561303,null));},exports[a384_0x505e6f(0x173)]=function(_0x11b41e,_0x62627f){const _0x2955c6=a384_0x505e6f;return _0x11b41e[_0x2955c6(0x182)]['id']&&delete _0x11b41e[_0x2955c6(0x182)]['id'],db['VtigerAccount'][_0x2955c6(0x16b)]({'where':{'id':_0x11b41e[_0x2955c6(0x1b5)]['id']}})[_0x2955c6(0x18d)](handleEntityNotFound(_0x62627f,null))[_0x2955c6(0x18d)](saveUpdates(_0x11b41e[_0x2955c6(0x182)],null))['then'](respondWithResult(_0x62627f,null))[_0x2955c6(0x1a2)](handleError(_0x62627f,null));},exports[a384_0x505e6f(0x18b)]=function(_0x24ae81,_0x25e0bc){const _0x2c7ec8=a384_0x505e6f;return db['VtigerAccount'][_0x2c7ec8(0x16b)]({'where':{'id':_0x24ae81[_0x2c7ec8(0x1b5)]['id']}})[_0x2c7ec8(0x18d)](handleEntityNotFound(_0x25e0bc,null))[_0x2c7ec8(0x18d)](removeEntity(_0x25e0bc,null))['catch'](handleError(_0x25e0bc,null));},exports['getConfigurations']=function(_0x22e731,_0x3ca79c){const _0x3c93a3=a384_0x505e6f;let _0x40fada={};const _0x463a2d={};let _0x1dc023,_0x1be045;return db[_0x3c93a3(0x17d)][_0x3c93a3(0x16b)]({'where':{'id':_0x22e731[_0x3c93a3(0x1b5)]['id']}})[_0x3c93a3(0x18d)](handleEntityNotFound(_0x3ca79c,null))['then'](function(_0x30d369){const _0x49eea3=_0x3c93a3;if(_0x30d369)return _0x1dc023=_0x30d369,_0x463a2d['model']=_[_0x49eea3(0x161)](db['VtigerConfiguration'][_0x49eea3(0x19f)]),_0x463a2d[_0x49eea3(0x19b)]=_['keys'](_0x22e731['query']),_0x463a2d[_0x49eea3(0x184)]=_['intersection'](_0x463a2d['model'],_0x463a2d[_0x49eea3(0x19b)]),_0x40fada[_0x49eea3(0x1a8)]=_[_0x49eea3(0x1a4)](_0x463a2d[_0x49eea3(0x15f)],qs[_0x49eea3(0x1a1)](_0x22e731[_0x49eea3(0x19b)][_0x49eea3(0x1a1)])),_0x40fada['attributes']=_0x40fada['attributes']['length']?_0x40fada[_0x49eea3(0x1a8)]:_0x463a2d[_0x49eea3(0x15f)],_0x40fada['order']=qs['sort'](_0x22e731['query'][_0x49eea3(0x15d)]),_0x40fada['where']=qs[_0x49eea3(0x184)](_[_0x49eea3(0x1ab)](_0x22e731['query'],_0x463a2d['filters'])),_0x22e731[_0x49eea3(0x19b)][_0x49eea3(0x1a6)]&&(_0x40fada[_0x49eea3(0x166)]=_[_0x49eea3(0x1b6)](_0x40fada[_0x49eea3(0x166)],{[Op['or']]:_[_0x49eea3(0x1b1)](_0x40fada[_0x49eea3(0x1a8)],function(_0x42a111){const _0x2ae594=_0x49eea3,_0x396a82={};return _0x396a82[_0x42a111]={[Op[_0x2ae594(0x191)]]:'%'+_0x22e731[_0x2ae594(0x19b)]['filter']+'%'},_0x396a82;})})),_0x40fada=_[_0x49eea3(0x1b6)]({},_0x40fada,_0x22e731[_0x49eea3(0x189)]),_0x1dc023[_0x49eea3(0x187)](_0x40fada);})[_0x3c93a3(0x18d)](function(_0xfae5c4){const _0xaf8840=_0x3c93a3;if(_0xfae5c4)return _0x1be045=_0xfae5c4[_0xaf8840(0x19c)],typeof _0x22e731[_0xaf8840(0x19b)][_0xaf8840(0x1b2)]===_0xaf8840(0x1a0)&&(_0x40fada[_0xaf8840(0x16a)]=qs[_0xaf8840(0x16a)](_0x22e731[_0xaf8840(0x19b)]['limit']),_0x40fada[_0xaf8840(0x179)]=qs[_0xaf8840(0x179)](_0x22e731[_0xaf8840(0x19b)][_0xaf8840(0x179)])),_0x1dc023[_0xaf8840(0x187)](_0x40fada);})[_0x3c93a3(0x18d)](function(_0x48f067){if(_0x48f067)return _0x48f067?{'count':_0x1be045,'rows':_0x48f067}:null;})[_0x3c93a3(0x18d)](respondWithResult(_0x3ca79c,null))[_0x3c93a3(0x1a2)](handleError(_0x3ca79c,null));},exports['addConfiguration']=function(_0x28b835,_0x31c590){const _0x3e3ae2=a384_0x505e6f;return _0x28b835[_0x3e3ae2(0x182)]['id']&&delete _0x28b835['body']['id'],db[_0x3e3ae2(0x17d)][_0x3e3ae2(0x16b)]({'where':{'id':_0x28b835['params']['id']}})['then'](handleEntityNotFound(_0x31c590,null))[_0x3e3ae2(0x18d)](function(_0x3c18b2){const _0xf8acf8=_0x3e3ae2;if(_0x3c18b2)return _0x28b835[_0xf8acf8(0x182)]['AccountId']=_0x3c18b2['id'],_0x28b835[_0xf8acf8(0x182)][_0xf8acf8(0x163)]=integrations[_0xf8acf8(0x171)](_0x28b835[_0xf8acf8(0x182)]['channel'],_0x28b835['body']['type']),_0x28b835['body'][_0xf8acf8(0x16d)]=integrations['getDescriptions'](_0x28b835[_0xf8acf8(0x182)][_0xf8acf8(0x178)],_0x28b835[_0xf8acf8(0x182)]['type']),db['VtigerConfiguration']['create'](_0x28b835[_0xf8acf8(0x182)],{'include':[{'model':db[_0xf8acf8(0x1aa)],'as':'Subjects'},{'model':db[_0xf8acf8(0x1aa)],'as':'Descriptions'}]});return null;})[_0x3e3ae2(0x18d)](respondWithResult(_0x31c590,null))[_0x3e3ae2(0x1a2)](handleError(_0x31c590,null));};const md5=require('md5');exports['getFields']=function(_0x5a819e,_0x10e39c){const _0x50c57d=a384_0x505e6f;let _0x3cc768=null,_0xc18d88=null,_0x1f99e3=null,_0x312d6f=null,_0xccf9c7='';return db[_0x50c57d(0x17d)][_0x50c57d(0x16b)]({'where':{'id':_0x5a819e['params']['id']},'attributes':['id',_0x50c57d(0x1b4),'username',_0x50c57d(0x1a5),_0x50c57d(0x1ae),_0x50c57d(0x18c),_0x50c57d(0x19a),_0x50c57d(0x15b)]})[_0x50c57d(0x18d)](handleEntityNotFound(_0x10e39c,null))[_0x50c57d(0x18d)](function(_0x3878ad){const _0x37e2c2=_0x50c57d;if(_0x3878ad){_0x3cc768=_0x3878ad[_0x37e2c2(0x1ad)],_0xc18d88=_0x3878ad[_0x37e2c2(0x15b)],_0x1f99e3=_0x3878ad[_0x37e2c2(0x1ae)],_0xccf9c7=_0x3878ad[_0x37e2c2(0x18c)];const _0x218f63=_0xccf9c7['slice'](-0x1);_0x218f63==='/'&&(_0xccf9c7=_0xccf9c7['substring'](0x0,_0xccf9c7[_0x37e2c2(0x18f)](_0x218f63)));_0x312d6f=util[_0x37e2c2(0x19e)](_0x37e2c2(0x16c),_0xccf9c7);const _0x563d67={'method':_0x37e2c2(0x167),'uri':_0x312d6f,'qs':{'operation':_0x37e2c2(0x196),'username':_0x3878ad[_0x37e2c2(0x1ad)]},'json':!![]};return rp(_0x563d67);}})[_0x50c57d(0x18d)](function(_0x59733){const _0xb18d2c=_0x50c57d;if(_0x59733[_0xb18d2c(0x17c)]){const _0x4fb9b0={'method':_0xb18d2c(0x16f),'uri':_0x312d6f,'form':{'operation':'login','username':_0x3cc768,'accessKey':md5(_0x59733[_0xb18d2c(0x165)][_0xb18d2c(0x1b7)]+_0xc18d88)},'json':!![]};return rp(_0x4fb9b0);}})['then'](function(_0x34b19e){const _0x451500=_0x50c57d;if(_0x34b19e[_0x451500(0x17c)]){const _0x534fb2={'method':'GET','uri':_0x312d6f,'qs':{'operation':_0x451500(0x186),'username':_0x3cc768,'sessionName':_0x34b19e[_0x451500(0x165)]['sessionName'],'elementType':_0x1f99e3},'json':!![]};return rp(_0x534fb2);}})[_0x50c57d(0x18d)](function(_0x233778){const _0x2f43af=_0x50c57d;if(_0x233778['success']){const _0x1e3677=[_0x2f43af(0x15e),'reference',_0x2f43af(0x188)];return _[_0x2f43af(0x193)](_0x233778['result']['fields'],function(_0x2299e9){const _0x5a521c=_0x2f43af;return _0x1e3677[_0x5a521c(0x17f)](_0x2299e9['type']['name']);}),_[_0x2f43af(0x193)](_0x233778[_0x2f43af(0x165)]['fields'],function(_0x51e150){const _0xd0134f=_0x2f43af;return _0x51e150[_0xd0134f(0x160)]===_0xd0134f(0x18a);}),{'count':_0x233778[_0x2f43af(0x165)]['fields'][_0x2f43af(0x19c)],'rows':_[_0x2f43af(0x1b1)](_0x233778[_0x2f43af(0x165)]['fields'],function(_0x5efbfb){const _0x3d2f62=_0x2f43af;return{'id':_0x5efbfb[_0x3d2f62(0x1b4)],'name':_0x5efbfb[_0x3d2f62(0x181)],'custom':_['startsWith'](_0x5efbfb[_0x3d2f62(0x1b4)],_0x3d2f62(0x16e))?!![]:![],'options':_0x5efbfb['type']['name']==='picklist'&&_0x5efbfb[_0x3d2f62(0x175)][_0x3d2f62(0x162)][_0x3d2f62(0x19c)]>0x0?_['map'](_0x5efbfb[_0x3d2f62(0x175)][_0x3d2f62(0x162)],function(_0x2ce114){const _0x37dab0=_0x3d2f62;return{'name':_0x2ce114[_0x37dab0(0x181)],'value':_0x2ce114[_0x37dab0(0x183)]};}):[]};})};}})[_0x50c57d(0x18d)](respondWithResult(_0x10e39c,null))[_0x50c57d(0x1a2)](function(_0x45451a){const _0x3dbd3e=_0x50c57d;console[_0x3dbd3e(0x18e)]('vTiger\x20error:\x20'+_0x45451a);let _0x17ca5b=_0x5a819e['query'][_0x3dbd3e(0x190)]?0x1f4:_0x45451a['statusCode']||0x1f4;logger[_0x3dbd3e(0x1a7)]('getFields,\x20%s,\x20%s,\x20%s',_0x3dbd3e(0x172),_0x17ca5b,JSON[_0x3dbd3e(0x174)](_0x45451a)),delete _0x45451a['name'],_0x17ca5b===0x191&&(_0x17ca5b=0x190),_0x10e39c['status'](_0x17ca5b)['send'](_0x5a819e['query'][_0x3dbd3e(0x190)]?{'message':'Wrong\x20credentials','statusCode':_0x45451a[_0x3dbd3e(0x17b)]}:_0x45451a);});}; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.model.js b/server/api/intVtigerAccount/intVtigerAccount.model.js index 7b9e164..d8eb4b6 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.model.js +++ b/server/api/intVtigerAccount/intVtigerAccount.model.js @@ -1 +1 @@ -const a385_0x59d2=['exports','function','init','sequelize','VtigerAccount','./intVtigerAccount.options'];(function(_0x10bcb3,_0x407c9b){const _0x59d29d=function(_0x1fae5d){while(--_0x1fae5d){_0x10bcb3['push'](_0x10bcb3['shift']());}};_0x59d29d(++_0x407c9b);}(a385_0x59d2,0xeb));const a385_0x1fae=function(_0x10bcb3,_0x407c9b){_0x10bcb3=_0x10bcb3-0x191;let _0x59d29d=a385_0x59d2[_0x10bcb3];return _0x59d29d;};const a385_0x32a1df=a385_0x1fae;'use strict';const {Model}=require(a385_0x32a1df(0x193)),{attributes}=require('./intVtigerAccount.attributes'),{options}=require(a385_0x32a1df(0x195));class VtigerAccount extends Model{}function init(_0x111a6d,_0x47e65b){const _0x9385a3=a385_0x32a1df,_0x795b4d=options(_0x111a6d),_0x1a65ca=typeof _0x47e65b===_0x9385a3(0x191)?_0x47e65b(_0x795b4d):_0x795b4d;return VtigerAccount[_0x9385a3(0x192)](attributes,_0x1a65ca),VtigerAccount;}module[a385_0x32a1df(0x196)][a385_0x32a1df(0x194)]=VtigerAccount,module['exports'][a385_0x32a1df(0x192)]=init; \ No newline at end of file +const a385_0x2707=['./intVtigerAccount.attributes','function','VtigerAccount','init','exports','sequelize'];(function(_0x385a39,_0x13b877){const _0x270785=function(_0x1a45a4){while(--_0x1a45a4){_0x385a39['push'](_0x385a39['shift']());}};_0x270785(++_0x13b877);}(a385_0x2707,0x1cb));const a385_0x1a45=function(_0x385a39,_0x13b877){_0x385a39=_0x385a39-0x128;let _0x270785=a385_0x2707[_0x385a39];return _0x270785;};const a385_0x363fbc=a385_0x1a45;'use strict';const {Model}=require(a385_0x363fbc(0x12a)),{attributes}=require(a385_0x363fbc(0x12b)),{options}=require('./intVtigerAccount.options');class VtigerAccount extends Model{}function init(_0x43366f,_0x354053){const _0x337c99=a385_0x363fbc,_0x2aa79f=options(_0x43366f),_0x598012=typeof _0x354053===_0x337c99(0x12c)?_0x354053(_0x2aa79f):_0x2aa79f;return VtigerAccount[_0x337c99(0x128)](attributes,_0x598012),VtigerAccount;}module[a385_0x363fbc(0x129)][a385_0x363fbc(0x12d)]=VtigerAccount,module[a385_0x363fbc(0x129)]['init']=init; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.options.js b/server/api/intVtigerAccount/intVtigerAccount.options.js index 03514a1..c67ded9 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.options.js +++ b/server/api/intVtigerAccount/intVtigerAccount.options.js @@ -1 +1 @@ -var a386_0x5ece=['options','int_vtiger_accounts'];(function(_0x23f0eb,_0xaa935b){var _0x5ece20=function(_0x49a17c){while(--_0x49a17c){_0x23f0eb['push'](_0x23f0eb['shift']());}};_0x5ece20(++_0xaa935b);}(a386_0x5ece,0xe7));var a386_0x49a1=function(_0x23f0eb,_0xaa935b){_0x23f0eb=_0x23f0eb-0x166;var _0x5ece20=a386_0x5ece[_0x23f0eb];return _0x5ece20;};var a386_0xe63a0b=a386_0x49a1;function options(_0x43d5d5){var _0x17c3be=a386_0x49a1;return{'sequelize':_0x43d5d5,'tableName':_0x17c3be(0x166),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a386_0xe63a0b(0x167)]=options; \ No newline at end of file +var a386_0x1039=['options'];(function(_0x24eeb0,_0x4fae5e){var _0x103929=function(_0x247266){while(--_0x247266){_0x24eeb0['push'](_0x24eeb0['shift']());}};_0x103929(++_0x4fae5e);}(a386_0x1039,0xfd));var a386_0x2472=function(_0x24eeb0,_0x4fae5e){_0x24eeb0=_0x24eeb0-0x1ab;var _0x103929=a386_0x1039[_0x24eeb0];return _0x103929;};var a386_0x15ea92=a386_0x2472;function options(_0x2dee31){return{'sequelize':_0x2dee31,'tableName':'int_vtiger_accounts','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a386_0x15ea92(0x1ab)]=options; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.rpc.js b/server/api/intVtigerAccount/intVtigerAccount.rpc.js index a421aa4..de63399 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.rpc.js +++ b/server/api/intVtigerAccount/intVtigerAccount.rpc.js @@ -1 +1 @@ -const a387_0x4b99=['attributes','catch','message','../../config/logger','error','debug','lodash','info','include','map','stringify','then','where','VtigerAccount','findOne','ShowVtigerAccount','model','limit','raw','rpc','../../mysqldb','GetVtigerAccount','findAll','options'];(function(_0x13206a,_0x4ac0e6){const _0x4b994e=function(_0x18f174){while(--_0x18f174){_0x13206a['push'](_0x13206a['shift']());}};_0x4b994e(++_0x4ac0e6);}(a387_0x4b99,0xb7));const a387_0x18f1=function(_0x13206a,_0x4ac0e6){_0x13206a=_0x13206a-0x113;let _0x4b994e=a387_0x4b99[_0x13206a];return _0x4b994e;};const a387_0x466ae5=a387_0x18f1;'use strict';const _=require(a387_0x466ae5(0x122)),db=require(a387_0x466ae5(0x118))['db'],logger=require(a387_0x466ae5(0x11f))(a387_0x466ae5(0x117));exports['GetVtigerAccount']=function(_0xcee2e3){const _0x5835bc=this;return new Promise(function(_0x144c7e,_0x1954c1){const _0x21dbc2=a387_0x18f1;return db[_0x21dbc2(0x129)][_0x21dbc2(0x11a)]({'raw':_0xcee2e3[_0x21dbc2(0x11b)]?_0xcee2e3['options'][_0x21dbc2(0x116)]===undefined?!![]:![]:!![],'where':_0xcee2e3[_0x21dbc2(0x11b)]?_0xcee2e3[_0x21dbc2(0x11b)][_0x21dbc2(0x128)]||null:null,'attributes':_0xcee2e3[_0x21dbc2(0x11b)]?_0xcee2e3[_0x21dbc2(0x11b)]['attributes']||null:null,'limit':_0xcee2e3['options']?_0xcee2e3[_0x21dbc2(0x11b)][_0x21dbc2(0x115)]||null:null,'include':_0xcee2e3[_0x21dbc2(0x11b)]?_0xcee2e3[_0x21dbc2(0x11b)]['include']?_[_0x21dbc2(0x125)](_0xcee2e3['options'][_0x21dbc2(0x124)],function(_0x4496f8){const _0xe28904=_0x21dbc2;return{'model':db[_0x4496f8['model']],'as':_0x4496f8['as'],'attributes':_0x4496f8['attributes'],'include':_0x4496f8[_0xe28904(0x124)]?_[_0xe28904(0x125)](_0x4496f8['include'],function(_0x367fea){const _0x34bb3=_0xe28904;return{'model':db[_0x367fea[_0x34bb3(0x114)]],'as':_0x367fea['as'],'attributes':_0x367fea['attributes'],'include':_0x367fea['include']?_['map'](_0x367fea[_0x34bb3(0x124)],function(_0x1606f2){const _0x565d46=_0x34bb3;return{'model':db[_0x1606f2['model']],'as':_0x1606f2['as'],'attributes':_0x1606f2[_0x565d46(0x11c)]};}):[]};}):[]};}):[]:[]})[_0x21dbc2(0x127)](function(_0x1a6844){const _0x4f2557=_0x21dbc2;logger[_0x4f2557(0x123)](_0x4f2557(0x119),_0xcee2e3),logger[_0x4f2557(0x121)](_0x4f2557(0x119),_0xcee2e3,JSON[_0x4f2557(0x126)](_0x1a6844)),_0x144c7e(_0x1a6844);})[_0x21dbc2(0x11d)](function(_0x40e5b8){const _0x2b52c9=_0x21dbc2;logger[_0x2b52c9(0x120)](_0x2b52c9(0x119),_0x40e5b8[_0x2b52c9(0x11e)],_0xcee2e3),_0x1954c1(_0x5835bc[_0x2b52c9(0x120)](0x1f4,_0x40e5b8[_0x2b52c9(0x11e)]));});});},exports['ShowVtigerAccount']=function(_0x3c78d1){const _0x34a648=this;return new Promise(function(_0x3476c1,_0x28eb76){const _0x210ca9=a387_0x18f1;return db[_0x210ca9(0x129)][_0x210ca9(0x12a)]({'raw':_0x3c78d1[_0x210ca9(0x11b)]?_0x3c78d1[_0x210ca9(0x11b)][_0x210ca9(0x116)]===undefined?!![]:![]:!![],'where':_0x3c78d1['options']?_0x3c78d1[_0x210ca9(0x11b)][_0x210ca9(0x128)]||null:null,'attributes':_0x3c78d1[_0x210ca9(0x11b)]?_0x3c78d1[_0x210ca9(0x11b)][_0x210ca9(0x11c)]||null:null,'include':_0x3c78d1[_0x210ca9(0x11b)]?_0x3c78d1[_0x210ca9(0x11b)][_0x210ca9(0x124)]?_[_0x210ca9(0x125)](_0x3c78d1[_0x210ca9(0x11b)][_0x210ca9(0x124)],function(_0x2b58dc){const _0x5124e8=_0x210ca9;return{'model':db[_0x2b58dc['model']],'as':_0x2b58dc['as'],'attributes':_0x2b58dc[_0x5124e8(0x11c)],'include':_0x2b58dc[_0x5124e8(0x124)]?_['map'](_0x2b58dc[_0x5124e8(0x124)],function(_0x13df0f){const _0x1a24bc=_0x5124e8;return{'model':db[_0x13df0f[_0x1a24bc(0x114)]],'as':_0x13df0f['as'],'attributes':_0x13df0f['attributes'],'include':_0x13df0f[_0x1a24bc(0x124)]?_[_0x1a24bc(0x125)](_0x13df0f[_0x1a24bc(0x124)],function(_0x228e08){const _0x392fd0=_0x1a24bc;return{'model':db[_0x228e08[_0x392fd0(0x114)]],'as':_0x228e08['as'],'attributes':_0x228e08['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x2b5a8e){const _0x2df7cd=_0x210ca9;logger['info']('ShowVtigerAccount',_0x3c78d1),logger[_0x2df7cd(0x121)](_0x2df7cd(0x113),_0x3c78d1,JSON['stringify'](_0x2b5a8e)),_0x3476c1(_0x2b5a8e);})[_0x210ca9(0x11d)](function(_0x6805d1){const _0x38e506=_0x210ca9;logger[_0x38e506(0x120)](_0x38e506(0x113),_0x6805d1['message'],_0x3c78d1),_0x28eb76(_0x34a648[_0x38e506(0x120)](0x1f4,_0x6805d1[_0x38e506(0x11e)]));});});}; \ No newline at end of file +const a387_0x21e2=['raw','model','include','debug','findOne','ShowVtigerAccount','stringify','map','limit','rpc','lodash','attributes','GetVtigerAccount','info','message','then','catch','findAll','error','options','where','../../mysqldb'];(function(_0x20da64,_0x29c757){const _0x21e22c=function(_0x4a255f){while(--_0x4a255f){_0x20da64['push'](_0x20da64['shift']());}};_0x21e22c(++_0x29c757);}(a387_0x21e2,0xa1));const a387_0x4a25=function(_0x20da64,_0x29c757){_0x20da64=_0x20da64-0x102;let _0x21e22c=a387_0x21e2[_0x20da64];return _0x21e22c;};const a387_0x47140f=a387_0x4a25;'use strict';const _=require(a387_0x47140f(0x105)),db=require(a387_0x47140f(0x110))['db'],logger=require('../../config/logger')(a387_0x47140f(0x104));exports[a387_0x47140f(0x107)]=function(_0x1e67dd){const _0x5dd705=this;return new Promise(function(_0x3ff7dd,_0x5e4c86){const _0xbcbc6a=a387_0x4a25;return db['VtigerAccount'][_0xbcbc6a(0x10c)]({'raw':_0x1e67dd[_0xbcbc6a(0x10e)]?_0x1e67dd[_0xbcbc6a(0x10e)]['raw']===undefined?!![]:![]:!![],'where':_0x1e67dd[_0xbcbc6a(0x10e)]?_0x1e67dd[_0xbcbc6a(0x10e)][_0xbcbc6a(0x10f)]||null:null,'attributes':_0x1e67dd[_0xbcbc6a(0x10e)]?_0x1e67dd['options']['attributes']||null:null,'limit':_0x1e67dd[_0xbcbc6a(0x10e)]?_0x1e67dd[_0xbcbc6a(0x10e)][_0xbcbc6a(0x103)]||null:null,'include':_0x1e67dd['options']?_0x1e67dd['options'][_0xbcbc6a(0x113)]?_[_0xbcbc6a(0x102)](_0x1e67dd[_0xbcbc6a(0x10e)][_0xbcbc6a(0x113)],function(_0x258a9a){const _0x1b8bec=_0xbcbc6a;return{'model':db[_0x258a9a[_0x1b8bec(0x112)]],'as':_0x258a9a['as'],'attributes':_0x258a9a[_0x1b8bec(0x106)],'include':_0x258a9a['include']?_[_0x1b8bec(0x102)](_0x258a9a['include'],function(_0x4d4f19){const _0x5003c2=_0x1b8bec;return{'model':db[_0x4d4f19[_0x5003c2(0x112)]],'as':_0x4d4f19['as'],'attributes':_0x4d4f19[_0x5003c2(0x106)],'include':_0x4d4f19[_0x5003c2(0x113)]?_[_0x5003c2(0x102)](_0x4d4f19['include'],function(_0x567baa){const _0x25bd8b=_0x5003c2;return{'model':db[_0x567baa['model']],'as':_0x567baa['as'],'attributes':_0x567baa[_0x25bd8b(0x106)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x771386){const _0x683db8=_0xbcbc6a;logger[_0x683db8(0x108)](_0x683db8(0x107),_0x1e67dd),logger[_0x683db8(0x114)]('GetVtigerAccount',_0x1e67dd,JSON[_0x683db8(0x117)](_0x771386)),_0x3ff7dd(_0x771386);})[_0xbcbc6a(0x10b)](function(_0x4fbf29){const _0x2f3026=_0xbcbc6a;logger[_0x2f3026(0x10d)](_0x2f3026(0x107),_0x4fbf29['message'],_0x1e67dd),_0x5e4c86(_0x5dd705['error'](0x1f4,_0x4fbf29[_0x2f3026(0x109)]));});});},exports[a387_0x47140f(0x116)]=function(_0x5a9ad1){const _0x39310=this;return new Promise(function(_0x28a104,_0x43ce64){const _0x4b4cdd=a387_0x4a25;return db['VtigerAccount'][_0x4b4cdd(0x115)]({'raw':_0x5a9ad1[_0x4b4cdd(0x10e)]?_0x5a9ad1[_0x4b4cdd(0x10e)][_0x4b4cdd(0x111)]===undefined?!![]:![]:!![],'where':_0x5a9ad1[_0x4b4cdd(0x10e)]?_0x5a9ad1[_0x4b4cdd(0x10e)]['where']||null:null,'attributes':_0x5a9ad1[_0x4b4cdd(0x10e)]?_0x5a9ad1[_0x4b4cdd(0x10e)][_0x4b4cdd(0x106)]||null:null,'include':_0x5a9ad1[_0x4b4cdd(0x10e)]?_0x5a9ad1[_0x4b4cdd(0x10e)][_0x4b4cdd(0x113)]?_['map'](_0x5a9ad1[_0x4b4cdd(0x10e)]['include'],function(_0x54b0b3){const _0x247774=_0x4b4cdd;return{'model':db[_0x54b0b3['model']],'as':_0x54b0b3['as'],'attributes':_0x54b0b3[_0x247774(0x106)],'include':_0x54b0b3['include']?_['map'](_0x54b0b3['include'],function(_0x66c081){const _0x11a4cb=_0x247774;return{'model':db[_0x66c081[_0x11a4cb(0x112)]],'as':_0x66c081['as'],'attributes':_0x66c081[_0x11a4cb(0x106)],'include':_0x66c081[_0x11a4cb(0x113)]?_[_0x11a4cb(0x102)](_0x66c081[_0x11a4cb(0x113)],function(_0x28f78e){const _0x2a3be0=_0x11a4cb;return{'model':db[_0x28f78e[_0x2a3be0(0x112)]],'as':_0x28f78e['as'],'attributes':_0x28f78e[_0x2a3be0(0x106)]};}):[]};}):[]};}):[]:[]})[_0x4b4cdd(0x10a)](function(_0x5bc754){const _0x45cea4=_0x4b4cdd;logger[_0x45cea4(0x108)]('ShowVtigerAccount',_0x5a9ad1),logger[_0x45cea4(0x114)](_0x45cea4(0x116),_0x5a9ad1,JSON['stringify'](_0x5bc754)),_0x28a104(_0x5bc754);})[_0x4b4cdd(0x10b)](function(_0x5d7ce5){const _0x200cce=_0x4b4cdd;logger[_0x200cce(0x10d)](_0x200cce(0x116),_0x5d7ce5['message'],_0x5a9ad1),_0x43ce64(_0x39310[_0x200cce(0x10d)](0x1f4,_0x5d7ce5[_0x200cce(0x109)]));});});}; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/index.js b/server/api/intVtigerConfiguration/index.js index 3efe0cf..e1b9d89 100644 --- a/server/api/intVtigerConfiguration/index.js +++ b/server/api/intVtigerConfiguration/index.js @@ -1 +1 @@ -const a388_0x33a7=['update','delete','isAuthenticated','getSubjects','create','/:id','post','getDescriptions','exports','index','destroy','/:id/descriptions','Router','express','get','getFields','show'];(function(_0x1ad832,_0x48672a){const _0x33a7c8=function(_0x121a47){while(--_0x121a47){_0x1ad832['push'](_0x1ad832['shift']());}};_0x33a7c8(++_0x48672a);}(a388_0x33a7,0x98));const a388_0x121a=function(_0x1ad832,_0x48672a){_0x1ad832=_0x1ad832-0x135;let _0x33a7c8=a388_0x33a7[_0x1ad832];return _0x33a7c8;};const a388_0x5b3bd3=a388_0x121a;'use strict';const express=require(a388_0x5b3bd3(0x143)),router=express[a388_0x5b3bd3(0x142)](),auth=require('../../components/auth/service'),controller=require('./intVtigerConfiguration.controller');router[a388_0x5b3bd3(0x144)]('/',auth[a388_0x5b3bd3(0x138)](),controller[a388_0x5b3bd3(0x13f)]),router[a388_0x5b3bd3(0x144)](a388_0x5b3bd3(0x13b),auth[a388_0x5b3bd3(0x138)](),controller[a388_0x5b3bd3(0x135)]),router['get']('/:id/fields',auth[a388_0x5b3bd3(0x138)](),controller[a388_0x5b3bd3(0x145)]),router[a388_0x5b3bd3(0x144)]('/:id/subjects',auth['isAuthenticated'](),controller[a388_0x5b3bd3(0x139)]),router[a388_0x5b3bd3(0x144)](a388_0x5b3bd3(0x141),auth[a388_0x5b3bd3(0x138)](),controller[a388_0x5b3bd3(0x13d)]),router[a388_0x5b3bd3(0x13c)]('/',auth[a388_0x5b3bd3(0x138)](),controller[a388_0x5b3bd3(0x13a)]),router['put'](a388_0x5b3bd3(0x13b),auth[a388_0x5b3bd3(0x138)](),controller[a388_0x5b3bd3(0x136)]),router[a388_0x5b3bd3(0x137)]('/:id',auth[a388_0x5b3bd3(0x138)](),controller[a388_0x5b3bd3(0x140)]),module[a388_0x5b3bd3(0x13e)]=router; \ No newline at end of file +const a388_0x4cab=['index','../../components/auth/service','destroy','getFields','update','./intVtigerConfiguration.controller','/:id/descriptions','show','delete','exports','getDescriptions','create','/:id','/:id/subjects','post','isAuthenticated','put','getSubjects','Router','get'];(function(_0x477b7a,_0x22f46a){const _0x4cab2c=function(_0xa37ffb){while(--_0xa37ffb){_0x477b7a['push'](_0x477b7a['shift']());}};_0x4cab2c(++_0x22f46a);}(a388_0x4cab,0x17c));const a388_0xa37f=function(_0x477b7a,_0x22f46a){_0x477b7a=_0x477b7a-0x1b0;let _0x4cab2c=a388_0x4cab[_0x477b7a];return _0x4cab2c;};const a388_0x5d09f0=a388_0xa37f;'use strict';const express=require('express'),router=express[a388_0x5d09f0(0x1c2)](),auth=require(a388_0x5d09f0(0x1b1)),controller=require(a388_0x5d09f0(0x1b5));router[a388_0x5d09f0(0x1c3)]('/',auth[a388_0x5d09f0(0x1bf)](),controller[a388_0x5d09f0(0x1b0)]),router[a388_0x5d09f0(0x1c3)](a388_0x5d09f0(0x1bc),auth['isAuthenticated'](),controller[a388_0x5d09f0(0x1b7)]),router['get']('/:id/fields',auth[a388_0x5d09f0(0x1bf)](),controller[a388_0x5d09f0(0x1b3)]),router[a388_0x5d09f0(0x1c3)](a388_0x5d09f0(0x1bd),auth['isAuthenticated'](),controller[a388_0x5d09f0(0x1c1)]),router[a388_0x5d09f0(0x1c3)](a388_0x5d09f0(0x1b6),auth['isAuthenticated'](),controller[a388_0x5d09f0(0x1ba)]),router[a388_0x5d09f0(0x1be)]('/',auth[a388_0x5d09f0(0x1bf)](),controller[a388_0x5d09f0(0x1bb)]),router[a388_0x5d09f0(0x1c0)](a388_0x5d09f0(0x1bc),auth[a388_0x5d09f0(0x1bf)](),controller[a388_0x5d09f0(0x1b4)]),router[a388_0x5d09f0(0x1b8)](a388_0x5d09f0(0x1bc),auth[a388_0x5d09f0(0x1bf)](),controller[a388_0x5d09f0(0x1b2)]),module[a388_0x5d09f0(0x1b9)]=router; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js index 98bd87e..b81d9de 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js @@ -1 +1 @@ -const a389_0x2a0c=['attributes'];(function(_0x2305d4,_0x461d0b){const _0x2a0c4f=function(_0xd9cb0a){while(--_0xd9cb0a){_0x2305d4['push'](_0x2305d4['shift']());}};_0x2a0c4f(++_0x461d0b);}(a389_0x2a0c,0x1c9));const a389_0xd9cb=function(_0x2305d4,_0x461d0b){_0x2305d4=_0x2305d4-0x1bf;let _0x2a0c4f=a389_0x2a0c[_0x2305d4];return _0x2a0c4f;};const a389_0x3dd514=a389_0xd9cb;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes['STRING']}};module['exports'][a389_0x3dd514(0x1bf)]=attributes; \ No newline at end of file +const a389_0x2d41=['exports','attributes','STRING','sequelize'];(function(_0x22fa5c,_0x1ebdc0){const _0x2d41ad=function(_0xf69cee){while(--_0xf69cee){_0x22fa5c['push'](_0x22fa5c['shift']());}};_0x2d41ad(++_0x1ebdc0);}(a389_0x2d41,0x1b3));const a389_0xf69c=function(_0x22fa5c,_0x1ebdc0){_0x22fa5c=_0x22fa5c-0x82;let _0x2d41ad=a389_0x2d41[_0x22fa5c];return _0x2d41ad;};const a389_0x8d10c0=a389_0xf69c;'use strict';const {DataTypes}=require(a389_0x8d10c0(0x82)),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a389_0x8d10c0(0x85)]}};module[a389_0x8d10c0(0x83)][a389_0x8d10c0(0x84)]=attributes; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js index a3135dd..26f52e7 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js @@ -1 +1 @@ -const a390_0x837c=['length','map','includeAll','undefined','options','end','query','attributes','sort','filter','Content-Range','VtigerField','show','filters','update','key','findOne','../../components/parsers/qs','status','VtigerConfiguration','params','model','merge','limit','where','body','getDescriptions','type','count','intersection','like','set','name','../../mysqldb','fieldName','order','catch','offset','VIRTUAL','destroy','findAll','nolimit','rawAttributes','json','getFields','keys','sequelize','create','fields','then','include','pick'];(function(_0x9a3201,_0x14ba8e){const _0x837c8c=function(_0x2e7c07){while(--_0x2e7c07){_0x9a3201['push'](_0x9a3201['shift']());}};_0x837c8c(++_0x14ba8e);}(a390_0x837c,0x117));const a390_0x2e7c=function(_0x9a3201,_0x14ba8e){_0x9a3201=_0x9a3201-0x13c;let _0x837c8c=a390_0x837c[_0x9a3201];return _0x837c8c;};const a390_0x353f0b=a390_0x2e7c;'use strict';const _=require('lodash'),qs=require(a390_0x353f0b(0x16e)),logger=require('../../config/logger')('api'),{db}=require(a390_0x353f0b(0x14a)),{Op}=require(a390_0x353f0b(0x157));function respondWithResult(_0x12f79b,_0x2ed99d){return _0x2ed99d=_0x2ed99d||0xc8,function(_0x410644){const _0x47463e=a390_0x2e7c;if(_0x410644)return _0x12f79b[_0x47463e(0x16f)](_0x2ed99d)[_0x47463e(0x154)](_0x410644);};}function respondWithFilteredResult(_0x50a804,_0x2c05f9){return function(_0x41e1de){const _0x168352=a390_0x2e7c;if(_0x41e1de){const _0x23191e=_0x41e1de[_0x168352(0x145)],_0x2dc912=_0x2c05f9[_0x168352(0x14e)];let _0x533268=_0x2c05f9[_0x168352(0x14e)]+_0x2c05f9[_0x168352(0x140)],_0x31e67b;return _0x533268>=_0x23191e?(_0x533268=_0x23191e,_0x31e67b=0xc8):_0x31e67b=0xce,_0x50a804[_0x168352(0x16f)](_0x31e67b),_0x50a804[_0x168352(0x148)](_0x168352(0x167),_0x2dc912+'-'+_0x533268+'/'+_0x23191e)[_0x168352(0x154)](_0x41e1de);}return null;};}function saveUpdates(_0x37af92){return function(_0x94752a){const _0x4ae039=a390_0x2e7c;if(_0x94752a)return _0x94752a['update'](_0x37af92)[_0x4ae039(0x15a)](function(_0x4dc9f6){return _0x4dc9f6;});return null;};}function removeEntity(_0x42c1d6){return function(_0x2839ec){const _0x339883=a390_0x2e7c;if(_0x2839ec)return _0x2839ec[_0x339883(0x150)]()[_0x339883(0x15a)](function(){const _0x126a99=_0x339883;_0x42c1d6[_0x126a99(0x16f)](0xcc)[_0x126a99(0x162)]();});};}function handleEntityNotFound(_0xeb0e19){return function(_0x5b75a2){return!_0x5b75a2&&_0xeb0e19['sendStatus'](0x194),_0x5b75a2;};}function handleError(_0xe7b055,_0x1a508e){return _0x1a508e=_0x1a508e||0x1f4,function(_0x3d17ea){const _0x331b5f=a390_0x2e7c;logger['error'](_0x3d17ea['stack']),_0x3d17ea[_0x331b5f(0x149)]&&delete _0x3d17ea[_0x331b5f(0x149)],_0xe7b055['status'](_0x1a508e)['send'](_0x3d17ea);};}exports['index']=function(_0x2bc462,_0x57b636){const _0x146e0e=a390_0x353f0b;let _0x549136={};const _0x6e256e={},_0x40b12b={'count':0x0,'rows':[]},_0x19bb73=_[_0x146e0e(0x15e)](db[_0x146e0e(0x13c)][_0x146e0e(0x153)],function(_0x2bdcbf){const _0x167776=_0x146e0e;return{'name':_0x2bdcbf[_0x167776(0x14b)],'type':_0x2bdcbf[_0x167776(0x144)][_0x167776(0x16c)]};});_0x6e256e[_0x146e0e(0x13e)]=_[_0x146e0e(0x15e)](_0x19bb73,_0x146e0e(0x149)),_0x6e256e[_0x146e0e(0x163)]=_[_0x146e0e(0x156)](_0x2bc462[_0x146e0e(0x163)]),_0x6e256e[_0x146e0e(0x16a)]=_[_0x146e0e(0x146)](_0x6e256e[_0x146e0e(0x13e)],_0x6e256e[_0x146e0e(0x163)]),_0x549136[_0x146e0e(0x164)]=_[_0x146e0e(0x146)](_0x6e256e[_0x146e0e(0x13e)],qs['fields'](_0x2bc462['query'][_0x146e0e(0x159)])),_0x549136[_0x146e0e(0x164)]=_0x549136[_0x146e0e(0x164)][_0x146e0e(0x15d)]?_0x549136[_0x146e0e(0x164)]:_0x6e256e[_0x146e0e(0x13e)];typeof _0x2bc462[_0x146e0e(0x163)][_0x146e0e(0x152)]===_0x146e0e(0x160)&&(_0x549136[_0x146e0e(0x140)]=qs[_0x146e0e(0x140)](_0x2bc462[_0x146e0e(0x163)][_0x146e0e(0x140)]),_0x549136[_0x146e0e(0x14e)]=qs[_0x146e0e(0x14e)](_0x2bc462[_0x146e0e(0x163)][_0x146e0e(0x14e)]));_0x549136[_0x146e0e(0x14c)]=qs[_0x146e0e(0x165)](_0x2bc462['query']['sort']),_0x549136[_0x146e0e(0x141)]=qs[_0x146e0e(0x16a)](_[_0x146e0e(0x15c)](_0x2bc462[_0x146e0e(0x163)],_0x6e256e['filters']),_0x19bb73);_0x2bc462[_0x146e0e(0x163)][_0x146e0e(0x166)]&&(_0x549136[_0x146e0e(0x141)]=_[_0x146e0e(0x13f)](_0x549136[_0x146e0e(0x141)],{[Op['or']]:_[_0x146e0e(0x15e)](_0x19bb73,function(_0x4e343a){const _0x2d6fcf=_0x146e0e;if(_0x4e343a[_0x2d6fcf(0x144)]!==_0x2d6fcf(0x14f)){const _0x353c2a={};return _0x353c2a[_0x4e343a[_0x2d6fcf(0x149)]]={[Op[_0x2d6fcf(0x147)]]:'%'+_0x2bc462[_0x2d6fcf(0x163)][_0x2d6fcf(0x166)]+'%'},_0x353c2a;}})}));_0x549136=_[_0x146e0e(0x13f)]({},_0x549136,_0x2bc462[_0x146e0e(0x161)]);const _0x5adeb7={'where':_0x549136[_0x146e0e(0x141)]};return db['VtigerConfiguration']['count'](_0x5adeb7)[_0x146e0e(0x15a)](function(_0x3dfe6b){const _0x16f28d=_0x146e0e;return _0x40b12b['count']=_0x3dfe6b,_0x2bc462[_0x16f28d(0x163)]['includeAll']&&(_0x549136[_0x16f28d(0x15b)]=[{'all':!![]}]),db['VtigerConfiguration'][_0x16f28d(0x151)](_0x549136);})[_0x146e0e(0x15a)](function(_0x76454f){return _0x40b12b['rows']=_0x76454f,_0x40b12b;})[_0x146e0e(0x15a)](respondWithFilteredResult(_0x57b636,_0x549136))[_0x146e0e(0x14d)](handleError(_0x57b636,null));},exports[a390_0x353f0b(0x169)]=function(_0x3fa924,_0x1dda04){const _0x56f5f5=a390_0x353f0b;let _0x3e6c12={'raw':![],'where':{'id':_0x3fa924[_0x56f5f5(0x13d)]['id']}};const _0x3e07c6={};return _0x3e07c6[_0x56f5f5(0x13e)]=_[_0x56f5f5(0x156)](db['VtigerConfiguration'][_0x56f5f5(0x153)]),_0x3e07c6[_0x56f5f5(0x163)]=_[_0x56f5f5(0x156)](_0x3fa924[_0x56f5f5(0x163)]),_0x3e07c6[_0x56f5f5(0x16a)]=_['intersection'](_0x3e07c6[_0x56f5f5(0x13e)],_0x3e07c6[_0x56f5f5(0x163)]),_0x3e6c12[_0x56f5f5(0x164)]=_[_0x56f5f5(0x146)](_0x3e07c6['model'],qs[_0x56f5f5(0x159)](_0x3fa924[_0x56f5f5(0x163)][_0x56f5f5(0x159)])),_0x3e6c12[_0x56f5f5(0x164)]=_0x3e6c12[_0x56f5f5(0x164)][_0x56f5f5(0x15d)]?_0x3e6c12['attributes']:_0x3e07c6['model'],_0x3fa924[_0x56f5f5(0x163)][_0x56f5f5(0x15f)]&&(_0x3e6c12[_0x56f5f5(0x15b)]=[{'all':!![]}]),_0x3e6c12=_['merge']({},_0x3e6c12,_0x3fa924['options']),db[_0x56f5f5(0x13c)][_0x56f5f5(0x16d)](_0x3e6c12)[_0x56f5f5(0x15a)](handleEntityNotFound(_0x1dda04,null))[_0x56f5f5(0x15a)](respondWithResult(_0x1dda04,null))[_0x56f5f5(0x14d)](handleError(_0x1dda04,null));},exports['create']=function(_0x11089b,_0x5955f9){const _0x2d268e=a390_0x353f0b;return db['VtigerConfiguration'][_0x2d268e(0x158)](_0x11089b['body'],{})['then'](respondWithResult(_0x5955f9,0xc9))['catch'](handleError(_0x5955f9,null));},exports[a390_0x353f0b(0x16b)]=function(_0xadf94e,_0x1e1612){const _0x2eab2c=a390_0x353f0b;return _0xadf94e['body']['id']&&delete _0xadf94e[_0x2eab2c(0x142)]['id'],db[_0x2eab2c(0x13c)]['findOne']({'where':{'id':_0xadf94e[_0x2eab2c(0x13d)]['id']}})[_0x2eab2c(0x15a)](handleEntityNotFound(_0x1e1612,null))[_0x2eab2c(0x15a)](saveUpdates(_0xadf94e[_0x2eab2c(0x142)],null))[_0x2eab2c(0x15a)](respondWithResult(_0x1e1612,null))['catch'](handleError(_0x1e1612,null));},exports['destroy']=function(_0x42d1a0,_0x208f2e){const _0x3cb91c=a390_0x353f0b;return db[_0x3cb91c(0x13c)][_0x3cb91c(0x16d)]({'where':{'id':_0x42d1a0[_0x3cb91c(0x13d)]['id']}})['then'](handleEntityNotFound(_0x208f2e,null))[_0x3cb91c(0x15a)](removeEntity(_0x208f2e,null))['catch'](handleError(_0x208f2e,null));},exports[a390_0x353f0b(0x155)]=function(_0x3fb890,_0x56bc33){const _0x14e4e6=a390_0x353f0b;let _0x5cd657={};const _0x3487eb={};let _0x18c968,_0x2b7027;return db['VtigerConfiguration'][_0x14e4e6(0x16d)]({'where':{'id':_0x3fb890[_0x14e4e6(0x13d)]['id']}})[_0x14e4e6(0x15a)](handleEntityNotFound(_0x56bc33,null))['then'](function(_0x505d1e){const _0x1396b5=_0x14e4e6;if(_0x505d1e)return _0x18c968=_0x505d1e,_0x3487eb[_0x1396b5(0x13e)]=_[_0x1396b5(0x156)](db['VtigerField'][_0x1396b5(0x153)]),_0x3487eb[_0x1396b5(0x163)]=_[_0x1396b5(0x156)](_0x3fb890['query']),_0x3487eb[_0x1396b5(0x16a)]=_['intersection'](_0x3487eb['model'],_0x3487eb[_0x1396b5(0x163)]),_0x5cd657[_0x1396b5(0x164)]=_[_0x1396b5(0x146)](_0x3487eb[_0x1396b5(0x13e)],qs[_0x1396b5(0x159)](_0x3fb890[_0x1396b5(0x163)]['fields'])),_0x5cd657['attributes']=_0x5cd657[_0x1396b5(0x164)][_0x1396b5(0x15d)]?_0x5cd657[_0x1396b5(0x164)]:_0x3487eb[_0x1396b5(0x13e)],_0x5cd657[_0x1396b5(0x14c)]=qs['sort'](_0x3fb890[_0x1396b5(0x163)][_0x1396b5(0x165)]),_0x5cd657[_0x1396b5(0x141)]=qs['filters'](_['pick'](_0x3fb890[_0x1396b5(0x163)],_0x3487eb[_0x1396b5(0x16a)])),_0x3fb890[_0x1396b5(0x163)][_0x1396b5(0x166)]&&(_0x5cd657[_0x1396b5(0x141)]=_[_0x1396b5(0x13f)](_0x5cd657['where'],{[Op['or']]:_[_0x1396b5(0x15e)](_0x5cd657['attributes'],function(_0xbef40b){const _0x59cf3d=_0x1396b5,_0x3875c1={};return _0x3875c1[_0xbef40b]={[Op[_0x59cf3d(0x147)]]:'%'+_0x3fb890['query']['filter']+'%'},_0x3875c1;})})),_0x5cd657=_[_0x1396b5(0x13f)]({},_0x5cd657,_0x3fb890[_0x1396b5(0x161)]),_0x18c968[_0x1396b5(0x155)](_0x5cd657);})[_0x14e4e6(0x15a)](function(_0x51616b){const _0x5c5194=_0x14e4e6;if(_0x51616b)return _0x2b7027=_0x51616b['length'],typeof _0x3fb890[_0x5c5194(0x163)][_0x5c5194(0x152)]===_0x5c5194(0x160)&&(_0x5cd657['limit']=qs['limit'](_0x3fb890[_0x5c5194(0x163)]['limit']),_0x5cd657[_0x5c5194(0x14e)]=qs[_0x5c5194(0x14e)](_0x3fb890[_0x5c5194(0x163)][_0x5c5194(0x14e)])),_0x18c968['getFields'](_0x5cd657);})['then'](function(_0x545496){if(_0x545496)return _0x545496?{'count':_0x2b7027,'rows':_0x545496}:null;})[_0x14e4e6(0x15a)](respondWithResult(_0x56bc33,null))[_0x14e4e6(0x14d)](handleError(_0x56bc33,null));},exports['getSubjects']=function(_0x4ddffd,_0x38f53e){const _0xac50fb=a390_0x353f0b;let _0x67776b={};const _0x413e1b={};let _0x57153c,_0x4bb6ea;return db[_0xac50fb(0x13c)][_0xac50fb(0x16d)]({'where':{'id':_0x4ddffd[_0xac50fb(0x13d)]['id']}})[_0xac50fb(0x15a)](handleEntityNotFound(_0x38f53e,null))[_0xac50fb(0x15a)](function(_0x4cbf54){const _0x2bf005=_0xac50fb;if(_0x4cbf54)return _0x57153c=_0x4cbf54,_0x413e1b['model']=_[_0x2bf005(0x156)](db['VtigerField'][_0x2bf005(0x153)]),_0x413e1b['query']=_[_0x2bf005(0x156)](_0x4ddffd[_0x2bf005(0x163)]),_0x413e1b[_0x2bf005(0x16a)]=_[_0x2bf005(0x146)](_0x413e1b[_0x2bf005(0x13e)],_0x413e1b['query']),_0x67776b[_0x2bf005(0x164)]=_['intersection'](_0x413e1b[_0x2bf005(0x13e)],qs[_0x2bf005(0x159)](_0x4ddffd[_0x2bf005(0x163)][_0x2bf005(0x159)])),_0x67776b[_0x2bf005(0x164)]=_0x67776b[_0x2bf005(0x164)][_0x2bf005(0x15d)]?_0x67776b[_0x2bf005(0x164)]:_0x413e1b['model'],_0x67776b[_0x2bf005(0x14c)]=qs[_0x2bf005(0x165)](_0x4ddffd[_0x2bf005(0x163)][_0x2bf005(0x165)]),_0x67776b['where']=qs['filters'](_['pick'](_0x4ddffd[_0x2bf005(0x163)],_0x413e1b[_0x2bf005(0x16a)])),_0x4ddffd[_0x2bf005(0x163)][_0x2bf005(0x166)]&&(_0x67776b[_0x2bf005(0x141)]=_[_0x2bf005(0x13f)](_0x67776b[_0x2bf005(0x141)],{[Op['or']]:_[_0x2bf005(0x15e)](_0x67776b[_0x2bf005(0x164)],function(_0x5cba7b){const _0x3af30a=_0x2bf005,_0x4ae6a3={};return _0x4ae6a3[_0x5cba7b]={[Op[_0x3af30a(0x147)]]:'%'+_0x4ddffd[_0x3af30a(0x163)][_0x3af30a(0x166)]+'%'},_0x4ae6a3;})})),_0x67776b=_[_0x2bf005(0x13f)]({},_0x67776b,_0x4ddffd[_0x2bf005(0x161)]),_0x57153c['getSubjects'](_0x67776b);})[_0xac50fb(0x15a)](function(_0x920d86){const _0x1d91f2=_0xac50fb;if(_0x920d86)return _0x4bb6ea=_0x920d86['length'],typeof _0x4ddffd[_0x1d91f2(0x163)][_0x1d91f2(0x152)]==='undefined'&&(_0x67776b[_0x1d91f2(0x140)]=qs[_0x1d91f2(0x140)](_0x4ddffd[_0x1d91f2(0x163)][_0x1d91f2(0x140)]),_0x67776b['offset']=qs[_0x1d91f2(0x14e)](_0x4ddffd['query']['offset'])),_0x57153c['getSubjects'](_0x67776b);})[_0xac50fb(0x15a)](function(_0x3b65b1){if(_0x3b65b1)return _0x3b65b1?{'count':_0x4bb6ea,'rows':_0x3b65b1}:null;})[_0xac50fb(0x15a)](respondWithResult(_0x38f53e,null))[_0xac50fb(0x14d)](handleError(_0x38f53e,null));},exports[a390_0x353f0b(0x143)]=function(_0x3daf11,_0x812358){const _0x2381bc=a390_0x353f0b;let _0x13cead={};const _0x4cdd79={};let _0x8b27d6,_0x270f01;return db[_0x2381bc(0x13c)][_0x2381bc(0x16d)]({'where':{'id':_0x3daf11[_0x2381bc(0x13d)]['id']}})[_0x2381bc(0x15a)](handleEntityNotFound(_0x812358,null))[_0x2381bc(0x15a)](function(_0x58fbc9){const _0x3a4ca6=_0x2381bc;if(_0x58fbc9)return _0x8b27d6=_0x58fbc9,_0x4cdd79[_0x3a4ca6(0x13e)]=_[_0x3a4ca6(0x156)](db[_0x3a4ca6(0x168)][_0x3a4ca6(0x153)]),_0x4cdd79['query']=_[_0x3a4ca6(0x156)](_0x3daf11['query']),_0x4cdd79[_0x3a4ca6(0x16a)]=_[_0x3a4ca6(0x146)](_0x4cdd79[_0x3a4ca6(0x13e)],_0x4cdd79[_0x3a4ca6(0x163)]),_0x13cead[_0x3a4ca6(0x164)]=_[_0x3a4ca6(0x146)](_0x4cdd79[_0x3a4ca6(0x13e)],qs[_0x3a4ca6(0x159)](_0x3daf11[_0x3a4ca6(0x163)]['fields'])),_0x13cead[_0x3a4ca6(0x164)]=_0x13cead[_0x3a4ca6(0x164)][_0x3a4ca6(0x15d)]?_0x13cead[_0x3a4ca6(0x164)]:_0x4cdd79[_0x3a4ca6(0x13e)],_0x13cead[_0x3a4ca6(0x14c)]=qs[_0x3a4ca6(0x165)](_0x3daf11['query']['sort']),_0x13cead[_0x3a4ca6(0x141)]=qs['filters'](_[_0x3a4ca6(0x15c)](_0x3daf11['query'],_0x4cdd79[_0x3a4ca6(0x16a)])),_0x3daf11[_0x3a4ca6(0x163)][_0x3a4ca6(0x166)]&&(_0x13cead[_0x3a4ca6(0x141)]=_[_0x3a4ca6(0x13f)](_0x13cead[_0x3a4ca6(0x141)],{[Op['or']]:_['map'](_0x13cead['attributes'],function(_0x2ab440){const _0x5f2edd=_0x3a4ca6,_0x1beb0a={};return _0x1beb0a[_0x2ab440]={[Op[_0x5f2edd(0x147)]]:'%'+_0x3daf11[_0x5f2edd(0x163)][_0x5f2edd(0x166)]+'%'},_0x1beb0a;})})),_0x13cead=_[_0x3a4ca6(0x13f)]({},_0x13cead,_0x3daf11[_0x3a4ca6(0x161)]),_0x8b27d6['getDescriptions'](_0x13cead);})[_0x2381bc(0x15a)](function(_0x5099bd){const _0x4abbc2=_0x2381bc;if(_0x5099bd)return _0x270f01=_0x5099bd[_0x4abbc2(0x15d)],typeof _0x3daf11[_0x4abbc2(0x163)][_0x4abbc2(0x152)]===_0x4abbc2(0x160)&&(_0x13cead[_0x4abbc2(0x140)]=qs[_0x4abbc2(0x140)](_0x3daf11[_0x4abbc2(0x163)][_0x4abbc2(0x140)]),_0x13cead['offset']=qs[_0x4abbc2(0x14e)](_0x3daf11[_0x4abbc2(0x163)][_0x4abbc2(0x14e)])),_0x8b27d6[_0x4abbc2(0x143)](_0x13cead);})['then'](function(_0x58e8c7){if(_0x58e8c7)return _0x58e8c7?{'count':_0x270f01,'rows':_0x58e8c7}:null;})[_0x2381bc(0x15a)](respondWithResult(_0x812358,null))[_0x2381bc(0x14d)](handleError(_0x812358,null));}; \ No newline at end of file +const a390_0x3171=['fields','api','name','attributes','findOne','lodash','create','fieldName','catch','intersection','model','update','filters','pick','undefined','VtigerField','rows','getFields','../../mysqldb','offset','filter','body','index','order','../../components/parsers/qs','length','rawAttributes','set','getDescriptions','where','sendStatus','destroy','includeAll','like','status','getSubjects','sort','nolimit','count','include','limit','then','VtigerConfiguration','options','keys','params','send','query','map','merge'];(function(_0x2941a1,_0x55cd03){const _0x3171f6=function(_0x22934a){while(--_0x22934a){_0x2941a1['push'](_0x2941a1['shift']());}};_0x3171f6(++_0x55cd03);}(a390_0x3171,0xb6));const a390_0x2293=function(_0x2941a1,_0x55cd03){_0x2941a1=_0x2941a1-0x1ac;let _0x3171f6=a390_0x3171[_0x2941a1];return _0x3171f6;};const a390_0x439637=a390_0x2293;'use strict';const _=require(a390_0x439637(0x1c3)),qs=require(a390_0x439637(0x1d6)),logger=require('../../config/logger')(a390_0x439637(0x1bf)),{db}=require(a390_0x439637(0x1d0)),{Op}=require('sequelize');function respondWithResult(_0x270a0c,_0x28de69){return _0x28de69=_0x28de69||0xc8,function(_0x451b5b){const _0x505a6f=a390_0x2293;if(_0x451b5b)return _0x270a0c[_0x505a6f(0x1ae)](_0x28de69)['json'](_0x451b5b);};}function respondWithFilteredResult(_0x3ecc5b,_0x34c3c8){return function(_0x1cd1eb){const _0x35e4b7=a390_0x2293;if(_0x1cd1eb){const _0x13fe44=_0x1cd1eb[_0x35e4b7(0x1b2)],_0x10760f=_0x34c3c8['offset'];let _0x4f29c9=_0x34c3c8[_0x35e4b7(0x1d1)]+_0x34c3c8[_0x35e4b7(0x1b4)],_0x2599be;return _0x4f29c9>=_0x13fe44?(_0x4f29c9=_0x13fe44,_0x2599be=0xc8):_0x2599be=0xce,_0x3ecc5b[_0x35e4b7(0x1ae)](_0x2599be),_0x3ecc5b[_0x35e4b7(0x1d9)]('Content-Range',_0x10760f+'-'+_0x4f29c9+'/'+_0x13fe44)['json'](_0x1cd1eb);}return null;};}function saveUpdates(_0x78b2b6){return function(_0x468c50){const _0x26cda8=a390_0x2293;if(_0x468c50)return _0x468c50[_0x26cda8(0x1c9)](_0x78b2b6)[_0x26cda8(0x1b5)](function(_0x880bfb){return _0x880bfb;});return null;};}function removeEntity(_0x5ac035){return function(_0x6d88a1){if(_0x6d88a1)return _0x6d88a1['destroy']()['then'](function(){const _0x2d76a8=a390_0x2293;_0x5ac035[_0x2d76a8(0x1ae)](0xcc)['end']();});};}function handleEntityNotFound(_0x1d07ae){return function(_0xc727d6){const _0x59cf2d=a390_0x2293;return!_0xc727d6&&_0x1d07ae[_0x59cf2d(0x1dc)](0x194),_0xc727d6;};}function handleError(_0x104299,_0x120733){return _0x120733=_0x120733||0x1f4,function(_0x40f3b){const _0x38fd20=a390_0x2293;logger['error'](_0x40f3b['stack']),_0x40f3b[_0x38fd20(0x1c0)]&&delete _0x40f3b[_0x38fd20(0x1c0)],_0x104299['status'](_0x120733)[_0x38fd20(0x1ba)](_0x40f3b);};}exports[a390_0x439637(0x1d4)]=function(_0xa1c77b,_0x7db95a){const _0xab7912=a390_0x439637;let _0x3713b8={};const _0x541d94={},_0x3fadc6={'count':0x0,'rows':[]},_0x5a4f2c=_[_0xab7912(0x1bc)](db[_0xab7912(0x1b6)][_0xab7912(0x1d8)],function(_0x10185b){const _0x47f72a=_0xab7912;return{'name':_0x10185b[_0x47f72a(0x1c5)],'type':_0x10185b['type']['key']};});_0x541d94['model']=_[_0xab7912(0x1bc)](_0x5a4f2c,_0xab7912(0x1c0)),_0x541d94['query']=_[_0xab7912(0x1b8)](_0xa1c77b[_0xab7912(0x1bb)]),_0x541d94[_0xab7912(0x1ca)]=_['intersection'](_0x541d94[_0xab7912(0x1c8)],_0x541d94[_0xab7912(0x1bb)]),_0x3713b8[_0xab7912(0x1c1)]=_[_0xab7912(0x1c7)](_0x541d94[_0xab7912(0x1c8)],qs[_0xab7912(0x1be)](_0xa1c77b[_0xab7912(0x1bb)][_0xab7912(0x1be)])),_0x3713b8[_0xab7912(0x1c1)]=_0x3713b8[_0xab7912(0x1c1)]['length']?_0x3713b8[_0xab7912(0x1c1)]:_0x541d94[_0xab7912(0x1c8)];typeof _0xa1c77b[_0xab7912(0x1bb)]['nolimit']===_0xab7912(0x1cc)&&(_0x3713b8[_0xab7912(0x1b4)]=qs[_0xab7912(0x1b4)](_0xa1c77b[_0xab7912(0x1bb)][_0xab7912(0x1b4)]),_0x3713b8[_0xab7912(0x1d1)]=qs[_0xab7912(0x1d1)](_0xa1c77b['query'][_0xab7912(0x1d1)]));_0x3713b8[_0xab7912(0x1d5)]=qs[_0xab7912(0x1b0)](_0xa1c77b[_0xab7912(0x1bb)][_0xab7912(0x1b0)]),_0x3713b8[_0xab7912(0x1db)]=qs['filters'](_[_0xab7912(0x1cb)](_0xa1c77b['query'],_0x541d94['filters']),_0x5a4f2c);_0xa1c77b[_0xab7912(0x1bb)][_0xab7912(0x1d2)]&&(_0x3713b8[_0xab7912(0x1db)]=_[_0xab7912(0x1bd)](_0x3713b8[_0xab7912(0x1db)],{[Op['or']]:_[_0xab7912(0x1bc)](_0x5a4f2c,function(_0x90a513){const _0x257334=_0xab7912;if(_0x90a513['type']!=='VIRTUAL'){const _0x35540f={};return _0x35540f[_0x90a513[_0x257334(0x1c0)]]={[Op[_0x257334(0x1ad)]]:'%'+_0xa1c77b[_0x257334(0x1bb)]['filter']+'%'},_0x35540f;}})}));_0x3713b8=_[_0xab7912(0x1bd)]({},_0x3713b8,_0xa1c77b[_0xab7912(0x1b7)]);const _0x1bc7c6={'where':_0x3713b8[_0xab7912(0x1db)]};return db[_0xab7912(0x1b6)]['count'](_0x1bc7c6)['then'](function(_0x454aeb){const _0x2fd9aa=_0xab7912;return _0x3fadc6[_0x2fd9aa(0x1b2)]=_0x454aeb,_0xa1c77b[_0x2fd9aa(0x1bb)][_0x2fd9aa(0x1ac)]&&(_0x3713b8['include']=[{'all':!![]}]),db['VtigerConfiguration']['findAll'](_0x3713b8);})[_0xab7912(0x1b5)](function(_0x310d71){const _0x2b1c47=_0xab7912;return _0x3fadc6[_0x2b1c47(0x1ce)]=_0x310d71,_0x3fadc6;})[_0xab7912(0x1b5)](respondWithFilteredResult(_0x7db95a,_0x3713b8))[_0xab7912(0x1c6)](handleError(_0x7db95a,null));},exports['show']=function(_0x480d80,_0x4c37b3){const _0x54b3fb=a390_0x439637;let _0x5318c2={'raw':![],'where':{'id':_0x480d80[_0x54b3fb(0x1b9)]['id']}};const _0x248e51={};return _0x248e51[_0x54b3fb(0x1c8)]=_[_0x54b3fb(0x1b8)](db['VtigerConfiguration'][_0x54b3fb(0x1d8)]),_0x248e51['query']=_['keys'](_0x480d80[_0x54b3fb(0x1bb)]),_0x248e51[_0x54b3fb(0x1ca)]=_[_0x54b3fb(0x1c7)](_0x248e51['model'],_0x248e51['query']),_0x5318c2[_0x54b3fb(0x1c1)]=_[_0x54b3fb(0x1c7)](_0x248e51['model'],qs['fields'](_0x480d80['query'][_0x54b3fb(0x1be)])),_0x5318c2[_0x54b3fb(0x1c1)]=_0x5318c2[_0x54b3fb(0x1c1)][_0x54b3fb(0x1d7)]?_0x5318c2[_0x54b3fb(0x1c1)]:_0x248e51[_0x54b3fb(0x1c8)],_0x480d80['query'][_0x54b3fb(0x1ac)]&&(_0x5318c2[_0x54b3fb(0x1b3)]=[{'all':!![]}]),_0x5318c2=_['merge']({},_0x5318c2,_0x480d80[_0x54b3fb(0x1b7)]),db['VtigerConfiguration']['findOne'](_0x5318c2)['then'](handleEntityNotFound(_0x4c37b3,null))[_0x54b3fb(0x1b5)](respondWithResult(_0x4c37b3,null))[_0x54b3fb(0x1c6)](handleError(_0x4c37b3,null));},exports[a390_0x439637(0x1c4)]=function(_0x5e8bdd,_0x4f8a88){const _0x565b52=a390_0x439637;return db['VtigerConfiguration'][_0x565b52(0x1c4)](_0x5e8bdd[_0x565b52(0x1d3)],{})[_0x565b52(0x1b5)](respondWithResult(_0x4f8a88,0xc9))[_0x565b52(0x1c6)](handleError(_0x4f8a88,null));},exports['update']=function(_0xe483dc,_0x41fc1b){const _0x21ff5f=a390_0x439637;return _0xe483dc[_0x21ff5f(0x1d3)]['id']&&delete _0xe483dc[_0x21ff5f(0x1d3)]['id'],db[_0x21ff5f(0x1b6)][_0x21ff5f(0x1c2)]({'where':{'id':_0xe483dc[_0x21ff5f(0x1b9)]['id']}})['then'](handleEntityNotFound(_0x41fc1b,null))[_0x21ff5f(0x1b5)](saveUpdates(_0xe483dc[_0x21ff5f(0x1d3)],null))[_0x21ff5f(0x1b5)](respondWithResult(_0x41fc1b,null))['catch'](handleError(_0x41fc1b,null));},exports[a390_0x439637(0x1dd)]=function(_0x231f4b,_0x1497a5){const _0x1c0d30=a390_0x439637;return db[_0x1c0d30(0x1b6)]['findOne']({'where':{'id':_0x231f4b[_0x1c0d30(0x1b9)]['id']}})[_0x1c0d30(0x1b5)](handleEntityNotFound(_0x1497a5,null))['then'](removeEntity(_0x1497a5,null))['catch'](handleError(_0x1497a5,null));},exports['getFields']=function(_0x388db2,_0x53a185){const _0x5bd2cc=a390_0x439637;let _0xcfcb4d={};const _0x5b945f={};let _0x2ca75c,_0x20cf21;return db['VtigerConfiguration']['findOne']({'where':{'id':_0x388db2[_0x5bd2cc(0x1b9)]['id']}})[_0x5bd2cc(0x1b5)](handleEntityNotFound(_0x53a185,null))[_0x5bd2cc(0x1b5)](function(_0x13af6a){const _0x35dbe5=_0x5bd2cc;if(_0x13af6a)return _0x2ca75c=_0x13af6a,_0x5b945f[_0x35dbe5(0x1c8)]=_['keys'](db[_0x35dbe5(0x1cd)][_0x35dbe5(0x1d8)]),_0x5b945f[_0x35dbe5(0x1bb)]=_[_0x35dbe5(0x1b8)](_0x388db2[_0x35dbe5(0x1bb)]),_0x5b945f[_0x35dbe5(0x1ca)]=_[_0x35dbe5(0x1c7)](_0x5b945f['model'],_0x5b945f[_0x35dbe5(0x1bb)]),_0xcfcb4d[_0x35dbe5(0x1c1)]=_[_0x35dbe5(0x1c7)](_0x5b945f['model'],qs['fields'](_0x388db2[_0x35dbe5(0x1bb)][_0x35dbe5(0x1be)])),_0xcfcb4d[_0x35dbe5(0x1c1)]=_0xcfcb4d['attributes'][_0x35dbe5(0x1d7)]?_0xcfcb4d[_0x35dbe5(0x1c1)]:_0x5b945f[_0x35dbe5(0x1c8)],_0xcfcb4d['order']=qs[_0x35dbe5(0x1b0)](_0x388db2[_0x35dbe5(0x1bb)][_0x35dbe5(0x1b0)]),_0xcfcb4d[_0x35dbe5(0x1db)]=qs['filters'](_[_0x35dbe5(0x1cb)](_0x388db2[_0x35dbe5(0x1bb)],_0x5b945f[_0x35dbe5(0x1ca)])),_0x388db2[_0x35dbe5(0x1bb)][_0x35dbe5(0x1d2)]&&(_0xcfcb4d['where']=_[_0x35dbe5(0x1bd)](_0xcfcb4d[_0x35dbe5(0x1db)],{[Op['or']]:_[_0x35dbe5(0x1bc)](_0xcfcb4d[_0x35dbe5(0x1c1)],function(_0x35418f){const _0x1b8539=_0x35dbe5,_0x506e81={};return _0x506e81[_0x35418f]={[Op[_0x1b8539(0x1ad)]]:'%'+_0x388db2[_0x1b8539(0x1bb)]['filter']+'%'},_0x506e81;})})),_0xcfcb4d=_[_0x35dbe5(0x1bd)]({},_0xcfcb4d,_0x388db2['options']),_0x2ca75c['getFields'](_0xcfcb4d);})[_0x5bd2cc(0x1b5)](function(_0x5921e1){const _0x4bf721=_0x5bd2cc;if(_0x5921e1)return _0x20cf21=_0x5921e1[_0x4bf721(0x1d7)],typeof _0x388db2[_0x4bf721(0x1bb)][_0x4bf721(0x1b1)]===_0x4bf721(0x1cc)&&(_0xcfcb4d[_0x4bf721(0x1b4)]=qs['limit'](_0x388db2[_0x4bf721(0x1bb)][_0x4bf721(0x1b4)]),_0xcfcb4d[_0x4bf721(0x1d1)]=qs[_0x4bf721(0x1d1)](_0x388db2[_0x4bf721(0x1bb)][_0x4bf721(0x1d1)])),_0x2ca75c[_0x4bf721(0x1cf)](_0xcfcb4d);})[_0x5bd2cc(0x1b5)](function(_0x3e1087){if(_0x3e1087)return _0x3e1087?{'count':_0x20cf21,'rows':_0x3e1087}:null;})[_0x5bd2cc(0x1b5)](respondWithResult(_0x53a185,null))[_0x5bd2cc(0x1c6)](handleError(_0x53a185,null));},exports[a390_0x439637(0x1af)]=function(_0x3788d1,_0x38fd5c){const _0x212d94=a390_0x439637;let _0x2949c5={};const _0x5c9597={};let _0x27d1c6,_0xf9760d;return db['VtigerConfiguration'][_0x212d94(0x1c2)]({'where':{'id':_0x3788d1[_0x212d94(0x1b9)]['id']}})[_0x212d94(0x1b5)](handleEntityNotFound(_0x38fd5c,null))[_0x212d94(0x1b5)](function(_0x35cb22){const _0x3d5606=_0x212d94;if(_0x35cb22)return _0x27d1c6=_0x35cb22,_0x5c9597['model']=_['keys'](db[_0x3d5606(0x1cd)][_0x3d5606(0x1d8)]),_0x5c9597[_0x3d5606(0x1bb)]=_[_0x3d5606(0x1b8)](_0x3788d1['query']),_0x5c9597[_0x3d5606(0x1ca)]=_[_0x3d5606(0x1c7)](_0x5c9597[_0x3d5606(0x1c8)],_0x5c9597['query']),_0x2949c5['attributes']=_[_0x3d5606(0x1c7)](_0x5c9597['model'],qs['fields'](_0x3788d1[_0x3d5606(0x1bb)]['fields'])),_0x2949c5[_0x3d5606(0x1c1)]=_0x2949c5['attributes'][_0x3d5606(0x1d7)]?_0x2949c5[_0x3d5606(0x1c1)]:_0x5c9597['model'],_0x2949c5[_0x3d5606(0x1d5)]=qs[_0x3d5606(0x1b0)](_0x3788d1[_0x3d5606(0x1bb)][_0x3d5606(0x1b0)]),_0x2949c5[_0x3d5606(0x1db)]=qs['filters'](_[_0x3d5606(0x1cb)](_0x3788d1[_0x3d5606(0x1bb)],_0x5c9597['filters'])),_0x3788d1['query']['filter']&&(_0x2949c5['where']=_[_0x3d5606(0x1bd)](_0x2949c5[_0x3d5606(0x1db)],{[Op['or']]:_[_0x3d5606(0x1bc)](_0x2949c5[_0x3d5606(0x1c1)],function(_0x3275f5){const _0x376823=_0x3d5606,_0x447241={};return _0x447241[_0x3275f5]={[Op['like']]:'%'+_0x3788d1['query'][_0x376823(0x1d2)]+'%'},_0x447241;})})),_0x2949c5=_[_0x3d5606(0x1bd)]({},_0x2949c5,_0x3788d1['options']),_0x27d1c6[_0x3d5606(0x1af)](_0x2949c5);})[_0x212d94(0x1b5)](function(_0xc27286){const _0x903315=_0x212d94;if(_0xc27286)return _0xf9760d=_0xc27286[_0x903315(0x1d7)],typeof _0x3788d1['query']['nolimit']==='undefined'&&(_0x2949c5[_0x903315(0x1b4)]=qs[_0x903315(0x1b4)](_0x3788d1['query'][_0x903315(0x1b4)]),_0x2949c5[_0x903315(0x1d1)]=qs[_0x903315(0x1d1)](_0x3788d1[_0x903315(0x1bb)][_0x903315(0x1d1)])),_0x27d1c6[_0x903315(0x1af)](_0x2949c5);})[_0x212d94(0x1b5)](function(_0x53befe){if(_0x53befe)return _0x53befe?{'count':_0xf9760d,'rows':_0x53befe}:null;})['then'](respondWithResult(_0x38fd5c,null))[_0x212d94(0x1c6)](handleError(_0x38fd5c,null));},exports[a390_0x439637(0x1da)]=function(_0xb6e797,_0x6aa250){const _0x831438=a390_0x439637;let _0x13cef6={};const _0x34f22f={};let _0x5e671e,_0x58dc0b;return db[_0x831438(0x1b6)][_0x831438(0x1c2)]({'where':{'id':_0xb6e797['params']['id']}})['then'](handleEntityNotFound(_0x6aa250,null))[_0x831438(0x1b5)](function(_0x307625){const _0x200b92=_0x831438;if(_0x307625)return _0x5e671e=_0x307625,_0x34f22f[_0x200b92(0x1c8)]=_[_0x200b92(0x1b8)](db[_0x200b92(0x1cd)][_0x200b92(0x1d8)]),_0x34f22f[_0x200b92(0x1bb)]=_['keys'](_0xb6e797[_0x200b92(0x1bb)]),_0x34f22f[_0x200b92(0x1ca)]=_['intersection'](_0x34f22f['model'],_0x34f22f[_0x200b92(0x1bb)]),_0x13cef6[_0x200b92(0x1c1)]=_['intersection'](_0x34f22f['model'],qs['fields'](_0xb6e797[_0x200b92(0x1bb)][_0x200b92(0x1be)])),_0x13cef6[_0x200b92(0x1c1)]=_0x13cef6[_0x200b92(0x1c1)][_0x200b92(0x1d7)]?_0x13cef6[_0x200b92(0x1c1)]:_0x34f22f[_0x200b92(0x1c8)],_0x13cef6[_0x200b92(0x1d5)]=qs[_0x200b92(0x1b0)](_0xb6e797[_0x200b92(0x1bb)]['sort']),_0x13cef6['where']=qs['filters'](_[_0x200b92(0x1cb)](_0xb6e797[_0x200b92(0x1bb)],_0x34f22f[_0x200b92(0x1ca)])),_0xb6e797[_0x200b92(0x1bb)]['filter']&&(_0x13cef6[_0x200b92(0x1db)]=_[_0x200b92(0x1bd)](_0x13cef6['where'],{[Op['or']]:_[_0x200b92(0x1bc)](_0x13cef6[_0x200b92(0x1c1)],function(_0x1ab8d4){const _0xae229e=_0x200b92,_0x5dc6d3={};return _0x5dc6d3[_0x1ab8d4]={[Op[_0xae229e(0x1ad)]]:'%'+_0xb6e797['query'][_0xae229e(0x1d2)]+'%'},_0x5dc6d3;})})),_0x13cef6=_[_0x200b92(0x1bd)]({},_0x13cef6,_0xb6e797[_0x200b92(0x1b7)]),_0x5e671e[_0x200b92(0x1da)](_0x13cef6);})[_0x831438(0x1b5)](function(_0x136c5f){const _0x3a4e0a=_0x831438;if(_0x136c5f)return _0x58dc0b=_0x136c5f[_0x3a4e0a(0x1d7)],typeof _0xb6e797[_0x3a4e0a(0x1bb)][_0x3a4e0a(0x1b1)]===_0x3a4e0a(0x1cc)&&(_0x13cef6[_0x3a4e0a(0x1b4)]=qs['limit'](_0xb6e797[_0x3a4e0a(0x1bb)][_0x3a4e0a(0x1b4)]),_0x13cef6['offset']=qs[_0x3a4e0a(0x1d1)](_0xb6e797['query'][_0x3a4e0a(0x1d1)])),_0x5e671e[_0x3a4e0a(0x1da)](_0x13cef6);})[_0x831438(0x1b5)](function(_0x55d19e){if(_0x55d19e)return _0x55d19e?{'count':_0x58dc0b,'rows':_0x55d19e}:null;})[_0x831438(0x1b5)](respondWithResult(_0x6aa250,null))[_0x831438(0x1c6)](handleError(_0x6aa250,null));}; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js index fe3ebfe..8fc5a6f 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js @@ -1 +1 @@ -const a391_0x4d19=['./intVtigerConfiguration.attributes','exports','sequelize','VtigerConfiguration','init','function'];(function(_0x351e85,_0x24fcfd){const _0x4d194b=function(_0x570c42){while(--_0x570c42){_0x351e85['push'](_0x351e85['shift']());}};_0x4d194b(++_0x24fcfd);}(a391_0x4d19,0xf3));const a391_0x570c=function(_0x351e85,_0x24fcfd){_0x351e85=_0x351e85-0x14b;let _0x4d194b=a391_0x4d19[_0x351e85];return _0x4d194b;};const a391_0x4f3fe1=a391_0x570c;'use strict';const {Model}=require(a391_0x4f3fe1(0x150)),{attributes}=require(a391_0x4f3fe1(0x14e)),{options}=require('./intVtigerConfiguration.options');class VtigerConfiguration extends Model{}function init(_0x44ba8c,_0x1a1ceb){const _0x56f571=a391_0x4f3fe1,_0x56bd18=options(_0x44ba8c),_0x4add98=typeof _0x1a1ceb===_0x56f571(0x14d)?_0x1a1ceb(_0x56bd18):_0x56bd18;return VtigerConfiguration[_0x56f571(0x14c)](attributes,_0x4add98),VtigerConfiguration;}module['exports'][a391_0x4f3fe1(0x14b)]=VtigerConfiguration,module[a391_0x4f3fe1(0x14f)][a391_0x4f3fe1(0x14c)]=init; \ No newline at end of file +const a391_0x2813=['exports','VtigerConfiguration','sequelize','./intVtigerConfiguration.options','init','./intVtigerConfiguration.attributes'];(function(_0x3fcf4f,_0x704997){const _0x281374=function(_0x5c6be4){while(--_0x5c6be4){_0x3fcf4f['push'](_0x3fcf4f['shift']());}};_0x281374(++_0x704997);}(a391_0x2813,0x100));const a391_0x5c6b=function(_0x3fcf4f,_0x704997){_0x3fcf4f=_0x3fcf4f-0x19f;let _0x281374=a391_0x2813[_0x3fcf4f];return _0x281374;};const a391_0x17e049=a391_0x5c6b;'use strict';const {Model}=require(a391_0x17e049(0x1a3)),{attributes}=require(a391_0x17e049(0x1a0)),{options}=require(a391_0x17e049(0x1a4));class VtigerConfiguration extends Model{}function init(_0x40edf0,_0x2df4f2){const _0x5c4522=options(_0x40edf0),_0x581ecd=typeof _0x2df4f2==='function'?_0x2df4f2(_0x5c4522):_0x5c4522;return VtigerConfiguration['init'](attributes,_0x581ecd),VtigerConfiguration;}module['exports'][a391_0x17e049(0x1a2)]=VtigerConfiguration,module[a391_0x17e049(0x1a1)][a391_0x17e049(0x19f)]=init; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.options.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.options.js index f7434f8..3c34ad2 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.options.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.options.js @@ -1 +1 @@ -var a392_0x342e=['int_vtiger_configurations','options'];(function(_0x496863,_0x55488b){var _0x342e3a=function(_0x5db4f5){while(--_0x5db4f5){_0x496863['push'](_0x496863['shift']());}};_0x342e3a(++_0x55488b);}(a392_0x342e,0x89));var a392_0x5db4=function(_0x496863,_0x55488b){_0x496863=_0x496863-0x7c;var _0x342e3a=a392_0x342e[_0x496863];return _0x342e3a;};var a392_0x215257=a392_0x5db4;function options(_0x179100){var _0x363123=a392_0x5db4;return{'sequelize':_0x179100,'tableName':_0x363123(0x7d),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a392_0x215257(0x7c)]=options; \ No newline at end of file +var a392_0x5605=['options','exports','int_vtiger_configurations'];(function(_0x1fbc3e,_0xa0d8f8){var _0x560521=function(_0x3e8022){while(--_0x3e8022){_0x1fbc3e['push'](_0x1fbc3e['shift']());}};_0x560521(++_0xa0d8f8);}(a392_0x5605,0xbd));var a392_0x3e80=function(_0x1fbc3e,_0xa0d8f8){_0x1fbc3e=_0x1fbc3e-0x17c;var _0x560521=a392_0x5605[_0x1fbc3e];return _0x560521;};var a392_0x348734=a392_0x3e80;function options(_0x2124c9){var _0x15434a=a392_0x3e80;return{'sequelize':_0x2124c9,'tableName':_0x15434a(0x17e),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a392_0x348734(0x17d)][a392_0x348734(0x17c)]=options; \ No newline at end of file diff --git a/server/api/intVtigerField/index.js b/server/api/intVtigerField/index.js index d550e5a..067a7a3 100644 --- a/server/api/intVtigerField/index.js +++ b/server/api/intVtigerField/index.js @@ -1 +1 @@ -const a393_0x43f5=['isAuthenticated','post','get','create','update','../../components/auth/service','express','put','Router','destroy','/:id','./intVtigerField.controller','delete','index'];(function(_0xbe013f,_0x1d5f5f){const _0x43f582=function(_0x19b88c){while(--_0x19b88c){_0xbe013f['push'](_0xbe013f['shift']());}};_0x43f582(++_0x1d5f5f);}(a393_0x43f5,0x16c));const a393_0x19b8=function(_0xbe013f,_0x1d5f5f){_0xbe013f=_0xbe013f-0x144;let _0x43f582=a393_0x43f5[_0xbe013f];return _0x43f582;};const a393_0x2ce3b7=a393_0x19b8;'use strict';const express=require(a393_0x2ce3b7(0x14a)),router=express[a393_0x2ce3b7(0x14c)](),auth=require(a393_0x2ce3b7(0x149)),controller=require(a393_0x2ce3b7(0x14f));router[a393_0x2ce3b7(0x146)]('/',auth['isAuthenticated'](),controller[a393_0x2ce3b7(0x151)]),router[a393_0x2ce3b7(0x146)](a393_0x2ce3b7(0x14e),auth[a393_0x2ce3b7(0x144)](),controller['show']),router[a393_0x2ce3b7(0x145)]('/',auth[a393_0x2ce3b7(0x144)](),controller[a393_0x2ce3b7(0x147)]),router[a393_0x2ce3b7(0x14b)](a393_0x2ce3b7(0x14e),auth['isAuthenticated'](),controller[a393_0x2ce3b7(0x148)]),router[a393_0x2ce3b7(0x150)](a393_0x2ce3b7(0x14e),auth['isAuthenticated'](),controller[a393_0x2ce3b7(0x14d)]),module['exports']=router; \ No newline at end of file +const a393_0x538e=['./intVtigerField.controller','delete','../../components/auth/service','update','Router','index','get','/:id','express','show','isAuthenticated','destroy'];(function(_0x4c6f99,_0x534bea){const _0x538e6e=function(_0x1c7cce){while(--_0x1c7cce){_0x4c6f99['push'](_0x4c6f99['shift']());}};_0x538e6e(++_0x534bea);}(a393_0x538e,0x11c));const a393_0x1c7c=function(_0x4c6f99,_0x534bea){_0x4c6f99=_0x4c6f99-0x12e;let _0x538e6e=a393_0x538e[_0x4c6f99];return _0x538e6e;};const a393_0x512ab8=a393_0x1c7c;'use strict';const express=require(a393_0x512ab8(0x12e)),router=express[a393_0x512ab8(0x136)](),auth=require(a393_0x512ab8(0x134)),controller=require(a393_0x512ab8(0x132));router[a393_0x512ab8(0x138)]('/',auth[a393_0x512ab8(0x130)](),controller[a393_0x512ab8(0x137)]),router['get'](a393_0x512ab8(0x139),auth['isAuthenticated'](),controller[a393_0x512ab8(0x12f)]),router['post']('/',auth[a393_0x512ab8(0x130)](),controller['create']),router['put'](a393_0x512ab8(0x139),auth[a393_0x512ab8(0x130)](),controller[a393_0x512ab8(0x135)]),router[a393_0x512ab8(0x133)](a393_0x512ab8(0x139),auth[a393_0x512ab8(0x130)](),controller[a393_0x512ab8(0x131)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intVtigerField/intVtigerField.attributes.js b/server/api/intVtigerField/intVtigerField.attributes.js index af7ae89..430c075 100644 --- a/server/api/intVtigerField/intVtigerField.attributes.js +++ b/server/api/intVtigerField/intVtigerField.attributes.js @@ -1 +1 @@ -const a394_0x3abb=['attributes','keyValue','string','sequelize','customVariable','STRING','ENUM'];(function(_0x2df94c,_0x1a9bd7){const _0x3abbd3=function(_0x11fedd){while(--_0x11fedd){_0x2df94c['push'](_0x2df94c['shift']());}};_0x3abbd3(++_0x1a9bd7);}(a394_0x3abb,0x16b));const a394_0x11fe=function(_0x2df94c,_0x1a9bd7){_0x2df94c=_0x2df94c-0x7b;let _0x3abbd3=a394_0x3abb[_0x2df94c];return _0x3abbd3;};const a394_0x487b83=a394_0x11fe;'use strict';const {DataTypes}=require(a394_0x487b83(0x7f)),attributes={'type':{'type':DataTypes[a394_0x487b83(0x7b)](a394_0x487b83(0x7e),'variable',a394_0x487b83(0x80),a394_0x487b83(0x7d)),'defaultValue':a394_0x487b83(0x7e)},'content':{'type':DataTypes[a394_0x487b83(0x81)]},'key':{'type':DataTypes['STRING']},'keyType':{'type':DataTypes[a394_0x487b83(0x7b)](a394_0x487b83(0x7e),'variable','customVariable')},'keyContent':{'type':DataTypes[a394_0x487b83(0x81)]},'idField':{'type':DataTypes['STRING']},'nameField':{'type':DataTypes['STRING']},'customField':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':DataTypes[a394_0x487b83(0x81)]}};module['exports'][a394_0x487b83(0x7c)]=attributes; \ No newline at end of file +const a394_0x4309=['ENUM','string','BOOLEAN','customVariable','exports','STRING','attributes','variable','keyValue'];(function(_0x2f7afb,_0x2fff4b){const _0x4309e8=function(_0x588e8e){while(--_0x588e8e){_0x2f7afb['push'](_0x2f7afb['shift']());}};_0x4309e8(++_0x2fff4b);}(a394_0x4309,0x1e1));const a394_0x588e=function(_0x2f7afb,_0x2fff4b){_0x2f7afb=_0x2f7afb-0x17b;let _0x4309e8=a394_0x4309[_0x2f7afb];return _0x4309e8;};const a394_0x57cd0c=a394_0x588e;'use strict';const {DataTypes}=require('sequelize'),attributes={'type':{'type':DataTypes[a394_0x57cd0c(0x180)]('string',a394_0x57cd0c(0x17e),a394_0x57cd0c(0x183),a394_0x57cd0c(0x17f)),'defaultValue':a394_0x57cd0c(0x181)},'content':{'type':DataTypes[a394_0x57cd0c(0x17c)]},'key':{'type':DataTypes['STRING']},'keyType':{'type':DataTypes[a394_0x57cd0c(0x180)]('string',a394_0x57cd0c(0x17e),a394_0x57cd0c(0x183))},'keyContent':{'type':DataTypes['STRING']},'idField':{'type':DataTypes[a394_0x57cd0c(0x17c)]},'nameField':{'type':DataTypes[a394_0x57cd0c(0x17c)]},'customField':{'type':DataTypes[a394_0x57cd0c(0x182)],'defaultValue':!![]},'variableName':{'type':DataTypes[a394_0x57cd0c(0x17c)]}};module[a394_0x57cd0c(0x17b)][a394_0x57cd0c(0x17d)]=attributes; \ No newline at end of file diff --git a/server/api/intVtigerField/intVtigerField.controller.js b/server/api/intVtigerField/intVtigerField.controller.js index fb253b1..d9c5d69 100644 --- a/server/api/intVtigerField/intVtigerField.controller.js +++ b/server/api/intVtigerField/intVtigerField.controller.js @@ -1 +1 @@ -const a395_0x1555=['offset','body','name','filter','Content-Range','filters','query','like','fields','end','merge','undefined','keys','findOne','rows','limit','then','params','json','fieldName','set','lodash','update','VIRTUAL','sendStatus','create','show','where','status','../../components/parsers/qs','send','pick','order','sort','model','includeAll','key','index','count','api','sequelize','../../mysqldb','intersection','include','options','../../config/logger','VtigerField','map','attributes','stack','catch','error','findAll','type'];(function(_0x51499c,_0x1cb146){const _0x155537=function(_0x2001b4){while(--_0x2001b4){_0x51499c['push'](_0x51499c['shift']());}};_0x155537(++_0x1cb146);}(a395_0x1555,0x1f4));const a395_0x2001=function(_0x51499c,_0x1cb146){_0x51499c=_0x51499c-0x1a8;let _0x155537=a395_0x1555[_0x51499c];return _0x155537;};const a395_0x17914a=a395_0x2001;'use strict';const _=require(a395_0x17914a(0x1af)),qs=require(a395_0x17914a(0x1b7)),logger=require(a395_0x17914a(0x1c7))(a395_0x17914a(0x1c1)),{db}=require(a395_0x17914a(0x1c3)),{Op}=require(a395_0x17914a(0x1c2));function respondWithResult(_0x5449f0,_0x3341da){return _0x3341da=_0x3341da||0xc8,function(_0x5d3a95){const _0x33e528=a395_0x2001;if(_0x5d3a95)return _0x5449f0[_0x33e528(0x1b6)](_0x3341da)[_0x33e528(0x1ac)](_0x5d3a95);};}function respondWithFilteredResult(_0xdb9201,_0x119a48){return function(_0xc0a122){const _0x29470a=a395_0x2001;if(_0xc0a122){const _0x2755f8=_0xc0a122[_0x29470a(0x1c0)],_0x105b78=_0x119a48[_0x29470a(0x1d0)];let _0x287b69=_0x119a48[_0x29470a(0x1d0)]+_0x119a48[_0x29470a(0x1a9)],_0x2567ee;return _0x287b69>=_0x2755f8?(_0x287b69=_0x2755f8,_0x2567ee=0xc8):_0x2567ee=0xce,_0xdb9201[_0x29470a(0x1b6)](_0x2567ee),_0xdb9201[_0x29470a(0x1ae)](_0x29470a(0x1d4),_0x105b78+'-'+_0x287b69+'/'+_0x2755f8)[_0x29470a(0x1ac)](_0xc0a122);}return null;};}function saveUpdates(_0x2e2a08){return function(_0x5ad5a7){const _0x12eb89=a395_0x2001;if(_0x5ad5a7)return _0x5ad5a7[_0x12eb89(0x1b0)](_0x2e2a08)[_0x12eb89(0x1aa)](function(_0x2f8d0){return _0x2f8d0;});return null;};}function removeEntity(_0x488713){return function(_0x5d4be2){if(_0x5d4be2)return _0x5d4be2['destroy']()['then'](function(){const _0x2776a4=a395_0x2001;_0x488713[_0x2776a4(0x1b6)](0xcc)[_0x2776a4(0x1d9)]();});};}function handleEntityNotFound(_0x4120e7){return function(_0x4085fd){const _0x45ad9b=a395_0x2001;return!_0x4085fd&&_0x4120e7[_0x45ad9b(0x1b2)](0x194),_0x4085fd;};}function handleError(_0xc28aa5,_0x869a3b){return _0x869a3b=_0x869a3b||0x1f4,function(_0xf44f9){const _0x13d43f=a395_0x2001;logger[_0x13d43f(0x1cd)](_0xf44f9[_0x13d43f(0x1cb)]),_0xf44f9[_0x13d43f(0x1d2)]&&delete _0xf44f9['name'],_0xc28aa5['status'](_0x869a3b)[_0x13d43f(0x1b8)](_0xf44f9);};}exports[a395_0x17914a(0x1bf)]=function(_0x3b3323,_0xd796d6){const _0x2966e9=a395_0x17914a;let _0x1cd28b={};const _0x409a6d={},_0x556d6f={'count':0x0,'rows':[]},_0x3f789c=_[_0x2966e9(0x1c9)](db[_0x2966e9(0x1c8)]['rawAttributes'],function(_0x522520){const _0x53255c=_0x2966e9;return{'name':_0x522520[_0x53255c(0x1ad)],'type':_0x522520[_0x53255c(0x1cf)][_0x53255c(0x1be)]};});_0x409a6d['model']=_['map'](_0x3f789c,'name'),_0x409a6d[_0x2966e9(0x1d6)]=_['keys'](_0x3b3323[_0x2966e9(0x1d6)]),_0x409a6d[_0x2966e9(0x1d5)]=_[_0x2966e9(0x1c4)](_0x409a6d['model'],_0x409a6d[_0x2966e9(0x1d6)]),_0x1cd28b[_0x2966e9(0x1ca)]=_[_0x2966e9(0x1c4)](_0x409a6d[_0x2966e9(0x1bc)],qs['fields'](_0x3b3323[_0x2966e9(0x1d6)][_0x2966e9(0x1d8)])),_0x1cd28b[_0x2966e9(0x1ca)]=_0x1cd28b[_0x2966e9(0x1ca)]['length']?_0x1cd28b[_0x2966e9(0x1ca)]:_0x409a6d[_0x2966e9(0x1bc)];typeof _0x3b3323[_0x2966e9(0x1d6)]['nolimit']===_0x2966e9(0x1db)&&(_0x1cd28b[_0x2966e9(0x1a9)]=qs['limit'](_0x3b3323[_0x2966e9(0x1d6)][_0x2966e9(0x1a9)]),_0x1cd28b[_0x2966e9(0x1d0)]=qs[_0x2966e9(0x1d0)](_0x3b3323[_0x2966e9(0x1d6)][_0x2966e9(0x1d0)]));_0x1cd28b[_0x2966e9(0x1ba)]=qs[_0x2966e9(0x1bb)](_0x3b3323[_0x2966e9(0x1d6)][_0x2966e9(0x1bb)]),_0x1cd28b[_0x2966e9(0x1b5)]=qs[_0x2966e9(0x1d5)](_[_0x2966e9(0x1b9)](_0x3b3323[_0x2966e9(0x1d6)],_0x409a6d['filters']),_0x3f789c);_0x3b3323['query'][_0x2966e9(0x1d3)]&&(_0x1cd28b[_0x2966e9(0x1b5)]=_[_0x2966e9(0x1da)](_0x1cd28b['where'],{[Op['or']]:_['map'](_0x3f789c,function(_0x2a46d5){const _0x388ff5=_0x2966e9;if(_0x2a46d5[_0x388ff5(0x1cf)]!==_0x388ff5(0x1b1)){const _0x53b384={};return _0x53b384[_0x2a46d5['name']]={[Op[_0x388ff5(0x1d7)]]:'%'+_0x3b3323[_0x388ff5(0x1d6)][_0x388ff5(0x1d3)]+'%'},_0x53b384;}})}));_0x1cd28b=_[_0x2966e9(0x1da)]({},_0x1cd28b,_0x3b3323[_0x2966e9(0x1c6)]);const _0x55627b={'where':_0x1cd28b[_0x2966e9(0x1b5)]};return db[_0x2966e9(0x1c8)]['count'](_0x55627b)[_0x2966e9(0x1aa)](function(_0x510c37){const _0x587602=_0x2966e9;return _0x556d6f[_0x587602(0x1c0)]=_0x510c37,_0x3b3323['query'][_0x587602(0x1bd)]&&(_0x1cd28b[_0x587602(0x1c5)]=[{'all':!![]}]),db['VtigerField'][_0x587602(0x1ce)](_0x1cd28b);})[_0x2966e9(0x1aa)](function(_0x51ee18){const _0x51c39a=_0x2966e9;return _0x556d6f[_0x51c39a(0x1a8)]=_0x51ee18,_0x556d6f;})['then'](respondWithFilteredResult(_0xd796d6,_0x1cd28b))['catch'](handleError(_0xd796d6,null));},exports[a395_0x17914a(0x1b4)]=function(_0x4e59a3,_0x445697){const _0x32a1fd=a395_0x17914a;let _0x15f9ae={'raw':!![],'where':{'id':_0x4e59a3['params']['id']}};const _0x3ab8df={};return _0x3ab8df[_0x32a1fd(0x1bc)]=_['keys'](db[_0x32a1fd(0x1c8)]['rawAttributes']),_0x3ab8df['query']=_[_0x32a1fd(0x1dc)](_0x4e59a3[_0x32a1fd(0x1d6)]),_0x3ab8df[_0x32a1fd(0x1d5)]=_['intersection'](_0x3ab8df[_0x32a1fd(0x1bc)],_0x3ab8df[_0x32a1fd(0x1d6)]),_0x15f9ae[_0x32a1fd(0x1ca)]=_[_0x32a1fd(0x1c4)](_0x3ab8df['model'],qs[_0x32a1fd(0x1d8)](_0x4e59a3['query']['fields'])),_0x15f9ae[_0x32a1fd(0x1ca)]=_0x15f9ae[_0x32a1fd(0x1ca)]['length']?_0x15f9ae[_0x32a1fd(0x1ca)]:_0x3ab8df[_0x32a1fd(0x1bc)],_0x4e59a3['query'][_0x32a1fd(0x1bd)]&&(_0x15f9ae['include']=[{'all':!![]}]),_0x15f9ae=_[_0x32a1fd(0x1da)]({},_0x15f9ae,_0x4e59a3['options']),db[_0x32a1fd(0x1c8)]['findOne'](_0x15f9ae)[_0x32a1fd(0x1aa)](handleEntityNotFound(_0x445697,null))[_0x32a1fd(0x1aa)](respondWithResult(_0x445697,null))[_0x32a1fd(0x1cc)](handleError(_0x445697,null));},exports[a395_0x17914a(0x1b3)]=function(_0x5e00a7,_0x1a4e4a){const _0x97fe2b=a395_0x17914a;return db[_0x97fe2b(0x1c8)][_0x97fe2b(0x1b3)](_0x5e00a7[_0x97fe2b(0x1d1)],{})[_0x97fe2b(0x1aa)](respondWithResult(_0x1a4e4a,0xc9))[_0x97fe2b(0x1cc)](handleError(_0x1a4e4a,null));},exports[a395_0x17914a(0x1b0)]=function(_0x5e8257,_0x4f7ff2){const _0x5d5263=a395_0x17914a;return _0x5e8257[_0x5d5263(0x1d1)]['id']&&delete _0x5e8257[_0x5d5263(0x1d1)]['id'],db['VtigerField'][_0x5d5263(0x1dd)]({'where':{'id':_0x5e8257[_0x5d5263(0x1ab)]['id']}})[_0x5d5263(0x1aa)](handleEntityNotFound(_0x4f7ff2,null))['then'](saveUpdates(_0x5e8257['body'],null))['then'](respondWithResult(_0x4f7ff2,null))[_0x5d5263(0x1cc)](handleError(_0x4f7ff2,null));},exports['destroy']=function(_0x3337a6,_0x17a65e){const _0x51e33e=a395_0x17914a;return db['VtigerField'][_0x51e33e(0x1dd)]({'where':{'id':_0x3337a6[_0x51e33e(0x1ab)]['id']}})[_0x51e33e(0x1aa)](handleEntityNotFound(_0x17a65e,null))[_0x51e33e(0x1aa)](removeEntity(_0x17a65e,null))[_0x51e33e(0x1cc)](handleError(_0x17a65e,null));}; \ No newline at end of file +const a395_0x417f=['name','undefined','offset','filter','attributes','create','send','rawAttributes','sequelize','index','include','../../config/logger','findAll','catch','intersection','where','options','sendStatus','filters','key','sort','includeAll','findOne','length','../../mysqldb','json','status','type','count','show','api','fields','VtigerField','update','merge','lodash','body','model','../../components/parsers/qs','query','set','like','fieldName','params','keys','rows','limit','map','then','pick'];(function(_0x51f834,_0x236d9e){const _0x417f50=function(_0x29a520){while(--_0x29a520){_0x51f834['push'](_0x51f834['shift']());}};_0x417f50(++_0x236d9e);}(a395_0x417f,0xce));const a395_0x29a5=function(_0x51f834,_0x236d9e){_0x51f834=_0x51f834-0x8b;let _0x417f50=a395_0x417f[_0x51f834];return _0x417f50;};const a395_0x48cdf6=a395_0x29a5;'use strict';const _=require(a395_0x48cdf6(0xa8)),qs=require(a395_0x48cdf6(0xab)),logger=require(a395_0x48cdf6(0x90))(a395_0x48cdf6(0xa3)),{db}=require(a395_0x48cdf6(0x9d)),{Op}=require(a395_0x48cdf6(0x8d));function respondWithResult(_0x974aab,_0x145e5b){return _0x145e5b=_0x145e5b||0xc8,function(_0x3bf10e){const _0x45cc20=a395_0x29a5;if(_0x3bf10e)return _0x974aab[_0x45cc20(0x9f)](_0x145e5b)[_0x45cc20(0x9e)](_0x3bf10e);};}function respondWithFilteredResult(_0x150995,_0x43f2c4){return function(_0xb90d09){const _0x35e2c1=a395_0x29a5;if(_0xb90d09){const _0x1ee278=_0xb90d09[_0x35e2c1(0xa1)],_0x566d66=_0x43f2c4[_0x35e2c1(0xb9)];let _0x22d522=_0x43f2c4[_0x35e2c1(0xb9)]+_0x43f2c4['limit'],_0x8bfffe;return _0x22d522>=_0x1ee278?(_0x22d522=_0x1ee278,_0x8bfffe=0xc8):_0x8bfffe=0xce,_0x150995[_0x35e2c1(0x9f)](_0x8bfffe),_0x150995[_0x35e2c1(0xad)]('Content-Range',_0x566d66+'-'+_0x22d522+'/'+_0x1ee278)['json'](_0xb90d09);}return null;};}function saveUpdates(_0x203c57){return function(_0x41db5b){const _0x47e870=a395_0x29a5;if(_0x41db5b)return _0x41db5b[_0x47e870(0xa6)](_0x203c57)[_0x47e870(0xb5)](function(_0x5966f9){return _0x5966f9;});return null;};}function removeEntity(_0x3b33b5){return function(_0x2f2ffa){if(_0x2f2ffa)return _0x2f2ffa['destroy']()['then'](function(){const _0x339465=a395_0x29a5;_0x3b33b5[_0x339465(0x9f)](0xcc)['end']();});};}function handleEntityNotFound(_0x17c4f3){return function(_0x22d5dd){const _0x59075f=a395_0x29a5;return!_0x22d5dd&&_0x17c4f3[_0x59075f(0x96)](0x194),_0x22d5dd;};}function handleError(_0x333739,_0x56128e){return _0x56128e=_0x56128e||0x1f4,function(_0x2b9405){const _0xb78d56=a395_0x29a5;logger['error'](_0x2b9405['stack']),_0x2b9405[_0xb78d56(0xb7)]&&delete _0x2b9405[_0xb78d56(0xb7)],_0x333739[_0xb78d56(0x9f)](_0x56128e)[_0xb78d56(0x8b)](_0x2b9405);};}exports[a395_0x48cdf6(0x8e)]=function(_0x3ab3b3,_0x47ffaf){const _0x4890cb=a395_0x48cdf6;let _0x201915={};const _0x3d7402={},_0xeb99e8={'count':0x0,'rows':[]},_0x2b7a5a=_['map'](db[_0x4890cb(0xa5)][_0x4890cb(0x8c)],function(_0x2aa847){const _0x1df522=_0x4890cb;return{'name':_0x2aa847[_0x1df522(0xaf)],'type':_0x2aa847[_0x1df522(0xa0)][_0x1df522(0x98)]};});_0x3d7402[_0x4890cb(0xaa)]=_[_0x4890cb(0xb4)](_0x2b7a5a,_0x4890cb(0xb7)),_0x3d7402['query']=_[_0x4890cb(0xb1)](_0x3ab3b3['query']),_0x3d7402[_0x4890cb(0x97)]=_[_0x4890cb(0x93)](_0x3d7402[_0x4890cb(0xaa)],_0x3d7402[_0x4890cb(0xac)]),_0x201915[_0x4890cb(0xbb)]=_[_0x4890cb(0x93)](_0x3d7402[_0x4890cb(0xaa)],qs[_0x4890cb(0xa4)](_0x3ab3b3[_0x4890cb(0xac)][_0x4890cb(0xa4)])),_0x201915[_0x4890cb(0xbb)]=_0x201915[_0x4890cb(0xbb)][_0x4890cb(0x9c)]?_0x201915['attributes']:_0x3d7402[_0x4890cb(0xaa)];typeof _0x3ab3b3[_0x4890cb(0xac)]['nolimit']===_0x4890cb(0xb8)&&(_0x201915[_0x4890cb(0xb3)]=qs[_0x4890cb(0xb3)](_0x3ab3b3[_0x4890cb(0xac)][_0x4890cb(0xb3)]),_0x201915[_0x4890cb(0xb9)]=qs[_0x4890cb(0xb9)](_0x3ab3b3[_0x4890cb(0xac)][_0x4890cb(0xb9)]));_0x201915['order']=qs[_0x4890cb(0x99)](_0x3ab3b3[_0x4890cb(0xac)]['sort']),_0x201915[_0x4890cb(0x94)]=qs[_0x4890cb(0x97)](_[_0x4890cb(0xb6)](_0x3ab3b3[_0x4890cb(0xac)],_0x3d7402[_0x4890cb(0x97)]),_0x2b7a5a);_0x3ab3b3['query'][_0x4890cb(0xba)]&&(_0x201915[_0x4890cb(0x94)]=_['merge'](_0x201915['where'],{[Op['or']]:_[_0x4890cb(0xb4)](_0x2b7a5a,function(_0x1216eb){const _0x10d390=_0x4890cb;if(_0x1216eb[_0x10d390(0xa0)]!=='VIRTUAL'){const _0x51510a={};return _0x51510a[_0x1216eb['name']]={[Op[_0x10d390(0xae)]]:'%'+_0x3ab3b3['query'][_0x10d390(0xba)]+'%'},_0x51510a;}})}));_0x201915=_[_0x4890cb(0xa7)]({},_0x201915,_0x3ab3b3[_0x4890cb(0x95)]);const _0xd2b146={'where':_0x201915[_0x4890cb(0x94)]};return db[_0x4890cb(0xa5)][_0x4890cb(0xa1)](_0xd2b146)[_0x4890cb(0xb5)](function(_0x50cd4e){const _0x2e28a7=_0x4890cb;return _0xeb99e8[_0x2e28a7(0xa1)]=_0x50cd4e,_0x3ab3b3[_0x2e28a7(0xac)][_0x2e28a7(0x9a)]&&(_0x201915[_0x2e28a7(0x8f)]=[{'all':!![]}]),db[_0x2e28a7(0xa5)][_0x2e28a7(0x91)](_0x201915);})[_0x4890cb(0xb5)](function(_0x51fc2c){const _0x5f4125=_0x4890cb;return _0xeb99e8[_0x5f4125(0xb2)]=_0x51fc2c,_0xeb99e8;})[_0x4890cb(0xb5)](respondWithFilteredResult(_0x47ffaf,_0x201915))[_0x4890cb(0x92)](handleError(_0x47ffaf,null));},exports[a395_0x48cdf6(0xa2)]=function(_0x3a25e5,_0x360c68){const _0x965f4c=a395_0x48cdf6;let _0x328a64={'raw':!![],'where':{'id':_0x3a25e5[_0x965f4c(0xb0)]['id']}};const _0xd58b1f={};return _0xd58b1f[_0x965f4c(0xaa)]=_[_0x965f4c(0xb1)](db[_0x965f4c(0xa5)][_0x965f4c(0x8c)]),_0xd58b1f['query']=_['keys'](_0x3a25e5[_0x965f4c(0xac)]),_0xd58b1f[_0x965f4c(0x97)]=_['intersection'](_0xd58b1f[_0x965f4c(0xaa)],_0xd58b1f[_0x965f4c(0xac)]),_0x328a64[_0x965f4c(0xbb)]=_[_0x965f4c(0x93)](_0xd58b1f[_0x965f4c(0xaa)],qs[_0x965f4c(0xa4)](_0x3a25e5[_0x965f4c(0xac)]['fields'])),_0x328a64[_0x965f4c(0xbb)]=_0x328a64['attributes'][_0x965f4c(0x9c)]?_0x328a64[_0x965f4c(0xbb)]:_0xd58b1f[_0x965f4c(0xaa)],_0x3a25e5[_0x965f4c(0xac)][_0x965f4c(0x9a)]&&(_0x328a64[_0x965f4c(0x8f)]=[{'all':!![]}]),_0x328a64=_[_0x965f4c(0xa7)]({},_0x328a64,_0x3a25e5['options']),db[_0x965f4c(0xa5)]['findOne'](_0x328a64)[_0x965f4c(0xb5)](handleEntityNotFound(_0x360c68,null))[_0x965f4c(0xb5)](respondWithResult(_0x360c68,null))[_0x965f4c(0x92)](handleError(_0x360c68,null));},exports[a395_0x48cdf6(0xbc)]=function(_0x2a2356,_0x2d4f0a){const _0x246b9b=a395_0x48cdf6;return db['VtigerField'][_0x246b9b(0xbc)](_0x2a2356[_0x246b9b(0xa9)],{})[_0x246b9b(0xb5)](respondWithResult(_0x2d4f0a,0xc9))['catch'](handleError(_0x2d4f0a,null));},exports[a395_0x48cdf6(0xa6)]=function(_0x341290,_0x51e4e6){const _0x10d180=a395_0x48cdf6;return _0x341290[_0x10d180(0xa9)]['id']&&delete _0x341290[_0x10d180(0xa9)]['id'],db[_0x10d180(0xa5)][_0x10d180(0x9b)]({'where':{'id':_0x341290[_0x10d180(0xb0)]['id']}})[_0x10d180(0xb5)](handleEntityNotFound(_0x51e4e6,null))[_0x10d180(0xb5)](saveUpdates(_0x341290[_0x10d180(0xa9)],null))[_0x10d180(0xb5)](respondWithResult(_0x51e4e6,null))[_0x10d180(0x92)](handleError(_0x51e4e6,null));},exports['destroy']=function(_0x487914,_0x2e2718){const _0x13ca8a=a395_0x48cdf6;return db['VtigerField'][_0x13ca8a(0x9b)]({'where':{'id':_0x487914['params']['id']}})[_0x13ca8a(0xb5)](handleEntityNotFound(_0x2e2718,null))[_0x13ca8a(0xb5)](removeEntity(_0x2e2718,null))['catch'](handleError(_0x2e2718,null));}; \ No newline at end of file diff --git a/server/api/intVtigerField/intVtigerField.model.js b/server/api/intVtigerField/intVtigerField.model.js index 1cf0415..4ec8261 100644 --- a/server/api/intVtigerField/intVtigerField.model.js +++ b/server/api/intVtigerField/intVtigerField.model.js @@ -1 +1 @@ -const a396_0x194b=['./intVtigerField.options','init','function','./intVtigerField.attributes','sequelize','exports'];(function(_0x98fd8d,_0x20a458){const _0x194bd1=function(_0x49fe2a){while(--_0x49fe2a){_0x98fd8d['push'](_0x98fd8d['shift']());}};_0x194bd1(++_0x20a458);}(a396_0x194b,0x66));const a396_0x49fe=function(_0x98fd8d,_0x20a458){_0x98fd8d=_0x98fd8d-0xb5;let _0x194bd1=a396_0x194b[_0x98fd8d];return _0x194bd1;};const a396_0x1c7479=a396_0x49fe;'use strict';const {Model}=require(a396_0x1c7479(0xb9)),{attributes}=require(a396_0x1c7479(0xb8)),{options}=require(a396_0x1c7479(0xb5));class VtigerField extends Model{}function init(_0x11c810,_0x1f4dfc){const _0x18098c=a396_0x1c7479,_0xa55d9a=options(_0x11c810),_0x2872b4=typeof _0x1f4dfc===_0x18098c(0xb7)?_0x1f4dfc(_0xa55d9a):_0xa55d9a;return VtigerField[_0x18098c(0xb6)](attributes,_0x2872b4),VtigerField;}module[a396_0x1c7479(0xba)]['VtigerField']=VtigerField,module[a396_0x1c7479(0xba)][a396_0x1c7479(0xb6)]=init; \ No newline at end of file +const a396_0x1300=['./intVtigerField.attributes','function','./intVtigerField.options','VtigerField','exports','sequelize'];(function(_0x507347,_0x47f6da){const _0x130012=function(_0x4ef88f){while(--_0x4ef88f){_0x507347['push'](_0x507347['shift']());}};_0x130012(++_0x47f6da);}(a396_0x1300,0xb3));const a396_0x4ef8=function(_0x507347,_0x47f6da){_0x507347=_0x507347-0x18d;let _0x130012=a396_0x1300[_0x507347];return _0x130012;};const a396_0x1d7edd=a396_0x4ef8;'use strict';const {Model}=require(a396_0x1d7edd(0x18d)),{attributes}=require(a396_0x1d7edd(0x18e)),{options}=require(a396_0x1d7edd(0x190));class VtigerField extends Model{}function init(_0x2e3608,_0x22db3a){const _0x2f5d2e=a396_0x1d7edd,_0x221385=options(_0x2e3608),_0x5e49a8=typeof _0x22db3a===_0x2f5d2e(0x18f)?_0x22db3a(_0x221385):_0x221385;return VtigerField['init'](attributes,_0x5e49a8),VtigerField;}module[a396_0x1d7edd(0x192)][a396_0x1d7edd(0x191)]=VtigerField,module[a396_0x1d7edd(0x192)]['init']=init; \ No newline at end of file diff --git a/server/api/intVtigerField/intVtigerField.options.js b/server/api/intVtigerField/intVtigerField.options.js index 183ca60..81ffd5c 100644 --- a/server/api/intVtigerField/intVtigerField.options.js +++ b/server/api/intVtigerField/intVtigerField.options.js @@ -1 +1 @@ -var a397_0x3f42=['exports','vtiger_unique_index','options'];(function(_0x45cf4f,_0x541caa){var _0x3f427f=function(_0x1a8d9d){while(--_0x1a8d9d){_0x45cf4f['push'](_0x45cf4f['shift']());}};_0x3f427f(++_0x541caa);}(a397_0x3f42,0xb8));var a397_0x1a8d=function(_0x45cf4f,_0x541caa){_0x45cf4f=_0x45cf4f-0x76;var _0x3f427f=a397_0x3f42[_0x45cf4f];return _0x3f427f;};var a397_0x1a616c=a397_0x1a8d;function options(_0x261a22){var _0x1d9bb5=a397_0x1a8d;return{'sequelize':_0x261a22,'tableName':'int_vtiger_fields','paranoid':![],'indexes':[{'name':_0x1d9bb5(0x76),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]};}module[a397_0x1a616c(0x78)][a397_0x1a616c(0x77)]=options; \ No newline at end of file +var a397_0x5735=['options','exports','FieldId','int_vtiger_fields'];(function(_0x3cdeb5,_0x35cf68){var _0x57350c=function(_0x50b278){while(--_0x50b278){_0x3cdeb5['push'](_0x3cdeb5['shift']());}};_0x57350c(++_0x35cf68);}(a397_0x5735,0x19d));var a397_0x50b2=function(_0x3cdeb5,_0x35cf68){_0x3cdeb5=_0x3cdeb5-0x6d;var _0x57350c=a397_0x5735[_0x3cdeb5];return _0x57350c;};var a397_0x370e7b=a397_0x50b2;function options(_0x4dc6cd){var _0x2370b3=a397_0x50b2;return{'sequelize':_0x4dc6cd,'tableName':_0x2370b3(0x6f),'paranoid':![],'indexes':[{'name':'vtiger_unique_index','fields':['idField',_0x2370b3(0x6e)],'unique':!![]}],'timestamps':!![]};}module[a397_0x370e7b(0x6d)][a397_0x370e7b(0x70)]=options; \ No newline at end of file diff --git a/server/api/intZendeskAccount/index.js b/server/api/intZendeskAccount/index.js index 964dfb6..03cc639 100644 --- a/server/api/intZendeskAccount/index.js +++ b/server/api/intZendeskAccount/index.js @@ -1 +1 @@ -const a398_0x2f8a=['../../components/auth/service','put','isAuthenticated','getConfigurations','get','./intZendeskAccount.controller','post','/:id/fields','show','exports','update','/:id/configurations','/:id','addConfiguration','Router','delete'];(function(_0x1fcbdf,_0x2a39d0){const _0x2f8adb=function(_0x3a34db){while(--_0x3a34db){_0x1fcbdf['push'](_0x1fcbdf['shift']());}};_0x2f8adb(++_0x2a39d0);}(a398_0x2f8a,0x99));const a398_0x3a34=function(_0x1fcbdf,_0x2a39d0){_0x1fcbdf=_0x1fcbdf-0x66;let _0x2f8adb=a398_0x2f8a[_0x1fcbdf];return _0x2f8adb;};const a398_0xe0b388=a398_0x3a34;'use strict';const express=require('express'),router=express[a398_0xe0b388(0x6b)](),auth=require(a398_0xe0b388(0x6d)),controller=require(a398_0xe0b388(0x72));router[a398_0xe0b388(0x71)]('/',auth['isAuthenticated'](),controller['index']),router[a398_0xe0b388(0x71)](a398_0xe0b388(0x69),auth[a398_0xe0b388(0x6f)](),controller[a398_0xe0b388(0x75)]),router['get'](a398_0xe0b388(0x68),auth[a398_0xe0b388(0x6f)](),controller[a398_0xe0b388(0x70)]),router[a398_0xe0b388(0x71)](a398_0xe0b388(0x74),auth[a398_0xe0b388(0x6f)](),controller['getFields']),router['post']('/',auth[a398_0xe0b388(0x6f)](),controller['create']),router[a398_0xe0b388(0x73)](a398_0xe0b388(0x68),auth[a398_0xe0b388(0x6f)](),controller[a398_0xe0b388(0x6a)]),router[a398_0xe0b388(0x6e)]('/:id',auth[a398_0xe0b388(0x6f)](),controller[a398_0xe0b388(0x67)]),router[a398_0xe0b388(0x6c)]('/:id',auth[a398_0xe0b388(0x6f)](),controller['destroy']),module[a398_0xe0b388(0x66)]=router; \ No newline at end of file +const a398_0x28b2=['/:id/configurations','getFields','post','./intZendeskAccount.controller','Router','put','update','destroy','/:id','index','get','exports','addConfiguration','../../components/auth/service','express','/:id/fields','isAuthenticated','delete'];(function(_0x270c3c,_0x563ee9){const _0x28b237=function(_0x25f745){while(--_0x25f745){_0x270c3c['push'](_0x270c3c['shift']());}};_0x28b237(++_0x563ee9);}(a398_0x28b2,0xb5));const a398_0x25f7=function(_0x270c3c,_0x563ee9){_0x270c3c=_0x270c3c-0xeb;let _0x28b237=a398_0x28b2[_0x270c3c];return _0x28b237;};const a398_0x292201=a398_0x25f7;'use strict';const express=require(a398_0x292201(0xf8)),router=express[a398_0x292201(0xee)](),auth=require(a398_0x292201(0xf7)),controller=require(a398_0x292201(0xed));router[a398_0x292201(0xf4)]('/',auth[a398_0x292201(0xfa)](),controller[a398_0x292201(0xf3)]),router[a398_0x292201(0xf4)](a398_0x292201(0xf2),auth[a398_0x292201(0xfa)](),controller['show']),router[a398_0x292201(0xf4)](a398_0x292201(0xfc),auth['isAuthenticated'](),controller['getConfigurations']),router[a398_0x292201(0xf4)](a398_0x292201(0xf9),auth[a398_0x292201(0xfa)](),controller[a398_0x292201(0xeb)]),router[a398_0x292201(0xec)]('/',auth['isAuthenticated'](),controller['create']),router['post'](a398_0x292201(0xfc),auth[a398_0x292201(0xfa)](),controller[a398_0x292201(0xf6)]),router[a398_0x292201(0xef)](a398_0x292201(0xf2),auth[a398_0x292201(0xfa)](),controller[a398_0x292201(0xf0)]),router[a398_0x292201(0xfb)](a398_0x292201(0xf2),auth[a398_0x292201(0xfa)](),controller[a398_0x292201(0xf1)]),module[a398_0x292201(0xf5)]=router; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.attributes.js b/server/api/intZendeskAccount/intZendeskAccount.attributes.js index d44c90a..cdb49b0 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.attributes.js +++ b/server/api/intZendeskAccount/intZendeskAccount.attributes.js @@ -1 +1 @@ -const a399_0x2e03=['password','STRING','newTab','attributes','exports','ENUM','remoteUri','sequelize','integrationTab','token'];(function(_0x3af44d,_0x4fc28f){const _0x2e0306=function(_0x10a078){while(--_0x10a078){_0x3af44d['push'](_0x3af44d['shift']());}};_0x2e0306(++_0x4fc28f);}(a399_0x2e03,0x1c0));const a399_0x10a0=function(_0x3af44d,_0x4fc28f){_0x3af44d=_0x3af44d-0x8a;let _0x2e0306=a399_0x2e03[_0x3af44d];return _0x2e0306;};const a399_0x139ee5=a399_0x10a0;'use strict';const {DataTypes}=require(a399_0x139ee5(0x93)),attributes={'name':{'type':DataTypes[a399_0x139ee5(0x8d)]},'description':{'type':DataTypes[a399_0x139ee5(0x8d)]},'username':{'type':DataTypes[a399_0x139ee5(0x8d)],'unique':'username'},'password':{'type':DataTypes[a399_0x139ee5(0x8d)]},'token':{'type':DataTypes[a399_0x139ee5(0x8d)]},'remoteUri':{'type':DataTypes[a399_0x139ee5(0x8d)],'unique':a399_0x139ee5(0x92)},'authType':{'type':DataTypes[a399_0x139ee5(0x91)]('password',a399_0x139ee5(0x8b)),'defaultValue':a399_0x139ee5(0x8c)},'serverUrl':{'type':DataTypes[a399_0x139ee5(0x8d)]},'type':{'type':DataTypes[a399_0x139ee5(0x91)](a399_0x139ee5(0x8a),a399_0x139ee5(0x8e)),'defaultValue':a399_0x139ee5(0x8a)}};module[a399_0x139ee5(0x90)][a399_0x139ee5(0x8f)]=attributes; \ No newline at end of file +const a399_0xf868=['attributes','integrationTab','STRING','token','sequelize','username','password','exports','remoteUri','newTab','ENUM'];(function(_0x20326d,_0x91a4c6){const _0xf868c0=function(_0xd17ace){while(--_0xd17ace){_0x20326d['push'](_0x20326d['shift']());}};_0xf868c0(++_0x91a4c6);}(a399_0xf868,0x95));const a399_0xd17a=function(_0x20326d,_0x91a4c6){_0x20326d=_0x20326d-0x1dd;let _0xf868c0=a399_0xf868[_0x20326d];return _0xf868c0;};const a399_0x419adc=a399_0xd17a;'use strict';const {DataTypes}=require(a399_0x419adc(0x1e6)),attributes={'name':{'type':DataTypes[a399_0x419adc(0x1e4)]},'description':{'type':DataTypes[a399_0x419adc(0x1e4)]},'username':{'type':DataTypes[a399_0x419adc(0x1e4)],'unique':a399_0x419adc(0x1e7)},'password':{'type':DataTypes[a399_0x419adc(0x1e4)]},'token':{'type':DataTypes['STRING']},'remoteUri':{'type':DataTypes[a399_0x419adc(0x1e4)],'unique':a399_0x419adc(0x1df)},'authType':{'type':DataTypes[a399_0x419adc(0x1e1)](a399_0x419adc(0x1dd),a399_0x419adc(0x1e5)),'defaultValue':a399_0x419adc(0x1dd)},'serverUrl':{'type':DataTypes[a399_0x419adc(0x1e4)]},'type':{'type':DataTypes[a399_0x419adc(0x1e1)]('integrationTab',a399_0x419adc(0x1e0)),'defaultValue':a399_0x419adc(0x1e3)}};module[a399_0x419adc(0x1de)][a399_0x419adc(0x1e2)]=attributes; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.controller.js b/server/api/intZendeskAccount/intZendeskAccount.controller.js index b4eeca6..a55d8e6 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.controller.js +++ b/server/api/intZendeskAccount/intZendeskAccount.controller.js @@ -1 +1 @@ -const a400_0x45da=['api','getConfigurations','Unknown\x20authentication\x20type','order','options','sort','count','AccountId','send','system_field_options','group','includeAll','username','fields','channel','findOne','token','assignee','VIRTUAL','params','catch','filter','lastIndexOf','rows','show','ZendeskField','getFields','ZendeskConfiguration','intersection','json','create','fieldName','then','undefined','statusCode','rawAttributes','attributes','%s:%s','../../components/parsers/qs','Descriptions','error','limit','substring','base64','name','../../components/integrations/configuration','Subjects','merge','pick','stack','position','lodash','key','util','title','ticket_fields','include','headers','test','keys','toString','offset','subject','from','index','getSubjects','map','remove','GET','update','status','Basic\x20%s','set','nolimit','stringify','includes','request-promise-native','password','ZendeskAccount','destroy','body','filters','../../config/logger','like','description','../../mysqldb','model','remoteUri','query','length','where','findAll','sendStatus','custom_field_options','format','type'];(function(_0x38e8d5,_0x13ac8b){const _0x45da15=function(_0x1b6dc4){while(--_0x1b6dc4){_0x38e8d5['push'](_0x38e8d5['shift']());}};_0x45da15(++_0x13ac8b);}(a400_0x45da,0x188));const a400_0x1b6d=function(_0x38e8d5,_0x13ac8b){_0x38e8d5=_0x38e8d5-0xe3;let _0x45da15=a400_0x45da[_0x38e8d5];return _0x45da15;};const a400_0x2b4d4b=a400_0x1b6d;'use strict';const rp=require(a400_0x2b4d4b(0x127)),util=require(a400_0x2b4d4b(0x110)),_=require(a400_0x2b4d4b(0x10e)),qs=require(a400_0x2b4d4b(0x101)),logger=require(a400_0x2b4d4b(0x12d))(a400_0x2b4d4b(0x13b)),{db}=require(a400_0x2b4d4b(0x130)),{Op,ValidationError}=require('sequelize'),integrations=require(a400_0x2b4d4b(0x108));function respondWithResult(_0xe7e6eb,_0x2adcf2){return _0x2adcf2=_0x2adcf2||0xc8,function(_0x49f5b0){const _0x421dc7=a400_0x1b6d;if(_0x49f5b0)return _0xe7e6eb[_0x421dc7(0x121)](_0x2adcf2)[_0x421dc7(0xf8)](_0x49f5b0);};}function respondWithFilteredResult(_0x462e27,_0x3c0f3f){return function(_0xf26abc){const _0x25dc09=a400_0x1b6d;if(_0xf26abc){const _0x27914c=_0xf26abc['count'],_0x2f8eb4=_0x3c0f3f[_0x25dc09(0x118)];let _0x1a5afb=_0x3c0f3f[_0x25dc09(0x118)]+_0x3c0f3f[_0x25dc09(0x104)],_0x754359;return _0x1a5afb>=_0x27914c?(_0x1a5afb=_0x27914c,_0x754359=0xc8):_0x754359=0xce,_0x462e27[_0x25dc09(0x121)](_0x754359),_0x462e27[_0x25dc09(0x123)]('Content-Range',_0x2f8eb4+'-'+_0x1a5afb+'/'+_0x27914c)['json'](_0xf26abc);}return null;};}function saveUpdates(_0x6afd6e){return function(_0x50726a){const _0x59472c=a400_0x1b6d;if(_0x50726a)return _0x50726a[_0x59472c(0x120)](_0x6afd6e)[_0x59472c(0xfb)](function(_0x225554){return _0x225554;});return null;};}function removeEntity(_0x254770){return function(_0x2bcbe7){const _0x26c490=a400_0x1b6d;if(_0x2bcbe7)return _0x2bcbe7[_0x26c490(0x12a)]()[_0x26c490(0xfb)](function(){const _0x90db62=_0x26c490;_0x254770[_0x90db62(0x121)](0xcc)['end']();});};}function handleEntityNotFound(_0x4dc804){return function(_0x851d05){const _0x1f7654=a400_0x1b6d;return!_0x851d05&&_0x4dc804[_0x1f7654(0x137)](0x194),_0x851d05;};}function handleError(_0x3657d8,_0xacaf03){return _0xacaf03=_0xacaf03||0x1f4,function(_0x5205e2){const _0x443d93=a400_0x1b6d;logger['error'](_0x5205e2[_0x443d93(0x10c)]),_0x5205e2[_0x443d93(0x107)]&&delete _0x5205e2[_0x443d93(0x107)],_0x3657d8[_0x443d93(0x121)](_0xacaf03)[_0x443d93(0xe3)](_0x5205e2);};}exports[a400_0x2b4d4b(0x11b)]=function(_0x2f7fdd,_0x1f741d){const _0x1c8e2c=a400_0x2b4d4b;let _0x2b2e70={};const _0x33d2b6={},_0x360158={'count':0x0,'rows':[]},_0x202990=_[_0x1c8e2c(0x11d)](db[_0x1c8e2c(0x129)][_0x1c8e2c(0xfe)],function(_0xf9ff0e){const _0x31a476=_0x1c8e2c;return{'name':_0xf9ff0e[_0x31a476(0xfa)],'type':_0xf9ff0e['type'][_0x31a476(0x10f)]};});_0x33d2b6[_0x1c8e2c(0x131)]=_[_0x1c8e2c(0x11d)](_0x202990,_0x1c8e2c(0x107)),_0x33d2b6[_0x1c8e2c(0x133)]=_[_0x1c8e2c(0x116)](_0x2f7fdd[_0x1c8e2c(0x133)]),_0x33d2b6[_0x1c8e2c(0x12c)]=_[_0x1c8e2c(0xf7)](_0x33d2b6[_0x1c8e2c(0x131)],_0x33d2b6[_0x1c8e2c(0x133)]),_0x2b2e70[_0x1c8e2c(0xff)]=_[_0x1c8e2c(0xf7)](_0x33d2b6['model'],qs[_0x1c8e2c(0xe8)](_0x2f7fdd[_0x1c8e2c(0x133)][_0x1c8e2c(0xe8)])),_0x2b2e70[_0x1c8e2c(0xff)]=_0x2b2e70[_0x1c8e2c(0xff)][_0x1c8e2c(0x134)]?_0x2b2e70[_0x1c8e2c(0xff)]:_0x33d2b6[_0x1c8e2c(0x131)];typeof _0x2f7fdd[_0x1c8e2c(0x133)]['nolimit']===_0x1c8e2c(0xfc)&&(_0x2b2e70[_0x1c8e2c(0x104)]=qs[_0x1c8e2c(0x104)](_0x2f7fdd[_0x1c8e2c(0x133)]['limit']),_0x2b2e70['offset']=qs['offset'](_0x2f7fdd[_0x1c8e2c(0x133)][_0x1c8e2c(0x118)]));_0x2b2e70[_0x1c8e2c(0x13e)]=qs[_0x1c8e2c(0x140)](_0x2f7fdd[_0x1c8e2c(0x133)][_0x1c8e2c(0x140)]),_0x2b2e70[_0x1c8e2c(0x135)]=qs[_0x1c8e2c(0x12c)](_[_0x1c8e2c(0x10b)](_0x2f7fdd[_0x1c8e2c(0x133)],_0x33d2b6['filters']),_0x202990);_0x2f7fdd[_0x1c8e2c(0x133)][_0x1c8e2c(0xf0)]&&(_0x2b2e70[_0x1c8e2c(0x135)]=_['merge'](_0x2b2e70[_0x1c8e2c(0x135)],{[Op['or']]:_['map'](_0x202990,function(_0x5e532d){const _0xf6ee2a=_0x1c8e2c;if(_0x5e532d[_0xf6ee2a(0x13a)]!==_0xf6ee2a(0xed)){const _0x62bc5e={};return _0x62bc5e[_0x5e532d[_0xf6ee2a(0x107)]]={[Op[_0xf6ee2a(0x12e)]]:'%'+_0x2f7fdd[_0xf6ee2a(0x133)][_0xf6ee2a(0xf0)]+'%'},_0x62bc5e;}})}));_0x2b2e70=_[_0x1c8e2c(0x10a)]({},_0x2b2e70,_0x2f7fdd[_0x1c8e2c(0x13f)]);const _0x187df8={'where':_0x2b2e70['where']};return db[_0x1c8e2c(0x129)][_0x1c8e2c(0x141)](_0x187df8)[_0x1c8e2c(0xfb)](function(_0x349933){const _0x22476e=_0x1c8e2c;return _0x360158[_0x22476e(0x141)]=_0x349933,_0x2f7fdd[_0x22476e(0x133)][_0x22476e(0xe6)]&&(_0x2b2e70['include']=[{'all':!![]}]),db[_0x22476e(0x129)][_0x22476e(0x136)](_0x2b2e70);})[_0x1c8e2c(0xfb)](function(_0x38cfe0){const _0xcd1f7a=_0x1c8e2c;return _0x360158[_0xcd1f7a(0xf2)]=_0x38cfe0,_0x360158;})[_0x1c8e2c(0xfb)](respondWithFilteredResult(_0x1f741d,_0x2b2e70))[_0x1c8e2c(0xef)](handleError(_0x1f741d,null));},exports[a400_0x2b4d4b(0xf3)]=function(_0x3d000a,_0x1c5763){const _0x43842a=a400_0x2b4d4b;let _0x5f09f0={'raw':![],'where':{'id':_0x3d000a[_0x43842a(0xee)]['id']}};const _0xe1c2c4={};return _0xe1c2c4[_0x43842a(0x131)]=_['keys'](db[_0x43842a(0x129)][_0x43842a(0xfe)]),_0xe1c2c4['query']=_[_0x43842a(0x116)](_0x3d000a['query']),_0xe1c2c4['filters']=_[_0x43842a(0xf7)](_0xe1c2c4[_0x43842a(0x131)],_0xe1c2c4[_0x43842a(0x133)]),_0x5f09f0[_0x43842a(0xff)]=_[_0x43842a(0xf7)](_0xe1c2c4[_0x43842a(0x131)],qs[_0x43842a(0xe8)](_0x3d000a['query'][_0x43842a(0xe8)])),_0x5f09f0['attributes']=_0x5f09f0['attributes'][_0x43842a(0x134)]?_0x5f09f0['attributes']:_0xe1c2c4[_0x43842a(0x131)],_0x3d000a[_0x43842a(0x133)][_0x43842a(0xe6)]&&(_0x5f09f0[_0x43842a(0x113)]=[{'all':!![]}]),_0x5f09f0=_[_0x43842a(0x10a)]({},_0x5f09f0,_0x3d000a['options']),db['ZendeskAccount'][_0x43842a(0xea)](_0x5f09f0)['then'](handleEntityNotFound(_0x1c5763,null))[_0x43842a(0xfb)](respondWithResult(_0x1c5763,null))['catch'](handleError(_0x1c5763,null));},exports[a400_0x2b4d4b(0xf9)]=function(_0x4980e3,_0xad3549){const _0xac66b7=a400_0x2b4d4b;return db[_0xac66b7(0x129)]['create'](_0x4980e3[_0xac66b7(0x12b)],{})['then'](respondWithResult(_0xad3549,0xc9))[_0xac66b7(0xef)](handleError(_0xad3549,null));},exports[a400_0x2b4d4b(0x120)]=function(_0x102946,_0x345691){const _0x5dc35f=a400_0x2b4d4b;return _0x102946['body']['id']&&delete _0x102946[_0x5dc35f(0x12b)]['id'],db[_0x5dc35f(0x129)]['findOne']({'where':{'id':_0x102946[_0x5dc35f(0xee)]['id']}})[_0x5dc35f(0xfb)](handleEntityNotFound(_0x345691,null))[_0x5dc35f(0xfb)](saveUpdates(_0x102946[_0x5dc35f(0x12b)],null))[_0x5dc35f(0xfb)](respondWithResult(_0x345691,null))[_0x5dc35f(0xef)](handleError(_0x345691,null));},exports['destroy']=function(_0x43ffbd,_0x3e4191){const _0x592f0b=a400_0x2b4d4b;return db[_0x592f0b(0x129)][_0x592f0b(0xea)]({'where':{'id':_0x43ffbd[_0x592f0b(0xee)]['id']}})[_0x592f0b(0xfb)](handleEntityNotFound(_0x3e4191,null))[_0x592f0b(0xfb)](removeEntity(_0x3e4191,null))[_0x592f0b(0xef)](handleError(_0x3e4191,null));},exports[a400_0x2b4d4b(0x13c)]=function(_0x37ae3a,_0x191b1a){const _0x68721d=a400_0x2b4d4b;let _0x20f476={};const _0x4e2991={};let _0x2b7a98,_0x339c69;return db[_0x68721d(0x129)]['findOne']({'where':{'id':_0x37ae3a[_0x68721d(0xee)]['id']}})[_0x68721d(0xfb)](handleEntityNotFound(_0x191b1a,null))[_0x68721d(0xfb)](function(_0x10ad7f){const _0x2e6c1b=_0x68721d;if(_0x10ad7f)return _0x2b7a98=_0x10ad7f,_0x4e2991[_0x2e6c1b(0x131)]=_['keys'](db['ZendeskConfiguration'][_0x2e6c1b(0xfe)]),_0x4e2991['query']=_[_0x2e6c1b(0x116)](_0x37ae3a[_0x2e6c1b(0x133)]),_0x4e2991[_0x2e6c1b(0x12c)]=_[_0x2e6c1b(0xf7)](_0x4e2991[_0x2e6c1b(0x131)],_0x4e2991[_0x2e6c1b(0x133)]),_0x20f476[_0x2e6c1b(0xff)]=_[_0x2e6c1b(0xf7)](_0x4e2991['model'],qs[_0x2e6c1b(0xe8)](_0x37ae3a[_0x2e6c1b(0x133)][_0x2e6c1b(0xe8)])),_0x20f476[_0x2e6c1b(0xff)]=_0x20f476[_0x2e6c1b(0xff)][_0x2e6c1b(0x134)]?_0x20f476['attributes']:_0x4e2991[_0x2e6c1b(0x131)],_0x20f476['order']=qs['sort'](_0x37ae3a[_0x2e6c1b(0x133)][_0x2e6c1b(0x140)]),_0x20f476[_0x2e6c1b(0x135)]=qs['filters'](_[_0x2e6c1b(0x10b)](_0x37ae3a[_0x2e6c1b(0x133)],_0x4e2991[_0x2e6c1b(0x12c)])),_0x37ae3a[_0x2e6c1b(0x133)][_0x2e6c1b(0xf0)]&&(_0x20f476[_0x2e6c1b(0x135)]=_['merge'](_0x20f476[_0x2e6c1b(0x135)],{[Op['or']]:_[_0x2e6c1b(0x11d)](_0x20f476[_0x2e6c1b(0xff)],function(_0x320fc5){const _0x51a4fc=_0x2e6c1b,_0x3478a5={};return _0x3478a5[_0x320fc5]={[Op[_0x51a4fc(0x12e)]]:'%'+_0x37ae3a[_0x51a4fc(0x133)]['filter']+'%'},_0x3478a5;})})),_0x20f476=_[_0x2e6c1b(0x10a)]({},_0x20f476,_0x37ae3a[_0x2e6c1b(0x13f)]),_0x2b7a98[_0x2e6c1b(0x13c)](_0x20f476);})[_0x68721d(0xfb)](function(_0x509496){const _0x184218=_0x68721d;if(_0x509496)return _0x339c69=_0x509496[_0x184218(0x134)],typeof _0x37ae3a['query'][_0x184218(0x124)]===_0x184218(0xfc)&&(_0x20f476[_0x184218(0x104)]=qs[_0x184218(0x104)](_0x37ae3a[_0x184218(0x133)][_0x184218(0x104)]),_0x20f476[_0x184218(0x118)]=qs[_0x184218(0x118)](_0x37ae3a[_0x184218(0x133)][_0x184218(0x118)])),_0x2b7a98[_0x184218(0x13c)](_0x20f476);})[_0x68721d(0xfb)](function(_0x47096a){if(_0x47096a)return _0x47096a?{'count':_0x339c69,'rows':_0x47096a}:null;})[_0x68721d(0xfb)](respondWithResult(_0x191b1a,null))[_0x68721d(0xef)](handleError(_0x191b1a,null));},exports['addConfiguration']=function(_0x2e1c5b,_0xac383b){const _0x4f52ff=a400_0x2b4d4b;return _0x2e1c5b[_0x4f52ff(0x12b)]['id']&&delete _0x2e1c5b[_0x4f52ff(0x12b)]['id'],db[_0x4f52ff(0x129)][_0x4f52ff(0xea)]({'where':{'id':_0x2e1c5b[_0x4f52ff(0xee)]['id']}})['then'](handleEntityNotFound(_0xac383b,null))[_0x4f52ff(0xfb)](function(_0x2fa2f9){const _0x20c591=_0x4f52ff;if(_0x2fa2f9)return _0x2e1c5b['body'][_0x20c591(0x142)]=_0x2fa2f9['id'],_0x2e1c5b[_0x20c591(0x12b)]['Subjects']=integrations[_0x20c591(0x11c)](_0x2e1c5b[_0x20c591(0x12b)][_0x20c591(0xe9)],_0x2e1c5b[_0x20c591(0x12b)]['type']),_0x2e1c5b[_0x20c591(0x12b)]['Descriptions']=integrations['getDescriptions'](_0x2e1c5b[_0x20c591(0x12b)][_0x20c591(0xe9)],_0x2e1c5b[_0x20c591(0x12b)][_0x20c591(0x13a)]),db[_0x20c591(0xf6)]['create'](_0x2e1c5b[_0x20c591(0x12b)],{'include':[{'model':db[_0x20c591(0xf4)],'as':_0x20c591(0x109)},{'model':db[_0x20c591(0xf4)],'as':_0x20c591(0x102)}]});return null;})['then'](respondWithResult(_0xac383b,null))[_0x4f52ff(0xef)](handleError(_0xac383b,null));},exports[a400_0x2b4d4b(0xf5)]=function(_0x576b34,_0x4e367a){const _0x1a4bdd=a400_0x2b4d4b;let _0x29b072='';return db['ZendeskAccount']['findOne']({'where':{'id':_0x576b34[_0x1a4bdd(0xee)]['id']},'attributes':['id','username',_0x1a4bdd(0x128),'token','authType',_0x1a4bdd(0x132)]})[_0x1a4bdd(0xfb)](handleEntityNotFound(_0x4e367a,null))[_0x1a4bdd(0xfb)](function(_0x3b9bcb){const _0x4fea9d=_0x1a4bdd;if(_0x3b9bcb){_0x29b072=_0x3b9bcb[_0x4fea9d(0x132)];const _0xfdf7a2=_0x29b072['slice'](-0x1);_0xfdf7a2==='/'&&(_0x29b072=_0x29b072[_0x4fea9d(0x105)](0x0,_0x29b072[_0x4fea9d(0xf1)](_0xfdf7a2)));const _0x360b12={'method':_0x4fea9d(0x11f),'uri':util[_0x4fea9d(0x139)]('%s/%s',_0x29b072,_0x4fea9d(0x112)),'json':!![]};switch(_0x3b9bcb['authType']){case _0x4fea9d(0x128):_0x360b12['headers']={'Authorization':util[_0x4fea9d(0x139)](_0x4fea9d(0x122),Buffer[_0x4fea9d(0x11a)](util[_0x4fea9d(0x139)](_0x4fea9d(0x100),_0x3b9bcb[_0x4fea9d(0xe7)],_0x3b9bcb[_0x4fea9d(0x128)]))['toString'](_0x4fea9d(0x106)))};break;case _0x4fea9d(0xeb):_0x360b12[_0x4fea9d(0x114)]={'Authorization':util[_0x4fea9d(0x139)](_0x4fea9d(0x122),Buffer[_0x4fea9d(0x11a)](util[_0x4fea9d(0x139)]('%s/token:%s',_0x3b9bcb[_0x4fea9d(0xe7)],_0x3b9bcb[_0x4fea9d(0xeb)]))[_0x4fea9d(0x117)]('base64'))};break;default:throw new ValidationError(_0x4fea9d(0x13d));}return rp(_0x360b12);}})[_0x1a4bdd(0xfb)](function(_0x43e669){const _0x44cfeb=_0x1a4bdd;if(_0x43e669){const _0x143288=[_0x44cfeb(0x119),_0x44cfeb(0x12f),_0x44cfeb(0xe5),_0x44cfeb(0xec)];return _[_0x44cfeb(0x11e)](_0x43e669[_0x44cfeb(0x112)],function(_0x8d05e6){const _0x104673=_0x44cfeb;return _0x143288[_0x104673(0x126)](_0x8d05e6[_0x104673(0x13a)]);}),{'count':_0x43e669[_0x44cfeb(0x112)][_0x44cfeb(0x134)],'rows':_['map'](_0x43e669[_0x44cfeb(0x112)],function(_0x510b81){const _0x284960=_0x44cfeb;return{'id':_0x510b81['id'],'name':_0x510b81[_0x284960(0x10d)]>0x7?_0x510b81[_0x284960(0x111)]:_0x510b81[_0x284960(0x13a)],'custom':_0x510b81[_0x284960(0x10d)]>0x7?!![]:![],'options':_0x510b81[_0x284960(0xe4)]?_0x510b81[_0x284960(0xe4)]:_0x510b81['custom_field_options']?_0x510b81[_0x284960(0x138)]:[]};})};}})[_0x1a4bdd(0xfb)](respondWithResult(_0x4e367a,null))[_0x1a4bdd(0xef)](function(_0x273925){const _0x491182=_0x1a4bdd;let _0x3b4d63=_0x576b34[_0x491182(0x133)][_0x491182(0x115)]?0x1f4:_0x273925[_0x491182(0xfd)]||0x1f4;logger[_0x491182(0x103)]('getFields,\x20%s,\x20%s,\x20%s',_0x491182(0xf5),_0x3b4d63,JSON[_0x491182(0x125)](_0x273925)),delete _0x273925[_0x491182(0x107)],_0x3b4d63===0x191&&(_0x3b4d63=0x190),_0x4e367a[_0x491182(0x121)](_0x3b4d63)[_0x491182(0xe3)](_0x576b34[_0x491182(0x133)][_0x491182(0x115)]?{'message':'Wrong\x20credentials','statusCode':_0x273925[_0x491182(0xfd)]}:_0x273925);});}; \ No newline at end of file +const a400_0x1df0=['sequelize','VIRTUAL','assignee','include','options','Subjects','send','%s:%s','error','end','util','Descriptions','group','ZendeskConfiguration','statusCode','getDescriptions','getSubjects','AccountId','username','includes','destroy','system_field_options','position','intersection','ticket_fields','getConfigurations','api','model','Wrong\x20credentials','stack','lodash','Unknown\x20authentication\x20type','count','toString','findOne','%s/%s','test','addConfiguration','length','catch','undefined','../../mysqldb','findAll','custom_field_options','getFields,\x20%s,\x20%s,\x20%s','then','authType','attributes','includeAll','format','limit','where','ZendeskAccount','nolimit','params','fields','update','rawAttributes','password','Basic\x20%s','index','Content-Range','show','../../components/integrations/configuration','base64','set','body','offset','remoteUri','../../components/parsers/qs','filter','remove','order','type','merge','GET','status','slice','filters','channel','substring','keys','map','create','lastIndexOf','sort','headers','pick','rows','query','stringify','like','subject','name','token'];(function(_0x3dafab,_0x1c9629){const _0x1df01e=function(_0x3e7d64){while(--_0x3e7d64){_0x3dafab['push'](_0x3dafab['shift']());}};_0x1df01e(++_0x1c9629);}(a400_0x1df0,0x115));const a400_0x3e7d=function(_0x3dafab,_0x1c9629){_0x3dafab=_0x3dafab-0x19b;let _0x1df01e=a400_0x1df0[_0x3dafab];return _0x1df01e;};const a400_0x478e4f=a400_0x3e7d;'use strict';const rp=require('request-promise-native'),util=require(a400_0x478e4f(0x1ad)),_=require(a400_0x478e4f(0x1c1)),qs=require(a400_0x478e4f(0x1e8)),logger=require('../../config/logger')(a400_0x478e4f(0x1bd)),{db}=require(a400_0x478e4f(0x1cc)),{Op,ValidationError}=require(a400_0x478e4f(0x1a3)),integrations=require(a400_0x478e4f(0x1e2));function respondWithResult(_0x3acac9,_0x23f8c6){return _0x23f8c6=_0x23f8c6||0xc8,function(_0x1a5f25){const _0x15f057=a400_0x3e7d;if(_0x1a5f25)return _0x3acac9[_0x15f057(0x1ef)](_0x23f8c6)['json'](_0x1a5f25);};}function respondWithFilteredResult(_0x56f384,_0x15cf62){return function(_0x2bef40){const _0x38f488=a400_0x3e7d;if(_0x2bef40){const _0x43954f=_0x2bef40['count'],_0x55a303=_0x15cf62[_0x38f488(0x1e6)];let _0x1168bb=_0x15cf62[_0x38f488(0x1e6)]+_0x15cf62[_0x38f488(0x1d5)],_0x3afca9;return _0x1168bb>=_0x43954f?(_0x1168bb=_0x43954f,_0x3afca9=0xc8):_0x3afca9=0xce,_0x56f384[_0x38f488(0x1ef)](_0x3afca9),_0x56f384[_0x38f488(0x1e4)](_0x38f488(0x1e0),_0x55a303+'-'+_0x1168bb+'/'+_0x43954f)['json'](_0x2bef40);}return null;};}function saveUpdates(_0x5d9432){return function(_0x35b5e3){const _0x465b66=a400_0x3e7d;if(_0x35b5e3)return _0x35b5e3[_0x465b66(0x1db)](_0x5d9432)['then'](function(_0x1ef2f5){return _0x1ef2f5;});return null;};}function removeEntity(_0x2baa56){return function(_0x3ec318){const _0xcf65df=a400_0x3e7d;if(_0x3ec318)return _0x3ec318[_0xcf65df(0x1b7)]()[_0xcf65df(0x1d0)](function(){const _0x1d638e=_0xcf65df;_0x2baa56[_0x1d638e(0x1ef)](0xcc)[_0x1d638e(0x1ac)]();});};}function handleEntityNotFound(_0xd21d77){return function(_0xf061fc){return!_0xf061fc&&_0xd21d77['sendStatus'](0x194),_0xf061fc;};}function handleError(_0x5af278,_0x5d65b3){return _0x5d65b3=_0x5d65b3||0x1f4,function(_0x252482){const _0x186cea=a400_0x3e7d;logger[_0x186cea(0x1ab)](_0x252482[_0x186cea(0x1c0)]),_0x252482[_0x186cea(0x1a1)]&&delete _0x252482[_0x186cea(0x1a1)],_0x5af278['status'](_0x5d65b3)[_0x186cea(0x1a9)](_0x252482);};}exports[a400_0x478e4f(0x1df)]=function(_0x27d176,_0x279734){const _0x37b49e=a400_0x478e4f;let _0x21b09e={};const _0x207676={},_0x2ef7c5={'count':0x0,'rows':[]},_0x16661f=_[_0x37b49e(0x1f5)](db[_0x37b49e(0x1d7)][_0x37b49e(0x1dc)],function(_0x5a96c7){const _0x47f250=_0x37b49e;return{'name':_0x5a96c7['fieldName'],'type':_0x5a96c7[_0x47f250(0x1ec)]['key']};});_0x207676[_0x37b49e(0x1be)]=_[_0x37b49e(0x1f5)](_0x16661f,_0x37b49e(0x1a1)),_0x207676[_0x37b49e(0x19d)]=_[_0x37b49e(0x1f4)](_0x27d176[_0x37b49e(0x19d)]),_0x207676[_0x37b49e(0x1f1)]=_[_0x37b49e(0x1ba)](_0x207676[_0x37b49e(0x1be)],_0x207676[_0x37b49e(0x19d)]),_0x21b09e[_0x37b49e(0x1d2)]=_['intersection'](_0x207676[_0x37b49e(0x1be)],qs[_0x37b49e(0x1da)](_0x27d176['query']['fields'])),_0x21b09e['attributes']=_0x21b09e[_0x37b49e(0x1d2)][_0x37b49e(0x1c9)]?_0x21b09e[_0x37b49e(0x1d2)]:_0x207676['model'];typeof _0x27d176['query'][_0x37b49e(0x1d8)]==='undefined'&&(_0x21b09e[_0x37b49e(0x1d5)]=qs[_0x37b49e(0x1d5)](_0x27d176[_0x37b49e(0x19d)]['limit']),_0x21b09e[_0x37b49e(0x1e6)]=qs[_0x37b49e(0x1e6)](_0x27d176[_0x37b49e(0x19d)][_0x37b49e(0x1e6)]));_0x21b09e[_0x37b49e(0x1eb)]=qs[_0x37b49e(0x1f8)](_0x27d176[_0x37b49e(0x19d)]['sort']),_0x21b09e[_0x37b49e(0x1d6)]=qs[_0x37b49e(0x1f1)](_[_0x37b49e(0x19b)](_0x27d176[_0x37b49e(0x19d)],_0x207676['filters']),_0x16661f);_0x27d176[_0x37b49e(0x19d)][_0x37b49e(0x1e9)]&&(_0x21b09e[_0x37b49e(0x1d6)]=_[_0x37b49e(0x1ed)](_0x21b09e[_0x37b49e(0x1d6)],{[Op['or']]:_['map'](_0x16661f,function(_0x21b1f7){const _0x4a3b49=_0x37b49e;if(_0x21b1f7[_0x4a3b49(0x1ec)]!==_0x4a3b49(0x1a4)){const _0x509731={};return _0x509731[_0x21b1f7['name']]={[Op[_0x4a3b49(0x19f)]]:'%'+_0x27d176[_0x4a3b49(0x19d)][_0x4a3b49(0x1e9)]+'%'},_0x509731;}})}));_0x21b09e=_[_0x37b49e(0x1ed)]({},_0x21b09e,_0x27d176['options']);const _0x4bf5ad={'where':_0x21b09e['where']};return db[_0x37b49e(0x1d7)]['count'](_0x4bf5ad)['then'](function(_0x8ffd19){const _0x175faf=_0x37b49e;return _0x2ef7c5[_0x175faf(0x1c3)]=_0x8ffd19,_0x27d176[_0x175faf(0x19d)][_0x175faf(0x1d3)]&&(_0x21b09e[_0x175faf(0x1a6)]=[{'all':!![]}]),db[_0x175faf(0x1d7)][_0x175faf(0x1cd)](_0x21b09e);})[_0x37b49e(0x1d0)](function(_0x30262e){const _0x343c90=_0x37b49e;return _0x2ef7c5[_0x343c90(0x19c)]=_0x30262e,_0x2ef7c5;})[_0x37b49e(0x1d0)](respondWithFilteredResult(_0x279734,_0x21b09e))[_0x37b49e(0x1ca)](handleError(_0x279734,null));},exports[a400_0x478e4f(0x1e1)]=function(_0x43e9f4,_0x32bf86){const _0x47f7e7=a400_0x478e4f;let _0x2e53bb={'raw':![],'where':{'id':_0x43e9f4[_0x47f7e7(0x1d9)]['id']}};const _0x59e9cc={};return _0x59e9cc[_0x47f7e7(0x1be)]=_[_0x47f7e7(0x1f4)](db[_0x47f7e7(0x1d7)][_0x47f7e7(0x1dc)]),_0x59e9cc[_0x47f7e7(0x19d)]=_[_0x47f7e7(0x1f4)](_0x43e9f4['query']),_0x59e9cc[_0x47f7e7(0x1f1)]=_['intersection'](_0x59e9cc[_0x47f7e7(0x1be)],_0x59e9cc[_0x47f7e7(0x19d)]),_0x2e53bb['attributes']=_['intersection'](_0x59e9cc[_0x47f7e7(0x1be)],qs['fields'](_0x43e9f4[_0x47f7e7(0x19d)]['fields'])),_0x2e53bb[_0x47f7e7(0x1d2)]=_0x2e53bb[_0x47f7e7(0x1d2)]['length']?_0x2e53bb[_0x47f7e7(0x1d2)]:_0x59e9cc['model'],_0x43e9f4['query'][_0x47f7e7(0x1d3)]&&(_0x2e53bb[_0x47f7e7(0x1a6)]=[{'all':!![]}]),_0x2e53bb=_[_0x47f7e7(0x1ed)]({},_0x2e53bb,_0x43e9f4[_0x47f7e7(0x1a7)]),db[_0x47f7e7(0x1d7)][_0x47f7e7(0x1c5)](_0x2e53bb)[_0x47f7e7(0x1d0)](handleEntityNotFound(_0x32bf86,null))[_0x47f7e7(0x1d0)](respondWithResult(_0x32bf86,null))[_0x47f7e7(0x1ca)](handleError(_0x32bf86,null));},exports['create']=function(_0x129e22,_0x11c5e3){const _0x2b486d=a400_0x478e4f;return db[_0x2b486d(0x1d7)][_0x2b486d(0x1f6)](_0x129e22[_0x2b486d(0x1e5)],{})[_0x2b486d(0x1d0)](respondWithResult(_0x11c5e3,0xc9))[_0x2b486d(0x1ca)](handleError(_0x11c5e3,null));},exports[a400_0x478e4f(0x1db)]=function(_0x2f4239,_0x22b837){const _0x66ffec=a400_0x478e4f;return _0x2f4239[_0x66ffec(0x1e5)]['id']&&delete _0x2f4239[_0x66ffec(0x1e5)]['id'],db['ZendeskAccount'][_0x66ffec(0x1c5)]({'where':{'id':_0x2f4239[_0x66ffec(0x1d9)]['id']}})['then'](handleEntityNotFound(_0x22b837,null))['then'](saveUpdates(_0x2f4239['body'],null))[_0x66ffec(0x1d0)](respondWithResult(_0x22b837,null))[_0x66ffec(0x1ca)](handleError(_0x22b837,null));},exports[a400_0x478e4f(0x1b7)]=function(_0x6abaaf,_0x5afa0a){const _0x1a9562=a400_0x478e4f;return db['ZendeskAccount'][_0x1a9562(0x1c5)]({'where':{'id':_0x6abaaf[_0x1a9562(0x1d9)]['id']}})[_0x1a9562(0x1d0)](handleEntityNotFound(_0x5afa0a,null))['then'](removeEntity(_0x5afa0a,null))[_0x1a9562(0x1ca)](handleError(_0x5afa0a,null));},exports[a400_0x478e4f(0x1bc)]=function(_0x1173e7,_0x12271a){const _0x43faa8=a400_0x478e4f;let _0x1b889c={};const _0x4604ea={};let _0x22da0f,_0x466bd6;return db[_0x43faa8(0x1d7)]['findOne']({'where':{'id':_0x1173e7[_0x43faa8(0x1d9)]['id']}})['then'](handleEntityNotFound(_0x12271a,null))['then'](function(_0x231a3e){const _0xf44dd4=_0x43faa8;if(_0x231a3e)return _0x22da0f=_0x231a3e,_0x4604ea[_0xf44dd4(0x1be)]=_[_0xf44dd4(0x1f4)](db[_0xf44dd4(0x1b0)]['rawAttributes']),_0x4604ea[_0xf44dd4(0x19d)]=_['keys'](_0x1173e7[_0xf44dd4(0x19d)]),_0x4604ea[_0xf44dd4(0x1f1)]=_[_0xf44dd4(0x1ba)](_0x4604ea[_0xf44dd4(0x1be)],_0x4604ea[_0xf44dd4(0x19d)]),_0x1b889c[_0xf44dd4(0x1d2)]=_[_0xf44dd4(0x1ba)](_0x4604ea[_0xf44dd4(0x1be)],qs[_0xf44dd4(0x1da)](_0x1173e7['query']['fields'])),_0x1b889c[_0xf44dd4(0x1d2)]=_0x1b889c[_0xf44dd4(0x1d2)][_0xf44dd4(0x1c9)]?_0x1b889c[_0xf44dd4(0x1d2)]:_0x4604ea[_0xf44dd4(0x1be)],_0x1b889c[_0xf44dd4(0x1eb)]=qs[_0xf44dd4(0x1f8)](_0x1173e7[_0xf44dd4(0x19d)][_0xf44dd4(0x1f8)]),_0x1b889c[_0xf44dd4(0x1d6)]=qs[_0xf44dd4(0x1f1)](_[_0xf44dd4(0x19b)](_0x1173e7[_0xf44dd4(0x19d)],_0x4604ea[_0xf44dd4(0x1f1)])),_0x1173e7['query'][_0xf44dd4(0x1e9)]&&(_0x1b889c['where']=_[_0xf44dd4(0x1ed)](_0x1b889c[_0xf44dd4(0x1d6)],{[Op['or']]:_['map'](_0x1b889c[_0xf44dd4(0x1d2)],function(_0x4da56c){const _0x3bab40=_0xf44dd4,_0x27a7d0={};return _0x27a7d0[_0x4da56c]={[Op['like']]:'%'+_0x1173e7[_0x3bab40(0x19d)]['filter']+'%'},_0x27a7d0;})})),_0x1b889c=_['merge']({},_0x1b889c,_0x1173e7[_0xf44dd4(0x1a7)]),_0x22da0f[_0xf44dd4(0x1bc)](_0x1b889c);})[_0x43faa8(0x1d0)](function(_0x2c5a1c){const _0x418e44=_0x43faa8;if(_0x2c5a1c)return _0x466bd6=_0x2c5a1c[_0x418e44(0x1c9)],typeof _0x1173e7[_0x418e44(0x19d)]['nolimit']===_0x418e44(0x1cb)&&(_0x1b889c[_0x418e44(0x1d5)]=qs[_0x418e44(0x1d5)](_0x1173e7[_0x418e44(0x19d)][_0x418e44(0x1d5)]),_0x1b889c['offset']=qs[_0x418e44(0x1e6)](_0x1173e7[_0x418e44(0x19d)][_0x418e44(0x1e6)])),_0x22da0f[_0x418e44(0x1bc)](_0x1b889c);})['then'](function(_0xdc4ffa){if(_0xdc4ffa)return _0xdc4ffa?{'count':_0x466bd6,'rows':_0xdc4ffa}:null;})['then'](respondWithResult(_0x12271a,null))[_0x43faa8(0x1ca)](handleError(_0x12271a,null));},exports[a400_0x478e4f(0x1c8)]=function(_0x49bfac,_0x3469fc){const _0x3865df=a400_0x478e4f;return _0x49bfac[_0x3865df(0x1e5)]['id']&&delete _0x49bfac[_0x3865df(0x1e5)]['id'],db[_0x3865df(0x1d7)][_0x3865df(0x1c5)]({'where':{'id':_0x49bfac['params']['id']}})[_0x3865df(0x1d0)](handleEntityNotFound(_0x3469fc,null))[_0x3865df(0x1d0)](function(_0x54b72f){const _0x15e190=_0x3865df;if(_0x54b72f)return _0x49bfac['body'][_0x15e190(0x1b4)]=_0x54b72f['id'],_0x49bfac[_0x15e190(0x1e5)][_0x15e190(0x1a8)]=integrations[_0x15e190(0x1b3)](_0x49bfac[_0x15e190(0x1e5)][_0x15e190(0x1f2)],_0x49bfac[_0x15e190(0x1e5)][_0x15e190(0x1ec)]),_0x49bfac['body'][_0x15e190(0x1ae)]=integrations[_0x15e190(0x1b2)](_0x49bfac[_0x15e190(0x1e5)][_0x15e190(0x1f2)],_0x49bfac[_0x15e190(0x1e5)][_0x15e190(0x1ec)]),db[_0x15e190(0x1b0)][_0x15e190(0x1f6)](_0x49bfac[_0x15e190(0x1e5)],{'include':[{'model':db['ZendeskField'],'as':_0x15e190(0x1a8)},{'model':db['ZendeskField'],'as':'Descriptions'}]});return null;})[_0x3865df(0x1d0)](respondWithResult(_0x3469fc,null))[_0x3865df(0x1ca)](handleError(_0x3469fc,null));},exports['getFields']=function(_0x1e71bb,_0x573a2f){const _0x3c5029=a400_0x478e4f;let _0x43bd45='';return db[_0x3c5029(0x1d7)]['findOne']({'where':{'id':_0x1e71bb[_0x3c5029(0x1d9)]['id']},'attributes':['id','username',_0x3c5029(0x1dd),_0x3c5029(0x1a2),'authType',_0x3c5029(0x1e7)]})[_0x3c5029(0x1d0)](handleEntityNotFound(_0x573a2f,null))[_0x3c5029(0x1d0)](function(_0x5e0d6a){const _0x22aab0=_0x3c5029;if(_0x5e0d6a){_0x43bd45=_0x5e0d6a[_0x22aab0(0x1e7)];const _0x588616=_0x43bd45[_0x22aab0(0x1f0)](-0x1);_0x588616==='/'&&(_0x43bd45=_0x43bd45[_0x22aab0(0x1f3)](0x0,_0x43bd45[_0x22aab0(0x1f7)](_0x588616)));const _0x284431={'method':_0x22aab0(0x1ee),'uri':util[_0x22aab0(0x1d4)](_0x22aab0(0x1c6),_0x43bd45,_0x22aab0(0x1bb)),'json':!![]};switch(_0x5e0d6a[_0x22aab0(0x1d1)]){case _0x22aab0(0x1dd):_0x284431[_0x22aab0(0x1f9)]={'Authorization':util['format'](_0x22aab0(0x1de),Buffer['from'](util[_0x22aab0(0x1d4)](_0x22aab0(0x1aa),_0x5e0d6a[_0x22aab0(0x1b5)],_0x5e0d6a['password']))[_0x22aab0(0x1c4)](_0x22aab0(0x1e3)))};break;case _0x22aab0(0x1a2):_0x284431[_0x22aab0(0x1f9)]={'Authorization':util['format']('Basic\x20%s',Buffer['from'](util[_0x22aab0(0x1d4)]('%s/token:%s',_0x5e0d6a[_0x22aab0(0x1b5)],_0x5e0d6a[_0x22aab0(0x1a2)]))[_0x22aab0(0x1c4)]('base64'))};break;default:throw new ValidationError(_0x22aab0(0x1c2));}return rp(_0x284431);}})[_0x3c5029(0x1d0)](function(_0x106798){const _0x39abf3=_0x3c5029;if(_0x106798){const _0x33cdb1=[_0x39abf3(0x1a0),'description',_0x39abf3(0x1af),_0x39abf3(0x1a5)];return _[_0x39abf3(0x1ea)](_0x106798[_0x39abf3(0x1bb)],function(_0x862dc){const _0x4752f9=_0x39abf3;return _0x33cdb1[_0x4752f9(0x1b6)](_0x862dc['type']);}),{'count':_0x106798[_0x39abf3(0x1bb)]['length'],'rows':_[_0x39abf3(0x1f5)](_0x106798['ticket_fields'],function(_0x560c36){const _0x9c9d2a=_0x39abf3;return{'id':_0x560c36['id'],'name':_0x560c36[_0x9c9d2a(0x1b9)]>0x7?_0x560c36['title']:_0x560c36['type'],'custom':_0x560c36['position']>0x7?!![]:![],'options':_0x560c36[_0x9c9d2a(0x1b8)]?_0x560c36[_0x9c9d2a(0x1b8)]:_0x560c36[_0x9c9d2a(0x1ce)]?_0x560c36[_0x9c9d2a(0x1ce)]:[]};})};}})[_0x3c5029(0x1d0)](respondWithResult(_0x573a2f,null))[_0x3c5029(0x1ca)](function(_0x53356d){const _0x558bea=_0x3c5029;let _0x5d492b=_0x1e71bb[_0x558bea(0x19d)][_0x558bea(0x1c7)]?0x1f4:_0x53356d[_0x558bea(0x1b1)]||0x1f4;logger[_0x558bea(0x1ab)](_0x558bea(0x1cf),'getFields',_0x5d492b,JSON[_0x558bea(0x19e)](_0x53356d)),delete _0x53356d['name'],_0x5d492b===0x191&&(_0x5d492b=0x190),_0x573a2f[_0x558bea(0x1ef)](_0x5d492b)['send'](_0x1e71bb[_0x558bea(0x19d)]['test']?{'message':_0x558bea(0x1bf),'statusCode':_0x53356d['statusCode']}:_0x53356d);});}; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.model.js b/server/api/intZendeskAccount/intZendeskAccount.model.js index c54f0fb..5d8ca34 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.model.js +++ b/server/api/intZendeskAccount/intZendeskAccount.model.js @@ -1 +1 @@ -const a401_0x9d87=['exports','ZendeskAccount','function','./intZendeskAccount.attributes'];(function(_0x5ada8c,_0x5279f0){const _0x9d8703=function(_0x34a94a){while(--_0x34a94a){_0x5ada8c['push'](_0x5ada8c['shift']());}};_0x9d8703(++_0x5279f0);}(a401_0x9d87,0x1e7));const a401_0x34a9=function(_0x5ada8c,_0x5279f0){_0x5ada8c=_0x5ada8c-0xa5;let _0x9d8703=a401_0x9d87[_0x5ada8c];return _0x9d8703;};const a401_0x4cb2c7=a401_0x34a9;'use strict';const {Model}=require('sequelize'),{attributes}=require(a401_0x4cb2c7(0xa5)),{options}=require('./intZendeskAccount.options');class ZendeskAccount extends Model{}function init(_0x2cbebe,_0x45f8db){const _0x5ec3d6=a401_0x4cb2c7,_0x278dcf=options(_0x2cbebe),_0x5c1347=typeof _0x45f8db===_0x5ec3d6(0xa8)?_0x45f8db(_0x278dcf):_0x278dcf;return ZendeskAccount['init'](attributes,_0x5c1347),ZendeskAccount;}module[a401_0x4cb2c7(0xa6)][a401_0x4cb2c7(0xa7)]=ZendeskAccount,module[a401_0x4cb2c7(0xa6)]['init']=init; \ No newline at end of file +const a401_0x1989=['./intZendeskAccount.attributes','./intZendeskAccount.options','init','exports'];(function(_0x3cfde0,_0x4f42fb){const _0x19894c=function(_0x2264e4){while(--_0x2264e4){_0x3cfde0['push'](_0x3cfde0['shift']());}};_0x19894c(++_0x4f42fb);}(a401_0x1989,0xca));const a401_0x2264=function(_0x3cfde0,_0x4f42fb){_0x3cfde0=_0x3cfde0-0xf6;let _0x19894c=a401_0x1989[_0x3cfde0];return _0x19894c;};const a401_0x5d55ce=a401_0x2264;'use strict';const {Model}=require('sequelize'),{attributes}=require(a401_0x5d55ce(0xf8)),{options}=require(a401_0x5d55ce(0xf9));class ZendeskAccount extends Model{}function init(_0x3efd84,_0x55978f){const _0x294652=a401_0x5d55ce,_0x141c34=options(_0x3efd84),_0xf6972d=typeof _0x55978f==='function'?_0x55978f(_0x141c34):_0x141c34;return ZendeskAccount[_0x294652(0xf6)](attributes,_0xf6972d),ZendeskAccount;}module[a401_0x5d55ce(0xf7)]['ZendeskAccount']=ZendeskAccount,module['exports'][a401_0x5d55ce(0xf6)]=init; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.options.js b/server/api/intZendeskAccount/intZendeskAccount.options.js index a1138ce..3503b9b 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.options.js +++ b/server/api/intZendeskAccount/intZendeskAccount.options.js @@ -1 +1 @@ -var a402_0x10b0=['options','exports'];(function(_0x2fbefe,_0x5d491c){var _0x10b075=function(_0x1f2e0c){while(--_0x1f2e0c){_0x2fbefe['push'](_0x2fbefe['shift']());}};_0x10b075(++_0x5d491c);}(a402_0x10b0,0x1ee));var a402_0x1f2e=function(_0x2fbefe,_0x5d491c){_0x2fbefe=_0x2fbefe-0x18b;var _0x10b075=a402_0x10b0[_0x2fbefe];return _0x10b075;};var a402_0x2d4e14=a402_0x1f2e;function options(_0x562758){return{'sequelize':_0x562758,'tableName':'int_zendesk_accounts','paranoid':![],'indexes':[],'timestamps':!![]};}module[a402_0x2d4e14(0x18c)][a402_0x2d4e14(0x18b)]=options; \ No newline at end of file +var a402_0x52e1=['exports','options','int_zendesk_accounts'];(function(_0x1483b3,_0x48b8c0){var _0x52e103=function(_0x3a4113){while(--_0x3a4113){_0x1483b3['push'](_0x1483b3['shift']());}};_0x52e103(++_0x48b8c0);}(a402_0x52e1,0x1eb));var a402_0x3a41=function(_0x1483b3,_0x48b8c0){_0x1483b3=_0x1483b3-0x103;var _0x52e103=a402_0x52e1[_0x1483b3];return _0x52e103;};var a402_0x4499b9=a402_0x3a41;function options(_0x360a0e){var _0xb89f29=a402_0x3a41;return{'sequelize':_0x360a0e,'tableName':_0xb89f29(0x103),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a402_0x4499b9(0x104)][a402_0x4499b9(0x105)]=options; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.rpc.js b/server/api/intZendeskAccount/intZendeskAccount.rpc.js index e677d82..ac24bc9 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.rpc.js +++ b/server/api/intZendeskAccount/intZendeskAccount.rpc.js @@ -1 +1 @@ -const a403_0x4e3d=['options','lodash','ZendeskAccount','map','model','ShowZendeskAccount','../../mysqldb','where','error','catch','then','include','GetZendeskAccount','attributes','message','stringify','debug','raw','info','rpc'];(function(_0x1ac19a,_0x1d392a){const _0x4e3d3e=function(_0x12fd56){while(--_0x12fd56){_0x1ac19a['push'](_0x1ac19a['shift']());}};_0x4e3d3e(++_0x1d392a);}(a403_0x4e3d,0x6c));const a403_0x12fd=function(_0x1ac19a,_0x1d392a){_0x1ac19a=_0x1ac19a-0x155;let _0x4e3d3e=a403_0x4e3d[_0x1ac19a];return _0x4e3d3e;};const a403_0x49e441=a403_0x12fd;'use strict';const _=require(a403_0x49e441(0x162)),db=require(a403_0x49e441(0x167))['db'],logger=require('../../config/logger')(a403_0x49e441(0x160));exports[a403_0x49e441(0x159)]=function(_0x118668){const _0x13689c=this;return new Promise(function(_0x1497f1,_0x3c3dec){const _0x4dd497=a403_0x12fd;return db[_0x4dd497(0x163)]['findAll']({'raw':_0x118668[_0x4dd497(0x161)]?_0x118668['options']['raw']===undefined?!![]:![]:!![],'where':_0x118668[_0x4dd497(0x161)]?_0x118668[_0x4dd497(0x161)][_0x4dd497(0x168)]||null:null,'attributes':_0x118668[_0x4dd497(0x161)]?_0x118668['options'][_0x4dd497(0x15a)]||null:null,'limit':_0x118668[_0x4dd497(0x161)]?_0x118668[_0x4dd497(0x161)]['limit']||null:null,'include':_0x118668[_0x4dd497(0x161)]?_0x118668[_0x4dd497(0x161)][_0x4dd497(0x158)]?_[_0x4dd497(0x164)](_0x118668['options'][_0x4dd497(0x158)],function(_0x2a8e62){const _0x15d03a=_0x4dd497;return{'model':db[_0x2a8e62[_0x15d03a(0x165)]],'as':_0x2a8e62['as'],'attributes':_0x2a8e62[_0x15d03a(0x15a)],'include':_0x2a8e62[_0x15d03a(0x158)]?_['map'](_0x2a8e62['include'],function(_0x4441d9){const _0x34cd80=_0x15d03a;return{'model':db[_0x4441d9['model']],'as':_0x4441d9['as'],'attributes':_0x4441d9[_0x34cd80(0x15a)],'include':_0x4441d9[_0x34cd80(0x158)]?_[_0x34cd80(0x164)](_0x4441d9[_0x34cd80(0x158)],function(_0x4288d9){const _0xb1ffe3=_0x34cd80;return{'model':db[_0x4288d9[_0xb1ffe3(0x165)]],'as':_0x4288d9['as'],'attributes':_0x4288d9['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x1c8c4d){const _0x4d3421=_0x4dd497;logger[_0x4d3421(0x15f)](_0x4d3421(0x159),_0x118668),logger[_0x4d3421(0x15d)](_0x4d3421(0x159),_0x118668,JSON[_0x4d3421(0x15c)](_0x1c8c4d)),_0x1497f1(_0x1c8c4d);})[_0x4dd497(0x156)](function(_0x857a1d){const _0x205edb=_0x4dd497;logger[_0x205edb(0x155)]('GetZendeskAccount',_0x857a1d['message'],_0x118668),_0x3c3dec(_0x13689c[_0x205edb(0x155)](0x1f4,_0x857a1d[_0x205edb(0x15b)]));});});},exports[a403_0x49e441(0x166)]=function(_0x7e2fe1){const _0x20f2d3=this;return new Promise(function(_0x4c1c01,_0x168029){const _0x2ea6c9=a403_0x12fd;return db['ZendeskAccount']['findOne']({'raw':_0x7e2fe1[_0x2ea6c9(0x161)]?_0x7e2fe1[_0x2ea6c9(0x161)][_0x2ea6c9(0x15e)]===undefined?!![]:![]:!![],'where':_0x7e2fe1['options']?_0x7e2fe1[_0x2ea6c9(0x161)][_0x2ea6c9(0x168)]||null:null,'attributes':_0x7e2fe1[_0x2ea6c9(0x161)]?_0x7e2fe1[_0x2ea6c9(0x161)][_0x2ea6c9(0x15a)]||null:null,'include':_0x7e2fe1[_0x2ea6c9(0x161)]?_0x7e2fe1['options'][_0x2ea6c9(0x158)]?_[_0x2ea6c9(0x164)](_0x7e2fe1['options'][_0x2ea6c9(0x158)],function(_0x2319af){const _0x4188ef=_0x2ea6c9;return{'model':db[_0x2319af['model']],'as':_0x2319af['as'],'attributes':_0x2319af[_0x4188ef(0x15a)],'include':_0x2319af[_0x4188ef(0x158)]?_[_0x4188ef(0x164)](_0x2319af[_0x4188ef(0x158)],function(_0x4e97a0){const _0x4d93f0=_0x4188ef;return{'model':db[_0x4e97a0[_0x4d93f0(0x165)]],'as':_0x4e97a0['as'],'attributes':_0x4e97a0[_0x4d93f0(0x15a)],'include':_0x4e97a0[_0x4d93f0(0x158)]?_[_0x4d93f0(0x164)](_0x4e97a0['include'],function(_0x5c65ff){const _0x192976=_0x4d93f0;return{'model':db[_0x5c65ff[_0x192976(0x165)]],'as':_0x5c65ff['as'],'attributes':_0x5c65ff['attributes']};}):[]};}):[]};}):[]:[]})[_0x2ea6c9(0x157)](function(_0xf57c7a){const _0x4bbf8c=_0x2ea6c9;logger[_0x4bbf8c(0x15f)]('ShowZendeskAccount',_0x7e2fe1),logger['debug'](_0x4bbf8c(0x166),_0x7e2fe1,JSON['stringify'](_0xf57c7a)),_0x4c1c01(_0xf57c7a);})[_0x2ea6c9(0x156)](function(_0x51d29f){const _0x32e67c=_0x2ea6c9;logger[_0x32e67c(0x155)]('ShowZendeskAccount',_0x51d29f[_0x32e67c(0x15b)],_0x7e2fe1),_0x168029(_0x20f2d3[_0x32e67c(0x155)](0x1f4,_0x51d29f[_0x32e67c(0x15b)]));});});}; \ No newline at end of file +const a403_0x2914=['where','ZendeskAccount','GetZendeskAccount','debug','message','catch','raw','info','options','include','../../mysqldb','model','attributes','error','findAll','ShowZendeskAccount','../../config/logger','limit','map'];(function(_0x4731d0,_0xcf6abc){const _0x29145b=function(_0x4f6883){while(--_0x4f6883){_0x4731d0['push'](_0x4731d0['shift']());}};_0x29145b(++_0xcf6abc);}(a403_0x2914,0x98));const a403_0x4f68=function(_0x4731d0,_0xcf6abc){_0x4731d0=_0x4731d0-0x124;let _0x29145b=a403_0x2914[_0x4731d0];return _0x29145b;};const a403_0x1040e1=a403_0x4f68;'use strict';const _=require('lodash'),db=require(a403_0x1040e1(0x12e))['db'],logger=require(a403_0x1040e1(0x134))('rpc');exports[a403_0x1040e1(0x126)]=function(_0x2ec2c2){const _0x442831=this;return new Promise(function(_0x4476ab,_0x461793){const _0x4e3122=a403_0x4f68;return db[_0x4e3122(0x125)][_0x4e3122(0x132)]({'raw':_0x2ec2c2[_0x4e3122(0x12c)]?_0x2ec2c2[_0x4e3122(0x12c)][_0x4e3122(0x12a)]===undefined?!![]:![]:!![],'where':_0x2ec2c2[_0x4e3122(0x12c)]?_0x2ec2c2[_0x4e3122(0x12c)][_0x4e3122(0x124)]||null:null,'attributes':_0x2ec2c2[_0x4e3122(0x12c)]?_0x2ec2c2[_0x4e3122(0x12c)]['attributes']||null:null,'limit':_0x2ec2c2[_0x4e3122(0x12c)]?_0x2ec2c2[_0x4e3122(0x12c)][_0x4e3122(0x135)]||null:null,'include':_0x2ec2c2[_0x4e3122(0x12c)]?_0x2ec2c2[_0x4e3122(0x12c)][_0x4e3122(0x12d)]?_[_0x4e3122(0x136)](_0x2ec2c2[_0x4e3122(0x12c)][_0x4e3122(0x12d)],function(_0x5cb593){const _0x3a5882=_0x4e3122;return{'model':db[_0x5cb593['model']],'as':_0x5cb593['as'],'attributes':_0x5cb593['attributes'],'include':_0x5cb593[_0x3a5882(0x12d)]?_[_0x3a5882(0x136)](_0x5cb593['include'],function(_0x1e90ce){const _0x35fdbc=_0x3a5882;return{'model':db[_0x1e90ce[_0x35fdbc(0x12f)]],'as':_0x1e90ce['as'],'attributes':_0x1e90ce[_0x35fdbc(0x130)],'include':_0x1e90ce[_0x35fdbc(0x12d)]?_['map'](_0x1e90ce[_0x35fdbc(0x12d)],function(_0x46a466){const _0x4a61f9=_0x35fdbc;return{'model':db[_0x46a466[_0x4a61f9(0x12f)]],'as':_0x46a466['as'],'attributes':_0x46a466['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x23b47e){const _0x5396d5=_0x4e3122;logger['info'](_0x5396d5(0x126),_0x2ec2c2),logger[_0x5396d5(0x127)](_0x5396d5(0x126),_0x2ec2c2,JSON['stringify'](_0x23b47e)),_0x4476ab(_0x23b47e);})[_0x4e3122(0x129)](function(_0x56f9fa){const _0x1a628c=_0x4e3122;logger[_0x1a628c(0x131)](_0x1a628c(0x126),_0x56f9fa[_0x1a628c(0x128)],_0x2ec2c2),_0x461793(_0x442831[_0x1a628c(0x131)](0x1f4,_0x56f9fa[_0x1a628c(0x128)]));});});},exports[a403_0x1040e1(0x133)]=function(_0x558f44){const _0x4d5525=this;return new Promise(function(_0x406d25,_0x114d7c){const _0x314940=a403_0x4f68;return db[_0x314940(0x125)]['findOne']({'raw':_0x558f44[_0x314940(0x12c)]?_0x558f44[_0x314940(0x12c)][_0x314940(0x12a)]===undefined?!![]:![]:!![],'where':_0x558f44[_0x314940(0x12c)]?_0x558f44[_0x314940(0x12c)][_0x314940(0x124)]||null:null,'attributes':_0x558f44[_0x314940(0x12c)]?_0x558f44[_0x314940(0x12c)][_0x314940(0x130)]||null:null,'include':_0x558f44['options']?_0x558f44[_0x314940(0x12c)][_0x314940(0x12d)]?_[_0x314940(0x136)](_0x558f44['options'][_0x314940(0x12d)],function(_0x225049){const _0xe1bd1c=_0x314940;return{'model':db[_0x225049[_0xe1bd1c(0x12f)]],'as':_0x225049['as'],'attributes':_0x225049[_0xe1bd1c(0x130)],'include':_0x225049['include']?_[_0xe1bd1c(0x136)](_0x225049[_0xe1bd1c(0x12d)],function(_0x49407c){const _0x17eb4e=_0xe1bd1c;return{'model':db[_0x49407c[_0x17eb4e(0x12f)]],'as':_0x49407c['as'],'attributes':_0x49407c[_0x17eb4e(0x130)],'include':_0x49407c[_0x17eb4e(0x12d)]?_['map'](_0x49407c[_0x17eb4e(0x12d)],function(_0x504381){const _0x3d724d=_0x17eb4e;return{'model':db[_0x504381[_0x3d724d(0x12f)]],'as':_0x504381['as'],'attributes':_0x504381['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x1b7be0){const _0x202f3c=_0x314940;logger[_0x202f3c(0x12b)](_0x202f3c(0x133),_0x558f44),logger[_0x202f3c(0x127)]('ShowZendeskAccount',_0x558f44,JSON['stringify'](_0x1b7be0)),_0x406d25(_0x1b7be0);})[_0x314940(0x129)](function(_0x5bda85){const _0x30c278=_0x314940;logger[_0x30c278(0x131)](_0x30c278(0x133),_0x5bda85[_0x30c278(0x128)],_0x558f44),_0x114d7c(_0x4d5525[_0x30c278(0x131)](0x1f4,_0x5bda85[_0x30c278(0x128)]));});});}; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/index.js b/server/api/intZendeskConfiguration/index.js index 2784019..ff57953 100644 --- a/server/api/intZendeskConfiguration/index.js +++ b/server/api/intZendeskConfiguration/index.js @@ -1 +1 @@ -const a404_0x3e45=['/:id','delete','exports','post','/:id/tags','setTags','getFields','getDescriptions','../../components/auth/service','getSubjects','get','index','/:id/descriptions','isAuthenticated','create','update','/:id/fields'];(function(_0x502309,_0x4004e4){const _0x3e4594=function(_0x391e27){while(--_0x391e27){_0x502309['push'](_0x502309['shift']());}};_0x3e4594(++_0x4004e4);}(a404_0x3e45,0x196));const a404_0x391e=function(_0x502309,_0x4004e4){_0x502309=_0x502309-0x90;let _0x3e4594=a404_0x3e45[_0x502309];return _0x3e4594;};const a404_0x9888b7=a404_0x391e;'use strict';const express=require('express'),router=express['Router'](),auth=require(a404_0x9888b7(0x9a)),controller=require('./intZendeskConfiguration.controller');router[a404_0x9888b7(0x9c)]('/',auth[a404_0x9888b7(0x9f)](),controller[a404_0x9888b7(0x9d)]),router[a404_0x9888b7(0x9c)](a404_0x9888b7(0x92),auth[a404_0x9888b7(0x9f)](),controller['show']),router[a404_0x9888b7(0x9c)](a404_0x9888b7(0x91),auth[a404_0x9888b7(0x9f)](),controller[a404_0x9888b7(0x98)]),router['get']('/:id/subjects',auth[a404_0x9888b7(0x9f)](),controller[a404_0x9888b7(0x9b)]),router['get'](a404_0x9888b7(0x9e),auth[a404_0x9888b7(0x9f)](),controller[a404_0x9888b7(0x99)]),router['get'](a404_0x9888b7(0x96),auth[a404_0x9888b7(0x9f)](),controller['getTags']),router[a404_0x9888b7(0x95)]('/',auth['isAuthenticated'](),controller[a404_0x9888b7(0xa0)]),router[a404_0x9888b7(0x95)](a404_0x9888b7(0x96),auth[a404_0x9888b7(0x9f)](),controller[a404_0x9888b7(0x97)]),router['put']('/:id',auth[a404_0x9888b7(0x9f)](),controller[a404_0x9888b7(0x90)]),router[a404_0x9888b7(0x93)](a404_0x9888b7(0x92),auth[a404_0x9888b7(0x9f)](),controller['destroy']),module[a404_0x9888b7(0x94)]=router; \ No newline at end of file +const a404_0x5639=['/:id/descriptions','create','getTags','setTags','destroy','show','index','isAuthenticated','/:id/subjects','update','/:id','/:id/tags','Router','express','exports','post','../../components/auth/service','get','getDescriptions','/:id/fields'];(function(_0x473203,_0x1d45bd){const _0x563936=function(_0x3560dc){while(--_0x3560dc){_0x473203['push'](_0x473203['shift']());}};_0x563936(++_0x1d45bd);}(a404_0x5639,0x16b));const a404_0x3560=function(_0x473203,_0x1d45bd){_0x473203=_0x473203-0xc9;let _0x563936=a404_0x5639[_0x473203];return _0x563936;};const a404_0x537f91=a404_0x3560;'use strict';const express=require(a404_0x537f91(0xd3)),router=express[a404_0x537f91(0xd2)](),auth=require(a404_0x537f91(0xd6)),controller=require('./intZendeskConfiguration.controller');router['get']('/',auth[a404_0x537f91(0xcd)](),controller[a404_0x537f91(0xcc)]),router[a404_0x537f91(0xd7)]('/:id',auth[a404_0x537f91(0xcd)](),controller[a404_0x537f91(0xcb)]),router[a404_0x537f91(0xd7)](a404_0x537f91(0xd9),auth[a404_0x537f91(0xcd)](),controller['getFields']),router[a404_0x537f91(0xd7)](a404_0x537f91(0xce),auth[a404_0x537f91(0xcd)](),controller['getSubjects']),router[a404_0x537f91(0xd7)](a404_0x537f91(0xda),auth[a404_0x537f91(0xcd)](),controller[a404_0x537f91(0xd8)]),router[a404_0x537f91(0xd7)](a404_0x537f91(0xd1),auth[a404_0x537f91(0xcd)](),controller[a404_0x537f91(0xdc)]),router[a404_0x537f91(0xd5)]('/',auth[a404_0x537f91(0xcd)](),controller[a404_0x537f91(0xdb)]),router['post'](a404_0x537f91(0xd1),auth[a404_0x537f91(0xcd)](),controller[a404_0x537f91(0xc9)]),router['put'](a404_0x537f91(0xd0),auth[a404_0x537f91(0xcd)](),controller[a404_0x537f91(0xcf)]),router['delete'](a404_0x537f91(0xd0),auth[a404_0x537f91(0xcd)](),controller[a404_0x537f91(0xca)]),module[a404_0x537f91(0xd4)]=router; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js index d63934c..17d5402 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js @@ -1 +1 @@ -const a405_0x49ed=['attributes','sequelize'];(function(_0x289877,_0x2b542a){const _0x49ede6=function(_0x20d714){while(--_0x20d714){_0x289877['push'](_0x289877['shift']());}};_0x49ede6(++_0x2b542a);}(a405_0x49ed,0xbd));const a405_0x20d7=function(_0x289877,_0x2b542a){_0x289877=_0x289877-0x70;let _0x49ede6=a405_0x49ed[_0x289877];return _0x49ede6;};const a405_0x26ca7d=a405_0x20d7;'use strict';const {DataTypes}=require(a405_0x26ca7d(0x70)),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes['STRING']}};module['exports'][a405_0x26ca7d(0x71)]=attributes; \ No newline at end of file +const a405_0x3397=['sequelize'];(function(_0x25edd6,_0x30f8b6){const _0x339770=function(_0x25935f){while(--_0x25935f){_0x25edd6['push'](_0x25edd6['shift']());}};_0x339770(++_0x30f8b6);}(a405_0x3397,0xaa));const a405_0x2593=function(_0x25edd6,_0x30f8b6){_0x25edd6=_0x25edd6-0x10c;let _0x339770=a405_0x3397[_0x25edd6];return _0x339770;};const a405_0x610204=a405_0x2593;'use strict';const {DataTypes}=require(a405_0x610204(0x10c)),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes['STRING']}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js index 4833f0b..4d5c2a9 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js @@ -1 +1 @@ -const a406_0x37cd=['Content-Range','sort','include','end','filters','fields','undefined','map','model','create','body','query','count','includeAll','json','catch','ZendeskField','attributes','stack','send','then','order','VIRTUAL','key','offset','options','fieldName','params','rows','name','sequelize','pick','intersection','show','destroy','setTags','../../components/parsers/qs','ids','filter','index','getFields','update','merge','sendStatus','status','limit','where','error','lodash','set','ZendeskConfiguration','getSubjects','rawAttributes','length','type','nolimit','like','findOne','findAll','getTags','getDescriptions','keys'];(function(_0x2806a0,_0x4625a7){const _0x37cde0=function(_0x4e245f){while(--_0x4e245f){_0x2806a0['push'](_0x2806a0['shift']());}};_0x37cde0(++_0x4625a7);}(a406_0x37cd,0x1a6));const a406_0x4e24=function(_0x2806a0,_0x4625a7){_0x2806a0=_0x2806a0-0x1b8;let _0x37cde0=a406_0x37cd[_0x2806a0];return _0x37cde0;};const a406_0x2be07c=a406_0x4e24;'use strict';const _=require(a406_0x2be07c(0x1f4)),qs=require(a406_0x2be07c(0x1e8)),logger=require('../../config/logger')('api'),{db}=require('../../mysqldb'),{Op}=require(a406_0x2be07c(0x1e2));function respondWithResult(_0x1ba5f3,_0x1633e2){return _0x1633e2=_0x1633e2||0xc8,function(_0xd581fd){const _0x3979a0=a406_0x4e24;if(_0xd581fd)return _0x1ba5f3[_0x3979a0(0x1f0)](_0x1633e2)[_0x3979a0(0x1d2)](_0xd581fd);};}function respondWithFilteredResult(_0x14c09b,_0x1dc163){return function(_0x5cd0a6){const _0x2b9090=a406_0x4e24;if(_0x5cd0a6){const _0x5f57d1=_0x5cd0a6[_0x2b9090(0x1d0)],_0x37c06c=_0x1dc163['offset'];let _0x45a3ae=_0x1dc163[_0x2b9090(0x1dc)]+_0x1dc163[_0x2b9090(0x1f1)],_0x2fe0af;return _0x45a3ae>=_0x5f57d1?(_0x45a3ae=_0x5f57d1,_0x2fe0af=0xc8):_0x2fe0af=0xce,_0x14c09b[_0x2b9090(0x1f0)](_0x2fe0af),_0x14c09b[_0x2b9090(0x1f5)](_0x2b9090(0x1c4),_0x37c06c+'-'+_0x45a3ae+'/'+_0x5f57d1)['json'](_0x5cd0a6);}return null;};}function saveUpdates(_0x141a4f){return function(_0x5a05c7){const _0xb94b39=a406_0x4e24;if(_0x5a05c7)return _0x5a05c7[_0xb94b39(0x1ed)](_0x141a4f)['then'](function(_0x390c92){return _0x390c92;});return null;};}function removeEntity(_0x4decc6){return function(_0x5de919){const _0x159ebc=a406_0x4e24;if(_0x5de919)return _0x5de919[_0x159ebc(0x1e6)]()[_0x159ebc(0x1d8)](function(){const _0x75a97a=_0x159ebc;_0x4decc6[_0x75a97a(0x1f0)](0xcc)[_0x75a97a(0x1c7)]();});};}function handleEntityNotFound(_0x1d8ab3){return function(_0x560703){const _0x17e3f8=a406_0x4e24;return!_0x560703&&_0x1d8ab3[_0x17e3f8(0x1ef)](0x194),_0x560703;};}function handleError(_0x3c07d6,_0x25cabb){return _0x25cabb=_0x25cabb||0x1f4,function(_0x1f0886){const _0x3582bd=a406_0x4e24;logger[_0x3582bd(0x1f3)](_0x1f0886[_0x3582bd(0x1d6)]),_0x1f0886[_0x3582bd(0x1e1)]&&delete _0x1f0886['name'],_0x3c07d6[_0x3582bd(0x1f0)](_0x25cabb)[_0x3582bd(0x1d7)](_0x1f0886);};}exports[a406_0x2be07c(0x1eb)]=function(_0x32c83a,_0x1089ab){const _0x4ef5fd=a406_0x2be07c;let _0x198406={};const _0x4ded60={},_0x4bdff1={'count':0x0,'rows':[]},_0x17bd82=_[_0x4ef5fd(0x1cb)](db[_0x4ef5fd(0x1b8)][_0x4ef5fd(0x1ba)],function(_0x5e198f){const _0x54655a=_0x4ef5fd;return{'name':_0x5e198f[_0x54655a(0x1de)],'type':_0x5e198f[_0x54655a(0x1bc)][_0x54655a(0x1db)]};});_0x4ded60[_0x4ef5fd(0x1cc)]=_[_0x4ef5fd(0x1cb)](_0x17bd82,'name'),_0x4ded60['query']=_['keys'](_0x32c83a['query']),_0x4ded60[_0x4ef5fd(0x1c8)]=_[_0x4ef5fd(0x1e4)](_0x4ded60[_0x4ef5fd(0x1cc)],_0x4ded60[_0x4ef5fd(0x1cf)]),_0x198406['attributes']=_['intersection'](_0x4ded60[_0x4ef5fd(0x1cc)],qs[_0x4ef5fd(0x1c9)](_0x32c83a[_0x4ef5fd(0x1cf)][_0x4ef5fd(0x1c9)])),_0x198406[_0x4ef5fd(0x1d5)]=_0x198406[_0x4ef5fd(0x1d5)][_0x4ef5fd(0x1bb)]?_0x198406['attributes']:_0x4ded60['model'];typeof _0x32c83a[_0x4ef5fd(0x1cf)][_0x4ef5fd(0x1bd)]==='undefined'&&(_0x198406[_0x4ef5fd(0x1f1)]=qs[_0x4ef5fd(0x1f1)](_0x32c83a['query'][_0x4ef5fd(0x1f1)]),_0x198406[_0x4ef5fd(0x1dc)]=qs['offset'](_0x32c83a['query']['offset']));_0x198406[_0x4ef5fd(0x1d9)]=qs[_0x4ef5fd(0x1c5)](_0x32c83a['query'][_0x4ef5fd(0x1c5)]),_0x198406[_0x4ef5fd(0x1f2)]=qs[_0x4ef5fd(0x1c8)](_[_0x4ef5fd(0x1e3)](_0x32c83a[_0x4ef5fd(0x1cf)],_0x4ded60[_0x4ef5fd(0x1c8)]),_0x17bd82);_0x32c83a[_0x4ef5fd(0x1cf)][_0x4ef5fd(0x1ea)]&&(_0x198406[_0x4ef5fd(0x1f2)]=_[_0x4ef5fd(0x1ee)](_0x198406[_0x4ef5fd(0x1f2)],{[Op['or']]:_[_0x4ef5fd(0x1cb)](_0x17bd82,function(_0xd0aa04){const _0x32739b=_0x4ef5fd;if(_0xd0aa04[_0x32739b(0x1bc)]!==_0x32739b(0x1da)){const _0xd57aa6={};return _0xd57aa6[_0xd0aa04[_0x32739b(0x1e1)]]={[Op[_0x32739b(0x1be)]]:'%'+_0x32c83a['query'][_0x32739b(0x1ea)]+'%'},_0xd57aa6;}})}));_0x198406=_[_0x4ef5fd(0x1ee)]({},_0x198406,_0x32c83a[_0x4ef5fd(0x1dd)]);const _0x38a962={'where':_0x198406[_0x4ef5fd(0x1f2)]};return db[_0x4ef5fd(0x1b8)]['count'](_0x38a962)[_0x4ef5fd(0x1d8)](function(_0x4154c8){const _0x32c87a=_0x4ef5fd;return _0x4bdff1['count']=_0x4154c8,_0x32c83a[_0x32c87a(0x1cf)][_0x32c87a(0x1d1)]&&(_0x198406[_0x32c87a(0x1c6)]=[{'all':!![]}]),db['ZendeskConfiguration'][_0x32c87a(0x1c0)](_0x198406);})[_0x4ef5fd(0x1d8)](function(_0x27fb81){const _0x301e4b=_0x4ef5fd;return _0x4bdff1[_0x301e4b(0x1e0)]=_0x27fb81,_0x4bdff1;})['then'](respondWithFilteredResult(_0x1089ab,_0x198406))['catch'](handleError(_0x1089ab,null));},exports[a406_0x2be07c(0x1e5)]=function(_0xa25efd,_0x5ed75f){const _0x23149e=a406_0x2be07c;let _0x5129c7={'raw':![],'where':{'id':_0xa25efd[_0x23149e(0x1df)]['id']}};const _0x42172c={};return _0x42172c[_0x23149e(0x1cc)]=_[_0x23149e(0x1c3)](db[_0x23149e(0x1b8)][_0x23149e(0x1ba)]),_0x42172c[_0x23149e(0x1cf)]=_[_0x23149e(0x1c3)](_0xa25efd['query']),_0x42172c['filters']=_[_0x23149e(0x1e4)](_0x42172c['model'],_0x42172c[_0x23149e(0x1cf)]),_0x5129c7[_0x23149e(0x1d5)]=_['intersection'](_0x42172c[_0x23149e(0x1cc)],qs[_0x23149e(0x1c9)](_0xa25efd[_0x23149e(0x1cf)][_0x23149e(0x1c9)])),_0x5129c7[_0x23149e(0x1d5)]=_0x5129c7['attributes'][_0x23149e(0x1bb)]?_0x5129c7[_0x23149e(0x1d5)]:_0x42172c[_0x23149e(0x1cc)],_0xa25efd[_0x23149e(0x1cf)][_0x23149e(0x1d1)]&&(_0x5129c7[_0x23149e(0x1c6)]=[{'all':!![]}]),_0x5129c7=_['merge']({},_0x5129c7,_0xa25efd[_0x23149e(0x1dd)]),db['ZendeskConfiguration'][_0x23149e(0x1bf)](_0x5129c7)['then'](handleEntityNotFound(_0x5ed75f,null))[_0x23149e(0x1d8)](respondWithResult(_0x5ed75f,null))[_0x23149e(0x1d3)](handleError(_0x5ed75f,null));},exports['create']=function(_0x4865db,_0x4428ef){const _0x5d57c7=a406_0x2be07c;return db[_0x5d57c7(0x1b8)][_0x5d57c7(0x1cd)](_0x4865db[_0x5d57c7(0x1ce)],{})[_0x5d57c7(0x1d8)](respondWithResult(_0x4428ef,0xc9))[_0x5d57c7(0x1d3)](handleError(_0x4428ef,null));},exports[a406_0x2be07c(0x1ed)]=function(_0x4b4c3c,_0x301ad1){const _0x3e3928=a406_0x2be07c;return _0x4b4c3c[_0x3e3928(0x1ce)]['id']&&delete _0x4b4c3c[_0x3e3928(0x1ce)]['id'],db['ZendeskConfiguration'][_0x3e3928(0x1bf)]({'where':{'id':_0x4b4c3c['params']['id']}})[_0x3e3928(0x1d8)](handleEntityNotFound(_0x301ad1,null))['then'](saveUpdates(_0x4b4c3c[_0x3e3928(0x1ce)],null))[_0x3e3928(0x1d8)](respondWithResult(_0x301ad1,null))[_0x3e3928(0x1d3)](handleError(_0x301ad1,null));},exports['destroy']=function(_0x48a36b,_0x37636f){const _0x2a5161=a406_0x2be07c;return db[_0x2a5161(0x1b8)][_0x2a5161(0x1bf)]({'where':{'id':_0x48a36b[_0x2a5161(0x1df)]['id']}})[_0x2a5161(0x1d8)](handleEntityNotFound(_0x37636f,null))[_0x2a5161(0x1d8)](removeEntity(_0x37636f,null))[_0x2a5161(0x1d3)](handleError(_0x37636f,null));},exports[a406_0x2be07c(0x1ec)]=function(_0xedf693,_0x4d16fc){const _0x467833=a406_0x2be07c;let _0x2ed3aa={};const _0x46a4ed={};let _0x5046c2,_0x2cf4a4;return db['ZendeskConfiguration'][_0x467833(0x1bf)]({'where':{'id':_0xedf693['params']['id']}})[_0x467833(0x1d8)](handleEntityNotFound(_0x4d16fc,null))[_0x467833(0x1d8)](function(_0x18af57){const _0x2876d6=_0x467833;if(_0x18af57)return _0x5046c2=_0x18af57,_0x46a4ed[_0x2876d6(0x1cc)]=_[_0x2876d6(0x1c3)](db[_0x2876d6(0x1d4)][_0x2876d6(0x1ba)]),_0x46a4ed['query']=_[_0x2876d6(0x1c3)](_0xedf693[_0x2876d6(0x1cf)]),_0x46a4ed[_0x2876d6(0x1c8)]=_[_0x2876d6(0x1e4)](_0x46a4ed[_0x2876d6(0x1cc)],_0x46a4ed[_0x2876d6(0x1cf)]),_0x2ed3aa[_0x2876d6(0x1d5)]=_[_0x2876d6(0x1e4)](_0x46a4ed[_0x2876d6(0x1cc)],qs['fields'](_0xedf693[_0x2876d6(0x1cf)][_0x2876d6(0x1c9)])),_0x2ed3aa[_0x2876d6(0x1d5)]=_0x2ed3aa[_0x2876d6(0x1d5)]['length']?_0x2ed3aa[_0x2876d6(0x1d5)]:_0x46a4ed[_0x2876d6(0x1cc)],_0x2ed3aa[_0x2876d6(0x1d9)]=qs[_0x2876d6(0x1c5)](_0xedf693[_0x2876d6(0x1cf)][_0x2876d6(0x1c5)]),_0x2ed3aa[_0x2876d6(0x1f2)]=qs[_0x2876d6(0x1c8)](_[_0x2876d6(0x1e3)](_0xedf693[_0x2876d6(0x1cf)],_0x46a4ed[_0x2876d6(0x1c8)])),_0xedf693['query']['filter']&&(_0x2ed3aa[_0x2876d6(0x1f2)]=_[_0x2876d6(0x1ee)](_0x2ed3aa['where'],{[Op['or']]:_[_0x2876d6(0x1cb)](_0x2ed3aa[_0x2876d6(0x1d5)],function(_0x240398){const _0x37673d=_0x2876d6,_0x464e7d={};return _0x464e7d[_0x240398]={[Op[_0x37673d(0x1be)]]:'%'+_0xedf693[_0x37673d(0x1cf)][_0x37673d(0x1ea)]+'%'},_0x464e7d;})})),_0x2ed3aa=_[_0x2876d6(0x1ee)]({},_0x2ed3aa,_0xedf693[_0x2876d6(0x1dd)]),_0x5046c2['getFields'](_0x2ed3aa);})['then'](function(_0x12d0dc){const _0x48185f=_0x467833;if(_0x12d0dc)return _0x2cf4a4=_0x12d0dc['length'],typeof _0xedf693['query']['nolimit']==='undefined'&&(_0x2ed3aa[_0x48185f(0x1f1)]=qs[_0x48185f(0x1f1)](_0xedf693[_0x48185f(0x1cf)]['limit']),_0x2ed3aa[_0x48185f(0x1dc)]=qs[_0x48185f(0x1dc)](_0xedf693[_0x48185f(0x1cf)][_0x48185f(0x1dc)])),_0x5046c2[_0x48185f(0x1ec)](_0x2ed3aa);})[_0x467833(0x1d8)](function(_0x5606a6){if(_0x5606a6)return _0x5606a6?{'count':_0x2cf4a4,'rows':_0x5606a6}:null;})['then'](respondWithResult(_0x4d16fc,null))[_0x467833(0x1d3)](handleError(_0x4d16fc,null));},exports[a406_0x2be07c(0x1b9)]=function(_0x47ea68,_0x507787){const _0x165ce4=a406_0x2be07c;let _0x127701={};const _0x5c769c={};let _0x1f5b75,_0x54b4ec;return db['ZendeskConfiguration'][_0x165ce4(0x1bf)]({'where':{'id':_0x47ea68[_0x165ce4(0x1df)]['id']}})[_0x165ce4(0x1d8)](handleEntityNotFound(_0x507787,null))[_0x165ce4(0x1d8)](function(_0x22dd34){const _0x31cf75=_0x165ce4;if(_0x22dd34)return _0x1f5b75=_0x22dd34,_0x5c769c[_0x31cf75(0x1cc)]=_[_0x31cf75(0x1c3)](db[_0x31cf75(0x1d4)][_0x31cf75(0x1ba)]),_0x5c769c[_0x31cf75(0x1cf)]=_[_0x31cf75(0x1c3)](_0x47ea68['query']),_0x5c769c['filters']=_[_0x31cf75(0x1e4)](_0x5c769c[_0x31cf75(0x1cc)],_0x5c769c[_0x31cf75(0x1cf)]),_0x127701[_0x31cf75(0x1d5)]=_['intersection'](_0x5c769c[_0x31cf75(0x1cc)],qs[_0x31cf75(0x1c9)](_0x47ea68[_0x31cf75(0x1cf)][_0x31cf75(0x1c9)])),_0x127701[_0x31cf75(0x1d5)]=_0x127701[_0x31cf75(0x1d5)][_0x31cf75(0x1bb)]?_0x127701[_0x31cf75(0x1d5)]:_0x5c769c[_0x31cf75(0x1cc)],_0x127701['order']=qs['sort'](_0x47ea68['query']['sort']),_0x127701['where']=qs['filters'](_[_0x31cf75(0x1e3)](_0x47ea68['query'],_0x5c769c[_0x31cf75(0x1c8)])),_0x47ea68[_0x31cf75(0x1cf)][_0x31cf75(0x1ea)]&&(_0x127701['where']=_[_0x31cf75(0x1ee)](_0x127701[_0x31cf75(0x1f2)],{[Op['or']]:_['map'](_0x127701['attributes'],function(_0xa45cfc){const _0x31c366=_0x31cf75,_0x576b2c={};return _0x576b2c[_0xa45cfc]={[Op[_0x31c366(0x1be)]]:'%'+_0x47ea68[_0x31c366(0x1cf)][_0x31c366(0x1ea)]+'%'},_0x576b2c;})})),_0x127701=_[_0x31cf75(0x1ee)]({},_0x127701,_0x47ea68[_0x31cf75(0x1dd)]),_0x1f5b75['getSubjects'](_0x127701);})[_0x165ce4(0x1d8)](function(_0x191315){const _0x5897e9=_0x165ce4;if(_0x191315)return _0x54b4ec=_0x191315[_0x5897e9(0x1bb)],typeof _0x47ea68[_0x5897e9(0x1cf)]['nolimit']===_0x5897e9(0x1ca)&&(_0x127701[_0x5897e9(0x1f1)]=qs['limit'](_0x47ea68[_0x5897e9(0x1cf)][_0x5897e9(0x1f1)]),_0x127701[_0x5897e9(0x1dc)]=qs[_0x5897e9(0x1dc)](_0x47ea68[_0x5897e9(0x1cf)][_0x5897e9(0x1dc)])),_0x1f5b75[_0x5897e9(0x1b9)](_0x127701);})['then'](function(_0x54e698){if(_0x54e698)return _0x54e698?{'count':_0x54b4ec,'rows':_0x54e698}:null;})[_0x165ce4(0x1d8)](respondWithResult(_0x507787,null))['catch'](handleError(_0x507787,null));},exports[a406_0x2be07c(0x1c2)]=function(_0x4715d6,_0x9fe096){const _0x20faa2=a406_0x2be07c;let _0x4eae62={};const _0x496a0a={};let _0x47acee,_0x5511fc;return db[_0x20faa2(0x1b8)]['findOne']({'where':{'id':_0x4715d6[_0x20faa2(0x1df)]['id']}})[_0x20faa2(0x1d8)](handleEntityNotFound(_0x9fe096,null))[_0x20faa2(0x1d8)](function(_0x1b2603){const _0x4d95cd=_0x20faa2;if(_0x1b2603)return _0x47acee=_0x1b2603,_0x496a0a[_0x4d95cd(0x1cc)]=_['keys'](db[_0x4d95cd(0x1d4)][_0x4d95cd(0x1ba)]),_0x496a0a[_0x4d95cd(0x1cf)]=_[_0x4d95cd(0x1c3)](_0x4715d6[_0x4d95cd(0x1cf)]),_0x496a0a['filters']=_['intersection'](_0x496a0a[_0x4d95cd(0x1cc)],_0x496a0a[_0x4d95cd(0x1cf)]),_0x4eae62[_0x4d95cd(0x1d5)]=_[_0x4d95cd(0x1e4)](_0x496a0a['model'],qs['fields'](_0x4715d6[_0x4d95cd(0x1cf)]['fields'])),_0x4eae62[_0x4d95cd(0x1d5)]=_0x4eae62[_0x4d95cd(0x1d5)]['length']?_0x4eae62[_0x4d95cd(0x1d5)]:_0x496a0a[_0x4d95cd(0x1cc)],_0x4eae62[_0x4d95cd(0x1d9)]=qs[_0x4d95cd(0x1c5)](_0x4715d6[_0x4d95cd(0x1cf)]['sort']),_0x4eae62[_0x4d95cd(0x1f2)]=qs[_0x4d95cd(0x1c8)](_[_0x4d95cd(0x1e3)](_0x4715d6[_0x4d95cd(0x1cf)],_0x496a0a[_0x4d95cd(0x1c8)])),_0x4715d6['query']['filter']&&(_0x4eae62['where']=_[_0x4d95cd(0x1ee)](_0x4eae62['where'],{[Op['or']]:_[_0x4d95cd(0x1cb)](_0x4eae62[_0x4d95cd(0x1d5)],function(_0xa044fb){const _0x5bc986=_0x4d95cd,_0x5e8e28={};return _0x5e8e28[_0xa044fb]={[Op[_0x5bc986(0x1be)]]:'%'+_0x4715d6[_0x5bc986(0x1cf)][_0x5bc986(0x1ea)]+'%'},_0x5e8e28;})})),_0x4eae62=_['merge']({},_0x4eae62,_0x4715d6[_0x4d95cd(0x1dd)]),_0x47acee[_0x4d95cd(0x1c2)](_0x4eae62);})[_0x20faa2(0x1d8)](function(_0x38d45e){const _0x465d4c=_0x20faa2;if(_0x38d45e)return _0x5511fc=_0x38d45e['length'],typeof _0x4715d6[_0x465d4c(0x1cf)][_0x465d4c(0x1bd)]==='undefined'&&(_0x4eae62['limit']=qs[_0x465d4c(0x1f1)](_0x4715d6[_0x465d4c(0x1cf)][_0x465d4c(0x1f1)]),_0x4eae62[_0x465d4c(0x1dc)]=qs[_0x465d4c(0x1dc)](_0x4715d6['query']['offset'])),_0x47acee[_0x465d4c(0x1c2)](_0x4eae62);})[_0x20faa2(0x1d8)](function(_0x5d0eac){if(_0x5d0eac)return _0x5d0eac?{'count':_0x5511fc,'rows':_0x5d0eac}:null;})[_0x20faa2(0x1d8)](respondWithResult(_0x9fe096,null))[_0x20faa2(0x1d3)](handleError(_0x9fe096,null));},exports['getTags']=function(_0x17c0ac,_0x41b4bf){const _0x506ade=a406_0x2be07c;let _0x37bea3={};const _0x305aa8={};let _0x2c2690,_0xfb707f;return db[_0x506ade(0x1b8)][_0x506ade(0x1bf)]({'where':{'id':_0x17c0ac['params']['id']}})[_0x506ade(0x1d8)](handleEntityNotFound(_0x41b4bf,null))[_0x506ade(0x1d8)](function(_0x517d3a){const _0x411add=_0x506ade;if(_0x517d3a)return _0x2c2690=_0x517d3a,_0x305aa8[_0x411add(0x1cc)]=_[_0x411add(0x1c3)](db['Tag'][_0x411add(0x1ba)]),_0x305aa8[_0x411add(0x1cf)]=_[_0x411add(0x1c3)](_0x17c0ac[_0x411add(0x1cf)]),_0x305aa8['filters']=_[_0x411add(0x1e4)](_0x305aa8['model'],_0x305aa8['query']),_0x37bea3[_0x411add(0x1d5)]=_[_0x411add(0x1e4)](_0x305aa8[_0x411add(0x1cc)],qs[_0x411add(0x1c9)](_0x17c0ac[_0x411add(0x1cf)][_0x411add(0x1c9)])),_0x37bea3[_0x411add(0x1d5)]=_0x37bea3[_0x411add(0x1d5)][_0x411add(0x1bb)]?_0x37bea3[_0x411add(0x1d5)]:_0x305aa8[_0x411add(0x1cc)],_0x37bea3[_0x411add(0x1d9)]=qs[_0x411add(0x1c5)](_0x17c0ac[_0x411add(0x1cf)][_0x411add(0x1c5)]),_0x37bea3[_0x411add(0x1f2)]=qs[_0x411add(0x1c8)](_['pick'](_0x17c0ac[_0x411add(0x1cf)],_0x305aa8['filters'])),_0x17c0ac[_0x411add(0x1cf)][_0x411add(0x1ea)]&&(_0x37bea3[_0x411add(0x1f2)]=_[_0x411add(0x1ee)](_0x37bea3[_0x411add(0x1f2)],{[Op['or']]:_[_0x411add(0x1cb)](_0x37bea3[_0x411add(0x1d5)],function(_0xcff7f2){const _0x151629=_0x411add,_0x9eabfe={};return _0x9eabfe[_0xcff7f2]={[Op['like']]:'%'+_0x17c0ac[_0x151629(0x1cf)][_0x151629(0x1ea)]+'%'},_0x9eabfe;})})),_0x37bea3=_[_0x411add(0x1ee)]({},_0x37bea3,_0x17c0ac[_0x411add(0x1dd)]),_0x2c2690[_0x411add(0x1c1)](_0x37bea3);})['then'](function(_0x39dff8){const _0x4176e5=_0x506ade;if(_0x39dff8)return _0xfb707f=_0x39dff8[_0x4176e5(0x1bb)],typeof _0x17c0ac[_0x4176e5(0x1cf)]['nolimit']===_0x4176e5(0x1ca)&&(_0x37bea3['limit']=qs[_0x4176e5(0x1f1)](_0x17c0ac['query'][_0x4176e5(0x1f1)]),_0x37bea3[_0x4176e5(0x1dc)]=qs[_0x4176e5(0x1dc)](_0x17c0ac[_0x4176e5(0x1cf)]['offset'])),_0x2c2690[_0x4176e5(0x1c1)](_0x37bea3);})[_0x506ade(0x1d8)](function(_0x2f9793){if(_0x2f9793)return _0x2f9793?{'count':_0xfb707f,'rows':_0x2f9793}:null;})[_0x506ade(0x1d8)](respondWithResult(_0x41b4bf,null))[_0x506ade(0x1d3)](handleError(_0x41b4bf,null));},exports[a406_0x2be07c(0x1e7)]=function(_0x5b09af,_0x1b60cb){const _0xb7315e=a406_0x2be07c;return _0x5b09af[_0xb7315e(0x1ce)]['id']&&delete _0x5b09af['body']['id'],db[_0xb7315e(0x1b8)]['findOne']({'where':{'id':_0x5b09af[_0xb7315e(0x1df)]['id']}})['then'](handleEntityNotFound(_0x1b60cb,null))[_0xb7315e(0x1d8)](function(_0x25b725){const _0x16d860=_0xb7315e;if(_0x25b725)return _0x25b725[_0x16d860(0x1e7)](_0x5b09af[_0x16d860(0x1ce)][_0x16d860(0x1e9)]||[]);return null;})['then'](respondWithResult(_0x1b60cb,null))[_0xb7315e(0x1d3)](handleError(_0x1b60cb,null));}; \ No newline at end of file +const a406_0x2a6d=['send','like','set','getFields','rows','../../config/logger','status','merge','include','attributes','limit','ids','map','ZendeskField','create','pick','intersection','model','order','catch','../../mysqldb','name','options','../../components/parsers/qs','key','includeAll','findAll','type','destroy','rawAttributes','error','api','count','getDescriptions','findOne','lodash','fields','body','Tag','update','VIRTUAL','query','params','sort','where','getTags','stack','show','filter','nolimit','filters','setTags','undefined','ZendeskConfiguration','length','getSubjects','offset','keys','then','sendStatus'];(function(_0x25c7c6,_0x3e548c){const _0x2a6d85=function(_0x187016){while(--_0x187016){_0x25c7c6['push'](_0x25c7c6['shift']());}};_0x2a6d85(++_0x3e548c);}(a406_0x2a6d,0xea));const a406_0x1870=function(_0x25c7c6,_0x3e548c){_0x25c7c6=_0x25c7c6-0x12d;let _0x2a6d85=a406_0x2a6d[_0x25c7c6];return _0x2a6d85;};const a406_0x394c61=a406_0x1870;'use strict';const _=require(a406_0x394c61(0x156)),qs=require(a406_0x394c61(0x14a)),logger=require(a406_0x394c61(0x138))(a406_0x394c61(0x152)),{db}=require(a406_0x394c61(0x147)),{Op}=require('sequelize');function respondWithResult(_0x1a8ae5,_0x48f269){return _0x48f269=_0x48f269||0xc8,function(_0x450fd4){const _0x531e41=a406_0x1870;if(_0x450fd4)return _0x1a8ae5[_0x531e41(0x139)](_0x48f269)['json'](_0x450fd4);};}function respondWithFilteredResult(_0xef90f2,_0x4599f5){return function(_0x49027b){const _0x4da4ee=a406_0x1870;if(_0x49027b){const _0x480a07=_0x49027b[_0x4da4ee(0x153)],_0x28155e=_0x4599f5['offset'];let _0x2101df=_0x4599f5['offset']+_0x4599f5[_0x4da4ee(0x13d)],_0x5d65d1;return _0x2101df>=_0x480a07?(_0x2101df=_0x480a07,_0x5d65d1=0xc8):_0x5d65d1=0xce,_0xef90f2['status'](_0x5d65d1),_0xef90f2[_0x4da4ee(0x135)]('Content-Range',_0x28155e+'-'+_0x2101df+'/'+_0x480a07)['json'](_0x49027b);}return null;};}function saveUpdates(_0x2a041a){return function(_0x21c768){const _0x52eade=a406_0x1870;if(_0x21c768)return _0x21c768['update'](_0x2a041a)[_0x52eade(0x131)](function(_0x3e3da4){return _0x3e3da4;});return null;};}function removeEntity(_0x3602f9){return function(_0x44828){const _0x373857=a406_0x1870;if(_0x44828)return _0x44828[_0x373857(0x14f)]()[_0x373857(0x131)](function(){const _0x43d04c=_0x373857;_0x3602f9[_0x43d04c(0x139)](0xcc)['end']();});};}function handleEntityNotFound(_0x5a544d){return function(_0x125738){const _0x4aba2d=a406_0x1870;return!_0x125738&&_0x5a544d[_0x4aba2d(0x132)](0x194),_0x125738;};}function handleError(_0x247183,_0x5a9cda){return _0x5a9cda=_0x5a9cda||0x1f4,function(_0x709121){const _0x3d870a=a406_0x1870;logger[_0x3d870a(0x151)](_0x709121[_0x3d870a(0x161)]),_0x709121[_0x3d870a(0x148)]&&delete _0x709121[_0x3d870a(0x148)],_0x247183[_0x3d870a(0x139)](_0x5a9cda)[_0x3d870a(0x133)](_0x709121);};}exports['index']=function(_0x3bf32d,_0x130c58){const _0x4cff1b=a406_0x394c61;let _0x55887f={};const _0x97f7fb={},_0x35dc55={'count':0x0,'rows':[]},_0x40ef4e=_['map'](db['ZendeskConfiguration'][_0x4cff1b(0x150)],function(_0xa1238c){const _0x237c9a=_0x4cff1b;return{'name':_0xa1238c['fieldName'],'type':_0xa1238c[_0x237c9a(0x14e)][_0x237c9a(0x14b)]};});_0x97f7fb['model']=_[_0x4cff1b(0x13f)](_0x40ef4e,_0x4cff1b(0x148)),_0x97f7fb['query']=_[_0x4cff1b(0x130)](_0x3bf32d[_0x4cff1b(0x15c)]),_0x97f7fb[_0x4cff1b(0x165)]=_['intersection'](_0x97f7fb[_0x4cff1b(0x144)],_0x97f7fb[_0x4cff1b(0x15c)]),_0x55887f[_0x4cff1b(0x13c)]=_[_0x4cff1b(0x143)](_0x97f7fb[_0x4cff1b(0x144)],qs[_0x4cff1b(0x157)](_0x3bf32d['query'][_0x4cff1b(0x157)])),_0x55887f['attributes']=_0x55887f[_0x4cff1b(0x13c)][_0x4cff1b(0x12d)]?_0x55887f[_0x4cff1b(0x13c)]:_0x97f7fb[_0x4cff1b(0x144)];typeof _0x3bf32d[_0x4cff1b(0x15c)][_0x4cff1b(0x164)]===_0x4cff1b(0x167)&&(_0x55887f['limit']=qs[_0x4cff1b(0x13d)](_0x3bf32d[_0x4cff1b(0x15c)][_0x4cff1b(0x13d)]),_0x55887f[_0x4cff1b(0x12f)]=qs['offset'](_0x3bf32d['query']['offset']));_0x55887f[_0x4cff1b(0x145)]=qs[_0x4cff1b(0x15e)](_0x3bf32d['query']['sort']),_0x55887f[_0x4cff1b(0x15f)]=qs[_0x4cff1b(0x165)](_['pick'](_0x3bf32d['query'],_0x97f7fb[_0x4cff1b(0x165)]),_0x40ef4e);_0x3bf32d[_0x4cff1b(0x15c)][_0x4cff1b(0x163)]&&(_0x55887f['where']=_['merge'](_0x55887f[_0x4cff1b(0x15f)],{[Op['or']]:_[_0x4cff1b(0x13f)](_0x40ef4e,function(_0x543074){const _0x4e8c4b=_0x4cff1b;if(_0x543074[_0x4e8c4b(0x14e)]!==_0x4e8c4b(0x15b)){const _0xf51c27={};return _0xf51c27[_0x543074[_0x4e8c4b(0x148)]]={[Op[_0x4e8c4b(0x134)]]:'%'+_0x3bf32d['query'][_0x4e8c4b(0x163)]+'%'},_0xf51c27;}})}));_0x55887f=_[_0x4cff1b(0x13a)]({},_0x55887f,_0x3bf32d[_0x4cff1b(0x149)]);const _0x2d86a6={'where':_0x55887f[_0x4cff1b(0x15f)]};return db['ZendeskConfiguration']['count'](_0x2d86a6)[_0x4cff1b(0x131)](function(_0x44644a){const _0x2be440=_0x4cff1b;return _0x35dc55[_0x2be440(0x153)]=_0x44644a,_0x3bf32d['query'][_0x2be440(0x14c)]&&(_0x55887f[_0x2be440(0x13b)]=[{'all':!![]}]),db[_0x2be440(0x168)][_0x2be440(0x14d)](_0x55887f);})[_0x4cff1b(0x131)](function(_0x42c27a){const _0x519aeb=_0x4cff1b;return _0x35dc55[_0x519aeb(0x137)]=_0x42c27a,_0x35dc55;})['then'](respondWithFilteredResult(_0x130c58,_0x55887f))['catch'](handleError(_0x130c58,null));},exports[a406_0x394c61(0x162)]=function(_0x185136,_0x1b4f55){const _0x2bc325=a406_0x394c61;let _0x175977={'raw':![],'where':{'id':_0x185136[_0x2bc325(0x15d)]['id']}};const _0x544c9b={};return _0x544c9b['model']=_[_0x2bc325(0x130)](db[_0x2bc325(0x168)]['rawAttributes']),_0x544c9b[_0x2bc325(0x15c)]=_['keys'](_0x185136[_0x2bc325(0x15c)]),_0x544c9b[_0x2bc325(0x165)]=_[_0x2bc325(0x143)](_0x544c9b['model'],_0x544c9b[_0x2bc325(0x15c)]),_0x175977[_0x2bc325(0x13c)]=_['intersection'](_0x544c9b[_0x2bc325(0x144)],qs[_0x2bc325(0x157)](_0x185136[_0x2bc325(0x15c)][_0x2bc325(0x157)])),_0x175977[_0x2bc325(0x13c)]=_0x175977[_0x2bc325(0x13c)][_0x2bc325(0x12d)]?_0x175977[_0x2bc325(0x13c)]:_0x544c9b[_0x2bc325(0x144)],_0x185136[_0x2bc325(0x15c)]['includeAll']&&(_0x175977[_0x2bc325(0x13b)]=[{'all':!![]}]),_0x175977=_[_0x2bc325(0x13a)]({},_0x175977,_0x185136['options']),db[_0x2bc325(0x168)]['findOne'](_0x175977)[_0x2bc325(0x131)](handleEntityNotFound(_0x1b4f55,null))[_0x2bc325(0x131)](respondWithResult(_0x1b4f55,null))[_0x2bc325(0x146)](handleError(_0x1b4f55,null));},exports[a406_0x394c61(0x141)]=function(_0x3d8bee,_0x382b5d){const _0x5c6827=a406_0x394c61;return db[_0x5c6827(0x168)][_0x5c6827(0x141)](_0x3d8bee[_0x5c6827(0x158)],{})[_0x5c6827(0x131)](respondWithResult(_0x382b5d,0xc9))['catch'](handleError(_0x382b5d,null));},exports[a406_0x394c61(0x15a)]=function(_0x1001e2,_0x10a347){const _0x4e7c96=a406_0x394c61;return _0x1001e2['body']['id']&&delete _0x1001e2[_0x4e7c96(0x158)]['id'],db['ZendeskConfiguration'][_0x4e7c96(0x155)]({'where':{'id':_0x1001e2[_0x4e7c96(0x15d)]['id']}})[_0x4e7c96(0x131)](handleEntityNotFound(_0x10a347,null))['then'](saveUpdates(_0x1001e2[_0x4e7c96(0x158)],null))['then'](respondWithResult(_0x10a347,null))['catch'](handleError(_0x10a347,null));},exports[a406_0x394c61(0x14f)]=function(_0xdefbe2,_0x1566e4){const _0x29e957=a406_0x394c61;return db[_0x29e957(0x168)]['findOne']({'where':{'id':_0xdefbe2[_0x29e957(0x15d)]['id']}})['then'](handleEntityNotFound(_0x1566e4,null))['then'](removeEntity(_0x1566e4,null))[_0x29e957(0x146)](handleError(_0x1566e4,null));},exports[a406_0x394c61(0x136)]=function(_0xed85ae,_0x4798d9){const _0x1b5188=a406_0x394c61;let _0x4d04d2={};const _0x49d637={};let _0x383556,_0x56724f;return db[_0x1b5188(0x168)][_0x1b5188(0x155)]({'where':{'id':_0xed85ae[_0x1b5188(0x15d)]['id']}})[_0x1b5188(0x131)](handleEntityNotFound(_0x4798d9,null))[_0x1b5188(0x131)](function(_0x33eb99){const _0x1081ce=_0x1b5188;if(_0x33eb99)return _0x383556=_0x33eb99,_0x49d637[_0x1081ce(0x144)]=_[_0x1081ce(0x130)](db[_0x1081ce(0x140)][_0x1081ce(0x150)]),_0x49d637[_0x1081ce(0x15c)]=_['keys'](_0xed85ae[_0x1081ce(0x15c)]),_0x49d637[_0x1081ce(0x165)]=_[_0x1081ce(0x143)](_0x49d637[_0x1081ce(0x144)],_0x49d637[_0x1081ce(0x15c)]),_0x4d04d2[_0x1081ce(0x13c)]=_['intersection'](_0x49d637[_0x1081ce(0x144)],qs[_0x1081ce(0x157)](_0xed85ae[_0x1081ce(0x15c)][_0x1081ce(0x157)])),_0x4d04d2[_0x1081ce(0x13c)]=_0x4d04d2['attributes']['length']?_0x4d04d2['attributes']:_0x49d637[_0x1081ce(0x144)],_0x4d04d2['order']=qs['sort'](_0xed85ae[_0x1081ce(0x15c)]['sort']),_0x4d04d2[_0x1081ce(0x15f)]=qs[_0x1081ce(0x165)](_[_0x1081ce(0x142)](_0xed85ae[_0x1081ce(0x15c)],_0x49d637[_0x1081ce(0x165)])),_0xed85ae[_0x1081ce(0x15c)][_0x1081ce(0x163)]&&(_0x4d04d2[_0x1081ce(0x15f)]=_['merge'](_0x4d04d2[_0x1081ce(0x15f)],{[Op['or']]:_['map'](_0x4d04d2[_0x1081ce(0x13c)],function(_0x292ab0){const _0x4de7a2=_0x1081ce,_0x5808cb={};return _0x5808cb[_0x292ab0]={[Op[_0x4de7a2(0x134)]]:'%'+_0xed85ae[_0x4de7a2(0x15c)]['filter']+'%'},_0x5808cb;})})),_0x4d04d2=_[_0x1081ce(0x13a)]({},_0x4d04d2,_0xed85ae[_0x1081ce(0x149)]),_0x383556[_0x1081ce(0x136)](_0x4d04d2);})['then'](function(_0x33eecc){const _0x390e58=_0x1b5188;if(_0x33eecc)return _0x56724f=_0x33eecc[_0x390e58(0x12d)],typeof _0xed85ae[_0x390e58(0x15c)][_0x390e58(0x164)]===_0x390e58(0x167)&&(_0x4d04d2[_0x390e58(0x13d)]=qs['limit'](_0xed85ae[_0x390e58(0x15c)][_0x390e58(0x13d)]),_0x4d04d2['offset']=qs[_0x390e58(0x12f)](_0xed85ae[_0x390e58(0x15c)][_0x390e58(0x12f)])),_0x383556[_0x390e58(0x136)](_0x4d04d2);})[_0x1b5188(0x131)](function(_0x2b00ed){if(_0x2b00ed)return _0x2b00ed?{'count':_0x56724f,'rows':_0x2b00ed}:null;})[_0x1b5188(0x131)](respondWithResult(_0x4798d9,null))[_0x1b5188(0x146)](handleError(_0x4798d9,null));},exports[a406_0x394c61(0x12e)]=function(_0xa04618,_0x20871a){const _0x3acbfd=a406_0x394c61;let _0x251aa5={};const _0x1797bc={};let _0x51ff22,_0x17c4c6;return db[_0x3acbfd(0x168)][_0x3acbfd(0x155)]({'where':{'id':_0xa04618['params']['id']}})['then'](handleEntityNotFound(_0x20871a,null))[_0x3acbfd(0x131)](function(_0x227234){const _0x170ee0=_0x3acbfd;if(_0x227234)return _0x51ff22=_0x227234,_0x1797bc[_0x170ee0(0x144)]=_[_0x170ee0(0x130)](db[_0x170ee0(0x140)]['rawAttributes']),_0x1797bc['query']=_[_0x170ee0(0x130)](_0xa04618[_0x170ee0(0x15c)]),_0x1797bc[_0x170ee0(0x165)]=_[_0x170ee0(0x143)](_0x1797bc[_0x170ee0(0x144)],_0x1797bc[_0x170ee0(0x15c)]),_0x251aa5[_0x170ee0(0x13c)]=_['intersection'](_0x1797bc['model'],qs[_0x170ee0(0x157)](_0xa04618['query'][_0x170ee0(0x157)])),_0x251aa5[_0x170ee0(0x13c)]=_0x251aa5[_0x170ee0(0x13c)][_0x170ee0(0x12d)]?_0x251aa5['attributes']:_0x1797bc[_0x170ee0(0x144)],_0x251aa5[_0x170ee0(0x145)]=qs[_0x170ee0(0x15e)](_0xa04618[_0x170ee0(0x15c)]['sort']),_0x251aa5[_0x170ee0(0x15f)]=qs[_0x170ee0(0x165)](_[_0x170ee0(0x142)](_0xa04618[_0x170ee0(0x15c)],_0x1797bc['filters'])),_0xa04618[_0x170ee0(0x15c)][_0x170ee0(0x163)]&&(_0x251aa5[_0x170ee0(0x15f)]=_['merge'](_0x251aa5[_0x170ee0(0x15f)],{[Op['or']]:_[_0x170ee0(0x13f)](_0x251aa5['attributes'],function(_0x4ea8a5){const _0x1a8eaf=_0x170ee0,_0x41bb01={};return _0x41bb01[_0x4ea8a5]={[Op[_0x1a8eaf(0x134)]]:'%'+_0xa04618[_0x1a8eaf(0x15c)]['filter']+'%'},_0x41bb01;})})),_0x251aa5=_[_0x170ee0(0x13a)]({},_0x251aa5,_0xa04618[_0x170ee0(0x149)]),_0x51ff22[_0x170ee0(0x12e)](_0x251aa5);})[_0x3acbfd(0x131)](function(_0x3d4688){const _0x3608fa=_0x3acbfd;if(_0x3d4688)return _0x17c4c6=_0x3d4688[_0x3608fa(0x12d)],typeof _0xa04618[_0x3608fa(0x15c)][_0x3608fa(0x164)]==='undefined'&&(_0x251aa5['limit']=qs['limit'](_0xa04618[_0x3608fa(0x15c)][_0x3608fa(0x13d)]),_0x251aa5[_0x3608fa(0x12f)]=qs[_0x3608fa(0x12f)](_0xa04618['query'][_0x3608fa(0x12f)])),_0x51ff22[_0x3608fa(0x12e)](_0x251aa5);})[_0x3acbfd(0x131)](function(_0x4e1c35){if(_0x4e1c35)return _0x4e1c35?{'count':_0x17c4c6,'rows':_0x4e1c35}:null;})[_0x3acbfd(0x131)](respondWithResult(_0x20871a,null))[_0x3acbfd(0x146)](handleError(_0x20871a,null));},exports['getDescriptions']=function(_0x512444,_0x463e10){const _0x258c72=a406_0x394c61;let _0x3a9342={};const _0x5b457d={};let _0x2cc6bd,_0x204e9d;return db[_0x258c72(0x168)][_0x258c72(0x155)]({'where':{'id':_0x512444[_0x258c72(0x15d)]['id']}})[_0x258c72(0x131)](handleEntityNotFound(_0x463e10,null))[_0x258c72(0x131)](function(_0x5b6712){const _0x2783d4=_0x258c72;if(_0x5b6712)return _0x2cc6bd=_0x5b6712,_0x5b457d[_0x2783d4(0x144)]=_[_0x2783d4(0x130)](db[_0x2783d4(0x140)][_0x2783d4(0x150)]),_0x5b457d[_0x2783d4(0x15c)]=_[_0x2783d4(0x130)](_0x512444['query']),_0x5b457d[_0x2783d4(0x165)]=_[_0x2783d4(0x143)](_0x5b457d['model'],_0x5b457d['query']),_0x3a9342[_0x2783d4(0x13c)]=_[_0x2783d4(0x143)](_0x5b457d[_0x2783d4(0x144)],qs['fields'](_0x512444['query'][_0x2783d4(0x157)])),_0x3a9342['attributes']=_0x3a9342[_0x2783d4(0x13c)][_0x2783d4(0x12d)]?_0x3a9342[_0x2783d4(0x13c)]:_0x5b457d[_0x2783d4(0x144)],_0x3a9342[_0x2783d4(0x145)]=qs[_0x2783d4(0x15e)](_0x512444['query']['sort']),_0x3a9342[_0x2783d4(0x15f)]=qs['filters'](_[_0x2783d4(0x142)](_0x512444[_0x2783d4(0x15c)],_0x5b457d[_0x2783d4(0x165)])),_0x512444[_0x2783d4(0x15c)][_0x2783d4(0x163)]&&(_0x3a9342['where']=_[_0x2783d4(0x13a)](_0x3a9342[_0x2783d4(0x15f)],{[Op['or']]:_[_0x2783d4(0x13f)](_0x3a9342[_0x2783d4(0x13c)],function(_0x386565){const _0x1f2f96=_0x2783d4,_0xdedae3={};return _0xdedae3[_0x386565]={[Op[_0x1f2f96(0x134)]]:'%'+_0x512444[_0x1f2f96(0x15c)][_0x1f2f96(0x163)]+'%'},_0xdedae3;})})),_0x3a9342=_[_0x2783d4(0x13a)]({},_0x3a9342,_0x512444[_0x2783d4(0x149)]),_0x2cc6bd[_0x2783d4(0x154)](_0x3a9342);})[_0x258c72(0x131)](function(_0x4b8856){const _0x28da5c=_0x258c72;if(_0x4b8856)return _0x204e9d=_0x4b8856['length'],typeof _0x512444[_0x28da5c(0x15c)]['nolimit']===_0x28da5c(0x167)&&(_0x3a9342[_0x28da5c(0x13d)]=qs[_0x28da5c(0x13d)](_0x512444[_0x28da5c(0x15c)]['limit']),_0x3a9342['offset']=qs[_0x28da5c(0x12f)](_0x512444[_0x28da5c(0x15c)]['offset'])),_0x2cc6bd[_0x28da5c(0x154)](_0x3a9342);})[_0x258c72(0x131)](function(_0x299163){if(_0x299163)return _0x299163?{'count':_0x204e9d,'rows':_0x299163}:null;})[_0x258c72(0x131)](respondWithResult(_0x463e10,null))['catch'](handleError(_0x463e10,null));},exports[a406_0x394c61(0x160)]=function(_0x2b7f33,_0x448926){const _0x547c99=a406_0x394c61;let _0x2e07a5={};const _0x13edc0={};let _0x48961f,_0x42228f;return db[_0x547c99(0x168)]['findOne']({'where':{'id':_0x2b7f33[_0x547c99(0x15d)]['id']}})[_0x547c99(0x131)](handleEntityNotFound(_0x448926,null))[_0x547c99(0x131)](function(_0x243557){const _0x1a849e=_0x547c99;if(_0x243557)return _0x48961f=_0x243557,_0x13edc0[_0x1a849e(0x144)]=_[_0x1a849e(0x130)](db[_0x1a849e(0x159)][_0x1a849e(0x150)]),_0x13edc0[_0x1a849e(0x15c)]=_[_0x1a849e(0x130)](_0x2b7f33[_0x1a849e(0x15c)]),_0x13edc0[_0x1a849e(0x165)]=_[_0x1a849e(0x143)](_0x13edc0['model'],_0x13edc0[_0x1a849e(0x15c)]),_0x2e07a5[_0x1a849e(0x13c)]=_['intersection'](_0x13edc0[_0x1a849e(0x144)],qs[_0x1a849e(0x157)](_0x2b7f33[_0x1a849e(0x15c)]['fields'])),_0x2e07a5['attributes']=_0x2e07a5[_0x1a849e(0x13c)][_0x1a849e(0x12d)]?_0x2e07a5[_0x1a849e(0x13c)]:_0x13edc0[_0x1a849e(0x144)],_0x2e07a5['order']=qs[_0x1a849e(0x15e)](_0x2b7f33[_0x1a849e(0x15c)][_0x1a849e(0x15e)]),_0x2e07a5[_0x1a849e(0x15f)]=qs[_0x1a849e(0x165)](_[_0x1a849e(0x142)](_0x2b7f33['query'],_0x13edc0['filters'])),_0x2b7f33[_0x1a849e(0x15c)][_0x1a849e(0x163)]&&(_0x2e07a5['where']=_[_0x1a849e(0x13a)](_0x2e07a5[_0x1a849e(0x15f)],{[Op['or']]:_[_0x1a849e(0x13f)](_0x2e07a5[_0x1a849e(0x13c)],function(_0x1d465f){const _0x43bfab=_0x1a849e,_0x4b4685={};return _0x4b4685[_0x1d465f]={[Op[_0x43bfab(0x134)]]:'%'+_0x2b7f33[_0x43bfab(0x15c)][_0x43bfab(0x163)]+'%'},_0x4b4685;})})),_0x2e07a5=_[_0x1a849e(0x13a)]({},_0x2e07a5,_0x2b7f33['options']),_0x48961f[_0x1a849e(0x160)](_0x2e07a5);})['then'](function(_0x19ed89){const _0x3a8d11=_0x547c99;if(_0x19ed89)return _0x42228f=_0x19ed89[_0x3a8d11(0x12d)],typeof _0x2b7f33[_0x3a8d11(0x15c)][_0x3a8d11(0x164)]===_0x3a8d11(0x167)&&(_0x2e07a5[_0x3a8d11(0x13d)]=qs[_0x3a8d11(0x13d)](_0x2b7f33[_0x3a8d11(0x15c)]['limit']),_0x2e07a5[_0x3a8d11(0x12f)]=qs[_0x3a8d11(0x12f)](_0x2b7f33[_0x3a8d11(0x15c)][_0x3a8d11(0x12f)])),_0x48961f[_0x3a8d11(0x160)](_0x2e07a5);})['then'](function(_0x4e3cfa){if(_0x4e3cfa)return _0x4e3cfa?{'count':_0x42228f,'rows':_0x4e3cfa}:null;})[_0x547c99(0x131)](respondWithResult(_0x448926,null))[_0x547c99(0x146)](handleError(_0x448926,null));},exports[a406_0x394c61(0x166)]=function(_0x5cfe25,_0x1d7f98){const _0x1c8652=a406_0x394c61;return _0x5cfe25['body']['id']&&delete _0x5cfe25[_0x1c8652(0x158)]['id'],db[_0x1c8652(0x168)][_0x1c8652(0x155)]({'where':{'id':_0x5cfe25['params']['id']}})[_0x1c8652(0x131)](handleEntityNotFound(_0x1d7f98,null))['then'](function(_0xcf0c6e){const _0xefb1f7=_0x1c8652;if(_0xcf0c6e)return _0xcf0c6e[_0xefb1f7(0x166)](_0x5cfe25[_0xefb1f7(0x158)][_0xefb1f7(0x13e)]||[]);return null;})[_0x1c8652(0x131)](respondWithResult(_0x1d7f98,null))[_0x1c8652(0x146)](handleError(_0x1d7f98,null));}; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js index 5b87b08..7f95c34 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js @@ -1 +1 @@ -const a407_0x177f=['exports','function','sequelize','init','./intZendeskConfiguration.attributes','ZendeskConfiguration'];(function(_0x2b0dca,_0xfc78eb){const _0x177fd7=function(_0x2e8116){while(--_0x2e8116){_0x2b0dca['push'](_0x2b0dca['shift']());}};_0x177fd7(++_0xfc78eb);}(a407_0x177f,0xed));const a407_0x2e81=function(_0x2b0dca,_0xfc78eb){_0x2b0dca=_0x2b0dca-0xd9;let _0x177fd7=a407_0x177f[_0x2b0dca];return _0x177fd7;};const a407_0x11d324=a407_0x2e81;'use strict';const {Model}=require(a407_0x11d324(0xde)),{attributes}=require(a407_0x11d324(0xda)),{options}=require('./intZendeskConfiguration.options');class ZendeskConfiguration extends Model{}function init(_0x45f1ad,_0x10a80){const _0x28bd6b=a407_0x11d324,_0x2f2ff1=options(_0x45f1ad),_0x15f1c5=typeof _0x10a80===_0x28bd6b(0xdd)?_0x10a80(_0x2f2ff1):_0x2f2ff1;return ZendeskConfiguration[_0x28bd6b(0xd9)](attributes,_0x15f1c5),ZendeskConfiguration;}module[a407_0x11d324(0xdc)][a407_0x11d324(0xdb)]=ZendeskConfiguration,module['exports'][a407_0x11d324(0xd9)]=init; \ No newline at end of file +const a407_0x3c4e=['./intZendeskConfiguration.options','function','sequelize','exports','./intZendeskConfiguration.attributes','init'];(function(_0x4a5ec6,_0x919d44){const _0x3c4e4c=function(_0x220215){while(--_0x220215){_0x4a5ec6['push'](_0x4a5ec6['shift']());}};_0x3c4e4c(++_0x919d44);}(a407_0x3c4e,0xe1));const a407_0x2202=function(_0x4a5ec6,_0x919d44){_0x4a5ec6=_0x4a5ec6-0xe9;let _0x3c4e4c=a407_0x3c4e[_0x4a5ec6];return _0x3c4e4c;};const a407_0x4d0edc=a407_0x2202;'use strict';const {Model}=require(a407_0x4d0edc(0xee)),{attributes}=require(a407_0x4d0edc(0xea)),{options}=require(a407_0x4d0edc(0xec));class ZendeskConfiguration extends Model{}function init(_0x360764,_0x73c921){const _0x507b92=a407_0x4d0edc,_0x57d4b8=options(_0x360764),_0x2580fb=typeof _0x73c921===_0x507b92(0xed)?_0x73c921(_0x57d4b8):_0x57d4b8;return ZendeskConfiguration[_0x507b92(0xeb)](attributes,_0x2580fb),ZendeskConfiguration;}module['exports']['ZendeskConfiguration']=ZendeskConfiguration,module[a407_0x4d0edc(0xe9)][a407_0x4d0edc(0xeb)]=init; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.options.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.options.js index 0311070..1858d26 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.options.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.options.js @@ -1 +1 @@ -var a408_0x18fa=['options','exports'];(function(_0x1f7dff,_0x4e1b00){var _0x18fa56=function(_0x4c914e){while(--_0x4c914e){_0x1f7dff['push'](_0x1f7dff['shift']());}};_0x18fa56(++_0x4e1b00);}(a408_0x18fa,0x162));var a408_0x4c91=function(_0x1f7dff,_0x4e1b00){_0x1f7dff=_0x1f7dff-0x74;var _0x18fa56=a408_0x18fa[_0x1f7dff];return _0x18fa56;};var a408_0x18e174=a408_0x4c91;function options(_0x55b57a){return{'sequelize':_0x55b57a,'tableName':'int_zendesk_configurations','paranoid':![],'indexes':[],'timestamps':!![]};}module[a408_0x18e174(0x75)][a408_0x18e174(0x74)]=options; \ No newline at end of file +var a408_0x4c1f=['options'];(function(_0x3f0b3c,_0x4b2d58){var _0x4c1f9a=function(_0x421625){while(--_0x421625){_0x3f0b3c['push'](_0x3f0b3c['shift']());}};_0x4c1f9a(++_0x4b2d58);}(a408_0x4c1f,0x1e3));var a408_0x4216=function(_0x3f0b3c,_0x4b2d58){_0x3f0b3c=_0x3f0b3c-0x183;var _0x4c1f9a=a408_0x4c1f[_0x3f0b3c];return _0x4c1f9a;};var a408_0x571d4=a408_0x4216;function options(_0x3a5e39){return{'sequelize':_0x3a5e39,'tableName':'int_zendesk_configurations','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a408_0x571d4(0x183)]=options; \ No newline at end of file diff --git a/server/api/intZendeskField/index.js b/server/api/intZendeskField/index.js index 05a8fb5..8fcefd9 100644 --- a/server/api/intZendeskField/index.js +++ b/server/api/intZendeskField/index.js @@ -1 +1 @@ -const a409_0x38bd=['show','get','./intZendeskField.controller','post','create','/:id','put','delete','isAuthenticated','express','Router'];(function(_0x12a82b,_0x1b29da){const _0x38bd4d=function(_0x2cfb5a){while(--_0x2cfb5a){_0x12a82b['push'](_0x12a82b['shift']());}};_0x38bd4d(++_0x1b29da);}(a409_0x38bd,0x142));const a409_0x2cfb=function(_0x12a82b,_0x1b29da){_0x12a82b=_0x12a82b-0xc8;let _0x38bd4d=a409_0x38bd[_0x12a82b];return _0x38bd4d;};const a409_0x2eb752=a409_0x2cfb;'use strict';const express=require(a409_0x2eb752(0xce)),router=express[a409_0x2eb752(0xcf)](),auth=require('../../components/auth/service'),controller=require(a409_0x2eb752(0xd2));router[a409_0x2eb752(0xd1)]('/',auth[a409_0x2eb752(0xcd)](),controller['index']),router['get']('/:id',auth[a409_0x2eb752(0xcd)](),controller[a409_0x2eb752(0xd0)]),router[a409_0x2eb752(0xc8)]('/',auth[a409_0x2eb752(0xcd)](),controller[a409_0x2eb752(0xc9)]),router[a409_0x2eb752(0xcb)](a409_0x2eb752(0xca),auth[a409_0x2eb752(0xcd)](),controller['update']),router[a409_0x2eb752(0xcc)](a409_0x2eb752(0xca),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a409_0x19bf=['put','Router','create','show','update','/:id','../../components/auth/service','post','isAuthenticated','exports','get','express','destroy','index'];(function(_0x5c485a,_0x247a02){const _0x19bf51=function(_0x493e7d){while(--_0x493e7d){_0x5c485a['push'](_0x5c485a['shift']());}};_0x19bf51(++_0x247a02);}(a409_0x19bf,0x16f));const a409_0x493e=function(_0x5c485a,_0x247a02){_0x5c485a=_0x5c485a-0xb8;let _0x19bf51=a409_0x19bf[_0x5c485a];return _0x19bf51;};const a409_0xfdc255=a409_0x493e;'use strict';const express=require(a409_0xfdc255(0xc0)),router=express[a409_0xfdc255(0xc4)](),auth=require(a409_0xfdc255(0xbb)),controller=require('./intZendeskField.controller');router[a409_0xfdc255(0xbf)]('/',auth[a409_0xfdc255(0xbd)](),controller[a409_0xfdc255(0xc2)]),router['get']('/:id',auth['isAuthenticated'](),controller[a409_0xfdc255(0xb8)]),router[a409_0xfdc255(0xbc)]('/',auth[a409_0xfdc255(0xbd)](),controller[a409_0xfdc255(0xc5)]),router[a409_0xfdc255(0xc3)]('/:id',auth['isAuthenticated'](),controller[a409_0xfdc255(0xb9)]),router['delete'](a409_0xfdc255(0xba),auth[a409_0xfdc255(0xbd)](),controller[a409_0xfdc255(0xc1)]),module[a409_0xfdc255(0xbe)]=router; \ No newline at end of file diff --git a/server/api/intZendeskField/intZendeskField.attributes.js b/server/api/intZendeskField/intZendeskField.attributes.js index c092524..9b9eb1a 100644 --- a/server/api/intZendeskField/intZendeskField.attributes.js +++ b/server/api/intZendeskField/intZendeskField.attributes.js @@ -1 +1 @@ -const a410_0x16d2=['exports','string','ENUM','sequelize','variable','BOOLEAN','STRING','attributes','customVariable'];(function(_0x39de45,_0x4920aa){const _0x16d204=function(_0x59752d){while(--_0x59752d){_0x39de45['push'](_0x39de45['shift']());}};_0x16d204(++_0x4920aa);}(a410_0x16d2,0xbb));const a410_0x5975=function(_0x39de45,_0x4920aa){_0x39de45=_0x39de45-0xb8;let _0x16d204=a410_0x16d2[_0x39de45];return _0x16d204;};const a410_0x4b6844=a410_0x5975;'use strict';const {DataTypes}=require(a410_0x4b6844(0xbd)),attributes={'type':{'type':DataTypes[a410_0x4b6844(0xbc)](a410_0x4b6844(0xbb),a410_0x4b6844(0xbe),a410_0x4b6844(0xb9),'keyValue'),'defaultValue':a410_0x4b6844(0xbb)},'content':{'type':DataTypes['STRING']},'key':{'type':DataTypes['STRING']},'keyType':{'type':DataTypes[a410_0x4b6844(0xbc)](a410_0x4b6844(0xbb),a410_0x4b6844(0xbe),'customVariable')},'keyContent':{'type':DataTypes[a410_0x4b6844(0xc0)]},'idField':{'type':DataTypes[a410_0x4b6844(0xc0)]},'nameField':{'type':DataTypes[a410_0x4b6844(0xc0)]},'customField':{'type':DataTypes[a410_0x4b6844(0xbf)],'defaultValue':!![]},'variableName':{'type':DataTypes[a410_0x4b6844(0xc0)]}};module[a410_0x4b6844(0xba)][a410_0x4b6844(0xb8)]=attributes; \ No newline at end of file +const a410_0x2c1b=['string','variable','attributes','exports','STRING','customVariable','keyValue','sequelize','BOOLEAN'];(function(_0xa57a55,_0x3328ab){const _0x2c1be8=function(_0x5eb6ce){while(--_0x5eb6ce){_0xa57a55['push'](_0xa57a55['shift']());}};_0x2c1be8(++_0x3328ab);}(a410_0x2c1b,0xf8));const a410_0x5eb6=function(_0xa57a55,_0x3328ab){_0xa57a55=_0xa57a55-0x1a5;let _0x2c1be8=a410_0x2c1b[_0xa57a55];return _0x2c1be8;};const a410_0x408ea5=a410_0x5eb6;'use strict';const {DataTypes}=require(a410_0x408ea5(0x1a7)),attributes={'type':{'type':DataTypes['ENUM'](a410_0x408ea5(0x1a9),'variable','customVariable',a410_0x408ea5(0x1a6)),'defaultValue':a410_0x408ea5(0x1a9)},'content':{'type':DataTypes[a410_0x408ea5(0x1ad)]},'key':{'type':DataTypes[a410_0x408ea5(0x1ad)]},'keyType':{'type':DataTypes['ENUM'](a410_0x408ea5(0x1a9),a410_0x408ea5(0x1aa),a410_0x408ea5(0x1a5))},'keyContent':{'type':DataTypes[a410_0x408ea5(0x1ad)]},'idField':{'type':DataTypes[a410_0x408ea5(0x1ad)]},'nameField':{'type':DataTypes[a410_0x408ea5(0x1ad)]},'customField':{'type':DataTypes[a410_0x408ea5(0x1a8)],'defaultValue':!![]},'variableName':{'type':DataTypes[a410_0x408ea5(0x1ad)]}};module[a410_0x408ea5(0x1ac)][a410_0x408ea5(0x1ab)]=attributes; \ No newline at end of file diff --git a/server/api/intZendeskField/intZendeskField.controller.js b/server/api/intZendeskField/intZendeskField.controller.js index 3b787e2..5596176 100644 --- a/server/api/intZendeskField/intZendeskField.controller.js +++ b/server/api/intZendeskField/intZendeskField.controller.js @@ -1 +1 @@ -const a411_0x45bc=['update','sequelize','api','order','intersection','set','findOne','ZendeskField','sort','attributes','pick','catch','index','../../mysqldb','limit','offset','type','lodash','show','options','create','filter','map','status','stack','json','rawAttributes','fields','VIRTUAL','error','keys','like','end','name','../../config/logger','body','model','merge','destroy','sendStatus','params','count','rows','include','includeAll','send','query','undefined','Content-Range','where','then','filters','fieldName'];(function(_0x1b83f5,_0x45113b){const _0x45bc87=function(_0x199d27){while(--_0x199d27){_0x1b83f5['push'](_0x1b83f5['shift']());}};_0x45bc87(++_0x45113b);}(a411_0x45bc,0x1e6));const a411_0x199d=function(_0x1b83f5,_0x45113b){_0x1b83f5=_0x1b83f5-0xa2;let _0x45bc87=a411_0x45bc[_0x1b83f5];return _0x45bc87;};const a411_0xad9fbd=a411_0x199d;'use strict';const _=require(a411_0xad9fbd(0xaa)),qs=require('../../components/parsers/qs'),logger=require(a411_0xad9fbd(0xbb))(a411_0xad9fbd(0xd0)),{db}=require(a411_0xad9fbd(0xa6)),{Op}=require(a411_0xad9fbd(0xcf));function respondWithResult(_0xdf8589,_0x4c5236){return _0x4c5236=_0x4c5236||0xc8,function(_0x189805){const _0x8f0d46=a411_0x199d;if(_0x189805)return _0xdf8589[_0x8f0d46(0xb0)](_0x4c5236)[_0x8f0d46(0xb2)](_0x189805);};}function respondWithFilteredResult(_0x4adc6c,_0x45dc55){return function(_0x14ee7c){const _0x20c6a6=a411_0x199d;if(_0x14ee7c){const _0x436330=_0x14ee7c[_0x20c6a6(0xc2)],_0x2f8698=_0x45dc55['offset'];let _0x508e6e=_0x45dc55[_0x20c6a6(0xa8)]+_0x45dc55['limit'],_0x512f2f;return _0x508e6e>=_0x436330?(_0x508e6e=_0x436330,_0x512f2f=0xc8):_0x512f2f=0xce,_0x4adc6c[_0x20c6a6(0xb0)](_0x512f2f),_0x4adc6c[_0x20c6a6(0xd3)](_0x20c6a6(0xc9),_0x2f8698+'-'+_0x508e6e+'/'+_0x436330)['json'](_0x14ee7c);}return null;};}function saveUpdates(_0x1a869a){return function(_0x137dc3){const _0x53c905=a411_0x199d;if(_0x137dc3)return _0x137dc3[_0x53c905(0xce)](_0x1a869a)[_0x53c905(0xcb)](function(_0x5b6821){return _0x5b6821;});return null;};}function removeEntity(_0x3ea17f){return function(_0x44280a){const _0x4af29c=a411_0x199d;if(_0x44280a)return _0x44280a[_0x4af29c(0xbf)]()['then'](function(){const _0x5087c9=_0x4af29c;_0x3ea17f[_0x5087c9(0xb0)](0xcc)[_0x5087c9(0xb9)]();});};}function handleEntityNotFound(_0x3731a1){return function(_0x521b28){const _0x2cff99=a411_0x199d;return!_0x521b28&&_0x3731a1[_0x2cff99(0xc0)](0x194),_0x521b28;};}function handleError(_0x5abb22,_0x2f98f3){return _0x2f98f3=_0x2f98f3||0x1f4,function(_0x458f00){const _0x359a7a=a411_0x199d;logger[_0x359a7a(0xb6)](_0x458f00[_0x359a7a(0xb1)]),_0x458f00[_0x359a7a(0xba)]&&delete _0x458f00['name'],_0x5abb22['status'](_0x2f98f3)[_0x359a7a(0xc6)](_0x458f00);};}exports[a411_0xad9fbd(0xa5)]=function(_0x4a5c9b,_0x577b0e){const _0x27452a=a411_0xad9fbd;let _0x3584b4={};const _0x569522={},_0x4643c1={'count':0x0,'rows':[]},_0x427f2d=_[_0x27452a(0xaf)](db[_0x27452a(0xd5)][_0x27452a(0xb3)],function(_0x10f6c2){const _0x626c24=_0x27452a;return{'name':_0x10f6c2[_0x626c24(0xcd)],'type':_0x10f6c2[_0x626c24(0xa9)]['key']};});_0x569522[_0x27452a(0xbd)]=_[_0x27452a(0xaf)](_0x427f2d,'name'),_0x569522['query']=_[_0x27452a(0xb7)](_0x4a5c9b[_0x27452a(0xc7)]),_0x569522[_0x27452a(0xcc)]=_[_0x27452a(0xd2)](_0x569522[_0x27452a(0xbd)],_0x569522['query']),_0x3584b4[_0x27452a(0xa2)]=_[_0x27452a(0xd2)](_0x569522[_0x27452a(0xbd)],qs[_0x27452a(0xb4)](_0x4a5c9b[_0x27452a(0xc7)][_0x27452a(0xb4)])),_0x3584b4[_0x27452a(0xa2)]=_0x3584b4[_0x27452a(0xa2)]['length']?_0x3584b4[_0x27452a(0xa2)]:_0x569522['model'];typeof _0x4a5c9b[_0x27452a(0xc7)]['nolimit']===_0x27452a(0xc8)&&(_0x3584b4['limit']=qs['limit'](_0x4a5c9b[_0x27452a(0xc7)][_0x27452a(0xa7)]),_0x3584b4[_0x27452a(0xa8)]=qs[_0x27452a(0xa8)](_0x4a5c9b['query'][_0x27452a(0xa8)]));_0x3584b4[_0x27452a(0xd1)]=qs['sort'](_0x4a5c9b['query'][_0x27452a(0xd6)]),_0x3584b4[_0x27452a(0xca)]=qs[_0x27452a(0xcc)](_[_0x27452a(0xa3)](_0x4a5c9b['query'],_0x569522[_0x27452a(0xcc)]),_0x427f2d);_0x4a5c9b['query'][_0x27452a(0xae)]&&(_0x3584b4[_0x27452a(0xca)]=_[_0x27452a(0xbe)](_0x3584b4[_0x27452a(0xca)],{[Op['or']]:_[_0x27452a(0xaf)](_0x427f2d,function(_0x2a5186){const _0x5af0b7=_0x27452a;if(_0x2a5186[_0x5af0b7(0xa9)]!==_0x5af0b7(0xb5)){const _0x1b589b={};return _0x1b589b[_0x2a5186['name']]={[Op[_0x5af0b7(0xb8)]]:'%'+_0x4a5c9b[_0x5af0b7(0xc7)][_0x5af0b7(0xae)]+'%'},_0x1b589b;}})}));_0x3584b4=_['merge']({},_0x3584b4,_0x4a5c9b['options']);const _0xfbd53c={'where':_0x3584b4[_0x27452a(0xca)]};return db[_0x27452a(0xd5)][_0x27452a(0xc2)](_0xfbd53c)[_0x27452a(0xcb)](function(_0xae4af8){const _0x26eeb9=_0x27452a;return _0x4643c1[_0x26eeb9(0xc2)]=_0xae4af8,_0x4a5c9b[_0x26eeb9(0xc7)][_0x26eeb9(0xc5)]&&(_0x3584b4[_0x26eeb9(0xc4)]=[{'all':!![]}]),db['ZendeskField']['findAll'](_0x3584b4);})['then'](function(_0x1ed94e){const _0x20c7ee=_0x27452a;return _0x4643c1[_0x20c7ee(0xc3)]=_0x1ed94e,_0x4643c1;})[_0x27452a(0xcb)](respondWithFilteredResult(_0x577b0e,_0x3584b4))[_0x27452a(0xa4)](handleError(_0x577b0e,null));},exports[a411_0xad9fbd(0xab)]=function(_0x1b9e7a,_0x47e737){const _0x1a5454=a411_0xad9fbd;let _0x52ca7b={'raw':!![],'where':{'id':_0x1b9e7a['params']['id']}};const _0x233f5e={};return _0x233f5e[_0x1a5454(0xbd)]=_['keys'](db[_0x1a5454(0xd5)]['rawAttributes']),_0x233f5e['query']=_[_0x1a5454(0xb7)](_0x1b9e7a[_0x1a5454(0xc7)]),_0x233f5e['filters']=_[_0x1a5454(0xd2)](_0x233f5e[_0x1a5454(0xbd)],_0x233f5e[_0x1a5454(0xc7)]),_0x52ca7b[_0x1a5454(0xa2)]=_[_0x1a5454(0xd2)](_0x233f5e[_0x1a5454(0xbd)],qs['fields'](_0x1b9e7a[_0x1a5454(0xc7)][_0x1a5454(0xb4)])),_0x52ca7b[_0x1a5454(0xa2)]=_0x52ca7b[_0x1a5454(0xa2)]['length']?_0x52ca7b[_0x1a5454(0xa2)]:_0x233f5e['model'],_0x1b9e7a['query'][_0x1a5454(0xc5)]&&(_0x52ca7b[_0x1a5454(0xc4)]=[{'all':!![]}]),_0x52ca7b=_[_0x1a5454(0xbe)]({},_0x52ca7b,_0x1b9e7a[_0x1a5454(0xac)]),db[_0x1a5454(0xd5)][_0x1a5454(0xd4)](_0x52ca7b)[_0x1a5454(0xcb)](handleEntityNotFound(_0x47e737,null))[_0x1a5454(0xcb)](respondWithResult(_0x47e737,null))[_0x1a5454(0xa4)](handleError(_0x47e737,null));},exports[a411_0xad9fbd(0xad)]=function(_0x317734,_0xd9a189){const _0x399e77=a411_0xad9fbd;return db[_0x399e77(0xd5)][_0x399e77(0xad)](_0x317734[_0x399e77(0xbc)],{})[_0x399e77(0xcb)](respondWithResult(_0xd9a189,0xc9))[_0x399e77(0xa4)](handleError(_0xd9a189,null));},exports[a411_0xad9fbd(0xce)]=function(_0x1ea7b1,_0x18a6d6){const _0x15f5ae=a411_0xad9fbd;return _0x1ea7b1['body']['id']&&delete _0x1ea7b1[_0x15f5ae(0xbc)]['id'],db[_0x15f5ae(0xd5)][_0x15f5ae(0xd4)]({'where':{'id':_0x1ea7b1[_0x15f5ae(0xc1)]['id']}})[_0x15f5ae(0xcb)](handleEntityNotFound(_0x18a6d6,null))[_0x15f5ae(0xcb)](saveUpdates(_0x1ea7b1[_0x15f5ae(0xbc)],null))[_0x15f5ae(0xcb)](respondWithResult(_0x18a6d6,null))[_0x15f5ae(0xa4)](handleError(_0x18a6d6,null));},exports[a411_0xad9fbd(0xbf)]=function(_0x24f144,_0x4561e6){const _0x1e2904=a411_0xad9fbd;return db[_0x1e2904(0xd5)][_0x1e2904(0xd4)]({'where':{'id':_0x24f144['params']['id']}})[_0x1e2904(0xcb)](handleEntityNotFound(_0x4561e6,null))[_0x1e2904(0xcb)](removeEntity(_0x4561e6,null))[_0x1e2904(0xa4)](handleError(_0x4561e6,null));}; \ No newline at end of file +const a411_0x237a=['status','body','includeAll','fields','nolimit','include','sendStatus','options','findAll','merge','set','attributes','key','end','keys','undefined','error','sequelize','rawAttributes','type','json','intersection','send','sort','name','Content-Range','stack','offset','pick','filter','destroy','params','lodash','where','filters','limit','model','then','create','../../mysqldb','findOne','count','VIRTUAL','catch','query','rows','map','like','update','fieldName','ZendeskField','length','order'];(function(_0x173b20,_0x289cbd){const _0x237ad6=function(_0x3fc24c){while(--_0x3fc24c){_0x173b20['push'](_0x173b20['shift']());}};_0x237ad6(++_0x289cbd);}(a411_0x237a,0x163));const a411_0x3fc2=function(_0x173b20,_0x289cbd){_0x173b20=_0x173b20-0x1c2;let _0x237ad6=a411_0x237a[_0x173b20];return _0x237ad6;};const a411_0x40a193=a411_0x3fc2;'use strict';const _=require(a411_0x40a193(0x1f2)),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),{db}=require(a411_0x40a193(0x1c4)),{Op}=require(a411_0x40a193(0x1e3));function respondWithResult(_0x163dd8,_0x27a8a8){return _0x27a8a8=_0x27a8a8||0xc8,function(_0x46a9c3){const _0x184714=a411_0x3fc2;if(_0x46a9c3)return _0x163dd8[_0x184714(0x1d2)](_0x27a8a8)[_0x184714(0x1e6)](_0x46a9c3);};}function respondWithFilteredResult(_0x9ba765,_0x4238e4){return function(_0x55822b){const _0xf79509=a411_0x3fc2;if(_0x55822b){const _0x484328=_0x55822b[_0xf79509(0x1c6)],_0xf9eece=_0x4238e4[_0xf79509(0x1ed)];let _0x56072e=_0x4238e4['offset']+_0x4238e4[_0xf79509(0x1f5)],_0x57e595;return _0x56072e>=_0x484328?(_0x56072e=_0x484328,_0x57e595=0xc8):_0x57e595=0xce,_0x9ba765['status'](_0x57e595),_0x9ba765[_0xf79509(0x1dc)](_0xf79509(0x1eb),_0xf9eece+'-'+_0x56072e+'/'+_0x484328)[_0xf79509(0x1e6)](_0x55822b);}return null;};}function saveUpdates(_0x5821c0){return function(_0x18d3b7){const _0x164c46=a411_0x3fc2;if(_0x18d3b7)return _0x18d3b7['update'](_0x5821c0)[_0x164c46(0x1c2)](function(_0x2a2278){return _0x2a2278;});return null;};}function removeEntity(_0x1a7514){return function(_0x3139f7){const _0x108f9e=a411_0x3fc2;if(_0x3139f7)return _0x3139f7[_0x108f9e(0x1f0)]()[_0x108f9e(0x1c2)](function(){const _0x2f8f27=_0x108f9e;_0x1a7514[_0x2f8f27(0x1d2)](0xcc)[_0x2f8f27(0x1df)]();});};}function handleEntityNotFound(_0x35c58f){return function(_0x728c94){const _0x2008b2=a411_0x3fc2;return!_0x728c94&&_0x35c58f[_0x2008b2(0x1d8)](0x194),_0x728c94;};}function handleError(_0x2c3f92,_0x5cdb29){return _0x5cdb29=_0x5cdb29||0x1f4,function(_0x91778a){const _0x1a75a6=a411_0x3fc2;logger[_0x1a75a6(0x1e2)](_0x91778a[_0x1a75a6(0x1ec)]),_0x91778a[_0x1a75a6(0x1ea)]&&delete _0x91778a[_0x1a75a6(0x1ea)],_0x2c3f92[_0x1a75a6(0x1d2)](_0x5cdb29)[_0x1a75a6(0x1e8)](_0x91778a);};}exports['index']=function(_0xfa7334,_0x4a8d02){const _0x363193=a411_0x40a193;let _0x411612={};const _0xa3f287={},_0x2d227d={'count':0x0,'rows':[]},_0x558605=_[_0x363193(0x1cb)](db[_0x363193(0x1cf)][_0x363193(0x1e4)],function(_0x1b9940){const _0x37252e=_0x363193;return{'name':_0x1b9940[_0x37252e(0x1ce)],'type':_0x1b9940[_0x37252e(0x1e5)][_0x37252e(0x1de)]};});_0xa3f287[_0x363193(0x1f6)]=_[_0x363193(0x1cb)](_0x558605,'name'),_0xa3f287[_0x363193(0x1c9)]=_[_0x363193(0x1e0)](_0xfa7334[_0x363193(0x1c9)]),_0xa3f287[_0x363193(0x1f4)]=_[_0x363193(0x1e7)](_0xa3f287[_0x363193(0x1f6)],_0xa3f287[_0x363193(0x1c9)]),_0x411612[_0x363193(0x1dd)]=_['intersection'](_0xa3f287[_0x363193(0x1f6)],qs[_0x363193(0x1d5)](_0xfa7334[_0x363193(0x1c9)]['fields'])),_0x411612[_0x363193(0x1dd)]=_0x411612[_0x363193(0x1dd)]['length']?_0x411612[_0x363193(0x1dd)]:_0xa3f287['model'];typeof _0xfa7334['query'][_0x363193(0x1d6)]===_0x363193(0x1e1)&&(_0x411612[_0x363193(0x1f5)]=qs[_0x363193(0x1f5)](_0xfa7334['query'][_0x363193(0x1f5)]),_0x411612[_0x363193(0x1ed)]=qs[_0x363193(0x1ed)](_0xfa7334[_0x363193(0x1c9)][_0x363193(0x1ed)]));_0x411612[_0x363193(0x1d1)]=qs[_0x363193(0x1e9)](_0xfa7334[_0x363193(0x1c9)][_0x363193(0x1e9)]),_0x411612['where']=qs[_0x363193(0x1f4)](_[_0x363193(0x1ee)](_0xfa7334[_0x363193(0x1c9)],_0xa3f287[_0x363193(0x1f4)]),_0x558605);_0xfa7334[_0x363193(0x1c9)][_0x363193(0x1ef)]&&(_0x411612[_0x363193(0x1f3)]=_[_0x363193(0x1db)](_0x411612['where'],{[Op['or']]:_[_0x363193(0x1cb)](_0x558605,function(_0x412ec7){const _0x5b667e=_0x363193;if(_0x412ec7['type']!==_0x5b667e(0x1c7)){const _0x46ad53={};return _0x46ad53[_0x412ec7['name']]={[Op[_0x5b667e(0x1cc)]]:'%'+_0xfa7334[_0x5b667e(0x1c9)][_0x5b667e(0x1ef)]+'%'},_0x46ad53;}})}));_0x411612=_[_0x363193(0x1db)]({},_0x411612,_0xfa7334[_0x363193(0x1d9)]);const _0x252bb8={'where':_0x411612['where']};return db['ZendeskField'][_0x363193(0x1c6)](_0x252bb8)[_0x363193(0x1c2)](function(_0x578314){const _0x280f5d=_0x363193;return _0x2d227d[_0x280f5d(0x1c6)]=_0x578314,_0xfa7334[_0x280f5d(0x1c9)][_0x280f5d(0x1d4)]&&(_0x411612[_0x280f5d(0x1d7)]=[{'all':!![]}]),db[_0x280f5d(0x1cf)][_0x280f5d(0x1da)](_0x411612);})['then'](function(_0x2f7254){const _0x5bd331=_0x363193;return _0x2d227d[_0x5bd331(0x1ca)]=_0x2f7254,_0x2d227d;})['then'](respondWithFilteredResult(_0x4a8d02,_0x411612))[_0x363193(0x1c8)](handleError(_0x4a8d02,null));},exports['show']=function(_0x451362,_0x2abc29){const _0x244908=a411_0x40a193;let _0x3c6050={'raw':!![],'where':{'id':_0x451362[_0x244908(0x1f1)]['id']}};const _0x2b85e6={};return _0x2b85e6[_0x244908(0x1f6)]=_['keys'](db['ZendeskField'][_0x244908(0x1e4)]),_0x2b85e6['query']=_[_0x244908(0x1e0)](_0x451362['query']),_0x2b85e6['filters']=_[_0x244908(0x1e7)](_0x2b85e6[_0x244908(0x1f6)],_0x2b85e6[_0x244908(0x1c9)]),_0x3c6050[_0x244908(0x1dd)]=_[_0x244908(0x1e7)](_0x2b85e6['model'],qs['fields'](_0x451362[_0x244908(0x1c9)][_0x244908(0x1d5)])),_0x3c6050[_0x244908(0x1dd)]=_0x3c6050[_0x244908(0x1dd)][_0x244908(0x1d0)]?_0x3c6050[_0x244908(0x1dd)]:_0x2b85e6[_0x244908(0x1f6)],_0x451362[_0x244908(0x1c9)][_0x244908(0x1d4)]&&(_0x3c6050['include']=[{'all':!![]}]),_0x3c6050=_[_0x244908(0x1db)]({},_0x3c6050,_0x451362[_0x244908(0x1d9)]),db[_0x244908(0x1cf)][_0x244908(0x1c5)](_0x3c6050)['then'](handleEntityNotFound(_0x2abc29,null))['then'](respondWithResult(_0x2abc29,null))['catch'](handleError(_0x2abc29,null));},exports[a411_0x40a193(0x1c3)]=function(_0x3cc621,_0x56a395){const _0x12685f=a411_0x40a193;return db[_0x12685f(0x1cf)][_0x12685f(0x1c3)](_0x3cc621[_0x12685f(0x1d3)],{})[_0x12685f(0x1c2)](respondWithResult(_0x56a395,0xc9))['catch'](handleError(_0x56a395,null));},exports[a411_0x40a193(0x1cd)]=function(_0x38cc3f,_0x470211){const _0x16d11e=a411_0x40a193;return _0x38cc3f[_0x16d11e(0x1d3)]['id']&&delete _0x38cc3f[_0x16d11e(0x1d3)]['id'],db[_0x16d11e(0x1cf)][_0x16d11e(0x1c5)]({'where':{'id':_0x38cc3f['params']['id']}})['then'](handleEntityNotFound(_0x470211,null))[_0x16d11e(0x1c2)](saveUpdates(_0x38cc3f[_0x16d11e(0x1d3)],null))[_0x16d11e(0x1c2)](respondWithResult(_0x470211,null))[_0x16d11e(0x1c8)](handleError(_0x470211,null));},exports[a411_0x40a193(0x1f0)]=function(_0x7b5dc8,_0x48bfeb){const _0x16c554=a411_0x40a193;return db['ZendeskField'][_0x16c554(0x1c5)]({'where':{'id':_0x7b5dc8[_0x16c554(0x1f1)]['id']}})[_0x16c554(0x1c2)](handleEntityNotFound(_0x48bfeb,null))[_0x16c554(0x1c2)](removeEntity(_0x48bfeb,null))[_0x16c554(0x1c8)](handleError(_0x48bfeb,null));}; \ No newline at end of file diff --git a/server/api/intZendeskField/intZendeskField.model.js b/server/api/intZendeskField/intZendeskField.model.js index c6257bb..02f6205 100644 --- a/server/api/intZendeskField/intZendeskField.model.js +++ b/server/api/intZendeskField/intZendeskField.model.js @@ -1 +1 @@ -const a412_0x3306=['ZendeskField','init','function','exports','./intZendeskField.options'];(function(_0x287a3e,_0x4c5b98){const _0x330662=function(_0x1ee832){while(--_0x1ee832){_0x287a3e['push'](_0x287a3e['shift']());}};_0x330662(++_0x4c5b98);}(a412_0x3306,0x14c));const a412_0x1ee8=function(_0x287a3e,_0x4c5b98){_0x287a3e=_0x287a3e-0x81;let _0x330662=a412_0x3306[_0x287a3e];return _0x330662;};const a412_0x4335dc=a412_0x1ee8;'use strict';const {Model}=require('sequelize'),{attributes}=require('./intZendeskField.attributes'),{options}=require(a412_0x4335dc(0x83));class ZendeskField extends Model{}function init(_0x3bbd15,_0x5f0d4f){const _0x7d895f=a412_0x4335dc,_0x238800=options(_0x3bbd15),_0x1840a9=typeof _0x5f0d4f===_0x7d895f(0x81)?_0x5f0d4f(_0x238800):_0x238800;return ZendeskField[_0x7d895f(0x85)](attributes,_0x1840a9),ZendeskField;}module[a412_0x4335dc(0x82)][a412_0x4335dc(0x84)]=ZendeskField,module['exports'][a412_0x4335dc(0x85)]=init; \ No newline at end of file +const a412_0x37fe=['./intZendeskField.attributes','ZendeskField','./intZendeskField.options','sequelize'];(function(_0x250150,_0x3362fb){const _0x37fec8=function(_0x4ac048){while(--_0x4ac048){_0x250150['push'](_0x250150['shift']());}};_0x37fec8(++_0x3362fb);}(a412_0x37fe,0x1d9));const a412_0x4ac0=function(_0x250150,_0x3362fb){_0x250150=_0x250150-0x131;let _0x37fec8=a412_0x37fe[_0x250150];return _0x37fec8;};const a412_0x18ddb9=a412_0x4ac0;'use strict';const {Model}=require(a412_0x18ddb9(0x133)),{attributes}=require(a412_0x18ddb9(0x134)),{options}=require(a412_0x18ddb9(0x132));class ZendeskField extends Model{}function init(_0x5a3615,_0xcfee29){const _0x4cf2c8=options(_0x5a3615),_0x3015b9=typeof _0xcfee29==='function'?_0xcfee29(_0x4cf2c8):_0x4cf2c8;return ZendeskField['init'](attributes,_0x3015b9),ZendeskField;}module['exports'][a412_0x18ddb9(0x131)]=ZendeskField,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/intZendeskField/intZendeskField.options.js b/server/api/intZendeskField/intZendeskField.options.js index ad4174b..2b12bd1 100644 --- a/server/api/intZendeskField/intZendeskField.options.js +++ b/server/api/intZendeskField/intZendeskField.options.js @@ -1 +1 @@ -var a413_0x34ea=['FieldId','idField','int_zendesk_fields','exports'];(function(_0x460251,_0x31dbe8){var _0x34ea86=function(_0x230aaf){while(--_0x230aaf){_0x460251['push'](_0x460251['shift']());}};_0x34ea86(++_0x31dbe8);}(a413_0x34ea,0x1c9));var a413_0x230a=function(_0x460251,_0x31dbe8){_0x460251=_0x460251-0xbc;var _0x34ea86=a413_0x34ea[_0x460251];return _0x34ea86;};var a413_0x34128b=a413_0x230a;function options(_0xe086de){var _0x26f317=a413_0x230a;return{'sequelize':_0xe086de,'tableName':_0x26f317(0xbd),'paranoid':![],'indexes':[{'name':'zendesk_unique_index','fields':[_0x26f317(0xbc),_0x26f317(0xbf)],'unique':!![]}],'timestamps':!![]};}module[a413_0x34128b(0xbe)]['options']=options; \ No newline at end of file +var a413_0x58c9=['options','exports','FieldId','int_zendesk_fields'];(function(_0x1b6764,_0x1de6c4){var _0x58c9a3=function(_0x368a9d){while(--_0x368a9d){_0x1b6764['push'](_0x1b6764['shift']());}};_0x58c9a3(++_0x1de6c4);}(a413_0x58c9,0x113));var a413_0x368a=function(_0x1b6764,_0x1de6c4){_0x1b6764=_0x1b6764-0xe6;var _0x58c9a3=a413_0x58c9[_0x1b6764];return _0x58c9a3;};var a413_0x5a6102=a413_0x368a;function options(_0x254439){var _0x1b121f=a413_0x368a;return{'sequelize':_0x254439,'tableName':_0x1b121f(0xe6),'paranoid':![],'indexes':[{'name':'zendesk_unique_index','fields':['idField',_0x1b121f(0xe9)],'unique':!![]}],'timestamps':!![]};}module[a413_0x5a6102(0xe8)][a413_0x5a6102(0xe7)]=options; \ No newline at end of file diff --git a/server/api/intZohoAccount/index.js b/server/api/intZohoAccount/index.js index eacbe9c..896bd45 100644 --- a/server/api/intZohoAccount/index.js +++ b/server/api/intZohoAccount/index.js @@ -1 +1 @@ -const a414_0x314d=['getConfigurations','./intZohoAccount.controller','update','/:id','destroy','Router','show','express','index','delete','post','/:id/fields','getFields','get','exports','/:id/configurations','create','isAuthenticated'];(function(_0x476e03,_0x36b1e0){const _0x314d56=function(_0x12ea7b){while(--_0x12ea7b){_0x476e03['push'](_0x476e03['shift']());}};_0x314d56(++_0x36b1e0);}(a414_0x314d,0x77));const a414_0x12ea=function(_0x476e03,_0x36b1e0){_0x476e03=_0x476e03-0x16e;let _0x314d56=a414_0x314d[_0x476e03];return _0x314d56;};const a414_0x26c4ca=a414_0x12ea;'use strict';const express=require(a414_0x26c4ca(0x17c)),router=express[a414_0x26c4ca(0x17a)](),auth=require('../../components/auth/service'),controller=require(a414_0x26c4ca(0x176));router[a414_0x26c4ca(0x170)]('/',auth[a414_0x26c4ca(0x174)](),controller[a414_0x26c4ca(0x17d)]),router[a414_0x26c4ca(0x170)]('/:id',auth['isAuthenticated'](),controller[a414_0x26c4ca(0x17b)]),router[a414_0x26c4ca(0x170)](a414_0x26c4ca(0x172),auth[a414_0x26c4ca(0x174)](),controller[a414_0x26c4ca(0x175)]),router[a414_0x26c4ca(0x170)](a414_0x26c4ca(0x16e),auth['isAuthenticated'](),controller[a414_0x26c4ca(0x16f)]),router[a414_0x26c4ca(0x17f)]('/',auth[a414_0x26c4ca(0x174)](),controller[a414_0x26c4ca(0x173)]),router['post']('/:id/configurations',auth[a414_0x26c4ca(0x174)](),controller['addConfiguration']),router['put']('/:id',auth[a414_0x26c4ca(0x174)](),controller[a414_0x26c4ca(0x177)]),router[a414_0x26c4ca(0x17e)](a414_0x26c4ca(0x178),auth[a414_0x26c4ca(0x174)](),controller[a414_0x26c4ca(0x179)]),module[a414_0x26c4ca(0x171)]=router; \ No newline at end of file +const a414_0x3e46=['/:id/configurations','get','show','index','isAuthenticated','/:id','put','./intZohoAccount.controller','post','destroy','create','exports','/:id/fields','delete'];(function(_0x31053c,_0x4f1849){const _0x3e462b=function(_0x55fc9e){while(--_0x55fc9e){_0x31053c['push'](_0x31053c['shift']());}};_0x3e462b(++_0x4f1849);}(a414_0x3e46,0x140));const a414_0x55fc=function(_0x31053c,_0x4f1849){_0x31053c=_0x31053c-0x1ef;let _0x3e462b=a414_0x3e46[_0x31053c];return _0x3e462b;};const a414_0x7197d2=a414_0x55fc;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a414_0x7197d2(0x1f8));router[a414_0x7197d2(0x1f2)]('/',auth[a414_0x7197d2(0x1f5)](),controller[a414_0x7197d2(0x1f4)]),router[a414_0x7197d2(0x1f2)](a414_0x7197d2(0x1f6),auth[a414_0x7197d2(0x1f5)](),controller[a414_0x7197d2(0x1f3)]),router[a414_0x7197d2(0x1f2)](a414_0x7197d2(0x1f1),auth[a414_0x7197d2(0x1f5)](),controller['getConfigurations']),router[a414_0x7197d2(0x1f2)](a414_0x7197d2(0x1ef),auth['isAuthenticated'](),controller['getFields']),router['post']('/',auth[a414_0x7197d2(0x1f5)](),controller[a414_0x7197d2(0x1fb)]),router[a414_0x7197d2(0x1f9)](a414_0x7197d2(0x1f1),auth['isAuthenticated'](),controller['addConfiguration']),router[a414_0x7197d2(0x1f7)]('/:id',auth[a414_0x7197d2(0x1f5)](),controller['update']),router[a414_0x7197d2(0x1f0)](a414_0x7197d2(0x1f6),auth['isAuthenticated'](),controller[a414_0x7197d2(0x1fa)]),module[a414_0x7197d2(0x1fc)]=router; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.attributes.js b/server/api/intZohoAccount/intZohoAccount.attributes.js index 5671e6c..beb6d9b 100644 --- a/server/api/intZohoAccount/intZohoAccount.attributes.js +++ b/server/api/intZohoAccount/intZohoAccount.attributes.js @@ -1 +1 @@ -const a415_0x4333=['exports','attributes','STRING'];(function(_0x885473,_0x48fba5){const _0x433324=function(_0x4eaf7f){while(--_0x4eaf7f){_0x885473['push'](_0x885473['shift']());}};_0x433324(++_0x48fba5);}(a415_0x4333,0x12a));const a415_0x4eaf=function(_0x885473,_0x48fba5){_0x885473=_0x885473-0x18c;let _0x433324=a415_0x4333[_0x885473];return _0x433324;};const a415_0x5e67fc=a415_0x4eaf;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a415_0x5e67fc(0x18d)]},'host':{'type':DataTypes[a415_0x5e67fc(0x18d)]},'zone':{'type':DataTypes[a415_0x5e67fc(0x18d)]},'clientId':{'type':DataTypes[a415_0x5e67fc(0x18d)]},'clientSecret':{'type':DataTypes[a415_0x5e67fc(0x18d)]},'serverUrl':{'type':DataTypes['STRING']},'code':{'type':DataTypes[a415_0x5e67fc(0x18d)]},'refreshToken':{'type':DataTypes['STRING']}};module[a415_0x5e67fc(0x18e)][a415_0x5e67fc(0x18c)]=attributes; \ No newline at end of file +const a415_0x3d70=['sequelize','STRING'];(function(_0x41bd7e,_0x15279f){const _0x3d70b9=function(_0xfdd79b){while(--_0xfdd79b){_0x41bd7e['push'](_0x41bd7e['shift']());}};_0x3d70b9(++_0x15279f);}(a415_0x3d70,0xe1));const a415_0xfdd7=function(_0x41bd7e,_0x15279f){_0x41bd7e=_0x41bd7e-0x1b1;let _0x3d70b9=a415_0x3d70[_0x41bd7e];return _0x3d70b9;};const a415_0xc12c84=a415_0xfdd7;'use strict';const {DataTypes}=require(a415_0xc12c84(0x1b2)),attributes={'name':{'type':DataTypes[a415_0xc12c84(0x1b1)]},'description':{'type':DataTypes['STRING']},'host':{'type':DataTypes[a415_0xc12c84(0x1b1)]},'zone':{'type':DataTypes[a415_0xc12c84(0x1b1)]},'clientId':{'type':DataTypes[a415_0xc12c84(0x1b1)]},'clientSecret':{'type':DataTypes[a415_0xc12c84(0x1b1)]},'serverUrl':{'type':DataTypes['STRING']},'code':{'type':DataTypes[a415_0xc12c84(0x1b1)]},'refreshToken':{'type':DataTypes[a415_0xc12c84(0x1b1)]}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.controller.js b/server/api/intZohoAccount/intZohoAccount.controller.js index c5721bd..4c6eb3e 100644 --- a/server/api/intZohoAccount/intZohoAccount.controller.js +++ b/server/api/intZohoAccount/intZohoAccount.controller.js @@ -1 +1 @@ -const a416_0x29a4=['api_name','params','stringify','catch','keys','index','refresh_token','query','pick','https://accounts.zoho.com','refreshToken','update','end','../../config/logger','getFields','https://accounts.zoho.com.cn','api','message','display_label','includeAll','Subject','GET','create','data_type','../../components/parsers/qs','filters','show','include','lastIndexOf','sort','json','destroy','status','Call_Result','rawAttributes','channel','zone','body','AccountId','ZohoAccount','../../components/integrations/configuration','options','Unable\x20to\x20retrieve\x20the\x20access\x20token','pick_list_values','merge','picklist','rows','sendStatus','count','stack','format','where','findAll','ZohoConfiguration','filter','nolimit','clientId','VIRTUAL','order','getConfigurations','Wrong\x20credentials','name','POST','https://accounts.zoho.eu','key','intersection','Subjects','undefined','then','error','com','offset','/oauth/v2/token','Refresh\x20Token\x20not\x20available\x20for\x20the\x20account','getDescriptions','https://www.zohoapis.%s/crm/v2/settings/fields','lodash','slice','Descriptions','Zoho-oauthtoken\x20','type','sequelize','host','attributes','WhoId','Call_Type','ZohoField','findOne','send','test','custom_field','like','https://accounts.zoho.in','model','util','fields','limit','length','push','Call_Duration','fieldName','request-promise-native','Content-Range','includes','statusCode','serverUrl','map','https://accounts.zoho.com.au'];(function(_0x1a71b1,_0x2efd8e){const _0x29a4f8=function(_0x46ffa7){while(--_0x46ffa7){_0x1a71b1['push'](_0x1a71b1['shift']());}};_0x29a4f8(++_0x2efd8e);}(a416_0x29a4,0xd1));const a416_0x46ff=function(_0x1a71b1,_0x2efd8e){_0x1a71b1=_0x1a71b1-0xc5;let _0x29a4f8=a416_0x29a4[_0x1a71b1];return _0x29a4f8;};const a416_0x57451e=a416_0x46ff;'use strict';const rp=require(a416_0x57451e(0xc5)),util=require(a416_0x57451e(0x12a)),_=require(a416_0x57451e(0x118)),qs=require(a416_0x57451e(0xe4)),logger=require(a416_0x57451e(0xd9))(a416_0x57451e(0xdc)),{db}=require('../../mysqldb'),{Op}=require(a416_0x57451e(0x11d)),integrations=require(a416_0x57451e(0xf4));function respondWithResult(_0xa8c934,_0x395bef){return _0x395bef=_0x395bef||0xc8,function(_0x1cc2ac){const _0x1690fc=a416_0x46ff;if(_0x1cc2ac)return _0xa8c934['status'](_0x395bef)[_0x1690fc(0xea)](_0x1cc2ac);};}function respondWithFilteredResult(_0x3aec16,_0xb07bf5){return function(_0x460168){const _0x19ea58=a416_0x46ff;if(_0x460168){const _0x518f2b=_0x460168[_0x19ea58(0xfc)],_0x3b9375=_0xb07bf5['offset'];let _0x2f3176=_0xb07bf5[_0x19ea58(0x113)]+_0xb07bf5[_0x19ea58(0x12c)],_0x51948e;return _0x2f3176>=_0x518f2b?(_0x2f3176=_0x518f2b,_0x51948e=0xc8):_0x51948e=0xce,_0x3aec16['status'](_0x51948e),_0x3aec16['set'](_0x19ea58(0xc6),_0x3b9375+'-'+_0x2f3176+'/'+_0x518f2b)[_0x19ea58(0xea)](_0x460168);}return null;};}function saveUpdates(_0x507822){return function(_0x2b4bd6){const _0x4a818d=a416_0x46ff;if(_0x2b4bd6)return _0x2b4bd6['update'](_0x507822)[_0x4a818d(0x110)](function(_0x58d35b){return _0x58d35b;});return null;};}function removeEntity(_0x242e94){return function(_0x527d9b){const _0x54465e=a416_0x46ff;if(_0x527d9b)return _0x527d9b[_0x54465e(0xeb)]()[_0x54465e(0x110)](function(){const _0x462d51=_0x54465e;_0x242e94[_0x462d51(0xec)](0xcc)[_0x462d51(0xd8)]();});};}function handleEntityNotFound(_0x520317){return function(_0x5be21d){const _0x2b9247=a416_0x46ff;return!_0x5be21d&&_0x520317[_0x2b9247(0xfb)](0x194),_0x5be21d;};}function handleError(_0x4e22cb,_0x1a5654){return _0x1a5654=_0x1a5654||0x1f4,function(_0xcb0821){const _0x493aea=a416_0x46ff;logger[_0x493aea(0x111)](_0xcb0821[_0x493aea(0xfd)]),_0xcb0821[_0x493aea(0x109)]&&delete _0xcb0821[_0x493aea(0x109)],_0x4e22cb[_0x493aea(0xec)](_0x1a5654)['send'](_0xcb0821);};}exports[a416_0x57451e(0xd1)]=function(_0x5df985,_0x582601){const _0x5e52f8=a416_0x57451e;let _0x577867={};const _0x2c60ea={},_0xd36b6={'count':0x0,'rows':[]},_0x104a54=_['map'](db[_0x5e52f8(0xf3)][_0x5e52f8(0xee)],function(_0x14ff89){const _0x2742d3=_0x5e52f8;return{'name':_0x14ff89[_0x2742d3(0x130)],'type':_0x14ff89[_0x2742d3(0x11c)][_0x2742d3(0x10c)]};});_0x2c60ea[_0x5e52f8(0x129)]=_[_0x5e52f8(0xca)](_0x104a54,_0x5e52f8(0x109)),_0x2c60ea[_0x5e52f8(0xd3)]=_[_0x5e52f8(0xd0)](_0x5df985['query']),_0x2c60ea[_0x5e52f8(0xe5)]=_[_0x5e52f8(0x10d)](_0x2c60ea[_0x5e52f8(0x129)],_0x2c60ea[_0x5e52f8(0xd3)]),_0x577867[_0x5e52f8(0x11f)]=_[_0x5e52f8(0x10d)](_0x2c60ea[_0x5e52f8(0x129)],qs[_0x5e52f8(0x12b)](_0x5df985[_0x5e52f8(0xd3)][_0x5e52f8(0x12b)])),_0x577867[_0x5e52f8(0x11f)]=_0x577867['attributes'][_0x5e52f8(0x12d)]?_0x577867[_0x5e52f8(0x11f)]:_0x2c60ea[_0x5e52f8(0x129)];typeof _0x5df985['query'][_0x5e52f8(0x103)]===_0x5e52f8(0x10f)&&(_0x577867[_0x5e52f8(0x12c)]=qs[_0x5e52f8(0x12c)](_0x5df985[_0x5e52f8(0xd3)][_0x5e52f8(0x12c)]),_0x577867[_0x5e52f8(0x113)]=qs[_0x5e52f8(0x113)](_0x5df985[_0x5e52f8(0xd3)][_0x5e52f8(0x113)]));_0x577867[_0x5e52f8(0x106)]=qs[_0x5e52f8(0xe9)](_0x5df985[_0x5e52f8(0xd3)][_0x5e52f8(0xe9)]),_0x577867[_0x5e52f8(0xff)]=qs[_0x5e52f8(0xe5)](_['pick'](_0x5df985['query'],_0x2c60ea[_0x5e52f8(0xe5)]),_0x104a54);_0x5df985[_0x5e52f8(0xd3)][_0x5e52f8(0x102)]&&(_0x577867[_0x5e52f8(0xff)]=_[_0x5e52f8(0xf8)](_0x577867[_0x5e52f8(0xff)],{[Op['or']]:_[_0x5e52f8(0xca)](_0x104a54,function(_0x565a8f){const _0x2ca83f=_0x5e52f8;if(_0x565a8f[_0x2ca83f(0x11c)]!==_0x2ca83f(0x105)){const _0x3479d7={};return _0x3479d7[_0x565a8f[_0x2ca83f(0x109)]]={[Op[_0x2ca83f(0x127)]]:'%'+_0x5df985[_0x2ca83f(0xd3)]['filter']+'%'},_0x3479d7;}})}));_0x577867=_[_0x5e52f8(0xf8)]({},_0x577867,_0x5df985[_0x5e52f8(0xf5)]);const _0x2c980a={'where':_0x577867[_0x5e52f8(0xff)]};return db[_0x5e52f8(0xf3)][_0x5e52f8(0xfc)](_0x2c980a)[_0x5e52f8(0x110)](function(_0x361d76){const _0x5c2cf=_0x5e52f8;return _0xd36b6[_0x5c2cf(0xfc)]=_0x361d76,_0x5df985[_0x5c2cf(0xd3)][_0x5c2cf(0xdf)]&&(_0x577867[_0x5c2cf(0xe7)]=[{'all':!![]}]),db[_0x5c2cf(0xf3)][_0x5c2cf(0x100)](_0x577867);})[_0x5e52f8(0x110)](function(_0x23956b){const _0x15a34e=_0x5e52f8;return _0xd36b6[_0x15a34e(0xfa)]=_0x23956b,_0xd36b6;})['then'](respondWithFilteredResult(_0x582601,_0x577867))[_0x5e52f8(0xcf)](handleError(_0x582601,null));},exports[a416_0x57451e(0xe6)]=function(_0x259ab7,_0x28d84a){const _0x280a17=a416_0x57451e;let _0x13933={'raw':![],'where':{'id':_0x259ab7[_0x280a17(0xcd)]['id']}};const _0x2d7b9e={};return _0x2d7b9e[_0x280a17(0x129)]=_[_0x280a17(0xd0)](db[_0x280a17(0xf3)][_0x280a17(0xee)]),_0x2d7b9e['query']=_[_0x280a17(0xd0)](_0x259ab7[_0x280a17(0xd3)]),_0x2d7b9e[_0x280a17(0xe5)]=_[_0x280a17(0x10d)](_0x2d7b9e[_0x280a17(0x129)],_0x2d7b9e['query']),_0x13933['attributes']=_[_0x280a17(0x10d)](_0x2d7b9e[_0x280a17(0x129)],qs['fields'](_0x259ab7[_0x280a17(0xd3)][_0x280a17(0x12b)])),_0x13933['attributes']=_0x13933['attributes']['length']?_0x13933[_0x280a17(0x11f)]:_0x2d7b9e[_0x280a17(0x129)],_0x259ab7['query'][_0x280a17(0xdf)]&&(_0x13933[_0x280a17(0xe7)]=[{'all':!![]}]),_0x13933=_[_0x280a17(0xf8)]({},_0x13933,_0x259ab7['options']),db[_0x280a17(0xf3)][_0x280a17(0x123)](_0x13933)[_0x280a17(0x110)](handleEntityNotFound(_0x28d84a,null))[_0x280a17(0x110)](respondWithResult(_0x28d84a,null))[_0x280a17(0xcf)](handleError(_0x28d84a,null));},exports[a416_0x57451e(0xe2)]=function(_0x308bfa,_0x2305cb){const _0x5b2c40=a416_0x57451e;return db[_0x5b2c40(0xf3)][_0x5b2c40(0xe2)](_0x308bfa['body'],{})[_0x5b2c40(0x110)](respondWithResult(_0x2305cb,0xc9))[_0x5b2c40(0xcf)](handleError(_0x2305cb,null));},exports[a416_0x57451e(0xd7)]=function(_0x41a35d,_0x1e1cb9){const _0x5a0361=a416_0x57451e;return _0x41a35d[_0x5a0361(0xf1)]['id']&&delete _0x41a35d['body']['id'],db[_0x5a0361(0xf3)][_0x5a0361(0x123)]({'where':{'id':_0x41a35d[_0x5a0361(0xcd)]['id']}})[_0x5a0361(0x110)](handleEntityNotFound(_0x1e1cb9,null))[_0x5a0361(0x110)](saveUpdates(_0x41a35d[_0x5a0361(0xf1)],null))[_0x5a0361(0x110)](respondWithResult(_0x1e1cb9,null))[_0x5a0361(0xcf)](handleError(_0x1e1cb9,null));},exports['destroy']=function(_0x3aa5f7,_0x4d905a){const _0x4b6a2a=a416_0x57451e;return db['ZohoAccount'][_0x4b6a2a(0x123)]({'where':{'id':_0x3aa5f7[_0x4b6a2a(0xcd)]['id']}})[_0x4b6a2a(0x110)](handleEntityNotFound(_0x4d905a,null))[_0x4b6a2a(0x110)](removeEntity(_0x4d905a,null))[_0x4b6a2a(0xcf)](handleError(_0x4d905a,null));},exports[a416_0x57451e(0x107)]=function(_0x4d762c,_0x37b34b){const _0x118d75=a416_0x57451e;let _0x563f82={};const _0x233c48={};let _0x3bbc7d,_0x15edc3;return db[_0x118d75(0xf3)][_0x118d75(0x123)]({'where':{'id':_0x4d762c[_0x118d75(0xcd)]['id']}})[_0x118d75(0x110)](handleEntityNotFound(_0x37b34b,null))[_0x118d75(0x110)](function(_0x4066d3){const _0x18f42b=_0x118d75;if(_0x4066d3)return _0x3bbc7d=_0x4066d3,_0x233c48['model']=_[_0x18f42b(0xd0)](db['ZohoConfiguration'][_0x18f42b(0xee)]),_0x233c48[_0x18f42b(0xd3)]=_[_0x18f42b(0xd0)](_0x4d762c['query']),_0x233c48['filters']=_['intersection'](_0x233c48[_0x18f42b(0x129)],_0x233c48[_0x18f42b(0xd3)]),_0x563f82['attributes']=_[_0x18f42b(0x10d)](_0x233c48[_0x18f42b(0x129)],qs['fields'](_0x4d762c[_0x18f42b(0xd3)][_0x18f42b(0x12b)])),_0x563f82[_0x18f42b(0x11f)]=_0x563f82[_0x18f42b(0x11f)]['length']?_0x563f82['attributes']:_0x233c48[_0x18f42b(0x129)],_0x563f82[_0x18f42b(0x106)]=qs['sort'](_0x4d762c['query']['sort']),_0x563f82['where']=qs[_0x18f42b(0xe5)](_[_0x18f42b(0xd4)](_0x4d762c[_0x18f42b(0xd3)],_0x233c48['filters'])),_0x4d762c[_0x18f42b(0xd3)][_0x18f42b(0x102)]&&(_0x563f82['where']=_[_0x18f42b(0xf8)](_0x563f82['where'],{[Op['or']]:_['map'](_0x563f82[_0x18f42b(0x11f)],function(_0x38155b){const _0x3c2c4b=_0x18f42b,_0x479b9d={};return _0x479b9d[_0x38155b]={[Op['like']]:'%'+_0x4d762c[_0x3c2c4b(0xd3)]['filter']+'%'},_0x479b9d;})})),_0x563f82=_['merge']({},_0x563f82,_0x4d762c[_0x18f42b(0xf5)]),_0x3bbc7d[_0x18f42b(0x107)](_0x563f82);})['then'](function(_0x2f241a){const _0x5334a0=_0x118d75;if(_0x2f241a)return _0x15edc3=_0x2f241a[_0x5334a0(0x12d)],typeof _0x4d762c['query'][_0x5334a0(0x103)]===_0x5334a0(0x10f)&&(_0x563f82[_0x5334a0(0x12c)]=qs[_0x5334a0(0x12c)](_0x4d762c['query']['limit']),_0x563f82[_0x5334a0(0x113)]=qs['offset'](_0x4d762c[_0x5334a0(0xd3)][_0x5334a0(0x113)])),_0x3bbc7d[_0x5334a0(0x107)](_0x563f82);})[_0x118d75(0x110)](function(_0x2c90da){if(_0x2c90da)return _0x2c90da?{'count':_0x15edc3,'rows':_0x2c90da}:null;})['then'](respondWithResult(_0x37b34b,null))[_0x118d75(0xcf)](handleError(_0x37b34b,null));},exports['addConfiguration']=function(_0x565085,_0x3f9d83){const _0x2cf809=a416_0x57451e;return _0x565085[_0x2cf809(0xf1)]['id']&&delete _0x565085['body']['id'],db[_0x2cf809(0xf3)]['findOne']({'where':{'id':_0x565085[_0x2cf809(0xcd)]['id']}})[_0x2cf809(0x110)](handleEntityNotFound(_0x3f9d83,null))[_0x2cf809(0x110)](function(_0x130199){const _0x1b0fcf=_0x2cf809;if(_0x130199)return _0x565085[_0x1b0fcf(0xf1)][_0x1b0fcf(0xf2)]=_0x130199['id'],_0x565085[_0x1b0fcf(0xf1)][_0x1b0fcf(0x10e)]=integrations['getSubjects'](_0x565085[_0x1b0fcf(0xf1)][_0x1b0fcf(0xef)],_0x565085['body']['type']),_0x565085[_0x1b0fcf(0xf1)][_0x1b0fcf(0x11a)]=integrations[_0x1b0fcf(0x116)](_0x565085['body'][_0x1b0fcf(0xef)],_0x565085['body'][_0x1b0fcf(0x11c)]),db[_0x1b0fcf(0x101)][_0x1b0fcf(0xe2)](_0x565085[_0x1b0fcf(0xf1)],{'include':[{'model':db['ZohoField'],'as':'Subjects'},{'model':db[_0x1b0fcf(0x122)],'as':'Descriptions'}]});return null;})['then'](respondWithResult(_0x3f9d83,null))[_0x2cf809(0xcf)](handleError(_0x3f9d83,null));};function getAccessToken(_0x66cb5f){return new Promise(function(_0x2cf2d5,_0x1d1b4f){const _0x30819c=a416_0x46ff;let _0x59224f;switch(_0x66cb5f[_0x30819c(0xf0)]){case'US':_0x59224f=_0x30819c(0xd5);break;case'AU':_0x59224f=_0x30819c(0xcb);break;case'EU':_0x59224f=_0x30819c(0x10b);break;case'IN':_0x59224f=_0x30819c(0x128);break;case'CN':_0x59224f=_0x30819c(0xdb);break;default:_0x59224f=_0x30819c(0x10b);break;}const _0x5e3909={'method':_0x30819c(0x10a),'uri':_0x59224f+_0x30819c(0x114),'qs':{'refresh_token':_0x66cb5f[_0x30819c(0xd6)],'client_id':_0x66cb5f['clientId'],'client_secret':_0x66cb5f['clientSecret'],'grant_type':_0x30819c(0xd2)},'json':!![]};return rp(_0x5e3909)[_0x30819c(0x110)](function(_0x124458){const _0x1a4fe2=_0x30819c;_0x124458['access_token']?_0x2cf2d5(_0x124458['access_token']):_0x1d1b4f(_0x1a4fe2(0xf6));})[_0x30819c(0xcf)](function(_0x4ebc32){_0x1d1b4f(_0x4ebc32);});});}exports[a416_0x57451e(0xda)]=function(_0x1d9e5c,_0x3b9647){const _0xc26967=a416_0x57451e;let _0x3c213d,_0x38c0dd,_0x1a13af,_0x26f405;return db[_0xc26967(0xf3)]['findOne']({'where':{'id':_0x1d9e5c['params']['id']},'attributes':['id',_0xc26967(0x11e),_0xc26967(0xf0),_0xc26967(0x104),'clientSecret',_0xc26967(0xc9),'code',_0xc26967(0xd6)]})[_0xc26967(0x110)](handleEntityNotFound(_0x3b9647,null))[_0xc26967(0x110)](function(_0x3cd688){const _0x49ee99=_0xc26967;_0x26f405=_0x3cd688,_0x3c213d=_0x26f405[_0x49ee99(0x11e)],_0x38c0dd=_0x3c213d==='zoho.eu'?'eu':_0x49ee99(0x112),_0x1a13af=_0x26f405['serverUrl'];const _0x4ede60=_0x1a13af[_0x49ee99(0x119)](-0x1);(_0x4ede60==='/'||_0x4ede60==='\x5c'||_0x4ede60===':')&&(_0x1a13af=_0x1a13af['substring'](0x0,_0x1a13af[_0x49ee99(0xe8)](_0x4ede60)));if(!_0x26f405[_0x49ee99(0xd6)])throw new Error(_0x49ee99(0x115));return getAccessToken(_0x26f405);})[_0xc26967(0x110)](function(_0x35a47f){const _0x5c70a8=_0xc26967;if(_0x35a47f)return rp({'method':_0x5c70a8(0xe1),'uri':util[_0x5c70a8(0xfe)](_0x5c70a8(0x117),_0x38c0dd),'qs':{'module':'Calls'},'headers':{'Authorization':_0x5c70a8(0x11b)+_0x35a47f},'json':!![]});})[_0xc26967(0x110)](function(_0x3ed60c){const _0x121f26=_0xc26967;if(_0x3ed60c){if(_0x3ed60c['response']&&_0x3ed60c['response'][_0x121f26(0x111)])throw new Error(_0x3ed60c['response'][_0x121f26(0x111)][_0x121f26(0xdd)]);const _0x5dd662=[];let _0x2fe5de=[];const _0x210d1f=['Owner',_0x121f26(0xe0),'Description',_0x121f26(0x120),_0x121f26(0x12f),_0x121f26(0xed),'Call_Start_Time',_0x121f26(0x121)];_0x2fe5de=_['remove'](_0x3ed60c[_0x121f26(0x12b)],function(_0x32635c){const _0x58cc39=_0x121f26;return _0x210d1f[_0x58cc39(0xc7)](_0x32635c[_0x58cc39(0xcc)]);});for(let _0x46e21d=0x0;_0x46e21d<_0x2fe5de[_0x121f26(0x12d)];_0x46e21d++){_0x2fe5de[_0x46e21d]['system_mandatory']===![]&&_0x5dd662[_0x121f26(0x12e)]({'id':_0x2fe5de[_0x46e21d]['id'],'name':_0x2fe5de[_0x46e21d][_0x121f26(0xde)],'custom':_0x2fe5de[_0x46e21d][_0x121f26(0x126)],'options':_0x2fe5de[_0x46e21d][_0x121f26(0xe3)]===_0x121f26(0xf9)&&_0x2fe5de[_0x46e21d][_0x121f26(0xf7)][_0x121f26(0x12d)]>-0x1?_[_0x121f26(0xca)](_0x2fe5de[_0x46e21d][_0x121f26(0xf7)],function(_0x20e66f){return{'name':_0x20e66f,'value':_0x20e66f};}):[]});}return{'count':_0x5dd662[_0x121f26(0x12d)],'rows':_0x5dd662};}else return{'count':0x0,'rows':[]};})[_0xc26967(0x110)](respondWithResult(_0x3b9647,null))['catch'](function(_0x57c258){const _0x174e29=_0xc26967;let _0x5f4e3a=_0x1d9e5c['query'][_0x174e29(0x125)]?0x1f4:_0x57c258[_0x174e29(0xc8)]||0x1f4;logger[_0x174e29(0x111)]('getFields,\x20%s,\x20%s,\x20%s',_0x174e29(0xda),_0x5f4e3a,JSON[_0x174e29(0xce)](_0x57c258)),delete _0x57c258[_0x174e29(0x109)],_0x5f4e3a===0x191&&(_0x5f4e3a=0x190),_0x3b9647['status'](_0x5f4e3a)[_0x174e29(0x124)](_0x1d9e5c['query'][_0x174e29(0x125)]?{'message':_0x174e29(0x108),'statusCode':_0x57c258[_0x174e29(0xc8)]}:_0x57c258);});}; \ No newline at end of file +const a416_0x5053=['limit','nolimit','../../components/parsers/qs','Calls','data_type','keys','refreshToken','include','access_token','/oauth/v2/token','https://accounts.zoho.com','body','fields','code','display_label','ZohoAccount','Call_Type','host','pick_list_values','Content-Range','substring','update','remove','map','type','Description','lodash','Wrong\x20credentials','ZohoField','channel','filters','rawAttributes','https://accounts.zoho.eu','order','https://accounts.zoho.in','message','slice','name','clientId','stack','params','attributes','statusCode','then','where','model','destroy','../../mysqldb','sort','getConfigurations','response','count','request-promise-native','pick','offset','refresh_token','zone','index','api','test','sequelize','serverUrl','merge','options','com','key','stringify','Call_Result','Call_Start_Time','https://accounts.zoho.com.au','status','set','catch','push','system_mandatory','end','Call_Duration','Subject','undefined','includeAll','addConfiguration','json','Zoho-oauthtoken\x20','like','findOne','Descriptions','getFields','create','send','error','intersection','query','custom_field','../../components/integrations/configuration','zoho.eu','length','VIRTUAL','rows','https://accounts.zoho.com.cn','Unable\x20to\x20retrieve\x20the\x20access\x20token','filter','getDescriptions'];(function(_0x2a8aab,_0x344504){const _0x5053fb=function(_0x4d910f){while(--_0x4d910f){_0x2a8aab['push'](_0x2a8aab['shift']());}};_0x5053fb(++_0x344504);}(a416_0x5053,0xac));const a416_0x4d91=function(_0x2a8aab,_0x344504){_0x2a8aab=_0x2a8aab-0xaf;let _0x5053fb=a416_0x5053[_0x2a8aab];return _0x5053fb;};const a416_0x5842a9=a416_0x4d91;'use strict';const rp=require(a416_0x5842a9(0x103)),util=require('util'),_=require(a416_0x5842a9(0xe9)),qs=require(a416_0x5842a9(0xd1)),logger=require('../../config/logger')(a416_0x5842a9(0x109)),{db}=require(a416_0x5842a9(0xfe)),{Op}=require(a416_0x5842a9(0x10b)),integrations=require(a416_0x5842a9(0xc6));function respondWithResult(_0x2e1e56,_0x1cdf19){return _0x1cdf19=_0x1cdf19||0xc8,function(_0x11b4ea){const _0xbda6a3=a416_0x4d91;if(_0x11b4ea)return _0x2e1e56[_0xbda6a3(0xaf)](_0x1cdf19)['json'](_0x11b4ea);};}function respondWithFilteredResult(_0x5ac9fd,_0xfed152){return function(_0x19774c){const _0x7709cd=a416_0x4d91;if(_0x19774c){const _0x1c3959=_0x19774c[_0x7709cd(0x102)],_0x1f5a5a=_0xfed152[_0x7709cd(0x105)];let _0x54f905=_0xfed152[_0x7709cd(0x105)]+_0xfed152[_0x7709cd(0xcf)],_0xa0138;return _0x54f905>=_0x1c3959?(_0x54f905=_0x1c3959,_0xa0138=0xc8):_0xa0138=0xce,_0x5ac9fd[_0x7709cd(0xaf)](_0xa0138),_0x5ac9fd[_0x7709cd(0xb0)](_0x7709cd(0xe2),_0x1f5a5a+'-'+_0x54f905+'/'+_0x1c3959)[_0x7709cd(0xba)](_0x19774c);}return null;};}function saveUpdates(_0x30cc3f){return function(_0x5df45c){const _0x1057e4=a416_0x4d91;if(_0x5df45c)return _0x5df45c[_0x1057e4(0xe4)](_0x30cc3f)['then'](function(_0x252e48){return _0x252e48;});return null;};}function removeEntity(_0x42df4a){return function(_0x731f7e){const _0x54b051=a416_0x4d91;if(_0x731f7e)return _0x731f7e[_0x54b051(0xfd)]()[_0x54b051(0xfa)](function(){const _0x403842=_0x54b051;_0x42df4a[_0x403842(0xaf)](0xcc)[_0x403842(0xb4)]();});};}function handleEntityNotFound(_0x109951){return function(_0x3f251e){return!_0x3f251e&&_0x109951['sendStatus'](0x194),_0x3f251e;};}function handleError(_0x3f742e,_0xe8d721){return _0xe8d721=_0xe8d721||0x1f4,function(_0x4b8c0d){const _0x214f8a=a416_0x4d91;logger['error'](_0x4b8c0d[_0x214f8a(0xf6)]),_0x4b8c0d[_0x214f8a(0xf4)]&&delete _0x4b8c0d[_0x214f8a(0xf4)],_0x3f742e[_0x214f8a(0xaf)](_0xe8d721)[_0x214f8a(0xc1)](_0x4b8c0d);};}exports[a416_0x5842a9(0x108)]=function(_0x59f376,_0x566b2c){const _0x1da609=a416_0x5842a9;let _0x27f3e8={};const _0x70fa1d={},_0x1514dd={'count':0x0,'rows':[]},_0x50d492=_['map'](db[_0x1da609(0xde)][_0x1da609(0xee)],function(_0x215783){const _0x51993b=_0x1da609;return{'name':_0x215783['fieldName'],'type':_0x215783['type'][_0x51993b(0x110)]};});_0x70fa1d[_0x1da609(0xfc)]=_[_0x1da609(0xe6)](_0x50d492,'name'),_0x70fa1d[_0x1da609(0xc4)]=_['keys'](_0x59f376[_0x1da609(0xc4)]),_0x70fa1d[_0x1da609(0xed)]=_[_0x1da609(0xc3)](_0x70fa1d[_0x1da609(0xfc)],_0x70fa1d['query']),_0x27f3e8[_0x1da609(0xf8)]=_[_0x1da609(0xc3)](_0x70fa1d[_0x1da609(0xfc)],qs[_0x1da609(0xdb)](_0x59f376['query'][_0x1da609(0xdb)])),_0x27f3e8[_0x1da609(0xf8)]=_0x27f3e8[_0x1da609(0xf8)][_0x1da609(0xc8)]?_0x27f3e8[_0x1da609(0xf8)]:_0x70fa1d['model'];typeof _0x59f376[_0x1da609(0xc4)]['nolimit']===_0x1da609(0xb7)&&(_0x27f3e8['limit']=qs[_0x1da609(0xcf)](_0x59f376['query'][_0x1da609(0xcf)]),_0x27f3e8[_0x1da609(0x105)]=qs['offset'](_0x59f376[_0x1da609(0xc4)]['offset']));_0x27f3e8[_0x1da609(0xf0)]=qs['sort'](_0x59f376[_0x1da609(0xc4)]['sort']),_0x27f3e8['where']=qs[_0x1da609(0xed)](_[_0x1da609(0x104)](_0x59f376[_0x1da609(0xc4)],_0x70fa1d['filters']),_0x50d492);_0x59f376[_0x1da609(0xc4)][_0x1da609(0xcd)]&&(_0x27f3e8[_0x1da609(0xfb)]=_[_0x1da609(0x10d)](_0x27f3e8[_0x1da609(0xfb)],{[Op['or']]:_['map'](_0x50d492,function(_0x3ce9a7){const _0x2a42f4=_0x1da609;if(_0x3ce9a7[_0x2a42f4(0xe7)]!==_0x2a42f4(0xc9)){const _0xd14011={};return _0xd14011[_0x3ce9a7[_0x2a42f4(0xf4)]]={[Op[_0x2a42f4(0xbc)]]:'%'+_0x59f376[_0x2a42f4(0xc4)][_0x2a42f4(0xcd)]+'%'},_0xd14011;}})}));_0x27f3e8=_[_0x1da609(0x10d)]({},_0x27f3e8,_0x59f376[_0x1da609(0x10e)]);const _0x19e3b2={'where':_0x27f3e8['where']};return db[_0x1da609(0xde)][_0x1da609(0x102)](_0x19e3b2)['then'](function(_0x4b241b){const _0x36b00=_0x1da609;return _0x1514dd[_0x36b00(0x102)]=_0x4b241b,_0x59f376[_0x36b00(0xc4)][_0x36b00(0xb8)]&&(_0x27f3e8[_0x36b00(0xd6)]=[{'all':!![]}]),db[_0x36b00(0xde)]['findAll'](_0x27f3e8);})['then'](function(_0x5d1c86){const _0x518fb1=_0x1da609;return _0x1514dd[_0x518fb1(0xca)]=_0x5d1c86,_0x1514dd;})[_0x1da609(0xfa)](respondWithFilteredResult(_0x566b2c,_0x27f3e8))[_0x1da609(0xb1)](handleError(_0x566b2c,null));},exports['show']=function(_0x458622,_0x5cb24e){const _0x33603e=a416_0x5842a9;let _0x22f706={'raw':![],'where':{'id':_0x458622[_0x33603e(0xf7)]['id']}};const _0x3402ee={};return _0x3402ee[_0x33603e(0xfc)]=_[_0x33603e(0xd4)](db[_0x33603e(0xde)][_0x33603e(0xee)]),_0x3402ee[_0x33603e(0xc4)]=_['keys'](_0x458622['query']),_0x3402ee['filters']=_[_0x33603e(0xc3)](_0x3402ee[_0x33603e(0xfc)],_0x3402ee[_0x33603e(0xc4)]),_0x22f706[_0x33603e(0xf8)]=_[_0x33603e(0xc3)](_0x3402ee[_0x33603e(0xfc)],qs[_0x33603e(0xdb)](_0x458622['query'][_0x33603e(0xdb)])),_0x22f706[_0x33603e(0xf8)]=_0x22f706[_0x33603e(0xf8)][_0x33603e(0xc8)]?_0x22f706[_0x33603e(0xf8)]:_0x3402ee[_0x33603e(0xfc)],_0x458622[_0x33603e(0xc4)][_0x33603e(0xb8)]&&(_0x22f706[_0x33603e(0xd6)]=[{'all':!![]}]),_0x22f706=_[_0x33603e(0x10d)]({},_0x22f706,_0x458622[_0x33603e(0x10e)]),db[_0x33603e(0xde)]['findOne'](_0x22f706)[_0x33603e(0xfa)](handleEntityNotFound(_0x5cb24e,null))['then'](respondWithResult(_0x5cb24e,null))[_0x33603e(0xb1)](handleError(_0x5cb24e,null));},exports[a416_0x5842a9(0xc0)]=function(_0x3f957c,_0x3f8e4a){const _0x50a519=a416_0x5842a9;return db[_0x50a519(0xde)][_0x50a519(0xc0)](_0x3f957c[_0x50a519(0xda)],{})['then'](respondWithResult(_0x3f8e4a,0xc9))[_0x50a519(0xb1)](handleError(_0x3f8e4a,null));},exports[a416_0x5842a9(0xe4)]=function(_0x4e13dd,_0x344d19){const _0x5691c7=a416_0x5842a9;return _0x4e13dd[_0x5691c7(0xda)]['id']&&delete _0x4e13dd[_0x5691c7(0xda)]['id'],db[_0x5691c7(0xde)][_0x5691c7(0xbd)]({'where':{'id':_0x4e13dd['params']['id']}})['then'](handleEntityNotFound(_0x344d19,null))['then'](saveUpdates(_0x4e13dd[_0x5691c7(0xda)],null))[_0x5691c7(0xfa)](respondWithResult(_0x344d19,null))['catch'](handleError(_0x344d19,null));},exports['destroy']=function(_0x209e43,_0x5c3467){const _0x5b26a9=a416_0x5842a9;return db[_0x5b26a9(0xde)][_0x5b26a9(0xbd)]({'where':{'id':_0x209e43[_0x5b26a9(0xf7)]['id']}})[_0x5b26a9(0xfa)](handleEntityNotFound(_0x5c3467,null))[_0x5b26a9(0xfa)](removeEntity(_0x5c3467,null))['catch'](handleError(_0x5c3467,null));},exports[a416_0x5842a9(0x100)]=function(_0x1acfec,_0x5ae85b){const _0x172392=a416_0x5842a9;let _0x5a1c15={};const _0x2f19f6={};let _0x8547ce,_0x5c5dd1;return db[_0x172392(0xde)][_0x172392(0xbd)]({'where':{'id':_0x1acfec[_0x172392(0xf7)]['id']}})[_0x172392(0xfa)](handleEntityNotFound(_0x5ae85b,null))[_0x172392(0xfa)](function(_0x524062){const _0x14b8d1=_0x172392;if(_0x524062)return _0x8547ce=_0x524062,_0x2f19f6['model']=_['keys'](db['ZohoConfiguration'][_0x14b8d1(0xee)]),_0x2f19f6[_0x14b8d1(0xc4)]=_[_0x14b8d1(0xd4)](_0x1acfec[_0x14b8d1(0xc4)]),_0x2f19f6[_0x14b8d1(0xed)]=_[_0x14b8d1(0xc3)](_0x2f19f6[_0x14b8d1(0xfc)],_0x2f19f6[_0x14b8d1(0xc4)]),_0x5a1c15[_0x14b8d1(0xf8)]=_['intersection'](_0x2f19f6[_0x14b8d1(0xfc)],qs['fields'](_0x1acfec[_0x14b8d1(0xc4)]['fields'])),_0x5a1c15[_0x14b8d1(0xf8)]=_0x5a1c15[_0x14b8d1(0xf8)][_0x14b8d1(0xc8)]?_0x5a1c15[_0x14b8d1(0xf8)]:_0x2f19f6[_0x14b8d1(0xfc)],_0x5a1c15[_0x14b8d1(0xf0)]=qs[_0x14b8d1(0xff)](_0x1acfec[_0x14b8d1(0xc4)][_0x14b8d1(0xff)]),_0x5a1c15['where']=qs['filters'](_[_0x14b8d1(0x104)](_0x1acfec['query'],_0x2f19f6[_0x14b8d1(0xed)])),_0x1acfec[_0x14b8d1(0xc4)][_0x14b8d1(0xcd)]&&(_0x5a1c15[_0x14b8d1(0xfb)]=_[_0x14b8d1(0x10d)](_0x5a1c15['where'],{[Op['or']]:_[_0x14b8d1(0xe6)](_0x5a1c15[_0x14b8d1(0xf8)],function(_0x330c20){const _0x122830=_0x14b8d1,_0x93cdcd={};return _0x93cdcd[_0x330c20]={[Op[_0x122830(0xbc)]]:'%'+_0x1acfec['query']['filter']+'%'},_0x93cdcd;})})),_0x5a1c15=_[_0x14b8d1(0x10d)]({},_0x5a1c15,_0x1acfec[_0x14b8d1(0x10e)]),_0x8547ce[_0x14b8d1(0x100)](_0x5a1c15);})['then'](function(_0x5c9613){const _0x523fd5=_0x172392;if(_0x5c9613)return _0x5c5dd1=_0x5c9613[_0x523fd5(0xc8)],typeof _0x1acfec['query'][_0x523fd5(0xd0)]===_0x523fd5(0xb7)&&(_0x5a1c15['limit']=qs[_0x523fd5(0xcf)](_0x1acfec['query'][_0x523fd5(0xcf)]),_0x5a1c15['offset']=qs[_0x523fd5(0x105)](_0x1acfec['query'][_0x523fd5(0x105)])),_0x8547ce[_0x523fd5(0x100)](_0x5a1c15);})[_0x172392(0xfa)](function(_0x29c253){if(_0x29c253)return _0x29c253?{'count':_0x5c5dd1,'rows':_0x29c253}:null;})[_0x172392(0xfa)](respondWithResult(_0x5ae85b,null))['catch'](handleError(_0x5ae85b,null));},exports[a416_0x5842a9(0xb9)]=function(_0x2d0c25,_0x4461e6){const _0xa95493=a416_0x5842a9;return _0x2d0c25[_0xa95493(0xda)]['id']&&delete _0x2d0c25['body']['id'],db[_0xa95493(0xde)]['findOne']({'where':{'id':_0x2d0c25[_0xa95493(0xf7)]['id']}})[_0xa95493(0xfa)](handleEntityNotFound(_0x4461e6,null))[_0xa95493(0xfa)](function(_0x42ec91){const _0x2052d1=_0xa95493;if(_0x42ec91)return _0x2d0c25[_0x2052d1(0xda)]['AccountId']=_0x42ec91['id'],_0x2d0c25[_0x2052d1(0xda)]['Subjects']=integrations['getSubjects'](_0x2d0c25[_0x2052d1(0xda)][_0x2052d1(0xec)],_0x2d0c25['body'][_0x2052d1(0xe7)]),_0x2d0c25['body'][_0x2052d1(0xbe)]=integrations[_0x2052d1(0xce)](_0x2d0c25[_0x2052d1(0xda)]['channel'],_0x2d0c25['body']['type']),db['ZohoConfiguration']['create'](_0x2d0c25['body'],{'include':[{'model':db[_0x2052d1(0xeb)],'as':'Subjects'},{'model':db[_0x2052d1(0xeb)],'as':_0x2052d1(0xbe)}]});return null;})['then'](respondWithResult(_0x4461e6,null))['catch'](handleError(_0x4461e6,null));};function getAccessToken(_0x5623e9){return new Promise(function(_0xbcc4b1,_0x3a64cb){const _0xbf3afe=a416_0x4d91;let _0x57de0c;switch(_0x5623e9[_0xbf3afe(0x107)]){case'US':_0x57de0c=_0xbf3afe(0xd9);break;case'AU':_0x57de0c=_0xbf3afe(0x114);break;case'EU':_0x57de0c=_0xbf3afe(0xef);break;case'IN':_0x57de0c=_0xbf3afe(0xf1);break;case'CN':_0x57de0c=_0xbf3afe(0xcb);break;default:_0x57de0c=_0xbf3afe(0xef);break;}const _0x1dd776={'method':'POST','uri':_0x57de0c+_0xbf3afe(0xd8),'qs':{'refresh_token':_0x5623e9[_0xbf3afe(0xd5)],'client_id':_0x5623e9[_0xbf3afe(0xf5)],'client_secret':_0x5623e9['clientSecret'],'grant_type':_0xbf3afe(0x106)},'json':!![]};return rp(_0x1dd776)[_0xbf3afe(0xfa)](function(_0x44e767){const _0x592e8a=_0xbf3afe;_0x44e767['access_token']?_0xbcc4b1(_0x44e767[_0x592e8a(0xd7)]):_0x3a64cb(_0x592e8a(0xcc));})[_0xbf3afe(0xb1)](function(_0x4ef202){_0x3a64cb(_0x4ef202);});});}exports[a416_0x5842a9(0xbf)]=function(_0x477efb,_0x192002){const _0x1631ca=a416_0x5842a9;let _0x439281,_0xe16bbc,_0x1a3bc3,_0x1c8c69;return db[_0x1631ca(0xde)][_0x1631ca(0xbd)]({'where':{'id':_0x477efb[_0x1631ca(0xf7)]['id']},'attributes':['id',_0x1631ca(0xe0),'zone','clientId','clientSecret',_0x1631ca(0x10c),_0x1631ca(0xdc),_0x1631ca(0xd5)]})[_0x1631ca(0xfa)](handleEntityNotFound(_0x192002,null))[_0x1631ca(0xfa)](function(_0x595887){const _0x1d64da=_0x1631ca;_0x1c8c69=_0x595887,_0x439281=_0x1c8c69[_0x1d64da(0xe0)],_0xe16bbc=_0x439281===_0x1d64da(0xc7)?'eu':_0x1d64da(0x10f),_0x1a3bc3=_0x1c8c69[_0x1d64da(0x10c)];const _0x3bac9a=_0x1a3bc3[_0x1d64da(0xf3)](-0x1);(_0x3bac9a==='/'||_0x3bac9a==='\x5c'||_0x3bac9a===':')&&(_0x1a3bc3=_0x1a3bc3[_0x1d64da(0xe3)](0x0,_0x1a3bc3['lastIndexOf'](_0x3bac9a)));if(!_0x1c8c69[_0x1d64da(0xd5)])throw new Error('Refresh\x20Token\x20not\x20available\x20for\x20the\x20account');return getAccessToken(_0x1c8c69);})[_0x1631ca(0xfa)](function(_0x324902){const _0x3b38f8=_0x1631ca;if(_0x324902)return rp({'method':'GET','uri':util['format']('https://www.zohoapis.%s/crm/v2/settings/fields',_0xe16bbc),'qs':{'module':_0x3b38f8(0xd2)},'headers':{'Authorization':_0x3b38f8(0xbb)+_0x324902},'json':!![]});})[_0x1631ca(0xfa)](function(_0xec81c){const _0x68a77a=_0x1631ca;if(_0xec81c){if(_0xec81c[_0x68a77a(0x101)]&&_0xec81c['response'][_0x68a77a(0xc2)])throw new Error(_0xec81c[_0x68a77a(0x101)][_0x68a77a(0xc2)][_0x68a77a(0xf2)]);const _0x5c837b=[];let _0x20999e=[];const _0x4efa41=['Owner',_0x68a77a(0xb6),_0x68a77a(0xe8),'WhoId',_0x68a77a(0xb5),_0x68a77a(0x112),_0x68a77a(0x113),_0x68a77a(0xdf)];_0x20999e=_[_0x68a77a(0xe5)](_0xec81c[_0x68a77a(0xdb)],function(_0xa77085){return _0x4efa41['includes'](_0xa77085['api_name']);});for(let _0x2ff347=0x0;_0x2ff347<_0x20999e[_0x68a77a(0xc8)];_0x2ff347++){_0x20999e[_0x2ff347][_0x68a77a(0xb3)]===![]&&_0x5c837b[_0x68a77a(0xb2)]({'id':_0x20999e[_0x2ff347]['id'],'name':_0x20999e[_0x2ff347][_0x68a77a(0xdd)],'custom':_0x20999e[_0x2ff347][_0x68a77a(0xc5)],'options':_0x20999e[_0x2ff347][_0x68a77a(0xd3)]==='picklist'&&_0x20999e[_0x2ff347][_0x68a77a(0xe1)][_0x68a77a(0xc8)]>-0x1?_[_0x68a77a(0xe6)](_0x20999e[_0x2ff347]['pick_list_values'],function(_0x9f8fe6){return{'name':_0x9f8fe6,'value':_0x9f8fe6};}):[]});}return{'count':_0x5c837b['length'],'rows':_0x5c837b};}else return{'count':0x0,'rows':[]};})['then'](respondWithResult(_0x192002,null))[_0x1631ca(0xb1)](function(_0x1678fc){const _0xe55753=_0x1631ca;let _0x3c7760=_0x477efb[_0xe55753(0xc4)][_0xe55753(0x10a)]?0x1f4:_0x1678fc[_0xe55753(0xf9)]||0x1f4;logger[_0xe55753(0xc2)]('getFields,\x20%s,\x20%s,\x20%s',_0xe55753(0xbf),_0x3c7760,JSON[_0xe55753(0x111)](_0x1678fc)),delete _0x1678fc[_0xe55753(0xf4)],_0x3c7760===0x191&&(_0x3c7760=0x190),_0x192002[_0xe55753(0xaf)](_0x3c7760)[_0xe55753(0xc1)](_0x477efb[_0xe55753(0xc4)]['test']?{'message':_0xe55753(0xea),'statusCode':_0x1678fc[_0xe55753(0xf9)]}:_0x1678fc);});}; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.model.js b/server/api/intZohoAccount/intZohoAccount.model.js index f2b6577..0079206 100644 --- a/server/api/intZohoAccount/intZohoAccount.model.js +++ b/server/api/intZohoAccount/intZohoAccount.model.js @@ -1 +1 @@ -const a417_0x5efb=['./intZohoAccount.attributes','sequelize','exports','init','function'];(function(_0x3916f9,_0x1f6ef5){const _0x5efbdb=function(_0x332459){while(--_0x332459){_0x3916f9['push'](_0x3916f9['shift']());}};_0x5efbdb(++_0x1f6ef5);}(a417_0x5efb,0x1a0));const a417_0x3324=function(_0x3916f9,_0x1f6ef5){_0x3916f9=_0x3916f9-0x19f;let _0x5efbdb=a417_0x5efb[_0x3916f9];return _0x5efbdb;};const a417_0x26200f=a417_0x3324;'use strict';const {Model}=require(a417_0x26200f(0x19f)),{attributes}=require(a417_0x26200f(0x1a3)),{options}=require('./intZohoAccount.options');class ZohoAccount extends Model{}function init(_0x44f857,_0x288a81){const _0x23615b=a417_0x26200f,_0xc18ac3=options(_0x44f857),_0x51b938=typeof _0x288a81===_0x23615b(0x1a2)?_0x288a81(_0xc18ac3):_0xc18ac3;return ZohoAccount[_0x23615b(0x1a1)](attributes,_0x51b938),ZohoAccount;}module[a417_0x26200f(0x1a0)]['ZohoAccount']=ZohoAccount,module[a417_0x26200f(0x1a0)]['init']=init; \ No newline at end of file +const a417_0x4a22=['ZohoAccount','function','./intZohoAccount.attributes','./intZohoAccount.options','exports','sequelize','init'];(function(_0x22f308,_0x105dd6){const _0x4a2245=function(_0x32f141){while(--_0x32f141){_0x22f308['push'](_0x22f308['shift']());}};_0x4a2245(++_0x105dd6);}(a417_0x4a22,0x1f4));const a417_0x32f1=function(_0x22f308,_0x105dd6){_0x22f308=_0x22f308-0x138;let _0x4a2245=a417_0x4a22[_0x22f308];return _0x4a2245;};const a417_0x52ac9b=a417_0x32f1;'use strict';const {Model}=require(a417_0x52ac9b(0x13a)),{attributes}=require(a417_0x52ac9b(0x13e)),{options}=require(a417_0x52ac9b(0x138));class ZohoAccount extends Model{}function init(_0x541172,_0x3aafd2){const _0x1fb7f4=a417_0x52ac9b,_0x2424d7=options(_0x541172),_0x17a8c5=typeof _0x3aafd2===_0x1fb7f4(0x13d)?_0x3aafd2(_0x2424d7):_0x2424d7;return ZohoAccount[_0x1fb7f4(0x13b)](attributes,_0x17a8c5),ZohoAccount;}module[a417_0x52ac9b(0x139)][a417_0x52ac9b(0x13c)]=ZohoAccount,module['exports'][a417_0x52ac9b(0x13b)]=init; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.options.js b/server/api/intZohoAccount/intZohoAccount.options.js index 636d519..87d1a6f 100644 --- a/server/api/intZohoAccount/intZohoAccount.options.js +++ b/server/api/intZohoAccount/intZohoAccount.options.js @@ -1 +1 @@ -const a418_0x2483=['clientId','ZohoAccount,\x20Refresh\x20token\x20successfully\x20generated\x20for\x20account\x20\x22%s\x22\x20#%d','/oauth/v2/token','catch','int_zoho_accounts','clientSecret','https://accounts.zoho.com.au','serverUrl','options','parse','https://accounts.zoho.com','host','lastIndexOf','https://accounts.zoho.in','request-promise-native','https://accounts.zoho.com.cn','exports','code','inspect','then','substring','application/x-www-form-urlencoded','ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d','refresh_token','refreshToken','name','authorization_code','error','https://accounts.zoho.eu','info','changed','util','slice','format','../../config/logger','api','zone'];(function(_0x3848fd,_0xba525e){const _0x2483c2=function(_0xa9e4d0){while(--_0xa9e4d0){_0x3848fd['push'](_0x3848fd['shift']());}};_0x2483c2(++_0xba525e);}(a418_0x2483,0xfb));const a418_0xa9e4=function(_0x3848fd,_0xba525e){_0x3848fd=_0x3848fd-0x142;let _0x2483c2=a418_0x2483[_0x3848fd];return _0x2483c2;};const a418_0x3c69a8=a418_0xa9e4,util=require(a418_0x3c69a8(0x144)),rp=require(a418_0x3c69a8(0x158)),logger=require(a418_0x3c69a8(0x147))(a418_0x3c69a8(0x148));function options(_0x4edd2e){const _0x219e78=a418_0x3c69a8;return{'sequelize':_0x4edd2e,'tableName':_0x219e78(0x14e),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeCreate':function(_0x250eb9){const _0x21fe9f=_0x219e78;if(_0x250eb9[_0x21fe9f(0x143)](_0x21fe9f(0x149))||_0x250eb9[_0x21fe9f(0x143)](_0x21fe9f(0x151))||_0x250eb9[_0x21fe9f(0x143)](_0x21fe9f(0x14a))||_0x250eb9[_0x21fe9f(0x143)](_0x21fe9f(0x14f))||_0x250eb9[_0x21fe9f(0x143)]('code')||_0x250eb9[_0x21fe9f(0x143)](_0x21fe9f(0x155))){let _0x569826,_0x1758f0;_0x569826=_0x250eb9[_0x21fe9f(0x151)];const _0x1e8cb7=_0x569826[_0x21fe9f(0x145)](-0x1);(_0x1e8cb7==='/'||_0x1e8cb7==='\x5c'||_0x1e8cb7===':')&&(_0x569826=_0x569826[_0x21fe9f(0x15e)](0x0,_0x569826[_0x21fe9f(0x156)](_0x1e8cb7)));switch(_0x250eb9[_0x21fe9f(0x149)]){case'US':_0x1758f0=_0x21fe9f(0x154);break;case'AU':_0x1758f0=_0x21fe9f(0x150);break;case'IN':_0x1758f0=_0x21fe9f(0x157);break;case'CN':_0x1758f0='https://accounts.zoho.com.cn';break;default:_0x1758f0=_0x21fe9f(0x166);break;}const _0x1ad3ee={'method':'POST','uri':_0x1758f0+_0x21fe9f(0x14c),'form':{'grant_type':_0x21fe9f(0x164),'client_id':_0x250eb9['clientId'],'client_secret':_0x250eb9[_0x21fe9f(0x14f)],'redirect_uri':_0x250eb9[_0x21fe9f(0x151)],'code':_0x250eb9[_0x21fe9f(0x15b)]},'headers':{'Content-Type':_0x21fe9f(0x15f)}};return rp(_0x1ad3ee)[_0x21fe9f(0x15d)](function(_0x522976){const _0x2c63da=_0x21fe9f,_0xcdf755=JSON[_0x2c63da(0x153)](_0x522976);_0xcdf755[_0x2c63da(0x161)]?(_0x250eb9[_0x2c63da(0x162)]=_0xcdf755['refresh_token'],logger[_0x2c63da(0x142)](util[_0x2c63da(0x146)](_0x2c63da(0x14b),_0x250eb9[_0x2c63da(0x163)],_0x250eb9['id']))):logger[_0x2c63da(0x165)](util[_0x2c63da(0x146)](_0x2c63da(0x160),_0x250eb9[_0x2c63da(0x163)],_0x250eb9['id']),util[_0x2c63da(0x15c)](_0xcdf755,{'showHidden':![],'depth':null}));})[_0x21fe9f(0x14d)](function(_0x1c0c3d){const _0x2aa5ed=_0x21fe9f;logger[_0x2aa5ed(0x165)](util[_0x2aa5ed(0x146)]('ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d',_0x250eb9[_0x2aa5ed(0x163)],_0x250eb9['id']));throw _0x1c0c3d;});}},'beforeUpdate':function(_0x12c1bb){const _0x8d37d8=_0x219e78;if(_0x12c1bb[_0x8d37d8(0x143)](_0x8d37d8(0x149))||_0x12c1bb[_0x8d37d8(0x143)]('serverUrl')||_0x12c1bb[_0x8d37d8(0x143)](_0x8d37d8(0x14a))||_0x12c1bb['changed'](_0x8d37d8(0x14f))||_0x12c1bb[_0x8d37d8(0x143)](_0x8d37d8(0x15b))||_0x12c1bb[_0x8d37d8(0x143)](_0x8d37d8(0x155))){let _0x729064,_0xb544f4;_0x729064=_0x12c1bb[_0x8d37d8(0x151)];const _0x42977f=_0x729064[_0x8d37d8(0x145)](-0x1);(_0x42977f==='/'||_0x42977f==='\x5c'||_0x42977f===':')&&(_0x729064=_0x729064[_0x8d37d8(0x15e)](0x0,_0x729064['lastIndexOf'](_0x42977f)));switch(_0x12c1bb[_0x8d37d8(0x149)]){case'US':_0xb544f4='https://accounts.zoho.com';break;case'AU':_0xb544f4=_0x8d37d8(0x150);break;case'IN':_0xb544f4=_0x8d37d8(0x157);break;case'CN':_0xb544f4=_0x8d37d8(0x159);break;default:_0xb544f4=_0x8d37d8(0x166);break;}const _0x215992={'method':'POST','uri':_0xb544f4+_0x8d37d8(0x14c),'form':{'grant_type':'authorization_code','client_id':_0x12c1bb[_0x8d37d8(0x14a)],'client_secret':_0x12c1bb[_0x8d37d8(0x14f)],'redirect_uri':_0x12c1bb[_0x8d37d8(0x151)],'code':_0x12c1bb['code']},'headers':{'Content-Type':_0x8d37d8(0x15f)}};return rp(_0x215992)[_0x8d37d8(0x15d)](function(_0x522841){const _0x1fb9d5=_0x8d37d8,_0x43b240=JSON[_0x1fb9d5(0x153)](_0x522841);_0x43b240['refresh_token']?(_0x12c1bb[_0x1fb9d5(0x162)]=_0x43b240[_0x1fb9d5(0x161)],logger[_0x1fb9d5(0x142)](util[_0x1fb9d5(0x146)](_0x1fb9d5(0x14b),_0x12c1bb[_0x1fb9d5(0x163)],_0x12c1bb['id']))):logger['error'](util[_0x1fb9d5(0x146)](_0x1fb9d5(0x160),_0x12c1bb[_0x1fb9d5(0x163)],_0x12c1bb['id']),util['inspect'](_0x43b240,{'showHidden':![],'depth':null}));})[_0x8d37d8(0x14d)](function(_0x4a340d){const _0x11fad0=_0x8d37d8;logger[_0x11fad0(0x165)](util['format']('ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d',_0x12c1bb['name'],_0x12c1bb['id']));throw _0x4a340d;});}}}};}module[a418_0x3c69a8(0x15a)][a418_0x3c69a8(0x152)]=options; \ No newline at end of file +const a418_0x4a2e=['error','inspect','https://accounts.zoho.com','substring','https://accounts.zoho.com.cn','refreshToken','https://accounts.zoho.in','then','request-promise-native','slice','info','host','code','lastIndexOf','/oauth/v2/token','util','authorization_code','application/x-www-form-urlencoded','changed','format','clientId','name','catch','ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d','parse','https://accounts.zoho.com.au','zone','clientSecret','refresh_token','serverUrl'];(function(_0x2a2c0d,_0x5c7ee5){const _0x4a2ec3=function(_0x55bc3a){while(--_0x55bc3a){_0x2a2c0d['push'](_0x2a2c0d['shift']());}};_0x4a2ec3(++_0x5c7ee5);}(a418_0x4a2e,0x139));const a418_0x55bc=function(_0x2a2c0d,_0x5c7ee5){_0x2a2c0d=_0x2a2c0d-0x1f4;let _0x4a2ec3=a418_0x4a2e[_0x2a2c0d];return _0x4a2ec3;};const a418_0x12d0fe=a418_0x55bc,util=require(a418_0x12d0fe(0x1f6)),rp=require(a418_0x12d0fe(0x20d)),logger=require('../../config/logger')('api');function options(_0x577b50){return{'sequelize':_0x577b50,'tableName':'int_zoho_accounts','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeCreate':function(_0x2405b4){const _0x404524=a418_0x55bc;if(_0x2405b4[_0x404524(0x1f9)](_0x404524(0x201))||_0x2405b4['changed'](_0x404524(0x204))||_0x2405b4[_0x404524(0x1f9)](_0x404524(0x1fb))||_0x2405b4[_0x404524(0x1f9)](_0x404524(0x202))||_0x2405b4['changed'](_0x404524(0x211))||_0x2405b4[_0x404524(0x1f9)]('host')){let _0x5a1156,_0x5f4630;_0x5a1156=_0x2405b4[_0x404524(0x204)];const _0x1de1ee=_0x5a1156[_0x404524(0x20e)](-0x1);(_0x1de1ee==='/'||_0x1de1ee==='\x5c'||_0x1de1ee===':')&&(_0x5a1156=_0x5a1156['substring'](0x0,_0x5a1156[_0x404524(0x1f4)](_0x1de1ee)));switch(_0x2405b4[_0x404524(0x201)]){case'US':_0x5f4630='https://accounts.zoho.com';break;case'AU':_0x5f4630='https://accounts.zoho.com.au';break;case'IN':_0x5f4630=_0x404524(0x20b);break;case'CN':_0x5f4630='https://accounts.zoho.com.cn';break;default:_0x5f4630='https://accounts.zoho.eu';break;}const _0x5bd1e9={'method':'POST','uri':_0x5f4630+_0x404524(0x1f5),'form':{'grant_type':_0x404524(0x1f7),'client_id':_0x2405b4[_0x404524(0x1fb)],'client_secret':_0x2405b4[_0x404524(0x202)],'redirect_uri':_0x2405b4[_0x404524(0x204)],'code':_0x2405b4[_0x404524(0x211)]},'headers':{'Content-Type':'application/x-www-form-urlencoded'}};return rp(_0x5bd1e9)[_0x404524(0x20c)](function(_0x5f2537){const _0x5a11f8=_0x404524,_0x3cf157=JSON[_0x5a11f8(0x1ff)](_0x5f2537);_0x3cf157[_0x5a11f8(0x203)]?(_0x2405b4[_0x5a11f8(0x20a)]=_0x3cf157[_0x5a11f8(0x203)],logger[_0x5a11f8(0x20f)](util[_0x5a11f8(0x1fa)]('ZohoAccount,\x20Refresh\x20token\x20successfully\x20generated\x20for\x20account\x20\x22%s\x22\x20#%d',_0x2405b4[_0x5a11f8(0x1fc)],_0x2405b4['id']))):logger[_0x5a11f8(0x205)](util[_0x5a11f8(0x1fa)](_0x5a11f8(0x1fe),_0x2405b4['name'],_0x2405b4['id']),util[_0x5a11f8(0x206)](_0x3cf157,{'showHidden':![],'depth':null}));})[_0x404524(0x1fd)](function(_0x2391e5){const _0x5f0570=_0x404524;logger[_0x5f0570(0x205)](util['format'](_0x5f0570(0x1fe),_0x2405b4[_0x5f0570(0x1fc)],_0x2405b4['id']));throw _0x2391e5;});}},'beforeUpdate':function(_0x94c481){const _0x540ad8=a418_0x55bc;if(_0x94c481['changed'](_0x540ad8(0x201))||_0x94c481['changed'](_0x540ad8(0x204))||_0x94c481[_0x540ad8(0x1f9)](_0x540ad8(0x1fb))||_0x94c481[_0x540ad8(0x1f9)](_0x540ad8(0x202))||_0x94c481['changed'](_0x540ad8(0x211))||_0x94c481['changed'](_0x540ad8(0x210))){let _0x131e75,_0x2b0b71;_0x131e75=_0x94c481[_0x540ad8(0x204)];const _0x387489=_0x131e75[_0x540ad8(0x20e)](-0x1);(_0x387489==='/'||_0x387489==='\x5c'||_0x387489===':')&&(_0x131e75=_0x131e75[_0x540ad8(0x208)](0x0,_0x131e75[_0x540ad8(0x1f4)](_0x387489)));switch(_0x94c481[_0x540ad8(0x201)]){case'US':_0x2b0b71=_0x540ad8(0x207);break;case'AU':_0x2b0b71=_0x540ad8(0x200);break;case'IN':_0x2b0b71=_0x540ad8(0x20b);break;case'CN':_0x2b0b71=_0x540ad8(0x209);break;default:_0x2b0b71='https://accounts.zoho.eu';break;}const _0x98d7={'method':'POST','uri':_0x2b0b71+'/oauth/v2/token','form':{'grant_type':'authorization_code','client_id':_0x94c481['clientId'],'client_secret':_0x94c481[_0x540ad8(0x202)],'redirect_uri':_0x94c481[_0x540ad8(0x204)],'code':_0x94c481['code']},'headers':{'Content-Type':_0x540ad8(0x1f8)}};return rp(_0x98d7)[_0x540ad8(0x20c)](function(_0x57cc96){const _0xf41a3f=_0x540ad8,_0x5695c1=JSON[_0xf41a3f(0x1ff)](_0x57cc96);_0x5695c1['refresh_token']?(_0x94c481['refreshToken']=_0x5695c1['refresh_token'],logger[_0xf41a3f(0x20f)](util[_0xf41a3f(0x1fa)]('ZohoAccount,\x20Refresh\x20token\x20successfully\x20generated\x20for\x20account\x20\x22%s\x22\x20#%d',_0x94c481['name'],_0x94c481['id']))):logger[_0xf41a3f(0x205)](util[_0xf41a3f(0x1fa)](_0xf41a3f(0x1fe),_0x94c481[_0xf41a3f(0x1fc)],_0x94c481['id']),util[_0xf41a3f(0x206)](_0x5695c1,{'showHidden':![],'depth':null}));})[_0x540ad8(0x1fd)](function(_0x1ea2eb){const _0x5c082a=_0x540ad8;logger[_0x5c082a(0x205)](util['format'](_0x5c082a(0x1fe),_0x94c481[_0x5c082a(0x1fc)],_0x94c481['id']));throw _0x1ea2eb;});}}}};}module['exports']['options']=options; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.rpc.js b/server/api/intZohoAccount/intZohoAccount.rpc.js index a3c0cfe..c7c3cb6 100644 --- a/server/api/intZohoAccount/intZohoAccount.rpc.js +++ b/server/api/intZohoAccount/intZohoAccount.rpc.js @@ -1 +1 @@ -const a419_0x36ab=['where','include','findOne','../../config/logger','message','then','findAll','rpc','attributes','../../mysqldb','info','catch','error','raw','debug','map','stringify','options','model','ZohoAccount','ShowZohoAccount','GetZohoAccount'];(function(_0x5e69ec,_0x10c51c){const _0x36ab5d=function(_0x1524c2){while(--_0x1524c2){_0x5e69ec['push'](_0x5e69ec['shift']());}};_0x36ab5d(++_0x10c51c);}(a419_0x36ab,0x1cd));const a419_0x1524=function(_0x5e69ec,_0x10c51c){_0x5e69ec=_0x5e69ec-0x16a;let _0x36ab5d=a419_0x36ab[_0x5e69ec];return _0x36ab5d;};const a419_0x4b27e5=a419_0x1524;'use strict';const _=require('lodash'),db=require(a419_0x4b27e5(0x174))['db'],logger=require(a419_0x4b27e5(0x16e))(a419_0x4b27e5(0x172));exports['GetZohoAccount']=function(_0x2f6265){const _0x183548=this;return new Promise(function(_0x3dd9c9,_0x4fa4a5){const _0x41da18=a419_0x1524;return db[_0x41da18(0x17e)][_0x41da18(0x171)]({'raw':_0x2f6265[_0x41da18(0x17c)]?_0x2f6265[_0x41da18(0x17c)][_0x41da18(0x178)]===undefined?!![]:![]:!![],'where':_0x2f6265[_0x41da18(0x17c)]?_0x2f6265['options'][_0x41da18(0x16b)]||null:null,'attributes':_0x2f6265[_0x41da18(0x17c)]?_0x2f6265[_0x41da18(0x17c)][_0x41da18(0x173)]||null:null,'limit':_0x2f6265[_0x41da18(0x17c)]?_0x2f6265['options']['limit']||null:null,'include':_0x2f6265[_0x41da18(0x17c)]?_0x2f6265[_0x41da18(0x17c)][_0x41da18(0x16c)]?_['map'](_0x2f6265[_0x41da18(0x17c)][_0x41da18(0x16c)],function(_0x1d5919){const _0x4ab722=_0x41da18;return{'model':db[_0x1d5919[_0x4ab722(0x17d)]],'as':_0x1d5919['as'],'attributes':_0x1d5919[_0x4ab722(0x173)],'include':_0x1d5919[_0x4ab722(0x16c)]?_[_0x4ab722(0x17a)](_0x1d5919['include'],function(_0x49818e){const _0x1139b0=_0x4ab722;return{'model':db[_0x49818e[_0x1139b0(0x17d)]],'as':_0x49818e['as'],'attributes':_0x49818e[_0x1139b0(0x173)],'include':_0x49818e[_0x1139b0(0x16c)]?_['map'](_0x49818e[_0x1139b0(0x16c)],function(_0x42f0b8){const _0x1aa151=_0x1139b0;return{'model':db[_0x42f0b8['model']],'as':_0x42f0b8['as'],'attributes':_0x42f0b8[_0x1aa151(0x173)]};}):[]};}):[]};}):[]:[]})['then'](function(_0xa50361){const _0x518e0b=_0x41da18;logger[_0x518e0b(0x175)](_0x518e0b(0x16a),_0x2f6265),logger[_0x518e0b(0x179)](_0x518e0b(0x16a),_0x2f6265,JSON[_0x518e0b(0x17b)](_0xa50361)),_0x3dd9c9(_0xa50361);})[_0x41da18(0x176)](function(_0x4a8a56){const _0x2dbceb=_0x41da18;logger[_0x2dbceb(0x177)](_0x2dbceb(0x16a),_0x4a8a56['message'],_0x2f6265),_0x4fa4a5(_0x183548[_0x2dbceb(0x177)](0x1f4,_0x4a8a56[_0x2dbceb(0x16f)]));});});},exports[a419_0x4b27e5(0x17f)]=function(_0x55326d){const _0x23919f=this;return new Promise(function(_0x18ce51,_0x5d580b){const _0x331a4e=a419_0x1524;return db['ZohoAccount'][_0x331a4e(0x16d)]({'raw':_0x55326d[_0x331a4e(0x17c)]?_0x55326d[_0x331a4e(0x17c)][_0x331a4e(0x178)]===undefined?!![]:![]:!![],'where':_0x55326d[_0x331a4e(0x17c)]?_0x55326d[_0x331a4e(0x17c)]['where']||null:null,'attributes':_0x55326d['options']?_0x55326d[_0x331a4e(0x17c)]['attributes']||null:null,'include':_0x55326d[_0x331a4e(0x17c)]?_0x55326d[_0x331a4e(0x17c)][_0x331a4e(0x16c)]?_[_0x331a4e(0x17a)](_0x55326d[_0x331a4e(0x17c)]['include'],function(_0x50c823){const _0x451eef=_0x331a4e;return{'model':db[_0x50c823['model']],'as':_0x50c823['as'],'attributes':_0x50c823[_0x451eef(0x173)],'include':_0x50c823[_0x451eef(0x16c)]?_[_0x451eef(0x17a)](_0x50c823[_0x451eef(0x16c)],function(_0x5ad769){const _0x23e824=_0x451eef;return{'model':db[_0x5ad769[_0x23e824(0x17d)]],'as':_0x5ad769['as'],'attributes':_0x5ad769[_0x23e824(0x173)],'include':_0x5ad769['include']?_['map'](_0x5ad769[_0x23e824(0x16c)],function(_0x18bc53){const _0x980848=_0x23e824;return{'model':db[_0x18bc53[_0x980848(0x17d)]],'as':_0x18bc53['as'],'attributes':_0x18bc53['attributes']};}):[]};}):[]};}):[]:[]})[_0x331a4e(0x170)](function(_0x580b95){const _0x272786=_0x331a4e;logger['info'](_0x272786(0x17f),_0x55326d),logger['debug'](_0x272786(0x17f),_0x55326d,JSON['stringify'](_0x580b95)),_0x18ce51(_0x580b95);})[_0x331a4e(0x176)](function(_0x4fe6eb){const _0x1483eb=_0x331a4e;logger['error']('ShowZohoAccount',_0x4fe6eb[_0x1483eb(0x16f)],_0x55326d),_0x5d580b(_0x23919f[_0x1483eb(0x177)](0x1f4,_0x4fe6eb[_0x1483eb(0x16f)]));});});}; \ No newline at end of file +const a419_0x3939=['raw','catch','model','limit','where','debug','ZohoAccount','message','options','findAll','ShowZohoAccount','rpc','findOne','attributes','map','GetZohoAccount','then','../../mysqldb','info','../../config/logger','error','stringify','include'];(function(_0x49e4a5,_0x2751a9){const _0x393993=function(_0x12dff0){while(--_0x12dff0){_0x49e4a5['push'](_0x49e4a5['shift']());}};_0x393993(++_0x2751a9);}(a419_0x3939,0x1a8));const a419_0x12df=function(_0x49e4a5,_0x2751a9){_0x49e4a5=_0x49e4a5-0x17c;let _0x393993=a419_0x3939[_0x49e4a5];return _0x393993;};const a419_0x67569d=a419_0x12df;'use strict';const _=require('lodash'),db=require(a419_0x67569d(0x183))['db'],logger=require(a419_0x67569d(0x185))(a419_0x67569d(0x17d));exports['GetZohoAccount']=function(_0x194008){const _0x3e8b9b=this;return new Promise(function(_0x59935a,_0x47bce2){const _0x181baf=a419_0x12df;return db[_0x181baf(0x18f)][_0x181baf(0x192)]({'raw':_0x194008[_0x181baf(0x191)]?_0x194008[_0x181baf(0x191)][_0x181baf(0x189)]===undefined?!![]:![]:!![],'where':_0x194008[_0x181baf(0x191)]?_0x194008[_0x181baf(0x191)][_0x181baf(0x18d)]||null:null,'attributes':_0x194008[_0x181baf(0x191)]?_0x194008[_0x181baf(0x191)][_0x181baf(0x17f)]||null:null,'limit':_0x194008['options']?_0x194008['options'][_0x181baf(0x18c)]||null:null,'include':_0x194008['options']?_0x194008[_0x181baf(0x191)][_0x181baf(0x188)]?_[_0x181baf(0x180)](_0x194008[_0x181baf(0x191)][_0x181baf(0x188)],function(_0x3bd996){const _0x2f47c8=_0x181baf;return{'model':db[_0x3bd996['model']],'as':_0x3bd996['as'],'attributes':_0x3bd996[_0x2f47c8(0x17f)],'include':_0x3bd996['include']?_[_0x2f47c8(0x180)](_0x3bd996[_0x2f47c8(0x188)],function(_0x2d5288){const _0x475cd8=_0x2f47c8;return{'model':db[_0x2d5288[_0x475cd8(0x18b)]],'as':_0x2d5288['as'],'attributes':_0x2d5288[_0x475cd8(0x17f)],'include':_0x2d5288[_0x475cd8(0x188)]?_[_0x475cd8(0x180)](_0x2d5288[_0x475cd8(0x188)],function(_0x254877){const _0x310df7=_0x475cd8;return{'model':db[_0x254877[_0x310df7(0x18b)]],'as':_0x254877['as'],'attributes':_0x254877[_0x310df7(0x17f)]};}):[]};}):[]};}):[]:[]})[_0x181baf(0x182)](function(_0x198988){const _0x22bf34=_0x181baf;logger[_0x22bf34(0x184)]('GetZohoAccount',_0x194008),logger[_0x22bf34(0x18e)](_0x22bf34(0x181),_0x194008,JSON[_0x22bf34(0x187)](_0x198988)),_0x59935a(_0x198988);})[_0x181baf(0x18a)](function(_0x3af887){const _0x1e63b2=_0x181baf;logger[_0x1e63b2(0x186)](_0x1e63b2(0x181),_0x3af887[_0x1e63b2(0x190)],_0x194008),_0x47bce2(_0x3e8b9b[_0x1e63b2(0x186)](0x1f4,_0x3af887[_0x1e63b2(0x190)]));});});},exports[a419_0x67569d(0x17c)]=function(_0x4b4a){const _0x3ae50a=this;return new Promise(function(_0x4483f7,_0x18a7be){const _0xee52ad=a419_0x12df;return db['ZohoAccount'][_0xee52ad(0x17e)]({'raw':_0x4b4a['options']?_0x4b4a[_0xee52ad(0x191)][_0xee52ad(0x189)]===undefined?!![]:![]:!![],'where':_0x4b4a[_0xee52ad(0x191)]?_0x4b4a[_0xee52ad(0x191)][_0xee52ad(0x18d)]||null:null,'attributes':_0x4b4a[_0xee52ad(0x191)]?_0x4b4a[_0xee52ad(0x191)][_0xee52ad(0x17f)]||null:null,'include':_0x4b4a[_0xee52ad(0x191)]?_0x4b4a[_0xee52ad(0x191)]['include']?_[_0xee52ad(0x180)](_0x4b4a['options'][_0xee52ad(0x188)],function(_0x5af216){const _0x38c325=_0xee52ad;return{'model':db[_0x5af216[_0x38c325(0x18b)]],'as':_0x5af216['as'],'attributes':_0x5af216[_0x38c325(0x17f)],'include':_0x5af216[_0x38c325(0x188)]?_[_0x38c325(0x180)](_0x5af216[_0x38c325(0x188)],function(_0x5f0e1a){const _0x3838f7=_0x38c325;return{'model':db[_0x5f0e1a[_0x3838f7(0x18b)]],'as':_0x5f0e1a['as'],'attributes':_0x5f0e1a['attributes'],'include':_0x5f0e1a[_0x3838f7(0x188)]?_[_0x3838f7(0x180)](_0x5f0e1a['include'],function(_0x1f2ad0){const _0x3b1b69=_0x3838f7;return{'model':db[_0x1f2ad0['model']],'as':_0x1f2ad0['as'],'attributes':_0x1f2ad0[_0x3b1b69(0x17f)]};}):[]};}):[]};}):[]:[]})[_0xee52ad(0x182)](function(_0xd7b1ff){const _0x16c346=_0xee52ad;logger[_0x16c346(0x184)](_0x16c346(0x17c),_0x4b4a),logger[_0x16c346(0x18e)](_0x16c346(0x17c),_0x4b4a,JSON[_0x16c346(0x187)](_0xd7b1ff)),_0x4483f7(_0xd7b1ff);})[_0xee52ad(0x18a)](function(_0x5a41e4){const _0x35f268=_0xee52ad;logger[_0x35f268(0x186)](_0x35f268(0x17c),_0x5a41e4[_0x35f268(0x190)],_0x4b4a),_0x18a7be(_0x3ae50a['error'](0x1f4,_0x5a41e4[_0x35f268(0x190)]));});});}; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/index.js b/server/api/intZohoConfiguration/index.js index bc9a812..a22d24c 100644 --- a/server/api/intZohoConfiguration/index.js +++ b/server/api/intZohoConfiguration/index.js @@ -1 +1 @@ -const a420_0x3b76=['express','isAuthenticated','destroy','index','put','./intZohoConfiguration.controller','getDescriptions','exports','/:id','/:id/subjects','../../components/auth/service','getFields','get','/:id/descriptions','/:id/fields','update','delete','create','getSubjects'];(function(_0x4a0b21,_0xf70247){const _0x3b761f=function(_0x416ea2){while(--_0x416ea2){_0x4a0b21['push'](_0x4a0b21['shift']());}};_0x3b761f(++_0xf70247);}(a420_0x3b76,0xa8));const a420_0x416e=function(_0x4a0b21,_0xf70247){_0x4a0b21=_0x4a0b21-0x167;let _0x3b761f=a420_0x3b76[_0x4a0b21];return _0x3b761f;};const a420_0xdfdd36=a420_0x416e;'use strict';const express=require(a420_0xdfdd36(0x16a)),router=express['Router'](),auth=require(a420_0xdfdd36(0x174)),controller=require(a420_0xdfdd36(0x16f));router[a420_0xdfdd36(0x176)]('/',auth[a420_0xdfdd36(0x16b)](),controller[a420_0xdfdd36(0x16d)]),router['get']('/:id',auth[a420_0xdfdd36(0x16b)](),controller['show']),router[a420_0xdfdd36(0x176)](a420_0xdfdd36(0x178),auth[a420_0xdfdd36(0x16b)](),controller[a420_0xdfdd36(0x175)]),router[a420_0xdfdd36(0x176)](a420_0xdfdd36(0x173),auth[a420_0xdfdd36(0x16b)](),controller[a420_0xdfdd36(0x169)]),router[a420_0xdfdd36(0x176)](a420_0xdfdd36(0x177),auth[a420_0xdfdd36(0x16b)](),controller[a420_0xdfdd36(0x170)]),router['post']('/',auth[a420_0xdfdd36(0x16b)](),controller[a420_0xdfdd36(0x168)]),router[a420_0xdfdd36(0x16e)](a420_0xdfdd36(0x172),auth[a420_0xdfdd36(0x16b)](),controller[a420_0xdfdd36(0x179)]),router[a420_0xdfdd36(0x167)](a420_0xdfdd36(0x172),auth[a420_0xdfdd36(0x16b)](),controller[a420_0xdfdd36(0x16c)]),module[a420_0xdfdd36(0x171)]=router; \ No newline at end of file +const a420_0x39b7=['getDescriptions','express','Router','create','getSubjects','./intZohoConfiguration.controller','delete','isAuthenticated','post','exports','put','show','/:id/subjects','update','get','/:id','../../components/auth/service','/:id/fields'];(function(_0x10b5c0,_0x5039dd){const _0x39b7a8=function(_0x5c5d0e){while(--_0x5c5d0e){_0x10b5c0['push'](_0x10b5c0['shift']());}};_0x39b7a8(++_0x5039dd);}(a420_0x39b7,0x18b));const a420_0x5c5d=function(_0x10b5c0,_0x5039dd){_0x10b5c0=_0x10b5c0-0xec;let _0x39b7a8=a420_0x39b7[_0x10b5c0];return _0x39b7a8;};const a420_0xbb1b20=a420_0x5c5d;'use strict';const express=require(a420_0xbb1b20(0xee)),router=express[a420_0xbb1b20(0xef)](),auth=require(a420_0xbb1b20(0xfd)),controller=require(a420_0xbb1b20(0xf2));router['get']('/',auth[a420_0xbb1b20(0xf4)](),controller['index']),router[a420_0xbb1b20(0xfb)](a420_0xbb1b20(0xfc),auth[a420_0xbb1b20(0xf4)](),controller[a420_0xbb1b20(0xf8)]),router['get'](a420_0xbb1b20(0xec),auth[a420_0xbb1b20(0xf4)](),controller['getFields']),router[a420_0xbb1b20(0xfb)](a420_0xbb1b20(0xf9),auth[a420_0xbb1b20(0xf4)](),controller[a420_0xbb1b20(0xf1)]),router[a420_0xbb1b20(0xfb)]('/:id/descriptions',auth[a420_0xbb1b20(0xf4)](),controller[a420_0xbb1b20(0xed)]),router[a420_0xbb1b20(0xf5)]('/',auth[a420_0xbb1b20(0xf4)](),controller[a420_0xbb1b20(0xf0)]),router[a420_0xbb1b20(0xf7)](a420_0xbb1b20(0xfc),auth[a420_0xbb1b20(0xf4)](),controller[a420_0xbb1b20(0xfa)]),router[a420_0xbb1b20(0xf3)]('/:id',auth[a420_0xbb1b20(0xf4)](),controller['destroy']),module[a420_0xbb1b20(0xf6)]=router; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js b/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js index 4b57098..b96635f 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js @@ -1 +1 @@ -const a421_0x363a=['lead','contact_lead','STRING','attributes','contact','exports','sequelize'];(function(_0x56f3d4,_0x1d41f1){const _0x363a59=function(_0x4a9291){while(--_0x4a9291){_0x56f3d4['push'](_0x56f3d4['shift']());}};_0x363a59(++_0x1d41f1);}(a421_0x363a,0xfb));const a421_0x4a92=function(_0x56f3d4,_0x1d41f1){_0x56f3d4=_0x56f3d4-0xe6;let _0x363a59=a421_0x363a[_0x56f3d4];return _0x363a59;};const a421_0x321f8b=a421_0x4a92;'use strict';const {DataTypes}=require(a421_0x321f8b(0xe6)),attributes={'name':{'type':DataTypes[a421_0x321f8b(0xe9)]},'moduleCreate':{'type':DataTypes['ENUM']('lead',a421_0x321f8b(0xeb),'nothing'),'defaultValue':a421_0x321f8b(0xe7)},'moduleSearch':{'type':DataTypes['ENUM']('contact_lead',a421_0x321f8b(0xeb),a421_0x321f8b(0xe7)),'defaultValue':a421_0x321f8b(0xe8)},'description':{'type':DataTypes[a421_0x321f8b(0xe9)]}};module[a421_0x321f8b(0xec)][a421_0x321f8b(0xea)]=attributes; \ No newline at end of file +const a421_0x3e1a=['STRING','contact_lead','ENUM','contact','lead','exports','attributes','sequelize','nothing'];(function(_0xe69ac3,_0x26fb26){const _0x3e1a12=function(_0x2b4596){while(--_0x2b4596){_0xe69ac3['push'](_0xe69ac3['shift']());}};_0x3e1a12(++_0x26fb26);}(a421_0x3e1a,0xc8));const a421_0x2b45=function(_0xe69ac3,_0x26fb26){_0xe69ac3=_0xe69ac3-0x169;let _0x3e1a12=a421_0x3e1a[_0xe69ac3];return _0x3e1a12;};const a421_0x1b4100=a421_0x2b45;'use strict';const {DataTypes}=require(a421_0x1b4100(0x16e)),attributes={'name':{'type':DataTypes[a421_0x1b4100(0x170)]},'moduleCreate':{'type':DataTypes[a421_0x1b4100(0x169)](a421_0x1b4100(0x16b),a421_0x1b4100(0x16a),a421_0x1b4100(0x16f)),'defaultValue':a421_0x1b4100(0x16b)},'moduleSearch':{'type':DataTypes[a421_0x1b4100(0x169)](a421_0x1b4100(0x171),a421_0x1b4100(0x16a),a421_0x1b4100(0x16b)),'defaultValue':'contact_lead'},'description':{'type':DataTypes[a421_0x1b4100(0x170)]}};module[a421_0x1b4100(0x16c)][a421_0x1b4100(0x16d)]=attributes; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.controller.js b/server/api/intZohoConfiguration/intZohoConfiguration.controller.js index ecd2f53..9911e12 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.controller.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.controller.js @@ -1 +1 @@ -const a422_0xd071=['sequelize','findAll','show','../../mysqldb','error','intersection','options','rawAttributes','nolimit','map','include','attributes','api','length','fieldName','order','limit','where','send','keys','destroy','set','count','merge','catch','then','includeAll','json','status','ZohoConfiguration','pick','create','VIRTUAL','body','offset','name','model','findOne','like','query','fields','rows','stack','sort','key','params','filter','../../config/logger','getFields','filters','getDescriptions','ZohoField','index','update','sendStatus','getSubjects','type'];(function(_0x48a9d2,_0x4ef592){const _0xd071ce=function(_0x551c5e){while(--_0x551c5e){_0x48a9d2['push'](_0x48a9d2['shift']());}};_0xd071ce(++_0x4ef592);}(a422_0xd071,0xad));const a422_0x551c=function(_0x48a9d2,_0x4ef592){_0x48a9d2=_0x48a9d2-0xad;let _0xd071ce=a422_0xd071[_0x48a9d2];return _0xd071ce;};const a422_0x33a471=a422_0x551c;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(a422_0x33a471(0xda))(a422_0x33a471(0xb7)),{db}=require(a422_0x33a471(0xae)),{Op}=require(a422_0x33a471(0xe4));function respondWithResult(_0x4fa71b,_0x1512b1){return _0x1512b1=_0x1512b1||0xc8,function(_0x3bb010){const _0x3c3dca=a422_0x551c;if(_0x3bb010)return _0x4fa71b['status'](_0x1512b1)[_0x3c3dca(0xc6)](_0x3bb010);};}function respondWithFilteredResult(_0x2fc304,_0x32483f){return function(_0x55c972){const _0x24bbb9=a422_0x551c;if(_0x55c972){const _0x157f3e=_0x55c972[_0x24bbb9(0xc1)],_0x215fb1=_0x32483f[_0x24bbb9(0xcd)];let _0x409f2c=_0x32483f[_0x24bbb9(0xcd)]+_0x32483f[_0x24bbb9(0xbb)],_0x547712;return _0x409f2c>=_0x157f3e?(_0x409f2c=_0x157f3e,_0x547712=0xc8):_0x547712=0xce,_0x2fc304[_0x24bbb9(0xc7)](_0x547712),_0x2fc304[_0x24bbb9(0xc0)]('Content-Range',_0x215fb1+'-'+_0x409f2c+'/'+_0x157f3e)[_0x24bbb9(0xc6)](_0x55c972);}return null;};}function saveUpdates(_0xef6347){return function(_0x24bdc3){const _0x2104b1=a422_0x551c;if(_0x24bdc3)return _0x24bdc3[_0x2104b1(0xe0)](_0xef6347)[_0x2104b1(0xc4)](function(_0x1e213a){return _0x1e213a;});return null;};}function removeEntity(_0x265251){return function(_0xfca22c){const _0x1e3b21=a422_0x551c;if(_0xfca22c)return _0xfca22c[_0x1e3b21(0xbf)]()[_0x1e3b21(0xc4)](function(){const _0xd77c7=_0x1e3b21;_0x265251[_0xd77c7(0xc7)](0xcc)['end']();});};}function handleEntityNotFound(_0x20a408){return function(_0x125f26){const _0x22c7bd=a422_0x551c;return!_0x125f26&&_0x20a408[_0x22c7bd(0xe1)](0x194),_0x125f26;};}function handleError(_0x41b13d,_0x118404){return _0x118404=_0x118404||0x1f4,function(_0x561f56){const _0xb5db07=a422_0x551c;logger[_0xb5db07(0xaf)](_0x561f56[_0xb5db07(0xd5)]),_0x561f56[_0xb5db07(0xce)]&&delete _0x561f56['name'],_0x41b13d[_0xb5db07(0xc7)](_0x118404)[_0xb5db07(0xbd)](_0x561f56);};}exports[a422_0x33a471(0xdf)]=function(_0x2e7364,_0x30d63b){const _0x5c8810=a422_0x33a471;let _0x149d2e={};const _0x5be093={},_0x388979={'count':0x0,'rows':[]},_0x4b23a0=_['map'](db[_0x5c8810(0xc8)][_0x5c8810(0xb2)],function(_0x2169e5){const _0x3aa8f6=_0x5c8810;return{'name':_0x2169e5[_0x3aa8f6(0xb9)],'type':_0x2169e5[_0x3aa8f6(0xe3)][_0x3aa8f6(0xd7)]};});_0x5be093[_0x5c8810(0xcf)]=_[_0x5c8810(0xb4)](_0x4b23a0,'name'),_0x5be093['query']=_[_0x5c8810(0xbe)](_0x2e7364['query']),_0x5be093[_0x5c8810(0xdc)]=_[_0x5c8810(0xb0)](_0x5be093[_0x5c8810(0xcf)],_0x5be093[_0x5c8810(0xd2)]),_0x149d2e[_0x5c8810(0xb6)]=_['intersection'](_0x5be093[_0x5c8810(0xcf)],qs['fields'](_0x2e7364[_0x5c8810(0xd2)][_0x5c8810(0xd3)])),_0x149d2e[_0x5c8810(0xb6)]=_0x149d2e[_0x5c8810(0xb6)][_0x5c8810(0xb8)]?_0x149d2e[_0x5c8810(0xb6)]:_0x5be093['model'];typeof _0x2e7364[_0x5c8810(0xd2)][_0x5c8810(0xb3)]==='undefined'&&(_0x149d2e[_0x5c8810(0xbb)]=qs['limit'](_0x2e7364[_0x5c8810(0xd2)]['limit']),_0x149d2e[_0x5c8810(0xcd)]=qs['offset'](_0x2e7364[_0x5c8810(0xd2)][_0x5c8810(0xcd)]));_0x149d2e[_0x5c8810(0xba)]=qs['sort'](_0x2e7364[_0x5c8810(0xd2)][_0x5c8810(0xd6)]),_0x149d2e[_0x5c8810(0xbc)]=qs[_0x5c8810(0xdc)](_[_0x5c8810(0xc9)](_0x2e7364[_0x5c8810(0xd2)],_0x5be093[_0x5c8810(0xdc)]),_0x4b23a0);_0x2e7364[_0x5c8810(0xd2)]['filter']&&(_0x149d2e[_0x5c8810(0xbc)]=_[_0x5c8810(0xc2)](_0x149d2e[_0x5c8810(0xbc)],{[Op['or']]:_[_0x5c8810(0xb4)](_0x4b23a0,function(_0x3537b8){const _0x14babf=_0x5c8810;if(_0x3537b8['type']!==_0x14babf(0xcb)){const _0x2cf73d={};return _0x2cf73d[_0x3537b8[_0x14babf(0xce)]]={[Op[_0x14babf(0xd1)]]:'%'+_0x2e7364[_0x14babf(0xd2)][_0x14babf(0xd9)]+'%'},_0x2cf73d;}})}));_0x149d2e=_[_0x5c8810(0xc2)]({},_0x149d2e,_0x2e7364[_0x5c8810(0xb1)]);const _0xc299c8={'where':_0x149d2e[_0x5c8810(0xbc)]};return db['ZohoConfiguration'][_0x5c8810(0xc1)](_0xc299c8)[_0x5c8810(0xc4)](function(_0x52f49d){const _0x54c719=_0x5c8810;return _0x388979['count']=_0x52f49d,_0x2e7364[_0x54c719(0xd2)]['includeAll']&&(_0x149d2e['include']=[{'all':!![]}]),db[_0x54c719(0xc8)][_0x54c719(0xe5)](_0x149d2e);})[_0x5c8810(0xc4)](function(_0x3c2abc){const _0x1f55f8=_0x5c8810;return _0x388979[_0x1f55f8(0xd4)]=_0x3c2abc,_0x388979;})[_0x5c8810(0xc4)](respondWithFilteredResult(_0x30d63b,_0x149d2e))['catch'](handleError(_0x30d63b,null));},exports[a422_0x33a471(0xad)]=function(_0x376a08,_0x4cdf3e){const _0x1f864c=a422_0x33a471;let _0x3ef307={'raw':![],'where':{'id':_0x376a08[_0x1f864c(0xd8)]['id']}};const _0xae3cb9={};return _0xae3cb9[_0x1f864c(0xcf)]=_[_0x1f864c(0xbe)](db[_0x1f864c(0xc8)]['rawAttributes']),_0xae3cb9[_0x1f864c(0xd2)]=_[_0x1f864c(0xbe)](_0x376a08[_0x1f864c(0xd2)]),_0xae3cb9[_0x1f864c(0xdc)]=_[_0x1f864c(0xb0)](_0xae3cb9['model'],_0xae3cb9[_0x1f864c(0xd2)]),_0x3ef307[_0x1f864c(0xb6)]=_[_0x1f864c(0xb0)](_0xae3cb9[_0x1f864c(0xcf)],qs[_0x1f864c(0xd3)](_0x376a08[_0x1f864c(0xd2)]['fields'])),_0x3ef307[_0x1f864c(0xb6)]=_0x3ef307[_0x1f864c(0xb6)]['length']?_0x3ef307[_0x1f864c(0xb6)]:_0xae3cb9[_0x1f864c(0xcf)],_0x376a08[_0x1f864c(0xd2)][_0x1f864c(0xc5)]&&(_0x3ef307[_0x1f864c(0xb5)]=[{'all':!![]}]),_0x3ef307=_['merge']({},_0x3ef307,_0x376a08['options']),db['ZohoConfiguration'][_0x1f864c(0xd0)](_0x3ef307)[_0x1f864c(0xc4)](handleEntityNotFound(_0x4cdf3e,null))['then'](respondWithResult(_0x4cdf3e,null))[_0x1f864c(0xc3)](handleError(_0x4cdf3e,null));},exports[a422_0x33a471(0xca)]=function(_0x2e996c,_0x28bcaa){const _0x299a77=a422_0x33a471;return db[_0x299a77(0xc8)][_0x299a77(0xca)](_0x2e996c[_0x299a77(0xcc)],{})['then'](respondWithResult(_0x28bcaa,0xc9))[_0x299a77(0xc3)](handleError(_0x28bcaa,null));},exports[a422_0x33a471(0xe0)]=function(_0x200451,_0x31c7b7){const _0x1995fe=a422_0x33a471;return _0x200451['body']['id']&&delete _0x200451[_0x1995fe(0xcc)]['id'],db['ZohoConfiguration'][_0x1995fe(0xd0)]({'where':{'id':_0x200451[_0x1995fe(0xd8)]['id']}})[_0x1995fe(0xc4)](handleEntityNotFound(_0x31c7b7,null))[_0x1995fe(0xc4)](saveUpdates(_0x200451[_0x1995fe(0xcc)],null))[_0x1995fe(0xc4)](respondWithResult(_0x31c7b7,null))[_0x1995fe(0xc3)](handleError(_0x31c7b7,null));},exports['destroy']=function(_0x513332,_0x30e59a){const _0x26f00e=a422_0x33a471;return db[_0x26f00e(0xc8)][_0x26f00e(0xd0)]({'where':{'id':_0x513332[_0x26f00e(0xd8)]['id']}})[_0x26f00e(0xc4)](handleEntityNotFound(_0x30e59a,null))[_0x26f00e(0xc4)](removeEntity(_0x30e59a,null))[_0x26f00e(0xc3)](handleError(_0x30e59a,null));},exports[a422_0x33a471(0xdb)]=function(_0x22b13d,_0x5198e0){const _0x223926=a422_0x33a471;let _0x42b723={};const _0x25fcd7={};let _0x4e729d,_0x121541;return db[_0x223926(0xc8)][_0x223926(0xd0)]({'where':{'id':_0x22b13d['params']['id']}})['then'](handleEntityNotFound(_0x5198e0,null))[_0x223926(0xc4)](function(_0x474970){const _0x44057a=_0x223926;if(_0x474970)return _0x4e729d=_0x474970,_0x25fcd7[_0x44057a(0xcf)]=_[_0x44057a(0xbe)](db['ZohoField'][_0x44057a(0xb2)]),_0x25fcd7['query']=_[_0x44057a(0xbe)](_0x22b13d[_0x44057a(0xd2)]),_0x25fcd7[_0x44057a(0xdc)]=_[_0x44057a(0xb0)](_0x25fcd7[_0x44057a(0xcf)],_0x25fcd7[_0x44057a(0xd2)]),_0x42b723[_0x44057a(0xb6)]=_[_0x44057a(0xb0)](_0x25fcd7['model'],qs['fields'](_0x22b13d['query']['fields'])),_0x42b723[_0x44057a(0xb6)]=_0x42b723['attributes'][_0x44057a(0xb8)]?_0x42b723['attributes']:_0x25fcd7[_0x44057a(0xcf)],_0x42b723['order']=qs['sort'](_0x22b13d[_0x44057a(0xd2)][_0x44057a(0xd6)]),_0x42b723[_0x44057a(0xbc)]=qs[_0x44057a(0xdc)](_[_0x44057a(0xc9)](_0x22b13d[_0x44057a(0xd2)],_0x25fcd7[_0x44057a(0xdc)])),_0x22b13d[_0x44057a(0xd2)]['filter']&&(_0x42b723['where']=_[_0x44057a(0xc2)](_0x42b723['where'],{[Op['or']]:_[_0x44057a(0xb4)](_0x42b723[_0x44057a(0xb6)],function(_0x342103){const _0x2db96d=_0x44057a,_0x28becd={};return _0x28becd[_0x342103]={[Op[_0x2db96d(0xd1)]]:'%'+_0x22b13d[_0x2db96d(0xd2)][_0x2db96d(0xd9)]+'%'},_0x28becd;})})),_0x42b723=_['merge']({},_0x42b723,_0x22b13d[_0x44057a(0xb1)]),_0x4e729d[_0x44057a(0xdb)](_0x42b723);})[_0x223926(0xc4)](function(_0x257287){const _0x2f6f8a=_0x223926;if(_0x257287)return _0x121541=_0x257287[_0x2f6f8a(0xb8)],typeof _0x22b13d[_0x2f6f8a(0xd2)]['nolimit']==='undefined'&&(_0x42b723['limit']=qs['limit'](_0x22b13d['query'][_0x2f6f8a(0xbb)]),_0x42b723['offset']=qs['offset'](_0x22b13d[_0x2f6f8a(0xd2)][_0x2f6f8a(0xcd)])),_0x4e729d[_0x2f6f8a(0xdb)](_0x42b723);})['then'](function(_0x5bdb67){if(_0x5bdb67)return _0x5bdb67?{'count':_0x121541,'rows':_0x5bdb67}:null;})[_0x223926(0xc4)](respondWithResult(_0x5198e0,null))['catch'](handleError(_0x5198e0,null));},exports['getSubjects']=function(_0x2c62bc,_0x3a9483){const _0x4446a6=a422_0x33a471;let _0x3a241e={};const _0xf3f24={};let _0x3ab10d,_0x512338;return db[_0x4446a6(0xc8)][_0x4446a6(0xd0)]({'where':{'id':_0x2c62bc[_0x4446a6(0xd8)]['id']}})[_0x4446a6(0xc4)](handleEntityNotFound(_0x3a9483,null))[_0x4446a6(0xc4)](function(_0x52493e){const _0x30dbcc=_0x4446a6;if(_0x52493e)return _0x3ab10d=_0x52493e,_0xf3f24[_0x30dbcc(0xcf)]=_[_0x30dbcc(0xbe)](db['ZohoField'][_0x30dbcc(0xb2)]),_0xf3f24['query']=_['keys'](_0x2c62bc[_0x30dbcc(0xd2)]),_0xf3f24['filters']=_[_0x30dbcc(0xb0)](_0xf3f24['model'],_0xf3f24[_0x30dbcc(0xd2)]),_0x3a241e['attributes']=_[_0x30dbcc(0xb0)](_0xf3f24[_0x30dbcc(0xcf)],qs[_0x30dbcc(0xd3)](_0x2c62bc['query'][_0x30dbcc(0xd3)])),_0x3a241e[_0x30dbcc(0xb6)]=_0x3a241e['attributes'][_0x30dbcc(0xb8)]?_0x3a241e[_0x30dbcc(0xb6)]:_0xf3f24['model'],_0x3a241e['order']=qs[_0x30dbcc(0xd6)](_0x2c62bc['query'][_0x30dbcc(0xd6)]),_0x3a241e[_0x30dbcc(0xbc)]=qs[_0x30dbcc(0xdc)](_['pick'](_0x2c62bc[_0x30dbcc(0xd2)],_0xf3f24[_0x30dbcc(0xdc)])),_0x2c62bc[_0x30dbcc(0xd2)][_0x30dbcc(0xd9)]&&(_0x3a241e[_0x30dbcc(0xbc)]=_[_0x30dbcc(0xc2)](_0x3a241e['where'],{[Op['or']]:_[_0x30dbcc(0xb4)](_0x3a241e['attributes'],function(_0x1560ad){const _0x3176bf=_0x30dbcc,_0x44db0f={};return _0x44db0f[_0x1560ad]={[Op[_0x3176bf(0xd1)]]:'%'+_0x2c62bc[_0x3176bf(0xd2)][_0x3176bf(0xd9)]+'%'},_0x44db0f;})})),_0x3a241e=_[_0x30dbcc(0xc2)]({},_0x3a241e,_0x2c62bc[_0x30dbcc(0xb1)]),_0x3ab10d['getSubjects'](_0x3a241e);})['then'](function(_0x144c07){const _0x647a3d=_0x4446a6;if(_0x144c07)return _0x512338=_0x144c07[_0x647a3d(0xb8)],typeof _0x2c62bc[_0x647a3d(0xd2)][_0x647a3d(0xb3)]==='undefined'&&(_0x3a241e[_0x647a3d(0xbb)]=qs[_0x647a3d(0xbb)](_0x2c62bc[_0x647a3d(0xd2)]['limit']),_0x3a241e[_0x647a3d(0xcd)]=qs[_0x647a3d(0xcd)](_0x2c62bc[_0x647a3d(0xd2)]['offset'])),_0x3ab10d[_0x647a3d(0xe2)](_0x3a241e);})[_0x4446a6(0xc4)](function(_0xe5b181){if(_0xe5b181)return _0xe5b181?{'count':_0x512338,'rows':_0xe5b181}:null;})[_0x4446a6(0xc4)](respondWithResult(_0x3a9483,null))[_0x4446a6(0xc3)](handleError(_0x3a9483,null));},exports['getDescriptions']=function(_0x3539ab,_0x3b7a74){const _0x19b839=a422_0x33a471;let _0x166e9a={};const _0x1e1124={};let _0xa1f09f,_0x444577;return db[_0x19b839(0xc8)][_0x19b839(0xd0)]({'where':{'id':_0x3539ab['params']['id']}})[_0x19b839(0xc4)](handleEntityNotFound(_0x3b7a74,null))[_0x19b839(0xc4)](function(_0x416e55){const _0x4ca834=_0x19b839;if(_0x416e55)return _0xa1f09f=_0x416e55,_0x1e1124[_0x4ca834(0xcf)]=_[_0x4ca834(0xbe)](db[_0x4ca834(0xde)][_0x4ca834(0xb2)]),_0x1e1124['query']=_[_0x4ca834(0xbe)](_0x3539ab[_0x4ca834(0xd2)]),_0x1e1124['filters']=_[_0x4ca834(0xb0)](_0x1e1124[_0x4ca834(0xcf)],_0x1e1124[_0x4ca834(0xd2)]),_0x166e9a[_0x4ca834(0xb6)]=_['intersection'](_0x1e1124[_0x4ca834(0xcf)],qs[_0x4ca834(0xd3)](_0x3539ab[_0x4ca834(0xd2)]['fields'])),_0x166e9a[_0x4ca834(0xb6)]=_0x166e9a[_0x4ca834(0xb6)][_0x4ca834(0xb8)]?_0x166e9a[_0x4ca834(0xb6)]:_0x1e1124[_0x4ca834(0xcf)],_0x166e9a['order']=qs[_0x4ca834(0xd6)](_0x3539ab['query'][_0x4ca834(0xd6)]),_0x166e9a[_0x4ca834(0xbc)]=qs[_0x4ca834(0xdc)](_[_0x4ca834(0xc9)](_0x3539ab[_0x4ca834(0xd2)],_0x1e1124[_0x4ca834(0xdc)])),_0x3539ab[_0x4ca834(0xd2)][_0x4ca834(0xd9)]&&(_0x166e9a[_0x4ca834(0xbc)]=_[_0x4ca834(0xc2)](_0x166e9a[_0x4ca834(0xbc)],{[Op['or']]:_[_0x4ca834(0xb4)](_0x166e9a[_0x4ca834(0xb6)],function(_0x43a282){const _0x4e8e95=_0x4ca834,_0xa18c34={};return _0xa18c34[_0x43a282]={[Op['like']]:'%'+_0x3539ab[_0x4e8e95(0xd2)][_0x4e8e95(0xd9)]+'%'},_0xa18c34;})})),_0x166e9a=_[_0x4ca834(0xc2)]({},_0x166e9a,_0x3539ab['options']),_0xa1f09f[_0x4ca834(0xdd)](_0x166e9a);})[_0x19b839(0xc4)](function(_0x57fb50){const _0xba4c=_0x19b839;if(_0x57fb50)return _0x444577=_0x57fb50[_0xba4c(0xb8)],typeof _0x3539ab[_0xba4c(0xd2)][_0xba4c(0xb3)]==='undefined'&&(_0x166e9a[_0xba4c(0xbb)]=qs[_0xba4c(0xbb)](_0x3539ab['query'][_0xba4c(0xbb)]),_0x166e9a[_0xba4c(0xcd)]=qs[_0xba4c(0xcd)](_0x3539ab[_0xba4c(0xd2)]['offset'])),_0xa1f09f[_0xba4c(0xdd)](_0x166e9a);})[_0x19b839(0xc4)](function(_0xf6c51e){if(_0xf6c51e)return _0xf6c51e?{'count':_0x444577,'rows':_0xf6c51e}:null;})[_0x19b839(0xc4)](respondWithResult(_0x3b7a74,null))[_0x19b839(0xc3)](handleError(_0x3b7a74,null));}; \ No newline at end of file +const a422_0x3db0=['undefined','findOne','create','rawAttributes','includeAll','then','set','nolimit','merge','key','params','send','order','pick','status','update','getDescriptions','index','destroy','json','Content-Range','sort','include','name','keys','sendStatus','model','offset','api','count','options','../../config/logger','getSubjects','stack','body','ZohoConfiguration','show','getFields','intersection','filters','where','length','map','like','limit','filter','catch','lodash','attributes','fields','VIRTUAL','ZohoField','type','query','end','error'];(function(_0x3e8c00,_0x57df70){const _0x3db0c1=function(_0x16e16a){while(--_0x16e16a){_0x3e8c00['push'](_0x3e8c00['shift']());}};_0x3db0c1(++_0x57df70);}(a422_0x3db0,0xdc));const a422_0x16e1=function(_0x3e8c00,_0x57df70){_0x3e8c00=_0x3e8c00-0x1cd;let _0x3db0c1=a422_0x3db0[_0x3e8c00];return _0x3db0c1;};const a422_0x63f473=a422_0x16e1;'use strict';const _=require(a422_0x63f473(0x200)),qs=require('../../components/parsers/qs'),logger=require(a422_0x63f473(0x1f0))(a422_0x63f473(0x1ed)),{db}=require('../../mysqldb'),{Op}=require('sequelize');function respondWithResult(_0x24277a,_0x20ca5a){return _0x20ca5a=_0x20ca5a||0xc8,function(_0x154367){const _0x4d86d0=a422_0x16e1;if(_0x154367)return _0x24277a[_0x4d86d0(0x1df)](_0x20ca5a)[_0x4d86d0(0x1e4)](_0x154367);};}function respondWithFilteredResult(_0x3598cc,_0x1f77c3){return function(_0x341c05){const _0x1fcb58=a422_0x16e1;if(_0x341c05){const _0xcb3725=_0x341c05['count'],_0x59571f=_0x1f77c3[_0x1fcb58(0x1ec)];let _0x1b9203=_0x1f77c3[_0x1fcb58(0x1ec)]+_0x1f77c3[_0x1fcb58(0x1fd)],_0x5c31bb;return _0x1b9203>=_0xcb3725?(_0x1b9203=_0xcb3725,_0x5c31bb=0xc8):_0x5c31bb=0xce,_0x3598cc['status'](_0x5c31bb),_0x3598cc[_0x1fcb58(0x1d7)](_0x1fcb58(0x1e5),_0x59571f+'-'+_0x1b9203+'/'+_0xcb3725)['json'](_0x341c05);}return null;};}function saveUpdates(_0xcbf8b0){return function(_0x468286){const _0x2dbf9f=a422_0x16e1;if(_0x468286)return _0x468286[_0x2dbf9f(0x1e0)](_0xcbf8b0)[_0x2dbf9f(0x1d6)](function(_0x237b2f){return _0x237b2f;});return null;};}function removeEntity(_0x4c6d27){return function(_0x13930a){const _0x13d027=a422_0x16e1;if(_0x13930a)return _0x13930a[_0x13d027(0x1e3)]()['then'](function(){const _0x58fc9d=_0x13d027;_0x4c6d27[_0x58fc9d(0x1df)](0xcc)[_0x58fc9d(0x1cf)]();});};}function handleEntityNotFound(_0x24e9b9){return function(_0x28ba65){const _0x18897b=a422_0x16e1;return!_0x28ba65&&_0x24e9b9[_0x18897b(0x1ea)](0x194),_0x28ba65;};}function handleError(_0x44d833,_0xfde1ef){return _0xfde1ef=_0xfde1ef||0x1f4,function(_0x18abd0){const _0x112898=a422_0x16e1;logger[_0x112898(0x1d0)](_0x18abd0[_0x112898(0x1f2)]),_0x18abd0['name']&&delete _0x18abd0['name'],_0x44d833[_0x112898(0x1df)](_0xfde1ef)[_0x112898(0x1dc)](_0x18abd0);};}exports[a422_0x63f473(0x1e2)]=function(_0x3503a6,_0x22cd87){const _0x3d4595=a422_0x63f473;let _0x7d2fe3={};const _0x48912d={},_0x181bad={'count':0x0,'rows':[]},_0x3c388b=_['map'](db[_0x3d4595(0x1f4)][_0x3d4595(0x1d4)],function(_0x473488){const _0x566978=_0x3d4595;return{'name':_0x473488['fieldName'],'type':_0x473488[_0x566978(0x1cd)][_0x566978(0x1da)]};});_0x48912d[_0x3d4595(0x1eb)]=_[_0x3d4595(0x1fb)](_0x3c388b,_0x3d4595(0x1e8)),_0x48912d[_0x3d4595(0x1ce)]=_[_0x3d4595(0x1e9)](_0x3503a6['query']),_0x48912d[_0x3d4595(0x1f8)]=_[_0x3d4595(0x1f7)](_0x48912d[_0x3d4595(0x1eb)],_0x48912d[_0x3d4595(0x1ce)]),_0x7d2fe3[_0x3d4595(0x201)]=_[_0x3d4595(0x1f7)](_0x48912d[_0x3d4595(0x1eb)],qs[_0x3d4595(0x202)](_0x3503a6['query'][_0x3d4595(0x202)])),_0x7d2fe3['attributes']=_0x7d2fe3[_0x3d4595(0x201)][_0x3d4595(0x1fa)]?_0x7d2fe3[_0x3d4595(0x201)]:_0x48912d[_0x3d4595(0x1eb)];typeof _0x3503a6[_0x3d4595(0x1ce)][_0x3d4595(0x1d8)]===_0x3d4595(0x1d1)&&(_0x7d2fe3[_0x3d4595(0x1fd)]=qs[_0x3d4595(0x1fd)](_0x3503a6['query'][_0x3d4595(0x1fd)]),_0x7d2fe3[_0x3d4595(0x1ec)]=qs[_0x3d4595(0x1ec)](_0x3503a6[_0x3d4595(0x1ce)][_0x3d4595(0x1ec)]));_0x7d2fe3['order']=qs[_0x3d4595(0x1e6)](_0x3503a6[_0x3d4595(0x1ce)][_0x3d4595(0x1e6)]),_0x7d2fe3['where']=qs[_0x3d4595(0x1f8)](_[_0x3d4595(0x1de)](_0x3503a6[_0x3d4595(0x1ce)],_0x48912d[_0x3d4595(0x1f8)]),_0x3c388b);_0x3503a6[_0x3d4595(0x1ce)]['filter']&&(_0x7d2fe3[_0x3d4595(0x1f9)]=_[_0x3d4595(0x1d9)](_0x7d2fe3[_0x3d4595(0x1f9)],{[Op['or']]:_[_0x3d4595(0x1fb)](_0x3c388b,function(_0x52fdd4){const _0x3bba63=_0x3d4595;if(_0x52fdd4['type']!==_0x3bba63(0x203)){const _0x98d8ad={};return _0x98d8ad[_0x52fdd4[_0x3bba63(0x1e8)]]={[Op[_0x3bba63(0x1fc)]]:'%'+_0x3503a6[_0x3bba63(0x1ce)][_0x3bba63(0x1fe)]+'%'},_0x98d8ad;}})}));_0x7d2fe3=_[_0x3d4595(0x1d9)]({},_0x7d2fe3,_0x3503a6[_0x3d4595(0x1ef)]);const _0x111ed8={'where':_0x7d2fe3[_0x3d4595(0x1f9)]};return db['ZohoConfiguration'][_0x3d4595(0x1ee)](_0x111ed8)[_0x3d4595(0x1d6)](function(_0x143261){const _0x28252e=_0x3d4595;return _0x181bad['count']=_0x143261,_0x3503a6[_0x28252e(0x1ce)][_0x28252e(0x1d5)]&&(_0x7d2fe3[_0x28252e(0x1e7)]=[{'all':!![]}]),db['ZohoConfiguration']['findAll'](_0x7d2fe3);})['then'](function(_0x234c29){return _0x181bad['rows']=_0x234c29,_0x181bad;})[_0x3d4595(0x1d6)](respondWithFilteredResult(_0x22cd87,_0x7d2fe3))[_0x3d4595(0x1ff)](handleError(_0x22cd87,null));},exports[a422_0x63f473(0x1f5)]=function(_0x4b3673,_0xb3c4a1){const _0x39ea1c=a422_0x63f473;let _0x3fc50f={'raw':![],'where':{'id':_0x4b3673[_0x39ea1c(0x1db)]['id']}};const _0x2a4999={};return _0x2a4999[_0x39ea1c(0x1eb)]=_[_0x39ea1c(0x1e9)](db['ZohoConfiguration'][_0x39ea1c(0x1d4)]),_0x2a4999[_0x39ea1c(0x1ce)]=_[_0x39ea1c(0x1e9)](_0x4b3673[_0x39ea1c(0x1ce)]),_0x2a4999[_0x39ea1c(0x1f8)]=_['intersection'](_0x2a4999['model'],_0x2a4999[_0x39ea1c(0x1ce)]),_0x3fc50f[_0x39ea1c(0x201)]=_[_0x39ea1c(0x1f7)](_0x2a4999[_0x39ea1c(0x1eb)],qs[_0x39ea1c(0x202)](_0x4b3673[_0x39ea1c(0x1ce)]['fields'])),_0x3fc50f[_0x39ea1c(0x201)]=_0x3fc50f[_0x39ea1c(0x201)][_0x39ea1c(0x1fa)]?_0x3fc50f[_0x39ea1c(0x201)]:_0x2a4999['model'],_0x4b3673[_0x39ea1c(0x1ce)][_0x39ea1c(0x1d5)]&&(_0x3fc50f[_0x39ea1c(0x1e7)]=[{'all':!![]}]),_0x3fc50f=_[_0x39ea1c(0x1d9)]({},_0x3fc50f,_0x4b3673['options']),db['ZohoConfiguration'][_0x39ea1c(0x1d2)](_0x3fc50f)[_0x39ea1c(0x1d6)](handleEntityNotFound(_0xb3c4a1,null))['then'](respondWithResult(_0xb3c4a1,null))[_0x39ea1c(0x1ff)](handleError(_0xb3c4a1,null));},exports[a422_0x63f473(0x1d3)]=function(_0x3250c4,_0x5adc12){const _0x37ec16=a422_0x63f473;return db[_0x37ec16(0x1f4)]['create'](_0x3250c4[_0x37ec16(0x1f3)],{})[_0x37ec16(0x1d6)](respondWithResult(_0x5adc12,0xc9))[_0x37ec16(0x1ff)](handleError(_0x5adc12,null));},exports['update']=function(_0x38289f,_0x13d01a){const _0xc123a3=a422_0x63f473;return _0x38289f['body']['id']&&delete _0x38289f[_0xc123a3(0x1f3)]['id'],db[_0xc123a3(0x1f4)][_0xc123a3(0x1d2)]({'where':{'id':_0x38289f[_0xc123a3(0x1db)]['id']}})[_0xc123a3(0x1d6)](handleEntityNotFound(_0x13d01a,null))[_0xc123a3(0x1d6)](saveUpdates(_0x38289f['body'],null))['then'](respondWithResult(_0x13d01a,null))[_0xc123a3(0x1ff)](handleError(_0x13d01a,null));},exports[a422_0x63f473(0x1e3)]=function(_0x241dd7,_0x148cbd){const _0x4be107=a422_0x63f473;return db[_0x4be107(0x1f4)][_0x4be107(0x1d2)]({'where':{'id':_0x241dd7[_0x4be107(0x1db)]['id']}})['then'](handleEntityNotFound(_0x148cbd,null))[_0x4be107(0x1d6)](removeEntity(_0x148cbd,null))['catch'](handleError(_0x148cbd,null));},exports['getFields']=function(_0x278035,_0x29feea){const _0x59adeb=a422_0x63f473;let _0x2d7c10={};const _0x494320={};let _0xba8562,_0x3e2297;return db[_0x59adeb(0x1f4)][_0x59adeb(0x1d2)]({'where':{'id':_0x278035[_0x59adeb(0x1db)]['id']}})[_0x59adeb(0x1d6)](handleEntityNotFound(_0x29feea,null))['then'](function(_0x55d1a8){const _0x1314cf=_0x59adeb;if(_0x55d1a8)return _0xba8562=_0x55d1a8,_0x494320['model']=_[_0x1314cf(0x1e9)](db[_0x1314cf(0x204)][_0x1314cf(0x1d4)]),_0x494320[_0x1314cf(0x1ce)]=_[_0x1314cf(0x1e9)](_0x278035[_0x1314cf(0x1ce)]),_0x494320['filters']=_['intersection'](_0x494320[_0x1314cf(0x1eb)],_0x494320[_0x1314cf(0x1ce)]),_0x2d7c10[_0x1314cf(0x201)]=_['intersection'](_0x494320['model'],qs[_0x1314cf(0x202)](_0x278035[_0x1314cf(0x1ce)][_0x1314cf(0x202)])),_0x2d7c10[_0x1314cf(0x201)]=_0x2d7c10['attributes']['length']?_0x2d7c10[_0x1314cf(0x201)]:_0x494320[_0x1314cf(0x1eb)],_0x2d7c10[_0x1314cf(0x1dd)]=qs['sort'](_0x278035[_0x1314cf(0x1ce)]['sort']),_0x2d7c10[_0x1314cf(0x1f9)]=qs['filters'](_[_0x1314cf(0x1de)](_0x278035[_0x1314cf(0x1ce)],_0x494320[_0x1314cf(0x1f8)])),_0x278035[_0x1314cf(0x1ce)]['filter']&&(_0x2d7c10[_0x1314cf(0x1f9)]=_[_0x1314cf(0x1d9)](_0x2d7c10['where'],{[Op['or']]:_[_0x1314cf(0x1fb)](_0x2d7c10[_0x1314cf(0x201)],function(_0xf034c3){const _0x161ad2=_0x1314cf,_0x2ed173={};return _0x2ed173[_0xf034c3]={[Op[_0x161ad2(0x1fc)]]:'%'+_0x278035['query']['filter']+'%'},_0x2ed173;})})),_0x2d7c10=_['merge']({},_0x2d7c10,_0x278035['options']),_0xba8562[_0x1314cf(0x1f6)](_0x2d7c10);})[_0x59adeb(0x1d6)](function(_0x29d187){const _0x4a2426=_0x59adeb;if(_0x29d187)return _0x3e2297=_0x29d187['length'],typeof _0x278035[_0x4a2426(0x1ce)][_0x4a2426(0x1d8)]==='undefined'&&(_0x2d7c10[_0x4a2426(0x1fd)]=qs['limit'](_0x278035[_0x4a2426(0x1ce)][_0x4a2426(0x1fd)]),_0x2d7c10[_0x4a2426(0x1ec)]=qs[_0x4a2426(0x1ec)](_0x278035[_0x4a2426(0x1ce)]['offset'])),_0xba8562[_0x4a2426(0x1f6)](_0x2d7c10);})[_0x59adeb(0x1d6)](function(_0x301fce){if(_0x301fce)return _0x301fce?{'count':_0x3e2297,'rows':_0x301fce}:null;})['then'](respondWithResult(_0x29feea,null))[_0x59adeb(0x1ff)](handleError(_0x29feea,null));},exports[a422_0x63f473(0x1f1)]=function(_0x35b504,_0x431bf9){const _0x4626c7=a422_0x63f473;let _0x5ad63f={};const _0x3d578e={};let _0x4140b8,_0x4e1fe1;return db['ZohoConfiguration'][_0x4626c7(0x1d2)]({'where':{'id':_0x35b504['params']['id']}})['then'](handleEntityNotFound(_0x431bf9,null))[_0x4626c7(0x1d6)](function(_0x69d31b){const _0x9c8b50=_0x4626c7;if(_0x69d31b)return _0x4140b8=_0x69d31b,_0x3d578e[_0x9c8b50(0x1eb)]=_[_0x9c8b50(0x1e9)](db[_0x9c8b50(0x204)][_0x9c8b50(0x1d4)]),_0x3d578e[_0x9c8b50(0x1ce)]=_[_0x9c8b50(0x1e9)](_0x35b504[_0x9c8b50(0x1ce)]),_0x3d578e[_0x9c8b50(0x1f8)]=_['intersection'](_0x3d578e[_0x9c8b50(0x1eb)],_0x3d578e[_0x9c8b50(0x1ce)]),_0x5ad63f[_0x9c8b50(0x201)]=_[_0x9c8b50(0x1f7)](_0x3d578e[_0x9c8b50(0x1eb)],qs[_0x9c8b50(0x202)](_0x35b504[_0x9c8b50(0x1ce)][_0x9c8b50(0x202)])),_0x5ad63f['attributes']=_0x5ad63f[_0x9c8b50(0x201)][_0x9c8b50(0x1fa)]?_0x5ad63f[_0x9c8b50(0x201)]:_0x3d578e['model'],_0x5ad63f[_0x9c8b50(0x1dd)]=qs[_0x9c8b50(0x1e6)](_0x35b504[_0x9c8b50(0x1ce)][_0x9c8b50(0x1e6)]),_0x5ad63f[_0x9c8b50(0x1f9)]=qs[_0x9c8b50(0x1f8)](_[_0x9c8b50(0x1de)](_0x35b504[_0x9c8b50(0x1ce)],_0x3d578e['filters'])),_0x35b504[_0x9c8b50(0x1ce)]['filter']&&(_0x5ad63f[_0x9c8b50(0x1f9)]=_[_0x9c8b50(0x1d9)](_0x5ad63f[_0x9c8b50(0x1f9)],{[Op['or']]:_[_0x9c8b50(0x1fb)](_0x5ad63f[_0x9c8b50(0x201)],function(_0x32bd24){const _0x463d28=_0x9c8b50,_0x38ef62={};return _0x38ef62[_0x32bd24]={[Op[_0x463d28(0x1fc)]]:'%'+_0x35b504[_0x463d28(0x1ce)][_0x463d28(0x1fe)]+'%'},_0x38ef62;})})),_0x5ad63f=_[_0x9c8b50(0x1d9)]({},_0x5ad63f,_0x35b504[_0x9c8b50(0x1ef)]),_0x4140b8[_0x9c8b50(0x1f1)](_0x5ad63f);})[_0x4626c7(0x1d6)](function(_0x4e6947){const _0x4659c0=_0x4626c7;if(_0x4e6947)return _0x4e1fe1=_0x4e6947[_0x4659c0(0x1fa)],typeof _0x35b504[_0x4659c0(0x1ce)][_0x4659c0(0x1d8)]===_0x4659c0(0x1d1)&&(_0x5ad63f['limit']=qs[_0x4659c0(0x1fd)](_0x35b504[_0x4659c0(0x1ce)][_0x4659c0(0x1fd)]),_0x5ad63f[_0x4659c0(0x1ec)]=qs[_0x4659c0(0x1ec)](_0x35b504[_0x4659c0(0x1ce)][_0x4659c0(0x1ec)])),_0x4140b8[_0x4659c0(0x1f1)](_0x5ad63f);})['then'](function(_0x20dc05){if(_0x20dc05)return _0x20dc05?{'count':_0x4e1fe1,'rows':_0x20dc05}:null;})[_0x4626c7(0x1d6)](respondWithResult(_0x431bf9,null))[_0x4626c7(0x1ff)](handleError(_0x431bf9,null));},exports[a422_0x63f473(0x1e1)]=function(_0x2658e3,_0xae5310){const _0x2232a6=a422_0x63f473;let _0x42f8b4={};const _0x45f063={};let _0x255cc1,_0x345e16;return db[_0x2232a6(0x1f4)][_0x2232a6(0x1d2)]({'where':{'id':_0x2658e3[_0x2232a6(0x1db)]['id']}})['then'](handleEntityNotFound(_0xae5310,null))[_0x2232a6(0x1d6)](function(_0x3f9bf3){const _0x5e8144=_0x2232a6;if(_0x3f9bf3)return _0x255cc1=_0x3f9bf3,_0x45f063['model']=_[_0x5e8144(0x1e9)](db[_0x5e8144(0x204)][_0x5e8144(0x1d4)]),_0x45f063[_0x5e8144(0x1ce)]=_['keys'](_0x2658e3[_0x5e8144(0x1ce)]),_0x45f063[_0x5e8144(0x1f8)]=_[_0x5e8144(0x1f7)](_0x45f063[_0x5e8144(0x1eb)],_0x45f063[_0x5e8144(0x1ce)]),_0x42f8b4[_0x5e8144(0x201)]=_[_0x5e8144(0x1f7)](_0x45f063[_0x5e8144(0x1eb)],qs[_0x5e8144(0x202)](_0x2658e3[_0x5e8144(0x1ce)][_0x5e8144(0x202)])),_0x42f8b4[_0x5e8144(0x201)]=_0x42f8b4[_0x5e8144(0x201)][_0x5e8144(0x1fa)]?_0x42f8b4[_0x5e8144(0x201)]:_0x45f063['model'],_0x42f8b4['order']=qs[_0x5e8144(0x1e6)](_0x2658e3[_0x5e8144(0x1ce)][_0x5e8144(0x1e6)]),_0x42f8b4[_0x5e8144(0x1f9)]=qs[_0x5e8144(0x1f8)](_['pick'](_0x2658e3['query'],_0x45f063['filters'])),_0x2658e3[_0x5e8144(0x1ce)][_0x5e8144(0x1fe)]&&(_0x42f8b4['where']=_[_0x5e8144(0x1d9)](_0x42f8b4[_0x5e8144(0x1f9)],{[Op['or']]:_[_0x5e8144(0x1fb)](_0x42f8b4[_0x5e8144(0x201)],function(_0x441ce5){const _0x444d1e=_0x5e8144,_0x2f6d33={};return _0x2f6d33[_0x441ce5]={[Op[_0x444d1e(0x1fc)]]:'%'+_0x2658e3[_0x444d1e(0x1ce)][_0x444d1e(0x1fe)]+'%'},_0x2f6d33;})})),_0x42f8b4=_['merge']({},_0x42f8b4,_0x2658e3[_0x5e8144(0x1ef)]),_0x255cc1['getDescriptions'](_0x42f8b4);})[_0x2232a6(0x1d6)](function(_0x5cc646){const _0x3312ba=_0x2232a6;if(_0x5cc646)return _0x345e16=_0x5cc646[_0x3312ba(0x1fa)],typeof _0x2658e3[_0x3312ba(0x1ce)]['nolimit']===_0x3312ba(0x1d1)&&(_0x42f8b4[_0x3312ba(0x1fd)]=qs[_0x3312ba(0x1fd)](_0x2658e3[_0x3312ba(0x1ce)]['limit']),_0x42f8b4['offset']=qs[_0x3312ba(0x1ec)](_0x2658e3[_0x3312ba(0x1ce)][_0x3312ba(0x1ec)])),_0x255cc1[_0x3312ba(0x1e1)](_0x42f8b4);})[_0x2232a6(0x1d6)](function(_0x5aa6b3){if(_0x5aa6b3)return _0x5aa6b3?{'count':_0x345e16,'rows':_0x5aa6b3}:null;})['then'](respondWithResult(_0xae5310,null))['catch'](handleError(_0xae5310,null));}; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.model.js b/server/api/intZohoConfiguration/intZohoConfiguration.model.js index db0732d..1e0bb48 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.model.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.model.js @@ -1 +1 @@ -const a423_0x180e=['./intZohoConfiguration.attributes','ZohoConfiguration','./intZohoConfiguration.options','exports','init','sequelize'];(function(_0x4f7337,_0x4c5848){const _0x180e85=function(_0x133955){while(--_0x133955){_0x4f7337['push'](_0x4f7337['shift']());}};_0x180e85(++_0x4c5848);}(a423_0x180e,0x1e3));const a423_0x1339=function(_0x4f7337,_0x4c5848){_0x4f7337=_0x4f7337-0xe9;let _0x180e85=a423_0x180e[_0x4f7337];return _0x180e85;};const a423_0x1c7fe9=a423_0x1339;'use strict';const {Model}=require(a423_0x1c7fe9(0xeb)),{attributes}=require(a423_0x1c7fe9(0xec)),{options}=require(a423_0x1c7fe9(0xee));class ZohoConfiguration extends Model{}function init(_0x9c3917,_0x3fe6c7){const _0x159aab=options(_0x9c3917),_0x75d884=typeof _0x3fe6c7==='function'?_0x3fe6c7(_0x159aab):_0x159aab;return ZohoConfiguration['init'](attributes,_0x75d884),ZohoConfiguration;}module[a423_0x1c7fe9(0xe9)][a423_0x1c7fe9(0xed)]=ZohoConfiguration,module[a423_0x1c7fe9(0xe9)][a423_0x1c7fe9(0xea)]=init; \ No newline at end of file +const a423_0x2fd8=['ZohoConfiguration','sequelize','exports','./intZohoConfiguration.options','init','./intZohoConfiguration.attributes'];(function(_0x27445f,_0x2f6c50){const _0x2fd8b2=function(_0x3c4c33){while(--_0x3c4c33){_0x27445f['push'](_0x27445f['shift']());}};_0x2fd8b2(++_0x2f6c50);}(a423_0x2fd8,0xd5));const a423_0x3c4c=function(_0x27445f,_0x2f6c50){_0x27445f=_0x27445f-0x139;let _0x2fd8b2=a423_0x2fd8[_0x27445f];return _0x2fd8b2;};const a423_0x7c046c=a423_0x3c4c;'use strict';const {Model}=require(a423_0x7c046c(0x13d)),{attributes}=require(a423_0x7c046c(0x13b)),{options}=require(a423_0x7c046c(0x139));class ZohoConfiguration extends Model{}function init(_0x442282,_0x1f143f){const _0x4d6311=a423_0x7c046c,_0x24a687=options(_0x442282),_0x513523=typeof _0x1f143f==='function'?_0x1f143f(_0x24a687):_0x24a687;return ZohoConfiguration[_0x4d6311(0x13a)](attributes,_0x513523),ZohoConfiguration;}module[a423_0x7c046c(0x13e)][a423_0x7c046c(0x13c)]=ZohoConfiguration,module[a423_0x7c046c(0x13e)][a423_0x7c046c(0x13a)]=init; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.options.js b/server/api/intZohoConfiguration/intZohoConfiguration.options.js index 09c1233..44f90f8 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.options.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.options.js @@ -1 +1 @@ -var a424_0x5930=['int_zoho_configurations','options'];(function(_0x35d4a5,_0x2e01c7){var _0x5930ca=function(_0x231012){while(--_0x231012){_0x35d4a5['push'](_0x35d4a5['shift']());}};_0x5930ca(++_0x2e01c7);}(a424_0x5930,0x75));var a424_0x2310=function(_0x35d4a5,_0x2e01c7){_0x35d4a5=_0x35d4a5-0x18f;var _0x5930ca=a424_0x5930[_0x35d4a5];return _0x5930ca;};var a424_0x2e24f6=a424_0x2310;function options(_0x3dec21){var _0x11c874=a424_0x2310;return{'sequelize':_0x3dec21,'tableName':_0x11c874(0x190),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a424_0x2e24f6(0x18f)]=options; \ No newline at end of file +var a424_0x1e8a=['int_zoho_configurations'];(function(_0x301023,_0x25f345){var _0x1e8a80=function(_0xb5750b){while(--_0xb5750b){_0x301023['push'](_0x301023['shift']());}};_0x1e8a80(++_0x25f345);}(a424_0x1e8a,0x172));var a424_0xb575=function(_0x301023,_0x25f345){_0x301023=_0x301023-0x167;var _0x1e8a80=a424_0x1e8a[_0x301023];return _0x1e8a80;};function options(_0xd38a18){var _0x31d479=a424_0xb575;return{'sequelize':_0xd38a18,'tableName':_0x31d479(0x167),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports']['options']=options; \ No newline at end of file diff --git a/server/api/intZohoField/index.js b/server/api/intZohoField/index.js index bf7c1ee..ba13cd1 100644 --- a/server/api/intZohoField/index.js +++ b/server/api/intZohoField/index.js @@ -1 +1 @@ -const a425_0x4c53=['delete','isAuthenticated','./intZohoField.controller','destroy','exports','../../components/auth/service','/:id','post','express','put','update','Router','show'];(function(_0x3c3ffa,_0x19c8be){const _0x4c5336=function(_0x2efae7){while(--_0x2efae7){_0x3c3ffa['push'](_0x3c3ffa['shift']());}};_0x4c5336(++_0x19c8be);}(a425_0x4c53,0x1c5));const a425_0x2efa=function(_0x3c3ffa,_0x19c8be){_0x3c3ffa=_0x3c3ffa-0x19e;let _0x4c5336=a425_0x4c53[_0x3c3ffa];return _0x4c5336;};const a425_0x3f08ad=a425_0x2efa;'use strict';const express=require(a425_0x3f08ad(0x1a8)),router=express[a425_0x3f08ad(0x19e)](),auth=require(a425_0x3f08ad(0x1a5)),controller=require(a425_0x3f08ad(0x1a2));router['get']('/',auth[a425_0x3f08ad(0x1a1)](),controller['index']),router['get'](a425_0x3f08ad(0x1a6),auth[a425_0x3f08ad(0x1a1)](),controller[a425_0x3f08ad(0x19f)]),router[a425_0x3f08ad(0x1a7)]('/',auth[a425_0x3f08ad(0x1a1)](),controller['create']),router[a425_0x3f08ad(0x1a9)](a425_0x3f08ad(0x1a6),auth['isAuthenticated'](),controller[a425_0x3f08ad(0x1aa)]),router[a425_0x3f08ad(0x1a0)](a425_0x3f08ad(0x1a6),auth[a425_0x3f08ad(0x1a1)](),controller[a425_0x3f08ad(0x1a3)]),module[a425_0x3f08ad(0x1a4)]=router; \ No newline at end of file +const a425_0xbed8=['isAuthenticated','get','./intZohoField.controller','express','create','/:id','show','../../components/auth/service','destroy','delete','Router','exports','index','update'];(function(_0x29f964,_0x3bcf75){const _0xbed836=function(_0x55aeff){while(--_0x55aeff){_0x29f964['push'](_0x29f964['shift']());}};_0xbed836(++_0x3bcf75);}(a425_0xbed8,0x158));const a425_0x55ae=function(_0x29f964,_0x3bcf75){_0x29f964=_0x29f964-0x119;let _0xbed836=a425_0xbed8[_0x29f964];return _0xbed836;};const a425_0x31f00f=a425_0x55ae;'use strict';const express=require(a425_0x31f00f(0x122)),router=express[a425_0x31f00f(0x11b)](),auth=require(a425_0x31f00f(0x126)),controller=require(a425_0x31f00f(0x121));router[a425_0x31f00f(0x120)]('/',auth[a425_0x31f00f(0x11f)](),controller[a425_0x31f00f(0x11d)]),router[a425_0x31f00f(0x120)](a425_0x31f00f(0x124),auth[a425_0x31f00f(0x11f)](),controller[a425_0x31f00f(0x125)]),router['post']('/',auth['isAuthenticated'](),controller[a425_0x31f00f(0x123)]),router['put']('/:id',auth['isAuthenticated'](),controller[a425_0x31f00f(0x11e)]),router[a425_0x31f00f(0x11a)](a425_0x31f00f(0x124),auth[a425_0x31f00f(0x11f)](),controller[a425_0x31f00f(0x119)]),module[a425_0x31f00f(0x11c)]=router; \ No newline at end of file diff --git a/server/api/intZohoField/intZohoField.attributes.js b/server/api/intZohoField/intZohoField.attributes.js index 0456f30..cf81f4b 100644 --- a/server/api/intZohoField/intZohoField.attributes.js +++ b/server/api/intZohoField/intZohoField.attributes.js @@ -1 +1 @@ -const a426_0x21d3=['string','keyValue','BOOLEAN','ENUM','variable','STRING','customVariable','attributes'];(function(_0x158f8d,_0x5890a8){const _0x21d358=function(_0x4c1d48){while(--_0x4c1d48){_0x158f8d['push'](_0x158f8d['shift']());}};_0x21d358(++_0x5890a8);}(a426_0x21d3,0x140));const a426_0x4c1d=function(_0x158f8d,_0x5890a8){_0x158f8d=_0x158f8d-0x191;let _0x21d358=a426_0x21d3[_0x158f8d];return _0x21d358;};const a426_0x507157=a426_0x4c1d;'use strict';const {DataTypes}=require('sequelize'),attributes={'type':{'type':DataTypes[a426_0x507157(0x194)](a426_0x507157(0x191),a426_0x507157(0x195),a426_0x507157(0x197),a426_0x507157(0x192)),'defaultValue':a426_0x507157(0x191)},'content':{'type':DataTypes[a426_0x507157(0x196)]},'key':{'type':DataTypes[a426_0x507157(0x196)]},'keyType':{'type':DataTypes['ENUM'](a426_0x507157(0x191),a426_0x507157(0x195),a426_0x507157(0x197))},'keyContent':{'type':DataTypes['STRING']},'idField':{'type':DataTypes[a426_0x507157(0x196)]},'nameField':{'type':DataTypes[a426_0x507157(0x196)]},'customField':{'type':DataTypes[a426_0x507157(0x193)],'defaultValue':!![]},'variableName':{'type':DataTypes[a426_0x507157(0x196)]}};module['exports'][a426_0x507157(0x198)]=attributes; \ No newline at end of file +const a426_0x3ca0=['customVariable','STRING','BOOLEAN','variable','ENUM','keyValue','string'];(function(_0x7661ab,_0xe64454){const _0x3ca0e1=function(_0x534e92){while(--_0x534e92){_0x7661ab['push'](_0x7661ab['shift']());}};_0x3ca0e1(++_0xe64454);}(a426_0x3ca0,0xb5));const a426_0x534e=function(_0x7661ab,_0xe64454){_0x7661ab=_0x7661ab-0xf5;let _0x3ca0e1=a426_0x3ca0[_0x7661ab];return _0x3ca0e1;};const a426_0xd15f26=a426_0x534e;'use strict';const {DataTypes}=require('sequelize'),attributes={'type':{'type':DataTypes[a426_0xd15f26(0xfa)](a426_0xd15f26(0xf5),a426_0xd15f26(0xf9),a426_0xd15f26(0xf6),a426_0xd15f26(0xfb)),'defaultValue':a426_0xd15f26(0xf5)},'content':{'type':DataTypes['STRING']},'key':{'type':DataTypes[a426_0xd15f26(0xf7)]},'keyType':{'type':DataTypes[a426_0xd15f26(0xfa)](a426_0xd15f26(0xf5),a426_0xd15f26(0xf9),'customVariable')},'keyContent':{'type':DataTypes[a426_0xd15f26(0xf7)]},'idField':{'type':DataTypes[a426_0xd15f26(0xf7)]},'nameField':{'type':DataTypes['STRING']},'customField':{'type':DataTypes[a426_0xd15f26(0xf8)],'defaultValue':!![]},'variableName':{'type':DataTypes[a426_0xd15f26(0xf7)]}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/intZohoField/intZohoField.controller.js b/server/api/intZohoField/intZohoField.controller.js index 8c9d382..ee9aad8 100644 --- a/server/api/intZohoField/intZohoField.controller.js +++ b/server/api/intZohoField/intZohoField.controller.js @@ -1 +1 @@ -const a427_0x1ab3=['VIRTUAL','like','then','type','catch','json','nolimit','../../components/parsers/qs','error','offset','body','params','rawAttributes','merge','order','count','stack','name','create','where','end','model','destroy','keys','findOne','fields','lodash','attributes','filters','pick','send','set','map','index','limit','filter','status','api','include','fieldName','update','query','sendStatus','rows','Content-Range','sort','ZohoField','options','length','findAll','../../mysqldb','intersection','key','show'];(function(_0x317bf3,_0x30d2af){const _0x1ab31d=function(_0xbe94f7){while(--_0xbe94f7){_0x317bf3['push'](_0x317bf3['shift']());}};_0x1ab31d(++_0x30d2af);}(a427_0x1ab3,0x69));const a427_0xbe94=function(_0x317bf3,_0x30d2af){_0x317bf3=_0x317bf3-0x1c9;let _0x1ab31d=a427_0x1ab3[_0x317bf3];return _0x1ab31d;};const a427_0xa41264=a427_0xbe94;'use strict';const _=require(a427_0xa41264(0x1e6)),qs=require(a427_0xa41264(0x1d3)),logger=require('../../config/logger')(a427_0xa41264(0x1f1)),{db}=require(a427_0xa41264(0x1fe)),{Op}=require('sequelize');function respondWithResult(_0x3afcee,_0x2a59fe){return _0x2a59fe=_0x2a59fe||0xc8,function(_0x52d990){if(_0x52d990)return _0x3afcee['status'](_0x2a59fe)['json'](_0x52d990);};}function respondWithFilteredResult(_0x64a7c4,_0xbc5525){return function(_0x408bc0){const _0x31bb0c=a427_0xbe94;if(_0x408bc0){const _0x5de265=_0x408bc0[_0x31bb0c(0x1db)],_0x5c89ec=_0xbc5525['offset'];let _0x47ccf9=_0xbc5525['offset']+_0xbc5525[_0x31bb0c(0x1ee)],_0x46356d;return _0x47ccf9>=_0x5de265?(_0x47ccf9=_0x5de265,_0x46356d=0xc8):_0x46356d=0xce,_0x64a7c4[_0x31bb0c(0x1f0)](_0x46356d),_0x64a7c4[_0x31bb0c(0x1eb)](_0x31bb0c(0x1f8),_0x5c89ec+'-'+_0x47ccf9+'/'+_0x5de265)[_0x31bb0c(0x1d1)](_0x408bc0);}return null;};}function saveUpdates(_0x125779){return function(_0x2435b9){const _0xac32f0=a427_0xbe94;if(_0x2435b9)return _0x2435b9[_0xac32f0(0x1f4)](_0x125779)['then'](function(_0x82acc7){return _0x82acc7;});return null;};}function removeEntity(_0x5e5cfb){return function(_0x7ad789){const _0x140188=a427_0xbe94;if(_0x7ad789)return _0x7ad789[_0x140188(0x1e2)]()['then'](function(){const _0x19b048=_0x140188;_0x5e5cfb[_0x19b048(0x1f0)](0xcc)[_0x19b048(0x1e0)]();});};}function handleEntityNotFound(_0x2b8352){return function(_0x51f250){const _0x53ec01=a427_0xbe94;return!_0x51f250&&_0x2b8352[_0x53ec01(0x1f6)](0x194),_0x51f250;};}function handleError(_0x148ec1,_0x1e9c77){return _0x1e9c77=_0x1e9c77||0x1f4,function(_0x4c9059){const _0x31dcfa=a427_0xbe94;logger[_0x31dcfa(0x1d4)](_0x4c9059[_0x31dcfa(0x1dc)]),_0x4c9059['name']&&delete _0x4c9059['name'],_0x148ec1[_0x31dcfa(0x1f0)](_0x1e9c77)[_0x31dcfa(0x1ea)](_0x4c9059);};}exports[a427_0xa41264(0x1ed)]=function(_0x20d01a,_0x4c01e1){const _0x41a192=a427_0xa41264;let _0x2a74c5={};const _0x34d6e3={},_0x3739a1={'count':0x0,'rows':[]},_0x3226fd=_[_0x41a192(0x1ec)](db[_0x41a192(0x1fa)]['rawAttributes'],function(_0x1804c6){const _0x3ddf82=_0x41a192;return{'name':_0x1804c6[_0x3ddf82(0x1f3)],'type':_0x1804c6[_0x3ddf82(0x1cf)][_0x3ddf82(0x1ca)]};});_0x34d6e3[_0x41a192(0x1e1)]=_[_0x41a192(0x1ec)](_0x3226fd,'name'),_0x34d6e3[_0x41a192(0x1f5)]=_[_0x41a192(0x1e3)](_0x20d01a['query']),_0x34d6e3[_0x41a192(0x1e8)]=_['intersection'](_0x34d6e3[_0x41a192(0x1e1)],_0x34d6e3[_0x41a192(0x1f5)]),_0x2a74c5[_0x41a192(0x1e7)]=_[_0x41a192(0x1c9)](_0x34d6e3[_0x41a192(0x1e1)],qs[_0x41a192(0x1e5)](_0x20d01a[_0x41a192(0x1f5)][_0x41a192(0x1e5)])),_0x2a74c5[_0x41a192(0x1e7)]=_0x2a74c5[_0x41a192(0x1e7)][_0x41a192(0x1fc)]?_0x2a74c5[_0x41a192(0x1e7)]:_0x34d6e3['model'];typeof _0x20d01a['query'][_0x41a192(0x1d2)]==='undefined'&&(_0x2a74c5[_0x41a192(0x1ee)]=qs[_0x41a192(0x1ee)](_0x20d01a[_0x41a192(0x1f5)][_0x41a192(0x1ee)]),_0x2a74c5['offset']=qs[_0x41a192(0x1d5)](_0x20d01a['query'][_0x41a192(0x1d5)]));_0x2a74c5[_0x41a192(0x1da)]=qs[_0x41a192(0x1f9)](_0x20d01a[_0x41a192(0x1f5)][_0x41a192(0x1f9)]),_0x2a74c5['where']=qs[_0x41a192(0x1e8)](_[_0x41a192(0x1e9)](_0x20d01a[_0x41a192(0x1f5)],_0x34d6e3[_0x41a192(0x1e8)]),_0x3226fd);_0x20d01a[_0x41a192(0x1f5)][_0x41a192(0x1ef)]&&(_0x2a74c5['where']=_['merge'](_0x2a74c5['where'],{[Op['or']]:_[_0x41a192(0x1ec)](_0x3226fd,function(_0x52dfd6){const _0x3de69d=_0x41a192;if(_0x52dfd6[_0x3de69d(0x1cf)]!==_0x3de69d(0x1cc)){const _0x3b4d9b={};return _0x3b4d9b[_0x52dfd6[_0x3de69d(0x1dd)]]={[Op[_0x3de69d(0x1cd)]]:'%'+_0x20d01a[_0x3de69d(0x1f5)][_0x3de69d(0x1ef)]+'%'},_0x3b4d9b;}})}));_0x2a74c5=_['merge']({},_0x2a74c5,_0x20d01a['options']);const _0x513fc4={'where':_0x2a74c5[_0x41a192(0x1df)]};return db[_0x41a192(0x1fa)][_0x41a192(0x1db)](_0x513fc4)['then'](function(_0x167f3d){const _0x2295ea=_0x41a192;return _0x3739a1[_0x2295ea(0x1db)]=_0x167f3d,_0x20d01a['query']['includeAll']&&(_0x2a74c5['include']=[{'all':!![]}]),db[_0x2295ea(0x1fa)][_0x2295ea(0x1fd)](_0x2a74c5);})[_0x41a192(0x1ce)](function(_0x5047b0){const _0x2834a1=_0x41a192;return _0x3739a1[_0x2834a1(0x1f7)]=_0x5047b0,_0x3739a1;})[_0x41a192(0x1ce)](respondWithFilteredResult(_0x4c01e1,_0x2a74c5))[_0x41a192(0x1d0)](handleError(_0x4c01e1,null));},exports[a427_0xa41264(0x1cb)]=function(_0x267719,_0x199216){const _0x1678b4=a427_0xa41264;let _0x4d8664={'raw':!![],'where':{'id':_0x267719[_0x1678b4(0x1d7)]['id']}};const _0x4f566e={};return _0x4f566e[_0x1678b4(0x1e1)]=_['keys'](db[_0x1678b4(0x1fa)][_0x1678b4(0x1d8)]),_0x4f566e[_0x1678b4(0x1f5)]=_['keys'](_0x267719[_0x1678b4(0x1f5)]),_0x4f566e[_0x1678b4(0x1e8)]=_['intersection'](_0x4f566e[_0x1678b4(0x1e1)],_0x4f566e[_0x1678b4(0x1f5)]),_0x4d8664[_0x1678b4(0x1e7)]=_['intersection'](_0x4f566e[_0x1678b4(0x1e1)],qs[_0x1678b4(0x1e5)](_0x267719[_0x1678b4(0x1f5)][_0x1678b4(0x1e5)])),_0x4d8664['attributes']=_0x4d8664[_0x1678b4(0x1e7)][_0x1678b4(0x1fc)]?_0x4d8664[_0x1678b4(0x1e7)]:_0x4f566e['model'],_0x267719[_0x1678b4(0x1f5)]['includeAll']&&(_0x4d8664[_0x1678b4(0x1f2)]=[{'all':!![]}]),_0x4d8664=_[_0x1678b4(0x1d9)]({},_0x4d8664,_0x267719[_0x1678b4(0x1fb)]),db[_0x1678b4(0x1fa)]['findOne'](_0x4d8664)[_0x1678b4(0x1ce)](handleEntityNotFound(_0x199216,null))['then'](respondWithResult(_0x199216,null))[_0x1678b4(0x1d0)](handleError(_0x199216,null));},exports[a427_0xa41264(0x1de)]=function(_0x301d33,_0x864328){const _0x3574a8=a427_0xa41264;return db[_0x3574a8(0x1fa)]['create'](_0x301d33[_0x3574a8(0x1d6)],{})[_0x3574a8(0x1ce)](respondWithResult(_0x864328,0xc9))[_0x3574a8(0x1d0)](handleError(_0x864328,null));},exports[a427_0xa41264(0x1f4)]=function(_0x382c76,_0x1ec1db){const _0x3699d8=a427_0xa41264;return _0x382c76[_0x3699d8(0x1d6)]['id']&&delete _0x382c76[_0x3699d8(0x1d6)]['id'],db[_0x3699d8(0x1fa)][_0x3699d8(0x1e4)]({'where':{'id':_0x382c76['params']['id']}})[_0x3699d8(0x1ce)](handleEntityNotFound(_0x1ec1db,null))[_0x3699d8(0x1ce)](saveUpdates(_0x382c76['body'],null))[_0x3699d8(0x1ce)](respondWithResult(_0x1ec1db,null))['catch'](handleError(_0x1ec1db,null));},exports['destroy']=function(_0x4c9f1d,_0x2588e4){const _0x36271e=a427_0xa41264;return db[_0x36271e(0x1fa)][_0x36271e(0x1e4)]({'where':{'id':_0x4c9f1d['params']['id']}})[_0x36271e(0x1ce)](handleEntityNotFound(_0x2588e4,null))[_0x36271e(0x1ce)](removeEntity(_0x2588e4,null))['catch'](handleError(_0x2588e4,null));}; \ No newline at end of file +const a427_0x53cb=['model','Content-Range','keys','VIRTUAL','where','offset','sendStatus','status','sort','filters','then','fields','../../config/logger','options','params','../../mysqldb','update','findOne','limit','undefined','like','api','end','filter','catch','name','fieldName','send','count','length','intersection','rows','merge','attributes','lodash','include','json','error','rawAttributes','body','sequelize','includeAll','pick','create','destroy','type','../../components/parsers/qs','ZohoField','map','findAll','query','key','index'];(function(_0x2fb3e9,_0x45df05){const _0x53cb08=function(_0x5d83be){while(--_0x5d83be){_0x2fb3e9['push'](_0x2fb3e9['shift']());}};_0x53cb08(++_0x45df05);}(a427_0x53cb,0x8f));const a427_0x5d83=function(_0x2fb3e9,_0x45df05){_0x2fb3e9=_0x2fb3e9-0x117;let _0x53cb08=a427_0x53cb[_0x2fb3e9];return _0x53cb08;};const a427_0x233b2e=a427_0x5d83;'use strict';const _=require(a427_0x233b2e(0x149)),qs=require(a427_0x233b2e(0x120)),logger=require(a427_0x233b2e(0x133))(a427_0x233b2e(0x13c)),{db}=require(a427_0x233b2e(0x136)),{Op}=require(a427_0x233b2e(0x11a));function respondWithResult(_0x3c728a,_0x5e1d98){return _0x5e1d98=_0x5e1d98||0xc8,function(_0x4b0db4){const _0x26b9ea=a427_0x5d83;if(_0x4b0db4)return _0x3c728a[_0x26b9ea(0x12e)](_0x5e1d98)[_0x26b9ea(0x14b)](_0x4b0db4);};}function respondWithFilteredResult(_0x38f9ba,_0x1179ae){return function(_0x10f84e){const _0x286daf=a427_0x5d83;if(_0x10f84e){const _0x19b844=_0x10f84e[_0x286daf(0x143)],_0x55d7f3=_0x1179ae[_0x286daf(0x12c)];let _0x19e1bc=_0x1179ae[_0x286daf(0x12c)]+_0x1179ae['limit'],_0x315591;return _0x19e1bc>=_0x19b844?(_0x19e1bc=_0x19b844,_0x315591=0xc8):_0x315591=0xce,_0x38f9ba[_0x286daf(0x12e)](_0x315591),_0x38f9ba['set'](_0x286daf(0x128),_0x55d7f3+'-'+_0x19e1bc+'/'+_0x19b844)['json'](_0x10f84e);}return null;};}function saveUpdates(_0x2a7a12){return function(_0x1c0426){const _0x4b1c4d=a427_0x5d83;if(_0x1c0426)return _0x1c0426[_0x4b1c4d(0x137)](_0x2a7a12)[_0x4b1c4d(0x131)](function(_0x3cda33){return _0x3cda33;});return null;};}function removeEntity(_0x4b2376){return function(_0x13869c){const _0x4e7495=a427_0x5d83;if(_0x13869c)return _0x13869c[_0x4e7495(0x11e)]()[_0x4e7495(0x131)](function(){const _0x1e7ad3=_0x4e7495;_0x4b2376[_0x1e7ad3(0x12e)](0xcc)[_0x1e7ad3(0x13d)]();});};}function handleEntityNotFound(_0x59f730){return function(_0x138a15){const _0x140a3a=a427_0x5d83;return!_0x138a15&&_0x59f730[_0x140a3a(0x12d)](0x194),_0x138a15;};}function handleError(_0x1f5f76,_0x4b565b){return _0x4b565b=_0x4b565b||0x1f4,function(_0xc31b03){const _0x5d5973=a427_0x5d83;logger[_0x5d5973(0x117)](_0xc31b03['stack']),_0xc31b03[_0x5d5973(0x140)]&&delete _0xc31b03[_0x5d5973(0x140)],_0x1f5f76[_0x5d5973(0x12e)](_0x4b565b)[_0x5d5973(0x142)](_0xc31b03);};}exports[a427_0x233b2e(0x126)]=function(_0x5e2e3b,_0x259114){const _0x1ba606=a427_0x233b2e;let _0x5f3075={};const _0x14dddc={},_0x5e2dcb={'count':0x0,'rows':[]},_0xdae2c0=_[_0x1ba606(0x122)](db[_0x1ba606(0x121)][_0x1ba606(0x118)],function(_0x36bc07){const _0x363672=_0x1ba606;return{'name':_0x36bc07[_0x363672(0x141)],'type':_0x36bc07[_0x363672(0x11f)][_0x363672(0x125)]};});_0x14dddc[_0x1ba606(0x127)]=_[_0x1ba606(0x122)](_0xdae2c0,_0x1ba606(0x140)),_0x14dddc[_0x1ba606(0x124)]=_[_0x1ba606(0x129)](_0x5e2e3b[_0x1ba606(0x124)]),_0x14dddc[_0x1ba606(0x130)]=_[_0x1ba606(0x145)](_0x14dddc[_0x1ba606(0x127)],_0x14dddc['query']),_0x5f3075[_0x1ba606(0x148)]=_[_0x1ba606(0x145)](_0x14dddc[_0x1ba606(0x127)],qs[_0x1ba606(0x132)](_0x5e2e3b[_0x1ba606(0x124)][_0x1ba606(0x132)])),_0x5f3075[_0x1ba606(0x148)]=_0x5f3075['attributes'][_0x1ba606(0x144)]?_0x5f3075[_0x1ba606(0x148)]:_0x14dddc['model'];typeof _0x5e2e3b[_0x1ba606(0x124)]['nolimit']===_0x1ba606(0x13a)&&(_0x5f3075[_0x1ba606(0x139)]=qs[_0x1ba606(0x139)](_0x5e2e3b[_0x1ba606(0x124)][_0x1ba606(0x139)]),_0x5f3075['offset']=qs['offset'](_0x5e2e3b[_0x1ba606(0x124)][_0x1ba606(0x12c)]));_0x5f3075['order']=qs[_0x1ba606(0x12f)](_0x5e2e3b[_0x1ba606(0x124)][_0x1ba606(0x12f)]),_0x5f3075[_0x1ba606(0x12b)]=qs['filters'](_[_0x1ba606(0x11c)](_0x5e2e3b[_0x1ba606(0x124)],_0x14dddc[_0x1ba606(0x130)]),_0xdae2c0);_0x5e2e3b[_0x1ba606(0x124)][_0x1ba606(0x13e)]&&(_0x5f3075[_0x1ba606(0x12b)]=_[_0x1ba606(0x147)](_0x5f3075[_0x1ba606(0x12b)],{[Op['or']]:_[_0x1ba606(0x122)](_0xdae2c0,function(_0x5799f3){const _0x261fc9=_0x1ba606;if(_0x5799f3['type']!==_0x261fc9(0x12a)){const _0x1130a9={};return _0x1130a9[_0x5799f3[_0x261fc9(0x140)]]={[Op[_0x261fc9(0x13b)]]:'%'+_0x5e2e3b[_0x261fc9(0x124)]['filter']+'%'},_0x1130a9;}})}));_0x5f3075=_[_0x1ba606(0x147)]({},_0x5f3075,_0x5e2e3b[_0x1ba606(0x134)]);const _0x545161={'where':_0x5f3075[_0x1ba606(0x12b)]};return db['ZohoField']['count'](_0x545161)[_0x1ba606(0x131)](function(_0x3f943c){const _0x17f7e8=_0x1ba606;return _0x5e2dcb[_0x17f7e8(0x143)]=_0x3f943c,_0x5e2e3b[_0x17f7e8(0x124)][_0x17f7e8(0x11b)]&&(_0x5f3075[_0x17f7e8(0x14a)]=[{'all':!![]}]),db[_0x17f7e8(0x121)][_0x17f7e8(0x123)](_0x5f3075);})['then'](function(_0x3b0b7a){const _0x5bae78=_0x1ba606;return _0x5e2dcb[_0x5bae78(0x146)]=_0x3b0b7a,_0x5e2dcb;})[_0x1ba606(0x131)](respondWithFilteredResult(_0x259114,_0x5f3075))[_0x1ba606(0x13f)](handleError(_0x259114,null));},exports['show']=function(_0x377820,_0x300d3a){const _0x12e122=a427_0x233b2e;let _0x30e389={'raw':!![],'where':{'id':_0x377820[_0x12e122(0x135)]['id']}};const _0x1f17a3={};return _0x1f17a3[_0x12e122(0x127)]=_[_0x12e122(0x129)](db[_0x12e122(0x121)][_0x12e122(0x118)]),_0x1f17a3[_0x12e122(0x124)]=_['keys'](_0x377820[_0x12e122(0x124)]),_0x1f17a3['filters']=_[_0x12e122(0x145)](_0x1f17a3['model'],_0x1f17a3['query']),_0x30e389[_0x12e122(0x148)]=_[_0x12e122(0x145)](_0x1f17a3[_0x12e122(0x127)],qs[_0x12e122(0x132)](_0x377820[_0x12e122(0x124)][_0x12e122(0x132)])),_0x30e389['attributes']=_0x30e389[_0x12e122(0x148)][_0x12e122(0x144)]?_0x30e389[_0x12e122(0x148)]:_0x1f17a3[_0x12e122(0x127)],_0x377820['query']['includeAll']&&(_0x30e389['include']=[{'all':!![]}]),_0x30e389=_['merge']({},_0x30e389,_0x377820[_0x12e122(0x134)]),db[_0x12e122(0x121)][_0x12e122(0x138)](_0x30e389)[_0x12e122(0x131)](handleEntityNotFound(_0x300d3a,null))[_0x12e122(0x131)](respondWithResult(_0x300d3a,null))[_0x12e122(0x13f)](handleError(_0x300d3a,null));},exports[a427_0x233b2e(0x11d)]=function(_0x2cfdda,_0x27962f){const _0xe358ca=a427_0x233b2e;return db[_0xe358ca(0x121)][_0xe358ca(0x11d)](_0x2cfdda[_0xe358ca(0x119)],{})[_0xe358ca(0x131)](respondWithResult(_0x27962f,0xc9))[_0xe358ca(0x13f)](handleError(_0x27962f,null));},exports[a427_0x233b2e(0x137)]=function(_0x554d57,_0x212b1e){const _0x473092=a427_0x233b2e;return _0x554d57['body']['id']&&delete _0x554d57[_0x473092(0x119)]['id'],db['ZohoField'][_0x473092(0x138)]({'where':{'id':_0x554d57[_0x473092(0x135)]['id']}})[_0x473092(0x131)](handleEntityNotFound(_0x212b1e,null))['then'](saveUpdates(_0x554d57[_0x473092(0x119)],null))[_0x473092(0x131)](respondWithResult(_0x212b1e,null))['catch'](handleError(_0x212b1e,null));},exports['destroy']=function(_0x264626,_0x501bfb){const _0x58e5c8=a427_0x233b2e;return db[_0x58e5c8(0x121)][_0x58e5c8(0x138)]({'where':{'id':_0x264626['params']['id']}})[_0x58e5c8(0x131)](handleEntityNotFound(_0x501bfb,null))[_0x58e5c8(0x131)](removeEntity(_0x501bfb,null))[_0x58e5c8(0x13f)](handleError(_0x501bfb,null));}; \ No newline at end of file diff --git a/server/api/intZohoField/intZohoField.model.js b/server/api/intZohoField/intZohoField.model.js index fc2fb32..15933c0 100644 --- a/server/api/intZohoField/intZohoField.model.js +++ b/server/api/intZohoField/intZohoField.model.js @@ -1 +1 @@ -const a428_0x1cfc=['./intZohoField.options','init','./intZohoField.attributes','function','ZohoField','exports','sequelize'];(function(_0x4666d7,_0x1dfe0c){const _0x1cfc18=function(_0x4c9fc8){while(--_0x4c9fc8){_0x4666d7['push'](_0x4666d7['shift']());}};_0x1cfc18(++_0x1dfe0c);}(a428_0x1cfc,0x103));const a428_0x4c9f=function(_0x4666d7,_0x1dfe0c){_0x4666d7=_0x4666d7-0xd1;let _0x1cfc18=a428_0x1cfc[_0x4666d7];return _0x1cfc18;};const a428_0x36fe0d=a428_0x4c9f;'use strict';const {Model}=require(a428_0x36fe0d(0xd7)),{attributes}=require(a428_0x36fe0d(0xd3)),{options}=require(a428_0x36fe0d(0xd1));class ZohoField extends Model{}function init(_0x2df930,_0x511a6b){const _0x230f1a=a428_0x36fe0d,_0x4387ae=options(_0x2df930),_0x57033b=typeof _0x511a6b===_0x230f1a(0xd4)?_0x511a6b(_0x4387ae):_0x4387ae;return ZohoField['init'](attributes,_0x57033b),ZohoField;}module['exports'][a428_0x36fe0d(0xd5)]=ZohoField,module[a428_0x36fe0d(0xd6)][a428_0x36fe0d(0xd2)]=init; \ No newline at end of file +const a428_0x161c=['./intZohoField.attributes','function','sequelize','./intZohoField.options','init','exports'];(function(_0x303ce4,_0x2c83d6){const _0x161cee=function(_0x1bddd9){while(--_0x1bddd9){_0x303ce4['push'](_0x303ce4['shift']());}};_0x161cee(++_0x2c83d6);}(a428_0x161c,0x97));const a428_0x1bdd=function(_0x303ce4,_0x2c83d6){_0x303ce4=_0x303ce4-0xf8;let _0x161cee=a428_0x161c[_0x303ce4];return _0x161cee;};const a428_0x2c5a52=a428_0x1bdd;'use strict';const {Model}=require(a428_0x2c5a52(0xf9)),{attributes}=require(a428_0x2c5a52(0xfd)),{options}=require(a428_0x2c5a52(0xfa));class ZohoField extends Model{}function init(_0x2c0e7b,_0x3bd346){const _0x450c26=a428_0x2c5a52,_0x23a318=options(_0x2c0e7b),_0x2f0965=typeof _0x3bd346===_0x450c26(0xf8)?_0x3bd346(_0x23a318):_0x23a318;return ZohoField[_0x450c26(0xfb)](attributes,_0x2f0965),ZohoField;}module[a428_0x2c5a52(0xfc)]['ZohoField']=ZohoField,module['exports'][a428_0x2c5a52(0xfb)]=init; \ No newline at end of file diff --git a/server/api/intZohoField/intZohoField.options.js b/server/api/intZohoField/intZohoField.options.js index 25d7594..097f11a 100644 --- a/server/api/intZohoField/intZohoField.options.js +++ b/server/api/intZohoField/intZohoField.options.js @@ -1 +1 @@ -var a429_0x5459=['exports','int_zoho_fields','idField','options'];(function(_0x51dd65,_0xd728a8){var _0x545915=function(_0x210983){while(--_0x210983){_0x51dd65['push'](_0x51dd65['shift']());}};_0x545915(++_0xd728a8);}(a429_0x5459,0x1bd));var a429_0x2109=function(_0x51dd65,_0xd728a8){_0x51dd65=_0x51dd65-0x144;var _0x545915=a429_0x5459[_0x51dd65];return _0x545915;};var a429_0x469be6=a429_0x2109;function options(_0x21bbd3){var _0x30a62e=a429_0x2109;return{'sequelize':_0x21bbd3,'tableName':_0x30a62e(0x144),'paranoid':![],'indexes':[{'name':'zoho_unique_index','fields':[_0x30a62e(0x145),'FieldId'],'unique':!![]}],'timestamps':!![]};}module[a429_0x469be6(0x147)][a429_0x469be6(0x146)]=options; \ No newline at end of file +var a429_0x2cc6=['options','idField','int_zoho_fields','exports','zoho_unique_index','FieldId'];(function(_0x5303ec,_0x3ba30a){var _0x2cc647=function(_0x2bdf99){while(--_0x2bdf99){_0x5303ec['push'](_0x5303ec['shift']());}};_0x2cc647(++_0x3ba30a);}(a429_0x2cc6,0x14e));var a429_0x2bdf=function(_0x5303ec,_0x3ba30a){_0x5303ec=_0x5303ec-0xc9;var _0x2cc647=a429_0x2cc6[_0x5303ec];return _0x2cc647;};var a429_0x3907a0=a429_0x2bdf;function options(_0xaf7cc0){var _0xb9e810=a429_0x2bdf;return{'sequelize':_0xaf7cc0,'tableName':_0xb9e810(0xcd),'paranoid':![],'indexes':[{'name':_0xb9e810(0xc9),'fields':[_0xb9e810(0xcc),_0xb9e810(0xca)],'unique':!![]}],'timestamps':!![]};}module[a429_0x3907a0(0xce)][a429_0x3907a0(0xcb)]=options; \ No newline at end of file diff --git a/server/api/integration/index.js b/server/api/integration/index.js index 623a507..da67126 100644 --- a/server/api/integration/index.js +++ b/server/api/integration/index.js @@ -1 +1 @@ -const a430_0x965c=['Router','create','get','put','update','express','exports','post','/:id','index','./integration.controller','isAuthenticated','../../components/auth/service'];(function(_0x1db692,_0x234b1d){const _0x965c86=function(_0x1c0224){while(--_0x1c0224){_0x1db692['push'](_0x1db692['shift']());}};_0x965c86(++_0x234b1d);}(a430_0x965c,0x88));const a430_0x1c02=function(_0x1db692,_0x234b1d){_0x1db692=_0x1db692-0x1b1;let _0x965c86=a430_0x965c[_0x1db692];return _0x965c86;};const a430_0xe24097=a430_0x1c02;'use strict';const express=require(a430_0xe24097(0x1bd)),router=express[a430_0xe24097(0x1b8)](),auth=require(a430_0xe24097(0x1b7)),controller=require(a430_0xe24097(0x1b5));router[a430_0xe24097(0x1ba)]('/',auth[a430_0xe24097(0x1b6)](),controller[a430_0xe24097(0x1b4)]),router[a430_0xe24097(0x1ba)](a430_0xe24097(0x1b3),auth[a430_0xe24097(0x1b6)](),controller['show']),router[a430_0xe24097(0x1b2)]('/',auth[a430_0xe24097(0x1b6)](),controller[a430_0xe24097(0x1b9)]),router[a430_0xe24097(0x1bb)](a430_0xe24097(0x1b3),auth[a430_0xe24097(0x1b6)](),controller[a430_0xe24097(0x1bc)]),router['delete'](a430_0xe24097(0x1b3),auth[a430_0xe24097(0x1b6)](),controller['destroy']),module[a430_0xe24097(0x1b1)]=router; \ No newline at end of file +const a430_0x1c9c=['delete','./integration.controller','update','isAuthenticated','index','/:id','../../components/auth/service','get','destroy','show','put','post'];(function(_0x42f3b7,_0x56fbdb){const _0x1c9c77=function(_0x43a859){while(--_0x43a859){_0x42f3b7['push'](_0x42f3b7['shift']());}};_0x1c9c77(++_0x56fbdb);}(a430_0x1c9c,0xaa));const a430_0x43a8=function(_0x42f3b7,_0x56fbdb){_0x42f3b7=_0x42f3b7-0x15f;let _0x1c9c77=a430_0x1c9c[_0x42f3b7];return _0x1c9c77;};const a430_0x36d617=a430_0x43a8;'use strict';const express=require('express'),router=express['Router'](),auth=require(a430_0x36d617(0x163)),controller=require(a430_0x36d617(0x16a));router['get']('/',auth[a430_0x36d617(0x160)](),controller[a430_0x36d617(0x161)]),router[a430_0x36d617(0x164)](a430_0x36d617(0x162),auth[a430_0x36d617(0x160)](),controller[a430_0x36d617(0x166)]),router[a430_0x36d617(0x168)]('/',auth[a430_0x36d617(0x160)](),controller['create']),router[a430_0x36d617(0x167)](a430_0x36d617(0x162),auth[a430_0x36d617(0x160)](),controller[a430_0x36d617(0x15f)]),router[a430_0x36d617(0x169)]('/:id',auth[a430_0x36d617(0x160)](),controller[a430_0x36d617(0x165)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/integration/integration.attributes.js b/server/api/integration/integration.attributes.js index eb1fd61..adb18ea 100644 --- a/server/api/integration/integration.attributes.js +++ b/server/api/integration/integration.attributes.js @@ -1 +1 @@ -const a431_0x48e4=['state','INTEGER','BOOLEAN','sequelize','unique_name_and_version','STRING','attributes'];(function(_0x14572e,_0x5ddf5a){const _0x48e49c=function(_0x4ba8ae){while(--_0x4ba8ae){_0x14572e['push'](_0x14572e['shift']());}};_0x48e49c(++_0x5ddf5a);}(a431_0x48e4,0x1ee));const a431_0x4ba8=function(_0x14572e,_0x5ddf5a){_0x14572e=_0x14572e-0x153;let _0x48e49c=a431_0x48e4[_0x14572e];return _0x48e49c;};const a431_0x29af8c=a431_0x4ba8;'use strict';const {DataTypes}=require(a431_0x29af8c(0x159)),attributes={'name':{'type':DataTypes[a431_0x29af8c(0x154)],'allowNull':![],'unique':a431_0x29af8c(0x153)},'version':{'type':DataTypes[a431_0x29af8c(0x154)],'allowNull':![],'unique':'unique_name_and_version'},'main':{'type':DataTypes[a431_0x29af8c(0x154)],'defaultValue':'app.js'},'filename':{'type':DataTypes[a431_0x29af8c(0x154)]},'path':{'type':DataTypes['STRING']},'type':{'type':DataTypes[a431_0x29af8c(0x154)]},'size':{'type':DataTypes[a431_0x29af8c(0x157)]},'active':{'type':DataTypes[a431_0x29af8c(0x158)],'defaultValue':![]},'author':{'type':DataTypes[a431_0x29af8c(0x154)]},'logo':{'type':DataTypes[a431_0x29af8c(0x154)]},'state':{'type':DataTypes[a431_0x29af8c(0x154)],'unique':a431_0x29af8c(0x156)},'description':{'type':DataTypes[a431_0x29af8c(0x154)]},'title':{'type':DataTypes['STRING']},'remoteUri':{'type':DataTypes[a431_0x29af8c(0x154)]},'link':{'type':DataTypes[a431_0x29af8c(0x154)],'defaultValue':'#'}};module['exports'][a431_0x29af8c(0x155)]=attributes; \ No newline at end of file +const a431_0x594f=['sequelize','unique_name_and_version','INTEGER','BOOLEAN','attributes','STRING'];(function(_0x5edec7,_0x1bbfa4){const _0x594f25=function(_0x3fb600){while(--_0x3fb600){_0x5edec7['push'](_0x5edec7['shift']());}};_0x594f25(++_0x1bbfa4);}(a431_0x594f,0x13a));const a431_0x3fb6=function(_0x5edec7,_0x1bbfa4){_0x5edec7=_0x5edec7-0x11a;let _0x594f25=a431_0x594f[_0x5edec7];return _0x594f25;};const a431_0x44e78e=a431_0x3fb6;'use strict';const {DataTypes}=require(a431_0x44e78e(0x11e)),attributes={'name':{'type':DataTypes[a431_0x44e78e(0x11d)],'allowNull':![],'unique':a431_0x44e78e(0x11f)},'version':{'type':DataTypes[a431_0x44e78e(0x11d)],'allowNull':![],'unique':'unique_name_and_version'},'main':{'type':DataTypes['STRING'],'defaultValue':'app.js'},'filename':{'type':DataTypes[a431_0x44e78e(0x11d)]},'path':{'type':DataTypes['STRING']},'type':{'type':DataTypes['STRING']},'size':{'type':DataTypes[a431_0x44e78e(0x11a)]},'active':{'type':DataTypes[a431_0x44e78e(0x11b)],'defaultValue':![]},'author':{'type':DataTypes[a431_0x44e78e(0x11d)]},'logo':{'type':DataTypes[a431_0x44e78e(0x11d)]},'state':{'type':DataTypes['STRING'],'unique':'state'},'description':{'type':DataTypes[a431_0x44e78e(0x11d)]},'title':{'type':DataTypes['STRING']},'remoteUri':{'type':DataTypes[a431_0x44e78e(0x11d)]},'link':{'type':DataTypes[a431_0x44e78e(0x11d)],'defaultValue':'#'}};module['exports'][a431_0x44e78e(0x11c)]=attributes; \ No newline at end of file diff --git a/server/api/integration/integration.controller.js b/server/api/integration/integration.controller.js index 65ecedf..e7c87da 100644 --- a/server/api/integration/integration.controller.js +++ b/server/api/integration/integration.controller.js @@ -1 +1 @@ -const a432_0x13ce=['lodash','pick','then','undefined','Integration','limit','length','filters','fields','api','intersection','VIRTUAL','count','fieldName','where','set','options','attributes','sequelize','type','model','params','status','rows','../../config/logger','sort','update','merge','destroy','json','keys','create','index','offset','name','catch','send','sendStatus','../../components/parsers/qs','end','like','map','rawAttributes','findAll','filter','body','nolimit','show','include','findOne','query'];(function(_0x2eed49,_0x539f66){const _0x13ce86=function(_0x45c6b2){while(--_0x45c6b2){_0x2eed49['push'](_0x2eed49['shift']());}};_0x13ce86(++_0x539f66);}(a432_0x13ce,0xed));const a432_0x45c6=function(_0x2eed49,_0x539f66){_0x2eed49=_0x2eed49-0x105;let _0x13ce86=a432_0x13ce[_0x2eed49];return _0x13ce86;};const a432_0x2b153b=a432_0x45c6;'use strict';const _=require(a432_0x2b153b(0x117)),qs=require(a432_0x2b153b(0x10a)),logger=require(a432_0x2b153b(0x12f))(a432_0x2b153b(0x120)),{db}=require('../../mysqldb'),{Op}=require(a432_0x2b153b(0x129));function respondWithResult(_0x48ec8e,_0xbad98d){return _0xbad98d=_0xbad98d||0xc8,function(_0x4ad77f){const _0x4e8cc8=a432_0x45c6;if(_0x4ad77f)return _0x48ec8e[_0x4e8cc8(0x12d)](_0xbad98d)[_0x4e8cc8(0x134)](_0x4ad77f);};}function respondWithFilteredResult(_0x3442bd,_0x3d0ba4){return function(_0x5e5007){const _0x5c743d=a432_0x45c6;if(_0x5e5007){const _0x5632ae=_0x5e5007[_0x5c743d(0x123)],_0xcb2bb4=_0x3d0ba4[_0x5c743d(0x105)];let _0x4b1fcb=_0x3d0ba4[_0x5c743d(0x105)]+_0x3d0ba4[_0x5c743d(0x11c)],_0x38de8e;return _0x4b1fcb>=_0x5632ae?(_0x4b1fcb=_0x5632ae,_0x38de8e=0xc8):_0x38de8e=0xce,_0x3442bd[_0x5c743d(0x12d)](_0x38de8e),_0x3442bd[_0x5c743d(0x126)]('Content-Range',_0xcb2bb4+'-'+_0x4b1fcb+'/'+_0x5632ae)[_0x5c743d(0x134)](_0x5e5007);}return null;};}function saveUpdates(_0x3e484d){return function(_0x133ec1){const _0x27855e=a432_0x45c6;if(_0x133ec1)return _0x133ec1[_0x27855e(0x131)](_0x3e484d)[_0x27855e(0x119)](function(_0x35affd){return _0x35affd;});return null;};}function removeEntity(_0x362c25){return function(_0x3a1149){const _0x5b0c15=a432_0x45c6;if(_0x3a1149)return _0x3a1149[_0x5b0c15(0x133)]()[_0x5b0c15(0x119)](function(){const _0x2220e9=_0x5b0c15;_0x362c25[_0x2220e9(0x12d)](0xcc)[_0x2220e9(0x10b)]();});};}function handleEntityNotFound(_0x252f63){return function(_0x16ed27){const _0x34a2c0=a432_0x45c6;return!_0x16ed27&&_0x252f63[_0x34a2c0(0x109)](0x194),_0x16ed27;};}function handleError(_0x47832c,_0x575c60){return _0x575c60=_0x575c60||0x1f4,function(_0x136f9a){const _0x32b304=a432_0x45c6;logger['error'](_0x136f9a['stack']),_0x136f9a[_0x32b304(0x106)]&&delete _0x136f9a[_0x32b304(0x106)],_0x47832c[_0x32b304(0x12d)](_0x575c60)[_0x32b304(0x108)](_0x136f9a);};}exports[a432_0x2b153b(0x137)]=function(_0x51c5ae,_0xf423a){const _0x2649bd=a432_0x2b153b;let _0x6e5824={};const _0xd0997={},_0x4b5ecd={'count':0x0,'rows':[]},_0x31cf9e=_[_0x2649bd(0x10d)](db[_0x2649bd(0x11b)]['rawAttributes'],function(_0x356aa7){const _0xdc2487=_0x2649bd;return{'name':_0x356aa7[_0xdc2487(0x124)],'type':_0x356aa7['type']['key']};});_0xd0997[_0x2649bd(0x12b)]=_[_0x2649bd(0x10d)](_0x31cf9e,_0x2649bd(0x106)),_0xd0997[_0x2649bd(0x116)]=_[_0x2649bd(0x135)](_0x51c5ae[_0x2649bd(0x116)]),_0xd0997[_0x2649bd(0x11e)]=_[_0x2649bd(0x121)](_0xd0997['model'],_0xd0997[_0x2649bd(0x116)]),_0x6e5824[_0x2649bd(0x128)]=_[_0x2649bd(0x121)](_0xd0997[_0x2649bd(0x12b)],qs[_0x2649bd(0x11f)](_0x51c5ae[_0x2649bd(0x116)]['fields'])),_0x6e5824[_0x2649bd(0x128)]=_0x6e5824[_0x2649bd(0x128)][_0x2649bd(0x11d)]?_0x6e5824[_0x2649bd(0x128)]:_0xd0997['model'];typeof _0x51c5ae[_0x2649bd(0x116)][_0x2649bd(0x112)]===_0x2649bd(0x11a)&&(_0x6e5824['limit']=qs[_0x2649bd(0x11c)](_0x51c5ae[_0x2649bd(0x116)][_0x2649bd(0x11c)]),_0x6e5824['offset']=qs[_0x2649bd(0x105)](_0x51c5ae[_0x2649bd(0x116)][_0x2649bd(0x105)]));_0x6e5824['order']=qs['sort'](_0x51c5ae[_0x2649bd(0x116)][_0x2649bd(0x130)]),_0x6e5824[_0x2649bd(0x125)]=qs[_0x2649bd(0x11e)](_[_0x2649bd(0x118)](_0x51c5ae[_0x2649bd(0x116)],_0xd0997[_0x2649bd(0x11e)]),_0x31cf9e);_0x51c5ae[_0x2649bd(0x116)][_0x2649bd(0x110)]&&(_0x6e5824['where']=_[_0x2649bd(0x132)](_0x6e5824[_0x2649bd(0x125)],{[Op['or']]:_[_0x2649bd(0x10d)](_0x31cf9e,function(_0x41bddd){const _0xa16e9d=_0x2649bd;if(_0x41bddd[_0xa16e9d(0x12a)]!==_0xa16e9d(0x122)){const _0x261d65={};return _0x261d65[_0x41bddd[_0xa16e9d(0x106)]]={[Op[_0xa16e9d(0x10c)]]:'%'+_0x51c5ae[_0xa16e9d(0x116)][_0xa16e9d(0x110)]+'%'},_0x261d65;}})}));_0x6e5824=_[_0x2649bd(0x132)]({},_0x6e5824,_0x51c5ae[_0x2649bd(0x127)]);const _0x454acb={'where':_0x6e5824['where']};return db['Integration'][_0x2649bd(0x123)](_0x454acb)[_0x2649bd(0x119)](function(_0xa1fcf0){const _0xe9cd9f=_0x2649bd;return _0x4b5ecd[_0xe9cd9f(0x123)]=_0xa1fcf0,_0x51c5ae[_0xe9cd9f(0x116)]['includeAll']&&(_0x6e5824[_0xe9cd9f(0x114)]=[{'all':!![]}]),db[_0xe9cd9f(0x11b)][_0xe9cd9f(0x10f)](_0x6e5824);})[_0x2649bd(0x119)](function(_0x547bc1){const _0x1b0e8a=_0x2649bd;return _0x4b5ecd[_0x1b0e8a(0x12e)]=_0x547bc1,_0x4b5ecd;})[_0x2649bd(0x119)](respondWithFilteredResult(_0xf423a,_0x6e5824))['catch'](handleError(_0xf423a,null));},exports[a432_0x2b153b(0x113)]=function(_0x5ebdc1,_0x6f3fd0){const _0x18a365=a432_0x2b153b;let _0x8f0005={'raw':![],'where':{'id':_0x5ebdc1[_0x18a365(0x12c)]['id']}};const _0x538fe5={};return _0x538fe5[_0x18a365(0x12b)]=_[_0x18a365(0x135)](db['Integration'][_0x18a365(0x10e)]),_0x538fe5[_0x18a365(0x116)]=_['keys'](_0x5ebdc1[_0x18a365(0x116)]),_0x538fe5[_0x18a365(0x11e)]=_['intersection'](_0x538fe5[_0x18a365(0x12b)],_0x538fe5[_0x18a365(0x116)]),_0x8f0005[_0x18a365(0x128)]=_['intersection'](_0x538fe5[_0x18a365(0x12b)],qs[_0x18a365(0x11f)](_0x5ebdc1[_0x18a365(0x116)][_0x18a365(0x11f)])),_0x8f0005[_0x18a365(0x128)]=_0x8f0005[_0x18a365(0x128)][_0x18a365(0x11d)]?_0x8f0005[_0x18a365(0x128)]:_0x538fe5['model'],_0x5ebdc1[_0x18a365(0x116)]['includeAll']&&(_0x8f0005[_0x18a365(0x114)]=[{'all':!![]}]),_0x8f0005=_['merge']({},_0x8f0005,_0x5ebdc1[_0x18a365(0x127)]),db[_0x18a365(0x11b)][_0x18a365(0x115)](_0x8f0005)[_0x18a365(0x119)](handleEntityNotFound(_0x6f3fd0,null))[_0x18a365(0x119)](respondWithResult(_0x6f3fd0,null))['catch'](handleError(_0x6f3fd0,null));},exports['create']=function(_0x46c2d3,_0x5d2de5){const _0x54ac3e=a432_0x2b153b;return db[_0x54ac3e(0x11b)][_0x54ac3e(0x136)](_0x46c2d3[_0x54ac3e(0x111)],{})[_0x54ac3e(0x119)](respondWithResult(_0x5d2de5,0xc9))[_0x54ac3e(0x107)](handleError(_0x5d2de5,null));},exports[a432_0x2b153b(0x131)]=function(_0x42fbde,_0xacec62){const _0x2525ce=a432_0x2b153b;return _0x42fbde[_0x2525ce(0x111)]['id']&&delete _0x42fbde['body']['id'],db[_0x2525ce(0x11b)][_0x2525ce(0x115)]({'where':{'id':_0x42fbde[_0x2525ce(0x12c)]['id']}})[_0x2525ce(0x119)](handleEntityNotFound(_0xacec62,null))[_0x2525ce(0x119)](saveUpdates(_0x42fbde[_0x2525ce(0x111)],null))[_0x2525ce(0x119)](respondWithResult(_0xacec62,null))[_0x2525ce(0x107)](handleError(_0xacec62,null));},exports[a432_0x2b153b(0x133)]=function(_0x5688de,_0x3dff51){const _0x24c88e=a432_0x2b153b;return db[_0x24c88e(0x11b)]['findOne']({'where':{'id':_0x5688de['params']['id']}})['then'](handleEntityNotFound(_0x3dff51,null))['then'](removeEntity(_0x3dff51,null))[_0x24c88e(0x107)](handleError(_0x3dff51,null));}; \ No newline at end of file +const a432_0x1827=['body','pick','findOne','../../config/logger','include','name','VIRTUAL','key','then','rawAttributes','update','../../mysqldb','index','sort','offset','stack','map','options','sequelize','catch','where','keys','length','send','limit','model','query','end','nolimit','merge','create','fields','filters','set','fieldName','filter','Integration','../../components/parsers/qs','error','undefined','destroy','json','lodash','status','params','like','attributes','Content-Range','count','type','intersection','api'];(function(_0xe572bd,_0x3fd1af){const _0x18273d=function(_0x1e0693){while(--_0x1e0693){_0xe572bd['push'](_0xe572bd['shift']());}};_0x18273d(++_0x3fd1af);}(a432_0x1827,0xbe));const a432_0x1e06=function(_0xe572bd,_0x3fd1af){_0xe572bd=_0xe572bd-0x9d;let _0x18273d=a432_0x1827[_0xe572bd];return _0x18273d;};const a432_0x591341=a432_0x1e06;'use strict';const _=require(a432_0x591341(0xa5)),qs=require(a432_0x591341(0xa0)),logger=require(a432_0x591341(0xb2))(a432_0x591341(0xae)),{db}=require(a432_0x591341(0xba)),{Op}=require(a432_0x591341(0xc1));function respondWithResult(_0x11c2e1,_0x2d9204){return _0x2d9204=_0x2d9204||0xc8,function(_0x203e87){const _0x5b4e8f=a432_0x1e06;if(_0x203e87)return _0x11c2e1['status'](_0x2d9204)[_0x5b4e8f(0xa4)](_0x203e87);};}function respondWithFilteredResult(_0x206b18,_0x45f3ab){return function(_0x15e018){const _0x4c46e7=a432_0x1e06;if(_0x15e018){const _0x4830fb=_0x15e018[_0x4c46e7(0xab)],_0x46cdeb=_0x45f3ab['offset'];let _0x5263b9=_0x45f3ab['offset']+_0x45f3ab[_0x4c46e7(0xc7)],_0x3b6294;return _0x5263b9>=_0x4830fb?(_0x5263b9=_0x4830fb,_0x3b6294=0xc8):_0x3b6294=0xce,_0x206b18['status'](_0x3b6294),_0x206b18[_0x4c46e7(0xd0)](_0x4c46e7(0xaa),_0x46cdeb+'-'+_0x5263b9+'/'+_0x4830fb)[_0x4c46e7(0xa4)](_0x15e018);}return null;};}function saveUpdates(_0x381700){return function(_0x2cfcec){const _0x12910d=a432_0x1e06;if(_0x2cfcec)return _0x2cfcec[_0x12910d(0xb9)](_0x381700)['then'](function(_0x36eda4){return _0x36eda4;});return null;};}function removeEntity(_0x251d1c){return function(_0x424b5d){const _0x39d5f8=a432_0x1e06;if(_0x424b5d)return _0x424b5d[_0x39d5f8(0xa3)]()[_0x39d5f8(0xb7)](function(){const _0x133492=_0x39d5f8;_0x251d1c[_0x133492(0xa6)](0xcc)[_0x133492(0xca)]();});};}function handleEntityNotFound(_0x779383){return function(_0x1aebdb){return!_0x1aebdb&&_0x779383['sendStatus'](0x194),_0x1aebdb;};}function handleError(_0x150401,_0x53463a){return _0x53463a=_0x53463a||0x1f4,function(_0xe28c5){const _0xb9e026=a432_0x1e06;logger[_0xb9e026(0xa1)](_0xe28c5[_0xb9e026(0xbe)]),_0xe28c5['name']&&delete _0xe28c5[_0xb9e026(0xb4)],_0x150401['status'](_0x53463a)[_0xb9e026(0xc6)](_0xe28c5);};}exports[a432_0x591341(0xbb)]=function(_0x88dd7a,_0x4395bb){const _0x398578=a432_0x591341;let _0x1742dc={};const _0x1c1fcc={},_0x56affb={'count':0x0,'rows':[]},_0x4ca707=_[_0x398578(0xbf)](db[_0x398578(0x9f)][_0x398578(0xb8)],function(_0x1c6944){const _0x233df2=_0x398578;return{'name':_0x1c6944[_0x233df2(0x9d)],'type':_0x1c6944[_0x233df2(0xac)][_0x233df2(0xb6)]};});_0x1c1fcc[_0x398578(0xc8)]=_[_0x398578(0xbf)](_0x4ca707,_0x398578(0xb4)),_0x1c1fcc[_0x398578(0xc9)]=_[_0x398578(0xc4)](_0x88dd7a['query']),_0x1c1fcc['filters']=_[_0x398578(0xad)](_0x1c1fcc[_0x398578(0xc8)],_0x1c1fcc[_0x398578(0xc9)]),_0x1742dc[_0x398578(0xa9)]=_['intersection'](_0x1c1fcc[_0x398578(0xc8)],qs[_0x398578(0xce)](_0x88dd7a[_0x398578(0xc9)][_0x398578(0xce)])),_0x1742dc[_0x398578(0xa9)]=_0x1742dc[_0x398578(0xa9)][_0x398578(0xc5)]?_0x1742dc[_0x398578(0xa9)]:_0x1c1fcc['model'];typeof _0x88dd7a[_0x398578(0xc9)][_0x398578(0xcb)]===_0x398578(0xa2)&&(_0x1742dc[_0x398578(0xc7)]=qs[_0x398578(0xc7)](_0x88dd7a[_0x398578(0xc9)][_0x398578(0xc7)]),_0x1742dc['offset']=qs[_0x398578(0xbd)](_0x88dd7a[_0x398578(0xc9)]['offset']));_0x1742dc['order']=qs['sort'](_0x88dd7a[_0x398578(0xc9)][_0x398578(0xbc)]),_0x1742dc['where']=qs[_0x398578(0xcf)](_[_0x398578(0xb0)](_0x88dd7a['query'],_0x1c1fcc[_0x398578(0xcf)]),_0x4ca707);_0x88dd7a[_0x398578(0xc9)][_0x398578(0x9e)]&&(_0x1742dc[_0x398578(0xc3)]=_[_0x398578(0xcc)](_0x1742dc['where'],{[Op['or']]:_[_0x398578(0xbf)](_0x4ca707,function(_0x34bac8){const _0x133ab8=_0x398578;if(_0x34bac8['type']!==_0x133ab8(0xb5)){const _0x55130e={};return _0x55130e[_0x34bac8[_0x133ab8(0xb4)]]={[Op[_0x133ab8(0xa8)]]:'%'+_0x88dd7a[_0x133ab8(0xc9)][_0x133ab8(0x9e)]+'%'},_0x55130e;}})}));_0x1742dc=_[_0x398578(0xcc)]({},_0x1742dc,_0x88dd7a[_0x398578(0xc0)]);const _0x5edd94={'where':_0x1742dc[_0x398578(0xc3)]};return db[_0x398578(0x9f)][_0x398578(0xab)](_0x5edd94)['then'](function(_0x165d55){const _0x43ea94=_0x398578;return _0x56affb[_0x43ea94(0xab)]=_0x165d55,_0x88dd7a[_0x43ea94(0xc9)]['includeAll']&&(_0x1742dc[_0x43ea94(0xb3)]=[{'all':!![]}]),db[_0x43ea94(0x9f)]['findAll'](_0x1742dc);})[_0x398578(0xb7)](function(_0x59d66b){return _0x56affb['rows']=_0x59d66b,_0x56affb;})[_0x398578(0xb7)](respondWithFilteredResult(_0x4395bb,_0x1742dc))[_0x398578(0xc2)](handleError(_0x4395bb,null));},exports['show']=function(_0x40cb09,_0x4f13ac){const _0x506b72=a432_0x591341;let _0x6e3cb1={'raw':![],'where':{'id':_0x40cb09[_0x506b72(0xa7)]['id']}};const _0x464a01={};return _0x464a01[_0x506b72(0xc8)]=_[_0x506b72(0xc4)](db[_0x506b72(0x9f)][_0x506b72(0xb8)]),_0x464a01[_0x506b72(0xc9)]=_['keys'](_0x40cb09['query']),_0x464a01[_0x506b72(0xcf)]=_[_0x506b72(0xad)](_0x464a01[_0x506b72(0xc8)],_0x464a01[_0x506b72(0xc9)]),_0x6e3cb1[_0x506b72(0xa9)]=_[_0x506b72(0xad)](_0x464a01[_0x506b72(0xc8)],qs[_0x506b72(0xce)](_0x40cb09[_0x506b72(0xc9)][_0x506b72(0xce)])),_0x6e3cb1['attributes']=_0x6e3cb1[_0x506b72(0xa9)][_0x506b72(0xc5)]?_0x6e3cb1['attributes']:_0x464a01['model'],_0x40cb09[_0x506b72(0xc9)]['includeAll']&&(_0x6e3cb1[_0x506b72(0xb3)]=[{'all':!![]}]),_0x6e3cb1=_[_0x506b72(0xcc)]({},_0x6e3cb1,_0x40cb09[_0x506b72(0xc0)]),db[_0x506b72(0x9f)]['findOne'](_0x6e3cb1)[_0x506b72(0xb7)](handleEntityNotFound(_0x4f13ac,null))['then'](respondWithResult(_0x4f13ac,null))[_0x506b72(0xc2)](handleError(_0x4f13ac,null));},exports['create']=function(_0x3e2665,_0x1182f9){const _0x42fabf=a432_0x591341;return db[_0x42fabf(0x9f)][_0x42fabf(0xcd)](_0x3e2665[_0x42fabf(0xaf)],{})[_0x42fabf(0xb7)](respondWithResult(_0x1182f9,0xc9))[_0x42fabf(0xc2)](handleError(_0x1182f9,null));},exports['update']=function(_0x3fb137,_0x40b19d){const _0x167ce8=a432_0x591341;return _0x3fb137[_0x167ce8(0xaf)]['id']&&delete _0x3fb137[_0x167ce8(0xaf)]['id'],db[_0x167ce8(0x9f)][_0x167ce8(0xb1)]({'where':{'id':_0x3fb137[_0x167ce8(0xa7)]['id']}})['then'](handleEntityNotFound(_0x40b19d,null))['then'](saveUpdates(_0x3fb137[_0x167ce8(0xaf)],null))[_0x167ce8(0xb7)](respondWithResult(_0x40b19d,null))[_0x167ce8(0xc2)](handleError(_0x40b19d,null));},exports[a432_0x591341(0xa3)]=function(_0x4ced4d,_0x5a6f96){const _0xdf3a78=a432_0x591341;return db[_0xdf3a78(0x9f)]['findOne']({'where':{'id':_0x4ced4d[_0xdf3a78(0xa7)]['id']}})[_0xdf3a78(0xb7)](handleEntityNotFound(_0x5a6f96,null))[_0xdf3a78(0xb7)](removeEntity(_0x5a6f96,null))[_0xdf3a78(0xc2)](handleError(_0x5a6f96,null));}; \ No newline at end of file diff --git a/server/api/integration/integration.model.js b/server/api/integration/integration.model.js index a01d2b4..395c993 100644 --- a/server/api/integration/integration.model.js +++ b/server/api/integration/integration.model.js @@ -1 +1 @@ -const a433_0x3565=['sequelize','./integration.options','./integration.attributes','Integration','init','exports'];(function(_0x51650d,_0x4f1ad6){const _0x356593=function(_0x277cc9){while(--_0x277cc9){_0x51650d['push'](_0x51650d['shift']());}};_0x356593(++_0x4f1ad6);}(a433_0x3565,0x1f2));const a433_0x277c=function(_0x51650d,_0x4f1ad6){_0x51650d=_0x51650d-0x188;let _0x356593=a433_0x3565[_0x51650d];return _0x356593;};const a433_0x1dd933=a433_0x277c;'use strict';const {Model}=require(a433_0x1dd933(0x188)),{attributes}=require(a433_0x1dd933(0x18a)),{options}=require(a433_0x1dd933(0x189));class Integration extends Model{}function init(_0x45f71b,_0x6e6c5b){const _0x34ee4b=a433_0x1dd933,_0x4ff888=options(_0x45f71b),_0x17d7ae=typeof _0x6e6c5b==='function'?_0x6e6c5b(_0x4ff888):_0x4ff888;return Integration[_0x34ee4b(0x18c)](attributes,_0x17d7ae),Integration;}module[a433_0x1dd933(0x18d)][a433_0x1dd933(0x18b)]=Integration,module[a433_0x1dd933(0x18d)][a433_0x1dd933(0x18c)]=init; \ No newline at end of file +const a433_0x1d79=['./integration.attributes','./integration.options','sequelize','init','exports'];(function(_0x296e4b,_0x8f008a){const _0x1d797b=function(_0x3502de){while(--_0x3502de){_0x296e4b['push'](_0x296e4b['shift']());}};_0x1d797b(++_0x8f008a);}(a433_0x1d79,0x17d));const a433_0x3502=function(_0x296e4b,_0x8f008a){_0x296e4b=_0x296e4b-0xff;let _0x1d797b=a433_0x1d79[_0x296e4b];return _0x1d797b;};const a433_0x5ec7fb=a433_0x3502;'use strict';const {Model}=require(a433_0x5ec7fb(0x100)),{attributes}=require(a433_0x5ec7fb(0x103)),{options}=require(a433_0x5ec7fb(0xff));class Integration extends Model{}function init(_0x551efb,_0x117f2b){const _0x181352=options(_0x551efb),_0x3bcbc4=typeof _0x117f2b==='function'?_0x117f2b(_0x181352):_0x181352;return Integration['init'](attributes,_0x3bcbc4),Integration;}module[a433_0x5ec7fb(0x102)]['Integration']=Integration,module['exports'][a433_0x5ec7fb(0x101)]=init; \ No newline at end of file diff --git a/server/api/integration/integration.options.js b/server/api/integration/integration.options.js index c731756..5bd28f2 100644 --- a/server/api/integration/integration.options.js +++ b/server/api/integration/integration.options.js @@ -1 +1 @@ -var a434_0x9eb0=['options','integrations'];(function(_0x2811b3,_0x40a9e3){var _0x9eb0bc=function(_0x4f8540){while(--_0x4f8540){_0x2811b3['push'](_0x2811b3['shift']());}};_0x9eb0bc(++_0x40a9e3);}(a434_0x9eb0,0x169));var a434_0x4f85=function(_0x2811b3,_0x40a9e3){_0x2811b3=_0x2811b3-0x150;var _0x9eb0bc=a434_0x9eb0[_0x2811b3];return _0x9eb0bc;};var a434_0x2df62e=a434_0x4f85;function options(_0x369c17){var _0x42297f=a434_0x4f85;return{'sequelize':_0x369c17,'tableName':_0x42297f(0x150),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a434_0x2df62e(0x151)]=options; \ No newline at end of file +var a434_0x1989=['integrations','exports'];(function(_0x5a926a,_0xededa7){var _0x19899b=function(_0x21294d){while(--_0x21294d){_0x5a926a['push'](_0x5a926a['shift']());}};_0x19899b(++_0xededa7);}(a434_0x1989,0x73));var a434_0x2129=function(_0x5a926a,_0xededa7){_0x5a926a=_0x5a926a-0x128;var _0x19899b=a434_0x1989[_0x5a926a];return _0x19899b;};var a434_0x4190b6=a434_0x2129;function options(_0x1da924){var _0x560254=a434_0x2129;return{'sequelize':_0x1da924,'tableName':_0x560254(0x129),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a434_0x4190b6(0x128)]['options']=options; \ No newline at end of file diff --git a/server/api/integrationReport/index.js b/server/api/integrationReport/index.js index f8f4170..85d77d3 100644 --- a/server/api/integrationReport/index.js +++ b/server/api/integrationReport/index.js @@ -1 +1 @@ -const a435_0x32f4=['./integrationReport.controller','create','update','index','put','post','get','isAuthenticated','exports','show','delete','Router','/:id','/describe','../../components/auth/service','describe'];(function(_0x9dc858,_0x58dce7){const _0x32f4c9=function(_0x19cffb){while(--_0x19cffb){_0x9dc858['push'](_0x9dc858['shift']());}};_0x32f4c9(++_0x58dce7);}(a435_0x32f4,0xcd));const a435_0x19cf=function(_0x9dc858,_0x58dce7){_0x9dc858=_0x9dc858-0x16a;let _0x32f4c9=a435_0x32f4[_0x9dc858];return _0x32f4c9;};const a435_0x177e20=a435_0x19cf;'use strict';const express=require('express'),router=express[a435_0x177e20(0x178)](),auth=require(a435_0x177e20(0x16b)),controller=require(a435_0x177e20(0x16d));router[a435_0x177e20(0x173)]('/',auth[a435_0x177e20(0x174)](),controller[a435_0x177e20(0x170)]),router['get'](a435_0x177e20(0x16a),auth[a435_0x177e20(0x174)](),controller[a435_0x177e20(0x16c)]),router[a435_0x177e20(0x173)]('/:id',auth[a435_0x177e20(0x174)](),controller[a435_0x177e20(0x176)]),router[a435_0x177e20(0x172)]('/',auth[a435_0x177e20(0x174)](),controller[a435_0x177e20(0x16e)]),router[a435_0x177e20(0x171)]('/:id',auth[a435_0x177e20(0x174)](),controller[a435_0x177e20(0x16f)]),router[a435_0x177e20(0x177)](a435_0x177e20(0x179),auth['isAuthenticated'](),controller['destroy']),module[a435_0x177e20(0x175)]=router; \ No newline at end of file +const a435_0x3220=['isAuthenticated','get','exports','describe','index','express','../../components/auth/service','/:id','post','create','./integrationReport.controller','update'];(function(_0x3d710f,_0x433c5e){const _0x322037=function(_0x296747){while(--_0x296747){_0x3d710f['push'](_0x3d710f['shift']());}};_0x322037(++_0x433c5e);}(a435_0x3220,0x109));const a435_0x2967=function(_0x3d710f,_0x433c5e){_0x3d710f=_0x3d710f-0x192;let _0x322037=a435_0x3220[_0x3d710f];return _0x322037;};const a435_0x338076=a435_0x2967;'use strict';const express=require(a435_0x338076(0x196)),router=express['Router'](),auth=require(a435_0x338076(0x197)),controller=require(a435_0x338076(0x19b));router[a435_0x338076(0x192)]('/',auth['isAuthenticated'](),controller[a435_0x338076(0x195)]),router[a435_0x338076(0x192)]('/describe',auth[a435_0x338076(0x19d)](),controller[a435_0x338076(0x194)]),router[a435_0x338076(0x192)](a435_0x338076(0x198),auth[a435_0x338076(0x19d)](),controller['show']),router[a435_0x338076(0x199)]('/',auth['isAuthenticated'](),controller[a435_0x338076(0x19a)]),router['put'](a435_0x338076(0x198),auth['isAuthenticated'](),controller[a435_0x338076(0x19c)]),router['delete'](a435_0x338076(0x198),auth['isAuthenticated'](),controller['destroy']),module[a435_0x338076(0x193)]=router; \ No newline at end of file diff --git a/server/api/integrationReport/integrationReport.attributes.js b/server/api/integrationReport/integrationReport.attributes.js index 671a290..ab9c79b 100644 --- a/server/api/integrationReport/integrationReport.attributes.js +++ b/server/api/integrationReport/integrationReport.attributes.js @@ -1 +1 @@ -const a436_0x244b=['SENT','ENUM','BOOLEAN','exports','RECEIVED','DATE','STRING','TEXT','INTEGER','SENDING','attributes'];(function(_0x529bac,_0x2fbd31){const _0x244b24=function(_0x432432){while(--_0x432432){_0x529bac['push'](_0x529bac['shift']());}};_0x244b24(++_0x2fbd31);}(a436_0x244b,0x8f));const a436_0x4324=function(_0x529bac,_0x2fbd31){_0x529bac=_0x529bac-0x192;let _0x244b24=a436_0x244b[_0x529bac];return _0x244b24;};const a436_0x3c941e=a436_0x4324;'use strict';const {DataTypes}=require('sequelize'),attributes={'integration':{'type':DataTypes[a436_0x3c941e(0x198)]},'eventChannel':{'type':DataTypes[a436_0x3c941e(0x198)]},'exitStatus':{'type':DataTypes['STRING']},'ticketId':{'type':DataTypes['STRING']},'integrationId':{'type':DataTypes[a436_0x3c941e(0x19a)]},'contacts':{'type':DataTypes[a436_0x3c941e(0x198)]},'uniqueid':{'type':DataTypes[a436_0x3c941e(0x198)]},'calleridnum':{'type':DataTypes[a436_0x3c941e(0x198)]},'calleridname':{'type':DataTypes['STRING']},'queue':{'type':DataTypes[a436_0x3c941e(0x198)]},'interface':{'type':DataTypes[a436_0x3c941e(0x198)]},'membername':{'type':DataTypes[a436_0x3c941e(0x198)]},'agentcalledAt':{'type':DataTypes['DATE']},'agentconnectAt':{'type':DataTypes['DATE']},'holdtime':{'type':DataTypes[a436_0x3c941e(0x19a)]},'agentcomplete':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'agentcompleteAt':{'type':DataTypes[a436_0x3c941e(0x197)]},'talktime':{'type':DataTypes[a436_0x3c941e(0x19a)]},'agentacw':{'type':DataTypes[a436_0x3c941e(0x194)],'defaultValue':![]},'acwtime':{'type':DataTypes['INTEGER']},'reason':{'type':DataTypes['STRING']},'agentringnoanswer':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'agentringnoanswerAt':{'type':DataTypes[a436_0x3c941e(0x197)]},'agentdump':{'type':DataTypes[a436_0x3c941e(0x194)],'defaultValue':![]},'agentdumpAt':{'type':DataTypes['DATE']},'lastevent':{'type':DataTypes[a436_0x3c941e(0x198)]},'channel':{'type':DataTypes[a436_0x3c941e(0x198)]},'channelstate':{'type':DataTypes[a436_0x3c941e(0x19a)]},'channelstatedesc':{'type':DataTypes[a436_0x3c941e(0x198)]},'connectedlinenum':{'type':DataTypes['STRING']},'connectedlinename':{'type':DataTypes[a436_0x3c941e(0x198)]},'language':{'type':DataTypes[a436_0x3c941e(0x198)]},'accountcode':{'type':DataTypes[a436_0x3c941e(0x198)]},'context':{'type':DataTypes[a436_0x3c941e(0x198)]},'exten':{'type':DataTypes[a436_0x3c941e(0x198)]},'priority':{'type':DataTypes[a436_0x3c941e(0x198)]},'destchannel':{'type':DataTypes[a436_0x3c941e(0x198)]},'destchannelstate':{'type':DataTypes['INTEGER']},'destchannelstatedesc':{'type':DataTypes[a436_0x3c941e(0x198)]},'destcalleridnum':{'type':DataTypes['STRING']},'destcalleridname':{'type':DataTypes[a436_0x3c941e(0x198)]},'destconnectedlinenum':{'type':DataTypes['STRING']},'destconnectedlinename':{'type':DataTypes[a436_0x3c941e(0x198)]},'destlanguage':{'type':DataTypes[a436_0x3c941e(0x198)]},'destaccountcode':{'type':DataTypes['STRING']},'destcontext':{'type':DataTypes['STRING']},'destexten':{'type':DataTypes[a436_0x3c941e(0x198)]},'destpriority':{'type':DataTypes[a436_0x3c941e(0x198)]},'destuniqueid':{'type':DataTypes['STRING']},'messageId':{'type':DataTypes[a436_0x3c941e(0x198)]},'inReplyTo':{'type':DataTypes[a436_0x3c941e(0x198)]},'subject':{'type':DataTypes[a436_0x3c941e(0x198)]},'from':{'type':DataTypes[a436_0x3c941e(0x198)]},'to':{'type':DataTypes[a436_0x3c941e(0x198)]},'cc':{'type':DataTypes[a436_0x3c941e(0x198)]},'attachment':{'type':DataTypes['TEXT']},'html':{'type':DataTypes[a436_0x3c941e(0x199)]},'text':{'type':DataTypes[a436_0x3c941e(0x199)]},'status':{'type':DataTypes[a436_0x3c941e(0x193)](a436_0x3c941e(0x192),a436_0x3c941e(0x19b),a436_0x3c941e(0x196),'FAILED')},'url':{'type':DataTypes[a436_0x3c941e(0x198)]},'app':{'type':DataTypes['STRING']},'appdata':{'type':DataTypes[a436_0x3c941e(0x198)]},'projectId':{'type':DataTypes[a436_0x3c941e(0x19a)]}};module[a436_0x3c941e(0x195)][a436_0x3c941e(0x19c)]=attributes; \ No newline at end of file +const a436_0x5192=['BOOLEAN','sequelize','SENDING','STRING','INTEGER','FAILED','attributes','DATE','TEXT','SENT','ENUM'];(function(_0x34e30a,_0x4137cc){const _0x519260=function(_0x492ba2){while(--_0x492ba2){_0x34e30a['push'](_0x34e30a['shift']());}};_0x519260(++_0x4137cc);}(a436_0x5192,0x1f2));const a436_0x492b=function(_0x34e30a,_0x4137cc){_0x34e30a=_0x34e30a-0x77;let _0x519260=a436_0x5192[_0x34e30a];return _0x519260;};const a436_0x54a75a=a436_0x492b;'use strict';const {DataTypes}=require(a436_0x54a75a(0x80)),attributes={'integration':{'type':DataTypes[a436_0x54a75a(0x77)]},'eventChannel':{'type':DataTypes['STRING']},'exitStatus':{'type':DataTypes[a436_0x54a75a(0x77)]},'ticketId':{'type':DataTypes[a436_0x54a75a(0x77)]},'integrationId':{'type':DataTypes['INTEGER']},'contacts':{'type':DataTypes[a436_0x54a75a(0x77)]},'uniqueid':{'type':DataTypes['STRING']},'calleridnum':{'type':DataTypes[a436_0x54a75a(0x77)]},'calleridname':{'type':DataTypes['STRING']},'queue':{'type':DataTypes[a436_0x54a75a(0x77)]},'interface':{'type':DataTypes[a436_0x54a75a(0x77)]},'membername':{'type':DataTypes['STRING']},'agentcalledAt':{'type':DataTypes[a436_0x54a75a(0x7b)]},'agentconnectAt':{'type':DataTypes['DATE']},'holdtime':{'type':DataTypes['INTEGER']},'agentcomplete':{'type':DataTypes[a436_0x54a75a(0x7f)],'defaultValue':![]},'agentcompleteAt':{'type':DataTypes[a436_0x54a75a(0x7b)]},'talktime':{'type':DataTypes['INTEGER']},'agentacw':{'type':DataTypes[a436_0x54a75a(0x7f)],'defaultValue':![]},'acwtime':{'type':DataTypes[a436_0x54a75a(0x78)]},'reason':{'type':DataTypes[a436_0x54a75a(0x77)]},'agentringnoanswer':{'type':DataTypes[a436_0x54a75a(0x7f)],'defaultValue':![]},'agentringnoanswerAt':{'type':DataTypes['DATE']},'agentdump':{'type':DataTypes[a436_0x54a75a(0x7f)],'defaultValue':![]},'agentdumpAt':{'type':DataTypes[a436_0x54a75a(0x7b)]},'lastevent':{'type':DataTypes[a436_0x54a75a(0x77)]},'channel':{'type':DataTypes['STRING']},'channelstate':{'type':DataTypes[a436_0x54a75a(0x78)]},'channelstatedesc':{'type':DataTypes[a436_0x54a75a(0x77)]},'connectedlinenum':{'type':DataTypes[a436_0x54a75a(0x77)]},'connectedlinename':{'type':DataTypes[a436_0x54a75a(0x77)]},'language':{'type':DataTypes[a436_0x54a75a(0x77)]},'accountcode':{'type':DataTypes['STRING']},'context':{'type':DataTypes['STRING']},'exten':{'type':DataTypes[a436_0x54a75a(0x77)]},'priority':{'type':DataTypes['STRING']},'destchannel':{'type':DataTypes['STRING']},'destchannelstate':{'type':DataTypes[a436_0x54a75a(0x78)]},'destchannelstatedesc':{'type':DataTypes[a436_0x54a75a(0x77)]},'destcalleridnum':{'type':DataTypes[a436_0x54a75a(0x77)]},'destcalleridname':{'type':DataTypes[a436_0x54a75a(0x77)]},'destconnectedlinenum':{'type':DataTypes[a436_0x54a75a(0x77)]},'destconnectedlinename':{'type':DataTypes[a436_0x54a75a(0x77)]},'destlanguage':{'type':DataTypes[a436_0x54a75a(0x77)]},'destaccountcode':{'type':DataTypes[a436_0x54a75a(0x77)]},'destcontext':{'type':DataTypes[a436_0x54a75a(0x77)]},'destexten':{'type':DataTypes[a436_0x54a75a(0x77)]},'destpriority':{'type':DataTypes[a436_0x54a75a(0x77)]},'destuniqueid':{'type':DataTypes[a436_0x54a75a(0x77)]},'messageId':{'type':DataTypes[a436_0x54a75a(0x77)]},'inReplyTo':{'type':DataTypes[a436_0x54a75a(0x77)]},'subject':{'type':DataTypes[a436_0x54a75a(0x77)]},'from':{'type':DataTypes['STRING']},'to':{'type':DataTypes[a436_0x54a75a(0x77)]},'cc':{'type':DataTypes[a436_0x54a75a(0x77)]},'attachment':{'type':DataTypes[a436_0x54a75a(0x7c)]},'html':{'type':DataTypes[a436_0x54a75a(0x7c)]},'text':{'type':DataTypes[a436_0x54a75a(0x7c)]},'status':{'type':DataTypes[a436_0x54a75a(0x7e)](a436_0x54a75a(0x7d),a436_0x54a75a(0x81),'RECEIVED',a436_0x54a75a(0x79))},'url':{'type':DataTypes['STRING']},'app':{'type':DataTypes[a436_0x54a75a(0x77)]},'appdata':{'type':DataTypes['STRING']},'projectId':{'type':DataTypes[a436_0x54a75a(0x78)]}};module['exports'][a436_0x54a75a(0x7a)]=attributes; \ No newline at end of file diff --git a/server/api/integrationReport/integrationReport.controller.js b/server/api/integrationReport/integrationReport.controller.js index 741a2ac..e75f5f0 100644 --- a/server/api/integrationReport/integrationReport.controller.js +++ b/server/api/integrationReport/integrationReport.controller.js @@ -1 +1 @@ -const a437_0x17a2=['sendStatus','attributes','body','params','destroy','../../components/parsers/qs','offset','../../mysqldb','name','findOne','query','catch','key','intersection','lodash','then','map','IntegrationReport','model','stack','end','json','create','sequelize','limit','Content-Range','status','nolimit','filter','update','options','set','where','merge','pick','../../config/logger','keys','describe','rows','sort','error','include','includeAll','show','type','send','fields','api','rawAttributes','filters','count','like'];(function(_0x568f19,_0x44bbea){const _0x17a2b0=function(_0x2bb077){while(--_0x2bb077){_0x568f19['push'](_0x568f19['shift']());}};_0x17a2b0(++_0x44bbea);}(a437_0x17a2,0x1db));const a437_0x2bb0=function(_0x568f19,_0x44bbea){_0x568f19=_0x568f19-0x1d2;let _0x17a2b0=a437_0x17a2[_0x568f19];return _0x17a2b0;};const a437_0x12a15e=a437_0x2bb0;'use strict';const _=require(a437_0x12a15e(0x1d9)),qs=require(a437_0x12a15e(0x204)),logger=require(a437_0x12a15e(0x1ee))(a437_0x12a15e(0x1fa)),{db}=require(a437_0x12a15e(0x1d2)),{Op}=require(a437_0x12a15e(0x1e2));function respondWithResult(_0x5d8dfc,_0x26c68a){return _0x26c68a=_0x26c68a||0xc8,function(_0x14a231){const _0x2113be=a437_0x2bb0;if(_0x14a231)return _0x5d8dfc[_0x2113be(0x1e5)](_0x26c68a)['json'](_0x14a231);};}function respondWithFilteredResult(_0x39b69b,_0x2fff2d){return function(_0x46fe26){const _0x18ad84=a437_0x2bb0;if(_0x46fe26){const _0x5f5a2c=_0x46fe26['count'],_0x1681a9=_0x2fff2d[_0x18ad84(0x205)];let _0x526de0=_0x2fff2d[_0x18ad84(0x205)]+_0x2fff2d[_0x18ad84(0x1e3)],_0x1cd617;return _0x526de0>=_0x5f5a2c?(_0x526de0=_0x5f5a2c,_0x1cd617=0xc8):_0x1cd617=0xce,_0x39b69b[_0x18ad84(0x1e5)](_0x1cd617),_0x39b69b[_0x18ad84(0x1ea)](_0x18ad84(0x1e4),_0x1681a9+'-'+_0x526de0+'/'+_0x5f5a2c)[_0x18ad84(0x1e0)](_0x46fe26);}return null;};}function saveUpdates(_0xea3d18){return function(_0x4e5786){const _0x329853=a437_0x2bb0;if(_0x4e5786)return _0x4e5786['update'](_0xea3d18)[_0x329853(0x1da)](function(_0x573634){return _0x573634;});return null;};}function removeEntity(_0x118ea4){return function(_0x5e57ee){const _0x6b2e80=a437_0x2bb0;if(_0x5e57ee)return _0x5e57ee['destroy']()[_0x6b2e80(0x1da)](function(){const _0x3a8395=_0x6b2e80;_0x118ea4[_0x3a8395(0x1e5)](0xcc)[_0x3a8395(0x1df)]();});};}function handleEntityNotFound(_0x33921d){return function(_0x307846){const _0x214f47=a437_0x2bb0;return!_0x307846&&_0x33921d[_0x214f47(0x1ff)](0x194),_0x307846;};}function handleError(_0x1069f1,_0x1f6df1){return _0x1f6df1=_0x1f6df1||0x1f4,function(_0x2f156a){const _0x28e373=a437_0x2bb0;logger[_0x28e373(0x1f3)](_0x2f156a[_0x28e373(0x1de)]),_0x2f156a[_0x28e373(0x1d3)]&&delete _0x2f156a[_0x28e373(0x1d3)],_0x1069f1[_0x28e373(0x1e5)](_0x1f6df1)[_0x28e373(0x1f8)](_0x2f156a);};}exports['index']=function(_0x4f77e7,_0x57f5c9){const _0x5424a9=a437_0x12a15e;let _0x9e0fe7={};const _0x3906={},_0x15d973={'count':0x0,'rows':[]},_0x597da3=_[_0x5424a9(0x1db)](db[_0x5424a9(0x1dc)][_0x5424a9(0x1fb)],function(_0x180605){const _0x446151=_0x5424a9;return{'name':_0x180605['fieldName'],'type':_0x180605[_0x446151(0x1f7)][_0x446151(0x1d7)]};});_0x3906[_0x5424a9(0x1dd)]=_['map'](_0x597da3,_0x5424a9(0x1d3)),_0x3906[_0x5424a9(0x1d5)]=_[_0x5424a9(0x1ef)](_0x4f77e7['query']),_0x3906['filters']=_['intersection'](_0x3906[_0x5424a9(0x1dd)],_0x3906['query']),_0x9e0fe7[_0x5424a9(0x200)]=_[_0x5424a9(0x1d8)](_0x3906[_0x5424a9(0x1dd)],qs['fields'](_0x4f77e7['query'][_0x5424a9(0x1f9)])),_0x9e0fe7[_0x5424a9(0x200)]=_0x9e0fe7[_0x5424a9(0x200)]['length']?_0x9e0fe7['attributes']:_0x3906[_0x5424a9(0x1dd)];typeof _0x4f77e7[_0x5424a9(0x1d5)][_0x5424a9(0x1e6)]==='undefined'&&(_0x9e0fe7[_0x5424a9(0x1e3)]=qs['limit'](_0x4f77e7['query'][_0x5424a9(0x1e3)]),_0x9e0fe7[_0x5424a9(0x205)]=qs[_0x5424a9(0x205)](_0x4f77e7[_0x5424a9(0x1d5)][_0x5424a9(0x205)]));_0x9e0fe7['order']=qs['sort'](_0x4f77e7[_0x5424a9(0x1d5)][_0x5424a9(0x1f2)]),_0x9e0fe7[_0x5424a9(0x1eb)]=qs[_0x5424a9(0x1fc)](_[_0x5424a9(0x1ed)](_0x4f77e7[_0x5424a9(0x1d5)],_0x3906[_0x5424a9(0x1fc)]),_0x597da3);_0x4f77e7[_0x5424a9(0x1d5)]['filter']&&(_0x9e0fe7[_0x5424a9(0x1eb)]=_[_0x5424a9(0x1ec)](_0x9e0fe7[_0x5424a9(0x1eb)],{[Op['or']]:_[_0x5424a9(0x1db)](_0x597da3,function(_0x40740a){const _0x4fe11e=_0x5424a9;if(_0x40740a[_0x4fe11e(0x1f7)]!=='VIRTUAL'){const _0x28b022={};return _0x28b022[_0x40740a[_0x4fe11e(0x1d3)]]={[Op[_0x4fe11e(0x1fe)]]:'%'+_0x4f77e7[_0x4fe11e(0x1d5)][_0x4fe11e(0x1e7)]+'%'},_0x28b022;}})}));_0x9e0fe7=_[_0x5424a9(0x1ec)]({},_0x9e0fe7,_0x4f77e7['options']);const _0x271097={'where':_0x9e0fe7[_0x5424a9(0x1eb)]};return db[_0x5424a9(0x1dc)][_0x5424a9(0x1fd)](_0x271097)[_0x5424a9(0x1da)](function(_0x4c4809){const _0x225d18=_0x5424a9;return _0x15d973[_0x225d18(0x1fd)]=_0x4c4809,_0x4f77e7[_0x225d18(0x1d5)]['includeAll']&&(_0x9e0fe7[_0x225d18(0x1f4)]=[{'all':!![]}]),db['IntegrationReport']['findAll'](_0x9e0fe7);})[_0x5424a9(0x1da)](function(_0x28c1f1){const _0x3ac6e8=_0x5424a9;return _0x15d973[_0x3ac6e8(0x1f1)]=_0x28c1f1,_0x15d973;})['then'](respondWithFilteredResult(_0x57f5c9,_0x9e0fe7))[_0x5424a9(0x1d6)](handleError(_0x57f5c9,null));},exports[a437_0x12a15e(0x1f6)]=function(_0x46d178,_0x101bd0){const _0x5200e9=a437_0x12a15e;let _0x41b170={'raw':![],'where':{'id':_0x46d178[_0x5200e9(0x202)]['id']}};const _0xeba142={};return _0xeba142[_0x5200e9(0x1dd)]=_['keys'](db[_0x5200e9(0x1dc)][_0x5200e9(0x1fb)]),_0xeba142[_0x5200e9(0x1d5)]=_[_0x5200e9(0x1ef)](_0x46d178['query']),_0xeba142['filters']=_[_0x5200e9(0x1d8)](_0xeba142[_0x5200e9(0x1dd)],_0xeba142[_0x5200e9(0x1d5)]),_0x41b170['attributes']=_[_0x5200e9(0x1d8)](_0xeba142['model'],qs[_0x5200e9(0x1f9)](_0x46d178[_0x5200e9(0x1d5)][_0x5200e9(0x1f9)])),_0x41b170['attributes']=_0x41b170[_0x5200e9(0x200)]['length']?_0x41b170[_0x5200e9(0x200)]:_0xeba142[_0x5200e9(0x1dd)],_0x46d178[_0x5200e9(0x1d5)][_0x5200e9(0x1f5)]&&(_0x41b170[_0x5200e9(0x1f4)]=[{'all':!![]}]),_0x41b170=_[_0x5200e9(0x1ec)]({},_0x41b170,_0x46d178[_0x5200e9(0x1e9)]),db['IntegrationReport'][_0x5200e9(0x1d4)](_0x41b170)[_0x5200e9(0x1da)](handleEntityNotFound(_0x101bd0,null))[_0x5200e9(0x1da)](respondWithResult(_0x101bd0,null))[_0x5200e9(0x1d6)](handleError(_0x101bd0,null));},exports[a437_0x12a15e(0x1e1)]=function(_0x4de397,_0x498656){const _0x2877ad=a437_0x12a15e;return db[_0x2877ad(0x1dc)]['create'](_0x4de397[_0x2877ad(0x201)],{})[_0x2877ad(0x1da)](respondWithResult(_0x498656,0xc9))[_0x2877ad(0x1d6)](handleError(_0x498656,null));},exports[a437_0x12a15e(0x1e8)]=function(_0x1e77d8,_0x1beea6){const _0x205aab=a437_0x12a15e;return _0x1e77d8[_0x205aab(0x201)]['id']&&delete _0x1e77d8[_0x205aab(0x201)]['id'],db[_0x205aab(0x1dc)]['findOne']({'where':{'id':_0x1e77d8['params']['id']}})['then'](handleEntityNotFound(_0x1beea6,null))['then'](saveUpdates(_0x1e77d8[_0x205aab(0x201)],null))[_0x205aab(0x1da)](respondWithResult(_0x1beea6,null))['catch'](handleError(_0x1beea6,null));},exports[a437_0x12a15e(0x203)]=function(_0x1453f6,_0x1610a6){const _0x5cf646=a437_0x12a15e;return db['IntegrationReport'][_0x5cf646(0x1d4)]({'where':{'id':_0x1453f6['params']['id']}})[_0x5cf646(0x1da)](handleEntityNotFound(_0x1610a6,null))['then'](removeEntity(_0x1610a6,null))[_0x5cf646(0x1d6)](handleError(_0x1610a6,null));},exports['describe']=function(_0x434758,_0x2b28bf){const _0x1797f6=a437_0x12a15e;return db[_0x1797f6(0x1dc)][_0x1797f6(0x1f0)]()[_0x1797f6(0x1da)](respondWithResult(_0x2b28bf,null))[_0x1797f6(0x1d6)](handleError(_0x2b28bf,null));}; \ No newline at end of file +const a437_0x31c0=['create','body','params','../../components/parsers/qs','filters','sort','then','../../mysqldb','model','length','sendStatus','order','pick','Content-Range','intersection','options','status','name','fields','attributes','stack','offset','index','sequelize','../../config/logger','destroy','filter','count','IntegrationReport','query','catch','keys','map','limit','where','json','VIRTUAL','rawAttributes','type','show','end','update','lodash','api','like','includeAll','undefined','merge','describe','include'];(function(_0x3fffed,_0x153abb){const _0x31c08f=function(_0x37a0ca){while(--_0x37a0ca){_0x3fffed['push'](_0x3fffed['shift']());}};_0x31c08f(++_0x153abb);}(a437_0x31c0,0x135));const a437_0x37a0=function(_0x3fffed,_0x153abb){_0x3fffed=_0x3fffed-0x1ae;let _0x31c08f=a437_0x31c0[_0x3fffed];return _0x31c08f;};const a437_0x1cb918=a437_0x37a0;'use strict';const _=require(a437_0x1cb918(0x1cf)),qs=require(a437_0x1cb918(0x1da)),logger=require(a437_0x1cb918(0x1bd))(a437_0x1cb918(0x1d0)),{db}=require(a437_0x1cb918(0x1de)),{Op}=require(a437_0x1cb918(0x1bc));function respondWithResult(_0x13d8c0,_0x598b38){return _0x598b38=_0x598b38||0xc8,function(_0x102369){if(_0x102369)return _0x13d8c0['status'](_0x598b38)['json'](_0x102369);};}function respondWithFilteredResult(_0x2d4f0a,_0x264d8d){return function(_0x1ad01a){const _0x4c390c=a437_0x37a0;if(_0x1ad01a){const _0x1e2149=_0x1ad01a[_0x4c390c(0x1c0)],_0x3270d3=_0x264d8d[_0x4c390c(0x1ba)];let _0x219538=_0x264d8d[_0x4c390c(0x1ba)]+_0x264d8d[_0x4c390c(0x1c6)],_0x3af5c4;return _0x219538>=_0x1e2149?(_0x219538=_0x1e2149,_0x3af5c4=0xc8):_0x3af5c4=0xce,_0x2d4f0a[_0x4c390c(0x1b5)](_0x3af5c4),_0x2d4f0a['set'](_0x4c390c(0x1b2),_0x3270d3+'-'+_0x219538+'/'+_0x1e2149)[_0x4c390c(0x1c8)](_0x1ad01a);}return null;};}function saveUpdates(_0x4744f6){return function(_0x29fa18){const _0x5cd86f=a437_0x37a0;if(_0x29fa18)return _0x29fa18[_0x5cd86f(0x1ce)](_0x4744f6)['then'](function(_0x5ce8cf){return _0x5ce8cf;});return null;};}function removeEntity(_0x475ff7){return function(_0x184451){const _0x52ffd4=a437_0x37a0;if(_0x184451)return _0x184451['destroy']()[_0x52ffd4(0x1dd)](function(){const _0x4d5769=_0x52ffd4;_0x475ff7[_0x4d5769(0x1b5)](0xcc)[_0x4d5769(0x1cd)]();});};}function handleEntityNotFound(_0x41a16e){return function(_0x5bea54){const _0x597d3c=a437_0x37a0;return!_0x5bea54&&_0x41a16e[_0x597d3c(0x1af)](0x194),_0x5bea54;};}function handleError(_0x369f00,_0x4658e7){return _0x4658e7=_0x4658e7||0x1f4,function(_0x2ca83a){const _0x3c7020=a437_0x37a0;logger['error'](_0x2ca83a[_0x3c7020(0x1b9)]),_0x2ca83a[_0x3c7020(0x1b6)]&&delete _0x2ca83a[_0x3c7020(0x1b6)],_0x369f00[_0x3c7020(0x1b5)](_0x4658e7)['send'](_0x2ca83a);};}exports[a437_0x1cb918(0x1bb)]=function(_0x5862ea,_0xf42c09){const _0x1356d3=a437_0x1cb918;let _0x1e99bd={};const _0x405407={},_0x8482bd={'count':0x0,'rows':[]},_0x4a6337=_['map'](db[_0x1356d3(0x1c1)][_0x1356d3(0x1ca)],function(_0x565a34){return{'name':_0x565a34['fieldName'],'type':_0x565a34['type']['key']};});_0x405407['model']=_['map'](_0x4a6337,_0x1356d3(0x1b6)),_0x405407[_0x1356d3(0x1c2)]=_[_0x1356d3(0x1c4)](_0x5862ea[_0x1356d3(0x1c2)]),_0x405407[_0x1356d3(0x1db)]=_['intersection'](_0x405407[_0x1356d3(0x1df)],_0x405407[_0x1356d3(0x1c2)]),_0x1e99bd[_0x1356d3(0x1b8)]=_[_0x1356d3(0x1b3)](_0x405407['model'],qs['fields'](_0x5862ea['query'][_0x1356d3(0x1b7)])),_0x1e99bd[_0x1356d3(0x1b8)]=_0x1e99bd['attributes'][_0x1356d3(0x1ae)]?_0x1e99bd[_0x1356d3(0x1b8)]:_0x405407['model'];typeof _0x5862ea['query']['nolimit']===_0x1356d3(0x1d3)&&(_0x1e99bd[_0x1356d3(0x1c6)]=qs[_0x1356d3(0x1c6)](_0x5862ea[_0x1356d3(0x1c2)]['limit']),_0x1e99bd[_0x1356d3(0x1ba)]=qs['offset'](_0x5862ea[_0x1356d3(0x1c2)][_0x1356d3(0x1ba)]));_0x1e99bd[_0x1356d3(0x1b0)]=qs['sort'](_0x5862ea['query'][_0x1356d3(0x1dc)]),_0x1e99bd[_0x1356d3(0x1c7)]=qs[_0x1356d3(0x1db)](_[_0x1356d3(0x1b1)](_0x5862ea['query'],_0x405407['filters']),_0x4a6337);_0x5862ea[_0x1356d3(0x1c2)][_0x1356d3(0x1bf)]&&(_0x1e99bd[_0x1356d3(0x1c7)]=_['merge'](_0x1e99bd[_0x1356d3(0x1c7)],{[Op['or']]:_[_0x1356d3(0x1c5)](_0x4a6337,function(_0x2e73c1){const _0x4a81c9=_0x1356d3;if(_0x2e73c1[_0x4a81c9(0x1cb)]!==_0x4a81c9(0x1c9)){const _0x56c422={};return _0x56c422[_0x2e73c1[_0x4a81c9(0x1b6)]]={[Op[_0x4a81c9(0x1d1)]]:'%'+_0x5862ea[_0x4a81c9(0x1c2)]['filter']+'%'},_0x56c422;}})}));_0x1e99bd=_[_0x1356d3(0x1d4)]({},_0x1e99bd,_0x5862ea[_0x1356d3(0x1b4)]);const _0x422da6={'where':_0x1e99bd[_0x1356d3(0x1c7)]};return db[_0x1356d3(0x1c1)][_0x1356d3(0x1c0)](_0x422da6)[_0x1356d3(0x1dd)](function(_0x319506){const _0x4f67d2=_0x1356d3;return _0x8482bd[_0x4f67d2(0x1c0)]=_0x319506,_0x5862ea[_0x4f67d2(0x1c2)][_0x4f67d2(0x1d2)]&&(_0x1e99bd['include']=[{'all':!![]}]),db[_0x4f67d2(0x1c1)]['findAll'](_0x1e99bd);})[_0x1356d3(0x1dd)](function(_0x362a2c){return _0x8482bd['rows']=_0x362a2c,_0x8482bd;})[_0x1356d3(0x1dd)](respondWithFilteredResult(_0xf42c09,_0x1e99bd))[_0x1356d3(0x1c3)](handleError(_0xf42c09,null));},exports[a437_0x1cb918(0x1cc)]=function(_0x529708,_0x2feb5f){const _0x4083f3=a437_0x1cb918;let _0xd0ff28={'raw':![],'where':{'id':_0x529708[_0x4083f3(0x1d9)]['id']}};const _0x1f0270={};return _0x1f0270[_0x4083f3(0x1df)]=_['keys'](db[_0x4083f3(0x1c1)][_0x4083f3(0x1ca)]),_0x1f0270['query']=_[_0x4083f3(0x1c4)](_0x529708['query']),_0x1f0270[_0x4083f3(0x1db)]=_['intersection'](_0x1f0270[_0x4083f3(0x1df)],_0x1f0270[_0x4083f3(0x1c2)]),_0xd0ff28[_0x4083f3(0x1b8)]=_[_0x4083f3(0x1b3)](_0x1f0270[_0x4083f3(0x1df)],qs[_0x4083f3(0x1b7)](_0x529708[_0x4083f3(0x1c2)]['fields'])),_0xd0ff28[_0x4083f3(0x1b8)]=_0xd0ff28[_0x4083f3(0x1b8)][_0x4083f3(0x1ae)]?_0xd0ff28['attributes']:_0x1f0270[_0x4083f3(0x1df)],_0x529708[_0x4083f3(0x1c2)][_0x4083f3(0x1d2)]&&(_0xd0ff28[_0x4083f3(0x1d6)]=[{'all':!![]}]),_0xd0ff28=_[_0x4083f3(0x1d4)]({},_0xd0ff28,_0x529708[_0x4083f3(0x1b4)]),db[_0x4083f3(0x1c1)]['findOne'](_0xd0ff28)[_0x4083f3(0x1dd)](handleEntityNotFound(_0x2feb5f,null))['then'](respondWithResult(_0x2feb5f,null))[_0x4083f3(0x1c3)](handleError(_0x2feb5f,null));},exports[a437_0x1cb918(0x1d7)]=function(_0x44d773,_0x246635){const _0x214b76=a437_0x1cb918;return db[_0x214b76(0x1c1)][_0x214b76(0x1d7)](_0x44d773['body'],{})[_0x214b76(0x1dd)](respondWithResult(_0x246635,0xc9))[_0x214b76(0x1c3)](handleError(_0x246635,null));},exports['update']=function(_0x20bf96,_0x1be2cb){const _0x543637=a437_0x1cb918;return _0x20bf96[_0x543637(0x1d8)]['id']&&delete _0x20bf96[_0x543637(0x1d8)]['id'],db[_0x543637(0x1c1)]['findOne']({'where':{'id':_0x20bf96['params']['id']}})['then'](handleEntityNotFound(_0x1be2cb,null))[_0x543637(0x1dd)](saveUpdates(_0x20bf96[_0x543637(0x1d8)],null))[_0x543637(0x1dd)](respondWithResult(_0x1be2cb,null))[_0x543637(0x1c3)](handleError(_0x1be2cb,null));},exports[a437_0x1cb918(0x1be)]=function(_0x37aec6,_0x5b4274){const _0x3b0172=a437_0x1cb918;return db[_0x3b0172(0x1c1)]['findOne']({'where':{'id':_0x37aec6[_0x3b0172(0x1d9)]['id']}})[_0x3b0172(0x1dd)](handleEntityNotFound(_0x5b4274,null))[_0x3b0172(0x1dd)](removeEntity(_0x5b4274,null))[_0x3b0172(0x1c3)](handleError(_0x5b4274,null));},exports[a437_0x1cb918(0x1d5)]=function(_0x381e35,_0x460c12){const _0x18d8f1=a437_0x1cb918;return db[_0x18d8f1(0x1c1)][_0x18d8f1(0x1d5)]()[_0x18d8f1(0x1dd)](respondWithResult(_0x460c12,null))['catch'](handleError(_0x460c12,null));}; \ No newline at end of file diff --git a/server/api/integrationReport/integrationReport.model.js b/server/api/integrationReport/integrationReport.model.js index 7400d26..1234de0 100644 --- a/server/api/integrationReport/integrationReport.model.js +++ b/server/api/integrationReport/integrationReport.model.js @@ -1 +1 @@ -const a438_0x378e=['init','exports','sequelize','IntegrationReport'];(function(_0x54a06e,_0x4126f6){const _0x378eb0=function(_0x284964){while(--_0x284964){_0x54a06e['push'](_0x54a06e['shift']());}};_0x378eb0(++_0x4126f6);}(a438_0x378e,0x1c9));const a438_0x2849=function(_0x54a06e,_0x4126f6){_0x54a06e=_0x54a06e-0xe2;let _0x378eb0=a438_0x378e[_0x54a06e];return _0x378eb0;};const a438_0x42e906=a438_0x2849;'use strict';const {Model}=require(a438_0x42e906(0xe3)),{attributes}=require('./integrationReport.attributes'),{options}=require('./integrationReport.options');class IntegrationReport extends Model{}function init(_0xa389a4,_0x4ebe1b){const _0x4d1b74=a438_0x42e906,_0x22e512=options(_0xa389a4),_0x494cbd=typeof _0x4ebe1b==='function'?_0x4ebe1b(_0x22e512):_0x22e512;return IntegrationReport[_0x4d1b74(0xe5)](attributes,_0x494cbd),IntegrationReport;}module[a438_0x42e906(0xe2)][a438_0x42e906(0xe4)]=IntegrationReport,module[a438_0x42e906(0xe2)][a438_0x42e906(0xe5)]=init; \ No newline at end of file +const a438_0x28e3=['./integrationReport.options','init','exports','sequelize'];(function(_0x5c7529,_0x47c0cb){const _0x28e3fe=function(_0x6ee1f6){while(--_0x6ee1f6){_0x5c7529['push'](_0x5c7529['shift']());}};_0x28e3fe(++_0x47c0cb);}(a438_0x28e3,0x167));const a438_0x6ee1=function(_0x5c7529,_0x47c0cb){_0x5c7529=_0x5c7529-0x1cf;let _0x28e3fe=a438_0x28e3[_0x5c7529];return _0x28e3fe;};const a438_0x1002bd=a438_0x6ee1;'use strict';const {Model}=require(a438_0x1002bd(0x1cf)),{attributes}=require('./integrationReport.attributes'),{options}=require(a438_0x1002bd(0x1d0));class IntegrationReport extends Model{}function init(_0x161f44,_0xaeca4f){const _0x3bf6aa=a438_0x1002bd,_0x236a3f=options(_0x161f44),_0x466d43=typeof _0xaeca4f==='function'?_0xaeca4f(_0x236a3f):_0x236a3f;return IntegrationReport[_0x3bf6aa(0x1d1)](attributes,_0x466d43),IntegrationReport;}module[a438_0x1002bd(0x1d2)]['IntegrationReport']=IntegrationReport,module[a438_0x1002bd(0x1d2)][a438_0x1002bd(0x1d1)]=init; \ No newline at end of file diff --git a/server/api/integrationReport/integrationReport.options.js b/server/api/integrationReport/integrationReport.options.js index 1796c10..79b178f 100644 --- a/server/api/integrationReport/integrationReport.options.js +++ b/server/api/integrationReport/integrationReport.options.js @@ -1 +1 @@ -var a439_0x36a1=['options','report_integration'];(function(_0x5ecc2b,_0xe0cf0e){var _0x36a19c=function(_0x3c999a){while(--_0x3c999a){_0x5ecc2b['push'](_0x5ecc2b['shift']());}};_0x36a19c(++_0xe0cf0e);}(a439_0x36a1,0x103));var a439_0x3c99=function(_0x5ecc2b,_0xe0cf0e){_0x5ecc2b=_0x5ecc2b-0x13c;var _0x36a19c=a439_0x36a1[_0x5ecc2b];return _0x36a19c;};var a439_0x4f1908=a439_0x3c99;function options(_0x251cc1){var _0x25a3ab=a439_0x3c99;return{'sequelize':_0x251cc1,'tableName':_0x25a3ab(0x13c),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a439_0x4f1908(0x13d)]=options; \ No newline at end of file +var a439_0x3631=['report_integration','options','exports'];(function(_0x1544f7,_0x360610){var _0x3631bd=function(_0x241fab){while(--_0x241fab){_0x1544f7['push'](_0x1544f7['shift']());}};_0x3631bd(++_0x360610);}(a439_0x3631,0xc7));var a439_0x241f=function(_0x1544f7,_0x360610){_0x1544f7=_0x1544f7-0x9c;var _0x3631bd=a439_0x3631[_0x1544f7];return _0x3631bd;};var a439_0x7d8fe8=a439_0x241f;function options(_0x3e38f4){var _0x49ef44=a439_0x241f;return{'sequelize':_0x3e38f4,'tableName':_0x49ef44(0x9e),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a439_0x7d8fe8(0x9d)][a439_0x7d8fe8(0x9c)]=options; \ No newline at end of file diff --git a/server/api/interval/index.js b/server/api/interval/index.js index e3a63f1..d68bcbb 100644 --- a/server/api/interval/index.js +++ b/server/api/interval/index.js @@ -1 +1 @@ -const a440_0x4b87=['./interval.controller','put','/:id','show','get','index','update','addInterval','isAuthenticated','post','addIntervals','create','exports','/:id/sub_intervals','destroy','delete'];(function(_0x3b44aa,_0x43f6c1){const _0x4b872d=function(_0x5a958e){while(--_0x5a958e){_0x3b44aa['push'](_0x3b44aa['shift']());}};_0x4b872d(++_0x43f6c1);}(a440_0x4b87,0x7b));const a440_0x5a95=function(_0x3b44aa,_0x43f6c1){_0x3b44aa=_0x3b44aa-0xd3;let _0x4b872d=a440_0x4b87[_0x3b44aa];return _0x4b872d;};const a440_0x164423=a440_0x5a95;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a440_0x164423(0xd8));router[a440_0x164423(0xdc)]('/',auth[a440_0x164423(0xe0)](),controller[a440_0x164423(0xdd)]),router[a440_0x164423(0xdc)](a440_0x164423(0xda),auth['isAuthenticated'](),controller[a440_0x164423(0xdb)]),router[a440_0x164423(0xdc)]('/:id/sub_intervals',auth[a440_0x164423(0xe0)](),controller['getIntervals']),router[a440_0x164423(0xe1)]('/',auth[a440_0x164423(0xe0)](),controller[a440_0x164423(0xd3)]),router['post'](a440_0x164423(0xd5),auth['isAuthenticated'](),controller[a440_0x164423(0xdf)]),router['post']('/:id/sub_intervals/create_many',auth[a440_0x164423(0xe0)](),controller[a440_0x164423(0xe2)]),router[a440_0x164423(0xd9)]('/:id',auth['isAuthenticated'](),controller[a440_0x164423(0xde)]),router[a440_0x164423(0xd7)](a440_0x164423(0xda),auth[a440_0x164423(0xe0)](),controller[a440_0x164423(0xd6)]),module[a440_0x164423(0xd4)]=router; \ No newline at end of file +const a440_0x4e33=['/:id','../../components/auth/service','addIntervals','addInterval','isAuthenticated','get','./interval.controller','Router','/:id/sub_intervals','post','destroy','create','express','show'];(function(_0x23c4c1,_0x531c8d){const _0x4e33cb=function(_0x25758e){while(--_0x25758e){_0x23c4c1['push'](_0x23c4c1['shift']());}};_0x4e33cb(++_0x531c8d);}(a440_0x4e33,0x1a1));const a440_0x2575=function(_0x23c4c1,_0x531c8d){_0x23c4c1=_0x23c4c1-0x79;let _0x4e33cb=a440_0x4e33[_0x23c4c1];return _0x4e33cb;};const a440_0x58efd7=a440_0x2575;'use strict';const express=require(a440_0x58efd7(0x7a)),router=express[a440_0x58efd7(0x83)](),auth=require(a440_0x58efd7(0x7d)),controller=require(a440_0x58efd7(0x82));router[a440_0x58efd7(0x81)]('/',auth[a440_0x58efd7(0x80)](),controller['index']),router[a440_0x58efd7(0x81)](a440_0x58efd7(0x7c),auth[a440_0x58efd7(0x80)](),controller[a440_0x58efd7(0x7b)]),router['get'](a440_0x58efd7(0x84),auth[a440_0x58efd7(0x80)](),controller['getIntervals']),router['post']('/',auth[a440_0x58efd7(0x80)](),controller[a440_0x58efd7(0x79)]),router[a440_0x58efd7(0x85)]('/:id/sub_intervals',auth['isAuthenticated'](),controller[a440_0x58efd7(0x7f)]),router[a440_0x58efd7(0x85)]('/:id/sub_intervals/create_many',auth['isAuthenticated'](),controller[a440_0x58efd7(0x7e)]),router['put'](a440_0x58efd7(0x7c),auth[a440_0x58efd7(0x80)](),controller['update']),router['delete'](a440_0x58efd7(0x7c),auth['isAuthenticated'](),controller[a440_0x58efd7(0x86)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/interval/interval.attributes.js b/server/api/interval/interval.attributes.js index d949652..5eefc48 100644 --- a/server/api/interval/interval.attributes.js +++ b/server/api/interval/interval.attributes.js @@ -1 +1 @@ -const a441_0x4dee=['STRING'];(function(_0x239f41,_0x5ac37f){const _0x4deef5=function(_0x42adfb){while(--_0x42adfb){_0x239f41['push'](_0x239f41['shift']());}};_0x4deef5(++_0x5ac37f);}(a441_0x4dee,0xb9));const a441_0x42ad=function(_0x239f41,_0x5ac37f){_0x239f41=_0x239f41-0xbc;let _0x4deef5=a441_0x4dee[_0x239f41];return _0x4deef5;};const a441_0x227b5d=a441_0x42ad;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a441_0x227b5d(0xbc)]},'interval':{'type':DataTypes[a441_0x227b5d(0xbc)],'allowNull':!![]}};module['exports']['attributes']=attributes; \ No newline at end of file +const a441_0x4d44=['STRING','sequelize','exports'];(function(_0x2d2820,_0xf16755){const _0x4d4450=function(_0x5ec8a0){while(--_0x5ec8a0){_0x2d2820['push'](_0x2d2820['shift']());}};_0x4d4450(++_0xf16755);}(a441_0x4d44,0xeb));const a441_0x5ec8=function(_0x2d2820,_0xf16755){_0x2d2820=_0x2d2820-0x12b;let _0x4d4450=a441_0x4d44[_0x2d2820];return _0x4d4450;};const a441_0x3f8502=a441_0x5ec8;'use strict';const {DataTypes}=require(a441_0x3f8502(0x12b)),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes['STRING']},'interval':{'type':DataTypes[a441_0x3f8502(0x12d)],'allowNull':!![]}};module[a441_0x3f8502(0x12c)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/interval/interval.controller.js b/server/api/interval/interval.controller.js index 0db6cd1..924ffdf 100644 --- a/server/api/interval/interval.controller.js +++ b/server/api/interval/interval.controller.js @@ -1 +1 @@ -const a442_0x5516=['error','params','../../config/logger','update','length','sort','UserProfileResource','filters','options','intersection','getIntervals','catch','attributes','get','role','undefined','filter','model','user','Unable\x20to\x20retrieve\x20the\x20current\x20user','findOne','destroy','UserProfileSection','map','sequelize','sendStatus','show','IntervalId','bulkCreate','userProfileId','Interval','nolimit','includeAll','fieldName','order','autoAssociation','api','end','rawAttributes','query','transaction','body','status','merge','json','pick','set','include','name','like','where','key','addIntervals','type','lodash','create','then','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','keys','count','fields','limit','offset','index','findAll'];(function(_0x545878,_0x45005b){const _0x551654=function(_0xdaf0cc){while(--_0xdaf0cc){_0x545878['push'](_0x545878['shift']());}};_0x551654(++_0x45005b);}(a442_0x5516,0x1d9));const a442_0xdaf0=function(_0x545878,_0x45005b){_0x545878=_0x545878-0x1e9;let _0x551654=a442_0x5516[_0x545878];return _0x551654;};const a442_0xd605e3=a442_0xdaf0;'use strict';const _=require(a442_0xd605e3(0x20d)),qs=require('../../components/parsers/qs'),logger=require(a442_0xd605e3(0x21a))(a442_0xd605e3(0x1fb)),{db}=require('../../mysqldb'),{Op}=require('sequelize');function respondWithResult(_0x5bdcaf,_0x340033){return _0x340033=_0x340033||0xc8,function(_0x4f25a1){const _0x554846=a442_0xdaf0;if(_0x4f25a1)return _0x5bdcaf[_0x554846(0x201)](_0x340033)[_0x554846(0x203)](_0x4f25a1);};}function respondWithFilteredResult(_0x348e0a,_0x5d6d87){return function(_0x99c89){const _0x176242=a442_0xdaf0;if(_0x99c89){const _0x467b32=_0x99c89['count'],_0x1db6ec=_0x5d6d87[_0x176242(0x215)];let _0x5374da=_0x5d6d87['offset']+_0x5d6d87[_0x176242(0x214)],_0x488278;return _0x5374da>=_0x467b32?(_0x5374da=_0x467b32,_0x488278=0xc8):_0x488278=0xce,_0x348e0a[_0x176242(0x201)](_0x488278),_0x348e0a[_0x176242(0x205)]('Content-Range',_0x1db6ec+'-'+_0x5374da+'/'+_0x467b32)[_0x176242(0x203)](_0x99c89);}return null;};}function saveUpdates(_0x338af9){return function(_0x4ca109){const _0x81d538=a442_0xdaf0;if(_0x4ca109)return _0x4ca109['update'](_0x338af9)[_0x81d538(0x20f)](function(_0x182e76){return _0x182e76;});return null;};}function removeEntity(_0x1652fa){return function(_0x4c420c){const _0x24dd5b=a442_0xdaf0;if(_0x4c420c)return _0x4c420c['destroy']()[_0x24dd5b(0x20f)](function(){const _0x3f239a=_0x24dd5b,_0x2fcd2d=_0x4c420c[_0x3f239a(0x225)]({'plain':!![]}),_0x1a2a01='Intervals';return db[_0x3f239a(0x21e)]['destroy']({'where':{'type':_0x1a2a01,'resourceId':_0x2fcd2d['id']}})[_0x3f239a(0x20f)](function(){return _0x4c420c;});})[_0x24dd5b(0x20f)](function(){const _0x1856e2=_0x24dd5b;_0x1652fa[_0x1856e2(0x201)](0xcc)[_0x1856e2(0x1fc)]();});};}function handleEntityNotFound(_0x124e8b){return function(_0x16c52e){const _0x2dc77a=a442_0xdaf0;return!_0x16c52e&&_0x124e8b[_0x2dc77a(0x1f0)](0x194),_0x16c52e;};}function handleError(_0x241226,_0x3d29c3){return _0x3d29c3=_0x3d29c3||0x1f4,function(_0x2e5db6){const _0x509414=a442_0xdaf0;logger['error'](_0x2e5db6['stack']),_0x2e5db6['name']&&delete _0x2e5db6['name'],_0x241226[_0x509414(0x201)](_0x3d29c3)['send'](_0x2e5db6);};}exports[a442_0xd605e3(0x216)]=function(_0x47c34e,_0x3e3ae8){const _0xa6768c=a442_0xd605e3;let _0x4a44f4={};const _0x52085c={},_0x66df23={'count':0x0,'rows':[]},_0x537e0b=_[_0xa6768c(0x1ee)](db['Interval'][_0xa6768c(0x1fd)],function(_0x15ae19){const _0x3338d9=_0xa6768c;return{'name':_0x15ae19[_0x3338d9(0x1f8)],'type':_0x15ae19[_0x3338d9(0x20c)][_0x3338d9(0x20a)]};});_0x52085c[_0xa6768c(0x229)]=_[_0xa6768c(0x1ee)](_0x537e0b,'name'),_0x52085c[_0xa6768c(0x1fe)]=_[_0xa6768c(0x211)](_0x47c34e[_0xa6768c(0x1fe)]),_0x52085c[_0xa6768c(0x21f)]=_['intersection'](_0x52085c[_0xa6768c(0x229)],_0x52085c[_0xa6768c(0x1fe)]),_0x4a44f4['attributes']=_[_0xa6768c(0x221)](_0x52085c['model'],qs[_0xa6768c(0x213)](_0x47c34e['query'][_0xa6768c(0x213)])),_0x4a44f4[_0xa6768c(0x224)]=_0x4a44f4[_0xa6768c(0x224)][_0xa6768c(0x21c)]?_0x4a44f4['attributes']:_0x52085c[_0xa6768c(0x229)];typeof _0x47c34e[_0xa6768c(0x1fe)][_0xa6768c(0x1f6)]===_0xa6768c(0x227)&&(_0x4a44f4[_0xa6768c(0x214)]=qs[_0xa6768c(0x214)](_0x47c34e[_0xa6768c(0x1fe)][_0xa6768c(0x214)]),_0x4a44f4['offset']=qs[_0xa6768c(0x215)](_0x47c34e[_0xa6768c(0x1fe)][_0xa6768c(0x215)]));_0x4a44f4['order']=qs['sort'](_0x47c34e['query'][_0xa6768c(0x21d)]),_0x4a44f4[_0xa6768c(0x209)]=qs['filters'](_[_0xa6768c(0x204)](_0x47c34e[_0xa6768c(0x1fe)],_0x52085c[_0xa6768c(0x21f)]),_0x537e0b);_0x47c34e['query'][_0xa6768c(0x228)]&&(_0x4a44f4[_0xa6768c(0x209)]=_['merge'](_0x4a44f4[_0xa6768c(0x209)],{[Op['or']]:_[_0xa6768c(0x1ee)](_0x537e0b,function(_0xe09930){const _0x1b3c6c=_0xa6768c;if(_0xe09930['type']!=='VIRTUAL'){const _0x1d5735={};return _0x1d5735[_0xe09930[_0x1b3c6c(0x207)]]={[Op[_0x1b3c6c(0x208)]]:'%'+_0x47c34e[_0x1b3c6c(0x1fe)][_0x1b3c6c(0x228)]+'%'},_0x1d5735;}})}));_0x4a44f4=_[_0xa6768c(0x202)]({},_0x4a44f4,_0x47c34e[_0xa6768c(0x220)]);const _0x508241={'where':_0x4a44f4[_0xa6768c(0x209)]};return db['Interval'][_0xa6768c(0x212)](_0x508241)[_0xa6768c(0x20f)](function(_0x2c9378){const _0x36bacd=_0xa6768c;return _0x66df23[_0x36bacd(0x212)]=_0x2c9378,_0x47c34e['query'][_0x36bacd(0x1f7)]&&(_0x4a44f4[_0x36bacd(0x206)]=[{'all':!![]}]),db[_0x36bacd(0x1f5)][_0x36bacd(0x217)](_0x4a44f4);})['then'](function(_0xefd1b1){return _0x66df23['rows']=_0xefd1b1,_0x66df23;})[_0xa6768c(0x20f)](respondWithFilteredResult(_0x3e3ae8,_0x4a44f4))['catch'](handleError(_0x3e3ae8,null));},exports[a442_0xd605e3(0x1f1)]=function(_0x3eb8fc,_0x5e05da){const _0x2a3acc=a442_0xd605e3;let _0x7832a0={'raw':!![],'where':{'id':_0x3eb8fc[_0x2a3acc(0x219)]['id']}};const _0x221689={};return _0x221689['model']=_[_0x2a3acc(0x211)](db[_0x2a3acc(0x1f5)][_0x2a3acc(0x1fd)]),_0x221689['query']=_[_0x2a3acc(0x211)](_0x3eb8fc[_0x2a3acc(0x1fe)]),_0x221689[_0x2a3acc(0x21f)]=_[_0x2a3acc(0x221)](_0x221689[_0x2a3acc(0x229)],_0x221689[_0x2a3acc(0x1fe)]),_0x7832a0['attributes']=_[_0x2a3acc(0x221)](_0x221689['model'],qs['fields'](_0x3eb8fc['query'][_0x2a3acc(0x213)])),_0x7832a0[_0x2a3acc(0x224)]=_0x7832a0['attributes'][_0x2a3acc(0x21c)]?_0x7832a0[_0x2a3acc(0x224)]:_0x221689[_0x2a3acc(0x229)],_0x3eb8fc[_0x2a3acc(0x1fe)][_0x2a3acc(0x1f7)]&&(_0x7832a0[_0x2a3acc(0x206)]=[{'all':!![]}]),_0x7832a0=_[_0x2a3acc(0x202)]({},_0x7832a0,_0x3eb8fc[_0x2a3acc(0x220)]),db['Interval'][_0x2a3acc(0x1eb)](_0x7832a0)['then'](handleEntityNotFound(_0x5e05da,null))['then'](respondWithResult(_0x5e05da,null))[_0x2a3acc(0x223)](handleError(_0x5e05da,null));},exports[a442_0xd605e3(0x20e)]=function(_0x3aca93,_0x5ddec9){const _0x599171=a442_0xd605e3;return db[_0x599171(0x1f5)][_0x599171(0x20e)](_0x3aca93[_0x599171(0x200)],{})[_0x599171(0x20f)](function(_0x1774f9){const _0x1cc127=_0x599171,_0x235d4a=_0x3aca93[_0x1cc127(0x1e9)]['get']({'plain':!![]});if(!_0x235d4a)throw new Error(_0x1cc127(0x1ea));if(_0x235d4a[_0x1cc127(0x226)]===_0x1cc127(0x1e9)){const _0x24982a=_0x1774f9[_0x1cc127(0x225)]({'plain':!![]}),_0x164f78='Intervals';return db[_0x1cc127(0x1ed)][_0x1cc127(0x1eb)]({'where':{'name':_0x164f78,'userProfileId':_0x235d4a[_0x1cc127(0x1f4)]},'raw':!![]})[_0x1cc127(0x20f)](function(_0x3b28cb){const _0x38c772=_0x1cc127;return _0x3b28cb&&_0x3b28cb[_0x38c772(0x1fa)]===0x0?db['UserProfileResource'][_0x38c772(0x20e)]({'name':_0x24982a[_0x38c772(0x207)],'resourceId':_0x24982a['id'],'type':_0x3b28cb['name'],'sectionId':_0x3b28cb['id']},{})[_0x38c772(0x20f)](function(){return _0x1774f9;}):_0x1774f9;})['catch'](function(_0x48f79e){const _0x3c5160=_0x1cc127;logger[_0x3c5160(0x218)](_0x3c5160(0x210),_0x48f79e);throw _0x48f79e;});}return _0x1774f9;})['then'](respondWithResult(_0x5ddec9,0xc9))[_0x599171(0x223)](handleError(_0x5ddec9,null));},exports[a442_0xd605e3(0x21b)]=function(_0x280d71,_0x5a8fe8){const _0x3ca2f0=a442_0xd605e3;return _0x280d71[_0x3ca2f0(0x200)]['id']&&delete _0x280d71[_0x3ca2f0(0x200)]['id'],db[_0x3ca2f0(0x1f5)][_0x3ca2f0(0x1eb)]({'where':{'id':_0x280d71[_0x3ca2f0(0x219)]['id']}})['then'](handleEntityNotFound(_0x5a8fe8,null))[_0x3ca2f0(0x20f)](saveUpdates(_0x280d71[_0x3ca2f0(0x200)],null))[_0x3ca2f0(0x20f)](respondWithResult(_0x5a8fe8,null))[_0x3ca2f0(0x223)](handleError(_0x5a8fe8,null));},exports[a442_0xd605e3(0x1ec)]=function(_0x402e3f,_0xc3f894){const _0xaf18a0=a442_0xd605e3;return db[_0xaf18a0(0x1f5)][_0xaf18a0(0x1eb)]({'where':{'id':_0x402e3f[_0xaf18a0(0x219)]['id']}})[_0xaf18a0(0x20f)](handleEntityNotFound(_0xc3f894,null))[_0xaf18a0(0x20f)](removeEntity(_0xc3f894,null))[_0xaf18a0(0x223)](handleError(_0xc3f894,null));},exports['addInterval']=function(_0x531ddd,_0x21b886){const _0x3a54cf=a442_0xd605e3;return _0x531ddd[_0x3a54cf(0x200)]['id']&&delete _0x531ddd[_0x3a54cf(0x200)]['id'],db[_0x3a54cf(0x1f5)][_0x3a54cf(0x1eb)]({'where':{'id':_0x531ddd[_0x3a54cf(0x219)]['id']}})[_0x3a54cf(0x20f)](handleEntityNotFound(_0x21b886,null))[_0x3a54cf(0x20f)](function(_0x561f70){const _0x260658=_0x3a54cf;if(_0x561f70)return _0x531ddd[_0x260658(0x200)][_0x260658(0x1f2)]=_0x561f70['id'],db[_0x260658(0x1f5)]['create'](_0x531ddd[_0x260658(0x200)]);})['then'](respondWithResult(_0x21b886,null))[_0x3a54cf(0x223)](handleError(_0x21b886,null));},exports['getIntervals']=function(_0x5af9a2,_0x4674e3){const _0x44e6b2=a442_0xd605e3;let _0x22842b={};const _0x48719c={};let _0xaaa034,_0x258605;return db['Interval'][_0x44e6b2(0x1eb)]({'where':{'id':_0x5af9a2['params']['id']}})[_0x44e6b2(0x20f)](handleEntityNotFound(_0x4674e3,null))[_0x44e6b2(0x20f)](function(_0x114c65){const _0x22b1cb=_0x44e6b2;if(_0x114c65)return _0xaaa034=_0x114c65,_0x48719c[_0x22b1cb(0x229)]=_[_0x22b1cb(0x211)](db['Interval'][_0x22b1cb(0x1fd)]),_0x48719c[_0x22b1cb(0x1fe)]=_[_0x22b1cb(0x211)](_0x5af9a2[_0x22b1cb(0x1fe)]),_0x48719c[_0x22b1cb(0x21f)]=_[_0x22b1cb(0x221)](_0x48719c['model'],_0x48719c['query']),_0x22842b[_0x22b1cb(0x224)]=_[_0x22b1cb(0x221)](_0x48719c['model'],qs['fields'](_0x5af9a2[_0x22b1cb(0x1fe)][_0x22b1cb(0x213)])),_0x22842b[_0x22b1cb(0x224)]=_0x22842b[_0x22b1cb(0x224)][_0x22b1cb(0x21c)]?_0x22842b[_0x22b1cb(0x224)]:_0x48719c[_0x22b1cb(0x229)],_0x22842b[_0x22b1cb(0x1f9)]=qs[_0x22b1cb(0x21d)](_0x5af9a2[_0x22b1cb(0x1fe)]['sort']),_0x22842b[_0x22b1cb(0x209)]=qs[_0x22b1cb(0x21f)](_[_0x22b1cb(0x204)](_0x5af9a2['query'],_0x48719c['filters'])),_0x5af9a2['query']['filter']&&(_0x22842b[_0x22b1cb(0x209)]=_[_0x22b1cb(0x202)](_0x22842b['where'],{[Op['or']]:_[_0x22b1cb(0x1ee)](_0x22842b['attributes'],function(_0x270146){const _0x2a0075=_0x22b1cb,_0x171dbd={};return _0x171dbd[_0x270146]={[Op[_0x2a0075(0x208)]]:'%'+_0x5af9a2['query']['filter']+'%'},_0x171dbd;})})),_0x22842b=_[_0x22b1cb(0x202)]({},_0x22842b,_0x5af9a2['options']),_0xaaa034[_0x22b1cb(0x222)](_0x22842b);})['then'](function(_0x3ba7ad){const _0x337d70=_0x44e6b2;if(_0x3ba7ad)return _0x258605=_0x3ba7ad[_0x337d70(0x21c)],typeof _0x5af9a2[_0x337d70(0x1fe)]['nolimit']===_0x337d70(0x227)&&(_0x22842b[_0x337d70(0x214)]=qs['limit'](_0x5af9a2[_0x337d70(0x1fe)]['limit']),_0x22842b[_0x337d70(0x215)]=qs[_0x337d70(0x215)](_0x5af9a2[_0x337d70(0x1fe)]['offset'])),_0xaaa034[_0x337d70(0x222)](_0x22842b);})['then'](function(_0xab60d4){if(_0xab60d4)return _0xab60d4?{'count':_0x258605,'rows':_0xab60d4}:null;})[_0x44e6b2(0x20f)](respondWithResult(_0x4674e3,null))['catch'](handleError(_0x4674e3,null));},exports[a442_0xd605e3(0x20b)]=function(_0xf7701a,_0x2bde4f){const _0x5a8b52=a442_0xd605e3;return db['Interval'][_0x5a8b52(0x1eb)]({'where':{'id':_0xf7701a[_0x5a8b52(0x219)]['id']}})[_0x5a8b52(0x20f)](handleEntityNotFound(_0x2bde4f,null))[_0x5a8b52(0x20f)](function(_0x487ccb){const _0x55ef06=_0x5a8b52;if(_0x487ccb)return db[_0x55ef06(0x1ef)][_0x55ef06(0x1ff)](function(_0x584a8c){const _0x5178=_0x55ef06;return db[_0x5178(0x1f5)]['destroy']({'where':{'IntervalId':_0xf7701a['params']['id']},'transaction':_0x584a8c})[_0x5178(0x20f)](function(){const _0x3133fa=_0x5178,_0x43677e=_[_0x3133fa(0x1ee)](_0xf7701a['body'],function(_0x2ea5b9){const _0x558a6b=_0x3133fa;return delete _0x2ea5b9['id'],_0x2ea5b9[_0x558a6b(0x1f2)]=_0xf7701a[_0x558a6b(0x219)]['id'],_0x2ea5b9;});return db[_0x3133fa(0x1f5)][_0x3133fa(0x1f3)](_0x43677e,{'transaction':_0x584a8c});});})[_0x55ef06(0x20f)](function(){const _0x263358=_0x55ef06;return db['Interval']['findAll']({'where':{'IntervalId':_0xf7701a[_0x263358(0x219)]['id']}});});})[_0x5a8b52(0x20f)](respondWithResult(_0x2bde4f,null))[_0x5a8b52(0x223)](handleError(_0x2bde4f,null));}; \ No newline at end of file +const a442_0x44e2=['addInterval','body','offset','pick','status','like','update','Intervals','options','rawAttributes','Content-Range','autoAssociation','send','end','../../mysqldb','then','merge','model','name','lodash','query','type','create','json','catch','set','get','count','limit','VIRTUAL','destroy','findOne','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','findAll','filters','params','stack','transaction','api','key','undefined','Interval','sendStatus','filter','sort','sequelize','bulkCreate','map','role','order','attributes','keys','user','Unable\x20to\x20retrieve\x20the\x20current\x20user','error','../../config/logger','IntervalId','UserProfileSection','intersection','UserProfileResource','where','getIntervals','show','include','includeAll','fields','nolimit'];(function(_0x5361ea,_0x58cf7d){const _0x44e2f4=function(_0x3802c4){while(--_0x3802c4){_0x5361ea['push'](_0x5361ea['shift']());}};_0x44e2f4(++_0x58cf7d);}(a442_0x44e2,0x1e3));const a442_0x3802=function(_0x5361ea,_0x58cf7d){_0x5361ea=_0x5361ea-0x117;let _0x44e2f4=a442_0x44e2[_0x5361ea];return _0x44e2f4;};const a442_0x34cf85=a442_0x3802;'use strict';const _=require(a442_0x34cf85(0x11c)),qs=require('../../components/parsers/qs'),logger=require(a442_0x34cf85(0x140))(a442_0x34cf85(0x12f)),{db}=require(a442_0x34cf85(0x117)),{Op}=require(a442_0x34cf85(0x136));function respondWithResult(_0x185560,_0xcd978f){return _0xcd978f=_0xcd978f||0xc8,function(_0x1dbf92){const _0x5a7a23=a442_0x3802;if(_0x1dbf92)return _0x185560[_0x5a7a23(0x150)](_0xcd978f)[_0x5a7a23(0x120)](_0x1dbf92);};}function respondWithFilteredResult(_0x4bea60,_0x54daa7){return function(_0x15b8f6){const _0x5809c2=a442_0x3802;if(_0x15b8f6){const _0xe6c59b=_0x15b8f6[_0x5809c2(0x124)],_0x2fd0b3=_0x54daa7['offset'];let _0x5be119=_0x54daa7[_0x5809c2(0x14e)]+_0x54daa7['limit'],_0x450296;return _0x5be119>=_0xe6c59b?(_0x5be119=_0xe6c59b,_0x450296=0xc8):_0x450296=0xce,_0x4bea60[_0x5809c2(0x150)](_0x450296),_0x4bea60[_0x5809c2(0x122)](_0x5809c2(0x156),_0x2fd0b3+'-'+_0x5be119+'/'+_0xe6c59b)[_0x5809c2(0x120)](_0x15b8f6);}return null;};}function saveUpdates(_0x4f33ac){return function(_0x241e67){const _0x3d15e3=a442_0x3802;if(_0x241e67)return _0x241e67[_0x3d15e3(0x152)](_0x4f33ac)[_0x3d15e3(0x118)](function(_0x1668cb){return _0x1668cb;});return null;};}function removeEntity(_0x1742ea){return function(_0x1f2f5f){const _0x1656bb=a442_0x3802;if(_0x1f2f5f)return _0x1f2f5f[_0x1656bb(0x127)]()['then'](function(){const _0x15e460=_0x1656bb,_0x3249a2=_0x1f2f5f['get']({'plain':!![]}),_0x6dd562=_0x15e460(0x153);return db[_0x15e460(0x144)][_0x15e460(0x127)]({'where':{'type':_0x6dd562,'resourceId':_0x3249a2['id']}})['then'](function(){return _0x1f2f5f;});})[_0x1656bb(0x118)](function(){const _0x5293b5=_0x1656bb;_0x1742ea[_0x5293b5(0x150)](0xcc)[_0x5293b5(0x159)]();});};}function handleEntityNotFound(_0x28b845){return function(_0x40d630){const _0x273ab5=a442_0x3802;return!_0x40d630&&_0x28b845[_0x273ab5(0x133)](0x194),_0x40d630;};}function handleError(_0x9a9492,_0x2efcf6){return _0x2efcf6=_0x2efcf6||0x1f4,function(_0xa88397){const _0x313ee4=a442_0x3802;logger[_0x313ee4(0x13f)](_0xa88397[_0x313ee4(0x12d)]),_0xa88397[_0x313ee4(0x11b)]&&delete _0xa88397['name'],_0x9a9492['status'](_0x2efcf6)[_0x313ee4(0x158)](_0xa88397);};}exports['index']=function(_0x298c73,_0x5b03b9){const _0x512f2=a442_0x34cf85;let _0x29c776={};const _0x5dd789={},_0x4b80e4={'count':0x0,'rows':[]},_0x2920d7=_[_0x512f2(0x138)](db[_0x512f2(0x132)][_0x512f2(0x155)],function(_0x5e3219){const _0x31e8c1=_0x512f2;return{'name':_0x5e3219['fieldName'],'type':_0x5e3219['type'][_0x31e8c1(0x130)]};});_0x5dd789[_0x512f2(0x11a)]=_['map'](_0x2920d7,_0x512f2(0x11b)),_0x5dd789[_0x512f2(0x11d)]=_['keys'](_0x298c73['query']),_0x5dd789[_0x512f2(0x12b)]=_[_0x512f2(0x143)](_0x5dd789[_0x512f2(0x11a)],_0x5dd789['query']),_0x29c776[_0x512f2(0x13b)]=_[_0x512f2(0x143)](_0x5dd789[_0x512f2(0x11a)],qs[_0x512f2(0x14a)](_0x298c73[_0x512f2(0x11d)]['fields'])),_0x29c776[_0x512f2(0x13b)]=_0x29c776[_0x512f2(0x13b)]['length']?_0x29c776[_0x512f2(0x13b)]:_0x5dd789[_0x512f2(0x11a)];typeof _0x298c73[_0x512f2(0x11d)]['nolimit']===_0x512f2(0x131)&&(_0x29c776['limit']=qs[_0x512f2(0x125)](_0x298c73[_0x512f2(0x11d)][_0x512f2(0x125)]),_0x29c776[_0x512f2(0x14e)]=qs[_0x512f2(0x14e)](_0x298c73[_0x512f2(0x11d)]['offset']));_0x29c776[_0x512f2(0x13a)]=qs['sort'](_0x298c73[_0x512f2(0x11d)][_0x512f2(0x135)]),_0x29c776[_0x512f2(0x145)]=qs[_0x512f2(0x12b)](_[_0x512f2(0x14f)](_0x298c73[_0x512f2(0x11d)],_0x5dd789[_0x512f2(0x12b)]),_0x2920d7);_0x298c73[_0x512f2(0x11d)]['filter']&&(_0x29c776[_0x512f2(0x145)]=_[_0x512f2(0x119)](_0x29c776[_0x512f2(0x145)],{[Op['or']]:_[_0x512f2(0x138)](_0x2920d7,function(_0x16b1e3){const _0x5b1998=_0x512f2;if(_0x16b1e3[_0x5b1998(0x11e)]!==_0x5b1998(0x126)){const _0x9af50b={};return _0x9af50b[_0x16b1e3[_0x5b1998(0x11b)]]={[Op[_0x5b1998(0x151)]]:'%'+_0x298c73[_0x5b1998(0x11d)]['filter']+'%'},_0x9af50b;}})}));_0x29c776=_[_0x512f2(0x119)]({},_0x29c776,_0x298c73[_0x512f2(0x154)]);const _0x23b7ac={'where':_0x29c776[_0x512f2(0x145)]};return db[_0x512f2(0x132)][_0x512f2(0x124)](_0x23b7ac)['then'](function(_0x2d8a0b){const _0x3234aa=_0x512f2;return _0x4b80e4['count']=_0x2d8a0b,_0x298c73['query'][_0x3234aa(0x149)]&&(_0x29c776[_0x3234aa(0x148)]=[{'all':!![]}]),db[_0x3234aa(0x132)][_0x3234aa(0x12a)](_0x29c776);})[_0x512f2(0x118)](function(_0x3f22ec){return _0x4b80e4['rows']=_0x3f22ec,_0x4b80e4;})[_0x512f2(0x118)](respondWithFilteredResult(_0x5b03b9,_0x29c776))[_0x512f2(0x121)](handleError(_0x5b03b9,null));},exports[a442_0x34cf85(0x147)]=function(_0x2cc030,_0xe8a298){const _0x200f39=a442_0x34cf85;let _0x10205d={'raw':!![],'where':{'id':_0x2cc030[_0x200f39(0x12c)]['id']}};const _0x5a8ff4={};return _0x5a8ff4[_0x200f39(0x11a)]=_[_0x200f39(0x13c)](db[_0x200f39(0x132)]['rawAttributes']),_0x5a8ff4[_0x200f39(0x11d)]=_[_0x200f39(0x13c)](_0x2cc030['query']),_0x5a8ff4[_0x200f39(0x12b)]=_['intersection'](_0x5a8ff4[_0x200f39(0x11a)],_0x5a8ff4['query']),_0x10205d[_0x200f39(0x13b)]=_[_0x200f39(0x143)](_0x5a8ff4[_0x200f39(0x11a)],qs[_0x200f39(0x14a)](_0x2cc030[_0x200f39(0x11d)][_0x200f39(0x14a)])),_0x10205d[_0x200f39(0x13b)]=_0x10205d[_0x200f39(0x13b)]['length']?_0x10205d['attributes']:_0x5a8ff4['model'],_0x2cc030[_0x200f39(0x11d)][_0x200f39(0x149)]&&(_0x10205d['include']=[{'all':!![]}]),_0x10205d=_['merge']({},_0x10205d,_0x2cc030[_0x200f39(0x154)]),db[_0x200f39(0x132)][_0x200f39(0x128)](_0x10205d)[_0x200f39(0x118)](handleEntityNotFound(_0xe8a298,null))[_0x200f39(0x118)](respondWithResult(_0xe8a298,null))[_0x200f39(0x121)](handleError(_0xe8a298,null));},exports[a442_0x34cf85(0x11f)]=function(_0x381197,_0x26742b){const _0x4ea863=a442_0x34cf85;return db[_0x4ea863(0x132)]['create'](_0x381197[_0x4ea863(0x14d)],{})[_0x4ea863(0x118)](function(_0xeea3a2){const _0x273a84=_0x4ea863,_0x262d03=_0x381197['user'][_0x273a84(0x123)]({'plain':!![]});if(!_0x262d03)throw new Error(_0x273a84(0x13e));if(_0x262d03[_0x273a84(0x139)]===_0x273a84(0x13d)){const _0xa5b5cc=_0xeea3a2['get']({'plain':!![]}),_0x54df2e='Intervals';return db[_0x273a84(0x142)][_0x273a84(0x128)]({'where':{'name':_0x54df2e,'userProfileId':_0x262d03['userProfileId']},'raw':!![]})['then'](function(_0x105716){const _0x547aba=_0x273a84;return _0x105716&&_0x105716[_0x547aba(0x157)]===0x0?db[_0x547aba(0x144)]['create']({'name':_0xa5b5cc[_0x547aba(0x11b)],'resourceId':_0xa5b5cc['id'],'type':_0x105716[_0x547aba(0x11b)],'sectionId':_0x105716['id']},{})[_0x547aba(0x118)](function(){return _0xeea3a2;}):_0xeea3a2;})[_0x273a84(0x121)](function(_0x10e29e){const _0x2f29af=_0x273a84;logger[_0x2f29af(0x13f)](_0x2f29af(0x129),_0x10e29e);throw _0x10e29e;});}return _0xeea3a2;})[_0x4ea863(0x118)](respondWithResult(_0x26742b,0xc9))[_0x4ea863(0x121)](handleError(_0x26742b,null));},exports[a442_0x34cf85(0x152)]=function(_0x4c56cc,_0x1efc49){const _0x5d2599=a442_0x34cf85;return _0x4c56cc['body']['id']&&delete _0x4c56cc['body']['id'],db[_0x5d2599(0x132)]['findOne']({'where':{'id':_0x4c56cc[_0x5d2599(0x12c)]['id']}})[_0x5d2599(0x118)](handleEntityNotFound(_0x1efc49,null))[_0x5d2599(0x118)](saveUpdates(_0x4c56cc[_0x5d2599(0x14d)],null))[_0x5d2599(0x118)](respondWithResult(_0x1efc49,null))['catch'](handleError(_0x1efc49,null));},exports['destroy']=function(_0x1abd03,_0x4948b2){const _0x33188e=a442_0x34cf85;return db['Interval'][_0x33188e(0x128)]({'where':{'id':_0x1abd03[_0x33188e(0x12c)]['id']}})[_0x33188e(0x118)](handleEntityNotFound(_0x4948b2,null))[_0x33188e(0x118)](removeEntity(_0x4948b2,null))[_0x33188e(0x121)](handleError(_0x4948b2,null));},exports[a442_0x34cf85(0x14c)]=function(_0x276173,_0x30bd6d){const _0x4adad4=a442_0x34cf85;return _0x276173[_0x4adad4(0x14d)]['id']&&delete _0x276173[_0x4adad4(0x14d)]['id'],db[_0x4adad4(0x132)][_0x4adad4(0x128)]({'where':{'id':_0x276173[_0x4adad4(0x12c)]['id']}})[_0x4adad4(0x118)](handleEntityNotFound(_0x30bd6d,null))[_0x4adad4(0x118)](function(_0x588fff){const _0x51ac4f=_0x4adad4;if(_0x588fff)return _0x276173[_0x51ac4f(0x14d)][_0x51ac4f(0x141)]=_0x588fff['id'],db[_0x51ac4f(0x132)][_0x51ac4f(0x11f)](_0x276173[_0x51ac4f(0x14d)]);})[_0x4adad4(0x118)](respondWithResult(_0x30bd6d,null))[_0x4adad4(0x121)](handleError(_0x30bd6d,null));},exports['getIntervals']=function(_0xcea4ec,_0x31b947){const _0x1f3b09=a442_0x34cf85;let _0x5349c9={};const _0x47f65={};let _0x4de4b9,_0x19783c;return db['Interval']['findOne']({'where':{'id':_0xcea4ec['params']['id']}})['then'](handleEntityNotFound(_0x31b947,null))[_0x1f3b09(0x118)](function(_0x5c3976){const _0x4befef=_0x1f3b09;if(_0x5c3976)return _0x4de4b9=_0x5c3976,_0x47f65[_0x4befef(0x11a)]=_[_0x4befef(0x13c)](db['Interval'][_0x4befef(0x155)]),_0x47f65[_0x4befef(0x11d)]=_[_0x4befef(0x13c)](_0xcea4ec[_0x4befef(0x11d)]),_0x47f65[_0x4befef(0x12b)]=_[_0x4befef(0x143)](_0x47f65[_0x4befef(0x11a)],_0x47f65[_0x4befef(0x11d)]),_0x5349c9['attributes']=_[_0x4befef(0x143)](_0x47f65['model'],qs[_0x4befef(0x14a)](_0xcea4ec[_0x4befef(0x11d)][_0x4befef(0x14a)])),_0x5349c9[_0x4befef(0x13b)]=_0x5349c9[_0x4befef(0x13b)]['length']?_0x5349c9[_0x4befef(0x13b)]:_0x47f65['model'],_0x5349c9[_0x4befef(0x13a)]=qs['sort'](_0xcea4ec[_0x4befef(0x11d)]['sort']),_0x5349c9[_0x4befef(0x145)]=qs['filters'](_[_0x4befef(0x14f)](_0xcea4ec['query'],_0x47f65['filters'])),_0xcea4ec[_0x4befef(0x11d)][_0x4befef(0x134)]&&(_0x5349c9['where']=_['merge'](_0x5349c9[_0x4befef(0x145)],{[Op['or']]:_[_0x4befef(0x138)](_0x5349c9[_0x4befef(0x13b)],function(_0x197021){const _0x5c83a1=_0x4befef,_0x2e465c={};return _0x2e465c[_0x197021]={[Op[_0x5c83a1(0x151)]]:'%'+_0xcea4ec['query']['filter']+'%'},_0x2e465c;})})),_0x5349c9=_[_0x4befef(0x119)]({},_0x5349c9,_0xcea4ec[_0x4befef(0x154)]),_0x4de4b9[_0x4befef(0x146)](_0x5349c9);})[_0x1f3b09(0x118)](function(_0x390daf){const _0x3ad40a=_0x1f3b09;if(_0x390daf)return _0x19783c=_0x390daf['length'],typeof _0xcea4ec[_0x3ad40a(0x11d)][_0x3ad40a(0x14b)]==='undefined'&&(_0x5349c9['limit']=qs['limit'](_0xcea4ec[_0x3ad40a(0x11d)][_0x3ad40a(0x125)]),_0x5349c9[_0x3ad40a(0x14e)]=qs[_0x3ad40a(0x14e)](_0xcea4ec[_0x3ad40a(0x11d)][_0x3ad40a(0x14e)])),_0x4de4b9[_0x3ad40a(0x146)](_0x5349c9);})[_0x1f3b09(0x118)](function(_0x1b5aa6){if(_0x1b5aa6)return _0x1b5aa6?{'count':_0x19783c,'rows':_0x1b5aa6}:null;})['then'](respondWithResult(_0x31b947,null))[_0x1f3b09(0x121)](handleError(_0x31b947,null));},exports['addIntervals']=function(_0x3f4452,_0x554715){const _0x1f99a2=a442_0x34cf85;return db['Interval'][_0x1f99a2(0x128)]({'where':{'id':_0x3f4452[_0x1f99a2(0x12c)]['id']}})[_0x1f99a2(0x118)](handleEntityNotFound(_0x554715,null))[_0x1f99a2(0x118)](function(_0x58394d){const _0x4073fd=_0x1f99a2;if(_0x58394d)return db[_0x4073fd(0x136)][_0x4073fd(0x12e)](function(_0x43dd32){const _0x57c7f5=_0x4073fd;return db[_0x57c7f5(0x132)][_0x57c7f5(0x127)]({'where':{'IntervalId':_0x3f4452['params']['id']},'transaction':_0x43dd32})[_0x57c7f5(0x118)](function(){const _0x23d10c=_0x57c7f5,_0x2d12be=_[_0x23d10c(0x138)](_0x3f4452[_0x23d10c(0x14d)],function(_0x24e001){const _0x22ef44=_0x23d10c;return delete _0x24e001['id'],_0x24e001['IntervalId']=_0x3f4452[_0x22ef44(0x12c)]['id'],_0x24e001;});return db[_0x23d10c(0x132)][_0x23d10c(0x137)](_0x2d12be,{'transaction':_0x43dd32});});})['then'](function(){const _0x5a09d5=_0x4073fd;return db[_0x5a09d5(0x132)][_0x5a09d5(0x12a)]({'where':{'IntervalId':_0x3f4452[_0x5a09d5(0x12c)]['id']}});});})['then'](respondWithResult(_0x554715,null))[_0x1f99a2(0x121)](handleError(_0x554715,null));}; \ No newline at end of file diff --git a/server/api/interval/interval.model.js b/server/api/interval/interval.model.js index a7a21af..c77c88b 100644 --- a/server/api/interval/interval.model.js +++ b/server/api/interval/interval.model.js @@ -1 +1 @@ -const a443_0x186f=['./interval.options','Interval','exports','init','./interval.attributes'];(function(_0x1e8b24,_0x336d9f){const _0x186fe7=function(_0x31078e){while(--_0x31078e){_0x1e8b24['push'](_0x1e8b24['shift']());}};_0x186fe7(++_0x336d9f);}(a443_0x186f,0x1b3));const a443_0x3107=function(_0x1e8b24,_0x336d9f){_0x1e8b24=_0x1e8b24-0x1ba;let _0x186fe7=a443_0x186f[_0x1e8b24];return _0x186fe7;};const a443_0x4ed541=a443_0x3107;'use strict';const {Model}=require('sequelize'),{attributes}=require(a443_0x4ed541(0x1be)),{options}=require(a443_0x4ed541(0x1ba));class Interval extends Model{}function init(_0x133591,_0x1555e9){const _0x50aa86=options(_0x133591),_0x363d23=typeof _0x1555e9==='function'?_0x1555e9(_0x50aa86):_0x50aa86;return Interval['init'](attributes,_0x363d23),Interval;}module[a443_0x4ed541(0x1bc)][a443_0x4ed541(0x1bb)]=Interval,module[a443_0x4ed541(0x1bc)][a443_0x4ed541(0x1bd)]=init; \ No newline at end of file +const a443_0x2312=['Interval','init','exports','sequelize'];(function(_0x467afc,_0x3fde48){const _0x23121d=function(_0x4c1863){while(--_0x4c1863){_0x467afc['push'](_0x467afc['shift']());}};_0x23121d(++_0x3fde48);}(a443_0x2312,0x91));const a443_0x4c18=function(_0x467afc,_0x3fde48){_0x467afc=_0x467afc-0x1e3;let _0x23121d=a443_0x2312[_0x467afc];return _0x23121d;};const a443_0x34d409=a443_0x4c18;'use strict';const {Model}=require(a443_0x34d409(0x1e5)),{attributes}=require('./interval.attributes'),{options}=require('./interval.options');class Interval extends Model{}function init(_0xe5514c,_0x3c0873){const _0x3b4809=a443_0x34d409,_0xcf8334=options(_0xe5514c),_0x1f50b3=typeof _0x3c0873==='function'?_0x3c0873(_0xcf8334):_0xcf8334;return Interval[_0x3b4809(0x1e3)](attributes,_0x1f50b3),Interval;}module[a443_0x34d409(0x1e4)][a443_0x34d409(0x1e6)]=Interval,module[a443_0x34d409(0x1e4)]['init']=init; \ No newline at end of file diff --git a/server/api/interval/interval.options.js b/server/api/interval/interval.options.js index 0b0af0b..4fdca81 100644 --- a/server/api/interval/interval.options.js +++ b/server/api/interval/interval.options.js @@ -1 +1 @@ -const a444_0x39ed=['../../components/extensions/rewrite','rewrite','exports','options','tools_intervals'];(function(_0x13ab45,_0x2dfd94){const _0x39ed81=function(_0x31fee6){while(--_0x31fee6){_0x13ab45['push'](_0x13ab45['shift']());}};_0x39ed81(++_0x2dfd94);}(a444_0x39ed,0xf6));const a444_0x31fe=function(_0x13ab45,_0x2dfd94){_0x13ab45=_0x13ab45-0xdd;let _0x39ed81=a444_0x39ed[_0x13ab45];return _0x39ed81;};const a444_0x239197=a444_0x31fe,extensions=require(a444_0x239197(0xe1));function options(_0x1f9637){const _0x2bfc44=a444_0x239197;return{'sequelize':_0x1f9637,'tableName':_0x2bfc44(0xe0),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x244c6a){const _0xe1212a=_0x2bfc44;extensions[_0xe1212a(0xdd)](_0x1f9637,_0x244c6a);},'afterBulkCreate':function(_0x229083){const _0x18a89c=_0x2bfc44;extensions[_0x18a89c(0xdd)](_0x1f9637,_0x229083[0x0]);},'afterUpdate':function(_0x813fdf){const _0x160cb5=_0x2bfc44;extensions[_0x160cb5(0xdd)](_0x1f9637,_0x813fdf);},'afterDestroy':function(_0x33a696){const _0x3d19e8=_0x2bfc44;extensions[_0x3d19e8(0xdd)](_0x1f9637,_0x33a696);}}};}module[a444_0x239197(0xde)][a444_0x239197(0xdf)]=options; \ No newline at end of file +const a444_0x2c09=['exports','options','rewrite'];(function(_0x121e5c,_0x4f486d){const _0x2c091d=function(_0x73997f){while(--_0x73997f){_0x121e5c['push'](_0x121e5c['shift']());}};_0x2c091d(++_0x4f486d);}(a444_0x2c09,0xda));const a444_0x7399=function(_0x121e5c,_0x4f486d){_0x121e5c=_0x121e5c-0x101;let _0x2c091d=a444_0x2c09[_0x121e5c];return _0x2c091d;};const a444_0x1b7829=a444_0x7399,extensions=require('../../components/extensions/rewrite');function options(_0x249518){return{'sequelize':_0x249518,'tableName':'tools_intervals','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x289c4a){extensions['rewrite'](_0x249518,_0x289c4a);},'afterBulkCreate':function(_0x1db40f){const _0x51bfd0=a444_0x7399;extensions[_0x51bfd0(0x101)](_0x249518,_0x1db40f[0x0]);},'afterUpdate':function(_0x181b43){const _0xdb7a6e=a444_0x7399;extensions[_0xdb7a6e(0x101)](_0x249518,_0x181b43);},'afterDestroy':function(_0x352aa1){extensions['rewrite'](_0x249518,_0x352aa1);}}};}module[a444_0x1b7829(0x102)][a444_0x1b7829(0x103)]=options; \ No newline at end of file diff --git a/server/api/interval/interval.rpc.js b/server/api/interval/interval.rpc.js index 3cb25c7..555358a 100644 --- a/server/api/interval/interval.rpc.js +++ b/server/api/interval/interval.rpc.js @@ -1 +1 @@ -const a445_0x3937=['ShowInterval','findOne','../../mysqldb','debug','model','GetInterval','limit','Interval','where','lodash','then','catch','attributes','raw','error','include','stringify','message','map','options'];(function(_0x4c01d5,_0x50aafc){const _0x39370c=function(_0x3d72fa){while(--_0x3d72fa){_0x4c01d5['push'](_0x4c01d5['shift']());}};_0x39370c(++_0x50aafc);}(a445_0x3937,0xf9));const a445_0x3d72=function(_0x4c01d5,_0x50aafc){_0x4c01d5=_0x4c01d5-0x128;let _0x39370c=a445_0x3937[_0x4c01d5];return _0x39370c;};const a445_0x5a54c8=a445_0x3d72;'use strict';const _=require(a445_0x5a54c8(0x128)),db=require(a445_0x5a54c8(0x135))['db'],logger=require('../../config/logger')('rpc');exports[a445_0x5a54c8(0x138)]=function(_0x481091){const _0x48d792=this;return new Promise(function(_0x1830a7,_0x2886ab){const _0x39add1=a445_0x3d72;return db[_0x39add1(0x13a)]['findAll']({'raw':_0x481091['options']?_0x481091[_0x39add1(0x132)][_0x39add1(0x12c)]===undefined?!![]:![]:!![],'where':_0x481091['options']?_0x481091['options'][_0x39add1(0x13b)]||null:null,'attributes':_0x481091[_0x39add1(0x132)]?_0x481091['options']['attributes']||null:null,'limit':_0x481091[_0x39add1(0x132)]?_0x481091[_0x39add1(0x132)][_0x39add1(0x139)]||null:null,'include':_0x481091[_0x39add1(0x132)]?_0x481091['options'][_0x39add1(0x12e)]?_[_0x39add1(0x131)](_0x481091[_0x39add1(0x132)][_0x39add1(0x12e)],function(_0x149d86){const _0x39c2c9=_0x39add1;return{'model':db[_0x149d86[_0x39c2c9(0x137)]],'as':_0x149d86['as'],'attributes':_0x149d86[_0x39c2c9(0x12b)],'include':_0x149d86[_0x39c2c9(0x12e)]?_['map'](_0x149d86['include'],function(_0x75d17d){const _0x3f4f54=_0x39c2c9;return{'model':db[_0x75d17d[_0x3f4f54(0x137)]],'as':_0x75d17d['as'],'attributes':_0x75d17d[_0x3f4f54(0x12b)],'include':_0x75d17d[_0x3f4f54(0x12e)]?_[_0x3f4f54(0x131)](_0x75d17d[_0x3f4f54(0x12e)],function(_0x2cbf30){const _0x343075=_0x3f4f54;return{'model':db[_0x2cbf30[_0x343075(0x137)]],'as':_0x2cbf30['as'],'attributes':_0x2cbf30['attributes']};}):[]};}):[]};}):[]:[]})[_0x39add1(0x129)](function(_0x98a330){const _0x45cd3a=_0x39add1;logger['info']('GetInterval',_0x481091),logger[_0x45cd3a(0x136)]('GetInterval',_0x481091,JSON[_0x45cd3a(0x12f)](_0x98a330)),_0x1830a7(_0x98a330);})[_0x39add1(0x12a)](function(_0x1d70b4){const _0x5e5f7b=_0x39add1;logger[_0x5e5f7b(0x12d)](_0x5e5f7b(0x138),_0x1d70b4['message'],_0x481091),_0x2886ab(_0x48d792[_0x5e5f7b(0x12d)](0x1f4,_0x1d70b4[_0x5e5f7b(0x130)]));});});},exports['ShowInterval']=function(_0x439331){const _0x1bae94=this;return new Promise(function(_0x4f40e9,_0x1ab3bb){const _0x5a2ac0=a445_0x3d72;return db[_0x5a2ac0(0x13a)][_0x5a2ac0(0x134)]({'raw':_0x439331['options']?_0x439331[_0x5a2ac0(0x132)]['raw']===undefined?!![]:![]:!![],'where':_0x439331[_0x5a2ac0(0x132)]?_0x439331[_0x5a2ac0(0x132)][_0x5a2ac0(0x13b)]||null:null,'attributes':_0x439331[_0x5a2ac0(0x132)]?_0x439331['options'][_0x5a2ac0(0x12b)]||null:null,'include':_0x439331['options']?_0x439331[_0x5a2ac0(0x132)][_0x5a2ac0(0x12e)]?_[_0x5a2ac0(0x131)](_0x439331[_0x5a2ac0(0x132)]['include'],function(_0x41732e){const _0x2e7b08=_0x5a2ac0;return{'model':db[_0x41732e[_0x2e7b08(0x137)]],'as':_0x41732e['as'],'attributes':_0x41732e[_0x2e7b08(0x12b)],'include':_0x41732e[_0x2e7b08(0x12e)]?_['map'](_0x41732e[_0x2e7b08(0x12e)],function(_0x1abce1){const _0x5c0fc4=_0x2e7b08;return{'model':db[_0x1abce1[_0x5c0fc4(0x137)]],'as':_0x1abce1['as'],'attributes':_0x1abce1[_0x5c0fc4(0x12b)],'include':_0x1abce1['include']?_[_0x5c0fc4(0x131)](_0x1abce1[_0x5c0fc4(0x12e)],function(_0x357d75){const _0x28707e=_0x5c0fc4;return{'model':db[_0x357d75[_0x28707e(0x137)]],'as':_0x357d75['as'],'attributes':_0x357d75[_0x28707e(0x12b)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x1c6d02){const _0x244487=_0x5a2ac0;logger['info'](_0x244487(0x133),_0x439331),logger['debug']('ShowInterval',_0x439331,JSON[_0x244487(0x12f)](_0x1c6d02)),_0x4f40e9(_0x1c6d02);})[_0x5a2ac0(0x12a)](function(_0x51c24e){const _0x28df89=_0x5a2ac0;logger[_0x28df89(0x12d)]('ShowInterval',_0x51c24e['message'],_0x439331),_0x1ab3bb(_0x1bae94[_0x28df89(0x12d)](0x1f4,_0x51c24e[_0x28df89(0x130)]));});});}; \ No newline at end of file +const a445_0x52c4=['then','model','include','../../mysqldb','where','error','ShowInterval','../../config/logger','catch','message','Interval','stringify','findOne','limit','rpc','attributes','lodash','map','findAll','options','GetInterval','raw','info','debug'];(function(_0x1ce75a,_0x460a72){const _0x52c4a8=function(_0x492255){while(--_0x492255){_0x1ce75a['push'](_0x1ce75a['shift']());}};_0x52c4a8(++_0x460a72);}(a445_0x52c4,0x134));const a445_0x4922=function(_0x1ce75a,_0x460a72){_0x1ce75a=_0x1ce75a-0x7f;let _0x52c4a8=a445_0x52c4[_0x1ce75a];return _0x52c4a8;};const a445_0x37e628=a445_0x4922;'use strict';const _=require(a445_0x37e628(0x93)),db=require(a445_0x37e628(0x86))['db'],logger=require(a445_0x37e628(0x8a))(a445_0x37e628(0x91));exports[a445_0x37e628(0x7f)]=function(_0x42fbd6){const _0x17ee46=this;return new Promise(function(_0x59cba6,_0x299252){const _0x13f731=a445_0x4922;return db[_0x13f731(0x8d)][_0x13f731(0x95)]({'raw':_0x42fbd6[_0x13f731(0x96)]?_0x42fbd6[_0x13f731(0x96)][_0x13f731(0x80)]===undefined?!![]:![]:!![],'where':_0x42fbd6[_0x13f731(0x96)]?_0x42fbd6[_0x13f731(0x96)][_0x13f731(0x87)]||null:null,'attributes':_0x42fbd6[_0x13f731(0x96)]?_0x42fbd6[_0x13f731(0x96)]['attributes']||null:null,'limit':_0x42fbd6['options']?_0x42fbd6[_0x13f731(0x96)][_0x13f731(0x90)]||null:null,'include':_0x42fbd6[_0x13f731(0x96)]?_0x42fbd6[_0x13f731(0x96)][_0x13f731(0x85)]?_[_0x13f731(0x94)](_0x42fbd6[_0x13f731(0x96)]['include'],function(_0x50f52a){const _0x219e16=_0x13f731;return{'model':db[_0x50f52a['model']],'as':_0x50f52a['as'],'attributes':_0x50f52a[_0x219e16(0x92)],'include':_0x50f52a[_0x219e16(0x85)]?_[_0x219e16(0x94)](_0x50f52a['include'],function(_0xaa34ef){const _0x183f83=_0x219e16;return{'model':db[_0xaa34ef[_0x183f83(0x84)]],'as':_0xaa34ef['as'],'attributes':_0xaa34ef['attributes'],'include':_0xaa34ef[_0x183f83(0x85)]?_[_0x183f83(0x94)](_0xaa34ef[_0x183f83(0x85)],function(_0x380710){const _0x20c971=_0x183f83;return{'model':db[_0x380710['model']],'as':_0x380710['as'],'attributes':_0x380710[_0x20c971(0x92)]};}):[]};}):[]};}):[]:[]})[_0x13f731(0x83)](function(_0x348828){const _0x1783b9=_0x13f731;logger[_0x1783b9(0x81)]('GetInterval',_0x42fbd6),logger[_0x1783b9(0x82)]('GetInterval',_0x42fbd6,JSON[_0x1783b9(0x8e)](_0x348828)),_0x59cba6(_0x348828);})['catch'](function(_0x158014){const _0x29eccd=_0x13f731;logger[_0x29eccd(0x88)](_0x29eccd(0x7f),_0x158014[_0x29eccd(0x8c)],_0x42fbd6),_0x299252(_0x17ee46['error'](0x1f4,_0x158014[_0x29eccd(0x8c)]));});});},exports['ShowInterval']=function(_0x3725d0){const _0x43e577=this;return new Promise(function(_0x57c67c,_0x23fc3a){const _0x192043=a445_0x4922;return db[_0x192043(0x8d)][_0x192043(0x8f)]({'raw':_0x3725d0['options']?_0x3725d0[_0x192043(0x96)][_0x192043(0x80)]===undefined?!![]:![]:!![],'where':_0x3725d0[_0x192043(0x96)]?_0x3725d0[_0x192043(0x96)]['where']||null:null,'attributes':_0x3725d0[_0x192043(0x96)]?_0x3725d0[_0x192043(0x96)][_0x192043(0x92)]||null:null,'include':_0x3725d0[_0x192043(0x96)]?_0x3725d0[_0x192043(0x96)][_0x192043(0x85)]?_[_0x192043(0x94)](_0x3725d0[_0x192043(0x96)][_0x192043(0x85)],function(_0x3fca1d){const _0xd04ba9=_0x192043;return{'model':db[_0x3fca1d[_0xd04ba9(0x84)]],'as':_0x3fca1d['as'],'attributes':_0x3fca1d[_0xd04ba9(0x92)],'include':_0x3fca1d[_0xd04ba9(0x85)]?_['map'](_0x3fca1d[_0xd04ba9(0x85)],function(_0x13f2cb){const _0x60f185=_0xd04ba9;return{'model':db[_0x13f2cb['model']],'as':_0x13f2cb['as'],'attributes':_0x13f2cb['attributes'],'include':_0x13f2cb[_0x60f185(0x85)]?_['map'](_0x13f2cb['include'],function(_0x191870){const _0x2d1401=_0x60f185;return{'model':db[_0x191870[_0x2d1401(0x84)]],'as':_0x191870['as'],'attributes':_0x191870['attributes']};}):[]};}):[]};}):[]:[]})[_0x192043(0x83)](function(_0x3ac99a){const _0x51ae2a=_0x192043;logger['info'](_0x51ae2a(0x89),_0x3725d0),logger[_0x51ae2a(0x82)](_0x51ae2a(0x89),_0x3725d0,JSON['stringify'](_0x3ac99a)),_0x57c67c(_0x3ac99a);})[_0x192043(0x8b)](function(_0x350d70){const _0xe02b7e=_0x192043;logger[_0xe02b7e(0x88)](_0xe02b7e(0x89),_0x350d70[_0xe02b7e(0x8c)],_0x3725d0),_0x23fc3a(_0x43e577[_0xe02b7e(0x88)](0x1f4,_0x350d70[_0xe02b7e(0x8c)]));});});}; \ No newline at end of file diff --git a/server/api/jira/index.js b/server/api/jira/index.js index 00813ae..682a436 100644 --- a/server/api/jira/index.js +++ b/server/api/jira/index.js @@ -1 +1 @@ -const a446_0x5cd5=['isAuthenticated','../../components/auth/service','send','express','post'];(function(_0x343142,_0x26c465){const _0x5cd56f=function(_0xf8b1c){while(--_0xf8b1c){_0x343142['push'](_0x343142['shift']());}};_0x5cd56f(++_0x26c465);}(a446_0x5cd5,0x9c));const a446_0xf8b1=function(_0x343142,_0x26c465){_0x343142=_0x343142-0xc0;let _0x5cd56f=a446_0x5cd5[_0x343142];return _0x5cd56f;};const a446_0x400cce=a446_0xf8b1;'use strict';const express=require(a446_0x400cce(0xc2)),router=express['Router'](),auth=require(a446_0x400cce(0xc0)),controller=require('./jira.controller');router[a446_0x400cce(0xc3)]('/',auth[a446_0x400cce(0xc4)](),controller[a446_0x400cce(0xc1)]),module['exports']=router; \ No newline at end of file +const a446_0x35f6=['exports','./jira.controller','Router','post','send'];(function(_0x29c1cf,_0x580548){const _0x35f6e2=function(_0x19afed){while(--_0x19afed){_0x29c1cf['push'](_0x29c1cf['shift']());}};_0x35f6e2(++_0x580548);}(a446_0x35f6,0x1ee));const a446_0x19af=function(_0x29c1cf,_0x580548){_0x29c1cf=_0x29c1cf-0x104;let _0x35f6e2=a446_0x35f6[_0x29c1cf];return _0x35f6e2;};const a446_0x2136ed=a446_0x19af;'use strict';const express=require('express'),router=express[a446_0x2136ed(0x107)](),auth=require('../../components/auth/service'),controller=require(a446_0x2136ed(0x106));router[a446_0x2136ed(0x108)]('/',auth['isAuthenticated'](),controller[a446_0x2136ed(0x104)]),module[a446_0x2136ed(0x105)]=router; \ No newline at end of file diff --git a/server/api/jira/jira.controller.js b/server/api/jira/jira.controller.js index 8944c9b..39af8e8 100644 --- a/server/api/jira/jira.controller.js +++ b/server/api/jira/jira.controller.js @@ -1 +1 @@ -const a447_0x4b7a=['3eAmWpBVP0','https','\x20from\x20','parse','json','end','connection','headers','customfield_11504','statusCode','MOTGUI','stringify','oldToken','issuetype','Basic\x20','data','remoteAddress','openIssue','base64','status','Bug','send','track.xcallymotion.com','reason','write','Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','description','toString','from','x-forwarded-for','customfield_11501','setEncoding','support','email','body','summary','api.jira','application/json','key','socket','name','utf8','POST','fields'];(function(_0x3072ac,_0x25fa17){const _0x4b7a86=function(_0x49c20f){while(--_0x49c20f){_0x3072ac['push'](_0x3072ac['shift']());}};_0x4b7a86(++_0x25fa17);}(a447_0x4b7a,0x16e));const a447_0x49c2=function(_0x3072ac,_0x25fa17){_0x3072ac=_0x3072ac-0x112;let _0x4b7a86=a447_0x4b7a[_0x3072ac];return _0x4b7a86;};const a447_0x2bb3d5=a447_0x49c2;'use strict';const https=require(a447_0x2bb3d5(0x131)),USERNAME=a447_0x2bb3d5(0x124),PASSWORD=a447_0x2bb3d5(0x130);function openIssue(_0x375d20,_0x25f0e3){const _0x2bbd41=a447_0x2bb3d5,_0x693ebe={'fields':{'project':{'key':_0x375d20[_0x2bbd41(0x12a)]||_0x2bbd41(0x13a)},'summary':(_0x375d20[_0x2bbd41(0x127)]||'Report')+_0x2bbd41(0x132)+_0x375d20['ip'],'description':_0x375d20[_0x2bbd41(0x11e)]||JSON[_0x2bbd41(0x13b)](_0x375d20),'issuetype':{'name':_0x375d20[_0x2bbd41(0x13d)]||_0x2bbd41(0x118)}}};_0x693ebe[_0x2bbd41(0x12f)]['customfield_11500']=_0x375d20[_0x2bbd41(0x125)],_0x693ebe[_0x2bbd41(0x12f)][_0x2bbd41(0x122)]=_0x375d20[_0x2bbd41(0x13c)],_0x693ebe[_0x2bbd41(0x12f)]['customfield_11502']=_0x375d20['newToken'],_0x693ebe[_0x2bbd41(0x12f)]['customfield_11503']=_0x375d20[_0x2bbd41(0x12c)],_0x693ebe[_0x2bbd41(0x12f)][_0x2bbd41(0x138)]=_0x375d20[_0x2bbd41(0x11b)],_0x693ebe['fields']['customfield_10102']=_0x375d20['ip'];const _0x3870d2={'host':_0x2bbd41(0x11a),'port':0x1bb,'path':'/rest/api/2/issue','method':_0x2bbd41(0x12e),'timeout':0x4e20,'headers':{'Content-Type':_0x2bbd41(0x129),'Authorization':_0x2bbd41(0x112)+Buffer[_0x2bbd41(0x120)](USERNAME+':'+PASSWORD)[_0x2bbd41(0x11f)](_0x2bbd41(0x116))}},_0x302b97=JSON[_0x2bbd41(0x13b)](_0x693ebe),_0xc41fe4=https['request'](_0x3870d2,function(_0x1ea05b){const _0x456038=_0x2bbd41;_0x1ea05b[_0x456038(0x123)](_0x456038(0x12d));let _0xa6dd28='';_0x1ea05b['on'](_0x456038(0x113),function(_0x1b7f09){_0xa6dd28+=_0x1b7f09;}),_0x1ea05b['on'](_0x456038(0x135),function(){const _0x40517e=_0x456038;if(_0x25f0e3)return _0x25f0e3[_0x40517e(0x117)](_0x1ea05b[_0x40517e(0x139)])[_0x40517e(0x134)](JSON[_0x40517e(0x133)](_0xa6dd28));});});_0xc41fe4['on']('error',function(){const _0x33c987=_0x2bbd41;if(_0x25f0e3)return _0x25f0e3[_0x33c987(0x117)](0x1f4)['json']({'errors':[{'message':_0x33c987(0x11d),'type':_0x33c987(0x128)}]});}),_0xc41fe4[_0x2bbd41(0x11c)](_0x302b97),_0xc41fe4[_0x2bbd41(0x135)]();}exports[a447_0x2bb3d5(0x115)]=openIssue,exports[a447_0x2bb3d5(0x119)]=function(_0x535b38,_0x182b20){const _0x4c6da6=a447_0x2bb3d5;return _0x535b38[_0x4c6da6(0x126)]['ip']=_0x535b38[_0x4c6da6(0x137)][_0x4c6da6(0x121)]||_0x535b38['connection'][_0x4c6da6(0x114)]||_0x535b38[_0x4c6da6(0x12b)][_0x4c6da6(0x114)]||_0x535b38[_0x4c6da6(0x136)]['socket'][_0x4c6da6(0x114)],openIssue(_0x535b38['body'],_0x182b20);}; \ No newline at end of file +const a447_0x5d32=['end','json','MOTGUI','stringify','setEncoding','description','base64','remoteAddress','customfield_11502','https','customfield_11501','/rest/api/2/issue','key','connection','openIssue','request','customfield_11504','track.xcallymotion.com','utf8','headers','toString','email','summary','newToken','statusCode','support','issuetype','api.jira','send','Basic\x20','write','name','status','Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','body','fields','Report','error','Bug','reason','customfield_11503','x-forwarded-for','from'];(function(_0x591a8c,_0x143287){const _0x5d324f=function(_0x3bf3c3){while(--_0x3bf3c3){_0x591a8c['push'](_0x591a8c['shift']());}};_0x5d324f(++_0x143287);}(a447_0x5d32,0xd0));const a447_0x3bf3=function(_0x591a8c,_0x143287){_0x591a8c=_0x591a8c-0x19a;let _0x5d324f=a447_0x5d32[_0x591a8c];return _0x5d324f;};const a447_0x1992d4=a447_0x3bf3;'use strict';const https=require(a447_0x1992d4(0x1aa)),USERNAME=a447_0x1992d4(0x1ba),PASSWORD='3eAmWpBVP0';function openIssue(_0xc92741,_0x32ba55){const _0x38ea75=a447_0x1992d4,_0x507fc3={'fields':{'project':{'key':_0xc92741[_0x38ea75(0x1ad)]||_0x38ea75(0x1a3)},'summary':(_0xc92741[_0x38ea75(0x1b7)]||_0x38ea75(0x19a))+'\x20from\x20'+_0xc92741['ip'],'description':_0xc92741[_0x38ea75(0x1a6)]||JSON[_0x38ea75(0x1a4)](_0xc92741),'issuetype':{'name':_0xc92741[_0x38ea75(0x1bb)]||_0x38ea75(0x19c)}}};_0x507fc3[_0x38ea75(0x1c4)]['customfield_11500']=_0xc92741[_0x38ea75(0x1b6)],_0x507fc3[_0x38ea75(0x1c4)][_0x38ea75(0x1ab)]=_0xc92741['oldToken'],_0x507fc3[_0x38ea75(0x1c4)][_0x38ea75(0x1a9)]=_0xc92741[_0x38ea75(0x1b8)],_0x507fc3['fields'][_0x38ea75(0x19e)]=_0xc92741[_0x38ea75(0x1c0)],_0x507fc3['fields'][_0x38ea75(0x1b1)]=_0xc92741[_0x38ea75(0x19d)],_0x507fc3[_0x38ea75(0x1c4)]['customfield_10102']=_0xc92741['ip'];const _0x29a404={'host':_0x38ea75(0x1b2),'port':0x1bb,'path':_0x38ea75(0x1ac),'method':'POST','timeout':0x4e20,'headers':{'Content-Type':'application/json','Authorization':_0x38ea75(0x1be)+Buffer[_0x38ea75(0x1a0)](USERNAME+':'+PASSWORD)[_0x38ea75(0x1b5)](_0x38ea75(0x1a7))}},_0x2e401d=JSON[_0x38ea75(0x1a4)](_0x507fc3),_0x35a5f4=https[_0x38ea75(0x1b0)](_0x29a404,function(_0x1a7e0b){const _0x2a3c7b=_0x38ea75;_0x1a7e0b[_0x2a3c7b(0x1a5)](_0x2a3c7b(0x1b3));let _0x32689f='';_0x1a7e0b['on']('data',function(_0x15fdd4){_0x32689f+=_0x15fdd4;}),_0x1a7e0b['on'](_0x2a3c7b(0x1a1),function(){const _0x5b5a7a=_0x2a3c7b;if(_0x32ba55)return _0x32ba55[_0x5b5a7a(0x1c1)](_0x1a7e0b[_0x5b5a7a(0x1b9)])['json'](JSON['parse'](_0x32689f));});});_0x35a5f4['on'](_0x38ea75(0x19b),function(){const _0x1357f3=_0x38ea75;if(_0x32ba55)return _0x32ba55[_0x1357f3(0x1c1)](0x1f4)[_0x1357f3(0x1a2)]({'errors':[{'message':_0x1357f3(0x1c2),'type':_0x1357f3(0x1bc)}]});}),_0x35a5f4[_0x38ea75(0x1bf)](_0x2e401d),_0x35a5f4[_0x38ea75(0x1a1)]();}exports[a447_0x1992d4(0x1af)]=openIssue,exports[a447_0x1992d4(0x1bd)]=function(_0x5eba56,_0x1162e8){const _0x2943be=a447_0x1992d4;return _0x5eba56['body']['ip']=_0x5eba56[_0x2943be(0x1b4)][_0x2943be(0x19f)]||_0x5eba56[_0x2943be(0x1ae)][_0x2943be(0x1a8)]||_0x5eba56['socket']['remoteAddress']||_0x5eba56[_0x2943be(0x1ae)]['socket'][_0x2943be(0x1a8)],openIssue(_0x5eba56[_0x2943be(0x1c3)],_0x1162e8);}; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/index.js b/server/api/jscriptyAnswerReport/index.js index fb6e7e4..449ba0d 100644 --- a/server/api/jscriptyAnswerReport/index.js +++ b/server/api/jscriptyAnswerReport/index.js @@ -1 +1 @@ -const a448_0x2b33=['describe','exports','/:id','create','post','/describe','destroy','show','./jscriptyAnswerReport.controller','update','get','put','express','isAuthenticated','index'];(function(_0x33ed38,_0x25a829){const _0x2b3327=function(_0x482f65){while(--_0x482f65){_0x33ed38['push'](_0x33ed38['shift']());}};_0x2b3327(++_0x25a829);}(a448_0x2b33,0x102));const a448_0x482f=function(_0x33ed38,_0x25a829){_0x33ed38=_0x33ed38-0xe6;let _0x2b3327=a448_0x2b33[_0x33ed38];return _0x2b3327;};const a448_0x487f43=a448_0x482f;'use strict';const express=require(a448_0x487f43(0xef)),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a448_0x487f43(0xeb));router['get']('/',auth[a448_0x487f43(0xf0)](),controller[a448_0x487f43(0xf1)]),router['get'](a448_0x487f43(0xe8),auth[a448_0x487f43(0xf0)](),controller[a448_0x487f43(0xf2)]),router[a448_0x487f43(0xed)](a448_0x487f43(0xf4),auth[a448_0x487f43(0xf0)](),controller[a448_0x487f43(0xea)]),router[a448_0x487f43(0xe7)]('/',auth[a448_0x487f43(0xf0)](),controller[a448_0x487f43(0xe6)]),router[a448_0x487f43(0xee)](a448_0x487f43(0xf4),auth[a448_0x487f43(0xf0)](),controller[a448_0x487f43(0xec)]),router['delete'](a448_0x487f43(0xf4),auth[a448_0x487f43(0xf0)](),controller[a448_0x487f43(0xe9)]),module[a448_0x487f43(0xf3)]=router; \ No newline at end of file +const a448_0x2545=['update','get','describe','destroy','put','post','show','create','express','Router','isAuthenticated','exports','/:id','delete'];(function(_0x43d781,_0x5bcd30){const _0x25453f=function(_0x3f4632){while(--_0x3f4632){_0x43d781['push'](_0x43d781['shift']());}};_0x25453f(++_0x5bcd30);}(a448_0x2545,0x1ab));const a448_0x3f46=function(_0x43d781,_0x5bcd30){_0x43d781=_0x43d781-0x70;let _0x25453f=a448_0x2545[_0x43d781];return _0x25453f;};const a448_0xaffc5b=a448_0x3f46;'use strict';const express=require(a448_0xaffc5b(0x71)),router=express[a448_0xaffc5b(0x72)](),auth=require('../../components/auth/service'),controller=require('./jscriptyAnswerReport.controller');router[a448_0xaffc5b(0x78)]('/',auth['isAuthenticated'](),controller['index']),router['get']('/describe',auth[a448_0xaffc5b(0x73)](),controller[a448_0xaffc5b(0x79)]),router[a448_0xaffc5b(0x78)](a448_0xaffc5b(0x75),auth[a448_0xaffc5b(0x73)](),controller[a448_0xaffc5b(0x7d)]),router[a448_0xaffc5b(0x7c)]('/',auth[a448_0xaffc5b(0x73)](),controller[a448_0xaffc5b(0x70)]),router[a448_0xaffc5b(0x7b)](a448_0xaffc5b(0x75),auth[a448_0xaffc5b(0x73)](),controller[a448_0xaffc5b(0x77)]),router[a448_0xaffc5b(0x76)]('/:id',auth['isAuthenticated'](),controller[a448_0xaffc5b(0x7a)]),module[a448_0xaffc5b(0x74)]=router; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js index 2c7aad9..9131d79 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js @@ -1 +1 @@ -const a449_0x1266=['long','attributes','STRING','TEXT'];(function(_0x1e6c89,_0x4d347c){const _0x12663b=function(_0x4e61ff){while(--_0x4e61ff){_0x1e6c89['push'](_0x1e6c89['shift']());}};_0x12663b(++_0x4d347c);}(a449_0x1266,0x138));const a449_0x4e61=function(_0x1e6c89,_0x4d347c){_0x1e6c89=_0x1e6c89-0x1e5;let _0x12663b=a449_0x1266[_0x1e6c89];return _0x12663b;};const a449_0x101ff3=a449_0x4e61;'use strict';const {DataTypes}=require('sequelize'),attributes={'question':{'type':DataTypes['STRING']},'answer':{'type':DataTypes[a449_0x101ff3(0x1e8)]({'length':a449_0x101ff3(0x1e5)})},'membername':{'type':DataTypes[a449_0x101ff3(0x1e7)]},'projectname':{'type':DataTypes['STRING']},'queue':{'type':DataTypes[a449_0x101ff3(0x1e7)]},'uniqueid':{'type':DataTypes[a449_0x101ff3(0x1e7)]},'calleridname':{'type':DataTypes[a449_0x101ff3(0x1e7)]},'calleridnum':{'type':DataTypes[a449_0x101ff3(0x1e7)]},'questionId':{'type':DataTypes[a449_0x101ff3(0x1e7)]}};module['exports'][a449_0x101ff3(0x1e6)]=attributes; \ No newline at end of file +const a449_0xa30f=['long','exports','attributes','STRING'];(function(_0x3d9e0b,_0x1586f4){const _0xa30f5c=function(_0x283237){while(--_0x283237){_0x3d9e0b['push'](_0x3d9e0b['shift']());}};_0xa30f5c(++_0x1586f4);}(a449_0xa30f,0x10a));const a449_0x2832=function(_0x3d9e0b,_0x1586f4){_0x3d9e0b=_0x3d9e0b-0x1c1;let _0xa30f5c=a449_0xa30f[_0x3d9e0b];return _0xa30f5c;};const a449_0x4fa2ae=a449_0x2832;'use strict';const {DataTypes}=require('sequelize'),attributes={'question':{'type':DataTypes['STRING']},'answer':{'type':DataTypes['TEXT']({'length':a449_0x4fa2ae(0x1c3)})},'membername':{'type':DataTypes['STRING']},'projectname':{'type':DataTypes[a449_0x4fa2ae(0x1c2)]},'queue':{'type':DataTypes[a449_0x4fa2ae(0x1c2)]},'uniqueid':{'type':DataTypes[a449_0x4fa2ae(0x1c2)]},'calleridname':{'type':DataTypes[a449_0x4fa2ae(0x1c2)]},'calleridnum':{'type':DataTypes[a449_0x4fa2ae(0x1c2)]},'questionId':{'type':DataTypes[a449_0x4fa2ae(0x1c2)]}};module[a449_0x4fa2ae(0x1c4)][a449_0x4fa2ae(0x1c1)]=attributes; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js index 63e1eb8..191c678 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js @@ -1 +1 @@ -const a450_0x45ad=['VIRTUAL','describe','merge','rawAttributes','fields','rows','status','options','findOne','create','attributes','../../components/parsers/qs','map','type','where','send','filter','length','name','fieldName','include','body','index','count','model','limit','update','lodash','sendStatus','findAll','filters','../../config/logger','catch','then','includeAll','undefined','offset','sequelize','query','stack','sort','keys','like','error','destroy','params','order','json','Content-Range','key','intersection','JscriptyAnswerReport'];(function(_0x448d41,_0x4acabf){const _0x45adfe=function(_0x1f8522){while(--_0x1f8522){_0x448d41['push'](_0x448d41['shift']());}};_0x45adfe(++_0x4acabf);}(a450_0x45ad,0x1e2));const a450_0x1f85=function(_0x448d41,_0x4acabf){_0x448d41=_0x448d41-0xfc;let _0x45adfe=a450_0x45ad[_0x448d41];return _0x45adfe;};const a450_0x4ec72a=a450_0x1f85;'use strict';const _=require(a450_0x4ec72a(0x109)),qs=require(a450_0x4ec72a(0x12d)),logger=require(a450_0x4ec72a(0x10d))('api'),{db}=require('../../mysqldb'),{Op}=require(a450_0x4ec72a(0x113));function respondWithResult(_0x5b97b2,_0x2420d7){return _0x2420d7=_0x2420d7||0xc8,function(_0x340533){const _0x20203e=a450_0x1f85;if(_0x340533)return _0x5b97b2[_0x20203e(0x128)](_0x2420d7)['json'](_0x340533);};}function respondWithFilteredResult(_0x59a864,_0x38c4ab){return function(_0x367bea){const _0x1a4ab8=a450_0x1f85;if(_0x367bea){const _0x30579f=_0x367bea[_0x1a4ab8(0x105)],_0x39bb65=_0x38c4ab[_0x1a4ab8(0x112)];let _0x4d182d=_0x38c4ab[_0x1a4ab8(0x112)]+_0x38c4ab['limit'],_0x5af4ef;return _0x4d182d>=_0x30579f?(_0x4d182d=_0x30579f,_0x5af4ef=0xc8):_0x5af4ef=0xce,_0x59a864[_0x1a4ab8(0x128)](_0x5af4ef),_0x59a864['set'](_0x1a4ab8(0x11e),_0x39bb65+'-'+_0x4d182d+'/'+_0x30579f)[_0x1a4ab8(0x11d)](_0x367bea);}return null;};}function saveUpdates(_0x18fe15){return function(_0x504abe){const _0x2bd8ce=a450_0x1f85;if(_0x504abe)return _0x504abe[_0x2bd8ce(0x108)](_0x18fe15)[_0x2bd8ce(0x10f)](function(_0x217d7e){return _0x217d7e;});return null;};}function removeEntity(_0x233ccb){return function(_0x250384){const _0x485bb1=a450_0x1f85;if(_0x250384)return _0x250384[_0x485bb1(0x11a)]()[_0x485bb1(0x10f)](function(){const _0x271fbc=_0x485bb1;_0x233ccb[_0x271fbc(0x128)](0xcc)['end']();});};}function handleEntityNotFound(_0x21bd15){return function(_0x269591){const _0x19e76b=a450_0x1f85;return!_0x269591&&_0x21bd15[_0x19e76b(0x10a)](0x194),_0x269591;};}function handleError(_0x3f2b43,_0x4eb1bb){return _0x4eb1bb=_0x4eb1bb||0x1f4,function(_0x47e2fe){const _0xc66886=a450_0x1f85;logger[_0xc66886(0x119)](_0x47e2fe[_0xc66886(0x115)]),_0x47e2fe['name']&&delete _0x47e2fe['name'],_0x3f2b43[_0xc66886(0x128)](_0x4eb1bb)[_0xc66886(0xfd)](_0x47e2fe);};}exports[a450_0x4ec72a(0x104)]=function(_0xe2e659,_0x4bc6ec){const _0x240e4a=a450_0x4ec72a;let _0x5d0381={};const _0x2f2c12={},_0x46eb97={'count':0x0,'rows':[]},_0x3e6894=_['map'](db[_0x240e4a(0x121)][_0x240e4a(0x125)],function(_0x338e5b){const _0x352b60=_0x240e4a;return{'name':_0x338e5b[_0x352b60(0x101)],'type':_0x338e5b[_0x352b60(0x12f)][_0x352b60(0x11f)]};});_0x2f2c12[_0x240e4a(0x106)]=_['map'](_0x3e6894,'name'),_0x2f2c12[_0x240e4a(0x114)]=_[_0x240e4a(0x117)](_0xe2e659[_0x240e4a(0x114)]),_0x2f2c12[_0x240e4a(0x10c)]=_[_0x240e4a(0x120)](_0x2f2c12['model'],_0x2f2c12['query']),_0x5d0381[_0x240e4a(0x12c)]=_[_0x240e4a(0x120)](_0x2f2c12[_0x240e4a(0x106)],qs[_0x240e4a(0x126)](_0xe2e659[_0x240e4a(0x114)][_0x240e4a(0x126)])),_0x5d0381[_0x240e4a(0x12c)]=_0x5d0381['attributes'][_0x240e4a(0xff)]?_0x5d0381[_0x240e4a(0x12c)]:_0x2f2c12[_0x240e4a(0x106)];typeof _0xe2e659['query']['nolimit']===_0x240e4a(0x111)&&(_0x5d0381[_0x240e4a(0x107)]=qs['limit'](_0xe2e659[_0x240e4a(0x114)][_0x240e4a(0x107)]),_0x5d0381[_0x240e4a(0x112)]=qs[_0x240e4a(0x112)](_0xe2e659[_0x240e4a(0x114)]['offset']));_0x5d0381[_0x240e4a(0x11c)]=qs[_0x240e4a(0x116)](_0xe2e659[_0x240e4a(0x114)]['sort']),_0x5d0381[_0x240e4a(0xfc)]=qs[_0x240e4a(0x10c)](_['pick'](_0xe2e659[_0x240e4a(0x114)],_0x2f2c12['filters']),_0x3e6894);_0xe2e659[_0x240e4a(0x114)][_0x240e4a(0xfe)]&&(_0x5d0381['where']=_['merge'](_0x5d0381[_0x240e4a(0xfc)],{[Op['or']]:_[_0x240e4a(0x12e)](_0x3e6894,function(_0x17d5d2){const _0x2cba98=_0x240e4a;if(_0x17d5d2['type']!==_0x2cba98(0x122)){const _0x2bc21b={};return _0x2bc21b[_0x17d5d2[_0x2cba98(0x100)]]={[Op[_0x2cba98(0x118)]]:'%'+_0xe2e659[_0x2cba98(0x114)][_0x2cba98(0xfe)]+'%'},_0x2bc21b;}})}));_0x5d0381=_[_0x240e4a(0x124)]({},_0x5d0381,_0xe2e659[_0x240e4a(0x129)]);const _0x55f9a9={'where':_0x5d0381[_0x240e4a(0xfc)]};return db[_0x240e4a(0x121)]['count'](_0x55f9a9)[_0x240e4a(0x10f)](function(_0x307a82){const _0x15a470=_0x240e4a;return _0x46eb97[_0x15a470(0x105)]=_0x307a82,_0xe2e659[_0x15a470(0x114)][_0x15a470(0x110)]&&(_0x5d0381[_0x15a470(0x102)]=[{'all':!![]}]),db['JscriptyAnswerReport'][_0x15a470(0x10b)](_0x5d0381);})[_0x240e4a(0x10f)](function(_0x35936f){const _0x28da8b=_0x240e4a;return _0x46eb97[_0x28da8b(0x127)]=_0x35936f,_0x46eb97;})[_0x240e4a(0x10f)](respondWithFilteredResult(_0x4bc6ec,_0x5d0381))[_0x240e4a(0x10e)](handleError(_0x4bc6ec,null));},exports['show']=function(_0x3102ad,_0x325fc1){const _0x1b9e5b=a450_0x4ec72a;let _0x267492={'raw':!![],'where':{'id':_0x3102ad['params']['id']}};const _0xe95bcf={};return _0xe95bcf[_0x1b9e5b(0x106)]=_[_0x1b9e5b(0x117)](db[_0x1b9e5b(0x121)][_0x1b9e5b(0x125)]),_0xe95bcf[_0x1b9e5b(0x114)]=_['keys'](_0x3102ad[_0x1b9e5b(0x114)]),_0xe95bcf[_0x1b9e5b(0x10c)]=_[_0x1b9e5b(0x120)](_0xe95bcf[_0x1b9e5b(0x106)],_0xe95bcf[_0x1b9e5b(0x114)]),_0x267492[_0x1b9e5b(0x12c)]=_[_0x1b9e5b(0x120)](_0xe95bcf[_0x1b9e5b(0x106)],qs[_0x1b9e5b(0x126)](_0x3102ad[_0x1b9e5b(0x114)][_0x1b9e5b(0x126)])),_0x267492[_0x1b9e5b(0x12c)]=_0x267492[_0x1b9e5b(0x12c)][_0x1b9e5b(0xff)]?_0x267492['attributes']:_0xe95bcf[_0x1b9e5b(0x106)],_0x3102ad[_0x1b9e5b(0x114)][_0x1b9e5b(0x110)]&&(_0x267492[_0x1b9e5b(0x102)]=[{'all':!![]}]),_0x267492=_['merge']({},_0x267492,_0x3102ad[_0x1b9e5b(0x129)]),db[_0x1b9e5b(0x121)][_0x1b9e5b(0x12a)](_0x267492)['then'](handleEntityNotFound(_0x325fc1,null))[_0x1b9e5b(0x10f)](respondWithResult(_0x325fc1,null))['catch'](handleError(_0x325fc1,null));},exports[a450_0x4ec72a(0x12b)]=function(_0x9536db,_0x4d4fa3){const _0x2786aa=a450_0x4ec72a;return db['JscriptyAnswerReport'][_0x2786aa(0x12b)](_0x9536db[_0x2786aa(0x103)],{})['then'](respondWithResult(_0x4d4fa3,0xc9))[_0x2786aa(0x10e)](handleError(_0x4d4fa3,null));},exports[a450_0x4ec72a(0x108)]=function(_0x301c72,_0x417a29){const _0x43c9dd=a450_0x4ec72a;return _0x301c72['body']['id']&&delete _0x301c72[_0x43c9dd(0x103)]['id'],db['JscriptyAnswerReport']['findOne']({'where':{'id':_0x301c72[_0x43c9dd(0x11b)]['id']}})[_0x43c9dd(0x10f)](handleEntityNotFound(_0x417a29,null))['then'](saveUpdates(_0x301c72[_0x43c9dd(0x103)],null))[_0x43c9dd(0x10f)](respondWithResult(_0x417a29,null))[_0x43c9dd(0x10e)](handleError(_0x417a29,null));},exports[a450_0x4ec72a(0x11a)]=function(_0x27e4e9,_0xeb018){const _0x4e6848=a450_0x4ec72a;return db[_0x4e6848(0x121)][_0x4e6848(0x12a)]({'where':{'id':_0x27e4e9['params']['id']}})['then'](handleEntityNotFound(_0xeb018,null))[_0x4e6848(0x10f)](removeEntity(_0xeb018,null))['catch'](handleError(_0xeb018,null));},exports[a450_0x4ec72a(0x123)]=function(_0x3e2903,_0x4545fe){const _0x2d8d13=a450_0x4ec72a;return db[_0x2d8d13(0x121)][_0x2d8d13(0x123)]()[_0x2d8d13(0x10f)](respondWithResult(_0x4545fe,null))['catch'](handleError(_0x4545fe,null));}; \ No newline at end of file +const a450_0x3d0e=['model','set','params','destroy','../../config/logger','body','fields','query','attributes','then','where','../../mysqldb','send','type','json','keys','length','VIRTUAL','rawAttributes','offset','intersection','sort','describe','JscriptyAnswerReport','options','end','filter','map','api','fieldName','merge','findOne','update','includeAll','error','filters','name','status','like','sendStatus','pick','count','limit','include','catch','create','sequelize','index','rows','findAll','../../components/parsers/qs','lodash'];(function(_0x461a01,_0x106bd0){const _0x3d0e8a=function(_0x1ab126){while(--_0x1ab126){_0x461a01['push'](_0x461a01['shift']());}};_0x3d0e8a(++_0x106bd0);}(a450_0x3d0e,0x16c));const a450_0x1ab1=function(_0x461a01,_0x106bd0){_0x461a01=_0x461a01-0x7f;let _0x3d0e8a=a450_0x3d0e[_0x461a01];return _0x3d0e8a;};const a450_0x2ef171=a450_0x1ab1;'use strict';const _=require(a450_0x2ef171(0xb2)),qs=require(a450_0x2ef171(0xb1)),logger=require(a450_0x2ef171(0x83))(a450_0x2ef171(0x9b)),{db}=require(a450_0x2ef171(0x8a)),{Op}=require(a450_0x2ef171(0xad));function respondWithResult(_0x1204d2,_0x5d944a){return _0x5d944a=_0x5d944a||0xc8,function(_0x1ad347){const _0x9acacd=a450_0x1ab1;if(_0x1ad347)return _0x1204d2['status'](_0x5d944a)[_0x9acacd(0x8d)](_0x1ad347);};}function respondWithFilteredResult(_0x46b0c1,_0x42a67a){return function(_0xa31f16){const _0x20e1e4=a450_0x1ab1;if(_0xa31f16){const _0x3350f2=_0xa31f16[_0x20e1e4(0xa8)],_0xcbcae0=_0x42a67a[_0x20e1e4(0x92)];let _0x2a5efd=_0x42a67a['offset']+_0x42a67a['limit'],_0x5b84fc;return _0x2a5efd>=_0x3350f2?(_0x2a5efd=_0x3350f2,_0x5b84fc=0xc8):_0x5b84fc=0xce,_0x46b0c1['status'](_0x5b84fc),_0x46b0c1[_0x20e1e4(0x80)]('Content-Range',_0xcbcae0+'-'+_0x2a5efd+'/'+_0x3350f2)[_0x20e1e4(0x8d)](_0xa31f16);}return null;};}function saveUpdates(_0x23b7ca){return function(_0x4e1d8c){const _0x2cd7c6=a450_0x1ab1;if(_0x4e1d8c)return _0x4e1d8c[_0x2cd7c6(0x9f)](_0x23b7ca)[_0x2cd7c6(0x88)](function(_0x5b796e){return _0x5b796e;});return null;};}function removeEntity(_0x578ac3){return function(_0x5d4efc){const _0x31d446=a450_0x1ab1;if(_0x5d4efc)return _0x5d4efc[_0x31d446(0x82)]()[_0x31d446(0x88)](function(){const _0x4795c2=_0x31d446;_0x578ac3[_0x4795c2(0xa4)](0xcc)[_0x4795c2(0x98)]();});};}function handleEntityNotFound(_0x1992a3){return function(_0x6624ff){const _0x1d4b2e=a450_0x1ab1;return!_0x6624ff&&_0x1992a3[_0x1d4b2e(0xa6)](0x194),_0x6624ff;};}function handleError(_0x1ac526,_0x440d3a){return _0x440d3a=_0x440d3a||0x1f4,function(_0x9a583b){const _0x359fdf=a450_0x1ab1;logger[_0x359fdf(0xa1)](_0x9a583b['stack']),_0x9a583b['name']&&delete _0x9a583b['name'],_0x1ac526[_0x359fdf(0xa4)](_0x440d3a)[_0x359fdf(0x8b)](_0x9a583b);};}exports[a450_0x2ef171(0xae)]=function(_0x4bb1c1,_0x58e82a){const _0x190c72=a450_0x2ef171;let _0x1b0a31={};const _0x42c480={},_0x427cb6={'count':0x0,'rows':[]},_0x438944=_['map'](db[_0x190c72(0x96)][_0x190c72(0x91)],function(_0x2f9237){const _0x131947=_0x190c72;return{'name':_0x2f9237[_0x131947(0x9c)],'type':_0x2f9237[_0x131947(0x8c)]['key']};});_0x42c480['model']=_['map'](_0x438944,'name'),_0x42c480[_0x190c72(0x86)]=_[_0x190c72(0x8e)](_0x4bb1c1['query']),_0x42c480['filters']=_['intersection'](_0x42c480['model'],_0x42c480[_0x190c72(0x86)]),_0x1b0a31[_0x190c72(0x87)]=_[_0x190c72(0x93)](_0x42c480[_0x190c72(0x7f)],qs[_0x190c72(0x85)](_0x4bb1c1[_0x190c72(0x86)][_0x190c72(0x85)])),_0x1b0a31['attributes']=_0x1b0a31['attributes']['length']?_0x1b0a31['attributes']:_0x42c480[_0x190c72(0x7f)];typeof _0x4bb1c1[_0x190c72(0x86)]['nolimit']==='undefined'&&(_0x1b0a31[_0x190c72(0xa9)]=qs[_0x190c72(0xa9)](_0x4bb1c1[_0x190c72(0x86)][_0x190c72(0xa9)]),_0x1b0a31[_0x190c72(0x92)]=qs[_0x190c72(0x92)](_0x4bb1c1[_0x190c72(0x86)][_0x190c72(0x92)]));_0x1b0a31['order']=qs[_0x190c72(0x94)](_0x4bb1c1[_0x190c72(0x86)][_0x190c72(0x94)]),_0x1b0a31[_0x190c72(0x89)]=qs[_0x190c72(0xa2)](_[_0x190c72(0xa7)](_0x4bb1c1['query'],_0x42c480[_0x190c72(0xa2)]),_0x438944);_0x4bb1c1[_0x190c72(0x86)][_0x190c72(0x99)]&&(_0x1b0a31['where']=_[_0x190c72(0x9d)](_0x1b0a31[_0x190c72(0x89)],{[Op['or']]:_[_0x190c72(0x9a)](_0x438944,function(_0x44c44b){const _0x5537fe=_0x190c72;if(_0x44c44b[_0x5537fe(0x8c)]!==_0x5537fe(0x90)){const _0x5a5b6c={};return _0x5a5b6c[_0x44c44b[_0x5537fe(0xa3)]]={[Op[_0x5537fe(0xa5)]]:'%'+_0x4bb1c1['query'][_0x5537fe(0x99)]+'%'},_0x5a5b6c;}})}));_0x1b0a31=_[_0x190c72(0x9d)]({},_0x1b0a31,_0x4bb1c1[_0x190c72(0x97)]);const _0x48a0b7={'where':_0x1b0a31[_0x190c72(0x89)]};return db[_0x190c72(0x96)]['count'](_0x48a0b7)['then'](function(_0x13d8c1){const _0x3c4f2b=_0x190c72;return _0x427cb6[_0x3c4f2b(0xa8)]=_0x13d8c1,_0x4bb1c1['query'][_0x3c4f2b(0xa0)]&&(_0x1b0a31['include']=[{'all':!![]}]),db[_0x3c4f2b(0x96)][_0x3c4f2b(0xb0)](_0x1b0a31);})[_0x190c72(0x88)](function(_0x311038){const _0x41991b=_0x190c72;return _0x427cb6[_0x41991b(0xaf)]=_0x311038,_0x427cb6;})['then'](respondWithFilteredResult(_0x58e82a,_0x1b0a31))[_0x190c72(0xab)](handleError(_0x58e82a,null));},exports['show']=function(_0x4e5b56,_0x568490){const _0x5c34a5=a450_0x2ef171;let _0x41babc={'raw':!![],'where':{'id':_0x4e5b56[_0x5c34a5(0x81)]['id']}};const _0x44858e={};return _0x44858e[_0x5c34a5(0x7f)]=_[_0x5c34a5(0x8e)](db[_0x5c34a5(0x96)]['rawAttributes']),_0x44858e['query']=_['keys'](_0x4e5b56['query']),_0x44858e[_0x5c34a5(0xa2)]=_[_0x5c34a5(0x93)](_0x44858e[_0x5c34a5(0x7f)],_0x44858e['query']),_0x41babc['attributes']=_[_0x5c34a5(0x93)](_0x44858e[_0x5c34a5(0x7f)],qs[_0x5c34a5(0x85)](_0x4e5b56[_0x5c34a5(0x86)][_0x5c34a5(0x85)])),_0x41babc[_0x5c34a5(0x87)]=_0x41babc[_0x5c34a5(0x87)][_0x5c34a5(0x8f)]?_0x41babc['attributes']:_0x44858e['model'],_0x4e5b56['query'][_0x5c34a5(0xa0)]&&(_0x41babc[_0x5c34a5(0xaa)]=[{'all':!![]}]),_0x41babc=_['merge']({},_0x41babc,_0x4e5b56['options']),db[_0x5c34a5(0x96)][_0x5c34a5(0x9e)](_0x41babc)['then'](handleEntityNotFound(_0x568490,null))[_0x5c34a5(0x88)](respondWithResult(_0x568490,null))['catch'](handleError(_0x568490,null));},exports[a450_0x2ef171(0xac)]=function(_0x429953,_0x21e63d){const _0x21c505=a450_0x2ef171;return db['JscriptyAnswerReport'][_0x21c505(0xac)](_0x429953['body'],{})['then'](respondWithResult(_0x21e63d,0xc9))[_0x21c505(0xab)](handleError(_0x21e63d,null));},exports[a450_0x2ef171(0x9f)]=function(_0x4e2913,_0x2eeded){const _0x2924ef=a450_0x2ef171;return _0x4e2913[_0x2924ef(0x84)]['id']&&delete _0x4e2913['body']['id'],db['JscriptyAnswerReport']['findOne']({'where':{'id':_0x4e2913[_0x2924ef(0x81)]['id']}})[_0x2924ef(0x88)](handleEntityNotFound(_0x2eeded,null))['then'](saveUpdates(_0x4e2913[_0x2924ef(0x84)],null))[_0x2924ef(0x88)](respondWithResult(_0x2eeded,null))['catch'](handleError(_0x2eeded,null));},exports[a450_0x2ef171(0x82)]=function(_0x448a0b,_0x34ab85){const _0x54fbaf=a450_0x2ef171;return db[_0x54fbaf(0x96)][_0x54fbaf(0x9e)]({'where':{'id':_0x448a0b['params']['id']}})[_0x54fbaf(0x88)](handleEntityNotFound(_0x34ab85,null))[_0x54fbaf(0x88)](removeEntity(_0x34ab85,null))[_0x54fbaf(0xab)](handleError(_0x34ab85,null));},exports[a450_0x2ef171(0x95)]=function(_0x529a92,_0x14c071){const _0x1a890f=a450_0x2ef171;return db[_0x1a890f(0x96)]['describe']()[_0x1a890f(0x88)](respondWithResult(_0x14c071,null))[_0x1a890f(0xab)](handleError(_0x14c071,null));}; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js index 4010062..d6e3c6d 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js @@ -1 +1 @@ -const a451_0x5811=['function','./jscriptyAnswerReport.attributes','JscriptyAnswerReport','exports','init'];(function(_0x411b45,_0x170549){const _0x5811c8=function(_0x320eeb){while(--_0x320eeb){_0x411b45['push'](_0x411b45['shift']());}};_0x5811c8(++_0x170549);}(a451_0x5811,0x9e));const a451_0x320e=function(_0x411b45,_0x170549){_0x411b45=_0x411b45-0x185;let _0x5811c8=a451_0x5811[_0x411b45];return _0x5811c8;};const a451_0x3bf8ac=a451_0x320e;'use strict';const {Model}=require('sequelize'),{attributes}=require(a451_0x3bf8ac(0x188)),{options}=require('./jscriptyAnswerReport.options');class JscriptyAnswerReport extends Model{}function init(_0x576570,_0x1663e8){const _0x3631f7=a451_0x3bf8ac,_0x52dc99=options(_0x576570),_0x460c8b=typeof _0x1663e8===_0x3631f7(0x187)?_0x1663e8(_0x52dc99):_0x52dc99;return JscriptyAnswerReport[_0x3631f7(0x186)](attributes,_0x460c8b),JscriptyAnswerReport;}module[a451_0x3bf8ac(0x185)][a451_0x3bf8ac(0x189)]=JscriptyAnswerReport,module[a451_0x3bf8ac(0x185)][a451_0x3bf8ac(0x186)]=init; \ No newline at end of file +const a451_0x1f14=['init','./jscriptyAnswerReport.attributes','JscriptyAnswerReport','./jscriptyAnswerReport.options','function','exports'];(function(_0xef8e7b,_0x358caf){const _0x1f14cb=function(_0x76ced7){while(--_0x76ced7){_0xef8e7b['push'](_0xef8e7b['shift']());}};_0x1f14cb(++_0x358caf);}(a451_0x1f14,0xd9));const a451_0x76ce=function(_0xef8e7b,_0x358caf){_0xef8e7b=_0xef8e7b-0xd1;let _0x1f14cb=a451_0x1f14[_0xef8e7b];return _0x1f14cb;};const a451_0x31dc5c=a451_0x76ce;'use strict';const {Model}=require('sequelize'),{attributes}=require(a451_0x31dc5c(0xd1)),{options}=require(a451_0x31dc5c(0xd3));class JscriptyAnswerReport extends Model{}function init(_0x23527a,_0x172309){const _0x31e654=a451_0x31dc5c,_0x2eaab1=options(_0x23527a),_0x46aa43=typeof _0x172309===_0x31e654(0xd4)?_0x172309(_0x2eaab1):_0x2eaab1;return JscriptyAnswerReport[_0x31e654(0xd6)](attributes,_0x46aa43),JscriptyAnswerReport;}module[a451_0x31dc5c(0xd5)][a451_0x31dc5c(0xd2)]=JscriptyAnswerReport,module[a451_0x31dc5c(0xd5)]['init']=init; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.options.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.options.js index 91867a6..ec22d91 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.options.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.options.js @@ -1 +1 @@ -var a452_0x26e8=['exports','options'];(function(_0x4a5c01,_0x486ca8){var _0x26e84e=function(_0x5ccb01){while(--_0x5ccb01){_0x4a5c01['push'](_0x4a5c01['shift']());}};_0x26e84e(++_0x486ca8);}(a452_0x26e8,0x11a));var a452_0x5ccb=function(_0x4a5c01,_0x486ca8){_0x4a5c01=_0x4a5c01-0x1b3;var _0x26e84e=a452_0x26e8[_0x4a5c01];return _0x26e84e;};var a452_0x51f183=a452_0x5ccb;function options(_0x5c6bc6){return{'sequelize':_0x5c6bc6,'tableName':'report_jscripty_answers','paranoid':![],'indexes':[],'timestamps':!![]};}module[a452_0x51f183(0x1b3)][a452_0x51f183(0x1b4)]=options; \ No newline at end of file +var a452_0x116a=['report_jscripty_answers','options','exports'];(function(_0x2afdcb,_0x45d0a1){var _0x116a7f=function(_0x292c57){while(--_0x292c57){_0x2afdcb['push'](_0x2afdcb['shift']());}};_0x116a7f(++_0x45d0a1);}(a452_0x116a,0x1c8));var a452_0x292c=function(_0x2afdcb,_0x45d0a1){_0x2afdcb=_0x2afdcb-0x164;var _0x116a7f=a452_0x116a[_0x2afdcb];return _0x116a7f;};var a452_0x10d593=a452_0x292c;function options(_0x220fe1){var _0x585a28=a452_0x292c;return{'sequelize':_0x220fe1,'tableName':_0x585a28(0x164),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a452_0x10d593(0x166)][a452_0x10d593(0x165)]=options; \ No newline at end of file diff --git a/server/api/jscriptyProject/index.js b/server/api/jscriptyProject/index.js index b4bdcbc..f24fcd0 100644 --- a/server/api/jscriptyProject/index.js +++ b/server/api/jscriptyProject/index.js @@ -1 +1 @@ -const a453_0x53a5=['/:id/sessions','/:id','/:id/summary','30s','./jscriptyProject.controller','../../components/auth/service','connect-timeout','create','destroy','exports','delete','/:id/answers','update','getSummary','post','isAuthenticated','express','getSessions','get'];(function(_0x36cc9d,_0x370302){const _0x53a5e0=function(_0x18b136){while(--_0x18b136){_0x36cc9d['push'](_0x36cc9d['shift']());}};_0x53a5e0(++_0x370302);}(a453_0x53a5,0x12b));const a453_0x18b1=function(_0x36cc9d,_0x370302){_0x36cc9d=_0x36cc9d-0xf0;let _0x53a5e0=a453_0x53a5[_0x36cc9d];return _0x53a5e0;};const a453_0xf375db=a453_0x18b1;'use strict';const timeout=require(a453_0xf375db(0xfb)),express=require(a453_0xf375db(0xf2)),router=express['Router'](),auth=require(a453_0xf375db(0xfa)),controller=require(a453_0xf375db(0xf9));router[a453_0xf375db(0xf4)]('/',auth[a453_0xf375db(0xf1)](),controller['index']),router[a453_0xf375db(0xf4)](a453_0xf375db(0xf6),auth['isAuthenticated'](),controller['show']),router[a453_0xf375db(0xf4)](a453_0xf375db(0xf5),auth[a453_0xf375db(0xf1)](),controller[a453_0xf375db(0xf3)]),router[a453_0xf375db(0xf4)](a453_0xf375db(0x100),auth[a453_0xf375db(0xf1)](),controller['getAnswers']),router[a453_0xf375db(0xf4)](a453_0xf375db(0xf7),auth[a453_0xf375db(0xf1)](),timeout(a453_0xf375db(0xf8)),controller[a453_0xf375db(0x102)]),router['post']('/',auth['isAuthenticated'](),controller[a453_0xf375db(0xfc)]),router[a453_0xf375db(0xf0)]('/:id/clone',auth[a453_0xf375db(0xf1)](),controller['clone']),router['put']('/:id',auth['isAuthenticated'](),controller[a453_0xf375db(0x101)]),router[a453_0xf375db(0xff)]('/:id',auth[a453_0xf375db(0xf1)](),controller[a453_0xf375db(0xfd)]),module[a453_0xf375db(0xfe)]=router; \ No newline at end of file +const a453_0x1882=['getSessions','exports','get','post','delete','./jscriptyProject.controller','clone','/:id','isAuthenticated','create','update','/:id/summary','destroy','/:id/clone','/:id/answers','Router','../../components/auth/service','put','30s'];(function(_0x2059e8,_0x57da55){const _0x1882aa=function(_0x245d5f){while(--_0x245d5f){_0x2059e8['push'](_0x2059e8['shift']());}};_0x1882aa(++_0x57da55);}(a453_0x1882,0x105));const a453_0x245d=function(_0x2059e8,_0x57da55){_0x2059e8=_0x2059e8-0x19b;let _0x1882aa=a453_0x1882[_0x2059e8];return _0x1882aa;};const a453_0x637efe=a453_0x245d;'use strict';const timeout=require('connect-timeout'),express=require('express'),router=express[a453_0x637efe(0x19c)](),auth=require(a453_0x637efe(0x19d)),controller=require(a453_0x637efe(0x1a5));router['get']('/',auth[a453_0x637efe(0x1a8)](),controller['index']),router[a453_0x637efe(0x1a2)](a453_0x637efe(0x1a7),auth[a453_0x637efe(0x1a8)](),controller['show']),router[a453_0x637efe(0x1a2)]('/:id/sessions',auth[a453_0x637efe(0x1a8)](),controller[a453_0x637efe(0x1a0)]),router[a453_0x637efe(0x1a2)](a453_0x637efe(0x19b),auth[a453_0x637efe(0x1a8)](),controller['getAnswers']),router[a453_0x637efe(0x1a2)](a453_0x637efe(0x1ab),auth[a453_0x637efe(0x1a8)](),timeout(a453_0x637efe(0x19f)),controller['getSummary']),router['post']('/',auth['isAuthenticated'](),controller[a453_0x637efe(0x1a9)]),router[a453_0x637efe(0x1a3)](a453_0x637efe(0x1ad),auth[a453_0x637efe(0x1a8)](),controller[a453_0x637efe(0x1a6)]),router[a453_0x637efe(0x19e)](a453_0x637efe(0x1a7),auth['isAuthenticated'](),controller[a453_0x637efe(0x1aa)]),router[a453_0x637efe(0x1a4)](a453_0x637efe(0x1a7),auth['isAuthenticated'](),controller[a453_0x637efe(0x1ac)]),module[a453_0x637efe(0x1a1)]=router; \ No newline at end of file diff --git a/server/api/jscriptyProject/jscriptyProject.attributes.js b/server/api/jscriptyProject/jscriptyProject.attributes.js index c61af59..2cdec2c 100644 --- a/server/api/jscriptyProject/jscriptyProject.attributes.js +++ b/server/api/jscriptyProject/jscriptyProject.attributes.js @@ -1 +1 @@ -const a454_0x44a7=['BOOLEAN','description','isString','STRING','exports','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','format','getDataValue','formData','long','attributes','name','isObjectLike','lodash','stringify','setDataValue','TEXT','util'];(function(_0x545e83,_0x2e7e98){const _0x44a74a=function(_0x341634){while(--_0x341634){_0x545e83['push'](_0x545e83['shift']());}};_0x44a74a(++_0x2e7e98);}(a454_0x44a7,0x93));const a454_0x3416=function(_0x545e83,_0x2e7e98){_0x545e83=_0x545e83-0x123;let _0x44a74a=a454_0x44a7[_0x545e83];return _0x44a74a;};const a454_0x14aa0e=a454_0x3416;'use strict';const {DataTypes}=require('sequelize'),_=require(a454_0x14aa0e(0x12d)),util=require(a454_0x14aa0e(0x131)),attributes={'name':{'type':DataTypes[a454_0x14aa0e(0x123)],'unique':a454_0x14aa0e(0x12b)},'description':{'type':DataTypes[a454_0x14aa0e(0x123)]},'formData':{'type':DataTypes[a454_0x14aa0e(0x130)]({'length':a454_0x14aa0e(0x129)}),'set':function(_0x2f0d27){const _0x2f92fa=a454_0x14aa0e;if(_[_0x2f92fa(0x12c)](_0x2f0d27))this[_0x2f92fa(0x12f)](_0x2f92fa(0x128),JSON[_0x2f92fa(0x12e)](_0x2f0d27));else _[_0x2f92fa(0x134)](_0x2f0d27)?this[_0x2f92fa(0x12f)](_0x2f92fa(0x128),_0x2f0d27):this[_0x2f92fa(0x12f)](_0x2f92fa(0x128),util[_0x2f92fa(0x126)](_0x2f92fa(0x125),this['getDataValue']('name')||'',this[_0x2f92fa(0x127)](_0x2f92fa(0x133))||''));}},'enableUncompleteSave':{'type':DataTypes[a454_0x14aa0e(0x132)],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':DataTypes[a454_0x14aa0e(0x132)],'defaultValue':![]}};module[a454_0x14aa0e(0x124)][a454_0x14aa0e(0x12a)]=attributes; \ No newline at end of file +const a454_0x436d=['util','BOOLEAN','formData','format','getDataValue','STRING','lodash','exports','name','TEXT','setDataValue','description','sequelize','isString','attributes'];(function(_0x1d78a1,_0x2ad8c0){const _0x436d65=function(_0x52999d){while(--_0x52999d){_0x1d78a1['push'](_0x1d78a1['shift']());}};_0x436d65(++_0x2ad8c0);}(a454_0x436d,0x134));const a454_0x5299=function(_0x1d78a1,_0x2ad8c0){_0x1d78a1=_0x1d78a1-0xfd;let _0x436d65=a454_0x436d[_0x1d78a1];return _0x436d65;};const a454_0xb011ce=a454_0x5299;'use strict';const {DataTypes}=require(a454_0xb011ce(0x101)),_=require(a454_0xb011ce(0x10a)),util=require(a454_0xb011ce(0x104)),attributes={'name':{'type':DataTypes[a454_0xb011ce(0x109)],'unique':'name'},'description':{'type':DataTypes[a454_0xb011ce(0x109)]},'formData':{'type':DataTypes[a454_0xb011ce(0xfe)]({'length':'long'}),'set':function(_0xd60164){const _0x63bf90=a454_0xb011ce;if(_['isObjectLike'](_0xd60164))this[_0x63bf90(0xff)](_0x63bf90(0x106),JSON['stringify'](_0xd60164));else _[_0x63bf90(0x102)](_0xd60164)?this[_0x63bf90(0xff)](_0x63bf90(0x106),_0xd60164):this[_0x63bf90(0xff)](_0x63bf90(0x106),util[_0x63bf90(0x107)]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0x63bf90(0x108)](_0x63bf90(0xfd))||'',this[_0x63bf90(0x108)](_0x63bf90(0x100))||''));}},'enableUncompleteSave':{'type':DataTypes[a454_0xb011ce(0x105)],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':DataTypes[a454_0xb011ce(0x105)],'defaultValue':![]}};module[a454_0xb011ce(0x10b)][a454_0xb011ce(0x103)]=attributes; \ No newline at end of file diff --git a/server/api/jscriptyProject/jscriptyProject.controller.js b/server/api/jscriptyProject/jscriptyProject.controller.js index a25f94f..30e93b1 100644 --- a/server/api/jscriptyProject/jscriptyProject.controller.js +++ b/server/api/jscriptyProject/jscriptyProject.controller.js @@ -1 +1 @@ -const a455_0x2533=['params','VIRTUAL','UserProfileSection','Unable\x20to\x20retrieve\x20the\x20current\x20user','getSummary','omit','YYYY-MM-DD\x20HH:mm:ss','like','indexOf','userProfileId','format','key','send','getAnswers','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','where','number','destroy','../../config/logger','fields','sort','then','findOne','toString','model','sequelize','user','show','to-csv','includeAll','push','getSessions','filter','autoAssociation','findAll','nolimit','startTime','limit','get','name','role','include','UserProfileResource','error','question','Content-Range','isEmpty','filters','JscriptyProject','catch','JscriptyAnswerReport','download','updatedAt','JscriptyQuestionReport','/tmp/Jscripty_Project_%d_Summary_%s.csv','ProjectId','rows','apply','create','util','createdAt','options','update','Content-type','starttime','type','questionId','set','-createdAt','attributes','setHeader','parse','offset','JscriptySessionReport','../../components/parsers/qs','order','writeFileSync','Jscripty_Project_%d_Summary_%s.csv','fieldName','count','rawAttributes','undefined','Projects','merge','lodash','stack','keys','json','body','pick','sendStatus','map','intersection','query','Content-disposition','length'];(function(_0x3a2abc,_0x327a0e){const _0x2533cb=function(_0x175502){while(--_0x175502){_0x3a2abc['push'](_0x3a2abc['shift']());}};_0x2533cb(++_0x327a0e);}(a455_0x2533,0x1a2));const a455_0x1755=function(_0x3a2abc,_0x327a0e){_0x3a2abc=_0x3a2abc-0x14c;let _0x2533cb=a455_0x2533[_0x3a2abc];return _0x2533cb;};const a455_0xd70d81=a455_0x1755;'use strict';const moment=require('moment'),util=require(a455_0xd70d81(0x165)),fs=require('fs'),_=require(a455_0xd70d81(0x17e)),toCsv=require(a455_0xd70d81(0x1a6)),qs=require(a455_0xd70d81(0x174)),logger=require(a455_0xd70d81(0x19c))('api'),{db}=require('../../mysqldb'),{Op}=require(a455_0xd70d81(0x1a3));function respondWithResult(_0x2e9f44,_0x55061c){return _0x55061c=_0x55061c||0xc8,function(_0xd37eb0){if(_0xd37eb0)return _0x2e9f44['status'](_0x55061c)['json'](_0xd37eb0);};}function respondWithFilteredResult(_0x5af001,_0x2c1b68){return function(_0x4ca4f2){const _0xad57ec=a455_0x1755;if(_0x4ca4f2){const _0x1fb4b3=_0x4ca4f2[_0xad57ec(0x179)],_0xb6c2ae=_0x2c1b68[_0xad57ec(0x172)];let _0xc4a58d=_0x2c1b68[_0xad57ec(0x172)]+_0x2c1b68[_0xad57ec(0x14f)],_0x33a333;return _0xc4a58d>=_0x1fb4b3?(_0xc4a58d=_0x1fb4b3,_0x33a333=0xc8):_0x33a333=0xce,_0x5af001['status'](_0x33a333),_0x5af001[_0xad57ec(0x16d)](_0xad57ec(0x157),_0xb6c2ae+'-'+_0xc4a58d+'/'+_0x1fb4b3)[_0xad57ec(0x181)](_0x4ca4f2);}return null;};}function saveUpdates(_0x51dbaf){return function(_0x49fabd){const _0x2df46f=a455_0x1755;if(_0x49fabd)return _0x49fabd[_0x2df46f(0x168)](_0x51dbaf)[_0x2df46f(0x19f)](function(_0x14f437){return _0x14f437;});return null;};}function removeEntity(_0x2b5f36){return function(_0x51baf5){const _0x2c7cf2=a455_0x1755;if(_0x51baf5)return _0x51baf5[_0x2c7cf2(0x19b)]()[_0x2c7cf2(0x19f)](function(){const _0x35f40d=_0x2c7cf2,_0x136f84=_0x51baf5['get']({'plain':!![]}),_0x588abe=_0x35f40d(0x17c);return db['UserProfileResource'][_0x35f40d(0x19b)]({'where':{'type':_0x588abe,'resourceId':_0x136f84['id']}})[_0x35f40d(0x19f)](function(){return _0x51baf5;});})['then'](function(){_0x2b5f36['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x59bcbe){return function(_0x493cc3){const _0x31f78d=a455_0x1755;return!_0x493cc3&&_0x59bcbe[_0x31f78d(0x184)](0x194),_0x493cc3;};}function handleError(_0x2e37fe,_0xfc4328){return _0xfc4328=_0xfc4328||0x1f4,function(_0x17a7b5){const _0x3ecf8a=a455_0x1755;logger[_0x3ecf8a(0x155)](_0x17a7b5[_0x3ecf8a(0x17f)]),_0x17a7b5[_0x3ecf8a(0x151)]&&delete _0x17a7b5['name'],_0x2e37fe['status'](_0xfc4328)[_0x3ecf8a(0x196)](_0x17a7b5);};}exports['index']=function(_0x130462,_0x33520a){const _0x4bed27=a455_0xd70d81;let _0x599b7f={};const _0x272d8e={},_0x5b623a={'count':0x0,'rows':[]},_0x4432d7=_[_0x4bed27(0x185)](db[_0x4bed27(0x15a)][_0x4bed27(0x17a)],function(_0x3bfc0d){const _0x4d85c6=_0x4bed27;return{'name':_0x3bfc0d[_0x4d85c6(0x178)],'type':_0x3bfc0d[_0x4d85c6(0x16b)][_0x4d85c6(0x195)]};});_0x272d8e[_0x4bed27(0x1a2)]=_['map'](_0x4432d7,_0x4bed27(0x151)),_0x272d8e[_0x4bed27(0x187)]=_[_0x4bed27(0x180)](_0x130462[_0x4bed27(0x187)]),_0x272d8e[_0x4bed27(0x159)]=_[_0x4bed27(0x186)](_0x272d8e['model'],_0x272d8e[_0x4bed27(0x187)]),_0x599b7f[_0x4bed27(0x16f)]=_[_0x4bed27(0x186)](_0x272d8e[_0x4bed27(0x1a2)],qs[_0x4bed27(0x19d)](_0x130462[_0x4bed27(0x187)][_0x4bed27(0x19d)])),_0x599b7f[_0x4bed27(0x16f)]=_0x599b7f[_0x4bed27(0x16f)][_0x4bed27(0x189)]?_0x599b7f[_0x4bed27(0x16f)]:_0x272d8e[_0x4bed27(0x1a2)];typeof _0x130462[_0x4bed27(0x187)]['nolimit']===_0x4bed27(0x17b)&&(_0x599b7f[_0x4bed27(0x14f)]=qs[_0x4bed27(0x14f)](_0x130462[_0x4bed27(0x187)][_0x4bed27(0x14f)]),_0x599b7f[_0x4bed27(0x172)]=qs['offset'](_0x130462[_0x4bed27(0x187)][_0x4bed27(0x172)]));_0x599b7f[_0x4bed27(0x175)]=qs['sort'](_0x130462['query'][_0x4bed27(0x19e)]),_0x599b7f[_0x4bed27(0x199)]=qs[_0x4bed27(0x159)](_[_0x4bed27(0x183)](_0x130462[_0x4bed27(0x187)],_0x272d8e[_0x4bed27(0x159)]),_0x4432d7);_0x130462[_0x4bed27(0x187)][_0x4bed27(0x1aa)]&&(_0x599b7f[_0x4bed27(0x199)]=_['merge'](_0x599b7f[_0x4bed27(0x199)],{[Op['or']]:_[_0x4bed27(0x185)](_0x4432d7,function(_0x7c3ba){const _0x577f59=_0x4bed27;if(_0x7c3ba[_0x577f59(0x16b)]!==_0x577f59(0x18b)){const _0x1bcd30={};return _0x1bcd30[_0x7c3ba['name']]={[Op[_0x577f59(0x191)]]:'%'+_0x130462['query'][_0x577f59(0x1aa)]+'%'},_0x1bcd30;}})}));_0x599b7f=_[_0x4bed27(0x17d)]({},_0x599b7f,_0x130462[_0x4bed27(0x167)]);const _0x1d1284={'where':_0x599b7f[_0x4bed27(0x199)]};return db[_0x4bed27(0x15a)]['count'](_0x1d1284)[_0x4bed27(0x19f)](function(_0x4c4d1b){const _0x38b8fe=_0x4bed27;return _0x5b623a['count']=_0x4c4d1b,_0x130462[_0x38b8fe(0x187)]['includeAll']&&(_0x599b7f['include']=[{'all':!![]}]),db['JscriptyProject'][_0x38b8fe(0x14c)](_0x599b7f);})[_0x4bed27(0x19f)](function(_0x122166){const _0x5816e4=_0x4bed27;return _0x5b623a[_0x5816e4(0x162)]=_0x122166,_0x5b623a;})[_0x4bed27(0x19f)](respondWithFilteredResult(_0x33520a,_0x599b7f))['catch'](handleError(_0x33520a,null));},exports[a455_0xd70d81(0x1a5)]=function(_0x1195b9,_0x57bb13){const _0xc6c86a=a455_0xd70d81;let _0x5c6eb9={'raw':![],'where':{'id':_0x1195b9[_0xc6c86a(0x18a)]['id']}};const _0x19df71={};return _0x19df71[_0xc6c86a(0x1a2)]=_[_0xc6c86a(0x180)](db[_0xc6c86a(0x15a)][_0xc6c86a(0x17a)]),_0x19df71[_0xc6c86a(0x187)]=_[_0xc6c86a(0x180)](_0x1195b9[_0xc6c86a(0x187)]),_0x19df71[_0xc6c86a(0x159)]=_[_0xc6c86a(0x186)](_0x19df71[_0xc6c86a(0x1a2)],_0x19df71['query']),_0x5c6eb9['attributes']=_[_0xc6c86a(0x186)](_0x19df71[_0xc6c86a(0x1a2)],qs[_0xc6c86a(0x19d)](_0x1195b9['query'][_0xc6c86a(0x19d)])),_0x5c6eb9[_0xc6c86a(0x16f)]=_0x5c6eb9[_0xc6c86a(0x16f)][_0xc6c86a(0x189)]?_0x5c6eb9[_0xc6c86a(0x16f)]:_0x19df71['model'],_0x1195b9[_0xc6c86a(0x187)]['includeAll']&&(_0x5c6eb9[_0xc6c86a(0x153)]=[{'all':!![]}]),_0x5c6eb9=_[_0xc6c86a(0x17d)]({},_0x5c6eb9,_0x1195b9['options']),db['JscriptyProject'][_0xc6c86a(0x1a0)](_0x5c6eb9)['then'](handleEntityNotFound(_0x57bb13,null))[_0xc6c86a(0x19f)](respondWithResult(_0x57bb13,null))[_0xc6c86a(0x15b)](handleError(_0x57bb13,null));},exports[a455_0xd70d81(0x164)]=function(_0x1ffb64,_0x492a81){const _0x49f49b=a455_0xd70d81;return db[_0x49f49b(0x15a)][_0x49f49b(0x164)](_0x1ffb64[_0x49f49b(0x182)],{})[_0x49f49b(0x19f)](function(_0x41428d){const _0x3cf639=_0x49f49b,_0x4bc9bd=_0x1ffb64['user'][_0x3cf639(0x150)]({'plain':!![]});if(!_0x4bc9bd)throw new Error(_0x3cf639(0x18d));if(_0x4bc9bd[_0x3cf639(0x152)]===_0x3cf639(0x1a4)){const _0x2e0317=_0x41428d[_0x3cf639(0x150)]({'plain':!![]}),_0x157fe5=_0x3cf639(0x17c);return db[_0x3cf639(0x18c)][_0x3cf639(0x1a0)]({'where':{'name':_0x157fe5,'userProfileId':_0x4bc9bd[_0x3cf639(0x193)]},'raw':!![]})[_0x3cf639(0x19f)](function(_0x32ec40){const _0x38fd9e=_0x3cf639;return _0x32ec40&&_0x32ec40[_0x38fd9e(0x1ab)]===0x0?db[_0x38fd9e(0x154)][_0x38fd9e(0x164)]({'name':_0x2e0317[_0x38fd9e(0x151)],'resourceId':_0x2e0317['id'],'type':_0x32ec40['name'],'sectionId':_0x32ec40['id']},{})[_0x38fd9e(0x19f)](function(){return _0x41428d;}):_0x41428d;})['catch'](function(_0x2d9242){const _0x2020e0=_0x3cf639;logger[_0x2020e0(0x155)](_0x2020e0(0x198),_0x2d9242);throw _0x2d9242;});}return _0x41428d;})['then'](respondWithResult(_0x492a81,0xc9))['catch'](handleError(_0x492a81,null));},exports['clone']=function(_0x594543,_0x1f9fbd){const _0x5aa5f4=a455_0xd70d81;let _0x2bc2ee={'where':{'id':_0x594543['params']['id']}};const _0x13844f={};return _0x13844f[_0x5aa5f4(0x1a2)]=_[_0x5aa5f4(0x180)](db[_0x5aa5f4(0x15a)][_0x5aa5f4(0x17a)]),_0x2bc2ee['attributes']=_['intersection'](_0x13844f['model'],qs[_0x5aa5f4(0x19d)](_0x594543[_0x5aa5f4(0x187)][_0x5aa5f4(0x19d)])),_0x2bc2ee[_0x5aa5f4(0x16f)]=_0x2bc2ee['attributes']['length']?_0x2bc2ee[_0x5aa5f4(0x16f)]:_0x13844f['model'],_0x594543[_0x5aa5f4(0x187)][_0x5aa5f4(0x1a7)]&&(_0x2bc2ee['include']=[{'all':!![]}]),_0x2bc2ee=_[_0x5aa5f4(0x17d)]({},_0x2bc2ee,_0x594543['options']),db[_0x5aa5f4(0x15a)]['findOne'](_0x2bc2ee)[_0x5aa5f4(0x19f)](handleEntityNotFound(_0x1f9fbd,null))['then'](function(_0x386772){const _0x3e9947=_0x5aa5f4;if(_0x386772){let _0x14780e=_0x386772[_0x3e9947(0x150)]({'plain':!![]});return _0x14780e=qs[_0x3e9947(0x18f)](_0x14780e,['id',_0x3e9947(0x166),_0x3e9947(0x15e)]),_0x594543[_0x3e9947(0x182)]=_[_0x3e9947(0x18f)](_0x594543[_0x3e9947(0x182)],['id','createdAt',_0x3e9947(0x15e)]),db['JscriptyProject'][_0x3e9947(0x164)](_['merge'](_0x14780e,_0x594543[_0x3e9947(0x182)]),{'include':_0x594543[_0x3e9947(0x187)]['includeAll']?[{'all':!![]}]:undefined})['then'](function(_0x569149){const _0x7ef3f1=_0x3e9947,_0x5445c6=_0x594543[_0x7ef3f1(0x1a4)]['get']({'plain':!![]});if(!_0x5445c6)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x5445c6['role']===_0x7ef3f1(0x1a4)){const _0x3327f9=_0x569149[_0x7ef3f1(0x150)]({'plain':!![]}),_0x3e44c4='Projects';return db[_0x7ef3f1(0x18c)][_0x7ef3f1(0x1a0)]({'where':{'name':_0x3e44c4,'userProfileId':_0x5445c6[_0x7ef3f1(0x193)]},'raw':!![]})[_0x7ef3f1(0x19f)](function(_0x4f724b){const _0x4756fc=_0x7ef3f1;return _0x4f724b&&_0x4f724b['autoAssociation']===0x0?db[_0x4756fc(0x154)][_0x4756fc(0x164)]({'name':_0x3327f9['name'],'resourceId':_0x3327f9['id'],'type':_0x4f724b[_0x4756fc(0x151)],'sectionId':_0x4f724b['id']},{})['then'](function(){return _0x569149;}):_0x569149;})['catch'](function(_0x1290aa){const _0x53b211=_0x7ef3f1;logger[_0x53b211(0x155)](_0x53b211(0x198),_0x1290aa);throw _0x1290aa;});}return _0x569149;});}})[_0x5aa5f4(0x19f)](respondWithResult(_0x1f9fbd,0xc9))[_0x5aa5f4(0x15b)](handleError(_0x1f9fbd,null));},exports['update']=function(_0x467c9e,_0x3cb232){const _0x2696bf=a455_0xd70d81;return _0x467c9e[_0x2696bf(0x182)]['id']&&delete _0x467c9e['body']['id'],db[_0x2696bf(0x15a)][_0x2696bf(0x1a0)]({'where':{'id':_0x467c9e['params']['id']}})['then'](handleEntityNotFound(_0x3cb232,null))[_0x2696bf(0x19f)](saveUpdates(_0x467c9e[_0x2696bf(0x182)],null))[_0x2696bf(0x19f)](respondWithResult(_0x3cb232,null))[_0x2696bf(0x15b)](handleError(_0x3cb232,null));},exports['destroy']=function(_0x139a4e,_0x288c27){const _0x50e7e3=a455_0xd70d81;return db[_0x50e7e3(0x15a)]['findOne']({'where':{'id':_0x139a4e['params']['id']}})['then'](handleEntityNotFound(_0x288c27,null))[_0x50e7e3(0x19f)](removeEntity(_0x288c27,null))[_0x50e7e3(0x15b)](handleError(_0x288c27,null));},exports[a455_0xd70d81(0x1a9)]=function(_0x1a4327,_0x483f20){const _0x3a3fd4=a455_0xd70d81;let _0x4a183a={'raw':!![],'where':{}};const _0x482ed1={},_0x283ff3={'count':0x0,'rows':[]};return db[_0x3a3fd4(0x15a)][_0x3a3fd4(0x1a0)]({'where':{'id':_0x1a4327[_0x3a3fd4(0x18a)]['id']}})[_0x3a3fd4(0x19f)](handleEntityNotFound(_0x483f20,null))[_0x3a3fd4(0x19f)](function(_0x2145b4){const _0x13ce9c=_0x3a3fd4;if(_0x2145b4)return _0x482ed1['model']=_[_0x13ce9c(0x180)](db[_0x13ce9c(0x173)][_0x13ce9c(0x17a)]),_0x482ed1['query']=_[_0x13ce9c(0x180)](_0x1a4327[_0x13ce9c(0x187)]),_0x482ed1[_0x13ce9c(0x159)]=_['intersection'](_0x482ed1[_0x13ce9c(0x1a2)],_0x482ed1[_0x13ce9c(0x187)]),_0x4a183a[_0x13ce9c(0x16f)]=_[_0x13ce9c(0x186)](_0x482ed1['model'],qs['fields'](_0x1a4327[_0x13ce9c(0x187)][_0x13ce9c(0x19d)])),_0x4a183a['attributes']=_0x4a183a['attributes'][_0x13ce9c(0x189)]?_0x4a183a[_0x13ce9c(0x16f)]:_0x482ed1[_0x13ce9c(0x1a2)],typeof _0x1a4327[_0x13ce9c(0x187)]['nolimit']===_0x13ce9c(0x17b)&&(_0x4a183a[_0x13ce9c(0x14f)]=qs[_0x13ce9c(0x14f)](_0x1a4327[_0x13ce9c(0x187)]['limit']),_0x4a183a[_0x13ce9c(0x172)]=qs[_0x13ce9c(0x172)](_0x1a4327[_0x13ce9c(0x187)]['offset'])),_0x4a183a['order']=qs[_0x13ce9c(0x19e)](_0x1a4327['query'][_0x13ce9c(0x19e)]),_0x4a183a[_0x13ce9c(0x199)]=qs[_0x13ce9c(0x159)](_[_0x13ce9c(0x183)](_0x1a4327[_0x13ce9c(0x187)],_0x482ed1[_0x13ce9c(0x159)])),_0x4a183a[_0x13ce9c(0x199)][_0x13ce9c(0x161)]=_0x2145b4['id'],_0x1a4327['query'][_0x13ce9c(0x1aa)]&&(_0x4a183a[_0x13ce9c(0x199)]=_[_0x13ce9c(0x17d)](_0x4a183a[_0x13ce9c(0x199)],{[Op['or']]:_[_0x13ce9c(0x185)](_0x4a183a['attributes'],function(_0x3f9798){const _0x1e7ee8=_0x13ce9c,_0x171c82={};return _0x171c82[_0x3f9798]={[Op[_0x1e7ee8(0x191)]]:'%'+_0x1a4327[_0x1e7ee8(0x187)][_0x1e7ee8(0x1aa)]+'%'},_0x171c82;})})),_0x4a183a=_['merge']({},_0x4a183a,_0x1a4327[_0x13ce9c(0x167)]),db['JscriptySessionReport']['count']({'where':_0x4a183a[_0x13ce9c(0x199)]})[_0x13ce9c(0x19f)](function(_0x2600cc){const _0x555961=_0x13ce9c;return _0x283ff3[_0x555961(0x179)]=_0x2600cc,_0x1a4327['query'][_0x555961(0x1a7)]&&(_0x4a183a['include']=[{'all':!![]}]),db[_0x555961(0x173)][_0x555961(0x14c)](_0x4a183a);})[_0x13ce9c(0x19f)](function(_0x5185d5){const _0x339220=_0x13ce9c;return _0x283ff3[_0x339220(0x162)]=_0x5185d5,_0x283ff3;});})[_0x3a3fd4(0x19f)](respondWithFilteredResult(_0x483f20,_0x4a183a))[_0x3a3fd4(0x15b)](handleError(_0x483f20,null));},exports[a455_0xd70d81(0x197)]=function(_0x566130,_0x9fe32c){const _0x5eed9b=a455_0xd70d81;let _0x22d9f4={'raw':!![],'where':{}};const _0x11a5d8={},_0x2aebbd={'count':0x0,'rows':[]};return db[_0x5eed9b(0x15a)][_0x5eed9b(0x1a0)]({'where':{'id':_0x566130[_0x5eed9b(0x18a)]['id']}})[_0x5eed9b(0x19f)](handleEntityNotFound(_0x9fe32c,null))[_0x5eed9b(0x19f)](function(_0x406abd){const _0x197b0b=_0x5eed9b;if(_0x406abd)return _0x11a5d8[_0x197b0b(0x1a2)]=_[_0x197b0b(0x180)](db[_0x197b0b(0x15c)][_0x197b0b(0x17a)]),_0x11a5d8[_0x197b0b(0x187)]=_[_0x197b0b(0x180)](_0x566130[_0x197b0b(0x187)]),_0x11a5d8['filters']=_[_0x197b0b(0x186)](_0x11a5d8[_0x197b0b(0x1a2)],_0x11a5d8[_0x197b0b(0x187)]),_0x22d9f4[_0x197b0b(0x16f)]=_[_0x197b0b(0x186)](_0x11a5d8[_0x197b0b(0x1a2)],qs[_0x197b0b(0x19d)](_0x566130[_0x197b0b(0x187)][_0x197b0b(0x19d)])),_0x22d9f4[_0x197b0b(0x16f)]=_0x22d9f4[_0x197b0b(0x16f)][_0x197b0b(0x189)]?_0x22d9f4[_0x197b0b(0x16f)]:_0x11a5d8[_0x197b0b(0x1a2)],typeof _0x566130[_0x197b0b(0x187)][_0x197b0b(0x14d)]===_0x197b0b(0x17b)&&(_0x22d9f4[_0x197b0b(0x14f)]=qs[_0x197b0b(0x14f)](_0x566130[_0x197b0b(0x187)][_0x197b0b(0x14f)]),_0x22d9f4['offset']=qs[_0x197b0b(0x172)](_0x566130[_0x197b0b(0x187)][_0x197b0b(0x172)])),_0x22d9f4['order']=qs[_0x197b0b(0x19e)](_0x566130[_0x197b0b(0x187)]['sort']),_0x22d9f4[_0x197b0b(0x199)]=qs[_0x197b0b(0x159)](_[_0x197b0b(0x183)](_0x566130['query'],_0x11a5d8[_0x197b0b(0x159)])),_0x22d9f4[_0x197b0b(0x199)][_0x197b0b(0x161)]=_0x406abd['id'],_0x566130[_0x197b0b(0x187)]['filter']&&(_0x22d9f4['where']=_[_0x197b0b(0x17d)](_0x22d9f4[_0x197b0b(0x199)],{[Op['or']]:_[_0x197b0b(0x185)](_0x22d9f4[_0x197b0b(0x16f)],function(_0x3f9dbd){const _0x277160=_0x197b0b,_0x14950e={};return _0x14950e[_0x3f9dbd]={[Op[_0x277160(0x191)]]:'%'+_0x566130[_0x277160(0x187)][_0x277160(0x1aa)]+'%'},_0x14950e;})})),_0x22d9f4=_[_0x197b0b(0x17d)]({},_0x22d9f4,_0x566130[_0x197b0b(0x167)]),db['JscriptyAnswerReport'][_0x197b0b(0x179)]({'where':_0x22d9f4[_0x197b0b(0x199)]})[_0x197b0b(0x19f)](function(_0x47a100){const _0x552db6=_0x197b0b;return _0x2aebbd[_0x552db6(0x179)]=_0x47a100,_0x566130[_0x552db6(0x187)][_0x552db6(0x1a7)]&&(_0x22d9f4[_0x552db6(0x153)]=[{'all':!![]}]),db['JscriptyAnswerReport'][_0x552db6(0x14c)](_0x22d9f4);})[_0x197b0b(0x19f)](function(_0x4272ad){return _0x2aebbd['rows']=_0x4272ad,_0x2aebbd;});})[_0x5eed9b(0x19f)](respondWithFilteredResult(_0x9fe32c,_0x22d9f4))[_0x5eed9b(0x15b)](handleError(_0x9fe32c,null));};function char(_0x2cc147){const _0xed8ef9=a455_0xd70d81;return _0xed8ef9(0x19a)===typeof _0x2cc147?String['fromCharCode'][_0xed8ef9(0x163)](null,arguments):_0x2cc147;}function needsEncapsulation(_0x21b774){const _0x39fe62=a455_0xd70d81;return!!_0x21b774&&(_0x21b774['toString']()[_0x39fe62(0x192)](char(0xd))>=0x0||_0x21b774['toString']()[_0x39fe62(0x192)](char(0xa))>=0x0||_0x21b774[_0x39fe62(0x1a1)]()[_0x39fe62(0x192)](char(0x2c))>=0x0||_0x21b774[_0x39fe62(0x1a1)]()[_0x39fe62(0x192)](char(0x22))>=0x0);}function encapsulate(_0x13a0bd){const _0x26b314=a455_0xd70d81,_0xd6a441=char(0x22),_0x90379a='\x5c'+char(0x22),_0x4f443f=_0x13a0bd[_0x26b314(0x1a1)]()['replace'](new RegExp(_0xd6a441,'g'),_0x90379a);return _0xd6a441+_0x4f443f+_0xd6a441;}exports[a455_0xd70d81(0x18e)]=function(_0x457fbf,_0x5429d4){const _0x98bf54=a455_0xd70d81;let _0xd7faa5,_0x5203f7;const _0x5c14a3={'where':{'ProjectId':_0x457fbf[_0x98bf54(0x18a)]['id']}};return _0x457fbf[_0x98bf54(0x187)][_0x98bf54(0x14e)]&&(_0x5c14a3[_0x98bf54(0x199)][_0x98bf54(0x16a)]=JSON[_0x98bf54(0x171)](_0x457fbf[_0x98bf54(0x187)][_0x98bf54(0x14e)])),db[_0x98bf54(0x173)][_0x98bf54(0x14c)](_0x5c14a3)[_0x98bf54(0x19f)](handleEntityNotFound(_0x5429d4,null))['then'](function(_0x1b3780){const _0x13ff60=_0x98bf54;if(_0x1b3780)return _0xd7faa5=_0x1b3780,db[_0x13ff60(0x15f)]['findAll']({'where':{'SessionId':{[Op['in']]:_['map'](_0xd7faa5,'id')},'ProjectId':_0x457fbf[_0x13ff60(0x18a)]['id']},'order':_0x13ff60(0x16e)});})[_0x98bf54(0x19f)](handleEntityNotFound(_0x5429d4,null))[_0x98bf54(0x19f)](function(_0x359ce0){const _0xb8d51a=_0x98bf54;if(_0x359ce0){_0x5203f7=_0x359ce0;const _0x441c99={};for(let _0x43e154=0x0,_0x5ccf34=_0x5203f7[_0xb8d51a(0x189)];_0x43e154<_0x5ccf34;_0x43e154++){typeof _0x441c99[_0x5203f7[_0x43e154]['questionId']]===_0xb8d51a(0x17b)&&(_0x441c99[_0x5203f7[_0x43e154][_0xb8d51a(0x16c)]]=needsEncapsulation(_0x5203f7[_0x43e154][_0xb8d51a(0x156)])?encapsulate(_0x5203f7[_0x43e154][_0xb8d51a(0x156)]):_0x5203f7[_0x43e154][_0xb8d51a(0x156)]);}const _0xe9820c=[];let _0x420de0={};for(let _0x6ae21=0x0,_0x2f1186=_0xd7faa5[_0xb8d51a(0x189)];_0x6ae21<_0x2f1186;_0x6ae21++){_0x420de0={'ProjectId':_0x457fbf[_0xb8d51a(0x18a)]['id'],'SessionId':_0xd7faa5[_0x6ae21]['id'],'StartTime':moment(_0xd7faa5[_0x6ae21][_0xb8d51a(0x16a)])['format'](_0xb8d51a(0x190))};for(let _0x230ab9=0x0,_0x21907b=_0x5203f7['length'];_0x230ab9<_0x21907b;_0x230ab9++){_0x5203f7[_0x230ab9]['SessionId']===_0xd7faa5[_0x6ae21]['id']&&typeof _0x441c99[_0x5203f7[_0x230ab9][_0xb8d51a(0x16c)]]!==_0xb8d51a(0x17b)&&(_0x420de0[_0x441c99[_0x5203f7[_0x230ab9][_0xb8d51a(0x16c)]]]=_0x5203f7[_0x230ab9]['answer']);}for(const _0x31e8b5 in _0x441c99){typeof _0x420de0[_0x441c99[_0x31e8b5]]==='undefined'&&(_0x420de0[_0x441c99[_0x31e8b5]]=null);}_0xe9820c[_0xb8d51a(0x1a8)](_0x420de0);}return _0xe9820c;}})[_0x98bf54(0x19f)](function(_0x39fed6){const _0x16b9ad=_0x98bf54;if(!_[_0x16b9ad(0x158)](_0x39fed6)){const _0x3229ff=toCsv(_0x39fed6),_0x26e980=Date['now']();return fs[_0x16b9ad(0x176)](util['format'](_0x16b9ad(0x160),_0x457fbf[_0x16b9ad(0x18a)]['id'],_0x26e980),_0x3229ff),_0x5429d4[_0x16b9ad(0x170)](_0x16b9ad(0x188),'attachment;\x20filename='+util['format'](_0x16b9ad(0x177),_0x457fbf[_0x16b9ad(0x18a)]['id'],_0x26e980)),_0x5429d4[_0x16b9ad(0x170)](_0x16b9ad(0x169),'text/csv'),_0x5429d4[_0x16b9ad(0x15d)](util[_0x16b9ad(0x194)](_0x16b9ad(0x160),_0x457fbf[_0x16b9ad(0x18a)]['id'],_0x26e980));}else return _0x5429d4['sendStatus'](0xcc);})[_0x98bf54(0x15b)](handleError(_0x5429d4,null));}; \ No newline at end of file +const a455_0x4683=['Projects','isEmpty','attributes','starttime','startTime','getAnswers','options','merge','where','name','get','fieldName','like','index','then','type','api','sort','keys','rawAttributes','show','filter','error','model','lodash','JscriptyProject','count','order','attachment;\x20filename=','limit','length','sendStatus','filters','getSessions','text/csv','JscriptySessionReport','util','Content-disposition','includeAll','Content-Range','status','include','writeFileSync','indexOf','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','offset','body','SessionId','JscriptyQuestionReport','download','push','catch','map','json','params','apply','ProjectId','question','getSummary','to-csv','userProfileId','pick','send','autoAssociation','UserProfileResource','findOne','nolimit','user','../../mysqldb','parse','updatedAt','UserProfileSection','answer','role','key','clone','destroy','/tmp/Jscripty_Project_%d_Summary_%s.csv','toString','setHeader','JscriptyAnswerReport','create','replace','fromCharCode','update','findAll','omit','intersection','Unable\x20to\x20retrieve\x20the\x20current\x20user','fields','questionId','VIRTUAL','number','../../config/logger','query','format','undefined','rows','createdAt','set'];(function(_0x3f2c14,_0x1f09e8){const _0x4683f6=function(_0x5a4f9d){while(--_0x5a4f9d){_0x3f2c14['push'](_0x3f2c14['shift']());}};_0x4683f6(++_0x1f09e8);}(a455_0x4683,0x79));const a455_0x5a4f=function(_0x3f2c14,_0x1f09e8){_0x3f2c14=_0x3f2c14-0x14e;let _0x4683f6=a455_0x4683[_0x3f2c14];return _0x4683f6;};const a455_0x33355d=a455_0x5a4f;'use strict';const moment=require('moment'),util=require(a455_0x33355d(0x15d)),fs=require('fs'),_=require(a455_0x33355d(0x151)),toCsv=require(a455_0x33355d(0x174)),qs=require('../../components/parsers/qs'),logger=require(a455_0x33355d(0x196))(a455_0x33355d(0x1ad)),{db}=require(a455_0x33355d(0x17d)),{Op}=require('sequelize');function respondWithResult(_0x4f558a,_0x3d0996){return _0x3d0996=_0x3d0996||0xc8,function(_0x448807){const _0x176fd2=a455_0x5a4f;if(_0x448807)return _0x4f558a[_0x176fd2(0x161)](_0x3d0996)[_0x176fd2(0x16e)](_0x448807);};}function respondWithFilteredResult(_0x575fc9,_0x2d8582){return function(_0x436b80){const _0x56067b=a455_0x5a4f;if(_0x436b80){const _0x15676a=_0x436b80[_0x56067b(0x153)],_0x5dc9a6=_0x2d8582['offset'];let _0xf3e629=_0x2d8582['offset']+_0x2d8582['limit'],_0x55475f;return _0xf3e629>=_0x15676a?(_0xf3e629=_0x15676a,_0x55475f=0xc8):_0x55475f=0xce,_0x575fc9[_0x56067b(0x161)](_0x55475f),_0x575fc9[_0x56067b(0x19c)](_0x56067b(0x160),_0x5dc9a6+'-'+_0xf3e629+'/'+_0x15676a)[_0x56067b(0x16e)](_0x436b80);}return null;};}function saveUpdates(_0x2c2fc5){return function(_0x106ea1){const _0x486c5e=a455_0x5a4f;if(_0x106ea1)return _0x106ea1[_0x486c5e(0x18d)](_0x2c2fc5)[_0x486c5e(0x1ab)](function(_0xff1b2){return _0xff1b2;});return null;};}function removeEntity(_0x4e0b39){return function(_0x42695b){const _0x45e98f=a455_0x5a4f;if(_0x42695b)return _0x42695b[_0x45e98f(0x185)]()[_0x45e98f(0x1ab)](function(){const _0x3892ff=_0x45e98f,_0x9c05d0=_0x42695b[_0x3892ff(0x1a7)]({'plain':!![]}),_0xa5d7f='Projects';return db[_0x3892ff(0x179)][_0x3892ff(0x185)]({'where':{'type':_0xa5d7f,'resourceId':_0x9c05d0['id']}})[_0x3892ff(0x1ab)](function(){return _0x42695b;});})[_0x45e98f(0x1ab)](function(){const _0x3d9aaf=_0x45e98f;_0x4e0b39[_0x3d9aaf(0x161)](0xcc)['end']();});};}function handleEntityNotFound(_0x13aff9){return function(_0x278712){const _0x520ed7=a455_0x5a4f;return!_0x278712&&_0x13aff9[_0x520ed7(0x158)](0x194),_0x278712;};}function handleError(_0x2d6fb2,_0xe1afdc){return _0xe1afdc=_0xe1afdc||0x1f4,function(_0x1ff2a0){const _0x331467=a455_0x5a4f;logger[_0x331467(0x14f)](_0x1ff2a0['stack']),_0x1ff2a0[_0x331467(0x1a6)]&&delete _0x1ff2a0[_0x331467(0x1a6)],_0x2d6fb2[_0x331467(0x161)](_0xe1afdc)[_0x331467(0x177)](_0x1ff2a0);};}exports[a455_0x33355d(0x1aa)]=function(_0x4f1434,_0x23b533){const _0x28bd8a=a455_0x33355d;let _0xdf32ab={};const _0x363827={},_0x5744b1={'count':0x0,'rows':[]},_0x9173f4=_[_0x28bd8a(0x16d)](db[_0x28bd8a(0x152)][_0x28bd8a(0x1b0)],function(_0x49162e){const _0x3202fe=_0x28bd8a;return{'name':_0x49162e[_0x3202fe(0x1a8)],'type':_0x49162e[_0x3202fe(0x1ac)][_0x3202fe(0x183)]};});_0x363827[_0x28bd8a(0x150)]=_[_0x28bd8a(0x16d)](_0x9173f4,'name'),_0x363827[_0x28bd8a(0x197)]=_[_0x28bd8a(0x1af)](_0x4f1434[_0x28bd8a(0x197)]),_0x363827['filters']=_[_0x28bd8a(0x190)](_0x363827[_0x28bd8a(0x150)],_0x363827['query']),_0xdf32ab[_0x28bd8a(0x19f)]=_[_0x28bd8a(0x190)](_0x363827[_0x28bd8a(0x150)],qs['fields'](_0x4f1434[_0x28bd8a(0x197)][_0x28bd8a(0x192)])),_0xdf32ab['attributes']=_0xdf32ab['attributes'][_0x28bd8a(0x157)]?_0xdf32ab[_0x28bd8a(0x19f)]:_0x363827[_0x28bd8a(0x150)];typeof _0x4f1434[_0x28bd8a(0x197)][_0x28bd8a(0x17b)]===_0x28bd8a(0x199)&&(_0xdf32ab[_0x28bd8a(0x156)]=qs[_0x28bd8a(0x156)](_0x4f1434[_0x28bd8a(0x197)]['limit']),_0xdf32ab[_0x28bd8a(0x166)]=qs[_0x28bd8a(0x166)](_0x4f1434['query'][_0x28bd8a(0x166)]));_0xdf32ab[_0x28bd8a(0x154)]=qs[_0x28bd8a(0x1ae)](_0x4f1434[_0x28bd8a(0x197)][_0x28bd8a(0x1ae)]),_0xdf32ab[_0x28bd8a(0x1a5)]=qs['filters'](_[_0x28bd8a(0x176)](_0x4f1434[_0x28bd8a(0x197)],_0x363827[_0x28bd8a(0x159)]),_0x9173f4);_0x4f1434['query'][_0x28bd8a(0x14e)]&&(_0xdf32ab[_0x28bd8a(0x1a5)]=_['merge'](_0xdf32ab[_0x28bd8a(0x1a5)],{[Op['or']]:_['map'](_0x9173f4,function(_0x1947e0){const _0x152f50=_0x28bd8a;if(_0x1947e0[_0x152f50(0x1ac)]!==_0x152f50(0x194)){const _0x384f33={};return _0x384f33[_0x1947e0[_0x152f50(0x1a6)]]={[Op['like']]:'%'+_0x4f1434[_0x152f50(0x197)][_0x152f50(0x14e)]+'%'},_0x384f33;}})}));_0xdf32ab=_[_0x28bd8a(0x1a4)]({},_0xdf32ab,_0x4f1434[_0x28bd8a(0x1a3)]);const _0x458d32={'where':_0xdf32ab['where']};return db['JscriptyProject']['count'](_0x458d32)[_0x28bd8a(0x1ab)](function(_0x741283){const _0x2a8da7=_0x28bd8a;return _0x5744b1[_0x2a8da7(0x153)]=_0x741283,_0x4f1434[_0x2a8da7(0x197)]['includeAll']&&(_0xdf32ab[_0x2a8da7(0x162)]=[{'all':!![]}]),db['JscriptyProject']['findAll'](_0xdf32ab);})[_0x28bd8a(0x1ab)](function(_0x533423){const _0x139cf9=_0x28bd8a;return _0x5744b1[_0x139cf9(0x19a)]=_0x533423,_0x5744b1;})['then'](respondWithFilteredResult(_0x23b533,_0xdf32ab))[_0x28bd8a(0x16c)](handleError(_0x23b533,null));},exports[a455_0x33355d(0x1b1)]=function(_0x118a06,_0x5bde8d){const _0x3ade06=a455_0x33355d;let _0x1a7c26={'raw':![],'where':{'id':_0x118a06['params']['id']}};const _0x24c44f={};return _0x24c44f[_0x3ade06(0x150)]=_['keys'](db[_0x3ade06(0x152)][_0x3ade06(0x1b0)]),_0x24c44f['query']=_[_0x3ade06(0x1af)](_0x118a06['query']),_0x24c44f[_0x3ade06(0x159)]=_['intersection'](_0x24c44f[_0x3ade06(0x150)],_0x24c44f[_0x3ade06(0x197)]),_0x1a7c26['attributes']=_[_0x3ade06(0x190)](_0x24c44f[_0x3ade06(0x150)],qs[_0x3ade06(0x192)](_0x118a06[_0x3ade06(0x197)][_0x3ade06(0x192)])),_0x1a7c26[_0x3ade06(0x19f)]=_0x1a7c26[_0x3ade06(0x19f)][_0x3ade06(0x157)]?_0x1a7c26[_0x3ade06(0x19f)]:_0x24c44f[_0x3ade06(0x150)],_0x118a06['query'][_0x3ade06(0x15f)]&&(_0x1a7c26[_0x3ade06(0x162)]=[{'all':!![]}]),_0x1a7c26=_[_0x3ade06(0x1a4)]({},_0x1a7c26,_0x118a06[_0x3ade06(0x1a3)]),db[_0x3ade06(0x152)][_0x3ade06(0x17a)](_0x1a7c26)[_0x3ade06(0x1ab)](handleEntityNotFound(_0x5bde8d,null))['then'](respondWithResult(_0x5bde8d,null))[_0x3ade06(0x16c)](handleError(_0x5bde8d,null));},exports[a455_0x33355d(0x18a)]=function(_0x2f066c,_0xb10a94){const _0x2e6895=a455_0x33355d;return db['JscriptyProject'][_0x2e6895(0x18a)](_0x2f066c[_0x2e6895(0x167)],{})[_0x2e6895(0x1ab)](function(_0x49592c){const _0x4b0ef4=_0x2e6895,_0x24044d=_0x2f066c[_0x4b0ef4(0x17c)][_0x4b0ef4(0x1a7)]({'plain':!![]});if(!_0x24044d)throw new Error(_0x4b0ef4(0x191));if(_0x24044d[_0x4b0ef4(0x182)]===_0x4b0ef4(0x17c)){const _0x4c4cf6=_0x49592c[_0x4b0ef4(0x1a7)]({'plain':!![]}),_0x59bdb0=_0x4b0ef4(0x19d);return db[_0x4b0ef4(0x180)][_0x4b0ef4(0x17a)]({'where':{'name':_0x59bdb0,'userProfileId':_0x24044d[_0x4b0ef4(0x175)]},'raw':!![]})[_0x4b0ef4(0x1ab)](function(_0x580fbc){const _0x3819a3=_0x4b0ef4;return _0x580fbc&&_0x580fbc[_0x3819a3(0x178)]===0x0?db['UserProfileResource'][_0x3819a3(0x18a)]({'name':_0x4c4cf6[_0x3819a3(0x1a6)],'resourceId':_0x4c4cf6['id'],'type':_0x580fbc[_0x3819a3(0x1a6)],'sectionId':_0x580fbc['id']},{})['then'](function(){return _0x49592c;}):_0x49592c;})[_0x4b0ef4(0x16c)](function(_0x53ec29){const _0x88c5c=_0x4b0ef4;logger['error'](_0x88c5c(0x165),_0x53ec29);throw _0x53ec29;});}return _0x49592c;})[_0x2e6895(0x1ab)](respondWithResult(_0xb10a94,0xc9))[_0x2e6895(0x16c)](handleError(_0xb10a94,null));},exports[a455_0x33355d(0x184)]=function(_0x5766d4,_0x59cf8f){const _0x5c92ef=a455_0x33355d;let _0x289eb9={'where':{'id':_0x5766d4[_0x5c92ef(0x16f)]['id']}};const _0x43a653={};return _0x43a653['model']=_[_0x5c92ef(0x1af)](db['JscriptyProject']['rawAttributes']),_0x289eb9[_0x5c92ef(0x19f)]=_['intersection'](_0x43a653['model'],qs[_0x5c92ef(0x192)](_0x5766d4['query']['fields'])),_0x289eb9[_0x5c92ef(0x19f)]=_0x289eb9[_0x5c92ef(0x19f)][_0x5c92ef(0x157)]?_0x289eb9[_0x5c92ef(0x19f)]:_0x43a653[_0x5c92ef(0x150)],_0x5766d4[_0x5c92ef(0x197)][_0x5c92ef(0x15f)]&&(_0x289eb9[_0x5c92ef(0x162)]=[{'all':!![]}]),_0x289eb9=_[_0x5c92ef(0x1a4)]({},_0x289eb9,_0x5766d4[_0x5c92ef(0x1a3)]),db['JscriptyProject'][_0x5c92ef(0x17a)](_0x289eb9)[_0x5c92ef(0x1ab)](handleEntityNotFound(_0x59cf8f,null))['then'](function(_0x4396b6){const _0x1e7a28=_0x5c92ef;if(_0x4396b6){let _0x32b6ab=_0x4396b6[_0x1e7a28(0x1a7)]({'plain':!![]});return _0x32b6ab=qs['omit'](_0x32b6ab,['id',_0x1e7a28(0x19b),_0x1e7a28(0x17f)]),_0x5766d4[_0x1e7a28(0x167)]=_[_0x1e7a28(0x18f)](_0x5766d4[_0x1e7a28(0x167)],['id',_0x1e7a28(0x19b),_0x1e7a28(0x17f)]),db[_0x1e7a28(0x152)][_0x1e7a28(0x18a)](_[_0x1e7a28(0x1a4)](_0x32b6ab,_0x5766d4[_0x1e7a28(0x167)]),{'include':_0x5766d4[_0x1e7a28(0x197)][_0x1e7a28(0x15f)]?[{'all':!![]}]:undefined})[_0x1e7a28(0x1ab)](function(_0x3d348c){const _0x2932cb=_0x1e7a28,_0x1d37b3=_0x5766d4['user'][_0x2932cb(0x1a7)]({'plain':!![]});if(!_0x1d37b3)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x1d37b3[_0x2932cb(0x182)]==='user'){const _0x4bb253=_0x3d348c[_0x2932cb(0x1a7)]({'plain':!![]}),_0x59b6d7=_0x2932cb(0x19d);return db[_0x2932cb(0x180)][_0x2932cb(0x17a)]({'where':{'name':_0x59b6d7,'userProfileId':_0x1d37b3['userProfileId']},'raw':!![]})['then'](function(_0x3f7254){const _0x3f7b0f=_0x2932cb;return _0x3f7254&&_0x3f7254[_0x3f7b0f(0x178)]===0x0?db[_0x3f7b0f(0x179)][_0x3f7b0f(0x18a)]({'name':_0x4bb253[_0x3f7b0f(0x1a6)],'resourceId':_0x4bb253['id'],'type':_0x3f7254[_0x3f7b0f(0x1a6)],'sectionId':_0x3f7254['id']},{})[_0x3f7b0f(0x1ab)](function(){return _0x3d348c;}):_0x3d348c;})['catch'](function(_0x265ee4){const _0x357846=_0x2932cb;logger[_0x357846(0x14f)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x265ee4);throw _0x265ee4;});}return _0x3d348c;});}})[_0x5c92ef(0x1ab)](respondWithResult(_0x59cf8f,0xc9))[_0x5c92ef(0x16c)](handleError(_0x59cf8f,null));},exports[a455_0x33355d(0x18d)]=function(_0x37fc4f,_0x12ed50){const _0x4e6073=a455_0x33355d;return _0x37fc4f['body']['id']&&delete _0x37fc4f[_0x4e6073(0x167)]['id'],db[_0x4e6073(0x152)]['findOne']({'where':{'id':_0x37fc4f[_0x4e6073(0x16f)]['id']}})['then'](handleEntityNotFound(_0x12ed50,null))[_0x4e6073(0x1ab)](saveUpdates(_0x37fc4f[_0x4e6073(0x167)],null))[_0x4e6073(0x1ab)](respondWithResult(_0x12ed50,null))[_0x4e6073(0x16c)](handleError(_0x12ed50,null));},exports[a455_0x33355d(0x185)]=function(_0xd2beae,_0x4f7a59){const _0x3176ce=a455_0x33355d;return db[_0x3176ce(0x152)][_0x3176ce(0x17a)]({'where':{'id':_0xd2beae['params']['id']}})[_0x3176ce(0x1ab)](handleEntityNotFound(_0x4f7a59,null))[_0x3176ce(0x1ab)](removeEntity(_0x4f7a59,null))[_0x3176ce(0x16c)](handleError(_0x4f7a59,null));},exports[a455_0x33355d(0x15a)]=function(_0x493ea4,_0x4c2b05){const _0xa89084=a455_0x33355d;let _0x540604={'raw':!![],'where':{}};const _0x19b12f={},_0x4ff8e3={'count':0x0,'rows':[]};return db['JscriptyProject']['findOne']({'where':{'id':_0x493ea4[_0xa89084(0x16f)]['id']}})['then'](handleEntityNotFound(_0x4c2b05,null))['then'](function(_0x30186c){const _0x4d342=_0xa89084;if(_0x30186c)return _0x19b12f[_0x4d342(0x150)]=_['keys'](db[_0x4d342(0x15c)][_0x4d342(0x1b0)]),_0x19b12f['query']=_[_0x4d342(0x1af)](_0x493ea4[_0x4d342(0x197)]),_0x19b12f[_0x4d342(0x159)]=_['intersection'](_0x19b12f[_0x4d342(0x150)],_0x19b12f[_0x4d342(0x197)]),_0x540604[_0x4d342(0x19f)]=_[_0x4d342(0x190)](_0x19b12f[_0x4d342(0x150)],qs['fields'](_0x493ea4[_0x4d342(0x197)][_0x4d342(0x192)])),_0x540604[_0x4d342(0x19f)]=_0x540604['attributes'][_0x4d342(0x157)]?_0x540604['attributes']:_0x19b12f[_0x4d342(0x150)],typeof _0x493ea4[_0x4d342(0x197)][_0x4d342(0x17b)]===_0x4d342(0x199)&&(_0x540604[_0x4d342(0x156)]=qs[_0x4d342(0x156)](_0x493ea4[_0x4d342(0x197)][_0x4d342(0x156)]),_0x540604[_0x4d342(0x166)]=qs[_0x4d342(0x166)](_0x493ea4[_0x4d342(0x197)][_0x4d342(0x166)])),_0x540604['order']=qs['sort'](_0x493ea4[_0x4d342(0x197)][_0x4d342(0x1ae)]),_0x540604[_0x4d342(0x1a5)]=qs[_0x4d342(0x159)](_[_0x4d342(0x176)](_0x493ea4[_0x4d342(0x197)],_0x19b12f[_0x4d342(0x159)])),_0x540604[_0x4d342(0x1a5)][_0x4d342(0x171)]=_0x30186c['id'],_0x493ea4[_0x4d342(0x197)]['filter']&&(_0x540604['where']=_[_0x4d342(0x1a4)](_0x540604[_0x4d342(0x1a5)],{[Op['or']]:_[_0x4d342(0x16d)](_0x540604[_0x4d342(0x19f)],function(_0x5a4a86){const _0x445d53=_0x4d342,_0x57d836={};return _0x57d836[_0x5a4a86]={[Op[_0x445d53(0x1a9)]]:'%'+_0x493ea4[_0x445d53(0x197)][_0x445d53(0x14e)]+'%'},_0x57d836;})})),_0x540604=_['merge']({},_0x540604,_0x493ea4[_0x4d342(0x1a3)]),db[_0x4d342(0x15c)][_0x4d342(0x153)]({'where':_0x540604[_0x4d342(0x1a5)]})['then'](function(_0x7c50a2){const _0x161965=_0x4d342;return _0x4ff8e3[_0x161965(0x153)]=_0x7c50a2,_0x493ea4[_0x161965(0x197)][_0x161965(0x15f)]&&(_0x540604['include']=[{'all':!![]}]),db[_0x161965(0x15c)][_0x161965(0x18e)](_0x540604);})[_0x4d342(0x1ab)](function(_0x12cf9a){const _0xbb2d67=_0x4d342;return _0x4ff8e3[_0xbb2d67(0x19a)]=_0x12cf9a,_0x4ff8e3;});})['then'](respondWithFilteredResult(_0x4c2b05,_0x540604))['catch'](handleError(_0x4c2b05,null));},exports[a455_0x33355d(0x1a2)]=function(_0x1ff44,_0x256824){const _0x21c6f9=a455_0x33355d;let _0x1187ab={'raw':!![],'where':{}};const _0x34a2af={},_0x21ef69={'count':0x0,'rows':[]};return db['JscriptyProject'][_0x21c6f9(0x17a)]({'where':{'id':_0x1ff44['params']['id']}})['then'](handleEntityNotFound(_0x256824,null))[_0x21c6f9(0x1ab)](function(_0x1b0f2b){const _0xe073f1=_0x21c6f9;if(_0x1b0f2b)return _0x34a2af[_0xe073f1(0x150)]=_[_0xe073f1(0x1af)](db[_0xe073f1(0x189)][_0xe073f1(0x1b0)]),_0x34a2af['query']=_[_0xe073f1(0x1af)](_0x1ff44[_0xe073f1(0x197)]),_0x34a2af[_0xe073f1(0x159)]=_['intersection'](_0x34a2af[_0xe073f1(0x150)],_0x34a2af[_0xe073f1(0x197)]),_0x1187ab['attributes']=_[_0xe073f1(0x190)](_0x34a2af['model'],qs[_0xe073f1(0x192)](_0x1ff44['query'][_0xe073f1(0x192)])),_0x1187ab[_0xe073f1(0x19f)]=_0x1187ab[_0xe073f1(0x19f)][_0xe073f1(0x157)]?_0x1187ab['attributes']:_0x34a2af[_0xe073f1(0x150)],typeof _0x1ff44[_0xe073f1(0x197)]['nolimit']===_0xe073f1(0x199)&&(_0x1187ab[_0xe073f1(0x156)]=qs['limit'](_0x1ff44[_0xe073f1(0x197)][_0xe073f1(0x156)]),_0x1187ab['offset']=qs[_0xe073f1(0x166)](_0x1ff44[_0xe073f1(0x197)]['offset'])),_0x1187ab[_0xe073f1(0x154)]=qs['sort'](_0x1ff44[_0xe073f1(0x197)][_0xe073f1(0x1ae)]),_0x1187ab[_0xe073f1(0x1a5)]=qs[_0xe073f1(0x159)](_[_0xe073f1(0x176)](_0x1ff44[_0xe073f1(0x197)],_0x34a2af['filters'])),_0x1187ab[_0xe073f1(0x1a5)][_0xe073f1(0x171)]=_0x1b0f2b['id'],_0x1ff44[_0xe073f1(0x197)][_0xe073f1(0x14e)]&&(_0x1187ab[_0xe073f1(0x1a5)]=_[_0xe073f1(0x1a4)](_0x1187ab[_0xe073f1(0x1a5)],{[Op['or']]:_[_0xe073f1(0x16d)](_0x1187ab[_0xe073f1(0x19f)],function(_0xc7c3db){const _0x2d8b4e=_0xe073f1,_0x4b7879={};return _0x4b7879[_0xc7c3db]={[Op[_0x2d8b4e(0x1a9)]]:'%'+_0x1ff44[_0x2d8b4e(0x197)]['filter']+'%'},_0x4b7879;})})),_0x1187ab=_[_0xe073f1(0x1a4)]({},_0x1187ab,_0x1ff44[_0xe073f1(0x1a3)]),db[_0xe073f1(0x189)]['count']({'where':_0x1187ab[_0xe073f1(0x1a5)]})[_0xe073f1(0x1ab)](function(_0x583062){const _0x3972a2=_0xe073f1;return _0x21ef69[_0x3972a2(0x153)]=_0x583062,_0x1ff44[_0x3972a2(0x197)][_0x3972a2(0x15f)]&&(_0x1187ab[_0x3972a2(0x162)]=[{'all':!![]}]),db[_0x3972a2(0x189)][_0x3972a2(0x18e)](_0x1187ab);})[_0xe073f1(0x1ab)](function(_0x3daaf8){const _0x37ae0c=_0xe073f1;return _0x21ef69[_0x37ae0c(0x19a)]=_0x3daaf8,_0x21ef69;});})['then'](respondWithFilteredResult(_0x256824,_0x1187ab))['catch'](handleError(_0x256824,null));};function char(_0x2639f8){const _0xc5120b=a455_0x33355d;return _0xc5120b(0x195)===typeof _0x2639f8?String[_0xc5120b(0x18c)][_0xc5120b(0x170)](null,arguments):_0x2639f8;}function needsEncapsulation(_0x396cba){const _0x59f937=a455_0x33355d;return!!_0x396cba&&(_0x396cba[_0x59f937(0x187)]()['indexOf'](char(0xd))>=0x0||_0x396cba[_0x59f937(0x187)]()[_0x59f937(0x164)](char(0xa))>=0x0||_0x396cba[_0x59f937(0x187)]()[_0x59f937(0x164)](char(0x2c))>=0x0||_0x396cba[_0x59f937(0x187)]()['indexOf'](char(0x22))>=0x0);}function encapsulate(_0x1ad218){const _0x2e2ef2=a455_0x33355d,_0x13d991=char(0x22),_0x15fca4='\x5c'+char(0x22),_0x1b07e1=_0x1ad218[_0x2e2ef2(0x187)]()[_0x2e2ef2(0x18b)](new RegExp(_0x13d991,'g'),_0x15fca4);return _0x13d991+_0x1b07e1+_0x13d991;}exports[a455_0x33355d(0x173)]=function(_0xaa78a6,_0x2217cc){const _0x3b8546=a455_0x33355d;let _0x13504b,_0x374b0e;const _0x589a73={'where':{'ProjectId':_0xaa78a6[_0x3b8546(0x16f)]['id']}};return _0xaa78a6['query'][_0x3b8546(0x1a1)]&&(_0x589a73[_0x3b8546(0x1a5)]['starttime']=JSON[_0x3b8546(0x17e)](_0xaa78a6['query']['startTime'])),db[_0x3b8546(0x15c)][_0x3b8546(0x18e)](_0x589a73)[_0x3b8546(0x1ab)](handleEntityNotFound(_0x2217cc,null))[_0x3b8546(0x1ab)](function(_0x5ad987){const _0x4b2f31=_0x3b8546;if(_0x5ad987)return _0x13504b=_0x5ad987,db[_0x4b2f31(0x169)][_0x4b2f31(0x18e)]({'where':{'SessionId':{[Op['in']]:_['map'](_0x13504b,'id')},'ProjectId':_0xaa78a6[_0x4b2f31(0x16f)]['id']},'order':'-createdAt'});})[_0x3b8546(0x1ab)](handleEntityNotFound(_0x2217cc,null))[_0x3b8546(0x1ab)](function(_0xd6a4d9){const _0x22978f=_0x3b8546;if(_0xd6a4d9){_0x374b0e=_0xd6a4d9;const _0x265515={};for(let _0x408cb7=0x0,_0x478989=_0x374b0e[_0x22978f(0x157)];_0x408cb7<_0x478989;_0x408cb7++){typeof _0x265515[_0x374b0e[_0x408cb7]['questionId']]==='undefined'&&(_0x265515[_0x374b0e[_0x408cb7]['questionId']]=needsEncapsulation(_0x374b0e[_0x408cb7][_0x22978f(0x172)])?encapsulate(_0x374b0e[_0x408cb7][_0x22978f(0x172)]):_0x374b0e[_0x408cb7]['question']);}const _0x202cf7=[];let _0x23c07a={};for(let _0x2c8eda=0x0,_0x12cfc5=_0x13504b[_0x22978f(0x157)];_0x2c8eda<_0x12cfc5;_0x2c8eda++){_0x23c07a={'ProjectId':_0xaa78a6[_0x22978f(0x16f)]['id'],'SessionId':_0x13504b[_0x2c8eda]['id'],'StartTime':moment(_0x13504b[_0x2c8eda][_0x22978f(0x1a0)])[_0x22978f(0x198)]('YYYY-MM-DD\x20HH:mm:ss')};for(let _0x5bfc15=0x0,_0x2eac72=_0x374b0e['length'];_0x5bfc15<_0x2eac72;_0x5bfc15++){_0x374b0e[_0x5bfc15][_0x22978f(0x168)]===_0x13504b[_0x2c8eda]['id']&&typeof _0x265515[_0x374b0e[_0x5bfc15][_0x22978f(0x193)]]!==_0x22978f(0x199)&&(_0x23c07a[_0x265515[_0x374b0e[_0x5bfc15][_0x22978f(0x193)]]]=_0x374b0e[_0x5bfc15][_0x22978f(0x181)]);}for(const _0x42468c in _0x265515){typeof _0x23c07a[_0x265515[_0x42468c]]===_0x22978f(0x199)&&(_0x23c07a[_0x265515[_0x42468c]]=null);}_0x202cf7[_0x22978f(0x16b)](_0x23c07a);}return _0x202cf7;}})[_0x3b8546(0x1ab)](function(_0x473b1a){const _0x40ede9=_0x3b8546;if(!_[_0x40ede9(0x19e)](_0x473b1a)){const _0x580e33=toCsv(_0x473b1a),_0xd9ec48=Date['now']();return fs[_0x40ede9(0x163)](util[_0x40ede9(0x198)](_0x40ede9(0x186),_0xaa78a6[_0x40ede9(0x16f)]['id'],_0xd9ec48),_0x580e33),_0x2217cc[_0x40ede9(0x188)](_0x40ede9(0x15e),_0x40ede9(0x155)+util[_0x40ede9(0x198)]('Jscripty_Project_%d_Summary_%s.csv',_0xaa78a6[_0x40ede9(0x16f)]['id'],_0xd9ec48)),_0x2217cc['setHeader']('Content-type',_0x40ede9(0x15b)),_0x2217cc[_0x40ede9(0x16a)](util[_0x40ede9(0x198)](_0x40ede9(0x186),_0xaa78a6[_0x40ede9(0x16f)]['id'],_0xd9ec48));}else return _0x2217cc[_0x40ede9(0x158)](0xcc);})[_0x3b8546(0x16c)](handleError(_0x2217cc,null));}; \ No newline at end of file diff --git a/server/api/jscriptyProject/jscriptyProject.model.js b/server/api/jscriptyProject/jscriptyProject.model.js index b134335..b8ab023 100644 --- a/server/api/jscriptyProject/jscriptyProject.model.js +++ b/server/api/jscriptyProject/jscriptyProject.model.js @@ -1 +1 @@ -const a456_0x195a=['sequelize','exports','init','JscriptyProject','./jscriptyProject.options','./jscriptyProject.attributes'];(function(_0x175764,_0x3021bc){const _0x195ace=function(_0x50026e){while(--_0x50026e){_0x175764['push'](_0x175764['shift']());}};_0x195ace(++_0x3021bc);}(a456_0x195a,0xb0));const a456_0x5002=function(_0x175764,_0x3021bc){_0x175764=_0x175764-0xf4;let _0x195ace=a456_0x195a[_0x175764];return _0x195ace;};const a456_0x184682=a456_0x5002;'use strict';const {Model}=require(a456_0x184682(0xf8)),{attributes}=require(a456_0x184682(0xf7)),{options}=require(a456_0x184682(0xf6));class JscriptyProject extends Model{}function init(_0x9ab674,_0x678566){const _0x59f5b7=a456_0x184682,_0x1bc41d=options(_0x9ab674),_0x3a6d66=typeof _0x678566==='function'?_0x678566(_0x1bc41d):_0x1bc41d;return JscriptyProject[_0x59f5b7(0xf4)](attributes,_0x3a6d66),JscriptyProject;}module[a456_0x184682(0xf9)][a456_0x184682(0xf5)]=JscriptyProject,module[a456_0x184682(0xf9)]['init']=init; \ No newline at end of file +const a456_0x1ac2=['function','init','./jscriptyProject.attributes','JscriptyProject','exports','sequelize'];(function(_0x45ef86,_0x358c69){const _0x1ac2f7=function(_0x4fd862){while(--_0x4fd862){_0x45ef86['push'](_0x45ef86['shift']());}};_0x1ac2f7(++_0x358c69);}(a456_0x1ac2,0xce));const a456_0x4fd8=function(_0x45ef86,_0x358c69){_0x45ef86=_0x45ef86-0x187;let _0x1ac2f7=a456_0x1ac2[_0x45ef86];return _0x1ac2f7;};const a456_0x2981a1=a456_0x4fd8;'use strict';const {Model}=require(a456_0x2981a1(0x18a)),{attributes}=require(a456_0x2981a1(0x187)),{options}=require('./jscriptyProject.options');class JscriptyProject extends Model{}function init(_0x46fe03,_0xb4596a){const _0x7a1f70=a456_0x2981a1,_0xa02989=options(_0x46fe03),_0x139fe0=typeof _0xb4596a===_0x7a1f70(0x18b)?_0xb4596a(_0xa02989):_0xa02989;return JscriptyProject['init'](attributes,_0x139fe0),JscriptyProject;}module['exports'][a456_0x2981a1(0x188)]=JscriptyProject,module[a456_0x2981a1(0x189)][a456_0x2981a1(0x18c)]=init; \ No newline at end of file diff --git a/server/api/jscriptyProject/jscriptyProject.options.js b/server/api/jscriptyProject/jscriptyProject.options.js index 02549e6..1688440 100644 --- a/server/api/jscriptyProject/jscriptyProject.options.js +++ b/server/api/jscriptyProject/jscriptyProject.options.js @@ -1 +1 @@ -var a457_0x18dd=['exports','options','jscripty_projects'];(function(_0x48586c,_0x3f9a99){var _0x18dd03=function(_0x1ce6f3){while(--_0x1ce6f3){_0x48586c['push'](_0x48586c['shift']());}};_0x18dd03(++_0x3f9a99);}(a457_0x18dd,0x14e));var a457_0x1ce6=function(_0x48586c,_0x3f9a99){_0x48586c=_0x48586c-0x19c;var _0x18dd03=a457_0x18dd[_0x48586c];return _0x18dd03;};var a457_0x24edd4=a457_0x1ce6;function options(_0x8e0863){var _0x8f5890=a457_0x1ce6;return{'sequelize':_0x8e0863,'tableName':_0x8f5890(0x19d),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a457_0x24edd4(0x19e)][a457_0x24edd4(0x19c)]=options; \ No newline at end of file +var a457_0x23d7=['exports','options'];(function(_0x12e300,_0x58c549){var _0x23d72b=function(_0x39739c){while(--_0x39739c){_0x12e300['push'](_0x12e300['shift']());}};_0x23d72b(++_0x58c549);}(a457_0x23d7,0xb8));var a457_0x3973=function(_0x12e300,_0x58c549){_0x12e300=_0x12e300-0x91;var _0x23d72b=a457_0x23d7[_0x12e300];return _0x23d72b;};var a457_0x5e7891=a457_0x3973;function options(_0x36dc93){return{'sequelize':_0x36dc93,'tableName':'jscripty_projects','paranoid':![],'indexes':[],'timestamps':!![]};}module[a457_0x5e7891(0x91)][a457_0x5e7891(0x92)]=options; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/index.js b/server/api/jscriptyQuestionReport/index.js index ae671aa..0023b2c 100644 --- a/server/api/jscriptyQuestionReport/index.js +++ b/server/api/jscriptyQuestionReport/index.js @@ -1 +1 @@ -const a458_0x4559=['destroy','show','./jscriptyQuestionReport.controller','../../components/auth/service','get','express','post','put','delete','create','describe','isAuthenticated','index','/:id'];(function(_0x29e6bc,_0x35aa29){const _0x455927=function(_0x5b8b97){while(--_0x5b8b97){_0x29e6bc['push'](_0x29e6bc['shift']());}};_0x455927(++_0x35aa29);}(a458_0x4559,0x16f));const a458_0x5b8b=function(_0x29e6bc,_0x35aa29){_0x29e6bc=_0x29e6bc-0xca;let _0x455927=a458_0x4559[_0x29e6bc];return _0x455927;};const a458_0x322466=a458_0x5b8b;'use strict';const express=require(a458_0x322466(0xcc)),router=express['Router'](),auth=require(a458_0x322466(0xca)),controller=require(a458_0x322466(0xd7));router[a458_0x322466(0xcb)]('/',auth[a458_0x322466(0xd2)](),controller[a458_0x322466(0xd3)]),router['get']('/describe',auth[a458_0x322466(0xd2)](),controller[a458_0x322466(0xd1)]),router[a458_0x322466(0xcb)]('/:id',auth[a458_0x322466(0xd2)](),controller[a458_0x322466(0xd6)]),router[a458_0x322466(0xcd)]('/',auth[a458_0x322466(0xd2)](),controller[a458_0x322466(0xd0)]),router[a458_0x322466(0xce)](a458_0x322466(0xd4),auth['isAuthenticated'](),controller['update']),router[a458_0x322466(0xcf)](a458_0x322466(0xd4),auth[a458_0x322466(0xd2)](),controller[a458_0x322466(0xd5)]),module['exports']=router; \ No newline at end of file +const a458_0x1c73=['delete','Router','post','describe','express','exports','get','/describe','./jscriptyQuestionReport.controller','/:id','../../components/auth/service','isAuthenticated','destroy','create','update'];(function(_0x30be7f,_0x5644f1){const _0x1c730c=function(_0x4eb6dc){while(--_0x4eb6dc){_0x30be7f['push'](_0x30be7f['shift']());}};_0x1c730c(++_0x5644f1);}(a458_0x1c73,0x126));const a458_0x4eb6=function(_0x30be7f,_0x5644f1){_0x30be7f=_0x30be7f-0x8d;let _0x1c730c=a458_0x1c73[_0x30be7f];return _0x1c730c;};const a458_0xe38314=a458_0x4eb6;'use strict';const express=require(a458_0xe38314(0x97)),router=express[a458_0xe38314(0x94)](),auth=require(a458_0xe38314(0x8e)),controller=require(a458_0xe38314(0x9b));router[a458_0xe38314(0x99)]('/',auth[a458_0xe38314(0x8f)](),controller['index']),router[a458_0xe38314(0x99)](a458_0xe38314(0x9a),auth['isAuthenticated'](),controller[a458_0xe38314(0x96)]),router[a458_0xe38314(0x99)](a458_0xe38314(0x8d),auth[a458_0xe38314(0x8f)](),controller['show']),router[a458_0xe38314(0x95)]('/',auth['isAuthenticated'](),controller[a458_0xe38314(0x91)]),router['put'](a458_0xe38314(0x8d),auth[a458_0xe38314(0x8f)](),controller[a458_0xe38314(0x92)]),router[a458_0xe38314(0x93)](a458_0xe38314(0x8d),auth[a458_0xe38314(0x8f)](),controller[a458_0xe38314(0x90)]),module[a458_0xe38314(0x98)]=router; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js index 6ac04fe..b40c705 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js @@ -1 +1 @@ -const a459_0x2c54=['exports','sequelize','TEXT','STRING','attributes','long'];(function(_0x103597,_0x565e32){const _0x2c5437=function(_0x28ad8e){while(--_0x28ad8e){_0x103597['push'](_0x103597['shift']());}};_0x2c5437(++_0x565e32);}(a459_0x2c54,0xbb));const a459_0x28ad=function(_0x103597,_0x565e32){_0x103597=_0x103597-0x1a7;let _0x2c5437=a459_0x2c54[_0x103597];return _0x2c5437;};const a459_0x54a6dd=a459_0x28ad;'use strict';const {DataTypes}=require(a459_0x54a6dd(0x1a7)),attributes={'question':{'type':DataTypes['STRING']},'answer':{'type':DataTypes[a459_0x54a6dd(0x1a8)]({'length':a459_0x54a6dd(0x1ab)})},'membername':{'type':DataTypes[a459_0x54a6dd(0x1a9)]},'projectname':{'type':DataTypes[a459_0x54a6dd(0x1a9)]},'queue':{'type':DataTypes[a459_0x54a6dd(0x1a9)]},'uniqueid':{'type':DataTypes[a459_0x54a6dd(0x1a9)]},'calleridname':{'type':DataTypes[a459_0x54a6dd(0x1a9)]},'calleridnum':{'type':DataTypes[a459_0x54a6dd(0x1a9)]},'questionId':{'type':DataTypes[a459_0x54a6dd(0x1a9)]}};module[a459_0x54a6dd(0x1ac)][a459_0x54a6dd(0x1aa)]=attributes; \ No newline at end of file +const a459_0x5e31=['attributes','STRING','long','exports','sequelize'];(function(_0x5b2798,_0x270fb2){const _0x5e3197=function(_0x471dbb){while(--_0x471dbb){_0x5b2798['push'](_0x5b2798['shift']());}};_0x5e3197(++_0x270fb2);}(a459_0x5e31,0x188));const a459_0x471d=function(_0x5b2798,_0x270fb2){_0x5b2798=_0x5b2798-0x104;let _0x5e3197=a459_0x5e31[_0x5b2798];return _0x5e3197;};const a459_0x3ff698=a459_0x471d;'use strict';const {DataTypes}=require(a459_0x3ff698(0x106)),attributes={'question':{'type':DataTypes[a459_0x3ff698(0x108)]},'answer':{'type':DataTypes['TEXT']({'length':a459_0x3ff698(0x104)})},'membername':{'type':DataTypes['STRING']},'projectname':{'type':DataTypes[a459_0x3ff698(0x108)]},'queue':{'type':DataTypes[a459_0x3ff698(0x108)]},'uniqueid':{'type':DataTypes[a459_0x3ff698(0x108)]},'calleridname':{'type':DataTypes[a459_0x3ff698(0x108)]},'calleridnum':{'type':DataTypes[a459_0x3ff698(0x108)]},'questionId':{'type':DataTypes['STRING']}};module[a459_0x3ff698(0x105)][a459_0x3ff698(0x107)]=attributes; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js index 35238df..d619ecb 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js @@ -1 +1 @@ -const a460_0x9fd6=['update','sequelize','attributes','index','../../components/parsers/qs','destroy','../../mysqldb','pick','map','offset','fieldName','error','catch','filters','sendStatus','filter','name','body','intersection','merge','describe','rawAttributes','findAll','params','keys','count','sort','findOne','limit','lodash','JscriptyQuestionReport','end','then','where','nolimit','order','show','query','set','length','includeAll','rows','model','status','VIRTUAL','json','like','options','send','type','include','create','../../config/logger','fields'];(function(_0x14d28a,_0x328b7d){const _0x9fd65f=function(_0x2f6ae8){while(--_0x2f6ae8){_0x14d28a['push'](_0x14d28a['shift']());}};_0x9fd65f(++_0x328b7d);}(a460_0x9fd6,0x197));const a460_0x2f6a=function(_0x14d28a,_0x328b7d){_0x14d28a=_0x14d28a-0xf3;let _0x9fd65f=a460_0x9fd6[_0x14d28a];return _0x9fd65f;};const a460_0x1f1241=a460_0x2f6a;'use strict';const _=require(a460_0x1f1241(0xf3)),qs=require(a460_0x1f1241(0x110)),logger=require(a460_0x1f1241(0x10a))('api'),{db}=require(a460_0x1f1241(0x112)),{Op}=require(a460_0x1f1241(0x10d));function respondWithResult(_0x16b722,_0x511ccc){return _0x511ccc=_0x511ccc||0xc8,function(_0x1d809e){if(_0x1d809e)return _0x16b722['status'](_0x511ccc)['json'](_0x1d809e);};}function respondWithFilteredResult(_0x1ee49b,_0x306d04){return function(_0x183721){const _0xfcf314=a460_0x2f6a;if(_0x183721){const _0x54b0b4=_0x183721[_0xfcf314(0x125)],_0x2fee82=_0x306d04[_0xfcf314(0x115)];let _0x3371ae=_0x306d04[_0xfcf314(0x115)]+_0x306d04[_0xfcf314(0x128)],_0x3dac4e;return _0x3371ae>=_0x54b0b4?(_0x3371ae=_0x54b0b4,_0x3dac4e=0xc8):_0x3dac4e=0xce,_0x1ee49b[_0xfcf314(0x101)](_0x3dac4e),_0x1ee49b[_0xfcf314(0xfc)]('Content-Range',_0x2fee82+'-'+_0x3371ae+'/'+_0x54b0b4)[_0xfcf314(0x103)](_0x183721);}return null;};}function saveUpdates(_0x1a8ddc){return function(_0x497a5f){const _0x5c796a=a460_0x2f6a;if(_0x497a5f)return _0x497a5f['update'](_0x1a8ddc)[_0x5c796a(0xf6)](function(_0x184e48){return _0x184e48;});return null;};}function removeEntity(_0x374a84){return function(_0x3e21d4){const _0x2130fc=a460_0x2f6a;if(_0x3e21d4)return _0x3e21d4[_0x2130fc(0x111)]()['then'](function(){const _0x109726=_0x2130fc;_0x374a84[_0x109726(0x101)](0xcc)[_0x109726(0xf5)]();});};}function handleEntityNotFound(_0x4084ef){return function(_0x1452fd){const _0x5a4905=a460_0x2f6a;return!_0x1452fd&&_0x4084ef[_0x5a4905(0x11a)](0x194),_0x1452fd;};}function handleError(_0x3499a5,_0x21489f){return _0x21489f=_0x21489f||0x1f4,function(_0x17888e){const _0xa20e21=a460_0x2f6a;logger[_0xa20e21(0x117)](_0x17888e['stack']),_0x17888e[_0xa20e21(0x11c)]&&delete _0x17888e['name'],_0x3499a5['status'](_0x21489f)[_0xa20e21(0x106)](_0x17888e);};}exports[a460_0x1f1241(0x10f)]=function(_0x2eaecc,_0x2ad7ed){const _0x5953a8=a460_0x1f1241;let _0x569c41={};const _0x124bd0={},_0x59ad76={'count':0x0,'rows':[]},_0x1f64da=_[_0x5953a8(0x114)](db[_0x5953a8(0xf4)][_0x5953a8(0x121)],function(_0x3cabd0){const _0x3cc7b2=_0x5953a8;return{'name':_0x3cabd0[_0x3cc7b2(0x116)],'type':_0x3cabd0[_0x3cc7b2(0x107)]['key']};});_0x124bd0[_0x5953a8(0x100)]=_[_0x5953a8(0x114)](_0x1f64da,_0x5953a8(0x11c)),_0x124bd0[_0x5953a8(0xfb)]=_['keys'](_0x2eaecc[_0x5953a8(0xfb)]),_0x124bd0[_0x5953a8(0x119)]=_[_0x5953a8(0x11e)](_0x124bd0[_0x5953a8(0x100)],_0x124bd0[_0x5953a8(0xfb)]),_0x569c41[_0x5953a8(0x10e)]=_[_0x5953a8(0x11e)](_0x124bd0['model'],qs['fields'](_0x2eaecc['query'][_0x5953a8(0x10b)])),_0x569c41[_0x5953a8(0x10e)]=_0x569c41['attributes']['length']?_0x569c41['attributes']:_0x124bd0[_0x5953a8(0x100)];typeof _0x2eaecc[_0x5953a8(0xfb)][_0x5953a8(0xf8)]==='undefined'&&(_0x569c41[_0x5953a8(0x128)]=qs['limit'](_0x2eaecc[_0x5953a8(0xfb)][_0x5953a8(0x128)]),_0x569c41['offset']=qs[_0x5953a8(0x115)](_0x2eaecc[_0x5953a8(0xfb)][_0x5953a8(0x115)]));_0x569c41[_0x5953a8(0xf9)]=qs[_0x5953a8(0x126)](_0x2eaecc[_0x5953a8(0xfb)]['sort']),_0x569c41['where']=qs[_0x5953a8(0x119)](_[_0x5953a8(0x113)](_0x2eaecc[_0x5953a8(0xfb)],_0x124bd0[_0x5953a8(0x119)]),_0x1f64da);_0x2eaecc['query'][_0x5953a8(0x11b)]&&(_0x569c41['where']=_[_0x5953a8(0x11f)](_0x569c41['where'],{[Op['or']]:_['map'](_0x1f64da,function(_0x4bb0ee){const _0x3f0dce=_0x5953a8;if(_0x4bb0ee[_0x3f0dce(0x107)]!==_0x3f0dce(0x102)){const _0x15fa77={};return _0x15fa77[_0x4bb0ee[_0x3f0dce(0x11c)]]={[Op[_0x3f0dce(0x104)]]:'%'+_0x2eaecc[_0x3f0dce(0xfb)][_0x3f0dce(0x11b)]+'%'},_0x15fa77;}})}));_0x569c41=_[_0x5953a8(0x11f)]({},_0x569c41,_0x2eaecc[_0x5953a8(0x105)]);const _0x42f1cc={'where':_0x569c41[_0x5953a8(0xf7)]};return db['JscriptyQuestionReport'][_0x5953a8(0x125)](_0x42f1cc)['then'](function(_0x4e3305){const _0x5e50ef=_0x5953a8;return _0x59ad76[_0x5e50ef(0x125)]=_0x4e3305,_0x2eaecc[_0x5e50ef(0xfb)]['includeAll']&&(_0x569c41[_0x5e50ef(0x108)]=[{'all':!![]}]),db[_0x5e50ef(0xf4)][_0x5e50ef(0x122)](_0x569c41);})[_0x5953a8(0xf6)](function(_0x219cf3){const _0x313df2=_0x5953a8;return _0x59ad76[_0x313df2(0xff)]=_0x219cf3,_0x59ad76;})[_0x5953a8(0xf6)](respondWithFilteredResult(_0x2ad7ed,_0x569c41))[_0x5953a8(0x118)](handleError(_0x2ad7ed,null));},exports[a460_0x1f1241(0xfa)]=function(_0x5231a5,_0x1c8d0c){const _0x31dc97=a460_0x1f1241;let _0x53ffc4={'raw':!![],'where':{'id':_0x5231a5[_0x31dc97(0x123)]['id']}};const _0x354e78={};return _0x354e78['model']=_[_0x31dc97(0x124)](db[_0x31dc97(0xf4)][_0x31dc97(0x121)]),_0x354e78[_0x31dc97(0xfb)]=_[_0x31dc97(0x124)](_0x5231a5[_0x31dc97(0xfb)]),_0x354e78[_0x31dc97(0x119)]=_[_0x31dc97(0x11e)](_0x354e78['model'],_0x354e78[_0x31dc97(0xfb)]),_0x53ffc4[_0x31dc97(0x10e)]=_[_0x31dc97(0x11e)](_0x354e78[_0x31dc97(0x100)],qs[_0x31dc97(0x10b)](_0x5231a5['query']['fields'])),_0x53ffc4[_0x31dc97(0x10e)]=_0x53ffc4[_0x31dc97(0x10e)][_0x31dc97(0xfd)]?_0x53ffc4['attributes']:_0x354e78['model'],_0x5231a5[_0x31dc97(0xfb)][_0x31dc97(0xfe)]&&(_0x53ffc4[_0x31dc97(0x108)]=[{'all':!![]}]),_0x53ffc4=_[_0x31dc97(0x11f)]({},_0x53ffc4,_0x5231a5[_0x31dc97(0x105)]),db['JscriptyQuestionReport'][_0x31dc97(0x127)](_0x53ffc4)['then'](handleEntityNotFound(_0x1c8d0c,null))['then'](respondWithResult(_0x1c8d0c,null))[_0x31dc97(0x118)](handleError(_0x1c8d0c,null));},exports[a460_0x1f1241(0x109)]=function(_0x7a0f19,_0x4cea6a){const _0xc5e17f=a460_0x1f1241;return db['JscriptyQuestionReport'][_0xc5e17f(0x109)](_0x7a0f19[_0xc5e17f(0x11d)],{})[_0xc5e17f(0xf6)](respondWithResult(_0x4cea6a,0xc9))[_0xc5e17f(0x118)](handleError(_0x4cea6a,null));},exports[a460_0x1f1241(0x10c)]=function(_0x442a5a,_0x34aca3){const _0x25e1da=a460_0x1f1241;return _0x442a5a[_0x25e1da(0x11d)]['id']&&delete _0x442a5a[_0x25e1da(0x11d)]['id'],db[_0x25e1da(0xf4)]['findOne']({'where':{'id':_0x442a5a['params']['id']}})[_0x25e1da(0xf6)](handleEntityNotFound(_0x34aca3,null))[_0x25e1da(0xf6)](saveUpdates(_0x442a5a[_0x25e1da(0x11d)],null))[_0x25e1da(0xf6)](respondWithResult(_0x34aca3,null))['catch'](handleError(_0x34aca3,null));},exports['destroy']=function(_0x371f62,_0x32d03f){const _0x328d36=a460_0x1f1241;return db[_0x328d36(0xf4)][_0x328d36(0x127)]({'where':{'id':_0x371f62[_0x328d36(0x123)]['id']}})[_0x328d36(0xf6)](handleEntityNotFound(_0x32d03f,null))['then'](removeEntity(_0x32d03f,null))[_0x328d36(0x118)](handleError(_0x32d03f,null));},exports[a460_0x1f1241(0x120)]=function(_0x2c0b37,_0x1c8bbc){const _0x42487a=a460_0x1f1241;return db[_0x42487a(0xf4)][_0x42487a(0x120)]()['then'](respondWithResult(_0x1c8bbc,null))['catch'](handleError(_0x1c8bbc,null));}; \ No newline at end of file +const a460_0x2e0a=['VIRTUAL','findAll','length','then','sendStatus','lodash','body','params','create','rows','fields','api','merge','limit','catch','status','update','model','sort','describe','error','JscriptyQuestionReport','attributes','options','stack','Content-Range','count','keys','show','name','where','end','order','includeAll','nolimit','json','destroy','send','map','offset','rawAttributes','like','intersection','sequelize','query','findOne','filter','set','filters','key','include','undefined','pick'];(function(_0x55326a,_0x5736ca){const _0x2e0adc=function(_0x5ad2ed){while(--_0x5ad2ed){_0x55326a['push'](_0x55326a['shift']());}};_0x2e0adc(++_0x5736ca);}(a460_0x2e0a,0x15c));const a460_0x5ad2=function(_0x55326a,_0x5736ca){_0x55326a=_0x55326a-0x18a;let _0x2e0adc=a460_0x2e0a[_0x55326a];return _0x2e0adc;};const a460_0x143bcc=a460_0x5ad2;'use strict';const _=require(a460_0x143bcc(0x1a6)),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(a460_0x143bcc(0x1ac)),{db}=require('../../mysqldb'),{Op}=require(a460_0x143bcc(0x197));function respondWithResult(_0x3f8c1f,_0x58869d){return _0x58869d=_0x58869d||0xc8,function(_0x1ad8dc){const _0x10f36d=a460_0x5ad2;if(_0x1ad8dc)return _0x3f8c1f[_0x10f36d(0x1b0)](_0x58869d)['json'](_0x1ad8dc);};}function respondWithFilteredResult(_0x4eb2b9,_0x5f0005){return function(_0x1b4eb5){const _0x560bd1=a460_0x5ad2;if(_0x1b4eb5){const _0x54e071=_0x1b4eb5[_0x560bd1(0x1bb)],_0x39109b=_0x5f0005[_0x560bd1(0x193)];let _0x3d451f=_0x5f0005[_0x560bd1(0x193)]+_0x5f0005[_0x560bd1(0x1ae)],_0x51e155;return _0x3d451f>=_0x54e071?(_0x3d451f=_0x54e071,_0x51e155=0xc8):_0x51e155=0xce,_0x4eb2b9[_0x560bd1(0x1b0)](_0x51e155),_0x4eb2b9[_0x560bd1(0x19b)](_0x560bd1(0x1ba),_0x39109b+'-'+_0x3d451f+'/'+_0x54e071)[_0x560bd1(0x18f)](_0x1b4eb5);}return null;};}function saveUpdates(_0x5ef4a2){return function(_0x140052){const _0x2398b3=a460_0x5ad2;if(_0x140052)return _0x140052['update'](_0x5ef4a2)[_0x2398b3(0x1a4)](function(_0x335e9a){return _0x335e9a;});return null;};}function removeEntity(_0x501248){return function(_0xf85e44){const _0x454fe8=a460_0x5ad2;if(_0xf85e44)return _0xf85e44['destroy']()[_0x454fe8(0x1a4)](function(){const _0x26ff4a=_0x454fe8;_0x501248['status'](0xcc)[_0x26ff4a(0x18b)]();});};}function handleEntityNotFound(_0x5616cc){return function(_0xdc3e5a){const _0x2d24c3=a460_0x5ad2;return!_0xdc3e5a&&_0x5616cc[_0x2d24c3(0x1a5)](0x194),_0xdc3e5a;};}function handleError(_0x45c6cb,_0x3e0141){return _0x3e0141=_0x3e0141||0x1f4,function(_0xf3d636){const _0x4cd745=a460_0x5ad2;logger[_0x4cd745(0x1b5)](_0xf3d636[_0x4cd745(0x1b9)]),_0xf3d636[_0x4cd745(0x1be)]&&delete _0xf3d636[_0x4cd745(0x1be)],_0x45c6cb[_0x4cd745(0x1b0)](_0x3e0141)[_0x4cd745(0x191)](_0xf3d636);};}exports['index']=function(_0x34aeac,_0x1f7877){const _0x770b4b=a460_0x143bcc;let _0x11cae7={};const _0x9a47a3={},_0x34a5ea={'count':0x0,'rows':[]},_0x1a5280=_[_0x770b4b(0x192)](db[_0x770b4b(0x1b6)][_0x770b4b(0x194)],function(_0x46d10a){const _0x1c9fb4=_0x770b4b;return{'name':_0x46d10a['fieldName'],'type':_0x46d10a['type'][_0x1c9fb4(0x19d)]};});_0x9a47a3[_0x770b4b(0x1b2)]=_['map'](_0x1a5280,'name'),_0x9a47a3[_0x770b4b(0x198)]=_[_0x770b4b(0x1bc)](_0x34aeac[_0x770b4b(0x198)]),_0x9a47a3[_0x770b4b(0x19c)]=_['intersection'](_0x9a47a3[_0x770b4b(0x1b2)],_0x9a47a3[_0x770b4b(0x198)]),_0x11cae7['attributes']=_[_0x770b4b(0x196)](_0x9a47a3[_0x770b4b(0x1b2)],qs[_0x770b4b(0x1ab)](_0x34aeac[_0x770b4b(0x198)][_0x770b4b(0x1ab)])),_0x11cae7[_0x770b4b(0x1b7)]=_0x11cae7[_0x770b4b(0x1b7)][_0x770b4b(0x1a3)]?_0x11cae7[_0x770b4b(0x1b7)]:_0x9a47a3[_0x770b4b(0x1b2)];typeof _0x34aeac[_0x770b4b(0x198)][_0x770b4b(0x18e)]===_0x770b4b(0x19f)&&(_0x11cae7['limit']=qs[_0x770b4b(0x1ae)](_0x34aeac[_0x770b4b(0x198)][_0x770b4b(0x1ae)]),_0x11cae7[_0x770b4b(0x193)]=qs[_0x770b4b(0x193)](_0x34aeac[_0x770b4b(0x198)]['offset']));_0x11cae7[_0x770b4b(0x18c)]=qs[_0x770b4b(0x1b3)](_0x34aeac[_0x770b4b(0x198)]['sort']),_0x11cae7['where']=qs[_0x770b4b(0x19c)](_[_0x770b4b(0x1a0)](_0x34aeac[_0x770b4b(0x198)],_0x9a47a3[_0x770b4b(0x19c)]),_0x1a5280);_0x34aeac['query']['filter']&&(_0x11cae7[_0x770b4b(0x18a)]=_['merge'](_0x11cae7['where'],{[Op['or']]:_[_0x770b4b(0x192)](_0x1a5280,function(_0x301a34){const _0x20f446=_0x770b4b;if(_0x301a34['type']!==_0x20f446(0x1a1)){const _0x5d3d2f={};return _0x5d3d2f[_0x301a34['name']]={[Op[_0x20f446(0x195)]]:'%'+_0x34aeac[_0x20f446(0x198)][_0x20f446(0x19a)]+'%'},_0x5d3d2f;}})}));_0x11cae7=_[_0x770b4b(0x1ad)]({},_0x11cae7,_0x34aeac['options']);const _0x4b2d49={'where':_0x11cae7['where']};return db[_0x770b4b(0x1b6)]['count'](_0x4b2d49)[_0x770b4b(0x1a4)](function(_0x534b5f){const _0x119b40=_0x770b4b;return _0x34a5ea['count']=_0x534b5f,_0x34aeac['query'][_0x119b40(0x18d)]&&(_0x11cae7[_0x119b40(0x19e)]=[{'all':!![]}]),db[_0x119b40(0x1b6)][_0x119b40(0x1a2)](_0x11cae7);})[_0x770b4b(0x1a4)](function(_0x287f68){const _0xe90f62=_0x770b4b;return _0x34a5ea[_0xe90f62(0x1aa)]=_0x287f68,_0x34a5ea;})[_0x770b4b(0x1a4)](respondWithFilteredResult(_0x1f7877,_0x11cae7))[_0x770b4b(0x1af)](handleError(_0x1f7877,null));},exports[a460_0x143bcc(0x1bd)]=function(_0x4a9687,_0x2f8a28){const _0x371c29=a460_0x143bcc;let _0x34ea23={'raw':!![],'where':{'id':_0x4a9687[_0x371c29(0x1a8)]['id']}};const _0x1f0e69={};return _0x1f0e69[_0x371c29(0x1b2)]=_[_0x371c29(0x1bc)](db[_0x371c29(0x1b6)]['rawAttributes']),_0x1f0e69[_0x371c29(0x198)]=_[_0x371c29(0x1bc)](_0x4a9687[_0x371c29(0x198)]),_0x1f0e69[_0x371c29(0x19c)]=_[_0x371c29(0x196)](_0x1f0e69[_0x371c29(0x1b2)],_0x1f0e69[_0x371c29(0x198)]),_0x34ea23['attributes']=_[_0x371c29(0x196)](_0x1f0e69[_0x371c29(0x1b2)],qs[_0x371c29(0x1ab)](_0x4a9687[_0x371c29(0x198)][_0x371c29(0x1ab)])),_0x34ea23[_0x371c29(0x1b7)]=_0x34ea23[_0x371c29(0x1b7)][_0x371c29(0x1a3)]?_0x34ea23[_0x371c29(0x1b7)]:_0x1f0e69[_0x371c29(0x1b2)],_0x4a9687[_0x371c29(0x198)][_0x371c29(0x18d)]&&(_0x34ea23['include']=[{'all':!![]}]),_0x34ea23=_[_0x371c29(0x1ad)]({},_0x34ea23,_0x4a9687[_0x371c29(0x1b8)]),db[_0x371c29(0x1b6)][_0x371c29(0x199)](_0x34ea23)[_0x371c29(0x1a4)](handleEntityNotFound(_0x2f8a28,null))[_0x371c29(0x1a4)](respondWithResult(_0x2f8a28,null))[_0x371c29(0x1af)](handleError(_0x2f8a28,null));},exports[a460_0x143bcc(0x1a9)]=function(_0x4ea340,_0x5f55f8){const _0x16ff9c=a460_0x143bcc;return db[_0x16ff9c(0x1b6)][_0x16ff9c(0x1a9)](_0x4ea340[_0x16ff9c(0x1a7)],{})['then'](respondWithResult(_0x5f55f8,0xc9))[_0x16ff9c(0x1af)](handleError(_0x5f55f8,null));},exports[a460_0x143bcc(0x1b1)]=function(_0xc0cdc8,_0xaf325e){const _0x50bf6c=a460_0x143bcc;return _0xc0cdc8[_0x50bf6c(0x1a7)]['id']&&delete _0xc0cdc8[_0x50bf6c(0x1a7)]['id'],db[_0x50bf6c(0x1b6)][_0x50bf6c(0x199)]({'where':{'id':_0xc0cdc8['params']['id']}})['then'](handleEntityNotFound(_0xaf325e,null))[_0x50bf6c(0x1a4)](saveUpdates(_0xc0cdc8[_0x50bf6c(0x1a7)],null))[_0x50bf6c(0x1a4)](respondWithResult(_0xaf325e,null))['catch'](handleError(_0xaf325e,null));},exports[a460_0x143bcc(0x190)]=function(_0x484e9b,_0x328b5f){const _0x46b981=a460_0x143bcc;return db['JscriptyQuestionReport']['findOne']({'where':{'id':_0x484e9b['params']['id']}})['then'](handleEntityNotFound(_0x328b5f,null))[_0x46b981(0x1a4)](removeEntity(_0x328b5f,null))['catch'](handleError(_0x328b5f,null));},exports['describe']=function(_0x5e238f,_0x1913dc){const _0x5520ce=a460_0x143bcc;return db[_0x5520ce(0x1b6)][_0x5520ce(0x1b4)]()[_0x5520ce(0x1a4)](respondWithResult(_0x1913dc,null))[_0x5520ce(0x1af)](handleError(_0x1913dc,null));}; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js index 91f49d6..7d6eefc 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js @@ -1 +1 @@ -const a461_0x4b13=['sequelize','./jscriptyQuestionReport.options','JscriptyQuestionReport','function','./jscriptyQuestionReport.attributes','init','exports'];(function(_0x5a6215,_0x1e6b88){const _0x4b13d4=function(_0x26e43b){while(--_0x26e43b){_0x5a6215['push'](_0x5a6215['shift']());}};_0x4b13d4(++_0x1e6b88);}(a461_0x4b13,0xc4));const a461_0x26e4=function(_0x5a6215,_0x1e6b88){_0x5a6215=_0x5a6215-0x143;let _0x4b13d4=a461_0x4b13[_0x5a6215];return _0x4b13d4;};const a461_0x3f4e1a=a461_0x26e4;'use strict';const {Model}=require(a461_0x3f4e1a(0x143)),{attributes}=require(a461_0x3f4e1a(0x147)),{options}=require(a461_0x3f4e1a(0x144));class JscriptyQuestionReport extends Model{}function init(_0x319860,_0x1b9c34){const _0x4cd72d=a461_0x3f4e1a,_0x4c810b=options(_0x319860),_0x5c1035=typeof _0x1b9c34===_0x4cd72d(0x146)?_0x1b9c34(_0x4c810b):_0x4c810b;return JscriptyQuestionReport[_0x4cd72d(0x148)](attributes,_0x5c1035),JscriptyQuestionReport;}module[a461_0x3f4e1a(0x149)][a461_0x3f4e1a(0x145)]=JscriptyQuestionReport,module['exports'][a461_0x3f4e1a(0x148)]=init; \ No newline at end of file +const a461_0x1e32=['function','sequelize','./jscriptyQuestionReport.options','./jscriptyQuestionReport.attributes','exports'];(function(_0x400153,_0x4b6144){const _0x1e324b=function(_0x490154){while(--_0x490154){_0x400153['push'](_0x400153['shift']());}};_0x1e324b(++_0x4b6144);}(a461_0x1e32,0x1ce));const a461_0x4901=function(_0x400153,_0x4b6144){_0x400153=_0x400153-0x119;let _0x1e324b=a461_0x1e32[_0x400153];return _0x1e324b;};const a461_0x5691a9=a461_0x4901;'use strict';const {Model}=require(a461_0x5691a9(0x11d)),{attributes}=require(a461_0x5691a9(0x11a)),{options}=require(a461_0x5691a9(0x119));class JscriptyQuestionReport extends Model{}function init(_0x2451e3,_0x39c4cb){const _0x475e49=a461_0x5691a9,_0x174abb=options(_0x2451e3),_0x23dd4f=typeof _0x39c4cb===_0x475e49(0x11c)?_0x39c4cb(_0x174abb):_0x174abb;return JscriptyQuestionReport['init'](attributes,_0x23dd4f),JscriptyQuestionReport;}module[a461_0x5691a9(0x11b)]['JscriptyQuestionReport']=JscriptyQuestionReport,module[a461_0x5691a9(0x11b)]['init']=init; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.options.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.options.js index b3e6a04..9665e33 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.options.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.options.js @@ -1 +1 @@ -var a462_0x354d=['exports','report_jscripty_questions','options'];(function(_0x19ee17,_0x5a1aa8){var _0x354d3f=function(_0x275130){while(--_0x275130){_0x19ee17['push'](_0x19ee17['shift']());}};_0x354d3f(++_0x5a1aa8);}(a462_0x354d,0x10f));var a462_0x2751=function(_0x19ee17,_0x5a1aa8){_0x19ee17=_0x19ee17-0xd7;var _0x354d3f=a462_0x354d[_0x19ee17];return _0x354d3f;};var a462_0x12603d=a462_0x2751;function options(_0x4b6b4e){var _0x2c8eea=a462_0x2751;return{'sequelize':_0x4b6b4e,'tableName':_0x2c8eea(0xd7),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a462_0x12603d(0xd9)][a462_0x12603d(0xd8)]=options; \ No newline at end of file +var a462_0x14d0=['options','exports','report_jscripty_questions'];(function(_0x154c5c,_0x3de6f9){var _0x14d025=function(_0x1d5b04){while(--_0x1d5b04){_0x154c5c['push'](_0x154c5c['shift']());}};_0x14d025(++_0x3de6f9);}(a462_0x14d0,0xa2));var a462_0x1d5b=function(_0x154c5c,_0x3de6f9){_0x154c5c=_0x154c5c-0x1d2;var _0x14d025=a462_0x14d0[_0x154c5c];return _0x14d025;};var a462_0x4c5c40=a462_0x1d5b;function options(_0x3b18f0){var _0x11c431=a462_0x1d5b;return{'sequelize':_0x3b18f0,'tableName':_0x11c431(0x1d4),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a462_0x4c5c40(0x1d3)][a462_0x4c5c40(0x1d2)]=options; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/index.js b/server/api/jscriptySessionReport/index.js index f8713b2..67667cf 100644 --- a/server/api/jscriptySessionReport/index.js +++ b/server/api/jscriptySessionReport/index.js @@ -1 +1 @@ -const a463_0x3d0b=['show','get','../../components/auth/service','update','/:id','delete','express','index','/:id/questions','describe','isAuthenticated','create','exports','post'];(function(_0x2890d2,_0xeb033){const _0x3d0b81=function(_0x5c6bbb){while(--_0x5c6bbb){_0x2890d2['push'](_0x2890d2['shift']());}};_0x3d0b81(++_0xeb033);}(a463_0x3d0b,0x6d));const a463_0x5c6b=function(_0x2890d2,_0xeb033){_0x2890d2=_0x2890d2-0x159;let _0x3d0b81=a463_0x3d0b[_0x2890d2];return _0x3d0b81;};const a463_0x578d74=a463_0x5c6b;'use strict';const express=require(a463_0x578d74(0x162)),router=express['Router'](),auth=require(a463_0x578d74(0x15e)),controller=require('./jscriptySessionReport.controller');router['get']('/',auth['isAuthenticated'](),controller[a463_0x578d74(0x163)]),router[a463_0x578d74(0x15d)]('/describe',auth[a463_0x578d74(0x166)](),controller[a463_0x578d74(0x165)]),router['get'](a463_0x578d74(0x160),auth[a463_0x578d74(0x166)](),controller[a463_0x578d74(0x15c)]),router[a463_0x578d74(0x15d)](a463_0x578d74(0x164),auth[a463_0x578d74(0x166)](),controller['getQuestions']),router[a463_0x578d74(0x15b)]('/',auth[a463_0x578d74(0x166)](),controller[a463_0x578d74(0x159)]),router['put'](a463_0x578d74(0x160),auth['isAuthenticated'](),controller[a463_0x578d74(0x15f)]),router[a463_0x578d74(0x161)](a463_0x578d74(0x160),auth['isAuthenticated'](),controller['destroy']),module[a463_0x578d74(0x15a)]=router; \ No newline at end of file +const a463_0x4af2=['index','describe','/:id/questions','update','exports','../../components/auth/service','getQuestions','Router','get','isAuthenticated','post','create','/:id','express','/describe'];(function(_0x52a795,_0x42945a){const _0x4af224=function(_0x333e55){while(--_0x333e55){_0x52a795['push'](_0x52a795['shift']());}};_0x4af224(++_0x42945a);}(a463_0x4af2,0xc2));const a463_0x333e=function(_0x52a795,_0x42945a){_0x52a795=_0x52a795-0x163;let _0x4af224=a463_0x4af2[_0x52a795];return _0x4af224;};const a463_0x3eea62=a463_0x333e;'use strict';const express=require(a463_0x3eea62(0x171)),router=express[a463_0x3eea62(0x16b)](),auth=require(a463_0x3eea62(0x169)),controller=require('./jscriptySessionReport.controller');router[a463_0x3eea62(0x16c)]('/',auth[a463_0x3eea62(0x16d)](),controller[a463_0x3eea62(0x164)]),router[a463_0x3eea62(0x16c)](a463_0x3eea62(0x163),auth[a463_0x3eea62(0x16d)](),controller[a463_0x3eea62(0x165)]),router['get']('/:id',auth[a463_0x3eea62(0x16d)](),controller['show']),router[a463_0x3eea62(0x16c)](a463_0x3eea62(0x166),auth[a463_0x3eea62(0x16d)](),controller[a463_0x3eea62(0x16a)]),router[a463_0x3eea62(0x16e)]('/',auth['isAuthenticated'](),controller[a463_0x3eea62(0x16f)]),router['put'](a463_0x3eea62(0x170),auth[a463_0x3eea62(0x16d)](),controller[a463_0x3eea62(0x167)]),router['delete'](a463_0x3eea62(0x170),auth[a463_0x3eea62(0x16d)](),controller['destroy']),module[a463_0x3eea62(0x168)]=router; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js b/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js index aa58bdc..e5dc472 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js @@ -1 +1 @@ -const a464_0x24f9=['starttime','YYYY-MM-DD\x20HH:mm:ss','attributes','setDataValue','exports','STRING','endtime','format','DATE'];(function(_0x743868,_0x573073){const _0x24f92b=function(_0x510cbf){while(--_0x510cbf){_0x743868['push'](_0x743868['shift']());}};_0x24f92b(++_0x573073);}(a464_0x24f9,0x94));const a464_0x510c=function(_0x743868,_0x573073){_0x743868=_0x743868-0xdc;let _0x24f92b=a464_0x24f9[_0x743868];return _0x24f92b;};const a464_0x479f4e=a464_0x510c;'use strict';const moment=require('moment'),{DataTypes}=require('sequelize'),attributes={'starttime':{'type':DataTypes[a464_0x479f4e(0xe0)],'set':function(_0x3e13cb){const _0x57049a=a464_0x479f4e;this[_0x57049a(0xe4)](_0x57049a(0xe1),_0x3e13cb),this['setDataValue'](_0x57049a(0xde),moment()[_0x57049a(0xdf)](_0x57049a(0xe2)));}},'endtime':{'type':DataTypes['DATE']},'membername':{'type':DataTypes['STRING']},'projectname':{'type':DataTypes[a464_0x479f4e(0xdd)]},'queue':{'type':DataTypes['STRING']},'uniqueid':{'type':DataTypes[a464_0x479f4e(0xdd)]},'calleridname':{'type':DataTypes[a464_0x479f4e(0xdd)]},'calleridnum':{'type':DataTypes[a464_0x479f4e(0xdd)]},'completed':{'type':DataTypes['BOOLEAN'],'defaultValue':![]}};module[a464_0x479f4e(0xdc)][a464_0x479f4e(0xe3)]=attributes; \ No newline at end of file +const a464_0x2e92=['STRING','attributes','sequelize','format','moment','DATE'];(function(_0x193a11,_0x33140c){const _0x2e92e7=function(_0x4b83f8){while(--_0x4b83f8){_0x193a11['push'](_0x193a11['shift']());}};_0x2e92e7(++_0x33140c);}(a464_0x2e92,0xce));const a464_0x4b83=function(_0x193a11,_0x33140c){_0x193a11=_0x193a11-0x9a;let _0x2e92e7=a464_0x2e92[_0x193a11];return _0x2e92e7;};const a464_0x59d8ba=a464_0x4b83;'use strict';const moment=require(a464_0x59d8ba(0x9c)),{DataTypes}=require(a464_0x59d8ba(0x9a)),attributes={'starttime':{'type':DataTypes[a464_0x59d8ba(0x9d)],'set':function(_0x10b195){const _0x5480ec=a464_0x59d8ba;this['setDataValue']('starttime',_0x10b195),this['setDataValue']('endtime',moment()[_0x5480ec(0x9b)]('YYYY-MM-DD\x20HH:mm:ss'));}},'endtime':{'type':DataTypes['DATE']},'membername':{'type':DataTypes['STRING']},'projectname':{'type':DataTypes[a464_0x59d8ba(0x9e)]},'queue':{'type':DataTypes[a464_0x59d8ba(0x9e)]},'uniqueid':{'type':DataTypes[a464_0x59d8ba(0x9e)]},'calleridname':{'type':DataTypes[a464_0x59d8ba(0x9e)]},'calleridnum':{'type':DataTypes['STRING']},'completed':{'type':DataTypes['BOOLEAN'],'defaultValue':![]}};module['exports'][a464_0x59d8ba(0x9f)]=attributes; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.controller.js b/server/api/jscriptySessionReport/jscriptySessionReport.controller.js index d3a158c..784a74f 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.controller.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.controller.js @@ -1 +1 @@ -const a465_0x1058=['where','show','fields','JscriptyQuestionReport','length','findOne','json','sort','create','sequelize','query','lodash','end','intersection','attributes','set','findAll','undefined','destroy','catch','params','options','rawAttributes','update','pick','status','type','includeAll','key','sendStatus','fieldName','body','map','stack','SessionId','model','rows','JscriptySessionReport','describe','offset','name','filter','order','merge','send','../../components/parsers/qs','../../mysqldb','../../config/logger','Content-Range','limit','index','keys','filters','nolimit','then','count','api','VIRTUAL','include','like'];(function(_0x308e7a,_0x366e69){const _0x10587b=function(_0x5a2af3){while(--_0x5a2af3){_0x308e7a['push'](_0x308e7a['shift']());}};_0x10587b(++_0x366e69);}(a465_0x1058,0x1b3));const a465_0x5a2a=function(_0x308e7a,_0x366e69){_0x308e7a=_0x308e7a-0xd6;let _0x10587b=a465_0x1058[_0x308e7a];return _0x10587b;};const a465_0x40b2e4=a465_0x5a2a;'use strict';const _=require(a465_0x40b2e4(0x10e)),qs=require(a465_0x40b2e4(0xf4)),logger=require(a465_0x40b2e4(0xf6))(a465_0x40b2e4(0xff)),{db}=require(a465_0x40b2e4(0xf5)),{Op}=require(a465_0x40b2e4(0x10c));function respondWithResult(_0x5ec702,_0x4e6716){return _0x4e6716=_0x4e6716||0xc8,function(_0x51f866){const _0x2510b3=a465_0x5a2a;if(_0x51f866)return _0x5ec702[_0x2510b3(0xe0)](_0x4e6716)[_0x2510b3(0x109)](_0x51f866);};}function respondWithFilteredResult(_0x5a0738,_0x527661){return function(_0x35c585){const _0xa597cc=a465_0x5a2a;if(_0x35c585){const _0x2e551c=_0x35c585[_0xa597cc(0xfe)],_0x34615c=_0x527661[_0xa597cc(0xee)];let _0x2904e7=_0x527661[_0xa597cc(0xee)]+_0x527661['limit'],_0x2eeefa;return _0x2904e7>=_0x2e551c?(_0x2904e7=_0x2e551c,_0x2eeefa=0xc8):_0x2eeefa=0xce,_0x5a0738[_0xa597cc(0xe0)](_0x2eeefa),_0x5a0738[_0xa597cc(0xd6)](_0xa597cc(0xf7),_0x34615c+'-'+_0x2904e7+'/'+_0x2e551c)[_0xa597cc(0x109)](_0x35c585);}return null;};}function saveUpdates(_0x2f0ebe){return function(_0x1d52ce){if(_0x1d52ce)return _0x1d52ce['update'](_0x2f0ebe)['then'](function(_0x4bfdc7){return _0x4bfdc7;});return null;};}function removeEntity(_0x387399){return function(_0x4d4c68){const _0x553160=a465_0x5a2a;if(_0x4d4c68)return _0x4d4c68[_0x553160(0xd9)]()[_0x553160(0xfd)](function(){const _0x23ec69=_0x553160;_0x387399['status'](0xcc)[_0x23ec69(0x10f)]();});};}function handleEntityNotFound(_0x102e5e){return function(_0x4ab125){const _0xb89416=a465_0x5a2a;return!_0x4ab125&&_0x102e5e[_0xb89416(0xe4)](0x194),_0x4ab125;};}function handleError(_0x2b6ce9,_0x5090bd){return _0x5090bd=_0x5090bd||0x1f4,function(_0x368652){const _0x194eca=a465_0x5a2a;logger['error'](_0x368652[_0x194eca(0xe8)]),_0x368652[_0x194eca(0xef)]&&delete _0x368652[_0x194eca(0xef)],_0x2b6ce9['status'](_0x5090bd)[_0x194eca(0xf3)](_0x368652);};}exports[a465_0x40b2e4(0xf9)]=function(_0x1e2d20,_0x42ad5d){const _0x208e54=a465_0x40b2e4;let _0x371a6a={};const _0x53a567={},_0x5d9fa3={'count':0x0,'rows':[]},_0x9f182f=_[_0x208e54(0xe7)](db[_0x208e54(0xec)][_0x208e54(0xdd)],function(_0x54192f){const _0x53b038=_0x208e54;return{'name':_0x54192f[_0x53b038(0xe5)],'type':_0x54192f['type'][_0x53b038(0xe3)]};});_0x53a567[_0x208e54(0xea)]=_['map'](_0x9f182f,_0x208e54(0xef)),_0x53a567[_0x208e54(0x10d)]=_['keys'](_0x1e2d20[_0x208e54(0x10d)]),_0x53a567[_0x208e54(0xfb)]=_['intersection'](_0x53a567['model'],_0x53a567[_0x208e54(0x10d)]),_0x371a6a[_0x208e54(0x111)]=_['intersection'](_0x53a567[_0x208e54(0xea)],qs['fields'](_0x1e2d20[_0x208e54(0x10d)][_0x208e54(0x105)])),_0x371a6a['attributes']=_0x371a6a[_0x208e54(0x111)]['length']?_0x371a6a[_0x208e54(0x111)]:_0x53a567[_0x208e54(0xea)];typeof _0x1e2d20[_0x208e54(0x10d)][_0x208e54(0xfc)]===_0x208e54(0xd8)&&(_0x371a6a['limit']=qs[_0x208e54(0xf8)](_0x1e2d20[_0x208e54(0x10d)][_0x208e54(0xf8)]),_0x371a6a[_0x208e54(0xee)]=qs[_0x208e54(0xee)](_0x1e2d20[_0x208e54(0x10d)]['offset']));_0x371a6a[_0x208e54(0xf1)]=qs[_0x208e54(0x10a)](_0x1e2d20[_0x208e54(0x10d)][_0x208e54(0x10a)]),_0x371a6a[_0x208e54(0x103)]=qs['filters'](_[_0x208e54(0xdf)](_0x1e2d20[_0x208e54(0x10d)],_0x53a567['filters']),_0x9f182f);_0x1e2d20[_0x208e54(0x10d)][_0x208e54(0xf0)]&&(_0x371a6a[_0x208e54(0x103)]=_[_0x208e54(0xf2)](_0x371a6a[_0x208e54(0x103)],{[Op['or']]:_[_0x208e54(0xe7)](_0x9f182f,function(_0x3f1fef){const _0xec7361=_0x208e54;if(_0x3f1fef[_0xec7361(0xe1)]!==_0xec7361(0x100)){const _0x34aedf={};return _0x34aedf[_0x3f1fef[_0xec7361(0xef)]]={[Op[_0xec7361(0x102)]]:'%'+_0x1e2d20[_0xec7361(0x10d)]['filter']+'%'},_0x34aedf;}})}));_0x371a6a=_[_0x208e54(0xf2)]({},_0x371a6a,_0x1e2d20[_0x208e54(0xdc)]);const _0x1a7b0c={'where':_0x371a6a['where']};return db[_0x208e54(0xec)][_0x208e54(0xfe)](_0x1a7b0c)['then'](function(_0x1cf482){const _0x397931=_0x208e54;return _0x5d9fa3['count']=_0x1cf482,_0x1e2d20[_0x397931(0x10d)][_0x397931(0xe2)]&&(_0x371a6a[_0x397931(0x101)]=[{'all':!![]}]),db[_0x397931(0xec)]['findAll'](_0x371a6a);})[_0x208e54(0xfd)](function(_0x152c89){const _0x9704a4=_0x208e54;return _0x5d9fa3[_0x9704a4(0xeb)]=_0x152c89,_0x5d9fa3;})[_0x208e54(0xfd)](respondWithFilteredResult(_0x42ad5d,_0x371a6a))['catch'](handleError(_0x42ad5d,null));},exports[a465_0x40b2e4(0x104)]=function(_0x181f83,_0x54782a){const _0x3c1b97=a465_0x40b2e4;let _0x2127dc={'raw':!![],'where':{'id':_0x181f83[_0x3c1b97(0xdb)]['id']}};const _0x426357={};return _0x426357[_0x3c1b97(0xea)]=_['keys'](db[_0x3c1b97(0xec)][_0x3c1b97(0xdd)]),_0x426357[_0x3c1b97(0x10d)]=_[_0x3c1b97(0xfa)](_0x181f83[_0x3c1b97(0x10d)]),_0x426357[_0x3c1b97(0xfb)]=_[_0x3c1b97(0x110)](_0x426357[_0x3c1b97(0xea)],_0x426357[_0x3c1b97(0x10d)]),_0x2127dc[_0x3c1b97(0x111)]=_[_0x3c1b97(0x110)](_0x426357['model'],qs[_0x3c1b97(0x105)](_0x181f83[_0x3c1b97(0x10d)][_0x3c1b97(0x105)])),_0x2127dc[_0x3c1b97(0x111)]=_0x2127dc['attributes'][_0x3c1b97(0x107)]?_0x2127dc[_0x3c1b97(0x111)]:_0x426357[_0x3c1b97(0xea)],_0x181f83[_0x3c1b97(0x10d)][_0x3c1b97(0xe2)]&&(_0x2127dc['include']=[{'all':!![]}]),_0x2127dc=_[_0x3c1b97(0xf2)]({},_0x2127dc,_0x181f83[_0x3c1b97(0xdc)]),db['JscriptySessionReport'][_0x3c1b97(0x108)](_0x2127dc)[_0x3c1b97(0xfd)](handleEntityNotFound(_0x54782a,null))[_0x3c1b97(0xfd)](respondWithResult(_0x54782a,null))[_0x3c1b97(0xda)](handleError(_0x54782a,null));},exports[a465_0x40b2e4(0x10b)]=function(_0x3a2403,_0x3ba8ba){const _0x2f3ab3=a465_0x40b2e4;return db[_0x2f3ab3(0xec)]['create'](_0x3a2403[_0x2f3ab3(0xe6)],{})[_0x2f3ab3(0xfd)](respondWithResult(_0x3ba8ba,0xc9))[_0x2f3ab3(0xda)](handleError(_0x3ba8ba,null));},exports[a465_0x40b2e4(0xde)]=function(_0x3a3ce1,_0x17387e){const _0x3879c6=a465_0x40b2e4;return _0x3a3ce1[_0x3879c6(0xe6)]['id']&&delete _0x3a3ce1[_0x3879c6(0xe6)]['id'],db[_0x3879c6(0xec)]['findOne']({'where':{'id':_0x3a3ce1['params']['id']}})[_0x3879c6(0xfd)](handleEntityNotFound(_0x17387e,null))['then'](saveUpdates(_0x3a3ce1[_0x3879c6(0xe6)],null))[_0x3879c6(0xfd)](respondWithResult(_0x17387e,null))[_0x3879c6(0xda)](handleError(_0x17387e,null));},exports[a465_0x40b2e4(0xd9)]=function(_0x336a6c,_0x2b3e7b){const _0x2a08ac=a465_0x40b2e4;return db[_0x2a08ac(0xec)][_0x2a08ac(0x108)]({'where':{'id':_0x336a6c['params']['id']}})[_0x2a08ac(0xfd)](handleEntityNotFound(_0x2b3e7b,null))[_0x2a08ac(0xfd)](removeEntity(_0x2b3e7b,null))[_0x2a08ac(0xda)](handleError(_0x2b3e7b,null));},exports[a465_0x40b2e4(0xed)]=function(_0x174a27,_0x559a4a){const _0x2d670a=a465_0x40b2e4;return db[_0x2d670a(0xec)]['describe']()[_0x2d670a(0xfd)](respondWithResult(_0x559a4a,null))[_0x2d670a(0xda)](handleError(_0x559a4a,null));},exports['getQuestions']=function(_0x1e6fcf,_0xefbecb){const _0x1b23cd=a465_0x40b2e4;let _0x5bc2ca={'raw':!![],'where':{}};const _0x8904da={},_0x49ad48={'count':0x0,'rows':[]};return db[_0x1b23cd(0xec)][_0x1b23cd(0x108)]({'where':{'id':_0x1e6fcf['params']['id']}})[_0x1b23cd(0xfd)](handleEntityNotFound(_0xefbecb,null))[_0x1b23cd(0xfd)](function(_0x41f372){const _0xfc509e=_0x1b23cd;if(_0x41f372)return _0x8904da[_0xfc509e(0xea)]=_['keys'](db[_0xfc509e(0x106)][_0xfc509e(0xdd)]),_0x8904da[_0xfc509e(0x10d)]=_[_0xfc509e(0xfa)](_0x1e6fcf[_0xfc509e(0x10d)]),_0x8904da['filters']=_['intersection'](_0x8904da[_0xfc509e(0xea)],_0x8904da[_0xfc509e(0x10d)]),_0x5bc2ca[_0xfc509e(0x111)]=_[_0xfc509e(0x110)](_0x8904da[_0xfc509e(0xea)],qs[_0xfc509e(0x105)](_0x1e6fcf[_0xfc509e(0x10d)]['fields'])),_0x5bc2ca[_0xfc509e(0x111)]=_0x5bc2ca[_0xfc509e(0x111)][_0xfc509e(0x107)]?_0x5bc2ca[_0xfc509e(0x111)]:_0x8904da[_0xfc509e(0xea)],typeof _0x1e6fcf[_0xfc509e(0x10d)][_0xfc509e(0xfc)]===_0xfc509e(0xd8)&&(_0x5bc2ca[_0xfc509e(0xf8)]=qs['limit'](_0x1e6fcf['query'][_0xfc509e(0xf8)]),_0x5bc2ca[_0xfc509e(0xee)]=qs[_0xfc509e(0xee)](_0x1e6fcf[_0xfc509e(0x10d)][_0xfc509e(0xee)])),_0x5bc2ca['order']=qs[_0xfc509e(0x10a)](_0x1e6fcf[_0xfc509e(0x10d)][_0xfc509e(0x10a)]),_0x5bc2ca[_0xfc509e(0x103)]=qs['filters'](_[_0xfc509e(0xdf)](_0x1e6fcf['query'],_0x8904da[_0xfc509e(0xfb)])),_0x5bc2ca[_0xfc509e(0x103)][_0xfc509e(0xe9)]=_0x41f372['id'],_0x1e6fcf[_0xfc509e(0x10d)][_0xfc509e(0xf0)]&&(_0x5bc2ca[_0xfc509e(0x103)]=_[_0xfc509e(0xf2)](_0x5bc2ca['where'],{[Op['or']]:_[_0xfc509e(0xe7)](_0x5bc2ca[_0xfc509e(0x111)],function(_0x5aa4a0){const _0x1f7027=_0xfc509e,_0x1d0ce5={};return _0x1d0ce5[_0x5aa4a0]={[Op[_0x1f7027(0x102)]]:'%'+_0x1e6fcf[_0x1f7027(0x10d)][_0x1f7027(0xf0)]+'%'},_0x1d0ce5;})})),_0x5bc2ca=_['merge']({},_0x5bc2ca,_0x1e6fcf[_0xfc509e(0xdc)]),db[_0xfc509e(0x106)][_0xfc509e(0xfe)]({'where':_0x5bc2ca[_0xfc509e(0x103)]})['then'](function(_0x2c9297){const _0x30c033=_0xfc509e;return _0x49ad48[_0x30c033(0xfe)]=_0x2c9297,_0x1e6fcf[_0x30c033(0x10d)][_0x30c033(0xe2)]&&(_0x5bc2ca[_0x30c033(0x101)]=[{'all':!![]}]),db[_0x30c033(0x106)][_0x30c033(0xd7)](_0x5bc2ca);})[_0xfc509e(0xfd)](function(_0x3349e7){const _0xbc5ccc=_0xfc509e;return _0x49ad48[_0xbc5ccc(0xeb)]=_0x3349e7,_0x49ad48;});})[_0x1b23cd(0xfd)](respondWithFilteredResult(_0xefbecb,_0x5bc2ca))[_0x1b23cd(0xda)](handleError(_0xefbecb,null));}; \ No newline at end of file +const a465_0x441a=['json','fields','set','order','count','sequelize','end','send','create','merge','JscriptySessionReport','where','body','includeAll','update','destroy','JscriptyQuestionReport','catch','map','sendStatus','model','SessionId','VIRTUAL','api','name','options','describe','query','rawAttributes','intersection','pick','../../config/logger','attributes','params','type','filter','../../components/parsers/qs','keys','lodash','length','getQuestions','fieldName','status','like','findOne','undefined','then','../../mysqldb','show','sort','filters','nolimit','findAll','rows','Content-Range','offset','limit','include'];(function(_0x35bf8a,_0x547fc8){const _0x441a3f=function(_0x116692){while(--_0x116692){_0x35bf8a['push'](_0x35bf8a['shift']());}};_0x441a3f(++_0x547fc8);}(a465_0x441a,0x12e));const a465_0x1166=function(_0x35bf8a,_0x547fc8){_0x35bf8a=_0x35bf8a-0x10b;let _0x441a3f=a465_0x441a[_0x35bf8a];return _0x441a3f;};const a465_0x4cc80f=a465_0x1166;'use strict';const _=require(a465_0x4cc80f(0x125)),qs=require(a465_0x4cc80f(0x123)),logger=require(a465_0x4cc80f(0x11e))(a465_0x4cc80f(0x116)),{db}=require(a465_0x4cc80f(0x12e)),{Op}=require(a465_0x4cc80f(0x13e));function respondWithResult(_0x4f634d,_0x4daa97){return _0x4daa97=_0x4daa97||0xc8,function(_0x517daa){const _0x4bf77d=a465_0x1166;if(_0x517daa)return _0x4f634d[_0x4bf77d(0x129)](_0x4daa97)[_0x4bf77d(0x139)](_0x517daa);};}function respondWithFilteredResult(_0x1274bf,_0x496dd8){return function(_0x537c1e){const _0x253f18=a465_0x1166;if(_0x537c1e){const _0x2fbceb=_0x537c1e[_0x253f18(0x13d)],_0x5ef6d4=_0x496dd8[_0x253f18(0x136)];let _0x9decc3=_0x496dd8['offset']+_0x496dd8[_0x253f18(0x137)],_0x2c8455;return _0x9decc3>=_0x2fbceb?(_0x9decc3=_0x2fbceb,_0x2c8455=0xc8):_0x2c8455=0xce,_0x1274bf['status'](_0x2c8455),_0x1274bf[_0x253f18(0x13b)](_0x253f18(0x135),_0x5ef6d4+'-'+_0x9decc3+'/'+_0x2fbceb)['json'](_0x537c1e);}return null;};}function saveUpdates(_0x14f2ce){return function(_0x4c8c0b){const _0x3969d5=a465_0x1166;if(_0x4c8c0b)return _0x4c8c0b['update'](_0x14f2ce)[_0x3969d5(0x12d)](function(_0x325509){return _0x325509;});return null;};}function removeEntity(_0x2ca70e){return function(_0x233178){const _0xb09a21=a465_0x1166;if(_0x233178)return _0x233178[_0xb09a21(0x10e)]()[_0xb09a21(0x12d)](function(){const _0x1826f1=_0xb09a21;_0x2ca70e[_0x1826f1(0x129)](0xcc)[_0x1826f1(0x13f)]();});};}function handleEntityNotFound(_0x3159f5){return function(_0x274eaa){const _0x417051=a465_0x1166;return!_0x274eaa&&_0x3159f5[_0x417051(0x112)](0x194),_0x274eaa;};}function handleError(_0x19550d,_0x3bb014){return _0x3bb014=_0x3bb014||0x1f4,function(_0xca259f){const _0x539276=a465_0x1166;logger['error'](_0xca259f['stack']),_0xca259f[_0x539276(0x117)]&&delete _0xca259f['name'],_0x19550d['status'](_0x3bb014)[_0x539276(0x140)](_0xca259f);};}exports['index']=function(_0x2525da,_0x9ffa9b){const _0x5d9275=a465_0x4cc80f;let _0x4ba9f7={};const _0x4a7c42={},_0x3ffea7={'count':0x0,'rows':[]},_0x3948c8=_[_0x5d9275(0x111)](db[_0x5d9275(0x143)]['rawAttributes'],function(_0x273af4){const _0x127bea=_0x5d9275;return{'name':_0x273af4[_0x127bea(0x128)],'type':_0x273af4[_0x127bea(0x121)]['key']};});_0x4a7c42[_0x5d9275(0x113)]=_[_0x5d9275(0x111)](_0x3948c8,_0x5d9275(0x117)),_0x4a7c42[_0x5d9275(0x11a)]=_[_0x5d9275(0x124)](_0x2525da['query']),_0x4a7c42[_0x5d9275(0x131)]=_['intersection'](_0x4a7c42[_0x5d9275(0x113)],_0x4a7c42[_0x5d9275(0x11a)]),_0x4ba9f7['attributes']=_[_0x5d9275(0x11c)](_0x4a7c42['model'],qs[_0x5d9275(0x13a)](_0x2525da['query'][_0x5d9275(0x13a)])),_0x4ba9f7[_0x5d9275(0x11f)]=_0x4ba9f7[_0x5d9275(0x11f)]['length']?_0x4ba9f7['attributes']:_0x4a7c42[_0x5d9275(0x113)];typeof _0x2525da['query'][_0x5d9275(0x132)]==='undefined'&&(_0x4ba9f7[_0x5d9275(0x137)]=qs[_0x5d9275(0x137)](_0x2525da[_0x5d9275(0x11a)][_0x5d9275(0x137)]),_0x4ba9f7[_0x5d9275(0x136)]=qs[_0x5d9275(0x136)](_0x2525da[_0x5d9275(0x11a)][_0x5d9275(0x136)]));_0x4ba9f7[_0x5d9275(0x13c)]=qs[_0x5d9275(0x130)](_0x2525da['query'][_0x5d9275(0x130)]),_0x4ba9f7[_0x5d9275(0x144)]=qs[_0x5d9275(0x131)](_[_0x5d9275(0x11d)](_0x2525da[_0x5d9275(0x11a)],_0x4a7c42[_0x5d9275(0x131)]),_0x3948c8);_0x2525da[_0x5d9275(0x11a)][_0x5d9275(0x122)]&&(_0x4ba9f7[_0x5d9275(0x144)]=_[_0x5d9275(0x142)](_0x4ba9f7[_0x5d9275(0x144)],{[Op['or']]:_[_0x5d9275(0x111)](_0x3948c8,function(_0x54a921){const _0x25640f=_0x5d9275;if(_0x54a921[_0x25640f(0x121)]!==_0x25640f(0x115)){const _0x2c1359={};return _0x2c1359[_0x54a921[_0x25640f(0x117)]]={[Op[_0x25640f(0x12a)]]:'%'+_0x2525da[_0x25640f(0x11a)][_0x25640f(0x122)]+'%'},_0x2c1359;}})}));_0x4ba9f7=_[_0x5d9275(0x142)]({},_0x4ba9f7,_0x2525da[_0x5d9275(0x118)]);const _0x10c3e8={'where':_0x4ba9f7[_0x5d9275(0x144)]};return db[_0x5d9275(0x143)][_0x5d9275(0x13d)](_0x10c3e8)[_0x5d9275(0x12d)](function(_0x326711){const _0x454a1b=_0x5d9275;return _0x3ffea7[_0x454a1b(0x13d)]=_0x326711,_0x2525da['query'][_0x454a1b(0x10c)]&&(_0x4ba9f7['include']=[{'all':!![]}]),db['JscriptySessionReport']['findAll'](_0x4ba9f7);})[_0x5d9275(0x12d)](function(_0x599208){return _0x3ffea7['rows']=_0x599208,_0x3ffea7;})[_0x5d9275(0x12d)](respondWithFilteredResult(_0x9ffa9b,_0x4ba9f7))[_0x5d9275(0x110)](handleError(_0x9ffa9b,null));},exports[a465_0x4cc80f(0x12f)]=function(_0xa47521,_0x59cf20){const _0x27ec5b=a465_0x4cc80f;let _0xf5c93={'raw':!![],'where':{'id':_0xa47521[_0x27ec5b(0x120)]['id']}};const _0x1af71b={};return _0x1af71b[_0x27ec5b(0x113)]=_['keys'](db[_0x27ec5b(0x143)][_0x27ec5b(0x11b)]),_0x1af71b['query']=_[_0x27ec5b(0x124)](_0xa47521['query']),_0x1af71b['filters']=_[_0x27ec5b(0x11c)](_0x1af71b[_0x27ec5b(0x113)],_0x1af71b[_0x27ec5b(0x11a)]),_0xf5c93['attributes']=_[_0x27ec5b(0x11c)](_0x1af71b[_0x27ec5b(0x113)],qs[_0x27ec5b(0x13a)](_0xa47521[_0x27ec5b(0x11a)][_0x27ec5b(0x13a)])),_0xf5c93['attributes']=_0xf5c93[_0x27ec5b(0x11f)][_0x27ec5b(0x126)]?_0xf5c93[_0x27ec5b(0x11f)]:_0x1af71b[_0x27ec5b(0x113)],_0xa47521[_0x27ec5b(0x11a)][_0x27ec5b(0x10c)]&&(_0xf5c93[_0x27ec5b(0x138)]=[{'all':!![]}]),_0xf5c93=_[_0x27ec5b(0x142)]({},_0xf5c93,_0xa47521[_0x27ec5b(0x118)]),db[_0x27ec5b(0x143)][_0x27ec5b(0x12b)](_0xf5c93)['then'](handleEntityNotFound(_0x59cf20,null))[_0x27ec5b(0x12d)](respondWithResult(_0x59cf20,null))[_0x27ec5b(0x110)](handleError(_0x59cf20,null));},exports[a465_0x4cc80f(0x141)]=function(_0x40be16,_0xee879e){const _0x2ca967=a465_0x4cc80f;return db[_0x2ca967(0x143)][_0x2ca967(0x141)](_0x40be16['body'],{})['then'](respondWithResult(_0xee879e,0xc9))['catch'](handleError(_0xee879e,null));},exports[a465_0x4cc80f(0x10d)]=function(_0x5732f1,_0x27ddc7){const _0x3718f1=a465_0x4cc80f;return _0x5732f1[_0x3718f1(0x10b)]['id']&&delete _0x5732f1['body']['id'],db[_0x3718f1(0x143)][_0x3718f1(0x12b)]({'where':{'id':_0x5732f1[_0x3718f1(0x120)]['id']}})[_0x3718f1(0x12d)](handleEntityNotFound(_0x27ddc7,null))[_0x3718f1(0x12d)](saveUpdates(_0x5732f1[_0x3718f1(0x10b)],null))[_0x3718f1(0x12d)](respondWithResult(_0x27ddc7,null))[_0x3718f1(0x110)](handleError(_0x27ddc7,null));},exports[a465_0x4cc80f(0x10e)]=function(_0x329886,_0x4f1cd){const _0x5171b2=a465_0x4cc80f;return db[_0x5171b2(0x143)]['findOne']({'where':{'id':_0x329886['params']['id']}})[_0x5171b2(0x12d)](handleEntityNotFound(_0x4f1cd,null))['then'](removeEntity(_0x4f1cd,null))[_0x5171b2(0x110)](handleError(_0x4f1cd,null));},exports[a465_0x4cc80f(0x119)]=function(_0x132fdc,_0x192781){const _0x1626b5=a465_0x4cc80f;return db[_0x1626b5(0x143)][_0x1626b5(0x119)]()[_0x1626b5(0x12d)](respondWithResult(_0x192781,null))[_0x1626b5(0x110)](handleError(_0x192781,null));},exports[a465_0x4cc80f(0x127)]=function(_0x46fc60,_0x4a556b){const _0x5e35ca=a465_0x4cc80f;let _0x20a310={'raw':!![],'where':{}};const _0x4bd8ae={},_0x2a7b09={'count':0x0,'rows':[]};return db['JscriptySessionReport'][_0x5e35ca(0x12b)]({'where':{'id':_0x46fc60['params']['id']}})[_0x5e35ca(0x12d)](handleEntityNotFound(_0x4a556b,null))[_0x5e35ca(0x12d)](function(_0x184aa6){const _0x36771c=_0x5e35ca;if(_0x184aa6)return _0x4bd8ae[_0x36771c(0x113)]=_['keys'](db['JscriptyQuestionReport'][_0x36771c(0x11b)]),_0x4bd8ae[_0x36771c(0x11a)]=_[_0x36771c(0x124)](_0x46fc60[_0x36771c(0x11a)]),_0x4bd8ae['filters']=_['intersection'](_0x4bd8ae[_0x36771c(0x113)],_0x4bd8ae[_0x36771c(0x11a)]),_0x20a310['attributes']=_[_0x36771c(0x11c)](_0x4bd8ae[_0x36771c(0x113)],qs[_0x36771c(0x13a)](_0x46fc60[_0x36771c(0x11a)][_0x36771c(0x13a)])),_0x20a310[_0x36771c(0x11f)]=_0x20a310[_0x36771c(0x11f)][_0x36771c(0x126)]?_0x20a310[_0x36771c(0x11f)]:_0x4bd8ae[_0x36771c(0x113)],typeof _0x46fc60[_0x36771c(0x11a)][_0x36771c(0x132)]===_0x36771c(0x12c)&&(_0x20a310[_0x36771c(0x137)]=qs[_0x36771c(0x137)](_0x46fc60[_0x36771c(0x11a)]['limit']),_0x20a310['offset']=qs[_0x36771c(0x136)](_0x46fc60['query'][_0x36771c(0x136)])),_0x20a310[_0x36771c(0x13c)]=qs[_0x36771c(0x130)](_0x46fc60['query'][_0x36771c(0x130)]),_0x20a310[_0x36771c(0x144)]=qs[_0x36771c(0x131)](_['pick'](_0x46fc60[_0x36771c(0x11a)],_0x4bd8ae[_0x36771c(0x131)])),_0x20a310[_0x36771c(0x144)][_0x36771c(0x114)]=_0x184aa6['id'],_0x46fc60['query'][_0x36771c(0x122)]&&(_0x20a310['where']=_['merge'](_0x20a310['where'],{[Op['or']]:_[_0x36771c(0x111)](_0x20a310[_0x36771c(0x11f)],function(_0x26138e){const _0x498117=_0x36771c,_0x5acad5={};return _0x5acad5[_0x26138e]={[Op['like']]:'%'+_0x46fc60['query'][_0x498117(0x122)]+'%'},_0x5acad5;})})),_0x20a310=_['merge']({},_0x20a310,_0x46fc60['options']),db[_0x36771c(0x10f)][_0x36771c(0x13d)]({'where':_0x20a310['where']})[_0x36771c(0x12d)](function(_0x36aae9){const _0x503d82=_0x36771c;return _0x2a7b09['count']=_0x36aae9,_0x46fc60[_0x503d82(0x11a)][_0x503d82(0x10c)]&&(_0x20a310[_0x503d82(0x138)]=[{'all':!![]}]),db[_0x503d82(0x10f)][_0x503d82(0x133)](_0x20a310);})[_0x36771c(0x12d)](function(_0x463eb9){const _0x916d98=_0x36771c;return _0x2a7b09[_0x916d98(0x134)]=_0x463eb9,_0x2a7b09;});})['then'](respondWithFilteredResult(_0x4a556b,_0x20a310))[_0x5e35ca(0x110)](handleError(_0x4a556b,null));}; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.model.js b/server/api/jscriptySessionReport/jscriptySessionReport.model.js index 84ddaf0..f63e3c3 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.model.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.model.js @@ -1 +1 @@ -const a466_0x9493=['init','JscriptySessionReport','exports','function','sequelize'];(function(_0x262175,_0x1ccee8){const _0x9493e8=function(_0x5b5655){while(--_0x5b5655){_0x262175['push'](_0x262175['shift']());}};_0x9493e8(++_0x1ccee8);}(a466_0x9493,0x151));const a466_0x5b56=function(_0x262175,_0x1ccee8){_0x262175=_0x262175-0xbb;let _0x9493e8=a466_0x9493[_0x262175];return _0x9493e8;};const a466_0x397eb3=a466_0x5b56;'use strict';const {Model}=require(a466_0x397eb3(0xbd)),{attributes}=require('./jscriptySessionReport.attributes'),{options}=require('./jscriptySessionReport.options');class JscriptySessionReport extends Model{}function init(_0x5bb917,_0x5338ab){const _0x27437f=a466_0x397eb3,_0x5d7797=options(_0x5bb917),_0x2d940d=typeof _0x5338ab===_0x27437f(0xbc)?_0x5338ab(_0x5d7797):_0x5d7797;return JscriptySessionReport[_0x27437f(0xbe)](attributes,_0x2d940d),JscriptySessionReport;}module[a466_0x397eb3(0xbb)][a466_0x397eb3(0xbf)]=JscriptySessionReport,module['exports']['init']=init; \ No newline at end of file +const a466_0x545a=['JscriptySessionReport','./jscriptySessionReport.options','exports','init'];(function(_0x32a91e,_0x4efc1f){const _0x545a2d=function(_0xa0556e){while(--_0xa0556e){_0x32a91e['push'](_0x32a91e['shift']());}};_0x545a2d(++_0x4efc1f);}(a466_0x545a,0x130));const a466_0xa055=function(_0x32a91e,_0x4efc1f){_0x32a91e=_0x32a91e-0xb1;let _0x545a2d=a466_0x545a[_0x32a91e];return _0x545a2d;};const a466_0x52ca06=a466_0xa055;'use strict';const {Model}=require('sequelize'),{attributes}=require('./jscriptySessionReport.attributes'),{options}=require(a466_0x52ca06(0xb2));class JscriptySessionReport extends Model{}function init(_0xe5a790,_0x18a681){const _0x1e95d6=options(_0xe5a790),_0x27ff06=typeof _0x18a681==='function'?_0x18a681(_0x1e95d6):_0x1e95d6;return JscriptySessionReport['init'](attributes,_0x27ff06),JscriptySessionReport;}module[a466_0x52ca06(0xb3)][a466_0x52ca06(0xb1)]=JscriptySessionReport,module['exports'][a466_0x52ca06(0xb4)]=init; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.options.js b/server/api/jscriptySessionReport/jscriptySessionReport.options.js index 576314c..4346f79 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.options.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.options.js @@ -1 +1 @@ -var a467_0xb168=['report_jscripty_sessions','options','exports'];(function(_0x47059f,_0x20b7fd){var _0xb1688a=function(_0x5ac296){while(--_0x5ac296){_0x47059f['push'](_0x47059f['shift']());}};_0xb1688a(++_0x20b7fd);}(a467_0xb168,0x1f2));var a467_0x5ac2=function(_0x47059f,_0x20b7fd){_0x47059f=_0x47059f-0xe4;var _0xb1688a=a467_0xb168[_0x47059f];return _0xb1688a;};var a467_0x2c33a6=a467_0x5ac2;function options(_0x4d76e8){var _0xb35884=a467_0x5ac2;return{'sequelize':_0x4d76e8,'tableName':_0xb35884(0xe4),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a467_0x2c33a6(0xe6)][a467_0x2c33a6(0xe5)]=options; \ No newline at end of file +var a467_0x2bb6=['options','report_jscripty_sessions','exports'];(function(_0x491f73,_0x385c4b){var _0x2bb62a=function(_0x20f4c3){while(--_0x20f4c3){_0x491f73['push'](_0x491f73['shift']());}};_0x2bb62a(++_0x385c4b);}(a467_0x2bb6,0x112));var a467_0x20f4=function(_0x491f73,_0x385c4b){_0x491f73=_0x491f73-0x14e;var _0x2bb62a=a467_0x2bb6[_0x491f73];return _0x2bb62a;};var a467_0x5f5902=a467_0x20f4;function options(_0xdd089f){var _0x18be3c=a467_0x20f4;return{'sequelize':_0xdd089f,'tableName':_0x18be3c(0x14e),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a467_0x5f5902(0x14f)][a467_0x5f5902(0x150)]=options; \ No newline at end of file diff --git a/server/api/license/index.js b/server/api/license/index.js index 84cc002..8765fe4 100644 --- a/server/api/license/index.js +++ b/server/api/license/index.js @@ -1 +1 @@ -const a468_0xb1dc=['put','./license.controller','isAuthenticated','Router','/:id','get','index'];(function(_0x3e7a44,_0x29fb9b){const _0xb1dc23=function(_0x2296cb){while(--_0x2296cb){_0x3e7a44['push'](_0x3e7a44['shift']());}};_0xb1dc23(++_0x29fb9b);}(a468_0xb1dc,0x14d));const a468_0x2296=function(_0x3e7a44,_0x29fb9b){_0x3e7a44=_0x3e7a44-0xbf;let _0xb1dc23=a468_0xb1dc[_0x3e7a44];return _0xb1dc23;};const a468_0x2f958f=a468_0x2296;'use strict';const express=require('express'),router=express[a468_0x2f958f(0xc5)](),auth=require('../../components/auth/service'),controller=require(a468_0x2f958f(0xc3));router[a468_0x2f958f(0xc0)]('/',controller[a468_0x2f958f(0xc1)]),router[a468_0x2f958f(0xc2)](a468_0x2f958f(0xbf),auth[a468_0x2f958f(0xc4)](),controller['update']),module['exports']=router; \ No newline at end of file +const a468_0x1346=['/:id','../../components/auth/service','index','Router','isAuthenticated','./license.controller','update','exports'];(function(_0x1daeee,_0x23c999){const _0x1346cf=function(_0x4c2686){while(--_0x4c2686){_0x1daeee['push'](_0x1daeee['shift']());}};_0x1346cf(++_0x23c999);}(a468_0x1346,0x168));const a468_0x4c26=function(_0x1daeee,_0x23c999){_0x1daeee=_0x1daeee-0xeb;let _0x1346cf=a468_0x1346[_0x1daeee];return _0x1346cf;};const a468_0x1eb9a2=a468_0x4c26;'use strict';const express=require('express'),router=express[a468_0x1eb9a2(0xee)](),auth=require(a468_0x1eb9a2(0xec)),controller=require(a468_0x1eb9a2(0xf0));router['get']('/',controller[a468_0x1eb9a2(0xed)]),router['put'](a468_0x1eb9a2(0xeb),auth[a468_0x1eb9a2(0xef)](),controller[a468_0x1eb9a2(0xf1)]),module[a468_0x1eb9a2(0xf2)]=router; \ No newline at end of file diff --git a/server/api/license/license.attributes.js b/server/api/license/license.attributes.js index da10850..02aca6c 100644 --- a/server/api/license/license.attributes.js +++ b/server/api/license/license.attributes.js @@ -1 +1 @@ -const a469_0x40c0=['exports','STRING','attributes','INTEGER','TEXT'];(function(_0x36510d,_0x116115){const _0x40c015=function(_0x42c8d4){while(--_0x42c8d4){_0x36510d['push'](_0x36510d['shift']());}};_0x40c015(++_0x116115);}(a469_0x40c0,0x69));const a469_0x42c8=function(_0x36510d,_0x116115){_0x36510d=_0x36510d-0x1e4;let _0x40c015=a469_0x40c0[_0x36510d];return _0x40c015;};const a469_0x3a7ed4=a469_0x42c8;'use strict';const {DataTypes}=require('sequelize'),attributes={'license':{'type':DataTypes[a469_0x3a7ed4(0x1e8)]},'data1':{'type':DataTypes[a469_0x3a7ed4(0x1e5)]},'data2':{'type':DataTypes[a469_0x3a7ed4(0x1e5)]},'chatLicenseExceeded':{'type':DataTypes[a469_0x3a7ed4(0x1e7)],'defaultValue':0x0}};module[a469_0x3a7ed4(0x1e4)][a469_0x3a7ed4(0x1e6)]=attributes; \ No newline at end of file +const a469_0x27f6=['STRING','INTEGER','TEXT'];(function(_0x1860d8,_0x2f9c51){const _0x27f6af=function(_0x190303){while(--_0x190303){_0x1860d8['push'](_0x1860d8['shift']());}};_0x27f6af(++_0x2f9c51);}(a469_0x27f6,0xcf));const a469_0x1903=function(_0x1860d8,_0x2f9c51){_0x1860d8=_0x1860d8-0x13c;let _0x27f6af=a469_0x27f6[_0x1860d8];return _0x27f6af;};const a469_0x12588b=a469_0x1903;'use strict';const {DataTypes}=require('sequelize'),attributes={'license':{'type':DataTypes[a469_0x12588b(0x13e)]},'data1':{'type':DataTypes[a469_0x12588b(0x13c)]},'data2':{'type':DataTypes[a469_0x12588b(0x13c)]},'chatLicenseExceeded':{'type':DataTypes[a469_0x12588b(0x13d)],'defaultValue':0x0}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/license/license.controller.js b/server/api/license/license.controller.js index 15673cc..31dbd9a 100644 --- a/server/api/license/license.controller.js +++ b/server/api/license/license.controller.js @@ -1 +1 @@ -const a470_0x3e94=['rawAttributes','../../components/parsers/qs','keys','merge','sendStatus','options','catch','body','status','../../config/license/util','model','query','lodash','filters','attributes','get','../../config/logger','json','then','send','getLicense','stack','License','params','fields','key','findOne','checkLicense','../../mysqldb'];(function(_0x51ec08,_0x50e860){const _0x3e94ec=function(_0x26e5cd){while(--_0x26e5cd){_0x51ec08['push'](_0x51ec08['shift']());}};_0x3e94ec(++_0x50e860);}(a470_0x3e94,0x1a1));const a470_0x26e5=function(_0x51ec08,_0x50e860){_0x51ec08=_0x51ec08-0x10e;let _0x3e94ec=a470_0x3e94[_0x51ec08];return _0x3e94ec;};const a470_0x390cfd=a470_0x26e5;'use strict';const _=require(a470_0x390cfd(0x10f)),qs=require(a470_0x390cfd(0x121)),logger=require(a470_0x390cfd(0x113))('api'),{db}=require(a470_0x390cfd(0x11f));function respondWithResult(_0x4d91ae,_0x38017b){return _0x38017b=_0x38017b||0xc8,function(_0x330ef7){const _0x284633=a470_0x26e5;if(_0x330ef7)return _0x4d91ae[_0x284633(0x128)](_0x38017b)[_0x284633(0x114)](_0x330ef7);};}function saveUpdates(_0x4df402){return function(_0x12b2b9){if(_0x12b2b9)return _0x12b2b9['update'](_0x4df402)['then'](function(_0x18afb9){return _0x18afb9;});return null;};}function handleEntityNotFound(_0x35735c){return function(_0x11eef2){const _0x1e154a=a470_0x26e5;return!_0x11eef2&&_0x35735c[_0x1e154a(0x124)](0x194),_0x11eef2;};}function handleError(_0x5f52b7,_0x4b81e6){return _0x4b81e6=_0x4b81e6||0x1f4,function(_0x52409f){const _0x2dc3e7=a470_0x26e5;logger['error'](_0x52409f[_0x2dc3e7(0x118)]),_0x52409f['name']&&delete _0x52409f['name'],_0x5f52b7[_0x2dc3e7(0x128)](_0x4b81e6)[_0x2dc3e7(0x116)](_0x52409f);};}const utilLicense=require(a470_0x390cfd(0x129));exports['index']=function(_0x3912c6,_0x2c1b55){const _0x5d38e8=a470_0x390cfd;let _0x5599fe={'raw':!![],'where':{'id':0x1}};const _0x49d728={};return _0x49d728[_0x5d38e8(0x12a)]=_[_0x5d38e8(0x122)](db[_0x5d38e8(0x119)][_0x5d38e8(0x120)]),_0x49d728[_0x5d38e8(0x10e)]=_[_0x5d38e8(0x122)](_0x3912c6[_0x5d38e8(0x10e)]),_0x49d728[_0x5d38e8(0x110)]=_['intersection'](_0x49d728[_0x5d38e8(0x12a)],_0x49d728['query']),_0x5599fe[_0x5d38e8(0x111)]=_['intersection'](_0x49d728[_0x5d38e8(0x12a)],qs[_0x5d38e8(0x11b)](_0x3912c6[_0x5d38e8(0x10e)]['fields'])),_0x5599fe[_0x5d38e8(0x111)]=_0x5599fe[_0x5d38e8(0x111)]['length']?_0x5599fe[_0x5d38e8(0x111)]:_0x49d728[_0x5d38e8(0x12a)],_0x5599fe=_[_0x5d38e8(0x123)]({},_0x5599fe,_0x3912c6[_0x5d38e8(0x125)]),utilLicense[_0x5d38e8(0x117)](_0x5599fe)['then'](respondWithResult(_0x2c1b55,null))[_0x5d38e8(0x126)](handleError(_0x2c1b55,null));},exports['update']=function(_0x535f20,_0x4cabad){const _0x53a64f=a470_0x390cfd;return _0x535f20['body']['id']&&delete _0x535f20[_0x53a64f(0x127)]['id'],db[_0x53a64f(0x119)][_0x53a64f(0x11d)]({'where':{'id':_0x535f20[_0x53a64f(0x11a)]['id']}})[_0x53a64f(0x115)](handleEntityNotFound(_0x4cabad,null))[_0x53a64f(0x115)](function(_0x4f8ad7){const _0x471c8c=_0x53a64f,_0x30bfc1=_0x4f8ad7[_0x471c8c(0x112)]({'plain':!![]});return utilLicense[_0x471c8c(0x11e)](_0x30bfc1,_0x535f20['body'][_0x471c8c(0x11c)]);})[_0x53a64f(0x115)](function(_0x2872fe){const _0x1fe33b=_0x53a64f;if(!_0x2872fe['demo'])return saveUpdates(_0x535f20[_0x1fe33b(0x127)],null);return _0x2872fe;})[_0x53a64f(0x115)](respondWithResult(_0x4cabad,null))[_0x53a64f(0x126)](handleError(_0x4cabad,null));}; \ No newline at end of file +const a470_0x4a04=['model','params','query','stack','attributes','error','License','send','length','json','api','catch','options','status','sendStatus','getLicense','get','filters','update','lodash','fields','keys','intersection','checkLicense','demo','key','name','then','body'];(function(_0x2fd9e3,_0x3920a8){const _0x4a0414=function(_0x387388){while(--_0x387388){_0x2fd9e3['push'](_0x2fd9e3['shift']());}};_0x4a0414(++_0x3920a8);}(a470_0x4a04,0x1ab));const a470_0x3873=function(_0x2fd9e3,_0x3920a8){_0x2fd9e3=_0x2fd9e3-0x1df;let _0x4a0414=a470_0x4a04[_0x2fd9e3];return _0x4a0414;};const a470_0x29cd4b=a470_0x3873;'use strict';const _=require(a470_0x29cd4b(0x1fa)),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(a470_0x29cd4b(0x1f1)),{db}=require('../../mysqldb');function respondWithResult(_0x3f8133,_0x238457){return _0x238457=_0x238457||0xc8,function(_0x5670ae){const _0x5cb7d0=a470_0x3873;if(_0x5670ae)return _0x3f8133[_0x5cb7d0(0x1f4)](_0x238457)[_0x5cb7d0(0x1f0)](_0x5670ae);};}function saveUpdates(_0xab0373){return function(_0x4ad6d6){const _0x2ddf3d=a470_0x3873;if(_0x4ad6d6)return _0x4ad6d6[_0x2ddf3d(0x1f9)](_0xab0373)['then'](function(_0x131282){return _0x131282;});return null;};}function handleEntityNotFound(_0x370fa1){return function(_0x244290){const _0x185589=a470_0x3873;return!_0x244290&&_0x370fa1[_0x185589(0x1f5)](0x194),_0x244290;};}function handleError(_0x3eccb3,_0x274ff0){return _0x274ff0=_0x274ff0||0x1f4,function(_0x2cdfcf){const _0x2f171e=a470_0x3873;logger[_0x2f171e(0x1ec)](_0x2cdfcf[_0x2f171e(0x1ea)]),_0x2cdfcf[_0x2f171e(0x1e4)]&&delete _0x2cdfcf[_0x2f171e(0x1e4)],_0x3eccb3['status'](_0x274ff0)[_0x2f171e(0x1ee)](_0x2cdfcf);};}const utilLicense=require('../../config/license/util');exports['index']=function(_0x46aa1f,_0x22efed){const _0x365274=a470_0x29cd4b;let _0x23cda0={'raw':!![],'where':{'id':0x1}};const _0x45833f={};return _0x45833f[_0x365274(0x1e7)]=_[_0x365274(0x1df)](db['License']['rawAttributes']),_0x45833f[_0x365274(0x1e9)]=_['keys'](_0x46aa1f[_0x365274(0x1e9)]),_0x45833f[_0x365274(0x1f8)]=_[_0x365274(0x1e0)](_0x45833f[_0x365274(0x1e7)],_0x45833f[_0x365274(0x1e9)]),_0x23cda0[_0x365274(0x1eb)]=_[_0x365274(0x1e0)](_0x45833f[_0x365274(0x1e7)],qs[_0x365274(0x1fb)](_0x46aa1f[_0x365274(0x1e9)][_0x365274(0x1fb)])),_0x23cda0['attributes']=_0x23cda0[_0x365274(0x1eb)][_0x365274(0x1ef)]?_0x23cda0['attributes']:_0x45833f['model'],_0x23cda0=_['merge']({},_0x23cda0,_0x46aa1f[_0x365274(0x1f3)]),utilLicense[_0x365274(0x1f6)](_0x23cda0)[_0x365274(0x1e5)](respondWithResult(_0x22efed,null))[_0x365274(0x1f2)](handleError(_0x22efed,null));},exports[a470_0x29cd4b(0x1f9)]=function(_0x42b91d,_0x22a2af){const _0x1d42e7=a470_0x29cd4b;return _0x42b91d[_0x1d42e7(0x1e6)]['id']&&delete _0x42b91d[_0x1d42e7(0x1e6)]['id'],db[_0x1d42e7(0x1ed)]['findOne']({'where':{'id':_0x42b91d[_0x1d42e7(0x1e8)]['id']}})[_0x1d42e7(0x1e5)](handleEntityNotFound(_0x22a2af,null))[_0x1d42e7(0x1e5)](function(_0x599749){const _0x141f8a=_0x1d42e7,_0x144485=_0x599749[_0x141f8a(0x1f7)]({'plain':!![]});return utilLicense[_0x141f8a(0x1e1)](_0x144485,_0x42b91d[_0x141f8a(0x1e6)][_0x141f8a(0x1e3)]);})['then'](function(_0x42af92){const _0x45d2b1=_0x1d42e7;if(!_0x42af92[_0x45d2b1(0x1e2)])return saveUpdates(_0x42b91d[_0x45d2b1(0x1e6)],null);return _0x42af92;})['then'](respondWithResult(_0x22a2af,null))[_0x1d42e7(0x1f2)](handleError(_0x22a2af,null));}; \ No newline at end of file diff --git a/server/api/license/license.model.js b/server/api/license/license.model.js index 4ef7fc3..80500ec 100644 --- a/server/api/license/license.model.js +++ b/server/api/license/license.model.js @@ -1 +1 @@ -const a471_0x2dc2=['./license.options','sequelize','exports','function','init','./license.attributes','License'];(function(_0x1cb104,_0x1e2f2e){const _0x2dc20b=function(_0x904d14){while(--_0x904d14){_0x1cb104['push'](_0x1cb104['shift']());}};_0x2dc20b(++_0x1e2f2e);}(a471_0x2dc2,0x1d7));const a471_0x904d=function(_0x1cb104,_0x1e2f2e){_0x1cb104=_0x1cb104-0xb2;let _0x2dc20b=a471_0x2dc2[_0x1cb104];return _0x2dc20b;};const a471_0x1d03e1=a471_0x904d;'use strict';const {Model}=require(a471_0x1d03e1(0xb8)),{attributes}=require(a471_0x1d03e1(0xb5)),{options}=require(a471_0x1d03e1(0xb7));class License extends Model{}function init(_0x1b8449,_0x31af9){const _0x18eca0=a471_0x1d03e1,_0x24ffe2=options(_0x1b8449),_0x3b0cc9=typeof _0x31af9===_0x18eca0(0xb3)?_0x31af9(_0x24ffe2):_0x24ffe2;return License[_0x18eca0(0xb4)](attributes,_0x3b0cc9),License;}module[a471_0x1d03e1(0xb2)][a471_0x1d03e1(0xb6)]=License,module[a471_0x1d03e1(0xb2)][a471_0x1d03e1(0xb4)]=init; \ No newline at end of file +const a471_0xc427=['sequelize','./license.attributes','exports','function','License','init','./license.options'];(function(_0x206c50,_0x29d59b){const _0xc427d3=function(_0x480fdd){while(--_0x480fdd){_0x206c50['push'](_0x206c50['shift']());}};_0xc427d3(++_0x29d59b);}(a471_0xc427,0x172));const a471_0x480f=function(_0x206c50,_0x29d59b){_0x206c50=_0x206c50-0x19f;let _0xc427d3=a471_0xc427[_0x206c50];return _0xc427d3;};const a471_0x4eb31a=a471_0x480f;'use strict';const {Model}=require(a471_0x4eb31a(0x1a0)),{attributes}=require(a471_0x4eb31a(0x1a1)),{options}=require(a471_0x4eb31a(0x19f));class License extends Model{}function init(_0x438fc4,_0x4cafe2){const _0x11171e=a471_0x4eb31a,_0xa1fb8d=options(_0x438fc4),_0x2d468d=typeof _0x4cafe2===_0x11171e(0x1a3)?_0x4cafe2(_0xa1fb8d):_0xa1fb8d;return License[_0x11171e(0x1a5)](attributes,_0x2d468d),License;}module[a471_0x4eb31a(0x1a2)][a471_0x4eb31a(0x1a4)]=License,module[a471_0x4eb31a(0x1a2)][a471_0x4eb31a(0x1a5)]=init; \ No newline at end of file diff --git a/server/api/license/license.options.js b/server/api/license/license.options.js index f9513d4..cbb77f3 100644 --- a/server/api/license/license.options.js +++ b/server/api/license/license.options.js @@ -1 +1 @@ -var a472_0x1022=['license','options','exports'];(function(_0x70d6fe,_0x5cbd4c){var _0x102241=function(_0x5b101d){while(--_0x5b101d){_0x70d6fe['push'](_0x70d6fe['shift']());}};_0x102241(++_0x5cbd4c);}(a472_0x1022,0x17b));var a472_0x5b10=function(_0x70d6fe,_0x5cbd4c){_0x70d6fe=_0x70d6fe-0x199;var _0x102241=a472_0x1022[_0x70d6fe];return _0x102241;};var a472_0x10b030=a472_0x5b10;function options(_0x25d187){var _0x513182=a472_0x5b10;return{'sequelize':_0x25d187,'tableName':_0x513182(0x19b),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a472_0x10b030(0x19a)][a472_0x10b030(0x199)]=options; \ No newline at end of file +var a472_0x53ed=['license','exports'];(function(_0x3a0010,_0x288196){var _0x53edfb=function(_0x56bb72){while(--_0x56bb72){_0x3a0010['push'](_0x3a0010['shift']());}};_0x53edfb(++_0x288196);}(a472_0x53ed,0x17f));var a472_0x56bb=function(_0x3a0010,_0x288196){_0x3a0010=_0x3a0010-0xf1;var _0x53edfb=a472_0x53ed[_0x3a0010];return _0x53edfb;};var a472_0x3cafe3=a472_0x56bb;function options(_0x3d92ed){var _0x594e96=a472_0x56bb;return{'sequelize':_0x3d92ed,'tableName':_0x594e96(0xf2),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a472_0x3cafe3(0xf1)]['options']=options; \ No newline at end of file diff --git a/server/api/mailAccount/index.js b/server/api/mailAccount/index.js index de75403..2de3ff1 100644 --- a/server/api/mailAccount/index.js +++ b/server/api/mailAccount/index.js @@ -1 +1 @@ -const a473_0x2ca1=['/:id/out_servers','addDisposition','create','update','destroy','verifySmtp','/describe','get','/:id/interactions','addInteraction','getAnswers','put','post','/:id/verify','addApplications','/:id/dispositions','show','isAuthenticated','/:id/in_servers','/:id','/:id/messages','removeImap','addAnswer','../../components/auth/service','removeAgents','removeSmtp','/:id/canned_answers','getDispositions','getApplications','/:id/users','addAgents','removeDispositions','getImap','/:id/applications','getMessages','getSmtp','addSmtp','removeAnswers','delete'];(function(_0x41e366,_0x4269b8){const _0x2ca128=function(_0x2265b4){while(--_0x2265b4){_0x41e366['push'](_0x41e366['shift']());}};_0x2ca128(++_0x4269b8);}(a473_0x2ca1,0x1e2));const a473_0x2265=function(_0x41e366,_0x4269b8){_0x41e366=_0x41e366-0x174;let _0x2ca128=a473_0x2ca1[_0x41e366];return _0x2ca128;};const a473_0x115c36=a473_0x2265;'use strict';const express=require('express'),router=express['Router'](),auth=require(a473_0x115c36(0x17d)),controller=require('./mailAccount.controller');router[a473_0x115c36(0x194)]('/',auth[a473_0x115c36(0x177)](),controller['index']),router[a473_0x115c36(0x194)](a473_0x115c36(0x193),auth[a473_0x115c36(0x177)](),controller['describe']),router['get'](a473_0x115c36(0x179),auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x176)]),router[a473_0x115c36(0x194)](a473_0x115c36(0x175),auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x181)]),router['get'](a473_0x115c36(0x180),auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x197)]),router[a473_0x115c36(0x194)](a473_0x115c36(0x178),auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x186)]),router[a473_0x115c36(0x194)](a473_0x115c36(0x18d),auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x189)]),router['get'](a473_0x115c36(0x195),auth[a473_0x115c36(0x177)](),controller['getInteractions']),router['get']('/:id/applications',auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x182)]),router['get'](a473_0x115c36(0x17a),auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x188)]),router['get'](a473_0x115c36(0x19a),auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x192)]),router['get']('/:id/users',auth[a473_0x115c36(0x177)](),controller['getAgents']),router[a473_0x115c36(0x199)](a473_0x115c36(0x175),auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x18e)]),router[a473_0x115c36(0x199)](a473_0x115c36(0x180),auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x17c)]),router[a473_0x115c36(0x199)]('/',auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x18f)]),router[a473_0x115c36(0x199)](a473_0x115c36(0x178),auth[a473_0x115c36(0x177)](),controller['addImap']),router[a473_0x115c36(0x199)](a473_0x115c36(0x18d),auth['isAuthenticated'](),controller[a473_0x115c36(0x18a)]),router[a473_0x115c36(0x199)](a473_0x115c36(0x195),auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x196)]),router['post'](a473_0x115c36(0x187),auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x174)]),router[a473_0x115c36(0x199)]('/:id/send',auth[a473_0x115c36(0x177)](),controller['send']),router[a473_0x115c36(0x199)](a473_0x115c36(0x183),auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x184)]),router[a473_0x115c36(0x198)](a473_0x115c36(0x179),auth['isAuthenticated'](),controller[a473_0x115c36(0x190)]),router['delete'](a473_0x115c36(0x175),auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x185)]),router['delete'](a473_0x115c36(0x180),auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x18b)]),router[a473_0x115c36(0x18c)](a473_0x115c36(0x178),auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x17b)]),router[a473_0x115c36(0x18c)](a473_0x115c36(0x18d),auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x17f)]),router['delete']('/:id',auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x191)]),router['delete'](a473_0x115c36(0x183),auth[a473_0x115c36(0x177)](),controller[a473_0x115c36(0x17e)]),module['exports']=router; \ No newline at end of file +const a473_0x1f46=['getImap','create','get','/:id/in_servers','/describe','addAnswer','put','isAuthenticated','/:id/send','getAnswers','removeAgents','/:id/canned_answers','Router','getAgents','destroy','/:id/interactions','addImap','verifySmtp','addAgents','../../components/auth/service','/:id/applications','update','removeAnswers','getSmtp','addApplications','getInteractions','removeSmtp','addDisposition','delete','/:id','exports','/:id/messages','send','/:id/out_servers','/:id/dispositions','post','index','removeImap','getApplications','getDispositions','/:id/users','removeDispositions'];(function(_0x479254,_0x470557){const _0x1f46e6=function(_0x2c41dd){while(--_0x2c41dd){_0x479254['push'](_0x479254['shift']());}};_0x1f46e6(++_0x470557);}(a473_0x1f46,0x177));const a473_0x2c41=function(_0x479254,_0x470557){_0x479254=_0x479254-0xe0;let _0x1f46e6=a473_0x1f46[_0x479254];return _0x1f46e6;};const a473_0x350861=a473_0x2c41;'use strict';const express=require('express'),router=express[a473_0x350861(0xef)](),auth=require(a473_0x350861(0xf6)),controller=require('./mailAccount.controller');router[a473_0x350861(0xe5)]('/',auth[a473_0x350861(0xea)](),controller[a473_0x350861(0x107)]),router[a473_0x350861(0xe5)](a473_0x350861(0xe7),auth[a473_0x350861(0xea)](),controller['describe']),router['get'](a473_0x350861(0x100),auth['isAuthenticated'](),controller['show']),router[a473_0x350861(0xe5)](a473_0x350861(0x105),auth[a473_0x350861(0xea)](),controller[a473_0x350861(0xe0)]),router[a473_0x350861(0xe5)](a473_0x350861(0xee),auth[a473_0x350861(0xea)](),controller[a473_0x350861(0xec)]),router[a473_0x350861(0xe5)](a473_0x350861(0xe6),auth[a473_0x350861(0xea)](),controller[a473_0x350861(0xe3)]),router[a473_0x350861(0xe5)](a473_0x350861(0x104),auth[a473_0x350861(0xea)](),controller[a473_0x350861(0xfa)]),router[a473_0x350861(0xe5)](a473_0x350861(0xf2),auth[a473_0x350861(0xea)](),controller[a473_0x350861(0xfc)]),router[a473_0x350861(0xe5)](a473_0x350861(0xf7),auth['isAuthenticated'](),controller[a473_0x350861(0x109)]),router[a473_0x350861(0xe5)](a473_0x350861(0x102),auth[a473_0x350861(0xea)](),controller['getMessages']),router[a473_0x350861(0xe5)]('/:id/verify',auth[a473_0x350861(0xea)](),controller[a473_0x350861(0xf4)]),router[a473_0x350861(0xe5)](a473_0x350861(0xe1),auth[a473_0x350861(0xea)](),controller[a473_0x350861(0xf0)]),router['post']('/:id/dispositions',auth[a473_0x350861(0xea)](),controller[a473_0x350861(0xfe)]),router[a473_0x350861(0x106)](a473_0x350861(0xee),auth[a473_0x350861(0xea)](),controller[a473_0x350861(0xe8)]),router['post']('/',auth[a473_0x350861(0xea)](),controller[a473_0x350861(0xe4)]),router[a473_0x350861(0x106)](a473_0x350861(0xe6),auth['isAuthenticated'](),controller[a473_0x350861(0xf3)]),router[a473_0x350861(0x106)](a473_0x350861(0x104),auth[a473_0x350861(0xea)](),controller['addSmtp']),router[a473_0x350861(0x106)](a473_0x350861(0xf2),auth[a473_0x350861(0xea)](),controller['addInteraction']),router['post'](a473_0x350861(0xf7),auth[a473_0x350861(0xea)](),controller[a473_0x350861(0xfb)]),router[a473_0x350861(0x106)](a473_0x350861(0xeb),auth[a473_0x350861(0xea)](),controller[a473_0x350861(0x103)]),router[a473_0x350861(0x106)](a473_0x350861(0xe1),auth[a473_0x350861(0xea)](),controller[a473_0x350861(0xf5)]),router[a473_0x350861(0xe9)](a473_0x350861(0x100),auth['isAuthenticated'](),controller[a473_0x350861(0xf8)]),router[a473_0x350861(0xff)](a473_0x350861(0x105),auth[a473_0x350861(0xea)](),controller[a473_0x350861(0xe2)]),router[a473_0x350861(0xff)](a473_0x350861(0xee),auth['isAuthenticated'](),controller[a473_0x350861(0xf9)]),router[a473_0x350861(0xff)](a473_0x350861(0xe6),auth[a473_0x350861(0xea)](),controller[a473_0x350861(0x108)]),router[a473_0x350861(0xff)](a473_0x350861(0x104),auth[a473_0x350861(0xea)](),controller[a473_0x350861(0xfd)]),router['delete'](a473_0x350861(0x100),auth[a473_0x350861(0xea)](),controller[a473_0x350861(0xf1)]),router['delete'](a473_0x350861(0xe1),auth[a473_0x350861(0xea)](),controller[a473_0x350861(0xed)]),module[a473_0x350861(0x101)]=router; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.attributes.js b/server/api/mailAccount/mailAccount.attributes.js index 5b6e5a4..35b0034 100644 --- a/server/api/mailAccount/mailAccount.attributes.js +++ b/server/api/mailAccount/mailAccount.attributes.js @@ -1 +1 @@ -const a474_0x5183=['sequelize','BOOLEAN','setDataValue','INTEGER','TEXT','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Arial,Helvetica,sans-serif','UNSIGNED','attributes','mandatoryDisposition','STRING','exports'];(function(_0x5c4f9b,_0x458b04){const _0x51837f=function(_0x55fef9){while(--_0x55fef9){_0x5c4f9b['push'](_0x5c4f9b['shift']());}};_0x51837f(++_0x458b04);}(a474_0x5183,0x96));const a474_0x55fe=function(_0x5c4f9b,_0x458b04){_0x5c4f9b=_0x5c4f9b-0x1aa;let _0x51837f=a474_0x5183[_0x5c4f9b];return _0x51837f;};const a474_0x55ced2=a474_0x55fe;'use strict';const {DataTypes}=require(a474_0x55ced2(0x1b0)),attributes={'description':{'type':DataTypes['STRING']},'name':{'type':DataTypes['STRING'],'allowNull':![]},'service':{'type':DataTypes[a474_0x55ced2(0x1b1)],'defaultValue':![]},'email':{'type':DataTypes[a474_0x55ced2(0x1ae)],'validate':{'isEmail':!![]}},'active':{'type':DataTypes[a474_0x55ced2(0x1b1)],'defaultValue':!![]},'key':{'type':DataTypes[a474_0x55ced2(0x1ae)],'allowNull':![]},'template':{'type':DataTypes[a474_0x55ced2(0x1b4)]},'markAsUnread':{'type':DataTypes[a474_0x55ced2(0x1b1)],'defaultValue':![]},'fontFamily':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':a474_0x55ced2(0x1aa)},'fontSize':{'type':DataTypes[a474_0x55ced2(0x1b3)]({'length':0x2})[a474_0x55ced2(0x1ab)],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}},'notificationTemplate':{'type':DataTypes[a474_0x55ced2(0x1b4)],'defaultValue':function(){return'Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}
Subject\x20:\x20{{message.subject}}';}},'notificationSound':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':DataTypes[a474_0x55ced2(0x1b1)],'defaultValue':![]},'waitForTheAssignedAgent':{'type':DataTypes[a474_0x55ced2(0x1b3)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':DataTypes[a474_0x55ced2(0x1b1)],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes[a474_0x55ced2(0x1b1)],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes[a474_0x55ced2(0x1b3)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':DataTypes[a474_0x55ced2(0x1b3)],'allowNull':!![],'defaultValue':null,'comment':a474_0x55ced2(0x1b5)},'mandatoryDisposition':{'type':DataTypes[a474_0x55ced2(0x1b1)],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x4cd259){const _0x1ab543=a474_0x55ced2;if(!_0x4cd259)this[_0x1ab543(0x1b2)]('mandatoryDispositionPauseId',null);this[_0x1ab543(0x1b2)](_0x1ab543(0x1ad),_0x4cd259);}}};module[a474_0x55ced2(0x1af)][a474_0x55ced2(0x1ac)]=attributes; \ No newline at end of file +const a474_0x4809=['setDataValue','sequelize','STRING','exports','BOOLEAN','mandatoryDispositionPauseId','INTEGER','Arial,Helvetica,sans-serif','TEXT','UNSIGNED','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}
Subject\x20:\x20{{message.subject}}','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'];(function(_0x3698ca,_0x92db2c){const _0x4809b8=function(_0x4c1654){while(--_0x4c1654){_0x3698ca['push'](_0x3698ca['shift']());}};_0x4809b8(++_0x92db2c);}(a474_0x4809,0x131));const a474_0x4c16=function(_0x3698ca,_0x92db2c){_0x3698ca=_0x3698ca-0x123;let _0x4809b8=a474_0x4809[_0x3698ca];return _0x4809b8;};const a474_0x215bd9=a474_0x4c16;'use strict';const {DataTypes}=require(a474_0x215bd9(0x12b)),attributes={'description':{'type':DataTypes['STRING']},'name':{'type':DataTypes[a474_0x215bd9(0x12c)],'allowNull':![]},'service':{'type':DataTypes[a474_0x215bd9(0x12e)],'defaultValue':![]},'email':{'type':DataTypes[a474_0x215bd9(0x12c)],'validate':{'isEmail':!![]}},'active':{'type':DataTypes[a474_0x215bd9(0x12e)],'defaultValue':!![]},'key':{'type':DataTypes[a474_0x215bd9(0x12c)],'allowNull':![]},'template':{'type':DataTypes[a474_0x215bd9(0x126)]},'markAsUnread':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'fontFamily':{'type':DataTypes[a474_0x215bd9(0x12c)],'allowNull':![],'defaultValue':a474_0x215bd9(0x125)},'fontSize':{'type':DataTypes[a474_0x215bd9(0x124)]({'length':0x2})[a474_0x215bd9(0x127)],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}},'notificationTemplate':{'type':DataTypes[a474_0x215bd9(0x126)],'defaultValue':function(){const _0x3bb22c=a474_0x215bd9;return _0x3bb22c(0x128);}},'notificationSound':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':DataTypes[a474_0x215bd9(0x12e)],'defaultValue':![]},'waitForTheAssignedAgent':{'type':DataTypes[a474_0x215bd9(0x124)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':DataTypes[a474_0x215bd9(0x12e)],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes[a474_0x215bd9(0x124)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes[a474_0x215bd9(0x124)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':DataTypes[a474_0x215bd9(0x124)],'allowNull':!![],'defaultValue':null,'comment':a474_0x215bd9(0x129)},'mandatoryDisposition':{'type':DataTypes[a474_0x215bd9(0x12e)],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x2e7303){const _0x1258bb=a474_0x215bd9;if(!_0x2e7303)this[_0x1258bb(0x12a)](_0x1258bb(0x123),null);this['setDataValue']('mandatoryDisposition',_0x2e7303);}}};module[a474_0x215bd9(0x12d)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.controller.js b/server/api/mailAccount/mailAccount.controller.js index c5bf386..3fc6a84 100644 --- a/server/api/mailAccount/mailAccount.controller.js +++ b/server/api/mailAccount/mailAccount.controller.js @@ -1 +1 @@ -const a475_0x513b=['getSmtp','type','code','../../components/parsers/qs','bulkCreate','emit','offset','role','updatedAt','autoAssociation','format','MailApplication','addApplications','server/files/attachments','attach','register','moment','rawAttributes','addInteraction','userMailAccount:remove','Messages','SendMail','omit','password','body','getDispositions','MailAccountId','cservice','messageId','update','show','lodash','error','addAgents','setSmtp','addSmtp','removeDispositions','getApplications','active','email','request\x20sent','getImap','client','MailAccount,\x20%s,\x20%s','user','length','auth','catch','jayson/promise','undefined','UserProfileSection','setImap','Interaction','fieldName','MailMessage','fields','addImap','attachments','nolimit','includeAll','verifySmtp','rows','status','json','model','destroy','../../rediscache','attributes','describe','name','sequelize','ids','fullname','end','out','isNil','http','userProfileId','MailAccount','info','findAndCountAll','set','service','List\x20not\x20found','description','result','You\x20can\x27t\x20remove\x20the\x20mail\x20service\x20account','count','request','sort','Contacts','intersection','util','getMessages','include','findOne','MailServerOut','VerifySmtp','Tags','Smtp','Owner','basename','removeAnswers','getAnswers','send','addAnswer','mandatoryDispositionPause','Disposition','merge','../../mysqldb','CannedAnswer','Pause','port','userMailAccount:save','where','pass','filters','query','from','CmList','gte','params','cpassword','create','transaction','YYYY-MM-DD\x20HH:mm:ss','split','sendStatus','cuser','MailInteraction','Contact','getAgents','MailServerIn','removeAgents','Tag','./mailAccount.socket','UserProfileResource','Imap','User','options','stack','pick','getInteractions','color','message','debug','tag','$gte','join','map','MailAccount,\x20%s,\x20%s,\x20%s','then','../../config/logger','authentication','findAll','priority','get','keys','host','CmContact','sendMail','List','ListId','like','DESC','subject','secure','addDisposition','order','key','filter','limit'];(function(_0x2dcf48,_0x2549ba){const _0x513b0b=function(_0x4557be){while(--_0x4557be){_0x2dcf48['push'](_0x2dcf48['shift']());}};_0x513b0b(++_0x2549ba);}(a475_0x513b,0xdf));const a475_0x4557=function(_0x2dcf48,_0x2549ba){_0x2dcf48=_0x2dcf48-0xec;let _0x513b0b=a475_0x513b[_0x2dcf48];return _0x513b0b;};const a475_0x4fe758=a475_0x4557;'use strict';const moment=require(a475_0x4fe758(0x175)),util=require(a475_0x4fe758(0x115)),path=require('path'),_=require(a475_0x4fe758(0x184)),{getSocket}=require(a475_0x4fe758(0xfb)),socket=getSocket(),qs=require(a475_0x4fe758(0x168)),logger=require(a475_0x4fe758(0x151))('api'),config=require('../../config/environment'),{db}=require(a475_0x4fe758(0x126)),{Op,ValidationError}=require('sequelize');require(a475_0x4fe758(0x140))[a475_0x4fe758(0x174)](socket);const jayson=require(a475_0x4fe758(0x195)),client=jayson[a475_0x4fe758(0x18f)][a475_0x4fe758(0x105)]({'port':0x232b});function respondWithRpcPromise(_0x1e4aaf,_0xd52113,_0x49ad99,_0x28f222){return new Promise(function(_0x525c86,_0x239d56){const _0x224124=a475_0x4557,_0x3e528b=_0x28f222||client;return _0x3e528b[_0x224124(0x111)](_0x1e4aaf,_0x49ad99)[_0x224124(0x150)](function(_0x31b4f1){const _0x440285=_0x224124;logger[_0x440285(0x108)]('MailAccount,\x20%s,\x20%s',_0xd52113,_0x440285(0x18d)),logger[_0x440285(0x14a)](_0x440285(0x14f),_0xd52113,_0x440285(0x18d),JSON['stringify'](_0x31b4f1));if(_0x31b4f1[_0x440285(0x185)]){if(_0x31b4f1['error'][_0x440285(0x167)]===0x1f4)return logger[_0x440285(0x185)]('MailAccount,\x20%s,\x20%s',_0xd52113,_0x31b4f1[_0x440285(0x185)]['message']),_0x239d56(_0x31b4f1[_0x440285(0x185)][_0x440285(0x149)]);return logger[_0x440285(0x185)](_0x440285(0x190),_0xd52113,_0x31b4f1[_0x440285(0x185)][_0x440285(0x149)]),_0x525c86(_0x31b4f1['error'][_0x440285(0x149)]);}else logger[_0x440285(0x108)](_0x440285(0x190),_0xd52113,_0x440285(0x18d)),_0x525c86(_0x31b4f1[_0x440285(0x10e)][_0x440285(0x149)]);})[_0x224124(0x194)](function(_0x1b7f44){const _0x1d2d03=_0x224124;logger[_0x1d2d03(0x185)](_0x1d2d03(0x190),_0xd52113,_0x1b7f44),_0x239d56(_0x1b7f44);});});}function respondWithStatusCode(_0x352322,_0xf7bdaf){return _0xf7bdaf=_0xf7bdaf||0xcc,function(_0x248b15){const _0x5dec37=a475_0x4557;if(_0x248b15)return _0x352322[_0x5dec37(0x138)](_0xf7bdaf);return _0x352322[_0x5dec37(0xf7)](_0xf7bdaf)['end']();};}function respondWithResult(_0x4b289f,_0x21af05){return _0x21af05=_0x21af05||0xc8,function(_0x26a33f){const _0x254866=a475_0x4557;if(_0x26a33f)return _0x4b289f[_0x254866(0xf7)](_0x21af05)[_0x254866(0xf8)](_0x26a33f);};}function respondWithFilteredResult(_0x3864bc,_0x7ee1ee){return function(_0xee147f){const _0xce6e35=a475_0x4557;if(_0xee147f){const _0x3d7e2c=_0xee147f[_0xce6e35(0x110)],_0x458138=_0x7ee1ee['offset'];let _0x24c8d1=_0x7ee1ee[_0xce6e35(0x16b)]+_0x7ee1ee['limit'],_0x881a80;return _0x24c8d1>=_0x3d7e2c?(_0x24c8d1=_0x3d7e2c,_0x881a80=0xc8):_0x881a80=0xce,_0x3864bc[_0xce6e35(0xf7)](_0x881a80),_0x3864bc[_0xce6e35(0x10a)]('Content-Range',_0x458138+'-'+_0x24c8d1+'/'+_0x3d7e2c)[_0xce6e35(0xf8)](_0xee147f);}return null;};}function saveUpdates(_0x279279){return function(_0x57ce65){const _0x2c1c10=a475_0x4557;if(_0x57ce65)return _0x57ce65[_0x2c1c10(0x182)](_0x279279)['then'](function(_0x3f34a0){return _0x3f34a0;});return null;};}function removeEntity(_0x39f860){return function(_0x52d38d){const _0x3cadec=a475_0x4557;if(_0x52d38d)return _0x52d38d['destroy']()[_0x3cadec(0x150)](function(){const _0xeeabc=_0x3cadec,_0x28490b=_0x52d38d['get']({'plain':!![]}),_0x3e32f1='MailAccounts';return db['UserProfileResource'][_0xeeabc(0xfa)]({'where':{'type':_0x3e32f1,'resourceId':_0x28490b['id']}})['then'](function(){return _0x52d38d;});})[_0x3cadec(0x150)](function(){const _0x1ca3d4=_0x3cadec;_0x39f860['status'](0xcc)[_0x1ca3d4(0x102)]();});};}function handleEntityNotFound(_0x4bcf2d){return function(_0x3bbe59){return!_0x3bbe59&&_0x4bcf2d['sendStatus'](0x194),_0x3bbe59;};}function handleError(_0x1661d0,_0x2068d1){return _0x2068d1=_0x2068d1||0x1f4,function(_0x53da5){const _0x57392b=a475_0x4557;logger[_0x57392b(0x185)](_0x53da5[_0x57392b(0x145)]),_0x53da5['name']&&delete _0x53da5[_0x57392b(0xfe)],_0x1661d0[_0x57392b(0xf7)](_0x2068d1)['send'](_0x53da5);};}exports['index']=function(_0x4f8125,_0x40ace1){const _0x4f10a6=a475_0x4fe758;let _0x347962={'include':[{'model':db[_0x4f10a6(0x13d)],'as':'Imap'},{'model':db[_0x4f10a6(0x119)],'as':'Smtp'},{'model':db[_0x4f10a6(0x128)],'as':'mandatoryDispositionPause'}]};const _0x33a60f={},_0x5a6eed={'count':0x0,'rows':[]},_0x40d244=_[_0x4f10a6(0x14e)](db[_0x4f10a6(0x107)][_0x4f10a6(0x176)],function(_0x51db95){const _0x40446c=_0x4f10a6;return{'name':_0x51db95[_0x40446c(0xee)],'type':_0x51db95[_0x40446c(0x166)][_0x40446c(0x162)]};});_0x33a60f[_0x4f10a6(0xf9)]=_[_0x4f10a6(0x14e)](_0x40d244,_0x4f10a6(0xfe)),_0x33a60f[_0x4f10a6(0x12e)]=_[_0x4f10a6(0x156)](_0x4f8125[_0x4f10a6(0x12e)]),_0x33a60f[_0x4f10a6(0x12d)]=_['intersection'](_0x33a60f[_0x4f10a6(0xf9)],_0x33a60f[_0x4f10a6(0x12e)]),_0x347962[_0x4f10a6(0xfc)]=_[_0x4f10a6(0x114)](_0x33a60f[_0x4f10a6(0xf9)],qs['fields'](_0x4f8125[_0x4f10a6(0x12e)][_0x4f10a6(0xf0)])),_0x347962[_0x4f10a6(0xfc)]=_0x347962['attributes'][_0x4f10a6(0x192)]?_0x347962[_0x4f10a6(0xfc)]:_0x33a60f[_0x4f10a6(0xf9)];typeof _0x4f8125[_0x4f10a6(0x12e)]['nolimit']===_0x4f10a6(0x196)&&(_0x347962[_0x4f10a6(0x164)]=qs[_0x4f10a6(0x164)](_0x4f8125[_0x4f10a6(0x12e)][_0x4f10a6(0x164)]),_0x347962[_0x4f10a6(0x16b)]=qs[_0x4f10a6(0x16b)](_0x4f8125[_0x4f10a6(0x12e)][_0x4f10a6(0x16b)]));_0x347962['order']=qs[_0x4f10a6(0x112)](_0x4f8125[_0x4f10a6(0x12e)][_0x4f10a6(0x112)]),_0x347962[_0x4f10a6(0x12b)]=qs['filters'](_[_0x4f10a6(0x146)](_0x4f8125[_0x4f10a6(0x12e)],_0x33a60f[_0x4f10a6(0x12d)]),_0x40d244);_0x4f8125[_0x4f10a6(0x12e)]['filter']&&(_0x347962['where']=_[_0x4f10a6(0x125)](_0x347962['where'],{[Op['or']]:_[_0x4f10a6(0x14e)](_0x40d244,function(_0x427473){const _0x3c1f2a=_0x4f10a6;if(_0x427473[_0x3c1f2a(0x166)]!=='VIRTUAL'){const _0x601a59={};return _0x601a59[_0x427473[_0x3c1f2a(0xfe)]]={[Op[_0x3c1f2a(0x15c)]]:'%'+_0x4f8125['query'][_0x3c1f2a(0x163)]+'%'},_0x601a59;}})}));_0x347962=_[_0x4f10a6(0x125)]({},_0x347962,_0x4f8125[_0x4f10a6(0x144)]);const _0x4296af={'where':_0x347962[_0x4f10a6(0x12b)]};return db['MailAccount'][_0x4f10a6(0x110)](_0x4296af)[_0x4f10a6(0x150)](function(_0x515d8d){const _0x5b7bfe=_0x4f10a6;return _0x5a6eed[_0x5b7bfe(0x110)]=_0x515d8d,_0x4f8125[_0x5b7bfe(0x12e)]['includeAll']&&(_0x347962[_0x5b7bfe(0x117)]=[{'all':!![]}]),db[_0x5b7bfe(0x107)][_0x5b7bfe(0x153)](_0x347962);})[_0x4f10a6(0x150)](function(_0x6b4ba4){return _0x5a6eed['rows']=_0x6b4ba4,_0x5a6eed;})[_0x4f10a6(0x150)](respondWithFilteredResult(_0x40ace1,_0x347962))['catch'](handleError(_0x40ace1,null));},exports[a475_0x4fe758(0x183)]=function(_0x122853,_0x21c004){const _0x5e53c6=a475_0x4fe758;let _0x1d2646={'raw':![],'where':{'id':_0x122853['params']['id']},'include':[{'model':db['MailServerIn'],'as':_0x5e53c6(0x142)},{'model':db[_0x5e53c6(0x119)],'as':_0x5e53c6(0x11c)},{'model':db['Pause'],'as':'mandatoryDispositionPause'}]};const _0x390aa2={};return _0x390aa2[_0x5e53c6(0xf9)]=_[_0x5e53c6(0x156)](db[_0x5e53c6(0x107)][_0x5e53c6(0x176)]),_0x390aa2['query']=_[_0x5e53c6(0x156)](_0x122853[_0x5e53c6(0x12e)]),_0x390aa2['filters']=_[_0x5e53c6(0x114)](_0x390aa2[_0x5e53c6(0xf9)],_0x390aa2[_0x5e53c6(0x12e)]),_0x1d2646[_0x5e53c6(0xfc)]=_['intersection'](_0x390aa2[_0x5e53c6(0xf9)],qs[_0x5e53c6(0xf0)](_0x122853['query'][_0x5e53c6(0xf0)])),_0x1d2646[_0x5e53c6(0xfc)]=_0x1d2646[_0x5e53c6(0xfc)][_0x5e53c6(0x192)]?_0x1d2646[_0x5e53c6(0xfc)]:_0x390aa2[_0x5e53c6(0xf9)],_0x122853[_0x5e53c6(0x12e)][_0x5e53c6(0xf4)]&&(_0x1d2646['include']=[{'all':!![]}]),_0x1d2646=_['merge']({},_0x1d2646,_0x122853[_0x5e53c6(0x144)]),db[_0x5e53c6(0x107)][_0x5e53c6(0x118)](_0x1d2646)[_0x5e53c6(0x150)](handleEntityNotFound(_0x21c004,null))[_0x5e53c6(0x150)](respondWithResult(_0x21c004,null))['catch'](handleError(_0x21c004,null));},exports[a475_0x4fe758(0x182)]=function(_0x1e5143,_0x25a00a){const _0x532bc1=a475_0x4fe758;return _0x1e5143[_0x532bc1(0x17d)]['id']&&delete _0x1e5143[_0x532bc1(0x17d)]['id'],db[_0x532bc1(0x107)][_0x532bc1(0x118)]({'where':{'id':_0x1e5143[_0x532bc1(0x132)]['id']},'include':[{'model':db['MailServerIn'],'as':'Imap'},{'model':db[_0x532bc1(0x119)],'as':_0x532bc1(0x11c)},{'model':db['Pause'],'as':_0x532bc1(0x123)}]})[_0x532bc1(0x150)](handleEntityNotFound(_0x25a00a,null))[_0x532bc1(0x150)](saveUpdates(_0x1e5143[_0x532bc1(0x17d)],null))[_0x532bc1(0x150)](function(_0x2777b1){const _0x4645dd=_0x532bc1;if(_0x2777b1&&_0x1e5143[_0x4645dd(0x17d)][_0x4645dd(0x142)])return db['MailServerIn'][_0x4645dd(0x182)](_0x1e5143['body'][_0x4645dd(0x142)],{'where':{'MailAccountId':_0x2777b1['id']}})[_0x4645dd(0x150)](function(){return _0x2777b1;});return _0x2777b1;})[_0x532bc1(0x150)](function(_0x1e9274){const _0x6dedee=_0x532bc1;if(_0x1e9274&&_0x1e5143[_0x6dedee(0x17d)]['Smtp'])return db['MailServerOut']['update'](_0x1e5143['body'][_0x6dedee(0x11c)],{'where':{'MailAccountId':_0x1e9274['id']}})[_0x6dedee(0x150)](function(){return _0x1e9274;});return _0x1e9274;})[_0x532bc1(0x150)](respondWithResult(_0x25a00a,null))[_0x532bc1(0x194)](handleError(_0x25a00a,null));},exports[a475_0x4fe758(0xfd)]=function(_0x4654ed,_0x3db92a){const _0x261b0c=a475_0x4fe758;return db['MailAccount']['describe']()[_0x261b0c(0x150)](respondWithResult(_0x3db92a,null))[_0x261b0c(0x194)](handleError(_0x3db92a,null));},exports[a475_0x4fe758(0x160)]=function(_0xe4686d,_0x1b0adb){const _0x2861ba=a475_0x4fe758;return _0xe4686d[_0x2861ba(0x17d)]['id']&&delete _0xe4686d[_0x2861ba(0x17d)]['id'],db['MailAccount']['findOne']({'where':{'id':_0xe4686d[_0x2861ba(0x132)]['id']}})[_0x2861ba(0x150)](handleEntityNotFound(_0x1b0adb,null))[_0x2861ba(0x150)](function(_0x358c17){const _0x148f4b=_0x2861ba;if(_0x358c17)return _0xe4686d[_0x148f4b(0x17d)][_0x148f4b(0x17f)]=_0x358c17['id'],db[_0x148f4b(0x124)][_0x148f4b(0x134)](_0xe4686d[_0x148f4b(0x17d)]);})[_0x2861ba(0x150)](respondWithResult(_0x1b0adb,null))['catch'](handleError(_0x1b0adb,null));},exports[a475_0x4fe758(0x17e)]=function(_0x253031,_0x11031e){const _0x2caf69=a475_0x4fe758;let _0x1d88d2={'raw':![],'where':{}};const _0x3505cc={},_0x15d30f={'count':0x0,'rows':[]};return db[_0x2caf69(0x107)][_0x2caf69(0x118)]({'where':{'id':_0x253031[_0x2caf69(0x132)]['id']}})[_0x2caf69(0x150)](handleEntityNotFound(_0x11031e,null))[_0x2caf69(0x150)](function(_0x303213){const _0x1f8c44=_0x2caf69;if(_0x303213)return _0x3505cc[_0x1f8c44(0xf9)]=_[_0x1f8c44(0x156)](db[_0x1f8c44(0x124)]['rawAttributes']),_0x3505cc[_0x1f8c44(0x12e)]=_[_0x1f8c44(0x156)](_0x253031['query']),_0x3505cc[_0x1f8c44(0x12d)]=_[_0x1f8c44(0x114)](_0x3505cc['model'],_0x3505cc[_0x1f8c44(0x12e)]),_0x1d88d2['attributes']=_[_0x1f8c44(0x114)](_0x3505cc[_0x1f8c44(0xf9)],qs[_0x1f8c44(0xf0)](_0x253031[_0x1f8c44(0x12e)][_0x1f8c44(0xf0)])),_0x1d88d2[_0x1f8c44(0xfc)]=_0x1d88d2[_0x1f8c44(0xfc)]['length']?_0x1d88d2[_0x1f8c44(0xfc)]:_0x3505cc[_0x1f8c44(0xf9)],typeof _0x253031['query'][_0x1f8c44(0xf3)]===_0x1f8c44(0x196)&&(_0x1d88d2[_0x1f8c44(0x164)]=qs[_0x1f8c44(0x164)](_0x253031['query'][_0x1f8c44(0x164)]),_0x1d88d2[_0x1f8c44(0x16b)]=qs[_0x1f8c44(0x16b)](_0x253031[_0x1f8c44(0x12e)][_0x1f8c44(0x16b)])),_0x1d88d2[_0x1f8c44(0x161)]=qs[_0x1f8c44(0x112)](_0x253031['query'][_0x1f8c44(0x112)]),_0x1d88d2[_0x1f8c44(0x12b)]=qs['filters'](_['pick'](_0x253031[_0x1f8c44(0x12e)],_0x3505cc['filters'])),_0x1d88d2[_0x1f8c44(0x12b)]['MailAccountId']=_0x303213['id'],_0x253031[_0x1f8c44(0x12e)][_0x1f8c44(0x163)]&&(_0x1d88d2[_0x1f8c44(0x12b)]=_[_0x1f8c44(0x125)](_0x1d88d2[_0x1f8c44(0x12b)],{[Op['or']]:_[_0x1f8c44(0x14e)](_0x1d88d2[_0x1f8c44(0xfc)],function(_0x55b215){const _0x7042a0=_0x1f8c44,_0xa40f71={};return _0xa40f71[_0x55b215]={[Op[_0x7042a0(0x15c)]]:'%'+_0x253031['query'][_0x7042a0(0x163)]+'%'},_0xa40f71;})})),_0x1d88d2=_[_0x1f8c44(0x125)]({},_0x1d88d2,_0x253031[_0x1f8c44(0x144)]),db[_0x1f8c44(0x124)][_0x1f8c44(0x110)]({'where':_0x1d88d2[_0x1f8c44(0x12b)]})[_0x1f8c44(0x150)](function(_0x40d9b6){const _0x428c1a=_0x1f8c44;return _0x15d30f[_0x428c1a(0x110)]=_0x40d9b6,_0x253031[_0x428c1a(0x12e)]['includeAll']&&(_0x1d88d2[_0x428c1a(0x117)]=[{'all':!![]}]),db[_0x428c1a(0x124)][_0x428c1a(0x153)](_0x1d88d2);})[_0x1f8c44(0x150)](function(_0x99d06f){const _0x554514=_0x1f8c44;return _0x15d30f[_0x554514(0xf6)]=_0x99d06f,_0x15d30f;});})[_0x2caf69(0x150)](respondWithFilteredResult(_0x11031e,_0x1d88d2))[_0x2caf69(0x194)](handleError(_0x11031e,null));},exports[a475_0x4fe758(0x189)]=function(_0x1b8a2d,_0x31ea48){const _0x52a40d=a475_0x4fe758;return db[_0x52a40d(0x107)][_0x52a40d(0x118)]({'where':{'id':_0x1b8a2d['params']['id']}})[_0x52a40d(0x150)](handleEntityNotFound(_0x31ea48,null))[_0x52a40d(0x150)](function(_0x381a6e){const _0x311d96=_0x52a40d;if(_0x381a6e)return _0x381a6e['removeDispositions'](_0x1b8a2d[_0x311d96(0x12e)][_0x311d96(0x100)]);})['then'](respondWithStatusCode(_0x31ea48,null))['catch'](handleError(_0x31ea48,null));},exports[a475_0x4fe758(0x122)]=function(_0x3b5d9c,_0x5bacbd){const _0x3d645b=a475_0x4fe758;return _0x3b5d9c[_0x3d645b(0x17d)]['id']&&delete _0x3b5d9c[_0x3d645b(0x17d)]['id'],db['MailAccount'][_0x3d645b(0x118)]({'where':{'id':_0x3b5d9c[_0x3d645b(0x132)]['id']}})[_0x3d645b(0x150)](handleEntityNotFound(_0x5bacbd,null))[_0x3d645b(0x150)](function(_0x375b6e){const _0x5cedbe=_0x3d645b;if(_0x375b6e)return _0x3b5d9c[_0x5cedbe(0x17d)]['MailAccountId']=_0x375b6e['id'],db[_0x5cedbe(0x127)][_0x5cedbe(0x134)](_0x3b5d9c[_0x5cedbe(0x17d)]);})[_0x3d645b(0x150)](respondWithResult(_0x5bacbd,null))['catch'](handleError(_0x5bacbd,null));},exports[a475_0x4fe758(0x120)]=function(_0x5fb10b,_0x388505){const _0xd4b2a8=a475_0x4fe758;let _0x1cf346={'raw':![],'where':{}};const _0x289c39={},_0x1c2639={'count':0x0,'rows':[]};return db[_0xd4b2a8(0x107)][_0xd4b2a8(0x118)]({'where':{'id':_0x5fb10b['params']['id']}})[_0xd4b2a8(0x150)](handleEntityNotFound(_0x388505,null))[_0xd4b2a8(0x150)](function(_0x320a57){const _0x358dc3=_0xd4b2a8;if(_0x320a57)return _0x289c39[_0x358dc3(0xf9)]=_['keys'](db[_0x358dc3(0x127)]['rawAttributes']),_0x289c39[_0x358dc3(0x12e)]=_[_0x358dc3(0x156)](_0x5fb10b['query']),_0x289c39[_0x358dc3(0x12d)]=_[_0x358dc3(0x114)](_0x289c39['model'],_0x289c39[_0x358dc3(0x12e)]),_0x1cf346['attributes']=_[_0x358dc3(0x114)](_0x289c39['model'],qs[_0x358dc3(0xf0)](_0x5fb10b[_0x358dc3(0x12e)][_0x358dc3(0xf0)])),_0x1cf346[_0x358dc3(0xfc)]=_0x1cf346[_0x358dc3(0xfc)]['length']?_0x1cf346['attributes']:_0x289c39[_0x358dc3(0xf9)],typeof _0x5fb10b[_0x358dc3(0x12e)][_0x358dc3(0xf3)]==='undefined'&&(_0x1cf346[_0x358dc3(0x164)]=qs['limit'](_0x5fb10b[_0x358dc3(0x12e)][_0x358dc3(0x164)]),_0x1cf346[_0x358dc3(0x16b)]=qs[_0x358dc3(0x16b)](_0x5fb10b[_0x358dc3(0x12e)]['offset'])),_0x1cf346[_0x358dc3(0x161)]=qs[_0x358dc3(0x112)](_0x5fb10b['query'][_0x358dc3(0x112)]),_0x1cf346[_0x358dc3(0x12b)]=qs['filters'](_[_0x358dc3(0x146)](_0x5fb10b['query'],_0x289c39[_0x358dc3(0x12d)])),_0x1cf346['where']['MailAccountId']=_0x320a57['id'],_0x5fb10b[_0x358dc3(0x12e)][_0x358dc3(0x163)]&&(_0x1cf346['where']=_['merge'](_0x1cf346[_0x358dc3(0x12b)],{[Op['or']]:_[_0x358dc3(0x14e)](_0x1cf346[_0x358dc3(0xfc)],function(_0x5c0cad){const _0x3a8bd7=_0x358dc3,_0x531525={};return _0x531525[_0x5c0cad]={[Op[_0x3a8bd7(0x15c)]]:'%'+_0x5fb10b['query']['filter']+'%'},_0x531525;})})),_0x1cf346=_['merge']({},_0x1cf346,_0x5fb10b[_0x358dc3(0x144)]),db['CannedAnswer'][_0x358dc3(0x110)]({'where':_0x1cf346[_0x358dc3(0x12b)]})['then'](function(_0x15ac3d){const _0x243698=_0x358dc3;return _0x1c2639[_0x243698(0x110)]=_0x15ac3d,_0x5fb10b[_0x243698(0x12e)][_0x243698(0xf4)]&&(_0x1cf346['include']=[{'all':!![]}]),db[_0x243698(0x127)]['findAll'](_0x1cf346);})[_0x358dc3(0x150)](function(_0x4fb860){const _0x1bdcb0=_0x358dc3;return _0x1c2639[_0x1bdcb0(0xf6)]=_0x4fb860,_0x1c2639;});})[_0xd4b2a8(0x150)](respondWithFilteredResult(_0x388505,_0x1cf346))['catch'](handleError(_0x388505,null));},exports['removeAnswers']=function(_0x4166c0,_0xecde5d){const _0x126c23=a475_0x4fe758;return db['MailAccount']['findOne']({'where':{'id':_0x4166c0[_0x126c23(0x132)]['id']}})['then'](handleEntityNotFound(_0xecde5d,null))[_0x126c23(0x150)](function(_0x5d475f){const _0xc17deb=_0x126c23;if(_0x5d475f)return _0x5d475f[_0xc17deb(0x11f)](_0x4166c0[_0xc17deb(0x12e)][_0xc17deb(0x100)]);})[_0x126c23(0x150)](respondWithStatusCode(_0xecde5d,null))[_0x126c23(0x194)](handleError(_0xecde5d,null));},exports[a475_0x4fe758(0x134)]=function(_0x5e6d54,_0x175663){const _0x308eed=a475_0x4fe758,_0x976caf={'name':_0x5e6d54[_0x308eed(0x17d)]['name'],'key':_0x5e6d54[_0x308eed(0x17d)][_0x308eed(0x162)],'email':_0x5e6d54[_0x308eed(0x17d)][_0x308eed(0x18c)],'ListId':_0x5e6d54['body'][_0x308eed(0x15b)],'active':!_['isNil'](_0x5e6d54[_0x308eed(0x17d)][_0x308eed(0x18b)])?_0x5e6d54[_0x308eed(0x17d)]['active']:!![],'description':_0x5e6d54[_0x308eed(0x17d)][_0x308eed(0x10d)]||null,'Imap':{},'Smtp':{}};return _[_0x308eed(0x104)](_0x5e6d54[_0x308eed(0x17d)][_0x308eed(0x180)])?(_0x5e6d54[_0x308eed(0x17d)]['cauthentication']?(_0x976caf[_0x308eed(0x142)]['user']=_0x5e6d54['body']['cuser'],_0x976caf[_0x308eed(0x11c)][_0x308eed(0x191)]=_0x5e6d54[_0x308eed(0x17d)]['cuser'],_0x976caf[_0x308eed(0x142)][_0x308eed(0x17c)]=_0x5e6d54['body'][_0x308eed(0x133)],_0x976caf[_0x308eed(0x11c)][_0x308eed(0x12c)]=_0x5e6d54[_0x308eed(0x17d)][_0x308eed(0x133)]):(_0x976caf['Imap']['authentication']=![],_0x976caf[_0x308eed(0x11c)][_0x308eed(0x152)]=![]),_0x976caf[_0x308eed(0x142)][_0x308eed(0x157)]=_0x5e6d54[_0x308eed(0x17d)]['Imap'][_0x308eed(0x157)],_0x976caf[_0x308eed(0x142)]['port']=_0x5e6d54['body'][_0x308eed(0x142)][_0x308eed(0x129)],_0x976caf[_0x308eed(0x11c)]['host']=_0x5e6d54[_0x308eed(0x17d)][_0x308eed(0x11c)][_0x308eed(0x157)],_0x976caf['Smtp'][_0x308eed(0x129)]=_0x5e6d54['body']['Smtp'][_0x308eed(0x129)]):(_0x976caf[_0x308eed(0x142)][_0x308eed(0x10b)]=_0x5e6d54[_0x308eed(0x17d)]['cservice'],_0x976caf[_0x308eed(0x11c)][_0x308eed(0x10b)]=_0x5e6d54[_0x308eed(0x17d)]['cservice'],_0x976caf['Imap'][_0x308eed(0x191)]=_0x5e6d54[_0x308eed(0x17d)][_0x308eed(0x139)],_0x976caf[_0x308eed(0x11c)]['user']=_0x5e6d54['body'][_0x308eed(0x139)],_0x976caf[_0x308eed(0x142)][_0x308eed(0x17c)]=_0x5e6d54[_0x308eed(0x17d)][_0x308eed(0x133)],_0x976caf[_0x308eed(0x11c)][_0x308eed(0x12c)]=_0x5e6d54[_0x308eed(0x17d)][_0x308eed(0x133)]),db['MailAccount']['create'](_0x976caf,{'include':[{'model':db[_0x308eed(0x119)],'as':'Smtp'},{'model':db[_0x308eed(0x13d)],'as':_0x308eed(0x142)}]})[_0x308eed(0x150)](function(_0x15fd5a){const _0x1fe0d8=_0x308eed,_0x588b8d=_0x5e6d54[_0x1fe0d8(0x191)][_0x1fe0d8(0x155)]({'plain':!![]});if(!_0x588b8d)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x588b8d[_0x1fe0d8(0x16c)]===_0x1fe0d8(0x191)){const _0x369984=_0x15fd5a[_0x1fe0d8(0x155)]({'plain':!![]});return db[_0x1fe0d8(0x197)][_0x1fe0d8(0x118)]({'where':{'name':'MailAccounts','userProfileId':_0x588b8d[_0x1fe0d8(0x106)]},'raw':!![]})[_0x1fe0d8(0x150)](function(_0x9daf3a){const _0x46211f=_0x1fe0d8;return _0x9daf3a&&_0x9daf3a[_0x46211f(0x16e)]===0x0?db[_0x46211f(0x141)][_0x46211f(0x134)]({'name':_0x369984[_0x46211f(0xfe)],'resourceId':_0x369984['id'],'type':_0x9daf3a['name'],'sectionId':_0x9daf3a['id']},{})[_0x46211f(0x150)](function(){return _0x15fd5a;}):_0x15fd5a;})['catch'](function(_0x2c7066){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x2c7066);throw _0x2c7066;});}return _0x15fd5a;})[_0x308eed(0x150)](respondWithResult(_0x175663,0xc9))['catch'](handleError(_0x175663,null));},exports['getImap']=function(_0x3de917,_0x31ff78){const _0xe65ef8=a475_0x4fe758;return db['MailAccount'][_0xe65ef8(0x118)]({'where':{'id':_0x3de917[_0xe65ef8(0x132)]['id']}})[_0xe65ef8(0x150)](handleEntityNotFound(_0x31ff78,null))['then'](function(_0x2f4ace){const _0x8170b7=_0xe65ef8;if(_0x2f4ace)return _0x2f4ace[_0x8170b7(0x18e)]();return null;})['then'](respondWithResult(_0x31ff78,null))[_0xe65ef8(0x194)](handleError(_0x31ff78,null));},exports[a475_0x4fe758(0xf1)]=function(_0x3d71b6,_0x3846c0){const _0x352581=a475_0x4fe758;return _0x3d71b6['body']['id']&&delete _0x3d71b6[_0x352581(0x17d)]['id'],db['MailAccount'][_0x352581(0x118)]({'where':{'id':_0x3d71b6[_0x352581(0x132)]['id']}})[_0x352581(0x150)](handleEntityNotFound(_0x3846c0,null))[_0x352581(0x150)](function(_0x2a146f){const _0x25b0ba=_0x352581;if(_0x2a146f)return _0x3d71b6['body'][_0x25b0ba(0x17f)]=_0x2a146f['id'],db[_0x25b0ba(0x13d)]['create'](_0x3d71b6[_0x25b0ba(0x17d)]);})[_0x352581(0x150)](respondWithResult(_0x3846c0,null))[_0x352581(0x194)](handleError(_0x3846c0,null));},exports['removeImap']=function(_0x13603a,_0x69eb01){const _0x4df12e=a475_0x4fe758;return db[_0x4df12e(0x107)]['findOne']({'where':{'id':_0x13603a[_0x4df12e(0x132)]['id']}})[_0x4df12e(0x150)](handleEntityNotFound(_0x69eb01,null))['then'](function(_0x56a0bc){const _0xf580a3=_0x4df12e;if(_0x56a0bc)return _0x56a0bc[_0xf580a3(0xec)](null);return null;})[_0x4df12e(0x150)](respondWithStatusCode(_0x69eb01,null))[_0x4df12e(0x194)](handleError(_0x69eb01,null));},exports[a475_0x4fe758(0x165)]=function(_0x5e2f85,_0x3a6032){const _0x31cace=a475_0x4fe758;return db['MailAccount'][_0x31cace(0x118)]({'where':{'id':_0x5e2f85[_0x31cace(0x132)]['id']}})['then'](handleEntityNotFound(_0x3a6032,null))[_0x31cace(0x150)](function(_0x46ab3){const _0x226f4c=_0x31cace;if(_0x46ab3)return _0x46ab3[_0x226f4c(0x165)]();return null;})[_0x31cace(0x150)](respondWithResult(_0x3a6032,null))[_0x31cace(0x194)](handleError(_0x3a6032,null));},exports[a475_0x4fe758(0x188)]=function(_0x50dfcd,_0x44ed2e){const _0x7f484b=a475_0x4fe758;return _0x50dfcd[_0x7f484b(0x17d)]['id']&&delete _0x50dfcd['body']['id'],db[_0x7f484b(0x107)][_0x7f484b(0x118)]({'where':{'id':_0x50dfcd[_0x7f484b(0x132)]['id']}})['then'](handleEntityNotFound(_0x44ed2e,null))[_0x7f484b(0x150)](function(_0x5d6117){const _0x43a6bb=_0x7f484b;if(_0x5d6117)return _0x50dfcd[_0x43a6bb(0x17d)][_0x43a6bb(0x17f)]=_0x5d6117['id'],db['MailServerOut'][_0x43a6bb(0x134)](_0x50dfcd[_0x43a6bb(0x17d)]);})[_0x7f484b(0x150)](respondWithResult(_0x44ed2e,null))[_0x7f484b(0x194)](handleError(_0x44ed2e,null));},exports['removeSmtp']=function(_0x515bc7,_0x34f452){const _0x46fe64=a475_0x4fe758;return db['MailAccount'][_0x46fe64(0x118)]({'where':{'id':_0x515bc7[_0x46fe64(0x132)]['id']}})['then'](handleEntityNotFound(_0x34f452,null))['then'](function(_0x1ed69b){const _0x39258e=_0x46fe64;if(_0x1ed69b)return _0x1ed69b[_0x39258e(0x187)](null);return null;})[_0x46fe64(0x150)](respondWithStatusCode(_0x34f452,null))[_0x46fe64(0x194)](handleError(_0x34f452,null));},exports[a475_0x4fe758(0x177)]=function(_0x1615a0,_0x140bd9){const _0x94ab01=a475_0x4fe758;return db['MailInteraction'][_0x94ab01(0x118)]({'where':{'id':_0x1615a0[_0x94ab01(0x132)]['id']}})[_0x94ab01(0x150)](function(_0x2f8fcc){const _0x415d87=_0x94ab01;if(_0x2f8fcc)return _0x2f8fcc[_0x415d87(0x177)](_0x1615a0[_0x415d87(0x17d)]['ids'],{'through':_[_0x415d87(0x17b)](_0x1615a0[_0x415d87(0x17d)],[_0x415d87(0x100),'id'])});})[_0x94ab01(0x150)](respondWithResult(_0x140bd9,null))[_0x94ab01(0x194)](handleError(_0x140bd9,null));},exports[a475_0x4fe758(0x147)]=function(_0x4bce6d,_0x17321f){const _0x5aa562=a475_0x4fe758;let _0x38bf0c={'raw':![],'where':{}};const _0x5718ed={},_0x1d1c4a={'count':0x0,'rows':[]};return db[_0x5aa562(0x107)][_0x5aa562(0x118)]({'where':{'id':_0x4bce6d[_0x5aa562(0x132)]['id']}})[_0x5aa562(0x150)](handleEntityNotFound(_0x17321f,null))['then'](function(_0x50897b){const _0xfefc56=_0x5aa562;if(_0x50897b)return _0x5718ed[_0xfefc56(0xf9)]=_[_0xfefc56(0x156)](db[_0xfefc56(0x13a)][_0xfefc56(0x176)]),_0x5718ed[_0xfefc56(0x12e)]=_[_0xfefc56(0x156)](_0x4bce6d['query']),_0x5718ed[_0xfefc56(0x12d)]=_[_0xfefc56(0x114)](_0x5718ed[_0xfefc56(0xf9)],_0x5718ed[_0xfefc56(0x12e)]),_0x38bf0c['attributes']=_[_0xfefc56(0x114)](_0x5718ed[_0xfefc56(0xf9)],qs[_0xfefc56(0xf0)](_0x4bce6d[_0xfefc56(0x12e)][_0xfefc56(0xf0)])),_0x38bf0c['attributes']=_0x38bf0c['attributes'][_0xfefc56(0x192)]?_0x38bf0c['attributes']:_0x5718ed[_0xfefc56(0xf9)],typeof _0x4bce6d[_0xfefc56(0x12e)][_0xfefc56(0xf3)]===_0xfefc56(0x196)&&(_0x38bf0c['limit']=qs[_0xfefc56(0x164)](_0x4bce6d['query'][_0xfefc56(0x164)]),_0x38bf0c[_0xfefc56(0x16b)]=qs['offset'](_0x4bce6d[_0xfefc56(0x12e)][_0xfefc56(0x16b)])),_0x38bf0c['order']=qs[_0xfefc56(0x112)](_0x4bce6d[_0xfefc56(0x12e)]['sort']),_0x38bf0c[_0xfefc56(0x12b)]=qs[_0xfefc56(0x12d)](_[_0xfefc56(0x146)](_0x4bce6d[_0xfefc56(0x12e)],_0x5718ed[_0xfefc56(0x12d)])),_0x38bf0c[_0xfefc56(0x12b)]['MailAccountId']=_0x50897b['id'],_0x4bce6d['query'][_0xfefc56(0x163)]&&(_0x38bf0c['where']=_['merge'](_0x38bf0c[_0xfefc56(0x12b)],{[Op['or']]:_[_0xfefc56(0x14e)](_0x38bf0c[_0xfefc56(0xfc)],function(_0xa937d3){const _0xd4fe8e=_0xfefc56,_0x48102e={};return _0x48102e[_0xa937d3]={[Op['like']]:'%'+_0x4bce6d[_0xd4fe8e(0x12e)][_0xd4fe8e(0x163)]+'%'},_0x48102e;})})),_0x38bf0c=_[_0xfefc56(0x125)]({},_0x38bf0c,_0x4bce6d[_0xfefc56(0x144)]),db[_0xfefc56(0x13a)][_0xfefc56(0x110)]({'where':_0x38bf0c[_0xfefc56(0x12b)]})[_0xfefc56(0x150)](function(_0x5d5c7f){const _0x44dd64=_0xfefc56;return _0x1d1c4a[_0x44dd64(0x110)]=_0x5d5c7f,_0x4bce6d['query'][_0x44dd64(0xf4)]&&(_0x38bf0c[_0x44dd64(0x117)]=[{'model':db[_0x44dd64(0x158)],'as':_0x44dd64(0x13b),'required':![]},{'model':db[_0x44dd64(0x143)],'as':_0x44dd64(0x11d),'attributes':[_0x44dd64(0xfe),_0x44dd64(0x101),'internal'],'required':![]},{'model':db[_0x44dd64(0x13f)],'as':_0x44dd64(0x11b),'attributes':['id','name',_0x44dd64(0x148)],'where':_0x4bce6d[_0x44dd64(0x12e)][_0x44dd64(0x14b)]?{'id':_0x4bce6d[_0x44dd64(0x12e)][_0x44dd64(0x14b)]}:undefined,'required':_0x4bce6d[_0x44dd64(0x12e)][_0x44dd64(0x14b)]?!![]:![]}]),db[_0x44dd64(0x13a)][_0x44dd64(0x153)](_0x38bf0c);})[_0xfefc56(0x150)](function(_0x3dba48){const _0x37a145=_0xfefc56;return _0x1d1c4a[_0x37a145(0xf6)]=_0x3dba48,_0x1d1c4a;});})['then'](respondWithFilteredResult(_0x17321f,_0x38bf0c))['catch'](handleError(_0x17321f,null));},exports[a475_0x4fe758(0x171)]=function(_0x279f38,_0x1b4b50){const _0x473fe7=a475_0x4fe758;return db['MailAccount'][_0x473fe7(0x118)]({'where':{'id':_0x279f38[_0x473fe7(0x132)]['id']}})[_0x473fe7(0x150)](handleEntityNotFound(_0x1b4b50,null))[_0x473fe7(0x150)](function(_0x57504f){const _0x119392=_0x473fe7;if(_0x57504f)return db[_0x119392(0xff)][_0x119392(0x135)](function(_0x23e6f2){const _0x1a0769=_0x119392;return db[_0x1a0769(0x170)][_0x1a0769(0xfa)]({'where':{'MailAccountId':_0x279f38[_0x1a0769(0x132)]['id']},'transaction':_0x23e6f2})[_0x1a0769(0x150)](function(){const _0x101181=_0x1a0769,_0x42f2fc=_[_0x101181(0x14e)](_0x279f38['body'],function(_0x168363){return _0x168363['MailAccountId']=_0x279f38['params']['id'],_0x168363;});return db['MailApplication'][_0x101181(0x169)](_0x42f2fc,{'transaction':_0x23e6f2});});})[_0x119392(0x150)](function(){const _0x36854b=_0x119392;return db[_0x36854b(0x170)][_0x36854b(0x109)]({'where':{'MailAccountId':_0x279f38[_0x36854b(0x132)]['id']},'order':_0x36854b(0x154)});});})['then'](respondWithResult(_0x1b4b50,null))[_0x473fe7(0x194)](handleError(_0x1b4b50,null));},exports[a475_0x4fe758(0x18a)]=function(_0x415311,_0x53122a){const _0x2ae963=a475_0x4fe758;let _0x219756={};const _0x287446={};let _0x1daf30,_0x46c15e;return db[_0x2ae963(0x107)][_0x2ae963(0x118)]({'where':{'id':_0x415311[_0x2ae963(0x132)]['id']}})[_0x2ae963(0x150)](handleEntityNotFound(_0x53122a,null))[_0x2ae963(0x150)](function(_0x45e3d4){const _0x55c070=_0x2ae963;if(_0x45e3d4)return _0x1daf30=_0x45e3d4,_0x287446[_0x55c070(0xf9)]=_[_0x55c070(0x156)](db['MailApplication'][_0x55c070(0x176)]),_0x287446[_0x55c070(0x12e)]=_[_0x55c070(0x156)](_0x415311[_0x55c070(0x12e)]),_0x287446['filters']=_[_0x55c070(0x114)](_0x287446[_0x55c070(0xf9)],_0x287446[_0x55c070(0x12e)]),_0x219756[_0x55c070(0xfc)]=_[_0x55c070(0x114)](_0x287446[_0x55c070(0xf9)],qs['fields'](_0x415311[_0x55c070(0x12e)]['fields'])),_0x219756['attributes']=_0x219756[_0x55c070(0xfc)][_0x55c070(0x192)]?_0x219756[_0x55c070(0xfc)]:_0x287446[_0x55c070(0xf9)],_0x219756['order']=qs[_0x55c070(0x112)](_0x415311[_0x55c070(0x12e)][_0x55c070(0x112)]),_0x219756[_0x55c070(0x12b)]=qs[_0x55c070(0x12d)](_[_0x55c070(0x146)](_0x415311[_0x55c070(0x12e)],_0x287446[_0x55c070(0x12d)])),_0x415311[_0x55c070(0x12e)]['filter']&&(_0x219756[_0x55c070(0x12b)]=_[_0x55c070(0x125)](_0x219756[_0x55c070(0x12b)],{[Op['or']]:_['map'](_0x219756[_0x55c070(0xfc)],function(_0x255c04){const _0x1c7850=_0x55c070,_0x2a5260={};return _0x2a5260[_0x255c04]={[Op[_0x1c7850(0x15c)]]:'%'+_0x415311['query']['filter']+'%'},_0x2a5260;})})),_0x219756=_['merge']({},_0x219756,_0x415311['options']),_0x1daf30[_0x55c070(0x18a)](_0x219756);})[_0x2ae963(0x150)](function(_0x5b3d3d){const _0x3e0c7a=_0x2ae963;if(_0x5b3d3d)return _0x46c15e=_0x5b3d3d[_0x3e0c7a(0x192)],typeof _0x415311[_0x3e0c7a(0x12e)][_0x3e0c7a(0xf3)]===_0x3e0c7a(0x196)&&(_0x219756[_0x3e0c7a(0x164)]=qs[_0x3e0c7a(0x164)](_0x415311[_0x3e0c7a(0x12e)][_0x3e0c7a(0x164)]),_0x219756[_0x3e0c7a(0x16b)]=qs[_0x3e0c7a(0x16b)](_0x415311[_0x3e0c7a(0x12e)][_0x3e0c7a(0x16b)])),_0x1daf30[_0x3e0c7a(0x18a)](_0x219756);})[_0x2ae963(0x150)](function(_0x5604a7){if(_0x5604a7)return _0x5604a7?{'count':_0x46c15e,'rows':_0x5604a7}:null;})[_0x2ae963(0x150)](respondWithResult(_0x53122a,null))[_0x2ae963(0x194)](handleError(_0x53122a,null));},exports[a475_0x4fe758(0x116)]=function(_0x56714a,_0x114c8e){const _0x4b581d=a475_0x4fe758;let _0xd9ebcb={'raw':!![],'where':{}};const _0x412632={},_0x219057={'count':0x0,'rows':[]};return db[_0x4b581d(0x107)]['findOne']({'where':{'id':_0x56714a[_0x4b581d(0x132)]['id']}})['then'](handleEntityNotFound(_0x114c8e,null))[_0x4b581d(0x150)](function(_0x50d74d){const _0x5437d6=_0x4b581d;if(_0x50d74d){_0x412632['model']=_[_0x5437d6(0x156)](db[_0x5437d6(0xef)][_0x5437d6(0x176)]),_0x412632[_0x5437d6(0x12e)]=_[_0x5437d6(0x156)](_0x56714a['query']),_0x412632[_0x5437d6(0x12d)]=_[_0x5437d6(0x114)](_0x412632[_0x5437d6(0xf9)],_0x412632[_0x5437d6(0x12e)]),_0xd9ebcb['attributes']=_['intersection'](_0x412632[_0x5437d6(0xf9)],qs['fields'](_0x56714a[_0x5437d6(0x12e)]['fields'])),_0xd9ebcb[_0x5437d6(0xfc)]=_0xd9ebcb[_0x5437d6(0xfc)][_0x5437d6(0x192)]?_0xd9ebcb[_0x5437d6(0xfc)]:_0x412632[_0x5437d6(0xf9)];typeof _0x56714a['query']['nolimit']===_0x5437d6(0x196)&&(_0xd9ebcb['limit']=qs['limit'](_0x56714a[_0x5437d6(0x12e)][_0x5437d6(0x164)]),_0xd9ebcb[_0x5437d6(0x16b)]=qs[_0x5437d6(0x16b)](_0x56714a[_0x5437d6(0x12e)][_0x5437d6(0x16b)]));_0xd9ebcb[_0x5437d6(0x161)]=qs[_0x5437d6(0x112)](_0x56714a[_0x5437d6(0x12e)][_0x5437d6(0x112)]),_0xd9ebcb['where']=qs[_0x5437d6(0x12d)](_['pick'](_0x56714a[_0x5437d6(0x12e)],_0x412632[_0x5437d6(0x12d)])),_0xd9ebcb[_0x5437d6(0x12b)]['MailAccountId']=_0x50d74d['id'];_0x56714a[_0x5437d6(0x12e)][_0x5437d6(0x163)]&&(_0xd9ebcb[_0x5437d6(0x12b)]=_['merge'](_0xd9ebcb[_0x5437d6(0x12b)],{[Op['or']]:_[_0x5437d6(0x14e)](_0xd9ebcb[_0x5437d6(0xfc)],function(_0x1f8c4d){const _0x651a26=_0x5437d6,_0xf35e15={};return _0xf35e15[_0x1f8c4d]={[Op[_0x651a26(0x15c)]]:'%'+_0x56714a[_0x651a26(0x12e)][_0x651a26(0x163)]+'%'},_0xf35e15;})}));if(_0x56714a[_0x5437d6(0x12e)][_0x5437d6(0x14c)]){const _0x4b0d6a=_0x56714a[_0x5437d6(0x12e)]['$gte']['split'](','),_0x429a33={};_0x429a33[_0x4b0d6a[0x0]]={[Op[_0x5437d6(0x131)]]:moment(_0x4b0d6a[0x1])[_0x5437d6(0x16f)](_0x5437d6(0x136))},_0xd9ebcb[_0x5437d6(0x12b)]=_[_0x5437d6(0x125)](_0xd9ebcb[_0x5437d6(0x12b)],_0x429a33);}return _0xd9ebcb=_['merge']({},_0xd9ebcb,_0x56714a[_0x5437d6(0x144)]),db[_0x5437d6(0xef)]['count']({'where':_0xd9ebcb[_0x5437d6(0x12b)]})[_0x5437d6(0x150)](function(_0x55ce7d){const _0x24156c=_0x5437d6;return _0x219057[_0x24156c(0x110)]=_0x55ce7d,_0x56714a[_0x24156c(0x12e)][_0x24156c(0xf4)]&&(_0xd9ebcb['include']=[{'all':!![]}]),db['MailMessage'][_0x24156c(0x153)](_0xd9ebcb);})['then'](function(_0x557a34){return _0x219057['rows']=_0x557a34,_0x219057;});}})['then'](respondWithFilteredResult(_0x114c8e,_0xd9ebcb))['catch'](handleError(_0x114c8e,null));},exports[a475_0x4fe758(0x121)]=function(_0x11eaf4,_0x870c5c){const _0x20735b=a475_0x4fe758;let _0x43b9ac,_0x4aef54={},_0x95d61d;return _0x11eaf4['body']['to']&&(_0x95d61d=_0x11eaf4[_0x20735b(0x17d)]['to'][_0x20735b(0x137)](',')[0x0]),db['MailAccount'][_0x20735b(0x118)]({'where':{'id':_0x11eaf4['params']['id']},'include':[{'model':db[_0x20735b(0x130)],'as':_0x20735b(0x15a),'include':[{'model':db[_0x20735b(0x158)],'as':_0x20735b(0x113),'where':{'email':_0x95d61d},'limit':0x1,'order':[[_0x20735b(0x16d),_0x20735b(0x15d)]]}]},{'model':db[_0x20735b(0x119)],'as':'Smtp','raw':!![]}]})[_0x20735b(0x150)](handleEntityNotFound(_0x870c5c,null))[_0x20735b(0x150)](function(_0x4ebeed){const _0x1455c0=_0x20735b;if(_0x4ebeed){_0x43b9ac=_0x4ebeed;if(_0x4ebeed['Smtp']){_[_0x1455c0(0x104)](_0x11eaf4[_0x1455c0(0x17d)][_0x1455c0(0x12f)])&&(_0x11eaf4[_0x1455c0(0x17d)][_0x1455c0(0x12f)]=util[_0x1455c0(0x16f)]('%s\x20<%s>',_0x4ebeed[_0x1455c0(0xfe)],_0x4ebeed[_0x1455c0(0x18c)]||_0x4ebeed[_0x1455c0(0x11c)]['user']));if(_0x11eaf4[_0x1455c0(0x17d)][_0x1455c0(0xf2)]&&_0x11eaf4['body'][_0x1455c0(0xf2)]['length'])for(let _0x1fae96=0x0;_0x1fae96<_0x11eaf4['body'][_0x1455c0(0xf2)][_0x1455c0(0x192)];_0x1fae96+=0x1){_0x11eaf4[_0x1455c0(0x17d)]['attachments'][_0x1fae96]={'filename':_0x11eaf4[_0x1455c0(0x17d)][_0x1455c0(0xf2)][_0x1fae96][_0x1455c0(0xfe)],'path':path[_0x1455c0(0x14d)](config['root'],_0x1455c0(0x172),_0x11eaf4[_0x1455c0(0x17d)]['attachments'][_0x1fae96][_0x1455c0(0x11e)])};}const _0x5a2176={'tls':{'rejectUnauthorized':![]}};return _['isNil'](_0x4ebeed[_0x1455c0(0x11c)][_0x1455c0(0x10b)])?(_0x4ebeed['Smtp']['authentication']&&(_0x5a2176[_0x1455c0(0x193)]={'user':_0x4ebeed[_0x1455c0(0x11c)][_0x1455c0(0x191)],'pass':_0x4ebeed[_0x1455c0(0x11c)][_0x1455c0(0x12c)]}),_0x5a2176[_0x1455c0(0x157)]=_0x4ebeed[_0x1455c0(0x11c)][_0x1455c0(0x157)],_0x5a2176[_0x1455c0(0x129)]=_0x4ebeed['Smtp'][_0x1455c0(0x129)],_0x5a2176['secure']=_0x4ebeed[_0x1455c0(0x11c)][_0x1455c0(0x15f)]):(_0x5a2176[_0x1455c0(0x10b)]=_0x4ebeed[_0x1455c0(0x11c)]['service'],_0x5a2176[_0x1455c0(0x193)]={'user':_0x4ebeed[_0x1455c0(0x11c)][_0x1455c0(0x191)],'pass':_0x4ebeed[_0x1455c0(0x11c)]['pass']}),respondWithRpcPromise(_0x1455c0(0x17a),_0x1455c0(0x159),{'account':_0x5a2176,'message':_0x11eaf4['body']});}else throw new Error(_0x1455c0(0x10c));}})['then'](function(_0x2e8232){const _0x1029dc=_0x20735b;if(_0x2e8232){_0x4aef54=_0x2e8232;if(_0x43b9ac[_0x1029dc(0x15a)])return _0x43b9ac[_0x1029dc(0x15a)][_0x1029dc(0x113)][_0x1029dc(0x192)]?_0x43b9ac['List'][_0x1029dc(0x113)][0x0]:db[_0x1029dc(0x158)][_0x1029dc(0x134)](_['defaults'](_0x11eaf4[_0x1029dc(0x17d)],{'firstName':_0x11eaf4[_0x1029dc(0x17d)]['to'],'email':_0x11eaf4[_0x1029dc(0x17d)]['to'],'phone':_0x11eaf4[_0x1029dc(0x17d)]['to'],'ListId':_0x43b9ac[_0x1029dc(0x15b)]}));else throw new Error(_0x1029dc(0x10c));}})['then'](function(_0x1c880f){const _0x4a0f17=_0x20735b;if(_0x1c880f){let _0xf777f={'UserId':_0x11eaf4[_0x4a0f17(0x191)]['id'],'ContactId':_0x1c880f['id'],'MailAccountId':_0x43b9ac['id'],'inReplyTo':_0x4aef54[_0x4a0f17(0x181)],'to':_0x11eaf4[_0x4a0f17(0x17d)][_0x4a0f17(0x12f)],'cc':_0x11eaf4[_0x4a0f17(0x17d)]['cc'],'subject':_0x11eaf4[_0x4a0f17(0x17d)][_0x4a0f17(0x15e)],'attach':_0x11eaf4[_0x4a0f17(0x17d)][_0x4a0f17(0x173)],'firstMsgDirection':_0x4a0f17(0x103),'lastMsgAt':moment()[_0x4a0f17(0x16f)](_0x4a0f17(0x136)),'lastMsgDirection':_0x4a0f17(0x103),'lastMsgBody':_0x11eaf4[_0x4a0f17(0x17d)][_0x4a0f17(0x17d)],'Messages':[_['merge'](_0x11eaf4[_0x4a0f17(0x17d)],{'messageId':_0x4aef54[_0x4a0f17(0x181)],'sentAt':moment()[_0x4a0f17(0x16f)]('YYYY-MM-DD\x20HH:mm:ss'),'read':!![],'MailAccountId':_0x43b9ac['id'],'UserId':_0x11eaf4[_0x4a0f17(0x191)]['id'],'ContactId':_0x1c880f['id']})]};return _0x11eaf4[_0x4a0f17(0x17d)]['Interaction']&&(_0xf777f=_['merge'](_0xf777f,_0x11eaf4[_0x4a0f17(0x17d)][_0x4a0f17(0xed)])),db[_0x4a0f17(0x13a)][_0x4a0f17(0x134)](_0xf777f,{'include':[{'model':db[_0x4a0f17(0xef)],'as':_0x4a0f17(0x179)}]});}})['then'](respondWithResult(_0x870c5c,null))[_0x20735b(0x194)](handleError(_0x870c5c,null));},exports[a475_0x4fe758(0xf5)]=function(_0xe3196e,_0x38201e){const _0x2141e5=a475_0x4fe758;return db[_0x2141e5(0x107)][_0x2141e5(0x118)]({'where':{'id':_0xe3196e[_0x2141e5(0x132)]['id']},'include':[{'model':db[_0x2141e5(0x119)],'as':'Smtp','raw':!![]}]})['then'](handleEntityNotFound(_0x38201e,null))[_0x2141e5(0x150)](function(_0x3141be){const _0x299ef9=_0x2141e5;if(_0x3141be&&_0x3141be[_0x299ef9(0x11c)]){const _0x2e3bc1={'id':_0x3141be['id'],'tls':{'rejectUnauthorized':![]}};return _0x3141be[_0x299ef9(0x11c)][_0x299ef9(0x10b)]?_0x2e3bc1[_0x299ef9(0x10b)]=_0x3141be[_0x299ef9(0x11c)][_0x299ef9(0x10b)]:(_0x2e3bc1['host']=_0x3141be['Smtp']['host'],_0x2e3bc1[_0x299ef9(0x129)]=_0x3141be[_0x299ef9(0x11c)][_0x299ef9(0x129)],_0x2e3bc1[_0x299ef9(0x15f)]=_0x3141be[_0x299ef9(0x11c)][_0x299ef9(0x15f)]),_0x3141be['Smtp'][_0x299ef9(0x152)]&&(_0x2e3bc1[_0x299ef9(0x193)]={'user':_0x3141be[_0x299ef9(0x11c)]['user'],'pass':_0x3141be['Smtp'][_0x299ef9(0x12c)]}),respondWithRpcPromise(_0x299ef9(0x11a),_0x299ef9(0xf5),{'account':_0x2e3bc1});}})['then'](respondWithResult(_0x38201e,null))[_0x2141e5(0x194)](handleError(_0x38201e,null));},exports[a475_0x4fe758(0xfa)]=function(_0xd6eaab,_0x1a724f){const _0x34058d=a475_0x4fe758;return db['MailAccount'][_0x34058d(0x118)]({'where':{'id':_0xd6eaab['params']['id']}})[_0x34058d(0x150)](handleEntityNotFound(_0x1a724f,null))[_0x34058d(0x150)](function(_0x248565){const _0x238a14=_0x34058d;if(_0x248565&&_0x248565[_0x238a14(0x10b)])throw new ValidationError(_0x238a14(0x10f));return _0x248565;})[_0x34058d(0x150)](removeEntity(_0x1a724f,null))[_0x34058d(0x194)](handleError(_0x1a724f,null));},exports[a475_0x4fe758(0x186)]=function(_0x2b9e47,_0x12ad56){const _0x11aa92=a475_0x4fe758;return db[_0x11aa92(0x107)][_0x11aa92(0x118)]({'where':{'id':_0x2b9e47[_0x11aa92(0x132)]['id']}})[_0x11aa92(0x150)](function(_0x335820){const _0x449a47=_0x11aa92;if(_0x335820)return _0x335820['addAgents'](_0x2b9e47[_0x449a47(0x17d)][_0x449a47(0x100)],{'through':_['omit'](_0x2b9e47[_0x449a47(0x17d)],['ids','id'])})[_0x449a47(0x150)](function(_0x4fdde0){const _0x406042=_0x449a47;for(let _0x362218=0x0;_0x362218<_0x2b9e47[_0x406042(0x17d)][_0x406042(0x100)][_0x406042(0x192)];_0x362218+=0x1){socket['emit'](_0x406042(0x12a),{'UserId':_0x2b9e47[_0x406042(0x17d)][_0x406042(0x100)][_0x362218],'MailAccountId':_0x2b9e47[_0x406042(0x132)]['id']});}return _0x4fdde0;});})[_0x11aa92(0x150)](respondWithResult(_0x12ad56,null))['catch'](handleError(_0x12ad56,null));},exports['removeAgents']=function(_0x527f39,_0x3fa6f1){const _0x2cd281=a475_0x4fe758;return db[_0x2cd281(0x107)][_0x2cd281(0x118)]({'where':{'id':_0x527f39[_0x2cd281(0x132)]['id']}})[_0x2cd281(0x150)](handleEntityNotFound(_0x3fa6f1,null))[_0x2cd281(0x150)](function(_0x521545){const _0x5a1c22=_0x2cd281;if(_0x521545)return _0x521545[_0x5a1c22(0x13e)](_0x527f39['query'][_0x5a1c22(0x100)])['then'](function(){const _0x5249b2=_0x5a1c22;if(_['isArray'](_0x527f39['query']['ids']))for(let _0x2eb013=0x0;_0x2eb013<_0x527f39[_0x5249b2(0x12e)][_0x5249b2(0x100)]['length'];_0x2eb013+=0x1){socket[_0x5249b2(0x16a)](_0x5249b2(0x178),{'UserId':Number(_0x527f39[_0x5249b2(0x12e)][_0x5249b2(0x100)][_0x2eb013]),'MailAccountId':Number(_0x527f39[_0x5249b2(0x132)]['id'])});}else socket[_0x5249b2(0x16a)](_0x5249b2(0x178),{'UserId':Number(_0x527f39['query'][_0x5249b2(0x100)]),'MailAccountId':Number(_0x527f39[_0x5249b2(0x132)]['id'])});});})[_0x2cd281(0x150)](respondWithStatusCode(_0x3fa6f1,null))['catch'](handleError(_0x3fa6f1,null));},exports['getAgents']=function(_0xb464fb,_0x57ea49){const _0xb41ba6=a475_0x4fe758;let _0x4b5f75={};const _0xafafc={};let _0x30b490,_0x578ae9;return db[_0xb41ba6(0x107)][_0xb41ba6(0x118)]({'where':{'id':_0xb464fb[_0xb41ba6(0x132)]['id']}})[_0xb41ba6(0x150)](handleEntityNotFound(_0x57ea49,null))['then'](function(_0x3298a2){const _0x60c7a0=_0xb41ba6;if(_0x3298a2)return _0x30b490=_0x3298a2,_0xafafc[_0x60c7a0(0xf9)]=_['keys'](db['User'][_0x60c7a0(0x176)]),_0xafafc['query']=_[_0x60c7a0(0x156)](_0xb464fb[_0x60c7a0(0x12e)]),_0xafafc[_0x60c7a0(0x12d)]=_[_0x60c7a0(0x114)](_0xafafc[_0x60c7a0(0xf9)],_0xafafc['query']),_0x4b5f75['attributes']=_['intersection'](_0xafafc['model'],qs[_0x60c7a0(0xf0)](_0xb464fb[_0x60c7a0(0x12e)][_0x60c7a0(0xf0)])),_0x4b5f75['attributes']=_0x4b5f75['attributes']['length']?_0x4b5f75[_0x60c7a0(0xfc)]:_0xafafc[_0x60c7a0(0xf9)],_0x4b5f75[_0x60c7a0(0x161)]=qs[_0x60c7a0(0x112)](_0xb464fb['query']['sort']),_0x4b5f75[_0x60c7a0(0x12b)]=qs['filters'](_['pick'](_0xb464fb[_0x60c7a0(0x12e)],_0xafafc['filters'])),_0xb464fb[_0x60c7a0(0x12e)][_0x60c7a0(0x163)]&&(_0x4b5f75['where']=_[_0x60c7a0(0x125)](_0x4b5f75[_0x60c7a0(0x12b)],{[Op['or']]:_[_0x60c7a0(0x14e)](_0x4b5f75[_0x60c7a0(0xfc)],function(_0x43ab9c){const _0x2972ac=_0x60c7a0,_0x25d6de={};return _0x25d6de[_0x43ab9c]={[Op[_0x2972ac(0x15c)]]:'%'+_0xb464fb[_0x2972ac(0x12e)]['filter']+'%'},_0x25d6de;})})),_0x4b5f75=_[_0x60c7a0(0x125)]({},_0x4b5f75,_0xb464fb['options']),_0x30b490[_0x60c7a0(0x13c)](_0x4b5f75);})['then'](function(_0x4f3977){const _0x842571=_0xb41ba6;if(_0x4f3977)return _0x578ae9=_0x4f3977['length'],typeof _0xb464fb[_0x842571(0x12e)]['nolimit']===_0x842571(0x196)&&(_0x4b5f75[_0x842571(0x164)]=qs[_0x842571(0x164)](_0xb464fb[_0x842571(0x12e)][_0x842571(0x164)]),_0x4b5f75[_0x842571(0x16b)]=qs[_0x842571(0x16b)](_0xb464fb[_0x842571(0x12e)][_0x842571(0x16b)])),_0x30b490[_0x842571(0x13c)](_0x4b5f75);})['then'](function(_0x52d2d6){if(_0x52d2d6)return _0x52d2d6?{'count':_0x578ae9,'rows':_0x52d2d6}:null;})[_0xb41ba6(0x150)](respondWithResult(_0x57ea49,null))[_0xb41ba6(0x194)](handleError(_0x57ea49,null));}; \ No newline at end of file +const a475_0x125f=['sendMail','MailServerIn','MailAccountId','path','Messages','merge','end','index','destroy','port','role','MailAccounts','includeAll','findAndCountAll','List','getImap','CmContact','UserProfileResource','Smtp','user','color','authentication','request','../../config/logger','basename','register','intersection','code','params','VerifySmtp','cuser','VIRTUAL','format','internal','type','../../mysqldb','jayson/promise','filters','gte','getSmtp','json','fields','removeImap','removeAnswers','removeAgents','mandatoryDispositionPause','debug','isNil','stringify','sort','sequelize','result','secure','transaction','nolimit','out','removeSmtp','MailApplication','stack','ids','userMailAccount:save','util','name','tag','Content-Range','getMessages','query','fullname','model','User','MailAccount,\x20%s,\x20%s','pass','Tags','addImap','cpassword','key','body','ListId','Contacts','attachments','addDisposition','SendMail','List\x20not\x20found','YYYY-MM-DD\x20HH:mm:ss','removeDispositions','rawAttributes','userMailAccount:remove','options','fieldName','addApplications','getAnswers','offset','request\x20sent','MailInteraction','description','limit','Interaction','service','CannedAnswer','addInteraction','include','Pause','lodash','email','priority','attributes','map','moment','Owner','getAgents','filter','message','then','isArray','setImap','CmList','info','password','status','MailServerOut','$gte','create','from','getInteractions','get','addSmtp','join','where','keys','update','verifySmtp','Disposition','http','bulkCreate','./mailAccount.socket','host','findOne','count','set','Tag','send','autoAssociation','emit','rows','catch','cservice','../../components/parsers/qs','length','auth','updatedAt','addAgents','sendStatus','MailMessage','MailAccount','userProfileId','findAll','order','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Imap','defaults','error','describe','UserProfileSection','root','../../rediscache','attach','active','pick','like','undefined','omit','DESC'];(function(_0x5bd165,_0x24db0a){const _0x125f8c=function(_0x33ded0){while(--_0x33ded0){_0x5bd165['push'](_0x5bd165['shift']());}};_0x125f8c(++_0x24db0a);}(a475_0x125f,0xba));const a475_0x33de=function(_0x5bd165,_0x24db0a){_0x5bd165=_0x5bd165-0x15d;let _0x125f8c=a475_0x125f[_0x5bd165];return _0x125f8c;};const a475_0x2b7078=a475_0x33de;'use strict';const moment=require(a475_0x2b7078(0x1ba)),util=require(a475_0x2b7078(0x18c)),path=require(a475_0x2b7078(0x1fe)),_=require(a475_0x2b7078(0x1b5)),{getSocket}=require(a475_0x2b7078(0x1f3)),socket=getSocket(),qs=require(a475_0x2b7078(0x1e1)),logger=require(a475_0x2b7078(0x166))('api'),config=require('../../config/environment'),{db}=require(a475_0x2b7078(0x172)),{Op,ValidationError}=require(a475_0x2b7078(0x181));require(a475_0x2b7078(0x1d5))[a475_0x2b7078(0x168)](socket);const jayson=require(a475_0x2b7078(0x173)),client=jayson['client'][a475_0x2b7078(0x1d3)]({'port':0x232b});function respondWithRpcPromise(_0xfc6a9,_0x210045,_0x3f9bd6,_0x3d62aa){return new Promise(function(_0x232b9b,_0x522561){const _0x109159=a475_0x33de,_0x51e66b=_0x3d62aa||client;return _0x51e66b[_0x109159(0x165)](_0xfc6a9,_0x3f9bd6)[_0x109159(0x1bf)](function(_0x2b68f9){const _0x579059=_0x109159;logger[_0x579059(0x1c3)](_0x579059(0x195),_0x210045,_0x579059(0x1ab)),logger[_0x579059(0x17d)]('MailAccount,\x20%s,\x20%s,\x20%s',_0x210045,'request\x20sent',JSON[_0x579059(0x17f)](_0x2b68f9));if(_0x2b68f9[_0x579059(0x1ef)]){if(_0x2b68f9['error'][_0x579059(0x16a)]===0x1f4)return logger[_0x579059(0x1ef)](_0x579059(0x195),_0x210045,_0x2b68f9[_0x579059(0x1ef)][_0x579059(0x1be)]),_0x522561(_0x2b68f9[_0x579059(0x1ef)][_0x579059(0x1be)]);return logger['error']('MailAccount,\x20%s,\x20%s',_0x210045,_0x2b68f9[_0x579059(0x1ef)][_0x579059(0x1be)]),_0x232b9b(_0x2b68f9[_0x579059(0x1ef)][_0x579059(0x1be)]);}else logger[_0x579059(0x1c3)](_0x579059(0x195),_0x210045,'request\x20sent'),_0x232b9b(_0x2b68f9[_0x579059(0x182)][_0x579059(0x1be)]);})[_0x109159(0x1df)](function(_0xab1360){const _0x56a973=_0x109159;logger['error'](_0x56a973(0x195),_0x210045,_0xab1360),_0x522561(_0xab1360);});});}function respondWithStatusCode(_0x18a08b,_0x806b55){return _0x806b55=_0x806b55||0xcc,function(_0x2d5f19){const _0x362e48=a475_0x33de;if(_0x2d5f19)return _0x18a08b[_0x362e48(0x1e6)](_0x806b55);return _0x18a08b['status'](_0x806b55)['end']();};}function respondWithResult(_0x20647e,_0x6fd646){return _0x6fd646=_0x6fd646||0xc8,function(_0x38acbf){const _0x2c561b=a475_0x33de;if(_0x38acbf)return _0x20647e[_0x2c561b(0x1c5)](_0x6fd646)[_0x2c561b(0x177)](_0x38acbf);};}function respondWithFilteredResult(_0x2a69ad,_0x4020b6){return function(_0x55ca82){const _0x1a5d9e=a475_0x33de;if(_0x55ca82){const _0x26654d=_0x55ca82[_0x1a5d9e(0x1d8)],_0x8ba8d2=_0x4020b6[_0x1a5d9e(0x1aa)];let _0x251562=_0x4020b6[_0x1a5d9e(0x1aa)]+_0x4020b6[_0x1a5d9e(0x1ae)],_0xc95cb3;return _0x251562>=_0x26654d?(_0x251562=_0x26654d,_0xc95cb3=0xc8):_0xc95cb3=0xce,_0x2a69ad[_0x1a5d9e(0x1c5)](_0xc95cb3),_0x2a69ad[_0x1a5d9e(0x1d9)](_0x1a5d9e(0x18f),_0x8ba8d2+'-'+_0x251562+'/'+_0x26654d)[_0x1a5d9e(0x177)](_0x55ca82);}return null;};}function saveUpdates(_0x38df23){return function(_0x121034){const _0x403f33=a475_0x33de;if(_0x121034)return _0x121034[_0x403f33(0x1d0)](_0x38df23)['then'](function(_0x4f1897){return _0x4f1897;});return null;};}function removeEntity(_0x3ae55b){return function(_0x3042f3){const _0x529312=a475_0x33de;if(_0x3042f3)return _0x3042f3['destroy']()[_0x529312(0x1bf)](function(){const _0x2ca809=_0x529312,_0x1d1625=_0x3042f3[_0x2ca809(0x1cb)]({'plain':!![]}),_0x35d5a2='MailAccounts';return db['UserProfileResource'][_0x2ca809(0x203)]({'where':{'type':_0x35d5a2,'resourceId':_0x1d1625['id']}})[_0x2ca809(0x1bf)](function(){return _0x3042f3;});})[_0x529312(0x1bf)](function(){const _0x179fe7=_0x529312;_0x3ae55b[_0x179fe7(0x1c5)](0xcc)[_0x179fe7(0x201)]();});};}function handleEntityNotFound(_0x2d4ea0){return function(_0x2b451a){const _0x124012=a475_0x33de;return!_0x2b451a&&_0x2d4ea0[_0x124012(0x1e6)](0x194),_0x2b451a;};}function handleError(_0x5ef889,_0x113b6d){return _0x113b6d=_0x113b6d||0x1f4,function(_0x248c80){const _0x52241f=a475_0x33de;logger[_0x52241f(0x1ef)](_0x248c80[_0x52241f(0x189)]),_0x248c80[_0x52241f(0x18d)]&&delete _0x248c80[_0x52241f(0x18d)],_0x5ef889[_0x52241f(0x1c5)](_0x113b6d)[_0x52241f(0x1db)](_0x248c80);};}exports[a475_0x2b7078(0x202)]=function(_0xcca307,_0x2f574d){const _0x3024e4=a475_0x2b7078;let _0x41e900={'include':[{'model':db[_0x3024e4(0x1fc)],'as':_0x3024e4(0x1ed)},{'model':db['MailServerOut'],'as':_0x3024e4(0x161)},{'model':db[_0x3024e4(0x1b4)],'as':_0x3024e4(0x17c)}]};const _0x5c585c={},_0x3ba439={'count':0x0,'rows':[]},_0x48c1b2=_[_0x3024e4(0x1b9)](db[_0x3024e4(0x1e8)]['rawAttributes'],function(_0x836f45){const _0x23c31b=_0x3024e4;return{'name':_0x836f45[_0x23c31b(0x1a7)],'type':_0x836f45[_0x23c31b(0x171)][_0x23c31b(0x19a)]};});_0x5c585c['model']=_['map'](_0x48c1b2,_0x3024e4(0x18d)),_0x5c585c['query']=_['keys'](_0xcca307[_0x3024e4(0x191)]),_0x5c585c['filters']=_[_0x3024e4(0x169)](_0x5c585c[_0x3024e4(0x193)],_0x5c585c[_0x3024e4(0x191)]),_0x41e900['attributes']=_[_0x3024e4(0x169)](_0x5c585c[_0x3024e4(0x193)],qs[_0x3024e4(0x178)](_0xcca307[_0x3024e4(0x191)][_0x3024e4(0x178)])),_0x41e900[_0x3024e4(0x1b8)]=_0x41e900[_0x3024e4(0x1b8)][_0x3024e4(0x1e2)]?_0x41e900[_0x3024e4(0x1b8)]:_0x5c585c[_0x3024e4(0x193)];typeof _0xcca307[_0x3024e4(0x191)][_0x3024e4(0x185)]===_0x3024e4(0x1f8)&&(_0x41e900['limit']=qs['limit'](_0xcca307[_0x3024e4(0x191)][_0x3024e4(0x1ae)]),_0x41e900[_0x3024e4(0x1aa)]=qs['offset'](_0xcca307[_0x3024e4(0x191)][_0x3024e4(0x1aa)]));_0x41e900[_0x3024e4(0x1eb)]=qs[_0x3024e4(0x180)](_0xcca307[_0x3024e4(0x191)][_0x3024e4(0x180)]),_0x41e900[_0x3024e4(0x1ce)]=qs[_0x3024e4(0x174)](_[_0x3024e4(0x1f6)](_0xcca307[_0x3024e4(0x191)],_0x5c585c[_0x3024e4(0x174)]),_0x48c1b2);_0xcca307[_0x3024e4(0x191)][_0x3024e4(0x1bd)]&&(_0x41e900['where']=_[_0x3024e4(0x200)](_0x41e900[_0x3024e4(0x1ce)],{[Op['or']]:_[_0x3024e4(0x1b9)](_0x48c1b2,function(_0x2c6127){const _0x378230=_0x3024e4;if(_0x2c6127[_0x378230(0x171)]!==_0x378230(0x16e)){const _0x4cad4c={};return _0x4cad4c[_0x2c6127[_0x378230(0x18d)]]={[Op[_0x378230(0x1f7)]]:'%'+_0xcca307['query'][_0x378230(0x1bd)]+'%'},_0x4cad4c;}})}));_0x41e900=_[_0x3024e4(0x200)]({},_0x41e900,_0xcca307['options']);const _0xc3d3b3={'where':_0x41e900[_0x3024e4(0x1ce)]};return db[_0x3024e4(0x1e8)][_0x3024e4(0x1d8)](_0xc3d3b3)[_0x3024e4(0x1bf)](function(_0x3ec9a8){const _0x462663=_0x3024e4;return _0x3ba439['count']=_0x3ec9a8,_0xcca307[_0x462663(0x191)][_0x462663(0x207)]&&(_0x41e900[_0x462663(0x1b3)]=[{'all':!![]}]),db[_0x462663(0x1e8)]['findAll'](_0x41e900);})[_0x3024e4(0x1bf)](function(_0x2fb78b){const _0x880368=_0x3024e4;return _0x3ba439[_0x880368(0x1de)]=_0x2fb78b,_0x3ba439;})['then'](respondWithFilteredResult(_0x2f574d,_0x41e900))['catch'](handleError(_0x2f574d,null));},exports['show']=function(_0x5f5ded,_0x1bc3fc){const _0x5bb460=a475_0x2b7078;let _0x2c1e45={'raw':![],'where':{'id':_0x5f5ded['params']['id']},'include':[{'model':db[_0x5bb460(0x1fc)],'as':_0x5bb460(0x1ed)},{'model':db[_0x5bb460(0x1c6)],'as':_0x5bb460(0x161)},{'model':db[_0x5bb460(0x1b4)],'as':_0x5bb460(0x17c)}]};const _0x5acc87={};return _0x5acc87[_0x5bb460(0x193)]=_[_0x5bb460(0x1cf)](db['MailAccount'][_0x5bb460(0x1a4)]),_0x5acc87['query']=_[_0x5bb460(0x1cf)](_0x5f5ded[_0x5bb460(0x191)]),_0x5acc87[_0x5bb460(0x174)]=_[_0x5bb460(0x169)](_0x5acc87[_0x5bb460(0x193)],_0x5acc87['query']),_0x2c1e45[_0x5bb460(0x1b8)]=_['intersection'](_0x5acc87[_0x5bb460(0x193)],qs['fields'](_0x5f5ded[_0x5bb460(0x191)][_0x5bb460(0x178)])),_0x2c1e45[_0x5bb460(0x1b8)]=_0x2c1e45[_0x5bb460(0x1b8)][_0x5bb460(0x1e2)]?_0x2c1e45[_0x5bb460(0x1b8)]:_0x5acc87['model'],_0x5f5ded[_0x5bb460(0x191)][_0x5bb460(0x207)]&&(_0x2c1e45[_0x5bb460(0x1b3)]=[{'all':!![]}]),_0x2c1e45=_[_0x5bb460(0x200)]({},_0x2c1e45,_0x5f5ded[_0x5bb460(0x1a6)]),db['MailAccount']['findOne'](_0x2c1e45)['then'](handleEntityNotFound(_0x1bc3fc,null))[_0x5bb460(0x1bf)](respondWithResult(_0x1bc3fc,null))['catch'](handleError(_0x1bc3fc,null));},exports[a475_0x2b7078(0x1d0)]=function(_0x5f497b,_0x4fb894){const _0x228b5c=a475_0x2b7078;return _0x5f497b[_0x228b5c(0x19b)]['id']&&delete _0x5f497b['body']['id'],db['MailAccount']['findOne']({'where':{'id':_0x5f497b[_0x228b5c(0x16b)]['id']},'include':[{'model':db[_0x228b5c(0x1fc)],'as':_0x228b5c(0x1ed)},{'model':db[_0x228b5c(0x1c6)],'as':'Smtp'},{'model':db[_0x228b5c(0x1b4)],'as':_0x228b5c(0x17c)}]})[_0x228b5c(0x1bf)](handleEntityNotFound(_0x4fb894,null))[_0x228b5c(0x1bf)](saveUpdates(_0x5f497b[_0x228b5c(0x19b)],null))[_0x228b5c(0x1bf)](function(_0xa2f12f){const _0x33df7d=_0x228b5c;if(_0xa2f12f&&_0x5f497b['body'][_0x33df7d(0x1ed)])return db['MailServerIn'][_0x33df7d(0x1d0)](_0x5f497b[_0x33df7d(0x19b)]['Imap'],{'where':{'MailAccountId':_0xa2f12f['id']}})[_0x33df7d(0x1bf)](function(){return _0xa2f12f;});return _0xa2f12f;})['then'](function(_0x86a187){const _0x59278d=_0x228b5c;if(_0x86a187&&_0x5f497b[_0x59278d(0x19b)]['Smtp'])return db[_0x59278d(0x1c6)][_0x59278d(0x1d0)](_0x5f497b[_0x59278d(0x19b)]['Smtp'],{'where':{'MailAccountId':_0x86a187['id']}})[_0x59278d(0x1bf)](function(){return _0x86a187;});return _0x86a187;})[_0x228b5c(0x1bf)](respondWithResult(_0x4fb894,null))['catch'](handleError(_0x4fb894,null));},exports[a475_0x2b7078(0x1f0)]=function(_0x41546e,_0x36f303){const _0x1bdcd8=a475_0x2b7078;return db['MailAccount'][_0x1bdcd8(0x1f0)]()['then'](respondWithResult(_0x36f303,null))[_0x1bdcd8(0x1df)](handleError(_0x36f303,null));},exports[a475_0x2b7078(0x19f)]=function(_0x318e7b,_0x402376){const _0xb59dd4=a475_0x2b7078;return _0x318e7b[_0xb59dd4(0x19b)]['id']&&delete _0x318e7b[_0xb59dd4(0x19b)]['id'],db[_0xb59dd4(0x1e8)][_0xb59dd4(0x1d7)]({'where':{'id':_0x318e7b[_0xb59dd4(0x16b)]['id']}})[_0xb59dd4(0x1bf)](handleEntityNotFound(_0x402376,null))[_0xb59dd4(0x1bf)](function(_0x27c2ed){const _0x71f062=_0xb59dd4;if(_0x27c2ed)return _0x318e7b[_0x71f062(0x19b)][_0x71f062(0x1fd)]=_0x27c2ed['id'],db[_0x71f062(0x1d2)]['create'](_0x318e7b[_0x71f062(0x19b)]);})[_0xb59dd4(0x1bf)](respondWithResult(_0x402376,null))[_0xb59dd4(0x1df)](handleError(_0x402376,null));},exports['getDispositions']=function(_0x4e8d09,_0x559265){const _0x22de77=a475_0x2b7078;let _0x3391c0={'raw':![],'where':{}};const _0x431c84={},_0x157b9b={'count':0x0,'rows':[]};return db[_0x22de77(0x1e8)][_0x22de77(0x1d7)]({'where':{'id':_0x4e8d09[_0x22de77(0x16b)]['id']}})['then'](handleEntityNotFound(_0x559265,null))[_0x22de77(0x1bf)](function(_0x5053de){const _0x4de588=_0x22de77;if(_0x5053de)return _0x431c84[_0x4de588(0x193)]=_[_0x4de588(0x1cf)](db[_0x4de588(0x1d2)][_0x4de588(0x1a4)]),_0x431c84['query']=_[_0x4de588(0x1cf)](_0x4e8d09[_0x4de588(0x191)]),_0x431c84[_0x4de588(0x174)]=_[_0x4de588(0x169)](_0x431c84[_0x4de588(0x193)],_0x431c84[_0x4de588(0x191)]),_0x3391c0[_0x4de588(0x1b8)]=_['intersection'](_0x431c84[_0x4de588(0x193)],qs[_0x4de588(0x178)](_0x4e8d09[_0x4de588(0x191)][_0x4de588(0x178)])),_0x3391c0[_0x4de588(0x1b8)]=_0x3391c0[_0x4de588(0x1b8)][_0x4de588(0x1e2)]?_0x3391c0[_0x4de588(0x1b8)]:_0x431c84[_0x4de588(0x193)],typeof _0x4e8d09[_0x4de588(0x191)][_0x4de588(0x185)]===_0x4de588(0x1f8)&&(_0x3391c0['limit']=qs['limit'](_0x4e8d09[_0x4de588(0x191)][_0x4de588(0x1ae)]),_0x3391c0[_0x4de588(0x1aa)]=qs['offset'](_0x4e8d09[_0x4de588(0x191)][_0x4de588(0x1aa)])),_0x3391c0['order']=qs[_0x4de588(0x180)](_0x4e8d09[_0x4de588(0x191)][_0x4de588(0x180)]),_0x3391c0[_0x4de588(0x1ce)]=qs[_0x4de588(0x174)](_[_0x4de588(0x1f6)](_0x4e8d09[_0x4de588(0x191)],_0x431c84['filters'])),_0x3391c0[_0x4de588(0x1ce)][_0x4de588(0x1fd)]=_0x5053de['id'],_0x4e8d09['query'][_0x4de588(0x1bd)]&&(_0x3391c0[_0x4de588(0x1ce)]=_[_0x4de588(0x200)](_0x3391c0[_0x4de588(0x1ce)],{[Op['or']]:_[_0x4de588(0x1b9)](_0x3391c0['attributes'],function(_0x32c657){const _0x25c322=_0x4de588,_0x4f81a0={};return _0x4f81a0[_0x32c657]={[Op['like']]:'%'+_0x4e8d09['query'][_0x25c322(0x1bd)]+'%'},_0x4f81a0;})})),_0x3391c0=_[_0x4de588(0x200)]({},_0x3391c0,_0x4e8d09[_0x4de588(0x1a6)]),db[_0x4de588(0x1d2)][_0x4de588(0x1d8)]({'where':_0x3391c0[_0x4de588(0x1ce)]})[_0x4de588(0x1bf)](function(_0x4d0ae6){const _0x1a781a=_0x4de588;return _0x157b9b[_0x1a781a(0x1d8)]=_0x4d0ae6,_0x4e8d09[_0x1a781a(0x191)]['includeAll']&&(_0x3391c0[_0x1a781a(0x1b3)]=[{'all':!![]}]),db[_0x1a781a(0x1d2)][_0x1a781a(0x1ea)](_0x3391c0);})[_0x4de588(0x1bf)](function(_0x584c47){const _0x40ad4e=_0x4de588;return _0x157b9b[_0x40ad4e(0x1de)]=_0x584c47,_0x157b9b;});})['then'](respondWithFilteredResult(_0x559265,_0x3391c0))[_0x22de77(0x1df)](handleError(_0x559265,null));},exports[a475_0x2b7078(0x1a3)]=function(_0x3df37d,_0x495a0d){const _0x4e4ea0=a475_0x2b7078;return db['MailAccount'][_0x4e4ea0(0x1d7)]({'where':{'id':_0x3df37d[_0x4e4ea0(0x16b)]['id']}})[_0x4e4ea0(0x1bf)](handleEntityNotFound(_0x495a0d,null))[_0x4e4ea0(0x1bf)](function(_0x90dd83){const _0x2ebfdc=_0x4e4ea0;if(_0x90dd83)return _0x90dd83[_0x2ebfdc(0x1a3)](_0x3df37d['query'][_0x2ebfdc(0x18a)]);})[_0x4e4ea0(0x1bf)](respondWithStatusCode(_0x495a0d,null))[_0x4e4ea0(0x1df)](handleError(_0x495a0d,null));},exports['addAnswer']=function(_0x526eb4,_0x2472ce){const _0x567d84=a475_0x2b7078;return _0x526eb4['body']['id']&&delete _0x526eb4[_0x567d84(0x19b)]['id'],db[_0x567d84(0x1e8)][_0x567d84(0x1d7)]({'where':{'id':_0x526eb4[_0x567d84(0x16b)]['id']}})[_0x567d84(0x1bf)](handleEntityNotFound(_0x2472ce,null))[_0x567d84(0x1bf)](function(_0x22086a){const _0x11210f=_0x567d84;if(_0x22086a)return _0x526eb4[_0x11210f(0x19b)]['MailAccountId']=_0x22086a['id'],db[_0x11210f(0x1b1)][_0x11210f(0x1c8)](_0x526eb4['body']);})[_0x567d84(0x1bf)](respondWithResult(_0x2472ce,null))[_0x567d84(0x1df)](handleError(_0x2472ce,null));},exports[a475_0x2b7078(0x1a9)]=function(_0x277296,_0x597466){const _0x340309=a475_0x2b7078;let _0x585fa7={'raw':![],'where':{}};const _0x398803={},_0x22da52={'count':0x0,'rows':[]};return db[_0x340309(0x1e8)][_0x340309(0x1d7)]({'where':{'id':_0x277296['params']['id']}})[_0x340309(0x1bf)](handleEntityNotFound(_0x597466,null))[_0x340309(0x1bf)](function(_0x1f7209){const _0x42026e=_0x340309;if(_0x1f7209)return _0x398803[_0x42026e(0x193)]=_['keys'](db[_0x42026e(0x1b1)]['rawAttributes']),_0x398803[_0x42026e(0x191)]=_['keys'](_0x277296['query']),_0x398803[_0x42026e(0x174)]=_[_0x42026e(0x169)](_0x398803['model'],_0x398803['query']),_0x585fa7[_0x42026e(0x1b8)]=_[_0x42026e(0x169)](_0x398803['model'],qs[_0x42026e(0x178)](_0x277296[_0x42026e(0x191)][_0x42026e(0x178)])),_0x585fa7[_0x42026e(0x1b8)]=_0x585fa7[_0x42026e(0x1b8)][_0x42026e(0x1e2)]?_0x585fa7[_0x42026e(0x1b8)]:_0x398803[_0x42026e(0x193)],typeof _0x277296[_0x42026e(0x191)]['nolimit']===_0x42026e(0x1f8)&&(_0x585fa7[_0x42026e(0x1ae)]=qs['limit'](_0x277296[_0x42026e(0x191)][_0x42026e(0x1ae)]),_0x585fa7['offset']=qs[_0x42026e(0x1aa)](_0x277296[_0x42026e(0x191)][_0x42026e(0x1aa)])),_0x585fa7[_0x42026e(0x1eb)]=qs['sort'](_0x277296[_0x42026e(0x191)][_0x42026e(0x180)]),_0x585fa7[_0x42026e(0x1ce)]=qs[_0x42026e(0x174)](_[_0x42026e(0x1f6)](_0x277296[_0x42026e(0x191)],_0x398803[_0x42026e(0x174)])),_0x585fa7[_0x42026e(0x1ce)][_0x42026e(0x1fd)]=_0x1f7209['id'],_0x277296['query'][_0x42026e(0x1bd)]&&(_0x585fa7[_0x42026e(0x1ce)]=_['merge'](_0x585fa7['where'],{[Op['or']]:_[_0x42026e(0x1b9)](_0x585fa7['attributes'],function(_0x52dc5f){const _0x2fb288=_0x42026e,_0x4a7690={};return _0x4a7690[_0x52dc5f]={[Op[_0x2fb288(0x1f7)]]:'%'+_0x277296[_0x2fb288(0x191)]['filter']+'%'},_0x4a7690;})})),_0x585fa7=_[_0x42026e(0x200)]({},_0x585fa7,_0x277296[_0x42026e(0x1a6)]),db['CannedAnswer'][_0x42026e(0x1d8)]({'where':_0x585fa7[_0x42026e(0x1ce)]})[_0x42026e(0x1bf)](function(_0x1ff197){const _0x56187a=_0x42026e;return _0x22da52[_0x56187a(0x1d8)]=_0x1ff197,_0x277296[_0x56187a(0x191)]['includeAll']&&(_0x585fa7['include']=[{'all':!![]}]),db['CannedAnswer'][_0x56187a(0x1ea)](_0x585fa7);})[_0x42026e(0x1bf)](function(_0x48ec13){return _0x22da52['rows']=_0x48ec13,_0x22da52;});})['then'](respondWithFilteredResult(_0x597466,_0x585fa7))['catch'](handleError(_0x597466,null));},exports['removeAnswers']=function(_0x15d771,_0x43d721){const _0x5402b6=a475_0x2b7078;return db[_0x5402b6(0x1e8)]['findOne']({'where':{'id':_0x15d771[_0x5402b6(0x16b)]['id']}})['then'](handleEntityNotFound(_0x43d721,null))[_0x5402b6(0x1bf)](function(_0x35f821){const _0x34dd04=_0x5402b6;if(_0x35f821)return _0x35f821[_0x34dd04(0x17a)](_0x15d771[_0x34dd04(0x191)]['ids']);})[_0x5402b6(0x1bf)](respondWithStatusCode(_0x43d721,null))[_0x5402b6(0x1df)](handleError(_0x43d721,null));},exports[a475_0x2b7078(0x1c8)]=function(_0x4d5bda,_0x2868e3){const _0xce1b24=a475_0x2b7078,_0x269e98={'name':_0x4d5bda['body']['name'],'key':_0x4d5bda[_0xce1b24(0x19b)][_0xce1b24(0x19a)],'email':_0x4d5bda[_0xce1b24(0x19b)][_0xce1b24(0x1b6)],'ListId':_0x4d5bda[_0xce1b24(0x19b)]['ListId'],'active':!_['isNil'](_0x4d5bda['body']['active'])?_0x4d5bda[_0xce1b24(0x19b)][_0xce1b24(0x1f5)]:!![],'description':_0x4d5bda[_0xce1b24(0x19b)][_0xce1b24(0x1ad)]||null,'Imap':{},'Smtp':{}};return _[_0xce1b24(0x17e)](_0x4d5bda[_0xce1b24(0x19b)][_0xce1b24(0x1e0)])?(_0x4d5bda[_0xce1b24(0x19b)]['cauthentication']?(_0x269e98[_0xce1b24(0x1ed)]['user']=_0x4d5bda[_0xce1b24(0x19b)]['cuser'],_0x269e98[_0xce1b24(0x161)][_0xce1b24(0x162)]=_0x4d5bda['body'][_0xce1b24(0x16d)],_0x269e98[_0xce1b24(0x1ed)][_0xce1b24(0x1c4)]=_0x4d5bda['body'][_0xce1b24(0x199)],_0x269e98['Smtp'][_0xce1b24(0x196)]=_0x4d5bda[_0xce1b24(0x19b)]['cpassword']):(_0x269e98[_0xce1b24(0x1ed)][_0xce1b24(0x164)]=![],_0x269e98[_0xce1b24(0x161)]['authentication']=![]),_0x269e98[_0xce1b24(0x1ed)]['host']=_0x4d5bda[_0xce1b24(0x19b)][_0xce1b24(0x1ed)][_0xce1b24(0x1d6)],_0x269e98['Imap'][_0xce1b24(0x204)]=_0x4d5bda[_0xce1b24(0x19b)][_0xce1b24(0x1ed)]['port'],_0x269e98['Smtp'][_0xce1b24(0x1d6)]=_0x4d5bda[_0xce1b24(0x19b)][_0xce1b24(0x161)][_0xce1b24(0x1d6)],_0x269e98[_0xce1b24(0x161)][_0xce1b24(0x204)]=_0x4d5bda[_0xce1b24(0x19b)][_0xce1b24(0x161)][_0xce1b24(0x204)]):(_0x269e98[_0xce1b24(0x1ed)][_0xce1b24(0x1b0)]=_0x4d5bda['body'][_0xce1b24(0x1e0)],_0x269e98[_0xce1b24(0x161)][_0xce1b24(0x1b0)]=_0x4d5bda['body'][_0xce1b24(0x1e0)],_0x269e98['Imap'][_0xce1b24(0x162)]=_0x4d5bda[_0xce1b24(0x19b)]['cuser'],_0x269e98[_0xce1b24(0x161)][_0xce1b24(0x162)]=_0x4d5bda[_0xce1b24(0x19b)][_0xce1b24(0x16d)],_0x269e98['Imap']['password']=_0x4d5bda[_0xce1b24(0x19b)][_0xce1b24(0x199)],_0x269e98[_0xce1b24(0x161)][_0xce1b24(0x196)]=_0x4d5bda['body']['cpassword']),db[_0xce1b24(0x1e8)][_0xce1b24(0x1c8)](_0x269e98,{'include':[{'model':db[_0xce1b24(0x1c6)],'as':_0xce1b24(0x161)},{'model':db[_0xce1b24(0x1fc)],'as':_0xce1b24(0x1ed)}]})['then'](function(_0x45c553){const _0x2f849d=_0xce1b24,_0x5ddf05=_0x4d5bda[_0x2f849d(0x162)][_0x2f849d(0x1cb)]({'plain':!![]});if(!_0x5ddf05)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x5ddf05[_0x2f849d(0x205)]==='user'){const _0x154f04=_0x45c553[_0x2f849d(0x1cb)]({'plain':!![]});return db[_0x2f849d(0x1f1)][_0x2f849d(0x1d7)]({'where':{'name':_0x2f849d(0x206),'userProfileId':_0x5ddf05[_0x2f849d(0x1e9)]},'raw':!![]})['then'](function(_0x5a0695){const _0x5c0113=_0x2f849d;return _0x5a0695&&_0x5a0695[_0x5c0113(0x1dc)]===0x0?db[_0x5c0113(0x160)][_0x5c0113(0x1c8)]({'name':_0x154f04[_0x5c0113(0x18d)],'resourceId':_0x154f04['id'],'type':_0x5a0695[_0x5c0113(0x18d)],'sectionId':_0x5a0695['id']},{})[_0x5c0113(0x1bf)](function(){return _0x45c553;}):_0x45c553;})[_0x2f849d(0x1df)](function(_0x4fb919){const _0x19af1b=_0x2f849d;logger['error'](_0x19af1b(0x1ec),_0x4fb919);throw _0x4fb919;});}return _0x45c553;})[_0xce1b24(0x1bf)](respondWithResult(_0x2868e3,0xc9))[_0xce1b24(0x1df)](handleError(_0x2868e3,null));},exports[a475_0x2b7078(0x15e)]=function(_0x496ba7,_0x41ba82){const _0x76a280=a475_0x2b7078;return db[_0x76a280(0x1e8)]['findOne']({'where':{'id':_0x496ba7[_0x76a280(0x16b)]['id']}})[_0x76a280(0x1bf)](handleEntityNotFound(_0x41ba82,null))[_0x76a280(0x1bf)](function(_0x1298ea){const _0x2d587d=_0x76a280;if(_0x1298ea)return _0x1298ea[_0x2d587d(0x15e)]();return null;})[_0x76a280(0x1bf)](respondWithResult(_0x41ba82,null))[_0x76a280(0x1df)](handleError(_0x41ba82,null));},exports[a475_0x2b7078(0x198)]=function(_0xf96f0d,_0xc4891e){const _0x2e7af4=a475_0x2b7078;return _0xf96f0d[_0x2e7af4(0x19b)]['id']&&delete _0xf96f0d[_0x2e7af4(0x19b)]['id'],db[_0x2e7af4(0x1e8)][_0x2e7af4(0x1d7)]({'where':{'id':_0xf96f0d[_0x2e7af4(0x16b)]['id']}})[_0x2e7af4(0x1bf)](handleEntityNotFound(_0xc4891e,null))['then'](function(_0x260a31){const _0x2c0e76=_0x2e7af4;if(_0x260a31)return _0xf96f0d[_0x2c0e76(0x19b)][_0x2c0e76(0x1fd)]=_0x260a31['id'],db['MailServerIn'][_0x2c0e76(0x1c8)](_0xf96f0d[_0x2c0e76(0x19b)]);})[_0x2e7af4(0x1bf)](respondWithResult(_0xc4891e,null))[_0x2e7af4(0x1df)](handleError(_0xc4891e,null));},exports[a475_0x2b7078(0x179)]=function(_0x15a11c,_0x3a02a1){const _0x23a978=a475_0x2b7078;return db['MailAccount'][_0x23a978(0x1d7)]({'where':{'id':_0x15a11c[_0x23a978(0x16b)]['id']}})[_0x23a978(0x1bf)](handleEntityNotFound(_0x3a02a1,null))[_0x23a978(0x1bf)](function(_0x1af35b){const _0x2e6844=_0x23a978;if(_0x1af35b)return _0x1af35b[_0x2e6844(0x1c1)](null);return null;})[_0x23a978(0x1bf)](respondWithStatusCode(_0x3a02a1,null))[_0x23a978(0x1df)](handleError(_0x3a02a1,null));},exports[a475_0x2b7078(0x176)]=function(_0x4d73d0,_0x368e81){const _0x37234c=a475_0x2b7078;return db[_0x37234c(0x1e8)][_0x37234c(0x1d7)]({'where':{'id':_0x4d73d0[_0x37234c(0x16b)]['id']}})[_0x37234c(0x1bf)](handleEntityNotFound(_0x368e81,null))[_0x37234c(0x1bf)](function(_0xf7af4c){const _0x43c492=_0x37234c;if(_0xf7af4c)return _0xf7af4c[_0x43c492(0x176)]();return null;})[_0x37234c(0x1bf)](respondWithResult(_0x368e81,null))[_0x37234c(0x1df)](handleError(_0x368e81,null));},exports[a475_0x2b7078(0x1cc)]=function(_0x1c1f15,_0xb30d86){const _0x22f7f8=a475_0x2b7078;return _0x1c1f15[_0x22f7f8(0x19b)]['id']&&delete _0x1c1f15[_0x22f7f8(0x19b)]['id'],db[_0x22f7f8(0x1e8)][_0x22f7f8(0x1d7)]({'where':{'id':_0x1c1f15[_0x22f7f8(0x16b)]['id']}})[_0x22f7f8(0x1bf)](handleEntityNotFound(_0xb30d86,null))[_0x22f7f8(0x1bf)](function(_0x7d9626){const _0x194a73=_0x22f7f8;if(_0x7d9626)return _0x1c1f15[_0x194a73(0x19b)][_0x194a73(0x1fd)]=_0x7d9626['id'],db[_0x194a73(0x1c6)][_0x194a73(0x1c8)](_0x1c1f15[_0x194a73(0x19b)]);})[_0x22f7f8(0x1bf)](respondWithResult(_0xb30d86,null))[_0x22f7f8(0x1df)](handleError(_0xb30d86,null));},exports[a475_0x2b7078(0x187)]=function(_0x614ab8,_0x36a24a){const _0x5c24e9=a475_0x2b7078;return db[_0x5c24e9(0x1e8)]['findOne']({'where':{'id':_0x614ab8['params']['id']}})[_0x5c24e9(0x1bf)](handleEntityNotFound(_0x36a24a,null))['then'](function(_0x325c9d){if(_0x325c9d)return _0x325c9d['setSmtp'](null);return null;})[_0x5c24e9(0x1bf)](respondWithStatusCode(_0x36a24a,null))[_0x5c24e9(0x1df)](handleError(_0x36a24a,null));},exports['addInteraction']=function(_0x2f3283,_0x55bf95){const _0x4eff95=a475_0x2b7078;return db[_0x4eff95(0x1ac)][_0x4eff95(0x1d7)]({'where':{'id':_0x2f3283[_0x4eff95(0x16b)]['id']}})[_0x4eff95(0x1bf)](function(_0x353a87){const _0x1b2ba9=_0x4eff95;if(_0x353a87)return _0x353a87[_0x1b2ba9(0x1b2)](_0x2f3283['body'][_0x1b2ba9(0x18a)],{'through':_[_0x1b2ba9(0x1f9)](_0x2f3283[_0x1b2ba9(0x19b)],[_0x1b2ba9(0x18a),'id'])});})[_0x4eff95(0x1bf)](respondWithResult(_0x55bf95,null))[_0x4eff95(0x1df)](handleError(_0x55bf95,null));},exports[a475_0x2b7078(0x1ca)]=function(_0x11fe03,_0x5acbf8){const _0x1d478a=a475_0x2b7078;let _0x522d21={'raw':![],'where':{}};const _0x4a566e={},_0x123f30={'count':0x0,'rows':[]};return db['MailAccount'][_0x1d478a(0x1d7)]({'where':{'id':_0x11fe03[_0x1d478a(0x16b)]['id']}})[_0x1d478a(0x1bf)](handleEntityNotFound(_0x5acbf8,null))[_0x1d478a(0x1bf)](function(_0x363664){const _0x175f72=_0x1d478a;if(_0x363664)return _0x4a566e[_0x175f72(0x193)]=_['keys'](db['MailInteraction']['rawAttributes']),_0x4a566e['query']=_[_0x175f72(0x1cf)](_0x11fe03[_0x175f72(0x191)]),_0x4a566e['filters']=_[_0x175f72(0x169)](_0x4a566e['model'],_0x4a566e[_0x175f72(0x191)]),_0x522d21['attributes']=_['intersection'](_0x4a566e[_0x175f72(0x193)],qs['fields'](_0x11fe03[_0x175f72(0x191)][_0x175f72(0x178)])),_0x522d21['attributes']=_0x522d21['attributes']['length']?_0x522d21['attributes']:_0x4a566e[_0x175f72(0x193)],typeof _0x11fe03[_0x175f72(0x191)]['nolimit']===_0x175f72(0x1f8)&&(_0x522d21['limit']=qs[_0x175f72(0x1ae)](_0x11fe03[_0x175f72(0x191)][_0x175f72(0x1ae)]),_0x522d21[_0x175f72(0x1aa)]=qs['offset'](_0x11fe03[_0x175f72(0x191)]['offset'])),_0x522d21['order']=qs[_0x175f72(0x180)](_0x11fe03[_0x175f72(0x191)][_0x175f72(0x180)]),_0x522d21[_0x175f72(0x1ce)]=qs[_0x175f72(0x174)](_[_0x175f72(0x1f6)](_0x11fe03[_0x175f72(0x191)],_0x4a566e[_0x175f72(0x174)])),_0x522d21[_0x175f72(0x1ce)]['MailAccountId']=_0x363664['id'],_0x11fe03[_0x175f72(0x191)]['filter']&&(_0x522d21[_0x175f72(0x1ce)]=_[_0x175f72(0x200)](_0x522d21[_0x175f72(0x1ce)],{[Op['or']]:_['map'](_0x522d21['attributes'],function(_0x1152b0){const _0x5d7bda=_0x175f72,_0x9b486e={};return _0x9b486e[_0x1152b0]={[Op['like']]:'%'+_0x11fe03['query'][_0x5d7bda(0x1bd)]+'%'},_0x9b486e;})})),_0x522d21=_[_0x175f72(0x200)]({},_0x522d21,_0x11fe03[_0x175f72(0x1a6)]),db[_0x175f72(0x1ac)][_0x175f72(0x1d8)]({'where':_0x522d21[_0x175f72(0x1ce)]})[_0x175f72(0x1bf)](function(_0x28313a){const _0x4c5a4b=_0x175f72;return _0x123f30[_0x4c5a4b(0x1d8)]=_0x28313a,_0x11fe03[_0x4c5a4b(0x191)]['includeAll']&&(_0x522d21[_0x4c5a4b(0x1b3)]=[{'model':db[_0x4c5a4b(0x15f)],'as':'Contact','required':![]},{'model':db[_0x4c5a4b(0x194)],'as':_0x4c5a4b(0x1bb),'attributes':[_0x4c5a4b(0x18d),_0x4c5a4b(0x192),_0x4c5a4b(0x170)],'required':![]},{'model':db[_0x4c5a4b(0x1da)],'as':_0x4c5a4b(0x197),'attributes':['id',_0x4c5a4b(0x18d),_0x4c5a4b(0x163)],'where':_0x11fe03[_0x4c5a4b(0x191)][_0x4c5a4b(0x18e)]?{'id':_0x11fe03[_0x4c5a4b(0x191)][_0x4c5a4b(0x18e)]}:undefined,'required':_0x11fe03[_0x4c5a4b(0x191)][_0x4c5a4b(0x18e)]?!![]:![]}]),db[_0x4c5a4b(0x1ac)][_0x4c5a4b(0x1ea)](_0x522d21);})[_0x175f72(0x1bf)](function(_0x4b747b){const _0x3c3a58=_0x175f72;return _0x123f30[_0x3c3a58(0x1de)]=_0x4b747b,_0x123f30;});})[_0x1d478a(0x1bf)](respondWithFilteredResult(_0x5acbf8,_0x522d21))[_0x1d478a(0x1df)](handleError(_0x5acbf8,null));},exports[a475_0x2b7078(0x1a8)]=function(_0xd019e6,_0x44d620){const _0x44977e=a475_0x2b7078;return db[_0x44977e(0x1e8)][_0x44977e(0x1d7)]({'where':{'id':_0xd019e6['params']['id']}})[_0x44977e(0x1bf)](handleEntityNotFound(_0x44d620,null))['then'](function(_0x6ec8b1){const _0x144dd8=_0x44977e;if(_0x6ec8b1)return db[_0x144dd8(0x181)][_0x144dd8(0x184)](function(_0x17d408){const _0x104f1d=_0x144dd8;return db[_0x104f1d(0x188)][_0x104f1d(0x203)]({'where':{'MailAccountId':_0xd019e6[_0x104f1d(0x16b)]['id']},'transaction':_0x17d408})[_0x104f1d(0x1bf)](function(){const _0x50bb1f=_0x104f1d,_0x4c83cf=_[_0x50bb1f(0x1b9)](_0xd019e6[_0x50bb1f(0x19b)],function(_0x12f0d0){const _0x3bb397=_0x50bb1f;return _0x12f0d0[_0x3bb397(0x1fd)]=_0xd019e6[_0x3bb397(0x16b)]['id'],_0x12f0d0;});return db[_0x50bb1f(0x188)][_0x50bb1f(0x1d4)](_0x4c83cf,{'transaction':_0x17d408});});})['then'](function(){const _0x447d7d=_0x144dd8;return db[_0x447d7d(0x188)][_0x447d7d(0x208)]({'where':{'MailAccountId':_0xd019e6['params']['id']},'order':_0x447d7d(0x1b7)});});})['then'](respondWithResult(_0x44d620,null))[_0x44977e(0x1df)](handleError(_0x44d620,null));},exports['getApplications']=function(_0x474ec5,_0x309091){const _0x25d8ea=a475_0x2b7078;let _0x378984={};const _0x20a4f8={};let _0x24fcc9,_0x4736f1;return db['MailAccount']['findOne']({'where':{'id':_0x474ec5[_0x25d8ea(0x16b)]['id']}})[_0x25d8ea(0x1bf)](handleEntityNotFound(_0x309091,null))[_0x25d8ea(0x1bf)](function(_0x36876d){const _0x43ae00=_0x25d8ea;if(_0x36876d)return _0x24fcc9=_0x36876d,_0x20a4f8[_0x43ae00(0x193)]=_['keys'](db[_0x43ae00(0x188)]['rawAttributes']),_0x20a4f8[_0x43ae00(0x191)]=_[_0x43ae00(0x1cf)](_0x474ec5[_0x43ae00(0x191)]),_0x20a4f8[_0x43ae00(0x174)]=_['intersection'](_0x20a4f8[_0x43ae00(0x193)],_0x20a4f8[_0x43ae00(0x191)]),_0x378984['attributes']=_[_0x43ae00(0x169)](_0x20a4f8[_0x43ae00(0x193)],qs[_0x43ae00(0x178)](_0x474ec5[_0x43ae00(0x191)][_0x43ae00(0x178)])),_0x378984['attributes']=_0x378984[_0x43ae00(0x1b8)][_0x43ae00(0x1e2)]?_0x378984['attributes']:_0x20a4f8['model'],_0x378984[_0x43ae00(0x1eb)]=qs[_0x43ae00(0x180)](_0x474ec5['query'][_0x43ae00(0x180)]),_0x378984[_0x43ae00(0x1ce)]=qs[_0x43ae00(0x174)](_[_0x43ae00(0x1f6)](_0x474ec5[_0x43ae00(0x191)],_0x20a4f8[_0x43ae00(0x174)])),_0x474ec5[_0x43ae00(0x191)][_0x43ae00(0x1bd)]&&(_0x378984['where']=_[_0x43ae00(0x200)](_0x378984[_0x43ae00(0x1ce)],{[Op['or']]:_[_0x43ae00(0x1b9)](_0x378984['attributes'],function(_0x3ca5e5){const _0x3c44b7=_0x43ae00,_0x3dc839={};return _0x3dc839[_0x3ca5e5]={[Op[_0x3c44b7(0x1f7)]]:'%'+_0x474ec5[_0x3c44b7(0x191)]['filter']+'%'},_0x3dc839;})})),_0x378984=_[_0x43ae00(0x200)]({},_0x378984,_0x474ec5['options']),_0x24fcc9['getApplications'](_0x378984);})[_0x25d8ea(0x1bf)](function(_0x5a3ed0){const _0x307d85=_0x25d8ea;if(_0x5a3ed0)return _0x4736f1=_0x5a3ed0[_0x307d85(0x1e2)],typeof _0x474ec5[_0x307d85(0x191)][_0x307d85(0x185)]==='undefined'&&(_0x378984[_0x307d85(0x1ae)]=qs[_0x307d85(0x1ae)](_0x474ec5[_0x307d85(0x191)][_0x307d85(0x1ae)]),_0x378984[_0x307d85(0x1aa)]=qs[_0x307d85(0x1aa)](_0x474ec5['query']['offset'])),_0x24fcc9['getApplications'](_0x378984);})[_0x25d8ea(0x1bf)](function(_0x4ee748){if(_0x4ee748)return _0x4ee748?{'count':_0x4736f1,'rows':_0x4ee748}:null;})[_0x25d8ea(0x1bf)](respondWithResult(_0x309091,null))['catch'](handleError(_0x309091,null));},exports[a475_0x2b7078(0x190)]=function(_0x4c10e0,_0x5682d2){const _0x532ac0=a475_0x2b7078;let _0x187da8={'raw':!![],'where':{}};const _0x3d0701={},_0xad0b5={'count':0x0,'rows':[]};return db[_0x532ac0(0x1e8)][_0x532ac0(0x1d7)]({'where':{'id':_0x4c10e0['params']['id']}})[_0x532ac0(0x1bf)](handleEntityNotFound(_0x5682d2,null))['then'](function(_0x428223){const _0x1fc868=_0x532ac0;if(_0x428223){_0x3d0701[_0x1fc868(0x193)]=_[_0x1fc868(0x1cf)](db[_0x1fc868(0x1e7)][_0x1fc868(0x1a4)]),_0x3d0701[_0x1fc868(0x191)]=_[_0x1fc868(0x1cf)](_0x4c10e0[_0x1fc868(0x191)]),_0x3d0701[_0x1fc868(0x174)]=_['intersection'](_0x3d0701[_0x1fc868(0x193)],_0x3d0701[_0x1fc868(0x191)]),_0x187da8[_0x1fc868(0x1b8)]=_[_0x1fc868(0x169)](_0x3d0701[_0x1fc868(0x193)],qs[_0x1fc868(0x178)](_0x4c10e0[_0x1fc868(0x191)][_0x1fc868(0x178)])),_0x187da8[_0x1fc868(0x1b8)]=_0x187da8[_0x1fc868(0x1b8)][_0x1fc868(0x1e2)]?_0x187da8[_0x1fc868(0x1b8)]:_0x3d0701[_0x1fc868(0x193)];typeof _0x4c10e0[_0x1fc868(0x191)]['nolimit']===_0x1fc868(0x1f8)&&(_0x187da8[_0x1fc868(0x1ae)]=qs[_0x1fc868(0x1ae)](_0x4c10e0['query'][_0x1fc868(0x1ae)]),_0x187da8[_0x1fc868(0x1aa)]=qs[_0x1fc868(0x1aa)](_0x4c10e0[_0x1fc868(0x191)][_0x1fc868(0x1aa)]));_0x187da8[_0x1fc868(0x1eb)]=qs[_0x1fc868(0x180)](_0x4c10e0[_0x1fc868(0x191)]['sort']),_0x187da8[_0x1fc868(0x1ce)]=qs[_0x1fc868(0x174)](_[_0x1fc868(0x1f6)](_0x4c10e0[_0x1fc868(0x191)],_0x3d0701[_0x1fc868(0x174)])),_0x187da8['where'][_0x1fc868(0x1fd)]=_0x428223['id'];_0x4c10e0[_0x1fc868(0x191)][_0x1fc868(0x1bd)]&&(_0x187da8[_0x1fc868(0x1ce)]=_[_0x1fc868(0x200)](_0x187da8[_0x1fc868(0x1ce)],{[Op['or']]:_[_0x1fc868(0x1b9)](_0x187da8['attributes'],function(_0x699eeb){const _0x4f4320=_0x1fc868,_0x18f707={};return _0x18f707[_0x699eeb]={[Op['like']]:'%'+_0x4c10e0[_0x4f4320(0x191)][_0x4f4320(0x1bd)]+'%'},_0x18f707;})}));if(_0x4c10e0[_0x1fc868(0x191)][_0x1fc868(0x1c7)]){const _0x1d6e1e=_0x4c10e0[_0x1fc868(0x191)][_0x1fc868(0x1c7)]['split'](','),_0x160f23={};_0x160f23[_0x1d6e1e[0x0]]={[Op[_0x1fc868(0x175)]]:moment(_0x1d6e1e[0x1])[_0x1fc868(0x16f)](_0x1fc868(0x1a2))},_0x187da8[_0x1fc868(0x1ce)]=_[_0x1fc868(0x200)](_0x187da8[_0x1fc868(0x1ce)],_0x160f23);}return _0x187da8=_[_0x1fc868(0x200)]({},_0x187da8,_0x4c10e0[_0x1fc868(0x1a6)]),db[_0x1fc868(0x1e7)][_0x1fc868(0x1d8)]({'where':_0x187da8['where']})[_0x1fc868(0x1bf)](function(_0x5d6a10){const _0x253c63=_0x1fc868;return _0xad0b5[_0x253c63(0x1d8)]=_0x5d6a10,_0x4c10e0[_0x253c63(0x191)]['includeAll']&&(_0x187da8[_0x253c63(0x1b3)]=[{'all':!![]}]),db['MailMessage'][_0x253c63(0x1ea)](_0x187da8);})[_0x1fc868(0x1bf)](function(_0x1bbd01){const _0x5564af=_0x1fc868;return _0xad0b5[_0x5564af(0x1de)]=_0x1bbd01,_0xad0b5;});}})['then'](respondWithFilteredResult(_0x5682d2,_0x187da8))[_0x532ac0(0x1df)](handleError(_0x5682d2,null));},exports[a475_0x2b7078(0x1db)]=function(_0x40ba0b,_0x376717){const _0x303ce6=a475_0x2b7078;let _0x1b6401,_0x40b86d={},_0x48ffd9;return _0x40ba0b['body']['to']&&(_0x48ffd9=_0x40ba0b[_0x303ce6(0x19b)]['to']['split'](',')[0x0]),db[_0x303ce6(0x1e8)][_0x303ce6(0x1d7)]({'where':{'id':_0x40ba0b[_0x303ce6(0x16b)]['id']},'include':[{'model':db[_0x303ce6(0x1c2)],'as':_0x303ce6(0x15d),'include':[{'model':db[_0x303ce6(0x15f)],'as':'Contacts','where':{'email':_0x48ffd9},'limit':0x1,'order':[[_0x303ce6(0x1e4),_0x303ce6(0x1fa)]]}]},{'model':db[_0x303ce6(0x1c6)],'as':'Smtp','raw':!![]}]})['then'](handleEntityNotFound(_0x376717,null))[_0x303ce6(0x1bf)](function(_0x57a074){const _0x498bed=_0x303ce6;if(_0x57a074){_0x1b6401=_0x57a074;if(_0x57a074[_0x498bed(0x161)]){_['isNil'](_0x40ba0b['body'][_0x498bed(0x1c9)])&&(_0x40ba0b[_0x498bed(0x19b)][_0x498bed(0x1c9)]=util['format']('%s\x20<%s>',_0x57a074[_0x498bed(0x18d)],_0x57a074[_0x498bed(0x1b6)]||_0x57a074[_0x498bed(0x161)][_0x498bed(0x162)]));if(_0x40ba0b[_0x498bed(0x19b)][_0x498bed(0x19e)]&&_0x40ba0b[_0x498bed(0x19b)]['attachments'][_0x498bed(0x1e2)])for(let _0x4963a4=0x0;_0x4963a4<_0x40ba0b['body'][_0x498bed(0x19e)][_0x498bed(0x1e2)];_0x4963a4+=0x1){_0x40ba0b[_0x498bed(0x19b)]['attachments'][_0x4963a4]={'filename':_0x40ba0b['body']['attachments'][_0x4963a4][_0x498bed(0x18d)],'path':path[_0x498bed(0x1cd)](config[_0x498bed(0x1f2)],'server/files/attachments',_0x40ba0b[_0x498bed(0x19b)]['attachments'][_0x4963a4][_0x498bed(0x167)])};}const _0x56b857={'tls':{'rejectUnauthorized':![]}};return _['isNil'](_0x57a074['Smtp'][_0x498bed(0x1b0)])?(_0x57a074[_0x498bed(0x161)][_0x498bed(0x164)]&&(_0x56b857[_0x498bed(0x1e3)]={'user':_0x57a074[_0x498bed(0x161)][_0x498bed(0x162)],'pass':_0x57a074[_0x498bed(0x161)][_0x498bed(0x196)]}),_0x56b857[_0x498bed(0x1d6)]=_0x57a074[_0x498bed(0x161)][_0x498bed(0x1d6)],_0x56b857[_0x498bed(0x204)]=_0x57a074['Smtp'][_0x498bed(0x204)],_0x56b857[_0x498bed(0x183)]=_0x57a074[_0x498bed(0x161)][_0x498bed(0x183)]):(_0x56b857[_0x498bed(0x1b0)]=_0x57a074[_0x498bed(0x161)]['service'],_0x56b857[_0x498bed(0x1e3)]={'user':_0x57a074[_0x498bed(0x161)]['user'],'pass':_0x57a074[_0x498bed(0x161)]['pass']}),respondWithRpcPromise(_0x498bed(0x1a0),_0x498bed(0x1fb),{'account':_0x56b857,'message':_0x40ba0b['body']});}else throw new Error('List\x20not\x20found');}})['then'](function(_0x126547){const _0x31b52a=_0x303ce6;if(_0x126547){_0x40b86d=_0x126547;if(_0x1b6401[_0x31b52a(0x15d)])return _0x1b6401[_0x31b52a(0x15d)][_0x31b52a(0x19d)]['length']?_0x1b6401[_0x31b52a(0x15d)]['Contacts'][0x0]:db['CmContact']['create'](_[_0x31b52a(0x1ee)](_0x40ba0b[_0x31b52a(0x19b)],{'firstName':_0x40ba0b[_0x31b52a(0x19b)]['to'],'email':_0x40ba0b[_0x31b52a(0x19b)]['to'],'phone':_0x40ba0b['body']['to'],'ListId':_0x1b6401[_0x31b52a(0x19c)]}));else throw new Error(_0x31b52a(0x1a1));}})['then'](function(_0x22c17d){const _0x2525ce=_0x303ce6;if(_0x22c17d){let _0x113052={'UserId':_0x40ba0b['user']['id'],'ContactId':_0x22c17d['id'],'MailAccountId':_0x1b6401['id'],'inReplyTo':_0x40b86d['messageId'],'to':_0x40ba0b[_0x2525ce(0x19b)]['from'],'cc':_0x40ba0b[_0x2525ce(0x19b)]['cc'],'subject':_0x40ba0b[_0x2525ce(0x19b)]['subject'],'attach':_0x40ba0b[_0x2525ce(0x19b)][_0x2525ce(0x1f4)],'firstMsgDirection':_0x2525ce(0x186),'lastMsgAt':moment()[_0x2525ce(0x16f)]('YYYY-MM-DD\x20HH:mm:ss'),'lastMsgDirection':_0x2525ce(0x186),'lastMsgBody':_0x40ba0b[_0x2525ce(0x19b)][_0x2525ce(0x19b)],'Messages':[_[_0x2525ce(0x200)](_0x40ba0b[_0x2525ce(0x19b)],{'messageId':_0x40b86d['messageId'],'sentAt':moment()[_0x2525ce(0x16f)](_0x2525ce(0x1a2)),'read':!![],'MailAccountId':_0x1b6401['id'],'UserId':_0x40ba0b[_0x2525ce(0x162)]['id'],'ContactId':_0x22c17d['id']})]};return _0x40ba0b[_0x2525ce(0x19b)][_0x2525ce(0x1af)]&&(_0x113052=_[_0x2525ce(0x200)](_0x113052,_0x40ba0b['body'][_0x2525ce(0x1af)])),db['MailInteraction'][_0x2525ce(0x1c8)](_0x113052,{'include':[{'model':db['MailMessage'],'as':_0x2525ce(0x1ff)}]});}})[_0x303ce6(0x1bf)](respondWithResult(_0x376717,null))[_0x303ce6(0x1df)](handleError(_0x376717,null));},exports[a475_0x2b7078(0x1d1)]=function(_0x4b8b39,_0x5eec04){const _0x4a4d94=a475_0x2b7078;return db[_0x4a4d94(0x1e8)][_0x4a4d94(0x1d7)]({'where':{'id':_0x4b8b39[_0x4a4d94(0x16b)]['id']},'include':[{'model':db[_0x4a4d94(0x1c6)],'as':_0x4a4d94(0x161),'raw':!![]}]})['then'](handleEntityNotFound(_0x5eec04,null))['then'](function(_0x4b29d1){const _0x4afe83=_0x4a4d94;if(_0x4b29d1&&_0x4b29d1[_0x4afe83(0x161)]){const _0x38377c={'id':_0x4b29d1['id'],'tls':{'rejectUnauthorized':![]}};return _0x4b29d1[_0x4afe83(0x161)][_0x4afe83(0x1b0)]?_0x38377c['service']=_0x4b29d1[_0x4afe83(0x161)]['service']:(_0x38377c[_0x4afe83(0x1d6)]=_0x4b29d1[_0x4afe83(0x161)][_0x4afe83(0x1d6)],_0x38377c[_0x4afe83(0x204)]=_0x4b29d1[_0x4afe83(0x161)][_0x4afe83(0x204)],_0x38377c[_0x4afe83(0x183)]=_0x4b29d1[_0x4afe83(0x161)][_0x4afe83(0x183)]),_0x4b29d1[_0x4afe83(0x161)][_0x4afe83(0x164)]&&(_0x38377c[_0x4afe83(0x1e3)]={'user':_0x4b29d1['Smtp']['user'],'pass':_0x4b29d1['Smtp'][_0x4afe83(0x196)]}),respondWithRpcPromise(_0x4afe83(0x16c),_0x4afe83(0x1d1),{'account':_0x38377c});}})[_0x4a4d94(0x1bf)](respondWithResult(_0x5eec04,null))[_0x4a4d94(0x1df)](handleError(_0x5eec04,null));},exports['destroy']=function(_0x423ad7,_0x3265fb){const _0x5d2ad4=a475_0x2b7078;return db['MailAccount'][_0x5d2ad4(0x1d7)]({'where':{'id':_0x423ad7[_0x5d2ad4(0x16b)]['id']}})[_0x5d2ad4(0x1bf)](handleEntityNotFound(_0x3265fb,null))['then'](function(_0x30ad74){const _0x35b1f7=_0x5d2ad4;if(_0x30ad74&&_0x30ad74[_0x35b1f7(0x1b0)])throw new ValidationError('You\x20can\x27t\x20remove\x20the\x20mail\x20service\x20account');return _0x30ad74;})['then'](removeEntity(_0x3265fb,null))['catch'](handleError(_0x3265fb,null));},exports[a475_0x2b7078(0x1e5)]=function(_0x30bf1e,_0x70707a){const _0x436eb8=a475_0x2b7078;return db[_0x436eb8(0x1e8)][_0x436eb8(0x1d7)]({'where':{'id':_0x30bf1e[_0x436eb8(0x16b)]['id']}})['then'](function(_0xbee37b){const _0x318e3d=_0x436eb8;if(_0xbee37b)return _0xbee37b['addAgents'](_0x30bf1e['body'][_0x318e3d(0x18a)],{'through':_[_0x318e3d(0x1f9)](_0x30bf1e[_0x318e3d(0x19b)],[_0x318e3d(0x18a),'id'])})['then'](function(_0x317511){const _0x397fc0=_0x318e3d;for(let _0x1e5c37=0x0;_0x1e5c37<_0x30bf1e[_0x397fc0(0x19b)][_0x397fc0(0x18a)][_0x397fc0(0x1e2)];_0x1e5c37+=0x1){socket[_0x397fc0(0x1dd)](_0x397fc0(0x18b),{'UserId':_0x30bf1e[_0x397fc0(0x19b)][_0x397fc0(0x18a)][_0x1e5c37],'MailAccountId':_0x30bf1e[_0x397fc0(0x16b)]['id']});}return _0x317511;});})[_0x436eb8(0x1bf)](respondWithResult(_0x70707a,null))[_0x436eb8(0x1df)](handleError(_0x70707a,null));},exports[a475_0x2b7078(0x17b)]=function(_0x1366f4,_0x31cb03){const _0x264ff9=a475_0x2b7078;return db[_0x264ff9(0x1e8)][_0x264ff9(0x1d7)]({'where':{'id':_0x1366f4[_0x264ff9(0x16b)]['id']}})['then'](handleEntityNotFound(_0x31cb03,null))['then'](function(_0x2ba735){const _0x5c6741=_0x264ff9;if(_0x2ba735)return _0x2ba735[_0x5c6741(0x17b)](_0x1366f4[_0x5c6741(0x191)][_0x5c6741(0x18a)])['then'](function(){const _0xaaa533=_0x5c6741;if(_[_0xaaa533(0x1c0)](_0x1366f4[_0xaaa533(0x191)][_0xaaa533(0x18a)]))for(let _0x63de41=0x0;_0x63de41<_0x1366f4[_0xaaa533(0x191)][_0xaaa533(0x18a)][_0xaaa533(0x1e2)];_0x63de41+=0x1){socket[_0xaaa533(0x1dd)](_0xaaa533(0x1a5),{'UserId':Number(_0x1366f4['query'][_0xaaa533(0x18a)][_0x63de41]),'MailAccountId':Number(_0x1366f4[_0xaaa533(0x16b)]['id'])});}else socket[_0xaaa533(0x1dd)]('userMailAccount:remove',{'UserId':Number(_0x1366f4[_0xaaa533(0x191)][_0xaaa533(0x18a)]),'MailAccountId':Number(_0x1366f4['params']['id'])});});})['then'](respondWithStatusCode(_0x31cb03,null))[_0x264ff9(0x1df)](handleError(_0x31cb03,null));},exports[a475_0x2b7078(0x1bc)]=function(_0x7aeb47,_0x31feb3){const _0x53d84e=a475_0x2b7078;let _0x13703b={};const _0x161147={};let _0xd00faa,_0x511197;return db[_0x53d84e(0x1e8)][_0x53d84e(0x1d7)]({'where':{'id':_0x7aeb47[_0x53d84e(0x16b)]['id']}})[_0x53d84e(0x1bf)](handleEntityNotFound(_0x31feb3,null))[_0x53d84e(0x1bf)](function(_0x3462bd){const _0x13c840=_0x53d84e;if(_0x3462bd)return _0xd00faa=_0x3462bd,_0x161147[_0x13c840(0x193)]=_[_0x13c840(0x1cf)](db[_0x13c840(0x194)][_0x13c840(0x1a4)]),_0x161147[_0x13c840(0x191)]=_['keys'](_0x7aeb47['query']),_0x161147[_0x13c840(0x174)]=_[_0x13c840(0x169)](_0x161147[_0x13c840(0x193)],_0x161147[_0x13c840(0x191)]),_0x13703b[_0x13c840(0x1b8)]=_[_0x13c840(0x169)](_0x161147[_0x13c840(0x193)],qs[_0x13c840(0x178)](_0x7aeb47['query']['fields'])),_0x13703b[_0x13c840(0x1b8)]=_0x13703b[_0x13c840(0x1b8)][_0x13c840(0x1e2)]?_0x13703b['attributes']:_0x161147[_0x13c840(0x193)],_0x13703b[_0x13c840(0x1eb)]=qs[_0x13c840(0x180)](_0x7aeb47[_0x13c840(0x191)][_0x13c840(0x180)]),_0x13703b[_0x13c840(0x1ce)]=qs[_0x13c840(0x174)](_[_0x13c840(0x1f6)](_0x7aeb47['query'],_0x161147['filters'])),_0x7aeb47['query']['filter']&&(_0x13703b['where']=_[_0x13c840(0x200)](_0x13703b[_0x13c840(0x1ce)],{[Op['or']]:_[_0x13c840(0x1b9)](_0x13703b[_0x13c840(0x1b8)],function(_0x25174f){const _0x1503f6=_0x13c840,_0x51b7b2={};return _0x51b7b2[_0x25174f]={[Op[_0x1503f6(0x1f7)]]:'%'+_0x7aeb47[_0x1503f6(0x191)][_0x1503f6(0x1bd)]+'%'},_0x51b7b2;})})),_0x13703b=_['merge']({},_0x13703b,_0x7aeb47[_0x13c840(0x1a6)]),_0xd00faa['getAgents'](_0x13703b);})['then'](function(_0x3a7463){const _0x41b5f5=_0x53d84e;if(_0x3a7463)return _0x511197=_0x3a7463[_0x41b5f5(0x1e2)],typeof _0x7aeb47[_0x41b5f5(0x191)]['nolimit']===_0x41b5f5(0x1f8)&&(_0x13703b[_0x41b5f5(0x1ae)]=qs[_0x41b5f5(0x1ae)](_0x7aeb47[_0x41b5f5(0x191)][_0x41b5f5(0x1ae)]),_0x13703b[_0x41b5f5(0x1aa)]=qs[_0x41b5f5(0x1aa)](_0x7aeb47[_0x41b5f5(0x191)][_0x41b5f5(0x1aa)])),_0xd00faa[_0x41b5f5(0x1bc)](_0x13703b);})[_0x53d84e(0x1bf)](function(_0x55e5d0){if(_0x55e5d0)return _0x55e5d0?{'count':_0x511197,'rows':_0x55e5d0}:null;})[_0x53d84e(0x1bf)](respondWithResult(_0x31feb3,null))[_0x53d84e(0x1df)](handleError(_0x31feb3,null));}; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.events.js b/server/api/mailAccount/mailAccount.events.js index 3501ea5..dcc7a2e 100644 --- a/server/api/mailAccount/mailAccount.events.js +++ b/server/api/mailAccount/mailAccount.events.js @@ -1 +1 @@ -const a476_0x4ca2=['exports','update','emit','MailAccount','undefined','save','addHook'];(function(_0x4aaf74,_0x29fa42){const _0x4ca218=function(_0x453b29){while(--_0x453b29){_0x4aaf74['push'](_0x4aaf74['shift']());}};_0x4ca218(++_0x29fa42);}(a476_0x4ca2,0x124));const a476_0x453b=function(_0x4aaf74,_0x29fa42){_0x4aaf74=_0x4aaf74-0x67;let _0x4ca218=a476_0x4ca2[_0x4aaf74];return _0x4ca218;};const a476_0x2d26f5=a476_0x453b;'use strict';const EventEmitter=require('events'),MailAccount=require('../../mysqldb')['db'][a476_0x2d26f5(0x6c)],MailAccountEvents=new EventEmitter();MailAccountEvents['setMaxListeners'](0x0);const events={'afterCreate':a476_0x2d26f5(0x67),'afterUpdate':a476_0x2d26f5(0x6a),'afterDestroy':'remove'};function emitEvent(_0x348cae){return function(_0x443112){const _0xbdd458=a476_0x453b;MailAccountEvents['emit'](_0x348cae+':'+_0x443112['id'],_0x443112),MailAccountEvents[_0xbdd458(0x6b)](_0x348cae,_0x443112);};}for(const e in events){if(typeof events[e]!==a476_0x2d26f5(0x6d)){const event=events[e];MailAccount[a476_0x2d26f5(0x68)](e,emitEvent(event));}}module[a476_0x2d26f5(0x69)]=MailAccountEvents; \ No newline at end of file +const a476_0x142d=['MailAccount','addHook','emit','save','remove','update','setMaxListeners','events','exports'];(function(_0x294f87,_0x477a49){const _0x142dc8=function(_0x209024){while(--_0x209024){_0x294f87['push'](_0x294f87['shift']());}};_0x142dc8(++_0x477a49);}(a476_0x142d,0xaa));const a476_0x2090=function(_0x294f87,_0x477a49){_0x294f87=_0x294f87-0x178;let _0x142dc8=a476_0x142d[_0x294f87];return _0x142dc8;};const a476_0x5d7249=a476_0x2090;'use strict';const EventEmitter=require(a476_0x5d7249(0x180)),MailAccount=require('../../mysqldb')['db'][a476_0x5d7249(0x179)],MailAccountEvents=new EventEmitter();MailAccountEvents[a476_0x5d7249(0x17f)](0x0);const events={'afterCreate':a476_0x5d7249(0x17c),'afterUpdate':a476_0x5d7249(0x17e),'afterDestroy':a476_0x5d7249(0x17d)};function emitEvent(_0x8469e2){return function(_0x232bce){const _0x137dcc=a476_0x2090;MailAccountEvents[_0x137dcc(0x17b)](_0x8469e2+':'+_0x232bce['id'],_0x232bce),MailAccountEvents[_0x137dcc(0x17b)](_0x8469e2,_0x232bce);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];MailAccount[a476_0x5d7249(0x17a)](e,emitEvent(event));}}module[a476_0x5d7249(0x178)]=MailAccountEvents; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.model.js b/server/api/mailAccount/mailAccount.model.js index cdec79b..53df00c 100644 --- a/server/api/mailAccount/mailAccount.model.js +++ b/server/api/mailAccount/mailAccount.model.js @@ -1 +1 @@ -const a477_0x4c30=['sequelize','init','exports','./mailAccount.options','./mailAccount.attributes','function','MailAccount'];(function(_0x569e24,_0x30cca2){const _0x4c3077=function(_0x351302){while(--_0x351302){_0x569e24['push'](_0x569e24['shift']());}};_0x4c3077(++_0x30cca2);}(a477_0x4c30,0x123));const a477_0x3513=function(_0x569e24,_0x30cca2){_0x569e24=_0x569e24-0x148;let _0x4c3077=a477_0x4c30[_0x569e24];return _0x4c3077;};const a477_0x13630c=a477_0x3513;'use strict';const {Model}=require(a477_0x13630c(0x14b)),{attributes}=require(a477_0x13630c(0x148)),{options}=require(a477_0x13630c(0x14e));class MailAccount extends Model{}function init(_0xf9b45e,_0xf21ba3){const _0x4313c3=a477_0x13630c,_0x56c4be=options(_0xf9b45e),_0xbb5afc=typeof _0xf21ba3===_0x4313c3(0x149)?_0xf21ba3(_0x56c4be):_0x56c4be;return MailAccount[_0x4313c3(0x14c)](attributes,_0xbb5afc),MailAccount;}module[a477_0x13630c(0x14d)][a477_0x13630c(0x14a)]=MailAccount,module[a477_0x13630c(0x14d)][a477_0x13630c(0x14c)]=init; \ No newline at end of file +const a477_0x1956=['function','exports','MailAccount','init','./mailAccount.attributes','./mailAccount.options','sequelize'];(function(_0x3a5245,_0x387bf8){const _0x195692=function(_0x41ad2a){while(--_0x41ad2a){_0x3a5245['push'](_0x3a5245['shift']());}};_0x195692(++_0x387bf8);}(a477_0x1956,0x1a4));const a477_0x41ad=function(_0x3a5245,_0x387bf8){_0x3a5245=_0x3a5245-0x144;let _0x195692=a477_0x1956[_0x3a5245];return _0x195692;};const a477_0x3080ce=a477_0x41ad;'use strict';const {Model}=require(a477_0x3080ce(0x14a)),{attributes}=require(a477_0x3080ce(0x148)),{options}=require(a477_0x3080ce(0x149));class MailAccount extends Model{}function init(_0x537aa3,_0x3e99fe){const _0xfb28d2=a477_0x3080ce,_0x41c340=options(_0x537aa3),_0x354b61=typeof _0x3e99fe===_0xfb28d2(0x144)?_0x3e99fe(_0x41c340):_0x41c340;return MailAccount[_0xfb28d2(0x147)](attributes,_0x354b61),MailAccount;}module[a477_0x3080ce(0x145)][a477_0x3080ce(0x146)]=MailAccount,module[a477_0x3080ce(0x145)]['init']=init; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.options.js b/server/api/mailAccount/mailAccount.options.js index 0e34ccb..8da9f75 100644 --- a/server/api/mailAccount/mailAccount.options.js +++ b/server/api/mailAccount/mailAccount.options.js @@ -1 +1 @@ -var a478_0x5e16=['mail_accounts','exports','options'];(function(_0x41ad06,_0x40a8ce){var _0x5e16d1=function(_0x1d6c81){while(--_0x1d6c81){_0x41ad06['push'](_0x41ad06['shift']());}};_0x5e16d1(++_0x40a8ce);}(a478_0x5e16,0x1b5));var a478_0x1d6c=function(_0x41ad06,_0x40a8ce){_0x41ad06=_0x41ad06-0x17b;var _0x5e16d1=a478_0x5e16[_0x41ad06];return _0x5e16d1;};var a478_0x4f9f0e=a478_0x1d6c;function options(_0x428a0e){var _0x213f92=a478_0x1d6c;return{'sequelize':_0x428a0e,'tableName':_0x213f92(0x17c),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a478_0x4f9f0e(0x17d)][a478_0x4f9f0e(0x17b)]=options; \ No newline at end of file +var a478_0x31a5=['options','exports','mail_accounts'];(function(_0x4544f3,_0x485702){var _0x31a51d=function(_0x16193b){while(--_0x16193b){_0x4544f3['push'](_0x4544f3['shift']());}};_0x31a51d(++_0x485702);}(a478_0x31a5,0xc9));var a478_0x1619=function(_0x4544f3,_0x485702){_0x4544f3=_0x4544f3-0x1e8;var _0x31a51d=a478_0x31a5[_0x4544f3];return _0x31a51d;};var a478_0x1c0c96=a478_0x1619;function options(_0x5f462f){var _0x38e769=a478_0x1619;return{'sequelize':_0x5f462f,'tableName':_0x38e769(0x1ea),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a478_0x1c0c96(0x1e9)][a478_0x1c0c96(0x1e8)]=options; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.rpc.js b/server/api/mailAccount/mailAccount.rpc.js index 295af05..7a90579 100644 --- a/server/api/mailAccount/mailAccount.rpc.js +++ b/server/api/mailAccount/mailAccount.rpc.js @@ -1 +1 @@ -const a479_0x1c2b=['UserId','name','subject','then','MailApplication','request\x20sent','length','Applications','raw','findAll','lodash','CmContact','stringify','model','MailMessage','MailAccount,\x20%s,\x20%s,\x20%s','omit','bcc','originTo','contact','created','applications','DESC','Attachment','orderBy','push','CompanyId','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','List\x20not\x20found','defaults','GetMailAccount','body\x20is\x20mandatory\x20and\x20not\x20empty','keys','rpc','findOne','attachments','error','Contact\x20not\x20found','list','update','../../rediscache','ShowMailAccount','difference','options','get','request','../../mysqldb','where','autoclose','from','format','catch','asc','unshift','agent','include','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','Attachments','from\x20is\x20mandatory','*,*,*,*','generate','MailAccount','waitForTheAssignedAgent','account','attach','MailAccount,\x20%s,\x20%s','attributes','MailInteraction','jayson/promise','originCc','register','result','http','close','CmList','MailServerOut','create','isNil','info','message','mapKey','Smtp','YYYY-MM-DD\x20HH:mm:ss','interaction','Contacts','NotifyMailAccount','ListId','../../config/logger','debug','List','map','body','messageId','startRouting','Start'];(function(_0x12e873,_0x361e2b){const _0x1c2b5a=function(_0x4f274f){while(--_0x4f274f){_0x12e873['push'](_0x12e873['shift']());}};_0x1c2b5a(++_0x361e2b);}(a479_0x1c2b,0x112));const a479_0x4f27=function(_0x12e873,_0x361e2b){_0x12e873=_0x12e873-0x86;let _0x1c2b5a=a479_0x1c2b[_0x12e873];return _0x1c2b5a;};const a479_0x231cc2=a479_0x4f27;'use strict';const _=require(a479_0x231cc2(0x9b)),db=require(a479_0x231cc2(0xbf))['db'],logger=require(a479_0x231cc2(0x89))(a479_0x231cc2(0xb2)),{getSocket}=require(a479_0x231cc2(0xb9)),socket=getSocket(),rs=require('randomstring'),moment=require('moment'),jayson=require(a479_0x231cc2(0xd5)),client=jayson['client'][a479_0x231cc2(0xd9)]({'port':0x232c});require('./mailAccount.socket')[a479_0x231cc2(0xd7)](socket);function respondWithRpcPromise(_0x1ebdcc,_0xb13193,_0x51590b){return new Promise(function(_0xd98d5b,_0x1e2fe1){const _0x23891a=a479_0x4f27;return client[_0x23891a(0xbe)](_0x1ebdcc,_0x51590b)[_0x23891a(0x94)](function(_0x3dc44b){const _0x311c88=_0x23891a;logger['info'](_0x311c88(0xd2),_0xb13193,'request\x20sent'),logger['debug'](_0x311c88(0xa0),_0xb13193,'request\x20sent',JSON[_0x311c88(0x9d)](_0x3dc44b));if(_0x3dc44b[_0x311c88(0xb5)]){if(_0x3dc44b[_0x311c88(0xb5)]['code']===0x1f4)return logger[_0x311c88(0xb5)](_0x311c88(0xd2),_0xb13193,_0x3dc44b[_0x311c88(0xb5)][_0x311c88(0xe0)]),_0x1e2fe1(_0x3dc44b[_0x311c88(0xb5)]['message']);return logger['error'](_0x311c88(0xd2),_0xb13193,_0x3dc44b['error'][_0x311c88(0xe0)]),_0xd98d5b(_0x3dc44b[_0x311c88(0xb5)][_0x311c88(0xe0)]);}else logger[_0x311c88(0xdf)](_0x311c88(0xd2),_0xb13193,_0x311c88(0x96)),_0xd98d5b(_0x3dc44b[_0x311c88(0xd8)][_0x311c88(0xe0)]);})[_0x23891a(0xc4)](function(_0x40dc37){const _0x472dee=_0x23891a;logger[_0x472dee(0xb5)](_0x472dee(0xd2),_0xb13193,_0x40dc37),_0x1e2fe1(_0x40dc37);});});}exports[a479_0x231cc2(0xaf)]=function(_0x2d8241){const _0x4ad4bc=this;return new Promise(function(_0x35bf0f,_0xea2d6c){const _0x1f959f=a479_0x4f27;return db[_0x1f959f(0xce)][_0x1f959f(0x9a)]({'raw':_0x2d8241[_0x1f959f(0xbc)]?_0x2d8241[_0x1f959f(0xbc)][_0x1f959f(0x99)]===undefined?!![]:![]:!![],'where':_0x2d8241[_0x1f959f(0xbc)]?_0x2d8241[_0x1f959f(0xbc)][_0x1f959f(0xc0)]||null:null,'attributes':_0x2d8241['options']?_0x2d8241[_0x1f959f(0xbc)][_0x1f959f(0xd3)]||null:null,'limit':_0x2d8241['options']?_0x2d8241['options']['limit']||null:null,'include':_0x2d8241[_0x1f959f(0xbc)]?_0x2d8241[_0x1f959f(0xbc)][_0x1f959f(0xc8)]?_[_0x1f959f(0x8c)](_0x2d8241[_0x1f959f(0xbc)]['include'],function(_0x1a4bd8){const _0x33b119=_0x1f959f;return{'model':db[_0x1a4bd8[_0x33b119(0x9e)]],'as':_0x1a4bd8['as'],'attributes':_0x1a4bd8[_0x33b119(0xd3)],'include':_0x1a4bd8['include']?_['map'](_0x1a4bd8[_0x33b119(0xc8)],function(_0x201725){const _0x1ad9ff=_0x33b119;return{'model':db[_0x201725[_0x1ad9ff(0x9e)]],'as':_0x201725['as'],'attributes':_0x201725[_0x1ad9ff(0xd3)],'include':_0x201725[_0x1ad9ff(0xc8)]?_[_0x1ad9ff(0x8c)](_0x201725[_0x1ad9ff(0xc8)],function(_0x5e2a7d){const _0x1b6d69=_0x1ad9ff;return{'model':db[_0x5e2a7d[_0x1b6d69(0x9e)]],'as':_0x5e2a7d['as'],'attributes':_0x5e2a7d['attributes']};}):[]};}):[]};}):[]:[]})[_0x1f959f(0x94)](function(_0x248142){const _0x240809=_0x1f959f;logger[_0x240809(0xdf)]('GetMailAccount',_0x2d8241),logger[_0x240809(0x8a)]('GetMailAccount',_0x2d8241,JSON[_0x240809(0x9d)](_0x248142)),_0x35bf0f(_0x248142);})[_0x1f959f(0xc4)](function(_0x4e10f0){const _0x2c132c=_0x1f959f;logger[_0x2c132c(0xb5)](_0x2c132c(0xaf),_0x4e10f0[_0x2c132c(0xe0)],_0x2d8241),_0xea2d6c(_0x4ad4bc[_0x2c132c(0xb5)](0x1f4,_0x4e10f0[_0x2c132c(0xe0)]));});});},exports['ShowMailAccount']=function(_0x1cd6dc){const _0x4d85b3=this;return new Promise(function(_0x573f70,_0x3b45ad){const _0x2e6eba=a479_0x4f27;return db[_0x2e6eba(0xce)][_0x2e6eba(0xb3)]({'raw':_0x1cd6dc[_0x2e6eba(0xbc)]?_0x1cd6dc[_0x2e6eba(0xbc)][_0x2e6eba(0x99)]===undefined?!![]:![]:!![],'where':_0x1cd6dc['options']?_0x1cd6dc[_0x2e6eba(0xbc)][_0x2e6eba(0xc0)]||null:null,'attributes':_0x1cd6dc[_0x2e6eba(0xbc)]?_0x1cd6dc['options']['attributes']||null:null,'include':_0x1cd6dc['options']?_0x1cd6dc[_0x2e6eba(0xbc)][_0x2e6eba(0xc8)]?_[_0x2e6eba(0x8c)](_0x1cd6dc[_0x2e6eba(0xbc)][_0x2e6eba(0xc8)],function(_0x189f0c){const _0x3ccc62=_0x2e6eba;return{'model':db[_0x189f0c[_0x3ccc62(0x9e)]],'as':_0x189f0c['as'],'attributes':_0x189f0c['attributes'],'include':_0x189f0c['include']?_['map'](_0x189f0c[_0x3ccc62(0xc8)],function(_0x157cc8){const _0x384efb=_0x3ccc62;return{'model':db[_0x157cc8[_0x384efb(0x9e)]],'as':_0x157cc8['as'],'attributes':_0x157cc8[_0x384efb(0xd3)],'include':_0x157cc8[_0x384efb(0xc8)]?_[_0x384efb(0x8c)](_0x157cc8[_0x384efb(0xc8)],function(_0x4be83b){const _0x424061=_0x384efb;return{'model':db[_0x4be83b[_0x424061(0x9e)]],'as':_0x4be83b['as'],'attributes':_0x4be83b['attributes']};}):[]};}):[]};}):[]:[]})[_0x2e6eba(0x94)](function(_0x22d47d){const _0x2361b9=_0x2e6eba;logger[_0x2361b9(0xdf)](_0x2361b9(0xba),_0x1cd6dc),logger[_0x2361b9(0x8a)](_0x2361b9(0xba),_0x1cd6dc,JSON[_0x2361b9(0x9d)](_0x22d47d)),_0x573f70(_0x22d47d);})[_0x2e6eba(0xc4)](function(_0x48eeb2){const _0x36f39e=_0x2e6eba;logger[_0x36f39e(0xb5)](_0x36f39e(0xba),_0x48eeb2[_0x36f39e(0xe0)],_0x1cd6dc),_0x3b45ad(_0x4d85b3['error'](0x1f4,_0x48eeb2[_0x36f39e(0xe0)]));});});},exports[a479_0x231cc2(0x87)]=function(_0xd83c1b){const _0x19be1f=this;return new Promise(function(_0x470058,_0x286647){const _0x1bbb49=a479_0x4f27,_0x5c1a62={'body':_0xd83c1b[_0x1bbb49(0x8d)],'channel':'mail'},_0x1aa13c=_[_0x1bbb49(0xbb)](_[_0x1bbb49(0xb1)](db[_0x1bbb49(0x9c)]['rawAttributes']),['createdAt','updatedAt',_0x1bbb49(0xab),_0x1bbb49(0x88)]);let _0x11eeba=![];_0xd83c1b['body']['id']&&delete _0xd83c1b[_0x1bbb49(0x8d)]['id'];if(_['isNil'](_0xd83c1b['body'][_0x1bbb49(0xc2)]))return _0x286647(_0x19be1f[_0x1bbb49(0xb5)](0x1f4,_0x1bbb49(0xcb)));if(_[_0x1bbb49(0xde)](_0xd83c1b['body'][_0x1bbb49(0x8d)])||_0xd83c1b[_0x1bbb49(0x8d)][_0x1bbb49(0x8d)]==='')return _0x286647(_0x19be1f[_0x1bbb49(0xb5)](0x1f4,_0x1bbb49(0xb0)));if(_[_0x1bbb49(0xde)](_0xd83c1b['body'][_0x1bbb49(0xe1)]))return _0x286647(_0x19be1f['error'](0x1f4,_0x1bbb49(0xac)+_0x1aa13c));if(!_['includes'](_0x1aa13c,_0xd83c1b[_0x1bbb49(0x8d)][_0x1bbb49(0xe1)]))return _0x286647(_0x19be1f[_0x1bbb49(0xb5)](0x1f4,_0x1bbb49(0xc9)+_0x1aa13c));const _0x505f2a={};return _0x505f2a[_0xd83c1b[_0x1bbb49(0x8d)][_0x1bbb49(0xe1)]]=_0xd83c1b[_0x1bbb49(0x8d)][_0x1bbb49(0xc2)],db[_0x1bbb49(0xce)][_0x1bbb49(0xb3)]({'where':{'id':_0xd83c1b[_0x1bbb49(0xd0)]['id']},'include':[{'model':db[_0x1bbb49(0xdb)],'as':_0x1bbb49(0x8b),'include':[{'model':db[_0x1bbb49(0x9c)],'as':_0x1bbb49(0x86),'where':_0x505f2a,'limit':0x1,'order':[['updatedAt',_0x1bbb49(0xa7)]]}]},{'model':db[_0x1bbb49(0x95)],'as':'Applications'},{'model':db[_0x1bbb49(0xdc)],'as':_0x1bbb49(0xe2)}]})['then'](function(_0x575398){const _0x342fb2=_0x1bbb49;if(_0x575398&&_0x575398['List']){const _0x275030=_0x575398[_0x342fb2(0xbd)]({'plain':!![]});_0x5c1a62['account']=_[_0x342fb2(0xa1)](_0x275030,['Applications','List']),_0x5c1a62[_0x342fb2(0xa6)]=_0x275030['Applications'],_0x5c1a62[_0x342fb2(0xb7)]=_0x275030[_0x342fb2(0x8b)],_0x5c1a62['applications']=_[_0x342fb2(0xa9)](_0x5c1a62['applications'],['priority'],[_0x342fb2(0xc5)]);_0x5c1a62[_0x342fb2(0xd0)]&&_0x5c1a62[_0x342fb2(0xd0)]['autoclose']&&_0x5c1a62[_0x342fb2(0xa6)][_0x342fb2(0xaa)]({'id':0x0,'priority':_0x5c1a62[_0x342fb2(0xa6)][_0x342fb2(0x97)]+0x1,'app':_0x342fb2(0xda),'appdata':_0x342fb2(0xc1),'interval':'*,*,*,*'});_0x5c1a62['account']['Applications']&&delete _0x5c1a62['account'][_0x342fb2(0x98)];_0x5c1a62[_0x342fb2(0xd0)][_0x342fb2(0x8b)]&&delete _0x5c1a62[_0x342fb2(0xd0)][_0x342fb2(0x8b)];if(_0x275030['List'][_0x342fb2(0x86)][_0x342fb2(0x97)])return _0x275030[_0x342fb2(0x8b)][_0x342fb2(0x86)][0x0];const _0x522a2b=_[_0x342fb2(0xae)](_0xd83c1b[_0x342fb2(0x8d)],{'firstName':_0xd83c1b[_0x342fb2(0x8d)][_0x342fb2(0xc2)],'ListId':_0x275030[_0x342fb2(0x88)]});return _0x522a2b[_0xd83c1b[_0x342fb2(0x8d)]['mapKey']]=_0xd83c1b[_0x342fb2(0x8d)][_0x342fb2(0xc2)],db[_0x342fb2(0x9c)][_0x342fb2(0xdd)](_0x522a2b);}else throw new Error(_0x342fb2(0xad));})['then'](function(_0x583581){const _0x33038d=_0x1bbb49;_0x5c1a62[_0x33038d(0xa4)]=_0x583581;if(_0x583581){!_0xd83c1b[_0x33038d(0x8d)][_0x33038d(0xe0)][_0x33038d(0x8e)]&&(_0xd83c1b[_0x33038d(0x8d)][_0x33038d(0xe0)]['messageId']=rs[_0x33038d(0xcd)]()+'\x20'+_0xd83c1b[_0x33038d(0x8d)][_0x33038d(0xe0)][_0x33038d(0xc2)]);const _0x42a0fa={'ContactId':_0x583581['id'],'MailAccountId':_0xd83c1b[_0x33038d(0xd0)]['id'],'inReplyTo':_0xd83c1b[_0x33038d(0x8d)][_0x33038d(0xe0)][_0x33038d(0x8e)],'to':_0xd83c1b['body'][_0x33038d(0xe0)][_0x33038d(0xc2)],'cc':_0xd83c1b['body'][_0x33038d(0xe0)]['cc'],'subject':_0xd83c1b[_0x33038d(0x8d)]['message'][_0x33038d(0x93)],'attach':_0xd83c1b[_0x33038d(0x8d)]['message']['attach'],'lastMsgAt':moment()['format'](_0x33038d(0xe3)),'lastMsgDirection':'in','lastMsgBody':_0xd83c1b['body']['body']};return db[_0x33038d(0xd4)][_0x33038d(0xb3)]({'where':{'closed':![],'MailAccountId':_0xd83c1b['account']['id']},'include':[{'model':db['MailMessage'],'as':'Messages','attributes':[_0x33038d(0x8e)],'where':{'messageId':_0xd83c1b[_0x33038d(0x8d)][_0x33038d(0xe0)]['inReplyTo']}}]})['then'](function(_0x4ebe4a){const _0x11b4bd=_0x33038d;if(_0x4ebe4a)return[_0x4ebe4a,![]];return db[_0x11b4bd(0xd4)][_0x11b4bd(0xdd)](_0x42a0fa)[_0x11b4bd(0x94)](function(_0x36747b){return[_0x36747b,!![]];});});}else throw new Error(_0x33038d(0xb6));})[_0x1bbb49(0x94)](function([_0x2177da,_0x53fab2]){const _0x4ae6a9=_0x1bbb49;if(_0x2177da)return _0x11eeba=_0x53fab2,!_0x53fab2?_0x2177da[_0x4ae6a9(0xb8)]({'inReplyTo':_0xd83c1b[_0x4ae6a9(0x8d)][_0x4ae6a9(0xe0)][_0x4ae6a9(0x8e)],'to':_0xd83c1b[_0x4ae6a9(0x8d)][_0x4ae6a9(0xe0)][_0x4ae6a9(0xc2)],'cc':_0xd83c1b[_0x4ae6a9(0x8d)][_0x4ae6a9(0xe0)]['cc'],'subject':_0xd83c1b[_0x4ae6a9(0x8d)][_0x4ae6a9(0xe0)][_0x4ae6a9(0x93)],'attach':_0x2177da[_0x4ae6a9(0xd1)]?_0x2177da['attach']:_0xd83c1b[_0x4ae6a9(0x8d)][_0x4ae6a9(0xe0)][_0x4ae6a9(0xd1)],'substatus':null,'substatusAt':moment()[_0x4ae6a9(0xc3)](_0x4ae6a9(0xe3)),'lastMsgAt':moment()[_0x4ae6a9(0xc3)](_0x4ae6a9(0xe3)),'lastMsgDirection':'in','lastMsgBody':_0xd83c1b['body'][_0x4ae6a9(0x8d)]}):_0x2177da;})[_0x1bbb49(0x94)](function(_0x4d3b9f){const _0x480841=_0x1bbb49;return _0x5c1a62['interaction']=_0x4d3b9f[_0x480841(0xbd)]({'plain':!![]}),_0x5c1a62[_0x480841(0xe4)][_0x480841(0xa5)]=_0x11eeba,db[_0x480841(0x9f)][_0x480841(0xdd)]({'body':_0xd83c1b[_0x480841(0x8d)][_0x480841(0x8d)],'MailAccountId':_0xd83c1b[_0x480841(0xd0)]['id'],'MailInteractionId':_0x4d3b9f['id'],'direction':'in','ContactId':_0x5c1a62['contact']['id'],'messageId':_0xd83c1b[_0x480841(0x8d)][_0x480841(0xe0)][_0x480841(0x8e)],'from':_0xd83c1b[_0x480841(0x8d)][_0x480841(0xe0)]['from'],'to':_0xd83c1b[_0x480841(0x8d)]['message']['to'],'cc':_0xd83c1b['body'][_0x480841(0xe0)]['cc'],'subject':_0xd83c1b[_0x480841(0x8d)][_0x480841(0xe0)][_0x480841(0x93)],'attach':_0xd83c1b[_0x480841(0x8d)][_0x480841(0xe0)][_0x480841(0xd1)],'Attachments':_0xd83c1b[_0x480841(0x8d)][_0x480841(0xe0)][_0x480841(0xb4)],'originTo':_0xd83c1b['body'][_0x480841(0xe0)][_0x480841(0xa3)],'originCc':_0xd83c1b[_0x480841(0x8d)][_0x480841(0xe0)][_0x480841(0xd6)],'bcc':_0xd83c1b['body']['message'][_0x480841(0xa2)]},{'include':[{'model':db[_0x480841(0xa8)],'as':_0x480841(0xca)}]});})[_0x1bbb49(0x94)](function(_0x517275){const _0x4410ba=_0x1bbb49;_0x5c1a62[_0x4410ba(0xe0)]=_0x517275;if(_0x5c1a62['interaction'][_0x4410ba(0x91)])return db['User'][_0x4410ba(0xb3)]({'attributes':['id',_0x4410ba(0x92)],'where':{'id':_0x5c1a62[_0x4410ba(0xe4)]['UserId']}})['then'](function(_0x249c9e){const _0xba6100=_0x4410ba;return _0x249c9e&&_0x5c1a62[_0xba6100(0xa6)][_0xba6100(0xc6)]({'id':0x0,'priority':0x0,'app':_0xba6100(0xc7),'appdata':_0x249c9e[_0xba6100(0x92)]+','+(_0x5c1a62[_0xba6100(0xd0)][_0xba6100(0xcf)]||0xa),'interval':_0xba6100(0xcc)}),respondWithRpcPromise(_0xba6100(0x90),'startRouting',_0x5c1a62);});return respondWithRpcPromise(_0x4410ba(0x90),_0x4410ba(0x8f),_0x5c1a62);})[_0x1bbb49(0x94)](function(_0x33b8dd){_0x470058(_0x33b8dd);})[_0x1bbb49(0xc4)](function(_0x49ea2b){_0x286647(_0x19be1f['error'](0x1f4,_0x49ea2b['message']));});});}; \ No newline at end of file +const a479_0x3a62=['MailServerOut','autoclose','./mailAccount.socket','Start','MailAccount,\x20%s,\x20%s','keys','applications','raw','orderBy','debug','difference','model','moment','MailMessage','from\x20is\x20mandatory','mapKey','message','MailAccount,\x20%s,\x20%s,\x20%s','originTo','where','rawAttributes','../../rediscache','GetMailAccount','Contact\x20not\x20found','MailAccount','options','include','get','DESC','findOne','format','push','ListId','omit','subject','attachments','result','updatedAt','messageId','defaults','UserId','asc','lodash','attach','attributes','generate','ShowMailAccount','inReplyTo','CmList','CmContact','NotifyMailAccount','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','from','createdAt','name','code','request\x20sent','Contacts','startRouting','List','Applications','isNil','list','List\x20not\x20found','Attachment','priority','catch','Messages','YYYY-MM-DD\x20HH:mm:ss','interaction','stringify','map','length','limit','close','error','then','info','Attachments','request','MailInteraction','contact','*,*,*,*','account','Smtp','waitForTheAssignedAgent','body'];(function(_0x448546,_0x191633){const _0x3a6247=function(_0x7da2d0){while(--_0x7da2d0){_0x448546['push'](_0x448546['shift']());}};_0x3a6247(++_0x191633);}(a479_0x3a62,0x1ec));const a479_0x7da2=function(_0x448546,_0x191633){_0x448546=_0x448546-0x115;let _0x3a6247=a479_0x3a62[_0x448546];return _0x3a6247;};const a479_0x42145d=a479_0x7da2;'use strict';const _=require(a479_0x42145d(0x15d)),db=require('../../mysqldb')['db'],logger=require('../../config/logger')('rpc'),{getSocket}=require(a479_0x42145d(0x148)),socket=getSocket(),rs=require('randomstring'),moment=require(a479_0x42145d(0x13f)),jayson=require('jayson/promise'),client=jayson['client']['http']({'port':0x232c});require(a479_0x42145d(0x135))['register'](socket);function respondWithRpcPromise(_0x35f805,_0x37bd77,_0x52866f){return new Promise(function(_0x4f096c,_0x59d358){const _0x14f0ff=a479_0x7da2;return client[_0x14f0ff(0x12b)](_0x35f805,_0x52866f)[_0x14f0ff(0x128)](function(_0x416f43){const _0x2c548d=_0x14f0ff;logger[_0x2c548d(0x129)](_0x2c548d(0x137),_0x37bd77,_0x2c548d(0x16b)),logger['debug'](_0x2c548d(0x144),_0x37bd77,_0x2c548d(0x16b),JSON['stringify'](_0x416f43));if(_0x416f43[_0x2c548d(0x127)]){if(_0x416f43[_0x2c548d(0x127)][_0x2c548d(0x16a)]===0x1f4)return logger['error']('MailAccount,\x20%s,\x20%s',_0x37bd77,_0x416f43[_0x2c548d(0x127)][_0x2c548d(0x143)]),_0x59d358(_0x416f43['error'][_0x2c548d(0x143)]);return logger['error'](_0x2c548d(0x137),_0x37bd77,_0x416f43[_0x2c548d(0x127)][_0x2c548d(0x143)]),_0x4f096c(_0x416f43['error']['message']);}else logger[_0x2c548d(0x129)]('MailAccount,\x20%s,\x20%s',_0x37bd77,_0x2c548d(0x16b)),_0x4f096c(_0x416f43[_0x2c548d(0x157)][_0x2c548d(0x143)]);})[_0x14f0ff(0x11e)](function(_0x4048d3){const _0x1a3b79=_0x14f0ff;logger[_0x1a3b79(0x127)](_0x1a3b79(0x137),_0x37bd77,_0x4048d3),_0x59d358(_0x4048d3);});});}exports[a479_0x42145d(0x149)]=function(_0xb2f221){const _0x56eebe=this;return new Promise(function(_0x25f176,_0xe72623){const _0x263d65=a479_0x7da2;return db[_0x263d65(0x14b)]['findAll']({'raw':_0xb2f221[_0x263d65(0x14c)]?_0xb2f221['options'][_0x263d65(0x13a)]===undefined?!![]:![]:!![],'where':_0xb2f221[_0x263d65(0x14c)]?_0xb2f221[_0x263d65(0x14c)]['where']||null:null,'attributes':_0xb2f221[_0x263d65(0x14c)]?_0xb2f221['options'][_0x263d65(0x15f)]||null:null,'limit':_0xb2f221[_0x263d65(0x14c)]?_0xb2f221[_0x263d65(0x14c)][_0x263d65(0x125)]||null:null,'include':_0xb2f221[_0x263d65(0x14c)]?_0xb2f221[_0x263d65(0x14c)]['include']?_[_0x263d65(0x123)](_0xb2f221[_0x263d65(0x14c)]['include'],function(_0x5b48ff){const _0x183162=_0x263d65;return{'model':db[_0x5b48ff[_0x183162(0x13e)]],'as':_0x5b48ff['as'],'attributes':_0x5b48ff['attributes'],'include':_0x5b48ff[_0x183162(0x14d)]?_['map'](_0x5b48ff[_0x183162(0x14d)],function(_0x1f514a){const _0x114bb2=_0x183162;return{'model':db[_0x1f514a[_0x114bb2(0x13e)]],'as':_0x1f514a['as'],'attributes':_0x1f514a['attributes'],'include':_0x1f514a['include']?_[_0x114bb2(0x123)](_0x1f514a[_0x114bb2(0x14d)],function(_0x1e4bd2){const _0x2c1bbd=_0x114bb2;return{'model':db[_0x1e4bd2['model']],'as':_0x1e4bd2['as'],'attributes':_0x1e4bd2[_0x2c1bbd(0x15f)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x2262ad){const _0x504a5e=_0x263d65;logger[_0x504a5e(0x129)](_0x504a5e(0x149),_0xb2f221),logger[_0x504a5e(0x13c)](_0x504a5e(0x149),_0xb2f221,JSON[_0x504a5e(0x122)](_0x2262ad)),_0x25f176(_0x2262ad);})[_0x263d65(0x11e)](function(_0x4ddd46){const _0x3a9caf=_0x263d65;logger[_0x3a9caf(0x127)]('GetMailAccount',_0x4ddd46[_0x3a9caf(0x143)],_0xb2f221),_0xe72623(_0x56eebe[_0x3a9caf(0x127)](0x1f4,_0x4ddd46[_0x3a9caf(0x143)]));});});},exports[a479_0x42145d(0x161)]=function(_0xee3ac5){const _0x2d9177=this;return new Promise(function(_0x568f77,_0x59f58a){const _0x156e13=a479_0x7da2;return db['MailAccount'][_0x156e13(0x150)]({'raw':_0xee3ac5[_0x156e13(0x14c)]?_0xee3ac5[_0x156e13(0x14c)][_0x156e13(0x13a)]===undefined?!![]:![]:!![],'where':_0xee3ac5[_0x156e13(0x14c)]?_0xee3ac5[_0x156e13(0x14c)][_0x156e13(0x146)]||null:null,'attributes':_0xee3ac5['options']?_0xee3ac5[_0x156e13(0x14c)][_0x156e13(0x15f)]||null:null,'include':_0xee3ac5[_0x156e13(0x14c)]?_0xee3ac5[_0x156e13(0x14c)][_0x156e13(0x14d)]?_[_0x156e13(0x123)](_0xee3ac5['options'][_0x156e13(0x14d)],function(_0x22fb26){const _0x2309da=_0x156e13;return{'model':db[_0x22fb26[_0x2309da(0x13e)]],'as':_0x22fb26['as'],'attributes':_0x22fb26[_0x2309da(0x15f)],'include':_0x22fb26[_0x2309da(0x14d)]?_['map'](_0x22fb26['include'],function(_0x4b4c84){const _0x320128=_0x2309da;return{'model':db[_0x4b4c84[_0x320128(0x13e)]],'as':_0x4b4c84['as'],'attributes':_0x4b4c84[_0x320128(0x15f)],'include':_0x4b4c84[_0x320128(0x14d)]?_[_0x320128(0x123)](_0x4b4c84[_0x320128(0x14d)],function(_0x5d59b3){const _0x2353f7=_0x320128;return{'model':db[_0x5d59b3[_0x2353f7(0x13e)]],'as':_0x5d59b3['as'],'attributes':_0x5d59b3[_0x2353f7(0x15f)]};}):[]};}):[]};}):[]:[]})[_0x156e13(0x128)](function(_0x3a695c){const _0x2a1908=_0x156e13;logger[_0x2a1908(0x129)](_0x2a1908(0x161),_0xee3ac5),logger[_0x2a1908(0x13c)](_0x2a1908(0x161),_0xee3ac5,JSON[_0x2a1908(0x122)](_0x3a695c)),_0x568f77(_0x3a695c);})[_0x156e13(0x11e)](function(_0x301aeb){const _0x4edd33=_0x156e13;logger[_0x4edd33(0x127)](_0x4edd33(0x161),_0x301aeb[_0x4edd33(0x143)],_0xee3ac5),_0x59f58a(_0x2d9177[_0x4edd33(0x127)](0x1f4,_0x301aeb[_0x4edd33(0x143)]));});});},exports[a479_0x42145d(0x165)]=function(_0x18d49d){const _0x5b1798=this;return new Promise(function(_0x338dfb,_0x61b758){const _0x315f6f=a479_0x7da2,_0x2bcb82={'body':_0x18d49d['body'],'channel':'mail'},_0x32c973=_[_0x315f6f(0x13d)](_[_0x315f6f(0x138)](db['CmContact'][_0x315f6f(0x147)]),[_0x315f6f(0x168),_0x315f6f(0x158),'CompanyId',_0x315f6f(0x153)]);let _0x168399=![];_0x18d49d['body']['id']&&delete _0x18d49d['body']['id'];if(_[_0x315f6f(0x119)](_0x18d49d[_0x315f6f(0x132)][_0x315f6f(0x167)]))return _0x61b758(_0x5b1798[_0x315f6f(0x127)](0x1f4,_0x315f6f(0x141)));if(_[_0x315f6f(0x119)](_0x18d49d['body'][_0x315f6f(0x132)])||_0x18d49d[_0x315f6f(0x132)][_0x315f6f(0x132)]==='')return _0x61b758(_0x5b1798['error'](0x1f4,'body\x20is\x20mandatory\x20and\x20not\x20empty'));if(_[_0x315f6f(0x119)](_0x18d49d[_0x315f6f(0x132)][_0x315f6f(0x142)]))return _0x61b758(_0x5b1798[_0x315f6f(0x127)](0x1f4,'mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x32c973));if(!_['includes'](_0x32c973,_0x18d49d['body']['mapKey']))return _0x61b758(_0x5b1798[_0x315f6f(0x127)](0x1f4,_0x315f6f(0x166)+_0x32c973));const _0x4ecf2c={};return _0x4ecf2c[_0x18d49d[_0x315f6f(0x132)]['mapKey']]=_0x18d49d[_0x315f6f(0x132)][_0x315f6f(0x167)],db[_0x315f6f(0x14b)][_0x315f6f(0x150)]({'where':{'id':_0x18d49d[_0x315f6f(0x12f)]['id']},'include':[{'model':db[_0x315f6f(0x163)],'as':_0x315f6f(0x117),'include':[{'model':db[_0x315f6f(0x164)],'as':_0x315f6f(0x115),'where':_0x4ecf2c,'limit':0x1,'order':[[_0x315f6f(0x158),_0x315f6f(0x14f)]]}]},{'model':db['MailApplication'],'as':_0x315f6f(0x118)},{'model':db[_0x315f6f(0x133)],'as':_0x315f6f(0x130)}]})[_0x315f6f(0x128)](function(_0x3497d1){const _0x70484=_0x315f6f;if(_0x3497d1&&_0x3497d1[_0x70484(0x117)]){const _0x2f6437=_0x3497d1[_0x70484(0x14e)]({'plain':!![]});_0x2bcb82[_0x70484(0x12f)]=_[_0x70484(0x154)](_0x2f6437,['Applications',_0x70484(0x117)]),_0x2bcb82['applications']=_0x2f6437[_0x70484(0x118)],_0x2bcb82[_0x70484(0x11a)]=_0x2f6437[_0x70484(0x117)],_0x2bcb82[_0x70484(0x139)]=_[_0x70484(0x13b)](_0x2bcb82[_0x70484(0x139)],[_0x70484(0x11d)],[_0x70484(0x15c)]);_0x2bcb82[_0x70484(0x12f)]&&_0x2bcb82[_0x70484(0x12f)][_0x70484(0x134)]&&_0x2bcb82[_0x70484(0x139)][_0x70484(0x152)]({'id':0x0,'priority':_0x2bcb82['applications'][_0x70484(0x124)]+0x1,'app':_0x70484(0x126),'appdata':_0x70484(0x134),'interval':_0x70484(0x12e)});_0x2bcb82['account']['Applications']&&delete _0x2bcb82[_0x70484(0x12f)]['Applications'];_0x2bcb82[_0x70484(0x12f)][_0x70484(0x117)]&&delete _0x2bcb82[_0x70484(0x12f)][_0x70484(0x117)];if(_0x2f6437[_0x70484(0x117)][_0x70484(0x115)][_0x70484(0x124)])return _0x2f6437[_0x70484(0x117)]['Contacts'][0x0];const _0x5c698e=_[_0x70484(0x15a)](_0x18d49d[_0x70484(0x132)],{'firstName':_0x18d49d['body'][_0x70484(0x167)],'ListId':_0x2f6437[_0x70484(0x153)]});return _0x5c698e[_0x18d49d['body'][_0x70484(0x142)]]=_0x18d49d[_0x70484(0x132)][_0x70484(0x167)],db[_0x70484(0x164)]['create'](_0x5c698e);}else throw new Error(_0x70484(0x11b));})[_0x315f6f(0x128)](function(_0x567022){const _0x232288=_0x315f6f;_0x2bcb82[_0x232288(0x12d)]=_0x567022;if(_0x567022){!_0x18d49d['body'][_0x232288(0x143)][_0x232288(0x159)]&&(_0x18d49d[_0x232288(0x132)]['message']['messageId']=rs[_0x232288(0x160)]()+'\x20'+_0x18d49d[_0x232288(0x132)][_0x232288(0x143)][_0x232288(0x167)]);const _0x3fcdbd={'ContactId':_0x567022['id'],'MailAccountId':_0x18d49d[_0x232288(0x12f)]['id'],'inReplyTo':_0x18d49d[_0x232288(0x132)][_0x232288(0x143)][_0x232288(0x159)],'to':_0x18d49d[_0x232288(0x132)][_0x232288(0x143)][_0x232288(0x167)],'cc':_0x18d49d[_0x232288(0x132)][_0x232288(0x143)]['cc'],'subject':_0x18d49d[_0x232288(0x132)][_0x232288(0x143)][_0x232288(0x155)],'attach':_0x18d49d[_0x232288(0x132)][_0x232288(0x143)][_0x232288(0x15e)],'lastMsgAt':moment()[_0x232288(0x151)](_0x232288(0x120)),'lastMsgDirection':'in','lastMsgBody':_0x18d49d[_0x232288(0x132)]['body']};return db[_0x232288(0x12c)][_0x232288(0x150)]({'where':{'closed':![],'MailAccountId':_0x18d49d[_0x232288(0x12f)]['id']},'include':[{'model':db[_0x232288(0x140)],'as':_0x232288(0x11f),'attributes':['messageId'],'where':{'messageId':_0x18d49d[_0x232288(0x132)][_0x232288(0x143)][_0x232288(0x162)]}}]})[_0x232288(0x128)](function(_0x569e97){const _0x116d02=_0x232288;if(_0x569e97)return[_0x569e97,![]];return db[_0x116d02(0x12c)]['create'](_0x3fcdbd)[_0x116d02(0x128)](function(_0x172f69){return[_0x172f69,!![]];});});}else throw new Error(_0x232288(0x14a));})[_0x315f6f(0x128)](function([_0x4b5637,_0x380758]){const _0x2da6ab=_0x315f6f;if(_0x4b5637)return _0x168399=_0x380758,!_0x380758?_0x4b5637['update']({'inReplyTo':_0x18d49d[_0x2da6ab(0x132)][_0x2da6ab(0x143)][_0x2da6ab(0x159)],'to':_0x18d49d[_0x2da6ab(0x132)]['message'][_0x2da6ab(0x167)],'cc':_0x18d49d[_0x2da6ab(0x132)]['message']['cc'],'subject':_0x18d49d[_0x2da6ab(0x132)][_0x2da6ab(0x143)]['subject'],'attach':_0x4b5637[_0x2da6ab(0x15e)]?_0x4b5637[_0x2da6ab(0x15e)]:_0x18d49d['body']['message'][_0x2da6ab(0x15e)],'substatus':null,'substatusAt':moment()['format'](_0x2da6ab(0x120)),'lastMsgAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'lastMsgDirection':'in','lastMsgBody':_0x18d49d[_0x2da6ab(0x132)][_0x2da6ab(0x132)]}):_0x4b5637;})[_0x315f6f(0x128)](function(_0x5856d5){const _0x35d860=_0x315f6f;return _0x2bcb82[_0x35d860(0x121)]=_0x5856d5[_0x35d860(0x14e)]({'plain':!![]}),_0x2bcb82['interaction']['created']=_0x168399,db[_0x35d860(0x140)]['create']({'body':_0x18d49d[_0x35d860(0x132)]['body'],'MailAccountId':_0x18d49d[_0x35d860(0x12f)]['id'],'MailInteractionId':_0x5856d5['id'],'direction':'in','ContactId':_0x2bcb82[_0x35d860(0x12d)]['id'],'messageId':_0x18d49d['body'][_0x35d860(0x143)]['messageId'],'from':_0x18d49d[_0x35d860(0x132)]['message']['from'],'to':_0x18d49d['body'][_0x35d860(0x143)]['to'],'cc':_0x18d49d[_0x35d860(0x132)]['message']['cc'],'subject':_0x18d49d[_0x35d860(0x132)][_0x35d860(0x143)][_0x35d860(0x155)],'attach':_0x18d49d[_0x35d860(0x132)]['message'][_0x35d860(0x15e)],'Attachments':_0x18d49d['body'][_0x35d860(0x143)][_0x35d860(0x156)],'originTo':_0x18d49d[_0x35d860(0x132)]['message'][_0x35d860(0x145)],'originCc':_0x18d49d['body'][_0x35d860(0x143)]['originCc'],'bcc':_0x18d49d[_0x35d860(0x132)][_0x35d860(0x143)]['bcc']},{'include':[{'model':db[_0x35d860(0x11c)],'as':_0x35d860(0x12a)}]});})['then'](function(_0x158958){const _0x1faebc=_0x315f6f;_0x2bcb82[_0x1faebc(0x143)]=_0x158958;if(_0x2bcb82[_0x1faebc(0x121)][_0x1faebc(0x15b)])return db['User'][_0x1faebc(0x150)]({'attributes':['id',_0x1faebc(0x169)],'where':{'id':_0x2bcb82[_0x1faebc(0x121)]['UserId']}})[_0x1faebc(0x128)](function(_0x5b5a71){const _0x2e920b=_0x1faebc;return _0x5b5a71&&_0x2bcb82[_0x2e920b(0x139)]['unshift']({'id':0x0,'priority':0x0,'app':'agent','appdata':_0x5b5a71[_0x2e920b(0x169)]+','+(_0x2bcb82[_0x2e920b(0x12f)][_0x2e920b(0x131)]||0xa),'interval':_0x2e920b(0x12e)}),respondWithRpcPromise(_0x2e920b(0x136),_0x2e920b(0x116),_0x2bcb82);});return respondWithRpcPromise('Start',_0x1faebc(0x116),_0x2bcb82);})['then'](function(_0x4e0dc2){_0x338dfb(_0x4e0dc2);})[_0x315f6f(0x11e)](function(_0xca3e){const _0x4fce27=_0x315f6f;_0x61b758(_0x5b1798[_0x4fce27(0x127)](0x1f4,_0xca3e['message']));});});}; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.socket.js b/server/api/mailAccount/mailAccount.socket.js index 5f4febd..b30b213 100644 --- a/server/api/mailAccount/mailAccount.socket.js +++ b/server/api/mailAccount/mailAccount.socket.js @@ -1 +1 @@ -const a480_0x37fa=['update','save','mailAccount:','register','remove','length'];(function(_0x5e00b3,_0x2ff5b0){const _0x37fa3c=function(_0x415ec4){while(--_0x415ec4){_0x5e00b3['push'](_0x5e00b3['shift']());}};_0x37fa3c(++_0x2ff5b0);}(a480_0x37fa,0xf8));const a480_0x415e=function(_0x5e00b3,_0x2ff5b0){_0x5e00b3=_0x5e00b3-0x10f;let _0x37fa3c=a480_0x37fa[_0x5e00b3];return _0x37fa3c;};const a480_0x13d066=a480_0x415e;'use strict';const MailAccountEvents=require('./mailAccount.events'),events=[a480_0x13d066(0x114),a480_0x13d066(0x111),a480_0x13d066(0x113)];function createListener(_0x4438a5,_0xdc07c2){return function(_0x24a3b4){_0xdc07c2['emit'](_0x4438a5,_0x24a3b4);};}exports[a480_0x13d066(0x110)]=function(_0x281ec4){const _0x116355=a480_0x13d066;for(let _0x28533a=0x0,_0x522e26=events[_0x116355(0x112)];_0x28533a<_0x522e26;_0x28533a++){const _0x3ac9e0=events[_0x28533a],_0x5ad5bc=createListener(_0x116355(0x10f)+_0x3ac9e0,_0x281ec4);MailAccountEvents['on'](_0x3ac9e0,_0x5ad5bc);}}; \ No newline at end of file +const a480_0x3ce6=['update','save','length','register','./mailAccount.events','remove','mailAccount:'];(function(_0x102bca,_0xb190a2){const _0x3ce67b=function(_0x216145){while(--_0x216145){_0x102bca['push'](_0x102bca['shift']());}};_0x3ce67b(++_0xb190a2);}(a480_0x3ce6,0x8d));const a480_0x2161=function(_0x102bca,_0xb190a2){_0x102bca=_0x102bca-0x1bf;let _0x3ce67b=a480_0x3ce6[_0x102bca];return _0x3ce67b;};const a480_0x37c89b=a480_0x2161;'use strict';const MailAccountEvents=require(a480_0x37c89b(0x1c2)),events=[a480_0x37c89b(0x1bf),a480_0x37c89b(0x1c3),a480_0x37c89b(0x1c5)];function createListener(_0x4780d0,_0x5649bc){return function(_0x273e69){_0x5649bc['emit'](_0x4780d0,_0x273e69);};}exports[a480_0x37c89b(0x1c1)]=function(_0x16e20d){const _0x52138c=a480_0x37c89b;for(let _0x411785=0x0,_0x206dbd=events[_0x52138c(0x1c0)];_0x411785<_0x206dbd;_0x411785++){const _0x26ba21=events[_0x411785],_0x2f7a2f=createListener(_0x52138c(0x1c4)+_0x26ba21,_0x16e20d);MailAccountEvents['on'](_0x26ba21,_0x2f7a2f);}}; \ No newline at end of file diff --git a/server/api/mailApplication/index.js b/server/api/mailApplication/index.js index ac01cb8..b332c20 100644 --- a/server/api/mailApplication/index.js +++ b/server/api/mailApplication/index.js @@ -1 +1 @@ -const a481_0x3d14=['Router','update','destroy','delete','/:id','exports','get','isAuthenticated'];(function(_0x5442a6,_0x3fb564){const _0x3d14a4=function(_0x5dafde){while(--_0x5dafde){_0x5442a6['push'](_0x5442a6['shift']());}};_0x3d14a4(++_0x3fb564);}(a481_0x3d14,0x98));const a481_0x5daf=function(_0x5442a6,_0x3fb564){_0x5442a6=_0x5442a6-0x10f;let _0x3d14a4=a481_0x3d14[_0x5442a6];return _0x3d14a4;};const a481_0x13a466=a481_0x5daf;'use strict';const express=require('express'),router=express[a481_0x13a466(0x10f)](),auth=require('../../components/auth/service'),controller=require('./mailApplication.controller');router[a481_0x13a466(0x115)](a481_0x13a466(0x113),auth['isAuthenticated'](),controller['show']),router['put'](a481_0x13a466(0x113),auth[a481_0x13a466(0x116)](),controller[a481_0x13a466(0x110)]),router[a481_0x13a466(0x112)]('/:id',auth[a481_0x13a466(0x116)](),controller[a481_0x13a466(0x111)]),module[a481_0x13a466(0x114)]=router; \ No newline at end of file +const a481_0x49f3=['isAuthenticated','../../components/auth/service','delete','/:id','Router','destroy','exports','get','put','./mailApplication.controller','update','show'];(function(_0x3e0017,_0x5b7fb9){const _0x49f308=function(_0x1084fb){while(--_0x1084fb){_0x3e0017['push'](_0x3e0017['shift']());}};_0x49f308(++_0x5b7fb9);}(a481_0x49f3,0x138));const a481_0x1084=function(_0x3e0017,_0x5b7fb9){_0x3e0017=_0x3e0017-0x8b;let _0x49f308=a481_0x49f3[_0x3e0017];return _0x49f308;};const a481_0x50d56e=a481_0x1084;'use strict';const express=require('express'),router=express[a481_0x50d56e(0x8f)](),auth=require(a481_0x50d56e(0x8c)),controller=require(a481_0x50d56e(0x94));router[a481_0x50d56e(0x92)]('/:id',auth[a481_0x50d56e(0x8b)](),controller[a481_0x50d56e(0x96)]),router[a481_0x50d56e(0x93)]('/:id',auth[a481_0x50d56e(0x8b)](),controller[a481_0x50d56e(0x95)]),router[a481_0x50d56e(0x8d)](a481_0x50d56e(0x8e),auth[a481_0x50d56e(0x8b)](),controller[a481_0x50d56e(0x90)]),module[a481_0x50d56e(0x91)]=router; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.attributes.js b/server/api/mailApplication/mailApplication.attributes.js index 5f05696..11b950f 100644 --- a/server/api/mailApplication/mailApplication.attributes.js +++ b/server/api/mailApplication/mailApplication.attributes.js @@ -1 +1 @@ -const a482_0x502c=['STRING','INTEGER','sequelize','TEXT','exports','attributes'];(function(_0x5d5994,_0x57f9c1){const _0x502cd7=function(_0x475202){while(--_0x475202){_0x5d5994['push'](_0x5d5994['shift']());}};_0x502cd7(++_0x57f9c1);}(a482_0x502c,0xf3));const a482_0x4752=function(_0x5d5994,_0x57f9c1){_0x5d5994=_0x5d5994-0x98;let _0x502cd7=a482_0x502c[_0x5d5994];return _0x502cd7;};const a482_0x35d0d2=a482_0x4752;'use strict';const {DataTypes}=require(a482_0x35d0d2(0x9d)),attributes={'priority':{'type':DataTypes[a482_0x35d0d2(0x9c)],'allowNull':![]},'app':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':'noop'},'appdata':{'type':DataTypes[a482_0x35d0d2(0x98)]()},'description':{'type':DataTypes[a482_0x35d0d2(0x9b)]},'interval':{'type':DataTypes[a482_0x35d0d2(0x9b)],'defaultValue':'*,*,*,*'}};module[a482_0x35d0d2(0x99)][a482_0x35d0d2(0x9a)]=attributes; \ No newline at end of file +const a482_0x3ef6=['STRING','exports','TEXT','attributes','sequelize'];(function(_0x5ca9f3,_0x29008c){const _0x3ef6b7=function(_0x2d1d2b){while(--_0x2d1d2b){_0x5ca9f3['push'](_0x5ca9f3['shift']());}};_0x3ef6b7(++_0x29008c);}(a482_0x3ef6,0x19e));const a482_0x2d1d=function(_0x5ca9f3,_0x29008c){_0x5ca9f3=_0x5ca9f3-0x1da;let _0x3ef6b7=a482_0x3ef6[_0x5ca9f3];return _0x3ef6b7;};const a482_0x3e425e=a482_0x2d1d;'use strict';const {DataTypes}=require(a482_0x3e425e(0x1da)),attributes={'priority':{'type':DataTypes['INTEGER'],'allowNull':![]},'app':{'type':DataTypes[a482_0x3e425e(0x1db)],'allowNull':![],'defaultValue':'noop'},'appdata':{'type':DataTypes[a482_0x3e425e(0x1dd)]()},'description':{'type':DataTypes['STRING']},'interval':{'type':DataTypes[a482_0x3e425e(0x1db)],'defaultValue':'*,*,*,*'}};module[a482_0x3e425e(0x1dc)][a482_0x3e425e(0x1de)]=attributes; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.controller.js b/server/api/mailApplication/mailApplication.controller.js index a8b6d80..f1bd416 100644 --- a/server/api/mailApplication/mailApplication.controller.js +++ b/server/api/mailApplication/mailApplication.controller.js @@ -1 +1 @@ -const a483_0x4437=['stack','send','filters','status','body','MailApplication','options','catch','query','../../config/logger','params','destroy','model','includeAll','attributes','then','intersection','sendStatus','fields','lodash','length','include','api','../../components/parsers/qs','rawAttributes','name','error','update','findOne','keys'];(function(_0x19e8f1,_0x32dc0e){const _0x4437f6=function(_0x1a35be){while(--_0x1a35be){_0x19e8f1['push'](_0x19e8f1['shift']());}};_0x4437f6(++_0x32dc0e);}(a483_0x4437,0x1b0));const a483_0x1a35=function(_0x19e8f1,_0x32dc0e){_0x19e8f1=_0x19e8f1-0x16d;let _0x4437f6=a483_0x4437[_0x19e8f1];return _0x4437f6;};const a483_0x4faebf=a483_0x1a35;'use strict';const _=require(a483_0x4faebf(0x174)),qs=require(a483_0x4faebf(0x178)),logger=require(a483_0x4faebf(0x188))(a483_0x4faebf(0x177)),{db}=require('../../mysqldb');function respondWithResult(_0x35601a,_0x3c8c96){return _0x3c8c96=_0x3c8c96||0xc8,function(_0x2618c2){const _0x5b2452=a483_0x1a35;if(_0x2618c2)return _0x35601a[_0x5b2452(0x182)](_0x3c8c96)['json'](_0x2618c2);};}function saveUpdates(_0x349e3f){return function(_0x3d004b){const _0x4dac29=a483_0x1a35;if(_0x3d004b)return _0x3d004b[_0x4dac29(0x17c)](_0x349e3f)[_0x4dac29(0x170)](function(_0x44cb94){return _0x44cb94;});return null;};}function removeEntity(_0x30e340){return function(_0x426f89){if(_0x426f89)return _0x426f89['destroy']()['then'](function(){const _0x16a865=a483_0x1a35;_0x30e340[_0x16a865(0x182)](0xcc)['end']();});};}function handleEntityNotFound(_0x337f0e){return function(_0x1c9910){const _0x4976f2=a483_0x1a35;return!_0x1c9910&&_0x337f0e[_0x4976f2(0x172)](0x194),_0x1c9910;};}function handleError(_0x445049,_0x19f73f){return _0x19f73f=_0x19f73f||0x1f4,function(_0x3d384b){const _0x457f2b=a483_0x1a35;logger[_0x457f2b(0x17b)](_0x3d384b[_0x457f2b(0x17f)]),_0x3d384b[_0x457f2b(0x17a)]&&delete _0x3d384b['name'],_0x445049['status'](_0x19f73f)[_0x457f2b(0x180)](_0x3d384b);};}exports['show']=function(_0x1c094a,_0x5aee73){const _0x1537b5=a483_0x4faebf;let _0x1e8e60={'raw':!![],'where':{'id':_0x1c094a[_0x1537b5(0x189)]['id']}};const _0x35efbb={};return _0x35efbb[_0x1537b5(0x16d)]=_[_0x1537b5(0x17e)](db[_0x1537b5(0x184)][_0x1537b5(0x179)]),_0x35efbb[_0x1537b5(0x187)]=_[_0x1537b5(0x17e)](_0x1c094a[_0x1537b5(0x187)]),_0x35efbb[_0x1537b5(0x181)]=_['intersection'](_0x35efbb['model'],_0x35efbb[_0x1537b5(0x187)]),_0x1e8e60[_0x1537b5(0x16f)]=_[_0x1537b5(0x171)](_0x35efbb[_0x1537b5(0x16d)],qs[_0x1537b5(0x173)](_0x1c094a[_0x1537b5(0x187)][_0x1537b5(0x173)])),_0x1e8e60[_0x1537b5(0x16f)]=_0x1e8e60[_0x1537b5(0x16f)][_0x1537b5(0x175)]?_0x1e8e60[_0x1537b5(0x16f)]:_0x35efbb[_0x1537b5(0x16d)],_0x1c094a['query'][_0x1537b5(0x16e)]&&(_0x1e8e60[_0x1537b5(0x176)]=[{'all':!![]}]),_0x1e8e60=_['merge']({},_0x1e8e60,_0x1c094a[_0x1537b5(0x185)]),db[_0x1537b5(0x184)][_0x1537b5(0x17d)](_0x1e8e60)[_0x1537b5(0x170)](handleEntityNotFound(_0x5aee73,null))[_0x1537b5(0x170)](respondWithResult(_0x5aee73,null))['catch'](handleError(_0x5aee73,null));},exports['update']=function(_0x3246db,_0x486a6e){const _0x27bd68=a483_0x4faebf;return _0x3246db['body']['id']&&delete _0x3246db[_0x27bd68(0x183)]['id'],db['MailApplication'][_0x27bd68(0x17d)]({'where':{'id':_0x3246db[_0x27bd68(0x189)]['id']}})[_0x27bd68(0x170)](handleEntityNotFound(_0x486a6e,null))[_0x27bd68(0x170)](saveUpdates(_0x3246db[_0x27bd68(0x183)],null))['then'](respondWithResult(_0x486a6e,null))[_0x27bd68(0x186)](handleError(_0x486a6e,null));},exports[a483_0x4faebf(0x18a)]=function(_0xa88b8e,_0xb7a320){const _0x3143e8=a483_0x4faebf;return db['MailApplication']['findOne']({'where':{'id':_0xa88b8e[_0x3143e8(0x189)]['id']}})['then'](handleEntityNotFound(_0xb7a320,null))[_0x3143e8(0x170)](removeEntity(_0xb7a320,null))[_0x3143e8(0x186)](handleError(_0xb7a320,null));}; \ No newline at end of file +const a483_0xda0b=['includeAll','params','update','json','stack','../../components/parsers/qs','../../config/logger','destroy','api','options','name','catch','then','sendStatus','end','rawAttributes','fields','MailApplication','../../mysqldb','length','body','intersection','send','query','lodash','status','findOne','include','error','filters','model','attributes','keys'];(function(_0x54f262,_0x191fcc){const _0xda0b88=function(_0x30987f){while(--_0x30987f){_0x54f262['push'](_0x54f262['shift']());}};_0xda0b88(++_0x191fcc);}(a483_0xda0b,0x122));const a483_0x3098=function(_0x54f262,_0x191fcc){_0x54f262=_0x54f262-0x70;let _0xda0b88=a483_0xda0b[_0x54f262];return _0xda0b88;};const a483_0x42e5b0=a483_0x3098;'use strict';const _=require(a483_0x42e5b0(0x8f)),qs=require(a483_0x42e5b0(0x7c)),logger=require(a483_0x42e5b0(0x7d))(a483_0x42e5b0(0x7f)),{db}=require(a483_0x42e5b0(0x89));function respondWithResult(_0x329013,_0xc3fe8c){return _0xc3fe8c=_0xc3fe8c||0xc8,function(_0x5dad46){const _0x172fd3=a483_0x3098;if(_0x5dad46)return _0x329013[_0x172fd3(0x90)](_0xc3fe8c)[_0x172fd3(0x7a)](_0x5dad46);};}function saveUpdates(_0x3c60a9){return function(_0x1ca48d){const _0x2ae8e5=a483_0x3098;if(_0x1ca48d)return _0x1ca48d[_0x2ae8e5(0x79)](_0x3c60a9)[_0x2ae8e5(0x83)](function(_0x27c551){return _0x27c551;});return null;};}function removeEntity(_0x1cec30){return function(_0x62f91f){const _0x406333=a483_0x3098;if(_0x62f91f)return _0x62f91f[_0x406333(0x7e)]()[_0x406333(0x83)](function(){const _0xa9b442=_0x406333;_0x1cec30[_0xa9b442(0x90)](0xcc)[_0xa9b442(0x85)]();});};}function handleEntityNotFound(_0x4b87ae){return function(_0x2e671a){const _0x41fe1f=a483_0x3098;return!_0x2e671a&&_0x4b87ae[_0x41fe1f(0x84)](0x194),_0x2e671a;};}function handleError(_0x5cda68,_0x12aae0){return _0x12aae0=_0x12aae0||0x1f4,function(_0x5b4a42){const _0x29e1fc=a483_0x3098;logger[_0x29e1fc(0x72)](_0x5b4a42[_0x29e1fc(0x7b)]),_0x5b4a42['name']&&delete _0x5b4a42[_0x29e1fc(0x81)],_0x5cda68[_0x29e1fc(0x90)](_0x12aae0)[_0x29e1fc(0x8d)](_0x5b4a42);};}exports['show']=function(_0x537d58,_0x81483){const _0xe22856=a483_0x42e5b0;let _0x30ecbe={'raw':!![],'where':{'id':_0x537d58[_0xe22856(0x78)]['id']}};const _0xa3a784={};return _0xa3a784[_0xe22856(0x74)]=_[_0xe22856(0x76)](db[_0xe22856(0x88)][_0xe22856(0x86)]),_0xa3a784[_0xe22856(0x8e)]=_[_0xe22856(0x76)](_0x537d58['query']),_0xa3a784[_0xe22856(0x73)]=_[_0xe22856(0x8c)](_0xa3a784[_0xe22856(0x74)],_0xa3a784['query']),_0x30ecbe[_0xe22856(0x75)]=_[_0xe22856(0x8c)](_0xa3a784[_0xe22856(0x74)],qs['fields'](_0x537d58[_0xe22856(0x8e)][_0xe22856(0x87)])),_0x30ecbe[_0xe22856(0x75)]=_0x30ecbe[_0xe22856(0x75)][_0xe22856(0x8a)]?_0x30ecbe[_0xe22856(0x75)]:_0xa3a784[_0xe22856(0x74)],_0x537d58[_0xe22856(0x8e)][_0xe22856(0x77)]&&(_0x30ecbe[_0xe22856(0x71)]=[{'all':!![]}]),_0x30ecbe=_['merge']({},_0x30ecbe,_0x537d58[_0xe22856(0x80)]),db['MailApplication'][_0xe22856(0x70)](_0x30ecbe)[_0xe22856(0x83)](handleEntityNotFound(_0x81483,null))[_0xe22856(0x83)](respondWithResult(_0x81483,null))[_0xe22856(0x82)](handleError(_0x81483,null));},exports[a483_0x42e5b0(0x79)]=function(_0x5100c6,_0x3de379){const _0x112500=a483_0x42e5b0;return _0x5100c6['body']['id']&&delete _0x5100c6[_0x112500(0x8b)]['id'],db[_0x112500(0x88)]['findOne']({'where':{'id':_0x5100c6[_0x112500(0x78)]['id']}})[_0x112500(0x83)](handleEntityNotFound(_0x3de379,null))[_0x112500(0x83)](saveUpdates(_0x5100c6[_0x112500(0x8b)],null))[_0x112500(0x83)](respondWithResult(_0x3de379,null))[_0x112500(0x82)](handleError(_0x3de379,null));},exports[a483_0x42e5b0(0x7e)]=function(_0x52a7d1,_0x3565d4){const _0x3e108b=a483_0x42e5b0;return db[_0x3e108b(0x88)]['findOne']({'where':{'id':_0x52a7d1[_0x3e108b(0x78)]['id']}})[_0x3e108b(0x83)](handleEntityNotFound(_0x3565d4,null))[_0x3e108b(0x83)](removeEntity(_0x3565d4,null))[_0x3e108b(0x82)](handleError(_0x3565d4,null));}; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.model.js b/server/api/mailApplication/mailApplication.model.js index 056f2ca..797c4fc 100644 --- a/server/api/mailApplication/mailApplication.model.js +++ b/server/api/mailApplication/mailApplication.model.js @@ -1 +1 @@ -const a484_0x5e0e=['sequelize','exports','./mailApplication.attributes','MailApplication','init'];(function(_0x483d2f,_0x2a8c7d){const _0x5e0e64=function(_0x323b3e){while(--_0x323b3e){_0x483d2f['push'](_0x483d2f['shift']());}};_0x5e0e64(++_0x2a8c7d);}(a484_0x5e0e,0xc8));const a484_0x323b=function(_0x483d2f,_0x2a8c7d){_0x483d2f=_0x483d2f-0xf3;let _0x5e0e64=a484_0x5e0e[_0x483d2f];return _0x5e0e64;};const a484_0x363e60=a484_0x323b;'use strict';const {Model}=require(a484_0x363e60(0xf3)),{attributes}=require(a484_0x363e60(0xf5)),{options}=require('./mailApplication.options');class MailApplication extends Model{}function init(_0x5bbc1d,_0x3ade08){const _0x3436bd=a484_0x363e60,_0x3de3bd=options(_0x5bbc1d),_0x2a83a0=typeof _0x3ade08==='function'?_0x3ade08(_0x3de3bd):_0x3de3bd;return MailApplication[_0x3436bd(0xf7)](attributes,_0x2a83a0),MailApplication;}module['exports'][a484_0x363e60(0xf6)]=MailApplication,module[a484_0x363e60(0xf4)][a484_0x363e60(0xf7)]=init; \ No newline at end of file +const a484_0x15a5=['exports','init','MailApplication','function'];(function(_0x3c5f16,_0x35bac5){const _0x15a5cc=function(_0x58202f){while(--_0x58202f){_0x3c5f16['push'](_0x3c5f16['shift']());}};_0x15a5cc(++_0x35bac5);}(a484_0x15a5,0x141));const a484_0x5820=function(_0x3c5f16,_0x35bac5){_0x3c5f16=_0x3c5f16-0x1da;let _0x15a5cc=a484_0x15a5[_0x3c5f16];return _0x15a5cc;};const a484_0x164e72=a484_0x5820;'use strict';const {Model}=require('sequelize'),{attributes}=require('./mailApplication.attributes'),{options}=require('./mailApplication.options');class MailApplication extends Model{}function init(_0x27346,_0x23316a){const _0x1a9d8e=a484_0x5820,_0x1f340d=options(_0x27346),_0x1ee48d=typeof _0x23316a===_0x1a9d8e(0x1dc)?_0x23316a(_0x1f340d):_0x1f340d;return MailApplication[_0x1a9d8e(0x1da)](attributes,_0x1ee48d),MailApplication;}module[a484_0x164e72(0x1dd)][a484_0x164e72(0x1db)]=MailApplication,module[a484_0x164e72(0x1dd)]['init']=init; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.options.js b/server/api/mailApplication/mailApplication.options.js index 25b351a..835891d 100644 --- a/server/api/mailApplication/mailApplication.options.js +++ b/server/api/mailApplication/mailApplication.options.js @@ -1 +1 @@ -var a485_0x5d4b=['utf8mb4_unicode_ci','exports','utf8mb4'];(function(_0x17673c,_0x1b8749){var _0x5d4b3e=function(_0x4646f1){while(--_0x4646f1){_0x17673c['push'](_0x17673c['shift']());}};_0x5d4b3e(++_0x1b8749);}(a485_0x5d4b,0xd1));var a485_0x4646=function(_0x17673c,_0x1b8749){_0x17673c=_0x17673c-0x68;var _0x5d4b3e=a485_0x5d4b[_0x17673c];return _0x5d4b3e;};var a485_0x9bfa00=a485_0x4646;function options(_0x546b6e){var _0x36d774=a485_0x4646;return{'sequelize':_0x546b6e,'tableName':'mail_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x36d774(0x68),'collate':_0x36d774(0x69)};}module[a485_0x9bfa00(0x6a)]['options']=options; \ No newline at end of file +var a485_0x1653=['options','utf8mb4_unicode_ci','mail_applications','exports'];(function(_0x57b599,_0x13e22c){var _0x165345=function(_0x3a99ab){while(--_0x3a99ab){_0x57b599['push'](_0x57b599['shift']());}};_0x165345(++_0x13e22c);}(a485_0x1653,0x1c4));var a485_0x3a99=function(_0x57b599,_0x13e22c){_0x57b599=_0x57b599-0x91;var _0x165345=a485_0x1653[_0x57b599];return _0x165345;};var a485_0x544e60=a485_0x3a99;function options(_0xe22dd3){var _0x105353=a485_0x3a99;return{'sequelize':_0xe22dd3,'tableName':_0x105353(0x93),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x105353(0x92)};}module[a485_0x544e60(0x94)][a485_0x544e60(0x91)]=options; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.rpc.js b/server/api/mailApplication/mailApplication.rpc.js index 903e95f..1355017 100644 --- a/server/api/mailApplication/mailApplication.rpc.js +++ b/server/api/mailApplication/mailApplication.rpc.js @@ -1 +1 @@ -const a486_0x2d8e=['info','raw','update','catch','../../config/logger','message','debug','UpdateMailApplication','error','where','body','then','attributes','options','../../mysqldb','MailApplication'];(function(_0x19bf5c,_0x5ce33a){const _0x2d8e6c=function(_0x236533){while(--_0x236533){_0x19bf5c['push'](_0x19bf5c['shift']());}};_0x2d8e6c(++_0x5ce33a);}(a486_0x2d8e,0x1d9));const a486_0x2365=function(_0x19bf5c,_0x5ce33a){_0x19bf5c=_0x19bf5c-0x1c1;let _0x2d8e6c=a486_0x2d8e[_0x19bf5c];return _0x2d8e6c;};const a486_0x5cf068=a486_0x2365;'use strict';const db=require(a486_0x5cf068(0x1c6))['db'],logger=require(a486_0x5cf068(0x1cc))('rpc');exports[a486_0x5cf068(0x1cf)]=function(_0x3f0444){const _0x5164d0=this;return new Promise(function(_0x2e8b48,_0x5917c3){const _0x39c30b=a486_0x2365;return db[_0x39c30b(0x1c7)][_0x39c30b(0x1ca)](_0x3f0444[_0x39c30b(0x1c2)],{'raw':_0x3f0444[_0x39c30b(0x1c5)]?_0x3f0444[_0x39c30b(0x1c5)][_0x39c30b(0x1c9)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3f0444[_0x39c30b(0x1c5)]?_0x3f0444[_0x39c30b(0x1c5)][_0x39c30b(0x1c1)]||null:null,'attributes':_0x3f0444[_0x39c30b(0x1c5)]?_0x3f0444[_0x39c30b(0x1c5)][_0x39c30b(0x1c4)]||null:null,'limit':_0x3f0444[_0x39c30b(0x1c5)]?_0x3f0444[_0x39c30b(0x1c5)]['limit']||null:null})[_0x39c30b(0x1c3)](function(_0x2327da){const _0xca9128=_0x39c30b;logger[_0xca9128(0x1c8)]('UpdateMailApplication',_0x3f0444),logger[_0xca9128(0x1ce)](_0xca9128(0x1cf),_0x3f0444,JSON['stringify'](_0x2327da)),_0x2e8b48(_0x2327da);})[_0x39c30b(0x1cb)](function(_0x534577){const _0x5b1d27=_0x39c30b;logger[_0x5b1d27(0x1d0)]('UpdateMailApplication',_0x534577[_0x5b1d27(0x1cd)],_0x3f0444),_0x5917c3(_0x5164d0['error'](0x1f4,_0x534577[_0x5b1d27(0x1cd)]));});});}; \ No newline at end of file +const a486_0x27dd=['stringify','limit','info','rpc','attributes','options','then','UpdateMailApplication','debug','message','../../config/logger','../../mysqldb','error','where','body'];(function(_0x39801b,_0x1f274){const _0x27dd32=function(_0x1ac14f){while(--_0x1ac14f){_0x39801b['push'](_0x39801b['shift']());}};_0x27dd32(++_0x1f274);}(a486_0x27dd,0x119));const a486_0x1ac1=function(_0x39801b,_0x1f274){_0x39801b=_0x39801b-0xa1;let _0x27dd32=a486_0x27dd[_0x39801b];return _0x27dd32;};const a486_0x3f9fb5=a486_0x1ac1;'use strict';const db=require(a486_0x3f9fb5(0xa1))['db'],logger=require(a486_0x3f9fb5(0xaf))(a486_0x3f9fb5(0xa8));exports['UpdateMailApplication']=function(_0x266fdd){const _0x2f60ca=this;return new Promise(function(_0x33080a,_0x99ba3){const _0x536a7c=a486_0x1ac1;return db['MailApplication']['update'](_0x266fdd[_0x536a7c(0xa4)],{'raw':_0x266fdd[_0x536a7c(0xaa)]?_0x266fdd[_0x536a7c(0xaa)]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x266fdd[_0x536a7c(0xaa)]?_0x266fdd[_0x536a7c(0xaa)][_0x536a7c(0xa3)]||null:null,'attributes':_0x266fdd[_0x536a7c(0xaa)]?_0x266fdd[_0x536a7c(0xaa)][_0x536a7c(0xa9)]||null:null,'limit':_0x266fdd[_0x536a7c(0xaa)]?_0x266fdd[_0x536a7c(0xaa)][_0x536a7c(0xa6)]||null:null})[_0x536a7c(0xab)](function(_0x1625ff){const _0x39062=_0x536a7c;logger[_0x39062(0xa7)](_0x39062(0xac),_0x266fdd),logger[_0x39062(0xad)](_0x39062(0xac),_0x266fdd,JSON[_0x39062(0xa5)](_0x1625ff)),_0x33080a(_0x1625ff);})['catch'](function(_0x346c13){const _0x1491a2=_0x536a7c;logger['error'](_0x1491a2(0xac),_0x346c13[_0x1491a2(0xae)],_0x266fdd),_0x99ba3(_0x2f60ca[_0x1491a2(0xa2)](0x1f4,_0x346c13['message']));});});}; \ No newline at end of file diff --git a/server/api/mailInteraction/index.js b/server/api/mailInteraction/index.js index 817fd27..f23cd26 100644 --- a/server/api/mailInteraction/index.js +++ b/server/api/mailInteraction/index.js @@ -1 +1 @@ -const a487_0x4201=['tracked','exports','delete','../../components/interaction/service','mail','create','get','put','post','download','addTags','addMessage','./mailInteraction.controller','/:id/tags','update','getMessages','/:id/download','mailinteraction:destroy','/:id/messages','express','mailinteraction:update','index','../../components/auth/service','removeTags','isAuthenticated','show','mailinteraction:addtags','describe','/:id'];(function(_0x22583b,_0x424174){const _0x4201e0=function(_0x46704e){while(--_0x46704e){_0x22583b['push'](_0x22583b['shift']());}};_0x4201e0(++_0x424174);}(a487_0x4201,0xe5));const a487_0x4670=function(_0x22583b,_0x424174){_0x22583b=_0x22583b-0x127;let _0x4201e0=a487_0x4201[_0x22583b];return _0x4201e0;};const a487_0x29c130=a487_0x4670;'use strict';const express=require(a487_0x29c130(0x13d)),router=express['Router'](),auth=require(a487_0x29c130(0x140)),interaction=require(a487_0x29c130(0x12d)),controller=require(a487_0x29c130(0x136));router[a487_0x29c130(0x130)]('/',auth['isAuthenticated'](),controller[a487_0x29c130(0x13f)]),router[a487_0x29c130(0x130)]('/describe',auth[a487_0x29c130(0x142)](),controller[a487_0x29c130(0x128)]),router['get'](a487_0x29c130(0x129),auth[a487_0x29c130(0x142)](),controller[a487_0x29c130(0x143)]),router[a487_0x29c130(0x130)](a487_0x29c130(0x13c),auth[a487_0x29c130(0x142)](),controller[a487_0x29c130(0x139)]),router[a487_0x29c130(0x130)](a487_0x29c130(0x13a),auth[a487_0x29c130(0x142)](),controller[a487_0x29c130(0x133)]),router[a487_0x29c130(0x132)]('/',auth['isAuthenticated'](),controller[a487_0x29c130(0x12f)]),router[a487_0x29c130(0x132)]('/:id/messages',auth['isAuthenticated'](),controller[a487_0x29c130(0x135)]),router[a487_0x29c130(0x132)]('/:id/tags',auth[a487_0x29c130(0x142)](),interaction[a487_0x29c130(0x12a)]('mail',a487_0x29c130(0x127)),controller[a487_0x29c130(0x134)]),router[a487_0x29c130(0x131)]('/:id',auth[a487_0x29c130(0x142)](),interaction[a487_0x29c130(0x12a)]('mail',a487_0x29c130(0x13e)),controller[a487_0x29c130(0x138)]),router[a487_0x29c130(0x12c)]('/:id',auth[a487_0x29c130(0x142)](),interaction[a487_0x29c130(0x12a)](a487_0x29c130(0x12e),a487_0x29c130(0x13b)),controller['destroy']),router['delete'](a487_0x29c130(0x137),auth[a487_0x29c130(0x142)](),controller[a487_0x29c130(0x141)]),module[a487_0x29c130(0x12b)]=router; \ No newline at end of file +const a487_0x35f8=['describe','addTags','/describe','create','delete','tracked','/:id/messages','show','addMessage','../../components/interaction/service','./mailInteraction.controller','isAuthenticated','update','get','/:id','Router','/:id/tags','mailinteraction:addtags','/:id/download','exports','mailinteraction:destroy','getMessages','mail','post','../../components/auth/service'];(function(_0xf8576c,_0x37d580){const _0x35f8b3=function(_0x52bc56){while(--_0x52bc56){_0xf8576c['push'](_0xf8576c['shift']());}};_0x35f8b3(++_0x37d580);}(a487_0x35f8,0xfb));const a487_0x52bc=function(_0xf8576c,_0x37d580){_0xf8576c=_0xf8576c-0x102;let _0x35f8b3=a487_0x35f8[_0xf8576c];return _0x35f8b3;};const a487_0x4db37c=a487_0x52bc;'use strict';const express=require('express'),router=express[a487_0x4db37c(0x110)](),auth=require(a487_0x4db37c(0x119)),interaction=require(a487_0x4db37c(0x10a)),controller=require(a487_0x4db37c(0x10b));router[a487_0x4db37c(0x10e)]('/',auth[a487_0x4db37c(0x10c)](),controller['index']),router[a487_0x4db37c(0x10e)](a487_0x4db37c(0x103),auth[a487_0x4db37c(0x10c)](),controller[a487_0x4db37c(0x11a)]),router['get'](a487_0x4db37c(0x10f),auth[a487_0x4db37c(0x10c)](),controller[a487_0x4db37c(0x108)]),router['get']('/:id/messages',auth[a487_0x4db37c(0x10c)](),controller[a487_0x4db37c(0x116)]),router[a487_0x4db37c(0x10e)](a487_0x4db37c(0x113),auth[a487_0x4db37c(0x10c)](),controller['download']),router['post']('/',auth[a487_0x4db37c(0x10c)](),controller[a487_0x4db37c(0x104)]),router[a487_0x4db37c(0x118)](a487_0x4db37c(0x107),auth[a487_0x4db37c(0x10c)](),controller[a487_0x4db37c(0x109)]),router[a487_0x4db37c(0x118)](a487_0x4db37c(0x111),auth[a487_0x4db37c(0x10c)](),interaction[a487_0x4db37c(0x106)](a487_0x4db37c(0x117),a487_0x4db37c(0x112)),controller[a487_0x4db37c(0x102)]),router['put'](a487_0x4db37c(0x10f),auth['isAuthenticated'](),interaction['tracked'](a487_0x4db37c(0x117),'mailinteraction:update'),controller[a487_0x4db37c(0x10d)]),router[a487_0x4db37c(0x105)](a487_0x4db37c(0x10f),auth['isAuthenticated'](),interaction[a487_0x4db37c(0x106)](a487_0x4db37c(0x117),a487_0x4db37c(0x115)),controller['destroy']),router['delete'](a487_0x4db37c(0x111),auth[a487_0x4db37c(0x10c)](),controller['removeTags']),module[a487_0x4db37c(0x114)]=router; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.attributes.js b/server/api/mailInteraction/mailInteraction.attributes.js index a584695..9adb973 100644 --- a/server/api/mailInteraction/mailInteraction.attributes.js +++ b/server/api/mailInteraction/mailInteraction.attributes.js @@ -1 +1 @@ -const a488_0x5a37=['BOOLEAN','out','ENUM','attributes','sequelize','long','DATE','STRING','TEXT','exports'];(function(_0x409951,_0x3564ea){const _0x5a3782=function(_0x268b5f){while(--_0x268b5f){_0x409951['push'](_0x409951['shift']());}};_0x5a3782(++_0x3564ea);}(a488_0x5a37,0x148));const a488_0x268b=function(_0x409951,_0x3564ea){_0x409951=_0x409951-0x103;let _0x5a3782=a488_0x5a37[_0x409951];return _0x5a3782;};const a488_0x4ce76a=a488_0x268b;'use strict';const {DataTypes}=require(a488_0x4ce76a(0x109)),attributes={'closed':{'type':DataTypes[a488_0x4ce76a(0x105)],'defaultValue':![]},'closedAt':{'type':DataTypes[a488_0x4ce76a(0x10b)]},'disposition':{'type':DataTypes['STRING']},'secondDisposition':{'type':DataTypes[a488_0x4ce76a(0x10c)]},'thirdDisposition':{'type':DataTypes[a488_0x4ce76a(0x10c)]},'note':{'type':DataTypes[a488_0x4ce76a(0x10c)]},'inReplyTo':{'type':DataTypes['STRING'](0x1fe)},'to':{'type':DataTypes[a488_0x4ce76a(0x10c)]},'cc':{'type':DataTypes[a488_0x4ce76a(0x103)]({'length':a488_0x4ce76a(0x10a)})},'subject':{'type':DataTypes[a488_0x4ce76a(0x103)]()},'attach':{'type':DataTypes[a488_0x4ce76a(0x105)],'defaultValue':![]},'read1stAt':{'type':DataTypes[a488_0x4ce76a(0x10b)]},'substatus':{'type':DataTypes[a488_0x4ce76a(0x10c)](0x3c)},'substatusAt':{'type':DataTypes[a488_0x4ce76a(0x10b)]},'firstMsgDirection':{'type':DataTypes[a488_0x4ce76a(0x107)]('in',a488_0x4ce76a(0x106)),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':DataTypes[a488_0x4ce76a(0x10b)]},'lastMsgDirection':{'type':DataTypes[a488_0x4ce76a(0x107)]('in',a488_0x4ce76a(0x106)),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':DataTypes[a488_0x4ce76a(0x103)]({'length':a488_0x4ce76a(0x10a)})},'lastMsgText':{'type':DataTypes[a488_0x4ce76a(0x103)]({'length':a488_0x4ce76a(0x10a)})}};module[a488_0x4ce76a(0x104)][a488_0x4ce76a(0x108)]=attributes; \ No newline at end of file +const a488_0x53af=['long','exports','STRING','ENUM','DATE','sequelize','TEXT','BOOLEAN','out'];(function(_0x3b1e1b,_0x330386){const _0x53af59=function(_0x901f2d){while(--_0x901f2d){_0x3b1e1b['push'](_0x3b1e1b['shift']());}};_0x53af59(++_0x330386);}(a488_0x53af,0x166));const a488_0x901f=function(_0x3b1e1b,_0x330386){_0x3b1e1b=_0x3b1e1b-0xc1;let _0x53af59=a488_0x53af[_0x3b1e1b];return _0x53af59;};const a488_0x4664f9=a488_0x901f;'use strict';const {DataTypes}=require(a488_0x4664f9(0xc8)),attributes={'closed':{'type':DataTypes[a488_0x4664f9(0xc1)],'defaultValue':![]},'closedAt':{'type':DataTypes[a488_0x4664f9(0xc7)]},'disposition':{'type':DataTypes[a488_0x4664f9(0xc5)]},'secondDisposition':{'type':DataTypes['STRING']},'thirdDisposition':{'type':DataTypes[a488_0x4664f9(0xc5)]},'note':{'type':DataTypes[a488_0x4664f9(0xc5)]},'inReplyTo':{'type':DataTypes[a488_0x4664f9(0xc5)](0x1fe)},'to':{'type':DataTypes[a488_0x4664f9(0xc5)]},'cc':{'type':DataTypes['TEXT']({'length':a488_0x4664f9(0xc3)})},'subject':{'type':DataTypes[a488_0x4664f9(0xc9)]()},'attach':{'type':DataTypes[a488_0x4664f9(0xc1)],'defaultValue':![]},'read1stAt':{'type':DataTypes[a488_0x4664f9(0xc7)]},'substatus':{'type':DataTypes['STRING'](0x3c)},'substatusAt':{'type':DataTypes[a488_0x4664f9(0xc7)]},'firstMsgDirection':{'type':DataTypes[a488_0x4664f9(0xc6)]('in',a488_0x4664f9(0xc2)),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':DataTypes[a488_0x4664f9(0xc7)]},'lastMsgDirection':{'type':DataTypes[a488_0x4664f9(0xc6)]('in','out'),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':DataTypes[a488_0x4664f9(0xc9)]({'length':'long'})},'lastMsgText':{'type':DataTypes[a488_0x4664f9(0xc9)]({'length':'long'})}};module[a488_0x4664f9(0xc4)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.controller.js b/server/api/mailInteraction/mailInteraction.controller.js index ced4e57..8449a24 100644 --- a/server/api/mailInteraction/mailInteraction.controller.js +++ b/server/api/mailInteraction/mailInteraction.controller.js @@ -1 +1 @@ -const a489_0x25c7=['UserId','filters','fields','model','error','push','`\x20=\x200','mail_messages','findAll','contactName','u.id\x20=\x20ui.UserId','Account.key','`unreadMessages`\x20>\x200','map','eml-format','\x20IS\x20NULL','subject','find','rimraf','SELECT','addTags','all','plainBody','merge','ui.MailInteractionId','resolve','i.secondDisposition','left_join','sort','parse','order','type','index','mkdirSync','Contact.lastName','User','build','user','Attachments','i.disposition','omit','lastMsgBody','stack','mailInteractionTags:save','conditions','TagIds','parseSearch','mail_interactions','i.id','../../config/environment','union','where','tools_tags','attachments','i.attach','sendStatus','undefined','message%d.eml','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','query','get','buildExpression','download','`\x20>\x200','isEmail','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','forEach','rows','GROUP_CONCAT(DISTINCT\x20t.id)','Setting','removeTags','expr','show','o.internal','Tag','tag','../../components/parsers/qs','enableEmailPreview','a.mandatoryDisposition','writeFileSync','Contact.firstName','./mailInteraction.socket','MATCH\x20(me.plainBody,\x20me.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','i.MailAccountId\x20IS\x20NULL','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','server','include','i.thirdDisposition','catch','findOne','join','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','attributes','`unreadMessages`\x20=\x200','tmp','gte','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','name','offset','c.email','from','status','group','read','getMailAccounts','root','start','then','unlinkSync','../../components/parsers/advancedSearch','setTags','i.MailAccountId\x20IN\x20?','MailAccountId','select','i.UserId','o.fullname','sqlOperator','c.firstName','toString','../../config/logger','$gte','compact','field','value','mail_accounts','c.email\x20LIKE\x20?','options','destroy','createdAt','search','moment','Content-Range','Account.mandatoryDisposition','split','intersection','i.createdAt','i.MailAccountId\x20IS\x20NOT\x20NULL','json','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','some','files','i.subject','lastMsgText','replace','api','u.fullname','headers','having','register','basename','count','MATCH\x20(i.to,\x20i.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','ui.MailInteractionId\x20IN\x20?','sequelize','concat','getFullTextValue','getMessages','log','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','rawAttributes','unreadMessages','like','ContactId','filter','Users','err','fieldName','ids','t.id\x20=\x20it.TagId','zip-dir','describe','existsSync','i.ContactId','MailInteraction','$lte','MailMessage','$substring','set','nolimit','send','key','end','c.fax','pick','readFileSync','isNumeric','keyBy','i.lastMsgDirection','mail_interaction_has_tags','a.id\x20=\x20i.MailAccountId','MailInteractionId','create','lodash','clone','i.closedAt','o.id\x20=\x20i.UserId','users','operator','t.id\x20IN\x20?','fullname','format','addMessage','c.mobile','text','length','Contact','params','limit','i.substatus','body','c.lastName','update','user_has_mail_interactions','keys','bcc','html-to-text','isEmpty'];(function(_0x370193,_0x3838a3){const _0x25c7ff=function(_0x423300){while(--_0x423300){_0x370193['push'](_0x370193['shift']());}};_0x25c7ff(++_0x3838a3);}(a489_0x25c7,0xfb));const a489_0x4233=function(_0x370193,_0x3838a3){_0x370193=_0x370193-0x75;let _0x25c7ff=a489_0x25c7[_0x370193];return _0x25c7ff;};const a489_0x10eea6=a489_0x4233;'use strict';const emlformat=require(a489_0x10eea6(0x13a)),rimraf=require(a489_0x10eea6(0x13e)),zipdir=require(a489_0x10eea6(0xfc)),moment=require(a489_0x10eea6(0xd5)),util=require('util'),path=require('path'),fs=require('fs'),_=require(a489_0x10eea6(0x113)),squel=require('squel'),{htmlToText}=require(a489_0x10eea6(0x12a)),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(a489_0x10eea6(0x9f)),as=require(a489_0x10eea6(0xc0)),logger=require(a489_0x10eea6(0xca))(a489_0x10eea6(0xe3)),config=require(a489_0x10eea6(0x84)),{db}=require('../../mysqldb'),{Op,QueryTypes}=require('sequelize');require(a489_0x10eea6(0xa4))[a489_0x10eea6(0xe7)](socket);function respondWithStatusCode(_0x76e0ef,_0x33bed6){return _0x33bed6=_0x33bed6||0xcc,function(_0x1d6cba){const _0x51da04=a489_0x4233;if(_0x1d6cba)return _0x76e0ef[_0x51da04(0x8a)](_0x33bed6);return _0x76e0ef[_0x51da04(0xb8)](_0x33bed6)[_0x51da04(0x108)]();};}function respondWithResult(_0x145a64,_0x56bff2){return _0x56bff2=_0x56bff2||0xc8,function(_0x3d36d6){const _0x1d0ad4=a489_0x4233;if(_0x3d36d6)return _0x145a64[_0x1d0ad4(0xb8)](_0x56bff2)[_0x1d0ad4(0xdc)](_0x3d36d6);};}function respondWithFilteredResult(_0x270bc8,_0x4e79f9){return function(_0x195ee4){const _0x63fee2=a489_0x4233;if(_0x195ee4){const _0x5e02af=_0x195ee4['count'],_0x54816a=_0x4e79f9[_0x63fee2(0xb5)];let _0x1fcbd5=_0x4e79f9['offset']+_0x4e79f9[_0x63fee2(0x122)],_0xaeea4c;return _0x1fcbd5>=_0x5e02af?(_0x1fcbd5=_0x5e02af,_0xaeea4c=0xc8):_0xaeea4c=0xce,_0x270bc8[_0x63fee2(0xb8)](_0xaeea4c),_0x270bc8[_0x63fee2(0x104)](_0x63fee2(0xd6),_0x54816a+'-'+_0x1fcbd5+'/'+_0x5e02af)[_0x63fee2(0xdc)](_0x195ee4);}return null;};}function saveUpdates(_0xfdf395){return function(_0x4e1743){const _0xf524ed=a489_0x4233;if(_0x4e1743)return _0x4e1743[_0xf524ed(0x126)](_0xfdf395)[_0xf524ed(0xbe)](function(_0x456015){return _0x456015;});return null;};}function removeEntity(_0x272204){return function(_0x476a1e){const _0x52b0b0=a489_0x4233;if(_0x476a1e)return _0x476a1e[_0x52b0b0(0xd2)]()[_0x52b0b0(0xbe)](function(){const _0x4f4272=_0x52b0b0;_0x272204[_0x4f4272(0xb8)](0xcc)[_0x4f4272(0x108)]();});};}function handleEntityNotFound(_0x479257){return function(_0x3f527e){const _0x3f03d4=a489_0x4233;return!_0x3f527e&&_0x479257[_0x3f03d4(0x8a)](0x194),_0x3f527e;};}function handleError(_0x4f0733,_0x4919be){return _0x4919be=_0x4919be||0x1f4,function(_0x3c1614){const _0x41b333=a489_0x4233;logger[_0x41b333(0x130)](_0x3c1614[_0x41b333(0x7d)]),_0x3c1614[_0x41b333(0xb4)]&&delete _0x3c1614[_0x41b333(0xb4)],_0x4f0733[_0x41b333(0xb8)](_0x4919be)[_0x41b333(0x106)](_0x3c1614);};}function getInteractionUsers(_0x4dca67,_0x1aed27){return new Promise(function(_0x4699f8,_0x311155){const _0x3c15cf=a489_0x4233;try{_0x1aed27[_0x4dca67['id']]&&(_0x4dca67[_0x3c15cf(0xf7)]=_['map'](_0x1aed27[_0x4dca67['id']],function(_0xe2e6d4){const _0x43dbd2=_0x3c15cf;return{'id':_0xe2e6d4['id'],'fullname':_0xe2e6d4[_0x43dbd2(0x11a)]};}));}catch(_0x533be0){_0x311155(_0x533be0);}_0x4699f8(_0x4dca67);});}function getInteractionTags(_0x4c8431,_0x513826){return new Promise(function(_0x3cdab3,_0x612960){const _0x2aa97e=a489_0x4233;try{_0x4c8431[_0x2aa97e(0x80)]&&(_0x4c8431['Tags']=[],_0x4c8431[_0x2aa97e(0x80)][_0x2aa97e(0xd8)](',')[_0x2aa97e(0x95)](function(_0x1ec5b8){const _0x590b2a=_0x2aa97e;_0x4c8431['Tags'][_0x590b2a(0x131)](_0x513826[_0x1ec5b8]);})),delete _0x4c8431['TagIds'];}catch(_0x5fa32f){_0x612960(_0x5fa32f);}_0x3cdab3(_0x4c8431);});}function getLastMessageText(_0x5a996a){return new Promise(function(_0x76e19f,_0x5208ae){const _0x3d8240=a489_0x4233;return db['MailInteraction']['findOne']({'where':{'id':_0x5a996a['id']},'attributes':[_0x3d8240(0x7c),'lastMsgText'],'raw':!![]})[_0x3d8240(0xbe)](function(_0x329a57){const _0x499563=_0x3d8240;!_0x329a57[_0x499563(0xe1)]?_0x5a996a[_0x499563(0xe1)]=_['trimStart'](htmlToText(_0x329a57[_0x499563(0x7c)],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]})):_0x5a996a['lastMsgText']=_0x329a57['lastMsgText'],_0x76e19f(_0x5a996a);})[_0x3d8240(0xab)](function(_0x56aa84){_0x5208ae(_0x56aa84);});});}function updateMailInteraction(_0x58baa1,_0x3026e6,_0x293ae0,_0x23864b){return new Promise(function(_0x17dca0,_0x6c09e6){const _0x4eb6ca=a489_0x4233;return getInteractionUsers(_0x58baa1,_0x293ae0)[_0x4eb6ca(0xbe)](function(_0x4a3a44){return getInteractionTags(_0x4a3a44,_0x3026e6);})[_0x4eb6ca(0xbe)](function(_0xe79d92){_0x23864b?_0x17dca0(getLastMessageText(_0xe79d92)):_0x17dca0(_0xe79d92);})['catch'](function(_0x93fbaf){_0x6c09e6(_0x93fbaf);});});}exports[a489_0x10eea6(0x14c)]=function(_0x1705ef,_0x45e498){const _0x23811f=a489_0x10eea6,_0x195321={},_0xaeec06={},_0x154202={'count':0x0,'rows':[]},_0x51836d=_[_0x23811f(0x139)](db[_0x23811f(0x100)][_0x23811f(0xf2)],function(_0x21f732){const _0x3f8296=_0x23811f;return{'name':_0x21f732[_0x3f8296(0xf9)],'type':_0x21f732[_0x3f8296(0x14b)][_0x3f8296(0x107)]};});_0xaeec06[_0x23811f(0x12f)]=_[_0x23811f(0x139)](_0x51836d,_0x23811f(0xb4)),_0xaeec06[_0x23811f(0x8e)]=_['keys'](_0x1705ef[_0x23811f(0x8e)]),_0xaeec06[_0x23811f(0x12d)]=_['intersection'](_0xaeec06[_0x23811f(0x12f)],_0xaeec06[_0x23811f(0x8e)]),_0x195321[_0x23811f(0xaf)]=_[_0x23811f(0xd9)](_0xaeec06['model'],qs[_0x23811f(0x12e)](_0x1705ef['query'][_0x23811f(0x12e)])),_0x195321['attributes']=_0x195321['attributes']['length']?_0x195321[_0x23811f(0xaf)]:_0xaeec06['model'];typeof _0x1705ef[_0x23811f(0x8e)][_0x23811f(0x105)]===_0x23811f(0x8b)&&(_0x195321[_0x23811f(0x122)]=qs['limit'](_0x1705ef[_0x23811f(0x8e)][_0x23811f(0x122)]),_0x195321[_0x23811f(0xb5)]=qs['offset'](_0x1705ef[_0x23811f(0x8e)][_0x23811f(0xb5)]));_0x195321[_0x23811f(0x14a)]=qs[_0x23811f(0x148)](_0x1705ef[_0x23811f(0x8e)][_0x23811f(0x148)]),_0x195321['where']=qs[_0x23811f(0x12d)](_['pick'](_0x1705ef[_0x23811f(0x8e)],_0xaeec06[_0x23811f(0x12d)]),_0x51836d);let _0x4b01c8=[];const _0x25fe70=squel[_0x23811f(0xc4)]()[_0x23811f(0xcd)]('id')[_0x23811f(0xcd)]('name')[_0x23811f(0xcd)]('color')[_0x23811f(0xb7)](_0x23811f(0x87)),_0x1c32fa=squel[_0x23811f(0xc4)]()['field']('u.id')['field'](_0x23811f(0xe4))[_0x23811f(0xcd)](_0x23811f(0x144))[_0x23811f(0xb7)](_0x23811f(0x127),'ui')[_0x23811f(0x147)](_0x23811f(0x117),'u',_0x23811f(0x136)),_0x39767a=squel['select']()[_0x23811f(0xb7)](_0x23811f(0x82),'i')['left_join']('cm_contacts','c',_0x23811f(0x94))[_0x23811f(0x147)](_0x23811f(0x117),'o',_0x23811f(0x116))['left_join'](_0x23811f(0xcf),'a',_0x23811f(0x110))['left_join'](_0x23811f(0x133),'me','me.MailInteractionId\x20=\x20i.id')[_0x23811f(0x147)](_0x23811f(0x10f),'it','it.MailInteractionId\x20=\x20i.id')[_0x23811f(0x147)]('tools_tags','t',_0x23811f(0xfb)),_0x2f1ed0=squel[_0x23811f(0x9a)]();let _0x4148a9=[];const _0x168cfa=squel[_0x23811f(0x9a)]();let _0x2d1a2a;if(_0x1705ef[_0x23811f(0x8e)][_0x23811f(0xd4)]){_0x2d1a2a=as[_0x23811f(0x81)](_0x1705ef[_0x23811f(0x8e)][_0x23811f(0xd4)]);const _0x41a895=_0x2d1a2a[_0x23811f(0xc7)];for(let _0x224e8e=0x0;_0x224e8e<_0x2d1a2a[_0x23811f(0x7f)]['length'];_0x224e8e++){const _0x50e78a=_0x2d1a2a[_0x23811f(0x7f)][_0x224e8e],_0x3765f7='i';let _0x5ed4a0,_0xd63c7d=_['find'](_0x51836d,[_0x23811f(0xb4),_0x50e78a[_0x23811f(0xcd)]]);if(!_0xd63c7d)switch(_0x50e78a[_0x23811f(0xcd)]){case'unreadMessages':_0x50e78a['value']==0x1?_0x39767a[_0x23811f(0xe6)]('`'+_0x50e78a['field']+_0x23811f(0x132)):_0x39767a[_0x23811f(0xe6)]('`'+_0x50e78a['field']+_0x23811f(0x92));break;case _0x23811f(0x120):if(_0x50e78a[_0x23811f(0x118)]===_0x23811f(0x103)){if(_0x50e78a['value'][_0x23811f(0xd8)]('\x20')['length']>0x1)_0x2f1ed0[_0x41a895](_0x23811f(0xa7),qs[_0x23811f(0xee)](_0x50e78a[_0x23811f(0xce)]),null);else{const _0x1e55f6='%'+_0x50e78a[_0x23811f(0xce)]+'%';_0x2f1ed0[_0x41a895](_0x23811f(0xae),_0x1e55f6,_0x1e55f6,_0x1e55f6);}}else _0xd63c7d=_['find'](_0x51836d,[_0x23811f(0xb4),_0x23811f(0xf5)]),_0x50e78a[_0x23811f(0xcd)]=_0x23811f(0xf5),_0x5ed4a0=as[_0x23811f(0x90)](_0x3765f7,_0xd63c7d[_0x23811f(0x14b)],_0x50e78a),_0x2f1ed0[_0x41a895](_0x5ed4a0[_0x23811f(0x11e)],_0x5ed4a0[_0x23811f(0xce)][_0x23811f(0xbd)],_0x5ed4a0[_0x23811f(0xce)][_0x23811f(0x108)]);break;case _0x23811f(0x9d):{const _0x37bb9d=_0x50e78a['value'][_0x23811f(0xd8)](',')[_0x23811f(0x139)](function(_0x37957b){return Number(_0x37957b);});_0x37bb9d[_0x23811f(0x95)](function(_0x11e53b){const _0x244e30=_0x23811f;_0x168cfa['or'](_0x244e30(0x8d),'%,'+_0x11e53b+',%');}),_0x4148a9=_[_0x23811f(0x85)](_0x4148a9,_0x37bb9d);}break;case _0x23811f(0x76):_0x50e78a[_0x23811f(0x118)]==='$substring'?_0x2f1ed0[_0x41a895](_0x23811f(0xb3),'%'+_0x50e78a[_0x23811f(0xce)]+'%',null):(_0xd63c7d=_[_0x23811f(0x13d)](_0x51836d,['name',_0x23811f(0x12c)]),_0x50e78a[_0x23811f(0xcd)]=_0x23811f(0x12c),_0x5ed4a0=as[_0x23811f(0x90)](_0x3765f7,_0xd63c7d[_0x23811f(0x14b)],_0x50e78a),_0x2f1ed0[_0x41a895](_0x5ed4a0[_0x23811f(0x11e)],_0x5ed4a0[_0x23811f(0xce)][_0x23811f(0xbd)],_0x5ed4a0[_0x23811f(0xce)][_0x23811f(0x108)]));break;case _0x23811f(0x142):_0x5ed4a0=as[_0x23811f(0x90)]('me',null,_0x50e78a),_0x2f1ed0[_0x41a895](_0x5ed4a0[_0x23811f(0x11e)],_0x5ed4a0['value'][_0x23811f(0xbd)],_0x5ed4a0[_0x23811f(0xce)][_0x23811f(0x108)]);break;}else _0x5ed4a0=as[_0x23811f(0x90)](_0x3765f7,_0xd63c7d[_0x23811f(0x14b)],_0x50e78a),_0x2f1ed0[_0x41a895](_0x5ed4a0[_0x23811f(0x11e)],_0x5ed4a0[_0x23811f(0xce)][_0x23811f(0xbd)],_0x5ed4a0['value'][_0x23811f(0x108)]);}}else{const _0x122794=_(_0x1705ef[_0x23811f(0x8e)])[_0x23811f(0x128)]()[_0x23811f(0x139)](function(_0x3267c8){const _0xc027a1=_0x23811f;return _[_0xc027a1(0xde)](_0x51836d,['name',_0x3267c8])?_0x3267c8:undefined;})[_0x23811f(0xcc)]()[_0x23811f(0xce)]();!_[_0x23811f(0x12b)](_0x122794)&&_0x122794[_0x23811f(0x95)](function(_0x21e56a){const _0x15bb00=_0x23811f;if(_0x21e56a===_0x15bb00(0xc3))_0x39767a[_0x15bb00(0x86)](_0x15bb00(0xc2),[][_0x15bb00(0xed)](_0x1705ef[_0x15bb00(0x8e)][_0x21e56a]));else{if(_0x21e56a===_0x15bb00(0xd3)){const _0x4699d1=JSON[_0x15bb00(0x149)](_0x1705ef[_0x15bb00(0x8e)][_0x21e56a])[_0x15bb00(0xcb)],_0x11d561=JSON[_0x15bb00(0x149)](_0x1705ef[_0x15bb00(0x8e)][_0x21e56a])[_0x15bb00(0x101)];_0x39767a[_0x15bb00(0x86)](_0x15bb00(0xdd),_0x4699d1,_0x11d561);}else _0x1705ef['query'][_0x21e56a]==='null'?_0x39767a['where']('i.'+_0x21e56a+_0x15bb00(0x13b)):_0x39767a[_0x15bb00(0x86)]('i.'+_0x21e56a+'\x20=\x20?',_0x1705ef[_0x15bb00(0x8e)][_0x21e56a]);}});_0x1705ef[_0x23811f(0x8e)][_0x23811f(0xba)]&&(_0x1705ef[_0x23811f(0x8e)][_0x23811f(0xba)]==0x1?_0x39767a[_0x23811f(0xe6)](_0x23811f(0xb0)):_0x39767a[_0x23811f(0xe6)](_0x23811f(0x138)));_0x1705ef[_0x23811f(0x8e)][_0x23811f(0x9e)]&&(_0x4148a9=_['isArray'](_0x1705ef[_0x23811f(0x8e)][_0x23811f(0x9e)])?_0x1705ef[_0x23811f(0x8e)][_0x23811f(0x9e)]:new Array(_0x1705ef[_0x23811f(0x8e)][_0x23811f(0x9e)]),_0x4148a9[_0x23811f(0x95)](function(_0x17bf45){const _0xcdecf0=_0x23811f;_0x168cfa['or'](_0xcdecf0(0x8d),'%,'+_0x17bf45+',%');}));if(_0x1705ef[_0x23811f(0x8e)]['filter']){const _0x4d03fc=_0x1705ef[_0x23811f(0x8e)][_0x23811f(0xf6)][_0x23811f(0xe2)]('\x5c','\x5c\x5c')['replace'](/'/g,'\x27\x27');if(qs[_0x23811f(0x10c)](_0x4d03fc))_0x2f1ed0['or']('i.id\x20LIKE\x20?',_0x4d03fc+'%');else qs[_0x23811f(0x93)](_0x4d03fc)?_0x2f1ed0['or'](_0x23811f(0xd0),_0x4d03fc+'%'):_0x2f1ed0['or'](_0x23811f(0xea),qs[_0x23811f(0xee)](_0x4d03fc))['or'](_0x23811f(0xa5),qs[_0x23811f(0xee)](_0x4d03fc));}}_0x39767a[_0x23811f(0x86)](_0x2f1ed0),_0x39767a[_0x23811f(0xb9)](_0x23811f(0x83));let _0x25750b={'type':QueryTypes[_0x23811f(0x13f)],'raw':!![]};const _0xef5c=_0x39767a[_0x23811f(0x114)]();_0xef5c['field'](_0x23811f(0x83)),_0xef5c[_0x23811f(0xcd)](_0x23811f(0xf1),_0x23811f(0xf3)),_0x195321[_0x23811f(0x14a)]&&_0x195321[_0x23811f(0x14a)][_0x23811f(0x95)](function(_0x203fa0){const _0x26c171=_0x23811f,_0x5251bc=_0x203fa0[0x0]==='contactName'?_0x203fa0[0x0]:'i.'+_0x203fa0[0x0];_0x39767a[_0x26c171(0x14a)](_0x5251bc,_0x203fa0[0x1]==='DESC'?![]:!![]);}),!_['isEmpty'](_0x4148a9)&&(_0x39767a[_0x23811f(0xe6)](_0x168cfa),_0xef5c[_0x23811f(0x86)](_0x23811f(0x119),_0x4148a9)),Promise[_0x23811f(0x145)]()[_0x23811f(0xbe)](function(){const _0x171c83=_0x23811f;if(!_0x2d1a2a){if(_0x1705ef[_0x171c83(0x8e)]['MailAccountId']||_0x1705ef['query']['journey'])return;_0xef5c[_0x171c83(0x86)]('i.MailAccountId\x20IS\x20NOT\x20NULL'),_0x39767a[_0x171c83(0x86)](_0x171c83(0xdb));return;}return _0x1705ef[_0x171c83(0x78)][_0x171c83(0xbb)]({'attributes':['id'],'raw':!![]})[_0x171c83(0xbe)](function(_0x237a2e){const _0x32d4ec=_0x171c83;_[_0x32d4ec(0x12b)](_0x237a2e)?(_0xef5c[_0x32d4ec(0x86)](_0x32d4ec(0xa6)),_0x39767a['where']('i.MailAccountId\x20IS\x20NULL')):(_0xef5c['where'](_0x32d4ec(0xc2),_[_0x32d4ec(0x139)](_0x237a2e,'id')),_0x39767a['where'](_0x32d4ec(0xc2),_[_0x32d4ec(0x139)](_0x237a2e,'id')));});})[_0x23811f(0xbe)](function(){const _0x5bc638=_0x23811f;db[_0x5bc638(0xec)][_0x5bc638(0x8e)](_0xef5c[_0x5bc638(0xc9)](),_0x25750b)[_0x5bc638(0xbe)](function(_0x10ed3f){const _0x6a7150=_0x5bc638;_0x154202[_0x6a7150(0xe9)]=_0x10ed3f[_0x6a7150(0x11f)];if(_0x154202[_0x6a7150(0xe9)]===0x0)return[];return db[_0x6a7150(0xec)]['query'](_0x25fe70[_0x6a7150(0xc9)](),_0x25750b)['then'](function(_0x1156d5){const _0x26759d=_0x6a7150;_0x4b01c8=_[_0x26759d(0x10d)](_0x1156d5,'id'),_0x25750b=_['merge'](_0x25750b,{'model':db['MailInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});_0x1705ef[_0x26759d(0x8e)][_0x26759d(0x12e)]?_0x195321['attributes'][_0x26759d(0x95)](function(_0x1c71b9){const _0x5b4a36=_0x26759d;_0x39767a[_0x5b4a36(0xcd)]('i.'+_0x1c71b9);}):(_0x39767a['field'](_0x26759d(0xf1),_0x26759d(0xf3)),_0x39767a['field']('a.key',_0x26759d(0x137)),_0x39767a[_0x26759d(0xcd)](_0x26759d(0xa1),_0x26759d(0xd7)),_0x39767a[_0x26759d(0xcd)]('CASE\x20WHEN\x20i.to\x20IS\x20NOT\x20NULL\x20AND\x20i.to\x20<>\x20\x27\x27\x20AND\x20i.to\x20NOT\x20LIKE\x20(\x27%\x27\x20+\x20a.email\x20+\x20\x27%\x27)\x20THEN\x20SUBSTRING_INDEX(i.to,\x20\x27<\x27,\x201)\x20WHEN\x20(c.firstName\x20IS\x20NOT\x20NULL\x20AND\x20c.firstName\x20<>\x20\x27\x27)\x20OR\x20(c.lastName\x20IS\x20NOT\x20NULL\x20AND\x20c.lastName\x20<>\x20\x27\x27)\x20THEN\x20CONCAT(IFNULL(c.firstName,\x20\x27\x27),\x20\x27\x20\x27,\x20IFNULL(c.lastName,\x20\x27\x27))\x20ELSE\x20\x27Unknown\x27\x20END',_0x26759d(0x135)),_0x39767a[_0x26759d(0xcd)](_0x26759d(0x83)),_0x39767a[_0x26759d(0xcd)](_0x26759d(0xda)),_0x39767a[_0x26759d(0xcd)]('i.updatedAt'),_0x39767a['field']('i.closed'),_0x39767a[_0x26759d(0xcd)](_0x26759d(0x115)),_0x39767a['field'](_0x26759d(0x89)),_0x39767a['field']('i.lastMsgAt'),_0x39767a[_0x26759d(0xcd)](_0x26759d(0x10e)),_0x39767a[_0x26759d(0xcd)](_0x26759d(0xe0)),_0x39767a[_0x26759d(0xcd)](_0x26759d(0x7a)),_0x39767a['field'](_0x26759d(0x146)),_0x39767a[_0x26759d(0xcd)](_0x26759d(0xaa)),_0x39767a[_0x26759d(0xcd)](_0x26759d(0x123)),_0x39767a['field']('i.to'),_0x39767a[_0x26759d(0xcd)](_0x26759d(0xff)),_0x39767a[_0x26759d(0xcd)]('i.MailAccountId'),_0x39767a['field'](_0x26759d(0xc5)),_0x39767a[_0x26759d(0xcd)](_0x26759d(0xc8),_0x26759d(0xa3)),_0x39767a[_0x26759d(0xcd)](_0x26759d(0x125),_0x26759d(0x75)),_0x39767a[_0x26759d(0xcd)](_0x26759d(0xb6),'Contact.email'),_0x39767a[_0x26759d(0xcd)]('c.phone','Contact.phone'),_0x39767a['field'](_0x26759d(0x11d),'Contact.mobile'),_0x39767a[_0x26759d(0xcd)](_0x26759d(0x109),'Contact.fax'),_0x39767a[_0x26759d(0xcd)](_0x26759d(0xc6),'Owner.fullname'),_0x39767a[_0x26759d(0xcd)](_0x26759d(0x9c),'Owner.internal'),_0x39767a[_0x26759d(0xcd)](_0x26759d(0x97),'TagIds'));if(_0x195321['limit'])_0x39767a[_0x26759d(0x122)](_0x195321[_0x26759d(0x122)]);if(_0x195321['offset'])_0x39767a[_0x26759d(0xb5)](_0x195321[_0x26759d(0xb5)]);return db[_0x26759d(0xec)]['query'](_0x39767a['toString'](),_0x25750b);})['then'](function(_0x24b8ae){const _0x368a7d=_0x6a7150;return _0x1c32fa[_0x368a7d(0x86)](_0x368a7d(0xeb),_[_0x368a7d(0x139)](_0x24b8ae,'id')),db[_0x368a7d(0xec)][_0x368a7d(0x8e)](_0x1c32fa[_0x368a7d(0xc9)](),_0x25750b)[_0x368a7d(0xbe)](function(_0x3697b9){const _0x2e6faf=_0x368a7d,_0x259254=_['groupBy'](_0x3697b9,'MailInteractionId'),_0x1792e4=[];return db[_0x2e6faf(0x98)][_0x2e6faf(0xac)]({'attributes':[_0x2e6faf(0xa0)],'raw':!![]})[_0x2e6faf(0xbe)](function(_0x38b49b){const _0x25f276=_0x2e6faf,_0x209c92=_0x38b49b[_0x25f276(0xa0)];return _0x24b8ae[_0x25f276(0x95)](function(_0x370503){_0x1792e4['push'](updateMailInteraction(_0x370503,_0x4b01c8,_0x259254,_0x209c92));}),Promise[_0x25f276(0x141)](_0x1792e4);});});});})[_0x5bc638(0xbe)](function(_0x1116db){const _0x8d0b7a=_0x5bc638;return _0x154202[_0x8d0b7a(0x96)]=_0x1116db,_0x154202;})['then'](respondWithFilteredResult(_0x45e498,_0x195321));})['catch'](handleError(_0x45e498,null));},exports[a489_0x10eea6(0x9b)]=function(_0x222c8e,_0x4a837e){const _0x19d929=a489_0x10eea6;let _0x4793c9={'raw':![],'where':{'id':_0x222c8e['params']['id']}};const _0x28fede={};return _0x28fede[_0x19d929(0x12f)]=_[_0x19d929(0x128)](db[_0x19d929(0x100)][_0x19d929(0xf2)]),_0x28fede['query']=_['keys'](_0x222c8e[_0x19d929(0x8e)]),_0x28fede[_0x19d929(0x12d)]=_['intersection'](_0x28fede['model'],_0x28fede[_0x19d929(0x8e)]),_0x4793c9['attributes']=_[_0x19d929(0xd9)](_0x28fede[_0x19d929(0x12f)],qs[_0x19d929(0x12e)](_0x222c8e['query'][_0x19d929(0x12e)])),_0x4793c9[_0x19d929(0xaf)]=_0x4793c9[_0x19d929(0xaf)][_0x19d929(0x11f)]?_0x4793c9[_0x19d929(0xaf)]:_0x28fede['model'],_0x222c8e[_0x19d929(0x8e)]['includeAll']&&(_0x4793c9[_0x19d929(0xa9)]=[{'all':!![]}]),_0x4793c9=_[_0x19d929(0x143)]({},_0x4793c9,_0x222c8e[_0x19d929(0xd1)]),db[_0x19d929(0x100)][_0x19d929(0xac)](_0x4793c9)[_0x19d929(0xbe)](handleEntityNotFound(_0x4a837e,null))[_0x19d929(0xbe)](respondWithResult(_0x4a837e,null))[_0x19d929(0xab)](handleError(_0x4a837e,null));},exports[a489_0x10eea6(0x112)]=function(_0x3a27c8,_0x26bc78){const _0x1f6789=a489_0x10eea6;return db[_0x1f6789(0x100)][_0x1f6789(0x112)](_0x3a27c8[_0x1f6789(0x124)],{})['then'](respondWithResult(_0x26bc78,0xc9))['catch'](handleError(_0x26bc78,null));},exports[a489_0x10eea6(0x126)]=function(_0x3d82a6,_0x9627a9){const _0x334893=a489_0x10eea6;return _0x3d82a6[_0x334893(0x124)]['id']&&delete _0x3d82a6[_0x334893(0x124)]['id'],db[_0x334893(0x100)][_0x334893(0xac)]({'where':{'id':_0x3d82a6[_0x334893(0x121)]['id']}})['then'](handleEntityNotFound(_0x9627a9,null))[_0x334893(0xbe)](saveUpdates(_0x3d82a6[_0x334893(0x124)],null))[_0x334893(0xbe)](respondWithResult(_0x9627a9,null))[_0x334893(0xab)](handleError(_0x9627a9,null));},exports[a489_0x10eea6(0xd2)]=function(_0x2bb12f,_0x47662a){const _0x4571ef=a489_0x10eea6;return db[_0x4571ef(0x100)][_0x4571ef(0xac)]({'where':{'id':_0x2bb12f[_0x4571ef(0x121)]['id']}})[_0x4571ef(0xbe)](handleEntityNotFound(_0x47662a,null))['then'](removeEntity(_0x47662a,null))['catch'](handleError(_0x47662a,null));},exports[a489_0x10eea6(0xfd)]=function(_0x557e75,_0x2ee7f6){const _0x2223ea=a489_0x10eea6;return db[_0x2223ea(0x100)][_0x2223ea(0xfd)]()['then'](respondWithResult(_0x2ee7f6,null))[_0x2223ea(0xab)](handleError(_0x2ee7f6,null));},exports[a489_0x10eea6(0x11c)]=function(_0x4bafc5,_0x5a1dec){const _0x39454f=a489_0x10eea6;return db[_0x39454f(0x102)][_0x39454f(0xac)]({'where':{'id':_0x4bafc5[_0x39454f(0x121)]['id']}})[_0x39454f(0xbe)](function(_0x5072eb){const _0x2cc716=_0x39454f;if(_0x5072eb)return _0x5072eb[_0x2cc716(0x11c)](_0x4bafc5[_0x2cc716(0x124)][_0x2cc716(0xfa)],{'through':_[_0x2cc716(0x7b)](_0x4bafc5[_0x2cc716(0x124)],[_0x2cc716(0xfa),'id'])});})[_0x39454f(0xbe)](respondWithResult(_0x5a1dec,null))[_0x39454f(0xab)](handleError(_0x5a1dec,null));},exports[a489_0x10eea6(0xef)]=function(_0x1f6590,_0x2a5070){const _0x9c041b=a489_0x10eea6;let _0x482f4e={'raw':![],'where':{}};const _0x3db8be={},_0xa31c20={'count':0x0,'rows':[]};return db[_0x9c041b(0x100)][_0x9c041b(0xac)]({'where':{'id':_0x1f6590[_0x9c041b(0x121)]['id']}})[_0x9c041b(0xbe)](handleEntityNotFound(_0x2a5070,null))['then'](function(_0x54abe4){const _0x1b9695=_0x9c041b;if(_0x54abe4){_0x3db8be[_0x1b9695(0x12f)]=_['keys'](db[_0x1b9695(0x102)][_0x1b9695(0xf2)]),_0x3db8be[_0x1b9695(0x8e)]=_[_0x1b9695(0x128)](_0x1f6590[_0x1b9695(0x8e)]),_0x3db8be[_0x1b9695(0x12d)]=_[_0x1b9695(0xd9)](_0x3db8be['model'],_0x3db8be['query']),_0x482f4e[_0x1b9695(0xaf)]=_[_0x1b9695(0xd9)](_0x3db8be[_0x1b9695(0x12f)],qs['fields'](_0x1f6590[_0x1b9695(0x8e)][_0x1b9695(0x12e)])),_0x482f4e['attributes']=_0x482f4e[_0x1b9695(0xaf)][_0x1b9695(0x11f)]?_0x482f4e[_0x1b9695(0xaf)]:_0x3db8be['model'];typeof _0x1f6590[_0x1b9695(0x8e)][_0x1b9695(0x105)]===_0x1b9695(0x8b)&&(_0x482f4e['limit']=qs[_0x1b9695(0x122)](_0x1f6590['query'][_0x1b9695(0x122)]),_0x482f4e['offset']=qs['offset'](_0x1f6590[_0x1b9695(0x8e)]['offset']));_0x482f4e[_0x1b9695(0x14a)]=qs[_0x1b9695(0x148)](_0x1f6590['query'][_0x1b9695(0x148)]),_0x482f4e[_0x1b9695(0x86)]=qs[_0x1b9695(0x12d)](_[_0x1b9695(0x10a)](_0x1f6590[_0x1b9695(0x8e)],_0x3db8be[_0x1b9695(0x12d)])),_0x482f4e[_0x1b9695(0x86)][_0x1b9695(0x111)]=_0x54abe4['id'];_0x1f6590[_0x1b9695(0x8e)][_0x1b9695(0xf6)]&&(_0x482f4e[_0x1b9695(0x86)]=_[_0x1b9695(0x143)](_0x482f4e['where'],{[Op['or']]:_['map'](_0x482f4e[_0x1b9695(0xaf)],function(_0x45b604){const _0x1ca600=_0x1b9695,_0x58cdf1={};return _0x58cdf1[_0x45b604]={[Op[_0x1ca600(0xf4)]]:'%'+_0x1f6590[_0x1ca600(0x8e)][_0x1ca600(0xf6)]+'%'},_0x58cdf1;})}));if(_0x1f6590[_0x1b9695(0x8e)][_0x1b9695(0xcb)]){const _0x4b88b0=_0x1f6590['query'][_0x1b9695(0xcb)][_0x1b9695(0xd8)](','),_0x482c89={};_0x482c89[_0x4b88b0[0x0]]={[Op[_0x1b9695(0xb2)]]:moment(_0x4b88b0[0x1])[_0x1b9695(0x11b)]('YYYY-MM-DD\x20HH:mm:ss')},_0x482f4e[_0x1b9695(0x86)]=_['merge'](_0x482f4e[_0x1b9695(0x86)],_0x482c89);}return _0x482f4e=_['merge']({},_0x482f4e,_0x1f6590[_0x1b9695(0xd1)]),db[_0x1b9695(0x102)][_0x1b9695(0xe9)]({'where':_0x482f4e['where']})['then'](function(_0x2e9045){const _0x50cbea=_0x1b9695;return _0xa31c20['count']=_0x2e9045,_0x1f6590[_0x50cbea(0x8e)]['includeAll']&&(_0x482f4e[_0x50cbea(0xa9)]=[{'all':!![]}]),db['MailMessage'][_0x50cbea(0x134)](_0x482f4e);})['then'](function(_0x36453e){const _0x5a08a4=_0x1b9695;return _0xa31c20[_0x5a08a4(0x96)]=_0x36453e,_0xa31c20;});}})['then'](respondWithFilteredResult(_0x2a5070,_0x482f4e))['catch'](handleError(_0x2a5070,null));},exports[a489_0x10eea6(0x140)]=function(_0x3cca77,_0x1197b4){const _0x26019=a489_0x10eea6;return db[_0x26019(0x100)][_0x26019(0xac)]({'where':{'id':_0x3cca77[_0x26019(0x121)]['id']}})[_0x26019(0xbe)](function(_0x54b4e5){const _0x4a29d8=_0x26019;if(_0x54b4e5)return _0x54b4e5[_0x4a29d8(0xc1)](_0x3cca77[_0x4a29d8(0x124)][_0x4a29d8(0xfa)],{'through':_[_0x4a29d8(0x7b)](_0x3cca77[_0x4a29d8(0x124)],['ids','id'])})['then'](function(){const _0x1ff058=_0x4a29d8;return db[_0x1ff058(0x9d)]['findAll']({'attributes':['id',_0x1ff058(0xb4),'color'],'where':{'id':_0x3cca77[_0x1ff058(0x124)][_0x1ff058(0xfa)]}});})[_0x4a29d8(0xbe)](function(_0x5be753){const _0x146d40=_0x4a29d8;return socket['emit'](_0x146d40(0x7e),{'id':Number(_0x3cca77[_0x146d40(0x121)]['id']),'tags':_0x5be753||[]}),{'id':Number(_0x3cca77['params']['id']),'tags':_0x5be753||[]};});})[_0x26019(0xbe)](respondWithResult(_0x1197b4,null))[_0x26019(0xab)](handleError(_0x1197b4,null));},exports[a489_0x10eea6(0x99)]=function(_0x8ba170,_0x5c6b29){const _0x2b10a9=a489_0x10eea6;return db[_0x2b10a9(0x100)][_0x2b10a9(0xac)]({'where':{'id':_0x8ba170['params']['id']}})[_0x2b10a9(0xbe)](handleEntityNotFound(_0x5c6b29,null))[_0x2b10a9(0xbe)](function(_0x5a4b6f){const _0x4e33bd=_0x2b10a9;if(_0x5a4b6f)return _0x5a4b6f[_0x4e33bd(0x99)](_0x8ba170[_0x4e33bd(0x8e)][_0x4e33bd(0xfa)]);})[_0x2b10a9(0xbe)](respondWithStatusCode(_0x5c6b29,null))[_0x2b10a9(0xab)](handleError(_0x5c6b29,null));},exports['download']=function(_0x29bc83,_0x180db6){const _0x13ce4f=a489_0x10eea6,_0x1c3cce=moment()['unix']()['toString'](),_0x247d88=path['join'](config[_0x13ce4f(0xbc)],_0x13ce4f(0xdf),_0x13ce4f(0xb1)),_0x3bab9e=path['join'](config['root'],_0x13ce4f(0xa8),_0x13ce4f(0xdf),_0x13ce4f(0x88)),_0x5afb18=path[_0x13ce4f(0xad)](_0x247d88,_0x1c3cce),_0x70af46=util[_0x13ce4f(0x11b)]('transcript-%d-%s.zip',_0x29bc83[_0x13ce4f(0x121)]['id'],_0x1c3cce),_0x398ba1=path[_0x13ce4f(0xad)](_0x247d88,_0x70af46),_0x20385d=[];_0x29bc83[_0x13ce4f(0x8e)][_0x13ce4f(0x88)]&&_0x20385d[_0x13ce4f(0x131)]({'model':db['Attachment'],'as':_0x13ce4f(0x79),'raw':!![]});const _0x337f27=[{'model':db[_0x13ce4f(0x102)],'as':'Messages','attributes':['id','body',_0x13ce4f(0xb7),'to','cc',_0x13ce4f(0x129),_0x13ce4f(0x13c),_0x13ce4f(0xd3)],'where':{'secret':![]},'order':qs[_0x13ce4f(0x148)]('id'),'include':_0x20385d}];return db[_0x13ce4f(0x100)][_0x13ce4f(0xac)]({'where':{'id':_0x29bc83[_0x13ce4f(0x121)]['id']},'include':_0x337f27})[_0x13ce4f(0xbe)](handleEntityNotFound(_0x180db6,null))['then'](function(_0xbfa9db){const _0x139874=_0x13ce4f;if(_0xbfa9db&&_0xbfa9db['Messages']){const _0x53963b=_0xbfa9db[_0x139874(0x8f)]({'plain':!![]});return fs[_0x139874(0x14d)](_0x5afb18),Promise['all'](_0x53963b['Messages'][_0x139874(0x139)]((_0x303e1b,_0x1614d4)=>{const _0x546ab7=_0x139874,_0x383ba1={'from':_0x303e1b[_0x546ab7(0xb7)],'to':_0x303e1b['to'],'subject':_0x303e1b[_0x546ab7(0x13c)],'html':_0x303e1b[_0x546ab7(0x124)],'headers':{'Date':moment(_0x303e1b[_0x546ab7(0xd3)])[_0x546ab7(0x11b)]('ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ')},'attachments':[]};return _0x303e1b['cc']&&(_0x383ba1[_0x546ab7(0xe5)]['Cc']=_0x303e1b['cc']),_0x303e1b[_0x546ab7(0x129)]&&(_0x383ba1['headers']['Bcc']=_0x303e1b[_0x546ab7(0x129)]),new Promise(function(_0x64312a,_0x7b9c6b){const _0x1ea6a4=_0x546ab7;if(_0x303e1b[_0x1ea6a4(0x79)])for(let _0x5abfef=0x0;_0x5abfef<_0x303e1b[_0x1ea6a4(0x79)][_0x1ea6a4(0x11f)];_0x5abfef++){const _0xe158ef=_0x303e1b[_0x1ea6a4(0x79)][_0x5abfef],_0x43bdc0=path[_0x1ea6a4(0xad)](_0x3bab9e,_0xe158ef[_0x1ea6a4(0xe8)]);fs[_0x1ea6a4(0xfe)](_0x43bdc0)&&_0x383ba1[_0x1ea6a4(0x88)]['push']({'name':_0xe158ef[_0x1ea6a4(0xb4)],'contentType':_0xe158ef[_0x1ea6a4(0x14b)],'data':fs[_0x1ea6a4(0x10b)](_0x43bdc0)});}emlformat[_0x1ea6a4(0x77)](_0x383ba1,function(_0x10bc2c,_0x4ae56c){const _0x216fed=_0x1ea6a4;if(_0x10bc2c)return _0x7b9c6b(_0x10bc2c);return fs[_0x216fed(0xa2)](path[_0x216fed(0xad)](_0x5afb18,util[_0x216fed(0x11b)](_0x216fed(0x8c),_0x1614d4)),_0x4ae56c),_0x64312a(_0x4ae56c);});});})['then'](function(){const _0x4b7e91=_0x139874;return new Promise(function(_0x544710,_0x429077){zipdir(_0x5afb18,{'saveTo':_0x398ba1},function(_0xbd0840,_0x13850a){if(_0xbd0840)return _0x429077(_0xbd0840);return _0x544710(_0x13850a);});})['then'](function(){return new Promise(function(_0x25229f,_0x2ab9c3){rimraf(_0x5afb18,function(_0x27f160){if(_0x27f160)_0x2ab9c3(_0x27f160);return _0x25229f();});});})[_0x4b7e91(0xbe)](function(){const _0x26af01=_0x4b7e91;return _0x180db6[_0x26af01(0x91)](_0x398ba1,_0x70af46,function(_0x4378a9){const _0x4563e6=_0x26af01;_0x4378a9?console[_0x4563e6(0xf0)](_0x4563e6(0xf8),_0x4378a9):fs[_0x4563e6(0xbf)](_0x398ba1);});});}));}else return _0x180db6[_0x139874(0x8a)](0xc8);})['catch'](handleError(_0x180db6,null));}; \ No newline at end of file +const a489_0x21c9=['show','../../mysqldb','find','compact','TagIds','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','CASE\x20WHEN\x20i.to\x20IS\x20NOT\x20NULL\x20AND\x20i.to\x20<>\x20\x27\x27\x20AND\x20i.to\x20NOT\x20LIKE\x20(\x27%\x27\x20+\x20a.email\x20+\x20\x27%\x27)\x20THEN\x20SUBSTRING_INDEX(i.to,\x20\x27<\x27,\x201)\x20WHEN\x20(c.firstName\x20IS\x20NOT\x20NULL\x20AND\x20c.firstName\x20<>\x20\x27\x27)\x20OR\x20(c.lastName\x20IS\x20NOT\x20NULL\x20AND\x20c.lastName\x20<>\x20\x27\x27)\x20THEN\x20CONCAT(IFNULL(c.firstName,\x20\x27\x27),\x20\x27\x20\x27,\x20IFNULL(c.lastName,\x20\x27\x27))\x20ELSE\x20\x27Unknown\x27\x20END','i.ContactId','all','from','intersection','mail_accounts','query','Attachments','server','params','GROUP_CONCAT(DISTINCT\x20t.id)','count','parse','a.key','i.MailAccountId\x20IS\x20NULL','../../config/environment','MailMessage','Attachment','then','key','zip-dir','Contact.email','i.substatus','i.secondDisposition','select','search','addMessage','keys','enableEmailPreview','root','`unreadMessages`\x20=\x200','includeAll','fields','Setting','Users','i.disposition','sqlOperator','ui.MailInteractionId','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','u.id','Owner.internal','mail_interaction_has_tags','c.email\x20LIKE\x20?','download','Contact.phone','\x20IS\x20NULL','`unreadMessages`\x20>\x200','text','where','bcc','i.attach','index','field','lodash','isEmpty','omit','i.MailAccountId\x20IS\x20NOT\x20NULL','map','subject','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','c.firstName','nolimit','addTags','t.id\x20=\x20it.TagId','rows','i.lastMsgAt','readFileSync','ids','rimraf','null','toString','sendStatus','Content-Range','name','clone','a.mandatoryDisposition','MailInteractionId','c.phone','resolve','mail_interactions','contactName','push','user','Tags','journey','Contact.lastName','merge','isArray','$lte','tag','eml-format','o.internal','buildExpression','it.MailInteractionId\x20=\x20i.id','Account.key','getFullTextValue','catch','lastMsgText','include','rawAttributes','../../config/logger','tools_tags','files','split','undefined','mkdirSync','tmp','filters','concat','Owner.fullname','destroy','operator','UserId','Bcc','path','removeTags','trimStart','i.thirdDisposition','MailAccountId','i.to','status','i.closed','MailInteraction','moment','c.lastName','Contact.fax','basename','squel','$substring','Tag','replace','o.id\x20=\x20i.UserId','unreadMessages','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','../../components/parsers/advancedSearch','findOne','limit','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','t.id\x20IN\x20?','setTags','lastMsgBody','users','end','mailInteractionTags:save','Contact.firstName','sequelize','expr','build','getMailAccounts','u.id\x20=\x20ui.UserId','value','\x20=\x20?','keyBy','send','model','err','ui.MailInteractionId\x20IN\x20?','type','attributes','Contact','order','i.MailAccountId\x20IN\x20?','i.subject','MATCH\x20(me.plainBody,\x20me.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','create','message%d.eml','i.id','YYYY-MM-DD\x20HH:mm:ss','i.createdAt','getMessages','offset','read','api','group','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','transcript-%d-%s.zip','util','conditions','me.MailInteractionId\x20=\x20i.id','pick','set','fullname','format','attachments','join','isEmail','DESC','html-to-text','update','options','ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ','$gte','i.MailAccountId','Messages','groupBy','forEach','i.lastMsgDirection','unix','having','length','mail_messages','left_join','filter','../../rediscache','emit','json','sort','i.id\x20LIKE\x20?','findAll','register','color','body','unlinkSync','describe'];(function(_0x24e09a,_0x249e44){const _0x21c9f0=function(_0x113e6e){while(--_0x113e6e){_0x24e09a['push'](_0x24e09a['shift']());}};_0x21c9f0(++_0x249e44);}(a489_0x21c9,0xa4));const a489_0x113e=function(_0x24e09a,_0x249e44){_0x24e09a=_0x24e09a-0x110;let _0x21c9f0=a489_0x21c9[_0x24e09a];return _0x21c9f0;};const a489_0x4ea906=a489_0x113e;'use strict';const emlformat=require(a489_0x4ea906(0x1a8)),rimraf=require(a489_0x4ea906(0x192)),zipdir=require(a489_0x4ea906(0x162)),moment=require(a489_0x4ea906(0x1c9)),util=require(a489_0x4ea906(0x122)),path=require(a489_0x4ea906(0x1c0)),fs=require('fs'),_=require(a489_0x4ea906(0x183)),squel=require(a489_0x4ea906(0x1cd)),{htmlToText}=require(a489_0x4ea906(0x12d)),{getSocket}=require(a489_0x4ea906(0x13d)),socket=getSocket(),qs=require('../../components/parsers/qs'),as=require(a489_0x4ea906(0x1d4)),logger=require(a489_0x4ea906(0x1b2))(a489_0x4ea906(0x11e)),config=require(a489_0x4ea906(0x15d)),{db}=require(a489_0x4ea906(0x149)),{Op,QueryTypes}=require('sequelize');require('./mailInteraction.socket')[a489_0x4ea906(0x143)](socket);function respondWithStatusCode(_0x119c79,_0x2740e7){return _0x2740e7=_0x2740e7||0xcc,function(_0x4bdb21){const _0x1a544e=a489_0x113e;if(_0x4bdb21)return _0x119c79[_0x1a544e(0x195)](_0x2740e7);return _0x119c79['status'](_0x2740e7)['end']();};}function respondWithResult(_0xb5e172,_0x245869){return _0x245869=_0x245869||0xc8,function(_0x14696d){const _0x1ccf09=a489_0x113e;if(_0x14696d)return _0xb5e172[_0x1ccf09(0x1c6)](_0x245869)['json'](_0x14696d);};}function respondWithFilteredResult(_0x26208b,_0x103887){return function(_0x38a566){const _0x4b5b8e=a489_0x113e;if(_0x38a566){const _0x502fee=_0x38a566[_0x4b5b8e(0x159)],_0x29d58b=_0x103887[_0x4b5b8e(0x11c)];let _0xe421e4=_0x103887['offset']+_0x103887[_0x4b5b8e(0x1d6)],_0xfdf7fe;return _0xe421e4>=_0x502fee?(_0xe421e4=_0x502fee,_0xfdf7fe=0xc8):_0xfdf7fe=0xce,_0x26208b[_0x4b5b8e(0x1c6)](_0xfdf7fe),_0x26208b[_0x4b5b8e(0x126)](_0x4b5b8e(0x196),_0x29d58b+'-'+_0xe421e4+'/'+_0x502fee)[_0x4b5b8e(0x13f)](_0x38a566);}return null;};}function saveUpdates(_0x14824b){return function(_0x5a1835){const _0x12ec54=a489_0x113e;if(_0x5a1835)return _0x5a1835[_0x12ec54(0x12e)](_0x14824b)['then'](function(_0x5e35b7){return _0x5e35b7;});return null;};}function removeEntity(_0xf73254){return function(_0x4a9ce7){const _0x599a37=a489_0x113e;if(_0x4a9ce7)return _0x4a9ce7[_0x599a37(0x1bc)]()['then'](function(){const _0x50a20d=_0x599a37;_0xf73254[_0x50a20d(0x1c6)](0xcc)[_0x50a20d(0x1dc)]();});};}function handleEntityNotFound(_0x1e1053){return function(_0x1c0807){return!_0x1c0807&&_0x1e1053['sendStatus'](0x194),_0x1c0807;};}function handleError(_0x250ad0,_0x535359){return _0x535359=_0x535359||0x1f4,function(_0x217352){const _0x44da93=a489_0x113e;logger['error'](_0x217352['stack']),_0x217352[_0x44da93(0x197)]&&delete _0x217352['name'],_0x250ad0['status'](_0x535359)[_0x44da93(0x1e7)](_0x217352);};}function getInteractionUsers(_0x39ff15,_0x1bf2cd){return new Promise(function(_0x18ab51,_0x5cf460){const _0x2e5486=a489_0x113e;try{_0x1bf2cd[_0x39ff15['id']]&&(_0x39ff15[_0x2e5486(0x170)]=_[_0x2e5486(0x187)](_0x1bf2cd[_0x39ff15['id']],function(_0x336ff4){const _0x6c6185=_0x2e5486;return{'id':_0x336ff4['id'],'fullname':_0x336ff4[_0x6c6185(0x127)]};}));}catch(_0x5c89df){_0x5cf460(_0x5c89df);}_0x18ab51(_0x39ff15);});}function getInteractionTags(_0x3b76b5,_0x3068ea){return new Promise(function(_0x1ffc98,_0x424d4e){const _0x8cf687=a489_0x113e;try{_0x3b76b5['TagIds']&&(_0x3b76b5['Tags']=[],_0x3b76b5['TagIds'][_0x8cf687(0x1b5)](',')[_0x8cf687(0x135)](function(_0x3993fa){const _0x37aab1=_0x8cf687;_0x3b76b5[_0x37aab1(0x1a1)][_0x37aab1(0x19f)](_0x3068ea[_0x3993fa]);})),delete _0x3b76b5[_0x8cf687(0x14c)];}catch(_0x86eab6){_0x424d4e(_0x86eab6);}_0x1ffc98(_0x3b76b5);});}function getLastMessageText(_0x4a5be3){return new Promise(function(_0x203fcd,_0x42f1a3){const _0x95ad8f=a489_0x113e;return db[_0x95ad8f(0x1c8)]['findOne']({'where':{'id':_0x4a5be3['id']},'attributes':[_0x95ad8f(0x1da),_0x95ad8f(0x1af)],'raw':!![]})['then'](function(_0x47d85e){const _0x32a600=_0x95ad8f;!_0x47d85e[_0x32a600(0x1af)]?_0x4a5be3['lastMsgText']=_[_0x32a600(0x1c2)](htmlToText(_0x47d85e[_0x32a600(0x1da)],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]})):_0x4a5be3[_0x32a600(0x1af)]=_0x47d85e[_0x32a600(0x1af)],_0x203fcd(_0x4a5be3);})['catch'](function(_0x3ef19c){_0x42f1a3(_0x3ef19c);});});}function updateMailInteraction(_0x3541ac,_0x23449f,_0x557e62,_0x302268){return new Promise(function(_0x56d826,_0x20c97e){return getInteractionUsers(_0x3541ac,_0x557e62)['then'](function(_0x40b836){return getInteractionTags(_0x40b836,_0x23449f);})['then'](function(_0x3788b0){_0x302268?_0x56d826(getLastMessageText(_0x3788b0)):_0x56d826(_0x3788b0);})['catch'](function(_0x4f0e35){_0x20c97e(_0x4f0e35);});});}exports[a489_0x4ea906(0x181)]=function(_0x279db7,_0x348ec3){const _0x3f88ee=a489_0x4ea906,_0x13537f={},_0x199e58={},_0x3ffb6f={'count':0x0,'rows':[]},_0x3dadfa=_[_0x3f88ee(0x187)](db[_0x3f88ee(0x1c8)]['rawAttributes'],function(_0x41539f){const _0x2b6fc2=_0x3f88ee;return{'name':_0x41539f['fieldName'],'type':_0x41539f[_0x2b6fc2(0x1eb)][_0x2b6fc2(0x161)]};});_0x199e58[_0x3f88ee(0x1e8)]=_[_0x3f88ee(0x187)](_0x3dadfa,_0x3f88ee(0x197)),_0x199e58[_0x3f88ee(0x154)]=_[_0x3f88ee(0x169)](_0x279db7[_0x3f88ee(0x154)]),_0x199e58['filters']=_[_0x3f88ee(0x152)](_0x199e58['model'],_0x199e58['query']),_0x13537f[_0x3f88ee(0x110)]=_[_0x3f88ee(0x152)](_0x199e58[_0x3f88ee(0x1e8)],qs[_0x3f88ee(0x16e)](_0x279db7[_0x3f88ee(0x154)][_0x3f88ee(0x16e)])),_0x13537f[_0x3f88ee(0x110)]=_0x13537f[_0x3f88ee(0x110)][_0x3f88ee(0x139)]?_0x13537f[_0x3f88ee(0x110)]:_0x199e58[_0x3f88ee(0x1e8)];typeof _0x279db7['query']['nolimit']===_0x3f88ee(0x1b6)&&(_0x13537f['limit']=qs[_0x3f88ee(0x1d6)](_0x279db7[_0x3f88ee(0x154)][_0x3f88ee(0x1d6)]),_0x13537f[_0x3f88ee(0x11c)]=qs[_0x3f88ee(0x11c)](_0x279db7[_0x3f88ee(0x154)]['offset']));_0x13537f['order']=qs[_0x3f88ee(0x140)](_0x279db7[_0x3f88ee(0x154)]['sort']),_0x13537f[_0x3f88ee(0x17e)]=qs[_0x3f88ee(0x1b9)](_['pick'](_0x279db7[_0x3f88ee(0x154)],_0x199e58[_0x3f88ee(0x1b9)]),_0x3dadfa);let _0x3ca9c2=[];const _0x487edb=squel[_0x3f88ee(0x166)]()[_0x3f88ee(0x182)]('id')[_0x3f88ee(0x182)]('name')[_0x3f88ee(0x182)](_0x3f88ee(0x144))[_0x3f88ee(0x151)](_0x3f88ee(0x1b3)),_0x3d7ad1=squel[_0x3f88ee(0x166)]()[_0x3f88ee(0x182)](_0x3f88ee(0x175))[_0x3f88ee(0x182)]('u.fullname')[_0x3f88ee(0x182)](_0x3f88ee(0x173))[_0x3f88ee(0x151)]('user_has_mail_interactions','ui')[_0x3f88ee(0x13b)](_0x3f88ee(0x1db),'u',_0x3f88ee(0x1e3)),_0x3c0b18=squel[_0x3f88ee(0x166)]()[_0x3f88ee(0x151)](_0x3f88ee(0x19d),'i')[_0x3f88ee(0x13b)]('cm_contacts','c',_0x3f88ee(0x174))[_0x3f88ee(0x13b)](_0x3f88ee(0x1db),'o',_0x3f88ee(0x1d1))[_0x3f88ee(0x13b)](_0x3f88ee(0x153),'a','a.id\x20=\x20i.MailAccountId')[_0x3f88ee(0x13b)](_0x3f88ee(0x13a),'me',_0x3f88ee(0x124))[_0x3f88ee(0x13b)](_0x3f88ee(0x177),'it',_0x3f88ee(0x1ab))[_0x3f88ee(0x13b)](_0x3f88ee(0x1b3),'t',_0x3f88ee(0x18d)),_0x4855e2=squel[_0x3f88ee(0x1e0)]();let _0xbc0f56=[];const _0x1b6e99=squel[_0x3f88ee(0x1e0)]();let _0x59a417;if(_0x279db7[_0x3f88ee(0x154)][_0x3f88ee(0x167)]){_0x59a417=as['parseSearch'](_0x279db7[_0x3f88ee(0x154)][_0x3f88ee(0x167)]);const _0x5ec308=_0x59a417[_0x3f88ee(0x172)];for(let _0x19b40a=0x0;_0x19b40a<_0x59a417[_0x3f88ee(0x123)][_0x3f88ee(0x139)];_0x19b40a++){const _0x59336f=_0x59a417[_0x3f88ee(0x123)][_0x19b40a],_0xe96407='i';let _0x572be9,_0x4669d5=_[_0x3f88ee(0x14a)](_0x3dadfa,[_0x3f88ee(0x197),_0x59336f[_0x3f88ee(0x182)]]);if(!_0x4669d5)switch(_0x59336f[_0x3f88ee(0x182)]){case _0x3f88ee(0x1d2):_0x59336f['value']==0x1?_0x3c0b18[_0x3f88ee(0x138)]('`'+_0x59336f['field']+'`\x20=\x200'):_0x3c0b18[_0x3f88ee(0x138)]('`'+_0x59336f[_0x3f88ee(0x182)]+'`\x20>\x200');break;case _0x3f88ee(0x111):if(_0x59336f[_0x3f88ee(0x1bd)]===_0x3f88ee(0x1ce)){if(_0x59336f[_0x3f88ee(0x1e4)]['split']('\x20')['length']>0x1)_0x4855e2[_0x5ec308](_0x3f88ee(0x120),qs['getFullTextValue'](_0x59336f[_0x3f88ee(0x1e4)]),null);else{const _0x322081='%'+_0x59336f[_0x3f88ee(0x1e4)]+'%';_0x4855e2[_0x5ec308](_0x3f88ee(0x189),_0x322081,_0x322081,_0x322081);}}else _0x4669d5=_[_0x3f88ee(0x14a)](_0x3dadfa,[_0x3f88ee(0x197),'ContactId']),_0x59336f[_0x3f88ee(0x182)]='ContactId',_0x572be9=as[_0x3f88ee(0x1aa)](_0xe96407,_0x4669d5[_0x3f88ee(0x1eb)],_0x59336f),_0x4855e2[_0x5ec308](_0x572be9['text'],_0x572be9['value']['start'],_0x572be9[_0x3f88ee(0x1e4)][_0x3f88ee(0x1dc)]);break;case _0x3f88ee(0x1cf):{const _0xd7c638=_0x59336f[_0x3f88ee(0x1e4)][_0x3f88ee(0x1b5)](',')[_0x3f88ee(0x187)](function(_0x44cfc7){return Number(_0x44cfc7);});_0xd7c638[_0x3f88ee(0x135)](function(_0x482797){const _0x1baa04=_0x3f88ee;_0x1b6e99['or'](_0x1baa04(0x1d3),'%,'+_0x482797+',%');}),_0xbc0f56=_['union'](_0xbc0f56,_0xd7c638);}break;case'User':_0x59336f[_0x3f88ee(0x1bd)]===_0x3f88ee(0x1ce)?_0x4855e2[_0x5ec308](_0x3f88ee(0x14d),'%'+_0x59336f[_0x3f88ee(0x1e4)]+'%',null):(_0x4669d5=_[_0x3f88ee(0x14a)](_0x3dadfa,['name',_0x3f88ee(0x1be)]),_0x59336f[_0x3f88ee(0x182)]=_0x3f88ee(0x1be),_0x572be9=as[_0x3f88ee(0x1aa)](_0xe96407,_0x4669d5[_0x3f88ee(0x1eb)],_0x59336f),_0x4855e2[_0x5ec308](_0x572be9[_0x3f88ee(0x17d)],_0x572be9['value']['start'],_0x572be9[_0x3f88ee(0x1e4)][_0x3f88ee(0x1dc)]));break;case'plainBody':_0x572be9=as[_0x3f88ee(0x1aa)]('me',null,_0x59336f),_0x4855e2[_0x5ec308](_0x572be9[_0x3f88ee(0x17d)],_0x572be9[_0x3f88ee(0x1e4)]['start'],_0x572be9[_0x3f88ee(0x1e4)][_0x3f88ee(0x1dc)]);break;}else _0x572be9=as[_0x3f88ee(0x1aa)](_0xe96407,_0x4669d5['type'],_0x59336f),_0x4855e2[_0x5ec308](_0x572be9[_0x3f88ee(0x17d)],_0x572be9['value']['start'],_0x572be9[_0x3f88ee(0x1e4)][_0x3f88ee(0x1dc)]);}}else{const _0x23b99f=_(_0x279db7[_0x3f88ee(0x154)])[_0x3f88ee(0x169)]()['map'](function(_0x2b44ae){const _0xc6e21a=_0x3f88ee;return _['some'](_0x3dadfa,[_0xc6e21a(0x197),_0x2b44ae])?_0x2b44ae:undefined;})[_0x3f88ee(0x14b)]()[_0x3f88ee(0x1e4)]();!_[_0x3f88ee(0x184)](_0x23b99f)&&_0x23b99f[_0x3f88ee(0x135)](function(_0x506221){const _0x5cd43a=_0x3f88ee;if(_0x506221===_0x5cd43a(0x1c4))_0x3c0b18[_0x5cd43a(0x17e)](_0x5cd43a(0x113),[][_0x5cd43a(0x1ba)](_0x279db7['query'][_0x506221]));else{if(_0x506221==='createdAt'){const _0x410d5e=JSON[_0x5cd43a(0x15a)](_0x279db7[_0x5cd43a(0x154)][_0x506221])[_0x5cd43a(0x131)],_0x6d5770=JSON[_0x5cd43a(0x15a)](_0x279db7['query'][_0x506221])[_0x5cd43a(0x1a6)];_0x3c0b18[_0x5cd43a(0x17e)](_0x5cd43a(0x1d7),_0x410d5e,_0x6d5770);}else _0x279db7[_0x5cd43a(0x154)][_0x506221]===_0x5cd43a(0x193)?_0x3c0b18['where']('i.'+_0x506221+_0x5cd43a(0x17b)):_0x3c0b18[_0x5cd43a(0x17e)]('i.'+_0x506221+_0x5cd43a(0x1e5),_0x279db7['query'][_0x506221]);}});_0x279db7[_0x3f88ee(0x154)]['read']&&(_0x279db7['query'][_0x3f88ee(0x11d)]==0x1?_0x3c0b18['having'](_0x3f88ee(0x16c)):_0x3c0b18[_0x3f88ee(0x138)](_0x3f88ee(0x17c)));_0x279db7['query'][_0x3f88ee(0x1a7)]&&(_0xbc0f56=_[_0x3f88ee(0x1a5)](_0x279db7[_0x3f88ee(0x154)][_0x3f88ee(0x1a7)])?_0x279db7[_0x3f88ee(0x154)][_0x3f88ee(0x1a7)]:new Array(_0x279db7[_0x3f88ee(0x154)]['tag']),_0xbc0f56[_0x3f88ee(0x135)](function(_0x2887e1){const _0x147bbd=_0x3f88ee;_0x1b6e99['or'](_0x147bbd(0x1d3),'%,'+_0x2887e1+',%');}));if(_0x279db7[_0x3f88ee(0x154)][_0x3f88ee(0x13c)]){const _0x10a543=_0x279db7['query'][_0x3f88ee(0x13c)]['replace']('\x5c','\x5c\x5c')[_0x3f88ee(0x1d0)](/'/g,'\x27\x27');if(qs['isNumeric'](_0x10a543))_0x4855e2['or'](_0x3f88ee(0x141),_0x10a543+'%');else qs[_0x3f88ee(0x12b)](_0x10a543)?_0x4855e2['or'](_0x3f88ee(0x178),_0x10a543+'%'):_0x4855e2['or']('MATCH\x20(i.to,\x20i.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs['getFullTextValue'](_0x10a543))['or'](_0x3f88ee(0x115),qs[_0x3f88ee(0x1ad)](_0x10a543));}}_0x3c0b18[_0x3f88ee(0x17e)](_0x4855e2),_0x3c0b18[_0x3f88ee(0x11f)](_0x3f88ee(0x118));let _0x1ee455={'type':QueryTypes['SELECT'],'raw':!![]};const _0x15b6ec=_0x3c0b18[_0x3f88ee(0x198)]();_0x15b6ec[_0x3f88ee(0x182)](_0x3f88ee(0x118)),_0x15b6ec[_0x3f88ee(0x182)]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x3f88ee(0x1d2)),_0x13537f[_0x3f88ee(0x112)]&&_0x13537f[_0x3f88ee(0x112)][_0x3f88ee(0x135)](function(_0x1ef8fc){const _0x2887f9=_0x3f88ee,_0x37f527=_0x1ef8fc[0x0]===_0x2887f9(0x19e)?_0x1ef8fc[0x0]:'i.'+_0x1ef8fc[0x0];_0x3c0b18[_0x2887f9(0x112)](_0x37f527,_0x1ef8fc[0x1]===_0x2887f9(0x12c)?![]:!![]);}),!_[_0x3f88ee(0x184)](_0xbc0f56)&&(_0x3c0b18[_0x3f88ee(0x138)](_0x1b6e99),_0x15b6ec[_0x3f88ee(0x17e)](_0x3f88ee(0x1d8),_0xbc0f56)),Promise[_0x3f88ee(0x19c)]()[_0x3f88ee(0x160)](function(){const _0x6c4cf0=_0x3f88ee;if(!_0x59a417){if(_0x279db7['query'][_0x6c4cf0(0x1c4)]||_0x279db7[_0x6c4cf0(0x154)][_0x6c4cf0(0x1a2)])return;_0x15b6ec[_0x6c4cf0(0x17e)](_0x6c4cf0(0x186)),_0x3c0b18[_0x6c4cf0(0x17e)](_0x6c4cf0(0x186));return;}return _0x279db7[_0x6c4cf0(0x1a0)][_0x6c4cf0(0x1e2)]({'attributes':['id'],'raw':!![]})[_0x6c4cf0(0x160)](function(_0x248ecf){const _0x1f4df6=_0x6c4cf0;_[_0x1f4df6(0x184)](_0x248ecf)?(_0x15b6ec[_0x1f4df6(0x17e)]('i.MailAccountId\x20IS\x20NULL'),_0x3c0b18['where'](_0x1f4df6(0x15c))):(_0x15b6ec['where'](_0x1f4df6(0x113),_[_0x1f4df6(0x187)](_0x248ecf,'id')),_0x3c0b18['where'](_0x1f4df6(0x113),_[_0x1f4df6(0x187)](_0x248ecf,'id')));});})[_0x3f88ee(0x160)](function(){const _0x4e6551=_0x3f88ee;db[_0x4e6551(0x1df)][_0x4e6551(0x154)](_0x15b6ec[_0x4e6551(0x194)](),_0x1ee455)['then'](function(_0x4f8e2c){const _0x39db04=_0x4e6551;_0x3ffb6f[_0x39db04(0x159)]=_0x4f8e2c['length'];if(_0x3ffb6f[_0x39db04(0x159)]===0x0)return[];return db['sequelize'][_0x39db04(0x154)](_0x487edb[_0x39db04(0x194)](),_0x1ee455)[_0x39db04(0x160)](function(_0x345d9e){const _0x401c59=_0x39db04;_0x3ca9c2=_[_0x401c59(0x1e6)](_0x345d9e,'id'),_0x1ee455=_[_0x401c59(0x1a4)](_0x1ee455,{'model':db[_0x401c59(0x1c8)],'mapToModel':!![],'raw':!![],'nest':!![]});_0x279db7[_0x401c59(0x154)][_0x401c59(0x16e)]?_0x13537f[_0x401c59(0x110)]['forEach'](function(_0x2a5682){const _0x2d40e9=_0x401c59;_0x3c0b18[_0x2d40e9(0x182)]('i.'+_0x2a5682);}):(_0x3c0b18[_0x401c59(0x182)]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x401c59(0x1d2)),_0x3c0b18['field'](_0x401c59(0x15b),_0x401c59(0x1ac)),_0x3c0b18[_0x401c59(0x182)](_0x401c59(0x199),'Account.mandatoryDisposition'),_0x3c0b18['field'](_0x401c59(0x14e),_0x401c59(0x19e)),_0x3c0b18[_0x401c59(0x182)]('i.id'),_0x3c0b18[_0x401c59(0x182)](_0x401c59(0x11a)),_0x3c0b18[_0x401c59(0x182)]('i.updatedAt'),_0x3c0b18[_0x401c59(0x182)](_0x401c59(0x1c7)),_0x3c0b18[_0x401c59(0x182)]('i.closedAt'),_0x3c0b18['field'](_0x401c59(0x180)),_0x3c0b18['field'](_0x401c59(0x18f)),_0x3c0b18[_0x401c59(0x182)](_0x401c59(0x136)),_0x3c0b18[_0x401c59(0x182)](_0x401c59(0x114)),_0x3c0b18[_0x401c59(0x182)](_0x401c59(0x171)),_0x3c0b18['field'](_0x401c59(0x165)),_0x3c0b18[_0x401c59(0x182)](_0x401c59(0x1c3)),_0x3c0b18['field'](_0x401c59(0x164)),_0x3c0b18[_0x401c59(0x182)](_0x401c59(0x1c5)),_0x3c0b18[_0x401c59(0x182)](_0x401c59(0x14f)),_0x3c0b18['field'](_0x401c59(0x132)),_0x3c0b18['field']('i.UserId'),_0x3c0b18[_0x401c59(0x182)](_0x401c59(0x18a),_0x401c59(0x1de)),_0x3c0b18['field'](_0x401c59(0x1ca),_0x401c59(0x1a3)),_0x3c0b18[_0x401c59(0x182)]('c.email',_0x401c59(0x163)),_0x3c0b18[_0x401c59(0x182)](_0x401c59(0x19b),_0x401c59(0x17a)),_0x3c0b18[_0x401c59(0x182)]('c.mobile','Contact.mobile'),_0x3c0b18['field']('c.fax',_0x401c59(0x1cb)),_0x3c0b18[_0x401c59(0x182)]('o.fullname',_0x401c59(0x1bb)),_0x3c0b18[_0x401c59(0x182)](_0x401c59(0x1a9),_0x401c59(0x176)),_0x3c0b18[_0x401c59(0x182)](_0x401c59(0x158),_0x401c59(0x14c)));if(_0x13537f[_0x401c59(0x1d6)])_0x3c0b18[_0x401c59(0x1d6)](_0x13537f[_0x401c59(0x1d6)]);if(_0x13537f[_0x401c59(0x11c)])_0x3c0b18[_0x401c59(0x11c)](_0x13537f[_0x401c59(0x11c)]);return db['sequelize'][_0x401c59(0x154)](_0x3c0b18['toString'](),_0x1ee455);})[_0x39db04(0x160)](function(_0x1095cc){const _0x4879b9=_0x39db04;return _0x3d7ad1[_0x4879b9(0x17e)](_0x4879b9(0x1ea),_[_0x4879b9(0x187)](_0x1095cc,'id')),db[_0x4879b9(0x1df)][_0x4879b9(0x154)](_0x3d7ad1['toString'](),_0x1ee455)[_0x4879b9(0x160)](function(_0x4e6e91){const _0x487cc7=_0x4879b9,_0x1b2dab=_[_0x487cc7(0x134)](_0x4e6e91,_0x487cc7(0x19a)),_0x3fbc92=[];return db[_0x487cc7(0x16f)][_0x487cc7(0x1d5)]({'attributes':['enableEmailPreview'],'raw':!![]})[_0x487cc7(0x160)](function(_0x30da29){const _0x4f9cb4=_0x487cc7,_0x565109=_0x30da29[_0x4f9cb4(0x16a)];return _0x1095cc[_0x4f9cb4(0x135)](function(_0x663b92){const _0x564493=_0x4f9cb4;_0x3fbc92[_0x564493(0x19f)](updateMailInteraction(_0x663b92,_0x3ca9c2,_0x1b2dab,_0x565109));}),Promise[_0x4f9cb4(0x150)](_0x3fbc92);});});});})['then'](function(_0x6427d0){const _0x12c765=_0x4e6551;return _0x3ffb6f[_0x12c765(0x18e)]=_0x6427d0,_0x3ffb6f;})[_0x4e6551(0x160)](respondWithFilteredResult(_0x348ec3,_0x13537f));})['catch'](handleError(_0x348ec3,null));},exports[a489_0x4ea906(0x148)]=function(_0x2d0965,_0x21477a){const _0x4489d9=a489_0x4ea906;let _0x3af323={'raw':![],'where':{'id':_0x2d0965[_0x4489d9(0x157)]['id']}};const _0x5f3259={};return _0x5f3259['model']=_[_0x4489d9(0x169)](db[_0x4489d9(0x1c8)][_0x4489d9(0x1b1)]),_0x5f3259[_0x4489d9(0x154)]=_[_0x4489d9(0x169)](_0x2d0965['query']),_0x5f3259[_0x4489d9(0x1b9)]=_[_0x4489d9(0x152)](_0x5f3259[_0x4489d9(0x1e8)],_0x5f3259[_0x4489d9(0x154)]),_0x3af323[_0x4489d9(0x110)]=_[_0x4489d9(0x152)](_0x5f3259[_0x4489d9(0x1e8)],qs['fields'](_0x2d0965[_0x4489d9(0x154)][_0x4489d9(0x16e)])),_0x3af323['attributes']=_0x3af323[_0x4489d9(0x110)][_0x4489d9(0x139)]?_0x3af323[_0x4489d9(0x110)]:_0x5f3259['model'],_0x2d0965[_0x4489d9(0x154)][_0x4489d9(0x16d)]&&(_0x3af323[_0x4489d9(0x1b0)]=[{'all':!![]}]),_0x3af323=_['merge']({},_0x3af323,_0x2d0965[_0x4489d9(0x12f)]),db[_0x4489d9(0x1c8)]['findOne'](_0x3af323)[_0x4489d9(0x160)](handleEntityNotFound(_0x21477a,null))[_0x4489d9(0x160)](respondWithResult(_0x21477a,null))['catch'](handleError(_0x21477a,null));},exports['create']=function(_0x188095,_0x302f22){const _0x118dfe=a489_0x4ea906;return db['MailInteraction'][_0x118dfe(0x116)](_0x188095[_0x118dfe(0x145)],{})[_0x118dfe(0x160)](respondWithResult(_0x302f22,0xc9))[_0x118dfe(0x1ae)](handleError(_0x302f22,null));},exports[a489_0x4ea906(0x12e)]=function(_0x41fa03,_0x2da2fb){const _0x247841=a489_0x4ea906;return _0x41fa03[_0x247841(0x145)]['id']&&delete _0x41fa03[_0x247841(0x145)]['id'],db[_0x247841(0x1c8)][_0x247841(0x1d5)]({'where':{'id':_0x41fa03[_0x247841(0x157)]['id']}})[_0x247841(0x160)](handleEntityNotFound(_0x2da2fb,null))[_0x247841(0x160)](saveUpdates(_0x41fa03[_0x247841(0x145)],null))[_0x247841(0x160)](respondWithResult(_0x2da2fb,null))[_0x247841(0x1ae)](handleError(_0x2da2fb,null));},exports[a489_0x4ea906(0x1bc)]=function(_0x2b7094,_0x197b43){const _0x2975b4=a489_0x4ea906;return db[_0x2975b4(0x1c8)][_0x2975b4(0x1d5)]({'where':{'id':_0x2b7094[_0x2975b4(0x157)]['id']}})[_0x2975b4(0x160)](handleEntityNotFound(_0x197b43,null))['then'](removeEntity(_0x197b43,null))['catch'](handleError(_0x197b43,null));},exports[a489_0x4ea906(0x147)]=function(_0xdd9414,_0x2420d9){const _0x16049f=a489_0x4ea906;return db[_0x16049f(0x1c8)]['describe']()['then'](respondWithResult(_0x2420d9,null))[_0x16049f(0x1ae)](handleError(_0x2420d9,null));},exports[a489_0x4ea906(0x168)]=function(_0x28ee9f,_0xe35444){const _0x29e7bf=a489_0x4ea906;return db['MailMessage'][_0x29e7bf(0x1d5)]({'where':{'id':_0x28ee9f[_0x29e7bf(0x157)]['id']}})['then'](function(_0x1aa729){const _0x2325de=_0x29e7bf;if(_0x1aa729)return _0x1aa729['addMessage'](_0x28ee9f['body']['ids'],{'through':_[_0x2325de(0x185)](_0x28ee9f[_0x2325de(0x145)],[_0x2325de(0x191),'id'])});})[_0x29e7bf(0x160)](respondWithResult(_0xe35444,null))[_0x29e7bf(0x1ae)](handleError(_0xe35444,null));},exports[a489_0x4ea906(0x11b)]=function(_0x4ce59e,_0x136aa7){const _0x9cc14f=a489_0x4ea906;let _0xe366b9={'raw':![],'where':{}};const _0x166a40={},_0x16ab0a={'count':0x0,'rows':[]};return db[_0x9cc14f(0x1c8)]['findOne']({'where':{'id':_0x4ce59e[_0x9cc14f(0x157)]['id']}})[_0x9cc14f(0x160)](handleEntityNotFound(_0x136aa7,null))[_0x9cc14f(0x160)](function(_0x65645e){const _0x616673=_0x9cc14f;if(_0x65645e){_0x166a40['model']=_[_0x616673(0x169)](db[_0x616673(0x15e)]['rawAttributes']),_0x166a40[_0x616673(0x154)]=_['keys'](_0x4ce59e['query']),_0x166a40[_0x616673(0x1b9)]=_[_0x616673(0x152)](_0x166a40['model'],_0x166a40[_0x616673(0x154)]),_0xe366b9['attributes']=_['intersection'](_0x166a40[_0x616673(0x1e8)],qs[_0x616673(0x16e)](_0x4ce59e['query'][_0x616673(0x16e)])),_0xe366b9[_0x616673(0x110)]=_0xe366b9[_0x616673(0x110)]['length']?_0xe366b9['attributes']:_0x166a40['model'];typeof _0x4ce59e[_0x616673(0x154)][_0x616673(0x18b)]==='undefined'&&(_0xe366b9[_0x616673(0x1d6)]=qs[_0x616673(0x1d6)](_0x4ce59e[_0x616673(0x154)][_0x616673(0x1d6)]),_0xe366b9[_0x616673(0x11c)]=qs[_0x616673(0x11c)](_0x4ce59e[_0x616673(0x154)]['offset']));_0xe366b9['order']=qs[_0x616673(0x140)](_0x4ce59e['query'][_0x616673(0x140)]),_0xe366b9['where']=qs[_0x616673(0x1b9)](_[_0x616673(0x125)](_0x4ce59e[_0x616673(0x154)],_0x166a40['filters'])),_0xe366b9[_0x616673(0x17e)]['MailInteractionId']=_0x65645e['id'];_0x4ce59e['query'][_0x616673(0x13c)]&&(_0xe366b9['where']=_[_0x616673(0x1a4)](_0xe366b9[_0x616673(0x17e)],{[Op['or']]:_[_0x616673(0x187)](_0xe366b9['attributes'],function(_0x2e2703){const _0xced896=_0x616673,_0x346981={};return _0x346981[_0x2e2703]={[Op['like']]:'%'+_0x4ce59e[_0xced896(0x154)][_0xced896(0x13c)]+'%'},_0x346981;})}));if(_0x4ce59e[_0x616673(0x154)][_0x616673(0x131)]){const _0x154bf4=_0x4ce59e[_0x616673(0x154)][_0x616673(0x131)][_0x616673(0x1b5)](','),_0x34ba3b={};_0x34ba3b[_0x154bf4[0x0]]={[Op['gte']]:moment(_0x154bf4[0x1])['format'](_0x616673(0x119))},_0xe366b9['where']=_[_0x616673(0x1a4)](_0xe366b9[_0x616673(0x17e)],_0x34ba3b);}return _0xe366b9=_[_0x616673(0x1a4)]({},_0xe366b9,_0x4ce59e[_0x616673(0x12f)]),db[_0x616673(0x15e)][_0x616673(0x159)]({'where':_0xe366b9['where']})[_0x616673(0x160)](function(_0x30982e){const _0x964e09=_0x616673;return _0x16ab0a[_0x964e09(0x159)]=_0x30982e,_0x4ce59e['query'][_0x964e09(0x16d)]&&(_0xe366b9['include']=[{'all':!![]}]),db[_0x964e09(0x15e)]['findAll'](_0xe366b9);})[_0x616673(0x160)](function(_0x379a40){const _0x3de207=_0x616673;return _0x16ab0a[_0x3de207(0x18e)]=_0x379a40,_0x16ab0a;});}})[_0x9cc14f(0x160)](respondWithFilteredResult(_0x136aa7,_0xe366b9))[_0x9cc14f(0x1ae)](handleError(_0x136aa7,null));},exports[a489_0x4ea906(0x18c)]=function(_0x8c35e0,_0x95be77){const _0xb6cec0=a489_0x4ea906;return db[_0xb6cec0(0x1c8)][_0xb6cec0(0x1d5)]({'where':{'id':_0x8c35e0[_0xb6cec0(0x157)]['id']}})['then'](function(_0x218a28){const _0x426294=_0xb6cec0;if(_0x218a28)return _0x218a28[_0x426294(0x1d9)](_0x8c35e0[_0x426294(0x145)][_0x426294(0x191)],{'through':_[_0x426294(0x185)](_0x8c35e0['body'],[_0x426294(0x191),'id'])})[_0x426294(0x160)](function(){const _0x1b0a21=_0x426294;return db[_0x1b0a21(0x1cf)][_0x1b0a21(0x142)]({'attributes':['id',_0x1b0a21(0x197),'color'],'where':{'id':_0x8c35e0[_0x1b0a21(0x145)][_0x1b0a21(0x191)]}});})['then'](function(_0x744c30){const _0x2eccc9=_0x426294;return socket[_0x2eccc9(0x13e)](_0x2eccc9(0x1dd),{'id':Number(_0x8c35e0['params']['id']),'tags':_0x744c30||[]}),{'id':Number(_0x8c35e0[_0x2eccc9(0x157)]['id']),'tags':_0x744c30||[]};});})[_0xb6cec0(0x160)](respondWithResult(_0x95be77,null))[_0xb6cec0(0x1ae)](handleError(_0x95be77,null));},exports['removeTags']=function(_0x2ec3f0,_0xbc20da){const _0x1a60c8=a489_0x4ea906;return db[_0x1a60c8(0x1c8)][_0x1a60c8(0x1d5)]({'where':{'id':_0x2ec3f0['params']['id']}})[_0x1a60c8(0x160)](handleEntityNotFound(_0xbc20da,null))[_0x1a60c8(0x160)](function(_0x4e09b8){const _0x216f25=_0x1a60c8;if(_0x4e09b8)return _0x4e09b8[_0x216f25(0x1c1)](_0x2ec3f0[_0x216f25(0x154)][_0x216f25(0x191)]);})[_0x1a60c8(0x160)](respondWithStatusCode(_0xbc20da,null))[_0x1a60c8(0x1ae)](handleError(_0xbc20da,null));},exports[a489_0x4ea906(0x179)]=function(_0x1c63d5,_0x2f1906){const _0x2d5d37=a489_0x4ea906,_0x1667a5=moment()[_0x2d5d37(0x137)]()['toString'](),_0x510fef=path[_0x2d5d37(0x12a)](config[_0x2d5d37(0x16b)],_0x2d5d37(0x1b4),_0x2d5d37(0x1b8)),_0x2cb4e3=path[_0x2d5d37(0x12a)](config['root'],_0x2d5d37(0x156),_0x2d5d37(0x1b4),_0x2d5d37(0x129)),_0x1dce85=path[_0x2d5d37(0x12a)](_0x510fef,_0x1667a5),_0x2d4206=util[_0x2d5d37(0x128)](_0x2d5d37(0x121),_0x1c63d5['params']['id'],_0x1667a5),_0x5835a5=path['join'](_0x510fef,_0x2d4206),_0x2f1cbe=[];_0x1c63d5[_0x2d5d37(0x154)][_0x2d5d37(0x129)]&&_0x2f1cbe[_0x2d5d37(0x19f)]({'model':db[_0x2d5d37(0x15f)],'as':'Attachments','raw':!![]});const _0x5538ef=[{'model':db[_0x2d5d37(0x15e)],'as':_0x2d5d37(0x133),'attributes':['id',_0x2d5d37(0x145),_0x2d5d37(0x151),'to','cc',_0x2d5d37(0x17f),_0x2d5d37(0x188),'createdAt'],'where':{'secret':![]},'order':qs[_0x2d5d37(0x140)]('id'),'include':_0x2f1cbe}];return db[_0x2d5d37(0x1c8)][_0x2d5d37(0x1d5)]({'where':{'id':_0x1c63d5[_0x2d5d37(0x157)]['id']},'include':_0x5538ef})[_0x2d5d37(0x160)](handleEntityNotFound(_0x2f1906,null))[_0x2d5d37(0x160)](function(_0x2aa2c2){const _0x580e88=_0x2d5d37;if(_0x2aa2c2&&_0x2aa2c2[_0x580e88(0x133)]){const _0xe1910a=_0x2aa2c2['get']({'plain':!![]});return fs[_0x580e88(0x1b7)](_0x1dce85),Promise[_0x580e88(0x150)](_0xe1910a[_0x580e88(0x133)]['map']((_0x36ebfd,_0x5d05bc)=>{const _0x2b480d=_0x580e88,_0x4703c0={'from':_0x36ebfd[_0x2b480d(0x151)],'to':_0x36ebfd['to'],'subject':_0x36ebfd[_0x2b480d(0x188)],'html':_0x36ebfd[_0x2b480d(0x145)],'headers':{'Date':moment(_0x36ebfd['createdAt'])[_0x2b480d(0x128)](_0x2b480d(0x130))},'attachments':[]};return _0x36ebfd['cc']&&(_0x4703c0['headers']['Cc']=_0x36ebfd['cc']),_0x36ebfd[_0x2b480d(0x17f)]&&(_0x4703c0['headers'][_0x2b480d(0x1bf)]=_0x36ebfd[_0x2b480d(0x17f)]),new Promise(function(_0x223787,_0x4d22a2){const _0x427932=_0x2b480d;if(_0x36ebfd[_0x427932(0x155)])for(let _0x1cba3c=0x0;_0x1cba3c<_0x36ebfd[_0x427932(0x155)][_0x427932(0x139)];_0x1cba3c++){const _0x4b4193=_0x36ebfd[_0x427932(0x155)][_0x1cba3c],_0x867f5c=path[_0x427932(0x12a)](_0x2cb4e3,_0x4b4193[_0x427932(0x1cc)]);fs['existsSync'](_0x867f5c)&&_0x4703c0[_0x427932(0x129)]['push']({'name':_0x4b4193['name'],'contentType':_0x4b4193[_0x427932(0x1eb)],'data':fs[_0x427932(0x190)](_0x867f5c)});}emlformat[_0x427932(0x1e1)](_0x4703c0,function(_0x6bf227,_0x2d70c3){const _0x56c301=_0x427932;if(_0x6bf227)return _0x4d22a2(_0x6bf227);return fs['writeFileSync'](path[_0x56c301(0x12a)](_0x1dce85,util[_0x56c301(0x128)](_0x56c301(0x117),_0x5d05bc)),_0x2d70c3),_0x223787(_0x2d70c3);});});})[_0x580e88(0x160)](function(){const _0x293fe3=_0x580e88;return new Promise(function(_0x425b74,_0x4f971a){zipdir(_0x1dce85,{'saveTo':_0x5835a5},function(_0x455442,_0x52ce75){if(_0x455442)return _0x4f971a(_0x455442);return _0x425b74(_0x52ce75);});})[_0x293fe3(0x160)](function(){return new Promise(function(_0x4f9205,_0x3728ba){rimraf(_0x1dce85,function(_0x5b7e00){if(_0x5b7e00)_0x3728ba(_0x5b7e00);return _0x4f9205();});});})['then'](function(){const _0x2e93c5=_0x293fe3;return _0x2f1906[_0x2e93c5(0x179)](_0x5835a5,_0x2d4206,function(_0xce5a3e){const _0x37e196=_0x2e93c5;_0xce5a3e?console['log'](_0x37e196(0x1e9),_0xce5a3e):fs[_0x37e196(0x146)](_0x5835a5);});});}));}else return _0x2f1906[_0x580e88(0x195)](0xc8);})[_0x2d5d37(0x1ae)](handleError(_0x2f1906,null));}; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.events.js b/server/api/mailInteraction/mailInteraction.events.js index ba51835..abd9531 100644 --- a/server/api/mailInteraction/mailInteraction.events.js +++ b/server/api/mailInteraction/mailInteraction.events.js @@ -1 +1 @@ -const a490_0xe9e0=['exports','update','remove','findAll','setDataValue','setMaxListeners','events','save','unreadMessages','MailMessage','undefined','length','emit','map','then'];(function(_0x17b344,_0x2054b5){const _0xe9e01b=function(_0x57054a){while(--_0x57054a){_0x17b344['push'](_0x17b344['shift']());}};_0xe9e01b(++_0x2054b5);}(a490_0xe9e0,0x1c0));const a490_0x5705=function(_0x17b344,_0x2054b5){_0x17b344=_0x17b344-0x156;let _0xe9e01b=a490_0xe9e0[_0x17b344];return _0xe9e01b;};const a490_0x339b97=a490_0x5705;'use strict';const EventEmitter=require(a490_0x339b97(0x15e)),MailInteraction=require('../../mysqldb')['db']['MailInteraction'],MailMessage=require('../../mysqldb')['db'][a490_0x339b97(0x161)],MailInteractionEvents=new EventEmitter();MailInteractionEvents[a490_0x339b97(0x15d)](0x0);const events={'afterCreate':a490_0x339b97(0x15f),'afterUpdate':a490_0x339b97(0x159),'afterDestroy':a490_0x339b97(0x15a)};function emitEvent(_0x4e4aba){return function(_0xd02a23){const _0x3bb724=a490_0x5705;_0xd02a23['getUsers']({'attributes':['id'],'raw':!![]})[_0x3bb724(0x157)](function(_0x2a09e4){const _0x16b1e4=_0x3bb724;return _0xd02a23[_0x16b1e4(0x15c)]('Users',_0x2a09e4[_0x16b1e4(0x156)](function(_0x28d3e8){return{'id':_0x28d3e8['id']};})),MailMessage[_0x16b1e4(0x15b)]({'where':{'MailInteractionId':_0xd02a23['id'],'direction':'in','read':![]},'raw':!![]});})[_0x3bb724(0x157)](function(_0x364de0){const _0x3b0813=_0x3bb724;_0xd02a23[_0x3b0813(0x15c)](_0x3b0813(0x160),_0x364de0[_0x3b0813(0x163)]),MailInteractionEvents[_0x3b0813(0x164)](_0x4e4aba+':'+_0xd02a23['id'],_0xd02a23),MailInteractionEvents['emit'](_0x4e4aba,_0xd02a23);})['catch'](()=>{});};}for(const e in events){if(typeof events[e]!==a490_0x339b97(0x162)){const event=events[e];MailInteraction['addHook'](e,emitEvent(event));}}module[a490_0x339b97(0x158)]=MailInteractionEvents; \ No newline at end of file +const a490_0x3cef=['findAll','events','save','addHook','length','then','exports','MailInteraction','getUsers','unreadMessages','../../mysqldb','setMaxListeners','map','Users'];(function(_0x2effca,_0x182a0a){const _0x3cef9f=function(_0x26df8a){while(--_0x26df8a){_0x2effca['push'](_0x2effca['shift']());}};_0x3cef9f(++_0x182a0a);}(a490_0x3cef,0xc5));const a490_0x26df=function(_0x2effca,_0x182a0a){_0x2effca=_0x2effca-0x15b;let _0x3cef9f=a490_0x3cef[_0x2effca];return _0x3cef9f;};const a490_0x230f16=a490_0x26df;'use strict';const EventEmitter=require(a490_0x230f16(0x15b)),MailInteraction=require(a490_0x230f16(0x164))['db'][a490_0x230f16(0x161)],MailMessage=require(a490_0x230f16(0x164))['db']['MailMessage'],MailInteractionEvents=new EventEmitter();MailInteractionEvents[a490_0x230f16(0x165)](0x0);const events={'afterCreate':a490_0x230f16(0x15c),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x5e521a){return function(_0x4daef3){const _0x62b98a=a490_0x26df;_0x4daef3[_0x62b98a(0x162)]({'attributes':['id'],'raw':!![]})[_0x62b98a(0x15f)](function(_0x28440e){const _0x4d6187=_0x62b98a;return _0x4daef3['setDataValue'](_0x4d6187(0x167),_0x28440e[_0x4d6187(0x166)](function(_0x60cbba){return{'id':_0x60cbba['id']};})),MailMessage[_0x4d6187(0x168)]({'where':{'MailInteractionId':_0x4daef3['id'],'direction':'in','read':![]},'raw':!![]});})['then'](function(_0x40ba1f){const _0x2de066=_0x62b98a;_0x4daef3['setDataValue'](_0x2de066(0x163),_0x40ba1f[_0x2de066(0x15e)]),MailInteractionEvents['emit'](_0x5e521a+':'+_0x4daef3['id'],_0x4daef3),MailInteractionEvents['emit'](_0x5e521a,_0x4daef3);})['catch'](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];MailInteraction[a490_0x230f16(0x15d)](e,emitEvent(event));}}module[a490_0x230f16(0x160)]=MailInteractionEvents; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.model.js b/server/api/mailInteraction/mailInteraction.model.js index 2b6e722..50e243f 100644 --- a/server/api/mailInteraction/mailInteraction.model.js +++ b/server/api/mailInteraction/mailInteraction.model.js @@ -1 +1 @@ -const a491_0xaf0a=['function','./mailInteraction.attributes','MailInteraction','exports','./mailInteraction.options','sequelize','init'];(function(_0x28cc1f,_0x3ad197){const _0xaf0a99=function(_0x127818){while(--_0x127818){_0x28cc1f['push'](_0x28cc1f['shift']());}};_0xaf0a99(++_0x3ad197);}(a491_0xaf0a,0xc0));const a491_0x1278=function(_0x28cc1f,_0x3ad197){_0x28cc1f=_0x28cc1f-0xbf;let _0xaf0a99=a491_0xaf0a[_0x28cc1f];return _0xaf0a99;};const a491_0x381d56=a491_0x1278;'use strict';const {Model}=require(a491_0x381d56(0xc1)),{attributes}=require(a491_0x381d56(0xc4)),{options}=require(a491_0x381d56(0xc0));class MailInteraction extends Model{}function init(_0x2d8e31,_0x5a865d){const _0x19ba22=a491_0x381d56,_0x2cc13e=options(_0x2d8e31),_0x2ff38b=typeof _0x5a865d===_0x19ba22(0xc3)?_0x5a865d(_0x2cc13e):_0x2cc13e;return MailInteraction[_0x19ba22(0xc2)](attributes,_0x2ff38b),MailInteraction;}module[a491_0x381d56(0xbf)][a491_0x381d56(0xc5)]=MailInteraction,module['exports'][a491_0x381d56(0xc2)]=init; \ No newline at end of file +const a491_0x3da7=['MailInteraction','./mailInteraction.attributes','exports','init','./mailInteraction.options','function'];(function(_0x437c36,_0x436f98){const _0x3da73e=function(_0x2d6cce){while(--_0x2d6cce){_0x437c36['push'](_0x437c36['shift']());}};_0x3da73e(++_0x436f98);}(a491_0x3da7,0x8f));const a491_0x2d6c=function(_0x437c36,_0x436f98){_0x437c36=_0x437c36-0x161;let _0x3da73e=a491_0x3da7[_0x437c36];return _0x3da73e;};const a491_0x1e7400=a491_0x2d6c;'use strict';const {Model}=require('sequelize'),{attributes}=require(a491_0x1e7400(0x163)),{options}=require(a491_0x1e7400(0x166));class MailInteraction extends Model{}function init(_0x533433,_0x27218b){const _0x3917e7=a491_0x1e7400,_0x410d93=options(_0x533433),_0x508597=typeof _0x27218b===_0x3917e7(0x161)?_0x27218b(_0x410d93):_0x410d93;return MailInteraction[_0x3917e7(0x165)](attributes,_0x508597),MailInteraction;}module[a491_0x1e7400(0x164)][a491_0x1e7400(0x162)]=MailInteraction,module['exports'][a491_0x1e7400(0x165)]=init; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.options.js b/server/api/mailInteraction/mailInteraction.options.js index 79dfab7..3ae4241 100644 --- a/server/api/mailInteraction/mailInteraction.options.js +++ b/server/api/mailInteraction/mailInteraction.options.js @@ -1 +1 @@ -const a492_0x12a0=['YYYY-MM-DD\x20HH:mm:ss','options','exports','format','closedAt','changed','substatus','models','substatusAt','get','update','MailMessage','utf8mb4','mail_interactions','moment','FULLTEXT','closed','fti_mail_interactions'];(function(_0x34b1a5,_0x32d533){const _0x12a0a7=function(_0xf92ccc){while(--_0xf92ccc){_0x34b1a5['push'](_0x34b1a5['shift']());}};_0x12a0a7(++_0x32d533);}(a492_0x12a0,0x1b8));const a492_0xf92c=function(_0x34b1a5,_0x32d533){_0x34b1a5=_0x34b1a5-0x1e6;let _0x12a0a7=a492_0x12a0[_0x34b1a5];return _0x12a0a7;};const a492_0x470bdd=a492_0xf92c,moment=require(a492_0x470bdd(0x1ec));function options(_0x5c0e78){const _0x178d83=a492_0x470bdd;return{'sequelize':_0x5c0e78,'tableName':_0x178d83(0x1eb),'paranoid':![],'indexes':[{'name':_0x178d83(0x1ef),'fields':['subject','to'],'type':_0x178d83(0x1ed)}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x89b426){const _0x3d1be9=_0x178d83;_0x89b426[_0x3d1be9(0x1f6)]&&(_0x89b426['substatusAt']=moment()['format']('YYYY-MM-DD\x20HH:mm:ss')),_0x89b426['closed']&&(_0x89b426[_0x3d1be9(0x1f4)]=moment()[_0x3d1be9(0x1f3)](_0x3d1be9(0x1f0)));},'beforeUpdate':function(_0x29647e){const _0x3aae12=_0x178d83;_0x29647e[_0x3aae12(0x1f5)](_0x3aae12(0x1f6))&&(_0x29647e[_0x3aae12(0x1e6)]=_0x29647e[_0x3aae12(0x1f6)]?moment()[_0x3aae12(0x1f3)](_0x3aae12(0x1f0)):null),_0x29647e[_0x3aae12(0x1f5)](_0x3aae12(0x1ee))&&(_0x29647e[_0x3aae12(0x1f4)]=moment()['format'](_0x3aae12(0x1f0)),_0x29647e[_0x3aae12(0x1f6)]=null,_0x29647e[_0x3aae12(0x1e6)]=null);},'afterUpdate':function(_0x340bca){const _0x2d462b=_0x178d83,_0x436a14=_0x5c0e78[_0x2d462b(0x1f7)],_0x3ccba9=_0x340bca[_0x2d462b(0x1e7)]({'plain':!![]});if(_0x3ccba9[_0x2d462b(0x1ee)])return _0x436a14[_0x2d462b(0x1e9)][_0x2d462b(0x1e8)]({'read':!![]},{'where':{'MailInteractionId':_0x3ccba9['id']}});}},'charset':_0x178d83(0x1ea),'collate':'utf8mb4_unicode_ci'};}module[a492_0x470bdd(0x1f2)][a492_0x470bdd(0x1f1)]=options; \ No newline at end of file +const a492_0x1b07=['closed','fti_mail_interactions','changed','update','subject','YYYY-MM-DD\x20HH:mm:ss','substatus','moment','substatusAt','closedAt','exports','models','utf8mb4_unicode_ci','get','options','format'];(function(_0x3a1677,_0x5ace7d){const _0x1b07f4=function(_0x225c3c){while(--_0x225c3c){_0x3a1677['push'](_0x3a1677['shift']());}};_0x1b07f4(++_0x5ace7d);}(a492_0x1b07,0x90));const a492_0x225c=function(_0x3a1677,_0x5ace7d){_0x3a1677=_0x3a1677-0xd0;let _0x1b07f4=a492_0x1b07[_0x3a1677];return _0x1b07f4;};const a492_0xf78cf4=a492_0x225c,moment=require(a492_0xf78cf4(0xd7));function options(_0x19fb9f){const _0x4ed496=a492_0xf78cf4;return{'sequelize':_0x19fb9f,'tableName':'mail_interactions','paranoid':![],'indexes':[{'name':_0x4ed496(0xd1),'fields':[_0x4ed496(0xd4),'to'],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x8811f3){const _0x4ec0b3=_0x4ed496;_0x8811f3[_0x4ec0b3(0xd6)]&&(_0x8811f3[_0x4ec0b3(0xd8)]=moment()[_0x4ec0b3(0xdf)](_0x4ec0b3(0xd5))),_0x8811f3[_0x4ec0b3(0xd0)]&&(_0x8811f3[_0x4ec0b3(0xd9)]=moment()['format'](_0x4ec0b3(0xd5)));},'beforeUpdate':function(_0x425a07){const _0x1db7c4=_0x4ed496;_0x425a07['changed'](_0x1db7c4(0xd6))&&(_0x425a07[_0x1db7c4(0xd8)]=_0x425a07['substatus']?moment()[_0x1db7c4(0xdf)](_0x1db7c4(0xd5)):null),_0x425a07[_0x1db7c4(0xd2)]('closed')&&(_0x425a07['closedAt']=moment()['format'](_0x1db7c4(0xd5)),_0x425a07['substatus']=null,_0x425a07[_0x1db7c4(0xd8)]=null);},'afterUpdate':function(_0x1ded79){const _0x81115c=_0x4ed496,_0xa78d06=_0x19fb9f[_0x81115c(0xdb)],_0x207464=_0x1ded79[_0x81115c(0xdd)]({'plain':!![]});if(_0x207464[_0x81115c(0xd0)])return _0xa78d06['MailMessage'][_0x81115c(0xd3)]({'read':!![]},{'where':{'MailInteractionId':_0x207464['id']}});}},'charset':'utf8mb4','collate':_0x4ed496(0xdc)};}module[a492_0xf78cf4(0xda)][a492_0xf78cf4(0xde)]=options; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.rpc.js b/server/api/mailInteraction/mailInteraction.rpc.js index 9934bfe..83bf5b5 100644 --- a/server/api/mailInteraction/mailInteraction.rpc.js +++ b/server/api/mailInteraction/mailInteraction.rpc.js @@ -1 +1 @@ -const a493_0x5f1c=['error','rpc','debug','../../mysqldb','MailInteraction','update','options','raw','stringify','UpdateMailInteraction','info','body','../../config/logger','addTags','findOne','AddTags','AddTagsToMailInteraction','omit','ids','lodash','message','then','where','../../rediscache'];(function(_0x202351,_0x5f0912){const _0x5f1c3c=function(_0x2b7d36){while(--_0x2b7d36){_0x202351['push'](_0x202351['shift']());}};_0x5f1c3c(++_0x5f0912);}(a493_0x5f1c,0xfa));const a493_0x2b7d=function(_0x202351,_0x5f0912){_0x202351=_0x202351-0x81;let _0x5f1c3c=a493_0x5f1c[_0x202351];return _0x5f1c3c;};const a493_0x14d6d4=a493_0x2b7d;'use strict';const _=require(a493_0x14d6d4(0x8a)),db=require(a493_0x14d6d4(0x92))['db'],logger=require(a493_0x14d6d4(0x83))(a493_0x14d6d4(0x90)),{getSocket}=require(a493_0x14d6d4(0x8e)),socket=getSocket();require('./mailInteraction.socket')['register'](socket),exports[a493_0x14d6d4(0x98)]=function(_0x3ef64b){const _0x5f575e=this;return new Promise(function(_0x37e3e5,_0x54f5ba){const _0x3756b8=a493_0x2b7d;return db[_0x3756b8(0x93)][_0x3756b8(0x94)](_0x3ef64b[_0x3756b8(0x82)],{'raw':_0x3ef64b[_0x3756b8(0x95)]?_0x3ef64b[_0x3756b8(0x95)][_0x3756b8(0x96)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3ef64b[_0x3756b8(0x95)]?_0x3ef64b[_0x3756b8(0x95)][_0x3756b8(0x8d)]||null:null,'attributes':_0x3ef64b[_0x3756b8(0x95)]?_0x3ef64b[_0x3756b8(0x95)]['attributes']||null:null,'limit':_0x3ef64b[_0x3756b8(0x95)]?_0x3ef64b[_0x3756b8(0x95)]['limit']||null:null})[_0x3756b8(0x8c)](function(_0x4067ae){const _0x1ef6e2=_0x3756b8;logger[_0x1ef6e2(0x81)](_0x1ef6e2(0x98),_0x3ef64b),logger[_0x1ef6e2(0x91)](_0x1ef6e2(0x98),_0x3ef64b,JSON[_0x1ef6e2(0x97)](_0x4067ae)),_0x37e3e5(_0x4067ae);})['catch'](function(_0x13376e){const _0xe1dc1a=_0x3756b8;logger[_0xe1dc1a(0x8f)](_0xe1dc1a(0x98),_0x13376e[_0xe1dc1a(0x8b)],_0x3ef64b),_0x54f5ba(_0x5f575e[_0xe1dc1a(0x8f)](0x1f4,_0x13376e[_0xe1dc1a(0x8b)]));});});},exports[a493_0x14d6d4(0x87)]=function(_0x11667d){const _0x430e3e=this;return new Promise(function(_0xe53415,_0x2306a5){const _0x514751=a493_0x2b7d;return db[_0x514751(0x93)][_0x514751(0x85)]({'where':_0x11667d['options']?_0x11667d[_0x514751(0x95)][_0x514751(0x8d)]||null:null})[_0x514751(0x8c)](function(_0x4c00e9){const _0x5203c5=_0x514751;if(_0x4c00e9)return _0x4c00e9[_0x5203c5(0x84)](_0x11667d[_0x5203c5(0x82)][_0x5203c5(0x89)],{'through':_[_0x5203c5(0x88)](_0x11667d[_0x5203c5(0x82)],['ids','id'])});})[_0x514751(0x8c)](function([_0x243072]){const _0x46e479=_0x514751;logger['info'](_0x46e479(0x86),_0x11667d),logger[_0x46e479(0x91)](_0x46e479(0x86),_0x11667d,JSON[_0x46e479(0x97)](_0x243072)),_0xe53415(_0x243072);})['catch'](function(_0x2b0531){const _0x1aa500=_0x514751;logger['error'](_0x1aa500(0x86),_0x2b0531[_0x1aa500(0x8b)],_0x11667d),_0x2306a5(_0x430e3e['error'](0x1f4,_0x2b0531['message']));});});}; \ No newline at end of file +const a493_0x4d0c=['stringify','../../config/logger','update','../../rediscache','message','attributes','body','ids','raw','catch','then','MailInteraction','debug','options','findOne','omit','rpc','error','../../mysqldb','lodash','where','limit','AddTags','AddTagsToMailInteraction','UpdateMailInteraction','info','register'];(function(_0x4004a2,_0x48bffa){const _0x4d0c92=function(_0x36a70c){while(--_0x36a70c){_0x4004a2['push'](_0x4004a2['shift']());}};_0x4d0c92(++_0x48bffa);}(a493_0x4d0c,0x1b0));const a493_0x36a7=function(_0x4004a2,_0x48bffa){_0x4004a2=_0x4004a2-0x111;let _0x4d0c92=a493_0x4d0c[_0x4004a2];return _0x4d0c92;};const a493_0x49c74f=a493_0x36a7;'use strict';const _=require(a493_0x49c74f(0x124)),db=require(a493_0x49c74f(0x123))['db'],logger=require(a493_0x49c74f(0x112))(a493_0x49c74f(0x121)),{getSocket}=require(a493_0x49c74f(0x114)),socket=getSocket();require('./mailInteraction.socket')[a493_0x49c74f(0x12b)](socket),exports['UpdateMailInteraction']=function(_0x471c28){const _0x1d79fa=this;return new Promise(function(_0x201821,_0x495a09){const _0x34d561=a493_0x36a7;return db[_0x34d561(0x11c)][_0x34d561(0x113)](_0x471c28[_0x34d561(0x117)],{'raw':_0x471c28[_0x34d561(0x11e)]?_0x471c28['options'][_0x34d561(0x119)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x471c28[_0x34d561(0x11e)]?_0x471c28['options'][_0x34d561(0x125)]||null:null,'attributes':_0x471c28[_0x34d561(0x11e)]?_0x471c28['options'][_0x34d561(0x116)]||null:null,'limit':_0x471c28['options']?_0x471c28['options'][_0x34d561(0x126)]||null:null})[_0x34d561(0x11b)](function(_0x90f6fd){const _0x167989=_0x34d561;logger[_0x167989(0x12a)]('UpdateMailInteraction',_0x471c28),logger[_0x167989(0x11d)](_0x167989(0x129),_0x471c28,JSON['stringify'](_0x90f6fd)),_0x201821(_0x90f6fd);})[_0x34d561(0x11a)](function(_0x5098a9){const _0x31d03a=_0x34d561;logger[_0x31d03a(0x122)](_0x31d03a(0x129),_0x5098a9[_0x31d03a(0x115)],_0x471c28),_0x495a09(_0x1d79fa[_0x31d03a(0x122)](0x1f4,_0x5098a9[_0x31d03a(0x115)]));});});},exports[a493_0x49c74f(0x128)]=function(_0x5bab23){const _0x1c1701=this;return new Promise(function(_0x26d356,_0x376247){const _0x404e0f=a493_0x36a7;return db[_0x404e0f(0x11c)][_0x404e0f(0x11f)]({'where':_0x5bab23[_0x404e0f(0x11e)]?_0x5bab23[_0x404e0f(0x11e)][_0x404e0f(0x125)]||null:null})[_0x404e0f(0x11b)](function(_0x21d128){const _0x582494=_0x404e0f;if(_0x21d128)return _0x21d128['addTags'](_0x5bab23[_0x582494(0x117)][_0x582494(0x118)],{'through':_[_0x582494(0x120)](_0x5bab23['body'],['ids','id'])});})['then'](function([_0xd5023e]){const _0x494011=_0x404e0f;logger[_0x494011(0x12a)](_0x494011(0x127),_0x5bab23),logger[_0x494011(0x11d)]('AddTags',_0x5bab23,JSON[_0x494011(0x111)](_0xd5023e)),_0x26d356(_0xd5023e);})[_0x404e0f(0x11a)](function(_0x37bcee){const _0x5bd772=_0x404e0f;logger['error'](_0x5bd772(0x127),_0x37bcee[_0x5bd772(0x115)],_0x5bab23),_0x376247(_0x1c1701[_0x5bd772(0x122)](0x1f4,_0x37bcee[_0x5bd772(0x115)]));});});}; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.socket.js b/server/api/mailInteraction/mailInteraction.socket.js index 480607a..8b7e854 100644 --- a/server/api/mailInteraction/mailInteraction.socket.js +++ b/server/api/mailInteraction/mailInteraction.socket.js @@ -1 +1 @@ -const a494_0x47c5=['remove','register','update','mailInteraction:','emit','save'];(function(_0x355e55,_0x4ab8f4){const _0x47c5fe=function(_0x7d5a06){while(--_0x7d5a06){_0x355e55['push'](_0x355e55['shift']());}};_0x47c5fe(++_0x4ab8f4);}(a494_0x47c5,0xd6));const a494_0x7d5a=function(_0x355e55,_0x4ab8f4){_0x355e55=_0x355e55-0x1ed;let _0x47c5fe=a494_0x47c5[_0x355e55];return _0x47c5fe;};const a494_0x4781f3=a494_0x7d5a;'use strict';const MailInteractionEvents=require('./mailInteraction.events'),events=[a494_0x4781f3(0x1ee),a494_0x4781f3(0x1ef),a494_0x4781f3(0x1f1)];function createListener(_0x5a8112,_0x298a01){return function(_0x55fa90){const _0x21043f=a494_0x7d5a;_0x298a01[_0x21043f(0x1ed)](_0x5a8112,_0x55fa90);};}exports[a494_0x4781f3(0x1f0)]=function(_0xa2eb84){const _0x209ca6=a494_0x4781f3;for(let _0x48c5f0=0x0,_0x406a45=events['length'];_0x48c5f0<_0x406a45;_0x48c5f0++){const _0x308d5e=events[_0x48c5f0],_0x2cbf9f=createListener(_0x209ca6(0x1f2)+_0x308d5e,_0xa2eb84);MailInteractionEvents['on'](_0x308d5e,_0x2cbf9f);}}; \ No newline at end of file +const a494_0x32de=['register','remove','length','save','mailInteraction:','./mailInteraction.events','emit','update'];(function(_0x1560f1,_0x32505e){const _0x32dee0=function(_0x3fd65a){while(--_0x3fd65a){_0x1560f1['push'](_0x1560f1['shift']());}};_0x32dee0(++_0x32505e);}(a494_0x32de,0x174));const a494_0x3fd6=function(_0x1560f1,_0x32505e){_0x1560f1=_0x1560f1-0x18c;let _0x32dee0=a494_0x32de[_0x1560f1];return _0x32dee0;};const a494_0xc36480=a494_0x3fd6;'use strict';const MailInteractionEvents=require(a494_0xc36480(0x18d)),events=[a494_0xc36480(0x193),a494_0xc36480(0x191),a494_0xc36480(0x18f)];function createListener(_0xe5a657,_0x20294b){return function(_0x55369c){const _0x185a7e=a494_0x3fd6;_0x20294b[_0x185a7e(0x18e)](_0xe5a657,_0x55369c);};}exports[a494_0xc36480(0x190)]=function(_0x163ee4){const _0x419f05=a494_0xc36480;for(let _0x345705=0x0,_0x3475ef=events[_0x419f05(0x192)];_0x345705<_0x3475ef;_0x345705++){const _0x41c506=events[_0x345705],_0x5f5e0c=createListener(_0x419f05(0x18c)+_0x41c506,_0x163ee4);MailInteractionEvents['on'](_0x41c506,_0x5f5e0c);}}; \ No newline at end of file diff --git a/server/api/mailMessage/index.js b/server/api/mailMessage/index.js index 3f5a4c6..36390b3 100644 --- a/server/api/mailMessage/index.js +++ b/server/api/mailMessage/index.js @@ -1 +1 @@ -const a495_0x436a=['reject','describe','./mailMessage.controller','/:id/download','isAuthenticated','mail','mailmessage:create','/:id','accept','index','get','Router','put','tracked','delete','/:id/accept','create','/describe'];(function(_0x144d5c,_0x45a0ef){const _0x436acf=function(_0x4b5400){while(--_0x4b5400){_0x144d5c['push'](_0x144d5c['shift']());}};_0x436acf(++_0x45a0ef);}(a495_0x436a,0x1e2));const a495_0x4b54=function(_0x144d5c,_0x45a0ef){_0x144d5c=_0x144d5c-0xc3;let _0x436acf=a495_0x436a[_0x144d5c];return _0x436acf;};const a495_0x375f10=a495_0x4b54;'use strict';const express=require('express'),router=express[a495_0x375f10(0xd2)](),auth=require('../../components/auth/service'),interaction=require('../../components/interaction/service'),controller=require(a495_0x375f10(0xc9));router[a495_0x375f10(0xd1)]('/',auth['isAuthenticated'](),controller[a495_0x375f10(0xd0)]),router['get'](a495_0x375f10(0xc6),auth[a495_0x375f10(0xcb)](),controller[a495_0x375f10(0xc8)]),router[a495_0x375f10(0xd1)](a495_0x375f10(0xce),auth['isAuthenticated'](),controller['show']),router[a495_0x375f10(0xd1)](a495_0x375f10(0xca),auth[a495_0x375f10(0xcb)](),controller['download']),router['post']('/',auth['isAuthenticated'](),interaction[a495_0x375f10(0xd4)](a495_0x375f10(0xcc),a495_0x375f10(0xcd)),controller[a495_0x375f10(0xc5)]),router['put'](a495_0x375f10(0xce),auth[a495_0x375f10(0xcb)](),controller['update']),router[a495_0x375f10(0xd3)](a495_0x375f10(0xc4),auth[a495_0x375f10(0xcb)](),controller[a495_0x375f10(0xcf)]),router[a495_0x375f10(0xd3)]('/:id/reject',auth[a495_0x375f10(0xcb)](),controller[a495_0x375f10(0xc7)]),router[a495_0x375f10(0xc3)](a495_0x375f10(0xce),auth[a495_0x375f10(0xcb)](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a495_0x473f=['exports','accept','/:id/download','express','destroy','get','mailmessage:create','isAuthenticated','reject','/describe','Router','/:id','./mailMessage.controller','tracked','create','describe','mail','../../components/interaction/service','put','delete','download'];(function(_0x1149a6,_0x59c0f5){const _0x473f04=function(_0x3551a2){while(--_0x3551a2){_0x1149a6['push'](_0x1149a6['shift']());}};_0x473f04(++_0x59c0f5);}(a495_0x473f,0x87));const a495_0x3551=function(_0x1149a6,_0x59c0f5){_0x1149a6=_0x1149a6-0x67;let _0x473f04=a495_0x473f[_0x1149a6];return _0x473f04;};const a495_0x3e501b=a495_0x3551;'use strict';const express=require(a495_0x3e501b(0x76)),router=express[a495_0x3e501b(0x68)](),auth=require('../../components/auth/service'),interaction=require(a495_0x3e501b(0x6f)),controller=require(a495_0x3e501b(0x6a));router[a495_0x3e501b(0x78)]('/',auth[a495_0x3e501b(0x7a)](),controller['index']),router['get'](a495_0x3e501b(0x67),auth[a495_0x3e501b(0x7a)](),controller[a495_0x3e501b(0x6d)]),router['get'](a495_0x3e501b(0x69),auth[a495_0x3e501b(0x7a)](),controller['show']),router[a495_0x3e501b(0x78)](a495_0x3e501b(0x75),auth[a495_0x3e501b(0x7a)](),controller[a495_0x3e501b(0x72)]),router['post']('/',auth[a495_0x3e501b(0x7a)](),interaction[a495_0x3e501b(0x6b)](a495_0x3e501b(0x6e),a495_0x3e501b(0x79)),controller[a495_0x3e501b(0x6c)]),router[a495_0x3e501b(0x70)](a495_0x3e501b(0x69),auth[a495_0x3e501b(0x7a)](),controller['update']),router['put']('/:id/accept',auth['isAuthenticated'](),controller[a495_0x3e501b(0x74)]),router[a495_0x3e501b(0x70)]('/:id/reject',auth['isAuthenticated'](),controller[a495_0x3e501b(0x7b)]),router[a495_0x3e501b(0x71)](a495_0x3e501b(0x69),auth[a495_0x3e501b(0x7a)](),controller[a495_0x3e501b(0x77)]),module[a495_0x3e501b(0x73)]=router; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.attributes.js b/server/api/mailMessage/mailMessage.attributes.js index e71864f..b14b61b 100644 --- a/server/api/mailMessage/mailMessage.attributes.js +++ b/server/api/mailMessage/mailMessage.attributes.js @@ -1 +1 @@ -const a496_0x4e7e=['TEXT','attributes','long','medium','ENUM','STRING','exports','sequelize','BOOLEAN','out','INTEGER','DATE'];(function(_0x1dbd73,_0x1b022f){const _0x4e7edc=function(_0x5c417a){while(--_0x5c417a){_0x1dbd73['push'](_0x1dbd73['shift']());}};_0x4e7edc(++_0x1b022f);}(a496_0x4e7e,0x8c));const a496_0x5c41=function(_0x1dbd73,_0x1b022f){_0x1dbd73=_0x1dbd73-0x1e1;let _0x4e7edc=a496_0x4e7e[_0x1dbd73];return _0x4e7edc;};const a496_0xa5b882=a496_0x5c41;'use strict';const {DataTypes}=require(a496_0xa5b882(0x1ec)),attributes={'body':{'type':DataTypes[a496_0xa5b882(0x1e5)]({'length':a496_0xa5b882(0x1e7)}),'allowNull':![]},'plainBody':{'type':DataTypes[a496_0xa5b882(0x1e5)]({'length':a496_0xa5b882(0x1e8)})},'read':{'type':DataTypes[a496_0xa5b882(0x1e1)],'defaultValue':![]},'direction':{'type':DataTypes[a496_0xa5b882(0x1e9)]('in',a496_0xa5b882(0x1e2)),'defaultValue':'out','allowNull':![]},'messageId':{'type':DataTypes[a496_0xa5b882(0x1ea)](0x1fe)},'from':{'type':DataTypes[a496_0xa5b882(0x1ea)]},'to':{'type':DataTypes[a496_0xa5b882(0x1e5)]({'length':a496_0xa5b882(0x1e7)})},'cc':{'type':DataTypes[a496_0xa5b882(0x1e5)]({'length':a496_0xa5b882(0x1e7)})},'bcc':{'type':DataTypes[a496_0xa5b882(0x1e5)]({'length':'long'})},'subject':{'type':DataTypes[a496_0xa5b882(0x1e5)]},'sentAt':{'type':DataTypes[a496_0xa5b882(0x1e4)]},'attach':{'type':DataTypes[a496_0xa5b882(0x1e3)],'defaultValue':0x0},'secret':{'type':DataTypes[a496_0xa5b882(0x1e1)],'defaultValue':![]},'readAt':{'type':DataTypes['DATE']},'originTo':{'type':DataTypes[a496_0xa5b882(0x1e5)]({'length':a496_0xa5b882(0x1e7)})},'originCc':{'type':DataTypes['TEXT']({'length':a496_0xa5b882(0x1e7)})}};module[a496_0xa5b882(0x1eb)][a496_0xa5b882(0x1e6)]=attributes; \ No newline at end of file +const a496_0x561f=['TEXT','STRING','attributes','BOOLEAN','ENUM','DATE','sequelize','long','out','exports'];(function(_0x2cb71d,_0x54afce){const _0x561f5a=function(_0x16371e){while(--_0x16371e){_0x2cb71d['push'](_0x2cb71d['shift']());}};_0x561f5a(++_0x54afce);}(a496_0x561f,0xee));const a496_0x1637=function(_0x2cb71d,_0x54afce){_0x2cb71d=_0x2cb71d-0xeb;let _0x561f5a=a496_0x561f[_0x2cb71d];return _0x561f5a;};const a496_0x23cdb6=a496_0x1637;'use strict';const {DataTypes}=require(a496_0x23cdb6(0xf3)),attributes={'body':{'type':DataTypes['TEXT']({'length':a496_0x23cdb6(0xf4)}),'allowNull':![]},'plainBody':{'type':DataTypes[a496_0x23cdb6(0xed)]({'length':'medium'})},'read':{'type':DataTypes[a496_0x23cdb6(0xf0)],'defaultValue':![]},'direction':{'type':DataTypes[a496_0x23cdb6(0xf1)]('in','out'),'defaultValue':a496_0x23cdb6(0xeb),'allowNull':![]},'messageId':{'type':DataTypes[a496_0x23cdb6(0xee)](0x1fe)},'from':{'type':DataTypes[a496_0x23cdb6(0xee)]},'to':{'type':DataTypes['TEXT']({'length':'long'})},'cc':{'type':DataTypes['TEXT']({'length':a496_0x23cdb6(0xf4)})},'bcc':{'type':DataTypes[a496_0x23cdb6(0xed)]({'length':a496_0x23cdb6(0xf4)})},'subject':{'type':DataTypes[a496_0x23cdb6(0xed)]},'sentAt':{'type':DataTypes[a496_0x23cdb6(0xf2)]},'attach':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'secret':{'type':DataTypes[a496_0x23cdb6(0xf0)],'defaultValue':![]},'readAt':{'type':DataTypes[a496_0x23cdb6(0xf2)]},'originTo':{'type':DataTypes['TEXT']({'length':'long'})},'originCc':{'type':DataTypes[a496_0x23cdb6(0xed)]({'length':a496_0x23cdb6(0xf4)})}};module[a496_0x23cdb6(0xec)][a496_0x23cdb6(0xef)]=attributes; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.controller.js b/server/api/mailMessage/mailMessage.controller.js index e0e1614..6e61826 100644 --- a/server/api/mailMessage/mailMessage.controller.js +++ b/server/api/mailMessage/mailMessage.controller.js @@ -1 +1 @@ -const a497_0x5d30=['join','catch','json','fields','Attachment','null','path','message','List\x20not\x20found','mail','findAll','Bcc','fieldName','accept','port','secure','rejectMessage','Attachments','./mailMessage.socket','destroy','mail-interactions','[MAILMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','moment','options','createdAt','SIP/%s','defaults','api','../../components/parsers/qs','error','body','files','err','messageId','model','from','map','Contacts','role','rawAttributes','attachments','then','request\x20sent','CmList','split','status','index','length','includeAll','root','build','VIRTUAL','send','unlinkSync','sendStatus','service','findOne','order','../../config/environment','read1stAt','ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ','existsSync','interface','tmp','info','describe','sequelize','type','update','undefined','secret','headers','rows','intersection','offset','agent','download','updatedAt','where','direction','interaction','../../config/logger','isNil','out','util','create','include','jayson/promise','event','ListId','MailMessage,\x20%s,\x20%s,\x20%s','[MAILMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','filters','merge','AcceptMessage','debug','host','sendMail','MailInteraction','register','name','subject','push','query','acceptmessage','format','Smtp','acceptMessage','manual','MailServerOut','YYYY-MM-DD\x20HH:mm:ss','user','channel','http','UserId','server','params','../../mysqldb','client','limit','show','attributes','unix','reject','List','key','stringify','bcc','get','EventManager','code','../../rediscache','MailMessage,\x20%s,\x20%s','CmContact','count','keys','MailMessage','log','filter','read','end','like','basename','stack','sort','pass'];(function(_0x12b014,_0x546f5b){const _0x5d3088=function(_0x53c69e){while(--_0x53c69e){_0x12b014['push'](_0x12b014['shift']());}};_0x5d3088(++_0x546f5b);}(a497_0x5d30,0x98));const a497_0x53c6=function(_0x12b014,_0x546f5b){_0x12b014=_0x12b014-0x7d;let _0x5d3088=a497_0x5d30[_0x12b014];return _0x5d3088;};const a497_0x36e9c5=a497_0x53c6;'use strict';const emlformat=require('eml-format'),moment=require(a497_0x36e9c5(0x8d)),util=require(a497_0x36e9c5(0xcb)),path=require(a497_0x36e9c5(0x7d)),fs=require('fs'),_=require('lodash'),{getSocket}=require(a497_0x36e9c5(0xfa)),socket=getSocket(),qs=require(a497_0x36e9c5(0x93)),logger=require('../../config/logger')(a497_0x36e9c5(0x92)),config=require(a497_0x36e9c5(0xb1)),interaction_log=require(a497_0x36e9c5(0xc8))(a497_0x36e9c5(0x8b)),{db}=require(a497_0x36e9c5(0xec)),{Op}=require(a497_0x36e9c5(0xb9));require(a497_0x36e9c5(0x89))[a497_0x36e9c5(0xda)](socket);const jayson=require(a497_0x36e9c5(0xce)),client=jayson[a497_0x36e9c5(0xed)][a497_0x36e9c5(0xe8)]({'port':0x232c}),client9003=jayson['client'][a497_0x36e9c5(0xe8)]({'port':0x232b}),client9002=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x1b7c91,_0x2186e8,_0x157450,_0x505e9a){return new Promise(function(_0x3cabfb,_0x316b0b){const _0x126d67=a497_0x53c6,_0x110c3c=_0x505e9a||client;return _0x110c3c['request'](_0x1b7c91,_0x157450)[_0x126d67(0xa0)](function(_0x23da0b){const _0xeb6365=_0x126d67;logger['info'](_0xeb6365(0xfb),_0x2186e8,_0xeb6365(0xa1)),logger[_0xeb6365(0xd6)](_0xeb6365(0xd1),_0x2186e8,_0xeb6365(0xa1),JSON[_0xeb6365(0xf5)](_0x23da0b));if(_0x23da0b[_0xeb6365(0x94)]){if(_0x23da0b['error'][_0xeb6365(0xf9)]===0x1f4)return logger['error'](_0xeb6365(0xfb),_0x2186e8,_0x23da0b[_0xeb6365(0x94)][_0xeb6365(0x7e)]),_0x316b0b(_0x23da0b[_0xeb6365(0x94)][_0xeb6365(0x7e)]);return logger[_0xeb6365(0x94)]('MailMessage,\x20%s,\x20%s',_0x2186e8,_0x23da0b[_0xeb6365(0x94)][_0xeb6365(0x7e)]),_0x3cabfb(_0x23da0b[_0xeb6365(0x94)][_0xeb6365(0x7e)]);}else logger[_0xeb6365(0xb7)](_0xeb6365(0xfb),_0x2186e8,'request\x20sent'),_0x3cabfb(_0x23da0b['result']['message']);})['catch'](function(_0x39a68f){const _0xe3244=_0x126d67;logger[_0xe3244(0x94)]('MailMessage,\x20%s,\x20%s',_0x2186e8,_0x39a68f),_0x316b0b(_0x39a68f);});});}function respondWithResult(_0x3c9eb0,_0x731df3){return _0x731df3=_0x731df3||0xc8,function(_0x580177){const _0x5d7b35=a497_0x53c6;if(_0x580177)return _0x3c9eb0['status'](_0x731df3)[_0x5d7b35(0x10b)](_0x580177);};}function respondWithFilteredResult(_0x40ba41,_0x1b3d79){return function(_0x477db5){const _0x15a81f=a497_0x53c6;if(_0x477db5){const _0x524a93=_0x477db5[_0x15a81f(0xfd)],_0x482e92=_0x1b3d79[_0x15a81f(0xc1)];let _0x1727bb=_0x1b3d79[_0x15a81f(0xc1)]+_0x1b3d79[_0x15a81f(0xee)],_0x4a8ffd;return _0x1727bb>=_0x524a93?(_0x1727bb=_0x524a93,_0x4a8ffd=0xc8):_0x4a8ffd=0xce,_0x40ba41[_0x15a81f(0xa4)](_0x4a8ffd),_0x40ba41['set']('Content-Range',_0x482e92+'-'+_0x1727bb+'/'+_0x524a93)[_0x15a81f(0x10b)](_0x477db5);}return null;};}function saveUpdates(_0x47ce45){return function(_0x1f18f8){const _0x22e34a=a497_0x53c6;if(_0x1f18f8)return _0x1f18f8[_0x22e34a(0xbb)](_0x47ce45)[_0x22e34a(0xa0)](function(_0x18c856){return _0x18c856;});return null;};}function removeEntity(_0x4c6cf7){return function(_0x5dff43){const _0xe6048a=a497_0x53c6;if(_0x5dff43)return _0x5dff43[_0xe6048a(0x8a)]()[_0xe6048a(0xa0)](function(){const _0x578f0b=_0xe6048a;_0x4c6cf7[_0x578f0b(0xa4)](0xcc)[_0x578f0b(0x103)]();});};}function handleEntityNotFound(_0x53ab80){return function(_0x4b375d){const _0xa93615=a497_0x53c6;return!_0x4b375d&&_0x53ab80[_0xa93615(0xad)](0x194),_0x4b375d;};}function handleError(_0xd0ebb3,_0x31633d){return _0x31633d=_0x31633d||0x1f4,function(_0x21523e){const _0x18816d=a497_0x53c6;logger[_0x18816d(0x94)](_0x21523e[_0x18816d(0x106)]),_0x21523e[_0x18816d(0xdb)]&&delete _0x21523e[_0x18816d(0xdb)],_0xd0ebb3['status'](_0x31633d)[_0x18816d(0xab)](_0x21523e);};}exports[a497_0x36e9c5(0xa5)]=function(_0x47896a,_0x10d80a){const _0xe20436=a497_0x36e9c5;let _0x4d04c8={};const _0x1ed39f={},_0x3a9974={'count':0x0,'rows':[]},_0x1a3e8f=_[_0xe20436(0x9b)](db['MailMessage'][_0xe20436(0x9e)],function(_0xd358e6){const _0x348236=_0xe20436;return{'name':_0xd358e6[_0x348236(0x83)],'type':_0xd358e6[_0x348236(0xba)][_0x348236(0xf4)]};});_0x1ed39f[_0xe20436(0x99)]=_[_0xe20436(0x9b)](_0x1a3e8f,'name'),_0x1ed39f['query']=_[_0xe20436(0xfe)](_0x47896a[_0xe20436(0xde)]),_0x1ed39f[_0xe20436(0xd3)]=_[_0xe20436(0xc0)](_0x1ed39f[_0xe20436(0x99)],_0x1ed39f[_0xe20436(0xde)]),_0x4d04c8[_0xe20436(0xf0)]=_[_0xe20436(0xc0)](_0x1ed39f[_0xe20436(0x99)],qs[_0xe20436(0x10c)](_0x47896a['query'][_0xe20436(0x10c)])),_0x4d04c8['attributes']=_0x4d04c8[_0xe20436(0xf0)][_0xe20436(0xa6)]?_0x4d04c8[_0xe20436(0xf0)]:_0x1ed39f[_0xe20436(0x99)];typeof _0x47896a['query']['nolimit']===_0xe20436(0xbc)&&(_0x4d04c8[_0xe20436(0xee)]=qs[_0xe20436(0xee)](_0x47896a[_0xe20436(0xde)][_0xe20436(0xee)]),_0x4d04c8['offset']=qs['offset'](_0x47896a[_0xe20436(0xde)]['offset']));_0x4d04c8[_0xe20436(0xb0)]=qs[_0xe20436(0x107)](_0x47896a[_0xe20436(0xde)][_0xe20436(0x107)]),_0x4d04c8[_0xe20436(0xc5)]=qs['filters'](_['pick'](_0x47896a[_0xe20436(0xde)],_0x1ed39f[_0xe20436(0xd3)]),_0x1a3e8f);_0x47896a[_0xe20436(0xde)][_0xe20436(0x101)]&&(_0x4d04c8[_0xe20436(0xc5)]=_[_0xe20436(0xd4)](_0x4d04c8[_0xe20436(0xc5)],{[Op['or']]:_['map'](_0x1a3e8f,function(_0x4897a9){const _0x2bc765=_0xe20436;if(_0x4897a9[_0x2bc765(0xba)]!==_0x2bc765(0xaa)){const _0x3c7e61={};return _0x3c7e61[_0x4897a9[_0x2bc765(0xdb)]]={[Op[_0x2bc765(0x104)]]:'%'+_0x47896a[_0x2bc765(0xde)][_0x2bc765(0x101)]+'%'},_0x3c7e61;}})}));_0x4d04c8=_[_0xe20436(0xd4)]({},_0x4d04c8,_0x47896a[_0xe20436(0x8e)]);const _0x953d79={'where':_0x4d04c8['where']};return db[_0xe20436(0xff)][_0xe20436(0xfd)](_0x953d79)['then'](function(_0x2609a3){const _0x4cd8b0=_0xe20436;return _0x3a9974[_0x4cd8b0(0xfd)]=_0x2609a3,_0x47896a[_0x4cd8b0(0xde)][_0x4cd8b0(0xa7)]&&(_0x4d04c8[_0x4cd8b0(0xcd)]=[{'all':!![]}]),db[_0x4cd8b0(0xff)][_0x4cd8b0(0x81)](_0x4d04c8);})['then'](function(_0x4fe33a){const _0x2f42a6=_0xe20436;return _0x3a9974[_0x2f42a6(0xbf)]=_0x4fe33a,_0x3a9974;})['then'](respondWithFilteredResult(_0x10d80a,_0x4d04c8))[_0xe20436(0x10a)](handleError(_0x10d80a,null));},exports[a497_0x36e9c5(0xef)]=function(_0x3994e8,_0x578fec){const _0x5065de=a497_0x36e9c5;let _0x24eb2c={'raw':!![],'where':{'id':_0x3994e8['params']['id']}};const _0x342b7c={};return _0x342b7c['model']=_['keys'](db['MailMessage'][_0x5065de(0x9e)]),_0x342b7c[_0x5065de(0xde)]=_[_0x5065de(0xfe)](_0x3994e8[_0x5065de(0xde)]),_0x342b7c[_0x5065de(0xd3)]=_[_0x5065de(0xc0)](_0x342b7c[_0x5065de(0x99)],_0x342b7c[_0x5065de(0xde)]),_0x24eb2c[_0x5065de(0xf0)]=_['intersection'](_0x342b7c[_0x5065de(0x99)],qs[_0x5065de(0x10c)](_0x3994e8['query'][_0x5065de(0x10c)])),_0x24eb2c[_0x5065de(0xf0)]=_0x24eb2c[_0x5065de(0xf0)][_0x5065de(0xa6)]?_0x24eb2c[_0x5065de(0xf0)]:_0x342b7c['model'],_0x3994e8[_0x5065de(0xde)][_0x5065de(0xa7)]&&(_0x24eb2c[_0x5065de(0xcd)]=[{'all':!![]}]),_0x24eb2c=_['merge']({},_0x24eb2c,_0x3994e8['options']),db['MailMessage'][_0x5065de(0xaf)](_0x24eb2c)['then'](handleEntityNotFound(_0x578fec,null))[_0x5065de(0xa0)](respondWithResult(_0x578fec,null))[_0x5065de(0x10a)](handleError(_0x578fec,null));},exports[a497_0x36e9c5(0xbb)]=function(_0x5a3255,_0xfa91e6){const _0x1f2023=a497_0x36e9c5;return _0x5a3255[_0x1f2023(0x95)]['id']&&delete _0x5a3255['body']['id'],db['MailMessage'][_0x1f2023(0xaf)]({'where':{'id':_0x5a3255[_0x1f2023(0xeb)]['id']}})[_0x1f2023(0xa0)](handleEntityNotFound(_0xfa91e6,null))['then'](saveUpdates(_0x5a3255['body'],null))['then'](respondWithResult(_0xfa91e6,null))[_0x1f2023(0x10a)](handleError(_0xfa91e6,null));},exports[a497_0x36e9c5(0x8a)]=function(_0xe794e1,_0xbbbd2d){const _0x2af685=a497_0x36e9c5;return db[_0x2af685(0xff)][_0x2af685(0xaf)]({'where':{'id':_0xe794e1[_0x2af685(0xeb)]['id']}})['then'](handleEntityNotFound(_0xbbbd2d,null))[_0x2af685(0xa0)](removeEntity(_0xbbbd2d,null))[_0x2af685(0x10a)](handleError(_0xbbbd2d,null));},exports[a497_0x36e9c5(0xb8)]=function(_0x407667,_0x46ab65){const _0x254c0e=a497_0x36e9c5;return db[_0x254c0e(0xff)]['describe']()[_0x254c0e(0xa0)](respondWithResult(_0x46ab65,null))['catch'](handleError(_0x46ab65,null));},exports[a497_0x36e9c5(0xcc)]=function(_0xb12640,_0x3ae33d){const _0x3ff1fe=a497_0x36e9c5;return db['MailMessage'][_0x3ff1fe(0xcc)](_0xb12640[_0x3ff1fe(0x95)])[_0x3ff1fe(0xa0)](function(_0xa1f17d){const _0x4d3ff2=_0x3ff1fe;if(_0xa1f17d){if(_0xa1f17d[_0x4d3ff2(0xc6)]===_0x4d3ff2(0xca)&&!_0xa1f17d[_0x4d3ff2(0xbd)]){let _0x111526,_0x151283,_0x440386;return _0xb12640[_0x4d3ff2(0x95)]['to']&&(_0x151283=_0xb12640[_0x4d3ff2(0x95)]['to'][_0x4d3ff2(0xa3)](',')[0x0]),db['MailAccount'][_0x4d3ff2(0xaf)]({'where':{'id':_0xa1f17d['MailAccountId']},'include':[{'model':db[_0x4d3ff2(0xa2)],'as':_0x4d3ff2(0xf3),'include':[{'model':db[_0x4d3ff2(0xfc)],'as':_0x4d3ff2(0x9c),'where':{'email':_0x151283},'limit':0x1,'order':[[_0x4d3ff2(0xc4),'DESC']]}]},{'model':db[_0x4d3ff2(0xe4)],'as':_0x4d3ff2(0xe1),'raw':!![]}]})[_0x4d3ff2(0xa0)](function(_0x252f68){const _0x458334=_0x4d3ff2;_0x111526=_0x252f68;if(_0x111526&&_0x111526['Smtp']){const _0x4fde7e={'tls':{'rejectUnauthorized':![]}};_[_0x458334(0xc9)](_0x111526[_0x458334(0xe1)][_0x458334(0xae)])?(_0x4fde7e['host']=_0x111526['Smtp'][_0x458334(0xd7)],_0x4fde7e['port']=_0x111526[_0x458334(0xe1)][_0x458334(0x85)],_0x4fde7e[_0x458334(0x86)]=_0x111526[_0x458334(0xe1)]['secure'],_0x111526[_0x458334(0xe1)]['authentication']&&(_0x4fde7e['auth']={'user':_0x111526[_0x458334(0xe1)][_0x458334(0xe6)],'pass':_0x111526[_0x458334(0xe1)][_0x458334(0x108)]})):(_0x4fde7e[_0x458334(0xae)]=_0x111526[_0x458334(0xe1)][_0x458334(0xae)],_0x4fde7e['auth']={'user':_0x111526[_0x458334(0xe1)][_0x458334(0xe6)],'pass':_0x111526['Smtp'][_0x458334(0x108)]},_0x4fde7e[_0x458334(0x86)]=_0x111526[_0x458334(0xe1)][_0x458334(0x86)]);if(_0xb12640['body']['attachments']&&_0xb12640['body']['attachments'][_0x458334(0xa6)])for(let _0xf7836a=0x0;_0xf7836a<_0xb12640[_0x458334(0x95)][_0x458334(0x9f)]['length'];_0xf7836a+=0x1){_0xb12640[_0x458334(0x95)][_0x458334(0x9f)][_0xf7836a]={'filename':_0xb12640[_0x458334(0x95)][_0x458334(0x9f)][_0xf7836a]['name'],'path':path[_0x458334(0x109)](config[_0x458334(0xa8)],'server/files/attachments',_0xb12640[_0x458334(0x95)][_0x458334(0x9f)][_0xf7836a][_0x458334(0x105)])};}_0x440386={'account':_0x4fde7e,'message':_0xb12640[_0x458334(0x95)]};return;}})[_0x4d3ff2(0xa0)](function(){const _0x3e12c6=_0x4d3ff2;if(_0x111526[_0x3e12c6(0xf3)])return _0x111526[_0x3e12c6(0xf3)][_0x3e12c6(0x9c)][_0x3e12c6(0xa6)]?_0x111526[_0x3e12c6(0xf3)][_0x3e12c6(0x9c)][0x0]:db[_0x3e12c6(0xfc)]['create'](_[_0x3e12c6(0x91)](_0xb12640[_0x3e12c6(0x95)],{'firstName':_0xb12640[_0x3e12c6(0x95)]['to'],'email':_0xb12640[_0x3e12c6(0x95)]['to'],'phone':_0xb12640[_0x3e12c6(0x95)]['to'],'ListId':_0x111526[_0x3e12c6(0xd0)]}));else throw new Error(_0x3e12c6(0x7f));})[_0x4d3ff2(0xa0)](function(){const _0x534325=_0x4d3ff2;if(_0x440386)return respondWithRpcPromise('SendMail',_0x534325(0xd8),_0x440386,client9003)[_0x534325(0xa0)](function(_0x42c01e){const _0x1b9717=_0x534325;return _0xa1f17d[_0x1b9717(0xbb)]({'read':!![],'messageId':_0x42c01e[_0x1b9717(0x98)],'sentAt':moment()[_0x1b9717(0xe0)](_0x1b9717(0xe5))});})['catch'](function(_0x1d7cc5){const _0x5e5ffe=_0x534325;return logger['error']('%s',JSON[_0x5e5ffe(0xf5)](_0x1d7cc5)),_0xa1f17d;});return _0xa1f17d;});}return _0xa1f17d;}})[_0x3ff1fe(0xa0)](respondWithResult(_0x3ae33d,0xc9))[_0x3ff1fe(0x10a)](handleError(_0x3ae33d,null));},exports['accept']=function(_0x1815aa,_0x3ec203){const _0x212f93=a497_0x36e9c5,_0x2ae4b5={'channel':_0x212f93(0x80)};return _0x1815aa[_0x212f93(0x95)]['id']&&delete _0x1815aa[_0x212f93(0x95)]['id'],_0x1815aa['body'][_0x212f93(0x102)]=!![],_0x1815aa[_0x212f93(0x95)]['readAt']=moment()[_0x212f93(0xe0)]('YYYY-MM-DD\x20HH:mm:ss'),_0x1815aa['body'][_0x212f93(0xe9)]=_0x1815aa['body'][_0x212f93(0xe9)]||_0x1815aa[_0x212f93(0xe6)]['id'],db[_0x212f93(0xff)][_0x212f93(0xaf)]({'where':{'id':_0x1815aa[_0x212f93(0xeb)]['id'],'UserId':null},'include':[{'model':db[_0x212f93(0xfc)],'as':'Contact'}]})[_0x212f93(0xa0)](handleEntityNotFound(_0x3ec203,null))[_0x212f93(0xa0)](saveUpdates(_0x1815aa[_0x212f93(0x95)],null))['then'](function(_0x410e24){const _0x290ed3=_0x212f93;if(_0x410e24)return _0x2ae4b5['message']=_0x410e24['get']({'plain':!![]}),db[_0x290ed3(0xd9)][_0x290ed3(0xaf)]({'where':{'id':_0x410e24['MailInteractionId']}});return null;})[_0x212f93(0xa0)](handleEntityNotFound(_0x3ec203,null))[_0x212f93(0xa0)](function(_0x34bcb6){const _0x406a0f=_0x212f93;if(_0x34bcb6)return _0x34bcb6[_0x406a0f(0xbb)]({'UserId':_0x1815aa[_0x406a0f(0x95)]['UserId'],'read1stAt':_[_0x406a0f(0xc9)](_0x34bcb6[_0x406a0f(0xb2)])?moment()['format']('YYYY-MM-DD\x20HH:mm:ss'):undefined});return null;})[_0x212f93(0xa0)](function(_0x26e3c3){const _0x442708=_0x212f93;if(_0x26e3c3)return _0x2ae4b5['interaction']=_0x26e3c3[_0x442708(0xf7)]({'plain':!![]}),interaction_log[_0x442708(0xb7)](_0x442708(0x8c),_0x1815aa['user']['id'],_0x1815aa[_0x442708(0xe6)][_0x442708(0xdb)],_0x1815aa[_0x442708(0xe6)]['role'],_0x2ae4b5[_0x442708(0xc7)]['id'],_0x1815aa[_0x442708(0x95)]?JSON['stringify'](_0x1815aa['body']):_0x442708(0x10e)),respondWithRpcPromise(_0x442708(0xd5),_0x442708(0xe2),_0x2ae4b5);return null;})[_0x212f93(0xa0)](function(_0x3ec086){const _0x8aaaa2=_0x212f93;if(_0x3ec086){if(_0x1815aa[_0x8aaaa2(0x95)][_0x8aaaa2(0xe3)])return _0x2ae4b5[_0x8aaaa2(0x7e)][_0x8aaaa2(0xb5)]=util['format'](_0x8aaaa2(0x90),_0x1815aa['user'][_0x8aaaa2(0xdb)]),_0x2ae4b5[_0x8aaaa2(0x7e)]['channel']=_0x2ae4b5['channel'],_0x2ae4b5[_0x8aaaa2(0x7e)][_0x8aaaa2(0xcf)]=_0x8aaaa2(0x84),respondWithRpcPromise(_0x8aaaa2(0xf8),_0x8aaaa2(0xf8),{'event':_0x8aaaa2(0xdf),'message':_0x2ae4b5[_0x8aaaa2(0x7e)]},client9002)[_0x8aaaa2(0xa0)](function(){return _0x2ae4b5;});return _0x2ae4b5;}return null;})[_0x212f93(0xa0)](respondWithResult(_0x3ec203,null))[_0x212f93(0x10a)](handleError(_0x3ec203,null));},exports[a497_0x36e9c5(0xf2)]=function(_0x2cbcfd,_0x5b79ec){const _0x1ac91c=a497_0x36e9c5,_0x53c9a7={'agent':{},'channel':_0x1ac91c(0x80)};return _0x2cbcfd[_0x1ac91c(0x95)]['id']&&delete _0x2cbcfd[_0x1ac91c(0x95)]['id'],_0x2cbcfd['body'][_0x1ac91c(0xe9)]=_0x2cbcfd[_0x1ac91c(0x95)][_0x1ac91c(0xe9)]||_0x2cbcfd[_0x1ac91c(0xe6)]['id'],_0x53c9a7[_0x1ac91c(0xc2)]['id']=_0x2cbcfd[_0x1ac91c(0x95)]['UserId'],db[_0x1ac91c(0xff)]['findOne']({'where':{'id':_0x2cbcfd[_0x1ac91c(0xeb)]['id'],'UserId':null}})[_0x1ac91c(0xa0)](handleEntityNotFound(_0x5b79ec,null))[_0x1ac91c(0xa0)](function(_0x3cef90){const _0x34eadf=_0x1ac91c;if(_0x3cef90)return _0x53c9a7[_0x34eadf(0x7e)]=_0x3cef90['get']({'plain':!![]}),db['MailInteraction'][_0x34eadf(0xaf)]({'where':{'id':_0x3cef90['MailInteractionId']}});return null;})['then'](handleEntityNotFound(_0x5b79ec,null))['then'](function(_0x29810f){const _0x5144c7=_0x1ac91c;if(_0x29810f)return _0x53c9a7['interaction']=_0x29810f[_0x5144c7(0xf7)]({'plain':!![]}),interaction_log[_0x5144c7(0xb7)](_0x5144c7(0xd2),_0x2cbcfd[_0x5144c7(0xe6)]['id'],_0x2cbcfd['user'][_0x5144c7(0xdb)],_0x2cbcfd[_0x5144c7(0xe6)][_0x5144c7(0x9d)],_0x53c9a7[_0x5144c7(0xc7)]['id'],_0x2cbcfd['body']?JSON['stringify'](_0x2cbcfd[_0x5144c7(0x95)]):_0x5144c7(0x10e)),respondWithRpcPromise('RejectMessage',_0x5144c7(0x87),_0x53c9a7);return null;})[_0x1ac91c(0xa0)](function(_0x2aa582){const _0x1a811c=_0x1ac91c;if(_0x2aa582)return _0x2aa582[_0x1a811c(0x7e)]['interface']=util[_0x1a811c(0xe0)](_0x1a811c(0x90),_0x2cbcfd[_0x1a811c(0xe6)][_0x1a811c(0xdb)]),_0x2aa582[_0x1a811c(0x7e)][_0x1a811c(0xe7)]=_0x53c9a7[_0x1a811c(0xe7)],_0x2aa582['message'][_0x1a811c(0xcf)]=_0x1a811c(0xf2),respondWithRpcPromise('EventManager',_0x1a811c(0xf8),{'event':'rejectmessage','message':_0x2aa582['message']},client9002),_0x53c9a7;return null;})[_0x1ac91c(0xa0)](respondWithResult(_0x5b79ec,null))[_0x1ac91c(0x10a)](handleError(_0x5b79ec,null));},exports[a497_0x36e9c5(0xc3)]=function(_0x4288d5,_0x57b015){const _0x31d797=a497_0x36e9c5,_0x1f94d0=moment()[_0x31d797(0xf1)]()['toString'](),_0x1fa3c2=path[_0x31d797(0x109)](config[_0x31d797(0xa8)],_0x31d797(0x96),_0x31d797(0xb6)),_0x1245b1=path[_0x31d797(0x109)](config[_0x31d797(0xa8)],_0x31d797(0xea),_0x31d797(0x96),'attachments'),_0x368be6=util[_0x31d797(0xe0)]('message-%s.eml',_0x1f94d0);return db['MailMessage'][_0x31d797(0xaf)]({'where':{'id':_0x4288d5['params']['id']},'attributes':['id',_0x31d797(0x95),_0x31d797(0x9a),'to','cc',_0x31d797(0xf6),'subject',_0x31d797(0x8f)],'include':_0x4288d5[_0x31d797(0xde)]['attachments']?[{'model':db[_0x31d797(0x10d)],'as':_0x31d797(0x88)}]:undefined})[_0x31d797(0xa0)](handleEntityNotFound(_0x57b015,null))[_0x31d797(0xa0)](function(_0x48a5f4){const _0x27f11f=_0x31d797;if(_0x48a5f4){const _0x1c651b=_0x48a5f4,_0x193636={'from':_0x1c651b['from'],'to':_0x1c651b['to'],'subject':_0x1c651b[_0x27f11f(0xdc)],'html':_0x1c651b[_0x27f11f(0x95)],'headers':{'Date':moment(_0x1c651b['createdAt'])[_0x27f11f(0xe0)](_0x27f11f(0xb3))},'attachments':[]};return _0x48a5f4['cc']&&(_0x193636['headers']['Cc']=_0x48a5f4['cc']),_0x48a5f4[_0x27f11f(0xf6)]&&(_0x193636[_0x27f11f(0xbe)][_0x27f11f(0x82)]=_0x48a5f4['bcc']),new Promise(function(_0x25126d,_0x424dff){const _0x2c8af1=_0x27f11f;if(_0x48a5f4[_0x2c8af1(0x88)])for(let _0x59185d=0x0;_0x59185d<_0x48a5f4[_0x2c8af1(0x88)][_0x2c8af1(0xa6)];_0x59185d++){const _0x444eb6=_0x48a5f4[_0x2c8af1(0x88)][_0x59185d],_0x3f1056=path[_0x2c8af1(0x109)](_0x1245b1,_0x444eb6['basename']);fs[_0x2c8af1(0xb4)](_0x3f1056)&&_0x193636[_0x2c8af1(0x9f)][_0x2c8af1(0xdd)]({'name':_0x444eb6['name'],'contentType':_0x444eb6[_0x2c8af1(0xba)],'data':fs['readFileSync'](_0x3f1056)});}emlformat[_0x2c8af1(0xa9)](_0x193636,function(_0x5af901,_0x462d23){const _0x1bc86a=_0x2c8af1;if(_0x5af901)return _0x424dff(_0x5af901);return fs['writeFileSync'](path[_0x1bc86a(0x109)](_0x1fa3c2,_0x368be6),_0x462d23),_0x25126d(_0x462d23);});});}})['then'](function(_0x561326){const _0xc98eaf=_0x31d797;if(_0x561326)return _0x57b015[_0xc98eaf(0xc3)](path[_0xc98eaf(0x109)](_0x1fa3c2,_0x368be6),_0x368be6,function(_0x2b715e){const _0x1f6800=_0xc98eaf;_0x2b715e?console[_0x1f6800(0x100)](_0x1f6800(0x97),_0x2b715e):fs[_0x1f6800(0xac)](path[_0x1f6800(0x109)](_0x1fa3c2,_0x368be6));});})['catch'](handleError(_0x57b015,null));}; \ No newline at end of file +const a497_0x29ff=['count','end','destroy','List','intersection','rawAttributes','Attachment','unix','Content-Range','limit','pick','CmList','ListId','model','json','existsSync','includeAll','headers','like','offset','AcceptMessage','log','error','updatedAt','request\x20sent','root','code','result','MailAccountId','[MAILMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','SIP/%s','split','mail-interactions','accept','get','type','keys','include','merge','sendStatus','UserId','read','options','isNil','eml-format','read1stAt','fields','build','mail','rejectMessage','writeFileSync','MailAccount','update','MailInteractionId','download','List\x20not\x20found','rows','./mailMessage.socket','findOne','secure','pass','rejectmessage','index','err','auth','../../components/parsers/qs','service','name','YYYY-MM-DD\x20HH:mm:ss','Contacts','out','attachments','server','Smtp','params','tmp','nolimit','fieldName','undefined','subject','RejectMessage','body','server/files/attachments','CmContact','send','interaction','acceptmessage','sort','http','role','../../config/logger','request','stringify','MailMessage,\x20%s,\x20%s,\x20%s','key','basename','then','create','authentication','MailInteraction','DESC','push','sendMail','EventManager','event','join','createdAt','MailMessage','host','filters','MailMessage,\x20%s,\x20%s','order','attributes','manual','client','message','query','direction','lodash','jayson/promise','readFileSync','channel','length','files','describe','map','ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ','SendMail','Attachments','info','messageId','where','interface','../../mysqldb','register','user','[MAILMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','catch','api','bcc','MailServerOut','null','format'];(function(_0x126bfc,_0x54d9c7){const _0x29fffb=function(_0x5f04d){while(--_0x5f04d){_0x126bfc['push'](_0x126bfc['shift']());}};_0x29fffb(++_0x54d9c7);}(a497_0x29ff,0x16f));const a497_0x5f04=function(_0x126bfc,_0x54d9c7){_0x126bfc=_0x126bfc-0x126;let _0x29fffb=a497_0x29ff[_0x126bfc];return _0x29fffb;};const a497_0x4e382a=a497_0x5f04;'use strict';const emlformat=require(a497_0x4e382a(0x190)),moment=require('moment'),util=require('util'),path=require('path'),fs=require('fs'),_=require(a497_0x4e382a(0x14b)),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(a497_0x4e382a(0x1a5)),logger=require('../../config/logger')(a497_0x4e382a(0x15f)),config=require('../../config/environment'),interaction_log=require(a497_0x4e382a(0x12f))(a497_0x4e382a(0x184)),{db}=require(a497_0x4e382a(0x15a)),{Op}=require('sequelize');require(a497_0x4e382a(0x19d))[a497_0x4e382a(0x15b)](socket);const jayson=require(a497_0x4e382a(0x14c)),client=jayson[a497_0x4e382a(0x147)][a497_0x4e382a(0x12d)]({'port':0x232c}),client9003=jayson[a497_0x4e382a(0x147)][a497_0x4e382a(0x12d)]({'port':0x232b}),client9002=jayson[a497_0x4e382a(0x147)][a497_0x4e382a(0x12d)]({'port':0x232a});function respondWithRpcPromise(_0x41306f,_0x394691,_0xc88042,_0x2a9d5e){return new Promise(function(_0x571b33,_0x20257d){const _0x135dcc=a497_0x5f04,_0x2c0e08=_0x2a9d5e||client;return _0x2c0e08[_0x135dcc(0x130)](_0x41306f,_0xc88042)[_0x135dcc(0x135)](function(_0x434e65){const _0x9ced2d=_0x135dcc;logger[_0x9ced2d(0x156)](_0x9ced2d(0x143),_0x394691,'request\x20sent'),logger['debug'](_0x9ced2d(0x132),_0x394691,_0x9ced2d(0x17c),JSON[_0x9ced2d(0x131)](_0x434e65));if(_0x434e65[_0x9ced2d(0x17a)]){if(_0x434e65[_0x9ced2d(0x17a)][_0x9ced2d(0x17e)]===0x1f4)return logger[_0x9ced2d(0x17a)](_0x9ced2d(0x143),_0x394691,_0x434e65['error'][_0x9ced2d(0x148)]),_0x20257d(_0x434e65[_0x9ced2d(0x17a)][_0x9ced2d(0x148)]);return logger[_0x9ced2d(0x17a)](_0x9ced2d(0x143),_0x394691,_0x434e65[_0x9ced2d(0x17a)]['message']),_0x571b33(_0x434e65[_0x9ced2d(0x17a)][_0x9ced2d(0x148)]);}else logger[_0x9ced2d(0x156)]('MailMessage,\x20%s,\x20%s',_0x394691,_0x9ced2d(0x17c)),_0x571b33(_0x434e65[_0x9ced2d(0x17f)][_0x9ced2d(0x148)]);})[_0x135dcc(0x15e)](function(_0x1c9299){const _0x1c8cdc=_0x135dcc;logger[_0x1c8cdc(0x17a)]('MailMessage,\x20%s,\x20%s',_0x394691,_0x1c9299),_0x20257d(_0x1c9299);});});}function respondWithResult(_0x1b4b6b,_0x1f6cfc){return _0x1f6cfc=_0x1f6cfc||0xc8,function(_0x5e86a6){const _0x3cb82b=a497_0x5f04;if(_0x5e86a6)return _0x1b4b6b['status'](_0x1f6cfc)[_0x3cb82b(0x172)](_0x5e86a6);};}function respondWithFilteredResult(_0x281db8,_0x3ae2c2){return function(_0x145c9f){const _0x262e9e=a497_0x5f04;if(_0x145c9f){const _0x50a4ce=_0x145c9f[_0x262e9e(0x164)],_0xd5739a=_0x3ae2c2['offset'];let _0x5ab61e=_0x3ae2c2['offset']+_0x3ae2c2['limit'],_0x260ade;return _0x5ab61e>=_0x50a4ce?(_0x5ab61e=_0x50a4ce,_0x260ade=0xc8):_0x260ade=0xce,_0x281db8['status'](_0x260ade),_0x281db8['set'](_0x262e9e(0x16c),_0xd5739a+'-'+_0x5ab61e+'/'+_0x50a4ce)[_0x262e9e(0x172)](_0x145c9f);}return null;};}function saveUpdates(_0x146fb2){return function(_0x3fc4b3){const _0x3118a5=a497_0x5f04;if(_0x3fc4b3)return _0x3fc4b3[_0x3118a5(0x198)](_0x146fb2)[_0x3118a5(0x135)](function(_0x1062f2){return _0x1062f2;});return null;};}function removeEntity(_0x47b2ca){return function(_0x1b8ee7){const _0xd84831=a497_0x5f04;if(_0x1b8ee7)return _0x1b8ee7[_0xd84831(0x166)]()[_0xd84831(0x135)](function(){const _0x905bc0=_0xd84831;_0x47b2ca['status'](0xcc)[_0x905bc0(0x165)]();});};}function handleEntityNotFound(_0x322f6a){return function(_0x1df15f){const _0x336cc8=a497_0x5f04;return!_0x1df15f&&_0x322f6a[_0x336cc8(0x18b)](0x194),_0x1df15f;};}function handleError(_0xacda1,_0x407d08){return _0x407d08=_0x407d08||0x1f4,function(_0xd4e05a){const _0x11d2f0=a497_0x5f04;logger['error'](_0xd4e05a['stack']),_0xd4e05a[_0x11d2f0(0x1a7)]&&delete _0xd4e05a[_0x11d2f0(0x1a7)],_0xacda1['status'](_0x407d08)[_0x11d2f0(0x129)](_0xd4e05a);};}exports[a497_0x4e382a(0x1a2)]=function(_0xcd559d,_0x11abee){const _0xc0390c=a497_0x4e382a;let _0x329b65={};const _0x6fc4f9={},_0x350503={'count':0x0,'rows':[]},_0x15bdd2=_['map'](db['MailMessage']['rawAttributes'],function(_0x5d0804){const _0x2a0c4e=a497_0x5f04;return{'name':_0x5d0804[_0x2a0c4e(0x1b1)],'type':_0x5d0804['type'][_0x2a0c4e(0x133)]};});_0x6fc4f9[_0xc0390c(0x171)]=_['map'](_0x15bdd2,_0xc0390c(0x1a7)),_0x6fc4f9['query']=_['keys'](_0xcd559d[_0xc0390c(0x149)]),_0x6fc4f9[_0xc0390c(0x142)]=_[_0xc0390c(0x168)](_0x6fc4f9[_0xc0390c(0x171)],_0x6fc4f9[_0xc0390c(0x149)]),_0x329b65[_0xc0390c(0x145)]=_[_0xc0390c(0x168)](_0x6fc4f9[_0xc0390c(0x171)],qs['fields'](_0xcd559d[_0xc0390c(0x149)]['fields'])),_0x329b65[_0xc0390c(0x145)]=_0x329b65[_0xc0390c(0x145)][_0xc0390c(0x14f)]?_0x329b65[_0xc0390c(0x145)]:_0x6fc4f9[_0xc0390c(0x171)];typeof _0xcd559d[_0xc0390c(0x149)][_0xc0390c(0x1b0)]===_0xc0390c(0x1b2)&&(_0x329b65[_0xc0390c(0x16d)]=qs[_0xc0390c(0x16d)](_0xcd559d[_0xc0390c(0x149)][_0xc0390c(0x16d)]),_0x329b65[_0xc0390c(0x177)]=qs[_0xc0390c(0x177)](_0xcd559d['query']['offset']));_0x329b65[_0xc0390c(0x144)]=qs[_0xc0390c(0x12c)](_0xcd559d['query'][_0xc0390c(0x12c)]),_0x329b65[_0xc0390c(0x158)]=qs[_0xc0390c(0x142)](_[_0xc0390c(0x16e)](_0xcd559d[_0xc0390c(0x149)],_0x6fc4f9[_0xc0390c(0x142)]),_0x15bdd2);_0xcd559d[_0xc0390c(0x149)]['filter']&&(_0x329b65[_0xc0390c(0x158)]=_['merge'](_0x329b65['where'],{[Op['or']]:_[_0xc0390c(0x152)](_0x15bdd2,function(_0x52f31c){const _0x1381d4=_0xc0390c;if(_0x52f31c[_0x1381d4(0x187)]!=='VIRTUAL'){const _0x36260b={};return _0x36260b[_0x52f31c[_0x1381d4(0x1a7)]]={[Op[_0x1381d4(0x176)]]:'%'+_0xcd559d[_0x1381d4(0x149)]['filter']+'%'},_0x36260b;}})}));_0x329b65=_['merge']({},_0x329b65,_0xcd559d[_0xc0390c(0x18e)]);const _0x74d43e={'where':_0x329b65['where']};return db[_0xc0390c(0x140)][_0xc0390c(0x164)](_0x74d43e)[_0xc0390c(0x135)](function(_0x1848ba){const _0xe57724=_0xc0390c;return _0x350503[_0xe57724(0x164)]=_0x1848ba,_0xcd559d[_0xe57724(0x149)][_0xe57724(0x174)]&&(_0x329b65[_0xe57724(0x189)]=[{'all':!![]}]),db[_0xe57724(0x140)]['findAll'](_0x329b65);})[_0xc0390c(0x135)](function(_0x31986e){const _0x5b652d=_0xc0390c;return _0x350503[_0x5b652d(0x19c)]=_0x31986e,_0x350503;})[_0xc0390c(0x135)](respondWithFilteredResult(_0x11abee,_0x329b65))[_0xc0390c(0x15e)](handleError(_0x11abee,null));},exports['show']=function(_0x5e2624,_0x4fadcb){const _0xf59b28=a497_0x4e382a;let _0x3c4f4a={'raw':!![],'where':{'id':_0x5e2624[_0xf59b28(0x1ae)]['id']}};const _0x26e070={};return _0x26e070[_0xf59b28(0x171)]=_[_0xf59b28(0x188)](db[_0xf59b28(0x140)][_0xf59b28(0x169)]),_0x26e070[_0xf59b28(0x149)]=_[_0xf59b28(0x188)](_0x5e2624[_0xf59b28(0x149)]),_0x26e070['filters']=_[_0xf59b28(0x168)](_0x26e070['model'],_0x26e070[_0xf59b28(0x149)]),_0x3c4f4a[_0xf59b28(0x145)]=_['intersection'](_0x26e070['model'],qs[_0xf59b28(0x192)](_0x5e2624[_0xf59b28(0x149)][_0xf59b28(0x192)])),_0x3c4f4a[_0xf59b28(0x145)]=_0x3c4f4a[_0xf59b28(0x145)]['length']?_0x3c4f4a[_0xf59b28(0x145)]:_0x26e070[_0xf59b28(0x171)],_0x5e2624[_0xf59b28(0x149)]['includeAll']&&(_0x3c4f4a[_0xf59b28(0x189)]=[{'all':!![]}]),_0x3c4f4a=_[_0xf59b28(0x18a)]({},_0x3c4f4a,_0x5e2624[_0xf59b28(0x18e)]),db[_0xf59b28(0x140)]['findOne'](_0x3c4f4a)[_0xf59b28(0x135)](handleEntityNotFound(_0x4fadcb,null))[_0xf59b28(0x135)](respondWithResult(_0x4fadcb,null))[_0xf59b28(0x15e)](handleError(_0x4fadcb,null));},exports[a497_0x4e382a(0x198)]=function(_0x18270f,_0x1dbe96){const _0x87cdd8=a497_0x4e382a;return _0x18270f[_0x87cdd8(0x126)]['id']&&delete _0x18270f[_0x87cdd8(0x126)]['id'],db[_0x87cdd8(0x140)][_0x87cdd8(0x19e)]({'where':{'id':_0x18270f[_0x87cdd8(0x1ae)]['id']}})[_0x87cdd8(0x135)](handleEntityNotFound(_0x1dbe96,null))[_0x87cdd8(0x135)](saveUpdates(_0x18270f['body'],null))[_0x87cdd8(0x135)](respondWithResult(_0x1dbe96,null))[_0x87cdd8(0x15e)](handleError(_0x1dbe96,null));},exports[a497_0x4e382a(0x166)]=function(_0x565386,_0x17891f){const _0x270635=a497_0x4e382a;return db[_0x270635(0x140)]['findOne']({'where':{'id':_0x565386['params']['id']}})[_0x270635(0x135)](handleEntityNotFound(_0x17891f,null))[_0x270635(0x135)](removeEntity(_0x17891f,null))['catch'](handleError(_0x17891f,null));},exports[a497_0x4e382a(0x151)]=function(_0x203530,_0x453d1d){const _0x2d1bb5=a497_0x4e382a;return db['MailMessage'][_0x2d1bb5(0x151)]()[_0x2d1bb5(0x135)](respondWithResult(_0x453d1d,null))[_0x2d1bb5(0x15e)](handleError(_0x453d1d,null));},exports[a497_0x4e382a(0x136)]=function(_0x13c974,_0x46f663){const _0x3e04ba=a497_0x4e382a;return db[_0x3e04ba(0x140)][_0x3e04ba(0x136)](_0x13c974[_0x3e04ba(0x126)])['then'](function(_0x18d4c4){const _0x53e98a=_0x3e04ba;if(_0x18d4c4){if(_0x18d4c4[_0x53e98a(0x14a)]===_0x53e98a(0x1aa)&&!_0x18d4c4['secret']){let _0x39b6f2,_0x3941fa,_0x305b1c;return _0x13c974[_0x53e98a(0x126)]['to']&&(_0x3941fa=_0x13c974[_0x53e98a(0x126)]['to'][_0x53e98a(0x183)](',')[0x0]),db[_0x53e98a(0x197)][_0x53e98a(0x19e)]({'where':{'id':_0x18d4c4[_0x53e98a(0x180)]},'include':[{'model':db[_0x53e98a(0x16f)],'as':_0x53e98a(0x167),'include':[{'model':db[_0x53e98a(0x128)],'as':_0x53e98a(0x1a9),'where':{'email':_0x3941fa},'limit':0x1,'order':[[_0x53e98a(0x17b),_0x53e98a(0x139)]]}]},{'model':db[_0x53e98a(0x161)],'as':_0x53e98a(0x1ad),'raw':!![]}]})[_0x53e98a(0x135)](function(_0x715c1a){const _0x429050=_0x53e98a;_0x39b6f2=_0x715c1a;if(_0x39b6f2&&_0x39b6f2['Smtp']){const _0x527e84={'tls':{'rejectUnauthorized':![]}};_['isNil'](_0x39b6f2['Smtp']['service'])?(_0x527e84[_0x429050(0x141)]=_0x39b6f2[_0x429050(0x1ad)][_0x429050(0x141)],_0x527e84['port']=_0x39b6f2[_0x429050(0x1ad)]['port'],_0x527e84[_0x429050(0x19f)]=_0x39b6f2[_0x429050(0x1ad)][_0x429050(0x19f)],_0x39b6f2[_0x429050(0x1ad)][_0x429050(0x137)]&&(_0x527e84[_0x429050(0x1a4)]={'user':_0x39b6f2['Smtp'][_0x429050(0x15c)],'pass':_0x39b6f2[_0x429050(0x1ad)][_0x429050(0x1a0)]})):(_0x527e84[_0x429050(0x1a6)]=_0x39b6f2[_0x429050(0x1ad)][_0x429050(0x1a6)],_0x527e84[_0x429050(0x1a4)]={'user':_0x39b6f2[_0x429050(0x1ad)][_0x429050(0x15c)],'pass':_0x39b6f2['Smtp'][_0x429050(0x1a0)]},_0x527e84[_0x429050(0x19f)]=_0x39b6f2['Smtp'][_0x429050(0x19f)]);if(_0x13c974[_0x429050(0x126)][_0x429050(0x1ab)]&&_0x13c974[_0x429050(0x126)][_0x429050(0x1ab)][_0x429050(0x14f)])for(let _0x29563d=0x0;_0x29563d<_0x13c974[_0x429050(0x126)][_0x429050(0x1ab)]['length'];_0x29563d+=0x1){_0x13c974[_0x429050(0x126)][_0x429050(0x1ab)][_0x29563d]={'filename':_0x13c974[_0x429050(0x126)][_0x429050(0x1ab)][_0x29563d][_0x429050(0x1a7)],'path':path['join'](config[_0x429050(0x17d)],_0x429050(0x127),_0x13c974[_0x429050(0x126)][_0x429050(0x1ab)][_0x29563d][_0x429050(0x134)])};}_0x305b1c={'account':_0x527e84,'message':_0x13c974[_0x429050(0x126)]};return;}})[_0x53e98a(0x135)](function(){const _0x1208d8=_0x53e98a;if(_0x39b6f2[_0x1208d8(0x167)])return _0x39b6f2[_0x1208d8(0x167)][_0x1208d8(0x1a9)][_0x1208d8(0x14f)]?_0x39b6f2[_0x1208d8(0x167)][_0x1208d8(0x1a9)][0x0]:db[_0x1208d8(0x128)][_0x1208d8(0x136)](_['defaults'](_0x13c974['body'],{'firstName':_0x13c974[_0x1208d8(0x126)]['to'],'email':_0x13c974['body']['to'],'phone':_0x13c974[_0x1208d8(0x126)]['to'],'ListId':_0x39b6f2[_0x1208d8(0x170)]}));else throw new Error(_0x1208d8(0x19b));})[_0x53e98a(0x135)](function(){const _0x4944fc=_0x53e98a;if(_0x305b1c)return respondWithRpcPromise(_0x4944fc(0x154),_0x4944fc(0x13b),_0x305b1c,client9003)[_0x4944fc(0x135)](function(_0x42dbd3){const _0x218a51=_0x4944fc;return _0x18d4c4['update']({'read':!![],'messageId':_0x42dbd3[_0x218a51(0x157)],'sentAt':moment()['format'](_0x218a51(0x1a8))});})[_0x4944fc(0x15e)](function(_0x5a182d){const _0x575573=_0x4944fc;return logger[_0x575573(0x17a)]('%s',JSON[_0x575573(0x131)](_0x5a182d)),_0x18d4c4;});return _0x18d4c4;});}return _0x18d4c4;}})['then'](respondWithResult(_0x46f663,0xc9))['catch'](handleError(_0x46f663,null));},exports['accept']=function(_0x50a4ca,_0x41801b){const _0x47096=a497_0x4e382a,_0x48ab50={'channel':_0x47096(0x194)};return _0x50a4ca['body']['id']&&delete _0x50a4ca[_0x47096(0x126)]['id'],_0x50a4ca[_0x47096(0x126)][_0x47096(0x18d)]=!![],_0x50a4ca[_0x47096(0x126)]['readAt']=moment()['format'](_0x47096(0x1a8)),_0x50a4ca[_0x47096(0x126)][_0x47096(0x18c)]=_0x50a4ca[_0x47096(0x126)][_0x47096(0x18c)]||_0x50a4ca[_0x47096(0x15c)]['id'],db['MailMessage'][_0x47096(0x19e)]({'where':{'id':_0x50a4ca[_0x47096(0x1ae)]['id'],'UserId':null},'include':[{'model':db['CmContact'],'as':'Contact'}]})[_0x47096(0x135)](handleEntityNotFound(_0x41801b,null))[_0x47096(0x135)](saveUpdates(_0x50a4ca[_0x47096(0x126)],null))['then'](function(_0x28b3d6){const _0x1ebdbc=_0x47096;if(_0x28b3d6)return _0x48ab50[_0x1ebdbc(0x148)]=_0x28b3d6['get']({'plain':!![]}),db[_0x1ebdbc(0x138)][_0x1ebdbc(0x19e)]({'where':{'id':_0x28b3d6[_0x1ebdbc(0x199)]}});return null;})[_0x47096(0x135)](handleEntityNotFound(_0x41801b,null))['then'](function(_0x480054){const _0xfbd651=_0x47096;if(_0x480054)return _0x480054[_0xfbd651(0x198)]({'UserId':_0x50a4ca['body'][_0xfbd651(0x18c)],'read1stAt':_[_0xfbd651(0x18f)](_0x480054[_0xfbd651(0x191)])?moment()[_0xfbd651(0x163)](_0xfbd651(0x1a8)):undefined});return null;})[_0x47096(0x135)](function(_0x54ce0b){const _0xff9d36=_0x47096;if(_0x54ce0b)return _0x48ab50[_0xff9d36(0x12a)]=_0x54ce0b['get']({'plain':!![]}),interaction_log[_0xff9d36(0x156)](_0xff9d36(0x181),_0x50a4ca[_0xff9d36(0x15c)]['id'],_0x50a4ca['user']['name'],_0x50a4ca[_0xff9d36(0x15c)][_0xff9d36(0x12e)],_0x48ab50['interaction']['id'],_0x50a4ca['body']?JSON['stringify'](_0x50a4ca['body']):_0xff9d36(0x162)),respondWithRpcPromise(_0xff9d36(0x178),'acceptMessage',_0x48ab50);return null;})[_0x47096(0x135)](function(_0x13e8ab){const _0x4035cc=_0x47096;if(_0x13e8ab){if(_0x50a4ca['body'][_0x4035cc(0x146)])return _0x48ab50[_0x4035cc(0x148)][_0x4035cc(0x159)]=util[_0x4035cc(0x163)](_0x4035cc(0x182),_0x50a4ca['user'][_0x4035cc(0x1a7)]),_0x48ab50['message'][_0x4035cc(0x14e)]=_0x48ab50[_0x4035cc(0x14e)],_0x48ab50[_0x4035cc(0x148)][_0x4035cc(0x13d)]=_0x4035cc(0x185),respondWithRpcPromise(_0x4035cc(0x13c),_0x4035cc(0x13c),{'event':_0x4035cc(0x12b),'message':_0x48ab50[_0x4035cc(0x148)]},client9002)[_0x4035cc(0x135)](function(){return _0x48ab50;});return _0x48ab50;}return null;})[_0x47096(0x135)](respondWithResult(_0x41801b,null))[_0x47096(0x15e)](handleError(_0x41801b,null));},exports['reject']=function(_0x5c197d,_0x59362a){const _0x409185=a497_0x4e382a,_0x15b239={'agent':{},'channel':_0x409185(0x194)};return _0x5c197d['body']['id']&&delete _0x5c197d[_0x409185(0x126)]['id'],_0x5c197d['body'][_0x409185(0x18c)]=_0x5c197d['body']['UserId']||_0x5c197d['user']['id'],_0x15b239['agent']['id']=_0x5c197d[_0x409185(0x126)][_0x409185(0x18c)],db[_0x409185(0x140)][_0x409185(0x19e)]({'where':{'id':_0x5c197d['params']['id'],'UserId':null}})[_0x409185(0x135)](handleEntityNotFound(_0x59362a,null))[_0x409185(0x135)](function(_0x1e77f7){const _0x5960b7=_0x409185;if(_0x1e77f7)return _0x15b239[_0x5960b7(0x148)]=_0x1e77f7[_0x5960b7(0x186)]({'plain':!![]}),db['MailInteraction']['findOne']({'where':{'id':_0x1e77f7['MailInteractionId']}});return null;})[_0x409185(0x135)](handleEntityNotFound(_0x59362a,null))[_0x409185(0x135)](function(_0x205dc4){const _0x203619=_0x409185;if(_0x205dc4)return _0x15b239[_0x203619(0x12a)]=_0x205dc4[_0x203619(0x186)]({'plain':!![]}),interaction_log[_0x203619(0x156)](_0x203619(0x15d),_0x5c197d['user']['id'],_0x5c197d[_0x203619(0x15c)]['name'],_0x5c197d['user'][_0x203619(0x12e)],_0x15b239[_0x203619(0x12a)]['id'],_0x5c197d['body']?JSON[_0x203619(0x131)](_0x5c197d[_0x203619(0x126)]):'null'),respondWithRpcPromise(_0x203619(0x1b4),_0x203619(0x195),_0x15b239);return null;})[_0x409185(0x135)](function(_0x3238a6){const _0x33b600=_0x409185;if(_0x3238a6)return _0x3238a6[_0x33b600(0x148)][_0x33b600(0x159)]=util[_0x33b600(0x163)](_0x33b600(0x182),_0x5c197d['user']['name']),_0x3238a6[_0x33b600(0x148)][_0x33b600(0x14e)]=_0x15b239['channel'],_0x3238a6[_0x33b600(0x148)]['event']='reject',respondWithRpcPromise(_0x33b600(0x13c),_0x33b600(0x13c),{'event':_0x33b600(0x1a1),'message':_0x3238a6[_0x33b600(0x148)]},client9002),_0x15b239;return null;})[_0x409185(0x135)](respondWithResult(_0x59362a,null))['catch'](handleError(_0x59362a,null));},exports['download']=function(_0x185bd6,_0x587cc4){const _0x4fcd29=a497_0x4e382a,_0x352185=moment()[_0x4fcd29(0x16b)]()['toString'](),_0x2c32ea=path[_0x4fcd29(0x13e)](config[_0x4fcd29(0x17d)],_0x4fcd29(0x150),_0x4fcd29(0x1af)),_0x506ae0=path[_0x4fcd29(0x13e)](config[_0x4fcd29(0x17d)],_0x4fcd29(0x1ac),_0x4fcd29(0x150),_0x4fcd29(0x1ab)),_0x26c24d=util['format']('message-%s.eml',_0x352185);return db[_0x4fcd29(0x140)][_0x4fcd29(0x19e)]({'where':{'id':_0x185bd6[_0x4fcd29(0x1ae)]['id']},'attributes':['id','body','from','to','cc',_0x4fcd29(0x160),_0x4fcd29(0x1b3),_0x4fcd29(0x13f)],'include':_0x185bd6[_0x4fcd29(0x149)][_0x4fcd29(0x1ab)]?[{'model':db[_0x4fcd29(0x16a)],'as':_0x4fcd29(0x155)}]:undefined})[_0x4fcd29(0x135)](handleEntityNotFound(_0x587cc4,null))[_0x4fcd29(0x135)](function(_0x381cd1){const _0x9aa3bc=_0x4fcd29;if(_0x381cd1){const _0x52db77=_0x381cd1,_0x45e75f={'from':_0x52db77['from'],'to':_0x52db77['to'],'subject':_0x52db77['subject'],'html':_0x52db77['body'],'headers':{'Date':moment(_0x52db77[_0x9aa3bc(0x13f)])[_0x9aa3bc(0x163)](_0x9aa3bc(0x153))},'attachments':[]};return _0x381cd1['cc']&&(_0x45e75f[_0x9aa3bc(0x175)]['Cc']=_0x381cd1['cc']),_0x381cd1[_0x9aa3bc(0x160)]&&(_0x45e75f['headers']['Bcc']=_0x381cd1[_0x9aa3bc(0x160)]),new Promise(function(_0x571f2d,_0x4c040f){const _0x12987f=_0x9aa3bc;if(_0x381cd1[_0x12987f(0x155)])for(let _0xa226d2=0x0;_0xa226d2<_0x381cd1[_0x12987f(0x155)]['length'];_0xa226d2++){const _0x103095=_0x381cd1[_0x12987f(0x155)][_0xa226d2],_0x290e1=path['join'](_0x506ae0,_0x103095[_0x12987f(0x134)]);fs[_0x12987f(0x173)](_0x290e1)&&_0x45e75f[_0x12987f(0x1ab)][_0x12987f(0x13a)]({'name':_0x103095[_0x12987f(0x1a7)],'contentType':_0x103095[_0x12987f(0x187)],'data':fs[_0x12987f(0x14d)](_0x290e1)});}emlformat[_0x12987f(0x193)](_0x45e75f,function(_0x4b975f,_0x5ec53a){const _0x3b34cb=_0x12987f;if(_0x4b975f)return _0x4c040f(_0x4b975f);return fs[_0x3b34cb(0x196)](path['join'](_0x2c32ea,_0x26c24d),_0x5ec53a),_0x571f2d(_0x5ec53a);});});}})[_0x4fcd29(0x135)](function(_0x41702f){const _0x122e2c=_0x4fcd29;if(_0x41702f)return _0x587cc4[_0x122e2c(0x19a)](path['join'](_0x2c32ea,_0x26c24d),_0x26c24d,function(_0x346e31){const _0x3625a=_0x122e2c;_0x346e31?console[_0x3625a(0x179)](_0x3625a(0x1a3),_0x346e31):fs['unlinkSync'](path[_0x3625a(0x13e)](_0x2c32ea,_0x26c24d));});})[_0x4fcd29(0x15e)](handleError(_0x587cc4,null));}; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.events.js b/server/api/mailMessage/mailMessage.events.js index ffd7d4a..2bcb1fd 100644 --- a/server/api/mailMessage/mailMessage.events.js +++ b/server/api/mailMessage/mailMessage.events.js @@ -1 +1 @@ -const a498_0x59ea=['emit','update','remove','addHook','../../mysqldb'];(function(_0x48c1b3,_0x44e4fc){const _0x59eaaf=function(_0x32dda2){while(--_0x32dda2){_0x48c1b3['push'](_0x48c1b3['shift']());}};_0x59eaaf(++_0x44e4fc);}(a498_0x59ea,0xb5));const a498_0x32dd=function(_0x48c1b3,_0x44e4fc){_0x48c1b3=_0x48c1b3-0xee;let _0x59eaaf=a498_0x59ea[_0x48c1b3];return _0x59eaaf;};const a498_0x180546=a498_0x32dd;'use strict';const EventEmitter=require('events'),MailMessage=require(a498_0x180546(0xf1))['db']['MailMessage'],MailMessageEvents=new EventEmitter();MailMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':a498_0x180546(0xee),'afterDestroy':a498_0x180546(0xef)};function emitEvent(_0xbbbc42){return function(_0x15fb81){const _0x1a60b6=a498_0x32dd;MailMessageEvents[_0x1a60b6(0xf2)](_0xbbbc42+':'+_0x15fb81['id'],_0x15fb81),MailMessageEvents[_0x1a60b6(0xf2)](_0xbbbc42,_0x15fb81);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];MailMessage[a498_0x180546(0xf0)](e,emitEvent(event));}}module['exports']=MailMessageEvents; \ No newline at end of file +const a498_0x10ce=['events','exports','emit','save','undefined','MailMessage','../../mysqldb','remove'];(function(_0x1b7a99,_0x3f81be){const _0x10cea1=function(_0x5aad37){while(--_0x5aad37){_0x1b7a99['push'](_0x1b7a99['shift']());}};_0x10cea1(++_0x3f81be);}(a498_0x10ce,0x172));const a498_0x5aad=function(_0x1b7a99,_0x3f81be){_0x1b7a99=_0x1b7a99-0x17d;let _0x10cea1=a498_0x10ce[_0x1b7a99];return _0x10cea1;};const a498_0x1a5bd5=a498_0x5aad;'use strict';const EventEmitter=require(a498_0x1a5bd5(0x183)),MailMessage=require(a498_0x1a5bd5(0x181))['db'][a498_0x1a5bd5(0x180)],MailMessageEvents=new EventEmitter();MailMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':a498_0x1a5bd5(0x17e),'afterUpdate':'update','afterDestroy':a498_0x1a5bd5(0x182)};function emitEvent(_0x58a995){return function(_0x27f446){const _0x415d04=a498_0x5aad;MailMessageEvents[_0x415d04(0x17d)](_0x58a995+':'+_0x27f446['id'],_0x27f446),MailMessageEvents[_0x415d04(0x17d)](_0x58a995,_0x27f446);};}for(const e in events){if(typeof events[e]!==a498_0x1a5bd5(0x17f)){const event=events[e];MailMessage['addHook'](e,emitEvent(event));}}module[a498_0x1a5bd5(0x184)]=MailMessageEvents; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.model.js b/server/api/mailMessage/mailMessage.model.js index 62fa862..b995d68 100644 --- a/server/api/mailMessage/mailMessage.model.js +++ b/server/api/mailMessage/mailMessage.model.js @@ -1 +1 @@ -const a499_0x4c91=['MailMessage','function','./mailMessage.attributes','exports','init','./mailMessage.options','sequelize'];(function(_0x279b1e,_0x4e145b){const _0x4c91af=function(_0x3e72f5){while(--_0x3e72f5){_0x279b1e['push'](_0x279b1e['shift']());}};_0x4c91af(++_0x4e145b);}(a499_0x4c91,0x13d));const a499_0x3e72=function(_0x279b1e,_0x4e145b){_0x279b1e=_0x279b1e-0x1c3;let _0x4c91af=a499_0x4c91[_0x279b1e];return _0x4c91af;};const a499_0x4e6115=a499_0x3e72;'use strict';const {Model}=require(a499_0x4e6115(0x1c7)),{attributes}=require(a499_0x4e6115(0x1c3)),{options}=require(a499_0x4e6115(0x1c6));class MailMessage extends Model{}function init(_0x2706da,_0x49e9a6){const _0x2c629e=a499_0x4e6115,_0xac0339=options(_0x2706da),_0x4e4b00=typeof _0x49e9a6===_0x2c629e(0x1c9)?_0x49e9a6(_0xac0339):_0xac0339;return MailMessage[_0x2c629e(0x1c5)](attributes,_0x4e4b00),MailMessage;}module[a499_0x4e6115(0x1c4)][a499_0x4e6115(0x1c8)]=MailMessage,module[a499_0x4e6115(0x1c4)][a499_0x4e6115(0x1c5)]=init; \ No newline at end of file +const a499_0x4f54=['./mailMessage.attributes','init','sequelize','./mailMessage.options','exports'];(function(_0x3853e8,_0x2b8c1e){const _0x4f54b1=function(_0x5e0ac1){while(--_0x5e0ac1){_0x3853e8['push'](_0x3853e8['shift']());}};_0x4f54b1(++_0x2b8c1e);}(a499_0x4f54,0x6b));const a499_0x5e0a=function(_0x3853e8,_0x2b8c1e){_0x3853e8=_0x3853e8-0x16b;let _0x4f54b1=a499_0x4f54[_0x3853e8];return _0x4f54b1;};const a499_0x1b3877=a499_0x5e0a;'use strict';const {Model}=require(a499_0x1b3877(0x16b)),{attributes}=require(a499_0x1b3877(0x16e)),{options}=require(a499_0x1b3877(0x16c));class MailMessage extends Model{}function init(_0x52cd44,_0x2c35f7){const _0x3b6bb2=a499_0x1b3877,_0x5d69bb=options(_0x52cd44),_0x4ac2d6=typeof _0x2c35f7==='function'?_0x2c35f7(_0x5d69bb):_0x5d69bb;return MailMessage[_0x3b6bb2(0x16f)](attributes,_0x4ac2d6),MailMessage;}module[a499_0x1b3877(0x16d)]['MailMessage']=MailMessage,module[a499_0x1b3877(0x16d)][a499_0x1b3877(0x16f)]=init; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.options.js b/server/api/mailMessage/mailMessage.options.js index f586579..d24378c 100644 --- a/server/api/mailMessage/mailMessage.options.js +++ b/server/api/mailMessage/mailMessage.options.js @@ -1 +1 @@ -const a500_0x5c06=['MailInteraction','toLowerCase','catch','get','exports','body','utf8mb4_unicode_ci','plainBody','FULLTEXT','lodash','options','MailInteractionId','update','direction','fromString','mail_messages','isNil','secret','messageId','UserId','createdAt','error','html-to-text','utf8mb4'];(function(_0x369cd4,_0x39b67d){const _0x5c06c2=function(_0x595184){while(--_0x595184){_0x369cd4['push'](_0x369cd4['shift']());}};_0x5c06c2(++_0x39b67d);}(a500_0x5c06,0x154));const a500_0x5951=function(_0x369cd4,_0x39b67d){_0x369cd4=_0x369cd4-0xa7;let _0x5c06c2=a500_0x5c06[_0x369cd4];return _0x5c06c2;};const a500_0x7d4222=a500_0x5951,_=require(a500_0x7d4222(0xac)),{htmlToText}=require(a500_0x7d4222(0xb9));function options(_0x294c7d){const _0x355b12=a500_0x7d4222;return{'sequelize':_0x294c7d,'tableName':_0x355b12(0xb2),'paranoid':![],'indexes':[{'name':'messageId','fields':[_0x355b12(0xb5)]},{'name':'fti_mail_messages','fields':[_0x355b12(0xaa),'subject'],'type':_0x355b12(0xab)}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x1373f9){const _0x1ed8fc=_0x355b12;_0x1373f9[_0x1ed8fc(0xa8)]&&(_0x1373f9['plainBody']=htmlToText[_0x1ed8fc(0xb1)](_0x1373f9[_0x1ed8fc(0xa8)],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]}));},'afterCreate':function(_0x29d4cd){const _0x1864bf=_0x355b12,_0x14a736=_0x294c7d['models'],_0x3b7d71=_0x29d4cd[_0x1864bf(0xbe)]({'plain':!![]});(_0x3b7d71[_0x1864bf(0xb0)][_0x1864bf(0xbc)]()==='in'||_0x3b7d71['direction'][_0x1864bf(0xbc)]()==='out'&&!_0x3b7d71[_0x1864bf(0xb4)]&&!_[_0x1864bf(0xb3)](_0x3b7d71[_0x1864bf(0xb6)]))&&_0x14a736[_0x1864bf(0xbb)]['findOne']({'where':{'id':_0x3b7d71[_0x1864bf(0xae)]}})['then'](function(_0x2714eb){const _0x550a9d=_0x1864bf;_0x2714eb&&_0x2714eb[_0x550a9d(0xaf)]({'lastMsgAt':_0x3b7d71[_0x550a9d(0xb7)],'lastMsgDirection':_0x3b7d71['direction'][_0x550a9d(0xbc)](),'lastMsgBody':_0x3b7d71[_0x550a9d(0xa8)]});})[_0x1864bf(0xbd)](function(_0x150c02){const _0x51a94e=_0x1864bf;console[_0x51a94e(0xb8)](_0x150c02);});}},'charset':_0x355b12(0xba),'collate':_0x355b12(0xa9)};}module[a500_0x7d4222(0xa7)][a500_0x7d4222(0xad)]=options; \ No newline at end of file +const a500_0xf021=['messageId','update','toLowerCase','createdAt','out','fti_mail_messages','then','utf8mb4_unicode_ci','utf8mb4','fromString','FULLTEXT','exports','findOne','mail_messages','options','plainBody','MailInteraction','html-to-text','UserId','body','direction','lodash','error'];(function(_0x54eca8,_0x3b735a){const _0xf02121=function(_0x1b616c){while(--_0x1b616c){_0x54eca8['push'](_0x54eca8['shift']());}};_0xf02121(++_0x3b735a);}(a500_0xf021,0x7f));const a500_0x1b61=function(_0x54eca8,_0x3b735a){_0x54eca8=_0x54eca8-0x13c;let _0xf02121=a500_0xf021[_0x54eca8];return _0xf02121;};const a500_0xb6ab3a=a500_0x1b61,_=require(a500_0xb6ab3a(0x145)),{htmlToText}=require(a500_0xb6ab3a(0x141));function options(_0x56717a){const _0x54fd84=a500_0xb6ab3a;return{'sequelize':_0x56717a,'tableName':_0x54fd84(0x13d),'paranoid':![],'indexes':[{'name':_0x54fd84(0x147),'fields':[_0x54fd84(0x147)]},{'name':_0x54fd84(0x14c),'fields':[_0x54fd84(0x13f),'subject'],'type':_0x54fd84(0x151)}],'timestamps':!![],'hooks':{'beforeCreate':function(_0xd92a68){const _0x4c9a37=_0x54fd84;_0xd92a68['body']&&(_0xd92a68[_0x4c9a37(0x13f)]=htmlToText[_0x4c9a37(0x150)](_0xd92a68[_0x4c9a37(0x143)],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]}));},'afterCreate':function(_0x441c2c){const _0x5a44bb=_0x54fd84,_0x35b27c=_0x56717a['models'],_0x318d4a=_0x441c2c['get']({'plain':!![]});(_0x318d4a[_0x5a44bb(0x144)]['toLowerCase']()==='in'||_0x318d4a[_0x5a44bb(0x144)][_0x5a44bb(0x149)]()===_0x5a44bb(0x14b)&&!_0x318d4a['secret']&&!_['isNil'](_0x318d4a[_0x5a44bb(0x142)]))&&_0x35b27c[_0x5a44bb(0x140)][_0x5a44bb(0x13c)]({'where':{'id':_0x318d4a['MailInteractionId']}})[_0x5a44bb(0x14d)](function(_0x35cd50){const _0x177375=_0x5a44bb;_0x35cd50&&_0x35cd50[_0x177375(0x148)]({'lastMsgAt':_0x318d4a[_0x177375(0x14a)],'lastMsgDirection':_0x318d4a[_0x177375(0x144)][_0x177375(0x149)](),'lastMsgBody':_0x318d4a[_0x177375(0x143)]});})['catch'](function(_0x52de05){const _0x4d59ff=_0x5a44bb;console[_0x4d59ff(0x146)](_0x52de05);});}},'charset':_0x54fd84(0x14f),'collate':_0x54fd84(0x14e)};}module[a500_0xb6ab3a(0x152)][a500_0xb6ab3a(0x13e)]=options; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.rpc.js b/server/api/mailMessage/mailMessage.rpc.js index da0ea45..d40b2b3 100644 --- a/server/api/mailMessage/mailMessage.rpc.js +++ b/server/api/mailMessage/mailMessage.rpc.js @@ -1 +1 @@ -const a501_0x145f=['body','MailMessage','raw','register','../../config/logger','rpc','stringify','create','../../mysqldb','then','debug','CreateMailMessage','error','message','catch','options','./mailMessage.socket'];(function(_0x5a2875,_0x906438){const _0x145fdb=function(_0x1fe0ae){while(--_0x1fe0ae){_0x5a2875['push'](_0x5a2875['shift']());}};_0x145fdb(++_0x906438);}(a501_0x145f,0x179));const a501_0x1fe0=function(_0x5a2875,_0x906438){_0x5a2875=_0x5a2875-0x8b;let _0x145fdb=a501_0x145f[_0x5a2875];return _0x145fdb;};const a501_0x8c30cd=a501_0x1fe0;'use strict';const db=require(a501_0x8c30cd(0x90))['db'],logger=require(a501_0x8c30cd(0x8c))(a501_0x8c30cd(0x8d)),{getSocket}=require('../../rediscache'),socket=getSocket();require(a501_0x8c30cd(0x98))[a501_0x8c30cd(0x8b)](socket),exports[a501_0x8c30cd(0x93)]=function(_0x36b2f9){const _0x2ba301=this;return new Promise(function(_0x5d5c32,_0x3a307c){const _0x3555c0=a501_0x1fe0;return db[_0x3555c0(0x9a)][_0x3555c0(0x8f)](_0x36b2f9[_0x3555c0(0x99)],{'raw':_0x36b2f9[_0x3555c0(0x97)]?_0x36b2f9[_0x3555c0(0x97)][_0x3555c0(0x9b)]===undefined?!![]:![]:!![]})[_0x3555c0(0x91)](function(_0x5913c2){const _0x47f8ca=_0x3555c0;logger['info'](_0x47f8ca(0x93),_0x36b2f9),logger[_0x47f8ca(0x92)](_0x47f8ca(0x93),_0x36b2f9,JSON[_0x47f8ca(0x8e)](_0x5913c2)),_0x5d5c32(_0x5913c2);})[_0x3555c0(0x96)](function(_0x40223b){const _0x323837=_0x3555c0;logger[_0x323837(0x94)]('CreateMailMessage',_0x40223b['message'],_0x36b2f9),_0x3a307c(_0x2ba301[_0x323837(0x94)](0x1f4,_0x40223b[_0x323837(0x95)]));});});}; \ No newline at end of file +const a501_0x13b9=['MailMessage','debug','../../rediscache','body','rpc','./mailMessage.socket','error','info','message','CreateMailMessage','stringify','../../mysqldb','options','catch'];(function(_0x1ea743,_0x5373aa){const _0x13b933=function(_0x26a061){while(--_0x26a061){_0x1ea743['push'](_0x1ea743['shift']());}};_0x13b933(++_0x5373aa);}(a501_0x13b9,0x145));const a501_0x26a0=function(_0x1ea743,_0x5373aa){_0x1ea743=_0x1ea743-0x197;let _0x13b933=a501_0x13b9[_0x1ea743];return _0x13b933;};const a501_0x52f283=a501_0x26a0;'use strict';const db=require(a501_0x52f283(0x19f))['db'],logger=require('../../config/logger')(a501_0x52f283(0x198)),{getSocket}=require(a501_0x52f283(0x1a4)),socket=getSocket();require(a501_0x52f283(0x199))['register'](socket),exports['CreateMailMessage']=function(_0x3defa9){const _0x34aed2=this;return new Promise(function(_0x3202d3,_0x22af0d){const _0x19d0aa=a501_0x26a0;return db[_0x19d0aa(0x1a2)]['create'](_0x3defa9[_0x19d0aa(0x197)],{'raw':_0x3defa9[_0x19d0aa(0x1a0)]?_0x3defa9['options']['raw']===undefined?!![]:![]:!![]})['then'](function(_0x5d9fe3){const _0x233782=_0x19d0aa;logger[_0x233782(0x19b)](_0x233782(0x19d),_0x3defa9),logger[_0x233782(0x1a3)](_0x233782(0x19d),_0x3defa9,JSON[_0x233782(0x19e)](_0x5d9fe3)),_0x3202d3(_0x5d9fe3);})[_0x19d0aa(0x1a1)](function(_0x496806){const _0x37067c=_0x19d0aa;logger[_0x37067c(0x19a)]('CreateMailMessage',_0x496806[_0x37067c(0x19c)],_0x3defa9),_0x22af0d(_0x34aed2[_0x37067c(0x19a)](0x1f4,_0x496806[_0x37067c(0x19c)]));});});}; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.socket.js b/server/api/mailMessage/mailMessage.socket.js index e93b14d..f213b16 100644 --- a/server/api/mailMessage/mailMessage.socket.js +++ b/server/api/mailMessage/mailMessage.socket.js @@ -1 +1 @@ -const a502_0x4aef=['register','emit','save','mailMessage:','./mailMessage.events','update'];(function(_0x447255,_0x211c1d){const _0x4aef07=function(_0x180a29){while(--_0x180a29){_0x447255['push'](_0x447255['shift']());}};_0x4aef07(++_0x211c1d);}(a502_0x4aef,0xd4));const a502_0x180a=function(_0x447255,_0x211c1d){_0x447255=_0x447255-0xcb;let _0x4aef07=a502_0x4aef[_0x447255];return _0x4aef07;};const a502_0x34d1fa=a502_0x180a;'use strict';const MailMessageEvents=require(a502_0x34d1fa(0xcd)),events=[a502_0x34d1fa(0xcb),'remove',a502_0x34d1fa(0xce)];function createListener(_0x5f1405,_0x401bd0){return function(_0x5867c7){const _0x9a45d0=a502_0x180a;_0x401bd0[_0x9a45d0(0xd0)](_0x5f1405,_0x5867c7);};}exports[a502_0x34d1fa(0xcf)]=function(_0xab9bf7){const _0x240142=a502_0x34d1fa;for(let _0x332939=0x0,_0x3fef4c=events['length'];_0x332939<_0x3fef4c;_0x332939++){const _0x3f0945=events[_0x332939],_0x5061f8=createListener(_0x240142(0xcc)+_0x3f0945,_0xab9bf7);MailMessageEvents['on'](_0x3f0945,_0x5061f8);}}; \ No newline at end of file +const a502_0x120a=['remove','emit','save','update','mailMessage:','./mailMessage.events','register'];(function(_0x5eaf5c,_0x142c0a){const _0x120acf=function(_0x4b7e43){while(--_0x4b7e43){_0x5eaf5c['push'](_0x5eaf5c['shift']());}};_0x120acf(++_0x142c0a);}(a502_0x120a,0x1e3));const a502_0x4b7e=function(_0x5eaf5c,_0x142c0a){_0x5eaf5c=_0x5eaf5c-0x1e3;let _0x120acf=a502_0x120a[_0x5eaf5c];return _0x120acf;};const a502_0x564130=a502_0x4b7e;'use strict';const MailMessageEvents=require(a502_0x564130(0x1e8)),events=[a502_0x564130(0x1e5),a502_0x564130(0x1e3),a502_0x564130(0x1e6)];function createListener(_0x577b3e,_0x283f9e){return function(_0x5d8e16){const _0xf5943d=a502_0x4b7e;_0x283f9e[_0xf5943d(0x1e4)](_0x577b3e,_0x5d8e16);};}exports[a502_0x564130(0x1e9)]=function(_0x252bab){const _0x5f48c0=a502_0x564130;for(let _0x20d218=0x0,_0x92ef56=events['length'];_0x20d218<_0x92ef56;_0x20d218++){const _0xfcb7c6=events[_0x20d218],_0x2f8f8d=createListener(_0x5f48c0(0x1e7)+_0xfcb7c6,_0x252bab);MailMessageEvents['on'](_0xfcb7c6,_0x2f8f8d);}}; \ No newline at end of file diff --git a/server/api/mailQueue/index.js b/server/api/mailQueue/index.js index ccf878b..727b806 100644 --- a/server/api/mailQueue/index.js +++ b/server/api/mailQueue/index.js @@ -1 +1 @@ -const a503_0x1330=['Router','/describe','removeTeams','get','isAuthenticated','/:id/users','/:id','express','index','../../components/auth/service','./mailQueue.controller','getAgents','create','addAgents','describe','delete','show','put','addTeams','destroy','/:id/teams','getMembers','/:id/members','update'];(function(_0x48cc5c,_0x3233b0){const _0x133096=function(_0x27b39c){while(--_0x27b39c){_0x48cc5c['push'](_0x48cc5c['shift']());}};_0x133096(++_0x3233b0);}(a503_0x1330,0x142));const a503_0x27b3=function(_0x48cc5c,_0x3233b0){_0x48cc5c=_0x48cc5c-0xe2;let _0x133096=a503_0x1330[_0x48cc5c];return _0x133096;};const a503_0x14e28c=a503_0x27b3;'use strict';const express=require(a503_0x14e28c(0xf7)),router=express[a503_0x14e28c(0xf0)](),auth=require(a503_0x14e28c(0xf9)),controller=require(a503_0x14e28c(0xe2));router[a503_0x14e28c(0xf3)]('/',auth[a503_0x14e28c(0xf4)](),controller[a503_0x14e28c(0xf8)]),router[a503_0x14e28c(0xf3)](a503_0x14e28c(0xf1),auth[a503_0x14e28c(0xf4)](),controller[a503_0x14e28c(0xe6)]),router[a503_0x14e28c(0xf3)](a503_0x14e28c(0xf6),auth['isAuthenticated'](),controller[a503_0x14e28c(0xe8)]),router['get'](a503_0x14e28c(0xee),auth[a503_0x14e28c(0xf4)](),controller[a503_0x14e28c(0xed)]),router[a503_0x14e28c(0xf3)](a503_0x14e28c(0xec),auth[a503_0x14e28c(0xf4)](),controller['getTeams']),router[a503_0x14e28c(0xf3)](a503_0x14e28c(0xf5),auth['isAuthenticated'](),controller[a503_0x14e28c(0xe3)]),router['post']('/',auth['isAuthenticated'](),controller[a503_0x14e28c(0xe4)]),router['post'](a503_0x14e28c(0xec),auth[a503_0x14e28c(0xf4)](),controller[a503_0x14e28c(0xea)]),router['post'](a503_0x14e28c(0xf5),auth['isAuthenticated'](),controller[a503_0x14e28c(0xe5)]),router[a503_0x14e28c(0xe9)](a503_0x14e28c(0xf6),auth[a503_0x14e28c(0xf4)](),controller[a503_0x14e28c(0xef)]),router[a503_0x14e28c(0xe7)](a503_0x14e28c(0xf6),auth[a503_0x14e28c(0xf4)](),controller[a503_0x14e28c(0xeb)]),router[a503_0x14e28c(0xe7)](a503_0x14e28c(0xec),auth[a503_0x14e28c(0xf4)](),controller[a503_0x14e28c(0xf2)]),router[a503_0x14e28c(0xe7)](a503_0x14e28c(0xf5),auth[a503_0x14e28c(0xf4)](),controller['removeAgents']),module['exports']=router; \ No newline at end of file +const a503_0x44c6=['/:id/users','./mailQueue.controller','get','show','update','/:id/teams','addTeams','express','delete','getAgents','index','/:id','destroy','post','describe','addAgents','getMembers','getTeams','isAuthenticated','removeTeams'];(function(_0x20e6dc,_0x11dbf7){const _0x44c646=function(_0x2aa35b){while(--_0x2aa35b){_0x20e6dc['push'](_0x20e6dc['shift']());}};_0x44c646(++_0x11dbf7);}(a503_0x44c6,0x12e));const a503_0x2aa3=function(_0x20e6dc,_0x11dbf7){_0x20e6dc=_0x20e6dc-0x1dd;let _0x44c646=a503_0x44c6[_0x20e6dc];return _0x44c646;};const a503_0x3b7ad6=a503_0x2aa3;'use strict';const express=require(a503_0x3b7ad6(0x1e2)),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a503_0x3b7ad6(0x1f0));router[a503_0x3b7ad6(0x1dd)]('/',auth['isAuthenticated'](),controller[a503_0x3b7ad6(0x1e5)]),router[a503_0x3b7ad6(0x1dd)]('/describe',auth['isAuthenticated'](),controller[a503_0x3b7ad6(0x1e9)]),router[a503_0x3b7ad6(0x1dd)](a503_0x3b7ad6(0x1e6),auth[a503_0x3b7ad6(0x1ed)](),controller[a503_0x3b7ad6(0x1de)]),router[a503_0x3b7ad6(0x1dd)]('/:id/members',auth[a503_0x3b7ad6(0x1ed)](),controller[a503_0x3b7ad6(0x1eb)]),router[a503_0x3b7ad6(0x1dd)](a503_0x3b7ad6(0x1e0),auth[a503_0x3b7ad6(0x1ed)](),controller[a503_0x3b7ad6(0x1ec)]),router[a503_0x3b7ad6(0x1dd)]('/:id/users',auth[a503_0x3b7ad6(0x1ed)](),controller[a503_0x3b7ad6(0x1e4)]),router[a503_0x3b7ad6(0x1e8)]('/',auth['isAuthenticated'](),controller['create']),router[a503_0x3b7ad6(0x1e8)](a503_0x3b7ad6(0x1e0),auth[a503_0x3b7ad6(0x1ed)](),controller[a503_0x3b7ad6(0x1e1)]),router[a503_0x3b7ad6(0x1e8)](a503_0x3b7ad6(0x1ef),auth[a503_0x3b7ad6(0x1ed)](),controller[a503_0x3b7ad6(0x1ea)]),router['put'](a503_0x3b7ad6(0x1e6),auth[a503_0x3b7ad6(0x1ed)](),controller[a503_0x3b7ad6(0x1df)]),router[a503_0x3b7ad6(0x1e3)](a503_0x3b7ad6(0x1e6),auth[a503_0x3b7ad6(0x1ed)](),controller[a503_0x3b7ad6(0x1e7)]),router[a503_0x3b7ad6(0x1e3)]('/:id/teams',auth['isAuthenticated'](),controller[a503_0x3b7ad6(0x1ee)]),router['delete'](a503_0x3b7ad6(0x1ef),auth[a503_0x3b7ad6(0x1ed)](),controller['removeAgents']),module['exports']=router; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.attributes.js b/server/api/mailQueue/mailQueue.attributes.js index 45aff62..6a0d60d 100644 --- a/server/api/mailQueue/mailQueue.attributes.js +++ b/server/api/mailQueue/mailQueue.attributes.js @@ -1 +1 @@ -const a504_0x2237=['name','sequelize','beepall','ENUM','STRING','rrmemory','roundrobin'];(function(_0x55600b,_0x26f406){const _0x2237a3=function(_0x921fc){while(--_0x921fc){_0x55600b['push'](_0x55600b['shift']());}};_0x2237a3(++_0x26f406);}(a504_0x2237,0x1ef));const a504_0x921f=function(_0x55600b,_0x26f406){_0x55600b=_0x55600b-0x11a;let _0x2237a3=a504_0x2237[_0x55600b];return _0x2237a3;};const a504_0x2b61fc=a504_0x921f;'use strict';const {DataTypes}=require(a504_0x2b61fc(0x11d)),attributes={'name':{'type':DataTypes[a504_0x2b61fc(0x120)],'unique':a504_0x2b61fc(0x11c),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':DataTypes[a504_0x2b61fc(0x120)]},'timeout':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes[a504_0x2b61fc(0x11f)](a504_0x2b61fc(0x11a),a504_0x2b61fc(0x11e),a504_0x2b61fc(0x11b))}};module['exports']['attributes']=attributes; \ No newline at end of file +const a504_0x5336=['STRING','ENUM','exports','attributes','roundrobin','INTEGER','rrmemory','beepall'];(function(_0x17d5bd,_0x1c4d62){const _0x533674=function(_0x3c9096){while(--_0x3c9096){_0x17d5bd['push'](_0x17d5bd['shift']());}};_0x533674(++_0x1c4d62);}(a504_0x5336,0x15e));const a504_0x3c90=function(_0x17d5bd,_0x1c4d62){_0x17d5bd=_0x17d5bd-0x161;let _0x533674=a504_0x5336[_0x17d5bd];return _0x533674;};const a504_0x1dfe88=a504_0x3c90;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a504_0x1dfe88(0x163)],'unique':'name','validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':DataTypes[a504_0x1dfe88(0x163)]},'timeout':{'type':DataTypes[a504_0x1dfe88(0x168)],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes[a504_0x1dfe88(0x164)](a504_0x1dfe88(0x161),a504_0x1dfe88(0x162),a504_0x1dfe88(0x167))}};module[a504_0x1dfe88(0x165)][a504_0x1dfe88(0x166)]=attributes; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.controller.js b/server/api/mailQueue/mailQueue.controller.js index f360548..1d5c831 100644 --- a/server/api/mailQueue/mailQueue.controller.js +++ b/server/api/mailQueue/mailQueue.controller.js @@ -1 +1 @@ -const a505_0x2d5a=['value','UserMailQueue','model','Agents','order','field','isArray','interface','json','type','limit','./mailQueue.socket','getTeams','compact','options','emit','omit','create','rawAttributes','filter','TeamId','get','lodash','params','nolimit','describe','../../mysqldb','userMailQueue:remove','every','squel','intersection','merge','userMailQueue:save','removeAgents','from','addTeams','user','mailPause','name','like','../../components/parsers/qs','util','all','flatMap','set','tq.TeamId','count','fields','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','ut.UserId\x20=\x20?','userProfileId','body','rows','isEmpty','filters','Unable\x20to\x20retrieve\x20the\x20current\x20user','ut.TeamId\x20=\x20tq.TeamId','MailQueueId\x20=\x20?','MailQueueId','fieldName','error','MailQueue','status','updatedAt','then','end','ids','api','show','index','findOne','transaction','clone','team_has_mail_queues','keys','User','agent','push','Team','forEach','online','query','attributes','update','length','pick','select','../../config/logger','sendStatus','send','includes','UserProfileResource','addAgents','voicePause','removeTeams','toString','createdAt','findAll','../../rediscache','sort','offset','destroy','UserProfileSection','includeAll','findOrCreate','autoAssociation','register','stack','SIP','getAgents','map','where','undefined','sequelize','catch','format','MailQueues'];(function(_0x37b9f5,_0x1b8627){const _0x2d5ace=function(_0x2f0452){while(--_0x2f0452){_0x37b9f5['push'](_0x37b9f5['shift']());}};_0x2d5ace(++_0x1b8627);}(a505_0x2d5a,0xc9));const a505_0x2f04=function(_0x37b9f5,_0x1b8627){_0x37b9f5=_0x37b9f5-0x181;let _0x2d5ace=a505_0x2d5a[_0x37b9f5];return _0x2d5ace;};const a505_0x2dfb9c=a505_0x2f04;'use strict';const util=require(a505_0x2dfb9c(0x1cb)),_=require(a505_0x2dfb9c(0x1b8)),squel=require(a505_0x2dfb9c(0x1bf)),qs=require(a505_0x2dfb9c(0x1ca)),logger=require(a505_0x2dfb9c(0x184))(a505_0x2dfb9c(0x1e5)),{getSocket}=require(a505_0x2dfb9c(0x18f)),socket=getSocket(),{db}=require(a505_0x2dfb9c(0x1bc)),{Op,QueryTypes}=require('sequelize');require(a505_0x2dfb9c(0x1ad))[a505_0x2dfb9c(0x197)](socket);function respondWithStatusCode(_0x1324a9,_0x5ee103){return _0x5ee103=_0x5ee103||0xcc,function(_0x4d235b){const _0x3bab63=a505_0x2f04;if(_0x4d235b)return _0x1324a9[_0x3bab63(0x185)](_0x5ee103);return _0x1324a9[_0x3bab63(0x1e0)](_0x5ee103)[_0x3bab63(0x1e3)]();};}function respondWithResult(_0x5d011b,_0x42101b){return _0x42101b=_0x42101b||0xc8,function(_0x23a1e6){const _0x4b1b01=a505_0x2f04;if(_0x23a1e6)return _0x5d011b[_0x4b1b01(0x1e0)](_0x42101b)[_0x4b1b01(0x1aa)](_0x23a1e6);};}function respondWithFilteredResult(_0x4cf61f,_0x5d8547){return function(_0x48e01b){const _0x275133=a505_0x2f04;if(_0x48e01b){const _0x87b5c4=_0x48e01b[_0x275133(0x1d0)],_0x3a12e2=_0x5d8547[_0x275133(0x191)];let _0x432d42=_0x5d8547['offset']+_0x5d8547[_0x275133(0x1ac)],_0x425e32;return _0x432d42>=_0x87b5c4?(_0x432d42=_0x87b5c4,_0x425e32=0xc8):_0x425e32=0xce,_0x4cf61f[_0x275133(0x1e0)](_0x425e32),_0x4cf61f[_0x275133(0x1ce)]('Content-Range',_0x3a12e2+'-'+_0x432d42+'/'+_0x87b5c4)[_0x275133(0x1aa)](_0x48e01b);}return null;};}function saveUpdates(_0x20b645){return function(_0x38cdd1){const _0x59649e=a505_0x2f04;if(_0x38cdd1)return _0x38cdd1[_0x59649e(0x1f5)](_0x20b645)[_0x59649e(0x1e2)](function(_0x344699){return _0x344699;});return null;};}function removeEntity(_0x3a7271){return function(_0x138cc9){const _0x14c271=a505_0x2f04;if(_0x138cc9)return _0x138cc9[_0x14c271(0x192)]()[_0x14c271(0x1e2)](function(){const _0x2fc360=_0x14c271,_0x20bf64=_0x138cc9[_0x2fc360(0x1b7)]({'plain':!![]}),_0x530d61='MailQueues';return db['UserProfileResource'][_0x2fc360(0x192)]({'where':{'type':_0x530d61,'resourceId':_0x20bf64['id']}})[_0x2fc360(0x1e2)](function(){return _0x138cc9;});})['then'](function(){const _0x3357ba=_0x14c271;_0x3a7271[_0x3357ba(0x1e0)](0xcc)['end']();});};}function handleEntityNotFound(_0x14fd25){return function(_0xe74715){const _0x3c2f64=a505_0x2f04;return!_0xe74715&&_0x14fd25[_0x3c2f64(0x185)](0x194),_0xe74715;};}function handleError(_0x137a4a,_0x51a85c){return _0x51a85c=_0x51a85c||0x1f4,function(_0xc31d06){const _0x25fc81=a505_0x2f04;logger[_0x25fc81(0x1de)](_0xc31d06[_0x25fc81(0x198)]),_0xc31d06['name']&&delete _0xc31d06[_0x25fc81(0x1c8)],_0x137a4a[_0x25fc81(0x1e0)](_0x51a85c)[_0x25fc81(0x186)](_0xc31d06);};}exports[a505_0x2dfb9c(0x1e7)]=function(_0x4e8ddb,_0x2c07bc){const _0x33b1dd=a505_0x2dfb9c;let _0x3357a5={};const _0x598a1f={},_0x398e90={'count':0x0,'rows':[]},_0x1a771c=_[_0x33b1dd(0x19b)](db['MailQueue'][_0x33b1dd(0x1b4)],function(_0x1ebcca){const _0x3c19c8=_0x33b1dd;return{'name':_0x1ebcca[_0x3c19c8(0x1dd)],'type':_0x1ebcca[_0x3c19c8(0x1ab)]['key']};});_0x598a1f['model']=_['map'](_0x1a771c,'name'),_0x598a1f[_0x33b1dd(0x1f3)]=_[_0x33b1dd(0x1ec)](_0x4e8ddb['query']),_0x598a1f[_0x33b1dd(0x1d8)]=_[_0x33b1dd(0x1c0)](_0x598a1f['model'],_0x598a1f[_0x33b1dd(0x1f3)]),_0x3357a5[_0x33b1dd(0x1f4)]=_[_0x33b1dd(0x1c0)](_0x598a1f[_0x33b1dd(0x1a4)],qs[_0x33b1dd(0x1d1)](_0x4e8ddb[_0x33b1dd(0x1f3)]['fields'])),_0x3357a5[_0x33b1dd(0x1f4)]=_0x3357a5[_0x33b1dd(0x1f4)][_0x33b1dd(0x181)]?_0x3357a5[_0x33b1dd(0x1f4)]:_0x598a1f['model'];typeof _0x4e8ddb['query'][_0x33b1dd(0x1ba)]===_0x33b1dd(0x19d)&&(_0x3357a5['limit']=qs[_0x33b1dd(0x1ac)](_0x4e8ddb[_0x33b1dd(0x1f3)][_0x33b1dd(0x1ac)]),_0x3357a5[_0x33b1dd(0x191)]=qs[_0x33b1dd(0x191)](_0x4e8ddb[_0x33b1dd(0x1f3)][_0x33b1dd(0x191)]));_0x3357a5[_0x33b1dd(0x1a6)]=qs[_0x33b1dd(0x190)](_0x4e8ddb[_0x33b1dd(0x1f3)][_0x33b1dd(0x190)]),_0x3357a5[_0x33b1dd(0x19c)]=qs[_0x33b1dd(0x1d8)](_[_0x33b1dd(0x182)](_0x4e8ddb[_0x33b1dd(0x1f3)],_0x598a1f['filters']),_0x1a771c);_0x4e8ddb[_0x33b1dd(0x1f3)][_0x33b1dd(0x1b5)]&&(_0x3357a5[_0x33b1dd(0x19c)]=_[_0x33b1dd(0x1c1)](_0x3357a5[_0x33b1dd(0x19c)],{[Op['or']]:_[_0x33b1dd(0x19b)](_0x1a771c,function(_0x46d236){const _0x35fad3=_0x33b1dd;if(_0x46d236['type']!=='VIRTUAL'){const _0x2530c4={};return _0x2530c4[_0x46d236[_0x35fad3(0x1c8)]]={[Op[_0x35fad3(0x1c9)]]:'%'+_0x4e8ddb['query'][_0x35fad3(0x1b5)]+'%'},_0x2530c4;}})}));_0x3357a5=_[_0x33b1dd(0x1c1)]({},_0x3357a5,_0x4e8ddb[_0x33b1dd(0x1b0)]);const _0x4ebf2e={'where':_0x3357a5[_0x33b1dd(0x19c)]};return db['MailQueue'][_0x33b1dd(0x1d0)](_0x4ebf2e)[_0x33b1dd(0x1e2)](function(_0x452e67){const _0x4009c4=_0x33b1dd;return _0x398e90['count']=_0x452e67,_0x4e8ddb['query']['includeAll']&&(_0x3357a5['include']=[{'all':!![]}]),db[_0x4009c4(0x1df)][_0x4009c4(0x18e)](_0x3357a5);})[_0x33b1dd(0x1e2)](function(_0xa0d7e3){const _0x143d11=_0x33b1dd;return _0x398e90[_0x143d11(0x1d6)]=_0xa0d7e3,_0x398e90;})[_0x33b1dd(0x1e2)](respondWithFilteredResult(_0x2c07bc,_0x3357a5))['catch'](handleError(_0x2c07bc,null));},exports[a505_0x2dfb9c(0x1e6)]=function(_0x2c9063,_0x3446c7){const _0x2670cb=a505_0x2dfb9c;let _0x37efba={'raw':!![],'where':{'id':_0x2c9063[_0x2670cb(0x1b9)]['id']}};const _0x49a267={};return _0x49a267['model']=_[_0x2670cb(0x1ec)](db[_0x2670cb(0x1df)][_0x2670cb(0x1b4)]),_0x49a267[_0x2670cb(0x1f3)]=_[_0x2670cb(0x1ec)](_0x2c9063[_0x2670cb(0x1f3)]),_0x49a267['filters']=_[_0x2670cb(0x1c0)](_0x49a267[_0x2670cb(0x1a4)],_0x49a267[_0x2670cb(0x1f3)]),_0x37efba[_0x2670cb(0x1f4)]=_[_0x2670cb(0x1c0)](_0x49a267[_0x2670cb(0x1a4)],qs[_0x2670cb(0x1d1)](_0x2c9063[_0x2670cb(0x1f3)][_0x2670cb(0x1d1)])),_0x37efba[_0x2670cb(0x1f4)]=_0x37efba[_0x2670cb(0x1f4)][_0x2670cb(0x181)]?_0x37efba[_0x2670cb(0x1f4)]:_0x49a267[_0x2670cb(0x1a4)],_0x2c9063[_0x2670cb(0x1f3)][_0x2670cb(0x194)]&&(_0x37efba['include']=[{'all':!![]}]),_0x37efba=_[_0x2670cb(0x1c1)]({},_0x37efba,_0x2c9063[_0x2670cb(0x1b0)]),db[_0x2670cb(0x1df)][_0x2670cb(0x1e8)](_0x37efba)[_0x2670cb(0x1e2)](handleEntityNotFound(_0x3446c7,null))[_0x2670cb(0x1e2)](respondWithResult(_0x3446c7,null))[_0x2670cb(0x19f)](handleError(_0x3446c7,null));},exports['create']=function(_0x15e42b,_0x375d68){const _0x2d53c2=a505_0x2dfb9c;return db[_0x2d53c2(0x1df)][_0x2d53c2(0x1b3)](_0x15e42b['body'],{})['then'](function(_0x492499){const _0xf30e3a=_0x2d53c2,_0x9ab3a1=_0x15e42b[_0xf30e3a(0x1c6)][_0xf30e3a(0x1b7)]({'plain':!![]});if(!_0x9ab3a1)throw new Error(_0xf30e3a(0x1d9));if(_0x9ab3a1['role']===_0xf30e3a(0x1c6)){const _0x541ec5=_0x492499[_0xf30e3a(0x1b7)]({'plain':!![]}),_0x21ff41=_0xf30e3a(0x1a1);return db[_0xf30e3a(0x193)][_0xf30e3a(0x1e8)]({'where':{'name':_0x21ff41,'userProfileId':_0x9ab3a1[_0xf30e3a(0x1d4)]},'raw':!![]})[_0xf30e3a(0x1e2)](function(_0x1dc191){const _0x409d7e=_0xf30e3a;return _0x1dc191&&_0x1dc191[_0x409d7e(0x196)]===0x0?db[_0x409d7e(0x188)]['create']({'name':_0x541ec5[_0x409d7e(0x1c8)],'resourceId':_0x541ec5['id'],'type':_0x1dc191[_0x409d7e(0x1c8)],'sectionId':_0x1dc191['id']},{})[_0x409d7e(0x1e2)](function(){return _0x492499;}):_0x492499;})[_0xf30e3a(0x19f)](function(_0x1d401a){const _0x4d70ca=_0xf30e3a;logger[_0x4d70ca(0x1de)](_0x4d70ca(0x1d2),_0x1d401a);throw _0x1d401a;});}return _0x492499;})[_0x2d53c2(0x1e2)](respondWithResult(_0x375d68,0xc9))[_0x2d53c2(0x19f)](handleError(_0x375d68,null));},exports[a505_0x2dfb9c(0x1f5)]=function(_0x4bea21,_0x3313d7){const _0x335dc9=a505_0x2dfb9c;return _0x4bea21[_0x335dc9(0x1d5)]['id']&&delete _0x4bea21[_0x335dc9(0x1d5)]['id'],db[_0x335dc9(0x1df)]['findOne']({'where':{'id':_0x4bea21[_0x335dc9(0x1b9)]['id']}})[_0x335dc9(0x1e2)](handleEntityNotFound(_0x3313d7,null))[_0x335dc9(0x1e2)](saveUpdates(_0x4bea21[_0x335dc9(0x1d5)],null))[_0x335dc9(0x1e2)](respondWithResult(_0x3313d7,null))[_0x335dc9(0x19f)](handleError(_0x3313d7,null));},exports[a505_0x2dfb9c(0x192)]=function(_0x5c540b,_0x27149e){const _0x2203a2=a505_0x2dfb9c;return db[_0x2203a2(0x1df)][_0x2203a2(0x1e8)]({'where':{'id':_0x5c540b[_0x2203a2(0x1b9)]['id']}})[_0x2203a2(0x1e2)](handleEntityNotFound(_0x27149e,null))['then'](removeEntity(_0x27149e,null))['catch'](handleError(_0x27149e,null));},exports[a505_0x2dfb9c(0x1bb)]=function(_0x21c97c,_0xcb64a5){const _0x244e07=a505_0x2dfb9c;return db[_0x244e07(0x1df)]['describe']()['then'](respondWithResult(_0xcb64a5,null))[_0x244e07(0x19f)](handleError(_0xcb64a5,null));},exports['getMembers']=function(_0x1daa61,_0x4adac4){const _0x5d9c21=a505_0x2dfb9c;let _0x5a927a={'raw':!![],'where':{}};const _0x16f7d2={};let _0x57e51b;return db['MailQueue'][_0x5d9c21(0x1e8)]({'where':{'id':_0x1daa61[_0x5d9c21(0x1b9)]['id']}})[_0x5d9c21(0x1e2)](handleEntityNotFound(_0x4adac4,null))[_0x5d9c21(0x1e2)](function(_0xb015c6){const _0x523113=_0x5d9c21;if(_0xb015c6)return _0x57e51b=_0xb015c6[_0x523113(0x1b7)]({'plain':!![]}),_0x16f7d2[_0x523113(0x1a4)]=_['keys'](db[_0x523113(0x1a3)][_0x523113(0x1b4)]),_0x16f7d2['query']=_[_0x523113(0x1ec)](_0x1daa61['query']),_0x16f7d2['filters']=_[_0x523113(0x1c0)](_0x16f7d2[_0x523113(0x1a4)],_0x16f7d2['query']),_0x5a927a[_0x523113(0x1f4)]=_[_0x523113(0x1c0)](_0x16f7d2[_0x523113(0x1a4)],qs[_0x523113(0x1d1)](_0x1daa61[_0x523113(0x1f3)][_0x523113(0x1d1)])),_0x5a927a['attributes']=_0x5a927a[_0x523113(0x1f4)][_0x523113(0x181)]?_0x5a927a['attributes']:_0x16f7d2[_0x523113(0x1a4)],typeof _0x1daa61[_0x523113(0x1f3)][_0x523113(0x1ba)]===_0x523113(0x19d)&&(_0x5a927a['limit']=qs[_0x523113(0x1ac)](_0x1daa61[_0x523113(0x1f3)]['limit']),_0x5a927a['offset']=qs['offset'](_0x1daa61[_0x523113(0x1f3)]['offset'])),_0x5a927a[_0x523113(0x1a6)]=qs[_0x523113(0x190)](_0x1daa61[_0x523113(0x1f3)][_0x523113(0x190)]),_0x5a927a['where']=qs[_0x523113(0x1d8)](_[_0x523113(0x182)](_0x1daa61[_0x523113(0x1f3)],_0x16f7d2[_0x523113(0x1d8)])),_0x5a927a['where'][_0x523113(0x1dc)]=_0xb015c6['id'],_0x1daa61[_0x523113(0x1f3)][_0x523113(0x1b5)]&&(_0x5a927a[_0x523113(0x19c)]=_[_0x523113(0x1c1)](_0x5a927a[_0x523113(0x19c)],{[Op['or']]:_[_0x523113(0x19b)](_0x5a927a[_0x523113(0x1f4)],function(_0x32e63f){const _0x313e00=_0x523113,_0x3b4095={};return _0x3b4095[_0x32e63f]={[Op[_0x313e00(0x1c9)]]:'%'+_0x1daa61[_0x313e00(0x1f3)][_0x313e00(0x1b5)]+'%'},_0x3b4095;})})),_0x5a927a=_[_0x523113(0x1c1)]({},_0x5a927a,_0x1daa61[_0x523113(0x1b0)]),db[_0x523113(0x1a3)]['findAll'](_0x5a927a);})['then'](function(_0x5bff0e){const _0x589cc3=_0x5d9c21;if(_0x5bff0e)return db['User']['findAndCountAll']({'where':{'id':_[_0x589cc3(0x19b)](_0x5bff0e,'UserId'),'role':_0x589cc3(0x1ee)},'attributes':['id','name',_0x589cc3(0x1c7),_0x589cc3(0x1e1),_0x589cc3(0x18d)]});})[_0x5d9c21(0x1e2)](function(_0x33b762){const _0x1fe929=_0x5d9c21;return _0x33b762?{'count':_0x33b762[_0x1fe929(0x1d0)],'rows':_[_0x1fe929(0x19b)](_0x33b762[_0x1fe929(0x1d6)],function(_0x3770bf){const _0x57f6fc=_0x1fe929;return{'membername':_0x3770bf[_0x57f6fc(0x1c8)],'UserId':_0x3770bf['id'],'queue_name':_0x57e51b[_0x57f6fc(0x1c8)],'MailQueueId':_0x57e51b['id'],'interface':util[_0x57f6fc(0x1a0)]('%s/%s',_0x57f6fc(0x199),_0x3770bf['name']),'penalty':0x0,'paused':_0x3770bf[_0x57f6fc(0x1c7)],'createdAt':_0x3770bf[_0x57f6fc(0x18d)],'updatedAt':_0x3770bf[_0x57f6fc(0x1e1)]};})}:{'count':0x0,'rows':[]};})[_0x5d9c21(0x1e2)](respondWithFilteredResult(_0x4adac4,_0x5a927a))['catch'](handleError(_0x4adac4,null));},exports[a505_0x2dfb9c(0x1ae)]=function(_0x213332,_0x4baea0){const _0x48183c=a505_0x2dfb9c;let _0x3d6c5b={};const _0xfceda9={};let _0x27172e,_0x1c39ef;return db[_0x48183c(0x1df)]['findOne']({'where':{'id':_0x213332[_0x48183c(0x1b9)]['id']}})[_0x48183c(0x1e2)](handleEntityNotFound(_0x4baea0,null))[_0x48183c(0x1e2)](function(_0x4067ba){const _0x201ca6=_0x48183c;if(_0x4067ba)return _0x27172e=_0x4067ba,_0xfceda9['model']=_['keys'](db[_0x201ca6(0x1f0)][_0x201ca6(0x1b4)]),_0xfceda9[_0x201ca6(0x1f3)]=_[_0x201ca6(0x1ec)](_0x213332[_0x201ca6(0x1f3)]),_0xfceda9[_0x201ca6(0x1d8)]=_['intersection'](_0xfceda9[_0x201ca6(0x1a4)],_0xfceda9[_0x201ca6(0x1f3)]),_0x3d6c5b[_0x201ca6(0x1f4)]=_[_0x201ca6(0x1c0)](_0xfceda9[_0x201ca6(0x1a4)],qs[_0x201ca6(0x1d1)](_0x213332[_0x201ca6(0x1f3)][_0x201ca6(0x1d1)])),_0x3d6c5b[_0x201ca6(0x1f4)]=_0x3d6c5b[_0x201ca6(0x1f4)][_0x201ca6(0x181)]?_0x3d6c5b[_0x201ca6(0x1f4)]:_0xfceda9[_0x201ca6(0x1a4)],_0x3d6c5b[_0x201ca6(0x1a6)]=qs['sort'](_0x213332[_0x201ca6(0x1f3)][_0x201ca6(0x190)]),_0x3d6c5b[_0x201ca6(0x19c)]=qs['filters'](_[_0x201ca6(0x182)](_0x213332[_0x201ca6(0x1f3)],_0xfceda9[_0x201ca6(0x1d8)])),_0x213332[_0x201ca6(0x1f3)][_0x201ca6(0x1b5)]&&(_0x3d6c5b[_0x201ca6(0x19c)]=_['merge'](_0x3d6c5b[_0x201ca6(0x19c)],{[Op['or']]:_[_0x201ca6(0x19b)](_0x3d6c5b['attributes'],function(_0x245f49){const _0x1f7f2f=_0x201ca6,_0x23f9f4={};return _0x23f9f4[_0x245f49]={[Op[_0x1f7f2f(0x1c9)]]:'%'+_0x213332[_0x1f7f2f(0x1f3)][_0x1f7f2f(0x1b5)]+'%'},_0x23f9f4;})})),_0x3d6c5b=_[_0x201ca6(0x1c1)]({},_0x3d6c5b,_0x213332[_0x201ca6(0x1b0)]),_0x27172e[_0x201ca6(0x1ae)](_0x3d6c5b);})[_0x48183c(0x1e2)](function(_0x3a18bb){const _0x8584d1=_0x48183c;if(_0x3a18bb)return _0x1c39ef=_0x3a18bb[_0x8584d1(0x181)],typeof _0x213332[_0x8584d1(0x1f3)][_0x8584d1(0x1ba)]==='undefined'&&(_0x3d6c5b['limit']=qs['limit'](_0x213332[_0x8584d1(0x1f3)][_0x8584d1(0x1ac)]),_0x3d6c5b[_0x8584d1(0x191)]=qs[_0x8584d1(0x191)](_0x213332['query']['offset'])),_0x27172e[_0x8584d1(0x1ae)](_0x3d6c5b);})[_0x48183c(0x1e2)](function(_0x2da59c){if(_0x2da59c)return _0x2da59c?{'count':_0x1c39ef,'rows':_0x2da59c}:null;})[_0x48183c(0x1e2)](respondWithResult(_0x4baea0,null))[_0x48183c(0x19f)](handleError(_0x4baea0,null));},exports[a505_0x2dfb9c(0x1c5)]=function(_0x389465,_0x4b8990){const _0x2cd0cb=a505_0x2dfb9c,_0x1dd3ea=_0x389465[_0x2cd0cb(0x1d5)]['ids'];return db['Team'][_0x2cd0cb(0x18e)]({'where':{'id':_0x1dd3ea},'attributes':['id'],'include':[{'model':db[_0x2cd0cb(0x1ed)],'as':'Agents','attributes':['id','name',_0x2cd0cb(0x1f2),_0x2cd0cb(0x18a),_0x2cd0cb(0x1a9)],'raw':!![]}]})[_0x2cd0cb(0x1e2)](function(_0x5ff031){const _0x5b2183=_0x2cd0cb;if(_0x5ff031){const _0x143e7f=_[_0x5b2183(0x1cd)](_0x5ff031,function(_0x58032d){const _0x4376b6=_0x5b2183,_0x159c7a=_0x58032d['get']({'plain':!![]});return _0x159c7a[_0x4376b6(0x1a5)];});return db[_0x5b2183(0x1df)]['findOne']({'where':{'id':_0x389465[_0x5b2183(0x1b9)]['id']}})[_0x5b2183(0x1e2)](function(_0x4d7e38){const _0x3efe3b=_0x5b2183;return db['sequelize'][_0x3efe3b(0x1e9)](function(_0x29aed3){const _0x1ba610=_0x3efe3b;return _0x4d7e38[_0x1ba610(0x1c5)](_0x1dd3ea,{'transaction':_0x29aed3})[_0x1ba610(0x1e2)](function(){const _0x3b7e25=_0x1ba610;return Promise[_0x3b7e25(0x1cc)](_0x143e7f[_0x3b7e25(0x19b)](_0x48d376=>{const _0x3ada03=_0x3b7e25;return db[_0x3ada03(0x1a3)][_0x3ada03(0x195)]({'where':{'UserId':_0x48d376['id'],'MailQueueId':_0x389465['params']['id']},'transaction':_0x29aed3});}));})[_0x1ba610(0x1e2)](function(){const _0x220a49=_0x1ba610;_0x143e7f[_0x220a49(0x1f1)](function(_0x1daab9){const _0x110e11=_0x220a49;socket[_0x110e11(0x1b1)]('userMailQueue:save',{'UserId':_0x1daab9['id'],'MailQueueId':_0x4d7e38['id']});});});});});}})[_0x2cd0cb(0x1e2)](respondWithStatusCode(_0x4b8990,null))[_0x2cd0cb(0x19f)](handleError(_0x4b8990,null));},exports[a505_0x2dfb9c(0x18b)]=function(_0x4272f3,_0x48bfbf){const _0xe2186c=a505_0x2dfb9c;return db[_0xe2186c(0x1f0)][_0xe2186c(0x18e)]({'where':{'id':_0x4272f3[_0xe2186c(0x1f3)][_0xe2186c(0x1e4)]},'attributes':['id'],'include':[{'model':db[_0xe2186c(0x1ed)],'as':'Agents','attributes':['id'],'raw':!![]}]})[_0xe2186c(0x1e2)](handleEntityNotFound(_0x48bfbf,null))['then'](function(_0x300ec6){const _0x4be0e2=_0xe2186c,_0x5268ca=_[_0x4be0e2(0x19b)](_0x300ec6,'id');let _0x1b8369=[];const _0xace4a6=[],_0x237f16=squel[_0x4be0e2(0x183)]();_0x237f16[_0x4be0e2(0x1a7)](_0x4be0e2(0x1cf))[_0x4be0e2(0x1c4)](_0x4be0e2(0x1eb),'tq')['join']('user_has_teams','ut',_0x4be0e2(0x1da))[_0x4be0e2(0x19c)](_0x4be0e2(0x1db),_0x4272f3[_0x4be0e2(0x1b9)]['id']);for(let _0x28aaa8=0x0;_0x28aaa8<_0x300ec6[_0x4be0e2(0x181)];_0x28aaa8+=0x1){const _0x4a38a8=_0x300ec6[_0x28aaa8];for(let _0x1d2032=0x0;_0x1d2032<_0x4a38a8[_0x4be0e2(0x1a5)][_0x4be0e2(0x181)];_0x1d2032+=0x1){const _0x3ae148=_0x4a38a8[_0x4be0e2(0x1a5)][_0x1d2032],_0x30af6e=_0x237f16[_0x4be0e2(0x1ea)]();_0x30af6e[_0x4be0e2(0x19c)](_0x4be0e2(0x1d3),_0x3ae148['id']),_0xace4a6[_0x4be0e2(0x1ef)](db[_0x4be0e2(0x19e)][_0x4be0e2(0x1f3)](_0x30af6e[_0x4be0e2(0x18c)](),{'type':QueryTypes['SELECT']})[_0x4be0e2(0x1e2)](function(_0x2c4c54){const _0x1252d2=_0x4be0e2;if(_0x2c4c54[_0x1252d2(0x181)]===0x1)return _0x3ae148['id'];else{const _0x3538a4=_[_0x1252d2(0x1be)](_[_0x1252d2(0x19b)](_0x2c4c54,_0x1252d2(0x1b6)),function(_0x1cc199){const _0x578718=_0x1252d2;return _[_0x578718(0x187)](_0x5268ca,_0x1cc199);});if(_0x3538a4)return _0x3ae148['id'];}}));}}return Promise[_0x4be0e2(0x1cc)](_0xace4a6)[_0x4be0e2(0x1e2)](function(_0x51de70){const _0x517af9=_0x4be0e2;return _0x1b8369=_(_0x1b8369)['union'](_0x51de70)[_0x517af9(0x1af)]()[_0x517af9(0x1a2)](),db[_0x517af9(0x1df)]['findOne']({'where':{'id':_0x4272f3[_0x517af9(0x1b9)]['id']}})[_0x517af9(0x1e2)](function(_0x302ebd){const _0x7c0309=_0x517af9;return db[_0x7c0309(0x19e)][_0x7c0309(0x1e9)](function(_0xa01c28){const _0x5b5cc8=_0x7c0309;return _0x302ebd[_0x5b5cc8(0x18b)](_0x4272f3[_0x5b5cc8(0x1f3)][_0x5b5cc8(0x1e4)],{'transaction':_0xa01c28})[_0x5b5cc8(0x1e2)](function(){const _0x379f06=_0x5b5cc8;if(!_[_0x379f06(0x1d7)](_0x1b8369))return _0x302ebd[_0x379f06(0x1c3)](_0x1b8369,{'transaction':_0xa01c28});})['then'](function(){const _0x5bf5e9=_0x5b5cc8;_0x1b8369[_0x5bf5e9(0x1f1)](function(_0xb9d65e){const _0x15972a=_0x5bf5e9;socket['emit'](_0x15972a(0x1bd),{'UserId':_0xb9d65e,'MailQueueId':_0x302ebd['id']});});});});});});})[_0xe2186c(0x1e2)](respondWithStatusCode(_0x48bfbf,null))[_0xe2186c(0x19f)](handleError(_0x48bfbf,null));},exports[a505_0x2dfb9c(0x189)]=function(_0x77134f,_0x52dfaa){const _0x26fbf8=a505_0x2dfb9c;return db['MailQueue']['findOne']({'where':{'id':_0x77134f[_0x26fbf8(0x1b9)]['id']}})['then'](function(_0x5f050c){const _0x33484c=_0x26fbf8;if(_0x5f050c)return _0x5f050c[_0x33484c(0x189)](_0x77134f[_0x33484c(0x1d5)][_0x33484c(0x1e4)],{'through':_[_0x33484c(0x1b2)](_0x77134f[_0x33484c(0x1d5)],[_0x33484c(0x1e4),'id'])})[_0x33484c(0x1e2)](function(_0x2e917d){const _0x3ce9ed=_0x33484c;for(let _0x51e817=0x0;_0x51e817<_0x77134f[_0x3ce9ed(0x1d5)]['ids'][_0x3ce9ed(0x181)];_0x51e817+=0x1){socket[_0x3ce9ed(0x1b1)](_0x3ce9ed(0x1c2),{'UserId':_0x77134f[_0x3ce9ed(0x1d5)][_0x3ce9ed(0x1e4)][_0x51e817],'MailQueueId':_0x77134f[_0x3ce9ed(0x1b9)]['id']});}return _0x2e917d;});})[_0x26fbf8(0x1e2)](respondWithResult(_0x52dfaa,null))[_0x26fbf8(0x19f)](handleError(_0x52dfaa,null));},exports['removeAgents']=function(_0x4cff96,_0x1fed23){const _0x3a0e82=a505_0x2dfb9c;return db[_0x3a0e82(0x1df)][_0x3a0e82(0x1e8)]({'where':{'id':_0x4cff96[_0x3a0e82(0x1b9)]['id']}})[_0x3a0e82(0x1e2)](handleEntityNotFound(_0x1fed23,null))[_0x3a0e82(0x1e2)](function(_0x2afad4){const _0x21476d=_0x3a0e82;if(_0x2afad4)return _0x2afad4['removeAgents'](_0x4cff96['query'][_0x21476d(0x1e4)])['then'](function(){const _0x18d915=_0x21476d;if(_[_0x18d915(0x1a8)](_0x4cff96['query']['ids']))for(let _0x44ef9e=0x0;_0x44ef9e<_0x4cff96[_0x18d915(0x1f3)][_0x18d915(0x1e4)][_0x18d915(0x181)];_0x44ef9e+=0x1){socket[_0x18d915(0x1b1)](_0x18d915(0x1bd),{'UserId':Number(_0x4cff96[_0x18d915(0x1f3)]['ids'][_0x44ef9e]),'MailQueueId':Number(_0x4cff96[_0x18d915(0x1b9)]['id'])});}else socket[_0x18d915(0x1b1)](_0x18d915(0x1bd),{'UserId':Number(_0x4cff96[_0x18d915(0x1f3)][_0x18d915(0x1e4)]),'MailQueueId':Number(_0x4cff96[_0x18d915(0x1b9)]['id'])});});})[_0x3a0e82(0x1e2)](respondWithStatusCode(_0x1fed23,null))['catch'](handleError(_0x1fed23,null));},exports[a505_0x2dfb9c(0x19a)]=function(_0x50ca3b,_0x2403e0){const _0x21e2c8=a505_0x2dfb9c;let _0x45e5b4={};const _0x19be70={};let _0x3b3c72,_0x3ad9ac;return db[_0x21e2c8(0x1df)]['findOne']({'where':{'id':_0x50ca3b[_0x21e2c8(0x1b9)]['id']}})[_0x21e2c8(0x1e2)](handleEntityNotFound(_0x2403e0,null))[_0x21e2c8(0x1e2)](function(_0x286781){const _0x9e4c9f=_0x21e2c8;if(_0x286781)return _0x3b3c72=_0x286781,_0x19be70[_0x9e4c9f(0x1a4)]=_[_0x9e4c9f(0x1ec)](db['User']['rawAttributes']),_0x19be70[_0x9e4c9f(0x1f3)]=_[_0x9e4c9f(0x1ec)](_0x50ca3b[_0x9e4c9f(0x1f3)]),_0x19be70[_0x9e4c9f(0x1d8)]=_[_0x9e4c9f(0x1c0)](_0x19be70[_0x9e4c9f(0x1a4)],_0x19be70[_0x9e4c9f(0x1f3)]),_0x45e5b4[_0x9e4c9f(0x1f4)]=_[_0x9e4c9f(0x1c0)](_0x19be70[_0x9e4c9f(0x1a4)],qs[_0x9e4c9f(0x1d1)](_0x50ca3b['query']['fields'])),_0x45e5b4[_0x9e4c9f(0x1f4)]=_0x45e5b4[_0x9e4c9f(0x1f4)]['length']?_0x45e5b4[_0x9e4c9f(0x1f4)]:_0x19be70[_0x9e4c9f(0x1a4)],_0x45e5b4[_0x9e4c9f(0x1a6)]=qs[_0x9e4c9f(0x190)](_0x50ca3b[_0x9e4c9f(0x1f3)][_0x9e4c9f(0x190)]),_0x45e5b4[_0x9e4c9f(0x19c)]=qs[_0x9e4c9f(0x1d8)](_[_0x9e4c9f(0x182)](_0x50ca3b[_0x9e4c9f(0x1f3)],_0x19be70[_0x9e4c9f(0x1d8)])),_0x50ca3b[_0x9e4c9f(0x1f3)]['filter']&&(_0x45e5b4[_0x9e4c9f(0x19c)]=_['merge'](_0x45e5b4[_0x9e4c9f(0x19c)],{[Op['or']]:_[_0x9e4c9f(0x19b)](_0x45e5b4[_0x9e4c9f(0x1f4)],function(_0x6f04a5){const _0x595f87=_0x9e4c9f,_0x43ea43={};return _0x43ea43[_0x6f04a5]={[Op[_0x595f87(0x1c9)]]:'%'+_0x50ca3b[_0x595f87(0x1f3)][_0x595f87(0x1b5)]+'%'},_0x43ea43;})})),_0x45e5b4=_['merge']({},_0x45e5b4,_0x50ca3b[_0x9e4c9f(0x1b0)]),_0x3b3c72[_0x9e4c9f(0x19a)](_0x45e5b4);})[_0x21e2c8(0x1e2)](function(_0x4e7f9f){const _0x5582e0=_0x21e2c8;if(_0x4e7f9f)return _0x3ad9ac=_0x4e7f9f[_0x5582e0(0x181)],typeof _0x50ca3b[_0x5582e0(0x1f3)][_0x5582e0(0x1ba)]===_0x5582e0(0x19d)&&(_0x45e5b4[_0x5582e0(0x1ac)]=qs[_0x5582e0(0x1ac)](_0x50ca3b['query'][_0x5582e0(0x1ac)]),_0x45e5b4[_0x5582e0(0x191)]=qs['offset'](_0x50ca3b['query'][_0x5582e0(0x191)])),_0x3b3c72[_0x5582e0(0x19a)](_0x45e5b4);})['then'](function(_0x3791d3){if(_0x3791d3)return _0x3791d3?{'count':_0x3ad9ac,'rows':_0x3791d3}:null;})['then'](respondWithResult(_0x2403e0,null))[_0x21e2c8(0x19f)](handleError(_0x2403e0,null));}; \ No newline at end of file +const a505_0x2cbc=['Content-Range','options','ut.UserId\x20=\x20?','length','UserMailQueue','format','findAll','squel','updatedAt','findOrCreate','clone','query','includeAll','json','UserId','sort','error','includes','rawAttributes','fields','MailQueues','filters','getAgents','tq.TeamId','MailQueueId','addAgents','forEach','SIP','like','createdAt','catch','agent','params','../../mysqldb','destroy','TeamId','get','util','body','stack','end','%s/%s','flatMap','MailQueue','map','findAndCountAll','api','voicePause','UserProfileResource','./mailQueue.socket','findOne','name','all','create','Team','model','type','filter','offset','order','attributes','join','getTeams','include','../../rediscache','toString','ids','rows','isArray','getMembers','push','User','lodash','user','index','pick','set','emit','union','keys','update','intersection','../../config/logger','sequelize','undefined','status','team_has_mail_queues','Unable\x20to\x20retrieve\x20the\x20current\x20user','describe','role','where','limit','userMailQueue:remove','sendStatus','UserProfileSection','Agents','then','key','merge','removeAgents','online','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','mailPause','transaction','addTeams','interface','nolimit','userMailQueue:save','count','fieldName','from','../../components/parsers/qs'];(function(_0x21bf7b,_0x1a89c1){const _0x2cbc3f=function(_0x15a691){while(--_0x15a691){_0x21bf7b['push'](_0x21bf7b['shift']());}};_0x2cbc3f(++_0x1a89c1);}(a505_0x2cbc,0x1bb));const a505_0x15a6=function(_0x21bf7b,_0x1a89c1){_0x21bf7b=_0x21bf7b-0x1cc;let _0x2cbc3f=a505_0x2cbc[_0x21bf7b];return _0x2cbc3f;};const a505_0x33a4e5=a505_0x15a6;'use strict';const util=require(a505_0x33a4e5(0x1f6)),_=require(a505_0x33a4e5(0x219)),squel=require(a505_0x33a4e5(0x1d8)),qs=require(a505_0x33a4e5(0x1d0)),logger=require(a505_0x33a4e5(0x223))(a505_0x33a4e5(0x1ff)),{getSocket}=require(a505_0x33a4e5(0x211)),socket=getSocket(),{db}=require(a505_0x33a4e5(0x1f2)),{Op,QueryTypes}=require(a505_0x33a4e5(0x224));require(a505_0x33a4e5(0x202))['register'](socket);function respondWithStatusCode(_0x2b319c,_0x2a853f){return _0x2a853f=_0x2a853f||0xcc,function(_0x16dee7){const _0x46b455=a505_0x15a6;if(_0x16dee7)return _0x2b319c['sendStatus'](_0x2a853f);return _0x2b319c['status'](_0x2a853f)[_0x46b455(0x1f9)]();};}function respondWithResult(_0x4e77ba,_0x27ac54){return _0x27ac54=_0x27ac54||0xc8,function(_0x16217f){const _0x56089=a505_0x15a6;if(_0x16217f)return _0x4e77ba[_0x56089(0x226)](_0x27ac54)['json'](_0x16217f);};}function respondWithFilteredResult(_0x281f3e,_0x45e4f8){return function(_0x20a220){const _0x1148e6=a505_0x15a6;if(_0x20a220){const _0x46dfe8=_0x20a220['count'],_0x565487=_0x45e4f8['offset'];let _0x4b9a0b=_0x45e4f8['offset']+_0x45e4f8[_0x1148e6(0x22c)],_0x580c08;return _0x4b9a0b>=_0x46dfe8?(_0x4b9a0b=_0x46dfe8,_0x580c08=0xc8):_0x580c08=0xce,_0x281f3e['status'](_0x580c08),_0x281f3e[_0x1148e6(0x21d)](_0x1148e6(0x1d1),_0x565487+'-'+_0x4b9a0b+'/'+_0x46dfe8)[_0x1148e6(0x1de)](_0x20a220);}return null;};}function saveUpdates(_0x43ea80){return function(_0x179fff){const _0xd5ba42=a505_0x15a6;if(_0x179fff)return _0x179fff[_0xd5ba42(0x221)](_0x43ea80)[_0xd5ba42(0x231)](function(_0x5280d6){return _0x5280d6;});return null;};}function removeEntity(_0x30f3d6){return function(_0x1f578b){const _0x531b24=a505_0x15a6;if(_0x1f578b)return _0x1f578b[_0x531b24(0x1f3)]()['then'](function(){const _0x4a6aa9=_0x531b24,_0x295303=_0x1f578b[_0x4a6aa9(0x1f5)]({'plain':!![]}),_0x447392=_0x4a6aa9(0x1e5);return db['UserProfileResource'][_0x4a6aa9(0x1f3)]({'where':{'type':_0x447392,'resourceId':_0x295303['id']}})[_0x4a6aa9(0x231)](function(){return _0x1f578b;});})[_0x531b24(0x231)](function(){const _0x1175ff=_0x531b24;_0x30f3d6['status'](0xcc)[_0x1175ff(0x1f9)]();});};}function handleEntityNotFound(_0x3c7f97){return function(_0x5c187a){const _0x20bd78=a505_0x15a6;return!_0x5c187a&&_0x3c7f97[_0x20bd78(0x22e)](0x194),_0x5c187a;};}function handleError(_0x32be3d,_0x21ce3){return _0x21ce3=_0x21ce3||0x1f4,function(_0x184e12){const _0x1deb89=a505_0x15a6;logger[_0x1deb89(0x1e1)](_0x184e12[_0x1deb89(0x1f8)]),_0x184e12[_0x1deb89(0x204)]&&delete _0x184e12[_0x1deb89(0x204)],_0x32be3d[_0x1deb89(0x226)](_0x21ce3)['send'](_0x184e12);};}exports[a505_0x33a4e5(0x21b)]=function(_0x4d6a0c,_0x23426f){const _0x157a56=a505_0x33a4e5;let _0x5b5b9c={};const _0x9d137c={},_0x508b77={'count':0x0,'rows':[]},_0x47b2c4=_[_0x157a56(0x1fd)](db[_0x157a56(0x1fc)][_0x157a56(0x1e3)],function(_0x11f473){const _0x2a5a1c=_0x157a56;return{'name':_0x11f473[_0x2a5a1c(0x1ce)],'type':_0x11f473[_0x2a5a1c(0x209)][_0x2a5a1c(0x232)]};});_0x9d137c[_0x157a56(0x208)]=_[_0x157a56(0x1fd)](_0x47b2c4,_0x157a56(0x204)),_0x9d137c[_0x157a56(0x1dc)]=_[_0x157a56(0x220)](_0x4d6a0c['query']),_0x9d137c['filters']=_[_0x157a56(0x222)](_0x9d137c[_0x157a56(0x208)],_0x9d137c['query']),_0x5b5b9c[_0x157a56(0x20d)]=_[_0x157a56(0x222)](_0x9d137c[_0x157a56(0x208)],qs['fields'](_0x4d6a0c[_0x157a56(0x1dc)][_0x157a56(0x1e4)])),_0x5b5b9c[_0x157a56(0x20d)]=_0x5b5b9c[_0x157a56(0x20d)][_0x157a56(0x1d4)]?_0x5b5b9c['attributes']:_0x9d137c[_0x157a56(0x208)];typeof _0x4d6a0c['query']['nolimit']===_0x157a56(0x225)&&(_0x5b5b9c['limit']=qs[_0x157a56(0x22c)](_0x4d6a0c[_0x157a56(0x1dc)][_0x157a56(0x22c)]),_0x5b5b9c[_0x157a56(0x20b)]=qs['offset'](_0x4d6a0c[_0x157a56(0x1dc)][_0x157a56(0x20b)]));_0x5b5b9c['order']=qs['sort'](_0x4d6a0c[_0x157a56(0x1dc)]['sort']),_0x5b5b9c[_0x157a56(0x22b)]=qs['filters'](_[_0x157a56(0x21c)](_0x4d6a0c[_0x157a56(0x1dc)],_0x9d137c['filters']),_0x47b2c4);_0x4d6a0c['query'][_0x157a56(0x20a)]&&(_0x5b5b9c[_0x157a56(0x22b)]=_['merge'](_0x5b5b9c['where'],{[Op['or']]:_[_0x157a56(0x1fd)](_0x47b2c4,function(_0x28d453){const _0x45da13=_0x157a56;if(_0x28d453[_0x45da13(0x209)]!=='VIRTUAL'){const _0x3055cc={};return _0x3055cc[_0x28d453[_0x45da13(0x204)]]={[Op[_0x45da13(0x1ed)]]:'%'+_0x4d6a0c[_0x45da13(0x1dc)][_0x45da13(0x20a)]+'%'},_0x3055cc;}})}));_0x5b5b9c=_[_0x157a56(0x233)]({},_0x5b5b9c,_0x4d6a0c['options']);const _0x42de02={'where':_0x5b5b9c[_0x157a56(0x22b)]};return db['MailQueue'][_0x157a56(0x1cd)](_0x42de02)[_0x157a56(0x231)](function(_0x510570){const _0x150a8c=_0x157a56;return _0x508b77[_0x150a8c(0x1cd)]=_0x510570,_0x4d6a0c[_0x150a8c(0x1dc)][_0x150a8c(0x1dd)]&&(_0x5b5b9c[_0x150a8c(0x210)]=[{'all':!![]}]),db[_0x150a8c(0x1fc)][_0x150a8c(0x1d7)](_0x5b5b9c);})[_0x157a56(0x231)](function(_0x268207){const _0x3656c0=_0x157a56;return _0x508b77[_0x3656c0(0x214)]=_0x268207,_0x508b77;})['then'](respondWithFilteredResult(_0x23426f,_0x5b5b9c))[_0x157a56(0x1ef)](handleError(_0x23426f,null));},exports['show']=function(_0x33008b,_0x434a9c){const _0x4379b3=a505_0x33a4e5;let _0x4871a3={'raw':!![],'where':{'id':_0x33008b['params']['id']}};const _0x4c1622={};return _0x4c1622[_0x4379b3(0x208)]=_['keys'](db[_0x4379b3(0x1fc)][_0x4379b3(0x1e3)]),_0x4c1622[_0x4379b3(0x1dc)]=_[_0x4379b3(0x220)](_0x33008b[_0x4379b3(0x1dc)]),_0x4c1622['filters']=_[_0x4379b3(0x222)](_0x4c1622[_0x4379b3(0x208)],_0x4c1622['query']),_0x4871a3[_0x4379b3(0x20d)]=_['intersection'](_0x4c1622[_0x4379b3(0x208)],qs[_0x4379b3(0x1e4)](_0x33008b[_0x4379b3(0x1dc)][_0x4379b3(0x1e4)])),_0x4871a3[_0x4379b3(0x20d)]=_0x4871a3[_0x4379b3(0x20d)][_0x4379b3(0x1d4)]?_0x4871a3[_0x4379b3(0x20d)]:_0x4c1622[_0x4379b3(0x208)],_0x33008b['query']['includeAll']&&(_0x4871a3[_0x4379b3(0x210)]=[{'all':!![]}]),_0x4871a3=_[_0x4379b3(0x233)]({},_0x4871a3,_0x33008b[_0x4379b3(0x1d2)]),db[_0x4379b3(0x1fc)]['findOne'](_0x4871a3)[_0x4379b3(0x231)](handleEntityNotFound(_0x434a9c,null))[_0x4379b3(0x231)](respondWithResult(_0x434a9c,null))[_0x4379b3(0x1ef)](handleError(_0x434a9c,null));},exports[a505_0x33a4e5(0x206)]=function(_0x1692ee,_0x30888c){const _0x20cbb6=a505_0x33a4e5;return db[_0x20cbb6(0x1fc)][_0x20cbb6(0x206)](_0x1692ee[_0x20cbb6(0x1f7)],{})[_0x20cbb6(0x231)](function(_0x1719d2){const _0x505d1d=_0x20cbb6,_0x3f47af=_0x1692ee[_0x505d1d(0x21a)][_0x505d1d(0x1f5)]({'plain':!![]});if(!_0x3f47af)throw new Error(_0x505d1d(0x228));if(_0x3f47af[_0x505d1d(0x22a)]==='user'){const _0x5ae013=_0x1719d2['get']({'plain':!![]}),_0x340725=_0x505d1d(0x1e5);return db[_0x505d1d(0x22f)][_0x505d1d(0x203)]({'where':{'name':_0x340725,'userProfileId':_0x3f47af['userProfileId']},'raw':!![]})['then'](function(_0x488802){const _0x592169=_0x505d1d;return _0x488802&&_0x488802['autoAssociation']===0x0?db[_0x592169(0x201)]['create']({'name':_0x5ae013[_0x592169(0x204)],'resourceId':_0x5ae013['id'],'type':_0x488802[_0x592169(0x204)],'sectionId':_0x488802['id']},{})['then'](function(){return _0x1719d2;}):_0x1719d2;})[_0x505d1d(0x1ef)](function(_0x433c5d){const _0x5d8e38=_0x505d1d;logger[_0x5d8e38(0x1e1)](_0x5d8e38(0x236),_0x433c5d);throw _0x433c5d;});}return _0x1719d2;})[_0x20cbb6(0x231)](respondWithResult(_0x30888c,0xc9))[_0x20cbb6(0x1ef)](handleError(_0x30888c,null));},exports[a505_0x33a4e5(0x221)]=function(_0x31a31d,_0x1d935f){const _0x17ffdb=a505_0x33a4e5;return _0x31a31d['body']['id']&&delete _0x31a31d[_0x17ffdb(0x1f7)]['id'],db[_0x17ffdb(0x1fc)][_0x17ffdb(0x203)]({'where':{'id':_0x31a31d[_0x17ffdb(0x1f1)]['id']}})[_0x17ffdb(0x231)](handleEntityNotFound(_0x1d935f,null))[_0x17ffdb(0x231)](saveUpdates(_0x31a31d[_0x17ffdb(0x1f7)],null))[_0x17ffdb(0x231)](respondWithResult(_0x1d935f,null))['catch'](handleError(_0x1d935f,null));},exports['destroy']=function(_0x30fe95,_0x54ddc8){const _0x3b759e=a505_0x33a4e5;return db['MailQueue']['findOne']({'where':{'id':_0x30fe95['params']['id']}})[_0x3b759e(0x231)](handleEntityNotFound(_0x54ddc8,null))[_0x3b759e(0x231)](removeEntity(_0x54ddc8,null))[_0x3b759e(0x1ef)](handleError(_0x54ddc8,null));},exports[a505_0x33a4e5(0x229)]=function(_0x276892,_0x3435d0){const _0x2a30e5=a505_0x33a4e5;return db[_0x2a30e5(0x1fc)]['describe']()['then'](respondWithResult(_0x3435d0,null))[_0x2a30e5(0x1ef)](handleError(_0x3435d0,null));},exports[a505_0x33a4e5(0x216)]=function(_0x1ec679,_0x12027e){const _0x42583f=a505_0x33a4e5;let _0x421389={'raw':!![],'where':{}};const _0x556aeb={};let _0x19fabe;return db[_0x42583f(0x1fc)]['findOne']({'where':{'id':_0x1ec679[_0x42583f(0x1f1)]['id']}})['then'](handleEntityNotFound(_0x12027e,null))[_0x42583f(0x231)](function(_0x2af794){const _0x28c545=_0x42583f;if(_0x2af794)return _0x19fabe=_0x2af794[_0x28c545(0x1f5)]({'plain':!![]}),_0x556aeb[_0x28c545(0x208)]=_[_0x28c545(0x220)](db['UserMailQueue'][_0x28c545(0x1e3)]),_0x556aeb['query']=_[_0x28c545(0x220)](_0x1ec679[_0x28c545(0x1dc)]),_0x556aeb[_0x28c545(0x1e6)]=_[_0x28c545(0x222)](_0x556aeb[_0x28c545(0x208)],_0x556aeb[_0x28c545(0x1dc)]),_0x421389[_0x28c545(0x20d)]=_[_0x28c545(0x222)](_0x556aeb[_0x28c545(0x208)],qs['fields'](_0x1ec679[_0x28c545(0x1dc)][_0x28c545(0x1e4)])),_0x421389['attributes']=_0x421389[_0x28c545(0x20d)][_0x28c545(0x1d4)]?_0x421389['attributes']:_0x556aeb[_0x28c545(0x208)],typeof _0x1ec679[_0x28c545(0x1dc)][_0x28c545(0x23b)]===_0x28c545(0x225)&&(_0x421389['limit']=qs[_0x28c545(0x22c)](_0x1ec679[_0x28c545(0x1dc)]['limit']),_0x421389[_0x28c545(0x20b)]=qs[_0x28c545(0x20b)](_0x1ec679[_0x28c545(0x1dc)][_0x28c545(0x20b)])),_0x421389[_0x28c545(0x20c)]=qs['sort'](_0x1ec679[_0x28c545(0x1dc)]['sort']),_0x421389[_0x28c545(0x22b)]=qs['filters'](_[_0x28c545(0x21c)](_0x1ec679[_0x28c545(0x1dc)],_0x556aeb['filters'])),_0x421389[_0x28c545(0x22b)][_0x28c545(0x1e9)]=_0x2af794['id'],_0x1ec679[_0x28c545(0x1dc)]['filter']&&(_0x421389['where']=_[_0x28c545(0x233)](_0x421389[_0x28c545(0x22b)],{[Op['or']]:_[_0x28c545(0x1fd)](_0x421389[_0x28c545(0x20d)],function(_0x1bac05){const _0x5ea2f0=_0x28c545,_0x638bf1={};return _0x638bf1[_0x1bac05]={[Op[_0x5ea2f0(0x1ed)]]:'%'+_0x1ec679['query'][_0x5ea2f0(0x20a)]+'%'},_0x638bf1;})})),_0x421389=_[_0x28c545(0x233)]({},_0x421389,_0x1ec679['options']),db[_0x28c545(0x1d5)]['findAll'](_0x421389);})['then'](function(_0x1f1e25){const _0x527ee5=_0x42583f;if(_0x1f1e25)return db['User'][_0x527ee5(0x1fe)]({'where':{'id':_['map'](_0x1f1e25,_0x527ee5(0x1df)),'role':_0x527ee5(0x1f0)},'attributes':['id',_0x527ee5(0x204),_0x527ee5(0x237),_0x527ee5(0x1d9),_0x527ee5(0x1ee)]});})[_0x42583f(0x231)](function(_0x319022){const _0x1b9bf9=_0x42583f;return _0x319022?{'count':_0x319022[_0x1b9bf9(0x1cd)],'rows':_[_0x1b9bf9(0x1fd)](_0x319022[_0x1b9bf9(0x214)],function(_0x2f3b44){const _0x241afd=_0x1b9bf9;return{'membername':_0x2f3b44['name'],'UserId':_0x2f3b44['id'],'queue_name':_0x19fabe[_0x241afd(0x204)],'MailQueueId':_0x19fabe['id'],'interface':util[_0x241afd(0x1d6)](_0x241afd(0x1fa),_0x241afd(0x1ec),_0x2f3b44[_0x241afd(0x204)]),'penalty':0x0,'paused':_0x2f3b44[_0x241afd(0x237)],'createdAt':_0x2f3b44[_0x241afd(0x1ee)],'updatedAt':_0x2f3b44['updatedAt']};})}:{'count':0x0,'rows':[]};})[_0x42583f(0x231)](respondWithFilteredResult(_0x12027e,_0x421389))['catch'](handleError(_0x12027e,null));},exports['getTeams']=function(_0x39b0be,_0x4ff02a){const _0x49e3c5=a505_0x33a4e5;let _0x4ca72e={};const _0x360570={};let _0x341d15,_0x56bf17;return db['MailQueue'][_0x49e3c5(0x203)]({'where':{'id':_0x39b0be[_0x49e3c5(0x1f1)]['id']}})[_0x49e3c5(0x231)](handleEntityNotFound(_0x4ff02a,null))[_0x49e3c5(0x231)](function(_0x4123d6){const _0x2a1104=_0x49e3c5;if(_0x4123d6)return _0x341d15=_0x4123d6,_0x360570[_0x2a1104(0x208)]=_[_0x2a1104(0x220)](db['Team'][_0x2a1104(0x1e3)]),_0x360570[_0x2a1104(0x1dc)]=_['keys'](_0x39b0be[_0x2a1104(0x1dc)]),_0x360570['filters']=_['intersection'](_0x360570[_0x2a1104(0x208)],_0x360570[_0x2a1104(0x1dc)]),_0x4ca72e['attributes']=_[_0x2a1104(0x222)](_0x360570['model'],qs[_0x2a1104(0x1e4)](_0x39b0be[_0x2a1104(0x1dc)][_0x2a1104(0x1e4)])),_0x4ca72e[_0x2a1104(0x20d)]=_0x4ca72e[_0x2a1104(0x20d)]['length']?_0x4ca72e[_0x2a1104(0x20d)]:_0x360570['model'],_0x4ca72e[_0x2a1104(0x20c)]=qs[_0x2a1104(0x1e0)](_0x39b0be['query'][_0x2a1104(0x1e0)]),_0x4ca72e[_0x2a1104(0x22b)]=qs['filters'](_['pick'](_0x39b0be[_0x2a1104(0x1dc)],_0x360570['filters'])),_0x39b0be[_0x2a1104(0x1dc)]['filter']&&(_0x4ca72e['where']=_[_0x2a1104(0x233)](_0x4ca72e[_0x2a1104(0x22b)],{[Op['or']]:_[_0x2a1104(0x1fd)](_0x4ca72e['attributes'],function(_0x154d75){const _0x433470=_0x2a1104,_0x5d256b={};return _0x5d256b[_0x154d75]={[Op['like']]:'%'+_0x39b0be['query'][_0x433470(0x20a)]+'%'},_0x5d256b;})})),_0x4ca72e=_['merge']({},_0x4ca72e,_0x39b0be[_0x2a1104(0x1d2)]),_0x341d15[_0x2a1104(0x20f)](_0x4ca72e);})['then'](function(_0x2ce21f){const _0x4775a1=_0x49e3c5;if(_0x2ce21f)return _0x56bf17=_0x2ce21f[_0x4775a1(0x1d4)],typeof _0x39b0be[_0x4775a1(0x1dc)][_0x4775a1(0x23b)]===_0x4775a1(0x225)&&(_0x4ca72e[_0x4775a1(0x22c)]=qs[_0x4775a1(0x22c)](_0x39b0be[_0x4775a1(0x1dc)][_0x4775a1(0x22c)]),_0x4ca72e['offset']=qs[_0x4775a1(0x20b)](_0x39b0be[_0x4775a1(0x1dc)][_0x4775a1(0x20b)])),_0x341d15[_0x4775a1(0x20f)](_0x4ca72e);})['then'](function(_0x18919d){if(_0x18919d)return _0x18919d?{'count':_0x56bf17,'rows':_0x18919d}:null;})[_0x49e3c5(0x231)](respondWithResult(_0x4ff02a,null))['catch'](handleError(_0x4ff02a,null));},exports['addTeams']=function(_0x184c78,_0x574314){const _0x30b59b=a505_0x33a4e5,_0x18ae17=_0x184c78[_0x30b59b(0x1f7)][_0x30b59b(0x213)];return db[_0x30b59b(0x207)][_0x30b59b(0x1d7)]({'where':{'id':_0x18ae17},'attributes':['id'],'include':[{'model':db[_0x30b59b(0x218)],'as':_0x30b59b(0x230),'attributes':['id','name',_0x30b59b(0x235),_0x30b59b(0x200),_0x30b59b(0x23a)],'raw':!![]}]})[_0x30b59b(0x231)](function(_0x27e276){const _0x3d2592=_0x30b59b;if(_0x27e276){const _0x4bb2b7=_[_0x3d2592(0x1fb)](_0x27e276,function(_0x308d23){const _0x1cfabd=_0x3d2592,_0x583444=_0x308d23[_0x1cfabd(0x1f5)]({'plain':!![]});return _0x583444['Agents'];});return db[_0x3d2592(0x1fc)][_0x3d2592(0x203)]({'where':{'id':_0x184c78[_0x3d2592(0x1f1)]['id']}})['then'](function(_0x482de0){const _0x5c0c5d=_0x3d2592;return db['sequelize'][_0x5c0c5d(0x238)](function(_0x230e64){const _0x45f264=_0x5c0c5d;return _0x482de0[_0x45f264(0x239)](_0x18ae17,{'transaction':_0x230e64})[_0x45f264(0x231)](function(){const _0x181538=_0x45f264;return Promise['all'](_0x4bb2b7[_0x181538(0x1fd)](_0x1ff090=>{const _0x4ed28c=_0x181538;return db['UserMailQueue'][_0x4ed28c(0x1da)]({'where':{'UserId':_0x1ff090['id'],'MailQueueId':_0x184c78[_0x4ed28c(0x1f1)]['id']},'transaction':_0x230e64});}));})[_0x45f264(0x231)](function(){const _0xacfa5=_0x45f264;_0x4bb2b7[_0xacfa5(0x1eb)](function(_0x25545f){const _0x3fd1b8=_0xacfa5;socket[_0x3fd1b8(0x21e)](_0x3fd1b8(0x1cc),{'UserId':_0x25545f['id'],'MailQueueId':_0x482de0['id']});});});});});}})['then'](respondWithStatusCode(_0x574314,null))[_0x30b59b(0x1ef)](handleError(_0x574314,null));},exports['removeTeams']=function(_0x21e8fb,_0xc8564d){const _0x257e53=a505_0x33a4e5;return db[_0x257e53(0x207)]['findAll']({'where':{'id':_0x21e8fb[_0x257e53(0x1dc)][_0x257e53(0x213)]},'attributes':['id'],'include':[{'model':db[_0x257e53(0x218)],'as':_0x257e53(0x230),'attributes':['id'],'raw':!![]}]})['then'](handleEntityNotFound(_0xc8564d,null))[_0x257e53(0x231)](function(_0x24ee68){const _0x2a45f1=_0x257e53,_0x44da39=_['map'](_0x24ee68,'id');let _0xc3e29=[];const _0x2ea2e2=[],_0x4f7f87=squel['select']();_0x4f7f87['field'](_0x2a45f1(0x1e8))[_0x2a45f1(0x1cf)](_0x2a45f1(0x227),'tq')[_0x2a45f1(0x20e)]('user_has_teams','ut','ut.TeamId\x20=\x20tq.TeamId')[_0x2a45f1(0x22b)]('MailQueueId\x20=\x20?',_0x21e8fb['params']['id']);for(let _0x3aa253=0x0;_0x3aa253<_0x24ee68[_0x2a45f1(0x1d4)];_0x3aa253+=0x1){const _0x5f16c1=_0x24ee68[_0x3aa253];for(let _0x56c7b2=0x0;_0x56c7b2<_0x5f16c1['Agents'][_0x2a45f1(0x1d4)];_0x56c7b2+=0x1){const _0x2f1016=_0x5f16c1[_0x2a45f1(0x230)][_0x56c7b2],_0x4a4c6=_0x4f7f87[_0x2a45f1(0x1db)]();_0x4a4c6['where'](_0x2a45f1(0x1d3),_0x2f1016['id']),_0x2ea2e2[_0x2a45f1(0x217)](db[_0x2a45f1(0x224)][_0x2a45f1(0x1dc)](_0x4a4c6[_0x2a45f1(0x212)](),{'type':QueryTypes['SELECT']})['then'](function(_0x1d3419){const _0x4d0f93=_0x2a45f1;if(_0x1d3419[_0x4d0f93(0x1d4)]===0x1)return _0x2f1016['id'];else{const _0x5dfd6e=_['every'](_[_0x4d0f93(0x1fd)](_0x1d3419,_0x4d0f93(0x1f4)),function(_0x10ef53){const _0x663a33=_0x4d0f93;return _[_0x663a33(0x1e2)](_0x44da39,_0x10ef53);});if(_0x5dfd6e)return _0x2f1016['id'];}}));}}return Promise[_0x2a45f1(0x205)](_0x2ea2e2)['then'](function(_0x5981dc){const _0x195947=_0x2a45f1;return _0xc3e29=_(_0xc3e29)[_0x195947(0x21f)](_0x5981dc)['compact']()['value'](),db[_0x195947(0x1fc)]['findOne']({'where':{'id':_0x21e8fb[_0x195947(0x1f1)]['id']}})[_0x195947(0x231)](function(_0x411feb){const _0x46006b=_0x195947;return db[_0x46006b(0x224)][_0x46006b(0x238)](function(_0x5b2513){const _0x5b9c4c=_0x46006b;return _0x411feb['removeTeams'](_0x21e8fb[_0x5b9c4c(0x1dc)][_0x5b9c4c(0x213)],{'transaction':_0x5b2513})[_0x5b9c4c(0x231)](function(){if(!_['isEmpty'](_0xc3e29))return _0x411feb['removeAgents'](_0xc3e29,{'transaction':_0x5b2513});})['then'](function(){_0xc3e29['forEach'](function(_0x4ccfe9){const _0x2de420=a505_0x15a6;socket[_0x2de420(0x21e)]('userMailQueue:remove',{'UserId':_0x4ccfe9,'MailQueueId':_0x411feb['id']});});});});});});})[_0x257e53(0x231)](respondWithStatusCode(_0xc8564d,null))[_0x257e53(0x1ef)](handleError(_0xc8564d,null));},exports['addAgents']=function(_0x30edc3,_0x4996b7){const _0xe06ffe=a505_0x33a4e5;return db[_0xe06ffe(0x1fc)]['findOne']({'where':{'id':_0x30edc3['params']['id']}})[_0xe06ffe(0x231)](function(_0x2dc993){const _0x5e071a=_0xe06ffe;if(_0x2dc993)return _0x2dc993[_0x5e071a(0x1ea)](_0x30edc3['body']['ids'],{'through':_['omit'](_0x30edc3['body'],[_0x5e071a(0x213),'id'])})[_0x5e071a(0x231)](function(_0x16860e){const _0x52213a=_0x5e071a;for(let _0x4787f2=0x0;_0x4787f2<_0x30edc3[_0x52213a(0x1f7)]['ids'][_0x52213a(0x1d4)];_0x4787f2+=0x1){socket[_0x52213a(0x21e)](_0x52213a(0x1cc),{'UserId':_0x30edc3[_0x52213a(0x1f7)][_0x52213a(0x213)][_0x4787f2],'MailQueueId':_0x30edc3['params']['id']});}return _0x16860e;});})[_0xe06ffe(0x231)](respondWithResult(_0x4996b7,null))[_0xe06ffe(0x1ef)](handleError(_0x4996b7,null));},exports[a505_0x33a4e5(0x234)]=function(_0x4a6ea2,_0x486850){const _0x286fe4=a505_0x33a4e5;return db['MailQueue'][_0x286fe4(0x203)]({'where':{'id':_0x4a6ea2[_0x286fe4(0x1f1)]['id']}})[_0x286fe4(0x231)](handleEntityNotFound(_0x486850,null))[_0x286fe4(0x231)](function(_0x3d1d4d){const _0x284dad=_0x286fe4;if(_0x3d1d4d)return _0x3d1d4d[_0x284dad(0x234)](_0x4a6ea2[_0x284dad(0x1dc)][_0x284dad(0x213)])['then'](function(){const _0x90e0b3=_0x284dad;if(_[_0x90e0b3(0x215)](_0x4a6ea2[_0x90e0b3(0x1dc)][_0x90e0b3(0x213)]))for(let _0x3ea874=0x0;_0x3ea874<_0x4a6ea2[_0x90e0b3(0x1dc)]['ids'][_0x90e0b3(0x1d4)];_0x3ea874+=0x1){socket[_0x90e0b3(0x21e)]('userMailQueue:remove',{'UserId':Number(_0x4a6ea2[_0x90e0b3(0x1dc)][_0x90e0b3(0x213)][_0x3ea874]),'MailQueueId':Number(_0x4a6ea2[_0x90e0b3(0x1f1)]['id'])});}else socket[_0x90e0b3(0x21e)](_0x90e0b3(0x22d),{'UserId':Number(_0x4a6ea2['query']['ids']),'MailQueueId':Number(_0x4a6ea2[_0x90e0b3(0x1f1)]['id'])});});})[_0x286fe4(0x231)](respondWithStatusCode(_0x486850,null))[_0x286fe4(0x1ef)](handleError(_0x486850,null));},exports['getAgents']=function(_0x505df9,_0x11c001){const _0x50bbac=a505_0x33a4e5;let _0x458ce5={};const _0x5df690={};let _0x45ddca,_0x162b12;return db[_0x50bbac(0x1fc)][_0x50bbac(0x203)]({'where':{'id':_0x505df9[_0x50bbac(0x1f1)]['id']}})['then'](handleEntityNotFound(_0x11c001,null))[_0x50bbac(0x231)](function(_0x3759f5){const _0x44fb98=_0x50bbac;if(_0x3759f5)return _0x45ddca=_0x3759f5,_0x5df690[_0x44fb98(0x208)]=_[_0x44fb98(0x220)](db[_0x44fb98(0x218)][_0x44fb98(0x1e3)]),_0x5df690['query']=_[_0x44fb98(0x220)](_0x505df9[_0x44fb98(0x1dc)]),_0x5df690[_0x44fb98(0x1e6)]=_[_0x44fb98(0x222)](_0x5df690[_0x44fb98(0x208)],_0x5df690[_0x44fb98(0x1dc)]),_0x458ce5[_0x44fb98(0x20d)]=_[_0x44fb98(0x222)](_0x5df690[_0x44fb98(0x208)],qs['fields'](_0x505df9['query'][_0x44fb98(0x1e4)])),_0x458ce5[_0x44fb98(0x20d)]=_0x458ce5[_0x44fb98(0x20d)][_0x44fb98(0x1d4)]?_0x458ce5[_0x44fb98(0x20d)]:_0x5df690['model'],_0x458ce5[_0x44fb98(0x20c)]=qs[_0x44fb98(0x1e0)](_0x505df9[_0x44fb98(0x1dc)][_0x44fb98(0x1e0)]),_0x458ce5['where']=qs[_0x44fb98(0x1e6)](_[_0x44fb98(0x21c)](_0x505df9[_0x44fb98(0x1dc)],_0x5df690[_0x44fb98(0x1e6)])),_0x505df9[_0x44fb98(0x1dc)][_0x44fb98(0x20a)]&&(_0x458ce5['where']=_['merge'](_0x458ce5[_0x44fb98(0x22b)],{[Op['or']]:_[_0x44fb98(0x1fd)](_0x458ce5[_0x44fb98(0x20d)],function(_0x148c73){const _0x457741=_0x44fb98,_0x2698b5={};return _0x2698b5[_0x148c73]={[Op[_0x457741(0x1ed)]]:'%'+_0x505df9[_0x457741(0x1dc)][_0x457741(0x20a)]+'%'},_0x2698b5;})})),_0x458ce5=_[_0x44fb98(0x233)]({},_0x458ce5,_0x505df9[_0x44fb98(0x1d2)]),_0x45ddca['getAgents'](_0x458ce5);})[_0x50bbac(0x231)](function(_0x301287){const _0x6a3e77=_0x50bbac;if(_0x301287)return _0x162b12=_0x301287['length'],typeof _0x505df9[_0x6a3e77(0x1dc)]['nolimit']===_0x6a3e77(0x225)&&(_0x458ce5[_0x6a3e77(0x22c)]=qs[_0x6a3e77(0x22c)](_0x505df9['query'][_0x6a3e77(0x22c)]),_0x458ce5[_0x6a3e77(0x20b)]=qs[_0x6a3e77(0x20b)](_0x505df9[_0x6a3e77(0x1dc)][_0x6a3e77(0x20b)])),_0x45ddca[_0x6a3e77(0x1e7)](_0x458ce5);})[_0x50bbac(0x231)](function(_0x18cfa8){if(_0x18cfa8)return _0x18cfa8?{'count':_0x162b12,'rows':_0x18cfa8}:null;})['then'](respondWithResult(_0x11c001,null))[_0x50bbac(0x1ef)](handleError(_0x11c001,null));}; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.events.js b/server/api/mailQueue/mailQueue.events.js index f3469a6..8c863c0 100644 --- a/server/api/mailQueue/mailQueue.events.js +++ b/server/api/mailQueue/mailQueue.events.js @@ -1 +1 @@ -const a506_0x29ca=['undefined','addHook','emit','../../mysqldb','remove','save','events','exports','setMaxListeners','MailQueue'];(function(_0xabe14c,_0x4ca920){const _0x29caab=function(_0x55fe51){while(--_0x55fe51){_0xabe14c['push'](_0xabe14c['shift']());}};_0x29caab(++_0x4ca920);}(a506_0x29ca,0x1cd));const a506_0x55fe=function(_0xabe14c,_0x4ca920){_0xabe14c=_0xabe14c-0xaf;let _0x29caab=a506_0x29ca[_0xabe14c];return _0x29caab;};const a506_0x23cec2=a506_0x55fe;'use strict';const EventEmitter=require(a506_0x23cec2(0xb4)),MailQueue=require(a506_0x23cec2(0xb1))['db'][a506_0x23cec2(0xb7)],MailQueueEvents=new EventEmitter();MailQueueEvents[a506_0x23cec2(0xb6)](0x0);const events={'afterCreate':a506_0x23cec2(0xb3),'afterUpdate':'update','afterDestroy':a506_0x23cec2(0xb2)};function emitEvent(_0x138ce){return function(_0x4d3b3e){const _0x388eb2=a506_0x55fe;MailQueueEvents[_0x388eb2(0xb0)](_0x138ce+':'+_0x4d3b3e['id'],_0x4d3b3e),MailQueueEvents[_0x388eb2(0xb0)](_0x138ce,_0x4d3b3e);};}for(const e in events){if(typeof events[e]!==a506_0x23cec2(0xb8)){const event=events[e];MailQueue[a506_0x23cec2(0xaf)](e,emitEvent(event));}}module[a506_0x23cec2(0xb5)]=MailQueueEvents; \ No newline at end of file +const a506_0x4cad=['setMaxListeners','events','save','addHook','emit','undefined','exports','MailQueue','../../mysqldb'];(function(_0x16a9e,_0x293738){const _0x4cadbf=function(_0x1b914f){while(--_0x1b914f){_0x16a9e['push'](_0x16a9e['shift']());}};_0x4cadbf(++_0x293738);}(a506_0x4cad,0xe4));const a506_0x1b91=function(_0x16a9e,_0x293738){_0x16a9e=_0x16a9e-0x1db;let _0x4cadbf=a506_0x4cad[_0x16a9e];return _0x4cadbf;};const a506_0x2cc288=a506_0x1b91;'use strict';const EventEmitter=require(a506_0x2cc288(0x1e2)),MailQueue=require(a506_0x2cc288(0x1e0))['db'][a506_0x2cc288(0x1df)],MailQueueEvents=new EventEmitter();MailQueueEvents[a506_0x2cc288(0x1e1)](0x0);const events={'afterCreate':a506_0x2cc288(0x1e3),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x10c55b){return function(_0xb6e202){const _0x10726d=a506_0x1b91;MailQueueEvents[_0x10726d(0x1dc)](_0x10c55b+':'+_0xb6e202['id'],_0xb6e202),MailQueueEvents[_0x10726d(0x1dc)](_0x10c55b,_0xb6e202);};}for(const e in events){if(typeof events[e]!==a506_0x2cc288(0x1dd)){const event=events[e];MailQueue[a506_0x2cc288(0x1db)](e,emitEvent(event));}}module[a506_0x2cc288(0x1de)]=MailQueueEvents; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.model.js b/server/api/mailQueue/mailQueue.model.js index e843d67..f960ad2 100644 --- a/server/api/mailQueue/mailQueue.model.js +++ b/server/api/mailQueue/mailQueue.model.js @@ -1 +1 @@ -const a507_0x11b3=['./mailQueue.attributes','sequelize','init','MailQueue','function'];(function(_0x4df63f,_0x925fca){const _0x11b3b5=function(_0x268bd8){while(--_0x268bd8){_0x4df63f['push'](_0x4df63f['shift']());}};_0x11b3b5(++_0x925fca);}(a507_0x11b3,0xd4));const a507_0x268b=function(_0x4df63f,_0x925fca){_0x4df63f=_0x4df63f-0x194;let _0x11b3b5=a507_0x11b3[_0x4df63f];return _0x11b3b5;};const a507_0x3f7992=a507_0x268b;'use strict';const {Model}=require(a507_0x3f7992(0x198)),{attributes}=require(a507_0x3f7992(0x197)),{options}=require('./mailQueue.options');class MailQueue extends Model{}function init(_0x5b248b,_0xbade01){const _0x25c3f6=a507_0x3f7992,_0x37881b=options(_0x5b248b),_0x14e399=typeof _0xbade01===_0x25c3f6(0x196)?_0xbade01(_0x37881b):_0x37881b;return MailQueue[_0x25c3f6(0x194)](attributes,_0x14e399),MailQueue;}module['exports'][a507_0x3f7992(0x195)]=MailQueue,module['exports'][a507_0x3f7992(0x194)]=init; \ No newline at end of file +const a507_0x1fbe=['./mailQueue.options','./mailQueue.attributes','function','MailQueue','init','exports'];(function(_0x3113da,_0x439355){const _0x1fbe42=function(_0x527081){while(--_0x527081){_0x3113da['push'](_0x3113da['shift']());}};_0x1fbe42(++_0x439355);}(a507_0x1fbe,0x1bd));const a507_0x5270=function(_0x3113da,_0x439355){_0x3113da=_0x3113da-0x12c;let _0x1fbe42=a507_0x1fbe[_0x3113da];return _0x1fbe42;};const a507_0xeadd52=a507_0x5270;'use strict';const {Model}=require('sequelize'),{attributes}=require(a507_0xeadd52(0x12c)),{options}=require(a507_0xeadd52(0x131));class MailQueue extends Model{}function init(_0x362fdc,_0x1edb98){const _0x406ba9=a507_0xeadd52,_0x15fd14=options(_0x362fdc),_0x2f3887=typeof _0x1edb98===_0x406ba9(0x12d)?_0x1edb98(_0x15fd14):_0x15fd14;return MailQueue[_0x406ba9(0x12f)](attributes,_0x2f3887),MailQueue;}module[a507_0xeadd52(0x130)][a507_0xeadd52(0x12e)]=MailQueue,module[a507_0xeadd52(0x130)][a507_0xeadd52(0x12f)]=init; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.options.js b/server/api/mailQueue/mailQueue.options.js index 924ce67..c0b9a68 100644 --- a/server/api/mailQueue/mailQueue.options.js +++ b/server/api/mailQueue/mailQueue.options.js @@ -1 +1 @@ -var a508_0x350c=['exports','mail_queues','options'];(function(_0x14a8d0,_0x5cb394){var _0x350ce4=function(_0xfeda89){while(--_0xfeda89){_0x14a8d0['push'](_0x14a8d0['shift']());}};_0x350ce4(++_0x5cb394);}(a508_0x350c,0x139));var a508_0xfeda=function(_0x14a8d0,_0x5cb394){_0x14a8d0=_0x14a8d0-0x1b8;var _0x350ce4=a508_0x350c[_0x14a8d0];return _0x350ce4;};var a508_0x580906=a508_0xfeda;function options(_0x5c3c8a){var _0x8e65d9=a508_0xfeda;return{'sequelize':_0x5c3c8a,'tableName':_0x8e65d9(0x1b8),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a508_0x580906(0x1ba)][a508_0x580906(0x1b9)]=options; \ No newline at end of file +var a508_0x1140=['options','exports'];(function(_0x4c31cf,_0x6fe98e){var _0x11400e=function(_0xeda834){while(--_0xeda834){_0x4c31cf['push'](_0x4c31cf['shift']());}};_0x11400e(++_0x6fe98e);}(a508_0x1140,0x191));var a508_0xeda8=function(_0x4c31cf,_0x6fe98e){_0x4c31cf=_0x4c31cf-0xd5;var _0x11400e=a508_0x1140[_0x4c31cf];return _0x11400e;};var a508_0x48dd3a=a508_0xeda8;function options(_0x334d7b){return{'sequelize':_0x334d7b,'tableName':'mail_queues','paranoid':![],'indexes':[],'timestamps':!![]};}module[a508_0x48dd3a(0xd5)][a508_0x48dd3a(0xd6)]=options; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.rpc.js b/server/api/mailQueue/mailQueue.rpc.js index 018320c..24a811d 100644 --- a/server/api/mailQueue/mailQueue.rpc.js +++ b/server/api/mailQueue/mailQueue.rpc.js @@ -1 +1 @@ -const a509_0x5b2a=['info','../../config/logger','../../mysqldb','where','message','model','../../rediscache','attributes','error','limit','register','options','ShowMailQueue','findAll','catch','findOne','MailQueue','include','raw','map','GetMailQueue','./mailQueue.socket','rpc'];(function(_0x592634,_0x4265f3){const _0x5b2a75=function(_0x1357fe){while(--_0x1357fe){_0x592634['push'](_0x592634['shift']());}};_0x5b2a75(++_0x4265f3);}(a509_0x5b2a,0x17a));const a509_0x1357=function(_0x592634,_0x4265f3){_0x592634=_0x592634-0xed;let _0x5b2a75=a509_0x5b2a[_0x592634];return _0x5b2a75;};const a509_0xea2e9d=a509_0x1357;'use strict';const _=require('lodash'),db=require(a509_0xea2e9d(0xfc))['db'],logger=require(a509_0xea2e9d(0xfb))(a509_0xea2e9d(0xf9)),{getSocket}=require(a509_0xea2e9d(0x100)),socket=getSocket();require(a509_0xea2e9d(0xf8))[a509_0xea2e9d(0xed)](socket),exports[a509_0xea2e9d(0xf7)]=function(_0x221dde){const _0xf3f209=this;return new Promise(function(_0x5983df,_0x1128b5){const _0x5ca470=a509_0x1357;return db[_0x5ca470(0xf3)][_0x5ca470(0xf0)]({'raw':_0x221dde[_0x5ca470(0xee)]?_0x221dde[_0x5ca470(0xee)][_0x5ca470(0xf5)]===undefined?!![]:![]:!![],'where':_0x221dde[_0x5ca470(0xee)]?_0x221dde[_0x5ca470(0xee)][_0x5ca470(0xfd)]||null:null,'attributes':_0x221dde[_0x5ca470(0xee)]?_0x221dde[_0x5ca470(0xee)][_0x5ca470(0x101)]||null:null,'limit':_0x221dde['options']?_0x221dde[_0x5ca470(0xee)][_0x5ca470(0x103)]||null:null,'include':_0x221dde[_0x5ca470(0xee)]?_0x221dde[_0x5ca470(0xee)]['include']?_['map'](_0x221dde[_0x5ca470(0xee)]['include'],function(_0x311eaa){const _0x32ee28=_0x5ca470;return{'model':db[_0x311eaa[_0x32ee28(0xff)]],'as':_0x311eaa['as'],'attributes':_0x311eaa[_0x32ee28(0x101)],'include':_0x311eaa['include']?_[_0x32ee28(0xf6)](_0x311eaa['include'],function(_0x3dfda0){const _0x17cce6=_0x32ee28;return{'model':db[_0x3dfda0[_0x17cce6(0xff)]],'as':_0x3dfda0['as'],'attributes':_0x3dfda0[_0x17cce6(0x101)],'include':_0x3dfda0[_0x17cce6(0xf4)]?_[_0x17cce6(0xf6)](_0x3dfda0[_0x17cce6(0xf4)],function(_0x48606f){const _0x2ca539=_0x17cce6;return{'model':db[_0x48606f[_0x2ca539(0xff)]],'as':_0x48606f['as'],'attributes':_0x48606f[_0x2ca539(0x101)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x26c5b3){const _0x3e548b=_0x5ca470;logger[_0x3e548b(0xfa)](_0x3e548b(0xf7),_0x221dde),logger['debug'](_0x3e548b(0xf7),_0x221dde,JSON['stringify'](_0x26c5b3)),_0x5983df(_0x26c5b3);})[_0x5ca470(0xf1)](function(_0x47eec3){const _0x7e24e9=_0x5ca470;logger[_0x7e24e9(0x102)](_0x7e24e9(0xf7),_0x47eec3[_0x7e24e9(0xfe)],_0x221dde),_0x1128b5(_0xf3f209[_0x7e24e9(0x102)](0x1f4,_0x47eec3['message']));});});},exports['ShowMailQueue']=function(_0x400417){const _0x43f2cb=this;return new Promise(function(_0x64534c,_0x46a493){const _0x256e88=a509_0x1357;return db[_0x256e88(0xf3)][_0x256e88(0xf2)]({'raw':_0x400417[_0x256e88(0xee)]?_0x400417[_0x256e88(0xee)]['raw']===undefined?!![]:![]:!![],'where':_0x400417[_0x256e88(0xee)]?_0x400417['options'][_0x256e88(0xfd)]||null:null,'attributes':_0x400417[_0x256e88(0xee)]?_0x400417[_0x256e88(0xee)][_0x256e88(0x101)]||null:null,'include':_0x400417[_0x256e88(0xee)]?_0x400417['options'][_0x256e88(0xf4)]?_[_0x256e88(0xf6)](_0x400417[_0x256e88(0xee)][_0x256e88(0xf4)],function(_0x58572a){const _0x1e9112=_0x256e88;return{'model':db[_0x58572a[_0x1e9112(0xff)]],'as':_0x58572a['as'],'attributes':_0x58572a[_0x1e9112(0x101)],'include':_0x58572a[_0x1e9112(0xf4)]?_[_0x1e9112(0xf6)](_0x58572a['include'],function(_0x3d4bb8){const _0x2a8630=_0x1e9112;return{'model':db[_0x3d4bb8[_0x2a8630(0xff)]],'as':_0x3d4bb8['as'],'attributes':_0x3d4bb8[_0x2a8630(0x101)],'include':_0x3d4bb8[_0x2a8630(0xf4)]?_[_0x2a8630(0xf6)](_0x3d4bb8[_0x2a8630(0xf4)],function(_0x5294ce){const _0x549554=_0x2a8630;return{'model':db[_0x5294ce[_0x549554(0xff)]],'as':_0x5294ce['as'],'attributes':_0x5294ce['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x2244cf){const _0x50a57d=_0x256e88;logger[_0x50a57d(0xfa)](_0x50a57d(0xef),_0x400417),logger['debug'](_0x50a57d(0xef),_0x400417,JSON['stringify'](_0x2244cf)),_0x64534c(_0x2244cf);})[_0x256e88(0xf1)](function(_0x99e42f){const _0x1aabc0=_0x256e88;logger[_0x1aabc0(0x102)](_0x1aabc0(0xef),_0x99e42f['message'],_0x400417),_0x46a493(_0x43f2cb[_0x1aabc0(0x102)](0x1f4,_0x99e42f[_0x1aabc0(0xfe)]));});});}; \ No newline at end of file +const a509_0x4ec2=['rpc','attributes','model','info','debug','../../config/logger','error','lodash','ShowMailQueue','MailQueue','options','./mailQueue.socket','raw','findOne','map','message','GetMailQueue','stringify','limit','then','register','findAll','where','include','catch','../../rediscache'];(function(_0x50e6fd,_0x3b6cd5){const _0x4ec209=function(_0xe133b9){while(--_0xe133b9){_0x50e6fd['push'](_0x50e6fd['shift']());}};_0x4ec209(++_0x3b6cd5);}(a509_0x4ec2,0x155));const a509_0xe133=function(_0x50e6fd,_0x3b6cd5){_0x50e6fd=_0x50e6fd-0x1a1;let _0x4ec209=a509_0x4ec2[_0x50e6fd];return _0x4ec209;};const a509_0x5eb88f=a509_0xe133;'use strict';const _=require(a509_0x5eb88f(0x1a5)),db=require('../../mysqldb')['db'],logger=require(a509_0x5eb88f(0x1a3))(a509_0x5eb88f(0x1b8)),{getSocket}=require(a509_0x5eb88f(0x1b7)),socket=getSocket();require(a509_0x5eb88f(0x1a9))[a509_0x5eb88f(0x1b2)](socket),exports['GetMailQueue']=function(_0x34529c){const _0x3fb3d8=this;return new Promise(function(_0x2c88a2,_0x503137){const _0x13cc36=a509_0xe133;return db[_0x13cc36(0x1a7)][_0x13cc36(0x1b3)]({'raw':_0x34529c[_0x13cc36(0x1a8)]?_0x34529c[_0x13cc36(0x1a8)]['raw']===undefined?!![]:![]:!![],'where':_0x34529c[_0x13cc36(0x1a8)]?_0x34529c[_0x13cc36(0x1a8)]['where']||null:null,'attributes':_0x34529c['options']?_0x34529c[_0x13cc36(0x1a8)]['attributes']||null:null,'limit':_0x34529c[_0x13cc36(0x1a8)]?_0x34529c['options'][_0x13cc36(0x1b0)]||null:null,'include':_0x34529c[_0x13cc36(0x1a8)]?_0x34529c['options'][_0x13cc36(0x1b5)]?_[_0x13cc36(0x1ac)](_0x34529c[_0x13cc36(0x1a8)][_0x13cc36(0x1b5)],function(_0x422748){const _0x3be117=_0x13cc36;return{'model':db[_0x422748[_0x3be117(0x1ba)]],'as':_0x422748['as'],'attributes':_0x422748[_0x3be117(0x1b9)],'include':_0x422748[_0x3be117(0x1b5)]?_[_0x3be117(0x1ac)](_0x422748['include'],function(_0x19a0ae){const _0x429874=_0x3be117;return{'model':db[_0x19a0ae['model']],'as':_0x19a0ae['as'],'attributes':_0x19a0ae[_0x429874(0x1b9)],'include':_0x19a0ae[_0x429874(0x1b5)]?_['map'](_0x19a0ae[_0x429874(0x1b5)],function(_0xb7e37c){const _0x21fb4f=_0x429874;return{'model':db[_0xb7e37c[_0x21fb4f(0x1ba)]],'as':_0xb7e37c['as'],'attributes':_0xb7e37c['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x2b78a5){const _0x2d54bb=_0x13cc36;logger[_0x2d54bb(0x1a1)](_0x2d54bb(0x1ae),_0x34529c),logger[_0x2d54bb(0x1a2)](_0x2d54bb(0x1ae),_0x34529c,JSON[_0x2d54bb(0x1af)](_0x2b78a5)),_0x2c88a2(_0x2b78a5);})[_0x13cc36(0x1b6)](function(_0x29f55a){const _0x51ea82=_0x13cc36;logger[_0x51ea82(0x1a4)]('GetMailQueue',_0x29f55a[_0x51ea82(0x1ad)],_0x34529c),_0x503137(_0x3fb3d8['error'](0x1f4,_0x29f55a[_0x51ea82(0x1ad)]));});});},exports['ShowMailQueue']=function(_0x159068){const _0x26cb2a=this;return new Promise(function(_0x2e303a,_0x16fd48){const _0x2dea76=a509_0xe133;return db[_0x2dea76(0x1a7)][_0x2dea76(0x1ab)]({'raw':_0x159068[_0x2dea76(0x1a8)]?_0x159068['options'][_0x2dea76(0x1aa)]===undefined?!![]:![]:!![],'where':_0x159068[_0x2dea76(0x1a8)]?_0x159068[_0x2dea76(0x1a8)][_0x2dea76(0x1b4)]||null:null,'attributes':_0x159068[_0x2dea76(0x1a8)]?_0x159068[_0x2dea76(0x1a8)][_0x2dea76(0x1b9)]||null:null,'include':_0x159068[_0x2dea76(0x1a8)]?_0x159068['options'][_0x2dea76(0x1b5)]?_['map'](_0x159068[_0x2dea76(0x1a8)][_0x2dea76(0x1b5)],function(_0x574f57){const _0xf2f12c=_0x2dea76;return{'model':db[_0x574f57[_0xf2f12c(0x1ba)]],'as':_0x574f57['as'],'attributes':_0x574f57['attributes'],'include':_0x574f57[_0xf2f12c(0x1b5)]?_['map'](_0x574f57[_0xf2f12c(0x1b5)],function(_0x31d8ab){const _0x21f599=_0xf2f12c;return{'model':db[_0x31d8ab[_0x21f599(0x1ba)]],'as':_0x31d8ab['as'],'attributes':_0x31d8ab[_0x21f599(0x1b9)],'include':_0x31d8ab[_0x21f599(0x1b5)]?_['map'](_0x31d8ab[_0x21f599(0x1b5)],function(_0x429052){const _0x1619e2=_0x21f599;return{'model':db[_0x429052[_0x1619e2(0x1ba)]],'as':_0x429052['as'],'attributes':_0x429052[_0x1619e2(0x1b9)]};}):[]};}):[]};}):[]:[]})[_0x2dea76(0x1b1)](function(_0x56f885){const _0x284b35=_0x2dea76;logger[_0x284b35(0x1a1)]('ShowMailQueue',_0x159068),logger[_0x284b35(0x1a2)](_0x284b35(0x1a6),_0x159068,JSON[_0x284b35(0x1af)](_0x56f885)),_0x2e303a(_0x56f885);})[_0x2dea76(0x1b6)](function(_0x3a2357){const _0x2319a6=_0x2dea76;logger[_0x2319a6(0x1a4)](_0x2319a6(0x1a6),_0x3a2357['message'],_0x159068),_0x16fd48(_0x26cb2a[_0x2319a6(0x1a4)](0x1f4,_0x3a2357[_0x2319a6(0x1ad)]));});});}; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.socket.js b/server/api/mailQueue/mailQueue.socket.js index fc25fcf..79ee3e2 100644 --- a/server/api/mailQueue/mailQueue.socket.js +++ b/server/api/mailQueue/mailQueue.socket.js @@ -1 +1 @@ -const a510_0xa68b=['mailQueue:','length','./mailQueue.events','remove','save','register'];(function(_0xfe2bf,_0x210722){const _0xa68bf1=function(_0x3a097c){while(--_0x3a097c){_0xfe2bf['push'](_0xfe2bf['shift']());}};_0xa68bf1(++_0x210722);}(a510_0xa68b,0x1b6));const a510_0x3a09=function(_0xfe2bf,_0x210722){_0xfe2bf=_0xfe2bf-0xab;let _0xa68bf1=a510_0xa68b[_0xfe2bf];return _0xa68bf1;};const a510_0xf1b60b=a510_0x3a09;'use strict';const MailQueueEvents=require(a510_0xf1b60b(0xad)),events=[a510_0xf1b60b(0xaf),a510_0xf1b60b(0xae),'update'];function createListener(_0x3bf7e7,_0x579a72){return function(_0x3f5cfa){_0x579a72['emit'](_0x3bf7e7,_0x3f5cfa);};}exports[a510_0xf1b60b(0xb0)]=function(_0x57756b){const _0x97e7b3=a510_0xf1b60b;for(let _0x3e6a0e=0x0,_0x53e64d=events[_0x97e7b3(0xac)];_0x3e6a0e<_0x53e64d;_0x3e6a0e++){const _0x49ed8f=events[_0x3e6a0e],_0x1f6b5c=createListener(_0x97e7b3(0xab)+_0x49ed8f,_0x57756b);MailQueueEvents['on'](_0x49ed8f,_0x1f6b5c);}}; \ No newline at end of file +const a510_0x4e46=['mailQueue:','./mailQueue.events','remove','length','register','update','save'];(function(_0x23296f,_0x497bc5){const _0x4e46de=function(_0x1849f9){while(--_0x1849f9){_0x23296f['push'](_0x23296f['shift']());}};_0x4e46de(++_0x497bc5);}(a510_0x4e46,0x17f));const a510_0x1849=function(_0x23296f,_0x497bc5){_0x23296f=_0x23296f-0xa4;let _0x4e46de=a510_0x4e46[_0x23296f];return _0x4e46de;};const a510_0xb40bff=a510_0x1849;'use strict';const MailQueueEvents=require(a510_0xb40bff(0xa7)),events=[a510_0xb40bff(0xa5),a510_0xb40bff(0xa8),a510_0xb40bff(0xa4)];function createListener(_0x5668df,_0xdb7fa1){return function(_0x9c51ff){_0xdb7fa1['emit'](_0x5668df,_0x9c51ff);};}exports[a510_0xb40bff(0xaa)]=function(_0x39185b){const _0x3fb7d2=a510_0xb40bff;for(let _0x18d9a8=0x0,_0x256532=events[_0x3fb7d2(0xa9)];_0x18d9a8<_0x256532;_0x18d9a8++){const _0x304c26=events[_0x18d9a8],_0x5bc843=createListener(_0x3fb7d2(0xa6)+_0x304c26,_0x39185b);MailQueueEvents['on'](_0x304c26,_0x5bc843);}}; \ No newline at end of file diff --git a/server/api/mailQueueReport/index.js b/server/api/mailQueueReport/index.js index 8638dee..cfe2c79 100644 --- a/server/api/mailQueueReport/index.js +++ b/server/api/mailQueueReport/index.js @@ -1 +1 @@ -const a511_0x36fa=['express','./mailQueueReport.controller','../../components/auth/service','show','post','put','/describe','/:id','get','update','describe','exports','isAuthenticated','Router'];(function(_0x45350f,_0x4fc2a9){const _0x36fa2e=function(_0x5ae3a7){while(--_0x5ae3a7){_0x45350f['push'](_0x45350f['shift']());}};_0x36fa2e(++_0x4fc2a9);}(a511_0x36fa,0x19e));const a511_0x5ae3=function(_0x45350f,_0x4fc2a9){_0x45350f=_0x45350f-0x15a;let _0x36fa2e=a511_0x36fa[_0x45350f];return _0x36fa2e;};const a511_0x230be7=a511_0x5ae3;'use strict';const express=require(a511_0x230be7(0x160)),router=express[a511_0x230be7(0x15f)](),auth=require(a511_0x230be7(0x162)),controller=require(a511_0x230be7(0x161));router[a511_0x230be7(0x15a)]('/',auth['isAuthenticated'](),controller['index']),router[a511_0x230be7(0x15a)](a511_0x230be7(0x166),auth[a511_0x230be7(0x15e)](),controller[a511_0x230be7(0x15c)]),router['get'](a511_0x230be7(0x167),auth[a511_0x230be7(0x15e)](),controller[a511_0x230be7(0x163)]),router[a511_0x230be7(0x164)]('/',auth['isAuthenticated'](),controller['create']),router[a511_0x230be7(0x165)]('/:id',auth['isAuthenticated'](),controller[a511_0x230be7(0x15b)]),router['delete']('/:id',auth[a511_0x230be7(0x15e)](),controller['destroy']),module[a511_0x230be7(0x15d)]=router; \ No newline at end of file +const a511_0x3ee2=['exports','delete','/:id','../../components/auth/service','Router','index','./mailQueueReport.controller','update','isAuthenticated','/describe','destroy','get','put','create'];(function(_0x2ea56e,_0x5b0e42){const _0x3ee222=function(_0x55a276){while(--_0x55a276){_0x2ea56e['push'](_0x2ea56e['shift']());}};_0x3ee222(++_0x5b0e42);}(a511_0x3ee2,0x17b));const a511_0x55a2=function(_0x2ea56e,_0x5b0e42){_0x2ea56e=_0x2ea56e-0x10f;let _0x3ee222=a511_0x3ee2[_0x2ea56e];return _0x3ee222;};const a511_0x3ff8f5=a511_0x55a2;'use strict';const express=require('express'),router=express[a511_0x3ff8f5(0x112)](),auth=require(a511_0x3ff8f5(0x111)),controller=require(a511_0x3ff8f5(0x114));router[a511_0x3ff8f5(0x119)]('/',auth['isAuthenticated'](),controller[a511_0x3ff8f5(0x113)]),router['get'](a511_0x3ff8f5(0x117),auth[a511_0x3ff8f5(0x116)](),controller['describe']),router[a511_0x3ff8f5(0x119)](a511_0x3ff8f5(0x110),auth['isAuthenticated'](),controller['show']),router['post']('/',auth[a511_0x3ff8f5(0x116)](),controller[a511_0x3ff8f5(0x11b)]),router[a511_0x3ff8f5(0x11a)]('/:id',auth[a511_0x3ff8f5(0x116)](),controller[a511_0x3ff8f5(0x115)]),router[a511_0x3ff8f5(0x10f)](a511_0x3ff8f5(0x110),auth['isAuthenticated'](),controller[a511_0x3ff8f5(0x118)]),module[a511_0x3ff8f5(0x11c)]=router; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.attributes.js b/server/api/mailQueueReport/mailQueueReport.attributes.js index 3b53a4c..76f40df 100644 --- a/server/api/mailQueueReport/mailQueueReport.attributes.js +++ b/server/api/mailQueueReport/mailQueueReport.attributes.js @@ -1 +1 @@ -const a512_0x14f6=['STRING','attributes','sequelize','DATE','exports'];(function(_0x2f9b1a,_0x2d6aec){const _0x14f6f8=function(_0x49c630){while(--_0x49c630){_0x2f9b1a['push'](_0x2f9b1a['shift']());}};_0x14f6f8(++_0x2d6aec);}(a512_0x14f6,0x11f));const a512_0x49c6=function(_0x2f9b1a,_0x2d6aec){_0x2f9b1a=_0x2f9b1a-0xdc;let _0x14f6f8=a512_0x14f6[_0x2f9b1a];return _0x14f6f8;};const a512_0x1baa8e=a512_0x49c6;'use strict';const {DataTypes}=require(a512_0x1baa8e(0xdc)),attributes={'uniqueid':{'type':DataTypes[a512_0x1baa8e(0xdf)],'allowNull':![]},'from':{'type':DataTypes[a512_0x1baa8e(0xdf)]},'joinAt':{'type':DataTypes['DATE']},'leaveAt':{'type':DataTypes[a512_0x1baa8e(0xdd)]},'acceptAt':{'type':DataTypes[a512_0x1baa8e(0xdd)]},'exitAt':{'type':DataTypes[a512_0x1baa8e(0xdd)]},'reason':{'type':DataTypes[a512_0x1baa8e(0xdf)]}};module[a512_0x1baa8e(0xde)][a512_0x1baa8e(0xe0)]=attributes; \ No newline at end of file +const a512_0x1b2e=['exports','attributes','DATE','STRING','sequelize'];(function(_0x3e66c0,_0x3a04f0){const _0x1b2efd=function(_0xb031){while(--_0xb031){_0x3e66c0['push'](_0x3e66c0['shift']());}};_0x1b2efd(++_0x3a04f0);}(a512_0x1b2e,0x129));const a512_0xb031=function(_0x3e66c0,_0x3a04f0){_0x3e66c0=_0x3e66c0-0x189;let _0x1b2efd=a512_0x1b2e[_0x3e66c0];return _0x1b2efd;};const a512_0x192ec4=a512_0xb031;'use strict';const {DataTypes}=require(a512_0x192ec4(0x18b)),attributes={'uniqueid':{'type':DataTypes[a512_0x192ec4(0x18a)],'allowNull':![]},'from':{'type':DataTypes[a512_0x192ec4(0x18a)]},'joinAt':{'type':DataTypes[a512_0x192ec4(0x189)]},'leaveAt':{'type':DataTypes['DATE']},'acceptAt':{'type':DataTypes[a512_0x192ec4(0x189)]},'exitAt':{'type':DataTypes[a512_0x192ec4(0x189)]},'reason':{'type':DataTypes['STRING']}};module[a512_0x192ec4(0x18c)][a512_0x192ec4(0x18d)]=attributes; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.controller.js b/server/api/mailQueueReport/mailQueueReport.controller.js index 10f8a8d..4e963d9 100644 --- a/server/api/mailQueueReport/mailQueueReport.controller.js +++ b/server/api/mailQueueReport/mailQueueReport.controller.js @@ -1 +1 @@ -const a513_0x40e5=['length','Content-Range','../../config/logger','catch','rows','order','describe','fields','key','include','update','../../mysqldb','MailQueueReport','send','show','attributes','index','query','filters','pick','json','keys','type','merge','filter','VIRTUAL','then','like','end','sendStatus','nolimit','offset','api','undefined','sort','body','create','fieldName','lodash','name','findAll','destroy','model','map','status','options','findOne','intersection','limit','includeAll','params','where'];(function(_0x39d6a9,_0x1d722c){const _0x40e58b=function(_0x36284a){while(--_0x36284a){_0x39d6a9['push'](_0x39d6a9['shift']());}};_0x40e58b(++_0x1d722c);}(a513_0x40e5,0x164));const a513_0x3628=function(_0x39d6a9,_0x1d722c){_0x39d6a9=_0x39d6a9-0xdf;let _0x40e58b=a513_0x40e5[_0x39d6a9];return _0x40e58b;};const a513_0x5d063b=a513_0x3628;'use strict';const _=require(a513_0x5d063b(0x10d)),qs=require('../../components/parsers/qs'),logger=require(a513_0x5d063b(0xe9))(a513_0x5d063b(0x107)),{db}=require(a513_0x5d063b(0xf2)),{Op}=require('sequelize');function respondWithResult(_0x4b018d,_0x297187){return _0x297187=_0x297187||0xc8,function(_0x355d22){const _0x2a2186=a513_0x3628;if(_0x355d22)return _0x4b018d[_0x2a2186(0xdf)](_0x297187)[_0x2a2186(0xfb)](_0x355d22);};}function respondWithFilteredResult(_0x34778a,_0x8a650f){return function(_0x314017){const _0xaf36d2=a513_0x3628;if(_0x314017){const _0x34eced=_0x314017['count'],_0x5a91d6=_0x8a650f[_0xaf36d2(0x106)];let _0x3e3237=_0x8a650f[_0xaf36d2(0x106)]+_0x8a650f['limit'],_0x3195c5;return _0x3e3237>=_0x34eced?(_0x3e3237=_0x34eced,_0x3195c5=0xc8):_0x3195c5=0xce,_0x34778a['status'](_0x3195c5),_0x34778a['set'](_0xaf36d2(0xe8),_0x5a91d6+'-'+_0x3e3237+'/'+_0x34eced)[_0xaf36d2(0xfb)](_0x314017);}return null;};}function saveUpdates(_0x4c683d){return function(_0x31ff9c){const _0x5e6b3f=a513_0x3628;if(_0x31ff9c)return _0x31ff9c[_0x5e6b3f(0xf1)](_0x4c683d)[_0x5e6b3f(0x101)](function(_0x1d99ed){return _0x1d99ed;});return null;};}function removeEntity(_0x3b34f4){return function(_0x282e3b){const _0x286f5a=a513_0x3628;if(_0x282e3b)return _0x282e3b[_0x286f5a(0x110)]()[_0x286f5a(0x101)](function(){const _0x24978c=_0x286f5a;_0x3b34f4['status'](0xcc)[_0x24978c(0x103)]();});};}function handleEntityNotFound(_0x31f754){return function(_0x4477bb){const _0x13ddbe=a513_0x3628;return!_0x4477bb&&_0x31f754[_0x13ddbe(0x104)](0x194),_0x4477bb;};}function handleError(_0x55a699,_0x33e858){return _0x33e858=_0x33e858||0x1f4,function(_0x4e8742){const _0x113415=a513_0x3628;logger['error'](_0x4e8742['stack']),_0x4e8742['name']&&delete _0x4e8742[_0x113415(0x10e)],_0x55a699['status'](_0x33e858)[_0x113415(0xf4)](_0x4e8742);};}exports[a513_0x5d063b(0xf7)]=function(_0x2c4357,_0x4018b1){const _0xa147c7=a513_0x5d063b;let _0x45aab7={};const _0x5ba20e={},_0x21b86b={'count':0x0,'rows':[]},_0x2af803=_[_0xa147c7(0x112)](db[_0xa147c7(0xf3)]['rawAttributes'],function(_0x143932){const _0x71159c=_0xa147c7;return{'name':_0x143932[_0x71159c(0x10c)],'type':_0x143932[_0x71159c(0xfd)][_0x71159c(0xef)]};});_0x5ba20e[_0xa147c7(0x111)]=_[_0xa147c7(0x112)](_0x2af803,_0xa147c7(0x10e)),_0x5ba20e[_0xa147c7(0xf8)]=_[_0xa147c7(0xfc)](_0x2c4357[_0xa147c7(0xf8)]),_0x5ba20e['filters']=_[_0xa147c7(0xe2)](_0x5ba20e[_0xa147c7(0x111)],_0x5ba20e['query']),_0x45aab7[_0xa147c7(0xf6)]=_[_0xa147c7(0xe2)](_0x5ba20e[_0xa147c7(0x111)],qs[_0xa147c7(0xee)](_0x2c4357[_0xa147c7(0xf8)][_0xa147c7(0xee)])),_0x45aab7[_0xa147c7(0xf6)]=_0x45aab7[_0xa147c7(0xf6)][_0xa147c7(0xe7)]?_0x45aab7['attributes']:_0x5ba20e[_0xa147c7(0x111)];typeof _0x2c4357[_0xa147c7(0xf8)][_0xa147c7(0x105)]===_0xa147c7(0x108)&&(_0x45aab7['limit']=qs['limit'](_0x2c4357['query'][_0xa147c7(0xe3)]),_0x45aab7[_0xa147c7(0x106)]=qs[_0xa147c7(0x106)](_0x2c4357[_0xa147c7(0xf8)][_0xa147c7(0x106)]));_0x45aab7[_0xa147c7(0xec)]=qs[_0xa147c7(0x109)](_0x2c4357['query'][_0xa147c7(0x109)]),_0x45aab7[_0xa147c7(0xe6)]=qs[_0xa147c7(0xf9)](_[_0xa147c7(0xfa)](_0x2c4357[_0xa147c7(0xf8)],_0x5ba20e[_0xa147c7(0xf9)]),_0x2af803);_0x2c4357[_0xa147c7(0xf8)][_0xa147c7(0xff)]&&(_0x45aab7[_0xa147c7(0xe6)]=_['merge'](_0x45aab7[_0xa147c7(0xe6)],{[Op['or']]:_[_0xa147c7(0x112)](_0x2af803,function(_0x22c453){const _0x5de8a0=_0xa147c7;if(_0x22c453['type']!==_0x5de8a0(0x100)){const _0x560152={};return _0x560152[_0x22c453[_0x5de8a0(0x10e)]]={[Op[_0x5de8a0(0x102)]]:'%'+_0x2c4357[_0x5de8a0(0xf8)][_0x5de8a0(0xff)]+'%'},_0x560152;}})}));_0x45aab7=_[_0xa147c7(0xfe)]({},_0x45aab7,_0x2c4357['options']);const _0x315ec2={'where':_0x45aab7[_0xa147c7(0xe6)]};return db[_0xa147c7(0xf3)]['count'](_0x315ec2)['then'](function(_0x26465f){const _0x852d9b=_0xa147c7;return _0x21b86b['count']=_0x26465f,_0x2c4357[_0x852d9b(0xf8)][_0x852d9b(0xe4)]&&(_0x45aab7[_0x852d9b(0xf0)]=[{'all':!![]}]),db[_0x852d9b(0xf3)][_0x852d9b(0x10f)](_0x45aab7);})[_0xa147c7(0x101)](function(_0x2f454c){const _0x494e7b=_0xa147c7;return _0x21b86b[_0x494e7b(0xeb)]=_0x2f454c,_0x21b86b;})['then'](respondWithFilteredResult(_0x4018b1,_0x45aab7))[_0xa147c7(0xea)](handleError(_0x4018b1,null));},exports[a513_0x5d063b(0xf5)]=function(_0x2f44e2,_0x1dcd8a){const _0x218a57=a513_0x5d063b;let _0x3a8654={'raw':!![],'where':{'id':_0x2f44e2[_0x218a57(0xe5)]['id']}};const _0x35a002={};return _0x35a002[_0x218a57(0x111)]=_[_0x218a57(0xfc)](db[_0x218a57(0xf3)]['rawAttributes']),_0x35a002[_0x218a57(0xf8)]=_['keys'](_0x2f44e2['query']),_0x35a002['filters']=_[_0x218a57(0xe2)](_0x35a002[_0x218a57(0x111)],_0x35a002['query']),_0x3a8654[_0x218a57(0xf6)]=_[_0x218a57(0xe2)](_0x35a002['model'],qs[_0x218a57(0xee)](_0x2f44e2[_0x218a57(0xf8)][_0x218a57(0xee)])),_0x3a8654['attributes']=_0x3a8654[_0x218a57(0xf6)]['length']?_0x3a8654[_0x218a57(0xf6)]:_0x35a002[_0x218a57(0x111)],_0x2f44e2[_0x218a57(0xf8)][_0x218a57(0xe4)]&&(_0x3a8654[_0x218a57(0xf0)]=[{'all':!![]}]),_0x3a8654=_[_0x218a57(0xfe)]({},_0x3a8654,_0x2f44e2[_0x218a57(0xe0)]),db[_0x218a57(0xf3)][_0x218a57(0xe1)](_0x3a8654)[_0x218a57(0x101)](handleEntityNotFound(_0x1dcd8a,null))[_0x218a57(0x101)](respondWithResult(_0x1dcd8a,null))[_0x218a57(0xea)](handleError(_0x1dcd8a,null));},exports['create']=function(_0x172ce8,_0x3d5262){const _0xb2415a=a513_0x5d063b;return db[_0xb2415a(0xf3)][_0xb2415a(0x10b)](_0x172ce8['body'],{})['then'](respondWithResult(_0x3d5262,0xc9))[_0xb2415a(0xea)](handleError(_0x3d5262,null));},exports[a513_0x5d063b(0xf1)]=function(_0x587067,_0x1d27d9){const _0x5a1755=a513_0x5d063b;return _0x587067[_0x5a1755(0x10a)]['id']&&delete _0x587067[_0x5a1755(0x10a)]['id'],db['MailQueueReport'][_0x5a1755(0xe1)]({'where':{'id':_0x587067[_0x5a1755(0xe5)]['id']}})[_0x5a1755(0x101)](handleEntityNotFound(_0x1d27d9,null))[_0x5a1755(0x101)](saveUpdates(_0x587067[_0x5a1755(0x10a)],null))['then'](respondWithResult(_0x1d27d9,null))[_0x5a1755(0xea)](handleError(_0x1d27d9,null));},exports[a513_0x5d063b(0x110)]=function(_0x16a87f,_0x128a55){const _0x51a394=a513_0x5d063b;return db['MailQueueReport'][_0x51a394(0xe1)]({'where':{'id':_0x16a87f[_0x51a394(0xe5)]['id']}})['then'](handleEntityNotFound(_0x128a55,null))[_0x51a394(0x101)](removeEntity(_0x128a55,null))[_0x51a394(0xea)](handleError(_0x128a55,null));},exports['describe']=function(_0x2a3872,_0x53ebc4){const _0x34963f=a513_0x5d063b;return db['MailQueueReport'][_0x34963f(0xed)]()['then'](respondWithResult(_0x53ebc4,null))['catch'](handleError(_0x53ebc4,null));}; \ No newline at end of file +const a513_0x4f5f=['query','keys','offset','describe','update','sort','attributes','sendStatus','findAll','includeAll','end','status','model','sequelize','filters','then','map','../../components/parsers/qs','filter','length','like','VIRTUAL','type','send','include','Content-Range','findOne','set','nolimit','params','rawAttributes','body','destroy','limit','order','intersection','show','undefined','create','count','where','fields','api','catch','json','pick','merge','name','lodash','MailQueueReport'];(function(_0x429a3a,_0xc7f071){const _0x4f5fbd=function(_0x20b207){while(--_0x20b207){_0x429a3a['push'](_0x429a3a['shift']());}};_0x4f5fbd(++_0xc7f071);}(a513_0x4f5f,0x19b));const a513_0x20b2=function(_0x429a3a,_0xc7f071){_0x429a3a=_0x429a3a-0xf3;let _0x4f5fbd=a513_0x4f5f[_0x429a3a];return _0x4f5fbd;};const a513_0x5c4b70=a513_0x20b2;'use strict';const _=require(a513_0x5c4b70(0x118)),qs=require(a513_0x5c4b70(0xf9)),logger=require('../../config/logger')(a513_0x5c4b70(0x112)),{db}=require('../../mysqldb'),{Op}=require(a513_0x5c4b70(0xf5));function respondWithResult(_0x945040,_0xf363b7){return _0xf363b7=_0xf363b7||0xc8,function(_0x3f5ef2){const _0x509903=a513_0x20b2;if(_0x3f5ef2)return _0x945040[_0x509903(0xf3)](_0xf363b7)[_0x509903(0x114)](_0x3f5ef2);};}function respondWithFilteredResult(_0x34ede1,_0x345683){return function(_0x5b2d6e){const _0x13b513=a513_0x20b2;if(_0x5b2d6e){const _0x282f5c=_0x5b2d6e[_0x13b513(0x10f)],_0x39ef46=_0x345683[_0x13b513(0x11c)];let _0x3e1e52=_0x345683[_0x13b513(0x11c)]+_0x345683['limit'],_0x1c1935;return _0x3e1e52>=_0x282f5c?(_0x3e1e52=_0x282f5c,_0x1c1935=0xc8):_0x1c1935=0xce,_0x34ede1[_0x13b513(0xf3)](_0x1c1935),_0x34ede1[_0x13b513(0x103)](_0x13b513(0x101),_0x39ef46+'-'+_0x3e1e52+'/'+_0x282f5c)[_0x13b513(0x114)](_0x5b2d6e);}return null;};}function saveUpdates(_0x1c43fc){return function(_0x11d746){const _0x370af6=a513_0x20b2;if(_0x11d746)return _0x11d746[_0x370af6(0x11e)](_0x1c43fc)[_0x370af6(0xf7)](function(_0x463979){return _0x463979;});return null;};}function removeEntity(_0x7b5c87){return function(_0x5a0b02){const _0xaccd25=a513_0x20b2;if(_0x5a0b02)return _0x5a0b02[_0xaccd25(0x108)]()[_0xaccd25(0xf7)](function(){const _0x29ddb9=_0xaccd25;_0x7b5c87[_0x29ddb9(0xf3)](0xcc)[_0x29ddb9(0x124)]();});};}function handleEntityNotFound(_0x9156e8){return function(_0x5e08bf){const _0x425c57=a513_0x20b2;return!_0x5e08bf&&_0x9156e8[_0x425c57(0x121)](0x194),_0x5e08bf;};}function handleError(_0x47a9d9,_0x28df26){return _0x28df26=_0x28df26||0x1f4,function(_0x9ac1af){const _0xdfcd7e=a513_0x20b2;logger['error'](_0x9ac1af['stack']),_0x9ac1af[_0xdfcd7e(0x117)]&&delete _0x9ac1af[_0xdfcd7e(0x117)],_0x47a9d9[_0xdfcd7e(0xf3)](_0x28df26)[_0xdfcd7e(0xff)](_0x9ac1af);};}exports['index']=function(_0x367371,_0xe736fe){const _0x504a8a=a513_0x5c4b70;let _0x1e5e58={};const _0x5cdc2d={},_0x31d32f={'count':0x0,'rows':[]},_0xaf3d5=_[_0x504a8a(0xf8)](db[_0x504a8a(0x119)]['rawAttributes'],function(_0x5a9207){const _0x2e98a8=_0x504a8a;return{'name':_0x5a9207['fieldName'],'type':_0x5a9207[_0x2e98a8(0xfe)]['key']};});_0x5cdc2d[_0x504a8a(0xf4)]=_[_0x504a8a(0xf8)](_0xaf3d5,'name'),_0x5cdc2d[_0x504a8a(0x11a)]=_[_0x504a8a(0x11b)](_0x367371[_0x504a8a(0x11a)]),_0x5cdc2d['filters']=_['intersection'](_0x5cdc2d[_0x504a8a(0xf4)],_0x5cdc2d['query']),_0x1e5e58[_0x504a8a(0x120)]=_[_0x504a8a(0x10b)](_0x5cdc2d[_0x504a8a(0xf4)],qs[_0x504a8a(0x111)](_0x367371[_0x504a8a(0x11a)][_0x504a8a(0x111)])),_0x1e5e58[_0x504a8a(0x120)]=_0x1e5e58[_0x504a8a(0x120)][_0x504a8a(0xfb)]?_0x1e5e58['attributes']:_0x5cdc2d[_0x504a8a(0xf4)];typeof _0x367371['query'][_0x504a8a(0x104)]===_0x504a8a(0x10d)&&(_0x1e5e58[_0x504a8a(0x109)]=qs[_0x504a8a(0x109)](_0x367371['query']['limit']),_0x1e5e58[_0x504a8a(0x11c)]=qs[_0x504a8a(0x11c)](_0x367371[_0x504a8a(0x11a)][_0x504a8a(0x11c)]));_0x1e5e58[_0x504a8a(0x10a)]=qs['sort'](_0x367371['query'][_0x504a8a(0x11f)]),_0x1e5e58[_0x504a8a(0x110)]=qs[_0x504a8a(0xf6)](_[_0x504a8a(0x115)](_0x367371[_0x504a8a(0x11a)],_0x5cdc2d[_0x504a8a(0xf6)]),_0xaf3d5);_0x367371[_0x504a8a(0x11a)][_0x504a8a(0xfa)]&&(_0x1e5e58[_0x504a8a(0x110)]=_[_0x504a8a(0x116)](_0x1e5e58[_0x504a8a(0x110)],{[Op['or']]:_[_0x504a8a(0xf8)](_0xaf3d5,function(_0x520f60){const _0x5a7d99=_0x504a8a;if(_0x520f60[_0x5a7d99(0xfe)]!==_0x5a7d99(0xfd)){const _0x570903={};return _0x570903[_0x520f60['name']]={[Op[_0x5a7d99(0xfc)]]:'%'+_0x367371[_0x5a7d99(0x11a)][_0x5a7d99(0xfa)]+'%'},_0x570903;}})}));_0x1e5e58=_[_0x504a8a(0x116)]({},_0x1e5e58,_0x367371['options']);const _0x1a819d={'where':_0x1e5e58[_0x504a8a(0x110)]};return db[_0x504a8a(0x119)][_0x504a8a(0x10f)](_0x1a819d)[_0x504a8a(0xf7)](function(_0x22b63c){const _0x347e25=_0x504a8a;return _0x31d32f[_0x347e25(0x10f)]=_0x22b63c,_0x367371['query']['includeAll']&&(_0x1e5e58[_0x347e25(0x100)]=[{'all':!![]}]),db[_0x347e25(0x119)][_0x347e25(0x122)](_0x1e5e58);})[_0x504a8a(0xf7)](function(_0x4a90d1){return _0x31d32f['rows']=_0x4a90d1,_0x31d32f;})['then'](respondWithFilteredResult(_0xe736fe,_0x1e5e58))[_0x504a8a(0x113)](handleError(_0xe736fe,null));},exports[a513_0x5c4b70(0x10c)]=function(_0x21c22f,_0x4c4fd3){const _0x1405c6=a513_0x5c4b70;let _0x516f7d={'raw':!![],'where':{'id':_0x21c22f[_0x1405c6(0x105)]['id']}};const _0xfb028d={};return _0xfb028d['model']=_['keys'](db[_0x1405c6(0x119)][_0x1405c6(0x106)]),_0xfb028d[_0x1405c6(0x11a)]=_[_0x1405c6(0x11b)](_0x21c22f[_0x1405c6(0x11a)]),_0xfb028d[_0x1405c6(0xf6)]=_[_0x1405c6(0x10b)](_0xfb028d[_0x1405c6(0xf4)],_0xfb028d[_0x1405c6(0x11a)]),_0x516f7d[_0x1405c6(0x120)]=_[_0x1405c6(0x10b)](_0xfb028d['model'],qs[_0x1405c6(0x111)](_0x21c22f[_0x1405c6(0x11a)]['fields'])),_0x516f7d[_0x1405c6(0x120)]=_0x516f7d['attributes'][_0x1405c6(0xfb)]?_0x516f7d[_0x1405c6(0x120)]:_0xfb028d[_0x1405c6(0xf4)],_0x21c22f['query'][_0x1405c6(0x123)]&&(_0x516f7d[_0x1405c6(0x100)]=[{'all':!![]}]),_0x516f7d=_[_0x1405c6(0x116)]({},_0x516f7d,_0x21c22f['options']),db[_0x1405c6(0x119)][_0x1405c6(0x102)](_0x516f7d)['then'](handleEntityNotFound(_0x4c4fd3,null))['then'](respondWithResult(_0x4c4fd3,null))['catch'](handleError(_0x4c4fd3,null));},exports[a513_0x5c4b70(0x10e)]=function(_0x6edb2c,_0x24bfff){const _0x265a90=a513_0x5c4b70;return db[_0x265a90(0x119)][_0x265a90(0x10e)](_0x6edb2c[_0x265a90(0x107)],{})[_0x265a90(0xf7)](respondWithResult(_0x24bfff,0xc9))['catch'](handleError(_0x24bfff,null));},exports[a513_0x5c4b70(0x11e)]=function(_0x16a814,_0x4fef77){const _0x1c4cd5=a513_0x5c4b70;return _0x16a814['body']['id']&&delete _0x16a814[_0x1c4cd5(0x107)]['id'],db[_0x1c4cd5(0x119)][_0x1c4cd5(0x102)]({'where':{'id':_0x16a814[_0x1c4cd5(0x105)]['id']}})['then'](handleEntityNotFound(_0x4fef77,null))['then'](saveUpdates(_0x16a814[_0x1c4cd5(0x107)],null))[_0x1c4cd5(0xf7)](respondWithResult(_0x4fef77,null))[_0x1c4cd5(0x113)](handleError(_0x4fef77,null));},exports[a513_0x5c4b70(0x108)]=function(_0x1a6971,_0x791657){const _0x541317=a513_0x5c4b70;return db[_0x541317(0x119)]['findOne']({'where':{'id':_0x1a6971[_0x541317(0x105)]['id']}})[_0x541317(0xf7)](handleEntityNotFound(_0x791657,null))['then'](removeEntity(_0x791657,null))[_0x541317(0x113)](handleError(_0x791657,null));},exports[a513_0x5c4b70(0x11d)]=function(_0x1cf709,_0x1d1afe){const _0x1f2e49=a513_0x5c4b70;return db[_0x1f2e49(0x119)]['describe']()[_0x1f2e49(0xf7)](respondWithResult(_0x1d1afe,null))[_0x1f2e49(0x113)](handleError(_0x1d1afe,null));}; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.model.js b/server/api/mailQueueReport/mailQueueReport.model.js index 3d4f4ec..222e866 100644 --- a/server/api/mailQueueReport/mailQueueReport.model.js +++ b/server/api/mailQueueReport/mailQueueReport.model.js @@ -1 +1 @@ -const a514_0x442e=['exports','./mailQueueReport.attributes','init','sequelize','MailQueueReport'];(function(_0x53c205,_0x480b78){const _0x442ec5=function(_0x3241b0){while(--_0x3241b0){_0x53c205['push'](_0x53c205['shift']());}};_0x442ec5(++_0x480b78);}(a514_0x442e,0x136));const a514_0x3241=function(_0x53c205,_0x480b78){_0x53c205=_0x53c205-0xe3;let _0x442ec5=a514_0x442e[_0x53c205];return _0x442ec5;};const a514_0x35c5e8=a514_0x3241;'use strict';const {Model}=require(a514_0x35c5e8(0xe6)),{attributes}=require(a514_0x35c5e8(0xe4)),{options}=require('./mailQueueReport.options');class MailQueueReport extends Model{}function init(_0x1eea9e,_0x5906d0){const _0x44f442=options(_0x1eea9e),_0x429cb7=typeof _0x5906d0==='function'?_0x5906d0(_0x44f442):_0x44f442;return MailQueueReport['init'](attributes,_0x429cb7),MailQueueReport;}module[a514_0x35c5e8(0xe3)][a514_0x35c5e8(0xe7)]=MailQueueReport,module[a514_0x35c5e8(0xe3)][a514_0x35c5e8(0xe5)]=init; \ No newline at end of file +const a514_0x4361=['function','./mailQueueReport.attributes','sequelize','./mailQueueReport.options','init','exports'];(function(_0x3f2746,_0x3fda85){const _0x436103=function(_0x434912){while(--_0x434912){_0x3f2746['push'](_0x3f2746['shift']());}};_0x436103(++_0x3fda85);}(a514_0x4361,0x1a7));const a514_0x4349=function(_0x3f2746,_0x3fda85){_0x3f2746=_0x3f2746-0x102;let _0x436103=a514_0x4361[_0x3f2746];return _0x436103;};const a514_0x145f21=a514_0x4349;'use strict';const {Model}=require(a514_0x145f21(0x107)),{attributes}=require(a514_0x145f21(0x106)),{options}=require(a514_0x145f21(0x102));class MailQueueReport extends Model{}function init(_0x19244f,_0x522dd0){const _0x53696d=a514_0x145f21,_0x299741=options(_0x19244f),_0x427be7=typeof _0x522dd0===_0x53696d(0x105)?_0x522dd0(_0x299741):_0x299741;return MailQueueReport[_0x53696d(0x103)](attributes,_0x427be7),MailQueueReport;}module[a514_0x145f21(0x104)]['MailQueueReport']=MailQueueReport,module[a514_0x145f21(0x104)]['init']=init; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.options.js b/server/api/mailQueueReport/mailQueueReport.options.js index 7a79285..55ebc6e 100644 --- a/server/api/mailQueueReport/mailQueueReport.options.js +++ b/server/api/mailQueueReport/mailQueueReport.options.js @@ -1 +1 @@ -var a515_0x1f7e=['exports','uniqueid','report_mail_queue','options'];(function(_0x1989ce,_0x5934f8){var _0x1f7ecc=function(_0x2862c6){while(--_0x2862c6){_0x1989ce['push'](_0x1989ce['shift']());}};_0x1f7ecc(++_0x5934f8);}(a515_0x1f7e,0x1ec));var a515_0x2862=function(_0x1989ce,_0x5934f8){_0x1989ce=_0x1989ce-0x8f;var _0x1f7ecc=a515_0x1f7e[_0x1989ce];return _0x1f7ecc;};var a515_0x199194=a515_0x2862;function options(_0x5cb0f7){var _0xeedd39=a515_0x2862;return{'sequelize':_0x5cb0f7,'tableName':_0xeedd39(0x91),'paranoid':![],'indexes':[{'name':_0xeedd39(0x90),'fields':[_0xeedd39(0x90)]}],'timestamps':!![]};}module[a515_0x199194(0x8f)][a515_0x199194(0x92)]=options; \ No newline at end of file +var a515_0x3fe9=['uniqueid','exports','options'];(function(_0x1d3167,_0x4be92e){var _0x3fe9b7=function(_0x2bdad5){while(--_0x2bdad5){_0x1d3167['push'](_0x1d3167['shift']());}};_0x3fe9b7(++_0x4be92e);}(a515_0x3fe9,0xfa));var a515_0x2bda=function(_0x1d3167,_0x4be92e){_0x1d3167=_0x1d3167-0x1e7;var _0x3fe9b7=a515_0x3fe9[_0x1d3167];return _0x3fe9b7;};var a515_0x32b86b=a515_0x2bda;function options(_0x300416){var _0x98cc2a=a515_0x2bda;return{'sequelize':_0x300416,'tableName':'report_mail_queue','paranoid':![],'indexes':[{'name':_0x98cc2a(0x1e9),'fields':[_0x98cc2a(0x1e9)]}],'timestamps':!![]};}module[a515_0x32b86b(0x1e7)][a515_0x32b86b(0x1e8)]=options; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.rpc.js b/server/api/mailQueueReport/mailQueueReport.rpc.js index 277fdfb..fbc4beb 100644 --- a/server/api/mailQueueReport/mailQueueReport.rpc.js +++ b/server/api/mailQueueReport/mailQueueReport.rpc.js @@ -1 +1 @@ -const a516_0x4667=['rpc','catch','then','UpdateMailQueueReport','options','update','stringify','../../config/logger','CreateMailQueueReport','MailQueueReport','info','body','error','raw','debug','attributes','../../mysqldb','where','message'];(function(_0x7c6a68,_0x58a442){const _0x4667c8=function(_0x2f2990){while(--_0x2f2990){_0x7c6a68['push'](_0x7c6a68['shift']());}};_0x4667c8(++_0x58a442);}(a516_0x4667,0xe6));const a516_0x2f29=function(_0x7c6a68,_0x58a442){_0x7c6a68=_0x7c6a68-0xc6;let _0x4667c8=a516_0x4667[_0x7c6a68];return _0x4667c8;};const a516_0x1b8168=a516_0x2f29;'use strict';const db=require(a516_0x1b8168(0xd4))['db'],logger=require(a516_0x1b8168(0xcb))(a516_0x1b8168(0xd7));exports['CreateMailQueueReport']=function(_0x4f836a){const _0x1e7669=this;return new Promise(function(_0x9c05e,_0x51178e){const _0x106863=a516_0x2f29;return db[_0x106863(0xcd)]['create'](_0x4f836a[_0x106863(0xcf)],{'raw':_0x4f836a['options']?_0x4f836a[_0x106863(0xc8)][_0x106863(0xd1)]===undefined?!![]:![]:!![]})[_0x106863(0xc6)](function(_0x1b4a8c){const _0x44042e=_0x106863;logger[_0x44042e(0xce)](_0x44042e(0xcc),_0x4f836a),logger['debug'](_0x44042e(0xcc),_0x4f836a,JSON[_0x44042e(0xca)](_0x1b4a8c)),_0x9c05e(_0x1b4a8c);})[_0x106863(0xd8)](function(_0x5e5091){const _0x149703=_0x106863;logger[_0x149703(0xd0)](_0x149703(0xcc),_0x5e5091[_0x149703(0xd6)],_0x4f836a),_0x51178e(_0x1e7669[_0x149703(0xd0)](0x1f4,_0x5e5091[_0x149703(0xd6)]));});});},exports['UpdateMailQueueReport']=function(_0x414364){const _0x533d83=this;return new Promise(function(_0x30e874,_0x311e0d){const _0x3f9c62=a516_0x2f29;return db['MailQueueReport'][_0x3f9c62(0xc9)](_0x414364[_0x3f9c62(0xcf)],{'raw':_0x414364['options']?_0x414364[_0x3f9c62(0xc8)][_0x3f9c62(0xd1)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x414364[_0x3f9c62(0xc8)]?_0x414364[_0x3f9c62(0xc8)][_0x3f9c62(0xd5)]||null:null,'attributes':_0x414364['options']?_0x414364[_0x3f9c62(0xc8)][_0x3f9c62(0xd3)]||null:null,'limit':_0x414364[_0x3f9c62(0xc8)]?_0x414364[_0x3f9c62(0xc8)]['limit']||null:null})[_0x3f9c62(0xc6)](function(_0x4e4eea){const _0xb5b38=_0x3f9c62;logger[_0xb5b38(0xce)]('UpdateMailQueueReport',_0x414364),logger[_0xb5b38(0xd2)](_0xb5b38(0xc7),_0x414364,JSON['stringify'](_0x4e4eea)),_0x30e874(_0x4e4eea);})['catch'](function(_0x404406){const _0x428f7d=_0x3f9c62;logger[_0x428f7d(0xd0)](_0x428f7d(0xc7),_0x404406[_0x428f7d(0xd6)],_0x414364),_0x311e0d(_0x533d83[_0x428f7d(0xd0)](0x1f4,_0x404406['message']));});});}; \ No newline at end of file +const a516_0x2765=['stringify','UpdateMailQueueReport','raw','../../mysqldb','attributes','then','options','error','rpc','MailQueueReport','catch','where','../../config/logger','info','CreateMailQueueReport','body','message'];(function(_0x53cca4,_0x36ef15){const _0x276590=function(_0x1d9e4a){while(--_0x1d9e4a){_0x53cca4['push'](_0x53cca4['shift']());}};_0x276590(++_0x36ef15);}(a516_0x2765,0xe2));const a516_0x1d9e=function(_0x53cca4,_0x36ef15){_0x53cca4=_0x53cca4-0xf2;let _0x276590=a516_0x2765[_0x53cca4];return _0x276590;};const a516_0xdb5439=a516_0x1d9e;'use strict';const db=require(a516_0xdb5439(0x101))['db'],logger=require(a516_0xdb5439(0xf9))(a516_0xdb5439(0xf5));exports[a516_0xdb5439(0xfb)]=function(_0x15c8de){const _0x3d9820=this;return new Promise(function(_0x30596d,_0x3ddce2){const _0x36acc0=a516_0x1d9e;return db[_0x36acc0(0xf6)]['create'](_0x15c8de[_0x36acc0(0xfc)],{'raw':_0x15c8de[_0x36acc0(0xf3)]?_0x15c8de[_0x36acc0(0xf3)][_0x36acc0(0x100)]===undefined?!![]:![]:!![]})['then'](function(_0x405f99){const _0x2abb7c=_0x36acc0;logger['info'](_0x2abb7c(0xfb),_0x15c8de),logger['debug'](_0x2abb7c(0xfb),_0x15c8de,JSON[_0x2abb7c(0xfe)](_0x405f99)),_0x30596d(_0x405f99);})[_0x36acc0(0xf7)](function(_0x1e45b7){const _0x31fe34=_0x36acc0;logger[_0x31fe34(0xf4)](_0x31fe34(0xfb),_0x1e45b7[_0x31fe34(0xfd)],_0x15c8de),_0x3ddce2(_0x3d9820['error'](0x1f4,_0x1e45b7['message']));});});},exports[a516_0xdb5439(0xff)]=function(_0x558a99){const _0x3aa5a4=this;return new Promise(function(_0x5ac536,_0x141126){const _0x3e07e9=a516_0x1d9e;return db[_0x3e07e9(0xf6)]['update'](_0x558a99[_0x3e07e9(0xfc)],{'raw':_0x558a99[_0x3e07e9(0xf3)]?_0x558a99[_0x3e07e9(0xf3)]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x558a99[_0x3e07e9(0xf3)]?_0x558a99[_0x3e07e9(0xf3)][_0x3e07e9(0xf8)]||null:null,'attributes':_0x558a99[_0x3e07e9(0xf3)]?_0x558a99[_0x3e07e9(0xf3)][_0x3e07e9(0x102)]||null:null,'limit':_0x558a99['options']?_0x558a99[_0x3e07e9(0xf3)]['limit']||null:null})[_0x3e07e9(0xf2)](function(_0x254439){const _0x216bf4=_0x3e07e9;logger[_0x216bf4(0xfa)]('UpdateMailQueueReport',_0x558a99),logger['debug']('UpdateMailQueueReport',_0x558a99,JSON['stringify'](_0x254439)),_0x5ac536(_0x254439);})[_0x3e07e9(0xf7)](function(_0x5f3d63){const _0x5a6b1c=_0x3e07e9;logger[_0x5a6b1c(0xf4)](_0x5a6b1c(0xff),_0x5f3d63['message'],_0x558a99),_0x141126(_0x3aa5a4['error'](0x1f4,_0x5f3d63[_0x5a6b1c(0xfd)]));});});}; \ No newline at end of file diff --git a/server/api/mailServerIn/index.js b/server/api/mailServerIn/index.js index 22d2f23..44c8d0e 100644 --- a/server/api/mailServerIn/index.js +++ b/server/api/mailServerIn/index.js @@ -1 +1 @@ -const a517_0x3a81=['exports','express'];(function(_0xeae4a7,_0x2a406e){const _0x3a8150=function(_0x481ec4){while(--_0x481ec4){_0xeae4a7['push'](_0xeae4a7['shift']());}};_0x3a8150(++_0x2a406e);}(a517_0x3a81,0xbf));const a517_0x481e=function(_0xeae4a7,_0x2a406e){_0xeae4a7=_0xeae4a7-0x13c;let _0x3a8150=a517_0x3a81[_0xeae4a7];return _0x3a8150;};const a517_0x533d3c=a517_0x481e;'use strict';const express=require(a517_0x533d3c(0x13c)),router=express['Router']();module[a517_0x533d3c(0x13d)]=router; \ No newline at end of file +const a517_0x30f3=['exports','Router'];(function(_0xd504c8,_0x321fad){const _0x30f3ed=function(_0x3ba4b5){while(--_0x3ba4b5){_0xd504c8['push'](_0xd504c8['shift']());}};_0x30f3ed(++_0x321fad);}(a517_0x30f3,0xe3));const a517_0x3ba4=function(_0xd504c8,_0x321fad){_0xd504c8=_0xd504c8-0xfb;let _0x30f3ed=a517_0x30f3[_0xd504c8];return _0x30f3ed;};const a517_0x54f8f8=a517_0x3ba4;'use strict';const express=require('express'),router=express[a517_0x54f8f8(0xfb)]();module[a517_0x54f8f8(0xfc)]=router; \ No newline at end of file diff --git a/server/api/mailServerIn/mailServerIn.attributes.js b/server/api/mailServerIn/mailServerIn.attributes.js index 16cc89f..dfff407 100644 --- a/server/api/mailServerIn/mailServerIn.attributes.js +++ b/server/api/mailServerIn/mailServerIn.attributes.js @@ -1 +1 @@ -const a518_0x10d7=['STRING','INTEGER','sequelize','exports','username','BOOLEAN'];(function(_0x1705f3,_0x3d7020){const _0x10d714=function(_0x43774c){while(--_0x43774c){_0x1705f3['push'](_0x1705f3['shift']());}};_0x10d714(++_0x3d7020);}(a518_0x10d7,0xc6));const a518_0x4377=function(_0x1705f3,_0x3d7020){_0x1705f3=_0x1705f3-0x11a;let _0x10d714=a518_0x10d7[_0x1705f3];return _0x10d714;};const a518_0x13b6e0=a518_0x4377;'use strict';const {DataTypes}=require(a518_0x13b6e0(0x11c)),attributes={'description':{'type':DataTypes[a518_0x13b6e0(0x11a)]},'host':{'type':DataTypes[a518_0x13b6e0(0x11a)]},'authentication':{'type':DataTypes[a518_0x13b6e0(0x11f)],'defaultValue':!![]},'user':{'type':DataTypes[a518_0x13b6e0(0x11a)],'unique':a518_0x13b6e0(0x11e)},'password':{'type':DataTypes[a518_0x13b6e0(0x11a)]},'port':{'type':DataTypes[a518_0x13b6e0(0x11b)]},'tls':{'type':DataTypes[a518_0x13b6e0(0x11f)],'defaultValue':!![]},'mailbox':{'type':DataTypes[a518_0x13b6e0(0x11a)],'defaultValue':'INBOX'},'connTimeout':{'type':DataTypes['INTEGER'],'defaultValue':0xa},'authTimeout':{'type':DataTypes[a518_0x13b6e0(0x11b)],'defaultValue':0x5},'service':{'type':DataTypes[a518_0x13b6e0(0x11a)]}};module[a518_0x13b6e0(0x11d)]['attributes']=attributes; \ No newline at end of file +const a518_0x2019=['attributes','BOOLEAN','username','STRING','exports','INTEGER'];(function(_0x3bf287,_0x4f6fc7){const _0x20195b=function(_0x5f276d){while(--_0x5f276d){_0x3bf287['push'](_0x3bf287['shift']());}};_0x20195b(++_0x4f6fc7);}(a518_0x2019,0x1f3));const a518_0x5f27=function(_0x3bf287,_0x4f6fc7){_0x3bf287=_0x3bf287-0xb9;let _0x20195b=a518_0x2019[_0x3bf287];return _0x20195b;};const a518_0x3ae2d9=a518_0x5f27;'use strict';const {DataTypes}=require('sequelize'),attributes={'description':{'type':DataTypes[a518_0x3ae2d9(0xbb)]},'host':{'type':DataTypes['STRING']},'authentication':{'type':DataTypes[a518_0x3ae2d9(0xb9)],'defaultValue':!![]},'user':{'type':DataTypes[a518_0x3ae2d9(0xbb)],'unique':a518_0x3ae2d9(0xba)},'password':{'type':DataTypes[a518_0x3ae2d9(0xbb)]},'port':{'type':DataTypes[a518_0x3ae2d9(0xbd)]},'tls':{'type':DataTypes[a518_0x3ae2d9(0xb9)],'defaultValue':!![]},'mailbox':{'type':DataTypes[a518_0x3ae2d9(0xbb)],'defaultValue':'INBOX'},'connTimeout':{'type':DataTypes[a518_0x3ae2d9(0xbd)],'defaultValue':0xa},'authTimeout':{'type':DataTypes[a518_0x3ae2d9(0xbd)],'defaultValue':0x5},'service':{'type':DataTypes[a518_0x3ae2d9(0xbb)]}};module[a518_0x3ae2d9(0xbc)][a518_0x3ae2d9(0xbe)]=attributes; \ No newline at end of file diff --git a/server/api/mailServerIn/mailServerIn.model.js b/server/api/mailServerIn/mailServerIn.model.js index 4960df2..760d914 100644 --- a/server/api/mailServerIn/mailServerIn.model.js +++ b/server/api/mailServerIn/mailServerIn.model.js @@ -1 +1 @@ -const a519_0x3115=['MailServerIn','exports','sequelize','function','init','./mailServerIn.options'];(function(_0x248f13,_0x3a503e){const _0x3115c7=function(_0x41fe5a){while(--_0x41fe5a){_0x248f13['push'](_0x248f13['shift']());}};_0x3115c7(++_0x3a503e);}(a519_0x3115,0x1ae));const a519_0x41fe=function(_0x248f13,_0x3a503e){_0x248f13=_0x248f13-0x17c;let _0x3115c7=a519_0x3115[_0x248f13];return _0x3115c7;};const a519_0x23111=a519_0x41fe;'use strict';const {Model}=require(a519_0x23111(0x180)),{attributes}=require('./mailServerIn.attributes'),{options}=require(a519_0x23111(0x17d));class MailServerIn extends Model{}function init(_0x394361,_0x120c1d){const _0x5cf4f0=a519_0x23111,_0x33dc3b=options(_0x394361),_0x258f3e=typeof _0x120c1d===_0x5cf4f0(0x181)?_0x120c1d(_0x33dc3b):_0x33dc3b;return MailServerIn[_0x5cf4f0(0x17c)](attributes,_0x258f3e),MailServerIn;}module['exports'][a519_0x23111(0x17e)]=MailServerIn,module[a519_0x23111(0x17f)][a519_0x23111(0x17c)]=init; \ No newline at end of file +const a519_0x3177=['./mailServerIn.attributes','exports','sequelize','./mailServerIn.options','MailServerIn','init','function'];(function(_0x25278b,_0x524f3b){const _0x3177b4=function(_0x32411f){while(--_0x32411f){_0x25278b['push'](_0x25278b['shift']());}};_0x3177b4(++_0x524f3b);}(a519_0x3177,0x138));const a519_0x3241=function(_0x25278b,_0x524f3b){_0x25278b=_0x25278b-0x1b8;let _0x3177b4=a519_0x3177[_0x25278b];return _0x3177b4;};const a519_0x4177e7=a519_0x3241;'use strict';const {Model}=require(a519_0x4177e7(0x1bd)),{attributes}=require(a519_0x4177e7(0x1bb)),{options}=require(a519_0x4177e7(0x1be));class MailServerIn extends Model{}function init(_0x42a4b6,_0x2d04f1){const _0x3cf8a8=a519_0x4177e7,_0x21ae08=options(_0x42a4b6),_0x34a248=typeof _0x2d04f1===_0x3cf8a8(0x1ba)?_0x2d04f1(_0x21ae08):_0x21ae08;return MailServerIn[_0x3cf8a8(0x1b9)](attributes,_0x34a248),MailServerIn;}module['exports'][a519_0x4177e7(0x1b8)]=MailServerIn,module[a519_0x4177e7(0x1bc)][a519_0x4177e7(0x1b9)]=init; \ No newline at end of file diff --git a/server/api/mailServerIn/mailServerIn.options.js b/server/api/mailServerIn/mailServerIn.options.js index 1df8c7e..9607783 100644 --- a/server/api/mailServerIn/mailServerIn.options.js +++ b/server/api/mailServerIn/mailServerIn.options.js @@ -1 +1 @@ -var a520_0x4cf8=['options','exports','mail_servers_in'];(function(_0x49db68,_0x3a8088){var _0x4cf851=function(_0x52d776){while(--_0x52d776){_0x49db68['push'](_0x49db68['shift']());}};_0x4cf851(++_0x3a8088);}(a520_0x4cf8,0x84));var a520_0x52d7=function(_0x49db68,_0x3a8088){_0x49db68=_0x49db68-0x1b4;var _0x4cf851=a520_0x4cf8[_0x49db68];return _0x4cf851;};var a520_0x101128=a520_0x52d7;function options(_0x24a6ef){var _0x3076d3=a520_0x52d7;return{'sequelize':_0x24a6ef,'tableName':_0x3076d3(0x1b6),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a520_0x101128(0x1b5)][a520_0x101128(0x1b4)]=options; \ No newline at end of file +var a520_0x154a=['mail_servers_in','options'];(function(_0x2372f3,_0x50e9d5){var _0x154a0a=function(_0x45972d){while(--_0x45972d){_0x2372f3['push'](_0x2372f3['shift']());}};_0x154a0a(++_0x50e9d5);}(a520_0x154a,0xef));var a520_0x4597=function(_0x2372f3,_0x50e9d5){_0x2372f3=_0x2372f3-0x16f;var _0x154a0a=a520_0x154a[_0x2372f3];return _0x154a0a;};var a520_0x258816=a520_0x4597;function options(_0x21ab0e){var _0x489a33=a520_0x4597;return{'sequelize':_0x21ab0e,'tableName':_0x489a33(0x170),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a520_0x258816(0x16f)]=options; \ No newline at end of file diff --git a/server/api/mailServerIn/mailServerIn.rpc.js b/server/api/mailServerIn/mailServerIn.rpc.js index 621e0ed..8d1c38a 100644 --- a/server/api/mailServerIn/mailServerIn.rpc.js +++ b/server/api/mailServerIn/mailServerIn.rpc.js @@ -1 +1 @@ -const a521_0x5a06=['../../mysqldb','error','include','message','then','info','model','catch','limit','attributes','where','rpc','lodash','debug','../../config/logger','findAll','map','GetMailServerIn','stringify','options'];(function(_0x3f2d46,_0x4a6bfb){const _0x5a0691=function(_0x455f63){while(--_0x455f63){_0x3f2d46['push'](_0x3f2d46['shift']());}};_0x5a0691(++_0x4a6bfb);}(a521_0x5a06,0x1e3));const a521_0x455f=function(_0x3f2d46,_0x4a6bfb){_0x3f2d46=_0x3f2d46-0x9e;let _0x5a0691=a521_0x5a06[_0x3f2d46];return _0x5a0691;};const a521_0x735872=a521_0x455f;'use strict';const _=require(a521_0x735872(0xa7)),db=require(a521_0x735872(0xaf))['db'],logger=require(a521_0x735872(0xa9))(a521_0x735872(0xa6));exports['GetMailServerIn']=function(_0x320172){const _0x1cabe2=this;return new Promise(function(_0x2d15c0,_0x40170e){const _0x1cf2bd=a521_0x455f;return db['MailServerIn'][_0x1cf2bd(0xaa)]({'raw':_0x320172['options']?_0x320172[_0x1cf2bd(0xae)]['raw']===undefined?!![]:![]:!![],'where':_0x320172[_0x1cf2bd(0xae)]?_0x320172[_0x1cf2bd(0xae)][_0x1cf2bd(0xa5)]||null:null,'attributes':_0x320172[_0x1cf2bd(0xae)]?_0x320172[_0x1cf2bd(0xae)][_0x1cf2bd(0xa4)]||null:null,'limit':_0x320172[_0x1cf2bd(0xae)]?_0x320172[_0x1cf2bd(0xae)][_0x1cf2bd(0xa3)]||null:null,'include':_0x320172[_0x1cf2bd(0xae)]?_0x320172['options'][_0x1cf2bd(0xb1)]?_['map'](_0x320172[_0x1cf2bd(0xae)][_0x1cf2bd(0xb1)],function(_0x399139){const _0x1a723e=_0x1cf2bd;return{'model':db[_0x399139['model']],'as':_0x399139['as'],'attributes':_0x399139[_0x1a723e(0xa4)],'include':_0x399139[_0x1a723e(0xb1)]?_[_0x1a723e(0xab)](_0x399139[_0x1a723e(0xb1)],function(_0x27bc04){const _0x260a10=_0x1a723e;return{'model':db[_0x27bc04[_0x260a10(0xa1)]],'as':_0x27bc04['as'],'attributes':_0x27bc04[_0x260a10(0xa4)],'include':_0x27bc04[_0x260a10(0xb1)]?_['map'](_0x27bc04[_0x260a10(0xb1)],function(_0x26493d){const _0x27e007=_0x260a10;return{'model':db[_0x26493d['model']],'as':_0x26493d['as'],'attributes':_0x26493d[_0x27e007(0xa4)]};}):[]};}):[]};}):[]:[]})[_0x1cf2bd(0x9f)](function(_0xbfb549){const _0x109f87=_0x1cf2bd;logger[_0x109f87(0xa0)](_0x109f87(0xac),_0x320172),logger[_0x109f87(0xa8)]('GetMailServerIn',_0x320172,JSON[_0x109f87(0xad)](_0xbfb549)),_0x2d15c0(_0xbfb549);})[_0x1cf2bd(0xa2)](function(_0x237583){const _0x19d801=_0x1cf2bd;logger[_0x19d801(0xb0)]('GetMailServerIn',_0x237583[_0x19d801(0x9e)],_0x320172),_0x40170e(_0x1cabe2[_0x19d801(0xb0)](0x1f4,_0x237583['message']));});});}; \ No newline at end of file +const a521_0x4ced=['../../mysqldb','info','catch','limit','where','lodash','message','attributes','rpc','MailServerIn','map','then','model','findAll','../../config/logger','include','error','raw','options','GetMailServerIn','debug'];(function(_0x49a9c1,_0xc556c3){const _0x4ced39=function(_0x3f2836){while(--_0x3f2836){_0x49a9c1['push'](_0x49a9c1['shift']());}};_0x4ced39(++_0xc556c3);}(a521_0x4ced,0x70));const a521_0x3f28=function(_0x49a9c1,_0xc556c3){_0x49a9c1=_0x49a9c1-0x1e5;let _0x4ced39=a521_0x4ced[_0x49a9c1];return _0x4ced39;};const a521_0x1b73c0=a521_0x3f28;'use strict';const _=require(a521_0x1b73c0(0x1f8)),db=require(a521_0x1b73c0(0x1f3))['db'],logger=require(a521_0x1b73c0(0x1ec))(a521_0x1b73c0(0x1e6));exports[a521_0x1b73c0(0x1f1)]=function(_0x3b971e){const _0x516b9c=this;return new Promise(function(_0x4db655,_0x2ea023){const _0x4e74d1=a521_0x3f28;return db[_0x4e74d1(0x1e7)][_0x4e74d1(0x1eb)]({'raw':_0x3b971e[_0x4e74d1(0x1f0)]?_0x3b971e[_0x4e74d1(0x1f0)][_0x4e74d1(0x1ef)]===undefined?!![]:![]:!![],'where':_0x3b971e[_0x4e74d1(0x1f0)]?_0x3b971e[_0x4e74d1(0x1f0)][_0x4e74d1(0x1f7)]||null:null,'attributes':_0x3b971e[_0x4e74d1(0x1f0)]?_0x3b971e['options'][_0x4e74d1(0x1e5)]||null:null,'limit':_0x3b971e[_0x4e74d1(0x1f0)]?_0x3b971e[_0x4e74d1(0x1f0)][_0x4e74d1(0x1f6)]||null:null,'include':_0x3b971e[_0x4e74d1(0x1f0)]?_0x3b971e[_0x4e74d1(0x1f0)][_0x4e74d1(0x1ed)]?_[_0x4e74d1(0x1e8)](_0x3b971e[_0x4e74d1(0x1f0)][_0x4e74d1(0x1ed)],function(_0x2c2e3d){const _0x5355f3=_0x4e74d1;return{'model':db[_0x2c2e3d['model']],'as':_0x2c2e3d['as'],'attributes':_0x2c2e3d[_0x5355f3(0x1e5)],'include':_0x2c2e3d['include']?_['map'](_0x2c2e3d['include'],function(_0x578d96){const _0x1dd1dd=_0x5355f3;return{'model':db[_0x578d96[_0x1dd1dd(0x1ea)]],'as':_0x578d96['as'],'attributes':_0x578d96[_0x1dd1dd(0x1e5)],'include':_0x578d96[_0x1dd1dd(0x1ed)]?_[_0x1dd1dd(0x1e8)](_0x578d96['include'],function(_0x588349){const _0x3acbfa=_0x1dd1dd;return{'model':db[_0x588349[_0x3acbfa(0x1ea)]],'as':_0x588349['as'],'attributes':_0x588349[_0x3acbfa(0x1e5)]};}):[]};}):[]};}):[]:[]})[_0x4e74d1(0x1e9)](function(_0x30db59){const _0x499766=_0x4e74d1;logger[_0x499766(0x1f4)](_0x499766(0x1f1),_0x3b971e),logger[_0x499766(0x1f2)](_0x499766(0x1f1),_0x3b971e,JSON['stringify'](_0x30db59)),_0x4db655(_0x30db59);})[_0x4e74d1(0x1f5)](function(_0x540037){const _0x3c2583=_0x4e74d1;logger[_0x3c2583(0x1ee)]('GetMailServerIn',_0x540037[_0x3c2583(0x1f9)],_0x3b971e),_0x2ea023(_0x516b9c[_0x3c2583(0x1ee)](0x1f4,_0x540037[_0x3c2583(0x1f9)]));});});}; \ No newline at end of file diff --git a/server/api/mailServerOut/index.js b/server/api/mailServerOut/index.js index fd81ed6..2fc5f9a 100644 --- a/server/api/mailServerOut/index.js +++ b/server/api/mailServerOut/index.js @@ -1 +1 @@ -const a522_0x5f17=['post','Router','index','update','show','/:id','get','destroy','isAuthenticated','express'];(function(_0x3fe117,_0x380f10){const _0x5f17a0=function(_0x266ae2){while(--_0x266ae2){_0x3fe117['push'](_0x3fe117['shift']());}};_0x5f17a0(++_0x380f10);}(a522_0x5f17,0x12b));const a522_0x266a=function(_0x3fe117,_0x380f10){_0x3fe117=_0x3fe117-0x9a;let _0x5f17a0=a522_0x5f17[_0x3fe117];return _0x5f17a0;};const a522_0x116b13=a522_0x266a;'use strict';const express=require(a522_0x116b13(0x9a)),router=express[a522_0x116b13(0x9c)](),auth=require('../../components/auth/service'),controller=require('./mailServerOut.controller');router[a522_0x116b13(0xa1)]('/',auth[a522_0x116b13(0xa3)](),controller[a522_0x116b13(0x9d)]),router['get']('/:id',auth[a522_0x116b13(0xa3)](),controller[a522_0x116b13(0x9f)]),router[a522_0x116b13(0x9b)]('/',auth['isAuthenticated'](),controller['create']),router['put'](a522_0x116b13(0xa0),auth[a522_0x116b13(0xa3)](),controller[a522_0x116b13(0x9e)]),router['delete']('/:id',auth[a522_0x116b13(0xa3)](),controller[a522_0x116b13(0xa2)]),module['exports']=router; \ No newline at end of file +const a522_0x5bad=['express','../../components/auth/service','create','destroy','./mailServerOut.controller','post','/:id','exports','delete','get','Router','show','index','isAuthenticated'];(function(_0x53d118,_0x264253){const _0x5bad27=function(_0x3077be){while(--_0x3077be){_0x53d118['push'](_0x53d118['shift']());}};_0x5bad27(++_0x264253);}(a522_0x5bad,0x104));const a522_0x3077=function(_0x53d118,_0x264253){_0x53d118=_0x53d118-0x152;let _0x5bad27=a522_0x5bad[_0x53d118];return _0x5bad27;};const a522_0x3a1b1b=a522_0x3077;'use strict';const express=require(a522_0x3a1b1b(0x158)),router=express[a522_0x3a1b1b(0x154)](),auth=require(a522_0x3a1b1b(0x159)),controller=require(a522_0x3a1b1b(0x15c));router['get']('/',auth[a522_0x3a1b1b(0x157)](),controller[a522_0x3a1b1b(0x156)]),router[a522_0x3a1b1b(0x153)](a522_0x3a1b1b(0x15e),auth[a522_0x3a1b1b(0x157)](),controller[a522_0x3a1b1b(0x155)]),router[a522_0x3a1b1b(0x15d)]('/',auth[a522_0x3a1b1b(0x157)](),controller[a522_0x3a1b1b(0x15a)]),router['put']('/:id',auth[a522_0x3a1b1b(0x157)](),controller['update']),router[a522_0x3a1b1b(0x152)](a522_0x3a1b1b(0x15e),auth[a522_0x3a1b1b(0x157)](),controller[a522_0x3a1b1b(0x15b)]),module[a522_0x3a1b1b(0x15f)]=router; \ No newline at end of file diff --git a/server/api/mailServerOut/mailServerOut.attributes.js b/server/api/mailServerOut/mailServerOut.attributes.js index 679318f..1e347bb 100644 --- a/server/api/mailServerOut/mailServerOut.attributes.js +++ b/server/api/mailServerOut/mailServerOut.attributes.js @@ -1 +1 @@ -const a523_0x38a0=['INTEGER','exports','STRING','attributes','BOOLEAN','sequelize'];(function(_0x142f7e,_0xbf6804){const _0x38a080=function(_0x547da9){while(--_0x547da9){_0x142f7e['push'](_0x142f7e['shift']());}};_0x38a080(++_0xbf6804);}(a523_0x38a0,0x83));const a523_0x547d=function(_0x142f7e,_0xbf6804){_0x142f7e=_0x142f7e-0x67;let _0x38a080=a523_0x38a0[_0x142f7e];return _0x38a080;};const a523_0x36ff3c=a523_0x547d;'use strict';const {DataTypes}=require(a523_0x36ff3c(0x67)),attributes={'description':{'type':DataTypes[a523_0x36ff3c(0x6a)]},'host':{'type':DataTypes[a523_0x36ff3c(0x6a)]},'user':{'type':DataTypes[a523_0x36ff3c(0x6a)]},'pass':{'type':DataTypes['STRING']},'port':{'type':DataTypes[a523_0x36ff3c(0x68)]},'secure':{'type':DataTypes[a523_0x36ff3c(0x6c)],'defaultValue':![]},'service':{'type':DataTypes[a523_0x36ff3c(0x6a)]},'authentication':{'type':DataTypes[a523_0x36ff3c(0x6c)],'defaultValue':!![]}};module[a523_0x36ff3c(0x69)][a523_0x36ff3c(0x6b)]=attributes; \ No newline at end of file +const a523_0x3534=['STRING','exports','attributes','sequelize','BOOLEAN'];(function(_0x1e4893,_0x164330){const _0x3534aa=function(_0x38ad61){while(--_0x38ad61){_0x1e4893['push'](_0x1e4893['shift']());}};_0x3534aa(++_0x164330);}(a523_0x3534,0xce));const a523_0x38ad=function(_0x1e4893,_0x164330){_0x1e4893=_0x1e4893-0xd1;let _0x3534aa=a523_0x3534[_0x1e4893];return _0x3534aa;};const a523_0x334f94=a523_0x38ad;'use strict';const {DataTypes}=require(a523_0x334f94(0xd3)),attributes={'description':{'type':DataTypes[a523_0x334f94(0xd5)]},'host':{'type':DataTypes['STRING']},'user':{'type':DataTypes[a523_0x334f94(0xd5)]},'pass':{'type':DataTypes[a523_0x334f94(0xd5)]},'port':{'type':DataTypes['INTEGER']},'secure':{'type':DataTypes[a523_0x334f94(0xd4)],'defaultValue':![]},'service':{'type':DataTypes['STRING']},'authentication':{'type':DataTypes[a523_0x334f94(0xd4)],'defaultValue':!![]}};module[a523_0x334f94(0xd1)][a523_0x334f94(0xd2)]=attributes; \ No newline at end of file diff --git a/server/api/mailServerOut/mailServerOut.controller.js b/server/api/mailServerOut/mailServerOut.controller.js index e87a2cf..f115ed4 100644 --- a/server/api/mailServerOut/mailServerOut.controller.js +++ b/server/api/mailServerOut/mailServerOut.controller.js @@ -1 +1 @@ -const a524_0x41f3=['rawAttributes','show','sequelize','Content-Range','VIRTUAL','include','fieldName','type','findAll','index','destroy','undefined','map','json','query','nolimit','model','sort','name','stack','status','filter','keys','../../config/logger','body','attributes','sendStatus','send','length','findOne','fields','options','merge','../../components/parsers/qs','params','catch','then','lodash','../../mysqldb','update','offset','intersection','order','error','MailServerOut','where','create','key','limit','includeAll','end','filters','pick'];(function(_0x15a066,_0x269e22){const _0x41f3f2=function(_0x1815dc){while(--_0x1815dc){_0x15a066['push'](_0x15a066['shift']());}};_0x41f3f2(++_0x269e22);}(a524_0x41f3,0xb3));const a524_0x1815=function(_0x15a066,_0x269e22){_0x15a066=_0x15a066-0xb9;let _0x41f3f2=a524_0x41f3[_0x15a066];return _0x41f3f2;};const a524_0x5c0147=a524_0x1815;'use strict';const _=require(a524_0x5c0147(0xca)),qs=require(a524_0x5c0147(0xc6)),logger=require(a524_0x5c0147(0xbc))('api'),{db}=require(a524_0x5c0147(0xcb)),{Op}=require(a524_0x5c0147(0xdc));function respondWithResult(_0x27bf29,_0x30394d){return _0x30394d=_0x30394d||0xc8,function(_0x2df63b){const _0x25b0dc=a524_0x1815;if(_0x2df63b)return _0x27bf29['status'](_0x30394d)[_0x25b0dc(0xe7)](_0x2df63b);};}function respondWithFilteredResult(_0x21312e,_0x2649e4){return function(_0x3566ec){const _0x286e8f=a524_0x1815;if(_0x3566ec){const _0x12eb11=_0x3566ec['count'],_0x3bb7e3=_0x2649e4[_0x286e8f(0xcd)];let _0x1c7550=_0x2649e4['offset']+_0x2649e4[_0x286e8f(0xd5)],_0x2ec83a;return _0x1c7550>=_0x12eb11?(_0x1c7550=_0x12eb11,_0x2ec83a=0xc8):_0x2ec83a=0xce,_0x21312e[_0x286e8f(0xb9)](_0x2ec83a),_0x21312e['set'](_0x286e8f(0xdd),_0x3bb7e3+'-'+_0x1c7550+'/'+_0x12eb11)[_0x286e8f(0xe7)](_0x3566ec);}return null;};}function saveUpdates(_0x2d7491){return function(_0xd20026){const _0x4633be=a524_0x1815;if(_0xd20026)return _0xd20026[_0x4633be(0xcc)](_0x2d7491)['then'](function(_0x666d10){return _0x666d10;});return null;};}function removeEntity(_0x4c6593){return function(_0x1ec66e){const _0x5c2555=a524_0x1815;if(_0x1ec66e)return _0x1ec66e[_0x5c2555(0xe4)]()[_0x5c2555(0xc9)](function(){const _0x24dfb0=_0x5c2555;_0x4c6593[_0x24dfb0(0xb9)](0xcc)[_0x24dfb0(0xd7)]();});};}function handleEntityNotFound(_0x52914c){return function(_0x4bc336){const _0x3c96b=a524_0x1815;return!_0x4bc336&&_0x52914c[_0x3c96b(0xbf)](0x194),_0x4bc336;};}function handleError(_0x429e00,_0x45a4e5){return _0x45a4e5=_0x45a4e5||0x1f4,function(_0x4144e4){const _0x5db202=a524_0x1815;logger[_0x5db202(0xd0)](_0x4144e4[_0x5db202(0xed)]),_0x4144e4[_0x5db202(0xec)]&&delete _0x4144e4['name'],_0x429e00[_0x5db202(0xb9)](_0x45a4e5)[_0x5db202(0xc0)](_0x4144e4);};}exports[a524_0x5c0147(0xe3)]=function(_0x4fbe2c,_0x22bbca){const _0xa502dc=a524_0x5c0147;let _0x1eea35={};const _0x4ff1f8={},_0x24cb41={'count':0x0,'rows':[]},_0xfe145b=_[_0xa502dc(0xe6)](db[_0xa502dc(0xd1)][_0xa502dc(0xda)],function(_0x338b5a){const _0x4a8520=_0xa502dc;return{'name':_0x338b5a[_0x4a8520(0xe0)],'type':_0x338b5a[_0x4a8520(0xe1)][_0x4a8520(0xd4)]};});_0x4ff1f8[_0xa502dc(0xea)]=_[_0xa502dc(0xe6)](_0xfe145b,'name'),_0x4ff1f8[_0xa502dc(0xe8)]=_['keys'](_0x4fbe2c[_0xa502dc(0xe8)]),_0x4ff1f8[_0xa502dc(0xd8)]=_[_0xa502dc(0xce)](_0x4ff1f8[_0xa502dc(0xea)],_0x4ff1f8[_0xa502dc(0xe8)]),_0x1eea35['attributes']=_[_0xa502dc(0xce)](_0x4ff1f8[_0xa502dc(0xea)],qs[_0xa502dc(0xc3)](_0x4fbe2c[_0xa502dc(0xe8)][_0xa502dc(0xc3)])),_0x1eea35[_0xa502dc(0xbe)]=_0x1eea35['attributes'][_0xa502dc(0xc1)]?_0x1eea35[_0xa502dc(0xbe)]:_0x4ff1f8[_0xa502dc(0xea)];typeof _0x4fbe2c[_0xa502dc(0xe8)][_0xa502dc(0xe9)]===_0xa502dc(0xe5)&&(_0x1eea35['limit']=qs[_0xa502dc(0xd5)](_0x4fbe2c['query']['limit']),_0x1eea35[_0xa502dc(0xcd)]=qs[_0xa502dc(0xcd)](_0x4fbe2c['query'][_0xa502dc(0xcd)]));_0x1eea35[_0xa502dc(0xcf)]=qs[_0xa502dc(0xeb)](_0x4fbe2c[_0xa502dc(0xe8)][_0xa502dc(0xeb)]),_0x1eea35[_0xa502dc(0xd2)]=qs[_0xa502dc(0xd8)](_[_0xa502dc(0xd9)](_0x4fbe2c[_0xa502dc(0xe8)],_0x4ff1f8['filters']),_0xfe145b);_0x4fbe2c[_0xa502dc(0xe8)][_0xa502dc(0xba)]&&(_0x1eea35[_0xa502dc(0xd2)]=_[_0xa502dc(0xc5)](_0x1eea35['where'],{[Op['or']]:_[_0xa502dc(0xe6)](_0xfe145b,function(_0x52da4a){const _0x178f6b=_0xa502dc;if(_0x52da4a[_0x178f6b(0xe1)]!==_0x178f6b(0xde)){const _0x5cbdad={};return _0x5cbdad[_0x52da4a[_0x178f6b(0xec)]]={[Op['like']]:'%'+_0x4fbe2c[_0x178f6b(0xe8)][_0x178f6b(0xba)]+'%'},_0x5cbdad;}})}));_0x1eea35=_[_0xa502dc(0xc5)]({},_0x1eea35,_0x4fbe2c[_0xa502dc(0xc4)]);const _0x2334d5={'where':_0x1eea35[_0xa502dc(0xd2)]};return db[_0xa502dc(0xd1)]['count'](_0x2334d5)[_0xa502dc(0xc9)](function(_0x8fb429){const _0x3a1355=_0xa502dc;return _0x24cb41['count']=_0x8fb429,_0x4fbe2c[_0x3a1355(0xe8)][_0x3a1355(0xd6)]&&(_0x1eea35[_0x3a1355(0xdf)]=[{'all':!![]}]),db[_0x3a1355(0xd1)][_0x3a1355(0xe2)](_0x1eea35);})['then'](function(_0x29b5ec){return _0x24cb41['rows']=_0x29b5ec,_0x24cb41;})[_0xa502dc(0xc9)](respondWithFilteredResult(_0x22bbca,_0x1eea35))[_0xa502dc(0xc8)](handleError(_0x22bbca,null));},exports[a524_0x5c0147(0xdb)]=function(_0x1e4e68,_0x4348c1){const _0x3df8e0=a524_0x5c0147;let _0x32fe71={'raw':!![],'where':{'id':_0x1e4e68[_0x3df8e0(0xc7)]['id']}};const _0x1274e5={};return _0x1274e5['model']=_[_0x3df8e0(0xbb)](db['MailServerOut'][_0x3df8e0(0xda)]),_0x1274e5[_0x3df8e0(0xe8)]=_['keys'](_0x1e4e68[_0x3df8e0(0xe8)]),_0x1274e5[_0x3df8e0(0xd8)]=_['intersection'](_0x1274e5['model'],_0x1274e5[_0x3df8e0(0xe8)]),_0x32fe71[_0x3df8e0(0xbe)]=_[_0x3df8e0(0xce)](_0x1274e5[_0x3df8e0(0xea)],qs[_0x3df8e0(0xc3)](_0x1e4e68[_0x3df8e0(0xe8)]['fields'])),_0x32fe71[_0x3df8e0(0xbe)]=_0x32fe71[_0x3df8e0(0xbe)]['length']?_0x32fe71[_0x3df8e0(0xbe)]:_0x1274e5[_0x3df8e0(0xea)],_0x1e4e68[_0x3df8e0(0xe8)][_0x3df8e0(0xd6)]&&(_0x32fe71[_0x3df8e0(0xdf)]=[{'all':!![]}]),_0x32fe71=_[_0x3df8e0(0xc5)]({},_0x32fe71,_0x1e4e68['options']),db[_0x3df8e0(0xd1)][_0x3df8e0(0xc2)](_0x32fe71)[_0x3df8e0(0xc9)](handleEntityNotFound(_0x4348c1,null))[_0x3df8e0(0xc9)](respondWithResult(_0x4348c1,null))['catch'](handleError(_0x4348c1,null));},exports[a524_0x5c0147(0xd3)]=function(_0xf39424,_0x425682){const _0xe99fe9=a524_0x5c0147;return db[_0xe99fe9(0xd1)][_0xe99fe9(0xd3)](_0xf39424[_0xe99fe9(0xbd)],{})[_0xe99fe9(0xc9)](respondWithResult(_0x425682,0xc9))['catch'](handleError(_0x425682,null));},exports[a524_0x5c0147(0xcc)]=function(_0x43f0e3,_0x5d320f){const _0x54bef6=a524_0x5c0147;return _0x43f0e3[_0x54bef6(0xbd)]['id']&&delete _0x43f0e3[_0x54bef6(0xbd)]['id'],db[_0x54bef6(0xd1)]['findOne']({'where':{'id':_0x43f0e3[_0x54bef6(0xc7)]['id']}})[_0x54bef6(0xc9)](handleEntityNotFound(_0x5d320f,null))[_0x54bef6(0xc9)](saveUpdates(_0x43f0e3[_0x54bef6(0xbd)],null))[_0x54bef6(0xc9)](respondWithResult(_0x5d320f,null))[_0x54bef6(0xc8)](handleError(_0x5d320f,null));},exports[a524_0x5c0147(0xe4)]=function(_0x36cd16,_0x2b08f6){const _0x33cfae=a524_0x5c0147;return db[_0x33cfae(0xd1)][_0x33cfae(0xc2)]({'where':{'id':_0x36cd16[_0x33cfae(0xc7)]['id']}})['then'](handleEntityNotFound(_0x2b08f6,null))[_0x33cfae(0xc9)](removeEntity(_0x2b08f6,null))[_0x33cfae(0xc8)](handleError(_0x2b08f6,null));}; \ No newline at end of file +const a524_0x1bbd=['type','undefined','order','limit','query','findAll','params','findOne','body','catch','keys','json','key','filters','include','MailServerOut','fields','sort','rawAttributes','attributes','nolimit','fieldName','end','rows','../../config/logger','VIRTUAL','update','pick','count','intersection','model','filter','../../components/parsers/qs','show','lodash','offset','set','map','index','api','name','sequelize','merge','options','then','create','where','status','length','send'];(function(_0x1b8018,_0x2e32c1){const _0x1bbd82=function(_0x543de4){while(--_0x543de4){_0x1b8018['push'](_0x1b8018['shift']());}};_0x1bbd82(++_0x2e32c1);}(a524_0x1bbd,0x141));const a524_0x543d=function(_0x1b8018,_0x2e32c1){_0x1b8018=_0x1b8018-0x69;let _0x1bbd82=a524_0x1bbd[_0x1b8018];return _0x1bbd82;};const a524_0x8ebeb0=a524_0x543d;'use strict';const _=require(a524_0x8ebeb0(0x76)),qs=require(a524_0x8ebeb0(0x74)),logger=require(a524_0x8ebeb0(0x6c))(a524_0x8ebeb0(0x7b)),{db}=require('../../mysqldb'),{Op}=require(a524_0x8ebeb0(0x7d));function respondWithResult(_0x1b1ac7,_0x3e36cd){return _0x3e36cd=_0x3e36cd||0xc8,function(_0xa141d1){const _0x4beabf=a524_0x543d;if(_0xa141d1)return _0x1b1ac7[_0x4beabf(0x83)](_0x3e36cd)[_0x4beabf(0x91)](_0xa141d1);};}function respondWithFilteredResult(_0x1dc3fe,_0x4d423d){return function(_0x2a11c5){const _0x1bb2f3=a524_0x543d;if(_0x2a11c5){const _0x1b13cf=_0x2a11c5['count'],_0x1a690b=_0x4d423d[_0x1bb2f3(0x77)];let _0x4bd7eb=_0x4d423d[_0x1bb2f3(0x77)]+_0x4d423d[_0x1bb2f3(0x89)],_0x24cb09;return _0x4bd7eb>=_0x1b13cf?(_0x4bd7eb=_0x1b13cf,_0x24cb09=0xc8):_0x24cb09=0xce,_0x1dc3fe[_0x1bb2f3(0x83)](_0x24cb09),_0x1dc3fe[_0x1bb2f3(0x78)]('Content-Range',_0x1a690b+'-'+_0x4bd7eb+'/'+_0x1b13cf)['json'](_0x2a11c5);}return null;};}function saveUpdates(_0x52e545){return function(_0x215969){const _0x149d41=a524_0x543d;if(_0x215969)return _0x215969[_0x149d41(0x6e)](_0x52e545)[_0x149d41(0x80)](function(_0x39d775){return _0x39d775;});return null;};}function removeEntity(_0x2b092a){return function(_0x5176c0){const _0x20db76=a524_0x543d;if(_0x5176c0)return _0x5176c0['destroy']()[_0x20db76(0x80)](function(){const _0x2b0800=_0x20db76;_0x2b092a[_0x2b0800(0x83)](0xcc)[_0x2b0800(0x6a)]();});};}function handleEntityNotFound(_0x23c5ff){return function(_0xb4aec7){return!_0xb4aec7&&_0x23c5ff['sendStatus'](0x194),_0xb4aec7;};}function handleError(_0x5e1d00,_0x123ae7){return _0x123ae7=_0x123ae7||0x1f4,function(_0x5cfeee){const _0x2f65f0=a524_0x543d;logger['error'](_0x5cfeee['stack']),_0x5cfeee[_0x2f65f0(0x7c)]&&delete _0x5cfeee[_0x2f65f0(0x7c)],_0x5e1d00[_0x2f65f0(0x83)](_0x123ae7)[_0x2f65f0(0x85)](_0x5cfeee);};}exports[a524_0x8ebeb0(0x7a)]=function(_0x1b0f30,_0x17b078){const _0x4abd9b=a524_0x8ebeb0;let _0x26de8d={};const _0x298849={},_0x19f829={'count':0x0,'rows':[]},_0x29ccc8=_[_0x4abd9b(0x79)](db[_0x4abd9b(0x95)][_0x4abd9b(0x98)],function(_0xcb7d5c){const _0x59ea3a=_0x4abd9b;return{'name':_0xcb7d5c[_0x59ea3a(0x69)],'type':_0xcb7d5c['type'][_0x59ea3a(0x92)]};});_0x298849[_0x4abd9b(0x72)]=_[_0x4abd9b(0x79)](_0x29ccc8,_0x4abd9b(0x7c)),_0x298849[_0x4abd9b(0x8a)]=_[_0x4abd9b(0x90)](_0x1b0f30[_0x4abd9b(0x8a)]),_0x298849[_0x4abd9b(0x93)]=_['intersection'](_0x298849[_0x4abd9b(0x72)],_0x298849[_0x4abd9b(0x8a)]),_0x26de8d[_0x4abd9b(0x99)]=_[_0x4abd9b(0x71)](_0x298849[_0x4abd9b(0x72)],qs[_0x4abd9b(0x96)](_0x1b0f30[_0x4abd9b(0x8a)][_0x4abd9b(0x96)])),_0x26de8d[_0x4abd9b(0x99)]=_0x26de8d['attributes'][_0x4abd9b(0x84)]?_0x26de8d[_0x4abd9b(0x99)]:_0x298849[_0x4abd9b(0x72)];typeof _0x1b0f30[_0x4abd9b(0x8a)][_0x4abd9b(0x9a)]===_0x4abd9b(0x87)&&(_0x26de8d['limit']=qs[_0x4abd9b(0x89)](_0x1b0f30[_0x4abd9b(0x8a)][_0x4abd9b(0x89)]),_0x26de8d['offset']=qs[_0x4abd9b(0x77)](_0x1b0f30[_0x4abd9b(0x8a)][_0x4abd9b(0x77)]));_0x26de8d[_0x4abd9b(0x88)]=qs[_0x4abd9b(0x97)](_0x1b0f30[_0x4abd9b(0x8a)]['sort']),_0x26de8d[_0x4abd9b(0x82)]=qs[_0x4abd9b(0x93)](_[_0x4abd9b(0x6f)](_0x1b0f30['query'],_0x298849[_0x4abd9b(0x93)]),_0x29ccc8);_0x1b0f30[_0x4abd9b(0x8a)][_0x4abd9b(0x73)]&&(_0x26de8d[_0x4abd9b(0x82)]=_[_0x4abd9b(0x7e)](_0x26de8d['where'],{[Op['or']]:_['map'](_0x29ccc8,function(_0x4fbc90){const _0x3c343a=_0x4abd9b;if(_0x4fbc90[_0x3c343a(0x86)]!==_0x3c343a(0x6d)){const _0x43174e={};return _0x43174e[_0x4fbc90['name']]={[Op['like']]:'%'+_0x1b0f30['query'][_0x3c343a(0x73)]+'%'},_0x43174e;}})}));_0x26de8d=_[_0x4abd9b(0x7e)]({},_0x26de8d,_0x1b0f30[_0x4abd9b(0x7f)]);const _0x1143e6={'where':_0x26de8d[_0x4abd9b(0x82)]};return db['MailServerOut'][_0x4abd9b(0x70)](_0x1143e6)[_0x4abd9b(0x80)](function(_0x5512d1){const _0x1769db=_0x4abd9b;return _0x19f829[_0x1769db(0x70)]=_0x5512d1,_0x1b0f30[_0x1769db(0x8a)]['includeAll']&&(_0x26de8d[_0x1769db(0x94)]=[{'all':!![]}]),db['MailServerOut'][_0x1769db(0x8b)](_0x26de8d);})[_0x4abd9b(0x80)](function(_0x106881){const _0x427612=_0x4abd9b;return _0x19f829[_0x427612(0x6b)]=_0x106881,_0x19f829;})[_0x4abd9b(0x80)](respondWithFilteredResult(_0x17b078,_0x26de8d))[_0x4abd9b(0x8f)](handleError(_0x17b078,null));},exports[a524_0x8ebeb0(0x75)]=function(_0x3ec06c,_0xfac651){const _0x18abf8=a524_0x8ebeb0;let _0x2dd643={'raw':!![],'where':{'id':_0x3ec06c[_0x18abf8(0x8c)]['id']}};const _0x225942={};return _0x225942[_0x18abf8(0x72)]=_[_0x18abf8(0x90)](db[_0x18abf8(0x95)]['rawAttributes']),_0x225942['query']=_[_0x18abf8(0x90)](_0x3ec06c[_0x18abf8(0x8a)]),_0x225942[_0x18abf8(0x93)]=_[_0x18abf8(0x71)](_0x225942[_0x18abf8(0x72)],_0x225942[_0x18abf8(0x8a)]),_0x2dd643['attributes']=_[_0x18abf8(0x71)](_0x225942['model'],qs[_0x18abf8(0x96)](_0x3ec06c[_0x18abf8(0x8a)]['fields'])),_0x2dd643['attributes']=_0x2dd643[_0x18abf8(0x99)]['length']?_0x2dd643[_0x18abf8(0x99)]:_0x225942[_0x18abf8(0x72)],_0x3ec06c[_0x18abf8(0x8a)]['includeAll']&&(_0x2dd643['include']=[{'all':!![]}]),_0x2dd643=_[_0x18abf8(0x7e)]({},_0x2dd643,_0x3ec06c[_0x18abf8(0x7f)]),db[_0x18abf8(0x95)][_0x18abf8(0x8d)](_0x2dd643)[_0x18abf8(0x80)](handleEntityNotFound(_0xfac651,null))[_0x18abf8(0x80)](respondWithResult(_0xfac651,null))[_0x18abf8(0x8f)](handleError(_0xfac651,null));},exports['create']=function(_0x5000ca,_0x3a6f2a){const _0x519449=a524_0x8ebeb0;return db['MailServerOut'][_0x519449(0x81)](_0x5000ca[_0x519449(0x8e)],{})['then'](respondWithResult(_0x3a6f2a,0xc9))[_0x519449(0x8f)](handleError(_0x3a6f2a,null));},exports['update']=function(_0x149154,_0x4ff0d5){const _0x3115fe=a524_0x8ebeb0;return _0x149154['body']['id']&&delete _0x149154[_0x3115fe(0x8e)]['id'],db['MailServerOut'][_0x3115fe(0x8d)]({'where':{'id':_0x149154[_0x3115fe(0x8c)]['id']}})[_0x3115fe(0x80)](handleEntityNotFound(_0x4ff0d5,null))[_0x3115fe(0x80)](saveUpdates(_0x149154['body'],null))[_0x3115fe(0x80)](respondWithResult(_0x4ff0d5,null))[_0x3115fe(0x8f)](handleError(_0x4ff0d5,null));},exports['destroy']=function(_0x48ff5e,_0xab80f5){const _0x31a8e2=a524_0x8ebeb0;return db[_0x31a8e2(0x95)][_0x31a8e2(0x8d)]({'where':{'id':_0x48ff5e['params']['id']}})[_0x31a8e2(0x80)](handleEntityNotFound(_0xab80f5,null))[_0x31a8e2(0x80)](removeEntity(_0xab80f5,null))[_0x31a8e2(0x8f)](handleError(_0xab80f5,null));}; \ No newline at end of file diff --git a/server/api/mailServerOut/mailServerOut.model.js b/server/api/mailServerOut/mailServerOut.model.js index 34d1b77..69579fe 100644 --- a/server/api/mailServerOut/mailServerOut.model.js +++ b/server/api/mailServerOut/mailServerOut.model.js @@ -1 +1 @@ -const a525_0x327f=['exports','./mailServerOut.options','init','MailServerOut','./mailServerOut.attributes','function','sequelize'];(function(_0x3088c2,_0x159106){const _0x327f67=function(_0x3f78ba){while(--_0x3f78ba){_0x3088c2['push'](_0x3088c2['shift']());}};_0x327f67(++_0x159106);}(a525_0x327f,0xa4));const a525_0x3f78=function(_0x3088c2,_0x159106){_0x3088c2=_0x3088c2-0x156;let _0x327f67=a525_0x327f[_0x3088c2];return _0x327f67;};const a525_0x4195b8=a525_0x3f78;'use strict';const {Model}=require(a525_0x4195b8(0x159)),{attributes}=require(a525_0x4195b8(0x157)),{options}=require(a525_0x4195b8(0x15b));class MailServerOut extends Model{}function init(_0x3464e0,_0x5d1fc5){const _0x40d2ba=a525_0x4195b8,_0x5b9275=options(_0x3464e0),_0x4fb0ec=typeof _0x5d1fc5===_0x40d2ba(0x158)?_0x5d1fc5(_0x5b9275):_0x5b9275;return MailServerOut[_0x40d2ba(0x15c)](attributes,_0x4fb0ec),MailServerOut;}module[a525_0x4195b8(0x15a)][a525_0x4195b8(0x156)]=MailServerOut,module['exports'][a525_0x4195b8(0x15c)]=init; \ No newline at end of file +const a525_0x2bcc=['init','function','exports','MailServerOut','sequelize'];(function(_0x16fb43,_0x8eb25d){const _0x2bccdc=function(_0x2649b3){while(--_0x2649b3){_0x16fb43['push'](_0x16fb43['shift']());}};_0x2bccdc(++_0x8eb25d);}(a525_0x2bcc,0x138));const a525_0x2649=function(_0x16fb43,_0x8eb25d){_0x16fb43=_0x16fb43-0x69;let _0x2bccdc=a525_0x2bcc[_0x16fb43];return _0x2bccdc;};const a525_0xc0c968=a525_0x2649;'use strict';const {Model}=require(a525_0xc0c968(0x6b)),{attributes}=require('./mailServerOut.attributes'),{options}=require('./mailServerOut.options');class MailServerOut extends Model{}function init(_0x7650bc,_0x2f1f08){const _0x273bac=a525_0xc0c968,_0x577d27=options(_0x7650bc),_0x22dbae=typeof _0x2f1f08===_0x273bac(0x6d)?_0x2f1f08(_0x577d27):_0x577d27;return MailServerOut[_0x273bac(0x6c)](attributes,_0x22dbae),MailServerOut;}module[a525_0xc0c968(0x69)][a525_0xc0c968(0x6a)]=MailServerOut,module[a525_0xc0c968(0x69)]['init']=init; \ No newline at end of file diff --git a/server/api/mailServerOut/mailServerOut.options.js b/server/api/mailServerOut/mailServerOut.options.js index d8b18e9..d8327d7 100644 --- a/server/api/mailServerOut/mailServerOut.options.js +++ b/server/api/mailServerOut/mailServerOut.options.js @@ -1 +1 @@ -var a526_0x6e03=['mail_servers_out','options','exports'];(function(_0x2c2403,_0x2437d5){var _0x6e0371=function(_0x493881){while(--_0x493881){_0x2c2403['push'](_0x2c2403['shift']());}};_0x6e0371(++_0x2437d5);}(a526_0x6e03,0x1af));var a526_0x4938=function(_0x2c2403,_0x2437d5){_0x2c2403=_0x2c2403-0x176;var _0x6e0371=a526_0x6e03[_0x2c2403];return _0x6e0371;};var a526_0x2b2f00=a526_0x4938;function options(_0x1599c0){var _0x59a4ec=a526_0x4938;return{'sequelize':_0x1599c0,'tableName':_0x59a4ec(0x177),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a526_0x2b2f00(0x176)][a526_0x2b2f00(0x178)]=options; \ No newline at end of file +var a526_0x5440=['options'];(function(_0x1e8d30,_0x1197cf){var _0x5440d7=function(_0x166f6e){while(--_0x166f6e){_0x1e8d30['push'](_0x1e8d30['shift']());}};_0x5440d7(++_0x1197cf);}(a526_0x5440,0x17d));var a526_0x166f=function(_0x1e8d30,_0x1197cf){_0x1e8d30=_0x1e8d30-0x117;var _0x5440d7=a526_0x5440[_0x1e8d30];return _0x5440d7;};var a526_0x141059=a526_0x166f;function options(_0x2d69cb){return{'sequelize':_0x2d69cb,'tableName':'mail_servers_out','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a526_0x141059(0x117)]=options; \ No newline at end of file diff --git a/server/api/mailSubstatus/index.js b/server/api/mailSubstatus/index.js index a21dd3b..b4daa30 100644 --- a/server/api/mailSubstatus/index.js +++ b/server/api/mailSubstatus/index.js @@ -1 +1 @@ -const a527_0x7b08=['post','update','index','destroy','isAuthenticated','create','Router','/describe','put','../../components/auth/service','./mailSubstatus.controller','get','express','delete','/:id'];(function(_0x1f9ec8,_0x33d482){const _0x7b08e1=function(_0x5117eb){while(--_0x5117eb){_0x1f9ec8['push'](_0x1f9ec8['shift']());}};_0x7b08e1(++_0x33d482);}(a527_0x7b08,0x1ad));const a527_0x5117=function(_0x1f9ec8,_0x33d482){_0x1f9ec8=_0x1f9ec8-0x132;let _0x7b08e1=a527_0x7b08[_0x1f9ec8];return _0x7b08e1;};const a527_0x249bd0=a527_0x5117;'use strict';const express=require(a527_0x249bd0(0x135)),router=express[a527_0x249bd0(0x13e)](),auth=require(a527_0x249bd0(0x132)),controller=require(a527_0x249bd0(0x133));router[a527_0x249bd0(0x134)]('/',auth[a527_0x249bd0(0x13c)](),controller[a527_0x249bd0(0x13a)]),router['get'](a527_0x249bd0(0x13f),auth[a527_0x249bd0(0x13c)](),controller['describe']),router[a527_0x249bd0(0x134)](a527_0x249bd0(0x137),auth['isAuthenticated'](),controller['show']),router[a527_0x249bd0(0x138)]('/',auth[a527_0x249bd0(0x13c)](),controller[a527_0x249bd0(0x13d)]),router[a527_0x249bd0(0x140)](a527_0x249bd0(0x137),auth[a527_0x249bd0(0x13c)](),controller[a527_0x249bd0(0x139)]),router[a527_0x249bd0(0x136)](a527_0x249bd0(0x137),auth[a527_0x249bd0(0x13c)](),controller[a527_0x249bd0(0x13b)]),module['exports']=router; \ No newline at end of file +const a527_0x5243=['/:id','show','post','describe','delete','get','isAuthenticated','put','create','express','index','Router','destroy','exports','./mailSubstatus.controller','../../components/auth/service'];(function(_0x321f24,_0x4307f8){const _0x5243b6=function(_0x308b49){while(--_0x308b49){_0x321f24['push'](_0x321f24['shift']());}};_0x5243b6(++_0x4307f8);}(a527_0x5243,0x15c));const a527_0x308b=function(_0x321f24,_0x4307f8){_0x321f24=_0x321f24-0x150;let _0x5243b6=a527_0x5243[_0x321f24];return _0x5243b6;};const a527_0x3309b7=a527_0x308b;'use strict';const express=require(a527_0x3309b7(0x15d)),router=express[a527_0x3309b7(0x15f)](),auth=require(a527_0x3309b7(0x153)),controller=require(a527_0x3309b7(0x152));router[a527_0x3309b7(0x159)]('/',auth[a527_0x3309b7(0x15a)](),controller[a527_0x3309b7(0x15e)]),router[a527_0x3309b7(0x159)]('/describe',auth[a527_0x3309b7(0x15a)](),controller[a527_0x3309b7(0x157)]),router[a527_0x3309b7(0x159)](a527_0x3309b7(0x154),auth[a527_0x3309b7(0x15a)](),controller[a527_0x3309b7(0x155)]),router[a527_0x3309b7(0x156)]('/',auth[a527_0x3309b7(0x15a)](),controller[a527_0x3309b7(0x15c)]),router[a527_0x3309b7(0x15b)]('/:id',auth['isAuthenticated'](),controller['update']),router[a527_0x3309b7(0x158)](a527_0x3309b7(0x154),auth['isAuthenticated'](),controller[a527_0x3309b7(0x150)]),module[a527_0x3309b7(0x151)]=router; \ No newline at end of file diff --git a/server/api/mailSubstatus/mailSubstatus.attributes.js b/server/api/mailSubstatus/mailSubstatus.attributes.js index 5c8fc17..d50fb52 100644 --- a/server/api/mailSubstatus/mailSubstatus.attributes.js +++ b/server/api/mailSubstatus/mailSubstatus.attributes.js @@ -1 +1 @@ -const a528_0x3a85=['STRING','name','attributes','sequelize'];(function(_0x4100a5,_0x3f5edf){const _0x3a8510=function(_0x4d0896){while(--_0x4d0896){_0x4100a5['push'](_0x4100a5['shift']());}};_0x3a8510(++_0x3f5edf);}(a528_0x3a85,0xfc));const a528_0x4d08=function(_0x4100a5,_0x3f5edf){_0x4100a5=_0x4100a5-0x1da;let _0x3a8510=a528_0x3a85[_0x4100a5];return _0x3a8510;};const a528_0x4dc4ce=a528_0x4d08;'use strict';const {DataTypes}=require(a528_0x4dc4ce(0x1dd)),attributes={'name':{'type':DataTypes[a528_0x4dc4ce(0x1da)],'unique':a528_0x4dc4ce(0x1db),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':DataTypes[a528_0x4dc4ce(0x1da)]}};module['exports'][a528_0x4dc4ce(0x1dc)]=attributes; \ No newline at end of file +const a528_0x15f5=['exports','STRING','attributes'];(function(_0x14089a,_0x45198d){const _0x15f5c2=function(_0x365ec2){while(--_0x365ec2){_0x14089a['push'](_0x14089a['shift']());}};_0x15f5c2(++_0x45198d);}(a528_0x15f5,0x64));const a528_0x365e=function(_0x14089a,_0x45198d){_0x14089a=_0x14089a-0x10f;let _0x15f5c2=a528_0x15f5[_0x14089a];return _0x15f5c2;};const a528_0x45a209=a528_0x365e;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes['STRING'],'unique':'name','allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':DataTypes[a528_0x45a209(0x10f)]}};module[a528_0x45a209(0x111)][a528_0x45a209(0x110)]=attributes; \ No newline at end of file diff --git a/server/api/mailSubstatus/mailSubstatus.controller.js b/server/api/mailSubstatus/mailSubstatus.controller.js index e097dbe..0707ec5 100644 --- a/server/api/mailSubstatus/mailSubstatus.controller.js +++ b/server/api/mailSubstatus/mailSubstatus.controller.js @@ -1 +1 @@ -const a529_0x514f=['rawAttributes','destroy','model','sequelize','options','lodash','end','nolimit','MailSubstatus','findAll','name','update','status','findOne','pick','describe','fields','undefined','limit','attributes','index','body','filter','rows','api','length','intersection','Content-Range','params','../../components/parsers/qs','../../mysqldb','type','merge','VIRTUAL','json','key','map','order','query','create','where','catch','count','send','fieldName','then','includeAll','error','keys','offset','sort','filters','sendStatus'];(function(_0x440596,_0x5a4203){const _0x514f88=function(_0x4dadf0){while(--_0x4dadf0){_0x440596['push'](_0x440596['shift']());}};_0x514f88(++_0x5a4203);}(a529_0x514f,0x1f3));const a529_0x4dad=function(_0x440596,_0x5a4203){_0x440596=_0x440596-0x17a;let _0x514f88=a529_0x514f[_0x440596];return _0x514f88;};const a529_0x24f79a=a529_0x4dad;'use strict';const _=require(a529_0x24f79a(0x19e)),qs=require(a529_0x24f79a(0x181)),logger=require('../../config/logger')(a529_0x24f79a(0x17c)),{db}=require(a529_0x24f79a(0x182)),{Op}=require(a529_0x24f79a(0x19c));function respondWithResult(_0x4089da,_0x1e8d18){return _0x1e8d18=_0x1e8d18||0xc8,function(_0x5cad94){const _0x2a193f=a529_0x4dad;if(_0x5cad94)return _0x4089da[_0x2a193f(0x1a5)](_0x1e8d18)[_0x2a193f(0x186)](_0x5cad94);};}function respondWithFilteredResult(_0x261b41,_0x3b5d79){return function(_0x459f78){const _0x4b280b=a529_0x4dad;if(_0x459f78){const _0x540e3c=_0x459f78[_0x4b280b(0x18e)],_0x1952a4=_0x3b5d79[_0x4b280b(0x195)];let _0x54a67b=_0x3b5d79[_0x4b280b(0x195)]+_0x3b5d79[_0x4b280b(0x1ab)],_0x24aaa8;return _0x54a67b>=_0x540e3c?(_0x54a67b=_0x540e3c,_0x24aaa8=0xc8):_0x24aaa8=0xce,_0x261b41[_0x4b280b(0x1a5)](_0x24aaa8),_0x261b41['set'](_0x4b280b(0x17f),_0x1952a4+'-'+_0x54a67b+'/'+_0x540e3c)[_0x4b280b(0x186)](_0x459f78);}return null;};}function saveUpdates(_0x1a1ad5){return function(_0x5ccfc7){const _0x204b59=a529_0x4dad;if(_0x5ccfc7)return _0x5ccfc7['update'](_0x1a1ad5)[_0x204b59(0x191)](function(_0x287f87){return _0x287f87;});return null;};}function removeEntity(_0x4c563c){return function(_0x74d50a){const _0x48d4ec=a529_0x4dad;if(_0x74d50a)return _0x74d50a['destroy']()[_0x48d4ec(0x191)](function(){const _0x5b9c0f=_0x48d4ec;_0x4c563c[_0x5b9c0f(0x1a5)](0xcc)[_0x5b9c0f(0x19f)]();});};}function handleEntityNotFound(_0x3a57b6){return function(_0x596f02){const _0x4cd23f=a529_0x4dad;return!_0x596f02&&_0x3a57b6[_0x4cd23f(0x198)](0x194),_0x596f02;};}function handleError(_0x55115d,_0x18bdd6){return _0x18bdd6=_0x18bdd6||0x1f4,function(_0x34aea5){const _0x31ae5c=a529_0x4dad;logger[_0x31ae5c(0x193)](_0x34aea5['stack']),_0x34aea5[_0x31ae5c(0x1a3)]&&delete _0x34aea5[_0x31ae5c(0x1a3)],_0x55115d[_0x31ae5c(0x1a5)](_0x18bdd6)[_0x31ae5c(0x18f)](_0x34aea5);};}exports[a529_0x24f79a(0x1ad)]=function(_0x4e7d32,_0x5d77aa){const _0x4ec42f=a529_0x24f79a;let _0x1a8b98={};const _0x4ae69f={},_0x3851d9={'count':0x0,'rows':[]},_0x1f26a5=_['map'](db['MailSubstatus']['rawAttributes'],function(_0x3c0fe8){const _0x5b96da=a529_0x4dad;return{'name':_0x3c0fe8[_0x5b96da(0x190)],'type':_0x3c0fe8[_0x5b96da(0x183)][_0x5b96da(0x187)]};});_0x4ae69f[_0x4ec42f(0x19b)]=_[_0x4ec42f(0x188)](_0x1f26a5,_0x4ec42f(0x1a3)),_0x4ae69f['query']=_[_0x4ec42f(0x194)](_0x4e7d32[_0x4ec42f(0x18a)]),_0x4ae69f['filters']=_[_0x4ec42f(0x17e)](_0x4ae69f['model'],_0x4ae69f['query']),_0x1a8b98['attributes']=_[_0x4ec42f(0x17e)](_0x4ae69f[_0x4ec42f(0x19b)],qs['fields'](_0x4e7d32[_0x4ec42f(0x18a)][_0x4ec42f(0x1a9)])),_0x1a8b98[_0x4ec42f(0x1ac)]=_0x1a8b98[_0x4ec42f(0x1ac)]['length']?_0x1a8b98[_0x4ec42f(0x1ac)]:_0x4ae69f['model'];typeof _0x4e7d32[_0x4ec42f(0x18a)][_0x4ec42f(0x1a0)]===_0x4ec42f(0x1aa)&&(_0x1a8b98[_0x4ec42f(0x1ab)]=qs[_0x4ec42f(0x1ab)](_0x4e7d32[_0x4ec42f(0x18a)]['limit']),_0x1a8b98['offset']=qs[_0x4ec42f(0x195)](_0x4e7d32[_0x4ec42f(0x18a)][_0x4ec42f(0x195)]));_0x1a8b98[_0x4ec42f(0x189)]=qs[_0x4ec42f(0x196)](_0x4e7d32[_0x4ec42f(0x18a)]['sort']),_0x1a8b98[_0x4ec42f(0x18c)]=qs['filters'](_[_0x4ec42f(0x1a7)](_0x4e7d32[_0x4ec42f(0x18a)],_0x4ae69f[_0x4ec42f(0x197)]),_0x1f26a5);_0x4e7d32[_0x4ec42f(0x18a)][_0x4ec42f(0x17a)]&&(_0x1a8b98[_0x4ec42f(0x18c)]=_[_0x4ec42f(0x184)](_0x1a8b98[_0x4ec42f(0x18c)],{[Op['or']]:_['map'](_0x1f26a5,function(_0x31eb2f){const _0x29d2e5=_0x4ec42f;if(_0x31eb2f['type']!==_0x29d2e5(0x185)){const _0x24f987={};return _0x24f987[_0x31eb2f[_0x29d2e5(0x1a3)]]={[Op['like']]:'%'+_0x4e7d32[_0x29d2e5(0x18a)][_0x29d2e5(0x17a)]+'%'},_0x24f987;}})}));_0x1a8b98=_[_0x4ec42f(0x184)]({},_0x1a8b98,_0x4e7d32[_0x4ec42f(0x19d)]);const _0x44a7fc={'where':_0x1a8b98[_0x4ec42f(0x18c)]};return db[_0x4ec42f(0x1a1)]['count'](_0x44a7fc)[_0x4ec42f(0x191)](function(_0x252ce5){const _0x317d47=_0x4ec42f;return _0x3851d9['count']=_0x252ce5,_0x4e7d32[_0x317d47(0x18a)][_0x317d47(0x192)]&&(_0x1a8b98['include']=[{'all':!![]}]),db[_0x317d47(0x1a1)][_0x317d47(0x1a2)](_0x1a8b98);})[_0x4ec42f(0x191)](function(_0x26692e){const _0x20ad6c=_0x4ec42f;return _0x3851d9[_0x20ad6c(0x17b)]=_0x26692e,_0x3851d9;})[_0x4ec42f(0x191)](respondWithFilteredResult(_0x5d77aa,_0x1a8b98))[_0x4ec42f(0x18d)](handleError(_0x5d77aa,null));},exports['show']=function(_0x104d35,_0xe024d7){const _0xa216ab=a529_0x24f79a;let _0x128da8={'raw':!![],'where':{'id':_0x104d35['params']['id']}};const _0xc4b7a8={};return _0xc4b7a8[_0xa216ab(0x19b)]=_[_0xa216ab(0x194)](db['MailSubstatus'][_0xa216ab(0x199)]),_0xc4b7a8[_0xa216ab(0x18a)]=_[_0xa216ab(0x194)](_0x104d35[_0xa216ab(0x18a)]),_0xc4b7a8[_0xa216ab(0x197)]=_[_0xa216ab(0x17e)](_0xc4b7a8['model'],_0xc4b7a8[_0xa216ab(0x18a)]),_0x128da8[_0xa216ab(0x1ac)]=_[_0xa216ab(0x17e)](_0xc4b7a8['model'],qs['fields'](_0x104d35['query']['fields'])),_0x128da8[_0xa216ab(0x1ac)]=_0x128da8[_0xa216ab(0x1ac)][_0xa216ab(0x17d)]?_0x128da8[_0xa216ab(0x1ac)]:_0xc4b7a8['model'],_0x104d35[_0xa216ab(0x18a)][_0xa216ab(0x192)]&&(_0x128da8['include']=[{'all':!![]}]),_0x128da8=_[_0xa216ab(0x184)]({},_0x128da8,_0x104d35[_0xa216ab(0x19d)]),db[_0xa216ab(0x1a1)][_0xa216ab(0x1a6)](_0x128da8)[_0xa216ab(0x191)](handleEntityNotFound(_0xe024d7,null))[_0xa216ab(0x191)](respondWithResult(_0xe024d7,null))[_0xa216ab(0x18d)](handleError(_0xe024d7,null));},exports[a529_0x24f79a(0x18b)]=function(_0x55790f,_0x2c1c48){const _0x9e0bc3=a529_0x24f79a;return db[_0x9e0bc3(0x1a1)]['create'](_0x55790f[_0x9e0bc3(0x1ae)],{})[_0x9e0bc3(0x191)](respondWithResult(_0x2c1c48,0xc9))[_0x9e0bc3(0x18d)](handleError(_0x2c1c48,null));},exports[a529_0x24f79a(0x1a4)]=function(_0x29e27e,_0x3ca80a){const _0x27b99e=a529_0x24f79a;return _0x29e27e[_0x27b99e(0x1ae)]['id']&&delete _0x29e27e['body']['id'],db[_0x27b99e(0x1a1)][_0x27b99e(0x1a6)]({'where':{'id':_0x29e27e[_0x27b99e(0x180)]['id']}})[_0x27b99e(0x191)](handleEntityNotFound(_0x3ca80a,null))[_0x27b99e(0x191)](saveUpdates(_0x29e27e[_0x27b99e(0x1ae)],null))['then'](respondWithResult(_0x3ca80a,null))[_0x27b99e(0x18d)](handleError(_0x3ca80a,null));},exports[a529_0x24f79a(0x19a)]=function(_0x4d02a0,_0x13ae13){const _0x53dde3=a529_0x24f79a;return db[_0x53dde3(0x1a1)]['findOne']({'where':{'id':_0x4d02a0[_0x53dde3(0x180)]['id']}})['then'](handleEntityNotFound(_0x13ae13,null))[_0x53dde3(0x191)](removeEntity(_0x13ae13,null))[_0x53dde3(0x18d)](handleError(_0x13ae13,null));},exports['describe']=function(_0x100f0d,_0x2e8852){const _0x5f3f0f=a529_0x24f79a;return db[_0x5f3f0f(0x1a1)][_0x5f3f0f(0x1a8)]()[_0x5f3f0f(0x191)](respondWithResult(_0x2e8852,null))[_0x5f3f0f(0x18d)](handleError(_0x2e8852,null));}; \ No newline at end of file +const a529_0x1ef8=['count','includeAll','options','intersection','name','index','status','create','../../mysqldb','merge','sequelize','set','params','send','filter','VIRTUAL','findOne','query','include','rows','limit','model','where','findAll','update','json','fieldName','fields','nolimit','offset','sort','destroy','then','filters','catch','show','type','length','keys','undefined','attributes','describe','sendStatus','rawAttributes','pick','Content-Range','body','order','api','error','map','lodash','../../config/logger','MailSubstatus'];(function(_0xf4d8e3,_0x40e384){const _0x1ef87a=function(_0x27db4f){while(--_0x27db4f){_0xf4d8e3['push'](_0xf4d8e3['shift']());}};_0x1ef87a(++_0x40e384);}(a529_0x1ef8,0x100));const a529_0x27db=function(_0xf4d8e3,_0x40e384){_0xf4d8e3=_0xf4d8e3-0x16b;let _0x1ef87a=a529_0x1ef8[_0xf4d8e3];return _0x1ef87a;};const a529_0x593c6b=a529_0x27db;'use strict';const _=require(a529_0x593c6b(0x176)),qs=require('../../components/parsers/qs'),logger=require(a529_0x593c6b(0x177))(a529_0x593c6b(0x173)),{db}=require(a529_0x593c6b(0x181)),{Op}=require(a529_0x593c6b(0x183));function respondWithResult(_0x234286,_0x44d7f4){return _0x44d7f4=_0x44d7f4||0xc8,function(_0x2b3d9d){const _0x42485a=a529_0x27db;if(_0x2b3d9d)return _0x234286['status'](_0x44d7f4)[_0x42485a(0x192)](_0x2b3d9d);};}function respondWithFilteredResult(_0x562ee7,_0x2ddb6d){return function(_0x5f4534){const _0x5206e8=a529_0x27db;if(_0x5f4534){const _0x43bbe8=_0x5f4534[_0x5206e8(0x179)],_0x405d08=_0x2ddb6d[_0x5206e8(0x196)];let _0x15fa0b=_0x2ddb6d['offset']+_0x2ddb6d[_0x5206e8(0x18d)],_0x504330;return _0x15fa0b>=_0x43bbe8?(_0x15fa0b=_0x43bbe8,_0x504330=0xc8):_0x504330=0xce,_0x562ee7['status'](_0x504330),_0x562ee7[_0x5206e8(0x184)](_0x5206e8(0x170),_0x405d08+'-'+_0x15fa0b+'/'+_0x43bbe8)[_0x5206e8(0x192)](_0x5f4534);}return null;};}function saveUpdates(_0x2c87d9){return function(_0x3b1f34){const _0x51ab66=a529_0x27db;if(_0x3b1f34)return _0x3b1f34[_0x51ab66(0x191)](_0x2c87d9)[_0x51ab66(0x199)](function(_0x2c2f3f){return _0x2c2f3f;});return null;};}function removeEntity(_0x5447c3){return function(_0x4d8f){const _0x5a0da6=a529_0x27db;if(_0x4d8f)return _0x4d8f[_0x5a0da6(0x198)]()['then'](function(){const _0x4244ad=_0x5a0da6;_0x5447c3[_0x4244ad(0x17f)](0xcc)['end']();});};}function handleEntityNotFound(_0x460fd3){return function(_0x3dc32c){const _0x175ee2=a529_0x27db;return!_0x3dc32c&&_0x460fd3[_0x175ee2(0x16d)](0x194),_0x3dc32c;};}function handleError(_0x1781f9,_0x5a3636){return _0x5a3636=_0x5a3636||0x1f4,function(_0x2ada19){const _0x40e85c=a529_0x27db;logger[_0x40e85c(0x174)](_0x2ada19['stack']),_0x2ada19['name']&&delete _0x2ada19[_0x40e85c(0x17d)],_0x1781f9['status'](_0x5a3636)[_0x40e85c(0x186)](_0x2ada19);};}exports[a529_0x593c6b(0x17e)]=function(_0x279148,_0x5cfb0a){const _0x82a1c6=a529_0x593c6b;let _0x5a51d4={};const _0x2d2dfd={},_0x352632={'count':0x0,'rows':[]},_0x496261=_[_0x82a1c6(0x175)](db[_0x82a1c6(0x178)][_0x82a1c6(0x16e)],function(_0x329b88){const _0x7ae17b=_0x82a1c6;return{'name':_0x329b88[_0x7ae17b(0x193)],'type':_0x329b88[_0x7ae17b(0x19d)]['key']};});_0x2d2dfd['model']=_[_0x82a1c6(0x175)](_0x496261,_0x82a1c6(0x17d)),_0x2d2dfd[_0x82a1c6(0x18a)]=_[_0x82a1c6(0x19f)](_0x279148[_0x82a1c6(0x18a)]),_0x2d2dfd[_0x82a1c6(0x19a)]=_[_0x82a1c6(0x17c)](_0x2d2dfd['model'],_0x2d2dfd[_0x82a1c6(0x18a)]),_0x5a51d4[_0x82a1c6(0x16b)]=_['intersection'](_0x2d2dfd[_0x82a1c6(0x18e)],qs['fields'](_0x279148[_0x82a1c6(0x18a)][_0x82a1c6(0x194)])),_0x5a51d4['attributes']=_0x5a51d4[_0x82a1c6(0x16b)][_0x82a1c6(0x19e)]?_0x5a51d4[_0x82a1c6(0x16b)]:_0x2d2dfd[_0x82a1c6(0x18e)];typeof _0x279148[_0x82a1c6(0x18a)][_0x82a1c6(0x195)]===_0x82a1c6(0x1a0)&&(_0x5a51d4['limit']=qs['limit'](_0x279148[_0x82a1c6(0x18a)]['limit']),_0x5a51d4['offset']=qs[_0x82a1c6(0x196)](_0x279148['query'][_0x82a1c6(0x196)]));_0x5a51d4[_0x82a1c6(0x172)]=qs[_0x82a1c6(0x197)](_0x279148[_0x82a1c6(0x18a)]['sort']),_0x5a51d4[_0x82a1c6(0x18f)]=qs['filters'](_[_0x82a1c6(0x16f)](_0x279148[_0x82a1c6(0x18a)],_0x2d2dfd[_0x82a1c6(0x19a)]),_0x496261);_0x279148[_0x82a1c6(0x18a)][_0x82a1c6(0x187)]&&(_0x5a51d4['where']=_[_0x82a1c6(0x182)](_0x5a51d4[_0x82a1c6(0x18f)],{[Op['or']]:_[_0x82a1c6(0x175)](_0x496261,function(_0x1c19af){const _0x30620c=_0x82a1c6;if(_0x1c19af[_0x30620c(0x19d)]!==_0x30620c(0x188)){const _0xd53cf={};return _0xd53cf[_0x1c19af[_0x30620c(0x17d)]]={[Op['like']]:'%'+_0x279148[_0x30620c(0x18a)][_0x30620c(0x187)]+'%'},_0xd53cf;}})}));_0x5a51d4=_['merge']({},_0x5a51d4,_0x279148[_0x82a1c6(0x17b)]);const _0x365ded={'where':_0x5a51d4[_0x82a1c6(0x18f)]};return db[_0x82a1c6(0x178)][_0x82a1c6(0x179)](_0x365ded)[_0x82a1c6(0x199)](function(_0x2472b0){const _0x1d43b2=_0x82a1c6;return _0x352632['count']=_0x2472b0,_0x279148[_0x1d43b2(0x18a)][_0x1d43b2(0x17a)]&&(_0x5a51d4[_0x1d43b2(0x18b)]=[{'all':!![]}]),db[_0x1d43b2(0x178)][_0x1d43b2(0x190)](_0x5a51d4);})[_0x82a1c6(0x199)](function(_0x49b5a1){const _0x7ac81e=_0x82a1c6;return _0x352632[_0x7ac81e(0x18c)]=_0x49b5a1,_0x352632;})[_0x82a1c6(0x199)](respondWithFilteredResult(_0x5cfb0a,_0x5a51d4))[_0x82a1c6(0x19b)](handleError(_0x5cfb0a,null));},exports[a529_0x593c6b(0x19c)]=function(_0x62540f,_0x44eeeb){const _0x33fee2=a529_0x593c6b;let _0x14274d={'raw':!![],'where':{'id':_0x62540f[_0x33fee2(0x185)]['id']}};const _0x55b5ae={};return _0x55b5ae[_0x33fee2(0x18e)]=_[_0x33fee2(0x19f)](db[_0x33fee2(0x178)]['rawAttributes']),_0x55b5ae[_0x33fee2(0x18a)]=_[_0x33fee2(0x19f)](_0x62540f[_0x33fee2(0x18a)]),_0x55b5ae[_0x33fee2(0x19a)]=_[_0x33fee2(0x17c)](_0x55b5ae[_0x33fee2(0x18e)],_0x55b5ae['query']),_0x14274d[_0x33fee2(0x16b)]=_[_0x33fee2(0x17c)](_0x55b5ae[_0x33fee2(0x18e)],qs[_0x33fee2(0x194)](_0x62540f[_0x33fee2(0x18a)]['fields'])),_0x14274d[_0x33fee2(0x16b)]=_0x14274d[_0x33fee2(0x16b)]['length']?_0x14274d[_0x33fee2(0x16b)]:_0x55b5ae['model'],_0x62540f[_0x33fee2(0x18a)][_0x33fee2(0x17a)]&&(_0x14274d[_0x33fee2(0x18b)]=[{'all':!![]}]),_0x14274d=_[_0x33fee2(0x182)]({},_0x14274d,_0x62540f[_0x33fee2(0x17b)]),db[_0x33fee2(0x178)][_0x33fee2(0x189)](_0x14274d)['then'](handleEntityNotFound(_0x44eeeb,null))[_0x33fee2(0x199)](respondWithResult(_0x44eeeb,null))['catch'](handleError(_0x44eeeb,null));},exports[a529_0x593c6b(0x180)]=function(_0x38f41a,_0x5242b2){const _0x5931d7=a529_0x593c6b;return db['MailSubstatus'][_0x5931d7(0x180)](_0x38f41a[_0x5931d7(0x171)],{})[_0x5931d7(0x199)](respondWithResult(_0x5242b2,0xc9))[_0x5931d7(0x19b)](handleError(_0x5242b2,null));},exports[a529_0x593c6b(0x191)]=function(_0x4f6329,_0x253650){const _0x2f2983=a529_0x593c6b;return _0x4f6329[_0x2f2983(0x171)]['id']&&delete _0x4f6329['body']['id'],db['MailSubstatus'][_0x2f2983(0x189)]({'where':{'id':_0x4f6329[_0x2f2983(0x185)]['id']}})['then'](handleEntityNotFound(_0x253650,null))['then'](saveUpdates(_0x4f6329['body'],null))[_0x2f2983(0x199)](respondWithResult(_0x253650,null))[_0x2f2983(0x19b)](handleError(_0x253650,null));},exports[a529_0x593c6b(0x198)]=function(_0x5ab79f,_0x536b5e){const _0x59b282=a529_0x593c6b;return db[_0x59b282(0x178)][_0x59b282(0x189)]({'where':{'id':_0x5ab79f[_0x59b282(0x185)]['id']}})[_0x59b282(0x199)](handleEntityNotFound(_0x536b5e,null))['then'](removeEntity(_0x536b5e,null))[_0x59b282(0x19b)](handleError(_0x536b5e,null));},exports[a529_0x593c6b(0x16c)]=function(_0x1c2f2f,_0x296f7d){const _0x16b9f5=a529_0x593c6b;return db[_0x16b9f5(0x178)][_0x16b9f5(0x16c)]()[_0x16b9f5(0x199)](respondWithResult(_0x296f7d,null))[_0x16b9f5(0x19b)](handleError(_0x296f7d,null));}; \ No newline at end of file diff --git a/server/api/mailSubstatus/mailSubstatus.model.js b/server/api/mailSubstatus/mailSubstatus.model.js index 904f0a1..81de52e 100644 --- a/server/api/mailSubstatus/mailSubstatus.model.js +++ b/server/api/mailSubstatus/mailSubstatus.model.js @@ -1 +1 @@ -const a530_0x5df1=['init','./mailSubstatus.options','sequelize','./mailSubstatus.attributes','function','MailSubstatus'];(function(_0x48716d,_0x20e34e){const _0x5df1c8=function(_0x45014a){while(--_0x45014a){_0x48716d['push'](_0x48716d['shift']());}};_0x5df1c8(++_0x20e34e);}(a530_0x5df1,0x157));const a530_0x4501=function(_0x48716d,_0x20e34e){_0x48716d=_0x48716d-0x1b2;let _0x5df1c8=a530_0x5df1[_0x48716d];return _0x5df1c8;};const a530_0x511ddc=a530_0x4501;'use strict';const {Model}=require(a530_0x511ddc(0x1b3)),{attributes}=require(a530_0x511ddc(0x1b4)),{options}=require(a530_0x511ddc(0x1b2));class MailSubstatus extends Model{}function init(_0x38709e,_0xd51359){const _0x1a8191=a530_0x511ddc,_0x3f59d3=options(_0x38709e),_0x374cc2=typeof _0xd51359===_0x1a8191(0x1b5)?_0xd51359(_0x3f59d3):_0x3f59d3;return MailSubstatus['init'](attributes,_0x374cc2),MailSubstatus;}module['exports'][a530_0x511ddc(0x1b6)]=MailSubstatus,module['exports'][a530_0x511ddc(0x1b7)]=init; \ No newline at end of file +const a530_0x107f=['sequelize','exports','function','./mailSubstatus.attributes','init','MailSubstatus'];(function(_0x240ad4,_0x2e4056){const _0x107f37=function(_0x2f38a3){while(--_0x2f38a3){_0x240ad4['push'](_0x240ad4['shift']());}};_0x107f37(++_0x2e4056);}(a530_0x107f,0x9e));const a530_0x2f38=function(_0x240ad4,_0x2e4056){_0x240ad4=_0x240ad4-0x10e;let _0x107f37=a530_0x107f[_0x240ad4];return _0x107f37;};const a530_0x511c33=a530_0x2f38;'use strict';const {Model}=require(a530_0x511c33(0x112)),{attributes}=require(a530_0x511c33(0x10f)),{options}=require('./mailSubstatus.options');class MailSubstatus extends Model{}function init(_0xdc9570,_0x5138f2){const _0x592ae2=a530_0x511c33,_0x1de6f0=options(_0xdc9570),_0x3edbce=typeof _0x5138f2===_0x592ae2(0x10e)?_0x5138f2(_0x1de6f0):_0x1de6f0;return MailSubstatus[_0x592ae2(0x110)](attributes,_0x3edbce),MailSubstatus;}module[a530_0x511c33(0x113)][a530_0x511c33(0x111)]=MailSubstatus,module[a530_0x511c33(0x113)]['init']=init; \ No newline at end of file diff --git a/server/api/mailSubstatus/mailSubstatus.options.js b/server/api/mailSubstatus/mailSubstatus.options.js index 200c19a..ca22078 100644 --- a/server/api/mailSubstatus/mailSubstatus.options.js +++ b/server/api/mailSubstatus/mailSubstatus.options.js @@ -1 +1 @@ -var a531_0x1ae1=['exports','options'];(function(_0x1fa651,_0xfb8d89){var _0x1ae1fa=function(_0xc29ea3){while(--_0xc29ea3){_0x1fa651['push'](_0x1fa651['shift']());}};_0x1ae1fa(++_0xfb8d89);}(a531_0x1ae1,0x17f));var a531_0xc29e=function(_0x1fa651,_0xfb8d89){_0x1fa651=_0x1fa651-0x1ce;var _0x1ae1fa=a531_0x1ae1[_0x1fa651];return _0x1ae1fa;};var a531_0x4035eb=a531_0xc29e;function options(_0x2e6d2c){return{'sequelize':_0x2e6d2c,'tableName':'mail_substatuses','paranoid':![],'indexes':[],'timestamps':!![]};}module[a531_0x4035eb(0x1cf)][a531_0x4035eb(0x1ce)]=options; \ No newline at end of file +var a531_0x21b6=['exports','options','mail_substatuses'];(function(_0x4c0d1b,_0x5340e5){var _0x21b6e5=function(_0x26959d){while(--_0x26959d){_0x4c0d1b['push'](_0x4c0d1b['shift']());}};_0x21b6e5(++_0x5340e5);}(a531_0x21b6,0x6d));var a531_0x2695=function(_0x4c0d1b,_0x5340e5){_0x4c0d1b=_0x4c0d1b-0x1d8;var _0x21b6e5=a531_0x21b6[_0x4c0d1b];return _0x21b6e5;};var a531_0x42c767=a531_0x2695;function options(_0x4ad47b){var _0x183682=a531_0x2695;return{'sequelize':_0x4ad47b,'tableName':_0x183682(0x1d9),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a531_0x42c767(0x1da)][a531_0x42c767(0x1d8)]=options; \ No newline at end of file diff --git a/server/api/mailTransferReport/index.js b/server/api/mailTransferReport/index.js index 816026a..67f8b89 100644 --- a/server/api/mailTransferReport/index.js +++ b/server/api/mailTransferReport/index.js @@ -1 +1 @@ -const a532_0x1857=['create','delete','get','express','update','Router','describe','index','/:id','show','isAuthenticated','post','destroy','exports'];(function(_0x144cef,_0x4e22cc){const _0x1857db=function(_0x2d8453){while(--_0x2d8453){_0x144cef['push'](_0x144cef['shift']());}};_0x1857db(++_0x4e22cc);}(a532_0x1857,0x1b0));const a532_0x2d84=function(_0x144cef,_0x4e22cc){_0x144cef=_0x144cef-0xf8;let _0x1857db=a532_0x1857[_0x144cef];return _0x1857db;};const a532_0x41f2a8=a532_0x2d84;'use strict';const express=require(a532_0x41f2a8(0xfd)),router=express[a532_0x41f2a8(0xff)](),auth=require('../../components/auth/service'),controller=require('./mailTransferReport.controller');router[a532_0x41f2a8(0xfc)]('/',auth['isAuthenticated'](),controller[a532_0x41f2a8(0x101)]),router['get']('/describe',auth[a532_0x41f2a8(0x104)](),controller[a532_0x41f2a8(0x100)]),router[a532_0x41f2a8(0xfc)](a532_0x41f2a8(0x102),auth[a532_0x41f2a8(0x104)](),controller[a532_0x41f2a8(0x103)]),router[a532_0x41f2a8(0x105)]('/',auth[a532_0x41f2a8(0x104)](),controller[a532_0x41f2a8(0xfa)]),router['put'](a532_0x41f2a8(0x102),auth[a532_0x41f2a8(0x104)](),controller[a532_0x41f2a8(0xfe)]),router[a532_0x41f2a8(0xfb)](a532_0x41f2a8(0x102),auth[a532_0x41f2a8(0x104)](),controller[a532_0x41f2a8(0xf8)]),module[a532_0x41f2a8(0xf9)]=router; \ No newline at end of file +const a532_0x2c4c=['destroy','/:id','express','post','exports','update','describe','../../components/auth/service','./mailTransferReport.controller','get','isAuthenticated','index','create','show','put','delete'];(function(_0x3cfbb7,_0x42db11){const _0x2c4c7c=function(_0x187ea2){while(--_0x187ea2){_0x3cfbb7['push'](_0x3cfbb7['shift']());}};_0x2c4c7c(++_0x42db11);}(a532_0x2c4c,0x1d2));const a532_0x187e=function(_0x3cfbb7,_0x42db11){_0x3cfbb7=_0x3cfbb7-0x1be;let _0x2c4c7c=a532_0x2c4c[_0x3cfbb7];return _0x2c4c7c;};const a532_0x24d250=a532_0x187e;'use strict';const express=require(a532_0x24d250(0x1be)),router=express['Router'](),auth=require(a532_0x24d250(0x1c3)),controller=require(a532_0x24d250(0x1c4));router[a532_0x24d250(0x1c5)]('/',auth[a532_0x24d250(0x1c6)](),controller[a532_0x24d250(0x1c7)]),router['get']('/describe',auth[a532_0x24d250(0x1c6)](),controller[a532_0x24d250(0x1c2)]),router[a532_0x24d250(0x1c5)](a532_0x24d250(0x1cd),auth[a532_0x24d250(0x1c6)](),controller[a532_0x24d250(0x1c9)]),router[a532_0x24d250(0x1bf)]('/',auth[a532_0x24d250(0x1c6)](),controller[a532_0x24d250(0x1c8)]),router[a532_0x24d250(0x1ca)]('/:id',auth[a532_0x24d250(0x1c6)](),controller[a532_0x24d250(0x1c1)]),router[a532_0x24d250(0x1cb)](a532_0x24d250(0x1cd),auth[a532_0x24d250(0x1c6)](),controller[a532_0x24d250(0x1cc)]),module[a532_0x24d250(0x1c0)]=router; \ No newline at end of file diff --git a/server/api/mailTransferReport/mailTransferReport.attributes.js b/server/api/mailTransferReport/mailTransferReport.attributes.js index 1caf5c7..5b60688 100644 --- a/server/api/mailTransferReport/mailTransferReport.attributes.js +++ b/server/api/mailTransferReport/mailTransferReport.attributes.js @@ -1 +1 @@ -const a533_0x5c5a=['attributes','queue','ENUM','STRING','sequelize','exports'];(function(_0x19db40,_0x4bc409){const _0x5c5a83=function(_0x4000c6){while(--_0x4000c6){_0x19db40['push'](_0x19db40['shift']());}};_0x5c5a83(++_0x4bc409);}(a533_0x5c5a,0x12a));const a533_0x4000=function(_0x19db40,_0x4bc409){_0x19db40=_0x19db40-0x1e4;let _0x5c5a83=a533_0x5c5a[_0x19db40];return _0x5c5a83;};const a533_0x489b5f=a533_0x4000;'use strict';const {DataTypes}=require(a533_0x489b5f(0x1e4)),attributes={'uniqueid':{'type':DataTypes[a533_0x489b5f(0x1e9)],'allowNull':![]},'type':{'type':DataTypes[a533_0x489b5f(0x1e8)]('account','agent',a533_0x489b5f(0x1e7)),'allowNull':![],'defaultValue':'queue'},'transferredAt':{'type':DataTypes['DATE'],'allowNull':![],'defaultValue':DataTypes['NOW']}};module[a533_0x489b5f(0x1e5)][a533_0x489b5f(0x1e6)]=attributes; \ No newline at end of file +const a533_0xd2a4=['DATE','queue','sequelize','NOW','agent','exports','ENUM','account'];(function(_0x3c93be,_0xa1bf0){const _0xd2a498=function(_0x375232){while(--_0x375232){_0x3c93be['push'](_0x3c93be['shift']());}};_0xd2a498(++_0xa1bf0);}(a533_0xd2a4,0x18f));const a533_0x3752=function(_0x3c93be,_0xa1bf0){_0x3c93be=_0x3c93be-0xb3;let _0xd2a498=a533_0xd2a4[_0x3c93be];return _0xd2a498;};const a533_0x105901=a533_0x3752;'use strict';const {DataTypes}=require(a533_0x105901(0xb6)),attributes={'uniqueid':{'type':DataTypes['STRING'],'allowNull':![]},'type':{'type':DataTypes[a533_0x105901(0xba)](a533_0x105901(0xb3),a533_0x105901(0xb8),a533_0x105901(0xb5)),'allowNull':![],'defaultValue':'queue'},'transferredAt':{'type':DataTypes[a533_0x105901(0xb4)],'allowNull':![],'defaultValue':DataTypes[a533_0x105901(0xb7)]}};module[a533_0x105901(0xb9)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/mailTransferReport/mailTransferReport.controller.js b/server/api/mailTransferReport/mailTransferReport.controller.js index 59d6d26..74aab97 100644 --- a/server/api/mailTransferReport/mailTransferReport.controller.js +++ b/server/api/mailTransferReport/mailTransferReport.controller.js @@ -1 +1 @@ -const a534_0x3305=['create','MailTransferReport','body','attributes','options','then','filters','limit','status','set','model','update','describe','show','fieldName','filter','error','offset','Content-Range','query','json','includeAll','params','findOne','map','lodash','keys','sequelize','end','../../config/logger','pick','../../mysqldb','catch','send','nolimit','intersection','../../components/parsers/qs','count','length','sendStatus','destroy','merge','key','include','sort','rows','fields','name','undefined','type','where'];(function(_0x3f2af5,_0x3b6c13){const _0x330509=function(_0x4c3975){while(--_0x4c3975){_0x3f2af5['push'](_0x3f2af5['shift']());}};_0x330509(++_0x3b6c13);}(a534_0x3305,0x1f2));const a534_0x4c39=function(_0x3f2af5,_0x3b6c13){_0x3f2af5=_0x3f2af5-0x14a;let _0x330509=a534_0x3305[_0x3f2af5];return _0x330509;};const a534_0x302597=a534_0x4c39;'use strict';const _=require(a534_0x302597(0x16f)),qs=require(a534_0x302597(0x17a)),logger=require(a534_0x302597(0x173))('api'),{db}=require(a534_0x302597(0x175)),{Op}=require(a534_0x302597(0x171));function respondWithResult(_0x12c560,_0x236ce6){return _0x236ce6=_0x236ce6||0xc8,function(_0x55b541){const _0x3e978f=a534_0x4c39;if(_0x55b541)return _0x12c560[_0x3e978f(0x15e)](_0x236ce6)['json'](_0x55b541);};}function respondWithFilteredResult(_0x4ad9f6,_0x275bd1){return function(_0x382d7e){const _0xa8069d=a534_0x4c39;if(_0x382d7e){const _0x5a6552=_0x382d7e[_0xa8069d(0x17b)],_0x5130c2=_0x275bd1['offset'];let _0x3e799f=_0x275bd1[_0xa8069d(0x167)]+_0x275bd1[_0xa8069d(0x15d)],_0x40d1db;return _0x3e799f>=_0x5a6552?(_0x3e799f=_0x5a6552,_0x40d1db=0xc8):_0x40d1db=0xce,_0x4ad9f6[_0xa8069d(0x15e)](_0x40d1db),_0x4ad9f6[_0xa8069d(0x15f)](_0xa8069d(0x168),_0x5130c2+'-'+_0x3e799f+'/'+_0x5a6552)[_0xa8069d(0x16a)](_0x382d7e);}return null;};}function saveUpdates(_0x6f2bd6){return function(_0x2b57ef){const _0x3043ad=a534_0x4c39;if(_0x2b57ef)return _0x2b57ef[_0x3043ad(0x161)](_0x6f2bd6)[_0x3043ad(0x15b)](function(_0x3976cf){return _0x3976cf;});return null;};}function removeEntity(_0x17251a){return function(_0x3968d4){const _0x2d0846=a534_0x4c39;if(_0x3968d4)return _0x3968d4[_0x2d0846(0x14b)]()['then'](function(){const _0x5406b7=_0x2d0846;_0x17251a[_0x5406b7(0x15e)](0xcc)[_0x5406b7(0x172)]();});};}function handleEntityNotFound(_0x236bd9){return function(_0xba7ae9){const _0x57cfce=a534_0x4c39;return!_0xba7ae9&&_0x236bd9[_0x57cfce(0x14a)](0x194),_0xba7ae9;};}function handleError(_0x5b4fdd,_0x49a5fc){return _0x49a5fc=_0x49a5fc||0x1f4,function(_0x1752e5){const _0x1c19e3=a534_0x4c39;logger[_0x1c19e3(0x166)](_0x1752e5['stack']),_0x1752e5[_0x1c19e3(0x152)]&&delete _0x1752e5[_0x1c19e3(0x152)],_0x5b4fdd[_0x1c19e3(0x15e)](_0x49a5fc)[_0x1c19e3(0x177)](_0x1752e5);};}exports['index']=function(_0x3f1430,_0x3fe163){const _0x1f9ebf=a534_0x302597;let _0x1bb628={};const _0x400bdd={},_0x462ae2={'count':0x0,'rows':[]},_0x404bdf=_['map'](db[_0x1f9ebf(0x157)]['rawAttributes'],function(_0x4b4ab4){const _0x2dc106=_0x1f9ebf;return{'name':_0x4b4ab4[_0x2dc106(0x164)],'type':_0x4b4ab4[_0x2dc106(0x154)][_0x2dc106(0x14d)]};});_0x400bdd[_0x1f9ebf(0x160)]=_[_0x1f9ebf(0x16e)](_0x404bdf,_0x1f9ebf(0x152)),_0x400bdd[_0x1f9ebf(0x169)]=_[_0x1f9ebf(0x170)](_0x3f1430[_0x1f9ebf(0x169)]),_0x400bdd[_0x1f9ebf(0x15c)]=_[_0x1f9ebf(0x179)](_0x400bdd[_0x1f9ebf(0x160)],_0x400bdd[_0x1f9ebf(0x169)]),_0x1bb628[_0x1f9ebf(0x159)]=_[_0x1f9ebf(0x179)](_0x400bdd[_0x1f9ebf(0x160)],qs[_0x1f9ebf(0x151)](_0x3f1430[_0x1f9ebf(0x169)]['fields'])),_0x1bb628[_0x1f9ebf(0x159)]=_0x1bb628['attributes']['length']?_0x1bb628[_0x1f9ebf(0x159)]:_0x400bdd[_0x1f9ebf(0x160)];typeof _0x3f1430[_0x1f9ebf(0x169)][_0x1f9ebf(0x178)]===_0x1f9ebf(0x153)&&(_0x1bb628[_0x1f9ebf(0x15d)]=qs['limit'](_0x3f1430[_0x1f9ebf(0x169)]['limit']),_0x1bb628[_0x1f9ebf(0x167)]=qs[_0x1f9ebf(0x167)](_0x3f1430[_0x1f9ebf(0x169)][_0x1f9ebf(0x167)]));_0x1bb628['order']=qs[_0x1f9ebf(0x14f)](_0x3f1430['query']['sort']),_0x1bb628[_0x1f9ebf(0x155)]=qs[_0x1f9ebf(0x15c)](_[_0x1f9ebf(0x174)](_0x3f1430[_0x1f9ebf(0x169)],_0x400bdd[_0x1f9ebf(0x15c)]),_0x404bdf);_0x3f1430[_0x1f9ebf(0x169)][_0x1f9ebf(0x165)]&&(_0x1bb628['where']=_[_0x1f9ebf(0x14c)](_0x1bb628[_0x1f9ebf(0x155)],{[Op['or']]:_[_0x1f9ebf(0x16e)](_0x404bdf,function(_0x12c7fa){const _0x185670=_0x1f9ebf;if(_0x12c7fa[_0x185670(0x154)]!=='VIRTUAL'){const _0x2ecbf0={};return _0x2ecbf0[_0x12c7fa[_0x185670(0x152)]]={[Op['like']]:'%'+_0x3f1430[_0x185670(0x169)]['filter']+'%'},_0x2ecbf0;}})}));_0x1bb628=_[_0x1f9ebf(0x14c)]({},_0x1bb628,_0x3f1430['options']);const _0x5ee479={'where':_0x1bb628['where']};return db['MailTransferReport'][_0x1f9ebf(0x17b)](_0x5ee479)[_0x1f9ebf(0x15b)](function(_0x4d7ecd){const _0x524f71=_0x1f9ebf;return _0x462ae2['count']=_0x4d7ecd,_0x3f1430[_0x524f71(0x169)][_0x524f71(0x16b)]&&(_0x1bb628[_0x524f71(0x14e)]=[{'all':!![]}]),db['MailTransferReport']['findAll'](_0x1bb628);})['then'](function(_0x124d59){const _0x268118=_0x1f9ebf;return _0x462ae2[_0x268118(0x150)]=_0x124d59,_0x462ae2;})[_0x1f9ebf(0x15b)](respondWithFilteredResult(_0x3fe163,_0x1bb628))[_0x1f9ebf(0x176)](handleError(_0x3fe163,null));},exports[a534_0x302597(0x163)]=function(_0x12b78e,_0x460f63){const _0x4d830c=a534_0x302597;let _0x4144b7={'raw':!![],'where':{'id':_0x12b78e[_0x4d830c(0x16c)]['id']}};const _0x4069d1={};return _0x4069d1[_0x4d830c(0x160)]=_[_0x4d830c(0x170)](db[_0x4d830c(0x157)]['rawAttributes']),_0x4069d1[_0x4d830c(0x169)]=_[_0x4d830c(0x170)](_0x12b78e[_0x4d830c(0x169)]),_0x4069d1[_0x4d830c(0x15c)]=_[_0x4d830c(0x179)](_0x4069d1[_0x4d830c(0x160)],_0x4069d1['query']),_0x4144b7[_0x4d830c(0x159)]=_['intersection'](_0x4069d1[_0x4d830c(0x160)],qs[_0x4d830c(0x151)](_0x12b78e[_0x4d830c(0x169)]['fields'])),_0x4144b7[_0x4d830c(0x159)]=_0x4144b7[_0x4d830c(0x159)][_0x4d830c(0x17c)]?_0x4144b7['attributes']:_0x4069d1['model'],_0x12b78e[_0x4d830c(0x169)][_0x4d830c(0x16b)]&&(_0x4144b7[_0x4d830c(0x14e)]=[{'all':!![]}]),_0x4144b7=_[_0x4d830c(0x14c)]({},_0x4144b7,_0x12b78e[_0x4d830c(0x15a)]),db['MailTransferReport'][_0x4d830c(0x16d)](_0x4144b7)[_0x4d830c(0x15b)](handleEntityNotFound(_0x460f63,null))[_0x4d830c(0x15b)](respondWithResult(_0x460f63,null))[_0x4d830c(0x176)](handleError(_0x460f63,null));},exports[a534_0x302597(0x156)]=function(_0x5aab17,_0x4b3198){const _0x495b2f=a534_0x302597;return db['MailTransferReport'][_0x495b2f(0x156)](_0x5aab17['body'],{})['then'](respondWithResult(_0x4b3198,0xc9))[_0x495b2f(0x176)](handleError(_0x4b3198,null));},exports[a534_0x302597(0x161)]=function(_0x2e2fc4,_0x21459b){const _0x29b924=a534_0x302597;return _0x2e2fc4[_0x29b924(0x158)]['id']&&delete _0x2e2fc4['body']['id'],db[_0x29b924(0x157)][_0x29b924(0x16d)]({'where':{'id':_0x2e2fc4[_0x29b924(0x16c)]['id']}})['then'](handleEntityNotFound(_0x21459b,null))[_0x29b924(0x15b)](saveUpdates(_0x2e2fc4[_0x29b924(0x158)],null))[_0x29b924(0x15b)](respondWithResult(_0x21459b,null))['catch'](handleError(_0x21459b,null));},exports[a534_0x302597(0x14b)]=function(_0x38df11,_0x39574f){const _0x45f21f=a534_0x302597;return db[_0x45f21f(0x157)][_0x45f21f(0x16d)]({'where':{'id':_0x38df11[_0x45f21f(0x16c)]['id']}})['then'](handleEntityNotFound(_0x39574f,null))[_0x45f21f(0x15b)](removeEntity(_0x39574f,null))['catch'](handleError(_0x39574f,null));},exports[a534_0x302597(0x162)]=function(_0x18a3ac,_0x3e5ecb){const _0x3f6991=a534_0x302597;return db[_0x3f6991(0x157)][_0x3f6991(0x162)]()[_0x3f6991(0x15b)](respondWithResult(_0x3e5ecb,null))[_0x3f6991(0x176)](handleError(_0x3e5ecb,null));}; \ No newline at end of file +const a534_0x12a0=['sendStatus','where','create','options','catch','nolimit','model','map','show','error','then','merge','limit','count','../../config/logger','attributes','Content-Range','../../mysqldb','intersection','end','json','name','length','set','fields','lodash','MailTransferReport','query','filters','include','includeAll','findOne','offset','update','rawAttributes','status','VIRTUAL','describe','order','index','sort','body','filter','destroy','undefined','rows','sequelize','keys'];(function(_0x50602b,_0x582db2){const _0x12a076=function(_0x11361f){while(--_0x11361f){_0x50602b['push'](_0x50602b['shift']());}};_0x12a076(++_0x582db2);}(a534_0x12a0,0x157));const a534_0x1136=function(_0x50602b,_0x582db2){_0x50602b=_0x50602b-0x129;let _0x12a076=a534_0x12a0[_0x50602b];return _0x12a076;};const a534_0x5a33df=a534_0x1136;'use strict';const _=require(a534_0x5a33df(0x13b)),qs=require('../../components/parsers/qs'),logger=require(a534_0x5a33df(0x130))('api'),{db}=require(a534_0x5a33df(0x133)),{Op}=require(a534_0x5a33df(0x150));function respondWithResult(_0x11e08a,_0x152d73){return _0x152d73=_0x152d73||0xc8,function(_0xb9d160){const _0x7d132=a534_0x1136;if(_0xb9d160)return _0x11e08a['status'](_0x152d73)[_0x7d132(0x136)](_0xb9d160);};}function respondWithFilteredResult(_0x361da4,_0xefb5f0){return function(_0xed3e15){const _0x33f8f3=a534_0x1136;if(_0xed3e15){const _0x3bd482=_0xed3e15[_0x33f8f3(0x12f)],_0x21a315=_0xefb5f0['offset'];let _0x35176e=_0xefb5f0[_0x33f8f3(0x142)]+_0xefb5f0[_0x33f8f3(0x12e)],_0x55417c;return _0x35176e>=_0x3bd482?(_0x35176e=_0x3bd482,_0x55417c=0xc8):_0x55417c=0xce,_0x361da4[_0x33f8f3(0x145)](_0x55417c),_0x361da4[_0x33f8f3(0x139)](_0x33f8f3(0x132),_0x21a315+'-'+_0x35176e+'/'+_0x3bd482)[_0x33f8f3(0x136)](_0xed3e15);}return null;};}function saveUpdates(_0x1e784f){return function(_0x14f27b){const _0x4e7076=a534_0x1136;if(_0x14f27b)return _0x14f27b[_0x4e7076(0x143)](_0x1e784f)[_0x4e7076(0x12c)](function(_0x402195){return _0x402195;});return null;};}function removeEntity(_0xad47a8){return function(_0x252c4f){const _0x1a244b=a534_0x1136;if(_0x252c4f)return _0x252c4f['destroy']()[_0x1a244b(0x12c)](function(){const _0x44f849=_0x1a244b;_0xad47a8[_0x44f849(0x145)](0xcc)[_0x44f849(0x135)]();});};}function handleEntityNotFound(_0x2585e1){return function(_0x58cb5e){const _0x18cfde=a534_0x1136;return!_0x58cb5e&&_0x2585e1[_0x18cfde(0x152)](0x194),_0x58cb5e;};}function handleError(_0x3cdd6d,_0x153e63){return _0x153e63=_0x153e63||0x1f4,function(_0x52c884){const _0x57a79d=a534_0x1136;logger[_0x57a79d(0x12b)](_0x52c884['stack']),_0x52c884[_0x57a79d(0x137)]&&delete _0x52c884[_0x57a79d(0x137)],_0x3cdd6d[_0x57a79d(0x145)](_0x153e63)['send'](_0x52c884);};}exports[a534_0x5a33df(0x149)]=function(_0x39fcc9,_0x1cbd7e){const _0x3725df=a534_0x5a33df;let _0x54f9e0={};const _0x367d58={},_0x481fd7={'count':0x0,'rows':[]},_0x2a3bff=_[_0x3725df(0x129)](db[_0x3725df(0x13c)][_0x3725df(0x144)],function(_0x26c5f0){return{'name':_0x26c5f0['fieldName'],'type':_0x26c5f0['type']['key']};});_0x367d58[_0x3725df(0x158)]=_[_0x3725df(0x129)](_0x2a3bff,'name'),_0x367d58[_0x3725df(0x13d)]=_['keys'](_0x39fcc9[_0x3725df(0x13d)]),_0x367d58[_0x3725df(0x13e)]=_[_0x3725df(0x134)](_0x367d58['model'],_0x367d58[_0x3725df(0x13d)]),_0x54f9e0[_0x3725df(0x131)]=_[_0x3725df(0x134)](_0x367d58['model'],qs[_0x3725df(0x13a)](_0x39fcc9[_0x3725df(0x13d)][_0x3725df(0x13a)])),_0x54f9e0[_0x3725df(0x131)]=_0x54f9e0['attributes'][_0x3725df(0x138)]?_0x54f9e0[_0x3725df(0x131)]:_0x367d58[_0x3725df(0x158)];typeof _0x39fcc9[_0x3725df(0x13d)][_0x3725df(0x157)]===_0x3725df(0x14e)&&(_0x54f9e0[_0x3725df(0x12e)]=qs[_0x3725df(0x12e)](_0x39fcc9[_0x3725df(0x13d)][_0x3725df(0x12e)]),_0x54f9e0[_0x3725df(0x142)]=qs[_0x3725df(0x142)](_0x39fcc9['query']['offset']));_0x54f9e0[_0x3725df(0x148)]=qs[_0x3725df(0x14a)](_0x39fcc9[_0x3725df(0x13d)][_0x3725df(0x14a)]),_0x54f9e0[_0x3725df(0x153)]=qs[_0x3725df(0x13e)](_['pick'](_0x39fcc9[_0x3725df(0x13d)],_0x367d58[_0x3725df(0x13e)]),_0x2a3bff);_0x39fcc9[_0x3725df(0x13d)][_0x3725df(0x14c)]&&(_0x54f9e0[_0x3725df(0x153)]=_[_0x3725df(0x12d)](_0x54f9e0[_0x3725df(0x153)],{[Op['or']]:_[_0x3725df(0x129)](_0x2a3bff,function(_0xf997c7){const _0x3ce986=_0x3725df;if(_0xf997c7['type']!==_0x3ce986(0x146)){const _0x4914b2={};return _0x4914b2[_0xf997c7['name']]={[Op['like']]:'%'+_0x39fcc9[_0x3ce986(0x13d)][_0x3ce986(0x14c)]+'%'},_0x4914b2;}})}));_0x54f9e0=_[_0x3725df(0x12d)]({},_0x54f9e0,_0x39fcc9[_0x3725df(0x155)]);const _0x22ac8c={'where':_0x54f9e0[_0x3725df(0x153)]};return db['MailTransferReport']['count'](_0x22ac8c)['then'](function(_0x227820){const _0x31dbdb=_0x3725df;return _0x481fd7[_0x31dbdb(0x12f)]=_0x227820,_0x39fcc9[_0x31dbdb(0x13d)][_0x31dbdb(0x140)]&&(_0x54f9e0[_0x31dbdb(0x13f)]=[{'all':!![]}]),db[_0x31dbdb(0x13c)]['findAll'](_0x54f9e0);})[_0x3725df(0x12c)](function(_0x43ca1a){const _0x3699ef=_0x3725df;return _0x481fd7[_0x3699ef(0x14f)]=_0x43ca1a,_0x481fd7;})[_0x3725df(0x12c)](respondWithFilteredResult(_0x1cbd7e,_0x54f9e0))[_0x3725df(0x156)](handleError(_0x1cbd7e,null));},exports[a534_0x5a33df(0x12a)]=function(_0x4f8b02,_0xf7aa2c){const _0x3a2328=a534_0x5a33df;let _0xdb161b={'raw':!![],'where':{'id':_0x4f8b02['params']['id']}};const _0xb86239={};return _0xb86239[_0x3a2328(0x158)]=_['keys'](db[_0x3a2328(0x13c)]['rawAttributes']),_0xb86239[_0x3a2328(0x13d)]=_[_0x3a2328(0x151)](_0x4f8b02[_0x3a2328(0x13d)]),_0xb86239[_0x3a2328(0x13e)]=_[_0x3a2328(0x134)](_0xb86239[_0x3a2328(0x158)],_0xb86239[_0x3a2328(0x13d)]),_0xdb161b[_0x3a2328(0x131)]=_[_0x3a2328(0x134)](_0xb86239[_0x3a2328(0x158)],qs['fields'](_0x4f8b02[_0x3a2328(0x13d)]['fields'])),_0xdb161b[_0x3a2328(0x131)]=_0xdb161b[_0x3a2328(0x131)][_0x3a2328(0x138)]?_0xdb161b[_0x3a2328(0x131)]:_0xb86239['model'],_0x4f8b02[_0x3a2328(0x13d)]['includeAll']&&(_0xdb161b[_0x3a2328(0x13f)]=[{'all':!![]}]),_0xdb161b=_[_0x3a2328(0x12d)]({},_0xdb161b,_0x4f8b02[_0x3a2328(0x155)]),db[_0x3a2328(0x13c)][_0x3a2328(0x141)](_0xdb161b)['then'](handleEntityNotFound(_0xf7aa2c,null))[_0x3a2328(0x12c)](respondWithResult(_0xf7aa2c,null))[_0x3a2328(0x156)](handleError(_0xf7aa2c,null));},exports[a534_0x5a33df(0x154)]=function(_0x2f082d,_0x2caebb){const _0x3742a9=a534_0x5a33df;return db[_0x3742a9(0x13c)]['create'](_0x2f082d[_0x3742a9(0x14b)],{})['then'](respondWithResult(_0x2caebb,0xc9))[_0x3742a9(0x156)](handleError(_0x2caebb,null));},exports['update']=function(_0x459f60,_0x538c51){const _0x4e4936=a534_0x5a33df;return _0x459f60[_0x4e4936(0x14b)]['id']&&delete _0x459f60['body']['id'],db['MailTransferReport'][_0x4e4936(0x141)]({'where':{'id':_0x459f60['params']['id']}})['then'](handleEntityNotFound(_0x538c51,null))[_0x4e4936(0x12c)](saveUpdates(_0x459f60[_0x4e4936(0x14b)],null))[_0x4e4936(0x12c)](respondWithResult(_0x538c51,null))[_0x4e4936(0x156)](handleError(_0x538c51,null));},exports[a534_0x5a33df(0x14d)]=function(_0x185332,_0x510b5c){const _0x522d6d=a534_0x5a33df;return db[_0x522d6d(0x13c)][_0x522d6d(0x141)]({'where':{'id':_0x185332['params']['id']}})['then'](handleEntityNotFound(_0x510b5c,null))[_0x522d6d(0x12c)](removeEntity(_0x510b5c,null))[_0x522d6d(0x156)](handleError(_0x510b5c,null));},exports[a534_0x5a33df(0x147)]=function(_0x75d93d,_0xc7df6a){const _0x18d422=a534_0x5a33df;return db[_0x18d422(0x13c)][_0x18d422(0x147)]()[_0x18d422(0x12c)](respondWithResult(_0xc7df6a,null))[_0x18d422(0x156)](handleError(_0xc7df6a,null));}; \ No newline at end of file diff --git a/server/api/mailTransferReport/mailTransferReport.model.js b/server/api/mailTransferReport/mailTransferReport.model.js index 2af8a16..50056e8 100644 --- a/server/api/mailTransferReport/mailTransferReport.model.js +++ b/server/api/mailTransferReport/mailTransferReport.model.js @@ -1 +1 @@ -const a535_0x57b6=['./mailTransferReport.attributes','init','MailTransferReport','exports','./mailTransferReport.options'];(function(_0xdd8405,_0x444b65){const _0x57b66e=function(_0x3cf7c2){while(--_0x3cf7c2){_0xdd8405['push'](_0xdd8405['shift']());}};_0x57b66e(++_0x444b65);}(a535_0x57b6,0x183));const a535_0x3cf7=function(_0xdd8405,_0x444b65){_0xdd8405=_0xdd8405-0x11f;let _0x57b66e=a535_0x57b6[_0xdd8405];return _0x57b66e;};const a535_0x300b5c=a535_0x3cf7;'use strict';const {Model}=require('sequelize'),{attributes}=require(a535_0x300b5c(0x122)),{options}=require(a535_0x300b5c(0x121));class MailTransferReport extends Model{}function init(_0x131dd1,_0x2aabcb){const _0x334615=a535_0x300b5c,_0x5414bc=options(_0x131dd1),_0x764854=typeof _0x2aabcb==='function'?_0x2aabcb(_0x5414bc):_0x5414bc;return MailTransferReport[_0x334615(0x123)](attributes,_0x764854),MailTransferReport;}module[a535_0x300b5c(0x120)][a535_0x300b5c(0x11f)]=MailTransferReport,module['exports'][a535_0x300b5c(0x123)]=init; \ No newline at end of file +const a535_0xd3b3=['MailTransferReport','function','sequelize','./mailTransferReport.attributes','init','./mailTransferReport.options','exports'];(function(_0x51cac5,_0x47abd1){const _0xd3b3b3=function(_0x553f89){while(--_0x553f89){_0x51cac5['push'](_0x51cac5['shift']());}};_0xd3b3b3(++_0x47abd1);}(a535_0xd3b3,0x1e2));const a535_0x553f=function(_0x51cac5,_0x47abd1){_0x51cac5=_0x51cac5-0xe7;let _0xd3b3b3=a535_0xd3b3[_0x51cac5];return _0xd3b3b3;};const a535_0x46f60b=a535_0x553f;'use strict';const {Model}=require(a535_0x46f60b(0xea)),{attributes}=require(a535_0x46f60b(0xeb)),{options}=require(a535_0x46f60b(0xed));class MailTransferReport extends Model{}function init(_0x1d4d67,_0x1ab6e7){const _0x3e4f30=a535_0x46f60b,_0x342b32=options(_0x1d4d67),_0x143963=typeof _0x1ab6e7===_0x3e4f30(0xe9)?_0x1ab6e7(_0x342b32):_0x342b32;return MailTransferReport['init'](attributes,_0x143963),MailTransferReport;}module['exports'][a535_0x46f60b(0xe8)]=MailTransferReport,module[a535_0x46f60b(0xe7)][a535_0x46f60b(0xec)]=init; \ No newline at end of file diff --git a/server/api/mailTransferReport/mailTransferReport.options.js b/server/api/mailTransferReport/mailTransferReport.options.js index 78b1665..c380d84 100644 --- a/server/api/mailTransferReport/mailTransferReport.options.js +++ b/server/api/mailTransferReport/mailTransferReport.options.js @@ -1 +1 @@ -var a536_0x2022=['options','report_mail_transfer','uniqueid'];(function(_0x48107d,_0x3fc24c){var _0x20225f=function(_0x5d6814){while(--_0x5d6814){_0x48107d['push'](_0x48107d['shift']());}};_0x20225f(++_0x3fc24c);}(a536_0x2022,0xac));var a536_0x5d68=function(_0x48107d,_0x3fc24c){_0x48107d=_0x48107d-0x126;var _0x20225f=a536_0x2022[_0x48107d];return _0x20225f;};var a536_0x2a1f97=a536_0x5d68;function options(_0xc168a9){var _0x4fc9b8=a536_0x5d68;return{'sequelize':_0xc168a9,'tableName':_0x4fc9b8(0x126),'paranoid':![],'indexes':[{'name':_0x4fc9b8(0x127),'fields':[_0x4fc9b8(0x127)]}],'timestamps':!![]};}module['exports'][a536_0x2a1f97(0x128)]=options; \ No newline at end of file +var a536_0x139d=['exports','options','report_mail_transfer','uniqueid'];(function(_0x2f664e,_0x5c8eac){var _0x139df2=function(_0x1bbe7c){while(--_0x1bbe7c){_0x2f664e['push'](_0x2f664e['shift']());}};_0x139df2(++_0x5c8eac);}(a536_0x139d,0x81));var a536_0x1bbe=function(_0x2f664e,_0x5c8eac){_0x2f664e=_0x2f664e-0xd4;var _0x139df2=a536_0x139d[_0x2f664e];return _0x139df2;};var a536_0x49dd97=a536_0x1bbe;function options(_0x3adfb8){var _0x1c19aa=a536_0x1bbe;return{'sequelize':_0x3adfb8,'tableName':_0x1c19aa(0xd5),'paranoid':![],'indexes':[{'name':_0x1c19aa(0xd6),'fields':[_0x1c19aa(0xd6)]}],'timestamps':!![]};}module[a536_0x49dd97(0xd7)][a536_0x49dd97(0xd4)]=options; \ No newline at end of file diff --git a/server/api/memberReport/index.js b/server/api/memberReport/index.js index 995d941..2c811d9 100644 --- a/server/api/memberReport/index.js +++ b/server/api/memberReport/index.js @@ -1 +1 @@ -const a537_0x2b3b=['index','put','get','../../components/auth/service','/:id','post','destroy','isAuthenticated','express','show','./memberReport.controller','create','update'];(function(_0x43c023,_0x2b9e83){const _0x2b3b71=function(_0x50999){while(--_0x50999){_0x43c023['push'](_0x43c023['shift']());}};_0x2b3b71(++_0x2b9e83);}(a537_0x2b3b,0xa0));const a537_0x5099=function(_0x43c023,_0x2b9e83){_0x43c023=_0x43c023-0x1ea;let _0x2b3b71=a537_0x2b3b[_0x43c023];return _0x2b3b71;};const a537_0x16bdca=a537_0x5099;'use strict';const express=require(a537_0x16bdca(0x1ee)),router=express['Router'](),auth=require(a537_0x16bdca(0x1f6)),controller=require(a537_0x16bdca(0x1f0));router[a537_0x16bdca(0x1f5)]('/',auth[a537_0x16bdca(0x1ed)](),controller[a537_0x16bdca(0x1f3)]),router[a537_0x16bdca(0x1f5)]('/describe',auth[a537_0x16bdca(0x1ed)](),controller['describe']),router[a537_0x16bdca(0x1f5)](a537_0x16bdca(0x1ea),auth[a537_0x16bdca(0x1ed)](),controller[a537_0x16bdca(0x1ef)]),router[a537_0x16bdca(0x1eb)]('/',auth['isAuthenticated'](),controller[a537_0x16bdca(0x1f1)]),router[a537_0x16bdca(0x1f4)]('/:id',auth['isAuthenticated'](),controller[a537_0x16bdca(0x1f2)]),router['delete'](a537_0x16bdca(0x1ea),auth[a537_0x16bdca(0x1ed)](),controller[a537_0x16bdca(0x1ec)]),module['exports']=router; \ No newline at end of file +const a537_0xafb4=['exports','put','index','Router','./memberReport.controller','get','delete','/:id','isAuthenticated','create','express','../../components/auth/service'];(function(_0xad0be1,_0x5da0f2){const _0xafb4f2=function(_0x49dd48){while(--_0x49dd48){_0xad0be1['push'](_0xad0be1['shift']());}};_0xafb4f2(++_0x5da0f2);}(a537_0xafb4,0x1c4));const a537_0x49dd=function(_0xad0be1,_0x5da0f2){_0xad0be1=_0xad0be1-0x1a2;let _0xafb4f2=a537_0xafb4[_0xad0be1];return _0xafb4f2;};const a537_0x2603d1=a537_0x49dd;'use strict';const express=require(a537_0x2603d1(0x1a4)),router=express[a537_0x2603d1(0x1a9)](),auth=require(a537_0x2603d1(0x1a5)),controller=require(a537_0x2603d1(0x1aa));router[a537_0x2603d1(0x1ab)]('/',auth[a537_0x2603d1(0x1a2)](),controller[a537_0x2603d1(0x1a8)]),router[a537_0x2603d1(0x1ab)]('/describe',auth[a537_0x2603d1(0x1a2)](),controller['describe']),router[a537_0x2603d1(0x1ab)](a537_0x2603d1(0x1ad),auth[a537_0x2603d1(0x1a2)](),controller['show']),router['post']('/',auth[a537_0x2603d1(0x1a2)](),controller[a537_0x2603d1(0x1a3)]),router[a537_0x2603d1(0x1a7)](a537_0x2603d1(0x1ad),auth[a537_0x2603d1(0x1a2)](),controller['update']),router[a537_0x2603d1(0x1ac)]('/:id',auth[a537_0x2603d1(0x1a2)](),controller['destroy']),module[a537_0x2603d1(0x1a6)]=router; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.attributes.js b/server/api/memberReport/memberReport.attributes.js index fd7b139..e640263 100644 --- a/server/api/memberReport/memberReport.attributes.js +++ b/server/api/memberReport/memberReport.attributes.js @@ -1 +1 @@ -const a538_0x24d3=['exports','sequelize','DEFAULT\x20PAUSE','STRING','talk:[inbound,\x20outbound],\x20pause:[reason]','diff','INTEGER','exitAt','talk:[destination]','DATE','talk:[dial\x20string]','getDataValue','talk:[start]','talk:[queue]','LOGIN,\x20PAUSE,\x20TALKING','duration','setDataValue'];(function(_0x5a7cb4,_0x506623){const _0x24d33a=function(_0x2f2a28){while(--_0x2f2a28){_0x5a7cb4['push'](_0x5a7cb4['shift']());}};_0x24d33a(++_0x506623);}(a538_0x24d3,0x1cd));const a538_0x2f2a=function(_0x5a7cb4,_0x506623){_0x5a7cb4=_0x5a7cb4-0x1c8;let _0x24d33a=a538_0x24d3[_0x5a7cb4];return _0x24d33a;};const a538_0x4fb8cc=a538_0x2f2a;'use strict';const {DataTypes}=require(a538_0x4fb8cc(0x1d8)),moment=require('moment'),attributes={'channel':{'type':DataTypes[a538_0x4fb8cc(0x1c9)]},'membername':{'type':DataTypes[a538_0x4fb8cc(0x1c9)]},'interface':{'type':DataTypes[a538_0x4fb8cc(0x1c9)]},'type':{'type':DataTypes[a538_0x4fb8cc(0x1c9)],'defaultValue':a538_0x4fb8cc(0x1c8),'comment':a538_0x4fb8cc(0x1d4)},'duration':{'type':DataTypes[a538_0x4fb8cc(0x1cc)]},'enterAt':{'type':DataTypes[a538_0x4fb8cc(0x1cf)]},'exitAt':{'type':DataTypes[a538_0x4fb8cc(0x1cf)],'set':function(_0x303592){const _0x1b2849=a538_0x4fb8cc,_0x1c1260=moment(_0x303592),_0x53f9f5=moment(this[_0x1b2849(0x1d1)]('enterAt')),_0x52e35e=_0x1c1260[_0x1b2849(0x1cb)](_0x53f9f5,'seconds');this[_0x1b2849(0x1d6)](_0x1b2849(0x1cd),_0x303592),this[_0x1b2849(0x1d6)](_0x1b2849(0x1d5),_0x52e35e||null);}},'data1':{'type':DataTypes['STRING'],'comment':a538_0x4fb8cc(0x1ca)},'data2':{'type':DataTypes[a538_0x4fb8cc(0x1c9)],'comment':a538_0x4fb8cc(0x1d2)},'data3':{'type':DataTypes[a538_0x4fb8cc(0x1c9)],'comment':a538_0x4fb8cc(0x1ce)},'data4':{'type':DataTypes[a538_0x4fb8cc(0x1c9)],'comment':a538_0x4fb8cc(0x1d0)},'data5':{'type':DataTypes[a538_0x4fb8cc(0x1c9)],'comment':a538_0x4fb8cc(0x1d3)},'role':{'type':DataTypes[a538_0x4fb8cc(0x1c9)]},'internal':{'type':DataTypes[a538_0x4fb8cc(0x1cc)]},'uniqueid':{'type':DataTypes[a538_0x4fb8cc(0x1c9)]}};module[a538_0x4fb8cc(0x1d7)]['attributes']=attributes; \ No newline at end of file +const a538_0x5ba5=['talk:[queue]','INTEGER','duration','STRING','DEFAULT\x20PAUSE','setDataValue','talk:[inbound,\x20outbound],\x20pause:[reason]','moment','enterAt','talk:[start]','sequelize','talk:[dial\x20string]','attributes','exitAt','diff','exports','DATE','LOGIN,\x20PAUSE,\x20TALKING','getDataValue'];(function(_0x1863e5,_0x2c2fa4){const _0x5ba5e4=function(_0x331e49){while(--_0x331e49){_0x1863e5['push'](_0x1863e5['shift']());}};_0x5ba5e4(++_0x2c2fa4);}(a538_0x5ba5,0x9c));const a538_0x331e=function(_0x1863e5,_0x2c2fa4){_0x1863e5=_0x1863e5-0x7b;let _0x5ba5e4=a538_0x5ba5[_0x1863e5];return _0x5ba5e4;};const a538_0x2ae15e=a538_0x331e;'use strict';const {DataTypes}=require(a538_0x2ae15e(0x81)),moment=require(a538_0x2ae15e(0x7e)),attributes={'channel':{'type':DataTypes['STRING']},'membername':{'type':DataTypes[a538_0x2ae15e(0x8d)]},'interface':{'type':DataTypes[a538_0x2ae15e(0x8d)]},'type':{'type':DataTypes[a538_0x2ae15e(0x8d)],'defaultValue':a538_0x2ae15e(0x7b),'comment':a538_0x2ae15e(0x88)},'duration':{'type':DataTypes[a538_0x2ae15e(0x8b)]},'enterAt':{'type':DataTypes[a538_0x2ae15e(0x87)]},'exitAt':{'type':DataTypes[a538_0x2ae15e(0x87)],'set':function(_0x1e09fb){const _0x1090f6=a538_0x2ae15e,_0x24b82d=moment(_0x1e09fb),_0x3bb016=moment(this[_0x1090f6(0x89)](_0x1090f6(0x7f))),_0x5dd830=_0x24b82d[_0x1090f6(0x85)](_0x3bb016,'seconds');this[_0x1090f6(0x7c)](_0x1090f6(0x84),_0x1e09fb),this[_0x1090f6(0x7c)](_0x1090f6(0x8c),_0x5dd830||null);}},'data1':{'type':DataTypes[a538_0x2ae15e(0x8d)],'comment':a538_0x2ae15e(0x7d)},'data2':{'type':DataTypes[a538_0x2ae15e(0x8d)],'comment':a538_0x2ae15e(0x80)},'data3':{'type':DataTypes[a538_0x2ae15e(0x8d)],'comment':'talk:[destination]'},'data4':{'type':DataTypes[a538_0x2ae15e(0x8d)],'comment':a538_0x2ae15e(0x82)},'data5':{'type':DataTypes[a538_0x2ae15e(0x8d)],'comment':a538_0x2ae15e(0x8a)},'role':{'type':DataTypes['STRING']},'internal':{'type':DataTypes[a538_0x2ae15e(0x8b)]},'uniqueid':{'type':DataTypes[a538_0x2ae15e(0x8d)]}};module[a538_0x2ae15e(0x86)][a538_0x2ae15e(0x83)]=attributes; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.controller.js b/server/api/memberReport/memberReport.controller.js index 001029a..2624a73 100644 --- a/server/api/memberReport/memberReport.controller.js +++ b/server/api/memberReport/memberReport.controller.js @@ -1 +1 @@ -const a539_0x28e2=['include','sort','status','attributes','filters','merge','name','MemberReport','filter','api','show','rawAttributes','offset','set','destroy','index','findAll','findOne','params','limit','Content-Range','describe','where','order','includeAll','undefined','update','json','keys','query','create','VIRTUAL','../../components/parsers/qs','sequelize','catch','rows','map','then','length','fields','intersection','count','sendStatus','type','../../config/logger','options','body','send','key','model'];(function(_0x9c1b0f,_0x7ac0be){const _0x28e2b8=function(_0x1c2552){while(--_0x1c2552){_0x9c1b0f['push'](_0x9c1b0f['shift']());}};_0x28e2b8(++_0x7ac0be);}(a539_0x28e2,0xc6));const a539_0x1c25=function(_0x9c1b0f,_0x7ac0be){_0x9c1b0f=_0x9c1b0f-0xbc;let _0x28e2b8=a539_0x28e2[_0x9c1b0f];return _0x28e2b8;};const a539_0x244610=a539_0x1c25;'use strict';const _=require('lodash'),qs=require(a539_0x244610(0xde)),logger=require(a539_0x244610(0xea))(a539_0x244610(0xc7)),{db}=require('../../mysqldb'),{Op}=require(a539_0x244610(0xdf));function respondWithResult(_0x3a10be,_0x3e4d89){return _0x3e4d89=_0x3e4d89||0xc8,function(_0x3f0907){const _0x3d9184=a539_0x1c25;if(_0x3f0907)return _0x3a10be[_0x3d9184(0xc0)](_0x3e4d89)[_0x3d9184(0xd9)](_0x3f0907);};}function respondWithFilteredResult(_0x48fe67,_0x1486d3){return function(_0x41346d){const _0x51f314=a539_0x1c25;if(_0x41346d){const _0x38877f=_0x41346d[_0x51f314(0xe7)],_0x8b8b5b=_0x1486d3[_0x51f314(0xca)];let _0x19e514=_0x1486d3[_0x51f314(0xca)]+_0x1486d3['limit'],_0x4c2d89;return _0x19e514>=_0x38877f?(_0x19e514=_0x38877f,_0x4c2d89=0xc8):_0x4c2d89=0xce,_0x48fe67[_0x51f314(0xc0)](_0x4c2d89),_0x48fe67[_0x51f314(0xcb)](_0x51f314(0xd2),_0x8b8b5b+'-'+_0x19e514+'/'+_0x38877f)[_0x51f314(0xd9)](_0x41346d);}return null;};}function saveUpdates(_0x5c1f59){return function(_0x3c9440){const _0x332784=a539_0x1c25;if(_0x3c9440)return _0x3c9440[_0x332784(0xd8)](_0x5c1f59)[_0x332784(0xe3)](function(_0x24343c){return _0x24343c;});return null;};}function removeEntity(_0x5b0fbd){return function(_0x1947fa){const _0x5c1e93=a539_0x1c25;if(_0x1947fa)return _0x1947fa[_0x5c1e93(0xcc)]()[_0x5c1e93(0xe3)](function(){_0x5b0fbd['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x1ad57a){return function(_0x1131d5){const _0x2bf65d=a539_0x1c25;return!_0x1131d5&&_0x1ad57a[_0x2bf65d(0xe8)](0x194),_0x1131d5;};}function handleError(_0x32f8c9,_0x34aa73){return _0x34aa73=_0x34aa73||0x1f4,function(_0x1a1a30){const _0x495b51=a539_0x1c25;logger['error'](_0x1a1a30['stack']),_0x1a1a30['name']&&delete _0x1a1a30[_0x495b51(0xc4)],_0x32f8c9['status'](_0x34aa73)[_0x495b51(0xed)](_0x1a1a30);};}exports[a539_0x244610(0xcd)]=function(_0x21fe15,_0x2562d3){const _0x117170=a539_0x244610;let _0x4e60f7={};const _0x1c94da={},_0x1c0a5f={'count':0x0,'rows':[]},_0x57899b=_['map'](db[_0x117170(0xc5)]['rawAttributes'],function(_0x21bc99){const _0x27e289=_0x117170;return{'name':_0x21bc99['fieldName'],'type':_0x21bc99[_0x27e289(0xe9)][_0x27e289(0xbc)]};});_0x1c94da[_0x117170(0xbd)]=_[_0x117170(0xe2)](_0x57899b,_0x117170(0xc4)),_0x1c94da[_0x117170(0xdb)]=_[_0x117170(0xda)](_0x21fe15[_0x117170(0xdb)]),_0x1c94da['filters']=_[_0x117170(0xe6)](_0x1c94da[_0x117170(0xbd)],_0x1c94da[_0x117170(0xdb)]),_0x4e60f7['attributes']=_[_0x117170(0xe6)](_0x1c94da['model'],qs['fields'](_0x21fe15[_0x117170(0xdb)][_0x117170(0xe5)])),_0x4e60f7['attributes']=_0x4e60f7[_0x117170(0xc1)]['length']?_0x4e60f7[_0x117170(0xc1)]:_0x1c94da[_0x117170(0xbd)];typeof _0x21fe15['query']['nolimit']===_0x117170(0xd7)&&(_0x4e60f7[_0x117170(0xd1)]=qs['limit'](_0x21fe15[_0x117170(0xdb)][_0x117170(0xd1)]),_0x4e60f7[_0x117170(0xca)]=qs[_0x117170(0xca)](_0x21fe15[_0x117170(0xdb)]['offset']));_0x4e60f7[_0x117170(0xd5)]=qs[_0x117170(0xbf)](_0x21fe15['query']['sort']),_0x4e60f7[_0x117170(0xd4)]=qs['filters'](_['pick'](_0x21fe15[_0x117170(0xdb)],_0x1c94da[_0x117170(0xc2)]),_0x57899b);_0x21fe15[_0x117170(0xdb)][_0x117170(0xc6)]&&(_0x4e60f7[_0x117170(0xd4)]=_[_0x117170(0xc3)](_0x4e60f7[_0x117170(0xd4)],{[Op['or']]:_[_0x117170(0xe2)](_0x57899b,function(_0x4ea958){const _0x246be3=_0x117170;if(_0x4ea958[_0x246be3(0xe9)]!==_0x246be3(0xdd)){const _0x127641={};return _0x127641[_0x4ea958[_0x246be3(0xc4)]]={[Op['like']]:'%'+_0x21fe15[_0x246be3(0xdb)]['filter']+'%'},_0x127641;}})}));_0x4e60f7=_['merge']({},_0x4e60f7,_0x21fe15[_0x117170(0xeb)]);const _0x1f1593={'where':_0x4e60f7[_0x117170(0xd4)]};return db['MemberReport'][_0x117170(0xe7)](_0x1f1593)[_0x117170(0xe3)](function(_0x36831c){const _0x3f4419=_0x117170;return _0x1c0a5f[_0x3f4419(0xe7)]=_0x36831c,_0x21fe15[_0x3f4419(0xdb)][_0x3f4419(0xd6)]&&(_0x4e60f7[_0x3f4419(0xbe)]=[{'all':!![]}]),db[_0x3f4419(0xc5)][_0x3f4419(0xce)](_0x4e60f7);})['then'](function(_0x49fb83){const _0x28a0f2=_0x117170;return _0x1c0a5f[_0x28a0f2(0xe1)]=_0x49fb83,_0x1c0a5f;})[_0x117170(0xe3)](respondWithFilteredResult(_0x2562d3,_0x4e60f7))[_0x117170(0xe0)](handleError(_0x2562d3,null));},exports[a539_0x244610(0xc8)]=function(_0x19df22,_0x27ce68){const _0x5b1241=a539_0x244610;let _0x5347a6={'raw':!![],'where':{'id':_0x19df22[_0x5b1241(0xd0)]['id']}};const _0x344a84={};return _0x344a84[_0x5b1241(0xbd)]=_[_0x5b1241(0xda)](db[_0x5b1241(0xc5)][_0x5b1241(0xc9)]),_0x344a84['query']=_[_0x5b1241(0xda)](_0x19df22[_0x5b1241(0xdb)]),_0x344a84['filters']=_[_0x5b1241(0xe6)](_0x344a84['model'],_0x344a84[_0x5b1241(0xdb)]),_0x5347a6[_0x5b1241(0xc1)]=_[_0x5b1241(0xe6)](_0x344a84[_0x5b1241(0xbd)],qs[_0x5b1241(0xe5)](_0x19df22[_0x5b1241(0xdb)][_0x5b1241(0xe5)])),_0x5347a6[_0x5b1241(0xc1)]=_0x5347a6['attributes'][_0x5b1241(0xe4)]?_0x5347a6[_0x5b1241(0xc1)]:_0x344a84['model'],_0x19df22[_0x5b1241(0xdb)]['includeAll']&&(_0x5347a6[_0x5b1241(0xbe)]=[{'all':!![]}]),_0x5347a6=_[_0x5b1241(0xc3)]({},_0x5347a6,_0x19df22[_0x5b1241(0xeb)]),db['MemberReport'][_0x5b1241(0xcf)](_0x5347a6)['then'](handleEntityNotFound(_0x27ce68,null))[_0x5b1241(0xe3)](respondWithResult(_0x27ce68,null))[_0x5b1241(0xe0)](handleError(_0x27ce68,null));},exports['create']=function(_0x42a12f,_0x12205d){const _0x1715ba=a539_0x244610;return db[_0x1715ba(0xc5)][_0x1715ba(0xdc)](_0x42a12f[_0x1715ba(0xec)],{})[_0x1715ba(0xe3)](respondWithResult(_0x12205d,0xc9))[_0x1715ba(0xe0)](handleError(_0x12205d,null));},exports[a539_0x244610(0xd8)]=function(_0x507a1f,_0x5a2396){const _0x48ae04=a539_0x244610;return _0x507a1f['body']['id']&&delete _0x507a1f[_0x48ae04(0xec)]['id'],db[_0x48ae04(0xc5)][_0x48ae04(0xcf)]({'where':{'id':_0x507a1f[_0x48ae04(0xd0)]['id']}})[_0x48ae04(0xe3)](handleEntityNotFound(_0x5a2396,null))['then'](saveUpdates(_0x507a1f[_0x48ae04(0xec)],null))['then'](respondWithResult(_0x5a2396,null))['catch'](handleError(_0x5a2396,null));},exports[a539_0x244610(0xcc)]=function(_0x30c85a,_0x1ccafb){const _0x484f4b=a539_0x244610;return db[_0x484f4b(0xc5)][_0x484f4b(0xcf)]({'where':{'id':_0x30c85a[_0x484f4b(0xd0)]['id']}})[_0x484f4b(0xe3)](handleEntityNotFound(_0x1ccafb,null))[_0x484f4b(0xe3)](removeEntity(_0x1ccafb,null))[_0x484f4b(0xe0)](handleError(_0x1ccafb,null));},exports[a539_0x244610(0xd3)]=function(_0x5856a8,_0x1a9728){const _0x4470bf=a539_0x244610;return db[_0x4470bf(0xc5)][_0x4470bf(0xd3)]()[_0x4470bf(0xe3)](respondWithResult(_0x1a9728,null))[_0x4470bf(0xe0)](handleError(_0x1a9728,null));}; \ No newline at end of file +const a539_0x1feb=['../../components/parsers/qs','findOne','set','update','filters','body','rows','keys','length','name','error','like','count','map','include','status','fields','type','json','options','model','merge','sequelize','catch','undefined','then','describe','Content-Range','offset','fieldName','MemberReport','show','rawAttributes','pick','params','destroy','../../mysqldb','index','where','includeAll','attributes','nolimit','query','../../config/logger','intersection','sendStatus','limit','sort','filter','key','send'];(function(_0x3457bb,_0x4ecac7){const _0x1feb10=function(_0x4f9281){while(--_0x4f9281){_0x3457bb['push'](_0x3457bb['shift']());}};_0x1feb10(++_0x4ecac7);}(a539_0x1feb,0x1df));const a539_0x4f92=function(_0x3457bb,_0x4ecac7){_0x3457bb=_0x3457bb-0x1c4;let _0x1feb10=a539_0x1feb[_0x3457bb];return _0x1feb10;};const a539_0x53f929=a539_0x4f92;'use strict';const _=require('lodash'),qs=require(a539_0x53f929(0x1e3)),logger=require(a539_0x53f929(0x1db))('api'),{db}=require(a539_0x53f929(0x1d4)),{Op}=require(a539_0x53f929(0x1c6));function respondWithResult(_0x162729,_0x2af143){return _0x2af143=_0x2af143||0xc8,function(_0x5487d8){const _0x4bea8c=a539_0x4f92;if(_0x5487d8)return _0x162729['status'](_0x2af143)[_0x4bea8c(0x1f5)](_0x5487d8);};}function respondWithFilteredResult(_0x2fbbbc,_0x41b4a6){return function(_0x48b1a5){const _0x39d718=a539_0x4f92;if(_0x48b1a5){const _0x130ccf=_0x48b1a5['count'],_0x23d361=_0x41b4a6[_0x39d718(0x1cc)];let _0x48f9df=_0x41b4a6[_0x39d718(0x1cc)]+_0x41b4a6['limit'],_0x4de65c;return _0x48f9df>=_0x130ccf?(_0x48f9df=_0x130ccf,_0x4de65c=0xc8):_0x4de65c=0xce,_0x2fbbbc[_0x39d718(0x1f2)](_0x4de65c),_0x2fbbbc[_0x39d718(0x1e5)](_0x39d718(0x1cb),_0x23d361+'-'+_0x48f9df+'/'+_0x130ccf)[_0x39d718(0x1f5)](_0x48b1a5);}return null;};}function saveUpdates(_0xcd9546){return function(_0xfd2b3d){const _0x43c78c=a539_0x4f92;if(_0xfd2b3d)return _0xfd2b3d[_0x43c78c(0x1e6)](_0xcd9546)[_0x43c78c(0x1c9)](function(_0x5a8a58){return _0x5a8a58;});return null;};}function removeEntity(_0x530c73){return function(_0x373480){if(_0x373480)return _0x373480['destroy']()['then'](function(){const _0x50c8ac=a539_0x4f92;_0x530c73[_0x50c8ac(0x1f2)](0xcc)['end']();});};}function handleEntityNotFound(_0x309991){return function(_0x5cbe4c){const _0x48e1ed=a539_0x4f92;return!_0x5cbe4c&&_0x309991[_0x48e1ed(0x1dd)](0x194),_0x5cbe4c;};}function handleError(_0x11d449,_0x4c6119){return _0x4c6119=_0x4c6119||0x1f4,function(_0x5ce452){const _0x4711ce=a539_0x4f92;logger[_0x4711ce(0x1ed)](_0x5ce452['stack']),_0x5ce452[_0x4711ce(0x1ec)]&&delete _0x5ce452[_0x4711ce(0x1ec)],_0x11d449[_0x4711ce(0x1f2)](_0x4c6119)[_0x4711ce(0x1e2)](_0x5ce452);};}exports[a539_0x53f929(0x1d5)]=function(_0x25c948,_0x4297e4){const _0x35d123=a539_0x53f929;let _0x12268f={};const _0x1a2efe={},_0x1035e3={'count':0x0,'rows':[]},_0x48528d=_[_0x35d123(0x1f0)](db[_0x35d123(0x1ce)][_0x35d123(0x1d0)],function(_0x5bd2ca){const _0x58e05e=_0x35d123;return{'name':_0x5bd2ca[_0x58e05e(0x1cd)],'type':_0x5bd2ca[_0x58e05e(0x1f4)][_0x58e05e(0x1e1)]};});_0x1a2efe['model']=_[_0x35d123(0x1f0)](_0x48528d,_0x35d123(0x1ec)),_0x1a2efe['query']=_[_0x35d123(0x1ea)](_0x25c948[_0x35d123(0x1da)]),_0x1a2efe[_0x35d123(0x1e7)]=_['intersection'](_0x1a2efe['model'],_0x1a2efe[_0x35d123(0x1da)]),_0x12268f[_0x35d123(0x1d8)]=_[_0x35d123(0x1dc)](_0x1a2efe[_0x35d123(0x1c4)],qs[_0x35d123(0x1f3)](_0x25c948[_0x35d123(0x1da)]['fields'])),_0x12268f[_0x35d123(0x1d8)]=_0x12268f[_0x35d123(0x1d8)]['length']?_0x12268f[_0x35d123(0x1d8)]:_0x1a2efe[_0x35d123(0x1c4)];typeof _0x25c948[_0x35d123(0x1da)][_0x35d123(0x1d9)]===_0x35d123(0x1c8)&&(_0x12268f[_0x35d123(0x1de)]=qs[_0x35d123(0x1de)](_0x25c948[_0x35d123(0x1da)][_0x35d123(0x1de)]),_0x12268f[_0x35d123(0x1cc)]=qs[_0x35d123(0x1cc)](_0x25c948['query'][_0x35d123(0x1cc)]));_0x12268f['order']=qs['sort'](_0x25c948[_0x35d123(0x1da)][_0x35d123(0x1df)]),_0x12268f[_0x35d123(0x1d6)]=qs[_0x35d123(0x1e7)](_[_0x35d123(0x1d1)](_0x25c948['query'],_0x1a2efe[_0x35d123(0x1e7)]),_0x48528d);_0x25c948[_0x35d123(0x1da)][_0x35d123(0x1e0)]&&(_0x12268f['where']=_[_0x35d123(0x1c5)](_0x12268f[_0x35d123(0x1d6)],{[Op['or']]:_[_0x35d123(0x1f0)](_0x48528d,function(_0x24b61e){const _0x22d95e=_0x35d123;if(_0x24b61e[_0x22d95e(0x1f4)]!=='VIRTUAL'){const _0x8c32fb={};return _0x8c32fb[_0x24b61e[_0x22d95e(0x1ec)]]={[Op[_0x22d95e(0x1ee)]]:'%'+_0x25c948[_0x22d95e(0x1da)]['filter']+'%'},_0x8c32fb;}})}));_0x12268f=_[_0x35d123(0x1c5)]({},_0x12268f,_0x25c948['options']);const _0x11609f={'where':_0x12268f['where']};return db[_0x35d123(0x1ce)][_0x35d123(0x1ef)](_0x11609f)['then'](function(_0x4cd188){const _0x432f38=_0x35d123;return _0x1035e3[_0x432f38(0x1ef)]=_0x4cd188,_0x25c948[_0x432f38(0x1da)][_0x432f38(0x1d7)]&&(_0x12268f[_0x432f38(0x1f1)]=[{'all':!![]}]),db[_0x432f38(0x1ce)]['findAll'](_0x12268f);})[_0x35d123(0x1c9)](function(_0x2153be){const _0x432ca1=_0x35d123;return _0x1035e3[_0x432ca1(0x1e9)]=_0x2153be,_0x1035e3;})[_0x35d123(0x1c9)](respondWithFilteredResult(_0x4297e4,_0x12268f))['catch'](handleError(_0x4297e4,null));},exports[a539_0x53f929(0x1cf)]=function(_0x4a7ca7,_0x4298d1){const _0x2453c3=a539_0x53f929;let _0x23b17d={'raw':!![],'where':{'id':_0x4a7ca7[_0x2453c3(0x1d2)]['id']}};const _0x3d3a65={};return _0x3d3a65[_0x2453c3(0x1c4)]=_[_0x2453c3(0x1ea)](db[_0x2453c3(0x1ce)][_0x2453c3(0x1d0)]),_0x3d3a65[_0x2453c3(0x1da)]=_[_0x2453c3(0x1ea)](_0x4a7ca7[_0x2453c3(0x1da)]),_0x3d3a65[_0x2453c3(0x1e7)]=_[_0x2453c3(0x1dc)](_0x3d3a65[_0x2453c3(0x1c4)],_0x3d3a65['query']),_0x23b17d[_0x2453c3(0x1d8)]=_[_0x2453c3(0x1dc)](_0x3d3a65['model'],qs[_0x2453c3(0x1f3)](_0x4a7ca7[_0x2453c3(0x1da)]['fields'])),_0x23b17d[_0x2453c3(0x1d8)]=_0x23b17d['attributes'][_0x2453c3(0x1eb)]?_0x23b17d['attributes']:_0x3d3a65[_0x2453c3(0x1c4)],_0x4a7ca7[_0x2453c3(0x1da)][_0x2453c3(0x1d7)]&&(_0x23b17d[_0x2453c3(0x1f1)]=[{'all':!![]}]),_0x23b17d=_[_0x2453c3(0x1c5)]({},_0x23b17d,_0x4a7ca7[_0x2453c3(0x1f6)]),db['MemberReport'][_0x2453c3(0x1e4)](_0x23b17d)[_0x2453c3(0x1c9)](handleEntityNotFound(_0x4298d1,null))[_0x2453c3(0x1c9)](respondWithResult(_0x4298d1,null))[_0x2453c3(0x1c7)](handleError(_0x4298d1,null));},exports['create']=function(_0x4c1340,_0x3275cd){const _0x3ad927=a539_0x53f929;return db[_0x3ad927(0x1ce)]['create'](_0x4c1340[_0x3ad927(0x1e8)],{})[_0x3ad927(0x1c9)](respondWithResult(_0x3275cd,0xc9))[_0x3ad927(0x1c7)](handleError(_0x3275cd,null));},exports[a539_0x53f929(0x1e6)]=function(_0x10f660,_0x4f38bd){const _0x2bdb56=a539_0x53f929;return _0x10f660[_0x2bdb56(0x1e8)]['id']&&delete _0x10f660[_0x2bdb56(0x1e8)]['id'],db[_0x2bdb56(0x1ce)][_0x2bdb56(0x1e4)]({'where':{'id':_0x10f660['params']['id']}})[_0x2bdb56(0x1c9)](handleEntityNotFound(_0x4f38bd,null))[_0x2bdb56(0x1c9)](saveUpdates(_0x10f660['body'],null))['then'](respondWithResult(_0x4f38bd,null))[_0x2bdb56(0x1c7)](handleError(_0x4f38bd,null));},exports[a539_0x53f929(0x1d3)]=function(_0x45ebc1,_0x384655){const _0x43ce4e=a539_0x53f929;return db[_0x43ce4e(0x1ce)][_0x43ce4e(0x1e4)]({'where':{'id':_0x45ebc1['params']['id']}})['then'](handleEntityNotFound(_0x384655,null))[_0x43ce4e(0x1c9)](removeEntity(_0x384655,null))['catch'](handleError(_0x384655,null));},exports[a539_0x53f929(0x1ca)]=function(_0x23b1d6,_0x111f3a){const _0x1b5955=a539_0x53f929;return db[_0x1b5955(0x1ce)]['describe']()['then'](respondWithResult(_0x111f3a,null))[_0x1b5955(0x1c7)](handleError(_0x111f3a,null));}; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.model.js b/server/api/memberReport/memberReport.model.js index d261614..9ef317c 100644 --- a/server/api/memberReport/memberReport.model.js +++ b/server/api/memberReport/memberReport.model.js @@ -1 +1 @@ -const a540_0x9d65=['./memberReport.attributes','sequelize','./memberReport.options','exports','MemberReport','init'];(function(_0x41e4a4,_0x2fcd1d){const _0x9d656d=function(_0x469c13){while(--_0x469c13){_0x41e4a4['push'](_0x41e4a4['shift']());}};_0x9d656d(++_0x2fcd1d);}(a540_0x9d65,0xc1));const a540_0x469c=function(_0x41e4a4,_0x2fcd1d){_0x41e4a4=_0x41e4a4-0x1ea;let _0x9d656d=a540_0x9d65[_0x41e4a4];return _0x9d656d;};const a540_0x5bab1c=a540_0x469c;'use strict';const {Model}=require(a540_0x5bab1c(0x1ea)),{attributes}=require(a540_0x5bab1c(0x1ef)),{options}=require(a540_0x5bab1c(0x1eb));class MemberReport extends Model{}function init(_0x5fdcde,_0x100db3){const _0x5aff8a=a540_0x5bab1c,_0x2e8d2b=options(_0x5fdcde),_0x5ea2e2=typeof _0x100db3==='function'?_0x100db3(_0x2e8d2b):_0x2e8d2b;return MemberReport[_0x5aff8a(0x1ee)](attributes,_0x5ea2e2),MemberReport;}module['exports'][a540_0x5bab1c(0x1ed)]=MemberReport,module[a540_0x5bab1c(0x1ec)][a540_0x5bab1c(0x1ee)]=init; \ No newline at end of file +const a540_0x1cea=['./memberReport.attributes','MemberReport','sequelize','./memberReport.options','init','function','exports'];(function(_0xcf8bb0,_0x2c614a){const _0x1cea4b=function(_0x13e9c7){while(--_0x13e9c7){_0xcf8bb0['push'](_0xcf8bb0['shift']());}};_0x1cea4b(++_0x2c614a);}(a540_0x1cea,0x1de));const a540_0x13e9=function(_0xcf8bb0,_0x2c614a){_0xcf8bb0=_0xcf8bb0-0x100;let _0x1cea4b=a540_0x1cea[_0xcf8bb0];return _0x1cea4b;};const a540_0x45e151=a540_0x13e9;'use strict';const {Model}=require(a540_0x45e151(0x100)),{attributes}=require(a540_0x45e151(0x105)),{options}=require(a540_0x45e151(0x101));class MemberReport extends Model{}function init(_0x242387,_0x2d09a0){const _0x41298c=a540_0x45e151,_0x52144b=options(_0x242387),_0x17a62a=typeof _0x2d09a0===_0x41298c(0x103)?_0x2d09a0(_0x52144b):_0x52144b;return MemberReport[_0x41298c(0x102)](attributes,_0x17a62a),MemberReport;}module[a540_0x45e151(0x104)][a540_0x45e151(0x106)]=MemberReport,module[a540_0x45e151(0x104)][a540_0x45e151(0x102)]=init; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.options.js b/server/api/memberReport/memberReport.options.js index 4d78ab8..931fcc2 100644 --- a/server/api/memberReport/memberReport.options.js +++ b/server/api/memberReport/memberReport.options.js @@ -1 +1 @@ -var a541_0x3986=['interface','membername_interface','exports'];(function(_0x171cb9,_0x2d8208){var _0x3986c5=function(_0x1b9e44){while(--_0x1b9e44){_0x171cb9['push'](_0x171cb9['shift']());}};_0x3986c5(++_0x2d8208);}(a541_0x3986,0x1b1));var a541_0x1b9e=function(_0x171cb9,_0x2d8208){_0x171cb9=_0x171cb9-0xf6;var _0x3986c5=a541_0x3986[_0x171cb9];return _0x3986c5;};var a541_0x4574f6=a541_0x1b9e;function options(_0x102f4f){var _0x576788=a541_0x1b9e;return{'sequelize':_0x102f4f,'tableName':'report_member','paranoid':![],'indexes':[{'name':_0x576788(0xf6),'fields':['membername',_0x576788(0xf8)]}],'timestamps':!![]};}module[a541_0x4574f6(0xf7)]['options']=options; \ No newline at end of file +var a541_0xa60e=['membername_interface','membername','options','report_member','interface'];(function(_0x245bd4,_0xbea257){var _0xa60e4f=function(_0x5d5722){while(--_0x5d5722){_0x245bd4['push'](_0x245bd4['shift']());}};_0xa60e4f(++_0xbea257);}(a541_0xa60e,0x10f));var a541_0x5d57=function(_0x245bd4,_0xbea257){_0x245bd4=_0x245bd4-0xbd;var _0xa60e4f=a541_0xa60e[_0x245bd4];return _0xa60e4f;};var a541_0x44e129=a541_0x5d57;function options(_0x10f110){var _0x42c737=a541_0x5d57;return{'sequelize':_0x10f110,'tableName':_0x42c737(0xbf),'paranoid':![],'indexes':[{'name':_0x42c737(0xc1),'fields':[_0x42c737(0xbd),_0x42c737(0xc0)]}],'timestamps':!![]};}module['exports'][a541_0x44e129(0xbe)]=options; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.rpc.js b/server/api/memberReport/memberReport.rpc.js index 50c0bd8..3b04957 100644 --- a/server/api/memberReport/memberReport.rpc.js +++ b/server/api/memberReport/memberReport.rpc.js @@ -1 +1 @@ -const a542_0x1242=['update','map','model','MemberReport','stringify','../../config/logger','options','message','debug','info','where','include','catch','CreateMemberReport','limit','raw','then','body','rpc','findAll','UpdateMemberReport','error','GetMemberReport','attributes','create'];(function(_0x2796b7,_0x3ee44a){const _0x124297=function(_0x3b6a41){while(--_0x3b6a41){_0x2796b7['push'](_0x2796b7['shift']());}};_0x124297(++_0x3ee44a);}(a542_0x1242,0xdf));const a542_0x3b6a=function(_0x2796b7,_0x3ee44a){_0x2796b7=_0x2796b7-0x12d;let _0x124297=a542_0x1242[_0x2796b7];return _0x124297;};const a542_0x3d5ad9=a542_0x3b6a;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require(a542_0x3d5ad9(0x134))(a542_0x3d5ad9(0x141));exports['GetMemberReport']=function(_0x4efd26){const _0x5baae=this;return new Promise(function(_0x16ee93,_0x5c75f2){const _0x580d8=a542_0x3b6a;return db[_0x580d8(0x132)][_0x580d8(0x142)]({'raw':_0x4efd26[_0x580d8(0x135)]?_0x4efd26[_0x580d8(0x135)][_0x580d8(0x13e)]===undefined?!![]:![]:!![],'where':_0x4efd26[_0x580d8(0x135)]?_0x4efd26[_0x580d8(0x135)][_0x580d8(0x139)]||null:null,'attributes':_0x4efd26[_0x580d8(0x135)]?_0x4efd26[_0x580d8(0x135)][_0x580d8(0x12d)]||null:null,'limit':_0x4efd26['options']?_0x4efd26[_0x580d8(0x135)][_0x580d8(0x13d)]||null:null,'include':_0x4efd26[_0x580d8(0x135)]?_0x4efd26[_0x580d8(0x135)]['include']?_[_0x580d8(0x130)](_0x4efd26[_0x580d8(0x135)][_0x580d8(0x13a)],function(_0x3e3a4c){const _0x4ffc61=_0x580d8;return{'model':db[_0x3e3a4c[_0x4ffc61(0x131)]],'as':_0x3e3a4c['as'],'attributes':_0x3e3a4c['attributes'],'include':_0x3e3a4c[_0x4ffc61(0x13a)]?_[_0x4ffc61(0x130)](_0x3e3a4c[_0x4ffc61(0x13a)],function(_0x376e0b){const _0x252bd0=_0x4ffc61;return{'model':db[_0x376e0b['model']],'as':_0x376e0b['as'],'attributes':_0x376e0b[_0x252bd0(0x12d)],'include':_0x376e0b[_0x252bd0(0x13a)]?_['map'](_0x376e0b[_0x252bd0(0x13a)],function(_0x3daea7){const _0x4057c4=_0x252bd0;return{'model':db[_0x3daea7[_0x4057c4(0x131)]],'as':_0x3daea7['as'],'attributes':_0x3daea7[_0x4057c4(0x12d)]};}):[]};}):[]};}):[]:[]})[_0x580d8(0x13f)](function(_0x210992){const _0x325712=_0x580d8;logger[_0x325712(0x138)](_0x325712(0x145),_0x4efd26),logger[_0x325712(0x137)](_0x325712(0x145),_0x4efd26,JSON[_0x325712(0x133)](_0x210992)),_0x16ee93(_0x210992);})[_0x580d8(0x13b)](function(_0x2554b3){const _0x41aed4=_0x580d8;logger[_0x41aed4(0x144)](_0x41aed4(0x145),_0x2554b3['message'],_0x4efd26),_0x5c75f2(_0x5baae[_0x41aed4(0x144)](0x1f4,_0x2554b3['message']));});});},exports[a542_0x3d5ad9(0x13c)]=function(_0x2f0fd0){const _0x433841=this;return new Promise(function(_0x141f2e,_0x5420d0){const _0xe01b53=a542_0x3b6a;return db['MemberReport'][_0xe01b53(0x12e)](_0x2f0fd0['body'],{'raw':_0x2f0fd0['options']?_0x2f0fd0['options'][_0xe01b53(0x13e)]===undefined?!![]:![]:!![]})[_0xe01b53(0x13f)](function(_0x192b1e){const _0x479344=_0xe01b53;logger[_0x479344(0x138)](_0x479344(0x13c),_0x2f0fd0),logger['debug']('CreateMemberReport',_0x2f0fd0,JSON[_0x479344(0x133)](_0x192b1e)),_0x141f2e(_0x192b1e);})['catch'](function(_0x18a02d){const _0x1600b3=_0xe01b53;logger[_0x1600b3(0x144)](_0x1600b3(0x13c),_0x18a02d[_0x1600b3(0x136)],_0x2f0fd0),_0x5420d0(_0x433841[_0x1600b3(0x144)](0x1f4,_0x18a02d[_0x1600b3(0x136)]));});});},exports[a542_0x3d5ad9(0x143)]=function(_0x193fb0){const _0x3ccb3c=this;return new Promise(function(_0x1e0e54,_0x443340){const _0x4605ea=a542_0x3b6a;return db[_0x4605ea(0x132)][_0x4605ea(0x12f)](_0x193fb0[_0x4605ea(0x140)],{'raw':_0x193fb0[_0x4605ea(0x135)]?_0x193fb0[_0x4605ea(0x135)]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x193fb0['options']?_0x193fb0[_0x4605ea(0x135)][_0x4605ea(0x139)]||null:null,'attributes':_0x193fb0[_0x4605ea(0x135)]?_0x193fb0[_0x4605ea(0x135)][_0x4605ea(0x12d)]||null:null,'limit':_0x193fb0[_0x4605ea(0x135)]?_0x193fb0['options'][_0x4605ea(0x13d)]||null:null})[_0x4605ea(0x13f)](function(_0x582ddd){const _0x323ca4=_0x4605ea;logger[_0x323ca4(0x138)](_0x323ca4(0x143),_0x193fb0),logger[_0x323ca4(0x137)](_0x323ca4(0x143),_0x193fb0,JSON[_0x323ca4(0x133)](_0x582ddd)),_0x1e0e54(_0x582ddd);})[_0x4605ea(0x13b)](function(_0x54665b){const _0x32e32a=_0x4605ea;logger[_0x32e32a(0x144)](_0x32e32a(0x143),_0x54665b[_0x32e32a(0x136)],_0x193fb0),_0x443340(_0x3ccb3c[_0x32e32a(0x144)](0x1f4,_0x54665b[_0x32e32a(0x136)]));});});}; \ No newline at end of file +const a542_0x5a80=['include','message','where','UpdateMemberReport','raw','debug','CreateMemberReport','map','GetMemberReport','../../mysqldb','model','attributes','body','../../config/logger','error','then','rpc','stringify','create','update','options','lodash','MemberReport','limit','catch','findAll','info'];(function(_0x2ae87e,_0x34a288){const _0x5a8082=function(_0x52e5d8){while(--_0x52e5d8){_0x2ae87e['push'](_0x2ae87e['shift']());}};_0x5a8082(++_0x34a288);}(a542_0x5a80,0xad));const a542_0x52e5=function(_0x2ae87e,_0x34a288){_0x2ae87e=_0x2ae87e-0x180;let _0x5a8082=a542_0x5a80[_0x2ae87e];return _0x5a8082;};const a542_0x31c7ee=a542_0x52e5;'use strict';const _=require(a542_0x31c7ee(0x18a)),db=require(a542_0x31c7ee(0x199))['db'],logger=require(a542_0x31c7ee(0x182))(a542_0x31c7ee(0x185));exports[a542_0x31c7ee(0x198)]=function(_0x5935fa){const _0x40b4c1=this;return new Promise(function(_0x314c03,_0x2c39a4){const _0x322a29=a542_0x52e5;return db[_0x322a29(0x18b)][_0x322a29(0x18e)]({'raw':_0x5935fa[_0x322a29(0x189)]?_0x5935fa[_0x322a29(0x189)][_0x322a29(0x194)]===undefined?!![]:![]:!![],'where':_0x5935fa[_0x322a29(0x189)]?_0x5935fa['options'][_0x322a29(0x192)]||null:null,'attributes':_0x5935fa[_0x322a29(0x189)]?_0x5935fa['options']['attributes']||null:null,'limit':_0x5935fa['options']?_0x5935fa[_0x322a29(0x189)][_0x322a29(0x18c)]||null:null,'include':_0x5935fa[_0x322a29(0x189)]?_0x5935fa[_0x322a29(0x189)]['include']?_[_0x322a29(0x197)](_0x5935fa[_0x322a29(0x189)][_0x322a29(0x190)],function(_0x2fef38){const _0x7200bc=_0x322a29;return{'model':db[_0x2fef38[_0x7200bc(0x19a)]],'as':_0x2fef38['as'],'attributes':_0x2fef38[_0x7200bc(0x180)],'include':_0x2fef38[_0x7200bc(0x190)]?_[_0x7200bc(0x197)](_0x2fef38[_0x7200bc(0x190)],function(_0x234092){const _0x4b3a10=_0x7200bc;return{'model':db[_0x234092['model']],'as':_0x234092['as'],'attributes':_0x234092['attributes'],'include':_0x234092['include']?_['map'](_0x234092[_0x4b3a10(0x190)],function(_0x3f61ad){const _0x369698=_0x4b3a10;return{'model':db[_0x3f61ad[_0x369698(0x19a)]],'as':_0x3f61ad['as'],'attributes':_0x3f61ad[_0x369698(0x180)]};}):[]};}):[]};}):[]:[]})[_0x322a29(0x184)](function(_0x4609ed){const _0x2be106=_0x322a29;logger[_0x2be106(0x18f)](_0x2be106(0x198),_0x5935fa),logger[_0x2be106(0x195)](_0x2be106(0x198),_0x5935fa,JSON[_0x2be106(0x186)](_0x4609ed)),_0x314c03(_0x4609ed);})[_0x322a29(0x18d)](function(_0x162277){const _0x1c63d0=_0x322a29;logger['error']('GetMemberReport',_0x162277[_0x1c63d0(0x191)],_0x5935fa),_0x2c39a4(_0x40b4c1[_0x1c63d0(0x183)](0x1f4,_0x162277[_0x1c63d0(0x191)]));});});},exports['CreateMemberReport']=function(_0x4a0d45){const _0x58e7c5=this;return new Promise(function(_0x1817a8,_0x29db4c){const _0x2818d7=a542_0x52e5;return db[_0x2818d7(0x18b)][_0x2818d7(0x187)](_0x4a0d45[_0x2818d7(0x181)],{'raw':_0x4a0d45['options']?_0x4a0d45[_0x2818d7(0x189)][_0x2818d7(0x194)]===undefined?!![]:![]:!![]})[_0x2818d7(0x184)](function(_0x543753){const _0x7ab874=_0x2818d7;logger[_0x7ab874(0x18f)](_0x7ab874(0x196),_0x4a0d45),logger[_0x7ab874(0x195)]('CreateMemberReport',_0x4a0d45,JSON[_0x7ab874(0x186)](_0x543753)),_0x1817a8(_0x543753);})[_0x2818d7(0x18d)](function(_0x3df42c){const _0x597f47=_0x2818d7;logger[_0x597f47(0x183)](_0x597f47(0x196),_0x3df42c[_0x597f47(0x191)],_0x4a0d45),_0x29db4c(_0x58e7c5[_0x597f47(0x183)](0x1f4,_0x3df42c[_0x597f47(0x191)]));});});},exports[a542_0x31c7ee(0x193)]=function(_0x3eb752){const _0x4e674b=this;return new Promise(function(_0x5cd1b7,_0x5bf2a6){const _0x3a6293=a542_0x52e5;return db['MemberReport'][_0x3a6293(0x188)](_0x3eb752[_0x3a6293(0x181)],{'raw':_0x3eb752[_0x3a6293(0x189)]?_0x3eb752[_0x3a6293(0x189)][_0x3a6293(0x194)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3eb752[_0x3a6293(0x189)]?_0x3eb752[_0x3a6293(0x189)][_0x3a6293(0x192)]||null:null,'attributes':_0x3eb752[_0x3a6293(0x189)]?_0x3eb752[_0x3a6293(0x189)][_0x3a6293(0x180)]||null:null,'limit':_0x3eb752['options']?_0x3eb752[_0x3a6293(0x189)][_0x3a6293(0x18c)]||null:null})['then'](function(_0x15a0ce){const _0x1a8584=_0x3a6293;logger['info'](_0x1a8584(0x193),_0x3eb752),logger[_0x1a8584(0x195)](_0x1a8584(0x193),_0x3eb752,JSON[_0x1a8584(0x186)](_0x15a0ce)),_0x5cd1b7(_0x15a0ce);})[_0x3a6293(0x18d)](function(_0x3f8257){const _0x5ab653=_0x3a6293;logger[_0x5ab653(0x183)](_0x5ab653(0x193),_0x3f8257[_0x5ab653(0x191)],_0x3eb752),_0x5bf2a6(_0x4e674b['error'](0x1f4,_0x3f8257['message']));});});}; \ No newline at end of file diff --git a/server/api/migration/index.js b/server/api/migration/index.js index 4b8f3f6..dbcf735 100644 --- a/server/api/migration/index.js +++ b/server/api/migration/index.js @@ -1 +1 @@ -const a543_0x1a95=['exports','Router','index','express','get','./migration.controller'];(function(_0x2902ee,_0x5685fc){const _0x1a95e6=function(_0x38c321){while(--_0x38c321){_0x2902ee['push'](_0x2902ee['shift']());}};_0x1a95e6(++_0x5685fc);}(a543_0x1a95,0x1bc));const a543_0x38c3=function(_0x2902ee,_0x5685fc){_0x2902ee=_0x2902ee-0x9d;let _0x1a95e6=a543_0x1a95[_0x2902ee];return _0x1a95e6;};const a543_0x13b26d=a543_0x38c3;'use strict';const express=require(a543_0x13b26d(0xa0)),router=express[a543_0x13b26d(0x9e)](),controller=require(a543_0x13b26d(0xa2));router[a543_0x13b26d(0xa1)]('/',controller[a543_0x13b26d(0x9f)]),module[a543_0x13b26d(0x9d)]=router; \ No newline at end of file +const a543_0x43e7=['./migration.controller','express','get'];(function(_0x3840d9,_0x6be836){const _0x43e70b=function(_0x390b9e){while(--_0x390b9e){_0x3840d9['push'](_0x3840d9['shift']());}};_0x43e70b(++_0x6be836);}(a543_0x43e7,0x8b));const a543_0x390b=function(_0x3840d9,_0x6be836){_0x3840d9=_0x3840d9-0x1cb;let _0x43e70b=a543_0x43e7[_0x3840d9];return _0x43e70b;};const a543_0x45c833=a543_0x390b;'use strict';const express=require(a543_0x45c833(0x1cb)),router=express['Router'](),controller=require(a543_0x45c833(0x1cd));router[a543_0x45c833(0x1cc)]('/',controller['index']),module['exports']=router; \ No newline at end of file diff --git a/server/api/migration/migration.attributes.js b/server/api/migration/migration.attributes.js index 8059979..f4dbbce 100644 --- a/server/api/migration/migration.attributes.js +++ b/server/api/migration/migration.attributes.js @@ -1 +1 @@ -const a544_0x44e8=['attributes','STRING','exports','version'];(function(_0x2ab52c,_0x2d54d6){const _0x44e871=function(_0x2543b0){while(--_0x2543b0){_0x2ab52c['push'](_0x2ab52c['shift']());}};_0x44e871(++_0x2d54d6);}(a544_0x44e8,0xb5));const a544_0x2543=function(_0x2ab52c,_0x2d54d6){_0x2ab52c=_0x2ab52c-0xa7;let _0x44e871=a544_0x44e8[_0x2ab52c];return _0x44e871;};const a544_0x1d97f6=a544_0x2543;'use strict';const {DataTypes}=require('sequelize'),attributes={'version':{'type':DataTypes[a544_0x1d97f6(0xa7)],'unique':a544_0x1d97f6(0xa9)}};module[a544_0x1d97f6(0xa8)][a544_0x1d97f6(0xaa)]=attributes; \ No newline at end of file +const a544_0xea0d=['attributes','version','sequelize'];(function(_0xc8416d,_0x4473c4){const _0xea0de7=function(_0x26ed96){while(--_0x26ed96){_0xc8416d['push'](_0xc8416d['shift']());}};_0xea0de7(++_0x4473c4);}(a544_0xea0d,0x1b1));const a544_0x26ed=function(_0xc8416d,_0x4473c4){_0xc8416d=_0xc8416d-0xb4;let _0xea0de7=a544_0xea0d[_0xc8416d];return _0xea0de7;};const a544_0x4310f8=a544_0x26ed;'use strict';const {DataTypes}=require(a544_0x4310f8(0xb5)),attributes={'version':{'type':DataTypes['STRING'],'unique':a544_0x4310f8(0xb4)}};module['exports'][a544_0x4310f8(0xb6)]=attributes; \ No newline at end of file diff --git a/server/api/migration/migration.controller.js b/server/api/migration/migration.controller.js index 5e70fd9..6cb6019 100644 --- a/server/api/migration/migration.controller.js +++ b/server/api/migration/migration.controller.js @@ -1 +1 @@ -const a545_0x5c05=['error','like','Content-Range','pick','fieldName','model','merge','catch','query','../../config/logger','keys','lodash','include','where','send','limit','count','Migration','name','order','intersection','attributes','status','nolimit','map','json','index','../../components/parsers/qs','rawAttributes','offset','filter','../../mysqldb','then','VIRTUAL','api','sort'];(function(_0x5cb71f,_0x45cdeb){const _0x5c0531=function(_0x4cabed){while(--_0x4cabed){_0x5cb71f['push'](_0x5cb71f['shift']());}};_0x5c0531(++_0x45cdeb);}(a545_0x5c05,0x1a0));const a545_0x4cab=function(_0x5cb71f,_0x45cdeb){_0x5cb71f=_0x5cb71f-0x67;let _0x5c0531=a545_0x5c05[_0x5cb71f];return _0x5c0531;};const a545_0x2474f0=a545_0x4cab;'use strict';const _=require(a545_0x2474f0(0x82)),qs=require(a545_0x2474f0(0x6e)),logger=require(a545_0x2474f0(0x80))(a545_0x2474f0(0x75)),{db}=require(a545_0x2474f0(0x72)),{Op}=require('sequelize');function respondWithFilteredResult(_0x14e52e,_0x5b9411){return function(_0x22c592){const _0x197bdb=a545_0x4cab;if(_0x22c592){const _0x2320d=_0x22c592[_0x197bdb(0x87)],_0x5967ec=_0x5b9411[_0x197bdb(0x70)];let _0xbee2b9=_0x5b9411[_0x197bdb(0x70)]+_0x5b9411['limit'],_0x5be8ea;return _0xbee2b9>=_0x2320d?(_0xbee2b9=_0x2320d,_0x5be8ea=0xc8):_0x5be8ea=0xce,_0x14e52e[_0x197bdb(0x69)](_0x5be8ea),_0x14e52e['set'](_0x197bdb(0x79),_0x5967ec+'-'+_0xbee2b9+'/'+_0x2320d)[_0x197bdb(0x6c)](_0x22c592);}return null;};}function handleError(_0x12ef13,_0x5b48ba){return _0x5b48ba=_0x5b48ba||0x1f4,function(_0x54b0ac){const _0x321477=a545_0x4cab;logger[_0x321477(0x77)](_0x54b0ac['stack']),_0x54b0ac[_0x321477(0x89)]&&delete _0x54b0ac[_0x321477(0x89)],_0x12ef13[_0x321477(0x69)](_0x5b48ba)[_0x321477(0x85)](_0x54b0ac);};}exports[a545_0x2474f0(0x6d)]=function(_0x5f2ccf,_0x24d534){const _0x5d63cb=a545_0x2474f0;let _0x2a8abc={};const _0x1aa04f={},_0x34b8a2={'count':0x0,'rows':[]},_0x73ee1c=_[_0x5d63cb(0x6b)](db[_0x5d63cb(0x88)][_0x5d63cb(0x6f)],function(_0x4817f0){const _0x10ccee=_0x5d63cb;return{'name':_0x4817f0[_0x10ccee(0x7b)],'type':_0x4817f0['type']['key']};});_0x1aa04f['model']=_[_0x5d63cb(0x6b)](_0x73ee1c,_0x5d63cb(0x89)),_0x1aa04f['query']=_[_0x5d63cb(0x81)](_0x5f2ccf[_0x5d63cb(0x7f)]),_0x1aa04f['filters']=_[_0x5d63cb(0x67)](_0x1aa04f[_0x5d63cb(0x7c)],_0x1aa04f['query']),_0x2a8abc['attributes']=_['intersection'](_0x1aa04f['model'],qs['fields'](_0x5f2ccf[_0x5d63cb(0x7f)]['fields'])),_0x2a8abc[_0x5d63cb(0x68)]=_0x2a8abc[_0x5d63cb(0x68)]['length']?_0x2a8abc[_0x5d63cb(0x68)]:_0x1aa04f[_0x5d63cb(0x7c)];typeof _0x5f2ccf[_0x5d63cb(0x7f)][_0x5d63cb(0x6a)]==='undefined'&&(_0x2a8abc[_0x5d63cb(0x86)]=qs[_0x5d63cb(0x86)](_0x5f2ccf[_0x5d63cb(0x7f)][_0x5d63cb(0x86)]),_0x2a8abc['offset']=qs[_0x5d63cb(0x70)](_0x5f2ccf[_0x5d63cb(0x7f)][_0x5d63cb(0x70)]));_0x2a8abc[_0x5d63cb(0x8a)]=qs[_0x5d63cb(0x76)](_0x5f2ccf[_0x5d63cb(0x7f)][_0x5d63cb(0x76)]),_0x2a8abc[_0x5d63cb(0x84)]=qs['filters'](_[_0x5d63cb(0x7a)](_0x5f2ccf[_0x5d63cb(0x7f)],_0x1aa04f['filters']),_0x73ee1c);_0x5f2ccf[_0x5d63cb(0x7f)][_0x5d63cb(0x71)]&&(_0x2a8abc[_0x5d63cb(0x84)]=_[_0x5d63cb(0x7d)](_0x2a8abc[_0x5d63cb(0x84)],{[Op['or']]:_['map'](_0x73ee1c,function(_0x4be415){const _0x39ba4f=_0x5d63cb;if(_0x4be415['type']!==_0x39ba4f(0x74)){const _0x5c7096={};return _0x5c7096[_0x4be415['name']]={[Op[_0x39ba4f(0x78)]]:'%'+_0x5f2ccf[_0x39ba4f(0x7f)][_0x39ba4f(0x71)]+'%'},_0x5c7096;}})}));_0x2a8abc=_[_0x5d63cb(0x7d)]({},_0x2a8abc,_0x5f2ccf['options']);const _0x1f778d={'where':_0x2a8abc[_0x5d63cb(0x84)]};return db[_0x5d63cb(0x88)][_0x5d63cb(0x87)](_0x1f778d)[_0x5d63cb(0x73)](function(_0xf7f489){const _0x4261ac=_0x5d63cb;return _0x34b8a2[_0x4261ac(0x87)]=_0xf7f489,_0x5f2ccf[_0x4261ac(0x7f)]['includeAll']&&(_0x2a8abc[_0x4261ac(0x83)]=[{'all':!![]}]),db[_0x4261ac(0x88)]['findAll'](_0x2a8abc);})[_0x5d63cb(0x73)](function(_0x3ce3fe){return _0x34b8a2['rows']=_0x3ce3fe,_0x34b8a2;})['then'](respondWithFilteredResult(_0x24d534,_0x2a8abc))[_0x5d63cb(0x7e)](handleError(_0x24d534,null));}; \ No newline at end of file +const a545_0x5d24=['status','stack','../../config/logger','then','length','count','rows','where','query','include','limit','Migration','sequelize','offset','sort','name','merge','undefined','findAll','lodash','model','json','VIRTUAL','../../components/parsers/qs','api','filter','map','catch','like','send','key','type','attributes','pick','order','filters','fieldName','intersection','fields','nolimit','error','set'];(function(_0x51613d,_0x1cf4aa){const _0x5d24ef=function(_0x2af955){while(--_0x2af955){_0x51613d['push'](_0x51613d['shift']());}};_0x5d24ef(++_0x1cf4aa);}(a545_0x5d24,0xd0));const a545_0x2af9=function(_0x51613d,_0x1cf4aa){_0x51613d=_0x51613d-0x1c4;let _0x5d24ef=a545_0x5d24[_0x51613d];return _0x5d24ef;};const a545_0x582899=a545_0x2af9;'use strict';const _=require(a545_0x582899(0x1d9)),qs=require(a545_0x582899(0x1dd)),logger=require(a545_0x582899(0x1c8))(a545_0x582899(0x1de)),{db}=require('../../mysqldb'),{Op}=require(a545_0x582899(0x1d2));function respondWithFilteredResult(_0x1fe9ba,_0x16e15f){return function(_0x19996f){const _0x1ec280=a545_0x2af9;if(_0x19996f){const _0x39aaf2=_0x19996f[_0x1ec280(0x1cb)],_0x5b061c=_0x16e15f[_0x1ec280(0x1d3)];let _0x5bfcc6=_0x16e15f['offset']+_0x16e15f[_0x1ec280(0x1d0)],_0x4827f4;return _0x5bfcc6>=_0x39aaf2?(_0x5bfcc6=_0x39aaf2,_0x4827f4=0xc8):_0x4827f4=0xce,_0x1fe9ba[_0x1ec280(0x1c6)](_0x4827f4),_0x1fe9ba[_0x1ec280(0x1c5)]('Content-Range',_0x5b061c+'-'+_0x5bfcc6+'/'+_0x39aaf2)[_0x1ec280(0x1db)](_0x19996f);}return null;};}function handleError(_0x542c43,_0x14b7ee){return _0x14b7ee=_0x14b7ee||0x1f4,function(_0x27256d){const _0x2de57b=a545_0x2af9;logger[_0x2de57b(0x1c4)](_0x27256d[_0x2de57b(0x1c7)]),_0x27256d[_0x2de57b(0x1d5)]&&delete _0x27256d['name'],_0x542c43[_0x2de57b(0x1c6)](_0x14b7ee)[_0x2de57b(0x1e3)](_0x27256d);};}exports['index']=function(_0x182b13,_0x35df55){const _0x479a25=a545_0x582899;let _0x129ab0={};const _0x30a474={},_0x4da1f5={'count':0x0,'rows':[]},_0x2468ff=_[_0x479a25(0x1e0)](db[_0x479a25(0x1d1)]['rawAttributes'],function(_0x36de23){const _0xa5d248=_0x479a25;return{'name':_0x36de23[_0xa5d248(0x1ea)],'type':_0x36de23[_0xa5d248(0x1e5)][_0xa5d248(0x1e4)]};});_0x30a474[_0x479a25(0x1da)]=_['map'](_0x2468ff,_0x479a25(0x1d5)),_0x30a474[_0x479a25(0x1ce)]=_['keys'](_0x182b13[_0x479a25(0x1ce)]),_0x30a474[_0x479a25(0x1e9)]=_[_0x479a25(0x1eb)](_0x30a474[_0x479a25(0x1da)],_0x30a474[_0x479a25(0x1ce)]),_0x129ab0[_0x479a25(0x1e6)]=_[_0x479a25(0x1eb)](_0x30a474[_0x479a25(0x1da)],qs[_0x479a25(0x1ec)](_0x182b13[_0x479a25(0x1ce)]['fields'])),_0x129ab0['attributes']=_0x129ab0[_0x479a25(0x1e6)][_0x479a25(0x1ca)]?_0x129ab0[_0x479a25(0x1e6)]:_0x30a474[_0x479a25(0x1da)];typeof _0x182b13[_0x479a25(0x1ce)][_0x479a25(0x1ed)]===_0x479a25(0x1d7)&&(_0x129ab0[_0x479a25(0x1d0)]=qs[_0x479a25(0x1d0)](_0x182b13[_0x479a25(0x1ce)][_0x479a25(0x1d0)]),_0x129ab0[_0x479a25(0x1d3)]=qs['offset'](_0x182b13[_0x479a25(0x1ce)][_0x479a25(0x1d3)]));_0x129ab0[_0x479a25(0x1e8)]=qs[_0x479a25(0x1d4)](_0x182b13[_0x479a25(0x1ce)][_0x479a25(0x1d4)]),_0x129ab0[_0x479a25(0x1cd)]=qs['filters'](_[_0x479a25(0x1e7)](_0x182b13[_0x479a25(0x1ce)],_0x30a474[_0x479a25(0x1e9)]),_0x2468ff);_0x182b13[_0x479a25(0x1ce)][_0x479a25(0x1df)]&&(_0x129ab0['where']=_[_0x479a25(0x1d6)](_0x129ab0['where'],{[Op['or']]:_['map'](_0x2468ff,function(_0x40bf72){const _0x1425a5=_0x479a25;if(_0x40bf72[_0x1425a5(0x1e5)]!==_0x1425a5(0x1dc)){const _0x4c03c5={};return _0x4c03c5[_0x40bf72['name']]={[Op[_0x1425a5(0x1e2)]]:'%'+_0x182b13[_0x1425a5(0x1ce)]['filter']+'%'},_0x4c03c5;}})}));_0x129ab0=_['merge']({},_0x129ab0,_0x182b13['options']);const _0x29d536={'where':_0x129ab0['where']};return db[_0x479a25(0x1d1)][_0x479a25(0x1cb)](_0x29d536)[_0x479a25(0x1c9)](function(_0x32419e){const _0x4d5ebe=_0x479a25;return _0x4da1f5[_0x4d5ebe(0x1cb)]=_0x32419e,_0x182b13['query']['includeAll']&&(_0x129ab0[_0x4d5ebe(0x1cf)]=[{'all':!![]}]),db[_0x4d5ebe(0x1d1)][_0x4d5ebe(0x1d8)](_0x129ab0);})[_0x479a25(0x1c9)](function(_0x2effc4){const _0x24d40c=_0x479a25;return _0x4da1f5[_0x24d40c(0x1cc)]=_0x2effc4,_0x4da1f5;})[_0x479a25(0x1c9)](respondWithFilteredResult(_0x35df55,_0x129ab0))[_0x479a25(0x1e1)](handleError(_0x35df55,null));}; \ No newline at end of file diff --git a/server/api/migration/migration.model.js b/server/api/migration/migration.model.js index bd9b155..329d234 100644 --- a/server/api/migration/migration.model.js +++ b/server/api/migration/migration.model.js @@ -1 +1 @@ -const a546_0x2ab4=['./migration.options','Migration','exports','./migration.attributes','init','sequelize','function'];(function(_0x536b2f,_0x41243d){const _0x2ab455=function(_0x5af8ea){while(--_0x5af8ea){_0x536b2f['push'](_0x536b2f['shift']());}};_0x2ab455(++_0x41243d);}(a546_0x2ab4,0x186));const a546_0x5af8=function(_0x536b2f,_0x41243d){_0x536b2f=_0x536b2f-0x8a;let _0x2ab455=a546_0x2ab4[_0x536b2f];return _0x2ab455;};const a546_0x2567db=a546_0x5af8;'use strict';const {Model}=require(a546_0x2567db(0x8a)),{attributes}=require(a546_0x2567db(0x8f)),{options}=require(a546_0x2567db(0x8c));class Migration extends Model{}function init(_0xd4beea,_0x28290b){const _0xf13621=a546_0x2567db,_0x176bb6=options(_0xd4beea),_0x3723e2=typeof _0x28290b===_0xf13621(0x8b)?_0x28290b(_0x176bb6):_0x176bb6;return Migration[_0xf13621(0x90)](attributes,_0x3723e2),Migration;}module[a546_0x2567db(0x8e)][a546_0x2567db(0x8d)]=Migration,module[a546_0x2567db(0x8e)][a546_0x2567db(0x90)]=init; \ No newline at end of file +const a546_0x5dbf=['init','./migration.options','function','exports','./migration.attributes'];(function(_0x5529c7,_0x13b251){const _0x5dbf95=function(_0x1f60d9){while(--_0x1f60d9){_0x5529c7['push'](_0x5529c7['shift']());}};_0x5dbf95(++_0x13b251);}(a546_0x5dbf,0xcd));const a546_0x1f60=function(_0x5529c7,_0x13b251){_0x5529c7=_0x5529c7-0x11b;let _0x5dbf95=a546_0x5dbf[_0x5529c7];return _0x5dbf95;};const a546_0x59c05a=a546_0x1f60;'use strict';const {Model}=require('sequelize'),{attributes}=require(a546_0x59c05a(0x11f)),{options}=require(a546_0x59c05a(0x11c));class Migration extends Model{}function init(_0x1efeed,_0x373af8){const _0x566ad6=a546_0x59c05a,_0x20934c=options(_0x1efeed),_0x57cd99=typeof _0x373af8===_0x566ad6(0x11d)?_0x373af8(_0x20934c):_0x20934c;return Migration['init'](attributes,_0x57cd99),Migration;}module[a546_0x59c05a(0x11e)]['Migration']=Migration,module['exports'][a546_0x59c05a(0x11b)]=init; \ No newline at end of file diff --git a/server/api/migration/migration.options.js b/server/api/migration/migration.options.js index 88ee5b4..8f73832 100644 --- a/server/api/migration/migration.options.js +++ b/server/api/migration/migration.options.js @@ -1 +1 @@ -var a547_0x11c7=['exports','options','migrations'];(function(_0x37a402,_0x2b3b76){var _0x11c74e=function(_0x1c0ef8){while(--_0x1c0ef8){_0x37a402['push'](_0x37a402['shift']());}};_0x11c74e(++_0x2b3b76);}(a547_0x11c7,0x129));var a547_0x1c0e=function(_0x37a402,_0x2b3b76){_0x37a402=_0x37a402-0xea;var _0x11c74e=a547_0x11c7[_0x37a402];return _0x11c74e;};var a547_0x32b52c=a547_0x1c0e;function options(_0x5e2a70){var _0x5af74d=a547_0x1c0e;return{'sequelize':_0x5e2a70,'tableName':_0x5af74d(0xec),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a547_0x32b52c(0xea)][a547_0x32b52c(0xeb)]=options; \ No newline at end of file +var a547_0x1d65=['options','migrations'];(function(_0x15e643,_0x3dd4e3){var _0x1d6576=function(_0x5a9458){while(--_0x5a9458){_0x15e643['push'](_0x15e643['shift']());}};_0x1d6576(++_0x3dd4e3);}(a547_0x1d65,0xa7));var a547_0x5a94=function(_0x15e643,_0x3dd4e3){_0x15e643=_0x15e643-0x137;var _0x1d6576=a547_0x1d65[_0x15e643];return _0x1d6576;};var a547_0x32c9fa=a547_0x5a94;function options(_0x5e7d22){var _0x2dfd55=a547_0x5a94;return{'sequelize':_0x5e7d22,'tableName':_0x2dfd55(0x137),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a547_0x32c9fa(0x138)]=options; \ No newline at end of file diff --git a/server/api/network/index.js b/server/api/network/index.js index a68891f..d8f38f2 100644 --- a/server/api/network/index.js +++ b/server/api/network/index.js @@ -1 +1 @@ -const a548_0x41a8=['delete','exports','show','/:id','isAuthenticated','../../components/auth/service','express','destroy','put','get','create','index','./network.controller','update'];(function(_0x530ed6,_0x433a3b){const _0x41a820=function(_0x45592b){while(--_0x45592b){_0x530ed6['push'](_0x530ed6['shift']());}};_0x41a820(++_0x433a3b);}(a548_0x41a8,0x85));const a548_0x4559=function(_0x530ed6,_0x433a3b){_0x530ed6=_0x530ed6-0x1d2;let _0x41a820=a548_0x41a8[_0x530ed6];return _0x41a820;};const a548_0x30b71b=a548_0x4559;'use strict';const express=require(a548_0x30b71b(0x1df)),router=express['Router'](),auth=require(a548_0x30b71b(0x1de)),controller=require(a548_0x30b71b(0x1d7));router[a548_0x30b71b(0x1d4)]('/',auth[a548_0x30b71b(0x1dd)](),controller[a548_0x30b71b(0x1d6)]),router[a548_0x30b71b(0x1d4)](a548_0x30b71b(0x1dc),auth[a548_0x30b71b(0x1dd)](),controller[a548_0x30b71b(0x1db)]),router['post']('/',auth['isAuthenticated'](),controller[a548_0x30b71b(0x1d5)]),router[a548_0x30b71b(0x1d3)](a548_0x30b71b(0x1dc),auth['isAuthenticated'](),controller[a548_0x30b71b(0x1d8)]),router[a548_0x30b71b(0x1d9)](a548_0x30b71b(0x1dc),auth[a548_0x30b71b(0x1dd)](),controller[a548_0x30b71b(0x1d2)]),module[a548_0x30b71b(0x1da)]=router; \ No newline at end of file +const a548_0x1e9d=['show','express','update','index','get','./network.controller','exports','destroy','isAuthenticated','put','post','/:id'];(function(_0x31afd3,_0x2c50bf){const _0x1e9d9=function(_0x139639){while(--_0x139639){_0x31afd3['push'](_0x31afd3['shift']());}};_0x1e9d9(++_0x2c50bf);}(a548_0x1e9d,0x97));const a548_0x1396=function(_0x31afd3,_0x2c50bf){_0x31afd3=_0x31afd3-0x10b;let _0x1e9d9=a548_0x1e9d[_0x31afd3];return _0x1e9d9;};const a548_0x31af7e=a548_0x1396;'use strict';const express=require(a548_0x31af7e(0x111)),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a548_0x31af7e(0x115));router[a548_0x31af7e(0x114)]('/',auth['isAuthenticated'](),controller[a548_0x31af7e(0x113)]),router[a548_0x31af7e(0x114)]('/:id',auth[a548_0x31af7e(0x10c)](),controller[a548_0x31af7e(0x110)]),router[a548_0x31af7e(0x10e)]('/',auth[a548_0x31af7e(0x10c)](),controller['create']),router[a548_0x31af7e(0x10d)](a548_0x31af7e(0x10f),auth[a548_0x31af7e(0x10c)](),controller[a548_0x31af7e(0x112)]),router['delete'](a548_0x31af7e(0x10f),auth[a548_0x31af7e(0x10c)](),controller[a548_0x31af7e(0x10b)]),module[a548_0x31af7e(0x116)]=router; \ No newline at end of file diff --git a/server/api/network/network.attributes.js b/server/api/network/network.attributes.js index b42c062..5852745 100644 --- a/server/api/network/network.attributes.js +++ b/server/api/network/network.attributes.js @@ -1 +1 @@ -const a549_0x1e68=['sequelize','externip','stun','STRING','exports','localnet'];(function(_0x4f8976,_0x1dd595){const _0x1e681b=function(_0x4e7120){while(--_0x4e7120){_0x4f8976['push'](_0x4f8976['shift']());}};_0x1e681b(++_0x1dd595);}(a549_0x1e68,0x19c));const a549_0x4e71=function(_0x4f8976,_0x1dd595){_0x4f8976=_0x4f8976-0xcf;let _0x1e681b=a549_0x1e68[_0x4f8976];return _0x1e681b;};const a549_0x978066=a549_0x4e71;'use strict';const {DataTypes}=require(a549_0x978066(0xd1)),attributes={'type':{'type':DataTypes['ENUM'](a549_0x978066(0xd0),a549_0x978066(0xd2),a549_0x978066(0xd3),'turn')},'value':{'type':DataTypes[a549_0x978066(0xd4)]},'username':{'type':DataTypes['STRING']},'password':{'type':DataTypes[a549_0x978066(0xd4)]}};module[a549_0x978066(0xcf)]['attributes']=attributes; \ No newline at end of file +const a549_0x5e23=['localnet','attributes','STRING','sequelize','exports','ENUM'];(function(_0x11f150,_0x5ce29e){const _0x5e2399=function(_0x5ef591){while(--_0x5ef591){_0x11f150['push'](_0x11f150['shift']());}};_0x5e2399(++_0x5ce29e);}(a549_0x5e23,0x1ae));const a549_0x5ef5=function(_0x11f150,_0x5ce29e){_0x11f150=_0x11f150-0x15a;let _0x5e2399=a549_0x5e23[_0x11f150];return _0x5e2399;};const a549_0x4cef9d=a549_0x5ef5;'use strict';const {DataTypes}=require(a549_0x4cef9d(0x15f)),attributes={'type':{'type':DataTypes[a549_0x4cef9d(0x15b)](a549_0x4cef9d(0x15c),'externip','stun','turn')},'value':{'type':DataTypes[a549_0x4cef9d(0x15e)]},'username':{'type':DataTypes['STRING']},'password':{'type':DataTypes['STRING']}};module[a549_0x4cef9d(0x15a)][a549_0x4cef9d(0x15d)]=attributes; \ No newline at end of file diff --git a/server/api/network/network.controller.js b/server/api/network/network.controller.js index b380527..df320bc 100644 --- a/server/api/network/network.controller.js +++ b/server/api/network/network.controller.js @@ -1 +1 @@ -const a550_0x2808=['count','rows','/etc/asterisk/stun_xcally.conf','filters','order','destroy','params','includeAll','../../mysqldb','create','transaction','http','like','type','map','keys','format','show','code','limit','Network','model','server/files/templates/stun_multiple.ejs','findOne','then','/etc/asterisk/sip_xcally_%s.conf','Network,\x20%s,\x20%s','fieldName','findAll','status','length','../../config/environment','join','pick','where','toLowerCase','TURN','stack','body','key','root','offset','end','../../components/parsers/qs','util','include','filter','merge','sequelize','request\x20sent','request','intersection','res_stun_monitor.so','debug','server/files/templates/turn_multiple.ejs','readFileSync','nolimit','name','/etc/asterisk/turn_xcally.conf','api','error','rawAttributes','Network,\x20%s,\x20%s,\x20%s','index','update','Reload','writeFileSync','message','result','../../config/logger','sort','utf8','toUpperCase','query','chan_sip.so','render','VIRTUAL','set','ejs','fields','files/templates/network.ejs','files/templates/turn_multiple.ejs','attributes','STUN','Content-Range','catch'];(function(_0x3be030,_0x4fe840){const _0x2808fc=function(_0x19b01a){while(--_0x19b01a){_0x3be030['push'](_0x3be030['shift']());}};_0x2808fc(++_0x4fe840);}(a550_0x2808,0xec));const a550_0x19b0=function(_0x3be030,_0x4fe840){_0x3be030=_0x3be030-0x17b;let _0x2808fc=a550_0x2808[_0x3be030];return _0x2808fc;};const a550_0x5939a0=a550_0x19b0;'use strict';const util=require(a550_0x5939a0(0x1bd)),path=require('path'),ejs=require(a550_0x5939a0(0x189)),fs=require('fs'),_=require('lodash'),qs=require(a550_0x5939a0(0x1bc)),logger=require(a550_0x5939a0(0x180))(a550_0x5939a0(0x1cc)),config=require(a550_0x5939a0(0x1b0)),{db}=require(a550_0x5939a0(0x199)),{Op}=require(a550_0x5939a0(0x1c1)),jayson=require('jayson/promise'),client=jayson['client'][a550_0x5939a0(0x19c)]({'port':0x232a});function respondWithRpcPromise(_0x502222,_0x51801e,_0x41b47f,_0x563f06){return new Promise(function(_0x2302d5,_0x360db7){const _0x279d04=a550_0x19b0,_0x319fb3=_0x563f06||client;return _0x319fb3[_0x279d04(0x1c3)](_0x502222,_0x41b47f)[_0x279d04(0x1a9)](function(_0x306df5){const _0x74412f=_0x279d04;logger['info']('Network,\x20%s,\x20%s',_0x51801e,_0x74412f(0x1c2)),logger[_0x74412f(0x1c6)](_0x74412f(0x1cf),_0x51801e,_0x74412f(0x1c2),JSON['stringify'](_0x306df5));if(_0x306df5[_0x74412f(0x1cd)]){if(_0x306df5['error'][_0x74412f(0x1a3)]===0x1f4)return logger[_0x74412f(0x1cd)](_0x74412f(0x1ab),_0x51801e,_0x306df5[_0x74412f(0x1cd)][_0x74412f(0x17e)]),_0x360db7(_0x306df5['error'][_0x74412f(0x17e)]);return logger['error'](_0x74412f(0x1ab),_0x51801e,_0x306df5[_0x74412f(0x1cd)][_0x74412f(0x17e)]),_0x2302d5(_0x306df5[_0x74412f(0x1cd)][_0x74412f(0x17e)]);}else logger['info']('Network,\x20%s,\x20%s',_0x51801e,_0x74412f(0x1c2)),_0x2302d5(_0x306df5[_0x74412f(0x17f)][_0x74412f(0x17e)]);})[_0x279d04(0x190)](function(_0x37561f){const _0x177962=_0x279d04;logger[_0x177962(0x1cd)](_0x177962(0x1ab),_0x51801e,_0x37561f),_0x360db7(_0x37561f);});});}function respondWithResult(_0x58cfd9,_0x1fb425){return _0x1fb425=_0x1fb425||0xc8,function(_0x2d7be5){const _0x77ec88=a550_0x19b0;if(_0x2d7be5)return _0x58cfd9[_0x77ec88(0x1ae)](_0x1fb425)['json'](_0x2d7be5);};}function respondWithFilteredResult(_0x2afbec,_0x264807){return function(_0x45837b){const _0x140b44=a550_0x19b0;if(_0x45837b){const _0x1c8d73=_0x45837b[_0x140b44(0x191)],_0x1582ee=_0x264807[_0x140b44(0x1ba)];let _0x3b99e2=_0x264807['offset']+_0x264807[_0x140b44(0x1a4)],_0xd56477;return _0x3b99e2>=_0x1c8d73?(_0x3b99e2=_0x1c8d73,_0xd56477=0xc8):_0xd56477=0xce,_0x2afbec[_0x140b44(0x1ae)](_0xd56477),_0x2afbec[_0x140b44(0x188)](_0x140b44(0x18f),_0x1582ee+'-'+_0x3b99e2+'/'+_0x1c8d73)['json'](_0x45837b);}return null;};}function saveUpdates(_0x4bc752){return function(_0x22bfb7){const _0x2f380f=a550_0x19b0;if(_0x22bfb7)return _0x22bfb7[_0x2f380f(0x17b)](_0x4bc752)[_0x2f380f(0x1a9)](function(_0x487999){return _0x487999;});return null;};}function removeEntity(_0x36061b){return function(_0x1c354c){const _0x4e4e81=a550_0x19b0;if(_0x1c354c)return _0x1c354c['destroy']()[_0x4e4e81(0x1a9)](function(){const _0x58e0b5=_0x4e4e81;_0x36061b[_0x58e0b5(0x1ae)](0xcc)[_0x58e0b5(0x1bb)]();});};}function handleEntityNotFound(_0x3c7329){return function(_0x2f5e5b){return!_0x2f5e5b&&_0x3c7329['sendStatus'](0x194),_0x2f5e5b;};}function handleError(_0x5b735b,_0x123d13){return _0x123d13=_0x123d13||0x1f4,function(_0x3b10f7){const _0x1ed74e=a550_0x19b0;logger[_0x1ed74e(0x1cd)](_0x3b10f7[_0x1ed74e(0x1b6)]),_0x3b10f7[_0x1ed74e(0x1ca)]&&delete _0x3b10f7[_0x1ed74e(0x1ca)],_0x5b735b['status'](_0x123d13)['send'](_0x3b10f7);};}exports[a550_0x5939a0(0x1d0)]=function(_0x40b218,_0x191c7c){const _0x13c96e=a550_0x5939a0;let _0xee8158={};const _0x36644b={},_0x59aed8={'count':0x0,'rows':[]},_0x4e2111=_[_0x13c96e(0x19f)](db[_0x13c96e(0x1a5)]['rawAttributes'],function(_0x2c0db8){const _0x10e277=_0x13c96e;return{'name':_0x2c0db8[_0x10e277(0x1ac)],'type':_0x2c0db8[_0x10e277(0x19e)][_0x10e277(0x1b8)]};});_0x36644b[_0x13c96e(0x1a6)]=_[_0x13c96e(0x19f)](_0x4e2111,_0x13c96e(0x1ca)),_0x36644b['query']=_[_0x13c96e(0x1a0)](_0x40b218[_0x13c96e(0x184)]),_0x36644b[_0x13c96e(0x194)]=_[_0x13c96e(0x1c4)](_0x36644b[_0x13c96e(0x1a6)],_0x36644b[_0x13c96e(0x184)]),_0xee8158['attributes']=_[_0x13c96e(0x1c4)](_0x36644b[_0x13c96e(0x1a6)],qs['fields'](_0x40b218[_0x13c96e(0x184)][_0x13c96e(0x18a)])),_0xee8158[_0x13c96e(0x18d)]=_0xee8158[_0x13c96e(0x18d)][_0x13c96e(0x1af)]?_0xee8158['attributes']:_0x36644b['model'];typeof _0x40b218[_0x13c96e(0x184)][_0x13c96e(0x1c9)]==='undefined'&&(_0xee8158[_0x13c96e(0x1a4)]=qs['limit'](_0x40b218['query'][_0x13c96e(0x1a4)]),_0xee8158['offset']=qs[_0x13c96e(0x1ba)](_0x40b218[_0x13c96e(0x184)][_0x13c96e(0x1ba)]));_0xee8158[_0x13c96e(0x195)]=qs[_0x13c96e(0x181)](_0x40b218['query'][_0x13c96e(0x181)]),_0xee8158[_0x13c96e(0x1b3)]=qs[_0x13c96e(0x194)](_[_0x13c96e(0x1b2)](_0x40b218[_0x13c96e(0x184)],_0x36644b[_0x13c96e(0x194)]),_0x4e2111);_0x40b218['query']['filter']&&(_0xee8158[_0x13c96e(0x1b3)]=_['merge'](_0xee8158[_0x13c96e(0x1b3)],{[Op['or']]:_[_0x13c96e(0x19f)](_0x4e2111,function(_0x7387fe){const _0x69ca5e=_0x13c96e;if(_0x7387fe[_0x69ca5e(0x19e)]!==_0x69ca5e(0x187)){const _0x542835={};return _0x542835[_0x7387fe['name']]={[Op[_0x69ca5e(0x19d)]]:'%'+_0x40b218[_0x69ca5e(0x184)][_0x69ca5e(0x1bf)]+'%'},_0x542835;}})}));_0xee8158=_[_0x13c96e(0x1c0)]({},_0xee8158,_0x40b218['options']);const _0x1a24ec={'where':_0xee8158[_0x13c96e(0x1b3)]};return db['Network'][_0x13c96e(0x191)](_0x1a24ec)[_0x13c96e(0x1a9)](function(_0x565305){const _0x64bb38=_0x13c96e;return _0x59aed8['count']=_0x565305,_0x40b218[_0x64bb38(0x184)][_0x64bb38(0x198)]&&(_0xee8158[_0x64bb38(0x1be)]=[{'all':!![]}]),db[_0x64bb38(0x1a5)][_0x64bb38(0x1ad)](_0xee8158);})[_0x13c96e(0x1a9)](function(_0x172e51){const _0x40a329=_0x13c96e;return _0x59aed8[_0x40a329(0x192)]=_0x172e51,_0x59aed8;})[_0x13c96e(0x1a9)](respondWithFilteredResult(_0x191c7c,_0xee8158))[_0x13c96e(0x190)](handleError(_0x191c7c,null));},exports[a550_0x5939a0(0x1a2)]=function(_0x45fce7,_0x323039){const _0x17a906=a550_0x5939a0;let _0x4e2168={'raw':!![],'where':{'id':_0x45fce7[_0x17a906(0x197)]['id']}};const _0x4e17d3={};return _0x4e17d3[_0x17a906(0x1a6)]=_[_0x17a906(0x1a0)](db['Network'][_0x17a906(0x1ce)]),_0x4e17d3[_0x17a906(0x184)]=_['keys'](_0x45fce7[_0x17a906(0x184)]),_0x4e17d3['filters']=_[_0x17a906(0x1c4)](_0x4e17d3[_0x17a906(0x1a6)],_0x4e17d3[_0x17a906(0x184)]),_0x4e2168[_0x17a906(0x18d)]=_[_0x17a906(0x1c4)](_0x4e17d3[_0x17a906(0x1a6)],qs[_0x17a906(0x18a)](_0x45fce7[_0x17a906(0x184)][_0x17a906(0x18a)])),_0x4e2168[_0x17a906(0x18d)]=_0x4e2168[_0x17a906(0x18d)][_0x17a906(0x1af)]?_0x4e2168['attributes']:_0x4e17d3[_0x17a906(0x1a6)],_0x45fce7['query']['includeAll']&&(_0x4e2168[_0x17a906(0x1be)]=[{'all':!![]}]),_0x4e2168=_[_0x17a906(0x1c0)]({},_0x4e2168,_0x45fce7['options']),db['Network'][_0x17a906(0x1a8)](_0x4e2168)['then'](handleEntityNotFound(_0x323039,null))[_0x17a906(0x1a9)](respondWithResult(_0x323039,null))[_0x17a906(0x190)](handleError(_0x323039,null));},exports[a550_0x5939a0(0x19a)]=function(_0x11021d,_0x2ae354){const _0x4a4c19=a550_0x5939a0;let _0x2589f2;return db[_0x4a4c19(0x1c1)][_0x4a4c19(0x19b)](function(){const _0x5eda9c=_0x4a4c19;return db[_0x5eda9c(0x1a5)][_0x5eda9c(0x19a)](_0x11021d[_0x5eda9c(0x1b7)],{'raw':!![]})[_0x5eda9c(0x1a9)](function(_0x45ccf2){const _0x296dba=_0x5eda9c;return _0x2589f2=_0x45ccf2,db['Network'][_0x296dba(0x1ad)]({'where':{'type':_0x11021d[_0x296dba(0x1b7)][_0x296dba(0x19e)]},'raw':!![]});})[_0x5eda9c(0x1a9)](function(_0x1e7bba){const _0x485f11=_0x5eda9c;if(_0x2589f2[_0x485f11(0x19e)]['toUpperCase']()==_0x485f11(0x18e)){const _0x119657=fs[_0x485f11(0x1c8)](path[_0x485f11(0x1b1)](config[_0x485f11(0x1b9)],_0x485f11(0x1a7)),_0x485f11(0x182)),_0x4eb430=ejs[_0x485f11(0x186)](_0x119657,{'networks':_0x1e7bba||[]});return fs['writeFileSync'](_0x485f11(0x193),_0x4eb430),respondWithRpcPromise(_0x485f11(0x17c),_0x485f11(0x19a),{'module':_0x485f11(0x1c5)});}else{if(_0x2589f2[_0x485f11(0x19e)][_0x485f11(0x183)]()==_0x485f11(0x1b5)){const _0x4412d7=fs[_0x485f11(0x1c8)](path[_0x485f11(0x1b1)](config[_0x485f11(0x1b9)],_0x485f11(0x1c7)),'utf8'),_0x2ce0fb=ejs['render'](_0x4412d7,{'networks':_0x1e7bba||[]});return fs['writeFileSync'](_0x485f11(0x1cb),_0x2ce0fb),respondWithRpcPromise('Reload','create',{'module':'res_stun_monitor.so'});}else{const _0x4c4729=fs[_0x485f11(0x1c8)](path[_0x485f11(0x1b1)](config[_0x485f11(0x1b9)],_0x485f11(0x18b)),_0x485f11(0x182)),_0x27945b=ejs[_0x485f11(0x186)](_0x4c4729,{'networks':_0x1e7bba||[]});return fs[_0x485f11(0x17d)](util[_0x485f11(0x1a1)](_0x485f11(0x1aa),_0x11021d[_0x485f11(0x1b7)][_0x485f11(0x19e)]['toLowerCase']()),_0x27945b),respondWithRpcPromise(_0x485f11(0x17c),_0x485f11(0x19a),{'module':_0x485f11(0x185)});}}})[_0x5eda9c(0x1a9)](function(){return _0x2589f2;});})[_0x4a4c19(0x1a9)](respondWithResult(_0x2ae354,0xc9))[_0x4a4c19(0x190)](handleError(_0x2ae354,null));},exports[a550_0x5939a0(0x17b)]=function(_0x479d97,_0x5dbfa2){const _0x50d2c6=a550_0x5939a0;let _0x763c31;return db[_0x50d2c6(0x1c1)][_0x50d2c6(0x19b)](function(){const _0x15df86=_0x50d2c6;return db[_0x15df86(0x1a5)]['findOne']({'where':{'id':_0x479d97[_0x15df86(0x197)]['id']}})[_0x15df86(0x1a9)](handleEntityNotFound(_0x5dbfa2,null))[_0x15df86(0x1a9)](saveUpdates(_0x479d97[_0x15df86(0x1b7)],null))[_0x15df86(0x1a9)](function(_0x524dbf){const _0x31ac05=_0x15df86;if(_0x524dbf)return _0x763c31=_0x524dbf,db[_0x31ac05(0x1a5)]['findAll']({'where':{'type':_0x763c31[_0x31ac05(0x19e)]},'raw':!![]});return null;})[_0x15df86(0x1a9)](function(_0x9fdcc5){const _0x1cdaa1=_0x15df86;if(_0x763c31[_0x1cdaa1(0x19e)][_0x1cdaa1(0x183)]()==_0x1cdaa1(0x18e)){const _0x41fd4a=fs[_0x1cdaa1(0x1c8)](path[_0x1cdaa1(0x1b1)](config[_0x1cdaa1(0x1b9)],_0x1cdaa1(0x1a7)),'utf8'),_0x45d9cb=ejs[_0x1cdaa1(0x186)](_0x41fd4a,{'networks':_0x9fdcc5||[]});return fs[_0x1cdaa1(0x17d)]('/etc/asterisk/stun_xcally.conf',_0x45d9cb),respondWithRpcPromise('Reload',_0x1cdaa1(0x17b),{'module':'res_stun_monitor.so'});}else{if(_0x763c31['type'][_0x1cdaa1(0x183)]()==_0x1cdaa1(0x1b5)){const _0x55d904=fs[_0x1cdaa1(0x1c8)](path[_0x1cdaa1(0x1b1)](config['root'],_0x1cdaa1(0x1c7)),'utf8'),_0x176f78=ejs['render'](_0x55d904,{'networks':_0x9fdcc5||[]});return fs[_0x1cdaa1(0x17d)]('/etc/asterisk/turn_xcally.conf',_0x176f78),respondWithRpcPromise('Reload','update',{'module':'res_stun_monitor.so'});}else{const _0x4653ec=fs[_0x1cdaa1(0x1c8)](path[_0x1cdaa1(0x1b1)](config['root'],_0x1cdaa1(0x18b)),_0x1cdaa1(0x182)),_0x40cdcf=ejs['render'](_0x4653ec,{'networks':_0x9fdcc5||[]});return fs['writeFileSync'](util['format'](_0x1cdaa1(0x1aa),_0x479d97[_0x1cdaa1(0x1b7)][_0x1cdaa1(0x19e)][_0x1cdaa1(0x1b4)]()),_0x40cdcf),respondWithRpcPromise(_0x1cdaa1(0x17c),_0x1cdaa1(0x17b),{'module':'chan_sip.so'});}}})[_0x15df86(0x1a9)](function(_0x41d166){if(_0x41d166)return _0x763c31;return null;});})[_0x50d2c6(0x1a9)](respondWithResult(_0x5dbfa2,null))[_0x50d2c6(0x190)](handleError(_0x5dbfa2,null));},exports['destroy']=function(_0x2c6454,_0x22024c){const _0x248a15=a550_0x5939a0;let _0x1f5a66;return db[_0x248a15(0x1a5)]['findOne']({'where':{'id':_0x2c6454[_0x248a15(0x197)]['id']}})[_0x248a15(0x1a9)](function(_0x26395a){return _0x1f5a66=_0x26395a,_0x26395a;})['then'](handleEntityNotFound(_0x22024c,null))[_0x248a15(0x1a9)](removeEntity(_0x22024c,null))['then'](function(){const _0x3d78a9=_0x248a15;if(_0x1f5a66)return db[_0x3d78a9(0x1a5)][_0x3d78a9(0x1ad)]({'where':{'type':_0x1f5a66[_0x3d78a9(0x19e)]},'raw':!![]});})[_0x248a15(0x1a9)](function(_0x184314){const _0x24fd2=_0x248a15;if(_0x1f5a66[_0x24fd2(0x19e)][_0x24fd2(0x183)]()==_0x24fd2(0x18e)){const _0x3aea1d=fs[_0x24fd2(0x1c8)](path[_0x24fd2(0x1b1)](config[_0x24fd2(0x1b9)],'files/templates/stun_multiple.ejs'),'utf8'),_0x34cca9=ejs[_0x24fd2(0x186)](_0x3aea1d,{'networks':_0x184314||[]});return fs[_0x24fd2(0x17d)](_0x24fd2(0x193),_0x34cca9),respondWithRpcPromise('Reload','destroy',{'module':_0x24fd2(0x1c5)});}else{if(_0x1f5a66[_0x24fd2(0x19e)]['toUpperCase']()==_0x24fd2(0x1b5)){const _0x648e2f=fs[_0x24fd2(0x1c8)](path[_0x24fd2(0x1b1)](config[_0x24fd2(0x1b9)],_0x24fd2(0x18c)),_0x24fd2(0x182)),_0x3623c7=ejs[_0x24fd2(0x186)](_0x648e2f,{'networks':_0x184314||[]});return fs[_0x24fd2(0x17d)](_0x24fd2(0x1cb),_0x3623c7),respondWithRpcPromise(_0x24fd2(0x17c),_0x24fd2(0x196),{'module':_0x24fd2(0x1c5)});}else{const _0x53d5cd=fs[_0x24fd2(0x1c8)](path['join'](config[_0x24fd2(0x1b9)],_0x24fd2(0x18b)),'utf8'),_0x24b4df=ejs['render'](_0x53d5cd,{'networks':_0x184314||[]});return fs[_0x24fd2(0x17d)](util[_0x24fd2(0x1a1)](_0x24fd2(0x1aa),_0x2c6454[_0x24fd2(0x1b7)]['type']['toLowerCase']()),_0x24b4df),respondWithRpcPromise(_0x24fd2(0x17c),_0x24fd2(0x196),{'module':_0x24fd2(0x185)});}}})[_0x248a15(0x190)](handleError(_0x22024c,null));}; \ No newline at end of file +const a550_0x590c=['readFileSync','send','../../config/environment','fieldName','then','update','sort','catch','Content-Range','sequelize','res_stun_monitor.so','map','fields','model','merge','client','sendStatus','api','Network,\x20%s,\x20%s','files/templates/stun_multiple.ejs','transaction','key','server/files/templates/turn_multiple.ejs','Reload','VIRTUAL','toLowerCase','intersection','/etc/asterisk/stun_xcally.conf','filters','Network,\x20%s,\x20%s,\x20%s','/etc/asterisk/turn_xcally.conf','query','request','Network','STUN','limit','http','where','utf8','result','findAll','count','join','pick','name','debug','error','request\x20sent','destroy','stringify','path','body','set','jayson/promise','end','offset','render','type','options','filter','root','message','toUpperCase','server/files/templates/stun_multiple.ejs','json','files/templates/turn_multiple.ejs','lodash','create','params','order','status','files/templates/network.ejs','rawAttributes','rows','../../config/logger','format','show','attributes','nolimit','../../mysqldb','includeAll','keys','/etc/asterisk/sip_xcally_%s.conf','findOne','length','include','TURN','util','chan_sip.so','writeFileSync'];(function(_0x5b20e2,_0x156785){const _0x590c6f=function(_0x3b2e80){while(--_0x3b2e80){_0x5b20e2['push'](_0x5b20e2['shift']());}};_0x590c6f(++_0x156785);}(a550_0x590c,0x94));const a550_0x3b2e=function(_0x5b20e2,_0x156785){_0x5b20e2=_0x5b20e2-0x15d;let _0x590c6f=a550_0x590c[_0x5b20e2];return _0x590c6f;};const a550_0x32bb9c=a550_0x3b2e;'use strict';const util=require(a550_0x32bb9c(0x17a)),path=require(a550_0x32bb9c(0x1af)),ejs=require('ejs'),fs=require('fs'),_=require(a550_0x32bb9c(0x165)),qs=require('../../components/parsers/qs'),logger=require(a550_0x32bb9c(0x16d))(a550_0x32bb9c(0x18e)),config=require(a550_0x32bb9c(0x17f)),{db}=require(a550_0x32bb9c(0x172)),{Op}=require(a550_0x32bb9c(0x186)),jayson=require(a550_0x32bb9c(0x1b2)),client=jayson[a550_0x32bb9c(0x18c)][a550_0x32bb9c(0x1a1)]({'port':0x232a});function respondWithRpcPromise(_0x882503,_0x57bf78,_0x3c7aa7,_0x54fd31){return new Promise(function(_0x2731fd,_0x3e61f0){const _0x87b08c=a550_0x3b2e,_0x33d7d7=_0x54fd31||client;return _0x33d7d7[_0x87b08c(0x19d)](_0x882503,_0x3c7aa7)[_0x87b08c(0x181)](function(_0x2a6807){const _0x314682=_0x87b08c;logger['info'](_0x314682(0x18f),_0x57bf78,'request\x20sent'),logger[_0x314682(0x1aa)](_0x314682(0x19a),_0x57bf78,_0x314682(0x1ac),JSON[_0x314682(0x1ae)](_0x2a6807));if(_0x2a6807[_0x314682(0x1ab)]){if(_0x2a6807[_0x314682(0x1ab)]['code']===0x1f4)return logger[_0x314682(0x1ab)]('Network,\x20%s,\x20%s',_0x57bf78,_0x2a6807['error'][_0x314682(0x160)]),_0x3e61f0(_0x2a6807['error'][_0x314682(0x160)]);return logger['error'](_0x314682(0x18f),_0x57bf78,_0x2a6807[_0x314682(0x1ab)][_0x314682(0x160)]),_0x2731fd(_0x2a6807[_0x314682(0x1ab)][_0x314682(0x160)]);}else logger['info'](_0x314682(0x18f),_0x57bf78,_0x314682(0x1ac)),_0x2731fd(_0x2a6807[_0x314682(0x1a4)]['message']);})['catch'](function(_0x5cc97d){logger['error']('Network,\x20%s,\x20%s',_0x57bf78,_0x5cc97d),_0x3e61f0(_0x5cc97d);});});}function respondWithResult(_0x52a37f,_0x4bf25a){return _0x4bf25a=_0x4bf25a||0xc8,function(_0x3afea2){if(_0x3afea2)return _0x52a37f['status'](_0x4bf25a)['json'](_0x3afea2);};}function respondWithFilteredResult(_0x2e7416,_0xa08006){return function(_0x59f8fd){const _0x520706=a550_0x3b2e;if(_0x59f8fd){const _0x2a2022=_0x59f8fd['count'],_0x5a6e62=_0xa08006['offset'];let _0x316f30=_0xa08006[_0x520706(0x1b4)]+_0xa08006[_0x520706(0x1a0)],_0x1ff7e1;return _0x316f30>=_0x2a2022?(_0x316f30=_0x2a2022,_0x1ff7e1=0xc8):_0x1ff7e1=0xce,_0x2e7416[_0x520706(0x169)](_0x1ff7e1),_0x2e7416[_0x520706(0x1b1)](_0x520706(0x185),_0x5a6e62+'-'+_0x316f30+'/'+_0x2a2022)[_0x520706(0x163)](_0x59f8fd);}return null;};}function saveUpdates(_0x7459ff){return function(_0x4c8750){const _0x2bd4d3=a550_0x3b2e;if(_0x4c8750)return _0x4c8750[_0x2bd4d3(0x182)](_0x7459ff)[_0x2bd4d3(0x181)](function(_0x28b022){return _0x28b022;});return null;};}function removeEntity(_0x1c002c){return function(_0x5f551a){const _0x40abf4=a550_0x3b2e;if(_0x5f551a)return _0x5f551a[_0x40abf4(0x1ad)]()[_0x40abf4(0x181)](function(){const _0x146e67=_0x40abf4;_0x1c002c[_0x146e67(0x169)](0xcc)[_0x146e67(0x1b3)]();});};}function handleEntityNotFound(_0x3516f9){return function(_0xbcdc84){const _0x11fe99=a550_0x3b2e;return!_0xbcdc84&&_0x3516f9[_0x11fe99(0x18d)](0x194),_0xbcdc84;};}function handleError(_0x39be9d,_0x2fa029){return _0x2fa029=_0x2fa029||0x1f4,function(_0x38b8ff){const _0x390a6b=a550_0x3b2e;logger[_0x390a6b(0x1ab)](_0x38b8ff['stack']),_0x38b8ff[_0x390a6b(0x1a9)]&&delete _0x38b8ff[_0x390a6b(0x1a9)],_0x39be9d[_0x390a6b(0x169)](_0x2fa029)[_0x390a6b(0x17e)](_0x38b8ff);};}exports['index']=function(_0x200c74,_0x3ff5f9){const _0x24655c=a550_0x32bb9c;let _0x12efa={};const _0x241dc8={},_0x1c8b4b={'count':0x0,'rows':[]},_0x318f72=_[_0x24655c(0x188)](db[_0x24655c(0x19e)][_0x24655c(0x16b)],function(_0x31f54f){const _0x14a2c8=_0x24655c;return{'name':_0x31f54f[_0x14a2c8(0x180)],'type':_0x31f54f['type'][_0x14a2c8(0x192)]};});_0x241dc8[_0x24655c(0x18a)]=_[_0x24655c(0x188)](_0x318f72,_0x24655c(0x1a9)),_0x241dc8['query']=_[_0x24655c(0x174)](_0x200c74[_0x24655c(0x19c)]),_0x241dc8[_0x24655c(0x199)]=_[_0x24655c(0x197)](_0x241dc8[_0x24655c(0x18a)],_0x241dc8[_0x24655c(0x19c)]),_0x12efa[_0x24655c(0x170)]=_[_0x24655c(0x197)](_0x241dc8[_0x24655c(0x18a)],qs[_0x24655c(0x189)](_0x200c74[_0x24655c(0x19c)]['fields'])),_0x12efa[_0x24655c(0x170)]=_0x12efa[_0x24655c(0x170)][_0x24655c(0x177)]?_0x12efa['attributes']:_0x241dc8['model'];typeof _0x200c74[_0x24655c(0x19c)][_0x24655c(0x171)]==='undefined'&&(_0x12efa[_0x24655c(0x1a0)]=qs[_0x24655c(0x1a0)](_0x200c74['query'][_0x24655c(0x1a0)]),_0x12efa[_0x24655c(0x1b4)]=qs[_0x24655c(0x1b4)](_0x200c74[_0x24655c(0x19c)]['offset']));_0x12efa[_0x24655c(0x168)]=qs[_0x24655c(0x183)](_0x200c74[_0x24655c(0x19c)][_0x24655c(0x183)]),_0x12efa[_0x24655c(0x1a2)]=qs['filters'](_[_0x24655c(0x1a8)](_0x200c74['query'],_0x241dc8[_0x24655c(0x199)]),_0x318f72);_0x200c74['query'][_0x24655c(0x15e)]&&(_0x12efa[_0x24655c(0x1a2)]=_[_0x24655c(0x18b)](_0x12efa[_0x24655c(0x1a2)],{[Op['or']]:_[_0x24655c(0x188)](_0x318f72,function(_0x50114e){const _0x3ccda6=_0x24655c;if(_0x50114e['type']!==_0x3ccda6(0x195)){const _0x16b622={};return _0x16b622[_0x50114e['name']]={[Op['like']]:'%'+_0x200c74[_0x3ccda6(0x19c)]['filter']+'%'},_0x16b622;}})}));_0x12efa=_[_0x24655c(0x18b)]({},_0x12efa,_0x200c74[_0x24655c(0x15d)]);const _0x396ba9={'where':_0x12efa['where']};return db['Network']['count'](_0x396ba9)[_0x24655c(0x181)](function(_0x2d383d){const _0x1d3435=_0x24655c;return _0x1c8b4b[_0x1d3435(0x1a6)]=_0x2d383d,_0x200c74[_0x1d3435(0x19c)][_0x1d3435(0x173)]&&(_0x12efa[_0x1d3435(0x178)]=[{'all':!![]}]),db['Network'][_0x1d3435(0x1a5)](_0x12efa);})[_0x24655c(0x181)](function(_0x4152ea){const _0x246e33=_0x24655c;return _0x1c8b4b[_0x246e33(0x16c)]=_0x4152ea,_0x1c8b4b;})[_0x24655c(0x181)](respondWithFilteredResult(_0x3ff5f9,_0x12efa))['catch'](handleError(_0x3ff5f9,null));},exports[a550_0x32bb9c(0x16f)]=function(_0x4623f6,_0xb5a6e2){const _0x373ce6=a550_0x32bb9c;let _0x15c6d0={'raw':!![],'where':{'id':_0x4623f6[_0x373ce6(0x167)]['id']}};const _0x4550bc={};return _0x4550bc['model']=_[_0x373ce6(0x174)](db[_0x373ce6(0x19e)][_0x373ce6(0x16b)]),_0x4550bc[_0x373ce6(0x19c)]=_[_0x373ce6(0x174)](_0x4623f6[_0x373ce6(0x19c)]),_0x4550bc[_0x373ce6(0x199)]=_[_0x373ce6(0x197)](_0x4550bc[_0x373ce6(0x18a)],_0x4550bc[_0x373ce6(0x19c)]),_0x15c6d0['attributes']=_[_0x373ce6(0x197)](_0x4550bc[_0x373ce6(0x18a)],qs[_0x373ce6(0x189)](_0x4623f6[_0x373ce6(0x19c)][_0x373ce6(0x189)])),_0x15c6d0['attributes']=_0x15c6d0[_0x373ce6(0x170)][_0x373ce6(0x177)]?_0x15c6d0[_0x373ce6(0x170)]:_0x4550bc[_0x373ce6(0x18a)],_0x4623f6[_0x373ce6(0x19c)][_0x373ce6(0x173)]&&(_0x15c6d0[_0x373ce6(0x178)]=[{'all':!![]}]),_0x15c6d0=_[_0x373ce6(0x18b)]({},_0x15c6d0,_0x4623f6[_0x373ce6(0x15d)]),db[_0x373ce6(0x19e)][_0x373ce6(0x176)](_0x15c6d0)[_0x373ce6(0x181)](handleEntityNotFound(_0xb5a6e2,null))[_0x373ce6(0x181)](respondWithResult(_0xb5a6e2,null))[_0x373ce6(0x184)](handleError(_0xb5a6e2,null));},exports[a550_0x32bb9c(0x166)]=function(_0x3ca3bb,_0x5eb5c4){const _0x248709=a550_0x32bb9c;let _0x55a9f4;return db[_0x248709(0x186)][_0x248709(0x191)](function(){const _0x342a5b=_0x248709;return db[_0x342a5b(0x19e)][_0x342a5b(0x166)](_0x3ca3bb['body'],{'raw':!![]})[_0x342a5b(0x181)](function(_0x1677e7){const _0x231f62=_0x342a5b;return _0x55a9f4=_0x1677e7,db[_0x231f62(0x19e)]['findAll']({'where':{'type':_0x3ca3bb[_0x231f62(0x1b0)]['type']},'raw':!![]});})[_0x342a5b(0x181)](function(_0x22ac19){const _0x17cae3=_0x342a5b;if(_0x55a9f4[_0x17cae3(0x1b6)][_0x17cae3(0x161)]()==_0x17cae3(0x19f)){const _0x1b3b4e=fs[_0x17cae3(0x17d)](path[_0x17cae3(0x1a7)](config['root'],_0x17cae3(0x162)),_0x17cae3(0x1a3)),_0xf72005=ejs[_0x17cae3(0x1b5)](_0x1b3b4e,{'networks':_0x22ac19||[]});return fs[_0x17cae3(0x17c)](_0x17cae3(0x198),_0xf72005),respondWithRpcPromise(_0x17cae3(0x194),_0x17cae3(0x166),{'module':_0x17cae3(0x187)});}else{if(_0x55a9f4['type']['toUpperCase']()=='TURN'){const _0x4efc90=fs[_0x17cae3(0x17d)](path[_0x17cae3(0x1a7)](config[_0x17cae3(0x15f)],_0x17cae3(0x193)),'utf8'),_0x37cc37=ejs[_0x17cae3(0x1b5)](_0x4efc90,{'networks':_0x22ac19||[]});return fs[_0x17cae3(0x17c)](_0x17cae3(0x19b),_0x37cc37),respondWithRpcPromise(_0x17cae3(0x194),_0x17cae3(0x166),{'module':_0x17cae3(0x187)});}else{const _0x15abf6=fs['readFileSync'](path['join'](config[_0x17cae3(0x15f)],'files/templates/network.ejs'),_0x17cae3(0x1a3)),_0x21029c=ejs[_0x17cae3(0x1b5)](_0x15abf6,{'networks':_0x22ac19||[]});return fs['writeFileSync'](util[_0x17cae3(0x16e)](_0x17cae3(0x175),_0x3ca3bb[_0x17cae3(0x1b0)]['type']['toLowerCase']()),_0x21029c),respondWithRpcPromise(_0x17cae3(0x194),'create',{'module':_0x17cae3(0x17b)});}}})['then'](function(){return _0x55a9f4;});})[_0x248709(0x181)](respondWithResult(_0x5eb5c4,0xc9))[_0x248709(0x184)](handleError(_0x5eb5c4,null));},exports['update']=function(_0x251451,_0x580dad){const _0x15fcf5=a550_0x32bb9c;let _0x5e5e8b;return db['sequelize'][_0x15fcf5(0x191)](function(){const _0x476578=_0x15fcf5;return db[_0x476578(0x19e)][_0x476578(0x176)]({'where':{'id':_0x251451['params']['id']}})[_0x476578(0x181)](handleEntityNotFound(_0x580dad,null))[_0x476578(0x181)](saveUpdates(_0x251451[_0x476578(0x1b0)],null))[_0x476578(0x181)](function(_0x44edaa){const _0x522c60=_0x476578;if(_0x44edaa)return _0x5e5e8b=_0x44edaa,db[_0x522c60(0x19e)]['findAll']({'where':{'type':_0x5e5e8b[_0x522c60(0x1b6)]},'raw':!![]});return null;})['then'](function(_0x3cbe81){const _0x1892a2=_0x476578;if(_0x5e5e8b[_0x1892a2(0x1b6)][_0x1892a2(0x161)]()==_0x1892a2(0x19f)){const _0x24095b=fs[_0x1892a2(0x17d)](path[_0x1892a2(0x1a7)](config[_0x1892a2(0x15f)],_0x1892a2(0x162)),_0x1892a2(0x1a3)),_0x78a24d=ejs[_0x1892a2(0x1b5)](_0x24095b,{'networks':_0x3cbe81||[]});return fs['writeFileSync'](_0x1892a2(0x198),_0x78a24d),respondWithRpcPromise(_0x1892a2(0x194),_0x1892a2(0x182),{'module':_0x1892a2(0x187)});}else{if(_0x5e5e8b[_0x1892a2(0x1b6)][_0x1892a2(0x161)]()==_0x1892a2(0x179)){const _0x1785c0=fs[_0x1892a2(0x17d)](path[_0x1892a2(0x1a7)](config['root'],_0x1892a2(0x193)),'utf8'),_0x3287fb=ejs[_0x1892a2(0x1b5)](_0x1785c0,{'networks':_0x3cbe81||[]});return fs['writeFileSync'](_0x1892a2(0x19b),_0x3287fb),respondWithRpcPromise(_0x1892a2(0x194),_0x1892a2(0x182),{'module':_0x1892a2(0x187)});}else{const _0x391a2c=fs['readFileSync'](path[_0x1892a2(0x1a7)](config[_0x1892a2(0x15f)],_0x1892a2(0x16a)),_0x1892a2(0x1a3)),_0x53729f=ejs[_0x1892a2(0x1b5)](_0x391a2c,{'networks':_0x3cbe81||[]});return fs[_0x1892a2(0x17c)](util[_0x1892a2(0x16e)](_0x1892a2(0x175),_0x251451[_0x1892a2(0x1b0)]['type'][_0x1892a2(0x196)]()),_0x53729f),respondWithRpcPromise(_0x1892a2(0x194),_0x1892a2(0x182),{'module':_0x1892a2(0x17b)});}}})[_0x476578(0x181)](function(_0x232021){if(_0x232021)return _0x5e5e8b;return null;});})[_0x15fcf5(0x181)](respondWithResult(_0x580dad,null))[_0x15fcf5(0x184)](handleError(_0x580dad,null));},exports[a550_0x32bb9c(0x1ad)]=function(_0x4fc38d,_0x3344fe){const _0x209814=a550_0x32bb9c;let _0x2f4d41;return db[_0x209814(0x19e)][_0x209814(0x176)]({'where':{'id':_0x4fc38d['params']['id']}})[_0x209814(0x181)](function(_0xa2f05d){return _0x2f4d41=_0xa2f05d,_0xa2f05d;})[_0x209814(0x181)](handleEntityNotFound(_0x3344fe,null))[_0x209814(0x181)](removeEntity(_0x3344fe,null))['then'](function(){const _0x15fa62=_0x209814;if(_0x2f4d41)return db['Network'][_0x15fa62(0x1a5)]({'where':{'type':_0x2f4d41[_0x15fa62(0x1b6)]},'raw':!![]});})[_0x209814(0x181)](function(_0x23c4f1){const _0x2aae79=_0x209814;if(_0x2f4d41[_0x2aae79(0x1b6)][_0x2aae79(0x161)]()==_0x2aae79(0x19f)){const _0x298cc7=fs[_0x2aae79(0x17d)](path[_0x2aae79(0x1a7)](config[_0x2aae79(0x15f)],_0x2aae79(0x190)),'utf8'),_0x4b6304=ejs['render'](_0x298cc7,{'networks':_0x23c4f1||[]});return fs[_0x2aae79(0x17c)](_0x2aae79(0x198),_0x4b6304),respondWithRpcPromise(_0x2aae79(0x194),_0x2aae79(0x1ad),{'module':_0x2aae79(0x187)});}else{if(_0x2f4d41[_0x2aae79(0x1b6)][_0x2aae79(0x161)]()==_0x2aae79(0x179)){const _0x1707ac=fs[_0x2aae79(0x17d)](path[_0x2aae79(0x1a7)](config[_0x2aae79(0x15f)],_0x2aae79(0x164)),_0x2aae79(0x1a3)),_0x2b634c=ejs[_0x2aae79(0x1b5)](_0x1707ac,{'networks':_0x23c4f1||[]});return fs['writeFileSync']('/etc/asterisk/turn_xcally.conf',_0x2b634c),respondWithRpcPromise(_0x2aae79(0x194),_0x2aae79(0x1ad),{'module':_0x2aae79(0x187)});}else{const _0x11642a=fs[_0x2aae79(0x17d)](path['join'](config[_0x2aae79(0x15f)],'files/templates/network.ejs'),_0x2aae79(0x1a3)),_0x35a3ca=ejs[_0x2aae79(0x1b5)](_0x11642a,{'networks':_0x23c4f1||[]});return fs['writeFileSync'](util[_0x2aae79(0x16e)](_0x2aae79(0x175),_0x4fc38d[_0x2aae79(0x1b0)][_0x2aae79(0x1b6)][_0x2aae79(0x196)]()),_0x35a3ca),respondWithRpcPromise(_0x2aae79(0x194),_0x2aae79(0x1ad),{'module':'chan_sip.so'});}}})[_0x209814(0x184)](handleError(_0x3344fe,null));}; \ No newline at end of file diff --git a/server/api/network/network.model.js b/server/api/network/network.model.js index 7401bda..cab87f9 100644 --- a/server/api/network/network.model.js +++ b/server/api/network/network.model.js @@ -1 +1 @@ -const a551_0x4998=['init','./network.options','Network','function','exports','sequelize','./network.attributes'];(function(_0x4d01f7,_0x6ef847){const _0x49986f=function(_0xa66689){while(--_0xa66689){_0x4d01f7['push'](_0x4d01f7['shift']());}};_0x49986f(++_0x6ef847);}(a551_0x4998,0x96));const a551_0xa666=function(_0x4d01f7,_0x6ef847){_0x4d01f7=_0x4d01f7-0x1d6;let _0x49986f=a551_0x4998[_0x4d01f7];return _0x49986f;};const a551_0xf210e2=a551_0xa666;'use strict';const {Model}=require(a551_0xf210e2(0x1d8)),{attributes}=require(a551_0xf210e2(0x1d9)),{options}=require(a551_0xf210e2(0x1db));class Network extends Model{}function init(_0x3b8a70,_0x13075d){const _0x323850=a551_0xf210e2,_0x5789bb=options(_0x3b8a70),_0x21613f=typeof _0x13075d===_0x323850(0x1d6)?_0x13075d(_0x5789bb):_0x5789bb;return Network[_0x323850(0x1da)](attributes,_0x21613f),Network;}module[a551_0xf210e2(0x1d7)][a551_0xf210e2(0x1dc)]=Network,module[a551_0xf210e2(0x1d7)][a551_0xf210e2(0x1da)]=init; \ No newline at end of file +const a551_0x5914=['Network','init','./network.attributes','./network.options','sequelize','exports'];(function(_0x14857a,_0x4f6c8f){const _0x5914d9=function(_0x3a805f){while(--_0x3a805f){_0x14857a['push'](_0x14857a['shift']());}};_0x5914d9(++_0x4f6c8f);}(a551_0x5914,0x152));const a551_0x3a80=function(_0x14857a,_0x4f6c8f){_0x14857a=_0x14857a-0x68;let _0x5914d9=a551_0x5914[_0x14857a];return _0x5914d9;};const a551_0x2d65c3=a551_0x3a80;'use strict';const {Model}=require(a551_0x2d65c3(0x6a)),{attributes}=require(a551_0x2d65c3(0x68)),{options}=require(a551_0x2d65c3(0x69));class Network extends Model{}function init(_0x4c2865,_0x421223){const _0x3bb898=a551_0x2d65c3,_0x9dcfa3=options(_0x4c2865),_0x4480a9=typeof _0x421223==='function'?_0x421223(_0x9dcfa3):_0x9dcfa3;return Network[_0x3bb898(0x6d)](attributes,_0x4480a9),Network;}module[a551_0x2d65c3(0x6b)][a551_0x2d65c3(0x6c)]=Network,module['exports'][a551_0x2d65c3(0x6d)]=init; \ No newline at end of file diff --git a/server/api/network/network.options.js b/server/api/network/network.options.js index 07c3d79..6b862fd 100644 --- a/server/api/network/network.options.js +++ b/server/api/network/network.options.js @@ -1 +1 @@ -var a552_0x5d09=['options','network'];(function(_0x48d9eb,_0xf64558){var _0x5d09ff=function(_0x1bee7c){while(--_0x1bee7c){_0x48d9eb['push'](_0x48d9eb['shift']());}};_0x5d09ff(++_0xf64558);}(a552_0x5d09,0x138));var a552_0x1bee=function(_0x48d9eb,_0xf64558){_0x48d9eb=_0x48d9eb-0xb9;var _0x5d09ff=a552_0x5d09[_0x48d9eb];return _0x5d09ff;};var a552_0x3340a9=a552_0x1bee;function options(_0x31d713){var _0x26baaf=a552_0x1bee;return{'sequelize':_0x31d713,'tableName':_0x26baaf(0xba),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a552_0x3340a9(0xb9)]=options; \ No newline at end of file +function options(_0x3bf6ed){return{'sequelize':_0x3bf6ed,'tableName':'network','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports']['options']=options; \ No newline at end of file diff --git a/server/api/notification/index.js b/server/api/notification/index.js index d4882a9..e4ebb5f 100644 --- a/server/api/notification/index.js +++ b/server/api/notification/index.js @@ -1 +1 @@ -const a553_0x5865=['Router','exports','isAuthenticated','./notification.controller','../../components/auth/service','post'];(function(_0x4e29b5,_0x581ec8){const _0x586562=function(_0x1f98cd){while(--_0x1f98cd){_0x4e29b5['push'](_0x4e29b5['shift']());}};_0x586562(++_0x581ec8);}(a553_0x5865,0x122));const a553_0x1f98=function(_0x4e29b5,_0x581ec8){_0x4e29b5=_0x4e29b5-0x162;let _0x586562=a553_0x5865[_0x4e29b5];return _0x586562;};const a553_0x51ee9a=a553_0x1f98;'use strict';const express=require('express'),router=express[a553_0x51ee9a(0x166)](),auth=require(a553_0x51ee9a(0x164)),controller=require(a553_0x51ee9a(0x163));router[a553_0x51ee9a(0x165)]('/',auth[a553_0x51ee9a(0x162)](),controller['sendNotification']),module[a553_0x51ee9a(0x167)]=router; \ No newline at end of file +const a553_0x407d=['post','../../components/auth/service','Router','./notification.controller','express','exports','isAuthenticated','sendNotification'];(function(_0xe0df43,_0xacc64d){const _0x407d0e=function(_0x44e423){while(--_0x44e423){_0xe0df43['push'](_0xe0df43['shift']());}};_0x407d0e(++_0xacc64d);}(a553_0x407d,0x1ca));const a553_0x44e4=function(_0xe0df43,_0xacc64d){_0xe0df43=_0xe0df43-0x1a5;let _0x407d0e=a553_0x407d[_0xe0df43];return _0x407d0e;};const a553_0x5957ee=a553_0x44e4;'use strict';const express=require(a553_0x5957ee(0x1a7)),router=express[a553_0x5957ee(0x1a5)](),auth=require(a553_0x5957ee(0x1ac)),controller=require(a553_0x5957ee(0x1a6));router[a553_0x5957ee(0x1ab)]('/',auth[a553_0x5957ee(0x1a9)](),controller[a553_0x5957ee(0x1aa)]),module[a553_0x5957ee(0x1a8)]=router; \ No newline at end of file diff --git a/server/api/notification/notification.attributes.js b/server/api/notification/notification.attributes.js index c639c03..60a529a 100644 --- a/server/api/notification/notification.attributes.js +++ b/server/api/notification/notification.attributes.js @@ -1 +1 @@ -const a554_0x5693=['STRING','attributes','sequelize','TEXT'];(function(_0x3a2cf5,_0x52a1df){const _0x56930c=function(_0x2cecb3){while(--_0x2cecb3){_0x3a2cf5['push'](_0x3a2cf5['shift']());}};_0x56930c(++_0x52a1df);}(a554_0x5693,0xb9));const a554_0x2cec=function(_0x3a2cf5,_0x52a1df){_0x3a2cf5=_0x3a2cf5-0xeb;let _0x56930c=a554_0x5693[_0x3a2cf5];return _0x56930c;};const a554_0x2e6586=a554_0x2cec;'use strict';const {DataTypes}=require(a554_0x2e6586(0xec)),attributes={'body':{'type':DataTypes[a554_0x2e6586(0xed)]},'senderName':{'type':DataTypes['STRING']},'recipientsId':{'type':DataTypes[a554_0x2e6586(0xed)]},'recipientsDescription':{'type':DataTypes[a554_0x2e6586(0xee)]},'beep':{'type':DataTypes['BOOLEAN']}};module['exports'][a554_0x2e6586(0xeb)]=attributes; \ No newline at end of file +const a554_0x104b=['exports','STRING','sequelize','TEXT'];(function(_0x23258a,_0x103548){const _0x104b18=function(_0x3728b2){while(--_0x3728b2){_0x23258a['push'](_0x23258a['shift']());}};_0x104b18(++_0x103548);}(a554_0x104b,0x1b7));const a554_0x3728=function(_0x23258a,_0x103548){_0x23258a=_0x23258a-0x17e;let _0x104b18=a554_0x104b[_0x23258a];return _0x104b18;};const a554_0x39c50e=a554_0x3728;'use strict';const {DataTypes}=require(a554_0x39c50e(0x181)),attributes={'body':{'type':DataTypes[a554_0x39c50e(0x17e)]},'senderName':{'type':DataTypes[a554_0x39c50e(0x180)]},'recipientsId':{'type':DataTypes[a554_0x39c50e(0x17e)]},'recipientsDescription':{'type':DataTypes[a554_0x39c50e(0x180)]},'beep':{'type':DataTypes['BOOLEAN']}};module[a554_0x39c50e(0x17f)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/notification/notification.controller.js b/server/api/notification/notification.controller.js index 99da559..1079f9e 100644 --- a/server/api/notification/notification.controller.js +++ b/server/api/notification/notification.controller.js @@ -1 +1 @@ -const a555_0x56e5=['create','join','chatqueue','senderName','send','model','whatsappqueue','team','Notification','sortBy','toLowerCase','Invalid\x20\x27recipients\x27\x20object','undefined','queue','sequelize','getAgents','recipientsDescription','faxqueue','html','union','sendNotification','../../config/logger','../../mysqldb','ids','Queue','json','isEmpty','recipientsId','Missing\x20\x27view\x27\x20parameter','push','register','stack','some','text','render','beep','all','notification:send','Invalid\x20model\x20in\x20\x27recipients\x27\x20object','then','forEach','SenderId','error','user','flatten','api','mustache','Template','../../rediscache','voicequeue','TemplateId','parse','body','findOne','lodash','view','name','status','includes','fullname','recipients','catch','./notification.socket','recipient'];(function(_0x4690e4,_0x5c23ea){const _0x56e5c7=function(_0x5e64c7){while(--_0x5e64c7){_0x4690e4['push'](_0x4690e4['shift']());}};_0x56e5c7(++_0x5c23ea);}(a555_0x56e5,0x64));const a555_0x5e64=function(_0x4690e4,_0x5c23ea){_0x4690e4=_0x4690e4-0x169;let _0x56e5c7=a555_0x56e5[_0x4690e4];return _0x56e5c7;};const a555_0x3afeae=a555_0x5e64;'use strict';const Mustache=require(a555_0x3afeae(0x173)),_=require(a555_0x3afeae(0x17b)),logger=require(a555_0x3afeae(0x19a))(a555_0x3afeae(0x172)),{getSocket}=require(a555_0x3afeae(0x175)),socket=getSocket(),{db}=require(a555_0x3afeae(0x19b)),{ValidationError}=require(a555_0x3afeae(0x193));require(a555_0x3afeae(0x183))[a555_0x3afeae(0x1a3)](socket);function respondWithResult(_0x244cc1,_0x575f68){return _0x575f68=_0x575f68||0xc8,function(_0x579d21){const _0x4f28bd=a555_0x5e64;if(_0x579d21)return _0x244cc1[_0x4f28bd(0x17e)](_0x575f68)[_0x4f28bd(0x19e)](_0x579d21);};}function handleError(_0x41a4fc,_0x5101cf){return _0x5101cf=_0x5101cf||0x1f4,function(_0x381948){const _0x34d25a=a555_0x5e64;logger['error'](_0x381948[_0x34d25a(0x1a4)]),_0x381948[_0x34d25a(0x17d)]&&delete _0x381948['name'],_0x41a4fc[_0x34d25a(0x17e)](_0x5101cf)[_0x34d25a(0x189)](_0x381948);};}exports[a555_0x3afeae(0x199)]=function(_0x1a748e,_0x57ea33){const _0x1a745c=a555_0x3afeae;let _0x49baa5=[];if(typeof _0x1a748e[_0x1a745c(0x179)][_0x1a745c(0x1a6)]===_0x1a745c(0x191)&&typeof _0x1a748e[_0x1a745c(0x179)]['TemplateId']==='undefined')throw new ValidationError('Must\x20specify\x20at\x20least\x20one\x20argument\x20for\x20\x27text\x27\x20or\x20\x27TemplateId\x27');else{if(typeof _0x1a748e[_0x1a745c(0x179)][_0x1a745c(0x177)]!==_0x1a745c(0x191)&&typeof _0x1a748e[_0x1a745c(0x179)]['view']==='undefined')throw new ValidationError(_0x1a745c(0x1a1));if(typeof _0x1a748e['body'][_0x1a745c(0x181)]===_0x1a745c(0x191))throw new ValidationError('Missing\x20\x27recipients\x27\x20parameter');else{try{_0x49baa5=JSON[_0x1a745c(0x178)](_0x1a748e[_0x1a745c(0x179)][_0x1a745c(0x181)]);}catch(_0x1fbb11){logger[_0x1a745c(0x16f)](_0x1fbb11);throw new ValidationError(_0x1a745c(0x190));}const _0x116897=[_0x1a745c(0x187),_0x1a745c(0x196),'mailqueue','openchannelqueue','smsqueue',_0x1a745c(0x176),_0x1a745c(0x18b),_0x1a745c(0x18c),_0x1a745c(0x170)];if(_[_0x1a745c(0x1a5)](_0x49baa5,function(_0x982204){const _0x549f1a=_0x1a745c;return!_[_0x549f1a(0x17f)](_0x116897,_0x982204[_0x549f1a(0x18a)][_0x549f1a(0x18f)]());}))throw new ValidationError(_0x1a745c(0x16b));}}const _0x480e3b={};return _0x480e3b['senderName']=_0x1a748e['body'][_0x1a745c(0x188)]?_0x1a748e['body']['senderName']:_0x1a748e[_0x1a745c(0x170)][_0x1a745c(0x180)],_0x480e3b[_0x1a745c(0x195)]=_[_0x1a745c(0x19f)](_0x1a748e[_0x1a745c(0x179)][_0x1a745c(0x195)])?null:_0x1a748e[_0x1a745c(0x179)][_0x1a745c(0x195)],_0x480e3b[_0x1a745c(0x1a8)]=_0x1a748e[_0x1a745c(0x179)]['beep']||![],_0x480e3b[_0x1a745c(0x16e)]=_0x1a748e[_0x1a745c(0x170)]['id'],getContent(_0x1a748e[_0x1a745c(0x179)])['then'](function(_0x31a1b1){return _0x480e3b['body']=_0x31a1b1,getRecipients(_0x49baa5);})[_0x1a745c(0x16c)](function(_0x2bc28b){const _0x2dd01d=_0x1a745c;return _0x480e3b[_0x2dd01d(0x1a0)]=_[_0x2dd01d(0x18e)](_0x2bc28b)[_0x2dd01d(0x186)](','),db[_0x2dd01d(0x193)]['transaction'](function(_0x3d9887){const _0x447dbe=_0x2dd01d;return db[_0x447dbe(0x18d)][_0x447dbe(0x185)](_0x480e3b,{'raw':!![],'transaction':_0x3d9887})[_0x447dbe(0x16c)](function(_0x26ea5f){const _0x3be9c7=_0x447dbe,_0x57a1fd={'sender':_0x480e3b[_0x3be9c7(0x188)],'description':_0x480e3b[_0x3be9c7(0x195)],'content':_0x480e3b[_0x3be9c7(0x179)],'beep':_0x480e3b[_0x3be9c7(0x1a8)]};return _0x2bc28b[_0x3be9c7(0x16d)](function(_0x347197){const _0xa7e0d2=_0x3be9c7;_0x57a1fd[_0xa7e0d2(0x184)]=_0x347197,socket['emit'](_0xa7e0d2(0x16a),_0x57a1fd);}),_0x26ea5f;});});})['then'](respondWithResult(_0x57ea33,0xc9))[_0x1a745c(0x182)](handleError(_0x57ea33,null));};function getContent(_0xa4163c){return new Promise(function(_0x2fe59c,_0x10c699){const _0x318347=a555_0x5e64;if(_0xa4163c[_0x318347(0x1a6)]){_0x2fe59c(_0xa4163c[_0x318347(0x1a6)]);return;}return db[_0x318347(0x174)][_0x318347(0x17a)]({'attributes':[_0x318347(0x197)],'where':{'id':_0xa4163c[_0x318347(0x177)]},'raw':!![]})[_0x318347(0x16c)](function(_0x6129c6){const _0x269f0b=_0x318347;if(!_0x6129c6)throw new ValidationError('Invalid\x20\x27TemplateId\x27\x20parameter');const _0x1f3d17=Mustache[_0x269f0b(0x1a7)](_0x6129c6['html'],_0xa4163c[_0x269f0b(0x17c)]);_0x2fe59c(_0x1f3d17);})[_0x318347(0x182)](function(_0x4ef209){_0x10c699(_0x4ef209);});});}function getRecipients(_0x1fee11){return new Promise(function(_0xd64fd9,_0x30304b){const _0x570b57=a555_0x5e64;let _0x2f3c26=[];const _0x519164=[];return _0x1fee11['forEach'](function(_0x1cd160){const _0x4f8890=a555_0x5e64;let _0x3db524=_['startCase'](_0x1cd160['model'][_0x4f8890(0x18f)]());if(_0x3db524==='User')_0x2f3c26=_['union'](_0x2f3c26,_0x1cd160['ids']);else{if(_['includes'](_0x3db524,_0x4f8890(0x192)))_0x3db524=_0x3db524['replace'](_0x4f8890(0x192),_0x4f8890(0x19d));_0x1cd160[_0x4f8890(0x19c)][_0x4f8890(0x16d)](function(_0xaefe78){const _0x5e0d16=_0x4f8890;_0x519164[_0x5e0d16(0x1a2)](getAgents(_0x3db524,_0xaefe78));});}}),Promise[_0x570b57(0x169)](_0x519164)[_0x570b57(0x16c)](function(_0x2fa021){const _0x4226f8=_0x570b57;_0x2f3c26=_[_0x4226f8(0x198)](_0x2f3c26,_[_0x4226f8(0x171)](_0x2fa021)),_0xd64fd9(_0x2f3c26);})[_0x570b57(0x182)](function(_0x11bb75){_0x30304b(_0x11bb75);});});}function getAgents(_0x2e65bb,_0x288faa){return new Promise(function(_0x2bf657,_0x3fc2a8){const _0x101bd1=a555_0x5e64;return db[_0x2e65bb]['findOne']({'where':{'id':_0x288faa}})['then'](function(_0x369d06){const _0x409389=a555_0x5e64;return _0x369d06[_0x409389(0x194)]({'attributes':['id'],'raw':!![]})[_0x409389(0x16c)](function(_0x2cd2b9){const _0x2f7c89=_['map'](_0x2cd2b9,'id');_0x2bf657(_0x2f7c89);});})[_0x101bd1(0x182)](function(_0x2a0f2e){_0x3fc2a8(_0x2a0f2e);});});} \ No newline at end of file +const a555_0x453f=['body','replace','json','model','sortBy','join','team','all','undefined','mailqueue','getAgents','openchannelqueue','notification:send','User','recipients','name','../../rediscache','whatsappqueue','catch','html','api','smsqueue','render','SenderId','recipientsDescription','forEach','voicequeue','then','faxqueue','flatten','beep','register','includes','Missing\x20\x27view\x27\x20parameter','../../mysqldb','Template','send','../../config/logger','recipientsId','./notification.socket','queue','transaction','isEmpty','text','Invalid\x20\x27TemplateId\x27\x20parameter','Queue','TemplateId','senderName','ids','some','create','stack','map','parse','findOne','error','Invalid\x20\x27recipients\x27\x20object','user','sendNotification','sequelize','status','view','emit','Must\x20specify\x20at\x20least\x20one\x20argument\x20for\x20\x27text\x27\x20or\x20\x27TemplateId\x27'];(function(_0x5d3871,_0x50926f){const _0x453fcd=function(_0x43fc42){while(--_0x43fc42){_0x5d3871['push'](_0x5d3871['shift']());}};_0x453fcd(++_0x50926f);}(a555_0x453f,0x70));const a555_0x43fc=function(_0x5d3871,_0x50926f){_0x5d3871=_0x5d3871-0x1b1;let _0x453fcd=a555_0x453f[_0x5d3871];return _0x453fcd;};const a555_0x33ba1f=a555_0x43fc;'use strict';const Mustache=require('mustache'),_=require('lodash'),logger=require(a555_0x33ba1f(0x1e6))(a555_0x33ba1f(0x1d5)),{getSocket}=require(a555_0x33ba1f(0x1d1)),socket=getSocket(),{db}=require(a555_0x33ba1f(0x1e3)),{ValidationError}=require('sequelize');require(a555_0x33ba1f(0x1e8))[a555_0x33ba1f(0x1e0)](socket);function respondWithResult(_0x266826,_0x5567da){return _0x5567da=_0x5567da||0xc8,function(_0x2cee73){const _0x2fedce=a555_0x43fc;if(_0x2cee73)return _0x266826['status'](_0x5567da)[_0x2fedce(0x1c3)](_0x2cee73);};}function handleError(_0x263ee3,_0x462684){return _0x462684=_0x462684||0x1f4,function(_0x163436){const _0x1e5097=a555_0x43fc;logger['error'](_0x163436[_0x1e5097(0x1b4)]),_0x163436[_0x1e5097(0x1d0)]&&delete _0x163436[_0x1e5097(0x1d0)],_0x263ee3[_0x1e5097(0x1bd)](_0x462684)[_0x1e5097(0x1e5)](_0x163436);};}exports[a555_0x33ba1f(0x1bb)]=function(_0x25ef0e,_0x411c83){const _0x2df0dc=a555_0x33ba1f;let _0x3410bb=[];if(typeof _0x25ef0e[_0x2df0dc(0x1c1)][_0x2df0dc(0x1ec)]===_0x2df0dc(0x1c9)&&typeof _0x25ef0e['body'][_0x2df0dc(0x1ef)]===_0x2df0dc(0x1c9))throw new ValidationError(_0x2df0dc(0x1c0));else{if(typeof _0x25ef0e['body']['TemplateId']!==_0x2df0dc(0x1c9)&&typeof _0x25ef0e['body'][_0x2df0dc(0x1be)]===_0x2df0dc(0x1c9))throw new ValidationError(_0x2df0dc(0x1e2));if(typeof _0x25ef0e['body'][_0x2df0dc(0x1cf)]===_0x2df0dc(0x1c9))throw new ValidationError('Missing\x20\x27recipients\x27\x20parameter');else{try{_0x3410bb=JSON[_0x2df0dc(0x1b6)](_0x25ef0e[_0x2df0dc(0x1c1)]['recipients']);}catch(_0x56cec4){logger[_0x2df0dc(0x1b8)](_0x56cec4);throw new ValidationError(_0x2df0dc(0x1b9));}const _0x36c192=['chatqueue',_0x2df0dc(0x1dd),_0x2df0dc(0x1ca),_0x2df0dc(0x1cc),_0x2df0dc(0x1d6),_0x2df0dc(0x1db),_0x2df0dc(0x1d2),_0x2df0dc(0x1c7),_0x2df0dc(0x1ba)];if(_[_0x2df0dc(0x1b2)](_0x3410bb,function(_0x533857){const _0x457550=_0x2df0dc;return!_[_0x457550(0x1e1)](_0x36c192,_0x533857[_0x457550(0x1c4)]['toLowerCase']());}))throw new ValidationError('Invalid\x20model\x20in\x20\x27recipients\x27\x20object');}}const _0x21ab31={};return _0x21ab31['senderName']=_0x25ef0e[_0x2df0dc(0x1c1)][_0x2df0dc(0x1f0)]?_0x25ef0e['body'][_0x2df0dc(0x1f0)]:_0x25ef0e[_0x2df0dc(0x1ba)]['fullname'],_0x21ab31['recipientsDescription']=_[_0x2df0dc(0x1eb)](_0x25ef0e[_0x2df0dc(0x1c1)][_0x2df0dc(0x1d9)])?null:_0x25ef0e[_0x2df0dc(0x1c1)][_0x2df0dc(0x1d9)],_0x21ab31[_0x2df0dc(0x1df)]=_0x25ef0e['body'][_0x2df0dc(0x1df)]||![],_0x21ab31[_0x2df0dc(0x1d8)]=_0x25ef0e[_0x2df0dc(0x1ba)]['id'],getContent(_0x25ef0e['body'])['then'](function(_0x2c920e){const _0x311a78=_0x2df0dc;return _0x21ab31[_0x311a78(0x1c1)]=_0x2c920e,getRecipients(_0x3410bb);})[_0x2df0dc(0x1dc)](function(_0x91981d){const _0x1cbab3=_0x2df0dc;return _0x21ab31[_0x1cbab3(0x1e7)]=_[_0x1cbab3(0x1c5)](_0x91981d)[_0x1cbab3(0x1c6)](','),db[_0x1cbab3(0x1bc)][_0x1cbab3(0x1ea)](function(_0x5aec08){const _0x9a7db7=_0x1cbab3;return db['Notification'][_0x9a7db7(0x1b3)](_0x21ab31,{'raw':!![],'transaction':_0x5aec08})[_0x9a7db7(0x1dc)](function(_0x188b08){const _0x4c7a82=_0x9a7db7,_0x277e89={'sender':_0x21ab31[_0x4c7a82(0x1f0)],'description':_0x21ab31[_0x4c7a82(0x1d9)],'content':_0x21ab31['body'],'beep':_0x21ab31[_0x4c7a82(0x1df)]};return _0x91981d[_0x4c7a82(0x1da)](function(_0x20a2de){const _0x24ca9a=_0x4c7a82;_0x277e89['recipient']=_0x20a2de,socket[_0x24ca9a(0x1bf)](_0x24ca9a(0x1cd),_0x277e89);}),_0x188b08;});});})[_0x2df0dc(0x1dc)](respondWithResult(_0x411c83,0xc9))[_0x2df0dc(0x1d3)](handleError(_0x411c83,null));};function getContent(_0x3a4a4e){return new Promise(function(_0x43f270,_0x447442){const _0x25c2b1=a555_0x43fc;if(_0x3a4a4e[_0x25c2b1(0x1ec)]){_0x43f270(_0x3a4a4e[_0x25c2b1(0x1ec)]);return;}return db[_0x25c2b1(0x1e4)][_0x25c2b1(0x1b7)]({'attributes':['html'],'where':{'id':_0x3a4a4e[_0x25c2b1(0x1ef)]},'raw':!![]})[_0x25c2b1(0x1dc)](function(_0x88d8f){const _0x5b8d6e=_0x25c2b1;if(!_0x88d8f)throw new ValidationError(_0x5b8d6e(0x1ed));const _0x4a8060=Mustache[_0x5b8d6e(0x1d7)](_0x88d8f[_0x5b8d6e(0x1d4)],_0x3a4a4e[_0x5b8d6e(0x1be)]);_0x43f270(_0x4a8060);})[_0x25c2b1(0x1d3)](function(_0x53bbef){_0x447442(_0x53bbef);});});}function getRecipients(_0x439078){return new Promise(function(_0x4c873f,_0x12fce1){const _0x28a594=a555_0x43fc;let _0x56e32d=[];const _0x40f5d6=[];return _0x439078['forEach'](function(_0x31288c){const _0x376b1f=a555_0x43fc;let _0x178e97=_['startCase'](_0x31288c[_0x376b1f(0x1c4)]['toLowerCase']());if(_0x178e97===_0x376b1f(0x1ce))_0x56e32d=_['union'](_0x56e32d,_0x31288c[_0x376b1f(0x1b1)]);else{if(_[_0x376b1f(0x1e1)](_0x178e97,'queue'))_0x178e97=_0x178e97[_0x376b1f(0x1c2)](_0x376b1f(0x1e9),_0x376b1f(0x1ee));_0x31288c[_0x376b1f(0x1b1)][_0x376b1f(0x1da)](function(_0x6f82a3){_0x40f5d6['push'](getAgents(_0x178e97,_0x6f82a3));});}}),Promise[_0x28a594(0x1c8)](_0x40f5d6)['then'](function(_0x23d76c){const _0x31f83d=_0x28a594;_0x56e32d=_['union'](_0x56e32d,_[_0x31f83d(0x1de)](_0x23d76c)),_0x4c873f(_0x56e32d);})[_0x28a594(0x1d3)](function(_0x4be319){_0x12fce1(_0x4be319);});});}function getAgents(_0x464246,_0x45a6b5){return new Promise(function(_0x3ac08a,_0x4734db){const _0x548521=a555_0x43fc;return db[_0x464246][_0x548521(0x1b7)]({'where':{'id':_0x45a6b5}})['then'](function(_0x1a9e0b){const _0x2fd5f3=_0x548521;return _0x1a9e0b[_0x2fd5f3(0x1cb)]({'attributes':['id'],'raw':!![]})[_0x2fd5f3(0x1dc)](function(_0x4bc01d){const _0x1f0158=_0x2fd5f3,_0x3bc33a=_[_0x1f0158(0x1b5)](_0x4bc01d,'id');_0x3ac08a(_0x3bc33a);});})[_0x548521(0x1d3)](function(_0x50c709){_0x4734db(_0x50c709);});});} \ No newline at end of file diff --git a/server/api/notification/notification.events.js b/server/api/notification/notification.events.js index 02ddb6d..9b8a95f 100644 --- a/server/api/notification/notification.events.js +++ b/server/api/notification/notification.events.js @@ -1 +1 @@ -const a556_0x5188=['../../mysqldb','Notification','update','undefined','emit','save','remove'];(function(_0x3144f5,_0x3ad40c){const _0x5188d1=function(_0x5d30ba){while(--_0x5d30ba){_0x3144f5['push'](_0x3144f5['shift']());}};_0x5188d1(++_0x3ad40c);}(a556_0x5188,0xc5));const a556_0x5d30=function(_0x3144f5,_0x3ad40c){_0x3144f5=_0x3144f5-0x1ab;let _0x5188d1=a556_0x5188[_0x3144f5];return _0x5188d1;};const a556_0x3752c5=a556_0x5d30;'use strict';const EventEmitter=require('events'),Notification=require(a556_0x3752c5(0x1b1))['db'][a556_0x3752c5(0x1ab)],NotificationEvents=new EventEmitter();NotificationEvents['setMaxListeners'](0x0);const events={'afterCreate':a556_0x3752c5(0x1af),'afterUpdate':a556_0x3752c5(0x1ac),'afterDestroy':a556_0x3752c5(0x1b0)};function emitEvent(_0x217c04){return function(_0x2f1a1c){const _0x5a9c7b=a556_0x5d30;NotificationEvents[_0x5a9c7b(0x1ae)](_0x217c04+':'+_0x2f1a1c['id'],_0x2f1a1c),NotificationEvents['emit'](_0x217c04,_0x2f1a1c);};}for(const e in events){if(typeof events[e]!==a556_0x3752c5(0x1ad)){const event=events[e];Notification['addHook'](e,emitEvent(event));}}module['exports']=NotificationEvents; \ No newline at end of file +const a556_0x4894=['../../mysqldb','exports','update','events','emit','Notification','setMaxListeners','addHook','remove','undefined'];(function(_0x1a8f7c,_0x262bb1){const _0x48946a=function(_0x342607){while(--_0x342607){_0x1a8f7c['push'](_0x1a8f7c['shift']());}};_0x48946a(++_0x262bb1);}(a556_0x4894,0x7c));const a556_0x3426=function(_0x1a8f7c,_0x262bb1){_0x1a8f7c=_0x1a8f7c-0x1d3;let _0x48946a=a556_0x4894[_0x1a8f7c];return _0x48946a;};const a556_0x165a84=a556_0x3426;'use strict';const EventEmitter=require(a556_0x165a84(0x1dc)),Notification=require(a556_0x165a84(0x1d9))['db'][a556_0x165a84(0x1d4)],NotificationEvents=new EventEmitter();NotificationEvents[a556_0x165a84(0x1d5)](0x0);const events={'afterCreate':'save','afterUpdate':a556_0x165a84(0x1db),'afterDestroy':a556_0x165a84(0x1d7)};function emitEvent(_0x476ca5){return function(_0x232e22){const _0x43fb3d=a556_0x3426;NotificationEvents['emit'](_0x476ca5+':'+_0x232e22['id'],_0x232e22),NotificationEvents[_0x43fb3d(0x1d3)](_0x476ca5,_0x232e22);};}for(const e in events){if(typeof events[e]!==a556_0x165a84(0x1d8)){const event=events[e];Notification[a556_0x165a84(0x1d6)](e,emitEvent(event));}}module[a556_0x165a84(0x1da)]=NotificationEvents; \ No newline at end of file diff --git a/server/api/notification/notification.model.js b/server/api/notification/notification.model.js index 9acd4da..7719af7 100644 --- a/server/api/notification/notification.model.js +++ b/server/api/notification/notification.model.js @@ -1 +1 @@ -const a557_0x50b1=['Notification','./notification.options','exports','sequelize','function','init'];(function(_0x2b8523,_0x468d0d){const _0x50b1e9=function(_0x47d6d7){while(--_0x47d6d7){_0x2b8523['push'](_0x2b8523['shift']());}};_0x50b1e9(++_0x468d0d);}(a557_0x50b1,0x1ee));const a557_0x47d6=function(_0x2b8523,_0x468d0d){_0x2b8523=_0x2b8523-0x7c;let _0x50b1e9=a557_0x50b1[_0x2b8523];return _0x50b1e9;};const a557_0x3f56f0=a557_0x47d6;'use strict';const {Model}=require(a557_0x3f56f0(0x7d)),{attributes}=require('./notification.attributes'),{options}=require(a557_0x3f56f0(0x81));class Notification extends Model{}function init(_0x444819,_0x23e435){const _0x37615d=a557_0x3f56f0,_0x43e39a=options(_0x444819),_0xd37394=typeof _0x23e435===_0x37615d(0x7e)?_0x23e435(_0x43e39a):_0x43e39a;return Notification[_0x37615d(0x7f)](attributes,_0xd37394),Notification;}module[a557_0x3f56f0(0x7c)][a557_0x3f56f0(0x80)]=Notification,module[a557_0x3f56f0(0x7c)][a557_0x3f56f0(0x7f)]=init; \ No newline at end of file +const a557_0x3a11=['./notification.options','exports','init','./notification.attributes'];(function(_0x39d957,_0x23a812){const _0x3a11ad=function(_0x61fd3a){while(--_0x61fd3a){_0x39d957['push'](_0x39d957['shift']());}};_0x3a11ad(++_0x23a812);}(a557_0x3a11,0x15f));const a557_0x61fd=function(_0x39d957,_0x23a812){_0x39d957=_0x39d957-0xe8;let _0x3a11ad=a557_0x3a11[_0x39d957];return _0x3a11ad;};const a557_0x32fef3=a557_0x61fd;'use strict';const {Model}=require('sequelize'),{attributes}=require(a557_0x32fef3(0xe8)),{options}=require(a557_0x32fef3(0xe9));class Notification extends Model{}function init(_0x2c3751,_0x4dfd6e){const _0x31a183=a557_0x32fef3,_0x54eeab=options(_0x2c3751),_0x17203b=typeof _0x4dfd6e==='function'?_0x4dfd6e(_0x54eeab):_0x54eeab;return Notification[_0x31a183(0xeb)](attributes,_0x17203b),Notification;}module[a557_0x32fef3(0xea)]['Notification']=Notification,module[a557_0x32fef3(0xea)][a557_0x32fef3(0xeb)]=init; \ No newline at end of file diff --git a/server/api/notification/notification.options.js b/server/api/notification/notification.options.js index 5bb1b9d..e9487f6 100644 --- a/server/api/notification/notification.options.js +++ b/server/api/notification/notification.options.js @@ -1 +1 @@ -var a558_0x12a8=['notifications','utf8mb4_unicode_ci'];(function(_0x3a0791,_0x3e8ffb){var _0x12a8dc=function(_0x425401){while(--_0x425401){_0x3a0791['push'](_0x3a0791['shift']());}};_0x12a8dc(++_0x3e8ffb);}(a558_0x12a8,0x187));var a558_0x4254=function(_0x3a0791,_0x3e8ffb){_0x3a0791=_0x3a0791-0xd8;var _0x12a8dc=a558_0x12a8[_0x3a0791];return _0x12a8dc;};function options(_0x543daa){var _0x591d6b=a558_0x4254;return{'sequelize':_0x543daa,'tableName':_0x591d6b(0xd9),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x591d6b(0xd8)};}module['exports']['options']=options; \ No newline at end of file +var a558_0x3c8f=['notifications','exports','utf8mb4','utf8mb4_unicode_ci'];(function(_0x726783,_0x3875c4){var _0x3c8fa8=function(_0x3aa6e5){while(--_0x3aa6e5){_0x726783['push'](_0x726783['shift']());}};_0x3c8fa8(++_0x3875c4);}(a558_0x3c8f,0x1a4));var a558_0x3aa6=function(_0x726783,_0x3875c4){_0x726783=_0x726783-0x186;var _0x3c8fa8=a558_0x3c8f[_0x726783];return _0x3c8fa8;};var a558_0x579b89=a558_0x3aa6;function options(_0x1ce15e){var _0x5a1a3c=a558_0x3aa6;return{'sequelize':_0x1ce15e,'tableName':_0x5a1a3c(0x186),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x5a1a3c(0x188),'collate':_0x5a1a3c(0x189)};}module[a558_0x579b89(0x187)]['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 23116a9..2d82b76 100644 --- a/server/api/notification/notification.rpc.js +++ b/server/api/notification/notification.rpc.js @@ -1 +1 @@ -const a559_0x33fb=['../../rediscache','./notification.socket'];(function(_0x997fea,_0x54a52b){const _0x33fb97=function(_0x1ae623){while(--_0x1ae623){_0x997fea['push'](_0x997fea['shift']());}};_0x33fb97(++_0x54a52b);}(a559_0x33fb,0x8e));const a559_0x1ae6=function(_0x997fea,_0x54a52b){_0x997fea=_0x997fea-0xc0;let _0x33fb97=a559_0x33fb[_0x997fea];return _0x33fb97;};const a559_0x2ac8f6=a559_0x1ae6;'use strict';const {getSocket}=require(a559_0x2ac8f6(0xc0)),socket=getSocket();require(a559_0x2ac8f6(0xc1))['register'](socket); \ No newline at end of file +const a559_0x4ccf=['../../rediscache'];(function(_0x40c2f,_0x441b7f){const _0x4ccf85=function(_0x59c0c6){while(--_0x59c0c6){_0x40c2f['push'](_0x40c2f['shift']());}};_0x4ccf85(++_0x441b7f);}(a559_0x4ccf,0xd3));const a559_0x59c0=function(_0x40c2f,_0x441b7f){_0x40c2f=_0x40c2f-0x11e;let _0x4ccf85=a559_0x4ccf[_0x40c2f];return _0x4ccf85;};const a559_0x3cf664=a559_0x59c0;'use strict';const {getSocket}=require(a559_0x3cf664(0x11e)),socket=getSocket();require('./notification.socket')['register'](socket); \ No newline at end of file diff --git a/server/api/notification/notification.socket.js b/server/api/notification/notification.socket.js index d3cc872..bc26233 100644 --- a/server/api/notification/notification.socket.js +++ b/server/api/notification/notification.socket.js @@ -1 +1 @@ -const a560_0x2ae8=['./notification.events','remove','update','length','emit','notification:'];(function(_0x1e8688,_0xa80790){const _0x2ae835=function(_0x347402){while(--_0x347402){_0x1e8688['push'](_0x1e8688['shift']());}};_0x2ae835(++_0xa80790);}(a560_0x2ae8,0x12d));const a560_0x3474=function(_0x1e8688,_0xa80790){_0x1e8688=_0x1e8688-0x13e;let _0x2ae835=a560_0x2ae8[_0x1e8688];return _0x2ae835;};const a560_0x31254f=a560_0x3474;'use strict';const NotificationEvents=require(a560_0x31254f(0x143)),events=['save',a560_0x31254f(0x13e),a560_0x31254f(0x13f)];function createListener(_0x2e9aed,_0x263ad3){return function(_0x8fb525){const _0x31b33c=a560_0x3474;_0x263ad3[_0x31b33c(0x141)](_0x2e9aed,_0x8fb525);};}exports['register']=function(_0x46e66c){const _0x5507de=a560_0x31254f;for(let _0x160521=0x0,_0x510701=events[_0x5507de(0x140)];_0x160521<_0x510701;_0x160521++){const _0x17d8ad=events[_0x160521],_0x5838ca=createListener(_0x5507de(0x142)+_0x17d8ad,_0x46e66c);NotificationEvents['on'](_0x17d8ad,_0x5838ca);}}; \ No newline at end of file +const a560_0x41aa=['notification:','remove','update','register','emit','length','./notification.events'];(function(_0x326726,_0x18b61a){const _0x41aa5c=function(_0x46f2f9){while(--_0x46f2f9){_0x326726['push'](_0x326726['shift']());}};_0x41aa5c(++_0x18b61a);}(a560_0x41aa,0x1c6));const a560_0x46f2=function(_0x326726,_0x18b61a){_0x326726=_0x326726-0x1a2;let _0x41aa5c=a560_0x41aa[_0x326726];return _0x41aa5c;};const a560_0x4c5d65=a560_0x46f2;'use strict';const NotificationEvents=require(a560_0x4c5d65(0x1a2)),events=['save',a560_0x4c5d65(0x1a4),a560_0x4c5d65(0x1a5)];function createListener(_0x45ab10,_0x529cbd){return function(_0x3e02de){const _0x4284b8=a560_0x46f2;_0x529cbd[_0x4284b8(0x1a7)](_0x45ab10,_0x3e02de);};}exports[a560_0x4c5d65(0x1a6)]=function(_0x2ca324){const _0x10ada1=a560_0x4c5d65;for(let _0x282aaa=0x0,_0x544a34=events[_0x10ada1(0x1a8)];_0x282aaa<_0x544a34;_0x282aaa++){const _0x35f518=events[_0x282aaa],_0x2d2f85=createListener(_0x10ada1(0x1a3)+_0x35f518,_0x2ca324);NotificationEvents['on'](_0x35f518,_0x2d2f85);}}; \ No newline at end of file diff --git a/server/api/openchannelAccount/index.js b/server/api/openchannelAccount/index.js index 63bca20..9169117 100644 --- a/server/api/openchannelAccount/index.js +++ b/server/api/openchannelAccount/index.js @@ -1 +1 @@ -const a561_0x54e1=['/:id/dispositions','create','getAgents','getAnswers','/:id/applications','getDispositions','/:id','express','put','removeDispositions','index','update','get','addDisposition','describe','../../components/auth/service','/:id/send','/:id/canned_answers','destroy','removeAgents','removeAnswers','delete','./openchannelAccount.controller','/:id/users','isAuthenticated','show','getInteractions','addAgents','post','exports','/:id/interactions','/describe'];(function(_0x22d9a2,_0x1d7553){const _0x54e12a=function(_0x48a987){while(--_0x48a987){_0x22d9a2['push'](_0x22d9a2['shift']());}};_0x54e12a(++_0x1d7553);}(a561_0x54e1,0x1a7));const a561_0x48a9=function(_0x22d9a2,_0x1d7553){_0x22d9a2=_0x22d9a2-0xfe;let _0x54e12a=a561_0x54e1[_0x22d9a2];return _0x54e12a;};const a561_0x38c86e=a561_0x48a9;'use strict';const express=require(a561_0x38c86e(0xfe)),router=express['Router'](),auth=require(a561_0x38c86e(0x106)),controller=require(a561_0x38c86e(0x10d));router[a561_0x38c86e(0x103)]('/',auth[a561_0x38c86e(0x10f)](),controller[a561_0x38c86e(0x101)]),router['get'](a561_0x38c86e(0x116),auth[a561_0x38c86e(0x10f)](),controller[a561_0x38c86e(0x105)]),router[a561_0x38c86e(0x103)](a561_0x38c86e(0x11d),auth[a561_0x38c86e(0x10f)](),controller[a561_0x38c86e(0x110)]),router['get'](a561_0x38c86e(0x117),auth[a561_0x38c86e(0x10f)](),controller[a561_0x38c86e(0x11c)]),router[a561_0x38c86e(0x103)](a561_0x38c86e(0x108),auth[a561_0x38c86e(0x10f)](),controller[a561_0x38c86e(0x11a)]),router[a561_0x38c86e(0x103)](a561_0x38c86e(0x11b),auth[a561_0x38c86e(0x10f)](),controller['getApplications']),router[a561_0x38c86e(0x103)](a561_0x38c86e(0x115),auth[a561_0x38c86e(0x10f)](),controller[a561_0x38c86e(0x111)]),router['get'](a561_0x38c86e(0x10e),auth[a561_0x38c86e(0x10f)](),controller[a561_0x38c86e(0x119)]),router[a561_0x38c86e(0x113)]('/',auth[a561_0x38c86e(0x10f)](),controller[a561_0x38c86e(0x118)]),router[a561_0x38c86e(0x113)](a561_0x38c86e(0x117),auth[a561_0x38c86e(0x10f)](),controller[a561_0x38c86e(0x104)]),router['post'](a561_0x38c86e(0x108),auth[a561_0x38c86e(0x10f)](),controller['addAnswer']),router[a561_0x38c86e(0x113)]('/:id/notify',controller['notify']),router[a561_0x38c86e(0x113)]('/:id/applications',auth['isAuthenticated'](),controller['addApplications']),router['post'](a561_0x38c86e(0x10e),auth[a561_0x38c86e(0x10f)](),controller[a561_0x38c86e(0x112)]),router[a561_0x38c86e(0x113)](a561_0x38c86e(0x107),auth[a561_0x38c86e(0x10f)](),controller['send']),router[a561_0x38c86e(0xff)](a561_0x38c86e(0x11d),auth[a561_0x38c86e(0x10f)](),controller[a561_0x38c86e(0x102)]),router['delete'](a561_0x38c86e(0x11d),auth[a561_0x38c86e(0x10f)](),controller[a561_0x38c86e(0x109)]),router[a561_0x38c86e(0x10c)]('/:id/dispositions',auth['isAuthenticated'](),controller[a561_0x38c86e(0x100)]),router[a561_0x38c86e(0x10c)]('/:id/canned_answers',auth[a561_0x38c86e(0x10f)](),controller[a561_0x38c86e(0x10b)]),router[a561_0x38c86e(0x10c)](a561_0x38c86e(0x10e),auth[a561_0x38c86e(0x10f)](),controller[a561_0x38c86e(0x10a)]),module[a561_0x38c86e(0x114)]=router; \ No newline at end of file +const a561_0x274f=['delete','./openchannelAccount.controller','/:id/notify','get','update','exports','/:id/applications','/:id','removeAgents','put','Router','/:id/users','/describe','send','destroy','addAgents','notify','addDisposition','../../components/auth/service','getDispositions','removeAnswers','addApplications','/:id/send','getAgents','getAnswers','addAnswer','index','show','post','isAuthenticated','/:id/canned_answers','getApplications','getInteractions','/:id/dispositions','express','/:id/interactions','describe'];(function(_0x5dffb2,_0x12fab5){const _0x274f56=function(_0x1e6050){while(--_0x1e6050){_0x5dffb2['push'](_0x5dffb2['shift']());}};_0x274f56(++_0x12fab5);}(a561_0x274f,0x64));const a561_0x1e60=function(_0x5dffb2,_0x12fab5){_0x5dffb2=_0x5dffb2-0x194;let _0x274f56=a561_0x274f[_0x5dffb2];return _0x274f56;};const a561_0x1abbf7=a561_0x1e60;'use strict';const express=require(a561_0x1abbf7(0x19c)),router=express[a561_0x1abbf7(0x1a9)](),auth=require(a561_0x1abbf7(0x1b1)),controller=require(a561_0x1abbf7(0x1a0));router[a561_0x1abbf7(0x1a2)]('/',auth['isAuthenticated'](),controller[a561_0x1abbf7(0x194)]),router[a561_0x1abbf7(0x1a2)](a561_0x1abbf7(0x1ab),auth[a561_0x1abbf7(0x197)](),controller[a561_0x1abbf7(0x19e)]),router[a561_0x1abbf7(0x1a2)](a561_0x1abbf7(0x1a6),auth[a561_0x1abbf7(0x197)](),controller[a561_0x1abbf7(0x195)]),router['get'](a561_0x1abbf7(0x19b),auth[a561_0x1abbf7(0x197)](),controller[a561_0x1abbf7(0x1b2)]),router[a561_0x1abbf7(0x1a2)](a561_0x1abbf7(0x198),auth[a561_0x1abbf7(0x197)](),controller[a561_0x1abbf7(0x1b7)]),router[a561_0x1abbf7(0x1a2)](a561_0x1abbf7(0x1a5),auth[a561_0x1abbf7(0x197)](),controller[a561_0x1abbf7(0x199)]),router['get'](a561_0x1abbf7(0x19d),auth[a561_0x1abbf7(0x197)](),controller[a561_0x1abbf7(0x19a)]),router[a561_0x1abbf7(0x1a2)](a561_0x1abbf7(0x1aa),auth['isAuthenticated'](),controller[a561_0x1abbf7(0x1b6)]),router[a561_0x1abbf7(0x196)]('/',auth[a561_0x1abbf7(0x197)](),controller['create']),router[a561_0x1abbf7(0x196)](a561_0x1abbf7(0x19b),auth[a561_0x1abbf7(0x197)](),controller[a561_0x1abbf7(0x1b0)]),router[a561_0x1abbf7(0x196)](a561_0x1abbf7(0x198),auth[a561_0x1abbf7(0x197)](),controller[a561_0x1abbf7(0x1b8)]),router[a561_0x1abbf7(0x196)](a561_0x1abbf7(0x1a1),controller[a561_0x1abbf7(0x1af)]),router['post'](a561_0x1abbf7(0x1a5),auth[a561_0x1abbf7(0x197)](),controller[a561_0x1abbf7(0x1b4)]),router['post'](a561_0x1abbf7(0x1aa),auth[a561_0x1abbf7(0x197)](),controller[a561_0x1abbf7(0x1ae)]),router[a561_0x1abbf7(0x196)](a561_0x1abbf7(0x1b5),auth['isAuthenticated'](),controller[a561_0x1abbf7(0x1ac)]),router[a561_0x1abbf7(0x1a8)](a561_0x1abbf7(0x1a6),auth[a561_0x1abbf7(0x197)](),controller[a561_0x1abbf7(0x1a3)]),router[a561_0x1abbf7(0x19f)](a561_0x1abbf7(0x1a6),auth[a561_0x1abbf7(0x197)](),controller[a561_0x1abbf7(0x1ad)]),router['delete'](a561_0x1abbf7(0x19b),auth[a561_0x1abbf7(0x197)](),controller['removeDispositions']),router[a561_0x1abbf7(0x19f)](a561_0x1abbf7(0x198),auth[a561_0x1abbf7(0x197)](),controller[a561_0x1abbf7(0x1b3)]),router['delete'](a561_0x1abbf7(0x1aa),auth['isAuthenticated'](),controller[a561_0x1abbf7(0x1a7)]),module[a561_0x1abbf7(0x1a4)]=router; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.attributes.js b/server/api/openchannelAccount/openchannelAccount.attributes.js index 892db6b..69205ec 100644 --- a/server/api/openchannelAccount/openchannelAccount.attributes.js +++ b/server/api/openchannelAccount/openchannelAccount.attributes.js @@ -1 +1 @@ -const a562_0x46da=['attributes','sequelize','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','exports','INTEGER','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','STRING','setDataValue','BOOLEAN','generate','randomstring','name'];(function(_0x4bdc4f,_0x2cb1a7){const _0x46da0c=function(_0x1ffe6c){while(--_0x1ffe6c){_0x4bdc4f['push'](_0x4bdc4f['shift']());}};_0x46da0c(++_0x2cb1a7);}(a562_0x46da,0x1e7));const a562_0x1ffe=function(_0x4bdc4f,_0x2cb1a7){_0x4bdc4f=_0x4bdc4f-0x168;let _0x46da0c=a562_0x46da[_0x4bdc4f];return _0x46da0c;};const a562_0x3b33a8=a562_0x1ffe;'use strict';const {DataTypes}=require(a562_0x3b33a8(0x16e)),rs=require(a562_0x3b33a8(0x16b)),attributes={'name':{'type':DataTypes[a562_0x3b33a8(0x173)],'unique':a562_0x3b33a8(0x16c),'allowNull':![]},'description':{'type':DataTypes[a562_0x3b33a8(0x173)]},'token':{'type':DataTypes['STRING'],'defaultValue':function(){const _0x3a2e10=a562_0x3b33a8;return rs[_0x3a2e10(0x16a)]();}},'replyUri':{'type':DataTypes[a562_0x3b33a8(0x173)],'validate':{'isUrl':!![]}},'key':{'type':DataTypes['STRING'],'allowNull':![]},'notificationTemplate':{'type':DataTypes['TEXT'],'defaultValue':function(){const _0x22d07b=a562_0x3b33a8;return _0x22d07b(0x172);}},'notificationSound':{'type':DataTypes[a562_0x3b33a8(0x169)],'defaultValue':!![]},'notificationShake':{'type':DataTypes[a562_0x3b33a8(0x169)],'defaultValue':![]},'waitForTheAssignedAgent':{'type':DataTypes[a562_0x3b33a8(0x171)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'mapKey':{'type':DataTypes[a562_0x3b33a8(0x173)]},'queueTransfer':{'type':DataTypes[a562_0x3b33a8(0x169)],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes[a562_0x3b33a8(0x171)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes[a562_0x3b33a8(0x169)],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes[a562_0x3b33a8(0x171)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':DataTypes[a562_0x3b33a8(0x171)],'allowNull':!![],'defaultValue':null,'comment':a562_0x3b33a8(0x16f)},'mandatoryDisposition':{'type':DataTypes[a562_0x3b33a8(0x169)],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x10b521){const _0xa1f9aa=a562_0x3b33a8;if(!_0x10b521)this[_0xa1f9aa(0x168)]('mandatoryDispositionPauseId',null);this[_0xa1f9aa(0x168)]('mandatoryDisposition',_0x10b521);}}};module[a562_0x3b33a8(0x170)][a562_0x3b33a8(0x16d)]=attributes; \ No newline at end of file +const a562_0x2a05=['BOOLEAN','name','exports','mandatoryDispositionPauseId','INTEGER','generate','TEXT','randomstring','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','STRING','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'];(function(_0x4c22c4,_0x22b741){const _0x2a056f=function(_0x3ca268){while(--_0x3ca268){_0x4c22c4['push'](_0x4c22c4['shift']());}};_0x2a056f(++_0x22b741);}(a562_0x2a05,0x179));const a562_0x3ca2=function(_0x4c22c4,_0x22b741){_0x4c22c4=_0x4c22c4-0x121;let _0x2a056f=a562_0x2a05[_0x4c22c4];return _0x2a056f;};const a562_0x47169e=a562_0x3ca2;'use strict';const {DataTypes}=require('sequelize'),rs=require(a562_0x47169e(0x123)),attributes={'name':{'type':DataTypes['STRING'],'unique':a562_0x47169e(0x129),'allowNull':![]},'description':{'type':DataTypes[a562_0x47169e(0x126)]},'token':{'type':DataTypes[a562_0x47169e(0x126)],'defaultValue':function(){const _0x342d13=a562_0x47169e;return rs[_0x342d13(0x121)]();}},'replyUri':{'type':DataTypes[a562_0x47169e(0x126)],'validate':{'isUrl':!![]}},'key':{'type':DataTypes[a562_0x47169e(0x126)],'allowNull':![]},'notificationTemplate':{'type':DataTypes[a562_0x47169e(0x122)],'defaultValue':function(){const _0x1b5658=a562_0x47169e;return _0x1b5658(0x125);}},'notificationSound':{'type':DataTypes[a562_0x47169e(0x128)],'defaultValue':!![]},'notificationShake':{'type':DataTypes[a562_0x47169e(0x128)],'defaultValue':![]},'waitForTheAssignedAgent':{'type':DataTypes[a562_0x47169e(0x12c)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'mapKey':{'type':DataTypes['STRING']},'queueTransfer':{'type':DataTypes[a562_0x47169e(0x128)],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes[a562_0x47169e(0x128)],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes[a562_0x47169e(0x12c)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':DataTypes[a562_0x47169e(0x12c)],'allowNull':!![],'defaultValue':null,'comment':a562_0x47169e(0x127)},'mandatoryDisposition':{'type':DataTypes[a562_0x47169e(0x128)],'defaultValue':![],'comment':a562_0x47169e(0x124),'set':function(_0x3f55e4){const _0x396ea9=a562_0x47169e;if(!_0x3f55e4)this['setDataValue'](_0x396ea9(0x12b),null);this['setDataValue']('mandatoryDisposition',_0x3f55e4);}}};module[a562_0x47169e(0x12a)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.controller.js b/server/api/openchannelAccount/openchannelAccount.controller.js index 7ecdc58..8f868a8 100644 --- a/server/api/openchannelAccount/openchannelAccount.controller.js +++ b/server/api/openchannelAccount/openchannelAccount.controller.js @@ -1 +1 @@ -const a563_0x546b=['lastName','findAll','Messages','waitForTheAssignedAgent','json','where','AttachmentId','Pause','Unable\x20to\x20retrieve\x20the\x20current\x20user','nolimit','model','updatedAt','threadId','Applications','getDispositions','request','name','bulkCreate','isNil','keys','CmList','../../rediscache','catch','sendStatus','EventManager','filters','set','includeAll','status','OpenchannelMessage','includes','findOne','rawAttributes','sort','difference','update','mapKey','error','emit','undefined','describe','omit','result','code','length','removeAgents','client','removeAnswers','CannedAnswer','startRouting','message','OpenchannelApplication','stack','map','api','intersection','../../components/parsers/qs','getAgents','OpenchannelAccount,\x20%s,\x20%s,\x20%s','DESC','CompanyId','mandatoryDispositionPause','isArray','type','ids','internal','color','getInteractions','send','stringify','createdAt','from','debug','OpenchannelAccounts','addApplications','contact','account','out','sequelize','Contact','removeDispositions','userOpenchannelAccount:remove','openchannel','attributes','user','push','addDisposition','fields','agent','fieldName','query','addAgents','http','List','order','autoclose','VIRTUAL','register','index','User','params','UserProfileResource','create','rows','destroy','userProfileId','Tags','ListId','notify','unshift','Content-Range','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Tag','Start','*,*,*,*','filter','tag','info','offset','applications','Contacts','Disposition','findAndCountAll','messageId','interaction','UserId','priority','OpenchannelAccount','then','../../mysqldb','limit','./openchannelAccount.socket','include','end','get','close','addAnswer','ContactId','count','getAnswers','OpenchannelAccount,\x20%s,\x20%s','../../config/logger','jayson/promise','pick','options','lodash','merge','CmContact','like','externalUrl','getApplications','request\x20sent','transaction','OpenchannelAccountId','body','OpenchannelInteraction'];(function(_0x303f9f,_0x55cc3f){const _0x546bf7=function(_0x450195){while(--_0x450195){_0x303f9f['push'](_0x303f9f['shift']());}};_0x546bf7(++_0x55cc3f);}(a563_0x546b,0x178));const a563_0x4501=function(_0x303f9f,_0x55cc3f){_0x303f9f=_0x303f9f-0x89;let _0x546bf7=a563_0x546b[_0x303f9f];return _0x546bf7;};const a563_0x475f7b=a563_0x4501;'use strict';const _=require(a563_0x475f7b(0xda)),qs=require(a563_0x475f7b(0x11d)),logger=require(a563_0x475f7b(0xd6))(a563_0x475f7b(0x11b)),{getSocket}=require(a563_0x475f7b(0xfa)),socket=getSocket(),{db}=require(a563_0x475f7b(0xca)),{Op,ValidationError}=require(a563_0x475f7b(0x97));require(a563_0x475f7b(0xcc))[a563_0x475f7b(0xaa)](socket);const jayson=require(a563_0x475f7b(0xd7)),client=jayson['client']['http']({'port':0x232c}),client9002=jayson[a563_0x475f7b(0x113)][a563_0x475f7b(0xa5)]({'port':0x232a});function respondWithRpcPromise(_0x48e247,_0x26b08f,_0x455238,_0x12c2c3){return new Promise(function(_0x59eef1,_0xc93dce){const _0x444914=a563_0x4501,_0x1d841d=_0x12c2c3||client;return _0x1d841d[_0x444914(0xf4)](_0x48e247,_0x455238)[_0x444914(0xc9)](function(_0x35a9d8){const _0xcb6d6=_0x444914;logger[_0xcb6d6(0xbe)](_0xcb6d6(0xd5),_0x26b08f,_0xcb6d6(0xe0)),logger[_0xcb6d6(0x91)](_0xcb6d6(0x11f),_0x26b08f,_0xcb6d6(0xe0),JSON[_0xcb6d6(0x8e)](_0x35a9d8));if(_0x35a9d8['error']){if(_0x35a9d8[_0xcb6d6(0x10a)][_0xcb6d6(0x110)]===0x1f4)return logger[_0xcb6d6(0x10a)](_0xcb6d6(0xd5),_0x26b08f,_0x35a9d8[_0xcb6d6(0x10a)][_0xcb6d6(0x117)]),_0xc93dce(_0x35a9d8[_0xcb6d6(0x10a)]['message']);return logger[_0xcb6d6(0x10a)](_0xcb6d6(0xd5),_0x26b08f,_0x35a9d8[_0xcb6d6(0x10a)][_0xcb6d6(0x117)]),_0x59eef1(_0x35a9d8[_0xcb6d6(0x10a)]['message']);}else logger[_0xcb6d6(0xbe)](_0xcb6d6(0xd5),_0x26b08f,_0xcb6d6(0xe0)),_0x59eef1(_0x35a9d8[_0xcb6d6(0x10f)]['message']);})[_0x444914(0xfb)](function(_0x1717ee){const _0x2f6b07=_0x444914;logger[_0x2f6b07(0x10a)]('OpenchannelAccount,\x20%s,\x20%s',_0x26b08f,_0x1717ee),_0xc93dce(_0x1717ee);});});}function respondWithStatusCode(_0x466717,_0x247123){return _0x247123=_0x247123||0xcc,function(_0xd2f59){const _0x316da0=a563_0x4501;if(_0xd2f59)return _0x466717['sendStatus'](_0x247123);return _0x466717['status'](_0x247123)[_0x316da0(0xce)]();};}function respondWithResult(_0x15bfc7,_0x97a7f2){return _0x97a7f2=_0x97a7f2||0xc8,function(_0x432a5b){const _0x5a3d2f=a563_0x4501;if(_0x432a5b)return _0x15bfc7[_0x5a3d2f(0x101)](_0x97a7f2)[_0x5a3d2f(0xe9)](_0x432a5b);};}function respondWithFilteredResult(_0xa6de43,_0x14827a){return function(_0x3e0c75){const _0x3c97ec=a563_0x4501;if(_0x3e0c75){const _0x4890a2=_0x3e0c75[_0x3c97ec(0xd3)],_0x4a7315=_0x14827a[_0x3c97ec(0xbf)];let _0x53bc3d=_0x14827a[_0x3c97ec(0xbf)]+_0x14827a['limit'],_0x4a3128;return _0x53bc3d>=_0x4890a2?(_0x53bc3d=_0x4890a2,_0x4a3128=0xc8):_0x4a3128=0xce,_0xa6de43['status'](_0x4a3128),_0xa6de43[_0x3c97ec(0xff)](_0x3c97ec(0xb7),_0x4a7315+'-'+_0x53bc3d+'/'+_0x4890a2)['json'](_0x3e0c75);}return null;};}function saveUpdates(_0x5374b2){return function(_0x52ffe0){const _0x5223a5=a563_0x4501;if(_0x52ffe0)return _0x52ffe0[_0x5223a5(0x108)](_0x5374b2)[_0x5223a5(0xc9)](function(_0x3fc834){return _0x3fc834;});return null;};}function removeEntity(_0x149b97){return function(_0xd04851){const _0x43d6ce=a563_0x4501;if(_0xd04851)return _0xd04851[_0x43d6ce(0xb1)]()[_0x43d6ce(0xc9)](function(){const _0x4e9ce2=_0x43d6ce,_0x3aa0b0=_0xd04851[_0x4e9ce2(0xcf)]({'plain':!![]}),_0x5a97e5=_0x4e9ce2(0x92);return db[_0x4e9ce2(0xae)][_0x4e9ce2(0xb1)]({'where':{'type':_0x5a97e5,'resourceId':_0x3aa0b0['id']}})[_0x4e9ce2(0xc9)](function(){return _0xd04851;});})[_0x43d6ce(0xc9)](function(){const _0x4ca40a=_0x43d6ce;_0x149b97[_0x4ca40a(0x101)](0xcc)[_0x4ca40a(0xce)]();});};}function handleEntityNotFound(_0x1a6363){return function(_0x53171d){const _0x9d3a11=a563_0x4501;return!_0x53171d&&_0x1a6363[_0x9d3a11(0xfc)](0x194),_0x53171d;};}function handleError(_0x151214,_0xb83da5){return _0xb83da5=_0xb83da5||0x1f4,function(_0x3f9342){const _0x202507=a563_0x4501;logger[_0x202507(0x10a)](_0x3f9342[_0x202507(0x119)]),_0x3f9342[_0x202507(0xf5)]&&delete _0x3f9342[_0x202507(0xf5)],_0x151214[_0x202507(0x101)](_0xb83da5)[_0x202507(0x8d)](_0x3f9342);};}exports[a563_0x475f7b(0xab)]=function(_0x2c12fa,_0x241ced){const _0x1f283c=a563_0x475f7b;let _0x3bfeaa={'include':[{'model':db[_0x1f283c(0xec)],'as':_0x1f283c(0x122)}]};const _0x5a66f2={},_0x2819bf={'count':0x0,'rows':[]},_0x22a7a0=_[_0x1f283c(0x11a)](db[_0x1f283c(0xc8)][_0x1f283c(0x105)],function(_0x37ad63){const _0x3c5016=_0x1f283c;return{'name':_0x37ad63[_0x3c5016(0xa2)],'type':_0x37ad63[_0x3c5016(0x124)]['key']};});_0x5a66f2[_0x1f283c(0xef)]=_[_0x1f283c(0x11a)](_0x22a7a0,_0x1f283c(0xf5)),_0x5a66f2['query']=_['keys'](_0x2c12fa[_0x1f283c(0xa3)]),_0x5a66f2[_0x1f283c(0xfe)]=_['intersection'](_0x5a66f2['model'],_0x5a66f2['query']),_0x3bfeaa[_0x1f283c(0x9c)]=_['intersection'](_0x5a66f2[_0x1f283c(0xef)],qs[_0x1f283c(0xa0)](_0x2c12fa[_0x1f283c(0xa3)][_0x1f283c(0xa0)])),_0x3bfeaa[_0x1f283c(0x9c)]=_0x3bfeaa[_0x1f283c(0x9c)][_0x1f283c(0x111)]?_0x3bfeaa['attributes']:_0x5a66f2['model'];typeof _0x2c12fa['query'][_0x1f283c(0xee)]===_0x1f283c(0x10c)&&(_0x3bfeaa[_0x1f283c(0xcb)]=qs['limit'](_0x2c12fa[_0x1f283c(0xa3)]['limit']),_0x3bfeaa[_0x1f283c(0xbf)]=qs[_0x1f283c(0xbf)](_0x2c12fa[_0x1f283c(0xa3)][_0x1f283c(0xbf)]));_0x3bfeaa['order']=qs[_0x1f283c(0x106)](_0x2c12fa[_0x1f283c(0xa3)][_0x1f283c(0x106)]),_0x3bfeaa[_0x1f283c(0xea)]=qs[_0x1f283c(0xfe)](_[_0x1f283c(0xd8)](_0x2c12fa[_0x1f283c(0xa3)],_0x5a66f2[_0x1f283c(0xfe)]),_0x22a7a0);_0x2c12fa[_0x1f283c(0xa3)][_0x1f283c(0xbc)]&&(_0x3bfeaa[_0x1f283c(0xea)]=_[_0x1f283c(0xdb)](_0x3bfeaa[_0x1f283c(0xea)],{[Op['or']]:_['map'](_0x22a7a0,function(_0x105e7b){const _0x1aacbd=_0x1f283c;if(_0x105e7b[_0x1aacbd(0x124)]!==_0x1aacbd(0xa9)){const _0x23a292={};return _0x23a292[_0x105e7b[_0x1aacbd(0xf5)]]={[Op[_0x1aacbd(0xdd)]]:'%'+_0x2c12fa[_0x1aacbd(0xa3)]['filter']+'%'},_0x23a292;}})}));_0x3bfeaa=_[_0x1f283c(0xdb)]({},_0x3bfeaa,_0x2c12fa[_0x1f283c(0xd9)]);const _0x6516ae={'where':_0x3bfeaa['where']};return db[_0x1f283c(0xc8)]['count'](_0x6516ae)['then'](function(_0xadbb9c){const _0x21ff41=_0x1f283c;return _0x2819bf[_0x21ff41(0xd3)]=_0xadbb9c,_0x2c12fa[_0x21ff41(0xa3)]['includeAll']&&(_0x3bfeaa[_0x21ff41(0xcd)]=[{'all':!![]}]),db[_0x21ff41(0xc8)]['findAll'](_0x3bfeaa);})[_0x1f283c(0xc9)](function(_0xc78b17){const _0x1030a3=_0x1f283c;return _0x2819bf[_0x1030a3(0xb0)]=_0xc78b17,_0x2819bf;})[_0x1f283c(0xc9)](respondWithFilteredResult(_0x241ced,_0x3bfeaa))[_0x1f283c(0xfb)](handleError(_0x241ced,null));},exports['show']=function(_0x1ade9c,_0x147cc1){const _0x19675e=a563_0x475f7b;let _0x352ba0={'raw':![],'where':{'id':_0x1ade9c[_0x19675e(0xad)]['id']},'include':[{'model':db[_0x19675e(0xec)],'as':_0x19675e(0x122)}]};const _0x529c9a={};return _0x529c9a[_0x19675e(0xef)]=_[_0x19675e(0xf8)](db['OpenchannelAccount'][_0x19675e(0x105)]),_0x529c9a[_0x19675e(0xa3)]=_[_0x19675e(0xf8)](_0x1ade9c[_0x19675e(0xa3)]),_0x529c9a[_0x19675e(0xfe)]=_[_0x19675e(0x11c)](_0x529c9a[_0x19675e(0xef)],_0x529c9a[_0x19675e(0xa3)]),_0x352ba0[_0x19675e(0x9c)]=_['intersection'](_0x529c9a[_0x19675e(0xef)],qs[_0x19675e(0xa0)](_0x1ade9c[_0x19675e(0xa3)]['fields'])),_0x352ba0[_0x19675e(0x9c)]=_0x352ba0[_0x19675e(0x9c)][_0x19675e(0x111)]?_0x352ba0[_0x19675e(0x9c)]:_0x529c9a[_0x19675e(0xef)],_0x1ade9c[_0x19675e(0xa3)][_0x19675e(0x100)]&&(_0x352ba0['include']=[{'all':!![]}]),_0x352ba0=_[_0x19675e(0xdb)]({},_0x352ba0,_0x1ade9c[_0x19675e(0xd9)]),db[_0x19675e(0xc8)][_0x19675e(0x104)](_0x352ba0)[_0x19675e(0xc9)](handleEntityNotFound(_0x147cc1,null))[_0x19675e(0xc9)](respondWithResult(_0x147cc1,null))[_0x19675e(0xfb)](handleError(_0x147cc1,null));},exports[a563_0x475f7b(0xaf)]=function(_0x1bab16,_0xfa4c60){const _0x26042c=a563_0x475f7b;return db[_0x26042c(0xc8)][_0x26042c(0xaf)](_0x1bab16[_0x26042c(0xe3)],{})['then'](function(_0x38142d){const _0x31d99d=_0x26042c,_0x2f2ede=_0x1bab16[_0x31d99d(0x9d)][_0x31d99d(0xcf)]({'plain':!![]});if(!_0x2f2ede)throw new Error(_0x31d99d(0xed));if(_0x2f2ede['role']===_0x31d99d(0x9d)){const _0x130a0a=_0x38142d['get']({'plain':!![]}),_0x43ebe2=_0x31d99d(0x92);return db['UserProfileSection'][_0x31d99d(0x104)]({'where':{'name':_0x43ebe2,'userProfileId':_0x2f2ede[_0x31d99d(0xb2)]},'raw':!![]})['then'](function(_0x1618b3){const _0x421521=_0x31d99d;return _0x1618b3&&_0x1618b3['autoAssociation']===0x0?db[_0x421521(0xae)]['create']({'name':_0x130a0a[_0x421521(0xf5)],'resourceId':_0x130a0a['id'],'type':_0x1618b3[_0x421521(0xf5)],'sectionId':_0x1618b3['id']},{})['then'](function(){return _0x38142d;}):_0x38142d;})[_0x31d99d(0xfb)](function(_0x2a396b){const _0x4b5ef2=_0x31d99d;logger['error'](_0x4b5ef2(0xb8),_0x2a396b);throw _0x2a396b;});}return _0x38142d;})['then'](respondWithResult(_0xfa4c60,0xc9))[_0x26042c(0xfb)](handleError(_0xfa4c60,null));},exports[a563_0x475f7b(0x108)]=function(_0x1e3a13,_0x1e30da){const _0x3bed42=a563_0x475f7b;return _0x1e3a13['body']['id']&&delete _0x1e3a13[_0x3bed42(0xe3)]['id'],db['OpenchannelAccount'][_0x3bed42(0x104)]({'where':{'id':_0x1e3a13[_0x3bed42(0xad)]['id']},'include':[{'model':db[_0x3bed42(0xec)],'as':_0x3bed42(0x122)}]})[_0x3bed42(0xc9)](handleEntityNotFound(_0x1e30da,null))[_0x3bed42(0xc9)](saveUpdates(_0x1e3a13['body'],null))['then'](respondWithResult(_0x1e30da,null))[_0x3bed42(0xfb)](handleError(_0x1e30da,null));},exports[a563_0x475f7b(0xb1)]=function(_0x141d7a,_0x3730c8){const _0x1331cb=a563_0x475f7b;return db['OpenchannelAccount']['findOne']({'where':{'id':_0x141d7a[_0x1331cb(0xad)]['id']}})[_0x1331cb(0xc9)](handleEntityNotFound(_0x3730c8,null))[_0x1331cb(0xc9)](removeEntity(_0x3730c8,null))[_0x1331cb(0xfb)](handleError(_0x3730c8,null));},exports[a563_0x475f7b(0x10d)]=function(_0x5e192a,_0x318174){const _0x2d7e81=a563_0x475f7b;return db[_0x2d7e81(0xc8)]['describe']()[_0x2d7e81(0xc9)](respondWithResult(_0x318174,null))[_0x2d7e81(0xfb)](handleError(_0x318174,null));},exports[a563_0x475f7b(0x9f)]=function(_0x2235c3,_0x53d980){const _0x2485d1=a563_0x475f7b;return _0x2235c3['body']['id']&&delete _0x2235c3['body']['id'],db['OpenchannelAccount']['findOne']({'where':{'id':_0x2235c3[_0x2485d1(0xad)]['id']}})['then'](handleEntityNotFound(_0x53d980,null))['then'](function(_0x105f1a){const _0xa7bdbf=_0x2485d1;if(_0x105f1a)return _0x2235c3[_0xa7bdbf(0xe3)][_0xa7bdbf(0xe2)]=_0x105f1a['id'],db[_0xa7bdbf(0xc2)][_0xa7bdbf(0xaf)](_0x2235c3[_0xa7bdbf(0xe3)]);})['then'](respondWithResult(_0x53d980,null))[_0x2485d1(0xfb)](handleError(_0x53d980,null));},exports[a563_0x475f7b(0xf3)]=function(_0x5037da,_0x37cecd){const _0x5e9171=a563_0x475f7b;let _0x4ca7e3={'raw':![],'where':{}};const _0x309b7c={},_0x455a45={'count':0x0,'rows':[]};return db['OpenchannelAccount'][_0x5e9171(0x104)]({'where':{'id':_0x5037da[_0x5e9171(0xad)]['id']}})[_0x5e9171(0xc9)](handleEntityNotFound(_0x37cecd,null))[_0x5e9171(0xc9)](function(_0x29dcdc){const _0xf2c20c=_0x5e9171;if(_0x29dcdc)return _0x309b7c[_0xf2c20c(0xef)]=_[_0xf2c20c(0xf8)](db['Disposition'][_0xf2c20c(0x105)]),_0x309b7c[_0xf2c20c(0xa3)]=_[_0xf2c20c(0xf8)](_0x5037da[_0xf2c20c(0xa3)]),_0x309b7c[_0xf2c20c(0xfe)]=_[_0xf2c20c(0x11c)](_0x309b7c[_0xf2c20c(0xef)],_0x309b7c[_0xf2c20c(0xa3)]),_0x4ca7e3['attributes']=_['intersection'](_0x309b7c['model'],qs[_0xf2c20c(0xa0)](_0x5037da[_0xf2c20c(0xa3)][_0xf2c20c(0xa0)])),_0x4ca7e3[_0xf2c20c(0x9c)]=_0x4ca7e3[_0xf2c20c(0x9c)][_0xf2c20c(0x111)]?_0x4ca7e3['attributes']:_0x309b7c[_0xf2c20c(0xef)],typeof _0x5037da[_0xf2c20c(0xa3)][_0xf2c20c(0xee)]==='undefined'&&(_0x4ca7e3[_0xf2c20c(0xcb)]=qs[_0xf2c20c(0xcb)](_0x5037da['query'][_0xf2c20c(0xcb)]),_0x4ca7e3[_0xf2c20c(0xbf)]=qs['offset'](_0x5037da[_0xf2c20c(0xa3)][_0xf2c20c(0xbf)])),_0x4ca7e3['order']=qs[_0xf2c20c(0x106)](_0x5037da[_0xf2c20c(0xa3)][_0xf2c20c(0x106)]),_0x4ca7e3[_0xf2c20c(0xea)]=qs['filters'](_[_0xf2c20c(0xd8)](_0x5037da[_0xf2c20c(0xa3)],_0x309b7c[_0xf2c20c(0xfe)])),_0x4ca7e3[_0xf2c20c(0xea)][_0xf2c20c(0xe2)]=_0x29dcdc['id'],_0x5037da[_0xf2c20c(0xa3)][_0xf2c20c(0xbc)]&&(_0x4ca7e3['where']=_['merge'](_0x4ca7e3[_0xf2c20c(0xea)],{[Op['or']]:_['map'](_0x4ca7e3[_0xf2c20c(0x9c)],function(_0x4cd7b6){const _0xd36e55=_0xf2c20c,_0x4eeba6={};return _0x4eeba6[_0x4cd7b6]={[Op[_0xd36e55(0xdd)]]:'%'+_0x5037da[_0xd36e55(0xa3)][_0xd36e55(0xbc)]+'%'},_0x4eeba6;})})),_0x4ca7e3=_[_0xf2c20c(0xdb)]({},_0x4ca7e3,_0x5037da[_0xf2c20c(0xd9)]),db[_0xf2c20c(0xc2)][_0xf2c20c(0xd3)]({'where':_0x4ca7e3[_0xf2c20c(0xea)]})[_0xf2c20c(0xc9)](function(_0x27a775){const _0x2db1cb=_0xf2c20c;return _0x455a45[_0x2db1cb(0xd3)]=_0x27a775,_0x5037da[_0x2db1cb(0xa3)][_0x2db1cb(0x100)]&&(_0x4ca7e3[_0x2db1cb(0xcd)]=[{'all':!![]}]),db[_0x2db1cb(0xc2)][_0x2db1cb(0xe6)](_0x4ca7e3);})[_0xf2c20c(0xc9)](function(_0xef1094){const _0x2bcdb6=_0xf2c20c;return _0x455a45[_0x2bcdb6(0xb0)]=_0xef1094,_0x455a45;});})['then'](respondWithFilteredResult(_0x37cecd,_0x4ca7e3))[_0x5e9171(0xfb)](handleError(_0x37cecd,null));},exports[a563_0x475f7b(0x99)]=function(_0x4da6d6,_0x315afe){const _0x514ed5=a563_0x475f7b;return db[_0x514ed5(0xc8)][_0x514ed5(0x104)]({'where':{'id':_0x4da6d6['params']['id']}})[_0x514ed5(0xc9)](handleEntityNotFound(_0x315afe,null))[_0x514ed5(0xc9)](function(_0x111f01){const _0x2e8521=_0x514ed5;if(_0x111f01)return _0x111f01['removeDispositions'](_0x4da6d6[_0x2e8521(0xa3)][_0x2e8521(0x89)]);})[_0x514ed5(0xc9)](respondWithStatusCode(_0x315afe,null))[_0x514ed5(0xfb)](handleError(_0x315afe,null));},exports[a563_0x475f7b(0xd1)]=function(_0x2069b2,_0xa92485){const _0x5d047c=a563_0x475f7b;return _0x2069b2[_0x5d047c(0xe3)]['id']&&delete _0x2069b2[_0x5d047c(0xe3)]['id'],db[_0x5d047c(0xc8)]['findOne']({'where':{'id':_0x2069b2[_0x5d047c(0xad)]['id']}})[_0x5d047c(0xc9)](handleEntityNotFound(_0xa92485,null))[_0x5d047c(0xc9)](function(_0x50c515){const _0x38563e=_0x5d047c;if(_0x50c515)return _0x2069b2[_0x38563e(0xe3)][_0x38563e(0xe2)]=_0x50c515['id'],db[_0x38563e(0x115)]['create'](_0x2069b2[_0x38563e(0xe3)]);})[_0x5d047c(0xc9)](respondWithResult(_0xa92485,null))[_0x5d047c(0xfb)](handleError(_0xa92485,null));},exports[a563_0x475f7b(0xd4)]=function(_0x1c17a9,_0x4f953b){const _0x40691e=a563_0x475f7b;let _0x199118={'raw':![],'where':{}};const _0x364205={},_0xbc6fe={'count':0x0,'rows':[]};return db['OpenchannelAccount'][_0x40691e(0x104)]({'where':{'id':_0x1c17a9[_0x40691e(0xad)]['id']}})[_0x40691e(0xc9)](handleEntityNotFound(_0x4f953b,null))[_0x40691e(0xc9)](function(_0x425897){const _0x22ad27=_0x40691e;if(_0x425897)return _0x364205['model']=_[_0x22ad27(0xf8)](db[_0x22ad27(0x115)][_0x22ad27(0x105)]),_0x364205[_0x22ad27(0xa3)]=_[_0x22ad27(0xf8)](_0x1c17a9[_0x22ad27(0xa3)]),_0x364205[_0x22ad27(0xfe)]=_[_0x22ad27(0x11c)](_0x364205[_0x22ad27(0xef)],_0x364205[_0x22ad27(0xa3)]),_0x199118[_0x22ad27(0x9c)]=_[_0x22ad27(0x11c)](_0x364205[_0x22ad27(0xef)],qs['fields'](_0x1c17a9[_0x22ad27(0xa3)][_0x22ad27(0xa0)])),_0x199118[_0x22ad27(0x9c)]=_0x199118['attributes']['length']?_0x199118['attributes']:_0x364205[_0x22ad27(0xef)],typeof _0x1c17a9['query']['nolimit']===_0x22ad27(0x10c)&&(_0x199118[_0x22ad27(0xcb)]=qs[_0x22ad27(0xcb)](_0x1c17a9[_0x22ad27(0xa3)][_0x22ad27(0xcb)]),_0x199118[_0x22ad27(0xbf)]=qs[_0x22ad27(0xbf)](_0x1c17a9[_0x22ad27(0xa3)][_0x22ad27(0xbf)])),_0x199118[_0x22ad27(0xa7)]=qs[_0x22ad27(0x106)](_0x1c17a9['query'][_0x22ad27(0x106)]),_0x199118[_0x22ad27(0xea)]=qs['filters'](_[_0x22ad27(0xd8)](_0x1c17a9['query'],_0x364205[_0x22ad27(0xfe)])),_0x199118[_0x22ad27(0xea)][_0x22ad27(0xe2)]=_0x425897['id'],_0x1c17a9[_0x22ad27(0xa3)][_0x22ad27(0xbc)]&&(_0x199118[_0x22ad27(0xea)]=_['merge'](_0x199118[_0x22ad27(0xea)],{[Op['or']]:_['map'](_0x199118['attributes'],function(_0x34b6af){const _0x35fbfa=_0x22ad27,_0x276d52={};return _0x276d52[_0x34b6af]={[Op['like']]:'%'+_0x1c17a9[_0x35fbfa(0xa3)][_0x35fbfa(0xbc)]+'%'},_0x276d52;})})),_0x199118=_[_0x22ad27(0xdb)]({},_0x199118,_0x1c17a9[_0x22ad27(0xd9)]),db[_0x22ad27(0x115)][_0x22ad27(0xd3)]({'where':_0x199118['where']})['then'](function(_0x1702a7){const _0x3276be=_0x22ad27;return _0xbc6fe[_0x3276be(0xd3)]=_0x1702a7,_0x1c17a9[_0x3276be(0xa3)][_0x3276be(0x100)]&&(_0x199118[_0x3276be(0xcd)]=[{'all':!![]}]),db['CannedAnswer'][_0x3276be(0xe6)](_0x199118);})[_0x22ad27(0xc9)](function(_0x39a643){const _0x226b38=_0x22ad27;return _0xbc6fe[_0x226b38(0xb0)]=_0x39a643,_0xbc6fe;});})[_0x40691e(0xc9)](respondWithFilteredResult(_0x4f953b,_0x199118))[_0x40691e(0xfb)](handleError(_0x4f953b,null));},exports[a563_0x475f7b(0x114)]=function(_0x2619ad,_0x5a8482){const _0x31bab4=a563_0x475f7b;return db[_0x31bab4(0xc8)][_0x31bab4(0x104)]({'where':{'id':_0x2619ad[_0x31bab4(0xad)]['id']}})[_0x31bab4(0xc9)](handleEntityNotFound(_0x5a8482,null))[_0x31bab4(0xc9)](function(_0x269617){const _0x3fd6e9=_0x31bab4;if(_0x269617)return _0x269617['removeAnswers'](_0x2619ad[_0x3fd6e9(0xa3)]['ids']);})[_0x31bab4(0xc9)](respondWithStatusCode(_0x5a8482,null))[_0x31bab4(0xfb)](handleError(_0x5a8482,null));},exports[a563_0x475f7b(0xb5)]=function(_0x4a5fec,_0x1185cb){const _0x41c496=a563_0x475f7b,_0x350f2b={'body':_0x4a5fec['body'],'channel':_0x41c496(0x9b)};let _0x1cf83a=[],_0x4cf3e0=[];const _0xa398eb={};let _0x26a801=![];return db[_0x41c496(0xdc)][_0x41c496(0x10d)]()[_0x41c496(0xc9)](function(_0x488860){const _0x54154e=_0x41c496;if(!_0x488860)throw new ValidationError('no\x20available\x20attributes');_0x1cf83a=_[_0x54154e(0x107)](_[_0x54154e(0xf8)](_0x488860),[_0x54154e(0x8f),_0x54154e(0xf0)]),_0x4cf3e0=_[_0x54154e(0x107)](_[_0x54154e(0xf8)](_0x488860),[_0x54154e(0x8f),_0x54154e(0xf0),_0x54154e(0x121),'ListId']);_0x4a5fec[_0x54154e(0xe3)]['id']&&delete _0x4a5fec['body']['id'];if(_[_0x54154e(0xf7)](_0x4a5fec['body'][_0x54154e(0x90)]))throw new ValidationError('from\x20is\x20mandatory');if(_[_0x54154e(0xf7)](_0x4a5fec[_0x54154e(0xe3)][_0x54154e(0xe3)])||_0x4a5fec['body']['body']==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x54154e(0xf7)](_0x4a5fec[_0x54154e(0xe3)][_0x54154e(0x109)]))throw new ValidationError('mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x4cf3e0);if(!_[_0x54154e(0x103)](_0x4cf3e0,_0x4a5fec[_0x54154e(0xe3)]['mapKey']))throw new ValidationError('mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x4cf3e0);_0xa398eb[_0x4a5fec[_0x54154e(0xe3)][_0x54154e(0x109)]]=_0x4a5fec[_0x54154e(0xe3)][_0x54154e(0x90)];})[_0x41c496(0xc9)](function(){const _0x20ee47=_0x41c496;return db['OpenchannelAccount'][_0x20ee47(0x104)]({'where':{'id':_0x4a5fec[_0x20ee47(0xad)]['id']},'include':[{'model':db['CmList'],'as':'List','include':[{'model':db[_0x20ee47(0xdc)],'as':_0x20ee47(0xc1),'where':_0xa398eb,'limit':0x1,'order':[[_0x20ee47(0xf0),'DESC']]}]},{'model':db[_0x20ee47(0x118)],'as':_0x20ee47(0xf2)}]});})[_0x41c496(0xc9)](handleEntityNotFound(_0x1185cb,null))[_0x41c496(0xc9)](function(_0x22de1a){const _0x1df7ad=_0x41c496;if(_0x22de1a&&_0x22de1a['List']){_0x350f2b[_0x1df7ad(0x95)]=_0x22de1a,_0x350f2b[_0x1df7ad(0xc0)]=_0x22de1a[_0x1df7ad(0xf2)],_0x350f2b['list']=_0x22de1a['List'],_0x350f2b[_0x1df7ad(0xc0)]=_['orderBy'](_0x350f2b[_0x1df7ad(0xc0)],['priority'],['asc']);_0x350f2b['account'][_0x1df7ad(0xf2)]&&delete _0x350f2b[_0x1df7ad(0x95)][_0x1df7ad(0xf2)];if(_0x350f2b['account'][_0x1df7ad(0xa6)]&&_0x350f2b[_0x1df7ad(0x95)]['List'][_0x1df7ad(0xc1)][_0x1df7ad(0x111)])return _0x350f2b[_0x1df7ad(0x95)][_0x1df7ad(0xa6)][_0x1df7ad(0xc1)][0x0];const _0x28e540=_['defaults'](_0x4a5fec['body'],{'firstName':_0x4a5fec[_0x1df7ad(0xe3)][_0x1df7ad(0x90)],'ListId':_0x22de1a[_0x1df7ad(0xb4)]});return _0x28e540[_0x4a5fec[_0x1df7ad(0xe3)][_0x1df7ad(0x109)]]=_0x4a5fec[_0x1df7ad(0xe3)]['from'],db[_0x1df7ad(0xdc)][_0x1df7ad(0xaf)](_0x28e540,{'fields':_0x1cf83a,'raw':!![]});}})[_0x41c496(0xc9)](handleEntityNotFound(_0x1185cb,null))[_0x41c496(0xc9)](function(_0x1ca868){const _0x139f71=_0x41c496;_0x350f2b['contact']=_0x1ca868;if(_0x1ca868){const _0x326292={'ContactId':_0x1ca868['id'],'OpenchannelAccountId':_0x4a5fec[_0x139f71(0xad)]['id'],'from':(_0x1ca868['firstName']||'')+'\x20'+(_0x1ca868[_0x139f71(0xe5)]||'')},_0x126fc5={'OpenchannelAccountId':_0x4a5fec[_0x139f71(0xad)]['id'],'closed':![]};if(_0x4a5fec[_0x139f71(0xe3)]['threadId'])return _0x126fc5[_0x139f71(0xf1)]=_0x4a5fec[_0x139f71(0xe3)][_0x139f71(0xf1)],db['OpenchannelInteraction']['findOne']({'where':_0x126fc5})['then'](function(_0x196557){const _0x52b616=_0x139f71;if(_0x196557)return[_0x196557,![]];return _0x326292[_0x52b616(0xf1)]=_0x4a5fec['body'][_0x52b616(0xf1)],_0x326292[_0x52b616(0xde)]=_0x4a5fec[_0x52b616(0xe3)][_0x52b616(0xde)],db[_0x52b616(0xe4)][_0x52b616(0xaf)](_0x326292)['then'](function(_0x101907){return[_0x101907,!![]];});});else _0x126fc5[_0x139f71(0xf1)]=null;return _0x126fc5[_0x139f71(0xd2)]=_0x1ca868['id'],db[_0x139f71(0xe4)][_0x139f71(0x104)]({'where':_0x126fc5})['then'](function(_0x467cfc){const _0x3ab45a=_0x139f71;if(_0x467cfc)return[_0x467cfc,![]];return db[_0x3ab45a(0xe4)][_0x3ab45a(0xaf)](_0x326292)['then'](function(_0x3ba484){return[_0x3ba484,!![]];});});}})[_0x41c496(0xc9)](function([_0xa8406,_0x3bf9b7]){const _0x351276=_0x41c496;if(_0xa8406){_0x26a801=_0x3bf9b7;if(!_0x3bf9b7){const _0x264cf0={'from':(_0x350f2b[_0x351276(0x94)]['firstName']||'')+'\x20'+(_0x350f2b[_0x351276(0x94)][_0x351276(0xe5)]||'')};return _0x4a5fec['body'][_0x351276(0xf1)]&&_0x4a5fec[_0x351276(0xe3)][_0x351276(0xc4)]&&_0x4a5fec[_0x351276(0xe3)][_0x351276(0xf1)]!=_0x4a5fec[_0x351276(0xe3)]['messageId']&&(_0x264cf0[_0x351276(0xf1)]=_0x4a5fec[_0x351276(0xe3)][_0x351276(0xc4)]),_0xa8406[_0x351276(0x108)](_0x264cf0);}else return _0xa8406;}})[_0x41c496(0xc9)](function(_0x18a73c){const _0x2ca709=_0x41c496;return _0x350f2b['interaction']=_0x18a73c[_0x2ca709(0xcf)]({'plain':!![]}),_0x350f2b[_0x2ca709(0xc5)]['created']=_0x26a801,_0x350f2b[_0x2ca709(0xc5)]['created']&&(_0x350f2b[_0x2ca709(0x95)][_0x2ca709(0xa8)]&&_0x350f2b[_0x2ca709(0xc0)][_0x2ca709(0x9e)]({'id':0x0,'priority':_0x350f2b[_0x2ca709(0xc0)][_0x2ca709(0x111)]+0x1,'app':_0x2ca709(0xd0),'appdata':'unmanaged','interval':_0x2ca709(0xbb)})),db[_0x2ca709(0x102)]['create']({'body':_0x4a5fec[_0x2ca709(0xe3)]['body'],'OpenchannelAccountId':_0x4a5fec['params']['id'],'OpenchannelInteractionId':_0x18a73c['id'],'direction':'in','ContactId':_0x350f2b['contact']['id'],'AttachmentId':_0x4a5fec['body'][_0x2ca709(0xeb)]});})[_0x41c496(0xc9)](function(_0x3a3048){const _0x34911d=_0x41c496;_0x350f2b[_0x34911d(0x117)]=_0x3a3048;if(_0x350f2b[_0x34911d(0xc5)][_0x34911d(0xc6)])return db[_0x34911d(0xac)][_0x34911d(0x104)]({'attributes':['id',_0x34911d(0xf5)],'where':{'id':_0x350f2b['interaction'][_0x34911d(0xc6)]}})['then'](function(_0x3ffc6c){const _0x556f11=_0x34911d;return _0x3ffc6c&&(_0x350f2b[_0x556f11(0xc0)][_0x556f11(0xb6)]({'id':0x0,'priority':0x0,'app':_0x556f11(0xa1),'appdata':_0x3ffc6c['name']+','+(_0x350f2b[_0x556f11(0x95)][_0x556f11(0xe8)]||0xa),'interval':_0x556f11(0xbb)}),_0x350f2b['forcedOwnership']=![]),respondWithRpcPromise(_0x556f11(0xba),_0x556f11(0x116),_0x350f2b);});return respondWithRpcPromise('Start',_0x34911d(0x116),_0x350f2b);})[_0x41c496(0xc9)](function(_0x3cad6f){const _0xb39a67=_0x41c496;return respondWithRpcPromise('EventManager',_0xb39a67(0xfd),{'event':_0xb39a67(0xb5),'message':_0x3cad6f},client9002),_0x3cad6f;})[_0x41c496(0xc9)](respondWithResult(_0x1185cb,null))[_0x41c496(0xfb)](handleError(_0x1185cb,null));},exports[a563_0x475f7b(0x93)]=function(_0x5a9db3,_0x89d238){const _0xf6c857=a563_0x475f7b;return db[_0xf6c857(0xc8)][_0xf6c857(0x104)]({'where':{'id':_0x5a9db3[_0xf6c857(0xad)]['id']}})['then'](handleEntityNotFound(_0x89d238,null))['then'](function(_0x50d890){const _0x2b3f1a=_0xf6c857;if(_0x50d890)return db[_0x2b3f1a(0x97)][_0x2b3f1a(0xe1)](function(_0xa0ecf2){const _0x3ff05c=_0x2b3f1a;return db[_0x3ff05c(0x118)][_0x3ff05c(0xb1)]({'where':{'OpenchannelAccountId':_0x5a9db3[_0x3ff05c(0xad)]['id']},'transaction':_0xa0ecf2})['then'](function(){const _0x47b678=_0x3ff05c,_0x42ac3a=_[_0x47b678(0x11a)](_0x5a9db3['body'],function(_0x6c4765){const _0x4af47c=_0x47b678;return _0x6c4765[_0x4af47c(0xe2)]=_0x5a9db3[_0x4af47c(0xad)]['id'],_0x6c4765;});return db[_0x47b678(0x118)][_0x47b678(0xf6)](_0x42ac3a,{'transaction':_0xa0ecf2});});})[_0x2b3f1a(0xc9)](function(){const _0x1ce363=_0x2b3f1a;return db[_0x1ce363(0x118)][_0x1ce363(0xc3)]({'where':{'OpenchannelAccountId':_0x5a9db3['params']['id']},'order':_0x1ce363(0xc7)});});})[_0xf6c857(0xc9)](respondWithResult(_0x89d238,null))['catch'](handleError(_0x89d238,null));},exports[a563_0x475f7b(0xdf)]=function(_0x461c9f,_0x354898){const _0x385950=a563_0x475f7b;let _0x5dd28a={};const _0x1add27={};let _0x5dd9fa,_0x28849b;return db['OpenchannelAccount'][_0x385950(0x104)]({'where':{'id':_0x461c9f['params']['id']}})[_0x385950(0xc9)](handleEntityNotFound(_0x354898,null))['then'](function(_0x5b9c81){const _0x3f320d=_0x385950;if(_0x5b9c81)return _0x5dd9fa=_0x5b9c81,_0x1add27[_0x3f320d(0xef)]=_[_0x3f320d(0xf8)](db[_0x3f320d(0x118)][_0x3f320d(0x105)]),_0x1add27['query']=_[_0x3f320d(0xf8)](_0x461c9f[_0x3f320d(0xa3)]),_0x1add27[_0x3f320d(0xfe)]=_['intersection'](_0x1add27[_0x3f320d(0xef)],_0x1add27[_0x3f320d(0xa3)]),_0x5dd28a[_0x3f320d(0x9c)]=_[_0x3f320d(0x11c)](_0x1add27[_0x3f320d(0xef)],qs[_0x3f320d(0xa0)](_0x461c9f[_0x3f320d(0xa3)][_0x3f320d(0xa0)])),_0x5dd28a[_0x3f320d(0x9c)]=_0x5dd28a[_0x3f320d(0x9c)]['length']?_0x5dd28a['attributes']:_0x1add27['model'],_0x5dd28a[_0x3f320d(0xa7)]=qs[_0x3f320d(0x106)](_0x461c9f['query'][_0x3f320d(0x106)]),_0x5dd28a[_0x3f320d(0xea)]=qs[_0x3f320d(0xfe)](_[_0x3f320d(0xd8)](_0x461c9f['query'],_0x1add27[_0x3f320d(0xfe)])),_0x461c9f['query'][_0x3f320d(0xbc)]&&(_0x5dd28a[_0x3f320d(0xea)]=_[_0x3f320d(0xdb)](_0x5dd28a[_0x3f320d(0xea)],{[Op['or']]:_[_0x3f320d(0x11a)](_0x5dd28a[_0x3f320d(0x9c)],function(_0x5a159a){const _0x376c09=_0x3f320d,_0x3446fc={};return _0x3446fc[_0x5a159a]={[Op[_0x376c09(0xdd)]]:'%'+_0x461c9f[_0x376c09(0xa3)][_0x376c09(0xbc)]+'%'},_0x3446fc;})})),_0x5dd28a=_[_0x3f320d(0xdb)]({},_0x5dd28a,_0x461c9f['options']),_0x5dd9fa['getApplications'](_0x5dd28a);})[_0x385950(0xc9)](function(_0xeb075e){const _0x453c86=_0x385950;if(_0xeb075e)return _0x28849b=_0xeb075e[_0x453c86(0x111)],typeof _0x461c9f[_0x453c86(0xa3)][_0x453c86(0xee)]===_0x453c86(0x10c)&&(_0x5dd28a[_0x453c86(0xcb)]=qs['limit'](_0x461c9f[_0x453c86(0xa3)]['limit']),_0x5dd28a[_0x453c86(0xbf)]=qs[_0x453c86(0xbf)](_0x461c9f[_0x453c86(0xa3)]['offset'])),_0x5dd9fa[_0x453c86(0xdf)](_0x5dd28a);})[_0x385950(0xc9)](function(_0x46d03c){if(_0x46d03c)return _0x46d03c?{'count':_0x28849b,'rows':_0x46d03c}:null;})[_0x385950(0xc9)](respondWithResult(_0x354898,null))['catch'](handleError(_0x354898,null));},exports[a563_0x475f7b(0x8c)]=function(_0x14be43,_0x189023){const _0xb1755d=a563_0x475f7b;let _0x3b77ce={'raw':![],'where':{}};const _0x355f37={},_0x39f062={'count':0x0,'rows':[]};return db[_0xb1755d(0xc8)][_0xb1755d(0x104)]({'where':{'id':_0x14be43[_0xb1755d(0xad)]['id']}})[_0xb1755d(0xc9)](handleEntityNotFound(_0x189023,null))['then'](function(_0x2bb176){const _0x5c90ae=_0xb1755d;if(_0x2bb176)return _0x355f37['model']=_['keys'](db[_0x5c90ae(0xe4)][_0x5c90ae(0x105)]),_0x355f37['query']=_[_0x5c90ae(0xf8)](_0x14be43['query']),_0x355f37[_0x5c90ae(0xfe)]=_[_0x5c90ae(0x11c)](_0x355f37['model'],_0x355f37[_0x5c90ae(0xa3)]),_0x3b77ce[_0x5c90ae(0x9c)]=_[_0x5c90ae(0x11c)](_0x355f37[_0x5c90ae(0xef)],qs[_0x5c90ae(0xa0)](_0x14be43[_0x5c90ae(0xa3)][_0x5c90ae(0xa0)])),_0x3b77ce['attributes']=_0x3b77ce['attributes'][_0x5c90ae(0x111)]?_0x3b77ce[_0x5c90ae(0x9c)]:_0x355f37['model'],typeof _0x14be43[_0x5c90ae(0xa3)][_0x5c90ae(0xee)]==='undefined'&&(_0x3b77ce[_0x5c90ae(0xcb)]=qs[_0x5c90ae(0xcb)](_0x14be43[_0x5c90ae(0xa3)][_0x5c90ae(0xcb)]),_0x3b77ce[_0x5c90ae(0xbf)]=qs[_0x5c90ae(0xbf)](_0x14be43['query'][_0x5c90ae(0xbf)])),_0x3b77ce[_0x5c90ae(0xa7)]=qs[_0x5c90ae(0x106)](_0x14be43[_0x5c90ae(0xa3)]['sort']),_0x3b77ce[_0x5c90ae(0xea)]=qs[_0x5c90ae(0xfe)](_[_0x5c90ae(0xd8)](_0x14be43['query'],_0x355f37['filters'])),_0x3b77ce[_0x5c90ae(0xea)][_0x5c90ae(0xe2)]=_0x2bb176['id'],_0x14be43[_0x5c90ae(0xa3)]['filter']&&(_0x3b77ce[_0x5c90ae(0xea)]=_[_0x5c90ae(0xdb)](_0x3b77ce[_0x5c90ae(0xea)],{[Op['or']]:_[_0x5c90ae(0x11a)](_0x3b77ce[_0x5c90ae(0x9c)],function(_0x1bfc99){const _0x102bcb=_0x5c90ae,_0x10daff={};return _0x10daff[_0x1bfc99]={[Op[_0x102bcb(0xdd)]]:'%'+_0x14be43[_0x102bcb(0xa3)]['filter']+'%'},_0x10daff;})})),_0x3b77ce=_[_0x5c90ae(0xdb)]({},_0x3b77ce,_0x14be43[_0x5c90ae(0xd9)]),db[_0x5c90ae(0xe4)]['count']({'where':_0x3b77ce['where']})[_0x5c90ae(0xc9)](function(_0x29f50f){const _0x2ae379=_0x5c90ae;return _0x39f062['count']=_0x29f50f,_0x14be43['query'][_0x2ae379(0x100)]&&(_0x3b77ce[_0x2ae379(0xcd)]=[{'model':db[_0x2ae379(0xdc)],'as':_0x2ae379(0x98),'required':![]},{'model':db[_0x2ae379(0xac)],'as':'Owner','attributes':[_0x2ae379(0xf5),'fullname',_0x2ae379(0x8a)],'required':![]},{'model':db[_0x2ae379(0xb9)],'as':_0x2ae379(0xb3),'attributes':['id',_0x2ae379(0xf5),_0x2ae379(0x8b)],'where':_0x14be43[_0x2ae379(0xa3)]['tag']?{'id':_0x14be43[_0x2ae379(0xa3)]['tag']}:undefined,'required':_0x14be43['query'][_0x2ae379(0xbd)]?!![]:![]}]),db['OpenchannelInteraction'][_0x2ae379(0xe6)](_0x3b77ce);})[_0x5c90ae(0xc9)](function(_0x367861){return _0x39f062['rows']=_0x367861,_0x39f062;});})['then'](respondWithFilteredResult(_0x189023,_0x3b77ce))[_0xb1755d(0xfb)](handleError(_0x189023,null));},exports[a563_0x475f7b(0xa4)]=function(_0x551f58,_0x1c2031){const _0x1c4185=a563_0x475f7b;return db[_0x1c4185(0xc8)][_0x1c4185(0x104)]({'where':{'id':_0x551f58[_0x1c4185(0xad)]['id']}})[_0x1c4185(0xc9)](function(_0x40f1c0){const _0x4d01c5=_0x1c4185;if(_0x40f1c0)return _0x40f1c0[_0x4d01c5(0xa4)](_0x551f58[_0x4d01c5(0xe3)][_0x4d01c5(0x89)],{'through':_[_0x4d01c5(0x10e)](_0x551f58[_0x4d01c5(0xe3)],[_0x4d01c5(0x89),'id'])})[_0x4d01c5(0xc9)](function(_0x148ef5){const _0x402cce=_0x4d01c5;for(let _0x5aac80=0x0;_0x5aac80<_0x551f58[_0x402cce(0xe3)][_0x402cce(0x89)]['length'];_0x5aac80+=0x1){socket['emit']('userOpenchannelAccount:save',{'UserId':_0x551f58[_0x402cce(0xe3)][_0x402cce(0x89)][_0x5aac80],'OpenchannelAccountId':_0x551f58['params']['id']});}return _0x148ef5;});})[_0x1c4185(0xc9)](respondWithResult(_0x1c2031,null))['catch'](handleError(_0x1c2031,null));},exports[a563_0x475f7b(0x112)]=function(_0x2eda0c,_0x15f5a6){const _0x1e6b37=a563_0x475f7b;return db['OpenchannelAccount'][_0x1e6b37(0x104)]({'where':{'id':_0x2eda0c[_0x1e6b37(0xad)]['id']}})['then'](handleEntityNotFound(_0x15f5a6,null))['then'](function(_0x18d4c9){const _0x442b1e=_0x1e6b37;if(_0x18d4c9)return _0x18d4c9['removeAgents'](_0x2eda0c[_0x442b1e(0xa3)][_0x442b1e(0x89)])[_0x442b1e(0xc9)](function(){const _0x181c03=_0x442b1e;if(_[_0x181c03(0x123)](_0x2eda0c['query'][_0x181c03(0x89)]))for(let _0x2223ab=0x0;_0x2223ab<_0x2eda0c[_0x181c03(0xa3)][_0x181c03(0x89)][_0x181c03(0x111)];_0x2223ab+=0x1){socket[_0x181c03(0x10b)](_0x181c03(0x9a),{'UserId':Number(_0x2eda0c[_0x181c03(0xa3)]['ids'][_0x2223ab]),'OpenchannelAccountId':Number(_0x2eda0c[_0x181c03(0xad)]['id'])});}else socket[_0x181c03(0x10b)](_0x181c03(0x9a),{'UserId':Number(_0x2eda0c[_0x181c03(0xa3)]['ids']),'OpenchannelAccountId':Number(_0x2eda0c[_0x181c03(0xad)]['id'])});});})[_0x1e6b37(0xc9)](respondWithStatusCode(_0x15f5a6,null))[_0x1e6b37(0xfb)](handleError(_0x15f5a6,null));},exports['getAgents']=function(_0x5ce9ce,_0x23f5a2){const _0x73d698=a563_0x475f7b;let _0x1f6a67={};const _0x3996b4={};let _0x5a5881,_0x4ce3ff;return db[_0x73d698(0xc8)]['findOne']({'where':{'id':_0x5ce9ce[_0x73d698(0xad)]['id']}})[_0x73d698(0xc9)](handleEntityNotFound(_0x23f5a2,null))[_0x73d698(0xc9)](function(_0x2a9dde){const _0x3db5c4=_0x73d698;if(_0x2a9dde)return _0x5a5881=_0x2a9dde,_0x3996b4[_0x3db5c4(0xef)]=_['keys'](db[_0x3db5c4(0xac)][_0x3db5c4(0x105)]),_0x3996b4['query']=_[_0x3db5c4(0xf8)](_0x5ce9ce[_0x3db5c4(0xa3)]),_0x3996b4[_0x3db5c4(0xfe)]=_[_0x3db5c4(0x11c)](_0x3996b4['model'],_0x3996b4[_0x3db5c4(0xa3)]),_0x1f6a67[_0x3db5c4(0x9c)]=_['intersection'](_0x3996b4[_0x3db5c4(0xef)],qs['fields'](_0x5ce9ce[_0x3db5c4(0xa3)]['fields'])),_0x1f6a67[_0x3db5c4(0x9c)]=_0x1f6a67['attributes'][_0x3db5c4(0x111)]?_0x1f6a67['attributes']:_0x3996b4['model'],_0x1f6a67[_0x3db5c4(0xa7)]=qs[_0x3db5c4(0x106)](_0x5ce9ce['query'][_0x3db5c4(0x106)]),_0x1f6a67[_0x3db5c4(0xea)]=qs[_0x3db5c4(0xfe)](_[_0x3db5c4(0xd8)](_0x5ce9ce['query'],_0x3996b4[_0x3db5c4(0xfe)])),_0x5ce9ce[_0x3db5c4(0xa3)]['filter']&&(_0x1f6a67[_0x3db5c4(0xea)]=_[_0x3db5c4(0xdb)](_0x1f6a67[_0x3db5c4(0xea)],{[Op['or']]:_['map'](_0x1f6a67[_0x3db5c4(0x9c)],function(_0x41b97b){const _0xd63a5e=_0x3db5c4,_0x194093={};return _0x194093[_0x41b97b]={[Op[_0xd63a5e(0xdd)]]:'%'+_0x5ce9ce[_0xd63a5e(0xa3)]['filter']+'%'},_0x194093;})})),_0x1f6a67=_[_0x3db5c4(0xdb)]({},_0x1f6a67,_0x5ce9ce[_0x3db5c4(0xd9)]),_0x5a5881[_0x3db5c4(0x11e)](_0x1f6a67);})['then'](function(_0x2a3022){const _0x2e4fa0=_0x73d698;if(_0x2a3022)return _0x4ce3ff=_0x2a3022[_0x2e4fa0(0x111)],typeof _0x5ce9ce[_0x2e4fa0(0xa3)][_0x2e4fa0(0xee)]==='undefined'&&(_0x1f6a67['limit']=qs[_0x2e4fa0(0xcb)](_0x5ce9ce[_0x2e4fa0(0xa3)][_0x2e4fa0(0xcb)]),_0x1f6a67[_0x2e4fa0(0xbf)]=qs[_0x2e4fa0(0xbf)](_0x5ce9ce[_0x2e4fa0(0xa3)]['offset'])),_0x5a5881[_0x2e4fa0(0x11e)](_0x1f6a67);})[_0x73d698(0xc9)](function(_0x2dbb61){if(_0x2dbb61)return _0x2dbb61?{'count':_0x4ce3ff,'rows':_0x2dbb61}:null;})[_0x73d698(0xc9)](respondWithResult(_0x23f5a2,null))[_0x73d698(0xfb)](handleError(_0x23f5a2,null));},exports[a563_0x475f7b(0x8d)]=function(_0x5664aa,_0x3c0d0d){const _0x571a8c=a563_0x475f7b;let _0x3020ca,_0x33e2f0;if(_['isNil'](_0x5664aa[_0x571a8c(0xe3)][_0x571a8c(0xe3)])||_0x5664aa[_0x571a8c(0xe3)][_0x571a8c(0xe3)]==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x571a8c(0xf7)](_0x5664aa[_0x571a8c(0xe3)]['to'])){}const _0x25d7dc=_0x5664aa[_0x571a8c(0xe3)]['to'];return db[_0x571a8c(0xc8)]['findOne']({'where':{'id':_0x5664aa[_0x571a8c(0xad)]['id']}})['then'](handleEntityNotFound(_0x3c0d0d,null))[_0x571a8c(0xc9)](function(_0x40e9e9){const _0x15f36d=_0x571a8c;if(_0x40e9e9)return db[_0x15f36d(0xc8)]['findOne']({'where':{'id':_0x40e9e9['id']},'include':[{'model':db[_0x15f36d(0xf9)],'as':_0x15f36d(0xa6),'include':[{'model':db[_0x15f36d(0xdc)],'as':'Contacts','where':{[_0x40e9e9[_0x15f36d(0x109)]]:_0x25d7dc},'limit':0x1,'order':[[_0x15f36d(0xf0),_0x15f36d(0x120)]]}]}]})[_0x15f36d(0xc9)](handleEntityNotFound(_0x3c0d0d,null))[_0x15f36d(0xc9)](function(_0x4ede90){const _0x5e6b26=_0x15f36d;if(_0x4ede90&&_0x4ede90[_0x5e6b26(0xa6)]){_0x3020ca=_0x4ede90['get']({'plain':!![]});if(_0x3020ca[_0x5e6b26(0xa6)]&&_0x3020ca[_0x5e6b26(0xa6)][_0x5e6b26(0xc1)][_0x5e6b26(0x111)])return _0x3020ca[_0x5e6b26(0xa6)][_0x5e6b26(0xc1)][0x0];return db['CmContact'][_0x5e6b26(0xaf)](_['defaults'](_0x5664aa['body'],{'firstName':_0x25d7dc,[_0x4ede90['mapKey']]:_0x25d7dc,'phone':_0x25d7dc,'ListId':_0x3020ca[_0x5e6b26(0xb4)]}));}})['then'](handleEntityNotFound(_0x3c0d0d,null))[_0x15f36d(0xc9)](function(_0x39d90c){const _0x330dc7=_0x15f36d;if(_0x39d90c)return _0x33e2f0=_0x39d90c,db['OpenchannelInteraction'][_0x330dc7(0x104)]({'where':{'ContactId':_0x33e2f0['id'],'closed':![],'OpenchannelAccountId':_0x3020ca['id']}})[_0x330dc7(0xc9)](function(_0x4f2ffc){const _0x416442=_0x330dc7;if(_0x4f2ffc)return[_0x4f2ffc,![]];return db[_0x416442(0xe4)][_0x416442(0xaf)]({'UserId':_0x5664aa[_0x416442(0x9d)]['id'],'ContactId':_0x33e2f0['id'],'OpenchannelAccountId':_0x3020ca['id'],'lastMsgDirection':_0x416442(0x96),'Messages':[_[_0x416442(0xdb)](_0x5664aa[_0x416442(0xe3)],{'read':![],'body':_0x5664aa['body'][_0x416442(0xe3)],'OpenchannelAccountId':_0x3020ca['id'],'UserId':_0x5664aa[_0x416442(0x9d)]['id'],'ContactId':_0x33e2f0['id']})]},{'include':[{'model':db[_0x416442(0x102)],'as':_0x416442(0xe7)}]})[_0x416442(0xc9)](function(_0x5c7b5f){return[_0x5c7b5f,!![]];});});})[_0x15f36d(0xc9)](function([_0xbb5d82,_0x3710df]){const _0x3fe0a4=_0x15f36d;if(_0x3710df)return _0xbb5d82;return db[_0x3fe0a4(0x102)][_0x3fe0a4(0xaf)](_[_0x3fe0a4(0xdb)](_0x5664aa['body'],{'read':![],'body':_0x5664aa[_0x3fe0a4(0xe3)][_0x3fe0a4(0xe3)],'OpenchannelAccountId':_0x3020ca['id'],'OpenchannelInteractionId':_0xbb5d82['id'],'UserId':_0x5664aa[_0x3fe0a4(0x9d)]['id'],'ContactId':_0x33e2f0['id']}))[_0x3fe0a4(0xc9)](function(_0x3d7a24){const _0x33b6b3=_0x3fe0a4;return _0xbb5d82['dataValues'][_0x33b6b3(0xe7)]=[],_0xbb5d82['dataValues'][_0x33b6b3(0xe7)][_0x33b6b3(0x9e)](_0x3d7a24['dataValues']),_0xbb5d82;});});})[_0x571a8c(0xc9)](respondWithResult(_0x3c0d0d,null))[_0x571a8c(0xfb)](handleError(_0x3c0d0d,null));}; \ No newline at end of file +const a563_0x5136=['applications','where','Pause','client','index','close','unmanaged','messageId','key','getInteractions','http','externalUrl','updatedAt','show','sendStatus','limit','../../rediscache','UserProfileResource','Messages','created','defaults','List','openchannel','Unable\x20to\x20retrieve\x20the\x20current\x20user','addAnswer','priority','filters','account','options','message','addDisposition','mandatoryDispositionPause','describe','debug','ListId','internal','rows','lodash','CmContact','pick','CompanyId','request','intersection','../../mysqldb','notify','OpenchannelAccount','fields','../../components/parsers/qs','mapKey','user','getAgents','params','interaction','fieldName','OpenchannelApplication','*,*,*,*','startRouting','bulkCreate','code','AttachmentId','Contacts','sequelize','DESC','threadId','addAgents','role','offset','OpenchannelAccounts','status','list','filter','Owner','get','from','jayson/promise','map','count','User','forcedOwnership','OpenchannelInteraction','create','omit','nolimit','attributes','CannedAnswer','sort','Start','OpenchannelAccountId','rawAttributes','body','isNil','send','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','stringify','name','../../config/logger','merge','type','json','createdAt','set','transaction','tag','query','addApplications','orderBy','update','length','Tags','push','contact','from\x20is\x20mandatory','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','dataValues','includeAll','includes','lastName','findAll','removeAgents','then','include','emit','OpenchannelMessage','body\x20is\x20mandatory\x20and\x20not\x20empty','catch','like','userOpenchannelAccount:save','undefined','EventManager','removeAnswers','userOpenchannelAccount:remove','CmList','request\x20sent','result','keys','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','destroy','error','ids','./openchannelAccount.socket','removeDispositions','color','model','findOne','OpenchannelAccount,\x20%s,\x20%s,\x20%s','isArray','OpenchannelAccount,\x20%s,\x20%s','out','getApplications','autoclose','Disposition','Applications','fullname','UserProfileSection','order'];(function(_0x439814,_0x4c10bc){const _0x5136a7=function(_0x5e8495){while(--_0x5e8495){_0x439814['push'](_0x439814['shift']());}};_0x5136a7(++_0x4c10bc);}(a563_0x5136,0x19c));const a563_0x5e84=function(_0x439814,_0x4c10bc){_0x439814=_0x439814-0x18f;let _0x5136a7=a563_0x5136[_0x439814];return _0x5136a7;};const a563_0x4329c0=a563_0x5e84;'use strict';const _=require(a563_0x4329c0(0x1e9)),qs=require(a563_0x4329c0(0x1f3)),logger=require(a563_0x4329c0(0x223))('api'),{getSocket}=require(a563_0x4329c0(0x1d4)),socket=getSocket(),{db}=require(a563_0x4329c0(0x1ef)),{Op,ValidationError}=require(a563_0x4329c0(0x201));require(a563_0x4329c0(0x1b4))['register'](socket);const jayson=require(a563_0x4329c0(0x20e)),client=jayson[a563_0x4329c0(0x1c7)][a563_0x4329c0(0x1ce)]({'port':0x232c}),client9002=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x105672,_0x16fd01,_0x5a8217,_0x181088){return new Promise(function(_0x1ec08e,_0x25e54d){const _0x4a7b4e=a563_0x5e84,_0x4cd39f=_0x181088||client;return _0x4cd39f[_0x4a7b4e(0x1ed)](_0x105672,_0x5a8217)['then'](function(_0x5de1b5){const _0x46635e=_0x4a7b4e;logger['info'](_0x46635e(0x1bb),_0x16fd01,'request\x20sent'),logger[_0x46635e(0x1e5)](_0x46635e(0x1b9),_0x16fd01,_0x46635e(0x1ad),JSON[_0x46635e(0x221)](_0x5de1b5));if(_0x5de1b5[_0x46635e(0x1b2)]){if(_0x5de1b5[_0x46635e(0x1b2)][_0x46635e(0x1fe)]===0x1f4)return logger[_0x46635e(0x1b2)](_0x46635e(0x1bb),_0x16fd01,_0x5de1b5[_0x46635e(0x1b2)][_0x46635e(0x1e1)]),_0x25e54d(_0x5de1b5[_0x46635e(0x1b2)]['message']);return logger[_0x46635e(0x1b2)](_0x46635e(0x1bb),_0x16fd01,_0x5de1b5[_0x46635e(0x1b2)]['message']),_0x1ec08e(_0x5de1b5[_0x46635e(0x1b2)][_0x46635e(0x1e1)]);}else logger['info'](_0x46635e(0x1bb),_0x16fd01,'request\x20sent'),_0x1ec08e(_0x5de1b5[_0x46635e(0x1ae)][_0x46635e(0x1e1)]);})[_0x4a7b4e(0x1a5)](function(_0x24ad81){const _0x5cc7f4=_0x4a7b4e;logger['error'](_0x5cc7f4(0x1bb),_0x16fd01,_0x24ad81),_0x25e54d(_0x24ad81);});});}function respondWithStatusCode(_0x419af3,_0xea737d){return _0xea737d=_0xea737d||0xcc,function(_0x246b58){const _0x13f0d7=a563_0x5e84;if(_0x246b58)return _0x419af3[_0x13f0d7(0x1d2)](_0xea737d);return _0x419af3['status'](_0xea737d)['end']();};}function respondWithResult(_0x5118ba,_0x3c48e8){return _0x3c48e8=_0x3c48e8||0xc8,function(_0x586008){const _0x310a4e=a563_0x5e84;if(_0x586008)return _0x5118ba['status'](_0x3c48e8)[_0x310a4e(0x226)](_0x586008);};}function respondWithFilteredResult(_0x57a77a,_0x39eb85){return function(_0x50b698){const _0x563ea6=a563_0x5e84;if(_0x50b698){const _0xad1079=_0x50b698[_0x563ea6(0x210)],_0x2a36bd=_0x39eb85[_0x563ea6(0x206)];let _0x5552ae=_0x39eb85[_0x563ea6(0x206)]+_0x39eb85['limit'],_0x10794d;return _0x5552ae>=_0xad1079?(_0x5552ae=_0xad1079,_0x10794d=0xc8):_0x10794d=0xce,_0x57a77a['status'](_0x10794d),_0x57a77a[_0x563ea6(0x228)]('Content-Range',_0x2a36bd+'-'+_0x5552ae+'/'+_0xad1079)[_0x563ea6(0x226)](_0x50b698);}return null;};}function saveUpdates(_0x217e65){return function(_0x4761ba){const _0x32f6b7=a563_0x5e84;if(_0x4761ba)return _0x4761ba[_0x32f6b7(0x193)](_0x217e65)[_0x32f6b7(0x1a0)](function(_0x300cec){return _0x300cec;});return null;};}function removeEntity(_0x39ac93){return function(_0x5eae5d){const _0x20338f=a563_0x5e84;if(_0x5eae5d)return _0x5eae5d[_0x20338f(0x1b1)]()[_0x20338f(0x1a0)](function(){const _0x1eeb59=_0x20338f,_0x444c2f=_0x5eae5d[_0x1eeb59(0x20c)]({'plain':!![]}),_0x559752=_0x1eeb59(0x207);return db[_0x1eeb59(0x1d5)][_0x1eeb59(0x1b1)]({'where':{'type':_0x559752,'resourceId':_0x444c2f['id']}})['then'](function(){return _0x5eae5d;});})[_0x20338f(0x1a0)](function(){const _0x40b5cf=_0x20338f;_0x39ac93[_0x40b5cf(0x208)](0xcc)['end']();});};}function handleEntityNotFound(_0x2b20dc){return function(_0x3310ba){return!_0x3310ba&&_0x2b20dc['sendStatus'](0x194),_0x3310ba;};}function handleError(_0xbbd620,_0x502b4f){return _0x502b4f=_0x502b4f||0x1f4,function(_0x53e962){const _0x1b640e=a563_0x5e84;logger[_0x1b640e(0x1b2)](_0x53e962['stack']),_0x53e962[_0x1b640e(0x222)]&&delete _0x53e962[_0x1b640e(0x222)],_0xbbd620[_0x1b640e(0x208)](_0x502b4f)['send'](_0x53e962);};}exports[a563_0x4329c0(0x1c8)]=function(_0x25c8f6,_0x165827){const _0x411bd4=a563_0x4329c0;let _0x3f500d={'include':[{'model':db[_0x411bd4(0x1c6)],'as':_0x411bd4(0x1e3)}]};const _0x136ea2={},_0x5e28dc={'count':0x0,'rows':[]},_0x2dd041=_[_0x411bd4(0x20f)](db[_0x411bd4(0x1f1)][_0x411bd4(0x21c)],function(_0x5a945f){const _0x5ce675=_0x411bd4;return{'name':_0x5a945f[_0x5ce675(0x1f9)],'type':_0x5a945f[_0x5ce675(0x225)][_0x5ce675(0x1cc)]};});_0x136ea2['model']=_['map'](_0x2dd041,'name'),_0x136ea2[_0x411bd4(0x190)]=_[_0x411bd4(0x1af)](_0x25c8f6['query']),_0x136ea2['filters']=_[_0x411bd4(0x1ee)](_0x136ea2[_0x411bd4(0x1b7)],_0x136ea2[_0x411bd4(0x190)]),_0x3f500d[_0x411bd4(0x217)]=_[_0x411bd4(0x1ee)](_0x136ea2['model'],qs[_0x411bd4(0x1f2)](_0x25c8f6[_0x411bd4(0x190)][_0x411bd4(0x1f2)])),_0x3f500d['attributes']=_0x3f500d[_0x411bd4(0x217)]['length']?_0x3f500d[_0x411bd4(0x217)]:_0x136ea2[_0x411bd4(0x1b7)];typeof _0x25c8f6[_0x411bd4(0x190)][_0x411bd4(0x216)]===_0x411bd4(0x1a8)&&(_0x3f500d['limit']=qs['limit'](_0x25c8f6[_0x411bd4(0x190)]['limit']),_0x3f500d[_0x411bd4(0x206)]=qs[_0x411bd4(0x206)](_0x25c8f6[_0x411bd4(0x190)]['offset']));_0x3f500d['order']=qs[_0x411bd4(0x219)](_0x25c8f6['query'][_0x411bd4(0x219)]),_0x3f500d[_0x411bd4(0x1c5)]=qs[_0x411bd4(0x1de)](_[_0x411bd4(0x1eb)](_0x25c8f6['query'],_0x136ea2[_0x411bd4(0x1de)]),_0x2dd041);_0x25c8f6['query'][_0x411bd4(0x20a)]&&(_0x3f500d[_0x411bd4(0x1c5)]=_['merge'](_0x3f500d[_0x411bd4(0x1c5)],{[Op['or']]:_['map'](_0x2dd041,function(_0x573dc1){const _0x1bc9ec=_0x411bd4;if(_0x573dc1['type']!=='VIRTUAL'){const _0x3e9feb={};return _0x3e9feb[_0x573dc1[_0x1bc9ec(0x222)]]={[Op[_0x1bc9ec(0x1a6)]]:'%'+_0x25c8f6[_0x1bc9ec(0x190)][_0x1bc9ec(0x20a)]+'%'},_0x3e9feb;}})}));_0x3f500d=_[_0x411bd4(0x224)]({},_0x3f500d,_0x25c8f6[_0x411bd4(0x1e0)]);const _0x2f9503={'where':_0x3f500d[_0x411bd4(0x1c5)]};return db[_0x411bd4(0x1f1)]['count'](_0x2f9503)[_0x411bd4(0x1a0)](function(_0x51149d){const _0x13670e=_0x411bd4;return _0x5e28dc[_0x13670e(0x210)]=_0x51149d,_0x25c8f6[_0x13670e(0x190)][_0x13670e(0x19b)]&&(_0x3f500d[_0x13670e(0x1a1)]=[{'all':!![]}]),db[_0x13670e(0x1f1)][_0x13670e(0x19e)](_0x3f500d);})[_0x411bd4(0x1a0)](function(_0x1dc3d7){const _0x184a78=_0x411bd4;return _0x5e28dc[_0x184a78(0x1e8)]=_0x1dc3d7,_0x5e28dc;})['then'](respondWithFilteredResult(_0x165827,_0x3f500d))['catch'](handleError(_0x165827,null));},exports[a563_0x4329c0(0x1d1)]=function(_0x54aa5f,_0x46f481){const _0x1f2af6=a563_0x4329c0;let _0x48b659={'raw':![],'where':{'id':_0x54aa5f['params']['id']},'include':[{'model':db[_0x1f2af6(0x1c6)],'as':_0x1f2af6(0x1e3)}]};const _0x3d4574={};return _0x3d4574[_0x1f2af6(0x1b7)]=_[_0x1f2af6(0x1af)](db[_0x1f2af6(0x1f1)][_0x1f2af6(0x21c)]),_0x3d4574['query']=_[_0x1f2af6(0x1af)](_0x54aa5f[_0x1f2af6(0x190)]),_0x3d4574[_0x1f2af6(0x1de)]=_[_0x1f2af6(0x1ee)](_0x3d4574['model'],_0x3d4574[_0x1f2af6(0x190)]),_0x48b659[_0x1f2af6(0x217)]=_['intersection'](_0x3d4574[_0x1f2af6(0x1b7)],qs['fields'](_0x54aa5f[_0x1f2af6(0x190)]['fields'])),_0x48b659[_0x1f2af6(0x217)]=_0x48b659[_0x1f2af6(0x217)][_0x1f2af6(0x194)]?_0x48b659[_0x1f2af6(0x217)]:_0x3d4574[_0x1f2af6(0x1b7)],_0x54aa5f['query']['includeAll']&&(_0x48b659['include']=[{'all':!![]}]),_0x48b659=_[_0x1f2af6(0x224)]({},_0x48b659,_0x54aa5f[_0x1f2af6(0x1e0)]),db[_0x1f2af6(0x1f1)]['findOne'](_0x48b659)['then'](handleEntityNotFound(_0x46f481,null))['then'](respondWithResult(_0x46f481,null))[_0x1f2af6(0x1a5)](handleError(_0x46f481,null));},exports[a563_0x4329c0(0x214)]=function(_0xe811a8,_0x533c7f){const _0x273732=a563_0x4329c0;return db[_0x273732(0x1f1)]['create'](_0xe811a8[_0x273732(0x21d)],{})[_0x273732(0x1a0)](function(_0x32e6ad){const _0x11a25c=_0x273732,_0x2541b9=_0xe811a8['user'][_0x11a25c(0x20c)]({'plain':!![]});if(!_0x2541b9)throw new Error(_0x11a25c(0x1db));if(_0x2541b9[_0x11a25c(0x205)]===_0x11a25c(0x1f5)){const _0x3977fc=_0x32e6ad['get']({'plain':!![]}),_0x4efae9=_0x11a25c(0x207);return db[_0x11a25c(0x1c2)][_0x11a25c(0x1b8)]({'where':{'name':_0x4efae9,'userProfileId':_0x2541b9['userProfileId']},'raw':!![]})[_0x11a25c(0x1a0)](function(_0x3fc7b8){const _0x4f4790=_0x11a25c;return _0x3fc7b8&&_0x3fc7b8['autoAssociation']===0x0?db[_0x4f4790(0x1d5)]['create']({'name':_0x3977fc[_0x4f4790(0x222)],'resourceId':_0x3977fc['id'],'type':_0x3fc7b8[_0x4f4790(0x222)],'sectionId':_0x3fc7b8['id']},{})[_0x4f4790(0x1a0)](function(){return _0x32e6ad;}):_0x32e6ad;})[_0x11a25c(0x1a5)](function(_0x2dd5a6){const _0x40b4d5=_0x11a25c;logger['error'](_0x40b4d5(0x199),_0x2dd5a6);throw _0x2dd5a6;});}return _0x32e6ad;})[_0x273732(0x1a0)](respondWithResult(_0x533c7f,0xc9))[_0x273732(0x1a5)](handleError(_0x533c7f,null));},exports[a563_0x4329c0(0x193)]=function(_0x4ffe07,_0x4f9714){const _0x54801d=a563_0x4329c0;return _0x4ffe07['body']['id']&&delete _0x4ffe07[_0x54801d(0x21d)]['id'],db[_0x54801d(0x1f1)][_0x54801d(0x1b8)]({'where':{'id':_0x4ffe07[_0x54801d(0x1f7)]['id']},'include':[{'model':db[_0x54801d(0x1c6)],'as':_0x54801d(0x1e3)}]})[_0x54801d(0x1a0)](handleEntityNotFound(_0x4f9714,null))[_0x54801d(0x1a0)](saveUpdates(_0x4ffe07[_0x54801d(0x21d)],null))[_0x54801d(0x1a0)](respondWithResult(_0x4f9714,null))['catch'](handleError(_0x4f9714,null));},exports[a563_0x4329c0(0x1b1)]=function(_0x24e92c,_0x6a26b2){const _0x53918c=a563_0x4329c0;return db['OpenchannelAccount']['findOne']({'where':{'id':_0x24e92c[_0x53918c(0x1f7)]['id']}})[_0x53918c(0x1a0)](handleEntityNotFound(_0x6a26b2,null))[_0x53918c(0x1a0)](removeEntity(_0x6a26b2,null))[_0x53918c(0x1a5)](handleError(_0x6a26b2,null));},exports[a563_0x4329c0(0x1e4)]=function(_0x77b2da,_0x409055){const _0x47cba3=a563_0x4329c0;return db['OpenchannelAccount'][_0x47cba3(0x1e4)]()[_0x47cba3(0x1a0)](respondWithResult(_0x409055,null))[_0x47cba3(0x1a5)](handleError(_0x409055,null));},exports[a563_0x4329c0(0x1e2)]=function(_0x2e382a,_0x4e0ed8){const _0x2200da=a563_0x4329c0;return _0x2e382a['body']['id']&&delete _0x2e382a[_0x2200da(0x21d)]['id'],db[_0x2200da(0x1f1)][_0x2200da(0x1b8)]({'where':{'id':_0x2e382a['params']['id']}})['then'](handleEntityNotFound(_0x4e0ed8,null))[_0x2200da(0x1a0)](function(_0x431554){const _0x22270e=_0x2200da;if(_0x431554)return _0x2e382a[_0x22270e(0x21d)]['OpenchannelAccountId']=_0x431554['id'],db['Disposition'][_0x22270e(0x214)](_0x2e382a[_0x22270e(0x21d)]);})[_0x2200da(0x1a0)](respondWithResult(_0x4e0ed8,null))['catch'](handleError(_0x4e0ed8,null));},exports['getDispositions']=function(_0x425562,_0x18a66c){const _0x522c7d=a563_0x4329c0;let _0x46f95c={'raw':![],'where':{}};const _0x3cd0d1={},_0x95cb9e={'count':0x0,'rows':[]};return db[_0x522c7d(0x1f1)][_0x522c7d(0x1b8)]({'where':{'id':_0x425562['params']['id']}})[_0x522c7d(0x1a0)](handleEntityNotFound(_0x18a66c,null))[_0x522c7d(0x1a0)](function(_0x45040f){const _0x2a6030=_0x522c7d;if(_0x45040f)return _0x3cd0d1['model']=_[_0x2a6030(0x1af)](db[_0x2a6030(0x1bf)][_0x2a6030(0x21c)]),_0x3cd0d1['query']=_['keys'](_0x425562[_0x2a6030(0x190)]),_0x3cd0d1[_0x2a6030(0x1de)]=_[_0x2a6030(0x1ee)](_0x3cd0d1[_0x2a6030(0x1b7)],_0x3cd0d1[_0x2a6030(0x190)]),_0x46f95c[_0x2a6030(0x217)]=_[_0x2a6030(0x1ee)](_0x3cd0d1[_0x2a6030(0x1b7)],qs[_0x2a6030(0x1f2)](_0x425562['query'][_0x2a6030(0x1f2)])),_0x46f95c['attributes']=_0x46f95c[_0x2a6030(0x217)][_0x2a6030(0x194)]?_0x46f95c[_0x2a6030(0x217)]:_0x3cd0d1[_0x2a6030(0x1b7)],typeof _0x425562['query'][_0x2a6030(0x216)]===_0x2a6030(0x1a8)&&(_0x46f95c[_0x2a6030(0x1d3)]=qs[_0x2a6030(0x1d3)](_0x425562[_0x2a6030(0x190)][_0x2a6030(0x1d3)]),_0x46f95c[_0x2a6030(0x206)]=qs[_0x2a6030(0x206)](_0x425562[_0x2a6030(0x190)][_0x2a6030(0x206)])),_0x46f95c[_0x2a6030(0x1c3)]=qs['sort'](_0x425562['query'][_0x2a6030(0x219)]),_0x46f95c[_0x2a6030(0x1c5)]=qs[_0x2a6030(0x1de)](_[_0x2a6030(0x1eb)](_0x425562[_0x2a6030(0x190)],_0x3cd0d1[_0x2a6030(0x1de)])),_0x46f95c[_0x2a6030(0x1c5)]['OpenchannelAccountId']=_0x45040f['id'],_0x425562[_0x2a6030(0x190)][_0x2a6030(0x20a)]&&(_0x46f95c[_0x2a6030(0x1c5)]=_[_0x2a6030(0x224)](_0x46f95c[_0x2a6030(0x1c5)],{[Op['or']]:_[_0x2a6030(0x20f)](_0x46f95c[_0x2a6030(0x217)],function(_0x4a10de){const _0x2ddf0c=_0x2a6030,_0x193cbd={};return _0x193cbd[_0x4a10de]={[Op[_0x2ddf0c(0x1a6)]]:'%'+_0x425562['query'][_0x2ddf0c(0x20a)]+'%'},_0x193cbd;})})),_0x46f95c=_[_0x2a6030(0x224)]({},_0x46f95c,_0x425562[_0x2a6030(0x1e0)]),db['Disposition'][_0x2a6030(0x210)]({'where':_0x46f95c[_0x2a6030(0x1c5)]})[_0x2a6030(0x1a0)](function(_0x556dc9){const _0x43b7d2=_0x2a6030;return _0x95cb9e['count']=_0x556dc9,_0x425562[_0x43b7d2(0x190)][_0x43b7d2(0x19b)]&&(_0x46f95c['include']=[{'all':!![]}]),db[_0x43b7d2(0x1bf)]['findAll'](_0x46f95c);})['then'](function(_0x31af9c){const _0x39761e=_0x2a6030;return _0x95cb9e[_0x39761e(0x1e8)]=_0x31af9c,_0x95cb9e;});})['then'](respondWithFilteredResult(_0x18a66c,_0x46f95c))[_0x522c7d(0x1a5)](handleError(_0x18a66c,null));},exports[a563_0x4329c0(0x1b5)]=function(_0x3ba128,_0x21d330){const _0x4e3640=a563_0x4329c0;return db[_0x4e3640(0x1f1)][_0x4e3640(0x1b8)]({'where':{'id':_0x3ba128['params']['id']}})[_0x4e3640(0x1a0)](handleEntityNotFound(_0x21d330,null))[_0x4e3640(0x1a0)](function(_0x3b20f0){const _0xb4b5ae=_0x4e3640;if(_0x3b20f0)return _0x3b20f0[_0xb4b5ae(0x1b5)](_0x3ba128['query']['ids']);})[_0x4e3640(0x1a0)](respondWithStatusCode(_0x21d330,null))[_0x4e3640(0x1a5)](handleError(_0x21d330,null));},exports[a563_0x4329c0(0x1dc)]=function(_0x58a7d7,_0x2f79b6){const _0x3c2ae6=a563_0x4329c0;return _0x58a7d7[_0x3c2ae6(0x21d)]['id']&&delete _0x58a7d7[_0x3c2ae6(0x21d)]['id'],db['OpenchannelAccount'][_0x3c2ae6(0x1b8)]({'where':{'id':_0x58a7d7[_0x3c2ae6(0x1f7)]['id']}})[_0x3c2ae6(0x1a0)](handleEntityNotFound(_0x2f79b6,null))[_0x3c2ae6(0x1a0)](function(_0x3a1eb7){const _0x2f0531=_0x3c2ae6;if(_0x3a1eb7)return _0x58a7d7[_0x2f0531(0x21d)][_0x2f0531(0x21b)]=_0x3a1eb7['id'],db['CannedAnswer']['create'](_0x58a7d7[_0x2f0531(0x21d)]);})[_0x3c2ae6(0x1a0)](respondWithResult(_0x2f79b6,null))[_0x3c2ae6(0x1a5)](handleError(_0x2f79b6,null));},exports['getAnswers']=function(_0x4fea32,_0xec85e){const _0x3705b0=a563_0x4329c0;let _0x589c88={'raw':![],'where':{}};const _0x27e9a4={},_0x2647b0={'count':0x0,'rows':[]};return db[_0x3705b0(0x1f1)]['findOne']({'where':{'id':_0x4fea32[_0x3705b0(0x1f7)]['id']}})[_0x3705b0(0x1a0)](handleEntityNotFound(_0xec85e,null))[_0x3705b0(0x1a0)](function(_0x4d6641){const _0x1ec9bf=_0x3705b0;if(_0x4d6641)return _0x27e9a4[_0x1ec9bf(0x1b7)]=_[_0x1ec9bf(0x1af)](db[_0x1ec9bf(0x218)]['rawAttributes']),_0x27e9a4[_0x1ec9bf(0x190)]=_[_0x1ec9bf(0x1af)](_0x4fea32[_0x1ec9bf(0x190)]),_0x27e9a4[_0x1ec9bf(0x1de)]=_[_0x1ec9bf(0x1ee)](_0x27e9a4[_0x1ec9bf(0x1b7)],_0x27e9a4[_0x1ec9bf(0x190)]),_0x589c88['attributes']=_[_0x1ec9bf(0x1ee)](_0x27e9a4['model'],qs['fields'](_0x4fea32['query']['fields'])),_0x589c88['attributes']=_0x589c88[_0x1ec9bf(0x217)][_0x1ec9bf(0x194)]?_0x589c88['attributes']:_0x27e9a4[_0x1ec9bf(0x1b7)],typeof _0x4fea32[_0x1ec9bf(0x190)][_0x1ec9bf(0x216)]===_0x1ec9bf(0x1a8)&&(_0x589c88[_0x1ec9bf(0x1d3)]=qs['limit'](_0x4fea32[_0x1ec9bf(0x190)][_0x1ec9bf(0x1d3)]),_0x589c88[_0x1ec9bf(0x206)]=qs[_0x1ec9bf(0x206)](_0x4fea32[_0x1ec9bf(0x190)][_0x1ec9bf(0x206)])),_0x589c88['order']=qs[_0x1ec9bf(0x219)](_0x4fea32[_0x1ec9bf(0x190)]['sort']),_0x589c88[_0x1ec9bf(0x1c5)]=qs['filters'](_[_0x1ec9bf(0x1eb)](_0x4fea32[_0x1ec9bf(0x190)],_0x27e9a4[_0x1ec9bf(0x1de)])),_0x589c88['where'][_0x1ec9bf(0x21b)]=_0x4d6641['id'],_0x4fea32[_0x1ec9bf(0x190)]['filter']&&(_0x589c88[_0x1ec9bf(0x1c5)]=_[_0x1ec9bf(0x224)](_0x589c88[_0x1ec9bf(0x1c5)],{[Op['or']]:_[_0x1ec9bf(0x20f)](_0x589c88[_0x1ec9bf(0x217)],function(_0x27f3b5){const _0x181ff1=_0x1ec9bf,_0x404ee1={};return _0x404ee1[_0x27f3b5]={[Op['like']]:'%'+_0x4fea32['query'][_0x181ff1(0x20a)]+'%'},_0x404ee1;})})),_0x589c88=_[_0x1ec9bf(0x224)]({},_0x589c88,_0x4fea32[_0x1ec9bf(0x1e0)]),db[_0x1ec9bf(0x218)][_0x1ec9bf(0x210)]({'where':_0x589c88['where']})[_0x1ec9bf(0x1a0)](function(_0x59a1b7){const _0x57c20a=_0x1ec9bf;return _0x2647b0[_0x57c20a(0x210)]=_0x59a1b7,_0x4fea32[_0x57c20a(0x190)][_0x57c20a(0x19b)]&&(_0x589c88['include']=[{'all':!![]}]),db[_0x57c20a(0x218)][_0x57c20a(0x19e)](_0x589c88);})[_0x1ec9bf(0x1a0)](function(_0x18debe){const _0x412762=_0x1ec9bf;return _0x2647b0[_0x412762(0x1e8)]=_0x18debe,_0x2647b0;});})[_0x3705b0(0x1a0)](respondWithFilteredResult(_0xec85e,_0x589c88))[_0x3705b0(0x1a5)](handleError(_0xec85e,null));},exports[a563_0x4329c0(0x1aa)]=function(_0x260a79,_0x13201e){const _0x4f024a=a563_0x4329c0;return db[_0x4f024a(0x1f1)][_0x4f024a(0x1b8)]({'where':{'id':_0x260a79['params']['id']}})[_0x4f024a(0x1a0)](handleEntityNotFound(_0x13201e,null))[_0x4f024a(0x1a0)](function(_0x15758b){const _0x1c8be6=_0x4f024a;if(_0x15758b)return _0x15758b['removeAnswers'](_0x260a79[_0x1c8be6(0x190)][_0x1c8be6(0x1b3)]);})['then'](respondWithStatusCode(_0x13201e,null))['catch'](handleError(_0x13201e,null));},exports[a563_0x4329c0(0x1f0)]=function(_0x126749,_0x4bdab8){const _0x36bcdd=a563_0x4329c0,_0x50b579={'body':_0x126749[_0x36bcdd(0x21d)],'channel':_0x36bcdd(0x1da)};let _0x1d5285=[],_0xdc54cd=[];const _0x1fd1b8={};let _0xec9b44=![];return db[_0x36bcdd(0x1ea)][_0x36bcdd(0x1e4)]()[_0x36bcdd(0x1a0)](function(_0x3e04c5){const _0x3b1cad=_0x36bcdd;if(!_0x3e04c5)throw new ValidationError('no\x20available\x20attributes');_0x1d5285=_['difference'](_[_0x3b1cad(0x1af)](_0x3e04c5),[_0x3b1cad(0x227),_0x3b1cad(0x1d0)]),_0xdc54cd=_['difference'](_[_0x3b1cad(0x1af)](_0x3e04c5),['createdAt','updatedAt',_0x3b1cad(0x1ec),_0x3b1cad(0x1e6)]);_0x126749[_0x3b1cad(0x21d)]['id']&&delete _0x126749[_0x3b1cad(0x21d)]['id'];if(_[_0x3b1cad(0x21e)](_0x126749['body'][_0x3b1cad(0x20d)]))throw new ValidationError(_0x3b1cad(0x198));if(_[_0x3b1cad(0x21e)](_0x126749[_0x3b1cad(0x21d)]['body'])||_0x126749['body']['body']==='')throw new ValidationError(_0x3b1cad(0x1a4));if(_['isNil'](_0x126749[_0x3b1cad(0x21d)][_0x3b1cad(0x1f4)]))throw new ValidationError(_0x3b1cad(0x1b0)+_0xdc54cd);if(!_[_0x3b1cad(0x19c)](_0xdc54cd,_0x126749[_0x3b1cad(0x21d)][_0x3b1cad(0x1f4)]))throw new ValidationError(_0x3b1cad(0x220)+_0xdc54cd);_0x1fd1b8[_0x126749['body'][_0x3b1cad(0x1f4)]]=_0x126749[_0x3b1cad(0x21d)][_0x3b1cad(0x20d)];})['then'](function(){const _0x2fbd58=_0x36bcdd;return db['OpenchannelAccount'][_0x2fbd58(0x1b8)]({'where':{'id':_0x126749[_0x2fbd58(0x1f7)]['id']},'include':[{'model':db[_0x2fbd58(0x1ac)],'as':'List','include':[{'model':db['CmContact'],'as':_0x2fbd58(0x200),'where':_0x1fd1b8,'limit':0x1,'order':[[_0x2fbd58(0x1d0),_0x2fbd58(0x202)]]}]},{'model':db['OpenchannelApplication'],'as':_0x2fbd58(0x1c0)}]});})['then'](handleEntityNotFound(_0x4bdab8,null))[_0x36bcdd(0x1a0)](function(_0x37e68b){const _0x5c3ccb=_0x36bcdd;if(_0x37e68b&&_0x37e68b[_0x5c3ccb(0x1d9)]){_0x50b579[_0x5c3ccb(0x1df)]=_0x37e68b,_0x50b579['applications']=_0x37e68b[_0x5c3ccb(0x1c0)],_0x50b579[_0x5c3ccb(0x209)]=_0x37e68b['List'],_0x50b579['applications']=_[_0x5c3ccb(0x192)](_0x50b579['applications'],[_0x5c3ccb(0x1dd)],['asc']);_0x50b579['account']['Applications']&&delete _0x50b579[_0x5c3ccb(0x1df)][_0x5c3ccb(0x1c0)];if(_0x50b579[_0x5c3ccb(0x1df)][_0x5c3ccb(0x1d9)]&&_0x50b579[_0x5c3ccb(0x1df)][_0x5c3ccb(0x1d9)]['Contacts'][_0x5c3ccb(0x194)])return _0x50b579[_0x5c3ccb(0x1df)][_0x5c3ccb(0x1d9)][_0x5c3ccb(0x200)][0x0];const _0x5093fa=_[_0x5c3ccb(0x1d8)](_0x126749['body'],{'firstName':_0x126749[_0x5c3ccb(0x21d)][_0x5c3ccb(0x20d)],'ListId':_0x37e68b['ListId']});return _0x5093fa[_0x126749[_0x5c3ccb(0x21d)][_0x5c3ccb(0x1f4)]]=_0x126749[_0x5c3ccb(0x21d)][_0x5c3ccb(0x20d)],db['CmContact'][_0x5c3ccb(0x214)](_0x5093fa,{'fields':_0x1d5285,'raw':!![]});}})['then'](handleEntityNotFound(_0x4bdab8,null))[_0x36bcdd(0x1a0)](function(_0x2fbd45){const _0x12b2a0=_0x36bcdd;_0x50b579['contact']=_0x2fbd45;if(_0x2fbd45){const _0x4581c1={'ContactId':_0x2fbd45['id'],'OpenchannelAccountId':_0x126749[_0x12b2a0(0x1f7)]['id'],'from':(_0x2fbd45['firstName']||'')+'\x20'+(_0x2fbd45[_0x12b2a0(0x19d)]||'')},_0x17f648={'OpenchannelAccountId':_0x126749[_0x12b2a0(0x1f7)]['id'],'closed':![]};if(_0x126749[_0x12b2a0(0x21d)][_0x12b2a0(0x203)])return _0x17f648[_0x12b2a0(0x203)]=_0x126749[_0x12b2a0(0x21d)][_0x12b2a0(0x203)],db[_0x12b2a0(0x213)][_0x12b2a0(0x1b8)]({'where':_0x17f648})['then'](function(_0x5007a1){const _0x23f59c=_0x12b2a0;if(_0x5007a1)return[_0x5007a1,![]];return _0x4581c1['threadId']=_0x126749[_0x23f59c(0x21d)][_0x23f59c(0x203)],_0x4581c1[_0x23f59c(0x1cf)]=_0x126749[_0x23f59c(0x21d)][_0x23f59c(0x1cf)],db['OpenchannelInteraction']['create'](_0x4581c1)[_0x23f59c(0x1a0)](function(_0x27ccf4){return[_0x27ccf4,!![]];});});else _0x17f648[_0x12b2a0(0x203)]=null;return _0x17f648['ContactId']=_0x2fbd45['id'],db[_0x12b2a0(0x213)][_0x12b2a0(0x1b8)]({'where':_0x17f648})[_0x12b2a0(0x1a0)](function(_0x195545){const _0x342d54=_0x12b2a0;if(_0x195545)return[_0x195545,![]];return db[_0x342d54(0x213)]['create'](_0x4581c1)[_0x342d54(0x1a0)](function(_0x2c43b8){return[_0x2c43b8,!![]];});});}})['then'](function([_0x1ddd6f,_0x2c2f99]){const _0x4aee3c=_0x36bcdd;if(_0x1ddd6f){_0xec9b44=_0x2c2f99;if(!_0x2c2f99){const _0x448c8a={'from':(_0x50b579[_0x4aee3c(0x197)]['firstName']||'')+'\x20'+(_0x50b579[_0x4aee3c(0x197)][_0x4aee3c(0x19d)]||'')};return _0x126749[_0x4aee3c(0x21d)][_0x4aee3c(0x203)]&&_0x126749[_0x4aee3c(0x21d)][_0x4aee3c(0x1cb)]&&_0x126749[_0x4aee3c(0x21d)][_0x4aee3c(0x203)]!=_0x126749['body'][_0x4aee3c(0x1cb)]&&(_0x448c8a['threadId']=_0x126749['body'][_0x4aee3c(0x1cb)]),_0x1ddd6f[_0x4aee3c(0x193)](_0x448c8a);}else return _0x1ddd6f;}})[_0x36bcdd(0x1a0)](function(_0x19b8cc){const _0x26fff9=_0x36bcdd;return _0x50b579['interaction']=_0x19b8cc[_0x26fff9(0x20c)]({'plain':!![]}),_0x50b579['interaction'][_0x26fff9(0x1d7)]=_0xec9b44,_0x50b579[_0x26fff9(0x1f8)]['created']&&(_0x50b579[_0x26fff9(0x1df)][_0x26fff9(0x1be)]&&_0x50b579[_0x26fff9(0x1c4)]['push']({'id':0x0,'priority':_0x50b579['applications']['length']+0x1,'app':_0x26fff9(0x1c9),'appdata':_0x26fff9(0x1ca),'interval':_0x26fff9(0x1fb)})),db[_0x26fff9(0x1a3)][_0x26fff9(0x214)]({'body':_0x126749[_0x26fff9(0x21d)][_0x26fff9(0x21d)],'OpenchannelAccountId':_0x126749[_0x26fff9(0x1f7)]['id'],'OpenchannelInteractionId':_0x19b8cc['id'],'direction':'in','ContactId':_0x50b579[_0x26fff9(0x197)]['id'],'AttachmentId':_0x126749[_0x26fff9(0x21d)][_0x26fff9(0x1ff)]});})[_0x36bcdd(0x1a0)](function(_0x2f6187){const _0x1c96ae=_0x36bcdd;_0x50b579[_0x1c96ae(0x1e1)]=_0x2f6187;if(_0x50b579[_0x1c96ae(0x1f8)]['UserId'])return db[_0x1c96ae(0x211)][_0x1c96ae(0x1b8)]({'attributes':['id','name'],'where':{'id':_0x50b579['interaction']['UserId']}})[_0x1c96ae(0x1a0)](function(_0x587494){const _0x1861e5=_0x1c96ae;return _0x587494&&(_0x50b579[_0x1861e5(0x1c4)]['unshift']({'id':0x0,'priority':0x0,'app':'agent','appdata':_0x587494['name']+','+(_0x50b579[_0x1861e5(0x1df)]['waitForTheAssignedAgent']||0xa),'interval':'*,*,*,*'}),_0x50b579[_0x1861e5(0x212)]=![]),respondWithRpcPromise(_0x1861e5(0x21a),_0x1861e5(0x1fc),_0x50b579);});return respondWithRpcPromise(_0x1c96ae(0x21a),'startRouting',_0x50b579);})[_0x36bcdd(0x1a0)](function(_0x2c4d57){const _0x53b817=_0x36bcdd;return respondWithRpcPromise(_0x53b817(0x1a9),_0x53b817(0x1a9),{'event':_0x53b817(0x1f0),'message':_0x2c4d57},client9002),_0x2c4d57;})['then'](respondWithResult(_0x4bdab8,null))['catch'](handleError(_0x4bdab8,null));},exports[a563_0x4329c0(0x191)]=function(_0x30599a,_0x5c65ff){const _0x4bd0ea=a563_0x4329c0;return db['OpenchannelAccount'][_0x4bd0ea(0x1b8)]({'where':{'id':_0x30599a[_0x4bd0ea(0x1f7)]['id']}})[_0x4bd0ea(0x1a0)](handleEntityNotFound(_0x5c65ff,null))[_0x4bd0ea(0x1a0)](function(_0x6ed283){const _0x12fe83=_0x4bd0ea;if(_0x6ed283)return db[_0x12fe83(0x201)][_0x12fe83(0x229)](function(_0x5d1848){const _0x3736e0=_0x12fe83;return db[_0x3736e0(0x1fa)][_0x3736e0(0x1b1)]({'where':{'OpenchannelAccountId':_0x30599a[_0x3736e0(0x1f7)]['id']},'transaction':_0x5d1848})[_0x3736e0(0x1a0)](function(){const _0x26de92=_0x3736e0,_0x11abf1=_['map'](_0x30599a[_0x26de92(0x21d)],function(_0x234e8d){const _0x1b4c55=_0x26de92;return _0x234e8d[_0x1b4c55(0x21b)]=_0x30599a['params']['id'],_0x234e8d;});return db[_0x26de92(0x1fa)][_0x26de92(0x1fd)](_0x11abf1,{'transaction':_0x5d1848});});})[_0x12fe83(0x1a0)](function(){const _0x2b84af=_0x12fe83;return db[_0x2b84af(0x1fa)]['findAndCountAll']({'where':{'OpenchannelAccountId':_0x30599a[_0x2b84af(0x1f7)]['id']},'order':_0x2b84af(0x1dd)});});})['then'](respondWithResult(_0x5c65ff,null))[_0x4bd0ea(0x1a5)](handleError(_0x5c65ff,null));},exports[a563_0x4329c0(0x1bd)]=function(_0x2338bb,_0x33702b){const _0x457ba4=a563_0x4329c0;let _0x465b1c={};const _0x550a17={};let _0x5d17b9,_0x10599d;return db[_0x457ba4(0x1f1)][_0x457ba4(0x1b8)]({'where':{'id':_0x2338bb[_0x457ba4(0x1f7)]['id']}})[_0x457ba4(0x1a0)](handleEntityNotFound(_0x33702b,null))[_0x457ba4(0x1a0)](function(_0x25e4ee){const _0xcad8e5=_0x457ba4;if(_0x25e4ee)return _0x5d17b9=_0x25e4ee,_0x550a17['model']=_[_0xcad8e5(0x1af)](db[_0xcad8e5(0x1fa)]['rawAttributes']),_0x550a17[_0xcad8e5(0x190)]=_[_0xcad8e5(0x1af)](_0x2338bb['query']),_0x550a17[_0xcad8e5(0x1de)]=_[_0xcad8e5(0x1ee)](_0x550a17[_0xcad8e5(0x1b7)],_0x550a17[_0xcad8e5(0x190)]),_0x465b1c[_0xcad8e5(0x217)]=_['intersection'](_0x550a17[_0xcad8e5(0x1b7)],qs['fields'](_0x2338bb[_0xcad8e5(0x190)][_0xcad8e5(0x1f2)])),_0x465b1c[_0xcad8e5(0x217)]=_0x465b1c[_0xcad8e5(0x217)][_0xcad8e5(0x194)]?_0x465b1c[_0xcad8e5(0x217)]:_0x550a17[_0xcad8e5(0x1b7)],_0x465b1c[_0xcad8e5(0x1c3)]=qs[_0xcad8e5(0x219)](_0x2338bb[_0xcad8e5(0x190)]['sort']),_0x465b1c[_0xcad8e5(0x1c5)]=qs[_0xcad8e5(0x1de)](_['pick'](_0x2338bb[_0xcad8e5(0x190)],_0x550a17['filters'])),_0x2338bb['query'][_0xcad8e5(0x20a)]&&(_0x465b1c[_0xcad8e5(0x1c5)]=_[_0xcad8e5(0x224)](_0x465b1c[_0xcad8e5(0x1c5)],{[Op['or']]:_[_0xcad8e5(0x20f)](_0x465b1c['attributes'],function(_0x11de59){const _0x2ca6b5=_0xcad8e5,_0x9d4155={};return _0x9d4155[_0x11de59]={[Op[_0x2ca6b5(0x1a6)]]:'%'+_0x2338bb[_0x2ca6b5(0x190)][_0x2ca6b5(0x20a)]+'%'},_0x9d4155;})})),_0x465b1c=_[_0xcad8e5(0x224)]({},_0x465b1c,_0x2338bb[_0xcad8e5(0x1e0)]),_0x5d17b9['getApplications'](_0x465b1c);})[_0x457ba4(0x1a0)](function(_0x832c9){const _0x12ee04=_0x457ba4;if(_0x832c9)return _0x10599d=_0x832c9[_0x12ee04(0x194)],typeof _0x2338bb['query'][_0x12ee04(0x216)]===_0x12ee04(0x1a8)&&(_0x465b1c[_0x12ee04(0x1d3)]=qs[_0x12ee04(0x1d3)](_0x2338bb[_0x12ee04(0x190)][_0x12ee04(0x1d3)]),_0x465b1c[_0x12ee04(0x206)]=qs['offset'](_0x2338bb['query']['offset'])),_0x5d17b9['getApplications'](_0x465b1c);})['then'](function(_0x902fcf){if(_0x902fcf)return _0x902fcf?{'count':_0x10599d,'rows':_0x902fcf}:null;})['then'](respondWithResult(_0x33702b,null))[_0x457ba4(0x1a5)](handleError(_0x33702b,null));},exports[a563_0x4329c0(0x1cd)]=function(_0x8fb6c1,_0x1c84fc){const _0x2632f9=a563_0x4329c0;let _0x13328c={'raw':![],'where':{}};const _0xd5e1c2={},_0x1e0bac={'count':0x0,'rows':[]};return db['OpenchannelAccount'][_0x2632f9(0x1b8)]({'where':{'id':_0x8fb6c1['params']['id']}})['then'](handleEntityNotFound(_0x1c84fc,null))[_0x2632f9(0x1a0)](function(_0x5e4580){const _0x568553=_0x2632f9;if(_0x5e4580)return _0xd5e1c2[_0x568553(0x1b7)]=_[_0x568553(0x1af)](db[_0x568553(0x213)][_0x568553(0x21c)]),_0xd5e1c2[_0x568553(0x190)]=_['keys'](_0x8fb6c1[_0x568553(0x190)]),_0xd5e1c2['filters']=_[_0x568553(0x1ee)](_0xd5e1c2[_0x568553(0x1b7)],_0xd5e1c2[_0x568553(0x190)]),_0x13328c[_0x568553(0x217)]=_['intersection'](_0xd5e1c2['model'],qs['fields'](_0x8fb6c1[_0x568553(0x190)][_0x568553(0x1f2)])),_0x13328c[_0x568553(0x217)]=_0x13328c[_0x568553(0x217)]['length']?_0x13328c['attributes']:_0xd5e1c2[_0x568553(0x1b7)],typeof _0x8fb6c1[_0x568553(0x190)]['nolimit']==='undefined'&&(_0x13328c[_0x568553(0x1d3)]=qs[_0x568553(0x1d3)](_0x8fb6c1[_0x568553(0x190)][_0x568553(0x1d3)]),_0x13328c[_0x568553(0x206)]=qs[_0x568553(0x206)](_0x8fb6c1[_0x568553(0x190)][_0x568553(0x206)])),_0x13328c[_0x568553(0x1c3)]=qs[_0x568553(0x219)](_0x8fb6c1[_0x568553(0x190)]['sort']),_0x13328c[_0x568553(0x1c5)]=qs['filters'](_[_0x568553(0x1eb)](_0x8fb6c1[_0x568553(0x190)],_0xd5e1c2['filters'])),_0x13328c[_0x568553(0x1c5)][_0x568553(0x21b)]=_0x5e4580['id'],_0x8fb6c1[_0x568553(0x190)]['filter']&&(_0x13328c[_0x568553(0x1c5)]=_[_0x568553(0x224)](_0x13328c[_0x568553(0x1c5)],{[Op['or']]:_['map'](_0x13328c['attributes'],function(_0x449935){const _0x5e093e=_0x568553,_0x1861b6={};return _0x1861b6[_0x449935]={[Op[_0x5e093e(0x1a6)]]:'%'+_0x8fb6c1['query'][_0x5e093e(0x20a)]+'%'},_0x1861b6;})})),_0x13328c=_[_0x568553(0x224)]({},_0x13328c,_0x8fb6c1['options']),db[_0x568553(0x213)]['count']({'where':_0x13328c['where']})[_0x568553(0x1a0)](function(_0x32f740){const _0x1f6ab5=_0x568553;return _0x1e0bac[_0x1f6ab5(0x210)]=_0x32f740,_0x8fb6c1[_0x1f6ab5(0x190)][_0x1f6ab5(0x19b)]&&(_0x13328c['include']=[{'model':db[_0x1f6ab5(0x1ea)],'as':'Contact','required':![]},{'model':db[_0x1f6ab5(0x211)],'as':_0x1f6ab5(0x20b),'attributes':[_0x1f6ab5(0x222),_0x1f6ab5(0x1c1),_0x1f6ab5(0x1e7)],'required':![]},{'model':db['Tag'],'as':_0x1f6ab5(0x195),'attributes':['id','name',_0x1f6ab5(0x1b6)],'where':_0x8fb6c1['query'][_0x1f6ab5(0x18f)]?{'id':_0x8fb6c1['query'][_0x1f6ab5(0x18f)]}:undefined,'required':_0x8fb6c1[_0x1f6ab5(0x190)]['tag']?!![]:![]}]),db[_0x1f6ab5(0x213)]['findAll'](_0x13328c);})[_0x568553(0x1a0)](function(_0x3cccc2){const _0x378135=_0x568553;return _0x1e0bac[_0x378135(0x1e8)]=_0x3cccc2,_0x1e0bac;});})[_0x2632f9(0x1a0)](respondWithFilteredResult(_0x1c84fc,_0x13328c))[_0x2632f9(0x1a5)](handleError(_0x1c84fc,null));},exports['addAgents']=function(_0x48a6ae,_0x205149){const _0x1697b5=a563_0x4329c0;return db[_0x1697b5(0x1f1)]['findOne']({'where':{'id':_0x48a6ae[_0x1697b5(0x1f7)]['id']}})[_0x1697b5(0x1a0)](function(_0x409cef){const _0x565697=_0x1697b5;if(_0x409cef)return _0x409cef[_0x565697(0x204)](_0x48a6ae[_0x565697(0x21d)][_0x565697(0x1b3)],{'through':_[_0x565697(0x215)](_0x48a6ae['body'],[_0x565697(0x1b3),'id'])})[_0x565697(0x1a0)](function(_0xdabeed){const _0x7431d6=_0x565697;for(let _0x20f618=0x0;_0x20f618<_0x48a6ae[_0x7431d6(0x21d)][_0x7431d6(0x1b3)][_0x7431d6(0x194)];_0x20f618+=0x1){socket[_0x7431d6(0x1a2)](_0x7431d6(0x1a7),{'UserId':_0x48a6ae[_0x7431d6(0x21d)][_0x7431d6(0x1b3)][_0x20f618],'OpenchannelAccountId':_0x48a6ae[_0x7431d6(0x1f7)]['id']});}return _0xdabeed;});})[_0x1697b5(0x1a0)](respondWithResult(_0x205149,null))[_0x1697b5(0x1a5)](handleError(_0x205149,null));},exports[a563_0x4329c0(0x19f)]=function(_0x276c08,_0x36ecea){const _0x2c786f=a563_0x4329c0;return db[_0x2c786f(0x1f1)][_0x2c786f(0x1b8)]({'where':{'id':_0x276c08[_0x2c786f(0x1f7)]['id']}})[_0x2c786f(0x1a0)](handleEntityNotFound(_0x36ecea,null))['then'](function(_0x28a352){const _0x2c9efa=_0x2c786f;if(_0x28a352)return _0x28a352[_0x2c9efa(0x19f)](_0x276c08[_0x2c9efa(0x190)][_0x2c9efa(0x1b3)])[_0x2c9efa(0x1a0)](function(){const _0x4fe071=_0x2c9efa;if(_[_0x4fe071(0x1ba)](_0x276c08[_0x4fe071(0x190)][_0x4fe071(0x1b3)]))for(let _0x327ae3=0x0;_0x327ae3<_0x276c08['query']['ids'][_0x4fe071(0x194)];_0x327ae3+=0x1){socket[_0x4fe071(0x1a2)](_0x4fe071(0x1ab),{'UserId':Number(_0x276c08['query'][_0x4fe071(0x1b3)][_0x327ae3]),'OpenchannelAccountId':Number(_0x276c08[_0x4fe071(0x1f7)]['id'])});}else socket[_0x4fe071(0x1a2)](_0x4fe071(0x1ab),{'UserId':Number(_0x276c08['query'][_0x4fe071(0x1b3)]),'OpenchannelAccountId':Number(_0x276c08['params']['id'])});});})[_0x2c786f(0x1a0)](respondWithStatusCode(_0x36ecea,null))[_0x2c786f(0x1a5)](handleError(_0x36ecea,null));},exports[a563_0x4329c0(0x1f6)]=function(_0x255a6a,_0x34be2a){const _0x19065e=a563_0x4329c0;let _0x318430={};const _0x10f752={};let _0x30d0e3,_0x339910;return db[_0x19065e(0x1f1)][_0x19065e(0x1b8)]({'where':{'id':_0x255a6a[_0x19065e(0x1f7)]['id']}})[_0x19065e(0x1a0)](handleEntityNotFound(_0x34be2a,null))[_0x19065e(0x1a0)](function(_0x401f93){const _0x1a5c2a=_0x19065e;if(_0x401f93)return _0x30d0e3=_0x401f93,_0x10f752[_0x1a5c2a(0x1b7)]=_['keys'](db['User']['rawAttributes']),_0x10f752['query']=_[_0x1a5c2a(0x1af)](_0x255a6a[_0x1a5c2a(0x190)]),_0x10f752['filters']=_['intersection'](_0x10f752[_0x1a5c2a(0x1b7)],_0x10f752[_0x1a5c2a(0x190)]),_0x318430['attributes']=_[_0x1a5c2a(0x1ee)](_0x10f752['model'],qs['fields'](_0x255a6a[_0x1a5c2a(0x190)]['fields'])),_0x318430[_0x1a5c2a(0x217)]=_0x318430[_0x1a5c2a(0x217)][_0x1a5c2a(0x194)]?_0x318430['attributes']:_0x10f752[_0x1a5c2a(0x1b7)],_0x318430[_0x1a5c2a(0x1c3)]=qs['sort'](_0x255a6a[_0x1a5c2a(0x190)][_0x1a5c2a(0x219)]),_0x318430[_0x1a5c2a(0x1c5)]=qs[_0x1a5c2a(0x1de)](_[_0x1a5c2a(0x1eb)](_0x255a6a[_0x1a5c2a(0x190)],_0x10f752[_0x1a5c2a(0x1de)])),_0x255a6a[_0x1a5c2a(0x190)][_0x1a5c2a(0x20a)]&&(_0x318430[_0x1a5c2a(0x1c5)]=_[_0x1a5c2a(0x224)](_0x318430[_0x1a5c2a(0x1c5)],{[Op['or']]:_[_0x1a5c2a(0x20f)](_0x318430[_0x1a5c2a(0x217)],function(_0x19dea2){const _0x819879=_0x1a5c2a,_0x4e3fc2={};return _0x4e3fc2[_0x19dea2]={[Op[_0x819879(0x1a6)]]:'%'+_0x255a6a[_0x819879(0x190)][_0x819879(0x20a)]+'%'},_0x4e3fc2;})})),_0x318430=_[_0x1a5c2a(0x224)]({},_0x318430,_0x255a6a[_0x1a5c2a(0x1e0)]),_0x30d0e3[_0x1a5c2a(0x1f6)](_0x318430);})['then'](function(_0x8648b4){const _0x4349f5=_0x19065e;if(_0x8648b4)return _0x339910=_0x8648b4[_0x4349f5(0x194)],typeof _0x255a6a[_0x4349f5(0x190)]['nolimit']===_0x4349f5(0x1a8)&&(_0x318430[_0x4349f5(0x1d3)]=qs['limit'](_0x255a6a[_0x4349f5(0x190)][_0x4349f5(0x1d3)]),_0x318430[_0x4349f5(0x206)]=qs['offset'](_0x255a6a[_0x4349f5(0x190)][_0x4349f5(0x206)])),_0x30d0e3[_0x4349f5(0x1f6)](_0x318430);})[_0x19065e(0x1a0)](function(_0x5f350c){if(_0x5f350c)return _0x5f350c?{'count':_0x339910,'rows':_0x5f350c}:null;})[_0x19065e(0x1a0)](respondWithResult(_0x34be2a,null))[_0x19065e(0x1a5)](handleError(_0x34be2a,null));},exports[a563_0x4329c0(0x21f)]=function(_0x412cfb,_0x3e49d9){const _0x5a120d=a563_0x4329c0;let _0x43b418,_0x8b27c1;if(_[_0x5a120d(0x21e)](_0x412cfb[_0x5a120d(0x21d)][_0x5a120d(0x21d)])||_0x412cfb[_0x5a120d(0x21d)][_0x5a120d(0x21d)]==='')throw new ValidationError(_0x5a120d(0x1a4));if(_[_0x5a120d(0x21e)](_0x412cfb[_0x5a120d(0x21d)]['to'])){}const _0x26f06f=_0x412cfb[_0x5a120d(0x21d)]['to'];return db[_0x5a120d(0x1f1)][_0x5a120d(0x1b8)]({'where':{'id':_0x412cfb['params']['id']}})[_0x5a120d(0x1a0)](handleEntityNotFound(_0x3e49d9,null))[_0x5a120d(0x1a0)](function(_0x531cb3){const _0x1bf713=_0x5a120d;if(_0x531cb3)return db[_0x1bf713(0x1f1)][_0x1bf713(0x1b8)]({'where':{'id':_0x531cb3['id']},'include':[{'model':db[_0x1bf713(0x1ac)],'as':'List','include':[{'model':db[_0x1bf713(0x1ea)],'as':'Contacts','where':{[_0x531cb3[_0x1bf713(0x1f4)]]:_0x26f06f},'limit':0x1,'order':[[_0x1bf713(0x1d0),'DESC']]}]}]})['then'](handleEntityNotFound(_0x3e49d9,null))[_0x1bf713(0x1a0)](function(_0x5204fe){const _0x7fab2=_0x1bf713;if(_0x5204fe&&_0x5204fe[_0x7fab2(0x1d9)]){_0x43b418=_0x5204fe[_0x7fab2(0x20c)]({'plain':!![]});if(_0x43b418[_0x7fab2(0x1d9)]&&_0x43b418[_0x7fab2(0x1d9)][_0x7fab2(0x200)][_0x7fab2(0x194)])return _0x43b418[_0x7fab2(0x1d9)][_0x7fab2(0x200)][0x0];return db[_0x7fab2(0x1ea)]['create'](_[_0x7fab2(0x1d8)](_0x412cfb[_0x7fab2(0x21d)],{'firstName':_0x26f06f,[_0x5204fe['mapKey']]:_0x26f06f,'phone':_0x26f06f,'ListId':_0x43b418[_0x7fab2(0x1e6)]}));}})['then'](handleEntityNotFound(_0x3e49d9,null))[_0x1bf713(0x1a0)](function(_0x13428a){const _0x265a8f=_0x1bf713;if(_0x13428a)return _0x8b27c1=_0x13428a,db[_0x265a8f(0x213)]['findOne']({'where':{'ContactId':_0x8b27c1['id'],'closed':![],'OpenchannelAccountId':_0x43b418['id']}})['then'](function(_0x55c46f){const _0x28b42b=_0x265a8f;if(_0x55c46f)return[_0x55c46f,![]];return db[_0x28b42b(0x213)][_0x28b42b(0x214)]({'UserId':_0x412cfb[_0x28b42b(0x1f5)]['id'],'ContactId':_0x8b27c1['id'],'OpenchannelAccountId':_0x43b418['id'],'lastMsgDirection':_0x28b42b(0x1bc),'Messages':[_[_0x28b42b(0x224)](_0x412cfb[_0x28b42b(0x21d)],{'read':![],'body':_0x412cfb[_0x28b42b(0x21d)][_0x28b42b(0x21d)],'OpenchannelAccountId':_0x43b418['id'],'UserId':_0x412cfb['user']['id'],'ContactId':_0x8b27c1['id']})]},{'include':[{'model':db[_0x28b42b(0x1a3)],'as':'Messages'}]})[_0x28b42b(0x1a0)](function(_0x431f70){return[_0x431f70,!![]];});});})[_0x1bf713(0x1a0)](function([_0x2ce0af,_0x55b004]){const _0x18af64=_0x1bf713;if(_0x55b004)return _0x2ce0af;return db[_0x18af64(0x1a3)][_0x18af64(0x214)](_[_0x18af64(0x224)](_0x412cfb['body'],{'read':![],'body':_0x412cfb['body']['body'],'OpenchannelAccountId':_0x43b418['id'],'OpenchannelInteractionId':_0x2ce0af['id'],'UserId':_0x412cfb['user']['id'],'ContactId':_0x8b27c1['id']}))['then'](function(_0x447ce0){const _0x42a63b=_0x18af64;return _0x2ce0af[_0x42a63b(0x19a)][_0x42a63b(0x1d6)]=[],_0x2ce0af[_0x42a63b(0x19a)]['Messages'][_0x42a63b(0x196)](_0x447ce0['dataValues']),_0x2ce0af;});});})['then'](respondWithResult(_0x3e49d9,null))[_0x5a120d(0x1a5)](handleError(_0x3e49d9,null));}; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.events.js b/server/api/openchannelAccount/openchannelAccount.events.js index 0037b82..600ccef 100644 --- a/server/api/openchannelAccount/openchannelAccount.events.js +++ b/server/api/openchannelAccount/openchannelAccount.events.js @@ -1 +1 @@ -const a564_0x57e7=['../../mysqldb','save','emit','setMaxListeners','addHook','undefined','events','update','exports','remove'];(function(_0x4855d9,_0x4af08b){const _0x57e72d=function(_0x16399b){while(--_0x16399b){_0x4855d9['push'](_0x4855d9['shift']());}};_0x57e72d(++_0x4af08b);}(a564_0x57e7,0x132));const a564_0x1639=function(_0x4855d9,_0x4af08b){_0x4855d9=_0x4855d9-0x180;let _0x57e72d=a564_0x57e7[_0x4855d9];return _0x57e72d;};const a564_0x457b43=a564_0x1639;'use strict';const EventEmitter=require(a564_0x457b43(0x180)),OpenchannelAccount=require(a564_0x457b43(0x184))['db']['OpenchannelAccount'],OpenchannelAccountEvents=new EventEmitter();OpenchannelAccountEvents[a564_0x457b43(0x187)](0x0);const events={'afterCreate':a564_0x457b43(0x185),'afterUpdate':a564_0x457b43(0x181),'afterDestroy':a564_0x457b43(0x183)};function emitEvent(_0x30c754){return function(_0x22be61){const _0x32dffe=a564_0x1639;OpenchannelAccountEvents[_0x32dffe(0x186)](_0x30c754+':'+_0x22be61['id'],_0x22be61),OpenchannelAccountEvents['emit'](_0x30c754,_0x22be61);};}for(const e in events){if(typeof events[e]!==a564_0x457b43(0x189)){const event=events[e];OpenchannelAccount[a564_0x457b43(0x188)](e,emitEvent(event));}}module[a564_0x457b43(0x182)]=OpenchannelAccountEvents; \ No newline at end of file +const a564_0xa6a5=['exports','setMaxListeners','save','OpenchannelAccount','events','undefined','emit','update','addHook','../../mysqldb','remove'];(function(_0x5ae0ca,_0x113f06){const _0xa6a57c=function(_0x53359c){while(--_0x53359c){_0x5ae0ca['push'](_0x5ae0ca['shift']());}};_0xa6a57c(++_0x113f06);}(a564_0xa6a5,0x138));const a564_0x5335=function(_0x5ae0ca,_0x113f06){_0x5ae0ca=_0x5ae0ca-0x1f2;let _0xa6a57c=a564_0xa6a5[_0x5ae0ca];return _0xa6a57c;};const a564_0x202a11=a564_0x5335;'use strict';const EventEmitter=require(a564_0x202a11(0x1f2)),OpenchannelAccount=require(a564_0x202a11(0x1f7))['db'][a564_0x202a11(0x1fc)],OpenchannelAccountEvents=new EventEmitter();OpenchannelAccountEvents[a564_0x202a11(0x1fa)](0x0);const events={'afterCreate':a564_0x202a11(0x1fb),'afterUpdate':a564_0x202a11(0x1f5),'afterDestroy':a564_0x202a11(0x1f8)};function emitEvent(_0x1174c5){return function(_0xca28a7){const _0x340cf0=a564_0x5335;OpenchannelAccountEvents[_0x340cf0(0x1f4)](_0x1174c5+':'+_0xca28a7['id'],_0xca28a7),OpenchannelAccountEvents[_0x340cf0(0x1f4)](_0x1174c5,_0xca28a7);};}for(const e in events){if(typeof events[e]!==a564_0x202a11(0x1f3)){const event=events[e];OpenchannelAccount[a564_0x202a11(0x1f6)](e,emitEvent(event));}}module[a564_0x202a11(0x1f9)]=OpenchannelAccountEvents; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.model.js b/server/api/openchannelAccount/openchannelAccount.model.js index 0cb670d..476b5c3 100644 --- a/server/api/openchannelAccount/openchannelAccount.model.js +++ b/server/api/openchannelAccount/openchannelAccount.model.js @@ -1 +1 @@ -const a565_0x3596=['exports','OpenchannelAccount','function','./openchannelAccount.attributes'];(function(_0x663e00,_0x420443){const _0x35962d=function(_0x4632e9){while(--_0x4632e9){_0x663e00['push'](_0x663e00['shift']());}};_0x35962d(++_0x420443);}(a565_0x3596,0xc8));const a565_0x4632=function(_0x663e00,_0x420443){_0x663e00=_0x663e00-0xa3;let _0x35962d=a565_0x3596[_0x663e00];return _0x35962d;};const a565_0x393e66=a565_0x4632;'use strict';const {Model}=require('sequelize'),{attributes}=require(a565_0x393e66(0xa6)),{options}=require('./openchannelAccount.options');class OpenchannelAccount extends Model{}function init(_0xfcfae1,_0xed52b1){const _0x1278fa=a565_0x393e66,_0x2dd434=options(_0xfcfae1),_0x31cf6f=typeof _0xed52b1===_0x1278fa(0xa5)?_0xed52b1(_0x2dd434):_0x2dd434;return OpenchannelAccount['init'](attributes,_0x31cf6f),OpenchannelAccount;}module[a565_0x393e66(0xa3)][a565_0x393e66(0xa4)]=OpenchannelAccount,module['exports']['init']=init; \ No newline at end of file +const a565_0x1a9d=['./openchannelAccount.attributes','OpenchannelAccount','init','function','exports','./openchannelAccount.options','sequelize'];(function(_0x1ff56c,_0x3dbe4c){const _0x1a9da9=function(_0x49e1b7){while(--_0x49e1b7){_0x1ff56c['push'](_0x1ff56c['shift']());}};_0x1a9da9(++_0x3dbe4c);}(a565_0x1a9d,0x1f2));const a565_0x49e1=function(_0x1ff56c,_0x3dbe4c){_0x1ff56c=_0x1ff56c-0xbb;let _0x1a9da9=a565_0x1a9d[_0x1ff56c];return _0x1a9da9;};const a565_0x2002a6=a565_0x49e1;'use strict';const {Model}=require(a565_0x2002a6(0xc0)),{attributes}=require(a565_0x2002a6(0xc1)),{options}=require(a565_0x2002a6(0xbf));class OpenchannelAccount extends Model{}function init(_0x2511a5,_0x4fedb8){const _0x3a0bd1=a565_0x2002a6,_0x713abf=options(_0x2511a5),_0x36f841=typeof _0x4fedb8===_0x3a0bd1(0xbd)?_0x4fedb8(_0x713abf):_0x713abf;return OpenchannelAccount[_0x3a0bd1(0xbc)](attributes,_0x36f841),OpenchannelAccount;}module['exports'][a565_0x2002a6(0xbb)]=OpenchannelAccount,module[a565_0x2002a6(0xbe)][a565_0x2002a6(0xbc)]=init; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.options.js b/server/api/openchannelAccount/openchannelAccount.options.js index b51c4e9..56b73d5 100644 --- a/server/api/openchannelAccount/openchannelAccount.options.js +++ b/server/api/openchannelAccount/openchannelAccount.options.js @@ -1 +1 @@ -var a566_0x3dfe=['exports','options'];(function(_0x26b6ac,_0x3f939c){var _0x3dfe22=function(_0x3c55a1){while(--_0x3c55a1){_0x26b6ac['push'](_0x26b6ac['shift']());}};_0x3dfe22(++_0x3f939c);}(a566_0x3dfe,0x1ba));var a566_0x3c55=function(_0x26b6ac,_0x3f939c){_0x26b6ac=_0x26b6ac-0x7d;var _0x3dfe22=a566_0x3dfe[_0x26b6ac];return _0x3dfe22;};var a566_0x502365=a566_0x3c55;function options(_0x2dbf2e){return{'sequelize':_0x2dbf2e,'tableName':'openchannel_accounts','paranoid':![],'indexes':[],'timestamps':!![]};}module[a566_0x502365(0x7d)][a566_0x502365(0x7e)]=options; \ No newline at end of file +var a566_0xb889=['openchannel_accounts','exports','options'];(function(_0x2a5b00,_0x527c57){var _0xb889c=function(_0x1d08df){while(--_0x1d08df){_0x2a5b00['push'](_0x2a5b00['shift']());}};_0xb889c(++_0x527c57);}(a566_0xb889,0x126));var a566_0x1d08=function(_0x2a5b00,_0x527c57){_0x2a5b00=_0x2a5b00-0x148;var _0xb889c=a566_0xb889[_0x2a5b00];return _0xb889c;};var a566_0x1cf156=a566_0x1d08;function options(_0x5a58cd){var _0x376b36=a566_0x1d08;return{'sequelize':_0x5a58cd,'tableName':_0x376b36(0x148),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a566_0x1cf156(0x149)][a566_0x1cf156(0x14a)]=options; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.rpc.js b/server/api/openchannelAccount/openchannelAccount.rpc.js index f9bfe4b..7ae0e4d 100644 --- a/server/api/openchannelAccount/openchannelAccount.rpc.js +++ b/server/api/openchannelAccount/openchannelAccount.rpc.js @@ -1 +1 @@ -const a567_0x1fdb=['./openchannelAccount.socket','../../rediscache'];(function(_0xf30604,_0x2abadd){const _0x1fdbc4=function(_0xa4f146){while(--_0xa4f146){_0xf30604['push'](_0xf30604['shift']());}};_0x1fdbc4(++_0x2abadd);}(a567_0x1fdb,0x1b4));const a567_0xa4f1=function(_0xf30604,_0x2abadd){_0xf30604=_0xf30604-0x72;let _0x1fdbc4=a567_0x1fdb[_0xf30604];return _0x1fdbc4;};const a567_0x1b7a24=a567_0xa4f1;'use strict';const {getSocket}=require(a567_0x1b7a24(0x73)),socket=getSocket();require(a567_0x1b7a24(0x72))['register'](socket); \ No newline at end of file +'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require('./openchannelAccount.socket')['register'](socket); \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.socket.js b/server/api/openchannelAccount/openchannelAccount.socket.js index 206960c..bf5234e 100644 --- a/server/api/openchannelAccount/openchannelAccount.socket.js +++ b/server/api/openchannelAccount/openchannelAccount.socket.js @@ -1 +1 @@ -const a568_0x4207=['update','emit','./openchannelAccount.events','register','length','save'];(function(_0x33c733,_0x28fe2d){const _0x4207dc=function(_0x413ee8){while(--_0x413ee8){_0x33c733['push'](_0x33c733['shift']());}};_0x4207dc(++_0x28fe2d);}(a568_0x4207,0x15c));const a568_0x413e=function(_0x33c733,_0x28fe2d){_0x33c733=_0x33c733-0x10c;let _0x4207dc=a568_0x4207[_0x33c733];return _0x4207dc;};const a568_0x19fd0c=a568_0x413e;'use strict';const OpenchannelAccountEvents=require(a568_0x19fd0c(0x10e)),events=[a568_0x19fd0c(0x111),'remove',a568_0x19fd0c(0x10c)];function createListener(_0x2f9433,_0x43654b){return function(_0x358aff){const _0x27af03=a568_0x413e;_0x43654b[_0x27af03(0x10d)](_0x2f9433,_0x358aff);};}exports[a568_0x19fd0c(0x10f)]=function(_0x17625a){const _0x48126e=a568_0x19fd0c;for(let _0x510501=0x0,_0x22ca9d=events[_0x48126e(0x110)];_0x510501<_0x22ca9d;_0x510501++){const _0x2a0f24=events[_0x510501],_0x13269d=createListener('openchannelAccount:'+_0x2a0f24,_0x17625a);OpenchannelAccountEvents['on'](_0x2a0f24,_0x13269d);}}; \ No newline at end of file +const a568_0x53f4=['openchannelAccount:','remove','update','length','save','register'];(function(_0x2a7513,_0x43a913){const _0x53f4dc=function(_0xc6a09d){while(--_0xc6a09d){_0x2a7513['push'](_0x2a7513['shift']());}};_0x53f4dc(++_0x43a913);}(a568_0x53f4,0x7b));const a568_0xc6a0=function(_0x2a7513,_0x43a913){_0x2a7513=_0x2a7513-0x1e0;let _0x53f4dc=a568_0x53f4[_0x2a7513];return _0x53f4dc;};const a568_0x5d7d46=a568_0xc6a0;'use strict';const OpenchannelAccountEvents=require('./openchannelAccount.events'),events=[a568_0x5d7d46(0x1e1),a568_0x5d7d46(0x1e4),a568_0x5d7d46(0x1e5)];function createListener(_0x3e430d,_0xd69770){return function(_0x2a9b3e){_0xd69770['emit'](_0x3e430d,_0x2a9b3e);};}exports[a568_0x5d7d46(0x1e2)]=function(_0x416fb2){const _0x2d1223=a568_0x5d7d46;for(let _0x22c6fe=0x0,_0x5a0d10=events[_0x2d1223(0x1e0)];_0x22c6fe<_0x5a0d10;_0x22c6fe++){const _0xbba02f=events[_0x22c6fe],_0x2a5642=createListener(_0x2d1223(0x1e3)+_0xbba02f,_0x416fb2);OpenchannelAccountEvents['on'](_0xbba02f,_0x2a5642);}}; \ No newline at end of file diff --git a/server/api/openchannelApplication/index.js b/server/api/openchannelApplication/index.js index 39eb72f..6efaa18 100644 --- a/server/api/openchannelApplication/index.js +++ b/server/api/openchannelApplication/index.js @@ -1 +1 @@ -const a569_0x2f4e=['destroy','post','put','index','delete','show','./openchannelApplication.controller','isAuthenticated','create','/:id','get','exports'];(function(_0xac4931,_0x27b16a){const _0x2f4e82=function(_0x1cac37){while(--_0x1cac37){_0xac4931['push'](_0xac4931['shift']());}};_0x2f4e82(++_0x27b16a);}(a569_0x2f4e,0x1a4));const a569_0x1cac=function(_0xac4931,_0x27b16a){_0xac4931=_0xac4931-0x75;let _0x2f4e82=a569_0x2f4e[_0xac4931];return _0x2f4e82;};const a569_0x597e16=a569_0x1cac;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a569_0x597e16(0x7b));router[a569_0x597e16(0x7f)]('/',auth[a569_0x597e16(0x7c)](),controller[a569_0x597e16(0x78)]),router['get'](a569_0x597e16(0x7e),auth[a569_0x597e16(0x7c)](),controller[a569_0x597e16(0x7a)]),router[a569_0x597e16(0x76)]('/',auth[a569_0x597e16(0x7c)](),controller[a569_0x597e16(0x7d)]),router[a569_0x597e16(0x77)](a569_0x597e16(0x7e),auth[a569_0x597e16(0x7c)](),controller['update']),router[a569_0x597e16(0x79)](a569_0x597e16(0x7e),auth[a569_0x597e16(0x7c)](),controller[a569_0x597e16(0x75)]),module[a569_0x597e16(0x80)]=router; \ No newline at end of file +const a569_0x1456=['./openchannelApplication.controller','post','Router','index','isAuthenticated','put','exports','create','show','delete','/:id','get'];(function(_0x248786,_0x71f275){const _0x145614=function(_0x3b5a95){while(--_0x3b5a95){_0x248786['push'](_0x248786['shift']());}};_0x145614(++_0x71f275);}(a569_0x1456,0x71));const a569_0x3b5a=function(_0x248786,_0x71f275){_0x248786=_0x248786-0x11f;let _0x145614=a569_0x1456[_0x248786];return _0x145614;};const a569_0x1d80be=a569_0x3b5a;'use strict';const express=require('express'),router=express[a569_0x1d80be(0x128)](),auth=require('../../components/auth/service'),controller=require(a569_0x1d80be(0x126));router[a569_0x1d80be(0x125)]('/',auth['isAuthenticated'](),controller[a569_0x1d80be(0x129)]),router[a569_0x1d80be(0x125)](a569_0x1d80be(0x124),auth[a569_0x1d80be(0x12a)](),controller[a569_0x1d80be(0x122)]),router[a569_0x1d80be(0x127)]('/',auth[a569_0x1d80be(0x12a)](),controller[a569_0x1d80be(0x121)]),router[a569_0x1d80be(0x11f)]('/:id',auth['isAuthenticated'](),controller['update']),router[a569_0x1d80be(0x123)](a569_0x1d80be(0x124),auth['isAuthenticated'](),controller['destroy']),module[a569_0x1d80be(0x120)]=router; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.attributes.js b/server/api/openchannelApplication/openchannelApplication.attributes.js index 3cce629..f9090b5 100644 --- a/server/api/openchannelApplication/openchannelApplication.attributes.js +++ b/server/api/openchannelApplication/openchannelApplication.attributes.js @@ -1 +1 @@ -const a570_0x286b=['STRING','*,*,*,*','noop','attributes','TEXT','sequelize','INTEGER'];(function(_0x2f8457,_0x318522){const _0x286b31=function(_0x1ca4e5){while(--_0x1ca4e5){_0x2f8457['push'](_0x2f8457['shift']());}};_0x286b31(++_0x318522);}(a570_0x286b,0x13f));const a570_0x1ca4=function(_0x2f8457,_0x318522){_0x2f8457=_0x2f8457-0x90;let _0x286b31=a570_0x286b[_0x2f8457];return _0x286b31;};const a570_0x48ae01=a570_0x1ca4;'use strict';const {DataTypes}=require(a570_0x48ae01(0x91)),attributes={'priority':{'type':DataTypes[a570_0x48ae01(0x92)],'allowNull':![]},'app':{'type':DataTypes[a570_0x48ae01(0x93)],'allowNull':![],'defaultValue':a570_0x48ae01(0x95)},'appdata':{'type':DataTypes[a570_0x48ae01(0x90)]()},'description':{'type':DataTypes[a570_0x48ae01(0x93)]},'interval':{'type':DataTypes[a570_0x48ae01(0x93)],'defaultValue':a570_0x48ae01(0x94)}};module['exports'][a570_0x48ae01(0x96)]=attributes; \ No newline at end of file +const a570_0x4722=['sequelize','noop','INTEGER','STRING','attributes','*,*,*,*'];(function(_0x23eb10,_0x4e5ae6){const _0x47227=function(_0xd67966){while(--_0xd67966){_0x23eb10['push'](_0x23eb10['shift']());}};_0x47227(++_0x4e5ae6);}(a570_0x4722,0xc5));const a570_0xd679=function(_0x23eb10,_0x4e5ae6){_0x23eb10=_0x23eb10-0xa2;let _0x47227=a570_0x4722[_0x23eb10];return _0x47227;};const a570_0x482b1e=a570_0xd679;'use strict';const {DataTypes}=require(a570_0x482b1e(0xa3)),attributes={'priority':{'type':DataTypes[a570_0x482b1e(0xa5)],'allowNull':![]},'app':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':a570_0x482b1e(0xa4)},'appdata':{'type':DataTypes['TEXT']()},'description':{'type':DataTypes[a570_0x482b1e(0xa6)]},'interval':{'type':DataTypes[a570_0x482b1e(0xa6)],'defaultValue':a570_0x482b1e(0xa2)}};module['exports'][a570_0x482b1e(0xa7)]=attributes; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.controller.js b/server/api/openchannelApplication/openchannelApplication.controller.js index 837c3a4..b44f0d1 100644 --- a/server/api/openchannelApplication/openchannelApplication.controller.js +++ b/server/api/openchannelApplication/openchannelApplication.controller.js @@ -1 +1 @@ -const a571_0x11cb=['VIRTUAL','error','api','include','end','type','show','findOne','stack','query','filter','options','model','index','limit','offset','json','includeAll','destroy','../../mysqldb','order','attributes','sequelize','update','merge','nolimit','pick','then','sort','../../config/logger','like','set','intersection','length','body','OpenchannelApplication','filters','rawAttributes','undefined','status','fields','where','keys','params','name','send','map','Content-Range','catch','sendStatus','key','count'];(function(_0x320f1a,_0x4cd1cd){const _0x11cb59=function(_0x4f29ec){while(--_0x4f29ec){_0x320f1a['push'](_0x320f1a['shift']());}};_0x11cb59(++_0x4cd1cd);}(a571_0x11cb,0x150));const a571_0x4f29=function(_0x320f1a,_0x4cd1cd){_0x320f1a=_0x320f1a-0x74;let _0x11cb59=a571_0x11cb[_0x320f1a];return _0x11cb59;};const a571_0x312c68=a571_0x4f29;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(a571_0x312c68(0x79))(a571_0x312c68(0x92)),{db}=require(a571_0x312c68(0xa3)),{Op}=require(a571_0x312c68(0xa6));function respondWithResult(_0x1fd812,_0x59e1da){return _0x59e1da=_0x59e1da||0xc8,function(_0x31c7a2){const _0x20fb93=a571_0x4f29;if(_0x31c7a2)return _0x1fd812['status'](_0x59e1da)[_0x20fb93(0xa0)](_0x31c7a2);};}function respondWithFilteredResult(_0x28d3b1,_0x47aaed){return function(_0x2704d4){const _0xd8f1e5=a571_0x4f29;if(_0x2704d4){const _0x36da5e=_0x2704d4[_0xd8f1e5(0x8f)],_0x215358=_0x47aaed['offset'];let _0x11e3e3=_0x47aaed[_0xd8f1e5(0x9f)]+_0x47aaed[_0xd8f1e5(0x9e)],_0x4d4816;return _0x11e3e3>=_0x36da5e?(_0x11e3e3=_0x36da5e,_0x4d4816=0xc8):_0x4d4816=0xce,_0x28d3b1[_0xd8f1e5(0x83)](_0x4d4816),_0x28d3b1[_0xd8f1e5(0x7b)](_0xd8f1e5(0x8b),_0x215358+'-'+_0x11e3e3+'/'+_0x36da5e)[_0xd8f1e5(0xa0)](_0x2704d4);}return null;};}function saveUpdates(_0x352dc6){return function(_0x51202b){const _0x23b5cb=a571_0x4f29;if(_0x51202b)return _0x51202b[_0x23b5cb(0xa7)](_0x352dc6)['then'](function(_0x34ea94){return _0x34ea94;});return null;};}function removeEntity(_0x2832f2){return function(_0x299e4d){const _0x2aed6f=a571_0x4f29;if(_0x299e4d)return _0x299e4d[_0x2aed6f(0xa2)]()[_0x2aed6f(0x77)](function(){const _0x2edce0=_0x2aed6f;_0x2832f2['status'](0xcc)[_0x2edce0(0x94)]();});};}function handleEntityNotFound(_0x4f0c7e){return function(_0x330730){const _0x233c2b=a571_0x4f29;return!_0x330730&&_0x4f0c7e[_0x233c2b(0x8d)](0x194),_0x330730;};}function handleError(_0x537927,_0x412eb0){return _0x412eb0=_0x412eb0||0x1f4,function(_0x282336){const _0x49fe56=a571_0x4f29;logger[_0x49fe56(0x91)](_0x282336[_0x49fe56(0x98)]),_0x282336['name']&&delete _0x282336[_0x49fe56(0x88)],_0x537927[_0x49fe56(0x83)](_0x412eb0)[_0x49fe56(0x89)](_0x282336);};}exports[a571_0x312c68(0x9d)]=function(_0x27ca6c,_0x25119f){const _0xc98fb=a571_0x312c68;let _0x783503={};const _0x13262c={},_0x5e0f51={'count':0x0,'rows':[]},_0x5b66d7=_['map'](db[_0xc98fb(0x7f)]['rawAttributes'],function(_0x1822a1){const _0x1b7286=_0xc98fb;return{'name':_0x1822a1['fieldName'],'type':_0x1822a1['type'][_0x1b7286(0x8e)]};});_0x13262c['model']=_[_0xc98fb(0x8a)](_0x5b66d7,_0xc98fb(0x88)),_0x13262c[_0xc98fb(0x99)]=_[_0xc98fb(0x86)](_0x27ca6c[_0xc98fb(0x99)]),_0x13262c[_0xc98fb(0x80)]=_[_0xc98fb(0x7c)](_0x13262c[_0xc98fb(0x9c)],_0x13262c[_0xc98fb(0x99)]),_0x783503[_0xc98fb(0xa5)]=_[_0xc98fb(0x7c)](_0x13262c[_0xc98fb(0x9c)],qs[_0xc98fb(0x84)](_0x27ca6c['query'][_0xc98fb(0x84)])),_0x783503[_0xc98fb(0xa5)]=_0x783503['attributes'][_0xc98fb(0x7d)]?_0x783503[_0xc98fb(0xa5)]:_0x13262c['model'];typeof _0x27ca6c[_0xc98fb(0x99)][_0xc98fb(0x75)]===_0xc98fb(0x82)&&(_0x783503[_0xc98fb(0x9e)]=qs[_0xc98fb(0x9e)](_0x27ca6c['query']['limit']),_0x783503[_0xc98fb(0x9f)]=qs[_0xc98fb(0x9f)](_0x27ca6c['query'][_0xc98fb(0x9f)]));_0x783503[_0xc98fb(0xa4)]=qs[_0xc98fb(0x78)](_0x27ca6c[_0xc98fb(0x99)][_0xc98fb(0x78)]),_0x783503[_0xc98fb(0x85)]=qs[_0xc98fb(0x80)](_[_0xc98fb(0x76)](_0x27ca6c[_0xc98fb(0x99)],_0x13262c[_0xc98fb(0x80)]),_0x5b66d7);_0x27ca6c['query']['filter']&&(_0x783503['where']=_[_0xc98fb(0x74)](_0x783503[_0xc98fb(0x85)],{[Op['or']]:_[_0xc98fb(0x8a)](_0x5b66d7,function(_0x1c7389){const _0x285b24=_0xc98fb;if(_0x1c7389[_0x285b24(0x95)]!==_0x285b24(0x90)){const _0x527ba1={};return _0x527ba1[_0x1c7389[_0x285b24(0x88)]]={[Op[_0x285b24(0x7a)]]:'%'+_0x27ca6c[_0x285b24(0x99)][_0x285b24(0x9a)]+'%'},_0x527ba1;}})}));_0x783503=_['merge']({},_0x783503,_0x27ca6c[_0xc98fb(0x9b)]);const _0x3ac248={'where':_0x783503[_0xc98fb(0x85)]};return db[_0xc98fb(0x7f)][_0xc98fb(0x8f)](_0x3ac248)['then'](function(_0xe1e922){const _0x32efc9=_0xc98fb;return _0x5e0f51[_0x32efc9(0x8f)]=_0xe1e922,_0x27ca6c[_0x32efc9(0x99)][_0x32efc9(0xa1)]&&(_0x783503[_0x32efc9(0x93)]=[{'all':!![]}]),db[_0x32efc9(0x7f)]['findAll'](_0x783503);})[_0xc98fb(0x77)](function(_0x4eb5d7){return _0x5e0f51['rows']=_0x4eb5d7,_0x5e0f51;})[_0xc98fb(0x77)](respondWithFilteredResult(_0x25119f,_0x783503))[_0xc98fb(0x8c)](handleError(_0x25119f,null));},exports[a571_0x312c68(0x96)]=function(_0x2a428e,_0x4edeab){const _0xe1cdd1=a571_0x312c68;let _0x289e2e={'raw':!![],'where':{'id':_0x2a428e['params']['id']}};const _0x58aa6f={};return _0x58aa6f[_0xe1cdd1(0x9c)]=_[_0xe1cdd1(0x86)](db['OpenchannelApplication'][_0xe1cdd1(0x81)]),_0x58aa6f['query']=_['keys'](_0x2a428e[_0xe1cdd1(0x99)]),_0x58aa6f['filters']=_[_0xe1cdd1(0x7c)](_0x58aa6f[_0xe1cdd1(0x9c)],_0x58aa6f[_0xe1cdd1(0x99)]),_0x289e2e['attributes']=_['intersection'](_0x58aa6f[_0xe1cdd1(0x9c)],qs[_0xe1cdd1(0x84)](_0x2a428e[_0xe1cdd1(0x99)][_0xe1cdd1(0x84)])),_0x289e2e[_0xe1cdd1(0xa5)]=_0x289e2e[_0xe1cdd1(0xa5)][_0xe1cdd1(0x7d)]?_0x289e2e[_0xe1cdd1(0xa5)]:_0x58aa6f['model'],_0x2a428e[_0xe1cdd1(0x99)][_0xe1cdd1(0xa1)]&&(_0x289e2e[_0xe1cdd1(0x93)]=[{'all':!![]}]),_0x289e2e=_[_0xe1cdd1(0x74)]({},_0x289e2e,_0x2a428e[_0xe1cdd1(0x9b)]),db[_0xe1cdd1(0x7f)]['findOne'](_0x289e2e)[_0xe1cdd1(0x77)](handleEntityNotFound(_0x4edeab,null))[_0xe1cdd1(0x77)](respondWithResult(_0x4edeab,null))['catch'](handleError(_0x4edeab,null));},exports['create']=function(_0x513342,_0x2cf3f8){const _0x23f2bc=a571_0x312c68;return db[_0x23f2bc(0x7f)]['create'](_0x513342[_0x23f2bc(0x7e)],{})['then'](respondWithResult(_0x2cf3f8,0xc9))[_0x23f2bc(0x8c)](handleError(_0x2cf3f8,null));},exports[a571_0x312c68(0xa7)]=function(_0x3eede6,_0x4e9cbc){const _0x2aed00=a571_0x312c68;return _0x3eede6['body']['id']&&delete _0x3eede6[_0x2aed00(0x7e)]['id'],db[_0x2aed00(0x7f)][_0x2aed00(0x97)]({'where':{'id':_0x3eede6[_0x2aed00(0x87)]['id']}})['then'](handleEntityNotFound(_0x4e9cbc,null))[_0x2aed00(0x77)](saveUpdates(_0x3eede6[_0x2aed00(0x7e)],null))[_0x2aed00(0x77)](respondWithResult(_0x4e9cbc,null))[_0x2aed00(0x8c)](handleError(_0x4e9cbc,null));},exports[a571_0x312c68(0xa2)]=function(_0x4099d6,_0x50da49){const _0x22a9e2=a571_0x312c68;return db[_0x22a9e2(0x7f)]['findOne']({'where':{'id':_0x4099d6[_0x22a9e2(0x87)]['id']}})['then'](handleEntityNotFound(_0x50da49,null))[_0x22a9e2(0x77)](removeEntity(_0x50da49,null))[_0x22a9e2(0x8c)](handleError(_0x50da49,null));}; \ No newline at end of file +const a571_0x4495=['filters','findOne','sort','keys','create','../../mysqldb','findAll','../../components/parsers/qs','index','then','fields','../../config/logger','VIRTUAL','options','fieldName','body','order','offset','destroy','rows','set','sendStatus','length','query','merge','nolimit','like','show','send','model','error','lodash','catch','map','params','where','undefined','rawAttributes','type','name','pick','count','status','include','OpenchannelApplication','json','attributes','filter','limit','intersection','end'];(function(_0x250939,_0x1d9b56){const _0x4495e1=function(_0x5b5cc7){while(--_0x5b5cc7){_0x250939['push'](_0x250939['shift']());}};_0x4495e1(++_0x1d9b56);}(a571_0x4495,0xdf));const a571_0x5b5c=function(_0x250939,_0x1d9b56){_0x250939=_0x250939-0x10e;let _0x4495e1=a571_0x4495[_0x250939];return _0x4495e1;};const a571_0x300893=a571_0x5b5c;'use strict';const _=require(a571_0x300893(0x11a)),qs=require(a571_0x300893(0x135)),logger=require(a571_0x300893(0x139))('api'),{db}=require(a571_0x300893(0x133)),{Op}=require('sequelize');function respondWithResult(_0x2f9d54,_0x3b53b9){return _0x3b53b9=_0x3b53b9||0xc8,function(_0x48d5c4){const _0x45118e=a571_0x5b5c;if(_0x48d5c4)return _0x2f9d54[_0x45118e(0x125)](_0x3b53b9)[_0x45118e(0x128)](_0x48d5c4);};}function respondWithFilteredResult(_0xfd1416,_0x59873b){return function(_0x1b6fa){const _0x5d8648=a571_0x5b5c;if(_0x1b6fa){const _0x2a3275=_0x1b6fa[_0x5d8648(0x124)],_0x13ba08=_0x59873b[_0x5d8648(0x13f)];let _0x5532f6=_0x59873b['offset']+_0x59873b[_0x5d8648(0x12b)],_0x4305b8;return _0x5532f6>=_0x2a3275?(_0x5532f6=_0x2a3275,_0x4305b8=0xc8):_0x4305b8=0xce,_0xfd1416[_0x5d8648(0x125)](_0x4305b8),_0xfd1416[_0x5d8648(0x10f)]('Content-Range',_0x13ba08+'-'+_0x5532f6+'/'+_0x2a3275)[_0x5d8648(0x128)](_0x1b6fa);}return null;};}function saveUpdates(_0x168e01){return function(_0x5bc059){const _0x14a447=a571_0x5b5c;if(_0x5bc059)return _0x5bc059['update'](_0x168e01)[_0x14a447(0x137)](function(_0x3f4ada){return _0x3f4ada;});return null;};}function removeEntity(_0x1e3a66){return function(_0x2ced7b){const _0x5859e4=a571_0x5b5c;if(_0x2ced7b)return _0x2ced7b[_0x5859e4(0x140)]()[_0x5859e4(0x137)](function(){const _0x4ef240=_0x5859e4;_0x1e3a66[_0x4ef240(0x125)](0xcc)[_0x4ef240(0x12d)]();});};}function handleEntityNotFound(_0x51f507){return function(_0x433c5d){const _0x4b8e4e=a571_0x5b5c;return!_0x433c5d&&_0x51f507[_0x4b8e4e(0x110)](0x194),_0x433c5d;};}function handleError(_0x4bb728,_0x481d56){return _0x481d56=_0x481d56||0x1f4,function(_0x26c7d5){const _0x510f21=a571_0x5b5c;logger[_0x510f21(0x119)](_0x26c7d5['stack']),_0x26c7d5[_0x510f21(0x122)]&&delete _0x26c7d5[_0x510f21(0x122)],_0x4bb728[_0x510f21(0x125)](_0x481d56)[_0x510f21(0x117)](_0x26c7d5);};}exports[a571_0x300893(0x136)]=function(_0x41ac15,_0x36950c){const _0x112c58=a571_0x300893;let _0x24ca43={};const _0x34abf8={},_0x59d5b0={'count':0x0,'rows':[]},_0x1f29db=_[_0x112c58(0x11c)](db[_0x112c58(0x127)]['rawAttributes'],function(_0x3fd619){const _0x279ab3=_0x112c58;return{'name':_0x3fd619[_0x279ab3(0x13c)],'type':_0x3fd619[_0x279ab3(0x121)]['key']};});_0x34abf8[_0x112c58(0x118)]=_[_0x112c58(0x11c)](_0x1f29db,_0x112c58(0x122)),_0x34abf8[_0x112c58(0x112)]=_['keys'](_0x41ac15['query']),_0x34abf8[_0x112c58(0x12e)]=_['intersection'](_0x34abf8[_0x112c58(0x118)],_0x34abf8[_0x112c58(0x112)]),_0x24ca43[_0x112c58(0x129)]=_['intersection'](_0x34abf8[_0x112c58(0x118)],qs['fields'](_0x41ac15['query'][_0x112c58(0x138)])),_0x24ca43['attributes']=_0x24ca43['attributes'][_0x112c58(0x111)]?_0x24ca43[_0x112c58(0x129)]:_0x34abf8[_0x112c58(0x118)];typeof _0x41ac15[_0x112c58(0x112)][_0x112c58(0x114)]===_0x112c58(0x11f)&&(_0x24ca43[_0x112c58(0x12b)]=qs[_0x112c58(0x12b)](_0x41ac15[_0x112c58(0x112)][_0x112c58(0x12b)]),_0x24ca43[_0x112c58(0x13f)]=qs[_0x112c58(0x13f)](_0x41ac15[_0x112c58(0x112)][_0x112c58(0x13f)]));_0x24ca43[_0x112c58(0x13e)]=qs[_0x112c58(0x130)](_0x41ac15['query'][_0x112c58(0x130)]),_0x24ca43[_0x112c58(0x11e)]=qs[_0x112c58(0x12e)](_[_0x112c58(0x123)](_0x41ac15[_0x112c58(0x112)],_0x34abf8[_0x112c58(0x12e)]),_0x1f29db);_0x41ac15[_0x112c58(0x112)][_0x112c58(0x12a)]&&(_0x24ca43[_0x112c58(0x11e)]=_['merge'](_0x24ca43['where'],{[Op['or']]:_[_0x112c58(0x11c)](_0x1f29db,function(_0x38f913){const _0x27262d=_0x112c58;if(_0x38f913[_0x27262d(0x121)]!==_0x27262d(0x13a)){const _0x22ae03={};return _0x22ae03[_0x38f913[_0x27262d(0x122)]]={[Op[_0x27262d(0x115)]]:'%'+_0x41ac15[_0x27262d(0x112)][_0x27262d(0x12a)]+'%'},_0x22ae03;}})}));_0x24ca43=_[_0x112c58(0x113)]({},_0x24ca43,_0x41ac15[_0x112c58(0x13b)]);const _0xe08bd7={'where':_0x24ca43[_0x112c58(0x11e)]};return db[_0x112c58(0x127)][_0x112c58(0x124)](_0xe08bd7)[_0x112c58(0x137)](function(_0x43387c){const _0x4c650d=_0x112c58;return _0x59d5b0[_0x4c650d(0x124)]=_0x43387c,_0x41ac15[_0x4c650d(0x112)]['includeAll']&&(_0x24ca43[_0x4c650d(0x126)]=[{'all':!![]}]),db[_0x4c650d(0x127)][_0x4c650d(0x134)](_0x24ca43);})['then'](function(_0x5567cf){const _0x40e077=_0x112c58;return _0x59d5b0[_0x40e077(0x10e)]=_0x5567cf,_0x59d5b0;})[_0x112c58(0x137)](respondWithFilteredResult(_0x36950c,_0x24ca43))[_0x112c58(0x11b)](handleError(_0x36950c,null));},exports[a571_0x300893(0x116)]=function(_0xc579ec,_0xf485d1){const _0x390d69=a571_0x300893;let _0x596162={'raw':!![],'where':{'id':_0xc579ec['params']['id']}};const _0x3a2591={};return _0x3a2591[_0x390d69(0x118)]=_[_0x390d69(0x131)](db[_0x390d69(0x127)][_0x390d69(0x120)]),_0x3a2591[_0x390d69(0x112)]=_[_0x390d69(0x131)](_0xc579ec[_0x390d69(0x112)]),_0x3a2591[_0x390d69(0x12e)]=_[_0x390d69(0x12c)](_0x3a2591[_0x390d69(0x118)],_0x3a2591[_0x390d69(0x112)]),_0x596162[_0x390d69(0x129)]=_[_0x390d69(0x12c)](_0x3a2591[_0x390d69(0x118)],qs[_0x390d69(0x138)](_0xc579ec[_0x390d69(0x112)][_0x390d69(0x138)])),_0x596162[_0x390d69(0x129)]=_0x596162[_0x390d69(0x129)][_0x390d69(0x111)]?_0x596162['attributes']:_0x3a2591[_0x390d69(0x118)],_0xc579ec[_0x390d69(0x112)]['includeAll']&&(_0x596162[_0x390d69(0x126)]=[{'all':!![]}]),_0x596162=_['merge']({},_0x596162,_0xc579ec[_0x390d69(0x13b)]),db['OpenchannelApplication'][_0x390d69(0x12f)](_0x596162)[_0x390d69(0x137)](handleEntityNotFound(_0xf485d1,null))[_0x390d69(0x137)](respondWithResult(_0xf485d1,null))[_0x390d69(0x11b)](handleError(_0xf485d1,null));},exports[a571_0x300893(0x132)]=function(_0x476d57,_0x1bc789){const _0x236677=a571_0x300893;return db['OpenchannelApplication'][_0x236677(0x132)](_0x476d57['body'],{})[_0x236677(0x137)](respondWithResult(_0x1bc789,0xc9))[_0x236677(0x11b)](handleError(_0x1bc789,null));},exports['update']=function(_0xaa321,_0x361039){const _0x3a6f82=a571_0x300893;return _0xaa321[_0x3a6f82(0x13d)]['id']&&delete _0xaa321[_0x3a6f82(0x13d)]['id'],db[_0x3a6f82(0x127)][_0x3a6f82(0x12f)]({'where':{'id':_0xaa321[_0x3a6f82(0x11d)]['id']}})[_0x3a6f82(0x137)](handleEntityNotFound(_0x361039,null))['then'](saveUpdates(_0xaa321['body'],null))['then'](respondWithResult(_0x361039,null))[_0x3a6f82(0x11b)](handleError(_0x361039,null));},exports[a571_0x300893(0x140)]=function(_0x1adba8,_0x3c23fe){const _0x2b56f4=a571_0x300893;return db[_0x2b56f4(0x127)]['findOne']({'where':{'id':_0x1adba8[_0x2b56f4(0x11d)]['id']}})['then'](handleEntityNotFound(_0x3c23fe,null))[_0x2b56f4(0x137)](removeEntity(_0x3c23fe,null))[_0x2b56f4(0x11b)](handleError(_0x3c23fe,null));}; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.model.js b/server/api/openchannelApplication/openchannelApplication.model.js index d0628bc..b7778be 100644 --- a/server/api/openchannelApplication/openchannelApplication.model.js +++ b/server/api/openchannelApplication/openchannelApplication.model.js @@ -1 +1 @@ -const a572_0x2aea=['OpenchannelApplication','sequelize','exports','function','init','./openchannelApplication.attributes'];(function(_0x32cec9,_0x2bda22){const _0x2aea93=function(_0x59b9fd){while(--_0x59b9fd){_0x32cec9['push'](_0x32cec9['shift']());}};_0x2aea93(++_0x2bda22);}(a572_0x2aea,0xf4));const a572_0x59b9=function(_0x32cec9,_0x2bda22){_0x32cec9=_0x32cec9-0x1e5;let _0x2aea93=a572_0x2aea[_0x32cec9];return _0x2aea93;};const a572_0x303690=a572_0x59b9;'use strict';const {Model}=require(a572_0x303690(0x1e8)),{attributes}=require(a572_0x303690(0x1e6)),{options}=require('./openchannelApplication.options');class OpenchannelApplication extends Model{}function init(_0xf9726c,_0x584d98){const _0x3e0be7=a572_0x303690,_0x52be20=options(_0xf9726c),_0x52dce2=typeof _0x584d98===_0x3e0be7(0x1ea)?_0x584d98(_0x52be20):_0x52be20;return OpenchannelApplication[_0x3e0be7(0x1e5)](attributes,_0x52dce2),OpenchannelApplication;}module[a572_0x303690(0x1e9)][a572_0x303690(0x1e7)]=OpenchannelApplication,module['exports'][a572_0x303690(0x1e5)]=init; \ No newline at end of file +const a572_0xe649=['init','./openchannelApplication.attributes','./openchannelApplication.options','exports','OpenchannelApplication'];(function(_0x5c5f46,_0x14a70b){const _0xe64939=function(_0x2c61f4){while(--_0x2c61f4){_0x5c5f46['push'](_0x5c5f46['shift']());}};_0xe64939(++_0x14a70b);}(a572_0xe649,0x1a1));const a572_0x2c61=function(_0x5c5f46,_0x14a70b){_0x5c5f46=_0x5c5f46-0xd3;let _0xe64939=a572_0xe649[_0x5c5f46];return _0xe64939;};const a572_0xb2a936=a572_0x2c61;'use strict';const {Model}=require('sequelize'),{attributes}=require(a572_0xb2a936(0xd7)),{options}=require(a572_0xb2a936(0xd3));class OpenchannelApplication extends Model{}function init(_0xf3183f,_0x1d101f){const _0x9336e7=a572_0xb2a936,_0x59a122=options(_0xf3183f),_0x3834bb=typeof _0x1d101f==='function'?_0x1d101f(_0x59a122):_0x59a122;return OpenchannelApplication[_0x9336e7(0xd6)](attributes,_0x3834bb),OpenchannelApplication;}module['exports'][a572_0xb2a936(0xd5)]=OpenchannelApplication,module[a572_0xb2a936(0xd4)][a572_0xb2a936(0xd6)]=init; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.options.js b/server/api/openchannelApplication/openchannelApplication.options.js index d389e67..2f8f4c2 100644 --- a/server/api/openchannelApplication/openchannelApplication.options.js +++ b/server/api/openchannelApplication/openchannelApplication.options.js @@ -1 +1 @@ -var a573_0x5021=['utf8mb4_unicode_ci','options','exports','openchannel_applications','utf8mb4'];(function(_0x62dffd,_0x5698ef){var _0x502138=function(_0x263432){while(--_0x263432){_0x62dffd['push'](_0x62dffd['shift']());}};_0x502138(++_0x5698ef);}(a573_0x5021,0xb1));var a573_0x2634=function(_0x62dffd,_0x5698ef){_0x62dffd=_0x62dffd-0x84;var _0x502138=a573_0x5021[_0x62dffd];return _0x502138;};var a573_0x4a5dac=a573_0x2634;function options(_0x5e334d){var _0xe77b2f=a573_0x2634;return{'sequelize':_0x5e334d,'tableName':_0xe77b2f(0x85),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xe77b2f(0x86),'collate':_0xe77b2f(0x87)};}module[a573_0x4a5dac(0x84)][a573_0x4a5dac(0x88)]=options; \ No newline at end of file +var a573_0x3890=['exports','options'];(function(_0x277191,_0xf88f67){var _0x3890d1=function(_0x513807){while(--_0x513807){_0x277191['push'](_0x277191['shift']());}};_0x3890d1(++_0xf88f67);}(a573_0x3890,0x1f3));var a573_0x5138=function(_0x277191,_0xf88f67){_0x277191=_0x277191-0x125;var _0x3890d1=a573_0x3890[_0x277191];return _0x3890d1;};var a573_0x303da1=a573_0x5138;function options(_0x3fe216){return{'sequelize':_0x3fe216,'tableName':'openchannel_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'};}module[a573_0x303da1(0x126)][a573_0x303da1(0x125)]=options; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.rpc.js b/server/api/openchannelApplication/openchannelApplication.rpc.js index 77d723e..2be2278 100644 --- a/server/api/openchannelApplication/openchannelApplication.rpc.js +++ b/server/api/openchannelApplication/openchannelApplication.rpc.js @@ -1 +1 @@ -const a574_0x5934=['where','update','limit','then','options','error','attributes','info','../../config/logger','rpc','stringify','message','UpdateOpenchannelApplication','catch','../../mysqldb','debug','raw'];(function(_0x44e766,_0x1d421c){const _0x59340b=function(_0x36e663){while(--_0x36e663){_0x44e766['push'](_0x44e766['shift']());}};_0x59340b(++_0x1d421c);}(a574_0x5934,0x160));const a574_0x36e6=function(_0x44e766,_0x1d421c){_0x44e766=_0x44e766-0xea;let _0x59340b=a574_0x5934[_0x44e766];return _0x59340b;};const a574_0xb1d898=a574_0x36e6;'use strict';const db=require(a574_0xb1d898(0xec))['db'],logger=require(a574_0xb1d898(0xf7))(a574_0xb1d898(0xf8));exports[a574_0xb1d898(0xea)]=function(_0x1abef3){const _0x5eed7d=this;return new Promise(function(_0x3eb67e,_0x5ab478){const _0x1a2fe6=a574_0x36e6;return db['OpenchannelApplication'][_0x1a2fe6(0xf0)](_0x1abef3['body'],{'raw':_0x1abef3[_0x1a2fe6(0xf3)]?_0x1abef3[_0x1a2fe6(0xf3)][_0x1a2fe6(0xee)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1abef3['options']?_0x1abef3['options'][_0x1a2fe6(0xef)]||null:null,'attributes':_0x1abef3[_0x1a2fe6(0xf3)]?_0x1abef3[_0x1a2fe6(0xf3)][_0x1a2fe6(0xf5)]||null:null,'limit':_0x1abef3[_0x1a2fe6(0xf3)]?_0x1abef3[_0x1a2fe6(0xf3)][_0x1a2fe6(0xf1)]||null:null})[_0x1a2fe6(0xf2)](function(_0x4a063e){const _0x4b0b19=_0x1a2fe6;logger[_0x4b0b19(0xf6)](_0x4b0b19(0xea),_0x1abef3),logger[_0x4b0b19(0xed)](_0x4b0b19(0xea),_0x1abef3,JSON[_0x4b0b19(0xf9)](_0x4a063e)),_0x3eb67e(_0x4a063e);})[_0x1a2fe6(0xeb)](function(_0x5d30e2){const _0x3a2b0b=_0x1a2fe6;logger[_0x3a2b0b(0xf4)](_0x3a2b0b(0xea),_0x5d30e2[_0x3a2b0b(0xfa)],_0x1abef3),_0x5ab478(_0x5eed7d[_0x3a2b0b(0xf4)](0x1f4,_0x5d30e2['message']));});});}; \ No newline at end of file +const a574_0x2066=['info','then','UpdateOpenchannelApplication','body','../../config/logger','message','OpenchannelApplication','error','attributes','limit','raw','options','where','catch','../../mysqldb','rpc'];(function(_0x18115b,_0x1aaea4){const _0x2066bd=function(_0xf7113e){while(--_0xf7113e){_0x18115b['push'](_0x18115b['shift']());}};_0x2066bd(++_0x1aaea4);}(a574_0x2066,0x151));const a574_0xf711=function(_0x18115b,_0x1aaea4){_0x18115b=_0x18115b-0x127;let _0x2066bd=a574_0x2066[_0x18115b];return _0x2066bd;};const a574_0x14da03=a574_0xf711;'use strict';const db=require(a574_0x14da03(0x134))['db'],logger=require(a574_0x14da03(0x12a))(a574_0x14da03(0x135));exports['UpdateOpenchannelApplication']=function(_0x1ae070){const _0x162f01=this;return new Promise(function(_0x422408,_0x5dfed0){const _0x164511=a574_0xf711;return db[_0x164511(0x12c)]['update'](_0x1ae070[_0x164511(0x129)],{'raw':_0x1ae070[_0x164511(0x131)]?_0x1ae070[_0x164511(0x131)][_0x164511(0x130)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1ae070[_0x164511(0x131)]?_0x1ae070[_0x164511(0x131)][_0x164511(0x132)]||null:null,'attributes':_0x1ae070[_0x164511(0x131)]?_0x1ae070[_0x164511(0x131)][_0x164511(0x12e)]||null:null,'limit':_0x1ae070[_0x164511(0x131)]?_0x1ae070[_0x164511(0x131)][_0x164511(0x12f)]||null:null})[_0x164511(0x127)](function(_0x159f31){const _0x5b6939=_0x164511;logger[_0x5b6939(0x136)](_0x5b6939(0x128),_0x1ae070),logger['debug'](_0x5b6939(0x128),_0x1ae070,JSON['stringify'](_0x159f31)),_0x422408(_0x159f31);})[_0x164511(0x133)](function(_0x15cba7){const _0x138ccb=_0x164511;logger[_0x138ccb(0x12d)](_0x138ccb(0x128),_0x15cba7[_0x138ccb(0x12b)],_0x1ae070),_0x5dfed0(_0x162f01[_0x138ccb(0x12d)](0x1f4,_0x15cba7[_0x138ccb(0x12b)]));});});}; \ No newline at end of file diff --git a/server/api/openchannelInteraction/index.js b/server/api/openchannelInteraction/index.js index e089b7b..51c193d 100644 --- a/server/api/openchannelInteraction/index.js +++ b/server/api/openchannelInteraction/index.js @@ -1 +1 @@ -const a575_0x4c14=['get','post','/:id/tags','/:id/messages','index','isAuthenticated','addTags','/:id/download','describe','openchannelinteraction:destroy','/:id','create','destroy','../../components/auth/service','openchannelinteraction:addtags','removeTags','put','tracked','openchannel','/describe','delete'];(function(_0x548871,_0xcecd23){const _0x4c1432=function(_0x68c3ad){while(--_0x68c3ad){_0x548871['push'](_0x548871['shift']());}};_0x4c1432(++_0xcecd23);}(a575_0x4c14,0x111));const a575_0x68c3=function(_0x548871,_0xcecd23){_0x548871=_0x548871-0x14f;let _0x4c1432=a575_0x4c14[_0x548871];return _0x4c1432;};const a575_0xd8b741=a575_0x68c3;'use strict';const express=require('express'),router=express['Router'](),auth=require(a575_0xd8b741(0x15c)),interaction=require('../../components/interaction/service'),controller=require('./openchannelInteraction.controller');router[a575_0xd8b741(0x14f)]('/',auth[a575_0xd8b741(0x154)](),controller[a575_0xd8b741(0x153)]),router[a575_0xd8b741(0x14f)](a575_0xd8b741(0x162),auth[a575_0xd8b741(0x154)](),controller[a575_0xd8b741(0x157)]),router[a575_0xd8b741(0x14f)](a575_0xd8b741(0x159),auth[a575_0xd8b741(0x154)](),controller['show']),router[a575_0xd8b741(0x14f)](a575_0xd8b741(0x152),auth[a575_0xd8b741(0x154)](),controller['getMessages']),router['get'](a575_0xd8b741(0x156),auth[a575_0xd8b741(0x154)](),controller['download']),router[a575_0xd8b741(0x150)]('/',auth[a575_0xd8b741(0x154)](),controller[a575_0xd8b741(0x15a)]),router['post'](a575_0xd8b741(0x152),auth[a575_0xd8b741(0x154)](),controller['addMessage']),router[a575_0xd8b741(0x150)](a575_0xd8b741(0x151),auth[a575_0xd8b741(0x154)](),interaction[a575_0xd8b741(0x160)](a575_0xd8b741(0x161),a575_0xd8b741(0x15d)),controller[a575_0xd8b741(0x155)]),router[a575_0xd8b741(0x15f)](a575_0xd8b741(0x159),auth[a575_0xd8b741(0x154)](),interaction[a575_0xd8b741(0x160)]('openchannel','openchannelinteraction:update'),controller['update']),router[a575_0xd8b741(0x163)]('/:id',auth['isAuthenticated'](),interaction[a575_0xd8b741(0x160)](a575_0xd8b741(0x161),a575_0xd8b741(0x158)),controller[a575_0xd8b741(0x15b)]),router[a575_0xd8b741(0x163)]('/:id/tags',auth['isAuthenticated'](),controller[a575_0xd8b741(0x15e)]),module['exports']=router; \ No newline at end of file +const a575_0x3365=['removeTags','openchannelinteraction:update','destroy','../../components/interaction/service','./openchannelInteraction.controller','openchannelinteraction:destroy','/:id/download','tracked','put','exports','isAuthenticated','openchannelinteraction:addtags','/describe','getMessages','addTags','openchannel','download','describe','/:id','delete','show','/:id/messages','Router','../../components/auth/service','update','post','get','index','/:id/tags'];(function(_0x11d46c,_0x519f0e){const _0x336583=function(_0x3d4d6f){while(--_0x3d4d6f){_0x11d46c['push'](_0x11d46c['shift']());}};_0x336583(++_0x519f0e);}(a575_0x3365,0x1a9));const a575_0x3d4d=function(_0x11d46c,_0x519f0e){_0x11d46c=_0x11d46c-0xa1;let _0x336583=a575_0x3365[_0x11d46c];return _0x336583;};const a575_0x5808c1=a575_0x3d4d;'use strict';const express=require('express'),router=express[a575_0x5808c1(0xa4)](),auth=require(a575_0x5808c1(0xa5)),interaction=require(a575_0x5808c1(0xae)),controller=require(a575_0x5808c1(0xaf));router[a575_0x5808c1(0xa8)]('/',auth[a575_0x5808c1(0xb5)](),controller[a575_0x5808c1(0xa9)]),router[a575_0x5808c1(0xa8)](a575_0x5808c1(0xb7),auth['isAuthenticated'](),controller[a575_0x5808c1(0xbc)]),router[a575_0x5808c1(0xa8)]('/:id',auth[a575_0x5808c1(0xb5)](),controller[a575_0x5808c1(0xa2)]),router[a575_0x5808c1(0xa8)](a575_0x5808c1(0xa3),auth['isAuthenticated'](),controller[a575_0x5808c1(0xb8)]),router[a575_0x5808c1(0xa8)](a575_0x5808c1(0xb1),auth['isAuthenticated'](),controller[a575_0x5808c1(0xbb)]),router[a575_0x5808c1(0xa7)]('/',auth[a575_0x5808c1(0xb5)](),controller['create']),router[a575_0x5808c1(0xa7)](a575_0x5808c1(0xa3),auth[a575_0x5808c1(0xb5)](),controller['addMessage']),router[a575_0x5808c1(0xa7)](a575_0x5808c1(0xaa),auth[a575_0x5808c1(0xb5)](),interaction['tracked'](a575_0x5808c1(0xba),a575_0x5808c1(0xb6)),controller[a575_0x5808c1(0xb9)]),router[a575_0x5808c1(0xb3)](a575_0x5808c1(0xbd),auth[a575_0x5808c1(0xb5)](),interaction[a575_0x5808c1(0xb2)](a575_0x5808c1(0xba),a575_0x5808c1(0xac)),controller[a575_0x5808c1(0xa6)]),router[a575_0x5808c1(0xa1)](a575_0x5808c1(0xbd),auth[a575_0x5808c1(0xb5)](),interaction['tracked']('openchannel',a575_0x5808c1(0xb0)),controller[a575_0x5808c1(0xad)]),router[a575_0x5808c1(0xa1)](a575_0x5808c1(0xaa),auth[a575_0x5808c1(0xb5)](),controller[a575_0x5808c1(0xab)]),module[a575_0x5808c1(0xb4)]=router; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.attributes.js b/server/api/openchannelInteraction/openchannelInteraction.attributes.js index 52993f0..2d29d89 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.attributes.js +++ b/server/api/openchannelInteraction/openchannelInteraction.attributes.js @@ -1 +1 @@ -const a576_0x4750=['sequelize','DATE','STRING','ENUM','exports','BOOLEAN','out'];(function(_0x1f1d43,_0x4b5345){const _0x47509a=function(_0x5d15ee){while(--_0x5d15ee){_0x1f1d43['push'](_0x1f1d43['shift']());}};_0x47509a(++_0x4b5345);}(a576_0x4750,0x16a));const a576_0x5d15=function(_0x1f1d43,_0x4b5345){_0x1f1d43=_0x1f1d43-0xfa;let _0x47509a=a576_0x4750[_0x1f1d43];return _0x47509a;};const a576_0x100e3e=a576_0x5d15;'use strict';const {DataTypes}=require(a576_0x100e3e(0xfc)),attributes={'closed':{'type':DataTypes[a576_0x100e3e(0xfa)],'defaultValue':![]},'closedAt':{'type':DataTypes[a576_0x100e3e(0xfd)]},'disposition':{'type':DataTypes[a576_0x100e3e(0xfe)]},'secondDisposition':{'type':DataTypes['STRING']},'thirdDisposition':{'type':DataTypes[a576_0x100e3e(0xfe)]},'note':{'type':DataTypes[a576_0x100e3e(0xfe)]},'read1stAt':{'type':DataTypes[a576_0x100e3e(0xfd)]},'threadId':{'type':DataTypes[a576_0x100e3e(0xfe)]},'externalUrl':{'type':DataTypes[a576_0x100e3e(0xfe)]},'lastMsgAt':{'type':DataTypes[a576_0x100e3e(0xfd)]},'lastMsgDirection':{'type':DataTypes[a576_0x100e3e(0xff)]('in',a576_0x100e3e(0xfb)),'defaultValue':'in','allowNull':![]},'from':{'type':DataTypes[a576_0x100e3e(0xfe)]}};module[a576_0x100e3e(0x100)]['attributes']=attributes; \ No newline at end of file +const a576_0xb9f4=['ENUM','attributes','DATE','sequelize','out','BOOLEAN','STRING'];(function(_0x15ad51,_0x479a6e){const _0xb9f4bc=function(_0x375dde){while(--_0x375dde){_0x15ad51['push'](_0x15ad51['shift']());}};_0xb9f4bc(++_0x479a6e);}(a576_0xb9f4,0x134));const a576_0x375d=function(_0x15ad51,_0x479a6e){_0x15ad51=_0x15ad51-0x1a8;let _0xb9f4bc=a576_0xb9f4[_0x15ad51];return _0xb9f4bc;};const a576_0x11bb3d=a576_0x375d;'use strict';const {DataTypes}=require(a576_0x11bb3d(0x1ab)),attributes={'closed':{'type':DataTypes[a576_0x11bb3d(0x1ad)],'defaultValue':![]},'closedAt':{'type':DataTypes[a576_0x11bb3d(0x1aa)]},'disposition':{'type':DataTypes[a576_0x11bb3d(0x1ae)]},'secondDisposition':{'type':DataTypes[a576_0x11bb3d(0x1ae)]},'thirdDisposition':{'type':DataTypes['STRING']},'note':{'type':DataTypes[a576_0x11bb3d(0x1ae)]},'read1stAt':{'type':DataTypes['DATE']},'threadId':{'type':DataTypes['STRING']},'externalUrl':{'type':DataTypes[a576_0x11bb3d(0x1ae)]},'lastMsgAt':{'type':DataTypes['DATE']},'lastMsgDirection':{'type':DataTypes[a576_0x11bb3d(0x1a8)]('in',a576_0x11bb3d(0x1ac)),'defaultValue':'in','allowNull':![]},'from':{'type':DataTypes[a576_0x11bb3d(0x1ae)]}};module['exports'][a576_0x11bb3d(0x1a9)]=attributes; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.controller.js b/server/api/openchannelInteraction/openchannelInteraction.controller.js index d043dba..da833d9 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.controller.js +++ b/server/api/openchannelInteraction/openchannelInteraction.controller.js @@ -1 +1 @@ -const a577_0x9e35=['undefined','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','t.id\x20IN\x20?','search','sendStatus','json','forEach','Tags','Attachment','parse','$substring','fieldName','intersection','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','rows','like','pick','i.OpenchannelAccountId\x20IS\x20NULL','basename','threadId','some','push','transcript-%d-%s.zip','c.email','status','update','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','downloadInteraction.html','includeAll','left_join','direction','i.OpenchannelAccountId\x20IS\x20NOT\x20NULL','it.OpenchannelInteractionId\x20=\x20i.id','OpenchannelAccount','User','read','i.id\x20LIKE\x20?','sequelize','OpenchannelInteraction','count','journey','operator','concat','select','%s\x20#%d','40px','Contact.firstName','download','setTags','type','field','expr','Owner.fullname','body','lodash','groupBy','\x20IS\x20NULL','Messages','server','openchannel_interactions','length','nolimit','o.internal','options','format','../../rediscache','having','isNumeric','name','Users','../../components/parsers/advancedSearch','rawAttributes','sort','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','OpenchannelMessage','t.id\x20=\x20it.TagId','OpenchannelInteractionId','30px','attachments','u.id\x20=\x20ui.UserId','destroy','conditions','closed','show','c.fax','model','YYYY-MM-DD\x20HH:mm:ss','firstName','buildExpression','o.fullname','order','./openchannelInteraction.socket','../../mysqldb','../../config/environment','Public','YYYY-MM-DD','10px','openchannelInteractionTags:save','index','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','Contact.phone','secret','N.A.','i.id','catch','a.mandatoryDisposition','o.id\x20=\x20i.UserId','createReadStream','merge','zip-dir','sqlOperator','filters','include','Account.mandatoryDisposition','null','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','pipe','user_has_openchannel_interactions','removeTags','query','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','CmContact','offset','`\x20=\x200','send','findOne','existsSync','register','renderFile','Content-Range','toString','OpenchannelAccountId','../../config/logger','start','contactName','Contact.mobile','moment','c.mobile','keyBy','attributes','SELECT','cm_contacts','lastName','fullname','ejs','transcript-','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','tools_tags','ids','tag','disposition','`unreadMessages`\x20=\x200','then','c.firstName','createdAt','path','Contact.fax','Owner','tmp','createWriteStream','err','create','fields','u.id','TagIds','Tag','rimraf','filter','getOpenchannelAccounts','u.fullname','toFile','unreadMessages','join','`unreadMessages`\x20>\x200','end','all','user','isArray','findAll','c.lastName','getMessages','CASE\x20WHEN\x20i.from\x20IS\x20NOT\x20NULL\x20AND\x20i.from\x20<>\x20\x27\x27\x20THEN\x20i.from\x20WHEN\x20(c.firstName\x20IS\x20NOT\x20NULL\x20AND\x20c.firstName\x20<>\x20\x27\x27)\x20OR\x20(c.lastName\x20IS\x20NOT\x20NULL\x20AND\x20c.lastName\x20<>\x20\x27\x27)\x20THEN\x20CONCAT(IFNULL(c.firstName,\x20\x27\x27),\x20\x27\x20\x27,\x20IFNULL(c.lastName,\x20\x27\x27))\x20ELSE\x20\x27Unknown\x27\x20END','compact','key','ui.OpenchannelInteractionId\x20IN\x20?','set','text','keys','Account','value','out','replace','limit','unix','Contact','omit','root','clone','$gte','me.OpenchannelInteractionId\x20=\x20i.id','i.OpenchannelAccountId\x20IN\x20?','isEmpty','a.key','map','stack','UserId','views','mkdirSync','users','describe','openchannel_messages','params','find','System','group','Openchannel','GROUP_CONCAT(DISTINCT\x20t.id)','from','where','split','color'];(function(_0x4647dd,_0x4493dc){const _0x9e35be=function(_0x54d1e7){while(--_0x54d1e7){_0x4647dd['push'](_0x4647dd['shift']());}};_0x9e35be(++_0x4493dc);}(a577_0x9e35,0xf6));const a577_0x54d1=function(_0x4647dd,_0x4493dc){_0x4647dd=_0x4647dd-0xcd;let _0x9e35be=a577_0x9e35[_0x4647dd];return _0x9e35be;};const a577_0x923e8=a577_0x54d1;'use strict';const pdf=require('html-pdf'),rimraf=require(a577_0x923e8(0x15a)),zipdir=require(a577_0x923e8(0x121)),moment=require(a577_0x923e8(0x13c)),util=require('util'),path=require(a577_0x923e8(0x14f)),ejs=require(a577_0x923e8(0x144)),fs=require('fs'),_=require(a577_0x923e8(0xea)),squel=require('squel'),{getSocket}=require(a577_0x923e8(0xf5)),socket=getSocket(),qs=require('../../components/parsers/qs'),as=require(a577_0x923e8(0xfa)),logger=require(a577_0x923e8(0x138))('api'),config=require(a577_0x923e8(0x111)),{db}=require(a577_0x923e8(0x110)),{Op,QueryTypes}=require('sequelize');require(a577_0x923e8(0x10f))[a577_0x923e8(0x133)](socket);function respondWithStatusCode(_0x10f0c1,_0x117ff5){return _0x117ff5=_0x117ff5||0xcc,function(_0xc0f686){const _0x50f8e5=a577_0x54d1;if(_0xc0f686)return _0x10f0c1[_0x50f8e5(0x195)](_0x117ff5);return _0x10f0c1[_0x50f8e5(0x1a9)](_0x117ff5)[_0x50f8e5(0x162)]();};}function respondWithResult(_0x5d79a9,_0x4c036e){return _0x4c036e=_0x4c036e||0xc8,function(_0x31f558){const _0x37ae9f=a577_0x54d1;if(_0x31f558)return _0x5d79a9[_0x37ae9f(0x1a9)](_0x4c036e)['json'](_0x31f558);};}function respondWithFilteredResult(_0x38a668,_0x88fb64){return function(_0x54da90){const _0x3b9fea=a577_0x54d1;if(_0x54da90){const _0x507b2c=_0x54da90[_0x3b9fea(0xdb)],_0x5a476b=_0x88fb64[_0x3b9fea(0x12e)];let _0xabffca=_0x88fb64[_0x3b9fea(0x12e)]+_0x88fb64[_0x3b9fea(0x174)],_0x41ba70;return _0xabffca>=_0x507b2c?(_0xabffca=_0x507b2c,_0x41ba70=0xc8):_0x41ba70=0xce,_0x38a668['status'](_0x41ba70),_0x38a668[_0x3b9fea(0x16d)](_0x3b9fea(0x135),_0x5a476b+'-'+_0xabffca+'/'+_0x507b2c)[_0x3b9fea(0x196)](_0x54da90);}return null;};}function saveUpdates(_0x551fd1){return function(_0x127f7b){const _0x235a57=a577_0x54d1;if(_0x127f7b)return _0x127f7b[_0x235a57(0xcd)](_0x551fd1)['then'](function(_0xb04a16){return _0xb04a16;});return null;};}function removeEntity(_0x317b1b){return function(_0x2fec5d){const _0x3565fa=a577_0x54d1;if(_0x2fec5d)return _0x2fec5d['destroy']()[_0x3565fa(0x14c)](function(){_0x317b1b['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x222197){return function(_0x1a6700){const _0x36c849=a577_0x54d1;return!_0x1a6700&&_0x222197[_0x36c849(0x195)](0x194),_0x1a6700;};}function handleError(_0x565d6c,_0x1cdb31){return _0x1cdb31=_0x1cdb31||0x1f4,function(_0x15147b){const _0x739117=a577_0x54d1;logger['error'](_0x15147b[_0x739117(0x180)]),_0x15147b['name']&&delete _0x15147b[_0x739117(0xf8)],_0x565d6c[_0x739117(0x1a9)](_0x1cdb31)[_0x739117(0x130)](_0x15147b);};}function getInteractionUsers(_0xc954c4,_0x2fece){return new Promise(function(_0x277b2f,_0x268f6d){const _0x29affa=a577_0x54d1;try{_0x2fece[_0xc954c4['id']]&&(_0xc954c4[_0x29affa(0xf9)]=_['map'](_0x2fece[_0xc954c4['id']],function(_0x7443fe){const _0x12f49f=_0x29affa;return{'id':_0x7443fe['id'],'fullname':_0x7443fe[_0x12f49f(0x143)]};}));}catch(_0x22b1e7){_0x268f6d(_0x22b1e7);}_0x277b2f(_0xc954c4);});}function getInteractionTags(_0x44dc8a,_0x25287e){return new Promise(function(_0x42fab1,_0x58694b){const _0x361fe3=a577_0x54d1;try{_0x44dc8a[_0x361fe3(0x158)]&&(_0x44dc8a['Tags']=[],_0x44dc8a[_0x361fe3(0x158)][_0x361fe3(0x18f)](',')['forEach'](function(_0x1d7b7c){const _0x2df278=_0x361fe3;_0x44dc8a[_0x2df278(0x198)][_0x2df278(0x1a6)](_0x25287e[_0x1d7b7c]);})),delete _0x44dc8a['TagIds'];}catch(_0xab0ce9){_0x58694b(_0xab0ce9);}_0x42fab1(_0x44dc8a);});}function updateOpenchannelInteraction(_0x3df2ad,_0x45729d,_0x2d9a87){return new Promise(function(_0xd40ddb,_0x4c3de6){const _0x16d3ec=a577_0x54d1;return getInteractionUsers(_0x3df2ad,_0x2d9a87)['then'](function(_0x1be646){return getInteractionTags(_0x1be646,_0x45729d);})[_0x16d3ec(0x14c)](function(_0x195c57){_0xd40ddb(_0x195c57);})[_0x16d3ec(0x11c)](function(_0xe40800){_0x4c3de6(_0xe40800);});});}exports[a577_0x923e8(0x116)]=function(_0x5be062,_0x159b7a){const _0x146b6d=a577_0x923e8,_0x2fc902={},_0xedeab7={},_0x2a14db={'count':0x0,'rows':[]},_0x1da64b=_[_0x146b6d(0x17f)](db[_0x146b6d(0xda)][_0x146b6d(0xfb)],function(_0x1395e9){const _0x2697a5=_0x146b6d;return{'name':_0x1395e9[_0x2697a5(0x19c)],'type':_0x1395e9[_0x2697a5(0xe5)][_0x2697a5(0x16b)]};});_0xedeab7[_0x146b6d(0x109)]=_[_0x146b6d(0x17f)](_0x1da64b,_0x146b6d(0xf8)),_0xedeab7[_0x146b6d(0x12b)]=_[_0x146b6d(0x16f)](_0x5be062[_0x146b6d(0x12b)]),_0xedeab7[_0x146b6d(0x123)]=_[_0x146b6d(0x19d)](_0xedeab7[_0x146b6d(0x109)],_0xedeab7[_0x146b6d(0x12b)]),_0x2fc902[_0x146b6d(0x13f)]=_[_0x146b6d(0x19d)](_0xedeab7['model'],qs[_0x146b6d(0x156)](_0x5be062[_0x146b6d(0x12b)][_0x146b6d(0x156)])),_0x2fc902[_0x146b6d(0x13f)]=_0x2fc902[_0x146b6d(0x13f)][_0x146b6d(0xf0)]?_0x2fc902['attributes']:_0xedeab7[_0x146b6d(0x109)];typeof _0x5be062[_0x146b6d(0x12b)][_0x146b6d(0xf1)]===_0x146b6d(0x191)&&(_0x2fc902[_0x146b6d(0x174)]=qs[_0x146b6d(0x174)](_0x5be062[_0x146b6d(0x12b)][_0x146b6d(0x174)]),_0x2fc902[_0x146b6d(0x12e)]=qs[_0x146b6d(0x12e)](_0x5be062['query'][_0x146b6d(0x12e)]));_0x2fc902[_0x146b6d(0x10e)]=qs[_0x146b6d(0xfc)](_0x5be062[_0x146b6d(0x12b)][_0x146b6d(0xfc)]),_0x2fc902[_0x146b6d(0x18e)]=qs[_0x146b6d(0x123)](_[_0x146b6d(0x1a1)](_0x5be062['query'],_0xedeab7[_0x146b6d(0x123)]),_0x1da64b);let _0x1fb79c=[];const _0x4c0710=squel[_0x146b6d(0xdf)]()[_0x146b6d(0xe6)]('id')[_0x146b6d(0xe6)](_0x146b6d(0xf8))[_0x146b6d(0xe6)](_0x146b6d(0x190))[_0x146b6d(0x18d)](_0x146b6d(0x147)),_0x4ef48c=squel[_0x146b6d(0xdf)]()['field'](_0x146b6d(0x157))[_0x146b6d(0xe6)](_0x146b6d(0x15d))['field']('ui.OpenchannelInteractionId')[_0x146b6d(0x18d)](_0x146b6d(0x129),'ui')['left_join'](_0x146b6d(0x184),'u',_0x146b6d(0x103)),_0x5580be=squel[_0x146b6d(0xdf)]()[_0x146b6d(0x18d)](_0x146b6d(0xef),'i')['left_join'](_0x146b6d(0x141),'c','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL')[_0x146b6d(0xd1)](_0x146b6d(0x184),'o',_0x146b6d(0x11e))[_0x146b6d(0xd1)]('openchannel_accounts','a','a.id\x20=\x20i.OpenchannelAccountId')['left_join'](_0x146b6d(0x186),'me',_0x146b6d(0x17b))['left_join']('openchannel_interaction_has_tags','it',_0x146b6d(0xd4))[_0x146b6d(0xd1)](_0x146b6d(0x147),'t',_0x146b6d(0xff)),_0x22717c=squel[_0x146b6d(0xe7)]();let _0x4b426b=[];const _0x146351=squel[_0x146b6d(0xe7)]();let _0x445851;if(_0x5be062['query'][_0x146b6d(0x194)]){_0x445851=as['parseSearch'](_0x5be062[_0x146b6d(0x12b)][_0x146b6d(0x194)]);const _0x4c60d2=_0x445851[_0x146b6d(0x122)];for(let _0x535a0d=0x0;_0x535a0d<_0x445851[_0x146b6d(0x105)]['length'];_0x535a0d++){const _0x3c49be=_0x445851['conditions'][_0x535a0d],_0x1d5086='i';let _0x1d41de,_0x1f94ba=_[_0x146b6d(0x188)](_0x1da64b,[_0x146b6d(0xf8),_0x3c49be[_0x146b6d(0xe6)]]);if(!_0x1f94ba)switch(_0x3c49be['field']){case _0x146b6d(0x15f):_0x3c49be['value']==0x1?_0x5580be['having']('`'+_0x3c49be[_0x146b6d(0xe6)]+_0x146b6d(0x12f)):_0x5580be[_0x146b6d(0xf6)]('`'+_0x3c49be[_0x146b6d(0xe6)]+'`\x20>\x200');break;case _0x146b6d(0x176):if(_0x3c49be[_0x146b6d(0xdd)]===_0x146b6d(0x19b)){if(_0x3c49be[_0x146b6d(0x171)]['split']('\x20')[_0x146b6d(0xf0)]>0x1)_0x22717c[_0x4c60d2](_0x146b6d(0x127),qs['getFullTextValue'](_0x3c49be[_0x146b6d(0x171)]),null);else{const _0x1836e8='%'+_0x3c49be[_0x146b6d(0x171)]+'%';_0x22717c[_0x4c60d2](_0x146b6d(0xce),_0x1836e8,_0x1836e8,_0x1836e8);}}else _0x1f94ba=_[_0x146b6d(0x188)](_0x1da64b,['name','ContactId']),_0x3c49be['field']='ContactId',_0x1d41de=as['buildExpression'](_0x1d5086,_0x1f94ba[_0x146b6d(0xe5)],_0x3c49be),_0x22717c[_0x4c60d2](_0x1d41de[_0x146b6d(0x16e)],_0x1d41de[_0x146b6d(0x171)]['start'],_0x1d41de['value']['end']);break;case _0x146b6d(0x159):{const _0x29adbc=_0x3c49be['value'][_0x146b6d(0x18f)](',')['map'](function(_0x38b095){return Number(_0x38b095);});_0x29adbc['forEach'](function(_0x2e4a7d){const _0x4a872f=_0x146b6d;_0x146351['or'](_0x4a872f(0x19e),'%,'+_0x2e4a7d+',%');}),_0x4b426b=_['union'](_0x4b426b,_0x29adbc);}break;case _0x146b6d(0xd6):_0x3c49be['operator']==='$substring'?_0x22717c[_0x4c60d2](_0x146b6d(0x117),'%'+_0x3c49be[_0x146b6d(0x171)]+'%',null):(_0x1f94ba=_['find'](_0x1da64b,['name',_0x146b6d(0x181)]),_0x3c49be['field']=_0x146b6d(0x181),_0x1d41de=as[_0x146b6d(0x10c)](_0x1d5086,_0x1f94ba[_0x146b6d(0xe5)],_0x3c49be),_0x22717c[_0x4c60d2](_0x1d41de[_0x146b6d(0x16e)],_0x1d41de[_0x146b6d(0x171)]['start'],_0x1d41de[_0x146b6d(0x171)]['end']));break;case _0x146b6d(0xe9):_0x1d41de=as['buildExpression']('me',null,_0x3c49be),_0x22717c[_0x4c60d2](_0x1d41de[_0x146b6d(0x16e)],_0x1d41de[_0x146b6d(0x171)][_0x146b6d(0x139)],_0x1d41de[_0x146b6d(0x171)]['end']);break;}else _0x1d41de=as[_0x146b6d(0x10c)](_0x1d5086,_0x1f94ba['type'],_0x3c49be),_0x22717c[_0x4c60d2](_0x1d41de['text'],_0x1d41de['value'][_0x146b6d(0x139)],_0x1d41de[_0x146b6d(0x171)][_0x146b6d(0x162)]);}}else{const _0x2144ec=_(_0x5be062['query'])[_0x146b6d(0x16f)]()[_0x146b6d(0x17f)](function(_0x503f34){const _0x120a3f=_0x146b6d;return _[_0x120a3f(0x1a5)](_0x1da64b,[_0x120a3f(0xf8),_0x503f34])?_0x503f34:undefined;})[_0x146b6d(0x16a)]()['value']();!_[_0x146b6d(0x17d)](_0x2144ec)&&_0x2144ec['forEach'](function(_0x145e22){const _0x29b5c9=_0x146b6d;if(_0x145e22==='OpenchannelAccountId')_0x5580be[_0x29b5c9(0x18e)](_0x29b5c9(0x17c),[][_0x29b5c9(0xde)](_0x5be062[_0x29b5c9(0x12b)][_0x145e22]));else{if(_0x145e22===_0x29b5c9(0x14e)){const _0x5cbe81=JSON[_0x29b5c9(0x19a)](_0x5be062[_0x29b5c9(0x12b)][_0x145e22])[_0x29b5c9(0x17a)],_0x242c30=JSON[_0x29b5c9(0x19a)](_0x5be062[_0x29b5c9(0x12b)][_0x145e22])['$lte'];_0x5580be['where'](_0x29b5c9(0x12c),_0x5cbe81,_0x242c30);}else _0x5be062[_0x29b5c9(0x12b)][_0x145e22]===_0x29b5c9(0x126)?_0x5580be['where']('i.'+_0x145e22+_0x29b5c9(0xec)):_0x5580be[_0x29b5c9(0x18e)]('i.'+_0x145e22+'\x20=\x20?',_0x5be062[_0x29b5c9(0x12b)][_0x145e22]);}});_0x5be062['query'][_0x146b6d(0xd7)]&&(_0x5be062[_0x146b6d(0x12b)]['read']==0x1?_0x5580be['having'](_0x146b6d(0x14b)):_0x5580be[_0x146b6d(0xf6)](_0x146b6d(0x161)));_0x5be062[_0x146b6d(0x12b)]['tag']&&(_0x4b426b=_[_0x146b6d(0x165)](_0x5be062[_0x146b6d(0x12b)][_0x146b6d(0x149)])?_0x5be062[_0x146b6d(0x12b)][_0x146b6d(0x149)]:new Array(_0x5be062[_0x146b6d(0x12b)]['tag']),_0x4b426b[_0x146b6d(0x197)](function(_0x4ce8f3){const _0xc2ae56=_0x146b6d;_0x146351['or'](_0xc2ae56(0x19e),'%,'+_0x4ce8f3+',%');}));if(_0x5be062['query'][_0x146b6d(0x15b)]){const _0x290b83=_0x5be062[_0x146b6d(0x12b)]['filter'][_0x146b6d(0x173)]('\x5c','\x5c\x5c')[_0x146b6d(0x173)](/'/g,'\x27\x27');qs[_0x146b6d(0xf7)](_0x290b83)?_0x22717c['or'](_0x146b6d(0xd8),_0x290b83+'%'):_0x22717c['or'](_0x146b6d(0x192),qs['getFullTextValue'](_0x290b83))['or']('i.from\x20LIKE\x20?',_0x290b83+'%')['or'](_0x146b6d(0xfd),_0x290b83+'%');}}_0x5580be[_0x146b6d(0x18e)](_0x22717c),_0x5580be[_0x146b6d(0x18a)](_0x146b6d(0x11b));let _0x2e8fa9={'type':QueryTypes[_0x146b6d(0x140)],'raw':!![]};const _0xebdca4=_0x5580be[_0x146b6d(0x179)]();_0xebdca4[_0x146b6d(0xe6)](_0x146b6d(0x11b)),_0xebdca4[_0x146b6d(0xe6)](_0x146b6d(0x146),_0x146b6d(0x15f)),_0x2fc902['order']&&_0x2fc902[_0x146b6d(0x10e)][_0x146b6d(0x197)](function(_0x403bba){const _0x3d5592=_0x146b6d,_0x24563e=_0x403bba[0x0]===_0x3d5592(0x13a)?_0x403bba[0x0]:'i.'+_0x403bba[0x0];_0x5580be['order'](_0x24563e,_0x403bba[0x1]==='DESC'?![]:!![]);}),!_[_0x146b6d(0x17d)](_0x4b426b)&&(_0x5580be[_0x146b6d(0xf6)](_0x146351),_0xebdca4['where'](_0x146b6d(0x193),_0x4b426b)),Promise['resolve']()[_0x146b6d(0x14c)](function(){const _0x12b64d=_0x146b6d;if(!_0x445851){if(_0x5be062[_0x12b64d(0x12b)][_0x12b64d(0x137)]||_0x5be062[_0x12b64d(0x12b)][_0x12b64d(0xdc)])return;_0xebdca4[_0x12b64d(0x18e)]('i.OpenchannelAccountId\x20IS\x20NOT\x20NULL'),_0x5580be[_0x12b64d(0x18e)](_0x12b64d(0xd3));return;}return _0x5be062[_0x12b64d(0x164)][_0x12b64d(0x15c)]({'attributes':['id'],'raw':!![]})['then'](function(_0x5a142f){const _0x314187=_0x12b64d;_[_0x314187(0x17d)](_0x5a142f)?(_0xebdca4[_0x314187(0x18e)]('i.OpenchannelAccountId\x20IS\x20NULL'),_0x5580be['where'](_0x314187(0x1a2))):(_0xebdca4[_0x314187(0x18e)](_0x314187(0x17c),_[_0x314187(0x17f)](_0x5a142f,'id')),_0x5580be[_0x314187(0x18e)]('i.OpenchannelAccountId\x20IN\x20?',_[_0x314187(0x17f)](_0x5a142f,'id')));});})[_0x146b6d(0x14c)](function(){const _0x45304c=_0x146b6d;db['sequelize']['query'](_0xebdca4[_0x45304c(0x136)](),_0x2e8fa9)[_0x45304c(0x14c)](function(_0x4782f7){const _0x385ebd=_0x45304c;_0x2a14db[_0x385ebd(0xdb)]=_0x4782f7[_0x385ebd(0xf0)];if(_0x2a14db[_0x385ebd(0xdb)]===0x0)return[];return db[_0x385ebd(0xd9)][_0x385ebd(0x12b)](_0x4c0710[_0x385ebd(0x136)](),_0x2e8fa9)[_0x385ebd(0x14c)](function(_0x26747e){const _0x5db836=_0x385ebd;_0x1fb79c=_[_0x5db836(0x13e)](_0x26747e,'id'),_0x2e8fa9=_[_0x5db836(0x120)](_0x2e8fa9,{'model':db[_0x5db836(0xda)],'mapToModel':!![],'raw':!![],'nest':!![]});_0x5be062[_0x5db836(0x12b)][_0x5db836(0x156)]?_0x2fc902[_0x5db836(0x13f)][_0x5db836(0x197)](function(_0x25be07){const _0x427cb4=_0x5db836;_0x5580be[_0x427cb4(0xe6)]('i.'+_0x25be07);}):(_0x5580be[_0x5db836(0xe6)](_0x5db836(0x146),_0x5db836(0x15f)),_0x5580be[_0x5db836(0xe6)](_0x5db836(0x17e),'Account.key'),_0x5580be['field'](_0x5db836(0x11d),_0x5db836(0x125)),_0x5580be['field'](_0x5db836(0x169),_0x5db836(0x13a)),_0x5580be[_0x5db836(0xe6)]('i.*'),_0x5580be[_0x5db836(0xe6)](_0x5db836(0x14d),_0x5db836(0xe2)),_0x5580be[_0x5db836(0xe6)](_0x5db836(0x167),'Contact.lastName'),_0x5580be[_0x5db836(0xe6)](_0x5db836(0x1a8),'Contact.email'),_0x5580be[_0x5db836(0xe6)]('c.phone',_0x5db836(0x118)),_0x5580be[_0x5db836(0xe6)](_0x5db836(0x13d),_0x5db836(0x13b)),_0x5580be['field'](_0x5db836(0x108),_0x5db836(0x150)),_0x5580be[_0x5db836(0xe6)](_0x5db836(0x10d),_0x5db836(0xe8)),_0x5580be[_0x5db836(0xe6)](_0x5db836(0xf2),'Owner.internal'),_0x5580be[_0x5db836(0xe6)](_0x5db836(0x18c),_0x5db836(0x158)));if(_0x2fc902[_0x5db836(0x174)])_0x5580be[_0x5db836(0x174)](_0x2fc902['limit']);if(_0x2fc902[_0x5db836(0x12e)])_0x5580be[_0x5db836(0x12e)](_0x2fc902['offset']);return db[_0x5db836(0xd9)][_0x5db836(0x12b)](_0x5580be[_0x5db836(0x136)](),_0x2e8fa9);})[_0x385ebd(0x14c)](function(_0x1d4428){const _0x37eb4d=_0x385ebd;return _0x4ef48c[_0x37eb4d(0x18e)](_0x37eb4d(0x16c),_['map'](_0x1d4428,'id')),db[_0x37eb4d(0xd9)]['query'](_0x4ef48c['toString'](),_0x2e8fa9)['then'](function(_0x32ad75){const _0x1bb90d=_0x37eb4d,_0x10879f=_[_0x1bb90d(0xeb)](_0x32ad75,_0x1bb90d(0x100)),_0x634570=[];return _0x1d4428[_0x1bb90d(0x197)](function(_0x4e597d){const _0x501c48=_0x1bb90d;_0x634570[_0x501c48(0x1a6)](updateOpenchannelInteraction(_0x4e597d,_0x1fb79c,_0x10879f));}),Promise[_0x1bb90d(0x163)](_0x634570);});});})['then'](function(_0x549e07){return _0x2a14db['rows']=_0x549e07,_0x2a14db;})['then'](respondWithFilteredResult(_0x159b7a,_0x2fc902));})['catch'](handleError(_0x159b7a,null));},exports[a577_0x923e8(0x107)]=function(_0x2d8e91,_0x3e8454){const _0x412991=a577_0x923e8,_0x4f2d48={};_0x2d8e91[_0x412991(0x12b)]['type']&&_0x2d8e91['query'][_0x412991(0xe5)]===_0x412991(0x18d)?_0x4f2d48['from']=_0x2d8e91[_0x412991(0x187)]['id']:_0x4f2d48['id']=_0x2d8e91[_0x412991(0x187)]['id'];let _0x27790f={'raw':![],'where':_0x4f2d48};const _0x51407b={};return _0x51407b[_0x412991(0x109)]=_['keys'](db['OpenchannelInteraction'][_0x412991(0xfb)]),_0x51407b[_0x412991(0x12b)]=_[_0x412991(0x16f)](_0x2d8e91['query']),_0x51407b[_0x412991(0x123)]=_[_0x412991(0x19d)](_0x51407b[_0x412991(0x109)],_0x51407b[_0x412991(0x12b)]),_0x27790f[_0x412991(0x13f)]=_['intersection'](_0x51407b[_0x412991(0x109)],qs[_0x412991(0x156)](_0x2d8e91[_0x412991(0x12b)][_0x412991(0x156)])),_0x27790f[_0x412991(0x13f)]=_0x27790f['attributes'][_0x412991(0xf0)]?_0x27790f[_0x412991(0x13f)]:_0x51407b[_0x412991(0x109)],_0x2d8e91[_0x412991(0x12b)][_0x412991(0xd0)]&&(_0x27790f[_0x412991(0x124)]=[{'all':!![]}]),_0x27790f=_[_0x412991(0x120)]({},_0x27790f,_0x2d8e91[_0x412991(0xf3)]),db['OpenchannelInteraction'][_0x412991(0x131)](_0x27790f)[_0x412991(0x14c)](handleEntityNotFound(_0x3e8454,null))[_0x412991(0x14c)](respondWithResult(_0x3e8454,null))[_0x412991(0x11c)](handleError(_0x3e8454,null));},exports[a577_0x923e8(0x155)]=function(_0x305529,_0x3730db){const _0xf4a49a=a577_0x923e8;return db[_0xf4a49a(0xda)][_0xf4a49a(0x155)](_0x305529['body'],{})[_0xf4a49a(0x14c)](respondWithResult(_0x3730db,0xc9))[_0xf4a49a(0x11c)](handleError(_0x3730db,null));},exports[a577_0x923e8(0xcd)]=function(_0x3683ca,_0x489d84){const _0x567f00=a577_0x923e8;return _0x3683ca['body']['id']&&delete _0x3683ca[_0x567f00(0xe9)]['id'],db[_0x567f00(0xda)]['findOne']({'where':{'id':_0x3683ca['params']['id']}})[_0x567f00(0x14c)](handleEntityNotFound(_0x489d84,null))[_0x567f00(0x14c)](saveUpdates(_0x3683ca[_0x567f00(0xe9)],null))[_0x567f00(0x14c)](respondWithResult(_0x489d84,null))[_0x567f00(0x11c)](handleError(_0x489d84,null));},exports[a577_0x923e8(0x104)]=function(_0x303d98,_0x2a33a4){const _0x393bca=a577_0x923e8;return db[_0x393bca(0xda)][_0x393bca(0x131)]({'where':{'id':_0x303d98[_0x393bca(0x187)]['id']}})[_0x393bca(0x14c)](handleEntityNotFound(_0x2a33a4,null))[_0x393bca(0x14c)](removeEntity(_0x2a33a4,null))['catch'](handleError(_0x2a33a4,null));},exports[a577_0x923e8(0x185)]=function(_0x2a530e,_0x4b6c13){const _0x3aeeb4=a577_0x923e8;return db['OpenchannelInteraction'][_0x3aeeb4(0x185)]()[_0x3aeeb4(0x14c)](respondWithResult(_0x4b6c13,null))[_0x3aeeb4(0x11c)](handleError(_0x4b6c13,null));},exports['addMessage']=function(_0x368a86,_0x5055b6){const _0x52d016=a577_0x923e8;return db['OpenchannelMessage'][_0x52d016(0x131)]({'where':{'id':_0x368a86[_0x52d016(0x187)]['id']}})[_0x52d016(0x14c)](function(_0x5e0cd4){const _0xbf8b7d=_0x52d016;if(_0x5e0cd4)return _0x5e0cd4['addMessage'](_0x368a86[_0xbf8b7d(0xe9)][_0xbf8b7d(0x148)],{'through':_[_0xbf8b7d(0x177)](_0x368a86[_0xbf8b7d(0xe9)],[_0xbf8b7d(0x148),'id'])});})[_0x52d016(0x14c)](respondWithResult(_0x5055b6,null))[_0x52d016(0x11c)](handleError(_0x5055b6,null));},exports[a577_0x923e8(0x168)]=function(_0x2a80dc,_0x252598){const _0x5186a7=a577_0x923e8;let _0x571977={'raw':![],'where':{}};const _0x32d83e={},_0xc74349={'count':0x0,'rows':[]};return db[_0x5186a7(0xda)][_0x5186a7(0x131)]({'where':{'id':_0x2a80dc[_0x5186a7(0x187)]['id']}})[_0x5186a7(0x14c)](handleEntityNotFound(_0x252598,null))['then'](function(_0x11cb56){const _0x9b7e0c=_0x5186a7;if(_0x11cb56){_0x32d83e[_0x9b7e0c(0x109)]=_[_0x9b7e0c(0x16f)](db[_0x9b7e0c(0xfe)][_0x9b7e0c(0xfb)]),_0x32d83e['query']=_[_0x9b7e0c(0x16f)](_0x2a80dc['query']),_0x32d83e[_0x9b7e0c(0x123)]=_[_0x9b7e0c(0x19d)](_0x32d83e[_0x9b7e0c(0x109)],_0x32d83e[_0x9b7e0c(0x12b)]),_0x571977[_0x9b7e0c(0x13f)]=_[_0x9b7e0c(0x19d)](_0x32d83e['model'],qs[_0x9b7e0c(0x156)](_0x2a80dc[_0x9b7e0c(0x12b)][_0x9b7e0c(0x156)])),_0x571977[_0x9b7e0c(0x13f)]=_0x571977['attributes'][_0x9b7e0c(0xf0)]?_0x571977[_0x9b7e0c(0x13f)]:_0x32d83e[_0x9b7e0c(0x109)];typeof _0x2a80dc[_0x9b7e0c(0x12b)][_0x9b7e0c(0xf1)]===_0x9b7e0c(0x191)&&(_0x571977[_0x9b7e0c(0x174)]=qs[_0x9b7e0c(0x174)](_0x2a80dc[_0x9b7e0c(0x12b)]['limit']),_0x571977[_0x9b7e0c(0x12e)]=qs[_0x9b7e0c(0x12e)](_0x2a80dc[_0x9b7e0c(0x12b)][_0x9b7e0c(0x12e)]));_0x571977[_0x9b7e0c(0x10e)]=qs[_0x9b7e0c(0xfc)](_0x2a80dc[_0x9b7e0c(0x12b)][_0x9b7e0c(0xfc)]),_0x571977[_0x9b7e0c(0x18e)]=qs[_0x9b7e0c(0x123)](_['pick'](_0x2a80dc[_0x9b7e0c(0x12b)],_0x32d83e[_0x9b7e0c(0x123)])),_0x571977['where']['OpenchannelInteractionId']=_0x11cb56['id'];_0x2a80dc[_0x9b7e0c(0x12b)][_0x9b7e0c(0x15b)]&&(_0x571977['where']=_[_0x9b7e0c(0x120)](_0x571977[_0x9b7e0c(0x18e)],{[Op['or']]:_[_0x9b7e0c(0x17f)](_0x571977[_0x9b7e0c(0x13f)],function(_0x273302){const _0x254ce8=_0x9b7e0c,_0x22dc92={};return _0x22dc92[_0x273302]={[Op[_0x254ce8(0x1a0)]]:'%'+_0x2a80dc['query'][_0x254ce8(0x15b)]+'%'},_0x22dc92;})}));if(_0x2a80dc[_0x9b7e0c(0x12b)]['$gte']){const _0x4f73c4=_0x2a80dc[_0x9b7e0c(0x12b)][_0x9b7e0c(0x17a)][_0x9b7e0c(0x18f)](','),_0x356461={};_0x356461[_0x4f73c4[0x0]]={[Op['gte']]:moment(_0x4f73c4[0x1])['format'](_0x9b7e0c(0x10a))},_0x571977['where']=_[_0x9b7e0c(0x120)](_0x571977['where'],_0x356461);}return _0x571977=_['merge']({},_0x571977,_0x2a80dc[_0x9b7e0c(0xf3)]),db[_0x9b7e0c(0xfe)][_0x9b7e0c(0xdb)]({'where':_0x571977[_0x9b7e0c(0x18e)]})['then'](function(_0x405310){const _0x2023c0=_0x9b7e0c;return _0xc74349[_0x2023c0(0xdb)]=_0x405310,_0x2a80dc[_0x2023c0(0x12b)][_0x2023c0(0xd0)]&&(_0x571977[_0x2023c0(0x124)]=[{'all':!![]}]),db[_0x2023c0(0xfe)][_0x2023c0(0x166)](_0x571977);})[_0x9b7e0c(0x14c)](function(_0x1d631a){const _0x59f425=_0x9b7e0c;return _0xc74349[_0x59f425(0x19f)]=_0x1d631a,_0xc74349;});}})[_0x5186a7(0x14c)](respondWithFilteredResult(_0x252598,_0x571977))['catch'](handleError(_0x252598,null));},exports['addTags']=function(_0x1c5c7b,_0x32b07b){const _0x47bcb8=a577_0x923e8;return db['OpenchannelInteraction'][_0x47bcb8(0x131)]({'where':{'id':_0x1c5c7b[_0x47bcb8(0x187)]['id']}})[_0x47bcb8(0x14c)](function(_0x41587e){const _0x42d3f2=_0x47bcb8;if(_0x41587e)return _0x41587e[_0x42d3f2(0xe4)](_0x1c5c7b[_0x42d3f2(0xe9)][_0x42d3f2(0x148)],{'through':_[_0x42d3f2(0x177)](_0x1c5c7b[_0x42d3f2(0xe9)],[_0x42d3f2(0x148),'id'])})[_0x42d3f2(0x14c)](function(){const _0xa34b36=_0x42d3f2;return db[_0xa34b36(0x159)]['findAll']({'attributes':['id',_0xa34b36(0xf8),_0xa34b36(0x190)],'where':{'id':_0x1c5c7b[_0xa34b36(0xe9)]['ids']}});})['then'](function(_0x456be0){const _0x4767dc=_0x42d3f2;return socket['emit'](_0x4767dc(0x115),{'id':Number(_0x1c5c7b[_0x4767dc(0x187)]['id']),'tags':_0x456be0||[]}),{'id':Number(_0x1c5c7b['params']['id']),'tags':_0x456be0||[]};});})['then'](respondWithResult(_0x32b07b,null))[_0x47bcb8(0x11c)](handleError(_0x32b07b,null));},exports[a577_0x923e8(0x12a)]=function(_0x4ce730,_0x926d67){const _0x589b46=a577_0x923e8;return db[_0x589b46(0xda)][_0x589b46(0x131)]({'where':{'id':_0x4ce730[_0x589b46(0x187)]['id']}})[_0x589b46(0x14c)](handleEntityNotFound(_0x926d67,null))[_0x589b46(0x14c)](function(_0x1f6d7d){const _0x5d9f69=_0x589b46;if(_0x1f6d7d)return _0x1f6d7d[_0x5d9f69(0x12a)](_0x4ce730[_0x5d9f69(0x12b)]['ids']);})['then'](respondWithStatusCode(_0x926d67,null))[_0x589b46(0x11c)](handleError(_0x926d67,null));},exports['download']=function(_0x455182,_0x1f71c7){const _0x375ec4=a577_0x923e8,_0x1e9462=moment()[_0x375ec4(0x175)]()[_0x375ec4(0x136)](),_0x5a18cc=path[_0x375ec4(0x160)](config['root'],'files',_0x375ec4(0x152)),_0x5a78f2=path['join'](config[_0x375ec4(0x178)],_0x375ec4(0xee),'files',_0x375ec4(0x102)),_0x22effc=path[_0x375ec4(0x160)](_0x5a18cc,_0x1e9462),_0x1eed6b=util[_0x375ec4(0xf4)](_0x375ec4(0x1a7),_0x455182['params']['id'],_0x1e9462),_0x4b9207=path[_0x375ec4(0x160)](_0x5a18cc,_0x1eed6b),_0xa4e05=[];_0xa4e05[_0x375ec4(0x1a6)]({'model':db[_0x375ec4(0xd6)],'as':_0x375ec4(0xd6),'attributes':['id',_0x375ec4(0x143)],'raw':!![]}),_0xa4e05['push']({'model':db[_0x375ec4(0x12d)],'as':_0x375ec4(0x176),'attributes':['id',_0x375ec4(0x10b),'lastName'],'raw':!![]});_0x455182[_0x375ec4(0x12b)][_0x375ec4(0x102)]&&_0xa4e05[_0x375ec4(0x1a6)]({'model':db[_0x375ec4(0x199)],'as':_0x375ec4(0x199),'raw':!![]});const _0x5a0275=[{'model':db['OpenchannelMessage'],'as':'Messages','attributes':['id',_0x375ec4(0xe9),_0x375ec4(0x14e),_0x375ec4(0xd2),_0x375ec4(0x119),_0x375ec4(0xd7)],'include':_0xa4e05}];return _0x5a0275[_0x375ec4(0x1a6)]({'model':db[_0x375ec4(0xd5)],'as':_0x375ec4(0x170),'attributes':['id','name']}),_0x5a0275[_0x375ec4(0x1a6)]({'model':db[_0x375ec4(0xd6)],'as':_0x375ec4(0x151),'attributes':['id',_0x375ec4(0x143)]}),db['OpenchannelInteraction']['findOne']({'where':{'id':_0x455182[_0x375ec4(0x187)]['id']},'include':_0x5a0275})[_0x375ec4(0x14c)](handleEntityNotFound(_0x1f71c7,null))[_0x375ec4(0x14c)](function(_0x3bbf37){const _0x40adfa=_0x375ec4;if(_0x3bbf37){const _0x75283a=_0x3bbf37['get']({'plain':!![]});fs[_0x40adfa(0x183)](_0x22effc);const _0x3a66b7={'format':'A4','border':_0x40adfa(0x114),'header':{'height':_0x40adfa(0xe1),'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':_0x40adfa(0x101),'contents':{'default':util[_0x40adfa(0xf4)]('\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\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[_0x40adfa(0xf4)](_0x40adfa(0xe0),_0x40adfa(0x18b),_0x75283a['id']),moment()['format'](_0x40adfa(0x113))[_0x40adfa(0x136)]())}}},_0x7e3235={'channel':_0x40adfa(0x18b),'account':_0x75283a[_0x40adfa(0x170)][_0x40adfa(0xf8)],'agent':_0x75283a[_0x40adfa(0x151)]?_0x75283a[_0x40adfa(0x151)][_0x40adfa(0x143)]:_0x40adfa(0x11a),'createdAt':moment(_0x75283a[_0x40adfa(0x14e)])[_0x40adfa(0xf4)]('YYYY-MM-DD\x20HH:mm:ss')['toString'](),'closedAt':_0x75283a[_0x40adfa(0x106)]?moment(_0x75283a['closedAt'])[_0x40adfa(0xf4)](_0x40adfa(0x10a))[_0x40adfa(0x136)]():'','disposition':_0x75283a[_0x40adfa(0x14a)],'visibility':_0x75283a[_0x40adfa(0x1a4)]?_0x40adfa(0x112):'Private','messages':_(_0x75283a[_0x40adfa(0xed)])[_0x40adfa(0x15b)]({'secret':![]})[_0x40adfa(0x17f)](function(_0x4e1107){const _0x54594b=_0x40adfa;if(_0x4e1107[_0x54594b(0x199)]){const _0x17fb42=path['join'](_0x5a78f2,_0x4e1107[_0x54594b(0x199)][_0x54594b(0x1a3)]);fs[_0x54594b(0x132)](_0x17fb42)&&fs[_0x54594b(0x11f)](_0x17fb42)[_0x54594b(0x128)](fs[_0x54594b(0x153)](path['join'](_0x22effc,_0x4e1107[_0x54594b(0x199)][_0x54594b(0x1a3)])));}return{'date':moment(_0x4e1107['createdAt'])[_0x54594b(0xf4)](_0x54594b(0x10a))['toString'](),'sender':_0x4e1107[_0x54594b(0xd2)]===_0x54594b(0x172)?_0x4e1107[_0x54594b(0xd6)]?_0x4e1107[_0x54594b(0xd6)][_0x54594b(0x143)]:_0x54594b(0x189):_0x4e1107[_0x54594b(0x176)][_0x54594b(0x10b)]+(_0x4e1107['Contact'][_0x54594b(0x142)]?'\x20'+_0x4e1107['Contact'][_0x54594b(0x142)]:''),'body':_0x4e1107[_0x54594b(0x199)]?_0x4e1107['Attachment'][_0x54594b(0x1a3)]:_0x4e1107[_0x54594b(0xe9)],'direction':_0x4e1107[_0x54594b(0xd2)]==='out'?'A':'C','secret':_0x4e1107[_0x54594b(0x119)],'read':_0x4e1107[_0x54594b(0xd7)],'attachment':_0x4e1107[_0x54594b(0x199)]};})[_0x40adfa(0x171)]()};return ejs[_0x40adfa(0x134)](path[_0x40adfa(0x160)](config['root'],_0x40adfa(0xee),_0x40adfa(0x182),_0x40adfa(0xcf)),{'interaction':_0x7e3235})[_0x40adfa(0x14c)](function(_0x3066e3){return new Promise(function(_0x24c00e,_0x31f8b8){const _0x323077=a577_0x54d1;pdf[_0x323077(0x155)](_0x3066e3,_0x3a66b7)[_0x323077(0x15e)](path['join'](_0x22effc,_0x323077(0x145)+_0x75283a['id']+'-'+_0x1e9462+'.pdf'),function(_0x578abb,_0x1ce1d6){if(_0x578abb)return _0x31f8b8(_0x578abb);_0x24c00e(_0x1ce1d6);});});})['then'](function(){const _0x51ecd1=_0x40adfa;return new Promise(function(_0x1e98c5,_0x214297){zipdir(_0x22effc,{'saveTo':_0x4b9207},function(_0x3e03c6,_0x50d3b3){if(_0x3e03c6)return _0x214297(_0x3e03c6);return _0x1e98c5(_0x50d3b3);});})[_0x51ecd1(0x14c)](function(){return new Promise(function(_0x500914,_0x2d1762){rimraf(_0x22effc,function(_0x10a9bf){if(_0x10a9bf)_0x2d1762(_0x10a9bf);return _0x500914();});});})[_0x51ecd1(0x14c)](function(){const _0xc8a47a=_0x51ecd1;return _0x1f71c7[_0xc8a47a(0xe3)](_0x4b9207,_0x1eed6b,function(_0x28bc6e){const _0x36b916=_0xc8a47a;_0x28bc6e?console['log'](_0x36b916(0x154),_0x28bc6e):fs['unlinkSync'](_0x4b9207);});});});}else return _0x1f71c7[_0x40adfa(0x195)](0xc8);})['catch'](handleError(_0x1f71c7,null));}; \ No newline at end of file +const a577_0x5761=['o.fullname','root','body','parseSearch','length','Content-Range','i.id','firstName','intersection','params','unlinkSync','../../components/parsers/advancedSearch','o.id\x20=\x20i.UserId','undefined','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\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','sequelize','some','catch','openchannel_accounts','Tag','Contact.fax','c.mobile','err','Owner.internal','Contact.email','../../rediscache','a.mandatoryDisposition','sort','ui.OpenchannelInteractionId','user_has_openchannel_interactions','t.id\x20=\x20it.TagId','conditions','cm_contacts','json','Account.key','status','filters','Account','filter','../../config/logger','Contact.firstName','u.id\x20=\x20ui.UserId','nolimit','System','u.fullname','pipe','describe','OpenchannelInteractionId','it.OpenchannelInteractionId\x20=\x20i.id','me.OpenchannelInteractionId\x20=\x20i.id','fields','includeAll','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','Contact.phone','setTags','secret','c.lastName','merge','closed','isNumeric','tag','search','Users','limit','end','operator','openchannelInteractionTags:save','push','disposition','getFullTextValue','index','format','left_join','pick','c.firstName','./openchannelInteraction.socket','keyBy','t.id\x20IN\x20?','query','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','Contact','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','gte','union','mkdirSync','N.A.','where','`\x20=\x200','journey','update','options','Contact.mobile','join','out','DESC','YYYY-MM-DD\x20HH:mm:ss','Messages','having','OpenchannelAccountId','unix','c.phone','i.OpenchannelAccountId\x20IS\x20NULL','a.id\x20=\x20i.OpenchannelAccountId','users','TagIds','User','../../mysqldb','`unreadMessages`\x20>\x200','unreadMessages','set','`\x20>\x200','value','i.OpenchannelAccountId\x20IN\x20?','name','Owner.fullname','rimraf','keys','OpenchannelMessage','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','log','attributes','rows','user','select','c.email','Tags','api','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','../../components/parsers/qs','30px','order','sqlOperator','%s\x20#%d','addMessage','from','c.fax','fullname','transcript-%d-%s.zip','toFile','sendStatus','lastName','start','toString','type','attachments','key','ContactId','createdAt','OpenchannelAccount','model','tools_tags','send','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','moment','clone','existsSync','o.internal','openchannel_interactions','resolve','field','Owner','getMessages','forEach','openchannel_messages','count','groupBy','OpenchannelInteraction','omit','like','contactName','replace','then','i.*','error','ids','Openchannel','findOne','split','text','findAll','openchannel_interaction_has_tags','stack','offset','find','renderFile','../../config/environment','\x0a\x20\x20\x20\x20\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','YYYY-MM-DD','basename','map','squel','threadId','emit','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','createWriteStream','UserId','views','color','Attachment','GROUP_CONCAT(DISTINCT\x20t.id)','i.from\x20LIKE\x20?','CmContact','$gte','buildExpression','removeTags','fieldName','include','i.OpenchannelAccountId\x20IS\x20NOT\x20NULL','all','group','files','html-pdf','direction','read','downloadInteraction.html','Private','create','rawAttributes','show','parse','$substring','createReadStream','isEmpty'];(function(_0x582719,_0x33a877){const _0x5761d7=function(_0x2e505f){while(--_0x2e505f){_0x582719['push'](_0x582719['shift']());}};_0x5761d7(++_0x33a877);}(a577_0x5761,0x116));const a577_0x2e50=function(_0x582719,_0x33a877){_0x582719=_0x582719-0x1e7;let _0x5761d7=a577_0x5761[_0x582719];return _0x5761d7;};const a577_0x3ba1f6=a577_0x2e50;'use strict';const pdf=require(a577_0x3ba1f6(0x283)),rimraf=require(a577_0x3ba1f6(0x223)),zipdir=require('zip-dir'),moment=require(a577_0x3ba1f6(0x249)),util=require('util'),path=require('path'),ejs=require('ejs'),fs=require('fs'),_=require('lodash'),squel=require(a577_0x3ba1f6(0x26e)),{getSocket}=require(a577_0x3ba1f6(0x2a8)),socket=getSocket(),qs=require(a577_0x3ba1f6(0x230)),as=require(a577_0x3ba1f6(0x29a)),logger=require(a577_0x3ba1f6(0x2b6))(a577_0x3ba1f6(0x22e)),config=require(a577_0x3ba1f6(0x269)),{db}=require(a577_0x3ba1f6(0x21a)),{Op,QueryTypes}=require('sequelize');require(a577_0x3ba1f6(0x1fb))['register'](socket);function respondWithStatusCode(_0x445623,_0x5b97be){return _0x5b97be=_0x5b97be||0xcc,function(_0x35ef5c){const _0x41ef4d=a577_0x2e50;if(_0x35ef5c)return _0x445623[_0x41ef4d(0x23b)](_0x5b97be);return _0x445623['status'](_0x5b97be)[_0x41ef4d(0x1f0)]();};}function respondWithResult(_0x4c59cd,_0x58ad02){return _0x58ad02=_0x58ad02||0xc8,function(_0x477693){const _0x1b190e=a577_0x2e50;if(_0x477693)return _0x4c59cd[_0x1b190e(0x2b2)](_0x58ad02)[_0x1b190e(0x2b0)](_0x477693);};}function respondWithFilteredResult(_0x5d6923,_0x55cd79){return function(_0x2e5d3b){const _0x54409f=a577_0x2e50;if(_0x2e5d3b){const _0x36d25c=_0x2e5d3b[_0x54409f(0x254)],_0x56b11a=_0x55cd79[_0x54409f(0x266)];let _0x21e287=_0x55cd79[_0x54409f(0x266)]+_0x55cd79[_0x54409f(0x1ef)],_0x4d894f;return _0x21e287>=_0x36d25c?(_0x21e287=_0x36d25c,_0x4d894f=0xc8):_0x4d894f=0xce,_0x5d6923[_0x54409f(0x2b2)](_0x4d894f),_0x5d6923[_0x54409f(0x21d)](_0x54409f(0x294),_0x56b11a+'-'+_0x21e287+'/'+_0x36d25c)['json'](_0x2e5d3b);}return null;};}function saveUpdates(_0x567e7b){return function(_0xca7b39){const _0xe2a9b7=a577_0x2e50;if(_0xca7b39)return _0xca7b39[_0xe2a9b7(0x209)](_0x567e7b)[_0xe2a9b7(0x25b)](function(_0x7ed486){return _0x7ed486;});return null;};}function removeEntity(_0x46b4b5){return function(_0x2190a0){const _0x204587=a577_0x2e50;if(_0x2190a0)return _0x2190a0['destroy']()[_0x204587(0x25b)](function(){const _0x5310ca=_0x204587;_0x46b4b5[_0x5310ca(0x2b2)](0xcc)[_0x5310ca(0x1f0)]();});};}function handleEntityNotFound(_0xa2afce){return function(_0x3b9933){const _0xae76b9=a577_0x2e50;return!_0x3b9933&&_0xa2afce[_0xae76b9(0x23b)](0x194),_0x3b9933;};}function handleError(_0x3ae8c4,_0x1e9d77){return _0x1e9d77=_0x1e9d77||0x1f4,function(_0x21d5b5){const _0x1685c6=a577_0x2e50;logger[_0x1685c6(0x25d)](_0x21d5b5[_0x1685c6(0x265)]),_0x21d5b5['name']&&delete _0x21d5b5['name'],_0x3ae8c4['status'](_0x1e9d77)[_0x1685c6(0x247)](_0x21d5b5);};}function getInteractionUsers(_0x589461,_0x21106c){return new Promise(function(_0x14f0ce,_0x50d156){const _0x28cb05=a577_0x2e50;try{_0x21106c[_0x589461['id']]&&(_0x589461[_0x28cb05(0x1ee)]=_[_0x28cb05(0x26d)](_0x21106c[_0x589461['id']],function(_0x1dfaa3){const _0x1e9ce8=_0x28cb05;return{'id':_0x1dfaa3['id'],'fullname':_0x1dfaa3[_0x1e9ce8(0x238)]};}));}catch(_0x29daf3){_0x50d156(_0x29daf3);}_0x14f0ce(_0x589461);});}function getInteractionTags(_0x1293f6,_0x14699e){return new Promise(function(_0x53114a,_0x3786d0){const _0x386fa4=a577_0x2e50;try{_0x1293f6['TagIds']&&(_0x1293f6[_0x386fa4(0x22d)]=[],_0x1293f6[_0x386fa4(0x218)][_0x386fa4(0x261)](',')[_0x386fa4(0x252)](function(_0x41d24c){const _0xdaf2f=_0x386fa4;_0x1293f6[_0xdaf2f(0x22d)][_0xdaf2f(0x1f3)](_0x14699e[_0x41d24c]);})),delete _0x1293f6['TagIds'];}catch(_0x2742b6){_0x3786d0(_0x2742b6);}_0x53114a(_0x1293f6);});}function updateOpenchannelInteraction(_0x5bf5a4,_0x37280c,_0x19764c){return new Promise(function(_0x177976,_0x21f39d){return getInteractionUsers(_0x5bf5a4,_0x19764c)['then'](function(_0x122ed8){return getInteractionTags(_0x122ed8,_0x37280c);})['then'](function(_0x48238a){_0x177976(_0x48238a);})['catch'](function(_0x368738){_0x21f39d(_0x368738);});});}exports[a577_0x3ba1f6(0x1f6)]=function(_0x3bdad3,_0x1585fd){const _0x5975ec=a577_0x3ba1f6,_0xb399f8={},_0x3aadb5={},_0x3c08ab={'count':0x0,'rows':[]},_0x3c6fc6=_[_0x5975ec(0x26d)](db[_0x5975ec(0x256)][_0x5975ec(0x289)],function(_0x37bfed){const _0xfa30fd=_0x5975ec;return{'name':_0x37bfed[_0xfa30fd(0x27d)],'type':_0x37bfed[_0xfa30fd(0x23f)][_0xfa30fd(0x241)]};});_0x3aadb5[_0x5975ec(0x245)]=_[_0x5975ec(0x26d)](_0x3c6fc6,_0x5975ec(0x221)),_0x3aadb5[_0x5975ec(0x1fe)]=_['keys'](_0x3bdad3['query']),_0x3aadb5['filters']=_[_0x5975ec(0x297)](_0x3aadb5[_0x5975ec(0x245)],_0x3aadb5[_0x5975ec(0x1fe)]),_0xb399f8[_0x5975ec(0x228)]=_[_0x5975ec(0x297)](_0x3aadb5[_0x5975ec(0x245)],qs['fields'](_0x3bdad3[_0x5975ec(0x1fe)][_0x5975ec(0x2c1)])),_0xb399f8['attributes']=_0xb399f8[_0x5975ec(0x228)][_0x5975ec(0x293)]?_0xb399f8[_0x5975ec(0x228)]:_0x3aadb5[_0x5975ec(0x245)];typeof _0x3bdad3[_0x5975ec(0x1fe)]['nolimit']===_0x5975ec(0x29c)&&(_0xb399f8[_0x5975ec(0x1ef)]=qs[_0x5975ec(0x1ef)](_0x3bdad3[_0x5975ec(0x1fe)][_0x5975ec(0x1ef)]),_0xb399f8['offset']=qs['offset'](_0x3bdad3[_0x5975ec(0x1fe)][_0x5975ec(0x266)]));_0xb399f8['order']=qs[_0x5975ec(0x2aa)](_0x3bdad3[_0x5975ec(0x1fe)][_0x5975ec(0x2aa)]),_0xb399f8[_0x5975ec(0x206)]=qs[_0x5975ec(0x2b3)](_[_0x5975ec(0x1f9)](_0x3bdad3[_0x5975ec(0x1fe)],_0x3aadb5['filters']),_0x3c6fc6);let _0x210656=[];const _0x177aa9=squel['select']()[_0x5975ec(0x24f)]('id')[_0x5975ec(0x24f)](_0x5975ec(0x221))['field'](_0x5975ec(0x275))['from'](_0x5975ec(0x246)),_0x46cc3d=squel['select']()['field']('u.id')[_0x5975ec(0x24f)](_0x5975ec(0x2bb))['field'](_0x5975ec(0x2ab))[_0x5975ec(0x236)](_0x5975ec(0x2ac),'ui')[_0x5975ec(0x1f8)](_0x5975ec(0x217),'u',_0x5975ec(0x2b8)),_0x439fb4=squel[_0x5975ec(0x22b)]()[_0x5975ec(0x236)](_0x5975ec(0x24d),'i')[_0x5975ec(0x1f8)](_0x5975ec(0x2af),'c',_0x5975ec(0x248))[_0x5975ec(0x1f8)](_0x5975ec(0x217),'o',_0x5975ec(0x29b))['left_join'](_0x5975ec(0x2a1),'a',_0x5975ec(0x216))[_0x5975ec(0x1f8)](_0x5975ec(0x253),'me',_0x5975ec(0x2c0))[_0x5975ec(0x1f8)](_0x5975ec(0x264),'it',_0x5975ec(0x2bf))[_0x5975ec(0x1f8)](_0x5975ec(0x246),'t',_0x5975ec(0x2ad)),_0xed0bd3=squel['expr']();let _0x431c3d=[];const _0x2ec3b0=squel['expr']();let _0x3e2396;if(_0x3bdad3[_0x5975ec(0x1fe)][_0x5975ec(0x1ed)]){_0x3e2396=as[_0x5975ec(0x292)](_0x3bdad3[_0x5975ec(0x1fe)]['search']);const _0x4353cc=_0x3e2396[_0x5975ec(0x233)];for(let _0x67d65=0x0;_0x67d65<_0x3e2396[_0x5975ec(0x2ae)]['length'];_0x67d65++){const _0x209b6f=_0x3e2396['conditions'][_0x67d65],_0x467912='i';let _0x46c68c,_0x1e9897=_[_0x5975ec(0x267)](_0x3c6fc6,[_0x5975ec(0x221),_0x209b6f[_0x5975ec(0x24f)]]);if(!_0x1e9897)switch(_0x209b6f[_0x5975ec(0x24f)]){case _0x5975ec(0x21c):_0x209b6f[_0x5975ec(0x21f)]==0x1?_0x439fb4['having']('`'+_0x209b6f['field']+_0x5975ec(0x207)):_0x439fb4[_0x5975ec(0x211)]('`'+_0x209b6f[_0x5975ec(0x24f)]+_0x5975ec(0x21e));break;case _0x5975ec(0x200):if(_0x209b6f[_0x5975ec(0x1f1)]===_0x5975ec(0x28c)){if(_0x209b6f['value']['split']('\x20')[_0x5975ec(0x293)]>0x1)_0xed0bd3[_0x4353cc](_0x5975ec(0x2c3),qs[_0x5975ec(0x1f5)](_0x209b6f[_0x5975ec(0x21f)]),null);else{const _0x5e418c='%'+_0x209b6f[_0x5975ec(0x21f)]+'%';_0xed0bd3[_0x4353cc](_0x5975ec(0x226),_0x5e418c,_0x5e418c,_0x5e418c);}}else _0x1e9897=_[_0x5975ec(0x267)](_0x3c6fc6,[_0x5975ec(0x221),'ContactId']),_0x209b6f[_0x5975ec(0x24f)]=_0x5975ec(0x242),_0x46c68c=as[_0x5975ec(0x27b)](_0x467912,_0x1e9897[_0x5975ec(0x23f)],_0x209b6f),_0xed0bd3[_0x4353cc](_0x46c68c[_0x5975ec(0x262)],_0x46c68c[_0x5975ec(0x21f)][_0x5975ec(0x23d)],_0x46c68c[_0x5975ec(0x21f)][_0x5975ec(0x1f0)]);break;case _0x5975ec(0x2a2):{const _0xa1d820=_0x209b6f[_0x5975ec(0x21f)][_0x5975ec(0x261)](',')[_0x5975ec(0x26d)](function(_0x496045){return Number(_0x496045);});_0xa1d820[_0x5975ec(0x252)](function(_0x449a63){const _0x2f2b6f=_0x5975ec;_0x2ec3b0['or'](_0x2f2b6f(0x22f),'%,'+_0x449a63+',%');}),_0x431c3d=_[_0x5975ec(0x203)](_0x431c3d,_0xa1d820);}break;case _0x5975ec(0x219):_0x209b6f['operator']===_0x5975ec(0x28c)?_0xed0bd3[_0x4353cc](_0x5975ec(0x1ff),'%'+_0x209b6f[_0x5975ec(0x21f)]+'%',null):(_0x1e9897=_[_0x5975ec(0x267)](_0x3c6fc6,[_0x5975ec(0x221),_0x5975ec(0x273)]),_0x209b6f[_0x5975ec(0x24f)]=_0x5975ec(0x273),_0x46c68c=as[_0x5975ec(0x27b)](_0x467912,_0x1e9897[_0x5975ec(0x23f)],_0x209b6f),_0xed0bd3[_0x4353cc](_0x46c68c[_0x5975ec(0x262)],_0x46c68c[_0x5975ec(0x21f)][_0x5975ec(0x23d)],_0x46c68c[_0x5975ec(0x21f)][_0x5975ec(0x1f0)]));break;case _0x5975ec(0x291):_0x46c68c=as[_0x5975ec(0x27b)]('me',null,_0x209b6f),_0xed0bd3[_0x4353cc](_0x46c68c[_0x5975ec(0x262)],_0x46c68c[_0x5975ec(0x21f)]['start'],_0x46c68c['value'][_0x5975ec(0x1f0)]);break;}else _0x46c68c=as[_0x5975ec(0x27b)](_0x467912,_0x1e9897['type'],_0x209b6f),_0xed0bd3[_0x4353cc](_0x46c68c[_0x5975ec(0x262)],_0x46c68c[_0x5975ec(0x21f)][_0x5975ec(0x23d)],_0x46c68c[_0x5975ec(0x21f)]['end']);}}else{const _0x113cc5=_(_0x3bdad3[_0x5975ec(0x1fe)])[_0x5975ec(0x224)]()['map'](function(_0x406cb0){const _0x27246f=_0x5975ec;return _[_0x27246f(0x29f)](_0x3c6fc6,[_0x27246f(0x221),_0x406cb0])?_0x406cb0:undefined;})['compact']()[_0x5975ec(0x21f)]();!_[_0x5975ec(0x28e)](_0x113cc5)&&_0x113cc5[_0x5975ec(0x252)](function(_0x4f9923){const _0x1a0cae=_0x5975ec;if(_0x4f9923==='OpenchannelAccountId')_0x439fb4['where'](_0x1a0cae(0x220),[]['concat'](_0x3bdad3[_0x1a0cae(0x1fe)][_0x4f9923]));else{if(_0x4f9923===_0x1a0cae(0x243)){const _0x40d1b4=JSON[_0x1a0cae(0x28b)](_0x3bdad3[_0x1a0cae(0x1fe)][_0x4f9923])[_0x1a0cae(0x27a)],_0x3cf0d5=JSON[_0x1a0cae(0x28b)](_0x3bdad3[_0x1a0cae(0x1fe)][_0x4f9923])['$lte'];_0x439fb4[_0x1a0cae(0x206)]('i.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0x40d1b4,_0x3cf0d5);}else _0x3bdad3[_0x1a0cae(0x1fe)][_0x4f9923]==='null'?_0x439fb4['where']('i.'+_0x4f9923+'\x20IS\x20NULL'):_0x439fb4['where']('i.'+_0x4f9923+'\x20=\x20?',_0x3bdad3['query'][_0x4f9923]);}});_0x3bdad3[_0x5975ec(0x1fe)][_0x5975ec(0x285)]&&(_0x3bdad3[_0x5975ec(0x1fe)][_0x5975ec(0x285)]==0x1?_0x439fb4['having']('`unreadMessages`\x20=\x200'):_0x439fb4[_0x5975ec(0x211)](_0x5975ec(0x21b)));_0x3bdad3[_0x5975ec(0x1fe)]['tag']&&(_0x431c3d=_['isArray'](_0x3bdad3['query']['tag'])?_0x3bdad3[_0x5975ec(0x1fe)][_0x5975ec(0x1ec)]:new Array(_0x3bdad3[_0x5975ec(0x1fe)]['tag']),_0x431c3d[_0x5975ec(0x252)](function(_0x2ae260){const _0x2aea2b=_0x5975ec;_0x2ec3b0['or'](_0x2aea2b(0x22f),'%,'+_0x2ae260+',%');}));if(_0x3bdad3[_0x5975ec(0x1fe)]['filter']){const _0x5cbfdb=_0x3bdad3[_0x5975ec(0x1fe)][_0x5975ec(0x2b5)][_0x5975ec(0x25a)]('\x5c','\x5c\x5c')['replace'](/'/g,'\x27\x27');qs[_0x5975ec(0x1eb)](_0x5cbfdb)?_0xed0bd3['or']('i.id\x20LIKE\x20?',_0x5cbfdb+'%'):_0xed0bd3['or']('MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x5975ec(0x1f5)](_0x5cbfdb))['or'](_0x5975ec(0x278),_0x5cbfdb+'%')['or'](_0x5975ec(0x271),_0x5cbfdb+'%');}}_0x439fb4['where'](_0xed0bd3),_0x439fb4[_0x5975ec(0x281)](_0x5975ec(0x295));let _0x2cb967={'type':QueryTypes['SELECT'],'raw':!![]};const _0x3b9129=_0x439fb4[_0x5975ec(0x24a)]();_0x3b9129[_0x5975ec(0x24f)](_0x5975ec(0x295)),_0x3b9129[_0x5975ec(0x24f)](_0x5975ec(0x201),_0x5975ec(0x21c)),_0xb399f8['order']&&_0xb399f8[_0x5975ec(0x232)][_0x5975ec(0x252)](function(_0x10a36b){const _0x34880c=_0x5975ec,_0x31986f=_0x10a36b[0x0]===_0x34880c(0x259)?_0x10a36b[0x0]:'i.'+_0x10a36b[0x0];_0x439fb4[_0x34880c(0x232)](_0x31986f,_0x10a36b[0x1]===_0x34880c(0x20e)?![]:!![]);}),!_[_0x5975ec(0x28e)](_0x431c3d)&&(_0x439fb4[_0x5975ec(0x211)](_0x2ec3b0),_0x3b9129[_0x5975ec(0x206)](_0x5975ec(0x1fd),_0x431c3d)),Promise[_0x5975ec(0x24e)]()[_0x5975ec(0x25b)](function(){const _0x50ca76=_0x5975ec;if(!_0x3e2396){if(_0x3bdad3[_0x50ca76(0x1fe)][_0x50ca76(0x212)]||_0x3bdad3[_0x50ca76(0x1fe)][_0x50ca76(0x208)])return;_0x3b9129[_0x50ca76(0x206)](_0x50ca76(0x27f)),_0x439fb4[_0x50ca76(0x206)](_0x50ca76(0x27f));return;}return _0x3bdad3[_0x50ca76(0x22a)]['getOpenchannelAccounts']({'attributes':['id'],'raw':!![]})['then'](function(_0x41d7b5){const _0x2a419b=_0x50ca76;_['isEmpty'](_0x41d7b5)?(_0x3b9129[_0x2a419b(0x206)](_0x2a419b(0x215)),_0x439fb4[_0x2a419b(0x206)](_0x2a419b(0x215))):(_0x3b9129[_0x2a419b(0x206)](_0x2a419b(0x220),_[_0x2a419b(0x26d)](_0x41d7b5,'id')),_0x439fb4[_0x2a419b(0x206)]('i.OpenchannelAccountId\x20IN\x20?',_[_0x2a419b(0x26d)](_0x41d7b5,'id')));});})[_0x5975ec(0x25b)](function(){const _0x4063d8=_0x5975ec;db[_0x4063d8(0x29e)][_0x4063d8(0x1fe)](_0x3b9129['toString'](),_0x2cb967)[_0x4063d8(0x25b)](function(_0x46949e){const _0x9e2cfe=_0x4063d8;_0x3c08ab[_0x9e2cfe(0x254)]=_0x46949e[_0x9e2cfe(0x293)];if(_0x3c08ab[_0x9e2cfe(0x254)]===0x0)return[];return db['sequelize'][_0x9e2cfe(0x1fe)](_0x177aa9['toString'](),_0x2cb967)['then'](function(_0x4204f6){const _0x1521f1=_0x9e2cfe;_0x210656=_[_0x1521f1(0x1fc)](_0x4204f6,'id'),_0x2cb967=_[_0x1521f1(0x1e9)](_0x2cb967,{'model':db[_0x1521f1(0x256)],'mapToModel':!![],'raw':!![],'nest':!![]});_0x3bdad3[_0x1521f1(0x1fe)]['fields']?_0xb399f8['attributes'][_0x1521f1(0x252)](function(_0x1a539c){const _0x317a5d=_0x1521f1;_0x439fb4[_0x317a5d(0x24f)]('i.'+_0x1a539c);}):(_0x439fb4['field'](_0x1521f1(0x201),_0x1521f1(0x21c)),_0x439fb4['field']('a.key',_0x1521f1(0x2b1)),_0x439fb4[_0x1521f1(0x24f)](_0x1521f1(0x2a9),'Account.mandatoryDisposition'),_0x439fb4[_0x1521f1(0x24f)]('CASE\x20WHEN\x20i.from\x20IS\x20NOT\x20NULL\x20AND\x20i.from\x20<>\x20\x27\x27\x20THEN\x20i.from\x20WHEN\x20(c.firstName\x20IS\x20NOT\x20NULL\x20AND\x20c.firstName\x20<>\x20\x27\x27)\x20OR\x20(c.lastName\x20IS\x20NOT\x20NULL\x20AND\x20c.lastName\x20<>\x20\x27\x27)\x20THEN\x20CONCAT(IFNULL(c.firstName,\x20\x27\x27),\x20\x27\x20\x27,\x20IFNULL(c.lastName,\x20\x27\x27))\x20ELSE\x20\x27Unknown\x27\x20END',_0x1521f1(0x259)),_0x439fb4[_0x1521f1(0x24f)](_0x1521f1(0x25c)),_0x439fb4[_0x1521f1(0x24f)](_0x1521f1(0x1fa),_0x1521f1(0x2b7)),_0x439fb4[_0x1521f1(0x24f)](_0x1521f1(0x1e8),'Contact.lastName'),_0x439fb4['field'](_0x1521f1(0x22c),_0x1521f1(0x2a7)),_0x439fb4[_0x1521f1(0x24f)](_0x1521f1(0x214),_0x1521f1(0x2c4)),_0x439fb4['field'](_0x1521f1(0x2a4),_0x1521f1(0x20b)),_0x439fb4[_0x1521f1(0x24f)](_0x1521f1(0x237),_0x1521f1(0x2a3)),_0x439fb4[_0x1521f1(0x24f)](_0x1521f1(0x28f),_0x1521f1(0x222)),_0x439fb4[_0x1521f1(0x24f)](_0x1521f1(0x24c),_0x1521f1(0x2a6)),_0x439fb4['field'](_0x1521f1(0x277),_0x1521f1(0x218)));if(_0xb399f8[_0x1521f1(0x1ef)])_0x439fb4[_0x1521f1(0x1ef)](_0xb399f8[_0x1521f1(0x1ef)]);if(_0xb399f8[_0x1521f1(0x266)])_0x439fb4[_0x1521f1(0x266)](_0xb399f8[_0x1521f1(0x266)]);return db['sequelize']['query'](_0x439fb4[_0x1521f1(0x23e)](),_0x2cb967);})[_0x9e2cfe(0x25b)](function(_0x497c49){const _0x10112c=_0x9e2cfe;return _0x46cc3d[_0x10112c(0x206)]('ui.OpenchannelInteractionId\x20IN\x20?',_[_0x10112c(0x26d)](_0x497c49,'id')),db[_0x10112c(0x29e)][_0x10112c(0x1fe)](_0x46cc3d[_0x10112c(0x23e)](),_0x2cb967)['then'](function(_0x7bb4f2){const _0x24602d=_0x10112c,_0x4729a6=_[_0x24602d(0x255)](_0x7bb4f2,_0x24602d(0x2be)),_0x3aaec7=[];return _0x497c49[_0x24602d(0x252)](function(_0x25b633){const _0x3294a7=_0x24602d;_0x3aaec7[_0x3294a7(0x1f3)](updateOpenchannelInteraction(_0x25b633,_0x210656,_0x4729a6));}),Promise[_0x24602d(0x280)](_0x3aaec7);});});})[_0x4063d8(0x25b)](function(_0x4a81e3){const _0x282b4f=_0x4063d8;return _0x3c08ab[_0x282b4f(0x229)]=_0x4a81e3,_0x3c08ab;})['then'](respondWithFilteredResult(_0x1585fd,_0xb399f8));})[_0x5975ec(0x2a0)](handleError(_0x1585fd,null));},exports[a577_0x3ba1f6(0x28a)]=function(_0x1da180,_0x1b61a5){const _0x24da5a=a577_0x3ba1f6,_0x5afa1f={};_0x1da180['query'][_0x24da5a(0x23f)]&&_0x1da180['query']['type']===_0x24da5a(0x236)?_0x5afa1f[_0x24da5a(0x236)]=_0x1da180['params']['id']:_0x5afa1f['id']=_0x1da180[_0x24da5a(0x298)]['id'];let _0x2a8bc1={'raw':![],'where':_0x5afa1f};const _0x51a074={};return _0x51a074[_0x24da5a(0x245)]=_[_0x24da5a(0x224)](db[_0x24da5a(0x256)][_0x24da5a(0x289)]),_0x51a074[_0x24da5a(0x1fe)]=_['keys'](_0x1da180['query']),_0x51a074[_0x24da5a(0x2b3)]=_['intersection'](_0x51a074[_0x24da5a(0x245)],_0x51a074[_0x24da5a(0x1fe)]),_0x2a8bc1[_0x24da5a(0x228)]=_[_0x24da5a(0x297)](_0x51a074[_0x24da5a(0x245)],qs['fields'](_0x1da180[_0x24da5a(0x1fe)][_0x24da5a(0x2c1)])),_0x2a8bc1['attributes']=_0x2a8bc1[_0x24da5a(0x228)]['length']?_0x2a8bc1[_0x24da5a(0x228)]:_0x51a074[_0x24da5a(0x245)],_0x1da180[_0x24da5a(0x1fe)][_0x24da5a(0x2c2)]&&(_0x2a8bc1[_0x24da5a(0x27e)]=[{'all':!![]}]),_0x2a8bc1=_[_0x24da5a(0x1e9)]({},_0x2a8bc1,_0x1da180[_0x24da5a(0x20a)]),db['OpenchannelInteraction'][_0x24da5a(0x260)](_0x2a8bc1)[_0x24da5a(0x25b)](handleEntityNotFound(_0x1b61a5,null))[_0x24da5a(0x25b)](respondWithResult(_0x1b61a5,null))[_0x24da5a(0x2a0)](handleError(_0x1b61a5,null));},exports['create']=function(_0x4677cd,_0x51180c){const _0x258e69=a577_0x3ba1f6;return db[_0x258e69(0x256)][_0x258e69(0x288)](_0x4677cd[_0x258e69(0x291)],{})[_0x258e69(0x25b)](respondWithResult(_0x51180c,0xc9))[_0x258e69(0x2a0)](handleError(_0x51180c,null));},exports[a577_0x3ba1f6(0x209)]=function(_0x4e6d97,_0x3cd37c){const _0x40401d=a577_0x3ba1f6;return _0x4e6d97[_0x40401d(0x291)]['id']&&delete _0x4e6d97[_0x40401d(0x291)]['id'],db[_0x40401d(0x256)]['findOne']({'where':{'id':_0x4e6d97[_0x40401d(0x298)]['id']}})['then'](handleEntityNotFound(_0x3cd37c,null))[_0x40401d(0x25b)](saveUpdates(_0x4e6d97[_0x40401d(0x291)],null))[_0x40401d(0x25b)](respondWithResult(_0x3cd37c,null))[_0x40401d(0x2a0)](handleError(_0x3cd37c,null));},exports['destroy']=function(_0x19ef5f,_0x2ad102){const _0x36dae7=a577_0x3ba1f6;return db['OpenchannelInteraction'][_0x36dae7(0x260)]({'where':{'id':_0x19ef5f[_0x36dae7(0x298)]['id']}})[_0x36dae7(0x25b)](handleEntityNotFound(_0x2ad102,null))[_0x36dae7(0x25b)](removeEntity(_0x2ad102,null))[_0x36dae7(0x2a0)](handleError(_0x2ad102,null));},exports[a577_0x3ba1f6(0x2bd)]=function(_0x5a7465,_0x3d78df){const _0x80798e=a577_0x3ba1f6;return db['OpenchannelInteraction'][_0x80798e(0x2bd)]()['then'](respondWithResult(_0x3d78df,null))[_0x80798e(0x2a0)](handleError(_0x3d78df,null));},exports['addMessage']=function(_0x1d2720,_0x168d42){const _0x2f05c0=a577_0x3ba1f6;return db[_0x2f05c0(0x225)]['findOne']({'where':{'id':_0x1d2720[_0x2f05c0(0x298)]['id']}})['then'](function(_0x367e58){const _0x35734c=_0x2f05c0;if(_0x367e58)return _0x367e58[_0x35734c(0x235)](_0x1d2720['body'][_0x35734c(0x25e)],{'through':_['omit'](_0x1d2720['body'],[_0x35734c(0x25e),'id'])});})[_0x2f05c0(0x25b)](respondWithResult(_0x168d42,null))[_0x2f05c0(0x2a0)](handleError(_0x168d42,null));},exports[a577_0x3ba1f6(0x251)]=function(_0x3b2f84,_0x3aa6dc){const _0x33813e=a577_0x3ba1f6;let _0x21c209={'raw':![],'where':{}};const _0x5c7be4={},_0x48e1b5={'count':0x0,'rows':[]};return db[_0x33813e(0x256)][_0x33813e(0x260)]({'where':{'id':_0x3b2f84['params']['id']}})[_0x33813e(0x25b)](handleEntityNotFound(_0x3aa6dc,null))[_0x33813e(0x25b)](function(_0x33a887){const _0x187729=_0x33813e;if(_0x33a887){_0x5c7be4[_0x187729(0x245)]=_['keys'](db[_0x187729(0x225)][_0x187729(0x289)]),_0x5c7be4['query']=_[_0x187729(0x224)](_0x3b2f84[_0x187729(0x1fe)]),_0x5c7be4[_0x187729(0x2b3)]=_[_0x187729(0x297)](_0x5c7be4[_0x187729(0x245)],_0x5c7be4[_0x187729(0x1fe)]),_0x21c209['attributes']=_['intersection'](_0x5c7be4[_0x187729(0x245)],qs[_0x187729(0x2c1)](_0x3b2f84['query'][_0x187729(0x2c1)])),_0x21c209[_0x187729(0x228)]=_0x21c209[_0x187729(0x228)][_0x187729(0x293)]?_0x21c209[_0x187729(0x228)]:_0x5c7be4['model'];typeof _0x3b2f84['query'][_0x187729(0x2b9)]==='undefined'&&(_0x21c209[_0x187729(0x1ef)]=qs[_0x187729(0x1ef)](_0x3b2f84[_0x187729(0x1fe)][_0x187729(0x1ef)]),_0x21c209[_0x187729(0x266)]=qs[_0x187729(0x266)](_0x3b2f84[_0x187729(0x1fe)][_0x187729(0x266)]));_0x21c209['order']=qs[_0x187729(0x2aa)](_0x3b2f84['query'][_0x187729(0x2aa)]),_0x21c209[_0x187729(0x206)]=qs[_0x187729(0x2b3)](_[_0x187729(0x1f9)](_0x3b2f84[_0x187729(0x1fe)],_0x5c7be4[_0x187729(0x2b3)])),_0x21c209[_0x187729(0x206)]['OpenchannelInteractionId']=_0x33a887['id'];_0x3b2f84[_0x187729(0x1fe)][_0x187729(0x2b5)]&&(_0x21c209[_0x187729(0x206)]=_[_0x187729(0x1e9)](_0x21c209['where'],{[Op['or']]:_[_0x187729(0x26d)](_0x21c209['attributes'],function(_0xb2fe15){const _0x122afb=_0x187729,_0x464140={};return _0x464140[_0xb2fe15]={[Op[_0x122afb(0x258)]]:'%'+_0x3b2f84[_0x122afb(0x1fe)][_0x122afb(0x2b5)]+'%'},_0x464140;})}));if(_0x3b2f84[_0x187729(0x1fe)][_0x187729(0x27a)]){const _0x4e151f=_0x3b2f84[_0x187729(0x1fe)]['$gte'][_0x187729(0x261)](','),_0x4f72ca={};_0x4f72ca[_0x4e151f[0x0]]={[Op[_0x187729(0x202)]]:moment(_0x4e151f[0x1])['format']('YYYY-MM-DD\x20HH:mm:ss')},_0x21c209['where']=_[_0x187729(0x1e9)](_0x21c209[_0x187729(0x206)],_0x4f72ca);}return _0x21c209=_[_0x187729(0x1e9)]({},_0x21c209,_0x3b2f84['options']),db[_0x187729(0x225)][_0x187729(0x254)]({'where':_0x21c209[_0x187729(0x206)]})['then'](function(_0x2d6c2a){const _0x2d39db=_0x187729;return _0x48e1b5[_0x2d39db(0x254)]=_0x2d6c2a,_0x3b2f84[_0x2d39db(0x1fe)][_0x2d39db(0x2c2)]&&(_0x21c209['include']=[{'all':!![]}]),db[_0x2d39db(0x225)]['findAll'](_0x21c209);})[_0x187729(0x25b)](function(_0x3a44e4){return _0x48e1b5['rows']=_0x3a44e4,_0x48e1b5;});}})[_0x33813e(0x25b)](respondWithFilteredResult(_0x3aa6dc,_0x21c209))[_0x33813e(0x2a0)](handleError(_0x3aa6dc,null));},exports['addTags']=function(_0x58985d,_0x13f6ce){const _0x3177ec=a577_0x3ba1f6;return db['OpenchannelInteraction'][_0x3177ec(0x260)]({'where':{'id':_0x58985d[_0x3177ec(0x298)]['id']}})[_0x3177ec(0x25b)](function(_0x3c56f0){const _0x441fe5=_0x3177ec;if(_0x3c56f0)return _0x3c56f0[_0x441fe5(0x2c5)](_0x58985d['body'][_0x441fe5(0x25e)],{'through':_[_0x441fe5(0x257)](_0x58985d[_0x441fe5(0x291)],['ids','id'])})[_0x441fe5(0x25b)](function(){const _0x10fa46=_0x441fe5;return db[_0x10fa46(0x2a2)][_0x10fa46(0x263)]({'attributes':['id','name',_0x10fa46(0x275)],'where':{'id':_0x58985d[_0x10fa46(0x291)][_0x10fa46(0x25e)]}});})['then'](function(_0x40529f){const _0xf81167=_0x441fe5;return socket[_0xf81167(0x270)](_0xf81167(0x1f2),{'id':Number(_0x58985d[_0xf81167(0x298)]['id']),'tags':_0x40529f||[]}),{'id':Number(_0x58985d[_0xf81167(0x298)]['id']),'tags':_0x40529f||[]};});})[_0x3177ec(0x25b)](respondWithResult(_0x13f6ce,null))['catch'](handleError(_0x13f6ce,null));},exports[a577_0x3ba1f6(0x27c)]=function(_0x433ad6,_0x1beab6){const _0x55b411=a577_0x3ba1f6;return db[_0x55b411(0x256)][_0x55b411(0x260)]({'where':{'id':_0x433ad6[_0x55b411(0x298)]['id']}})[_0x55b411(0x25b)](handleEntityNotFound(_0x1beab6,null))[_0x55b411(0x25b)](function(_0x543e4c){const _0x454155=_0x55b411;if(_0x543e4c)return _0x543e4c[_0x454155(0x27c)](_0x433ad6[_0x454155(0x1fe)]['ids']);})[_0x55b411(0x25b)](respondWithStatusCode(_0x1beab6,null))[_0x55b411(0x2a0)](handleError(_0x1beab6,null));},exports['download']=function(_0x1f3d94,_0x295db5){const _0x426655=a577_0x3ba1f6,_0xef817b=moment()[_0x426655(0x213)]()['toString'](),_0x22269a=path[_0x426655(0x20c)](config[_0x426655(0x290)],_0x426655(0x282),'tmp'),_0x34e60b=path[_0x426655(0x20c)](config[_0x426655(0x290)],'server',_0x426655(0x282),_0x426655(0x240)),_0x3c5dee=path[_0x426655(0x20c)](_0x22269a,_0xef817b),_0xef5e93=util['format'](_0x426655(0x239),_0x1f3d94['params']['id'],_0xef817b),_0x293101=path[_0x426655(0x20c)](_0x22269a,_0xef5e93),_0x15a637=[];_0x15a637[_0x426655(0x1f3)]({'model':db['User'],'as':'User','attributes':['id',_0x426655(0x238)],'raw':!![]}),_0x15a637['push']({'model':db[_0x426655(0x279)],'as':_0x426655(0x200),'attributes':['id',_0x426655(0x296),_0x426655(0x23c)],'raw':!![]});_0x1f3d94[_0x426655(0x1fe)][_0x426655(0x240)]&&_0x15a637['push']({'model':db[_0x426655(0x276)],'as':'Attachment','raw':!![]});const _0x3e4d98=[{'model':db['OpenchannelMessage'],'as':_0x426655(0x210),'attributes':['id',_0x426655(0x291),'createdAt',_0x426655(0x284),_0x426655(0x1e7),_0x426655(0x285)],'include':_0x15a637}];return _0x3e4d98[_0x426655(0x1f3)]({'model':db[_0x426655(0x244)],'as':'Account','attributes':['id',_0x426655(0x221)]}),_0x3e4d98[_0x426655(0x1f3)]({'model':db[_0x426655(0x219)],'as':_0x426655(0x250),'attributes':['id',_0x426655(0x238)]}),db['OpenchannelInteraction'][_0x426655(0x260)]({'where':{'id':_0x1f3d94[_0x426655(0x298)]['id']},'include':_0x3e4d98})[_0x426655(0x25b)](handleEntityNotFound(_0x295db5,null))[_0x426655(0x25b)](function(_0x5364a9){const _0x479058=_0x426655;if(_0x5364a9){const _0x4c632e=_0x5364a9['get']({'plain':!![]});fs[_0x479058(0x204)](_0x3c5dee);const _0x327be9={'format':'A4','border':'10px','header':{'height':'40px','contents':{'first':_0x479058(0x26a)}},'footer':{'height':_0x479058(0x231),'contents':{'default':util[_0x479058(0x1f7)](_0x479058(0x29d),util[_0x479058(0x1f7)](_0x479058(0x234),'Openchannel',_0x4c632e['id']),moment()['format'](_0x479058(0x26b))[_0x479058(0x23e)]())}}},_0x48b9a8={'channel':_0x479058(0x25f),'account':_0x4c632e[_0x479058(0x2b4)][_0x479058(0x221)],'agent':_0x4c632e[_0x479058(0x250)]?_0x4c632e[_0x479058(0x250)][_0x479058(0x238)]:_0x479058(0x205),'createdAt':moment(_0x4c632e[_0x479058(0x243)])[_0x479058(0x1f7)](_0x479058(0x20f))['toString'](),'closedAt':_0x4c632e[_0x479058(0x1ea)]?moment(_0x4c632e['closedAt'])[_0x479058(0x1f7)]('YYYY-MM-DD\x20HH:mm:ss')[_0x479058(0x23e)]():'','disposition':_0x4c632e[_0x479058(0x1f4)],'visibility':_0x4c632e[_0x479058(0x26f)]?'Public':_0x479058(0x287),'messages':_(_0x4c632e[_0x479058(0x210)])[_0x479058(0x2b5)]({'secret':![]})['map'](function(_0x1415c4){const _0x5a9520=_0x479058;if(_0x1415c4[_0x5a9520(0x276)]){const _0x35257a=path[_0x5a9520(0x20c)](_0x34e60b,_0x1415c4[_0x5a9520(0x276)][_0x5a9520(0x26c)]);fs[_0x5a9520(0x24b)](_0x35257a)&&fs[_0x5a9520(0x28d)](_0x35257a)[_0x5a9520(0x2bc)](fs[_0x5a9520(0x272)](path[_0x5a9520(0x20c)](_0x3c5dee,_0x1415c4['Attachment'][_0x5a9520(0x26c)])));}return{'date':moment(_0x1415c4[_0x5a9520(0x243)])[_0x5a9520(0x1f7)](_0x5a9520(0x20f))['toString'](),'sender':_0x1415c4[_0x5a9520(0x284)]===_0x5a9520(0x20d)?_0x1415c4['User']?_0x1415c4[_0x5a9520(0x219)][_0x5a9520(0x238)]:_0x5a9520(0x2ba):_0x1415c4[_0x5a9520(0x200)][_0x5a9520(0x296)]+(_0x1415c4['Contact'][_0x5a9520(0x23c)]?'\x20'+_0x1415c4[_0x5a9520(0x200)]['lastName']:''),'body':_0x1415c4['Attachment']?_0x1415c4[_0x5a9520(0x276)]['basename']:_0x1415c4['body'],'direction':_0x1415c4[_0x5a9520(0x284)]==='out'?'A':'C','secret':_0x1415c4['secret'],'read':_0x1415c4[_0x5a9520(0x285)],'attachment':_0x1415c4[_0x5a9520(0x276)]};})[_0x479058(0x21f)]()};return ejs[_0x479058(0x268)](path[_0x479058(0x20c)](config[_0x479058(0x290)],'server',_0x479058(0x274),_0x479058(0x286)),{'interaction':_0x48b9a8})['then'](function(_0x5e8e62){return new Promise(function(_0x40d741,_0x1b3271){const _0x11a930=a577_0x2e50;pdf[_0x11a930(0x288)](_0x5e8e62,_0x327be9)[_0x11a930(0x23a)](path[_0x11a930(0x20c)](_0x3c5dee,'transcript-'+_0x4c632e['id']+'-'+_0xef817b+'.pdf'),function(_0x3a61e0,_0x39d7d2){if(_0x3a61e0)return _0x1b3271(_0x3a61e0);_0x40d741(_0x39d7d2);});});})[_0x479058(0x25b)](function(){const _0x4f4602=_0x479058;return new Promise(function(_0x47a716,_0x34db83){zipdir(_0x3c5dee,{'saveTo':_0x293101},function(_0x470dec,_0xeb9a42){if(_0x470dec)return _0x34db83(_0x470dec);return _0x47a716(_0xeb9a42);});})[_0x4f4602(0x25b)](function(){return new Promise(function(_0x556dcb,_0x4c2016){rimraf(_0x3c5dee,function(_0x5d04bb){if(_0x5d04bb)_0x4c2016(_0x5d04bb);return _0x556dcb();});});})[_0x4f4602(0x25b)](function(){return _0x295db5['download'](_0x293101,_0xef5e93,function(_0x3965ea){const _0x4526f0=a577_0x2e50;_0x3965ea?console[_0x4526f0(0x227)](_0x4526f0(0x2a5),_0x3965ea):fs[_0x4526f0(0x299)](_0x293101);});});});}else return _0x295db5[_0x479058(0x23b)](0xc8);})[_0x426655(0x2a0)](handleError(_0x295db5,null));}; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.events.js b/server/api/openchannelInteraction/openchannelInteraction.events.js index 5078119..09e90c3 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.events.js +++ b/server/api/openchannelInteraction/openchannelInteraction.events.js @@ -1 +1 @@ -const a578_0x1ee3=['then','map','Users','remove','undefined','setMaxListeners','exports','findAll','OpenchannelInteraction','emit','save','../../mysqldb','events','catch','OpenchannelMessage','getUsers','setDataValue'];(function(_0x4e5018,_0x755062){const _0x1ee31a=function(_0x295d17){while(--_0x295d17){_0x4e5018['push'](_0x4e5018['shift']());}};_0x1ee31a(++_0x755062);}(a578_0x1ee3,0x1c0));const a578_0x295d=function(_0x4e5018,_0x755062){_0x4e5018=_0x4e5018-0x177;let _0x1ee31a=a578_0x1ee3[_0x4e5018];return _0x1ee31a;};const a578_0x13a979=a578_0x295d;'use strict';const EventEmitter=require(a578_0x13a979(0x17d)),OpenchannelInteraction=require('../../mysqldb')['db'][a578_0x13a979(0x179)],OpenchannelMessage=require(a578_0x13a979(0x17c))['db'][a578_0x13a979(0x17f)],OpenchannelInteractionEvents=new EventEmitter();OpenchannelInteractionEvents[a578_0x13a979(0x187)](0x0);const events={'afterCreate':a578_0x13a979(0x17b),'afterUpdate':'update','afterDestroy':a578_0x13a979(0x185)};function emitEvent(_0x17eb65){return function(_0x39e369){const _0x4a7896=a578_0x295d;_0x39e369[_0x4a7896(0x180)]({'attributes':['id'],'raw':!![]})[_0x4a7896(0x182)](function(_0x2d0735){const _0x2fadd5=_0x4a7896;return _0x39e369[_0x2fadd5(0x181)](_0x2fadd5(0x184),_0x2d0735[_0x2fadd5(0x183)](function(_0x4eaa98){return{'id':_0x4eaa98['id']};})),OpenchannelMessage[_0x2fadd5(0x178)]({'where':{'OpenchannelInteractionId':_0x39e369['id'],'direction':'in','read':![]},'raw':!![]});})[_0x4a7896(0x182)](function(_0xf026bf){const _0x5f0c62=_0x4a7896;_0x39e369['setDataValue']('unreadMessages',_0xf026bf['length']),OpenchannelInteractionEvents[_0x5f0c62(0x17a)](_0x17eb65+':'+_0x39e369['id'],_0x39e369),OpenchannelInteractionEvents[_0x5f0c62(0x17a)](_0x17eb65,_0x39e369);})[_0x4a7896(0x17e)](()=>{});};}for(const e in events){if(typeof events[e]!==a578_0x13a979(0x186)){const event=events[e];OpenchannelInteraction['addHook'](e,emitEvent(event));}}module[a578_0x13a979(0x177)]=OpenchannelInteractionEvents; \ No newline at end of file +const a578_0x4adc=['remove','setDataValue','then','exports','OpenchannelInteraction','Users','events','OpenchannelMessage','findAll','emit','catch','length','../../mysqldb','setMaxListeners'];(function(_0x2fb281,_0x2f1d32){const _0x4adc89=function(_0x59eb2d){while(--_0x59eb2d){_0x2fb281['push'](_0x2fb281['shift']());}};_0x4adc89(++_0x2f1d32);}(a578_0x4adc,0x118));const a578_0x59eb=function(_0x2fb281,_0x2f1d32){_0x2fb281=_0x2fb281-0x65;let _0x4adc89=a578_0x4adc[_0x2fb281];return _0x4adc89;};const a578_0x365f76=a578_0x59eb;'use strict';const EventEmitter=require(a578_0x365f76(0x6b)),OpenchannelInteraction=require('../../mysqldb')['db'][a578_0x365f76(0x69)],OpenchannelMessage=require(a578_0x365f76(0x71))['db'][a578_0x365f76(0x6c)],OpenchannelInteractionEvents=new EventEmitter();OpenchannelInteractionEvents[a578_0x365f76(0x72)](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':a578_0x365f76(0x65)};function emitEvent(_0xbd815e){return function(_0x3dbb2b){const _0x5dca2b=a578_0x59eb;_0x3dbb2b['getUsers']({'attributes':['id'],'raw':!![]})[_0x5dca2b(0x67)](function(_0x44e215){const _0x452e86=_0x5dca2b;return _0x3dbb2b[_0x452e86(0x66)](_0x452e86(0x6a),_0x44e215['map'](function(_0xbed49d){return{'id':_0xbed49d['id']};})),OpenchannelMessage[_0x452e86(0x6d)]({'where':{'OpenchannelInteractionId':_0x3dbb2b['id'],'direction':'in','read':![]},'raw':!![]});})[_0x5dca2b(0x67)](function(_0x39fa12){const _0x27c074=_0x5dca2b;_0x3dbb2b[_0x27c074(0x66)]('unreadMessages',_0x39fa12[_0x27c074(0x70)]),OpenchannelInteractionEvents[_0x27c074(0x6e)](_0xbd815e+':'+_0x3dbb2b['id'],_0x3dbb2b),OpenchannelInteractionEvents[_0x27c074(0x6e)](_0xbd815e,_0x3dbb2b);})[_0x5dca2b(0x6f)](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];OpenchannelInteraction['addHook'](e,emitEvent(event));}}module[a578_0x365f76(0x68)]=OpenchannelInteractionEvents; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.model.js b/server/api/openchannelInteraction/openchannelInteraction.model.js index 94a34f0..4523f8e 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.model.js +++ b/server/api/openchannelInteraction/openchannelInteraction.model.js @@ -1 +1 @@ -const a579_0x6fa5=['sequelize','./openchannelInteraction.attributes','exports','function','./openchannelInteraction.options','OpenchannelInteraction','init'];(function(_0x35944d,_0x1f6945){const _0x6fa50e=function(_0x1e4bb7){while(--_0x1e4bb7){_0x35944d['push'](_0x35944d['shift']());}};_0x6fa50e(++_0x1f6945);}(a579_0x6fa5,0x1d2));const a579_0x1e4b=function(_0x35944d,_0x1f6945){_0x35944d=_0x35944d-0x83;let _0x6fa50e=a579_0x6fa5[_0x35944d];return _0x6fa50e;};const a579_0x2cf026=a579_0x1e4b;'use strict';const {Model}=require(a579_0x2cf026(0x86)),{attributes}=require(a579_0x2cf026(0x87)),{options}=require(a579_0x2cf026(0x83));class OpenchannelInteraction extends Model{}function init(_0x1132b3,_0x45128b){const _0x1da740=a579_0x2cf026,_0x5e86b9=options(_0x1132b3),_0x22caf0=typeof _0x45128b===_0x1da740(0x89)?_0x45128b(_0x5e86b9):_0x5e86b9;return OpenchannelInteraction[_0x1da740(0x85)](attributes,_0x22caf0),OpenchannelInteraction;}module[a579_0x2cf026(0x88)][a579_0x2cf026(0x84)]=OpenchannelInteraction,module[a579_0x2cf026(0x88)][a579_0x2cf026(0x85)]=init; \ No newline at end of file +const a579_0x26d5=['init','./openchannelInteraction.options','function','./openchannelInteraction.attributes','exports','sequelize','OpenchannelInteraction'];(function(_0x418051,_0x518a08){const _0x26d528=function(_0x3998a5){while(--_0x3998a5){_0x418051['push'](_0x418051['shift']());}};_0x26d528(++_0x518a08);}(a579_0x26d5,0x170));const a579_0x3998=function(_0x418051,_0x518a08){_0x418051=_0x418051-0x10a;let _0x26d528=a579_0x26d5[_0x418051];return _0x26d528;};const a579_0x3ed76f=a579_0x3998;'use strict';const {Model}=require(a579_0x3ed76f(0x10b)),{attributes}=require(a579_0x3ed76f(0x110)),{options}=require(a579_0x3ed76f(0x10e));class OpenchannelInteraction extends Model{}function init(_0x23faf5,_0x171f92){const _0x2b4be8=a579_0x3ed76f,_0x4c8007=options(_0x23faf5),_0x2ce518=typeof _0x171f92===_0x2b4be8(0x10f)?_0x171f92(_0x4c8007):_0x4c8007;return OpenchannelInteraction[_0x2b4be8(0x10d)](attributes,_0x2ce518),OpenchannelInteraction;}module[a579_0x3ed76f(0x10a)][a579_0x3ed76f(0x10c)]=OpenchannelInteraction,module['exports'][a579_0x3ed76f(0x10d)]=init; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.options.js b/server/api/openchannelInteraction/openchannelInteraction.options.js index 93ec69e..32e8c75 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.options.js +++ b/server/api/openchannelInteraction/openchannelInteraction.options.js @@ -1 +1 @@ -const a580_0x299b=['openchannel_interactions','exports','moment','options','YYYY-MM-DD\x20HH:mm:ss','format','closed'];(function(_0xbac970,_0x5719f5){const _0x299b2c=function(_0x53de03){while(--_0x53de03){_0xbac970['push'](_0xbac970['shift']());}};_0x299b2c(++_0x5719f5);}(a580_0x299b,0x10f));const a580_0x53de=function(_0xbac970,_0x5719f5){_0xbac970=_0xbac970-0x1d2;let _0x299b2c=a580_0x299b[_0xbac970];return _0x299b2c;};const a580_0x264c85=a580_0x53de,moment=require(a580_0x264c85(0x1d6));function options(_0x203a96){const _0x568b7b=a580_0x264c85;return{'sequelize':_0x203a96,'tableName':_0x568b7b(0x1d4),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x33d7a4){const _0x578cae=_0x568b7b;_0x33d7a4['changed'](_0x578cae(0x1d3))&&(_0x33d7a4['closedAt']=moment()[_0x578cae(0x1d2)](_0x578cae(0x1d8)));}}};}module[a580_0x264c85(0x1d5)][a580_0x264c85(0x1d7)]=options; \ No newline at end of file +const a580_0x12fd=['options','moment','openchannel_interactions','changed','exports','closed','YYYY-MM-DD\x20HH:mm:ss','format'];(function(_0x31be59,_0x2f33ed){const _0x12fd46=function(_0x170b88){while(--_0x170b88){_0x31be59['push'](_0x31be59['shift']());}};_0x12fd46(++_0x2f33ed);}(a580_0x12fd,0x1b0));const a580_0x170b=function(_0x31be59,_0x2f33ed){_0x31be59=_0x31be59-0x1df;let _0x12fd46=a580_0x12fd[_0x31be59];return _0x12fd46;};const a580_0x246305=a580_0x170b,moment=require(a580_0x246305(0x1e0));function options(_0x459c5c){const _0x229335=a580_0x246305;return{'sequelize':_0x459c5c,'tableName':_0x229335(0x1e1),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x239e25){const _0xc20125=_0x229335;_0x239e25[_0xc20125(0x1e2)](_0xc20125(0x1e4))&&(_0x239e25['closedAt']=moment()[_0xc20125(0x1e6)](_0xc20125(0x1e5)));}}};}module[a580_0x246305(0x1e3)][a580_0x246305(0x1df)]=options; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.rpc.js b/server/api/openchannelInteraction/openchannelInteraction.rpc.js index 6e2e60c..0cf1424 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.rpc.js +++ b/server/api/openchannelInteraction/openchannelInteraction.rpc.js @@ -1 +1 @@ -const a581_0x25a7=['message','stringify','AddTagsToOpenchannelInteraction','OpenchannelInteraction','lodash','../../mysqldb','UpdateOpenchannelInteraction','update','attributes','AddTags','error','raw','rpc','./openchannelInteraction.socket','register','where','catch','body','options','limit','../../config/logger','debug','ids','info','then'];(function(_0x58fef5,_0x4f12f6){const _0x25a72f=function(_0x5ae4b7){while(--_0x5ae4b7){_0x58fef5['push'](_0x58fef5['shift']());}};_0x25a72f(++_0x4f12f6);}(a581_0x25a7,0xa4));const a581_0x5ae4=function(_0x58fef5,_0x4f12f6){_0x58fef5=_0x58fef5-0x13a;let _0x25a72f=a581_0x25a7[_0x58fef5];return _0x25a72f;};const a581_0x401f49=a581_0x5ae4;'use strict';const _=require(a581_0x401f49(0x149)),db=require(a581_0x401f49(0x14a))['db'],logger=require(a581_0x401f49(0x140))(a581_0x401f49(0x151)),{getSocket}=require('../../rediscache'),socket=getSocket();require(a581_0x401f49(0x152))[a581_0x401f49(0x13a)](socket),exports[a581_0x401f49(0x14b)]=function(_0x22c3e8){const _0x550abf=this;return new Promise(function(_0x316f4d,_0x4c8c91){const _0x41cb02=a581_0x5ae4;return db[_0x41cb02(0x148)][_0x41cb02(0x14c)](_0x22c3e8['body'],{'raw':_0x22c3e8[_0x41cb02(0x13e)]?_0x22c3e8['options'][_0x41cb02(0x150)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x22c3e8['options']?_0x22c3e8[_0x41cb02(0x13e)]['where']||null:null,'attributes':_0x22c3e8[_0x41cb02(0x13e)]?_0x22c3e8[_0x41cb02(0x13e)][_0x41cb02(0x14d)]||null:null,'limit':_0x22c3e8[_0x41cb02(0x13e)]?_0x22c3e8[_0x41cb02(0x13e)][_0x41cb02(0x13f)]||null:null})[_0x41cb02(0x144)](function(_0x5e8965){const _0x59333a=_0x41cb02;logger[_0x59333a(0x143)](_0x59333a(0x14b),_0x22c3e8),logger[_0x59333a(0x141)](_0x59333a(0x14b),_0x22c3e8,JSON[_0x59333a(0x146)](_0x5e8965)),_0x316f4d(_0x5e8965);})[_0x41cb02(0x13c)](function(_0x51a32a){const _0x179970=_0x41cb02;logger[_0x179970(0x14f)](_0x179970(0x14b),_0x51a32a[_0x179970(0x145)],_0x22c3e8),_0x4c8c91(_0x550abf['error'](0x1f4,_0x51a32a['message']));});});},exports[a581_0x401f49(0x147)]=function(_0x5ebaec){const _0x57fdb0=this;return new Promise(function(_0x323b99,_0x29d1df){const _0x43e936=a581_0x5ae4;return db[_0x43e936(0x148)]['findOne']({'where':_0x5ebaec[_0x43e936(0x13e)]?_0x5ebaec[_0x43e936(0x13e)][_0x43e936(0x13b)]||null:null})[_0x43e936(0x144)](function(_0x17c7af){const _0x295c70=_0x43e936;if(_0x17c7af)return _0x17c7af['addTags'](_0x5ebaec['body'][_0x295c70(0x142)],{'through':_['omit'](_0x5ebaec[_0x295c70(0x13d)],[_0x295c70(0x142),'id'])});})[_0x43e936(0x144)](function([_0xaee59]){const _0x4e3362=_0x43e936;logger[_0x4e3362(0x143)](_0x4e3362(0x14e),_0x5ebaec),logger['debug']('AddTags',_0x5ebaec,JSON['stringify'](_0xaee59)),_0x323b99(_0xaee59);})[_0x43e936(0x13c)](function(_0x20ed47){const _0x123fc8=_0x43e936;logger['error'](_0x123fc8(0x14e),_0x20ed47['message'],_0x5ebaec),_0x29d1df(_0x57fdb0[_0x123fc8(0x14f)](0x1f4,_0x20ed47[_0x123fc8(0x145)]));});});}; \ No newline at end of file +const a581_0x4d46=['register','findOne','where','ids','body','OpenchannelInteraction','./openchannelInteraction.socket','options','UpdateOpenchannelInteraction','stringify','addTags','message','update','error','catch','AddTags','info','debug','omit','AddTagsToOpenchannelInteraction','then','../../mysqldb','raw','lodash','../../rediscache'];(function(_0xcc12a6,_0xf6f83f){const _0x4d46ad=function(_0x4ae8ff){while(--_0x4ae8ff){_0xcc12a6['push'](_0xcc12a6['shift']());}};_0x4d46ad(++_0xf6f83f);}(a581_0x4d46,0x13a));const a581_0x4ae8=function(_0xcc12a6,_0xf6f83f){_0xcc12a6=_0xcc12a6-0xdf;let _0x4d46ad=a581_0x4d46[_0xcc12a6];return _0x4d46ad;};const a581_0x106877=a581_0x4ae8;'use strict';const _=require(a581_0x106877(0xe8)),db=require(a581_0x106877(0xe6))['db'],logger=require('../../config/logger')('rpc'),{getSocket}=require(a581_0x106877(0xe9)),socket=getSocket();require(a581_0x106877(0xf0))[a581_0x106877(0xea)](socket),exports[a581_0x106877(0xf2)]=function(_0x37ff23){const _0x59e573=this;return new Promise(function(_0x4e11b8,_0x2e5d24){const _0x1c0b34=a581_0x4ae8;return db[_0x1c0b34(0xef)][_0x1c0b34(0xf6)](_0x37ff23[_0x1c0b34(0xee)],{'raw':_0x37ff23[_0x1c0b34(0xf1)]?_0x37ff23[_0x1c0b34(0xf1)][_0x1c0b34(0xe7)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x37ff23[_0x1c0b34(0xf1)]?_0x37ff23[_0x1c0b34(0xf1)][_0x1c0b34(0xec)]||null:null,'attributes':_0x37ff23[_0x1c0b34(0xf1)]?_0x37ff23[_0x1c0b34(0xf1)]['attributes']||null:null,'limit':_0x37ff23[_0x1c0b34(0xf1)]?_0x37ff23['options']['limit']||null:null})['then'](function(_0x1d9ec1){const _0x3860ae=_0x1c0b34;logger[_0x3860ae(0xe1)](_0x3860ae(0xf2),_0x37ff23),logger[_0x3860ae(0xe2)](_0x3860ae(0xf2),_0x37ff23,JSON['stringify'](_0x1d9ec1)),_0x4e11b8(_0x1d9ec1);})[_0x1c0b34(0xdf)](function(_0x4c1485){const _0x2fc39a=_0x1c0b34;logger[_0x2fc39a(0xf7)](_0x2fc39a(0xf2),_0x4c1485['message'],_0x37ff23),_0x2e5d24(_0x59e573[_0x2fc39a(0xf7)](0x1f4,_0x4c1485[_0x2fc39a(0xf5)]));});});},exports[a581_0x106877(0xe4)]=function(_0x535833){const _0x14d869=this;return new Promise(function(_0x38cf41,_0x441b51){const _0x283d2b=a581_0x4ae8;return db['OpenchannelInteraction'][_0x283d2b(0xeb)]({'where':_0x535833['options']?_0x535833[_0x283d2b(0xf1)][_0x283d2b(0xec)]||null:null})[_0x283d2b(0xe5)](function(_0x397054){const _0x255884=_0x283d2b;if(_0x397054)return _0x397054[_0x255884(0xf4)](_0x535833[_0x255884(0xee)][_0x255884(0xed)],{'through':_[_0x255884(0xe3)](_0x535833[_0x255884(0xee)],[_0x255884(0xed),'id'])});})[_0x283d2b(0xe5)](function([_0x1761f1]){const _0x2013de=_0x283d2b;logger[_0x2013de(0xe1)]('AddTags',_0x535833),logger[_0x2013de(0xe2)](_0x2013de(0xe0),_0x535833,JSON[_0x2013de(0xf3)](_0x1761f1)),_0x38cf41(_0x1761f1);})[_0x283d2b(0xdf)](function(_0x36535f){const _0x2f510d=_0x283d2b;logger[_0x2f510d(0xf7)](_0x2f510d(0xe0),_0x36535f[_0x2f510d(0xf5)],_0x535833),_0x441b51(_0x14d869[_0x2f510d(0xf7)](0x1f4,_0x36535f[_0x2f510d(0xf5)]));});});}; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.socket.js b/server/api/openchannelInteraction/openchannelInteraction.socket.js index a94d1bf..f4e393a 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.socket.js +++ b/server/api/openchannelInteraction/openchannelInteraction.socket.js @@ -1 +1 @@ -const a582_0x30ae=['register','save','length','openchannelInteraction:','./openchannelInteraction.events','emit'];(function(_0x306149,_0x318f4c){const _0x30aec3=function(_0x5c19f7){while(--_0x5c19f7){_0x306149['push'](_0x306149['shift']());}};_0x30aec3(++_0x318f4c);}(a582_0x30ae,0x64));const a582_0x5c19=function(_0x306149,_0x318f4c){_0x306149=_0x306149-0x109;let _0x30aec3=a582_0x30ae[_0x306149];return _0x30aec3;};const a582_0xf83108=a582_0x5c19;'use strict';const OpenchannelInteractionEvents=require(a582_0xf83108(0x109)),events=[a582_0xf83108(0x10c),'remove','update'];function createListener(_0x844cf6,_0xf3216b){return function(_0x321e5c){const _0x236528=a582_0x5c19;_0xf3216b[_0x236528(0x10a)](_0x844cf6,_0x321e5c);};}exports[a582_0xf83108(0x10b)]=function(_0x44bd7e){const _0x2b4d8d=a582_0xf83108;for(let _0xf1a65c=0x0,_0x17bf48=events[_0x2b4d8d(0x10d)];_0xf1a65c<_0x17bf48;_0xf1a65c++){const _0x56d12e=events[_0xf1a65c],_0x103dbd=createListener(_0x2b4d8d(0x10e)+_0x56d12e,_0x44bd7e);OpenchannelInteractionEvents['on'](_0x56d12e,_0x103dbd);}}; \ No newline at end of file +const a582_0x239e=['remove','save','update','openchannelInteraction:','emit','length','register'];(function(_0x33d9eb,_0x104c9f){const _0x239eaf=function(_0x9f8df9){while(--_0x9f8df9){_0x33d9eb['push'](_0x33d9eb['shift']());}};_0x239eaf(++_0x104c9f);}(a582_0x239e,0x7a));const a582_0x9f8d=function(_0x33d9eb,_0x104c9f){_0x33d9eb=_0x33d9eb-0xf1;let _0x239eaf=a582_0x239e[_0x33d9eb];return _0x239eaf;};const a582_0x46888f=a582_0x9f8d;'use strict';const OpenchannelInteractionEvents=require('./openchannelInteraction.events'),events=[a582_0x46888f(0xf6),a582_0x46888f(0xf5),a582_0x46888f(0xf7)];function createListener(_0x187804,_0x504aa2){return function(_0x598bae){const _0x5194ae=a582_0x9f8d;_0x504aa2[_0x5194ae(0xf2)](_0x187804,_0x598bae);};}exports[a582_0x46888f(0xf4)]=function(_0x96f4ab){const _0x2158d5=a582_0x46888f;for(let _0x5c80e2=0x0,_0x1fec19=events[_0x2158d5(0xf3)];_0x5c80e2<_0x1fec19;_0x5c80e2++){const _0x467885=events[_0x5c80e2],_0x53899a=createListener(_0x2158d5(0xf1)+_0x467885,_0x96f4ab);OpenchannelInteractionEvents['on'](_0x467885,_0x53899a);}}; \ No newline at end of file diff --git a/server/api/openchannelMessage/index.js b/server/api/openchannelMessage/index.js index 2a89e65..7cc940c 100644 --- a/server/api/openchannelMessage/index.js +++ b/server/api/openchannelMessage/index.js @@ -1 +1 @@ -const a583_0x124e=['index','exports','destroy','/:id','tracked','update','/:id/reject','create','Router','/describe','./openchannelMessage.controller','isAuthenticated','show','get','describe','/:id/accept','reject','openchannelmessage:create','put','accept'];(function(_0x5d25fb,_0x185a46){const _0x124e2a=function(_0xa06d42){while(--_0xa06d42){_0x5d25fb['push'](_0x5d25fb['shift']());}};_0x124e2a(++_0x185a46);}(a583_0x124e,0x120));const a583_0xa06d=function(_0x5d25fb,_0x185a46){_0x5d25fb=_0x5d25fb-0x1c5;let _0x124e2a=a583_0x124e[_0x5d25fb];return _0x124e2a;};const a583_0x25cb38=a583_0xa06d;'use strict';const express=require('express'),router=express[a583_0x25cb38(0x1c5)](),auth=require('../../components/auth/service'),interaction=require('../../components/interaction/service'),controller=require(a583_0x25cb38(0x1c7));router[a583_0x25cb38(0x1ca)]('/',auth[a583_0x25cb38(0x1c8)](),controller[a583_0x25cb38(0x1d1)]),router[a583_0x25cb38(0x1ca)](a583_0x25cb38(0x1c6),auth['isAuthenticated'](),controller[a583_0x25cb38(0x1cb)]),router[a583_0x25cb38(0x1ca)]('/:id',auth[a583_0x25cb38(0x1c8)](),controller[a583_0x25cb38(0x1c9)]),router['post']('/',auth['isAuthenticated'](),interaction[a583_0x25cb38(0x1d5)]('openchannel',a583_0x25cb38(0x1ce)),controller[a583_0x25cb38(0x1d8)]),router[a583_0x25cb38(0x1cf)](a583_0x25cb38(0x1d4),auth[a583_0x25cb38(0x1c8)](),controller[a583_0x25cb38(0x1d6)]),router[a583_0x25cb38(0x1cf)](a583_0x25cb38(0x1cc),auth[a583_0x25cb38(0x1c8)](),controller[a583_0x25cb38(0x1d0)]),router['put'](a583_0x25cb38(0x1d7),auth[a583_0x25cb38(0x1c8)](),controller[a583_0x25cb38(0x1cd)]),router['delete'](a583_0x25cb38(0x1d4),auth[a583_0x25cb38(0x1c8)](),controller[a583_0x25cb38(0x1d3)]),module[a583_0x25cb38(0x1d2)]=router; \ No newline at end of file +const a583_0x7843=['/:id/accept','../../components/interaction/service','/:id','isAuthenticated','put','../../components/auth/service','Router','/describe','post','delete','openchannelmessage:create','create','accept','show','get','openchannel','describe','/:id/reject','reject','exports','express'];(function(_0xdd7886,_0x4626e0){const _0x7843d=function(_0xec43b4){while(--_0xec43b4){_0xdd7886['push'](_0xdd7886['shift']());}};_0x7843d(++_0x4626e0);}(a583_0x7843,0x191));const a583_0xec43=function(_0xdd7886,_0x4626e0){_0xdd7886=_0xdd7886-0x1e5;let _0x7843d=a583_0x7843[_0xdd7886];return _0x7843d;};const a583_0x1fa9fa=a583_0xec43;'use strict';const express=require(a583_0x1fa9fa(0x1f7)),router=express[a583_0x1fa9fa(0x1e9)](),auth=require(a583_0x1fa9fa(0x1e8)),interaction=require(a583_0x1fa9fa(0x1f9)),controller=require('./openchannelMessage.controller');router[a583_0x1fa9fa(0x1f1)]('/',auth[a583_0x1fa9fa(0x1e6)](),controller['index']),router[a583_0x1fa9fa(0x1f1)](a583_0x1fa9fa(0x1ea),auth[a583_0x1fa9fa(0x1e6)](),controller[a583_0x1fa9fa(0x1f3)]),router[a583_0x1fa9fa(0x1f1)](a583_0x1fa9fa(0x1e5),auth['isAuthenticated'](),controller[a583_0x1fa9fa(0x1f0)]),router[a583_0x1fa9fa(0x1eb)]('/',auth[a583_0x1fa9fa(0x1e6)](),interaction['tracked'](a583_0x1fa9fa(0x1f2),a583_0x1fa9fa(0x1ed)),controller[a583_0x1fa9fa(0x1ee)]),router[a583_0x1fa9fa(0x1e7)](a583_0x1fa9fa(0x1e5),auth['isAuthenticated'](),controller['update']),router[a583_0x1fa9fa(0x1e7)](a583_0x1fa9fa(0x1f8),auth[a583_0x1fa9fa(0x1e6)](),controller[a583_0x1fa9fa(0x1ef)]),router[a583_0x1fa9fa(0x1e7)](a583_0x1fa9fa(0x1f4),auth['isAuthenticated'](),controller[a583_0x1fa9fa(0x1f5)]),router[a583_0x1fa9fa(0x1ec)](a583_0x1fa9fa(0x1e5),auth[a583_0x1fa9fa(0x1e6)](),controller['destroy']),module[a583_0x1fa9fa(0x1f6)]=router; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.attributes.js b/server/api/openchannelMessage/openchannelMessage.attributes.js index c42ac6b..a1fbb11 100644 --- a/server/api/openchannelMessage/openchannelMessage.attributes.js +++ b/server/api/openchannelMessage/openchannelMessage.attributes.js @@ -1 +1 @@ -const a584_0x152a=['out','TEXT','exports','BOOLEAN','ENUM','STRING'];(function(_0x351fab,_0x7d5d54){const _0x152a13=function(_0x427bd5){while(--_0x427bd5){_0x351fab['push'](_0x351fab['shift']());}};_0x152a13(++_0x7d5d54);}(a584_0x152a,0x177));const a584_0x427b=function(_0x351fab,_0x7d5d54){_0x351fab=_0x351fab-0x1a0;let _0x152a13=a584_0x152a[_0x351fab];return _0x152a13;};const a584_0x5cbe42=a584_0x427b;'use strict';const {DataTypes}=require('sequelize'),attributes={'body':{'type':DataTypes[a584_0x5cbe42(0x1a4)]({'length':'medium'}),'allowNull':![]},'read':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'secret':{'type':DataTypes[a584_0x5cbe42(0x1a0)],'defaultValue':![]},'direction':{'type':DataTypes[a584_0x5cbe42(0x1a1)]('in',a584_0x5cbe42(0x1a3)),'defaultValue':a584_0x5cbe42(0x1a3),'allowNull':![]},'readAt':{'type':DataTypes['DATE']},'providerName':{'type':DataTypes[a584_0x5cbe42(0x1a2)]},'providerResponse':{'type':DataTypes['TEXT']}};module[a584_0x5cbe42(0x1a5)]['attributes']=attributes; \ No newline at end of file +const a584_0x58ca=['exports','STRING','DATE','sequelize','BOOLEAN','out','medium','ENUM','TEXT'];(function(_0x10e398,_0x475a8f){const _0x58ca17=function(_0x49326a){while(--_0x49326a){_0x10e398['push'](_0x10e398['shift']());}};_0x58ca17(++_0x475a8f);}(a584_0x58ca,0x14d));const a584_0x4932=function(_0x10e398,_0x475a8f){_0x10e398=_0x10e398-0xd3;let _0x58ca17=a584_0x58ca[_0x10e398];return _0x58ca17;};const a584_0x3f9d7d=a584_0x4932;'use strict';const {DataTypes}=require(a584_0x3f9d7d(0xd6)),attributes={'body':{'type':DataTypes['TEXT']({'length':a584_0x3f9d7d(0xd9)}),'allowNull':![]},'read':{'type':DataTypes[a584_0x3f9d7d(0xd7)],'defaultValue':![]},'secret':{'type':DataTypes[a584_0x3f9d7d(0xd7)],'defaultValue':![]},'direction':{'type':DataTypes[a584_0x3f9d7d(0xda)]('in','out'),'defaultValue':a584_0x3f9d7d(0xd8),'allowNull':![]},'readAt':{'type':DataTypes[a584_0x3f9d7d(0xd5)]},'providerName':{'type':DataTypes[a584_0x3f9d7d(0xd4)]},'providerResponse':{'type':DataTypes[a584_0x3f9d7d(0xdb)]}};module[a584_0x3f9d7d(0xd3)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.controller.js b/server/api/openchannelMessage/openchannelMessage.controller.js index c38e31b..d30d220 100644 --- a/server/api/openchannelMessage/openchannelMessage.controller.js +++ b/server/api/openchannelMessage/openchannelMessage.controller.js @@ -1 +1 @@ -const a585_0xcafb=['sequelize','request','where','stringify','set','info','sort','jayson/promise','attributes','model','channel','[OPENCHANNELMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','type','interaction','update','keys','findAll','describe','message','http','OpenchannelInteraction','readAt','options','./openchannelMessage.socket','OpenchannelMessage','register','AcceptMessage','[OPENCHANNELMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','undefined','agent','interface','pick','accept','util','query','acceptmessage','fieldName','event','nolimit','CmContact','like','format','manual','result','create','SIP/%s','count','merge','body','send','end','intersection','rows','UserId','openchannel','order','openchannel-interactions','reject','include','null','client','../../mysqldb','json','limit','map','status','catch','Contact','name','acceptMessage','code','OpenchannelMessage,\x20%s,\x20%s','YYYY-MM-DD\x20HH:mm:ss','Content-Range','EventManager','get','filters','../../rediscache','RejectMessage','params','fields','findOne','isNil','VIRTUAL','filter','includeAll','OpenchannelInteractionId','lodash','user','role','offset','error','then','rawAttributes','../../config/logger','../../components/parsers/qs','read1stAt','request\x20sent','length','debug'];(function(_0x16b1c0,_0x481f60){const _0xcafb0d=function(_0x4ef6bf){while(--_0x4ef6bf){_0x16b1c0['push'](_0x16b1c0['shift']());}};_0xcafb0d(++_0x481f60);}(a585_0xcafb,0x12c));const a585_0x4ef6=function(_0x16b1c0,_0x481f60){_0x16b1c0=_0x16b1c0-0x155;let _0xcafb0d=a585_0xcafb[_0x16b1c0];return _0xcafb0d;};const a585_0x55ecb0=a585_0x4ef6;'use strict';const moment=require('moment'),util=require(a585_0x55ecb0(0x176)),_=require(a585_0x55ecb0(0x1ac)),qs=require(a585_0x55ecb0(0x1b4)),logger=require(a585_0x55ecb0(0x1b3))('api'),{getSocket}=require(a585_0x55ecb0(0x1a2)),socket=getSocket(),interaction_log=require(a585_0x55ecb0(0x1b3))(a585_0x55ecb0(0x18d)),{db}=require(a585_0x55ecb0(0x192)),{Op}=require(a585_0x55ecb0(0x155));require(a585_0x55ecb0(0x16c))[a585_0x55ecb0(0x16e)](socket);const jayson=require(a585_0x55ecb0(0x15c)),client=jayson[a585_0x55ecb0(0x191)][a585_0x55ecb0(0x168)]({'port':0x232c}),client9002=jayson[a585_0x55ecb0(0x191)][a585_0x55ecb0(0x168)]({'port':0x232a});function respondWithRpcPromise(_0x57acd7,_0x295623,_0x9bfa4b,_0x5b3de0){return new Promise(function(_0x24dcfd,_0xb3bf52){const _0x249f57=a585_0x4ef6,_0x1ebc6f=_0x5b3de0||client;return _0x1ebc6f[_0x249f57(0x156)](_0x57acd7,_0x9bfa4b)['then'](function(_0x30c4e3){const _0x5295b9=_0x249f57;logger['info'](_0x5295b9(0x19c),_0x295623,_0x5295b9(0x1b6)),logger[_0x5295b9(0x1b8)]('OpenchannelMessage,\x20%s,\x20%s,\x20%s',_0x295623,'request\x20sent',JSON[_0x5295b9(0x158)](_0x30c4e3));if(_0x30c4e3[_0x5295b9(0x1b0)]){if(_0x30c4e3[_0x5295b9(0x1b0)][_0x5295b9(0x19b)]===0x1f4)return logger[_0x5295b9(0x1b0)]('OpenchannelMessage,\x20%s,\x20%s',_0x295623,_0x30c4e3[_0x5295b9(0x1b0)]['message']),_0xb3bf52(_0x30c4e3[_0x5295b9(0x1b0)][_0x5295b9(0x167)]);return logger[_0x5295b9(0x1b0)]('OpenchannelMessage,\x20%s,\x20%s',_0x295623,_0x30c4e3[_0x5295b9(0x1b0)][_0x5295b9(0x167)]),_0x24dcfd(_0x30c4e3[_0x5295b9(0x1b0)][_0x5295b9(0x167)]);}else logger[_0x5295b9(0x15a)](_0x5295b9(0x19c),_0x295623,_0x5295b9(0x1b6)),_0x24dcfd(_0x30c4e3[_0x5295b9(0x180)][_0x5295b9(0x167)]);})[_0x249f57(0x197)](function(_0x4983e4){const _0x324dcf=_0x249f57;logger[_0x324dcf(0x1b0)](_0x324dcf(0x19c),_0x295623,_0x4983e4),_0xb3bf52(_0x4983e4);});});}function respondWithResult(_0x5aa24a,_0x173f54){return _0x173f54=_0x173f54||0xc8,function(_0x186e33){const _0x42e9b9=a585_0x4ef6;if(_0x186e33)return _0x5aa24a[_0x42e9b9(0x196)](_0x173f54)[_0x42e9b9(0x193)](_0x186e33);};}function respondWithFilteredResult(_0x46fdb7,_0xc87c7){return function(_0x54650c){const _0x1d3a35=a585_0x4ef6;if(_0x54650c){const _0x245b79=_0x54650c[_0x1d3a35(0x183)],_0x4d6c99=_0xc87c7['offset'];let _0x20eb83=_0xc87c7['offset']+_0xc87c7[_0x1d3a35(0x194)],_0xc97bd6;return _0x20eb83>=_0x245b79?(_0x20eb83=_0x245b79,_0xc97bd6=0xc8):_0xc97bd6=0xce,_0x46fdb7[_0x1d3a35(0x196)](_0xc97bd6),_0x46fdb7[_0x1d3a35(0x159)](_0x1d3a35(0x19e),_0x4d6c99+'-'+_0x20eb83+'/'+_0x245b79)['json'](_0x54650c);}return null;};}function saveUpdates(_0x24d87d){return function(_0x5cfaa3){const _0x94de6c=a585_0x4ef6;if(_0x5cfaa3)return _0x5cfaa3[_0x94de6c(0x163)](_0x24d87d)[_0x94de6c(0x1b1)](function(_0x2dae0d){return _0x2dae0d;});return null;};}function removeEntity(_0xb12f9a){return function(_0x1a5bbe){const _0x17bcfc=a585_0x4ef6;if(_0x1a5bbe)return _0x1a5bbe['destroy']()[_0x17bcfc(0x1b1)](function(){const _0x365a84=_0x17bcfc;_0xb12f9a[_0x365a84(0x196)](0xcc)[_0x365a84(0x187)]();});};}function handleEntityNotFound(_0x16443e){return function(_0x1000bb){return!_0x1000bb&&_0x16443e['sendStatus'](0x194),_0x1000bb;};}function handleError(_0x5236d5,_0x33a0c4){return _0x33a0c4=_0x33a0c4||0x1f4,function(_0x59ce6f){const _0x6d05f3=a585_0x4ef6;logger[_0x6d05f3(0x1b0)](_0x59ce6f['stack']),_0x59ce6f['name']&&delete _0x59ce6f['name'],_0x5236d5['status'](_0x33a0c4)[_0x6d05f3(0x186)](_0x59ce6f);};}exports['index']=function(_0x231e16,_0x4aaca1){const _0x3d6d0b=a585_0x55ecb0;let _0x30cac0={};const _0x2455a4={},_0x36f303={'count':0x0,'rows':[]},_0x34bcb5=_[_0x3d6d0b(0x195)](db[_0x3d6d0b(0x16d)]['rawAttributes'],function(_0x194c0d){const _0x105f14=_0x3d6d0b;return{'name':_0x194c0d[_0x105f14(0x179)],'type':_0x194c0d[_0x105f14(0x161)]['key']};});_0x2455a4[_0x3d6d0b(0x15e)]=_[_0x3d6d0b(0x195)](_0x34bcb5,'name'),_0x2455a4[_0x3d6d0b(0x177)]=_[_0x3d6d0b(0x164)](_0x231e16[_0x3d6d0b(0x177)]),_0x2455a4[_0x3d6d0b(0x1a1)]=_[_0x3d6d0b(0x188)](_0x2455a4['model'],_0x2455a4[_0x3d6d0b(0x177)]),_0x30cac0[_0x3d6d0b(0x15d)]=_[_0x3d6d0b(0x188)](_0x2455a4[_0x3d6d0b(0x15e)],qs[_0x3d6d0b(0x1a5)](_0x231e16[_0x3d6d0b(0x177)][_0x3d6d0b(0x1a5)])),_0x30cac0[_0x3d6d0b(0x15d)]=_0x30cac0[_0x3d6d0b(0x15d)][_0x3d6d0b(0x1b7)]?_0x30cac0[_0x3d6d0b(0x15d)]:_0x2455a4['model'];typeof _0x231e16[_0x3d6d0b(0x177)][_0x3d6d0b(0x17b)]===_0x3d6d0b(0x171)&&(_0x30cac0['limit']=qs['limit'](_0x231e16[_0x3d6d0b(0x177)][_0x3d6d0b(0x194)]),_0x30cac0[_0x3d6d0b(0x1af)]=qs[_0x3d6d0b(0x1af)](_0x231e16[_0x3d6d0b(0x177)][_0x3d6d0b(0x1af)]));_0x30cac0[_0x3d6d0b(0x18c)]=qs[_0x3d6d0b(0x15b)](_0x231e16[_0x3d6d0b(0x177)][_0x3d6d0b(0x15b)]),_0x30cac0[_0x3d6d0b(0x157)]=qs[_0x3d6d0b(0x1a1)](_[_0x3d6d0b(0x174)](_0x231e16[_0x3d6d0b(0x177)],_0x2455a4[_0x3d6d0b(0x1a1)]),_0x34bcb5);_0x231e16[_0x3d6d0b(0x177)]['filter']&&(_0x30cac0[_0x3d6d0b(0x157)]=_[_0x3d6d0b(0x184)](_0x30cac0[_0x3d6d0b(0x157)],{[Op['or']]:_[_0x3d6d0b(0x195)](_0x34bcb5,function(_0x502045){const _0x5551ac=_0x3d6d0b;if(_0x502045[_0x5551ac(0x161)]!==_0x5551ac(0x1a8)){const _0x572a26={};return _0x572a26[_0x502045[_0x5551ac(0x199)]]={[Op[_0x5551ac(0x17d)]]:'%'+_0x231e16[_0x5551ac(0x177)][_0x5551ac(0x1a9)]+'%'},_0x572a26;}})}));_0x30cac0=_[_0x3d6d0b(0x184)]({},_0x30cac0,_0x231e16[_0x3d6d0b(0x16b)]);const _0x3b53ee={'where':_0x30cac0[_0x3d6d0b(0x157)]};return db[_0x3d6d0b(0x16d)][_0x3d6d0b(0x183)](_0x3b53ee)[_0x3d6d0b(0x1b1)](function(_0x53311c){const _0x2577a5=_0x3d6d0b;return _0x36f303[_0x2577a5(0x183)]=_0x53311c,_0x231e16['query'][_0x2577a5(0x1aa)]&&(_0x30cac0[_0x2577a5(0x18f)]=[{'all':!![]}]),db[_0x2577a5(0x16d)][_0x2577a5(0x165)](_0x30cac0);})[_0x3d6d0b(0x1b1)](function(_0x2255b6){const _0x59780d=_0x3d6d0b;return _0x36f303[_0x59780d(0x189)]=_0x2255b6,_0x36f303;})['then'](respondWithFilteredResult(_0x4aaca1,_0x30cac0))[_0x3d6d0b(0x197)](handleError(_0x4aaca1,null));},exports['show']=function(_0x17c0fb,_0x490813){const _0x20dd86=a585_0x55ecb0;let _0x3c8fc3={'raw':!![],'where':{'id':_0x17c0fb[_0x20dd86(0x1a4)]['id']}};const _0x29b114={};return _0x29b114[_0x20dd86(0x15e)]=_[_0x20dd86(0x164)](db[_0x20dd86(0x16d)][_0x20dd86(0x1b2)]),_0x29b114[_0x20dd86(0x177)]=_[_0x20dd86(0x164)](_0x17c0fb[_0x20dd86(0x177)]),_0x29b114[_0x20dd86(0x1a1)]=_[_0x20dd86(0x188)](_0x29b114[_0x20dd86(0x15e)],_0x29b114[_0x20dd86(0x177)]),_0x3c8fc3[_0x20dd86(0x15d)]=_[_0x20dd86(0x188)](_0x29b114[_0x20dd86(0x15e)],qs['fields'](_0x17c0fb['query']['fields'])),_0x3c8fc3[_0x20dd86(0x15d)]=_0x3c8fc3[_0x20dd86(0x15d)][_0x20dd86(0x1b7)]?_0x3c8fc3[_0x20dd86(0x15d)]:_0x29b114[_0x20dd86(0x15e)],_0x17c0fb[_0x20dd86(0x177)][_0x20dd86(0x1aa)]&&(_0x3c8fc3[_0x20dd86(0x18f)]=[{'all':!![]}]),_0x3c8fc3=_[_0x20dd86(0x184)]({},_0x3c8fc3,_0x17c0fb[_0x20dd86(0x16b)]),db[_0x20dd86(0x16d)][_0x20dd86(0x1a6)](_0x3c8fc3)[_0x20dd86(0x1b1)](handleEntityNotFound(_0x490813,null))[_0x20dd86(0x1b1)](respondWithResult(_0x490813,null))['catch'](handleError(_0x490813,null));},exports['create']=function(_0x15492d,_0x59de80){const _0x31da18=a585_0x55ecb0;return db['OpenchannelMessage'][_0x31da18(0x181)](_0x15492d[_0x31da18(0x185)],{})['then'](respondWithResult(_0x59de80,0xc9))[_0x31da18(0x197)](handleError(_0x59de80,null));},exports[a585_0x55ecb0(0x163)]=function(_0x1ffd64,_0xd3e073){const _0x2da572=a585_0x55ecb0;return _0x1ffd64[_0x2da572(0x185)]['id']&&delete _0x1ffd64[_0x2da572(0x185)]['id'],db[_0x2da572(0x16d)][_0x2da572(0x1a6)]({'where':{'id':_0x1ffd64[_0x2da572(0x1a4)]['id']}})[_0x2da572(0x1b1)](handleEntityNotFound(_0xd3e073,null))[_0x2da572(0x1b1)](saveUpdates(_0x1ffd64[_0x2da572(0x185)],null))[_0x2da572(0x1b1)](respondWithResult(_0xd3e073,null))[_0x2da572(0x197)](handleError(_0xd3e073,null));},exports['destroy']=function(_0x414489,_0x16839e){const _0x22323e=a585_0x55ecb0;return db[_0x22323e(0x16d)][_0x22323e(0x1a6)]({'where':{'id':_0x414489[_0x22323e(0x1a4)]['id']}})[_0x22323e(0x1b1)](handleEntityNotFound(_0x16839e,null))[_0x22323e(0x1b1)](removeEntity(_0x16839e,null))[_0x22323e(0x197)](handleError(_0x16839e,null));},exports[a585_0x55ecb0(0x166)]=function(_0x381004,_0x177d07){const _0x4e4bde=a585_0x55ecb0;return db[_0x4e4bde(0x16d)][_0x4e4bde(0x166)]()[_0x4e4bde(0x1b1)](respondWithResult(_0x177d07,null))[_0x4e4bde(0x197)](handleError(_0x177d07,null));},exports[a585_0x55ecb0(0x175)]=function(_0x5e78cf,_0x54bd66){const _0x4522f3=a585_0x55ecb0,_0x3aaa09={'channel':'openchannel'};return _0x5e78cf[_0x4522f3(0x185)]['id']&&delete _0x5e78cf[_0x4522f3(0x185)]['id'],_0x5e78cf[_0x4522f3(0x185)]['read']=!![],_0x5e78cf[_0x4522f3(0x185)][_0x4522f3(0x16a)]=moment()[_0x4522f3(0x17e)](_0x4522f3(0x19d)),_0x5e78cf['body'][_0x4522f3(0x18a)]=_0x5e78cf[_0x4522f3(0x185)]['UserId']||_0x5e78cf['user']['id'],db['OpenchannelMessage'][_0x4522f3(0x1a6)]({'where':{'id':_0x5e78cf[_0x4522f3(0x1a4)]['id'],'UserId':null},'include':[{'model':db[_0x4522f3(0x17c)],'as':_0x4522f3(0x198)}]})[_0x4522f3(0x1b1)](handleEntityNotFound(_0x54bd66,null))[_0x4522f3(0x1b1)](saveUpdates(_0x5e78cf[_0x4522f3(0x185)],null))[_0x4522f3(0x1b1)](function(_0x48839c){const _0x3eacd4=_0x4522f3;if(_0x48839c)return _0x3aaa09[_0x3eacd4(0x167)]=_0x48839c[_0x3eacd4(0x1a0)]({'plain':!![]}),db[_0x3eacd4(0x169)]['findOne']({'where':{'id':_0x48839c[_0x3eacd4(0x1ab)]}});return null;})[_0x4522f3(0x1b1)](handleEntityNotFound(_0x54bd66,null))[_0x4522f3(0x1b1)](function(_0x2eb2cc){const _0x449c25=_0x4522f3;if(_0x2eb2cc)return _0x2eb2cc[_0x449c25(0x163)]({'UserId':_0x5e78cf[_0x449c25(0x185)]['UserId'],'read1stAt':_[_0x449c25(0x1a7)](_0x2eb2cc[_0x449c25(0x1b5)])?moment()['format'](_0x449c25(0x19d)):undefined});return null;})[_0x4522f3(0x1b1)](function(_0x3b5966){const _0x41f168=_0x4522f3;if(_0x3b5966)return _0x3aaa09[_0x41f168(0x162)]=_0x3b5966[_0x41f168(0x1a0)]({'plain':!![]}),interaction_log[_0x41f168(0x15a)](_0x41f168(0x160),_0x5e78cf[_0x41f168(0x1ad)]['id'],_0x5e78cf[_0x41f168(0x1ad)]['name'],_0x5e78cf[_0x41f168(0x1ad)]['role'],_0x3aaa09[_0x41f168(0x162)]['id'],_0x5e78cf[_0x41f168(0x185)]?JSON[_0x41f168(0x158)](_0x5e78cf[_0x41f168(0x185)]):_0x41f168(0x190)),respondWithRpcPromise(_0x41f168(0x16f),_0x41f168(0x19a),_0x3aaa09);return null;})[_0x4522f3(0x1b1)](function(_0xf83c46){const _0x49a27c=_0x4522f3;if(_0xf83c46){if(_0x5e78cf[_0x49a27c(0x185)][_0x49a27c(0x17f)])return _0x3aaa09[_0x49a27c(0x167)][_0x49a27c(0x173)]=util[_0x49a27c(0x17e)](_0x49a27c(0x182),_0x5e78cf[_0x49a27c(0x1ad)][_0x49a27c(0x199)]),_0x3aaa09[_0x49a27c(0x167)]['channel']=_0x3aaa09['channel'],_0x3aaa09[_0x49a27c(0x167)][_0x49a27c(0x17a)]=_0x49a27c(0x175),respondWithRpcPromise('EventManager',_0x49a27c(0x19f),{'event':_0x49a27c(0x178),'message':_0x3aaa09['message']},client9002)[_0x49a27c(0x1b1)](function(){return _0x3aaa09;});return _0x3aaa09;}return null;})[_0x4522f3(0x1b1)](respondWithResult(_0x54bd66,null))[_0x4522f3(0x197)](handleError(_0x54bd66,null));},exports['reject']=function(_0x2e9e53,_0x2fd44f){const _0xce5454=a585_0x55ecb0,_0xf3d712={'agent':{},'channel':_0xce5454(0x18b)};return _0x2e9e53[_0xce5454(0x185)]['id']&&delete _0x2e9e53[_0xce5454(0x185)]['id'],_0x2e9e53[_0xce5454(0x185)]['UserId']=_0x2e9e53[_0xce5454(0x185)][_0xce5454(0x18a)]||_0x2e9e53[_0xce5454(0x1ad)]['id'],_0xf3d712[_0xce5454(0x172)]['id']=_0x2e9e53[_0xce5454(0x185)]['UserId'],db[_0xce5454(0x16d)]['findOne']({'where':{'id':_0x2e9e53[_0xce5454(0x1a4)]['id'],'UserId':null}})[_0xce5454(0x1b1)](handleEntityNotFound(_0x2fd44f,null))[_0xce5454(0x1b1)](function(_0x5a7d90){const _0x114103=_0xce5454;if(_0x5a7d90)return _0xf3d712['message']=_0x5a7d90[_0x114103(0x1a0)]({'plain':!![]}),db[_0x114103(0x169)][_0x114103(0x1a6)]({'where':{'id':_0x5a7d90['OpenchannelInteractionId']}});return null;})[_0xce5454(0x1b1)](handleEntityNotFound(_0x2fd44f,null))[_0xce5454(0x1b1)](function(_0x5262f4){const _0xb21e2c=_0xce5454;if(_0x5262f4)return _0xf3d712[_0xb21e2c(0x162)]=_0x5262f4[_0xb21e2c(0x1a0)]({'plain':!![]}),interaction_log[_0xb21e2c(0x15a)](_0xb21e2c(0x170),_0x2e9e53['user']['id'],_0x2e9e53[_0xb21e2c(0x1ad)][_0xb21e2c(0x199)],_0x2e9e53[_0xb21e2c(0x1ad)][_0xb21e2c(0x1ae)],_0xf3d712[_0xb21e2c(0x162)]['id'],_0x2e9e53[_0xb21e2c(0x185)]?JSON[_0xb21e2c(0x158)](_0x2e9e53[_0xb21e2c(0x185)]):_0xb21e2c(0x190)),respondWithRpcPromise(_0xb21e2c(0x1a3),'rejectMessage',_0xf3d712);return null;})[_0xce5454(0x1b1)](function(_0x5a6415){const _0x4760da=_0xce5454;if(_0x5a6415)return _0x5a6415['message'][_0x4760da(0x173)]=util['format'](_0x4760da(0x182),_0x2e9e53[_0x4760da(0x1ad)][_0x4760da(0x199)]),_0x5a6415[_0x4760da(0x167)][_0x4760da(0x15f)]=_0xf3d712[_0x4760da(0x15f)],_0x5a6415[_0x4760da(0x167)][_0x4760da(0x17a)]=_0x4760da(0x18e),respondWithRpcPromise(_0x4760da(0x19f),'EventManager',{'event':'rejectmessage','message':_0x5a6415[_0x4760da(0x167)]},client9002),_0xf3d712;return null;})[_0xce5454(0x1b1)](respondWithResult(_0x2fd44f,null))['catch'](handleError(_0x2fd44f,null));}; \ No newline at end of file +const a585_0x45c7=['filter','fieldName','message','role','undefined','sequelize','null','attributes','code','params','../../components/parsers/qs','format','show','offset','name','OpenchannelMessage','openchannel','user','util','EventManager','sort','../../mysqldb','interaction','stringify','where','event','reject','rejectmessage','Content-Range','client','sendStatus','length','options','OpenchannelMessage,\x20%s,\x20%s','get','merge','read','findAll','update','error','include','filters','channel','findOne','index','./openchannelMessage.socket','rawAttributes','keys','OpenchannelMessage,\x20%s,\x20%s,\x20%s','type','interface','query','result','order','YYYY-MM-DD\x20HH:mm:ss','UserId','send','describe','destroy','set','VIRTUAL','end','[OPENCHANNELMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','RejectMessage','request\x20sent','model','catch','limit','SIP/%s','info','acceptmessage','OpenchannelInteraction','body','CmContact','OpenchannelInteractionId','AcceptMessage','readAt','map','stack','json','accept','status','fields','count','intersection','like','create','../../config/logger','http','rows','then','agent','register'];(function(_0x12b976,_0x2afbbc){const _0x45c765=function(_0x41bf18){while(--_0x41bf18){_0x12b976['push'](_0x12b976['shift']());}};_0x45c765(++_0x2afbbc);}(a585_0x45c7,0x1a4));const a585_0x41bf=function(_0x12b976,_0x2afbbc){_0x12b976=_0x12b976-0x127;let _0x45c765=a585_0x45c7[_0x12b976];return _0x45c765;};const a585_0x34047d=a585_0x41bf;'use strict';const moment=require('moment'),util=require(a585_0x34047d(0x166)),_=require('lodash'),qs=require(a585_0x34047d(0x15e)),logger=require('../../config/logger')('api'),{getSocket}=require('../../rediscache'),socket=getSocket(),interaction_log=require(a585_0x34047d(0x14e))('openchannel-interactions'),{db}=require(a585_0x34047d(0x169)),{Op}=require(a585_0x34047d(0x159));require(a585_0x34047d(0x181))[a585_0x34047d(0x153)](socket);const jayson=require('jayson/promise'),client=jayson[a585_0x34047d(0x171)][a585_0x34047d(0x14f)]({'port':0x232c}),client9002=jayson['client'][a585_0x34047d(0x14f)]({'port':0x232a});function respondWithRpcPromise(_0x2d60ed,_0x5635fc,_0x2f827b,_0x13a61a){return new Promise(function(_0x40058e,_0x4b6920){const _0x968d33=a585_0x41bf,_0x369538=_0x13a61a||client;return _0x369538['request'](_0x2d60ed,_0x2f827b)[_0x968d33(0x151)](function(_0x4bd17c){const _0x210504=_0x968d33;logger[_0x210504(0x13c)]('OpenchannelMessage,\x20%s,\x20%s',_0x5635fc,_0x210504(0x137)),logger['debug'](_0x210504(0x127),_0x5635fc,_0x210504(0x137),JSON['stringify'](_0x4bd17c));if(_0x4bd17c[_0x210504(0x17b)]){if(_0x4bd17c[_0x210504(0x17b)][_0x210504(0x15c)]===0x1f4)return logger[_0x210504(0x17b)](_0x210504(0x175),_0x5635fc,_0x4bd17c[_0x210504(0x17b)][_0x210504(0x156)]),_0x4b6920(_0x4bd17c[_0x210504(0x17b)][_0x210504(0x156)]);return logger[_0x210504(0x17b)](_0x210504(0x175),_0x5635fc,_0x4bd17c[_0x210504(0x17b)][_0x210504(0x156)]),_0x40058e(_0x4bd17c['error'][_0x210504(0x156)]);}else logger[_0x210504(0x13c)]('OpenchannelMessage,\x20%s,\x20%s',_0x5635fc,_0x210504(0x137)),_0x40058e(_0x4bd17c[_0x210504(0x12b)]['message']);})['catch'](function(_0x193ce3){const _0x266a4a=_0x968d33;logger[_0x266a4a(0x17b)](_0x266a4a(0x175),_0x5635fc,_0x193ce3),_0x4b6920(_0x193ce3);});});}function respondWithResult(_0x14a6e1,_0x218f2c){return _0x218f2c=_0x218f2c||0xc8,function(_0x2e8bf9){const _0x1b4fa0=a585_0x41bf;if(_0x2e8bf9)return _0x14a6e1[_0x1b4fa0(0x148)](_0x218f2c)['json'](_0x2e8bf9);};}function respondWithFilteredResult(_0x33edb2,_0x2b523b){return function(_0x25ee22){const _0x383b4f=a585_0x41bf;if(_0x25ee22){const _0x2be3d8=_0x25ee22[_0x383b4f(0x14a)],_0x4db96b=_0x2b523b[_0x383b4f(0x161)];let _0xae82d0=_0x2b523b[_0x383b4f(0x161)]+_0x2b523b[_0x383b4f(0x13a)],_0x42baa7;return _0xae82d0>=_0x2be3d8?(_0xae82d0=_0x2be3d8,_0x42baa7=0xc8):_0x42baa7=0xce,_0x33edb2[_0x383b4f(0x148)](_0x42baa7),_0x33edb2[_0x383b4f(0x132)](_0x383b4f(0x170),_0x4db96b+'-'+_0xae82d0+'/'+_0x2be3d8)[_0x383b4f(0x146)](_0x25ee22);}return null;};}function saveUpdates(_0x1c2a74){return function(_0x5db734){const _0x487f20=a585_0x41bf;if(_0x5db734)return _0x5db734['update'](_0x1c2a74)[_0x487f20(0x151)](function(_0x438c22){return _0x438c22;});return null;};}function removeEntity(_0x4a6707){return function(_0x40ea5e){const _0x33c079=a585_0x41bf;if(_0x40ea5e)return _0x40ea5e[_0x33c079(0x131)]()['then'](function(){const _0x3f042c=_0x33c079;_0x4a6707[_0x3f042c(0x148)](0xcc)[_0x3f042c(0x134)]();});};}function handleEntityNotFound(_0x566e9f){return function(_0x2c0199){const _0xe2d5bb=a585_0x41bf;return!_0x2c0199&&_0x566e9f[_0xe2d5bb(0x172)](0x194),_0x2c0199;};}function handleError(_0x25edf2,_0x5ac2bf){return _0x5ac2bf=_0x5ac2bf||0x1f4,function(_0x132459){const _0x36b27e=a585_0x41bf;logger['error'](_0x132459[_0x36b27e(0x145)]),_0x132459[_0x36b27e(0x162)]&&delete _0x132459[_0x36b27e(0x162)],_0x25edf2[_0x36b27e(0x148)](_0x5ac2bf)[_0x36b27e(0x12f)](_0x132459);};}exports[a585_0x34047d(0x180)]=function(_0x3e1114,_0x323482){const _0x3872e4=a585_0x34047d;let _0x2635d={};const _0x57caf1={},_0xf9e5b6={'count':0x0,'rows':[]},_0x259763=_[_0x3872e4(0x144)](db[_0x3872e4(0x163)][_0x3872e4(0x182)],function(_0x185a1b){const _0x55fbc2=_0x3872e4;return{'name':_0x185a1b[_0x55fbc2(0x155)],'type':_0x185a1b[_0x55fbc2(0x128)]['key']};});_0x57caf1[_0x3872e4(0x138)]=_[_0x3872e4(0x144)](_0x259763,_0x3872e4(0x162)),_0x57caf1['query']=_[_0x3872e4(0x183)](_0x3e1114[_0x3872e4(0x12a)]),_0x57caf1[_0x3872e4(0x17d)]=_[_0x3872e4(0x14b)](_0x57caf1['model'],_0x57caf1[_0x3872e4(0x12a)]),_0x2635d['attributes']=_[_0x3872e4(0x14b)](_0x57caf1[_0x3872e4(0x138)],qs['fields'](_0x3e1114[_0x3872e4(0x12a)][_0x3872e4(0x149)])),_0x2635d[_0x3872e4(0x15b)]=_0x2635d['attributes'][_0x3872e4(0x173)]?_0x2635d[_0x3872e4(0x15b)]:_0x57caf1[_0x3872e4(0x138)];typeof _0x3e1114[_0x3872e4(0x12a)]['nolimit']===_0x3872e4(0x158)&&(_0x2635d[_0x3872e4(0x13a)]=qs['limit'](_0x3e1114['query'][_0x3872e4(0x13a)]),_0x2635d[_0x3872e4(0x161)]=qs[_0x3872e4(0x161)](_0x3e1114[_0x3872e4(0x12a)][_0x3872e4(0x161)]));_0x2635d[_0x3872e4(0x12c)]=qs[_0x3872e4(0x168)](_0x3e1114['query']['sort']),_0x2635d[_0x3872e4(0x16c)]=qs[_0x3872e4(0x17d)](_['pick'](_0x3e1114[_0x3872e4(0x12a)],_0x57caf1['filters']),_0x259763);_0x3e1114[_0x3872e4(0x12a)][_0x3872e4(0x154)]&&(_0x2635d[_0x3872e4(0x16c)]=_[_0x3872e4(0x177)](_0x2635d['where'],{[Op['or']]:_[_0x3872e4(0x144)](_0x259763,function(_0x2fd01a){const _0x5c9524=_0x3872e4;if(_0x2fd01a[_0x5c9524(0x128)]!==_0x5c9524(0x133)){const _0x42eff0={};return _0x42eff0[_0x2fd01a[_0x5c9524(0x162)]]={[Op[_0x5c9524(0x14c)]]:'%'+_0x3e1114['query'][_0x5c9524(0x154)]+'%'},_0x42eff0;}})}));_0x2635d=_[_0x3872e4(0x177)]({},_0x2635d,_0x3e1114[_0x3872e4(0x174)]);const _0x478800={'where':_0x2635d[_0x3872e4(0x16c)]};return db['OpenchannelMessage'][_0x3872e4(0x14a)](_0x478800)[_0x3872e4(0x151)](function(_0x1197a2){const _0x5ee109=_0x3872e4;return _0xf9e5b6[_0x5ee109(0x14a)]=_0x1197a2,_0x3e1114[_0x5ee109(0x12a)]['includeAll']&&(_0x2635d[_0x5ee109(0x17c)]=[{'all':!![]}]),db[_0x5ee109(0x163)][_0x5ee109(0x179)](_0x2635d);})[_0x3872e4(0x151)](function(_0x1023ce){const _0x3c0b6d=_0x3872e4;return _0xf9e5b6[_0x3c0b6d(0x150)]=_0x1023ce,_0xf9e5b6;})[_0x3872e4(0x151)](respondWithFilteredResult(_0x323482,_0x2635d))[_0x3872e4(0x139)](handleError(_0x323482,null));},exports[a585_0x34047d(0x160)]=function(_0x3960f0,_0x1463bc){const _0x2fd67d=a585_0x34047d;let _0xefd970={'raw':!![],'where':{'id':_0x3960f0[_0x2fd67d(0x15d)]['id']}};const _0x23924f={};return _0x23924f[_0x2fd67d(0x138)]=_[_0x2fd67d(0x183)](db[_0x2fd67d(0x163)]['rawAttributes']),_0x23924f[_0x2fd67d(0x12a)]=_[_0x2fd67d(0x183)](_0x3960f0[_0x2fd67d(0x12a)]),_0x23924f[_0x2fd67d(0x17d)]=_[_0x2fd67d(0x14b)](_0x23924f[_0x2fd67d(0x138)],_0x23924f[_0x2fd67d(0x12a)]),_0xefd970[_0x2fd67d(0x15b)]=_[_0x2fd67d(0x14b)](_0x23924f['model'],qs['fields'](_0x3960f0[_0x2fd67d(0x12a)][_0x2fd67d(0x149)])),_0xefd970['attributes']=_0xefd970['attributes'][_0x2fd67d(0x173)]?_0xefd970[_0x2fd67d(0x15b)]:_0x23924f[_0x2fd67d(0x138)],_0x3960f0[_0x2fd67d(0x12a)]['includeAll']&&(_0xefd970['include']=[{'all':!![]}]),_0xefd970=_['merge']({},_0xefd970,_0x3960f0[_0x2fd67d(0x174)]),db[_0x2fd67d(0x163)]['findOne'](_0xefd970)['then'](handleEntityNotFound(_0x1463bc,null))[_0x2fd67d(0x151)](respondWithResult(_0x1463bc,null))[_0x2fd67d(0x139)](handleError(_0x1463bc,null));},exports['create']=function(_0x4838af,_0x17e253){const _0x590cdb=a585_0x34047d;return db[_0x590cdb(0x163)][_0x590cdb(0x14d)](_0x4838af[_0x590cdb(0x13f)],{})['then'](respondWithResult(_0x17e253,0xc9))['catch'](handleError(_0x17e253,null));},exports[a585_0x34047d(0x17a)]=function(_0x1c6560,_0x32feba){const _0x3a0063=a585_0x34047d;return _0x1c6560[_0x3a0063(0x13f)]['id']&&delete _0x1c6560['body']['id'],db[_0x3a0063(0x163)]['findOne']({'where':{'id':_0x1c6560['params']['id']}})[_0x3a0063(0x151)](handleEntityNotFound(_0x32feba,null))[_0x3a0063(0x151)](saveUpdates(_0x1c6560[_0x3a0063(0x13f)],null))['then'](respondWithResult(_0x32feba,null))[_0x3a0063(0x139)](handleError(_0x32feba,null));},exports['destroy']=function(_0xf89267,_0x224f09){const _0x3dc25b=a585_0x34047d;return db[_0x3dc25b(0x163)][_0x3dc25b(0x17f)]({'where':{'id':_0xf89267['params']['id']}})[_0x3dc25b(0x151)](handleEntityNotFound(_0x224f09,null))[_0x3dc25b(0x151)](removeEntity(_0x224f09,null))[_0x3dc25b(0x139)](handleError(_0x224f09,null));},exports[a585_0x34047d(0x130)]=function(_0x4618b2,_0x1b77b3){const _0x4bb292=a585_0x34047d;return db[_0x4bb292(0x163)]['describe']()[_0x4bb292(0x151)](respondWithResult(_0x1b77b3,null))[_0x4bb292(0x139)](handleError(_0x1b77b3,null));},exports[a585_0x34047d(0x147)]=function(_0x58fd27,_0x1eb259){const _0x11c508=a585_0x34047d,_0x4b6205={'channel':_0x11c508(0x164)};return _0x58fd27[_0x11c508(0x13f)]['id']&&delete _0x58fd27[_0x11c508(0x13f)]['id'],_0x58fd27[_0x11c508(0x13f)][_0x11c508(0x178)]=!![],_0x58fd27[_0x11c508(0x13f)][_0x11c508(0x143)]=moment()[_0x11c508(0x15f)](_0x11c508(0x12d)),_0x58fd27[_0x11c508(0x13f)][_0x11c508(0x12e)]=_0x58fd27[_0x11c508(0x13f)][_0x11c508(0x12e)]||_0x58fd27[_0x11c508(0x165)]['id'],db[_0x11c508(0x163)][_0x11c508(0x17f)]({'where':{'id':_0x58fd27[_0x11c508(0x15d)]['id'],'UserId':null},'include':[{'model':db[_0x11c508(0x140)],'as':'Contact'}]})[_0x11c508(0x151)](handleEntityNotFound(_0x1eb259,null))[_0x11c508(0x151)](saveUpdates(_0x58fd27[_0x11c508(0x13f)],null))[_0x11c508(0x151)](function(_0x1dd02d){const _0x2b66a6=_0x11c508;if(_0x1dd02d)return _0x4b6205[_0x2b66a6(0x156)]=_0x1dd02d[_0x2b66a6(0x176)]({'plain':!![]}),db[_0x2b66a6(0x13e)][_0x2b66a6(0x17f)]({'where':{'id':_0x1dd02d[_0x2b66a6(0x141)]}});return null;})[_0x11c508(0x151)](handleEntityNotFound(_0x1eb259,null))[_0x11c508(0x151)](function(_0x20a24d){const _0x3360ec=_0x11c508;if(_0x20a24d)return _0x20a24d[_0x3360ec(0x17a)]({'UserId':_0x58fd27['body'][_0x3360ec(0x12e)],'read1stAt':_['isNil'](_0x20a24d['read1stAt'])?moment()[_0x3360ec(0x15f)](_0x3360ec(0x12d)):undefined});return null;})[_0x11c508(0x151)](function(_0x421eb2){const _0x3cd16d=_0x11c508;if(_0x421eb2)return _0x4b6205[_0x3cd16d(0x16a)]=_0x421eb2[_0x3cd16d(0x176)]({'plain':!![]}),interaction_log[_0x3cd16d(0x13c)](_0x3cd16d(0x135),_0x58fd27[_0x3cd16d(0x165)]['id'],_0x58fd27[_0x3cd16d(0x165)][_0x3cd16d(0x162)],_0x58fd27[_0x3cd16d(0x165)][_0x3cd16d(0x157)],_0x4b6205[_0x3cd16d(0x16a)]['id'],_0x58fd27['body']?JSON[_0x3cd16d(0x16b)](_0x58fd27['body']):_0x3cd16d(0x15a)),respondWithRpcPromise(_0x3cd16d(0x142),'acceptMessage',_0x4b6205);return null;})['then'](function(_0x524cbb){const _0x45a982=_0x11c508;if(_0x524cbb){if(_0x58fd27[_0x45a982(0x13f)]['manual'])return _0x4b6205['message'][_0x45a982(0x129)]=util[_0x45a982(0x15f)](_0x45a982(0x13b),_0x58fd27[_0x45a982(0x165)][_0x45a982(0x162)]),_0x4b6205['message'][_0x45a982(0x17e)]=_0x4b6205[_0x45a982(0x17e)],_0x4b6205[_0x45a982(0x156)]['event']=_0x45a982(0x147),respondWithRpcPromise(_0x45a982(0x167),_0x45a982(0x167),{'event':_0x45a982(0x13d),'message':_0x4b6205[_0x45a982(0x156)]},client9002)[_0x45a982(0x151)](function(){return _0x4b6205;});return _0x4b6205;}return null;})[_0x11c508(0x151)](respondWithResult(_0x1eb259,null))['catch'](handleError(_0x1eb259,null));},exports[a585_0x34047d(0x16e)]=function(_0x4fd4c9,_0x20e182){const _0x766e2b=a585_0x34047d,_0x930dd9={'agent':{},'channel':_0x766e2b(0x164)};return _0x4fd4c9[_0x766e2b(0x13f)]['id']&&delete _0x4fd4c9[_0x766e2b(0x13f)]['id'],_0x4fd4c9[_0x766e2b(0x13f)][_0x766e2b(0x12e)]=_0x4fd4c9[_0x766e2b(0x13f)]['UserId']||_0x4fd4c9[_0x766e2b(0x165)]['id'],_0x930dd9[_0x766e2b(0x152)]['id']=_0x4fd4c9[_0x766e2b(0x13f)]['UserId'],db[_0x766e2b(0x163)][_0x766e2b(0x17f)]({'where':{'id':_0x4fd4c9[_0x766e2b(0x15d)]['id'],'UserId':null}})['then'](handleEntityNotFound(_0x20e182,null))[_0x766e2b(0x151)](function(_0x22a2b6){const _0x45872c=_0x766e2b;if(_0x22a2b6)return _0x930dd9[_0x45872c(0x156)]=_0x22a2b6[_0x45872c(0x176)]({'plain':!![]}),db[_0x45872c(0x13e)][_0x45872c(0x17f)]({'where':{'id':_0x22a2b6[_0x45872c(0x141)]}});return null;})[_0x766e2b(0x151)](handleEntityNotFound(_0x20e182,null))['then'](function(_0x5a4e6e){const _0x5b35ce=_0x766e2b;if(_0x5a4e6e)return _0x930dd9[_0x5b35ce(0x16a)]=_0x5a4e6e[_0x5b35ce(0x176)]({'plain':!![]}),interaction_log['info']('[OPENCHANNELMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x4fd4c9[_0x5b35ce(0x165)]['id'],_0x4fd4c9[_0x5b35ce(0x165)][_0x5b35ce(0x162)],_0x4fd4c9['user']['role'],_0x930dd9[_0x5b35ce(0x16a)]['id'],_0x4fd4c9[_0x5b35ce(0x13f)]?JSON['stringify'](_0x4fd4c9['body']):'null'),respondWithRpcPromise(_0x5b35ce(0x136),'rejectMessage',_0x930dd9);return null;})[_0x766e2b(0x151)](function(_0x133fb5){const _0x5676ff=_0x766e2b;if(_0x133fb5)return _0x133fb5[_0x5676ff(0x156)][_0x5676ff(0x129)]=util[_0x5676ff(0x15f)](_0x5676ff(0x13b),_0x4fd4c9[_0x5676ff(0x165)][_0x5676ff(0x162)]),_0x133fb5[_0x5676ff(0x156)]['channel']=_0x930dd9[_0x5676ff(0x17e)],_0x133fb5['message'][_0x5676ff(0x16d)]=_0x5676ff(0x16e),respondWithRpcPromise(_0x5676ff(0x167),'EventManager',{'event':_0x5676ff(0x16f),'message':_0x133fb5['message']},client9002),_0x930dd9;return null;})[_0x766e2b(0x151)](respondWithResult(_0x20e182,null))[_0x766e2b(0x139)](handleError(_0x20e182,null));}; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.events.js b/server/api/openchannelMessage/openchannelMessage.events.js index a4d1226..949e762 100644 --- a/server/api/openchannelMessage/openchannelMessage.events.js +++ b/server/api/openchannelMessage/openchannelMessage.events.js @@ -1 +1 @@ -const a586_0xcf28=['exports','undefined','setMaxListeners','events','emit','remove','update','addHook'];(function(_0x5269e8,_0xbbce6a){const _0xcf28a5=function(_0xaee7c){while(--_0xaee7c){_0x5269e8['push'](_0x5269e8['shift']());}};_0xcf28a5(++_0xbbce6a);}(a586_0xcf28,0xd5));const a586_0xaee7=function(_0x5269e8,_0xbbce6a){_0x5269e8=_0x5269e8-0x182;let _0xcf28a5=a586_0xcf28[_0x5269e8];return _0xcf28a5;};const a586_0xad060c=a586_0xaee7;'use strict';const EventEmitter=require(a586_0xad060c(0x188)),OpenchannelMessage=require('../../mysqldb')['db']['OpenchannelMessage'],OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents[a586_0xad060c(0x187)](0x0);const events={'afterCreate':'save','afterUpdate':a586_0xad060c(0x183),'afterDestroy':a586_0xad060c(0x182)};function emitEvent(_0x303222){return function(_0x53220b){const _0x546c69=a586_0xaee7;OpenchannelMessageEvents[_0x546c69(0x189)](_0x303222+':'+_0x53220b['id'],_0x53220b),OpenchannelMessageEvents[_0x546c69(0x189)](_0x303222,_0x53220b);};}for(const e in events){if(typeof events[e]!==a586_0xad060c(0x186)){const event=events[e];OpenchannelMessage[a586_0xad060c(0x184)](e,emitEvent(event));}}module[a586_0xad060c(0x185)]=OpenchannelMessageEvents; \ No newline at end of file +const a586_0x2483=['save','events','emit','update','remove','addHook','../../mysqldb','exports'];(function(_0x53b08a,_0x546248){const _0x2483b0=function(_0xc4d67a){while(--_0xc4d67a){_0x53b08a['push'](_0x53b08a['shift']());}};_0x2483b0(++_0x546248);}(a586_0x2483,0x1d7));const a586_0xc4d6=function(_0x53b08a,_0x546248){_0x53b08a=_0x53b08a-0x1be;let _0x2483b0=a586_0x2483[_0x53b08a];return _0x2483b0;};const a586_0x5c6384=a586_0xc4d6;'use strict';const EventEmitter=require(a586_0x5c6384(0x1c0)),OpenchannelMessage=require(a586_0x5c6384(0x1c5))['db']['OpenchannelMessage'],OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':a586_0x5c6384(0x1bf),'afterUpdate':a586_0x5c6384(0x1c2),'afterDestroy':a586_0x5c6384(0x1c3)};function emitEvent(_0x54d613){return function(_0x493371){const _0x28dbc1=a586_0xc4d6;OpenchannelMessageEvents['emit'](_0x54d613+':'+_0x493371['id'],_0x493371),OpenchannelMessageEvents[_0x28dbc1(0x1c1)](_0x54d613,_0x493371);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];OpenchannelMessage[a586_0x5c6384(0x1c4)](e,emitEvent(event));}}module[a586_0x5c6384(0x1be)]=OpenchannelMessageEvents; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.model.js b/server/api/openchannelMessage/openchannelMessage.model.js index 0699eb8..2a40b89 100644 --- a/server/api/openchannelMessage/openchannelMessage.model.js +++ b/server/api/openchannelMessage/openchannelMessage.model.js @@ -1 +1 @@ -const a587_0xaeef=['OpenchannelMessage','init','sequelize','exports','function'];(function(_0x477f45,_0x97b559){const _0xaeefd3=function(_0x25a288){while(--_0x25a288){_0x477f45['push'](_0x477f45['shift']());}};_0xaeefd3(++_0x97b559);}(a587_0xaeef,0x12c));const a587_0x25a2=function(_0x477f45,_0x97b559){_0x477f45=_0x477f45-0xf4;let _0xaeefd3=a587_0xaeef[_0x477f45];return _0xaeefd3;};const a587_0x4d62d6=a587_0x25a2;'use strict';const {Model}=require(a587_0x4d62d6(0xf6)),{attributes}=require('./openchannelMessage.attributes'),{options}=require('./openchannelMessage.options');class OpenchannelMessage extends Model{}function init(_0x222461,_0x253f23){const _0x295acd=a587_0x4d62d6,_0x241a46=options(_0x222461),_0x4c528f=typeof _0x253f23===_0x295acd(0xf8)?_0x253f23(_0x241a46):_0x241a46;return OpenchannelMessage[_0x295acd(0xf5)](attributes,_0x4c528f),OpenchannelMessage;}module['exports'][a587_0x4d62d6(0xf4)]=OpenchannelMessage,module[a587_0x4d62d6(0xf7)][a587_0x4d62d6(0xf5)]=init; \ No newline at end of file +const a587_0x4026=['OpenchannelMessage','exports','function','init','sequelize','./openchannelMessage.options','./openchannelMessage.attributes'];(function(_0x434975,_0x58486d){const _0x402693=function(_0x37766c){while(--_0x37766c){_0x434975['push'](_0x434975['shift']());}};_0x402693(++_0x58486d);}(a587_0x4026,0x172));const a587_0x3776=function(_0x434975,_0x58486d){_0x434975=_0x434975-0x91;let _0x402693=a587_0x4026[_0x434975];return _0x402693;};const a587_0x28fd4d=a587_0x3776;'use strict';const {Model}=require(a587_0x28fd4d(0x96)),{attributes}=require(a587_0x28fd4d(0x91)),{options}=require(a587_0x28fd4d(0x97));class OpenchannelMessage extends Model{}function init(_0x270c06,_0x5f57a2){const _0x34df92=a587_0x28fd4d,_0x576f68=options(_0x270c06),_0x5720f8=typeof _0x5f57a2===_0x34df92(0x94)?_0x5f57a2(_0x576f68):_0x576f68;return OpenchannelMessage['init'](attributes,_0x5720f8),OpenchannelMessage;}module[a587_0x28fd4d(0x93)][a587_0x28fd4d(0x92)]=OpenchannelMessage,module['exports'][a587_0x28fd4d(0x95)]=init; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.options.js b/server/api/openchannelMessage/openchannelMessage.options.js index 5f6e629..9074599 100644 --- a/server/api/openchannelMessage/openchannelMessage.options.js +++ b/server/api/openchannelMessage/openchannelMessage.options.js @@ -1 +1 @@ -const a588_0x5daa=['get','request-promise-native','body','openchannel_messages','OpenchannelAccount','catch','CmContact','../../config/logger','info','then','update','afterCreate','options','threadId','toLowerCase','out','direction','Forwarding\x20message\x20%d\x20to\x20%s','OpenchannelInteraction','Interactions','length','exports','OpenchannelMessage,\x20%s,\x20%s','format','util','describe','secret','OpenchannelInteractionId','api','POST','createdAt','lodash','inspect','OpenchannelAccountId','replyUri','GET','UserId','isNil','error','Message\x20%d\x20forwarded\x20to\x20%s','Contact','FULLTEXT','Interaction'];(function(_0x174235,_0x593b9f){const _0x5daab3=function(_0x6560c7){while(--_0x6560c7){_0x174235['push'](_0x174235['shift']());}};_0x5daab3(++_0x593b9f);}(a588_0x5daa,0xfc));const a588_0x6560=function(_0x174235,_0x593b9f){_0x174235=_0x174235-0x15e;let _0x5daab3=a588_0x5daa[_0x174235];return _0x5daab3;};const a588_0x98c2a5=a588_0x6560,util=require(a588_0x98c2a5(0x17c)),_=require(a588_0x98c2a5(0x183)),logger=require(a588_0x98c2a5(0x16b))(a588_0x98c2a5(0x180)),rp=require(a588_0x98c2a5(0x165));function options(_0x41f456){const _0x212050=a588_0x98c2a5;return{'sequelize':_0x41f456,'tableName':_0x212050(0x167),'paranoid':![],'indexes':[{'name':'fti_openchannel_messages','fields':[_0x212050(0x166)],'type':_0x212050(0x162)}],'timestamps':!![],'hooks':{'afterCreate':function(_0x31433f){const _0x16b5b8=_0x212050,_0x4f9abc=_0x41f456['models'],_0x4e337f=_0x31433f[_0x16b5b8(0x164)]({'plain':!![]});(_0x4e337f[_0x16b5b8(0x174)]['toLowerCase']()==='in'||_0x4e337f['direction']['toLowerCase']()===_0x16b5b8(0x173)&&!_0x4e337f[_0x16b5b8(0x17e)]&&!_[_0x16b5b8(0x15e)](_0x4e337f[_0x16b5b8(0x188)]))&&_0x4f9abc[_0x16b5b8(0x176)]['findOne']({'where':{'id':_0x4e337f[_0x16b5b8(0x17f)]}})[_0x16b5b8(0x16d)](function(_0x4ba86a){const _0x2446f9=_0x16b5b8;_0x4ba86a&&_0x4ba86a[_0x2446f9(0x16e)]({'lastMsgAt':_0x4e337f[_0x2446f9(0x182)],'lastMsgDirection':_0x4e337f[_0x2446f9(0x174)][_0x2446f9(0x172)]()});})['catch'](function(_0x171cea){const _0x3f5a0d=_0x16b5b8;console[_0x3f5a0d(0x15f)](_0x171cea);});if(_0x4e337f[_0x16b5b8(0x174)]===_0x16b5b8(0x173)&&!_0x4e337f['secret']){let _0x5a63f2;_0x4f9abc['CmContact'][_0x16b5b8(0x17d)]()['then'](function(_0x5e9286){const _0x1235dc=_0x16b5b8;return _0x4f9abc[_0x1235dc(0x168)]['find']({'where':{'id':_0x4e337f[_0x1235dc(0x185)]},'include':[{'model':_0x4f9abc[_0x1235dc(0x176)],'as':_0x1235dc(0x177),'where':{'id':_0x4e337f[_0x1235dc(0x17f)]},'limit':0x1,'include':[{'model':_0x4f9abc[_0x1235dc(0x16a)],'as':_0x1235dc(0x161),'attributes':_['keys'](_0x5e9286)}]}]});})[_0x16b5b8(0x16d)](function(_0xc7182b){const _0x4fbc6b=_0x16b5b8;_0x5a63f2=_0xc7182b[_0x4fbc6b(0x164)]({'plain':!![]});if(_0x5a63f2&&_0x5a63f2[_0x4fbc6b(0x186)]){logger['info'](_0x4fbc6b(0x17a),_0x4fbc6b(0x16f),util[_0x4fbc6b(0x17b)](_0x4fbc6b(0x175),_0x4e337f['id'],_0x5a63f2[_0x4fbc6b(0x186)]));_0x5a63f2[_0x4fbc6b(0x177)]&&_0x5a63f2[_0x4fbc6b(0x177)][_0x4fbc6b(0x178)]&&(_0x4e337f[_0x4fbc6b(0x163)]=_['omit'](_0x5a63f2[_0x4fbc6b(0x177)][0x0],_0x4fbc6b(0x161)),_0x4e337f[_0x4fbc6b(0x161)]=_0x5a63f2[_0x4fbc6b(0x177)][0x0][_0x4fbc6b(0x161)]);const _0x24bed7={'method':_0x4fbc6b(0x181),'uri':encodeURI(_0x5a63f2['replyUri']),'json':!![],'resolveWithFullResponse':!![]};switch(_0x24bed7['method']){case _0x4fbc6b(0x187):_0x24bed7['qs']=_0x4e337f;break;case _0x4fbc6b(0x181):_0x24bed7[_0x4fbc6b(0x166)]=_0x4e337f;break;}return rp(_0x24bed7)[_0x4fbc6b(0x16d)](function(_0xa43dfb){const _0x2f21fe=_0x4fbc6b;logger[_0x2f21fe(0x16c)](_0x2f21fe(0x17a),_0x2f21fe(0x16f),util[_0x2f21fe(0x17b)](_0x2f21fe(0x160),_0x4e337f['id'],_0x5a63f2[_0x2f21fe(0x186)]));if(_0xa43dfb[_0x2f21fe(0x166)]['threadId']&&_0xa43dfb[_0x2f21fe(0x166)][_0x2f21fe(0x171)]!=_0x4e337f[_0x2f21fe(0x163)][_0x2f21fe(0x171)])return _0x4f9abc[_0x2f21fe(0x176)][_0x2f21fe(0x16e)]({'threadId':_0xa43dfb['body']['threadId']},{'logging':!![],'where':{'id':_0x4e337f['Interaction']['id']}});else return;})[_0x4fbc6b(0x16d)](function(){const _0xace990=_0x4fbc6b;return _0x31433f[_0xace990(0x16e)]({'read':!![]});})[_0x4fbc6b(0x169)](function(_0x2f576a){const _0x37a59d=_0x4fbc6b;logger[_0x37a59d(0x15f)]('OpenchannelMessage,\x20%s,\x20%s','afterCreate',util[_0x37a59d(0x184)](_0x2f576a,{'showHidden':![],'depth':null}));});}});}}},'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'};}module[a588_0x98c2a5(0x179)][a588_0x98c2a5(0x170)]=options; \ No newline at end of file +const a588_0x2f5b=['request-promise-native','GET','format','omit','OpenchannelInteraction','Interaction','replyUri','describe','direction','then','catch','utf8mb4','error','Message\x20%d\x20forwarded\x20to\x20%s','options','body','get','api','OpenchannelAccount','length','Interactions','findOne','keys','isNil','inspect','utf8mb4_unicode_ci','OpenchannelMessage,\x20%s,\x20%s','threadId','afterCreate','info','../../config/logger','Contact','FULLTEXT','fti_openchannel_messages','createdAt','OpenchannelInteractionId','openchannel_messages','exports','toLowerCase','POST','secret','out','OpenchannelAccountId','find','UserId','models'];(function(_0x577f69,_0x1efc5b){const _0x2f5be2=function(_0x15d3a0){while(--_0x15d3a0){_0x577f69['push'](_0x577f69['shift']());}};_0x2f5be2(++_0x1efc5b);}(a588_0x2f5b,0x122));const a588_0x15d3=function(_0x577f69,_0x1efc5b){_0x577f69=_0x577f69-0x88;let _0x2f5be2=a588_0x2f5b[_0x577f69];return _0x2f5be2;};const a588_0x2cf06b=a588_0x15d3,util=require('util'),_=require('lodash'),logger=require(a588_0x2cf06b(0x98))(a588_0x2cf06b(0x8b)),rp=require(a588_0x2cf06b(0xa8));function options(_0x2b47c3){const _0x3039a1=a588_0x2cf06b;return{'sequelize':_0x2b47c3,'tableName':_0x3039a1(0x9e),'paranoid':![],'indexes':[{'name':_0x3039a1(0x9b),'fields':[_0x3039a1(0x89)],'type':_0x3039a1(0x9a)}],'timestamps':!![],'hooks':{'afterCreate':function(_0x189e25){const _0x69ded7=_0x3039a1,_0x348860=_0x2b47c3[_0x69ded7(0xa7)],_0x109302=_0x189e25[_0x69ded7(0x8a)]({'plain':!![]});(_0x109302['direction'][_0x69ded7(0xa0)]()==='in'||_0x109302[_0x69ded7(0xb0)][_0x69ded7(0xa0)]()===_0x69ded7(0xa3)&&!_0x109302['secret']&&!_[_0x69ded7(0x91)](_0x109302[_0x69ded7(0xa6)]))&&_0x348860[_0x69ded7(0xac)][_0x69ded7(0x8f)]({'where':{'id':_0x109302[_0x69ded7(0x9d)]}})[_0x69ded7(0xb1)](function(_0x4b12b0){const _0x4af336=_0x69ded7;_0x4b12b0&&_0x4b12b0['update']({'lastMsgAt':_0x109302[_0x4af336(0x9c)],'lastMsgDirection':_0x109302[_0x4af336(0xb0)][_0x4af336(0xa0)]()});})['catch'](function(_0x156d79){const _0x14aebb=_0x69ded7;console[_0x14aebb(0xb4)](_0x156d79);});if(_0x109302[_0x69ded7(0xb0)]==='out'&&!_0x109302[_0x69ded7(0xa2)]){let _0x258f9a;_0x348860['CmContact'][_0x69ded7(0xaf)]()[_0x69ded7(0xb1)](function(_0x34312d){const _0x516ec1=_0x69ded7;return _0x348860[_0x516ec1(0x8c)][_0x516ec1(0xa5)]({'where':{'id':_0x109302[_0x516ec1(0xa4)]},'include':[{'model':_0x348860[_0x516ec1(0xac)],'as':_0x516ec1(0x8e),'where':{'id':_0x109302['OpenchannelInteractionId']},'limit':0x1,'include':[{'model':_0x348860['CmContact'],'as':_0x516ec1(0x99),'attributes':_[_0x516ec1(0x90)](_0x34312d)}]}]});})[_0x69ded7(0xb1)](function(_0x3b7101){const _0x47f458=_0x69ded7;_0x258f9a=_0x3b7101['get']({'plain':!![]});if(_0x258f9a&&_0x258f9a[_0x47f458(0xae)]){logger[_0x47f458(0x97)]('OpenchannelMessage,\x20%s,\x20%s',_0x47f458(0x96),util[_0x47f458(0xaa)]('Forwarding\x20message\x20%d\x20to\x20%s',_0x109302['id'],_0x258f9a[_0x47f458(0xae)]));_0x258f9a[_0x47f458(0x8e)]&&_0x258f9a[_0x47f458(0x8e)][_0x47f458(0x8d)]&&(_0x109302[_0x47f458(0xad)]=_[_0x47f458(0xab)](_0x258f9a['Interactions'][0x0],_0x47f458(0x99)),_0x109302[_0x47f458(0x99)]=_0x258f9a['Interactions'][0x0][_0x47f458(0x99)]);const _0x390097={'method':'POST','uri':encodeURI(_0x258f9a['replyUri']),'json':!![],'resolveWithFullResponse':!![]};switch(_0x390097['method']){case _0x47f458(0xa9):_0x390097['qs']=_0x109302;break;case _0x47f458(0xa1):_0x390097[_0x47f458(0x89)]=_0x109302;break;}return rp(_0x390097)['then'](function(_0x3b59d9){const _0x950101=_0x47f458;logger[_0x950101(0x97)](_0x950101(0x94),_0x950101(0x96),util[_0x950101(0xaa)](_0x950101(0xb5),_0x109302['id'],_0x258f9a[_0x950101(0xae)]));if(_0x3b59d9[_0x950101(0x89)][_0x950101(0x95)]&&_0x3b59d9[_0x950101(0x89)][_0x950101(0x95)]!=_0x109302['Interaction']['threadId'])return _0x348860[_0x950101(0xac)]['update']({'threadId':_0x3b59d9[_0x950101(0x89)]['threadId']},{'logging':!![],'where':{'id':_0x109302[_0x950101(0xad)]['id']}});else return;})[_0x47f458(0xb1)](function(){return _0x189e25['update']({'read':!![]});})[_0x47f458(0xb2)](function(_0x192fa9){const _0x496e7f=_0x47f458;logger[_0x496e7f(0xb4)](_0x496e7f(0x94),_0x496e7f(0x96),util[_0x496e7f(0x92)](_0x192fa9,{'showHidden':![],'depth':null}));});}});}}},'charset':_0x3039a1(0xb3),'collate':_0x3039a1(0x93)};}module[a588_0x2cf06b(0x9f)][a588_0x2cf06b(0x88)]=options; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.rpc.js b/server/api/openchannelMessage/openchannelMessage.rpc.js index fc4623d..a0d6b2e 100644 --- a/server/api/openchannelMessage/openchannelMessage.rpc.js +++ b/server/api/openchannelMessage/openchannelMessage.rpc.js @@ -1 +1 @@ -const a589_0x20d2=['options','../../rediscache','create','raw','./openchannelMessage.socket','CreateOpenchannelMessage','body','message','register','error','info','../../mysqldb','rpc','then'];(function(_0x45f935,_0x24b371){const _0x20d228=function(_0x42d5bf){while(--_0x42d5bf){_0x45f935['push'](_0x45f935['shift']());}};_0x20d228(++_0x24b371);}(a589_0x20d2,0x1de));const a589_0x42d5=function(_0x45f935,_0x24b371){_0x45f935=_0x45f935-0xb3;let _0x20d228=a589_0x20d2[_0x45f935];return _0x20d228;};const a589_0x25f3aa=a589_0x42d5;'use strict';const db=require(a589_0x25f3aa(0xbc))['db'],logger=require('../../config/logger')(a589_0x25f3aa(0xbd)),{getSocket}=require(a589_0x25f3aa(0xc0)),socket=getSocket();require(a589_0x25f3aa(0xb5))[a589_0x25f3aa(0xb9)](socket),exports[a589_0x25f3aa(0xb6)]=function(_0x50a320){const _0x5e64e6=this;return new Promise(function(_0xfd4602,_0x1ebf6f){const _0x405647=a589_0x42d5;return db['OpenchannelMessage'][_0x405647(0xb3)](_0x50a320[_0x405647(0xb7)],{'raw':_0x50a320[_0x405647(0xbf)]?_0x50a320['options'][_0x405647(0xb4)]===undefined?!![]:![]:!![]})[_0x405647(0xbe)](function(_0x241b4d){const _0x4377e4=_0x405647;logger[_0x4377e4(0xbb)](_0x4377e4(0xb6),_0x50a320),logger['debug'](_0x4377e4(0xb6),_0x50a320,JSON['stringify'](_0x241b4d)),_0xfd4602(_0x241b4d);})['catch'](function(_0x340dc5){const _0x3dcbae=_0x405647;logger['error'](_0x3dcbae(0xb6),_0x340dc5['message'],_0x50a320),_0x1ebf6f(_0x5e64e6[_0x3dcbae(0xba)](0x1f4,_0x340dc5[_0x3dcbae(0xb8)]));});});}; \ No newline at end of file +const a589_0x4139=['debug','info','error','then','message','OpenchannelMessage','options','./openchannelMessage.socket','register','CreateOpenchannelMessage','stringify','rpc','body','../../mysqldb'];(function(_0x2be3af,_0xd980e6){const _0x4139dc=function(_0x4afb46){while(--_0x4afb46){_0x2be3af['push'](_0x2be3af['shift']());}};_0x4139dc(++_0xd980e6);}(a589_0x4139,0x82));const a589_0x4afb=function(_0x2be3af,_0xd980e6){_0x2be3af=_0x2be3af-0x176;let _0x4139dc=a589_0x4139[_0x2be3af];return _0x4139dc;};const a589_0x7336db=a589_0x4afb;'use strict';const db=require(a589_0x7336db(0x17f))['db'],logger=require('../../config/logger')(a589_0x7336db(0x17d)),{getSocket}=require('../../rediscache'),socket=getSocket();require(a589_0x7336db(0x179))[a589_0x7336db(0x17a)](socket),exports[a589_0x7336db(0x17b)]=function(_0x159eff){const _0x41edcb=this;return new Promise(function(_0x420cb7,_0x14c9d8){const _0x27eeb5=a589_0x4afb;return db[_0x27eeb5(0x177)]['create'](_0x159eff[_0x27eeb5(0x17e)],{'raw':_0x159eff[_0x27eeb5(0x178)]?_0x159eff['options']['raw']===undefined?!![]:![]:!![]})[_0x27eeb5(0x183)](function(_0x5b90a2){const _0x4c33ae=_0x27eeb5;logger[_0x4c33ae(0x181)]('CreateOpenchannelMessage',_0x159eff),logger[_0x4c33ae(0x180)](_0x4c33ae(0x17b),_0x159eff,JSON[_0x4c33ae(0x17c)](_0x5b90a2)),_0x420cb7(_0x5b90a2);})['catch'](function(_0x115bb8){const _0x21b300=_0x27eeb5;logger[_0x21b300(0x182)](_0x21b300(0x17b),_0x115bb8[_0x21b300(0x176)],_0x159eff),_0x14c9d8(_0x41edcb[_0x21b300(0x182)](0x1f4,_0x115bb8['message']));});});}; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.socket.js b/server/api/openchannelMessage/openchannelMessage.socket.js index bcdfbd5..e13b94a 100644 --- a/server/api/openchannelMessage/openchannelMessage.socket.js +++ b/server/api/openchannelMessage/openchannelMessage.socket.js @@ -1 +1 @@ -const a590_0x1709=['./openchannelMessage.events','openchannelMessage:','length','emit','register','remove'];(function(_0x2359fd,_0x466891){const _0x170960=function(_0x125893){while(--_0x125893){_0x2359fd['push'](_0x2359fd['shift']());}};_0x170960(++_0x466891);}(a590_0x1709,0x166));const a590_0x1258=function(_0x2359fd,_0x466891){_0x2359fd=_0x2359fd-0x1a6;let _0x170960=a590_0x1709[_0x2359fd];return _0x170960;};const a590_0xc57192=a590_0x1258;'use strict';const OpenchannelMessageEvents=require(a590_0xc57192(0x1a8)),events=['save',a590_0xc57192(0x1a7),'update'];function createListener(_0x307341,_0x32c9cb){return function(_0xc8f8d3){const _0x39d025=a590_0x1258;_0x32c9cb[_0x39d025(0x1ab)](_0x307341,_0xc8f8d3);};}exports[a590_0xc57192(0x1a6)]=function(_0x3cf938){const _0x2749ca=a590_0xc57192;for(let _0x420acd=0x0,_0x51d76b=events[_0x2749ca(0x1aa)];_0x420acd<_0x51d76b;_0x420acd++){const _0x31c652=events[_0x420acd],_0x603d53=createListener(_0x2749ca(0x1a9)+_0x31c652,_0x3cf938);OpenchannelMessageEvents['on'](_0x31c652,_0x603d53);}}; \ No newline at end of file +const a590_0x488d=['save','register','openchannelMessage:','emit','remove','update','length'];(function(_0x5ef80d,_0x12e7b1){const _0x488da3=function(_0x592940){while(--_0x592940){_0x5ef80d['push'](_0x5ef80d['shift']());}};_0x488da3(++_0x12e7b1);}(a590_0x488d,0x138));const a590_0x5929=function(_0x5ef80d,_0x12e7b1){_0x5ef80d=_0x5ef80d-0x16d;let _0x488da3=a590_0x488d[_0x5ef80d];return _0x488da3;};const a590_0x24c7e1=a590_0x5929;'use strict';const OpenchannelMessageEvents=require('./openchannelMessage.events'),events=[a590_0x24c7e1(0x170),a590_0x24c7e1(0x16d),a590_0x24c7e1(0x16e)];function createListener(_0x2b4a8e,_0x16a224){return function(_0x260257){const _0x463a12=a590_0x5929;_0x16a224[_0x463a12(0x173)](_0x2b4a8e,_0x260257);};}exports[a590_0x24c7e1(0x171)]=function(_0x3b0bef){const _0x25592f=a590_0x24c7e1;for(let _0x12ebed=0x0,_0x5f5638=events[_0x25592f(0x16f)];_0x12ebed<_0x5f5638;_0x12ebed++){const _0x3be2ad=events[_0x12ebed],_0x3ffc12=createListener(_0x25592f(0x172)+_0x3be2ad,_0x3b0bef);OpenchannelMessageEvents['on'](_0x3be2ad,_0x3ffc12);}}; \ No newline at end of file diff --git a/server/api/openchannelQueue/index.js b/server/api/openchannelQueue/index.js index a6f9790..0a2e05d 100644 --- a/server/api/openchannelQueue/index.js +++ b/server/api/openchannelQueue/index.js @@ -1 +1 @@ -const a591_0x2047=['delete','removeTeams','destroy','getTeams','get','/:id/teams','index','update','getAgents','isAuthenticated','put','/describe','addAgents','addTeams','getMembers','/:id','express','./openchannelQueue.controller','post','create','removeAgents','/:id/users','describe','../../components/auth/service','show','Router','exports','/:id/members'];(function(_0x188706,_0x493306){const _0x2047e8=function(_0x1deba5){while(--_0x1deba5){_0x188706['push'](_0x188706['shift']());}};_0x2047e8(++_0x493306);}(a591_0x2047,0x117));const a591_0x1deb=function(_0x188706,_0x493306){_0x188706=_0x188706-0xe1;let _0x2047e8=a591_0x2047[_0x188706];return _0x2047e8;};const a591_0x4f6730=a591_0x1deb;'use strict';const express=require(a591_0x4f6730(0xf2)),router=express[a591_0x4f6730(0xfb)](),auth=require(a591_0x4f6730(0xf9)),controller=require(a591_0x4f6730(0xf3));router[a591_0x4f6730(0xe6)]('/',auth[a591_0x4f6730(0xeb)](),controller[a591_0x4f6730(0xe8)]),router['get'](a591_0x4f6730(0xed),auth[a591_0x4f6730(0xeb)](),controller[a591_0x4f6730(0xf8)]),router['get'](a591_0x4f6730(0xf1),auth['isAuthenticated'](),controller[a591_0x4f6730(0xfa)]),router[a591_0x4f6730(0xe6)](a591_0x4f6730(0xe1),auth[a591_0x4f6730(0xeb)](),controller[a591_0x4f6730(0xf0)]),router[a591_0x4f6730(0xe6)](a591_0x4f6730(0xe7),auth[a591_0x4f6730(0xeb)](),controller[a591_0x4f6730(0xe5)]),router[a591_0x4f6730(0xe6)](a591_0x4f6730(0xf7),auth['isAuthenticated'](),controller[a591_0x4f6730(0xea)]),router['post']('/',auth[a591_0x4f6730(0xeb)](),controller[a591_0x4f6730(0xf5)]),router['post'](a591_0x4f6730(0xe7),auth[a591_0x4f6730(0xeb)](),controller[a591_0x4f6730(0xef)]),router[a591_0x4f6730(0xf4)](a591_0x4f6730(0xf7),auth[a591_0x4f6730(0xeb)](),controller[a591_0x4f6730(0xee)]),router[a591_0x4f6730(0xec)](a591_0x4f6730(0xf1),auth[a591_0x4f6730(0xeb)](),controller[a591_0x4f6730(0xe9)]),router[a591_0x4f6730(0xe2)](a591_0x4f6730(0xf1),auth['isAuthenticated'](),controller[a591_0x4f6730(0xe4)]),router[a591_0x4f6730(0xe2)](a591_0x4f6730(0xe7),auth['isAuthenticated'](),controller[a591_0x4f6730(0xe3)]),router[a591_0x4f6730(0xe2)](a591_0x4f6730(0xf7),auth[a591_0x4f6730(0xeb)](),controller[a591_0x4f6730(0xf6)]),module[a591_0x4f6730(0xfc)]=router; \ No newline at end of file +const a591_0x50f0=['Router','update','isAuthenticated','put','getTeams','show','express','describe','../../components/auth/service','get','destroy','/:id/users','/:id/teams','getMembers','create','removeAgents','index','addAgents','/:id/members','/:id','addTeams','getAgents','delete','post'];(function(_0x10afa0,_0x16fc1f){const _0x50f07b=function(_0x5d907f){while(--_0x5d907f){_0x10afa0['push'](_0x10afa0['shift']());}};_0x50f07b(++_0x16fc1f);}(a591_0x50f0,0x87));const a591_0x5d90=function(_0x10afa0,_0x16fc1f){_0x10afa0=_0x10afa0-0xed;let _0x50f07b=a591_0x50f0[_0x10afa0];return _0x50f07b;};const a591_0x2e32d0=a591_0x5d90;'use strict';const express=require(a591_0x2e32d0(0xfc)),router=express[a591_0x2e32d0(0xf6)](),auth=require(a591_0x2e32d0(0xfe)),controller=require('./openchannelQueue.controller');router[a591_0x2e32d0(0xff)]('/',auth[a591_0x2e32d0(0xf8)](),controller[a591_0x2e32d0(0xee)]),router['get']('/describe',auth[a591_0x2e32d0(0xf8)](),controller[a591_0x2e32d0(0xfd)]),router[a591_0x2e32d0(0xff)](a591_0x2e32d0(0xf1),auth[a591_0x2e32d0(0xf8)](),controller[a591_0x2e32d0(0xfb)]),router[a591_0x2e32d0(0xff)](a591_0x2e32d0(0xf0),auth[a591_0x2e32d0(0xf8)](),controller[a591_0x2e32d0(0x103)]),router[a591_0x2e32d0(0xff)](a591_0x2e32d0(0x102),auth[a591_0x2e32d0(0xf8)](),controller[a591_0x2e32d0(0xfa)]),router[a591_0x2e32d0(0xff)](a591_0x2e32d0(0x101),auth[a591_0x2e32d0(0xf8)](),controller[a591_0x2e32d0(0xf3)]),router['post']('/',auth[a591_0x2e32d0(0xf8)](),controller[a591_0x2e32d0(0x104)]),router[a591_0x2e32d0(0xf5)]('/:id/teams',auth[a591_0x2e32d0(0xf8)](),controller[a591_0x2e32d0(0xf2)]),router['post'](a591_0x2e32d0(0x101),auth[a591_0x2e32d0(0xf8)](),controller[a591_0x2e32d0(0xef)]),router[a591_0x2e32d0(0xf9)]('/:id',auth[a591_0x2e32d0(0xf8)](),controller[a591_0x2e32d0(0xf7)]),router[a591_0x2e32d0(0xf4)]('/:id',auth[a591_0x2e32d0(0xf8)](),controller[a591_0x2e32d0(0x100)]),router[a591_0x2e32d0(0xf4)](a591_0x2e32d0(0x102),auth[a591_0x2e32d0(0xf8)](),controller['removeTeams']),router[a591_0x2e32d0(0xf4)](a591_0x2e32d0(0x101),auth[a591_0x2e32d0(0xf8)](),controller[a591_0x2e32d0(0xed)]),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 0e3f5ba..1c22c8f 100644 --- a/server/api/openchannelQueue/openchannelQueue.attributes.js +++ b/server/api/openchannelQueue/openchannelQueue.attributes.js @@ -1 +1 @@ -const a592_0x2ae2=['name','exports','STRING','INTEGER','rrmemory','roundrobin','attributes','beepall'];(function(_0x1e2fbc,_0x3395f9){const _0x2ae278=function(_0x201865){while(--_0x201865){_0x1e2fbc['push'](_0x1e2fbc['shift']());}};_0x2ae278(++_0x3395f9);}(a592_0x2ae2,0x13e));const a592_0x2018=function(_0x1e2fbc,_0x3395f9){_0x1e2fbc=_0x1e2fbc-0xda;let _0x2ae278=a592_0x2ae2[_0x1e2fbc];return _0x2ae278;};const a592_0x27abdf=a592_0x2018;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a592_0x27abdf(0xde)],'unique':a592_0x27abdf(0xdc),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':DataTypes[a592_0x27abdf(0xde)]},'timeout':{'type':DataTypes[a592_0x27abdf(0xdf)],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes['ENUM'](a592_0x27abdf(0xe0),a592_0x27abdf(0xdb),a592_0x27abdf(0xe1))}};module[a592_0x27abdf(0xdd)][a592_0x27abdf(0xda)]=attributes; \ No newline at end of file +const a592_0x1840=['STRING','attributes','beepall','roundrobin','name','rrmemory','exports'];(function(_0x182b91,_0xb4289b){const _0x184076=function(_0x5bf1d8){while(--_0x5bf1d8){_0x182b91['push'](_0x182b91['shift']());}};_0x184076(++_0xb4289b);}(a592_0x1840,0x1ea));const a592_0x5bf1=function(_0x182b91,_0xb4289b){_0x182b91=_0x182b91-0x103;let _0x184076=a592_0x1840[_0x182b91];return _0x184076;};const a592_0x5a62fc=a592_0x5bf1;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a592_0x5a62fc(0x103)],'unique':a592_0x5a62fc(0x107),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':DataTypes['STRING']},'timeout':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes['ENUM'](a592_0x5a62fc(0x108),a592_0x5a62fc(0x105),a592_0x5a62fc(0x106))}};module[a592_0x5a62fc(0x109)][a592_0x5a62fc(0x104)]=attributes; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.controller.js b/server/api/openchannelQueue/openchannelQueue.controller.js index d79851e..7e2c3cf 100644 --- a/server/api/openchannelQueue/openchannelQueue.controller.js +++ b/server/api/openchannelQueue/openchannelQueue.controller.js @@ -1 +1 @@ -const a593_0x222c=['util','UserProfileResource','clone','merge','team_has_openchannel_queues','destroy','show','omit','sort','json','Agents','stack','includeAll','ids','createdAt','../../mysqldb','findAndCountAll','catch','transaction','index','keys','then','select','user','./openchannelQueue.socket','register','nolimit','filter','addTeams','key','model','rows','error','userOpenchannelQueue:save','field','UserProfileSection','SELECT','body','tq.TeamId','Unable\x20to\x20retrieve\x20the\x20current\x20user','isEmpty','all','toString','emit','count','from','api','format','describe','role','../../config/logger','union','isArray','update','OpenchannelQueues','autoAssociation','squel','include','userOpenchannelQueue:remove','status','fieldName','attributes','removeAgents','rawAttributes','voicePause','forEach','query','every','ut.TeamId\x20=\x20tq.TeamId','Team','order','agent','filters','OpenchannelQueueId','getMembers','SIP','send','type','params','get','map','end','create','sendStatus','limit','OpenchannelQueue','like','findOne','userProfileId','VIRTUAL','compact','UserOpenchannelQueue','findOrCreate','Content-Range','sequelize','OpenchannelQueueId\x20=\x20?','UserId','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','../../components/parsers/qs','where','TeamId','removeTeams','join','length','includes','User','addAgents','getTeams','user_has_teams','name','pick','options','offset','fields','openchannelPause','ut.UserId\x20=\x20?','undefined','../../rediscache','set','getAgents','findAll','intersection'];(function(_0x5d12a4,_0x35c5cc){const _0x222cd9=function(_0x45ab0d){while(--_0x45ab0d){_0x5d12a4['push'](_0x5d12a4['shift']());}};_0x222cd9(++_0x35c5cc);}(a593_0x222c,0x153));const a593_0x45ab=function(_0x5d12a4,_0x35c5cc){_0x5d12a4=_0x5d12a4-0xa3;let _0x222cd9=a593_0x222c[_0x5d12a4];return _0x222cd9;};const a593_0x374eb2=a593_0x45ab;'use strict';const util=require(a593_0x374eb2(0xbe)),_=require('lodash'),squel=require(a593_0x374eb2(0xf6)),qs=require(a593_0x374eb2(0xa6)),logger=require(a593_0x374eb2(0xf0))(a593_0x374eb2(0xec)),{getSocket}=require(a593_0x374eb2(0xb9)),socket=getSocket(),{db}=require(a593_0x374eb2(0xcd)),{Op,QueryTypes}=require(a593_0x374eb2(0x11c));require(a593_0x374eb2(0xd6))[a593_0x374eb2(0xd7)](socket);function respondWithStatusCode(_0x4c03ab,_0x2f43cc){return _0x2f43cc=_0x2f43cc||0xcc,function(_0x7fc965){const _0x3c172e=a593_0x45ab;if(_0x7fc965)return _0x4c03ab[_0x3c172e(0x111)](_0x2f43cc);return _0x4c03ab[_0x3c172e(0xf9)](_0x2f43cc)[_0x3c172e(0x10f)]();};}function respondWithResult(_0xf4d7c2,_0xa55023){return _0xa55023=_0xa55023||0xc8,function(_0x4f034c){const _0x5b78fe=a593_0x45ab;if(_0x4f034c)return _0xf4d7c2[_0x5b78fe(0xf9)](_0xa55023)[_0x5b78fe(0xc7)](_0x4f034c);};}function respondWithFilteredResult(_0xdca247,_0x2235f1){return function(_0x33c6d3){const _0x47c64e=a593_0x45ab;if(_0x33c6d3){const _0x329069=_0x33c6d3['count'],_0x20517d=_0x2235f1[_0x47c64e(0xb4)];let _0x1038dc=_0x2235f1[_0x47c64e(0xb4)]+_0x2235f1[_0x47c64e(0x112)],_0x593b39;return _0x1038dc>=_0x329069?(_0x1038dc=_0x329069,_0x593b39=0xc8):_0x593b39=0xce,_0xdca247[_0x47c64e(0xf9)](_0x593b39),_0xdca247[_0x47c64e(0xba)](_0x47c64e(0x11b),_0x20517d+'-'+_0x1038dc+'/'+_0x329069)[_0x47c64e(0xc7)](_0x33c6d3);}return null;};}function saveUpdates(_0x2ffee5){return function(_0x4725c7){const _0x12177f=a593_0x45ab;if(_0x4725c7)return _0x4725c7[_0x12177f(0xf3)](_0x2ffee5)[_0x12177f(0xd3)](function(_0x55a7a0){return _0x55a7a0;});return null;};}function removeEntity(_0x47c9ba){return function(_0x182266){const _0x4a4202=a593_0x45ab;if(_0x182266)return _0x182266[_0x4a4202(0xc3)]()[_0x4a4202(0xd3)](function(){const _0x28c792=_0x4a4202,_0x41bcf9=_0x182266[_0x28c792(0x10d)]({'plain':!![]}),_0x2440ed=_0x28c792(0xf4);return db[_0x28c792(0xbf)][_0x28c792(0xc3)]({'where':{'type':_0x2440ed,'resourceId':_0x41bcf9['id']}})[_0x28c792(0xd3)](function(){return _0x182266;});})[_0x4a4202(0xd3)](function(){const _0xf47097=_0x4a4202;_0x47c9ba[_0xf47097(0xf9)](0xcc)[_0xf47097(0x10f)]();});};}function handleEntityNotFound(_0x157166){return function(_0x34aea2){const _0x38c9af=a593_0x45ab;return!_0x34aea2&&_0x157166[_0x38c9af(0x111)](0x194),_0x34aea2;};}function handleError(_0x92b2eb,_0x3faf5f){return _0x3faf5f=_0x3faf5f||0x1f4,function(_0x19da8d){const _0x3495a7=a593_0x45ab;logger[_0x3495a7(0xde)](_0x19da8d[_0x3495a7(0xc9)]),_0x19da8d[_0x3495a7(0xb1)]&&delete _0x19da8d[_0x3495a7(0xb1)],_0x92b2eb[_0x3495a7(0xf9)](_0x3faf5f)[_0x3495a7(0x10a)](_0x19da8d);};}exports[a593_0x374eb2(0xd1)]=function(_0x147578,_0x4fd7e3){const _0x48352c=a593_0x374eb2;let _0x1659b3={};const _0x4162c9={},_0x5a61fa={'count':0x0,'rows':[]},_0x4ed168=_[_0x48352c(0x10e)](db[_0x48352c(0x113)][_0x48352c(0xfd)],function(_0x12da9f){const _0x12e860=_0x48352c;return{'name':_0x12da9f[_0x12e860(0xfa)],'type':_0x12da9f[_0x12e860(0x10b)][_0x12e860(0xdb)]};});_0x4162c9[_0x48352c(0xdc)]=_[_0x48352c(0x10e)](_0x4ed168,_0x48352c(0xb1)),_0x4162c9[_0x48352c(0x100)]=_[_0x48352c(0xd2)](_0x147578['query']),_0x4162c9[_0x48352c(0x106)]=_['intersection'](_0x4162c9[_0x48352c(0xdc)],_0x4162c9[_0x48352c(0x100)]),_0x1659b3[_0x48352c(0xfb)]=_[_0x48352c(0xbd)](_0x4162c9[_0x48352c(0xdc)],qs[_0x48352c(0xb5)](_0x147578[_0x48352c(0x100)]['fields'])),_0x1659b3[_0x48352c(0xfb)]=_0x1659b3[_0x48352c(0xfb)]['length']?_0x1659b3['attributes']:_0x4162c9[_0x48352c(0xdc)];typeof _0x147578[_0x48352c(0x100)]['nolimit']===_0x48352c(0xb8)&&(_0x1659b3[_0x48352c(0x112)]=qs[_0x48352c(0x112)](_0x147578[_0x48352c(0x100)]['limit']),_0x1659b3[_0x48352c(0xb4)]=qs['offset'](_0x147578[_0x48352c(0x100)][_0x48352c(0xb4)]));_0x1659b3[_0x48352c(0x104)]=qs[_0x48352c(0xc6)](_0x147578[_0x48352c(0x100)][_0x48352c(0xc6)]),_0x1659b3[_0x48352c(0xa7)]=qs[_0x48352c(0x106)](_[_0x48352c(0xb2)](_0x147578[_0x48352c(0x100)],_0x4162c9[_0x48352c(0x106)]),_0x4ed168);_0x147578[_0x48352c(0x100)]['filter']&&(_0x1659b3[_0x48352c(0xa7)]=_[_0x48352c(0xc1)](_0x1659b3[_0x48352c(0xa7)],{[Op['or']]:_['map'](_0x4ed168,function(_0x450d33){const _0x509e0e=_0x48352c;if(_0x450d33[_0x509e0e(0x10b)]!==_0x509e0e(0x117)){const _0x5dccd8={};return _0x5dccd8[_0x450d33['name']]={[Op[_0x509e0e(0x114)]]:'%'+_0x147578['query']['filter']+'%'},_0x5dccd8;}})}));_0x1659b3=_[_0x48352c(0xc1)]({},_0x1659b3,_0x147578[_0x48352c(0xb3)]);const _0xc6f895={'where':_0x1659b3[_0x48352c(0xa7)]};return db[_0x48352c(0x113)][_0x48352c(0xea)](_0xc6f895)['then'](function(_0x23d1d6){const _0x52378b=_0x48352c;return _0x5a61fa[_0x52378b(0xea)]=_0x23d1d6,_0x147578[_0x52378b(0x100)]['includeAll']&&(_0x1659b3[_0x52378b(0xf7)]=[{'all':!![]}]),db['OpenchannelQueue']['findAll'](_0x1659b3);})['then'](function(_0x29501c){const _0xacdd65=_0x48352c;return _0x5a61fa[_0xacdd65(0xdd)]=_0x29501c,_0x5a61fa;})[_0x48352c(0xd3)](respondWithFilteredResult(_0x4fd7e3,_0x1659b3))[_0x48352c(0xcf)](handleError(_0x4fd7e3,null));},exports[a593_0x374eb2(0xc4)]=function(_0x56b1aa,_0x4a4303){const _0x4965e5=a593_0x374eb2;let _0x1e9a7a={'raw':!![],'where':{'id':_0x56b1aa[_0x4965e5(0x10c)]['id']}};const _0x3dbc69={};return _0x3dbc69[_0x4965e5(0xdc)]=_['keys'](db[_0x4965e5(0x113)][_0x4965e5(0xfd)]),_0x3dbc69[_0x4965e5(0x100)]=_[_0x4965e5(0xd2)](_0x56b1aa[_0x4965e5(0x100)]),_0x3dbc69[_0x4965e5(0x106)]=_[_0x4965e5(0xbd)](_0x3dbc69['model'],_0x3dbc69['query']),_0x1e9a7a[_0x4965e5(0xfb)]=_['intersection'](_0x3dbc69['model'],qs[_0x4965e5(0xb5)](_0x56b1aa['query'][_0x4965e5(0xb5)])),_0x1e9a7a[_0x4965e5(0xfb)]=_0x1e9a7a['attributes'][_0x4965e5(0xab)]?_0x1e9a7a[_0x4965e5(0xfb)]:_0x3dbc69[_0x4965e5(0xdc)],_0x56b1aa[_0x4965e5(0x100)][_0x4965e5(0xca)]&&(_0x1e9a7a['include']=[{'all':!![]}]),_0x1e9a7a=_[_0x4965e5(0xc1)]({},_0x1e9a7a,_0x56b1aa['options']),db['OpenchannelQueue']['findOne'](_0x1e9a7a)[_0x4965e5(0xd3)](handleEntityNotFound(_0x4a4303,null))[_0x4965e5(0xd3)](respondWithResult(_0x4a4303,null))[_0x4965e5(0xcf)](handleError(_0x4a4303,null));},exports[a593_0x374eb2(0x110)]=function(_0x3b52dd,_0x388752){const _0x303b6e=a593_0x374eb2;return db[_0x303b6e(0x113)][_0x303b6e(0x110)](_0x3b52dd[_0x303b6e(0xe3)],{})[_0x303b6e(0xd3)](function(_0x5ae31a){const _0x103d48=_0x303b6e,_0x554f9d=_0x3b52dd[_0x103d48(0xd5)][_0x103d48(0x10d)]({'plain':!![]});if(!_0x554f9d)throw new Error(_0x103d48(0xe5));if(_0x554f9d[_0x103d48(0xef)]===_0x103d48(0xd5)){const _0x1adeb9=_0x5ae31a[_0x103d48(0x10d)]({'plain':!![]}),_0x35ebb2=_0x103d48(0xf4);return db[_0x103d48(0xe1)]['findOne']({'where':{'name':_0x35ebb2,'userProfileId':_0x554f9d[_0x103d48(0x116)]},'raw':!![]})[_0x103d48(0xd3)](function(_0x3c871a){const _0x470fa8=_0x103d48;return _0x3c871a&&_0x3c871a[_0x470fa8(0xf5)]===0x0?db[_0x470fa8(0xbf)][_0x470fa8(0x110)]({'name':_0x1adeb9['name'],'resourceId':_0x1adeb9['id'],'type':_0x3c871a[_0x470fa8(0xb1)],'sectionId':_0x3c871a['id']},{})[_0x470fa8(0xd3)](function(){return _0x5ae31a;}):_0x5ae31a;})[_0x103d48(0xcf)](function(_0x4a55cc){const _0x3522d7=_0x103d48;logger[_0x3522d7(0xde)](_0x3522d7(0xa5),_0x4a55cc);throw _0x4a55cc;});}return _0x5ae31a;})[_0x303b6e(0xd3)](respondWithResult(_0x388752,0xc9))[_0x303b6e(0xcf)](handleError(_0x388752,null));},exports[a593_0x374eb2(0xf3)]=function(_0x1680fb,_0x12bcb9){const _0x27467e=a593_0x374eb2;return _0x1680fb[_0x27467e(0xe3)]['id']&&delete _0x1680fb[_0x27467e(0xe3)]['id'],db[_0x27467e(0x113)][_0x27467e(0x115)]({'where':{'id':_0x1680fb['params']['id']}})[_0x27467e(0xd3)](handleEntityNotFound(_0x12bcb9,null))[_0x27467e(0xd3)](saveUpdates(_0x1680fb[_0x27467e(0xe3)],null))[_0x27467e(0xd3)](respondWithResult(_0x12bcb9,null))[_0x27467e(0xcf)](handleError(_0x12bcb9,null));},exports[a593_0x374eb2(0xc3)]=function(_0x454f71,_0x1c5129){const _0x2de02a=a593_0x374eb2;return db['OpenchannelQueue'][_0x2de02a(0x115)]({'where':{'id':_0x454f71[_0x2de02a(0x10c)]['id']}})[_0x2de02a(0xd3)](handleEntityNotFound(_0x1c5129,null))[_0x2de02a(0xd3)](removeEntity(_0x1c5129,null))['catch'](handleError(_0x1c5129,null));},exports[a593_0x374eb2(0xee)]=function(_0x4a48a0,_0x165094){const _0x23b3bb=a593_0x374eb2;return db[_0x23b3bb(0x113)][_0x23b3bb(0xee)]()[_0x23b3bb(0xd3)](respondWithResult(_0x165094,null))[_0x23b3bb(0xcf)](handleError(_0x165094,null));},exports[a593_0x374eb2(0x108)]=function(_0x49d945,_0x344a0b){const _0x5d39b5=a593_0x374eb2;let _0x5c8750={'raw':!![],'where':{}};const _0x19fe16={};let _0x26f9b1;return db[_0x5d39b5(0x113)][_0x5d39b5(0x115)]({'where':{'id':_0x49d945[_0x5d39b5(0x10c)]['id']}})[_0x5d39b5(0xd3)](handleEntityNotFound(_0x344a0b,null))[_0x5d39b5(0xd3)](function(_0x1c4d5b){const _0x1add4d=_0x5d39b5;if(_0x1c4d5b)return _0x26f9b1=_0x1c4d5b[_0x1add4d(0x10d)]({'plain':!![]}),_0x19fe16[_0x1add4d(0xdc)]=_['keys'](db['UserOpenchannelQueue'][_0x1add4d(0xfd)]),_0x19fe16[_0x1add4d(0x100)]=_[_0x1add4d(0xd2)](_0x49d945[_0x1add4d(0x100)]),_0x19fe16['filters']=_[_0x1add4d(0xbd)](_0x19fe16[_0x1add4d(0xdc)],_0x19fe16[_0x1add4d(0x100)]),_0x5c8750['attributes']=_[_0x1add4d(0xbd)](_0x19fe16[_0x1add4d(0xdc)],qs[_0x1add4d(0xb5)](_0x49d945[_0x1add4d(0x100)][_0x1add4d(0xb5)])),_0x5c8750[_0x1add4d(0xfb)]=_0x5c8750[_0x1add4d(0xfb)]['length']?_0x5c8750[_0x1add4d(0xfb)]:_0x19fe16[_0x1add4d(0xdc)],typeof _0x49d945[_0x1add4d(0x100)][_0x1add4d(0xd8)]===_0x1add4d(0xb8)&&(_0x5c8750[_0x1add4d(0x112)]=qs['limit'](_0x49d945[_0x1add4d(0x100)]['limit']),_0x5c8750[_0x1add4d(0xb4)]=qs[_0x1add4d(0xb4)](_0x49d945[_0x1add4d(0x100)][_0x1add4d(0xb4)])),_0x5c8750[_0x1add4d(0x104)]=qs[_0x1add4d(0xc6)](_0x49d945['query']['sort']),_0x5c8750[_0x1add4d(0xa7)]=qs[_0x1add4d(0x106)](_['pick'](_0x49d945[_0x1add4d(0x100)],_0x19fe16[_0x1add4d(0x106)])),_0x5c8750[_0x1add4d(0xa7)][_0x1add4d(0x107)]=_0x1c4d5b['id'],_0x49d945[_0x1add4d(0x100)][_0x1add4d(0xd9)]&&(_0x5c8750[_0x1add4d(0xa7)]=_[_0x1add4d(0xc1)](_0x5c8750[_0x1add4d(0xa7)],{[Op['or']]:_[_0x1add4d(0x10e)](_0x5c8750[_0x1add4d(0xfb)],function(_0xdeff82){const _0x28f804=_0x1add4d,_0x45e9d4={};return _0x45e9d4[_0xdeff82]={[Op['like']]:'%'+_0x49d945[_0x28f804(0x100)]['filter']+'%'},_0x45e9d4;})})),_0x5c8750=_['merge']({},_0x5c8750,_0x49d945[_0x1add4d(0xb3)]),db['UserOpenchannelQueue'][_0x1add4d(0xbc)](_0x5c8750);})[_0x5d39b5(0xd3)](function(_0x125d84){const _0x22f597=_0x5d39b5;if(_0x125d84)return db['User'][_0x22f597(0xce)]({'where':{'id':_[_0x22f597(0x10e)](_0x125d84,_0x22f597(0xa4)),'role':_0x22f597(0x105)},'attributes':['id',_0x22f597(0xb1),_0x22f597(0xb6),'updatedAt','createdAt']});})[_0x5d39b5(0xd3)](function(_0xc011bb){const _0x593191=_0x5d39b5;return _0xc011bb?{'count':_0xc011bb['count'],'rows':_[_0x593191(0x10e)](_0xc011bb[_0x593191(0xdd)],function(_0x383cbe){const _0x5aec23=_0x593191;return{'membername':_0x383cbe[_0x5aec23(0xb1)],'UserId':_0x383cbe['id'],'queue_name':_0x26f9b1[_0x5aec23(0xb1)],'OpenchannelQueueId':_0x26f9b1['id'],'interface':util[_0x5aec23(0xed)]('%s/%s',_0x5aec23(0x109),_0x383cbe[_0x5aec23(0xb1)]),'penalty':0x0,'paused':_0x383cbe[_0x5aec23(0xb6)],'createdAt':_0x383cbe[_0x5aec23(0xcc)],'updatedAt':_0x383cbe['updatedAt']};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0x344a0b,_0x5c8750))[_0x5d39b5(0xcf)](handleError(_0x344a0b,null));},exports[a593_0x374eb2(0xaf)]=function(_0x450464,_0x3beb3e){const _0x1c85a6=a593_0x374eb2;let _0x4fa05e={};const _0x331e02={};let _0xacdc5f,_0x4cf0ee;return db[_0x1c85a6(0x113)][_0x1c85a6(0x115)]({'where':{'id':_0x450464[_0x1c85a6(0x10c)]['id']}})[_0x1c85a6(0xd3)](handleEntityNotFound(_0x3beb3e,null))['then'](function(_0x4afcb8){const _0x20557a=_0x1c85a6;if(_0x4afcb8)return _0xacdc5f=_0x4afcb8,_0x331e02[_0x20557a(0xdc)]=_[_0x20557a(0xd2)](db[_0x20557a(0x103)][_0x20557a(0xfd)]),_0x331e02[_0x20557a(0x100)]=_[_0x20557a(0xd2)](_0x450464[_0x20557a(0x100)]),_0x331e02[_0x20557a(0x106)]=_[_0x20557a(0xbd)](_0x331e02[_0x20557a(0xdc)],_0x331e02[_0x20557a(0x100)]),_0x4fa05e[_0x20557a(0xfb)]=_[_0x20557a(0xbd)](_0x331e02['model'],qs[_0x20557a(0xb5)](_0x450464[_0x20557a(0x100)][_0x20557a(0xb5)])),_0x4fa05e['attributes']=_0x4fa05e[_0x20557a(0xfb)][_0x20557a(0xab)]?_0x4fa05e[_0x20557a(0xfb)]:_0x331e02['model'],_0x4fa05e[_0x20557a(0x104)]=qs[_0x20557a(0xc6)](_0x450464[_0x20557a(0x100)][_0x20557a(0xc6)]),_0x4fa05e[_0x20557a(0xa7)]=qs[_0x20557a(0x106)](_[_0x20557a(0xb2)](_0x450464[_0x20557a(0x100)],_0x331e02[_0x20557a(0x106)])),_0x450464[_0x20557a(0x100)][_0x20557a(0xd9)]&&(_0x4fa05e[_0x20557a(0xa7)]=_['merge'](_0x4fa05e[_0x20557a(0xa7)],{[Op['or']]:_[_0x20557a(0x10e)](_0x4fa05e[_0x20557a(0xfb)],function(_0x17ed07){const _0x2ccf8d=_0x20557a,_0x26d1e9={};return _0x26d1e9[_0x17ed07]={[Op[_0x2ccf8d(0x114)]]:'%'+_0x450464[_0x2ccf8d(0x100)][_0x2ccf8d(0xd9)]+'%'},_0x26d1e9;})})),_0x4fa05e=_['merge']({},_0x4fa05e,_0x450464['options']),_0xacdc5f['getTeams'](_0x4fa05e);})[_0x1c85a6(0xd3)](function(_0x3df35b){const _0x2fb0a1=_0x1c85a6;if(_0x3df35b)return _0x4cf0ee=_0x3df35b['length'],typeof _0x450464[_0x2fb0a1(0x100)][_0x2fb0a1(0xd8)]===_0x2fb0a1(0xb8)&&(_0x4fa05e[_0x2fb0a1(0x112)]=qs[_0x2fb0a1(0x112)](_0x450464[_0x2fb0a1(0x100)]['limit']),_0x4fa05e[_0x2fb0a1(0xb4)]=qs['offset'](_0x450464[_0x2fb0a1(0x100)][_0x2fb0a1(0xb4)])),_0xacdc5f[_0x2fb0a1(0xaf)](_0x4fa05e);})[_0x1c85a6(0xd3)](function(_0x283949){if(_0x283949)return _0x283949?{'count':_0x4cf0ee,'rows':_0x283949}:null;})[_0x1c85a6(0xd3)](respondWithResult(_0x3beb3e,null))[_0x1c85a6(0xcf)](handleError(_0x3beb3e,null));},exports[a593_0x374eb2(0xda)]=function(_0x13331b,_0x14b5cf){const _0x1e749a=a593_0x374eb2,_0x51b684=_0x13331b[_0x1e749a(0xe3)][_0x1e749a(0xcb)];return db[_0x1e749a(0x103)]['findAll']({'where':{'id':_0x51b684},'attributes':['id'],'include':[{'model':db[_0x1e749a(0xad)],'as':_0x1e749a(0xc8),'attributes':['id',_0x1e749a(0xb1),'online',_0x1e749a(0xfe),'interface'],'raw':!![]}]})[_0x1e749a(0xd3)](function(_0x59e636){const _0x4c4a35=_0x1e749a;if(_0x59e636){const _0x1b0f6f=_['flatMap'](_0x59e636,function(_0x36171f){const _0x1743ed=a593_0x45ab,_0x105e28=_0x36171f[_0x1743ed(0x10d)]({'plain':!![]});return _0x105e28[_0x1743ed(0xc8)];});return db['OpenchannelQueue'][_0x4c4a35(0x115)]({'where':{'id':_0x13331b[_0x4c4a35(0x10c)]['id']}})['then'](function(_0x1b2bbd){const _0x420df3=_0x4c4a35;return db['sequelize'][_0x420df3(0xd0)](function(_0x58d0fd){const _0x501e4d=_0x420df3;return _0x1b2bbd[_0x501e4d(0xda)](_0x51b684,{'transaction':_0x58d0fd})[_0x501e4d(0xd3)](function(){const _0x28dbc6=_0x501e4d;return Promise['all'](_0x1b0f6f[_0x28dbc6(0x10e)](_0x4b9fd9=>{const _0x1e1f1c=_0x28dbc6;return db[_0x1e1f1c(0x119)][_0x1e1f1c(0x11a)]({'where':{'UserId':_0x4b9fd9['id'],'OpenchannelQueueId':_0x13331b[_0x1e1f1c(0x10c)]['id']},'transaction':_0x58d0fd});}));})[_0x501e4d(0xd3)](function(){const _0x1b3cfd=_0x501e4d;_0x1b0f6f[_0x1b3cfd(0xff)](function(_0x11dd87){const _0x2d5d7f=_0x1b3cfd;socket[_0x2d5d7f(0xe9)]('userOpenchannelQueue:save',{'UserId':_0x11dd87['id'],'OpenchannelQueueId':_0x1b2bbd['id']});});});});});}})['then'](respondWithStatusCode(_0x14b5cf,null))[_0x1e749a(0xcf)](handleError(_0x14b5cf,null));},exports[a593_0x374eb2(0xa9)]=function(_0x3abccb,_0x47bf54){const _0x5ee38e=a593_0x374eb2;return db[_0x5ee38e(0x103)][_0x5ee38e(0xbc)]({'where':{'id':_0x3abccb[_0x5ee38e(0x100)][_0x5ee38e(0xcb)]},'attributes':['id'],'include':[{'model':db[_0x5ee38e(0xad)],'as':'Agents','attributes':['id'],'raw':!![]}]})[_0x5ee38e(0xd3)](handleEntityNotFound(_0x47bf54,null))[_0x5ee38e(0xd3)](function(_0x27831a){const _0x383295=_0x5ee38e,_0xe6bf42=_[_0x383295(0x10e)](_0x27831a,'id');let _0x206f44=[];const _0x43b868=[],_0x204636=squel[_0x383295(0xd4)]();_0x204636[_0x383295(0xe0)](_0x383295(0xe4))[_0x383295(0xeb)](_0x383295(0xc2),'tq')[_0x383295(0xaa)](_0x383295(0xb0),'ut',_0x383295(0x102))[_0x383295(0xa7)](_0x383295(0xa3),_0x3abccb[_0x383295(0x10c)]['id']);for(let _0xd99851=0x0;_0xd99851<_0x27831a[_0x383295(0xab)];_0xd99851+=0x1){const _0x1a3646=_0x27831a[_0xd99851];for(let _0x33590c=0x0;_0x33590c<_0x1a3646[_0x383295(0xc8)][_0x383295(0xab)];_0x33590c+=0x1){const _0xca1e7=_0x1a3646['Agents'][_0x33590c],_0x18829a=_0x204636[_0x383295(0xc0)]();_0x18829a['where'](_0x383295(0xb7),_0xca1e7['id']),_0x43b868['push'](db[_0x383295(0x11c)][_0x383295(0x100)](_0x18829a[_0x383295(0xe8)](),{'type':QueryTypes[_0x383295(0xe2)]})[_0x383295(0xd3)](function(_0x500dc4){const _0x46a868=_0x383295;if(_0x500dc4[_0x46a868(0xab)]===0x1)return _0xca1e7['id'];else{const _0x3d1d56=_[_0x46a868(0x101)](_[_0x46a868(0x10e)](_0x500dc4,_0x46a868(0xa8)),function(_0x3787d3){const _0x103fec=_0x46a868;return _[_0x103fec(0xac)](_0xe6bf42,_0x3787d3);});if(_0x3d1d56)return _0xca1e7['id'];}}));}}return Promise[_0x383295(0xe7)](_0x43b868)[_0x383295(0xd3)](function(_0x580e5b){const _0x1fecfb=_0x383295;return _0x206f44=_(_0x206f44)[_0x1fecfb(0xf1)](_0x580e5b)[_0x1fecfb(0x118)]()['value'](),db[_0x1fecfb(0x113)]['findOne']({'where':{'id':_0x3abccb[_0x1fecfb(0x10c)]['id']}})[_0x1fecfb(0xd3)](function(_0x42a5c9){const _0x5999de=_0x1fecfb;return db['sequelize'][_0x5999de(0xd0)](function(_0x40ceaf){const _0x1fbd5e=_0x5999de;return _0x42a5c9['removeTeams'](_0x3abccb[_0x1fbd5e(0x100)][_0x1fbd5e(0xcb)],{'transaction':_0x40ceaf})['then'](function(){const _0x2e5c6b=_0x1fbd5e;if(!_[_0x2e5c6b(0xe6)](_0x206f44))return _0x42a5c9[_0x2e5c6b(0xfc)](_0x206f44,{'transaction':_0x40ceaf});})[_0x1fbd5e(0xd3)](function(){const _0x5ea1af=_0x1fbd5e;_0x206f44[_0x5ea1af(0xff)](function(_0x12555d){const _0x489e5f=_0x5ea1af;socket['emit'](_0x489e5f(0xf8),{'UserId':_0x12555d,'OpenchannelQueueId':_0x42a5c9['id']});});});});});});})[_0x5ee38e(0xd3)](respondWithStatusCode(_0x47bf54,null))[_0x5ee38e(0xcf)](handleError(_0x47bf54,null));},exports['addAgents']=function(_0x20488a,_0x5a839f){const _0xd53934=a593_0x374eb2;return db[_0xd53934(0x113)]['findOne']({'where':{'id':_0x20488a['params']['id']}})[_0xd53934(0xd3)](function(_0x1a8395){const _0x2437b7=_0xd53934;if(_0x1a8395)return _0x1a8395[_0x2437b7(0xae)](_0x20488a[_0x2437b7(0xe3)][_0x2437b7(0xcb)],{'through':_[_0x2437b7(0xc5)](_0x20488a['body'],['ids','id'])})[_0x2437b7(0xd3)](function(_0x3902d6){const _0xcfdf6c=_0x2437b7;for(let _0x3985af=0x0;_0x3985af<_0x20488a['body'][_0xcfdf6c(0xcb)]['length'];_0x3985af+=0x1){socket[_0xcfdf6c(0xe9)](_0xcfdf6c(0xdf),{'UserId':_0x20488a[_0xcfdf6c(0xe3)][_0xcfdf6c(0xcb)][_0x3985af],'OpenchannelQueueId':_0x20488a[_0xcfdf6c(0x10c)]['id']});}return _0x3902d6;});})[_0xd53934(0xd3)](respondWithResult(_0x5a839f,null))[_0xd53934(0xcf)](handleError(_0x5a839f,null));},exports[a593_0x374eb2(0xfc)]=function(_0xeeeff1,_0xc763d0){const _0x25598e=a593_0x374eb2;return db[_0x25598e(0x113)][_0x25598e(0x115)]({'where':{'id':_0xeeeff1[_0x25598e(0x10c)]['id']}})[_0x25598e(0xd3)](handleEntityNotFound(_0xc763d0,null))[_0x25598e(0xd3)](function(_0xc52860){const _0x147c22=_0x25598e;if(_0xc52860)return _0xc52860[_0x147c22(0xfc)](_0xeeeff1[_0x147c22(0x100)][_0x147c22(0xcb)])[_0x147c22(0xd3)](function(){const _0x691d0f=_0x147c22;if(_[_0x691d0f(0xf2)](_0xeeeff1['query'][_0x691d0f(0xcb)]))for(let _0x41ad7b=0x0;_0x41ad7b<_0xeeeff1[_0x691d0f(0x100)]['ids'][_0x691d0f(0xab)];_0x41ad7b+=0x1){socket['emit'](_0x691d0f(0xf8),{'UserId':Number(_0xeeeff1[_0x691d0f(0x100)][_0x691d0f(0xcb)][_0x41ad7b]),'OpenchannelQueueId':Number(_0xeeeff1['params']['id'])});}else socket[_0x691d0f(0xe9)](_0x691d0f(0xf8),{'UserId':Number(_0xeeeff1[_0x691d0f(0x100)][_0x691d0f(0xcb)]),'OpenchannelQueueId':Number(_0xeeeff1[_0x691d0f(0x10c)]['id'])});});})[_0x25598e(0xd3)](respondWithStatusCode(_0xc763d0,null))[_0x25598e(0xcf)](handleError(_0xc763d0,null));},exports[a593_0x374eb2(0xbb)]=function(_0x576f6e,_0xaa7016){const _0x321850=a593_0x374eb2;let _0x171da9={};const _0x15bb61={};let _0x14b21f,_0x56ef5e;return db[_0x321850(0x113)][_0x321850(0x115)]({'where':{'id':_0x576f6e[_0x321850(0x10c)]['id']}})['then'](handleEntityNotFound(_0xaa7016,null))[_0x321850(0xd3)](function(_0x1026a7){const _0x428dfb=_0x321850;if(_0x1026a7)return _0x14b21f=_0x1026a7,_0x15bb61['model']=_['keys'](db['User'][_0x428dfb(0xfd)]),_0x15bb61[_0x428dfb(0x100)]=_['keys'](_0x576f6e[_0x428dfb(0x100)]),_0x15bb61[_0x428dfb(0x106)]=_[_0x428dfb(0xbd)](_0x15bb61['model'],_0x15bb61[_0x428dfb(0x100)]),_0x171da9[_0x428dfb(0xfb)]=_[_0x428dfb(0xbd)](_0x15bb61['model'],qs[_0x428dfb(0xb5)](_0x576f6e['query']['fields'])),_0x171da9[_0x428dfb(0xfb)]=_0x171da9[_0x428dfb(0xfb)][_0x428dfb(0xab)]?_0x171da9[_0x428dfb(0xfb)]:_0x15bb61[_0x428dfb(0xdc)],_0x171da9[_0x428dfb(0x104)]=qs[_0x428dfb(0xc6)](_0x576f6e[_0x428dfb(0x100)]['sort']),_0x171da9[_0x428dfb(0xa7)]=qs[_0x428dfb(0x106)](_[_0x428dfb(0xb2)](_0x576f6e['query'],_0x15bb61[_0x428dfb(0x106)])),_0x576f6e[_0x428dfb(0x100)][_0x428dfb(0xd9)]&&(_0x171da9[_0x428dfb(0xa7)]=_[_0x428dfb(0xc1)](_0x171da9[_0x428dfb(0xa7)],{[Op['or']]:_[_0x428dfb(0x10e)](_0x171da9[_0x428dfb(0xfb)],function(_0x5d21c5){const _0x415f8c=_0x428dfb,_0x16eb85={};return _0x16eb85[_0x5d21c5]={[Op[_0x415f8c(0x114)]]:'%'+_0x576f6e[_0x415f8c(0x100)]['filter']+'%'},_0x16eb85;})})),_0x171da9=_[_0x428dfb(0xc1)]({},_0x171da9,_0x576f6e[_0x428dfb(0xb3)]),_0x14b21f[_0x428dfb(0xbb)](_0x171da9);})[_0x321850(0xd3)](function(_0x510aea){const _0x1b3a3f=_0x321850;if(_0x510aea)return _0x56ef5e=_0x510aea[_0x1b3a3f(0xab)],typeof _0x576f6e[_0x1b3a3f(0x100)][_0x1b3a3f(0xd8)]===_0x1b3a3f(0xb8)&&(_0x171da9[_0x1b3a3f(0x112)]=qs[_0x1b3a3f(0x112)](_0x576f6e[_0x1b3a3f(0x100)]['limit']),_0x171da9[_0x1b3a3f(0xb4)]=qs['offset'](_0x576f6e[_0x1b3a3f(0x100)][_0x1b3a3f(0xb4)])),_0x14b21f[_0x1b3a3f(0xbb)](_0x171da9);})[_0x321850(0xd3)](function(_0x4c78dc){if(_0x4c78dc)return _0x4c78dc?{'count':_0x56ef5e,'rows':_0x4c78dc}:null;})[_0x321850(0xd3)](respondWithResult(_0xaa7016,null))[_0x321850(0xcf)](handleError(_0xaa7016,null));}; \ No newline at end of file +const a593_0x172c=['filter','describe','removeTeams','ut.UserId\x20=\x20?','fieldName','isArray','length','offset','toString','util','includeAll','rawAttributes','select','ids','type','where','body','rows','update','userProfileId','intersection','model','online','set','value','interface','SIP','UserOpenchannelQueue','like','then','OpenchannelQueue','createdAt','user_has_teams','user','TeamId','User','OpenchannelQueues','Team','index','stack','show','Content-Range','findOrCreate','autoAssociation','Unable\x20to\x20retrieve\x20the\x20current\x20user','emit','Agents','error','field','json','tq.TeamId','role','sendStatus','voicePause','findOne','../../config/logger','findAll','name','join','create','query','limit','UserProfileResource','order','addAgents','every','union','options','undefined','fields','filters','attributes','catch','includes','sequelize','keys','destroy','compact','sort','squel','../../components/parsers/qs','api','userOpenchannelQueue:save','count','updatedAt','push','../../rediscache','get','pick','lodash','merge','map','findAndCountAll','key','getTeams','agent','team_has_openchannel_queues','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','all','addTeams','isEmpty','openchannelPause','removeAgents','transaction','nolimit','include','forEach','end','params','from','./openchannelQueue.socket','status','userOpenchannelQueue:remove'];(function(_0x1d5932,_0x4c92b8){const _0x172cdf=function(_0x2882c3){while(--_0x2882c3){_0x1d5932['push'](_0x1d5932['shift']());}};_0x172cdf(++_0x4c92b8);}(a593_0x172c,0x184));const a593_0x2882=function(_0x1d5932,_0x4c92b8){_0x1d5932=_0x1d5932-0x170;let _0x172cdf=a593_0x172c[_0x1d5932];return _0x172cdf;};const a593_0x469a72=a593_0x2882;'use strict';const util=require(a593_0x469a72(0x1b9)),_=require(a593_0x469a72(0x198)),squel=require(a593_0x469a72(0x18e)),qs=require(a593_0x469a72(0x18f)),logger=require(a593_0x469a72(0x176))(a593_0x469a72(0x190)),{getSocket}=require(a593_0x469a72(0x195)),socket=getSocket(),{db}=require('../../mysqldb'),{Op,QueryTypes}=require('sequelize');require(a593_0x469a72(0x1ad))['register'](socket);function respondWithStatusCode(_0x4730f2,_0x5abe3f){return _0x5abe3f=_0x5abe3f||0xcc,function(_0x4ee765){const _0xb0ba66=a593_0x2882;if(_0x4ee765)return _0x4730f2[_0xb0ba66(0x173)](_0x5abe3f);return _0x4730f2[_0xb0ba66(0x1ae)](_0x5abe3f)[_0xb0ba66(0x1aa)]();};}function respondWithResult(_0x1d4bad,_0x295b05){return _0x295b05=_0x295b05||0xc8,function(_0x291a22){const _0x2570c1=a593_0x2882;if(_0x291a22)return _0x1d4bad[_0x2570c1(0x1ae)](_0x295b05)[_0x2570c1(0x170)](_0x291a22);};}function respondWithFilteredResult(_0x19619c,_0xe8de38){return function(_0x531a39){const _0x4a6c53=a593_0x2882;if(_0x531a39){const _0x5f1c71=_0x531a39[_0x4a6c53(0x192)],_0xb889ee=_0xe8de38[_0x4a6c53(0x1b7)];let _0xb173da=_0xe8de38[_0x4a6c53(0x1b7)]+_0xe8de38[_0x4a6c53(0x17c)],_0x2a8894;return _0xb173da>=_0x5f1c71?(_0xb173da=_0x5f1c71,_0x2a8894=0xc8):_0x2a8894=0xce,_0x19619c[_0x4a6c53(0x1ae)](_0x2a8894),_0x19619c[_0x4a6c53(0x1c7)](_0x4a6c53(0x1d9),_0xb889ee+'-'+_0xb173da+'/'+_0x5f1c71)[_0x4a6c53(0x170)](_0x531a39);}return null;};}function saveUpdates(_0x3d2a01){return function(_0x58111d){const _0x211752=a593_0x2882;if(_0x58111d)return _0x58111d[_0x211752(0x1c2)](_0x3d2a01)['then'](function(_0x14f67d){return _0x14f67d;});return null;};}function removeEntity(_0x412ce2){return function(_0x81be68){const _0xfb58d3=a593_0x2882;if(_0x81be68)return _0x81be68[_0xfb58d3(0x18b)]()[_0xfb58d3(0x1cd)](function(){const _0x2605a4=_0xfb58d3,_0x29ee5f=_0x81be68[_0x2605a4(0x196)]({'plain':!![]}),_0x4480b6=_0x2605a4(0x1d4);return db[_0x2605a4(0x17d)][_0x2605a4(0x18b)]({'where':{'type':_0x4480b6,'resourceId':_0x29ee5f['id']}})['then'](function(){return _0x81be68;});})[_0xfb58d3(0x1cd)](function(){const _0x1fefc7=_0xfb58d3;_0x412ce2[_0x1fefc7(0x1ae)](0xcc)[_0x1fefc7(0x1aa)]();});};}function handleEntityNotFound(_0x36c0fd){return function(_0x407c86){return!_0x407c86&&_0x36c0fd['sendStatus'](0x194),_0x407c86;};}function handleError(_0x56691d,_0x237187){return _0x237187=_0x237187||0x1f4,function(_0x5e2fe9){const _0x26a221=a593_0x2882;logger[_0x26a221(0x1df)](_0x5e2fe9[_0x26a221(0x1d7)]),_0x5e2fe9[_0x26a221(0x178)]&&delete _0x5e2fe9['name'],_0x56691d[_0x26a221(0x1ae)](_0x237187)['send'](_0x5e2fe9);};}exports[a593_0x469a72(0x1d6)]=function(_0x46099c,_0x157281){const _0x6907ee=a593_0x469a72;let _0x4befac={};const _0x5721a4={},_0x4e7cd1={'count':0x0,'rows':[]},_0x18f075=_[_0x6907ee(0x19a)](db[_0x6907ee(0x1ce)][_0x6907ee(0x1bb)],function(_0x2ef6ee){const _0x13021c=_0x6907ee;return{'name':_0x2ef6ee[_0x13021c(0x1b4)],'type':_0x2ef6ee[_0x13021c(0x1be)][_0x13021c(0x19c)]};});_0x5721a4[_0x6907ee(0x1c5)]=_[_0x6907ee(0x19a)](_0x18f075,_0x6907ee(0x178)),_0x5721a4[_0x6907ee(0x17b)]=_['keys'](_0x46099c[_0x6907ee(0x17b)]),_0x5721a4['filters']=_[_0x6907ee(0x1c4)](_0x5721a4[_0x6907ee(0x1c5)],_0x5721a4[_0x6907ee(0x17b)]),_0x4befac[_0x6907ee(0x186)]=_[_0x6907ee(0x1c4)](_0x5721a4[_0x6907ee(0x1c5)],qs[_0x6907ee(0x184)](_0x46099c[_0x6907ee(0x17b)]['fields'])),_0x4befac[_0x6907ee(0x186)]=_0x4befac['attributes'][_0x6907ee(0x1b6)]?_0x4befac['attributes']:_0x5721a4[_0x6907ee(0x1c5)];typeof _0x46099c[_0x6907ee(0x17b)][_0x6907ee(0x1a7)]==='undefined'&&(_0x4befac[_0x6907ee(0x17c)]=qs['limit'](_0x46099c['query'][_0x6907ee(0x17c)]),_0x4befac[_0x6907ee(0x1b7)]=qs[_0x6907ee(0x1b7)](_0x46099c[_0x6907ee(0x17b)][_0x6907ee(0x1b7)]));_0x4befac[_0x6907ee(0x17e)]=qs[_0x6907ee(0x18d)](_0x46099c['query'][_0x6907ee(0x18d)]),_0x4befac['where']=qs[_0x6907ee(0x185)](_[_0x6907ee(0x197)](_0x46099c['query'],_0x5721a4[_0x6907ee(0x185)]),_0x18f075);_0x46099c[_0x6907ee(0x17b)]['filter']&&(_0x4befac[_0x6907ee(0x1bf)]=_[_0x6907ee(0x199)](_0x4befac[_0x6907ee(0x1bf)],{[Op['or']]:_[_0x6907ee(0x19a)](_0x18f075,function(_0x328a13){const _0x2fe1ff=_0x6907ee;if(_0x328a13[_0x2fe1ff(0x1be)]!=='VIRTUAL'){const _0x2d949a={};return _0x2d949a[_0x328a13[_0x2fe1ff(0x178)]]={[Op[_0x2fe1ff(0x1cc)]]:'%'+_0x46099c[_0x2fe1ff(0x17b)][_0x2fe1ff(0x1b0)]+'%'},_0x2d949a;}})}));_0x4befac=_[_0x6907ee(0x199)]({},_0x4befac,_0x46099c[_0x6907ee(0x182)]);const _0x59e760={'where':_0x4befac[_0x6907ee(0x1bf)]};return db[_0x6907ee(0x1ce)][_0x6907ee(0x192)](_0x59e760)['then'](function(_0x36c9a7){const _0x56e584=_0x6907ee;return _0x4e7cd1[_0x56e584(0x192)]=_0x36c9a7,_0x46099c[_0x56e584(0x17b)][_0x56e584(0x1ba)]&&(_0x4befac['include']=[{'all':!![]}]),db[_0x56e584(0x1ce)][_0x56e584(0x177)](_0x4befac);})[_0x6907ee(0x1cd)](function(_0x1f50d2){return _0x4e7cd1['rows']=_0x1f50d2,_0x4e7cd1;})[_0x6907ee(0x1cd)](respondWithFilteredResult(_0x157281,_0x4befac))[_0x6907ee(0x187)](handleError(_0x157281,null));},exports[a593_0x469a72(0x1d8)]=function(_0x44209d,_0x1d7df9){const _0x1a3c4a=a593_0x469a72;let _0x4cabdf={'raw':!![],'where':{'id':_0x44209d[_0x1a3c4a(0x1ab)]['id']}};const _0x2d7015={};return _0x2d7015[_0x1a3c4a(0x1c5)]=_[_0x1a3c4a(0x18a)](db[_0x1a3c4a(0x1ce)][_0x1a3c4a(0x1bb)]),_0x2d7015[_0x1a3c4a(0x17b)]=_[_0x1a3c4a(0x18a)](_0x44209d['query']),_0x2d7015['filters']=_[_0x1a3c4a(0x1c4)](_0x2d7015[_0x1a3c4a(0x1c5)],_0x2d7015[_0x1a3c4a(0x17b)]),_0x4cabdf[_0x1a3c4a(0x186)]=_[_0x1a3c4a(0x1c4)](_0x2d7015[_0x1a3c4a(0x1c5)],qs[_0x1a3c4a(0x184)](_0x44209d[_0x1a3c4a(0x17b)][_0x1a3c4a(0x184)])),_0x4cabdf['attributes']=_0x4cabdf[_0x1a3c4a(0x186)][_0x1a3c4a(0x1b6)]?_0x4cabdf[_0x1a3c4a(0x186)]:_0x2d7015[_0x1a3c4a(0x1c5)],_0x44209d[_0x1a3c4a(0x17b)][_0x1a3c4a(0x1ba)]&&(_0x4cabdf[_0x1a3c4a(0x1a8)]=[{'all':!![]}]),_0x4cabdf=_[_0x1a3c4a(0x199)]({},_0x4cabdf,_0x44209d[_0x1a3c4a(0x182)]),db[_0x1a3c4a(0x1ce)][_0x1a3c4a(0x175)](_0x4cabdf)[_0x1a3c4a(0x1cd)](handleEntityNotFound(_0x1d7df9,null))[_0x1a3c4a(0x1cd)](respondWithResult(_0x1d7df9,null))[_0x1a3c4a(0x187)](handleError(_0x1d7df9,null));},exports[a593_0x469a72(0x17a)]=function(_0xb9751,_0x5daa7b){const _0x400c31=a593_0x469a72;return db['OpenchannelQueue'][_0x400c31(0x17a)](_0xb9751[_0x400c31(0x1c0)],{})[_0x400c31(0x1cd)](function(_0x3d5bec){const _0x2ea356=_0x400c31,_0x586c4c=_0xb9751[_0x2ea356(0x1d1)][_0x2ea356(0x196)]({'plain':!![]});if(!_0x586c4c)throw new Error(_0x2ea356(0x1dc));if(_0x586c4c[_0x2ea356(0x172)]===_0x2ea356(0x1d1)){const _0x7ddf00=_0x3d5bec[_0x2ea356(0x196)]({'plain':!![]}),_0x4912d2=_0x2ea356(0x1d4);return db['UserProfileSection'][_0x2ea356(0x175)]({'where':{'name':_0x4912d2,'userProfileId':_0x586c4c[_0x2ea356(0x1c3)]},'raw':!![]})[_0x2ea356(0x1cd)](function(_0x16d2f6){const _0x2dd0e2=_0x2ea356;return _0x16d2f6&&_0x16d2f6[_0x2dd0e2(0x1db)]===0x0?db[_0x2dd0e2(0x17d)][_0x2dd0e2(0x17a)]({'name':_0x7ddf00[_0x2dd0e2(0x178)],'resourceId':_0x7ddf00['id'],'type':_0x16d2f6[_0x2dd0e2(0x178)],'sectionId':_0x16d2f6['id']},{})[_0x2dd0e2(0x1cd)](function(){return _0x3d5bec;}):_0x3d5bec;})['catch'](function(_0x28c502){const _0x41ed8b=_0x2ea356;logger[_0x41ed8b(0x1df)](_0x41ed8b(0x1a0),_0x28c502);throw _0x28c502;});}return _0x3d5bec;})[_0x400c31(0x1cd)](respondWithResult(_0x5daa7b,0xc9))[_0x400c31(0x187)](handleError(_0x5daa7b,null));},exports[a593_0x469a72(0x1c2)]=function(_0x18858d,_0x3d20a6){const _0x5e3aa4=a593_0x469a72;return _0x18858d['body']['id']&&delete _0x18858d['body']['id'],db[_0x5e3aa4(0x1ce)][_0x5e3aa4(0x175)]({'where':{'id':_0x18858d[_0x5e3aa4(0x1ab)]['id']}})[_0x5e3aa4(0x1cd)](handleEntityNotFound(_0x3d20a6,null))[_0x5e3aa4(0x1cd)](saveUpdates(_0x18858d['body'],null))[_0x5e3aa4(0x1cd)](respondWithResult(_0x3d20a6,null))[_0x5e3aa4(0x187)](handleError(_0x3d20a6,null));},exports[a593_0x469a72(0x18b)]=function(_0x54d09e,_0xc2a0f3){const _0x44dd03=a593_0x469a72;return db[_0x44dd03(0x1ce)][_0x44dd03(0x175)]({'where':{'id':_0x54d09e[_0x44dd03(0x1ab)]['id']}})[_0x44dd03(0x1cd)](handleEntityNotFound(_0xc2a0f3,null))[_0x44dd03(0x1cd)](removeEntity(_0xc2a0f3,null))[_0x44dd03(0x187)](handleError(_0xc2a0f3,null));},exports[a593_0x469a72(0x1b1)]=function(_0x2b89bb,_0x455e77){const _0x5362cf=a593_0x469a72;return db['OpenchannelQueue'][_0x5362cf(0x1b1)]()[_0x5362cf(0x1cd)](respondWithResult(_0x455e77,null))[_0x5362cf(0x187)](handleError(_0x455e77,null));},exports['getMembers']=function(_0x166fa2,_0x491777){const _0x283026=a593_0x469a72;let _0x258a42={'raw':!![],'where':{}};const _0x39b909={};let _0x3e0a6f;return db[_0x283026(0x1ce)]['findOne']({'where':{'id':_0x166fa2['params']['id']}})[_0x283026(0x1cd)](handleEntityNotFound(_0x491777,null))[_0x283026(0x1cd)](function(_0x2f3a8b){const _0x5c4c64=_0x283026;if(_0x2f3a8b)return _0x3e0a6f=_0x2f3a8b['get']({'plain':!![]}),_0x39b909[_0x5c4c64(0x1c5)]=_['keys'](db[_0x5c4c64(0x1cb)][_0x5c4c64(0x1bb)]),_0x39b909[_0x5c4c64(0x17b)]=_[_0x5c4c64(0x18a)](_0x166fa2[_0x5c4c64(0x17b)]),_0x39b909['filters']=_['intersection'](_0x39b909['model'],_0x39b909[_0x5c4c64(0x17b)]),_0x258a42[_0x5c4c64(0x186)]=_[_0x5c4c64(0x1c4)](_0x39b909[_0x5c4c64(0x1c5)],qs[_0x5c4c64(0x184)](_0x166fa2['query']['fields'])),_0x258a42[_0x5c4c64(0x186)]=_0x258a42[_0x5c4c64(0x186)][_0x5c4c64(0x1b6)]?_0x258a42[_0x5c4c64(0x186)]:_0x39b909['model'],typeof _0x166fa2['query'][_0x5c4c64(0x1a7)]==='undefined'&&(_0x258a42[_0x5c4c64(0x17c)]=qs['limit'](_0x166fa2[_0x5c4c64(0x17b)][_0x5c4c64(0x17c)]),_0x258a42[_0x5c4c64(0x1b7)]=qs[_0x5c4c64(0x1b7)](_0x166fa2['query'][_0x5c4c64(0x1b7)])),_0x258a42[_0x5c4c64(0x17e)]=qs['sort'](_0x166fa2[_0x5c4c64(0x17b)][_0x5c4c64(0x18d)]),_0x258a42[_0x5c4c64(0x1bf)]=qs[_0x5c4c64(0x185)](_[_0x5c4c64(0x197)](_0x166fa2[_0x5c4c64(0x17b)],_0x39b909[_0x5c4c64(0x185)])),_0x258a42[_0x5c4c64(0x1bf)]['OpenchannelQueueId']=_0x2f3a8b['id'],_0x166fa2[_0x5c4c64(0x17b)][_0x5c4c64(0x1b0)]&&(_0x258a42[_0x5c4c64(0x1bf)]=_[_0x5c4c64(0x199)](_0x258a42[_0x5c4c64(0x1bf)],{[Op['or']]:_[_0x5c4c64(0x19a)](_0x258a42[_0x5c4c64(0x186)],function(_0x141363){const _0x39a270=_0x5c4c64,_0x3b5159={};return _0x3b5159[_0x141363]={[Op[_0x39a270(0x1cc)]]:'%'+_0x166fa2[_0x39a270(0x17b)][_0x39a270(0x1b0)]+'%'},_0x3b5159;})})),_0x258a42=_[_0x5c4c64(0x199)]({},_0x258a42,_0x166fa2['options']),db[_0x5c4c64(0x1cb)][_0x5c4c64(0x177)](_0x258a42);})[_0x283026(0x1cd)](function(_0x4d5a97){const _0x23470e=_0x283026;if(_0x4d5a97)return db['User'][_0x23470e(0x19b)]({'where':{'id':_[_0x23470e(0x19a)](_0x4d5a97,'UserId'),'role':_0x23470e(0x19e)},'attributes':['id',_0x23470e(0x178),_0x23470e(0x1a4),_0x23470e(0x193),'createdAt']});})[_0x283026(0x1cd)](function(_0x284117){const _0x377544=_0x283026;return _0x284117?{'count':_0x284117[_0x377544(0x192)],'rows':_['map'](_0x284117[_0x377544(0x1c1)],function(_0x4a0e56){const _0x5d62b1=_0x377544;return{'membername':_0x4a0e56[_0x5d62b1(0x178)],'UserId':_0x4a0e56['id'],'queue_name':_0x3e0a6f['name'],'OpenchannelQueueId':_0x3e0a6f['id'],'interface':util['format']('%s/%s',_0x5d62b1(0x1ca),_0x4a0e56[_0x5d62b1(0x178)]),'penalty':0x0,'paused':_0x4a0e56[_0x5d62b1(0x1a4)],'createdAt':_0x4a0e56[_0x5d62b1(0x1cf)],'updatedAt':_0x4a0e56[_0x5d62b1(0x193)]};})}:{'count':0x0,'rows':[]};})[_0x283026(0x1cd)](respondWithFilteredResult(_0x491777,_0x258a42))[_0x283026(0x187)](handleError(_0x491777,null));},exports[a593_0x469a72(0x19d)]=function(_0x502522,_0x12cbce){const _0x33b906=a593_0x469a72;let _0x2187b3={};const _0x16f224={};let _0x45b350,_0x976bfe;return db[_0x33b906(0x1ce)][_0x33b906(0x175)]({'where':{'id':_0x502522['params']['id']}})[_0x33b906(0x1cd)](handleEntityNotFound(_0x12cbce,null))[_0x33b906(0x1cd)](function(_0x1fc2f4){const _0x23cfd6=_0x33b906;if(_0x1fc2f4)return _0x45b350=_0x1fc2f4,_0x16f224[_0x23cfd6(0x1c5)]=_[_0x23cfd6(0x18a)](db['Team']['rawAttributes']),_0x16f224[_0x23cfd6(0x17b)]=_[_0x23cfd6(0x18a)](_0x502522[_0x23cfd6(0x17b)]),_0x16f224[_0x23cfd6(0x185)]=_[_0x23cfd6(0x1c4)](_0x16f224['model'],_0x16f224[_0x23cfd6(0x17b)]),_0x2187b3[_0x23cfd6(0x186)]=_['intersection'](_0x16f224[_0x23cfd6(0x1c5)],qs['fields'](_0x502522[_0x23cfd6(0x17b)]['fields'])),_0x2187b3['attributes']=_0x2187b3[_0x23cfd6(0x186)]['length']?_0x2187b3[_0x23cfd6(0x186)]:_0x16f224[_0x23cfd6(0x1c5)],_0x2187b3['order']=qs[_0x23cfd6(0x18d)](_0x502522[_0x23cfd6(0x17b)]['sort']),_0x2187b3[_0x23cfd6(0x1bf)]=qs[_0x23cfd6(0x185)](_[_0x23cfd6(0x197)](_0x502522[_0x23cfd6(0x17b)],_0x16f224[_0x23cfd6(0x185)])),_0x502522['query']['filter']&&(_0x2187b3[_0x23cfd6(0x1bf)]=_[_0x23cfd6(0x199)](_0x2187b3[_0x23cfd6(0x1bf)],{[Op['or']]:_[_0x23cfd6(0x19a)](_0x2187b3[_0x23cfd6(0x186)],function(_0xc0f007){const _0x45ff7a=_0x23cfd6,_0x104878={};return _0x104878[_0xc0f007]={[Op['like']]:'%'+_0x502522['query'][_0x45ff7a(0x1b0)]+'%'},_0x104878;})})),_0x2187b3=_[_0x23cfd6(0x199)]({},_0x2187b3,_0x502522[_0x23cfd6(0x182)]),_0x45b350[_0x23cfd6(0x19d)](_0x2187b3);})[_0x33b906(0x1cd)](function(_0x5c9668){const _0x31d36f=_0x33b906;if(_0x5c9668)return _0x976bfe=_0x5c9668[_0x31d36f(0x1b6)],typeof _0x502522[_0x31d36f(0x17b)][_0x31d36f(0x1a7)]===_0x31d36f(0x183)&&(_0x2187b3[_0x31d36f(0x17c)]=qs[_0x31d36f(0x17c)](_0x502522['query'][_0x31d36f(0x17c)]),_0x2187b3[_0x31d36f(0x1b7)]=qs[_0x31d36f(0x1b7)](_0x502522['query'][_0x31d36f(0x1b7)])),_0x45b350[_0x31d36f(0x19d)](_0x2187b3);})[_0x33b906(0x1cd)](function(_0xe92c0f){if(_0xe92c0f)return _0xe92c0f?{'count':_0x976bfe,'rows':_0xe92c0f}:null;})['then'](respondWithResult(_0x12cbce,null))[_0x33b906(0x187)](handleError(_0x12cbce,null));},exports[a593_0x469a72(0x1a2)]=function(_0x5995df,_0x22bdd0){const _0x4fae7b=a593_0x469a72,_0x343564=_0x5995df[_0x4fae7b(0x1c0)]['ids'];return db[_0x4fae7b(0x1d5)][_0x4fae7b(0x177)]({'where':{'id':_0x343564},'attributes':['id'],'include':[{'model':db[_0x4fae7b(0x1d3)],'as':_0x4fae7b(0x1de),'attributes':['id','name',_0x4fae7b(0x1c6),_0x4fae7b(0x174),_0x4fae7b(0x1c9)],'raw':!![]}]})['then'](function(_0x11a31c){const _0x5a4784=_0x4fae7b;if(_0x11a31c){const _0x31ae37=_['flatMap'](_0x11a31c,function(_0x1f4765){const _0x4b1aff=a593_0x2882,_0x496dd2=_0x1f4765[_0x4b1aff(0x196)]({'plain':!![]});return _0x496dd2[_0x4b1aff(0x1de)];});return db['OpenchannelQueue'][_0x5a4784(0x175)]({'where':{'id':_0x5995df[_0x5a4784(0x1ab)]['id']}})[_0x5a4784(0x1cd)](function(_0x5bc6cd){const _0x435ad2=_0x5a4784;return db[_0x435ad2(0x189)][_0x435ad2(0x1a6)](function(_0x4f7891){const _0x2ca4fd=_0x435ad2;return _0x5bc6cd['addTeams'](_0x343564,{'transaction':_0x4f7891})[_0x2ca4fd(0x1cd)](function(){const _0xf25c84=_0x2ca4fd;return Promise[_0xf25c84(0x1a1)](_0x31ae37[_0xf25c84(0x19a)](_0x30d5ac=>{const _0x55a0e2=_0xf25c84;return db[_0x55a0e2(0x1cb)][_0x55a0e2(0x1da)]({'where':{'UserId':_0x30d5ac['id'],'OpenchannelQueueId':_0x5995df['params']['id']},'transaction':_0x4f7891});}));})[_0x2ca4fd(0x1cd)](function(){const _0x55abd3=_0x2ca4fd;_0x31ae37[_0x55abd3(0x1a9)](function(_0x1e7897){const _0x1c5d40=_0x55abd3;socket[_0x1c5d40(0x1dd)](_0x1c5d40(0x191),{'UserId':_0x1e7897['id'],'OpenchannelQueueId':_0x5bc6cd['id']});});});});});}})[_0x4fae7b(0x1cd)](respondWithStatusCode(_0x22bdd0,null))[_0x4fae7b(0x187)](handleError(_0x22bdd0,null));},exports[a593_0x469a72(0x1b2)]=function(_0x4bf567,_0x359374){const _0x34473b=a593_0x469a72;return db[_0x34473b(0x1d5)][_0x34473b(0x177)]({'where':{'id':_0x4bf567[_0x34473b(0x17b)]['ids']},'attributes':['id'],'include':[{'model':db['User'],'as':_0x34473b(0x1de),'attributes':['id'],'raw':!![]}]})[_0x34473b(0x1cd)](handleEntityNotFound(_0x359374,null))[_0x34473b(0x1cd)](function(_0x3bfa1e){const _0x385508=_0x34473b,_0x463075=_[_0x385508(0x19a)](_0x3bfa1e,'id');let _0x49e4b7=[];const _0x2744ed=[],_0x197fa6=squel[_0x385508(0x1bc)]();_0x197fa6[_0x385508(0x1e0)](_0x385508(0x171))[_0x385508(0x1ac)](_0x385508(0x19f),'tq')[_0x385508(0x179)](_0x385508(0x1d0),'ut','ut.TeamId\x20=\x20tq.TeamId')['where']('OpenchannelQueueId\x20=\x20?',_0x4bf567[_0x385508(0x1ab)]['id']);for(let _0x1116bb=0x0;_0x1116bb<_0x3bfa1e[_0x385508(0x1b6)];_0x1116bb+=0x1){const _0x20c9d8=_0x3bfa1e[_0x1116bb];for(let _0x2c068b=0x0;_0x2c068b<_0x20c9d8[_0x385508(0x1de)]['length'];_0x2c068b+=0x1){const _0x1e0aeb=_0x20c9d8[_0x385508(0x1de)][_0x2c068b],_0x32830f=_0x197fa6['clone']();_0x32830f[_0x385508(0x1bf)](_0x385508(0x1b3),_0x1e0aeb['id']),_0x2744ed[_0x385508(0x194)](db['sequelize'][_0x385508(0x17b)](_0x32830f[_0x385508(0x1b8)](),{'type':QueryTypes['SELECT']})['then'](function(_0x1c253f){const _0x37bfc4=_0x385508;if(_0x1c253f[_0x37bfc4(0x1b6)]===0x1)return _0x1e0aeb['id'];else{const _0x225d69=_[_0x37bfc4(0x180)](_[_0x37bfc4(0x19a)](_0x1c253f,_0x37bfc4(0x1d2)),function(_0x9c47e5){const _0x31b112=_0x37bfc4;return _[_0x31b112(0x188)](_0x463075,_0x9c47e5);});if(_0x225d69)return _0x1e0aeb['id'];}}));}}return Promise[_0x385508(0x1a1)](_0x2744ed)[_0x385508(0x1cd)](function(_0x3c8eda){const _0x3d3810=_0x385508;return _0x49e4b7=_(_0x49e4b7)[_0x3d3810(0x181)](_0x3c8eda)[_0x3d3810(0x18c)]()[_0x3d3810(0x1c8)](),db[_0x3d3810(0x1ce)][_0x3d3810(0x175)]({'where':{'id':_0x4bf567[_0x3d3810(0x1ab)]['id']}})[_0x3d3810(0x1cd)](function(_0x2563b8){const _0x1d4edf=_0x3d3810;return db['sequelize'][_0x1d4edf(0x1a6)](function(_0x24d7a1){const _0x479a88=_0x1d4edf;return _0x2563b8['removeTeams'](_0x4bf567[_0x479a88(0x17b)]['ids'],{'transaction':_0x24d7a1})[_0x479a88(0x1cd)](function(){const _0xb6fcc1=_0x479a88;if(!_[_0xb6fcc1(0x1a3)](_0x49e4b7))return _0x2563b8['removeAgents'](_0x49e4b7,{'transaction':_0x24d7a1});})[_0x479a88(0x1cd)](function(){_0x49e4b7['forEach'](function(_0x1ac29a){const _0x272965=a593_0x2882;socket[_0x272965(0x1dd)](_0x272965(0x1af),{'UserId':_0x1ac29a,'OpenchannelQueueId':_0x2563b8['id']});});});});});});})[_0x34473b(0x1cd)](respondWithStatusCode(_0x359374,null))[_0x34473b(0x187)](handleError(_0x359374,null));},exports[a593_0x469a72(0x17f)]=function(_0x8daf22,_0x8f476){const _0x440195=a593_0x469a72;return db[_0x440195(0x1ce)][_0x440195(0x175)]({'where':{'id':_0x8daf22[_0x440195(0x1ab)]['id']}})['then'](function(_0x11bbee){const _0x2cc40a=_0x440195;if(_0x11bbee)return _0x11bbee[_0x2cc40a(0x17f)](_0x8daf22[_0x2cc40a(0x1c0)][_0x2cc40a(0x1bd)],{'through':_['omit'](_0x8daf22[_0x2cc40a(0x1c0)],['ids','id'])})[_0x2cc40a(0x1cd)](function(_0x101526){const _0x50bf78=_0x2cc40a;for(let _0x4570c2=0x0;_0x4570c2<_0x8daf22[_0x50bf78(0x1c0)][_0x50bf78(0x1bd)][_0x50bf78(0x1b6)];_0x4570c2+=0x1){socket['emit'](_0x50bf78(0x191),{'UserId':_0x8daf22['body'][_0x50bf78(0x1bd)][_0x4570c2],'OpenchannelQueueId':_0x8daf22[_0x50bf78(0x1ab)]['id']});}return _0x101526;});})['then'](respondWithResult(_0x8f476,null))[_0x440195(0x187)](handleError(_0x8f476,null));},exports[a593_0x469a72(0x1a5)]=function(_0x2c9495,_0x2edfeb){const _0x3d0073=a593_0x469a72;return db['OpenchannelQueue'][_0x3d0073(0x175)]({'where':{'id':_0x2c9495[_0x3d0073(0x1ab)]['id']}})[_0x3d0073(0x1cd)](handleEntityNotFound(_0x2edfeb,null))[_0x3d0073(0x1cd)](function(_0x4f4835){const _0xd526c=_0x3d0073;if(_0x4f4835)return _0x4f4835[_0xd526c(0x1a5)](_0x2c9495[_0xd526c(0x17b)]['ids'])[_0xd526c(0x1cd)](function(){const _0x5d6994=_0xd526c;if(_[_0x5d6994(0x1b5)](_0x2c9495[_0x5d6994(0x17b)][_0x5d6994(0x1bd)]))for(let _0x4cdb98=0x0;_0x4cdb98<_0x2c9495[_0x5d6994(0x17b)][_0x5d6994(0x1bd)][_0x5d6994(0x1b6)];_0x4cdb98+=0x1){socket[_0x5d6994(0x1dd)](_0x5d6994(0x1af),{'UserId':Number(_0x2c9495['query'][_0x5d6994(0x1bd)][_0x4cdb98]),'OpenchannelQueueId':Number(_0x2c9495[_0x5d6994(0x1ab)]['id'])});}else socket[_0x5d6994(0x1dd)](_0x5d6994(0x1af),{'UserId':Number(_0x2c9495[_0x5d6994(0x17b)][_0x5d6994(0x1bd)]),'OpenchannelQueueId':Number(_0x2c9495[_0x5d6994(0x1ab)]['id'])});});})[_0x3d0073(0x1cd)](respondWithStatusCode(_0x2edfeb,null))[_0x3d0073(0x187)](handleError(_0x2edfeb,null));},exports['getAgents']=function(_0x7bb5f0,_0x1b5a31){const _0xb704dc=a593_0x469a72;let _0x4a08d5={};const _0x48c909={};let _0x14f8cc,_0x2e9ebd;return db[_0xb704dc(0x1ce)][_0xb704dc(0x175)]({'where':{'id':_0x7bb5f0[_0xb704dc(0x1ab)]['id']}})[_0xb704dc(0x1cd)](handleEntityNotFound(_0x1b5a31,null))[_0xb704dc(0x1cd)](function(_0x2cc4e2){const _0x47d249=_0xb704dc;if(_0x2cc4e2)return _0x14f8cc=_0x2cc4e2,_0x48c909['model']=_[_0x47d249(0x18a)](db['User'][_0x47d249(0x1bb)]),_0x48c909[_0x47d249(0x17b)]=_['keys'](_0x7bb5f0['query']),_0x48c909['filters']=_[_0x47d249(0x1c4)](_0x48c909[_0x47d249(0x1c5)],_0x48c909[_0x47d249(0x17b)]),_0x4a08d5[_0x47d249(0x186)]=_['intersection'](_0x48c909[_0x47d249(0x1c5)],qs['fields'](_0x7bb5f0[_0x47d249(0x17b)]['fields'])),_0x4a08d5[_0x47d249(0x186)]=_0x4a08d5[_0x47d249(0x186)]['length']?_0x4a08d5['attributes']:_0x48c909[_0x47d249(0x1c5)],_0x4a08d5[_0x47d249(0x17e)]=qs[_0x47d249(0x18d)](_0x7bb5f0[_0x47d249(0x17b)][_0x47d249(0x18d)]),_0x4a08d5[_0x47d249(0x1bf)]=qs['filters'](_[_0x47d249(0x197)](_0x7bb5f0[_0x47d249(0x17b)],_0x48c909[_0x47d249(0x185)])),_0x7bb5f0['query'][_0x47d249(0x1b0)]&&(_0x4a08d5[_0x47d249(0x1bf)]=_[_0x47d249(0x199)](_0x4a08d5[_0x47d249(0x1bf)],{[Op['or']]:_[_0x47d249(0x19a)](_0x4a08d5[_0x47d249(0x186)],function(_0x46437c){const _0x185abd=_0x47d249,_0x2b96f9={};return _0x2b96f9[_0x46437c]={[Op[_0x185abd(0x1cc)]]:'%'+_0x7bb5f0[_0x185abd(0x17b)]['filter']+'%'},_0x2b96f9;})})),_0x4a08d5=_[_0x47d249(0x199)]({},_0x4a08d5,_0x7bb5f0[_0x47d249(0x182)]),_0x14f8cc['getAgents'](_0x4a08d5);})[_0xb704dc(0x1cd)](function(_0x35afca){const _0x3fd351=_0xb704dc;if(_0x35afca)return _0x2e9ebd=_0x35afca[_0x3fd351(0x1b6)],typeof _0x7bb5f0[_0x3fd351(0x17b)][_0x3fd351(0x1a7)]==='undefined'&&(_0x4a08d5[_0x3fd351(0x17c)]=qs['limit'](_0x7bb5f0[_0x3fd351(0x17b)][_0x3fd351(0x17c)]),_0x4a08d5[_0x3fd351(0x1b7)]=qs[_0x3fd351(0x1b7)](_0x7bb5f0['query'][_0x3fd351(0x1b7)])),_0x14f8cc['getAgents'](_0x4a08d5);})['then'](function(_0x335570){if(_0x335570)return _0x335570?{'count':_0x2e9ebd,'rows':_0x335570}:null;})['then'](respondWithResult(_0x1b5a31,null))['catch'](handleError(_0x1b5a31,null));}; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.events.js b/server/api/openchannelQueue/openchannelQueue.events.js index c15ee1d..54148cb 100644 --- a/server/api/openchannelQueue/openchannelQueue.events.js +++ b/server/api/openchannelQueue/openchannelQueue.events.js @@ -1 +1 @@ -const a594_0x2374=['emit','setMaxListeners','OpenchannelQueue','events','update','save','addHook','../../mysqldb'];(function(_0x10371,_0x58504f){const _0x237453=function(_0x559a75){while(--_0x559a75){_0x10371['push'](_0x10371['shift']());}};_0x237453(++_0x58504f);}(a594_0x2374,0xc5));const a594_0x559a=function(_0x10371,_0x58504f){_0x10371=_0x10371-0x141;let _0x237453=a594_0x2374[_0x10371];return _0x237453;};const a594_0x3044b2=a594_0x559a;'use strict';const EventEmitter=require(a594_0x3044b2(0x147)),OpenchannelQueue=require(a594_0x3044b2(0x143))['db'][a594_0x3044b2(0x146)],OpenchannelQueueEvents=new EventEmitter();OpenchannelQueueEvents[a594_0x3044b2(0x145)](0x0);const events={'afterCreate':a594_0x3044b2(0x141),'afterUpdate':a594_0x3044b2(0x148),'afterDestroy':'remove'};function emitEvent(_0x369af0){return function(_0x1caecf){const _0x744e84=a594_0x559a;OpenchannelQueueEvents[_0x744e84(0x144)](_0x369af0+':'+_0x1caecf['id'],_0x1caecf),OpenchannelQueueEvents['emit'](_0x369af0,_0x1caecf);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];OpenchannelQueue[a594_0x3044b2(0x142)](e,emitEvent(event));}}module['exports']=OpenchannelQueueEvents; \ No newline at end of file +const a594_0x1a7a=['update','exports','../../mysqldb','events','OpenchannelQueue','setMaxListeners','save','emit','addHook','remove','undefined'];(function(_0x385d77,_0x3ea7b7){const _0x1a7a39=function(_0x3b700e){while(--_0x3b700e){_0x385d77['push'](_0x385d77['shift']());}};_0x1a7a39(++_0x3ea7b7);}(a594_0x1a7a,0xd3));const a594_0x3b70=function(_0x385d77,_0x3ea7b7){_0x385d77=_0x385d77-0x9b;let _0x1a7a39=a594_0x1a7a[_0x385d77];return _0x1a7a39;};const a594_0x111996=a594_0x3b70;'use strict';const EventEmitter=require(a594_0x111996(0x9c)),OpenchannelQueue=require(a594_0x111996(0x9b))['db'][a594_0x111996(0x9d)],OpenchannelQueueEvents=new EventEmitter();OpenchannelQueueEvents[a594_0x111996(0x9e)](0x0);const events={'afterCreate':a594_0x111996(0x9f),'afterUpdate':a594_0x111996(0xa4),'afterDestroy':a594_0x111996(0xa2)};function emitEvent(_0x2e3749){return function(_0x4b5b86){const _0x35e68f=a594_0x3b70;OpenchannelQueueEvents[_0x35e68f(0xa0)](_0x2e3749+':'+_0x4b5b86['id'],_0x4b5b86),OpenchannelQueueEvents[_0x35e68f(0xa0)](_0x2e3749,_0x4b5b86);};}for(const e in events){if(typeof events[e]!==a594_0x111996(0xa3)){const event=events[e];OpenchannelQueue[a594_0x111996(0xa1)](e,emitEvent(event));}}module[a594_0x111996(0xa5)]=OpenchannelQueueEvents; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.model.js b/server/api/openchannelQueue/openchannelQueue.model.js index 887c205..99fa531 100644 --- a/server/api/openchannelQueue/openchannelQueue.model.js +++ b/server/api/openchannelQueue/openchannelQueue.model.js @@ -1 +1 @@ -const a595_0x2725=['OpenchannelQueue','exports','sequelize','./openchannelQueue.options','function','init'];(function(_0x5376ad,_0x8a46fc){const _0x272548=function(_0x101a91){while(--_0x101a91){_0x5376ad['push'](_0x5376ad['shift']());}};_0x272548(++_0x8a46fc);}(a595_0x2725,0x126));const a595_0x101a=function(_0x5376ad,_0x8a46fc){_0x5376ad=_0x5376ad-0x153;let _0x272548=a595_0x2725[_0x5376ad];return _0x272548;};const a595_0x51c043=a595_0x101a;'use strict';const {Model}=require(a595_0x51c043(0x155)),{attributes}=require('./openchannelQueue.attributes'),{options}=require(a595_0x51c043(0x156));class OpenchannelQueue extends Model{}function init(_0x1fb89a,_0x5451b0){const _0x382b8a=a595_0x51c043,_0x18ed06=options(_0x1fb89a),_0x3f6f01=typeof _0x5451b0===_0x382b8a(0x157)?_0x5451b0(_0x18ed06):_0x18ed06;return OpenchannelQueue[_0x382b8a(0x158)](attributes,_0x3f6f01),OpenchannelQueue;}module[a595_0x51c043(0x154)][a595_0x51c043(0x153)]=OpenchannelQueue,module[a595_0x51c043(0x154)][a595_0x51c043(0x158)]=init; \ No newline at end of file +const a595_0x5e55=['./openchannelQueue.options','exports','./openchannelQueue.attributes'];(function(_0x26201e,_0x161bc1){const _0x5e55eb=function(_0x41c09a){while(--_0x41c09a){_0x26201e['push'](_0x26201e['shift']());}};_0x5e55eb(++_0x161bc1);}(a595_0x5e55,0x6b));const a595_0x41c0=function(_0x26201e,_0x161bc1){_0x26201e=_0x26201e-0xee;let _0x5e55eb=a595_0x5e55[_0x26201e];return _0x5e55eb;};const a595_0x3fe435=a595_0x41c0;'use strict';const {Model}=require('sequelize'),{attributes}=require(a595_0x3fe435(0xee)),{options}=require(a595_0x3fe435(0xef));class OpenchannelQueue extends Model{}function init(_0x8ace5f,_0x70d4fb){const _0x1b2714=options(_0x8ace5f),_0x112a61=typeof _0x70d4fb==='function'?_0x70d4fb(_0x1b2714):_0x1b2714;return OpenchannelQueue['init'](attributes,_0x112a61),OpenchannelQueue;}module['exports']['OpenchannelQueue']=OpenchannelQueue,module[a595_0x3fe435(0xf0)]['init']=init; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.options.js b/server/api/openchannelQueue/openchannelQueue.options.js index 112c22b..4cef7dc 100644 --- a/server/api/openchannelQueue/openchannelQueue.options.js +++ b/server/api/openchannelQueue/openchannelQueue.options.js @@ -1 +1 @@ -var a596_0x2b64=['options','openchannel_queues','exports'];(function(_0x4ef3d3,_0x93c71f){var _0x2b6489=function(_0x2321bc){while(--_0x2321bc){_0x4ef3d3['push'](_0x4ef3d3['shift']());}};_0x2b6489(++_0x93c71f);}(a596_0x2b64,0xf3));var a596_0x2321=function(_0x4ef3d3,_0x93c71f){_0x4ef3d3=_0x4ef3d3-0x187;var _0x2b6489=a596_0x2b64[_0x4ef3d3];return _0x2b6489;};var a596_0x10c12d=a596_0x2321;function options(_0x595a01){var _0x158e63=a596_0x2321;return{'sequelize':_0x595a01,'tableName':_0x158e63(0x188),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a596_0x10c12d(0x189)][a596_0x10c12d(0x187)]=options; \ No newline at end of file +var a596_0x26ce=['openchannel_queues','exports','options'];(function(_0x9db8c1,_0x2227ba){var _0x26ce24=function(_0x513953){while(--_0x513953){_0x9db8c1['push'](_0x9db8c1['shift']());}};_0x26ce24(++_0x2227ba);}(a596_0x26ce,0x15c));var a596_0x5139=function(_0x9db8c1,_0x2227ba){_0x9db8c1=_0x9db8c1-0xc7;var _0x26ce24=a596_0x26ce[_0x9db8c1];return _0x26ce24;};var a596_0x878cf7=a596_0x5139;function options(_0x4fbb62){var _0x4f2a96=a596_0x5139;return{'sequelize':_0x4fbb62,'tableName':_0x4f2a96(0xc7),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a596_0x878cf7(0xc8)][a596_0x878cf7(0xc9)]=options; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.rpc.js b/server/api/openchannelQueue/openchannelQueue.rpc.js index 6a7409f..46e8fca 100644 --- a/server/api/openchannelQueue/openchannelQueue.rpc.js +++ b/server/api/openchannelQueue/openchannelQueue.rpc.js @@ -1 +1 @@ -const a597_0x3a1a=['error','then','message','register','raw','info','../../mysqldb','stringify','options','where','GetOpenchannelQueue','model','findAll','include','ShowOpenchannelQueue','../../rediscache','../../config/logger','catch','map','./openchannelQueue.socket','attributes','debug'];(function(_0x27be33,_0x579e8b){const _0x3a1a76=function(_0x9121ed){while(--_0x9121ed){_0x27be33['push'](_0x27be33['shift']());}};_0x3a1a76(++_0x579e8b);}(a597_0x3a1a,0x1cf));const a597_0x9121=function(_0x27be33,_0x579e8b){_0x27be33=_0x27be33-0xf2;let _0x3a1a76=a597_0x3a1a[_0x27be33];return _0x3a1a76;};const a597_0x540bb2=a597_0x9121;'use strict';const _=require('lodash'),db=require(a597_0x540bb2(0xf7))['db'],logger=require(a597_0x540bb2(0x101))('rpc'),{getSocket}=require(a597_0x540bb2(0x100)),socket=getSocket();require(a597_0x540bb2(0x104))[a597_0x540bb2(0xf4)](socket),exports[a597_0x540bb2(0xfb)]=function(_0x35ea0c){const _0x53b776=this;return new Promise(function(_0x2f3ca5,_0x31595d){const _0x495448=a597_0x9121;return db['OpenchannelQueue'][_0x495448(0xfd)]({'raw':_0x35ea0c[_0x495448(0xf9)]?_0x35ea0c[_0x495448(0xf9)]['raw']===undefined?!![]:![]:!![],'where':_0x35ea0c['options']?_0x35ea0c[_0x495448(0xf9)][_0x495448(0xfa)]||null:null,'attributes':_0x35ea0c[_0x495448(0xf9)]?_0x35ea0c['options'][_0x495448(0x105)]||null:null,'limit':_0x35ea0c['options']?_0x35ea0c[_0x495448(0xf9)]['limit']||null:null,'include':_0x35ea0c[_0x495448(0xf9)]?_0x35ea0c[_0x495448(0xf9)][_0x495448(0xfe)]?_['map'](_0x35ea0c[_0x495448(0xf9)][_0x495448(0xfe)],function(_0x452706){const _0x53b3b5=_0x495448;return{'model':db[_0x452706[_0x53b3b5(0xfc)]],'as':_0x452706['as'],'attributes':_0x452706[_0x53b3b5(0x105)],'include':_0x452706[_0x53b3b5(0xfe)]?_[_0x53b3b5(0x103)](_0x452706[_0x53b3b5(0xfe)],function(_0x51dbc3){const _0x466bd6=_0x53b3b5;return{'model':db[_0x51dbc3[_0x466bd6(0xfc)]],'as':_0x51dbc3['as'],'attributes':_0x51dbc3[_0x466bd6(0x105)],'include':_0x51dbc3['include']?_[_0x466bd6(0x103)](_0x51dbc3[_0x466bd6(0xfe)],function(_0x44a308){const _0x24f7e4=_0x466bd6;return{'model':db[_0x44a308['model']],'as':_0x44a308['as'],'attributes':_0x44a308[_0x24f7e4(0x105)]};}):[]};}):[]};}):[]:[]})[_0x495448(0xf2)](function(_0x35931f){const _0x441a8e=_0x495448;logger[_0x441a8e(0xf6)](_0x441a8e(0xfb),_0x35ea0c),logger[_0x441a8e(0x106)](_0x441a8e(0xfb),_0x35ea0c,JSON[_0x441a8e(0xf8)](_0x35931f)),_0x2f3ca5(_0x35931f);})[_0x495448(0x102)](function(_0x2c1b84){const _0x149710=_0x495448;logger['error'](_0x149710(0xfb),_0x2c1b84[_0x149710(0xf3)],_0x35ea0c),_0x31595d(_0x53b776[_0x149710(0x107)](0x1f4,_0x2c1b84['message']));});});},exports[a597_0x540bb2(0xff)]=function(_0x2b1671){const _0x4d35c3=this;return new Promise(function(_0x32a6f0,_0x2a995d){const _0x499418=a597_0x9121;return db['OpenchannelQueue']['findOne']({'raw':_0x2b1671[_0x499418(0xf9)]?_0x2b1671['options'][_0x499418(0xf5)]===undefined?!![]:![]:!![],'where':_0x2b1671['options']?_0x2b1671[_0x499418(0xf9)]['where']||null:null,'attributes':_0x2b1671[_0x499418(0xf9)]?_0x2b1671[_0x499418(0xf9)][_0x499418(0x105)]||null:null,'include':_0x2b1671[_0x499418(0xf9)]?_0x2b1671[_0x499418(0xf9)][_0x499418(0xfe)]?_[_0x499418(0x103)](_0x2b1671[_0x499418(0xf9)]['include'],function(_0x3ea94b){const _0xdf3413=_0x499418;return{'model':db[_0x3ea94b[_0xdf3413(0xfc)]],'as':_0x3ea94b['as'],'attributes':_0x3ea94b['attributes'],'include':_0x3ea94b[_0xdf3413(0xfe)]?_[_0xdf3413(0x103)](_0x3ea94b[_0xdf3413(0xfe)],function(_0x57f58a){const _0x60bf9d=_0xdf3413;return{'model':db[_0x57f58a['model']],'as':_0x57f58a['as'],'attributes':_0x57f58a['attributes'],'include':_0x57f58a[_0x60bf9d(0xfe)]?_[_0x60bf9d(0x103)](_0x57f58a[_0x60bf9d(0xfe)],function(_0x48d468){const _0x4b02a2=_0x60bf9d;return{'model':db[_0x48d468[_0x4b02a2(0xfc)]],'as':_0x48d468['as'],'attributes':_0x48d468[_0x4b02a2(0x105)]};}):[]};}):[]};}):[]:[]})[_0x499418(0xf2)](function(_0x219689){const _0x2aa472=_0x499418;logger[_0x2aa472(0xf6)](_0x2aa472(0xff),_0x2b1671),logger[_0x2aa472(0x106)](_0x2aa472(0xff),_0x2b1671,JSON[_0x2aa472(0xf8)](_0x219689)),_0x32a6f0(_0x219689);})[_0x499418(0x102)](function(_0x5e5b78){const _0x207614=_0x499418;logger[_0x207614(0x107)](_0x207614(0xff),_0x5e5b78['message'],_0x2b1671),_0x2a995d(_0x4d35c3['error'](0x1f4,_0x5e5b78['message']));});});}; \ No newline at end of file +const a597_0x21d1=['rpc','stringify','attributes','then','raw','info','GetOpenchannelQueue','options','model','error','debug','../../mysqldb','../../rediscache','OpenchannelQueue','map','limit','lodash','ShowOpenchannelQueue','message','include','where','findOne','catch'];(function(_0x523e15,_0x414978){const _0x21d1f3=function(_0xb699da){while(--_0xb699da){_0x523e15['push'](_0x523e15['shift']());}};_0x21d1f3(++_0x414978);}(a597_0x21d1,0x1b6));const a597_0xb699=function(_0x523e15,_0x414978){_0x523e15=_0x523e15-0x1b3;let _0x21d1f3=a597_0x21d1[_0x523e15];return _0x21d1f3;};const a597_0x4c8806=a597_0xb699;'use strict';const _=require(a597_0x4c8806(0x1c2)),db=require(a597_0x4c8806(0x1bd))['db'],logger=require('../../config/logger')(a597_0x4c8806(0x1c9)),{getSocket}=require(a597_0x4c8806(0x1be)),socket=getSocket();require('./openchannelQueue.socket')['register'](socket),exports['GetOpenchannelQueue']=function(_0x42c5d0){const _0x90978f=this;return new Promise(function(_0x385e88,_0x42af11){const _0x2916b6=a597_0xb699;return db['OpenchannelQueue']['findAll']({'raw':_0x42c5d0[_0x2916b6(0x1b9)]?_0x42c5d0[_0x2916b6(0x1b9)]['raw']===undefined?!![]:![]:!![],'where':_0x42c5d0[_0x2916b6(0x1b9)]?_0x42c5d0['options'][_0x2916b6(0x1c6)]||null:null,'attributes':_0x42c5d0[_0x2916b6(0x1b9)]?_0x42c5d0[_0x2916b6(0x1b9)][_0x2916b6(0x1b4)]||null:null,'limit':_0x42c5d0[_0x2916b6(0x1b9)]?_0x42c5d0[_0x2916b6(0x1b9)][_0x2916b6(0x1c1)]||null:null,'include':_0x42c5d0[_0x2916b6(0x1b9)]?_0x42c5d0[_0x2916b6(0x1b9)][_0x2916b6(0x1c5)]?_[_0x2916b6(0x1c0)](_0x42c5d0[_0x2916b6(0x1b9)]['include'],function(_0x1de12f){const _0x5443bf=_0x2916b6;return{'model':db[_0x1de12f[_0x5443bf(0x1ba)]],'as':_0x1de12f['as'],'attributes':_0x1de12f[_0x5443bf(0x1b4)],'include':_0x1de12f[_0x5443bf(0x1c5)]?_[_0x5443bf(0x1c0)](_0x1de12f['include'],function(_0x52179a){const _0x3f41fe=_0x5443bf;return{'model':db[_0x52179a[_0x3f41fe(0x1ba)]],'as':_0x52179a['as'],'attributes':_0x52179a[_0x3f41fe(0x1b4)],'include':_0x52179a['include']?_[_0x3f41fe(0x1c0)](_0x52179a['include'],function(_0x97f54a){const _0x4ff3c3=_0x3f41fe;return{'model':db[_0x97f54a[_0x4ff3c3(0x1ba)]],'as':_0x97f54a['as'],'attributes':_0x97f54a[_0x4ff3c3(0x1b4)]};}):[]};}):[]};}):[]:[]})[_0x2916b6(0x1b5)](function(_0xb702ef){const _0x114228=_0x2916b6;logger[_0x114228(0x1b7)](_0x114228(0x1b8),_0x42c5d0),logger[_0x114228(0x1bc)](_0x114228(0x1b8),_0x42c5d0,JSON['stringify'](_0xb702ef)),_0x385e88(_0xb702ef);})[_0x2916b6(0x1c8)](function(_0x5d5763){const _0x4433e3=_0x2916b6;logger[_0x4433e3(0x1bb)]('GetOpenchannelQueue',_0x5d5763[_0x4433e3(0x1c4)],_0x42c5d0),_0x42af11(_0x90978f['error'](0x1f4,_0x5d5763[_0x4433e3(0x1c4)]));});});},exports[a597_0x4c8806(0x1c3)]=function(_0x1e6698){const _0x529d2e=this;return new Promise(function(_0x11f3cf,_0x2f61fa){const _0x104489=a597_0xb699;return db[_0x104489(0x1bf)][_0x104489(0x1c7)]({'raw':_0x1e6698['options']?_0x1e6698[_0x104489(0x1b9)][_0x104489(0x1b6)]===undefined?!![]:![]:!![],'where':_0x1e6698[_0x104489(0x1b9)]?_0x1e6698[_0x104489(0x1b9)][_0x104489(0x1c6)]||null:null,'attributes':_0x1e6698[_0x104489(0x1b9)]?_0x1e6698[_0x104489(0x1b9)][_0x104489(0x1b4)]||null:null,'include':_0x1e6698[_0x104489(0x1b9)]?_0x1e6698[_0x104489(0x1b9)][_0x104489(0x1c5)]?_['map'](_0x1e6698[_0x104489(0x1b9)]['include'],function(_0x371a21){const _0x2a7e29=_0x104489;return{'model':db[_0x371a21[_0x2a7e29(0x1ba)]],'as':_0x371a21['as'],'attributes':_0x371a21['attributes'],'include':_0x371a21[_0x2a7e29(0x1c5)]?_[_0x2a7e29(0x1c0)](_0x371a21[_0x2a7e29(0x1c5)],function(_0x544f66){const _0x265128=_0x2a7e29;return{'model':db[_0x544f66['model']],'as':_0x544f66['as'],'attributes':_0x544f66[_0x265128(0x1b4)],'include':_0x544f66[_0x265128(0x1c5)]?_[_0x265128(0x1c0)](_0x544f66[_0x265128(0x1c5)],function(_0x103f14){const _0x391805=_0x265128;return{'model':db[_0x103f14[_0x391805(0x1ba)]],'as':_0x103f14['as'],'attributes':_0x103f14[_0x391805(0x1b4)]};}):[]};}):[]};}):[]:[]})[_0x104489(0x1b5)](function(_0x4fd153){const _0x5ddca1=_0x104489;logger[_0x5ddca1(0x1b7)]('ShowOpenchannelQueue',_0x1e6698),logger[_0x5ddca1(0x1bc)]('ShowOpenchannelQueue',_0x1e6698,JSON[_0x5ddca1(0x1b3)](_0x4fd153)),_0x11f3cf(_0x4fd153);})['catch'](function(_0xa11b1b){const _0x4ddb7e=_0x104489;logger[_0x4ddb7e(0x1bb)](_0x4ddb7e(0x1c3),_0xa11b1b[_0x4ddb7e(0x1c4)],_0x1e6698),_0x2f61fa(_0x529d2e[_0x4ddb7e(0x1bb)](0x1f4,_0xa11b1b[_0x4ddb7e(0x1c4)]));});});}; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.socket.js b/server/api/openchannelQueue/openchannelQueue.socket.js index 8344616..f1f6ca6 100644 --- a/server/api/openchannelQueue/openchannelQueue.socket.js +++ b/server/api/openchannelQueue/openchannelQueue.socket.js @@ -1 +1 @@ -const a598_0x2508=['register','save','emit','openchannelQueue:','./openchannelQueue.events','update'];(function(_0x10a953,_0x2ac122){const _0x250896=function(_0x3d5241){while(--_0x3d5241){_0x10a953['push'](_0x10a953['shift']());}};_0x250896(++_0x2ac122);}(a598_0x2508,0x1b2));const a598_0x3d52=function(_0x10a953,_0x2ac122){_0x10a953=_0x10a953-0xe5;let _0x250896=a598_0x2508[_0x10a953];return _0x250896;};const a598_0x198827=a598_0x3d52;'use strict';const OpenchannelQueueEvents=require(a598_0x198827(0xe7)),events=[a598_0x198827(0xea),'remove',a598_0x198827(0xe8)];function createListener(_0x2a37c5,_0x20682d){return function(_0xcadddd){const _0x59ff86=a598_0x3d52;_0x20682d[_0x59ff86(0xe5)](_0x2a37c5,_0xcadddd);};}exports[a598_0x198827(0xe9)]=function(_0x385b4f){const _0x10ab4a=a598_0x198827;for(let _0x2d347f=0x0,_0x16ef3e=events['length'];_0x2d347f<_0x16ef3e;_0x2d347f++){const _0x456712=events[_0x2d347f],_0x2cb3e9=createListener(_0x10ab4a(0xe6)+_0x456712,_0x385b4f);OpenchannelQueueEvents['on'](_0x456712,_0x2cb3e9);}}; \ No newline at end of file +const a598_0x9324=['length','register','remove','./openchannelQueue.events','emit','save'];(function(_0x257adf,_0x4937e2){const _0x932415=function(_0x21bc5e){while(--_0x21bc5e){_0x257adf['push'](_0x257adf['shift']());}};_0x932415(++_0x4937e2);}(a598_0x9324,0x1af));const a598_0x21bc=function(_0x257adf,_0x4937e2){_0x257adf=_0x257adf-0x136;let _0x932415=a598_0x9324[_0x257adf];return _0x932415;};const a598_0x506ed4=a598_0x21bc;'use strict';const OpenchannelQueueEvents=require(a598_0x506ed4(0x13a)),events=[a598_0x506ed4(0x136),a598_0x506ed4(0x139),'update'];function createListener(_0x223b57,_0x7b4bab){return function(_0x2ef7b9){const _0x1897cf=a598_0x21bc;_0x7b4bab[_0x1897cf(0x13b)](_0x223b57,_0x2ef7b9);};}exports[a598_0x506ed4(0x138)]=function(_0x1ea886){const _0x37b04e=a598_0x506ed4;for(let _0x544068=0x0,_0x3b6ad8=events[_0x37b04e(0x137)];_0x544068<_0x3b6ad8;_0x544068++){const _0x1d1475=events[_0x544068],_0x11463c=createListener('openchannelQueue:'+_0x1d1475,_0x1ea886);OpenchannelQueueEvents['on'](_0x1d1475,_0x11463c);}}; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/index.js b/server/api/openchannelQueueReport/index.js index 279e907..247c068 100644 --- a/server/api/openchannelQueueReport/index.js +++ b/server/api/openchannelQueueReport/index.js @@ -1 +1 @@ -const a599_0x5be9=['exports','express','show','describe','../../components/auth/service','/:id','create','get','./openchannelQueueReport.controller','destroy','/describe','isAuthenticated','index','Router','update'];(function(_0x11967a,_0x55dd53){const _0x5be996=function(_0x4760e9){while(--_0x4760e9){_0x11967a['push'](_0x11967a['shift']());}};_0x5be996(++_0x55dd53);}(a599_0x5be9,0xd6));const a599_0x4760=function(_0x11967a,_0x55dd53){_0x11967a=_0x11967a-0x14a;let _0x5be996=a599_0x5be9[_0x11967a];return _0x5be996;};const a599_0x58c226=a599_0x4760;'use strict';const express=require(a599_0x58c226(0x156)),router=express[a599_0x58c226(0x153)](),auth=require(a599_0x58c226(0x14a)),controller=require(a599_0x58c226(0x14e));router[a599_0x58c226(0x14d)]('/',auth[a599_0x58c226(0x151)](),controller[a599_0x58c226(0x152)]),router[a599_0x58c226(0x14d)](a599_0x58c226(0x150),auth[a599_0x58c226(0x151)](),controller[a599_0x58c226(0x158)]),router[a599_0x58c226(0x14d)]('/:id',auth[a599_0x58c226(0x151)](),controller[a599_0x58c226(0x157)]),router['post']('/',auth[a599_0x58c226(0x151)](),controller[a599_0x58c226(0x14c)]),router['put'](a599_0x58c226(0x14b),auth['isAuthenticated'](),controller[a599_0x58c226(0x154)]),router['delete'](a599_0x58c226(0x14b),auth[a599_0x58c226(0x151)](),controller[a599_0x58c226(0x14f)]),module[a599_0x58c226(0x155)]=router; \ No newline at end of file +const a599_0x3bae=['post','describe','destroy','show','../../components/auth/service','exports','index','update','/:id','Router','isAuthenticated','put','./openchannelQueueReport.controller','/describe','create'];(function(_0x30af53,_0xb29e08){const _0x3bae0c=function(_0xfa3cc8){while(--_0xfa3cc8){_0x30af53['push'](_0x30af53['shift']());}};_0x3bae0c(++_0xb29e08);}(a599_0x3bae,0x68));const a599_0xfa3c=function(_0x30af53,_0xb29e08){_0x30af53=_0x30af53-0x13a;let _0x3bae0c=a599_0x3bae[_0x30af53];return _0x3bae0c;};const a599_0x53d550=a599_0xfa3c;'use strict';const express=require('express'),router=express[a599_0x53d550(0x144)](),auth=require(a599_0x53d550(0x13f)),controller=require(a599_0x53d550(0x147));router['get']('/',auth[a599_0x53d550(0x145)](),controller[a599_0x53d550(0x141)]),router['get'](a599_0x53d550(0x148),auth[a599_0x53d550(0x145)](),controller[a599_0x53d550(0x13c)]),router['get'](a599_0x53d550(0x143),auth['isAuthenticated'](),controller[a599_0x53d550(0x13e)]),router[a599_0x53d550(0x13b)]('/',auth[a599_0x53d550(0x145)](),controller[a599_0x53d550(0x13a)]),router[a599_0x53d550(0x146)]('/:id',auth[a599_0x53d550(0x145)](),controller[a599_0x53d550(0x142)]),router['delete'](a599_0x53d550(0x143),auth[a599_0x53d550(0x145)](),controller[a599_0x53d550(0x13d)]),module[a599_0x53d550(0x140)]=router; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js b/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js index 3a6f0ed..c28889b 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js @@ -1 +1 @@ -const a600_0x21eb=['DATE','STRING','attributes'];(function(_0x4c597a,_0x3c0a90){const _0x21ebc4=function(_0x374579){while(--_0x374579){_0x4c597a['push'](_0x4c597a['shift']());}};_0x21ebc4(++_0x3c0a90);}(a600_0x21eb,0x74));const a600_0x3745=function(_0x4c597a,_0x3c0a90){_0x4c597a=_0x4c597a-0x15c;let _0x21ebc4=a600_0x21eb[_0x4c597a];return _0x21ebc4;};const a600_0x81c5a9=a600_0x3745;'use strict';const {DataTypes}=require('sequelize'),attributes={'uniqueid':{'type':DataTypes['STRING'],'allowNull':![]},'from':{'type':DataTypes[a600_0x81c5a9(0x15e)]},'joinAt':{'type':DataTypes['DATE']},'leaveAt':{'type':DataTypes[a600_0x81c5a9(0x15d)]},'acceptAt':{'type':DataTypes[a600_0x81c5a9(0x15d)]},'exitAt':{'type':DataTypes['DATE']},'reason':{'type':DataTypes[a600_0x81c5a9(0x15e)]}};module['exports'][a600_0x81c5a9(0x15c)]=attributes; \ No newline at end of file +const a600_0x3dc3=['sequelize','STRING','DATE','exports'];(function(_0x4e0dd2,_0x147a60){const _0x3dc3d5=function(_0x44c6f7){while(--_0x44c6f7){_0x4e0dd2['push'](_0x4e0dd2['shift']());}};_0x3dc3d5(++_0x147a60);}(a600_0x3dc3,0x1b0));const a600_0x44c6=function(_0x4e0dd2,_0x147a60){_0x4e0dd2=_0x4e0dd2-0x75;let _0x3dc3d5=a600_0x3dc3[_0x4e0dd2];return _0x3dc3d5;};const a600_0x212916=a600_0x44c6;'use strict';const {DataTypes}=require(a600_0x212916(0x75)),attributes={'uniqueid':{'type':DataTypes[a600_0x212916(0x76)],'allowNull':![]},'from':{'type':DataTypes['STRING']},'joinAt':{'type':DataTypes['DATE']},'leaveAt':{'type':DataTypes[a600_0x212916(0x77)]},'acceptAt':{'type':DataTypes[a600_0x212916(0x77)]},'exitAt':{'type':DataTypes['DATE']},'reason':{'type':DataTypes[a600_0x212916(0x76)]}};module[a600_0x212916(0x78)]['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 754e7a4..082c8a1 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.controller.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.controller.js @@ -1 +1 @@ -const a601_0x3016=['api','status','set','pick','sequelize','query','rows','describe','../../mysqldb','update','show','where','catch','Content-Range','filter','json','then','limit','includeAll','sendStatus','length','name','include','intersection','type','index','filters','findAll','lodash','undefined','create','merge','stack','destroy','sort','VIRTUAL','attributes','key','fieldName','model','fields','offset','like','OpenchannelQueueReport','keys','rawAttributes','findOne','body','map','count','params'];(function(_0x2dbe8c,_0x3fdf5d){const _0x30162e=function(_0x56543d){while(--_0x56543d){_0x2dbe8c['push'](_0x2dbe8c['shift']());}};_0x30162e(++_0x3fdf5d);}(a601_0x3016,0x1cc));const a601_0x5654=function(_0x2dbe8c,_0x3fdf5d){_0x2dbe8c=_0x2dbe8c-0x75;let _0x30162e=a601_0x3016[_0x2dbe8c];return _0x30162e;};const a601_0x28f8fd=a601_0x5654;'use strict';const _=require(a601_0x28f8fd(0x90)),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(a601_0x28f8fd(0xa7)),{db}=require(a601_0x28f8fd(0x7c)),{Op}=require(a601_0x28f8fd(0x78));function respondWithResult(_0x2e278a,_0x35fe15){return _0x35fe15=_0x35fe15||0xc8,function(_0x4bb993){const _0x1223ee=a601_0x5654;if(_0x4bb993)return _0x2e278a[_0x1223ee(0x75)](_0x35fe15)[_0x1223ee(0x83)](_0x4bb993);};}function respondWithFilteredResult(_0x1337b8,_0x5ec5c8){return function(_0x1acf58){const _0x5c0244=a601_0x5654;if(_0x1acf58){const _0x44b746=_0x1acf58[_0x5c0244(0xa5)],_0x52193d=_0x5ec5c8[_0x5c0244(0x9d)];let _0x3d732b=_0x5ec5c8['offset']+_0x5ec5c8[_0x5c0244(0x85)],_0x4920b4;return _0x3d732b>=_0x44b746?(_0x3d732b=_0x44b746,_0x4920b4=0xc8):_0x4920b4=0xce,_0x1337b8[_0x5c0244(0x75)](_0x4920b4),_0x1337b8[_0x5c0244(0x76)](_0x5c0244(0x81),_0x52193d+'-'+_0x3d732b+'/'+_0x44b746)[_0x5c0244(0x83)](_0x1acf58);}return null;};}function saveUpdates(_0x1c0804){return function(_0x42a085){const _0x4f2a06=a601_0x5654;if(_0x42a085)return _0x42a085[_0x4f2a06(0x7d)](_0x1c0804)[_0x4f2a06(0x84)](function(_0x52a929){return _0x52a929;});return null;};}function removeEntity(_0x8713d5){return function(_0x3cc11e){const _0x8da517=a601_0x5654;if(_0x3cc11e)return _0x3cc11e['destroy']()[_0x8da517(0x84)](function(){const _0x2bb8a3=_0x8da517;_0x8713d5[_0x2bb8a3(0x75)](0xcc)['end']();});};}function handleEntityNotFound(_0x12c0ea){return function(_0x16ee70){const _0x37146d=a601_0x5654;return!_0x16ee70&&_0x12c0ea[_0x37146d(0x87)](0x194),_0x16ee70;};}function handleError(_0x51aabc,_0x2896de){return _0x2896de=_0x2896de||0x1f4,function(_0x37c6e6){const _0x4b7d23=a601_0x5654;logger['error'](_0x37c6e6[_0x4b7d23(0x94)]),_0x37c6e6[_0x4b7d23(0x89)]&&delete _0x37c6e6[_0x4b7d23(0x89)],_0x51aabc[_0x4b7d23(0x75)](_0x2896de)['send'](_0x37c6e6);};}exports[a601_0x28f8fd(0x8d)]=function(_0x15ff3c,_0x4eeaae){const _0x2a06ca=a601_0x28f8fd;let _0x69ffec={};const _0x9cc594={},_0x4a0346={'count':0x0,'rows':[]},_0x3787b7=_[_0x2a06ca(0xa4)](db[_0x2a06ca(0x9f)][_0x2a06ca(0xa1)],function(_0x4195bd){const _0x1bc008=_0x2a06ca;return{'name':_0x4195bd[_0x1bc008(0x9a)],'type':_0x4195bd[_0x1bc008(0x8c)][_0x1bc008(0x99)]};});_0x9cc594[_0x2a06ca(0x9b)]=_['map'](_0x3787b7,_0x2a06ca(0x89)),_0x9cc594[_0x2a06ca(0x79)]=_[_0x2a06ca(0xa0)](_0x15ff3c[_0x2a06ca(0x79)]),_0x9cc594[_0x2a06ca(0x8e)]=_[_0x2a06ca(0x8b)](_0x9cc594[_0x2a06ca(0x9b)],_0x9cc594[_0x2a06ca(0x79)]),_0x69ffec[_0x2a06ca(0x98)]=_['intersection'](_0x9cc594[_0x2a06ca(0x9b)],qs[_0x2a06ca(0x9c)](_0x15ff3c[_0x2a06ca(0x79)][_0x2a06ca(0x9c)])),_0x69ffec[_0x2a06ca(0x98)]=_0x69ffec[_0x2a06ca(0x98)][_0x2a06ca(0x88)]?_0x69ffec[_0x2a06ca(0x98)]:_0x9cc594[_0x2a06ca(0x9b)];typeof _0x15ff3c[_0x2a06ca(0x79)]['nolimit']===_0x2a06ca(0x91)&&(_0x69ffec[_0x2a06ca(0x85)]=qs[_0x2a06ca(0x85)](_0x15ff3c[_0x2a06ca(0x79)]['limit']),_0x69ffec[_0x2a06ca(0x9d)]=qs[_0x2a06ca(0x9d)](_0x15ff3c['query']['offset']));_0x69ffec['order']=qs[_0x2a06ca(0x96)](_0x15ff3c['query'][_0x2a06ca(0x96)]),_0x69ffec['where']=qs[_0x2a06ca(0x8e)](_[_0x2a06ca(0x77)](_0x15ff3c[_0x2a06ca(0x79)],_0x9cc594[_0x2a06ca(0x8e)]),_0x3787b7);_0x15ff3c['query'][_0x2a06ca(0x82)]&&(_0x69ffec[_0x2a06ca(0x7f)]=_['merge'](_0x69ffec[_0x2a06ca(0x7f)],{[Op['or']]:_['map'](_0x3787b7,function(_0x4252ea){const _0x5b872b=_0x2a06ca;if(_0x4252ea[_0x5b872b(0x8c)]!==_0x5b872b(0x97)){const _0x4aee9f={};return _0x4aee9f[_0x4252ea['name']]={[Op[_0x5b872b(0x9e)]]:'%'+_0x15ff3c[_0x5b872b(0x79)][_0x5b872b(0x82)]+'%'},_0x4aee9f;}})}));_0x69ffec=_[_0x2a06ca(0x93)]({},_0x69ffec,_0x15ff3c['options']);const _0x2a4d90={'where':_0x69ffec[_0x2a06ca(0x7f)]};return db[_0x2a06ca(0x9f)][_0x2a06ca(0xa5)](_0x2a4d90)[_0x2a06ca(0x84)](function(_0x1a6e30){const _0xbe99ba=_0x2a06ca;return _0x4a0346[_0xbe99ba(0xa5)]=_0x1a6e30,_0x15ff3c['query'][_0xbe99ba(0x86)]&&(_0x69ffec['include']=[{'all':!![]}]),db[_0xbe99ba(0x9f)][_0xbe99ba(0x8f)](_0x69ffec);})[_0x2a06ca(0x84)](function(_0x100281){const _0xfcaee2=_0x2a06ca;return _0x4a0346[_0xfcaee2(0x7a)]=_0x100281,_0x4a0346;})[_0x2a06ca(0x84)](respondWithFilteredResult(_0x4eeaae,_0x69ffec))[_0x2a06ca(0x80)](handleError(_0x4eeaae,null));},exports[a601_0x28f8fd(0x7e)]=function(_0x449c30,_0x104f2e){const _0x44d7b4=a601_0x28f8fd;let _0xcf7c1c={'raw':!![],'where':{'id':_0x449c30['params']['id']}};const _0x15a2a4={};return _0x15a2a4['model']=_[_0x44d7b4(0xa0)](db['OpenchannelQueueReport']['rawAttributes']),_0x15a2a4[_0x44d7b4(0x79)]=_[_0x44d7b4(0xa0)](_0x449c30['query']),_0x15a2a4[_0x44d7b4(0x8e)]=_['intersection'](_0x15a2a4[_0x44d7b4(0x9b)],_0x15a2a4['query']),_0xcf7c1c[_0x44d7b4(0x98)]=_[_0x44d7b4(0x8b)](_0x15a2a4[_0x44d7b4(0x9b)],qs[_0x44d7b4(0x9c)](_0x449c30[_0x44d7b4(0x79)][_0x44d7b4(0x9c)])),_0xcf7c1c[_0x44d7b4(0x98)]=_0xcf7c1c[_0x44d7b4(0x98)][_0x44d7b4(0x88)]?_0xcf7c1c[_0x44d7b4(0x98)]:_0x15a2a4['model'],_0x449c30[_0x44d7b4(0x79)][_0x44d7b4(0x86)]&&(_0xcf7c1c[_0x44d7b4(0x8a)]=[{'all':!![]}]),_0xcf7c1c=_[_0x44d7b4(0x93)]({},_0xcf7c1c,_0x449c30['options']),db[_0x44d7b4(0x9f)][_0x44d7b4(0xa2)](_0xcf7c1c)[_0x44d7b4(0x84)](handleEntityNotFound(_0x104f2e,null))[_0x44d7b4(0x84)](respondWithResult(_0x104f2e,null))[_0x44d7b4(0x80)](handleError(_0x104f2e,null));},exports[a601_0x28f8fd(0x92)]=function(_0x568016,_0x4d6e62){const _0x3f7f66=a601_0x28f8fd;return db[_0x3f7f66(0x9f)][_0x3f7f66(0x92)](_0x568016[_0x3f7f66(0xa3)],{})['then'](respondWithResult(_0x4d6e62,0xc9))[_0x3f7f66(0x80)](handleError(_0x4d6e62,null));},exports['update']=function(_0x4e0345,_0x2473cd){const _0x5a33f4=a601_0x28f8fd;return _0x4e0345['body']['id']&&delete _0x4e0345[_0x5a33f4(0xa3)]['id'],db[_0x5a33f4(0x9f)]['findOne']({'where':{'id':_0x4e0345[_0x5a33f4(0xa6)]['id']}})[_0x5a33f4(0x84)](handleEntityNotFound(_0x2473cd,null))[_0x5a33f4(0x84)](saveUpdates(_0x4e0345[_0x5a33f4(0xa3)],null))[_0x5a33f4(0x84)](respondWithResult(_0x2473cd,null))[_0x5a33f4(0x80)](handleError(_0x2473cd,null));},exports[a601_0x28f8fd(0x95)]=function(_0x55def1,_0x46cd4e){const _0x155ecc=a601_0x28f8fd;return db[_0x155ecc(0x9f)][_0x155ecc(0xa2)]({'where':{'id':_0x55def1['params']['id']}})['then'](handleEntityNotFound(_0x46cd4e,null))[_0x155ecc(0x84)](removeEntity(_0x46cd4e,null))[_0x155ecc(0x80)](handleError(_0x46cd4e,null));},exports[a601_0x28f8fd(0x7b)]=function(_0x428494,_0x32cb8a){const _0x736d6f=a601_0x28f8fd;return db[_0x736d6f(0x9f)][_0x736d6f(0x7b)]()['then'](respondWithResult(_0x32cb8a,null))[_0x736d6f(0x80)](handleError(_0x32cb8a,null));}; \ No newline at end of file +const a601_0x12c5=['offset','end','fields','../../mysqldb','map','Content-Range','merge','findAll','status','pick','include','order','includeAll','options','findOne','count','sequelize','filter','error','intersection','send','json','model','describe','body','type','nolimit','OpenchannelQueueReport','rows','lodash','rawAttributes','index','undefined','filters','name','attributes','params','destroy','query','VIRTUAL','limit','then','sort','catch','where','show','keys','create','length'];(function(_0x2b1477,_0x1f0c55){const _0x12c5b8=function(_0x40f56e){while(--_0x40f56e){_0x2b1477['push'](_0x2b1477['shift']());}};_0x12c5b8(++_0x1f0c55);}(a601_0x12c5,0xbe));const a601_0x40f5=function(_0x2b1477,_0x1f0c55){_0x2b1477=_0x2b1477-0xd2;let _0x12c5b8=a601_0x12c5[_0x2b1477];return _0x12c5b8;};const a601_0x5c3f8c=a601_0x40f5;'use strict';const _=require(a601_0x5c3f8c(0xf5)),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),{db}=require(a601_0x5c3f8c(0xdb)),{Op}=require(a601_0x5c3f8c(0xe8));function respondWithResult(_0x181701,_0x997ae0){return _0x997ae0=_0x997ae0||0xc8,function(_0x447293){const _0xfc7135=a601_0x40f5;if(_0x447293)return _0x181701[_0xfc7135(0xe0)](_0x997ae0)[_0xfc7135(0xed)](_0x447293);};}function respondWithFilteredResult(_0x55648d,_0x5afda9){return function(_0x15366f){const _0x528da5=a601_0x40f5;if(_0x15366f){const _0x259e7c=_0x15366f[_0x528da5(0xe7)],_0x20c942=_0x5afda9['offset'];let _0x5082f3=_0x5afda9[_0x528da5(0xd8)]+_0x5afda9[_0x528da5(0x100)],_0x2ae291;return _0x5082f3>=_0x259e7c?(_0x5082f3=_0x259e7c,_0x2ae291=0xc8):_0x2ae291=0xce,_0x55648d[_0x528da5(0xe0)](_0x2ae291),_0x55648d['set'](_0x528da5(0xdd),_0x20c942+'-'+_0x5082f3+'/'+_0x259e7c)[_0x528da5(0xed)](_0x15366f);}return null;};}function saveUpdates(_0x55b625){return function(_0x40dabb){if(_0x40dabb)return _0x40dabb['update'](_0x55b625)['then'](function(_0x2a3792){return _0x2a3792;});return null;};}function removeEntity(_0x267844){return function(_0x1f879a){const _0x454fd9=a601_0x40f5;if(_0x1f879a)return _0x1f879a[_0x454fd9(0xfd)]()[_0x454fd9(0x101)](function(){const _0x19083d=_0x454fd9;_0x267844[_0x19083d(0xe0)](0xcc)[_0x19083d(0xd9)]();});};}function handleEntityNotFound(_0x2a5cd3){return function(_0x87d3dd){return!_0x87d3dd&&_0x2a5cd3['sendStatus'](0x194),_0x87d3dd;};}function handleError(_0x5beb54,_0x26a84a){return _0x26a84a=_0x26a84a||0x1f4,function(_0x5cd125){const _0x416726=a601_0x40f5;logger[_0x416726(0xea)](_0x5cd125['stack']),_0x5cd125['name']&&delete _0x5cd125[_0x416726(0xfa)],_0x5beb54[_0x416726(0xe0)](_0x26a84a)[_0x416726(0xec)](_0x5cd125);};}exports[a601_0x5c3f8c(0xf7)]=function(_0xa61583,_0x467034){const _0x13510c=a601_0x5c3f8c;let _0x5cc471={};const _0x1ff83b={},_0x5b163c={'count':0x0,'rows':[]},_0x4d80cc=_[_0x13510c(0xdc)](db[_0x13510c(0xf3)][_0x13510c(0xf6)],function(_0x493e53){const _0x5a7863=_0x13510c;return{'name':_0x493e53['fieldName'],'type':_0x493e53[_0x5a7863(0xf1)]['key']};});_0x1ff83b[_0x13510c(0xee)]=_[_0x13510c(0xdc)](_0x4d80cc,'name'),_0x1ff83b[_0x13510c(0xfe)]=_['keys'](_0xa61583['query']),_0x1ff83b[_0x13510c(0xf9)]=_[_0x13510c(0xeb)](_0x1ff83b[_0x13510c(0xee)],_0x1ff83b[_0x13510c(0xfe)]),_0x5cc471[_0x13510c(0xfb)]=_[_0x13510c(0xeb)](_0x1ff83b['model'],qs[_0x13510c(0xda)](_0xa61583[_0x13510c(0xfe)][_0x13510c(0xda)])),_0x5cc471['attributes']=_0x5cc471[_0x13510c(0xfb)]['length']?_0x5cc471[_0x13510c(0xfb)]:_0x1ff83b[_0x13510c(0xee)];typeof _0xa61583[_0x13510c(0xfe)][_0x13510c(0xf2)]===_0x13510c(0xf8)&&(_0x5cc471[_0x13510c(0x100)]=qs[_0x13510c(0x100)](_0xa61583[_0x13510c(0xfe)]['limit']),_0x5cc471['offset']=qs['offset'](_0xa61583[_0x13510c(0xfe)]['offset']));_0x5cc471[_0x13510c(0xe3)]=qs[_0x13510c(0x102)](_0xa61583[_0x13510c(0xfe)]['sort']),_0x5cc471['where']=qs[_0x13510c(0xf9)](_[_0x13510c(0xe1)](_0xa61583[_0x13510c(0xfe)],_0x1ff83b['filters']),_0x4d80cc);_0xa61583[_0x13510c(0xfe)][_0x13510c(0xe9)]&&(_0x5cc471[_0x13510c(0xd3)]=_[_0x13510c(0xde)](_0x5cc471['where'],{[Op['or']]:_['map'](_0x4d80cc,function(_0x39b6cf){const _0x2e55a7=_0x13510c;if(_0x39b6cf[_0x2e55a7(0xf1)]!==_0x2e55a7(0xff)){const _0x4f476b={};return _0x4f476b[_0x39b6cf['name']]={[Op['like']]:'%'+_0xa61583['query'][_0x2e55a7(0xe9)]+'%'},_0x4f476b;}})}));_0x5cc471=_['merge']({},_0x5cc471,_0xa61583[_0x13510c(0xe5)]);const _0x29f2b4={'where':_0x5cc471[_0x13510c(0xd3)]};return db[_0x13510c(0xf3)][_0x13510c(0xe7)](_0x29f2b4)[_0x13510c(0x101)](function(_0x2ec7a2){const _0x3bd4df=_0x13510c;return _0x5b163c[_0x3bd4df(0xe7)]=_0x2ec7a2,_0xa61583[_0x3bd4df(0xfe)][_0x3bd4df(0xe4)]&&(_0x5cc471[_0x3bd4df(0xe2)]=[{'all':!![]}]),db[_0x3bd4df(0xf3)][_0x3bd4df(0xdf)](_0x5cc471);})[_0x13510c(0x101)](function(_0x4843e9){const _0x4ce333=_0x13510c;return _0x5b163c[_0x4ce333(0xf4)]=_0x4843e9,_0x5b163c;})['then'](respondWithFilteredResult(_0x467034,_0x5cc471))['catch'](handleError(_0x467034,null));},exports[a601_0x5c3f8c(0xd4)]=function(_0x591506,_0x384055){const _0x2b4aaa=a601_0x5c3f8c;let _0x484c61={'raw':!![],'where':{'id':_0x591506[_0x2b4aaa(0xfc)]['id']}};const _0x24fa27={};return _0x24fa27['model']=_[_0x2b4aaa(0xd5)](db[_0x2b4aaa(0xf3)]['rawAttributes']),_0x24fa27[_0x2b4aaa(0xfe)]=_[_0x2b4aaa(0xd5)](_0x591506[_0x2b4aaa(0xfe)]),_0x24fa27['filters']=_[_0x2b4aaa(0xeb)](_0x24fa27[_0x2b4aaa(0xee)],_0x24fa27['query']),_0x484c61[_0x2b4aaa(0xfb)]=_[_0x2b4aaa(0xeb)](_0x24fa27[_0x2b4aaa(0xee)],qs[_0x2b4aaa(0xda)](_0x591506['query'][_0x2b4aaa(0xda)])),_0x484c61[_0x2b4aaa(0xfb)]=_0x484c61['attributes'][_0x2b4aaa(0xd7)]?_0x484c61[_0x2b4aaa(0xfb)]:_0x24fa27[_0x2b4aaa(0xee)],_0x591506[_0x2b4aaa(0xfe)][_0x2b4aaa(0xe4)]&&(_0x484c61[_0x2b4aaa(0xe2)]=[{'all':!![]}]),_0x484c61=_[_0x2b4aaa(0xde)]({},_0x484c61,_0x591506[_0x2b4aaa(0xe5)]),db[_0x2b4aaa(0xf3)][_0x2b4aaa(0xe6)](_0x484c61)[_0x2b4aaa(0x101)](handleEntityNotFound(_0x384055,null))[_0x2b4aaa(0x101)](respondWithResult(_0x384055,null))[_0x2b4aaa(0xd2)](handleError(_0x384055,null));},exports['create']=function(_0x343ae7,_0x342485){const _0x14cb61=a601_0x5c3f8c;return db['OpenchannelQueueReport'][_0x14cb61(0xd6)](_0x343ae7[_0x14cb61(0xf0)],{})[_0x14cb61(0x101)](respondWithResult(_0x342485,0xc9))[_0x14cb61(0xd2)](handleError(_0x342485,null));},exports['update']=function(_0x57445a,_0xa540dd){const _0x964ea6=a601_0x5c3f8c;return _0x57445a[_0x964ea6(0xf0)]['id']&&delete _0x57445a[_0x964ea6(0xf0)]['id'],db['OpenchannelQueueReport'][_0x964ea6(0xe6)]({'where':{'id':_0x57445a['params']['id']}})[_0x964ea6(0x101)](handleEntityNotFound(_0xa540dd,null))[_0x964ea6(0x101)](saveUpdates(_0x57445a[_0x964ea6(0xf0)],null))[_0x964ea6(0x101)](respondWithResult(_0xa540dd,null))[_0x964ea6(0xd2)](handleError(_0xa540dd,null));},exports[a601_0x5c3f8c(0xfd)]=function(_0x5422f8,_0x42fbec){const _0x5ed743=a601_0x5c3f8c;return db[_0x5ed743(0xf3)][_0x5ed743(0xe6)]({'where':{'id':_0x5422f8['params']['id']}})[_0x5ed743(0x101)](handleEntityNotFound(_0x42fbec,null))['then'](removeEntity(_0x42fbec,null))[_0x5ed743(0xd2)](handleError(_0x42fbec,null));},exports[a601_0x5c3f8c(0xef)]=function(_0x375fc8,_0x39f27f){const _0x367355=a601_0x5c3f8c;return db['OpenchannelQueueReport'][_0x367355(0xef)]()[_0x367355(0x101)](respondWithResult(_0x39f27f,null))[_0x367355(0xd2)](handleError(_0x39f27f,null));}; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.model.js b/server/api/openchannelQueueReport/openchannelQueueReport.model.js index 060e4b9..82dbd97 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.model.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.model.js @@ -1 +1 @@ -const a602_0x3935=['./openchannelQueueReport.options','function','sequelize','./openchannelQueueReport.attributes','exports','init'];(function(_0x562501,_0x3a86f9){const _0x39359c=function(_0x521ecc){while(--_0x521ecc){_0x562501['push'](_0x562501['shift']());}};_0x39359c(++_0x3a86f9);}(a602_0x3935,0x11f));const a602_0x521e=function(_0x562501,_0x3a86f9){_0x562501=_0x562501-0xd9;let _0x39359c=a602_0x3935[_0x562501];return _0x39359c;};const a602_0x1c942a=a602_0x521e;'use strict';const {Model}=require(a602_0x1c942a(0xdc)),{attributes}=require(a602_0x1c942a(0xdd)),{options}=require(a602_0x1c942a(0xda));class OpenchannelQueueReport extends Model{}function init(_0x21d9bc,_0xd95f60){const _0x469359=a602_0x1c942a,_0x2a9ebb=options(_0x21d9bc),_0x32be8f=typeof _0xd95f60===_0x469359(0xdb)?_0xd95f60(_0x2a9ebb):_0x2a9ebb;return OpenchannelQueueReport[_0x469359(0xd9)](attributes,_0x32be8f),OpenchannelQueueReport;}module[a602_0x1c942a(0xde)]['OpenchannelQueueReport']=OpenchannelQueueReport,module[a602_0x1c942a(0xde)][a602_0x1c942a(0xd9)]=init; \ No newline at end of file +const a602_0x3cf3=['sequelize','function','./openchannelQueueReport.options','./openchannelQueueReport.attributes','OpenchannelQueueReport','init'];(function(_0x239714,_0x1651f8){const _0x3cf3a9=function(_0x51b732){while(--_0x51b732){_0x239714['push'](_0x239714['shift']());}};_0x3cf3a9(++_0x1651f8);}(a602_0x3cf3,0x9f));const a602_0x51b7=function(_0x239714,_0x1651f8){_0x239714=_0x239714-0x19c;let _0x3cf3a9=a602_0x3cf3[_0x239714];return _0x3cf3a9;};const a602_0x34d29e=a602_0x51b7;'use strict';const {Model}=require(a602_0x34d29e(0x19f)),{attributes}=require(a602_0x34d29e(0x19c)),{options}=require(a602_0x34d29e(0x1a1));class OpenchannelQueueReport extends Model{}function init(_0x58867c,_0x21a5e0){const _0x35bb9d=a602_0x34d29e,_0x8d5a44=options(_0x58867c),_0x36c335=typeof _0x21a5e0===_0x35bb9d(0x1a0)?_0x21a5e0(_0x8d5a44):_0x8d5a44;return OpenchannelQueueReport[_0x35bb9d(0x19e)](attributes,_0x36c335),OpenchannelQueueReport;}module['exports'][a602_0x34d29e(0x19d)]=OpenchannelQueueReport,module['exports'][a602_0x34d29e(0x19e)]=init; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.options.js b/server/api/openchannelQueueReport/openchannelQueueReport.options.js index 664f2d5..1077499 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.options.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.options.js @@ -1 +1 @@ -var a603_0x1966=['report_openchannel_queue','uniqueid','exports'];(function(_0x540ed2,_0x15dc39){var _0x19669d=function(_0x95d24a){while(--_0x95d24a){_0x540ed2['push'](_0x540ed2['shift']());}};_0x19669d(++_0x15dc39);}(a603_0x1966,0x16f));var a603_0x95d2=function(_0x540ed2,_0x15dc39){_0x540ed2=_0x540ed2-0x16b;var _0x19669d=a603_0x1966[_0x540ed2];return _0x19669d;};var a603_0x2d8bc3=a603_0x95d2;function options(_0x59bef2){var _0x5f0915=a603_0x95d2;return{'sequelize':_0x59bef2,'tableName':_0x5f0915(0x16d),'paranoid':![],'indexes':[{'name':_0x5f0915(0x16b),'fields':['uniqueid']}],'timestamps':!![]};}module[a603_0x2d8bc3(0x16c)]['options']=options; \ No newline at end of file +var a603_0x3576=['options','report_openchannel_queue','uniqueid'];(function(_0x3e1133,_0x55bd55){var _0x35762b=function(_0x266d00){while(--_0x266d00){_0x3e1133['push'](_0x3e1133['shift']());}};_0x35762b(++_0x55bd55);}(a603_0x3576,0x123));var a603_0x266d=function(_0x3e1133,_0x55bd55){_0x3e1133=_0x3e1133-0x1e1;var _0x35762b=a603_0x3576[_0x3e1133];return _0x35762b;};var a603_0x44ce1a=a603_0x266d;function options(_0x11120e){var _0x2e41a1=a603_0x266d;return{'sequelize':_0x11120e,'tableName':_0x2e41a1(0x1e2),'paranoid':![],'indexes':[{'name':_0x2e41a1(0x1e3),'fields':[_0x2e41a1(0x1e3)]}],'timestamps':!![]};}module['exports'][a603_0x44ce1a(0x1e1)]=options; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js b/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js index c9f5fde..4a3d3ca 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js @@ -1 +1 @@ -const a604_0x34ef=['body','UpdateOpenchannelQueueReport','message','stringify','raw','update','then','../../mysqldb','CreateOpenchannelQueueReport','catch','options','rpc','debug','error','create','where','limit','../../config/logger','OpenchannelQueueReport','attributes'];(function(_0x26f997,_0x48e519){const _0x34efb8=function(_0x818ff7){while(--_0x818ff7){_0x26f997['push'](_0x26f997['shift']());}};_0x34efb8(++_0x48e519);}(a604_0x34ef,0x89));const a604_0x818f=function(_0x26f997,_0x48e519){_0x26f997=_0x26f997-0xad;let _0x34efb8=a604_0x34ef[_0x26f997];return _0x34efb8;};const a604_0x583066=a604_0x818f;'use strict';const db=require(a604_0x583066(0xb7))['db'],logger=require(a604_0x583066(0xad))(a604_0x583066(0xbb));exports['CreateOpenchannelQueueReport']=function(_0x30b471){const _0x2978c1=this;return new Promise(function(_0x851231,_0x26273d){const _0x31f725=a604_0x818f;return db[_0x31f725(0xae)][_0x31f725(0xbe)](_0x30b471[_0x31f725(0xb0)],{'raw':_0x30b471[_0x31f725(0xba)]?_0x30b471['options'][_0x31f725(0xb4)]===undefined?!![]:![]:!![]})[_0x31f725(0xb6)](function(_0x5e1e37){const _0x170c44=_0x31f725;logger['info'](_0x170c44(0xb8),_0x30b471),logger[_0x170c44(0xbc)](_0x170c44(0xb8),_0x30b471,JSON[_0x170c44(0xb3)](_0x5e1e37)),_0x851231(_0x5e1e37);})[_0x31f725(0xb9)](function(_0x9c99f9){const _0x46043a=_0x31f725;logger[_0x46043a(0xbd)](_0x46043a(0xb8),_0x9c99f9['message'],_0x30b471),_0x26273d(_0x2978c1['error'](0x1f4,_0x9c99f9[_0x46043a(0xb2)]));});});},exports[a604_0x583066(0xb1)]=function(_0x75524f){const _0x54b3df=this;return new Promise(function(_0xdcc13e,_0x3bc5d4){const _0x361358=a604_0x818f;return db[_0x361358(0xae)][_0x361358(0xb5)](_0x75524f['body'],{'raw':_0x75524f[_0x361358(0xba)]?_0x75524f[_0x361358(0xba)][_0x361358(0xb4)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x75524f[_0x361358(0xba)]?_0x75524f[_0x361358(0xba)][_0x361358(0xbf)]||null:null,'attributes':_0x75524f['options']?_0x75524f[_0x361358(0xba)][_0x361358(0xaf)]||null:null,'limit':_0x75524f['options']?_0x75524f[_0x361358(0xba)][_0x361358(0xc0)]||null:null})[_0x361358(0xb6)](function(_0x3ffb51){const _0x204fe0=_0x361358;logger['info'](_0x204fe0(0xb1),_0x75524f),logger[_0x204fe0(0xbc)](_0x204fe0(0xb1),_0x75524f,JSON[_0x204fe0(0xb3)](_0x3ffb51)),_0xdcc13e(_0x3ffb51);})[_0x361358(0xb9)](function(_0x462d6d){const _0x53aa56=_0x361358;logger['error'](_0x53aa56(0xb1),_0x462d6d[_0x53aa56(0xb2)],_0x75524f),_0x3bc5d4(_0x54b3df[_0x53aa56(0xbd)](0x1f4,_0x462d6d[_0x53aa56(0xb2)]));});});}; \ No newline at end of file +const a604_0x1143=['OpenchannelQueueReport','rpc','limit','info','raw','catch','UpdateOpenchannelQueueReport','CreateOpenchannelQueueReport','../../mysqldb','create','attributes','error','body','then','options','debug','../../config/logger','message','update','stringify'];(function(_0x3f92a0,_0x3b0624){const _0x114351=function(_0x5c2480){while(--_0x5c2480){_0x3f92a0['push'](_0x3f92a0['shift']());}};_0x114351(++_0x3b0624);}(a604_0x1143,0xef));const a604_0x5c24=function(_0x3f92a0,_0x3b0624){_0x3f92a0=_0x3f92a0-0xd3;let _0x114351=a604_0x1143[_0x3f92a0];return _0x114351;};const a604_0x4d469b=a604_0x5c24;'use strict';const db=require(a604_0x4d469b(0xdc))['db'],logger=require(a604_0x4d469b(0xe4))(a604_0x4d469b(0xd5));exports[a604_0x4d469b(0xdb)]=function(_0x131162){const _0x5ce3a6=this;return new Promise(function(_0x2e4778,_0x2ad051){const _0x114139=a604_0x5c24;return db[_0x114139(0xd4)][_0x114139(0xdd)](_0x131162[_0x114139(0xe0)],{'raw':_0x131162[_0x114139(0xe2)]?_0x131162[_0x114139(0xe2)][_0x114139(0xd8)]===undefined?!![]:![]:!![]})[_0x114139(0xe1)](function(_0x2ab937){const _0xd93f40=_0x114139;logger[_0xd93f40(0xd7)](_0xd93f40(0xdb),_0x131162),logger[_0xd93f40(0xe3)](_0xd93f40(0xdb),_0x131162,JSON[_0xd93f40(0xd3)](_0x2ab937)),_0x2e4778(_0x2ab937);})['catch'](function(_0x5a3d52){const _0x425165=_0x114139;logger['error']('CreateOpenchannelQueueReport',_0x5a3d52[_0x425165(0xe5)],_0x131162),_0x2ad051(_0x5ce3a6[_0x425165(0xdf)](0x1f4,_0x5a3d52['message']));});});},exports[a604_0x4d469b(0xda)]=function(_0x477e61){const _0x30a8dd=this;return new Promise(function(_0x2ece9f,_0x5e7a64){const _0x225623=a604_0x5c24;return db[_0x225623(0xd4)][_0x225623(0xe6)](_0x477e61['body'],{'raw':_0x477e61[_0x225623(0xe2)]?_0x477e61[_0x225623(0xe2)]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x477e61['options']?_0x477e61[_0x225623(0xe2)]['where']||null:null,'attributes':_0x477e61[_0x225623(0xe2)]?_0x477e61['options'][_0x225623(0xde)]||null:null,'limit':_0x477e61[_0x225623(0xe2)]?_0x477e61[_0x225623(0xe2)][_0x225623(0xd6)]||null:null})[_0x225623(0xe1)](function(_0x22ed88){const _0x369dad=_0x225623;logger['info'](_0x369dad(0xda),_0x477e61),logger[_0x369dad(0xe3)](_0x369dad(0xda),_0x477e61,JSON[_0x369dad(0xd3)](_0x22ed88)),_0x2ece9f(_0x22ed88);})[_0x225623(0xd9)](function(_0x1d08a3){const _0x4eed2e=_0x225623;logger['error'](_0x4eed2e(0xda),_0x1d08a3[_0x4eed2e(0xe5)],_0x477e61),_0x5e7a64(_0x30a8dd[_0x4eed2e(0xdf)](0x1f4,_0x1d08a3[_0x4eed2e(0xe5)]));});});}; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/index.js b/server/api/openchannelTransferReport/index.js index 50e6152..c332651 100644 --- a/server/api/openchannelTransferReport/index.js +++ b/server/api/openchannelTransferReport/index.js @@ -1 +1 @@ -const a605_0x2e66=['exports','destroy','../../components/auth/service','describe','/:id','isAuthenticated','index','Router','get','update','delete','./openchannelTransferReport.controller','express','put','show'];(function(_0x3c8096,_0x304d9d){const _0x2e661b=function(_0x4f69b3){while(--_0x4f69b3){_0x3c8096['push'](_0x3c8096['shift']());}};_0x2e661b(++_0x304d9d);}(a605_0x2e66,0xaa));const a605_0x4f69=function(_0x3c8096,_0x304d9d){_0x3c8096=_0x3c8096-0x196;let _0x2e661b=a605_0x2e66[_0x3c8096];return _0x2e661b;};const a605_0x3c0e22=a605_0x4f69;'use strict';const express=require(a605_0x3c0e22(0x19d)),router=express[a605_0x3c0e22(0x198)](),auth=require(a605_0x3c0e22(0x1a2)),controller=require(a605_0x3c0e22(0x19c));router[a605_0x3c0e22(0x199)]('/',auth[a605_0x3c0e22(0x196)](),controller[a605_0x3c0e22(0x197)]),router[a605_0x3c0e22(0x199)]('/describe',auth['isAuthenticated'](),controller[a605_0x3c0e22(0x1a3)]),router['get'](a605_0x3c0e22(0x1a4),auth[a605_0x3c0e22(0x196)](),controller[a605_0x3c0e22(0x19f)]),router['post']('/',auth[a605_0x3c0e22(0x196)](),controller['create']),router[a605_0x3c0e22(0x19e)]('/:id',auth[a605_0x3c0e22(0x196)](),controller[a605_0x3c0e22(0x19a)]),router[a605_0x3c0e22(0x19b)]('/:id',auth[a605_0x3c0e22(0x196)](),controller[a605_0x3c0e22(0x1a1)]),module[a605_0x3c0e22(0x1a0)]=router; \ No newline at end of file +const a605_0x3043=['exports','update','./openchannelTransferReport.controller','Router','post','put','show','../../components/auth/service','create','get','/:id','destroy','express','isAuthenticated'];(function(_0x200952,_0x3b7800){const _0x304334=function(_0x5b6f9e){while(--_0x5b6f9e){_0x200952['push'](_0x200952['shift']());}};_0x304334(++_0x3b7800);}(a605_0x3043,0xf9));const a605_0x5b6f=function(_0x200952,_0x3b7800){_0x200952=_0x200952-0x123;let _0x304334=a605_0x3043[_0x200952];return _0x304334;};const a605_0x5431dc=a605_0x5b6f;'use strict';const express=require(a605_0x5431dc(0x124)),router=express[a605_0x5431dc(0x129)](),auth=require(a605_0x5431dc(0x12d)),controller=require(a605_0x5431dc(0x128));router[a605_0x5431dc(0x12f)]('/',auth['isAuthenticated'](),controller['index']),router['get']('/describe',auth[a605_0x5431dc(0x125)](),controller['describe']),router['get'](a605_0x5431dc(0x130),auth['isAuthenticated'](),controller[a605_0x5431dc(0x12c)]),router[a605_0x5431dc(0x12a)]('/',auth[a605_0x5431dc(0x125)](),controller[a605_0x5431dc(0x12e)]),router[a605_0x5431dc(0x12b)](a605_0x5431dc(0x130),auth[a605_0x5431dc(0x125)](),controller[a605_0x5431dc(0x127)]),router['delete']('/:id',auth[a605_0x5431dc(0x125)](),controller[a605_0x5431dc(0x123)]),module[a605_0x5431dc(0x126)]=router; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js b/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js index b504843..e6a1440 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js @@ -1 +1 @@ -const a606_0x29a9=['STRING','account','attributes','ENUM','DATE','queue','agent'];(function(_0x3bd4e3,_0x569f37){const _0x29a903=function(_0x587a0a){while(--_0x587a0a){_0x3bd4e3['push'](_0x3bd4e3['shift']());}};_0x29a903(++_0x569f37);}(a606_0x29a9,0x1db));const a606_0x587a=function(_0x3bd4e3,_0x569f37){_0x3bd4e3=_0x3bd4e3-0xdf;let _0x29a903=a606_0x29a9[_0x3bd4e3];return _0x29a903;};const a606_0x2f632d=a606_0x587a;'use strict';const {DataTypes}=require('sequelize'),attributes={'uniqueid':{'type':DataTypes[a606_0x2f632d(0xe0)],'allowNull':![]},'type':{'type':DataTypes[a606_0x2f632d(0xe3)](a606_0x2f632d(0xe1),a606_0x2f632d(0xdf),a606_0x2f632d(0xe5)),'allowNull':![],'defaultValue':'queue'},'transferredAt':{'type':DataTypes[a606_0x2f632d(0xe4)],'allowNull':![],'defaultValue':DataTypes['NOW']}};module['exports'][a606_0x2f632d(0xe2)]=attributes; \ No newline at end of file +const a606_0x2bfb=['STRING','sequelize','ENUM','queue','attributes','account','NOW','DATE'];(function(_0x28b544,_0x84a3eb){const _0x2bfbc7=function(_0x589e64){while(--_0x589e64){_0x28b544['push'](_0x28b544['shift']());}};_0x2bfbc7(++_0x84a3eb);}(a606_0x2bfb,0x9a));const a606_0x589e=function(_0x28b544,_0x84a3eb){_0x28b544=_0x28b544-0x156;let _0x2bfbc7=a606_0x2bfb[_0x28b544];return _0x2bfbc7;};const a606_0x2acfb4=a606_0x589e;'use strict';const {DataTypes}=require(a606_0x2acfb4(0x15d)),attributes={'uniqueid':{'type':DataTypes[a606_0x2acfb4(0x15c)],'allowNull':![]},'type':{'type':DataTypes[a606_0x2acfb4(0x156)](a606_0x2acfb4(0x159),'agent',a606_0x2acfb4(0x157)),'allowNull':![],'defaultValue':a606_0x2acfb4(0x157)},'transferredAt':{'type':DataTypes[a606_0x2acfb4(0x15b)],'allowNull':![],'defaultValue':DataTypes[a606_0x2acfb4(0x15a)]}};module['exports'][a606_0x2acfb4(0x158)]=attributes; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.controller.js b/server/api/openchannelTransferReport/openchannelTransferReport.controller.js index 9e79625..7b53696 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.controller.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.controller.js @@ -1 +1 @@ -const a607_0x19f4=['catch','destroy','end','includeAll','status','offset','rows','fieldName','include','filter','Content-Range','map','type','query','findOne','json','options','then','params','pick','findAll','send','update','set','intersection','name','../../config/logger','where','error','show','rawAttributes','index','stack','undefined','OpenchannelTransferReport','keys','create','count','nolimit','filters','sort','key','length','merge','body','limit','attributes','model','fields','../../mysqldb','order','describe','../../components/parsers/qs'];(function(_0xb9aa52,_0x39d69f){const _0x19f409=function(_0x3bf370){while(--_0x3bf370){_0xb9aa52['push'](_0xb9aa52['shift']());}};_0x19f409(++_0x39d69f);}(a607_0x19f4,0x19f));const a607_0x3bf3=function(_0xb9aa52,_0x39d69f){_0xb9aa52=_0xb9aa52-0x77;let _0x19f409=a607_0x19f4[_0xb9aa52];return _0x19f409;};const a607_0x3858a4=a607_0x3bf3;'use strict';const _=require('lodash'),qs=require(a607_0x3858a4(0x7f)),logger=require(a607_0x3858a4(0x9a))('api'),{db}=require(a607_0x3858a4(0x7c)),{Op}=require('sequelize');function respondWithResult(_0x7d227a,_0x568a06){return _0x568a06=_0x568a06||0xc8,function(_0x10d165){const _0x3ed7ab=a607_0x3bf3;if(_0x10d165)return _0x7d227a['status'](_0x568a06)[_0x3ed7ab(0x8f)](_0x10d165);};}function respondWithFilteredResult(_0x3bf9e3,_0x59fe86){return function(_0x1521e8){const _0x8aa3c4=a607_0x3bf3;if(_0x1521e8){const _0x205aac=_0x1521e8[_0x8aa3c4(0xa5)],_0x36ade0=_0x59fe86[_0x8aa3c4(0x85)];let _0x4a5850=_0x59fe86[_0x8aa3c4(0x85)]+_0x59fe86[_0x8aa3c4(0x78)],_0x3ca6a9;return _0x4a5850>=_0x205aac?(_0x4a5850=_0x205aac,_0x3ca6a9=0xc8):_0x3ca6a9=0xce,_0x3bf9e3[_0x8aa3c4(0x84)](_0x3ca6a9),_0x3bf9e3[_0x8aa3c4(0x97)](_0x8aa3c4(0x8a),_0x36ade0+'-'+_0x4a5850+'/'+_0x205aac)[_0x8aa3c4(0x8f)](_0x1521e8);}return null;};}function saveUpdates(_0x1d6ab8){return function(_0x30fad5){const _0x32ade0=a607_0x3bf3;if(_0x30fad5)return _0x30fad5[_0x32ade0(0x96)](_0x1d6ab8)[_0x32ade0(0x91)](function(_0x3962c3){return _0x3962c3;});return null;};}function removeEntity(_0x29ba7a){return function(_0x2d1d0b){const _0x272f08=a607_0x3bf3;if(_0x2d1d0b)return _0x2d1d0b[_0x272f08(0x81)]()[_0x272f08(0x91)](function(){const _0x502d27=_0x272f08;_0x29ba7a[_0x502d27(0x84)](0xcc)[_0x502d27(0x82)]();});};}function handleEntityNotFound(_0x18b74f){return function(_0x1f0e71){return!_0x1f0e71&&_0x18b74f['sendStatus'](0x194),_0x1f0e71;};}function handleError(_0x5c31e9,_0x23237c){return _0x23237c=_0x23237c||0x1f4,function(_0x55a786){const _0x3e0716=a607_0x3bf3;logger[_0x3e0716(0x9c)](_0x55a786[_0x3e0716(0xa0)]),_0x55a786[_0x3e0716(0x99)]&&delete _0x55a786[_0x3e0716(0x99)],_0x5c31e9[_0x3e0716(0x84)](_0x23237c)[_0x3e0716(0x95)](_0x55a786);};}exports[a607_0x3858a4(0x9f)]=function(_0x82345,_0x45ff8c){const _0x21b731=a607_0x3858a4;let _0x212624={};const _0x282dfa={},_0x2bc878={'count':0x0,'rows':[]},_0x2a510e=_[_0x21b731(0x8b)](db[_0x21b731(0xa2)][_0x21b731(0x9e)],function(_0x298285){const _0x5327bc=_0x21b731;return{'name':_0x298285[_0x5327bc(0x87)],'type':_0x298285['type'][_0x5327bc(0xa9)]};});_0x282dfa[_0x21b731(0x7a)]=_[_0x21b731(0x8b)](_0x2a510e,_0x21b731(0x99)),_0x282dfa[_0x21b731(0x8d)]=_[_0x21b731(0xa3)](_0x82345['query']),_0x282dfa['filters']=_[_0x21b731(0x98)](_0x282dfa[_0x21b731(0x7a)],_0x282dfa[_0x21b731(0x8d)]),_0x212624['attributes']=_['intersection'](_0x282dfa[_0x21b731(0x7a)],qs[_0x21b731(0x7b)](_0x82345['query']['fields'])),_0x212624[_0x21b731(0x79)]=_0x212624[_0x21b731(0x79)][_0x21b731(0xaa)]?_0x212624[_0x21b731(0x79)]:_0x282dfa[_0x21b731(0x7a)];typeof _0x82345['query'][_0x21b731(0xa6)]===_0x21b731(0xa1)&&(_0x212624['limit']=qs['limit'](_0x82345[_0x21b731(0x8d)][_0x21b731(0x78)]),_0x212624['offset']=qs[_0x21b731(0x85)](_0x82345[_0x21b731(0x8d)][_0x21b731(0x85)]));_0x212624[_0x21b731(0x7d)]=qs[_0x21b731(0xa8)](_0x82345['query'][_0x21b731(0xa8)]),_0x212624[_0x21b731(0x9b)]=qs[_0x21b731(0xa7)](_[_0x21b731(0x93)](_0x82345[_0x21b731(0x8d)],_0x282dfa[_0x21b731(0xa7)]),_0x2a510e);_0x82345[_0x21b731(0x8d)][_0x21b731(0x89)]&&(_0x212624[_0x21b731(0x9b)]=_['merge'](_0x212624[_0x21b731(0x9b)],{[Op['or']]:_[_0x21b731(0x8b)](_0x2a510e,function(_0x18ebe8){const _0x4e5ab0=_0x21b731;if(_0x18ebe8[_0x4e5ab0(0x8c)]!=='VIRTUAL'){const _0x49de7e={};return _0x49de7e[_0x18ebe8[_0x4e5ab0(0x99)]]={[Op['like']]:'%'+_0x82345[_0x4e5ab0(0x8d)]['filter']+'%'},_0x49de7e;}})}));_0x212624=_[_0x21b731(0xab)]({},_0x212624,_0x82345[_0x21b731(0x90)]);const _0x1ae59d={'where':_0x212624['where']};return db['OpenchannelTransferReport'][_0x21b731(0xa5)](_0x1ae59d)[_0x21b731(0x91)](function(_0x215caa){const _0x44bef8=_0x21b731;return _0x2bc878[_0x44bef8(0xa5)]=_0x215caa,_0x82345[_0x44bef8(0x8d)][_0x44bef8(0x83)]&&(_0x212624[_0x44bef8(0x88)]=[{'all':!![]}]),db[_0x44bef8(0xa2)][_0x44bef8(0x94)](_0x212624);})['then'](function(_0x3b7821){const _0x36f4cf=_0x21b731;return _0x2bc878[_0x36f4cf(0x86)]=_0x3b7821,_0x2bc878;})[_0x21b731(0x91)](respondWithFilteredResult(_0x45ff8c,_0x212624))[_0x21b731(0x80)](handleError(_0x45ff8c,null));},exports[a607_0x3858a4(0x9d)]=function(_0x1388a3,_0x4b25c7){const _0x4b7ffc=a607_0x3858a4;let _0x1a3e9f={'raw':!![],'where':{'id':_0x1388a3[_0x4b7ffc(0x92)]['id']}};const _0x4615d9={};return _0x4615d9['model']=_[_0x4b7ffc(0xa3)](db['OpenchannelTransferReport'][_0x4b7ffc(0x9e)]),_0x4615d9[_0x4b7ffc(0x8d)]=_[_0x4b7ffc(0xa3)](_0x1388a3[_0x4b7ffc(0x8d)]),_0x4615d9[_0x4b7ffc(0xa7)]=_['intersection'](_0x4615d9[_0x4b7ffc(0x7a)],_0x4615d9['query']),_0x1a3e9f['attributes']=_[_0x4b7ffc(0x98)](_0x4615d9[_0x4b7ffc(0x7a)],qs['fields'](_0x1388a3[_0x4b7ffc(0x8d)][_0x4b7ffc(0x7b)])),_0x1a3e9f[_0x4b7ffc(0x79)]=_0x1a3e9f[_0x4b7ffc(0x79)][_0x4b7ffc(0xaa)]?_0x1a3e9f[_0x4b7ffc(0x79)]:_0x4615d9[_0x4b7ffc(0x7a)],_0x1388a3['query'][_0x4b7ffc(0x83)]&&(_0x1a3e9f['include']=[{'all':!![]}]),_0x1a3e9f=_[_0x4b7ffc(0xab)]({},_0x1a3e9f,_0x1388a3[_0x4b7ffc(0x90)]),db[_0x4b7ffc(0xa2)]['findOne'](_0x1a3e9f)[_0x4b7ffc(0x91)](handleEntityNotFound(_0x4b25c7,null))[_0x4b7ffc(0x91)](respondWithResult(_0x4b25c7,null))[_0x4b7ffc(0x80)](handleError(_0x4b25c7,null));},exports[a607_0x3858a4(0xa4)]=function(_0x3f6220,_0x5b6ac1){const _0xea4569=a607_0x3858a4;return db['OpenchannelTransferReport'][_0xea4569(0xa4)](_0x3f6220['body'],{})[_0xea4569(0x91)](respondWithResult(_0x5b6ac1,0xc9))[_0xea4569(0x80)](handleError(_0x5b6ac1,null));},exports[a607_0x3858a4(0x96)]=function(_0x3b5a02,_0xecc991){const _0x13493a=a607_0x3858a4;return _0x3b5a02[_0x13493a(0x77)]['id']&&delete _0x3b5a02[_0x13493a(0x77)]['id'],db[_0x13493a(0xa2)][_0x13493a(0x8e)]({'where':{'id':_0x3b5a02[_0x13493a(0x92)]['id']}})[_0x13493a(0x91)](handleEntityNotFound(_0xecc991,null))['then'](saveUpdates(_0x3b5a02['body'],null))[_0x13493a(0x91)](respondWithResult(_0xecc991,null))[_0x13493a(0x80)](handleError(_0xecc991,null));},exports[a607_0x3858a4(0x81)]=function(_0x3a6daa,_0x383c3e){const _0x56a2bd=a607_0x3858a4;return db['OpenchannelTransferReport'][_0x56a2bd(0x8e)]({'where':{'id':_0x3a6daa[_0x56a2bd(0x92)]['id']}})[_0x56a2bd(0x91)](handleEntityNotFound(_0x383c3e,null))[_0x56a2bd(0x91)](removeEntity(_0x383c3e,null))[_0x56a2bd(0x80)](handleError(_0x383c3e,null));},exports[a607_0x3858a4(0x7e)]=function(_0x1ad062,_0x56ac3f){const _0x2d3617=a607_0x3858a4;return db[_0x2d3617(0xa2)][_0x2d3617(0x7e)]()[_0x2d3617(0x91)](respondWithResult(_0x56ac3f,null))[_0x2d3617(0x80)](handleError(_0x56ac3f,null));}; \ No newline at end of file +const a607_0x2406=['catch','name','type','includeAll','destroy','keys','offset','update','findOne','status','fields','model','lodash','where','sequelize','OpenchannelTransferReport','options','stack','api','params','end','send','../../components/parsers/qs','sort','key','intersection','nolimit','attributes','create','length','merge','json','map','filters','filter','then','rawAttributes','count','VIRTUAL','undefined','limit','pick','../../mysqldb','body','set','order','like','describe','Content-Range','include','query','error','findAll'];(function(_0x22b92c,_0x1f8ed6){const _0x2406d1=function(_0x29c964){while(--_0x29c964){_0x22b92c['push'](_0x22b92c['shift']());}};_0x2406d1(++_0x1f8ed6);}(a607_0x2406,0x8a));const a607_0x29c9=function(_0x22b92c,_0x1f8ed6){_0x22b92c=_0x22b92c-0xdf;let _0x2406d1=a607_0x2406[_0x22b92c];return _0x2406d1;};const a607_0x12b21a=a607_0x29c9;'use strict';const _=require(a607_0x12b21a(0x100)),qs=require(a607_0x12b21a(0x10a)),logger=require('../../config/logger')(a607_0x12b21a(0x106)),{db}=require(a607_0x12b21a(0xe9)),{Op}=require(a607_0x12b21a(0x102));function respondWithResult(_0x2d0b99,_0x4d0e20){return _0x4d0e20=_0x4d0e20||0xc8,function(_0x4a4bfc){const _0x2c92fc=a607_0x29c9;if(_0x4a4bfc)return _0x2d0b99['status'](_0x4d0e20)[_0x2c92fc(0x113)](_0x4a4bfc);};}function respondWithFilteredResult(_0x5533ae,_0x59a9ad){return function(_0x589e3e){const _0x112b7c=a607_0x29c9;if(_0x589e3e){const _0x3552af=_0x589e3e[_0x112b7c(0xe4)],_0x2ad63a=_0x59a9ad[_0x112b7c(0xfa)];let _0x321f3f=_0x59a9ad[_0x112b7c(0xfa)]+_0x59a9ad['limit'],_0x17aa75;return _0x321f3f>=_0x3552af?(_0x321f3f=_0x3552af,_0x17aa75=0xc8):_0x17aa75=0xce,_0x5533ae[_0x112b7c(0xfd)](_0x17aa75),_0x5533ae[_0x112b7c(0xeb)](_0x112b7c(0xef),_0x2ad63a+'-'+_0x321f3f+'/'+_0x3552af)[_0x112b7c(0x113)](_0x589e3e);}return null;};}function saveUpdates(_0x3f7969){return function(_0x455f9a){const _0x4f0c57=a607_0x29c9;if(_0x455f9a)return _0x455f9a[_0x4f0c57(0xfb)](_0x3f7969)[_0x4f0c57(0xe2)](function(_0x33a17e){return _0x33a17e;});return null;};}function removeEntity(_0x13c934){return function(_0x158d8c){const _0x399b47=a607_0x29c9;if(_0x158d8c)return _0x158d8c[_0x399b47(0xf8)]()[_0x399b47(0xe2)](function(){const _0x92cb35=_0x399b47;_0x13c934['status'](0xcc)[_0x92cb35(0x108)]();});};}function handleEntityNotFound(_0x39da6e){return function(_0x260fc6){return!_0x260fc6&&_0x39da6e['sendStatus'](0x194),_0x260fc6;};}function handleError(_0x2920f5,_0x21c390){return _0x21c390=_0x21c390||0x1f4,function(_0x1d4361){const _0x581e77=a607_0x29c9;logger[_0x581e77(0xf2)](_0x1d4361[_0x581e77(0x105)]),_0x1d4361[_0x581e77(0xf5)]&&delete _0x1d4361['name'],_0x2920f5[_0x581e77(0xfd)](_0x21c390)[_0x581e77(0x109)](_0x1d4361);};}exports['index']=function(_0x2cf3e3,_0x1799d8){const _0x4e8c20=a607_0x12b21a;let _0x4594cb={};const _0x5ef5ce={},_0xbce10e={'count':0x0,'rows':[]},_0x398843=_[_0x4e8c20(0xdf)](db[_0x4e8c20(0x103)][_0x4e8c20(0xe3)],function(_0x4a57ae){const _0x10ac8a=_0x4e8c20;return{'name':_0x4a57ae['fieldName'],'type':_0x4a57ae['type'][_0x10ac8a(0x10c)]};});_0x5ef5ce[_0x4e8c20(0xff)]=_[_0x4e8c20(0xdf)](_0x398843,'name'),_0x5ef5ce[_0x4e8c20(0xf1)]=_[_0x4e8c20(0xf9)](_0x2cf3e3[_0x4e8c20(0xf1)]),_0x5ef5ce[_0x4e8c20(0xe0)]=_[_0x4e8c20(0x10d)](_0x5ef5ce[_0x4e8c20(0xff)],_0x5ef5ce[_0x4e8c20(0xf1)]),_0x4594cb[_0x4e8c20(0x10f)]=_[_0x4e8c20(0x10d)](_0x5ef5ce[_0x4e8c20(0xff)],qs[_0x4e8c20(0xfe)](_0x2cf3e3['query'][_0x4e8c20(0xfe)])),_0x4594cb[_0x4e8c20(0x10f)]=_0x4594cb[_0x4e8c20(0x10f)][_0x4e8c20(0x111)]?_0x4594cb[_0x4e8c20(0x10f)]:_0x5ef5ce['model'];typeof _0x2cf3e3[_0x4e8c20(0xf1)][_0x4e8c20(0x10e)]===_0x4e8c20(0xe6)&&(_0x4594cb[_0x4e8c20(0xe7)]=qs['limit'](_0x2cf3e3['query'][_0x4e8c20(0xe7)]),_0x4594cb['offset']=qs[_0x4e8c20(0xfa)](_0x2cf3e3[_0x4e8c20(0xf1)]['offset']));_0x4594cb[_0x4e8c20(0xec)]=qs[_0x4e8c20(0x10b)](_0x2cf3e3['query'][_0x4e8c20(0x10b)]),_0x4594cb[_0x4e8c20(0x101)]=qs[_0x4e8c20(0xe0)](_[_0x4e8c20(0xe8)](_0x2cf3e3[_0x4e8c20(0xf1)],_0x5ef5ce[_0x4e8c20(0xe0)]),_0x398843);_0x2cf3e3[_0x4e8c20(0xf1)][_0x4e8c20(0xe1)]&&(_0x4594cb['where']=_[_0x4e8c20(0x112)](_0x4594cb['where'],{[Op['or']]:_[_0x4e8c20(0xdf)](_0x398843,function(_0x259271){const _0x5567dc=_0x4e8c20;if(_0x259271[_0x5567dc(0xf6)]!==_0x5567dc(0xe5)){const _0x29806e={};return _0x29806e[_0x259271[_0x5567dc(0xf5)]]={[Op[_0x5567dc(0xed)]]:'%'+_0x2cf3e3['query'][_0x5567dc(0xe1)]+'%'},_0x29806e;}})}));_0x4594cb=_[_0x4e8c20(0x112)]({},_0x4594cb,_0x2cf3e3[_0x4e8c20(0x104)]);const _0x1dea1a={'where':_0x4594cb[_0x4e8c20(0x101)]};return db[_0x4e8c20(0x103)][_0x4e8c20(0xe4)](_0x1dea1a)[_0x4e8c20(0xe2)](function(_0x163ace){const _0xbb1c29=_0x4e8c20;return _0xbce10e[_0xbb1c29(0xe4)]=_0x163ace,_0x2cf3e3['query'][_0xbb1c29(0xf7)]&&(_0x4594cb[_0xbb1c29(0xf0)]=[{'all':!![]}]),db[_0xbb1c29(0x103)][_0xbb1c29(0xf3)](_0x4594cb);})[_0x4e8c20(0xe2)](function(_0xcb89bf){return _0xbce10e['rows']=_0xcb89bf,_0xbce10e;})[_0x4e8c20(0xe2)](respondWithFilteredResult(_0x1799d8,_0x4594cb))[_0x4e8c20(0xf4)](handleError(_0x1799d8,null));},exports['show']=function(_0x59a794,_0x397d92){const _0x4afcca=a607_0x12b21a;let _0x2cd46d={'raw':!![],'where':{'id':_0x59a794[_0x4afcca(0x107)]['id']}};const _0x40144d={};return _0x40144d[_0x4afcca(0xff)]=_['keys'](db[_0x4afcca(0x103)][_0x4afcca(0xe3)]),_0x40144d[_0x4afcca(0xf1)]=_[_0x4afcca(0xf9)](_0x59a794[_0x4afcca(0xf1)]),_0x40144d[_0x4afcca(0xe0)]=_['intersection'](_0x40144d['model'],_0x40144d[_0x4afcca(0xf1)]),_0x2cd46d['attributes']=_[_0x4afcca(0x10d)](_0x40144d[_0x4afcca(0xff)],qs[_0x4afcca(0xfe)](_0x59a794['query']['fields'])),_0x2cd46d[_0x4afcca(0x10f)]=_0x2cd46d['attributes']['length']?_0x2cd46d[_0x4afcca(0x10f)]:_0x40144d[_0x4afcca(0xff)],_0x59a794[_0x4afcca(0xf1)][_0x4afcca(0xf7)]&&(_0x2cd46d[_0x4afcca(0xf0)]=[{'all':!![]}]),_0x2cd46d=_[_0x4afcca(0x112)]({},_0x2cd46d,_0x59a794[_0x4afcca(0x104)]),db[_0x4afcca(0x103)]['findOne'](_0x2cd46d)['then'](handleEntityNotFound(_0x397d92,null))[_0x4afcca(0xe2)](respondWithResult(_0x397d92,null))['catch'](handleError(_0x397d92,null));},exports[a607_0x12b21a(0x110)]=function(_0x4433fc,_0x2c2c1b){const _0x373b5f=a607_0x12b21a;return db[_0x373b5f(0x103)][_0x373b5f(0x110)](_0x4433fc[_0x373b5f(0xea)],{})['then'](respondWithResult(_0x2c2c1b,0xc9))[_0x373b5f(0xf4)](handleError(_0x2c2c1b,null));},exports['update']=function(_0x4ccec3,_0x468c43){const _0x335d02=a607_0x12b21a;return _0x4ccec3[_0x335d02(0xea)]['id']&&delete _0x4ccec3[_0x335d02(0xea)]['id'],db[_0x335d02(0x103)][_0x335d02(0xfc)]({'where':{'id':_0x4ccec3[_0x335d02(0x107)]['id']}})[_0x335d02(0xe2)](handleEntityNotFound(_0x468c43,null))['then'](saveUpdates(_0x4ccec3[_0x335d02(0xea)],null))[_0x335d02(0xe2)](respondWithResult(_0x468c43,null))[_0x335d02(0xf4)](handleError(_0x468c43,null));},exports[a607_0x12b21a(0xf8)]=function(_0x5b1727,_0x4cb0b6){const _0x32d51b=a607_0x12b21a;return db[_0x32d51b(0x103)][_0x32d51b(0xfc)]({'where':{'id':_0x5b1727[_0x32d51b(0x107)]['id']}})[_0x32d51b(0xe2)](handleEntityNotFound(_0x4cb0b6,null))[_0x32d51b(0xe2)](removeEntity(_0x4cb0b6,null))[_0x32d51b(0xf4)](handleError(_0x4cb0b6,null));},exports[a607_0x12b21a(0xee)]=function(_0x4626de,_0x19a6d5){const _0x5be6b6=a607_0x12b21a;return db[_0x5be6b6(0x103)][_0x5be6b6(0xee)]()[_0x5be6b6(0xe2)](respondWithResult(_0x19a6d5,null))['catch'](handleError(_0x19a6d5,null));}; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.model.js b/server/api/openchannelTransferReport/openchannelTransferReport.model.js index 2cabceb..6d64a88 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.model.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.model.js @@ -1 +1 @@ -const a608_0x56f8=['exports','init','./openchannelTransferReport.attributes','sequelize','OpenchannelTransferReport','./openchannelTransferReport.options'];(function(_0x44dd15,_0x3b85c8){const _0x56f8ea=function(_0x3959cf){while(--_0x3959cf){_0x44dd15['push'](_0x44dd15['shift']());}};_0x56f8ea(++_0x3b85c8);}(a608_0x56f8,0xc2));const a608_0x3959=function(_0x44dd15,_0x3b85c8){_0x44dd15=_0x44dd15-0xf7;let _0x56f8ea=a608_0x56f8[_0x44dd15];return _0x56f8ea;};const a608_0x1f0017=a608_0x3959;'use strict';const {Model}=require(a608_0x1f0017(0xf8)),{attributes}=require(a608_0x1f0017(0xf7)),{options}=require(a608_0x1f0017(0xfa));class OpenchannelTransferReport extends Model{}function init(_0x23f49c,_0x1da168){const _0x47d586=a608_0x1f0017,_0x5be279=options(_0x23f49c),_0xb39cc3=typeof _0x1da168==='function'?_0x1da168(_0x5be279):_0x5be279;return OpenchannelTransferReport[_0x47d586(0xfc)](attributes,_0xb39cc3),OpenchannelTransferReport;}module[a608_0x1f0017(0xfb)][a608_0x1f0017(0xf9)]=OpenchannelTransferReport,module[a608_0x1f0017(0xfb)][a608_0x1f0017(0xfc)]=init; \ No newline at end of file +const a608_0x5016=['init','sequelize','exports','function','./openchannelTransferReport.attributes'];(function(_0x511c95,_0x417084){const _0x501614=function(_0x3388dd){while(--_0x3388dd){_0x511c95['push'](_0x511c95['shift']());}};_0x501614(++_0x417084);}(a608_0x5016,0x80));const a608_0x3388=function(_0x511c95,_0x417084){_0x511c95=_0x511c95-0x173;let _0x501614=a608_0x5016[_0x511c95];return _0x501614;};const a608_0x25b597=a608_0x3388;'use strict';const {Model}=require(a608_0x25b597(0x176)),{attributes}=require(a608_0x25b597(0x174)),{options}=require('./openchannelTransferReport.options');class OpenchannelTransferReport extends Model{}function init(_0x3beaeb,_0x5d4ef0){const _0x206597=a608_0x25b597,_0x10e569=options(_0x3beaeb),_0x4e87f6=typeof _0x5d4ef0===_0x206597(0x173)?_0x5d4ef0(_0x10e569):_0x10e569;return OpenchannelTransferReport['init'](attributes,_0x4e87f6),OpenchannelTransferReport;}module[a608_0x25b597(0x177)]['OpenchannelTransferReport']=OpenchannelTransferReport,module[a608_0x25b597(0x177)][a608_0x25b597(0x175)]=init; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.options.js b/server/api/openchannelTransferReport/openchannelTransferReport.options.js index bc36b2d..037e04c 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.options.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.options.js @@ -1 +1 @@ -var a609_0xd2cc=['report_openchannel_transfer','options','exports','uniqueid'];(function(_0x2fd1e0,_0x14ae43){var _0xd2cc0a=function(_0x480048){while(--_0x480048){_0x2fd1e0['push'](_0x2fd1e0['shift']());}};_0xd2cc0a(++_0x14ae43);}(a609_0xd2cc,0xc5));var a609_0x4800=function(_0x2fd1e0,_0x14ae43){_0x2fd1e0=_0x2fd1e0-0x1c8;var _0xd2cc0a=a609_0xd2cc[_0x2fd1e0];return _0xd2cc0a;};var a609_0x215ebf=a609_0x4800;function options(_0x1d6d89){var _0x83a651=a609_0x4800;return{'sequelize':_0x1d6d89,'tableName':_0x83a651(0x1cb),'paranoid':![],'indexes':[{'name':_0x83a651(0x1ca),'fields':[_0x83a651(0x1ca)]}],'timestamps':!![]};}module[a609_0x215ebf(0x1c9)][a609_0x215ebf(0x1c8)]=options; \ No newline at end of file +var a609_0xaeda=['options','report_openchannel_transfer'];(function(_0x344aaf,_0x233430){var _0xaeda29=function(_0x36bbe3){while(--_0x36bbe3){_0x344aaf['push'](_0x344aaf['shift']());}};_0xaeda29(++_0x233430);}(a609_0xaeda,0x1ac));var a609_0x36bb=function(_0x344aaf,_0x233430){_0x344aaf=_0x344aaf-0xc3;var _0xaeda29=a609_0xaeda[_0x344aaf];return _0xaeda29;};var a609_0x5054e2=a609_0x36bb;function options(_0x6c3ae5){var _0x203089=a609_0x36bb;return{'sequelize':_0x6c3ae5,'tableName':_0x203089(0xc4),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]};}module['exports'][a609_0x5054e2(0xc3)]=options; \ No newline at end of file diff --git a/server/api/pause/index.js b/server/api/pause/index.js index 161265c..4f8c025 100644 --- a/server/api/pause/index.js +++ b/server/api/pause/index.js @@ -1 +1 @@ -const a610_0x3d47=['exports','get','put','/:id','show','../../components/auth/service','isAuthenticated','express','destroy','Router','post','./pause.controller','create'];(function(_0x14d822,_0x586cf3){const _0x3d47e5=function(_0x3513c8){while(--_0x3513c8){_0x14d822['push'](_0x14d822['shift']());}};_0x3d47e5(++_0x586cf3);}(a610_0x3d47,0xd2));const a610_0x3513=function(_0x14d822,_0x586cf3){_0x14d822=_0x14d822-0x6e;let _0x3d47e5=a610_0x3d47[_0x14d822];return _0x3d47e5;};const a610_0x2cfac2=a610_0x3513;'use strict';const express=require(a610_0x2cfac2(0x73)),router=express[a610_0x2cfac2(0x75)](),auth=require(a610_0x2cfac2(0x71)),controller=require(a610_0x2cfac2(0x77));router[a610_0x2cfac2(0x7a)]('/',auth['isAuthenticated'](),controller['index']),router[a610_0x2cfac2(0x7a)](a610_0x2cfac2(0x6f),auth[a610_0x2cfac2(0x72)](),controller[a610_0x2cfac2(0x70)]),router[a610_0x2cfac2(0x76)]('/',auth[a610_0x2cfac2(0x72)](),controller[a610_0x2cfac2(0x78)]),router[a610_0x2cfac2(0x6e)](a610_0x2cfac2(0x6f),auth['isAuthenticated'](),controller['update']),router['delete']('/:id',auth[a610_0x2cfac2(0x72)](),controller[a610_0x2cfac2(0x74)]),module[a610_0x2cfac2(0x79)]=router; \ No newline at end of file +const a610_0x5bcb=['isAuthenticated','express','./pause.controller','delete','create','post','Router','exports','get','/:id','../../components/auth/service','put'];(function(_0x518b7b,_0x3f5dfc){const _0x5bcbf2=function(_0x48be1e){while(--_0x48be1e){_0x518b7b['push'](_0x518b7b['shift']());}};_0x5bcbf2(++_0x3f5dfc);}(a610_0x5bcb,0x1a6));const a610_0x48be=function(_0x518b7b,_0x3f5dfc){_0x518b7b=_0x518b7b-0x99;let _0x5bcbf2=a610_0x5bcb[_0x518b7b];return _0x5bcbf2;};const a610_0xd563b=a610_0x48be;'use strict';const express=require(a610_0xd563b(0xa4)),router=express[a610_0xd563b(0x9d)](),auth=require(a610_0xd563b(0xa1)),controller=require(a610_0xd563b(0x99));router[a610_0xd563b(0x9f)]('/',auth[a610_0xd563b(0xa3)](),controller['index']),router[a610_0xd563b(0x9f)]('/:id',auth['isAuthenticated'](),controller['show']),router[a610_0xd563b(0x9c)]('/',auth[a610_0xd563b(0xa3)](),controller[a610_0xd563b(0x9b)]),router[a610_0xd563b(0xa2)](a610_0xd563b(0xa0),auth[a610_0xd563b(0xa3)](),controller['update']),router[a610_0xd563b(0x9a)](a610_0xd563b(0xa0),auth[a610_0xd563b(0xa3)](),controller['destroy']),module[a610_0xd563b(0x9e)]=router; \ No newline at end of file diff --git a/server/api/pause/pause.attributes.js b/server/api/pause/pause.attributes.js index fd3b86a..303d984 100644 --- a/server/api/pause/pause.attributes.js +++ b/server/api/pause/pause.attributes.js @@ -1 +1 @@ -const a611_0x318a=['attributes','name','STRING'];(function(_0x44fd29,_0x157e3a){const _0x318ac5=function(_0x1bf21a){while(--_0x1bf21a){_0x44fd29['push'](_0x44fd29['shift']());}};_0x318ac5(++_0x157e3a);}(a611_0x318a,0x1b8));const a611_0x1bf2=function(_0x44fd29,_0x157e3a){_0x44fd29=_0x44fd29-0x191;let _0x318ac5=a611_0x318a[_0x44fd29];return _0x318ac5;};const a611_0x374068=a611_0x1bf2;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a611_0x374068(0x191)],'unique':a611_0x374068(0x193),'allowNull':![]},'description':{'type':DataTypes['STRING']}};module['exports'][a611_0x374068(0x192)]=attributes; \ No newline at end of file +const a611_0x5061=['attributes','sequelize','name','exports','STRING'];(function(_0x58ab92,_0x35ca3b){const _0x5061a2=function(_0x8ade05){while(--_0x8ade05){_0x58ab92['push'](_0x58ab92['shift']());}};_0x5061a2(++_0x35ca3b);}(a611_0x5061,0xc3));const a611_0x8ade=function(_0x58ab92,_0x35ca3b){_0x58ab92=_0x58ab92-0x1cf;let _0x5061a2=a611_0x5061[_0x58ab92];return _0x5061a2;};const a611_0x52949e=a611_0x8ade;'use strict';const {DataTypes}=require(a611_0x52949e(0x1d0)),attributes={'name':{'type':DataTypes[a611_0x52949e(0x1d3)],'unique':a611_0x52949e(0x1d1),'allowNull':![]},'description':{'type':DataTypes['STRING']}};module[a611_0x52949e(0x1d2)][a611_0x52949e(0x1cf)]=attributes; \ No newline at end of file diff --git a/server/api/pause/pause.controller.js b/server/api/pause/pause.controller.js index be53d57..26eea24 100644 --- a/server/api/pause/pause.controller.js +++ b/server/api/pause/pause.controller.js @@ -1 +1 @@ -const a612_0x58b6=['where','findAll','UserProfileSection','intersection','pick','filters','Unable\x20to\x20retrieve\x20the\x20current\x20user','error','VIRTUAL','model','includeAll','merge','autoAssociation','nolimit','../../config/logger','like','include','filter','Pause','index','rawAttributes','offset','api','limit','map','fields','UserProfileResource','body','query','then','get','catch','role','options','type','show','end','destroy','user','sendStatus','length','keys','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','../../mysqldb','rows','sort','name','Content-Range','fieldName','lodash','set','sequelize','Pauses','attributes','json','findOne','../../components/parsers/qs','params','update','count','create','order','status','userProfileId'];(function(_0x5d0e29,_0x2cf489){const _0x58b60c=function(_0x4f270e){while(--_0x4f270e){_0x5d0e29['push'](_0x5d0e29['shift']());}};_0x58b60c(++_0x2cf489);}(a612_0x58b6,0x165));const a612_0x4f27=function(_0x5d0e29,_0x2cf489){_0x5d0e29=_0x5d0e29-0x144;let _0x58b60c=a612_0x58b6[_0x5d0e29];return _0x58b60c;};const a612_0x4365d3=a612_0x4f27;'use strict';const _=require(a612_0x4365d3(0x150)),qs=require(a612_0x4365d3(0x157)),logger=require(a612_0x4365d3(0x16d))(a612_0x4365d3(0x175)),{db}=require(a612_0x4365d3(0x14a)),{Op}=require(a612_0x4365d3(0x152));function respondWithResult(_0x22cbfe,_0x596ab5){return _0x596ab5=_0x596ab5||0xc8,function(_0x190287){const _0x1f27b6=a612_0x4f27;if(_0x190287)return _0x22cbfe[_0x1f27b6(0x15d)](_0x596ab5)['json'](_0x190287);};}function respondWithFilteredResult(_0x578b56,_0x1444a4){return function(_0x4a17fd){const _0x11975e=a612_0x4f27;if(_0x4a17fd){const _0x486abf=_0x4a17fd[_0x11975e(0x15a)],_0xbac113=_0x1444a4[_0x11975e(0x174)];let _0x2093ae=_0x1444a4[_0x11975e(0x174)]+_0x1444a4[_0x11975e(0x176)],_0x42ae05;return _0x2093ae>=_0x486abf?(_0x2093ae=_0x486abf,_0x42ae05=0xc8):_0x42ae05=0xce,_0x578b56['status'](_0x42ae05),_0x578b56[_0x11975e(0x151)](_0x11975e(0x14e),_0xbac113+'-'+_0x2093ae+'/'+_0x486abf)[_0x11975e(0x155)](_0x4a17fd);}return null;};}function saveUpdates(_0x18d254){return function(_0x5bd4b1){const _0x308879=a612_0x4f27;if(_0x5bd4b1)return _0x5bd4b1[_0x308879(0x159)](_0x18d254)['then'](function(_0x3edf5f){return _0x3edf5f;});return null;};}function removeEntity(_0x4125fd){return function(_0x43980c){const _0x3ed27e=a612_0x4f27;if(_0x43980c)return _0x43980c[_0x3ed27e(0x144)]()[_0x3ed27e(0x17c)](function(){const _0x57fbcf=_0x3ed27e,_0x360f94=_0x43980c[_0x57fbcf(0x17d)]({'plain':!![]}),_0x2856af='Pauses';return db['UserProfileResource'][_0x57fbcf(0x144)]({'where':{'type':_0x2856af,'resourceId':_0x360f94['id']}})[_0x57fbcf(0x17c)](function(){return _0x43980c;});})['then'](function(){const _0x973c68=_0x3ed27e;_0x4125fd[_0x973c68(0x15d)](0xcc)[_0x973c68(0x183)]();});};}function handleEntityNotFound(_0x2ea985){return function(_0x1707c7){const _0x46432f=a612_0x4f27;return!_0x1707c7&&_0x2ea985[_0x46432f(0x146)](0x194),_0x1707c7;};}function handleError(_0x9761d5,_0xd0c6f9){return _0xd0c6f9=_0xd0c6f9||0x1f4,function(_0x4f531a){const _0x1c45c0=a612_0x4f27;logger[_0x1c45c0(0x166)](_0x4f531a['stack']),_0x4f531a[_0x1c45c0(0x14d)]&&delete _0x4f531a[_0x1c45c0(0x14d)],_0x9761d5[_0x1c45c0(0x15d)](_0xd0c6f9)['send'](_0x4f531a);};}exports[a612_0x4365d3(0x172)]=function(_0xe0547a,_0x5e52de){const _0x327b5f=a612_0x4365d3;let _0x2008a8={};const _0x348ae2={},_0x1aabd6={'count':0x0,'rows':[]},_0x161d73=_[_0x327b5f(0x177)](db[_0x327b5f(0x171)][_0x327b5f(0x173)],function(_0x4f0bbb){const _0x174049=_0x327b5f;return{'name':_0x4f0bbb[_0x174049(0x14f)],'type':_0x4f0bbb[_0x174049(0x181)]['key']};});_0x348ae2[_0x327b5f(0x168)]=_['map'](_0x161d73,_0x327b5f(0x14d)),_0x348ae2[_0x327b5f(0x17b)]=_[_0x327b5f(0x148)](_0xe0547a['query']),_0x348ae2[_0x327b5f(0x164)]=_[_0x327b5f(0x162)](_0x348ae2[_0x327b5f(0x168)],_0x348ae2['query']),_0x2008a8[_0x327b5f(0x154)]=_[_0x327b5f(0x162)](_0x348ae2['model'],qs[_0x327b5f(0x178)](_0xe0547a[_0x327b5f(0x17b)][_0x327b5f(0x178)])),_0x2008a8[_0x327b5f(0x154)]=_0x2008a8['attributes']['length']?_0x2008a8['attributes']:_0x348ae2[_0x327b5f(0x168)];typeof _0xe0547a[_0x327b5f(0x17b)][_0x327b5f(0x16c)]==='undefined'&&(_0x2008a8[_0x327b5f(0x176)]=qs[_0x327b5f(0x176)](_0xe0547a['query']['limit']),_0x2008a8['offset']=qs[_0x327b5f(0x174)](_0xe0547a[_0x327b5f(0x17b)][_0x327b5f(0x174)]));_0x2008a8[_0x327b5f(0x15c)]=qs[_0x327b5f(0x14c)](_0xe0547a[_0x327b5f(0x17b)]['sort']),_0x2008a8[_0x327b5f(0x15f)]=qs[_0x327b5f(0x164)](_[_0x327b5f(0x163)](_0xe0547a[_0x327b5f(0x17b)],_0x348ae2[_0x327b5f(0x164)]),_0x161d73);_0xe0547a[_0x327b5f(0x17b)][_0x327b5f(0x170)]&&(_0x2008a8['where']=_['merge'](_0x2008a8[_0x327b5f(0x15f)],{[Op['or']]:_['map'](_0x161d73,function(_0x9ab525){const _0x599c28=_0x327b5f;if(_0x9ab525[_0x599c28(0x181)]!==_0x599c28(0x167)){const _0xde070b={};return _0xde070b[_0x9ab525[_0x599c28(0x14d)]]={[Op[_0x599c28(0x16e)]]:'%'+_0xe0547a[_0x599c28(0x17b)][_0x599c28(0x170)]+'%'},_0xde070b;}})}));_0x2008a8=_[_0x327b5f(0x16a)]({},_0x2008a8,_0xe0547a[_0x327b5f(0x180)]);const _0x4b75dd={'where':_0x2008a8[_0x327b5f(0x15f)]};return db[_0x327b5f(0x171)][_0x327b5f(0x15a)](_0x4b75dd)[_0x327b5f(0x17c)](function(_0x3002a0){const _0x55e20f=_0x327b5f;return _0x1aabd6[_0x55e20f(0x15a)]=_0x3002a0,_0xe0547a['query'][_0x55e20f(0x169)]&&(_0x2008a8[_0x55e20f(0x16f)]=[{'all':!![]}]),db['Pause'][_0x55e20f(0x160)](_0x2008a8);})[_0x327b5f(0x17c)](function(_0x5282d2){const _0x41e49b=_0x327b5f;return _0x1aabd6[_0x41e49b(0x14b)]=_0x5282d2,_0x1aabd6;})[_0x327b5f(0x17c)](respondWithFilteredResult(_0x5e52de,_0x2008a8))[_0x327b5f(0x17e)](handleError(_0x5e52de,null));},exports[a612_0x4365d3(0x182)]=function(_0x483065,_0xaaeed9){const _0x4ae220=a612_0x4365d3;let _0x13b708={'raw':!![],'where':{'id':_0x483065[_0x4ae220(0x158)]['id']}};const _0x3e3cc5={};return _0x3e3cc5[_0x4ae220(0x168)]=_['keys'](db[_0x4ae220(0x171)][_0x4ae220(0x173)]),_0x3e3cc5[_0x4ae220(0x17b)]=_[_0x4ae220(0x148)](_0x483065[_0x4ae220(0x17b)]),_0x3e3cc5['filters']=_['intersection'](_0x3e3cc5[_0x4ae220(0x168)],_0x3e3cc5[_0x4ae220(0x17b)]),_0x13b708[_0x4ae220(0x154)]=_[_0x4ae220(0x162)](_0x3e3cc5['model'],qs['fields'](_0x483065[_0x4ae220(0x17b)][_0x4ae220(0x178)])),_0x13b708[_0x4ae220(0x154)]=_0x13b708[_0x4ae220(0x154)][_0x4ae220(0x147)]?_0x13b708[_0x4ae220(0x154)]:_0x3e3cc5[_0x4ae220(0x168)],_0x483065[_0x4ae220(0x17b)]['includeAll']&&(_0x13b708['include']=[{'all':!![]}]),_0x13b708=_[_0x4ae220(0x16a)]({},_0x13b708,_0x483065[_0x4ae220(0x180)]),db[_0x4ae220(0x171)][_0x4ae220(0x156)](_0x13b708)['then'](handleEntityNotFound(_0xaaeed9,null))['then'](respondWithResult(_0xaaeed9,null))[_0x4ae220(0x17e)](handleError(_0xaaeed9,null));},exports[a612_0x4365d3(0x15b)]=function(_0x37b557,_0x3c1581){const _0x3a7b8f=a612_0x4365d3;return db[_0x3a7b8f(0x171)][_0x3a7b8f(0x15b)](_0x37b557[_0x3a7b8f(0x17a)],{})['then'](function(_0x12299f){const _0x1db2f2=_0x3a7b8f,_0x308aaa=_0x37b557[_0x1db2f2(0x145)]['get']({'plain':!![]});if(!_0x308aaa)throw new Error(_0x1db2f2(0x165));if(_0x308aaa[_0x1db2f2(0x17f)]==='user'){const _0x550690=_0x12299f[_0x1db2f2(0x17d)]({'plain':!![]}),_0x48cced=_0x1db2f2(0x153);return db[_0x1db2f2(0x161)][_0x1db2f2(0x156)]({'where':{'name':_0x48cced,'userProfileId':_0x308aaa[_0x1db2f2(0x15e)]},'raw':!![]})[_0x1db2f2(0x17c)](function(_0xf5109a){const _0x273fee=_0x1db2f2;return _0xf5109a&&_0xf5109a[_0x273fee(0x16b)]===0x0?db[_0x273fee(0x179)][_0x273fee(0x15b)]({'name':_0x550690[_0x273fee(0x14d)],'resourceId':_0x550690['id'],'type':_0xf5109a[_0x273fee(0x14d)],'sectionId':_0xf5109a['id']},{})[_0x273fee(0x17c)](function(){return _0x12299f;}):_0x12299f;})[_0x1db2f2(0x17e)](function(_0x2ef81d){const _0x3c3a11=_0x1db2f2;logger[_0x3c3a11(0x166)](_0x3c3a11(0x149),_0x2ef81d);throw _0x2ef81d;});}return _0x12299f;})['then'](respondWithResult(_0x3c1581,0xc9))[_0x3a7b8f(0x17e)](handleError(_0x3c1581,null));},exports[a612_0x4365d3(0x159)]=function(_0x15cb50,_0x553041){const _0x53952f=a612_0x4365d3;return _0x15cb50[_0x53952f(0x17a)]['id']&&delete _0x15cb50[_0x53952f(0x17a)]['id'],db[_0x53952f(0x171)][_0x53952f(0x156)]({'where':{'id':_0x15cb50[_0x53952f(0x158)]['id']}})[_0x53952f(0x17c)](handleEntityNotFound(_0x553041,null))['then'](saveUpdates(_0x15cb50['body'],null))[_0x53952f(0x17c)](respondWithResult(_0x553041,null))[_0x53952f(0x17e)](handleError(_0x553041,null));},exports['destroy']=function(_0x217543,_0x40eba8){const _0x5435e4=a612_0x4365d3;return db[_0x5435e4(0x171)]['findOne']({'where':{'id':_0x217543[_0x5435e4(0x158)]['id']}})['then'](handleEntityNotFound(_0x40eba8,null))[_0x5435e4(0x17c)](removeEntity(_0x40eba8,null))[_0x5435e4(0x17e)](handleError(_0x40eba8,null));}; \ No newline at end of file +const a612_0x7ced=['count','merge','catch','update','filter','query','Pauses','findOne','Pause','undefined','user','rawAttributes','attributes','intersection','sequelize','model','lodash','map','Unable\x20to\x20retrieve\x20the\x20current\x20user','get','sendStatus','includeAll','create','type','error','set','order','where','options','api','json','offset','end','name','userProfileId','UserProfileResource','send','key','length','status','filters','then','Content-Range','sort','keys','pick','fields','destroy','limit','VIRTUAL','params','include','body','autoAssociation'];(function(_0x2218fa,_0x2be9d9){const _0x7cedc7=function(_0x367393){while(--_0x367393){_0x2218fa['push'](_0x2218fa['shift']());}};_0x7cedc7(++_0x2be9d9);}(a612_0x7ced,0x9c));const a612_0x3673=function(_0x2218fa,_0x2be9d9){_0x2218fa=_0x2218fa-0x1db;let _0x7cedc7=a612_0x7ced[_0x2218fa];return _0x7cedc7;};const a612_0x4dadbc=a612_0x3673;'use strict';const _=require(a612_0x4dadbc(0x1f1)),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(a612_0x4dadbc(0x1fe)),{db}=require('../../mysqldb'),{Op}=require(a612_0x4dadbc(0x1ef));function respondWithResult(_0x246922,_0x9a4ead){return _0x9a4ead=_0x9a4ead||0xc8,function(_0xf18ef0){const _0x9b2dbd=a612_0x3673;if(_0xf18ef0)return _0x246922[_0x9b2dbd(0x208)](_0x9a4ead)[_0x9b2dbd(0x1ff)](_0xf18ef0);};}function respondWithFilteredResult(_0x4ccc62,_0x3c5ee7){return function(_0x6a1b5d){const _0x571398=a612_0x3673;if(_0x6a1b5d){const _0x580a27=_0x6a1b5d['count'],_0x5226f6=_0x3c5ee7[_0x571398(0x200)];let _0xe730d9=_0x3c5ee7[_0x571398(0x200)]+_0x3c5ee7['limit'],_0x5a3b6e;return _0xe730d9>=_0x580a27?(_0xe730d9=_0x580a27,_0x5a3b6e=0xc8):_0x5a3b6e=0xce,_0x4ccc62[_0x571398(0x208)](_0x5a3b6e),_0x4ccc62[_0x571398(0x1fa)](_0x571398(0x20b),_0x5226f6+'-'+_0xe730d9+'/'+_0x580a27)[_0x571398(0x1ff)](_0x6a1b5d);}return null;};}function saveUpdates(_0x309bf1){return function(_0x563093){const _0x56b2fa=a612_0x3673;if(_0x563093)return _0x563093[_0x56b2fa(0x1e4)](_0x309bf1)['then'](function(_0x3bfa9e){return _0x3bfa9e;});return null;};}function removeEntity(_0x67629d){return function(_0x3cb265){const _0x3cad9f=a612_0x3673;if(_0x3cb265)return _0x3cb265[_0x3cad9f(0x210)]()[_0x3cad9f(0x20a)](function(){const _0x500e5c=_0x3cad9f,_0x50eb29=_0x3cb265[_0x500e5c(0x1f4)]({'plain':!![]}),_0x5782d6=_0x500e5c(0x1e7);return db[_0x500e5c(0x204)][_0x500e5c(0x210)]({'where':{'type':_0x5782d6,'resourceId':_0x50eb29['id']}})['then'](function(){return _0x3cb265;});})[_0x3cad9f(0x20a)](function(){const _0x1f9ffa=_0x3cad9f;_0x67629d['status'](0xcc)[_0x1f9ffa(0x201)]();});};}function handleEntityNotFound(_0x1312c3){return function(_0x143c28){const _0x184f98=a612_0x3673;return!_0x143c28&&_0x1312c3[_0x184f98(0x1f5)](0x194),_0x143c28;};}function handleError(_0x2ffb4f,_0x18e2e2){return _0x18e2e2=_0x18e2e2||0x1f4,function(_0x4b4992){const _0x5aaaa9=a612_0x3673;logger[_0x5aaaa9(0x1f9)](_0x4b4992['stack']),_0x4b4992[_0x5aaaa9(0x202)]&&delete _0x4b4992['name'],_0x2ffb4f[_0x5aaaa9(0x208)](_0x18e2e2)[_0x5aaaa9(0x205)](_0x4b4992);};}exports['index']=function(_0x492928,_0x57dce9){const _0x34544d=a612_0x4dadbc;let _0x6f9937={};const _0x1e7371={},_0x3c540c={'count':0x0,'rows':[]},_0x4a07b7=_[_0x34544d(0x1f2)](db['Pause'][_0x34544d(0x1ec)],function(_0x305a17){const _0x1ac9bc=_0x34544d;return{'name':_0x305a17['fieldName'],'type':_0x305a17['type'][_0x1ac9bc(0x206)]};});_0x1e7371[_0x34544d(0x1f0)]=_['map'](_0x4a07b7,_0x34544d(0x202)),_0x1e7371[_0x34544d(0x1e6)]=_[_0x34544d(0x20d)](_0x492928[_0x34544d(0x1e6)]),_0x1e7371[_0x34544d(0x209)]=_[_0x34544d(0x1ee)](_0x1e7371[_0x34544d(0x1f0)],_0x1e7371[_0x34544d(0x1e6)]),_0x6f9937[_0x34544d(0x1ed)]=_[_0x34544d(0x1ee)](_0x1e7371[_0x34544d(0x1f0)],qs[_0x34544d(0x20f)](_0x492928[_0x34544d(0x1e6)][_0x34544d(0x20f)])),_0x6f9937[_0x34544d(0x1ed)]=_0x6f9937[_0x34544d(0x1ed)][_0x34544d(0x207)]?_0x6f9937[_0x34544d(0x1ed)]:_0x1e7371[_0x34544d(0x1f0)];typeof _0x492928[_0x34544d(0x1e6)]['nolimit']===_0x34544d(0x1ea)&&(_0x6f9937['limit']=qs[_0x34544d(0x1db)](_0x492928[_0x34544d(0x1e6)]['limit']),_0x6f9937[_0x34544d(0x200)]=qs[_0x34544d(0x200)](_0x492928[_0x34544d(0x1e6)]['offset']));_0x6f9937[_0x34544d(0x1fb)]=qs[_0x34544d(0x20c)](_0x492928['query'][_0x34544d(0x20c)]),_0x6f9937[_0x34544d(0x1fc)]=qs[_0x34544d(0x209)](_[_0x34544d(0x20e)](_0x492928['query'],_0x1e7371[_0x34544d(0x209)]),_0x4a07b7);_0x492928[_0x34544d(0x1e6)][_0x34544d(0x1e5)]&&(_0x6f9937[_0x34544d(0x1fc)]=_[_0x34544d(0x1e2)](_0x6f9937['where'],{[Op['or']]:_[_0x34544d(0x1f2)](_0x4a07b7,function(_0x4fe9ef){const _0x32e692=_0x34544d;if(_0x4fe9ef[_0x32e692(0x1f8)]!==_0x32e692(0x1dc)){const _0x4b9ee3={};return _0x4b9ee3[_0x4fe9ef['name']]={[Op['like']]:'%'+_0x492928[_0x32e692(0x1e6)][_0x32e692(0x1e5)]+'%'},_0x4b9ee3;}})}));_0x6f9937=_[_0x34544d(0x1e2)]({},_0x6f9937,_0x492928['options']);const _0x5d97f0={'where':_0x6f9937[_0x34544d(0x1fc)]};return db[_0x34544d(0x1e9)]['count'](_0x5d97f0)[_0x34544d(0x20a)](function(_0x14c280){const _0x4abc01=_0x34544d;return _0x3c540c[_0x4abc01(0x1e1)]=_0x14c280,_0x492928['query']['includeAll']&&(_0x6f9937['include']=[{'all':!![]}]),db[_0x4abc01(0x1e9)]['findAll'](_0x6f9937);})['then'](function(_0x2d0d2e){return _0x3c540c['rows']=_0x2d0d2e,_0x3c540c;})[_0x34544d(0x20a)](respondWithFilteredResult(_0x57dce9,_0x6f9937))[_0x34544d(0x1e3)](handleError(_0x57dce9,null));},exports['show']=function(_0xe4186b,_0xf747fa){const _0x3a46e4=a612_0x4dadbc;let _0x1c2006={'raw':!![],'where':{'id':_0xe4186b[_0x3a46e4(0x1dd)]['id']}};const _0x2e6387={};return _0x2e6387[_0x3a46e4(0x1f0)]=_[_0x3a46e4(0x20d)](db[_0x3a46e4(0x1e9)][_0x3a46e4(0x1ec)]),_0x2e6387[_0x3a46e4(0x1e6)]=_[_0x3a46e4(0x20d)](_0xe4186b[_0x3a46e4(0x1e6)]),_0x2e6387[_0x3a46e4(0x209)]=_['intersection'](_0x2e6387[_0x3a46e4(0x1f0)],_0x2e6387[_0x3a46e4(0x1e6)]),_0x1c2006[_0x3a46e4(0x1ed)]=_[_0x3a46e4(0x1ee)](_0x2e6387[_0x3a46e4(0x1f0)],qs[_0x3a46e4(0x20f)](_0xe4186b['query']['fields'])),_0x1c2006[_0x3a46e4(0x1ed)]=_0x1c2006[_0x3a46e4(0x1ed)]['length']?_0x1c2006[_0x3a46e4(0x1ed)]:_0x2e6387['model'],_0xe4186b[_0x3a46e4(0x1e6)][_0x3a46e4(0x1f6)]&&(_0x1c2006[_0x3a46e4(0x1de)]=[{'all':!![]}]),_0x1c2006=_[_0x3a46e4(0x1e2)]({},_0x1c2006,_0xe4186b[_0x3a46e4(0x1fd)]),db[_0x3a46e4(0x1e9)][_0x3a46e4(0x1e8)](_0x1c2006)['then'](handleEntityNotFound(_0xf747fa,null))[_0x3a46e4(0x20a)](respondWithResult(_0xf747fa,null))[_0x3a46e4(0x1e3)](handleError(_0xf747fa,null));},exports[a612_0x4dadbc(0x1f7)]=function(_0x1f6574,_0x2bf317){const _0x2a450b=a612_0x4dadbc;return db[_0x2a450b(0x1e9)][_0x2a450b(0x1f7)](_0x1f6574[_0x2a450b(0x1df)],{})[_0x2a450b(0x20a)](function(_0x39b0e9){const _0x4c031c=_0x2a450b,_0x1347a6=_0x1f6574[_0x4c031c(0x1eb)][_0x4c031c(0x1f4)]({'plain':!![]});if(!_0x1347a6)throw new Error(_0x4c031c(0x1f3));if(_0x1347a6['role']===_0x4c031c(0x1eb)){const _0x470720=_0x39b0e9[_0x4c031c(0x1f4)]({'plain':!![]}),_0x1f08b1=_0x4c031c(0x1e7);return db['UserProfileSection'][_0x4c031c(0x1e8)]({'where':{'name':_0x1f08b1,'userProfileId':_0x1347a6[_0x4c031c(0x203)]},'raw':!![]})[_0x4c031c(0x20a)](function(_0x22d7c9){const _0x4a7012=_0x4c031c;return _0x22d7c9&&_0x22d7c9[_0x4a7012(0x1e0)]===0x0?db[_0x4a7012(0x204)][_0x4a7012(0x1f7)]({'name':_0x470720[_0x4a7012(0x202)],'resourceId':_0x470720['id'],'type':_0x22d7c9[_0x4a7012(0x202)],'sectionId':_0x22d7c9['id']},{})[_0x4a7012(0x20a)](function(){return _0x39b0e9;}):_0x39b0e9;})['catch'](function(_0x5087c8){const _0x20bfa8=_0x4c031c;logger[_0x20bfa8(0x1f9)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x5087c8);throw _0x5087c8;});}return _0x39b0e9;})[_0x2a450b(0x20a)](respondWithResult(_0x2bf317,0xc9))[_0x2a450b(0x1e3)](handleError(_0x2bf317,null));},exports[a612_0x4dadbc(0x1e4)]=function(_0x3bbaf2,_0x1f2a0b){const _0x2d234c=a612_0x4dadbc;return _0x3bbaf2[_0x2d234c(0x1df)]['id']&&delete _0x3bbaf2['body']['id'],db[_0x2d234c(0x1e9)]['findOne']({'where':{'id':_0x3bbaf2[_0x2d234c(0x1dd)]['id']}})['then'](handleEntityNotFound(_0x1f2a0b,null))[_0x2d234c(0x20a)](saveUpdates(_0x3bbaf2[_0x2d234c(0x1df)],null))[_0x2d234c(0x20a)](respondWithResult(_0x1f2a0b,null))[_0x2d234c(0x1e3)](handleError(_0x1f2a0b,null));},exports[a612_0x4dadbc(0x210)]=function(_0x43842f,_0x46c639){const _0x55c98b=a612_0x4dadbc;return db[_0x55c98b(0x1e9)][_0x55c98b(0x1e8)]({'where':{'id':_0x43842f[_0x55c98b(0x1dd)]['id']}})[_0x55c98b(0x20a)](handleEntityNotFound(_0x46c639,null))[_0x55c98b(0x20a)](removeEntity(_0x46c639,null))[_0x55c98b(0x1e3)](handleError(_0x46c639,null));}; \ No newline at end of file diff --git a/server/api/pause/pause.model.js b/server/api/pause/pause.model.js index 01b3f2a..80ec812 100644 --- a/server/api/pause/pause.model.js +++ b/server/api/pause/pause.model.js @@ -1 +1 @@ -const a613_0x1021=['Pause','sequelize','exports','function','init'];(function(_0x26bb57,_0x5cf64e){const _0x10216b=function(_0x5d862e){while(--_0x5d862e){_0x26bb57['push'](_0x26bb57['shift']());}};_0x10216b(++_0x5cf64e);}(a613_0x1021,0x65));const a613_0x5d86=function(_0x26bb57,_0x5cf64e){_0x26bb57=_0x26bb57-0x187;let _0x10216b=a613_0x1021[_0x26bb57];return _0x10216b;};const a613_0x1d575f=a613_0x5d86;'use strict';const {Model}=require(a613_0x1d575f(0x187)),{attributes}=require('./pause.attributes'),{options}=require('./pause.options');class Pause extends Model{}function init(_0x29fbd6,_0x581cf3){const _0x4d37b5=a613_0x1d575f,_0x59b09e=options(_0x29fbd6),_0x2e4762=typeof _0x581cf3===_0x4d37b5(0x189)?_0x581cf3(_0x59b09e):_0x59b09e;return Pause[_0x4d37b5(0x18a)](attributes,_0x2e4762),Pause;}module[a613_0x1d575f(0x188)][a613_0x1d575f(0x18b)]=Pause,module[a613_0x1d575f(0x188)][a613_0x1d575f(0x18a)]=init; \ No newline at end of file +const a613_0x5b81=['init','exports','function','./pause.attributes','./pause.options','sequelize','Pause'];(function(_0x5299e9,_0x3d888b){const _0x5b818f=function(_0x5e65ae){while(--_0x5e65ae){_0x5299e9['push'](_0x5299e9['shift']());}};_0x5b818f(++_0x3d888b);}(a613_0x5b81,0x10f));const a613_0x5e65=function(_0x5299e9,_0x3d888b){_0x5299e9=_0x5299e9-0x165;let _0x5b818f=a613_0x5b81[_0x5299e9];return _0x5b818f;};const a613_0xd2a207=a613_0x5e65;'use strict';const {Model}=require(a613_0xd2a207(0x165)),{attributes}=require(a613_0xd2a207(0x16a)),{options}=require(a613_0xd2a207(0x16b));class Pause extends Model{}function init(_0x39f569,_0x48a1da){const _0x43f138=a613_0xd2a207,_0x4eb759=options(_0x39f569),_0x3e53bb=typeof _0x48a1da===_0x43f138(0x169)?_0x48a1da(_0x4eb759):_0x4eb759;return Pause[_0x43f138(0x167)](attributes,_0x3e53bb),Pause;}module[a613_0xd2a207(0x168)][a613_0xd2a207(0x166)]=Pause,module[a613_0xd2a207(0x168)][a613_0xd2a207(0x167)]=init; \ No newline at end of file diff --git a/server/api/pause/pause.options.js b/server/api/pause/pause.options.js index 4c154f5..d319687 100644 --- a/server/api/pause/pause.options.js +++ b/server/api/pause/pause.options.js @@ -1 +1 @@ -var a614_0x2fdf=['exports'];(function(_0x46e95d,_0x4e92e2){var _0x2fdf80=function(_0x4aecc6){while(--_0x4aecc6){_0x46e95d['push'](_0x46e95d['shift']());}};_0x2fdf80(++_0x4e92e2);}(a614_0x2fdf,0xaf));var a614_0x4aec=function(_0x46e95d,_0x4e92e2){_0x46e95d=_0x46e95d-0x15b;var _0x2fdf80=a614_0x2fdf[_0x46e95d];return _0x2fdf80;};var a614_0x31f3bc=a614_0x4aec;function options(_0x24c681){return{'sequelize':_0x24c681,'tableName':'tools_pauses','paranoid':![],'indexes':[],'timestamps':!![]};}module[a614_0x31f3bc(0x15b)]['options']=options; \ No newline at end of file +var a614_0x1328=['tools_pauses','exports'];(function(_0x35ce4f,_0x4a5065){var _0x1328c9=function(_0xfc86f8){while(--_0xfc86f8){_0x35ce4f['push'](_0x35ce4f['shift']());}};_0x1328c9(++_0x4a5065);}(a614_0x1328,0x66));var a614_0xfc86=function(_0x35ce4f,_0x4a5065){_0x35ce4f=_0x35ce4f-0x182;var _0x1328c9=a614_0x1328[_0x35ce4f];return _0x1328c9;};var a614_0x2e7a82=a614_0xfc86;function options(_0x10abfb){var _0x5d7c31=a614_0xfc86;return{'sequelize':_0x10abfb,'tableName':_0x5d7c31(0x182),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a614_0x2e7a82(0x183)]['options']=options; \ No newline at end of file diff --git a/server/api/pause/pause.rpc.js b/server/api/pause/pause.rpc.js index 54e826c..9b7040b 100644 --- a/server/api/pause/pause.rpc.js +++ b/server/api/pause/pause.rpc.js @@ -1 +1 @@ -const a615_0x8a10=['../../config/logger','then','../../mysqldb','Pause','model','catch','message','stringify','raw','debug','attributes','map','options','ShowPause','rpc','info','include','findOne','error'];(function(_0x23321c,_0x568993){const _0x8a10fa=function(_0x4bbbcd){while(--_0x4bbbcd){_0x23321c['push'](_0x23321c['shift']());}};_0x8a10fa(++_0x568993);}(a615_0x8a10,0x88));const a615_0x4bbb=function(_0x23321c,_0x568993){_0x23321c=_0x23321c-0xb6;let _0x8a10fa=a615_0x8a10[_0x23321c];return _0x8a10fa;};const a615_0x100055=a615_0x4bbb;'use strict';const db=require(a615_0x100055(0xc8))['db'],logger=require(a615_0x100055(0xc6))(a615_0x100055(0xc1)),_=require('lodash');exports[a615_0x100055(0xc0)]=function(_0x1f987a){const _0x350458=this;return new Promise(function(_0x217d77,_0x2db579){const _0x502c8b=a615_0x4bbb;return db[_0x502c8b(0xb6)][_0x502c8b(0xc4)]({'raw':_0x1f987a[_0x502c8b(0xbf)]?_0x1f987a[_0x502c8b(0xbf)][_0x502c8b(0xbb)]===undefined?!![]:![]:!![],'where':_0x1f987a[_0x502c8b(0xbf)]?_0x1f987a[_0x502c8b(0xbf)]['where']||null:null,'attributes':_0x1f987a['options']?_0x1f987a[_0x502c8b(0xbf)][_0x502c8b(0xbd)]||null:null,'include':_0x1f987a[_0x502c8b(0xbf)]?_0x1f987a[_0x502c8b(0xbf)][_0x502c8b(0xc3)]?_['map'](_0x1f987a[_0x502c8b(0xbf)][_0x502c8b(0xc3)],function(_0x5d3cca){const _0x43c8a0=_0x502c8b;return{'model':db[_0x5d3cca[_0x43c8a0(0xb7)]],'as':_0x5d3cca['as'],'attributes':_0x5d3cca[_0x43c8a0(0xbd)],'include':_0x5d3cca[_0x43c8a0(0xc3)]?_[_0x43c8a0(0xbe)](_0x5d3cca[_0x43c8a0(0xc3)],function(_0x236de2){const _0x3febf9=_0x43c8a0;return{'model':db[_0x236de2[_0x3febf9(0xb7)]],'as':_0x236de2['as'],'attributes':_0x236de2[_0x3febf9(0xbd)],'include':_0x236de2[_0x3febf9(0xc3)]?_[_0x3febf9(0xbe)](_0x236de2[_0x3febf9(0xc3)],function(_0x16c5b6){return{'model':db[_0x16c5b6['model']],'as':_0x16c5b6['as'],'attributes':_0x16c5b6['attributes']};}):[]};}):[]};}):[]:[]})[_0x502c8b(0xc7)](function(_0x89466b){const _0x43385c=_0x502c8b;logger[_0x43385c(0xc2)](_0x43385c(0xc0),_0x1f987a),logger[_0x43385c(0xbc)]('ShowPause',_0x1f987a,JSON[_0x43385c(0xba)](_0x89466b)),_0x217d77(_0x89466b);})[_0x502c8b(0xb8)](function(_0x5673a6){const _0x500152=_0x502c8b;logger[_0x500152(0xc5)](_0x500152(0xc0),_0x5673a6[_0x500152(0xb9)],_0x1f987a),_0x2db579(_0x350458[_0x500152(0xc5)](0x1f4,_0x5673a6[_0x500152(0xb9)]));});});}; \ No newline at end of file +const a615_0x117a=['rpc','attributes','../../mysqldb','include','../../config/logger','ShowPause','lodash','stringify','options','then','error','model','map','info','Pause','raw'];(function(_0x769375,_0x4b989c){const _0x117adf=function(_0x3a186){while(--_0x3a186){_0x769375['push'](_0x769375['shift']());}};_0x117adf(++_0x4b989c);}(a615_0x117a,0x17e));const a615_0x3a18=function(_0x769375,_0x4b989c){_0x769375=_0x769375-0x1c3;let _0x117adf=a615_0x117a[_0x769375];return _0x117adf;};const a615_0xde9c1a=a615_0x3a18;'use strict';const db=require(a615_0xde9c1a(0x1c7))['db'],logger=require(a615_0xde9c1a(0x1c9))(a615_0xde9c1a(0x1c5)),_=require(a615_0xde9c1a(0x1cb));exports[a615_0xde9c1a(0x1ca)]=function(_0xb8f1c4){const _0x58a6b0=this;return new Promise(function(_0x13b0e4,_0x3f965a){const _0x58237a=a615_0x3a18;return db[_0x58237a(0x1c3)]['findOne']({'raw':_0xb8f1c4['options']?_0xb8f1c4[_0x58237a(0x1cd)][_0x58237a(0x1c4)]===undefined?!![]:![]:!![],'where':_0xb8f1c4[_0x58237a(0x1cd)]?_0xb8f1c4[_0x58237a(0x1cd)]['where']||null:null,'attributes':_0xb8f1c4['options']?_0xb8f1c4[_0x58237a(0x1cd)]['attributes']||null:null,'include':_0xb8f1c4[_0x58237a(0x1cd)]?_0xb8f1c4[_0x58237a(0x1cd)][_0x58237a(0x1c8)]?_['map'](_0xb8f1c4[_0x58237a(0x1cd)][_0x58237a(0x1c8)],function(_0x3ec12){const _0x46164b=_0x58237a;return{'model':db[_0x3ec12[_0x46164b(0x1d0)]],'as':_0x3ec12['as'],'attributes':_0x3ec12[_0x46164b(0x1c6)],'include':_0x3ec12[_0x46164b(0x1c8)]?_[_0x46164b(0x1d1)](_0x3ec12[_0x46164b(0x1c8)],function(_0x55ae1c){const _0x521bbf=_0x46164b;return{'model':db[_0x55ae1c[_0x521bbf(0x1d0)]],'as':_0x55ae1c['as'],'attributes':_0x55ae1c['attributes'],'include':_0x55ae1c[_0x521bbf(0x1c8)]?_[_0x521bbf(0x1d1)](_0x55ae1c['include'],function(_0x3f457a){const _0x2f3315=_0x521bbf;return{'model':db[_0x3f457a['model']],'as':_0x3f457a['as'],'attributes':_0x3f457a[_0x2f3315(0x1c6)]};}):[]};}):[]};}):[]:[]})[_0x58237a(0x1ce)](function(_0x545677){const _0x2022dc=_0x58237a;logger[_0x2022dc(0x1d2)](_0x2022dc(0x1ca),_0xb8f1c4),logger['debug']('ShowPause',_0xb8f1c4,JSON[_0x2022dc(0x1cc)](_0x545677)),_0x13b0e4(_0x545677);})['catch'](function(_0x20e4fd){const _0x564ffb=_0x58237a;logger[_0x564ffb(0x1cf)](_0x564ffb(0x1ca),_0x20e4fd['message'],_0xb8f1c4),_0x3f965a(_0x58a6b0[_0x564ffb(0x1cf)](0x1f4,_0x20e4fd['message']));});});}; \ No newline at end of file diff --git a/server/api/plugin/index.js b/server/api/plugin/index.js index 4925d16..681a6d3 100644 --- a/server/api/plugin/index.js +++ b/server/api/plugin/index.js @@ -1 +1 @@ -const a616_0x4fd6=['update','show','path','format','single','basename','root','file','now','originalname','delete','express','put','extname','isAuthenticated','%s-%s%s','Router','exports','files/plugins','../../config/environment','../../components/auth/service','post','/webhook','join','get','/:id','webhookPost','index','webhookGet','download','util'];(function(_0x58a787,_0x25764f){const _0x4fd6ca=function(_0x15a650){while(--_0x15a650){_0x58a787['push'](_0x58a787['shift']());}};_0x4fd6ca(++_0x25764f);}(a616_0x4fd6,0x1ab));const a616_0x15a6=function(_0x58a787,_0x25764f){_0x58a787=_0x58a787-0x7f;let _0x4fd6ca=a616_0x4fd6[_0x58a787];return _0x4fd6ca;};const a616_0x3101c1=a616_0x15a6;'use strict';const multer=require('multer'),util=require(a616_0x3101c1(0x85)),path=require(a616_0x3101c1(0x88)),express=require(a616_0x3101c1(0x91)),router=express[a616_0x3101c1(0x96)](),auth=require(a616_0x3101c1(0x9a)),config=require(a616_0x3101c1(0x99)),controller=require('./plugin.controller');router[a616_0x3101c1(0x7f)]('/',auth[a616_0x3101c1(0x94)](),controller[a616_0x3101c1(0x82)]),router[a616_0x3101c1(0x7f)](a616_0x3101c1(0x9c),controller[a616_0x3101c1(0x83)]),router['get'](a616_0x3101c1(0x80),auth['isAuthenticated'](),controller[a616_0x3101c1(0x87)]),router[a616_0x3101c1(0x7f)]('/:id/download',auth[a616_0x3101c1(0x94)](),controller[a616_0x3101c1(0x84)]);const upload=multer({'storage':multer['diskStorage']({'destination':function(_0x531249,_0x427f49,_0x271450){const _0xb6480c=a616_0x3101c1;_0x271450(null,path[_0xb6480c(0x9d)](config[_0xb6480c(0x8c)],_0xb6480c(0x98)));},'filename':function(_0xc06d97,_0x9a0a04,_0x7dcfb){const _0x2242ae=a616_0x3101c1;_0x9a0a04[_0x2242ae(0x8f)]=_0x9a0a04[_0x2242ae(0x8f)]['replace'](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x7dcfb(null,util[_0x2242ae(0x89)](_0x2242ae(0x95),path[_0x2242ae(0x8b)](_0x9a0a04['originalname'],path[_0x2242ae(0x93)](_0x9a0a04[_0x2242ae(0x8f)])),Date[_0x2242ae(0x8e)](),path[_0x2242ae(0x93)](_0x9a0a04['originalname'])));}})});router[a616_0x3101c1(0x9b)]('/',upload[a616_0x3101c1(0x8a)](a616_0x3101c1(0x8d)),controller['upload']),router[a616_0x3101c1(0x9b)]('/webhook',controller[a616_0x3101c1(0x81)]),router[a616_0x3101c1(0x92)](a616_0x3101c1(0x80),auth[a616_0x3101c1(0x94)](),controller[a616_0x3101c1(0x86)]),router[a616_0x3101c1(0x90)](a616_0x3101c1(0x80),auth[a616_0x3101c1(0x94)](),controller[a616_0x3101c1(0x90)]),module[a616_0x3101c1(0x97)]=router; \ No newline at end of file +const a616_0x20a6=['exports','/webhook','Router','multer','../../components/auth/service','webhookPost','util','post','isAuthenticated','%s-%s%s','join','express','diskStorage','root','extname','update','single','get','originalname','put','upload','delete','basename','replace','./plugin.controller','../../config/environment','index','/:id'];(function(_0x19291f,_0x566448){const _0x20a6b6=function(_0x30aa11){while(--_0x30aa11){_0x19291f['push'](_0x19291f['shift']());}};_0x20a6b6(++_0x566448);}(a616_0x20a6,0x90));const a616_0x30aa=function(_0x19291f,_0x566448){_0x19291f=_0x19291f-0xb5;let _0x20a6b6=a616_0x20a6[_0x19291f];return _0x20a6b6;};const a616_0x3f33e0=a616_0x30aa;'use strict';const multer=require(a616_0x3f33e0(0xd0)),util=require(a616_0x3f33e0(0xb7)),path=require('path'),express=require(a616_0x3f33e0(0xbc)),router=express[a616_0x3f33e0(0xcf)](),auth=require(a616_0x3f33e0(0xb5)),config=require(a616_0x3f33e0(0xca)),controller=require(a616_0x3f33e0(0xc9));router[a616_0x3f33e0(0xc2)]('/',auth[a616_0x3f33e0(0xb9)](),controller[a616_0x3f33e0(0xcb)]),router[a616_0x3f33e0(0xc2)]('/webhook',controller['webhookGet']),router[a616_0x3f33e0(0xc2)](a616_0x3f33e0(0xcc),auth[a616_0x3f33e0(0xb9)](),controller['show']),router[a616_0x3f33e0(0xc2)]('/:id/download',auth[a616_0x3f33e0(0xb9)](),controller['download']);const upload=multer({'storage':multer[a616_0x3f33e0(0xbd)]({'destination':function(_0x291a3a,_0x5804d5,_0x2cb57e){const _0x3ad8fd=a616_0x3f33e0;_0x2cb57e(null,path[_0x3ad8fd(0xbb)](config[_0x3ad8fd(0xbe)],'files/plugins'));},'filename':function(_0x3f588a,_0x46da1d,_0x53c67a){const _0x333a44=a616_0x3f33e0;_0x46da1d[_0x333a44(0xc3)]=_0x46da1d[_0x333a44(0xc3)][_0x333a44(0xc8)](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x53c67a(null,util['format'](_0x333a44(0xba),path[_0x333a44(0xc7)](_0x46da1d['originalname'],path[_0x333a44(0xbf)](_0x46da1d['originalname'])),Date['now'](),path[_0x333a44(0xbf)](_0x46da1d[_0x333a44(0xc3)])));}})});router[a616_0x3f33e0(0xb8)]('/',upload[a616_0x3f33e0(0xc1)]('file'),controller[a616_0x3f33e0(0xc5)]),router[a616_0x3f33e0(0xb8)](a616_0x3f33e0(0xce),controller[a616_0x3f33e0(0xb6)]),router[a616_0x3f33e0(0xc4)](a616_0x3f33e0(0xcc),auth['isAuthenticated'](),controller[a616_0x3f33e0(0xc0)]),router[a616_0x3f33e0(0xc6)]('/:id',auth[a616_0x3f33e0(0xb9)](),controller[a616_0x3f33e0(0xc6)]),module[a616_0x3f33e0(0xcd)]=router; \ No newline at end of file diff --git a/server/api/plugin/plugin.attributes.js b/server/api/plugin/plugin.attributes.js index 6f58373..8481c9b 100644 --- a/server/api/plugin/plugin.attributes.js +++ b/server/api/plugin/plugin.attributes.js @@ -1 +1 @@ -const a617_0x4a07=['adminOnly','always','exports','agentOnly','STRING','html','Indicates\x20whether\x20to\x20display\x20the\x20plugin\x20in\x20the\x20sidebar.','sequelize','script','The\x20physical\x20path\x20where\x20the\x20plugin\x20is\x20stored.','TEXT','ENUM','attributes','Indicates\x20whether\x20the\x20plugin\x20is\x20installed.\x20Updated\x20when\x20the\x20plugin\x20is\x20installed/uninstalled.'];(function(_0x3a56cc,_0x4840c3){const _0x4a07a9=function(_0x2e9d51){while(--_0x2e9d51){_0x3a56cc['push'](_0x3a56cc['shift']());}};_0x4a07a9(++_0x4840c3);}(a617_0x4a07,0x154));const a617_0x2e9d=function(_0x3a56cc,_0x4840c3){_0x3a56cc=_0x3a56cc-0x1b9;let _0x4a07a9=a617_0x4a07[_0x3a56cc];return _0x4a07a9;};const a617_0x3b0ee0=a617_0x2e9d;'use strict';const {DataTypes}=require(a617_0x3b0ee0(0x1bc)),attributes={'name':{'type':DataTypes[a617_0x3b0ee0(0x1b9)]},'type':{'type':DataTypes[a617_0x3b0ee0(0x1c0)](a617_0x3b0ee0(0x1ba),a617_0x3b0ee0(0x1bd))},'description':{'type':DataTypes['TEXT']},'version':{'type':DataTypes[a617_0x3b0ee0(0x1bf)]},'path':{'type':DataTypes[a617_0x3b0ee0(0x1b9)],'comment':a617_0x3b0ee0(0x1be)},'active':{'type':DataTypes['BOOLEAN'],'defaultValue':0x0,'comment':a617_0x3b0ee0(0x1c2)},'sidebar':{'type':DataTypes['ENUM'](a617_0x3b0ee0(0x1c3),a617_0x3b0ee0(0x1c6),a617_0x3b0ee0(0x1c4),'never'),'defaultValue':'always','comment':a617_0x3b0ee0(0x1bb)},'icon':{'type':DataTypes[a617_0x3b0ee0(0x1b9)]},'adminUrl':{'type':DataTypes['STRING']},'agentUrl':{'type':DataTypes[a617_0x3b0ee0(0x1b9)]},'scriptName':{'type':DataTypes[a617_0x3b0ee0(0x1b9)]},'scriptPath':{'type':DataTypes[a617_0x3b0ee0(0x1b9)]}};module[a617_0x3b0ee0(0x1c5)][a617_0x3b0ee0(0x1c1)]=attributes; \ No newline at end of file +const a617_0x5706=['STRING','Indicates\x20whether\x20the\x20plugin\x20is\x20installed.\x20Updated\x20when\x20the\x20plugin\x20is\x20installed/uninstalled.','script','html','ENUM','always','adminOnly','TEXT','exports','Indicates\x20whether\x20to\x20display\x20the\x20plugin\x20in\x20the\x20sidebar.','attributes','sequelize','agentOnly','The\x20physical\x20path\x20where\x20the\x20plugin\x20is\x20stored.','never'];(function(_0x1e6529,_0xa57e4d){const _0x57060d=function(_0x52acad){while(--_0x52acad){_0x1e6529['push'](_0x1e6529['shift']());}};_0x57060d(++_0xa57e4d);}(a617_0x5706,0xc1));const a617_0x52ac=function(_0x1e6529,_0xa57e4d){_0x1e6529=_0x1e6529-0x97;let _0x57060d=a617_0x5706[_0x1e6529];return _0x57060d;};const a617_0x2af0e2=a617_0x52ac;'use strict';const {DataTypes}=require(a617_0x2af0e2(0xa4)),attributes={'name':{'type':DataTypes[a617_0x2af0e2(0x99)]},'type':{'type':DataTypes[a617_0x2af0e2(0x9d)](a617_0x2af0e2(0x9c),a617_0x2af0e2(0x9b))},'description':{'type':DataTypes[a617_0x2af0e2(0xa0)]},'version':{'type':DataTypes['TEXT']},'path':{'type':DataTypes[a617_0x2af0e2(0x99)],'comment':a617_0x2af0e2(0x97)},'active':{'type':DataTypes['BOOLEAN'],'defaultValue':0x0,'comment':a617_0x2af0e2(0x9a)},'sidebar':{'type':DataTypes[a617_0x2af0e2(0x9d)](a617_0x2af0e2(0x9f),a617_0x2af0e2(0xa5),a617_0x2af0e2(0x9e),a617_0x2af0e2(0x98)),'defaultValue':a617_0x2af0e2(0x9e),'comment':a617_0x2af0e2(0xa2)},'icon':{'type':DataTypes[a617_0x2af0e2(0x99)]},'adminUrl':{'type':DataTypes[a617_0x2af0e2(0x99)]},'agentUrl':{'type':DataTypes[a617_0x2af0e2(0x99)]},'scriptName':{'type':DataTypes[a617_0x2af0e2(0x99)]},'scriptPath':{'type':DataTypes[a617_0x2af0e2(0x99)]}};module[a617_0x2af0e2(0xa1)][a617_0x2af0e2(0xa3)]=attributes; \ No newline at end of file diff --git a/server/api/plugin/plugin.controller.js b/server/api/plugin/plugin.controller.js index 37bcbc2..3905b95 100644 --- a/server/api/plugin/plugin.controller.js +++ b/server/api/plugin/plugin.controller.js @@ -1 +1 @@ -const a618_0x4cab=['manifest.json','parameters','\x27PATH\x27\x20parameter\x20not\x20specified','Plugin\x20upload\x20filepath:\x20%s','order','join','close','json','info','Plugin\x20manifest\x20missing','../../config/logger','Warning:\x20admin\x20view\x20not\x20specified','test','sort','UserProfileResource','body','Unable\x20to\x20retrieve\x20the\x20current\x20user','Invalid\x20manifest:\x20type\x20missing','like','hostname','%s%s','port','user','role','0777','autoAssociation','userProfileId','Invalid\x20manifest:\x20views\x20missing','statusCode','sidebar','scriptPath','catch','merge','**/*','Download\x20completed','map','parse','set','isFile','Invalid\x20manifest:\x20version\x20not\x20specified','content-length','upload','webhookGet','rimraf','server/files/plugins','always','then','update','headers','Plugin','where','Invalid\x20manifest:\x20invalid\x20type','name','admin','length','./plugin.socket','files/plugins','pick','stack','node_modules/**/*','options','findOne','request-promise-native','query','util','existsSync','createWriteStream','download','chmodSync','Extracted\x20folder\x20removed','format','readdirSync','VIRTUAL','sendStatus','archiver','%s.zip','keys','../../config/environment','Plugin\x20not\x20found','\x27PORT\x27\x20parameter\x20not\x20specified','root','finalize','undefined','fields','agent','include','limit','lodash','attachments/**/*','delete','type','params','script','rawAttributes','some','dirname','file','../../rediscache','api','send','zip','Error\x20while\x20generating\x20the\x20zip\x20archive','Invalid\x20manifest:\x20name\x20missing','Plugin\x20upload\x20destination:\x20%s','version','error','offset','readFileSync','icon','ENOENT','content-type','resolve','webhookPost','pipe','intersection','filters','count','get','UserProfileSection','includeAll','filter','encoding','attributes','glob','create','fieldName','Invalid\x20plugin\x20structure','path','../../mysqldb','scriptName','extname','Invalid\x20manifest:\x20parameters\x20missing','html','unlinkSync','isDirectory','model','Plugins','Error\x20while\x20downloading\x20the\x20plugin','basename','Invalid\x20manifest:\x20no\x20view\x20specified','filename','warning','status','views','Content-Range','lstatSync','register','icon-apps','description','plugins','method'];(function(_0x1c1c7d,_0x24e0dd){const _0x4cabde=function(_0x3dd0da){while(--_0x3dd0da){_0x1c1c7d['push'](_0x1c1c7d['shift']());}};_0x4cabde(++_0x24e0dd);}(a618_0x4cab,0x164));const a618_0x3dd0=function(_0x1c1c7d,_0x24e0dd){_0x1c1c7d=_0x1c1c7d-0x176;let _0x4cabde=a618_0x4cab[_0x1c1c7d];return _0x4cabde;};const a618_0x57958b=a618_0x3dd0;'use strict';const rp=require(a618_0x57958b(0x17e)),util=require(a618_0x57958b(0x180)),path=require(a618_0x57958b(0x1bf)),fs=require('fs'),_=require(a618_0x57958b(0x197)),extract=require('extract-zip'),rimraf=require(a618_0x57958b(0x202)),archiver=require(a618_0x57958b(0x18a)),{getSocket}=require(a618_0x57958b(0x1a1)),socket=getSocket(),qs=require('../../components/parsers/qs'),logger=require(a618_0x57958b(0x1e1))(a618_0x57958b(0x1a2)),config=require(a618_0x57958b(0x18d)),{db}=require(a618_0x57958b(0x1c0)),{Op,Error:SequelizeError}=require('sequelize');require(a618_0x57958b(0x177))[a618_0x57958b(0x1d2)](socket);function respondWithStatusCode(_0x2503da,_0x5bcf2d){return _0x5bcf2d=_0x5bcf2d||0xcc,function(_0x574741){const _0x1243ec=a618_0x3dd0;if(_0x574741)return _0x2503da[_0x1243ec(0x189)](_0x5bcf2d);return _0x2503da[_0x1243ec(0x1ce)](_0x5bcf2d)['end']();};}function respondWithResult(_0x51676d,_0x3d0a01){return _0x3d0a01=_0x3d0a01||0xc8,function(_0x2a5a1a){const _0x30b1bd=a618_0x3dd0;if(_0x2a5a1a)return _0x51676d[_0x30b1bd(0x1ce)](_0x3d0a01)['json'](_0x2a5a1a);};}function respondWithFilteredResult(_0x52eba7,_0x531eb5){return function(_0x272248){const _0x219629=a618_0x3dd0;if(_0x272248){const _0x1b6be4=_0x272248[_0x219629(0x1b4)],_0x157cc8=_0x531eb5[_0x219629(0x1aa)];let _0x526f4e=_0x531eb5[_0x219629(0x1aa)]+_0x531eb5[_0x219629(0x196)],_0x3355fd;return _0x526f4e>=_0x1b6be4?(_0x526f4e=_0x1b6be4,_0x3355fd=0xc8):_0x3355fd=0xce,_0x52eba7[_0x219629(0x1ce)](_0x3355fd),_0x52eba7['set'](_0x219629(0x1d0),_0x157cc8+'-'+_0x526f4e+'/'+_0x1b6be4)[_0x219629(0x1de)](_0x272248);}return null;};}function saveUpdates(_0x3f7957){return function(_0x5e0e25){const _0x512a64=a618_0x3dd0;if(_0x5e0e25)return _0x5e0e25[_0x512a64(0x206)](_0x3f7957)['then'](function(_0xb25ec7){return _0xb25ec7;});return null;};}function handleEntityNotFound(_0x50f883){return function(_0x20c74e){const _0x19d0c9=a618_0x3dd0;return!_0x20c74e&&_0x50f883[_0x19d0c9(0x189)](0x194),_0x20c74e;};}function handleError(_0xe61a3e,_0x62e96d){return _0x62e96d=_0x62e96d||0x1f4,function(_0x5d1d82){const _0x37b14a=a618_0x3dd0;logger[_0x37b14a(0x1a9)](_0x5d1d82[_0x37b14a(0x17a)]),_0x5d1d82[_0x37b14a(0x20b)]&&delete _0x5d1d82[_0x37b14a(0x20b)],_0xe61a3e['status'](_0x62e96d)[_0x37b14a(0x1a3)](_0x5d1d82);};}exports['index']=function(_0x117960,_0x3f356e){const _0x325a20=a618_0x57958b;let _0x317ecb={};const _0x4f86ef={},_0x552f66={'count':0x0,'rows':[]},_0x2ea0a3=_['map'](db[_0x325a20(0x208)][_0x325a20(0x19d)],function(_0x378887){const _0xe5bb1a=_0x325a20;return{'name':_0x378887[_0xe5bb1a(0x1bd)],'type':_0x378887[_0xe5bb1a(0x19a)]['key']};});_0x4f86ef[_0x325a20(0x1c7)]=_['map'](_0x2ea0a3,_0x325a20(0x20b)),_0x4f86ef[_0x325a20(0x17f)]=_['keys'](_0x117960[_0x325a20(0x17f)]),_0x4f86ef['filters']=_[_0x325a20(0x1b2)](_0x4f86ef['model'],_0x4f86ef[_0x325a20(0x17f)]),_0x317ecb[_0x325a20(0x1ba)]=_[_0x325a20(0x1b2)](_0x4f86ef[_0x325a20(0x1c7)],qs[_0x325a20(0x193)](_0x117960['query'][_0x325a20(0x193)])),_0x317ecb[_0x325a20(0x1ba)]=_0x317ecb['attributes'][_0x325a20(0x176)]?_0x317ecb['attributes']:_0x4f86ef['model'];typeof _0x117960[_0x325a20(0x17f)]['nolimit']==='undefined'&&(_0x317ecb[_0x325a20(0x196)]=qs[_0x325a20(0x196)](_0x117960[_0x325a20(0x17f)][_0x325a20(0x196)]),_0x317ecb[_0x325a20(0x1aa)]=qs['offset'](_0x117960[_0x325a20(0x17f)][_0x325a20(0x1aa)]));_0x317ecb[_0x325a20(0x1db)]=qs['sort'](_0x117960[_0x325a20(0x17f)][_0x325a20(0x1e4)]),_0x317ecb[_0x325a20(0x209)]=qs[_0x325a20(0x1b3)](_[_0x325a20(0x179)](_0x117960[_0x325a20(0x17f)],_0x4f86ef[_0x325a20(0x1b3)]),_0x2ea0a3);_0x117960[_0x325a20(0x17f)][_0x325a20(0x1b8)]&&(_0x317ecb[_0x325a20(0x209)]=_[_0x325a20(0x1f7)](_0x317ecb[_0x325a20(0x209)],{[Op['or']]:_[_0x325a20(0x1fa)](_0x2ea0a3,function(_0x99f7c2){const _0x28c1ed=_0x325a20;if(_0x99f7c2[_0x28c1ed(0x19a)]!==_0x28c1ed(0x188)){const _0x291b73={};return _0x291b73[_0x99f7c2[_0x28c1ed(0x20b)]]={[Op[_0x28c1ed(0x1e9)]]:'%'+_0x117960[_0x28c1ed(0x17f)][_0x28c1ed(0x1b8)]+'%'},_0x291b73;}})}));_0x317ecb=_['merge']({},_0x317ecb,_0x117960[_0x325a20(0x17c)]);const _0x103e7c={'where':_0x317ecb[_0x325a20(0x209)]};return db['Plugin'][_0x325a20(0x1b4)](_0x103e7c)['then'](function(_0xec3918){const _0x34e558=_0x325a20;return _0x552f66['count']=_0xec3918,_0x117960['query'][_0x34e558(0x1b7)]&&(_0x317ecb[_0x34e558(0x195)]=[{'all':!![]}]),db[_0x34e558(0x208)]['findAll'](_0x317ecb);})['then'](function(_0x1f8e11){return _0x552f66['rows']=_0x1f8e11,_0x552f66;})['then'](respondWithFilteredResult(_0x3f356e,_0x317ecb))['catch'](handleError(_0x3f356e,null));},exports['show']=function(_0x3f77ba,_0x4c6f18){const _0x3c019f=a618_0x57958b;let _0x536714={'raw':!![],'where':{'id':_0x3f77ba[_0x3c019f(0x19b)]['id']}};const _0x3a1829={};return _0x3a1829[_0x3c019f(0x1c7)]=_[_0x3c019f(0x18c)](db[_0x3c019f(0x208)][_0x3c019f(0x19d)]),_0x3a1829[_0x3c019f(0x17f)]=_['keys'](_0x3f77ba[_0x3c019f(0x17f)]),_0x3a1829['filters']=_[_0x3c019f(0x1b2)](_0x3a1829[_0x3c019f(0x1c7)],_0x3a1829[_0x3c019f(0x17f)]),_0x536714[_0x3c019f(0x1ba)]=_[_0x3c019f(0x1b2)](_0x3a1829[_0x3c019f(0x1c7)],qs[_0x3c019f(0x193)](_0x3f77ba[_0x3c019f(0x17f)][_0x3c019f(0x193)])),_0x536714[_0x3c019f(0x1ba)]=_0x536714[_0x3c019f(0x1ba)][_0x3c019f(0x176)]?_0x536714[_0x3c019f(0x1ba)]:_0x3a1829['model'],_0x3f77ba[_0x3c019f(0x17f)][_0x3c019f(0x1b7)]&&(_0x536714[_0x3c019f(0x195)]=[{'all':!![]}]),_0x536714=_[_0x3c019f(0x1f7)]({},_0x536714,_0x3f77ba[_0x3c019f(0x17c)]),db[_0x3c019f(0x208)]['findOne'](_0x536714)[_0x3c019f(0x205)](handleEntityNotFound(_0x4c6f18))[_0x3c019f(0x205)](respondWithResult(_0x4c6f18,null))['catch'](handleError(_0x4c6f18,null));},exports[a618_0x57958b(0x183)]=function(_0x225ed3,_0x2ab8f6){const _0x3cdce4=a618_0x57958b;return db[_0x3cdce4(0x208)][_0x3cdce4(0x17d)]({'where':{'id':_0x225ed3[_0x3cdce4(0x19b)]['id']},'attributes':[_0x3cdce4(0x20b),_0x3cdce4(0x1bf)],'raw':!![]})[_0x3cdce4(0x205)](handleEntityNotFound(_0x2ab8f6))['then'](function(_0x3c5e86){const _0x7872ee=_0x3cdce4;if(_0x3c5e86){const _0x2f6144=path[_0x7872ee(0x1dc)](config[_0x7872ee(0x190)],_0x7872ee(0x203),util[_0x7872ee(0x186)]('%s.zip',path[_0x7872ee(0x1ca)](_0x3c5e86[_0x7872ee(0x1bf)]))),_0x14a3b5=fs[_0x7872ee(0x182)](_0x2f6144),_0x17d6b7=archiver(_0x7872ee(0x1a4),{'zlib':{'level':0x9}});_0x17d6b7['on'](_0x7872ee(0x1cd),function(_0x15734d){const _0x1d01f7=_0x7872ee;if(_0x15734d['code']===_0x1d01f7(0x1ad))logger[_0x1d01f7(0x1a9)](_0x15734d);else throw new SequelizeError(_0x1d01f7(0x1a5));}),_0x17d6b7['on'](_0x7872ee(0x1a9),function(){const _0x26c245=_0x7872ee;throw new SequelizeError(_0x26c245(0x1a5));}),_0x17d6b7[_0x7872ee(0x1b1)](_0x14a3b5),_0x17d6b7[_0x7872ee(0x1bb)](_0x7872ee(0x1f8),{'cwd':path[_0x7872ee(0x1dc)](config[_0x7872ee(0x190)],_0x7872ee(0x203),path['dirname'](_0x3c5e86[_0x7872ee(0x1bf)])),'ignore':[path['join'](path['basename'](_0x3c5e86[_0x7872ee(0x1bf)]),_0x7872ee(0x17b)),path[_0x7872ee(0x1dc)](path[_0x7872ee(0x1ca)](_0x3c5e86[_0x7872ee(0x1bf)]),_0x7872ee(0x198))],'nodir':!![]})[_0x7872ee(0x191)](),_0x14a3b5['on'](_0x7872ee(0x1dd),function(){const _0xcbdfd1=_0x7872ee;if(!fs[_0xcbdfd1(0x181)](_0x2f6144))throw new SequelizeError(_0xcbdfd1(0x18e));return _0x2ab8f6['download'](_0x2f6144,util[_0xcbdfd1(0x186)](_0xcbdfd1(0x18b),path[_0xcbdfd1(0x1ca)](_0x3c5e86['path'])),function(_0x97c258){const _0x2515ea=_0xcbdfd1;if(_0x97c258)throw new SequelizeError(_0x2515ea(0x1c9));fs['unlinkSync'](_0x2f6144),logger[_0x2515ea(0x1df)](_0x2515ea(0x1f9)),logger[_0x2515ea(0x1df)]('Temporary\x20file\x20removed');});});}return null;})[_0x3cdce4(0x1f6)](handleError(_0x2ab8f6,null));},exports[a618_0x57958b(0x200)]=function(_0x34ba6e,_0x4a4100,_0x5042f5){const _0x190c26=a618_0x57958b,_0x5d2628=path[_0x190c26(0x1ca)](_0x34ba6e[_0x190c26(0x1a0)]['filename'],path[_0x190c26(0x1c2)](_0x34ba6e[_0x190c26(0x1a0)][_0x190c26(0x1cc)])),_0x58f914=path[_0x190c26(0x1dc)](config['root'],_0x190c26(0x203),_0x34ba6e[_0x190c26(0x1a0)][_0x190c26(0x1cc)]),_0xc3cabd=path[_0x190c26(0x1dc)](config[_0x190c26(0x190)],_0x190c26(0x178),_0x5d2628);logger[_0x190c26(0x1df)](_0x190c26(0x1da),_0x58f914),logger[_0x190c26(0x1df)](_0x190c26(0x1a7),_0xc3cabd);try{fs[_0x190c26(0x184)](_0x58f914,parseInt(_0x190c26(0x1ef),0x8)),extract(_0x58f914,{'dir':_0xc3cabd},function(_0x3bbc7c){const _0x5c9eab=_0x190c26;_0x3bbc7c&&(logger[_0x5c9eab(0x1a9)](_0x3bbc7c),handleError(_0x3bbc7c,!![]));const _0x24d70c=fs['readdirSync'](_0xc3cabd);if(_0x24d70c[_0x5c9eab(0x176)]>0x1)return removeReferences(_0x58f914,_0xc3cabd),logger['error'](_0x5c9eab(0x1be)),_0x5042f5(new Error(_0x5c9eab(0x1be)));const _0x3dbe3c=fs[_0x5c9eab(0x1d1)](path[_0x5c9eab(0x1dc)](_0xc3cabd,_0x24d70c[0x0]));if(_0x3dbe3c[_0x5c9eab(0x1fd)]())return removeReferences(_0x58f914,_0xc3cabd),logger[_0x5c9eab(0x1a9)]('Invalid\x20plugin\x20structure'),_0x5042f5(new Error(_0x5c9eab(0x1be)));if(_0x3dbe3c[_0x5c9eab(0x1c6)]()){const _0x3f1723=fs[_0x5c9eab(0x187)](path[_0x5c9eab(0x1dc)](_0xc3cabd,_0x24d70c[0x0]));if(_0x3f1723[_0x5c9eab(0x176)]===0x0)return removeReferences(_0x58f914,_0xc3cabd),logger['error'](_0x5c9eab(0x1be)),_0x5042f5(new Error('Invalid\x20plugin\x20structure'));const _0x3c1e60=_0x3f1723[_0x5c9eab(0x19e)](function(_0x472182){const _0x43a426=_0x5c9eab;return _0x472182===_0x43a426(0x1d7);});if(!_0x3c1e60)return _0x5042f5(new Error(_0x5c9eab(0x1e0)));const _0x460c61=fs[_0x5c9eab(0x1ab)](path[_0x5c9eab(0x1dc)](_0xc3cabd,_0x24d70c[0x0],_0x5c9eab(0x1d7))),_0x4b5ffc=JSON[_0x5c9eab(0x1fb)](_0x460c61);if('undefined'==typeof _0x4b5ffc[_0x5c9eab(0x20b)])return _0x5042f5(new Error(_0x5c9eab(0x1a6)));if(_0x5c9eab(0x192)==typeof _0x4b5ffc[_0x5c9eab(0x19a)])return _0x5042f5(new Error(_0x5c9eab(0x1e8)));if(_0x5c9eab(0x192)==typeof _0x4b5ffc[_0x5c9eab(0x1a8)])return _0x5042f5(new Error(_0x5c9eab(0x1fe)));if(_0x5c9eab(0x192)==typeof _0x4b5ffc[_0x5c9eab(0x1d8)])return _0x5042f5(new Error(_0x5c9eab(0x1c3)));if(_0x4b5ffc[_0x5c9eab(0x19a)]===_0x5c9eab(0x1c4)){if(_0x5c9eab(0x192)==typeof _0x4b5ffc['parameters'][_0x5c9eab(0x1cf)])return _0x5042f5(new Error(_0x5c9eab(0x1f2)));if(_0x5c9eab(0x192)==typeof _0x4b5ffc['parameters'][_0x5c9eab(0x1cf)][_0x5c9eab(0x20c)]&&_0x5c9eab(0x192)==typeof _0x4b5ffc['parameters'][_0x5c9eab(0x1cf)][_0x5c9eab(0x194)])return _0x5042f5(new Error(_0x5c9eab(0x1cb)));}else{if(_0x4b5ffc[_0x5c9eab(0x19a)]===_0x5c9eab(0x19c)){if(_0x5c9eab(0x192)==typeof _0x4b5ffc[_0x5c9eab(0x1d8)]['scriptName'])return _0x5042f5(new Error('Invalid\x20manifest:\x20script\x20name\x20missing'));if(_0x5c9eab(0x192)==typeof _0x4b5ffc['parameters'][_0x5c9eab(0x1f5)])return _0x5042f5(new Error('Invalid\x20manifest:\x20script\x20path\x20missing'));}else return _0x5042f5(new Error(_0x5c9eab(0x20a)));}const _0x51bd3b=_0x4b5ffc[_0x5c9eab(0x20b)],_0x4cdb44=_0x4b5ffc[_0x5c9eab(0x1d4)],_0x1ae6e5=_0x4b5ffc['type'],_0x128f5d=_0x4b5ffc['sidebar']?_0x4b5ffc[_0x5c9eab(0x1f4)]:_0x5c9eab(0x204),_0x3f6a29=_0x4b5ffc[_0x5c9eab(0x1ac)]?_0x4b5ffc[_0x5c9eab(0x1ac)]:_0x5c9eab(0x1d3);let _0x2aeea9='',_0x4de4e0='',_0x55204b='',_0x11e693='';const _0x4a5be7=_0x4b5ffc['version'];if(_0x1ae6e5==='html'){if('undefined'!=typeof _0x4b5ffc[_0x5c9eab(0x1d8)][_0x5c9eab(0x1cf)][_0x5c9eab(0x20c)]){const _0x3faadc=_0x4b5ffc[_0x5c9eab(0x1d8)][_0x5c9eab(0x1cf)][_0x5c9eab(0x20c)];!/^(f|ht)tps?:\/\//i[_0x5c9eab(0x1e3)](_0x3faadc)?_0x2aeea9=path[_0x5c9eab(0x1dc)]('plugins',_0x5d2628,_0x24d70c[0x0],_0x3faadc):_0x2aeea9=_0x3faadc;}else logger[_0x5c9eab(0x1df)](_0x5c9eab(0x1e2));if(_0x5c9eab(0x192)!=typeof _0x4b5ffc[_0x5c9eab(0x1d8)]['views'][_0x5c9eab(0x194)]){const _0x3be607=_0x4b5ffc[_0x5c9eab(0x1d8)]['views'][_0x5c9eab(0x194)];!/^(f|ht)tps?:\/\//i[_0x5c9eab(0x1e3)](_0x3be607)?_0x4de4e0=path['join'](_0x5c9eab(0x1d5),_0x5d2628,_0x24d70c[0x0],_0x3be607):_0x4de4e0=_0x3be607;}else logger[_0x5c9eab(0x1df)]('Warning:\x20agent\x20view\x20not\x20specified');}else{if(_0x1ae6e5==='script'){_0x55204b=_0x4b5ffc[_0x5c9eab(0x1d8)][_0x5c9eab(0x1c1)],_0x11e693=_0x4b5ffc[_0x5c9eab(0x1d8)][_0x5c9eab(0x1f5)];if(_0x5c9eab(0x192)!=typeof _0x4b5ffc[_0x5c9eab(0x1d8)]['views']){if(_0x5c9eab(0x192)!=typeof _0x4b5ffc['parameters'][_0x5c9eab(0x1cf)][_0x5c9eab(0x20c)]){const _0x440111=_0x4b5ffc[_0x5c9eab(0x1d8)][_0x5c9eab(0x1cf)]['admin'];!/^(f|ht)tps?:\/\//i['test'](_0x440111)?_0x2aeea9=path[_0x5c9eab(0x1dc)](_0x5c9eab(0x1d5),_0x5d2628,_0x24d70c[0x0],_0x440111):_0x2aeea9=_0x440111;}if(_0x5c9eab(0x192)!=typeof _0x4b5ffc[_0x5c9eab(0x1d8)][_0x5c9eab(0x1cf)][_0x5c9eab(0x194)]){const _0x3be5f8=_0x4b5ffc['parameters'][_0x5c9eab(0x1cf)][_0x5c9eab(0x194)];!/^(f|ht)tps?:\/\//i[_0x5c9eab(0x1e3)](_0x3be5f8)?_0x4de4e0=path['join'](_0x5c9eab(0x1d5),_0x5d2628,_0x24d70c[0x0],_0x3be5f8):_0x4de4e0=_0x3be5f8;}}}}const _0x384258={'name':_0x51bd3b,'description':_0x4cdb44,'path':path['join'](_0x5d2628,_0x24d70c[0x0]),'type':_0x1ae6e5,'sidebar':_0x128f5d,'icon':_0x3f6a29,'adminUrl':_0x2aeea9,'agentUrl':_0x4de4e0,'scriptName':_0x55204b,'scriptPath':_0x11e693,'version':_0x4a5be7};return removeReferences(_0x58f914,null),db[_0x5c9eab(0x208)][_0x5c9eab(0x1bc)](_0x384258)[_0x5c9eab(0x205)](function(_0x2c6b0c){const _0x4750ca=_0x5c9eab,_0x341e92={'role':_0x34ba6e[_0x4750ca(0x1e6)][_0x4750ca(0x1ee)],'userProfileId':_0x34ba6e[_0x4750ca(0x1e6)]['userProfileId']};if(!_0x341e92)throw new Error(_0x4750ca(0x1e7));if(_0x341e92[_0x4750ca(0x1ee)]===_0x4750ca(0x1ed)){const _0x4370a3=_0x2c6b0c[_0x4750ca(0x1b5)]({'plain':!![]});return db[_0x4750ca(0x1b6)][_0x4750ca(0x17d)]({'where':{'name':_0x4750ca(0x1c8),'userProfileId':_0x341e92[_0x4750ca(0x1f1)]},'raw':!![]})[_0x4750ca(0x205)](function(_0x54c72d){const _0xebc26c=_0x4750ca;return _0x54c72d&&_0x54c72d[_0xebc26c(0x1f0)]===0x0?db[_0xebc26c(0x1e5)]['create']({'name':_0x4370a3[_0xebc26c(0x20b)],'resourceId':_0x4370a3['id'],'type':_0x54c72d[_0xebc26c(0x20b)],'sectionId':_0x54c72d['id']},{})['then'](function(){return _0x2c6b0c;}):_0x2c6b0c;})['catch'](function(_0x2dc0cb){const _0x3699e1=_0x4750ca;logger[_0x3699e1(0x1a9)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x2dc0cb);throw _0x2dc0cb;});}return _0x2c6b0c;})[_0x5c9eab(0x205)](respondWithResult(_0x4a4100,null))[_0x5c9eab(0x1f6)](handleError(_0x4a4100,null));}});}catch(_0x339eff){_0x4a4100[_0x190c26(0x1ce)](0x1f4)[_0x190c26(0x1a3)](_0x339eff);}};function removeReferences(_0x42ffd8,_0x314327){const _0x2c8636=a618_0x57958b;try{_0x42ffd8&&(fs[_0x2c8636(0x1c5)](_0x42ffd8),logger[_0x2c8636(0x1df)]('Zip\x20archive\x20removed')),_0x314327&&(rimraf(_0x314327,function(){}),logger[_0x2c8636(0x1df)](_0x2c8636(0x185)));}catch(_0x2ee8e3){logger['error'](_0x2ee8e3);}}exports[a618_0x57958b(0x206)]=function(_0xe2498c,_0x39adae){const _0x292eb9=a618_0x57958b;return db[_0x292eb9(0x208)][_0x292eb9(0x17d)]({'where':{'id':_0xe2498c[_0x292eb9(0x19b)]['id']}})[_0x292eb9(0x205)](handleEntityNotFound(_0x39adae))['then'](saveUpdates(_0xe2498c[_0x292eb9(0x1e6)]))[_0x292eb9(0x205)](respondWithResult(_0x39adae,null))[_0x292eb9(0x1f6)](handleError(_0x39adae,null));},exports[a618_0x57958b(0x199)]=function(_0x4c223a,_0x387b93){const _0x204d55=a618_0x57958b;return db['Plugin']['findOne']({'where':{'id':_0x4c223a[_0x204d55(0x19b)]['id']}})[_0x204d55(0x205)](function(_0x2862ae){if(_0x2862ae)return _0x2862ae['destroy']();})['then'](function(_0xa4aee2){const _0x13058b=_0x204d55;return rimraf(path[_0x13058b(0x1dc)](config[_0x13058b(0x190)],_0x13058b(0x203),path[_0x13058b(0x19f)](_0xa4aee2[_0x13058b(0x1bf)])),function(){}),_0xa4aee2;})[_0x204d55(0x205)](handleEntityNotFound(_0x387b93))[_0x204d55(0x205)](respondWithStatusCode(_0x387b93,null))[_0x204d55(0x1f6)](handleError(_0x387b93,null));},exports[a618_0x57958b(0x201)]=function(_0x3caa90,_0x1e3edd){const _0x427f05=a618_0x57958b;return Promise[_0x427f05(0x1af)]()[_0x427f05(0x205)](function(){const _0x499022=_0x427f05;if(!_0x3caa90[_0x499022(0x17f)][_0x499022(0x1bf)])throw new Error(_0x499022(0x1d9));if(!_0x3caa90[_0x499022(0x17f)][_0x499022(0x1ec)])throw new Error(_0x499022(0x18f));const _0x20bd5c=_0x3caa90[_0x499022(0x17f)]['hostname']?_0x3caa90['query'][_0x499022(0x1ea)]+':'+_0x3caa90[_0x499022(0x17f)]['port']:'http://localhost:'+_0x3caa90['query']['port'],_0x185de5=_0x3caa90['query']['json']?_0x3caa90[_0x499022(0x17f)][_0x499022(0x1de)]:!![],_0x3caba9=_0x3caa90[_0x499022(0x17f)][_0x499022(0x1b9)]?_0x3caa90[_0x499022(0x17f)][_0x499022(0x1b9)]:null,_0x5212a6={'method':_0x3caa90[_0x499022(0x1d6)],'uri':util[_0x499022(0x186)]('%s%s',_0x20bd5c,_0x3caa90[_0x499022(0x17f)][_0x499022(0x1bf)]),'json':_0x185de5,'resolveWithFullResponse':!![],'encoding':_0x3caba9,'qs':_0x3caa90[_0x499022(0x17f)]};return _0x3caa90[_0x499022(0x207)]&&(_0x5212a6[_0x499022(0x207)]=_0x3caa90[_0x499022(0x207)],_0x5212a6['headers']['content-length']&&delete _0x5212a6[_0x499022(0x207)][_0x499022(0x1ff)]),_0x5212a6[_0x499022(0x207)]['content-type']&&delete _0x5212a6['headers'][_0x499022(0x1ae)],rp(_0x5212a6);})[_0x427f05(0x205)](function(_0x1e830b){const _0x4a9e80=_0x427f05;return _0x1e830b?(_0x1e3edd[_0x4a9e80(0x1fc)](_0x1e830b[_0x4a9e80(0x207)]),logger[_0x4a9e80(0x1df)](_0x1e830b[_0x4a9e80(0x1e6)]),_['endsWith'](_0x3caa90[_0x4a9e80(0x17f)]['path'],_0x4a9e80(0x183))&&_0x1e830b[_0x4a9e80(0x1f3)]==0x1f4?_0x1e3edd['sendStatus'](_0x1e830b[_0x4a9e80(0x1f3)]):_0x1e3edd['status'](_0x1e830b[_0x4a9e80(0x1f3)])[_0x4a9e80(0x1a3)](_0x1e830b[_0x4a9e80(0x1e6)])):_0x1e3edd[_0x4a9e80(0x189)](0xc8);})[_0x427f05(0x1f6)](handleError(_0x1e3edd,null));},exports[a618_0x57958b(0x1b0)]=function(_0x3e7d58,_0x1e6fda){const _0x11a396=a618_0x57958b;return Promise['resolve']()[_0x11a396(0x205)](function(){const _0x2600d2=_0x11a396;if(!_0x3e7d58[_0x2600d2(0x17f)][_0x2600d2(0x1bf)])throw new Error('\x27PATH\x27\x20parameter\x20not\x20specified');if(!_0x3e7d58['query'][_0x2600d2(0x1ec)])throw new Error(_0x2600d2(0x18f));const _0x12ba1c=_0x3e7d58[_0x2600d2(0x17f)][_0x2600d2(0x1ea)]?_0x3e7d58[_0x2600d2(0x17f)][_0x2600d2(0x1ea)]+':'+_0x3e7d58[_0x2600d2(0x17f)][_0x2600d2(0x1ec)]:'http://localhost:'+_0x3e7d58[_0x2600d2(0x17f)][_0x2600d2(0x1ec)],_0x50296a=_0x3e7d58['query'][_0x2600d2(0x1de)]?_0x3e7d58['query'][_0x2600d2(0x1de)]:!![],_0x52e6c2=_0x3e7d58[_0x2600d2(0x17f)][_0x2600d2(0x1b9)]?_0x3e7d58['query'][_0x2600d2(0x1b9)]:null,_0x19c877={'method':_0x3e7d58[_0x2600d2(0x1d6)],'uri':util['format'](_0x2600d2(0x1eb),_0x12ba1c,_0x3e7d58[_0x2600d2(0x17f)]['path']),'json':_0x50296a,'resolveWithFullResponse':!![],'encoding':_0x52e6c2,'body':_0x3e7d58[_0x2600d2(0x1e6)]};return _0x3e7d58['headers']&&(_0x19c877[_0x2600d2(0x207)]=_0x3e7d58[_0x2600d2(0x207)],_0x19c877[_0x2600d2(0x207)]['content-length']&&delete _0x19c877['headers'][_0x2600d2(0x1ff)]),_0x19c877[_0x2600d2(0x207)][_0x2600d2(0x1ae)]&&delete _0x19c877['headers'][_0x2600d2(0x1ae)],rp(_0x19c877);})[_0x11a396(0x205)](function(_0x5cb2af){const _0x498b71=_0x11a396;return _0x5cb2af?(_0x1e6fda[_0x498b71(0x1fc)](_0x5cb2af[_0x498b71(0x207)]),logger[_0x498b71(0x1df)](_0x5cb2af[_0x498b71(0x1e6)]),_0x1e6fda[_0x498b71(0x1ce)](_0x5cb2af[_0x498b71(0x1f3)])[_0x498b71(0x1a3)](_0x5cb2af[_0x498b71(0x1e6)])):_0x1e6fda[_0x498b71(0x189)](0xc8);})['catch'](handleError(_0x1e6fda,null));}; \ No newline at end of file +const a618_0x294d=['like','intersection','order','filename','basename','rows','test','error','util','%s.zip','Plugins','parameters','Invalid\x20plugin\x20structure','encoding','content-type','code','query','readFileSync','Plugin\x20not\x20found','then','attributes','count','Invalid\x20manifest:\x20script\x20name\x20missing','request-promise-native','register','hostname','filters','path','version','files/plugins','method','VIRTUAL','delete','map','where','plugins','params','http://localhost:','create','../../config/logger','limit','update','model','end','show','sendStatus','dirname','sidebar','undefined','merge','rimraf','%s%s','html','Invalid\x20manifest:\x20views\x20missing','UserProfileResource','stack','userProfileId','chmodSync','info','name','./plugin.socket','Warning:\x20agent\x20view\x20not\x20specified','parse','views','Plugin','fieldName','extract-zip','webhookPost','nolimit','Zip\x20archive\x20removed','isDirectory','length','keys','isFile','Plugin\x20upload\x20filepath:\x20%s','always','Invalid\x20manifest:\x20invalid\x20type','download','Invalid\x20manifest:\x20no\x20view\x20specified','glob','content-length','some','options','set','filter','sequelize','readdirSync','\x27PATH\x27\x20parameter\x20not\x20specified','Plugin\x20manifest\x20missing','root','server/files/plugins','send','catch','webhookGet','finalize','pipe','script','resolve','agent','type','lodash','body','0777','warning','manifest.json','Error\x20while\x20downloading\x20the\x20plugin','get','fields','Warning:\x20admin\x20view\x20not\x20specified','file','include','user','headers','offset','description','findOne','format','icon-apps','json','../../mysqldb','admin','rawAttributes','icon','lstatSync','Plugin\x20upload\x20destination:\x20%s','role','../../config/environment','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Download\x20completed','port','statusCode','includeAll','\x27PORT\x27\x20parameter\x20not\x20specified','join','endsWith','existsSync','scriptName','Temporary\x20file\x20removed','Error\x20while\x20generating\x20the\x20zip\x20archive','Invalid\x20manifest:\x20type\x20missing','status'];(function(_0x483f7c,_0x24962e){const _0x294db4=function(_0x399f90){while(--_0x399f90){_0x483f7c['push'](_0x483f7c['shift']());}};_0x294db4(++_0x24962e);}(a618_0x294d,0x1cd));const a618_0x399f=function(_0x483f7c,_0x24962e){_0x483f7c=_0x483f7c-0x1ae;let _0x294db4=a618_0x294d[_0x483f7c];return _0x294db4;};const a618_0x462c5f=a618_0x399f;'use strict';const rp=require(a618_0x462c5f(0x22c)),util=require(a618_0x462c5f(0x21d)),path=require(a618_0x462c5f(0x230)),fs=require('fs'),_=require(a618_0x462c5f(0x1ec)),extract=require(a618_0x462c5f(0x1ca)),rimraf=require(a618_0x462c5f(0x1ba)),archiver=require('archiver'),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require('../../components/parsers/qs'),logger=require(a618_0x462c5f(0x1af))('api'),config=require(a618_0x462c5f(0x206)),{db}=require(a618_0x462c5f(0x1ff)),{Op,Error:SequelizeError}=require(a618_0x462c5f(0x1dd));require(a618_0x462c5f(0x1c4))[a618_0x462c5f(0x22d)](socket);function respondWithStatusCode(_0x2e4d5b,_0x208ddf){return _0x208ddf=_0x208ddf||0xcc,function(_0x2b5c4a){const _0x2443cb=a618_0x399f;if(_0x2b5c4a)return _0x2e4d5b[_0x2443cb(0x1b5)](_0x208ddf);return _0x2e4d5b[_0x2443cb(0x214)](_0x208ddf)[_0x2443cb(0x1b3)]();};}function respondWithResult(_0x454a5f,_0x247d52){return _0x247d52=_0x247d52||0xc8,function(_0x54b79c){const _0x300778=a618_0x399f;if(_0x54b79c)return _0x454a5f[_0x300778(0x214)](_0x247d52)[_0x300778(0x1fe)](_0x54b79c);};}function respondWithFilteredResult(_0x4e6b61,_0x276ee7){return function(_0x1f85cf){const _0x4de7e0=a618_0x399f;if(_0x1f85cf){const _0x2f3a05=_0x1f85cf[_0x4de7e0(0x22a)],_0x100e9f=_0x276ee7['offset'];let _0x30e71a=_0x276ee7[_0x4de7e0(0x1f9)]+_0x276ee7[_0x4de7e0(0x1b0)],_0x1fb9b0;return _0x30e71a>=_0x2f3a05?(_0x30e71a=_0x2f3a05,_0x1fb9b0=0xc8):_0x1fb9b0=0xce,_0x4e6b61[_0x4de7e0(0x214)](_0x1fb9b0),_0x4e6b61[_0x4de7e0(0x1db)]('Content-Range',_0x100e9f+'-'+_0x30e71a+'/'+_0x2f3a05)[_0x4de7e0(0x1fe)](_0x1f85cf);}return null;};}function saveUpdates(_0x592b6b){return function(_0x1296d2){const _0x447982=a618_0x399f;if(_0x1296d2)return _0x1296d2[_0x447982(0x1b1)](_0x592b6b)[_0x447982(0x228)](function(_0x5b9185){return _0x5b9185;});return null;};}function handleEntityNotFound(_0x490470){return function(_0x2fa50d){const _0xfe8c50=a618_0x399f;return!_0x2fa50d&&_0x490470[_0xfe8c50(0x1b5)](0x194),_0x2fa50d;};}function handleError(_0x494fce,_0x1624b4){return _0x1624b4=_0x1624b4||0x1f4,function(_0x2ea84f){const _0x32555a=a618_0x399f;logger[_0x32555a(0x21c)](_0x2ea84f[_0x32555a(0x1bf)]),_0x2ea84f[_0x32555a(0x1c3)]&&delete _0x2ea84f[_0x32555a(0x1c3)],_0x494fce[_0x32555a(0x214)](_0x1624b4)['send'](_0x2ea84f);};}exports['index']=function(_0x2a4786,_0x2dc45e){const _0x44744d=a618_0x462c5f;let _0x1c8a5b={};const _0x41e648={},_0x2c3a10={'count':0x0,'rows':[]},_0x4427ba=_[_0x44744d(0x236)](db[_0x44744d(0x1c8)]['rawAttributes'],function(_0x193ba0){const _0x538b11=_0x44744d;return{'name':_0x193ba0[_0x538b11(0x1c9)],'type':_0x193ba0[_0x538b11(0x1eb)]['key']};});_0x41e648[_0x44744d(0x1b2)]=_[_0x44744d(0x236)](_0x4427ba,_0x44744d(0x1c3)),_0x41e648[_0x44744d(0x225)]=_[_0x44744d(0x1d0)](_0x2a4786['query']),_0x41e648[_0x44744d(0x22f)]=_[_0x44744d(0x216)](_0x41e648[_0x44744d(0x1b2)],_0x41e648[_0x44744d(0x225)]),_0x1c8a5b['attributes']=_[_0x44744d(0x216)](_0x41e648['model'],qs[_0x44744d(0x1f3)](_0x2a4786[_0x44744d(0x225)][_0x44744d(0x1f3)])),_0x1c8a5b[_0x44744d(0x229)]=_0x1c8a5b[_0x44744d(0x229)][_0x44744d(0x1cf)]?_0x1c8a5b[_0x44744d(0x229)]:_0x41e648['model'];typeof _0x2a4786['query'][_0x44744d(0x1cc)]===_0x44744d(0x1b8)&&(_0x1c8a5b['limit']=qs['limit'](_0x2a4786['query']['limit']),_0x1c8a5b['offset']=qs[_0x44744d(0x1f9)](_0x2a4786[_0x44744d(0x225)]['offset']));_0x1c8a5b[_0x44744d(0x217)]=qs['sort'](_0x2a4786[_0x44744d(0x225)]['sort']),_0x1c8a5b[_0x44744d(0x237)]=qs[_0x44744d(0x22f)](_['pick'](_0x2a4786[_0x44744d(0x225)],_0x41e648[_0x44744d(0x22f)]),_0x4427ba);_0x2a4786['query'][_0x44744d(0x1dc)]&&(_0x1c8a5b[_0x44744d(0x237)]=_['merge'](_0x1c8a5b[_0x44744d(0x237)],{[Op['or']]:_[_0x44744d(0x236)](_0x4427ba,function(_0x546033){const _0x414e72=_0x44744d;if(_0x546033['type']!==_0x414e72(0x234)){const _0x4ea92b={};return _0x4ea92b[_0x546033[_0x414e72(0x1c3)]]={[Op[_0x414e72(0x215)]]:'%'+_0x2a4786[_0x414e72(0x225)][_0x414e72(0x1dc)]+'%'},_0x4ea92b;}})}));_0x1c8a5b=_['merge']({},_0x1c8a5b,_0x2a4786['options']);const _0x2cd70f={'where':_0x1c8a5b[_0x44744d(0x237)]};return db[_0x44744d(0x1c8)][_0x44744d(0x22a)](_0x2cd70f)['then'](function(_0x2fc65d){const _0x1501eb=_0x44744d;return _0x2c3a10['count']=_0x2fc65d,_0x2a4786[_0x1501eb(0x225)]['includeAll']&&(_0x1c8a5b[_0x1501eb(0x1f6)]=[{'all':!![]}]),db[_0x1501eb(0x1c8)]['findAll'](_0x1c8a5b);})[_0x44744d(0x228)](function(_0x15dd13){const _0x45b5a8=_0x44744d;return _0x2c3a10[_0x45b5a8(0x21a)]=_0x15dd13,_0x2c3a10;})[_0x44744d(0x228)](respondWithFilteredResult(_0x2dc45e,_0x1c8a5b))[_0x44744d(0x1e4)](handleError(_0x2dc45e,null));},exports[a618_0x462c5f(0x1b4)]=function(_0x36930b,_0x1541cc){const _0x392e22=a618_0x462c5f;let _0x2ceaed={'raw':!![],'where':{'id':_0x36930b[_0x392e22(0x239)]['id']}};const _0x5c5d61={};return _0x5c5d61['model']=_[_0x392e22(0x1d0)](db['Plugin'][_0x392e22(0x201)]),_0x5c5d61[_0x392e22(0x225)]=_['keys'](_0x36930b[_0x392e22(0x225)]),_0x5c5d61[_0x392e22(0x22f)]=_[_0x392e22(0x216)](_0x5c5d61[_0x392e22(0x1b2)],_0x5c5d61[_0x392e22(0x225)]),_0x2ceaed['attributes']=_[_0x392e22(0x216)](_0x5c5d61[_0x392e22(0x1b2)],qs[_0x392e22(0x1f3)](_0x36930b['query'][_0x392e22(0x1f3)])),_0x2ceaed[_0x392e22(0x229)]=_0x2ceaed[_0x392e22(0x229)][_0x392e22(0x1cf)]?_0x2ceaed[_0x392e22(0x229)]:_0x5c5d61[_0x392e22(0x1b2)],_0x36930b[_0x392e22(0x225)][_0x392e22(0x20b)]&&(_0x2ceaed[_0x392e22(0x1f6)]=[{'all':!![]}]),_0x2ceaed=_[_0x392e22(0x1b9)]({},_0x2ceaed,_0x36930b[_0x392e22(0x1da)]),db['Plugin'][_0x392e22(0x1fb)](_0x2ceaed)[_0x392e22(0x228)](handleEntityNotFound(_0x1541cc))[_0x392e22(0x228)](respondWithResult(_0x1541cc,null))[_0x392e22(0x1e4)](handleError(_0x1541cc,null));},exports[a618_0x462c5f(0x1d5)]=function(_0x3a2ec1,_0x3ff1f4){const _0x5988a7=a618_0x462c5f;return db[_0x5988a7(0x1c8)]['findOne']({'where':{'id':_0x3a2ec1['params']['id']},'attributes':[_0x5988a7(0x1c3),_0x5988a7(0x230)],'raw':!![]})[_0x5988a7(0x228)](handleEntityNotFound(_0x3ff1f4))['then'](function(_0x121f10){const _0x16fcf0=_0x5988a7;if(_0x121f10){const _0x515f69=path[_0x16fcf0(0x20d)](config[_0x16fcf0(0x1e1)],'server/files/plugins',util[_0x16fcf0(0x1fc)](_0x16fcf0(0x21e),path[_0x16fcf0(0x219)](_0x121f10[_0x16fcf0(0x230)]))),_0x16793e=fs['createWriteStream'](_0x515f69),_0x560021=archiver('zip',{'zlib':{'level':0x9}});_0x560021['on'](_0x16fcf0(0x1ef),function(_0x133d41){const _0x35cd2f=_0x16fcf0;if(_0x133d41[_0x35cd2f(0x224)]==='ENOENT')logger[_0x35cd2f(0x21c)](_0x133d41);else throw new SequelizeError(_0x35cd2f(0x212));}),_0x560021['on'](_0x16fcf0(0x21c),function(){const _0x43bc5b=_0x16fcf0;throw new SequelizeError(_0x43bc5b(0x212));}),_0x560021[_0x16fcf0(0x1e7)](_0x16793e),_0x560021[_0x16fcf0(0x1d7)]('**/*',{'cwd':path['join'](config['root'],_0x16fcf0(0x1e2),path['dirname'](_0x121f10[_0x16fcf0(0x230)])),'ignore':[path['join'](path[_0x16fcf0(0x219)](_0x121f10[_0x16fcf0(0x230)]),'node_modules/**/*'),path['join'](path['basename'](_0x121f10['path']),'attachments/**/*')],'nodir':!![]})[_0x16fcf0(0x1e6)](),_0x16793e['on']('close',function(){const _0x26e192=_0x16fcf0;if(!fs[_0x26e192(0x20f)](_0x515f69))throw new SequelizeError(_0x26e192(0x227));return _0x3ff1f4[_0x26e192(0x1d5)](_0x515f69,util['format']('%s.zip',path[_0x26e192(0x219)](_0x121f10['path'])),function(_0x12a3b0){const _0x49bb5a=_0x26e192;if(_0x12a3b0)throw new SequelizeError(_0x49bb5a(0x1f1));fs['unlinkSync'](_0x515f69),logger['info'](_0x49bb5a(0x208)),logger[_0x49bb5a(0x1c2)](_0x49bb5a(0x211));});});}return null;})[_0x5988a7(0x1e4)](handleError(_0x3ff1f4,null));},exports['upload']=function(_0x36393d,_0x1dae85,_0x1571bd){const _0x100171=a618_0x462c5f,_0x313083=path[_0x100171(0x219)](_0x36393d[_0x100171(0x1f5)][_0x100171(0x218)],path['extname'](_0x36393d[_0x100171(0x1f5)]['filename'])),_0x1eb2e7=path[_0x100171(0x20d)](config[_0x100171(0x1e1)],_0x100171(0x1e2),_0x36393d[_0x100171(0x1f5)][_0x100171(0x218)]),_0x560170=path[_0x100171(0x20d)](config[_0x100171(0x1e1)],_0x100171(0x232),_0x313083);logger[_0x100171(0x1c2)](_0x100171(0x1d2),_0x1eb2e7),logger[_0x100171(0x1c2)](_0x100171(0x204),_0x560170);try{fs[_0x100171(0x1c1)](_0x1eb2e7,parseInt(_0x100171(0x1ee),0x8)),extract(_0x1eb2e7,{'dir':_0x560170},function(_0x34d2ed){const _0xfc2e8d=_0x100171;_0x34d2ed&&(logger[_0xfc2e8d(0x21c)](_0x34d2ed),handleError(_0x34d2ed,!![]));const _0x30cc35=fs[_0xfc2e8d(0x1de)](_0x560170);if(_0x30cc35[_0xfc2e8d(0x1cf)]>0x1)return removeReferences(_0x1eb2e7,_0x560170),logger[_0xfc2e8d(0x21c)](_0xfc2e8d(0x221)),_0x1571bd(new Error(_0xfc2e8d(0x221)));const _0x655765=fs[_0xfc2e8d(0x203)](path[_0xfc2e8d(0x20d)](_0x560170,_0x30cc35[0x0]));if(_0x655765[_0xfc2e8d(0x1d1)]())return removeReferences(_0x1eb2e7,_0x560170),logger[_0xfc2e8d(0x21c)](_0xfc2e8d(0x221)),_0x1571bd(new Error(_0xfc2e8d(0x221)));if(_0x655765[_0xfc2e8d(0x1ce)]()){const _0x4d0dfe=fs[_0xfc2e8d(0x1de)](path['join'](_0x560170,_0x30cc35[0x0]));if(_0x4d0dfe[_0xfc2e8d(0x1cf)]===0x0)return removeReferences(_0x1eb2e7,_0x560170),logger[_0xfc2e8d(0x21c)]('Invalid\x20plugin\x20structure'),_0x1571bd(new Error(_0xfc2e8d(0x221)));const _0x18d673=_0x4d0dfe[_0xfc2e8d(0x1d9)](function(_0xdd3b9c){return _0xdd3b9c==='manifest.json';});if(!_0x18d673)return _0x1571bd(new Error(_0xfc2e8d(0x1e0)));const _0x51f123=fs[_0xfc2e8d(0x226)](path[_0xfc2e8d(0x20d)](_0x560170,_0x30cc35[0x0],_0xfc2e8d(0x1f0))),_0x31af40=JSON[_0xfc2e8d(0x1c6)](_0x51f123);if(_0xfc2e8d(0x1b8)==typeof _0x31af40[_0xfc2e8d(0x1c3)])return _0x1571bd(new Error('Invalid\x20manifest:\x20name\x20missing'));if(_0xfc2e8d(0x1b8)==typeof _0x31af40[_0xfc2e8d(0x1eb)])return _0x1571bd(new Error(_0xfc2e8d(0x213)));if('undefined'==typeof _0x31af40[_0xfc2e8d(0x231)])return _0x1571bd(new Error('Invalid\x20manifest:\x20version\x20not\x20specified'));if(_0xfc2e8d(0x1b8)==typeof _0x31af40[_0xfc2e8d(0x220)])return _0x1571bd(new Error('Invalid\x20manifest:\x20parameters\x20missing'));if(_0x31af40['type']===_0xfc2e8d(0x1bc)){if(_0xfc2e8d(0x1b8)==typeof _0x31af40[_0xfc2e8d(0x220)][_0xfc2e8d(0x1c7)])return _0x1571bd(new Error(_0xfc2e8d(0x1bd)));if(_0xfc2e8d(0x1b8)==typeof _0x31af40[_0xfc2e8d(0x220)]['views'][_0xfc2e8d(0x200)]&&'undefined'==typeof _0x31af40[_0xfc2e8d(0x220)][_0xfc2e8d(0x1c7)][_0xfc2e8d(0x1ea)])return _0x1571bd(new Error(_0xfc2e8d(0x1d6)));}else{if(_0x31af40['type']===_0xfc2e8d(0x1e8)){if(_0xfc2e8d(0x1b8)==typeof _0x31af40[_0xfc2e8d(0x220)]['scriptName'])return _0x1571bd(new Error(_0xfc2e8d(0x22b)));if(_0xfc2e8d(0x1b8)==typeof _0x31af40[_0xfc2e8d(0x220)]['scriptPath'])return _0x1571bd(new Error('Invalid\x20manifest:\x20script\x20path\x20missing'));}else return _0x1571bd(new Error(_0xfc2e8d(0x1d4)));}const _0x3d7ba8=_0x31af40[_0xfc2e8d(0x1c3)],_0x40b3aa=_0x31af40[_0xfc2e8d(0x1fa)],_0x3d47d0=_0x31af40['type'],_0x4b7c7e=_0x31af40[_0xfc2e8d(0x1b7)]?_0x31af40[_0xfc2e8d(0x1b7)]:_0xfc2e8d(0x1d3),_0x1fd06f=_0x31af40[_0xfc2e8d(0x202)]?_0x31af40[_0xfc2e8d(0x202)]:_0xfc2e8d(0x1fd);let _0x561877='',_0x335c4a='',_0x14d14f='',_0x260ec3='';const _0xc5aad9=_0x31af40['version'];if(_0x3d47d0===_0xfc2e8d(0x1bc)){if('undefined'!=typeof _0x31af40[_0xfc2e8d(0x220)][_0xfc2e8d(0x1c7)][_0xfc2e8d(0x200)]){const _0x521f96=_0x31af40[_0xfc2e8d(0x220)][_0xfc2e8d(0x1c7)][_0xfc2e8d(0x200)];!/^(f|ht)tps?:\/\//i[_0xfc2e8d(0x21b)](_0x521f96)?_0x561877=path[_0xfc2e8d(0x20d)](_0xfc2e8d(0x238),_0x313083,_0x30cc35[0x0],_0x521f96):_0x561877=_0x521f96;}else logger[_0xfc2e8d(0x1c2)](_0xfc2e8d(0x1f4));if('undefined'!=typeof _0x31af40['parameters']['views'][_0xfc2e8d(0x1ea)]){const _0x2944cf=_0x31af40[_0xfc2e8d(0x220)][_0xfc2e8d(0x1c7)][_0xfc2e8d(0x1ea)];!/^(f|ht)tps?:\/\//i[_0xfc2e8d(0x21b)](_0x2944cf)?_0x335c4a=path['join'](_0xfc2e8d(0x238),_0x313083,_0x30cc35[0x0],_0x2944cf):_0x335c4a=_0x2944cf;}else logger[_0xfc2e8d(0x1c2)](_0xfc2e8d(0x1c5));}else{if(_0x3d47d0===_0xfc2e8d(0x1e8)){_0x14d14f=_0x31af40[_0xfc2e8d(0x220)][_0xfc2e8d(0x210)],_0x260ec3=_0x31af40[_0xfc2e8d(0x220)]['scriptPath'];if('undefined'!=typeof _0x31af40[_0xfc2e8d(0x220)][_0xfc2e8d(0x1c7)]){if('undefined'!=typeof _0x31af40[_0xfc2e8d(0x220)]['views'][_0xfc2e8d(0x200)]){const _0x31477f=_0x31af40[_0xfc2e8d(0x220)]['views']['admin'];!/^(f|ht)tps?:\/\//i['test'](_0x31477f)?_0x561877=path[_0xfc2e8d(0x20d)](_0xfc2e8d(0x238),_0x313083,_0x30cc35[0x0],_0x31477f):_0x561877=_0x31477f;}if(_0xfc2e8d(0x1b8)!=typeof _0x31af40[_0xfc2e8d(0x220)][_0xfc2e8d(0x1c7)][_0xfc2e8d(0x1ea)]){const _0x269429=_0x31af40[_0xfc2e8d(0x220)][_0xfc2e8d(0x1c7)][_0xfc2e8d(0x1ea)];!/^(f|ht)tps?:\/\//i[_0xfc2e8d(0x21b)](_0x269429)?_0x335c4a=path[_0xfc2e8d(0x20d)](_0xfc2e8d(0x238),_0x313083,_0x30cc35[0x0],_0x269429):_0x335c4a=_0x269429;}}}}const _0x36d412={'name':_0x3d7ba8,'description':_0x40b3aa,'path':path[_0xfc2e8d(0x20d)](_0x313083,_0x30cc35[0x0]),'type':_0x3d47d0,'sidebar':_0x4b7c7e,'icon':_0x1fd06f,'adminUrl':_0x561877,'agentUrl':_0x335c4a,'scriptName':_0x14d14f,'scriptPath':_0x260ec3,'version':_0xc5aad9};return removeReferences(_0x1eb2e7,null),db[_0xfc2e8d(0x1c8)]['create'](_0x36d412)[_0xfc2e8d(0x228)](function(_0xf48c4e){const _0x928ff0=_0xfc2e8d,_0x53584c={'role':_0x36393d[_0x928ff0(0x1ed)]['role'],'userProfileId':_0x36393d[_0x928ff0(0x1ed)][_0x928ff0(0x1c0)]};if(!_0x53584c)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x53584c[_0x928ff0(0x205)]===_0x928ff0(0x1f7)){const _0x6af236=_0xf48c4e[_0x928ff0(0x1f2)]({'plain':!![]});return db['UserProfileSection'][_0x928ff0(0x1fb)]({'where':{'name':_0x928ff0(0x21f),'userProfileId':_0x53584c[_0x928ff0(0x1c0)]},'raw':!![]})[_0x928ff0(0x228)](function(_0x50d041){const _0x285816=_0x928ff0;return _0x50d041&&_0x50d041['autoAssociation']===0x0?db[_0x285816(0x1be)][_0x285816(0x1ae)]({'name':_0x6af236[_0x285816(0x1c3)],'resourceId':_0x6af236['id'],'type':_0x50d041['name'],'sectionId':_0x50d041['id']},{})[_0x285816(0x228)](function(){return _0xf48c4e;}):_0xf48c4e;})[_0x928ff0(0x1e4)](function(_0x207f25){const _0x5a30f2=_0x928ff0;logger[_0x5a30f2(0x21c)](_0x5a30f2(0x207),_0x207f25);throw _0x207f25;});}return _0xf48c4e;})['then'](respondWithResult(_0x1dae85,null))['catch'](handleError(_0x1dae85,null));}});}catch(_0x41d002){_0x1dae85[_0x100171(0x214)](0x1f4)[_0x100171(0x1e3)](_0x41d002);}};function removeReferences(_0x2110be,_0x3adc37){const _0x100476=a618_0x462c5f;try{_0x2110be&&(fs['unlinkSync'](_0x2110be),logger[_0x100476(0x1c2)](_0x100476(0x1cd))),_0x3adc37&&(rimraf(_0x3adc37,function(){}),logger[_0x100476(0x1c2)]('Extracted\x20folder\x20removed'));}catch(_0x45208a){logger['error'](_0x45208a);}}exports[a618_0x462c5f(0x1b1)]=function(_0x41bb5a,_0x183ade){const _0x493c62=a618_0x462c5f;return db['Plugin'][_0x493c62(0x1fb)]({'where':{'id':_0x41bb5a[_0x493c62(0x239)]['id']}})[_0x493c62(0x228)](handleEntityNotFound(_0x183ade))[_0x493c62(0x228)](saveUpdates(_0x41bb5a['body']))[_0x493c62(0x228)](respondWithResult(_0x183ade,null))[_0x493c62(0x1e4)](handleError(_0x183ade,null));},exports[a618_0x462c5f(0x235)]=function(_0x775a6a,_0x5a93d6){const _0x2109a1=a618_0x462c5f;return db[_0x2109a1(0x1c8)][_0x2109a1(0x1fb)]({'where':{'id':_0x775a6a[_0x2109a1(0x239)]['id']}})[_0x2109a1(0x228)](function(_0x23b8a4){if(_0x23b8a4)return _0x23b8a4['destroy']();})[_0x2109a1(0x228)](function(_0x832274){const _0x6639d0=_0x2109a1;return rimraf(path[_0x6639d0(0x20d)](config[_0x6639d0(0x1e1)],_0x6639d0(0x1e2),path[_0x6639d0(0x1b6)](_0x832274['path'])),function(){}),_0x832274;})[_0x2109a1(0x228)](handleEntityNotFound(_0x5a93d6))[_0x2109a1(0x228)](respondWithStatusCode(_0x5a93d6,null))[_0x2109a1(0x1e4)](handleError(_0x5a93d6,null));},exports[a618_0x462c5f(0x1e5)]=function(_0xac2398,_0x54e032){const _0xfcd53a=a618_0x462c5f;return Promise[_0xfcd53a(0x1e9)]()['then'](function(){const _0x39312f=_0xfcd53a;if(!_0xac2398[_0x39312f(0x225)]['path'])throw new Error('\x27PATH\x27\x20parameter\x20not\x20specified');if(!_0xac2398[_0x39312f(0x225)][_0x39312f(0x209)])throw new Error('\x27PORT\x27\x20parameter\x20not\x20specified');const _0xdfa722=_0xac2398['query']['hostname']?_0xac2398[_0x39312f(0x225)][_0x39312f(0x22e)]+':'+_0xac2398[_0x39312f(0x225)]['port']:'http://localhost:'+_0xac2398['query'][_0x39312f(0x209)],_0x14deb4=_0xac2398[_0x39312f(0x225)][_0x39312f(0x1fe)]?_0xac2398[_0x39312f(0x225)][_0x39312f(0x1fe)]:!![],_0x703e36=_0xac2398['query']['encoding']?_0xac2398[_0x39312f(0x225)][_0x39312f(0x222)]:null,_0x37f8f3={'method':_0xac2398[_0x39312f(0x233)],'uri':util[_0x39312f(0x1fc)](_0x39312f(0x1bb),_0xdfa722,_0xac2398[_0x39312f(0x225)][_0x39312f(0x230)]),'json':_0x14deb4,'resolveWithFullResponse':!![],'encoding':_0x703e36,'qs':_0xac2398[_0x39312f(0x225)]};return _0xac2398[_0x39312f(0x1f8)]&&(_0x37f8f3[_0x39312f(0x1f8)]=_0xac2398[_0x39312f(0x1f8)],_0x37f8f3[_0x39312f(0x1f8)][_0x39312f(0x1d8)]&&delete _0x37f8f3[_0x39312f(0x1f8)][_0x39312f(0x1d8)]),_0x37f8f3[_0x39312f(0x1f8)][_0x39312f(0x223)]&&delete _0x37f8f3[_0x39312f(0x1f8)][_0x39312f(0x223)],rp(_0x37f8f3);})[_0xfcd53a(0x228)](function(_0x238108){const _0x2c5b5c=_0xfcd53a;return _0x238108?(_0x54e032[_0x2c5b5c(0x1db)](_0x238108[_0x2c5b5c(0x1f8)]),logger[_0x2c5b5c(0x1c2)](_0x238108[_0x2c5b5c(0x1ed)]),_[_0x2c5b5c(0x20e)](_0xac2398[_0x2c5b5c(0x225)][_0x2c5b5c(0x230)],_0x2c5b5c(0x1d5))&&_0x238108[_0x2c5b5c(0x20a)]==0x1f4?_0x54e032['sendStatus'](_0x238108[_0x2c5b5c(0x20a)]):_0x54e032['status'](_0x238108[_0x2c5b5c(0x20a)])['send'](_0x238108[_0x2c5b5c(0x1ed)])):_0x54e032[_0x2c5b5c(0x1b5)](0xc8);})[_0xfcd53a(0x1e4)](handleError(_0x54e032,null));},exports[a618_0x462c5f(0x1cb)]=function(_0x50dac9,_0x1e8344){const _0x4ecb6c=a618_0x462c5f;return Promise[_0x4ecb6c(0x1e9)]()['then'](function(){const _0x55c383=_0x4ecb6c;if(!_0x50dac9[_0x55c383(0x225)][_0x55c383(0x230)])throw new Error(_0x55c383(0x1df));if(!_0x50dac9[_0x55c383(0x225)]['port'])throw new Error(_0x55c383(0x20c));const _0x4c5855=_0x50dac9[_0x55c383(0x225)][_0x55c383(0x22e)]?_0x50dac9[_0x55c383(0x225)]['hostname']+':'+_0x50dac9[_0x55c383(0x225)][_0x55c383(0x209)]:_0x55c383(0x23a)+_0x50dac9[_0x55c383(0x225)][_0x55c383(0x209)],_0x5f0123=_0x50dac9[_0x55c383(0x225)]['json']?_0x50dac9['query'][_0x55c383(0x1fe)]:!![],_0x373bfa=_0x50dac9['query']['encoding']?_0x50dac9[_0x55c383(0x225)][_0x55c383(0x222)]:null,_0x474c84={'method':_0x50dac9[_0x55c383(0x233)],'uri':util[_0x55c383(0x1fc)](_0x55c383(0x1bb),_0x4c5855,_0x50dac9[_0x55c383(0x225)][_0x55c383(0x230)]),'json':_0x5f0123,'resolveWithFullResponse':!![],'encoding':_0x373bfa,'body':_0x50dac9['body']};return _0x50dac9[_0x55c383(0x1f8)]&&(_0x474c84['headers']=_0x50dac9[_0x55c383(0x1f8)],_0x474c84[_0x55c383(0x1f8)][_0x55c383(0x1d8)]&&delete _0x474c84[_0x55c383(0x1f8)]['content-length']),_0x474c84[_0x55c383(0x1f8)][_0x55c383(0x223)]&&delete _0x474c84[_0x55c383(0x1f8)][_0x55c383(0x223)],rp(_0x474c84);})['then'](function(_0x20262a){const _0x4ef9ef=_0x4ecb6c;return _0x20262a?(_0x1e8344[_0x4ef9ef(0x1db)](_0x20262a[_0x4ef9ef(0x1f8)]),logger[_0x4ef9ef(0x1c2)](_0x20262a[_0x4ef9ef(0x1ed)]),_0x1e8344[_0x4ef9ef(0x214)](_0x20262a[_0x4ef9ef(0x20a)])[_0x4ef9ef(0x1e3)](_0x20262a[_0x4ef9ef(0x1ed)])):_0x1e8344[_0x4ef9ef(0x1b5)](0xc8);})[_0x4ecb6c(0x1e4)](handleError(_0x1e8344,null));}; \ No newline at end of file diff --git a/server/api/plugin/plugin.events.js b/server/api/plugin/plugin.events.js index d5ef462..2ac1ed8 100644 --- a/server/api/plugin/plugin.events.js +++ b/server/api/plugin/plugin.events.js @@ -1 +1 @@ -const a619_0x537b=['save','addHook','setMaxListeners','Plugin','undefined','exports','emit'];(function(_0x345e14,_0xf6dbd){const _0x537b2f=function(_0x5f3acf){while(--_0x5f3acf){_0x345e14['push'](_0x345e14['shift']());}};_0x537b2f(++_0xf6dbd);}(a619_0x537b,0xd2));const a619_0x5f3a=function(_0x345e14,_0xf6dbd){_0x345e14=_0x345e14-0x18f;let _0x537b2f=a619_0x537b[_0x345e14];return _0x537b2f;};const a619_0x3f9c82=a619_0x5f3a;'use strict';const EventEmitter=require('events'),Plugin=require('../../mysqldb')['db'][a619_0x3f9c82(0x192)],PluginEvents=new EventEmitter();PluginEvents[a619_0x3f9c82(0x191)](0x0);const events={'afterCreate':a619_0x3f9c82(0x18f),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x1861d4){return function(_0x3348ec){const _0x598b08=a619_0x5f3a;PluginEvents['emit'](_0x1861d4+':'+_0x3348ec['id'],_0x3348ec),PluginEvents[_0x598b08(0x195)](_0x1861d4,_0x3348ec);};}for(const e in events){if(typeof events[e]!==a619_0x3f9c82(0x193)){const event=events[e];Plugin[a619_0x3f9c82(0x190)](e,emitEvent(event));}}module[a619_0x3f9c82(0x194)]=PluginEvents; \ No newline at end of file +const a619_0x5759=['save','events','emit','setMaxListeners','exports','addHook','../../mysqldb','undefined'];(function(_0x411969,_0x1ab95b){const _0x57596c=function(_0x2d5cf6){while(--_0x2d5cf6){_0x411969['push'](_0x411969['shift']());}};_0x57596c(++_0x1ab95b);}(a619_0x5759,0xf0));const a619_0x2d5c=function(_0x411969,_0x1ab95b){_0x411969=_0x411969-0x1ee;let _0x57596c=a619_0x5759[_0x411969];return _0x57596c;};const a619_0x55b0c0=a619_0x2d5c;'use strict';const EventEmitter=require(a619_0x55b0c0(0x1ef)),Plugin=require(a619_0x55b0c0(0x1f4))['db']['Plugin'],PluginEvents=new EventEmitter();PluginEvents[a619_0x55b0c0(0x1f1)](0x0);const events={'afterCreate':a619_0x55b0c0(0x1ee),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x30f0a5){return function(_0x14788c){const _0x34aa65=a619_0x2d5c;PluginEvents['emit'](_0x30f0a5+':'+_0x14788c['id'],_0x14788c),PluginEvents[_0x34aa65(0x1f0)](_0x30f0a5,_0x14788c);};}for(const e in events){if(typeof events[e]!==a619_0x55b0c0(0x1f5)){const event=events[e];Plugin[a619_0x55b0c0(0x1f3)](e,emitEvent(event));}}module[a619_0x55b0c0(0x1f2)]=PluginEvents; \ No newline at end of file diff --git a/server/api/plugin/plugin.model.js b/server/api/plugin/plugin.model.js index f9e0736..b0f9832 100644 --- a/server/api/plugin/plugin.model.js +++ b/server/api/plugin/plugin.model.js @@ -1 +1 @@ -const a620_0xde45=['./plugin.options','Plugin','function','init','exports','sequelize'];(function(_0x244a00,_0x3ed984){const _0xde4530=function(_0x3e022a){while(--_0x3e022a){_0x244a00['push'](_0x244a00['shift']());}};_0xde4530(++_0x3ed984);}(a620_0xde45,0x12e));const a620_0x3e02=function(_0x244a00,_0x3ed984){_0x244a00=_0x244a00-0x1a5;let _0xde4530=a620_0xde45[_0x244a00];return _0xde4530;};const a620_0x1be240=a620_0x3e02;'use strict';const {Model}=require(a620_0x1be240(0x1a8)),{attributes}=require('./plugin.attributes'),{options}=require(a620_0x1be240(0x1a9));class Plugin extends Model{}function init(_0x1d6de6,_0x92b39f){const _0xdf0024=a620_0x1be240,_0x1e46da=options(_0x1d6de6),_0x1e4bc4=typeof _0x92b39f===_0xdf0024(0x1a5)?_0x92b39f(_0x1e46da):_0x1e46da;return Plugin[_0xdf0024(0x1a6)](attributes,_0x1e4bc4),Plugin;}module[a620_0x1be240(0x1a7)][a620_0x1be240(0x1aa)]=Plugin,module['exports'][a620_0x1be240(0x1a6)]=init; \ No newline at end of file +const a620_0x1136=['./plugin.attributes','exports','init','function','sequelize','./plugin.options'];(function(_0x1a2d7d,_0xc83d3c){const _0x1136d6=function(_0x575373){while(--_0x575373){_0x1a2d7d['push'](_0x1a2d7d['shift']());}};_0x1136d6(++_0xc83d3c);}(a620_0x1136,0xf0));const a620_0x5753=function(_0x1a2d7d,_0xc83d3c){_0x1a2d7d=_0x1a2d7d-0x85;let _0x1136d6=a620_0x1136[_0x1a2d7d];return _0x1136d6;};const a620_0x588de9=a620_0x5753;'use strict';const {Model}=require(a620_0x588de9(0x89)),{attributes}=require(a620_0x588de9(0x85)),{options}=require(a620_0x588de9(0x8a));class Plugin extends Model{}function init(_0x313d46,_0x44066f){const _0x278b95=a620_0x588de9,_0x4455f7=options(_0x313d46),_0x31ea4b=typeof _0x44066f===_0x278b95(0x88)?_0x44066f(_0x4455f7):_0x4455f7;return Plugin[_0x278b95(0x87)](attributes,_0x31ea4b),Plugin;}module[a620_0x588de9(0x86)]['Plugin']=Plugin,module[a620_0x588de9(0x86)]['init']=init; \ No newline at end of file diff --git a/server/api/plugin/plugin.options.js b/server/api/plugin/plugin.options.js index 6d8e361..cc35123 100644 --- a/server/api/plugin/plugin.options.js +++ b/server/api/plugin/plugin.options.js @@ -1 +1 @@ -var a621_0x8141=['options','plugins','exports'];(function(_0x5b0eb1,_0x421cf8){var _0x8141c4=function(_0x36d20d){while(--_0x36d20d){_0x5b0eb1['push'](_0x5b0eb1['shift']());}};_0x8141c4(++_0x421cf8);}(a621_0x8141,0x1af));var a621_0x36d2=function(_0x5b0eb1,_0x421cf8){_0x5b0eb1=_0x5b0eb1-0xa1;var _0x8141c4=a621_0x8141[_0x5b0eb1];return _0x8141c4;};var a621_0x5ab0c9=a621_0x36d2;function options(_0x409c88){var _0x3f186c=a621_0x36d2;return{'sequelize':_0x409c88,'tableName':_0x3f186c(0xa3),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a621_0x5ab0c9(0xa1)][a621_0x5ab0c9(0xa2)]=options; \ No newline at end of file +var a621_0x2ee0=['plugins'];(function(_0x34e6ce,_0x2ffbae){var _0x2ee084=function(_0x38ad71){while(--_0x38ad71){_0x34e6ce['push'](_0x34e6ce['shift']());}};_0x2ee084(++_0x2ffbae);}(a621_0x2ee0,0x1a2));var a621_0x38ad=function(_0x34e6ce,_0x2ffbae){_0x34e6ce=_0x34e6ce-0xbd;var _0x2ee084=a621_0x2ee0[_0x34e6ce];return _0x2ee084;};function options(_0x25b09e){var _0x5d9006=a621_0x38ad;return{'sequelize':_0x25b09e,'tableName':_0x5d9006(0xbd),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports']['options']=options; \ No newline at end of file diff --git a/server/api/plugin/plugin.rpc.js b/server/api/plugin/plugin.rpc.js index 3102157..1c4433a 100644 --- a/server/api/plugin/plugin.rpc.js +++ b/server/api/plugin/plugin.rpc.js @@ -1 +1 @@ -const a622_0x4348=['catch','error','rpc','../../mysqldb','./plugin.socket','then','stringify','Plugin','debug','CreatePlugin','message','../../config/logger','options','create'];(function(_0x5c376b,_0x435238){const _0x4348b6=function(_0x3aef4f){while(--_0x3aef4f){_0x5c376b['push'](_0x5c376b['shift']());}};_0x4348b6(++_0x435238);}(a622_0x4348,0x13f));const a622_0x3aef=function(_0x5c376b,_0x435238){_0x5c376b=_0x5c376b-0x174;let _0x4348b6=a622_0x4348[_0x5c376b];return _0x4348b6;};const a622_0x52d202=a622_0x3aef;'use strict';const db=require(a622_0x52d202(0x17a))['db'],logger=require(a622_0x52d202(0x174))(a622_0x52d202(0x179)),{getSocket}=require('../../rediscache'),socket=getSocket();require(a622_0x52d202(0x17b))['register'](socket),exports[a622_0x52d202(0x180)]=function(_0x1a2fd4){const _0x445b6b=this;return new Promise(function(_0x2ddbef,_0x30205a){const _0x5e79a3=a622_0x3aef;return db[_0x5e79a3(0x17e)][_0x5e79a3(0x176)](_0x1a2fd4['body'],{'raw':_0x1a2fd4[_0x5e79a3(0x175)]?_0x1a2fd4[_0x5e79a3(0x175)]['raw']===undefined?!![]:![]:!![]})[_0x5e79a3(0x17c)](function(_0xeb0b8b){const _0x45870c=_0x5e79a3;logger['info'](_0x45870c(0x180),_0x1a2fd4),logger[_0x45870c(0x17f)](_0x45870c(0x180),_0x1a2fd4,JSON[_0x45870c(0x17d)](_0xeb0b8b)),_0x2ddbef(_0xeb0b8b);})[_0x5e79a3(0x177)](function(_0x3357b1){const _0x5da689=_0x5e79a3;logger[_0x5da689(0x178)](_0x5da689(0x180),_0x3357b1['message'],_0x1a2fd4),_0x30205a(_0x445b6b[_0x5da689(0x178)](0x1f4,_0x3357b1[_0x5da689(0x181)]));});});}; \ No newline at end of file +const a622_0x4f25=['./plugin.socket','CreatePlugin','Plugin','rpc','message','../../config/logger','error','stringify','body','debug','catch','then','options','create'];(function(_0x2e2dd5,_0x481d04){const _0x4f257f=function(_0x29c398){while(--_0x29c398){_0x2e2dd5['push'](_0x2e2dd5['shift']());}};_0x4f257f(++_0x481d04);}(a622_0x4f25,0x11a));const a622_0x29c3=function(_0x2e2dd5,_0x481d04){_0x2e2dd5=_0x2e2dd5-0xeb;let _0x4f257f=a622_0x4f25[_0x2e2dd5];return _0x4f257f;};const a622_0x592407=a622_0x29c3;'use strict';const db=require('../../mysqldb')['db'],logger=require(a622_0x592407(0xee))(a622_0x592407(0xec)),{getSocket}=require('../../rediscache'),socket=getSocket();require(a622_0x592407(0xf7))['register'](socket),exports[a622_0x592407(0xf8)]=function(_0x5841fe){const _0x416840=this;return new Promise(function(_0x541f73,_0x5f19f1){const _0x8d28b6=a622_0x29c3;return db[_0x8d28b6(0xeb)][_0x8d28b6(0xf6)](_0x5841fe[_0x8d28b6(0xf1)],{'raw':_0x5841fe['options']?_0x5841fe[_0x8d28b6(0xf5)]['raw']===undefined?!![]:![]:!![]})[_0x8d28b6(0xf4)](function(_0xe4ddb3){const _0x47b0ca=_0x8d28b6;logger['info'](_0x47b0ca(0xf8),_0x5841fe),logger[_0x47b0ca(0xf2)](_0x47b0ca(0xf8),_0x5841fe,JSON[_0x47b0ca(0xf0)](_0xe4ddb3)),_0x541f73(_0xe4ddb3);})[_0x8d28b6(0xf3)](function(_0x17e903){const _0xff0f7c=_0x8d28b6;logger[_0xff0f7c(0xef)](_0xff0f7c(0xf8),_0x17e903[_0xff0f7c(0xed)],_0x5841fe),_0x5f19f1(_0x416840[_0xff0f7c(0xef)](0x1f4,_0x17e903[_0xff0f7c(0xed)]));});});}; \ No newline at end of file diff --git a/server/api/plugin/plugin.socket.js b/server/api/plugin/plugin.socket.js index 3ca3c42..647d2af 100644 --- a/server/api/plugin/plugin.socket.js +++ b/server/api/plugin/plugin.socket.js @@ -1 +1 @@ -const a623_0x53db=['plugin:','length','register','remove','update','emit'];(function(_0x34adaf,_0x492052){const _0x53dbdd=function(_0x2d7e4a){while(--_0x2d7e4a){_0x34adaf['push'](_0x34adaf['shift']());}};_0x53dbdd(++_0x492052);}(a623_0x53db,0x77));const a623_0x2d7e=function(_0x34adaf,_0x492052){_0x34adaf=_0x34adaf-0x96;let _0x53dbdd=a623_0x53db[_0x34adaf];return _0x53dbdd;};const a623_0x3e88ca=a623_0x2d7e;'use strict';const PluginEvents=require('./plugin.events'),events=['save',a623_0x3e88ca(0x9a),a623_0x3e88ca(0x9b)];function createListener(_0x2ace18,_0x21d33c){return function(_0x1baf31){const _0x3ae335=a623_0x2d7e;_0x21d33c[_0x3ae335(0x96)](_0x2ace18,_0x1baf31);};}exports[a623_0x3e88ca(0x99)]=function(_0x5740b){const _0x31cf27=a623_0x3e88ca;for(let _0xb7f350=0x0,_0x29a465=events[_0x31cf27(0x98)];_0xb7f350<_0x29a465;_0xb7f350++){const _0x541c07=events[_0xb7f350],_0x4ebb76=createListener(_0x31cf27(0x97)+_0x541c07,_0x5740b);PluginEvents['on'](_0x541c07,_0x4ebb76);}}; \ No newline at end of file +const a623_0x5585=['register','plugin:','length','update','./plugin.events','save'];(function(_0x1378d9,_0x3448a2){const _0x5585ca=function(_0x55e83a){while(--_0x55e83a){_0x1378d9['push'](_0x1378d9['shift']());}};_0x5585ca(++_0x3448a2);}(a623_0x5585,0x98));const a623_0x55e8=function(_0x1378d9,_0x3448a2){_0x1378d9=_0x1378d9-0xff;let _0x5585ca=a623_0x5585[_0x1378d9];return _0x5585ca;};const a623_0x2fa40c=a623_0x55e8;'use strict';const PluginEvents=require(a623_0x2fa40c(0x101)),events=[a623_0x2fa40c(0x102),'remove',a623_0x2fa40c(0x100)];function createListener(_0x360a3b,_0x25c909){return function(_0x5ad248){_0x25c909['emit'](_0x360a3b,_0x5ad248);};}exports[a623_0x2fa40c(0x103)]=function(_0x30b461){const _0x3deb75=a623_0x2fa40c;for(let _0x108458=0x0,_0x182cb1=events[_0x3deb75(0xff)];_0x108458<_0x182cb1;_0x108458++){const _0x40668c=events[_0x108458],_0x5d1dc9=createListener(_0x3deb75(0x104)+_0x40668c,_0x30b461);PluginEvents['on'](_0x40668c,_0x5d1dc9);}}; \ No newline at end of file diff --git a/server/api/pm2/index.js b/server/api/pm2/index.js index 1bdcad1..5339028 100644 --- a/server/api/pm2/index.js +++ b/server/api/pm2/index.js @@ -1 +1 @@ -const a624_0x1af3=['update','delete','/:id','isAuthenticated','Router','get','express','./pm2.controller','index','put','post','../../components/auth/service'];(function(_0x9900d0,_0x75a17a){const _0x1af3b6=function(_0x16362a){while(--_0x16362a){_0x9900d0['push'](_0x9900d0['shift']());}};_0x1af3b6(++_0x75a17a);}(a624_0x1af3,0x1c4));const a624_0x1636=function(_0x9900d0,_0x75a17a){_0x9900d0=_0x9900d0-0x15a;let _0x1af3b6=a624_0x1af3[_0x9900d0];return _0x1af3b6;};const a624_0x594189=a624_0x1636;'use strict';const express=require(a624_0x594189(0x164)),router=express[a624_0x594189(0x162)](),auth=require(a624_0x594189(0x15d)),controller=require(a624_0x594189(0x165));router['get']('/',auth[a624_0x594189(0x161)](),controller[a624_0x594189(0x15a)]),router[a624_0x594189(0x163)](a624_0x594189(0x160),auth[a624_0x594189(0x161)](),controller['show']),router[a624_0x594189(0x15c)]('/',auth[a624_0x594189(0x161)](),controller['create']),router[a624_0x594189(0x15b)](a624_0x594189(0x160),auth[a624_0x594189(0x161)](),controller[a624_0x594189(0x15e)]),router[a624_0x594189(0x15f)](a624_0x594189(0x160),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a624_0x1b3a=['post','/:id','isAuthenticated','get','index','put','show','delete','./pm2.controller','create','Router','destroy'];(function(_0x1dea96,_0x3dd720){const _0x1b3acf=function(_0x335589){while(--_0x335589){_0x1dea96['push'](_0x1dea96['shift']());}};_0x1b3acf(++_0x3dd720);}(a624_0x1b3a,0xa5));const a624_0x3355=function(_0x1dea96,_0x3dd720){_0x1dea96=_0x1dea96-0x1bc;let _0x1b3acf=a624_0x1b3a[_0x1dea96];return _0x1b3acf;};const a624_0x454842=a624_0x3355;'use strict';const express=require('express'),router=express[a624_0x454842(0x1bd)](),auth=require('../../components/auth/service'),controller=require(a624_0x454842(0x1c7));router[a624_0x454842(0x1c2)]('/',auth[a624_0x454842(0x1c1)](),controller[a624_0x454842(0x1c3)]),router[a624_0x454842(0x1c2)](a624_0x454842(0x1c0),auth[a624_0x454842(0x1c1)](),controller[a624_0x454842(0x1c5)]),router[a624_0x454842(0x1bf)]('/',auth[a624_0x454842(0x1c1)](),controller[a624_0x454842(0x1bc)]),router[a624_0x454842(0x1c4)](a624_0x454842(0x1c0),auth[a624_0x454842(0x1c1)](),controller['update']),router[a624_0x454842(0x1c6)](a624_0x454842(0x1c0),auth['isAuthenticated'](),controller[a624_0x454842(0x1be)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/pm2/pm2.controller.js b/server/api/pm2/pm2.controller.js index b4bf314..7c500a5 100644 --- a/server/api/pm2/pm2.controller.js +++ b/server/api/pm2/pm2.controller.js @@ -1 +1 @@ -const a625_0x1515=['../../config/pm2','delete','restart','Missing\x20name\x20and/or\x20path','params','dump','error','catch','npm\x20install','reject','chdir','dirname','describe','api','child_process','info','send','then','../../files/plugins','destroy','list','cwd','name','show','length','status','motion2','script','lodash','../../config/logger','body','Unknown\x20status','update','exec','create','path','json'];(function(_0x8cbb8b,_0x167658){const _0x15154e=function(_0x3ea0bb){while(--_0x3ea0bb){_0x8cbb8b['push'](_0x8cbb8b['shift']());}};_0x15154e(++_0x167658);}(a625_0x1515,0x68));const a625_0x3ea0=function(_0x8cbb8b,_0x167658){_0x8cbb8b=_0x8cbb8b-0x108;let _0x15154e=a625_0x1515[_0x8cbb8b];return _0x15154e;};const a625_0x50f3c9=a625_0x3ea0;'use strict';const _=require(a625_0x50f3c9(0x12b)),pm2=require(a625_0x50f3c9(0x10f)),logger=require(a625_0x50f3c9(0x12c))(a625_0x50f3c9(0x11c)),path=require(a625_0x50f3c9(0x10d)),exec=require(a625_0x50f3c9(0x11d))[a625_0x50f3c9(0x10b)];function handleEntityNotFound(_0x1db92d){return function(_0x23613e){return!_0x23613e&&_0x1db92d['sendStatus'](0x194),_0x23613e;};}function respondWithResult(_0x595f94,_0x5a67a2){return _0x5a67a2=_0x5a67a2||0xc8,function(_0x226f98){const _0xb75441=a625_0x3ea0;if(_0x226f98)return _0x595f94[_0xb75441(0x128)](_0x5a67a2)[_0xb75441(0x10e)](_0x226f98);return null;};}function handleError(_0x1ff45e,_0xe187ff){return _0xe187ff=_0xe187ff||0x1f4,function(_0x5936ed){const _0x1a28cf=a625_0x3ea0;logger[_0x1a28cf(0x115)](_0x5936ed['stack']),_0x5936ed['name']&&delete _0x5936ed[_0x1a28cf(0x125)],_0x1ff45e[_0x1a28cf(0x128)](_0xe187ff)[_0x1a28cf(0x11f)](_0x5936ed);};}function execChildProcess(){return new Promise(function(_0xe5e5d7,_0x195e44){const _0x4d1cc5=a625_0x3ea0;exec(_0x4d1cc5(0x117),function(_0x1d7745,_0x295074,_0x3c6fa9){const _0x54f2d0=_0x4d1cc5;logger[_0x54f2d0(0x11e)](_0x295074),logger[_0x54f2d0(0x11e)](_0x3c6fa9);if(_0x1d7745)return logger[_0x54f2d0(0x115)](_0x1d7745),_0x195e44(_0x1d7745);return _0xe5e5d7(_0x295074);});});}exports['index']=function(_0x144008,_0x43a72d){const _0x11f221=a625_0x50f3c9;return pm2[_0x11f221(0x123)]()['then'](function(_0x17c5f0){const _0x2d9ef8=_0x11f221;if(_0x17c5f0){const _0x111988=_[_0x2d9ef8(0x118)](_0x17c5f0,function(_0x4c4116){const _0x2053aa=_0x2d9ef8;return _0x4c4116[_0x2053aa(0x125)]==='express'||_0x4c4116[_0x2053aa(0x125)]===_0x2053aa(0x129);});return{'rows':_0x111988,'count':_0x111988[_0x2d9ef8(0x127)]};}return null;})[_0x11f221(0x120)](respondWithResult(_0x43a72d,null))['catch'](handleError(_0x43a72d,null));},exports[a625_0x50f3c9(0x126)]=function(_0x39e287,_0x3f800c){const _0x4c120d=a625_0x50f3c9;return pm2[_0x4c120d(0x11b)](_0x39e287[_0x4c120d(0x113)]['id'])[_0x4c120d(0x120)](respondWithResult(_0x3f800c,null))[_0x4c120d(0x120)](handleEntityNotFound(_0x3f800c,null))[_0x4c120d(0x116)](handleError(_0x3f800c,null));},exports[a625_0x50f3c9(0x10c)]=function(_0xedd0b6,_0x2b35f0){const _0x12bc08=a625_0x50f3c9;if(_0xedd0b6['body'][_0x12bc08(0x125)]&&_0xedd0b6['body'][_0x12bc08(0x12a)]){const _0x145fc6=path['join'](__dirname,_0x12bc08(0x121),_0xedd0b6[_0x12bc08(0x108)][_0x12bc08(0x12a)]),_0x47297a=process[_0x12bc08(0x124)]();return process['chdir'](path[_0x12bc08(0x11a)](_0x145fc6)),execChildProcess()[_0x12bc08(0x120)](function(){const _0x4216d8=_0x12bc08;return process[_0x4216d8(0x119)](_0x47297a),pm2['start']({'name':_0xedd0b6[_0x4216d8(0x108)][_0x4216d8(0x125)],'script':_0x145fc6});})[_0x12bc08(0x120)](function(_0x25a15a){const _0x42f5cb=_0x12bc08;return pm2[_0x42f5cb(0x114)](),_0x25a15a[0x0];})[_0x12bc08(0x120)](respondWithResult(_0x2b35f0,0xc9))[_0x12bc08(0x116)](handleError(_0x2b35f0,null));}else return _0x2b35f0['status'](0x1f4)[_0x12bc08(0x11f)]({'message':_0x12bc08(0x112)});},exports[a625_0x50f3c9(0x10a)]=function(_0x25a79f,_0x1a279a){const _0x3e21a6=a625_0x50f3c9;_0x25a79f[_0x3e21a6(0x108)]['id']&&delete _0x25a79f[_0x3e21a6(0x108)]['id'];const _0x216176={'online':_0x3e21a6(0x111),'stopped':'stop'};return typeof _0x216176[_0x25a79f[_0x3e21a6(0x108)][_0x3e21a6(0x128)]]!=='undefined'?pm2[_0x216176[_0x25a79f['body'][_0x3e21a6(0x128)]]](_0x25a79f[_0x3e21a6(0x113)]['id'])[_0x3e21a6(0x120)](respondWithResult(_0x1a279a,0xc8))['catch'](handleError(_0x1a279a,null)):_0x1a279a[_0x3e21a6(0x128)](0x1f4)['send']({'message':_0x3e21a6(0x109)});},exports[a625_0x50f3c9(0x122)]=function(_0x16f017,_0x1d31a0){const _0x37875d=a625_0x50f3c9;return _0x16f017[_0x37875d(0x108)]['id']&&delete _0x16f017[_0x37875d(0x108)]['id'],_0x16f017['params']['id']?pm2[_0x37875d(0x110)](_0x16f017[_0x37875d(0x113)]['id'])['then'](function(_0x15c605){const _0x293e8c=_0x37875d;return pm2[_0x293e8c(0x114)](),_0x15c605[0x0];})[_0x37875d(0x120)](respondWithResult(_0x1d31a0,null))['catch'](handleError(_0x1d31a0,null)):_0x1d31a0[_0x37875d(0x128)](0x1f4)[_0x37875d(0x11f)]({'message':'Unknown\x20id'});}; \ No newline at end of file +const a625_0x5400=['lodash','../../config/pm2','stack','chdir','json','status','describe','undefined','express','Unknown\x20id','child_process','then','reject','path','../../config/logger','dirname','destroy','error','length','delete','send','npm\x20install','dump','list','info','../../files/plugins','sendStatus','Unknown\x20status','stop','index','show','name','body','params','catch','motion2','restart','api','join'];(function(_0x37dcaa,_0x511278){const _0x5400d1=function(_0x16ceaf){while(--_0x16ceaf){_0x37dcaa['push'](_0x37dcaa['shift']());}};_0x5400d1(++_0x511278);}(a625_0x5400,0x13e));const a625_0x16ce=function(_0x37dcaa,_0x511278){_0x37dcaa=_0x37dcaa-0x137;let _0x5400d1=a625_0x5400[_0x37dcaa];return _0x5400d1;};const a625_0x40411=a625_0x16ce;'use strict';const _=require(a625_0x40411(0x158)),pm2=require(a625_0x40411(0x159)),logger=require(a625_0x40411(0x13f))(a625_0x40411(0x156)),path=require(a625_0x40411(0x13e)),exec=require(a625_0x40411(0x13b))['exec'];function handleEntityNotFound(_0xc20877){return function(_0x554448){const _0x101776=a625_0x16ce;return!_0x554448&&_0xc20877[_0x101776(0x14b)](0x194),_0x554448;};}function respondWithResult(_0x2683ce,_0x2fee25){return _0x2fee25=_0x2fee25||0xc8,function(_0x124359){const _0x2c0837=a625_0x16ce;if(_0x124359)return _0x2683ce[_0x2c0837(0x15d)](_0x2fee25)[_0x2c0837(0x15c)](_0x124359);return null;};}function handleError(_0x38e905,_0x31b571){return _0x31b571=_0x31b571||0x1f4,function(_0x31489b){const _0x146617=a625_0x16ce;logger[_0x146617(0x142)](_0x31489b[_0x146617(0x15a)]),_0x31489b[_0x146617(0x150)]&&delete _0x31489b[_0x146617(0x150)],_0x38e905[_0x146617(0x15d)](_0x31b571)[_0x146617(0x145)](_0x31489b);};}function execChildProcess(){return new Promise(function(_0xa0ba5b,_0x4c18ce){const _0x5904fd=a625_0x16ce;exec(_0x5904fd(0x146),function(_0x5103d0,_0x4ef4fa,_0x18d4e6){const _0x2733c=_0x5904fd;logger[_0x2733c(0x149)](_0x4ef4fa),logger[_0x2733c(0x149)](_0x18d4e6);if(_0x5103d0)return logger['error'](_0x5103d0),_0x4c18ce(_0x5103d0);return _0xa0ba5b(_0x4ef4fa);});});}exports[a625_0x40411(0x14e)]=function(_0x1e42b3,_0xd303c1){const _0x311db0=a625_0x40411;return pm2[_0x311db0(0x148)]()[_0x311db0(0x13c)](function(_0x29007e){const _0x1ac855=_0x311db0;if(_0x29007e){const _0x32f60d=_[_0x1ac855(0x13d)](_0x29007e,function(_0x325501){const _0x2290ca=_0x1ac855;return _0x325501[_0x2290ca(0x150)]===_0x2290ca(0x139)||_0x325501['name']===_0x2290ca(0x154);});return{'rows':_0x32f60d,'count':_0x32f60d[_0x1ac855(0x143)]};}return null;})[_0x311db0(0x13c)](respondWithResult(_0xd303c1,null))['catch'](handleError(_0xd303c1,null));},exports[a625_0x40411(0x14f)]=function(_0x184f3f,_0x1ae9ce){const _0x22644a=a625_0x40411;return pm2[_0x22644a(0x137)](_0x184f3f[_0x22644a(0x152)]['id'])[_0x22644a(0x13c)](respondWithResult(_0x1ae9ce,null))[_0x22644a(0x13c)](handleEntityNotFound(_0x1ae9ce,null))['catch'](handleError(_0x1ae9ce,null));},exports['create']=function(_0x437aac,_0x5cfe65){const _0x2c5487=a625_0x40411;if(_0x437aac[_0x2c5487(0x151)][_0x2c5487(0x150)]&&_0x437aac[_0x2c5487(0x151)]['script']){const _0x2113e2=path[_0x2c5487(0x157)](__dirname,_0x2c5487(0x14a),_0x437aac[_0x2c5487(0x151)]['script']),_0xfe4e4=process['cwd']();return process[_0x2c5487(0x15b)](path[_0x2c5487(0x140)](_0x2113e2)),execChildProcess()['then'](function(){const _0x17c5b2=_0x2c5487;return process['chdir'](_0xfe4e4),pm2['start']({'name':_0x437aac[_0x17c5b2(0x151)][_0x17c5b2(0x150)],'script':_0x2113e2});})[_0x2c5487(0x13c)](function(_0x19ba75){const _0x51c9e3=_0x2c5487;return pm2[_0x51c9e3(0x147)](),_0x19ba75[0x0];})['then'](respondWithResult(_0x5cfe65,0xc9))[_0x2c5487(0x153)](handleError(_0x5cfe65,null));}else return _0x5cfe65[_0x2c5487(0x15d)](0x1f4)[_0x2c5487(0x145)]({'message':'Missing\x20name\x20and/or\x20path'});},exports['update']=function(_0x4d2c08,_0x404763){const _0xae4380=a625_0x40411;_0x4d2c08[_0xae4380(0x151)]['id']&&delete _0x4d2c08['body']['id'];const _0x3406b4={'online':_0xae4380(0x155),'stopped':_0xae4380(0x14d)};return typeof _0x3406b4[_0x4d2c08[_0xae4380(0x151)]['status']]!==_0xae4380(0x138)?pm2[_0x3406b4[_0x4d2c08[_0xae4380(0x151)]['status']]](_0x4d2c08[_0xae4380(0x152)]['id'])['then'](respondWithResult(_0x404763,0xc8))[_0xae4380(0x153)](handleError(_0x404763,null)):_0x404763[_0xae4380(0x15d)](0x1f4)[_0xae4380(0x145)]({'message':_0xae4380(0x14c)});},exports[a625_0x40411(0x141)]=function(_0x4e6544,_0x51465a){const _0x5e7edb=a625_0x40411;return _0x4e6544[_0x5e7edb(0x151)]['id']&&delete _0x4e6544[_0x5e7edb(0x151)]['id'],_0x4e6544['params']['id']?pm2[_0x5e7edb(0x144)](_0x4e6544[_0x5e7edb(0x152)]['id'])['then'](function(_0x1488b7){const _0x1034da=_0x5e7edb;return pm2[_0x1034da(0x147)](),_0x1488b7[0x0];})[_0x5e7edb(0x13c)](respondWithResult(_0x51465a,null))[_0x5e7edb(0x153)](handleError(_0x51465a,null)):_0x51465a[_0x5e7edb(0x15d)](0x1f4)['send']({'message':_0x5e7edb(0x13a)});}; \ No newline at end of file diff --git a/server/api/reportAgentPreview/index.js b/server/api/reportAgentPreview/index.js index ab52116..fdba7da 100644 --- a/server/api/reportAgentPreview/index.js +++ b/server/api/reportAgentPreview/index.js @@ -1 +1 @@ -const a626_0x3ef4=['Router','exports','express'];(function(_0x59ebb8,_0x382b3f){const _0x3ef4b1=function(_0x291933){while(--_0x291933){_0x59ebb8['push'](_0x59ebb8['shift']());}};_0x3ef4b1(++_0x382b3f);}(a626_0x3ef4,0xf9));const a626_0x2919=function(_0x59ebb8,_0x382b3f){_0x59ebb8=_0x59ebb8-0x134;let _0x3ef4b1=a626_0x3ef4[_0x59ebb8];return _0x3ef4b1;};const a626_0x170688=a626_0x2919;'use strict';const express=require(a626_0x170688(0x136)),router=express[a626_0x170688(0x134)]();module[a626_0x170688(0x135)]=router; \ No newline at end of file +const a626_0x3e43=['express'];(function(_0x4bf0b2,_0x118cec){const _0x3e43aa=function(_0x423f64){while(--_0x423f64){_0x4bf0b2['push'](_0x4bf0b2['shift']());}};_0x3e43aa(++_0x118cec);}(a626_0x3e43,0x1ba));const a626_0x423f=function(_0x4bf0b2,_0x118cec){_0x4bf0b2=_0x4bf0b2-0x17c;let _0x3e43aa=a626_0x3e43[_0x4bf0b2];return _0x3e43aa;};const a626_0x3a3512=a626_0x423f;'use strict';const express=require(a626_0x3a3512(0x17c)),router=express['Router']();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 b1eec31..7a5bbdf 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.attributes.js +++ b/server/api/reportAgentPreview/reportAgentPreview.attributes.js @@ -1 +1 @@ -const a627_0x5c89=['STRING','sequelize','attributes','INTEGER','DATE','exports'];(function(_0x22b62e,_0x32a139){const _0x5c8989=function(_0x57383a){while(--_0x57383a){_0x22b62e['push'](_0x22b62e['shift']());}};_0x5c8989(++_0x32a139);}(a627_0x5c89,0xf9));const a627_0x5738=function(_0x22b62e,_0x32a139){_0x22b62e=_0x22b62e-0x1d3;let _0x5c8989=a627_0x5c89[_0x22b62e];return _0x5c8989;};const a627_0x98c4ff=a627_0x5738;'use strict';const {DataTypes}=require(a627_0x98c4ff(0x1d7)),attributes={'state':{'type':DataTypes[a627_0x98c4ff(0x1d3)]({'length':0x2})},'statedesc':{'type':DataTypes[a627_0x98c4ff(0x1d6)]},'scheduledat':{'type':DataTypes[a627_0x98c4ff(0x1d4)]},'uniqueid':{'type':DataTypes[a627_0x98c4ff(0x1d6)]},'starttime':{'type':DataTypes['DATE']},'responsetime':{'type':DataTypes[a627_0x98c4ff(0x1d4)]},'ringtime':{'type':DataTypes[a627_0x98c4ff(0x1d3)],'defaultValue':0x0},'campaign':{'type':DataTypes['STRING']},'campaigntype':{'type':DataTypes[a627_0x98c4ff(0x1d6)]},'membername':{'type':DataTypes[a627_0x98c4ff(0x1d6)]}};module[a627_0x98c4ff(0x1d5)][a627_0x98c4ff(0x1d8)]=attributes; \ No newline at end of file +const a627_0x5c2b=['DATE','INTEGER','attributes','sequelize','STRING','exports'];(function(_0x521f6c,_0x2a7d05){const _0x5c2b33=function(_0x31916b){while(--_0x31916b){_0x521f6c['push'](_0x521f6c['shift']());}};_0x5c2b33(++_0x2a7d05);}(a627_0x5c2b,0xb1));const a627_0x3191=function(_0x521f6c,_0x2a7d05){_0x521f6c=_0x521f6c-0x133;let _0x5c2b33=a627_0x5c2b[_0x521f6c];return _0x5c2b33;};const a627_0x28b3e2=a627_0x3191;'use strict';const {DataTypes}=require(a627_0x28b3e2(0x133)),attributes={'state':{'type':DataTypes['INTEGER']({'length':0x2})},'statedesc':{'type':DataTypes[a627_0x28b3e2(0x134)]},'scheduledat':{'type':DataTypes[a627_0x28b3e2(0x136)]},'uniqueid':{'type':DataTypes['STRING']},'starttime':{'type':DataTypes[a627_0x28b3e2(0x136)]},'responsetime':{'type':DataTypes[a627_0x28b3e2(0x136)]},'ringtime':{'type':DataTypes[a627_0x28b3e2(0x137)],'defaultValue':0x0},'campaign':{'type':DataTypes[a627_0x28b3e2(0x134)]},'campaigntype':{'type':DataTypes[a627_0x28b3e2(0x134)]},'membername':{'type':DataTypes['STRING']}};module[a627_0x28b3e2(0x135)][a627_0x28b3e2(0x138)]=attributes; \ No newline at end of file diff --git a/server/api/reportAgentPreview/reportAgentPreview.model.js b/server/api/reportAgentPreview/reportAgentPreview.model.js index b7c9f75..3516871 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.model.js +++ b/server/api/reportAgentPreview/reportAgentPreview.model.js @@ -1 +1 @@ -const a628_0x16df=['function','exports','ReportAgentPreview','./reportAgentPreview.options','./reportAgentPreview.attributes','sequelize','init'];(function(_0x4f7547,_0x18e6a6){const _0x16df11=function(_0x4c3d91){while(--_0x4c3d91){_0x4f7547['push'](_0x4f7547['shift']());}};_0x16df11(++_0x18e6a6);}(a628_0x16df,0x74));const a628_0x4c3d=function(_0x4f7547,_0x18e6a6){_0x4f7547=_0x4f7547-0x145;let _0x16df11=a628_0x16df[_0x4f7547];return _0x16df11;};const a628_0x2c09b9=a628_0x4c3d;'use strict';const {Model}=require(a628_0x2c09b9(0x146)),{attributes}=require(a628_0x2c09b9(0x145)),{options}=require(a628_0x2c09b9(0x14b));class ReportAgentPreview extends Model{}function init(_0x8bbd83,_0x1e451c){const _0x4aedcd=a628_0x2c09b9,_0x3567d2=options(_0x8bbd83),_0x546dfa=typeof _0x1e451c===_0x4aedcd(0x148)?_0x1e451c(_0x3567d2):_0x3567d2;return ReportAgentPreview[_0x4aedcd(0x147)](attributes,_0x546dfa),ReportAgentPreview;}module[a628_0x2c09b9(0x149)][a628_0x2c09b9(0x14a)]=ReportAgentPreview,module[a628_0x2c09b9(0x149)][a628_0x2c09b9(0x147)]=init; \ No newline at end of file +const a628_0x4943=['function','init','ReportAgentPreview','sequelize','exports','./reportAgentPreview.options','./reportAgentPreview.attributes'];(function(_0xaef0b9,_0x371ca1){const _0x4943e9=function(_0x513d68){while(--_0x513d68){_0xaef0b9['push'](_0xaef0b9['shift']());}};_0x4943e9(++_0x371ca1);}(a628_0x4943,0x1a4));const a628_0x513d=function(_0xaef0b9,_0x371ca1){_0xaef0b9=_0xaef0b9-0x11d;let _0x4943e9=a628_0x4943[_0xaef0b9];return _0x4943e9;};const a628_0x30d8c0=a628_0x513d;'use strict';const {Model}=require(a628_0x30d8c0(0x120)),{attributes}=require(a628_0x30d8c0(0x123)),{options}=require(a628_0x30d8c0(0x122));class ReportAgentPreview extends Model{}function init(_0x4d4b19,_0x4610a5){const _0x210534=a628_0x30d8c0,_0x25af6f=options(_0x4d4b19),_0x120987=typeof _0x4610a5===_0x210534(0x11d)?_0x4610a5(_0x25af6f):_0x25af6f;return ReportAgentPreview[_0x210534(0x11e)](attributes,_0x120987),ReportAgentPreview;}module[a628_0x30d8c0(0x121)][a628_0x30d8c0(0x11f)]=ReportAgentPreview,module[a628_0x30d8c0(0x121)]['init']=init; \ No newline at end of file diff --git a/server/api/reportAgentPreview/reportAgentPreview.options.js b/server/api/reportAgentPreview/reportAgentPreview.options.js index 339d256..7144847 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.options.js +++ b/server/api/reportAgentPreview/reportAgentPreview.options.js @@ -1 +1 @@ -var a629_0x196d=['report_agent_preview','options'];(function(_0x862ed1,_0x12026c){var _0x196db8=function(_0x315c4a){while(--_0x315c4a){_0x862ed1['push'](_0x862ed1['shift']());}};_0x196db8(++_0x12026c);}(a629_0x196d,0xae));var a629_0x315c=function(_0x862ed1,_0x12026c){_0x862ed1=_0x862ed1-0x126;var _0x196db8=a629_0x196d[_0x862ed1];return _0x196db8;};var a629_0x12eb9b=a629_0x315c;function options(_0x441c70){var _0x540ea7=a629_0x315c;return{'sequelize':_0x441c70,'tableName':_0x540ea7(0x126),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a629_0x12eb9b(0x127)]=options; \ No newline at end of file +var a629_0x12c6=['exports','options'];(function(_0x321130,_0x3727ab){var _0x12c6df=function(_0x19ee3b){while(--_0x19ee3b){_0x321130['push'](_0x321130['shift']());}};_0x12c6df(++_0x3727ab);}(a629_0x12c6,0xe1));var a629_0x19ee=function(_0x321130,_0x3727ab){_0x321130=_0x321130-0x1c2;var _0x12c6df=a629_0x12c6[_0x321130];return _0x12c6df;};var a629_0x42f82a=a629_0x19ee;function options(_0x23f397){return{'sequelize':_0x23f397,'tableName':'report_agent_preview','paranoid':![],'indexes':[],'timestamps':!![]};}module[a629_0x42f82a(0x1c3)][a629_0x42f82a(0x1c2)]=options; \ No newline at end of file diff --git a/server/api/reportAgentPreview/reportAgentPreview.rpc.js b/server/api/reportAgentPreview/reportAgentPreview.rpc.js index 79eaeeb..970f2b5 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.rpc.js +++ b/server/api/reportAgentPreview/reportAgentPreview.rpc.js @@ -1 +1 @@ -const a630_0x9af6=['rpc','debug','CreateReportAgentPreview','info','catch','error','../../mysqldb','then','create','raw','options','message'];(function(_0x21755e,_0x25d586){const _0x9af6c1=function(_0x8f1939){while(--_0x8f1939){_0x21755e['push'](_0x21755e['shift']());}};_0x9af6c1(++_0x25d586);}(a630_0x9af6,0x17d));const a630_0x8f19=function(_0x21755e,_0x25d586){_0x21755e=_0x21755e-0x1c1;let _0x9af6c1=a630_0x9af6[_0x21755e];return _0x9af6c1;};const a630_0x38db0e=a630_0x8f19;'use strict';const db=require(a630_0x38db0e(0x1ca))['db'],logger=require('../../config/logger')(a630_0x38db0e(0x1c4));exports[a630_0x38db0e(0x1c6)]=function(_0x40876a){const _0x204278=this;return new Promise(function(_0x3aca83,_0xecacf){const _0x54d85b=a630_0x8f19;return db['ReportAgentPreview'][_0x54d85b(0x1cc)](_0x40876a['body'],{'raw':_0x40876a[_0x54d85b(0x1c2)]?_0x40876a[_0x54d85b(0x1c2)][_0x54d85b(0x1c1)]===undefined?!![]:![]:!![]})[_0x54d85b(0x1cb)](function(_0x372f13){const _0xab0f58=_0x54d85b;logger[_0xab0f58(0x1c7)](_0xab0f58(0x1c6),_0x40876a),logger[_0xab0f58(0x1c5)](_0xab0f58(0x1c6),_0x40876a,JSON['stringify'](_0x372f13)),_0x3aca83(_0x372f13);})[_0x54d85b(0x1c8)](function(_0x29646b){const _0x5d537b=_0x54d85b;logger[_0x5d537b(0x1c9)](_0x5d537b(0x1c6),_0x29646b[_0x5d537b(0x1c3)],_0x40876a),_0xecacf(_0x204278[_0x5d537b(0x1c9)](0x1f4,_0x29646b['message']));});});}; \ No newline at end of file +const a630_0x55b1=['message','options','../../config/logger','stringify','raw','ReportAgentPreview','info','debug','CreateReportAgentPreview','error','rpc','../../mysqldb','body'];(function(_0x1033f6,_0x2b7d02){const _0x55b117=function(_0x2b0311){while(--_0x2b0311){_0x1033f6['push'](_0x1033f6['shift']());}};_0x55b117(++_0x2b7d02);}(a630_0x55b1,0x189));const a630_0x2b03=function(_0x1033f6,_0x2b7d02){_0x1033f6=_0x1033f6-0x82;let _0x55b117=a630_0x55b1[_0x1033f6];return _0x55b117;};const a630_0x928304=a630_0x2b03;'use strict';const db=require(a630_0x928304(0x8a))['db'],logger=require(a630_0x928304(0x8e))(a630_0x928304(0x89));exports[a630_0x928304(0x87)]=function(_0x5d53ca){const _0x38284f=this;return new Promise(function(_0x141c56,_0x5519f4){const _0x5add98=a630_0x2b03;return db[_0x5add98(0x84)]['create'](_0x5d53ca[_0x5add98(0x8b)],{'raw':_0x5d53ca[_0x5add98(0x8d)]?_0x5d53ca[_0x5add98(0x8d)][_0x5add98(0x83)]===undefined?!![]:![]:!![]})['then'](function(_0x4c7e7a){const _0x2f5f3c=_0x5add98;logger[_0x2f5f3c(0x85)]('CreateReportAgentPreview',_0x5d53ca),logger[_0x2f5f3c(0x86)]('CreateReportAgentPreview',_0x5d53ca,JSON[_0x2f5f3c(0x82)](_0x4c7e7a)),_0x141c56(_0x4c7e7a);})['catch'](function(_0x23d3ae){const _0x31abcd=_0x5add98;logger[_0x31abcd(0x88)]('CreateReportAgentPreview',_0x23d3ae['message'],_0x5d53ca),_0x5519f4(_0x38284f[_0x31abcd(0x88)](0x1f4,_0x23d3ae[_0x31abcd(0x8c)]));});});}; \ No newline at end of file diff --git a/server/api/rpc/index.js b/server/api/rpc/index.js index f1d21ac..ff9e9f9 100644 --- a/server/api/rpc/index.js +++ b/server/api/rpc/index.js @@ -1 +1 @@ -const a631_0x32c7=['/chat/queues/waitinginteractions','/mail/accounts','/agents/:id/capacity','/trunks','outbound','/mail/queues','openchannelQueues','/voice/queues/channels/:uniqueid/redirect/:exten','queueNotify','trunks','showSmsQueues','/fax/queues/:id/notify','put','/voice/queues/:id','Router','/chat/queues/:id','/chat/queues/:id/notify','/openchannel/queues/:id/notify','/sms/queues/:id/notify','/openchannel/queues/waitinginteractions','/voice/channels','whatsappQueues','/whatsapp/queues','faxQueuesWaitingInteractions','/agents','voiceQueuesChannels','/outbound/channels','telephones','/mail/queues/:id/notify','/fax/queues','showWhatsappQueues','chatQueuesWaitingInteractions','/mail/queues/:id','get','mailQueuesWaitingInteractions','showChatQueues','/agents/:id/notify','chat','voiceQueuesChannel','faxAccounts','chatQueues','voiceQueuesPreview','isAuthenticated','/voice/channels/:uniqueid/mixmonitor','/openchannel/queues','/fax/accounts','express','agents','outboundChannels','/sms/queues/:id','/voice/queues/channels/:uniqueid','whatsapp','voiceQueuesChannelHangup','/fax/queues/:id','mailAccounts','agentCapacity','/openchannel/queues/:id/waitinginteractions','/campaigns','smsQueues','/chat/queues','voiceChannels','smsQueuesWaitingInteractions','openchannelQueuesIdWaitingInteractions','voiceChannelStopMixMonitor','/fax/queues/waitinginteractions','/voice/queues/preview/:id','voiceChannelMixMonitor','/mail/queues/waitinginteractions','../../components/auth/service','openchannel','/voice/queues','/openchannel/queues/:id','/voice/queues/channels/:uniqueid/hangup','fax','post','whatsappQueuesWaitingInteractions','/telephones'];(function(_0x1063be,_0xbc045d){const _0x32c760=function(_0x22c41b){while(--_0x22c41b){_0x1063be['push'](_0x1063be['shift']());}};_0x32c760(++_0xbc045d);}(a631_0x32c7,0xc2));const a631_0x22c4=function(_0x1063be,_0xbc045d){_0x1063be=_0x1063be-0x15b;let _0x32c760=a631_0x32c7[_0x1063be];return _0x32c760;};const a631_0x3fb1c1=a631_0x22c4;'use strict';const express=require(a631_0x3fb1c1(0x161)),router=express[a631_0x3fb1c1(0x18e)](),auth=require(a631_0x3fb1c1(0x177)),controller=require('./rpc.controller');router['get'](a631_0x3fb1c1(0x194),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x16f)]),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x15e),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x175)]),router[a631_0x3fb1c1(0x1a1)]('/voice/channels/:uniqueid/stopmixmonitor',auth['isAuthenticated'](),controller[a631_0x3fb1c1(0x172)]),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x179),auth[a631_0x3fb1c1(0x15d)](),controller['voiceQueues']),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x16e),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x15b)]),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x185),auth['isAuthenticated'](),controller['mailQueues']),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x181),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x169)]),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x15f),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x186)]),router[a631_0x3fb1c1(0x1a1)]('/sms/queues',auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x16d)]),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x196),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x195)]),router['get'](a631_0x3fb1c1(0x19d),auth[a631_0x3fb1c1(0x15d)](),controller['faxQueues']),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x174),auth['isAuthenticated'](),controller[a631_0x3fb1c1(0x15c)]),router[a631_0x3fb1c1(0x1a1)]('/voice/queues/channels',auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x199)]),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x165),auth['isAuthenticated'](),controller[a631_0x3fb1c1(0x1a6)]),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x17b),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x167)]),router['get'](a631_0x3fb1c1(0x187),auth[a631_0x3fb1c1(0x15d)](),controller['voiceQueuesChannelRedirect']),router['get'](a631_0x3fb1c1(0x18d),auth[a631_0x3fb1c1(0x15d)](),controller['showVoiceQueues']),router[a631_0x3fb1c1(0x1a1)]('/outbound',auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x184)]),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x19a),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x163)]),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x198),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x162)]),router[a631_0x3fb1c1(0x18c)](a631_0x3fb1c1(0x182),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x16a)]),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x17f),auth['isAuthenticated'](),controller[a631_0x3fb1c1(0x19b)]),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x183),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x189)]),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x16c),auth[a631_0x3fb1c1(0x15d)](),controller['campaigns']),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x160),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x1a7)]),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x180),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x19f)]),router['get'](a631_0x3fb1c1(0x176),auth['isAuthenticated'](),controller[a631_0x3fb1c1(0x1a2)]),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x193),auth[a631_0x3fb1c1(0x15d)](),controller['openchannelQueuesWaitingInteractions']),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x16b),auth['isAuthenticated'](),controller[a631_0x3fb1c1(0x171)]),router[a631_0x3fb1c1(0x1a1)]('/sms/queues/waitinginteractions',auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x170)]),router[a631_0x3fb1c1(0x1a1)]('/whatsapp/queues/waitinginteractions',auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x17e)]),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x173),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x197)]),router['post'](a631_0x3fb1c1(0x19c),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x188)]('mail')),router['get'](a631_0x3fb1c1(0x1a0),auth[a631_0x3fb1c1(0x15d)](),controller['showMailQueues']),router[a631_0x3fb1c1(0x17d)](a631_0x3fb1c1(0x190),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x188)](a631_0x3fb1c1(0x1a5))),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x18f),auth['isAuthenticated'](),controller[a631_0x3fb1c1(0x1a3)]),router[a631_0x3fb1c1(0x17d)](a631_0x3fb1c1(0x18b),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x188)](a631_0x3fb1c1(0x17c))),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x168),auth['isAuthenticated'](),controller['showFaxQueues']),router[a631_0x3fb1c1(0x17d)](a631_0x3fb1c1(0x191),auth['isAuthenticated'](),controller[a631_0x3fb1c1(0x188)](a631_0x3fb1c1(0x178))),router['get'](a631_0x3fb1c1(0x17a),auth[a631_0x3fb1c1(0x15d)](),controller['showOpenchannelQueues']),router[a631_0x3fb1c1(0x17d)](a631_0x3fb1c1(0x192),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x188)]('sms')),router[a631_0x3fb1c1(0x17d)]('/whatsapp/queues/:id/notify',auth['isAuthenticated'](),controller['queueNotify'](a631_0x3fb1c1(0x166))),router[a631_0x3fb1c1(0x1a1)](a631_0x3fb1c1(0x164),auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x18a)]),router[a631_0x3fb1c1(0x1a1)]('/whatsapp/queues/:id',auth[a631_0x3fb1c1(0x15d)](),controller[a631_0x3fb1c1(0x19e)]),router[a631_0x3fb1c1(0x17d)](a631_0x3fb1c1(0x1a4),auth[a631_0x3fb1c1(0x15d)](),controller['agentNotify']),module['exports']=router; \ No newline at end of file +const a631_0x1bfb=['/fax/queues/waitinginteractions','/fax/accounts','post','/fax/queues/:id','Router','queueNotify','/sms/queues','showWhatsappQueues','/chat/queues','express','mailQueues','/agents/:id/capacity','get','/outbound/channels','/chat/queues/waitinginteractions','openchannelQueues','/voice/queues','chatQueues','fax','voiceQueuesChannels','whatsappQueuesWaitingInteractions','smsQueues','mailQueuesWaitingInteractions','/whatsapp/queues/:id','/openchannel/queues/:id/notify','whatsapp','openchannel','agentNotify','/fax/queues','/sms/queues/waitinginteractions','openchannelQueuesWaitingInteractions','faxAccounts','showSmsQueues','voiceQueuesChannel','/sms/queues/:id','showVoiceQueues','whatsappQueues','/openchannel/queues/:id','/whatsapp/queues/:id/notify','voiceQueuesChannelHangup','/voice/channels/:uniqueid/mixmonitor','voiceChannelMixMonitor','voiceChannelStopMixMonitor','/chat/queues/:id/notify','/voice/queues/channels/:uniqueid','/voice/channels','isAuthenticated','/voice/queues/channels/:uniqueid/redirect/:exten','/agents','/sms/queues/:id/notify','/openchannel/queues/waitinginteractions','agentCapacity','faxQueuesWaitingInteractions','/whatsapp/queues','trunks','/trunks','/chat/queues/:id','/openchannel/queues','/mail/accounts','put','showChatQueues','voiceQueuesChannelRedirect','showMailQueues','/outbound','mailAccounts','openchannelQueuesIdWaitingInteractions','showFaxQueues','campaigns','smsQueuesWaitingInteractions','showOpenchannelQueues','chat','/mail/queues/waitinginteractions','/mail/queues/:id/notify','/mail/queues','/voice/channels/:uniqueid/stopmixmonitor','voiceChannels'];(function(_0xe1656f,_0x15d692){const _0x1bfbc2=function(_0x4ee01e){while(--_0x4ee01e){_0xe1656f['push'](_0xe1656f['shift']());}};_0x1bfbc2(++_0x15d692);}(a631_0x1bfb,0x14a));const a631_0x4ee0=function(_0xe1656f,_0x15d692){_0xe1656f=_0xe1656f-0x9a;let _0x1bfbc2=a631_0x1bfb[_0xe1656f];return _0x1bfbc2;};const a631_0x5b7a26=a631_0x4ee0;'use strict';const express=require(a631_0x5b7a26(0xd5)),router=express[a631_0x5b7a26(0xd0)](),auth=require('../../components/auth/service'),controller=require('./rpc.controller');router['get'](a631_0x5b7a26(0xad),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xcb)]),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xa8),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xa9)]),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xca),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xaa)]),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xdc),auth[a631_0x5b7a26(0xae)](),controller['voiceQueues']),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xd4),auth['isAuthenticated'](),controller[a631_0x5b7a26(0xdd)]),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xc9),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xd6)]),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xba),auth['isAuthenticated'](),controller[a631_0x5b7a26(0xc0)]),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xb9),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xdb)]),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xd2),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xe1)]),router['get'](a631_0x5b7a26(0xb5),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xa4)]),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0x9c),auth[a631_0x5b7a26(0xae)](),controller['faxQueues']),router['get']('/voice/queues/preview/:id',auth[a631_0x5b7a26(0xae)](),controller['voiceQueuesPreview']),router[a631_0x5b7a26(0xd8)]('/voice/queues/channels',auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xdf)]),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xac),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xa1)]),router[a631_0x5b7a26(0xd8)]('/voice/queues/channels/:uniqueid/hangup',auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xa7)]),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xaf),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xbd)]),router[a631_0x5b7a26(0xd8)]('/voice/queues/:id',auth['isAuthenticated'](),controller[a631_0x5b7a26(0xa3)]),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xbf),auth[a631_0x5b7a26(0xae)](),controller['outbound']),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xd9),auth[a631_0x5b7a26(0xae)](),controller['outboundChannels']),router['get'](a631_0x5b7a26(0xb0),auth['isAuthenticated'](),controller['agents']),router[a631_0x5b7a26(0xbb)](a631_0x5b7a26(0xd7),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xb3)]),router[a631_0x5b7a26(0xd8)]('/telephones',auth['isAuthenticated'](),controller['telephones']),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xb7),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xb6)]),router[a631_0x5b7a26(0xd8)]('/campaigns',auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xc3)]),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xcd),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0x9f)]),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xda),auth['isAuthenticated'](),controller['chatQueuesWaitingInteractions']),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xc7),auth['isAuthenticated'](),controller[a631_0x5b7a26(0xe2)]),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xb2),auth['isAuthenticated'](),controller[a631_0x5b7a26(0x9e)]),router[a631_0x5b7a26(0xd8)]('/openchannel/queues/:id/waitinginteractions',auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xc1)]),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0x9d),auth['isAuthenticated'](),controller[a631_0x5b7a26(0xc4)]),router[a631_0x5b7a26(0xd8)]('/whatsapp/queues/waitinginteractions',auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xe0)]),router['get'](a631_0x5b7a26(0xcc),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xb4)]),router[a631_0x5b7a26(0xce)](a631_0x5b7a26(0xc8),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xd1)]('mail')),router[a631_0x5b7a26(0xd8)]('/mail/queues/:id',auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xbe)]),router[a631_0x5b7a26(0xce)](a631_0x5b7a26(0xab),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xd1)](a631_0x5b7a26(0xc6))),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xb8),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xbc)]),router[a631_0x5b7a26(0xce)]('/fax/queues/:id/notify',auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xd1)](a631_0x5b7a26(0xde))),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xcf),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xc2)]),router['post'](a631_0x5b7a26(0xe4),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xd1)](a631_0x5b7a26(0x9a))),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xa5),auth['isAuthenticated'](),controller[a631_0x5b7a26(0xc5)]),router[a631_0x5b7a26(0xce)](a631_0x5b7a26(0xb1),auth['isAuthenticated'](),controller[a631_0x5b7a26(0xd1)]('sms')),router[a631_0x5b7a26(0xce)](a631_0x5b7a26(0xa6),auth['isAuthenticated'](),controller[a631_0x5b7a26(0xd1)](a631_0x5b7a26(0xe5))),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xa2),auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0xa0)]),router[a631_0x5b7a26(0xd8)](a631_0x5b7a26(0xe3),auth['isAuthenticated'](),controller[a631_0x5b7a26(0xd3)]),router['post']('/agents/:id/notify',auth[a631_0x5b7a26(0xae)](),controller[a631_0x5b7a26(0x9b)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/rpc/rpc.controller.js b/server/api/rpc/rpc.controller.js index ab778c2..fec590f 100644 --- a/server/api/rpc/rpc.controller.js +++ b/server/api/rpc/rpc.controller.js @@ -1 +1 @@ -const a632_0x22c2=['merge','chatQueues','interface','VoiceQueuesChannelRedirect','params','interaction','send','AgentCapacity','voiceQueuesChannelRedirect','campaigns','InteractionId','agents','Message','request','Trunks','moment','queueTransferTimeout','outbound','agent','QueueId','Telephones','SmsQueues','VoiceQueuesChannel','queueNotify','type','Account','map','FaxAccounts','showChatQueues','undefined','TransferReport','indexOf','sendStatus','status','stack','query','VoiceQueues','queue','update','showMailQueues','agentNotify','channel','VoiceQueuesChannelHangup','OpenchannelQueuesWaitingInteractions','FaxQueues','value','notIn','voiceChannels','uniq','VoiceQueuesChannels','OpenchannelQueues','Website','messageId','findOrCreate','find','From','message','faxAccounts','MemberReport','WhatsappQueues','VoiceChannelMixMonitor','create','voiceQueuesChannels','MessageId','ChatQueues','voiceChannelMixMonitor','error','util','format','openchannelQueues','body','result','queue_id','chatQueuesWaitingInteractions','trunks','mailAccounts','agentTransferTimeout','showFaxQueues','VoiceChannelStopMixMonitor','Queue','rows','openchannelQueuesWaitingInteractions','agentCapacity','http','catch','INTERACTION','User','findOne','SmsQueuesWaitingInteractions','Agent\x20not\x20found','jayson/promise','mailQueuesWaitingInteractions','MailQueuesWaitingInteractions','../../config/logger','VoiceQueuesPreview','whatsappQueues','telephones','findAll','WhatsappQueuesWaitingInteractions','sequelize','showSmsQueues','Campaigns','api','Outbound','name','Start','Channel\x20field\x20is\x20mandatory','chat','json','showWhatsappQueues','isNil','*,*,*,*','user','voiceQueuesPreview','length','voiceChannelStopMixMonitor','OutboundChannels','capitalize','YYYY-MM-DD\x20HH:mm:ss','showVoiceQueues','Interaction','FaxQueuesWaitingInteractions','faxQueues','internal','then','smsQueuesWaitingInteractions','Agents','smsQueues','showOpenchannelQueues','\x20Queue\x20not\x20found','whatsappQueuesWaitingInteractions','filter'];(function(_0x2c9bf4,_0x2e0de7){const _0x22c2bd=function(_0x4b54f0){while(--_0x4b54f0){_0x2c9bf4['push'](_0x2c9bf4['shift']());}};_0x22c2bd(++_0x2e0de7);}(a632_0x22c2,0x1e6));const a632_0x4b54=function(_0x2c9bf4,_0x2e0de7){_0x2c9bf4=_0x2c9bf4-0xde;let _0x22c2bd=a632_0x22c2[_0x2c9bf4];return _0x22c2bd;};const a632_0x35b8f3=a632_0x4b54;'use strict';const moment=require(a632_0x35b8f3(0x117)),_=require('lodash'),util=require(a632_0x35b8f3(0x14b)),{db}=require('../../mysqldb'),{Op}=require(a632_0x35b8f3(0xe7)),logger=require(a632_0x35b8f3(0xe1))(a632_0x35b8f3(0xea)),jayson=require(a632_0x35b8f3(0xde)),amiClient=jayson['client']['http']({'port':0x232a}),mailClient=jayson['client'][a632_0x35b8f3(0x15b)]({'port':0x232b}),routingClient=jayson['client'][a632_0x35b8f3(0x15b)]({'port':0x232c});function respondWithRpcPromise(_0x5bc878,_0x4fbd7f,_0xdac9a1){return new Promise(function(_0x51cd7a,_0x55d3aa){const _0xff7dc9=a632_0x4b54,_0x3d9cbb=_0xdac9a1?_0xdac9a1:amiClient;return _0x3d9cbb[_0xff7dc9(0x115)](_0x5bc878,_0x4fbd7f)[_0xff7dc9(0x100)](function(_0x19733a){const _0x5d732f=_0xff7dc9;if(_0x19733a[_0x5d732f(0x14a)]){if(_0x19733a['error']['code']===0x1f4)return _0x55d3aa(_0x19733a[_0x5d732f(0x14a)][_0x5d732f(0x140)]);return _0x51cd7a(_0x19733a[_0x5d732f(0x14a)]['message']);}else _0x51cd7a(_0x19733a[_0x5d732f(0x14f)]);})[_0xff7dc9(0x15c)](function(_0x149de6){_0x55d3aa(_0x149de6);});});}function respondWithResult(_0x34f732,_0x2eb4df){return _0x2eb4df=_0x2eb4df||0xc8,function(_0x583256){const _0x3d6e53=a632_0x4b54;if(_0x583256)return _0x34f732['status'](_0x2eb4df)[_0x3d6e53(0xf0)](_0x583256);return _0x34f732[_0x3d6e53(0x128)](0x194);};}function handleError(_0x277bf2,_0x513f95){return _0x513f95=_0x513f95||0x1f4,function(_0x2d3a76){const _0x39f32c=a632_0x4b54;logger[_0x39f32c(0x14a)](_0x2d3a76[_0x39f32c(0x12a)]),_0x2d3a76[_0x39f32c(0xec)]&&delete _0x2d3a76[_0x39f32c(0xec)],_0x277bf2[_0x39f32c(0x129)](_0x513f95)[_0x39f32c(0x10e)](_0x2d3a76);};}function findById(_0x47aae6){return function(_0x6199a2){const _0x5c5d91=a632_0x4b54;if(!_[_0x5c5d91(0xf2)](_0x47aae6)&&!_[_0x5c5d91(0xf2)](_0x6199a2)&&!_[_0x5c5d91(0xf2)](_0x6199a2['rows']))return _[_0x5c5d91(0x13e)](_0x6199a2[_0x5c5d91(0x158)],function(_0x3163e4){return _0x3163e4['id']==_0x47aae6;});return null;};}exports[a632_0x35b8f3(0x137)]=function(_0x5d1346,_0xad3dfd){const _0xf95a5b=a632_0x35b8f3;return respondWithRpcPromise('VoiceChannels',_0x5d1346[_0xf95a5b(0x12b)])[_0xf95a5b(0x100)](respondWithResult(_0xad3dfd,null))[_0xf95a5b(0x15c)](handleError(_0xad3dfd,null));},exports[a632_0x35b8f3(0x149)]=function(_0x4e5df5,_0x22b776){const _0x6dfc74=a632_0x35b8f3;return respondWithRpcPromise(_0x6dfc74(0x144),_[_0x6dfc74(0x108)](_0x4e5df5['query'],_0x4e5df5['params']))['then'](respondWithResult(_0x22b776,null))[_0x6dfc74(0x15c)](handleError(_0x22b776,null));},exports[a632_0x35b8f3(0xf7)]=function(_0x250423,_0x234086){const _0x2c1031=a632_0x35b8f3;return respondWithRpcPromise(_0x2c1031(0x156),_[_0x2c1031(0x108)](_0x250423[_0x2c1031(0x12b)],_0x250423[_0x2c1031(0x10c)]))[_0x2c1031(0x100)](respondWithResult(_0x234086,null))[_0x2c1031(0x15c)](handleError(_0x234086,null));},exports['voiceQueues']=function(_0x21e8b2,_0x16b230){const _0x39cf26=a632_0x35b8f3;return respondWithRpcPromise('VoiceQueues',_0x21e8b2['query'])[_0x39cf26(0x100)](respondWithResult(_0x16b230,null))['catch'](handleError(_0x16b230,null));},exports[a632_0x35b8f3(0xfb)]=function(_0x42b889,_0x3ad205){const _0x517114=a632_0x35b8f3;return respondWithRpcPromise(_0x517114(0x12c),_0x42b889[_0x517114(0x12b)])[_0x517114(0x100)](findById(_0x42b889[_0x517114(0x10c)]['id']))[_0x517114(0x100)](respondWithResult(_0x3ad205,null))[_0x517114(0x15c)](handleError(_0x3ad205,null));},exports[a632_0x35b8f3(0xf5)]=function(_0x4e676b,_0x3d7ad1){const _0xc1fdfc=a632_0x35b8f3;return respondWithRpcPromise(_0xc1fdfc(0xe2),_[_0xc1fdfc(0x108)](_0x4e676b[_0xc1fdfc(0x12b)],_0x4e676b[_0xc1fdfc(0x10c)]))[_0xc1fdfc(0x100)](respondWithResult(_0x3d7ad1,null))[_0xc1fdfc(0x15c)](handleError(_0x3d7ad1,null));},exports[a632_0x35b8f3(0x146)]=function(_0x446d57,_0x65d02d){const _0x825b0e=a632_0x35b8f3;return respondWithRpcPromise(_0x825b0e(0x139),_0x446d57[_0x825b0e(0x12b)])[_0x825b0e(0x100)](respondWithResult(_0x65d02d,null))['catch'](handleError(_0x65d02d,null));},exports['voiceQueuesChannel']=function(_0x13d78d,_0x483c56){const _0x5e0fda=a632_0x35b8f3;return respondWithRpcPromise(_0x5e0fda(0x11e),_['merge'](_0x13d78d[_0x5e0fda(0x12b)],_0x13d78d[_0x5e0fda(0x10c)]))['then'](respondWithResult(_0x483c56,null))['catch'](handleError(_0x483c56,null));},exports['voiceQueuesChannelHangup']=function(_0x46108e,_0x1c82c9){const _0x14ffb2=a632_0x35b8f3;return respondWithRpcPromise(_0x14ffb2(0x132),_[_0x14ffb2(0x108)](_0x46108e['query'],_0x46108e[_0x14ffb2(0x10c)]))[_0x14ffb2(0x100)](respondWithResult(_0x1c82c9,null))['catch'](handleError(_0x1c82c9,null));},exports[a632_0x35b8f3(0x110)]=function(_0x14199d,_0x2e1ef0){const _0x7c8a0d=a632_0x35b8f3;return respondWithRpcPromise(_0x7c8a0d(0x10b),_['merge'](_0x14199d['query'],_0x14199d[_0x7c8a0d(0x10c)]))[_0x7c8a0d(0x100)](respondWithResult(_0x2e1ef0,null))['catch'](handleError(_0x2e1ef0,null));},exports[a632_0x35b8f3(0x119)]=function(_0x1073cf,_0x646f45){const _0x27eee3=a632_0x35b8f3;return respondWithRpcPromise(_0x27eee3(0xeb),_0x1073cf[_0x27eee3(0x12b)])['then'](respondWithResult(_0x646f45,null))[_0x27eee3(0x15c)](handleError(_0x646f45,null));},exports['outboundChannels']=function(_0x576128,_0x424e9d){const _0x432f04=a632_0x35b8f3;return respondWithRpcPromise(_0x432f04(0xf8),_0x576128['query'])[_0x432f04(0x100)](respondWithResult(_0x424e9d,null))[_0x432f04(0x15c)](handleError(_0x424e9d,null));},exports[a632_0x35b8f3(0x113)]=function(_0x4815d4,_0x599ffb){const _0x4fb59c=a632_0x35b8f3;let _0x4d9657;return respondWithRpcPromise('Agents',_0x4815d4[_0x4fb59c(0x12b)])[_0x4fb59c(0x100)](function(_0x2c0dac){const _0x5aac84=_0x4fb59c;return _0x4d9657=_0x2c0dac,respondWithRpcPromise(_0x5aac84(0x102),_0x4815d4[_0x5aac84(0x12b)],routingClient);})[_0x4fb59c(0x100)](function(_0x27a337){const _0x196e9c=_0x4fb59c;return _[_0x196e9c(0x108)]({},_0x27a337,_0x4d9657);})[_0x4fb59c(0x100)](respondWithResult(_0x599ffb,null))['catch'](handleError(_0x599ffb,null));},exports[a632_0x35b8f3(0x15a)]=function(_0x3ec67b,_0x4b2421){const _0xae3640=a632_0x35b8f3;if(_0x3ec67b['body']&&_0x3ec67b[_0xae3640(0x14e)][_0xae3640(0x10d)]&&_0x3ec67b[_0xae3640(0xf4)]&&_0x3ec67b['user'][_0xae3640(0xec)])for(const _0x13c769 in _0x3ec67b[_0xae3640(0x14e)][_0xae3640(0x10d)]){if(typeof _0x3ec67b[_0xae3640(0x14e)][_0xae3640(0x10d)][_0x13c769]!==_0xae3640(0x125)){db[_0xae3640(0x142)][_0xae3640(0xe5)]({'where':{'channel':_0x13c769,'membername':_0x3ec67b[_0xae3640(0xf4)][_0xae3640(0xec)],'type':'INTERACTION','exitAt':null,'uniqueid':_0x3ec67b[_0xae3640(0x14e)]['interaction'][_0x13c769]&&_0x3ec67b[_0xae3640(0x14e)][_0xae3640(0x10d)][_0x13c769][_0xae3640(0xf6)]?{[Op[_0xae3640(0x136)]]:_0x3ec67b['body']['interaction'][_0x13c769]}:{[Op['ne']]:null}}})[_0xae3640(0x100)](function(_0x3f63e8){const _0xbe1982=_0xae3640,_0x1b9df8=moment()['format'](_0xbe1982(0xfa));for(let _0x44bceb=0x0,_0x2e7ceb=_0x3f63e8[_0xbe1982(0xf6)];_0x44bceb<_0x2e7ceb;_0x44bceb+=0x1){_0x3f63e8[_0x44bceb]['update']({'exitAt':_0x1b9df8});}});for(let _0x41adbc=0x0;_0x41adbc<_0x3ec67b[_0xae3640(0x14e)][_0xae3640(0x10d)][_0x13c769]['length'];_0x41adbc+=0x1){db[_0xae3640(0x142)][_0xae3640(0x13d)]({'where':{'channel':_0x13c769,'membername':_0x3ec67b[_0xae3640(0xf4)][_0xae3640(0xec)],'type':_0xae3640(0x15d),'uniqueid':_0x3ec67b[_0xae3640(0x14e)][_0xae3640(0x10d)][_0x13c769][_0x41adbc],'exitAt':null},'defaults':{'channel':_0x13c769,'membername':_0x3ec67b[_0xae3640(0xf4)][_0xae3640(0xec)],'interface':_[_0xae3640(0xf2)](_0x3ec67b[_0xae3640(0xf4)][_0xae3640(0x10a)])?util[_0xae3640(0x14c)]('SIP/%s',_0x3ec67b[_0xae3640(0xf4)]['name']):_0x3ec67b[_0xae3640(0xf4)][_0xae3640(0x10a)],'type':_0xae3640(0x15d),'enterAt':moment()[_0xae3640(0x14c)]('YYYY-MM-DD\x20HH:mm:ss'),'role':_0xae3640(0x11a),'internal':_0x3ec67b[_0xae3640(0xf4)][_0xae3640(0xff)],'uniqueid':_0x3ec67b[_0xae3640(0x14e)][_0xae3640(0x10d)][_0x13c769][_0x41adbc]}});}}}return respondWithRpcPromise(_0xae3640(0x10f),{'id':_0x3ec67b[_0xae3640(0x10c)]['id'],'capacity':_0x3ec67b[_0xae3640(0x14e)]['capacity']},routingClient)[_0xae3640(0x100)](respondWithResult(_0x4b2421,null))[_0xae3640(0x15c)](handleError(_0x4b2421,null));},exports[a632_0x35b8f3(0xe4)]=function(_0x3b7f8d,_0x177276){const _0x480a58=a632_0x35b8f3;return respondWithRpcPromise(_0x480a58(0x11c),_0x3b7f8d[_0x480a58(0x12b)])['then'](respondWithResult(_0x177276,null))[_0x480a58(0x15c)](handleError(_0x177276,null));},exports[a632_0x35b8f3(0x152)]=function(_0x55ed03,_0x56f104){const _0x4a6149=a632_0x35b8f3;return respondWithRpcPromise(_0x4a6149(0x116),_0x55ed03[_0x4a6149(0x12b)])[_0x4a6149(0x100)](respondWithResult(_0x56f104,null))[_0x4a6149(0x15c)](handleError(_0x56f104,null));},exports[a632_0x35b8f3(0x111)]=function(_0x267ad1,_0x1d523d){const _0x3e2072=a632_0x35b8f3;return respondWithRpcPromise(_0x3e2072(0xe9),_0x267ad1[_0x3e2072(0x12b)])['then'](respondWithResult(_0x1d523d,null))[_0x3e2072(0x15c)](handleError(_0x1d523d,null));},exports[a632_0x35b8f3(0x109)]=function(_0x137263,_0x108a54){const _0x1d38a9=a632_0x35b8f3;return respondWithRpcPromise(_0x1d38a9(0x148),_0x137263[_0x1d38a9(0x12b)],routingClient)[_0x1d38a9(0x100)](respondWithResult(_0x108a54,null))[_0x1d38a9(0x15c)](handleError(_0x108a54,null));},exports[a632_0x35b8f3(0x124)]=function(_0x183b31,_0x4f0c75){const _0x4369d4=a632_0x35b8f3;return respondWithRpcPromise(_0x4369d4(0x148),_0x183b31[_0x4369d4(0x12b)],routingClient)[_0x4369d4(0x100)](findById(_0x183b31[_0x4369d4(0x10c)]['id']))[_0x4369d4(0x100)](respondWithResult(_0x4f0c75,null))[_0x4369d4(0x15c)](handleError(_0x4f0c75,null));},exports['mailQueues']=function(_0x591e1c,_0x46c3b2){const _0x533e53=a632_0x35b8f3;return respondWithRpcPromise('MailQueues',_0x591e1c[_0x533e53(0x12b)],routingClient)[_0x533e53(0x100)](respondWithResult(_0x46c3b2,null))[_0x533e53(0x15c)](handleError(_0x46c3b2,null));},exports[a632_0x35b8f3(0x12f)]=function(_0xe03792,_0x3b142b){const _0x384e04=a632_0x35b8f3;return respondWithRpcPromise('MailQueues',_0xe03792[_0x384e04(0x12b)],routingClient)['then'](findById(_0xe03792[_0x384e04(0x10c)]['id']))[_0x384e04(0x100)](respondWithResult(_0x3b142b,null))[_0x384e04(0x15c)](handleError(_0x3b142b,null));},exports[a632_0x35b8f3(0x153)]=function(_0x52d307,_0x4ab6eb){const _0xb5a16c=a632_0x35b8f3;return respondWithRpcPromise('MailAccounts',_0x52d307[_0xb5a16c(0x12b)],mailClient)[_0xb5a16c(0x100)](respondWithResult(_0x4ab6eb,null))[_0xb5a16c(0x15c)](handleError(_0x4ab6eb,null));},exports[a632_0x35b8f3(0x14d)]=function(_0x55e3f4,_0x45e3f7){const _0x3815ba=a632_0x35b8f3;return respondWithRpcPromise(_0x3815ba(0x13a),_0x55e3f4['query'],routingClient)[_0x3815ba(0x100)](respondWithResult(_0x45e3f7,null))['catch'](handleError(_0x45e3f7,null));},exports[a632_0x35b8f3(0x104)]=function(_0xde17d7,_0x57f977){const _0x3a2d68=a632_0x35b8f3;return respondWithRpcPromise('OpenchannelQueues',_0xde17d7[_0x3a2d68(0x12b)],routingClient)[_0x3a2d68(0x100)](findById(_0xde17d7[_0x3a2d68(0x10c)]['id']))[_0x3a2d68(0x100)](respondWithResult(_0x57f977,null))['catch'](handleError(_0x57f977,null));},exports[a632_0x35b8f3(0x103)]=function(_0x5b8fa0,_0x181ac9){const _0x23c9dd=a632_0x35b8f3;return respondWithRpcPromise('SmsQueues',_0x5b8fa0[_0x23c9dd(0x12b)],routingClient)['then'](respondWithResult(_0x181ac9,null))[_0x23c9dd(0x15c)](handleError(_0x181ac9,null));},exports[a632_0x35b8f3(0xe8)]=function(_0x42205a,_0x27a616){const _0x50bf43=a632_0x35b8f3;return respondWithRpcPromise(_0x50bf43(0x11d),_0x42205a[_0x50bf43(0x12b)],routingClient)[_0x50bf43(0x100)](findById(_0x42205a[_0x50bf43(0x10c)]['id']))[_0x50bf43(0x100)](respondWithResult(_0x27a616,null))[_0x50bf43(0x15c)](handleError(_0x27a616,null));},exports[a632_0x35b8f3(0xe3)]=function(_0x4ab2dc,_0x145187){const _0x447c24=a632_0x35b8f3;return respondWithRpcPromise(_0x447c24(0x143),_0x4ab2dc['query'],routingClient)[_0x447c24(0x100)](respondWithResult(_0x145187,null))[_0x447c24(0x15c)](handleError(_0x145187,null));},exports[a632_0x35b8f3(0xf1)]=function(_0x205634,_0x4350e9){const _0x396329=a632_0x35b8f3;return respondWithRpcPromise(_0x396329(0x143),_0x205634[_0x396329(0x12b)],routingClient)[_0x396329(0x100)](findById(_0x205634['params']['id']))[_0x396329(0x100)](respondWithResult(_0x4350e9,null))[_0x396329(0x15c)](handleError(_0x4350e9,null));},exports[a632_0x35b8f3(0xfe)]=function(_0xf922f4,_0x2e6d54){const _0x3e5c7b=a632_0x35b8f3;return respondWithRpcPromise('FaxQueues',_0xf922f4['query'],routingClient)[_0x3e5c7b(0x100)](respondWithResult(_0x2e6d54,null))[_0x3e5c7b(0x15c)](handleError(_0x2e6d54,null));},exports[a632_0x35b8f3(0x155)]=function(_0x4b0b8a,_0x26db86){const _0x152be4=a632_0x35b8f3;return respondWithRpcPromise(_0x152be4(0x134),_0x4b0b8a[_0x152be4(0x12b)],routingClient)[_0x152be4(0x100)](findById(_0x4b0b8a[_0x152be4(0x10c)]['id']))['then'](respondWithResult(_0x26db86,null))[_0x152be4(0x15c)](handleError(_0x26db86,null));},exports[a632_0x35b8f3(0x141)]=function(_0x2cf24f,_0x1c0d3f){const _0x58ed48=a632_0x35b8f3;return respondWithRpcPromise(_0x58ed48(0x123),_0x2cf24f[_0x58ed48(0x12b)])[_0x58ed48(0x100)](respondWithResult(_0x1c0d3f,null))[_0x58ed48(0x15c)](handleError(_0x1c0d3f,null));},exports[a632_0x35b8f3(0x151)]=function(_0x3e66dc,_0x2f8431){const _0x2abc30=a632_0x35b8f3;return respondWithRpcPromise('ChatQueuesWaitingInteractions',_0x3e66dc[_0x2abc30(0x12b)],routingClient)[_0x2abc30(0x100)](respondWithResult(_0x2f8431,null))[_0x2abc30(0x15c)](handleError(_0x2f8431,null));},exports[a632_0x35b8f3(0xdf)]=function(_0x1c9a7f,_0x539e1e){const _0x3e061c=a632_0x35b8f3;return respondWithRpcPromise(_0x3e061c(0xe0),_0x1c9a7f[_0x3e061c(0x12b)],routingClient)[_0x3e061c(0x100)](respondWithResult(_0x539e1e,null))['catch'](handleError(_0x539e1e,null));},exports[a632_0x35b8f3(0x159)]=function(_0x5976a7,_0x5b9ead){const _0x1b6859=a632_0x35b8f3;return respondWithRpcPromise(_0x1b6859(0x133),_0x5976a7[_0x1b6859(0x12b)],routingClient)[_0x1b6859(0x100)](respondWithResult(_0x5b9ead,null))[_0x1b6859(0x15c)](handleError(_0x5b9ead,null));},exports['openchannelQueuesIdWaitingInteractions']=function(_0x330e6e,_0xadb0dd){const _0x464cc9=a632_0x35b8f3;return respondWithRpcPromise(_0x464cc9(0x133),_0x330e6e['query'],routingClient)['then'](function(_0x49531e){const _0x36fc45=_0x464cc9;if(_0x330e6e[_0x36fc45(0x12b)]['type']!==undefined){const _0x241567=_(_0x49531e[_0x36fc45(0x158)])[_0x36fc45(0x107)]([_0x330e6e['query'][_0x36fc45(0x120)],_0x330e6e[_0x36fc45(0x10c)]['id']])[_0x36fc45(0x122)](_0x36fc45(0x150))[_0x36fc45(0x138)]()[_0x36fc45(0x135)]();return _0x49531e[_0x36fc45(0x158)][_0x36fc45(0x107)](function(_0x2c973b){const _0x20ea1f=_0x36fc45;return _0x241567[_0x20ea1f(0x127)](_0x2c973b[_0x20ea1f(0x150)])>-0x1;});}else return _0x49531e[_0x36fc45(0x158)][_0x36fc45(0x107)](function(_0x4f03d4){const _0xa7906c=_0x36fc45;return _0x4f03d4[_0xa7906c(0x150)]===parseInt(_0x330e6e[_0xa7906c(0x10c)]['id']);});})[_0x464cc9(0x100)](respondWithResult(_0xadb0dd,null))[_0x464cc9(0x15c)](handleError(_0xadb0dd,null));},exports[a632_0x35b8f3(0x101)]=function(_0x4d4c38,_0x55a066){const _0x569aaf=a632_0x35b8f3;return respondWithRpcPromise(_0x569aaf(0x160),_0x4d4c38[_0x569aaf(0x12b)],routingClient)[_0x569aaf(0x100)](respondWithResult(_0x55a066,null))['catch'](handleError(_0x55a066,null));},exports[a632_0x35b8f3(0x106)]=function(_0x3868b7,_0xdb0fd0){const _0x2445c3=a632_0x35b8f3;return respondWithRpcPromise(_0x2445c3(0xe6),_0x3868b7[_0x2445c3(0x12b)],routingClient)['then'](respondWithResult(_0xdb0fd0,null))['catch'](handleError(_0xdb0fd0,null));},exports['faxQueuesWaitingInteractions']=function(_0x14f221,_0x1ebc9a){const _0x378180=a632_0x35b8f3;return respondWithRpcPromise(_0x378180(0xfd),_0x14f221[_0x378180(0x12b)],routingClient)[_0x378180(0x100)](respondWithResult(_0x1ebc9a,null))[_0x378180(0x15c)](handleError(_0x1ebc9a,null));},exports[a632_0x35b8f3(0x11f)]=function(_0x2e29ef){return function(_0x1b1aca,_0x14bf41){const _0x2ff74a=a632_0x4b54;let _0x30b12d,_0x4f467f;const _0x527d41=_[_0x2ff74a(0xf9)](_0x2e29ef),_0x2a5fdc=_0x2e29ef===_0x2ff74a(0xef)?'Website':_0x2ff74a(0x121);return db[_0x527d41+_0x2ff74a(0x157)][_0x2ff74a(0x15f)]({'raw':!![],'where':{'id':_0x1b1aca[_0x2ff74a(0x10c)]['id']}})[_0x2ff74a(0x100)](function(_0x207769){const _0x170f45=_0x2ff74a;if(_[_0x170f45(0xf2)](_0x207769))throw new Error(_0x527d41+_0x170f45(0x105));return _0x30b12d=_0x207769,db[_0x527d41+'Message'][_0x170f45(0x15f)]({'where':{'id':_0x1b1aca[_0x170f45(0x14e)][_0x170f45(0x13c)]},'include':[{'model':db[_0x527d41+'Interaction'],'as':_0x170f45(0xfc)},{'model':db[_0x527d41+_0x2a5fdc],'as':_0x170f45(0x121)}]});})[_0x2ff74a(0x100)](function(_0x21295d){const _0x47bc76=_0x2ff74a;if(_['isNil'](_0x21295d))throw new Error(_0x527d41+'\x20Message\x20not\x20found');return _0x4f467f=_0x21295d,_0x21295d[_0x47bc76(0x12e)]({'read':0x0,'readAt':null,'UserId':null});})[_0x2ff74a(0x100)](function(){const _0x2d8f68=_0x2ff74a,_0x1845a4={'uniqueid':_0x2e29ef+'.'+_0x4f467f['id']+'.'+_0x4f467f[_0x2d8f68(0xfc)]['id'],'FromUserId':_0x1b1aca[_0x2d8f68(0xf4)]['id'],'type':'queue'};return _0x1845a4[_0x527d41+'MessageId']=_0x4f467f['id'],_0x1845a4[_0x527d41+'InteractionId']=_0x4f467f[_0x2d8f68(0xfc)]['id'],_0x1845a4[_0x2d8f68(0x13f)+_0x527d41+_0x2a5fdc+'Id']=_0x4f467f[_0x2d8f68(0x121)]['id'],_0x1845a4['To'+_0x527d41+_0x2d8f68(0x11b)]=_0x30b12d['id'],db[_0x527d41+_0x2d8f68(0x126)][_0x2d8f68(0x145)](_0x1845a4);})[_0x2ff74a(0x100)](function(){const _0x3d5b4c=_0x2ff74a;return respondWithRpcPromise(_0x3d5b4c(0xed),{'channel':_0x2e29ef,'interaction':_0x4f467f['Interaction'],'message':_0x4f467f,'account':_0x4f467f['Account'],'applications':[{'id':0x0,'priority':0x1,'app':_0x3d5b4c(0x12d),'appdata':_0x30b12d[_0x3d5b4c(0xec)]+','+(_0x4f467f[_0x3d5b4c(0x121)][_0x3d5b4c(0x118)]||0x12c),'interval':_0x3d5b4c(0xf3)}]},routingClient);})['then'](respondWithResult(_0x14bf41,null))[_0x2ff74a(0x15c)](handleError(_0x14bf41,null));};},exports[a632_0x35b8f3(0x130)]=function(_0x2bf783,_0x83d81b){const _0x1646db=a632_0x35b8f3;let _0x5de398,_0xe89a50;if(_[_0x1646db(0xf2)](_0x2bf783['body']['channel']))throw new Error(_0x1646db(0xee));const _0x37fdff=_0x2bf783[_0x1646db(0x14e)][_0x1646db(0x131)],_0x57b206=_['capitalize'](_0x37fdff),_0x585baa=_0x37fdff==='chat'?_0x1646db(0x13b):_0x1646db(0x121);return db[_0x1646db(0x15e)][_0x1646db(0x15f)]({'raw':!![],'where':{'id':_0x2bf783[_0x1646db(0x10c)]['id'],'role':_0x1646db(0x11a)}})[_0x1646db(0x100)](function(_0x14a47f){const _0xff2488=_0x1646db;if(_[_0xff2488(0xf2)](_0x14a47f))throw new Error(_0xff2488(0x161));return _0x5de398=_0x14a47f,db[_0x57b206+_0xff2488(0x114)][_0xff2488(0x15f)]({'where':{'id':_0x2bf783[_0xff2488(0x14e)][_0xff2488(0x13c)]},'include':[{'model':db[_0x57b206+'Interaction'],'as':_0xff2488(0xfc)},{'model':db[_0x57b206+_0x585baa],'as':'Account'}]});})[_0x1646db(0x100)](function(_0xdb8f95){const _0x2f0d96=_0x1646db;if(_[_0x2f0d96(0xf2)](_0xdb8f95))throw new Error(_0x57b206+'\x20Message\x20not\x20found');return _0xe89a50=_0xdb8f95,_0xdb8f95[_0x2f0d96(0x12e)]({'read':0x0,'readAt':null,'UserId':null});})[_0x1646db(0x100)](function(){const _0x1c047b=_0x1646db,_0x3ab181={'uniqueid':_0x37fdff+'.'+_0xe89a50['id']+'.'+_0xe89a50[_0x1c047b(0xfc)]['id'],'FromUserId':_0x2bf783['user']['id'],'type':_0x1c047b(0x12d),'ToUserId':_0x5de398['id']};return _0x3ab181[_0x57b206+_0x1c047b(0x147)]=_0xe89a50['id'],_0x3ab181[_0x57b206+_0x1c047b(0x112)]=_0xe89a50[_0x1c047b(0xfc)]['id'],_0x3ab181[_0x1c047b(0x13f)+_0x57b206+_0x585baa+'Id']=_0xe89a50[_0x1c047b(0x121)]['id'],db[_0x57b206+'TransferReport'][_0x1c047b(0x145)](_0x3ab181);})[_0x1646db(0x100)](function(){const _0x48757b=_0x1646db;return respondWithRpcPromise(_0x48757b(0xed),{'channel':_0x37fdff,'interaction':_0xe89a50[_0x48757b(0xfc)],'message':_0xe89a50,'account':_0xe89a50[_0x48757b(0x121)],'applications':[{'id':0x0,'priority':0x1,'app':_0x48757b(0x11a),'appdata':_0x5de398[_0x48757b(0xec)]+','+(_0xe89a50['Account'][_0x48757b(0x154)]||0x12c),'interval':_0x48757b(0xf3)}]},routingClient);})[_0x1646db(0x100)](respondWithResult(_0x83d81b,null))[_0x1646db(0x15c)](handleError(_0x83d81b,null));}; \ No newline at end of file +const a632_0x52e1=['Telephones','trunks','INTERACTION','YYYY-MM-DD\x20HH:mm:ss','agent','uniq','chat','faxAccounts','*,*,*,*','showWhatsappQueues','outbound','result','showSmsQueues','send','faxQueues','QueueId','stack','WhatsappQueues','queue','Trunks','Queue','jayson/promise','whatsappQueuesWaitingInteractions','VoiceQueuesChannelHangup','sequelize','channel','Account','json','findOne','agents','status','sendStatus','ChatQueuesWaitingInteractions','util','VoiceChannelStopMixMonitor','client','Agent\x20not\x20found','FaxQueuesWaitingInteractions','rows','body','showChatQueues','mailQueues','format','notIn','undefined','OutboundChannels','smsQueues','findOrCreate','WhatsappQueuesWaitingInteractions','FaxAccounts','queueNotify','messageId','whatsappQueues','SIP/%s','openchannelQueues','voiceQueuesChannelHangup','ChatQueues','AgentCapacity','VoiceQueuesChannels','then','OpenchannelQueuesWaitingInteractions','VoiceQueuesChannelRedirect','agentCapacity','openchannelQueuesIdWaitingInteractions','InteractionId','../../mysqldb','MailQueues','query','merge','user','update','showOpenchannelQueues','agentTransferTimeout','MailQueuesWaitingInteractions','User','OpenchannelQueues','chatQueues','capacity','name','MessageId','telephones','length','showFaxQueues','Website','FaxQueues','Interaction','VoiceQueuesChannel','smsQueuesWaitingInteractions','code','VoiceQueuesPreview','findAll','Message','error','mailQueuesWaitingInteractions','params','isNil','value','From','interface','voiceQueues','mailAccounts','moment','request','create','VoiceQueues','Channel\x20field\x20is\x20mandatory','interaction','faxQueuesWaitingInteractions','capitalize','chatQueuesWaitingInteractions','voiceChannelStopMixMonitor','\x20Message\x20not\x20found','campaigns','agentNotify','filter','openchannelQueuesWaitingInteractions','catch','SmsQueuesWaitingInteractions','queue_id','type','internal','http','MemberReport','queueTransferTimeout'];(function(_0x28ee68,_0xde721e){const _0x52e13b=function(_0x1571fb){while(--_0x1571fb){_0x28ee68['push'](_0x28ee68['shift']());}};_0x52e13b(++_0xde721e);}(a632_0x52e1,0x10f));const a632_0x1571=function(_0x28ee68,_0xde721e){_0x28ee68=_0x28ee68-0x11d;let _0x52e13b=a632_0x52e1[_0x28ee68];return _0x52e13b;};const a632_0x136366=a632_0x1571;'use strict';const moment=require(a632_0x136366(0x16b)),_=require('lodash'),util=require(a632_0x136366(0x127)),{db}=require(a632_0x136366(0x147)),{Op}=require(a632_0x136366(0x11e)),logger=require('../../config/logger')('api'),jayson=require(a632_0x136366(0x197)),amiClient=jayson[a632_0x136366(0x129)][a632_0x136366(0x17f)]({'port':0x232a}),mailClient=jayson[a632_0x136366(0x129)][a632_0x136366(0x17f)]({'port':0x232b}),routingClient=jayson[a632_0x136366(0x129)][a632_0x136366(0x17f)]({'port':0x232c});function respondWithRpcPromise(_0x4b8699,_0x1b291f,_0x486c84){return new Promise(function(_0x33eadd,_0x377b38){const _0x1d001c=a632_0x1571,_0x402515=_0x486c84?_0x486c84:amiClient;return _0x402515[_0x1d001c(0x16c)](_0x4b8699,_0x1b291f)[_0x1d001c(0x141)](function(_0x17ae06){const _0x176246=_0x1d001c;if(_0x17ae06['error']){if(_0x17ae06[_0x176246(0x162)][_0x176246(0x15e)]===0x1f4)return _0x377b38(_0x17ae06[_0x176246(0x162)]['message']);return _0x33eadd(_0x17ae06[_0x176246(0x162)]['message']);}else _0x33eadd(_0x17ae06[_0x176246(0x18d)]);})['catch'](function(_0x1f8701){_0x377b38(_0x1f8701);});});}function respondWithResult(_0x144724,_0x3ad38c){return _0x3ad38c=_0x3ad38c||0xc8,function(_0x1a08b5){const _0x6f35ad=a632_0x1571;if(_0x1a08b5)return _0x144724[_0x6f35ad(0x124)](_0x3ad38c)[_0x6f35ad(0x121)](_0x1a08b5);return _0x144724[_0x6f35ad(0x125)](0x194);};}function handleError(_0x44d05b,_0x2c99e5){return _0x2c99e5=_0x2c99e5||0x1f4,function(_0x2df75e){const _0xbf47ab=a632_0x1571;logger[_0xbf47ab(0x162)](_0x2df75e[_0xbf47ab(0x192)]),_0x2df75e[_0xbf47ab(0x154)]&&delete _0x2df75e[_0xbf47ab(0x154)],_0x44d05b[_0xbf47ab(0x124)](_0x2c99e5)[_0xbf47ab(0x18f)](_0x2df75e);};}function findById(_0x5556de){return function(_0x2c56c5){const _0x230bc6=a632_0x1571;if(!_['isNil'](_0x5556de)&&!_[_0x230bc6(0x165)](_0x2c56c5)&&!_[_0x230bc6(0x165)](_0x2c56c5[_0x230bc6(0x12c)]))return _['find'](_0x2c56c5[_0x230bc6(0x12c)],function(_0x58bce0){return _0x58bce0['id']==_0x5556de;});return null;};}exports['voiceChannels']=function(_0x8193e3,_0x36108e){const _0x421f5c=a632_0x136366;return respondWithRpcPromise('VoiceChannels',_0x8193e3[_0x421f5c(0x149)])['then'](respondWithResult(_0x36108e,null))[_0x421f5c(0x17a)](handleError(_0x36108e,null));},exports['voiceChannelMixMonitor']=function(_0x236d08,_0x4b09ee){const _0xf19883=a632_0x136366;return respondWithRpcPromise('VoiceChannelMixMonitor',_[_0xf19883(0x14a)](_0x236d08[_0xf19883(0x149)],_0x236d08[_0xf19883(0x164)]))['then'](respondWithResult(_0x4b09ee,null))[_0xf19883(0x17a)](handleError(_0x4b09ee,null));},exports[a632_0x136366(0x174)]=function(_0x59b4f0,_0x127d90){const _0x171ee7=a632_0x136366;return respondWithRpcPromise(_0x171ee7(0x128),_[_0x171ee7(0x14a)](_0x59b4f0[_0x171ee7(0x149)],_0x59b4f0[_0x171ee7(0x164)]))[_0x171ee7(0x141)](respondWithResult(_0x127d90,null))[_0x171ee7(0x17a)](handleError(_0x127d90,null));},exports[a632_0x136366(0x169)]=function(_0x2d5499,_0x1026fd){const _0x5a84f7=a632_0x136366;return respondWithRpcPromise(_0x5a84f7(0x16e),_0x2d5499[_0x5a84f7(0x149)])[_0x5a84f7(0x141)](respondWithResult(_0x1026fd,null))[_0x5a84f7(0x17a)](handleError(_0x1026fd,null));},exports['showVoiceQueues']=function(_0x3a5cc3,_0x128222){const _0x465664=a632_0x136366;return respondWithRpcPromise(_0x465664(0x16e),_0x3a5cc3[_0x465664(0x149)])[_0x465664(0x141)](findById(_0x3a5cc3[_0x465664(0x164)]['id']))[_0x465664(0x141)](respondWithResult(_0x128222,null))[_0x465664(0x17a)](handleError(_0x128222,null));},exports['voiceQueuesPreview']=function(_0x40e18f,_0x12af59){const _0xbf76af=a632_0x136366;return respondWithRpcPromise(_0xbf76af(0x15f),_['merge'](_0x40e18f[_0xbf76af(0x149)],_0x40e18f[_0xbf76af(0x164)]))['then'](respondWithResult(_0x12af59,null))['catch'](handleError(_0x12af59,null));},exports['voiceQueuesChannels']=function(_0x11d4ec,_0x474902){const _0x18e7d6=a632_0x136366;return respondWithRpcPromise(_0x18e7d6(0x140),_0x11d4ec['query'])[_0x18e7d6(0x141)](respondWithResult(_0x474902,null))['catch'](handleError(_0x474902,null));},exports['voiceQueuesChannel']=function(_0x12663d,_0x4e8eba){const _0x2fd74e=a632_0x136366;return respondWithRpcPromise(_0x2fd74e(0x15c),_[_0x2fd74e(0x14a)](_0x12663d[_0x2fd74e(0x149)],_0x12663d['params']))[_0x2fd74e(0x141)](respondWithResult(_0x4e8eba,null))[_0x2fd74e(0x17a)](handleError(_0x4e8eba,null));},exports[a632_0x136366(0x13d)]=function(_0x49bdb3,_0x4deed3){const _0x20da35=a632_0x136366;return respondWithRpcPromise(_0x20da35(0x11d),_['merge'](_0x49bdb3[_0x20da35(0x149)],_0x49bdb3[_0x20da35(0x164)]))['then'](respondWithResult(_0x4deed3,null))[_0x20da35(0x17a)](handleError(_0x4deed3,null));},exports['voiceQueuesChannelRedirect']=function(_0x31cfee,_0x32f413){const _0xac21c7=a632_0x136366;return respondWithRpcPromise(_0xac21c7(0x143),_[_0xac21c7(0x14a)](_0x31cfee['query'],_0x31cfee[_0xac21c7(0x164)]))[_0xac21c7(0x141)](respondWithResult(_0x32f413,null))[_0xac21c7(0x17a)](handleError(_0x32f413,null));},exports[a632_0x136366(0x18c)]=function(_0x38af10,_0x1f0195){const _0x4b9e7e=a632_0x136366;return respondWithRpcPromise('Outbound',_0x38af10[_0x4b9e7e(0x149)])['then'](respondWithResult(_0x1f0195,null))[_0x4b9e7e(0x17a)](handleError(_0x1f0195,null));},exports['outboundChannels']=function(_0x4c4810,_0x2452ca){const _0x4a3cc4=a632_0x136366;return respondWithRpcPromise(_0x4a3cc4(0x133),_0x4c4810['query'])[_0x4a3cc4(0x141)](respondWithResult(_0x2452ca,null))[_0x4a3cc4(0x17a)](handleError(_0x2452ca,null));},exports[a632_0x136366(0x123)]=function(_0x10168b,_0x1be476){const _0x33e1d0=a632_0x136366;let _0x1a4310;return respondWithRpcPromise('Agents',_0x10168b[_0x33e1d0(0x149)])[_0x33e1d0(0x141)](function(_0x31dac7){return _0x1a4310=_0x31dac7,respondWithRpcPromise('Agents',_0x10168b['query'],routingClient);})['then'](function(_0x3d81b4){return _['merge']({},_0x3d81b4,_0x1a4310);})[_0x33e1d0(0x141)](respondWithResult(_0x1be476,null))['catch'](handleError(_0x1be476,null));},exports[a632_0x136366(0x144)]=function(_0x2d20f2,_0x16bed2){const _0x24131b=a632_0x136366;if(_0x2d20f2['body']&&_0x2d20f2[_0x24131b(0x12d)]['interaction']&&_0x2d20f2['user']&&_0x2d20f2['user'][_0x24131b(0x154)])for(const _0x39564c in _0x2d20f2[_0x24131b(0x12d)][_0x24131b(0x170)]){if(typeof _0x2d20f2[_0x24131b(0x12d)][_0x24131b(0x170)][_0x39564c]!==_0x24131b(0x132)){db[_0x24131b(0x180)][_0x24131b(0x160)]({'where':{'channel':_0x39564c,'membername':_0x2d20f2[_0x24131b(0x14b)][_0x24131b(0x154)],'type':_0x24131b(0x184),'exitAt':null,'uniqueid':_0x2d20f2[_0x24131b(0x12d)]['interaction'][_0x39564c]&&_0x2d20f2[_0x24131b(0x12d)]['interaction'][_0x39564c][_0x24131b(0x157)]?{[Op[_0x24131b(0x131)]]:_0x2d20f2[_0x24131b(0x12d)][_0x24131b(0x170)][_0x39564c]}:{[Op['ne']]:null}}})[_0x24131b(0x141)](function(_0x2c0159){const _0x4b6249=_0x24131b,_0x1d5e68=moment()[_0x4b6249(0x130)]('YYYY-MM-DD\x20HH:mm:ss');for(let _0x5514ea=0x0,_0x40d7b6=_0x2c0159[_0x4b6249(0x157)];_0x5514ea<_0x40d7b6;_0x5514ea+=0x1){_0x2c0159[_0x5514ea][_0x4b6249(0x14c)]({'exitAt':_0x1d5e68});}});for(let _0x3a26e1=0x0;_0x3a26e1<_0x2d20f2[_0x24131b(0x12d)][_0x24131b(0x170)][_0x39564c]['length'];_0x3a26e1+=0x1){db[_0x24131b(0x180)][_0x24131b(0x135)]({'where':{'channel':_0x39564c,'membername':_0x2d20f2[_0x24131b(0x14b)][_0x24131b(0x154)],'type':'INTERACTION','uniqueid':_0x2d20f2[_0x24131b(0x12d)][_0x24131b(0x170)][_0x39564c][_0x3a26e1],'exitAt':null},'defaults':{'channel':_0x39564c,'membername':_0x2d20f2[_0x24131b(0x14b)][_0x24131b(0x154)],'interface':_[_0x24131b(0x165)](_0x2d20f2[_0x24131b(0x14b)][_0x24131b(0x168)])?util['format'](_0x24131b(0x13b),_0x2d20f2[_0x24131b(0x14b)][_0x24131b(0x154)]):_0x2d20f2['user'][_0x24131b(0x168)],'type':_0x24131b(0x184),'enterAt':moment()[_0x24131b(0x130)](_0x24131b(0x185)),'role':_0x24131b(0x186),'internal':_0x2d20f2['user'][_0x24131b(0x17e)],'uniqueid':_0x2d20f2['body'][_0x24131b(0x170)][_0x39564c][_0x3a26e1]}});}}}return respondWithRpcPromise(_0x24131b(0x13f),{'id':_0x2d20f2[_0x24131b(0x164)]['id'],'capacity':_0x2d20f2['body'][_0x24131b(0x153)]},routingClient)[_0x24131b(0x141)](respondWithResult(_0x16bed2,null))[_0x24131b(0x17a)](handleError(_0x16bed2,null));},exports[a632_0x136366(0x156)]=function(_0x39e88b,_0x3e114c){const _0x87bd66=a632_0x136366;return respondWithRpcPromise(_0x87bd66(0x182),_0x39e88b['query'])['then'](respondWithResult(_0x3e114c,null))['catch'](handleError(_0x3e114c,null));},exports[a632_0x136366(0x183)]=function(_0x5b68a9,_0x278dfc){const _0x32f3a4=a632_0x136366;return respondWithRpcPromise(_0x32f3a4(0x195),_0x5b68a9[_0x32f3a4(0x149)])[_0x32f3a4(0x141)](respondWithResult(_0x278dfc,null))['catch'](handleError(_0x278dfc,null));},exports[a632_0x136366(0x176)]=function(_0x1c827e,_0x10d331){const _0x1f9fd1=a632_0x136366;return respondWithRpcPromise('Campaigns',_0x1c827e['query'])[_0x1f9fd1(0x141)](respondWithResult(_0x10d331,null))[_0x1f9fd1(0x17a)](handleError(_0x10d331,null));},exports[a632_0x136366(0x152)]=function(_0x5972f8,_0x4e4be5){const _0x4187fc=a632_0x136366;return respondWithRpcPromise(_0x4187fc(0x13e),_0x5972f8[_0x4187fc(0x149)],routingClient)[_0x4187fc(0x141)](respondWithResult(_0x4e4be5,null))[_0x4187fc(0x17a)](handleError(_0x4e4be5,null));},exports[a632_0x136366(0x12e)]=function(_0x36da8a,_0x2f1472){const _0x4390d5=a632_0x136366;return respondWithRpcPromise('ChatQueues',_0x36da8a['query'],routingClient)['then'](findById(_0x36da8a[_0x4390d5(0x164)]['id']))[_0x4390d5(0x141)](respondWithResult(_0x2f1472,null))[_0x4390d5(0x17a)](handleError(_0x2f1472,null));},exports[a632_0x136366(0x12f)]=function(_0x568e52,_0xbe0a0a){const _0x3d4bb9=a632_0x136366;return respondWithRpcPromise(_0x3d4bb9(0x148),_0x568e52[_0x3d4bb9(0x149)],routingClient)['then'](respondWithResult(_0xbe0a0a,null))[_0x3d4bb9(0x17a)](handleError(_0xbe0a0a,null));},exports['showMailQueues']=function(_0x27b864,_0x357270){const _0x38da52=a632_0x136366;return respondWithRpcPromise('MailQueues',_0x27b864[_0x38da52(0x149)],routingClient)[_0x38da52(0x141)](findById(_0x27b864[_0x38da52(0x164)]['id']))[_0x38da52(0x141)](respondWithResult(_0x357270,null))[_0x38da52(0x17a)](handleError(_0x357270,null));},exports[a632_0x136366(0x16a)]=function(_0x21a6a8,_0x46a61a){const _0x8e6dee=a632_0x136366;return respondWithRpcPromise('MailAccounts',_0x21a6a8[_0x8e6dee(0x149)],mailClient)[_0x8e6dee(0x141)](respondWithResult(_0x46a61a,null))[_0x8e6dee(0x17a)](handleError(_0x46a61a,null));},exports[a632_0x136366(0x13c)]=function(_0x273903,_0x318844){const _0x4c3491=a632_0x136366;return respondWithRpcPromise(_0x4c3491(0x151),_0x273903['query'],routingClient)[_0x4c3491(0x141)](respondWithResult(_0x318844,null))[_0x4c3491(0x17a)](handleError(_0x318844,null));},exports[a632_0x136366(0x14d)]=function(_0x4b9cb0,_0x556328){const _0x2744b8=a632_0x136366;return respondWithRpcPromise(_0x2744b8(0x151),_0x4b9cb0['query'],routingClient)[_0x2744b8(0x141)](findById(_0x4b9cb0[_0x2744b8(0x164)]['id']))[_0x2744b8(0x141)](respondWithResult(_0x556328,null))[_0x2744b8(0x17a)](handleError(_0x556328,null));},exports[a632_0x136366(0x134)]=function(_0x4513c8,_0x46f63c){const _0x5c5736=a632_0x136366;return respondWithRpcPromise('SmsQueues',_0x4513c8[_0x5c5736(0x149)],routingClient)[_0x5c5736(0x141)](respondWithResult(_0x46f63c,null))[_0x5c5736(0x17a)](handleError(_0x46f63c,null));},exports[a632_0x136366(0x18e)]=function(_0x489a5a,_0x6e5f0e){const _0x3de8b6=a632_0x136366;return respondWithRpcPromise('SmsQueues',_0x489a5a[_0x3de8b6(0x149)],routingClient)['then'](findById(_0x489a5a[_0x3de8b6(0x164)]['id']))[_0x3de8b6(0x141)](respondWithResult(_0x6e5f0e,null))[_0x3de8b6(0x17a)](handleError(_0x6e5f0e,null));},exports[a632_0x136366(0x13a)]=function(_0x29c6c6,_0x5de333){const _0x317c30=a632_0x136366;return respondWithRpcPromise(_0x317c30(0x193),_0x29c6c6['query'],routingClient)['then'](respondWithResult(_0x5de333,null))[_0x317c30(0x17a)](handleError(_0x5de333,null));},exports[a632_0x136366(0x18b)]=function(_0x392ac6,_0x51d88c){const _0x43b5d1=a632_0x136366;return respondWithRpcPromise(_0x43b5d1(0x193),_0x392ac6[_0x43b5d1(0x149)],routingClient)[_0x43b5d1(0x141)](findById(_0x392ac6['params']['id']))[_0x43b5d1(0x141)](respondWithResult(_0x51d88c,null))[_0x43b5d1(0x17a)](handleError(_0x51d88c,null));},exports[a632_0x136366(0x190)]=function(_0x4ac412,_0x482058){const _0x2a9ff2=a632_0x136366;return respondWithRpcPromise('FaxQueues',_0x4ac412[_0x2a9ff2(0x149)],routingClient)[_0x2a9ff2(0x141)](respondWithResult(_0x482058,null))[_0x2a9ff2(0x17a)](handleError(_0x482058,null));},exports[a632_0x136366(0x158)]=function(_0x21016b,_0xfaa175){const _0x1667d0=a632_0x136366;return respondWithRpcPromise(_0x1667d0(0x15a),_0x21016b[_0x1667d0(0x149)],routingClient)[_0x1667d0(0x141)](findById(_0x21016b[_0x1667d0(0x164)]['id']))[_0x1667d0(0x141)](respondWithResult(_0xfaa175,null))[_0x1667d0(0x17a)](handleError(_0xfaa175,null));},exports[a632_0x136366(0x189)]=function(_0x3cca22,_0x407be4){const _0x4fe367=a632_0x136366;return respondWithRpcPromise(_0x4fe367(0x137),_0x3cca22[_0x4fe367(0x149)])[_0x4fe367(0x141)](respondWithResult(_0x407be4,null))['catch'](handleError(_0x407be4,null));},exports[a632_0x136366(0x173)]=function(_0x5338e3,_0x249682){const _0x54c044=a632_0x136366;return respondWithRpcPromise(_0x54c044(0x126),_0x5338e3[_0x54c044(0x149)],routingClient)[_0x54c044(0x141)](respondWithResult(_0x249682,null))[_0x54c044(0x17a)](handleError(_0x249682,null));},exports[a632_0x136366(0x163)]=function(_0x2e1135,_0x44e65a){const _0x3aa41a=a632_0x136366;return respondWithRpcPromise(_0x3aa41a(0x14f),_0x2e1135[_0x3aa41a(0x149)],routingClient)[_0x3aa41a(0x141)](respondWithResult(_0x44e65a,null))[_0x3aa41a(0x17a)](handleError(_0x44e65a,null));},exports[a632_0x136366(0x179)]=function(_0xd44258,_0x5e7053){const _0x74b433=a632_0x136366;return respondWithRpcPromise('OpenchannelQueuesWaitingInteractions',_0xd44258['query'],routingClient)[_0x74b433(0x141)](respondWithResult(_0x5e7053,null))[_0x74b433(0x17a)](handleError(_0x5e7053,null));},exports[a632_0x136366(0x145)]=function(_0x26ffa9,_0x2f3db3){const _0x1e8327=a632_0x136366;return respondWithRpcPromise(_0x1e8327(0x142),_0x26ffa9[_0x1e8327(0x149)],routingClient)[_0x1e8327(0x141)](function(_0x2b7098){const _0x4f4834=_0x1e8327;if(_0x26ffa9[_0x4f4834(0x149)][_0x4f4834(0x17d)]!==undefined){const _0x8d0fc5=_(_0x2b7098[_0x4f4834(0x12c)])[_0x4f4834(0x178)]([_0x26ffa9['query'][_0x4f4834(0x17d)],_0x26ffa9[_0x4f4834(0x164)]['id']])['map'](_0x4f4834(0x17c))[_0x4f4834(0x187)]()[_0x4f4834(0x166)]();return _0x2b7098[_0x4f4834(0x12c)][_0x4f4834(0x178)](function(_0x5b4f24){return _0x8d0fc5['indexOf'](_0x5b4f24['queue_id'])>-0x1;});}else return _0x2b7098[_0x4f4834(0x12c)][_0x4f4834(0x178)](function(_0x430e17){const _0x28e14c=_0x4f4834;return _0x430e17[_0x28e14c(0x17c)]===parseInt(_0x26ffa9['params']['id']);});})[_0x1e8327(0x141)](respondWithResult(_0x2f3db3,null))[_0x1e8327(0x17a)](handleError(_0x2f3db3,null));},exports[a632_0x136366(0x15d)]=function(_0x3693dd,_0x41e1a8){const _0x2004db=a632_0x136366;return respondWithRpcPromise(_0x2004db(0x17b),_0x3693dd['query'],routingClient)['then'](respondWithResult(_0x41e1a8,null))[_0x2004db(0x17a)](handleError(_0x41e1a8,null));},exports[a632_0x136366(0x198)]=function(_0x5d017f,_0x1afb7a){const _0x501c04=a632_0x136366;return respondWithRpcPromise(_0x501c04(0x136),_0x5d017f[_0x501c04(0x149)],routingClient)[_0x501c04(0x141)](respondWithResult(_0x1afb7a,null))[_0x501c04(0x17a)](handleError(_0x1afb7a,null));},exports[a632_0x136366(0x171)]=function(_0x2523ec,_0x46fcda){const _0x522093=a632_0x136366;return respondWithRpcPromise(_0x522093(0x12b),_0x2523ec['query'],routingClient)['then'](respondWithResult(_0x46fcda,null))[_0x522093(0x17a)](handleError(_0x46fcda,null));},exports[a632_0x136366(0x138)]=function(_0x527d8b){return function(_0x20c090,_0x36f85e){const _0x221f60=a632_0x1571;let _0x4dfcb9,_0x169760;const _0xa7520=_[_0x221f60(0x172)](_0x527d8b),_0x2154aa=_0x527d8b===_0x221f60(0x188)?_0x221f60(0x159):_0x221f60(0x120);return db[_0xa7520+_0x221f60(0x196)][_0x221f60(0x122)]({'raw':!![],'where':{'id':_0x20c090[_0x221f60(0x164)]['id']}})[_0x221f60(0x141)](function(_0x1a529b){const _0x1a244b=_0x221f60;if(_[_0x1a244b(0x165)](_0x1a529b))throw new Error(_0xa7520+'\x20Queue\x20not\x20found');return _0x4dfcb9=_0x1a529b,db[_0xa7520+_0x1a244b(0x161)][_0x1a244b(0x122)]({'where':{'id':_0x20c090[_0x1a244b(0x12d)][_0x1a244b(0x139)]},'include':[{'model':db[_0xa7520+_0x1a244b(0x15b)],'as':'Interaction'},{'model':db[_0xa7520+_0x2154aa],'as':_0x1a244b(0x120)}]});})[_0x221f60(0x141)](function(_0x553be7){const _0x4408bf=_0x221f60;if(_[_0x4408bf(0x165)](_0x553be7))throw new Error(_0xa7520+_0x4408bf(0x175));return _0x169760=_0x553be7,_0x553be7[_0x4408bf(0x14c)]({'read':0x0,'readAt':null,'UserId':null});})[_0x221f60(0x141)](function(){const _0x5a2708=_0x221f60,_0x52ab31={'uniqueid':_0x527d8b+'.'+_0x169760['id']+'.'+_0x169760[_0x5a2708(0x15b)]['id'],'FromUserId':_0x20c090['user']['id'],'type':_0x5a2708(0x194)};return _0x52ab31[_0xa7520+_0x5a2708(0x155)]=_0x169760['id'],_0x52ab31[_0xa7520+'InteractionId']=_0x169760['Interaction']['id'],_0x52ab31[_0x5a2708(0x167)+_0xa7520+_0x2154aa+'Id']=_0x169760[_0x5a2708(0x120)]['id'],_0x52ab31['To'+_0xa7520+_0x5a2708(0x191)]=_0x4dfcb9['id'],db[_0xa7520+'TransferReport'][_0x5a2708(0x16d)](_0x52ab31);})[_0x221f60(0x141)](function(){const _0x4a08d5=_0x221f60;return respondWithRpcPromise('Start',{'channel':_0x527d8b,'interaction':_0x169760[_0x4a08d5(0x15b)],'message':_0x169760,'account':_0x169760['Account'],'applications':[{'id':0x0,'priority':0x1,'app':_0x4a08d5(0x194),'appdata':_0x4dfcb9['name']+','+(_0x169760[_0x4a08d5(0x120)][_0x4a08d5(0x181)]||0x12c),'interval':_0x4a08d5(0x18a)}]},routingClient);})['then'](respondWithResult(_0x36f85e,null))[_0x221f60(0x17a)](handleError(_0x36f85e,null));};},exports[a632_0x136366(0x177)]=function(_0x476d9d,_0x587969){const _0x469131=a632_0x136366;let _0x3f7296,_0x2568cb;if(_[_0x469131(0x165)](_0x476d9d[_0x469131(0x12d)][_0x469131(0x11f)]))throw new Error(_0x469131(0x16f));const _0x3cd04a=_0x476d9d[_0x469131(0x12d)][_0x469131(0x11f)],_0x55edc7=_[_0x469131(0x172)](_0x3cd04a),_0x49620e=_0x3cd04a===_0x469131(0x188)?_0x469131(0x159):'Account';return db[_0x469131(0x150)][_0x469131(0x122)]({'raw':!![],'where':{'id':_0x476d9d[_0x469131(0x164)]['id'],'role':'agent'}})[_0x469131(0x141)](function(_0x232ebf){const _0x38ed33=_0x469131;if(_[_0x38ed33(0x165)](_0x232ebf))throw new Error(_0x38ed33(0x12a));return _0x3f7296=_0x232ebf,db[_0x55edc7+_0x38ed33(0x161)][_0x38ed33(0x122)]({'where':{'id':_0x476d9d[_0x38ed33(0x12d)]['messageId']},'include':[{'model':db[_0x55edc7+_0x38ed33(0x15b)],'as':'Interaction'},{'model':db[_0x55edc7+_0x49620e],'as':_0x38ed33(0x120)}]});})[_0x469131(0x141)](function(_0x5b6044){const _0x176cbd=_0x469131;if(_[_0x176cbd(0x165)](_0x5b6044))throw new Error(_0x55edc7+_0x176cbd(0x175));return _0x2568cb=_0x5b6044,_0x5b6044[_0x176cbd(0x14c)]({'read':0x0,'readAt':null,'UserId':null});})[_0x469131(0x141)](function(){const _0xb9651d=_0x469131,_0x2cfbc0={'uniqueid':_0x3cd04a+'.'+_0x2568cb['id']+'.'+_0x2568cb[_0xb9651d(0x15b)]['id'],'FromUserId':_0x476d9d[_0xb9651d(0x14b)]['id'],'type':'queue','ToUserId':_0x3f7296['id']};return _0x2cfbc0[_0x55edc7+_0xb9651d(0x155)]=_0x2568cb['id'],_0x2cfbc0[_0x55edc7+_0xb9651d(0x146)]=_0x2568cb[_0xb9651d(0x15b)]['id'],_0x2cfbc0[_0xb9651d(0x167)+_0x55edc7+_0x49620e+'Id']=_0x2568cb[_0xb9651d(0x120)]['id'],db[_0x55edc7+'TransferReport'][_0xb9651d(0x16d)](_0x2cfbc0);})[_0x469131(0x141)](function(){const _0x5b0a2b=_0x469131;return respondWithRpcPromise('Start',{'channel':_0x3cd04a,'interaction':_0x2568cb[_0x5b0a2b(0x15b)],'message':_0x2568cb,'account':_0x2568cb[_0x5b0a2b(0x120)],'applications':[{'id':0x0,'priority':0x1,'app':_0x5b0a2b(0x186),'appdata':_0x3f7296[_0x5b0a2b(0x154)]+','+(_0x2568cb[_0x5b0a2b(0x120)][_0x5b0a2b(0x14e)]||0x12c),'interval':_0x5b0a2b(0x18a)}]},routingClient);})[_0x469131(0x141)](respondWithResult(_0x587969,null))[_0x469131(0x17a)](handleError(_0x587969,null));}; \ No newline at end of file diff --git a/server/api/schedule/index.js b/server/api/schedule/index.js index 35941e3..c31bc56 100644 --- a/server/api/schedule/index.js +++ b/server/api/schedule/index.js @@ -1 +1 @@ -const a633_0x52b2=['/:id/run','/:id','../../components/auth/service','isAuthenticated','get','run','put','express','update','exports','Router','show','delete','create'];(function(_0x4e0cc1,_0x4b7465){const _0x52b263=function(_0x53dfe7){while(--_0x53dfe7){_0x4e0cc1['push'](_0x4e0cc1['shift']());}};_0x52b263(++_0x4b7465);}(a633_0x52b2,0x121));const a633_0x53df=function(_0x4e0cc1,_0x4b7465){_0x4e0cc1=_0x4e0cc1-0x1b6;let _0x52b263=a633_0x52b2[_0x4e0cc1];return _0x52b263;};const a633_0x110b59=a633_0x53df;'use strict';const express=require(a633_0x110b59(0x1c2)),router=express[a633_0x110b59(0x1b7)](),auth=require(a633_0x110b59(0x1bd)),controller=require('./schedule.controller');router[a633_0x110b59(0x1bf)]('/',auth[a633_0x110b59(0x1be)](),controller['index']),router['get']('/:id',auth[a633_0x110b59(0x1be)](),controller[a633_0x110b59(0x1b8)]),router[a633_0x110b59(0x1bf)](a633_0x110b59(0x1bb),auth[a633_0x110b59(0x1be)](),controller[a633_0x110b59(0x1c0)]),router['post']('/',auth[a633_0x110b59(0x1be)](),controller[a633_0x110b59(0x1ba)]),router[a633_0x110b59(0x1c1)](a633_0x110b59(0x1bc),auth['isAuthenticated'](),controller[a633_0x110b59(0x1c3)]),router[a633_0x110b59(0x1b9)](a633_0x110b59(0x1bc),auth[a633_0x110b59(0x1be)](),controller['destroy']),module[a633_0x110b59(0x1b6)]=router; \ No newline at end of file +const a633_0x4614=['delete','put','show','destroy','isAuthenticated','index','create','exports','./schedule.controller','Router','post','/:id','update','run','get','express'];(function(_0x27c0ac,_0x274f7e){const _0x46148d=function(_0x3e5655){while(--_0x3e5655){_0x27c0ac['push'](_0x27c0ac['shift']());}};_0x46148d(++_0x274f7e);}(a633_0x4614,0x6e));const a633_0x3e56=function(_0x27c0ac,_0x274f7e){_0x27c0ac=_0x27c0ac-0x151;let _0x46148d=a633_0x4614[_0x27c0ac];return _0x46148d;};const a633_0xc90634=a633_0x3e56;'use strict';const express=require(a633_0xc90634(0x152)),router=express[a633_0xc90634(0x15c)](),auth=require('../../components/auth/service'),controller=require(a633_0xc90634(0x15b));router[a633_0xc90634(0x151)]('/',auth[a633_0xc90634(0x157)](),controller[a633_0xc90634(0x158)]),router[a633_0xc90634(0x151)](a633_0xc90634(0x15e),auth[a633_0xc90634(0x157)](),controller[a633_0xc90634(0x155)]),router[a633_0xc90634(0x151)]('/:id/run',auth[a633_0xc90634(0x157)](),controller[a633_0xc90634(0x160)]),router[a633_0xc90634(0x15d)]('/',auth[a633_0xc90634(0x157)](),controller[a633_0xc90634(0x159)]),router[a633_0xc90634(0x154)](a633_0xc90634(0x15e),auth[a633_0xc90634(0x157)](),controller[a633_0xc90634(0x15f)]),router[a633_0xc90634(0x153)](a633_0xc90634(0x15e),auth['isAuthenticated'](),controller[a633_0xc90634(0x156)]),module[a633_0xc90634(0x15a)]=router; \ No newline at end of file diff --git a/server/api/schedule/schedule.attributes.js b/server/api/schedule/schedule.attributes.js index b5af718..cf3cc39 100644 --- a/server/api/schedule/schedule.attributes.js +++ b/server/api/schedule/schedule.attributes.js @@ -1 +1 @@ -const a634_0x21c0=['years','custom','quarters','weeks','0\x200\x20*\x20*\x20*','minutes','days','csv','TEXT','exports','STRING','INTEGER','BOOLEAN','months','default','ENUM','DATE','xlsx'];(function(_0x1b1956,_0x3d6abb){const _0x21c0d6=function(_0x5dd1b4){while(--_0x5dd1b4){_0x1b1956['push'](_0x1b1956['shift']());}};_0x21c0d6(++_0x3d6abb);}(a634_0x21c0,0x8a));const a634_0x5dd1=function(_0x1b1956,_0x3d6abb){_0x1b1956=_0x1b1956-0xe4;let _0x21c0d6=a634_0x21c0[_0x1b1956];return _0x21c0d6;};const a634_0xba07aa=a634_0x5dd1;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a634_0xba07aa(0xf4)],'allowNull':![]},'description':{'type':DataTypes[a634_0xba07aa(0xf4)]},'active':{'type':DataTypes['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':DataTypes[a634_0xba07aa(0xf4)],'allowNull':![],'defaultValue':a634_0xba07aa(0xee)},'startAt':{'type':DataTypes[a634_0xba07aa(0xe8)],'allowNull':![]},'endAt':{'type':DataTypes[a634_0xba07aa(0xe8)],'allowNull':![]},'subtractNumber':{'type':DataTypes[a634_0xba07aa(0xf5)],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':DataTypes[a634_0xba07aa(0xe7)](a634_0xba07aa(0xea),a634_0xba07aa(0xec),a634_0xba07aa(0xe5),a634_0xba07aa(0xed),a634_0xba07aa(0xf0),'hours',a634_0xba07aa(0xef)),'allowNull':![],'defaultValue':a634_0xba07aa(0xf0)},'output':{'type':DataTypes[a634_0xba07aa(0xe7)](a634_0xba07aa(0xf1),'pdf',a634_0xba07aa(0xe9)),'allowNull':![],'defaultValue':a634_0xba07aa(0xf1)},'type':{'type':DataTypes[a634_0xba07aa(0xe7)](a634_0xba07aa(0xeb),a634_0xba07aa(0xe6)),'allowNull':![],'defaultValue':a634_0xba07aa(0xeb)},'sendMail':{'type':DataTypes[a634_0xba07aa(0xe4)],'defaultValue':![]},'email':{'type':DataTypes[a634_0xba07aa(0xf4)]},'cc':{'type':DataTypes[a634_0xba07aa(0xf2)]},'bcc':{'type':DataTypes['TEXT']},'sendIfEmpty':{'type':DataTypes[a634_0xba07aa(0xe4)],'defaultValue':!![]}};module[a634_0xba07aa(0xf3)]['attributes']=attributes; \ No newline at end of file +const a634_0x41c8=['ENUM','custom','exports','TEXT','STRING','attributes','default','csv','xlsx','DATE','pdf','hours','BOOLEAN','sequelize','months','days'];(function(_0x76272e,_0x345526){const _0x41c89c=function(_0x5eaff9){while(--_0x5eaff9){_0x76272e['push'](_0x76272e['shift']());}};_0x41c89c(++_0x345526);}(a634_0x41c8,0x99));const a634_0x5eaf=function(_0x76272e,_0x345526){_0x76272e=_0x76272e-0x1f3;let _0x41c89c=a634_0x41c8[_0x76272e];return _0x41c89c;};const a634_0x53d5e0=a634_0x5eaf;'use strict';const {DataTypes}=require(a634_0x53d5e0(0x1f7)),attributes={'name':{'type':DataTypes[a634_0x53d5e0(0x1fe)],'allowNull':![]},'description':{'type':DataTypes['STRING']},'active':{'type':DataTypes[a634_0x53d5e0(0x1f6)],'allowNull':![],'defaultValue':![]},'cron':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':DataTypes[a634_0x53d5e0(0x1f3)],'allowNull':![]},'endAt':{'type':DataTypes[a634_0x53d5e0(0x1f3)],'allowNull':![]},'subtractNumber':{'type':DataTypes['INTEGER'],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':DataTypes['ENUM']('years','quarters',a634_0x53d5e0(0x1f8),'weeks','days',a634_0x53d5e0(0x1f5),'minutes'),'allowNull':![],'defaultValue':a634_0x53d5e0(0x1f9)},'output':{'type':DataTypes[a634_0x53d5e0(0x1fa)](a634_0x53d5e0(0x201),a634_0x53d5e0(0x1f4),a634_0x53d5e0(0x202)),'allowNull':![],'defaultValue':a634_0x53d5e0(0x201)},'type':{'type':DataTypes[a634_0x53d5e0(0x1fa)](a634_0x53d5e0(0x1fb),a634_0x53d5e0(0x200)),'allowNull':![],'defaultValue':a634_0x53d5e0(0x1fb)},'sendMail':{'type':DataTypes[a634_0x53d5e0(0x1f6)],'defaultValue':![]},'email':{'type':DataTypes['STRING']},'cc':{'type':DataTypes[a634_0x53d5e0(0x1fd)]},'bcc':{'type':DataTypes[a634_0x53d5e0(0x1fd)]},'sendIfEmpty':{'type':DataTypes[a634_0x53d5e0(0x1f6)],'defaultValue':!![]}};module[a634_0x53d5e0(0x1fc)][a634_0x53d5e0(0x1ff)]=attributes; \ No newline at end of file diff --git a/server/api/schedule/schedule.controller.js b/server/api/schedule/schedule.controller.js index 35660a6..cdf9789 100644 --- a/server/api/schedule/schedule.controller.js +++ b/server/api/schedule/schedule.controller.js @@ -1 +1 @@ -const a635_0xb41e=['user','attributes','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','error','Unable\x20to\x20retrieve\x20the\x20current\x20user','body','undefined','key','api','count','options','lodash','create','filters','index','type','includeAll','intersection','end','length','params','name','merge','sort','pick','../../mysqldb','userProfileId','update','map','autoAssociation','destroy','run','order','catch','fieldName','send','findAll','json','keys','sequelize','rawAttributes','model','fields','../../config/schedule','offset','like','UserProfileResource','query','then','get','where','../../config/logger','Schedule','limit','include','Scheduler','nolimit','filter','stack','UserProfileSection','status','findOne'];(function(_0xc02b44,_0x7c97b){const _0xb41e1d=function(_0xed9907){while(--_0xed9907){_0xc02b44['push'](_0xc02b44['shift']());}};_0xb41e1d(++_0x7c97b);}(a635_0xb41e,0x17c));const a635_0xed99=function(_0xc02b44,_0x7c97b){_0xc02b44=_0xc02b44-0x112;let _0xb41e1d=a635_0xb41e[_0xc02b44];return _0xb41e1d;};const a635_0x1d71b1=a635_0xed99;'use strict';const _=require(a635_0x1d71b1(0x115)),qs=require('../../components/parsers/qs'),logger=require(a635_0x1d71b1(0x13d))(a635_0x1d71b1(0x112)),{db}=require(a635_0x1d71b1(0x123)),{Op}=require(a635_0x1d71b1(0x131));function respondWithStatusCode(_0xc8a745,_0x387de9){return _0x387de9=_0x387de9||0xcc,function(_0x486155){const _0x5ae986=a635_0xed99;if(_0x486155)return _0xc8a745['sendStatus'](_0x387de9);return _0xc8a745[_0x5ae986(0x146)](_0x387de9)[_0x5ae986(0x11c)]();};}function respondWithResult(_0x27aa0d,_0x51f401){return _0x51f401=_0x51f401||0xc8,function(_0x33a4f4){const _0x4cddec=a635_0xed99;if(_0x33a4f4)return _0x27aa0d[_0x4cddec(0x146)](_0x51f401)[_0x4cddec(0x12f)](_0x33a4f4);};}function respondWithFilteredResult(_0x51f478,_0x4ef9c5){return function(_0x10a44f){const _0x51e5b0=a635_0xed99;if(_0x10a44f){const _0x30c320=_0x10a44f[_0x51e5b0(0x113)],_0x5ce4ea=_0x4ef9c5[_0x51e5b0(0x136)];let _0x252ea2=_0x4ef9c5[_0x51e5b0(0x136)]+_0x4ef9c5['limit'],_0x25e1a2;return _0x252ea2>=_0x30c320?(_0x252ea2=_0x30c320,_0x25e1a2=0xc8):_0x25e1a2=0xce,_0x51f478[_0x51e5b0(0x146)](_0x25e1a2),_0x51f478['set']('Content-Range',_0x5ce4ea+'-'+_0x252ea2+'/'+_0x30c320)['json'](_0x10a44f);}return null;};}function saveUpdates(_0x3067fc){return function(_0x26af8d){const _0x5407d5=a635_0xed99;if(_0x26af8d)return _0x26af8d[_0x5407d5(0x125)](_0x3067fc)['then'](function(_0x59d3fa){return _0x59d3fa;});return null;};}function removeEntity(_0x116a3f){return function(_0x51d565){const _0x516b26=a635_0xed99;if(_0x51d565)return _0x51d565[_0x516b26(0x128)]()['then'](function(){const _0x14f841=_0x516b26,_0x3c5515=_0x51d565[_0x14f841(0x13b)]({'plain':!![]}),_0x478c3b='Scheduler';return db[_0x14f841(0x138)]['destroy']({'where':{'type':_0x478c3b,'resourceId':_0x3c5515['id']}})[_0x14f841(0x13a)](function(){return _0x51d565;});})[_0x516b26(0x13a)](function(){const _0x8fff82=_0x516b26;_0x116a3f[_0x8fff82(0x146)](0xcc)[_0x8fff82(0x11c)]();});};}function handleEntityNotFound(_0x4ea2d0){return function(_0x57b9ff){return!_0x57b9ff&&_0x4ea2d0['sendStatus'](0x194),_0x57b9ff;};}function handleError(_0x528da4,_0x27a2a1){return _0x27a2a1=_0x27a2a1||0x1f4,function(_0x5d581f){const _0x2b2098=a635_0xed99;logger[_0x2b2098(0x14b)](_0x5d581f[_0x2b2098(0x144)]),_0x5d581f['name']&&delete _0x5d581f[_0x2b2098(0x11f)],_0x528da4['status'](_0x27a2a1)[_0x2b2098(0x12d)](_0x5d581f);};}exports[a635_0x1d71b1(0x118)]=function(_0x5a7011,_0x36e41d){const _0x30cdc1=a635_0x1d71b1;let _0x523217={};const _0x5aa553={},_0x4d855f={'count':0x0,'rows':[]},_0x4ead28=_[_0x30cdc1(0x126)](db['Schedule'][_0x30cdc1(0x132)],function(_0x48b180){const _0x5a95dd=_0x30cdc1;return{'name':_0x48b180[_0x5a95dd(0x12c)],'type':_0x48b180[_0x5a95dd(0x119)][_0x5a95dd(0x14f)]};});_0x5aa553[_0x30cdc1(0x133)]=_['map'](_0x4ead28,_0x30cdc1(0x11f)),_0x5aa553[_0x30cdc1(0x139)]=_['keys'](_0x5a7011[_0x30cdc1(0x139)]),_0x5aa553[_0x30cdc1(0x117)]=_[_0x30cdc1(0x11b)](_0x5aa553[_0x30cdc1(0x133)],_0x5aa553['query']),_0x523217[_0x30cdc1(0x149)]=_[_0x30cdc1(0x11b)](_0x5aa553['model'],qs['fields'](_0x5a7011[_0x30cdc1(0x139)][_0x30cdc1(0x134)])),_0x523217[_0x30cdc1(0x149)]=_0x523217[_0x30cdc1(0x149)][_0x30cdc1(0x11d)]?_0x523217[_0x30cdc1(0x149)]:_0x5aa553[_0x30cdc1(0x133)];typeof _0x5a7011[_0x30cdc1(0x139)][_0x30cdc1(0x142)]===_0x30cdc1(0x14e)&&(_0x523217[_0x30cdc1(0x13f)]=qs[_0x30cdc1(0x13f)](_0x5a7011['query']['limit']),_0x523217[_0x30cdc1(0x136)]=qs[_0x30cdc1(0x136)](_0x5a7011[_0x30cdc1(0x139)][_0x30cdc1(0x136)]));_0x523217[_0x30cdc1(0x12a)]=qs[_0x30cdc1(0x121)](_0x5a7011[_0x30cdc1(0x139)][_0x30cdc1(0x121)]),_0x523217[_0x30cdc1(0x13c)]=qs[_0x30cdc1(0x117)](_[_0x30cdc1(0x122)](_0x5a7011['query'],_0x5aa553[_0x30cdc1(0x117)]),_0x4ead28);_0x5a7011[_0x30cdc1(0x139)][_0x30cdc1(0x143)]&&(_0x523217[_0x30cdc1(0x13c)]=_['merge'](_0x523217[_0x30cdc1(0x13c)],{[Op['or']]:_[_0x30cdc1(0x126)](_0x4ead28,function(_0x4bf567){const _0x40d62a=_0x30cdc1;if(_0x4bf567[_0x40d62a(0x119)]!=='VIRTUAL'){const _0x440df6={};return _0x440df6[_0x4bf567[_0x40d62a(0x11f)]]={[Op[_0x40d62a(0x137)]]:'%'+_0x5a7011[_0x40d62a(0x139)][_0x40d62a(0x143)]+'%'},_0x440df6;}})}));_0x523217=_[_0x30cdc1(0x120)]({},_0x523217,_0x5a7011[_0x30cdc1(0x114)]);const _0x3cbe12={'where':_0x523217['where']};return db['Schedule'][_0x30cdc1(0x113)](_0x3cbe12)[_0x30cdc1(0x13a)](function(_0x5ad399){const _0x2e0628=_0x30cdc1;return _0x4d855f['count']=_0x5ad399,_0x5a7011[_0x2e0628(0x139)][_0x2e0628(0x11a)]&&(_0x523217['include']=[{'all':!![]}]),db[_0x2e0628(0x13e)][_0x2e0628(0x12e)](_0x523217);})[_0x30cdc1(0x13a)](function(_0x235f0c){return _0x4d855f['rows']=_0x235f0c,_0x4d855f;})['then'](respondWithFilteredResult(_0x36e41d,_0x523217))['catch'](handleError(_0x36e41d,null));},exports['show']=function(_0x2c953e,_0x135a68){const _0xd7342a=a635_0x1d71b1;let _0x14fa8d={'raw':![],'where':{'id':_0x2c953e['params']['id']}};const _0x503e0e={};return _0x503e0e[_0xd7342a(0x133)]=_[_0xd7342a(0x130)](db[_0xd7342a(0x13e)][_0xd7342a(0x132)]),_0x503e0e[_0xd7342a(0x139)]=_[_0xd7342a(0x130)](_0x2c953e['query']),_0x503e0e[_0xd7342a(0x117)]=_[_0xd7342a(0x11b)](_0x503e0e[_0xd7342a(0x133)],_0x503e0e[_0xd7342a(0x139)]),_0x14fa8d[_0xd7342a(0x149)]=_[_0xd7342a(0x11b)](_0x503e0e[_0xd7342a(0x133)],qs[_0xd7342a(0x134)](_0x2c953e['query']['fields'])),_0x14fa8d[_0xd7342a(0x149)]=_0x14fa8d['attributes'][_0xd7342a(0x11d)]?_0x14fa8d[_0xd7342a(0x149)]:_0x503e0e[_0xd7342a(0x133)],_0x2c953e[_0xd7342a(0x139)][_0xd7342a(0x11a)]&&(_0x14fa8d[_0xd7342a(0x140)]=[{'all':!![]}]),_0x14fa8d=_[_0xd7342a(0x120)]({},_0x14fa8d,_0x2c953e[_0xd7342a(0x114)]),db[_0xd7342a(0x13e)][_0xd7342a(0x147)](_0x14fa8d)[_0xd7342a(0x13a)](handleEntityNotFound(_0x135a68,null))['then'](respondWithResult(_0x135a68,null))['catch'](handleError(_0x135a68,null));},exports[a635_0x1d71b1(0x116)]=function(_0x45e731,_0x477a2b){const _0x3a198c=a635_0x1d71b1;return db[_0x3a198c(0x13e)][_0x3a198c(0x116)](_0x45e731[_0x3a198c(0x14d)],{})['then'](function(_0x1ecb53){const _0x5eae76=_0x3a198c,_0x2fb785=_0x45e731[_0x5eae76(0x148)][_0x5eae76(0x13b)]({'plain':!![]});if(!_0x2fb785)throw new Error(_0x5eae76(0x14c));if(_0x2fb785['role']===_0x5eae76(0x148)){const _0x472bef=_0x1ecb53[_0x5eae76(0x13b)]({'plain':!![]}),_0x24fc31=_0x5eae76(0x141);return db[_0x5eae76(0x145)][_0x5eae76(0x147)]({'where':{'name':_0x24fc31,'userProfileId':_0x2fb785[_0x5eae76(0x124)]},'raw':!![]})[_0x5eae76(0x13a)](function(_0x59faa6){const _0x5753e4=_0x5eae76;return _0x59faa6&&_0x59faa6[_0x5753e4(0x127)]===0x0?db['UserProfileResource'][_0x5753e4(0x116)]({'name':_0x472bef[_0x5753e4(0x11f)],'resourceId':_0x472bef['id'],'type':_0x59faa6['name'],'sectionId':_0x59faa6['id']},{})[_0x5753e4(0x13a)](function(){return _0x1ecb53;}):_0x1ecb53;})[_0x5eae76(0x12b)](function(_0x27ec8f){const _0x4b66b2=_0x5eae76;logger['error'](_0x4b66b2(0x14a),_0x27ec8f);throw _0x27ec8f;});}return _0x1ecb53;})[_0x3a198c(0x13a)](respondWithResult(_0x477a2b,0xc9))[_0x3a198c(0x12b)](handleError(_0x477a2b,null));},exports[a635_0x1d71b1(0x125)]=function(_0x103394,_0x2acbcb){const _0x3c7c2e=a635_0x1d71b1;return _0x103394['body']['id']&&delete _0x103394[_0x3c7c2e(0x14d)]['id'],db['Schedule']['findOne']({'where':{'id':_0x103394[_0x3c7c2e(0x11e)]['id']}})[_0x3c7c2e(0x13a)](handleEntityNotFound(_0x2acbcb,null))[_0x3c7c2e(0x13a)](saveUpdates(_0x103394[_0x3c7c2e(0x14d)],null))['then'](respondWithResult(_0x2acbcb,null))[_0x3c7c2e(0x12b)](handleError(_0x2acbcb,null));},exports[a635_0x1d71b1(0x128)]=function(_0x264899,_0x2b446c){const _0x5336ca=a635_0x1d71b1;return db[_0x5336ca(0x13e)][_0x5336ca(0x147)]({'where':{'id':_0x264899[_0x5336ca(0x11e)]['id']}})[_0x5336ca(0x13a)](handleEntityNotFound(_0x2b446c,null))[_0x5336ca(0x13a)](removeEntity(_0x2b446c,null))[_0x5336ca(0x12b)](handleError(_0x2b446c,null));},exports[a635_0x1d71b1(0x129)]=function(_0x4dbc6f,_0xcc0aa1){const _0x3419a8=a635_0x1d71b1,_0x3293fb=require(_0x3419a8(0x135));return db['Schedule'][_0x3419a8(0x147)]({'where':{'id':_0x4dbc6f['params']['id']},'raw':!![]})[_0x3419a8(0x13a)](handleEntityNotFound(_0xcc0aa1,null))[_0x3419a8(0x13a)](function(){_0x3293fb['run'](_0x4dbc6f['params']['id']);})[_0x3419a8(0x13a)](respondWithStatusCode(_0xcc0aa1,null))['catch'](handleError(_0xcc0aa1,null));}; \ No newline at end of file +const a635_0x48c1=['body','params','json','../../components/parsers/qs','Scheduler','Schedule','VIRTUAL','user','type','sort','update','intersection','attributes','autoAssociation','model','then','status','sequelize','order','like','send','merge','includeAll','get','findAll','api','key','filters','nolimit','length','undefined','destroy','../../mysqldb','query','create','findOne','filter','map','run','catch','offset','end','count','rows','userProfileId','fields','limit','rawAttributes','../../config/schedule','include','keys','role','sendStatus','../../config/logger','name','index','where','stack','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s'];(function(_0x4a88f0,_0x4b8d6e){const _0x48c1be=function(_0x4990df){while(--_0x4990df){_0x4a88f0['push'](_0x4a88f0['shift']());}};_0x48c1be(++_0x4b8d6e);}(a635_0x48c1,0x185));const a635_0x4990=function(_0x4a88f0,_0x4b8d6e){_0x4a88f0=_0x4a88f0-0xc4;let _0x48c1be=a635_0x48c1[_0x4a88f0];return _0x48c1be;};const a635_0x12eb40=a635_0x4990;'use strict';const _=require('lodash'),qs=require(a635_0x12eb40(0xdf)),logger=require(a635_0x12eb40(0xd6))(a635_0x12eb40(0xf5)),{db}=require(a635_0x12eb40(0xfc)),{Op}=require(a635_0x12eb40(0xed));function respondWithStatusCode(_0x1c5505,_0xe85fe0){return _0xe85fe0=_0xe85fe0||0xcc,function(_0x43553c){const _0x4fa1e3=a635_0x4990;if(_0x43553c)return _0x1c5505[_0x4fa1e3(0xd5)](_0xe85fe0);return _0x1c5505['status'](_0xe85fe0)[_0x4fa1e3(0xca)]();};}function respondWithResult(_0x3ef3e9,_0x12c556){return _0x12c556=_0x12c556||0xc8,function(_0x6f1a88){const _0x204bae=a635_0x4990;if(_0x6f1a88)return _0x3ef3e9[_0x204bae(0xec)](_0x12c556)[_0x204bae(0xde)](_0x6f1a88);};}function respondWithFilteredResult(_0x4c4bf8,_0x5cec57){return function(_0x74303a){const _0x1e9b50=a635_0x4990;if(_0x74303a){const _0x4fd46b=_0x74303a['count'],_0x385fe0=_0x5cec57[_0x1e9b50(0xc9)];let _0xf0aba3=_0x5cec57[_0x1e9b50(0xc9)]+_0x5cec57['limit'],_0x3a262e;return _0xf0aba3>=_0x4fd46b?(_0xf0aba3=_0x4fd46b,_0x3a262e=0xc8):_0x3a262e=0xce,_0x4c4bf8[_0x1e9b50(0xec)](_0x3a262e),_0x4c4bf8['set']('Content-Range',_0x385fe0+'-'+_0xf0aba3+'/'+_0x4fd46b)[_0x1e9b50(0xde)](_0x74303a);}return null;};}function saveUpdates(_0x4e4387){return function(_0x5d5741){const _0x4e3d3b=a635_0x4990;if(_0x5d5741)return _0x5d5741[_0x4e3d3b(0xe6)](_0x4e4387)[_0x4e3d3b(0xeb)](function(_0x4e19f0){return _0x4e19f0;});return null;};}function removeEntity(_0x10870f){return function(_0x5f3534){const _0x5229d9=a635_0x4990;if(_0x5f3534)return _0x5f3534[_0x5229d9(0xfb)]()[_0x5229d9(0xeb)](function(){const _0xcb9d54=_0x5229d9,_0xce18ef=_0x5f3534[_0xcb9d54(0xf3)]({'plain':!![]}),_0x44342d='Scheduler';return db['UserProfileResource'][_0xcb9d54(0xfb)]({'where':{'type':_0x44342d,'resourceId':_0xce18ef['id']}})[_0xcb9d54(0xeb)](function(){return _0x5f3534;});})[_0x5229d9(0xeb)](function(){const _0x5f59f0=_0x5229d9;_0x10870f['status'](0xcc)[_0x5f59f0(0xca)]();});};}function handleEntityNotFound(_0x25bda1){return function(_0x2121b6){const _0x39d95f=a635_0x4990;return!_0x2121b6&&_0x25bda1[_0x39d95f(0xd5)](0x194),_0x2121b6;};}function handleError(_0x22d87d,_0x3af830){return _0x3af830=_0x3af830||0x1f4,function(_0x5e80db){const _0x5694ba=a635_0x4990;logger['error'](_0x5e80db[_0x5694ba(0xda)]),_0x5e80db[_0x5694ba(0xd7)]&&delete _0x5e80db['name'],_0x22d87d[_0x5694ba(0xec)](_0x3af830)[_0x5694ba(0xf0)](_0x5e80db);};}exports[a635_0x12eb40(0xd8)]=function(_0x5108b3,_0x380a80){const _0x480523=a635_0x12eb40;let _0x2cd524={};const _0x2af883={},_0x4e25ed={'count':0x0,'rows':[]},_0x1ad31b=_['map'](db[_0x480523(0xe1)][_0x480523(0xd0)],function(_0x4c5ce3){const _0x24de85=_0x480523;return{'name':_0x4c5ce3['fieldName'],'type':_0x4c5ce3[_0x24de85(0xe4)][_0x24de85(0xf6)]};});_0x2af883['model']=_['map'](_0x1ad31b,_0x480523(0xd7)),_0x2af883['query']=_[_0x480523(0xd3)](_0x5108b3[_0x480523(0xfd)]),_0x2af883[_0x480523(0xf7)]=_[_0x480523(0xe7)](_0x2af883[_0x480523(0xea)],_0x2af883[_0x480523(0xfd)]),_0x2cd524[_0x480523(0xe8)]=_[_0x480523(0xe7)](_0x2af883[_0x480523(0xea)],qs[_0x480523(0xce)](_0x5108b3[_0x480523(0xfd)]['fields'])),_0x2cd524['attributes']=_0x2cd524[_0x480523(0xe8)][_0x480523(0xf9)]?_0x2cd524[_0x480523(0xe8)]:_0x2af883[_0x480523(0xea)];typeof _0x5108b3[_0x480523(0xfd)][_0x480523(0xf8)]===_0x480523(0xfa)&&(_0x2cd524[_0x480523(0xcf)]=qs[_0x480523(0xcf)](_0x5108b3['query'][_0x480523(0xcf)]),_0x2cd524[_0x480523(0xc9)]=qs[_0x480523(0xc9)](_0x5108b3[_0x480523(0xfd)][_0x480523(0xc9)]));_0x2cd524[_0x480523(0xee)]=qs[_0x480523(0xe5)](_0x5108b3[_0x480523(0xfd)][_0x480523(0xe5)]),_0x2cd524[_0x480523(0xd9)]=qs[_0x480523(0xf7)](_['pick'](_0x5108b3[_0x480523(0xfd)],_0x2af883[_0x480523(0xf7)]),_0x1ad31b);_0x5108b3[_0x480523(0xfd)]['filter']&&(_0x2cd524['where']=_['merge'](_0x2cd524['where'],{[Op['or']]:_[_0x480523(0xc6)](_0x1ad31b,function(_0x4994eb){const _0x137def=_0x480523;if(_0x4994eb[_0x137def(0xe4)]!==_0x137def(0xe2)){const _0x1dd596={};return _0x1dd596[_0x4994eb['name']]={[Op[_0x137def(0xef)]]:'%'+_0x5108b3[_0x137def(0xfd)][_0x137def(0xc5)]+'%'},_0x1dd596;}})}));_0x2cd524=_['merge']({},_0x2cd524,_0x5108b3['options']);const _0x954173={'where':_0x2cd524[_0x480523(0xd9)]};return db[_0x480523(0xe1)]['count'](_0x954173)[_0x480523(0xeb)](function(_0x12404e){const _0x1ce3ee=_0x480523;return _0x4e25ed[_0x1ce3ee(0xcb)]=_0x12404e,_0x5108b3[_0x1ce3ee(0xfd)][_0x1ce3ee(0xf2)]&&(_0x2cd524[_0x1ce3ee(0xd2)]=[{'all':!![]}]),db[_0x1ce3ee(0xe1)][_0x1ce3ee(0xf4)](_0x2cd524);})[_0x480523(0xeb)](function(_0x13577e){const _0x34ea3d=_0x480523;return _0x4e25ed[_0x34ea3d(0xcc)]=_0x13577e,_0x4e25ed;})[_0x480523(0xeb)](respondWithFilteredResult(_0x380a80,_0x2cd524))[_0x480523(0xc8)](handleError(_0x380a80,null));},exports['show']=function(_0x4cc35a,_0x1e10b2){const _0x488dfe=a635_0x12eb40;let _0x1f43bc={'raw':![],'where':{'id':_0x4cc35a[_0x488dfe(0xdd)]['id']}};const _0x17ff80={};return _0x17ff80[_0x488dfe(0xea)]=_['keys'](db[_0x488dfe(0xe1)][_0x488dfe(0xd0)]),_0x17ff80[_0x488dfe(0xfd)]=_[_0x488dfe(0xd3)](_0x4cc35a[_0x488dfe(0xfd)]),_0x17ff80['filters']=_[_0x488dfe(0xe7)](_0x17ff80[_0x488dfe(0xea)],_0x17ff80[_0x488dfe(0xfd)]),_0x1f43bc[_0x488dfe(0xe8)]=_['intersection'](_0x17ff80[_0x488dfe(0xea)],qs[_0x488dfe(0xce)](_0x4cc35a[_0x488dfe(0xfd)]['fields'])),_0x1f43bc[_0x488dfe(0xe8)]=_0x1f43bc[_0x488dfe(0xe8)][_0x488dfe(0xf9)]?_0x1f43bc['attributes']:_0x17ff80['model'],_0x4cc35a[_0x488dfe(0xfd)]['includeAll']&&(_0x1f43bc[_0x488dfe(0xd2)]=[{'all':!![]}]),_0x1f43bc=_[_0x488dfe(0xf1)]({},_0x1f43bc,_0x4cc35a['options']),db[_0x488dfe(0xe1)]['findOne'](_0x1f43bc)[_0x488dfe(0xeb)](handleEntityNotFound(_0x1e10b2,null))[_0x488dfe(0xeb)](respondWithResult(_0x1e10b2,null))['catch'](handleError(_0x1e10b2,null));},exports[a635_0x12eb40(0xfe)]=function(_0x5b1453,_0x32ffe4){const _0x4c96d1=a635_0x12eb40;return db['Schedule']['create'](_0x5b1453['body'],{})[_0x4c96d1(0xeb)](function(_0x5da440){const _0x8ca6b7=_0x4c96d1,_0x369793=_0x5b1453[_0x8ca6b7(0xe3)][_0x8ca6b7(0xf3)]({'plain':!![]});if(!_0x369793)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x369793[_0x8ca6b7(0xd4)]==='user'){const _0x37443a=_0x5da440[_0x8ca6b7(0xf3)]({'plain':!![]}),_0x1b993c=_0x8ca6b7(0xe0);return db['UserProfileSection']['findOne']({'where':{'name':_0x1b993c,'userProfileId':_0x369793[_0x8ca6b7(0xcd)]},'raw':!![]})['then'](function(_0x496966){const _0x4ba31e=_0x8ca6b7;return _0x496966&&_0x496966[_0x4ba31e(0xe9)]===0x0?db['UserProfileResource'][_0x4ba31e(0xfe)]({'name':_0x37443a['name'],'resourceId':_0x37443a['id'],'type':_0x496966[_0x4ba31e(0xd7)],'sectionId':_0x496966['id']},{})['then'](function(){return _0x5da440;}):_0x5da440;})['catch'](function(_0xa529bf){const _0x444506=_0x8ca6b7;logger['error'](_0x444506(0xdb),_0xa529bf);throw _0xa529bf;});}return _0x5da440;})['then'](respondWithResult(_0x32ffe4,0xc9))[_0x4c96d1(0xc8)](handleError(_0x32ffe4,null));},exports[a635_0x12eb40(0xe6)]=function(_0x5c31a1,_0x30c2ab){const _0x36861c=a635_0x12eb40;return _0x5c31a1['body']['id']&&delete _0x5c31a1[_0x36861c(0xdc)]['id'],db[_0x36861c(0xe1)][_0x36861c(0xc4)]({'where':{'id':_0x5c31a1[_0x36861c(0xdd)]['id']}})[_0x36861c(0xeb)](handleEntityNotFound(_0x30c2ab,null))[_0x36861c(0xeb)](saveUpdates(_0x5c31a1[_0x36861c(0xdc)],null))['then'](respondWithResult(_0x30c2ab,null))[_0x36861c(0xc8)](handleError(_0x30c2ab,null));},exports[a635_0x12eb40(0xfb)]=function(_0x2684fe,_0x516a64){const _0x618da0=a635_0x12eb40;return db[_0x618da0(0xe1)][_0x618da0(0xc4)]({'where':{'id':_0x2684fe[_0x618da0(0xdd)]['id']}})[_0x618da0(0xeb)](handleEntityNotFound(_0x516a64,null))[_0x618da0(0xeb)](removeEntity(_0x516a64,null))[_0x618da0(0xc8)](handleError(_0x516a64,null));},exports[a635_0x12eb40(0xc7)]=function(_0x1a8601,_0x2688a2){const _0x43ca19=a635_0x12eb40,_0xfe4e8f=require(_0x43ca19(0xd1));return db['Schedule']['findOne']({'where':{'id':_0x1a8601['params']['id']},'raw':!![]})[_0x43ca19(0xeb)](handleEntityNotFound(_0x2688a2,null))[_0x43ca19(0xeb)](function(){const _0x23b867=_0x43ca19;_0xfe4e8f[_0x23b867(0xc7)](_0x1a8601[_0x23b867(0xdd)]['id']);})['then'](respondWithStatusCode(_0x2688a2,null))[_0x43ca19(0xc8)](handleError(_0x2688a2,null));}; \ No newline at end of file diff --git a/server/api/schedule/schedule.model.js b/server/api/schedule/schedule.model.js index 388ef77..48e8bdc 100644 --- a/server/api/schedule/schedule.model.js +++ b/server/api/schedule/schedule.model.js @@ -1 +1 @@ -const a636_0xfbd6=['Schedule','./schedule.options','function','init','exports'];(function(_0x3dbcf0,_0x139558){const _0xfbd600=function(_0x32873d){while(--_0x32873d){_0x3dbcf0['push'](_0x3dbcf0['shift']());}};_0xfbd600(++_0x139558);}(a636_0xfbd6,0xeb));const a636_0x3287=function(_0x3dbcf0,_0x139558){_0x3dbcf0=_0x3dbcf0-0x70;let _0xfbd600=a636_0xfbd6[_0x3dbcf0];return _0xfbd600;};const a636_0x222a7f=a636_0x3287;'use strict';const {Model}=require('sequelize'),{attributes}=require('./schedule.attributes'),{options}=require(a636_0x222a7f(0x71));class Schedule extends Model{}function init(_0x52768c,_0x3db9c6){const _0x58c938=a636_0x222a7f,_0x2b66dd=options(_0x52768c),_0x3ae4c1=typeof _0x3db9c6===_0x58c938(0x72)?_0x3db9c6(_0x2b66dd):_0x2b66dd;return Schedule[_0x58c938(0x73)](attributes,_0x3ae4c1),Schedule;}module['exports'][a636_0x222a7f(0x70)]=Schedule,module[a636_0x222a7f(0x74)]['init']=init; \ No newline at end of file +const a636_0x5045=['./schedule.attributes','./schedule.options','function','init','Schedule'];(function(_0x6cc0a0,_0x586c02){const _0x50459d=function(_0x5490ea){while(--_0x5490ea){_0x6cc0a0['push'](_0x6cc0a0['shift']());}};_0x50459d(++_0x586c02);}(a636_0x5045,0x136));const a636_0x5490=function(_0x6cc0a0,_0x586c02){_0x6cc0a0=_0x6cc0a0-0xa9;let _0x50459d=a636_0x5045[_0x6cc0a0];return _0x50459d;};const a636_0x17b1e4=a636_0x5490;'use strict';const {Model}=require('sequelize'),{attributes}=require(a636_0x17b1e4(0xa9)),{options}=require(a636_0x17b1e4(0xaa));class Schedule extends Model{}function init(_0x504b5c,_0x2f2c59){const _0x20deee=a636_0x17b1e4,_0x4a8a8b=options(_0x504b5c),_0x163eb3=typeof _0x2f2c59===_0x20deee(0xab)?_0x2f2c59(_0x4a8a8b):_0x4a8a8b;return Schedule[_0x20deee(0xac)](attributes,_0x163eb3),Schedule;}module['exports'][a636_0x17b1e4(0xad)]=Schedule,module['exports'][a636_0x17b1e4(0xac)]=init; \ No newline at end of file diff --git a/server/api/schedule/schedule.options.js b/server/api/schedule/schedule.options.js index bc9f176..ad10a1e 100644 --- a/server/api/schedule/schedule.options.js +++ b/server/api/schedule/schedule.options.js @@ -1 +1 @@ -var a637_0x1928=['exports','tools_schedules','options'];(function(_0x36f6ea,_0x29eb15){var _0x1928d1=function(_0x5f2645){while(--_0x5f2645){_0x36f6ea['push'](_0x36f6ea['shift']());}};_0x1928d1(++_0x29eb15);}(a637_0x1928,0x12d));var a637_0x5f26=function(_0x36f6ea,_0x29eb15){_0x36f6ea=_0x36f6ea-0x1e4;var _0x1928d1=a637_0x1928[_0x36f6ea];return _0x1928d1;};var a637_0x18ddfb=a637_0x5f26;function options(_0x5004ab){var _0x27e759=a637_0x5f26;return{'sequelize':_0x5004ab,'tableName':_0x27e759(0x1e4),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a637_0x18ddfb(0x1e6)][a637_0x18ddfb(0x1e5)]=options; \ No newline at end of file +var a637_0x49a8=['exports','tools_schedules','options'];(function(_0x4c1fa8,_0x1550a7){var _0x49a874=function(_0x4d3f73){while(--_0x4d3f73){_0x4c1fa8['push'](_0x4c1fa8['shift']());}};_0x49a874(++_0x1550a7);}(a637_0x49a8,0xb4));var a637_0x4d3f=function(_0x4c1fa8,_0x1550a7){_0x4c1fa8=_0x4c1fa8-0x124;var _0x49a874=a637_0x49a8[_0x4c1fa8];return _0x49a874;};var a637_0x43ce4a=a637_0x4d3f;function options(_0x5b6d7b){var _0x5f22c1=a637_0x4d3f;return{'sequelize':_0x5b6d7b,'tableName':_0x5f22c1(0x125),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a637_0x43ce4a(0x124)][a637_0x43ce4a(0x126)]=options; \ No newline at end of file diff --git a/server/api/screenRecording/index.js b/server/api/screenRecording/index.js index c3613e6..a112451 100644 --- a/server/api/screenRecording/index.js +++ b/server/api/screenRecording/index.js @@ -1 +1 @@ -const a638_0x4e4f=['/:id/download','./screenRecording.controller','get','/:id','update','/describe','download','Router','index','delete','express','destroy','post','describe','../../components/auth/service','put','isAuthenticated'];(function(_0x142502,_0x22b439){const _0x4e4ffe=function(_0x1f1304){while(--_0x1f1304){_0x142502['push'](_0x142502['shift']());}};_0x4e4ffe(++_0x22b439);}(a638_0x4e4f,0x69));const a638_0x1f13=function(_0x142502,_0x22b439){_0x142502=_0x142502-0x17b;let _0x4e4ffe=a638_0x4e4f[_0x142502];return _0x4e4ffe;};const a638_0x297ceb=a638_0x1f13;'use strict';const express=require(a638_0x297ceb(0x182)),router=express[a638_0x297ceb(0x17f)](),auth=require(a638_0x297ceb(0x186)),controller=require(a638_0x297ceb(0x18a));router[a638_0x297ceb(0x18b)]('/',auth[a638_0x297ceb(0x188)](),controller[a638_0x297ceb(0x180)]),router['get'](a638_0x297ceb(0x17d),auth[a638_0x297ceb(0x188)](),controller[a638_0x297ceb(0x185)]),router[a638_0x297ceb(0x18b)]('/:id',auth['isAuthenticated'](),controller['show']),router[a638_0x297ceb(0x18b)](a638_0x297ceb(0x189),auth[a638_0x297ceb(0x188)](),controller[a638_0x297ceb(0x17e)]),router[a638_0x297ceb(0x184)]('/',auth[a638_0x297ceb(0x188)](),controller['create']),router[a638_0x297ceb(0x187)](a638_0x297ceb(0x17b),auth[a638_0x297ceb(0x188)](),controller[a638_0x297ceb(0x17c)]),router[a638_0x297ceb(0x181)]('/:id',auth[a638_0x297ceb(0x188)](),controller[a638_0x297ceb(0x183)]),module['exports']=router; \ No newline at end of file +const a638_0x232a=['destroy','delete','exports','get','Router','/:id','isAuthenticated','express','show','../../components/auth/service','describe','create','/:id/download','./screenRecording.controller','post'];(function(_0x90e0a9,_0x1d65ad){const _0x232aa6=function(_0x5d9489){while(--_0x5d9489){_0x90e0a9['push'](_0x90e0a9['shift']());}};_0x232aa6(++_0x1d65ad);}(a638_0x232a,0x120));const a638_0x5d94=function(_0x90e0a9,_0x1d65ad){_0x90e0a9=_0x90e0a9-0xfa;let _0x232aa6=a638_0x232a[_0x90e0a9];return _0x232aa6;};const a638_0x737bbd=a638_0x5d94;'use strict';const express=require(a638_0x737bbd(0xfe)),router=express[a638_0x737bbd(0xfb)](),auth=require(a638_0x737bbd(0x100)),controller=require(a638_0x737bbd(0x104));router[a638_0x737bbd(0xfa)]('/',auth[a638_0x737bbd(0xfd)](),controller['index']),router[a638_0x737bbd(0xfa)]('/describe',auth[a638_0x737bbd(0xfd)](),controller[a638_0x737bbd(0x101)]),router[a638_0x737bbd(0xfa)](a638_0x737bbd(0xfc),auth[a638_0x737bbd(0xfd)](),controller[a638_0x737bbd(0xff)]),router['get'](a638_0x737bbd(0x103),auth[a638_0x737bbd(0xfd)](),controller['download']),router[a638_0x737bbd(0x105)]('/',auth[a638_0x737bbd(0xfd)](),controller[a638_0x737bbd(0x102)]),router['put'](a638_0x737bbd(0xfc),auth[a638_0x737bbd(0xfd)](),controller['update']),router[a638_0x737bbd(0x107)](a638_0x737bbd(0xfc),auth[a638_0x737bbd(0xfd)](),controller[a638_0x737bbd(0x106)]),module[a638_0x737bbd(0x108)]=router; \ No newline at end of file diff --git a/server/api/screenRecording/screenRecording.attributes.js b/server/api/screenRecording/screenRecording.attributes.js index 95ae216..be40b19 100644 --- a/server/api/screenRecording/screenRecording.attributes.js +++ b/server/api/screenRecording/screenRecording.attributes.js @@ -1 +1 @@ -const a639_0x3b77=['VIRTUAL','replace','subtract','setDataValue','sequelize','format','extname','STRING','updatedAt','MM-DD-YYYY\x20HH:mm','closedAt','exports','toString','value','path','INTEGER','getDataValue','startedAt','duration','createdAt','attributes','DATE'];(function(_0x54eb6d,_0x1de23e){const _0x3b77ac=function(_0x287d15){while(--_0x287d15){_0x54eb6d['push'](_0x54eb6d['shift']());}};_0x3b77ac(++_0x1de23e);}(a639_0x3b77,0x74));const a639_0x287d=function(_0x54eb6d,_0x1de23e){_0x54eb6d=_0x54eb6d-0xee;let _0x3b77ac=a639_0x3b77[_0x54eb6d];return _0x3b77ac;};const a639_0x421f7e=a639_0x287d;'use strict';const {DataTypes}=require(a639_0x421f7e(0x102)),moment=require('moment'),path=require(a639_0x421f7e(0xf6)),attributes={'format':{'type':DataTypes[a639_0x421f7e(0xfe)],'get':function(){const _0x206fe6=a639_0x421f7e;return this[_0x206fe6(0xf8)](_0x206fe6(0xf5))?path[_0x206fe6(0xee)](this[_0x206fe6(0xf8)](_0x206fe6(0xf5))):undefined;}},'interactionid':{'type':DataTypes[a639_0x421f7e(0xef)]},'channel':{'type':DataTypes[a639_0x421f7e(0xef)]},'value':{'type':DataTypes[a639_0x421f7e(0xef)],'set':function(_0x36231f){const _0x25cb08=a639_0x421f7e,_0x259833=_0x36231f[_0x25cb08(0xff)](/\\/g,'/');this[_0x25cb08(0x101)]('value',_0x259833);}},'rating':{'type':DataTypes[a639_0x421f7e(0xf7)],'validate':{'max':0x5,'min':0x0}},'duration':{'type':DataTypes[a639_0x421f7e(0xf7)],'set':function(_0x5eabd7){const _0x304cc0=a639_0x421f7e;this[_0x304cc0(0x101)](_0x304cc0(0xf9),moment()[_0x304cc0(0x100)](_0x5eabd7,'ms')),this['setDataValue']('closedAt',moment()),this[_0x304cc0(0x101)](_0x304cc0(0xfa),_0x5eabd7);}},'startedAt':{'type':DataTypes[a639_0x421f7e(0xfd)],'get':function(){const _0x2bbe6c=a639_0x421f7e;return moment(this['getDataValue']('startedAt'))['format'](_0x2bbe6c(0xf1))[_0x2bbe6c(0xf4)]();}},'closedAt':{'type':DataTypes[a639_0x421f7e(0xfd)],'get':function(){const _0xb8fffc=a639_0x421f7e;return moment(this[_0xb8fffc(0xf8)](_0xb8fffc(0xf2)))[_0xb8fffc(0x103)](_0xb8fffc(0xf1))[_0xb8fffc(0xf4)]();}},'createdAt':{'type':DataTypes['DATE'],'get':function(){const _0x29e7ad=a639_0x421f7e;return moment(this[_0x29e7ad(0xf8)](_0x29e7ad(0xfb)))[_0x29e7ad(0x103)](_0x29e7ad(0xf1))[_0x29e7ad(0xf4)]();}},'updatedAt':{'type':DataTypes[a639_0x421f7e(0xfd)],'get':function(){const _0x52d223=a639_0x421f7e;return moment(this['getDataValue'](_0x52d223(0xf0)))[_0x52d223(0x103)](_0x52d223(0xf1))[_0x52d223(0xf4)]();}}};module[a639_0x421f7e(0xf3)][a639_0x421f7e(0xfc)]=attributes; \ No newline at end of file +const a639_0x22d7=['format','attributes','value','updatedAt','DATE','INTEGER','closedAt','getDataValue','MM-DD-YYYY\x20HH:mm','startedAt','STRING','subtract','createdAt','toString','setDataValue','path','moment','sequelize'];(function(_0x4254ce,_0x20c78f){const _0x22d75c=function(_0xfd7f6e){while(--_0xfd7f6e){_0x4254ce['push'](_0x4254ce['shift']());}};_0x22d75c(++_0x20c78f);}(a639_0x22d7,0x114));const a639_0xfd7f=function(_0x4254ce,_0x20c78f){_0x4254ce=_0x4254ce-0x1a8;let _0x22d75c=a639_0x22d7[_0x4254ce];return _0x22d75c;};const a639_0x1aaf7b=a639_0xfd7f;'use strict';const {DataTypes}=require(a639_0x1aaf7b(0x1b3)),moment=require(a639_0x1aaf7b(0x1b2)),path=require(a639_0x1aaf7b(0x1b1)),attributes={'format':{'type':DataTypes['VIRTUAL'],'get':function(){const _0x978390=a639_0x1aaf7b;return this[_0x978390(0x1a9)](_0x978390(0x1b6))?path['extname'](this['getDataValue']('value')):undefined;}},'interactionid':{'type':DataTypes['STRING']},'channel':{'type':DataTypes[a639_0x1aaf7b(0x1ac)]},'value':{'type':DataTypes[a639_0x1aaf7b(0x1ac)],'set':function(_0x3beafd){const _0x5b0e52=a639_0x1aaf7b,_0x328206=_0x3beafd['replace'](/\\/g,'/');this[_0x5b0e52(0x1b0)](_0x5b0e52(0x1b6),_0x328206);}},'rating':{'type':DataTypes[a639_0x1aaf7b(0x1b9)],'validate':{'max':0x5,'min':0x0}},'duration':{'type':DataTypes['INTEGER'],'set':function(_0x5e8b7a){const _0x3b7ff6=a639_0x1aaf7b;this['setDataValue'](_0x3b7ff6(0x1ab),moment()[_0x3b7ff6(0x1ad)](_0x5e8b7a,'ms')),this['setDataValue'](_0x3b7ff6(0x1a8),moment()),this[_0x3b7ff6(0x1b0)]('duration',_0x5e8b7a);}},'startedAt':{'type':DataTypes['DATE'],'get':function(){const _0x2c50b2=a639_0x1aaf7b;return moment(this[_0x2c50b2(0x1a9)]('startedAt'))[_0x2c50b2(0x1b4)](_0x2c50b2(0x1aa))[_0x2c50b2(0x1af)]();}},'closedAt':{'type':DataTypes[a639_0x1aaf7b(0x1b8)],'get':function(){const _0x5a1e4c=a639_0x1aaf7b;return moment(this[_0x5a1e4c(0x1a9)]('closedAt'))['format'](_0x5a1e4c(0x1aa))[_0x5a1e4c(0x1af)]();}},'createdAt':{'type':DataTypes[a639_0x1aaf7b(0x1b8)],'get':function(){const _0x52edfd=a639_0x1aaf7b;return moment(this['getDataValue'](_0x52edfd(0x1ae)))[_0x52edfd(0x1b4)]('MM-DD-YYYY\x20HH:mm')['toString']();}},'updatedAt':{'type':DataTypes[a639_0x1aaf7b(0x1b8)],'get':function(){const _0x28506d=a639_0x1aaf7b;return moment(this[_0x28506d(0x1a9)](_0x28506d(0x1b7)))[_0x28506d(0x1b4)](_0x28506d(0x1aa))[_0x28506d(0x1af)]();}}};module['exports'][a639_0x1aaf7b(0x1b5)]=attributes; \ No newline at end of file diff --git a/server/api/screenRecording/screenRecording.controller.js b/server/api/screenRecording/screenRecording.controller.js index e07ccf3..527c592 100644 --- a/server/api/screenRecording/screenRecording.controller.js +++ b/server/api/screenRecording/screenRecording.controller.js @@ -1 +1 @@ -const a640_0x1507=['keys','query','attributes','intersection','File:\x20\x22','unlink','extname','undefined','options','decryptFile','%s.cypher','includeAll','limit','where','../../components/parsers/qs','merge','stack','sequelize','root','Entity\x20not\x20found','nolimit','body','../../config/environment','update','model','map','filters','fields','format','rawAttributes','include','then','isNil','findAll','error','differenceBy','create','closedAt','ScreenRecording','end','type','destroy','uniqueid','count','filter','../../components/encryptor','existsSync','Content-Range','offset','cancellazione\x20fisica\x20documento\x20%s','info','value','recording','error-middleware/errors','length','pick','download','describe','json','server/files/screen_recordings','index','fieldName','unlinkSync','status','name','findOne','filename','order','catch','Not\x20found','join','ScreenRecording\x20not\x20found','sort','params','util'];(function(_0x479e84,_0x1b8603){const _0x150776=function(_0x20397f){while(--_0x20397f){_0x479e84['push'](_0x479e84['shift']());}};_0x150776(++_0x1b8603);}(a640_0x1507,0x94));const a640_0x2039=function(_0x479e84,_0x1b8603){_0x479e84=_0x479e84-0xc9;let _0x150776=a640_0x1507[_0x479e84];return _0x150776;};const a640_0x13c0d0=a640_0x2039;'use strict';const util=require(a640_0x13c0d0(0xca)),path=require('path'),fs=require('fs'),_=require('lodash'),qs=require(a640_0x13c0d0(0xd9)),logger=require('../../config/logger')('api'),config=require(a640_0x13c0d0(0xe1)),{db}=require('../../mysqldb'),{Op,ValidationError}=require(a640_0x13c0d0(0xdc)),{InternalError}=require(a640_0x13c0d0(0x100));function respondWithResult(_0x26f5f8,_0x2109c1){return _0x2109c1=_0x2109c1||0xc8,function(_0x9de645){const _0x672f6f=a640_0x2039;if(_0x9de645)return _0x26f5f8[_0x672f6f(0x10a)](_0x2109c1)[_0x672f6f(0x105)](_0x9de645);};}function respondWithFilteredResult(_0x5c2769,_0x26c961){return function(_0x4031fa){const _0x3cc121=a640_0x2039;if(_0x4031fa){const _0x1f1da1=_0x4031fa[_0x3cc121(0xf6)],_0x11c3ff=_0x26c961[_0x3cc121(0xfb)];let _0x140f71=_0x26c961[_0x3cc121(0xfb)]+_0x26c961[_0x3cc121(0xd7)],_0x3b542d;return _0x140f71>=_0x1f1da1?(_0x140f71=_0x1f1da1,_0x3b542d=0xc8):_0x3b542d=0xce,_0x5c2769['status'](_0x3b542d),_0x5c2769['set'](_0x3cc121(0xfa),_0x11c3ff+'-'+_0x140f71+'/'+_0x1f1da1)['json'](_0x4031fa);}return null;};}function saveUpdates(_0x80ac3e){return function(_0x652c09){const _0x10917f=a640_0x2039;if(_0x652c09)return _0x652c09['update'](_0x80ac3e)[_0x10917f(0xea)](function(_0x31bed3){return _0x31bed3;});return null;};}function handleEntityNotFound(_0x55dcb3){return function(_0x710e91){return!_0x710e91&&_0x55dcb3['sendStatus'](0x194),_0x710e91;};}function handleError(_0x4ff1ff,_0x1ddc56){return _0x1ddc56=_0x1ddc56||0x1f4,function(_0x507695){const _0x15c149=a640_0x2039;logger[_0x15c149(0xed)](_0x507695[_0x15c149(0xdb)]),_0x507695[_0x15c149(0x10b)]&&delete _0x507695['name'],_0x4ff1ff[_0x15c149(0x10a)](_0x1ddc56)['send'](_0x507695);};}exports[a640_0x13c0d0(0x107)]=function(_0x3d6938,_0x4c9f3d){const _0x41354b=a640_0x13c0d0;let _0x244a15={};const _0x5c446f={},_0x7625d3={'count':0x0,'rows':[]},_0x590db5=_[_0x41354b(0xe4)](db[_0x41354b(0xf1)][_0x41354b(0xe8)],function(_0x228753){const _0x41eded=_0x41354b;return{'name':_0x228753[_0x41eded(0x108)],'type':_0x228753[_0x41eded(0xf3)]['key']};});_0x5c446f['model']=_[_0x41354b(0xee)](_[_0x41354b(0xe4)](_0x590db5,_0x41354b(0x10b)),['format']),_0x5c446f[_0x41354b(0xcc)]=_[_0x41354b(0xcb)](_0x3d6938['query']),_0x5c446f['filters']=_[_0x41354b(0xce)](_0x5c446f[_0x41354b(0xe3)],_0x5c446f[_0x41354b(0xcc)]),_0x244a15[_0x41354b(0xcd)]=_[_0x41354b(0xce)](_0x5c446f[_0x41354b(0xe3)],qs[_0x41354b(0xe6)](_0x3d6938[_0x41354b(0xcc)]['fields'])),_0x244a15['attributes']=_0x244a15[_0x41354b(0xcd)][_0x41354b(0x101)]?_0x244a15[_0x41354b(0xcd)]:_0x5c446f[_0x41354b(0xe3)];typeof _0x3d6938[_0x41354b(0xcc)][_0x41354b(0xdf)]===_0x41354b(0xd2)&&(_0x244a15[_0x41354b(0xd7)]=qs[_0x41354b(0xd7)](_0x3d6938[_0x41354b(0xcc)][_0x41354b(0xd7)]),_0x244a15['offset']=qs['offset'](_0x3d6938[_0x41354b(0xcc)][_0x41354b(0xfb)]));_0x244a15[_0x41354b(0x10e)]=qs['sort'](_0x3d6938[_0x41354b(0xcc)][_0x41354b(0x113)]),_0x244a15[_0x41354b(0xd8)]=qs[_0x41354b(0xe5)](_[_0x41354b(0x102)](_0x3d6938['query'],_0x5c446f['filters']),_0x590db5);_0x3d6938[_0x41354b(0xcc)][_0x41354b(0xf7)]&&(_0x244a15[_0x41354b(0xd8)]=_[_0x41354b(0xda)](_0x244a15[_0x41354b(0xd8)],{[Op['or']]:_[_0x41354b(0xe4)](_0x590db5,function(_0x880c0d){const _0x36a92f=_0x41354b;if(_0x880c0d[_0x36a92f(0xf3)]!=='VIRTUAL'){const _0x59d956={};return _0x59d956[_0x880c0d[_0x36a92f(0x10b)]]={[Op['like']]:'%'+_0x3d6938[_0x36a92f(0xcc)][_0x36a92f(0xf7)]+'%'},_0x59d956;}})}));_0x244a15=_['merge']({},_0x244a15,_0x3d6938[_0x41354b(0xd3)]);const _0x4297ee={'where':_0x244a15[_0x41354b(0xd8)]};return db[_0x41354b(0xf1)][_0x41354b(0xf6)](_0x4297ee)['then'](function(_0x18ce56){const _0x3ade01=_0x41354b;return _0x7625d3[_0x3ade01(0xf6)]=_0x18ce56,_0x3d6938[_0x3ade01(0xcc)][_0x3ade01(0xd6)]&&(_0x244a15[_0x3ade01(0xe9)]=[{'all':!![]}]),db[_0x3ade01(0xf1)][_0x3ade01(0xec)](_0x244a15);})[_0x41354b(0xea)](function(_0x2f0693){return _0x7625d3['rows']=_0x2f0693,_0x7625d3;})[_0x41354b(0xea)](respondWithFilteredResult(_0x4c9f3d,_0x244a15))[_0x41354b(0x10f)](handleError(_0x4c9f3d,null));},exports['show']=function(_0x2e1d04,_0x59bc23){const _0x19087e=a640_0x13c0d0;let _0x5e7e2b={'raw':![],'where':{'id':_0x2e1d04['params']['id']}};const _0x3b105e={};return _0x3b105e['model']=_[_0x19087e(0xcb)](db[_0x19087e(0xf1)]['rawAttributes']),_0x3b105e[_0x19087e(0xcc)]=_['keys'](_0x2e1d04[_0x19087e(0xcc)]),_0x3b105e[_0x19087e(0xe5)]=_[_0x19087e(0xce)](_0x3b105e[_0x19087e(0xe3)],_0x3b105e['query']),_0x5e7e2b[_0x19087e(0xcd)]=_['intersection'](_0x3b105e[_0x19087e(0xe3)],qs[_0x19087e(0xe6)](_0x2e1d04[_0x19087e(0xcc)][_0x19087e(0xe6)])),_0x5e7e2b['attributes']=_0x5e7e2b[_0x19087e(0xcd)][_0x19087e(0x101)]?_0x5e7e2b[_0x19087e(0xcd)]:_0x3b105e[_0x19087e(0xe3)],_0x2e1d04[_0x19087e(0xcc)][_0x19087e(0xd6)]&&(_0x5e7e2b['include']=[{'all':!![]}]),_0x5e7e2b=_[_0x19087e(0xda)]({},_0x5e7e2b,_0x2e1d04[_0x19087e(0xd3)]),db['ScreenRecording'][_0x19087e(0x10c)](_0x5e7e2b)[_0x19087e(0xea)](handleEntityNotFound(_0x59bc23,null))[_0x19087e(0xea)](respondWithResult(_0x59bc23,null))[_0x19087e(0x10f)](handleError(_0x59bc23,null));},exports[a640_0x13c0d0(0xef)]=function(_0x4892c4,_0x51b932){const _0x4286f9=a640_0x13c0d0;return db[_0x4286f9(0xf1)][_0x4286f9(0xef)](_0x4892c4[_0x4286f9(0xe0)],{})[_0x4286f9(0xea)](respondWithResult(_0x51b932,0xc9))[_0x4286f9(0x10f)](handleError(_0x51b932,null));},exports[a640_0x13c0d0(0xe2)]=function(_0x51a3ee,_0x121ad8){const _0x389e43=a640_0x13c0d0;return _0x51a3ee[_0x389e43(0xe0)]['id']&&delete _0x51a3ee[_0x389e43(0xe0)]['id'],delete _0x51a3ee[_0x389e43(0xe0)]['duration'],delete _0x51a3ee[_0x389e43(0xe0)]['createdAt'],delete _0x51a3ee[_0x389e43(0xe0)][_0x389e43(0xf0)],delete _0x51a3ee['body'][_0x389e43(0xfe)],db[_0x389e43(0xf1)][_0x389e43(0x10c)]({'where':{'id':_0x51a3ee['params']['id']}})[_0x389e43(0xea)](handleEntityNotFound(_0x121ad8,null))[_0x389e43(0xea)](saveUpdates(_0x51a3ee[_0x389e43(0xe0)],null))[_0x389e43(0xea)](respondWithResult(_0x121ad8,null))[_0x389e43(0x10f)](handleError(_0x121ad8,null));},exports[a640_0x13c0d0(0x104)]=function(_0x3943cf,_0x657cd7){const _0x3c14e6=a640_0x13c0d0;return db['ScreenRecording']['describe']()[_0x3c14e6(0xea)](respondWithResult(_0x657cd7,null))['catch'](handleError(_0x657cd7,null));},exports['download']=function(_0x3bd530,_0x144857){const _0x88a5cc=a640_0x13c0d0,_0x1d70f2=require(_0x88a5cc(0xf8));let _0x5e765f=![];const _0x18ab1c={};return _0x3bd530['query'][_0x88a5cc(0xf3)]&&_0x3bd530[_0x88a5cc(0xcc)][_0x88a5cc(0xf3)]===_0x88a5cc(0xf5)?_0x18ab1c[_0x88a5cc(0xf5)]=_0x3bd530['params']['id']:_0x18ab1c['id']=_0x3bd530[_0x88a5cc(0xc9)]['id'],db[_0x88a5cc(0xf1)][_0x88a5cc(0x10c)]({'where':_0x18ab1c,'attributes':['id',_0x88a5cc(0xfe)],'raw':!![]})[_0x88a5cc(0xea)](handleEntityNotFound(_0x144857,null))['then'](function(_0x5cc614){const _0x27f6e6=_0x88a5cc;if(_0x5cc614){const _0x4adc35=path[_0x27f6e6(0x111)](config['root'],'server/files/screen_recordings',_0x5cc614[_0x27f6e6(0xfe)]),_0x15c945=util[_0x27f6e6(0xe7)](_0x27f6e6(0xd5),_0x4adc35);if(fs[_0x27f6e6(0xf9)](_0x15c945))return _0x5e765f=!![],_0x1d70f2[_0x27f6e6(0xd4)](_0x15c945,_0x4adc35,config['secrets'][_0x27f6e6(0xff)])['then'](function(){return _0x5cc614;});return _0x5cc614;}})[_0x88a5cc(0xea)](function(_0x380f15){const _0x4ca8bb=_0x88a5cc;if(_0x380f15){const _0x4dfbf8=path[_0x4ca8bb(0x111)](config[_0x4ca8bb(0xdd)],_0x4ca8bb(0x106),_0x380f15[_0x4ca8bb(0xfe)]);if(!fs['existsSync'](_0x4dfbf8))throw new ValidationError(_0x4ca8bb(0x112));return _0x380f15[_0x4ca8bb(0x10d)]?_0x144857[_0x4ca8bb(0x103)](_0x4dfbf8,_0x380f15[_0x4ca8bb(0x10d)]+path[_0x4ca8bb(0xd1)](_0x4dfbf8),function(){const _0x305d74=_0x4ca8bb;_0x5e765f&&fs[_0x305d74(0xd0)](_0x4dfbf8);}):_0x144857['download'](_0x4dfbf8,function(){const _0x548476=_0x4ca8bb;_0x5e765f&&fs[_0x548476(0xd0)](_0x4dfbf8);});}})[_0x88a5cc(0x10f)](function(_0x4ac76b){const _0x4d311d=_0x88a5cc;if(_0x4ac76b['message']===_0x4d311d(0x112))_0x144857[_0x4d311d(0x10a)](0x194)['send'](_0x4d311d(0x110));else return handleError(_0x144857,null);});},exports[a640_0x13c0d0(0xf4)]=function(_0x586f5a,_0x38a9f4){const _0x51c44a=a640_0x13c0d0;return db[_0x51c44a(0xf1)][_0x51c44a(0x10c)]({'where':{'id':_0x586f5a[_0x51c44a(0xc9)]['id']}})[_0x51c44a(0xea)](function(_0x3b80e5){const _0x491b04=_0x51c44a;if(!_0x3b80e5)throw new ReferenceError(_0x491b04(0xde));return _0x3b80e5;})[_0x51c44a(0xea)](function(_0x1e364a){const _0x36236f=_0x51c44a;let _0x53924f=path[_0x36236f(0x111)](config[_0x36236f(0xdd)],_0x36236f(0x106),_0x1e364a['value']);return logger['info'](_0x36236f(0xfc),_0x53924f),!_[_0x36236f(0xeb)](_0x1e364a['value'])&&fs['existsSync'](_0x53924f)&&(logger['info']('File:\x20\x22'+_0x53924f+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs[_0x36236f(0x109)](_0x53924f)),_0x53924f=_0x53924f+'.cypher',!_[_0x36236f(0xeb)](_0x1e364a[_0x36236f(0xfe)])&&fs[_0x36236f(0xf9)](_0x53924f)&&(logger[_0x36236f(0xfd)](_0x36236f(0xcf)+_0x53924f+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs[_0x36236f(0x109)](_0x53924f)),_0x1e364a;})['then'](function(_0x3d7af5){const _0x4f8a3a=_0x51c44a;if(!_0x3d7af5)throw new InternalError();return _0x3d7af5[_0x4f8a3a(0xf4)]();})[_0x51c44a(0xea)](function(){const _0x347d68=_0x51c44a;_0x38a9f4['status'](0xcc)[_0x347d68(0xf2)]();})[_0x51c44a(0x10f)](handleError(_0x38a9f4,null));}; \ No newline at end of file +const a640_0x3f61=['then','unlink','update','ScreenRecording\x20not\x20found','unlinkSync','findAll','VIRTUAL','File:\x20\x22','.cypher','message','where','rows','status','format','pick','sort','like','../../components/parsers/qs','../../config/logger','index','offset','fieldName','options','ScreenRecording','findOne','json','catch','type','length','includeAll','join','order','download','query','Content-Range','send','key','createdAt','params','count','model','duration','isNil','name','filter','differenceBy','../../components/encryptor','value','%s.cypher','set','filters','nolimit','path','closedAt','cancellazione\x20fisica\x20documento\x20%s','extname','fields','stack','include','error-middleware/errors','merge','create','show','Not\x20found','secrets','Entity\x20not\x20found','attributes','body','../../mysqldb','end','../../config/environment','describe','map','api','uniqueid','server/files/screen_recordings','sendStatus','keys','undefined','limit','root','existsSync','intersection','filename','info'];(function(_0x382d70,_0x1794f3){const _0x3f612c=function(_0x51781c){while(--_0x51781c){_0x382d70['push'](_0x382d70['shift']());}};_0x3f612c(++_0x1794f3);}(a640_0x3f61,0x145));const a640_0x5178=function(_0x382d70,_0x1794f3){_0x382d70=_0x382d70-0x18c;let _0x3f612c=a640_0x3f61[_0x382d70];return _0x3f612c;};const a640_0x810aa=a640_0x5178;'use strict';const util=require('util'),path=require(a640_0x810aa(0x1cf)),fs=require('fs'),_=require('lodash'),qs=require(a640_0x810aa(0x1ac)),logger=require(a640_0x810aa(0x1ad))(a640_0x810aa(0x18f)),config=require(a640_0x810aa(0x18c)),{db}=require(a640_0x810aa(0x1df)),{Op,ValidationError}=require('sequelize'),{InternalError}=require(a640_0x810aa(0x1d6));function respondWithResult(_0x513a8f,_0x74a969){return _0x74a969=_0x74a969||0xc8,function(_0x48faa4){const _0x1403a9=a640_0x5178;if(_0x48faa4)return _0x513a8f[_0x1403a9(0x1a7)](_0x74a969)[_0x1403a9(0x1b4)](_0x48faa4);};}function respondWithFilteredResult(_0x545a50,_0xe763ef){return function(_0x4bfaca){const _0x4ef43d=a640_0x5178;if(_0x4bfaca){const _0x5031ca=_0x4bfaca[_0x4ef43d(0x1c2)],_0x423cfc=_0xe763ef[_0x4ef43d(0x1af)];let _0x1631f3=_0xe763ef[_0x4ef43d(0x1af)]+_0xe763ef[_0x4ef43d(0x195)],_0x3ececf;return _0x1631f3>=_0x5031ca?(_0x1631f3=_0x5031ca,_0x3ececf=0xc8):_0x3ececf=0xce,_0x545a50[_0x4ef43d(0x1a7)](_0x3ececf),_0x545a50[_0x4ef43d(0x1cc)](_0x4ef43d(0x1bd),_0x423cfc+'-'+_0x1631f3+'/'+_0x5031ca)[_0x4ef43d(0x1b4)](_0x4bfaca);}return null;};}function saveUpdates(_0x5a8a54){return function(_0x56fd5a){const _0x1d7421=a640_0x5178;if(_0x56fd5a)return _0x56fd5a[_0x1d7421(0x19d)](_0x5a8a54)[_0x1d7421(0x19b)](function(_0x5a6de6){return _0x5a6de6;});return null;};}function handleEntityNotFound(_0x31a051){return function(_0x310938){const _0x5eda9e=a640_0x5178;return!_0x310938&&_0x31a051[_0x5eda9e(0x192)](0x194),_0x310938;};}function handleError(_0x2f85d6,_0x139818){return _0x139818=_0x139818||0x1f4,function(_0x498074){const _0x28566b=a640_0x5178;logger['error'](_0x498074[_0x28566b(0x1d4)]),_0x498074[_0x28566b(0x1c6)]&&delete _0x498074[_0x28566b(0x1c6)],_0x2f85d6[_0x28566b(0x1a7)](_0x139818)[_0x28566b(0x1be)](_0x498074);};}exports[a640_0x810aa(0x1ae)]=function(_0x2dc3e2,_0x491b49){const _0x240620=a640_0x810aa;let _0x1e38f9={};const _0x1abc39={},_0x2f3172={'count':0x0,'rows':[]},_0x5795bf=_[_0x240620(0x18e)](db[_0x240620(0x1b2)]['rawAttributes'],function(_0x7e96ca){const _0x145751=_0x240620;return{'name':_0x7e96ca[_0x145751(0x1b0)],'type':_0x7e96ca[_0x145751(0x1b6)][_0x145751(0x1bf)]};});_0x1abc39['model']=_[_0x240620(0x1c8)](_['map'](_0x5795bf,'name'),[_0x240620(0x1a8)]),_0x1abc39['query']=_[_0x240620(0x193)](_0x2dc3e2[_0x240620(0x1bc)]),_0x1abc39['filters']=_['intersection'](_0x1abc39[_0x240620(0x1c3)],_0x1abc39['query']),_0x1e38f9['attributes']=_[_0x240620(0x198)](_0x1abc39[_0x240620(0x1c3)],qs[_0x240620(0x1d3)](_0x2dc3e2['query']['fields'])),_0x1e38f9[_0x240620(0x1dd)]=_0x1e38f9[_0x240620(0x1dd)][_0x240620(0x1b7)]?_0x1e38f9[_0x240620(0x1dd)]:_0x1abc39[_0x240620(0x1c3)];typeof _0x2dc3e2[_0x240620(0x1bc)][_0x240620(0x1ce)]===_0x240620(0x194)&&(_0x1e38f9[_0x240620(0x195)]=qs[_0x240620(0x195)](_0x2dc3e2[_0x240620(0x1bc)][_0x240620(0x195)]),_0x1e38f9[_0x240620(0x1af)]=qs[_0x240620(0x1af)](_0x2dc3e2[_0x240620(0x1bc)]['offset']));_0x1e38f9[_0x240620(0x1ba)]=qs[_0x240620(0x1aa)](_0x2dc3e2['query'][_0x240620(0x1aa)]),_0x1e38f9[_0x240620(0x1a5)]=qs['filters'](_[_0x240620(0x1a9)](_0x2dc3e2['query'],_0x1abc39[_0x240620(0x1cd)]),_0x5795bf);_0x2dc3e2['query']['filter']&&(_0x1e38f9[_0x240620(0x1a5)]=_['merge'](_0x1e38f9[_0x240620(0x1a5)],{[Op['or']]:_[_0x240620(0x18e)](_0x5795bf,function(_0x4b2274){const _0x3c978b=_0x240620;if(_0x4b2274[_0x3c978b(0x1b6)]!==_0x3c978b(0x1a1)){const _0xc45605={};return _0xc45605[_0x4b2274[_0x3c978b(0x1c6)]]={[Op[_0x3c978b(0x1ab)]]:'%'+_0x2dc3e2[_0x3c978b(0x1bc)][_0x3c978b(0x1c7)]+'%'},_0xc45605;}})}));_0x1e38f9=_[_0x240620(0x1d7)]({},_0x1e38f9,_0x2dc3e2[_0x240620(0x1b1)]);const _0x19a026={'where':_0x1e38f9[_0x240620(0x1a5)]};return db['ScreenRecording'][_0x240620(0x1c2)](_0x19a026)[_0x240620(0x19b)](function(_0x46998e){const _0x4279d7=_0x240620;return _0x2f3172[_0x4279d7(0x1c2)]=_0x46998e,_0x2dc3e2[_0x4279d7(0x1bc)]['includeAll']&&(_0x1e38f9[_0x4279d7(0x1d5)]=[{'all':!![]}]),db[_0x4279d7(0x1b2)][_0x4279d7(0x1a0)](_0x1e38f9);})[_0x240620(0x19b)](function(_0x30944b){const _0x16c13e=_0x240620;return _0x2f3172[_0x16c13e(0x1a6)]=_0x30944b,_0x2f3172;})['then'](respondWithFilteredResult(_0x491b49,_0x1e38f9))[_0x240620(0x1b5)](handleError(_0x491b49,null));},exports[a640_0x810aa(0x1d9)]=function(_0x12a457,_0x538fa1){const _0x5906ea=a640_0x810aa;let _0x33e36b={'raw':![],'where':{'id':_0x12a457['params']['id']}};const _0x249b87={};return _0x249b87[_0x5906ea(0x1c3)]=_[_0x5906ea(0x193)](db[_0x5906ea(0x1b2)]['rawAttributes']),_0x249b87[_0x5906ea(0x1bc)]=_[_0x5906ea(0x193)](_0x12a457[_0x5906ea(0x1bc)]),_0x249b87['filters']=_[_0x5906ea(0x198)](_0x249b87[_0x5906ea(0x1c3)],_0x249b87[_0x5906ea(0x1bc)]),_0x33e36b['attributes']=_['intersection'](_0x249b87[_0x5906ea(0x1c3)],qs[_0x5906ea(0x1d3)](_0x12a457[_0x5906ea(0x1bc)]['fields'])),_0x33e36b[_0x5906ea(0x1dd)]=_0x33e36b['attributes']['length']?_0x33e36b['attributes']:_0x249b87[_0x5906ea(0x1c3)],_0x12a457[_0x5906ea(0x1bc)][_0x5906ea(0x1b8)]&&(_0x33e36b['include']=[{'all':!![]}]),_0x33e36b=_[_0x5906ea(0x1d7)]({},_0x33e36b,_0x12a457['options']),db[_0x5906ea(0x1b2)][_0x5906ea(0x1b3)](_0x33e36b)[_0x5906ea(0x19b)](handleEntityNotFound(_0x538fa1,null))[_0x5906ea(0x19b)](respondWithResult(_0x538fa1,null))[_0x5906ea(0x1b5)](handleError(_0x538fa1,null));},exports[a640_0x810aa(0x1d8)]=function(_0x1ab585,_0x53f4c4){const _0x176040=a640_0x810aa;return db['ScreenRecording'][_0x176040(0x1d8)](_0x1ab585[_0x176040(0x1de)],{})['then'](respondWithResult(_0x53f4c4,0xc9))[_0x176040(0x1b5)](handleError(_0x53f4c4,null));},exports['update']=function(_0xfe402b,_0x1b117d){const _0x59c4fb=a640_0x810aa;return _0xfe402b[_0x59c4fb(0x1de)]['id']&&delete _0xfe402b[_0x59c4fb(0x1de)]['id'],delete _0xfe402b[_0x59c4fb(0x1de)][_0x59c4fb(0x1c4)],delete _0xfe402b['body'][_0x59c4fb(0x1c0)],delete _0xfe402b['body'][_0x59c4fb(0x1d0)],delete _0xfe402b[_0x59c4fb(0x1de)][_0x59c4fb(0x1ca)],db[_0x59c4fb(0x1b2)][_0x59c4fb(0x1b3)]({'where':{'id':_0xfe402b[_0x59c4fb(0x1c1)]['id']}})['then'](handleEntityNotFound(_0x1b117d,null))[_0x59c4fb(0x19b)](saveUpdates(_0xfe402b[_0x59c4fb(0x1de)],null))['then'](respondWithResult(_0x1b117d,null))[_0x59c4fb(0x1b5)](handleError(_0x1b117d,null));},exports[a640_0x810aa(0x18d)]=function(_0x6c09a1,_0x1a57a5){const _0x19209e=a640_0x810aa;return db[_0x19209e(0x1b2)][_0x19209e(0x18d)]()[_0x19209e(0x19b)](respondWithResult(_0x1a57a5,null))[_0x19209e(0x1b5)](handleError(_0x1a57a5,null));},exports[a640_0x810aa(0x1bb)]=function(_0x32b952,_0x149a90){const _0x36e79c=a640_0x810aa,_0x19055e=require(_0x36e79c(0x1c9));let _0x144da0=![];const _0x5c8bb4={};return _0x32b952[_0x36e79c(0x1bc)]['type']&&_0x32b952[_0x36e79c(0x1bc)][_0x36e79c(0x1b6)]==='uniqueid'?_0x5c8bb4[_0x36e79c(0x190)]=_0x32b952[_0x36e79c(0x1c1)]['id']:_0x5c8bb4['id']=_0x32b952[_0x36e79c(0x1c1)]['id'],db[_0x36e79c(0x1b2)][_0x36e79c(0x1b3)]({'where':_0x5c8bb4,'attributes':['id',_0x36e79c(0x1ca)],'raw':!![]})['then'](handleEntityNotFound(_0x149a90,null))[_0x36e79c(0x19b)](function(_0x4b0b4d){const _0x2d9d2a=_0x36e79c;if(_0x4b0b4d){const _0x1ef01c=path[_0x2d9d2a(0x1b9)](config[_0x2d9d2a(0x196)],_0x2d9d2a(0x191),_0x4b0b4d[_0x2d9d2a(0x1ca)]),_0x319716=util['format'](_0x2d9d2a(0x1cb),_0x1ef01c);if(fs[_0x2d9d2a(0x197)](_0x319716))return _0x144da0=!![],_0x19055e['decryptFile'](_0x319716,_0x1ef01c,config[_0x2d9d2a(0x1db)]['recording'])[_0x2d9d2a(0x19b)](function(){return _0x4b0b4d;});return _0x4b0b4d;}})[_0x36e79c(0x19b)](function(_0x4b21a7){const _0x2d8015=_0x36e79c;if(_0x4b21a7){const _0x496434=path['join'](config[_0x2d8015(0x196)],'server/files/screen_recordings',_0x4b21a7['value']);if(!fs[_0x2d8015(0x197)](_0x496434))throw new ValidationError(_0x2d8015(0x19e));return _0x4b21a7[_0x2d8015(0x199)]?_0x149a90['download'](_0x496434,_0x4b21a7[_0x2d8015(0x199)]+path[_0x2d8015(0x1d2)](_0x496434),function(){const _0x4feafe=_0x2d8015;_0x144da0&&fs[_0x4feafe(0x19c)](_0x496434);}):_0x149a90[_0x2d8015(0x1bb)](_0x496434,function(){const _0x27b9cb=_0x2d8015;_0x144da0&&fs[_0x27b9cb(0x19c)](_0x496434);});}})['catch'](function(_0x5e804f){const _0x21709c=_0x36e79c;if(_0x5e804f[_0x21709c(0x1a4)]===_0x21709c(0x19e))_0x149a90[_0x21709c(0x1a7)](0x194)[_0x21709c(0x1be)](_0x21709c(0x1da));else return handleError(_0x149a90,null);});},exports['destroy']=function(_0x26fcb7,_0x349699){const _0x25491a=a640_0x810aa;return db[_0x25491a(0x1b2)][_0x25491a(0x1b3)]({'where':{'id':_0x26fcb7['params']['id']}})['then'](function(_0x56bb01){const _0x466774=_0x25491a;if(!_0x56bb01)throw new ReferenceError(_0x466774(0x1dc));return _0x56bb01;})[_0x25491a(0x19b)](function(_0x3b674c){const _0x3c2b40=_0x25491a;let _0x586a68=path[_0x3c2b40(0x1b9)](config[_0x3c2b40(0x196)],_0x3c2b40(0x191),_0x3b674c[_0x3c2b40(0x1ca)]);return logger[_0x3c2b40(0x19a)](_0x3c2b40(0x1d1),_0x586a68),!_['isNil'](_0x3b674c[_0x3c2b40(0x1ca)])&&fs[_0x3c2b40(0x197)](_0x586a68)&&(logger['info'](_0x3c2b40(0x1a2)+_0x586a68+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs[_0x3c2b40(0x19f)](_0x586a68)),_0x586a68=_0x586a68+_0x3c2b40(0x1a3),!_[_0x3c2b40(0x1c5)](_0x3b674c[_0x3c2b40(0x1ca)])&&fs[_0x3c2b40(0x197)](_0x586a68)&&(logger[_0x3c2b40(0x19a)](_0x3c2b40(0x1a2)+_0x586a68+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs[_0x3c2b40(0x19f)](_0x586a68)),_0x3b674c;})[_0x25491a(0x19b)](function(_0x4679a2){if(!_0x4679a2)throw new InternalError();return _0x4679a2['destroy']();})[_0x25491a(0x19b)](function(){const _0x1f888e=_0x25491a;_0x349699[_0x1f888e(0x1a7)](0xcc)[_0x1f888e(0x1e0)]();})[_0x25491a(0x1b5)](handleError(_0x349699,null));}; \ No newline at end of file diff --git a/server/api/screenRecording/screenRecording.model.js b/server/api/screenRecording/screenRecording.model.js index 8eea463..d2f30eb 100644 --- a/server/api/screenRecording/screenRecording.model.js +++ b/server/api/screenRecording/screenRecording.model.js @@ -1 +1 @@ -const a641_0x4e33=['sequelize','./screenRecording.attributes','exports','function','ScreenRecording','init','./screenRecording.options'];(function(_0x49e436,_0x22cefc){const _0x4e33c5=function(_0x4b83b1){while(--_0x4b83b1){_0x49e436['push'](_0x49e436['shift']());}};_0x4e33c5(++_0x22cefc);}(a641_0x4e33,0xff));const a641_0x4b83=function(_0x49e436,_0x22cefc){_0x49e436=_0x49e436-0x123;let _0x4e33c5=a641_0x4e33[_0x49e436];return _0x4e33c5;};const a641_0x3caa5b=a641_0x4b83;'use strict';const {Model}=require(a641_0x3caa5b(0x127)),{attributes}=require(a641_0x3caa5b(0x128)),{options}=require(a641_0x3caa5b(0x126));class ScreenRecording extends Model{}function init(_0x7c342b,_0x34b896){const _0x31be88=a641_0x3caa5b,_0x48d1ac=options(_0x7c342b),_0x54922c=typeof _0x34b896===_0x31be88(0x123)?_0x34b896(_0x48d1ac):_0x48d1ac;return ScreenRecording[_0x31be88(0x125)](attributes,_0x54922c),ScreenRecording;}module[a641_0x3caa5b(0x129)][a641_0x3caa5b(0x124)]=ScreenRecording,module[a641_0x3caa5b(0x129)]['init']=init; \ No newline at end of file +const a641_0x3eed=['exports','function','init','./screenRecording.attributes'];(function(_0x1a1b58,_0x11f4aa){const _0x3eed7e=function(_0x59d3ca){while(--_0x59d3ca){_0x1a1b58['push'](_0x1a1b58['shift']());}};_0x3eed7e(++_0x11f4aa);}(a641_0x3eed,0xff));const a641_0x59d3=function(_0x1a1b58,_0x11f4aa){_0x1a1b58=_0x1a1b58-0x88;let _0x3eed7e=a641_0x3eed[_0x1a1b58];return _0x3eed7e;};const a641_0x2f38b2=a641_0x59d3;'use strict';const {Model}=require('sequelize'),{attributes}=require(a641_0x2f38b2(0x88)),{options}=require('./screenRecording.options');class ScreenRecording extends Model{}function init(_0x5d113d,_0x3a2d49){const _0x141f18=a641_0x2f38b2,_0x4903f0=options(_0x5d113d),_0x129081=typeof _0x3a2d49===_0x141f18(0x8a)?_0x3a2d49(_0x4903f0):_0x4903f0;return ScreenRecording['init'](attributes,_0x129081),ScreenRecording;}module[a641_0x2f38b2(0x89)]['ScreenRecording']=ScreenRecording,module[a641_0x2f38b2(0x89)][a641_0x2f38b2(0x8b)]=init; \ No newline at end of file diff --git a/server/api/screenRecording/screenRecording.options.js b/server/api/screenRecording/screenRecording.options.js index 0f5951c..808c452 100644 --- a/server/api/screenRecording/screenRecording.options.js +++ b/server/api/screenRecording/screenRecording.options.js @@ -1 +1 @@ -var a642_0x2554=['screen_recordings','options'];(function(_0x234fb9,_0x82899e){var _0x255475=function(_0x46828b){while(--_0x46828b){_0x234fb9['push'](_0x234fb9['shift']());}};_0x255475(++_0x82899e);}(a642_0x2554,0xa3));var a642_0x4682=function(_0x234fb9,_0x82899e){_0x234fb9=_0x234fb9-0x1af;var _0x255475=a642_0x2554[_0x234fb9];return _0x255475;};var a642_0x130f26=a642_0x4682;function options(_0x2cd4d3){var _0x2d9e53=a642_0x4682;return{'sequelize':_0x2cd4d3,'tableName':_0x2d9e53(0x1b0),'paranoid':![],'indexes':[{'name':'interactionid','fields':['interactionid']}],'timestamps':!![]};}module['exports'][a642_0x130f26(0x1af)]=options; \ No newline at end of file +var a642_0xdeca=['exports','screen_recordings','interactionid'];(function(_0x4affb8,_0x14679b){var _0xdeca8a=function(_0x118f06){while(--_0x118f06){_0x4affb8['push'](_0x4affb8['shift']());}};_0xdeca8a(++_0x14679b);}(a642_0xdeca,0xd9));var a642_0x118f=function(_0x4affb8,_0x14679b){_0x4affb8=_0x4affb8-0x1b4;var _0xdeca8a=a642_0xdeca[_0x4affb8];return _0xdeca8a;};var a642_0x2230ea=a642_0x118f;function options(_0x115152){var _0x1cead0=a642_0x118f;return{'sequelize':_0x115152,'tableName':_0x1cead0(0x1b4),'paranoid':![],'indexes':[{'name':_0x1cead0(0x1b5),'fields':[_0x1cead0(0x1b5)]}],'timestamps':!![]};}module[a642_0x2230ea(0x1b6)]['options']=options; \ No newline at end of file diff --git a/server/api/setting/index.js b/server/api/setting/index.js index 43adf1a..361cbd8 100644 --- a/server/api/setting/index.js +++ b/server/api/setting/index.js @@ -1 +1 @@ -const a643_0x53ce=['originalname','getDate','addLogo','join','addPreferred','addFavicon','/:id/gdpr','diskStorage','extname','addLogoLogin','%s%s','preferred','show','root','gdpr','favicon','format','/:id/favicon','multer','getPreferred','single','path','../../components/auth/service','../../config/environment','isAuthenticated','index','post','/:id/preferred','/:id/logo','util','/now','getLogoLogin','files/images/logos/','./setting.controller','express','logo','Router','getLogo','/:id','file','get','/:id/logo_login','exports','getFavicon'];(function(_0x445ef1,_0x42834f){const _0x53ced1=function(_0x1ac9d3){while(--_0x1ac9d3){_0x445ef1['push'](_0x445ef1['shift']());}};_0x53ced1(++_0x42834f);}(a643_0x53ce,0x11d));const a643_0x1ac9=function(_0x445ef1,_0x42834f){_0x445ef1=_0x445ef1-0x6f;let _0x53ced1=a643_0x53ce[_0x445ef1];return _0x53ced1;};const a643_0x2b6a0b=a643_0x1ac9;'use strict';const multer=require(a643_0x2b6a0b(0x98)),util=require(a643_0x2b6a0b(0x77)),path=require(a643_0x2b6a0b(0x6f)),express=require(a643_0x2b6a0b(0x7c)),router=express[a643_0x2b6a0b(0x7e)](),auth=require(a643_0x2b6a0b(0x70)),config=require(a643_0x2b6a0b(0x71)),controller=require(a643_0x2b6a0b(0x7b)),upload=_0x3e2b32=>multer({'storage':multer[a643_0x2b6a0b(0x8d)]({'destination':function(_0x323fc3,_0x3778bb,_0x34e8a5){const _0x3d98c8=a643_0x2b6a0b;_0x34e8a5(null,path[_0x3d98c8(0x89)](config[_0x3d98c8(0x93)],_0x3d98c8(0x7a)));},'filename':function(_0x190637,_0x4a1f70,_0x1991a2){const _0x2dcc6e=a643_0x2b6a0b;_0x1991a2(null,util[_0x2dcc6e(0x96)](_0x2dcc6e(0x90),_0x3e2b32,path[_0x2dcc6e(0x8e)](_0x4a1f70[_0x2dcc6e(0x86)])));}})});router['get']('/',auth[a643_0x2b6a0b(0x72)](),controller[a643_0x2b6a0b(0x73)]),router[a643_0x2b6a0b(0x82)](a643_0x2b6a0b(0x78),controller[a643_0x2b6a0b(0x87)]),router[a643_0x2b6a0b(0x82)]('/:id',controller[a643_0x2b6a0b(0x92)]),router[a643_0x2b6a0b(0x82)](a643_0x2b6a0b(0x76),controller[a643_0x2b6a0b(0x7f)]),router[a643_0x2b6a0b(0x82)](a643_0x2b6a0b(0x83),controller[a643_0x2b6a0b(0x79)]),router['get'](a643_0x2b6a0b(0x8c),controller[a643_0x2b6a0b(0x94)]),router['get'](a643_0x2b6a0b(0x75),controller[a643_0x2b6a0b(0x99)]),router[a643_0x2b6a0b(0x82)]('/:id/favicon',controller[a643_0x2b6a0b(0x85)]),router['post'](a643_0x2b6a0b(0x76),upload(a643_0x2b6a0b(0x7d))[a643_0x2b6a0b(0x9a)](a643_0x2b6a0b(0x81)),controller[a643_0x2b6a0b(0x88)]),router['post'](a643_0x2b6a0b(0x83),upload('logologin')['single'](a643_0x2b6a0b(0x81)),controller[a643_0x2b6a0b(0x8f)]),router[a643_0x2b6a0b(0x74)](a643_0x2b6a0b(0x75),upload(a643_0x2b6a0b(0x91))['single']('file'),controller[a643_0x2b6a0b(0x8a)]),router['post'](a643_0x2b6a0b(0x97),upload(a643_0x2b6a0b(0x95))[a643_0x2b6a0b(0x9a)](a643_0x2b6a0b(0x81)),controller[a643_0x2b6a0b(0x8b)]),router['put'](a643_0x2b6a0b(0x80),auth[a643_0x2b6a0b(0x72)](),controller['update']),module[a643_0x2b6a0b(0x84)]=router; \ No newline at end of file +const a643_0x4237=['show','addLogo','getLogo','/:id/favicon','favicon','/now','getDate','%s%s','preferred','/:id/logo_login','get','update','exports','file','/:id','path','post','getPreferred','files/images/logos/','diskStorage','../../config/environment','index','addPreferred','addLogoLogin','logologin','getFavicon','single','util','multer','/:id/gdpr','/:id/preferred','./setting.controller','put','../../components/auth/service','format','/:id/logo','gdpr','getLogoLogin'];(function(_0x5cd159,_0x9e455c){const _0x4237f2=function(_0x4e4696){while(--_0x4e4696){_0x5cd159['push'](_0x5cd159['shift']());}};_0x4237f2(++_0x9e455c);}(a643_0x4237,0x163));const a643_0x4e46=function(_0x5cd159,_0x9e455c){_0x5cd159=_0x5cd159-0x180;let _0x4237f2=a643_0x4237[_0x5cd159];return _0x4237f2;};const a643_0x5be464=a643_0x4e46;'use strict';const multer=require(a643_0x5be464(0x18f)),util=require(a643_0x5be464(0x18e)),path=require(a643_0x5be464(0x182)),express=require('express'),router=express['Router'](),auth=require(a643_0x5be464(0x194)),config=require(a643_0x5be464(0x187)),controller=require(a643_0x5be464(0x192)),upload=_0x5daf86=>multer({'storage':multer[a643_0x5be464(0x186)]({'destination':function(_0x4d750b,_0x332b0d,_0x286849){const _0x23150f=a643_0x5be464;_0x286849(null,path['join'](config['root'],_0x23150f(0x185)));},'filename':function(_0x3020a3,_0x12df2d,_0x13dc31){const _0x22cd39=a643_0x5be464;_0x13dc31(null,util[_0x22cd39(0x195)](_0x22cd39(0x1a0),_0x5daf86,path['extname'](_0x12df2d['originalname'])));}})});router[a643_0x5be464(0x1a3)]('/',auth['isAuthenticated'](),controller[a643_0x5be464(0x188)]),router[a643_0x5be464(0x1a3)](a643_0x5be464(0x19e),controller[a643_0x5be464(0x19f)]),router[a643_0x5be464(0x1a3)](a643_0x5be464(0x181),controller[a643_0x5be464(0x199)]),router[a643_0x5be464(0x1a3)]('/:id/logo',controller[a643_0x5be464(0x19b)]),router[a643_0x5be464(0x1a3)](a643_0x5be464(0x1a2),controller[a643_0x5be464(0x198)]),router['get'](a643_0x5be464(0x190),controller[a643_0x5be464(0x197)]),router['get'](a643_0x5be464(0x191),controller[a643_0x5be464(0x184)]),router[a643_0x5be464(0x1a3)]('/:id/favicon',controller[a643_0x5be464(0x18c)]),router[a643_0x5be464(0x183)](a643_0x5be464(0x196),upload('logo')[a643_0x5be464(0x18d)](a643_0x5be464(0x180)),controller[a643_0x5be464(0x19a)]),router[a643_0x5be464(0x183)](a643_0x5be464(0x1a2),upload(a643_0x5be464(0x18b))[a643_0x5be464(0x18d)](a643_0x5be464(0x180)),controller[a643_0x5be464(0x18a)]),router[a643_0x5be464(0x183)](a643_0x5be464(0x191),upload(a643_0x5be464(0x1a1))[a643_0x5be464(0x18d)](a643_0x5be464(0x180)),controller[a643_0x5be464(0x189)]),router[a643_0x5be464(0x183)](a643_0x5be464(0x19c),upload(a643_0x5be464(0x19d))['single']('file'),controller['addFavicon']),router[a643_0x5be464(0x193)](a643_0x5be464(0x181),auth['isAuthenticated'](),controller[a643_0x5be464(0x1a4)]),module[a643_0x5be464(0x1a5)]=router; \ No newline at end of file diff --git a/server/api/setting/setting.attributes.js b/server/api/setting/setting.attributes.js index 8db7caf..038f118 100644 --- a/server/api/setting/setting.attributes.js +++ b/server/api/setting/setting.attributes.js @@ -1 +1 @@ -const a644_0x2ee0=['/var/opt/motion2/server/files/sounds/converted','alternate','attributes','INTEGER','BOOLEAN','UNSIGNED','exports','STRING','https://www.xcally.com/bar/phonebar/autoupdater.xml'];(function(_0x993f1c,_0x3e927a){const _0x2ee037=function(_0x34958b){while(--_0x34958b){_0x993f1c['push'](_0x993f1c['shift']());}};_0x2ee037(++_0x3e927a);}(a644_0x2ee0,0x6a));const a644_0x3495=function(_0x993f1c,_0x3e927a){_0x993f1c=_0x993f1c-0x1e4;let _0x2ee037=a644_0x2ee0[_0x993f1c];return _0x2ee037;};const a644_0x2a7d1d=a644_0x3495;'use strict';const {DataTypes}=require('sequelize'),attributes={'min_internal':{'type':DataTypes['INTEGER']({'length':0xb}),'unique':'min_internal','defaultValue':0x3e8},'min_mailbox':{'type':DataTypes['INTEGER']({'length':0xb}),'unique':'min_mailbox','defaultValue':0x3e8},'agi_port':{'type':DataTypes[a644_0x2a7d1d(0x1e9)]({'length':0xb}),'defaultValue':0x11dd},'soundPath':{'type':DataTypes[a644_0x2a7d1d(0x1e4)],'defaultValue':a644_0x2a7d1d(0x1e6)},'logo':{'type':DataTypes[a644_0x2a7d1d(0x1e4)]},'defaultLogo':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'loginLogo':{'type':DataTypes['STRING']},'defaultLoginLogo':{'type':DataTypes[a644_0x2a7d1d(0x1ea)],'defaultValue':!![]},'headerWhiteLabel':{'type':DataTypes[a644_0x2a7d1d(0x1e4)]},'defaultHeaderWhiteLabel':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'securePassword':{'type':DataTypes[a644_0x2a7d1d(0x1ea)],'defaultValue':!![]},'firstSetup':{'type':DataTypes[a644_0x2a7d1d(0x1ea)],'defaultValue':!![]},'stunaddr':{'type':DataTypes[a644_0x2a7d1d(0x1e4)]},'turnaddr':{'type':DataTypes[a644_0x2a7d1d(0x1e4)]},'turnusername':{'type':DataTypes['STRING']},'turnpassword':{'type':DataTypes[a644_0x2a7d1d(0x1e4)]},'pageTitle':{'type':DataTypes[a644_0x2a7d1d(0x1e4)]},'defaultPageTitle':{'type':DataTypes[a644_0x2a7d1d(0x1ea)],'defaultValue':!![]},'callRecordingEncryption':{'type':DataTypes[a644_0x2a7d1d(0x1ea)],'defaultValue':![]},'passwordExpiresDays':{'type':DataTypes[a644_0x2a7d1d(0x1e9)]({'length':0xb}),'defaultValue':0x5a},'phoneBarAutoUpdater':{'type':DataTypes[a644_0x2a7d1d(0x1ea)],'defaultValue':!![]},'phoneBarAutoUpdaterUrl':{'type':DataTypes[a644_0x2a7d1d(0x1e4)],'defaultValue':a644_0x2a7d1d(0x1e5)},'enableEmailPreview':{'type':DataTypes[a644_0x2a7d1d(0x1ea)],'defaultValue':![]},'split':{'type':DataTypes[a644_0x2a7d1d(0x1ea)],'defaultValue':!![]},'splitSizeCsv':{'type':DataTypes[a644_0x2a7d1d(0x1e9)],'defaultValue':0x1388},'splitSizePdf':{'type':DataTypes[a644_0x2a7d1d(0x1e9)],'defaultValue':0x1388},'splitSizeXlsx':{'type':DataTypes[a644_0x2a7d1d(0x1e9)],'defaultValue':0x1388},'messagesAlignment':{'type':DataTypes[a644_0x2a7d1d(0x1e4)],'defaultValue':a644_0x2a7d1d(0x1e7)},'chatTimeout':{'type':DataTypes['INTEGER'],'defaultValue':0x1e},'phoneBarRememberMeEnabled':{'type':DataTypes[a644_0x2a7d1d(0x1ea)],'defaultValue':!![]},'preferred':{'type':DataTypes[a644_0x2a7d1d(0x1e4)]},'defaultPreferred':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'rtlSupport':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'defaultScreenRecordingPath':{'type':DataTypes[a644_0x2a7d1d(0x1e4)]},'allowedLoginAttempts':{'type':DataTypes['INTEGER'],'defaultValue':0x5},'blockDuration':{'type':DataTypes[a644_0x2a7d1d(0x1e9)],'defaultValue':0xa},'favicon':{'type':DataTypes[a644_0x2a7d1d(0x1e4)]},'defaultFavicon':{'type':DataTypes[a644_0x2a7d1d(0x1ea)],'defaultValue':!![]},'loginMailFrequency':{'type':DataTypes[a644_0x2a7d1d(0x1e9)],'defaultValue':0xa,'validate':{'min':0xa}},'transcribe':{'type':DataTypes[a644_0x2a7d1d(0x1ea)],'defaultValue':![]},'automaticTranscribe':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'transcribeAccountId':{'type':DataTypes['INTEGER']},'transcribeRegion':{'type':DataTypes['STRING']},'sentiment':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'automaticSentiment':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'sentimentAccountId':{'type':DataTypes[a644_0x2a7d1d(0x1e9)]},'sentimentRegion':{'type':DataTypes['STRING']},'language':{'type':DataTypes['STRING']},'bucket':{'type':DataTypes['STRING']},'googleSsoEnabled':{'type':DataTypes[a644_0x2a7d1d(0x1ea)],'defaultValue':![]},'enforcePasswordHistory':{'type':DataTypes[a644_0x2a7d1d(0x1ea)],'defaultValue':!![]},'passwordHistoryLimit':{'type':DataTypes[a644_0x2a7d1d(0x1e9)]({'length':0x2})[a644_0x2a7d1d(0x1eb)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}};module[a644_0x2a7d1d(0x1ec)][a644_0x2a7d1d(0x1e8)]=attributes; \ No newline at end of file +const a644_0x5631=['BOOLEAN','min_mailbox','alternate','INTEGER','exports','min_internal','STRING','/var/opt/motion2/server/files/sounds/converted'];(function(_0x25570e,_0x36f304){const _0x5631a1=function(_0x46602a){while(--_0x46602a){_0x25570e['push'](_0x25570e['shift']());}};_0x5631a1(++_0x36f304);}(a644_0x5631,0x6f));const a644_0x4660=function(_0x25570e,_0x36f304){_0x25570e=_0x25570e-0x14d;let _0x5631a1=a644_0x5631[_0x25570e];return _0x5631a1;};const a644_0x189cdd=a644_0x4660;'use strict';const {DataTypes}=require('sequelize'),attributes={'min_internal':{'type':DataTypes['INTEGER']({'length':0xb}),'unique':a644_0x189cdd(0x153),'defaultValue':0x3e8},'min_mailbox':{'type':DataTypes[a644_0x189cdd(0x151)]({'length':0xb}),'unique':a644_0x189cdd(0x14f),'defaultValue':0x3e8},'agi_port':{'type':DataTypes[a644_0x189cdd(0x151)]({'length':0xb}),'defaultValue':0x11dd},'soundPath':{'type':DataTypes['STRING'],'defaultValue':a644_0x189cdd(0x14d)},'logo':{'type':DataTypes[a644_0x189cdd(0x154)]},'defaultLogo':{'type':DataTypes[a644_0x189cdd(0x14e)],'defaultValue':!![]},'loginLogo':{'type':DataTypes[a644_0x189cdd(0x154)]},'defaultLoginLogo':{'type':DataTypes[a644_0x189cdd(0x14e)],'defaultValue':!![]},'headerWhiteLabel':{'type':DataTypes[a644_0x189cdd(0x154)]},'defaultHeaderWhiteLabel':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'securePassword':{'type':DataTypes[a644_0x189cdd(0x14e)],'defaultValue':!![]},'firstSetup':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'stunaddr':{'type':DataTypes[a644_0x189cdd(0x154)]},'turnaddr':{'type':DataTypes[a644_0x189cdd(0x154)]},'turnusername':{'type':DataTypes['STRING']},'turnpassword':{'type':DataTypes[a644_0x189cdd(0x154)]},'pageTitle':{'type':DataTypes[a644_0x189cdd(0x154)]},'defaultPageTitle':{'type':DataTypes[a644_0x189cdd(0x14e)],'defaultValue':!![]},'callRecordingEncryption':{'type':DataTypes[a644_0x189cdd(0x14e)],'defaultValue':![]},'passwordExpiresDays':{'type':DataTypes[a644_0x189cdd(0x151)]({'length':0xb}),'defaultValue':0x5a},'phoneBarAutoUpdater':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'phoneBarAutoUpdaterUrl':{'type':DataTypes['STRING'],'defaultValue':'https://www.xcally.com/bar/phonebar/autoupdater.xml'},'enableEmailPreview':{'type':DataTypes[a644_0x189cdd(0x14e)],'defaultValue':![]},'split':{'type':DataTypes[a644_0x189cdd(0x14e)],'defaultValue':!![]},'splitSizeCsv':{'type':DataTypes[a644_0x189cdd(0x151)],'defaultValue':0x1388},'splitSizePdf':{'type':DataTypes[a644_0x189cdd(0x151)],'defaultValue':0x1388},'splitSizeXlsx':{'type':DataTypes[a644_0x189cdd(0x151)],'defaultValue':0x1388},'messagesAlignment':{'type':DataTypes[a644_0x189cdd(0x154)],'defaultValue':a644_0x189cdd(0x150)},'chatTimeout':{'type':DataTypes[a644_0x189cdd(0x151)],'defaultValue':0x1e},'phoneBarRememberMeEnabled':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'preferred':{'type':DataTypes['STRING']},'defaultPreferred':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'rtlSupport':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'defaultScreenRecordingPath':{'type':DataTypes[a644_0x189cdd(0x154)]},'allowedLoginAttempts':{'type':DataTypes['INTEGER'],'defaultValue':0x5},'blockDuration':{'type':DataTypes['INTEGER'],'defaultValue':0xa},'favicon':{'type':DataTypes[a644_0x189cdd(0x154)]},'defaultFavicon':{'type':DataTypes[a644_0x189cdd(0x14e)],'defaultValue':!![]},'loginMailFrequency':{'type':DataTypes[a644_0x189cdd(0x151)],'defaultValue':0xa,'validate':{'min':0xa}},'transcribe':{'type':DataTypes[a644_0x189cdd(0x14e)],'defaultValue':![]},'automaticTranscribe':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'transcribeAccountId':{'type':DataTypes[a644_0x189cdd(0x151)]},'transcribeRegion':{'type':DataTypes['STRING']},'sentiment':{'type':DataTypes[a644_0x189cdd(0x14e)],'defaultValue':![]},'automaticSentiment':{'type':DataTypes[a644_0x189cdd(0x14e)],'defaultValue':![]},'sentimentAccountId':{'type':DataTypes[a644_0x189cdd(0x151)]},'sentimentRegion':{'type':DataTypes['STRING']},'language':{'type':DataTypes['STRING']},'bucket':{'type':DataTypes['STRING']},'googleSsoEnabled':{'type':DataTypes[a644_0x189cdd(0x14e)],'defaultValue':![]},'enforcePasswordHistory':{'type':DataTypes[a644_0x189cdd(0x14e)],'defaultValue':!![]},'passwordHistoryLimit':{'type':DataTypes[a644_0x189cdd(0x151)]({'length':0x2})['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}};module[a644_0x189cdd(0x152)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/setting/setting.controller.js b/server/api/setting/setting.controller.js index 7dbc3a2..191855f 100644 --- a/server/api/setting/setting.controller.js +++ b/server/api/setting/setting.controller.js @@ -1 +1 @@ -const a645_0x4be0=['body','stack','send','path','filename','logo','findOne','getLogo','model','defaultPreferred','Content-Range','count','YYYY-MM-DD\x20HH:mm:ss:SSS','../../config/license/util','attributes','getLogoLogin','merge','join','offset','defaultLogo','rawAttributes','catch','addLogoLogin','favicon','filters','params','status','default_loginLogo.svg','then','name','VIRTUAL','getLicense','where','include','lodash','query','show','like','options','keys','undefined','key','addLogo','fields','api','utcOffset','index','set','../../mysqldb','default_logo.svg','../../config/logger','type','default_preferred.png','existsSync','getDate','files/images/logos','../../components/parsers/qs','filter','error','Setting','limit','update','map','nolimit','download','loginLogo','defaultLoginLogo','default','intersection','toLower','json','defaultFavicon','sort','securePassword','root','addPreferred','sequelize','addFavicon','../../config/environment','preferred','upperFirst','\x20not\x20found','gdpr','file','custom','order'];(function(_0xf695f8,_0x4f9269){const _0x4be00e=function(_0x44255f){while(--_0x44255f){_0xf695f8['push'](_0xf695f8['shift']());}};_0x4be00e(++_0x4f9269);}(a645_0x4be0,0x1d2));const a645_0x4425=function(_0xf695f8,_0x4f9269){_0xf695f8=_0xf695f8-0x1ed;let _0x4be00e=a645_0x4be0[_0xf695f8];return _0x4be00e;};const a645_0x1568be=a645_0x4425;'use strict';const path=require(a645_0x1568be(0x222)),fs=require('fs'),_=require(a645_0x1568be(0x241)),qs=require(a645_0x1568be(0x201)),logger=require(a645_0x1568be(0x1fb))(a645_0x1568be(0x1f5)),config=require(a645_0x1568be(0x217)),{db}=require(a645_0x1568be(0x1f9)),{Op,ValidationError}=require(a645_0x1568be(0x215)),utilLicense=require(a645_0x1568be(0x22c)),moment=require('moment');function respondWithResult(_0x55f5dc,_0x7109f0){return _0x7109f0=_0x7109f0||0xc8,function(_0x5a9ca1){const _0x43662b=a645_0x4425;if(_0x5a9ca1)return _0x55f5dc['status'](_0x7109f0)[_0x43662b(0x20f)](_0x5a9ca1);};}function respondWithFilteredResult(_0x3d9d12,_0x34ae2e){return function(_0xacbf33){const _0x1593f6=a645_0x4425;if(_0xacbf33){const _0x1c46cf=_0xacbf33[_0x1593f6(0x22a)],_0xc06d7e=_0x34ae2e['offset'];let _0x4cae4e=_0x34ae2e[_0x1593f6(0x231)]+_0x34ae2e['limit'],_0x3174d5;return _0x4cae4e>=_0x1c46cf?(_0x4cae4e=_0x1c46cf,_0x3174d5=0xc8):_0x3174d5=0xce,_0x3d9d12[_0x1593f6(0x239)](_0x3174d5),_0x3d9d12[_0x1593f6(0x1f8)](_0x1593f6(0x229),_0xc06d7e+'-'+_0x4cae4e+'/'+_0x1c46cf)[_0x1593f6(0x20f)](_0xacbf33);}return null;};}function saveUpdates(_0x4c51d4){return function(_0x4b2a66){const _0x270b88=a645_0x4425;if(_0x4b2a66)return _0x4b2a66[_0x270b88(0x206)](_0x4c51d4)[_0x270b88(0x23b)](function(_0x515e1d){return _0x515e1d;});return null;};}function handleEntityNotFound(_0x2c7464){return function(_0x1ff752){return!_0x1ff752&&_0x2c7464['sendStatus'](0x194),_0x1ff752;};}function handleError(_0x3b330a,_0x17440d){return _0x17440d=_0x17440d||0x1f4,function(_0x14e8a9){const _0x553e23=a645_0x4425;logger[_0x553e23(0x203)](_0x14e8a9[_0x553e23(0x220)]),_0x14e8a9[_0x553e23(0x23c)]&&delete _0x14e8a9[_0x553e23(0x23c)],_0x3b330a[_0x553e23(0x239)](_0x17440d)[_0x553e23(0x221)](_0x14e8a9);};}exports[a645_0x1568be(0x1f7)]=function(_0x152f08,_0x66f17c){const _0x48257d=a645_0x1568be;let _0xdcdb2a={};const _0x2aca23={},_0x7574b3={'count':0x0,'rows':[]},_0x1dbeb5=_[_0x48257d(0x207)](db[_0x48257d(0x204)][_0x48257d(0x233)],function(_0x1023aa){const _0x18900a=_0x48257d;return{'name':_0x1023aa['fieldName'],'type':_0x1023aa[_0x18900a(0x1fc)][_0x18900a(0x1f2)]};});_0x2aca23[_0x48257d(0x227)]=_[_0x48257d(0x207)](_0x1dbeb5,'name'),_0x2aca23['query']=_[_0x48257d(0x1f0)](_0x152f08[_0x48257d(0x242)]),_0x2aca23[_0x48257d(0x237)]=_[_0x48257d(0x20d)](_0x2aca23[_0x48257d(0x227)],_0x2aca23['query']),_0xdcdb2a[_0x48257d(0x22d)]=_['intersection'](_0x2aca23[_0x48257d(0x227)],qs[_0x48257d(0x1f4)](_0x152f08['query'][_0x48257d(0x1f4)])),_0xdcdb2a[_0x48257d(0x22d)]=_0xdcdb2a['attributes']['length']?_0xdcdb2a[_0x48257d(0x22d)]:_0x2aca23[_0x48257d(0x227)];typeof _0x152f08[_0x48257d(0x242)][_0x48257d(0x208)]===_0x48257d(0x1f1)&&(_0xdcdb2a[_0x48257d(0x205)]=qs['limit'](_0x152f08[_0x48257d(0x242)][_0x48257d(0x205)]),_0xdcdb2a[_0x48257d(0x231)]=qs[_0x48257d(0x231)](_0x152f08[_0x48257d(0x242)][_0x48257d(0x231)]));_0xdcdb2a[_0x48257d(0x21e)]=qs[_0x48257d(0x211)](_0x152f08[_0x48257d(0x242)][_0x48257d(0x211)]),_0xdcdb2a['where']=qs[_0x48257d(0x237)](_['pick'](_0x152f08[_0x48257d(0x242)],_0x2aca23['filters']),_0x1dbeb5);_0x152f08[_0x48257d(0x242)][_0x48257d(0x202)]&&(_0xdcdb2a[_0x48257d(0x23f)]=_['merge'](_0xdcdb2a[_0x48257d(0x23f)],{[Op['or']]:_[_0x48257d(0x207)](_0x1dbeb5,function(_0x654c72){const _0x25fc81=_0x48257d;if(_0x654c72[_0x25fc81(0x1fc)]!==_0x25fc81(0x23d)){const _0x485232={};return _0x485232[_0x654c72[_0x25fc81(0x23c)]]={[Op[_0x25fc81(0x1ee)]]:'%'+_0x152f08['query'][_0x25fc81(0x202)]+'%'},_0x485232;}})}));_0xdcdb2a=_['merge']({},_0xdcdb2a,_0x152f08[_0x48257d(0x1ef)]);const _0x423e7e={'where':_0xdcdb2a[_0x48257d(0x23f)]};return db[_0x48257d(0x204)]['count'](_0x423e7e)[_0x48257d(0x23b)](function(_0xe6c8b7){const _0x19a4f4=_0x48257d;return _0x7574b3[_0x19a4f4(0x22a)]=_0xe6c8b7,_0x152f08['query']['includeAll']&&(_0xdcdb2a[_0x19a4f4(0x240)]=[{'all':!![]}]),db[_0x19a4f4(0x204)]['findAll'](_0xdcdb2a);})[_0x48257d(0x23b)](function(_0x548a21){return _0x7574b3['rows']=_0x548a21,_0x7574b3;})[_0x48257d(0x23b)](respondWithFilteredResult(_0x66f17c,_0xdcdb2a))['catch'](handleError(_0x66f17c,null));},exports[a645_0x1568be(0x1ed)]=function(_0x3f918d,_0x2a1c6e){const _0x5d4351=a645_0x1568be;let _0x522adc={'raw':![],'where':{'id':_0x3f918d[_0x5d4351(0x238)]['id']}};const _0x6c1f51={};return _0x6c1f51[_0x5d4351(0x227)]=_[_0x5d4351(0x1f0)](db['Setting'][_0x5d4351(0x233)]),_0x6c1f51[_0x5d4351(0x242)]=_[_0x5d4351(0x1f0)](_0x3f918d[_0x5d4351(0x242)]),_0x6c1f51[_0x5d4351(0x237)]=_['intersection'](_0x6c1f51[_0x5d4351(0x227)],_0x6c1f51['query']),_0x522adc[_0x5d4351(0x22d)]=_[_0x5d4351(0x20d)](_0x6c1f51[_0x5d4351(0x227)],qs['fields'](_0x3f918d['query'][_0x5d4351(0x1f4)])),_0x522adc['attributes']=_0x522adc[_0x5d4351(0x22d)]['length']?_0x522adc[_0x5d4351(0x22d)]:_0x6c1f51[_0x5d4351(0x227)],_0x3f918d[_0x5d4351(0x242)]['includeAll']&&(_0x522adc[_0x5d4351(0x240)]=[{'all':!![]}]),_0x522adc=_[_0x5d4351(0x22f)]({},_0x522adc,_0x3f918d[_0x5d4351(0x1ef)]),db[_0x5d4351(0x204)]['findOne'](_0x522adc)[_0x5d4351(0x23b)](handleEntityNotFound(_0x2a1c6e,null))[_0x5d4351(0x23b)](respondWithResult(_0x2a1c6e,null))['catch'](handleError(_0x2a1c6e,null));},exports[a645_0x1568be(0x206)]=function(_0x48bc8c,_0x290821){const _0x19ffc6=a645_0x1568be;return _0x48bc8c[_0x19ffc6(0x21f)]['id']&&delete _0x48bc8c[_0x19ffc6(0x21f)]['id'],db[_0x19ffc6(0x204)][_0x19ffc6(0x225)]({'where':{'id':_0x48bc8c['params']['id']}})[_0x19ffc6(0x23b)](handleEntityNotFound(_0x290821,null))[_0x19ffc6(0x23b)](saveUpdates(_0x48bc8c[_0x19ffc6(0x21f)],null))[_0x19ffc6(0x23b)](respondWithResult(_0x290821,null))['catch'](handleError(_0x290821,null));},exports[a645_0x1568be(0x1f3)]=function(_0xf768fd,_0x3a185d){const _0x2112e6=a645_0x1568be;return _0xf768fd['file']&&_0xf768fd[_0x2112e6(0x21c)][_0x2112e6(0x223)]&&(_0xf768fd['body'][_0x2112e6(0x224)]=_0xf768fd[_0x2112e6(0x21c)][_0x2112e6(0x223)]),db[_0x2112e6(0x204)][_0x2112e6(0x225)]({'where':{'id':_0xf768fd[_0x2112e6(0x238)]['id']}})[_0x2112e6(0x23b)](handleEntityNotFound(_0x3a185d,null))['then'](saveUpdates(_0xf768fd[_0x2112e6(0x21f)],null))[_0x2112e6(0x23b)](respondWithResult(_0x3a185d,null))[_0x2112e6(0x234)](handleError(_0x3a185d,null));},exports[a645_0x1568be(0x235)]=function(_0x2181c8,_0x2c2f85){const _0x5e5723=a645_0x1568be;return _0x2181c8[_0x5e5723(0x21c)]&&_0x2181c8[_0x5e5723(0x21c)][_0x5e5723(0x223)]&&(_0x2181c8[_0x5e5723(0x21f)][_0x5e5723(0x20a)]=_0x2181c8['file'][_0x5e5723(0x223)]),db['Setting']['findOne']({'where':{'id':_0x2181c8['params']['id']}})[_0x5e5723(0x23b)](handleEntityNotFound(_0x2c2f85,null))['then'](saveUpdates(_0x2181c8[_0x5e5723(0x21f)],null))[_0x5e5723(0x23b)](respondWithResult(_0x2c2f85,null))['catch'](handleError(_0x2c2f85,null));},exports[a645_0x1568be(0x226)]=function(_0x12b0bc,_0x1034a6){const _0x376218=a645_0x1568be,_0x5a34ab=path[_0x376218(0x230)](config[_0x376218(0x213)],_0x376218(0x200));let _0x2720eb={'custom':![]};return utilLicense[_0x376218(0x23e)]()[_0x376218(0x23b)](function(_0x3dad0c){const _0x1d22e9=_0x376218;return _0x3dad0c&&(_0x2720eb=_0x3dad0c),db[_0x1d22e9(0x204)][_0x1d22e9(0x225)]({'where':{'id':_0x12b0bc['params']['id']},'attributes':['logo',_0x1d22e9(0x20a),_0x1d22e9(0x218),_0x1d22e9(0x236),_0x1d22e9(0x232),_0x1d22e9(0x20b),_0x1d22e9(0x228),_0x1d22e9(0x210)],'raw':!![]});})[_0x376218(0x23b)](handleEntityNotFound(_0x1034a6,null))[_0x376218(0x23b)](function(_0x5aae8d){const _0x3b2c98=_0x376218;if(_0x5aae8d){let _0x3974b5=_0x5aae8d[_0x3b2c98(0x224)]&&fs[_0x3b2c98(0x1fe)](path[_0x3b2c98(0x230)](_0x5a34ab,_[_0x3b2c98(0x20e)](_0x5aae8d['logo'])))?path[_0x3b2c98(0x230)](_0x5a34ab,_[_0x3b2c98(0x20e)](_0x5aae8d[_0x3b2c98(0x224)])):path[_0x3b2c98(0x230)](_0x5a34ab,_['toLower'](_0x3b2c98(0x1fa)));const _0x6cd345=_0x3b2c98(0x20c)+_[_0x3b2c98(0x219)]('logo');(_0x5aae8d[_0x6cd345]||!_0x2720eb['custom'])&&(_0x3974b5=path[_0x3b2c98(0x230)](_0x5a34ab,_[_0x3b2c98(0x20e)](_0x3b2c98(0x1fa))));if(!fs[_0x3b2c98(0x1fe)](_0x3974b5))throw new ValidationError(_['upperFirst'](_0x3b2c98(0x224))+_0x3b2c98(0x21a));return _0x1034a6[_0x3b2c98(0x209)](_0x3974b5);}})[_0x376218(0x234)](handleError(_0x1034a6,null));},exports[a645_0x1568be(0x22e)]=function(_0x447708,_0x2ab516){const _0x43a9bc=a645_0x1568be,_0x5405ba=path[_0x43a9bc(0x230)](config[_0x43a9bc(0x213)],'files/images/logos');let _0x3cd0e5={'custom':![]};return utilLicense['getLicense']()['then'](function(_0x324266){const _0x3d8708=_0x43a9bc;return _0x324266&&(_0x3cd0e5=_0x324266),db[_0x3d8708(0x204)][_0x3d8708(0x225)]({'where':{'id':_0x447708['params']['id']},'attributes':[_0x3d8708(0x224),'loginLogo',_0x3d8708(0x218),_0x3d8708(0x236),_0x3d8708(0x232),_0x3d8708(0x20b),'defaultPreferred',_0x3d8708(0x210)],'raw':!![]});})[_0x43a9bc(0x23b)](handleEntityNotFound(_0x2ab516,null))[_0x43a9bc(0x23b)](function(_0x4b4289){const _0x5b52fb=_0x43a9bc;if(_0x4b4289){let _0x47813c=_0x4b4289[_0x5b52fb(0x20a)]&&fs[_0x5b52fb(0x1fe)](path[_0x5b52fb(0x230)](_0x5405ba,_[_0x5b52fb(0x20e)](_0x4b4289[_0x5b52fb(0x20a)])))?path[_0x5b52fb(0x230)](_0x5405ba,_[_0x5b52fb(0x20e)](_0x4b4289[_0x5b52fb(0x20a)])):path[_0x5b52fb(0x230)](_0x5405ba,_[_0x5b52fb(0x20e)](_0x5b52fb(0x23a)));const _0x5f4852=_0x5b52fb(0x20c)+_[_0x5b52fb(0x219)](_0x5b52fb(0x20a));(_0x4b4289[_0x5f4852]||!_0x3cd0e5[_0x5b52fb(0x21d)])&&(_0x47813c=path[_0x5b52fb(0x230)](_0x5405ba,_['toLower'](_0x5b52fb(0x23a))));if(!fs[_0x5b52fb(0x1fe)](_0x47813c))throw new ValidationError(_[_0x5b52fb(0x219)]('loginLogo')+_0x5b52fb(0x21a));return _0x2ab516['download'](_0x47813c);}})[_0x43a9bc(0x234)](handleError(_0x2ab516,null));},exports[a645_0x1568be(0x21b)]=function(_0x4290fa,_0x54a557){const _0x5130a6=a645_0x1568be;return db[_0x5130a6(0x204)][_0x5130a6(0x225)]({'where':{'id':_0x4290fa[_0x5130a6(0x238)]['id']},'attributes':[_0x5130a6(0x212)]})[_0x5130a6(0x23b)](respondWithResult(_0x54a557,null))[_0x5130a6(0x234)](handleError(_0x54a557,null));},exports[a645_0x1568be(0x214)]=function(_0x53b706,_0x2fa0e0){const _0x2e9d87=a645_0x1568be;return _0x53b706[_0x2e9d87(0x21c)]&&_0x53b706[_0x2e9d87(0x21c)][_0x2e9d87(0x223)]&&(_0x53b706[_0x2e9d87(0x21f)][_0x2e9d87(0x218)]=_0x53b706[_0x2e9d87(0x21c)][_0x2e9d87(0x223)]),db['Setting']['findOne']({'where':{'id':_0x53b706[_0x2e9d87(0x238)]['id']}})[_0x2e9d87(0x23b)](handleEntityNotFound(_0x2fa0e0,null))['then'](saveUpdates(_0x53b706[_0x2e9d87(0x21f)],null))[_0x2e9d87(0x23b)](respondWithResult(_0x2fa0e0,null))[_0x2e9d87(0x234)](handleError(_0x2fa0e0,null));},exports['getPreferred']=function(_0x124205,_0x2f18c3){const _0x122bcb=a645_0x1568be,_0x41ad54=path[_0x122bcb(0x230)](config[_0x122bcb(0x213)],_0x122bcb(0x200));let _0x280e9f={'custom':![]};return utilLicense[_0x122bcb(0x23e)]()[_0x122bcb(0x23b)](function(_0x1c5966){const _0x4b0bce=_0x122bcb;return _0x1c5966&&(_0x280e9f=_0x1c5966),db[_0x4b0bce(0x204)]['findOne']({'where':{'id':_0x124205['params']['id']},'attributes':['logo','loginLogo',_0x4b0bce(0x218),_0x4b0bce(0x236),'defaultLogo','defaultLoginLogo',_0x4b0bce(0x228),_0x4b0bce(0x210)],'raw':!![]});})['then'](handleEntityNotFound(_0x2f18c3,null))[_0x122bcb(0x23b)](function(_0x3a65f2){const _0x5461dc=_0x122bcb;if(_0x3a65f2){let _0x207b79=_0x3a65f2[_0x5461dc(0x218)]&&fs[_0x5461dc(0x1fe)](path[_0x5461dc(0x230)](_0x41ad54,_['toLower'](_0x3a65f2['preferred'])))?path[_0x5461dc(0x230)](_0x41ad54,_['toLower'](_0x3a65f2[_0x5461dc(0x218)])):path['join'](_0x41ad54,_['toLower'](_0x5461dc(0x1fd)));const _0x14b900=_0x5461dc(0x20c)+_[_0x5461dc(0x219)]('preferred');(_0x3a65f2[_0x14b900]||!_0x280e9f[_0x5461dc(0x21d)]||!_0x280e9f[_0x5461dc(0x218)])&&(_0x207b79=path[_0x5461dc(0x230)](_0x41ad54,_['toLower']('default_preferred.png')));if(!fs[_0x5461dc(0x1fe)](_0x207b79))throw new ValidationError(_[_0x5461dc(0x219)]('preferred')+_0x5461dc(0x21a));return _0x2f18c3[_0x5461dc(0x209)](_0x207b79);}})['catch'](handleError(_0x2f18c3,null));},exports[a645_0x1568be(0x216)]=function(_0x86dbfb,_0x1f1c82){const _0x48439e=a645_0x1568be;return _0x86dbfb[_0x48439e(0x21c)]&&_0x86dbfb[_0x48439e(0x21c)][_0x48439e(0x223)]&&(_0x86dbfb[_0x48439e(0x21f)]['favicon']=_0x86dbfb['file']['filename']),db[_0x48439e(0x204)][_0x48439e(0x225)]({'where':{'id':_0x86dbfb[_0x48439e(0x238)]['id']}})[_0x48439e(0x23b)](handleEntityNotFound(_0x1f1c82,null))[_0x48439e(0x23b)](saveUpdates(_0x86dbfb[_0x48439e(0x21f)],null))[_0x48439e(0x23b)](respondWithResult(_0x1f1c82,null))[_0x48439e(0x234)](handleError(_0x1f1c82,null));},exports['getFavicon']=function(_0x2e448b,_0x1815c3){const _0x6c8049=a645_0x1568be,_0x1c2947=path[_0x6c8049(0x230)](config[_0x6c8049(0x213)],_0x6c8049(0x200));let _0x2f8638={'custom':![]};return utilLicense['getLicense']()['then'](function(_0x3f5a5c){const _0x411766=_0x6c8049;return _0x3f5a5c&&(_0x2f8638=_0x3f5a5c),db['Setting'][_0x411766(0x225)]({'where':{'id':_0x2e448b[_0x411766(0x238)]['id']},'attributes':[_0x411766(0x224),'loginLogo',_0x411766(0x218),_0x411766(0x236),_0x411766(0x232),_0x411766(0x20b),'defaultPreferred','defaultFavicon'],'raw':!![]});})[_0x6c8049(0x23b)](handleEntityNotFound(_0x1815c3,null))['then'](function(_0x1a2b70){const _0x13dab1=_0x6c8049;if(_0x1a2b70){let _0x1fb67e=_0x1a2b70[_0x13dab1(0x236)]&&fs[_0x13dab1(0x1fe)](path[_0x13dab1(0x230)](_0x1c2947,_[_0x13dab1(0x20e)](_0x1a2b70['favicon'])))?path[_0x13dab1(0x230)](_0x1c2947,_['toLower'](_0x1a2b70[_0x13dab1(0x236)])):path['join'](_0x1c2947,_[_0x13dab1(0x20e)]('default_favicon.ico'));const _0x23a83b='default'+_[_0x13dab1(0x219)](_0x13dab1(0x236));(_0x1a2b70[_0x23a83b]||!_0x2f8638[_0x13dab1(0x21d)])&&(_0x1fb67e=path[_0x13dab1(0x230)](_0x1c2947,_[_0x13dab1(0x20e)]('default_favicon.ico')));if(!fs[_0x13dab1(0x1fe)](_0x1fb67e))throw new ValidationError(_[_0x13dab1(0x219)]('favicon')+_0x13dab1(0x21a));return _0x1815c3[_0x13dab1(0x209)](_0x1fb67e);}})[_0x6c8049(0x234)](handleError(_0x1815c3,null));},exports[a645_0x1568be(0x1ff)]=function getDate(_0x5374e6,_0x3de890){const _0x249318=a645_0x1568be,_0x2e70f3=moment()['utcOffset'](),_0x420573={'now':moment()[_0x249318(0x1f6)](_0x2e70f3)['format'](_0x249318(0x22b)),'offset':_0x2e70f3};return _0x3de890[_0x249318(0x239)](0xc8)[_0x249318(0x221)](_0x420573);}; \ No newline at end of file +const a645_0x3b35=['format','merge','filters','show','error','../../config/environment','addPreferred','count','fieldName','getLicense','like','custom','limit','root','findOne','lodash','file','sequelize','getFavicon','download','model','query','filename','nolimit','loginLogo','options','files/images/logos','defaultPreferred','Setting','catch','length','findAll','existsSync','status','logo','getLogo','includeAll','default','addFavicon','join','intersection','name','map','type','defaultLogo','getDate','body','addLogo','default_logo.svg','gdpr','defaultLoginLogo','../../config/logger','preferred','key','params','toLower','default_loginLogo.svg','defaultFavicon','default_preferred.png','filter','utcOffset','path','keys','index','where','\x20not\x20found','sendStatus','fields','undefined','order','sort','send','getLogoLogin','rawAttributes','set','securePassword','upperFirst','offset','then','favicon','stack','../../config/license/util','default_favicon.ico','attributes','moment'];(function(_0xadad1f,_0x4c7a0b){const _0x3b358c=function(_0x3944a4){while(--_0x3944a4){_0xadad1f['push'](_0xadad1f['shift']());}};_0x3b358c(++_0x4c7a0b);}(a645_0x3b35,0xdd));const a645_0x3944=function(_0xadad1f,_0x4c7a0b){_0xadad1f=_0xadad1f-0x1c1;let _0x3b358c=a645_0x3b35[_0xadad1f];return _0x3b358c;};const a645_0x394157=a645_0x3944;'use strict';const path=require(a645_0x394157(0x1cb)),fs=require('fs'),_=require(a645_0x394157(0x1f2)),qs=require('../../components/parsers/qs'),logger=require(a645_0x394157(0x1c1))('api'),config=require(a645_0x394157(0x1e8)),{db}=require('../../mysqldb'),{Op,ValidationError}=require(a645_0x394157(0x1f4)),utilLicense=require(a645_0x394157(0x1df)),moment=require(a645_0x394157(0x1e2));function respondWithResult(_0xb17084,_0x57782d){return _0x57782d=_0x57782d||0xc8,function(_0x193367){const _0x4a0f4e=a645_0x3944;if(_0x193367)return _0xb17084[_0x4a0f4e(0x204)](_0x57782d)['json'](_0x193367);};}function respondWithFilteredResult(_0x309a1d,_0x117241){return function(_0x4d0c88){const _0x447323=a645_0x3944;if(_0x4d0c88){const _0x7d1961=_0x4d0c88[_0x447323(0x1ea)],_0x445345=_0x117241[_0x447323(0x1db)];let _0x507a6f=_0x117241[_0x447323(0x1db)]+_0x117241[_0x447323(0x1ef)],_0x5a4ab0;return _0x507a6f>=_0x7d1961?(_0x507a6f=_0x7d1961,_0x5a4ab0=0xc8):_0x5a4ab0=0xce,_0x309a1d[_0x447323(0x204)](_0x5a4ab0),_0x309a1d[_0x447323(0x1d8)]('Content-Range',_0x445345+'-'+_0x507a6f+'/'+_0x7d1961)['json'](_0x4d0c88);}return null;};}function saveUpdates(_0xb5d236){return function(_0x368692){const _0x1eb91b=a645_0x3944;if(_0x368692)return _0x368692['update'](_0xb5d236)[_0x1eb91b(0x1dc)](function(_0x13126d){return _0x13126d;});return null;};}function handleEntityNotFound(_0x24899){return function(_0x3583d7){const _0x14d80d=a645_0x3944;return!_0x3583d7&&_0x24899[_0x14d80d(0x1d0)](0x194),_0x3583d7;};}function handleError(_0x37a956,_0x4119e2){return _0x4119e2=_0x4119e2||0x1f4,function(_0x587330){const _0x257b29=a645_0x3944;logger[_0x257b29(0x1e7)](_0x587330[_0x257b29(0x1de)]),_0x587330[_0x257b29(0x20c)]&&delete _0x587330[_0x257b29(0x20c)],_0x37a956[_0x257b29(0x204)](_0x4119e2)[_0x257b29(0x1d5)](_0x587330);};}exports[a645_0x394157(0x1cd)]=function(_0x13b0a6,_0x71ffa8){const _0x240a02=a645_0x394157;let _0x8441c0={};const _0x6b349d={},_0x1c292c={'count':0x0,'rows':[]},_0x5ac92a=_[_0x240a02(0x20d)](db['Setting'][_0x240a02(0x1d7)],function(_0x1364b4){const _0x5bdf2d=_0x240a02;return{'name':_0x1364b4[_0x5bdf2d(0x1eb)],'type':_0x1364b4['type'][_0x5bdf2d(0x1c3)]};});_0x6b349d[_0x240a02(0x1f7)]=_['map'](_0x5ac92a,_0x240a02(0x20c)),_0x6b349d[_0x240a02(0x1f8)]=_['keys'](_0x13b0a6[_0x240a02(0x1f8)]),_0x6b349d['filters']=_['intersection'](_0x6b349d[_0x240a02(0x1f7)],_0x6b349d[_0x240a02(0x1f8)]),_0x8441c0[_0x240a02(0x1e1)]=_[_0x240a02(0x20b)](_0x6b349d[_0x240a02(0x1f7)],qs[_0x240a02(0x1d1)](_0x13b0a6['query']['fields'])),_0x8441c0['attributes']=_0x8441c0[_0x240a02(0x1e1)][_0x240a02(0x201)]?_0x8441c0[_0x240a02(0x1e1)]:_0x6b349d[_0x240a02(0x1f7)];typeof _0x13b0a6[_0x240a02(0x1f8)][_0x240a02(0x1fa)]===_0x240a02(0x1d2)&&(_0x8441c0[_0x240a02(0x1ef)]=qs[_0x240a02(0x1ef)](_0x13b0a6[_0x240a02(0x1f8)]['limit']),_0x8441c0[_0x240a02(0x1db)]=qs[_0x240a02(0x1db)](_0x13b0a6[_0x240a02(0x1f8)]['offset']));_0x8441c0[_0x240a02(0x1d3)]=qs[_0x240a02(0x1d4)](_0x13b0a6[_0x240a02(0x1f8)][_0x240a02(0x1d4)]),_0x8441c0[_0x240a02(0x1ce)]=qs[_0x240a02(0x1e5)](_['pick'](_0x13b0a6[_0x240a02(0x1f8)],_0x6b349d[_0x240a02(0x1e5)]),_0x5ac92a);_0x13b0a6[_0x240a02(0x1f8)][_0x240a02(0x1c9)]&&(_0x8441c0[_0x240a02(0x1ce)]=_[_0x240a02(0x1e4)](_0x8441c0[_0x240a02(0x1ce)],{[Op['or']]:_[_0x240a02(0x20d)](_0x5ac92a,function(_0x4be7bc){const _0x2447f3=_0x240a02;if(_0x4be7bc[_0x2447f3(0x20e)]!=='VIRTUAL'){const _0x41b528={};return _0x41b528[_0x4be7bc['name']]={[Op[_0x2447f3(0x1ed)]]:'%'+_0x13b0a6['query'][_0x2447f3(0x1c9)]+'%'},_0x41b528;}})}));_0x8441c0=_[_0x240a02(0x1e4)]({},_0x8441c0,_0x13b0a6[_0x240a02(0x1fc)]);const _0x12fda4={'where':_0x8441c0[_0x240a02(0x1ce)]};return db[_0x240a02(0x1ff)][_0x240a02(0x1ea)](_0x12fda4)[_0x240a02(0x1dc)](function(_0x1bd14e){const _0x44bc5f=_0x240a02;return _0x1c292c[_0x44bc5f(0x1ea)]=_0x1bd14e,_0x13b0a6[_0x44bc5f(0x1f8)]['includeAll']&&(_0x8441c0['include']=[{'all':!![]}]),db['Setting'][_0x44bc5f(0x202)](_0x8441c0);})['then'](function(_0xce2c7f){return _0x1c292c['rows']=_0xce2c7f,_0x1c292c;})[_0x240a02(0x1dc)](respondWithFilteredResult(_0x71ffa8,_0x8441c0))['catch'](handleError(_0x71ffa8,null));},exports[a645_0x394157(0x1e6)]=function(_0x362953,_0x39f1b8){const _0x54f635=a645_0x394157;let _0x28b57f={'raw':![],'where':{'id':_0x362953[_0x54f635(0x1c4)]['id']}};const _0x3a48c1={};return _0x3a48c1[_0x54f635(0x1f7)]=_['keys'](db[_0x54f635(0x1ff)][_0x54f635(0x1d7)]),_0x3a48c1[_0x54f635(0x1f8)]=_[_0x54f635(0x1cc)](_0x362953[_0x54f635(0x1f8)]),_0x3a48c1[_0x54f635(0x1e5)]=_[_0x54f635(0x20b)](_0x3a48c1[_0x54f635(0x1f7)],_0x3a48c1['query']),_0x28b57f[_0x54f635(0x1e1)]=_[_0x54f635(0x20b)](_0x3a48c1['model'],qs[_0x54f635(0x1d1)](_0x362953['query'][_0x54f635(0x1d1)])),_0x28b57f[_0x54f635(0x1e1)]=_0x28b57f[_0x54f635(0x1e1)][_0x54f635(0x201)]?_0x28b57f['attributes']:_0x3a48c1[_0x54f635(0x1f7)],_0x362953[_0x54f635(0x1f8)][_0x54f635(0x207)]&&(_0x28b57f['include']=[{'all':!![]}]),_0x28b57f=_[_0x54f635(0x1e4)]({},_0x28b57f,_0x362953[_0x54f635(0x1fc)]),db[_0x54f635(0x1ff)][_0x54f635(0x1f1)](_0x28b57f)[_0x54f635(0x1dc)](handleEntityNotFound(_0x39f1b8,null))[_0x54f635(0x1dc)](respondWithResult(_0x39f1b8,null))[_0x54f635(0x200)](handleError(_0x39f1b8,null));},exports['update']=function(_0x511c5d,_0x28a011){const _0x2ed721=a645_0x394157;return _0x511c5d[_0x2ed721(0x211)]['id']&&delete _0x511c5d[_0x2ed721(0x211)]['id'],db[_0x2ed721(0x1ff)][_0x2ed721(0x1f1)]({'where':{'id':_0x511c5d[_0x2ed721(0x1c4)]['id']}})[_0x2ed721(0x1dc)](handleEntityNotFound(_0x28a011,null))[_0x2ed721(0x1dc)](saveUpdates(_0x511c5d[_0x2ed721(0x211)],null))[_0x2ed721(0x1dc)](respondWithResult(_0x28a011,null))[_0x2ed721(0x200)](handleError(_0x28a011,null));},exports[a645_0x394157(0x212)]=function(_0xda4a58,_0x5c4213){const _0x10f505=a645_0x394157;return _0xda4a58[_0x10f505(0x1f3)]&&_0xda4a58[_0x10f505(0x1f3)]['filename']&&(_0xda4a58[_0x10f505(0x211)][_0x10f505(0x205)]=_0xda4a58[_0x10f505(0x1f3)][_0x10f505(0x1f9)]),db[_0x10f505(0x1ff)][_0x10f505(0x1f1)]({'where':{'id':_0xda4a58['params']['id']}})[_0x10f505(0x1dc)](handleEntityNotFound(_0x5c4213,null))[_0x10f505(0x1dc)](saveUpdates(_0xda4a58[_0x10f505(0x211)],null))[_0x10f505(0x1dc)](respondWithResult(_0x5c4213,null))[_0x10f505(0x200)](handleError(_0x5c4213,null));},exports['addLogoLogin']=function(_0xc649ef,_0x5778b3){const _0x5d1e8f=a645_0x394157;return _0xc649ef[_0x5d1e8f(0x1f3)]&&_0xc649ef[_0x5d1e8f(0x1f3)]['filename']&&(_0xc649ef[_0x5d1e8f(0x211)]['loginLogo']=_0xc649ef[_0x5d1e8f(0x1f3)][_0x5d1e8f(0x1f9)]),db[_0x5d1e8f(0x1ff)][_0x5d1e8f(0x1f1)]({'where':{'id':_0xc649ef[_0x5d1e8f(0x1c4)]['id']}})[_0x5d1e8f(0x1dc)](handleEntityNotFound(_0x5778b3,null))[_0x5d1e8f(0x1dc)](saveUpdates(_0xc649ef['body'],null))[_0x5d1e8f(0x1dc)](respondWithResult(_0x5778b3,null))[_0x5d1e8f(0x200)](handleError(_0x5778b3,null));},exports[a645_0x394157(0x206)]=function(_0x3224a4,_0x3c9c19){const _0x323f3c=a645_0x394157,_0x47d9b5=path[_0x323f3c(0x20a)](config[_0x323f3c(0x1f0)],_0x323f3c(0x1fd));let _0x4c106d={'custom':![]};return utilLicense['getLicense']()['then'](function(_0xa4f6ca){const _0x2c0fa1=_0x323f3c;return _0xa4f6ca&&(_0x4c106d=_0xa4f6ca),db['Setting'][_0x2c0fa1(0x1f1)]({'where':{'id':_0x3224a4['params']['id']},'attributes':[_0x2c0fa1(0x205),_0x2c0fa1(0x1fb),_0x2c0fa1(0x1c2),'favicon',_0x2c0fa1(0x20f),'defaultLoginLogo',_0x2c0fa1(0x1fe),_0x2c0fa1(0x1c7)],'raw':!![]});})[_0x323f3c(0x1dc)](handleEntityNotFound(_0x3c9c19,null))[_0x323f3c(0x1dc)](function(_0x23c36c){const _0x42241a=_0x323f3c;if(_0x23c36c){let _0x5c42ba=_0x23c36c[_0x42241a(0x205)]&&fs[_0x42241a(0x203)](path[_0x42241a(0x20a)](_0x47d9b5,_['toLower'](_0x23c36c[_0x42241a(0x205)])))?path['join'](_0x47d9b5,_['toLower'](_0x23c36c[_0x42241a(0x205)])):path[_0x42241a(0x20a)](_0x47d9b5,_[_0x42241a(0x1c5)](_0x42241a(0x213)));const _0x4fb904=_0x42241a(0x208)+_[_0x42241a(0x1da)](_0x42241a(0x205));(_0x23c36c[_0x4fb904]||!_0x4c106d[_0x42241a(0x1ee)])&&(_0x5c42ba=path[_0x42241a(0x20a)](_0x47d9b5,_[_0x42241a(0x1c5)](_0x42241a(0x213))));if(!fs[_0x42241a(0x203)](_0x5c42ba))throw new ValidationError(_['upperFirst'](_0x42241a(0x205))+'\x20not\x20found');return _0x3c9c19[_0x42241a(0x1f6)](_0x5c42ba);}})[_0x323f3c(0x200)](handleError(_0x3c9c19,null));},exports[a645_0x394157(0x1d6)]=function(_0x47d794,_0x11ee50){const _0x16e007=a645_0x394157,_0x4fd12f=path[_0x16e007(0x20a)](config[_0x16e007(0x1f0)],_0x16e007(0x1fd));let _0x53ca49={'custom':![]};return utilLicense['getLicense']()['then'](function(_0x580442){const _0xb64268=_0x16e007;return _0x580442&&(_0x53ca49=_0x580442),db[_0xb64268(0x1ff)]['findOne']({'where':{'id':_0x47d794[_0xb64268(0x1c4)]['id']},'attributes':['logo',_0xb64268(0x1fb),'preferred',_0xb64268(0x1dd),_0xb64268(0x20f),_0xb64268(0x215),_0xb64268(0x1fe),_0xb64268(0x1c7)],'raw':!![]});})[_0x16e007(0x1dc)](handleEntityNotFound(_0x11ee50,null))[_0x16e007(0x1dc)](function(_0x2494cb){const _0x671487=_0x16e007;if(_0x2494cb){let _0x192046=_0x2494cb[_0x671487(0x1fb)]&&fs[_0x671487(0x203)](path[_0x671487(0x20a)](_0x4fd12f,_[_0x671487(0x1c5)](_0x2494cb[_0x671487(0x1fb)])))?path[_0x671487(0x20a)](_0x4fd12f,_[_0x671487(0x1c5)](_0x2494cb[_0x671487(0x1fb)])):path[_0x671487(0x20a)](_0x4fd12f,_['toLower'](_0x671487(0x1c6)));const _0x57b697=_0x671487(0x208)+_['upperFirst'](_0x671487(0x1fb));(_0x2494cb[_0x57b697]||!_0x53ca49['custom'])&&(_0x192046=path[_0x671487(0x20a)](_0x4fd12f,_[_0x671487(0x1c5)]('default_loginLogo.svg')));if(!fs[_0x671487(0x203)](_0x192046))throw new ValidationError(_['upperFirst']('loginLogo')+_0x671487(0x1cf));return _0x11ee50[_0x671487(0x1f6)](_0x192046);}})[_0x16e007(0x200)](handleError(_0x11ee50,null));},exports[a645_0x394157(0x214)]=function(_0x26d40e,_0x12f5aa){const _0x391de6=a645_0x394157;return db[_0x391de6(0x1ff)][_0x391de6(0x1f1)]({'where':{'id':_0x26d40e[_0x391de6(0x1c4)]['id']},'attributes':[_0x391de6(0x1d9)]})[_0x391de6(0x1dc)](respondWithResult(_0x12f5aa,null))[_0x391de6(0x200)](handleError(_0x12f5aa,null));},exports[a645_0x394157(0x1e9)]=function(_0x1ce5d5,_0x41b38d){const _0x223812=a645_0x394157;return _0x1ce5d5[_0x223812(0x1f3)]&&_0x1ce5d5[_0x223812(0x1f3)][_0x223812(0x1f9)]&&(_0x1ce5d5[_0x223812(0x211)][_0x223812(0x1c2)]=_0x1ce5d5[_0x223812(0x1f3)][_0x223812(0x1f9)]),db[_0x223812(0x1ff)][_0x223812(0x1f1)]({'where':{'id':_0x1ce5d5[_0x223812(0x1c4)]['id']}})['then'](handleEntityNotFound(_0x41b38d,null))[_0x223812(0x1dc)](saveUpdates(_0x1ce5d5[_0x223812(0x211)],null))[_0x223812(0x1dc)](respondWithResult(_0x41b38d,null))['catch'](handleError(_0x41b38d,null));},exports['getPreferred']=function(_0x4718c,_0x349551){const _0x1ad905=a645_0x394157,_0x3571b3=path[_0x1ad905(0x20a)](config[_0x1ad905(0x1f0)],_0x1ad905(0x1fd));let _0x2902a2={'custom':![]};return utilLicense[_0x1ad905(0x1ec)]()[_0x1ad905(0x1dc)](function(_0x32ab27){const _0x346a28=_0x1ad905;return _0x32ab27&&(_0x2902a2=_0x32ab27),db[_0x346a28(0x1ff)][_0x346a28(0x1f1)]({'where':{'id':_0x4718c['params']['id']},'attributes':['logo','loginLogo',_0x346a28(0x1c2),_0x346a28(0x1dd),_0x346a28(0x20f),'defaultLoginLogo',_0x346a28(0x1fe),_0x346a28(0x1c7)],'raw':!![]});})[_0x1ad905(0x1dc)](handleEntityNotFound(_0x349551,null))[_0x1ad905(0x1dc)](function(_0x584112){const _0x310586=_0x1ad905;if(_0x584112){let _0x3f6eaf=_0x584112['preferred']&&fs['existsSync'](path[_0x310586(0x20a)](_0x3571b3,_[_0x310586(0x1c5)](_0x584112['preferred'])))?path[_0x310586(0x20a)](_0x3571b3,_[_0x310586(0x1c5)](_0x584112['preferred'])):path[_0x310586(0x20a)](_0x3571b3,_[_0x310586(0x1c5)](_0x310586(0x1c8)));const _0x4d2f62=_0x310586(0x208)+_['upperFirst'](_0x310586(0x1c2));(_0x584112[_0x4d2f62]||!_0x2902a2[_0x310586(0x1ee)]||!_0x2902a2[_0x310586(0x1c2)])&&(_0x3f6eaf=path[_0x310586(0x20a)](_0x3571b3,_[_0x310586(0x1c5)]('default_preferred.png')));if(!fs[_0x310586(0x203)](_0x3f6eaf))throw new ValidationError(_[_0x310586(0x1da)]('preferred')+'\x20not\x20found');return _0x349551['download'](_0x3f6eaf);}})['catch'](handleError(_0x349551,null));},exports[a645_0x394157(0x209)]=function(_0x206e5f,_0x2fef87){const _0x21bbd2=a645_0x394157;return _0x206e5f[_0x21bbd2(0x1f3)]&&_0x206e5f['file'][_0x21bbd2(0x1f9)]&&(_0x206e5f[_0x21bbd2(0x211)][_0x21bbd2(0x1dd)]=_0x206e5f[_0x21bbd2(0x1f3)][_0x21bbd2(0x1f9)]),db[_0x21bbd2(0x1ff)]['findOne']({'where':{'id':_0x206e5f['params']['id']}})[_0x21bbd2(0x1dc)](handleEntityNotFound(_0x2fef87,null))[_0x21bbd2(0x1dc)](saveUpdates(_0x206e5f[_0x21bbd2(0x211)],null))[_0x21bbd2(0x1dc)](respondWithResult(_0x2fef87,null))[_0x21bbd2(0x200)](handleError(_0x2fef87,null));},exports[a645_0x394157(0x1f5)]=function(_0x5d0c60,_0x10f3e2){const _0x50a9a2=a645_0x394157,_0x56c18b=path[_0x50a9a2(0x20a)](config[_0x50a9a2(0x1f0)],_0x50a9a2(0x1fd));let _0x1449c1={'custom':![]};return utilLicense['getLicense']()['then'](function(_0x527004){const _0x85a379=_0x50a9a2;return _0x527004&&(_0x1449c1=_0x527004),db[_0x85a379(0x1ff)][_0x85a379(0x1f1)]({'where':{'id':_0x5d0c60[_0x85a379(0x1c4)]['id']},'attributes':[_0x85a379(0x205),'loginLogo',_0x85a379(0x1c2),_0x85a379(0x1dd),_0x85a379(0x20f),'defaultLoginLogo',_0x85a379(0x1fe),_0x85a379(0x1c7)],'raw':!![]});})[_0x50a9a2(0x1dc)](handleEntityNotFound(_0x10f3e2,null))['then'](function(_0x3d640c){const _0x2b880e=_0x50a9a2;if(_0x3d640c){let _0xab0776=_0x3d640c[_0x2b880e(0x1dd)]&&fs['existsSync'](path[_0x2b880e(0x20a)](_0x56c18b,_['toLower'](_0x3d640c[_0x2b880e(0x1dd)])))?path['join'](_0x56c18b,_[_0x2b880e(0x1c5)](_0x3d640c['favicon'])):path[_0x2b880e(0x20a)](_0x56c18b,_['toLower'](_0x2b880e(0x1e0)));const _0x2e1b0c=_0x2b880e(0x208)+_[_0x2b880e(0x1da)]('favicon');(_0x3d640c[_0x2e1b0c]||!_0x1449c1[_0x2b880e(0x1ee)])&&(_0xab0776=path[_0x2b880e(0x20a)](_0x56c18b,_[_0x2b880e(0x1c5)](_0x2b880e(0x1e0))));if(!fs[_0x2b880e(0x203)](_0xab0776))throw new ValidationError(_[_0x2b880e(0x1da)]('favicon')+_0x2b880e(0x1cf));return _0x10f3e2['download'](_0xab0776);}})[_0x50a9a2(0x200)](handleError(_0x10f3e2,null));},exports[a645_0x394157(0x210)]=function getDate(_0x3c5061,_0x5d4c26){const _0x1b5460=a645_0x394157,_0xfa4ab4=moment()[_0x1b5460(0x1ca)](),_0x2d6a82={'now':moment()[_0x1b5460(0x1ca)](_0xfa4ab4)[_0x1b5460(0x1e3)]('YYYY-MM-DD\x20HH:mm:ss:SSS'),'offset':_0xfa4ab4};return _0x5d4c26[_0x1b5460(0x204)](0xc8)[_0x1b5460(0x1d5)](_0x2d6a82);}; \ No newline at end of file diff --git a/server/api/setting/setting.model.js b/server/api/setting/setting.model.js index 5ede97f..505f3be 100644 --- a/server/api/setting/setting.model.js +++ b/server/api/setting/setting.model.js @@ -1 +1 @@ -const a646_0x56dd=['exports','function','sequelize','./setting.attributes','init'];(function(_0x4872c3,_0x27ae6f){const _0x56ddf3=function(_0x50bd07){while(--_0x50bd07){_0x4872c3['push'](_0x4872c3['shift']());}};_0x56ddf3(++_0x27ae6f);}(a646_0x56dd,0x19c));const a646_0x50bd=function(_0x4872c3,_0x27ae6f){_0x4872c3=_0x4872c3-0x130;let _0x56ddf3=a646_0x56dd[_0x4872c3];return _0x56ddf3;};const a646_0xdb18f0=a646_0x50bd;'use strict';const {Model}=require(a646_0xdb18f0(0x130)),{attributes}=require(a646_0xdb18f0(0x131)),{options}=require('./setting.options');class Setting extends Model{}function init(_0x1c6d14,_0x50eff2){const _0x18ee26=a646_0xdb18f0,_0x2b37ef=options(_0x1c6d14),_0x2612b8=typeof _0x50eff2===_0x18ee26(0x134)?_0x50eff2(_0x2b37ef):_0x2b37ef;return Setting[_0x18ee26(0x132)](attributes,_0x2612b8),Setting;}module[a646_0xdb18f0(0x133)]['Setting']=Setting,module[a646_0xdb18f0(0x133)][a646_0xdb18f0(0x132)]=init; \ No newline at end of file +const a646_0x5aa4=['./setting.options','sequelize','./setting.attributes','exports','init','Setting'];(function(_0xfd8a1,_0x154302){const _0x5aa4f8=function(_0x39d49a){while(--_0x39d49a){_0xfd8a1['push'](_0xfd8a1['shift']());}};_0x5aa4f8(++_0x154302);}(a646_0x5aa4,0x14d));const a646_0x39d4=function(_0xfd8a1,_0x154302){_0xfd8a1=_0xfd8a1-0x139;let _0x5aa4f8=a646_0x5aa4[_0xfd8a1];return _0x5aa4f8;};const a646_0x12568f=a646_0x39d4;'use strict';const {Model}=require(a646_0x12568f(0x13d)),{attributes}=require(a646_0x12568f(0x13e)),{options}=require(a646_0x12568f(0x13c));class Setting extends Model{}function init(_0x4d958d,_0x23d73a){const _0x4e8e1b=options(_0x4d958d),_0x5930b8=typeof _0x23d73a==='function'?_0x23d73a(_0x4e8e1b):_0x4e8e1b;return Setting['init'](attributes,_0x5930b8),Setting;}module[a646_0x12568f(0x139)][a646_0x12568f(0x13b)]=Setting,module[a646_0x12568f(0x139)][a646_0x12568f(0x13a)]=init; \ No newline at end of file diff --git a/server/api/setting/setting.options.js b/server/api/setting/setting.options.js index 99e44d0..9e432e8 100644 --- a/server/api/setting/setting.options.js +++ b/server/api/setting/setting.options.js @@ -1 +1 @@ -var a647_0x449f=['options','exports'];(function(_0x2316ae,_0x1ab09c){var _0x449fa9=function(_0x15942f){while(--_0x15942f){_0x2316ae['push'](_0x2316ae['shift']());}};_0x449fa9(++_0x1ab09c);}(a647_0x449f,0x18f));var a647_0x1594=function(_0x2316ae,_0x1ab09c){_0x2316ae=_0x2316ae-0xcf;var _0x449fa9=a647_0x449f[_0x2316ae];return _0x449fa9;};var a647_0x436049=a647_0x1594;function options(_0x106682){return{'sequelize':_0x106682,'tableName':'settings','paranoid':![],'indexes':[],'timestamps':!![]};}module[a647_0x436049(0xcf)][a647_0x436049(0xd0)]=options; \ No newline at end of file +var a647_0x3360=['exports','settings','options'];(function(_0x142556,_0x8eaa56){var _0x33609c=function(_0x10595a){while(--_0x10595a){_0x142556['push'](_0x142556['shift']());}};_0x33609c(++_0x8eaa56);}(a647_0x3360,0x1f0));var a647_0x1059=function(_0x142556,_0x8eaa56){_0x142556=_0x142556-0x1c7;var _0x33609c=a647_0x3360[_0x142556];return _0x33609c;};var a647_0x3cec03=a647_0x1059;function options(_0x47eedb){var _0x453946=a647_0x1059;return{'sequelize':_0x47eedb,'tableName':_0x453946(0x1c7),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a647_0x3cec03(0x1c9)][a647_0x3cec03(0x1c8)]=options; \ No newline at end of file diff --git a/server/api/smsAccount/index.js b/server/api/smsAccount/index.js index aa729b5..41ee0fc 100644 --- a/server/api/smsAccount/index.js +++ b/server/api/smsAccount/index.js @@ -1 +1 @@ -const a648_0x14f7=['/:id/status','getDispositions','/:id','/:id/applications','destroy','addApplications','/:id/interactions','getInteractions','exports','show','removeAnswers','index','update','delete','send','isAuthenticated','addAnswer','notify','removeDispositions','get','/:id/dispositions','/:id/notify','/:id/users','post','removeAgents','getAgents','/:id/canned_answers','put','/describe','getApplications','create','../../components/auth/service','addDisposition','express','./smsAccount.controller','Router','addAgents'];(function(_0x4c8413,_0x47090a){const _0x14f752=function(_0x2c577c){while(--_0x2c577c){_0x4c8413['push'](_0x4c8413['shift']());}};_0x14f752(++_0x47090a);}(a648_0x14f7,0x1b8));const a648_0x2c57=function(_0x4c8413,_0x47090a){_0x4c8413=_0x4c8413-0x17c;let _0x14f752=a648_0x14f7[_0x4c8413];return _0x14f752;};const a648_0x527f9c=a648_0x2c57;'use strict';const express=require(a648_0x527f9c(0x17c)),router=express[a648_0x527f9c(0x17e)](),auth=require(a648_0x527f9c(0x19f)),controller=require(a648_0x527f9c(0x17d));router[a648_0x527f9c(0x193)]('/',auth[a648_0x527f9c(0x18f)](),controller[a648_0x527f9c(0x18b)]),router[a648_0x527f9c(0x193)](a648_0x527f9c(0x19c),auth[a648_0x527f9c(0x18f)](),controller['describe']),router[a648_0x527f9c(0x193)](a648_0x527f9c(0x182),auth[a648_0x527f9c(0x18f)](),controller[a648_0x527f9c(0x189)]),router[a648_0x527f9c(0x193)](a648_0x527f9c(0x194),auth[a648_0x527f9c(0x18f)](),controller[a648_0x527f9c(0x181)]),router[a648_0x527f9c(0x193)](a648_0x527f9c(0x19a),auth[a648_0x527f9c(0x18f)](),controller['getAnswers']),router[a648_0x527f9c(0x193)](a648_0x527f9c(0x183),auth[a648_0x527f9c(0x18f)](),controller[a648_0x527f9c(0x19d)]),router['get'](a648_0x527f9c(0x186),auth['isAuthenticated'](),controller[a648_0x527f9c(0x187)]),router[a648_0x527f9c(0x193)](a648_0x527f9c(0x180),controller['statusGet']),router[a648_0x527f9c(0x193)](a648_0x527f9c(0x196),auth[a648_0x527f9c(0x18f)](),controller[a648_0x527f9c(0x199)]),router[a648_0x527f9c(0x197)]('/',auth[a648_0x527f9c(0x18f)](),controller[a648_0x527f9c(0x19e)]),router['post'](a648_0x527f9c(0x194),auth[a648_0x527f9c(0x18f)](),controller[a648_0x527f9c(0x1a0)]),router[a648_0x527f9c(0x197)](a648_0x527f9c(0x19a),auth[a648_0x527f9c(0x18f)](),controller[a648_0x527f9c(0x190)]),router[a648_0x527f9c(0x197)](a648_0x527f9c(0x195),controller[a648_0x527f9c(0x191)]),router[a648_0x527f9c(0x197)](a648_0x527f9c(0x183),auth[a648_0x527f9c(0x18f)](),controller[a648_0x527f9c(0x185)]),router['post']('/:id/send',auth[a648_0x527f9c(0x18f)](),controller[a648_0x527f9c(0x18e)]),router[a648_0x527f9c(0x197)](a648_0x527f9c(0x180),controller['status']),router['post'](a648_0x527f9c(0x196),auth['isAuthenticated'](),controller[a648_0x527f9c(0x17f)]),router[a648_0x527f9c(0x19b)](a648_0x527f9c(0x182),auth[a648_0x527f9c(0x18f)](),controller[a648_0x527f9c(0x18c)]),router[a648_0x527f9c(0x18d)](a648_0x527f9c(0x182),auth[a648_0x527f9c(0x18f)](),controller[a648_0x527f9c(0x184)]),router[a648_0x527f9c(0x18d)](a648_0x527f9c(0x194),auth[a648_0x527f9c(0x18f)](),controller[a648_0x527f9c(0x192)]),router[a648_0x527f9c(0x18d)](a648_0x527f9c(0x19a),auth['isAuthenticated'](),controller[a648_0x527f9c(0x18a)]),router['delete'](a648_0x527f9c(0x196),auth[a648_0x527f9c(0x18f)](),controller[a648_0x527f9c(0x198)]),module[a648_0x527f9c(0x188)]=router; \ No newline at end of file +const a648_0x385e=['Router','isAuthenticated','./smsAccount.controller','/:id/applications','/describe','status','put','getAnswers','getApplications','express','addAnswer','get','/:id','index','show','/:id/notify','removeAnswers','delete','removeDispositions','removeAgents','addApplications','/:id/canned_answers','statusGet','exports','post','/:id/users','/:id/interactions','describe','../../components/auth/service','addDisposition','addAgents','/:id/status','notify','/:id/dispositions'];(function(_0x54064e,_0x44b4ec){const _0x385eb8=function(_0x4518f9){while(--_0x4518f9){_0x54064e['push'](_0x54064e['shift']());}};_0x385eb8(++_0x44b4ec);}(a648_0x385e,0xd9));const a648_0x4518=function(_0x54064e,_0x44b4ec){_0x54064e=_0x54064e-0xee;let _0x385eb8=a648_0x385e[_0x54064e];return _0x385eb8;};const a648_0x7a8819=a648_0x4518;'use strict';const express=require(a648_0x7a8819(0x10c)),router=express[a648_0x7a8819(0x103)](),auth=require(a648_0x7a8819(0xfd)),controller=require(a648_0x7a8819(0x105));router['get']('/',auth[a648_0x7a8819(0x104)](),controller[a648_0x7a8819(0xee)]),router[a648_0x7a8819(0x10e)](a648_0x7a8819(0x107),auth['isAuthenticated'](),controller[a648_0x7a8819(0xfc)]),router[a648_0x7a8819(0x10e)](a648_0x7a8819(0x10f),auth[a648_0x7a8819(0x104)](),controller[a648_0x7a8819(0xef)]),router[a648_0x7a8819(0x10e)](a648_0x7a8819(0x102),auth[a648_0x7a8819(0x104)](),controller['getDispositions']),router['get'](a648_0x7a8819(0xf6),auth[a648_0x7a8819(0x104)](),controller[a648_0x7a8819(0x10a)]),router[a648_0x7a8819(0x10e)](a648_0x7a8819(0x106),auth[a648_0x7a8819(0x104)](),controller[a648_0x7a8819(0x10b)]),router[a648_0x7a8819(0x10e)](a648_0x7a8819(0xfb),auth[a648_0x7a8819(0x104)](),controller['getInteractions']),router[a648_0x7a8819(0x10e)](a648_0x7a8819(0x100),controller[a648_0x7a8819(0xf7)]),router['get']('/:id/users',auth[a648_0x7a8819(0x104)](),controller['getAgents']),router[a648_0x7a8819(0xf9)]('/',auth[a648_0x7a8819(0x104)](),controller['create']),router[a648_0x7a8819(0xf9)](a648_0x7a8819(0x102),auth[a648_0x7a8819(0x104)](),controller[a648_0x7a8819(0xfe)]),router[a648_0x7a8819(0xf9)]('/:id/canned_answers',auth[a648_0x7a8819(0x104)](),controller[a648_0x7a8819(0x10d)]),router['post'](a648_0x7a8819(0xf0),controller[a648_0x7a8819(0x101)]),router['post'](a648_0x7a8819(0x106),auth[a648_0x7a8819(0x104)](),controller[a648_0x7a8819(0xf5)]),router[a648_0x7a8819(0xf9)]('/:id/send',auth[a648_0x7a8819(0x104)](),controller['send']),router['post'](a648_0x7a8819(0x100),controller[a648_0x7a8819(0x108)]),router[a648_0x7a8819(0xf9)](a648_0x7a8819(0xfa),auth[a648_0x7a8819(0x104)](),controller[a648_0x7a8819(0xff)]),router[a648_0x7a8819(0x109)](a648_0x7a8819(0x10f),auth[a648_0x7a8819(0x104)](),controller['update']),router[a648_0x7a8819(0xf2)](a648_0x7a8819(0x10f),auth[a648_0x7a8819(0x104)](),controller['destroy']),router[a648_0x7a8819(0xf2)](a648_0x7a8819(0x102),auth[a648_0x7a8819(0x104)](),controller[a648_0x7a8819(0xf3)]),router[a648_0x7a8819(0xf2)](a648_0x7a8819(0xf6),auth['isAuthenticated'](),controller[a648_0x7a8819(0xf1)]),router['delete'](a648_0x7a8819(0xfa),auth[a648_0x7a8819(0x104)](),controller[a648_0x7a8819(0xf4)]),module[a648_0x7a8819(0xf8)]=router; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.attributes.js b/server/api/smsAccount/smsAccount.attributes.js index 4af2499..7772ea9 100644 --- a/server/api/smsAccount/smsAccount.attributes.js +++ b/server/api/smsAccount/smsAccount.attributes.js @@ -1 +1 @@ -const a649_0x4ddd=['ENUM','csc','setDataValue','INTEGER','plivo','connectel','mandatoryDisposition','clickatell','randomstring','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','mandatoryDispositionPauseId','infobip','generate','exports','name','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','clicksend','TEXT','STRING','twilio','BOOLEAN','skebby'];(function(_0x12bbeb,_0x169293){const _0x4ddd52=function(_0x2a43e4){while(--_0x2a43e4){_0x12bbeb['push'](_0x12bbeb['shift']());}};_0x4ddd52(++_0x169293);}(a649_0x4ddd,0xcc));const a649_0x2a43=function(_0x12bbeb,_0x169293){_0x12bbeb=_0x12bbeb-0x14f;let _0x4ddd52=a649_0x4ddd[_0x12bbeb];return _0x4ddd52;};const a649_0x4cce17=a649_0x2a43;'use strict';const {DataTypes}=require('sequelize'),rs=require(a649_0x4cce17(0x151)),attributes={'name':{'type':DataTypes[a649_0x4cce17(0x15b)],'unique':a649_0x4cce17(0x157),'allowNull':![]},'key':{'type':DataTypes[a649_0x4cce17(0x15b)],'allowNull':![]},'remote':{'type':DataTypes[a649_0x4cce17(0x15b)],'allowNull':![]},'token':{'type':DataTypes[a649_0x4cce17(0x15b)],'defaultValue':function(){const _0x57ff9a=a649_0x4cce17;return rs[_0x57ff9a(0x155)]();}},'phone':{'type':DataTypes[a649_0x4cce17(0x15b)]},'type':{'type':DataTypes[a649_0x4cce17(0x15f)](a649_0x4cce17(0x15c),a649_0x4cce17(0x15e),a649_0x4cce17(0x164),a649_0x4cce17(0x159),a649_0x4cce17(0x163),a649_0x4cce17(0x150),a649_0x4cce17(0x160),a649_0x4cce17(0x154),'intelepeer')},'accountSid':{'type':DataTypes['STRING']},'authId':{'type':DataTypes[a649_0x4cce17(0x15b)]},'authToken':{'type':DataTypes['STRING']},'smsMethod':{'type':DataTypes['ENUM']('SI','TI','GP')},'username':{'type':DataTypes['STRING']},'password':{'type':DataTypes[a649_0x4cce17(0x15b)]},'apiKey':{'type':DataTypes['STRING']},'senderString':{'type':DataTypes['STRING']},'deliveryReport':{'type':DataTypes[a649_0x4cce17(0x15d)],'defaultValue':![]},'description':{'type':DataTypes[a649_0x4cce17(0x15b)]},'notificationTemplate':{'type':DataTypes[a649_0x4cce17(0x15a)],'defaultValue':function(){return'Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}';}},'notificationSound':{'type':DataTypes[a649_0x4cce17(0x15d)],'defaultValue':!![]},'notificationShake':{'type':DataTypes[a649_0x4cce17(0x15d)],'defaultValue':![]},'waitForTheAssignedAgent':{'type':DataTypes[a649_0x4cce17(0x162)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes[a649_0x4cce17(0x15d)],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes[a649_0x4cce17(0x162)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':DataTypes['STRING']},'mandatoryDispositionPauseId':{'type':DataTypes['INTEGER'],'comment':a649_0x4cce17(0x158)},'mandatoryDisposition':{'type':DataTypes[a649_0x4cce17(0x15d)],'defaultValue':![],'comment':a649_0x4cce17(0x152),'set':function(_0x3814c5){const _0x1de2e5=a649_0x4cce17;if(!_0x3814c5)this[_0x1de2e5(0x161)](_0x1de2e5(0x153),null);this[_0x1de2e5(0x161)](_0x1de2e5(0x14f),_0x3814c5);}}};module[a649_0x4cce17(0x156)]['attributes']=attributes; \ No newline at end of file +const a649_0x25f9=['TEXT','clicksend','intelepeer','infobip','plivo','INTEGER','generate','setDataValue','STRING','BOOLEAN','twilio','connectel','sequelize','mandatoryDispositionPauseId','ENUM','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','mandatoryDisposition','skebby','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','clickatell','csc','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}'];(function(_0x2a9690,_0x5c5f7f){const _0x25f96e=function(_0x2150d4){while(--_0x2150d4){_0x2a9690['push'](_0x2a9690['shift']());}};_0x25f96e(++_0x5c5f7f);}(a649_0x25f9,0x1b1));const a649_0x2150=function(_0x2a9690,_0x5c5f7f){_0x2a9690=_0x2a9690-0x14a;let _0x25f96e=a649_0x25f9[_0x2a9690];return _0x25f96e;};const a649_0x237e05=a649_0x2150;'use strict';const {DataTypes}=require(a649_0x237e05(0x15d)),rs=require('randomstring'),attributes={'name':{'type':DataTypes[a649_0x237e05(0x159)],'unique':'name','allowNull':![]},'key':{'type':DataTypes[a649_0x237e05(0x159)],'allowNull':![]},'remote':{'type':DataTypes[a649_0x237e05(0x159)],'allowNull':![]},'token':{'type':DataTypes['STRING'],'defaultValue':function(){const _0x31f9d8=a649_0x237e05;return rs[_0x31f9d8(0x157)]();}},'phone':{'type':DataTypes[a649_0x237e05(0x159)]},'type':{'type':DataTypes[a649_0x237e05(0x15f)](a649_0x237e05(0x15b),a649_0x237e05(0x14c),a649_0x237e05(0x15c),a649_0x237e05(0x152),a649_0x237e05(0x155),a649_0x237e05(0x14e),a649_0x237e05(0x14f),a649_0x237e05(0x154),a649_0x237e05(0x153))},'accountSid':{'type':DataTypes[a649_0x237e05(0x159)]},'authId':{'type':DataTypes[a649_0x237e05(0x159)]},'authToken':{'type':DataTypes['STRING']},'smsMethod':{'type':DataTypes[a649_0x237e05(0x15f)]('SI','TI','GP')},'username':{'type':DataTypes[a649_0x237e05(0x159)]},'password':{'type':DataTypes[a649_0x237e05(0x159)]},'apiKey':{'type':DataTypes[a649_0x237e05(0x159)]},'senderString':{'type':DataTypes[a649_0x237e05(0x159)]},'deliveryReport':{'type':DataTypes[a649_0x237e05(0x15a)],'defaultValue':![]},'description':{'type':DataTypes[a649_0x237e05(0x159)]},'notificationTemplate':{'type':DataTypes[a649_0x237e05(0x151)],'defaultValue':function(){const _0xc69eb0=a649_0x237e05;return _0xc69eb0(0x150);}},'notificationSound':{'type':DataTypes[a649_0x237e05(0x15a)],'defaultValue':!![]},'notificationShake':{'type':DataTypes[a649_0x237e05(0x15a)],'defaultValue':![]},'waitForTheAssignedAgent':{'type':DataTypes[a649_0x237e05(0x156)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':DataTypes[a649_0x237e05(0x15a)],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes[a649_0x237e05(0x156)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes[a649_0x237e05(0x15a)],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes[a649_0x237e05(0x156)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':DataTypes[a649_0x237e05(0x159)]},'mandatoryDispositionPauseId':{'type':DataTypes[a649_0x237e05(0x156)],'comment':a649_0x237e05(0x14d)},'mandatoryDisposition':{'type':DataTypes[a649_0x237e05(0x15a)],'defaultValue':![],'comment':a649_0x237e05(0x14a),'set':function(_0x3870ff){const _0x5e6206=a649_0x237e05;if(!_0x3870ff)this['setDataValue'](_0x5e6206(0x15e),null);this[_0x5e6206(0x158)](_0x5e6206(0x14b),_0x3870ff);}}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.controller.js b/server/api/smsAccount/smsAccount.controller.js index fc92aca..7510a0f 100644 --- a/server/api/smsAccount/smsAccount.controller.js +++ b/server/api/smsAccount/smsAccount.controller.js @@ -1 +1 @@ -const a650_0x3471=['list','getAnswers','./smsAccount.socket','filters','body\x20is\x20mandatory\x20and\x20not\x20empty','color','SmsAccount,\x20%s,\x20%s,\x20%s','show','UserProfileResource','status','removeDispositions','startRouting','omit','notify','error_code','text','merge','getAgents','tag','json','getDispositions','removeAnswers','message','addDisposition','DELIVRD','CannedAnswer','userSmsAccount:remove','nolimit','Text','mapKey','like','undefined','DELIVERED','inspect','key','pick','SmsAccount','priority','user','get','intelepeer','destroy','orderBy','addAnswer','sort','isNil','register','Messages','RECEIVED_BY_RECIPIENT','includeAll','api','autoclose','Start','AttachmentId','removeAgents','length','clicksend','plivo','close','jayson/promise','keys','body','CmContact','to\x20is\x20mandatory','fromNumber','isArray','ACCEPTD','userProfileId','User','index','account','query','then','updatedAt','csc','userSmsAccount:save','../../config/logger','findOne','UserId','from','filter','error','out','request','count','sms','type','List','receiveMessage','Contacts','findAndCountAll','twilio','fieldName','transaction','mobile','options','describe','findAll','received\x20delivery\x20report\x20from','SmsInteraction','requestid','UserProfileSection','clickatell','redif','fields','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','debug','DELIVERED_TO_GATEWAY','From','attributes','\x0a','difference','state','order','results','ListId','originatingAddress','map','Content-Range','interaction','sender','client','SmsAccountId','statusInt','send','unshift','emit','Applications','message_id','replyMessageId','*,*,*,*','http','bulkCreate','../../rediscache','CmList','info','Disposition','applications','groupName','code','connectel','entity\x20found','../../components/parsers/qs','sendStatus','SmsAccount,\x20%s,\x20%s,\x20%s,\x20%s','skebby','rows','Tag','update','waitForTheAssignedAgent','push','messageId','name','../../mysqldb','internal','defaults','model','end','ids','stack','SmsMessage','Contact','result','getApplications','params','created','message-id','stringify','intersection','rawAttributes','addApplications','addAgents','SmsAccounts','dataValues','create','segmentedMessage','Content-Type','Unable\x20to\x20retrieve\x20the\x20current\x20user','status_code','contact','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','DESC','Tags','set','fullname','catch','no\x20available\x20attributes','SmsAccount,\x20%s,\x20%s','limit','autoAssociation','createdAt','where','endpoint\x20/status\x20POST\x20/','SmsApplication','Pause','infobip','sequelize','include','VIRTUAL','mandatoryDispositionPause','offset','skebby_dispatch_id'];(function(_0x46e328,_0x37548e){const _0x34710f=function(_0x5bb0d3){while(--_0x5bb0d3){_0x46e328['push'](_0x46e328['shift']());}};_0x34710f(++_0x37548e);}(a650_0x3471,0xb7));const a650_0x5bb0=function(_0x46e328,_0x37548e){_0x46e328=_0x46e328-0xb9;let _0x34710f=a650_0x3471[_0x46e328];return _0x34710f;};const a650_0x14ecf7=a650_0x5bb0;'use strict';const util=require('util'),_=require('lodash'),qs=require(a650_0x14ecf7(0x15a)),logger=require(a650_0x14ecf7(0x118))(a650_0x14ecf7(0xfe)),{getSocket}=require(a650_0x14ecf7(0x151)),socket=getSocket(),{db}=require(a650_0x14ecf7(0x165)),{Op,ValidationError}=require(a650_0x14ecf7(0xc6));require(a650_0x14ecf7(0xce))[a650_0x14ecf7(0xfa)](socket);const jayson=require(a650_0x14ecf7(0x107)),client=jayson[a650_0x14ecf7(0x145)][a650_0x14ecf7(0x14f)]({'port':0x232c});function respondWithRpcPromise(_0x145113,_0x46676a,_0x3fc5d8,_0x3b6950){return new Promise(function(_0x35bf92,_0x14a838){const _0x1cf7a7=a650_0x5bb0,_0x4bab5b=_0x3b6950||client;return _0x4bab5b[_0x1cf7a7(0x11f)](_0x145113,_0x3fc5d8)[_0x1cf7a7(0x114)](function(_0x162fb5){const _0x9febb8=_0x1cf7a7;logger['info']('SmsAccount,\x20%s,\x20%s',_0x46676a,'request\x20sent'),logger['debug'](_0x9febb8(0xd2),_0x46676a,'request\x20sent',JSON[_0x9febb8(0x173)](_0x162fb5));if(_0x162fb5['error']){if(_0x162fb5[_0x9febb8(0x11d)][_0x9febb8(0x157)]===0x1f4)return logger[_0x9febb8(0x11d)](_0x9febb8(0xbd),_0x46676a,_0x162fb5[_0x9febb8(0x11d)][_0x9febb8(0xe2)]),_0x14a838(_0x162fb5['error'][_0x9febb8(0xe2)]);return logger['error'](_0x9febb8(0xbd),_0x46676a,_0x162fb5[_0x9febb8(0x11d)][_0x9febb8(0xe2)]),_0x35bf92(_0x162fb5[_0x9febb8(0x11d)]['message']);}else logger[_0x9febb8(0x153)](_0x9febb8(0xbd),_0x46676a,'request\x20sent'),_0x35bf92(_0x162fb5[_0x9febb8(0x16e)]['message']);})[_0x1cf7a7(0xbb)](function(_0x34ebb6){const _0x5cd1cb=_0x1cf7a7;logger[_0x5cd1cb(0x11d)](_0x5cd1cb(0xbd),_0x46676a,_0x34ebb6),_0x14a838(_0x34ebb6);});});}function respondWithStatusCode(_0x10dcf0,_0x18c08c){return _0x18c08c=_0x18c08c||0xcc,function(_0xc959e2){const _0x4214cd=a650_0x5bb0;if(_0xc959e2)return _0x10dcf0[_0x4214cd(0x15b)](_0x18c08c);return _0x10dcf0[_0x4214cd(0xd5)](_0x18c08c)[_0x4214cd(0x169)]();};}function respondWithResult(_0x5d7fd7,_0x1c7be1){return _0x1c7be1=_0x1c7be1||0xc8,function(_0x306327){const _0x180180=a650_0x5bb0;if(_0x306327)return _0x5d7fd7[_0x180180(0xd5)](_0x1c7be1)[_0x180180(0xdf)](_0x306327);};}function respondWithFilteredResult(_0x4fcd4c,_0x193c8d){return function(_0x16117a){const _0x285a1d=a650_0x5bb0;if(_0x16117a){const _0x50697c=_0x16117a[_0x285a1d(0x120)],_0x4423a1=_0x193c8d[_0x285a1d(0xca)];let _0x5f5418=_0x193c8d['offset']+_0x193c8d[_0x285a1d(0xbe)],_0x10db89;return _0x5f5418>=_0x50697c?(_0x5f5418=_0x50697c,_0x10db89=0xc8):_0x10db89=0xce,_0x4fcd4c[_0x285a1d(0xd5)](_0x10db89),_0x4fcd4c[_0x285a1d(0xb9)](_0x285a1d(0x142),_0x4423a1+'-'+_0x5f5418+'/'+_0x50697c)['json'](_0x16117a);}return null;};}function saveUpdates(_0x4eda04){return function(_0x1f1ffe){const _0x389ab9=a650_0x5bb0;if(_0x1f1ffe)return _0x1f1ffe[_0x389ab9(0x160)](_0x4eda04)[_0x389ab9(0x114)](function(_0x5772ef){return _0x5772ef;});return null;};}function removeEntity(_0x56ede0){return function(_0x84151a){const _0x18d200=a650_0x5bb0;if(_0x84151a)return _0x84151a[_0x18d200(0xf5)]()['then'](function(){const _0x251752=_0x18d200,_0x29a7ea=_0x84151a['get']({'plain':!![]}),_0x1a4ff0=_0x251752(0x178);return db['UserProfileResource'][_0x251752(0xf5)]({'where':{'type':_0x1a4ff0,'resourceId':_0x29a7ea['id']}})['then'](function(){return _0x84151a;});})[_0x18d200(0x114)](function(){const _0xf9faa1=_0x18d200;_0x56ede0[_0xf9faa1(0xd5)](0xcc)[_0xf9faa1(0x169)]();});};}function handleEntityNotFound(_0x5b1f6a){return function(_0x432905){const _0x50ea1d=a650_0x5bb0;return!_0x432905&&_0x5b1f6a[_0x50ea1d(0x15b)](0x194),_0x432905;};}function handleError(_0x1e21de,_0x33a195){return _0x33a195=_0x33a195||0x1f4,function(_0x7665f6){const _0x524ee6=a650_0x5bb0;logger[_0x524ee6(0x11d)](_0x7665f6[_0x524ee6(0x16b)]),_0x7665f6[_0x524ee6(0x164)]&&delete _0x7665f6[_0x524ee6(0x164)],_0x1e21de[_0x524ee6(0xd5)](_0x33a195)[_0x524ee6(0x148)](_0x7665f6);};}exports[a650_0x14ecf7(0x111)]=function(_0x52bc75,_0xa6ae94){const _0xb155de=a650_0x14ecf7;let _0x3fbdc7={'include':[{'model':db[_0xb155de(0xc4)],'as':'mandatoryDispositionPause'}]};const _0x2016b={},_0x387bea={'count':0x0,'rows':[]},_0x1425e6=_[_0xb155de(0x141)](db[_0xb155de(0xf0)][_0xb155de(0x175)],function(_0x8c27dc){const _0x556b3a=_0xb155de;return{'name':_0x8c27dc[_0x556b3a(0x128)],'type':_0x8c27dc[_0x556b3a(0x122)][_0x556b3a(0xee)]};});_0x2016b[_0xb155de(0x168)]=_[_0xb155de(0x141)](_0x1425e6,_0xb155de(0x164)),_0x2016b[_0xb155de(0x113)]=_[_0xb155de(0x108)](_0x52bc75['query']),_0x2016b[_0xb155de(0xcf)]=_[_0xb155de(0x174)](_0x2016b[_0xb155de(0x168)],_0x2016b[_0xb155de(0x113)]),_0x3fbdc7[_0xb155de(0x139)]=_[_0xb155de(0x174)](_0x2016b[_0xb155de(0x168)],qs[_0xb155de(0x134)](_0x52bc75['query'][_0xb155de(0x134)])),_0x3fbdc7[_0xb155de(0x139)]=_0x3fbdc7[_0xb155de(0x139)][_0xb155de(0x103)]?_0x3fbdc7['attributes']:_0x2016b[_0xb155de(0x168)];typeof _0x52bc75[_0xb155de(0x113)][_0xb155de(0xe7)]===_0xb155de(0xeb)&&(_0x3fbdc7[_0xb155de(0xbe)]=qs[_0xb155de(0xbe)](_0x52bc75['query'][_0xb155de(0xbe)]),_0x3fbdc7[_0xb155de(0xca)]=qs[_0xb155de(0xca)](_0x52bc75[_0xb155de(0x113)]['offset']));_0x3fbdc7['order']=qs[_0xb155de(0xf8)](_0x52bc75[_0xb155de(0x113)][_0xb155de(0xf8)]),_0x3fbdc7[_0xb155de(0xc1)]=qs['filters'](_[_0xb155de(0xef)](_0x52bc75[_0xb155de(0x113)],_0x2016b[_0xb155de(0xcf)]),_0x1425e6);_0x52bc75['query'][_0xb155de(0x11c)]&&(_0x3fbdc7[_0xb155de(0xc1)]=_[_0xb155de(0xdc)](_0x3fbdc7['where'],{[Op['or']]:_[_0xb155de(0x141)](_0x1425e6,function(_0x2c316b){const _0x4201c6=_0xb155de;if(_0x2c316b[_0x4201c6(0x122)]!==_0x4201c6(0xc8)){const _0x5a8664={};return _0x5a8664[_0x2c316b['name']]={[Op[_0x4201c6(0xea)]]:'%'+_0x52bc75[_0x4201c6(0x113)][_0x4201c6(0x11c)]+'%'},_0x5a8664;}})}));_0x3fbdc7=_[_0xb155de(0xdc)]({},_0x3fbdc7,_0x52bc75[_0xb155de(0x12b)]);const _0x56444f={'where':_0x3fbdc7[_0xb155de(0xc1)]};return db['SmsAccount'][_0xb155de(0x120)](_0x56444f)[_0xb155de(0x114)](function(_0x50119b){const _0x34a403=_0xb155de;return _0x387bea['count']=_0x50119b,_0x52bc75[_0x34a403(0x113)][_0x34a403(0xfd)]&&(_0x3fbdc7[_0x34a403(0xc7)]=[{'all':!![]}]),db[_0x34a403(0xf0)][_0x34a403(0x12d)](_0x3fbdc7);})[_0xb155de(0x114)](function(_0x4a8a10){const _0x199609=_0xb155de;return _0x387bea[_0x199609(0x15e)]=_0x4a8a10,_0x387bea;})['then'](respondWithFilteredResult(_0xa6ae94,_0x3fbdc7))[_0xb155de(0xbb)](handleError(_0xa6ae94,null));},exports[a650_0x14ecf7(0xd3)]=function(_0x7a57c,_0x34635b){const _0x1e9c57=a650_0x14ecf7;let _0x454d72={'raw':![],'where':{'id':_0x7a57c['params']['id']},'include':[{'model':db[_0x1e9c57(0xc4)],'as':_0x1e9c57(0xc9)}]};const _0x4c592e={};return _0x4c592e[_0x1e9c57(0x168)]=_[_0x1e9c57(0x108)](db[_0x1e9c57(0xf0)][_0x1e9c57(0x175)]),_0x4c592e[_0x1e9c57(0x113)]=_[_0x1e9c57(0x108)](_0x7a57c[_0x1e9c57(0x113)]),_0x4c592e['filters']=_[_0x1e9c57(0x174)](_0x4c592e[_0x1e9c57(0x168)],_0x4c592e[_0x1e9c57(0x113)]),_0x454d72[_0x1e9c57(0x139)]=_[_0x1e9c57(0x174)](_0x4c592e[_0x1e9c57(0x168)],qs[_0x1e9c57(0x134)](_0x7a57c[_0x1e9c57(0x113)]['fields'])),_0x454d72[_0x1e9c57(0x139)]=_0x454d72['attributes'][_0x1e9c57(0x103)]?_0x454d72[_0x1e9c57(0x139)]:_0x4c592e[_0x1e9c57(0x168)],_0x7a57c['query']['includeAll']&&(_0x454d72[_0x1e9c57(0xc7)]=[{'all':!![]}]),_0x454d72=_[_0x1e9c57(0xdc)]({},_0x454d72,_0x7a57c[_0x1e9c57(0x12b)]),db[_0x1e9c57(0xf0)][_0x1e9c57(0x119)](_0x454d72)[_0x1e9c57(0x114)](handleEntityNotFound(_0x34635b,null))[_0x1e9c57(0x114)](respondWithResult(_0x34635b,null))[_0x1e9c57(0xbb)](handleError(_0x34635b,null));},exports['create']=function(_0x3ea198,_0x29a23a){const _0x539532=a650_0x14ecf7;return db[_0x539532(0xf0)][_0x539532(0x17a)](_0x3ea198[_0x539532(0x109)],{})[_0x539532(0x114)](function(_0x2cd596){const _0x147e37=_0x539532,_0x18492e=_0x3ea198[_0x147e37(0xf2)][_0x147e37(0xf3)]({'plain':!![]});if(!_0x18492e)throw new Error(_0x147e37(0x17d));if(_0x18492e['role']===_0x147e37(0xf2)){const _0x2d1e0f=_0x2cd596['get']({'plain':!![]}),_0x4fdf2f=_0x147e37(0x178);return db[_0x147e37(0x131)]['findOne']({'where':{'name':_0x4fdf2f,'userProfileId':_0x18492e[_0x147e37(0x10f)]},'raw':!![]})[_0x147e37(0x114)](function(_0x337d98){const _0x3eef8f=_0x147e37;return _0x337d98&&_0x337d98[_0x3eef8f(0xbf)]===0x0?db[_0x3eef8f(0xd4)][_0x3eef8f(0x17a)]({'name':_0x2d1e0f[_0x3eef8f(0x164)],'resourceId':_0x2d1e0f['id'],'type':_0x337d98[_0x3eef8f(0x164)],'sectionId':_0x337d98['id']},{})[_0x3eef8f(0x114)](function(){return _0x2cd596;}):_0x2cd596;})[_0x147e37(0xbb)](function(_0xd2268){const _0x32a738=_0x147e37;logger[_0x32a738(0x11d)](_0x32a738(0x135),_0xd2268);throw _0xd2268;});}return _0x2cd596;})['then'](respondWithResult(_0x29a23a,0xc9))['catch'](handleError(_0x29a23a,null));},exports[a650_0x14ecf7(0x160)]=function(_0x339a89,_0x5a8e68){const _0xd6646d=a650_0x14ecf7;return _0x339a89[_0xd6646d(0x109)]['id']&&delete _0x339a89[_0xd6646d(0x109)]['id'],db[_0xd6646d(0xf0)][_0xd6646d(0x119)]({'where':{'id':_0x339a89[_0xd6646d(0x170)]['id']},'include':[{'model':db['Pause'],'as':_0xd6646d(0xc9)}]})['then'](handleEntityNotFound(_0x5a8e68,null))['then'](saveUpdates(_0x339a89['body'],null))[_0xd6646d(0x114)](respondWithResult(_0x5a8e68,null))[_0xd6646d(0xbb)](handleError(_0x5a8e68,null));},exports['destroy']=function(_0x4cd24e,_0x33e8d2){const _0x3931cc=a650_0x14ecf7;return db['SmsAccount'][_0x3931cc(0x119)]({'where':{'id':_0x4cd24e[_0x3931cc(0x170)]['id']}})[_0x3931cc(0x114)](handleEntityNotFound(_0x33e8d2,null))[_0x3931cc(0x114)](removeEntity(_0x33e8d2,null))[_0x3931cc(0xbb)](handleError(_0x33e8d2,null));},exports[a650_0x14ecf7(0x12c)]=function(_0x2dd979,_0x56446e){const _0x3a9200=a650_0x14ecf7;return db[_0x3a9200(0xf0)][_0x3a9200(0x12c)]()[_0x3a9200(0x114)](respondWithResult(_0x56446e,null))['catch'](handleError(_0x56446e,null));},exports[a650_0x14ecf7(0xe3)]=function(_0x2b6ea8,_0x382918){const _0x49286a=a650_0x14ecf7;return _0x2b6ea8[_0x49286a(0x109)]['id']&&delete _0x2b6ea8[_0x49286a(0x109)]['id'],db[_0x49286a(0xf0)][_0x49286a(0x119)]({'where':{'id':_0x2b6ea8[_0x49286a(0x170)]['id']}})['then'](handleEntityNotFound(_0x382918,null))['then'](function(_0x2d1ea3){const _0x61e1d0=_0x49286a;if(_0x2d1ea3)return _0x2b6ea8[_0x61e1d0(0x109)][_0x61e1d0(0x146)]=_0x2d1ea3['id'],db['Disposition'][_0x61e1d0(0x17a)](_0x2b6ea8[_0x61e1d0(0x109)]);})['then'](respondWithResult(_0x382918,null))[_0x49286a(0xbb)](handleError(_0x382918,null));},exports[a650_0x14ecf7(0xe0)]=function(_0x26c263,_0x2fb9af){const _0x5aa3ef=a650_0x14ecf7;let _0x27450b={'raw':![],'where':{}};const _0x491710={},_0x12bfa6={'count':0x0,'rows':[]};return db[_0x5aa3ef(0xf0)][_0x5aa3ef(0x119)]({'where':{'id':_0x26c263[_0x5aa3ef(0x170)]['id']}})[_0x5aa3ef(0x114)](handleEntityNotFound(_0x2fb9af,null))[_0x5aa3ef(0x114)](function(_0x119019){const _0x1ca5ab=_0x5aa3ef;if(_0x119019)return _0x491710[_0x1ca5ab(0x168)]=_['keys'](db[_0x1ca5ab(0x154)]['rawAttributes']),_0x491710[_0x1ca5ab(0x113)]=_[_0x1ca5ab(0x108)](_0x26c263[_0x1ca5ab(0x113)]),_0x491710[_0x1ca5ab(0xcf)]=_[_0x1ca5ab(0x174)](_0x491710[_0x1ca5ab(0x168)],_0x491710[_0x1ca5ab(0x113)]),_0x27450b['attributes']=_[_0x1ca5ab(0x174)](_0x491710[_0x1ca5ab(0x168)],qs[_0x1ca5ab(0x134)](_0x26c263[_0x1ca5ab(0x113)][_0x1ca5ab(0x134)])),_0x27450b[_0x1ca5ab(0x139)]=_0x27450b['attributes']['length']?_0x27450b[_0x1ca5ab(0x139)]:_0x491710[_0x1ca5ab(0x168)],typeof _0x26c263[_0x1ca5ab(0x113)][_0x1ca5ab(0xe7)]===_0x1ca5ab(0xeb)&&(_0x27450b[_0x1ca5ab(0xbe)]=qs['limit'](_0x26c263[_0x1ca5ab(0x113)][_0x1ca5ab(0xbe)]),_0x27450b['offset']=qs[_0x1ca5ab(0xca)](_0x26c263[_0x1ca5ab(0x113)][_0x1ca5ab(0xca)])),_0x27450b['order']=qs[_0x1ca5ab(0xf8)](_0x26c263[_0x1ca5ab(0x113)][_0x1ca5ab(0xf8)]),_0x27450b[_0x1ca5ab(0xc1)]=qs[_0x1ca5ab(0xcf)](_[_0x1ca5ab(0xef)](_0x26c263['query'],_0x491710[_0x1ca5ab(0xcf)])),_0x27450b['where'][_0x1ca5ab(0x146)]=_0x119019['id'],_0x26c263['query'][_0x1ca5ab(0x11c)]&&(_0x27450b[_0x1ca5ab(0xc1)]=_['merge'](_0x27450b[_0x1ca5ab(0xc1)],{[Op['or']]:_[_0x1ca5ab(0x141)](_0x27450b[_0x1ca5ab(0x139)],function(_0x19615c){const _0x6fe19e=_0x1ca5ab,_0x30eeca={};return _0x30eeca[_0x19615c]={[Op[_0x6fe19e(0xea)]]:'%'+_0x26c263[_0x6fe19e(0x113)][_0x6fe19e(0x11c)]+'%'},_0x30eeca;})})),_0x27450b=_['merge']({},_0x27450b,_0x26c263[_0x1ca5ab(0x12b)]),db[_0x1ca5ab(0x154)][_0x1ca5ab(0x120)]({'where':_0x27450b[_0x1ca5ab(0xc1)]})[_0x1ca5ab(0x114)](function(_0x59dd06){const _0x35c2ca=_0x1ca5ab;return _0x12bfa6[_0x35c2ca(0x120)]=_0x59dd06,_0x26c263[_0x35c2ca(0x113)]['includeAll']&&(_0x27450b[_0x35c2ca(0xc7)]=[{'all':!![]}]),db[_0x35c2ca(0x154)]['findAll'](_0x27450b);})[_0x1ca5ab(0x114)](function(_0x2b25c3){return _0x12bfa6['rows']=_0x2b25c3,_0x12bfa6;});})[_0x5aa3ef(0x114)](respondWithFilteredResult(_0x2fb9af,_0x27450b))[_0x5aa3ef(0xbb)](handleError(_0x2fb9af,null));},exports[a650_0x14ecf7(0xd6)]=function(_0x56a4a5,_0x29ac79){const _0xcd8f2a=a650_0x14ecf7;return db[_0xcd8f2a(0xf0)][_0xcd8f2a(0x119)]({'where':{'id':_0x56a4a5[_0xcd8f2a(0x170)]['id']}})[_0xcd8f2a(0x114)](handleEntityNotFound(_0x29ac79,null))['then'](function(_0x4fb70d){const _0x5c68c1=_0xcd8f2a;if(_0x4fb70d)return _0x4fb70d[_0x5c68c1(0xd6)](_0x56a4a5[_0x5c68c1(0x113)][_0x5c68c1(0x16a)]);})[_0xcd8f2a(0x114)](respondWithStatusCode(_0x29ac79,null))[_0xcd8f2a(0xbb)](handleError(_0x29ac79,null));},exports[a650_0x14ecf7(0xf7)]=function(_0x167dd2,_0xae5be4){const _0x3250bc=a650_0x14ecf7;return _0x167dd2['body']['id']&&delete _0x167dd2[_0x3250bc(0x109)]['id'],db['SmsAccount'][_0x3250bc(0x119)]({'where':{'id':_0x167dd2['params']['id']}})[_0x3250bc(0x114)](handleEntityNotFound(_0xae5be4,null))[_0x3250bc(0x114)](function(_0x275705){const _0x8bd6cb=_0x3250bc;if(_0x275705)return _0x167dd2[_0x8bd6cb(0x109)][_0x8bd6cb(0x146)]=_0x275705['id'],db[_0x8bd6cb(0xe5)][_0x8bd6cb(0x17a)](_0x167dd2[_0x8bd6cb(0x109)]);})[_0x3250bc(0x114)](respondWithResult(_0xae5be4,null))[_0x3250bc(0xbb)](handleError(_0xae5be4,null));},exports[a650_0x14ecf7(0xcd)]=function(_0xdc3f2a,_0x455a82){const _0x4c0010=a650_0x14ecf7;let _0x499135={'raw':![],'where':{}};const _0x10345d={},_0x3b2304={'count':0x0,'rows':[]};return db[_0x4c0010(0xf0)][_0x4c0010(0x119)]({'where':{'id':_0xdc3f2a[_0x4c0010(0x170)]['id']}})[_0x4c0010(0x114)](handleEntityNotFound(_0x455a82,null))['then'](function(_0x127916){const _0x79a0da=_0x4c0010;if(_0x127916)return _0x10345d['model']=_['keys'](db[_0x79a0da(0xe5)][_0x79a0da(0x175)]),_0x10345d[_0x79a0da(0x113)]=_['keys'](_0xdc3f2a[_0x79a0da(0x113)]),_0x10345d[_0x79a0da(0xcf)]=_[_0x79a0da(0x174)](_0x10345d['model'],_0x10345d[_0x79a0da(0x113)]),_0x499135[_0x79a0da(0x139)]=_[_0x79a0da(0x174)](_0x10345d[_0x79a0da(0x168)],qs[_0x79a0da(0x134)](_0xdc3f2a[_0x79a0da(0x113)][_0x79a0da(0x134)])),_0x499135[_0x79a0da(0x139)]=_0x499135[_0x79a0da(0x139)]['length']?_0x499135[_0x79a0da(0x139)]:_0x10345d[_0x79a0da(0x168)],typeof _0xdc3f2a[_0x79a0da(0x113)][_0x79a0da(0xe7)]===_0x79a0da(0xeb)&&(_0x499135[_0x79a0da(0xbe)]=qs[_0x79a0da(0xbe)](_0xdc3f2a[_0x79a0da(0x113)]['limit']),_0x499135[_0x79a0da(0xca)]=qs[_0x79a0da(0xca)](_0xdc3f2a[_0x79a0da(0x113)][_0x79a0da(0xca)])),_0x499135[_0x79a0da(0x13d)]=qs[_0x79a0da(0xf8)](_0xdc3f2a[_0x79a0da(0x113)][_0x79a0da(0xf8)]),_0x499135[_0x79a0da(0xc1)]=qs['filters'](_[_0x79a0da(0xef)](_0xdc3f2a[_0x79a0da(0x113)],_0x10345d[_0x79a0da(0xcf)])),_0x499135['where'][_0x79a0da(0x146)]=_0x127916['id'],_0xdc3f2a[_0x79a0da(0x113)][_0x79a0da(0x11c)]&&(_0x499135[_0x79a0da(0xc1)]=_[_0x79a0da(0xdc)](_0x499135[_0x79a0da(0xc1)],{[Op['or']]:_['map'](_0x499135[_0x79a0da(0x139)],function(_0x3f801d){const _0x4cb481=_0x79a0da,_0x46c2e4={};return _0x46c2e4[_0x3f801d]={[Op['like']]:'%'+_0xdc3f2a[_0x4cb481(0x113)][_0x4cb481(0x11c)]+'%'},_0x46c2e4;})})),_0x499135=_[_0x79a0da(0xdc)]({},_0x499135,_0xdc3f2a[_0x79a0da(0x12b)]),db[_0x79a0da(0xe5)][_0x79a0da(0x120)]({'where':_0x499135['where']})['then'](function(_0x3dc1f6){const _0x2d2654=_0x79a0da;return _0x3b2304[_0x2d2654(0x120)]=_0x3dc1f6,_0xdc3f2a['query'][_0x2d2654(0xfd)]&&(_0x499135[_0x2d2654(0xc7)]=[{'all':!![]}]),db[_0x2d2654(0xe5)][_0x2d2654(0x12d)](_0x499135);})['then'](function(_0x418463){const _0x58a9e1=_0x79a0da;return _0x3b2304[_0x58a9e1(0x15e)]=_0x418463,_0x3b2304;});})[_0x4c0010(0x114)](respondWithFilteredResult(_0x455a82,_0x499135))[_0x4c0010(0xbb)](handleError(_0x455a82,null));},exports[a650_0x14ecf7(0xe1)]=function(_0x5ee52b,_0xc2443d){const _0x866fa1=a650_0x14ecf7;return db[_0x866fa1(0xf0)][_0x866fa1(0x119)]({'where':{'id':_0x5ee52b[_0x866fa1(0x170)]['id']}})['then'](handleEntityNotFound(_0xc2443d,null))[_0x866fa1(0x114)](function(_0x73f0a4){const _0x447cb8=_0x866fa1;if(_0x73f0a4)return _0x73f0a4[_0x447cb8(0xe1)](_0x5ee52b['query'][_0x447cb8(0x16a)]);})[_0x866fa1(0x114)](respondWithStatusCode(_0xc2443d,null))['catch'](handleError(_0xc2443d,null));},exports[a650_0x14ecf7(0xd9)]=function(_0x52836c,_0x15628e){const _0x359f16=a650_0x14ecf7,_0x1d0e75={'channel':_0x359f16(0x121)};let _0xd455c5=[],_0x537188=[];const _0x322c4b={};return db['SmsAccount']['findOne']({'where':{'id':_0x52836c[_0x359f16(0x170)]['id']},'include':[{'model':db[_0x359f16(0xc3)],'as':_0x359f16(0x14b)}]})[_0x359f16(0x114)](handleEntityNotFound(_0x15628e,null))[_0x359f16(0x114)](function(_0x53aee8){const _0x15fab6=_0x359f16;return _0x1d0e75[_0x15fab6(0x112)]=_0x53aee8,_0x1d0e75[_0x15fab6(0x155)]=_[_0x15fab6(0xf6)](_0x53aee8['Applications'],[_0x15fab6(0xf1)],['asc']),_0x1d0e75[_0x15fab6(0x112)][_0x15fab6(0x14b)]&&delete _0x1d0e75[_0x15fab6(0x112)][_0x15fab6(0x14b)],db[_0x15fab6(0x10a)][_0x15fab6(0x12c)]();})['then'](function(_0x262868){const _0x4d3db4=_0x359f16;if(!_0x262868)throw new ValidationError(_0x4d3db4(0xbc));_0xd455c5=_[_0x4d3db4(0x13b)](_[_0x4d3db4(0x108)](_0x262868),[_0x4d3db4(0xc0),_0x4d3db4(0x115)]),_0x537188=_[_0x4d3db4(0x13b)](_['keys'](_0x262868),['createdAt',_0x4d3db4(0x115),'CompanyId',_0x4d3db4(0x13f)]),_0x1d0e75[_0x4d3db4(0x109)]={'mapKey':_0x4d3db4(0x12a)};if(_0x1d0e75[_0x4d3db4(0x112)][_0x4d3db4(0x122)])switch(_0x1d0e75[_0x4d3db4(0x112)][_0x4d3db4(0x122)]){case'twilio':_0x1d0e75[_0x4d3db4(0x109)]['from']=_0x52836c[_0x4d3db4(0x109)]['From'],_0x1d0e75[_0x4d3db4(0x109)]['body']=_0x52836c[_0x4d3db4(0x109)]['Body'],_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0x163)]=_0x52836c[_0x4d3db4(0x109)]['MessageSid'];break;case _0x4d3db4(0x15d):_0x1d0e75['body']['from']='+'+_0x52836c[_0x4d3db4(0x109)][_0x4d3db4(0x144)],_0x1d0e75[_0x4d3db4(0x109)]['body']=_0x52836c['body'][_0x4d3db4(0xdb)];break;case _0x4d3db4(0x158):_0x1d0e75[_0x4d3db4(0x109)]['from']=_0x52836c[_0x4d3db4(0x109)][_0x4d3db4(0x11b)],_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0x109)]=_0x52836c[_0x4d3db4(0x109)][_0x4d3db4(0xe2)];break;case _0x4d3db4(0x104):_0x1d0e75[_0x4d3db4(0x109)]['from']=_0x52836c[_0x4d3db4(0x109)][_0x4d3db4(0x11b)],_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0x109)]=_0x52836c[_0x4d3db4(0x109)]['body'],_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0x163)]=_0x52836c['body']['message_id'];break;case _0x4d3db4(0x105):_0x1d0e75[_0x4d3db4(0x109)]['from']=_0x52836c[_0x4d3db4(0x109)][_0x4d3db4(0x138)],_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0x109)]=_0x52836c[_0x4d3db4(0x109)][_0x4d3db4(0xe8)],_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0x163)]=_0x52836c['body']['MessageUUID'];break;case _0x4d3db4(0xc5):_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0x11b)]='+'+_0x52836c[_0x4d3db4(0x109)][_0x4d3db4(0x13e)][0x0][_0x4d3db4(0x11b)],_0x1d0e75[_0x4d3db4(0x109)]['body']=_0x52836c[_0x4d3db4(0x109)]['results'][0x0]['text'],_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0x163)]=_0x52836c[_0x4d3db4(0x109)][_0x4d3db4(0x13e)][0x0]['messageId'];break;case _0x4d3db4(0x116):_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0x11b)]=_0x52836c[_0x4d3db4(0x109)][_0x4d3db4(0x140)],_0x1d0e75['body'][_0x4d3db4(0x109)]=_0x52836c[_0x4d3db4(0x109)][_0x4d3db4(0x17b)][_0x4d3db4(0xe2)];break;case _0x4d3db4(0x132):_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0x11b)]=_0x52836c['body'][_0x4d3db4(0x10c)],_0x1d0e75['body'][_0x4d3db4(0x109)]=_0x52836c[_0x4d3db4(0x109)][_0x4d3db4(0xdb)],_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0x163)]=_0x52836c['body'][_0x4d3db4(0x14d)];break;case _0x4d3db4(0xf4):_0x1d0e75['body'][_0x4d3db4(0x11b)]=_0x52836c['body'][_0x4d3db4(0x11b)],_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0x109)]=_0x52836c['body'][_0x4d3db4(0xe2)],_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0x163)]=_0x52836c['body']['refid'];break;}_0x1d0e75[_0x4d3db4(0x109)]['id']&&delete _0x1d0e75[_0x4d3db4(0x109)]['id'];if(_['isNil'](_0x1d0e75[_0x4d3db4(0x109)]['from']))throw new ValidationError('from\x20is\x20mandatory');if(_[_0x4d3db4(0xf9)](_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0x109)])||_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0x109)]==='')throw new ValidationError(_0x4d3db4(0xd0));if(_[_0x4d3db4(0xf9)](_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0xe9)]))throw new ValidationError('mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x537188);if(!_['includes'](_0x537188,_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0xe9)]))throw new ValidationError(_0x4d3db4(0x180)+_0x537188);return _0x322c4b[_0x1d0e75[_0x4d3db4(0x109)][_0x4d3db4(0xe9)]]=_0x1d0e75[_0x4d3db4(0x109)]['from'],db[_0x4d3db4(0x152)][_0x4d3db4(0x119)]({'where':{'id':_0x1d0e75['account'][_0x4d3db4(0x13f)]},'include':[{'model':db['CmContact'],'as':_0x4d3db4(0x125),'where':_0x322c4b,'limit':0x1,'order':[[_0x4d3db4(0x115),_0x4d3db4(0x181)]]}]});})[_0x359f16(0x114)](handleEntityNotFound(_0x15628e,null))[_0x359f16(0x114)](function(_0x2a1327){const _0x12ca98=_0x359f16;if(_0x2a1327){_0x1d0e75[_0x12ca98(0xcc)]=_['omit'](_0x2a1327,[_0x12ca98(0x125)]);if(_0x2a1327[_0x12ca98(0x125)][_0x12ca98(0x103)])return _0x2a1327['Contacts'][0x0];const _0x4ae1eb=_[_0x12ca98(0x167)](_0x1d0e75['body'],{'firstName':_0x1d0e75[_0x12ca98(0x109)][_0x12ca98(0x11b)],'ListId':_0x2a1327['id']});return _0x4ae1eb[_0x1d0e75[_0x12ca98(0x109)][_0x12ca98(0xe9)]]=_0x1d0e75[_0x12ca98(0x109)][_0x12ca98(0x11b)],db[_0x12ca98(0x10a)]['create'](_0x4ae1eb,{'fields':_0xd455c5,'raw':!![]});}})['then'](handleEntityNotFound(_0x15628e,null))[_0x359f16(0x114)](function(_0x587276){const _0x1ff899=_0x359f16;if(_0x587276){_0x1d0e75[_0x1ff899(0x17f)]=_0x587276;const _0xbd90bf={'ContactId':_0x587276['id'],'phone':_0x1d0e75[_0x1ff899(0x109)]['from'],'SmsAccountId':_0x52836c[_0x1ff899(0x170)]['id']},_0x109633={'ContactId':_0x587276['id'],'SmsAccountId':_0x52836c[_0x1ff899(0x170)]['id'],'closed':![]};return db[_0x1ff899(0x12f)][_0x1ff899(0x119)]({'where':_0x109633})[_0x1ff899(0x114)](function(_0x408930){const _0x35f7a0=_0x1ff899;if(_0x408930)return[_0x408930,![]];return db[_0x35f7a0(0x12f)]['create'](_0xbd90bf)['then'](function(_0x162997){return[_0x162997,!![]];});});}})[_0x359f16(0x114)](function([_0x3c88f0,_0x4c9d7b]){const _0x3d7922=_0x359f16;return _0x1d0e75[_0x3d7922(0x143)]=_0x3c88f0[_0x3d7922(0xf3)]({'plain':!![]}),_0x1d0e75[_0x3d7922(0x143)][_0x3d7922(0x171)]=![],_0x4c9d7b&&(_0x1d0e75['account'][_0x3d7922(0xff)]&&_0x1d0e75['applications'][_0x3d7922(0x162)]({'id':0x0,'priority':_0x1d0e75['applications'][_0x3d7922(0x103)]+0x1,'app':_0x3d7922(0x106),'appdata':'unmanaged','interval':_0x3d7922(0x14e)}),_0x1d0e75['interaction'][_0x3d7922(0x171)]=!![]),db['SmsMessage']['create']({'phone':_0x1d0e75[_0x3d7922(0x109)]['from'],'messageId':_0x1d0e75[_0x3d7922(0x109)][_0x3d7922(0x163)],'body':_0x1d0e75[_0x3d7922(0x109)]['body'],'SmsAccountId':_0x52836c[_0x3d7922(0x170)]['id'],'SmsInteractionId':_0x3c88f0['id'],'direction':'in','ContactId':_0x3c88f0['ContactId'],'AttachmentId':_0x1d0e75[_0x3d7922(0x109)][_0x3d7922(0x101)]});})[_0x359f16(0x114)](function(_0x55b107){const _0x1c139f=_0x359f16;_0x1d0e75[_0x1c139f(0xe2)]=_0x55b107;if(_0x1d0e75['interaction'][_0x1c139f(0x11a)])return db[_0x1c139f(0x110)]['findOne']({'attributes':['id',_0x1c139f(0x164)],'where':{'id':_0x1d0e75[_0x1c139f(0x143)]['UserId']}})[_0x1c139f(0x114)](function(_0x288c31){const _0x5d5264=_0x1c139f;return _0x288c31&&_0x1d0e75[_0x5d5264(0x155)][_0x5d5264(0x149)]({'id':0x0,'priority':0x0,'app':'agent','appdata':_0x288c31[_0x5d5264(0x164)]+','+(_0x1d0e75[_0x5d5264(0x112)][_0x5d5264(0x161)]||0xa),'interval':_0x5d5264(0x14e)}),respondWithRpcPromise('Start',_0x5d5264(0xd7),_0x1d0e75);});return respondWithRpcPromise(_0x1c139f(0x100),_0x1c139f(0xd7),_0x1d0e75);})[_0x359f16(0x114)](function(_0xd74fae){const _0x54acb5=_0x359f16;if(_0xd74fae){const _0x3778f5=0xc8,_0x40b78c=_0x54acb5(0x124);return logger[_0x54acb5(0x153)](_0x54acb5(0xd2),_0x40b78c,_0x3778f5,_0x54acb5(0x159)),logger['debug'](_0x54acb5(0x15c),_0x40b78c,_0x3778f5,_0x54acb5(0x159),JSON[_0x54acb5(0x173)](_0xd74fae)),_0x1d0e75[_0x54acb5(0x112)][_0x54acb5(0x122)]===_0x54acb5(0x127)?_0x15628e['status'](_0x3778f5)[_0x54acb5(0xb9)](_0x54acb5(0x17c),'text/xml')['send'](_0x54acb5(0x13a)):_0x15628e[_0x54acb5(0xd5)](_0x3778f5)[_0x54acb5(0xdf)](_0xd74fae);}})[_0x359f16(0xbb)](handleError(_0x15628e,null));},exports[a650_0x14ecf7(0x176)]=function(_0x386e51,_0x3b3e91){const _0x117128=a650_0x14ecf7;return db[_0x117128(0xf0)]['findOne']({'where':{'id':_0x386e51[_0x117128(0x170)]['id']}})['then'](handleEntityNotFound(_0x3b3e91,null))[_0x117128(0x114)](function(_0x3e6c6a){const _0x5a7537=_0x117128;if(_0x3e6c6a)return db[_0x5a7537(0xc6)][_0x5a7537(0x129)](function(_0x3f303b){const _0x1de014=_0x5a7537;return db[_0x1de014(0xc3)][_0x1de014(0xf5)]({'where':{'SmsAccountId':_0x386e51[_0x1de014(0x170)]['id']},'transaction':_0x3f303b})[_0x1de014(0x114)](function(){const _0x3f8d4b=_0x1de014,_0x3eb3bd=_[_0x3f8d4b(0x141)](_0x386e51['body'],function(_0x3cb993){const _0x134c81=_0x3f8d4b;return _0x3cb993[_0x134c81(0x146)]=_0x386e51['params']['id'],_0x3cb993;});return db[_0x3f8d4b(0xc3)][_0x3f8d4b(0x150)](_0x3eb3bd,{'transaction':_0x3f303b});});})['then'](function(){const _0x587e44=_0x5a7537;return db[_0x587e44(0xc3)][_0x587e44(0x126)]({'where':{'SmsAccountId':_0x386e51['params']['id']},'order':_0x587e44(0xf1)});});})[_0x117128(0x114)](respondWithResult(_0x3b3e91,null))[_0x117128(0xbb)](handleError(_0x3b3e91,null));},exports[a650_0x14ecf7(0x16f)]=function(_0x133dc2,_0x3bd5b9){const _0x3535e5=a650_0x14ecf7;let _0x13fe9c={};const _0x520f26={};let _0x2b5884,_0x8061be;return db[_0x3535e5(0xf0)][_0x3535e5(0x119)]({'where':{'id':_0x133dc2['params']['id']}})[_0x3535e5(0x114)](handleEntityNotFound(_0x3bd5b9,null))[_0x3535e5(0x114)](function(_0x2a4925){const _0x5ce365=_0x3535e5;if(_0x2a4925)return _0x2b5884=_0x2a4925,_0x520f26['model']=_['keys'](db[_0x5ce365(0xc3)][_0x5ce365(0x175)]),_0x520f26[_0x5ce365(0x113)]=_[_0x5ce365(0x108)](_0x133dc2['query']),_0x520f26[_0x5ce365(0xcf)]=_[_0x5ce365(0x174)](_0x520f26[_0x5ce365(0x168)],_0x520f26['query']),_0x13fe9c[_0x5ce365(0x139)]=_[_0x5ce365(0x174)](_0x520f26[_0x5ce365(0x168)],qs[_0x5ce365(0x134)](_0x133dc2['query'][_0x5ce365(0x134)])),_0x13fe9c[_0x5ce365(0x139)]=_0x13fe9c[_0x5ce365(0x139)][_0x5ce365(0x103)]?_0x13fe9c[_0x5ce365(0x139)]:_0x520f26[_0x5ce365(0x168)],_0x13fe9c[_0x5ce365(0x13d)]=qs[_0x5ce365(0xf8)](_0x133dc2['query']['sort']),_0x13fe9c[_0x5ce365(0xc1)]=qs[_0x5ce365(0xcf)](_['pick'](_0x133dc2[_0x5ce365(0x113)],_0x520f26['filters'])),_0x133dc2[_0x5ce365(0x113)]['filter']&&(_0x13fe9c[_0x5ce365(0xc1)]=_[_0x5ce365(0xdc)](_0x13fe9c['where'],{[Op['or']]:_[_0x5ce365(0x141)](_0x13fe9c[_0x5ce365(0x139)],function(_0x453bf6){const _0x2494e9=_0x5ce365,_0x5e3e4d={};return _0x5e3e4d[_0x453bf6]={[Op['like']]:'%'+_0x133dc2[_0x2494e9(0x113)][_0x2494e9(0x11c)]+'%'},_0x5e3e4d;})})),_0x13fe9c=_[_0x5ce365(0xdc)]({},_0x13fe9c,_0x133dc2['options']),_0x2b5884[_0x5ce365(0x16f)](_0x13fe9c);})[_0x3535e5(0x114)](function(_0x2f78f2){const _0x2dfe65=_0x3535e5;if(_0x2f78f2)return _0x8061be=_0x2f78f2[_0x2dfe65(0x103)],typeof _0x133dc2['query'][_0x2dfe65(0xe7)]==='undefined'&&(_0x13fe9c['limit']=qs[_0x2dfe65(0xbe)](_0x133dc2[_0x2dfe65(0x113)][_0x2dfe65(0xbe)]),_0x13fe9c[_0x2dfe65(0xca)]=qs[_0x2dfe65(0xca)](_0x133dc2['query'][_0x2dfe65(0xca)])),_0x2b5884['getApplications'](_0x13fe9c);})['then'](function(_0x451520){if(_0x451520)return _0x451520?{'count':_0x8061be,'rows':_0x451520}:null;})[_0x3535e5(0x114)](respondWithResult(_0x3bd5b9,null))[_0x3535e5(0xbb)](handleError(_0x3bd5b9,null));},exports['getInteractions']=function(_0x117f18,_0xa78e9a){const _0x25dcb8=a650_0x14ecf7;let _0x28b13a={'raw':![],'where':{}};const _0x1c80cb={},_0x2fd8ff={'count':0x0,'rows':[]};return db[_0x25dcb8(0xf0)][_0x25dcb8(0x119)]({'where':{'id':_0x117f18[_0x25dcb8(0x170)]['id']}})[_0x25dcb8(0x114)](handleEntityNotFound(_0xa78e9a,null))[_0x25dcb8(0x114)](function(_0xc87707){const _0x4a0649=_0x25dcb8;if(_0xc87707)return _0x1c80cb[_0x4a0649(0x168)]=_[_0x4a0649(0x108)](db[_0x4a0649(0x12f)][_0x4a0649(0x175)]),_0x1c80cb[_0x4a0649(0x113)]=_['keys'](_0x117f18[_0x4a0649(0x113)]),_0x1c80cb['filters']=_[_0x4a0649(0x174)](_0x1c80cb[_0x4a0649(0x168)],_0x1c80cb[_0x4a0649(0x113)]),_0x28b13a[_0x4a0649(0x139)]=_['intersection'](_0x1c80cb['model'],qs['fields'](_0x117f18[_0x4a0649(0x113)][_0x4a0649(0x134)])),_0x28b13a['attributes']=_0x28b13a[_0x4a0649(0x139)][_0x4a0649(0x103)]?_0x28b13a[_0x4a0649(0x139)]:_0x1c80cb[_0x4a0649(0x168)],typeof _0x117f18[_0x4a0649(0x113)][_0x4a0649(0xe7)]===_0x4a0649(0xeb)&&(_0x28b13a[_0x4a0649(0xbe)]=qs[_0x4a0649(0xbe)](_0x117f18[_0x4a0649(0x113)][_0x4a0649(0xbe)]),_0x28b13a[_0x4a0649(0xca)]=qs[_0x4a0649(0xca)](_0x117f18['query']['offset'])),_0x28b13a[_0x4a0649(0x13d)]=qs[_0x4a0649(0xf8)](_0x117f18[_0x4a0649(0x113)][_0x4a0649(0xf8)]),_0x28b13a[_0x4a0649(0xc1)]=qs['filters'](_[_0x4a0649(0xef)](_0x117f18[_0x4a0649(0x113)],_0x1c80cb[_0x4a0649(0xcf)])),_0x28b13a[_0x4a0649(0xc1)][_0x4a0649(0x146)]=_0xc87707['id'],_0x117f18[_0x4a0649(0x113)]['filter']&&(_0x28b13a[_0x4a0649(0xc1)]=_['merge'](_0x28b13a[_0x4a0649(0xc1)],{[Op['or']]:_[_0x4a0649(0x141)](_0x28b13a['attributes'],function(_0x25da70){const _0x3212b9=_0x4a0649,_0x53d683={};return _0x53d683[_0x25da70]={[Op[_0x3212b9(0xea)]]:'%'+_0x117f18[_0x3212b9(0x113)][_0x3212b9(0x11c)]+'%'},_0x53d683;})})),_0x28b13a=_[_0x4a0649(0xdc)]({},_0x28b13a,_0x117f18[_0x4a0649(0x12b)]),db['SmsInteraction'][_0x4a0649(0x120)]({'where':_0x28b13a[_0x4a0649(0xc1)]})[_0x4a0649(0x114)](function(_0x40af59){const _0x282529=_0x4a0649;return _0x2fd8ff['count']=_0x40af59,_0x117f18[_0x282529(0x113)][_0x282529(0xfd)]&&(_0x28b13a[_0x282529(0xc7)]=[{'model':db[_0x282529(0x10a)],'as':_0x282529(0x16d),'required':![]},{'model':db[_0x282529(0x110)],'as':'Owner','attributes':['name',_0x282529(0xba),_0x282529(0x166)],'required':![]},{'model':db[_0x282529(0x15f)],'as':_0x282529(0x182),'attributes':['id',_0x282529(0x164),_0x282529(0xd1)],'where':_0x117f18['query'][_0x282529(0xde)]?{'id':_0x117f18[_0x282529(0x113)][_0x282529(0xde)]}:undefined,'required':_0x117f18[_0x282529(0x113)][_0x282529(0xde)]?!![]:![]}]),db[_0x282529(0x12f)][_0x282529(0x12d)](_0x28b13a);})['then'](function(_0x2ca779){const _0x3bb3b2=_0x4a0649;return _0x2fd8ff[_0x3bb3b2(0x15e)]=_0x2ca779,_0x2fd8ff;});})[_0x25dcb8(0x114)](respondWithFilteredResult(_0xa78e9a,_0x28b13a))[_0x25dcb8(0xbb)](handleError(_0xa78e9a,null));},exports[a650_0x14ecf7(0x148)]=function(_0x4caf60,_0x3b05fb){const _0x3bc88a=a650_0x14ecf7;let _0x59b569,_0x4501d9;if(_['isNil'](_0x4caf60[_0x3bc88a(0x109)]['body'])||_0x4caf60['body']['body']==='')throw new ValidationError(_0x3bc88a(0xd0));if(_[_0x3bc88a(0xf9)](_0x4caf60[_0x3bc88a(0x109)]['to']))throw new ValidationError(_0x3bc88a(0x10b));const _0x394944=_0x4caf60[_0x3bc88a(0x109)]['to'];return db['SmsAccount']['findOne']({'where':{'id':_0x4caf60['params']['id']},'include':[{'model':db[_0x3bc88a(0x152)],'as':'List','include':[{'model':db[_0x3bc88a(0x10a)],'as':_0x3bc88a(0x125),'where':{'mobile':_0x394944},'limit':0x1,'order':[[_0x3bc88a(0x115),_0x3bc88a(0x181)]]}]}]})['then'](handleEntityNotFound(_0x3b05fb,null))[_0x3bc88a(0x114)](function(_0x5be34a){const _0x34b316=_0x3bc88a;if(_0x5be34a&&_0x5be34a[_0x34b316(0x123)]){_0x59b569=_0x5be34a[_0x34b316(0xf3)]({'plain':!![]});if(_0x59b569[_0x34b316(0x123)]&&_0x59b569[_0x34b316(0x123)][_0x34b316(0x125)][_0x34b316(0x103)])return _0x59b569[_0x34b316(0x123)][_0x34b316(0x125)][0x0];return db[_0x34b316(0x10a)][_0x34b316(0x17a)](_[_0x34b316(0x167)](_0x4caf60[_0x34b316(0x109)],{'firstName':_0x394944,'mobile':_0x394944,'phone':_0x394944,'ListId':_0x59b569[_0x34b316(0x13f)]}));}})[_0x3bc88a(0x114)](handleEntityNotFound(_0x3b05fb,null))[_0x3bc88a(0x114)](function(_0x54130c){const _0x2bc7e9=_0x3bc88a;if(_0x54130c)return _0x4501d9=_0x54130c,db[_0x2bc7e9(0x12f)]['findOne']({'where':{'ContactId':_0x4501d9['id'],'closed':![],'SmsAccountId':_0x59b569['id']}})[_0x2bc7e9(0x114)](function(_0x48d5e4){const _0x177b83=_0x2bc7e9;if(_0x48d5e4)return[_0x48d5e4,![]];return db[_0x177b83(0x12f)][_0x177b83(0x17a)]({'UserId':_0x4caf60['user']['id'],'ContactId':_0x4501d9['id'],'SmsAccountId':_0x59b569['id'],'phone':_0x394944,'firstMsgDirection':_0x177b83(0x11e),'Messages':[_[_0x177b83(0xdc)](_0x4caf60[_0x177b83(0x109)],{'read':![],'body':_0x4caf60['body']['body'],'phone':_0x394944,'SmsAccountId':_0x59b569['id'],'UserId':_0x4caf60[_0x177b83(0xf2)]['id'],'ContactId':_0x4501d9['id']})]},{'include':[{'model':db[_0x177b83(0x16c)],'as':_0x177b83(0xfb)}]})['then'](function(_0x19c898){return[_0x19c898,!![]];});});})['then'](function([_0x2e1e4b,_0x3a53d8]){const _0x25dd54=_0x3bc88a;if(_0x3a53d8)return _0x2e1e4b;return db[_0x25dd54(0x16c)][_0x25dd54(0x17a)](_[_0x25dd54(0xdc)](_0x4caf60[_0x25dd54(0x109)],{'read':![],'body':_0x4caf60[_0x25dd54(0x109)][_0x25dd54(0x109)],'phone':_0x394944,'SmsAccountId':_0x59b569['id'],'SmsInteractionId':_0x2e1e4b['id'],'UserId':_0x4caf60[_0x25dd54(0xf2)]['id'],'ContactId':_0x4501d9['id']}))[_0x25dd54(0x114)](function(_0x4c3a6b){const _0xe9fe0=_0x25dd54;return _0x2e1e4b[_0xe9fe0(0x179)][_0xe9fe0(0xfb)]=[],_0x2e1e4b[_0xe9fe0(0x179)][_0xe9fe0(0xfb)][_0xe9fe0(0x162)](_0x4c3a6b[_0xe9fe0(0x179)]),_0x2e1e4b;});})[_0x3bc88a(0x114)](respondWithResult(_0x3b05fb,null))[_0x3bc88a(0xbb)](handleError(_0x3b05fb,null));},exports['status']=function(_0xae0801,_0x3ab362){const _0x593e79=a650_0x14ecf7;_0xae0801[_0x593e79(0x109)]['id']&&delete _0xae0801[_0x593e79(0x109)]['id'];console['log'](_0x593e79(0xc2),_0xae0801[_0x593e79(0x109)]);let _0xea930f,_0x22d362,_0x2bdf0a;return db[_0x593e79(0xf0)][_0x593e79(0x119)]({'where':{'id':_0xae0801[_0x593e79(0x170)]['id']}})[_0x593e79(0x114)](handleEntityNotFound(_0x3ab362,null))[_0x593e79(0x114)](function(_0x361bd8){const _0x538fa3=_0x593e79;if(_0x361bd8){_0x2bdf0a=_0x361bd8,logger[_0x538fa3(0x136)]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x538fa3(0xd5),'received\x20delivery\x20report\x20from',_0x361bd8[_0x538fa3(0x122)],util['inspect'](_0xae0801[_0x538fa3(0x109)],{'showHidden':![],'depth':null}));switch(_0x361bd8['type']){case'skebby':if(_0xae0801[_0x538fa3(0x109)][_0x538fa3(0xcb)]&&_0xae0801[_0x538fa3(0x109)][_0x538fa3(0xd5)])return _0x22d362=_0xae0801[_0x538fa3(0x109)][_0x538fa3(0xd5)],db[_0x538fa3(0x16c)][_0x538fa3(0x119)]({'where':{'messageId':_0xae0801[_0x538fa3(0x109)]['skebby_dispatch_id']}});break;case'connectel':if(_0xae0801['body']['requestid']&&_0xae0801[_0x538fa3(0x109)][_0x538fa3(0x147)])return _0x22d362=_0xae0801[_0x538fa3(0x109)]['statusInt'],db['SmsMessage'][_0x538fa3(0x119)]({'where':{'messageId':_0xae0801[_0x538fa3(0x109)][_0x538fa3(0x130)]}});break;case'clicksend':if(_0xae0801[_0x538fa3(0x109)][_0x538fa3(0x14c)]&&_0xae0801[_0x538fa3(0x109)]['status_code'])return _0x22d362=_0xae0801['body'][_0x538fa3(0x17e)],db[_0x538fa3(0x16c)][_0x538fa3(0x119)]({'where':{'messageId':_0xae0801[_0x538fa3(0x109)][_0x538fa3(0x14c)]}});break;case _0x538fa3(0xc5):{const _0x25d1f9=_0xae0801[_0x538fa3(0x109)][_0x538fa3(0x13e)][0x0];if(_0x25d1f9[_0x538fa3(0x163)]&&_0x25d1f9[_0x538fa3(0xd5)]['groupName']==='DELIVERED')return _0x22d362=_0x25d1f9['status'][_0x538fa3(0x156)],db[_0x538fa3(0x16c)][_0x538fa3(0x119)]({'where':{'messageId':_0x25d1f9[_0x538fa3(0x163)]}});}break;case _0x538fa3(0x132):if(_0xae0801['body'][_0x538fa3(0x163)]&&_0xae0801[_0x538fa3(0x109)][_0x538fa3(0xd5)])return _0x22d362=_0xae0801[_0x538fa3(0x109)][_0x538fa3(0xd5)],db[_0x538fa3(0x16c)][_0x538fa3(0x119)]({'where':{'messageId':_0xae0801['body'][_0x538fa3(0x163)]}});break;case _0x538fa3(0xf4):if(_0xae0801[_0x538fa3(0x109)][_0x538fa3(0x133)]&&_0xae0801[_0x538fa3(0x109)][_0x538fa3(0xd5)])return _0x22d362=_0xae0801[_0x538fa3(0x109)][_0x538fa3(0xd5)],db['SmsMessage'][_0x538fa3(0x119)]({'where':{'messageId':_0xae0801[_0x538fa3(0x109)]['redif']}});break;}}})[_0x593e79(0x114)](handleEntityNotFound(_0x3ab362,null))[_0x593e79(0x114)](function(_0x399375){const _0x2685a1=_0x593e79;if(_0x399375){_0xea930f=_0x399375;switch(_0x2bdf0a[_0x2685a1(0x122)]){case _0x2685a1(0x15d):if(_0x22d362===_0x2685a1(0xec))return _0xea930f[_0x2685a1(0x160)]({'read':!![]});else logger[_0x2685a1(0x11d)](_0x2685a1(0xd2),_0x2685a1(0xd5),_0x2685a1(0x15d),util[_0x2685a1(0xed)](_0xae0801[_0x2685a1(0x109)],{'showHidden':![],'depth':null}));break;case _0x2685a1(0x158):if(_0x22d362==='1')return _0xea930f[_0x2685a1(0x160)]({'read':!![]});else logger[_0x2685a1(0x11d)](_0x2685a1(0xd2),_0x2685a1(0xd5),_0x2685a1(0x15d),util[_0x2685a1(0xed)](_0xae0801[_0x2685a1(0x109)],{'showHidden':![],'depth':null}));break;case _0x2685a1(0x104):if(!_0xae0801[_0x2685a1(0x109)][_0x2685a1(0xda)]&&_0x22d362>=0xc8&&_0x22d362<=0xce)return _0xea930f[_0x2685a1(0x160)]({'read':!![]});else logger[_0x2685a1(0x11d)](_0x2685a1(0xd2),_0x2685a1(0xd5),_0x2685a1(0x104),util[_0x2685a1(0xed)](_0xae0801[_0x2685a1(0x109)],{'showHidden':![],'depth':null}));break;case _0x2685a1(0xc5):{const _0x7fbecd=_0xae0801[_0x2685a1(0x109)][_0x2685a1(0x13e)][0x0];if(_0x7fbecd[_0x2685a1(0xd5)][_0x2685a1(0x156)]===_0x2685a1(0xec))return _0xea930f[_0x2685a1(0x160)]({'read':!![]});else logger[_0x2685a1(0x11d)](_0x2685a1(0xd2),_0x2685a1(0xd5),_0x2685a1(0xc5),util[_0x2685a1(0xed)](_0xae0801[_0x2685a1(0x109)],{'showHidden':![],'depth':null}));}break;case _0x2685a1(0x132):if(_0x22d362==_0x2685a1(0x137)||_0x22d362==_0x2685a1(0xfc))return _0xea930f['update']({'read':!![]});else logger[_0x2685a1(0x11d)](_0x2685a1(0xd2),'status',_0x2685a1(0x132),util['inspect'](_0xae0801[_0x2685a1(0x109)],{'showHidden':![],'depth':null}));break;case _0x2685a1(0xf4):if(_0x22d362===_0x2685a1(0xe4)||_0x22d362===_0x2685a1(0x10e))return _0xea930f[_0x2685a1(0x160)]({'read':!![]});else logger[_0x2685a1(0x11d)](_0x2685a1(0xd2),'status','intelepeer',util[_0x2685a1(0xed)](_0xae0801[_0x2685a1(0x109)],{'showHidden':![],'depth':null}));break;}return _0xea930f;}})[_0x593e79(0x114)](respondWithResult(_0x3ab362,null))[_0x593e79(0xbb)](handleError(_0x3ab362,null));},exports['statusGet']=function(_0x19105e,_0x557fc5){const _0x3daacb=a650_0x14ecf7;let _0x4e0415,_0x3efcbc,_0x25f6db;return db['SmsAccount'][_0x3daacb(0x119)]({'where':{'id':_0x19105e[_0x3daacb(0x170)]['id']}})[_0x3daacb(0x114)](handleEntityNotFound(_0x557fc5,null))[_0x3daacb(0x114)](function(_0xaf32b7){const _0x1e14be=_0x3daacb;if(_0xaf32b7){_0x25f6db=_0xaf32b7,logger[_0x1e14be(0x136)](_0x1e14be(0xd2),_0x1e14be(0xd5),_0x1e14be(0x12e),_0xaf32b7[_0x1e14be(0x122)],util[_0x1e14be(0xed)](_0x19105e[_0x1e14be(0x113)],{'showHidden':![],'depth':null}));switch(_0xaf32b7[_0x1e14be(0x122)]){case _0x1e14be(0x116):if(_0x19105e[_0x1e14be(0x113)][_0x1e14be(0x172)]&&_0x19105e['query'][_0x1e14be(0x13c)])return _0x3efcbc=_0x19105e[_0x1e14be(0x113)][_0x1e14be(0x13c)],db['SmsMessage'][_0x1e14be(0x119)]({'where':{'messageId':_0x19105e[_0x1e14be(0x113)][_0x1e14be(0x172)]}});break;}}})[_0x3daacb(0x114)](handleEntityNotFound(_0x557fc5,null))[_0x3daacb(0x114)](function(_0x318606){const _0x56b926=_0x3daacb;if(_0x318606){_0x4e0415=_0x318606;switch(_0x25f6db[_0x56b926(0x122)]){case _0x56b926(0x116):if(_0x3efcbc==='2'||_0x3efcbc==='6')return _0x4e0415['update']({'read':!![]});else logger[_0x56b926(0x11d)](_0x56b926(0xd2),'status',_0x56b926(0x116),util[_0x56b926(0xed)](_0x19105e[_0x56b926(0x113)],{'showHidden':![],'depth':null}));break;}return _0x4e0415;}})['then'](respondWithResult(_0x557fc5,null))[_0x3daacb(0xbb)](handleError(_0x557fc5,null));},exports[a650_0x14ecf7(0x177)]=function(_0x4487b1,_0x361881){const _0x585abe=a650_0x14ecf7;return db[_0x585abe(0xf0)]['findOne']({'where':{'id':_0x4487b1[_0x585abe(0x170)]['id']}})[_0x585abe(0x114)](function(_0x1ab12f){const _0x2a1f62=_0x585abe;if(_0x1ab12f)return _0x1ab12f[_0x2a1f62(0x177)](_0x4487b1[_0x2a1f62(0x109)]['ids'],{'through':_[_0x2a1f62(0xd8)](_0x4487b1[_0x2a1f62(0x109)],['ids','id'])})['then'](function(_0x46feea){const _0x48691a=_0x2a1f62;for(let _0x9f883e=0x0;_0x9f883e<_0x4487b1[_0x48691a(0x109)]['ids'][_0x48691a(0x103)];_0x9f883e+=0x1){socket[_0x48691a(0x14a)](_0x48691a(0x117),{'UserId':_0x4487b1[_0x48691a(0x109)]['ids'][_0x9f883e],'SmsAccountId':_0x4487b1[_0x48691a(0x170)]['id']});}return _0x46feea;});})[_0x585abe(0x114)](respondWithResult(_0x361881,null))[_0x585abe(0xbb)](handleError(_0x361881,null));},exports[a650_0x14ecf7(0x102)]=function(_0x1fc367,_0x3fbc06){const _0x2e6c5e=a650_0x14ecf7;return db[_0x2e6c5e(0xf0)][_0x2e6c5e(0x119)]({'where':{'id':_0x1fc367['params']['id']}})[_0x2e6c5e(0x114)](handleEntityNotFound(_0x3fbc06,null))[_0x2e6c5e(0x114)](function(_0x3bbbcd){const _0x4b1a1e=_0x2e6c5e;if(_0x3bbbcd)return _0x3bbbcd[_0x4b1a1e(0x102)](_0x1fc367[_0x4b1a1e(0x113)][_0x4b1a1e(0x16a)])[_0x4b1a1e(0x114)](function(){const _0x377bd9=_0x4b1a1e;if(_[_0x377bd9(0x10d)](_0x1fc367[_0x377bd9(0x113)][_0x377bd9(0x16a)]))for(let _0x47eddc=0x0;_0x47eddc<_0x1fc367[_0x377bd9(0x113)]['ids'][_0x377bd9(0x103)];_0x47eddc+=0x1){socket[_0x377bd9(0x14a)](_0x377bd9(0xe6),{'UserId':Number(_0x1fc367['query'][_0x377bd9(0x16a)][_0x47eddc]),'SmsAccountId':Number(_0x1fc367['params']['id'])});}else socket[_0x377bd9(0x14a)](_0x377bd9(0xe6),{'UserId':Number(_0x1fc367[_0x377bd9(0x113)]['ids']),'SmsAccountId':Number(_0x1fc367['params']['id'])});});})[_0x2e6c5e(0x114)](respondWithStatusCode(_0x3fbc06,null))[_0x2e6c5e(0xbb)](handleError(_0x3fbc06,null));},exports['getAgents']=function(_0x171d8a,_0x572e28){const _0x3c6b61=a650_0x14ecf7;let _0x7cfef6={};const _0x510475={};let _0x44585a,_0x145c45;return db[_0x3c6b61(0xf0)][_0x3c6b61(0x119)]({'where':{'id':_0x171d8a[_0x3c6b61(0x170)]['id']}})['then'](handleEntityNotFound(_0x572e28,null))[_0x3c6b61(0x114)](function(_0x3440cf){const _0x590781=_0x3c6b61;if(_0x3440cf)return _0x44585a=_0x3440cf,_0x510475[_0x590781(0x168)]=_[_0x590781(0x108)](db[_0x590781(0x110)]['rawAttributes']),_0x510475[_0x590781(0x113)]=_['keys'](_0x171d8a[_0x590781(0x113)]),_0x510475[_0x590781(0xcf)]=_['intersection'](_0x510475[_0x590781(0x168)],_0x510475[_0x590781(0x113)]),_0x7cfef6[_0x590781(0x139)]=_[_0x590781(0x174)](_0x510475['model'],qs[_0x590781(0x134)](_0x171d8a[_0x590781(0x113)][_0x590781(0x134)])),_0x7cfef6[_0x590781(0x139)]=_0x7cfef6[_0x590781(0x139)][_0x590781(0x103)]?_0x7cfef6[_0x590781(0x139)]:_0x510475[_0x590781(0x168)],_0x7cfef6[_0x590781(0x13d)]=qs[_0x590781(0xf8)](_0x171d8a[_0x590781(0x113)][_0x590781(0xf8)]),_0x7cfef6[_0x590781(0xc1)]=qs[_0x590781(0xcf)](_['pick'](_0x171d8a['query'],_0x510475[_0x590781(0xcf)])),_0x171d8a[_0x590781(0x113)][_0x590781(0x11c)]&&(_0x7cfef6[_0x590781(0xc1)]=_['merge'](_0x7cfef6[_0x590781(0xc1)],{[Op['or']]:_[_0x590781(0x141)](_0x7cfef6[_0x590781(0x139)],function(_0x47c9a8){const _0xa15fc3=_0x590781,_0x119b49={};return _0x119b49[_0x47c9a8]={[Op[_0xa15fc3(0xea)]]:'%'+_0x171d8a[_0xa15fc3(0x113)][_0xa15fc3(0x11c)]+'%'},_0x119b49;})})),_0x7cfef6=_[_0x590781(0xdc)]({},_0x7cfef6,_0x171d8a['options']),_0x44585a[_0x590781(0xdd)](_0x7cfef6);})[_0x3c6b61(0x114)](function(_0x5b4fbd){const _0x428e7b=_0x3c6b61;if(_0x5b4fbd)return _0x145c45=_0x5b4fbd[_0x428e7b(0x103)],typeof _0x171d8a[_0x428e7b(0x113)][_0x428e7b(0xe7)]===_0x428e7b(0xeb)&&(_0x7cfef6[_0x428e7b(0xbe)]=qs[_0x428e7b(0xbe)](_0x171d8a[_0x428e7b(0x113)]['limit']),_0x7cfef6[_0x428e7b(0xca)]=qs[_0x428e7b(0xca)](_0x171d8a[_0x428e7b(0x113)]['offset'])),_0x44585a['getAgents'](_0x7cfef6);})[_0x3c6b61(0x114)](function(_0x4c594c){if(_0x4c594c)return _0x4c594c?{'count':_0x145c45,'rows':_0x4c594c}:null;})[_0x3c6b61(0x114)](respondWithResult(_0x572e28,null))[_0x3c6b61(0xbb)](handleError(_0x572e28,null));}; \ No newline at end of file +const a650_0x4576=['messageId','inspect','body','query','SmsAccountId','message_id','Content-Range','startRouting','requestid','Contacts','mandatoryDispositionPause','filter','key','push','describe','transaction','sendStatus','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','User','lodash','Tags','twilio','userSmsAccount:save','state','SmsAccount,\x20%s,\x20%s,\x20%s','defaults','DELIVRD','sequelize','intersection','../../config/logger','no\x20available\x20attributes','account','get','originatingAddress','fields','notify','ListId','contact','offset','interaction','addAgents','intelepeer','SmsInteraction','filters','status_code','util','then','request\x20sent','SmsAccounts','limit','ids','count','removeDispositions','omit','Content-Type','emit','ContactId','model','unmanaged','show','waitForTheAssignedAgent','isNil','options','color','to\x20is\x20mandatory','send','received\x20delivery\x20report\x20from','Contact','debug','CmContact','Start','create','rawAttributes','set','internal','json','rows','UserProfileResource','Messages','\x0a','autoAssociation','../../components/parsers/qs','getInteractions','addDisposition','MessageUUID','include','info','dataValues','getAgents','From','CmList','tag','List','applications','body\x20is\x20mandatory\x20and\x20not\x20empty','text','CannedAnswer','mapKey','fieldName','order','asc','stringify','SmsAccount,\x20%s,\x20%s','request','plivo','map','created','merge','type','updatedAt','../../rediscache','SmsAccount,\x20%s,\x20%s,\x20%s,\x20%s','fromNumber','client','statusGet','DELIVERED_TO_GATEWAY','sort','removeAgents','getApplications','ACCEPTD','findAll','refid','bulkCreate','params','name','SmsApplication','includeAll','end','unshift','pick','undefined','connectel','attributes','user','UserProfileSection','CompanyId','Unable\x20to\x20retrieve\x20the\x20current\x20user','SmsAccount','DELIVERED','receiveMessage','destroy','like','code','length','list','Body','addAnswer','Tag','mobile','clicksend','register','../../mysqldb','from','skebby','redif','sender','replyMessageId','where','autoclose','Pause','SmsMessage','nolimit','jayson/promise','priority','index','status','Disposition','skebby_dispatch_id','entity\x20found','UserId','isArray','fullname','userSmsAccount:remove','*,*,*,*','results','infobip','agent','out','statusInt','catch','message','groupName','csc','DESC','close','findOne','keys','getDispositions','update','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','addApplications','error','removeAnswers','clickatell','text/xml','Applications','sms','message-id'];(function(_0x731ee7,_0x1acf44){const _0x457664=function(_0x40f7fb){while(--_0x40f7fb){_0x731ee7['push'](_0x731ee7['shift']());}};_0x457664(++_0x1acf44);}(a650_0x4576,0xd3));const a650_0x40f7=function(_0x731ee7,_0x1acf44){_0x731ee7=_0x731ee7-0x131;let _0x457664=a650_0x4576[_0x731ee7];return _0x457664;};const a650_0x51ab18=a650_0x40f7;'use strict';const util=require(a650_0x51ab18(0x151)),_=require(a650_0x51ab18(0x137)),qs=require(a650_0x51ab18(0x175)),logger=require(a650_0x51ab18(0x141))('api'),{getSocket}=require(a650_0x51ab18(0x192)),socket=getSocket(),{db}=require(a650_0x51ab18(0x1bb)),{Op,ValidationError}=require(a650_0x51ab18(0x13f));require('./smsAccount.socket')[a650_0x51ab18(0x1ba)](socket);const jayson=require(a650_0x51ab18(0x1c6)),client=jayson[a650_0x51ab18(0x195)]['http']({'port':0x232c});function respondWithRpcPromise(_0xee3307,_0xc143c4,_0x2e0ba7,_0x3623fc){return new Promise(function(_0x457c6e,_0x3957aa){const _0x13e34c=a650_0x40f7,_0x17dd89=_0x3623fc||client;return _0x17dd89[_0x13e34c(0x18b)](_0xee3307,_0x2e0ba7)[_0x13e34c(0x152)](function(_0xa2d473){const _0x53f109=_0x13e34c;logger[_0x53f109(0x17a)](_0x53f109(0x18a),_0xc143c4,_0x53f109(0x153)),logger[_0x53f109(0x168)](_0x53f109(0x13c),_0xc143c4,_0x53f109(0x153),JSON[_0x53f109(0x189)](_0xa2d473));if(_0xa2d473[_0x53f109(0x1e3)]){if(_0xa2d473[_0x53f109(0x1e3)][_0x53f109(0x1b2)]===0x1f4)return logger['error'](_0x53f109(0x18a),_0xc143c4,_0xa2d473[_0x53f109(0x1e3)][_0x53f109(0x1d8)]),_0x3957aa(_0xa2d473['error'][_0x53f109(0x1d8)]);return logger[_0x53f109(0x1e3)]('SmsAccount,\x20%s,\x20%s',_0xc143c4,_0xa2d473[_0x53f109(0x1e3)][_0x53f109(0x1d8)]),_0x457c6e(_0xa2d473[_0x53f109(0x1e3)][_0x53f109(0x1d8)]);}else logger[_0x53f109(0x17a)](_0x53f109(0x18a),_0xc143c4,_0x53f109(0x153)),_0x457c6e(_0xa2d473['result'][_0x53f109(0x1d8)]);})[_0x13e34c(0x1d7)](function(_0x472daf){const _0x398ec2=_0x13e34c;logger[_0x398ec2(0x1e3)](_0x398ec2(0x18a),_0xc143c4,_0x472daf),_0x3957aa(_0x472daf);});});}function respondWithStatusCode(_0x5e918a,_0x1fd98b){return _0x1fd98b=_0x1fd98b||0xcc,function(_0x28e551){const _0xac7b30=a650_0x40f7;if(_0x28e551)return _0x5e918a[_0xac7b30(0x134)](_0x1fd98b);return _0x5e918a['status'](_0x1fd98b)['end']();};}function respondWithResult(_0x42947c,_0x943eb4){return _0x943eb4=_0x943eb4||0xc8,function(_0x585e3a){const _0x129bad=a650_0x40f7;if(_0x585e3a)return _0x42947c[_0x129bad(0x1c9)](_0x943eb4)[_0x129bad(0x16f)](_0x585e3a);};}function respondWithFilteredResult(_0x5bbfb7,_0x23c5a1){return function(_0x56eac1){const _0x4ecaac=a650_0x40f7;if(_0x56eac1){const _0x3d467b=_0x56eac1['count'],_0x5f0123=_0x23c5a1[_0x4ecaac(0x14a)];let _0x56d53d=_0x23c5a1[_0x4ecaac(0x14a)]+_0x23c5a1[_0x4ecaac(0x155)],_0x5f5d78;return _0x56d53d>=_0x3d467b?(_0x56d53d=_0x3d467b,_0x5f5d78=0xc8):_0x5f5d78=0xce,_0x5bbfb7[_0x4ecaac(0x1c9)](_0x5f5d78),_0x5bbfb7[_0x4ecaac(0x16d)](_0x4ecaac(0x1f0),_0x5f0123+'-'+_0x56d53d+'/'+_0x3d467b)[_0x4ecaac(0x16f)](_0x56eac1);}return null;};}function saveUpdates(_0x2e4d79){return function(_0x37b13e){const _0x7d5b67=a650_0x40f7;if(_0x37b13e)return _0x37b13e[_0x7d5b67(0x1e0)](_0x2e4d79)['then'](function(_0x21f008){return _0x21f008;});return null;};}function removeEntity(_0x522ac6){return function(_0x491618){const _0x51c878=a650_0x40f7;if(_0x491618)return _0x491618[_0x51c878(0x1b0)]()[_0x51c878(0x152)](function(){const _0x4b8b9a=_0x51c878,_0x223730=_0x491618[_0x4b8b9a(0x144)]({'plain':!![]}),_0x29caa5=_0x4b8b9a(0x154);return db[_0x4b8b9a(0x171)][_0x4b8b9a(0x1b0)]({'where':{'type':_0x29caa5,'resourceId':_0x223730['id']}})[_0x4b8b9a(0x152)](function(){return _0x491618;});})[_0x51c878(0x152)](function(){const _0x4d8b0e=_0x51c878;_0x522ac6[_0x4d8b0e(0x1c9)](0xcc)[_0x4d8b0e(0x1a3)]();});};}function handleEntityNotFound(_0x265474){return function(_0x5624f2){const _0x4d95d5=a650_0x40f7;return!_0x5624f2&&_0x265474[_0x4d95d5(0x134)](0x194),_0x5624f2;};}function handleError(_0x2a2f39,_0x1b51a0){return _0x1b51a0=_0x1b51a0||0x1f4,function(_0x5e1528){const _0x4cc467=a650_0x40f7;logger['error'](_0x5e1528['stack']),_0x5e1528[_0x4cc467(0x1a0)]&&delete _0x5e1528[_0x4cc467(0x1a0)],_0x2a2f39[_0x4cc467(0x1c9)](_0x1b51a0)[_0x4cc467(0x165)](_0x5e1528);};}exports[a650_0x51ab18(0x1c8)]=function(_0x5afb50,_0x37700d){const _0xc87fb=a650_0x51ab18;let _0x3432b4={'include':[{'model':db[_0xc87fb(0x1c3)],'as':_0xc87fb(0x1f4)}]};const _0x55c0e8={},_0x323ca8={'count':0x0,'rows':[]},_0x2c6d2a=_[_0xc87fb(0x18d)](db[_0xc87fb(0x1ad)][_0xc87fb(0x16c)],function(_0x8eab1a){const _0xa15da7=_0xc87fb;return{'name':_0x8eab1a[_0xa15da7(0x186)],'type':_0x8eab1a['type'][_0xa15da7(0x1f6)]};});_0x55c0e8[_0xc87fb(0x15d)]=_[_0xc87fb(0x18d)](_0x2c6d2a,_0xc87fb(0x1a0)),_0x55c0e8[_0xc87fb(0x1ed)]=_['keys'](_0x5afb50[_0xc87fb(0x1ed)]),_0x55c0e8[_0xc87fb(0x14f)]=_[_0xc87fb(0x140)](_0x55c0e8[_0xc87fb(0x15d)],_0x55c0e8[_0xc87fb(0x1ed)]),_0x3432b4['attributes']=_[_0xc87fb(0x140)](_0x55c0e8['model'],qs['fields'](_0x5afb50[_0xc87fb(0x1ed)][_0xc87fb(0x146)])),_0x3432b4[_0xc87fb(0x1a8)]=_0x3432b4[_0xc87fb(0x1a8)][_0xc87fb(0x1b3)]?_0x3432b4[_0xc87fb(0x1a8)]:_0x55c0e8['model'];typeof _0x5afb50[_0xc87fb(0x1ed)][_0xc87fb(0x1c5)]===_0xc87fb(0x1a6)&&(_0x3432b4[_0xc87fb(0x155)]=qs['limit'](_0x5afb50[_0xc87fb(0x1ed)][_0xc87fb(0x155)]),_0x3432b4[_0xc87fb(0x14a)]=qs[_0xc87fb(0x14a)](_0x5afb50[_0xc87fb(0x1ed)][_0xc87fb(0x14a)]));_0x3432b4['order']=qs[_0xc87fb(0x198)](_0x5afb50['query'][_0xc87fb(0x198)]),_0x3432b4['where']=qs[_0xc87fb(0x14f)](_[_0xc87fb(0x1a5)](_0x5afb50['query'],_0x55c0e8[_0xc87fb(0x14f)]),_0x2c6d2a);_0x5afb50[_0xc87fb(0x1ed)]['filter']&&(_0x3432b4['where']=_[_0xc87fb(0x18f)](_0x3432b4[_0xc87fb(0x1c1)],{[Op['or']]:_[_0xc87fb(0x18d)](_0x2c6d2a,function(_0x3c23ce){const _0x504aee=_0xc87fb;if(_0x3c23ce[_0x504aee(0x190)]!=='VIRTUAL'){const _0x15527={};return _0x15527[_0x3c23ce[_0x504aee(0x1a0)]]={[Op['like']]:'%'+_0x5afb50[_0x504aee(0x1ed)][_0x504aee(0x1f5)]+'%'},_0x15527;}})}));_0x3432b4=_[_0xc87fb(0x18f)]({},_0x3432b4,_0x5afb50[_0xc87fb(0x162)]);const _0x5aff77={'where':_0x3432b4[_0xc87fb(0x1c1)]};return db[_0xc87fb(0x1ad)][_0xc87fb(0x157)](_0x5aff77)[_0xc87fb(0x152)](function(_0x1d6310){const _0x2903d3=_0xc87fb;return _0x323ca8['count']=_0x1d6310,_0x5afb50['query']['includeAll']&&(_0x3432b4[_0x2903d3(0x179)]=[{'all':!![]}]),db[_0x2903d3(0x1ad)][_0x2903d3(0x19c)](_0x3432b4);})[_0xc87fb(0x152)](function(_0x3db31c){const _0x51b5e3=_0xc87fb;return _0x323ca8[_0x51b5e3(0x170)]=_0x3db31c,_0x323ca8;})['then'](respondWithFilteredResult(_0x37700d,_0x3432b4))[_0xc87fb(0x1d7)](handleError(_0x37700d,null));},exports[a650_0x51ab18(0x15f)]=function(_0x738f71,_0x23d71f){const _0x2d6a07=a650_0x51ab18;let _0xd7a071={'raw':![],'where':{'id':_0x738f71['params']['id']},'include':[{'model':db[_0x2d6a07(0x1c3)],'as':_0x2d6a07(0x1f4)}]};const _0x30ef71={};return _0x30ef71[_0x2d6a07(0x15d)]=_['keys'](db['SmsAccount'][_0x2d6a07(0x16c)]),_0x30ef71[_0x2d6a07(0x1ed)]=_['keys'](_0x738f71[_0x2d6a07(0x1ed)]),_0x30ef71['filters']=_[_0x2d6a07(0x140)](_0x30ef71[_0x2d6a07(0x15d)],_0x30ef71[_0x2d6a07(0x1ed)]),_0xd7a071['attributes']=_['intersection'](_0x30ef71[_0x2d6a07(0x15d)],qs[_0x2d6a07(0x146)](_0x738f71[_0x2d6a07(0x1ed)][_0x2d6a07(0x146)])),_0xd7a071[_0x2d6a07(0x1a8)]=_0xd7a071[_0x2d6a07(0x1a8)][_0x2d6a07(0x1b3)]?_0xd7a071[_0x2d6a07(0x1a8)]:_0x30ef71[_0x2d6a07(0x15d)],_0x738f71['query'][_0x2d6a07(0x1a2)]&&(_0xd7a071['include']=[{'all':!![]}]),_0xd7a071=_[_0x2d6a07(0x18f)]({},_0xd7a071,_0x738f71[_0x2d6a07(0x162)]),db[_0x2d6a07(0x1ad)][_0x2d6a07(0x1dd)](_0xd7a071)[_0x2d6a07(0x152)](handleEntityNotFound(_0x23d71f,null))['then'](respondWithResult(_0x23d71f,null))[_0x2d6a07(0x1d7)](handleError(_0x23d71f,null));},exports['create']=function(_0x2aba5a,_0x37adf8){const _0x42e8e4=a650_0x51ab18;return db[_0x42e8e4(0x1ad)][_0x42e8e4(0x16b)](_0x2aba5a[_0x42e8e4(0x1ec)],{})['then'](function(_0x47ee9b){const _0x295429=_0x42e8e4,_0x4c4f55=_0x2aba5a[_0x295429(0x1a9)][_0x295429(0x144)]({'plain':!![]});if(!_0x4c4f55)throw new Error(_0x295429(0x1ac));if(_0x4c4f55['role']===_0x295429(0x1a9)){const _0x2d6e64=_0x47ee9b['get']({'plain':!![]}),_0x483c45='SmsAccounts';return db[_0x295429(0x1aa)][_0x295429(0x1dd)]({'where':{'name':_0x483c45,'userProfileId':_0x4c4f55['userProfileId']},'raw':!![]})[_0x295429(0x152)](function(_0xd81c88){const _0x17adef=_0x295429;return _0xd81c88&&_0xd81c88[_0x17adef(0x174)]===0x0?db[_0x17adef(0x171)][_0x17adef(0x16b)]({'name':_0x2d6e64['name'],'resourceId':_0x2d6e64['id'],'type':_0xd81c88[_0x17adef(0x1a0)],'sectionId':_0xd81c88['id']},{})['then'](function(){return _0x47ee9b;}):_0x47ee9b;})[_0x295429(0x1d7)](function(_0x89a959){const _0x43fa33=_0x295429;logger[_0x43fa33(0x1e3)](_0x43fa33(0x1e1),_0x89a959);throw _0x89a959;});}return _0x47ee9b;})['then'](respondWithResult(_0x37adf8,0xc9))['catch'](handleError(_0x37adf8,null));},exports['update']=function(_0x67bf07,_0x27f855){const _0x9031a2=a650_0x51ab18;return _0x67bf07[_0x9031a2(0x1ec)]['id']&&delete _0x67bf07['body']['id'],db[_0x9031a2(0x1ad)]['findOne']({'where':{'id':_0x67bf07[_0x9031a2(0x19f)]['id']},'include':[{'model':db[_0x9031a2(0x1c3)],'as':_0x9031a2(0x1f4)}]})[_0x9031a2(0x152)](handleEntityNotFound(_0x27f855,null))['then'](saveUpdates(_0x67bf07[_0x9031a2(0x1ec)],null))[_0x9031a2(0x152)](respondWithResult(_0x27f855,null))[_0x9031a2(0x1d7)](handleError(_0x27f855,null));},exports[a650_0x51ab18(0x1b0)]=function(_0x936a6e,_0x2f6606){const _0x53c1c8=a650_0x51ab18;return db[_0x53c1c8(0x1ad)][_0x53c1c8(0x1dd)]({'where':{'id':_0x936a6e[_0x53c1c8(0x19f)]['id']}})['then'](handleEntityNotFound(_0x2f6606,null))[_0x53c1c8(0x152)](removeEntity(_0x2f6606,null))[_0x53c1c8(0x1d7)](handleError(_0x2f6606,null));},exports[a650_0x51ab18(0x132)]=function(_0x3b3df9,_0x104096){const _0x4dff18=a650_0x51ab18;return db[_0x4dff18(0x1ad)][_0x4dff18(0x132)]()[_0x4dff18(0x152)](respondWithResult(_0x104096,null))[_0x4dff18(0x1d7)](handleError(_0x104096,null));},exports[a650_0x51ab18(0x177)]=function(_0x52b9ce,_0x754452){const _0x3e2f01=a650_0x51ab18;return _0x52b9ce[_0x3e2f01(0x1ec)]['id']&&delete _0x52b9ce[_0x3e2f01(0x1ec)]['id'],db[_0x3e2f01(0x1ad)]['findOne']({'where':{'id':_0x52b9ce['params']['id']}})['then'](handleEntityNotFound(_0x754452,null))['then'](function(_0x3614d4){const _0x588399=_0x3e2f01;if(_0x3614d4)return _0x52b9ce[_0x588399(0x1ec)]['SmsAccountId']=_0x3614d4['id'],db[_0x588399(0x1ca)]['create'](_0x52b9ce[_0x588399(0x1ec)]);})[_0x3e2f01(0x152)](respondWithResult(_0x754452,null))[_0x3e2f01(0x1d7)](handleError(_0x754452,null));},exports[a650_0x51ab18(0x1df)]=function(_0x545fa3,_0x474cb4){const _0x2dc73c=a650_0x51ab18;let _0xeb6306={'raw':![],'where':{}};const _0x5851ca={},_0xb10776={'count':0x0,'rows':[]};return db[_0x2dc73c(0x1ad)][_0x2dc73c(0x1dd)]({'where':{'id':_0x545fa3[_0x2dc73c(0x19f)]['id']}})[_0x2dc73c(0x152)](handleEntityNotFound(_0x474cb4,null))['then'](function(_0x3d9083){const _0x50b5b8=_0x2dc73c;if(_0x3d9083)return _0x5851ca['model']=_[_0x50b5b8(0x1de)](db[_0x50b5b8(0x1ca)]['rawAttributes']),_0x5851ca[_0x50b5b8(0x1ed)]=_[_0x50b5b8(0x1de)](_0x545fa3[_0x50b5b8(0x1ed)]),_0x5851ca[_0x50b5b8(0x14f)]=_['intersection'](_0x5851ca['model'],_0x5851ca['query']),_0xeb6306[_0x50b5b8(0x1a8)]=_[_0x50b5b8(0x140)](_0x5851ca[_0x50b5b8(0x15d)],qs[_0x50b5b8(0x146)](_0x545fa3[_0x50b5b8(0x1ed)][_0x50b5b8(0x146)])),_0xeb6306[_0x50b5b8(0x1a8)]=_0xeb6306[_0x50b5b8(0x1a8)][_0x50b5b8(0x1b3)]?_0xeb6306['attributes']:_0x5851ca['model'],typeof _0x545fa3[_0x50b5b8(0x1ed)][_0x50b5b8(0x1c5)]===_0x50b5b8(0x1a6)&&(_0xeb6306[_0x50b5b8(0x155)]=qs[_0x50b5b8(0x155)](_0x545fa3['query'][_0x50b5b8(0x155)]),_0xeb6306[_0x50b5b8(0x14a)]=qs[_0x50b5b8(0x14a)](_0x545fa3[_0x50b5b8(0x1ed)][_0x50b5b8(0x14a)])),_0xeb6306[_0x50b5b8(0x187)]=qs['sort'](_0x545fa3[_0x50b5b8(0x1ed)][_0x50b5b8(0x198)]),_0xeb6306[_0x50b5b8(0x1c1)]=qs[_0x50b5b8(0x14f)](_[_0x50b5b8(0x1a5)](_0x545fa3['query'],_0x5851ca[_0x50b5b8(0x14f)])),_0xeb6306[_0x50b5b8(0x1c1)][_0x50b5b8(0x1ee)]=_0x3d9083['id'],_0x545fa3[_0x50b5b8(0x1ed)]['filter']&&(_0xeb6306[_0x50b5b8(0x1c1)]=_[_0x50b5b8(0x18f)](_0xeb6306[_0x50b5b8(0x1c1)],{[Op['or']]:_[_0x50b5b8(0x18d)](_0xeb6306[_0x50b5b8(0x1a8)],function(_0x40f860){const _0x3a6cf4=_0x50b5b8,_0x31a5db={};return _0x31a5db[_0x40f860]={[Op[_0x3a6cf4(0x1b1)]]:'%'+_0x545fa3[_0x3a6cf4(0x1ed)][_0x3a6cf4(0x1f5)]+'%'},_0x31a5db;})})),_0xeb6306=_[_0x50b5b8(0x18f)]({},_0xeb6306,_0x545fa3['options']),db[_0x50b5b8(0x1ca)]['count']({'where':_0xeb6306[_0x50b5b8(0x1c1)]})[_0x50b5b8(0x152)](function(_0x3a4317){const _0x12fff4=_0x50b5b8;return _0xb10776['count']=_0x3a4317,_0x545fa3[_0x12fff4(0x1ed)][_0x12fff4(0x1a2)]&&(_0xeb6306['include']=[{'all':!![]}]),db[_0x12fff4(0x1ca)][_0x12fff4(0x19c)](_0xeb6306);})[_0x50b5b8(0x152)](function(_0x95f5e4){const _0x42b3df=_0x50b5b8;return _0xb10776[_0x42b3df(0x170)]=_0x95f5e4,_0xb10776;});})[_0x2dc73c(0x152)](respondWithFilteredResult(_0x474cb4,_0xeb6306))[_0x2dc73c(0x1d7)](handleError(_0x474cb4,null));},exports[a650_0x51ab18(0x158)]=function(_0x243e9f,_0xef8938){const _0x2c38bf=a650_0x51ab18;return db[_0x2c38bf(0x1ad)][_0x2c38bf(0x1dd)]({'where':{'id':_0x243e9f[_0x2c38bf(0x19f)]['id']}})[_0x2c38bf(0x152)](handleEntityNotFound(_0xef8938,null))['then'](function(_0x2f0727){const _0x11ea45=_0x2c38bf;if(_0x2f0727)return _0x2f0727[_0x11ea45(0x158)](_0x243e9f[_0x11ea45(0x1ed)][_0x11ea45(0x156)]);})[_0x2c38bf(0x152)](respondWithStatusCode(_0xef8938,null))[_0x2c38bf(0x1d7)](handleError(_0xef8938,null));},exports[a650_0x51ab18(0x1b6)]=function(_0x27c1b7,_0x456ccb){const _0x41edae=a650_0x51ab18;return _0x27c1b7[_0x41edae(0x1ec)]['id']&&delete _0x27c1b7[_0x41edae(0x1ec)]['id'],db[_0x41edae(0x1ad)]['findOne']({'where':{'id':_0x27c1b7[_0x41edae(0x19f)]['id']}})[_0x41edae(0x152)](handleEntityNotFound(_0x456ccb,null))[_0x41edae(0x152)](function(_0x51332b){const _0x2affd4=_0x41edae;if(_0x51332b)return _0x27c1b7[_0x2affd4(0x1ec)]['SmsAccountId']=_0x51332b['id'],db[_0x2affd4(0x184)]['create'](_0x27c1b7[_0x2affd4(0x1ec)]);})[_0x41edae(0x152)](respondWithResult(_0x456ccb,null))[_0x41edae(0x1d7)](handleError(_0x456ccb,null));},exports['getAnswers']=function(_0x12b4f5,_0x486361){const _0x30a399=a650_0x51ab18;let _0x2a5d8c={'raw':![],'where':{}};const _0x2c6e6e={},_0x390e9a={'count':0x0,'rows':[]};return db['SmsAccount'][_0x30a399(0x1dd)]({'where':{'id':_0x12b4f5[_0x30a399(0x19f)]['id']}})[_0x30a399(0x152)](handleEntityNotFound(_0x486361,null))[_0x30a399(0x152)](function(_0x1a4056){const _0x589c71=_0x30a399;if(_0x1a4056)return _0x2c6e6e['model']=_['keys'](db[_0x589c71(0x184)][_0x589c71(0x16c)]),_0x2c6e6e[_0x589c71(0x1ed)]=_[_0x589c71(0x1de)](_0x12b4f5['query']),_0x2c6e6e[_0x589c71(0x14f)]=_[_0x589c71(0x140)](_0x2c6e6e[_0x589c71(0x15d)],_0x2c6e6e[_0x589c71(0x1ed)]),_0x2a5d8c[_0x589c71(0x1a8)]=_['intersection'](_0x2c6e6e[_0x589c71(0x15d)],qs['fields'](_0x12b4f5[_0x589c71(0x1ed)][_0x589c71(0x146)])),_0x2a5d8c[_0x589c71(0x1a8)]=_0x2a5d8c['attributes'][_0x589c71(0x1b3)]?_0x2a5d8c['attributes']:_0x2c6e6e[_0x589c71(0x15d)],typeof _0x12b4f5['query'][_0x589c71(0x1c5)]===_0x589c71(0x1a6)&&(_0x2a5d8c['limit']=qs[_0x589c71(0x155)](_0x12b4f5[_0x589c71(0x1ed)][_0x589c71(0x155)]),_0x2a5d8c[_0x589c71(0x14a)]=qs[_0x589c71(0x14a)](_0x12b4f5[_0x589c71(0x1ed)][_0x589c71(0x14a)])),_0x2a5d8c[_0x589c71(0x187)]=qs[_0x589c71(0x198)](_0x12b4f5[_0x589c71(0x1ed)]['sort']),_0x2a5d8c['where']=qs[_0x589c71(0x14f)](_['pick'](_0x12b4f5[_0x589c71(0x1ed)],_0x2c6e6e[_0x589c71(0x14f)])),_0x2a5d8c[_0x589c71(0x1c1)]['SmsAccountId']=_0x1a4056['id'],_0x12b4f5[_0x589c71(0x1ed)][_0x589c71(0x1f5)]&&(_0x2a5d8c[_0x589c71(0x1c1)]=_[_0x589c71(0x18f)](_0x2a5d8c['where'],{[Op['or']]:_[_0x589c71(0x18d)](_0x2a5d8c[_0x589c71(0x1a8)],function(_0x495412){const _0x5c6829=_0x589c71,_0x1a857a={};return _0x1a857a[_0x495412]={[Op[_0x5c6829(0x1b1)]]:'%'+_0x12b4f5['query'][_0x5c6829(0x1f5)]+'%'},_0x1a857a;})})),_0x2a5d8c=_[_0x589c71(0x18f)]({},_0x2a5d8c,_0x12b4f5[_0x589c71(0x162)]),db[_0x589c71(0x184)]['count']({'where':_0x2a5d8c[_0x589c71(0x1c1)]})[_0x589c71(0x152)](function(_0x2e33c4){const _0x180cbd=_0x589c71;return _0x390e9a['count']=_0x2e33c4,_0x12b4f5['query'][_0x180cbd(0x1a2)]&&(_0x2a5d8c[_0x180cbd(0x179)]=[{'all':!![]}]),db[_0x180cbd(0x184)][_0x180cbd(0x19c)](_0x2a5d8c);})['then'](function(_0xe45928){return _0x390e9a['rows']=_0xe45928,_0x390e9a;});})[_0x30a399(0x152)](respondWithFilteredResult(_0x486361,_0x2a5d8c))[_0x30a399(0x1d7)](handleError(_0x486361,null));},exports[a650_0x51ab18(0x1e4)]=function(_0x2b8d83,_0x46db11){const _0xb8fe49=a650_0x51ab18;return db[_0xb8fe49(0x1ad)][_0xb8fe49(0x1dd)]({'where':{'id':_0x2b8d83['params']['id']}})[_0xb8fe49(0x152)](handleEntityNotFound(_0x46db11,null))[_0xb8fe49(0x152)](function(_0x15468e){const _0x336cf6=_0xb8fe49;if(_0x15468e)return _0x15468e['removeAnswers'](_0x2b8d83[_0x336cf6(0x1ed)][_0x336cf6(0x156)]);})[_0xb8fe49(0x152)](respondWithStatusCode(_0x46db11,null))['catch'](handleError(_0x46db11,null));},exports[a650_0x51ab18(0x147)]=function(_0x4bddcb,_0x22d596){const _0x49e773=a650_0x51ab18,_0x2a2fb2={'channel':_0x49e773(0x1e8)};let _0x3fd1fa=[],_0x1522c1=[];const _0xf4f6d8={};return db[_0x49e773(0x1ad)][_0x49e773(0x1dd)]({'where':{'id':_0x4bddcb['params']['id']},'include':[{'model':db[_0x49e773(0x1a1)],'as':_0x49e773(0x1e7)}]})[_0x49e773(0x152)](handleEntityNotFound(_0x22d596,null))[_0x49e773(0x152)](function(_0xc05602){const _0x26fb18=_0x49e773;return _0x2a2fb2['account']=_0xc05602,_0x2a2fb2[_0x26fb18(0x181)]=_['orderBy'](_0xc05602[_0x26fb18(0x1e7)],[_0x26fb18(0x1c7)],[_0x26fb18(0x188)]),_0x2a2fb2[_0x26fb18(0x143)][_0x26fb18(0x1e7)]&&delete _0x2a2fb2[_0x26fb18(0x143)][_0x26fb18(0x1e7)],db[_0x26fb18(0x169)]['describe']();})[_0x49e773(0x152)](function(_0x303149){const _0x2dc8ef=_0x49e773;if(!_0x303149)throw new ValidationError(_0x2dc8ef(0x142));_0x3fd1fa=_['difference'](_[_0x2dc8ef(0x1de)](_0x303149),['createdAt','updatedAt']),_0x1522c1=_['difference'](_[_0x2dc8ef(0x1de)](_0x303149),['createdAt',_0x2dc8ef(0x191),_0x2dc8ef(0x1ab),_0x2dc8ef(0x148)]),_0x2a2fb2['body']={'mapKey':_0x2dc8ef(0x1b8)};if(_0x2a2fb2[_0x2dc8ef(0x143)]['type'])switch(_0x2a2fb2[_0x2dc8ef(0x143)][_0x2dc8ef(0x190)]){case _0x2dc8ef(0x139):_0x2a2fb2[_0x2dc8ef(0x1ec)]['from']=_0x4bddcb['body'][_0x2dc8ef(0x17d)],_0x2a2fb2['body'][_0x2dc8ef(0x1ec)]=_0x4bddcb[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1b5)],_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1ea)]=_0x4bddcb[_0x2dc8ef(0x1ec)]['MessageSid'];break;case'skebby':_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1bc)]='+'+_0x4bddcb['body'][_0x2dc8ef(0x1bf)],_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1ec)]=_0x4bddcb[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x183)];break;case'connectel':_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1bc)]=_0x4bddcb[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1bc)],_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1ec)]=_0x4bddcb['body'][_0x2dc8ef(0x1d8)];break;case _0x2dc8ef(0x1b9):_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1bc)]=_0x4bddcb[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1bc)],_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1ec)]=_0x4bddcb[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1ec)],_0x2a2fb2['body'][_0x2dc8ef(0x1ea)]=_0x4bddcb[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1ef)];break;case _0x2dc8ef(0x18c):_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1bc)]=_0x4bddcb[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x17d)],_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1ec)]=_0x4bddcb[_0x2dc8ef(0x1ec)]['Text'],_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1ea)]=_0x4bddcb[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x178)];break;case'infobip':_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1bc)]='+'+_0x4bddcb[_0x2dc8ef(0x1ec)]['results'][0x0][_0x2dc8ef(0x1bc)],_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1ec)]=_0x4bddcb[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1d2)][0x0][_0x2dc8ef(0x183)],_0x2a2fb2[_0x2dc8ef(0x1ec)]['messageId']=_0x4bddcb[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1d2)][0x0]['messageId'];break;case _0x2dc8ef(0x1da):_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1bc)]=_0x4bddcb[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x145)],_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1ec)]=_0x4bddcb[_0x2dc8ef(0x1ec)]['segmentedMessage']['message'];break;case _0x2dc8ef(0x1e5):_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1bc)]=_0x4bddcb[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x194)],_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1ec)]=_0x4bddcb[_0x2dc8ef(0x1ec)]['text'],_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1ea)]=_0x4bddcb[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1c0)];break;case _0x2dc8ef(0x14d):_0x2a2fb2['body'][_0x2dc8ef(0x1bc)]=_0x4bddcb['body'][_0x2dc8ef(0x1bc)],_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1ec)]=_0x4bddcb[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1d8)],_0x2a2fb2[_0x2dc8ef(0x1ec)]['messageId']=_0x4bddcb['body'][_0x2dc8ef(0x19d)];break;}_0x2a2fb2['body']['id']&&delete _0x2a2fb2['body']['id'];if(_[_0x2dc8ef(0x161)](_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1bc)]))throw new ValidationError('from\x20is\x20mandatory');if(_['isNil'](_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1ec)])||_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1ec)]==='')throw new ValidationError(_0x2dc8ef(0x182));if(_['isNil'](_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x185)]))throw new ValidationError('mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x1522c1);if(!_['includes'](_0x1522c1,_0x2a2fb2[_0x2dc8ef(0x1ec)]['mapKey']))throw new ValidationError(_0x2dc8ef(0x135)+_0x1522c1);return _0xf4f6d8[_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x185)]]=_0x2a2fb2[_0x2dc8ef(0x1ec)][_0x2dc8ef(0x1bc)],db[_0x2dc8ef(0x17e)]['findOne']({'where':{'id':_0x2a2fb2[_0x2dc8ef(0x143)][_0x2dc8ef(0x148)]},'include':[{'model':db[_0x2dc8ef(0x169)],'as':_0x2dc8ef(0x1f3),'where':_0xf4f6d8,'limit':0x1,'order':[[_0x2dc8ef(0x191),'DESC']]}]});})['then'](handleEntityNotFound(_0x22d596,null))[_0x49e773(0x152)](function(_0x5eddd7){const _0x4415ca=_0x49e773;if(_0x5eddd7){_0x2a2fb2[_0x4415ca(0x1b4)]=_[_0x4415ca(0x159)](_0x5eddd7,[_0x4415ca(0x1f3)]);if(_0x5eddd7[_0x4415ca(0x1f3)][_0x4415ca(0x1b3)])return _0x5eddd7[_0x4415ca(0x1f3)][0x0];const _0x66d0ad=_[_0x4415ca(0x13d)](_0x2a2fb2[_0x4415ca(0x1ec)],{'firstName':_0x2a2fb2['body'][_0x4415ca(0x1bc)],'ListId':_0x5eddd7['id']});return _0x66d0ad[_0x2a2fb2[_0x4415ca(0x1ec)][_0x4415ca(0x185)]]=_0x2a2fb2[_0x4415ca(0x1ec)]['from'],db[_0x4415ca(0x169)][_0x4415ca(0x16b)](_0x66d0ad,{'fields':_0x3fd1fa,'raw':!![]});}})[_0x49e773(0x152)](handleEntityNotFound(_0x22d596,null))[_0x49e773(0x152)](function(_0x49c57c){const _0xe01700=_0x49e773;if(_0x49c57c){_0x2a2fb2[_0xe01700(0x149)]=_0x49c57c;const _0x5f49ae={'ContactId':_0x49c57c['id'],'phone':_0x2a2fb2['body']['from'],'SmsAccountId':_0x4bddcb['params']['id']},_0x4c11a7={'ContactId':_0x49c57c['id'],'SmsAccountId':_0x4bddcb[_0xe01700(0x19f)]['id'],'closed':![]};return db[_0xe01700(0x14e)]['findOne']({'where':_0x4c11a7})['then'](function(_0x16962a){const _0x48c32a=_0xe01700;if(_0x16962a)return[_0x16962a,![]];return db[_0x48c32a(0x14e)][_0x48c32a(0x16b)](_0x5f49ae)[_0x48c32a(0x152)](function(_0x56c11c){return[_0x56c11c,!![]];});});}})[_0x49e773(0x152)](function([_0xca46ea,_0x5c237a]){const _0x46397e=_0x49e773;return _0x2a2fb2[_0x46397e(0x14b)]=_0xca46ea[_0x46397e(0x144)]({'plain':!![]}),_0x2a2fb2[_0x46397e(0x14b)][_0x46397e(0x18e)]=![],_0x5c237a&&(_0x2a2fb2[_0x46397e(0x143)][_0x46397e(0x1c2)]&&_0x2a2fb2[_0x46397e(0x181)][_0x46397e(0x131)]({'id':0x0,'priority':_0x2a2fb2[_0x46397e(0x181)][_0x46397e(0x1b3)]+0x1,'app':_0x46397e(0x1dc),'appdata':_0x46397e(0x15e),'interval':_0x46397e(0x1d1)}),_0x2a2fb2[_0x46397e(0x14b)][_0x46397e(0x18e)]=!![]),db['SmsMessage'][_0x46397e(0x16b)]({'phone':_0x2a2fb2['body'][_0x46397e(0x1bc)],'messageId':_0x2a2fb2[_0x46397e(0x1ec)][_0x46397e(0x1ea)],'body':_0x2a2fb2['body'][_0x46397e(0x1ec)],'SmsAccountId':_0x4bddcb[_0x46397e(0x19f)]['id'],'SmsInteractionId':_0xca46ea['id'],'direction':'in','ContactId':_0xca46ea[_0x46397e(0x15c)],'AttachmentId':_0x2a2fb2[_0x46397e(0x1ec)]['AttachmentId']});})[_0x49e773(0x152)](function(_0x465b5d){const _0x1e2d6d=_0x49e773;_0x2a2fb2[_0x1e2d6d(0x1d8)]=_0x465b5d;if(_0x2a2fb2[_0x1e2d6d(0x14b)]['UserId'])return db[_0x1e2d6d(0x136)][_0x1e2d6d(0x1dd)]({'attributes':['id','name'],'where':{'id':_0x2a2fb2['interaction'][_0x1e2d6d(0x1cd)]}})[_0x1e2d6d(0x152)](function(_0x3e6776){const _0x3c7dbd=_0x1e2d6d;return _0x3e6776&&_0x2a2fb2['applications'][_0x3c7dbd(0x1a4)]({'id':0x0,'priority':0x0,'app':_0x3c7dbd(0x1d4),'appdata':_0x3e6776[_0x3c7dbd(0x1a0)]+','+(_0x2a2fb2[_0x3c7dbd(0x143)][_0x3c7dbd(0x160)]||0xa),'interval':_0x3c7dbd(0x1d1)}),respondWithRpcPromise(_0x3c7dbd(0x16a),_0x3c7dbd(0x1f1),_0x2a2fb2);});return respondWithRpcPromise(_0x1e2d6d(0x16a),_0x1e2d6d(0x1f1),_0x2a2fb2);})[_0x49e773(0x152)](function(_0x3a24b3){const _0x10663c=_0x49e773;if(_0x3a24b3){const _0x3b552d=0xc8,_0x151d85=_0x10663c(0x1af);return logger[_0x10663c(0x17a)](_0x10663c(0x13c),_0x151d85,_0x3b552d,_0x10663c(0x1cc)),logger[_0x10663c(0x168)](_0x10663c(0x193),_0x151d85,_0x3b552d,_0x10663c(0x1cc),JSON[_0x10663c(0x189)](_0x3a24b3)),_0x2a2fb2[_0x10663c(0x143)][_0x10663c(0x190)]===_0x10663c(0x139)?_0x22d596[_0x10663c(0x1c9)](_0x3b552d)[_0x10663c(0x16d)](_0x10663c(0x15a),_0x10663c(0x1e6))[_0x10663c(0x165)](_0x10663c(0x173)):_0x22d596[_0x10663c(0x1c9)](_0x3b552d)[_0x10663c(0x16f)](_0x3a24b3);}})[_0x49e773(0x1d7)](handleError(_0x22d596,null));},exports[a650_0x51ab18(0x1e2)]=function(_0x2b2e24,_0xced035){const _0x23b510=a650_0x51ab18;return db[_0x23b510(0x1ad)][_0x23b510(0x1dd)]({'where':{'id':_0x2b2e24[_0x23b510(0x19f)]['id']}})['then'](handleEntityNotFound(_0xced035,null))[_0x23b510(0x152)](function(_0x569669){const _0x11a2b0=_0x23b510;if(_0x569669)return db[_0x11a2b0(0x13f)][_0x11a2b0(0x133)](function(_0x22b2d2){const _0x33f0a1=_0x11a2b0;return db[_0x33f0a1(0x1a1)]['destroy']({'where':{'SmsAccountId':_0x2b2e24['params']['id']},'transaction':_0x22b2d2})[_0x33f0a1(0x152)](function(){const _0x3b707f=_0x33f0a1,_0x56a14e=_[_0x3b707f(0x18d)](_0x2b2e24[_0x3b707f(0x1ec)],function(_0x3b050e){const _0x484a51=_0x3b707f;return _0x3b050e[_0x484a51(0x1ee)]=_0x2b2e24[_0x484a51(0x19f)]['id'],_0x3b050e;});return db[_0x3b707f(0x1a1)][_0x3b707f(0x19e)](_0x56a14e,{'transaction':_0x22b2d2});});})[_0x11a2b0(0x152)](function(){const _0x385748=_0x11a2b0;return db[_0x385748(0x1a1)]['findAndCountAll']({'where':{'SmsAccountId':_0x2b2e24['params']['id']},'order':'priority'});});})[_0x23b510(0x152)](respondWithResult(_0xced035,null))[_0x23b510(0x1d7)](handleError(_0xced035,null));},exports['getApplications']=function(_0x370d9b,_0x1759ee){const _0x18ea75=a650_0x51ab18;let _0xe14bfd={};const _0x2ed62c={};let _0x355cf5,_0x4c8d9d;return db[_0x18ea75(0x1ad)][_0x18ea75(0x1dd)]({'where':{'id':_0x370d9b[_0x18ea75(0x19f)]['id']}})[_0x18ea75(0x152)](handleEntityNotFound(_0x1759ee,null))[_0x18ea75(0x152)](function(_0x9dee83){const _0x1a577b=_0x18ea75;if(_0x9dee83)return _0x355cf5=_0x9dee83,_0x2ed62c[_0x1a577b(0x15d)]=_['keys'](db[_0x1a577b(0x1a1)][_0x1a577b(0x16c)]),_0x2ed62c[_0x1a577b(0x1ed)]=_[_0x1a577b(0x1de)](_0x370d9b[_0x1a577b(0x1ed)]),_0x2ed62c[_0x1a577b(0x14f)]=_['intersection'](_0x2ed62c[_0x1a577b(0x15d)],_0x2ed62c['query']),_0xe14bfd[_0x1a577b(0x1a8)]=_[_0x1a577b(0x140)](_0x2ed62c[_0x1a577b(0x15d)],qs['fields'](_0x370d9b[_0x1a577b(0x1ed)][_0x1a577b(0x146)])),_0xe14bfd[_0x1a577b(0x1a8)]=_0xe14bfd['attributes']['length']?_0xe14bfd[_0x1a577b(0x1a8)]:_0x2ed62c['model'],_0xe14bfd[_0x1a577b(0x187)]=qs['sort'](_0x370d9b[_0x1a577b(0x1ed)][_0x1a577b(0x198)]),_0xe14bfd[_0x1a577b(0x1c1)]=qs[_0x1a577b(0x14f)](_[_0x1a577b(0x1a5)](_0x370d9b[_0x1a577b(0x1ed)],_0x2ed62c[_0x1a577b(0x14f)])),_0x370d9b[_0x1a577b(0x1ed)][_0x1a577b(0x1f5)]&&(_0xe14bfd[_0x1a577b(0x1c1)]=_[_0x1a577b(0x18f)](_0xe14bfd[_0x1a577b(0x1c1)],{[Op['or']]:_[_0x1a577b(0x18d)](_0xe14bfd[_0x1a577b(0x1a8)],function(_0x53daa8){const _0x2651fc=_0x1a577b,_0x421551={};return _0x421551[_0x53daa8]={[Op[_0x2651fc(0x1b1)]]:'%'+_0x370d9b[_0x2651fc(0x1ed)][_0x2651fc(0x1f5)]+'%'},_0x421551;})})),_0xe14bfd=_[_0x1a577b(0x18f)]({},_0xe14bfd,_0x370d9b[_0x1a577b(0x162)]),_0x355cf5[_0x1a577b(0x19a)](_0xe14bfd);})[_0x18ea75(0x152)](function(_0x2356cd){const _0x5e9499=_0x18ea75;if(_0x2356cd)return _0x4c8d9d=_0x2356cd[_0x5e9499(0x1b3)],typeof _0x370d9b[_0x5e9499(0x1ed)][_0x5e9499(0x1c5)]===_0x5e9499(0x1a6)&&(_0xe14bfd['limit']=qs[_0x5e9499(0x155)](_0x370d9b['query'][_0x5e9499(0x155)]),_0xe14bfd[_0x5e9499(0x14a)]=qs['offset'](_0x370d9b[_0x5e9499(0x1ed)][_0x5e9499(0x14a)])),_0x355cf5[_0x5e9499(0x19a)](_0xe14bfd);})[_0x18ea75(0x152)](function(_0x46ceca){if(_0x46ceca)return _0x46ceca?{'count':_0x4c8d9d,'rows':_0x46ceca}:null;})[_0x18ea75(0x152)](respondWithResult(_0x1759ee,null))[_0x18ea75(0x1d7)](handleError(_0x1759ee,null));},exports[a650_0x51ab18(0x176)]=function(_0x1e4638,_0xf5ffd2){const _0x344416=a650_0x51ab18;let _0x515b8d={'raw':![],'where':{}};const _0x2f5049={},_0x152edc={'count':0x0,'rows':[]};return db[_0x344416(0x1ad)][_0x344416(0x1dd)]({'where':{'id':_0x1e4638['params']['id']}})[_0x344416(0x152)](handleEntityNotFound(_0xf5ffd2,null))[_0x344416(0x152)](function(_0x427529){const _0x5270cd=_0x344416;if(_0x427529)return _0x2f5049['model']=_[_0x5270cd(0x1de)](db[_0x5270cd(0x14e)]['rawAttributes']),_0x2f5049[_0x5270cd(0x1ed)]=_[_0x5270cd(0x1de)](_0x1e4638['query']),_0x2f5049[_0x5270cd(0x14f)]=_[_0x5270cd(0x140)](_0x2f5049[_0x5270cd(0x15d)],_0x2f5049[_0x5270cd(0x1ed)]),_0x515b8d[_0x5270cd(0x1a8)]=_[_0x5270cd(0x140)](_0x2f5049['model'],qs[_0x5270cd(0x146)](_0x1e4638[_0x5270cd(0x1ed)][_0x5270cd(0x146)])),_0x515b8d[_0x5270cd(0x1a8)]=_0x515b8d['attributes'][_0x5270cd(0x1b3)]?_0x515b8d[_0x5270cd(0x1a8)]:_0x2f5049[_0x5270cd(0x15d)],typeof _0x1e4638[_0x5270cd(0x1ed)][_0x5270cd(0x1c5)]==='undefined'&&(_0x515b8d[_0x5270cd(0x155)]=qs[_0x5270cd(0x155)](_0x1e4638[_0x5270cd(0x1ed)][_0x5270cd(0x155)]),_0x515b8d['offset']=qs[_0x5270cd(0x14a)](_0x1e4638[_0x5270cd(0x1ed)][_0x5270cd(0x14a)])),_0x515b8d[_0x5270cd(0x187)]=qs[_0x5270cd(0x198)](_0x1e4638[_0x5270cd(0x1ed)]['sort']),_0x515b8d['where']=qs[_0x5270cd(0x14f)](_[_0x5270cd(0x1a5)](_0x1e4638[_0x5270cd(0x1ed)],_0x2f5049['filters'])),_0x515b8d['where'][_0x5270cd(0x1ee)]=_0x427529['id'],_0x1e4638['query'][_0x5270cd(0x1f5)]&&(_0x515b8d[_0x5270cd(0x1c1)]=_[_0x5270cd(0x18f)](_0x515b8d[_0x5270cd(0x1c1)],{[Op['or']]:_['map'](_0x515b8d[_0x5270cd(0x1a8)],function(_0x2fbf3b){const _0x17eb3d=_0x5270cd,_0x200b48={};return _0x200b48[_0x2fbf3b]={[Op[_0x17eb3d(0x1b1)]]:'%'+_0x1e4638[_0x17eb3d(0x1ed)]['filter']+'%'},_0x200b48;})})),_0x515b8d=_[_0x5270cd(0x18f)]({},_0x515b8d,_0x1e4638[_0x5270cd(0x162)]),db[_0x5270cd(0x14e)]['count']({'where':_0x515b8d[_0x5270cd(0x1c1)]})[_0x5270cd(0x152)](function(_0x478e9d){const _0x2b885=_0x5270cd;return _0x152edc['count']=_0x478e9d,_0x1e4638['query'][_0x2b885(0x1a2)]&&(_0x515b8d[_0x2b885(0x179)]=[{'model':db[_0x2b885(0x169)],'as':_0x2b885(0x167),'required':![]},{'model':db[_0x2b885(0x136)],'as':'Owner','attributes':[_0x2b885(0x1a0),_0x2b885(0x1cf),_0x2b885(0x16e)],'required':![]},{'model':db[_0x2b885(0x1b7)],'as':_0x2b885(0x138),'attributes':['id',_0x2b885(0x1a0),_0x2b885(0x163)],'where':_0x1e4638[_0x2b885(0x1ed)][_0x2b885(0x17f)]?{'id':_0x1e4638[_0x2b885(0x1ed)]['tag']}:undefined,'required':_0x1e4638['query'][_0x2b885(0x17f)]?!![]:![]}]),db[_0x2b885(0x14e)][_0x2b885(0x19c)](_0x515b8d);})[_0x5270cd(0x152)](function(_0x5515ec){const _0x4a7dc7=_0x5270cd;return _0x152edc[_0x4a7dc7(0x170)]=_0x5515ec,_0x152edc;});})[_0x344416(0x152)](respondWithFilteredResult(_0xf5ffd2,_0x515b8d))['catch'](handleError(_0xf5ffd2,null));},exports[a650_0x51ab18(0x165)]=function(_0x1f0cdd,_0x936d38){const _0x82eb57=a650_0x51ab18;let _0x5fd94,_0x9f0a74;if(_[_0x82eb57(0x161)](_0x1f0cdd[_0x82eb57(0x1ec)][_0x82eb57(0x1ec)])||_0x1f0cdd[_0x82eb57(0x1ec)]['body']==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x82eb57(0x161)](_0x1f0cdd[_0x82eb57(0x1ec)]['to']))throw new ValidationError(_0x82eb57(0x164));const _0x6919a0=_0x1f0cdd[_0x82eb57(0x1ec)]['to'];return db[_0x82eb57(0x1ad)][_0x82eb57(0x1dd)]({'where':{'id':_0x1f0cdd['params']['id']},'include':[{'model':db['CmList'],'as':'List','include':[{'model':db[_0x82eb57(0x169)],'as':_0x82eb57(0x1f3),'where':{'mobile':_0x6919a0},'limit':0x1,'order':[[_0x82eb57(0x191),_0x82eb57(0x1db)]]}]}]})[_0x82eb57(0x152)](handleEntityNotFound(_0x936d38,null))[_0x82eb57(0x152)](function(_0x26bbb7){const _0x372b63=_0x82eb57;if(_0x26bbb7&&_0x26bbb7['List']){_0x5fd94=_0x26bbb7[_0x372b63(0x144)]({'plain':!![]});if(_0x5fd94[_0x372b63(0x180)]&&_0x5fd94[_0x372b63(0x180)]['Contacts'][_0x372b63(0x1b3)])return _0x5fd94[_0x372b63(0x180)][_0x372b63(0x1f3)][0x0];return db['CmContact']['create'](_[_0x372b63(0x13d)](_0x1f0cdd[_0x372b63(0x1ec)],{'firstName':_0x6919a0,'mobile':_0x6919a0,'phone':_0x6919a0,'ListId':_0x5fd94[_0x372b63(0x148)]}));}})['then'](handleEntityNotFound(_0x936d38,null))[_0x82eb57(0x152)](function(_0x9f8a9c){const _0x188565=_0x82eb57;if(_0x9f8a9c)return _0x9f0a74=_0x9f8a9c,db[_0x188565(0x14e)][_0x188565(0x1dd)]({'where':{'ContactId':_0x9f0a74['id'],'closed':![],'SmsAccountId':_0x5fd94['id']}})['then'](function(_0x482eb0){const _0xaf15a4=_0x188565;if(_0x482eb0)return[_0x482eb0,![]];return db[_0xaf15a4(0x14e)]['create']({'UserId':_0x1f0cdd[_0xaf15a4(0x1a9)]['id'],'ContactId':_0x9f0a74['id'],'SmsAccountId':_0x5fd94['id'],'phone':_0x6919a0,'firstMsgDirection':_0xaf15a4(0x1d5),'Messages':[_['merge'](_0x1f0cdd['body'],{'read':![],'body':_0x1f0cdd[_0xaf15a4(0x1ec)][_0xaf15a4(0x1ec)],'phone':_0x6919a0,'SmsAccountId':_0x5fd94['id'],'UserId':_0x1f0cdd[_0xaf15a4(0x1a9)]['id'],'ContactId':_0x9f0a74['id']})]},{'include':[{'model':db[_0xaf15a4(0x1c4)],'as':_0xaf15a4(0x172)}]})[_0xaf15a4(0x152)](function(_0x4a17ec){return[_0x4a17ec,!![]];});});})[_0x82eb57(0x152)](function([_0x44c292,_0x2b8328]){const _0x4cbb84=_0x82eb57;if(_0x2b8328)return _0x44c292;return db[_0x4cbb84(0x1c4)][_0x4cbb84(0x16b)](_[_0x4cbb84(0x18f)](_0x1f0cdd[_0x4cbb84(0x1ec)],{'read':![],'body':_0x1f0cdd[_0x4cbb84(0x1ec)][_0x4cbb84(0x1ec)],'phone':_0x6919a0,'SmsAccountId':_0x5fd94['id'],'SmsInteractionId':_0x44c292['id'],'UserId':_0x1f0cdd[_0x4cbb84(0x1a9)]['id'],'ContactId':_0x9f0a74['id']}))['then'](function(_0x5cb0ed){const _0x421706=_0x4cbb84;return _0x44c292[_0x421706(0x17b)][_0x421706(0x172)]=[],_0x44c292['dataValues']['Messages'][_0x421706(0x131)](_0x5cb0ed['dataValues']),_0x44c292;});})[_0x82eb57(0x152)](respondWithResult(_0x936d38,null))[_0x82eb57(0x1d7)](handleError(_0x936d38,null));},exports[a650_0x51ab18(0x1c9)]=function(_0xc5dbe4,_0x2c7c5a){const _0x3f45f1=a650_0x51ab18;_0xc5dbe4[_0x3f45f1(0x1ec)]['id']&&delete _0xc5dbe4['body']['id'];console['log']('endpoint\x20/status\x20POST\x20/',_0xc5dbe4[_0x3f45f1(0x1ec)]);let _0x3c6f55,_0xfa06e5,_0x2c0ae6;return db['SmsAccount']['findOne']({'where':{'id':_0xc5dbe4[_0x3f45f1(0x19f)]['id']}})[_0x3f45f1(0x152)](handleEntityNotFound(_0x2c7c5a,null))[_0x3f45f1(0x152)](function(_0x3b047c){const _0x26cd02=_0x3f45f1;if(_0x3b047c){_0x2c0ae6=_0x3b047c,logger[_0x26cd02(0x168)](_0x26cd02(0x13c),'status',_0x26cd02(0x166),_0x3b047c['type'],util[_0x26cd02(0x1eb)](_0xc5dbe4[_0x26cd02(0x1ec)],{'showHidden':![],'depth':null}));switch(_0x3b047c[_0x26cd02(0x190)]){case _0x26cd02(0x1bd):if(_0xc5dbe4['body']['skebby_dispatch_id']&&_0xc5dbe4['body']['status'])return _0xfa06e5=_0xc5dbe4[_0x26cd02(0x1ec)]['status'],db[_0x26cd02(0x1c4)][_0x26cd02(0x1dd)]({'where':{'messageId':_0xc5dbe4[_0x26cd02(0x1ec)][_0x26cd02(0x1cb)]}});break;case _0x26cd02(0x1a7):if(_0xc5dbe4[_0x26cd02(0x1ec)][_0x26cd02(0x1f2)]&&_0xc5dbe4[_0x26cd02(0x1ec)][_0x26cd02(0x1d6)])return _0xfa06e5=_0xc5dbe4[_0x26cd02(0x1ec)]['statusInt'],db[_0x26cd02(0x1c4)][_0x26cd02(0x1dd)]({'where':{'messageId':_0xc5dbe4[_0x26cd02(0x1ec)][_0x26cd02(0x1f2)]}});break;case _0x26cd02(0x1b9):if(_0xc5dbe4[_0x26cd02(0x1ec)][_0x26cd02(0x1ef)]&&_0xc5dbe4[_0x26cd02(0x1ec)][_0x26cd02(0x150)])return _0xfa06e5=_0xc5dbe4[_0x26cd02(0x1ec)][_0x26cd02(0x150)],db['SmsMessage'][_0x26cd02(0x1dd)]({'where':{'messageId':_0xc5dbe4['body'][_0x26cd02(0x1ef)]}});break;case _0x26cd02(0x1d3):{const _0x48cc46=_0xc5dbe4[_0x26cd02(0x1ec)][_0x26cd02(0x1d2)][0x0];if(_0x48cc46[_0x26cd02(0x1ea)]&&_0x48cc46[_0x26cd02(0x1c9)][_0x26cd02(0x1d9)]===_0x26cd02(0x1ae))return _0xfa06e5=_0x48cc46[_0x26cd02(0x1c9)]['groupName'],db[_0x26cd02(0x1c4)][_0x26cd02(0x1dd)]({'where':{'messageId':_0x48cc46[_0x26cd02(0x1ea)]}});}break;case _0x26cd02(0x1e5):if(_0xc5dbe4['body'][_0x26cd02(0x1ea)]&&_0xc5dbe4[_0x26cd02(0x1ec)]['status'])return _0xfa06e5=_0xc5dbe4['body'][_0x26cd02(0x1c9)],db[_0x26cd02(0x1c4)][_0x26cd02(0x1dd)]({'where':{'messageId':_0xc5dbe4['body'][_0x26cd02(0x1ea)]}});break;case'intelepeer':if(_0xc5dbe4[_0x26cd02(0x1ec)]['redif']&&_0xc5dbe4[_0x26cd02(0x1ec)][_0x26cd02(0x1c9)])return _0xfa06e5=_0xc5dbe4[_0x26cd02(0x1ec)]['status'],db[_0x26cd02(0x1c4)][_0x26cd02(0x1dd)]({'where':{'messageId':_0xc5dbe4[_0x26cd02(0x1ec)][_0x26cd02(0x1be)]}});break;}}})['then'](handleEntityNotFound(_0x2c7c5a,null))[_0x3f45f1(0x152)](function(_0x4b2e87){const _0x56eae9=_0x3f45f1;if(_0x4b2e87){_0x3c6f55=_0x4b2e87;switch(_0x2c0ae6[_0x56eae9(0x190)]){case _0x56eae9(0x1bd):if(_0xfa06e5===_0x56eae9(0x1ae))return _0x3c6f55['update']({'read':!![]});else logger[_0x56eae9(0x1e3)](_0x56eae9(0x13c),'status',_0x56eae9(0x1bd),util[_0x56eae9(0x1eb)](_0xc5dbe4[_0x56eae9(0x1ec)],{'showHidden':![],'depth':null}));break;case _0x56eae9(0x1a7):if(_0xfa06e5==='1')return _0x3c6f55['update']({'read':!![]});else logger[_0x56eae9(0x1e3)]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x56eae9(0x1c9),_0x56eae9(0x1bd),util[_0x56eae9(0x1eb)](_0xc5dbe4['body'],{'showHidden':![],'depth':null}));break;case _0x56eae9(0x1b9):if(!_0xc5dbe4[_0x56eae9(0x1ec)]['error_code']&&_0xfa06e5>=0xc8&&_0xfa06e5<=0xce)return _0x3c6f55[_0x56eae9(0x1e0)]({'read':!![]});else logger[_0x56eae9(0x1e3)]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x56eae9(0x1c9),'clicksend',util[_0x56eae9(0x1eb)](_0xc5dbe4[_0x56eae9(0x1ec)],{'showHidden':![],'depth':null}));break;case'infobip':{const _0x31839c=_0xc5dbe4[_0x56eae9(0x1ec)][_0x56eae9(0x1d2)][0x0];if(_0x31839c['status'][_0x56eae9(0x1d9)]===_0x56eae9(0x1ae))return _0x3c6f55[_0x56eae9(0x1e0)]({'read':!![]});else logger[_0x56eae9(0x1e3)](_0x56eae9(0x13c),_0x56eae9(0x1c9),_0x56eae9(0x1d3),util['inspect'](_0xc5dbe4['body'],{'showHidden':![],'depth':null}));}break;case _0x56eae9(0x1e5):if(_0xfa06e5==_0x56eae9(0x197)||_0xfa06e5=='RECEIVED_BY_RECIPIENT')return _0x3c6f55[_0x56eae9(0x1e0)]({'read':!![]});else logger[_0x56eae9(0x1e3)](_0x56eae9(0x13c),_0x56eae9(0x1c9),_0x56eae9(0x1e5),util[_0x56eae9(0x1eb)](_0xc5dbe4[_0x56eae9(0x1ec)],{'showHidden':![],'depth':null}));break;case _0x56eae9(0x14d):if(_0xfa06e5===_0x56eae9(0x13e)||_0xfa06e5===_0x56eae9(0x19b))return _0x3c6f55[_0x56eae9(0x1e0)]({'read':!![]});else logger['error'](_0x56eae9(0x13c),_0x56eae9(0x1c9),_0x56eae9(0x14d),util[_0x56eae9(0x1eb)](_0xc5dbe4[_0x56eae9(0x1ec)],{'showHidden':![],'depth':null}));break;}return _0x3c6f55;}})[_0x3f45f1(0x152)](respondWithResult(_0x2c7c5a,null))[_0x3f45f1(0x1d7)](handleError(_0x2c7c5a,null));},exports[a650_0x51ab18(0x196)]=function(_0x3af75a,_0x9ec234){const _0x36a58d=a650_0x51ab18;let _0x17fc65,_0x49d8e6,_0x2aca29;return db[_0x36a58d(0x1ad)][_0x36a58d(0x1dd)]({'where':{'id':_0x3af75a[_0x36a58d(0x19f)]['id']}})[_0x36a58d(0x152)](handleEntityNotFound(_0x9ec234,null))[_0x36a58d(0x152)](function(_0x894906){const _0x3829b0=_0x36a58d;if(_0x894906){_0x2aca29=_0x894906,logger['debug'](_0x3829b0(0x13c),_0x3829b0(0x1c9),_0x3829b0(0x166),_0x894906[_0x3829b0(0x190)],util[_0x3829b0(0x1eb)](_0x3af75a[_0x3829b0(0x1ed)],{'showHidden':![],'depth':null}));switch(_0x894906['type']){case _0x3829b0(0x1da):if(_0x3af75a[_0x3829b0(0x1ed)]['message-id']&&_0x3af75a[_0x3829b0(0x1ed)][_0x3829b0(0x13b)])return _0x49d8e6=_0x3af75a[_0x3829b0(0x1ed)][_0x3829b0(0x13b)],db[_0x3829b0(0x1c4)]['findOne']({'where':{'messageId':_0x3af75a['query'][_0x3829b0(0x1e9)]}});break;}}})[_0x36a58d(0x152)](handleEntityNotFound(_0x9ec234,null))[_0x36a58d(0x152)](function(_0x46a78d){const _0x55039e=_0x36a58d;if(_0x46a78d){_0x17fc65=_0x46a78d;switch(_0x2aca29[_0x55039e(0x190)]){case _0x55039e(0x1da):if(_0x49d8e6==='2'||_0x49d8e6==='6')return _0x17fc65[_0x55039e(0x1e0)]({'read':!![]});else logger[_0x55039e(0x1e3)](_0x55039e(0x13c),_0x55039e(0x1c9),_0x55039e(0x1da),util['inspect'](_0x3af75a[_0x55039e(0x1ed)],{'showHidden':![],'depth':null}));break;}return _0x17fc65;}})[_0x36a58d(0x152)](respondWithResult(_0x9ec234,null))[_0x36a58d(0x1d7)](handleError(_0x9ec234,null));},exports[a650_0x51ab18(0x14c)]=function(_0x18e1a9,_0x30ac4f){const _0x1aed18=a650_0x51ab18;return db[_0x1aed18(0x1ad)][_0x1aed18(0x1dd)]({'where':{'id':_0x18e1a9[_0x1aed18(0x19f)]['id']}})[_0x1aed18(0x152)](function(_0x12b091){const _0x18740f=_0x1aed18;if(_0x12b091)return _0x12b091['addAgents'](_0x18e1a9[_0x18740f(0x1ec)][_0x18740f(0x156)],{'through':_[_0x18740f(0x159)](_0x18e1a9['body'],[_0x18740f(0x156),'id'])})['then'](function(_0x2bfd50){const _0x164ecf=_0x18740f;for(let _0x2a80ff=0x0;_0x2a80ff<_0x18e1a9[_0x164ecf(0x1ec)][_0x164ecf(0x156)][_0x164ecf(0x1b3)];_0x2a80ff+=0x1){socket[_0x164ecf(0x15b)](_0x164ecf(0x13a),{'UserId':_0x18e1a9['body'][_0x164ecf(0x156)][_0x2a80ff],'SmsAccountId':_0x18e1a9[_0x164ecf(0x19f)]['id']});}return _0x2bfd50;});})[_0x1aed18(0x152)](respondWithResult(_0x30ac4f,null))[_0x1aed18(0x1d7)](handleError(_0x30ac4f,null));},exports['removeAgents']=function(_0x1142c7,_0x5143b0){const _0x5ee674=a650_0x51ab18;return db[_0x5ee674(0x1ad)][_0x5ee674(0x1dd)]({'where':{'id':_0x1142c7[_0x5ee674(0x19f)]['id']}})[_0x5ee674(0x152)](handleEntityNotFound(_0x5143b0,null))[_0x5ee674(0x152)](function(_0x24d3b0){const _0x27ac47=_0x5ee674;if(_0x24d3b0)return _0x24d3b0[_0x27ac47(0x199)](_0x1142c7[_0x27ac47(0x1ed)][_0x27ac47(0x156)])['then'](function(){const _0x102449=_0x27ac47;if(_[_0x102449(0x1ce)](_0x1142c7[_0x102449(0x1ed)][_0x102449(0x156)]))for(let _0x1fcddb=0x0;_0x1fcddb<_0x1142c7['query'][_0x102449(0x156)][_0x102449(0x1b3)];_0x1fcddb+=0x1){socket[_0x102449(0x15b)](_0x102449(0x1d0),{'UserId':Number(_0x1142c7['query'][_0x102449(0x156)][_0x1fcddb]),'SmsAccountId':Number(_0x1142c7[_0x102449(0x19f)]['id'])});}else socket['emit'](_0x102449(0x1d0),{'UserId':Number(_0x1142c7[_0x102449(0x1ed)][_0x102449(0x156)]),'SmsAccountId':Number(_0x1142c7[_0x102449(0x19f)]['id'])});});})[_0x5ee674(0x152)](respondWithStatusCode(_0x5143b0,null))[_0x5ee674(0x1d7)](handleError(_0x5143b0,null));},exports[a650_0x51ab18(0x17c)]=function(_0x2a03e1,_0xc4b8f6){const _0x3117ab=a650_0x51ab18;let _0x4c7f38={};const _0xe60460={};let _0x3c2870,_0x573f7a;return db['SmsAccount']['findOne']({'where':{'id':_0x2a03e1[_0x3117ab(0x19f)]['id']}})['then'](handleEntityNotFound(_0xc4b8f6,null))[_0x3117ab(0x152)](function(_0x509886){const _0x49216b=_0x3117ab;if(_0x509886)return _0x3c2870=_0x509886,_0xe60460['model']=_[_0x49216b(0x1de)](db['User']['rawAttributes']),_0xe60460[_0x49216b(0x1ed)]=_[_0x49216b(0x1de)](_0x2a03e1[_0x49216b(0x1ed)]),_0xe60460[_0x49216b(0x14f)]=_['intersection'](_0xe60460['model'],_0xe60460[_0x49216b(0x1ed)]),_0x4c7f38[_0x49216b(0x1a8)]=_[_0x49216b(0x140)](_0xe60460[_0x49216b(0x15d)],qs['fields'](_0x2a03e1[_0x49216b(0x1ed)]['fields'])),_0x4c7f38[_0x49216b(0x1a8)]=_0x4c7f38[_0x49216b(0x1a8)][_0x49216b(0x1b3)]?_0x4c7f38['attributes']:_0xe60460['model'],_0x4c7f38[_0x49216b(0x187)]=qs[_0x49216b(0x198)](_0x2a03e1[_0x49216b(0x1ed)]['sort']),_0x4c7f38[_0x49216b(0x1c1)]=qs[_0x49216b(0x14f)](_[_0x49216b(0x1a5)](_0x2a03e1[_0x49216b(0x1ed)],_0xe60460['filters'])),_0x2a03e1['query'][_0x49216b(0x1f5)]&&(_0x4c7f38[_0x49216b(0x1c1)]=_[_0x49216b(0x18f)](_0x4c7f38[_0x49216b(0x1c1)],{[Op['or']]:_[_0x49216b(0x18d)](_0x4c7f38[_0x49216b(0x1a8)],function(_0x4fc8ad){const _0x5dd884=_0x49216b,_0x178d58={};return _0x178d58[_0x4fc8ad]={[Op[_0x5dd884(0x1b1)]]:'%'+_0x2a03e1['query'][_0x5dd884(0x1f5)]+'%'},_0x178d58;})})),_0x4c7f38=_[_0x49216b(0x18f)]({},_0x4c7f38,_0x2a03e1['options']),_0x3c2870[_0x49216b(0x17c)](_0x4c7f38);})[_0x3117ab(0x152)](function(_0x35d6c0){const _0x415a6d=_0x3117ab;if(_0x35d6c0)return _0x573f7a=_0x35d6c0[_0x415a6d(0x1b3)],typeof _0x2a03e1[_0x415a6d(0x1ed)]['nolimit']===_0x415a6d(0x1a6)&&(_0x4c7f38[_0x415a6d(0x155)]=qs['limit'](_0x2a03e1[_0x415a6d(0x1ed)][_0x415a6d(0x155)]),_0x4c7f38[_0x415a6d(0x14a)]=qs[_0x415a6d(0x14a)](_0x2a03e1[_0x415a6d(0x1ed)][_0x415a6d(0x14a)])),_0x3c2870[_0x415a6d(0x17c)](_0x4c7f38);})[_0x3117ab(0x152)](function(_0x479a10){if(_0x479a10)return _0x479a10?{'count':_0x573f7a,'rows':_0x479a10}:null;})[_0x3117ab(0x152)](respondWithResult(_0xc4b8f6,null))[_0x3117ab(0x1d7)](handleError(_0xc4b8f6,null));}; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.events.js b/server/api/smsAccount/smsAccount.events.js index 51194ca..7bb4833 100644 --- a/server/api/smsAccount/smsAccount.events.js +++ b/server/api/smsAccount/smsAccount.events.js @@ -1 +1 @@ -const a651_0x2705=['emit','exports','../../mysqldb','save','SmsAccount','addHook','setMaxListeners','remove'];(function(_0x134d2e,_0x4ebf09){const _0x270597=function(_0x21a474){while(--_0x21a474){_0x134d2e['push'](_0x134d2e['shift']());}};_0x270597(++_0x4ebf09);}(a651_0x2705,0xa8));const a651_0x21a4=function(_0x134d2e,_0x4ebf09){_0x134d2e=_0x134d2e-0xb5;let _0x270597=a651_0x2705[_0x134d2e];return _0x270597;};const a651_0xf6b8c0=a651_0x21a4;'use strict';const EventEmitter=require('events'),SmsAccount=require(a651_0xf6b8c0(0xb7))['db'][a651_0xf6b8c0(0xb9)],SmsAccountEvents=new EventEmitter();SmsAccountEvents[a651_0xf6b8c0(0xbb)](0x0);const events={'afterCreate':a651_0xf6b8c0(0xb8),'afterUpdate':'update','afterDestroy':a651_0xf6b8c0(0xbc)};function emitEvent(_0x4379bc){return function(_0x1dcbf6){const _0xb47be2=a651_0x21a4;SmsAccountEvents[_0xb47be2(0xb5)](_0x4379bc+':'+_0x1dcbf6['id'],_0x1dcbf6),SmsAccountEvents[_0xb47be2(0xb5)](_0x4379bc,_0x1dcbf6);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];SmsAccount[a651_0xf6b8c0(0xba)](e,emitEvent(event));}}module[a651_0xf6b8c0(0xb6)]=SmsAccountEvents; \ No newline at end of file +const a651_0x4f35=['addHook','setMaxListeners','SmsAccount','events','exports','save','remove','update','../../mysqldb','emit'];(function(_0xdb1d71,_0x13a71c){const _0x4f35e9=function(_0x185236){while(--_0x185236){_0xdb1d71['push'](_0xdb1d71['shift']());}};_0x4f35e9(++_0x13a71c);}(a651_0x4f35,0x148));const a651_0x1852=function(_0xdb1d71,_0x13a71c){_0xdb1d71=_0xdb1d71-0xdb;let _0x4f35e9=a651_0x4f35[_0xdb1d71];return _0x4f35e9;};const a651_0x46a16d=a651_0x1852;'use strict';const EventEmitter=require(a651_0x46a16d(0xe0)),SmsAccount=require(a651_0x46a16d(0xdb))['db'][a651_0x46a16d(0xdf)],SmsAccountEvents=new EventEmitter();SmsAccountEvents[a651_0x46a16d(0xde)](0x0);const events={'afterCreate':a651_0x46a16d(0xe2),'afterUpdate':a651_0x46a16d(0xe4),'afterDestroy':a651_0x46a16d(0xe3)};function emitEvent(_0x115d9e){return function(_0xd838a1){const _0x295915=a651_0x1852;SmsAccountEvents[_0x295915(0xdc)](_0x115d9e+':'+_0xd838a1['id'],_0xd838a1),SmsAccountEvents[_0x295915(0xdc)](_0x115d9e,_0xd838a1);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];SmsAccount[a651_0x46a16d(0xdd)](e,emitEvent(event));}}module[a651_0x46a16d(0xe1)]=SmsAccountEvents; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.model.js b/server/api/smsAccount/smsAccount.model.js index 546e09f..b222e01 100644 --- a/server/api/smsAccount/smsAccount.model.js +++ b/server/api/smsAccount/smsAccount.model.js @@ -1 +1 @@ -const a652_0x3fad=['./smsAccount.attributes','init','./smsAccount.options','SmsAccount','sequelize','exports'];(function(_0x5ce05e,_0x26be7a){const _0x3fadf4=function(_0x592417){while(--_0x592417){_0x5ce05e['push'](_0x5ce05e['shift']());}};_0x3fadf4(++_0x26be7a);}(a652_0x3fad,0x195));const a652_0x5924=function(_0x5ce05e,_0x26be7a){_0x5ce05e=_0x5ce05e-0xe0;let _0x3fadf4=a652_0x3fad[_0x5ce05e];return _0x3fadf4;};const a652_0x372fa5=a652_0x5924;'use strict';const {Model}=require(a652_0x372fa5(0xe1)),{attributes}=require(a652_0x372fa5(0xe3)),{options}=require(a652_0x372fa5(0xe5));class SmsAccount extends Model{}function init(_0x366dd7,_0x4bc115){const _0x4633a8=a652_0x372fa5,_0xbd620c=options(_0x366dd7),_0x4061b9=typeof _0x4bc115==='function'?_0x4bc115(_0xbd620c):_0xbd620c;return SmsAccount[_0x4633a8(0xe4)](attributes,_0x4061b9),SmsAccount;}module[a652_0x372fa5(0xe2)][a652_0x372fa5(0xe0)]=SmsAccount,module[a652_0x372fa5(0xe2)][a652_0x372fa5(0xe4)]=init; \ No newline at end of file +const a652_0x2168=['SmsAccount','./smsAccount.options','init','./smsAccount.attributes','exports','function','sequelize'];(function(_0x325b74,_0x1806b5){const _0x2168de=function(_0x3eb62c){while(--_0x3eb62c){_0x325b74['push'](_0x325b74['shift']());}};_0x2168de(++_0x1806b5);}(a652_0x2168,0x1c2));const a652_0x3eb6=function(_0x325b74,_0x1806b5){_0x325b74=_0x325b74-0x151;let _0x2168de=a652_0x2168[_0x325b74];return _0x2168de;};const a652_0x26482d=a652_0x3eb6;'use strict';const {Model}=require(a652_0x26482d(0x155)),{attributes}=require(a652_0x26482d(0x152)),{options}=require(a652_0x26482d(0x157));class SmsAccount extends Model{}function init(_0x20d004,_0x131ea2){const _0x31ec88=a652_0x26482d,_0x4af36e=options(_0x20d004),_0x5616eb=typeof _0x131ea2===_0x31ec88(0x154)?_0x131ea2(_0x4af36e):_0x4af36e;return SmsAccount[_0x31ec88(0x151)](attributes,_0x5616eb),SmsAccount;}module[a652_0x26482d(0x153)][a652_0x26482d(0x156)]=SmsAccount,module[a652_0x26482d(0x153)][a652_0x26482d(0x151)]=init; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.options.js b/server/api/smsAccount/smsAccount.options.js index afe9aff..46c204e 100644 --- a/server/api/smsAccount/smsAccount.options.js +++ b/server/api/smsAccount/smsAccount.options.js @@ -1 +1 @@ -var a653_0x2054=['exports'];(function(_0x540a3e,_0x5e1d8c){var _0x20544a=function(_0x40ab65){while(--_0x40ab65){_0x540a3e['push'](_0x540a3e['shift']());}};_0x20544a(++_0x5e1d8c);}(a653_0x2054,0x72));var a653_0x40ab=function(_0x540a3e,_0x5e1d8c){_0x540a3e=_0x540a3e-0x127;var _0x20544a=a653_0x2054[_0x540a3e];return _0x20544a;};var a653_0x3222f3=a653_0x40ab;function options(_0xa2f0df){return{'sequelize':_0xa2f0df,'tableName':'sms_accounts','paranoid':![],'indexes':[],'timestamps':!![]};}module[a653_0x3222f3(0x127)]['options']=options; \ No newline at end of file +var a653_0x5a09=['sms_accounts','exports','options'];(function(_0x3b6fa8,_0x21f31a){var _0x5a098a=function(_0x1532c8){while(--_0x1532c8){_0x3b6fa8['push'](_0x3b6fa8['shift']());}};_0x5a098a(++_0x21f31a);}(a653_0x5a09,0x107));var a653_0x1532=function(_0x3b6fa8,_0x21f31a){_0x3b6fa8=_0x3b6fa8-0x101;var _0x5a098a=a653_0x5a09[_0x3b6fa8];return _0x5a098a;};var a653_0x4f40fc=a653_0x1532;function options(_0x11f1e7){var _0x84cb39=a653_0x1532;return{'sequelize':_0x11f1e7,'tableName':_0x84cb39(0x102),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a653_0x4f40fc(0x103)][a653_0x4f40fc(0x101)]=options; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.rpc.js b/server/api/smsAccount/smsAccount.rpc.js index 790ff8e..57d4526 100644 --- a/server/api/smsAccount/smsAccount.rpc.js +++ b/server/api/smsAccount/smsAccount.rpc.js @@ -1 +1 @@ -const a654_0x3293=['debug','raw','ShowSmsAccount','info','map','findOne','lodash','error','../../mysqldb','include','catch','message','SmsAccount','stringify','../../config/logger','where','then','options','attributes','model'];(function(_0x2d8f32,_0x47c852){const _0x3293d3=function(_0x1f5a06){while(--_0x1f5a06){_0x2d8f32['push'](_0x2d8f32['shift']());}};_0x3293d3(++_0x47c852);}(a654_0x3293,0x194));const a654_0x1f5a=function(_0x2d8f32,_0x47c852){_0x2d8f32=_0x2d8f32-0x135;let _0x3293d3=a654_0x3293[_0x2d8f32];return _0x3293d3;};const a654_0xd0aeb8=a654_0x1f5a;'use strict';const db=require(a654_0xd0aeb8(0x139))['db'],logger=require(a654_0xd0aeb8(0x13f))('rpc'),_=require(a654_0xd0aeb8(0x137)),{getSocket}=require('../../rediscache'),socket=getSocket();require('./smsAccount.socket')['register'](socket),exports[a654_0xd0aeb8(0x147)]=function(_0x3c3ed0){const _0x5f38cf=this;return new Promise(function(_0x143139,_0x2582e5){const _0x4ef297=a654_0x1f5a;return db[_0x4ef297(0x13d)][_0x4ef297(0x136)]({'raw':_0x3c3ed0[_0x4ef297(0x142)]?_0x3c3ed0[_0x4ef297(0x142)][_0x4ef297(0x146)]===undefined?!![]:![]:!![],'where':_0x3c3ed0[_0x4ef297(0x142)]?_0x3c3ed0['options'][_0x4ef297(0x140)]||null:null,'attributes':_0x3c3ed0['options']?_0x3c3ed0[_0x4ef297(0x142)][_0x4ef297(0x143)]||null:null,'include':_0x3c3ed0[_0x4ef297(0x142)]?_0x3c3ed0['options'][_0x4ef297(0x13a)]?_[_0x4ef297(0x135)](_0x3c3ed0['options'][_0x4ef297(0x13a)],function(_0x3379bc){const _0x399eb4=_0x4ef297;return{'model':db[_0x3379bc[_0x399eb4(0x144)]],'as':_0x3379bc['as'],'attributes':_0x3379bc[_0x399eb4(0x143)],'include':_0x3379bc[_0x399eb4(0x13a)]?_['map'](_0x3379bc[_0x399eb4(0x13a)],function(_0x34118e){const _0x1ce9bc=_0x399eb4;return{'model':db[_0x34118e['model']],'as':_0x34118e['as'],'attributes':_0x34118e[_0x1ce9bc(0x143)],'include':_0x34118e[_0x1ce9bc(0x13a)]?_[_0x1ce9bc(0x135)](_0x34118e['include'],function(_0x37f3eb){return{'model':db[_0x37f3eb['model']],'as':_0x37f3eb['as'],'attributes':_0x37f3eb['attributes']};}):[]};}):[]};}):[]:[]})[_0x4ef297(0x141)](function(_0x34ca8b){const _0x2c5311=_0x4ef297;logger[_0x2c5311(0x148)](_0x2c5311(0x147),_0x3c3ed0),logger[_0x2c5311(0x145)](_0x2c5311(0x147),_0x3c3ed0,JSON[_0x2c5311(0x13e)](_0x34ca8b)),_0x143139(_0x34ca8b);})[_0x4ef297(0x13b)](function(_0x26221d){const _0x599db6=_0x4ef297;logger[_0x599db6(0x138)](_0x599db6(0x147),_0x26221d[_0x599db6(0x13c)],_0x3c3ed0),_0x2582e5(_0x5f38cf['error'](0x1f4,_0x26221d[_0x599db6(0x13c)]));});});}; \ No newline at end of file +const a654_0x3177=['lodash','../../mysqldb','ShowSmsAccount','then','register','error','model','../../rediscache','attributes','debug','../../config/logger','map','catch','message','SmsAccount','options','stringify','include','raw','where'];(function(_0x2b99f5,_0x50f481){const _0x3177c0=function(_0xec3223){while(--_0xec3223){_0x2b99f5['push'](_0x2b99f5['shift']());}};_0x3177c0(++_0x50f481);}(a654_0x3177,0x1f2));const a654_0xec32=function(_0x2b99f5,_0x50f481){_0x2b99f5=_0x2b99f5-0xb7;let _0x3177c0=a654_0x3177[_0x2b99f5];return _0x3177c0;};const a654_0x1e1d1c=a654_0xec32;'use strict';const db=require(a654_0x1e1d1c(0xba))['db'],logger=require(a654_0x1e1d1c(0xc3))('rpc'),_=require(a654_0x1e1d1c(0xb9)),{getSocket}=require(a654_0x1e1d1c(0xc0)),socket=getSocket();require('./smsAccount.socket')[a654_0x1e1d1c(0xbd)](socket),exports['ShowSmsAccount']=function(_0x22ff7d){const _0xcc5ad9=this;return new Promise(function(_0x344907,_0x62fb59){const _0x34f7fc=a654_0xec32;return db[_0x34f7fc(0xc7)]['findOne']({'raw':_0x22ff7d['options']?_0x22ff7d[_0x34f7fc(0xc8)][_0x34f7fc(0xb7)]===undefined?!![]:![]:!![],'where':_0x22ff7d[_0x34f7fc(0xc8)]?_0x22ff7d['options'][_0x34f7fc(0xb8)]||null:null,'attributes':_0x22ff7d[_0x34f7fc(0xc8)]?_0x22ff7d['options']['attributes']||null:null,'include':_0x22ff7d[_0x34f7fc(0xc8)]?_0x22ff7d[_0x34f7fc(0xc8)][_0x34f7fc(0xca)]?_[_0x34f7fc(0xc4)](_0x22ff7d['options'][_0x34f7fc(0xca)],function(_0xe1680c){const _0x2a136d=_0x34f7fc;return{'model':db[_0xe1680c[_0x2a136d(0xbf)]],'as':_0xe1680c['as'],'attributes':_0xe1680c['attributes'],'include':_0xe1680c[_0x2a136d(0xca)]?_[_0x2a136d(0xc4)](_0xe1680c['include'],function(_0x5b56fc){const _0x55ca6c=_0x2a136d;return{'model':db[_0x5b56fc['model']],'as':_0x5b56fc['as'],'attributes':_0x5b56fc[_0x55ca6c(0xc1)],'include':_0x5b56fc[_0x55ca6c(0xca)]?_[_0x55ca6c(0xc4)](_0x5b56fc[_0x55ca6c(0xca)],function(_0xd81ffd){const _0x6794fd=_0x55ca6c;return{'model':db[_0xd81ffd['model']],'as':_0xd81ffd['as'],'attributes':_0xd81ffd[_0x6794fd(0xc1)]};}):[]};}):[]};}):[]:[]})[_0x34f7fc(0xbc)](function(_0x5b1b6e){const _0x141d44=_0x34f7fc;logger['info'](_0x141d44(0xbb),_0x22ff7d),logger[_0x141d44(0xc2)]('ShowSmsAccount',_0x22ff7d,JSON[_0x141d44(0xc9)](_0x5b1b6e)),_0x344907(_0x5b1b6e);})[_0x34f7fc(0xc5)](function(_0x52d316){const _0x1882b7=_0x34f7fc;logger['error'](_0x1882b7(0xbb),_0x52d316['message'],_0x22ff7d),_0x62fb59(_0xcc5ad9[_0x1882b7(0xbe)](0x1f4,_0x52d316[_0x1882b7(0xc6)]));});});}; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.socket.js b/server/api/smsAccount/smsAccount.socket.js index 16465a8..a809d1c 100644 --- a/server/api/smsAccount/smsAccount.socket.js +++ b/server/api/smsAccount/smsAccount.socket.js @@ -1 +1 @@ -const a655_0x27b7=['./smsAccount.events','emit','save','remove','length'];(function(_0x3e44dd,_0x1701cd){const _0x27b7bc=function(_0x2b5f46){while(--_0x2b5f46){_0x3e44dd['push'](_0x3e44dd['shift']());}};_0x27b7bc(++_0x1701cd);}(a655_0x27b7,0x1e8));const a655_0x2b5f=function(_0x3e44dd,_0x1701cd){_0x3e44dd=_0x3e44dd-0x122;let _0x27b7bc=a655_0x27b7[_0x3e44dd];return _0x27b7bc;};const a655_0x3f5b37=a655_0x2b5f;'use strict';const SmsAccountEvents=require(a655_0x3f5b37(0x124)),events=[a655_0x3f5b37(0x126),a655_0x3f5b37(0x122),'update'];function createListener(_0x5b8917,_0x5bc91d){return function(_0x1d3e99){const _0x4d8cf6=a655_0x2b5f;_0x5bc91d[_0x4d8cf6(0x125)](_0x5b8917,_0x1d3e99);};}exports['register']=function(_0x56025b){const _0x5d7f77=a655_0x3f5b37;for(let _0x2c106b=0x0,_0x1b978c=events[_0x5d7f77(0x123)];_0x2c106b<_0x1b978c;_0x2c106b++){const _0x4d3340=events[_0x2c106b],_0x397108=createListener('smsAccount:'+_0x4d3340,_0x56025b);SmsAccountEvents['on'](_0x4d3340,_0x397108);}}; \ No newline at end of file +const a655_0x5534=['update','register','./smsAccount.events','emit','remove','length'];(function(_0x46d942,_0x10e3f4){const _0x55346f=function(_0x3bc349){while(--_0x3bc349){_0x46d942['push'](_0x46d942['shift']());}};_0x55346f(++_0x10e3f4);}(a655_0x5534,0x17a));const a655_0x3bc3=function(_0x46d942,_0x10e3f4){_0x46d942=_0x46d942-0x158;let _0x55346f=a655_0x5534[_0x46d942];return _0x55346f;};const a655_0x5a72ad=a655_0x3bc3;'use strict';const SmsAccountEvents=require(a655_0x5a72ad(0x15a)),events=['save',a655_0x5a72ad(0x15c),a655_0x5a72ad(0x158)];function createListener(_0x513811,_0x3a342b){return function(_0x88c679){const _0x1897db=a655_0x3bc3;_0x3a342b[_0x1897db(0x15b)](_0x513811,_0x88c679);};}exports[a655_0x5a72ad(0x159)]=function(_0x59f8e7){const _0x9eddba=a655_0x5a72ad;for(let _0x17b68a=0x0,_0x14a4f1=events[_0x9eddba(0x15d)];_0x17b68a<_0x14a4f1;_0x17b68a++){const _0x4c5972=events[_0x17b68a],_0x2a28fa=createListener('smsAccount:'+_0x4c5972,_0x59f8e7);SmsAccountEvents['on'](_0x4c5972,_0x2a28fa);}}; \ No newline at end of file diff --git a/server/api/smsApplication/index.js b/server/api/smsApplication/index.js index 7b5a956..cb4bf85 100644 --- a/server/api/smsApplication/index.js +++ b/server/api/smsApplication/index.js @@ -1 +1 @@ -const a656_0x911a=['create','exports','delete','express','get','put','/:id','destroy','update','post','isAuthenticated','./smsApplication.controller','index'];(function(_0x3c7955,_0x53b700){const _0x911aa9=function(_0xc1cdcb){while(--_0xc1cdcb){_0x3c7955['push'](_0x3c7955['shift']());}};_0x911aa9(++_0x53b700);}(a656_0x911a,0x1c6));const a656_0xc1cd=function(_0x3c7955,_0x53b700){_0x3c7955=_0x3c7955-0x1cc;let _0x911aa9=a656_0x911a[_0x3c7955];return _0x911aa9;};const a656_0x3a3d8c=a656_0xc1cd;'use strict';const express=require(a656_0x3a3d8c(0x1d0)),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a656_0x3a3d8c(0x1d8));router[a656_0x3a3d8c(0x1d1)]('/',auth['isAuthenticated'](),controller[a656_0x3a3d8c(0x1cc)]),router[a656_0x3a3d8c(0x1d1)](a656_0x3a3d8c(0x1d3),auth[a656_0x3a3d8c(0x1d7)](),controller['show']),router[a656_0x3a3d8c(0x1d6)]('/',auth[a656_0x3a3d8c(0x1d7)](),controller[a656_0x3a3d8c(0x1cd)]),router[a656_0x3a3d8c(0x1d2)]('/:id',auth[a656_0x3a3d8c(0x1d7)](),controller[a656_0x3a3d8c(0x1d5)]),router[a656_0x3a3d8c(0x1cf)]('/:id',auth[a656_0x3a3d8c(0x1d7)](),controller[a656_0x3a3d8c(0x1d4)]),module[a656_0x3a3d8c(0x1ce)]=router; \ No newline at end of file +const a656_0x3547=['../../components/auth/service','post','./smsApplication.controller','/:id','delete','get','index','update','destroy','show','create','Router','isAuthenticated','exports'];(function(_0x2920da,_0x262d43){const _0x354775=function(_0x4ddd6a){while(--_0x4ddd6a){_0x2920da['push'](_0x2920da['shift']());}};_0x354775(++_0x262d43);}(a656_0x3547,0xa7));const a656_0x4ddd=function(_0x2920da,_0x262d43){_0x2920da=_0x2920da-0x13e;let _0x354775=a656_0x3547[_0x2920da];return _0x354775;};const a656_0x5e0182=a656_0x4ddd;'use strict';const express=require('express'),router=express[a656_0x5e0182(0x14a)](),auth=require(a656_0x5e0182(0x13f)),controller=require(a656_0x5e0182(0x141));router['get']('/',auth[a656_0x5e0182(0x14b)](),controller[a656_0x5e0182(0x145)]),router[a656_0x5e0182(0x144)](a656_0x5e0182(0x142),auth[a656_0x5e0182(0x14b)](),controller[a656_0x5e0182(0x148)]),router[a656_0x5e0182(0x140)]('/',auth[a656_0x5e0182(0x14b)](),controller[a656_0x5e0182(0x149)]),router['put']('/:id',auth[a656_0x5e0182(0x14b)](),controller[a656_0x5e0182(0x146)]),router[a656_0x5e0182(0x143)](a656_0x5e0182(0x142),auth[a656_0x5e0182(0x14b)](),controller[a656_0x5e0182(0x147)]),module[a656_0x5e0182(0x13e)]=router; \ No newline at end of file diff --git a/server/api/smsApplication/smsApplication.attributes.js b/server/api/smsApplication/smsApplication.attributes.js index cae7d80..2b77436 100644 --- a/server/api/smsApplication/smsApplication.attributes.js +++ b/server/api/smsApplication/smsApplication.attributes.js @@ -1 +1 @@ -const a657_0x26c6=['INTEGER','sequelize','attributes','TEXT','noop','*,*,*,*','STRING','exports'];(function(_0x1ed5fc,_0x4a398d){const _0x26c652=function(_0x5da688){while(--_0x5da688){_0x1ed5fc['push'](_0x1ed5fc['shift']());}};_0x26c652(++_0x4a398d);}(a657_0x26c6,0x1ae));const a657_0x5da6=function(_0x1ed5fc,_0x4a398d){_0x1ed5fc=_0x1ed5fc-0x116;let _0x26c652=a657_0x26c6[_0x1ed5fc];return _0x26c652;};const a657_0x2461f3=a657_0x5da6;'use strict';const {DataTypes}=require(a657_0x2461f3(0x119)),attributes={'priority':{'type':DataTypes[a657_0x2461f3(0x118)],'allowNull':![]},'app':{'type':DataTypes[a657_0x2461f3(0x116)],'allowNull':![],'defaultValue':a657_0x2461f3(0x11c)},'appdata':{'type':DataTypes[a657_0x2461f3(0x11b)]()},'description':{'type':DataTypes[a657_0x2461f3(0x116)]},'interval':{'type':DataTypes[a657_0x2461f3(0x116)],'defaultValue':a657_0x2461f3(0x11d)}};module[a657_0x2461f3(0x117)][a657_0x2461f3(0x11a)]=attributes; \ No newline at end of file +const a657_0x11c5=['INTEGER','TEXT','attributes','STRING','noop'];(function(_0x27521c,_0x3379f1){const _0x11c561=function(_0x25f78b){while(--_0x25f78b){_0x27521c['push'](_0x27521c['shift']());}};_0x11c561(++_0x3379f1);}(a657_0x11c5,0x1a2));const a657_0x25f7=function(_0x27521c,_0x3379f1){_0x27521c=_0x27521c-0x189;let _0x11c561=a657_0x11c5[_0x27521c];return _0x11c561;};const a657_0x19faec=a657_0x25f7;'use strict';const {DataTypes}=require('sequelize'),attributes={'priority':{'type':DataTypes[a657_0x19faec(0x18b)],'allowNull':![]},'app':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':a657_0x19faec(0x18a)},'appdata':{'type':DataTypes[a657_0x19faec(0x18c)]()},'description':{'type':DataTypes[a657_0x19faec(0x189)]},'interval':{'type':DataTypes['STRING'],'defaultValue':'*,*,*,*'}};module['exports'][a657_0x19faec(0x18d)]=attributes; \ No newline at end of file diff --git a/server/api/smsApplication/smsApplication.controller.js b/server/api/smsApplication/smsApplication.controller.js index abce3fb..6ac82ac 100644 --- a/server/api/smsApplication/smsApplication.controller.js +++ b/server/api/smsApplication/smsApplication.controller.js @@ -1 +1 @@ -const a658_0x506b=['sort','params','findAll','type','includeAll','stack','fields','map','findOne','create','../../config/logger','then','VIRTUAL','offset','end','status','where','index','api','Content-Range','nolimit','intersection','merge','key','sendStatus','attributes','keys','limit','query','../../mysqldb','pick','model','undefined','fieldName','send','filters','name','like','options','show','SmsApplication','sequelize','catch','include','destroy','lodash','count','json','order','rawAttributes','rows','set','update','length','body'];(function(_0x5bae09,_0x560a73){const _0x506bf8=function(_0x3ea313){while(--_0x3ea313){_0x5bae09['push'](_0x5bae09['shift']());}};_0x506bf8(++_0x560a73);}(a658_0x506b,0x140));const a658_0x3ea3=function(_0x5bae09,_0x560a73){_0x5bae09=_0x5bae09-0x8c;let _0x506bf8=a658_0x506b[_0x5bae09];return _0x506bf8;};const a658_0x164953=a658_0x3ea3;'use strict';const _=require(a658_0x164953(0x8c)),qs=require('../../components/parsers/qs'),logger=require(a658_0x164953(0xa0))(a658_0x164953(0xa8)),{db}=require(a658_0x164953(0xb3)),{Op}=require(a658_0x164953(0xbf));function respondWithResult(_0x400cc8,_0x1c0be4){return _0x1c0be4=_0x1c0be4||0xc8,function(_0x34f078){const _0x3e201c=a658_0x3ea3;if(_0x34f078)return _0x400cc8[_0x3e201c(0xa5)](_0x1c0be4)[_0x3e201c(0x8e)](_0x34f078);};}function respondWithFilteredResult(_0x4c870c,_0x1f4ab4){return function(_0x4ecedb){const _0x240465=a658_0x3ea3;if(_0x4ecedb){const _0x4fdb31=_0x4ecedb[_0x240465(0x8d)],_0x243521=_0x1f4ab4[_0x240465(0xa3)];let _0x577347=_0x1f4ab4['offset']+_0x1f4ab4[_0x240465(0xb1)],_0x1b168b;return _0x577347>=_0x4fdb31?(_0x577347=_0x4fdb31,_0x1b168b=0xc8):_0x1b168b=0xce,_0x4c870c[_0x240465(0xa5)](_0x1b168b),_0x4c870c[_0x240465(0x92)](_0x240465(0xa9),_0x243521+'-'+_0x577347+'/'+_0x4fdb31)[_0x240465(0x8e)](_0x4ecedb);}return null;};}function saveUpdates(_0x4c7b07){return function(_0x1c38d8){const _0x55efdd=a658_0x3ea3;if(_0x1c38d8)return _0x1c38d8[_0x55efdd(0x93)](_0x4c7b07)['then'](function(_0x4f3668){return _0x4f3668;});return null;};}function removeEntity(_0x12d0ad){return function(_0x2ce49c){const _0x541487=a658_0x3ea3;if(_0x2ce49c)return _0x2ce49c[_0x541487(0xc2)]()[_0x541487(0xa1)](function(){const _0x54e518=_0x541487;_0x12d0ad[_0x54e518(0xa5)](0xcc)[_0x54e518(0xa4)]();});};}function handleEntityNotFound(_0x5d2af6){return function(_0x5b01eb){const _0x1617c4=a658_0x3ea3;return!_0x5b01eb&&_0x5d2af6[_0x1617c4(0xae)](0x194),_0x5b01eb;};}function handleError(_0x2cd141,_0x458513){return _0x458513=_0x458513||0x1f4,function(_0x2b7d1a){const _0x559768=a658_0x3ea3;logger['error'](_0x2b7d1a[_0x559768(0x9b)]),_0x2b7d1a[_0x559768(0xba)]&&delete _0x2b7d1a[_0x559768(0xba)],_0x2cd141[_0x559768(0xa5)](_0x458513)[_0x559768(0xb8)](_0x2b7d1a);};}exports[a658_0x164953(0xa7)]=function(_0x293927,_0x149413){const _0x279a6f=a658_0x164953;let _0x1e9203={};const _0x4384eb={},_0x332490={'count':0x0,'rows':[]},_0x988707=_[_0x279a6f(0x9d)](db[_0x279a6f(0xbe)][_0x279a6f(0x90)],function(_0x28a6ee){const _0x75da9a=_0x279a6f;return{'name':_0x28a6ee[_0x75da9a(0xb7)],'type':_0x28a6ee[_0x75da9a(0x99)][_0x75da9a(0xad)]};});_0x4384eb['model']=_[_0x279a6f(0x9d)](_0x988707,_0x279a6f(0xba)),_0x4384eb['query']=_[_0x279a6f(0xb0)](_0x293927[_0x279a6f(0xb2)]),_0x4384eb[_0x279a6f(0xb9)]=_[_0x279a6f(0xab)](_0x4384eb[_0x279a6f(0xb5)],_0x4384eb[_0x279a6f(0xb2)]),_0x1e9203[_0x279a6f(0xaf)]=_[_0x279a6f(0xab)](_0x4384eb['model'],qs[_0x279a6f(0x9c)](_0x293927[_0x279a6f(0xb2)][_0x279a6f(0x9c)])),_0x1e9203['attributes']=_0x1e9203[_0x279a6f(0xaf)][_0x279a6f(0x94)]?_0x1e9203['attributes']:_0x4384eb[_0x279a6f(0xb5)];typeof _0x293927[_0x279a6f(0xb2)][_0x279a6f(0xaa)]===_0x279a6f(0xb6)&&(_0x1e9203[_0x279a6f(0xb1)]=qs[_0x279a6f(0xb1)](_0x293927[_0x279a6f(0xb2)][_0x279a6f(0xb1)]),_0x1e9203[_0x279a6f(0xa3)]=qs[_0x279a6f(0xa3)](_0x293927[_0x279a6f(0xb2)][_0x279a6f(0xa3)]));_0x1e9203[_0x279a6f(0x8f)]=qs[_0x279a6f(0x96)](_0x293927[_0x279a6f(0xb2)][_0x279a6f(0x96)]),_0x1e9203[_0x279a6f(0xa6)]=qs[_0x279a6f(0xb9)](_[_0x279a6f(0xb4)](_0x293927[_0x279a6f(0xb2)],_0x4384eb['filters']),_0x988707);_0x293927[_0x279a6f(0xb2)]['filter']&&(_0x1e9203[_0x279a6f(0xa6)]=_[_0x279a6f(0xac)](_0x1e9203[_0x279a6f(0xa6)],{[Op['or']]:_['map'](_0x988707,function(_0x29755b){const _0x5f33e1=_0x279a6f;if(_0x29755b['type']!==_0x5f33e1(0xa2)){const _0x4b4fa7={};return _0x4b4fa7[_0x29755b[_0x5f33e1(0xba)]]={[Op[_0x5f33e1(0xbb)]]:'%'+_0x293927['query']['filter']+'%'},_0x4b4fa7;}})}));_0x1e9203=_['merge']({},_0x1e9203,_0x293927[_0x279a6f(0xbc)]);const _0x2e7e1f={'where':_0x1e9203[_0x279a6f(0xa6)]};return db[_0x279a6f(0xbe)][_0x279a6f(0x8d)](_0x2e7e1f)['then'](function(_0x48de3a){const _0xb3da2a=_0x279a6f;return _0x332490[_0xb3da2a(0x8d)]=_0x48de3a,_0x293927['query'][_0xb3da2a(0x9a)]&&(_0x1e9203['include']=[{'all':!![]}]),db[_0xb3da2a(0xbe)][_0xb3da2a(0x98)](_0x1e9203);})[_0x279a6f(0xa1)](function(_0x583710){const _0x501d91=_0x279a6f;return _0x332490[_0x501d91(0x91)]=_0x583710,_0x332490;})[_0x279a6f(0xa1)](respondWithFilteredResult(_0x149413,_0x1e9203))[_0x279a6f(0xc0)](handleError(_0x149413,null));},exports[a658_0x164953(0xbd)]=function(_0x9b4191,_0xe570c3){const _0x2edca9=a658_0x164953;let _0x2ffede={'raw':!![],'where':{'id':_0x9b4191[_0x2edca9(0x97)]['id']}};const _0x54ad60={};return _0x54ad60[_0x2edca9(0xb5)]=_[_0x2edca9(0xb0)](db[_0x2edca9(0xbe)]['rawAttributes']),_0x54ad60[_0x2edca9(0xb2)]=_[_0x2edca9(0xb0)](_0x9b4191[_0x2edca9(0xb2)]),_0x54ad60['filters']=_['intersection'](_0x54ad60[_0x2edca9(0xb5)],_0x54ad60[_0x2edca9(0xb2)]),_0x2ffede[_0x2edca9(0xaf)]=_[_0x2edca9(0xab)](_0x54ad60['model'],qs[_0x2edca9(0x9c)](_0x9b4191[_0x2edca9(0xb2)][_0x2edca9(0x9c)])),_0x2ffede[_0x2edca9(0xaf)]=_0x2ffede[_0x2edca9(0xaf)][_0x2edca9(0x94)]?_0x2ffede[_0x2edca9(0xaf)]:_0x54ad60[_0x2edca9(0xb5)],_0x9b4191[_0x2edca9(0xb2)][_0x2edca9(0x9a)]&&(_0x2ffede[_0x2edca9(0xc1)]=[{'all':!![]}]),_0x2ffede=_[_0x2edca9(0xac)]({},_0x2ffede,_0x9b4191['options']),db[_0x2edca9(0xbe)][_0x2edca9(0x9e)](_0x2ffede)['then'](handleEntityNotFound(_0xe570c3,null))[_0x2edca9(0xa1)](respondWithResult(_0xe570c3,null))['catch'](handleError(_0xe570c3,null));},exports[a658_0x164953(0x9f)]=function(_0x34cb1c,_0x469461){const _0x1f6edb=a658_0x164953;return db[_0x1f6edb(0xbe)][_0x1f6edb(0x9f)](_0x34cb1c[_0x1f6edb(0x95)],{})[_0x1f6edb(0xa1)](respondWithResult(_0x469461,0xc9))[_0x1f6edb(0xc0)](handleError(_0x469461,null));},exports[a658_0x164953(0x93)]=function(_0x5b46a7,_0x5c28bd){const _0x2121c1=a658_0x164953;return _0x5b46a7[_0x2121c1(0x95)]['id']&&delete _0x5b46a7[_0x2121c1(0x95)]['id'],db['SmsApplication'][_0x2121c1(0x9e)]({'where':{'id':_0x5b46a7['params']['id']}})[_0x2121c1(0xa1)](handleEntityNotFound(_0x5c28bd,null))['then'](saveUpdates(_0x5b46a7[_0x2121c1(0x95)],null))[_0x2121c1(0xa1)](respondWithResult(_0x5c28bd,null))[_0x2121c1(0xc0)](handleError(_0x5c28bd,null));},exports[a658_0x164953(0xc2)]=function(_0x1eb935,_0x4016b8){const _0x14f364=a658_0x164953;return db[_0x14f364(0xbe)][_0x14f364(0x9e)]({'where':{'id':_0x1eb935[_0x14f364(0x97)]['id']}})[_0x14f364(0xa1)](handleEntityNotFound(_0x4016b8,null))[_0x14f364(0xa1)](removeEntity(_0x4016b8,null))[_0x14f364(0xc0)](handleError(_0x4016b8,null));}; \ No newline at end of file +const a658_0x3f4d=['findAll','rows','../../components/parsers/qs','count','name','Content-Range','then','filter','../../mysqldb','api','rawAttributes','order','body','fieldName','intersection','sendStatus','sequelize','fields','includeAll','destroy','limit','offset','catch','merge','status','query','like','send','end','type','json','error','model','include','set','keys','sort','create','where','map','attributes','nolimit','options','params','pick','filters','undefined','findOne','show','SmsApplication','length','update'];(function(_0x30c3a5,_0x3e9a70){const _0x3f4d5f=function(_0x252ede){while(--_0x252ede){_0x30c3a5['push'](_0x30c3a5['shift']());}};_0x3f4d5f(++_0x3e9a70);}(a658_0x3f4d,0x73));const a658_0x252e=function(_0x30c3a5,_0x3e9a70){_0x30c3a5=_0x30c3a5-0xfb;let _0x3f4d5f=a658_0x3f4d[_0x30c3a5];return _0x3f4d5f;};const a658_0x3b36f8=a658_0x252e;'use strict';const _=require('lodash'),qs=require(a658_0x3b36f8(0x126)),logger=require('../../config/logger')(a658_0x3b36f8(0x12d)),{db}=require(a658_0x3b36f8(0x12c)),{Op}=require(a658_0x3b36f8(0x100));function respondWithResult(_0x4fbb7d,_0x28157b){return _0x28157b=_0x28157b||0xc8,function(_0x11e749){const _0x18b9b9=a658_0x252e;if(_0x11e749)return _0x4fbb7d[_0x18b9b9(0x108)](_0x28157b)[_0x18b9b9(0x10e)](_0x11e749);};}function respondWithFilteredResult(_0x20250d,_0x715044){return function(_0x2d8ccd){const _0x12d0b7=a658_0x252e;if(_0x2d8ccd){const _0x5399db=_0x2d8ccd[_0x12d0b7(0x127)],_0x2410e0=_0x715044[_0x12d0b7(0x105)];let _0x538afc=_0x715044[_0x12d0b7(0x105)]+_0x715044['limit'],_0x5d343c;return _0x538afc>=_0x5399db?(_0x538afc=_0x5399db,_0x5d343c=0xc8):_0x5d343c=0xce,_0x20250d[_0x12d0b7(0x108)](_0x5d343c),_0x20250d[_0x12d0b7(0x112)](_0x12d0b7(0x129),_0x2410e0+'-'+_0x538afc+'/'+_0x5399db)['json'](_0x2d8ccd);}return null;};}function saveUpdates(_0xa28c58){return function(_0x178ed6){const _0x5ad7fa=a658_0x252e;if(_0x178ed6)return _0x178ed6[_0x5ad7fa(0x123)](_0xa28c58)[_0x5ad7fa(0x12a)](function(_0x27cc44){return _0x27cc44;});return null;};}function removeEntity(_0x35e52b){return function(_0x1cad43){const _0x19b854=a658_0x252e;if(_0x1cad43)return _0x1cad43[_0x19b854(0x103)]()[_0x19b854(0x12a)](function(){const _0x2ec413=_0x19b854;_0x35e52b[_0x2ec413(0x108)](0xcc)[_0x2ec413(0x10c)]();});};}function handleEntityNotFound(_0x400462){return function(_0x1befd7){const _0x2ee406=a658_0x252e;return!_0x1befd7&&_0x400462[_0x2ee406(0xff)](0x194),_0x1befd7;};}function handleError(_0x12260a,_0x39ee60){return _0x39ee60=_0x39ee60||0x1f4,function(_0x333c69){const _0x5634cb=a658_0x252e;logger[_0x5634cb(0x10f)](_0x333c69['stack']),_0x333c69[_0x5634cb(0x128)]&&delete _0x333c69['name'],_0x12260a[_0x5634cb(0x108)](_0x39ee60)[_0x5634cb(0x10b)](_0x333c69);};}exports['index']=function(_0x3abd9c,_0x19542d){const _0x24235e=a658_0x3b36f8;let _0x110825={};const _0x3d032a={},_0x59c391={'count':0x0,'rows':[]},_0xc9104b=_['map'](db[_0x24235e(0x121)][_0x24235e(0x12e)],function(_0x2397af){const _0x402b09=_0x24235e;return{'name':_0x2397af[_0x402b09(0xfd)],'type':_0x2397af[_0x402b09(0x10d)]['key']};});_0x3d032a[_0x24235e(0x110)]=_['map'](_0xc9104b,_0x24235e(0x128)),_0x3d032a['query']=_[_0x24235e(0x113)](_0x3abd9c['query']),_0x3d032a[_0x24235e(0x11d)]=_['intersection'](_0x3d032a[_0x24235e(0x110)],_0x3d032a[_0x24235e(0x109)]),_0x110825[_0x24235e(0x118)]=_[_0x24235e(0xfe)](_0x3d032a[_0x24235e(0x110)],qs[_0x24235e(0x101)](_0x3abd9c[_0x24235e(0x109)][_0x24235e(0x101)])),_0x110825[_0x24235e(0x118)]=_0x110825[_0x24235e(0x118)][_0x24235e(0x122)]?_0x110825[_0x24235e(0x118)]:_0x3d032a[_0x24235e(0x110)];typeof _0x3abd9c[_0x24235e(0x109)][_0x24235e(0x119)]===_0x24235e(0x11e)&&(_0x110825[_0x24235e(0x104)]=qs[_0x24235e(0x104)](_0x3abd9c['query'][_0x24235e(0x104)]),_0x110825[_0x24235e(0x105)]=qs['offset'](_0x3abd9c[_0x24235e(0x109)]['offset']));_0x110825[_0x24235e(0xfb)]=qs[_0x24235e(0x114)](_0x3abd9c[_0x24235e(0x109)][_0x24235e(0x114)]),_0x110825[_0x24235e(0x116)]=qs['filters'](_[_0x24235e(0x11c)](_0x3abd9c['query'],_0x3d032a['filters']),_0xc9104b);_0x3abd9c[_0x24235e(0x109)][_0x24235e(0x12b)]&&(_0x110825[_0x24235e(0x116)]=_[_0x24235e(0x107)](_0x110825[_0x24235e(0x116)],{[Op['or']]:_[_0x24235e(0x117)](_0xc9104b,function(_0x4dc11a){const _0x23359e=_0x24235e;if(_0x4dc11a['type']!=='VIRTUAL'){const _0x4f1c04={};return _0x4f1c04[_0x4dc11a[_0x23359e(0x128)]]={[Op[_0x23359e(0x10a)]]:'%'+_0x3abd9c[_0x23359e(0x109)][_0x23359e(0x12b)]+'%'},_0x4f1c04;}})}));_0x110825=_[_0x24235e(0x107)]({},_0x110825,_0x3abd9c[_0x24235e(0x11a)]);const _0x53daed={'where':_0x110825['where']};return db['SmsApplication']['count'](_0x53daed)['then'](function(_0x409b9c){const _0x302409=_0x24235e;return _0x59c391[_0x302409(0x127)]=_0x409b9c,_0x3abd9c[_0x302409(0x109)]['includeAll']&&(_0x110825[_0x302409(0x111)]=[{'all':!![]}]),db['SmsApplication'][_0x302409(0x124)](_0x110825);})[_0x24235e(0x12a)](function(_0xbaa95f){const _0x2bafdf=_0x24235e;return _0x59c391[_0x2bafdf(0x125)]=_0xbaa95f,_0x59c391;})[_0x24235e(0x12a)](respondWithFilteredResult(_0x19542d,_0x110825))[_0x24235e(0x106)](handleError(_0x19542d,null));},exports[a658_0x3b36f8(0x120)]=function(_0x28dac5,_0x287070){const _0x282369=a658_0x3b36f8;let _0x307d6f={'raw':!![],'where':{'id':_0x28dac5[_0x282369(0x11b)]['id']}};const _0x2b8230={};return _0x2b8230[_0x282369(0x110)]=_[_0x282369(0x113)](db[_0x282369(0x121)]['rawAttributes']),_0x2b8230[_0x282369(0x109)]=_[_0x282369(0x113)](_0x28dac5['query']),_0x2b8230['filters']=_['intersection'](_0x2b8230[_0x282369(0x110)],_0x2b8230[_0x282369(0x109)]),_0x307d6f[_0x282369(0x118)]=_['intersection'](_0x2b8230[_0x282369(0x110)],qs[_0x282369(0x101)](_0x28dac5[_0x282369(0x109)]['fields'])),_0x307d6f[_0x282369(0x118)]=_0x307d6f['attributes'][_0x282369(0x122)]?_0x307d6f['attributes']:_0x2b8230[_0x282369(0x110)],_0x28dac5[_0x282369(0x109)][_0x282369(0x102)]&&(_0x307d6f[_0x282369(0x111)]=[{'all':!![]}]),_0x307d6f=_[_0x282369(0x107)]({},_0x307d6f,_0x28dac5[_0x282369(0x11a)]),db[_0x282369(0x121)][_0x282369(0x11f)](_0x307d6f)[_0x282369(0x12a)](handleEntityNotFound(_0x287070,null))[_0x282369(0x12a)](respondWithResult(_0x287070,null))[_0x282369(0x106)](handleError(_0x287070,null));},exports[a658_0x3b36f8(0x115)]=function(_0x4e36d9,_0x51ca77){const _0x1e6b58=a658_0x3b36f8;return db[_0x1e6b58(0x121)][_0x1e6b58(0x115)](_0x4e36d9['body'],{})[_0x1e6b58(0x12a)](respondWithResult(_0x51ca77,0xc9))[_0x1e6b58(0x106)](handleError(_0x51ca77,null));},exports[a658_0x3b36f8(0x123)]=function(_0x23e694,_0xd9a5b2){const _0x25f29e=a658_0x3b36f8;return _0x23e694[_0x25f29e(0xfc)]['id']&&delete _0x23e694['body']['id'],db['SmsApplication'][_0x25f29e(0x11f)]({'where':{'id':_0x23e694['params']['id']}})[_0x25f29e(0x12a)](handleEntityNotFound(_0xd9a5b2,null))[_0x25f29e(0x12a)](saveUpdates(_0x23e694[_0x25f29e(0xfc)],null))['then'](respondWithResult(_0xd9a5b2,null))['catch'](handleError(_0xd9a5b2,null));},exports['destroy']=function(_0x224d4d,_0x2a0e57){const _0x5f296a=a658_0x3b36f8;return db[_0x5f296a(0x121)]['findOne']({'where':{'id':_0x224d4d[_0x5f296a(0x11b)]['id']}})[_0x5f296a(0x12a)](handleEntityNotFound(_0x2a0e57,null))[_0x5f296a(0x12a)](removeEntity(_0x2a0e57,null))[_0x5f296a(0x106)](handleError(_0x2a0e57,null));}; \ No newline at end of file diff --git a/server/api/smsApplication/smsApplication.model.js b/server/api/smsApplication/smsApplication.model.js index af6e234..328a546 100644 --- a/server/api/smsApplication/smsApplication.model.js +++ b/server/api/smsApplication/smsApplication.model.js @@ -1 +1 @@ -const a659_0x18f0=['sequelize','exports','function','./smsApplication.options','init'];(function(_0x2fcb37,_0x116556){const _0x18f0be=function(_0xffc05f){while(--_0xffc05f){_0x2fcb37['push'](_0x2fcb37['shift']());}};_0x18f0be(++_0x116556);}(a659_0x18f0,0x1b4));const a659_0xffc0=function(_0x2fcb37,_0x116556){_0x2fcb37=_0x2fcb37-0xf5;let _0x18f0be=a659_0x18f0[_0x2fcb37];return _0x18f0be;};const a659_0x87fb1a=a659_0xffc0;'use strict';const {Model}=require(a659_0x87fb1a(0xf9)),{attributes}=require('./smsApplication.attributes'),{options}=require(a659_0x87fb1a(0xf7));class SmsApplication extends Model{}function init(_0xe43fd5,_0x30f5a7){const _0x3888b6=a659_0x87fb1a,_0x29ca6a=options(_0xe43fd5),_0x13e1d4=typeof _0x30f5a7===_0x3888b6(0xf6)?_0x30f5a7(_0x29ca6a):_0x29ca6a;return SmsApplication[_0x3888b6(0xf8)](attributes,_0x13e1d4),SmsApplication;}module[a659_0x87fb1a(0xf5)]['SmsApplication']=SmsApplication,module[a659_0x87fb1a(0xf5)][a659_0x87fb1a(0xf8)]=init; \ No newline at end of file +const a659_0x575b=['function','./smsApplication.options','SmsApplication','exports','./smsApplication.attributes','init'];(function(_0x42c3d4,_0x8d5a76){const _0x575ba8=function(_0x3edcd6){while(--_0x3edcd6){_0x42c3d4['push'](_0x42c3d4['shift']());}};_0x575ba8(++_0x8d5a76);}(a659_0x575b,0x185));const a659_0x3edc=function(_0x42c3d4,_0x8d5a76){_0x42c3d4=_0x42c3d4-0x6a;let _0x575ba8=a659_0x575b[_0x42c3d4];return _0x575ba8;};const a659_0x462dcf=a659_0x3edc;'use strict';const {Model}=require('sequelize'),{attributes}=require(a659_0x462dcf(0x6f)),{options}=require(a659_0x462dcf(0x6c));class SmsApplication extends Model{}function init(_0x5aea4c,_0x527cb7){const _0x2bd14d=a659_0x462dcf,_0xfd5de8=options(_0x5aea4c),_0x212f7f=typeof _0x527cb7===_0x2bd14d(0x6b)?_0x527cb7(_0xfd5de8):_0xfd5de8;return SmsApplication[_0x2bd14d(0x6a)](attributes,_0x212f7f),SmsApplication;}module[a659_0x462dcf(0x6e)][a659_0x462dcf(0x6d)]=SmsApplication,module[a659_0x462dcf(0x6e)][a659_0x462dcf(0x6a)]=init; \ No newline at end of file diff --git a/server/api/smsApplication/smsApplication.options.js b/server/api/smsApplication/smsApplication.options.js index cd44f0d..ee1612d 100644 --- a/server/api/smsApplication/smsApplication.options.js +++ b/server/api/smsApplication/smsApplication.options.js @@ -1 +1 @@ -var a660_0x3bb0=['options','utf8mb4','exports','utf8mb4_unicode_ci'];(function(_0x337854,_0x40aa4c){var _0x3bb00b=function(_0x50438c){while(--_0x50438c){_0x337854['push'](_0x337854['shift']());}};_0x3bb00b(++_0x40aa4c);}(a660_0x3bb0,0xe8));var a660_0x5043=function(_0x337854,_0x40aa4c){_0x337854=_0x337854-0x1c3;var _0x3bb00b=a660_0x3bb0[_0x337854];return _0x3bb00b;};var a660_0x4808ac=a660_0x5043;function options(_0x8d642a){var _0x49b104=a660_0x5043;return{'sequelize':_0x8d642a,'tableName':'sms_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x49b104(0x1c4),'collate':_0x49b104(0x1c6)};}module[a660_0x4808ac(0x1c5)][a660_0x4808ac(0x1c3)]=options; \ No newline at end of file +var a660_0x574e=['options','utf8mb4','sms_applications','utf8mb4_unicode_ci'];(function(_0x50e2d4,_0x1ef66d){var _0x574e9f=function(_0x138162){while(--_0x138162){_0x50e2d4['push'](_0x50e2d4['shift']());}};_0x574e9f(++_0x1ef66d);}(a660_0x574e,0x1b1));var a660_0x1381=function(_0x50e2d4,_0x1ef66d){_0x50e2d4=_0x50e2d4-0xd9;var _0x574e9f=a660_0x574e[_0x50e2d4];return _0x574e9f;};var a660_0x13f80d=a660_0x1381;function options(_0x5cdf6a){var _0xa97583=a660_0x1381;return{'sequelize':_0x5cdf6a,'tableName':_0xa97583(0xda),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xa97583(0xd9),'collate':_0xa97583(0xdb)};}module['exports'][a660_0x13f80d(0xdc)]=options; \ No newline at end of file diff --git a/server/api/smsInteraction/index.js b/server/api/smsInteraction/index.js index d76193f..272eaf3 100644 --- a/server/api/smsInteraction/index.js +++ b/server/api/smsInteraction/index.js @@ -1 +1 @@ -const a661_0x4d6a=['sms','show','create','addMessage','smsinteraction:update','../../components/auth/service','../../components/interaction/service','exports','/:id/messages','getMessages','/describe','post','removeTags','put','/:id','tracked','describe','/:id/tags','isAuthenticated','get','destroy','download','delete','smsinteraction:destroy','/:id/download','Router'];(function(_0x4e08a5,_0x35ba26){const _0x4d6a65=function(_0x4715ef){while(--_0x4715ef){_0x4e08a5['push'](_0x4e08a5['shift']());}};_0x4d6a65(++_0x35ba26);}(a661_0x4d6a,0x1d0));const a661_0x4715=function(_0x4e08a5,_0x35ba26){_0x4e08a5=_0x4e08a5-0x86;let _0x4d6a65=a661_0x4d6a[_0x4e08a5];return _0x4d6a65;};const a661_0x3a7959=a661_0x4715;'use strict';const express=require('express'),router=express[a661_0x3a7959(0x89)](),auth=require(a661_0x3a7959(0x8f)),interaction=require(a661_0x3a7959(0x90)),controller=require('./smsInteraction.controller');router['get']('/',auth[a661_0x3a7959(0x9c)](),controller['index']),router[a661_0x3a7959(0x9d)](a661_0x3a7959(0x94),auth[a661_0x3a7959(0x9c)](),controller[a661_0x3a7959(0x9a)]),router[a661_0x3a7959(0x9d)](a661_0x3a7959(0x98),auth[a661_0x3a7959(0x9c)](),controller[a661_0x3a7959(0x8b)]),router[a661_0x3a7959(0x9d)](a661_0x3a7959(0x92),auth[a661_0x3a7959(0x9c)](),controller[a661_0x3a7959(0x93)]),router[a661_0x3a7959(0x9d)](a661_0x3a7959(0x88),auth[a661_0x3a7959(0x9c)](),controller[a661_0x3a7959(0x9f)]),router[a661_0x3a7959(0x95)]('/',auth[a661_0x3a7959(0x9c)](),controller[a661_0x3a7959(0x8c)]),router[a661_0x3a7959(0x95)](a661_0x3a7959(0x92),auth[a661_0x3a7959(0x9c)](),controller[a661_0x3a7959(0x8d)]),router[a661_0x3a7959(0x95)](a661_0x3a7959(0x9b),auth[a661_0x3a7959(0x9c)](),interaction['tracked']('sms','smsinteraction:addtags'),controller['addTags']),router[a661_0x3a7959(0x97)]('/:id',auth[a661_0x3a7959(0x9c)](),interaction[a661_0x3a7959(0x99)](a661_0x3a7959(0x8a),a661_0x3a7959(0x8e)),controller['update']),router[a661_0x3a7959(0x86)](a661_0x3a7959(0x98),auth[a661_0x3a7959(0x9c)](),interaction['tracked'](a661_0x3a7959(0x8a),a661_0x3a7959(0x87)),controller[a661_0x3a7959(0x9e)]),router['delete'](a661_0x3a7959(0x9b),auth[a661_0x3a7959(0x9c)](),controller[a661_0x3a7959(0x96)]),module[a661_0x3a7959(0x91)]=router; \ No newline at end of file +const a661_0x2b7d=['tracked','update','delete','express','exports','index','put','/:id/download','sms','addMessage','/:id/tags','./smsInteraction.controller','get','removeTags','isAuthenticated','post','smsinteraction:addtags','show','addTags','create','/:id/messages','/:id','download','/describe','smsinteraction:update','destroy','../../components/interaction/service'];(function(_0x1b9cd6,_0x46b1c1){const _0x2b7de2=function(_0x17e162){while(--_0x17e162){_0x1b9cd6['push'](_0x1b9cd6['shift']());}};_0x2b7de2(++_0x46b1c1);}(a661_0x2b7d,0x12f));const a661_0x17e1=function(_0x1b9cd6,_0x46b1c1){_0x1b9cd6=_0x1b9cd6-0x8b;let _0x2b7de2=a661_0x2b7d[_0x1b9cd6];return _0x2b7de2;};const a661_0x4cbb16=a661_0x17e1;'use strict';const express=require(a661_0x4cbb16(0xa3)),router=express['Router'](),auth=require('../../components/auth/service'),interaction=require(a661_0x4cbb16(0x9f)),controller=require(a661_0x4cbb16(0x90));router[a661_0x4cbb16(0x91)]('/',auth[a661_0x4cbb16(0x93)](),controller[a661_0x4cbb16(0xa5)]),router[a661_0x4cbb16(0x91)](a661_0x4cbb16(0x9c),auth[a661_0x4cbb16(0x93)](),controller['describe']),router[a661_0x4cbb16(0x91)](a661_0x4cbb16(0x9a),auth[a661_0x4cbb16(0x93)](),controller[a661_0x4cbb16(0x96)]),router['get'](a661_0x4cbb16(0x99),auth['isAuthenticated'](),controller['getMessages']),router[a661_0x4cbb16(0x91)](a661_0x4cbb16(0x8c),auth['isAuthenticated'](),controller[a661_0x4cbb16(0x9b)]),router[a661_0x4cbb16(0x94)]('/',auth[a661_0x4cbb16(0x93)](),controller[a661_0x4cbb16(0x98)]),router['post'](a661_0x4cbb16(0x99),auth[a661_0x4cbb16(0x93)](),controller[a661_0x4cbb16(0x8e)]),router[a661_0x4cbb16(0x94)](a661_0x4cbb16(0x8f),auth['isAuthenticated'](),interaction['tracked'](a661_0x4cbb16(0x8d),a661_0x4cbb16(0x95)),controller[a661_0x4cbb16(0x97)]),router[a661_0x4cbb16(0x8b)]('/:id',auth['isAuthenticated'](),interaction[a661_0x4cbb16(0xa0)]('sms',a661_0x4cbb16(0x9d)),controller[a661_0x4cbb16(0xa1)]),router[a661_0x4cbb16(0xa2)](a661_0x4cbb16(0x9a),auth['isAuthenticated'](),interaction[a661_0x4cbb16(0xa0)]('sms','smsinteraction:destroy'),controller[a661_0x4cbb16(0x9e)]),router[a661_0x4cbb16(0xa2)]('/:id/tags',auth[a661_0x4cbb16(0x93)](),controller[a661_0x4cbb16(0x92)]),module[a661_0x4cbb16(0xa4)]=router; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.attributes.js b/server/api/smsInteraction/smsInteraction.attributes.js index bc552eb..35f5f57 100644 --- a/server/api/smsInteraction/smsInteraction.attributes.js +++ b/server/api/smsInteraction/smsInteraction.attributes.js @@ -1 +1 @@ -const a662_0x4a8f=['out','ENUM','STRING','DATE','BOOLEAN'];(function(_0x182bc3,_0x1142f0){const _0x4a8f0d=function(_0xbcb059){while(--_0xbcb059){_0x182bc3['push'](_0x182bc3['shift']());}};_0x4a8f0d(++_0x1142f0);}(a662_0x4a8f,0x102));const a662_0xbcb0=function(_0x182bc3,_0x1142f0){_0x182bc3=_0x182bc3-0x1ec;let _0x4a8f0d=a662_0x4a8f[_0x182bc3];return _0x4a8f0d;};const a662_0x1bb2c5=a662_0xbcb0;'use strict';const {DataTypes}=require('sequelize'),attributes={'closed':{'type':DataTypes[a662_0x1bb2c5(0x1ed)],'defaultValue':![]},'closedAt':{'type':DataTypes['DATE']},'disposition':{'type':DataTypes[a662_0x1bb2c5(0x1f0)]},'secondDisposition':{'type':DataTypes[a662_0x1bb2c5(0x1f0)]},'thirdDisposition':{'type':DataTypes[a662_0x1bb2c5(0x1f0)]},'note':{'type':DataTypes['STRING']},'phone':{'type':DataTypes[a662_0x1bb2c5(0x1f0)]},'read1stAt':{'type':DataTypes[a662_0x1bb2c5(0x1ec)]},'firstMsgDirection':{'type':DataTypes[a662_0x1bb2c5(0x1ef)]('in',a662_0x1bb2c5(0x1ee)),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':DataTypes[a662_0x1bb2c5(0x1ec)]},'lastMsgDirection':{'type':DataTypes[a662_0x1bb2c5(0x1ef)]('in',a662_0x1bb2c5(0x1ee)),'defaultValue':'in','allowNull':![]}};module['exports']['attributes']=attributes; \ No newline at end of file +const a662_0xfd1c=['attributes','out','STRING','exports','ENUM','sequelize','DATE','BOOLEAN'];(function(_0x107b42,_0x2cb48d){const _0xfd1c00=function(_0x900041){while(--_0x900041){_0x107b42['push'](_0x107b42['shift']());}};_0xfd1c00(++_0x2cb48d);}(a662_0xfd1c,0x148));const a662_0x9000=function(_0x107b42,_0x2cb48d){_0x107b42=_0x107b42-0x197;let _0xfd1c00=a662_0xfd1c[_0x107b42];return _0xfd1c00;};const a662_0x6115aa=a662_0x9000;'use strict';const {DataTypes}=require(a662_0x6115aa(0x19c)),attributes={'closed':{'type':DataTypes[a662_0x6115aa(0x19e)],'defaultValue':![]},'closedAt':{'type':DataTypes[a662_0x6115aa(0x19d)]},'disposition':{'type':DataTypes['STRING']},'secondDisposition':{'type':DataTypes[a662_0x6115aa(0x199)]},'thirdDisposition':{'type':DataTypes[a662_0x6115aa(0x199)]},'note':{'type':DataTypes[a662_0x6115aa(0x199)]},'phone':{'type':DataTypes[a662_0x6115aa(0x199)]},'read1stAt':{'type':DataTypes[a662_0x6115aa(0x19d)]},'firstMsgDirection':{'type':DataTypes[a662_0x6115aa(0x19b)]('in','out'),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':DataTypes['DATE']},'lastMsgDirection':{'type':DataTypes[a662_0x6115aa(0x19b)]('in',a662_0x6115aa(0x198)),'defaultValue':'in','allowNull':![]}};module[a662_0x6115aa(0x19a)][a662_0x6115aa(0x197)]=attributes; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.controller.js b/server/api/smsInteraction/smsInteraction.controller.js index 48961e4..b7ab418 100644 --- a/server/api/smsInteraction/smsInteraction.controller.js +++ b/server/api/smsInteraction/smsInteraction.controller.js @@ -1 +1 @@ -const a663_0x492f=['replace','getSmsAccounts','lastName','out','rimraf','ui.SmsInteractionId\x20IN\x20?','tag','smsInteractionTags:save','forEach','Contact.firstName','i.phone\x20LIKE\x20?','sms_interactions','type','map','tools_tags','moment','send','findOne','GROUP_CONCAT(DISTINCT\x20t.id)','getFullTextValue','all','Users','isNumeric','push','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','root','start','then','status','tmp','i.*','html-pdf','../../config/logger','unlinkSync','pick','color','parseSearch','undefined','renderFile','json','catch','Contact.fax','`\x20=\x200','40px','u.id','contactName','addTags','group','index','Content-Range','groupBy','YYYY-MM-DD','sqlOperator','sort','destroy','operator','clone','Owner','key','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','../../components/parsers/qs','rows','fields','user_has_sms_interactions','c.fax','closed','unreadMessages','files','a.id\x20=\x20i.SmsAccountId','createdAt','user','squel','removeTags','update','ids','create','DESC','filter','direction','sendStatus','Contact','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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','omit','buildExpression','select','expr','a.key','sms_interaction_has_tags','CASE\x20WHEN\x20(c.firstName\x20IS\x20NOT\x20NULL\x20AND\x20c.firstName\x20<>\x20\x27\x27)\x20OR\x20(c.lastName\x20IS\x20NOT\x20NULL\x20AND\x20c.lastName\x20<>\x20\x27\x27)\x20THEN\x20CONCAT(IFNULL(c.firstName,\x20\x27\x27),\x20\x27\x20\x27,\x20IFNULL(c.lastName,\x20\x27\x27))\x20ELSE\x20\x27Unknown\x27\x20END','findAll','toFile','count','setTags','value','o.fullname','fullname','set','Owner.internal','users','params','transcript-%d-%s.zip','SmsAccountId','transcript-','.pdf','`unreadMessages`\x20>\x200','closedAt','disposition','some','include','toString','ui.SmsInteractionId','get','mkdirSync','o.internal','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','../../config/environment','c.email','unix','query','c.firstName','SmsMessage','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\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','from','getMessages','util','sms_accounts','c.mobile','N.A.','error','join','sequelize','rawAttributes','t.id\x20=\x20it.TagId','Tags','10px','path','secret','end','emit','field','merge','search','name','i.SmsAccountId\x20IN\x20?','filters','Messages','left_join','keys','log','offset','limit','isEmpty','read','30px','model','addMessage','u.id\x20=\x20ui.UserId','register','YYYY-MM-DD\x20HH:mm:ss','it.SmsInteractionId\x20=\x20i.id','Contact.phone','order','views','parse','Tag','includeAll','server','find','\x20IS\x20NULL','body','TagIds','format','length','Account','having','u.fullname','Contact.email','conditions','nolimit','downloadInteraction.html','o.id\x20=\x20i.UserId','SmsInteraction','err','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','ejs','`unreadMessages`\x20=\x200','text','Owner.fullname','Sms','System','UserId','intersection','where','download','ContactId','$gte','options','c.lastName','User','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','show','attributes','SmsInteractionId','i.SmsAccountId\x20IS\x20NOT\x20NULL','api','me.SmsInteractionId\x20=\x20i.id','i.SmsAccountId\x20IS\x20NULL','Contact.lastName','t.id\x20IN\x20?','sms_messages','$substring','resolve','i.id\x20LIKE\x20?'];(function(_0x1301d2,_0x2fb007){const _0x492fe5=function(_0x4e0cfa){while(--_0x4e0cfa){_0x1301d2['push'](_0x1301d2['shift']());}};_0x492fe5(++_0x2fb007);}(a663_0x492f,0xef));const a663_0x4e0c=function(_0x1301d2,_0x2fb007){_0x1301d2=_0x1301d2-0x1bd;let _0x492fe5=a663_0x492f[_0x1301d2];return _0x492fe5;};const a663_0x2166b2=a663_0x4e0c;'use strict';const pdf=require(a663_0x2166b2(0x1c2)),rimraf=require(a663_0x2166b2(0x27c)),zipdir=require('zip-dir'),moment=require(a663_0x2166b2(0x287)),util=require(a663_0x2166b2(0x21f)),path=require(a663_0x2166b2(0x22a)),ejs=require(a663_0x2166b2(0x25b)),fs=require('fs'),_=require('lodash'),squel=require(a663_0x2166b2(0x1ea)),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(a663_0x2166b2(0x1df)),as=require('../../components/parsers/advancedSearch'),logger=require(a663_0x2166b2(0x1c3))(a663_0x2166b2(0x26f)),config=require(a663_0x2166b2(0x216)),{db}=require('../../mysqldb'),{Op,QueryTypes}=require(a663_0x2166b2(0x225));require('./smsInteraction.socket')[a663_0x2166b2(0x240)](socket);function respondWithStatusCode(_0x30186e,_0x106a53){return _0x106a53=_0x106a53||0xcc,function(_0x15d7fd){const _0x991b37=a663_0x4e0c;if(_0x15d7fd)return _0x30186e[_0x991b37(0x1f2)](_0x106a53);return _0x30186e['status'](_0x106a53)['end']();};}function respondWithResult(_0x352d3f,_0x3fb611){return _0x3fb611=_0x3fb611||0xc8,function(_0x3b495e){if(_0x3b495e)return _0x352d3f['status'](_0x3fb611)['json'](_0x3b495e);};}function respondWithFilteredResult(_0x23ed1c,_0x557e52){return function(_0x5416ea){const _0x4d8698=a663_0x4e0c;if(_0x5416ea){const _0x28b64e=_0x5416ea['count'],_0x53dcd3=_0x557e52['offset'];let _0x327577=_0x557e52[_0x4d8698(0x238)]+_0x557e52['limit'],_0x28aedb;return _0x327577>=_0x28b64e?(_0x327577=_0x28b64e,_0x28aedb=0xc8):_0x28aedb=0xce,_0x23ed1c[_0x4d8698(0x1bf)](_0x28aedb),_0x23ed1c[_0x4d8698(0x203)](_0x4d8698(0x1d4),_0x53dcd3+'-'+_0x327577+'/'+_0x28b64e)[_0x4d8698(0x1ca)](_0x5416ea);}return null;};}function saveUpdates(_0x35ad6b){return function(_0x21e297){const _0x34c77d=a663_0x4e0c;if(_0x21e297)return _0x21e297[_0x34c77d(0x1ec)](_0x35ad6b)[_0x34c77d(0x1be)](function(_0x39a8f9){return _0x39a8f9;});return null;};}function removeEntity(_0x5033af){return function(_0x2f2f4b){const _0x52105d=a663_0x4e0c;if(_0x2f2f4b)return _0x2f2f4b['destroy']()[_0x52105d(0x1be)](function(){const _0x33833c=_0x52105d;_0x5033af[_0x33833c(0x1bf)](0xcc)[_0x33833c(0x22c)]();});};}function handleEntityNotFound(_0x56c06a){return function(_0x2c205b){return!_0x2c205b&&_0x56c06a['sendStatus'](0x194),_0x2c205b;};}function handleError(_0x2ed0d0,_0x4e75a6){return _0x4e75a6=_0x4e75a6||0x1f4,function(_0x3e6f2a){const _0x987ad4=a663_0x4e0c;logger[_0x987ad4(0x223)](_0x3e6f2a['stack']),_0x3e6f2a[_0x987ad4(0x231)]&&delete _0x3e6f2a[_0x987ad4(0x231)],_0x2ed0d0[_0x987ad4(0x1bf)](_0x4e75a6)[_0x987ad4(0x288)](_0x3e6f2a);};}function getInteractionUsers(_0x296b21,_0x32d40f){return new Promise(function(_0x3b6b1e,_0x2ac683){const _0x2f8a3f=a663_0x4e0c;try{_0x32d40f[_0x296b21['id']]&&(_0x296b21[_0x2f8a3f(0x28d)]=_[_0x2f8a3f(0x285)](_0x32d40f[_0x296b21['id']],function(_0x42356d){const _0x412f7a=_0x2f8a3f;return{'id':_0x42356d['id'],'fullname':_0x42356d[_0x412f7a(0x202)]};}));}catch(_0x1c44dd){_0x2ac683(_0x1c44dd);}_0x3b6b1e(_0x296b21);});}function getInteractionTags(_0x259ada,_0x1dfff4){return new Promise(function(_0x487dc4,_0x4a8e0f){const _0x54c469=a663_0x4e0c;try{_0x259ada[_0x54c469(0x24d)]&&(_0x259ada[_0x54c469(0x228)]=[],_0x259ada[_0x54c469(0x24d)]['split'](',')['forEach'](function(_0xf20c32){_0x259ada['Tags']['push'](_0x1dfff4[_0xf20c32]);})),delete _0x259ada[_0x54c469(0x24d)];}catch(_0x437107){_0x4a8e0f(_0x437107);}_0x487dc4(_0x259ada);});}function updateSmsInteraction(_0x76f79,_0x337b12,_0x300225){return new Promise(function(_0x24b163,_0x38374d){const _0x3b6fb1=a663_0x4e0c;return getInteractionUsers(_0x76f79,_0x300225)[_0x3b6fb1(0x1be)](function(_0x3d06aa){return getInteractionTags(_0x3d06aa,_0x337b12);})['then'](function(_0x95c079){_0x24b163(_0x95c079);})[_0x3b6fb1(0x1cb)](function(_0x47afcb){_0x38374d(_0x47afcb);});});}exports[a663_0x2166b2(0x1d3)]=function(_0x1b1a9f,_0x1fa39b){const _0x2eb8b6=a663_0x2166b2,_0x252ea1={},_0x388890={},_0x5dd47e={'count':0x0,'rows':[]},_0x22a69b=_[_0x2eb8b6(0x285)](db['SmsInteraction'][_0x2eb8b6(0x226)],function(_0x55ec83){const _0x315c7b=_0x2eb8b6;return{'name':_0x55ec83['fieldName'],'type':_0x55ec83[_0x315c7b(0x284)][_0x315c7b(0x1dd)]};});_0x388890['model']=_[_0x2eb8b6(0x285)](_0x22a69b,_0x2eb8b6(0x231)),_0x388890['query']=_[_0x2eb8b6(0x236)](_0x1b1a9f[_0x2eb8b6(0x219)]),_0x388890[_0x2eb8b6(0x233)]=_[_0x2eb8b6(0x262)](_0x388890[_0x2eb8b6(0x23d)],_0x388890[_0x2eb8b6(0x219)]),_0x252ea1[_0x2eb8b6(0x26c)]=_['intersection'](_0x388890[_0x2eb8b6(0x23d)],qs[_0x2eb8b6(0x1e1)](_0x1b1a9f[_0x2eb8b6(0x219)][_0x2eb8b6(0x1e1)])),_0x252ea1[_0x2eb8b6(0x26c)]=_0x252ea1[_0x2eb8b6(0x26c)]['length']?_0x252ea1['attributes']:_0x388890[_0x2eb8b6(0x23d)];typeof _0x1b1a9f['query']['nolimit']===_0x2eb8b6(0x1c8)&&(_0x252ea1['limit']=qs[_0x2eb8b6(0x239)](_0x1b1a9f[_0x2eb8b6(0x219)][_0x2eb8b6(0x239)]),_0x252ea1[_0x2eb8b6(0x238)]=qs['offset'](_0x1b1a9f[_0x2eb8b6(0x219)][_0x2eb8b6(0x238)]));_0x252ea1[_0x2eb8b6(0x244)]=qs['sort'](_0x1b1a9f[_0x2eb8b6(0x219)]['sort']),_0x252ea1[_0x2eb8b6(0x263)]=qs['filters'](_['pick'](_0x1b1a9f[_0x2eb8b6(0x219)],_0x388890[_0x2eb8b6(0x233)]),_0x22a69b);let _0x1045c8=[];const _0x44082e=squel['select']()[_0x2eb8b6(0x22e)]('id')['field']('name')['field']('color')[_0x2eb8b6(0x21d)](_0x2eb8b6(0x286)),_0x1e1eac=squel['select']()['field'](_0x2eb8b6(0x1cf))[_0x2eb8b6(0x22e)](_0x2eb8b6(0x252))[_0x2eb8b6(0x22e)](_0x2eb8b6(0x211))[_0x2eb8b6(0x21d)](_0x2eb8b6(0x1e2),'ui')[_0x2eb8b6(0x235)]('users','u',_0x2eb8b6(0x23f)),_0x343ebc=squel[_0x2eb8b6(0x1f7)]()[_0x2eb8b6(0x21d)](_0x2eb8b6(0x283),'i')[_0x2eb8b6(0x235)]('cm_contacts','c',_0x2eb8b6(0x215))[_0x2eb8b6(0x235)](_0x2eb8b6(0x205),'o',_0x2eb8b6(0x257))['left_join'](_0x2eb8b6(0x220),'a',_0x2eb8b6(0x1e7))[_0x2eb8b6(0x235)](_0x2eb8b6(0x274),'me',_0x2eb8b6(0x270))['left_join'](_0x2eb8b6(0x1fa),'it',_0x2eb8b6(0x242))[_0x2eb8b6(0x235)](_0x2eb8b6(0x286),'t',_0x2eb8b6(0x227)),_0x32647c=squel[_0x2eb8b6(0x1f8)]();let _0x3a8859=[];const _0x31e929=squel[_0x2eb8b6(0x1f8)]();let _0x46fc73;if(_0x1b1a9f[_0x2eb8b6(0x219)]['search']){_0x46fc73=as[_0x2eb8b6(0x1c7)](_0x1b1a9f[_0x2eb8b6(0x219)][_0x2eb8b6(0x230)]);const _0x484485=_0x46fc73[_0x2eb8b6(0x1d7)];for(let _0x151833=0x0;_0x151833<_0x46fc73[_0x2eb8b6(0x254)][_0x2eb8b6(0x24f)];_0x151833++){const _0x4eb389=_0x46fc73[_0x2eb8b6(0x254)][_0x151833],_0x37739a='i';let _0x4a36ea,_0xb9f02d=_[_0x2eb8b6(0x24a)](_0x22a69b,[_0x2eb8b6(0x231),_0x4eb389[_0x2eb8b6(0x22e)]]);if(!_0xb9f02d)switch(_0x4eb389[_0x2eb8b6(0x22e)]){case'unreadMessages':_0x4eb389[_0x2eb8b6(0x200)]==0x1?_0x343ebc['having']('`'+_0x4eb389['field']+_0x2eb8b6(0x1cd)):_0x343ebc[_0x2eb8b6(0x251)]('`'+_0x4eb389[_0x2eb8b6(0x22e)]+'`\x20>\x200');break;case _0x2eb8b6(0x1f3):if(_0x4eb389[_0x2eb8b6(0x1da)]==='$substring'){if(_0x4eb389[_0x2eb8b6(0x200)]['split']('\x20')[_0x2eb8b6(0x24f)]>0x1)_0x32647c[_0x484485](_0x2eb8b6(0x26a),qs[_0x2eb8b6(0x28b)](_0x4eb389[_0x2eb8b6(0x200)]),null);else{const _0x4886a8='%'+_0x4eb389['value']+'%';_0x32647c[_0x484485](_0x2eb8b6(0x290),_0x4886a8,_0x4886a8,_0x4886a8);}}else _0xb9f02d=_[_0x2eb8b6(0x24a)](_0x22a69b,[_0x2eb8b6(0x231),_0x2eb8b6(0x265)]),_0x4eb389[_0x2eb8b6(0x22e)]=_0x2eb8b6(0x265),_0x4a36ea=as['buildExpression'](_0x37739a,_0xb9f02d[_0x2eb8b6(0x284)],_0x4eb389),_0x32647c[_0x484485](_0x4a36ea[_0x2eb8b6(0x25d)],_0x4a36ea[_0x2eb8b6(0x200)][_0x2eb8b6(0x1bd)],_0x4a36ea[_0x2eb8b6(0x200)][_0x2eb8b6(0x22c)]);break;case _0x2eb8b6(0x247):{const _0x31c9c8=_0x4eb389[_0x2eb8b6(0x200)]['split'](',')[_0x2eb8b6(0x285)](function(_0x477baf){return Number(_0x477baf);});_0x31c9c8[_0x2eb8b6(0x280)](function(_0x1a5f77){const _0x4bf3bf=_0x2eb8b6;_0x31e929['or'](_0x4bf3bf(0x1de),'%,'+_0x1a5f77+',%');}),_0x3a8859=_['union'](_0x3a8859,_0x31c9c8);}break;case'User':_0x4eb389[_0x2eb8b6(0x1da)]===_0x2eb8b6(0x275)?_0x32647c[_0x484485]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0x4eb389[_0x2eb8b6(0x200)]+'%',null):(_0xb9f02d=_['find'](_0x22a69b,['name',_0x2eb8b6(0x261)]),_0x4eb389[_0x2eb8b6(0x22e)]=_0x2eb8b6(0x261),_0x4a36ea=as[_0x2eb8b6(0x1f6)](_0x37739a,_0xb9f02d['type'],_0x4eb389),_0x32647c[_0x484485](_0x4a36ea['text'],_0x4a36ea['value'][_0x2eb8b6(0x1bd)],_0x4a36ea[_0x2eb8b6(0x200)][_0x2eb8b6(0x22c)]));break;case _0x2eb8b6(0x24c):_0x4a36ea=as['buildExpression']('me',null,_0x4eb389),_0x32647c[_0x484485](_0x4a36ea['text'],_0x4a36ea[_0x2eb8b6(0x200)][_0x2eb8b6(0x1bd)],_0x4a36ea[_0x2eb8b6(0x200)][_0x2eb8b6(0x22c)]);break;}else _0x4a36ea=as[_0x2eb8b6(0x1f6)](_0x37739a,_0xb9f02d[_0x2eb8b6(0x284)],_0x4eb389),_0x32647c[_0x484485](_0x4a36ea['text'],_0x4a36ea[_0x2eb8b6(0x200)][_0x2eb8b6(0x1bd)],_0x4a36ea[_0x2eb8b6(0x200)]['end']);}}else{const _0x2380a6=_(_0x1b1a9f[_0x2eb8b6(0x219)])[_0x2eb8b6(0x236)]()[_0x2eb8b6(0x285)](function(_0x9bbf76){const _0x37e083=_0x2eb8b6;return _[_0x37e083(0x20e)](_0x22a69b,[_0x37e083(0x231),_0x9bbf76])?_0x9bbf76:undefined;})['compact']()['value']();!_['isEmpty'](_0x2380a6)&&_0x2380a6[_0x2eb8b6(0x280)](function(_0x3b667d){const _0xcee2b6=_0x2eb8b6;if(_0x3b667d===_0xcee2b6(0x208))_0x343ebc[_0xcee2b6(0x263)](_0xcee2b6(0x232),[]['concat'](_0x1b1a9f['query'][_0x3b667d]));else{if(_0x3b667d===_0xcee2b6(0x1e8)){const _0x57c99f=JSON['parse'](_0x1b1a9f[_0xcee2b6(0x219)][_0x3b667d])[_0xcee2b6(0x266)],_0x4abf94=JSON[_0xcee2b6(0x246)](_0x1b1a9f[_0xcee2b6(0x219)][_0x3b667d])['$lte'];_0x343ebc['where']('i.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0x57c99f,_0x4abf94);}else _0x1b1a9f['query'][_0x3b667d]==='null'?_0x343ebc[_0xcee2b6(0x263)]('i.'+_0x3b667d+_0xcee2b6(0x24b)):_0x343ebc[_0xcee2b6(0x263)]('i.'+_0x3b667d+'\x20=\x20?',_0x1b1a9f[_0xcee2b6(0x219)][_0x3b667d]);}});_0x1b1a9f['query']['read']&&(_0x1b1a9f['query']['read']==0x1?_0x343ebc['having'](_0x2eb8b6(0x25c)):_0x343ebc[_0x2eb8b6(0x251)](_0x2eb8b6(0x20b)));_0x1b1a9f[_0x2eb8b6(0x219)]['tag']&&(_0x3a8859=_['isArray'](_0x1b1a9f['query'][_0x2eb8b6(0x27e)])?_0x1b1a9f[_0x2eb8b6(0x219)]['tag']:new Array(_0x1b1a9f[_0x2eb8b6(0x219)]['tag']),_0x3a8859[_0x2eb8b6(0x280)](function(_0x3121b8){const _0x334d06=_0x2eb8b6;_0x31e929['or'](_0x334d06(0x1de),'%,'+_0x3121b8+',%');}));if(_0x1b1a9f['query'][_0x2eb8b6(0x1f0)]){const _0x2c09c6=_0x1b1a9f[_0x2eb8b6(0x219)][_0x2eb8b6(0x1f0)][_0x2eb8b6(0x278)]('\x5c','\x5c\x5c')[_0x2eb8b6(0x278)](/'/g,'\x27\x27');qs[_0x2eb8b6(0x28e)](_0x2c09c6)?_0x32647c['or'](_0x2eb8b6(0x277),_0x2c09c6+'%')['or'](_0x2eb8b6(0x282),_0x2c09c6+'%'):_0x32647c['or']('MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x2eb8b6(0x28b)](_0x2c09c6))['or'](_0x2eb8b6(0x25a),_0x2c09c6+'%');}}_0x343ebc['where'](_0x32647c),_0x343ebc[_0x2eb8b6(0x1d2)]('i.id');let _0x4f7fd8={'type':QueryTypes['SELECT'],'raw':!![]};const _0x179d17=_0x343ebc[_0x2eb8b6(0x1db)]();_0x179d17[_0x2eb8b6(0x22e)]('i.id'),_0x179d17[_0x2eb8b6(0x22e)]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x2eb8b6(0x1e5)),_0x252ea1[_0x2eb8b6(0x244)]&&_0x252ea1[_0x2eb8b6(0x244)]['forEach'](function(_0x18ee6c){const _0x22080e=_0x2eb8b6,_0x54287b=_0x18ee6c[0x0]===_0x22080e(0x1d0)?_0x18ee6c[0x0]:'i.'+_0x18ee6c[0x0];_0x343ebc[_0x22080e(0x244)](_0x54287b,_0x18ee6c[0x1]===_0x22080e(0x1ef)?![]:!![]);}),!_[_0x2eb8b6(0x23a)](_0x3a8859)&&(_0x343ebc[_0x2eb8b6(0x251)](_0x31e929),_0x179d17[_0x2eb8b6(0x263)](_0x2eb8b6(0x273),_0x3a8859)),Promise[_0x2eb8b6(0x276)]()[_0x2eb8b6(0x1be)](function(){const _0x585ca5=_0x2eb8b6;if(!_0x46fc73){if(_0x1b1a9f[_0x585ca5(0x219)]['SmsAccountId']||_0x1b1a9f[_0x585ca5(0x219)]['journey'])return;_0x179d17[_0x585ca5(0x263)](_0x585ca5(0x26e)),_0x343ebc[_0x585ca5(0x263)](_0x585ca5(0x26e));return;}return _0x1b1a9f[_0x585ca5(0x1e9)][_0x585ca5(0x279)]({'attributes':['id'],'raw':!![]})[_0x585ca5(0x1be)](function(_0x29620a){const _0x1c1c53=_0x585ca5;_[_0x1c1c53(0x23a)](_0x29620a)?(_0x179d17[_0x1c1c53(0x263)](_0x1c1c53(0x271)),_0x343ebc['where'](_0x1c1c53(0x271))):(_0x179d17['where']('i.SmsAccountId\x20IN\x20?',_['map'](_0x29620a,'id')),_0x343ebc[_0x1c1c53(0x263)](_0x1c1c53(0x232),_['map'](_0x29620a,'id')));});})[_0x2eb8b6(0x1be)](function(){const _0x38cec7=_0x2eb8b6;db['sequelize'][_0x38cec7(0x219)](_0x179d17['toString'](),_0x4f7fd8)[_0x38cec7(0x1be)](function(_0x3f72ff){const _0x315a2b=_0x38cec7;_0x5dd47e['count']=_0x3f72ff['length'];if(_0x5dd47e['count']===0x0)return[];return db[_0x315a2b(0x225)][_0x315a2b(0x219)](_0x44082e[_0x315a2b(0x210)](),_0x4f7fd8)[_0x315a2b(0x1be)](function(_0x4e8ac4){const _0x50908a=_0x315a2b;_0x1045c8=_['keyBy'](_0x4e8ac4,'id'),_0x4f7fd8=_['merge'](_0x4f7fd8,{'model':db[_0x50908a(0x258)],'mapToModel':!![],'raw':!![],'nest':!![]});_0x1b1a9f[_0x50908a(0x219)][_0x50908a(0x1e1)]?_0x252ea1[_0x50908a(0x26c)]['forEach'](function(_0x6ad3ed){const _0x120320=_0x50908a;_0x343ebc[_0x120320(0x22e)]('i.'+_0x6ad3ed);}):(_0x343ebc[_0x50908a(0x22e)]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x50908a(0x1e5)),_0x343ebc[_0x50908a(0x22e)](_0x50908a(0x1f9),'Account.key'),_0x343ebc[_0x50908a(0x22e)]('a.mandatoryDisposition','Account.mandatoryDisposition'),_0x343ebc[_0x50908a(0x22e)](_0x50908a(0x1fb),'contactName'),_0x343ebc[_0x50908a(0x22e)](_0x50908a(0x1c1)),_0x343ebc[_0x50908a(0x22e)](_0x50908a(0x21a),_0x50908a(0x281)),_0x343ebc[_0x50908a(0x22e)](_0x50908a(0x268),_0x50908a(0x272)),_0x343ebc[_0x50908a(0x22e)](_0x50908a(0x217),_0x50908a(0x253)),_0x343ebc[_0x50908a(0x22e)]('c.phone',_0x50908a(0x243)),_0x343ebc[_0x50908a(0x22e)](_0x50908a(0x221),'Contact.mobile'),_0x343ebc[_0x50908a(0x22e)](_0x50908a(0x1e3),_0x50908a(0x1cc)),_0x343ebc[_0x50908a(0x22e)](_0x50908a(0x201),_0x50908a(0x25e)),_0x343ebc[_0x50908a(0x22e)](_0x50908a(0x214),_0x50908a(0x204)),_0x343ebc[_0x50908a(0x22e)](_0x50908a(0x28a),_0x50908a(0x24d)));if(_0x252ea1[_0x50908a(0x239)])_0x343ebc['limit'](_0x252ea1[_0x50908a(0x239)]);if(_0x252ea1['offset'])_0x343ebc[_0x50908a(0x238)](_0x252ea1[_0x50908a(0x238)]);return db['sequelize'][_0x50908a(0x219)](_0x343ebc['toString'](),_0x4f7fd8);})[_0x315a2b(0x1be)](function(_0x13a0aa){const _0x2cf72e=_0x315a2b;return _0x1e1eac['where'](_0x2cf72e(0x27d),_[_0x2cf72e(0x285)](_0x13a0aa,'id')),db[_0x2cf72e(0x225)]['query'](_0x1e1eac[_0x2cf72e(0x210)](),_0x4f7fd8)[_0x2cf72e(0x1be)](function(_0x4e9d30){const _0x222387=_0x2cf72e,_0x1982b2=_[_0x222387(0x1d5)](_0x4e9d30,_0x222387(0x26d)),_0x27e1c7=[];return _0x13a0aa['forEach'](function(_0x40a050){const _0x424bb5=_0x222387;_0x27e1c7[_0x424bb5(0x28f)](updateSmsInteraction(_0x40a050,_0x1045c8,_0x1982b2));}),Promise[_0x222387(0x28c)](_0x27e1c7);});});})['then'](function(_0x481601){const _0x8b4a4c=_0x38cec7;return _0x5dd47e[_0x8b4a4c(0x1e0)]=_0x481601,_0x5dd47e;})[_0x38cec7(0x1be)](respondWithFilteredResult(_0x1fa39b,_0x252ea1));})[_0x2eb8b6(0x1cb)](handleError(_0x1fa39b,null));},exports[a663_0x2166b2(0x26b)]=function(_0x36cfca,_0x45775b){const _0x9ea19a=a663_0x2166b2;let _0x1ac4de={'raw':![],'where':{'id':_0x36cfca[_0x9ea19a(0x206)]['id']}};const _0x5e2005={};return _0x5e2005[_0x9ea19a(0x23d)]=_['keys'](db[_0x9ea19a(0x258)][_0x9ea19a(0x226)]),_0x5e2005['query']=_[_0x9ea19a(0x236)](_0x36cfca[_0x9ea19a(0x219)]),_0x5e2005[_0x9ea19a(0x233)]=_[_0x9ea19a(0x262)](_0x5e2005[_0x9ea19a(0x23d)],_0x5e2005[_0x9ea19a(0x219)]),_0x1ac4de[_0x9ea19a(0x26c)]=_[_0x9ea19a(0x262)](_0x5e2005[_0x9ea19a(0x23d)],qs[_0x9ea19a(0x1e1)](_0x36cfca['query'][_0x9ea19a(0x1e1)])),_0x1ac4de[_0x9ea19a(0x26c)]=_0x1ac4de[_0x9ea19a(0x26c)][_0x9ea19a(0x24f)]?_0x1ac4de[_0x9ea19a(0x26c)]:_0x5e2005[_0x9ea19a(0x23d)],_0x36cfca['query']['includeAll']&&(_0x1ac4de[_0x9ea19a(0x20f)]=[{'all':!![]}]),_0x1ac4de=_[_0x9ea19a(0x22f)]({},_0x1ac4de,_0x36cfca['options']),db['SmsInteraction'][_0x9ea19a(0x289)](_0x1ac4de)[_0x9ea19a(0x1be)](handleEntityNotFound(_0x45775b,null))[_0x9ea19a(0x1be)](respondWithResult(_0x45775b,null))[_0x9ea19a(0x1cb)](handleError(_0x45775b,null));},exports[a663_0x2166b2(0x1ee)]=function(_0x5ba0c4,_0x12d101){const _0x657d41=a663_0x2166b2;return db['SmsInteraction'][_0x657d41(0x1ee)](_0x5ba0c4[_0x657d41(0x24c)],{})[_0x657d41(0x1be)](respondWithResult(_0x12d101,0xc9))[_0x657d41(0x1cb)](handleError(_0x12d101,null));},exports[a663_0x2166b2(0x1ec)]=function(_0x2cd1d9,_0x3486db){const _0x266d63=a663_0x2166b2;return _0x2cd1d9[_0x266d63(0x24c)]['id']&&delete _0x2cd1d9[_0x266d63(0x24c)]['id'],db[_0x266d63(0x258)]['findOne']({'where':{'id':_0x2cd1d9[_0x266d63(0x206)]['id']}})['then'](handleEntityNotFound(_0x3486db,null))['then'](saveUpdates(_0x2cd1d9[_0x266d63(0x24c)],null))[_0x266d63(0x1be)](respondWithResult(_0x3486db,null))[_0x266d63(0x1cb)](handleError(_0x3486db,null));},exports[a663_0x2166b2(0x1d9)]=function(_0x164be9,_0x472e0d){const _0x59eee1=a663_0x2166b2;return db[_0x59eee1(0x258)]['findOne']({'where':{'id':_0x164be9[_0x59eee1(0x206)]['id']}})[_0x59eee1(0x1be)](handleEntityNotFound(_0x472e0d,null))[_0x59eee1(0x1be)](removeEntity(_0x472e0d,null))[_0x59eee1(0x1cb)](handleError(_0x472e0d,null));},exports['describe']=function(_0x4925e3,_0x5dd34a){const _0x1e1c96=a663_0x2166b2;return db[_0x1e1c96(0x258)]['describe']()['then'](respondWithResult(_0x5dd34a,null))[_0x1e1c96(0x1cb)](handleError(_0x5dd34a,null));},exports[a663_0x2166b2(0x23e)]=function(_0x21af4b,_0x1d1c48){const _0x5a0c59=a663_0x2166b2;return db[_0x5a0c59(0x21b)][_0x5a0c59(0x289)]({'where':{'id':_0x21af4b['params']['id']}})[_0x5a0c59(0x1be)](function(_0x252e10){const _0x76060e=_0x5a0c59;if(_0x252e10)return _0x252e10[_0x76060e(0x23e)](_0x21af4b['body'][_0x76060e(0x1ed)],{'through':_[_0x76060e(0x1f5)](_0x21af4b['body'],[_0x76060e(0x1ed),'id'])});})[_0x5a0c59(0x1be)](respondWithResult(_0x1d1c48,null))[_0x5a0c59(0x1cb)](handleError(_0x1d1c48,null));},exports[a663_0x2166b2(0x21e)]=function(_0x441fa1,_0x4a642e){const _0x4f0c41=a663_0x2166b2;let _0x394f31={'raw':![],'where':{}};const _0x5149c8={},_0x2cd204={'count':0x0,'rows':[]};return db[_0x4f0c41(0x258)][_0x4f0c41(0x289)]({'where':{'id':_0x441fa1[_0x4f0c41(0x206)]['id']}})[_0x4f0c41(0x1be)](handleEntityNotFound(_0x4a642e,null))[_0x4f0c41(0x1be)](function(_0x471f3b){const _0x356ce8=_0x4f0c41;if(_0x471f3b){_0x5149c8[_0x356ce8(0x23d)]=_['keys'](db[_0x356ce8(0x21b)][_0x356ce8(0x226)]),_0x5149c8[_0x356ce8(0x219)]=_[_0x356ce8(0x236)](_0x441fa1[_0x356ce8(0x219)]),_0x5149c8[_0x356ce8(0x233)]=_['intersection'](_0x5149c8[_0x356ce8(0x23d)],_0x5149c8[_0x356ce8(0x219)]),_0x394f31['attributes']=_[_0x356ce8(0x262)](_0x5149c8[_0x356ce8(0x23d)],qs[_0x356ce8(0x1e1)](_0x441fa1['query'][_0x356ce8(0x1e1)])),_0x394f31['attributes']=_0x394f31[_0x356ce8(0x26c)][_0x356ce8(0x24f)]?_0x394f31[_0x356ce8(0x26c)]:_0x5149c8[_0x356ce8(0x23d)];typeof _0x441fa1[_0x356ce8(0x219)][_0x356ce8(0x255)]===_0x356ce8(0x1c8)&&(_0x394f31[_0x356ce8(0x239)]=qs[_0x356ce8(0x239)](_0x441fa1[_0x356ce8(0x219)][_0x356ce8(0x239)]),_0x394f31[_0x356ce8(0x238)]=qs[_0x356ce8(0x238)](_0x441fa1[_0x356ce8(0x219)][_0x356ce8(0x238)]));_0x394f31[_0x356ce8(0x244)]=qs[_0x356ce8(0x1d8)](_0x441fa1[_0x356ce8(0x219)]['sort']),_0x394f31[_0x356ce8(0x263)]=qs['filters'](_[_0x356ce8(0x1c5)](_0x441fa1[_0x356ce8(0x219)],_0x5149c8['filters'])),_0x394f31[_0x356ce8(0x263)][_0x356ce8(0x26d)]=_0x471f3b['id'];_0x441fa1['query']['filter']&&(_0x394f31[_0x356ce8(0x263)]=_['merge'](_0x394f31['where'],{[Op['or']]:_[_0x356ce8(0x285)](_0x394f31[_0x356ce8(0x26c)],function(_0x1b27f0){const _0xffdf2=_0x356ce8,_0x5a4ccd={};return _0x5a4ccd[_0x1b27f0]={[Op['like']]:'%'+_0x441fa1[_0xffdf2(0x219)]['filter']+'%'},_0x5a4ccd;})}));if(_0x441fa1[_0x356ce8(0x219)][_0x356ce8(0x266)]){const _0x131f57=_0x441fa1[_0x356ce8(0x219)][_0x356ce8(0x266)]['split'](','),_0x268dc7={};_0x268dc7[_0x131f57[0x0]]={[Op['gte']]:moment(_0x131f57[0x1])[_0x356ce8(0x24e)](_0x356ce8(0x241))},_0x394f31[_0x356ce8(0x263)]=_[_0x356ce8(0x22f)](_0x394f31[_0x356ce8(0x263)],_0x268dc7);}return _0x394f31=_['merge']({},_0x394f31,_0x441fa1[_0x356ce8(0x267)]),db[_0x356ce8(0x21b)][_0x356ce8(0x1fe)]({'where':_0x394f31[_0x356ce8(0x263)]})[_0x356ce8(0x1be)](function(_0x3d6430){const _0x585f94=_0x356ce8;return _0x2cd204['count']=_0x3d6430,_0x441fa1[_0x585f94(0x219)][_0x585f94(0x248)]&&(_0x394f31[_0x585f94(0x20f)]=[{'all':!![]}]),db[_0x585f94(0x21b)][_0x585f94(0x1fc)](_0x394f31);})[_0x356ce8(0x1be)](function(_0x2925a9){const _0x38c8f5=_0x356ce8;return _0x2cd204[_0x38c8f5(0x1e0)]=_0x2925a9,_0x2cd204;});}})[_0x4f0c41(0x1be)](respondWithFilteredResult(_0x4a642e,_0x394f31))[_0x4f0c41(0x1cb)](handleError(_0x4a642e,null));},exports[a663_0x2166b2(0x1d1)]=function(_0x20900e,_0x27abb1){const _0x3e94d5=a663_0x2166b2;return db[_0x3e94d5(0x258)][_0x3e94d5(0x289)]({'where':{'id':_0x20900e[_0x3e94d5(0x206)]['id']}})[_0x3e94d5(0x1be)](function(_0x1de9cc){const _0x171511=_0x3e94d5;if(_0x1de9cc)return _0x1de9cc[_0x171511(0x1ff)](_0x20900e[_0x171511(0x24c)][_0x171511(0x1ed)],{'through':_[_0x171511(0x1f5)](_0x20900e['body'],['ids','id'])})[_0x171511(0x1be)](function(){const _0x2ec28b=_0x171511;return db[_0x2ec28b(0x247)]['findAll']({'attributes':['id',_0x2ec28b(0x231),_0x2ec28b(0x1c6)],'where':{'id':_0x20900e[_0x2ec28b(0x24c)][_0x2ec28b(0x1ed)]}});})[_0x171511(0x1be)](function(_0x219ac0){const _0x45aa6c=_0x171511;return socket[_0x45aa6c(0x22d)](_0x45aa6c(0x27f),{'id':Number(_0x20900e[_0x45aa6c(0x206)]['id']),'tags':_0x219ac0||[]}),{'id':Number(_0x20900e[_0x45aa6c(0x206)]['id']),'tags':_0x219ac0||[]};});})['then'](respondWithResult(_0x27abb1,null))[_0x3e94d5(0x1cb)](handleError(_0x27abb1,null));},exports[a663_0x2166b2(0x1eb)]=function(_0x7b38b1,_0x5eed0c){const _0x58b5f8=a663_0x2166b2;return db[_0x58b5f8(0x258)]['findOne']({'where':{'id':_0x7b38b1['params']['id']}})[_0x58b5f8(0x1be)](handleEntityNotFound(_0x5eed0c,null))['then'](function(_0x1545ff){const _0x411d48=_0x58b5f8;if(_0x1545ff)return _0x1545ff[_0x411d48(0x1eb)](_0x7b38b1[_0x411d48(0x219)][_0x411d48(0x1ed)]);})[_0x58b5f8(0x1be)](respondWithStatusCode(_0x5eed0c,null))['catch'](handleError(_0x5eed0c,null));},exports[a663_0x2166b2(0x264)]=function(_0x5d04a6,_0xff7b33){const _0x5b2514=a663_0x2166b2,_0x98ec2d=moment()[_0x5b2514(0x218)]()[_0x5b2514(0x210)](),_0x2f290e=path[_0x5b2514(0x224)](config[_0x5b2514(0x291)],_0x5b2514(0x1e6),_0x5b2514(0x1c0)),_0x297b64=path[_0x5b2514(0x224)](_0x2f290e,_0x98ec2d),_0x1b8ae0=util[_0x5b2514(0x24e)](_0x5b2514(0x207),_0x5d04a6[_0x5b2514(0x206)]['id'],_0x98ec2d),_0x3ddcb9=path['join'](_0x2f290e,_0x1b8ae0),_0x55e592=[];_0x55e592[_0x5b2514(0x28f)]({'model':db[_0x5b2514(0x269)],'as':_0x5b2514(0x269),'attributes':['id',_0x5b2514(0x202)],'raw':!![]}),_0x55e592['push']({'model':db['CmContact'],'as':'Contact','attributes':['id','firstName',_0x5b2514(0x27a)],'raw':!![]});const _0xd6c32a=[{'model':db['SmsMessage'],'as':_0x5b2514(0x234),'attributes':['id',_0x5b2514(0x24c),_0x5b2514(0x1e8),_0x5b2514(0x1f1),_0x5b2514(0x22b),_0x5b2514(0x23b)],'include':_0x55e592}];return _0xd6c32a[_0x5b2514(0x28f)]({'model':db['SmsAccount'],'as':'Account','attributes':['id',_0x5b2514(0x231)]}),_0xd6c32a[_0x5b2514(0x28f)]({'model':db['User'],'as':_0x5b2514(0x1dc),'attributes':['id','fullname']}),db[_0x5b2514(0x258)][_0x5b2514(0x289)]({'where':{'id':_0x5d04a6['params']['id']},'include':_0xd6c32a})[_0x5b2514(0x1be)](handleEntityNotFound(_0xff7b33,null))[_0x5b2514(0x1be)](function(_0x42c264){const _0x4d5404=_0x5b2514;if(_0x42c264){const _0x397c9d=_0x42c264[_0x4d5404(0x212)]({'plain':!![]});fs[_0x4d5404(0x213)](_0x297b64);const _0x337cb9={'format':'A4','border':_0x4d5404(0x229),'header':{'height':_0x4d5404(0x1ce),'contents':{'first':_0x4d5404(0x1f4)}},'footer':{'height':_0x4d5404(0x23c),'contents':{'default':util['format'](_0x4d5404(0x21c),util[_0x4d5404(0x24e)]('%s\x20#%d',_0x4d5404(0x25f),_0x397c9d['id']),moment()[_0x4d5404(0x24e)](_0x4d5404(0x1d6))['toString']())}}},_0x118364={'channel':_0x4d5404(0x25f),'account':_0x397c9d[_0x4d5404(0x250)][_0x4d5404(0x231)],'agent':_0x397c9d[_0x4d5404(0x1dc)]?_0x397c9d['Owner'][_0x4d5404(0x202)]:_0x4d5404(0x222),'createdAt':moment(_0x397c9d[_0x4d5404(0x1e8)])[_0x4d5404(0x24e)](_0x4d5404(0x241))[_0x4d5404(0x210)](),'closedAt':_0x397c9d[_0x4d5404(0x1e4)]?moment(_0x397c9d[_0x4d5404(0x20c)])[_0x4d5404(0x24e)]('YYYY-MM-DD\x20HH:mm:ss')['toString']():'','disposition':_0x397c9d[_0x4d5404(0x20d)],'messages':_(_0x397c9d[_0x4d5404(0x234)])[_0x4d5404(0x1f0)]({'secret':![]})['map'](function(_0x7d0427){const _0x49129b=_0x4d5404;return{'date':moment(_0x7d0427[_0x49129b(0x1e8)])[_0x49129b(0x24e)](_0x49129b(0x241))[_0x49129b(0x210)](),'sender':_0x7d0427[_0x49129b(0x1f1)]===_0x49129b(0x27b)?_0x7d0427[_0x49129b(0x269)]?_0x7d0427[_0x49129b(0x269)][_0x49129b(0x202)]:_0x49129b(0x260):_0x7d0427[_0x49129b(0x1f3)]['firstName']+(_0x7d0427['Contact'][_0x49129b(0x27a)]?'\x20'+_0x7d0427[_0x49129b(0x1f3)]['lastName']:''),'body':_0x7d0427['body'],'direction':_0x7d0427[_0x49129b(0x1f1)]===_0x49129b(0x27b)?'A':'C','secret':_0x7d0427[_0x49129b(0x22b)],'read':_0x7d0427[_0x49129b(0x23b)]};})[_0x4d5404(0x200)]()};return ejs[_0x4d5404(0x1c9)](path[_0x4d5404(0x224)](config[_0x4d5404(0x291)],_0x4d5404(0x249),_0x4d5404(0x245),_0x4d5404(0x256)),{'interaction':_0x118364})[_0x4d5404(0x1be)](function(_0x4da912){return new Promise(function(_0x107e9e,_0x5470b8){const _0x179dfb=a663_0x4e0c;pdf[_0x179dfb(0x1ee)](_0x4da912,_0x337cb9)[_0x179dfb(0x1fd)](path[_0x179dfb(0x224)](_0x297b64,_0x179dfb(0x209)+_0x397c9d['id']+'-'+_0x98ec2d+_0x179dfb(0x20a)),function(_0x361e46,_0x2e558b){if(_0x361e46)return _0x5470b8(_0x361e46);_0x107e9e(_0x2e558b);});});})['then'](function(){const _0x4ee4ce=_0x4d5404;return new Promise(function(_0x203188,_0x428342){zipdir(_0x297b64,{'saveTo':_0x3ddcb9},function(_0x30b599,_0xcfc28c){if(_0x30b599)return _0x428342(_0x30b599);return _0x203188(_0xcfc28c);});})['then'](function(){return new Promise(function(_0x28579e,_0x430c87){rimraf(_0x297b64,function(_0x3cd7f0){if(_0x3cd7f0)_0x430c87(_0x3cd7f0);return _0x28579e();});});})[_0x4ee4ce(0x1be)](function(){const _0x3cd982=_0x4ee4ce;return _0xff7b33[_0x3cd982(0x264)](_0x3ddcb9,_0x1b8ae0,function(_0x53a80b){const _0x5a7802=_0x3cd982;_0x53a80b?console[_0x5a7802(0x237)](_0x5a7802(0x259),_0x53a80b):fs[_0x5a7802(0x1c4)](_0x3ddcb9);});});});}else return _0xff7b33[_0x4d5404(0x1f2)](0xc8);})[_0x5b2514(0x1cb)](handleError(_0xff7b33,null));}; \ No newline at end of file +const a663_0xe63a=['UserId','Owner.internal','start','find','c.fax','Contact.phone','destroy','../../config/environment','toString','expr','YYYY-MM-DD\x20HH:mm:ss','attributes','i.id\x20LIKE\x20?','u.id\x20=\x20ui.UserId','having','keyBy','`\x20=\x200','unreadMessages','ui.SmsInteractionId\x20IN\x20?','getFullTextValue','\x20IS\x20NULL','out','squel','Account.mandatoryDisposition','read','conditions','YYYY-MM-DD','i.SmsAccountId\x20IN\x20?','$gte','transcript-%d-%s.zip','o.fullname','util','30px','closedAt','emit','t.id\x20=\x20it.TagId','order','u.fullname','create','\x20=\x20?','status','format','stack','./smsInteraction.socket','filter','direction','split','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','journey','../../components/parsers/qs','then','c.mobile','Contact.lastName','merge','sequelize','users','parse','o.internal','null','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','join','a.key','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','unlinkSync','isEmpty','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\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','where','rows','SmsAccount','isNumeric','api','GROUP_CONCAT(DISTINCT\x20t.id)','c.email','map','addMessage','\x0a\x20\x20\x20\x20\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','length','undefined','SmsInteraction','Tags','../../config/logger','Messages','firstName','catch','unix','push','downloadInteraction.html','end','mkdirSync','Users','params','contactName','SmsInteractionId','keys','DESC','group','Contact.fax','i.SmsAccountId\x20IS\x20NOT\x20NULL','sms_interaction_has_tags','some','include','forEach','transcript-','compact','limit','root','fullname','download','field','sms_interactions','color','i.SmsAccountId\x20IS\x20NULL','from','i.*','buildExpression','name','sendStatus','i.id','lastName','findAll','disposition','html-pdf','search','ContactId','it.SmsInteractionId\x20=\x20i.id','removeTags','log','groupBy','lodash','o.id\x20=\x20i.UserId','Owner','parseSearch','includeAll','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','pick','zip-dir','ids','operator','query','get','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','nolimit','i.phone\x20LIKE\x20?','t.id\x20IN\x20?','CmContact','a.id\x20=\x20i.SmsAccountId','secret','describe','Owner.fullname','user_has_sms_interactions','closed','c.firstName','show','rimraf','fields','tag','sort','Contact','../../mysqldb','clone','SmsAccountId','getMessages','ui.SmsInteractionId','set','key','createdAt','sms_accounts','smsInteractionTags:save','model','Contact.email','Tag','sms_messages','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','index','tools_tags','left_join','findOne','options','filters','System','Sms','../../components/parsers/advancedSearch','$substring','Contact.mobile','Account','setTags','offset','update','.pdf','SmsMessage','count','value','`\x20>\x200','SELECT','rawAttributes','CASE\x20WHEN\x20(c.firstName\x20IS\x20NOT\x20NULL\x20AND\x20c.firstName\x20<>\x20\x27\x27)\x20OR\x20(c.lastName\x20IS\x20NOT\x20NULL\x20AND\x20c.lastName\x20<>\x20\x27\x27)\x20THEN\x20CONCAT(IFNULL(c.firstName,\x20\x27\x27),\x20\x27\x20\x27,\x20IFNULL(c.lastName,\x20\x27\x27))\x20ELSE\x20\x27Unknown\x27\x20END','tmp','text','../../rediscache','User','union','body','u.id','renderFile','40px','resolve','views','select','intersection','type','TagIds','server'];(function(_0x145106,_0x230337){const _0xe63ace=function(_0x324db7){while(--_0x324db7){_0x145106['push'](_0x145106['shift']());}};_0xe63ace(++_0x230337);}(a663_0xe63a,0x122));const a663_0x324d=function(_0x145106,_0x230337){_0x145106=_0x145106-0x139;let _0xe63ace=a663_0xe63a[_0x145106];return _0xe63ace;};const a663_0x1abaf2=a663_0x324d;'use strict';const pdf=require(a663_0x1abaf2(0x164)),rimraf=require(a663_0x1abaf2(0x184)),zipdir=require(a663_0x1abaf2(0x172)),moment=require('moment'),util=require(a663_0x1abaf2(0x1de)),path=require('path'),ejs=require('ejs'),fs=require('fs'),_=require(a663_0x1abaf2(0x16b)),squel=require(a663_0x1abaf2(0x1d5)),{getSocket}=require(a663_0x1abaf2(0x1b1)),socket=getSocket(),qs=require(a663_0x1abaf2(0x1f0)),as=require(a663_0x1abaf2(0x1a0)),logger=require(a663_0x1abaf2(0x13b))(a663_0x1abaf2(0x205)),config=require(a663_0x1abaf2(0x1c6)),{db}=require(a663_0x1abaf2(0x189)),{Op,QueryTypes}=require(a663_0x1abaf2(0x1f5));require(a663_0x1abaf2(0x1ea))['register'](socket);function respondWithStatusCode(_0x3136a6,_0x5d08cf){return _0x5d08cf=_0x5d08cf||0xcc,function(_0x7466a3){const _0x1d6ffc=a663_0x324d;if(_0x7466a3)return _0x3136a6[_0x1d6ffc(0x15f)](_0x5d08cf);return _0x3136a6[_0x1d6ffc(0x1e7)](_0x5d08cf)[_0x1d6ffc(0x142)]();};}function respondWithResult(_0x1e28fe,_0xf70a8d){return _0xf70a8d=_0xf70a8d||0xc8,function(_0x2e7ba6){const _0x477c64=a663_0x324d;if(_0x2e7ba6)return _0x1e28fe[_0x477c64(0x1e7)](_0xf70a8d)['json'](_0x2e7ba6);};}function respondWithFilteredResult(_0x2fdde7,_0x12af57){return function(_0x3e1a4f){const _0x3add68=a663_0x324d;if(_0x3e1a4f){const _0x18a042=_0x3e1a4f[_0x3add68(0x1a9)],_0x5ad27e=_0x12af57[_0x3add68(0x1a5)];let _0x2fd226=_0x12af57[_0x3add68(0x1a5)]+_0x12af57[_0x3add68(0x153)],_0x51f3f1;return _0x2fd226>=_0x18a042?(_0x2fd226=_0x18a042,_0x51f3f1=0xc8):_0x51f3f1=0xce,_0x2fdde7[_0x3add68(0x1e7)](_0x51f3f1),_0x2fdde7[_0x3add68(0x18e)]('Content-Range',_0x5ad27e+'-'+_0x2fd226+'/'+_0x18a042)['json'](_0x3e1a4f);}return null;};}function saveUpdates(_0x2184c9){return function(_0x9ef96f){const _0x225b8b=a663_0x324d;if(_0x9ef96f)return _0x9ef96f['update'](_0x2184c9)[_0x225b8b(0x1f1)](function(_0x537d03){return _0x537d03;});return null;};}function removeEntity(_0x386087){return function(_0x164903){const _0x55f465=a663_0x324d;if(_0x164903)return _0x164903[_0x55f465(0x1c5)]()[_0x55f465(0x1f1)](function(){_0x386087['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x3a5c60){return function(_0x557039){const _0x223fa1=a663_0x324d;return!_0x557039&&_0x3a5c60[_0x223fa1(0x15f)](0x194),_0x557039;};}function handleError(_0x2d8851,_0x632371){return _0x632371=_0x632371||0x1f4,function(_0x54a2b2){const _0x383bc3=a663_0x324d;logger['error'](_0x54a2b2[_0x383bc3(0x1e9)]),_0x54a2b2[_0x383bc3(0x15e)]&&delete _0x54a2b2[_0x383bc3(0x15e)],_0x2d8851['status'](_0x632371)['send'](_0x54a2b2);};}function getInteractionUsers(_0x3798eb,_0x342e48){return new Promise(function(_0x5091ce,_0x408a55){const _0x5a811a=a663_0x324d;try{_0x342e48[_0x3798eb['id']]&&(_0x3798eb[_0x5a811a(0x144)]=_[_0x5a811a(0x208)](_0x342e48[_0x3798eb['id']],function(_0x8147ae){const _0x108606=_0x5a811a;return{'id':_0x8147ae['id'],'fullname':_0x8147ae[_0x108606(0x155)]};}));}catch(_0x10e69a){_0x408a55(_0x10e69a);}_0x5091ce(_0x3798eb);});}function getInteractionTags(_0x2e7406,_0x310525){return new Promise(function(_0x569d99,_0x3fb781){const _0x1446b1=a663_0x324d;try{_0x2e7406[_0x1446b1(0x1bd)]&&(_0x2e7406[_0x1446b1(0x13a)]=[],_0x2e7406[_0x1446b1(0x1bd)][_0x1446b1(0x1ed)](',')[_0x1446b1(0x150)](function(_0x5b2631){const _0x112577=_0x1446b1;_0x2e7406[_0x112577(0x13a)][_0x112577(0x140)](_0x310525[_0x5b2631]);})),delete _0x2e7406[_0x1446b1(0x1bd)];}catch(_0x1782e9){_0x3fb781(_0x1782e9);}_0x569d99(_0x2e7406);});}function updateSmsInteraction(_0x28bb36,_0x458f56,_0x18ed5d){return new Promise(function(_0x9e9b5e,_0x419d3d){const _0x4e730d=a663_0x324d;return getInteractionUsers(_0x28bb36,_0x18ed5d)[_0x4e730d(0x1f1)](function(_0x4f1a00){return getInteractionTags(_0x4f1a00,_0x458f56);})['then'](function(_0x4c83ba){_0x9e9b5e(_0x4c83ba);})[_0x4e730d(0x13e)](function(_0x363c60){_0x419d3d(_0x363c60);});});}exports[a663_0x1abaf2(0x198)]=function(_0x219a07,_0x21c2a1){const _0x1098a3=a663_0x1abaf2,_0x2c12e2={},_0x539ed0={},_0x1fa563={'count':0x0,'rows':[]},_0xd2b95e=_[_0x1098a3(0x208)](db[_0x1098a3(0x139)][_0x1098a3(0x1ad)],function(_0x47fc4b){const _0x165ac5=_0x1098a3;return{'name':_0x47fc4b['fieldName'],'type':_0x47fc4b['type'][_0x165ac5(0x18f)]};});_0x539ed0['model']=_[_0x1098a3(0x208)](_0xd2b95e,_0x1098a3(0x15e)),_0x539ed0[_0x1098a3(0x175)]=_[_0x1098a3(0x148)](_0x219a07[_0x1098a3(0x175)]),_0x539ed0[_0x1098a3(0x19d)]=_[_0x1098a3(0x1bb)](_0x539ed0[_0x1098a3(0x193)],_0x539ed0['query']),_0x2c12e2['attributes']=_[_0x1098a3(0x1bb)](_0x539ed0[_0x1098a3(0x193)],qs[_0x1098a3(0x185)](_0x219a07[_0x1098a3(0x175)][_0x1098a3(0x185)])),_0x2c12e2[_0x1098a3(0x1ca)]=_0x2c12e2[_0x1098a3(0x1ca)]['length']?_0x2c12e2[_0x1098a3(0x1ca)]:_0x539ed0[_0x1098a3(0x193)];typeof _0x219a07['query'][_0x1098a3(0x178)]===_0x1098a3(0x20c)&&(_0x2c12e2['limit']=qs['limit'](_0x219a07[_0x1098a3(0x175)][_0x1098a3(0x153)]),_0x2c12e2[_0x1098a3(0x1a5)]=qs[_0x1098a3(0x1a5)](_0x219a07[_0x1098a3(0x175)]['offset']));_0x2c12e2['order']=qs[_0x1098a3(0x187)](_0x219a07[_0x1098a3(0x175)][_0x1098a3(0x187)]),_0x2c12e2[_0x1098a3(0x201)]=qs[_0x1098a3(0x19d)](_[_0x1098a3(0x171)](_0x219a07[_0x1098a3(0x175)],_0x539ed0[_0x1098a3(0x19d)]),_0xd2b95e);let _0x378fe7=[];const _0x57198f=squel[_0x1098a3(0x1ba)]()[_0x1098a3(0x157)]('id')[_0x1098a3(0x157)](_0x1098a3(0x15e))['field']('color')[_0x1098a3(0x15b)](_0x1098a3(0x199)),_0x19ba4f=squel[_0x1098a3(0x1ba)]()['field'](_0x1098a3(0x1b5))[_0x1098a3(0x157)](_0x1098a3(0x1e4))[_0x1098a3(0x157)](_0x1098a3(0x18d))[_0x1098a3(0x15b)](_0x1098a3(0x180),'ui')[_0x1098a3(0x19a)](_0x1098a3(0x1f6),'u',_0x1098a3(0x1cc)),_0x3b6936=squel['select']()[_0x1098a3(0x15b)](_0x1098a3(0x158),'i')[_0x1098a3(0x19a)]('cm_contacts','c',_0x1098a3(0x170))[_0x1098a3(0x19a)](_0x1098a3(0x1f6),'o',_0x1098a3(0x16c))[_0x1098a3(0x19a)](_0x1098a3(0x191),'a',_0x1098a3(0x17c))[_0x1098a3(0x19a)](_0x1098a3(0x196),'me','me.SmsInteractionId\x20=\x20i.id')[_0x1098a3(0x19a)](_0x1098a3(0x14d),'it',_0x1098a3(0x167))[_0x1098a3(0x19a)](_0x1098a3(0x199),'t',_0x1098a3(0x1e2)),_0x17bda8=squel['expr']();let _0x48337b=[];const _0x5946ba=squel[_0x1098a3(0x1c8)]();let _0x5010e4;if(_0x219a07[_0x1098a3(0x175)][_0x1098a3(0x165)]){_0x5010e4=as[_0x1098a3(0x16e)](_0x219a07[_0x1098a3(0x175)][_0x1098a3(0x165)]);const _0x9d8a52=_0x5010e4['sqlOperator'];for(let _0x191c5b=0x0;_0x191c5b<_0x5010e4[_0x1098a3(0x1d8)][_0x1098a3(0x20b)];_0x191c5b++){const _0xeda4c7=_0x5010e4[_0x1098a3(0x1d8)][_0x191c5b],_0x3afaf5='i';let _0x34126d,_0x2fa96d=_[_0x1098a3(0x1c2)](_0xd2b95e,[_0x1098a3(0x15e),_0xeda4c7['field']]);if(!_0x2fa96d)switch(_0xeda4c7[_0x1098a3(0x157)]){case _0x1098a3(0x1d0):_0xeda4c7['value']==0x1?_0x3b6936[_0x1098a3(0x1cd)]('`'+_0xeda4c7[_0x1098a3(0x157)]+_0x1098a3(0x1cf)):_0x3b6936[_0x1098a3(0x1cd)]('`'+_0xeda4c7[_0x1098a3(0x157)]+_0x1098a3(0x1ab));break;case _0x1098a3(0x188):if(_0xeda4c7[_0x1098a3(0x174)]===_0x1098a3(0x1a1)){if(_0xeda4c7[_0x1098a3(0x1aa)][_0x1098a3(0x1ed)]('\x20')[_0x1098a3(0x20b)]>0x1)_0x17bda8[_0x9d8a52](_0x1098a3(0x1fd),qs[_0x1098a3(0x1d2)](_0xeda4c7['value']),null);else{const _0xa46a1f='%'+_0xeda4c7['value']+'%';_0x17bda8[_0x9d8a52](_0x1098a3(0x1ee),_0xa46a1f,_0xa46a1f,_0xa46a1f);}}else _0x2fa96d=_[_0x1098a3(0x1c2)](_0xd2b95e,['name',_0x1098a3(0x166)]),_0xeda4c7['field']=_0x1098a3(0x166),_0x34126d=as[_0x1098a3(0x15d)](_0x3afaf5,_0x2fa96d[_0x1098a3(0x1bc)],_0xeda4c7),_0x17bda8[_0x9d8a52](_0x34126d[_0x1098a3(0x1b0)],_0x34126d[_0x1098a3(0x1aa)][_0x1098a3(0x1c1)],_0x34126d[_0x1098a3(0x1aa)]['end']);break;case _0x1098a3(0x195):{const _0x7f1a33=_0xeda4c7['value'][_0x1098a3(0x1ed)](',')['map'](function(_0x1d2b6a){return Number(_0x1d2b6a);});_0x7f1a33[_0x1098a3(0x150)](function(_0x27ab42){_0x5946ba['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x27ab42+',%');}),_0x48337b=_[_0x1098a3(0x1b3)](_0x48337b,_0x7f1a33);}break;case _0x1098a3(0x1b2):_0xeda4c7[_0x1098a3(0x174)]==='$substring'?_0x17bda8[_0x9d8a52]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0xeda4c7[_0x1098a3(0x1aa)]+'%',null):(_0x2fa96d=_[_0x1098a3(0x1c2)](_0xd2b95e,['name',_0x1098a3(0x1bf)]),_0xeda4c7[_0x1098a3(0x157)]=_0x1098a3(0x1bf),_0x34126d=as[_0x1098a3(0x15d)](_0x3afaf5,_0x2fa96d[_0x1098a3(0x1bc)],_0xeda4c7),_0x17bda8[_0x9d8a52](_0x34126d['text'],_0x34126d[_0x1098a3(0x1aa)][_0x1098a3(0x1c1)],_0x34126d[_0x1098a3(0x1aa)][_0x1098a3(0x142)]));break;case'body':_0x34126d=as[_0x1098a3(0x15d)]('me',null,_0xeda4c7),_0x17bda8[_0x9d8a52](_0x34126d[_0x1098a3(0x1b0)],_0x34126d[_0x1098a3(0x1aa)]['start'],_0x34126d[_0x1098a3(0x1aa)][_0x1098a3(0x142)]);break;}else _0x34126d=as[_0x1098a3(0x15d)](_0x3afaf5,_0x2fa96d[_0x1098a3(0x1bc)],_0xeda4c7),_0x17bda8[_0x9d8a52](_0x34126d[_0x1098a3(0x1b0)],_0x34126d[_0x1098a3(0x1aa)][_0x1098a3(0x1c1)],_0x34126d['value'][_0x1098a3(0x142)]);}}else{const _0x52cdd0=_(_0x219a07['query'])[_0x1098a3(0x148)]()['map'](function(_0x10f291){const _0x482f31=_0x1098a3;return _[_0x482f31(0x14e)](_0xd2b95e,[_0x482f31(0x15e),_0x10f291])?_0x10f291:undefined;})[_0x1098a3(0x152)]()[_0x1098a3(0x1aa)]();!_[_0x1098a3(0x1ff)](_0x52cdd0)&&_0x52cdd0['forEach'](function(_0x4a470e){const _0x2ff9f8=_0x1098a3;if(_0x4a470e==='SmsAccountId')_0x3b6936[_0x2ff9f8(0x201)](_0x2ff9f8(0x1da),[]['concat'](_0x219a07[_0x2ff9f8(0x175)][_0x4a470e]));else{if(_0x4a470e===_0x2ff9f8(0x190)){const _0x46e95a=JSON[_0x2ff9f8(0x1f7)](_0x219a07[_0x2ff9f8(0x175)][_0x4a470e])[_0x2ff9f8(0x1db)],_0x1d52d1=JSON[_0x2ff9f8(0x1f7)](_0x219a07['query'][_0x4a470e])['$lte'];_0x3b6936['where']('i.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0x46e95a,_0x1d52d1);}else _0x219a07['query'][_0x4a470e]===_0x2ff9f8(0x1f9)?_0x3b6936['where']('i.'+_0x4a470e+_0x2ff9f8(0x1d3)):_0x3b6936['where']('i.'+_0x4a470e+_0x2ff9f8(0x1e6),_0x219a07[_0x2ff9f8(0x175)][_0x4a470e]);}});_0x219a07['query']['read']&&(_0x219a07['query'][_0x1098a3(0x1d7)]==0x1?_0x3b6936['having']('`unreadMessages`\x20=\x200'):_0x3b6936[_0x1098a3(0x1cd)]('`unreadMessages`\x20>\x200'));_0x219a07['query'][_0x1098a3(0x186)]&&(_0x48337b=_['isArray'](_0x219a07['query'][_0x1098a3(0x186)])?_0x219a07['query']['tag']:new Array(_0x219a07[_0x1098a3(0x175)][_0x1098a3(0x186)]),_0x48337b[_0x1098a3(0x150)](function(_0x206973){const _0x356035=_0x1098a3;_0x5946ba['or'](_0x356035(0x177),'%,'+_0x206973+',%');}));if(_0x219a07[_0x1098a3(0x175)][_0x1098a3(0x1eb)]){const _0x120450=_0x219a07['query'][_0x1098a3(0x1eb)]['replace']('\x5c','\x5c\x5c')['replace'](/'/g,'\x27\x27');qs[_0x1098a3(0x204)](_0x120450)?_0x17bda8['or'](_0x1098a3(0x1cb),_0x120450+'%')['or'](_0x1098a3(0x179),_0x120450+'%'):_0x17bda8['or']('MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x1098a3(0x1d2)](_0x120450))['or'](_0x1098a3(0x1fa),_0x120450+'%');}}_0x3b6936['where'](_0x17bda8),_0x3b6936[_0x1098a3(0x14a)](_0x1098a3(0x160));let _0x2e3524={'type':QueryTypes[_0x1098a3(0x1ac)],'raw':!![]};const _0x35b2aa=_0x3b6936[_0x1098a3(0x18a)]();_0x35b2aa[_0x1098a3(0x157)](_0x1098a3(0x160)),_0x35b2aa[_0x1098a3(0x157)](_0x1098a3(0x197),'unreadMessages'),_0x2c12e2[_0x1098a3(0x1e3)]&&_0x2c12e2[_0x1098a3(0x1e3)][_0x1098a3(0x150)](function(_0x55e712){const _0x2b8c58=_0x1098a3,_0x4675c6=_0x55e712[0x0]===_0x2b8c58(0x146)?_0x55e712[0x0]:'i.'+_0x55e712[0x0];_0x3b6936[_0x2b8c58(0x1e3)](_0x4675c6,_0x55e712[0x1]===_0x2b8c58(0x149)?![]:!![]);}),!_[_0x1098a3(0x1ff)](_0x48337b)&&(_0x3b6936[_0x1098a3(0x1cd)](_0x5946ba),_0x35b2aa['where'](_0x1098a3(0x17a),_0x48337b)),Promise[_0x1098a3(0x1b8)]()[_0x1098a3(0x1f1)](function(){const _0x25de78=_0x1098a3;if(!_0x5010e4){if(_0x219a07[_0x25de78(0x175)][_0x25de78(0x18b)]||_0x219a07[_0x25de78(0x175)][_0x25de78(0x1ef)])return;_0x35b2aa[_0x25de78(0x201)](_0x25de78(0x14c)),_0x3b6936[_0x25de78(0x201)]('i.SmsAccountId\x20IS\x20NOT\x20NULL');return;}return _0x219a07['user']['getSmsAccounts']({'attributes':['id'],'raw':!![]})['then'](function(_0x3488c3){const _0x1eaeb4=_0x25de78;_[_0x1eaeb4(0x1ff)](_0x3488c3)?(_0x35b2aa[_0x1eaeb4(0x201)](_0x1eaeb4(0x15a)),_0x3b6936['where'](_0x1eaeb4(0x15a))):(_0x35b2aa[_0x1eaeb4(0x201)]('i.SmsAccountId\x20IN\x20?',_[_0x1eaeb4(0x208)](_0x3488c3,'id')),_0x3b6936[_0x1eaeb4(0x201)]('i.SmsAccountId\x20IN\x20?',_[_0x1eaeb4(0x208)](_0x3488c3,'id')));});})[_0x1098a3(0x1f1)](function(){const _0x2ae5c7=_0x1098a3;db['sequelize']['query'](_0x35b2aa[_0x2ae5c7(0x1c7)](),_0x2e3524)[_0x2ae5c7(0x1f1)](function(_0x5a7d08){const _0xad985d=_0x2ae5c7;_0x1fa563[_0xad985d(0x1a9)]=_0x5a7d08[_0xad985d(0x20b)];if(_0x1fa563[_0xad985d(0x1a9)]===0x0)return[];return db['sequelize'][_0xad985d(0x175)](_0x57198f[_0xad985d(0x1c7)](),_0x2e3524)[_0xad985d(0x1f1)](function(_0x598a8a){const _0x58a294=_0xad985d;_0x378fe7=_[_0x58a294(0x1ce)](_0x598a8a,'id'),_0x2e3524=_[_0x58a294(0x1f4)](_0x2e3524,{'model':db[_0x58a294(0x139)],'mapToModel':!![],'raw':!![],'nest':!![]});_0x219a07[_0x58a294(0x175)][_0x58a294(0x185)]?_0x2c12e2[_0x58a294(0x1ca)][_0x58a294(0x150)](function(_0x9d072a){const _0x18635e=_0x58a294;_0x3b6936[_0x18635e(0x157)]('i.'+_0x9d072a);}):(_0x3b6936['field'](_0x58a294(0x197),_0x58a294(0x1d0)),_0x3b6936[_0x58a294(0x157)](_0x58a294(0x1fc),'Account.key'),_0x3b6936[_0x58a294(0x157)]('a.mandatoryDisposition',_0x58a294(0x1d6)),_0x3b6936['field'](_0x58a294(0x1ae),_0x58a294(0x146)),_0x3b6936[_0x58a294(0x157)](_0x58a294(0x15c)),_0x3b6936[_0x58a294(0x157)](_0x58a294(0x182),'Contact.firstName'),_0x3b6936[_0x58a294(0x157)]('c.lastName',_0x58a294(0x1f3)),_0x3b6936['field'](_0x58a294(0x207),_0x58a294(0x194)),_0x3b6936[_0x58a294(0x157)]('c.phone',_0x58a294(0x1c4)),_0x3b6936[_0x58a294(0x157)](_0x58a294(0x1f2),_0x58a294(0x1a2)),_0x3b6936[_0x58a294(0x157)](_0x58a294(0x1c3),_0x58a294(0x14b)),_0x3b6936[_0x58a294(0x157)](_0x58a294(0x1dd),_0x58a294(0x17f)),_0x3b6936[_0x58a294(0x157)](_0x58a294(0x1f8),_0x58a294(0x1c0)),_0x3b6936['field'](_0x58a294(0x206),_0x58a294(0x1bd)));if(_0x2c12e2[_0x58a294(0x153)])_0x3b6936['limit'](_0x2c12e2[_0x58a294(0x153)]);if(_0x2c12e2[_0x58a294(0x1a5)])_0x3b6936[_0x58a294(0x1a5)](_0x2c12e2[_0x58a294(0x1a5)]);return db['sequelize'][_0x58a294(0x175)](_0x3b6936['toString'](),_0x2e3524);})[_0xad985d(0x1f1)](function(_0xd77624){const _0x2d4d3d=_0xad985d;return _0x19ba4f[_0x2d4d3d(0x201)](_0x2d4d3d(0x1d1),_['map'](_0xd77624,'id')),db[_0x2d4d3d(0x1f5)]['query'](_0x19ba4f[_0x2d4d3d(0x1c7)](),_0x2e3524)[_0x2d4d3d(0x1f1)](function(_0x2fc0f5){const _0x54cf96=_0x2d4d3d,_0xc3d2f2=_[_0x54cf96(0x16a)](_0x2fc0f5,_0x54cf96(0x147)),_0x4cf32c=[];return _0xd77624[_0x54cf96(0x150)](function(_0x509a60){const _0x1625ee=_0x54cf96;_0x4cf32c[_0x1625ee(0x140)](updateSmsInteraction(_0x509a60,_0x378fe7,_0xc3d2f2));}),Promise['all'](_0x4cf32c);});});})[_0x2ae5c7(0x1f1)](function(_0x2cfa4b){return _0x1fa563['rows']=_0x2cfa4b,_0x1fa563;})[_0x2ae5c7(0x1f1)](respondWithFilteredResult(_0x21c2a1,_0x2c12e2));})[_0x1098a3(0x13e)](handleError(_0x21c2a1,null));},exports[a663_0x1abaf2(0x183)]=function(_0xa618f0,_0x7b1bdd){const _0x5eaef8=a663_0x1abaf2;let _0x5b53fb={'raw':![],'where':{'id':_0xa618f0['params']['id']}};const _0x50b473={};return _0x50b473[_0x5eaef8(0x193)]=_[_0x5eaef8(0x148)](db[_0x5eaef8(0x139)][_0x5eaef8(0x1ad)]),_0x50b473[_0x5eaef8(0x175)]=_[_0x5eaef8(0x148)](_0xa618f0[_0x5eaef8(0x175)]),_0x50b473[_0x5eaef8(0x19d)]=_[_0x5eaef8(0x1bb)](_0x50b473[_0x5eaef8(0x193)],_0x50b473[_0x5eaef8(0x175)]),_0x5b53fb['attributes']=_['intersection'](_0x50b473[_0x5eaef8(0x193)],qs['fields'](_0xa618f0[_0x5eaef8(0x175)][_0x5eaef8(0x185)])),_0x5b53fb[_0x5eaef8(0x1ca)]=_0x5b53fb['attributes'][_0x5eaef8(0x20b)]?_0x5b53fb[_0x5eaef8(0x1ca)]:_0x50b473[_0x5eaef8(0x193)],_0xa618f0[_0x5eaef8(0x175)][_0x5eaef8(0x16f)]&&(_0x5b53fb[_0x5eaef8(0x14f)]=[{'all':!![]}]),_0x5b53fb=_[_0x5eaef8(0x1f4)]({},_0x5b53fb,_0xa618f0['options']),db['SmsInteraction'][_0x5eaef8(0x19b)](_0x5b53fb)[_0x5eaef8(0x1f1)](handleEntityNotFound(_0x7b1bdd,null))[_0x5eaef8(0x1f1)](respondWithResult(_0x7b1bdd,null))[_0x5eaef8(0x13e)](handleError(_0x7b1bdd,null));},exports[a663_0x1abaf2(0x1e5)]=function(_0x579cff,_0x42cea1){const _0x58fc0f=a663_0x1abaf2;return db['SmsInteraction'][_0x58fc0f(0x1e5)](_0x579cff[_0x58fc0f(0x1b4)],{})[_0x58fc0f(0x1f1)](respondWithResult(_0x42cea1,0xc9))[_0x58fc0f(0x13e)](handleError(_0x42cea1,null));},exports[a663_0x1abaf2(0x1a6)]=function(_0x128418,_0xbe6870){const _0x2e39f4=a663_0x1abaf2;return _0x128418['body']['id']&&delete _0x128418['body']['id'],db['SmsInteraction'][_0x2e39f4(0x19b)]({'where':{'id':_0x128418['params']['id']}})[_0x2e39f4(0x1f1)](handleEntityNotFound(_0xbe6870,null))[_0x2e39f4(0x1f1)](saveUpdates(_0x128418[_0x2e39f4(0x1b4)],null))['then'](respondWithResult(_0xbe6870,null))['catch'](handleError(_0xbe6870,null));},exports['destroy']=function(_0x3ff3f0,_0x52ed09){const _0x44df94=a663_0x1abaf2;return db[_0x44df94(0x139)][_0x44df94(0x19b)]({'where':{'id':_0x3ff3f0[_0x44df94(0x145)]['id']}})[_0x44df94(0x1f1)](handleEntityNotFound(_0x52ed09,null))[_0x44df94(0x1f1)](removeEntity(_0x52ed09,null))[_0x44df94(0x13e)](handleError(_0x52ed09,null));},exports['describe']=function(_0x2e66d4,_0x15bbcf){const _0x8c0919=a663_0x1abaf2;return db[_0x8c0919(0x139)][_0x8c0919(0x17e)]()['then'](respondWithResult(_0x15bbcf,null))[_0x8c0919(0x13e)](handleError(_0x15bbcf,null));},exports[a663_0x1abaf2(0x209)]=function(_0x12555f,_0x5a53ec){const _0x1606cf=a663_0x1abaf2;return db[_0x1606cf(0x1a8)]['findOne']({'where':{'id':_0x12555f[_0x1606cf(0x145)]['id']}})[_0x1606cf(0x1f1)](function(_0x1a5d1e){const _0x4b48e8=_0x1606cf;if(_0x1a5d1e)return _0x1a5d1e[_0x4b48e8(0x209)](_0x12555f[_0x4b48e8(0x1b4)][_0x4b48e8(0x173)],{'through':_['omit'](_0x12555f[_0x4b48e8(0x1b4)],[_0x4b48e8(0x173),'id'])});})[_0x1606cf(0x1f1)](respondWithResult(_0x5a53ec,null))[_0x1606cf(0x13e)](handleError(_0x5a53ec,null));},exports[a663_0x1abaf2(0x18c)]=function(_0x1af156,_0x1a59ff){const _0xbb8fbc=a663_0x1abaf2;let _0x4e759d={'raw':![],'where':{}};const _0x380c9a={},_0x177ba4={'count':0x0,'rows':[]};return db['SmsInteraction'][_0xbb8fbc(0x19b)]({'where':{'id':_0x1af156[_0xbb8fbc(0x145)]['id']}})['then'](handleEntityNotFound(_0x1a59ff,null))['then'](function(_0x5b3aaf){const _0x36ac2f=_0xbb8fbc;if(_0x5b3aaf){_0x380c9a[_0x36ac2f(0x193)]=_[_0x36ac2f(0x148)](db[_0x36ac2f(0x1a8)][_0x36ac2f(0x1ad)]),_0x380c9a['query']=_[_0x36ac2f(0x148)](_0x1af156[_0x36ac2f(0x175)]),_0x380c9a[_0x36ac2f(0x19d)]=_[_0x36ac2f(0x1bb)](_0x380c9a[_0x36ac2f(0x193)],_0x380c9a['query']),_0x4e759d['attributes']=_[_0x36ac2f(0x1bb)](_0x380c9a['model'],qs[_0x36ac2f(0x185)](_0x1af156[_0x36ac2f(0x175)][_0x36ac2f(0x185)])),_0x4e759d[_0x36ac2f(0x1ca)]=_0x4e759d[_0x36ac2f(0x1ca)]['length']?_0x4e759d[_0x36ac2f(0x1ca)]:_0x380c9a[_0x36ac2f(0x193)];typeof _0x1af156[_0x36ac2f(0x175)]['nolimit']===_0x36ac2f(0x20c)&&(_0x4e759d[_0x36ac2f(0x153)]=qs[_0x36ac2f(0x153)](_0x1af156[_0x36ac2f(0x175)][_0x36ac2f(0x153)]),_0x4e759d[_0x36ac2f(0x1a5)]=qs[_0x36ac2f(0x1a5)](_0x1af156['query'][_0x36ac2f(0x1a5)]));_0x4e759d[_0x36ac2f(0x1e3)]=qs['sort'](_0x1af156[_0x36ac2f(0x175)][_0x36ac2f(0x187)]),_0x4e759d[_0x36ac2f(0x201)]=qs[_0x36ac2f(0x19d)](_[_0x36ac2f(0x171)](_0x1af156[_0x36ac2f(0x175)],_0x380c9a[_0x36ac2f(0x19d)])),_0x4e759d['where'][_0x36ac2f(0x147)]=_0x5b3aaf['id'];_0x1af156['query'][_0x36ac2f(0x1eb)]&&(_0x4e759d[_0x36ac2f(0x201)]=_[_0x36ac2f(0x1f4)](_0x4e759d[_0x36ac2f(0x201)],{[Op['or']]:_[_0x36ac2f(0x208)](_0x4e759d[_0x36ac2f(0x1ca)],function(_0x1b71ea){const _0x277cc4=_0x36ac2f,_0x61bf70={};return _0x61bf70[_0x1b71ea]={[Op['like']]:'%'+_0x1af156[_0x277cc4(0x175)][_0x277cc4(0x1eb)]+'%'},_0x61bf70;})}));if(_0x1af156[_0x36ac2f(0x175)]['$gte']){const _0x6832cb=_0x1af156[_0x36ac2f(0x175)]['$gte'][_0x36ac2f(0x1ed)](','),_0x220ab4={};_0x220ab4[_0x6832cb[0x0]]={[Op['gte']]:moment(_0x6832cb[0x1])[_0x36ac2f(0x1e8)](_0x36ac2f(0x1c9))},_0x4e759d[_0x36ac2f(0x201)]=_['merge'](_0x4e759d['where'],_0x220ab4);}return _0x4e759d=_['merge']({},_0x4e759d,_0x1af156[_0x36ac2f(0x19c)]),db['SmsMessage'][_0x36ac2f(0x1a9)]({'where':_0x4e759d[_0x36ac2f(0x201)]})['then'](function(_0x5d85f1){const _0x257f11=_0x36ac2f;return _0x177ba4[_0x257f11(0x1a9)]=_0x5d85f1,_0x1af156[_0x257f11(0x175)]['includeAll']&&(_0x4e759d[_0x257f11(0x14f)]=[{'all':!![]}]),db[_0x257f11(0x1a8)][_0x257f11(0x162)](_0x4e759d);})[_0x36ac2f(0x1f1)](function(_0x71b49c){const _0x42af8e=_0x36ac2f;return _0x177ba4[_0x42af8e(0x202)]=_0x71b49c,_0x177ba4;});}})[_0xbb8fbc(0x1f1)](respondWithFilteredResult(_0x1a59ff,_0x4e759d))[_0xbb8fbc(0x13e)](handleError(_0x1a59ff,null));},exports['addTags']=function(_0x80b8d6,_0x2f23ec){const _0x4592ec=a663_0x1abaf2;return db[_0x4592ec(0x139)][_0x4592ec(0x19b)]({'where':{'id':_0x80b8d6['params']['id']}})[_0x4592ec(0x1f1)](function(_0x154f33){const _0x20518b=_0x4592ec;if(_0x154f33)return _0x154f33[_0x20518b(0x1a4)](_0x80b8d6[_0x20518b(0x1b4)]['ids'],{'through':_['omit'](_0x80b8d6[_0x20518b(0x1b4)],[_0x20518b(0x173),'id'])})['then'](function(){const _0x1fa7c1=_0x20518b;return db[_0x1fa7c1(0x195)][_0x1fa7c1(0x162)]({'attributes':['id','name',_0x1fa7c1(0x159)],'where':{'id':_0x80b8d6[_0x1fa7c1(0x1b4)][_0x1fa7c1(0x173)]}});})['then'](function(_0x391095){const _0x24021e=_0x20518b;return socket[_0x24021e(0x1e1)](_0x24021e(0x192),{'id':Number(_0x80b8d6[_0x24021e(0x145)]['id']),'tags':_0x391095||[]}),{'id':Number(_0x80b8d6[_0x24021e(0x145)]['id']),'tags':_0x391095||[]};});})[_0x4592ec(0x1f1)](respondWithResult(_0x2f23ec,null))[_0x4592ec(0x13e)](handleError(_0x2f23ec,null));},exports[a663_0x1abaf2(0x168)]=function(_0x3267a7,_0xf6ddec){const _0xe2d53=a663_0x1abaf2;return db['SmsInteraction'][_0xe2d53(0x19b)]({'where':{'id':_0x3267a7[_0xe2d53(0x145)]['id']}})['then'](handleEntityNotFound(_0xf6ddec,null))[_0xe2d53(0x1f1)](function(_0x140326){const _0x3b776f=_0xe2d53;if(_0x140326)return _0x140326['removeTags'](_0x3267a7['query'][_0x3b776f(0x173)]);})[_0xe2d53(0x1f1)](respondWithStatusCode(_0xf6ddec,null))[_0xe2d53(0x13e)](handleError(_0xf6ddec,null));},exports['download']=function(_0x43be8d,_0x3852a3){const _0x44c058=a663_0x1abaf2,_0x5f09bd=moment()[_0x44c058(0x13f)]()[_0x44c058(0x1c7)](),_0x1764ea=path[_0x44c058(0x1fb)](config[_0x44c058(0x154)],'files',_0x44c058(0x1af)),_0x41ac3b=path[_0x44c058(0x1fb)](_0x1764ea,_0x5f09bd),_0x206ea1=util[_0x44c058(0x1e8)](_0x44c058(0x1dc),_0x43be8d[_0x44c058(0x145)]['id'],_0x5f09bd),_0x5d34a3=path[_0x44c058(0x1fb)](_0x1764ea,_0x206ea1),_0x51a46b=[];_0x51a46b[_0x44c058(0x140)]({'model':db[_0x44c058(0x1b2)],'as':_0x44c058(0x1b2),'attributes':['id',_0x44c058(0x155)],'raw':!![]}),_0x51a46b[_0x44c058(0x140)]({'model':db[_0x44c058(0x17b)],'as':_0x44c058(0x188),'attributes':['id',_0x44c058(0x13d),'lastName'],'raw':!![]});const _0x48f126=[{'model':db[_0x44c058(0x1a8)],'as':_0x44c058(0x13c),'attributes':['id','body',_0x44c058(0x190),_0x44c058(0x1ec),_0x44c058(0x17d),_0x44c058(0x1d7)],'include':_0x51a46b}];return _0x48f126[_0x44c058(0x140)]({'model':db[_0x44c058(0x203)],'as':_0x44c058(0x1a3),'attributes':['id',_0x44c058(0x15e)]}),_0x48f126[_0x44c058(0x140)]({'model':db[_0x44c058(0x1b2)],'as':_0x44c058(0x16d),'attributes':['id',_0x44c058(0x155)]}),db[_0x44c058(0x139)]['findOne']({'where':{'id':_0x43be8d['params']['id']},'include':_0x48f126})[_0x44c058(0x1f1)](handleEntityNotFound(_0x3852a3,null))[_0x44c058(0x1f1)](function(_0x30fd25){const _0x33989f=_0x44c058;if(_0x30fd25){const _0x133c97=_0x30fd25[_0x33989f(0x176)]({'plain':!![]});fs[_0x33989f(0x143)](_0x41ac3b);const _0x7a0487={'format':'A4','border':'10px','header':{'height':_0x33989f(0x1b7),'contents':{'first':_0x33989f(0x20a)}},'footer':{'height':_0x33989f(0x1df),'contents':{'default':util['format'](_0x33989f(0x200),util[_0x33989f(0x1e8)]('%s\x20#%d',_0x33989f(0x19f),_0x133c97['id']),moment()[_0x33989f(0x1e8)](_0x33989f(0x1d9))[_0x33989f(0x1c7)]())}}},_0x25b6ff={'channel':_0x33989f(0x19f),'account':_0x133c97[_0x33989f(0x1a3)][_0x33989f(0x15e)],'agent':_0x133c97[_0x33989f(0x16d)]?_0x133c97['Owner']['fullname']:'N.A.','createdAt':moment(_0x133c97[_0x33989f(0x190)])[_0x33989f(0x1e8)]('YYYY-MM-DD\x20HH:mm:ss')[_0x33989f(0x1c7)](),'closedAt':_0x133c97[_0x33989f(0x181)]?moment(_0x133c97[_0x33989f(0x1e0)])['format'](_0x33989f(0x1c9))[_0x33989f(0x1c7)]():'','disposition':_0x133c97[_0x33989f(0x163)],'messages':_(_0x133c97['Messages'])[_0x33989f(0x1eb)]({'secret':![]})[_0x33989f(0x208)](function(_0x3eed9c){const _0x1da362=_0x33989f;return{'date':moment(_0x3eed9c['createdAt'])['format'](_0x1da362(0x1c9))[_0x1da362(0x1c7)](),'sender':_0x3eed9c['direction']===_0x1da362(0x1d4)?_0x3eed9c['User']?_0x3eed9c[_0x1da362(0x1b2)][_0x1da362(0x155)]:_0x1da362(0x19e):_0x3eed9c['Contact'][_0x1da362(0x13d)]+(_0x3eed9c[_0x1da362(0x188)][_0x1da362(0x161)]?'\x20'+_0x3eed9c[_0x1da362(0x188)][_0x1da362(0x161)]:''),'body':_0x3eed9c[_0x1da362(0x1b4)],'direction':_0x3eed9c[_0x1da362(0x1ec)]===_0x1da362(0x1d4)?'A':'C','secret':_0x3eed9c[_0x1da362(0x17d)],'read':_0x3eed9c[_0x1da362(0x1d7)]};})['value']()};return ejs[_0x33989f(0x1b6)](path[_0x33989f(0x1fb)](config[_0x33989f(0x154)],_0x33989f(0x1be),_0x33989f(0x1b9),_0x33989f(0x141)),{'interaction':_0x25b6ff})[_0x33989f(0x1f1)](function(_0x59990a){return new Promise(function(_0x43a2f7,_0x21bea1){const _0x54419a=a663_0x324d;pdf[_0x54419a(0x1e5)](_0x59990a,_0x7a0487)['toFile'](path[_0x54419a(0x1fb)](_0x41ac3b,_0x54419a(0x151)+_0x133c97['id']+'-'+_0x5f09bd+_0x54419a(0x1a7)),function(_0x5eeaab,_0x2c9b55){if(_0x5eeaab)return _0x21bea1(_0x5eeaab);_0x43a2f7(_0x2c9b55);});});})[_0x33989f(0x1f1)](function(){const _0x490117=_0x33989f;return new Promise(function(_0x20f133,_0x4c212a){zipdir(_0x41ac3b,{'saveTo':_0x5d34a3},function(_0x265ae9,_0x5908b3){if(_0x265ae9)return _0x4c212a(_0x265ae9);return _0x20f133(_0x5908b3);});})[_0x490117(0x1f1)](function(){return new Promise(function(_0x36b38f,_0x4a78be){rimraf(_0x41ac3b,function(_0x144f70){if(_0x144f70)_0x4a78be(_0x144f70);return _0x36b38f();});});})[_0x490117(0x1f1)](function(){const _0x4ea5c6=_0x490117;return _0x3852a3[_0x4ea5c6(0x156)](_0x5d34a3,_0x206ea1,function(_0x34dceb){const _0x2e28f4=_0x4ea5c6;_0x34dceb?console[_0x2e28f4(0x169)]('err',_0x34dceb):fs[_0x2e28f4(0x1fe)](_0x5d34a3);});});});}else return _0x3852a3[_0x33989f(0x15f)](0xc8);})[_0x44c058(0x13e)](handleError(_0x3852a3,null));}; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.events.js b/server/api/smsInteraction/smsInteraction.events.js index 079d1a7..81552d8 100644 --- a/server/api/smsInteraction/smsInteraction.events.js +++ b/server/api/smsInteraction/smsInteraction.events.js @@ -1 +1 @@ -const a664_0x19b4=['remove','map','getUsers','then','update','undefined','events','exports','setMaxListeners','Users','../../mysqldb','unreadMessages','findAll','addHook','catch','setDataValue','save','SmsInteraction'];(function(_0x4ddfe3,_0xc892ef){const _0x19b48c=function(_0x19d1f0){while(--_0x19d1f0){_0x4ddfe3['push'](_0x4ddfe3['shift']());}};_0x19b48c(++_0xc892ef);}(a664_0x19b4,0x16a));const a664_0x19d1=function(_0x4ddfe3,_0xc892ef){_0x4ddfe3=_0x4ddfe3-0x17d;let _0x19b48c=a664_0x19b4[_0x4ddfe3];return _0x19b48c;};const a664_0x216a80=a664_0x19d1;'use strict';const EventEmitter=require(a664_0x216a80(0x181)),SmsInteraction=require(a664_0x216a80(0x185))['db'][a664_0x216a80(0x18c)],SmsMessage=require(a664_0x216a80(0x185))['db']['SmsMessage'],SmsInteractionEvents=new EventEmitter();SmsInteractionEvents[a664_0x216a80(0x183)](0x0);const events={'afterCreate':a664_0x216a80(0x18b),'afterUpdate':a664_0x216a80(0x17f),'afterDestroy':a664_0x216a80(0x18d)};function emitEvent(_0x312661){return function(_0x57884d){const _0x417b1c=a664_0x19d1;_0x57884d[_0x417b1c(0x17d)]({'attributes':['id'],'raw':!![]})[_0x417b1c(0x17e)](function(_0x2ca7de){const _0x5b0013=_0x417b1c;return _0x57884d[_0x5b0013(0x18a)](_0x5b0013(0x184),_0x2ca7de[_0x5b0013(0x18e)](function(_0x5c37ca){return{'id':_0x5c37ca['id']};})),SmsMessage[_0x5b0013(0x187)]({'where':{'SmsInteractionId':_0x57884d['id'],'direction':'in','read':![]},'raw':!![]});})[_0x417b1c(0x17e)](function(_0x309cfa){const _0x26f4ba=_0x417b1c;_0x57884d[_0x26f4ba(0x18a)](_0x26f4ba(0x186),_0x309cfa['length']),SmsInteractionEvents['emit'](_0x312661+':'+_0x57884d['id'],_0x57884d),SmsInteractionEvents['emit'](_0x312661,_0x57884d);})[_0x417b1c(0x189)](()=>{});};}for(const e in events){if(typeof events[e]!==a664_0x216a80(0x180)){const event=events[e];SmsInteraction[a664_0x216a80(0x188)](e,emitEvent(event));}}module[a664_0x216a80(0x182)]=SmsInteractionEvents; \ No newline at end of file +const a664_0x28de=['events','SmsInteraction','findAll','unreadMessages','setDataValue','map','../../mysqldb','undefined','addHook','emit','remove','then','getUsers','catch','update','length'];(function(_0x2d10a2,_0x319324){const _0x28de47=function(_0x22727f){while(--_0x22727f){_0x2d10a2['push'](_0x2d10a2['shift']());}};_0x28de47(++_0x319324);}(a664_0x28de,0x101));const a664_0x2272=function(_0x2d10a2,_0x319324){_0x2d10a2=_0x2d10a2-0x12e;let _0x28de47=a664_0x28de[_0x2d10a2];return _0x28de47;};const a664_0x4ace6a=a664_0x2272;'use strict';const EventEmitter=require(a664_0x4ace6a(0x13d)),SmsInteraction=require(a664_0x4ace6a(0x133))['db'][a664_0x4ace6a(0x12e)],SmsMessage=require('../../mysqldb')['db']['SmsMessage'],SmsInteractionEvents=new EventEmitter();SmsInteractionEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':a664_0x4ace6a(0x13b),'afterDestroy':a664_0x4ace6a(0x137)};function emitEvent(_0x1fa8b8){return function(_0x34955d){const _0x10a134=a664_0x2272;_0x34955d[_0x10a134(0x139)]({'attributes':['id'],'raw':!![]})['then'](function(_0x1e4bf2){const _0x16c840=_0x10a134;return _0x34955d[_0x16c840(0x131)]('Users',_0x1e4bf2[_0x16c840(0x132)](function(_0x361627){return{'id':_0x361627['id']};})),SmsMessage[_0x16c840(0x12f)]({'where':{'SmsInteractionId':_0x34955d['id'],'direction':'in','read':![]},'raw':!![]});})[_0x10a134(0x138)](function(_0x20016e){const _0x37f90b=_0x10a134;_0x34955d[_0x37f90b(0x131)](_0x37f90b(0x130),_0x20016e[_0x37f90b(0x13c)]),SmsInteractionEvents[_0x37f90b(0x136)](_0x1fa8b8+':'+_0x34955d['id'],_0x34955d),SmsInteractionEvents['emit'](_0x1fa8b8,_0x34955d);})[_0x10a134(0x13a)](()=>{});};}for(const e in events){if(typeof events[e]!==a664_0x4ace6a(0x134)){const event=events[e];SmsInteraction[a664_0x4ace6a(0x135)](e,emitEvent(event));}}module['exports']=SmsInteractionEvents; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.model.js b/server/api/smsInteraction/smsInteraction.model.js index e6e45ba..646c234 100644 --- a/server/api/smsInteraction/smsInteraction.model.js +++ b/server/api/smsInteraction/smsInteraction.model.js @@ -1 +1 @@ -const a665_0x15ff=['./smsInteraction.attributes','SmsInteraction','init'];(function(_0x4c6923,_0x20112b){const _0x15ff8d=function(_0x13e354){while(--_0x13e354){_0x4c6923['push'](_0x4c6923['shift']());}};_0x15ff8d(++_0x20112b);}(a665_0x15ff,0xa6));const a665_0x13e3=function(_0x4c6923,_0x20112b){_0x4c6923=_0x4c6923-0xba;let _0x15ff8d=a665_0x15ff[_0x4c6923];return _0x15ff8d;};const a665_0x3978e3=a665_0x13e3;'use strict';const {Model}=require('sequelize'),{attributes}=require(a665_0x3978e3(0xbc)),{options}=require('./smsInteraction.options');class SmsInteraction extends Model{}function init(_0x1f64e2,_0xd1de6b){const _0x46c72c=a665_0x3978e3,_0x273fbe=options(_0x1f64e2),_0x2af083=typeof _0xd1de6b==='function'?_0xd1de6b(_0x273fbe):_0x273fbe;return SmsInteraction[_0x46c72c(0xbb)](attributes,_0x2af083),SmsInteraction;}module['exports'][a665_0x3978e3(0xba)]=SmsInteraction,module['exports']['init']=init; \ No newline at end of file +const a665_0x31bd=['./smsInteraction.attributes','exports','function','./smsInteraction.options','sequelize'];(function(_0x3b19b5,_0x57f1e7){const _0x31bd62=function(_0x5e55ee){while(--_0x5e55ee){_0x3b19b5['push'](_0x3b19b5['shift']());}};_0x31bd62(++_0x57f1e7);}(a665_0x31bd,0x1bf));const a665_0x5e55=function(_0x3b19b5,_0x57f1e7){_0x3b19b5=_0x3b19b5-0xfc;let _0x31bd62=a665_0x31bd[_0x3b19b5];return _0x31bd62;};const a665_0x3b53e5=a665_0x5e55;'use strict';const {Model}=require(a665_0x3b53e5(0xfe)),{attributes}=require(a665_0x3b53e5(0xff)),{options}=require(a665_0x3b53e5(0xfd));class SmsInteraction extends Model{}function init(_0x3ab73f,_0x24ea94){const _0x3752eb=a665_0x3b53e5,_0x40a1a0=options(_0x3ab73f),_0x1d2761=typeof _0x24ea94===_0x3752eb(0xfc)?_0x24ea94(_0x40a1a0):_0x40a1a0;return SmsInteraction['init'](attributes,_0x1d2761),SmsInteraction;}module[a665_0x3b53e5(0x100)]['SmsInteraction']=SmsInteraction,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.options.js b/server/api/smsInteraction/smsInteraction.options.js index 583b994..86a6cf7 100644 --- a/server/api/smsInteraction/smsInteraction.options.js +++ b/server/api/smsInteraction/smsInteraction.options.js @@ -1 +1 @@ -const a666_0x4446=['exports','closed','format','changed','options','closedAt','sms_interactions'];(function(_0x5bc2bb,_0x1d1cb0){const _0x4446e6=function(_0x11113d){while(--_0x11113d){_0x5bc2bb['push'](_0x5bc2bb['shift']());}};_0x4446e6(++_0x1d1cb0);}(a666_0x4446,0xf6));const a666_0x1111=function(_0x5bc2bb,_0x1d1cb0){_0x5bc2bb=_0x5bc2bb-0x1d6;let _0x4446e6=a666_0x4446[_0x5bc2bb];return _0x4446e6;};const a666_0x2e8f87=a666_0x1111,moment=require('moment');function options(_0xdbcdda){const _0x3cb53c=a666_0x1111;return{'sequelize':_0xdbcdda,'tableName':_0x3cb53c(0x1db),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x567f7d){const _0x203717=_0x3cb53c;_0x567f7d[_0x203717(0x1d8)](_0x203717(0x1d6))&&(_0x567f7d[_0x203717(0x1da)]=moment()[_0x203717(0x1d7)]('YYYY-MM-DD\x20HH:mm:ss'));}}};}module[a666_0x2e8f87(0x1dc)][a666_0x2e8f87(0x1d9)]=options; \ No newline at end of file +const a666_0x1cef=['exports','YYYY-MM-DD\x20HH:mm:ss','sms_interactions','closedAt','closed','options'];(function(_0x139ec3,_0x310b3d){const _0x1ceffa=function(_0x2b18fd){while(--_0x2b18fd){_0x139ec3['push'](_0x139ec3['shift']());}};_0x1ceffa(++_0x310b3d);}(a666_0x1cef,0x69));const a666_0x2b18=function(_0x139ec3,_0x310b3d){_0x139ec3=_0x139ec3-0x1b3;let _0x1ceffa=a666_0x1cef[_0x139ec3];return _0x1ceffa;};const a666_0x180833=a666_0x2b18,moment=require('moment');function options(_0x5cd1b2){const _0xbf1dd8=a666_0x2b18;return{'sequelize':_0x5cd1b2,'tableName':_0xbf1dd8(0x1b8),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x151ca5){const _0x535100=_0xbf1dd8;_0x151ca5['changed'](_0x535100(0x1b4))&&(_0x151ca5[_0x535100(0x1b3)]=moment()['format'](_0x535100(0x1b7)));}}};}module[a666_0x180833(0x1b6)][a666_0x180833(0x1b5)]=options; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.rpc.js b/server/api/smsInteraction/smsInteraction.rpc.js index e00f82b..15f83d5 100644 --- a/server/api/smsInteraction/smsInteraction.rpc.js +++ b/server/api/smsInteraction/smsInteraction.rpc.js @@ -1 +1 @@ -const a667_0xbd34=['register','omit','body','./smsInteraction.socket','where','limit','options','stringify','findOne','SmsInteraction','addTags','AddTagsToSmsInteraction','message','UpdateSmsInteraction','AddTags','info','ids','raw','catch','debug','attributes','../../rediscache','../../mysqldb','error','then','../../config/logger'];(function(_0x4748c7,_0x5903ea){const _0xbd340b=function(_0x2ffc82){while(--_0x2ffc82){_0x4748c7['push'](_0x4748c7['shift']());}};_0xbd340b(++_0x5903ea);}(a667_0xbd34,0x10e));const a667_0x2ffc=function(_0x4748c7,_0x5903ea){_0x4748c7=_0x4748c7-0x172;let _0xbd340b=a667_0xbd34[_0x4748c7];return _0xbd340b;};const a667_0x44620f=a667_0x2ffc;'use strict';const _=require('lodash'),db=require(a667_0x44620f(0x17e))['db'],logger=require(a667_0x44620f(0x181))('rpc'),{getSocket}=require(a667_0x44620f(0x17d)),socket=getSocket();require(a667_0x44620f(0x185))[a667_0x44620f(0x182)](socket),exports[a667_0x44620f(0x175)]=function(_0x22903e){const _0x4c09a7=this;return new Promise(function(_0x55be9b,_0x1a10c5){const _0x2e7120=a667_0x2ffc;return db[_0x2e7120(0x18b)]['update'](_0x22903e[_0x2e7120(0x184)],{'raw':_0x22903e[_0x2e7120(0x188)]?_0x22903e[_0x2e7120(0x188)][_0x2e7120(0x179)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x22903e[_0x2e7120(0x188)]?_0x22903e[_0x2e7120(0x188)][_0x2e7120(0x186)]||null:null,'attributes':_0x22903e['options']?_0x22903e[_0x2e7120(0x188)][_0x2e7120(0x17c)]||null:null,'limit':_0x22903e[_0x2e7120(0x188)]?_0x22903e[_0x2e7120(0x188)][_0x2e7120(0x187)]||null:null})[_0x2e7120(0x180)](function(_0x12d0d5){const _0x3e0281=_0x2e7120;logger[_0x3e0281(0x177)](_0x3e0281(0x175),_0x22903e),logger[_0x3e0281(0x17b)]('UpdateSmsInteraction',_0x22903e,JSON['stringify'](_0x12d0d5)),_0x55be9b(_0x12d0d5);})['catch'](function(_0x2121ea){const _0x282b80=_0x2e7120;logger['error'](_0x282b80(0x175),_0x2121ea['message'],_0x22903e),_0x1a10c5(_0x4c09a7[_0x282b80(0x17f)](0x1f4,_0x2121ea[_0x282b80(0x174)]));});});},exports[a667_0x44620f(0x173)]=function(_0x2f4747){const _0x1fccb5=this;return new Promise(function(_0xe56919,_0x1a86a6){const _0x2f11d3=a667_0x2ffc;return db['SmsInteraction'][_0x2f11d3(0x18a)]({'where':_0x2f4747['options']?_0x2f4747[_0x2f11d3(0x188)][_0x2f11d3(0x186)]||null:null})[_0x2f11d3(0x180)](function(_0x3e99b5){const _0x2e0662=_0x2f11d3;if(_0x3e99b5)return _0x3e99b5[_0x2e0662(0x172)](_0x2f4747[_0x2e0662(0x184)]['ids'],{'through':_[_0x2e0662(0x183)](_0x2f4747[_0x2e0662(0x184)],[_0x2e0662(0x178),'id'])});})[_0x2f11d3(0x180)](function([_0xb516c2]){const _0x176976=_0x2f11d3;logger['info']('AddTags',_0x2f4747),logger[_0x176976(0x17b)](_0x176976(0x176),_0x2f4747,JSON[_0x176976(0x189)](_0xb516c2)),_0xe56919(_0xb516c2);})[_0x2f11d3(0x17a)](function(_0x283a0f){const _0x571a08=_0x2f11d3;logger[_0x571a08(0x17f)]('AddTags',_0x283a0f[_0x571a08(0x174)],_0x2f4747),_0x1a86a6(_0x1fccb5['error'](0x1f4,_0x283a0f[_0x571a08(0x174)]));});});}; \ No newline at end of file +const a667_0x4e2e=['lodash','catch','register','SmsInteraction','debug','error','options','../../mysqldb','where','addTags','AddTagsToSmsInteraction','ids','info','../../config/logger','../../rediscache','omit','findOne','rpc','stringify','AddTags','then','UpdateSmsInteraction','message'];(function(_0x8cd7a7,_0x132c8e){const _0x4e2ea6=function(_0x4dfac7){while(--_0x4dfac7){_0x8cd7a7['push'](_0x8cd7a7['shift']());}};_0x4e2ea6(++_0x132c8e);}(a667_0x4e2e,0x151));const a667_0x4dfa=function(_0x8cd7a7,_0x132c8e){_0x8cd7a7=_0x8cd7a7-0x1e3;let _0x4e2ea6=a667_0x4e2e[_0x8cd7a7];return _0x4e2ea6;};const a667_0x7d2e23=a667_0x4dfa;'use strict';const _=require(a667_0x7d2e23(0x1eb)),db=require(a667_0x7d2e23(0x1f2))['db'],logger=require(a667_0x7d2e23(0x1f8))(a667_0x7d2e23(0x1e5)),{getSocket}=require(a667_0x7d2e23(0x1f9)),socket=getSocket();require('./smsInteraction.socket')[a667_0x7d2e23(0x1ed)](socket),exports['UpdateSmsInteraction']=function(_0x486ea5){const _0x2ff917=this;return new Promise(function(_0x359f43,_0xb2b62b){const _0x3c228d=a667_0x4dfa;return db[_0x3c228d(0x1ee)]['update'](_0x486ea5['body'],{'raw':_0x486ea5[_0x3c228d(0x1f1)]?_0x486ea5[_0x3c228d(0x1f1)]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x486ea5[_0x3c228d(0x1f1)]?_0x486ea5[_0x3c228d(0x1f1)][_0x3c228d(0x1f3)]||null:null,'attributes':_0x486ea5[_0x3c228d(0x1f1)]?_0x486ea5[_0x3c228d(0x1f1)]['attributes']||null:null,'limit':_0x486ea5['options']?_0x486ea5[_0x3c228d(0x1f1)]['limit']||null:null})[_0x3c228d(0x1e8)](function(_0x46439c){const _0x3ca69b=_0x3c228d;logger[_0x3ca69b(0x1f7)](_0x3ca69b(0x1e9),_0x486ea5),logger[_0x3ca69b(0x1ef)](_0x3ca69b(0x1e9),_0x486ea5,JSON[_0x3ca69b(0x1e6)](_0x46439c)),_0x359f43(_0x46439c);})['catch'](function(_0xdd857e){const _0x521e4b=_0x3c228d;logger[_0x521e4b(0x1f0)]('UpdateSmsInteraction',_0xdd857e[_0x521e4b(0x1ea)],_0x486ea5),_0xb2b62b(_0x2ff917['error'](0x1f4,_0xdd857e[_0x521e4b(0x1ea)]));});});},exports[a667_0x7d2e23(0x1f5)]=function(_0x8893f1){const _0x5ddabe=this;return new Promise(function(_0x117722,_0x5d216c){const _0x356d23=a667_0x4dfa;return db[_0x356d23(0x1ee)][_0x356d23(0x1e4)]({'where':_0x8893f1[_0x356d23(0x1f1)]?_0x8893f1[_0x356d23(0x1f1)]['where']||null:null})[_0x356d23(0x1e8)](function(_0x3bd117){const _0xc55add=_0x356d23;if(_0x3bd117)return _0x3bd117[_0xc55add(0x1f4)](_0x8893f1['body'][_0xc55add(0x1f6)],{'through':_[_0xc55add(0x1e3)](_0x8893f1['body'],[_0xc55add(0x1f6),'id'])});})[_0x356d23(0x1e8)](function([_0x3610d2]){const _0x53c7f3=_0x356d23;logger['info'](_0x53c7f3(0x1e7),_0x8893f1),logger[_0x53c7f3(0x1ef)]('AddTags',_0x8893f1,JSON['stringify'](_0x3610d2)),_0x117722(_0x3610d2);})[_0x356d23(0x1ec)](function(_0x558f60){const _0x4265a5=_0x356d23;logger[_0x4265a5(0x1f0)](_0x4265a5(0x1e7),_0x558f60['message'],_0x8893f1),_0x5d216c(_0x5ddabe['error'](0x1f4,_0x558f60[_0x4265a5(0x1ea)]));});});}; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.socket.js b/server/api/smsInteraction/smsInteraction.socket.js index 460ff96..b8fb8a7 100644 --- a/server/api/smsInteraction/smsInteraction.socket.js +++ b/server/api/smsInteraction/smsInteraction.socket.js @@ -1 +1 @@ -const a668_0x34e1=['register','save','remove','length','smsInteraction:','./smsInteraction.events','update','emit'];(function(_0x1b5c49,_0x2e59c6){const _0x34e1f2=function(_0x5767c9){while(--_0x5767c9){_0x1b5c49['push'](_0x1b5c49['shift']());}};_0x34e1f2(++_0x2e59c6);}(a668_0x34e1,0x78));const a668_0x5767=function(_0x1b5c49,_0x2e59c6){_0x1b5c49=_0x1b5c49-0x85;let _0x34e1f2=a668_0x34e1[_0x1b5c49];return _0x34e1f2;};const a668_0x3e47b9=a668_0x5767;'use strict';const SmsInteractionEvents=require(a668_0x3e47b9(0x8a)),events=[a668_0x3e47b9(0x86),a668_0x3e47b9(0x87),a668_0x3e47b9(0x8b)];function createListener(_0xc9c606,_0x10603a){return function(_0x108156){const _0x5cfa51=a668_0x5767;_0x10603a[_0x5cfa51(0x8c)](_0xc9c606,_0x108156);};}exports[a668_0x3e47b9(0x85)]=function(_0x268361){const _0x507807=a668_0x3e47b9;for(let _0x586d7f=0x0,_0xb92b38=events[_0x507807(0x88)];_0x586d7f<_0xb92b38;_0x586d7f++){const _0x270b2a=events[_0x586d7f],_0x4d78a5=createListener(_0x507807(0x89)+_0x270b2a,_0x268361);SmsInteractionEvents['on'](_0x270b2a,_0x4d78a5);}}; \ No newline at end of file +const a668_0x33a4=['update','length','smsInteraction:','./smsInteraction.events','register','save','emit'];(function(_0x28afc5,_0x4ec600){const _0x33a4d3=function(_0xa9b9ce){while(--_0xa9b9ce){_0x28afc5['push'](_0x28afc5['shift']());}};_0x33a4d3(++_0x4ec600);}(a668_0x33a4,0x1eb));const a668_0xa9b9=function(_0x28afc5,_0x4ec600){_0x28afc5=_0x28afc5-0x152;let _0x33a4d3=a668_0x33a4[_0x28afc5];return _0x33a4d3;};const a668_0x24e160=a668_0xa9b9;'use strict';const SmsInteractionEvents=require(a668_0x24e160(0x154)),events=[a668_0x24e160(0x156),'remove',a668_0x24e160(0x158)];function createListener(_0x4b2d03,_0x2420ac){return function(_0x5cc1ac){const _0x158fd4=a668_0xa9b9;_0x2420ac[_0x158fd4(0x157)](_0x4b2d03,_0x5cc1ac);};}exports[a668_0x24e160(0x155)]=function(_0x3ca526){const _0x530601=a668_0x24e160;for(let _0xf611db=0x0,_0x3617db=events[_0x530601(0x152)];_0xf611db<_0x3617db;_0xf611db++){const _0xa43ef3=events[_0xf611db],_0x2dbaf2=createListener(_0x530601(0x153)+_0xa43ef3,_0x3ca526);SmsInteractionEvents['on'](_0xa43ef3,_0x2dbaf2);}}; \ No newline at end of file diff --git a/server/api/smsMessage/index.js b/server/api/smsMessage/index.js index df87630..dc473ed 100644 --- a/server/api/smsMessage/index.js +++ b/server/api/smsMessage/index.js @@ -1 +1 @@ -const a669_0x363e=['post','accept','destroy','isAuthenticated','/describe','/:id','create','get','/:id/status','delete','../../components/auth/service','sms','smsmessage:create','show','Router','put','express','../../components/interaction/service','update','exports','describe','tracked','./smsMessage.controller','/:id/reject','status','index'];(function(_0x26ef90,_0x391c2a){const _0x363e62=function(_0x5f2b6c){while(--_0x5f2b6c){_0x26ef90['push'](_0x26ef90['shift']());}};_0x363e62(++_0x391c2a);}(a669_0x363e,0xd0));const a669_0x5f2b=function(_0x26ef90,_0x391c2a){_0x26ef90=_0x26ef90-0x1aa;let _0x363e62=a669_0x363e[_0x26ef90];return _0x363e62;};const a669_0xec55b8=a669_0x5f2b;'use strict';const express=require(a669_0xec55b8(0x1ba)),router=express[a669_0xec55b8(0x1b8)](),auth=require(a669_0xec55b8(0x1b4)),interaction=require(a669_0xec55b8(0x1bb)),controller=require(a669_0xec55b8(0x1c0));router[a669_0xec55b8(0x1b1)]('/',auth[a669_0xec55b8(0x1ad)](),controller[a669_0xec55b8(0x1c3)]),router[a669_0xec55b8(0x1b1)](a669_0xec55b8(0x1ae),auth[a669_0xec55b8(0x1ad)](),controller[a669_0xec55b8(0x1be)]),router[a669_0xec55b8(0x1b1)](a669_0xec55b8(0x1af),auth[a669_0xec55b8(0x1ad)](),controller[a669_0xec55b8(0x1b7)]),router[a669_0xec55b8(0x1aa)]('/',auth['isAuthenticated'](),interaction[a669_0xec55b8(0x1bf)](a669_0xec55b8(0x1b5),a669_0xec55b8(0x1b6)),controller[a669_0xec55b8(0x1b0)]),router[a669_0xec55b8(0x1aa)](a669_0xec55b8(0x1b2),controller[a669_0xec55b8(0x1c2)]),router[a669_0xec55b8(0x1b9)](a669_0xec55b8(0x1af),auth[a669_0xec55b8(0x1ad)](),controller[a669_0xec55b8(0x1bc)]),router[a669_0xec55b8(0x1b9)]('/:id/accept',auth['isAuthenticated'](),controller[a669_0xec55b8(0x1ab)]),router['put'](a669_0xec55b8(0x1c1),auth[a669_0xec55b8(0x1ad)](),controller['reject']),router[a669_0xec55b8(0x1b3)](a669_0xec55b8(0x1af),auth[a669_0xec55b8(0x1ad)](),controller[a669_0xec55b8(0x1ac)]),module[a669_0xec55b8(0x1bd)]=router; \ No newline at end of file +const a669_0x5724=['status','/:id','describe','get','accept','smsmessage:create','express','/describe','isAuthenticated','index','Router','reject','/:id/reject','tracked','put','create','sms','/:id/status','post','show','../../components/interaction/service'];(function(_0x311a7d,_0x23e300){const _0x57249e=function(_0x174b3a){while(--_0x174b3a){_0x311a7d['push'](_0x311a7d['shift']());}};_0x57249e(++_0x23e300);}(a669_0x5724,0x116));const a669_0x174b=function(_0x311a7d,_0x23e300){_0x311a7d=_0x311a7d-0xe0;let _0x57249e=a669_0x5724[_0x311a7d];return _0x57249e;};const a669_0x31b4a7=a669_0x174b;'use strict';const express=require(a669_0x31b4a7(0xe1)),router=express[a669_0x31b4a7(0xe5)](),auth=require('../../components/auth/service'),interaction=require(a669_0x31b4a7(0xef)),controller=require('./smsMessage.controller');router['get']('/',auth[a669_0x31b4a7(0xe3)](),controller[a669_0x31b4a7(0xe4)]),router['get'](a669_0x31b4a7(0xe2),auth['isAuthenticated'](),controller[a669_0x31b4a7(0xf2)]),router[a669_0x31b4a7(0xf3)](a669_0x31b4a7(0xf1),auth[a669_0x31b4a7(0xe3)](),controller[a669_0x31b4a7(0xee)]),router[a669_0x31b4a7(0xed)]('/',auth[a669_0x31b4a7(0xe3)](),interaction[a669_0x31b4a7(0xe8)](a669_0x31b4a7(0xeb),a669_0x31b4a7(0xe0)),controller[a669_0x31b4a7(0xea)]),router[a669_0x31b4a7(0xed)](a669_0x31b4a7(0xec),controller[a669_0x31b4a7(0xf0)]),router[a669_0x31b4a7(0xe9)]('/:id',auth[a669_0x31b4a7(0xe3)](),controller['update']),router['put']('/:id/accept',auth[a669_0x31b4a7(0xe3)](),controller[a669_0x31b4a7(0xf4)]),router[a669_0x31b4a7(0xe9)](a669_0x31b4a7(0xe7),auth[a669_0x31b4a7(0xe3)](),controller[a669_0x31b4a7(0xe6)]),router['delete'](a669_0x31b4a7(0xf1),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.attributes.js b/server/api/smsMessage/smsMessage.attributes.js index 0a78a56..76a832f 100644 --- a/server/api/smsMessage/smsMessage.attributes.js +++ b/server/api/smsMessage/smsMessage.attributes.js @@ -1 +1 @@ -const a670_0x4fec=['exports','DATE','medium','ENUM','sequelize','attributes','STRING','out','BOOLEAN','TEXT'];(function(_0x6d147a,_0x24cfdd){const _0x4fecc3=function(_0x5cc161){while(--_0x5cc161){_0x6d147a['push'](_0x6d147a['shift']());}};_0x4fecc3(++_0x24cfdd);}(a670_0x4fec,0xee));const a670_0x5cc1=function(_0x6d147a,_0x24cfdd){_0x6d147a=_0x6d147a-0x1c5;let _0x4fecc3=a670_0x4fec[_0x6d147a];return _0x4fecc3;};const a670_0x59db63=a670_0x5cc1;'use strict';const {DataTypes}=require(a670_0x59db63(0x1cb)),attributes={'body':{'type':DataTypes[a670_0x59db63(0x1c6)]({'length':a670_0x59db63(0x1c9)}),'allowNull':![]},'read':{'type':DataTypes[a670_0x59db63(0x1c5)],'defaultValue':![]},'direction':{'type':DataTypes[a670_0x59db63(0x1ca)]('in',a670_0x59db63(0x1ce)),'defaultValue':a670_0x59db63(0x1ce),'allowNull':![]},'messageId':{'type':DataTypes[a670_0x59db63(0x1cd)](0xbe)},'phone':{'type':DataTypes['STRING']},'readAt':{'type':DataTypes[a670_0x59db63(0x1c8)]},'secret':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'providerName':{'type':DataTypes[a670_0x59db63(0x1cd)]},'providerResponse':{'type':DataTypes['TEXT']}};module[a670_0x59db63(0x1c7)][a670_0x59db63(0x1cc)]=attributes; \ No newline at end of file +const a670_0x434f=['DATE','out','sequelize','exports','TEXT','medium','BOOLEAN','ENUM'];(function(_0x603854,_0x4a6ca3){const _0x434f43=function(_0x12d949){while(--_0x12d949){_0x603854['push'](_0x603854['shift']());}};_0x434f43(++_0x4a6ca3);}(a670_0x434f,0x116));const a670_0x12d9=function(_0x603854,_0x4a6ca3){_0x603854=_0x603854-0xeb;let _0x434f43=a670_0x434f[_0x603854];return _0x434f43;};const a670_0x5825b8=a670_0x12d9;'use strict';const {DataTypes}=require(a670_0x5825b8(0xef)),attributes={'body':{'type':DataTypes['TEXT']({'length':a670_0x5825b8(0xf2)}),'allowNull':![]},'read':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'direction':{'type':DataTypes[a670_0x5825b8(0xec)]('in',a670_0x5825b8(0xee)),'defaultValue':a670_0x5825b8(0xee),'allowNull':![]},'messageId':{'type':DataTypes['STRING'](0xbe)},'phone':{'type':DataTypes['STRING']},'readAt':{'type':DataTypes[a670_0x5825b8(0xed)]},'secret':{'type':DataTypes[a670_0x5825b8(0xeb)],'defaultValue':![]},'providerName':{'type':DataTypes['STRING']},'providerResponse':{'type':DataTypes[a670_0x5825b8(0xf1)]}};module[a670_0x5825b8(0xf0)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.controller.js b/server/api/smsMessage/smsMessage.controller.js index 68dc9a6..c0c31d9 100644 --- a/server/api/smsMessage/smsMessage.controller.js +++ b/server/api/smsMessage/smsMessage.controller.js @@ -1 +1 @@ -const a671_0x4fd7=['util','UserId','fieldName','messageId','MessageSid','findOne','event','Contact','results','sequelize','isNil','info','offset','../../rediscache','code','message','result','CmContact','filters','include','interaction','name','client','format','accept','findAll','pick','http','catch','SmsMessage,\x20%s,\x20%s,\x20%s','request\x20sent','show','SmsMessage','plivio','status','then','request','create','model','count','../../config/logger','SmsInteractionId','stack','rejectmessage','infobip','user','acceptMessage','undefined','reject','destroy','DELIVERED','like','SmsAccount,\x20%s,\x20%s,\x20%s','groupName','where','RejectMessage','json','stringify','rows','./smsMessage.socket','MessageUUID','lodash','SmsMessage,\x20%s,\x20%s','body','role','delivered','debug','moment','sent','fields','SmsAccount','index','null','api','length','plivo','Content-Range','acceptmessage','EventManager','error','agent','attributes','includeAll','[SMSMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','manual','VIRTUAL','options','get','SIP/%s','AcceptMessage','map','update','rawAttributes','query','rejectMessage','order','SmsInteraction','keys','intersection','sms','describe','limit','read1stAt','merge','type','register','read','sort','params','set','SmsAccountId','channel','interface','end','YYYY-MM-DD\x20HH:mm:ss','inspect','filter'];(function(_0x8a91cc,_0x3f5c54){const _0x4fd770=function(_0x5ca103){while(--_0x5ca103){_0x8a91cc['push'](_0x8a91cc['shift']());}};_0x4fd770(++_0x3f5c54);}(a671_0x4fd7,0x10c));const a671_0x5ca1=function(_0x8a91cc,_0x3f5c54){_0x8a91cc=_0x8a91cc-0xd7;let _0x4fd770=a671_0x4fd7[_0x8a91cc];return _0x4fd770;};const a671_0x3009f8=a671_0x5ca1;'use strict';const moment=require(a671_0x3009f8(0xf8)),util=require(a671_0x3009f8(0x12a)),_=require(a671_0x3009f8(0xf2)),qs=require('../../components/parsers/qs'),logger=require(a671_0x3009f8(0xdd))(a671_0x3009f8(0xfe)),{getSocket}=require(a671_0x3009f8(0x137)),socket=getSocket(),{db}=require('../../mysqldb'),{Op}=require(a671_0x3009f8(0x133)),interaction_log=require(a671_0x3009f8(0xdd))('sms-interactions');require(a671_0x3009f8(0xf0))[a671_0x3009f8(0x11e)](socket);const jayson=require('jayson/promise'),client=jayson[a671_0x3009f8(0x140)][a671_0x3009f8(0x145)]({'port':0x232c}),client9002=jayson[a671_0x3009f8(0x140)][a671_0x3009f8(0x145)]({'port':0x232a});function respondWithRpcPromise(_0x367de5,_0x33597a,_0x58d46a,_0x4465ac){return new Promise(function(_0x174ae6,_0x4860bc){const _0x57ca67=a671_0x5ca1,_0xb75a05=_0x4465ac||client;return _0xb75a05[_0x57ca67(0xd9)](_0x367de5,_0x58d46a)[_0x57ca67(0xd8)](function(_0x55e75b){const _0x304e46=_0x57ca67;logger[_0x304e46(0x135)](_0x304e46(0xf3),_0x33597a,_0x304e46(0x148)),logger['debug']('SmsMessage,\x20%s,\x20%s,\x20%s',_0x33597a,_0x304e46(0x148),JSON[_0x304e46(0xee)](_0x55e75b));if(_0x55e75b[_0x304e46(0x104)]){if(_0x55e75b[_0x304e46(0x104)][_0x304e46(0x138)]===0x1f4)return logger[_0x304e46(0x104)](_0x304e46(0xf3),_0x33597a,_0x55e75b[_0x304e46(0x104)][_0x304e46(0x139)]),_0x4860bc(_0x55e75b[_0x304e46(0x104)][_0x304e46(0x139)]);return logger[_0x304e46(0x104)](_0x304e46(0xf3),_0x33597a,_0x55e75b[_0x304e46(0x104)][_0x304e46(0x139)]),_0x174ae6(_0x55e75b['error'][_0x304e46(0x139)]);}else logger[_0x304e46(0x135)](_0x304e46(0xf3),_0x33597a,'request\x20sent'),_0x174ae6(_0x55e75b[_0x304e46(0x13a)][_0x304e46(0x139)]);})[_0x57ca67(0x146)](function(_0x361b95){const _0x177931=_0x57ca67;logger[_0x177931(0x104)](_0x177931(0xf3),_0x33597a,_0x361b95),_0x4860bc(_0x361b95);});});}function respondWithResult(_0x35bb1a,_0x257612){return _0x257612=_0x257612||0xc8,function(_0x300228){const _0x44c661=a671_0x5ca1;if(_0x300228)return _0x35bb1a['status'](_0x257612)[_0x44c661(0xed)](_0x300228);};}function respondWithFilteredResult(_0x3cdfdb,_0x411570){return function(_0x2f6cf1){const _0x49e825=a671_0x5ca1;if(_0x2f6cf1){const _0xede22d=_0x2f6cf1[_0x49e825(0xdc)],_0x5cbda5=_0x411570[_0x49e825(0x136)];let _0x44f0e1=_0x411570[_0x49e825(0x136)]+_0x411570['limit'],_0x24e611;return _0x44f0e1>=_0xede22d?(_0x44f0e1=_0xede22d,_0x24e611=0xc8):_0x24e611=0xce,_0x3cdfdb['status'](_0x24e611),_0x3cdfdb[_0x49e825(0x122)](_0x49e825(0x101),_0x5cbda5+'-'+_0x44f0e1+'/'+_0xede22d)['json'](_0x2f6cf1);}return null;};}function saveUpdates(_0x103130){return function(_0xf90dd8){const _0x496697=a671_0x5ca1;if(_0xf90dd8)return _0xf90dd8[_0x496697(0x110)](_0x103130)[_0x496697(0xd8)](function(_0x31e44b){return _0x31e44b;});return null;};}function removeEntity(_0x5616b9){return function(_0x33bd7c){const _0x2357ba=a671_0x5ca1;if(_0x33bd7c)return _0x33bd7c[_0x2357ba(0xe6)]()['then'](function(){const _0xf4f49f=_0x2357ba;_0x5616b9['status'](0xcc)[_0xf4f49f(0x126)]();});};}function handleEntityNotFound(_0x3af13f){return function(_0x2244c3){return!_0x2244c3&&_0x3af13f['sendStatus'](0x194),_0x2244c3;};}function handleError(_0x27c903,_0x22a49b){return _0x22a49b=_0x22a49b||0x1f4,function(_0x3c2ffe){const _0x3e63a6=a671_0x5ca1;logger[_0x3e63a6(0x104)](_0x3c2ffe[_0x3e63a6(0xdf)]),_0x3c2ffe[_0x3e63a6(0x13f)]&&delete _0x3c2ffe[_0x3e63a6(0x13f)],_0x27c903['status'](_0x22a49b)['send'](_0x3c2ffe);};}exports[a671_0x3009f8(0xfc)]=function(_0x5e7b4b,_0x3bea9c){const _0x304de8=a671_0x3009f8;let _0xb8ff42={};const _0x3c5ef1={},_0x4496e9={'count':0x0,'rows':[]},_0x7ded22=_[_0x304de8(0x10f)](db[_0x304de8(0x14a)][_0x304de8(0x111)],function(_0x32cef6){const _0x5dcda1=_0x304de8;return{'name':_0x32cef6[_0x5dcda1(0x12c)],'type':_0x32cef6[_0x5dcda1(0x11d)]['key']};});_0x3c5ef1['model']=_[_0x304de8(0x10f)](_0x7ded22,_0x304de8(0x13f)),_0x3c5ef1[_0x304de8(0x112)]=_[_0x304de8(0x116)](_0x5e7b4b[_0x304de8(0x112)]),_0x3c5ef1[_0x304de8(0x13c)]=_['intersection'](_0x3c5ef1['model'],_0x3c5ef1['query']),_0xb8ff42[_0x304de8(0x106)]=_['intersection'](_0x3c5ef1['model'],qs['fields'](_0x5e7b4b[_0x304de8(0x112)]['fields'])),_0xb8ff42[_0x304de8(0x106)]=_0xb8ff42[_0x304de8(0x106)][_0x304de8(0xff)]?_0xb8ff42[_0x304de8(0x106)]:_0x3c5ef1[_0x304de8(0xdb)];typeof _0x5e7b4b[_0x304de8(0x112)]['nolimit']===_0x304de8(0xe4)&&(_0xb8ff42['limit']=qs[_0x304de8(0x11a)](_0x5e7b4b[_0x304de8(0x112)][_0x304de8(0x11a)]),_0xb8ff42['offset']=qs[_0x304de8(0x136)](_0x5e7b4b['query'][_0x304de8(0x136)]));_0xb8ff42[_0x304de8(0x114)]=qs[_0x304de8(0x120)](_0x5e7b4b[_0x304de8(0x112)][_0x304de8(0x120)]),_0xb8ff42[_0x304de8(0xeb)]=qs[_0x304de8(0x13c)](_[_0x304de8(0x144)](_0x5e7b4b[_0x304de8(0x112)],_0x3c5ef1[_0x304de8(0x13c)]),_0x7ded22);_0x5e7b4b[_0x304de8(0x112)]['filter']&&(_0xb8ff42[_0x304de8(0xeb)]=_[_0x304de8(0x11c)](_0xb8ff42[_0x304de8(0xeb)],{[Op['or']]:_['map'](_0x7ded22,function(_0x167995){const _0x2fa3d2=_0x304de8;if(_0x167995['type']!==_0x2fa3d2(0x10a)){const _0x1d8ace={};return _0x1d8ace[_0x167995[_0x2fa3d2(0x13f)]]={[Op[_0x2fa3d2(0xe8)]]:'%'+_0x5e7b4b[_0x2fa3d2(0x112)][_0x2fa3d2(0x129)]+'%'},_0x1d8ace;}})}));_0xb8ff42=_['merge']({},_0xb8ff42,_0x5e7b4b[_0x304de8(0x10b)]);const _0x328a41={'where':_0xb8ff42[_0x304de8(0xeb)]};return db[_0x304de8(0x14a)][_0x304de8(0xdc)](_0x328a41)[_0x304de8(0xd8)](function(_0x3899a1){const _0x2c5c5a=_0x304de8;return _0x4496e9[_0x2c5c5a(0xdc)]=_0x3899a1,_0x5e7b4b[_0x2c5c5a(0x112)]['includeAll']&&(_0xb8ff42[_0x2c5c5a(0x13d)]=[{'all':!![]}]),db[_0x2c5c5a(0x14a)][_0x2c5c5a(0x143)](_0xb8ff42);})[_0x304de8(0xd8)](function(_0x5cde24){const _0x14aafc=_0x304de8;return _0x4496e9[_0x14aafc(0xef)]=_0x5cde24,_0x4496e9;})[_0x304de8(0xd8)](respondWithFilteredResult(_0x3bea9c,_0xb8ff42))[_0x304de8(0x146)](handleError(_0x3bea9c,null));},exports[a671_0x3009f8(0x149)]=function(_0x54d159,_0x3d25d3){const _0x3a972a=a671_0x3009f8;let _0x161b6e={'raw':!![],'where':{'id':_0x54d159[_0x3a972a(0x121)]['id']}};const _0x4b6417={};return _0x4b6417[_0x3a972a(0xdb)]=_['keys'](db[_0x3a972a(0x14a)][_0x3a972a(0x111)]),_0x4b6417['query']=_[_0x3a972a(0x116)](_0x54d159[_0x3a972a(0x112)]),_0x4b6417[_0x3a972a(0x13c)]=_[_0x3a972a(0x117)](_0x4b6417[_0x3a972a(0xdb)],_0x4b6417[_0x3a972a(0x112)]),_0x161b6e[_0x3a972a(0x106)]=_[_0x3a972a(0x117)](_0x4b6417['model'],qs[_0x3a972a(0xfa)](_0x54d159[_0x3a972a(0x112)][_0x3a972a(0xfa)])),_0x161b6e[_0x3a972a(0x106)]=_0x161b6e['attributes'][_0x3a972a(0xff)]?_0x161b6e[_0x3a972a(0x106)]:_0x4b6417[_0x3a972a(0xdb)],_0x54d159[_0x3a972a(0x112)][_0x3a972a(0x107)]&&(_0x161b6e[_0x3a972a(0x13d)]=[{'all':!![]}]),_0x161b6e=_[_0x3a972a(0x11c)]({},_0x161b6e,_0x54d159[_0x3a972a(0x10b)]),db[_0x3a972a(0x14a)][_0x3a972a(0x12f)](_0x161b6e)[_0x3a972a(0xd8)](handleEntityNotFound(_0x3d25d3,null))[_0x3a972a(0xd8)](respondWithResult(_0x3d25d3,null))['catch'](handleError(_0x3d25d3,null));},exports['create']=function(_0x88dc5f,_0x49043b){const _0x36c19e=a671_0x3009f8;return db[_0x36c19e(0x14a)][_0x36c19e(0xda)](_0x88dc5f['body'],{})[_0x36c19e(0xd8)](respondWithResult(_0x49043b,0xc9))['catch'](handleError(_0x49043b,null));},exports['update']=function(_0x46f0db,_0xce0e6){const _0x2218fe=a671_0x3009f8;return _0x46f0db[_0x2218fe(0xf4)]['id']&&delete _0x46f0db[_0x2218fe(0xf4)]['id'],db['SmsMessage'][_0x2218fe(0x12f)]({'where':{'id':_0x46f0db[_0x2218fe(0x121)]['id']}})[_0x2218fe(0xd8)](handleEntityNotFound(_0xce0e6,null))[_0x2218fe(0xd8)](saveUpdates(_0x46f0db['body'],null))[_0x2218fe(0xd8)](respondWithResult(_0xce0e6,null))[_0x2218fe(0x146)](handleError(_0xce0e6,null));},exports[a671_0x3009f8(0xe6)]=function(_0x30a113,_0x19aa56){const _0x4a5074=a671_0x3009f8;return db[_0x4a5074(0x14a)][_0x4a5074(0x12f)]({'where':{'id':_0x30a113['params']['id']}})[_0x4a5074(0xd8)](handleEntityNotFound(_0x19aa56,null))[_0x4a5074(0xd8)](removeEntity(_0x19aa56,null))[_0x4a5074(0x146)](handleError(_0x19aa56,null));},exports[a671_0x3009f8(0x119)]=function(_0x229c90,_0x171d71){const _0x3f2831=a671_0x3009f8;return db['SmsMessage'][_0x3f2831(0x119)]()['then'](respondWithResult(_0x171d71,null))[_0x3f2831(0x146)](handleError(_0x171d71,null));},exports[a671_0x3009f8(0x142)]=function(_0x39ab6e,_0x11c2aa){const _0x421655=a671_0x3009f8,_0x2e6db5={'channel':_0x421655(0x118)};return _0x39ab6e[_0x421655(0xf4)]['id']&&delete _0x39ab6e[_0x421655(0xf4)]['id'],_0x39ab6e[_0x421655(0xf4)][_0x421655(0x11f)]=!![],_0x39ab6e[_0x421655(0xf4)]['readAt']=moment()[_0x421655(0x141)](_0x421655(0x127)),_0x39ab6e[_0x421655(0xf4)]['UserId']=_0x39ab6e[_0x421655(0xf4)][_0x421655(0x12b)]||_0x39ab6e[_0x421655(0xe2)]['id'],db[_0x421655(0x14a)][_0x421655(0x12f)]({'where':{'id':_0x39ab6e['params']['id'],'UserId':null},'include':[{'model':db[_0x421655(0x13b)],'as':_0x421655(0x131)}]})[_0x421655(0xd8)](handleEntityNotFound(_0x11c2aa,null))[_0x421655(0xd8)](saveUpdates(_0x39ab6e[_0x421655(0xf4)],null))['then'](function(_0x17af16){const _0x4d5d41=_0x421655;if(_0x17af16)return _0x2e6db5[_0x4d5d41(0x139)]=_0x17af16[_0x4d5d41(0x10c)]({'plain':!![]}),db['SmsInteraction'][_0x4d5d41(0x12f)]({'where':{'id':_0x17af16[_0x4d5d41(0xde)]}});return null;})['then'](handleEntityNotFound(_0x11c2aa,null))[_0x421655(0xd8)](function(_0x10f5b9){const _0x5cda15=_0x421655;if(_0x10f5b9)return _0x10f5b9['update']({'UserId':_0x39ab6e[_0x5cda15(0xf4)][_0x5cda15(0x12b)],'read1stAt':_[_0x5cda15(0x134)](_0x10f5b9[_0x5cda15(0x11b)])?moment()[_0x5cda15(0x141)](_0x5cda15(0x127)):undefined});return null;})['then'](function(_0x25995b){const _0x187180=_0x421655;if(_0x25995b)return _0x2e6db5['interaction']=_0x25995b[_0x187180(0x10c)]({'plain':!![]}),interaction_log['info']('[SMSMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x39ab6e[_0x187180(0xe2)]['id'],_0x39ab6e['user'][_0x187180(0x13f)],_0x39ab6e['user']['role'],_0x2e6db5[_0x187180(0x13e)]['id'],_0x39ab6e['body']?JSON[_0x187180(0xee)](_0x39ab6e[_0x187180(0xf4)]):_0x187180(0xfd)),respondWithRpcPromise(_0x187180(0x10e),_0x187180(0xe3),_0x2e6db5);return null;})[_0x421655(0xd8)](function(_0x1a8566){const _0x27722b=_0x421655;if(_0x1a8566){if(_0x39ab6e['body'][_0x27722b(0x109)])return _0x2e6db5['message'][_0x27722b(0x125)]=util[_0x27722b(0x141)](_0x27722b(0x10d),_0x39ab6e['user']['name']),_0x2e6db5[_0x27722b(0x139)][_0x27722b(0x124)]=_0x2e6db5[_0x27722b(0x124)],_0x2e6db5[_0x27722b(0x139)][_0x27722b(0x130)]='accept',respondWithRpcPromise(_0x27722b(0x103),_0x27722b(0x103),{'event':_0x27722b(0x102),'message':_0x2e6db5[_0x27722b(0x139)]},client9002)['then'](function(){return _0x2e6db5;});return _0x2e6db5;}return null;})[_0x421655(0xd8)](respondWithResult(_0x11c2aa,null))[_0x421655(0x146)](handleError(_0x11c2aa,null));},exports['reject']=function(_0xe06c7a,_0x44ddfb){const _0x38174b=a671_0x3009f8,_0x30ab4e={'agent':{},'channel':_0x38174b(0x118)};return _0xe06c7a['body']['id']&&delete _0xe06c7a['body']['id'],_0xe06c7a[_0x38174b(0xf4)][_0x38174b(0x12b)]=_0xe06c7a[_0x38174b(0xf4)][_0x38174b(0x12b)]||_0xe06c7a[_0x38174b(0xe2)]['id'],_0x30ab4e[_0x38174b(0x105)]['id']=_0xe06c7a[_0x38174b(0xf4)][_0x38174b(0x12b)],db['SmsMessage']['findOne']({'where':{'id':_0xe06c7a[_0x38174b(0x121)]['id'],'UserId':null}})[_0x38174b(0xd8)](handleEntityNotFound(_0x44ddfb,null))[_0x38174b(0xd8)](function(_0x2f44c4){const _0x5558ce=_0x38174b;if(_0x2f44c4)return _0x30ab4e[_0x5558ce(0x139)]=_0x2f44c4[_0x5558ce(0x10c)]({'plain':!![]}),db[_0x5558ce(0x115)]['findOne']({'where':{'id':_0x2f44c4[_0x5558ce(0xde)]}});return null;})['then'](handleEntityNotFound(_0x44ddfb,null))[_0x38174b(0xd8)](function(_0x337539){const _0x1aaa89=_0x38174b;if(_0x337539)return _0x30ab4e[_0x1aaa89(0x13e)]=_0x337539[_0x1aaa89(0x10c)]({'plain':!![]}),interaction_log[_0x1aaa89(0x135)](_0x1aaa89(0x108),_0xe06c7a[_0x1aaa89(0xe2)]['id'],_0xe06c7a[_0x1aaa89(0xe2)][_0x1aaa89(0x13f)],_0xe06c7a[_0x1aaa89(0xe2)][_0x1aaa89(0xf5)],_0x30ab4e[_0x1aaa89(0x13e)]['id'],_0xe06c7a['body']?JSON['stringify'](_0xe06c7a[_0x1aaa89(0xf4)]):'null'),respondWithRpcPromise(_0x1aaa89(0xec),_0x1aaa89(0x113),_0x30ab4e);return null;})[_0x38174b(0xd8)](function(_0xe4856c){const _0x29bb31=_0x38174b;if(_0xe4856c)return _0xe4856c[_0x29bb31(0x139)][_0x29bb31(0x125)]=util['format']('SIP/%s',_0xe06c7a[_0x29bb31(0xe2)][_0x29bb31(0x13f)]),_0xe4856c['message'][_0x29bb31(0x124)]=_0x30ab4e[_0x29bb31(0x124)],_0xe4856c[_0x29bb31(0x139)][_0x29bb31(0x130)]=_0x29bb31(0xe5),respondWithRpcPromise('EventManager',_0x29bb31(0x103),{'event':_0x29bb31(0xe0),'message':_0xe4856c['message']},client9002),_0x30ab4e;return null;})[_0x38174b(0xd8)](respondWithResult(_0x44ddfb,null))[_0x38174b(0x146)](handleError(_0x44ddfb,null));},exports['status']=function(_0x409b75,_0x5239fa){const _0x501a8c=a671_0x3009f8;_0x409b75[_0x501a8c(0xf4)]['id']&&delete _0x409b75[_0x501a8c(0xf4)]['id'];let _0x3fc348;return db[_0x501a8c(0x14a)][_0x501a8c(0x12f)]({'where':{'id':_0x409b75['params']['id']}})[_0x501a8c(0xd8)](handleEntityNotFound(_0x5239fa,null))[_0x501a8c(0xd8)](function(_0x29199d){const _0x3a6ea4=_0x501a8c;if(_0x29199d)return _0x3fc348=_0x29199d,db[_0x3a6ea4(0xfb)]['findOne']({'where':{'id':_0x29199d[_0x3a6ea4(0x123)]}});})[_0x501a8c(0xd8)](handleEntityNotFound(_0x5239fa,null))[_0x501a8c(0xd8)](function(_0x1e1915){const _0x16c320=_0x501a8c;if(_0x1e1915){logger[_0x16c320(0xf7)](_0x16c320(0x147),_0x16c320(0xd7),'received\x20delivery\x20report\x20from',_0x1e1915[_0x16c320(0x11d)],util[_0x16c320(0x128)](_0x409b75[_0x16c320(0xf4)],{'showHidden':![],'depth':null}));switch(_0x1e1915[_0x16c320(0x11d)]){case'twilio':if(_0x409b75[_0x16c320(0xf4)][_0x16c320(0x12e)]&&_0x409b75[_0x16c320(0xf4)][_0x16c320(0x12e)]===_0x3fc348[_0x16c320(0x12d)])return _0x3fc348[_0x16c320(0x110)]({'read':!![]});else logger[_0x16c320(0x104)](_0x16c320(0xe9),_0x16c320(0xd7),'twilio',util[_0x16c320(0x128)](_0x409b75['body'],{'showHidden':![],'depth':null}));break;case _0x16c320(0x100):if(_0x409b75['body'][_0x16c320(0xf1)]&&_0x409b75[_0x16c320(0xf4)][_0x16c320(0xf1)]===_0x3fc348['messageId']&&_['indexOf']([_0x16c320(0xf9),_0x16c320(0xf6)],_0x409b75[_0x16c320(0xf4)]['Status'])>=0x0)return _0x3fc348['update']({'read':!![]});else logger[_0x16c320(0x104)](_0x16c320(0xe9),'status',_0x16c320(0x14b),util['inspect'](_0x409b75[_0x16c320(0xf4)],{'showHidden':![],'depth':null}));break;case _0x16c320(0xe1):{const _0x389486=_0x409b75[_0x16c320(0xf4)][_0x16c320(0x132)][0x0];if(_0x389486[_0x16c320(0xd7)][_0x16c320(0xea)]===_0x16c320(0xe7))return _0x3fc348[_0x16c320(0x110)]({'read':!![]});else logger[_0x16c320(0x104)](_0x16c320(0xe9),_0x16c320(0xd7),_0x16c320(0xe1),util[_0x16c320(0x128)](_0x409b75[_0x16c320(0xf4)],{'showHidden':![],'depth':null}));}break;}return _0x3fc348;}})[_0x501a8c(0xd8)](respondWithResult(_0x5239fa,null))['catch'](handleError(_0x5239fa,null));}; \ No newline at end of file +const a671_0x48f3=['plivo','info','body','filters','index','accept','read','interaction','debug','delivered','SmsInteraction','register','manual','http','Contact','fields','[SMSMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','./smsMessage.socket','UserId','RejectMessage','request','error','offset','isNil','Status','update','findAll','includeAll','sms','SmsAccountId','show','like','type','intersection','describe','model','lodash','limit','messageId','attributes','Content-Range','map','SmsInteractionId','fieldName','result','destroy','filter','../../rediscache','infobip','YYYY-MM-DD\x20HH:mm:ss','status','agent','acceptMessage','user','DELIVERED','sort','get','sendStatus','findOne','sent','where','MessageSid','interface','query','code','catch','stringify','../../components/parsers/qs','set','../../config/logger','rejectmessage','../../mysqldb','nolimit','role','read1stAt','SmsMessage,\x20%s,\x20%s,\x20%s','request\x20sent','readAt','end','merge','length','params','client','inspect','CmContact','indexOf','moment','event','name','channel','then','reject','rawAttributes','undefined','pick','acceptmessage','groupName','include','SmsAccount,\x20%s,\x20%s,\x20%s','count','json','null','twilio','SmsMessage,\x20%s,\x20%s','EventManager','format','SIP/%s','SmsMessage','rejectMessage','MessageUUID','received\x20delivery\x20report\x20from','message','[SMSMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','options','rows','create','results'];(function(_0xd74a93,_0x4931e9){const _0x48f32d=function(_0x37068e){while(--_0x37068e){_0xd74a93['push'](_0xd74a93['shift']());}};_0x48f32d(++_0x4931e9);}(a671_0x48f3,0x12f));const a671_0x3706=function(_0xd74a93,_0x4931e9){_0xd74a93=_0xd74a93-0x1bd;let _0x48f32d=a671_0x48f3[_0xd74a93];return _0x48f32d;};const a671_0x14eeb8=a671_0x3706;'use strict';const moment=require(a671_0x14eeb8(0x1ce)),util=require('util'),_=require(a671_0x14eeb8(0x211)),qs=require(a671_0x14eeb8(0x230)),logger=require(a671_0x14eeb8(0x1bd))('api'),{getSocket}=require(a671_0x14eeb8(0x21c)),socket=getSocket(),{db}=require(a671_0x14eeb8(0x1bf)),{Op}=require('sequelize'),interaction_log=require('../../config/logger')('sms-interactions');require(a671_0x14eeb8(0x1fe))[a671_0x14eeb8(0x1f8)](socket);const jayson=require('jayson/promise'),client=jayson[a671_0x14eeb8(0x1ca)][a671_0x14eeb8(0x1fa)]({'port':0x232c}),client9002=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x1daf68,_0x154c09,_0x213ef8,_0xea93d6){return new Promise(function(_0x34496d,_0x4c1678){const _0x59e529=a671_0x3706,_0x36912a=_0xea93d6||client;return _0x36912a[_0x59e529(0x201)](_0x1daf68,_0x213ef8)[_0x59e529(0x1d2)](function(_0x24d361){const _0x91c7b8=_0x59e529;logger['info'](_0x91c7b8(0x1df),_0x154c09,_0x91c7b8(0x1c4)),logger['debug'](_0x91c7b8(0x1c3),_0x154c09,_0x91c7b8(0x1c4),JSON[_0x91c7b8(0x22f)](_0x24d361));if(_0x24d361[_0x91c7b8(0x202)]){if(_0x24d361[_0x91c7b8(0x202)][_0x91c7b8(0x22d)]===0x1f4)return logger['error']('SmsMessage,\x20%s,\x20%s',_0x154c09,_0x24d361[_0x91c7b8(0x202)][_0x91c7b8(0x1e7)]),_0x4c1678(_0x24d361[_0x91c7b8(0x202)][_0x91c7b8(0x1e7)]);return logger[_0x91c7b8(0x202)]('SmsMessage,\x20%s,\x20%s',_0x154c09,_0x24d361[_0x91c7b8(0x202)]['message']),_0x34496d(_0x24d361[_0x91c7b8(0x202)][_0x91c7b8(0x1e7)]);}else logger['info'](_0x91c7b8(0x1df),_0x154c09,_0x91c7b8(0x1c4)),_0x34496d(_0x24d361[_0x91c7b8(0x219)][_0x91c7b8(0x1e7)]);})['catch'](function(_0x54e052){const _0x541723=_0x59e529;logger[_0x541723(0x202)](_0x541723(0x1df),_0x154c09,_0x54e052),_0x4c1678(_0x54e052);});});}function respondWithResult(_0x50c4f6,_0x4a3933){return _0x4a3933=_0x4a3933||0xc8,function(_0x4b0f77){const _0x11d8c0=a671_0x3706;if(_0x4b0f77)return _0x50c4f6['status'](_0x4a3933)[_0x11d8c0(0x1dc)](_0x4b0f77);};}function respondWithFilteredResult(_0x249200,_0x55be5b){return function(_0x390a6d){const _0x35d286=a671_0x3706;if(_0x390a6d){const _0x2454e2=_0x390a6d[_0x35d286(0x1db)],_0x29b19a=_0x55be5b[_0x35d286(0x203)];let _0x4693da=_0x55be5b[_0x35d286(0x203)]+_0x55be5b[_0x35d286(0x212)],_0x2d0db9;return _0x4693da>=_0x2454e2?(_0x4693da=_0x2454e2,_0x2d0db9=0xc8):_0x2d0db9=0xce,_0x249200[_0x35d286(0x21f)](_0x2d0db9),_0x249200[_0x35d286(0x231)](_0x35d286(0x215),_0x29b19a+'-'+_0x4693da+'/'+_0x2454e2)[_0x35d286(0x1dc)](_0x390a6d);}return null;};}function saveUpdates(_0x3f396a){return function(_0x2635ee){const _0x40f671=a671_0x3706;if(_0x2635ee)return _0x2635ee[_0x40f671(0x206)](_0x3f396a)['then'](function(_0x27129f){return _0x27129f;});return null;};}function removeEntity(_0x57feff){return function(_0x83ccfd){const _0x3283da=a671_0x3706;if(_0x83ccfd)return _0x83ccfd[_0x3283da(0x21a)]()[_0x3283da(0x1d2)](function(){const _0x197a72=_0x3283da;_0x57feff[_0x197a72(0x21f)](0xcc)[_0x197a72(0x1c6)]();});};}function handleEntityNotFound(_0xe80856){return function(_0x44bc7c){const _0x10d0ca=a671_0x3706;return!_0x44bc7c&&_0xe80856[_0x10d0ca(0x226)](0x194),_0x44bc7c;};}function handleError(_0x19ab73,_0x393aee){return _0x393aee=_0x393aee||0x1f4,function(_0x27024e){const _0x443868=a671_0x3706;logger[_0x443868(0x202)](_0x27024e['stack']),_0x27024e['name']&&delete _0x27024e['name'],_0x19ab73[_0x443868(0x21f)](_0x393aee)['send'](_0x27024e);};}exports[a671_0x14eeb8(0x1f1)]=function(_0x30ea0d,_0x3a1ffa){const _0x48a721=a671_0x14eeb8;let _0x316c2f={};const _0x528e9c={},_0x58047f={'count':0x0,'rows':[]},_0xa7ba96=_[_0x48a721(0x216)](db['SmsMessage']['rawAttributes'],function(_0x1ed2f4){const _0x3baa3f=_0x48a721;return{'name':_0x1ed2f4[_0x3baa3f(0x218)],'type':_0x1ed2f4[_0x3baa3f(0x20d)]['key']};});_0x528e9c[_0x48a721(0x210)]=_[_0x48a721(0x216)](_0xa7ba96,_0x48a721(0x1d0)),_0x528e9c[_0x48a721(0x22c)]=_['keys'](_0x30ea0d['query']),_0x528e9c[_0x48a721(0x1f0)]=_[_0x48a721(0x20e)](_0x528e9c[_0x48a721(0x210)],_0x528e9c[_0x48a721(0x22c)]),_0x316c2f[_0x48a721(0x214)]=_[_0x48a721(0x20e)](_0x528e9c[_0x48a721(0x210)],qs['fields'](_0x30ea0d[_0x48a721(0x22c)][_0x48a721(0x1fc)])),_0x316c2f[_0x48a721(0x214)]=_0x316c2f['attributes'][_0x48a721(0x1c8)]?_0x316c2f[_0x48a721(0x214)]:_0x528e9c[_0x48a721(0x210)];typeof _0x30ea0d['query'][_0x48a721(0x1c0)]===_0x48a721(0x1d5)&&(_0x316c2f['limit']=qs[_0x48a721(0x212)](_0x30ea0d[_0x48a721(0x22c)]['limit']),_0x316c2f[_0x48a721(0x203)]=qs['offset'](_0x30ea0d[_0x48a721(0x22c)]['offset']));_0x316c2f['order']=qs[_0x48a721(0x224)](_0x30ea0d[_0x48a721(0x22c)][_0x48a721(0x224)]),_0x316c2f[_0x48a721(0x229)]=qs[_0x48a721(0x1f0)](_[_0x48a721(0x1d6)](_0x30ea0d[_0x48a721(0x22c)],_0x528e9c[_0x48a721(0x1f0)]),_0xa7ba96);_0x30ea0d[_0x48a721(0x22c)]['filter']&&(_0x316c2f[_0x48a721(0x229)]=_[_0x48a721(0x1c7)](_0x316c2f[_0x48a721(0x229)],{[Op['or']]:_[_0x48a721(0x216)](_0xa7ba96,function(_0x136e97){const _0x22e3c9=_0x48a721;if(_0x136e97[_0x22e3c9(0x20d)]!=='VIRTUAL'){const _0x4d85ac={};return _0x4d85ac[_0x136e97[_0x22e3c9(0x1d0)]]={[Op[_0x22e3c9(0x20c)]]:'%'+_0x30ea0d[_0x22e3c9(0x22c)][_0x22e3c9(0x21b)]+'%'},_0x4d85ac;}})}));_0x316c2f=_[_0x48a721(0x1c7)]({},_0x316c2f,_0x30ea0d[_0x48a721(0x1e9)]);const _0x3db27f={'where':_0x316c2f[_0x48a721(0x229)]};return db['SmsMessage'][_0x48a721(0x1db)](_0x3db27f)[_0x48a721(0x1d2)](function(_0x36997e){const _0x182ff7=_0x48a721;return _0x58047f[_0x182ff7(0x1db)]=_0x36997e,_0x30ea0d['query'][_0x182ff7(0x208)]&&(_0x316c2f[_0x182ff7(0x1d9)]=[{'all':!![]}]),db[_0x182ff7(0x1e3)][_0x182ff7(0x207)](_0x316c2f);})[_0x48a721(0x1d2)](function(_0x1f113f){const _0x42e1df=_0x48a721;return _0x58047f[_0x42e1df(0x1ea)]=_0x1f113f,_0x58047f;})['then'](respondWithFilteredResult(_0x3a1ffa,_0x316c2f))[_0x48a721(0x22e)](handleError(_0x3a1ffa,null));},exports[a671_0x14eeb8(0x20b)]=function(_0x37ecc9,_0x373922){const _0x6aa1f7=a671_0x14eeb8;let _0x30e164={'raw':!![],'where':{'id':_0x37ecc9[_0x6aa1f7(0x1c9)]['id']}};const _0x53bd7f={};return _0x53bd7f['model']=_['keys'](db['SmsMessage'][_0x6aa1f7(0x1d4)]),_0x53bd7f[_0x6aa1f7(0x22c)]=_['keys'](_0x37ecc9[_0x6aa1f7(0x22c)]),_0x53bd7f['filters']=_[_0x6aa1f7(0x20e)](_0x53bd7f[_0x6aa1f7(0x210)],_0x53bd7f[_0x6aa1f7(0x22c)]),_0x30e164[_0x6aa1f7(0x214)]=_['intersection'](_0x53bd7f[_0x6aa1f7(0x210)],qs[_0x6aa1f7(0x1fc)](_0x37ecc9['query'][_0x6aa1f7(0x1fc)])),_0x30e164[_0x6aa1f7(0x214)]=_0x30e164[_0x6aa1f7(0x214)][_0x6aa1f7(0x1c8)]?_0x30e164[_0x6aa1f7(0x214)]:_0x53bd7f[_0x6aa1f7(0x210)],_0x37ecc9['query'][_0x6aa1f7(0x208)]&&(_0x30e164[_0x6aa1f7(0x1d9)]=[{'all':!![]}]),_0x30e164=_['merge']({},_0x30e164,_0x37ecc9['options']),db['SmsMessage'][_0x6aa1f7(0x227)](_0x30e164)[_0x6aa1f7(0x1d2)](handleEntityNotFound(_0x373922,null))[_0x6aa1f7(0x1d2)](respondWithResult(_0x373922,null))[_0x6aa1f7(0x22e)](handleError(_0x373922,null));},exports['create']=function(_0x37892d,_0x3c3f0c){const _0x20cac3=a671_0x14eeb8;return db[_0x20cac3(0x1e3)][_0x20cac3(0x1eb)](_0x37892d[_0x20cac3(0x1ef)],{})[_0x20cac3(0x1d2)](respondWithResult(_0x3c3f0c,0xc9))['catch'](handleError(_0x3c3f0c,null));},exports['update']=function(_0x4c61db,_0x33f0a4){const _0x31696a=a671_0x14eeb8;return _0x4c61db['body']['id']&&delete _0x4c61db[_0x31696a(0x1ef)]['id'],db['SmsMessage'][_0x31696a(0x227)]({'where':{'id':_0x4c61db[_0x31696a(0x1c9)]['id']}})['then'](handleEntityNotFound(_0x33f0a4,null))[_0x31696a(0x1d2)](saveUpdates(_0x4c61db[_0x31696a(0x1ef)],null))[_0x31696a(0x1d2)](respondWithResult(_0x33f0a4,null))['catch'](handleError(_0x33f0a4,null));},exports['destroy']=function(_0x1c47e7,_0x19a3cb){const _0x5881d1=a671_0x14eeb8;return db[_0x5881d1(0x1e3)][_0x5881d1(0x227)]({'where':{'id':_0x1c47e7[_0x5881d1(0x1c9)]['id']}})[_0x5881d1(0x1d2)](handleEntityNotFound(_0x19a3cb,null))['then'](removeEntity(_0x19a3cb,null))[_0x5881d1(0x22e)](handleError(_0x19a3cb,null));},exports[a671_0x14eeb8(0x20f)]=function(_0x11d053,_0x3f9579){const _0x557e99=a671_0x14eeb8;return db['SmsMessage']['describe']()[_0x557e99(0x1d2)](respondWithResult(_0x3f9579,null))[_0x557e99(0x22e)](handleError(_0x3f9579,null));},exports[a671_0x14eeb8(0x1f2)]=function(_0x29002a,_0x4df898){const _0x586155=a671_0x14eeb8,_0x56e2a2={'channel':'sms'};return _0x29002a[_0x586155(0x1ef)]['id']&&delete _0x29002a[_0x586155(0x1ef)]['id'],_0x29002a[_0x586155(0x1ef)][_0x586155(0x1f3)]=!![],_0x29002a['body'][_0x586155(0x1c5)]=moment()[_0x586155(0x1e1)](_0x586155(0x21e)),_0x29002a[_0x586155(0x1ef)]['UserId']=_0x29002a['body'][_0x586155(0x1ff)]||_0x29002a[_0x586155(0x222)]['id'],db[_0x586155(0x1e3)][_0x586155(0x227)]({'where':{'id':_0x29002a['params']['id'],'UserId':null},'include':[{'model':db[_0x586155(0x1cc)],'as':_0x586155(0x1fb)}]})['then'](handleEntityNotFound(_0x4df898,null))['then'](saveUpdates(_0x29002a[_0x586155(0x1ef)],null))[_0x586155(0x1d2)](function(_0x12db56){const _0x1ce590=_0x586155;if(_0x12db56)return _0x56e2a2['message']=_0x12db56[_0x1ce590(0x225)]({'plain':!![]}),db[_0x1ce590(0x1f7)][_0x1ce590(0x227)]({'where':{'id':_0x12db56['SmsInteractionId']}});return null;})['then'](handleEntityNotFound(_0x4df898,null))[_0x586155(0x1d2)](function(_0x377ec3){const _0xe8cbef=_0x586155;if(_0x377ec3)return _0x377ec3[_0xe8cbef(0x206)]({'UserId':_0x29002a[_0xe8cbef(0x1ef)][_0xe8cbef(0x1ff)],'read1stAt':_[_0xe8cbef(0x204)](_0x377ec3[_0xe8cbef(0x1c2)])?moment()[_0xe8cbef(0x1e1)](_0xe8cbef(0x21e)):undefined});return null;})[_0x586155(0x1d2)](function(_0xcaa6b8){const _0x469a76=_0x586155;if(_0xcaa6b8)return _0x56e2a2[_0x469a76(0x1f4)]=_0xcaa6b8[_0x469a76(0x225)]({'plain':!![]}),interaction_log['info'](_0x469a76(0x1fd),_0x29002a[_0x469a76(0x222)]['id'],_0x29002a[_0x469a76(0x222)][_0x469a76(0x1d0)],_0x29002a[_0x469a76(0x222)][_0x469a76(0x1c1)],_0x56e2a2[_0x469a76(0x1f4)]['id'],_0x29002a[_0x469a76(0x1ef)]?JSON[_0x469a76(0x22f)](_0x29002a['body']):'null'),respondWithRpcPromise('AcceptMessage',_0x469a76(0x221),_0x56e2a2);return null;})[_0x586155(0x1d2)](function(_0x2e3cb7){const _0x4426b4=_0x586155;if(_0x2e3cb7){if(_0x29002a[_0x4426b4(0x1ef)][_0x4426b4(0x1f9)])return _0x56e2a2[_0x4426b4(0x1e7)][_0x4426b4(0x22b)]=util[_0x4426b4(0x1e1)](_0x4426b4(0x1e2),_0x29002a['user'][_0x4426b4(0x1d0)]),_0x56e2a2[_0x4426b4(0x1e7)]['channel']=_0x56e2a2['channel'],_0x56e2a2[_0x4426b4(0x1e7)]['event']=_0x4426b4(0x1f2),respondWithRpcPromise(_0x4426b4(0x1e0),_0x4426b4(0x1e0),{'event':_0x4426b4(0x1d7),'message':_0x56e2a2[_0x4426b4(0x1e7)]},client9002)[_0x4426b4(0x1d2)](function(){return _0x56e2a2;});return _0x56e2a2;}return null;})[_0x586155(0x1d2)](respondWithResult(_0x4df898,null))[_0x586155(0x22e)](handleError(_0x4df898,null));},exports[a671_0x14eeb8(0x1d3)]=function(_0x51b084,_0x34e2bb){const _0x25e0c6=a671_0x14eeb8,_0x29e0bf={'agent':{},'channel':_0x25e0c6(0x209)};return _0x51b084['body']['id']&&delete _0x51b084[_0x25e0c6(0x1ef)]['id'],_0x51b084['body'][_0x25e0c6(0x1ff)]=_0x51b084[_0x25e0c6(0x1ef)][_0x25e0c6(0x1ff)]||_0x51b084['user']['id'],_0x29e0bf[_0x25e0c6(0x220)]['id']=_0x51b084[_0x25e0c6(0x1ef)][_0x25e0c6(0x1ff)],db[_0x25e0c6(0x1e3)][_0x25e0c6(0x227)]({'where':{'id':_0x51b084[_0x25e0c6(0x1c9)]['id'],'UserId':null}})[_0x25e0c6(0x1d2)](handleEntityNotFound(_0x34e2bb,null))[_0x25e0c6(0x1d2)](function(_0x5347db){const _0xcfd9b1=_0x25e0c6;if(_0x5347db)return _0x29e0bf['message']=_0x5347db[_0xcfd9b1(0x225)]({'plain':!![]}),db[_0xcfd9b1(0x1f7)][_0xcfd9b1(0x227)]({'where':{'id':_0x5347db[_0xcfd9b1(0x217)]}});return null;})[_0x25e0c6(0x1d2)](handleEntityNotFound(_0x34e2bb,null))[_0x25e0c6(0x1d2)](function(_0x481fd0){const _0x54b7be=_0x25e0c6;if(_0x481fd0)return _0x29e0bf[_0x54b7be(0x1f4)]=_0x481fd0[_0x54b7be(0x225)]({'plain':!![]}),interaction_log[_0x54b7be(0x1ee)](_0x54b7be(0x1e8),_0x51b084[_0x54b7be(0x222)]['id'],_0x51b084['user'][_0x54b7be(0x1d0)],_0x51b084[_0x54b7be(0x222)]['role'],_0x29e0bf[_0x54b7be(0x1f4)]['id'],_0x51b084['body']?JSON[_0x54b7be(0x22f)](_0x51b084[_0x54b7be(0x1ef)]):_0x54b7be(0x1dd)),respondWithRpcPromise(_0x54b7be(0x200),_0x54b7be(0x1e4),_0x29e0bf);return null;})['then'](function(_0x96fde5){const _0x5d37ef=_0x25e0c6;if(_0x96fde5)return _0x96fde5[_0x5d37ef(0x1e7)]['interface']=util[_0x5d37ef(0x1e1)]('SIP/%s',_0x51b084['user'][_0x5d37ef(0x1d0)]),_0x96fde5[_0x5d37ef(0x1e7)]['channel']=_0x29e0bf[_0x5d37ef(0x1d1)],_0x96fde5['message'][_0x5d37ef(0x1cf)]=_0x5d37ef(0x1d3),respondWithRpcPromise(_0x5d37ef(0x1e0),_0x5d37ef(0x1e0),{'event':_0x5d37ef(0x1be),'message':_0x96fde5[_0x5d37ef(0x1e7)]},client9002),_0x29e0bf;return null;})[_0x25e0c6(0x1d2)](respondWithResult(_0x34e2bb,null))[_0x25e0c6(0x22e)](handleError(_0x34e2bb,null));},exports[a671_0x14eeb8(0x21f)]=function(_0x8d2734,_0x4deee8){const _0x5dec98=a671_0x14eeb8;_0x8d2734['body']['id']&&delete _0x8d2734['body']['id'];let _0x20c05a;return db[_0x5dec98(0x1e3)]['findOne']({'where':{'id':_0x8d2734[_0x5dec98(0x1c9)]['id']}})['then'](handleEntityNotFound(_0x4deee8,null))[_0x5dec98(0x1d2)](function(_0x4a9563){const _0x45c816=_0x5dec98;if(_0x4a9563)return _0x20c05a=_0x4a9563,db['SmsAccount'][_0x45c816(0x227)]({'where':{'id':_0x4a9563[_0x45c816(0x20a)]}});})[_0x5dec98(0x1d2)](handleEntityNotFound(_0x4deee8,null))[_0x5dec98(0x1d2)](function(_0x411afe){const _0x6c2b2c=_0x5dec98;if(_0x411afe){logger[_0x6c2b2c(0x1f5)](_0x6c2b2c(0x1c3),_0x6c2b2c(0x21f),_0x6c2b2c(0x1e6),_0x411afe[_0x6c2b2c(0x20d)],util[_0x6c2b2c(0x1cb)](_0x8d2734[_0x6c2b2c(0x1ef)],{'showHidden':![],'depth':null}));switch(_0x411afe['type']){case _0x6c2b2c(0x1de):if(_0x8d2734[_0x6c2b2c(0x1ef)][_0x6c2b2c(0x22a)]&&_0x8d2734[_0x6c2b2c(0x1ef)][_0x6c2b2c(0x22a)]===_0x20c05a[_0x6c2b2c(0x213)])return _0x20c05a['update']({'read':!![]});else logger[_0x6c2b2c(0x202)](_0x6c2b2c(0x1da),_0x6c2b2c(0x21f),_0x6c2b2c(0x1de),util[_0x6c2b2c(0x1cb)](_0x8d2734[_0x6c2b2c(0x1ef)],{'showHidden':![],'depth':null}));break;case _0x6c2b2c(0x1ed):if(_0x8d2734['body']['MessageUUID']&&_0x8d2734[_0x6c2b2c(0x1ef)][_0x6c2b2c(0x1e5)]===_0x20c05a['messageId']&&_[_0x6c2b2c(0x1cd)]([_0x6c2b2c(0x228),_0x6c2b2c(0x1f6)],_0x8d2734[_0x6c2b2c(0x1ef)][_0x6c2b2c(0x205)])>=0x0)return _0x20c05a[_0x6c2b2c(0x206)]({'read':!![]});else logger['error'](_0x6c2b2c(0x1da),'status','plivio',util[_0x6c2b2c(0x1cb)](_0x8d2734['body'],{'showHidden':![],'depth':null}));break;case _0x6c2b2c(0x21d):{const _0xf2b890=_0x8d2734[_0x6c2b2c(0x1ef)][_0x6c2b2c(0x1ec)][0x0];if(_0xf2b890[_0x6c2b2c(0x21f)][_0x6c2b2c(0x1d8)]===_0x6c2b2c(0x223))return _0x20c05a[_0x6c2b2c(0x206)]({'read':!![]});else logger[_0x6c2b2c(0x202)](_0x6c2b2c(0x1da),_0x6c2b2c(0x21f),_0x6c2b2c(0x21d),util[_0x6c2b2c(0x1cb)](_0x8d2734[_0x6c2b2c(0x1ef)],{'showHidden':![],'depth':null}));}break;}return _0x20c05a;}})[_0x5dec98(0x1d2)](respondWithResult(_0x4deee8,null))['catch'](handleError(_0x4deee8,null));}; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.events.js b/server/api/smsMessage/smsMessage.events.js index 31cb2c4..81c0454 100644 --- a/server/api/smsMessage/smsMessage.events.js +++ b/server/api/smsMessage/smsMessage.events.js @@ -1 +1 @@ -const a672_0x2227=['save','emit','SmsMessage','addHook','remove','setMaxListeners','events','update','exports'];(function(_0xb3fb71,_0x178d89){const _0x222757=function(_0x785340){while(--_0x785340){_0xb3fb71['push'](_0xb3fb71['shift']());}};_0x222757(++_0x178d89);}(a672_0x2227,0x168));const a672_0x7853=function(_0xb3fb71,_0x178d89){_0xb3fb71=_0xb3fb71-0x172;let _0x222757=a672_0x2227[_0xb3fb71];return _0x222757;};const a672_0x4e8940=a672_0x7853;'use strict';const EventEmitter=require(a672_0x4e8940(0x178)),SmsMessage=require('../../mysqldb')['db'][a672_0x4e8940(0x174)],SmsMessageEvents=new EventEmitter();SmsMessageEvents[a672_0x4e8940(0x177)](0x0);const events={'afterCreate':a672_0x4e8940(0x172),'afterUpdate':a672_0x4e8940(0x179),'afterDestroy':a672_0x4e8940(0x176)};function emitEvent(_0x193471){return function(_0x5d641a){const _0x55198d=a672_0x7853;SmsMessageEvents[_0x55198d(0x173)](_0x193471+':'+_0x5d641a['id'],_0x5d641a),SmsMessageEvents[_0x55198d(0x173)](_0x193471,_0x5d641a);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];SmsMessage[a672_0x4e8940(0x175)](e,emitEvent(event));}}module[a672_0x4e8940(0x17a)]=SmsMessageEvents; \ No newline at end of file +const a672_0x4d83=['setMaxListeners','exports','undefined','events','addHook','save','update','emit'];(function(_0xcced1d,_0x113a1e){const _0x4d83df=function(_0x3050f0){while(--_0x3050f0){_0xcced1d['push'](_0xcced1d['shift']());}};_0x4d83df(++_0x113a1e);}(a672_0x4d83,0xa7));const a672_0x3050=function(_0xcced1d,_0x113a1e){_0xcced1d=_0xcced1d-0x83;let _0x4d83df=a672_0x4d83[_0xcced1d];return _0x4d83df;};const a672_0x5d5b56=a672_0x3050;'use strict';const EventEmitter=require(a672_0x5d5b56(0x87)),SmsMessage=require('../../mysqldb')['db']['SmsMessage'],SmsMessageEvents=new EventEmitter();SmsMessageEvents[a672_0x5d5b56(0x84)](0x0);const events={'afterCreate':a672_0x5d5b56(0x89),'afterUpdate':a672_0x5d5b56(0x8a),'afterDestroy':'remove'};function emitEvent(_0x59dc90){return function(_0x11d891){const _0x205112=a672_0x3050;SmsMessageEvents[_0x205112(0x83)](_0x59dc90+':'+_0x11d891['id'],_0x11d891),SmsMessageEvents['emit'](_0x59dc90,_0x11d891);};}for(const e in events){if(typeof events[e]!==a672_0x5d5b56(0x86)){const event=events[e];SmsMessage[a672_0x5d5b56(0x88)](e,emitEvent(event));}}module[a672_0x5d5b56(0x85)]=SmsMessageEvents; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.model.js b/server/api/smsMessage/smsMessage.model.js index 5d1ade1..8b28472 100644 --- a/server/api/smsMessage/smsMessage.model.js +++ b/server/api/smsMessage/smsMessage.model.js @@ -1 +1 @@ -const a673_0x3e37=['function','exports','init','./smsMessage.options','sequelize'];(function(_0x150984,_0x26a6a8){const _0x3e371e=function(_0x508d8f){while(--_0x508d8f){_0x150984['push'](_0x150984['shift']());}};_0x3e371e(++_0x26a6a8);}(a673_0x3e37,0x9e));const a673_0x508d=function(_0x150984,_0x26a6a8){_0x150984=_0x150984-0x72;let _0x3e371e=a673_0x3e37[_0x150984];return _0x3e371e;};const a673_0x5d717f=a673_0x508d;'use strict';const {Model}=require(a673_0x5d717f(0x73)),{attributes}=require('./smsMessage.attributes'),{options}=require(a673_0x5d717f(0x72));class SmsMessage extends Model{}function init(_0xf2d5c4,_0x11b082){const _0x18d2e5=a673_0x5d717f,_0x339b7b=options(_0xf2d5c4),_0x368c52=typeof _0x11b082===_0x18d2e5(0x74)?_0x11b082(_0x339b7b):_0x339b7b;return SmsMessage[_0x18d2e5(0x76)](attributes,_0x368c52),SmsMessage;}module[a673_0x5d717f(0x75)]['SmsMessage']=SmsMessage,module[a673_0x5d717f(0x75)][a673_0x5d717f(0x76)]=init; \ No newline at end of file +const a673_0x30a7=['sequelize','exports','./smsMessage.attributes','init'];(function(_0x4cdba2,_0x107c0a){const _0x30a78=function(_0x193f4e){while(--_0x193f4e){_0x4cdba2['push'](_0x4cdba2['shift']());}};_0x30a78(++_0x107c0a);}(a673_0x30a7,0xb5));const a673_0x193f=function(_0x4cdba2,_0x107c0a){_0x4cdba2=_0x4cdba2-0x174;let _0x30a78=a673_0x30a7[_0x4cdba2];return _0x30a78;};const a673_0x2eacd4=a673_0x193f;'use strict';const {Model}=require(a673_0x2eacd4(0x177)),{attributes}=require(a673_0x2eacd4(0x175)),{options}=require('./smsMessage.options');class SmsMessage extends Model{}function init(_0x44c30d,_0x16660f){const _0x27754b=a673_0x2eacd4,_0x29f72a=options(_0x44c30d),_0x11c60e=typeof _0x16660f==='function'?_0x16660f(_0x29f72a):_0x29f72a;return SmsMessage[_0x27754b(0x176)](attributes,_0x11c60e),SmsMessage;}module[a673_0x2eacd4(0x174)]['SmsMessage']=SmsMessage,module[a673_0x2eacd4(0x174)][a673_0x2eacd4(0x176)]=init; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.options.js b/server/api/smsMessage/smsMessage.options.js index 6ed9250..522848e 100644 --- a/server/api/smsMessage/smsMessage.options.js +++ b/server/api/smsMessage/smsMessage.options.js @@ -1 +1 @@ -const a674_0x5119=['message_uuid','body','authToken','SmsAccount','api','smsMethod','&password=','%s:%s','util','requestid','format','secret','options','/auth/1/session','IBSSO\x20','afterCreate','UTF-8','intelepeer','apiKey','text','baseUrl','out','create','login','clickatell','/sms/2/text/advanced','messageId','sid','clicksend','SmsAccountId','connectel','../../config/logger','find','messages','update','signature=','digest','base64','Missing\x20parameters:\x20authToken','message_id','type','http_code','infobip','senderString','https://rest.clicksend.com/v3/sms/send','hex','username','token','get','sms_messages','https://api.skebby.it/API/v1.0/REST/','direction','utf8mb4','sms','models','SmsInteractionId','error','phone','https://smsapi.connectel.se/api/v2/send/','/status?token=','GET','then','Missing\x20parameters:\x20username,\x20password','length','https://api.intelepeer.com/_rest/v4/app/sms/send','apiMessageId','catch','toLowerCase','remote','split','Missing\x20parameters:\x20apiKey','md5','total_sent','xCALLY\x20Motion','data','https://api.intelepeer.com/_rest/v4/app/sms/mdr','twilio','lodash','refid','id_sms','password','UserId','authId','inspect','crypto','read','Missing\x20parameters:\x20authId,\x20authToken','FULLTEXT','deliveryReport','plivo','head','session_key','from','utf8mb4_unicode_ci','/api/sms/messages/','SmsInteraction','isNil','Bearer\x20','toString','uuid','message','queued_count','Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken','accountSid','clickSend','createdAt','SmsMessage,\x20%s,\x20%s,\x20%s','Basic\x20%s','keys','skebby','POST','/external/get/send.php?'];(function(_0x2611d4,_0x2339ad){const _0x5119d2=function(_0xdcda71){while(--_0xdcda71){_0x2611d4['push'](_0x2611d4['shift']());}};_0x5119d2(++_0x2339ad);}(a674_0x5119,0x134));const a674_0xdcda=function(_0x2611d4,_0x2339ad){_0x2611d4=_0x2611d4-0x12c;let _0x5119d2=a674_0x5119[_0x2611d4];return _0x5119d2;};const a674_0x2f4f4f=a674_0xdcda,_=require(a674_0x2f4f4f(0x195)),twilio=require('twilio'),util=require(a674_0x2f4f4f(0x150)),crypto=require(a674_0x2f4f4f(0x12c)),logger=require(a674_0x2f4f4f(0x167))(a674_0x2f4f4f(0x14c)),rp=require('request-promise-native');function options(_0x4f379e){const _0xb55101=a674_0x2f4f4f;return{'sequelize':_0x4f379e,'tableName':_0xb55101(0x179),'paranoid':![],'indexes':[{'name':_0xb55101(0x162),'fields':[_0xb55101(0x162)]},{'name':'fti_sms_messages','fields':[_0xb55101(0x149)],'type':_0xb55101(0x12f)}],'timestamps':!![],'hooks':{'afterCreate':function(_0x33bcc5){const _0x12b1c0=_0xb55101,_0x3a4b5d=_0x4f379e[_0x12b1c0(0x17e)],_0x17cbd0=_0x33bcc5[_0x12b1c0(0x178)]({'plain':!![]});(_0x17cbd0[_0x12b1c0(0x17b)][_0x12b1c0(0x18b)]()==='in'||_0x17cbd0[_0x12b1c0(0x17b)][_0x12b1c0(0x18b)]()===_0x12b1c0(0x15d)&&!_0x17cbd0[_0x12b1c0(0x153)]&&!_[_0x12b1c0(0x138)](_0x17cbd0[_0x12b1c0(0x199)]))&&_0x3a4b5d[_0x12b1c0(0x137)]['findOne']({'where':{'id':_0x17cbd0[_0x12b1c0(0x17f)]}})[_0x12b1c0(0x185)](function(_0x839733){const _0x44ecf8=_0x12b1c0;_0x839733&&_0x839733['update']({'lastMsgAt':_0x17cbd0[_0x44ecf8(0x141)],'lastMsgDirection':_0x17cbd0['direction']['toLowerCase']()});})[_0x12b1c0(0x18a)](function(_0x33e9e5){const _0x5e3a59=_0x12b1c0;console[_0x5e3a59(0x180)](_0x33e9e5);});if(_0x17cbd0[_0x12b1c0(0x17b)]===_0x12b1c0(0x15d)&&!_0x17cbd0['secret']){let _0x4a9432;_0x3a4b5d[_0x12b1c0(0x14b)][_0x12b1c0(0x168)]({'where':{'id':_0x17cbd0[_0x12b1c0(0x165)]},'raw':!![]})[_0x12b1c0(0x185)](function(_0x59472e){const _0x2f433d=_0x12b1c0;_0x4a9432=_0x59472e;if(_0x4a9432&&_0x4a9432[_0x2f433d(0x170)])switch(_0x4a9432['type']){case'twilio':if(_0x4a9432['accountSid']&&_0x4a9432[_0x2f433d(0x14a)]&&_0x4a9432[_0x2f433d(0x181)]){const _0x11b9b3=new twilio(_0x4a9432[_0x2f433d(0x13f)],_0x4a9432[_0x2f433d(0x14a)]);_0x11b9b3[_0x2f433d(0x169)][_0x2f433d(0x15e)]({'body':_0x17cbd0['body'],'to':_0x17cbd0[_0x2f433d(0x181)],'from':_0x4a9432[_0x2f433d(0x181)],'statusCallback':_0x4a9432[_0x2f433d(0x18c)]+'/api/sms/messages/'+_0x17cbd0['id']+_0x2f433d(0x183)+_0x4a9432[_0x2f433d(0x177)]})[_0x2f433d(0x185)](function(_0x470e0d){const _0x4cb507=_0x2f433d;if(_0x470e0d[_0x4cb507(0x163)])return _0x33bcc5[_0x4cb507(0x16a)]({'messageId':_0x470e0d[_0x4cb507(0x163)]});})[_0x2f433d(0x18a)](function(_0x18d15a){const _0x34d935=_0x2f433d;logger['error'](_0x34d935(0x142),'afterCreate',_0x34d935(0x194),util[_0x34d935(0x19b)](_0x18d15a,{'showHidden':![],'depth':null}));});}else logger[_0x2f433d(0x180)](_0x2f433d(0x142),_0x2f433d(0x157),'twilio',_0x2f433d(0x13e));break;case'skebby':{const _0x51674e=_0x2f433d(0x17a);if(_0x4a9432['username']&&_0x4a9432[_0x2f433d(0x198)]){const _0x12d64d={'recipient':[_0x17cbd0[_0x2f433d(0x181)]],'message':_0x17cbd0[_0x2f433d(0x149)],'message_type':_0x4a9432[_0x2f433d(0x14d)]};_0x4a9432[_0x2f433d(0x14d)]&&_0x4a9432[_0x2f433d(0x14d)]!=='SI'&&(_0x12d64d['sender']=_0x4a9432[_0x2f433d(0x181)]);let _0x58ab80={'url':_0x51674e+'login?username='+_0x4a9432['username']+_0x2f433d(0x14e)+_0x4a9432['password'],'method':'GET'};rp(_0x58ab80)[_0x2f433d(0x185)](function(_0x26b846){const _0x5eb7b2=_0x2f433d,_0xdcd8ff=_0x26b846[_0x5eb7b2(0x18d)](';'),_0x210797={'user_key':_0xdcd8ff[0x0],'session_key':_0xdcd8ff[0x1]};return _0x58ab80={'url':_0x51674e+_0x5eb7b2(0x17d),'method':_0x5eb7b2(0x146),'headers':{'user_key':_0x210797['user_key'],'Session_key':_0x210797[_0x5eb7b2(0x133)]},'json':!![],'body':_0x12d64d},rp(_0x58ab80);})[_0x2f433d(0x185)](function(_0x317778){const _0x4babc7=_0x2f433d;if(_0x317778[_0x4babc7(0x190)]>=0x1){const _0x189b3e={'messageId':_0x317778['internal_order_id']};return(_0x4a9432['smsMethod']!=='GP'||!_0x4a9432[_0x4babc7(0x130)])&&(_0x189b3e[_0x4babc7(0x12d)]=!![]),_0x33bcc5[_0x4babc7(0x16a)](_0x189b3e);}else return logger[_0x4babc7(0x180)](_0x4babc7(0x142),_0x4babc7(0x157),_0x4babc7(0x145),util[_0x4babc7(0x19b)](_0x317778,{'showHidden':![],'depth':null}));})[_0x2f433d(0x18a)](function(_0x456c2f){const _0x5cdf7e=_0x2f433d;return logger[_0x5cdf7e(0x180)](_0x5cdf7e(0x142),_0x5cdf7e(0x157),_0x5cdf7e(0x145),util[_0x5cdf7e(0x19b)](_0x456c2f,{'showHidden':![],'depth':null}));});}else logger[_0x2f433d(0x180)](_0x2f433d(0x142),'afterCreate','skebby','Missing\x20parameters:\x20username,\x20password');}break;case _0x2f433d(0x166):if(_0x4a9432['authToken']){const _0x3c9802={'recipient':_0x17cbd0[_0x2f433d(0x181)],'message':_0x17cbd0[_0x2f433d(0x149)],'sender':_0x4a9432[_0x2f433d(0x173)]||_0x4a9432['phone'],'authorization':_0x4a9432[_0x2f433d(0x14a)]},_0x8f3034={'method':'POST','uri':_0x2f433d(0x182),'body':_0x3c9802,'json':!![]};rp(_0x8f3034)['then'](function(_0x597c11){const _0x15770f=_0x2f433d,_0x492fc6={'messageId':_0x597c11[_0x15770f(0x151)]};return!_0x4a9432[_0x15770f(0x130)]&&(_0x492fc6[_0x15770f(0x12d)]=!![]),_0x33bcc5['update'](_0x492fc6);})['catch'](function(_0x59e66d){const _0x25681b=_0x2f433d;logger[_0x25681b(0x180)](_0x25681b(0x142),'afterCreate',_0x25681b(0x166),util[_0x25681b(0x19b)](_0x59e66d,{'showHidden':![],'depth':null}));});}else logger[_0x2f433d(0x180)](_0x2f433d(0x142),_0x2f433d(0x157),'connectel',_0x2f433d(0x16e));break;case _0x2f433d(0x164):if(_0x4a9432['username']&&_0x4a9432['password']){const _0x403ea3={'messages':[{'source':_0x2f433d(0x191),'to':_0x17cbd0['phone'],'body':_0x17cbd0[_0x2f433d(0x149)],'from':_0x4a9432[_0x2f433d(0x173)]||_0x4a9432[_0x2f433d(0x181)]}]},_0x5e47a4=util[_0x2f433d(0x152)](_0x2f433d(0x14f),_0x4a9432[_0x2f433d(0x176)],_0x4a9432[_0x2f433d(0x198)]),_0x4d9062={'method':_0x2f433d(0x146),'uri':_0x2f433d(0x174),'body':_0x403ea3,'headers':{'Authorization':util['format']('Basic\x20%s',Buffer['from'](_0x5e47a4)['toString'](_0x2f433d(0x16d)))},'json':!![]};rp(_0x4d9062)[_0x2f433d(0x185)](function(_0x436518){const _0x2c8d0d=_0x2f433d;if(_0x436518[_0x2c8d0d(0x171)]>=0xc8&&_0x436518[_0x2c8d0d(0x171)]<=0xce){if(_0x436518[_0x2c8d0d(0x192)]&&_0x436518[_0x2c8d0d(0x192)][_0x2c8d0d(0x13d)]>0x0){const _0x2899d1=_[_0x2c8d0d(0x132)](_0x436518[_0x2c8d0d(0x192)]['messages']),_0x5611de={'messageId':_0x2899d1[_0x2c8d0d(0x16f)]};return!_0x4a9432[_0x2c8d0d(0x130)]&&(_0x5611de['read']=!![]),_0x33bcc5[_0x2c8d0d(0x16a)](_0x5611de);}else logger[_0x2c8d0d(0x180)](_0x2c8d0d(0x142),_0x2c8d0d(0x157),'clickSend',util['inspect'](_0x436518,{'showHidden':![],'depth':null}));}else logger[_0x2c8d0d(0x180)](_0x2c8d0d(0x142),_0x2c8d0d(0x157),_0x2c8d0d(0x140),util[_0x2c8d0d(0x19b)](_0x436518,{'showHidden':![],'depth':null}));})[_0x2f433d(0x18a)](function(_0x37b045){const _0x1dd4d1=_0x2f433d;logger[_0x1dd4d1(0x180)](_0x1dd4d1(0x142),_0x1dd4d1(0x157),_0x1dd4d1(0x140),util[_0x1dd4d1(0x19b)](_0x37b045,{'showHidden':![],'depth':null}));});}else logger[_0x2f433d(0x180)](_0x2f433d(0x142),_0x2f433d(0x157),'clickSend','Missing\x20parameters:\x20username,\x20password');break;case'plivo':if(_0x4a9432[_0x2f433d(0x19a)]&&_0x4a9432[_0x2f433d(0x14a)]){const _0x560913={'dst':_0x17cbd0[_0x2f433d(0x181)],'text':_0x17cbd0[_0x2f433d(0x149)],'src':_0x4a9432[_0x2f433d(0x173)]||_0x4a9432[_0x2f433d(0x181)],'url':_0x4a9432[_0x2f433d(0x18c)]+_0x2f433d(0x136)+_0x17cbd0['id']+'/status?token='+_0x4a9432[_0x2f433d(0x177)]},_0x39b218=util[_0x2f433d(0x152)](_0x2f433d(0x14f),_0x4a9432[_0x2f433d(0x19a)],_0x4a9432[_0x2f433d(0x14a)]),_0x1cfb02={'method':_0x2f433d(0x146),'uri':util[_0x2f433d(0x152)]('https://api.plivo.com/v1/Account/%s/Message/',_0x4a9432[_0x2f433d(0x19a)]),'body':_0x560913,'headers':{'Authorization':util[_0x2f433d(0x152)](_0x2f433d(0x143),Buffer[_0x2f433d(0x134)](_0x39b218)[_0x2f433d(0x13a)](_0x2f433d(0x16d)))},'json':!![]};rp(_0x1cfb02)[_0x2f433d(0x185)](function(_0x1370cb){const _0x3f029a=_0x2f433d,_0x27610b={'messageId':_0x1370cb[_0x3f029a(0x148)][0x0]};return _0x33bcc5[_0x3f029a(0x16a)](_0x27610b);})[_0x2f433d(0x18a)](function(_0x755b49){const _0x2d47fc=_0x2f433d;logger[_0x2d47fc(0x180)](_0x2d47fc(0x142),_0x2d47fc(0x157),_0x2d47fc(0x131),util[_0x2d47fc(0x19b)](_0x755b49,{'showHidden':![],'depth':null}));});}else logger[_0x2f433d(0x180)](_0x2f433d(0x142),_0x2f433d(0x157),_0x2f433d(0x131),_0x2f433d(0x12e));break;case'infobip':if(_0x4a9432[_0x2f433d(0x176)]&&_0x4a9432[_0x2f433d(0x198)]){if(_0x4a9432['baseUrl']){const _0x2d7ac8={'method':_0x2f433d(0x146),'uri':_0x4a9432[_0x2f433d(0x15c)]+_0x2f433d(0x155),'body':{'username':_0x4a9432[_0x2f433d(0x176)],'password':_0x4a9432[_0x2f433d(0x198)]},'json':!![]};return rp(_0x2d7ac8)[_0x2f433d(0x185)](function(_0x199352){const _0x282b8b=_0x2f433d,_0x61e2eb={'method':'POST','uri':_0x4a9432[_0x282b8b(0x15c)]+_0x282b8b(0x161),'body':{'messages':[{'from':_0x4a9432[_0x282b8b(0x181)],'destinations':[{'to':_0x17cbd0[_0x282b8b(0x181)]}],'text':_0x17cbd0[_0x282b8b(0x149)],'notifyUrl':_0x4a9432[_0x282b8b(0x18c)]+'/api/sms/messages/'+_0x17cbd0['id']+'/status?token='+_0x4a9432[_0x282b8b(0x177)],'notifyContentType':'application/json','callbackData':_0x4a9432['phone']+';'+_0x17cbd0[_0x282b8b(0x149)]}]},'headers':{'Authorization':_0x282b8b(0x156)+_0x199352['token']},'json':!![]};return rp(_0x61e2eb)['then'](function(_0x467b8a){const _0x546657=_0x282b8b;if(_0x467b8a['messages']){const _0x4e51e8={'messageId':_0x467b8a['messages'][0x0][_0x546657(0x162)]};return!_0x4a9432['deliveryReport']&&(_0x4e51e8['read']=!![]),_0x33bcc5[_0x546657(0x16a)](_0x4e51e8);}else return logger['error'](_0x546657(0x142),_0x546657(0x157),_0x546657(0x172),util[_0x546657(0x19b)](_0x467b8a,{'showHidden':![],'depth':null}));});})[_0x2f433d(0x18a)](function(_0x502900){const _0x192c3c=_0x2f433d;return logger[_0x192c3c(0x180)](_0x192c3c(0x142),_0x192c3c(0x157),_0x192c3c(0x172),util[_0x192c3c(0x19b)](_0x502900,{'showHidden':![],'depth':null}));});}else logger[_0x2f433d(0x180)](_0x2f433d(0x142),'afterCreate',_0x2f433d(0x172),'Missing\x20parameters:\x20base_url');}else logger[_0x2f433d(0x180)](_0x2f433d(0x142),'afterCreate','infobip',_0x2f433d(0x186));break;case'csc':if(_0x4a9432[_0x2f433d(0x15a)]){const _0xb3b72b={};_0xb3b72b[_0x2f433d(0x15f)]=_0x4a9432[_0x2f433d(0x176)],_0xb3b72b[_0x2f433d(0x181)]=_0x17cbd0['phone'],_0xb3b72b['sender']=_0x4a9432['phone'],_0xb3b72b[_0x2f433d(0x15b)]=_0x17cbd0[_0x2f433d(0x149)],_0xb3b72b['timestamp']=+new Date();let _0xb9dead='',_0x2ea609='';const _0x2e7292=Object[_0x2f433d(0x144)](_0xb3b72b);_0x2e7292['sort']();for(let _0x342882=0x0;_0x342882<_0x2e7292[_0x2f433d(0x187)];_0x342882++){_0xb9dead!=''&&(_0xb9dead+='&'),_0xb9dead+=_0x2e7292[_0x342882]+'='+encodeURIComponent(_0xb3b72b[_0x2e7292[_0x342882]]),_0x2ea609+=_0xb3b72b[_0x2e7292[_0x342882]];}_0x2ea609+=_0x4a9432['apiKey'],_0x2ea609=crypto['createHash'](_0x2f433d(0x18f))['update'](_0x2ea609)[_0x2f433d(0x16c)](_0x2f433d(0x175));_0xb9dead!==''&&(_0xb9dead+='&');_0xb9dead+=_0x2f433d(0x16b)+_0x2ea609;const _0x1de12a={'method':_0x2f433d(0x184),'uri':_0x4a9432[_0x2f433d(0x15c)]+_0x2f433d(0x147)+_0xb9dead,'json':!![]};return rp(_0x1de12a)[_0x2f433d(0x185)](function(_0x53a769){const _0x3507ff=_0x2f433d,_0x5af915=Object['keys'](_0x53a769);if(_0x53a769[_0x5af915[0x0]][_0x3507ff(0x180)]&&parseInt(_0x53a769[_0x5af915[0x0]][_0x3507ff(0x180)])===0x0){const _0x26c6cd={'messageId':_0x53a769[_0x5af915[0x0]][_0x3507ff(0x197)]};return!_0x4a9432[_0x3507ff(0x130)]&&(_0x26c6cd[_0x3507ff(0x12d)]=!![]),_0x33bcc5[_0x3507ff(0x16a)](_0x26c6cd);}else return logger[_0x3507ff(0x180)](_0x3507ff(0x142),_0x3507ff(0x157),'csc',util[_0x3507ff(0x19b)](_0x53a769[_0x3507ff(0x180)],{'showHidden':![],'depth':null}));})[_0x2f433d(0x18a)](function(_0x491c68){const _0x430282=_0x2f433d;return logger[_0x430282(0x180)](_0x430282(0x142),'afterCreate','csc',util[_0x430282(0x19b)](_0x491c68,{'showHidden':![],'depth':null}));});}else logger[_0x2f433d(0x180)](_0x2f433d(0x142),_0x2f433d(0x157),'csc',_0x2f433d(0x18e));break;case'clickatell':if(_0x4a9432[_0x2f433d(0x15a)]){const _0x1cd948={'method':_0x2f433d(0x146),'uri':'https://platform.clickatell.com/messages','headers':{'Authorization':_0x4a9432[_0x2f433d(0x15a)]},'body':{'content':_0x17cbd0[_0x2f433d(0x149)],'to':[_0x17cbd0[_0x2f433d(0x181)]],'from':_0x4a9432['phone'],'binary':![],'clientMessageId':_0x2f433d(0x13b),'charset':_0x2f433d(0x158)},'json':!![]};rp(_0x1cd948)[_0x2f433d(0x185)](function(_0x14f3e3){const _0x499ac4=_0x2f433d;if(!_0x14f3e3['error']){const _0x33c453={'messageId':_0x14f3e3[_0x499ac4(0x169)][0x0][_0x499ac4(0x189)]};return!_0x4a9432[_0x499ac4(0x130)]&&(_0x33c453[_0x499ac4(0x12d)]=!![]),_0x33bcc5[_0x499ac4(0x16a)](_0x33c453);}else return logger[_0x499ac4(0x180)]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x499ac4(0x157),'clickatell',util[_0x499ac4(0x19b)](_0x14f3e3[_0x499ac4(0x180)],{'showHidden':![],'depth':null}));})[_0x2f433d(0x18a)](function(_0x28a65e){const _0x170d3f=_0x2f433d;return logger[_0x170d3f(0x180)](_0x170d3f(0x142),_0x170d3f(0x157),_0x170d3f(0x160),util[_0x170d3f(0x19b)](_0x28a65e,{'showHidden':![],'depth':null}));});}else logger[_0x2f433d(0x180)](_0x2f433d(0x142),_0x2f433d(0x157),_0x2f433d(0x160),_0x2f433d(0x18e));break;case _0x2f433d(0x159):{if(_0x4a9432[_0x2f433d(0x15a)]){const _0x1ba9dc={},_0x4ec9fb={'method':_0x2f433d(0x146),'uri':_0x2f433d(0x188),'headers':{'Authorization':_0x2f433d(0x139)+_0x4a9432['apiKey'],'Content-Type':'application/json'},'body':{'from':_0x4a9432[_0x2f433d(0x181)],'to':_0x17cbd0[_0x2f433d(0x181)],'text':_0x17cbd0[_0x2f433d(0x149)]},'json':!![]};return rp(_0x4ec9fb)[_0x2f433d(0x185)](function(_0x25a96a){const _0x3b3f3b=_0x2f433d;if(_0x25a96a['code']==0xca){_0x1ba9dc[_0x3b3f3b(0x13c)]=_0x25a96a;const _0x16983d={'method':'POST','uri':_0x3b3f3b(0x193),'headers':{'Authorization':_0x3b3f3b(0x139)+_0x4a9432[_0x3b3f3b(0x15a)],'Content-Type':'application/json'},'body':{'refid':_0x1ba9dc[_0x3b3f3b(0x13c)][_0x3b3f3b(0x196)]},'json':!![]};return rp(_0x16983d)[_0x3b3f3b(0x185)](function(_0xba4e97){const _0x2571ca=_0x3b3f3b;_0x1ba9dc['status']=_0xba4e97;const _0x437110={'messageId':_0x1ba9dc[_0x2571ca(0x13c)][_0x2571ca(0x196)],'read':!![]};_0x33bcc5['update'](_0x437110);});}else logger[_0x3b3f3b(0x180)](_0x3b3f3b(0x142),_0x3b3f3b(0x157),'intelepeer',util[_0x3b3f3b(0x19b)](_0x25a96a,{'showHidden':![],'depth':null}));})[_0x2f433d(0x18a)](function(_0x56cf76){const _0x246194=_0x2f433d;logger[_0x246194(0x180)](_0x246194(0x142),_0x246194(0x157),_0x246194(0x159),util['inspect'](_0x56cf76,{'showHidden':![],'depth':null}));});}else logger[_0x2f433d(0x180)](_0x2f433d(0x142),_0x2f433d(0x157),_0x2f433d(0x159),'Token\x20not\x20received');}break;}});}}},'charset':_0xb55101(0x17c),'collate':_0xb55101(0x135)};}module['exports'][a674_0x2f4f4f(0x154)]=options; \ No newline at end of file +const a674_0x41a8=['get','remote','https://platform.clickatell.com/messages','inspect','../../config/logger','status','password','user_key','token','Missing\x20parameters:\x20authToken','SmsAccountId','SmsAccount','message','baseUrl','apiKey','split','SmsInteractionId','exports','phone','uuid','request-promise-native','code','https://rest.clicksend.com/v3/sms/send','sid','utf8mb4_unicode_ci','sms','authId','POST','messages','plivo','application/json','data','IBSSO\x20','body','UserId','xCALLY\x20Motion','accountSid','http_code','%s:%s','deliveryReport','id_sms','format','https://api.plivo.com/v1/Account/%s/Message/','total_sent','senderString','base64','username','error','apiMessageId','clickatell','session_key','hex','head','infobip','refid','messageId','secret','/api/sms/messages/','lodash','Missing\x20parameters:\x20apiKey','SmsInteraction','message_id','sender','util','csc','afterCreate','skebby','then','options','from','length','requestid','UTF-8','GET','https://api.intelepeer.com/_rest/v4/app/sms/send','Basic\x20%s','FULLTEXT','out','queued_count','keys','login?username=','message_uuid','digest','/status?token=','Missing\x20parameters:\x20base_url','find','&password=','api','crypto','sms_messages','Missing\x20parameters:\x20username,\x20password','intelepeer','Bearer\x20','direction','catch','SmsMessage,\x20%s,\x20%s,\x20%s','clickSend','authToken','smsMethod','twilio','sort','connectel','Token\x20not\x20received','read','type','findOne','/external/get/send.php?','update','https://api.intelepeer.com/_rest/v4/app/sms/mdr'];(function(_0x4e7349,_0xc2f093){const _0x41a8c9=function(_0x516192){while(--_0x516192){_0x4e7349['push'](_0x4e7349['shift']());}};_0x41a8c9(++_0xc2f093);}(a674_0x41a8,0x121));const a674_0x5161=function(_0x4e7349,_0xc2f093){_0x4e7349=_0x4e7349-0x1ec;let _0x41a8c9=a674_0x41a8[_0x4e7349];return _0x41a8c9;};const a674_0x59e21b=a674_0x5161,_=require(a674_0x59e21b(0x24c)),twilio=require(a674_0x59e21b(0x208)),util=require(a674_0x59e21b(0x251)),crypto=require(a674_0x59e21b(0x1fd)),logger=require(a674_0x59e21b(0x216))(a674_0x59e21b(0x1fc)),rp=require(a674_0x59e21b(0x226));function options(_0x3f61c3){const _0x5c10e9=a674_0x59e21b;return{'sequelize':_0x3f61c3,'tableName':_0x5c10e9(0x1fe),'paranoid':![],'indexes':[{'name':'messageId','fields':[_0x5c10e9(0x249)]},{'name':'fti_sms_messages','fields':[_0x5c10e9(0x233)],'type':_0x5c10e9(0x1f1)}],'timestamps':!![],'hooks':{'afterCreate':function(_0x5bbec3){const _0x2cda7f=_0x5c10e9,_0x3364a5=_0x3f61c3['models'],_0x2511d5=_0x5bbec3[_0x2cda7f(0x212)]({'plain':!![]});(_0x2511d5['direction']['toLowerCase']()==='in'||_0x2511d5[_0x2cda7f(0x202)]['toLowerCase']()===_0x2cda7f(0x1f2)&&!_0x2511d5[_0x2cda7f(0x24a)]&&!_['isNil'](_0x2511d5[_0x2cda7f(0x234)]))&&_0x3364a5[_0x2cda7f(0x24e)][_0x2cda7f(0x20e)]({'where':{'id':_0x2511d5[_0x2cda7f(0x222)]}})[_0x2cda7f(0x255)](function(_0x113a3e){const _0x5b1127=_0x2cda7f;_0x113a3e&&_0x113a3e[_0x5b1127(0x210)]({'lastMsgAt':_0x2511d5['createdAt'],'lastMsgDirection':_0x2511d5[_0x5b1127(0x202)]['toLowerCase']()});})[_0x2cda7f(0x203)](function(_0x40b190){const _0x3d0ebf=_0x2cda7f;console[_0x3d0ebf(0x241)](_0x40b190);});if(_0x2511d5[_0x2cda7f(0x202)]===_0x2cda7f(0x1f2)&&!_0x2511d5[_0x2cda7f(0x24a)]){let _0x117745;_0x3364a5[_0x2cda7f(0x21d)][_0x2cda7f(0x1fa)]({'where':{'id':_0x2511d5[_0x2cda7f(0x21c)]},'raw':!![]})[_0x2cda7f(0x255)](function(_0x42e80c){const _0x4f9558=_0x2cda7f;_0x117745=_0x42e80c;if(_0x117745&&_0x117745[_0x4f9558(0x20d)])switch(_0x117745[_0x4f9558(0x20d)]){case _0x4f9558(0x208):if(_0x117745['accountSid']&&_0x117745[_0x4f9558(0x206)]&&_0x117745['phone']){const _0x4413ab=new twilio(_0x117745[_0x4f9558(0x236)],_0x117745[_0x4f9558(0x206)]);_0x4413ab[_0x4f9558(0x22e)]['create']({'body':_0x2511d5[_0x4f9558(0x233)],'to':_0x2511d5[_0x4f9558(0x224)],'from':_0x117745[_0x4f9558(0x224)],'statusCallback':_0x117745[_0x4f9558(0x213)]+_0x4f9558(0x24b)+_0x2511d5['id']+'/status?token='+_0x117745['token']})[_0x4f9558(0x255)](function(_0x383f7a){const _0x22b437=_0x4f9558;if(_0x383f7a['sid'])return _0x5bbec3[_0x22b437(0x210)]({'messageId':_0x383f7a[_0x22b437(0x229)]});})[_0x4f9558(0x203)](function(_0x29525e){const _0x10c0b1=_0x4f9558;logger[_0x10c0b1(0x241)](_0x10c0b1(0x204),_0x10c0b1(0x253),_0x10c0b1(0x208),util[_0x10c0b1(0x215)](_0x29525e,{'showHidden':![],'depth':null}));});}else logger['error']('SmsMessage,\x20%s,\x20%s,\x20%s',_0x4f9558(0x253),'twilio','Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken');break;case _0x4f9558(0x254):{const _0x57908b='https://api.skebby.it/API/v1.0/REST/';if(_0x117745['username']&&_0x117745[_0x4f9558(0x218)]){const _0x24ab5c={'recipient':[_0x2511d5[_0x4f9558(0x224)]],'message':_0x2511d5[_0x4f9558(0x233)],'message_type':_0x117745[_0x4f9558(0x207)]};_0x117745[_0x4f9558(0x207)]&&_0x117745[_0x4f9558(0x207)]!=='SI'&&(_0x24ab5c['sender']=_0x117745[_0x4f9558(0x224)]);let _0x46182c={'url':_0x57908b+_0x4f9558(0x1f5)+_0x117745[_0x4f9558(0x240)]+_0x4f9558(0x1fb)+_0x117745[_0x4f9558(0x218)],'method':_0x4f9558(0x1ee)};rp(_0x46182c)[_0x4f9558(0x255)](function(_0x4697ec){const _0x415c83=_0x4f9558,_0x5094ed=_0x4697ec[_0x415c83(0x221)](';'),_0x57669c={'user_key':_0x5094ed[0x0],'session_key':_0x5094ed[0x1]};return _0x46182c={'url':_0x57908b+_0x415c83(0x22b),'method':_0x415c83(0x22d),'headers':{'user_key':_0x57669c[_0x415c83(0x219)],'Session_key':_0x57669c[_0x415c83(0x244)]},'json':!![],'body':_0x24ab5c},rp(_0x46182c);})[_0x4f9558(0x255)](function(_0x2cd9e1){const _0x5724e2=_0x4f9558;if(_0x2cd9e1[_0x5724e2(0x23d)]>=0x1){const _0x12eb34={'messageId':_0x2cd9e1['internal_order_id']};return(_0x117745['smsMethod']!=='GP'||!_0x117745[_0x5724e2(0x239)])&&(_0x12eb34[_0x5724e2(0x20c)]=!![]),_0x5bbec3[_0x5724e2(0x210)](_0x12eb34);}else return logger[_0x5724e2(0x241)]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x5724e2(0x253),_0x5724e2(0x254),util[_0x5724e2(0x215)](_0x2cd9e1,{'showHidden':![],'depth':null}));})[_0x4f9558(0x203)](function(_0x5bdf99){const _0x1a628d=_0x4f9558;return logger[_0x1a628d(0x241)]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x1a628d(0x253),_0x1a628d(0x254),util[_0x1a628d(0x215)](_0x5bdf99,{'showHidden':![],'depth':null}));});}else logger[_0x4f9558(0x241)](_0x4f9558(0x204),_0x4f9558(0x253),_0x4f9558(0x254),'Missing\x20parameters:\x20username,\x20password');}break;case _0x4f9558(0x20a):if(_0x117745[_0x4f9558(0x206)]){const _0x49a156={'recipient':_0x2511d5[_0x4f9558(0x224)],'message':_0x2511d5[_0x4f9558(0x233)],'sender':_0x117745['senderString']||_0x117745[_0x4f9558(0x224)],'authorization':_0x117745[_0x4f9558(0x206)]},_0x3cc840={'method':_0x4f9558(0x22d),'uri':'https://smsapi.connectel.se/api/v2/send/','body':_0x49a156,'json':!![]};rp(_0x3cc840)[_0x4f9558(0x255)](function(_0x239deb){const _0x2a203e=_0x4f9558,_0x3c764f={'messageId':_0x239deb[_0x2a203e(0x1ec)]};return!_0x117745[_0x2a203e(0x239)]&&(_0x3c764f[_0x2a203e(0x20c)]=!![]),_0x5bbec3[_0x2a203e(0x210)](_0x3c764f);})[_0x4f9558(0x203)](function(_0x5f0b82){const _0x655ccb=_0x4f9558;logger[_0x655ccb(0x241)]('SmsMessage,\x20%s,\x20%s,\x20%s','afterCreate',_0x655ccb(0x20a),util['inspect'](_0x5f0b82,{'showHidden':![],'depth':null}));});}else logger[_0x4f9558(0x241)](_0x4f9558(0x204),_0x4f9558(0x253),_0x4f9558(0x20a),_0x4f9558(0x21b));break;case'clicksend':if(_0x117745[_0x4f9558(0x240)]&&_0x117745[_0x4f9558(0x218)]){const _0x25641c={'messages':[{'source':_0x4f9558(0x235),'to':_0x2511d5[_0x4f9558(0x224)],'body':_0x2511d5[_0x4f9558(0x233)],'from':_0x117745['senderString']||_0x117745['phone']}]},_0x892fe3=util['format'](_0x4f9558(0x238),_0x117745[_0x4f9558(0x240)],_0x117745[_0x4f9558(0x218)]),_0x3c97bf={'method':_0x4f9558(0x22d),'uri':_0x4f9558(0x228),'body':_0x25641c,'headers':{'Authorization':util[_0x4f9558(0x23b)](_0x4f9558(0x1f0),Buffer[_0x4f9558(0x257)](_0x892fe3)['toString']('base64'))},'json':!![]};rp(_0x3c97bf)[_0x4f9558(0x255)](function(_0x176647){const _0x5ea603=_0x4f9558;if(_0x176647[_0x5ea603(0x237)]>=0xc8&&_0x176647['http_code']<=0xce){if(_0x176647['data']&&_0x176647['data'][_0x5ea603(0x1f3)]>0x0){const _0x1c03e4=_[_0x5ea603(0x246)](_0x176647[_0x5ea603(0x231)][_0x5ea603(0x22e)]),_0x31dc18={'messageId':_0x1c03e4[_0x5ea603(0x24f)]};return!_0x117745['deliveryReport']&&(_0x31dc18[_0x5ea603(0x20c)]=!![]),_0x5bbec3[_0x5ea603(0x210)](_0x31dc18);}else logger[_0x5ea603(0x241)](_0x5ea603(0x204),_0x5ea603(0x253),_0x5ea603(0x205),util[_0x5ea603(0x215)](_0x176647,{'showHidden':![],'depth':null}));}else logger[_0x5ea603(0x241)]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x5ea603(0x253),_0x5ea603(0x205),util[_0x5ea603(0x215)](_0x176647,{'showHidden':![],'depth':null}));})[_0x4f9558(0x203)](function(_0x20f44e){const _0x3917ea=_0x4f9558;logger[_0x3917ea(0x241)](_0x3917ea(0x204),_0x3917ea(0x253),_0x3917ea(0x205),util['inspect'](_0x20f44e,{'showHidden':![],'depth':null}));});}else logger[_0x4f9558(0x241)]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x4f9558(0x253),_0x4f9558(0x205),_0x4f9558(0x1ff));break;case _0x4f9558(0x22f):if(_0x117745[_0x4f9558(0x22c)]&&_0x117745[_0x4f9558(0x206)]){const _0x230efe={'dst':_0x2511d5[_0x4f9558(0x224)],'text':_0x2511d5[_0x4f9558(0x233)],'src':_0x117745[_0x4f9558(0x23e)]||_0x117745[_0x4f9558(0x224)],'url':_0x117745[_0x4f9558(0x213)]+_0x4f9558(0x24b)+_0x2511d5['id']+'/status?token='+_0x117745[_0x4f9558(0x21a)]},_0x23cf92=util['format'](_0x4f9558(0x238),_0x117745[_0x4f9558(0x22c)],_0x117745[_0x4f9558(0x206)]),_0x2e0af7={'method':_0x4f9558(0x22d),'uri':util[_0x4f9558(0x23b)](_0x4f9558(0x23c),_0x117745[_0x4f9558(0x22c)]),'body':_0x230efe,'headers':{'Authorization':util[_0x4f9558(0x23b)](_0x4f9558(0x1f0),Buffer[_0x4f9558(0x257)](_0x23cf92)['toString'](_0x4f9558(0x23f)))},'json':!![]};rp(_0x2e0af7)[_0x4f9558(0x255)](function(_0x9eaecd){const _0x4dd0e9=_0x4f9558,_0x2d0f8d={'messageId':_0x9eaecd[_0x4dd0e9(0x1f6)][0x0]};return _0x5bbec3['update'](_0x2d0f8d);})[_0x4f9558(0x203)](function(_0x556885){const _0x22f3cc=_0x4f9558;logger['error'](_0x22f3cc(0x204),'afterCreate',_0x22f3cc(0x22f),util['inspect'](_0x556885,{'showHidden':![],'depth':null}));});}else logger['error'](_0x4f9558(0x204),'afterCreate','plivo','Missing\x20parameters:\x20authId,\x20authToken');break;case _0x4f9558(0x247):if(_0x117745[_0x4f9558(0x240)]&&_0x117745[_0x4f9558(0x218)]){if(_0x117745['baseUrl']){const _0x1b56a4={'method':_0x4f9558(0x22d),'uri':_0x117745[_0x4f9558(0x21f)]+'/auth/1/session','body':{'username':_0x117745[_0x4f9558(0x240)],'password':_0x117745[_0x4f9558(0x218)]},'json':!![]};return rp(_0x1b56a4)[_0x4f9558(0x255)](function(_0x14178c){const _0xb38ea7=_0x4f9558,_0x3144a0={'method':_0xb38ea7(0x22d),'uri':_0x117745[_0xb38ea7(0x21f)]+'/sms/2/text/advanced','body':{'messages':[{'from':_0x117745['phone'],'destinations':[{'to':_0x2511d5[_0xb38ea7(0x224)]}],'text':_0x2511d5[_0xb38ea7(0x233)],'notifyUrl':_0x117745[_0xb38ea7(0x213)]+'/api/sms/messages/'+_0x2511d5['id']+_0xb38ea7(0x1f8)+_0x117745[_0xb38ea7(0x21a)],'notifyContentType':'application/json','callbackData':_0x117745[_0xb38ea7(0x224)]+';'+_0x2511d5[_0xb38ea7(0x233)]}]},'headers':{'Authorization':_0xb38ea7(0x232)+_0x14178c[_0xb38ea7(0x21a)]},'json':!![]};return rp(_0x3144a0)[_0xb38ea7(0x255)](function(_0x343d47){const _0x5b3196=_0xb38ea7;if(_0x343d47[_0x5b3196(0x22e)]){const _0x3ae1a1={'messageId':_0x343d47[_0x5b3196(0x22e)][0x0][_0x5b3196(0x249)]};return!_0x117745[_0x5b3196(0x239)]&&(_0x3ae1a1[_0x5b3196(0x20c)]=!![]),_0x5bbec3[_0x5b3196(0x210)](_0x3ae1a1);}else return logger['error'](_0x5b3196(0x204),_0x5b3196(0x253),'infobip',util['inspect'](_0x343d47,{'showHidden':![],'depth':null}));});})['catch'](function(_0x1cf739){const _0x1881df=_0x4f9558;return logger[_0x1881df(0x241)]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x1881df(0x253),_0x1881df(0x247),util[_0x1881df(0x215)](_0x1cf739,{'showHidden':![],'depth':null}));});}else logger['error'](_0x4f9558(0x204),_0x4f9558(0x253),_0x4f9558(0x247),_0x4f9558(0x1f9));}else logger[_0x4f9558(0x241)]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x4f9558(0x253),_0x4f9558(0x247),'Missing\x20parameters:\x20username,\x20password');break;case _0x4f9558(0x252):if(_0x117745[_0x4f9558(0x220)]){const _0x36459a={};_0x36459a['login']=_0x117745['username'],_0x36459a[_0x4f9558(0x224)]=_0x2511d5[_0x4f9558(0x224)],_0x36459a[_0x4f9558(0x250)]=_0x117745[_0x4f9558(0x224)],_0x36459a['text']=_0x2511d5[_0x4f9558(0x233)],_0x36459a['timestamp']=+new Date();let _0x11d500='',_0x292d9d='';const _0x340eeb=Object[_0x4f9558(0x1f4)](_0x36459a);_0x340eeb[_0x4f9558(0x209)]();for(let _0x4012e7=0x0;_0x4012e7<_0x340eeb[_0x4f9558(0x258)];_0x4012e7++){_0x11d500!=''&&(_0x11d500+='&'),_0x11d500+=_0x340eeb[_0x4012e7]+'='+encodeURIComponent(_0x36459a[_0x340eeb[_0x4012e7]]),_0x292d9d+=_0x36459a[_0x340eeb[_0x4012e7]];}_0x292d9d+=_0x117745[_0x4f9558(0x220)],_0x292d9d=crypto['createHash']('md5')[_0x4f9558(0x210)](_0x292d9d)[_0x4f9558(0x1f7)](_0x4f9558(0x245));_0x11d500!==''&&(_0x11d500+='&');_0x11d500+='signature='+_0x292d9d;const _0x91a105={'method':_0x4f9558(0x1ee),'uri':_0x117745['baseUrl']+_0x4f9558(0x20f)+_0x11d500,'json':!![]};return rp(_0x91a105)[_0x4f9558(0x255)](function(_0x278bc0){const _0x1ec18c=_0x4f9558,_0x2eb682=Object[_0x1ec18c(0x1f4)](_0x278bc0);if(_0x278bc0[_0x2eb682[0x0]][_0x1ec18c(0x241)]&&parseInt(_0x278bc0[_0x2eb682[0x0]]['error'])===0x0){const _0x1dfabd={'messageId':_0x278bc0[_0x2eb682[0x0]][_0x1ec18c(0x23a)]};return!_0x117745[_0x1ec18c(0x239)]&&(_0x1dfabd[_0x1ec18c(0x20c)]=!![]),_0x5bbec3[_0x1ec18c(0x210)](_0x1dfabd);}else return logger['error'](_0x1ec18c(0x204),_0x1ec18c(0x253),_0x1ec18c(0x252),util[_0x1ec18c(0x215)](_0x278bc0[_0x1ec18c(0x241)],{'showHidden':![],'depth':null}));})[_0x4f9558(0x203)](function(_0x39af60){const _0x2acdc9=_0x4f9558;return logger['error'](_0x2acdc9(0x204),_0x2acdc9(0x253),'csc',util[_0x2acdc9(0x215)](_0x39af60,{'showHidden':![],'depth':null}));});}else logger[_0x4f9558(0x241)](_0x4f9558(0x204),_0x4f9558(0x253),_0x4f9558(0x252),_0x4f9558(0x24d));break;case _0x4f9558(0x243):if(_0x117745['apiKey']){const _0x4040a2={'method':_0x4f9558(0x22d),'uri':_0x4f9558(0x214),'headers':{'Authorization':_0x117745[_0x4f9558(0x220)]},'body':{'content':_0x2511d5[_0x4f9558(0x233)],'to':[_0x2511d5[_0x4f9558(0x224)]],'from':_0x117745[_0x4f9558(0x224)],'binary':![],'clientMessageId':_0x4f9558(0x225),'charset':_0x4f9558(0x1ed)},'json':!![]};rp(_0x4040a2)[_0x4f9558(0x255)](function(_0x588163){const _0x4af155=_0x4f9558;if(!_0x588163[_0x4af155(0x241)]){const _0x111cba={'messageId':_0x588163[_0x4af155(0x22e)][0x0][_0x4af155(0x242)]};return!_0x117745[_0x4af155(0x239)]&&(_0x111cba[_0x4af155(0x20c)]=!![]),_0x5bbec3[_0x4af155(0x210)](_0x111cba);}else return logger[_0x4af155(0x241)](_0x4af155(0x204),_0x4af155(0x253),_0x4af155(0x243),util['inspect'](_0x588163['error'],{'showHidden':![],'depth':null}));})[_0x4f9558(0x203)](function(_0x4aa149){const _0xe50c29=_0x4f9558;return logger[_0xe50c29(0x241)](_0xe50c29(0x204),'afterCreate','clickatell',util[_0xe50c29(0x215)](_0x4aa149,{'showHidden':![],'depth':null}));});}else logger[_0x4f9558(0x241)]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x4f9558(0x253),_0x4f9558(0x243),_0x4f9558(0x24d));break;case _0x4f9558(0x200):{if(_0x117745[_0x4f9558(0x220)]){const _0x134142={},_0x2e336b={'method':'POST','uri':_0x4f9558(0x1ef),'headers':{'Authorization':_0x4f9558(0x201)+_0x117745[_0x4f9558(0x220)],'Content-Type':_0x4f9558(0x230)},'body':{'from':_0x117745['phone'],'to':_0x2511d5[_0x4f9558(0x224)],'text':_0x2511d5[_0x4f9558(0x233)]},'json':!![]};return rp(_0x2e336b)[_0x4f9558(0x255)](function(_0x598acd){const _0x363d42=_0x4f9558;if(_0x598acd[_0x363d42(0x227)]==0xca){_0x134142[_0x363d42(0x21e)]=_0x598acd;const _0x207a1b={'method':_0x363d42(0x22d),'uri':_0x363d42(0x211),'headers':{'Authorization':'Bearer\x20'+_0x117745[_0x363d42(0x220)],'Content-Type':_0x363d42(0x230)},'body':{'refid':_0x134142[_0x363d42(0x21e)][_0x363d42(0x248)]},'json':!![]};return rp(_0x207a1b)[_0x363d42(0x255)](function(_0x4745d0){const _0x49900a=_0x363d42;_0x134142[_0x49900a(0x217)]=_0x4745d0;const _0x3049c9={'messageId':_0x134142[_0x49900a(0x21e)][_0x49900a(0x248)],'read':!![]};_0x5bbec3[_0x49900a(0x210)](_0x3049c9);});}else logger[_0x363d42(0x241)](_0x363d42(0x204),'afterCreate','intelepeer',util[_0x363d42(0x215)](_0x598acd,{'showHidden':![],'depth':null}));})['catch'](function(_0x4a1cba){const _0x599258=_0x4f9558;logger[_0x599258(0x241)]('SmsMessage,\x20%s,\x20%s,\x20%s','afterCreate',_0x599258(0x200),util[_0x599258(0x215)](_0x4a1cba,{'showHidden':![],'depth':null}));});}else logger['error'](_0x4f9558(0x204),_0x4f9558(0x253),'intelepeer',_0x4f9558(0x20b));}break;}});}}},'charset':'utf8mb4','collate':_0x5c10e9(0x22a)};}module[a674_0x59e21b(0x223)][a674_0x59e21b(0x256)]=options; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.rpc.js b/server/api/smsMessage/smsMessage.rpc.js index 70f7223..cef6c6a 100644 --- a/server/api/smsMessage/smsMessage.rpc.js +++ b/server/api/smsMessage/smsMessage.rpc.js @@ -1 +1 @@ -const a675_0x1e21=['../../rediscache','rpc','create','raw','body','../../config/logger','error','stringify','CreateSmsMessage','message','./smsMessage.socket','register','then','info','../../mysqldb','SmsMessage'];(function(_0x23010f,_0x53a6f3){const _0x1e215f=function(_0x5b9c4a){while(--_0x5b9c4a){_0x23010f['push'](_0x23010f['shift']());}};_0x1e215f(++_0x53a6f3);}(a675_0x1e21,0x1ad));const a675_0x5b9c=function(_0x23010f,_0x53a6f3){_0x23010f=_0x23010f-0x196;let _0x1e215f=a675_0x1e21[_0x23010f];return _0x1e215f;};const a675_0x42e277=a675_0x5b9c;'use strict';const db=require(a675_0x42e277(0x197))['db'],logger=require(a675_0x42e277(0x19e))(a675_0x42e277(0x19a)),{getSocket}=require(a675_0x42e277(0x199)),socket=getSocket();require(a675_0x42e277(0x1a3))[a675_0x42e277(0x1a4)](socket),exports[a675_0x42e277(0x1a1)]=function(_0x2c17c8){const _0x18aa8d=this;return new Promise(function(_0x8e93c2,_0x30b2d6){const _0x3a7ee4=a675_0x5b9c;return db[_0x3a7ee4(0x198)][_0x3a7ee4(0x19b)](_0x2c17c8[_0x3a7ee4(0x19d)],{'raw':_0x2c17c8['options']?_0x2c17c8['options'][_0x3a7ee4(0x19c)]===undefined?!![]:![]:!![]})[_0x3a7ee4(0x1a5)](function(_0xf0e7ed){const _0xa24ae3=_0x3a7ee4;logger[_0xa24ae3(0x196)]('CreateSmsMessage',_0x2c17c8),logger['debug'](_0xa24ae3(0x1a1),_0x2c17c8,JSON[_0xa24ae3(0x1a0)](_0xf0e7ed)),_0x8e93c2(_0xf0e7ed);})['catch'](function(_0x4ba5da){const _0x5a530b=_0x3a7ee4;logger['error'](_0x5a530b(0x1a1),_0x4ba5da['message'],_0x2c17c8),_0x30b2d6(_0x18aa8d[_0x5a530b(0x19f)](0x1f4,_0x4ba5da[_0x5a530b(0x1a2)]));});});}; \ No newline at end of file +const a675_0x4fee=['SmsMessage','create','raw','stringify','../../rediscache','info','then','error','../../config/logger','CreateSmsMessage','message','register','body','./smsMessage.socket','rpc','options'];(function(_0x3df886,_0x27bc7d){const _0x4fee5e=function(_0x131855){while(--_0x131855){_0x3df886['push'](_0x3df886['shift']());}};_0x4fee5e(++_0x27bc7d);}(a675_0x4fee,0x13f));const a675_0x1318=function(_0x3df886,_0x27bc7d){_0x3df886=_0x3df886-0x1b2;let _0x4fee5e=a675_0x4fee[_0x3df886];return _0x4fee5e;};const a675_0x2560a1=a675_0x1318;'use strict';const db=require('../../mysqldb')['db'],logger=require(a675_0x2560a1(0x1bb))(a675_0x2560a1(0x1c1)),{getSocket}=require(a675_0x2560a1(0x1b7)),socket=getSocket();require(a675_0x2560a1(0x1c0))[a675_0x2560a1(0x1be)](socket),exports[a675_0x2560a1(0x1bc)]=function(_0x12faca){const _0xe41f87=this;return new Promise(function(_0x29f61a,_0x52cac7){const _0x5da5e9=a675_0x1318;return db[_0x5da5e9(0x1b3)][_0x5da5e9(0x1b4)](_0x12faca[_0x5da5e9(0x1bf)],{'raw':_0x12faca['options']?_0x12faca[_0x5da5e9(0x1b2)][_0x5da5e9(0x1b5)]===undefined?!![]:![]:!![]})[_0x5da5e9(0x1b9)](function(_0x4a51c8){const _0x4ca2af=_0x5da5e9;logger[_0x4ca2af(0x1b8)](_0x4ca2af(0x1bc),_0x12faca),logger['debug'](_0x4ca2af(0x1bc),_0x12faca,JSON[_0x4ca2af(0x1b6)](_0x4a51c8)),_0x29f61a(_0x4a51c8);})['catch'](function(_0x3567ff){const _0x59bba3=_0x5da5e9;logger[_0x59bba3(0x1ba)](_0x59bba3(0x1bc),_0x3567ff[_0x59bba3(0x1bd)],_0x12faca),_0x52cac7(_0xe41f87[_0x59bba3(0x1ba)](0x1f4,_0x3567ff[_0x59bba3(0x1bd)]));});});}; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.socket.js b/server/api/smsMessage/smsMessage.socket.js index 421fea1..08d187f 100644 --- a/server/api/smsMessage/smsMessage.socket.js +++ b/server/api/smsMessage/smsMessage.socket.js @@ -1 +1 @@ -const a676_0x21e3=['save','remove','register','smsMessage:','emit','length','update'];(function(_0x500dd8,_0x5292ca){const _0x21e34b=function(_0x59c167){while(--_0x59c167){_0x500dd8['push'](_0x500dd8['shift']());}};_0x21e34b(++_0x5292ca);}(a676_0x21e3,0x1eb));const a676_0x59c1=function(_0x500dd8,_0x5292ca){_0x500dd8=_0x500dd8-0x18e;let _0x21e34b=a676_0x21e3[_0x500dd8];return _0x21e34b;};const a676_0x57c42e=a676_0x59c1;'use strict';const SmsMessageEvents=require('./smsMessage.events'),events=[a676_0x57c42e(0x194),a676_0x57c42e(0x18e),a676_0x57c42e(0x193)];function createListener(_0x77c241,_0x2c3721){return function(_0x2d4d7e){const _0x571b22=a676_0x59c1;_0x2c3721[_0x571b22(0x191)](_0x77c241,_0x2d4d7e);};}exports[a676_0x57c42e(0x18f)]=function(_0x4edcb8){const _0x4ec46d=a676_0x57c42e;for(let _0x11d7ed=0x0,_0x1998b8=events[_0x4ec46d(0x192)];_0x11d7ed<_0x1998b8;_0x11d7ed++){const _0x3833f7=events[_0x11d7ed],_0x24522f=createListener(_0x4ec46d(0x190)+_0x3833f7,_0x4edcb8);SmsMessageEvents['on'](_0x3833f7,_0x24522f);}}; \ No newline at end of file +const a676_0x2dc3=['./smsMessage.events','emit','save','smsMessage:','update'];(function(_0x353381,_0x435963){const _0x2dc3c7=function(_0x531a91){while(--_0x531a91){_0x353381['push'](_0x353381['shift']());}};_0x2dc3c7(++_0x435963);}(a676_0x2dc3,0xb3));const a676_0x531a=function(_0x353381,_0x435963){_0x353381=_0x353381-0x9f;let _0x2dc3c7=a676_0x2dc3[_0x353381];return _0x2dc3c7;};const a676_0x10719c=a676_0x531a;'use strict';const SmsMessageEvents=require(a676_0x10719c(0xa0)),events=[a676_0x10719c(0xa2),'remove',a676_0x10719c(0x9f)];function createListener(_0x2898eb,_0x14aa10){return function(_0x19895a){const _0x4071cc=a676_0x531a;_0x14aa10[_0x4071cc(0xa1)](_0x2898eb,_0x19895a);};}exports['register']=function(_0x164ab8){const _0x109754=a676_0x10719c;for(let _0x3d6072=0x0,_0x54fa5c=events['length'];_0x3d6072<_0x54fa5c;_0x3d6072++){const _0x2eaa1c=events[_0x3d6072],_0x41c45f=createListener(_0x109754(0xa3)+_0x2eaa1c,_0x164ab8);SmsMessageEvents['on'](_0x2eaa1c,_0x41c45f);}}; \ No newline at end of file diff --git a/server/api/smsQueue/index.js b/server/api/smsQueue/index.js index 7f46335..80211bc 100644 --- a/server/api/smsQueue/index.js +++ b/server/api/smsQueue/index.js @@ -1 +1 @@ -const a677_0x4857=['Router','express','update','/describe','index','getTeams','isAuthenticated','destroy','getMembers','../../components/auth/service','/:id/users','delete','get','describe','put','show','removeTeams','post','exports','/:id','removeAgents','/:id/teams'];(function(_0x556357,_0x1371a5){const _0x48574d=function(_0x2ccacc){while(--_0x2ccacc){_0x556357['push'](_0x556357['shift']());}};_0x48574d(++_0x1371a5);}(a677_0x4857,0xb8));const a677_0x2cca=function(_0x556357,_0x1371a5){_0x556357=_0x556357-0x118;let _0x48574d=a677_0x4857[_0x556357];return _0x48574d;};const a677_0x5382a0=a677_0x2cca;'use strict';const express=require(a677_0x5382a0(0x127)),router=express[a677_0x5382a0(0x126)](),auth=require(a677_0x5382a0(0x119)),controller=require('./smsQueue.controller');router[a677_0x5382a0(0x11c)]('/',auth[a677_0x5382a0(0x12c)](),controller[a677_0x5382a0(0x12a)]),router[a677_0x5382a0(0x11c)](a677_0x5382a0(0x129),auth['isAuthenticated'](),controller[a677_0x5382a0(0x11d)]),router[a677_0x5382a0(0x11c)](a677_0x5382a0(0x123),auth['isAuthenticated'](),controller[a677_0x5382a0(0x11f)]),router[a677_0x5382a0(0x11c)]('/:id/members',auth['isAuthenticated'](),controller[a677_0x5382a0(0x118)]),router[a677_0x5382a0(0x11c)](a677_0x5382a0(0x125),auth['isAuthenticated'](),controller[a677_0x5382a0(0x12b)]),router[a677_0x5382a0(0x11c)](a677_0x5382a0(0x11a),auth[a677_0x5382a0(0x12c)](),controller['getAgents']),router[a677_0x5382a0(0x121)]('/',auth['isAuthenticated'](),controller['create']),router[a677_0x5382a0(0x121)](a677_0x5382a0(0x125),auth[a677_0x5382a0(0x12c)](),controller['addTeams']),router['post'](a677_0x5382a0(0x11a),auth[a677_0x5382a0(0x12c)](),controller['addAgents']),router[a677_0x5382a0(0x11e)]('/:id',auth[a677_0x5382a0(0x12c)](),controller[a677_0x5382a0(0x128)]),router['delete'](a677_0x5382a0(0x123),auth[a677_0x5382a0(0x12c)](),controller[a677_0x5382a0(0x12d)]),router[a677_0x5382a0(0x11b)](a677_0x5382a0(0x125),auth[a677_0x5382a0(0x12c)](),controller[a677_0x5382a0(0x120)]),router[a677_0x5382a0(0x11b)]('/:id/users',auth[a677_0x5382a0(0x12c)](),controller[a677_0x5382a0(0x124)]),module[a677_0x5382a0(0x122)]=router; \ No newline at end of file +const a677_0x1b65=['destroy','/describe','update','/:id/members','/:id','create','describe','/:id/users','post','express','addTeams','delete','exports','../../components/auth/service','/:id/teams','get','addAgents','removeTeams','isAuthenticated'];(function(_0x11e535,_0x402152){const _0x1b65da=function(_0x477496){while(--_0x477496){_0x11e535['push'](_0x11e535['shift']());}};_0x1b65da(++_0x402152);}(a677_0x1b65,0x19d));const a677_0x4774=function(_0x11e535,_0x402152){_0x11e535=_0x11e535-0xeb;let _0x1b65da=a677_0x1b65[_0x11e535];return _0x1b65da;};const a677_0x572035=a677_0x4774;'use strict';const express=require(a677_0x572035(0xf9)),router=express['Router'](),auth=require(a677_0x572035(0xfd)),controller=require('./smsQueue.controller');router[a677_0x572035(0xec)]('/',auth[a677_0x572035(0xef)](),controller['index']),router[a677_0x572035(0xec)](a677_0x572035(0xf1),auth[a677_0x572035(0xef)](),controller[a677_0x572035(0xf6)]),router['get'](a677_0x572035(0xf4),auth['isAuthenticated'](),controller['show']),router[a677_0x572035(0xec)](a677_0x572035(0xf3),auth[a677_0x572035(0xef)](),controller['getMembers']),router[a677_0x572035(0xec)](a677_0x572035(0xeb),auth[a677_0x572035(0xef)](),controller['getTeams']),router[a677_0x572035(0xec)]('/:id/users',auth['isAuthenticated'](),controller['getAgents']),router[a677_0x572035(0xf8)]('/',auth[a677_0x572035(0xef)](),controller[a677_0x572035(0xf5)]),router[a677_0x572035(0xf8)](a677_0x572035(0xeb),auth['isAuthenticated'](),controller[a677_0x572035(0xfa)]),router[a677_0x572035(0xf8)](a677_0x572035(0xf7),auth[a677_0x572035(0xef)](),controller[a677_0x572035(0xed)]),router['put'](a677_0x572035(0xf4),auth['isAuthenticated'](),controller[a677_0x572035(0xf2)]),router['delete']('/:id',auth[a677_0x572035(0xef)](),controller[a677_0x572035(0xf0)]),router['delete'](a677_0x572035(0xeb),auth[a677_0x572035(0xef)](),controller[a677_0x572035(0xee)]),router[a677_0x572035(0xfb)](a677_0x572035(0xf7),auth[a677_0x572035(0xef)](),controller['removeAgents']),module[a677_0x572035(0xfc)]=router; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.attributes.js b/server/api/smsQueue/smsQueue.attributes.js index 71b7fd4..e173931 100644 --- a/server/api/smsQueue/smsQueue.attributes.js +++ b/server/api/smsQueue/smsQueue.attributes.js @@ -1 +1 @@ -const a678_0x3f5c=['roundrobin','rrmemory','exports','ENUM','name','STRING','attributes','INTEGER'];(function(_0x1c85d0,_0x5234b1){const _0x3f5cc8=function(_0x405d5a){while(--_0x405d5a){_0x1c85d0['push'](_0x1c85d0['shift']());}};_0x3f5cc8(++_0x5234b1);}(a678_0x3f5c,0x67));const a678_0x405d=function(_0x1c85d0,_0x5234b1){_0x1c85d0=_0x1c85d0-0x1a9;let _0x3f5cc8=a678_0x3f5c[_0x1c85d0];return _0x3f5cc8;};const a678_0x4f4bf9=a678_0x405d;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a678_0x4f4bf9(0x1af)],'unique':a678_0x4f4bf9(0x1ae),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':DataTypes[a678_0x4f4bf9(0x1af)]},'timeout':{'type':DataTypes[a678_0x4f4bf9(0x1a9)],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes[a678_0x4f4bf9(0x1ad)](a678_0x4f4bf9(0x1ab),'beepall',a678_0x4f4bf9(0x1aa))}};module[a678_0x4f4bf9(0x1ac)][a678_0x4f4bf9(0x1b0)]=attributes; \ No newline at end of file +const a678_0x3526=['ENUM','roundrobin','attributes','sequelize','name','STRING','beepall'];(function(_0x8cef68,_0x33d2bc){const _0x3526dd=function(_0x3fa6b3){while(--_0x3fa6b3){_0x8cef68['push'](_0x8cef68['shift']());}};_0x3526dd(++_0x33d2bc);}(a678_0x3526,0x1af));const a678_0x3fa6=function(_0x8cef68,_0x33d2bc){_0x8cef68=_0x8cef68-0x8c;let _0x3526dd=a678_0x3526[_0x8cef68];return _0x3526dd;};const a678_0x35aa46=a678_0x3fa6;'use strict';const {DataTypes}=require(a678_0x35aa46(0x92)),attributes={'name':{'type':DataTypes[a678_0x35aa46(0x8d)],'unique':a678_0x35aa46(0x8c),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':DataTypes[a678_0x35aa46(0x8d)]},'timeout':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes[a678_0x35aa46(0x8f)]('rrmemory',a678_0x35aa46(0x8e),a678_0x35aa46(0x90))}};module['exports'][a678_0x35aa46(0x91)]=attributes; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.controller.js b/server/api/smsQueue/smsQueue.controller.js index b41a48d..a67195a 100644 --- a/server/api/smsQueue/smsQueue.controller.js +++ b/server/api/smsQueue/smsQueue.controller.js @@ -1 +1 @@ -const a679_0x32dc=['get','../../components/parsers/qs','createdAt','voicePause','undefined','userProfileId','TeamId','role','updatedAt','sort','squel','value','stack','count','tq.TeamId','getAgents','removeTeams','clone','UserProfileSection','create','set','fieldName','then','findAndCountAll','addAgents','options','fields','limit','sendStatus','join','../../rediscache','omit','autoAssociation','every','user_has_teams','./smsQueue.socket','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','emit','model','end','getTeams','push','addTeams','status','userSmsQueue:remove','Agents','util','UserSmsQueue','select','SmsQueue','forEach','UserProfileResource','agent','intersection','ids','describe','register','compact','SELECT','length','field','ut.TeamId\x20=\x20tq.TeamId','Unable\x20to\x20retrieve\x20the\x20current\x20user','getMembers','update','User','lodash','Content-Range','rows','params','body','Team','team_has_sms_queues','where','SmsQueueId','format','catch','filters','ut.UserId\x20=\x20?','%s/%s','attributes','SmsQueueId\x20=\x20?','toString','flatMap','isArray','type','userSmsQueue:save','interface','SmsQueues','like','sequelize','filter','map','union','destroy','findOne','VIRTUAL','rawAttributes','removeAgents','api','json','findOrCreate','merge','online','key','query','include','pick','order','../../config/logger','findAll','error','keys','from','name','user','all','../../mysqldb','SIP','offset'];(function(_0x4b93b0,_0x298446){const _0x32dcec=function(_0x162edd){while(--_0x162edd){_0x4b93b0['push'](_0x4b93b0['shift']());}};_0x32dcec(++_0x298446);}(a679_0x32dc,0x1ef));const a679_0x162e=function(_0x4b93b0,_0x298446){_0x4b93b0=_0x4b93b0-0x98;let _0x32dcec=a679_0x32dc[_0x4b93b0];return _0x32dcec;};const a679_0x22e361=a679_0x162e;'use strict';const util=require(a679_0x22e361(0xb7)),_=require(a679_0x22e361(0xcb)),squel=require(a679_0x22e361(0x10b)),qs=require(a679_0x22e361(0x102)),logger=require(a679_0x22e361(0xf6))(a679_0x22e361(0xec)),{getSocket}=require(a679_0x22e361(0xa7)),socket=getSocket(),{db}=require(a679_0x22e361(0xfe)),{Op,QueryTypes}=require(a679_0x22e361(0xe3));require(a679_0x22e361(0xac))[a679_0x22e361(0xc1)](socket);function respondWithStatusCode(_0x52b5b7,_0x14b422){return _0x14b422=_0x14b422||0xcc,function(_0xb04770){const _0x29dadb=a679_0x162e;if(_0xb04770)return _0x52b5b7[_0x29dadb(0xa5)](_0x14b422);return _0x52b5b7[_0x29dadb(0xb4)](_0x14b422)[_0x29dadb(0xb0)]();};}function respondWithResult(_0x241e1f,_0x1126b7){return _0x1126b7=_0x1126b7||0xc8,function(_0x16c99a){const _0x9804eb=a679_0x162e;if(_0x16c99a)return _0x241e1f[_0x9804eb(0xb4)](_0x1126b7)[_0x9804eb(0xed)](_0x16c99a);};}function respondWithFilteredResult(_0x5b2f01,_0x1f23b4){return function(_0x20910f){const _0x4869b6=a679_0x162e;if(_0x20910f){const _0x493c0e=_0x20910f[_0x4869b6(0x10e)],_0x5af0e1=_0x1f23b4[_0x4869b6(0x100)];let _0x1eb0bb=_0x1f23b4[_0x4869b6(0x100)]+_0x1f23b4[_0x4869b6(0xa4)],_0xf47b95;return _0x1eb0bb>=_0x493c0e?(_0x1eb0bb=_0x493c0e,_0xf47b95=0xc8):_0xf47b95=0xce,_0x5b2f01[_0x4869b6(0xb4)](_0xf47b95),_0x5b2f01[_0x4869b6(0x9d)](_0x4869b6(0xcc),_0x5af0e1+'-'+_0x1eb0bb+'/'+_0x493c0e)[_0x4869b6(0xed)](_0x20910f);}return null;};}function saveUpdates(_0x50653e){return function(_0x2b0b1c){const _0x2d02a5=a679_0x162e;if(_0x2b0b1c)return _0x2b0b1c[_0x2d02a5(0xc9)](_0x50653e)[_0x2d02a5(0x9f)](function(_0x474744){return _0x474744;});return null;};}function removeEntity(_0x340712){return function(_0x15f602){const _0x25da80=a679_0x162e;if(_0x15f602)return _0x15f602[_0x25da80(0xe7)]()[_0x25da80(0x9f)](function(){const _0x1f9d57=_0x25da80,_0x24ada1=_0x15f602[_0x1f9d57(0x101)]({'plain':!![]}),_0x3976a0=_0x1f9d57(0xe1);return db['UserProfileResource'][_0x1f9d57(0xe7)]({'where':{'type':_0x3976a0,'resourceId':_0x24ada1['id']}})[_0x1f9d57(0x9f)](function(){return _0x15f602;});})[_0x25da80(0x9f)](function(){const _0x441c4c=_0x25da80;_0x340712[_0x441c4c(0xb4)](0xcc)[_0x441c4c(0xb0)]();});};}function handleEntityNotFound(_0x310b24){return function(_0x2ff623){const _0x43e3cf=a679_0x162e;return!_0x2ff623&&_0x310b24[_0x43e3cf(0xa5)](0x194),_0x2ff623;};}function handleError(_0x32b481,_0x15994d){return _0x15994d=_0x15994d||0x1f4,function(_0x2e2667){const _0x4197a0=a679_0x162e;logger[_0x4197a0(0xf8)](_0x2e2667[_0x4197a0(0x10d)]),_0x2e2667['name']&&delete _0x2e2667['name'],_0x32b481[_0x4197a0(0xb4)](_0x15994d)['send'](_0x2e2667);};}exports['index']=function(_0x451069,_0x7951d8){const _0x547405=a679_0x22e361;let _0x1ffd11={};const _0x113aec={},_0x587225={'count':0x0,'rows':[]},_0x37f9fd=_[_0x547405(0xe5)](db[_0x547405(0xba)][_0x547405(0xea)],function(_0x3815dc){const _0x40cee1=_0x547405;return{'name':_0x3815dc[_0x40cee1(0x9e)],'type':_0x3815dc[_0x40cee1(0xde)][_0x40cee1(0xf1)]};});_0x113aec[_0x547405(0xaf)]=_['map'](_0x37f9fd,_0x547405(0xfb)),_0x113aec[_0x547405(0xf2)]=_['keys'](_0x451069[_0x547405(0xf2)]),_0x113aec[_0x547405(0xd6)]=_[_0x547405(0xbe)](_0x113aec[_0x547405(0xaf)],_0x113aec[_0x547405(0xf2)]),_0x1ffd11[_0x547405(0xd9)]=_['intersection'](_0x113aec[_0x547405(0xaf)],qs[_0x547405(0xa3)](_0x451069[_0x547405(0xf2)][_0x547405(0xa3)])),_0x1ffd11[_0x547405(0xd9)]=_0x1ffd11[_0x547405(0xd9)][_0x547405(0xc4)]?_0x1ffd11[_0x547405(0xd9)]:_0x113aec[_0x547405(0xaf)];typeof _0x451069[_0x547405(0xf2)]['nolimit']==='undefined'&&(_0x1ffd11[_0x547405(0xa4)]=qs[_0x547405(0xa4)](_0x451069['query'][_0x547405(0xa4)]),_0x1ffd11[_0x547405(0x100)]=qs[_0x547405(0x100)](_0x451069['query'][_0x547405(0x100)]));_0x1ffd11[_0x547405(0xf5)]=qs[_0x547405(0x10a)](_0x451069[_0x547405(0xf2)][_0x547405(0x10a)]),_0x1ffd11[_0x547405(0xd2)]=qs['filters'](_['pick'](_0x451069[_0x547405(0xf2)],_0x113aec[_0x547405(0xd6)]),_0x37f9fd);_0x451069['query'][_0x547405(0xe4)]&&(_0x1ffd11['where']=_[_0x547405(0xef)](_0x1ffd11[_0x547405(0xd2)],{[Op['or']]:_['map'](_0x37f9fd,function(_0x18d453){const _0x560786=_0x547405;if(_0x18d453[_0x560786(0xde)]!==_0x560786(0xe9)){const _0x108a73={};return _0x108a73[_0x18d453['name']]={[Op[_0x560786(0xe2)]]:'%'+_0x451069[_0x560786(0xf2)][_0x560786(0xe4)]+'%'},_0x108a73;}})}));_0x1ffd11=_[_0x547405(0xef)]({},_0x1ffd11,_0x451069[_0x547405(0xa2)]);const _0x844989={'where':_0x1ffd11[_0x547405(0xd2)]};return db['SmsQueue'][_0x547405(0x10e)](_0x844989)['then'](function(_0x4db497){const _0x1b5cde=_0x547405;return _0x587225[_0x1b5cde(0x10e)]=_0x4db497,_0x451069[_0x1b5cde(0xf2)]['includeAll']&&(_0x1ffd11['include']=[{'all':!![]}]),db[_0x1b5cde(0xba)][_0x1b5cde(0xf7)](_0x1ffd11);})[_0x547405(0x9f)](function(_0x156ae3){const _0x4c8844=_0x547405;return _0x587225[_0x4c8844(0xcd)]=_0x156ae3,_0x587225;})[_0x547405(0x9f)](respondWithFilteredResult(_0x7951d8,_0x1ffd11))[_0x547405(0xd5)](handleError(_0x7951d8,null));},exports['show']=function(_0x1d8f95,_0x562793){const _0x473d4c=a679_0x22e361;let _0x5aff49={'raw':!![],'where':{'id':_0x1d8f95[_0x473d4c(0xce)]['id']}};const _0x46dc72={};return _0x46dc72[_0x473d4c(0xaf)]=_[_0x473d4c(0xf9)](db[_0x473d4c(0xba)]['rawAttributes']),_0x46dc72['query']=_[_0x473d4c(0xf9)](_0x1d8f95[_0x473d4c(0xf2)]),_0x46dc72[_0x473d4c(0xd6)]=_[_0x473d4c(0xbe)](_0x46dc72[_0x473d4c(0xaf)],_0x46dc72['query']),_0x5aff49[_0x473d4c(0xd9)]=_[_0x473d4c(0xbe)](_0x46dc72['model'],qs['fields'](_0x1d8f95[_0x473d4c(0xf2)]['fields'])),_0x5aff49[_0x473d4c(0xd9)]=_0x5aff49['attributes'][_0x473d4c(0xc4)]?_0x5aff49[_0x473d4c(0xd9)]:_0x46dc72[_0x473d4c(0xaf)],_0x1d8f95['query']['includeAll']&&(_0x5aff49[_0x473d4c(0xf3)]=[{'all':!![]}]),_0x5aff49=_[_0x473d4c(0xef)]({},_0x5aff49,_0x1d8f95[_0x473d4c(0xa2)]),db['SmsQueue'][_0x473d4c(0xe8)](_0x5aff49)['then'](handleEntityNotFound(_0x562793,null))[_0x473d4c(0x9f)](respondWithResult(_0x562793,null))[_0x473d4c(0xd5)](handleError(_0x562793,null));},exports[a679_0x22e361(0x9c)]=function(_0x248230,_0x2751aa){const _0x264b78=a679_0x22e361;return db['SmsQueue']['create'](_0x248230[_0x264b78(0xcf)],{})['then'](function(_0x27eab9){const _0x5d2926=_0x264b78,_0x2bd6f0=_0x248230['user'][_0x5d2926(0x101)]({'plain':!![]});if(!_0x2bd6f0)throw new Error(_0x5d2926(0xc7));if(_0x2bd6f0[_0x5d2926(0x108)]===_0x5d2926(0xfc)){const _0xddd683=_0x27eab9['get']({'plain':!![]}),_0x2f20c2=_0x5d2926(0xe1);return db[_0x5d2926(0x9b)][_0x5d2926(0xe8)]({'where':{'name':_0x2f20c2,'userProfileId':_0x2bd6f0[_0x5d2926(0x106)]},'raw':!![]})[_0x5d2926(0x9f)](function(_0x5dc6c4){const _0x1b4fc1=_0x5d2926;return _0x5dc6c4&&_0x5dc6c4[_0x1b4fc1(0xa9)]===0x0?db[_0x1b4fc1(0xbc)]['create']({'name':_0xddd683['name'],'resourceId':_0xddd683['id'],'type':_0x5dc6c4[_0x1b4fc1(0xfb)],'sectionId':_0x5dc6c4['id']},{})[_0x1b4fc1(0x9f)](function(){return _0x27eab9;}):_0x27eab9;})[_0x5d2926(0xd5)](function(_0x199953){const _0x5f5bf4=_0x5d2926;logger[_0x5f5bf4(0xf8)](_0x5f5bf4(0xad),_0x199953);throw _0x199953;});}return _0x27eab9;})[_0x264b78(0x9f)](respondWithResult(_0x2751aa,0xc9))[_0x264b78(0xd5)](handleError(_0x2751aa,null));},exports[a679_0x22e361(0xc9)]=function(_0x4e2025,_0x2367fe){const _0x56ab5b=a679_0x22e361;return _0x4e2025['body']['id']&&delete _0x4e2025[_0x56ab5b(0xcf)]['id'],db[_0x56ab5b(0xba)][_0x56ab5b(0xe8)]({'where':{'id':_0x4e2025[_0x56ab5b(0xce)]['id']}})[_0x56ab5b(0x9f)](handleEntityNotFound(_0x2367fe,null))[_0x56ab5b(0x9f)](saveUpdates(_0x4e2025[_0x56ab5b(0xcf)],null))[_0x56ab5b(0x9f)](respondWithResult(_0x2367fe,null))[_0x56ab5b(0xd5)](handleError(_0x2367fe,null));},exports[a679_0x22e361(0xe7)]=function(_0x1c8283,_0x41ca4e){const _0xa022f9=a679_0x22e361;return db[_0xa022f9(0xba)][_0xa022f9(0xe8)]({'where':{'id':_0x1c8283[_0xa022f9(0xce)]['id']}})['then'](handleEntityNotFound(_0x41ca4e,null))['then'](removeEntity(_0x41ca4e,null))['catch'](handleError(_0x41ca4e,null));},exports[a679_0x22e361(0xc0)]=function(_0x23d470,_0x359dc2){const _0x165087=a679_0x22e361;return db[_0x165087(0xba)][_0x165087(0xc0)]()[_0x165087(0x9f)](respondWithResult(_0x359dc2,null))[_0x165087(0xd5)](handleError(_0x359dc2,null));},exports[a679_0x22e361(0xc8)]=function(_0x1c90d8,_0x508c14){const _0x18d50b=a679_0x22e361;let _0x7c1a28={'raw':!![],'where':{}};const _0x4389d0={};let _0x42a9a0;return db[_0x18d50b(0xba)][_0x18d50b(0xe8)]({'where':{'id':_0x1c90d8[_0x18d50b(0xce)]['id']}})[_0x18d50b(0x9f)](handleEntityNotFound(_0x508c14,null))[_0x18d50b(0x9f)](function(_0xa35430){const _0x41ca05=_0x18d50b;if(_0xa35430)return _0x42a9a0=_0xa35430['get']({'plain':!![]}),_0x4389d0['model']=_[_0x41ca05(0xf9)](db[_0x41ca05(0xb8)][_0x41ca05(0xea)]),_0x4389d0[_0x41ca05(0xf2)]=_[_0x41ca05(0xf9)](_0x1c90d8[_0x41ca05(0xf2)]),_0x4389d0['filters']=_[_0x41ca05(0xbe)](_0x4389d0[_0x41ca05(0xaf)],_0x4389d0[_0x41ca05(0xf2)]),_0x7c1a28[_0x41ca05(0xd9)]=_[_0x41ca05(0xbe)](_0x4389d0['model'],qs[_0x41ca05(0xa3)](_0x1c90d8[_0x41ca05(0xf2)][_0x41ca05(0xa3)])),_0x7c1a28[_0x41ca05(0xd9)]=_0x7c1a28['attributes'][_0x41ca05(0xc4)]?_0x7c1a28[_0x41ca05(0xd9)]:_0x4389d0[_0x41ca05(0xaf)],typeof _0x1c90d8[_0x41ca05(0xf2)]['nolimit']==='undefined'&&(_0x7c1a28[_0x41ca05(0xa4)]=qs[_0x41ca05(0xa4)](_0x1c90d8[_0x41ca05(0xf2)][_0x41ca05(0xa4)]),_0x7c1a28[_0x41ca05(0x100)]=qs[_0x41ca05(0x100)](_0x1c90d8['query']['offset'])),_0x7c1a28[_0x41ca05(0xf5)]=qs[_0x41ca05(0x10a)](_0x1c90d8['query'][_0x41ca05(0x10a)]),_0x7c1a28[_0x41ca05(0xd2)]=qs[_0x41ca05(0xd6)](_[_0x41ca05(0xf4)](_0x1c90d8[_0x41ca05(0xf2)],_0x4389d0[_0x41ca05(0xd6)])),_0x7c1a28[_0x41ca05(0xd2)][_0x41ca05(0xd3)]=_0xa35430['id'],_0x1c90d8[_0x41ca05(0xf2)]['filter']&&(_0x7c1a28[_0x41ca05(0xd2)]=_[_0x41ca05(0xef)](_0x7c1a28[_0x41ca05(0xd2)],{[Op['or']]:_[_0x41ca05(0xe5)](_0x7c1a28['attributes'],function(_0x1153d9){const _0x1b742b=_0x41ca05,_0x4be6aa={};return _0x4be6aa[_0x1153d9]={[Op[_0x1b742b(0xe2)]]:'%'+_0x1c90d8[_0x1b742b(0xf2)][_0x1b742b(0xe4)]+'%'},_0x4be6aa;})})),_0x7c1a28=_[_0x41ca05(0xef)]({},_0x7c1a28,_0x1c90d8[_0x41ca05(0xa2)]),db[_0x41ca05(0xb8)]['findAll'](_0x7c1a28);})[_0x18d50b(0x9f)](function(_0x2ff20e){const _0x2fb2b9=_0x18d50b;if(_0x2ff20e)return db[_0x2fb2b9(0xca)][_0x2fb2b9(0xa0)]({'where':{'id':_[_0x2fb2b9(0xe5)](_0x2ff20e,'UserId'),'role':_0x2fb2b9(0xbd)},'attributes':['id',_0x2fb2b9(0xfb),'smsPause',_0x2fb2b9(0x109),_0x2fb2b9(0x103)]});})[_0x18d50b(0x9f)](function(_0x49d9c4){const _0x55545f=_0x18d50b;return _0x49d9c4?{'count':_0x49d9c4['count'],'rows':_[_0x55545f(0xe5)](_0x49d9c4['rows'],function(_0xb5623){const _0x495f86=_0x55545f;return{'membername':_0xb5623[_0x495f86(0xfb)],'UserId':_0xb5623['id'],'queue_name':_0x42a9a0[_0x495f86(0xfb)],'SmsQueueId':_0x42a9a0['id'],'interface':util[_0x495f86(0xd4)](_0x495f86(0xd8),_0x495f86(0xff),_0xb5623[_0x495f86(0xfb)]),'penalty':0x0,'paused':_0xb5623['smsPause'],'createdAt':_0xb5623['createdAt'],'updatedAt':_0xb5623[_0x495f86(0x109)]};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0x508c14,_0x7c1a28))[_0x18d50b(0xd5)](handleError(_0x508c14,null));},exports[a679_0x22e361(0xb1)]=function(_0x4de92f,_0x599ff1){const _0x85e0ce=a679_0x22e361;let _0x2eb734={};const _0x13ac7a={};let _0x261575,_0x5370bf;return db[_0x85e0ce(0xba)][_0x85e0ce(0xe8)]({'where':{'id':_0x4de92f[_0x85e0ce(0xce)]['id']}})[_0x85e0ce(0x9f)](handleEntityNotFound(_0x599ff1,null))[_0x85e0ce(0x9f)](function(_0x52eb00){const _0x20393e=_0x85e0ce;if(_0x52eb00)return _0x261575=_0x52eb00,_0x13ac7a[_0x20393e(0xaf)]=_[_0x20393e(0xf9)](db[_0x20393e(0xd0)][_0x20393e(0xea)]),_0x13ac7a[_0x20393e(0xf2)]=_[_0x20393e(0xf9)](_0x4de92f[_0x20393e(0xf2)]),_0x13ac7a['filters']=_['intersection'](_0x13ac7a['model'],_0x13ac7a['query']),_0x2eb734[_0x20393e(0xd9)]=_[_0x20393e(0xbe)](_0x13ac7a[_0x20393e(0xaf)],qs[_0x20393e(0xa3)](_0x4de92f['query'][_0x20393e(0xa3)])),_0x2eb734[_0x20393e(0xd9)]=_0x2eb734[_0x20393e(0xd9)]['length']?_0x2eb734[_0x20393e(0xd9)]:_0x13ac7a[_0x20393e(0xaf)],_0x2eb734['order']=qs['sort'](_0x4de92f['query']['sort']),_0x2eb734['where']=qs['filters'](_[_0x20393e(0xf4)](_0x4de92f['query'],_0x13ac7a[_0x20393e(0xd6)])),_0x4de92f[_0x20393e(0xf2)][_0x20393e(0xe4)]&&(_0x2eb734[_0x20393e(0xd2)]=_[_0x20393e(0xef)](_0x2eb734['where'],{[Op['or']]:_['map'](_0x2eb734[_0x20393e(0xd9)],function(_0x54b3b0){const _0x1d9300=_0x20393e,_0x5c4de4={};return _0x5c4de4[_0x54b3b0]={[Op[_0x1d9300(0xe2)]]:'%'+_0x4de92f[_0x1d9300(0xf2)][_0x1d9300(0xe4)]+'%'},_0x5c4de4;})})),_0x2eb734=_['merge']({},_0x2eb734,_0x4de92f[_0x20393e(0xa2)]),_0x261575[_0x20393e(0xb1)](_0x2eb734);})['then'](function(_0x20f2f8){const _0x52396e=_0x85e0ce;if(_0x20f2f8)return _0x5370bf=_0x20f2f8[_0x52396e(0xc4)],typeof _0x4de92f[_0x52396e(0xf2)]['nolimit']===_0x52396e(0x105)&&(_0x2eb734[_0x52396e(0xa4)]=qs[_0x52396e(0xa4)](_0x4de92f[_0x52396e(0xf2)][_0x52396e(0xa4)]),_0x2eb734[_0x52396e(0x100)]=qs['offset'](_0x4de92f[_0x52396e(0xf2)]['offset'])),_0x261575[_0x52396e(0xb1)](_0x2eb734);})[_0x85e0ce(0x9f)](function(_0x56fb39){if(_0x56fb39)return _0x56fb39?{'count':_0x5370bf,'rows':_0x56fb39}:null;})[_0x85e0ce(0x9f)](respondWithResult(_0x599ff1,null))[_0x85e0ce(0xd5)](handleError(_0x599ff1,null));},exports['addTeams']=function(_0x32900c,_0x376fc5){const _0x475742=a679_0x22e361,_0x1cff3e=_0x32900c[_0x475742(0xcf)]['ids'];return db[_0x475742(0xd0)][_0x475742(0xf7)]({'where':{'id':_0x1cff3e},'attributes':['id'],'include':[{'model':db[_0x475742(0xca)],'as':_0x475742(0xb6),'attributes':['id','name',_0x475742(0xf0),_0x475742(0x104),_0x475742(0xe0)],'raw':!![]}]})[_0x475742(0x9f)](function(_0x9b2a4e){const _0x29c278=_0x475742;if(_0x9b2a4e){const _0x37c7cd=_[_0x29c278(0xdc)](_0x9b2a4e,function(_0x3c38bf){const _0x9c3505=_0x29c278,_0x214f94=_0x3c38bf[_0x9c3505(0x101)]({'plain':!![]});return _0x214f94[_0x9c3505(0xb6)];});return db[_0x29c278(0xba)][_0x29c278(0xe8)]({'where':{'id':_0x32900c[_0x29c278(0xce)]['id']}})[_0x29c278(0x9f)](function(_0x220148){const _0x20384a=_0x29c278;return db[_0x20384a(0xe3)]['transaction'](function(_0x5c5cc2){const _0x3affed=_0x20384a;return _0x220148[_0x3affed(0xb3)](_0x1cff3e,{'transaction':_0x5c5cc2})[_0x3affed(0x9f)](function(){const _0x59f146=_0x3affed;return Promise[_0x59f146(0xfd)](_0x37c7cd[_0x59f146(0xe5)](_0x33df43=>{const _0x4d327d=_0x59f146;return db[_0x4d327d(0xb8)][_0x4d327d(0xee)]({'where':{'UserId':_0x33df43['id'],'SmsQueueId':_0x32900c[_0x4d327d(0xce)]['id']},'transaction':_0x5c5cc2});}));})[_0x3affed(0x9f)](function(){_0x37c7cd['forEach'](function(_0x2e10e6){const _0x5c1148=a679_0x162e;socket[_0x5c1148(0xae)](_0x5c1148(0xdf),{'UserId':_0x2e10e6['id'],'SmsQueueId':_0x220148['id']});});});});});}})['then'](respondWithStatusCode(_0x376fc5,null))['catch'](handleError(_0x376fc5,null));},exports[a679_0x22e361(0x99)]=function(_0x5e7751,_0x277fc3){const _0x2b7d48=a679_0x22e361;return db[_0x2b7d48(0xd0)]['findAll']({'where':{'id':_0x5e7751[_0x2b7d48(0xf2)][_0x2b7d48(0xbf)]},'attributes':['id'],'include':[{'model':db['User'],'as':_0x2b7d48(0xb6),'attributes':['id'],'raw':!![]}]})[_0x2b7d48(0x9f)](handleEntityNotFound(_0x277fc3,null))[_0x2b7d48(0x9f)](function(_0x24e4fc){const _0x5eaff4=_0x2b7d48,_0x11d47b=_[_0x5eaff4(0xe5)](_0x24e4fc,'id');let _0x265ef2=[];const _0x5c4c33=[],_0x546153=squel[_0x5eaff4(0xb9)]();_0x546153[_0x5eaff4(0xc5)](_0x5eaff4(0x10f))[_0x5eaff4(0xfa)](_0x5eaff4(0xd1),'tq')[_0x5eaff4(0xa6)](_0x5eaff4(0xab),'ut',_0x5eaff4(0xc6))[_0x5eaff4(0xd2)](_0x5eaff4(0xda),_0x5e7751['params']['id']);for(let _0x431cf9=0x0;_0x431cf9<_0x24e4fc['length'];_0x431cf9+=0x1){const _0x4b00dc=_0x24e4fc[_0x431cf9];for(let _0x15dc5e=0x0;_0x15dc5e<_0x4b00dc['Agents']['length'];_0x15dc5e+=0x1){const _0x57ee9c=_0x4b00dc[_0x5eaff4(0xb6)][_0x15dc5e],_0x420d18=_0x546153[_0x5eaff4(0x9a)]();_0x420d18[_0x5eaff4(0xd2)](_0x5eaff4(0xd7),_0x57ee9c['id']),_0x5c4c33[_0x5eaff4(0xb2)](db[_0x5eaff4(0xe3)][_0x5eaff4(0xf2)](_0x420d18[_0x5eaff4(0xdb)](),{'type':QueryTypes[_0x5eaff4(0xc3)]})[_0x5eaff4(0x9f)](function(_0x4cb659){const _0x1f08d9=_0x5eaff4;if(_0x4cb659[_0x1f08d9(0xc4)]===0x1)return _0x57ee9c['id'];else{const _0x50a163=_[_0x1f08d9(0xaa)](_[_0x1f08d9(0xe5)](_0x4cb659,_0x1f08d9(0x107)),function(_0x1be9ec){return _['includes'](_0x11d47b,_0x1be9ec);});if(_0x50a163)return _0x57ee9c['id'];}}));}}return Promise['all'](_0x5c4c33)['then'](function(_0x529718){const _0x1501af=_0x5eaff4;return _0x265ef2=_(_0x265ef2)[_0x1501af(0xe6)](_0x529718)[_0x1501af(0xc2)]()[_0x1501af(0x10c)](),db[_0x1501af(0xba)]['findOne']({'where':{'id':_0x5e7751[_0x1501af(0xce)]['id']}})['then'](function(_0x27471c){const _0x25caa3=_0x1501af;return db[_0x25caa3(0xe3)]['transaction'](function(_0x105d79){const _0x277fff=_0x25caa3;return _0x27471c[_0x277fff(0x99)](_0x5e7751[_0x277fff(0xf2)][_0x277fff(0xbf)],{'transaction':_0x105d79})[_0x277fff(0x9f)](function(){const _0x1b432d=_0x277fff;if(!_['isEmpty'](_0x265ef2))return _0x27471c[_0x1b432d(0xeb)](_0x265ef2,{'transaction':_0x105d79});})[_0x277fff(0x9f)](function(){const _0x566846=_0x277fff;_0x265ef2[_0x566846(0xbb)](function(_0x3512d0){const _0x2de93d=_0x566846;socket[_0x2de93d(0xae)](_0x2de93d(0xb5),{'UserId':_0x3512d0,'SmsQueueId':_0x27471c['id']});});});});});});})[_0x2b7d48(0x9f)](respondWithStatusCode(_0x277fc3,null))[_0x2b7d48(0xd5)](handleError(_0x277fc3,null));},exports[a679_0x22e361(0xa1)]=function(_0x33c9c2,_0x3e50a9){const _0x52962d=a679_0x22e361;return db[_0x52962d(0xba)][_0x52962d(0xe8)]({'where':{'id':_0x33c9c2[_0x52962d(0xce)]['id']}})[_0x52962d(0x9f)](function(_0x29cba9){const _0xd4eb95=_0x52962d;if(_0x29cba9)return _0x29cba9[_0xd4eb95(0xa1)](_0x33c9c2[_0xd4eb95(0xcf)]['ids'],{'through':_[_0xd4eb95(0xa8)](_0x33c9c2['body'],[_0xd4eb95(0xbf),'id'])})[_0xd4eb95(0x9f)](function(_0x47fe06){const _0x108d4c=_0xd4eb95;for(let _0x5cd795=0x0;_0x5cd795<_0x33c9c2[_0x108d4c(0xcf)][_0x108d4c(0xbf)][_0x108d4c(0xc4)];_0x5cd795+=0x1){socket[_0x108d4c(0xae)](_0x108d4c(0xdf),{'UserId':_0x33c9c2[_0x108d4c(0xcf)]['ids'][_0x5cd795],'SmsQueueId':_0x33c9c2[_0x108d4c(0xce)]['id']});}return _0x47fe06;});})[_0x52962d(0x9f)](respondWithResult(_0x3e50a9,null))[_0x52962d(0xd5)](handleError(_0x3e50a9,null));},exports['removeAgents']=function(_0x5f32f6,_0x39838e){const _0x510aa1=a679_0x22e361;return db[_0x510aa1(0xba)][_0x510aa1(0xe8)]({'where':{'id':_0x5f32f6[_0x510aa1(0xce)]['id']}})[_0x510aa1(0x9f)](handleEntityNotFound(_0x39838e,null))[_0x510aa1(0x9f)](function(_0x47796f){const _0x3ca0e3=_0x510aa1;if(_0x47796f)return _0x47796f[_0x3ca0e3(0xeb)](_0x5f32f6[_0x3ca0e3(0xf2)][_0x3ca0e3(0xbf)])[_0x3ca0e3(0x9f)](function(){const _0x34fdfb=_0x3ca0e3;if(_[_0x34fdfb(0xdd)](_0x5f32f6[_0x34fdfb(0xf2)][_0x34fdfb(0xbf)]))for(let _0x240db7=0x0;_0x240db7<_0x5f32f6[_0x34fdfb(0xf2)][_0x34fdfb(0xbf)][_0x34fdfb(0xc4)];_0x240db7+=0x1){socket['emit'](_0x34fdfb(0xb5),{'UserId':Number(_0x5f32f6[_0x34fdfb(0xf2)][_0x34fdfb(0xbf)][_0x240db7]),'SmsQueueId':Number(_0x5f32f6['params']['id'])});}else socket[_0x34fdfb(0xae)](_0x34fdfb(0xb5),{'UserId':Number(_0x5f32f6['query'][_0x34fdfb(0xbf)]),'SmsQueueId':Number(_0x5f32f6['params']['id'])});});})[_0x510aa1(0x9f)](respondWithStatusCode(_0x39838e,null))[_0x510aa1(0xd5)](handleError(_0x39838e,null));},exports[a679_0x22e361(0x98)]=function(_0x1815fc,_0x587e17){const _0x32bc89=a679_0x22e361;let _0x14a6ef={};const _0x5043e5={};let _0x25382d,_0x52d831;return db[_0x32bc89(0xba)][_0x32bc89(0xe8)]({'where':{'id':_0x1815fc[_0x32bc89(0xce)]['id']}})[_0x32bc89(0x9f)](handleEntityNotFound(_0x587e17,null))[_0x32bc89(0x9f)](function(_0x3b57e0){const _0x2950b0=_0x32bc89;if(_0x3b57e0)return _0x25382d=_0x3b57e0,_0x5043e5[_0x2950b0(0xaf)]=_[_0x2950b0(0xf9)](db[_0x2950b0(0xca)][_0x2950b0(0xea)]),_0x5043e5['query']=_[_0x2950b0(0xf9)](_0x1815fc[_0x2950b0(0xf2)]),_0x5043e5[_0x2950b0(0xd6)]=_['intersection'](_0x5043e5['model'],_0x5043e5['query']),_0x14a6ef[_0x2950b0(0xd9)]=_[_0x2950b0(0xbe)](_0x5043e5[_0x2950b0(0xaf)],qs[_0x2950b0(0xa3)](_0x1815fc[_0x2950b0(0xf2)][_0x2950b0(0xa3)])),_0x14a6ef[_0x2950b0(0xd9)]=_0x14a6ef[_0x2950b0(0xd9)][_0x2950b0(0xc4)]?_0x14a6ef[_0x2950b0(0xd9)]:_0x5043e5[_0x2950b0(0xaf)],_0x14a6ef[_0x2950b0(0xf5)]=qs[_0x2950b0(0x10a)](_0x1815fc[_0x2950b0(0xf2)][_0x2950b0(0x10a)]),_0x14a6ef[_0x2950b0(0xd2)]=qs[_0x2950b0(0xd6)](_[_0x2950b0(0xf4)](_0x1815fc[_0x2950b0(0xf2)],_0x5043e5[_0x2950b0(0xd6)])),_0x1815fc[_0x2950b0(0xf2)][_0x2950b0(0xe4)]&&(_0x14a6ef[_0x2950b0(0xd2)]=_['merge'](_0x14a6ef[_0x2950b0(0xd2)],{[Op['or']]:_['map'](_0x14a6ef[_0x2950b0(0xd9)],function(_0x36378f){const _0x43d6c3=_0x2950b0,_0x40838e={};return _0x40838e[_0x36378f]={[Op[_0x43d6c3(0xe2)]]:'%'+_0x1815fc[_0x43d6c3(0xf2)][_0x43d6c3(0xe4)]+'%'},_0x40838e;})})),_0x14a6ef=_[_0x2950b0(0xef)]({},_0x14a6ef,_0x1815fc[_0x2950b0(0xa2)]),_0x25382d[_0x2950b0(0x98)](_0x14a6ef);})[_0x32bc89(0x9f)](function(_0xba3732){const _0x34fa12=_0x32bc89;if(_0xba3732)return _0x52d831=_0xba3732['length'],typeof _0x1815fc[_0x34fa12(0xf2)]['nolimit']===_0x34fa12(0x105)&&(_0x14a6ef['limit']=qs[_0x34fa12(0xa4)](_0x1815fc[_0x34fa12(0xf2)][_0x34fa12(0xa4)]),_0x14a6ef[_0x34fa12(0x100)]=qs[_0x34fa12(0x100)](_0x1815fc[_0x34fa12(0xf2)]['offset'])),_0x25382d['getAgents'](_0x14a6ef);})[_0x32bc89(0x9f)](function(_0x287efa){if(_0x287efa)return _0x287efa?{'count':_0x52d831,'rows':_0x287efa}:null;})[_0x32bc89(0x9f)](respondWithResult(_0x587e17,null))[_0x32bc89(0xd5)](handleError(_0x587e17,null));}; \ No newline at end of file +const a679_0x2842=['SmsQueues','isEmpty','set','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','include','key','field','online','SmsQueueId','limit','removeTeams','join','options','UserSmsQueue','offset','emit','filter','create','userSmsQueue:remove','union','getAgents','clone','format','findAll','userSmsQueue:save','VIRTUAL','User','sequelize','send','addAgents','rows','pick','autoAssociation','findOne','user_has_teams','all','describe','compact','smsPause','userProfileId','stack','../../mysqldb','forEach','register','%s/%s','where','every','SmsQueueId\x20=\x20?','team_has_sms_queues','UserProfileSection','json','from','destroy','error','Content-Range','SmsQueue','includeAll','keys','like','catch','addTeams','body','ids','model','name','transaction','SIP','ut.TeamId\x20=\x20tq.TeamId','order','flatMap','ut.UserId\x20=\x20?','map','sendStatus','toString','filters','fields','value','util','intersection','findOrCreate','SELECT','fieldName','nolimit','user','role','status','../../rediscache','UserId','omit','rawAttributes','get','createdAt','removeAgents','query','count','length','Agents','update','./smsQueue.socket','end','then','sort','params','select','getTeams','attributes','updatedAt','undefined','Team','merge'];(function(_0x776f99,_0x45df9d){const _0x28426a=function(_0x4d1d37){while(--_0x4d1d37){_0x776f99['push'](_0x776f99['shift']());}};_0x28426a(++_0x45df9d);}(a679_0x2842,0x1e1));const a679_0x4d1d=function(_0x776f99,_0x45df9d){_0x776f99=_0x776f99-0xf8;let _0x28426a=a679_0x2842[_0x776f99];return _0x28426a;};const a679_0x142d7c=a679_0x4d1d;'use strict';const util=require(a679_0x142d7c(0x11c)),_=require('lodash'),squel=require('squel'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),{getSocket}=require(a679_0x142d7c(0x125)),socket=getSocket(),{db}=require(a679_0x142d7c(0xf8)),{Op,QueryTypes}=require(a679_0x142d7c(0x158));require(a679_0x142d7c(0x131))[a679_0x142d7c(0xfa)](socket);function respondWithStatusCode(_0x56796d,_0xf0bfa3){return _0xf0bfa3=_0xf0bfa3||0xcc,function(_0x195d12){const _0x2be664=a679_0x4d1d;if(_0x195d12)return _0x56796d[_0x2be664(0x117)](_0xf0bfa3);return _0x56796d[_0x2be664(0x124)](_0xf0bfa3)[_0x2be664(0x132)]();};}function respondWithResult(_0x4b19fc,_0x5c429a){return _0x5c429a=_0x5c429a||0xc8,function(_0x81d8cf){const _0xe3722d=a679_0x4d1d;if(_0x81d8cf)return _0x4b19fc[_0xe3722d(0x124)](_0x5c429a)[_0xe3722d(0x101)](_0x81d8cf);};}function respondWithFilteredResult(_0x30e38d,_0x21d8e6){return function(_0x47d50d){const _0x207bd8=a679_0x4d1d;if(_0x47d50d){const _0x594478=_0x47d50d[_0x207bd8(0x12d)],_0x1c5096=_0x21d8e6[_0x207bd8(0x14b)];let _0x135720=_0x21d8e6[_0x207bd8(0x14b)]+_0x21d8e6[_0x207bd8(0x146)],_0x27e616;return _0x135720>=_0x594478?(_0x135720=_0x594478,_0x27e616=0xc8):_0x27e616=0xce,_0x30e38d[_0x207bd8(0x124)](_0x27e616),_0x30e38d[_0x207bd8(0x13f)](_0x207bd8(0x105),_0x1c5096+'-'+_0x135720+'/'+_0x594478)[_0x207bd8(0x101)](_0x47d50d);}return null;};}function saveUpdates(_0x253cd8){return function(_0x2c9a61){const _0x50f197=a679_0x4d1d;if(_0x2c9a61)return _0x2c9a61[_0x50f197(0x130)](_0x253cd8)[_0x50f197(0x133)](function(_0x2092e8){return _0x2092e8;});return null;};}function removeEntity(_0x7afccb){return function(_0x4ac480){const _0x40718d=a679_0x4d1d;if(_0x4ac480)return _0x4ac480['destroy']()[_0x40718d(0x133)](function(){const _0x4fbb1b=_0x40718d,_0x35bd94=_0x4ac480[_0x4fbb1b(0x129)]({'plain':!![]}),_0x22e0c6=_0x4fbb1b(0x13d);return db['UserProfileResource'][_0x4fbb1b(0x103)]({'where':{'type':_0x22e0c6,'resourceId':_0x35bd94['id']}})[_0x4fbb1b(0x133)](function(){return _0x4ac480;});})[_0x40718d(0x133)](function(){const _0x1db7fb=_0x40718d;_0x7afccb['status'](0xcc)[_0x1db7fb(0x132)]();});};}function handleEntityNotFound(_0x585098){return function(_0x293f11){const _0x43eae9=a679_0x4d1d;return!_0x293f11&&_0x585098[_0x43eae9(0x117)](0x194),_0x293f11;};}function handleError(_0x8310cf,_0x3a6c34){return _0x3a6c34=_0x3a6c34||0x1f4,function(_0x37abbb){const _0x3f6c9c=a679_0x4d1d;logger[_0x3f6c9c(0x104)](_0x37abbb[_0x3f6c9c(0x165)]),_0x37abbb[_0x3f6c9c(0x10f)]&&delete _0x37abbb[_0x3f6c9c(0x10f)],_0x8310cf[_0x3f6c9c(0x124)](_0x3a6c34)[_0x3f6c9c(0x159)](_0x37abbb);};}exports['index']=function(_0xd4ecf0,_0x1a08a4){const _0x8ae656=a679_0x142d7c;let _0x1a8ff3={};const _0x473136={},_0x396780={'count':0x0,'rows':[]},_0x51f30e=_['map'](db[_0x8ae656(0x106)]['rawAttributes'],function(_0x11b63c){const _0x36d279=_0x8ae656;return{'name':_0x11b63c[_0x36d279(0x120)],'type':_0x11b63c['type'][_0x36d279(0x142)]};});_0x473136[_0x8ae656(0x10e)]=_[_0x8ae656(0x116)](_0x51f30e,_0x8ae656(0x10f)),_0x473136[_0x8ae656(0x12c)]=_[_0x8ae656(0x108)](_0xd4ecf0[_0x8ae656(0x12c)]),_0x473136[_0x8ae656(0x119)]=_[_0x8ae656(0x11d)](_0x473136[_0x8ae656(0x10e)],_0x473136[_0x8ae656(0x12c)]),_0x1a8ff3[_0x8ae656(0x138)]=_[_0x8ae656(0x11d)](_0x473136['model'],qs[_0x8ae656(0x11a)](_0xd4ecf0[_0x8ae656(0x12c)][_0x8ae656(0x11a)])),_0x1a8ff3['attributes']=_0x1a8ff3['attributes'][_0x8ae656(0x12e)]?_0x1a8ff3[_0x8ae656(0x138)]:_0x473136['model'];typeof _0xd4ecf0['query'][_0x8ae656(0x121)]==='undefined'&&(_0x1a8ff3[_0x8ae656(0x146)]=qs['limit'](_0xd4ecf0['query'][_0x8ae656(0x146)]),_0x1a8ff3[_0x8ae656(0x14b)]=qs[_0x8ae656(0x14b)](_0xd4ecf0[_0x8ae656(0x12c)][_0x8ae656(0x14b)]));_0x1a8ff3[_0x8ae656(0x113)]=qs[_0x8ae656(0x134)](_0xd4ecf0[_0x8ae656(0x12c)]['sort']),_0x1a8ff3['where']=qs[_0x8ae656(0x119)](_[_0x8ae656(0x15c)](_0xd4ecf0[_0x8ae656(0x12c)],_0x473136['filters']),_0x51f30e);_0xd4ecf0['query'][_0x8ae656(0x14d)]&&(_0x1a8ff3[_0x8ae656(0xfc)]=_[_0x8ae656(0x13c)](_0x1a8ff3[_0x8ae656(0xfc)],{[Op['or']]:_[_0x8ae656(0x116)](_0x51f30e,function(_0x465ba3){const _0x6321a=_0x8ae656;if(_0x465ba3['type']!==_0x6321a(0x156)){const _0x4bb7ea={};return _0x4bb7ea[_0x465ba3['name']]={[Op[_0x6321a(0x109)]]:'%'+_0xd4ecf0[_0x6321a(0x12c)][_0x6321a(0x14d)]+'%'},_0x4bb7ea;}})}));_0x1a8ff3=_[_0x8ae656(0x13c)]({},_0x1a8ff3,_0xd4ecf0[_0x8ae656(0x149)]);const _0x31df33={'where':_0x1a8ff3['where']};return db['SmsQueue'][_0x8ae656(0x12d)](_0x31df33)[_0x8ae656(0x133)](function(_0x3025f4){const _0x2c0366=_0x8ae656;return _0x396780[_0x2c0366(0x12d)]=_0x3025f4,_0xd4ecf0[_0x2c0366(0x12c)][_0x2c0366(0x107)]&&(_0x1a8ff3[_0x2c0366(0x141)]=[{'all':!![]}]),db[_0x2c0366(0x106)][_0x2c0366(0x154)](_0x1a8ff3);})[_0x8ae656(0x133)](function(_0x4a9b58){return _0x396780['rows']=_0x4a9b58,_0x396780;})[_0x8ae656(0x133)](respondWithFilteredResult(_0x1a08a4,_0x1a8ff3))[_0x8ae656(0x10a)](handleError(_0x1a08a4,null));},exports['show']=function(_0x1b936b,_0x5dbc05){const _0x3dd07b=a679_0x142d7c;let _0x5e65ef={'raw':!![],'where':{'id':_0x1b936b[_0x3dd07b(0x135)]['id']}};const _0x3a76c5={};return _0x3a76c5['model']=_[_0x3dd07b(0x108)](db[_0x3dd07b(0x106)][_0x3dd07b(0x128)]),_0x3a76c5[_0x3dd07b(0x12c)]=_[_0x3dd07b(0x108)](_0x1b936b[_0x3dd07b(0x12c)]),_0x3a76c5[_0x3dd07b(0x119)]=_['intersection'](_0x3a76c5[_0x3dd07b(0x10e)],_0x3a76c5[_0x3dd07b(0x12c)]),_0x5e65ef[_0x3dd07b(0x138)]=_[_0x3dd07b(0x11d)](_0x3a76c5[_0x3dd07b(0x10e)],qs[_0x3dd07b(0x11a)](_0x1b936b[_0x3dd07b(0x12c)][_0x3dd07b(0x11a)])),_0x5e65ef[_0x3dd07b(0x138)]=_0x5e65ef['attributes'][_0x3dd07b(0x12e)]?_0x5e65ef['attributes']:_0x3a76c5[_0x3dd07b(0x10e)],_0x1b936b[_0x3dd07b(0x12c)][_0x3dd07b(0x107)]&&(_0x5e65ef[_0x3dd07b(0x141)]=[{'all':!![]}]),_0x5e65ef=_[_0x3dd07b(0x13c)]({},_0x5e65ef,_0x1b936b[_0x3dd07b(0x149)]),db[_0x3dd07b(0x106)][_0x3dd07b(0x15e)](_0x5e65ef)[_0x3dd07b(0x133)](handleEntityNotFound(_0x5dbc05,null))[_0x3dd07b(0x133)](respondWithResult(_0x5dbc05,null))[_0x3dd07b(0x10a)](handleError(_0x5dbc05,null));},exports[a679_0x142d7c(0x14e)]=function(_0x1bd907,_0xc8992d){const _0xbdf714=a679_0x142d7c;return db['SmsQueue'][_0xbdf714(0x14e)](_0x1bd907[_0xbdf714(0x10c)],{})[_0xbdf714(0x133)](function(_0x4470cc){const _0x47597c=_0xbdf714,_0x5a4e21=_0x1bd907[_0x47597c(0x122)][_0x47597c(0x129)]({'plain':!![]});if(!_0x5a4e21)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x5a4e21[_0x47597c(0x123)]===_0x47597c(0x122)){const _0x2bffb4=_0x4470cc[_0x47597c(0x129)]({'plain':!![]}),_0x545cd2=_0x47597c(0x13d);return db[_0x47597c(0x100)][_0x47597c(0x15e)]({'where':{'name':_0x545cd2,'userProfileId':_0x5a4e21[_0x47597c(0x164)]},'raw':!![]})[_0x47597c(0x133)](function(_0x29f922){const _0x46da0c=_0x47597c;return _0x29f922&&_0x29f922[_0x46da0c(0x15d)]===0x0?db['UserProfileResource']['create']({'name':_0x2bffb4[_0x46da0c(0x10f)],'resourceId':_0x2bffb4['id'],'type':_0x29f922[_0x46da0c(0x10f)],'sectionId':_0x29f922['id']},{})[_0x46da0c(0x133)](function(){return _0x4470cc;}):_0x4470cc;})[_0x47597c(0x10a)](function(_0x23acf0){const _0x3b338c=_0x47597c;logger[_0x3b338c(0x104)](_0x3b338c(0x140),_0x23acf0);throw _0x23acf0;});}return _0x4470cc;})[_0xbdf714(0x133)](respondWithResult(_0xc8992d,0xc9))['catch'](handleError(_0xc8992d,null));},exports['update']=function(_0x349f67,_0x58d851){const _0x511385=a679_0x142d7c;return _0x349f67[_0x511385(0x10c)]['id']&&delete _0x349f67[_0x511385(0x10c)]['id'],db[_0x511385(0x106)][_0x511385(0x15e)]({'where':{'id':_0x349f67[_0x511385(0x135)]['id']}})[_0x511385(0x133)](handleEntityNotFound(_0x58d851,null))['then'](saveUpdates(_0x349f67[_0x511385(0x10c)],null))[_0x511385(0x133)](respondWithResult(_0x58d851,null))['catch'](handleError(_0x58d851,null));},exports[a679_0x142d7c(0x103)]=function(_0x5e24e1,_0x505098){const _0x415965=a679_0x142d7c;return db[_0x415965(0x106)][_0x415965(0x15e)]({'where':{'id':_0x5e24e1[_0x415965(0x135)]['id']}})[_0x415965(0x133)](handleEntityNotFound(_0x505098,null))[_0x415965(0x133)](removeEntity(_0x505098,null))[_0x415965(0x10a)](handleError(_0x505098,null));},exports[a679_0x142d7c(0x161)]=function(_0x484f84,_0x322f4c){const _0x5cbf24=a679_0x142d7c;return db[_0x5cbf24(0x106)][_0x5cbf24(0x161)]()['then'](respondWithResult(_0x322f4c,null))['catch'](handleError(_0x322f4c,null));},exports['getMembers']=function(_0x512d4f,_0x3a0af1){const _0xafbb01=a679_0x142d7c;let _0x44b888={'raw':!![],'where':{}};const _0x34e0e1={};let _0x38c1d8;return db['SmsQueue'][_0xafbb01(0x15e)]({'where':{'id':_0x512d4f['params']['id']}})[_0xafbb01(0x133)](handleEntityNotFound(_0x3a0af1,null))[_0xafbb01(0x133)](function(_0x24db93){const _0x268acf=_0xafbb01;if(_0x24db93)return _0x38c1d8=_0x24db93['get']({'plain':!![]}),_0x34e0e1[_0x268acf(0x10e)]=_['keys'](db[_0x268acf(0x14a)][_0x268acf(0x128)]),_0x34e0e1['query']=_[_0x268acf(0x108)](_0x512d4f['query']),_0x34e0e1['filters']=_[_0x268acf(0x11d)](_0x34e0e1[_0x268acf(0x10e)],_0x34e0e1[_0x268acf(0x12c)]),_0x44b888[_0x268acf(0x138)]=_[_0x268acf(0x11d)](_0x34e0e1[_0x268acf(0x10e)],qs[_0x268acf(0x11a)](_0x512d4f[_0x268acf(0x12c)][_0x268acf(0x11a)])),_0x44b888[_0x268acf(0x138)]=_0x44b888['attributes'][_0x268acf(0x12e)]?_0x44b888[_0x268acf(0x138)]:_0x34e0e1[_0x268acf(0x10e)],typeof _0x512d4f['query'][_0x268acf(0x121)]==='undefined'&&(_0x44b888['limit']=qs[_0x268acf(0x146)](_0x512d4f[_0x268acf(0x12c)]['limit']),_0x44b888[_0x268acf(0x14b)]=qs['offset'](_0x512d4f[_0x268acf(0x12c)][_0x268acf(0x14b)])),_0x44b888[_0x268acf(0x113)]=qs[_0x268acf(0x134)](_0x512d4f['query'][_0x268acf(0x134)]),_0x44b888[_0x268acf(0xfc)]=qs[_0x268acf(0x119)](_[_0x268acf(0x15c)](_0x512d4f[_0x268acf(0x12c)],_0x34e0e1[_0x268acf(0x119)])),_0x44b888[_0x268acf(0xfc)][_0x268acf(0x145)]=_0x24db93['id'],_0x512d4f['query'][_0x268acf(0x14d)]&&(_0x44b888[_0x268acf(0xfc)]=_['merge'](_0x44b888[_0x268acf(0xfc)],{[Op['or']]:_[_0x268acf(0x116)](_0x44b888[_0x268acf(0x138)],function(_0x8b2a26){const _0x45638a={};return _0x45638a[_0x8b2a26]={[Op['like']]:'%'+_0x512d4f['query']['filter']+'%'},_0x45638a;})})),_0x44b888=_['merge']({},_0x44b888,_0x512d4f[_0x268acf(0x149)]),db[_0x268acf(0x14a)][_0x268acf(0x154)](_0x44b888);})['then'](function(_0x2ae3ed){const _0x6079f0=_0xafbb01;if(_0x2ae3ed)return db[_0x6079f0(0x157)]['findAndCountAll']({'where':{'id':_[_0x6079f0(0x116)](_0x2ae3ed,_0x6079f0(0x126)),'role':'agent'},'attributes':['id',_0x6079f0(0x10f),_0x6079f0(0x163),_0x6079f0(0x139),'createdAt']});})[_0xafbb01(0x133)](function(_0x177ab2){const _0xf7a72=_0xafbb01;return _0x177ab2?{'count':_0x177ab2[_0xf7a72(0x12d)],'rows':_[_0xf7a72(0x116)](_0x177ab2[_0xf7a72(0x15b)],function(_0x54e915){const _0x40fc7b=_0xf7a72;return{'membername':_0x54e915[_0x40fc7b(0x10f)],'UserId':_0x54e915['id'],'queue_name':_0x38c1d8[_0x40fc7b(0x10f)],'SmsQueueId':_0x38c1d8['id'],'interface':util[_0x40fc7b(0x153)](_0x40fc7b(0xfb),_0x40fc7b(0x111),_0x54e915[_0x40fc7b(0x10f)]),'penalty':0x0,'paused':_0x54e915['smsPause'],'createdAt':_0x54e915[_0x40fc7b(0x12a)],'updatedAt':_0x54e915[_0x40fc7b(0x139)]};})}:{'count':0x0,'rows':[]};})[_0xafbb01(0x133)](respondWithFilteredResult(_0x3a0af1,_0x44b888))[_0xafbb01(0x10a)](handleError(_0x3a0af1,null));},exports[a679_0x142d7c(0x137)]=function(_0x159651,_0x1b4fa3){const _0x4410fc=a679_0x142d7c;let _0x1c47e3={};const _0x4e67f3={};let _0xed1a16,_0x1d3ac1;return db[_0x4410fc(0x106)][_0x4410fc(0x15e)]({'where':{'id':_0x159651[_0x4410fc(0x135)]['id']}})[_0x4410fc(0x133)](handleEntityNotFound(_0x1b4fa3,null))['then'](function(_0x4903bd){const _0x5b1623=_0x4410fc;if(_0x4903bd)return _0xed1a16=_0x4903bd,_0x4e67f3[_0x5b1623(0x10e)]=_[_0x5b1623(0x108)](db[_0x5b1623(0x13b)]['rawAttributes']),_0x4e67f3[_0x5b1623(0x12c)]=_[_0x5b1623(0x108)](_0x159651['query']),_0x4e67f3['filters']=_['intersection'](_0x4e67f3[_0x5b1623(0x10e)],_0x4e67f3['query']),_0x1c47e3['attributes']=_[_0x5b1623(0x11d)](_0x4e67f3[_0x5b1623(0x10e)],qs['fields'](_0x159651[_0x5b1623(0x12c)][_0x5b1623(0x11a)])),_0x1c47e3[_0x5b1623(0x138)]=_0x1c47e3[_0x5b1623(0x138)][_0x5b1623(0x12e)]?_0x1c47e3['attributes']:_0x4e67f3[_0x5b1623(0x10e)],_0x1c47e3[_0x5b1623(0x113)]=qs[_0x5b1623(0x134)](_0x159651['query'][_0x5b1623(0x134)]),_0x1c47e3[_0x5b1623(0xfc)]=qs[_0x5b1623(0x119)](_[_0x5b1623(0x15c)](_0x159651[_0x5b1623(0x12c)],_0x4e67f3['filters'])),_0x159651[_0x5b1623(0x12c)][_0x5b1623(0x14d)]&&(_0x1c47e3['where']=_['merge'](_0x1c47e3['where'],{[Op['or']]:_['map'](_0x1c47e3['attributes'],function(_0x1c9a2f){const _0x3c838f=_0x5b1623,_0xee3cb4={};return _0xee3cb4[_0x1c9a2f]={[Op[_0x3c838f(0x109)]]:'%'+_0x159651[_0x3c838f(0x12c)][_0x3c838f(0x14d)]+'%'},_0xee3cb4;})})),_0x1c47e3=_[_0x5b1623(0x13c)]({},_0x1c47e3,_0x159651[_0x5b1623(0x149)]),_0xed1a16[_0x5b1623(0x137)](_0x1c47e3);})[_0x4410fc(0x133)](function(_0x5aa6e3){const _0x383a63=_0x4410fc;if(_0x5aa6e3)return _0x1d3ac1=_0x5aa6e3[_0x383a63(0x12e)],typeof _0x159651[_0x383a63(0x12c)][_0x383a63(0x121)]===_0x383a63(0x13a)&&(_0x1c47e3[_0x383a63(0x146)]=qs[_0x383a63(0x146)](_0x159651[_0x383a63(0x12c)][_0x383a63(0x146)]),_0x1c47e3['offset']=qs[_0x383a63(0x14b)](_0x159651[_0x383a63(0x12c)][_0x383a63(0x14b)])),_0xed1a16[_0x383a63(0x137)](_0x1c47e3);})[_0x4410fc(0x133)](function(_0x27919f){if(_0x27919f)return _0x27919f?{'count':_0x1d3ac1,'rows':_0x27919f}:null;})[_0x4410fc(0x133)](respondWithResult(_0x1b4fa3,null))[_0x4410fc(0x10a)](handleError(_0x1b4fa3,null));},exports[a679_0x142d7c(0x10b)]=function(_0x2a11a8,_0x4f585d){const _0x5685cb=a679_0x142d7c,_0x59a796=_0x2a11a8[_0x5685cb(0x10c)]['ids'];return db[_0x5685cb(0x13b)][_0x5685cb(0x154)]({'where':{'id':_0x59a796},'attributes':['id'],'include':[{'model':db[_0x5685cb(0x157)],'as':_0x5685cb(0x12f),'attributes':['id','name',_0x5685cb(0x144),'voicePause','interface'],'raw':!![]}]})[_0x5685cb(0x133)](function(_0x322382){const _0x5df4a3=_0x5685cb;if(_0x322382){const _0x482496=_[_0x5df4a3(0x114)](_0x322382,function(_0x3722dd){const _0x28491f=_0x5df4a3,_0x1cce5a=_0x3722dd[_0x28491f(0x129)]({'plain':!![]});return _0x1cce5a[_0x28491f(0x12f)];});return db['SmsQueue'][_0x5df4a3(0x15e)]({'where':{'id':_0x2a11a8['params']['id']}})['then'](function(_0x5dca21){const _0x42c865=_0x5df4a3;return db[_0x42c865(0x158)][_0x42c865(0x110)](function(_0x27c1fd){const _0x51b670=_0x42c865;return _0x5dca21['addTeams'](_0x59a796,{'transaction':_0x27c1fd})[_0x51b670(0x133)](function(){return Promise['all'](_0x482496['map'](_0x45774c=>{const _0x478ce9=a679_0x4d1d;return db[_0x478ce9(0x14a)][_0x478ce9(0x11e)]({'where':{'UserId':_0x45774c['id'],'SmsQueueId':_0x2a11a8['params']['id']},'transaction':_0x27c1fd});}));})[_0x51b670(0x133)](function(){const _0x3bc755=_0x51b670;_0x482496[_0x3bc755(0xf9)](function(_0x16243a){const _0x4e107b=_0x3bc755;socket[_0x4e107b(0x14c)](_0x4e107b(0x155),{'UserId':_0x16243a['id'],'SmsQueueId':_0x5dca21['id']});});});});});}})['then'](respondWithStatusCode(_0x4f585d,null))[_0x5685cb(0x10a)](handleError(_0x4f585d,null));},exports[a679_0x142d7c(0x147)]=function(_0x3619ff,_0x22bf42){const _0x533834=a679_0x142d7c;return db['Team'][_0x533834(0x154)]({'where':{'id':_0x3619ff[_0x533834(0x12c)]['ids']},'attributes':['id'],'include':[{'model':db['User'],'as':_0x533834(0x12f),'attributes':['id'],'raw':!![]}]})[_0x533834(0x133)](handleEntityNotFound(_0x22bf42,null))['then'](function(_0x5e1859){const _0x22da60=_0x533834,_0x5c52c0=_[_0x22da60(0x116)](_0x5e1859,'id');let _0x47f21b=[];const _0x5778a4=[],_0x27edcd=squel[_0x22da60(0x136)]();_0x27edcd[_0x22da60(0x143)]('tq.TeamId')[_0x22da60(0x102)](_0x22da60(0xff),'tq')[_0x22da60(0x148)](_0x22da60(0x15f),'ut',_0x22da60(0x112))[_0x22da60(0xfc)](_0x22da60(0xfe),_0x3619ff[_0x22da60(0x135)]['id']);for(let _0x44c571=0x0;_0x44c571<_0x5e1859[_0x22da60(0x12e)];_0x44c571+=0x1){const _0x3b2cdd=_0x5e1859[_0x44c571];for(let _0xa78132=0x0;_0xa78132<_0x3b2cdd[_0x22da60(0x12f)][_0x22da60(0x12e)];_0xa78132+=0x1){const _0x40d330=_0x3b2cdd[_0x22da60(0x12f)][_0xa78132],_0x2c7b51=_0x27edcd[_0x22da60(0x152)]();_0x2c7b51[_0x22da60(0xfc)](_0x22da60(0x115),_0x40d330['id']),_0x5778a4['push'](db[_0x22da60(0x158)][_0x22da60(0x12c)](_0x2c7b51[_0x22da60(0x118)](),{'type':QueryTypes[_0x22da60(0x11f)]})[_0x22da60(0x133)](function(_0x28f9a7){const _0x13c253=_0x22da60;if(_0x28f9a7[_0x13c253(0x12e)]===0x1)return _0x40d330['id'];else{const _0x4e317f=_[_0x13c253(0xfd)](_[_0x13c253(0x116)](_0x28f9a7,'TeamId'),function(_0x2854e5){return _['includes'](_0x5c52c0,_0x2854e5);});if(_0x4e317f)return _0x40d330['id'];}}));}}return Promise[_0x22da60(0x160)](_0x5778a4)[_0x22da60(0x133)](function(_0x5bbcf7){const _0x2c2edb=_0x22da60;return _0x47f21b=_(_0x47f21b)[_0x2c2edb(0x150)](_0x5bbcf7)[_0x2c2edb(0x162)]()[_0x2c2edb(0x11b)](),db[_0x2c2edb(0x106)][_0x2c2edb(0x15e)]({'where':{'id':_0x3619ff[_0x2c2edb(0x135)]['id']}})['then'](function(_0x31371d){return db['sequelize']['transaction'](function(_0x34293c){const _0x33318c=a679_0x4d1d;return _0x31371d[_0x33318c(0x147)](_0x3619ff[_0x33318c(0x12c)]['ids'],{'transaction':_0x34293c})['then'](function(){const _0x580ee3=_0x33318c;if(!_[_0x580ee3(0x13e)](_0x47f21b))return _0x31371d[_0x580ee3(0x12b)](_0x47f21b,{'transaction':_0x34293c});})['then'](function(){const _0xc22bc1=_0x33318c;_0x47f21b[_0xc22bc1(0xf9)](function(_0x26b9db){const _0x4eab91=_0xc22bc1;socket[_0x4eab91(0x14c)](_0x4eab91(0x14f),{'UserId':_0x26b9db,'SmsQueueId':_0x31371d['id']});});});});});});})[_0x533834(0x133)](respondWithStatusCode(_0x22bf42,null))['catch'](handleError(_0x22bf42,null));},exports[a679_0x142d7c(0x15a)]=function(_0x371283,_0x4fdb3f){const _0x31bdd9=a679_0x142d7c;return db['SmsQueue'][_0x31bdd9(0x15e)]({'where':{'id':_0x371283[_0x31bdd9(0x135)]['id']}})[_0x31bdd9(0x133)](function(_0x54bf82){const _0x4e0ebc=_0x31bdd9;if(_0x54bf82)return _0x54bf82[_0x4e0ebc(0x15a)](_0x371283[_0x4e0ebc(0x10c)][_0x4e0ebc(0x10d)],{'through':_[_0x4e0ebc(0x127)](_0x371283[_0x4e0ebc(0x10c)],[_0x4e0ebc(0x10d),'id'])})['then'](function(_0x4dafdf){const _0x217195=_0x4e0ebc;for(let _0x742586=0x0;_0x742586<_0x371283[_0x217195(0x10c)]['ids'][_0x217195(0x12e)];_0x742586+=0x1){socket['emit'](_0x217195(0x155),{'UserId':_0x371283[_0x217195(0x10c)][_0x217195(0x10d)][_0x742586],'SmsQueueId':_0x371283['params']['id']});}return _0x4dafdf;});})[_0x31bdd9(0x133)](respondWithResult(_0x4fdb3f,null))[_0x31bdd9(0x10a)](handleError(_0x4fdb3f,null));},exports[a679_0x142d7c(0x12b)]=function(_0x544fee,_0x525c75){const _0x39b3dc=a679_0x142d7c;return db[_0x39b3dc(0x106)][_0x39b3dc(0x15e)]({'where':{'id':_0x544fee[_0x39b3dc(0x135)]['id']}})[_0x39b3dc(0x133)](handleEntityNotFound(_0x525c75,null))['then'](function(_0x2be671){const _0x2072e4=_0x39b3dc;if(_0x2be671)return _0x2be671['removeAgents'](_0x544fee['query'][_0x2072e4(0x10d)])['then'](function(){const _0x447a18=_0x2072e4;if(_['isArray'](_0x544fee[_0x447a18(0x12c)]['ids']))for(let _0x234713=0x0;_0x234713<_0x544fee[_0x447a18(0x12c)][_0x447a18(0x10d)]['length'];_0x234713+=0x1){socket[_0x447a18(0x14c)](_0x447a18(0x14f),{'UserId':Number(_0x544fee[_0x447a18(0x12c)]['ids'][_0x234713]),'SmsQueueId':Number(_0x544fee[_0x447a18(0x135)]['id'])});}else socket[_0x447a18(0x14c)](_0x447a18(0x14f),{'UserId':Number(_0x544fee[_0x447a18(0x12c)][_0x447a18(0x10d)]),'SmsQueueId':Number(_0x544fee['params']['id'])});});})[_0x39b3dc(0x133)](respondWithStatusCode(_0x525c75,null))['catch'](handleError(_0x525c75,null));},exports[a679_0x142d7c(0x151)]=function(_0x528994,_0x48f7d6){const _0x497c7c=a679_0x142d7c;let _0x2846a4={};const _0x1655d6={};let _0x377788,_0x5d99d4;return db[_0x497c7c(0x106)][_0x497c7c(0x15e)]({'where':{'id':_0x528994[_0x497c7c(0x135)]['id']}})[_0x497c7c(0x133)](handleEntityNotFound(_0x48f7d6,null))['then'](function(_0x59503d){const _0x5f366d=_0x497c7c;if(_0x59503d)return _0x377788=_0x59503d,_0x1655d6[_0x5f366d(0x10e)]=_[_0x5f366d(0x108)](db['User']['rawAttributes']),_0x1655d6[_0x5f366d(0x12c)]=_[_0x5f366d(0x108)](_0x528994['query']),_0x1655d6['filters']=_[_0x5f366d(0x11d)](_0x1655d6[_0x5f366d(0x10e)],_0x1655d6[_0x5f366d(0x12c)]),_0x2846a4[_0x5f366d(0x138)]=_[_0x5f366d(0x11d)](_0x1655d6[_0x5f366d(0x10e)],qs['fields'](_0x528994[_0x5f366d(0x12c)]['fields'])),_0x2846a4[_0x5f366d(0x138)]=_0x2846a4[_0x5f366d(0x138)]['length']?_0x2846a4[_0x5f366d(0x138)]:_0x1655d6[_0x5f366d(0x10e)],_0x2846a4[_0x5f366d(0x113)]=qs[_0x5f366d(0x134)](_0x528994['query'][_0x5f366d(0x134)]),_0x2846a4['where']=qs[_0x5f366d(0x119)](_[_0x5f366d(0x15c)](_0x528994[_0x5f366d(0x12c)],_0x1655d6[_0x5f366d(0x119)])),_0x528994[_0x5f366d(0x12c)][_0x5f366d(0x14d)]&&(_0x2846a4['where']=_[_0x5f366d(0x13c)](_0x2846a4[_0x5f366d(0xfc)],{[Op['or']]:_[_0x5f366d(0x116)](_0x2846a4[_0x5f366d(0x138)],function(_0x52e890){const _0x7cdf6e=_0x5f366d,_0x378135={};return _0x378135[_0x52e890]={[Op[_0x7cdf6e(0x109)]]:'%'+_0x528994[_0x7cdf6e(0x12c)][_0x7cdf6e(0x14d)]+'%'},_0x378135;})})),_0x2846a4=_[_0x5f366d(0x13c)]({},_0x2846a4,_0x528994[_0x5f366d(0x149)]),_0x377788[_0x5f366d(0x151)](_0x2846a4);})[_0x497c7c(0x133)](function(_0x17efe2){const _0x1ef31f=_0x497c7c;if(_0x17efe2)return _0x5d99d4=_0x17efe2[_0x1ef31f(0x12e)],typeof _0x528994[_0x1ef31f(0x12c)]['nolimit']===_0x1ef31f(0x13a)&&(_0x2846a4[_0x1ef31f(0x146)]=qs[_0x1ef31f(0x146)](_0x528994[_0x1ef31f(0x12c)][_0x1ef31f(0x146)]),_0x2846a4[_0x1ef31f(0x14b)]=qs[_0x1ef31f(0x14b)](_0x528994['query']['offset'])),_0x377788['getAgents'](_0x2846a4);})[_0x497c7c(0x133)](function(_0x3c2e2b){if(_0x3c2e2b)return _0x3c2e2b?{'count':_0x5d99d4,'rows':_0x3c2e2b}:null;})[_0x497c7c(0x133)](respondWithResult(_0x48f7d6,null))[_0x497c7c(0x10a)](handleError(_0x48f7d6,null));}; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.events.js b/server/api/smsQueue/smsQueue.events.js index f8a8b2b..ce8e121 100644 --- a/server/api/smsQueue/smsQueue.events.js +++ b/server/api/smsQueue/smsQueue.events.js @@ -1 +1 @@ -const a680_0x23de=['remove','save','SmsQueue','setMaxListeners','undefined','events','emit','exports','update'];(function(_0x22f35a,_0x666138){const _0x23de01=function(_0x50c390){while(--_0x50c390){_0x22f35a['push'](_0x22f35a['shift']());}};_0x23de01(++_0x666138);}(a680_0x23de,0x17c));const a680_0x50c3=function(_0x22f35a,_0x666138){_0x22f35a=_0x22f35a-0x191;let _0x23de01=a680_0x23de[_0x22f35a];return _0x23de01;};const a680_0x11a970=a680_0x50c3;'use strict';const EventEmitter=require(a680_0x11a970(0x194)),SmsQueue=require('../../mysqldb')['db'][a680_0x11a970(0x191)],SmsQueueEvents=new EventEmitter();SmsQueueEvents[a680_0x11a970(0x192)](0x0);const events={'afterCreate':a680_0x11a970(0x199),'afterUpdate':a680_0x11a970(0x197),'afterDestroy':a680_0x11a970(0x198)};function emitEvent(_0xbf89d3){return function(_0x3e3959){const _0x2e730e=a680_0x50c3;SmsQueueEvents[_0x2e730e(0x195)](_0xbf89d3+':'+_0x3e3959['id'],_0x3e3959),SmsQueueEvents[_0x2e730e(0x195)](_0xbf89d3,_0x3e3959);};}for(const e in events){if(typeof events[e]!==a680_0x11a970(0x193)){const event=events[e];SmsQueue['addHook'](e,emitEvent(event));}}module[a680_0x11a970(0x196)]=SmsQueueEvents; \ No newline at end of file +const a680_0x5e77=['remove','save','addHook','exports','undefined','update','../../mysqldb','emit'];(function(_0x3fda20,_0x104ec1){const _0x5e77e4=function(_0x36fd98){while(--_0x36fd98){_0x3fda20['push'](_0x3fda20['shift']());}};_0x5e77e4(++_0x104ec1);}(a680_0x5e77,0x1d4));const a680_0x36fd=function(_0x3fda20,_0x104ec1){_0x3fda20=_0x3fda20-0x1a6;let _0x5e77e4=a680_0x5e77[_0x3fda20];return _0x5e77e4;};const a680_0x1d1c45=a680_0x36fd;'use strict';const EventEmitter=require('events'),SmsQueue=require(a680_0x1d1c45(0x1a8))['db']['SmsQueue'],SmsQueueEvents=new EventEmitter();SmsQueueEvents['setMaxListeners'](0x0);const events={'afterCreate':a680_0x1d1c45(0x1ab),'afterUpdate':a680_0x1d1c45(0x1a7),'afterDestroy':a680_0x1d1c45(0x1aa)};function emitEvent(_0xfa9fe7){return function(_0x2321b6){const _0x1b9e66=a680_0x36fd;SmsQueueEvents[_0x1b9e66(0x1a9)](_0xfa9fe7+':'+_0x2321b6['id'],_0x2321b6),SmsQueueEvents[_0x1b9e66(0x1a9)](_0xfa9fe7,_0x2321b6);};}for(const e in events){if(typeof events[e]!==a680_0x1d1c45(0x1a6)){const event=events[e];SmsQueue[a680_0x1d1c45(0x1ac)](e,emitEvent(event));}}module[a680_0x1d1c45(0x1ad)]=SmsQueueEvents; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.model.js b/server/api/smsQueue/smsQueue.model.js index 953ba21..a1f4aa1 100644 --- a/server/api/smsQueue/smsQueue.model.js +++ b/server/api/smsQueue/smsQueue.model.js @@ -1 +1 @@ -const a681_0x1c1d=['SmsQueue','./smsQueue.attributes','sequelize','init','exports','function','./smsQueue.options'];(function(_0x5ac252,_0x25ccba){const _0x1c1ddb=function(_0xf72e57){while(--_0xf72e57){_0x5ac252['push'](_0x5ac252['shift']());}};_0x1c1ddb(++_0x25ccba);}(a681_0x1c1d,0x13e));const a681_0xf72e=function(_0x5ac252,_0x25ccba){_0x5ac252=_0x5ac252-0xb4;let _0x1c1ddb=a681_0x1c1d[_0x5ac252];return _0x1c1ddb;};const a681_0x3bf892=a681_0xf72e;'use strict';const {Model}=require(a681_0x3bf892(0xba)),{attributes}=require(a681_0x3bf892(0xb9)),{options}=require(a681_0x3bf892(0xb7));class SmsQueue extends Model{}function init(_0x203c88,_0x52023f){const _0x56655d=a681_0x3bf892,_0x260ee1=options(_0x203c88),_0x3684b9=typeof _0x52023f===_0x56655d(0xb6)?_0x52023f(_0x260ee1):_0x260ee1;return SmsQueue[_0x56655d(0xb4)](attributes,_0x3684b9),SmsQueue;}module['exports'][a681_0x3bf892(0xb8)]=SmsQueue,module[a681_0x3bf892(0xb5)]['init']=init; \ No newline at end of file +const a681_0x4455=['./smsQueue.attributes','function','SmsQueue','init','./smsQueue.options'];(function(_0x37d6ef,_0x37b8b4){const _0x445583=function(_0x1ab37d){while(--_0x1ab37d){_0x37d6ef['push'](_0x37d6ef['shift']());}};_0x445583(++_0x37b8b4);}(a681_0x4455,0xa3));const a681_0x1ab3=function(_0x37d6ef,_0x37b8b4){_0x37d6ef=_0x37d6ef-0x7a;let _0x445583=a681_0x4455[_0x37d6ef];return _0x445583;};const a681_0x3d7a6d=a681_0x1ab3;'use strict';const {Model}=require('sequelize'),{attributes}=require(a681_0x3d7a6d(0x7c)),{options}=require(a681_0x3d7a6d(0x7b));class SmsQueue extends Model{}function init(_0x2cce8e,_0xaec809){const _0x4e92f5=a681_0x3d7a6d,_0x13a0a8=options(_0x2cce8e),_0x3b0972=typeof _0xaec809===_0x4e92f5(0x7d)?_0xaec809(_0x13a0a8):_0x13a0a8;return SmsQueue[_0x4e92f5(0x7a)](attributes,_0x3b0972),SmsQueue;}module['exports'][a681_0x3d7a6d(0x7e)]=SmsQueue,module['exports'][a681_0x3d7a6d(0x7a)]=init; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.options.js b/server/api/smsQueue/smsQueue.options.js index 7a99067..3b39687 100644 --- a/server/api/smsQueue/smsQueue.options.js +++ b/server/api/smsQueue/smsQueue.options.js @@ -1 +1 @@ -var a682_0x3d50=['options','exports'];(function(_0x51e71e,_0x5e6e28){var _0x3d50b9=function(_0x5538ca){while(--_0x5538ca){_0x51e71e['push'](_0x51e71e['shift']());}};_0x3d50b9(++_0x5e6e28);}(a682_0x3d50,0xd6));var a682_0x5538=function(_0x51e71e,_0x5e6e28){_0x51e71e=_0x51e71e-0xff;var _0x3d50b9=a682_0x3d50[_0x51e71e];return _0x3d50b9;};var a682_0x1b0fca=a682_0x5538;function options(_0x3b3d0f){return{'sequelize':_0x3b3d0f,'tableName':'sms_queues','paranoid':![],'indexes':[],'timestamps':!![]};}module[a682_0x1b0fca(0x100)][a682_0x1b0fca(0xff)]=options; \ No newline at end of file +var a682_0x2a9a=['exports'];(function(_0x25abe1,_0x453751){var _0x2a9a90=function(_0xfaf810){while(--_0xfaf810){_0x25abe1['push'](_0x25abe1['shift']());}};_0x2a9a90(++_0x453751);}(a682_0x2a9a,0x16a));var a682_0xfaf8=function(_0x25abe1,_0x453751){_0x25abe1=_0x25abe1-0x1a0;var _0x2a9a90=a682_0x2a9a[_0x25abe1];return _0x2a9a90;};var a682_0xfabdc8=a682_0xfaf8;function options(_0x11ec3c){return{'sequelize':_0x11ec3c,'tableName':'sms_queues','paranoid':![],'indexes':[],'timestamps':!![]};}module[a682_0xfabdc8(0x1a0)]['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 5b82aba..1fda053 100644 --- a/server/api/smsQueue/smsQueue.rpc.js +++ b/server/api/smsQueue/smsQueue.rpc.js @@ -1 +1 @@ -const a683_0x3711=['include','info','ShowSmsQueue','register','map','findOne','message','./smsQueue.socket','options','error','catch','then','debug','GetSmsQueue','findAll','limit','rpc','../../mysqldb','attributes','model','SmsQueue','stringify','where','lodash'];(function(_0x551d0c,_0x5a51b6){const _0x3711bb=function(_0x46ccbb){while(--_0x46ccbb){_0x551d0c['push'](_0x551d0c['shift']());}};_0x3711bb(++_0x5a51b6);}(a683_0x3711,0x1d5));const a683_0x46cc=function(_0x551d0c,_0x5a51b6){_0x551d0c=_0x551d0c-0xca;let _0x3711bb=a683_0x3711[_0x551d0c];return _0x3711bb;};const a683_0x425fc1=a683_0x46cc;'use strict';const _=require(a683_0x425fc1(0xd4)),db=require(a683_0x425fc1(0xce))['db'],logger=require('../../config/logger')(a683_0x425fc1(0xcd)),{getSocket}=require('../../rediscache'),socket=getSocket();require(a683_0x425fc1(0xdc))[a683_0x425fc1(0xd8)](socket),exports[a683_0x425fc1(0xca)]=function(_0x1da8ed){const _0x1baa0e=this;return new Promise(function(_0x424d79,_0x143558){const _0x2cd935=a683_0x46cc;return db[_0x2cd935(0xd1)][_0x2cd935(0xcb)]({'raw':_0x1da8ed[_0x2cd935(0xdd)]?_0x1da8ed[_0x2cd935(0xdd)]['raw']===undefined?!![]:![]:!![],'where':_0x1da8ed[_0x2cd935(0xdd)]?_0x1da8ed[_0x2cd935(0xdd)][_0x2cd935(0xd3)]||null:null,'attributes':_0x1da8ed[_0x2cd935(0xdd)]?_0x1da8ed[_0x2cd935(0xdd)][_0x2cd935(0xcf)]||null:null,'limit':_0x1da8ed['options']?_0x1da8ed[_0x2cd935(0xdd)][_0x2cd935(0xcc)]||null:null,'include':_0x1da8ed[_0x2cd935(0xdd)]?_0x1da8ed['options'][_0x2cd935(0xd5)]?_['map'](_0x1da8ed[_0x2cd935(0xdd)][_0x2cd935(0xd5)],function(_0x19500d){const _0x1f5b14=_0x2cd935;return{'model':db[_0x19500d[_0x1f5b14(0xd0)]],'as':_0x19500d['as'],'attributes':_0x19500d[_0x1f5b14(0xcf)],'include':_0x19500d[_0x1f5b14(0xd5)]?_[_0x1f5b14(0xd9)](_0x19500d['include'],function(_0x1653fb){const _0x5d6574=_0x1f5b14;return{'model':db[_0x1653fb[_0x5d6574(0xd0)]],'as':_0x1653fb['as'],'attributes':_0x1653fb[_0x5d6574(0xcf)],'include':_0x1653fb['include']?_[_0x5d6574(0xd9)](_0x1653fb[_0x5d6574(0xd5)],function(_0x4bdf9c){const _0x3579b5=_0x5d6574;return{'model':db[_0x4bdf9c[_0x3579b5(0xd0)]],'as':_0x4bdf9c['as'],'attributes':_0x4bdf9c[_0x3579b5(0xcf)]};}):[]};}):[]};}):[]:[]})[_0x2cd935(0xe0)](function(_0xc1d14){const _0x547839=_0x2cd935;logger['info'](_0x547839(0xca),_0x1da8ed),logger[_0x547839(0xe1)](_0x547839(0xca),_0x1da8ed,JSON[_0x547839(0xd2)](_0xc1d14)),_0x424d79(_0xc1d14);})[_0x2cd935(0xdf)](function(_0x6afd79){const _0x1a778d=_0x2cd935;logger['error'](_0x1a778d(0xca),_0x6afd79[_0x1a778d(0xdb)],_0x1da8ed),_0x143558(_0x1baa0e[_0x1a778d(0xde)](0x1f4,_0x6afd79[_0x1a778d(0xdb)]));});});},exports['ShowSmsQueue']=function(_0xc59a9a){const _0x1c33bf=this;return new Promise(function(_0x31ad10,_0x913046){const _0x409448=a683_0x46cc;return db[_0x409448(0xd1)][_0x409448(0xda)]({'raw':_0xc59a9a['options']?_0xc59a9a[_0x409448(0xdd)]['raw']===undefined?!![]:![]:!![],'where':_0xc59a9a['options']?_0xc59a9a[_0x409448(0xdd)][_0x409448(0xd3)]||null:null,'attributes':_0xc59a9a[_0x409448(0xdd)]?_0xc59a9a[_0x409448(0xdd)][_0x409448(0xcf)]||null:null,'include':_0xc59a9a['options']?_0xc59a9a[_0x409448(0xdd)]['include']?_['map'](_0xc59a9a[_0x409448(0xdd)][_0x409448(0xd5)],function(_0x9243cc){const _0x26e282=_0x409448;return{'model':db[_0x9243cc['model']],'as':_0x9243cc['as'],'attributes':_0x9243cc[_0x26e282(0xcf)],'include':_0x9243cc[_0x26e282(0xd5)]?_[_0x26e282(0xd9)](_0x9243cc[_0x26e282(0xd5)],function(_0x41eef3){const _0x198f4c=_0x26e282;return{'model':db[_0x41eef3[_0x198f4c(0xd0)]],'as':_0x41eef3['as'],'attributes':_0x41eef3['attributes'],'include':_0x41eef3[_0x198f4c(0xd5)]?_[_0x198f4c(0xd9)](_0x41eef3[_0x198f4c(0xd5)],function(_0x56dcae){const _0x2eea56=_0x198f4c;return{'model':db[_0x56dcae[_0x2eea56(0xd0)]],'as':_0x56dcae['as'],'attributes':_0x56dcae[_0x2eea56(0xcf)]};}):[]};}):[]};}):[]:[]})[_0x409448(0xe0)](function(_0x15642e){const _0x543263=_0x409448;logger[_0x543263(0xd6)](_0x543263(0xd7),_0xc59a9a),logger['debug']('ShowSmsQueue',_0xc59a9a,JSON[_0x543263(0xd2)](_0x15642e)),_0x31ad10(_0x15642e);})[_0x409448(0xdf)](function(_0x47a3a9){const _0x98f898=_0x409448;logger[_0x98f898(0xde)](_0x98f898(0xd7),_0x47a3a9['message'],_0xc59a9a),_0x913046(_0x1c33bf['error'](0x1f4,_0x47a3a9['message']));});});}; \ No newline at end of file +const a683_0xa988=['options','debug','model','error','ShowSmsQueue','lodash','then','findAll','../../rediscache','limit','catch','message','../../config/logger','attributes','GetSmsQueue','register','./smsQueue.socket','findOne','raw','map','include','SmsQueue','info','stringify','where'];(function(_0x473e18,_0x3eeb1b){const _0xa988c9=function(_0x1c9e8f){while(--_0x1c9e8f){_0x473e18['push'](_0x473e18['shift']());}};_0xa988c9(++_0x3eeb1b);}(a683_0xa988,0x16d));const a683_0x1c9e=function(_0x473e18,_0x3eeb1b){_0x473e18=_0x473e18-0x194;let _0xa988c9=a683_0xa988[_0x473e18];return _0xa988c9;};const a683_0x10d22f=a683_0x1c9e;'use strict';const _=require(a683_0x10d22f(0x1a3)),db=require('../../mysqldb')['db'],logger=require(a683_0x10d22f(0x1aa))('rpc'),{getSocket}=require(a683_0x10d22f(0x1a6)),socket=getSocket();require(a683_0x10d22f(0x195))[a683_0x10d22f(0x194)](socket),exports['GetSmsQueue']=function(_0x2eb484){const _0x569b80=this;return new Promise(function(_0x5a56b9,_0x2d4ffa){const _0x379321=a683_0x1c9e;return db['SmsQueue'][_0x379321(0x1a5)]({'raw':_0x2eb484[_0x379321(0x19e)]?_0x2eb484[_0x379321(0x19e)][_0x379321(0x197)]===undefined?!![]:![]:!![],'where':_0x2eb484[_0x379321(0x19e)]?_0x2eb484[_0x379321(0x19e)][_0x379321(0x19d)]||null:null,'attributes':_0x2eb484[_0x379321(0x19e)]?_0x2eb484[_0x379321(0x19e)][_0x379321(0x1ab)]||null:null,'limit':_0x2eb484['options']?_0x2eb484[_0x379321(0x19e)][_0x379321(0x1a7)]||null:null,'include':_0x2eb484[_0x379321(0x19e)]?_0x2eb484['options'][_0x379321(0x199)]?_[_0x379321(0x198)](_0x2eb484[_0x379321(0x19e)][_0x379321(0x199)],function(_0x5a7093){const _0x3ed8a7=_0x379321;return{'model':db[_0x5a7093[_0x3ed8a7(0x1a0)]],'as':_0x5a7093['as'],'attributes':_0x5a7093[_0x3ed8a7(0x1ab)],'include':_0x5a7093['include']?_[_0x3ed8a7(0x198)](_0x5a7093[_0x3ed8a7(0x199)],function(_0x520e55){const _0x38285a=_0x3ed8a7;return{'model':db[_0x520e55[_0x38285a(0x1a0)]],'as':_0x520e55['as'],'attributes':_0x520e55['attributes'],'include':_0x520e55[_0x38285a(0x199)]?_[_0x38285a(0x198)](_0x520e55[_0x38285a(0x199)],function(_0x522950){const _0x37571c=_0x38285a;return{'model':db[_0x522950[_0x37571c(0x1a0)]],'as':_0x522950['as'],'attributes':_0x522950[_0x37571c(0x1ab)]};}):[]};}):[]};}):[]:[]})[_0x379321(0x1a4)](function(_0x1e9cc2){const _0x56756e=_0x379321;logger[_0x56756e(0x19b)](_0x56756e(0x1ac),_0x2eb484),logger['debug'](_0x56756e(0x1ac),_0x2eb484,JSON[_0x56756e(0x19c)](_0x1e9cc2)),_0x5a56b9(_0x1e9cc2);})[_0x379321(0x1a8)](function(_0x5a5d8c){const _0x49acd6=_0x379321;logger[_0x49acd6(0x1a1)](_0x49acd6(0x1ac),_0x5a5d8c[_0x49acd6(0x1a9)],_0x2eb484),_0x2d4ffa(_0x569b80[_0x49acd6(0x1a1)](0x1f4,_0x5a5d8c['message']));});});},exports[a683_0x10d22f(0x1a2)]=function(_0x2914b0){const _0x14b87b=this;return new Promise(function(_0x370380,_0x53fbd0){const _0x2ce511=a683_0x1c9e;return db[_0x2ce511(0x19a)][_0x2ce511(0x196)]({'raw':_0x2914b0[_0x2ce511(0x19e)]?_0x2914b0[_0x2ce511(0x19e)][_0x2ce511(0x197)]===undefined?!![]:![]:!![],'where':_0x2914b0[_0x2ce511(0x19e)]?_0x2914b0[_0x2ce511(0x19e)][_0x2ce511(0x19d)]||null:null,'attributes':_0x2914b0[_0x2ce511(0x19e)]?_0x2914b0[_0x2ce511(0x19e)][_0x2ce511(0x1ab)]||null:null,'include':_0x2914b0[_0x2ce511(0x19e)]?_0x2914b0[_0x2ce511(0x19e)][_0x2ce511(0x199)]?_['map'](_0x2914b0[_0x2ce511(0x19e)]['include'],function(_0x5f4517){const _0x5131ac=_0x2ce511;return{'model':db[_0x5f4517[_0x5131ac(0x1a0)]],'as':_0x5f4517['as'],'attributes':_0x5f4517[_0x5131ac(0x1ab)],'include':_0x5f4517[_0x5131ac(0x199)]?_[_0x5131ac(0x198)](_0x5f4517[_0x5131ac(0x199)],function(_0x518a77){const _0x2f4ddb=_0x5131ac;return{'model':db[_0x518a77[_0x2f4ddb(0x1a0)]],'as':_0x518a77['as'],'attributes':_0x518a77['attributes'],'include':_0x518a77[_0x2f4ddb(0x199)]?_[_0x2f4ddb(0x198)](_0x518a77[_0x2f4ddb(0x199)],function(_0x12c049){const _0x176ae0=_0x2f4ddb;return{'model':db[_0x12c049[_0x176ae0(0x1a0)]],'as':_0x12c049['as'],'attributes':_0x12c049['attributes']};}):[]};}):[]};}):[]:[]})[_0x2ce511(0x1a4)](function(_0x49d5f7){const _0x360df9=_0x2ce511;logger['info'](_0x360df9(0x1a2),_0x2914b0),logger[_0x360df9(0x19f)](_0x360df9(0x1a2),_0x2914b0,JSON[_0x360df9(0x19c)](_0x49d5f7)),_0x370380(_0x49d5f7);})[_0x2ce511(0x1a8)](function(_0x29eac5){const _0x6b3a1=_0x2ce511;logger[_0x6b3a1(0x1a1)](_0x6b3a1(0x1a2),_0x29eac5[_0x6b3a1(0x1a9)],_0x2914b0),_0x53fbd0(_0x14b87b['error'](0x1f4,_0x29eac5[_0x6b3a1(0x1a9)]));});});}; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.socket.js b/server/api/smsQueue/smsQueue.socket.js index fa09480..bf9e2dd 100644 --- a/server/api/smsQueue/smsQueue.socket.js +++ b/server/api/smsQueue/smsQueue.socket.js @@ -1 +1 @@ -const a684_0x5727=['update','remove','./smsQueue.events','emit','length','register'];(function(_0x35e8d2,_0x1f85f3){const _0x5727b4=function(_0x465b36){while(--_0x465b36){_0x35e8d2['push'](_0x35e8d2['shift']());}};_0x5727b4(++_0x1f85f3);}(a684_0x5727,0x1a2));const a684_0x465b=function(_0x35e8d2,_0x1f85f3){_0x35e8d2=_0x35e8d2-0x98;let _0x5727b4=a684_0x5727[_0x35e8d2];return _0x5727b4;};const a684_0x59ba9e=a684_0x465b;'use strict';const SmsQueueEvents=require(a684_0x59ba9e(0x9c)),events=['save',a684_0x59ba9e(0x9b),a684_0x59ba9e(0x9a)];function createListener(_0x10b49f,_0x230e2a){return function(_0x1b04b4){const _0x9430d4=a684_0x465b;_0x230e2a[_0x9430d4(0x9d)](_0x10b49f,_0x1b04b4);};}exports[a684_0x59ba9e(0x99)]=function(_0x4edb21){const _0x3f7558=a684_0x59ba9e;for(let _0x4f3f9c=0x0,_0x440ae6=events[_0x3f7558(0x98)];_0x4f3f9c<_0x440ae6;_0x4f3f9c++){const _0x3d6a6e=events[_0x4f3f9c],_0x2fddbe=createListener('smsQueue:'+_0x3d6a6e,_0x4edb21);SmsQueueEvents['on'](_0x3d6a6e,_0x2fddbe);}}; \ No newline at end of file +const a684_0xf698=['smsQueue:','length','emit','register','./smsQueue.events'];(function(_0x38d3ed,_0x5a82b6){const _0xf698b5=function(_0x1265fa){while(--_0x1265fa){_0x38d3ed['push'](_0x38d3ed['shift']());}};_0xf698b5(++_0x5a82b6);}(a684_0xf698,0x67));const a684_0x1265=function(_0x38d3ed,_0x5a82b6){_0x38d3ed=_0x38d3ed-0xe8;let _0xf698b5=a684_0xf698[_0x38d3ed];return _0xf698b5;};const a684_0x198929=a684_0x1265;'use strict';const SmsQueueEvents=require(a684_0x198929(0xe9)),events=['save','remove','update'];function createListener(_0x1439ac,_0x33392a){return function(_0x3ced67){const _0x1c51ac=a684_0x1265;_0x33392a[_0x1c51ac(0xec)](_0x1439ac,_0x3ced67);};}exports[a684_0x198929(0xe8)]=function(_0x3eb557){const _0x266826=a684_0x198929;for(let _0x533d0d=0x0,_0x1894a0=events[_0x266826(0xeb)];_0x533d0d<_0x1894a0;_0x533d0d++){const _0xa1f11b=events[_0x533d0d],_0x28ad40=createListener(_0x266826(0xea)+_0xa1f11b,_0x3eb557);SmsQueueEvents['on'](_0xa1f11b,_0x28ad40);}}; \ No newline at end of file diff --git a/server/api/smsQueueReport/index.js b/server/api/smsQueueReport/index.js index 053bd37..a5d9a97 100644 --- a/server/api/smsQueueReport/index.js +++ b/server/api/smsQueueReport/index.js @@ -1 +1 @@ -const a685_0x40c3=['Router','delete','/describe','isAuthenticated','update','put','/:id','destroy','describe','exports','get'];(function(_0xe737d,_0x3ad46f){const _0x40c3fd=function(_0x20f589){while(--_0x20f589){_0xe737d['push'](_0xe737d['shift']());}};_0x40c3fd(++_0x3ad46f);}(a685_0x40c3,0xa5));const a685_0x20f5=function(_0xe737d,_0x3ad46f){_0xe737d=_0xe737d-0x179;let _0x40c3fd=a685_0x40c3[_0xe737d];return _0x40c3fd;};const a685_0x2db5f5=a685_0x20f5;'use strict';const express=require('express'),router=express[a685_0x2db5f5(0x179)](),auth=require('../../components/auth/service'),controller=require('./smsQueueReport.controller');router[a685_0x2db5f5(0x183)]('/',auth[a685_0x2db5f5(0x17c)](),controller['index']),router[a685_0x2db5f5(0x183)](a685_0x2db5f5(0x17b),auth[a685_0x2db5f5(0x17c)](),controller[a685_0x2db5f5(0x181)]),router['get']('/:id',auth['isAuthenticated'](),controller['show']),router['post']('/',auth[a685_0x2db5f5(0x17c)](),controller['create']),router[a685_0x2db5f5(0x17e)]('/:id',auth[a685_0x2db5f5(0x17c)](),controller[a685_0x2db5f5(0x17d)]),router[a685_0x2db5f5(0x17a)](a685_0x2db5f5(0x17f),auth[a685_0x2db5f5(0x17c)](),controller[a685_0x2db5f5(0x180)]),module[a685_0x2db5f5(0x182)]=router; \ No newline at end of file +const a685_0x165a=['./smsQueueReport.controller','post','index','get','../../components/auth/service','create','show','describe','destroy','isAuthenticated','exports','express','delete'];(function(_0xec8bf8,_0x4e9080){const _0x165ae6=function(_0x2e392a){while(--_0x2e392a){_0xec8bf8['push'](_0xec8bf8['shift']());}};_0x165ae6(++_0x4e9080);}(a685_0x165a,0x14c));const a685_0x2e39=function(_0xec8bf8,_0x4e9080){_0xec8bf8=_0xec8bf8-0x145;let _0x165ae6=a685_0x165a[_0xec8bf8];return _0x165ae6;};const a685_0x5053a7=a685_0x2e39;'use strict';const express=require(a685_0x5053a7(0x149)),router=express['Router'](),auth=require(a685_0x5053a7(0x14f)),controller=require(a685_0x5053a7(0x14b));router[a685_0x5053a7(0x14e)]('/',auth[a685_0x5053a7(0x147)](),controller[a685_0x5053a7(0x14d)]),router[a685_0x5053a7(0x14e)]('/describe',auth['isAuthenticated'](),controller[a685_0x5053a7(0x145)]),router[a685_0x5053a7(0x14e)]('/:id',auth[a685_0x5053a7(0x147)](),controller[a685_0x5053a7(0x151)]),router[a685_0x5053a7(0x14c)]('/',auth['isAuthenticated'](),controller[a685_0x5053a7(0x150)]),router['put']('/:id',auth[a685_0x5053a7(0x147)](),controller['update']),router[a685_0x5053a7(0x14a)]('/:id',auth['isAuthenticated'](),controller[a685_0x5053a7(0x146)]),module[a685_0x5053a7(0x148)]=router; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.attributes.js b/server/api/smsQueueReport/smsQueueReport.attributes.js index 251b5ad..790bbe9 100644 --- a/server/api/smsQueueReport/smsQueueReport.attributes.js +++ b/server/api/smsQueueReport/smsQueueReport.attributes.js @@ -1 +1 @@ -const a686_0x41f6=['DATE','STRING','attributes','exports'];(function(_0x599e67,_0x2bd88c){const _0x41f61a=function(_0x216964){while(--_0x216964){_0x599e67['push'](_0x599e67['shift']());}};_0x41f61a(++_0x2bd88c);}(a686_0x41f6,0x96));const a686_0x2169=function(_0x599e67,_0x2bd88c){_0x599e67=_0x599e67-0xf0;let _0x41f61a=a686_0x41f6[_0x599e67];return _0x41f61a;};const a686_0x44c569=a686_0x2169;'use strict';const {DataTypes}=require('sequelize'),attributes={'uniqueid':{'type':DataTypes['STRING'],'allowNull':![]},'from':{'type':DataTypes[a686_0x44c569(0xf3)]},'joinAt':{'type':DataTypes[a686_0x44c569(0xf2)]},'leaveAt':{'type':DataTypes[a686_0x44c569(0xf2)]},'acceptAt':{'type':DataTypes[a686_0x44c569(0xf2)]},'exitAt':{'type':DataTypes[a686_0x44c569(0xf2)]},'reason':{'type':DataTypes[a686_0x44c569(0xf3)]}};module[a686_0x44c569(0xf1)][a686_0x44c569(0xf0)]=attributes; \ No newline at end of file +const a686_0x1399=['sequelize','attributes','DATE','exports','STRING'];(function(_0x434241,_0x46be51){const _0x13994e=function(_0x548030){while(--_0x548030){_0x434241['push'](_0x434241['shift']());}};_0x13994e(++_0x46be51);}(a686_0x1399,0x1d9));const a686_0x5480=function(_0x434241,_0x46be51){_0x434241=_0x434241-0xee;let _0x13994e=a686_0x1399[_0x434241];return _0x13994e;};const a686_0x364c8f=a686_0x5480;'use strict';const {DataTypes}=require(a686_0x364c8f(0xf0)),attributes={'uniqueid':{'type':DataTypes[a686_0x364c8f(0xef)],'allowNull':![]},'from':{'type':DataTypes[a686_0x364c8f(0xef)]},'joinAt':{'type':DataTypes[a686_0x364c8f(0xf2)]},'leaveAt':{'type':DataTypes[a686_0x364c8f(0xf2)]},'acceptAt':{'type':DataTypes[a686_0x364c8f(0xf2)]},'exitAt':{'type':DataTypes['DATE']},'reason':{'type':DataTypes[a686_0x364c8f(0xef)]}};module[a686_0x364c8f(0xee)][a686_0x364c8f(0xf1)]=attributes; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.controller.js b/server/api/smsQueueReport/smsQueueReport.controller.js index 078fe12..a1c4aeb 100644 --- a/server/api/smsQueueReport/smsQueueReport.controller.js +++ b/server/api/smsQueueReport/smsQueueReport.controller.js @@ -1 +1 @@ -const a687_0x490c=['lodash','name','update','undefined','key','query','rawAttributes','destroy','params','then','include','describe','filter','nolimit','stack','json','status','api','type','../../config/logger','end','where','filters','Content-Range','body','sequelize','set','length','intersection','model','fields','keys','options','includeAll','map','findAll','create','like','sort','catch','offset','VIRTUAL','attributes','send','index','../../mysqldb','limit','SmsQueueReport','count','show','findOne','merge'];(function(_0x5abbce,_0x9b95d6){const _0x490cc3=function(_0x4e93b1){while(--_0x4e93b1){_0x5abbce['push'](_0x5abbce['shift']());}};_0x490cc3(++_0x9b95d6);}(a687_0x490c,0xcb));const a687_0x4e93=function(_0x5abbce,_0x9b95d6){_0x5abbce=_0x5abbce-0x13a;let _0x490cc3=a687_0x490c[_0x5abbce];return _0x490cc3;};const a687_0x302211=a687_0x4e93;'use strict';const _=require(a687_0x302211(0x13f)),qs=require('../../components/parsers/qs'),logger=require(a687_0x302211(0x152))(a687_0x302211(0x150)),{db}=require(a687_0x302211(0x16c)),{Op}=require(a687_0x302211(0x158));function respondWithResult(_0x498362,_0x45f9e7){return _0x45f9e7=_0x45f9e7||0xc8,function(_0x484502){const _0x4271ab=a687_0x4e93;if(_0x484502)return _0x498362['status'](_0x45f9e7)[_0x4271ab(0x14e)](_0x484502);};}function respondWithFilteredResult(_0x3d4413,_0x36bc6c){return function(_0x3882b0){const _0x549686=a687_0x4e93;if(_0x3882b0){const _0x1bfe75=_0x3882b0[_0x549686(0x13b)],_0x8be284=_0x36bc6c[_0x549686(0x167)];let _0x46f5c3=_0x36bc6c[_0x549686(0x167)]+_0x36bc6c[_0x549686(0x16d)],_0x4b8b59;return _0x46f5c3>=_0x1bfe75?(_0x46f5c3=_0x1bfe75,_0x4b8b59=0xc8):_0x4b8b59=0xce,_0x3d4413[_0x549686(0x14f)](_0x4b8b59),_0x3d4413[_0x549686(0x159)](_0x549686(0x156),_0x8be284+'-'+_0x46f5c3+'/'+_0x1bfe75)[_0x549686(0x14e)](_0x3882b0);}return null;};}function saveUpdates(_0xf49777){return function(_0x160415){const _0x2f4e65=a687_0x4e93;if(_0x160415)return _0x160415[_0x2f4e65(0x141)](_0xf49777)[_0x2f4e65(0x148)](function(_0x2ff726){return _0x2ff726;});return null;};}function removeEntity(_0x97230d){return function(_0x166399){const _0x3ae632=a687_0x4e93;if(_0x166399)return _0x166399['destroy']()[_0x3ae632(0x148)](function(){const _0x207caf=_0x3ae632;_0x97230d[_0x207caf(0x14f)](0xcc)[_0x207caf(0x153)]();});};}function handleEntityNotFound(_0x45cc51){return function(_0x54a42e){return!_0x54a42e&&_0x45cc51['sendStatus'](0x194),_0x54a42e;};}function handleError(_0x50ace8,_0xe523d9){return _0xe523d9=_0xe523d9||0x1f4,function(_0x2aa150){const _0x2702d4=a687_0x4e93;logger['error'](_0x2aa150[_0x2702d4(0x14d)]),_0x2aa150[_0x2702d4(0x140)]&&delete _0x2aa150[_0x2702d4(0x140)],_0x50ace8['status'](_0xe523d9)[_0x2702d4(0x16a)](_0x2aa150);};}exports[a687_0x302211(0x16b)]=function(_0x2fb01e,_0x20c53d){const _0x227fe3=a687_0x302211;let _0x1b3cf1={};const _0x48b868={},_0x19268a={'count':0x0,'rows':[]},_0x58ab28=_[_0x227fe3(0x161)](db[_0x227fe3(0x13a)][_0x227fe3(0x145)],function(_0x4a5153){const _0x16aae8=_0x227fe3;return{'name':_0x4a5153['fieldName'],'type':_0x4a5153[_0x16aae8(0x151)][_0x16aae8(0x143)]};});_0x48b868[_0x227fe3(0x15c)]=_[_0x227fe3(0x161)](_0x58ab28,'name'),_0x48b868[_0x227fe3(0x144)]=_[_0x227fe3(0x15e)](_0x2fb01e['query']),_0x48b868['filters']=_[_0x227fe3(0x15b)](_0x48b868[_0x227fe3(0x15c)],_0x48b868[_0x227fe3(0x144)]),_0x1b3cf1[_0x227fe3(0x169)]=_[_0x227fe3(0x15b)](_0x48b868['model'],qs[_0x227fe3(0x15d)](_0x2fb01e['query'][_0x227fe3(0x15d)])),_0x1b3cf1[_0x227fe3(0x169)]=_0x1b3cf1['attributes']['length']?_0x1b3cf1[_0x227fe3(0x169)]:_0x48b868[_0x227fe3(0x15c)];typeof _0x2fb01e['query'][_0x227fe3(0x14c)]===_0x227fe3(0x142)&&(_0x1b3cf1['limit']=qs[_0x227fe3(0x16d)](_0x2fb01e[_0x227fe3(0x144)][_0x227fe3(0x16d)]),_0x1b3cf1['offset']=qs['offset'](_0x2fb01e[_0x227fe3(0x144)][_0x227fe3(0x167)]));_0x1b3cf1['order']=qs[_0x227fe3(0x165)](_0x2fb01e['query'][_0x227fe3(0x165)]),_0x1b3cf1['where']=qs['filters'](_['pick'](_0x2fb01e[_0x227fe3(0x144)],_0x48b868[_0x227fe3(0x155)]),_0x58ab28);_0x2fb01e[_0x227fe3(0x144)][_0x227fe3(0x14b)]&&(_0x1b3cf1[_0x227fe3(0x154)]=_[_0x227fe3(0x13e)](_0x1b3cf1[_0x227fe3(0x154)],{[Op['or']]:_[_0x227fe3(0x161)](_0x58ab28,function(_0x34b8df){const _0x1e6527=_0x227fe3;if(_0x34b8df[_0x1e6527(0x151)]!==_0x1e6527(0x168)){const _0x195da8={};return _0x195da8[_0x34b8df[_0x1e6527(0x140)]]={[Op[_0x1e6527(0x164)]]:'%'+_0x2fb01e[_0x1e6527(0x144)][_0x1e6527(0x14b)]+'%'},_0x195da8;}})}));_0x1b3cf1=_[_0x227fe3(0x13e)]({},_0x1b3cf1,_0x2fb01e[_0x227fe3(0x15f)]);const _0xa647cc={'where':_0x1b3cf1[_0x227fe3(0x154)]};return db[_0x227fe3(0x13a)][_0x227fe3(0x13b)](_0xa647cc)[_0x227fe3(0x148)](function(_0x5ae8b7){const _0x37aabf=_0x227fe3;return _0x19268a['count']=_0x5ae8b7,_0x2fb01e[_0x37aabf(0x144)][_0x37aabf(0x160)]&&(_0x1b3cf1[_0x37aabf(0x149)]=[{'all':!![]}]),db[_0x37aabf(0x13a)][_0x37aabf(0x162)](_0x1b3cf1);})['then'](function(_0x3ebc1f){return _0x19268a['rows']=_0x3ebc1f,_0x19268a;})[_0x227fe3(0x148)](respondWithFilteredResult(_0x20c53d,_0x1b3cf1))[_0x227fe3(0x166)](handleError(_0x20c53d,null));},exports[a687_0x302211(0x13c)]=function(_0x536009,_0x3a2b5f){const _0x174d9a=a687_0x302211;let _0x5e8d8a={'raw':!![],'where':{'id':_0x536009['params']['id']}};const _0x1c51fb={};return _0x1c51fb[_0x174d9a(0x15c)]=_[_0x174d9a(0x15e)](db[_0x174d9a(0x13a)][_0x174d9a(0x145)]),_0x1c51fb[_0x174d9a(0x144)]=_[_0x174d9a(0x15e)](_0x536009[_0x174d9a(0x144)]),_0x1c51fb[_0x174d9a(0x155)]=_['intersection'](_0x1c51fb['model'],_0x1c51fb[_0x174d9a(0x144)]),_0x5e8d8a[_0x174d9a(0x169)]=_[_0x174d9a(0x15b)](_0x1c51fb['model'],qs['fields'](_0x536009[_0x174d9a(0x144)]['fields'])),_0x5e8d8a['attributes']=_0x5e8d8a['attributes'][_0x174d9a(0x15a)]?_0x5e8d8a['attributes']:_0x1c51fb[_0x174d9a(0x15c)],_0x536009[_0x174d9a(0x144)][_0x174d9a(0x160)]&&(_0x5e8d8a[_0x174d9a(0x149)]=[{'all':!![]}]),_0x5e8d8a=_[_0x174d9a(0x13e)]({},_0x5e8d8a,_0x536009[_0x174d9a(0x15f)]),db[_0x174d9a(0x13a)][_0x174d9a(0x13d)](_0x5e8d8a)['then'](handleEntityNotFound(_0x3a2b5f,null))[_0x174d9a(0x148)](respondWithResult(_0x3a2b5f,null))[_0x174d9a(0x166)](handleError(_0x3a2b5f,null));},exports[a687_0x302211(0x163)]=function(_0x4126a6,_0x1ef077){const _0x3afaf3=a687_0x302211;return db['SmsQueueReport'][_0x3afaf3(0x163)](_0x4126a6[_0x3afaf3(0x157)],{})[_0x3afaf3(0x148)](respondWithResult(_0x1ef077,0xc9))[_0x3afaf3(0x166)](handleError(_0x1ef077,null));},exports['update']=function(_0x29da56,_0x268d97){const _0x4b38c2=a687_0x302211;return _0x29da56[_0x4b38c2(0x157)]['id']&&delete _0x29da56[_0x4b38c2(0x157)]['id'],db['SmsQueueReport'][_0x4b38c2(0x13d)]({'where':{'id':_0x29da56[_0x4b38c2(0x147)]['id']}})[_0x4b38c2(0x148)](handleEntityNotFound(_0x268d97,null))['then'](saveUpdates(_0x29da56['body'],null))['then'](respondWithResult(_0x268d97,null))['catch'](handleError(_0x268d97,null));},exports[a687_0x302211(0x146)]=function(_0x23ff30,_0x1d1f82){const _0x2a542e=a687_0x302211;return db[_0x2a542e(0x13a)][_0x2a542e(0x13d)]({'where':{'id':_0x23ff30[_0x2a542e(0x147)]['id']}})['then'](handleEntityNotFound(_0x1d1f82,null))[_0x2a542e(0x148)](removeEntity(_0x1d1f82,null))[_0x2a542e(0x166)](handleError(_0x1d1f82,null));},exports[a687_0x302211(0x14a)]=function(_0x527b7a,_0x2771e7){const _0xc54d61=a687_0x302211;return db[_0xc54d61(0x13a)][_0xc54d61(0x14a)]()[_0xc54d61(0x148)](respondWithResult(_0x2771e7,null))[_0xc54d61(0x166)](handleError(_0x2771e7,null));}; \ No newline at end of file +const a687_0x3069=['../../components/parsers/qs','include','key','VIRTUAL','update','map','set','json','fields','body','lodash','SmsQueueReport','intersection','model','length','destroy','stack','merge','keys','api','attributes','offset','count','query','Content-Range','options','sequelize','filter','catch','findAll','includeAll','limit','end','findOne','error','filters','name','type','order','where','status','then','rawAttributes','params','show','fieldName','describe','index','../../mysqldb','create'];(function(_0x41dae1,_0x4b70e7){const _0x30694e=function(_0x83af09){while(--_0x83af09){_0x41dae1['push'](_0x41dae1['shift']());}};_0x30694e(++_0x4b70e7);}(a687_0x3069,0x6d));const a687_0x83af=function(_0x41dae1,_0x4b70e7){_0x41dae1=_0x41dae1-0xb7;let _0x30694e=a687_0x3069[_0x41dae1];return _0x30694e;};const a687_0x457080=a687_0x83af;'use strict';const _=require(a687_0x457080(0xb8)),qs=require(a687_0x457080(0xe0)),logger=require('../../config/logger')(a687_0x457080(0xc1)),{db}=require(a687_0x457080(0xde)),{Op}=require(a687_0x457080(0xc8));function respondWithResult(_0x4bf3ef,_0x2a54e9){return _0x2a54e9=_0x2a54e9||0xc8,function(_0x31e6af){const _0x574027=a687_0x83af;if(_0x31e6af)return _0x4bf3ef[_0x574027(0xd6)](_0x2a54e9)[_0x574027(0xe7)](_0x31e6af);};}function respondWithFilteredResult(_0x620a0f,_0x55d3d8){return function(_0x4773f5){const _0x2b6dcb=a687_0x83af;if(_0x4773f5){const _0x2cce15=_0x4773f5[_0x2b6dcb(0xc4)],_0x5f2a90=_0x55d3d8[_0x2b6dcb(0xc3)];let _0x1b7fd4=_0x55d3d8['offset']+_0x55d3d8[_0x2b6dcb(0xcd)],_0x400dcb;return _0x1b7fd4>=_0x2cce15?(_0x1b7fd4=_0x2cce15,_0x400dcb=0xc8):_0x400dcb=0xce,_0x620a0f[_0x2b6dcb(0xd6)](_0x400dcb),_0x620a0f[_0x2b6dcb(0xe6)](_0x2b6dcb(0xc6),_0x5f2a90+'-'+_0x1b7fd4+'/'+_0x2cce15)[_0x2b6dcb(0xe7)](_0x4773f5);}return null;};}function saveUpdates(_0x463506){return function(_0x4f01ca){const _0x221c9b=a687_0x83af;if(_0x4f01ca)return _0x4f01ca[_0x221c9b(0xe4)](_0x463506)[_0x221c9b(0xd7)](function(_0x524358){return _0x524358;});return null;};}function removeEntity(_0x20914e){return function(_0x1f9f64){const _0x2374f1=a687_0x83af;if(_0x1f9f64)return _0x1f9f64[_0x2374f1(0xbd)]()[_0x2374f1(0xd7)](function(){const _0x2cc8aa=_0x2374f1;_0x20914e[_0x2cc8aa(0xd6)](0xcc)[_0x2cc8aa(0xce)]();});};}function handleEntityNotFound(_0x12f5d3){return function(_0x5dc346){return!_0x5dc346&&_0x12f5d3['sendStatus'](0x194),_0x5dc346;};}function handleError(_0x2ef38e,_0xb7c455){return _0xb7c455=_0xb7c455||0x1f4,function(_0x268ac7){const _0x243583=a687_0x83af;logger[_0x243583(0xd0)](_0x268ac7[_0x243583(0xbe)]),_0x268ac7[_0x243583(0xd2)]&&delete _0x268ac7['name'],_0x2ef38e[_0x243583(0xd6)](_0xb7c455)['send'](_0x268ac7);};}exports[a687_0x457080(0xdd)]=function(_0x2f8e8e,_0x3e06a6){const _0x4e8b79=a687_0x457080;let _0x464d38={};const _0x162257={},_0x12d738={'count':0x0,'rows':[]},_0x499d10=_[_0x4e8b79(0xe5)](db[_0x4e8b79(0xb9)][_0x4e8b79(0xd8)],function(_0x3762f6){const _0x9eb858=_0x4e8b79;return{'name':_0x3762f6[_0x9eb858(0xdb)],'type':_0x3762f6[_0x9eb858(0xd3)][_0x9eb858(0xe2)]};});_0x162257[_0x4e8b79(0xbb)]=_[_0x4e8b79(0xe5)](_0x499d10,_0x4e8b79(0xd2)),_0x162257[_0x4e8b79(0xc5)]=_[_0x4e8b79(0xc0)](_0x2f8e8e[_0x4e8b79(0xc5)]),_0x162257[_0x4e8b79(0xd1)]=_[_0x4e8b79(0xba)](_0x162257['model'],_0x162257['query']),_0x464d38[_0x4e8b79(0xc2)]=_[_0x4e8b79(0xba)](_0x162257[_0x4e8b79(0xbb)],qs[_0x4e8b79(0xe8)](_0x2f8e8e['query'][_0x4e8b79(0xe8)])),_0x464d38[_0x4e8b79(0xc2)]=_0x464d38[_0x4e8b79(0xc2)][_0x4e8b79(0xbc)]?_0x464d38[_0x4e8b79(0xc2)]:_0x162257[_0x4e8b79(0xbb)];typeof _0x2f8e8e[_0x4e8b79(0xc5)]['nolimit']==='undefined'&&(_0x464d38[_0x4e8b79(0xcd)]=qs[_0x4e8b79(0xcd)](_0x2f8e8e[_0x4e8b79(0xc5)][_0x4e8b79(0xcd)]),_0x464d38[_0x4e8b79(0xc3)]=qs['offset'](_0x2f8e8e['query']['offset']));_0x464d38[_0x4e8b79(0xd4)]=qs['sort'](_0x2f8e8e[_0x4e8b79(0xc5)]['sort']),_0x464d38[_0x4e8b79(0xd5)]=qs['filters'](_['pick'](_0x2f8e8e[_0x4e8b79(0xc5)],_0x162257[_0x4e8b79(0xd1)]),_0x499d10);_0x2f8e8e[_0x4e8b79(0xc5)][_0x4e8b79(0xc9)]&&(_0x464d38[_0x4e8b79(0xd5)]=_[_0x4e8b79(0xbf)](_0x464d38[_0x4e8b79(0xd5)],{[Op['or']]:_[_0x4e8b79(0xe5)](_0x499d10,function(_0x577936){const _0x1e8c24=_0x4e8b79;if(_0x577936[_0x1e8c24(0xd3)]!==_0x1e8c24(0xe3)){const _0x45a2fb={};return _0x45a2fb[_0x577936[_0x1e8c24(0xd2)]]={[Op['like']]:'%'+_0x2f8e8e[_0x1e8c24(0xc5)][_0x1e8c24(0xc9)]+'%'},_0x45a2fb;}})}));_0x464d38=_['merge']({},_0x464d38,_0x2f8e8e[_0x4e8b79(0xc7)]);const _0x3cecaf={'where':_0x464d38[_0x4e8b79(0xd5)]};return db[_0x4e8b79(0xb9)]['count'](_0x3cecaf)[_0x4e8b79(0xd7)](function(_0x104769){const _0x266b22=_0x4e8b79;return _0x12d738[_0x266b22(0xc4)]=_0x104769,_0x2f8e8e[_0x266b22(0xc5)]['includeAll']&&(_0x464d38[_0x266b22(0xe1)]=[{'all':!![]}]),db['SmsQueueReport'][_0x266b22(0xcb)](_0x464d38);})[_0x4e8b79(0xd7)](function(_0x4b7388){return _0x12d738['rows']=_0x4b7388,_0x12d738;})['then'](respondWithFilteredResult(_0x3e06a6,_0x464d38))[_0x4e8b79(0xca)](handleError(_0x3e06a6,null));},exports[a687_0x457080(0xda)]=function(_0x5ce52f,_0x5b73d6){const _0xe437e1=a687_0x457080;let _0x18d537={'raw':!![],'where':{'id':_0x5ce52f[_0xe437e1(0xd9)]['id']}};const _0x572bbb={};return _0x572bbb[_0xe437e1(0xbb)]=_[_0xe437e1(0xc0)](db[_0xe437e1(0xb9)][_0xe437e1(0xd8)]),_0x572bbb[_0xe437e1(0xc5)]=_[_0xe437e1(0xc0)](_0x5ce52f[_0xe437e1(0xc5)]),_0x572bbb[_0xe437e1(0xd1)]=_[_0xe437e1(0xba)](_0x572bbb['model'],_0x572bbb[_0xe437e1(0xc5)]),_0x18d537[_0xe437e1(0xc2)]=_[_0xe437e1(0xba)](_0x572bbb[_0xe437e1(0xbb)],qs[_0xe437e1(0xe8)](_0x5ce52f[_0xe437e1(0xc5)][_0xe437e1(0xe8)])),_0x18d537[_0xe437e1(0xc2)]=_0x18d537[_0xe437e1(0xc2)][_0xe437e1(0xbc)]?_0x18d537['attributes']:_0x572bbb[_0xe437e1(0xbb)],_0x5ce52f['query'][_0xe437e1(0xcc)]&&(_0x18d537[_0xe437e1(0xe1)]=[{'all':!![]}]),_0x18d537=_[_0xe437e1(0xbf)]({},_0x18d537,_0x5ce52f['options']),db[_0xe437e1(0xb9)][_0xe437e1(0xcf)](_0x18d537)['then'](handleEntityNotFound(_0x5b73d6,null))[_0xe437e1(0xd7)](respondWithResult(_0x5b73d6,null))[_0xe437e1(0xca)](handleError(_0x5b73d6,null));},exports['create']=function(_0x3e16c5,_0x456c75){const _0x19ffd8=a687_0x457080;return db[_0x19ffd8(0xb9)][_0x19ffd8(0xdf)](_0x3e16c5[_0x19ffd8(0xb7)],{})[_0x19ffd8(0xd7)](respondWithResult(_0x456c75,0xc9))['catch'](handleError(_0x456c75,null));},exports[a687_0x457080(0xe4)]=function(_0x3cb8a5,_0x49b47e){const _0x3143d4=a687_0x457080;return _0x3cb8a5[_0x3143d4(0xb7)]['id']&&delete _0x3cb8a5[_0x3143d4(0xb7)]['id'],db[_0x3143d4(0xb9)][_0x3143d4(0xcf)]({'where':{'id':_0x3cb8a5[_0x3143d4(0xd9)]['id']}})[_0x3143d4(0xd7)](handleEntityNotFound(_0x49b47e,null))[_0x3143d4(0xd7)](saveUpdates(_0x3cb8a5['body'],null))['then'](respondWithResult(_0x49b47e,null))['catch'](handleError(_0x49b47e,null));},exports['destroy']=function(_0x21b125,_0x28b3e3){const _0x3fbbca=a687_0x457080;return db[_0x3fbbca(0xb9)][_0x3fbbca(0xcf)]({'where':{'id':_0x21b125[_0x3fbbca(0xd9)]['id']}})[_0x3fbbca(0xd7)](handleEntityNotFound(_0x28b3e3,null))[_0x3fbbca(0xd7)](removeEntity(_0x28b3e3,null))[_0x3fbbca(0xca)](handleError(_0x28b3e3,null));},exports['describe']=function(_0x116048,_0x173f51){const _0x33699c=a687_0x457080;return db['SmsQueueReport'][_0x33699c(0xdc)]()[_0x33699c(0xd7)](respondWithResult(_0x173f51,null))['catch'](handleError(_0x173f51,null));}; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.model.js b/server/api/smsQueueReport/smsQueueReport.model.js index 5f7713a..885b30c 100644 --- a/server/api/smsQueueReport/smsQueueReport.model.js +++ b/server/api/smsQueueReport/smsQueueReport.model.js @@ -1 +1 @@ -const a688_0x58fa=['SmsQueueReport','function','./smsQueueReport.options','./smsQueueReport.attributes','exports','sequelize','init'];(function(_0x462248,_0x50b5ba){const _0x58fa45=function(_0x46721d){while(--_0x46721d){_0x462248['push'](_0x462248['shift']());}};_0x58fa45(++_0x50b5ba);}(a688_0x58fa,0x13d));const a688_0x4672=function(_0x462248,_0x50b5ba){_0x462248=_0x462248-0x115;let _0x58fa45=a688_0x58fa[_0x462248];return _0x58fa45;};const a688_0x5a7e1b=a688_0x4672;'use strict';const {Model}=require(a688_0x5a7e1b(0x118)),{attributes}=require(a688_0x5a7e1b(0x116)),{options}=require(a688_0x5a7e1b(0x115));class SmsQueueReport extends Model{}function init(_0x40de11,_0x1fc22b){const _0x151d2d=a688_0x5a7e1b,_0x278721=options(_0x40de11),_0x2f0954=typeof _0x1fc22b===_0x151d2d(0x11b)?_0x1fc22b(_0x278721):_0x278721;return SmsQueueReport[_0x151d2d(0x119)](attributes,_0x2f0954),SmsQueueReport;}module[a688_0x5a7e1b(0x117)][a688_0x5a7e1b(0x11a)]=SmsQueueReport,module[a688_0x5a7e1b(0x117)][a688_0x5a7e1b(0x119)]=init; \ No newline at end of file +const a688_0x1964=['./smsQueueReport.attributes','init','sequelize','function','exports','SmsQueueReport','./smsQueueReport.options'];(function(_0x4cc0bc,_0x20b1cd){const _0x196400=function(_0x52d9d9){while(--_0x52d9d9){_0x4cc0bc['push'](_0x4cc0bc['shift']());}};_0x196400(++_0x20b1cd);}(a688_0x1964,0x76));const a688_0x52d9=function(_0x4cc0bc,_0x20b1cd){_0x4cc0bc=_0x4cc0bc-0xf4;let _0x196400=a688_0x1964[_0x4cc0bc];return _0x196400;};const a688_0x57a3ae=a688_0x52d9;'use strict';const {Model}=require(a688_0x57a3ae(0xf7)),{attributes}=require(a688_0x57a3ae(0xf5)),{options}=require(a688_0x57a3ae(0xf4));class SmsQueueReport extends Model{}function init(_0x41e636,_0x5a14be){const _0x34ba70=a688_0x57a3ae,_0x560ae3=options(_0x41e636),_0x5226e0=typeof _0x5a14be===_0x34ba70(0xf8)?_0x5a14be(_0x560ae3):_0x560ae3;return SmsQueueReport[_0x34ba70(0xf6)](attributes,_0x5226e0),SmsQueueReport;}module['exports'][a688_0x57a3ae(0xfa)]=SmsQueueReport,module[a688_0x57a3ae(0xf9)][a688_0x57a3ae(0xf6)]=init; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.options.js b/server/api/smsQueueReport/smsQueueReport.options.js index 62bfa02..bf53f3a 100644 --- a/server/api/smsQueueReport/smsQueueReport.options.js +++ b/server/api/smsQueueReport/smsQueueReport.options.js @@ -1 +1 @@ -var a689_0x1ee6=['options','uniqueid'];(function(_0x2a4b5d,_0x4dc3c8){var _0x1ee6f8=function(_0x24264f){while(--_0x24264f){_0x2a4b5d['push'](_0x2a4b5d['shift']());}};_0x1ee6f8(++_0x4dc3c8);}(a689_0x1ee6,0xad));var a689_0x2426=function(_0x2a4b5d,_0x4dc3c8){_0x2a4b5d=_0x2a4b5d-0xfe;var _0x1ee6f8=a689_0x1ee6[_0x2a4b5d];return _0x1ee6f8;};var a689_0x4c65ed=a689_0x2426;function options(_0x2415db){var _0x57728d=a689_0x2426;return{'sequelize':_0x2415db,'tableName':'report_sms_queue','paranoid':![],'indexes':[{'name':_0x57728d(0xfe),'fields':[_0x57728d(0xfe)]}],'timestamps':!![]};}module['exports'][a689_0x4c65ed(0xff)]=options; \ No newline at end of file +var a689_0x551a=['uniqueid','report_sms_queue','options'];(function(_0x59690b,_0x486ba1){var _0x551ac7=function(_0x378a20){while(--_0x378a20){_0x59690b['push'](_0x59690b['shift']());}};_0x551ac7(++_0x486ba1);}(a689_0x551a,0x192));var a689_0x378a=function(_0x59690b,_0x486ba1){_0x59690b=_0x59690b-0xae;var _0x551ac7=a689_0x551a[_0x59690b];return _0x551ac7;};var a689_0x1c88e2=a689_0x378a;function options(_0x39854c){var _0x31d612=a689_0x378a;return{'sequelize':_0x39854c,'tableName':_0x31d612(0xaf),'paranoid':![],'indexes':[{'name':_0x31d612(0xae),'fields':[_0x31d612(0xae)]}],'timestamps':!![]};}module['exports'][a689_0x1c88e2(0xb0)]=options; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.rpc.js b/server/api/smsQueueReport/smsQueueReport.rpc.js index b595ef2..6d61330 100644 --- a/server/api/smsQueueReport/smsQueueReport.rpc.js +++ b/server/api/smsQueueReport/smsQueueReport.rpc.js @@ -1 +1 @@ -const a690_0x3ac9=['raw','message','body','debug','options','limit','create','UpdateSmsQueueReport','rpc','stringify','then','attributes','catch','../../mysqldb','SmsQueueReport','../../config/logger','update','error','CreateSmsQueueReport','info'];(function(_0x582640,_0x4ae9fd){const _0x3ac91f=function(_0x39d2d0){while(--_0x39d2d0){_0x582640['push'](_0x582640['shift']());}};_0x3ac91f(++_0x4ae9fd);}(a690_0x3ac9,0x1ac));const a690_0x39d2=function(_0x582640,_0x4ae9fd){_0x582640=_0x582640-0x16b;let _0x3ac91f=a690_0x3ac9[_0x582640];return _0x3ac91f;};const a690_0x1834c0=a690_0x39d2;'use strict';const db=require(a690_0x1834c0(0x170))['db'],logger=require(a690_0x1834c0(0x172))(a690_0x1834c0(0x16b));exports[a690_0x1834c0(0x175)]=function(_0x192890){const _0x4e0ff8=this;return new Promise(function(_0x3e4797,_0x166853){const _0x489a25=a690_0x39d2;return db['SmsQueueReport'][_0x489a25(0x17d)](_0x192890[_0x489a25(0x179)],{'raw':_0x192890['options']?_0x192890[_0x489a25(0x17b)][_0x489a25(0x177)]===undefined?!![]:![]:!![]})[_0x489a25(0x16d)](function(_0x517045){const _0x4e2be8=_0x489a25;logger[_0x4e2be8(0x176)](_0x4e2be8(0x175),_0x192890),logger[_0x4e2be8(0x17a)](_0x4e2be8(0x175),_0x192890,JSON[_0x4e2be8(0x16c)](_0x517045)),_0x3e4797(_0x517045);})[_0x489a25(0x16f)](function(_0x188aa5){const _0x168770=_0x489a25;logger['error']('CreateSmsQueueReport',_0x188aa5[_0x168770(0x178)],_0x192890),_0x166853(_0x4e0ff8['error'](0x1f4,_0x188aa5[_0x168770(0x178)]));});});},exports[a690_0x1834c0(0x17e)]=function(_0x49520d){const _0x1498f6=this;return new Promise(function(_0x5bc37b,_0x3339ad){const _0x28cd11=a690_0x39d2;return db[_0x28cd11(0x171)][_0x28cd11(0x173)](_0x49520d[_0x28cd11(0x179)],{'raw':_0x49520d[_0x28cd11(0x17b)]?_0x49520d[_0x28cd11(0x17b)][_0x28cd11(0x177)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x49520d['options']?_0x49520d[_0x28cd11(0x17b)]['where']||null:null,'attributes':_0x49520d[_0x28cd11(0x17b)]?_0x49520d[_0x28cd11(0x17b)][_0x28cd11(0x16e)]||null:null,'limit':_0x49520d[_0x28cd11(0x17b)]?_0x49520d[_0x28cd11(0x17b)][_0x28cd11(0x17c)]||null:null})['then'](function(_0x4e54b6){const _0x3b5a68=_0x28cd11;logger[_0x3b5a68(0x176)](_0x3b5a68(0x17e),_0x49520d),logger[_0x3b5a68(0x17a)](_0x3b5a68(0x17e),_0x49520d,JSON[_0x3b5a68(0x16c)](_0x4e54b6)),_0x5bc37b(_0x4e54b6);})[_0x28cd11(0x16f)](function(_0xe30722){const _0x243fa6=_0x28cd11;logger['error']('UpdateSmsQueueReport',_0xe30722[_0x243fa6(0x178)],_0x49520d),_0x3339ad(_0x1498f6[_0x243fa6(0x174)](0x1f4,_0xe30722['message']));});});}; \ No newline at end of file +const a690_0x3425=['SmsQueueReport','catch','message','attributes','stringify','debug','CreateSmsQueueReport','then','create','rpc','../../mysqldb','info','raw','UpdateSmsQueueReport','update','limit','error','options','body','../../config/logger'];(function(_0x17ca7b,_0x4a40fd){const _0x342542=function(_0x2a32de){while(--_0x2a32de){_0x17ca7b['push'](_0x17ca7b['shift']());}};_0x342542(++_0x4a40fd);}(a690_0x3425,0x166));const a690_0x2a32=function(_0x17ca7b,_0x4a40fd){_0x17ca7b=_0x17ca7b-0x133;let _0x342542=a690_0x3425[_0x17ca7b];return _0x342542;};const a690_0x3127cb=a690_0x2a32;'use strict';const db=require(a690_0x3127cb(0x13f))['db'],logger=require(a690_0x3127cb(0x134))(a690_0x3127cb(0x13e));exports[a690_0x3127cb(0x13b)]=function(_0xd5121c){const _0x474cbd=this;return new Promise(function(_0x543bd0,_0x21c58d){const _0x5670c1=a690_0x2a32;return db[_0x5670c1(0x135)][_0x5670c1(0x13d)](_0xd5121c[_0x5670c1(0x133)],{'raw':_0xd5121c['options']?_0xd5121c[_0x5670c1(0x146)][_0x5670c1(0x141)]===undefined?!![]:![]:!![]})[_0x5670c1(0x13c)](function(_0x283a19){const _0x21cf54=_0x5670c1;logger[_0x21cf54(0x140)](_0x21cf54(0x13b),_0xd5121c),logger[_0x21cf54(0x13a)](_0x21cf54(0x13b),_0xd5121c,JSON[_0x21cf54(0x139)](_0x283a19)),_0x543bd0(_0x283a19);})[_0x5670c1(0x136)](function(_0x34e63f){const _0x43b190=_0x5670c1;logger[_0x43b190(0x145)](_0x43b190(0x13b),_0x34e63f['message'],_0xd5121c),_0x21c58d(_0x474cbd['error'](0x1f4,_0x34e63f[_0x43b190(0x137)]));});});},exports[a690_0x3127cb(0x142)]=function(_0xe1a638){const _0x3d927f=this;return new Promise(function(_0x50aaa9,_0x42d0ac){const _0x35cf2d=a690_0x2a32;return db[_0x35cf2d(0x135)][_0x35cf2d(0x143)](_0xe1a638[_0x35cf2d(0x133)],{'raw':_0xe1a638[_0x35cf2d(0x146)]?_0xe1a638['options'][_0x35cf2d(0x141)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xe1a638['options']?_0xe1a638[_0x35cf2d(0x146)]['where']||null:null,'attributes':_0xe1a638['options']?_0xe1a638[_0x35cf2d(0x146)][_0x35cf2d(0x138)]||null:null,'limit':_0xe1a638[_0x35cf2d(0x146)]?_0xe1a638[_0x35cf2d(0x146)][_0x35cf2d(0x144)]||null:null})[_0x35cf2d(0x13c)](function(_0xf4433c){const _0x540704=_0x35cf2d;logger[_0x540704(0x140)](_0x540704(0x142),_0xe1a638),logger[_0x540704(0x13a)]('UpdateSmsQueueReport',_0xe1a638,JSON[_0x540704(0x139)](_0xf4433c)),_0x50aaa9(_0xf4433c);})['catch'](function(_0x5a2d07){const _0xf40881=_0x35cf2d;logger[_0xf40881(0x145)](_0xf40881(0x142),_0x5a2d07['message'],_0xe1a638),_0x42d0ac(_0x3d927f[_0xf40881(0x145)](0x1f4,_0x5a2d07[_0xf40881(0x137)]));});});}; \ No newline at end of file diff --git a/server/api/smsTransferReport/index.js b/server/api/smsTransferReport/index.js index a22b451..e27ebbd 100644 --- a/server/api/smsTransferReport/index.js +++ b/server/api/smsTransferReport/index.js @@ -1 +1 @@ -const a691_0x941f=['destroy','/describe','isAuthenticated','put','../../components/auth/service','update','show','./smsTransferReport.controller','get','/:id','Router','describe','create'];(function(_0xef35ce,_0x49b434){const _0x941f3f=function(_0x4369b4){while(--_0x4369b4){_0xef35ce['push'](_0xef35ce['shift']());}};_0x941f3f(++_0x49b434);}(a691_0x941f,0x1ce));const a691_0x4369=function(_0xef35ce,_0x49b434){_0xef35ce=_0xef35ce-0x12a;let _0x941f3f=a691_0x941f[_0xef35ce];return _0x941f3f;};const a691_0x30249b=a691_0x4369;'use strict';const express=require('express'),router=express[a691_0x30249b(0x12d)](),auth=require(a691_0x30249b(0x134)),controller=require(a691_0x30249b(0x12a));router[a691_0x30249b(0x12b)]('/',auth[a691_0x30249b(0x132)](),controller['index']),router[a691_0x30249b(0x12b)](a691_0x30249b(0x131),auth[a691_0x30249b(0x132)](),controller[a691_0x30249b(0x12e)]),router['get'](a691_0x30249b(0x12c),auth[a691_0x30249b(0x132)](),controller[a691_0x30249b(0x136)]),router['post']('/',auth[a691_0x30249b(0x132)](),controller[a691_0x30249b(0x12f)]),router[a691_0x30249b(0x133)](a691_0x30249b(0x12c),auth[a691_0x30249b(0x132)](),controller[a691_0x30249b(0x135)]),router['delete']('/:id',auth[a691_0x30249b(0x132)](),controller[a691_0x30249b(0x130)]),module['exports']=router; \ No newline at end of file +const a691_0x541c=['create','isAuthenticated','get','express','delete','/:id','update','show','describe','exports','put','./smsTransferReport.controller'];(function(_0x5d7525,_0x1c1326){const _0x541c37=function(_0x301a8d){while(--_0x301a8d){_0x5d7525['push'](_0x5d7525['shift']());}};_0x541c37(++_0x1c1326);}(a691_0x541c,0x91));const a691_0x301a=function(_0x5d7525,_0x1c1326){_0x5d7525=_0x5d7525-0x88;let _0x541c37=a691_0x541c[_0x5d7525];return _0x541c37;};const a691_0x2e4128=a691_0x301a;'use strict';const express=require(a691_0x2e4128(0x8a)),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a691_0x2e4128(0x92));router['get']('/',auth['isAuthenticated'](),controller['index']),router[a691_0x2e4128(0x89)]('/describe',auth['isAuthenticated'](),controller[a691_0x2e4128(0x8f)]),router[a691_0x2e4128(0x89)](a691_0x2e4128(0x8c),auth[a691_0x2e4128(0x88)](),controller[a691_0x2e4128(0x8e)]),router['post']('/',auth['isAuthenticated'](),controller[a691_0x2e4128(0x93)]),router[a691_0x2e4128(0x91)]('/:id',auth[a691_0x2e4128(0x88)](),controller[a691_0x2e4128(0x8d)]),router[a691_0x2e4128(0x8b)](a691_0x2e4128(0x8c),auth[a691_0x2e4128(0x88)](),controller['destroy']),module[a691_0x2e4128(0x90)]=router; \ No newline at end of file diff --git a/server/api/smsTransferReport/smsTransferReport.attributes.js b/server/api/smsTransferReport/smsTransferReport.attributes.js index a22e68a..229c1ce 100644 --- a/server/api/smsTransferReport/smsTransferReport.attributes.js +++ b/server/api/smsTransferReport/smsTransferReport.attributes.js @@ -1 +1 @@ -const a692_0x5181=['STRING','DATE','sequelize','NOW','queue','account','agent','ENUM'];(function(_0x4e91f7,_0x4490bc){const _0x518133=function(_0x304b0e){while(--_0x304b0e){_0x4e91f7['push'](_0x4e91f7['shift']());}};_0x518133(++_0x4490bc);}(a692_0x5181,0x6f));const a692_0x304b=function(_0x4e91f7,_0x4490bc){_0x4e91f7=_0x4e91f7-0xbd;let _0x518133=a692_0x5181[_0x4e91f7];return _0x518133;};const a692_0xb21311=a692_0x304b;'use strict';const {DataTypes}=require(a692_0xb21311(0xc0)),attributes={'uniqueid':{'type':DataTypes[a692_0xb21311(0xbe)],'allowNull':![]},'type':{'type':DataTypes[a692_0xb21311(0xbd)](a692_0xb21311(0xc3),a692_0xb21311(0xc4),a692_0xb21311(0xc2)),'allowNull':![],'defaultValue':a692_0xb21311(0xc2)},'transferredAt':{'type':DataTypes[a692_0xb21311(0xbf)],'allowNull':![],'defaultValue':DataTypes[a692_0xb21311(0xc1)]}};module['exports']['attributes']=attributes; \ No newline at end of file +const a692_0x3323=['DATE','attributes','account','STRING','NOW','exports','queue','sequelize'];(function(_0xffb1a1,_0x536c45){const _0x3323f2=function(_0x1f9760){while(--_0x1f9760){_0xffb1a1['push'](_0xffb1a1['shift']());}};_0x3323f2(++_0x536c45);}(a692_0x3323,0x193));const a692_0x1f97=function(_0xffb1a1,_0x536c45){_0xffb1a1=_0xffb1a1-0x1ea;let _0x3323f2=a692_0x3323[_0xffb1a1];return _0x3323f2;};const a692_0x52a67f=a692_0x1f97;'use strict';const {DataTypes}=require(a692_0x52a67f(0x1ee)),attributes={'uniqueid':{'type':DataTypes[a692_0x52a67f(0x1ea)],'allowNull':![]},'type':{'type':DataTypes['ENUM'](a692_0x52a67f(0x1f1),'agent','queue'),'allowNull':![],'defaultValue':a692_0x52a67f(0x1ed)},'transferredAt':{'type':DataTypes[a692_0x52a67f(0x1ef)],'allowNull':![],'defaultValue':DataTypes[a692_0x52a67f(0x1eb)]}};module[a692_0x52a67f(0x1ec)][a692_0x52a67f(0x1f0)]=attributes; \ No newline at end of file diff --git a/server/api/smsTransferReport/smsTransferReport.controller.js b/server/api/smsTransferReport/smsTransferReport.controller.js index 21273c5..6109393 100644 --- a/server/api/smsTransferReport/smsTransferReport.controller.js +++ b/server/api/smsTransferReport/smsTransferReport.controller.js @@ -1 +1 @@ -const a693_0x3aba=['show','sequelize','options','body','map','catch','length','lodash','rawAttributes','where','name','sort','describe','findOne','like','undefined','filters','SmsTransferReport','VIRTUAL','set','includeAll','sendStatus','limit','include','destroy','fields','model','create','findAll','end','offset','update','nolimit','query','stack','type','status','../../mysqldb','fieldName','json','order','rows','key','filter','Content-Range','api','merge','then','count','attributes','intersection','keys'];(function(_0x1e6a79,_0x35c16f){const _0x3aba03=function(_0x4834c9){while(--_0x4834c9){_0x1e6a79['push'](_0x1e6a79['shift']());}};_0x3aba03(++_0x35c16f);}(a693_0x3aba,0x18f));const a693_0x4834=function(_0x1e6a79,_0x35c16f){_0x1e6a79=_0x1e6a79-0x13c;let _0x3aba03=a693_0x3aba[_0x1e6a79];return _0x3aba03;};const a693_0x144e2e=a693_0x4834;'use strict';const _=require(a693_0x144e2e(0x154)),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(a693_0x144e2e(0x146)),{db}=require(a693_0x144e2e(0x13e)),{Op}=require(a693_0x144e2e(0x14e));function respondWithResult(_0x9df0a,_0x5c278a){return _0x5c278a=_0x5c278a||0xc8,function(_0x2f8802){const _0x579f77=a693_0x4834;if(_0x2f8802)return _0x9df0a[_0x579f77(0x13d)](_0x5c278a)['json'](_0x2f8802);};}function respondWithFilteredResult(_0x3e6bc5,_0x4a79b1){return function(_0x141c00){const _0x1de8b8=a693_0x4834;if(_0x141c00){const _0x40a740=_0x141c00['count'],_0x405365=_0x4a79b1[_0x1de8b8(0x16b)];let _0x446ae4=_0x4a79b1['offset']+_0x4a79b1[_0x1de8b8(0x163)],_0x2238f2;return _0x446ae4>=_0x40a740?(_0x446ae4=_0x40a740,_0x2238f2=0xc8):_0x2238f2=0xce,_0x3e6bc5['status'](_0x2238f2),_0x3e6bc5[_0x1de8b8(0x160)](_0x1de8b8(0x145),_0x405365+'-'+_0x446ae4+'/'+_0x40a740)[_0x1de8b8(0x140)](_0x141c00);}return null;};}function saveUpdates(_0x27c16e){return function(_0x3d7686){const _0x58b28a=a693_0x4834;if(_0x3d7686)return _0x3d7686[_0x58b28a(0x16c)](_0x27c16e)[_0x58b28a(0x148)](function(_0x45897a){return _0x45897a;});return null;};}function removeEntity(_0x3f85c0){return function(_0xe8b446){const _0x3cc6d6=a693_0x4834;if(_0xe8b446)return _0xe8b446[_0x3cc6d6(0x165)]()[_0x3cc6d6(0x148)](function(){const _0x48f65b=_0x3cc6d6;_0x3f85c0['status'](0xcc)[_0x48f65b(0x16a)]();});};}function handleEntityNotFound(_0x57a7f4){return function(_0xe8c72e){const _0x2f8acd=a693_0x4834;return!_0xe8c72e&&_0x57a7f4[_0x2f8acd(0x162)](0x194),_0xe8c72e;};}function handleError(_0x47d0e1,_0x459aad){return _0x459aad=_0x459aad||0x1f4,function(_0x5ce1db){const _0x187be4=a693_0x4834;logger['error'](_0x5ce1db[_0x187be4(0x16f)]),_0x5ce1db[_0x187be4(0x157)]&&delete _0x5ce1db[_0x187be4(0x157)],_0x47d0e1['status'](_0x459aad)['send'](_0x5ce1db);};}exports['index']=function(_0x242ea8,_0x2b4231){const _0x57621a=a693_0x144e2e;let _0x25ae38={};const _0x450b93={},_0x2d07b6={'count':0x0,'rows':[]},_0x1901b0=_['map'](db['SmsTransferReport'][_0x57621a(0x155)],function(_0x5dc9e0){const _0x403d7d=_0x57621a;return{'name':_0x5dc9e0[_0x403d7d(0x13f)],'type':_0x5dc9e0['type'][_0x403d7d(0x143)]};});_0x450b93[_0x57621a(0x167)]=_[_0x57621a(0x151)](_0x1901b0,_0x57621a(0x157)),_0x450b93[_0x57621a(0x16e)]=_[_0x57621a(0x14c)](_0x242ea8[_0x57621a(0x16e)]),_0x450b93[_0x57621a(0x15d)]=_[_0x57621a(0x14b)](_0x450b93[_0x57621a(0x167)],_0x450b93['query']),_0x25ae38[_0x57621a(0x14a)]=_[_0x57621a(0x14b)](_0x450b93[_0x57621a(0x167)],qs['fields'](_0x242ea8[_0x57621a(0x16e)]['fields'])),_0x25ae38[_0x57621a(0x14a)]=_0x25ae38[_0x57621a(0x14a)][_0x57621a(0x153)]?_0x25ae38[_0x57621a(0x14a)]:_0x450b93[_0x57621a(0x167)];typeof _0x242ea8[_0x57621a(0x16e)][_0x57621a(0x16d)]===_0x57621a(0x15c)&&(_0x25ae38[_0x57621a(0x163)]=qs[_0x57621a(0x163)](_0x242ea8[_0x57621a(0x16e)][_0x57621a(0x163)]),_0x25ae38[_0x57621a(0x16b)]=qs[_0x57621a(0x16b)](_0x242ea8[_0x57621a(0x16e)][_0x57621a(0x16b)]));_0x25ae38[_0x57621a(0x141)]=qs[_0x57621a(0x158)](_0x242ea8[_0x57621a(0x16e)][_0x57621a(0x158)]),_0x25ae38['where']=qs[_0x57621a(0x15d)](_['pick'](_0x242ea8[_0x57621a(0x16e)],_0x450b93[_0x57621a(0x15d)]),_0x1901b0);_0x242ea8['query'][_0x57621a(0x144)]&&(_0x25ae38['where']=_[_0x57621a(0x147)](_0x25ae38['where'],{[Op['or']]:_[_0x57621a(0x151)](_0x1901b0,function(_0x92a7ea){const _0x6422c5=_0x57621a;if(_0x92a7ea[_0x6422c5(0x13c)]!==_0x6422c5(0x15f)){const _0x92f92f={};return _0x92f92f[_0x92a7ea[_0x6422c5(0x157)]]={[Op[_0x6422c5(0x15b)]]:'%'+_0x242ea8[_0x6422c5(0x16e)][_0x6422c5(0x144)]+'%'},_0x92f92f;}})}));_0x25ae38=_['merge']({},_0x25ae38,_0x242ea8[_0x57621a(0x14f)]);const _0x5da497={'where':_0x25ae38[_0x57621a(0x156)]};return db[_0x57621a(0x15e)]['count'](_0x5da497)['then'](function(_0x307260){const _0x1a2c40=_0x57621a;return _0x2d07b6[_0x1a2c40(0x149)]=_0x307260,_0x242ea8[_0x1a2c40(0x16e)][_0x1a2c40(0x161)]&&(_0x25ae38[_0x1a2c40(0x164)]=[{'all':!![]}]),db['SmsTransferReport'][_0x1a2c40(0x169)](_0x25ae38);})[_0x57621a(0x148)](function(_0xf5d7a3){const _0x4d8af0=_0x57621a;return _0x2d07b6[_0x4d8af0(0x142)]=_0xf5d7a3,_0x2d07b6;})[_0x57621a(0x148)](respondWithFilteredResult(_0x2b4231,_0x25ae38))[_0x57621a(0x152)](handleError(_0x2b4231,null));},exports[a693_0x144e2e(0x14d)]=function(_0x2a6e15,_0x3ddf77){const _0x534c4f=a693_0x144e2e;let _0x4b83ee={'raw':!![],'where':{'id':_0x2a6e15['params']['id']}};const _0x8a81c7={};return _0x8a81c7['model']=_[_0x534c4f(0x14c)](db[_0x534c4f(0x15e)]['rawAttributes']),_0x8a81c7[_0x534c4f(0x16e)]=_[_0x534c4f(0x14c)](_0x2a6e15[_0x534c4f(0x16e)]),_0x8a81c7[_0x534c4f(0x15d)]=_[_0x534c4f(0x14b)](_0x8a81c7['model'],_0x8a81c7['query']),_0x4b83ee[_0x534c4f(0x14a)]=_[_0x534c4f(0x14b)](_0x8a81c7['model'],qs[_0x534c4f(0x166)](_0x2a6e15[_0x534c4f(0x16e)][_0x534c4f(0x166)])),_0x4b83ee['attributes']=_0x4b83ee[_0x534c4f(0x14a)][_0x534c4f(0x153)]?_0x4b83ee['attributes']:_0x8a81c7[_0x534c4f(0x167)],_0x2a6e15[_0x534c4f(0x16e)][_0x534c4f(0x161)]&&(_0x4b83ee[_0x534c4f(0x164)]=[{'all':!![]}]),_0x4b83ee=_[_0x534c4f(0x147)]({},_0x4b83ee,_0x2a6e15[_0x534c4f(0x14f)]),db[_0x534c4f(0x15e)][_0x534c4f(0x15a)](_0x4b83ee)['then'](handleEntityNotFound(_0x3ddf77,null))['then'](respondWithResult(_0x3ddf77,null))[_0x534c4f(0x152)](handleError(_0x3ddf77,null));},exports[a693_0x144e2e(0x168)]=function(_0x1e9c52,_0x2f9d3b){const _0x1b2889=a693_0x144e2e;return db[_0x1b2889(0x15e)][_0x1b2889(0x168)](_0x1e9c52[_0x1b2889(0x150)],{})[_0x1b2889(0x148)](respondWithResult(_0x2f9d3b,0xc9))[_0x1b2889(0x152)](handleError(_0x2f9d3b,null));},exports[a693_0x144e2e(0x16c)]=function(_0x59dfaa,_0xec6007){const _0x2424d2=a693_0x144e2e;return _0x59dfaa[_0x2424d2(0x150)]['id']&&delete _0x59dfaa[_0x2424d2(0x150)]['id'],db[_0x2424d2(0x15e)]['findOne']({'where':{'id':_0x59dfaa['params']['id']}})[_0x2424d2(0x148)](handleEntityNotFound(_0xec6007,null))['then'](saveUpdates(_0x59dfaa[_0x2424d2(0x150)],null))[_0x2424d2(0x148)](respondWithResult(_0xec6007,null))[_0x2424d2(0x152)](handleError(_0xec6007,null));},exports['destroy']=function(_0x55d853,_0x9961c1){const _0x3bcf88=a693_0x144e2e;return db[_0x3bcf88(0x15e)]['findOne']({'where':{'id':_0x55d853['params']['id']}})[_0x3bcf88(0x148)](handleEntityNotFound(_0x9961c1,null))['then'](removeEntity(_0x9961c1,null))[_0x3bcf88(0x152)](handleError(_0x9961c1,null));},exports[a693_0x144e2e(0x159)]=function(_0x39858c,_0x27114a){const _0xd666c7=a693_0x144e2e;return db[_0xd666c7(0x15e)][_0xd666c7(0x159)]()['then'](respondWithResult(_0x27114a,null))[_0xd666c7(0x152)](handleError(_0x27114a,null));}; \ No newline at end of file +const a693_0x5a34=['error','rows','merge','where','attributes','destroy','include','filter','options','create','findAll','type','body','stack','query','like','findOne','key','then','rawAttributes','index','model','name','offset','includeAll','../../components/parsers/qs','status','fieldName','pick','sort','VIRTUAL','../../mysqldb','end','../../config/logger','filters','describe','show','sequelize','json','update','map','Content-Range','count','limit','nolimit','order','catch','SmsTransferReport','undefined','set','keys','lodash','fields','params'];(function(_0x39aef2,_0x439cd1){const _0x5a34a8=function(_0xa6aea0){while(--_0xa6aea0){_0x39aef2['push'](_0x39aef2['shift']());}};_0x5a34a8(++_0x439cd1);}(a693_0x5a34,0x1f4));const a693_0xa6ae=function(_0x39aef2,_0x439cd1){_0x39aef2=_0x39aef2-0x15c;let _0x5a34a8=a693_0x5a34[_0x39aef2];return _0x5a34a8;};const a693_0x9a9eeb=a693_0xa6ae;'use strict';const _=require(a693_0x9a9eeb(0x181)),qs=require(a693_0x9a9eeb(0x167)),logger=require(a693_0x9a9eeb(0x16f))('api'),{db}=require(a693_0x9a9eeb(0x16d)),{Op}=require(a693_0x9a9eeb(0x173));function respondWithResult(_0x1a2361,_0x59260a){return _0x59260a=_0x59260a||0xc8,function(_0x3a67b1){const _0x553d73=a693_0xa6ae;if(_0x3a67b1)return _0x1a2361['status'](_0x59260a)[_0x553d73(0x174)](_0x3a67b1);};}function respondWithFilteredResult(_0x4c2310,_0xb0d63f){return function(_0x26a304){const _0x4b75c4=a693_0xa6ae;if(_0x26a304){const _0x3ce787=_0x26a304['count'],_0x558c01=_0xb0d63f[_0x4b75c4(0x165)];let _0x42dc79=_0xb0d63f['offset']+_0xb0d63f['limit'],_0x1e2565;return _0x42dc79>=_0x3ce787?(_0x42dc79=_0x3ce787,_0x1e2565=0xc8):_0x1e2565=0xce,_0x4c2310[_0x4b75c4(0x168)](_0x1e2565),_0x4c2310[_0x4b75c4(0x17f)](_0x4b75c4(0x177),_0x558c01+'-'+_0x42dc79+'/'+_0x3ce787)[_0x4b75c4(0x174)](_0x26a304);}return null;};}function saveUpdates(_0x7fb0cd){return function(_0x5d31f3){if(_0x5d31f3)return _0x5d31f3['update'](_0x7fb0cd)['then'](function(_0xc9c809){return _0xc9c809;});return null;};}function removeEntity(_0xc609ce){return function(_0x2143d0){const _0x113e8c=a693_0xa6ae;if(_0x2143d0)return _0x2143d0['destroy']()[_0x113e8c(0x160)](function(){const _0x2c8fd6=_0x113e8c;_0xc609ce[_0x2c8fd6(0x168)](0xcc)[_0x2c8fd6(0x16e)]();});};}function handleEntityNotFound(_0x22dead){return function(_0x1996d5){return!_0x1996d5&&_0x22dead['sendStatus'](0x194),_0x1996d5;};}function handleError(_0x43d153,_0xbc13c6){return _0xbc13c6=_0xbc13c6||0x1f4,function(_0x47b70f){const _0x18b0c9=a693_0xa6ae;logger[_0x18b0c9(0x184)](_0x47b70f[_0x18b0c9(0x191)]),_0x47b70f[_0x18b0c9(0x164)]&&delete _0x47b70f[_0x18b0c9(0x164)],_0x43d153[_0x18b0c9(0x168)](_0xbc13c6)['send'](_0x47b70f);};}exports[a693_0x9a9eeb(0x162)]=function(_0x5a81c1,_0x53f399){const _0xb2a13f=a693_0x9a9eeb;let _0x1bb46b={};const _0x3bda21={},_0x248b7c={'count':0x0,'rows':[]},_0x46b3a3=_[_0xb2a13f(0x176)](db[_0xb2a13f(0x17d)]['rawAttributes'],function(_0x5ccd19){const _0xbc2ecd=_0xb2a13f;return{'name':_0x5ccd19[_0xbc2ecd(0x169)],'type':_0x5ccd19[_0xbc2ecd(0x18f)][_0xbc2ecd(0x15f)]};});_0x3bda21[_0xb2a13f(0x163)]=_[_0xb2a13f(0x176)](_0x46b3a3,_0xb2a13f(0x164)),_0x3bda21[_0xb2a13f(0x15c)]=_[_0xb2a13f(0x180)](_0x5a81c1[_0xb2a13f(0x15c)]),_0x3bda21[_0xb2a13f(0x170)]=_['intersection'](_0x3bda21[_0xb2a13f(0x163)],_0x3bda21[_0xb2a13f(0x15c)]),_0x1bb46b[_0xb2a13f(0x188)]=_['intersection'](_0x3bda21[_0xb2a13f(0x163)],qs[_0xb2a13f(0x182)](_0x5a81c1[_0xb2a13f(0x15c)][_0xb2a13f(0x182)])),_0x1bb46b[_0xb2a13f(0x188)]=_0x1bb46b[_0xb2a13f(0x188)]['length']?_0x1bb46b[_0xb2a13f(0x188)]:_0x3bda21[_0xb2a13f(0x163)];typeof _0x5a81c1['query'][_0xb2a13f(0x17a)]===_0xb2a13f(0x17e)&&(_0x1bb46b[_0xb2a13f(0x179)]=qs[_0xb2a13f(0x179)](_0x5a81c1[_0xb2a13f(0x15c)][_0xb2a13f(0x179)]),_0x1bb46b[_0xb2a13f(0x165)]=qs['offset'](_0x5a81c1['query']['offset']));_0x1bb46b[_0xb2a13f(0x17b)]=qs[_0xb2a13f(0x16b)](_0x5a81c1['query'][_0xb2a13f(0x16b)]),_0x1bb46b[_0xb2a13f(0x187)]=qs['filters'](_[_0xb2a13f(0x16a)](_0x5a81c1[_0xb2a13f(0x15c)],_0x3bda21[_0xb2a13f(0x170)]),_0x46b3a3);_0x5a81c1['query'][_0xb2a13f(0x18b)]&&(_0x1bb46b[_0xb2a13f(0x187)]=_[_0xb2a13f(0x186)](_0x1bb46b['where'],{[Op['or']]:_[_0xb2a13f(0x176)](_0x46b3a3,function(_0x483836){const _0x3201c8=_0xb2a13f;if(_0x483836['type']!==_0x3201c8(0x16c)){const _0x4c60f2={};return _0x4c60f2[_0x483836[_0x3201c8(0x164)]]={[Op[_0x3201c8(0x15d)]]:'%'+_0x5a81c1[_0x3201c8(0x15c)][_0x3201c8(0x18b)]+'%'},_0x4c60f2;}})}));_0x1bb46b=_['merge']({},_0x1bb46b,_0x5a81c1[_0xb2a13f(0x18c)]);const _0x3d4a32={'where':_0x1bb46b['where']};return db[_0xb2a13f(0x17d)]['count'](_0x3d4a32)[_0xb2a13f(0x160)](function(_0x583369){const _0x4b4f8a=_0xb2a13f;return _0x248b7c[_0x4b4f8a(0x178)]=_0x583369,_0x5a81c1[_0x4b4f8a(0x15c)]['includeAll']&&(_0x1bb46b[_0x4b4f8a(0x18a)]=[{'all':!![]}]),db[_0x4b4f8a(0x17d)][_0x4b4f8a(0x18e)](_0x1bb46b);})[_0xb2a13f(0x160)](function(_0x18386d){const _0x1a15f8=_0xb2a13f;return _0x248b7c[_0x1a15f8(0x185)]=_0x18386d,_0x248b7c;})[_0xb2a13f(0x160)](respondWithFilteredResult(_0x53f399,_0x1bb46b))[_0xb2a13f(0x17c)](handleError(_0x53f399,null));},exports[a693_0x9a9eeb(0x172)]=function(_0x53c860,_0x50d10f){const _0x1783ed=a693_0x9a9eeb;let _0x922798={'raw':!![],'where':{'id':_0x53c860[_0x1783ed(0x183)]['id']}};const _0x469641={};return _0x469641['model']=_[_0x1783ed(0x180)](db[_0x1783ed(0x17d)][_0x1783ed(0x161)]),_0x469641[_0x1783ed(0x15c)]=_[_0x1783ed(0x180)](_0x53c860[_0x1783ed(0x15c)]),_0x469641[_0x1783ed(0x170)]=_['intersection'](_0x469641[_0x1783ed(0x163)],_0x469641[_0x1783ed(0x15c)]),_0x922798[_0x1783ed(0x188)]=_['intersection'](_0x469641[_0x1783ed(0x163)],qs[_0x1783ed(0x182)](_0x53c860[_0x1783ed(0x15c)][_0x1783ed(0x182)])),_0x922798[_0x1783ed(0x188)]=_0x922798[_0x1783ed(0x188)]['length']?_0x922798[_0x1783ed(0x188)]:_0x469641['model'],_0x53c860[_0x1783ed(0x15c)][_0x1783ed(0x166)]&&(_0x922798[_0x1783ed(0x18a)]=[{'all':!![]}]),_0x922798=_[_0x1783ed(0x186)]({},_0x922798,_0x53c860[_0x1783ed(0x18c)]),db['SmsTransferReport']['findOne'](_0x922798)[_0x1783ed(0x160)](handleEntityNotFound(_0x50d10f,null))[_0x1783ed(0x160)](respondWithResult(_0x50d10f,null))[_0x1783ed(0x17c)](handleError(_0x50d10f,null));},exports['create']=function(_0x35e96b,_0x1254b5){const _0x4fcc18=a693_0x9a9eeb;return db['SmsTransferReport'][_0x4fcc18(0x18d)](_0x35e96b[_0x4fcc18(0x190)],{})['then'](respondWithResult(_0x1254b5,0xc9))['catch'](handleError(_0x1254b5,null));},exports[a693_0x9a9eeb(0x175)]=function(_0xaf243e,_0x26f736){const _0x2d30ef=a693_0x9a9eeb;return _0xaf243e[_0x2d30ef(0x190)]['id']&&delete _0xaf243e[_0x2d30ef(0x190)]['id'],db[_0x2d30ef(0x17d)][_0x2d30ef(0x15e)]({'where':{'id':_0xaf243e[_0x2d30ef(0x183)]['id']}})[_0x2d30ef(0x160)](handleEntityNotFound(_0x26f736,null))[_0x2d30ef(0x160)](saveUpdates(_0xaf243e[_0x2d30ef(0x190)],null))[_0x2d30ef(0x160)](respondWithResult(_0x26f736,null))[_0x2d30ef(0x17c)](handleError(_0x26f736,null));},exports[a693_0x9a9eeb(0x189)]=function(_0x13b2f4,_0x301c5a){const _0x31b1a7=a693_0x9a9eeb;return db['SmsTransferReport'][_0x31b1a7(0x15e)]({'where':{'id':_0x13b2f4[_0x31b1a7(0x183)]['id']}})[_0x31b1a7(0x160)](handleEntityNotFound(_0x301c5a,null))[_0x31b1a7(0x160)](removeEntity(_0x301c5a,null))[_0x31b1a7(0x17c)](handleError(_0x301c5a,null));},exports['describe']=function(_0x5380cf,_0x21266e){const _0x206db3=a693_0x9a9eeb;return db[_0x206db3(0x17d)][_0x206db3(0x171)]()[_0x206db3(0x160)](respondWithResult(_0x21266e,null))[_0x206db3(0x17c)](handleError(_0x21266e,null));}; \ No newline at end of file diff --git a/server/api/smsTransferReport/smsTransferReport.model.js b/server/api/smsTransferReport/smsTransferReport.model.js index d2b342d..07b16d5 100644 --- a/server/api/smsTransferReport/smsTransferReport.model.js +++ b/server/api/smsTransferReport/smsTransferReport.model.js @@ -1 +1 @@ -const a694_0x53ea=['SmsTransferReport','function','exports','./smsTransferReport.attributes','init'];(function(_0x4833ca,_0x39ba49){const _0x53eaee=function(_0x205396){while(--_0x205396){_0x4833ca['push'](_0x4833ca['shift']());}};_0x53eaee(++_0x39ba49);}(a694_0x53ea,0x1a0));const a694_0x2053=function(_0x4833ca,_0x39ba49){_0x4833ca=_0x4833ca-0xdf;let _0x53eaee=a694_0x53ea[_0x4833ca];return _0x53eaee;};const a694_0x1ed77f=a694_0x2053;'use strict';const {Model}=require('sequelize'),{attributes}=require(a694_0x1ed77f(0xe1)),{options}=require('./smsTransferReport.options');class SmsTransferReport extends Model{}function init(_0x4c1b0c,_0x4e3257){const _0x46f484=a694_0x1ed77f,_0x5870ff=options(_0x4c1b0c),_0x1a53e1=typeof _0x4e3257===_0x46f484(0xdf)?_0x4e3257(_0x5870ff):_0x5870ff;return SmsTransferReport[_0x46f484(0xe2)](attributes,_0x1a53e1),SmsTransferReport;}module[a694_0x1ed77f(0xe0)][a694_0x1ed77f(0xe3)]=SmsTransferReport,module[a694_0x1ed77f(0xe0)][a694_0x1ed77f(0xe2)]=init; \ No newline at end of file +const a694_0x2038=['exports','function','init','./smsTransferReport.attributes','sequelize'];(function(_0x4a5404,_0x52d484){const _0x2038d0=function(_0x252059){while(--_0x252059){_0x4a5404['push'](_0x4a5404['shift']());}};_0x2038d0(++_0x52d484);}(a694_0x2038,0xb3));const a694_0x2520=function(_0x4a5404,_0x52d484){_0x4a5404=_0x4a5404-0x16a;let _0x2038d0=a694_0x2038[_0x4a5404];return _0x2038d0;};const a694_0x19df8a=a694_0x2520;'use strict';const {Model}=require(a694_0x19df8a(0x16a)),{attributes}=require(a694_0x19df8a(0x16e)),{options}=require('./smsTransferReport.options');class SmsTransferReport extends Model{}function init(_0x45af28,_0x1f86f4){const _0x37dc60=a694_0x19df8a,_0x3e3d7f=options(_0x45af28),_0x3be919=typeof _0x1f86f4===_0x37dc60(0x16c)?_0x1f86f4(_0x3e3d7f):_0x3e3d7f;return SmsTransferReport[_0x37dc60(0x16d)](attributes,_0x3be919),SmsTransferReport;}module[a694_0x19df8a(0x16b)]['SmsTransferReport']=SmsTransferReport,module['exports'][a694_0x19df8a(0x16d)]=init; \ No newline at end of file diff --git a/server/api/smsTransferReport/smsTransferReport.options.js b/server/api/smsTransferReport/smsTransferReport.options.js index b5e1755..2a94e91 100644 --- a/server/api/smsTransferReport/smsTransferReport.options.js +++ b/server/api/smsTransferReport/smsTransferReport.options.js @@ -1 +1 @@ -var a695_0x638c=['options','exports','uniqueid'];(function(_0xb82385,_0x51326c){var _0x638c25=function(_0x34ce40){while(--_0x34ce40){_0xb82385['push'](_0xb82385['shift']());}};_0x638c25(++_0x51326c);}(a695_0x638c,0xa0));var a695_0x34ce=function(_0xb82385,_0x51326c){_0xb82385=_0xb82385-0x1f3;var _0x638c25=a695_0x638c[_0xb82385];return _0x638c25;};var a695_0x11852d=a695_0x34ce;function options(_0x1516c4){var _0x277498=a695_0x34ce;return{'sequelize':_0x1516c4,'tableName':'report_sms_transfer','paranoid':![],'indexes':[{'name':_0x277498(0x1f4),'fields':[_0x277498(0x1f4)]}],'timestamps':!![]};}module[a695_0x11852d(0x1f3)][a695_0x11852d(0x1f5)]=options; \ No newline at end of file +var a695_0x46b3=['uniqueid','report_sms_transfer','exports'];(function(_0x37faae,_0x279ae2){var _0x46b3b1=function(_0x1c3a35){while(--_0x1c3a35){_0x37faae['push'](_0x37faae['shift']());}};_0x46b3b1(++_0x279ae2);}(a695_0x46b3,0x11e));var a695_0x1c3a=function(_0x37faae,_0x279ae2){_0x37faae=_0x37faae-0x1db;var _0x46b3b1=a695_0x46b3[_0x37faae];return _0x46b3b1;};var a695_0x2e26d2=a695_0x1c3a;function options(_0x2d1613){var _0xd52ddc=a695_0x1c3a;return{'sequelize':_0x2d1613,'tableName':_0xd52ddc(0x1db),'paranoid':![],'indexes':[{'name':_0xd52ddc(0x1dd),'fields':['uniqueid']}],'timestamps':!![]};}module[a695_0x2e26d2(0x1dc)]['options']=options; \ No newline at end of file diff --git a/server/api/sound/index.js b/server/api/sound/index.js index 3dff0cc..cb8872e 100644 --- a/server/api/sound/index.js +++ b/server/api/sound/index.js @@ -1 +1 @@ -const a696_0x1a99=['basename','update','../../config/environment','multer','exports','/:id','isAuthenticated','extname','file','now','files/sounds/original/','format','get','originalname','show','root','express','path','create','put','post','delete','index','replace','join','download'];(function(_0x46d76d,_0x42ed16){const _0x1a9975=function(_0xa622fe){while(--_0xa622fe){_0x46d76d['push'](_0x46d76d['shift']());}};_0x1a9975(++_0x42ed16);}(a696_0x1a99,0x101));const a696_0xa622=function(_0x46d76d,_0x42ed16){_0x46d76d=_0x46d76d-0x1d5;let _0x1a9975=a696_0x1a99[_0x46d76d];return _0x1a9975;};const a696_0x553c92=a696_0xa622;'use strict';const multer=require(a696_0x553c92(0x1db)),util=require('util'),path=require(a696_0x553c92(0x1e9)),express=require(a696_0x553c92(0x1e8)),router=express['Router'](),auth=require('../../components/auth/service'),config=require(a696_0x553c92(0x1da)),controller=require('./sound.controller');router[a696_0x553c92(0x1e4)]('/',auth['isAuthenticated'](),controller[a696_0x553c92(0x1ee)]),router[a696_0x553c92(0x1e4)](a696_0x553c92(0x1dd),auth['isAuthenticated'](),controller[a696_0x553c92(0x1e6)]),router[a696_0x553c92(0x1e4)]('/:id/download',auth[a696_0x553c92(0x1de)](),controller[a696_0x553c92(0x1d7)]);const upload=multer({'storage':multer['diskStorage']({'destination':function(_0x2cb378,_0x5afdf9,_0x30d0a7){const _0x194906=a696_0x553c92;_0x30d0a7(null,path[_0x194906(0x1d6)](config[_0x194906(0x1e7)],_0x194906(0x1e2)));},'filename':function(_0x110335,_0x4def34,_0x4f45f6){const _0x54e3ca=a696_0x553c92;_0x4def34[_0x54e3ca(0x1e5)]=_0x4def34['originalname'][_0x54e3ca(0x1d5)](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x4f45f6(null,util[_0x54e3ca(0x1e3)]('%s-%s%s',path[_0x54e3ca(0x1d8)](_0x4def34[_0x54e3ca(0x1e5)],path[_0x54e3ca(0x1df)](_0x4def34[_0x54e3ca(0x1e5)])),Date[_0x54e3ca(0x1e1)](),path[_0x54e3ca(0x1df)](_0x4def34[_0x54e3ca(0x1e5)])));}})});router[a696_0x553c92(0x1ec)]('/',upload['single'](a696_0x553c92(0x1e0)),controller[a696_0x553c92(0x1ea)]),router[a696_0x553c92(0x1eb)]('/:id',auth['isAuthenticated'](),controller[a696_0x553c92(0x1d9)]),router[a696_0x553c92(0x1ed)]('/:id',auth[a696_0x553c92(0x1de)](),controller[a696_0x553c92(0x1ed)]),module[a696_0x553c92(0x1dc)]=router; \ No newline at end of file +const a696_0xa647=['index','update','isAuthenticated','download','now','../../components/auth/service','files/sounds/original/','put','replace','extname','express','../../config/environment','post','Router','format','join','delete','/:id','util','get','root','single','%s-%s%s','originalname','show','path','./sound.controller','file','diskStorage'];(function(_0x4753a4,_0x55a70f){const _0xa647e7=function(_0xe30e24){while(--_0xe30e24){_0x4753a4['push'](_0x4753a4['shift']());}};_0xa647e7(++_0x55a70f);}(a696_0xa647,0x6b));const a696_0xe30e=function(_0x4753a4,_0x55a70f){_0x4753a4=_0x4753a4-0x145;let _0xa647e7=a696_0xa647[_0x4753a4];return _0xa647e7;};const a696_0x430f30=a696_0xe30e;'use strict';const multer=require('multer'),util=require(a696_0x430f30(0x160)),path=require(a696_0x430f30(0x14a)),express=require(a696_0x430f30(0x158)),router=express[a696_0x430f30(0x15b)](),auth=require(a696_0x430f30(0x153)),config=require(a696_0x430f30(0x159)),controller=require(a696_0x430f30(0x14b));router['get']('/',auth[a696_0x430f30(0x150)](),controller[a696_0x430f30(0x14e)]),router[a696_0x430f30(0x161)]('/:id',auth['isAuthenticated'](),controller[a696_0x430f30(0x149)]),router[a696_0x430f30(0x161)]('/:id/download',auth[a696_0x430f30(0x150)](),controller[a696_0x430f30(0x151)]);const upload=multer({'storage':multer[a696_0x430f30(0x14d)]({'destination':function(_0x23d341,_0x392f62,_0x2808c6){const _0x5d1416=a696_0x430f30;_0x2808c6(null,path[_0x5d1416(0x15d)](config[_0x5d1416(0x145)],_0x5d1416(0x154)));},'filename':function(_0x5d3d4e,_0x3fd866,_0x56aa4c){const _0x2471c4=a696_0x430f30;_0x3fd866['originalname']=_0x3fd866['originalname'][_0x2471c4(0x156)](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x56aa4c(null,util[_0x2471c4(0x15c)](_0x2471c4(0x147),path['basename'](_0x3fd866[_0x2471c4(0x148)],path[_0x2471c4(0x157)](_0x3fd866[_0x2471c4(0x148)])),Date[_0x2471c4(0x152)](),path[_0x2471c4(0x157)](_0x3fd866[_0x2471c4(0x148)])));}})});router[a696_0x430f30(0x15a)]('/',upload[a696_0x430f30(0x146)](a696_0x430f30(0x14c)),controller['create']),router[a696_0x430f30(0x155)](a696_0x430f30(0x15f),auth[a696_0x430f30(0x150)](),controller[a696_0x430f30(0x14f)]),router[a696_0x430f30(0x15e)]('/:id',auth[a696_0x430f30(0x150)](),controller[a696_0x430f30(0x15e)]),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 f75d03d..8465e42 100644 --- a/server/api/sound/sound.attributes.js +++ b/server/api/sound/sound.attributes.js @@ -1 +1 @@ -const a697_0x4a74=['attributes','INTEGER','BIGINT','STRING','sequelize','exports'];(function(_0x2ceb71,_0x2d8739){const _0x4a7487=function(_0x1fe202){while(--_0x1fe202){_0x2ceb71['push'](_0x2ceb71['shift']());}};_0x4a7487(++_0x2d8739);}(a697_0x4a74,0xc1));const a697_0x1fe2=function(_0x2ceb71,_0x2d8739){_0x2ceb71=_0x2ceb71-0x1e0;let _0x4a7487=a697_0x4a74[_0x2ceb71];return _0x4a7487;};const a697_0xa01c21=a697_0x1fe2;'use strict';const {DataTypes}=require(a697_0xa01c21(0x1e3)),attributes={'name':{'type':DataTypes[a697_0xa01c21(0x1e2)],'unique':'name','allowNull':![]},'save_name':{'type':DataTypes[a697_0xa01c21(0x1e2)]},'display_name':{'type':DataTypes[a697_0xa01c21(0x1e2)],'defaultValue':''},'description':{'type':DataTypes[a697_0xa01c21(0x1e2)]},'original_format':{'type':DataTypes['STRING']},'original_duration':{'type':DataTypes['FLOAT']},'original_sampleCount':{'type':DataTypes[a697_0xa01c21(0x1e1)]},'original_channelCount':{'type':DataTypes['INTEGER']},'original_bitRate':{'type':DataTypes[a697_0xa01c21(0x1e1)]},'original_sampleRate':{'type':DataTypes['INTEGER']},'converted_format':{'type':DataTypes[a697_0xa01c21(0x1e2)]},'converted_duration':{'type':DataTypes['FLOAT']},'converted_sampleCount':{'type':DataTypes[a697_0xa01c21(0x1e1)]},'converted_channelCount':{'type':DataTypes['INTEGER']},'converted_bitRate':{'type':DataTypes[a697_0xa01c21(0x1e1)]},'converted_sampleRate':{'type':DataTypes[a697_0xa01c21(0x1e0)]}};module[a697_0xa01c21(0x1e4)][a697_0xa01c21(0x1e5)]=attributes; \ No newline at end of file +const a697_0x5e4c=['sequelize','STRING','name','BIGINT','FLOAT','INTEGER'];(function(_0x9acab3,_0xca4a05){const _0x5e4cf0=function(_0xf3d285){while(--_0xf3d285){_0x9acab3['push'](_0x9acab3['shift']());}};_0x5e4cf0(++_0xca4a05);}(a697_0x5e4c,0xd0));const a697_0xf3d2=function(_0x9acab3,_0xca4a05){_0x9acab3=_0x9acab3-0x1ce;let _0x5e4cf0=a697_0x5e4c[_0x9acab3];return _0x5e4cf0;};const a697_0x10a32c=a697_0xf3d2;'use strict';const {DataTypes}=require(a697_0x10a32c(0x1d0)),attributes={'name':{'type':DataTypes[a697_0x10a32c(0x1d1)],'unique':a697_0x10a32c(0x1d2),'allowNull':![]},'save_name':{'type':DataTypes[a697_0x10a32c(0x1d1)]},'display_name':{'type':DataTypes[a697_0x10a32c(0x1d1)],'defaultValue':''},'description':{'type':DataTypes[a697_0x10a32c(0x1d1)]},'original_format':{'type':DataTypes['STRING']},'original_duration':{'type':DataTypes[a697_0x10a32c(0x1ce)]},'original_sampleCount':{'type':DataTypes[a697_0x10a32c(0x1d3)]},'original_channelCount':{'type':DataTypes[a697_0x10a32c(0x1cf)]},'original_bitRate':{'type':DataTypes[a697_0x10a32c(0x1d3)]},'original_sampleRate':{'type':DataTypes['INTEGER']},'converted_format':{'type':DataTypes['STRING']},'converted_duration':{'type':DataTypes['FLOAT']},'converted_sampleCount':{'type':DataTypes[a697_0x10a32c(0x1d3)]},'converted_channelCount':{'type':DataTypes['INTEGER']},'converted_bitRate':{'type':DataTypes[a697_0x10a32c(0x1d3)]},'converted_sampleRate':{'type':DataTypes[a697_0x10a32c(0x1cf)]}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/sound/sound.controller.js b/server/api/sound/sound.controller.js index ae13635..629b122 100644 --- a/server/api/sound/sound.controller.js +++ b/server/api/sound/sound.controller.js @@ -1 +1 @@ -const a698_0x4adf=['findOne','root','map','download','sendStatus','server/files/sounds/converted','0777','merge','json','converted_duration','substring','bitRate','wav','unlinkSync','includeAll','offset','converted_format','order','join','UserProfileResource','catch','update','attributes','rawAttributes','sox','query','server/files/sounds/original','Sound\x20not\x20found','../../config/logger','duration','get','chmodSync','index','keys','save_name','basename','format','path','then','Unable\x20to\x20retrieve\x20the\x20current\x20user','count','api','sampleRate','converted_channelCount','type','destroy','error','stack','../../components/parsers/qs','create','rows','params','length','../../config/environment','existsSync','original_channelCount','%s.%s','Sound','filters','filter','extname','pick','end','user','original_duration','original_sampleRate','channelCount','name','dest','limit','nolimit','model','fields','../../mysqldb','like','show','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','transcode','intersection','converted_bitRate','src','role','converted_sampleCount','filename','sampleCount','file','info','options','VIRTUAL','UserProfileSection','Content-Range','body','sequelize','include','status','set','autoAssociation','sort','where','originalname','findAll','send','original_sampleCount','fieldName'];(function(_0x344527,_0x56cbba){const _0x4adfef=function(_0x30c39c){while(--_0x30c39c){_0x344527['push'](_0x344527['shift']());}};_0x4adfef(++_0x56cbba);}(a698_0x4adf,0x167));const a698_0x30c3=function(_0x344527,_0x56cbba){_0x344527=_0x344527-0x10d;let _0x4adfef=a698_0x4adf[_0x344527];return _0x4adfef;};const a698_0x4ad972=a698_0x30c3;'use strict';const util=require('util'),path=require(a698_0x4ad972(0x16b)),sox=require(a698_0x4ad972(0x15e)),fs=require('fs'),_=require('lodash'),qs=require(a698_0x4ad972(0x10e)),logger=require(a698_0x4ad972(0x162))(a698_0x4ad972(0x16f)),config=require(a698_0x4ad972(0x113)),{db}=require(a698_0x4ad972(0x127)),{Op,ValidationError}=require(a698_0x4ad972(0x13a));function respondWithResult(_0x18dbdc,_0x441126){return _0x441126=_0x441126||0xc8,function(_0x23a0e3){const _0x23b145=a698_0x30c3;if(_0x23a0e3)return _0x18dbdc[_0x23b145(0x13c)](_0x441126)[_0x23b145(0x14e)](_0x23a0e3);};}function respondWithFilteredResult(_0x3789ef,_0x94fbdb){return function(_0x429919){const _0x53eb1f=a698_0x30c3;if(_0x429919){const _0x1b3887=_0x429919[_0x53eb1f(0x16e)],_0x4916a6=_0x94fbdb[_0x53eb1f(0x155)];let _0x1b9594=_0x94fbdb[_0x53eb1f(0x155)]+_0x94fbdb[_0x53eb1f(0x123)],_0x3f84fd;return _0x1b9594>=_0x1b3887?(_0x1b9594=_0x1b3887,_0x3f84fd=0xc8):_0x3f84fd=0xce,_0x3789ef[_0x53eb1f(0x13c)](_0x3f84fd),_0x3789ef[_0x53eb1f(0x13d)](_0x53eb1f(0x138),_0x4916a6+'-'+_0x1b9594+'/'+_0x1b3887)[_0x53eb1f(0x14e)](_0x429919);}return null;};}function saveUpdates(_0x567b94){return function(_0x274421){const _0x4d0fe1=a698_0x30c3;if(_0x274421)return _0x274421['update'](_0x567b94)[_0x4d0fe1(0x16c)](function(_0x128fc6){return _0x128fc6;});return null;};}function handleEntityNotFound(_0x3e345e){return function(_0x4e76c8){const _0xeedcbb=a698_0x30c3;return!_0x4e76c8&&_0x3e345e[_0xeedcbb(0x14a)](0x194),_0x4e76c8;};}function handleError(_0x369867,_0x3367c6){return _0x3367c6=_0x3367c6||0x1f4,function(_0x1ad2bc){const _0x2d96a0=a698_0x30c3;logger['error'](_0x1ad2bc[_0x2d96a0(0x10d)]),_0x1ad2bc[_0x2d96a0(0x121)]&&delete _0x1ad2bc[_0x2d96a0(0x121)],_0x369867['status'](_0x3367c6)[_0x2d96a0(0x143)](_0x1ad2bc);};}exports[a698_0x4ad972(0x166)]=function(_0x4e83af,_0x36405a){const _0x18e65a=a698_0x4ad972;let _0x5f84fb={};const _0x48b391={},_0x23ed83={'count':0x0,'rows':[]},_0x400358=_[_0x18e65a(0x148)](db[_0x18e65a(0x117)][_0x18e65a(0x15d)],function(_0x31ead1){const _0x1878b8=_0x18e65a;return{'name':_0x31ead1[_0x1878b8(0x145)],'type':_0x31ead1[_0x1878b8(0x172)]['key']};});_0x48b391['model']=_[_0x18e65a(0x148)](_0x400358,'name'),_0x48b391[_0x18e65a(0x15f)]=_['keys'](_0x4e83af[_0x18e65a(0x15f)]),_0x48b391[_0x18e65a(0x118)]=_[_0x18e65a(0x12c)](_0x48b391[_0x18e65a(0x125)],_0x48b391['query']),_0x5f84fb[_0x18e65a(0x15c)]=_[_0x18e65a(0x12c)](_0x48b391[_0x18e65a(0x125)],qs[_0x18e65a(0x126)](_0x4e83af[_0x18e65a(0x15f)][_0x18e65a(0x126)])),_0x5f84fb[_0x18e65a(0x15c)]=_0x5f84fb['attributes'][_0x18e65a(0x112)]?_0x5f84fb[_0x18e65a(0x15c)]:_0x48b391[_0x18e65a(0x125)];typeof _0x4e83af[_0x18e65a(0x15f)][_0x18e65a(0x124)]==='undefined'&&(_0x5f84fb[_0x18e65a(0x123)]=qs[_0x18e65a(0x123)](_0x4e83af[_0x18e65a(0x15f)][_0x18e65a(0x123)]),_0x5f84fb['offset']=qs['offset'](_0x4e83af[_0x18e65a(0x15f)][_0x18e65a(0x155)]));_0x5f84fb[_0x18e65a(0x157)]=qs['sort'](_0x4e83af[_0x18e65a(0x15f)][_0x18e65a(0x13f)]),_0x5f84fb[_0x18e65a(0x140)]=qs['filters'](_[_0x18e65a(0x11b)](_0x4e83af['query'],_0x48b391[_0x18e65a(0x118)]),_0x400358);_0x4e83af[_0x18e65a(0x15f)][_0x18e65a(0x119)]&&(_0x5f84fb['where']=_[_0x18e65a(0x14d)](_0x5f84fb[_0x18e65a(0x140)],{[Op['or']]:_[_0x18e65a(0x148)](_0x400358,function(_0x280d87){const _0x508622=_0x18e65a;if(_0x280d87[_0x508622(0x172)]!==_0x508622(0x136)){const _0x305eb4={};return _0x305eb4[_0x280d87[_0x508622(0x121)]]={[Op[_0x508622(0x128)]]:'%'+_0x4e83af['query'][_0x508622(0x119)]+'%'},_0x305eb4;}})}));_0x5f84fb=_[_0x18e65a(0x14d)]({},_0x5f84fb,_0x4e83af[_0x18e65a(0x135)]);const _0x3dfb0a={'where':_0x5f84fb[_0x18e65a(0x140)]};return db[_0x18e65a(0x117)][_0x18e65a(0x16e)](_0x3dfb0a)[_0x18e65a(0x16c)](function(_0x1ebffe){const _0x317408=_0x18e65a;return _0x23ed83[_0x317408(0x16e)]=_0x1ebffe,_0x4e83af[_0x317408(0x15f)][_0x317408(0x154)]&&(_0x5f84fb[_0x317408(0x13b)]=[{'all':!![]}]),db['Sound'][_0x317408(0x142)](_0x5f84fb);})[_0x18e65a(0x16c)](function(_0x412690){const _0x4c10f4=_0x18e65a;return _0x23ed83[_0x4c10f4(0x110)]=_0x412690,_0x23ed83;})[_0x18e65a(0x16c)](respondWithFilteredResult(_0x36405a,_0x5f84fb))[_0x18e65a(0x15a)](handleError(_0x36405a,null));},exports[a698_0x4ad972(0x129)]=function(_0x4b58bc,_0x5d5181){const _0xfbfeba=a698_0x4ad972;let _0x2263ae={'raw':!![],'where':{'id':_0x4b58bc['params']['id']}};const _0x4835a6={};return _0x4835a6[_0xfbfeba(0x125)]=_[_0xfbfeba(0x167)](db[_0xfbfeba(0x117)][_0xfbfeba(0x15d)]),_0x4835a6[_0xfbfeba(0x15f)]=_[_0xfbfeba(0x167)](_0x4b58bc[_0xfbfeba(0x15f)]),_0x4835a6[_0xfbfeba(0x118)]=_[_0xfbfeba(0x12c)](_0x4835a6[_0xfbfeba(0x125)],_0x4835a6['query']),_0x2263ae[_0xfbfeba(0x15c)]=_[_0xfbfeba(0x12c)](_0x4835a6[_0xfbfeba(0x125)],qs['fields'](_0x4b58bc[_0xfbfeba(0x15f)][_0xfbfeba(0x126)])),_0x2263ae[_0xfbfeba(0x15c)]=_0x2263ae[_0xfbfeba(0x15c)]['length']?_0x2263ae['attributes']:_0x4835a6[_0xfbfeba(0x125)],_0x4b58bc[_0xfbfeba(0x15f)][_0xfbfeba(0x154)]&&(_0x2263ae['include']=[{'all':!![]}]),_0x2263ae=_[_0xfbfeba(0x14d)]({},_0x2263ae,_0x4b58bc[_0xfbfeba(0x135)]),db[_0xfbfeba(0x117)][_0xfbfeba(0x146)](_0x2263ae)[_0xfbfeba(0x16c)](handleEntityNotFound(_0x5d5181,null))[_0xfbfeba(0x16c)](respondWithResult(_0x5d5181,null))['catch'](handleError(_0x5d5181,null));},exports['download']=function(_0x2133be,_0x3d8c02){const _0x329818=a698_0x4ad972;return db[_0x329818(0x117)][_0x329818(0x146)]({'where':{'id':_0x2133be[_0x329818(0x111)]['id']},'attributes':[_0x329818(0x121),'save_name',_0x329818(0x156)],'raw':!![]})[_0x329818(0x16c)](handleEntityNotFound(_0x3d8c02,null))['then'](function(_0x4d29bb){const _0xc11f6b=_0x329818;if(_0x4d29bb){if(!fs[_0xc11f6b(0x114)](path[_0xc11f6b(0x158)](config[_0xc11f6b(0x147)],_0xc11f6b(0x14b),_0x4d29bb[_0xc11f6b(0x168)]+'.'+_0x4d29bb[_0xc11f6b(0x156)])))throw new ValidationError(_0xc11f6b(0x161));return _0x3d8c02[_0xc11f6b(0x149)](path[_0xc11f6b(0x158)](config[_0xc11f6b(0x147)],'server/files/sounds/converted',util[_0xc11f6b(0x16a)](_0xc11f6b(0x116),_0x4d29bb[_0xc11f6b(0x168)],_0x4d29bb[_0xc11f6b(0x156)])),util[_0xc11f6b(0x16a)]('%s.%s',_0x4d29bb[_0xc11f6b(0x121)],_0x4d29bb[_0xc11f6b(0x156)]));}return null;})[_0x329818(0x15a)](handleError(_0x3d8c02,null));},exports['create']=function(_0x1ab310,_0x27e034){const _0x4b0374=a698_0x4ad972,_0x4c5adf={'name':path[_0x4b0374(0x169)](_0x1ab310[_0x4b0374(0x133)][_0x4b0374(0x141)],path[_0x4b0374(0x11a)](_0x1ab310[_0x4b0374(0x133)][_0x4b0374(0x141)])),'save_name':path[_0x4b0374(0x169)](_0x1ab310[_0x4b0374(0x133)][_0x4b0374(0x131)],path[_0x4b0374(0x11a)](_0x1ab310[_0x4b0374(0x133)][_0x4b0374(0x131)])),'original_format':path[_0x4b0374(0x11a)](_0x1ab310[_0x4b0374(0x133)][_0x4b0374(0x141)])[_0x4b0374(0x150)](0x1),'converted_format':'wav'},_0x30c64e=path['join'](config['root'],_0x4b0374(0x160),_0x1ab310[_0x4b0374(0x133)][_0x4b0374(0x131)]),_0xad3a28=path['join'](config[_0x4b0374(0x147)],_0x4b0374(0x14b),util[_0x4b0374(0x16a)](_0x4b0374(0x116),path[_0x4b0374(0x169)](_0x1ab310['file'][_0x4b0374(0x131)],path[_0x4b0374(0x11a)](_0x1ab310[_0x4b0374(0x133)][_0x4b0374(0x131)])),_0x4c5adf[_0x4b0374(0x156)]));logger[_0x4b0374(0x134)]('Sound\x20upload\x20filepath:\x20%s',_0x30c64e),logger['info']('Sound\x20upload\x20destination:\x20%s',_0xad3a28);try{fs[_0x4b0374(0x165)](_0x30c64e,parseInt(_0x4b0374(0x14c),0x8));const _0x25e540=sox[_0x4b0374(0x12b)](_0x30c64e,_0xad3a28,{'sampleRate':0x1f40,'format':_0x4b0374(0x152),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x25e540['on'](_0x4b0374(0x174),function(_0x14e8d4){const _0x5c5143=_0x4b0374;fs[_0x5c5143(0x153)](_0x30c64e),_0x27e034['status'](0x1f4)[_0x5c5143(0x143)](_0x14e8d4);}),_0x25e540['on'](_0x4b0374(0x12e),function(_0x407999){const _0x2a285d=_0x4b0374;_0x4c5adf[_0x2a285d(0x11e)]=isNaN(_0x407999['duration'])?null:_0x407999[_0x2a285d(0x163)]*0x3e8,_0x4c5adf[_0x2a285d(0x144)]=isNaN(_0x407999[_0x2a285d(0x132)])?null:_0x407999[_0x2a285d(0x132)],_0x4c5adf[_0x2a285d(0x115)]=isNaN(_0x407999[_0x2a285d(0x120)])?null:_0x407999[_0x2a285d(0x120)],_0x4c5adf['original_bitRate']=isNaN(_0x407999[_0x2a285d(0x151)])?null:_0x407999[_0x2a285d(0x151)],_0x4c5adf[_0x2a285d(0x11f)]=isNaN(_0x407999[_0x2a285d(0x170)])?null:_0x407999[_0x2a285d(0x170)];}),_0x25e540['on'](_0x4b0374(0x122),function(_0x5f50b2){const _0x4d151c=_0x4b0374;_0x4c5adf[_0x4d151c(0x14f)]=isNaN(_0x5f50b2['duration'])?null:_0x5f50b2['duration']*0x3e8,_0x4c5adf[_0x4d151c(0x130)]=isNaN(_0x5f50b2[_0x4d151c(0x132)])?null:_0x5f50b2[_0x4d151c(0x132)],_0x4c5adf[_0x4d151c(0x171)]=isNaN(_0x5f50b2[_0x4d151c(0x120)])?null:_0x5f50b2[_0x4d151c(0x120)],_0x4c5adf[_0x4d151c(0x12d)]=isNaN(_0x5f50b2['bitRate'])?null:_0x5f50b2[_0x4d151c(0x151)],_0x4c5adf['converted_sampleRate']=isNaN(_0x5f50b2['sampleRate'])?null:_0x5f50b2[_0x4d151c(0x170)];}),_0x25e540['on'](_0x4b0374(0x11c),function(){const _0x7421e7=_0x4b0374;return fs['chmodSync'](_0xad3a28,parseInt(_0x7421e7(0x14c),0x8)),db[_0x7421e7(0x117)][_0x7421e7(0x10f)](_0x4c5adf)[_0x7421e7(0x16c)](function(_0x48c8a6){const _0x39556b=_0x7421e7,_0x26c9a3={'role':_0x1ab310[_0x39556b(0x139)][_0x39556b(0x12f)],'userProfileId':_0x1ab310[_0x39556b(0x139)]['userProfileId']};if(!_0x26c9a3)throw new Error(_0x39556b(0x16d));if(_0x26c9a3[_0x39556b(0x12f)]===_0x39556b(0x11d)){const _0x4522ec=_0x48c8a6[_0x39556b(0x164)]({'plain':!![]});return db[_0x39556b(0x137)][_0x39556b(0x146)]({'where':{'name':'Sounds','userProfileId':_0x26c9a3['userProfileId']},'raw':!![]})[_0x39556b(0x16c)](function(_0x53305d){const _0x39e635=_0x39556b;return _0x53305d&&_0x53305d[_0x39e635(0x13e)]===0x0?db[_0x39e635(0x159)][_0x39e635(0x10f)]({'name':_0x4522ec[_0x39e635(0x121)],'resourceId':_0x4522ec['id'],'type':_0x53305d[_0x39e635(0x121)],'sectionId':_0x53305d['id']},{})['then'](function(){return _0x48c8a6;}):_0x48c8a6;})[_0x39556b(0x15a)](function(_0x21cd19){const _0x45b50a=_0x39556b;logger[_0x45b50a(0x174)](_0x45b50a(0x12a),_0x21cd19);throw _0x21cd19;});}return _0x48c8a6;})['then'](respondWithResult(_0x27e034,null))[_0x7421e7(0x15a)](handleError(_0x27e034,null));}),_0x25e540['start']();}catch(_0x25d60f){_0x27e034['status'](0x1f4)[_0x4b0374(0x143)](_0x25d60f);}},exports[a698_0x4ad972(0x15b)]=function(_0x59ca8c,_0x3b8a7c){const _0x2cfd77=a698_0x4ad972;return db[_0x2cfd77(0x117)][_0x2cfd77(0x146)]({'where':{'id':_0x59ca8c[_0x2cfd77(0x111)]['id']}})[_0x2cfd77(0x16c)](handleEntityNotFound(_0x3b8a7c,null))['then'](saveUpdates(_[_0x2cfd77(0x11b)](_0x59ca8c[_0x2cfd77(0x139)],['name','description']),null))['then'](respondWithResult(_0x3b8a7c,null))[_0x2cfd77(0x15a)](handleError(_0x3b8a7c,null));},exports['delete']=function(_0x58f8a0,_0x26168c){const _0x333b8a=a698_0x4ad972;return db[_0x333b8a(0x117)][_0x333b8a(0x146)]({'where':{'id':_0x58f8a0[_0x333b8a(0x111)]['id']}})[_0x333b8a(0x16c)](function(_0x10a647){const _0xa757b5=_0x333b8a;if(_0x10a647)return _0x10a647[_0xa757b5(0x173)]();})[_0x333b8a(0x16c)](function(_0x357aef){const _0x413502=_0x333b8a,_0x8fbab2=path['join'](config['root'],_0x413502(0x160),util[_0x413502(0x16a)]('%s.%s',_0x357aef[_0x413502(0x168)],_0x357aef['original_format'])),_0x27545c=path[_0x413502(0x158)](config[_0x413502(0x147)],'server/files/sounds/converted',util[_0x413502(0x16a)](_0x413502(0x116),_0x357aef[_0x413502(0x168)],_0x357aef[_0x413502(0x156)]));return fs['unlinkSync'](_0x8fbab2),fs[_0x413502(0x153)](_0x27545c),_0x357aef;})[_0x333b8a(0x16c)](function(_0x2f6f1d){const _0x155a60=_0x333b8a;if(_0x2f6f1d)return _0x26168c['status'](0xcc)[_0x155a60(0x11c)]();})[_0x333b8a(0x16c)](handleEntityNotFound(_0x26168c,null))[_0x333b8a(0x15a)](handleError(_0x26168c,null));}; \ No newline at end of file +const a698_0x5c6d=['download','error','converted_bitRate','../../components/parsers/qs','join','original_bitRate','count','original_sampleRate','lodash','original_format','length','offset','intersection','catch','name','key','map','like','autoAssociation','sequelize','keys','dest','userProfileId','api','server/files/sounds/converted','undefined','sampleRate','converted_sampleCount','get','index','sox','UserProfileResource','then','end','original_duration','limit','options','json','src','status','channelCount','where','type','Sound','transcode','sendStatus','path','pick','original_channelCount','delete','filters','Sound\x20not\x20found','unlinkSync','util','extname','../../config/environment','Sounds','create','findOne','converted_channelCount','info','findAll','originalname','VIRTUAL','fields','params','merge','sort','converted_format','root','description','Sound\x20upload\x20filepath:\x20%s','order','chmodSync','file','update','filter','%s.%s','0777','role','basename','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','../../mysqldb','duration','format','set','bitRate','server/files/sounds/original','body','user','save_name','include','../../config/logger','rawAttributes','send','wav','sampleCount','start','existsSync','destroy','original_sampleCount','attributes','model','Sound\x20upload\x20destination:\x20%s','filename','query'];(function(_0x385fd0,_0x1e41f4){const _0x5c6dfb=function(_0x54acba){while(--_0x54acba){_0x385fd0['push'](_0x385fd0['shift']());}};_0x5c6dfb(++_0x1e41f4);}(a698_0x5c6d,0x168));const a698_0x54ac=function(_0x385fd0,_0x1e41f4){_0x385fd0=_0x385fd0-0x1e5;let _0x5c6dfb=a698_0x5c6d[_0x385fd0];return _0x5c6dfb;};const a698_0x25c538=a698_0x54ac;'use strict';const util=require(a698_0x25c538(0x1f0)),path=require(a698_0x25c538(0x1e9)),sox=require(a698_0x25c538(0x243)),fs=require('fs'),_=require(a698_0x25c538(0x22d)),qs=require(a698_0x25c538(0x228)),logger=require(a698_0x25c538(0x217))(a698_0x25c538(0x23c)),config=require(a698_0x25c538(0x1f2)),{db}=require(a698_0x25c538(0x20d)),{Op,ValidationError}=require(a698_0x25c538(0x238));function respondWithResult(_0x2c7417,_0x496f8c){return _0x496f8c=_0x496f8c||0xc8,function(_0x353e41){const _0x3e8e6d=a698_0x54ac;if(_0x353e41)return _0x2c7417[_0x3e8e6d(0x24c)](_0x496f8c)[_0x3e8e6d(0x24a)](_0x353e41);};}function respondWithFilteredResult(_0x39e233,_0x2db696){return function(_0x1f9d4f){const _0x48b59c=a698_0x54ac;if(_0x1f9d4f){const _0x1531b0=_0x1f9d4f[_0x48b59c(0x22b)],_0x78d25a=_0x2db696[_0x48b59c(0x230)];let _0xb74b85=_0x2db696['offset']+_0x2db696[_0x48b59c(0x248)],_0x39eed1;return _0xb74b85>=_0x1531b0?(_0xb74b85=_0x1531b0,_0x39eed1=0xc8):_0x39eed1=0xce,_0x39e233[_0x48b59c(0x24c)](_0x39eed1),_0x39e233[_0x48b59c(0x210)]('Content-Range',_0x78d25a+'-'+_0xb74b85+'/'+_0x1531b0)[_0x48b59c(0x24a)](_0x1f9d4f);}return null;};}function saveUpdates(_0x445e23){return function(_0xfe773d){const _0x1e7365=a698_0x54ac;if(_0xfe773d)return _0xfe773d[_0x1e7365(0x206)](_0x445e23)[_0x1e7365(0x245)](function(_0x58fd7e){return _0x58fd7e;});return null;};}function handleEntityNotFound(_0x4785d0){return function(_0x47d402){const _0x1bbc32=a698_0x54ac;return!_0x47d402&&_0x4785d0[_0x1bbc32(0x1e8)](0x194),_0x47d402;};}function handleError(_0x41011c,_0x3fa979){return _0x3fa979=_0x3fa979||0x1f4,function(_0x3431c2){const _0x25cdd2=a698_0x54ac;logger[_0x25cdd2(0x226)](_0x3431c2['stack']),_0x3431c2[_0x25cdd2(0x233)]&&delete _0x3431c2[_0x25cdd2(0x233)],_0x41011c[_0x25cdd2(0x24c)](_0x3fa979)[_0x25cdd2(0x219)](_0x3431c2);};}exports[a698_0x25c538(0x242)]=function(_0x58fbb3,_0x1b2b43){const _0x5b7576=a698_0x25c538;let _0x38485a={};const _0x3cfd0d={},_0x10bb4c={'count':0x0,'rows':[]},_0x30ba45=_[_0x5b7576(0x235)](db[_0x5b7576(0x1e6)][_0x5b7576(0x218)],function(_0x47537d){const _0x310957=_0x5b7576;return{'name':_0x47537d['fieldName'],'type':_0x47537d[_0x310957(0x1e5)][_0x310957(0x234)]};});_0x3cfd0d['model']=_[_0x5b7576(0x235)](_0x30ba45,_0x5b7576(0x233)),_0x3cfd0d['query']=_[_0x5b7576(0x239)](_0x58fbb3[_0x5b7576(0x224)]),_0x3cfd0d[_0x5b7576(0x1ed)]=_[_0x5b7576(0x231)](_0x3cfd0d[_0x5b7576(0x221)],_0x3cfd0d['query']),_0x38485a[_0x5b7576(0x220)]=_[_0x5b7576(0x231)](_0x3cfd0d[_0x5b7576(0x221)],qs['fields'](_0x58fbb3[_0x5b7576(0x224)][_0x5b7576(0x1fb)])),_0x38485a['attributes']=_0x38485a[_0x5b7576(0x220)][_0x5b7576(0x22f)]?_0x38485a[_0x5b7576(0x220)]:_0x3cfd0d[_0x5b7576(0x221)];typeof _0x58fbb3[_0x5b7576(0x224)]['nolimit']===_0x5b7576(0x23e)&&(_0x38485a[_0x5b7576(0x248)]=qs[_0x5b7576(0x248)](_0x58fbb3['query'][_0x5b7576(0x248)]),_0x38485a['offset']=qs[_0x5b7576(0x230)](_0x58fbb3[_0x5b7576(0x224)][_0x5b7576(0x230)]));_0x38485a[_0x5b7576(0x203)]=qs[_0x5b7576(0x1fe)](_0x58fbb3[_0x5b7576(0x224)][_0x5b7576(0x1fe)]),_0x38485a[_0x5b7576(0x24e)]=qs['filters'](_[_0x5b7576(0x1ea)](_0x58fbb3[_0x5b7576(0x224)],_0x3cfd0d[_0x5b7576(0x1ed)]),_0x30ba45);_0x58fbb3['query'][_0x5b7576(0x207)]&&(_0x38485a[_0x5b7576(0x24e)]=_[_0x5b7576(0x1fd)](_0x38485a['where'],{[Op['or']]:_[_0x5b7576(0x235)](_0x30ba45,function(_0x1a5b13){const _0x3d8fd4=_0x5b7576;if(_0x1a5b13['type']!==_0x3d8fd4(0x1fa)){const _0xe39954={};return _0xe39954[_0x1a5b13[_0x3d8fd4(0x233)]]={[Op[_0x3d8fd4(0x236)]]:'%'+_0x58fbb3[_0x3d8fd4(0x224)][_0x3d8fd4(0x207)]+'%'},_0xe39954;}})}));_0x38485a=_[_0x5b7576(0x1fd)]({},_0x38485a,_0x58fbb3[_0x5b7576(0x249)]);const _0x396024={'where':_0x38485a[_0x5b7576(0x24e)]};return db[_0x5b7576(0x1e6)]['count'](_0x396024)[_0x5b7576(0x245)](function(_0x1ca090){const _0x77b9be=_0x5b7576;return _0x10bb4c['count']=_0x1ca090,_0x58fbb3[_0x77b9be(0x224)]['includeAll']&&(_0x38485a[_0x77b9be(0x216)]=[{'all':!![]}]),db[_0x77b9be(0x1e6)][_0x77b9be(0x1f8)](_0x38485a);})[_0x5b7576(0x245)](function(_0x3b8fd2){return _0x10bb4c['rows']=_0x3b8fd2,_0x10bb4c;})[_0x5b7576(0x245)](respondWithFilteredResult(_0x1b2b43,_0x38485a))[_0x5b7576(0x232)](handleError(_0x1b2b43,null));},exports['show']=function(_0x4300d1,_0x458e05){const _0x25c6c1=a698_0x25c538;let _0x44c4eb={'raw':!![],'where':{'id':_0x4300d1[_0x25c6c1(0x1fc)]['id']}};const _0x40ebe4={};return _0x40ebe4[_0x25c6c1(0x221)]=_[_0x25c6c1(0x239)](db[_0x25c6c1(0x1e6)][_0x25c6c1(0x218)]),_0x40ebe4['query']=_[_0x25c6c1(0x239)](_0x4300d1[_0x25c6c1(0x224)]),_0x40ebe4['filters']=_[_0x25c6c1(0x231)](_0x40ebe4[_0x25c6c1(0x221)],_0x40ebe4[_0x25c6c1(0x224)]),_0x44c4eb[_0x25c6c1(0x220)]=_[_0x25c6c1(0x231)](_0x40ebe4['model'],qs[_0x25c6c1(0x1fb)](_0x4300d1['query']['fields'])),_0x44c4eb[_0x25c6c1(0x220)]=_0x44c4eb[_0x25c6c1(0x220)][_0x25c6c1(0x22f)]?_0x44c4eb['attributes']:_0x40ebe4[_0x25c6c1(0x221)],_0x4300d1[_0x25c6c1(0x224)]['includeAll']&&(_0x44c4eb[_0x25c6c1(0x216)]=[{'all':!![]}]),_0x44c4eb=_[_0x25c6c1(0x1fd)]({},_0x44c4eb,_0x4300d1[_0x25c6c1(0x249)]),db['Sound'][_0x25c6c1(0x1f5)](_0x44c4eb)[_0x25c6c1(0x245)](handleEntityNotFound(_0x458e05,null))[_0x25c6c1(0x245)](respondWithResult(_0x458e05,null))[_0x25c6c1(0x232)](handleError(_0x458e05,null));},exports[a698_0x25c538(0x225)]=function(_0x10d455,_0x17480b){const _0x481509=a698_0x25c538;return db[_0x481509(0x1e6)][_0x481509(0x1f5)]({'where':{'id':_0x10d455['params']['id']},'attributes':[_0x481509(0x233),_0x481509(0x215),_0x481509(0x1ff)],'raw':!![]})[_0x481509(0x245)](handleEntityNotFound(_0x17480b,null))[_0x481509(0x245)](function(_0x298bfc){const _0x469d84=_0x481509;if(_0x298bfc){if(!fs[_0x469d84(0x21d)](path['join'](config[_0x469d84(0x200)],_0x469d84(0x23d),_0x298bfc[_0x469d84(0x215)]+'.'+_0x298bfc[_0x469d84(0x1ff)])))throw new ValidationError(_0x469d84(0x1ee));return _0x17480b[_0x469d84(0x225)](path['join'](config[_0x469d84(0x200)],'server/files/sounds/converted',util[_0x469d84(0x20f)]('%s.%s',_0x298bfc[_0x469d84(0x215)],_0x298bfc[_0x469d84(0x1ff)])),util[_0x469d84(0x20f)]('%s.%s',_0x298bfc[_0x469d84(0x233)],_0x298bfc['converted_format']));}return null;})[_0x481509(0x232)](handleError(_0x17480b,null));},exports[a698_0x25c538(0x1f4)]=function(_0x13e21f,_0x30e452){const _0xc505f=a698_0x25c538,_0x39357e={'name':path[_0xc505f(0x20b)](_0x13e21f[_0xc505f(0x205)]['originalname'],path[_0xc505f(0x1f1)](_0x13e21f[_0xc505f(0x205)][_0xc505f(0x1f9)])),'save_name':path[_0xc505f(0x20b)](_0x13e21f[_0xc505f(0x205)][_0xc505f(0x223)],path[_0xc505f(0x1f1)](_0x13e21f['file']['filename'])),'original_format':path[_0xc505f(0x1f1)](_0x13e21f[_0xc505f(0x205)][_0xc505f(0x1f9)])['substring'](0x1),'converted_format':_0xc505f(0x21a)},_0x45b2b1=path[_0xc505f(0x229)](config['root'],_0xc505f(0x212),_0x13e21f[_0xc505f(0x205)][_0xc505f(0x223)]),_0x35958c=path[_0xc505f(0x229)](config['root'],_0xc505f(0x23d),util[_0xc505f(0x20f)](_0xc505f(0x208),path[_0xc505f(0x20b)](_0x13e21f[_0xc505f(0x205)][_0xc505f(0x223)],path['extname'](_0x13e21f[_0xc505f(0x205)][_0xc505f(0x223)])),_0x39357e[_0xc505f(0x1ff)]));logger[_0xc505f(0x1f7)](_0xc505f(0x202),_0x45b2b1),logger['info'](_0xc505f(0x222),_0x35958c);try{fs[_0xc505f(0x204)](_0x45b2b1,parseInt(_0xc505f(0x209),0x8));const _0x512757=sox[_0xc505f(0x1e7)](_0x45b2b1,_0x35958c,{'sampleRate':0x1f40,'format':_0xc505f(0x21a),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x512757['on'](_0xc505f(0x226),function(_0xb5a118){const _0x46688f=_0xc505f;fs[_0x46688f(0x1ef)](_0x45b2b1),_0x30e452[_0x46688f(0x24c)](0x1f4)['send'](_0xb5a118);}),_0x512757['on'](_0xc505f(0x24b),function(_0x437b1e){const _0x997bd5=_0xc505f;_0x39357e[_0x997bd5(0x247)]=isNaN(_0x437b1e[_0x997bd5(0x20e)])?null:_0x437b1e[_0x997bd5(0x20e)]*0x3e8,_0x39357e[_0x997bd5(0x21f)]=isNaN(_0x437b1e[_0x997bd5(0x21b)])?null:_0x437b1e[_0x997bd5(0x21b)],_0x39357e[_0x997bd5(0x1eb)]=isNaN(_0x437b1e[_0x997bd5(0x24d)])?null:_0x437b1e[_0x997bd5(0x24d)],_0x39357e[_0x997bd5(0x22a)]=isNaN(_0x437b1e[_0x997bd5(0x211)])?null:_0x437b1e['bitRate'],_0x39357e[_0x997bd5(0x22c)]=isNaN(_0x437b1e['sampleRate'])?null:_0x437b1e['sampleRate'];}),_0x512757['on'](_0xc505f(0x23a),function(_0x55c004){const _0x1a4fda=_0xc505f;_0x39357e['converted_duration']=isNaN(_0x55c004[_0x1a4fda(0x20e)])?null:_0x55c004[_0x1a4fda(0x20e)]*0x3e8,_0x39357e[_0x1a4fda(0x240)]=isNaN(_0x55c004[_0x1a4fda(0x21b)])?null:_0x55c004[_0x1a4fda(0x21b)],_0x39357e[_0x1a4fda(0x1f6)]=isNaN(_0x55c004[_0x1a4fda(0x24d)])?null:_0x55c004['channelCount'],_0x39357e[_0x1a4fda(0x227)]=isNaN(_0x55c004['bitRate'])?null:_0x55c004[_0x1a4fda(0x211)],_0x39357e['converted_sampleRate']=isNaN(_0x55c004[_0x1a4fda(0x23f)])?null:_0x55c004[_0x1a4fda(0x23f)];}),_0x512757['on'](_0xc505f(0x246),function(){const _0x31acc5=_0xc505f;return fs[_0x31acc5(0x204)](_0x35958c,parseInt('0777',0x8)),db['Sound']['create'](_0x39357e)['then'](function(_0x3e9fec){const _0x2bd1e1=_0x31acc5,_0x4ea64c={'role':_0x13e21f[_0x2bd1e1(0x213)][_0x2bd1e1(0x20a)],'userProfileId':_0x13e21f[_0x2bd1e1(0x213)][_0x2bd1e1(0x23b)]};if(!_0x4ea64c)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x4ea64c['role']===_0x2bd1e1(0x214)){const _0x5bdbf9=_0x3e9fec[_0x2bd1e1(0x241)]({'plain':!![]});return db['UserProfileSection']['findOne']({'where':{'name':_0x2bd1e1(0x1f3),'userProfileId':_0x4ea64c[_0x2bd1e1(0x23b)]},'raw':!![]})[_0x2bd1e1(0x245)](function(_0x365e4d){const _0x2a4066=_0x2bd1e1;return _0x365e4d&&_0x365e4d[_0x2a4066(0x237)]===0x0?db[_0x2a4066(0x244)]['create']({'name':_0x5bdbf9[_0x2a4066(0x233)],'resourceId':_0x5bdbf9['id'],'type':_0x365e4d[_0x2a4066(0x233)],'sectionId':_0x365e4d['id']},{})['then'](function(){return _0x3e9fec;}):_0x3e9fec;})[_0x2bd1e1(0x232)](function(_0x39c27f){const _0x17805d=_0x2bd1e1;logger[_0x17805d(0x226)](_0x17805d(0x20c),_0x39c27f);throw _0x39c27f;});}return _0x3e9fec;})[_0x31acc5(0x245)](respondWithResult(_0x30e452,null))[_0x31acc5(0x232)](handleError(_0x30e452,null));}),_0x512757[_0xc505f(0x21c)]();}catch(_0x377eff){_0x30e452[_0xc505f(0x24c)](0x1f4)[_0xc505f(0x219)](_0x377eff);}},exports[a698_0x25c538(0x206)]=function(_0x517a27,_0x2474e2){const _0x32f59d=a698_0x25c538;return db[_0x32f59d(0x1e6)][_0x32f59d(0x1f5)]({'where':{'id':_0x517a27['params']['id']}})[_0x32f59d(0x245)](handleEntityNotFound(_0x2474e2,null))[_0x32f59d(0x245)](saveUpdates(_['pick'](_0x517a27[_0x32f59d(0x213)],[_0x32f59d(0x233),_0x32f59d(0x201)]),null))[_0x32f59d(0x245)](respondWithResult(_0x2474e2,null))[_0x32f59d(0x232)](handleError(_0x2474e2,null));},exports[a698_0x25c538(0x1ec)]=function(_0x241107,_0x1c70d5){const _0x56a68b=a698_0x25c538;return db[_0x56a68b(0x1e6)][_0x56a68b(0x1f5)]({'where':{'id':_0x241107[_0x56a68b(0x1fc)]['id']}})['then'](function(_0x23441a){const _0x594570=_0x56a68b;if(_0x23441a)return _0x23441a[_0x594570(0x21e)]();})[_0x56a68b(0x245)](function(_0x5ad8ee){const _0x3fe1dc=_0x56a68b,_0x5d686a=path[_0x3fe1dc(0x229)](config[_0x3fe1dc(0x200)],_0x3fe1dc(0x212),util[_0x3fe1dc(0x20f)](_0x3fe1dc(0x208),_0x5ad8ee['save_name'],_0x5ad8ee[_0x3fe1dc(0x22e)])),_0x44e9cf=path[_0x3fe1dc(0x229)](config[_0x3fe1dc(0x200)],_0x3fe1dc(0x23d),util[_0x3fe1dc(0x20f)](_0x3fe1dc(0x208),_0x5ad8ee['save_name'],_0x5ad8ee[_0x3fe1dc(0x1ff)]));return fs[_0x3fe1dc(0x1ef)](_0x5d686a),fs[_0x3fe1dc(0x1ef)](_0x44e9cf),_0x5ad8ee;})[_0x56a68b(0x245)](function(_0x488e7e){const _0x41de64=_0x56a68b;if(_0x488e7e)return _0x1c70d5[_0x41de64(0x24c)](0xcc)[_0x41de64(0x246)]();})['then'](handleEntityNotFound(_0x1c70d5,null))[_0x56a68b(0x232)](handleError(_0x1c70d5,null));}; \ No newline at end of file diff --git a/server/api/sound/sound.model.js b/server/api/sound/sound.model.js index f120149..baa45db 100644 --- a/server/api/sound/sound.model.js +++ b/server/api/sound/sound.model.js @@ -1 +1 @@ -const a699_0x34e9=['function','./sound.attributes','sequelize','init','exports','Sound'];(function(_0x4c7790,_0x3548e1){const _0x34e9ca=function(_0x21afa3){while(--_0x21afa3){_0x4c7790['push'](_0x4c7790['shift']());}};_0x34e9ca(++_0x3548e1);}(a699_0x34e9,0xf9));const a699_0x21af=function(_0x4c7790,_0x3548e1){_0x4c7790=_0x4c7790-0x78;let _0x34e9ca=a699_0x34e9[_0x4c7790];return _0x34e9ca;};const a699_0x10efde=a699_0x21af;'use strict';const {Model}=require(a699_0x10efde(0x7d)),{attributes}=require(a699_0x10efde(0x7c)),{options}=require('./sound.options');class Sound extends Model{}function init(_0x273fcb,_0x5e57d5){const _0x5a8818=a699_0x10efde,_0x143832=options(_0x273fcb),_0x5cc3c9=typeof _0x5e57d5===_0x5a8818(0x7b)?_0x5e57d5(_0x143832):_0x143832;return Sound[_0x5a8818(0x78)](attributes,_0x5cc3c9),Sound;}module[a699_0x10efde(0x79)][a699_0x10efde(0x7a)]=Sound,module[a699_0x10efde(0x79)][a699_0x10efde(0x78)]=init; \ No newline at end of file +const a699_0x1665=['./sound.options','Sound','init','sequelize','exports','./sound.attributes'];(function(_0x38db9a,_0x488667){const _0x166536=function(_0x7583e4){while(--_0x7583e4){_0x38db9a['push'](_0x38db9a['shift']());}};_0x166536(++_0x488667);}(a699_0x1665,0x106));const a699_0x7583=function(_0x38db9a,_0x488667){_0x38db9a=_0x38db9a-0x111;let _0x166536=a699_0x1665[_0x38db9a];return _0x166536;};const a699_0x23d7ad=a699_0x7583;'use strict';const {Model}=require(a699_0x23d7ad(0x116)),{attributes}=require(a699_0x23d7ad(0x112)),{options}=require(a699_0x23d7ad(0x113));class Sound extends Model{}function init(_0x30875d,_0x3deb0){const _0x41186=a699_0x23d7ad,_0x4fd412=options(_0x30875d),_0x59664f=typeof _0x3deb0==='function'?_0x3deb0(_0x4fd412):_0x4fd412;return Sound[_0x41186(0x115)](attributes,_0x59664f),Sound;}module['exports'][a699_0x23d7ad(0x114)]=Sound,module[a699_0x23d7ad(0x111)][a699_0x23d7ad(0x115)]=init; \ No newline at end of file diff --git a/server/api/sound/sound.options.js b/server/api/sound/sound.options.js index 1a3db15..aab131e 100644 --- a/server/api/sound/sound.options.js +++ b/server/api/sound/sound.options.js @@ -1 +1 @@ -var a700_0x505f=['tools_sounds','options','exports'];(function(_0x3a41d9,_0x173cc9){var _0x505f3d=function(_0x24fa8b){while(--_0x24fa8b){_0x3a41d9['push'](_0x3a41d9['shift']());}};_0x505f3d(++_0x173cc9);}(a700_0x505f,0x156));var a700_0x24fa=function(_0x3a41d9,_0x173cc9){_0x3a41d9=_0x3a41d9-0x167;var _0x505f3d=a700_0x505f[_0x3a41d9];return _0x505f3d;};var a700_0x279d98=a700_0x24fa;function options(_0x4dde24){var _0x1a48f5=a700_0x24fa;return{'sequelize':_0x4dde24,'tableName':_0x1a48f5(0x167),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a700_0x279d98(0x169)][a700_0x279d98(0x168)]=options; \ No newline at end of file +var a700_0xb6d9=['tools_sounds','options'];(function(_0x3ddd36,_0x22b48e){var _0xb6d958=function(_0xec627f){while(--_0xec627f){_0x3ddd36['push'](_0x3ddd36['shift']());}};_0xb6d958(++_0x22b48e);}(a700_0xb6d9,0x1db));var a700_0xec62=function(_0x3ddd36,_0x22b48e){_0x3ddd36=_0x3ddd36-0x80;var _0xb6d958=a700_0xb6d9[_0x3ddd36];return _0xb6d958;};var a700_0x2ae550=a700_0xec62;function options(_0x2a919c){var _0x518576=a700_0xec62;return{'sequelize':_0x2a919c,'tableName':_0x518576(0x81),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a700_0x2ae550(0x80)]=options; \ No newline at end of file diff --git a/server/api/sound/sound.rpc.js b/server/api/sound/sound.rpc.js index dbc37c6..92b49f6 100644 --- a/server/api/sound/sound.rpc.js +++ b/server/api/sound/sound.rpc.js @@ -1 +1 @@ -const a701_0x2e58=['model','../../config/logger','attributes','include','map','lodash','where','debug','Sound','stringify','raw','info','../../mysqldb','options','then','message','ShowSound','catch','findOne','rpc','error'];(function(_0x39d3f6,_0x4d3083){const _0x2e589e=function(_0xa0b963){while(--_0xa0b963){_0x39d3f6['push'](_0x39d3f6['shift']());}};_0x2e589e(++_0x4d3083);}(a701_0x2e58,0x93));const a701_0xa0b9=function(_0x39d3f6,_0x4d3083){_0x39d3f6=_0x39d3f6-0x13f;let _0x2e589e=a701_0x2e58[_0x39d3f6];return _0x2e589e;};const a701_0x30d1e3=a701_0xa0b9;'use strict';const db=require(a701_0x30d1e3(0x14b))['db'],logger=require(a701_0x30d1e3(0x140))(a701_0x30d1e3(0x152)),_=require(a701_0x30d1e3(0x144));exports[a701_0x30d1e3(0x14f)]=function(_0x3b94ad){const _0x5cb26c=this;return new Promise(function(_0xb788cf,_0x1108bc){const _0x3fdda4=a701_0xa0b9;return db[_0x3fdda4(0x147)][_0x3fdda4(0x151)]({'raw':_0x3b94ad[_0x3fdda4(0x14c)]?_0x3b94ad[_0x3fdda4(0x14c)][_0x3fdda4(0x149)]===undefined?!![]:![]:!![],'where':_0x3b94ad['options']?_0x3b94ad[_0x3fdda4(0x14c)][_0x3fdda4(0x145)]||null:null,'attributes':_0x3b94ad[_0x3fdda4(0x14c)]?_0x3b94ad[_0x3fdda4(0x14c)][_0x3fdda4(0x141)]||null:null,'include':_0x3b94ad[_0x3fdda4(0x14c)]?_0x3b94ad[_0x3fdda4(0x14c)][_0x3fdda4(0x142)]?_[_0x3fdda4(0x143)](_0x3b94ad[_0x3fdda4(0x14c)][_0x3fdda4(0x142)],function(_0x43c1c7){const _0x1be62e=_0x3fdda4;return{'model':db[_0x43c1c7['model']],'as':_0x43c1c7['as'],'attributes':_0x43c1c7[_0x1be62e(0x141)],'include':_0x43c1c7[_0x1be62e(0x142)]?_[_0x1be62e(0x143)](_0x43c1c7[_0x1be62e(0x142)],function(_0x5cb112){const _0x55d1da=_0x1be62e;return{'model':db[_0x5cb112[_0x55d1da(0x13f)]],'as':_0x5cb112['as'],'attributes':_0x5cb112[_0x55d1da(0x141)],'include':_0x5cb112[_0x55d1da(0x142)]?_[_0x55d1da(0x143)](_0x5cb112[_0x55d1da(0x142)],function(_0x3acf72){const _0x3927f0=_0x55d1da;return{'model':db[_0x3acf72['model']],'as':_0x3acf72['as'],'attributes':_0x3acf72[_0x3927f0(0x141)]};}):[]};}):[]};}):[]:[]})[_0x3fdda4(0x14d)](function(_0x4f951b){const _0x44f6a0=_0x3fdda4;logger[_0x44f6a0(0x14a)](_0x44f6a0(0x14f),_0x3b94ad),logger[_0x44f6a0(0x146)](_0x44f6a0(0x14f),_0x3b94ad,JSON[_0x44f6a0(0x148)](_0x4f951b)),_0xb788cf(_0x4f951b);})[_0x3fdda4(0x150)](function(_0x3f8019){const _0x2fc42f=_0x3fdda4;logger[_0x2fc42f(0x153)](_0x2fc42f(0x14f),_0x3f8019['message'],_0x3b94ad),_0x1108bc(_0x5cb26c[_0x2fc42f(0x153)](0x1f4,_0x3f8019[_0x2fc42f(0x14e)]));});});}; \ No newline at end of file +const a701_0x372b=['then','attributes','error','lodash','map','model','../../config/logger','where','raw','findOne','include','options','../../mysqldb','ShowSound','info','debug','message'];(function(_0x3a91b9,_0x11d2eb){const _0x372b81=function(_0x59ea07){while(--_0x59ea07){_0x3a91b9['push'](_0x3a91b9['shift']());}};_0x372b81(++_0x11d2eb);}(a701_0x372b,0x1e5));const a701_0x59ea=function(_0x3a91b9,_0x11d2eb){_0x3a91b9=_0x3a91b9-0x9b;let _0x372b81=a701_0x372b[_0x3a91b9];return _0x372b81;};const a701_0x1fad64=a701_0x59ea;'use strict';const db=require(a701_0x1fad64(0x9e))['db'],logger=require(a701_0x1fad64(0xa9))('rpc'),_=require(a701_0x1fad64(0xa6));exports[a701_0x1fad64(0x9f)]=function(_0x2aa4e7){const _0x4820f9=this;return new Promise(function(_0x377225,_0x2fc4a4){const _0x67cea9=a701_0x59ea;return db['Sound'][_0x67cea9(0x9b)]({'raw':_0x2aa4e7['options']?_0x2aa4e7[_0x67cea9(0x9d)][_0x67cea9(0xab)]===undefined?!![]:![]:!![],'where':_0x2aa4e7['options']?_0x2aa4e7['options'][_0x67cea9(0xaa)]||null:null,'attributes':_0x2aa4e7['options']?_0x2aa4e7[_0x67cea9(0x9d)][_0x67cea9(0xa4)]||null:null,'include':_0x2aa4e7[_0x67cea9(0x9d)]?_0x2aa4e7['options'][_0x67cea9(0x9c)]?_[_0x67cea9(0xa7)](_0x2aa4e7[_0x67cea9(0x9d)][_0x67cea9(0x9c)],function(_0x36474d){const _0x4f11f1=_0x67cea9;return{'model':db[_0x36474d[_0x4f11f1(0xa8)]],'as':_0x36474d['as'],'attributes':_0x36474d[_0x4f11f1(0xa4)],'include':_0x36474d[_0x4f11f1(0x9c)]?_[_0x4f11f1(0xa7)](_0x36474d[_0x4f11f1(0x9c)],function(_0x14977d){const _0x40bf0d=_0x4f11f1;return{'model':db[_0x14977d[_0x40bf0d(0xa8)]],'as':_0x14977d['as'],'attributes':_0x14977d[_0x40bf0d(0xa4)],'include':_0x14977d[_0x40bf0d(0x9c)]?_[_0x40bf0d(0xa7)](_0x14977d['include'],function(_0xe2e773){const _0xe86e27=_0x40bf0d;return{'model':db[_0xe2e773[_0xe86e27(0xa8)]],'as':_0xe2e773['as'],'attributes':_0xe2e773[_0xe86e27(0xa4)]};}):[]};}):[]};}):[]:[]})[_0x67cea9(0xa3)](function(_0x5cf934){const _0x1e604d=_0x67cea9;logger[_0x1e604d(0xa0)](_0x1e604d(0x9f),_0x2aa4e7),logger[_0x1e604d(0xa1)](_0x1e604d(0x9f),_0x2aa4e7,JSON['stringify'](_0x5cf934)),_0x377225(_0x5cf934);})['catch'](function(_0x44971d){const _0xeca168=_0x67cea9;logger[_0xeca168(0xa5)]('ShowSound',_0x44971d[_0xeca168(0xa2)],_0x2aa4e7),_0x2fc4a4(_0x4820f9[_0xeca168(0xa5)](0x1f4,_0x44971d[_0xeca168(0xa2)]));});});}; \ No newline at end of file diff --git a/server/api/squareMessage/index.js b/server/api/squareMessage/index.js index df25370..9689363 100644 --- a/server/api/squareMessage/index.js +++ b/server/api/squareMessage/index.js @@ -1 +1 @@ -const a702_0x2ed1=['isAuthenticated','Router','express','get','exports','post','/:id','./squareMessage.controller','destroy','create','put','show','../../components/auth/service'];(function(_0x13973d,_0x2b0dd7){const _0x2ed1fa=function(_0xbda1c8){while(--_0xbda1c8){_0x13973d['push'](_0x13973d['shift']());}};_0x2ed1fa(++_0x2b0dd7);}(a702_0x2ed1,0xa1));const a702_0xbda1=function(_0x13973d,_0x2b0dd7){_0x13973d=_0x13973d-0x160;let _0x2ed1fa=a702_0x2ed1[_0x13973d];return _0x2ed1fa;};const a702_0x25ce4d=a702_0xbda1;'use strict';const express=require(a702_0x25ce4d(0x16a)),router=express[a702_0x25ce4d(0x169)](),auth=require(a702_0x25ce4d(0x167)),controller=require(a702_0x25ce4d(0x162));router[a702_0x25ce4d(0x16b)]('/',auth[a702_0x25ce4d(0x168)](),controller['index']),router['get'](a702_0x25ce4d(0x161),auth[a702_0x25ce4d(0x168)](),controller[a702_0x25ce4d(0x166)]),router[a702_0x25ce4d(0x160)]('/',auth['isAuthenticated'](),controller[a702_0x25ce4d(0x164)]),router[a702_0x25ce4d(0x165)]('/:id',auth['isAuthenticated'](),controller['update']),router['delete']('/:id',auth[a702_0x25ce4d(0x168)](),controller[a702_0x25ce4d(0x163)]),module[a702_0x25ce4d(0x16c)]=router; \ No newline at end of file +const a702_0x3141=['create','show','./squareMessage.controller','update','exports','post','put','/:id','Router','destroy','../../components/auth/service','delete','isAuthenticated'];(function(_0x2bddc9,_0x3f22e9){const _0x314182=function(_0x3d42da){while(--_0x3d42da){_0x2bddc9['push'](_0x2bddc9['shift']());}};_0x314182(++_0x3f22e9);}(a702_0x3141,0x84));const a702_0x3d42=function(_0x2bddc9,_0x3f22e9){_0x2bddc9=_0x2bddc9-0x14e;let _0x314182=a702_0x3141[_0x2bddc9];return _0x314182;};const a702_0x1f9f96=a702_0x3d42;'use strict';const express=require('express'),router=express[a702_0x1f9f96(0x154)](),auth=require(a702_0x1f9f96(0x156)),controller=require(a702_0x1f9f96(0x14e));router['get']('/',auth[a702_0x1f9f96(0x158)](),controller['index']),router['get']('/:id',auth[a702_0x1f9f96(0x158)](),controller[a702_0x1f9f96(0x15a)]),router[a702_0x1f9f96(0x151)]('/',auth[a702_0x1f9f96(0x158)](),controller[a702_0x1f9f96(0x159)]),router[a702_0x1f9f96(0x152)]('/:id',auth[a702_0x1f9f96(0x158)](),controller[a702_0x1f9f96(0x14f)]),router[a702_0x1f9f96(0x157)](a702_0x1f9f96(0x153),auth[a702_0x1f9f96(0x158)](),controller[a702_0x1f9f96(0x155)]),module[a702_0x1f9f96(0x150)]=router; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.attributes.js b/server/api/squareMessage/squareMessage.attributes.js index 4cd1d5b..be33c93 100644 --- a/server/api/squareMessage/squareMessage.attributes.js +++ b/server/api/squareMessage/squareMessage.attributes.js @@ -1 +1 @@ -const a703_0x1601=['STRING','attributes','exports','sequelize','TEXT','out','ENUM','medium'];(function(_0xfec37b,_0x2d0355){const _0x160182=function(_0x1b0ed2){while(--_0x1b0ed2){_0xfec37b['push'](_0xfec37b['shift']());}};_0x160182(++_0x2d0355);}(a703_0x1601,0x1f2));const a703_0x1b0e=function(_0xfec37b,_0x2d0355){_0xfec37b=_0xfec37b-0x15d;let _0x160182=a703_0x1601[_0xfec37b];return _0x160182;};const a703_0x5b7806=a703_0x1b0e;'use strict';const {DataTypes}=require(a703_0x5b7806(0x15e)),attributes={'uniqueid':{'type':DataTypes[a703_0x5b7806(0x163)]},'body':{'type':DataTypes[a703_0x5b7806(0x15f)]({'length':a703_0x5b7806(0x162)}),'allowNull':![]},'direction':{'type':DataTypes[a703_0x5b7806(0x161)]('in',a703_0x5b7806(0x160)),'defaultValue':'out','allowNull':![]},'providerName':{'type':DataTypes[a703_0x5b7806(0x163)]},'providerResponse':{'type':DataTypes[a703_0x5b7806(0x15f)]}};module[a703_0x5b7806(0x15d)][a703_0x5b7806(0x164)]=attributes; \ No newline at end of file +const a703_0x2052=['STRING','sequelize','TEXT','out','medium','ENUM','attributes','exports'];(function(_0x23f8dc,_0x280f62){const _0x20525f=function(_0x2149f0){while(--_0x2149f0){_0x23f8dc['push'](_0x23f8dc['shift']());}};_0x20525f(++_0x280f62);}(a703_0x2052,0x172));const a703_0x2149=function(_0x23f8dc,_0x280f62){_0x23f8dc=_0x23f8dc-0x13c;let _0x20525f=a703_0x2052[_0x23f8dc];return _0x20525f;};const a703_0x525f08=a703_0x2149;'use strict';const {DataTypes}=require(a703_0x525f08(0x143)),attributes={'uniqueid':{'type':DataTypes[a703_0x525f08(0x142)]},'body':{'type':DataTypes[a703_0x525f08(0x13c)]({'length':a703_0x525f08(0x13e)}),'allowNull':![]},'direction':{'type':DataTypes[a703_0x525f08(0x13f)]('in',a703_0x525f08(0x13d)),'defaultValue':a703_0x525f08(0x13d),'allowNull':![]},'providerName':{'type':DataTypes[a703_0x525f08(0x142)]},'providerResponse':{'type':DataTypes[a703_0x525f08(0x13c)]}};module[a703_0x525f08(0x141)][a703_0x525f08(0x140)]=attributes; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.controller.js b/server/api/squareMessage/squareMessage.controller.js index 6f7828b..e20e0e5 100644 --- a/server/api/squareMessage/squareMessage.controller.js +++ b/server/api/squareMessage/squareMessage.controller.js @@ -1 +1 @@ -const a704_0xb440=['status','key','SquareMessage','name','VIRTUAL','type','merge','order','set','filters','../../components/parsers/qs','fieldName','end','catch','filter','../../config/logger','then','keys','attributes','limit','rawAttributes','params','body','where','index','query','lodash','findOne','offset','include','map','count','model','intersection','json','options','length','show','rows','../../mysqldb','nolimit','create','update','undefined','pick','api','fields','Content-Range'];(function(_0x37f5cf,_0x23ca48){const _0xb440d1=function(_0xf70779){while(--_0xf70779){_0x37f5cf['push'](_0x37f5cf['shift']());}};_0xb440d1(++_0x23ca48);}(a704_0xb440,0x1a3));const a704_0xf707=function(_0x37f5cf,_0x23ca48){_0x37f5cf=_0x37f5cf-0xdd;let _0xb440d1=a704_0xb440[_0x37f5cf];return _0xb440d1;};const a704_0x2e3bd4=a704_0xf707;'use strict';const _=require(a704_0x2e3bd4(0x104)),qs=require(a704_0x2e3bd4(0xf4)),logger=require(a704_0x2e3bd4(0xf9))(a704_0x2e3bd4(0xe7)),{db}=require(a704_0x2e3bd4(0xe1)),{Op}=require('sequelize');function respondWithResult(_0x35bb7c,_0x4be0b0){return _0x4be0b0=_0x4be0b0||0xc8,function(_0x39be82){const _0x1e2d6f=a704_0xf707;if(_0x39be82)return _0x35bb7c[_0x1e2d6f(0xea)](_0x4be0b0)[_0x1e2d6f(0x10c)](_0x39be82);};}function respondWithFilteredResult(_0x3e5d24,_0x8cfc68){return function(_0x37d8d7){const _0x516fa4=a704_0xf707;if(_0x37d8d7){const _0x1911c4=_0x37d8d7['count'],_0x550287=_0x8cfc68[_0x516fa4(0x106)];let _0x33f76b=_0x8cfc68['offset']+_0x8cfc68[_0x516fa4(0xfd)],_0x13d666;return _0x33f76b>=_0x1911c4?(_0x33f76b=_0x1911c4,_0x13d666=0xc8):_0x13d666=0xce,_0x3e5d24[_0x516fa4(0xea)](_0x13d666),_0x3e5d24[_0x516fa4(0xf2)](_0x516fa4(0xe9),_0x550287+'-'+_0x33f76b+'/'+_0x1911c4)[_0x516fa4(0x10c)](_0x37d8d7);}return null;};}function saveUpdates(_0x42072d){return function(_0x298c7e){const _0x150efe=a704_0xf707;if(_0x298c7e)return _0x298c7e[_0x150efe(0xe4)](_0x42072d)[_0x150efe(0xfa)](function(_0x2bbb01){return _0x2bbb01;});return null;};}function removeEntity(_0x234dd4){return function(_0x57d681){if(_0x57d681)return _0x57d681['destroy']()['then'](function(){const _0x5c251d=a704_0xf707;_0x234dd4[_0x5c251d(0xea)](0xcc)[_0x5c251d(0xf6)]();});};}function handleEntityNotFound(_0x42e35d){return function(_0x5d1586){return!_0x5d1586&&_0x42e35d['sendStatus'](0x194),_0x5d1586;};}function handleError(_0x495f9a,_0x13cc8f){return _0x13cc8f=_0x13cc8f||0x1f4,function(_0x1f4010){const _0x3d7d24=a704_0xf707;logger['error'](_0x1f4010['stack']),_0x1f4010[_0x3d7d24(0xed)]&&delete _0x1f4010[_0x3d7d24(0xed)],_0x495f9a[_0x3d7d24(0xea)](_0x13cc8f)['send'](_0x1f4010);};}exports[a704_0x2e3bd4(0x102)]=function(_0x52f456,_0x1727a1){const _0x2e5a92=a704_0x2e3bd4;let _0x1e24d9={};const _0x419190={},_0x3d2a8b={'count':0x0,'rows':[]},_0x3b2729=_[_0x2e5a92(0x108)](db['SquareMessage'][_0x2e5a92(0xfe)],function(_0x3f5982){const _0x225631=_0x2e5a92;return{'name':_0x3f5982[_0x225631(0xf5)],'type':_0x3f5982['type'][_0x225631(0xeb)]};});_0x419190['model']=_['map'](_0x3b2729,_0x2e5a92(0xed)),_0x419190['query']=_[_0x2e5a92(0xfb)](_0x52f456[_0x2e5a92(0x103)]),_0x419190['filters']=_[_0x2e5a92(0x10b)](_0x419190[_0x2e5a92(0x10a)],_0x419190[_0x2e5a92(0x103)]),_0x1e24d9[_0x2e5a92(0xfc)]=_[_0x2e5a92(0x10b)](_0x419190['model'],qs[_0x2e5a92(0xe8)](_0x52f456['query'][_0x2e5a92(0xe8)])),_0x1e24d9[_0x2e5a92(0xfc)]=_0x1e24d9['attributes'][_0x2e5a92(0xde)]?_0x1e24d9[_0x2e5a92(0xfc)]:_0x419190['model'];typeof _0x52f456[_0x2e5a92(0x103)][_0x2e5a92(0xe2)]===_0x2e5a92(0xe5)&&(_0x1e24d9[_0x2e5a92(0xfd)]=qs[_0x2e5a92(0xfd)](_0x52f456[_0x2e5a92(0x103)][_0x2e5a92(0xfd)]),_0x1e24d9['offset']=qs[_0x2e5a92(0x106)](_0x52f456[_0x2e5a92(0x103)][_0x2e5a92(0x106)]));_0x1e24d9[_0x2e5a92(0xf1)]=qs['sort'](_0x52f456['query']['sort']),_0x1e24d9[_0x2e5a92(0x101)]=qs[_0x2e5a92(0xf3)](_[_0x2e5a92(0xe6)](_0x52f456[_0x2e5a92(0x103)],_0x419190['filters']),_0x3b2729);_0x52f456['query'][_0x2e5a92(0xf8)]&&(_0x1e24d9[_0x2e5a92(0x101)]=_[_0x2e5a92(0xf0)](_0x1e24d9[_0x2e5a92(0x101)],{[Op['or']]:_[_0x2e5a92(0x108)](_0x3b2729,function(_0x421c6e){const _0x59f673=_0x2e5a92;if(_0x421c6e[_0x59f673(0xef)]!==_0x59f673(0xee)){const _0x59fe18={};return _0x59fe18[_0x421c6e['name']]={[Op['like']]:'%'+_0x52f456['query'][_0x59f673(0xf8)]+'%'},_0x59fe18;}})}));_0x1e24d9=_[_0x2e5a92(0xf0)]({},_0x1e24d9,_0x52f456['options']);const _0x3c3909={'where':_0x1e24d9[_0x2e5a92(0x101)]};return db[_0x2e5a92(0xec)]['count'](_0x3c3909)['then'](function(_0x5d08f2){const _0x4828cd=_0x2e5a92;return _0x3d2a8b[_0x4828cd(0x109)]=_0x5d08f2,_0x52f456[_0x4828cd(0x103)]['includeAll']&&(_0x1e24d9['include']=[{'all':!![]}]),db['SquareMessage']['findAll'](_0x1e24d9);})['then'](function(_0x4e68e0){const _0x44be49=_0x2e5a92;return _0x3d2a8b[_0x44be49(0xe0)]=_0x4e68e0,_0x3d2a8b;})[_0x2e5a92(0xfa)](respondWithFilteredResult(_0x1727a1,_0x1e24d9))[_0x2e5a92(0xf7)](handleError(_0x1727a1,null));},exports[a704_0x2e3bd4(0xdf)]=function(_0x2f7f09,_0x3d3baf){const _0x4df152=a704_0x2e3bd4;let _0x217b20={'raw':!![],'where':{'id':_0x2f7f09['params']['id']}};const _0x15ff96={};return _0x15ff96['model']=_['keys'](db[_0x4df152(0xec)][_0x4df152(0xfe)]),_0x15ff96[_0x4df152(0x103)]=_[_0x4df152(0xfb)](_0x2f7f09['query']),_0x15ff96['filters']=_[_0x4df152(0x10b)](_0x15ff96[_0x4df152(0x10a)],_0x15ff96['query']),_0x217b20[_0x4df152(0xfc)]=_[_0x4df152(0x10b)](_0x15ff96[_0x4df152(0x10a)],qs[_0x4df152(0xe8)](_0x2f7f09[_0x4df152(0x103)][_0x4df152(0xe8)])),_0x217b20[_0x4df152(0xfc)]=_0x217b20[_0x4df152(0xfc)]['length']?_0x217b20[_0x4df152(0xfc)]:_0x15ff96['model'],_0x2f7f09[_0x4df152(0x103)]['includeAll']&&(_0x217b20[_0x4df152(0x107)]=[{'all':!![]}]),_0x217b20=_[_0x4df152(0xf0)]({},_0x217b20,_0x2f7f09[_0x4df152(0xdd)]),db[_0x4df152(0xec)][_0x4df152(0x105)](_0x217b20)[_0x4df152(0xfa)](handleEntityNotFound(_0x3d3baf,null))[_0x4df152(0xfa)](respondWithResult(_0x3d3baf,null))['catch'](handleError(_0x3d3baf,null));},exports[a704_0x2e3bd4(0xe3)]=function(_0x308367,_0x201a9a){const _0x450973=a704_0x2e3bd4;return db['SquareMessage'][_0x450973(0xe3)](_0x308367[_0x450973(0x100)],{})[_0x450973(0xfa)](respondWithResult(_0x201a9a,0xc9))[_0x450973(0xf7)](handleError(_0x201a9a,null));},exports[a704_0x2e3bd4(0xe4)]=function(_0x863168,_0x35a602){const _0x3bc90b=a704_0x2e3bd4;return _0x863168['body']['id']&&delete _0x863168[_0x3bc90b(0x100)]['id'],db[_0x3bc90b(0xec)]['findOne']({'where':{'id':_0x863168[_0x3bc90b(0xff)]['id']}})[_0x3bc90b(0xfa)](handleEntityNotFound(_0x35a602,null))['then'](saveUpdates(_0x863168['body'],null))[_0x3bc90b(0xfa)](respondWithResult(_0x35a602,null))[_0x3bc90b(0xf7)](handleError(_0x35a602,null));},exports['destroy']=function(_0x3f5da2,_0x3be07c){const _0x1e4510=a704_0x2e3bd4;return db[_0x1e4510(0xec)][_0x1e4510(0x105)]({'where':{'id':_0x3f5da2[_0x1e4510(0xff)]['id']}})[_0x1e4510(0xfa)](handleEntityNotFound(_0x3be07c,null))[_0x1e4510(0xfa)](removeEntity(_0x3be07c,null))[_0x1e4510(0xf7)](handleError(_0x3be07c,null));}; \ No newline at end of file +const a704_0x457b=['offset','filters','query','create','lodash','update','rawAttributes','like','SquareMessage','sendStatus','../../config/logger','sequelize','limit','count','includeAll','intersection','rows','../../components/parsers/qs','order','where','include','sort','length','api','then','set','merge','name','findAll','options','type','Content-Range','body','fields','catch','status','show','nolimit','model','end','undefined','send','destroy','keys','stack','VIRTUAL','error','pick','filter','fieldName','../../mysqldb','findOne','json','map','params','attributes'];(function(_0x3a9f76,_0x4cf798){const _0x457b8d=function(_0x507bfa){while(--_0x507bfa){_0x3a9f76['push'](_0x3a9f76['shift']());}};_0x457b8d(++_0x4cf798);}(a704_0x457b,0x99));const a704_0x507b=function(_0x3a9f76,_0x4cf798){_0x3a9f76=_0x3a9f76-0x168;let _0x457b8d=a704_0x457b[_0x3a9f76];return _0x457b8d;};const a704_0x2d7049=a704_0x507b;'use strict';const _=require(a704_0x2d7049(0x17b)),qs=require(a704_0x2d7049(0x188)),logger=require(a704_0x2d7049(0x181))(a704_0x2d7049(0x18e)),{db}=require(a704_0x2d7049(0x171)),{Op}=require(a704_0x2d7049(0x182));function respondWithResult(_0x24548a,_0x210ccb){return _0x210ccb=_0x210ccb||0xc8,function(_0x347a4e){const _0x58edf8=a704_0x507b;if(_0x347a4e)return _0x24548a['status'](_0x210ccb)[_0x58edf8(0x173)](_0x347a4e);};}function respondWithFilteredResult(_0x32d05e,_0x5104cd){return function(_0x4868e1){const _0x237ef3=a704_0x507b;if(_0x4868e1){const _0x50673d=_0x4868e1[_0x237ef3(0x184)],_0xfddf67=_0x5104cd['offset'];let _0x423907=_0x5104cd['offset']+_0x5104cd[_0x237ef3(0x183)],_0x3c388a;return _0x423907>=_0x50673d?(_0x423907=_0x50673d,_0x3c388a=0xc8):_0x3c388a=0xce,_0x32d05e['status'](_0x3c388a),_0x32d05e[_0x237ef3(0x190)](_0x237ef3(0x196),_0xfddf67+'-'+_0x423907+'/'+_0x50673d)['json'](_0x4868e1);}return null;};}function saveUpdates(_0x35dcf0){return function(_0x11dcfe){const _0x28986c=a704_0x507b;if(_0x11dcfe)return _0x11dcfe[_0x28986c(0x17c)](_0x35dcf0)[_0x28986c(0x18f)](function(_0x238691){return _0x238691;});return null;};}function removeEntity(_0x2ac218){return function(_0x2c045d){const _0x45979f=a704_0x507b;if(_0x2c045d)return _0x2c045d[_0x45979f(0x169)]()[_0x45979f(0x18f)](function(){const _0xbcfa5d=_0x45979f;_0x2ac218[_0xbcfa5d(0x19a)](0xcc)[_0xbcfa5d(0x19e)]();});};}function handleEntityNotFound(_0x2694ef){return function(_0x41867d){const _0x40ad80=a704_0x507b;return!_0x41867d&&_0x2694ef[_0x40ad80(0x180)](0x194),_0x41867d;};}function handleError(_0x18514d,_0x95b4ba){return _0x95b4ba=_0x95b4ba||0x1f4,function(_0x824ea0){const _0xcaed2c=a704_0x507b;logger[_0xcaed2c(0x16d)](_0x824ea0[_0xcaed2c(0x16b)]),_0x824ea0[_0xcaed2c(0x192)]&&delete _0x824ea0[_0xcaed2c(0x192)],_0x18514d[_0xcaed2c(0x19a)](_0x95b4ba)[_0xcaed2c(0x168)](_0x824ea0);};}exports['index']=function(_0x5dfbb8,_0x1d890c){const _0x3d009d=a704_0x2d7049;let _0x228544={};const _0x3f4a83={},_0x657ead={'count':0x0,'rows':[]},_0x3c5f52=_[_0x3d009d(0x174)](db[_0x3d009d(0x17f)][_0x3d009d(0x17d)],function(_0x5693fe){const _0x345df5=_0x3d009d;return{'name':_0x5693fe[_0x345df5(0x170)],'type':_0x5693fe[_0x345df5(0x195)]['key']};});_0x3f4a83[_0x3d009d(0x19d)]=_['map'](_0x3c5f52,'name'),_0x3f4a83[_0x3d009d(0x179)]=_[_0x3d009d(0x16a)](_0x5dfbb8[_0x3d009d(0x179)]),_0x3f4a83['filters']=_[_0x3d009d(0x186)](_0x3f4a83[_0x3d009d(0x19d)],_0x3f4a83['query']),_0x228544[_0x3d009d(0x176)]=_[_0x3d009d(0x186)](_0x3f4a83[_0x3d009d(0x19d)],qs['fields'](_0x5dfbb8[_0x3d009d(0x179)][_0x3d009d(0x198)])),_0x228544['attributes']=_0x228544[_0x3d009d(0x176)]['length']?_0x228544[_0x3d009d(0x176)]:_0x3f4a83[_0x3d009d(0x19d)];typeof _0x5dfbb8[_0x3d009d(0x179)][_0x3d009d(0x19c)]===_0x3d009d(0x19f)&&(_0x228544['limit']=qs[_0x3d009d(0x183)](_0x5dfbb8[_0x3d009d(0x179)][_0x3d009d(0x183)]),_0x228544[_0x3d009d(0x177)]=qs[_0x3d009d(0x177)](_0x5dfbb8[_0x3d009d(0x179)][_0x3d009d(0x177)]));_0x228544[_0x3d009d(0x189)]=qs[_0x3d009d(0x18c)](_0x5dfbb8['query'][_0x3d009d(0x18c)]),_0x228544[_0x3d009d(0x18a)]=qs['filters'](_[_0x3d009d(0x16e)](_0x5dfbb8[_0x3d009d(0x179)],_0x3f4a83['filters']),_0x3c5f52);_0x5dfbb8[_0x3d009d(0x179)][_0x3d009d(0x16f)]&&(_0x228544['where']=_['merge'](_0x228544[_0x3d009d(0x18a)],{[Op['or']]:_['map'](_0x3c5f52,function(_0x100d34){const _0x4c267c=_0x3d009d;if(_0x100d34[_0x4c267c(0x195)]!==_0x4c267c(0x16c)){const _0xd8cdf4={};return _0xd8cdf4[_0x100d34['name']]={[Op[_0x4c267c(0x17e)]]:'%'+_0x5dfbb8['query'][_0x4c267c(0x16f)]+'%'},_0xd8cdf4;}})}));_0x228544=_[_0x3d009d(0x191)]({},_0x228544,_0x5dfbb8['options']);const _0xf5caa0={'where':_0x228544[_0x3d009d(0x18a)]};return db[_0x3d009d(0x17f)][_0x3d009d(0x184)](_0xf5caa0)[_0x3d009d(0x18f)](function(_0x58c699){const _0x5eb247=_0x3d009d;return _0x657ead[_0x5eb247(0x184)]=_0x58c699,_0x5dfbb8[_0x5eb247(0x179)][_0x5eb247(0x185)]&&(_0x228544[_0x5eb247(0x18b)]=[{'all':!![]}]),db[_0x5eb247(0x17f)][_0x5eb247(0x193)](_0x228544);})[_0x3d009d(0x18f)](function(_0x28845d){const _0x5f317c=_0x3d009d;return _0x657ead[_0x5f317c(0x187)]=_0x28845d,_0x657ead;})['then'](respondWithFilteredResult(_0x1d890c,_0x228544))[_0x3d009d(0x199)](handleError(_0x1d890c,null));},exports[a704_0x2d7049(0x19b)]=function(_0x10e8e3,_0x58e28f){const _0x5ef4f9=a704_0x2d7049;let _0x1add00={'raw':!![],'where':{'id':_0x10e8e3[_0x5ef4f9(0x175)]['id']}};const _0x2fd523={};return _0x2fd523['model']=_[_0x5ef4f9(0x16a)](db[_0x5ef4f9(0x17f)][_0x5ef4f9(0x17d)]),_0x2fd523[_0x5ef4f9(0x179)]=_[_0x5ef4f9(0x16a)](_0x10e8e3[_0x5ef4f9(0x179)]),_0x2fd523[_0x5ef4f9(0x178)]=_[_0x5ef4f9(0x186)](_0x2fd523[_0x5ef4f9(0x19d)],_0x2fd523[_0x5ef4f9(0x179)]),_0x1add00[_0x5ef4f9(0x176)]=_[_0x5ef4f9(0x186)](_0x2fd523[_0x5ef4f9(0x19d)],qs[_0x5ef4f9(0x198)](_0x10e8e3[_0x5ef4f9(0x179)]['fields'])),_0x1add00[_0x5ef4f9(0x176)]=_0x1add00[_0x5ef4f9(0x176)][_0x5ef4f9(0x18d)]?_0x1add00['attributes']:_0x2fd523['model'],_0x10e8e3[_0x5ef4f9(0x179)]['includeAll']&&(_0x1add00['include']=[{'all':!![]}]),_0x1add00=_[_0x5ef4f9(0x191)]({},_0x1add00,_0x10e8e3[_0x5ef4f9(0x194)]),db[_0x5ef4f9(0x17f)][_0x5ef4f9(0x172)](_0x1add00)[_0x5ef4f9(0x18f)](handleEntityNotFound(_0x58e28f,null))[_0x5ef4f9(0x18f)](respondWithResult(_0x58e28f,null))['catch'](handleError(_0x58e28f,null));},exports[a704_0x2d7049(0x17a)]=function(_0x48fbd6,_0x5bba03){const _0x40db5a=a704_0x2d7049;return db['SquareMessage']['create'](_0x48fbd6[_0x40db5a(0x197)],{})[_0x40db5a(0x18f)](respondWithResult(_0x5bba03,0xc9))[_0x40db5a(0x199)](handleError(_0x5bba03,null));},exports['update']=function(_0x4d75c1,_0x1cc5a4){const _0x940999=a704_0x2d7049;return _0x4d75c1[_0x940999(0x197)]['id']&&delete _0x4d75c1['body']['id'],db[_0x940999(0x17f)][_0x940999(0x172)]({'where':{'id':_0x4d75c1['params']['id']}})[_0x940999(0x18f)](handleEntityNotFound(_0x1cc5a4,null))[_0x940999(0x18f)](saveUpdates(_0x4d75c1[_0x940999(0x197)],null))[_0x940999(0x18f)](respondWithResult(_0x1cc5a4,null))[_0x940999(0x199)](handleError(_0x1cc5a4,null));},exports[a704_0x2d7049(0x169)]=function(_0x1d7c03,_0x118f7e){const _0x429f7e=a704_0x2d7049;return db[_0x429f7e(0x17f)]['findOne']({'where':{'id':_0x1d7c03[_0x429f7e(0x175)]['id']}})[_0x429f7e(0x18f)](handleEntityNotFound(_0x118f7e,null))[_0x429f7e(0x18f)](removeEntity(_0x118f7e,null))['catch'](handleError(_0x118f7e,null));}; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.model.js b/server/api/squareMessage/squareMessage.model.js index b9b77ab..4f13cf2 100644 --- a/server/api/squareMessage/squareMessage.model.js +++ b/server/api/squareMessage/squareMessage.model.js @@ -1 +1 @@ -const a705_0x3976=['sequelize','exports','function','./squareMessage.options','SquareMessage','./squareMessage.attributes','init'];(function(_0x2586fc,_0xc60444){const _0x3976e7=function(_0x2ed9ea){while(--_0x2ed9ea){_0x2586fc['push'](_0x2586fc['shift']());}};_0x3976e7(++_0xc60444);}(a705_0x3976,0xe9));const a705_0x2ed9=function(_0x2586fc,_0xc60444){_0x2586fc=_0x2586fc-0xba;let _0x3976e7=a705_0x3976[_0x2586fc];return _0x3976e7;};const a705_0xc724df=a705_0x2ed9;'use strict';const {Model}=require(a705_0xc724df(0xbf)),{attributes}=require(a705_0xc724df(0xbd)),{options}=require(a705_0xc724df(0xbb));class SquareMessage extends Model{}function init(_0x504f1c,_0x473e29){const _0x51a5c3=a705_0xc724df,_0x26445c=options(_0x504f1c),_0x466464=typeof _0x473e29===_0x51a5c3(0xba)?_0x473e29(_0x26445c):_0x26445c;return SquareMessage[_0x51a5c3(0xbe)](attributes,_0x466464),SquareMessage;}module[a705_0xc724df(0xc0)][a705_0xc724df(0xbc)]=SquareMessage,module[a705_0xc724df(0xc0)][a705_0xc724df(0xbe)]=init; \ No newline at end of file +const a705_0x5ee1=['init','SquareMessage','sequelize','function','exports'];(function(_0x4d1f9c,_0x10a518){const _0x5ee11e=function(_0x894bfb){while(--_0x894bfb){_0x4d1f9c['push'](_0x4d1f9c['shift']());}};_0x5ee11e(++_0x10a518);}(a705_0x5ee1,0x1e5));const a705_0x894b=function(_0x4d1f9c,_0x10a518){_0x4d1f9c=_0x4d1f9c-0x140;let _0x5ee11e=a705_0x5ee1[_0x4d1f9c];return _0x5ee11e;};const a705_0x4f8a47=a705_0x894b;'use strict';const {Model}=require(a705_0x4f8a47(0x142)),{attributes}=require('./squareMessage.attributes'),{options}=require('./squareMessage.options');class SquareMessage extends Model{}function init(_0x1927a3,_0x220c28){const _0x382dc3=a705_0x4f8a47,_0x44a67c=options(_0x1927a3),_0x36644f=typeof _0x220c28===_0x382dc3(0x143)?_0x220c28(_0x44a67c):_0x44a67c;return SquareMessage[_0x382dc3(0x140)](attributes,_0x36644f),SquareMessage;}module[a705_0x4f8a47(0x144)][a705_0x4f8a47(0x141)]=SquareMessage,module[a705_0x4f8a47(0x144)]['init']=init; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.options.js b/server/api/squareMessage/squareMessage.options.js index 44b7c7f..1ead59d 100644 --- a/server/api/squareMessage/squareMessage.options.js +++ b/server/api/squareMessage/squareMessage.options.js @@ -1 +1 @@ -var a706_0x1e14=['options','exports'];(function(_0x21e6b3,_0x120f4e){var _0x1e147d=function(_0x1dceef){while(--_0x1dceef){_0x21e6b3['push'](_0x21e6b3['shift']());}};_0x1e147d(++_0x120f4e);}(a706_0x1e14,0x157));var a706_0x1dce=function(_0x21e6b3,_0x120f4e){_0x21e6b3=_0x21e6b3-0x182;var _0x1e147d=a706_0x1e14[_0x21e6b3];return _0x1e147d;};var a706_0x190965=a706_0x1dce;function options(_0x23a3e1){return{'sequelize':_0x23a3e1,'tableName':'square_messages','paranoid':![],'indexes':[],'timestamps':!![]};}module[a706_0x190965(0x182)][a706_0x190965(0x183)]=options; \ No newline at end of file +var a706_0x406c=['options'];(function(_0x2a0e2b,_0x148ef5){var _0x406c86=function(_0x2c20b2){while(--_0x2c20b2){_0x2a0e2b['push'](_0x2a0e2b['shift']());}};_0x406c86(++_0x148ef5);}(a706_0x406c,0x8c));var a706_0x2c20=function(_0x2a0e2b,_0x148ef5){_0x2a0e2b=_0x2a0e2b-0x1c2;var _0x406c86=a706_0x406c[_0x2a0e2b];return _0x406c86;};var a706_0x291dc9=a706_0x2c20;function options(_0x131535){return{'sequelize':_0x131535,'tableName':'square_messages','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a706_0x291dc9(0x1c2)]=options; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.rpc.js b/server/api/squareMessage/squareMessage.rpc.js index 8f8ed79..78712c3 100644 --- a/server/api/squareMessage/squareMessage.rpc.js +++ b/server/api/squareMessage/squareMessage.rpc.js @@ -1 +1 @@ -const a707_0x57a5=['then','raw','create','info','error','options','../../config/logger','rpc','stringify','message','CreateSquareMessage','catch'];(function(_0x3967ca,_0x1629b0){const _0x57a5c5=function(_0x24f7aa){while(--_0x24f7aa){_0x3967ca['push'](_0x3967ca['shift']());}};_0x57a5c5(++_0x1629b0);}(a707_0x57a5,0x1f0));const a707_0x24f7=function(_0x3967ca,_0x1629b0){_0x3967ca=_0x3967ca-0xf0;let _0x57a5c5=a707_0x57a5[_0x3967ca];return _0x57a5c5;};const a707_0x4e4d54=a707_0x24f7;'use strict';const db=require('../../mysqldb')['db'],logger=require(a707_0x4e4d54(0xf2))(a707_0x4e4d54(0xf3));exports[a707_0x4e4d54(0xf6)]=function(_0x4d9ebc){const _0x44fac1=this;return new Promise(function(_0x1f2ec9,_0x42af46){const _0x3bc586=a707_0x24f7;return db['SquareMessage'][_0x3bc586(0xfa)](_0x4d9ebc['body'],{'raw':_0x4d9ebc[_0x3bc586(0xf1)]?_0x4d9ebc[_0x3bc586(0xf1)][_0x3bc586(0xf9)]===undefined?!![]:![]:!![]})[_0x3bc586(0xf8)](function(_0x18d466){const _0x5c4f74=_0x3bc586;logger[_0x5c4f74(0xfb)]('CreateSquareMessage',_0x4d9ebc),logger['debug']('CreateSquareMessage',_0x4d9ebc,JSON[_0x5c4f74(0xf4)](_0x18d466)),_0x1f2ec9(_0x18d466);})[_0x3bc586(0xf7)](function(_0x2f517a){const _0x2b9067=_0x3bc586;logger[_0x2b9067(0xf0)](_0x2b9067(0xf6),_0x2f517a['message'],_0x4d9ebc),_0x42af46(_0x44fac1[_0x2b9067(0xf0)](0x1f4,_0x2f517a[_0x2b9067(0xf5)]));});});}; \ No newline at end of file +const a707_0x2fb7=['../../mysqldb','create','error','raw','debug','CreateSquareMessage','then','stringify','catch','SquareMessage','message','../../config/logger','options','rpc','body'];(function(_0x69b938,_0x2ab3d4){const _0x2fb7b0=function(_0x3c359e){while(--_0x3c359e){_0x69b938['push'](_0x69b938['shift']());}};_0x2fb7b0(++_0x2ab3d4);}(a707_0x2fb7,0x1e0));const a707_0x3c35=function(_0x69b938,_0x2ab3d4){_0x69b938=_0x69b938-0x125;let _0x2fb7b0=a707_0x2fb7[_0x69b938];return _0x2fb7b0;};const a707_0x272766=a707_0x3c35;'use strict';const db=require(a707_0x272766(0x125))['db'],logger=require(a707_0x272766(0x130))(a707_0x272766(0x132));exports[a707_0x272766(0x12a)]=function(_0x22450f){const _0x452d60=this;return new Promise(function(_0x2d1f80,_0x37cdab){const _0x454056=a707_0x3c35;return db[_0x454056(0x12e)][_0x454056(0x126)](_0x22450f[_0x454056(0x133)],{'raw':_0x22450f[_0x454056(0x131)]?_0x22450f[_0x454056(0x131)][_0x454056(0x128)]===undefined?!![]:![]:!![]})[_0x454056(0x12b)](function(_0x24b1f1){const _0x3a3928=_0x454056;logger['info'](_0x3a3928(0x12a),_0x22450f),logger[_0x3a3928(0x129)](_0x3a3928(0x12a),_0x22450f,JSON[_0x3a3928(0x12c)](_0x24b1f1)),_0x2d1f80(_0x24b1f1);})[_0x454056(0x12d)](function(_0x27d7f4){const _0x8797a3=_0x454056;logger[_0x8797a3(0x127)](_0x8797a3(0x12a),_0x27d7f4[_0x8797a3(0x12f)],_0x22450f),_0x37cdab(_0x452d60[_0x8797a3(0x127)](0x1f4,_0x27d7f4[_0x8797a3(0x12f)]));});});}; \ No newline at end of file diff --git a/server/api/squareOdbc/index.js b/server/api/squareOdbc/index.js index 8bc01ff..dfd8d00 100644 --- a/server/api/squareOdbc/index.js +++ b/server/api/squareOdbc/index.js @@ -1 +1 @@ -const a708_0x15b1=['isAuthenticated','test','get','Router','index','../../components/auth/service','create','/:id','post','update','put','connect-timeout','exports','delete','/:id/test','./squareOdbc.controller','destroy'];(function(_0x74317e,_0x33f57d){const _0x15b178=function(_0xdbd922){while(--_0xdbd922){_0x74317e['push'](_0x74317e['shift']());}};_0x15b178(++_0x33f57d);}(a708_0x15b1,0x10d));const a708_0xdbd9=function(_0x74317e,_0x33f57d){_0x74317e=_0x74317e-0x11a;let _0x15b178=a708_0x15b1[_0x74317e];return _0x15b178;};const a708_0x10d877=a708_0xdbd9;'use strict';const timeout=require(a708_0x10d877(0x128)),express=require('express'),router=express[a708_0x10d877(0x120)](),auth=require(a708_0x10d877(0x122)),controller=require(a708_0x10d877(0x11b));router['get']('/',auth[a708_0x10d877(0x11d)](),controller[a708_0x10d877(0x121)]),router[a708_0x10d877(0x11f)](a708_0x10d877(0x124),auth[a708_0x10d877(0x11d)](),controller['show']),router['get'](a708_0x10d877(0x11a),auth[a708_0x10d877(0x11d)](),timeout('15s'),controller[a708_0x10d877(0x11e)]),router[a708_0x10d877(0x125)]('/',auth[a708_0x10d877(0x11d)](),controller[a708_0x10d877(0x123)]),router[a708_0x10d877(0x127)](a708_0x10d877(0x124),auth[a708_0x10d877(0x11d)](),controller[a708_0x10d877(0x126)]),router[a708_0x10d877(0x12a)](a708_0x10d877(0x124),auth[a708_0x10d877(0x11d)](),controller[a708_0x10d877(0x11c)]),module[a708_0x10d877(0x129)]=router; \ No newline at end of file +const a708_0x1719=['isAuthenticated','test','put','/:id','./squareOdbc.controller','create','get','connect-timeout','post','index','update','destroy','15s','Router','express'];(function(_0x472e6d,_0x33818a){const _0x1719c3=function(_0x3d2e6d){while(--_0x3d2e6d){_0x472e6d['push'](_0x472e6d['shift']());}};_0x1719c3(++_0x33818a);}(a708_0x1719,0x118));const a708_0x3d2e=function(_0x472e6d,_0x33818a){_0x472e6d=_0x472e6d-0xd5;let _0x1719c3=a708_0x1719[_0x472e6d];return _0x1719c3;};const a708_0x1145dd=a708_0x3d2e;'use strict';const timeout=require(a708_0x1145dd(0xe1)),express=require(a708_0x1145dd(0xd9)),router=express[a708_0x1145dd(0xd8)](),auth=require('../../components/auth/service'),controller=require(a708_0x1145dd(0xde));router[a708_0x1145dd(0xe0)]('/',auth[a708_0x1145dd(0xda)](),controller[a708_0x1145dd(0xe3)]),router['get'](a708_0x1145dd(0xdd),auth[a708_0x1145dd(0xda)](),controller['show']),router[a708_0x1145dd(0xe0)]('/:id/test',auth[a708_0x1145dd(0xda)](),timeout(a708_0x1145dd(0xd7)),controller[a708_0x1145dd(0xdb)]),router[a708_0x1145dd(0xe2)]('/',auth['isAuthenticated'](),controller[a708_0x1145dd(0xdf)]),router[a708_0x1145dd(0xdc)](a708_0x1145dd(0xdd),auth[a708_0x1145dd(0xda)](),controller[a708_0x1145dd(0xd5)]),router['delete'](a708_0x1145dd(0xdd),auth[a708_0x1145dd(0xda)](),controller[a708_0x1145dd(0xd6)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/squareOdbc/squareOdbc.attributes.js b/server/api/squareOdbc/squareOdbc.attributes.js index 5dd723e..592d4d2 100644 --- a/server/api/squareOdbc/squareOdbc.attributes.js +++ b/server/api/squareOdbc/squareOdbc.attributes.js @@ -1 +1 @@ -const a709_0x349c=['name','STRING','exports','sequelize'];(function(_0x994e0f,_0x5ab645){const _0x349cf8=function(_0x66c94a){while(--_0x66c94a){_0x994e0f['push'](_0x994e0f['shift']());}};_0x349cf8(++_0x5ab645);}(a709_0x349c,0x1cb));const a709_0x66c9=function(_0x994e0f,_0x5ab645){_0x994e0f=_0x994e0f-0x16f;let _0x349cf8=a709_0x349c[_0x994e0f];return _0x349cf8;};const a709_0x414d84=a709_0x66c9;'use strict';const {DataTypes}=require(a709_0x414d84(0x16f)),attributes={'name':{'type':DataTypes[a709_0x414d84(0x171)],'unique':a709_0x414d84(0x170),'allowNull':![]},'dsn':{'type':DataTypes[a709_0x414d84(0x171)]},'description':{'type':DataTypes[a709_0x414d84(0x171)]}};module[a709_0x414d84(0x172)]['attributes']=attributes; \ No newline at end of file +const a709_0x3931=['name','exports','STRING'];(function(_0x3316ea,_0x40e906){const _0x3931ca=function(_0x194511){while(--_0x194511){_0x3316ea['push'](_0x3316ea['shift']());}};_0x3931ca(++_0x40e906);}(a709_0x3931,0x14f));const a709_0x1945=function(_0x3316ea,_0x40e906){_0x3316ea=_0x3316ea-0x1b1;let _0x3931ca=a709_0x3931[_0x3316ea];return _0x3931ca;};const a709_0x7947e6=a709_0x1945;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes['STRING'],'unique':a709_0x7947e6(0x1b2),'allowNull':![]},'dsn':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a709_0x7947e6(0x1b1)]}};module[a709_0x7947e6(0x1b3)]['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 0c1829f..6b8f251 100644 --- a/server/api/squareOdbc/squareOdbc.controller.js +++ b/server/api/squareOdbc/squareOdbc.controller.js @@ -1 +1 @@ -const a710_0x5c1b=['offset','options','params','catch','keys','json','update','name','limit','set','error','show','UserProfileResource','pick','length','Unable\x20to\x20retrieve\x20the\x20current\x20user','filter','map','body','sort','autoAssociation','ODBC','model','openSync','nolimit','rows','attributes','../../config/logger','Content-Range','status','key','then','filters','lodash','api','user','get','end','closeSync','order','intersection','create','findOne','test','undefined','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','destroy','merge','userProfileId','findAll','rawAttributes','like','includeAll','UserProfileSection','VIRTUAL','SquareOdbc','fields','sequelize','fieldName','index','role','query','dsn','count','where'];(function(_0x385cf2,_0xd8f49){const _0x5c1b25=function(_0x3b47c3){while(--_0x3b47c3){_0x385cf2['push'](_0x385cf2['shift']());}};_0x5c1b25(++_0xd8f49);}(a710_0x5c1b,0xae));const a710_0x3b47=function(_0x385cf2,_0xd8f49){_0x385cf2=_0x385cf2-0x123;let _0x5c1b25=a710_0x5c1b[_0x385cf2];return _0x5c1b25;};const a710_0x4df290=a710_0x3b47;'use strict';const _=require(a710_0x4df290(0x159)),qs=require('../../components/parsers/qs'),logger=require(a710_0x4df290(0x153))(a710_0x4df290(0x15a)),{db}=require('../../mysqldb'),{Op}=require(a710_0x4df290(0x130));function respondWithResult(_0x158c5d,_0x4d3819){return _0x4d3819=_0x4d3819||0xc8,function(_0x3d5fdd){const _0x26fb21=a710_0x3b47;if(_0x3d5fdd)return _0x158c5d[_0x26fb21(0x155)](_0x4d3819)[_0x26fb21(0x13d)](_0x3d5fdd);};}function respondWithFilteredResult(_0x38b8fc,_0xe5b9ff){return function(_0x1e45c0){const _0x32c21a=a710_0x3b47;if(_0x1e45c0){const _0x3623c4=_0x1e45c0[_0x32c21a(0x136)],_0x43343f=_0xe5b9ff[_0x32c21a(0x138)];let _0x443c60=_0xe5b9ff[_0x32c21a(0x138)]+_0xe5b9ff['limit'],_0x3246c0;return _0x443c60>=_0x3623c4?(_0x443c60=_0x3623c4,_0x3246c0=0xc8):_0x3246c0=0xce,_0x38b8fc[_0x32c21a(0x155)](_0x3246c0),_0x38b8fc[_0x32c21a(0x141)](_0x32c21a(0x154),_0x43343f+'-'+_0x443c60+'/'+_0x3623c4)[_0x32c21a(0x13d)](_0x1e45c0);}return null;};}function saveUpdates(_0xddea38){return function(_0x41dd8e){const _0x5ab325=a710_0x3b47;if(_0x41dd8e)return _0x41dd8e[_0x5ab325(0x13e)](_0xddea38)[_0x5ab325(0x157)](function(_0x4ffefb){return _0x4ffefb;});return null;};}function removeEntity(_0x17f23e){return function(_0x132e9b){const _0x2cd6c8=a710_0x3b47;if(_0x132e9b)return _0x132e9b[_0x2cd6c8(0x125)]()['then'](function(){const _0x415852=_0x2cd6c8,_0x49aa30=_0x132e9b[_0x415852(0x15c)]({'plain':!![]}),_0x51e65f=_0x415852(0x14d);return db[_0x415852(0x144)][_0x415852(0x125)]({'where':{'type':_0x51e65f,'resourceId':_0x49aa30['id']}})[_0x415852(0x157)](function(){return _0x132e9b;});})[_0x2cd6c8(0x157)](function(){const _0xdbfd4a=_0x2cd6c8;_0x17f23e[_0xdbfd4a(0x155)](0xcc)[_0xdbfd4a(0x15d)]();});};}function handleEntityNotFound(_0x46e246){return function(_0x97cda4){return!_0x97cda4&&_0x46e246['sendStatus'](0x194),_0x97cda4;};}function handleError(_0x1405ac,_0x4868b8){return _0x4868b8=_0x4868b8||0x1f4,function(_0x3b5510){const _0x1343e3=a710_0x3b47;logger['error'](_0x3b5510['stack']),_0x3b5510[_0x1343e3(0x13f)]&&delete _0x3b5510[_0x1343e3(0x13f)],_0x1405ac[_0x1343e3(0x155)](_0x4868b8)['send'](_0x3b5510);};}exports[a710_0x4df290(0x132)]=function(_0x22a4e7,_0x440bab){const _0x2987d7=a710_0x4df290;let _0x2cacc2={};const _0xed5678={},_0x185302={'count':0x0,'rows':[]},_0x45f445=_['map'](db['SquareOdbc'][_0x2987d7(0x129)],function(_0x3a80a5){const _0x5609cb=_0x2987d7;return{'name':_0x3a80a5[_0x5609cb(0x131)],'type':_0x3a80a5['type'][_0x5609cb(0x156)]};});_0xed5678[_0x2987d7(0x14e)]=_[_0x2987d7(0x149)](_0x45f445,_0x2987d7(0x13f)),_0xed5678['query']=_['keys'](_0x22a4e7['query']),_0xed5678[_0x2987d7(0x158)]=_['intersection'](_0xed5678['model'],_0xed5678['query']),_0x2cacc2[_0x2987d7(0x152)]=_['intersection'](_0xed5678[_0x2987d7(0x14e)],qs[_0x2987d7(0x12f)](_0x22a4e7['query'][_0x2987d7(0x12f)])),_0x2cacc2['attributes']=_0x2cacc2[_0x2987d7(0x152)]['length']?_0x2cacc2[_0x2987d7(0x152)]:_0xed5678[_0x2987d7(0x14e)];typeof _0x22a4e7[_0x2987d7(0x134)][_0x2987d7(0x150)]===_0x2987d7(0x123)&&(_0x2cacc2[_0x2987d7(0x140)]=qs['limit'](_0x22a4e7[_0x2987d7(0x134)][_0x2987d7(0x140)]),_0x2cacc2[_0x2987d7(0x138)]=qs[_0x2987d7(0x138)](_0x22a4e7[_0x2987d7(0x134)][_0x2987d7(0x138)]));_0x2cacc2[_0x2987d7(0x15f)]=qs[_0x2987d7(0x14b)](_0x22a4e7[_0x2987d7(0x134)]['sort']),_0x2cacc2[_0x2987d7(0x137)]=qs[_0x2987d7(0x158)](_[_0x2987d7(0x145)](_0x22a4e7['query'],_0xed5678[_0x2987d7(0x158)]),_0x45f445);_0x22a4e7[_0x2987d7(0x134)][_0x2987d7(0x148)]&&(_0x2cacc2['where']=_[_0x2987d7(0x126)](_0x2cacc2[_0x2987d7(0x137)],{[Op['or']]:_['map'](_0x45f445,function(_0x217221){const _0x36121e=_0x2987d7;if(_0x217221['type']!==_0x36121e(0x12d)){const _0x277fb2={};return _0x277fb2[_0x217221[_0x36121e(0x13f)]]={[Op[_0x36121e(0x12a)]]:'%'+_0x22a4e7[_0x36121e(0x134)]['filter']+'%'},_0x277fb2;}})}));_0x2cacc2=_[_0x2987d7(0x126)]({},_0x2cacc2,_0x22a4e7[_0x2987d7(0x139)]);const _0x7033af={'where':_0x2cacc2[_0x2987d7(0x137)]};return db[_0x2987d7(0x12e)][_0x2987d7(0x136)](_0x7033af)[_0x2987d7(0x157)](function(_0x1add17){const _0x353174=_0x2987d7;return _0x185302[_0x353174(0x136)]=_0x1add17,_0x22a4e7[_0x353174(0x134)][_0x353174(0x12b)]&&(_0x2cacc2['include']=[{'all':!![]}]),db[_0x353174(0x12e)][_0x353174(0x128)](_0x2cacc2);})[_0x2987d7(0x157)](function(_0x2f3b5f){const _0x3b0d7e=_0x2987d7;return _0x185302[_0x3b0d7e(0x151)]=_0x2f3b5f,_0x185302;})[_0x2987d7(0x157)](respondWithFilteredResult(_0x440bab,_0x2cacc2))['catch'](handleError(_0x440bab,null));},exports[a710_0x4df290(0x143)]=function(_0x4d4b28,_0x4fe0ff){const _0x3dec92=a710_0x4df290;let _0x179c1e={'raw':!![],'where':{'id':_0x4d4b28['params']['id']}};const _0x549e09={};return _0x549e09[_0x3dec92(0x14e)]=_[_0x3dec92(0x13c)](db[_0x3dec92(0x12e)]['rawAttributes']),_0x549e09[_0x3dec92(0x134)]=_['keys'](_0x4d4b28[_0x3dec92(0x134)]),_0x549e09[_0x3dec92(0x158)]=_[_0x3dec92(0x160)](_0x549e09[_0x3dec92(0x14e)],_0x549e09[_0x3dec92(0x134)]),_0x179c1e[_0x3dec92(0x152)]=_[_0x3dec92(0x160)](_0x549e09['model'],qs['fields'](_0x4d4b28[_0x3dec92(0x134)][_0x3dec92(0x12f)])),_0x179c1e[_0x3dec92(0x152)]=_0x179c1e[_0x3dec92(0x152)][_0x3dec92(0x146)]?_0x179c1e[_0x3dec92(0x152)]:_0x549e09[_0x3dec92(0x14e)],_0x4d4b28[_0x3dec92(0x134)][_0x3dec92(0x12b)]&&(_0x179c1e['include']=[{'all':!![]}]),_0x179c1e=_[_0x3dec92(0x126)]({},_0x179c1e,_0x4d4b28[_0x3dec92(0x139)]),db[_0x3dec92(0x12e)][_0x3dec92(0x162)](_0x179c1e)[_0x3dec92(0x157)](handleEntityNotFound(_0x4fe0ff,null))[_0x3dec92(0x157)](respondWithResult(_0x4fe0ff,null))[_0x3dec92(0x13b)](handleError(_0x4fe0ff,null));},exports[a710_0x4df290(0x161)]=function(_0x422c66,_0x459486){const _0x3323ab=a710_0x4df290;return db[_0x3323ab(0x12e)][_0x3323ab(0x161)](_0x422c66[_0x3323ab(0x14a)],{})[_0x3323ab(0x157)](function(_0x55508c){const _0x1f7d73=_0x3323ab,_0x4a6319=_0x422c66[_0x1f7d73(0x15b)][_0x1f7d73(0x15c)]({'plain':!![]});if(!_0x4a6319)throw new Error(_0x1f7d73(0x147));if(_0x4a6319[_0x1f7d73(0x133)]===_0x1f7d73(0x15b)){const _0x585b0b=_0x55508c['get']({'plain':!![]}),_0x4e3f99=_0x1f7d73(0x14d);return db[_0x1f7d73(0x12c)][_0x1f7d73(0x162)]({'where':{'name':_0x4e3f99,'userProfileId':_0x4a6319[_0x1f7d73(0x127)]},'raw':!![]})['then'](function(_0x5010fa){const _0x42bfda=_0x1f7d73;return _0x5010fa&&_0x5010fa[_0x42bfda(0x14c)]===0x0?db[_0x42bfda(0x144)]['create']({'name':_0x585b0b[_0x42bfda(0x13f)],'resourceId':_0x585b0b['id'],'type':_0x5010fa[_0x42bfda(0x13f)],'sectionId':_0x5010fa['id']},{})['then'](function(){return _0x55508c;}):_0x55508c;})[_0x1f7d73(0x13b)](function(_0x48fb82){const _0xb675fb=_0x1f7d73;logger[_0xb675fb(0x142)](_0xb675fb(0x124),_0x48fb82);throw _0x48fb82;});}return _0x55508c;})[_0x3323ab(0x157)](respondWithResult(_0x459486,0xc9))['catch'](handleError(_0x459486,null));},exports[a710_0x4df290(0x13e)]=function(_0x5c3862,_0x38032d){const _0x37b6ab=a710_0x4df290;return _0x5c3862[_0x37b6ab(0x14a)]['id']&&delete _0x5c3862['body']['id'],db[_0x37b6ab(0x12e)][_0x37b6ab(0x162)]({'where':{'id':_0x5c3862[_0x37b6ab(0x13a)]['id']}})[_0x37b6ab(0x157)](handleEntityNotFound(_0x38032d,null))[_0x37b6ab(0x157)](saveUpdates(_0x5c3862[_0x37b6ab(0x14a)],null))[_0x37b6ab(0x157)](respondWithResult(_0x38032d,null))[_0x37b6ab(0x13b)](handleError(_0x38032d,null));},exports[a710_0x4df290(0x125)]=function(_0x4d571a,_0xe1d744){const _0x3436d2=a710_0x4df290;return db[_0x3436d2(0x12e)][_0x3436d2(0x162)]({'where':{'id':_0x4d571a[_0x3436d2(0x13a)]['id']}})[_0x3436d2(0x157)](handleEntityNotFound(_0xe1d744,null))['then'](removeEntity(_0xe1d744,null))[_0x3436d2(0x13b)](handleError(_0xe1d744,null));},exports[a710_0x4df290(0x163)]=function(_0x1d8d85,_0x19adfc){const _0x402f24=a710_0x4df290;return db['SquareOdbc'][_0x402f24(0x162)]({'where':{'id':_0x1d8d85[_0x402f24(0x13a)]['id']},'attributes':['id',_0x402f24(0x135)]})[_0x402f24(0x157)](handleEntityNotFound(_0x19adfc,null))['then'](function(_0xe8a9c6){const _0x2fff92=_0x402f24;if(_0xe8a9c6){const _0x1e3b4b=require('odbc')();return _0x1e3b4b[_0x2fff92(0x14f)](_0xe8a9c6[_0x2fff92(0x135)]),_0x1e3b4b[_0x2fff92(0x15e)](),_0xe8a9c6;}})['then'](respondWithResult(_0x19adfc,null))[_0x402f24(0x13b)](handleError(_0x19adfc,null));}; \ No newline at end of file +const a710_0x4cd4=['SquareOdbc','set','type','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','map','key','stack','model','show','catch','body','../../mysqldb','status','UserProfileResource','user','odbc','name','sort','where','UserProfileSection','fields','limit','Unable\x20to\x20retrieve\x20the\x20current\x20user','offset','count','../../config/logger','intersection','query','update','pick','params','merge','test','then','Content-Range','send','sendStatus','includeAll','filter','index','nolimit','sequelize','options','fieldName','create','ODBC','get','dsn','keys','findOne','rows','end','length','json','api','autoAssociation','rawAttributes','filters','destroy','lodash','attributes'];(function(_0x23b75f,_0x3bfb4e){const _0x4cd4ae=function(_0x826b05){while(--_0x826b05){_0x23b75f['push'](_0x23b75f['shift']());}};_0x4cd4ae(++_0x3bfb4e);}(a710_0x4cd4,0x102));const a710_0x826b=function(_0x23b75f,_0x3bfb4e){_0x23b75f=_0x23b75f-0x1f3;let _0x4cd4ae=a710_0x4cd4[_0x23b75f];return _0x4cd4ae;};const a710_0x1ef763=a710_0x826b;'use strict';const _=require(a710_0x1ef763(0x220)),qs=require('../../components/parsers/qs'),logger=require(a710_0x1ef763(0x1fe))(a710_0x1ef763(0x21b)),{db}=require(a710_0x1ef763(0x22d)),{Op}=require(a710_0x1ef763(0x20e));function respondWithResult(_0xa88d31,_0x45af5f){return _0x45af5f=_0x45af5f||0xc8,function(_0x493058){const _0x6c6d4e=a710_0x826b;if(_0x493058)return _0xa88d31['status'](_0x45af5f)[_0x6c6d4e(0x21a)](_0x493058);};}function respondWithFilteredResult(_0x43f2da,_0x4dd9f7){return function(_0x192afa){const _0x2e7218=a710_0x826b;if(_0x192afa){const _0x3961e2=_0x192afa['count'],_0x39c6bb=_0x4dd9f7[_0x2e7218(0x1fc)];let _0x328bdb=_0x4dd9f7[_0x2e7218(0x1fc)]+_0x4dd9f7[_0x2e7218(0x1fa)],_0x5929de;return _0x328bdb>=_0x3961e2?(_0x328bdb=_0x3961e2,_0x5929de=0xc8):_0x5929de=0xce,_0x43f2da['status'](_0x5929de),_0x43f2da[_0x2e7218(0x223)](_0x2e7218(0x207),_0x39c6bb+'-'+_0x328bdb+'/'+_0x3961e2)[_0x2e7218(0x21a)](_0x192afa);}return null;};}function saveUpdates(_0x3fa93a){return function(_0x5cc723){const _0xecdd3f=a710_0x826b;if(_0x5cc723)return _0x5cc723[_0xecdd3f(0x201)](_0x3fa93a)[_0xecdd3f(0x206)](function(_0x5ae3cd){return _0x5ae3cd;});return null;};}function removeEntity(_0x55186d){return function(_0x468a7a){const _0x466b11=a710_0x826b;if(_0x468a7a)return _0x468a7a[_0x466b11(0x21f)]()[_0x466b11(0x206)](function(){const _0xc0a89b=_0x466b11,_0x3bf80f=_0x468a7a['get']({'plain':!![]}),_0x18f0a1=_0xc0a89b(0x212);return db['UserProfileResource']['destroy']({'where':{'type':_0x18f0a1,'resourceId':_0x3bf80f['id']}})[_0xc0a89b(0x206)](function(){return _0x468a7a;});})[_0x466b11(0x206)](function(){const _0x3e47f7=_0x466b11;_0x55186d[_0x3e47f7(0x22e)](0xcc)[_0x3e47f7(0x218)]();});};}function handleEntityNotFound(_0x3e83c7){return function(_0x3eb471){const _0x5b2281=a710_0x826b;return!_0x3eb471&&_0x3e83c7[_0x5b2281(0x209)](0x194),_0x3eb471;};}function handleError(_0x2ed7fa,_0x1ecd6f){return _0x1ecd6f=_0x1ecd6f||0x1f4,function(_0x469d19){const _0x42eec2=a710_0x826b;logger['error'](_0x469d19[_0x42eec2(0x228)]),_0x469d19[_0x42eec2(0x1f5)]&&delete _0x469d19[_0x42eec2(0x1f5)],_0x2ed7fa[_0x42eec2(0x22e)](_0x1ecd6f)[_0x42eec2(0x208)](_0x469d19);};}exports[a710_0x1ef763(0x20c)]=function(_0x3a6eb9,_0x40199a){const _0x1d13fb=a710_0x1ef763;let _0x34672a={};const _0x10acb3={},_0x5f357a={'count':0x0,'rows':[]},_0x197956=_[_0x1d13fb(0x226)](db[_0x1d13fb(0x222)][_0x1d13fb(0x21d)],function(_0x1e5145){const _0x269851=_0x1d13fb;return{'name':_0x1e5145[_0x269851(0x210)],'type':_0x1e5145[_0x269851(0x224)][_0x269851(0x227)]};});_0x10acb3['model']=_[_0x1d13fb(0x226)](_0x197956,_0x1d13fb(0x1f5)),_0x10acb3[_0x1d13fb(0x200)]=_[_0x1d13fb(0x215)](_0x3a6eb9[_0x1d13fb(0x200)]),_0x10acb3[_0x1d13fb(0x21e)]=_[_0x1d13fb(0x1ff)](_0x10acb3[_0x1d13fb(0x229)],_0x10acb3[_0x1d13fb(0x200)]),_0x34672a[_0x1d13fb(0x221)]=_[_0x1d13fb(0x1ff)](_0x10acb3[_0x1d13fb(0x229)],qs[_0x1d13fb(0x1f9)](_0x3a6eb9[_0x1d13fb(0x200)][_0x1d13fb(0x1f9)])),_0x34672a[_0x1d13fb(0x221)]=_0x34672a[_0x1d13fb(0x221)]['length']?_0x34672a[_0x1d13fb(0x221)]:_0x10acb3[_0x1d13fb(0x229)];typeof _0x3a6eb9[_0x1d13fb(0x200)][_0x1d13fb(0x20d)]==='undefined'&&(_0x34672a[_0x1d13fb(0x1fa)]=qs['limit'](_0x3a6eb9['query']['limit']),_0x34672a[_0x1d13fb(0x1fc)]=qs[_0x1d13fb(0x1fc)](_0x3a6eb9['query'][_0x1d13fb(0x1fc)]));_0x34672a['order']=qs[_0x1d13fb(0x1f6)](_0x3a6eb9[_0x1d13fb(0x200)]['sort']),_0x34672a[_0x1d13fb(0x1f7)]=qs[_0x1d13fb(0x21e)](_[_0x1d13fb(0x202)](_0x3a6eb9['query'],_0x10acb3['filters']),_0x197956);_0x3a6eb9[_0x1d13fb(0x200)][_0x1d13fb(0x20b)]&&(_0x34672a['where']=_[_0x1d13fb(0x204)](_0x34672a[_0x1d13fb(0x1f7)],{[Op['or']]:_['map'](_0x197956,function(_0x56a786){const _0x42d548=_0x1d13fb;if(_0x56a786['type']!=='VIRTUAL'){const _0x33381f={};return _0x33381f[_0x56a786[_0x42d548(0x1f5)]]={[Op['like']]:'%'+_0x3a6eb9[_0x42d548(0x200)][_0x42d548(0x20b)]+'%'},_0x33381f;}})}));_0x34672a=_[_0x1d13fb(0x204)]({},_0x34672a,_0x3a6eb9['options']);const _0xe626b0={'where':_0x34672a[_0x1d13fb(0x1f7)]};return db['SquareOdbc']['count'](_0xe626b0)['then'](function(_0x35dd2d){const _0x10be72=_0x1d13fb;return _0x5f357a[_0x10be72(0x1fd)]=_0x35dd2d,_0x3a6eb9[_0x10be72(0x200)][_0x10be72(0x20a)]&&(_0x34672a['include']=[{'all':!![]}]),db['SquareOdbc']['findAll'](_0x34672a);})[_0x1d13fb(0x206)](function(_0x15096e){const _0x109534=_0x1d13fb;return _0x5f357a[_0x109534(0x217)]=_0x15096e,_0x5f357a;})[_0x1d13fb(0x206)](respondWithFilteredResult(_0x40199a,_0x34672a))[_0x1d13fb(0x22b)](handleError(_0x40199a,null));},exports[a710_0x1ef763(0x22a)]=function(_0x5dc394,_0x3c23e4){const _0x144177=a710_0x1ef763;let _0x5efa09={'raw':!![],'where':{'id':_0x5dc394[_0x144177(0x203)]['id']}};const _0x254076={};return _0x254076[_0x144177(0x229)]=_['keys'](db[_0x144177(0x222)][_0x144177(0x21d)]),_0x254076[_0x144177(0x200)]=_[_0x144177(0x215)](_0x5dc394[_0x144177(0x200)]),_0x254076[_0x144177(0x21e)]=_[_0x144177(0x1ff)](_0x254076[_0x144177(0x229)],_0x254076[_0x144177(0x200)]),_0x5efa09['attributes']=_[_0x144177(0x1ff)](_0x254076['model'],qs[_0x144177(0x1f9)](_0x5dc394[_0x144177(0x200)][_0x144177(0x1f9)])),_0x5efa09[_0x144177(0x221)]=_0x5efa09['attributes'][_0x144177(0x219)]?_0x5efa09[_0x144177(0x221)]:_0x254076[_0x144177(0x229)],_0x5dc394['query']['includeAll']&&(_0x5efa09['include']=[{'all':!![]}]),_0x5efa09=_[_0x144177(0x204)]({},_0x5efa09,_0x5dc394[_0x144177(0x20f)]),db[_0x144177(0x222)][_0x144177(0x216)](_0x5efa09)[_0x144177(0x206)](handleEntityNotFound(_0x3c23e4,null))[_0x144177(0x206)](respondWithResult(_0x3c23e4,null))[_0x144177(0x22b)](handleError(_0x3c23e4,null));},exports[a710_0x1ef763(0x211)]=function(_0x2badec,_0x1370d1){const _0x1df133=a710_0x1ef763;return db[_0x1df133(0x222)]['create'](_0x2badec[_0x1df133(0x22c)],{})['then'](function(_0x291148){const _0x59c5d8=_0x1df133,_0x137d18=_0x2badec[_0x59c5d8(0x1f3)]['get']({'plain':!![]});if(!_0x137d18)throw new Error(_0x59c5d8(0x1fb));if(_0x137d18['role']===_0x59c5d8(0x1f3)){const _0x470412=_0x291148[_0x59c5d8(0x213)]({'plain':!![]}),_0x398599=_0x59c5d8(0x212);return db[_0x59c5d8(0x1f8)][_0x59c5d8(0x216)]({'where':{'name':_0x398599,'userProfileId':_0x137d18['userProfileId']},'raw':!![]})['then'](function(_0x11e1bc){const _0x598c12=_0x59c5d8;return _0x11e1bc&&_0x11e1bc[_0x598c12(0x21c)]===0x0?db[_0x598c12(0x22f)][_0x598c12(0x211)]({'name':_0x470412['name'],'resourceId':_0x470412['id'],'type':_0x11e1bc[_0x598c12(0x1f5)],'sectionId':_0x11e1bc['id']},{})['then'](function(){return _0x291148;}):_0x291148;})[_0x59c5d8(0x22b)](function(_0x46bbb0){const _0x56a6e3=_0x59c5d8;logger['error'](_0x56a6e3(0x225),_0x46bbb0);throw _0x46bbb0;});}return _0x291148;})['then'](respondWithResult(_0x1370d1,0xc9))[_0x1df133(0x22b)](handleError(_0x1370d1,null));},exports[a710_0x1ef763(0x201)]=function(_0x597507,_0x555aaa){const _0x228d69=a710_0x1ef763;return _0x597507[_0x228d69(0x22c)]['id']&&delete _0x597507[_0x228d69(0x22c)]['id'],db['SquareOdbc'][_0x228d69(0x216)]({'where':{'id':_0x597507[_0x228d69(0x203)]['id']}})[_0x228d69(0x206)](handleEntityNotFound(_0x555aaa,null))[_0x228d69(0x206)](saveUpdates(_0x597507[_0x228d69(0x22c)],null))[_0x228d69(0x206)](respondWithResult(_0x555aaa,null))[_0x228d69(0x22b)](handleError(_0x555aaa,null));},exports['destroy']=function(_0x5cfa71,_0x56a764){const _0x256612=a710_0x1ef763;return db['SquareOdbc'][_0x256612(0x216)]({'where':{'id':_0x5cfa71[_0x256612(0x203)]['id']}})[_0x256612(0x206)](handleEntityNotFound(_0x56a764,null))[_0x256612(0x206)](removeEntity(_0x56a764,null))[_0x256612(0x22b)](handleError(_0x56a764,null));},exports[a710_0x1ef763(0x205)]=function(_0x55db47,_0x1e9eab){const _0x2e4748=a710_0x1ef763;return db[_0x2e4748(0x222)][_0x2e4748(0x216)]({'where':{'id':_0x55db47[_0x2e4748(0x203)]['id']},'attributes':['id',_0x2e4748(0x214)]})[_0x2e4748(0x206)](handleEntityNotFound(_0x1e9eab,null))[_0x2e4748(0x206)](function(_0x424924){const _0x385f74=_0x2e4748;if(_0x424924){const _0x34806b=require(_0x385f74(0x1f4))();return _0x34806b['openSync'](_0x424924[_0x385f74(0x214)]),_0x34806b['closeSync'](),_0x424924;}})[_0x2e4748(0x206)](respondWithResult(_0x1e9eab,null))['catch'](handleError(_0x1e9eab,null));}; \ No newline at end of file diff --git a/server/api/squareOdbc/squareOdbc.model.js b/server/api/squareOdbc/squareOdbc.model.js index ed12669..4631d3c 100644 --- a/server/api/squareOdbc/squareOdbc.model.js +++ b/server/api/squareOdbc/squareOdbc.model.js @@ -1 +1 @@ -const a711_0x47dd=['sequelize','init','exports','SquareOdbc','function','./squareOdbc.options'];(function(_0x1e7275,_0x54fd71){const _0x47dddc=function(_0x2d1ca){while(--_0x2d1ca){_0x1e7275['push'](_0x1e7275['shift']());}};_0x47dddc(++_0x54fd71);}(a711_0x47dd,0x109));const a711_0x2d1c=function(_0x1e7275,_0x54fd71){_0x1e7275=_0x1e7275-0x153;let _0x47dddc=a711_0x47dd[_0x1e7275];return _0x47dddc;};const a711_0x56e180=a711_0x2d1c;'use strict';const {Model}=require(a711_0x56e180(0x158)),{attributes}=require('./squareOdbc.attributes'),{options}=require(a711_0x56e180(0x157));class SquareOdbc extends Model{}function init(_0x40bde9,_0x298c9b){const _0x503e58=a711_0x56e180,_0xeacb2a=options(_0x40bde9),_0x435784=typeof _0x298c9b===_0x503e58(0x156)?_0x298c9b(_0xeacb2a):_0xeacb2a;return SquareOdbc[_0x503e58(0x153)](attributes,_0x435784),SquareOdbc;}module[a711_0x56e180(0x154)][a711_0x56e180(0x155)]=SquareOdbc,module[a711_0x56e180(0x154)]['init']=init; \ No newline at end of file +const a711_0x3bba=['sequelize','./squareOdbc.options','./squareOdbc.attributes','exports','init','SquareOdbc','function'];(function(_0x1717e1,_0x237bf3){const _0x3bba81=function(_0x2def6e){while(--_0x2def6e){_0x1717e1['push'](_0x1717e1['shift']());}};_0x3bba81(++_0x237bf3);}(a711_0x3bba,0x195));const a711_0x2def=function(_0x1717e1,_0x237bf3){_0x1717e1=_0x1717e1-0xd2;let _0x3bba81=a711_0x3bba[_0x1717e1];return _0x3bba81;};const a711_0x3efd8d=a711_0x2def;'use strict';const {Model}=require(a711_0x3efd8d(0xd3)),{attributes}=require(a711_0x3efd8d(0xd5)),{options}=require(a711_0x3efd8d(0xd4));class SquareOdbc extends Model{}function init(_0x5b391b,_0x5e8af8){const _0x583678=a711_0x3efd8d,_0x5793c8=options(_0x5b391b),_0xc59bcb=typeof _0x5e8af8===_0x583678(0xd2)?_0x5e8af8(_0x5793c8):_0x5793c8;return SquareOdbc[_0x583678(0xd7)](attributes,_0xc59bcb),SquareOdbc;}module[a711_0x3efd8d(0xd6)][a711_0x3efd8d(0xd8)]=SquareOdbc,module[a711_0x3efd8d(0xd6)][a711_0x3efd8d(0xd7)]=init; \ No newline at end of file diff --git a/server/api/squareOdbc/squareOdbc.options.js b/server/api/squareOdbc/squareOdbc.options.js index b624a20..22dcef4 100644 --- a/server/api/squareOdbc/squareOdbc.options.js +++ b/server/api/squareOdbc/squareOdbc.options.js @@ -1 +1 @@ -var a712_0x33b9=['exports','square_odbc'];(function(_0x2ed608,_0x40a5dd){var _0x33b904=function(_0x42b8a4){while(--_0x42b8a4){_0x2ed608['push'](_0x2ed608['shift']());}};_0x33b904(++_0x40a5dd);}(a712_0x33b9,0x122));var a712_0x42b8=function(_0x2ed608,_0x40a5dd){_0x2ed608=_0x2ed608-0x68;var _0x33b904=a712_0x33b9[_0x2ed608];return _0x33b904;};var a712_0x6728ff=a712_0x42b8;function options(_0x52f01e){var _0x55b6dc=a712_0x42b8;return{'sequelize':_0x52f01e,'tableName':_0x55b6dc(0x69),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a712_0x6728ff(0x68)]['options']=options; \ No newline at end of file +var a712_0x193d=['square_odbc','exports','options'];(function(_0xee6435,_0x4c7978){var _0x193d94=function(_0x25e52e){while(--_0x25e52e){_0xee6435['push'](_0xee6435['shift']());}};_0x193d94(++_0x4c7978);}(a712_0x193d,0x1d9));var a712_0x25e5=function(_0xee6435,_0x4c7978){_0xee6435=_0xee6435-0xb6;var _0x193d94=a712_0x193d[_0xee6435];return _0x193d94;};var a712_0x5699d=a712_0x25e5;function options(_0x170617){var _0x27027d=a712_0x25e5;return{'sequelize':_0x170617,'tableName':_0x27027d(0xb7),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a712_0x5699d(0xb8)][a712_0x5699d(0xb6)]=options; \ No newline at end of file diff --git a/server/api/squareOdbc/squareOdbc.rpc.js b/server/api/squareOdbc/squareOdbc.rpc.js index 9dcd042..cf69d18 100644 --- a/server/api/squareOdbc/squareOdbc.rpc.js +++ b/server/api/squareOdbc/squareOdbc.rpc.js @@ -1 +1 @@ -const a713_0x592e=['findOne','where','then','error','info','message','catch','map','lodash','options','rpc','attributes','debug','ShowSquareOdbc','include','model','SquareOdbc','raw','../../config/logger'];(function(_0x269006,_0x34bffd){const _0x592e88=function(_0x7fda17){while(--_0x7fda17){_0x269006['push'](_0x269006['shift']());}};_0x592e88(++_0x34bffd);}(a713_0x592e,0x1c7));const a713_0x7fda=function(_0x269006,_0x34bffd){_0x269006=_0x269006-0x1d0;let _0x592e88=a713_0x592e[_0x269006];return _0x592e88;};const a713_0x3e0285=a713_0x7fda;'use strict';const db=require('../../mysqldb')['db'],logger=require(a713_0x3e0285(0x1d0))(a713_0x3e0285(0x1db)),_=require(a713_0x3e0285(0x1d9));exports[a713_0x3e0285(0x1de)]=function(_0x45b126){const _0x5ade75=this;return new Promise(function(_0x33d692,_0x180727){const _0x16520d=a713_0x7fda;return db[_0x16520d(0x1e1)][_0x16520d(0x1d1)]({'raw':_0x45b126[_0x16520d(0x1da)]?_0x45b126['options'][_0x16520d(0x1e2)]===undefined?!![]:![]:!![],'where':_0x45b126[_0x16520d(0x1da)]?_0x45b126[_0x16520d(0x1da)][_0x16520d(0x1d2)]||null:null,'attributes':_0x45b126['options']?_0x45b126[_0x16520d(0x1da)][_0x16520d(0x1dc)]||null:null,'include':_0x45b126[_0x16520d(0x1da)]?_0x45b126['options'][_0x16520d(0x1df)]?_[_0x16520d(0x1d8)](_0x45b126[_0x16520d(0x1da)]['include'],function(_0x46c36b){const _0x596a2=_0x16520d;return{'model':db[_0x46c36b[_0x596a2(0x1e0)]],'as':_0x46c36b['as'],'attributes':_0x46c36b['attributes'],'include':_0x46c36b[_0x596a2(0x1df)]?_[_0x596a2(0x1d8)](_0x46c36b['include'],function(_0x461703){const _0x245513=_0x596a2;return{'model':db[_0x461703['model']],'as':_0x461703['as'],'attributes':_0x461703['attributes'],'include':_0x461703[_0x245513(0x1df)]?_[_0x245513(0x1d8)](_0x461703[_0x245513(0x1df)],function(_0x1c7eeb){const _0x22e63c=_0x245513;return{'model':db[_0x1c7eeb[_0x22e63c(0x1e0)]],'as':_0x1c7eeb['as'],'attributes':_0x1c7eeb['attributes']};}):[]};}):[]};}):[]:[]})[_0x16520d(0x1d3)](function(_0x2421dd){const _0x2fe18c=_0x16520d;logger[_0x2fe18c(0x1d5)](_0x2fe18c(0x1de),_0x45b126),logger[_0x2fe18c(0x1dd)]('ShowSquareOdbc',_0x45b126,JSON['stringify'](_0x2421dd)),_0x33d692(_0x2421dd);})[_0x16520d(0x1d7)](function(_0x4db27d){const _0x49cb0c=_0x16520d;logger['error'](_0x49cb0c(0x1de),_0x4db27d['message'],_0x45b126),_0x180727(_0x5ade75[_0x49cb0c(0x1d4)](0x1f4,_0x4db27d[_0x49cb0c(0x1d6)]));});});}; \ No newline at end of file +const a713_0x1563=['map','error','raw','catch','message','debug','include','lodash','attributes','options','findOne','model','SquareOdbc','info','then','ShowSquareOdbc','rpc','stringify'];(function(_0x207706,_0x33195f){const _0x1563fc=function(_0x9b8437){while(--_0x9b8437){_0x207706['push'](_0x207706['shift']());}};_0x1563fc(++_0x33195f);}(a713_0x1563,0x118));const a713_0x9b84=function(_0x207706,_0x33195f){_0x207706=_0x207706-0x1e4;let _0x1563fc=a713_0x1563[_0x207706];return _0x1563fc;};const a713_0x33bf38=a713_0x9b84;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(a713_0x33bf38(0x1ea)),_=require(a713_0x33bf38(0x1f3));exports[a713_0x33bf38(0x1e9)]=function(_0x14f411){const _0x104232=this;return new Promise(function(_0x5326c9,_0x1ec4c4){const _0x4eb202=a713_0x9b84;return db[_0x4eb202(0x1e6)][_0x4eb202(0x1e4)]({'raw':_0x14f411['options']?_0x14f411[_0x4eb202(0x1f5)][_0x4eb202(0x1ee)]===undefined?!![]:![]:!![],'where':_0x14f411['options']?_0x14f411[_0x4eb202(0x1f5)]['where']||null:null,'attributes':_0x14f411[_0x4eb202(0x1f5)]?_0x14f411['options'][_0x4eb202(0x1f4)]||null:null,'include':_0x14f411[_0x4eb202(0x1f5)]?_0x14f411[_0x4eb202(0x1f5)][_0x4eb202(0x1f2)]?_[_0x4eb202(0x1ec)](_0x14f411[_0x4eb202(0x1f5)][_0x4eb202(0x1f2)],function(_0x3df2ae){const _0x1a7d2f=_0x4eb202;return{'model':db[_0x3df2ae[_0x1a7d2f(0x1e5)]],'as':_0x3df2ae['as'],'attributes':_0x3df2ae['attributes'],'include':_0x3df2ae[_0x1a7d2f(0x1f2)]?_[_0x1a7d2f(0x1ec)](_0x3df2ae[_0x1a7d2f(0x1f2)],function(_0x47e7e2){const _0x4c0861=_0x1a7d2f;return{'model':db[_0x47e7e2[_0x4c0861(0x1e5)]],'as':_0x47e7e2['as'],'attributes':_0x47e7e2[_0x4c0861(0x1f4)],'include':_0x47e7e2['include']?_['map'](_0x47e7e2[_0x4c0861(0x1f2)],function(_0x331262){const _0x126985=_0x4c0861;return{'model':db[_0x331262[_0x126985(0x1e5)]],'as':_0x331262['as'],'attributes':_0x331262[_0x126985(0x1f4)]};}):[]};}):[]};}):[]:[]})[_0x4eb202(0x1e8)](function(_0x4f1434){const _0x373656=_0x4eb202;logger[_0x373656(0x1e7)](_0x373656(0x1e9),_0x14f411),logger[_0x373656(0x1f1)]('ShowSquareOdbc',_0x14f411,JSON[_0x373656(0x1eb)](_0x4f1434)),_0x5326c9(_0x4f1434);})[_0x4eb202(0x1ef)](function(_0x2a9f89){const _0x1bcd6e=_0x4eb202;logger[_0x1bcd6e(0x1ed)]('ShowSquareOdbc',_0x2a9f89['message'],_0x14f411),_0x1ec4c4(_0x104232[_0x1bcd6e(0x1ed)](0x1f4,_0x2a9f89[_0x1bcd6e(0x1f0)]));});});}; \ No newline at end of file diff --git a/server/api/squareProject/index.js b/server/api/squareProject/index.js index cd32889..4f2f5c0 100644 --- a/server/api/squareProject/index.js +++ b/server/api/squareProject/index.js @@ -1 +1 @@ -const a714_0x7e45=['exports','update','put','isAuthenticated','Router','index','delete','addUsers','getUsers','./squareProject.controller','../../components/auth/service','get','destroy','post','/:id','/:id/users'];(function(_0x38eb34,_0x19d447){const _0x7e453=function(_0x21cbe6){while(--_0x21cbe6){_0x38eb34['push'](_0x38eb34['shift']());}};_0x7e453(++_0x19d447);}(a714_0x7e45,0x113));const a714_0x21cb=function(_0x38eb34,_0x19d447){_0x38eb34=_0x38eb34-0x14d;let _0x7e453=a714_0x7e45[_0x38eb34];return _0x7e453;};const a714_0x19eb06=a714_0x21cb;'use strict';const express=require('express'),router=express[a714_0x19eb06(0x14e)](),auth=require(a714_0x19eb06(0x154)),controller=require(a714_0x19eb06(0x153));router[a714_0x19eb06(0x155)]('/',auth[a714_0x19eb06(0x14d)](),controller[a714_0x19eb06(0x14f)]),router['get'](a714_0x19eb06(0x158),auth[a714_0x19eb06(0x14d)](),controller['show']),router[a714_0x19eb06(0x155)](a714_0x19eb06(0x159),auth[a714_0x19eb06(0x14d)](),controller[a714_0x19eb06(0x152)]),router[a714_0x19eb06(0x157)]('/',auth[a714_0x19eb06(0x14d)](),controller['create']),router[a714_0x19eb06(0x157)]('/:id/users',auth[a714_0x19eb06(0x14d)](),controller[a714_0x19eb06(0x151)]),router[a714_0x19eb06(0x15c)]('/:id',auth[a714_0x19eb06(0x14d)](),controller[a714_0x19eb06(0x15b)]),router['delete'](a714_0x19eb06(0x158),auth['isAuthenticated'](),controller[a714_0x19eb06(0x156)]),router[a714_0x19eb06(0x150)](a714_0x19eb06(0x159),auth[a714_0x19eb06(0x14d)](),controller['removeUsers']),module[a714_0x19eb06(0x15a)]=router; \ No newline at end of file +const a714_0x5d44=['destroy','addUsers','get','post','show','index','../../components/auth/service','put','/:id','./squareProject.controller','/:id/users','Router','isAuthenticated','delete','create','exports'];(function(_0x363601,_0x3ed138){const _0x5d4484=function(_0x49596d){while(--_0x49596d){_0x363601['push'](_0x363601['shift']());}};_0x5d4484(++_0x3ed138);}(a714_0x5d44,0xab));const a714_0x4959=function(_0x363601,_0x3ed138){_0x363601=_0x363601-0xc7;let _0x5d4484=a714_0x5d44[_0x363601];return _0x5d4484;};const a714_0x126869=a714_0x4959;'use strict';const express=require('express'),router=express[a714_0x126869(0xc7)](),auth=require(a714_0x126869(0xd2)),controller=require(a714_0x126869(0xd5));router['get']('/',auth[a714_0x126869(0xc8)](),controller[a714_0x126869(0xd1)]),router[a714_0x126869(0xce)]('/:id',auth[a714_0x126869(0xc8)](),controller[a714_0x126869(0xd0)]),router[a714_0x126869(0xce)]('/:id/users',auth['isAuthenticated'](),controller['getUsers']),router[a714_0x126869(0xcf)]('/',auth[a714_0x126869(0xc8)](),controller[a714_0x126869(0xca)]),router[a714_0x126869(0xcf)](a714_0x126869(0xd6),auth['isAuthenticated'](),controller[a714_0x126869(0xcd)]),router[a714_0x126869(0xd3)](a714_0x126869(0xd4),auth[a714_0x126869(0xc8)](),controller['update']),router['delete']('/:id',auth[a714_0x126869(0xc8)](),controller[a714_0x126869(0xcc)]),router[a714_0x126869(0xc9)](a714_0x126869(0xd6),auth['isAuthenticated'](),controller['removeUsers']),module[a714_0x126869(0xcb)]=router; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.attributes.js b/server/api/squareProject/squareProject.attributes.js index 1ae443c..69c2ad3 100644 --- a/server/api/squareProject/squareProject.attributes.js +++ b/server/api/squareProject/squareProject.attributes.js @@ -1 +1 @@ -const a715_0x2efe=['name','utf8','getDataValue','STRING','attributes','BLOB','production','toString','long'];(function(_0x2f08f2,_0x40ed46){const _0x2efefd=function(_0x20300d){while(--_0x20300d){_0x2f08f2['push'](_0x2f08f2['shift']());}};_0x2efefd(++_0x40ed46);}(a715_0x2efe,0x159));const a715_0x2030=function(_0x2f08f2,_0x40ed46){_0x2f08f2=_0x2f08f2-0xec;let _0x2efefd=a715_0x2efe[_0x2f08f2];return _0x2efefd;};const a715_0x3b05f8=a715_0x2030;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a715_0x3b05f8(0xec)],'unique':a715_0x3b05f8(0xf2),'allowNull':![]},'description':{'type':DataTypes[a715_0x3b05f8(0xec)]},'notes':{'type':DataTypes['TEXT']},'preproduction':{'type':DataTypes[a715_0x3b05f8(0xee)](a715_0x3b05f8(0xf1)),'get':function(){const _0x2c0cd1=a715_0x3b05f8;if(this[_0x2c0cd1(0xf4)]('preproduction'))return this['getDataValue']('preproduction')[_0x2c0cd1(0xf0)]('utf8');}},'production':{'type':DataTypes[a715_0x3b05f8(0xee)](a715_0x3b05f8(0xf1)),'get':function(){const _0x176379=a715_0x3b05f8;if(this['getDataValue'](_0x176379(0xef)))return this[_0x176379(0xf4)](_0x176379(0xef))[_0x176379(0xf0)](_0x176379(0xf3));}}};module['exports'][a715_0x3b05f8(0xed)]=attributes; \ No newline at end of file +const a715_0x17ff=['BLOB','name','toString','attributes','getDataValue','preproduction','exports','sequelize','utf8','long','production','STRING'];(function(_0x2c7c65,_0x489f1c){const _0x17ff3f=function(_0x213456){while(--_0x213456){_0x2c7c65['push'](_0x2c7c65['shift']());}};_0x17ff3f(++_0x489f1c);}(a715_0x17ff,0xde));const a715_0x2134=function(_0x2c7c65,_0x489f1c){_0x2c7c65=_0x2c7c65-0x169;let _0x17ff3f=a715_0x17ff[_0x2c7c65];return _0x17ff3f;};const a715_0x29ddd2=a715_0x2134;'use strict';const {DataTypes}=require(a715_0x29ddd2(0x16a)),attributes={'name':{'type':DataTypes[a715_0x29ddd2(0x16e)],'unique':a715_0x29ddd2(0x170),'allowNull':![]},'description':{'type':DataTypes[a715_0x29ddd2(0x16e)]},'notes':{'type':DataTypes['TEXT']},'preproduction':{'type':DataTypes[a715_0x29ddd2(0x16f)](a715_0x29ddd2(0x16c)),'get':function(){const _0x5d882d=a715_0x29ddd2;if(this['getDataValue']('preproduction'))return this[_0x5d882d(0x173)](_0x5d882d(0x174))[_0x5d882d(0x171)](_0x5d882d(0x16b));}},'production':{'type':DataTypes[a715_0x29ddd2(0x16f)](a715_0x29ddd2(0x16c)),'get':function(){const _0x39a97e=a715_0x29ddd2;if(this[_0x39a97e(0x173)](_0x39a97e(0x16d)))return this['getDataValue']('production')[_0x39a97e(0x171)]('utf8');}}};module[a715_0x29ddd2(0x169)][a715_0x29ddd2(0x172)]=attributes; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.controller.js b/server/api/squareProject/squareProject.controller.js index b0c458e..66c1b0d 100644 --- a/server/api/squareProject/squareProject.controller.js +++ b/server/api/squareProject/squareProject.controller.js @@ -1 +1 @@ -const a716_0x4dbb=['getUsers','options','count','findOne','type','index','query','show','UserProfileSection','SquareProjects','addUsers','json','filters','map','error','isArray','ids','pick','omit','autoAssociation','catch','status','destroy','length','rows','fieldName','User','like','sort','lodash','removeUsers','SquareProject','create','UserProfileResource','update','filter','name','get','set','emit','includeAll','where','fields','model','then','rawAttributes','include','register','userSquareProject:remove','sendStatus','body','attributes','../../components/parsers/qs','api','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','user','send','params','order','undefined','merge','keys','intersection','offset','end','../../config/logger','./squareProject.socket','limit','nolimit'];(function(_0xd90cfb,_0x144fe3){const _0x4dbb8a=function(_0x4224ac){while(--_0x4224ac){_0xd90cfb['push'](_0xd90cfb['shift']());}};_0x4dbb8a(++_0x144fe3);}(a716_0x4dbb,0xc8));const a716_0x4224=function(_0xd90cfb,_0x144fe3){_0xd90cfb=_0xd90cfb-0x1c6;let _0x4dbb8a=a716_0x4dbb[_0xd90cfb];return _0x4dbb8a;};const a716_0x4fb9cd=a716_0x4224;'use strict';const _=require(a716_0x4fb9cd(0x1ea)),qs=require(a716_0x4fb9cd(0x201)),logger=require(a716_0x4fb9cd(0x1c9))(a716_0x4fb9cd(0x202)),{getSocket}=require('../../rediscache'),socket=getSocket(),{db}=require('../../mysqldb'),{Op}=require('sequelize');require(a716_0x4fb9cd(0x1ca))[a716_0x4fb9cd(0x1fc)](socket);function respondWithStatusCode(_0x2a1894,_0x5e1270){return _0x5e1270=_0x5e1270||0xcc,function(_0x23cf81){const _0x378be1=a716_0x4224;if(_0x23cf81)return _0x2a1894[_0x378be1(0x1fe)](_0x5e1270);return _0x2a1894[_0x378be1(0x1e2)](_0x5e1270)['end']();};}function respondWithResult(_0x1086b3,_0x52088b){return _0x52088b=_0x52088b||0xc8,function(_0x85d83d){const _0xb6411=a716_0x4224;if(_0x85d83d)return _0x1086b3[_0xb6411(0x1e2)](_0x52088b)[_0xb6411(0x1d8)](_0x85d83d);};}function respondWithFilteredResult(_0x3bc778,_0x2047cd){return function(_0x159578){const _0x127f7f=a716_0x4224;if(_0x159578){const _0x57d140=_0x159578['count'],_0x68fb9a=_0x2047cd[_0x127f7f(0x1c7)];let _0x5a80a3=_0x2047cd[_0x127f7f(0x1c7)]+_0x2047cd[_0x127f7f(0x1cb)],_0x11391d;return _0x5a80a3>=_0x57d140?(_0x5a80a3=_0x57d140,_0x11391d=0xc8):_0x11391d=0xce,_0x3bc778['status'](_0x11391d),_0x3bc778[_0x127f7f(0x1f3)]('Content-Range',_0x68fb9a+'-'+_0x5a80a3+'/'+_0x57d140)[_0x127f7f(0x1d8)](_0x159578);}return null;};}function saveUpdates(_0x228650){return function(_0x22b90f){const _0x57b892=a716_0x4224;if(_0x22b90f)return _0x22b90f[_0x57b892(0x1ef)](_0x228650)[_0x57b892(0x1f9)](function(_0x5a3b00){return _0x5a3b00;});return null;};}function removeEntity(_0x2189c3){return function(_0x28724f){const _0x47aede=a716_0x4224;if(_0x28724f)return _0x28724f[_0x47aede(0x1e3)]()[_0x47aede(0x1f9)](function(){const _0x550cf1=_0x47aede,_0x273692=_0x28724f[_0x550cf1(0x1f2)]({'plain':!![]}),_0x51b80a='SquareProjects';return db[_0x550cf1(0x1ee)]['destroy']({'where':{'type':_0x51b80a,'resourceId':_0x273692['id']}})[_0x550cf1(0x1f9)](function(){return _0x28724f;});})[_0x47aede(0x1f9)](function(){const _0x2aeed4=_0x47aede;_0x2189c3[_0x2aeed4(0x1e2)](0xcc)[_0x2aeed4(0x1c8)]();});};}function handleEntityNotFound(_0x520e76){return function(_0x38b463){const _0x552199=a716_0x4224;return!_0x38b463&&_0x520e76[_0x552199(0x1fe)](0x194),_0x38b463;};}function handleError(_0x47aff5,_0x157234){return _0x157234=_0x157234||0x1f4,function(_0x1cd7fa){const _0x1883cf=a716_0x4224;logger[_0x1883cf(0x1db)](_0x1cd7fa['stack']),_0x1cd7fa['name']&&delete _0x1cd7fa[_0x1883cf(0x1f1)],_0x47aff5[_0x1883cf(0x1e2)](_0x157234)[_0x1883cf(0x205)](_0x1cd7fa);};}exports[a716_0x4fb9cd(0x1d2)]=function(_0x319818,_0x56f8e7){const _0x5dad2=a716_0x4fb9cd;let _0x461750={};const _0x1e0e19={},_0x53c925={'count':0x0,'rows':[]},_0xbca191=_[_0x5dad2(0x1da)](db['SquareProject'][_0x5dad2(0x1fa)],function(_0x5c7003){const _0x49e011=_0x5dad2;return{'name':_0x5c7003[_0x49e011(0x1e6)],'type':_0x5c7003['type']['key']};});_0x1e0e19[_0x5dad2(0x1f8)]=_[_0x5dad2(0x1da)](_0xbca191,_0x5dad2(0x1f1)),_0x1e0e19[_0x5dad2(0x1d3)]=_[_0x5dad2(0x20a)](_0x319818[_0x5dad2(0x1d3)]),_0x1e0e19['filters']=_[_0x5dad2(0x1c6)](_0x1e0e19[_0x5dad2(0x1f8)],_0x1e0e19[_0x5dad2(0x1d3)]),_0x461750[_0x5dad2(0x200)]=_[_0x5dad2(0x1c6)](_0x1e0e19[_0x5dad2(0x1f8)],qs[_0x5dad2(0x1f7)](_0x319818[_0x5dad2(0x1d3)][_0x5dad2(0x1f7)])),_0x461750['attributes']=_0x461750[_0x5dad2(0x200)][_0x5dad2(0x1e4)]?_0x461750[_0x5dad2(0x200)]:_0x1e0e19['model'];typeof _0x319818[_0x5dad2(0x1d3)][_0x5dad2(0x1cc)]===_0x5dad2(0x208)&&(_0x461750['limit']=qs[_0x5dad2(0x1cb)](_0x319818[_0x5dad2(0x1d3)][_0x5dad2(0x1cb)]),_0x461750[_0x5dad2(0x1c7)]=qs['offset'](_0x319818['query']['offset']));_0x461750[_0x5dad2(0x207)]=qs[_0x5dad2(0x1e9)](_0x319818[_0x5dad2(0x1d3)][_0x5dad2(0x1e9)]),_0x461750[_0x5dad2(0x1f6)]=qs['filters'](_[_0x5dad2(0x1de)](_0x319818[_0x5dad2(0x1d3)],_0x1e0e19[_0x5dad2(0x1d9)]),_0xbca191);_0x319818[_0x5dad2(0x1d3)][_0x5dad2(0x1f0)]&&(_0x461750[_0x5dad2(0x1f6)]=_[_0x5dad2(0x209)](_0x461750[_0x5dad2(0x1f6)],{[Op['or']]:_[_0x5dad2(0x1da)](_0xbca191,function(_0x28cc41){const _0x227fc0=_0x5dad2;if(_0x28cc41[_0x227fc0(0x1d1)]!=='VIRTUAL'){const _0x1adc9d={};return _0x1adc9d[_0x28cc41[_0x227fc0(0x1f1)]]={[Op[_0x227fc0(0x1e8)]]:'%'+_0x319818[_0x227fc0(0x1d3)][_0x227fc0(0x1f0)]+'%'},_0x1adc9d;}})}));_0x461750=_[_0x5dad2(0x209)]({},_0x461750,_0x319818[_0x5dad2(0x1ce)]);const _0x55f49e={'where':_0x461750['where']};return db[_0x5dad2(0x1ec)][_0x5dad2(0x1cf)](_0x55f49e)['then'](function(_0x1456a6){const _0x189738=_0x5dad2;return _0x53c925['count']=_0x1456a6,_0x319818[_0x189738(0x1d3)][_0x189738(0x1f5)]&&(_0x461750[_0x189738(0x1fb)]=[{'all':!![]}]),db[_0x189738(0x1ec)]['findAll'](_0x461750);})['then'](function(_0x286409){const _0x3de4fe=_0x5dad2;return _0x53c925[_0x3de4fe(0x1e5)]=_0x286409,_0x53c925;})[_0x5dad2(0x1f9)](respondWithFilteredResult(_0x56f8e7,_0x461750))[_0x5dad2(0x1e1)](handleError(_0x56f8e7,null));},exports[a716_0x4fb9cd(0x1d4)]=function(_0x3f0470,_0x9dca){const _0x5ccb7b=a716_0x4fb9cd;let _0x492e44={'raw':![],'where':{'id':_0x3f0470['params']['id']}};const _0x4c8648={};return _0x4c8648[_0x5ccb7b(0x1f8)]=_['keys'](db[_0x5ccb7b(0x1ec)]['rawAttributes']),_0x4c8648[_0x5ccb7b(0x1d3)]=_[_0x5ccb7b(0x20a)](_0x3f0470[_0x5ccb7b(0x1d3)]),_0x4c8648[_0x5ccb7b(0x1d9)]=_['intersection'](_0x4c8648[_0x5ccb7b(0x1f8)],_0x4c8648[_0x5ccb7b(0x1d3)]),_0x492e44['attributes']=_[_0x5ccb7b(0x1c6)](_0x4c8648['model'],qs[_0x5ccb7b(0x1f7)](_0x3f0470[_0x5ccb7b(0x1d3)][_0x5ccb7b(0x1f7)])),_0x492e44['attributes']=_0x492e44[_0x5ccb7b(0x200)][_0x5ccb7b(0x1e4)]?_0x492e44['attributes']:_0x4c8648['model'],_0x3f0470['query']['includeAll']&&(_0x492e44[_0x5ccb7b(0x1fb)]=[{'all':!![]}]),_0x492e44=_[_0x5ccb7b(0x209)]({},_0x492e44,_0x3f0470[_0x5ccb7b(0x1ce)]),db[_0x5ccb7b(0x1ec)][_0x5ccb7b(0x1d0)](_0x492e44)['then'](handleEntityNotFound(_0x9dca,null))[_0x5ccb7b(0x1f9)](respondWithResult(_0x9dca,null))[_0x5ccb7b(0x1e1)](handleError(_0x9dca,null));},exports[a716_0x4fb9cd(0x1ed)]=function(_0x32b9dc,_0x1a3b57){const _0x2f917b=a716_0x4fb9cd;return db[_0x2f917b(0x1ec)]['create'](_0x32b9dc['body'],{})[_0x2f917b(0x1f9)](function(_0x4f0170){const _0x1ed063=_0x2f917b,_0xa5d260=_0x32b9dc[_0x1ed063(0x204)][_0x1ed063(0x1f2)]({'plain':!![]});if(!_0xa5d260)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0xa5d260['role']===_0x1ed063(0x204)){const _0x4f4b3=_0x4f0170[_0x1ed063(0x1f2)]({'plain':!![]}),_0xa49a8=_0x1ed063(0x1d6);return db[_0x1ed063(0x1d5)]['findOne']({'where':{'name':_0xa49a8,'userProfileId':_0xa5d260['userProfileId']},'raw':!![]})[_0x1ed063(0x1f9)](function(_0x2be052){const _0x16414b=_0x1ed063;return _0x2be052&&_0x2be052[_0x16414b(0x1e0)]===0x0?db[_0x16414b(0x1ee)][_0x16414b(0x1ed)]({'name':_0x4f4b3[_0x16414b(0x1f1)],'resourceId':_0x4f4b3['id'],'type':_0x2be052[_0x16414b(0x1f1)],'sectionId':_0x2be052['id']},{})[_0x16414b(0x1f9)](function(){return _0x4f0170;}):_0x4f0170;})[_0x1ed063(0x1e1)](function(_0x3a62e2){const _0x5d6f42=_0x1ed063;logger[_0x5d6f42(0x1db)](_0x5d6f42(0x203),_0x3a62e2);throw _0x3a62e2;});}return _0x4f0170;})['then'](respondWithResult(_0x1a3b57,0xc9))['catch'](handleError(_0x1a3b57,null));},exports[a716_0x4fb9cd(0x1ef)]=function(_0x408928,_0x1f0c54){const _0x14b868=a716_0x4fb9cd;return _0x408928['body']['id']&&delete _0x408928[_0x14b868(0x1ff)]['id'],db[_0x14b868(0x1ec)][_0x14b868(0x1d0)]({'where':{'id':_0x408928[_0x14b868(0x206)]['id']}})[_0x14b868(0x1f9)](handleEntityNotFound(_0x1f0c54,null))[_0x14b868(0x1f9)](saveUpdates(_0x408928[_0x14b868(0x1ff)],null))[_0x14b868(0x1f9)](respondWithResult(_0x1f0c54,null))[_0x14b868(0x1e1)](handleError(_0x1f0c54,null));},exports['destroy']=function(_0x27d800,_0x61f5d0){const _0x291d8d=a716_0x4fb9cd;return db[_0x291d8d(0x1ec)]['findOne']({'where':{'id':_0x27d800[_0x291d8d(0x206)]['id']}})[_0x291d8d(0x1f9)](handleEntityNotFound(_0x61f5d0,null))['then'](removeEntity(_0x61f5d0,null))[_0x291d8d(0x1e1)](handleError(_0x61f5d0,null));},exports[a716_0x4fb9cd(0x1d7)]=function(_0x1530d5,_0x5f4dc0){const _0x2a6895=a716_0x4fb9cd;return db[_0x2a6895(0x1ec)][_0x2a6895(0x1d0)]({'where':{'id':_0x1530d5[_0x2a6895(0x206)]['id']}})[_0x2a6895(0x1f9)](function(_0x171372){const _0x235961=_0x2a6895;if(_0x171372)return _0x171372[_0x235961(0x1d7)](_0x1530d5[_0x235961(0x1ff)][_0x235961(0x1dd)],{'through':_[_0x235961(0x1df)](_0x1530d5[_0x235961(0x1ff)],['ids','id'])});})['then'](respondWithResult(_0x5f4dc0,null))[_0x2a6895(0x1e1)](handleError(_0x5f4dc0,null));},exports['removeUsers']=function(_0x593d7c,_0x2106ad){const _0x13adb3=a716_0x4fb9cd;return db[_0x13adb3(0x1ec)][_0x13adb3(0x1d0)]({'where':{'id':_0x593d7c[_0x13adb3(0x206)]['id']}})['then'](handleEntityNotFound(_0x2106ad,null))['then'](function(_0x302c73){const _0x21d6a5=_0x13adb3;if(_0x302c73)return _0x302c73[_0x21d6a5(0x1eb)](_0x593d7c[_0x21d6a5(0x1d3)][_0x21d6a5(0x1dd)])[_0x21d6a5(0x1f9)](function(){const _0x593b1d=_0x21d6a5;if(_[_0x593b1d(0x1dc)](_0x593d7c['query'][_0x593b1d(0x1dd)]))for(let _0x5d2c75=0x0;_0x5d2c75<_0x593d7c[_0x593b1d(0x1d3)][_0x593b1d(0x1dd)][_0x593b1d(0x1e4)];_0x5d2c75+=0x1){socket['emit'](_0x593b1d(0x1fd),{'UserId':Number(_0x593d7c[_0x593b1d(0x1d3)][_0x593b1d(0x1dd)][_0x5d2c75]),'SquareProjectId':Number(_0x593d7c[_0x593b1d(0x206)]['id'])});}else socket[_0x593b1d(0x1f4)]('userSquareProject:remove',{'UserId':Number(_0x593d7c['query'][_0x593b1d(0x1dd)]),'SquareProjectId':Number(_0x593d7c['params']['id'])});});})[_0x13adb3(0x1f9)](respondWithStatusCode(_0x2106ad,null))[_0x13adb3(0x1e1)](handleError(_0x2106ad,null));},exports[a716_0x4fb9cd(0x1cd)]=function(_0x50573d,_0x956733){const _0x371fe1=a716_0x4fb9cd;let _0x47a812={};const _0x58f4ae={};let _0x113eea,_0x3ed2eb;return db[_0x371fe1(0x1ec)][_0x371fe1(0x1d0)]({'where':{'id':_0x50573d['params']['id']}})[_0x371fe1(0x1f9)](handleEntityNotFound(_0x956733,null))['then'](function(_0x52252a){const _0x192f06=_0x371fe1;if(_0x52252a)return _0x113eea=_0x52252a,_0x58f4ae[_0x192f06(0x1f8)]=_[_0x192f06(0x20a)](db[_0x192f06(0x1e7)][_0x192f06(0x1fa)]),_0x58f4ae[_0x192f06(0x1d3)]=_[_0x192f06(0x20a)](_0x50573d[_0x192f06(0x1d3)]),_0x58f4ae[_0x192f06(0x1d9)]=_[_0x192f06(0x1c6)](_0x58f4ae['model'],_0x58f4ae[_0x192f06(0x1d3)]),_0x47a812[_0x192f06(0x200)]=_[_0x192f06(0x1c6)](_0x58f4ae['model'],qs[_0x192f06(0x1f7)](_0x50573d[_0x192f06(0x1d3)]['fields'])),_0x47a812[_0x192f06(0x200)]=_0x47a812[_0x192f06(0x200)][_0x192f06(0x1e4)]?_0x47a812[_0x192f06(0x200)]:_0x58f4ae[_0x192f06(0x1f8)],_0x47a812[_0x192f06(0x207)]=qs[_0x192f06(0x1e9)](_0x50573d[_0x192f06(0x1d3)]['sort']),_0x47a812[_0x192f06(0x1f6)]=qs['filters'](_['pick'](_0x50573d[_0x192f06(0x1d3)],_0x58f4ae[_0x192f06(0x1d9)])),_0x50573d[_0x192f06(0x1d3)][_0x192f06(0x1f0)]&&(_0x47a812['where']=_[_0x192f06(0x209)](_0x47a812[_0x192f06(0x1f6)],{[Op['or']]:_['map'](_0x47a812[_0x192f06(0x200)],function(_0x29a737){const _0x303a3a=_0x192f06,_0x4e0c98={};return _0x4e0c98[_0x29a737]={[Op[_0x303a3a(0x1e8)]]:'%'+_0x50573d[_0x303a3a(0x1d3)][_0x303a3a(0x1f0)]+'%'},_0x4e0c98;})})),_0x47a812=_['merge']({},_0x47a812,_0x50573d[_0x192f06(0x1ce)]),_0x113eea[_0x192f06(0x1cd)](_0x47a812);})[_0x371fe1(0x1f9)](function(_0x48666f){const _0x1439a5=_0x371fe1;if(_0x48666f)return _0x3ed2eb=_0x48666f[_0x1439a5(0x1e4)],typeof _0x50573d['query'][_0x1439a5(0x1cc)]===_0x1439a5(0x208)&&(_0x47a812[_0x1439a5(0x1cb)]=qs[_0x1439a5(0x1cb)](_0x50573d['query'][_0x1439a5(0x1cb)]),_0x47a812[_0x1439a5(0x1c7)]=qs[_0x1439a5(0x1c7)](_0x50573d[_0x1439a5(0x1d3)][_0x1439a5(0x1c7)])),_0x113eea['getUsers'](_0x47a812);})['then'](function(_0x2974d6){if(_0x2974d6)return _0x2974d6?{'count':_0x3ed2eb,'rows':_0x2974d6}:null;})[_0x371fe1(0x1f9)](respondWithResult(_0x956733,null))[_0x371fe1(0x1e1)](handleError(_0x956733,null));}; \ No newline at end of file +const a716_0x3947=['Content-Range','fieldName','SquareProject','fields','filter','../../mysqldb','Unable\x20to\x20retrieve\x20the\x20current\x20user','role','attributes','VIRTUAL','show','order','UserProfileResource','merge','lodash','pick','UserProfileSection','offset','./squareProject.socket','model','nolimit','error','emit','keys','intersection','params','json','get','../../rediscache','undefined','omit','removeUsers','addUsers','catch','query','map','SquareProjects','where','userProfileId','ids','filters','create','getUsers','rows','userSquareProject:remove','send','include','findOne','name','options','update','../../components/parsers/qs','register','type','user','sort','set','api','User','status','limit','then','length','body','count','like','rawAttributes','destroy','findAll','includeAll'];(function(_0x3c6d8b,_0x1d49a3){const _0x394730=function(_0xe54b2){while(--_0xe54b2){_0x3c6d8b['push'](_0x3c6d8b['shift']());}};_0x394730(++_0x1d49a3);}(a716_0x3947,0x10f));const a716_0xe54b=function(_0x3c6d8b,_0x1d49a3){_0x3c6d8b=_0x3c6d8b-0xb5;let _0x394730=a716_0x3947[_0x3c6d8b];return _0x394730;};const a716_0x26e44e=a716_0xe54b;'use strict';const _=require(a716_0x26e44e(0xcc)),qs=require(a716_0x26e44e(0xf1)),logger=require('../../config/logger')(a716_0x26e44e(0xf7)),{getSocket}=require(a716_0x26e44e(0xda)),socket=getSocket(),{db}=require(a716_0x26e44e(0xc3)),{Op}=require('sequelize');require(a716_0x26e44e(0xd0))[a716_0x26e44e(0xf2)](socket);function respondWithStatusCode(_0x4e9da3,_0x5edf89){return _0x5edf89=_0x5edf89||0xcc,function(_0x54fba4){const _0x451ca1=a716_0xe54b;if(_0x54fba4)return _0x4e9da3['sendStatus'](_0x5edf89);return _0x4e9da3[_0x451ca1(0xf9)](_0x5edf89)['end']();};}function respondWithResult(_0xbc2662,_0x4521f6){return _0x4521f6=_0x4521f6||0xc8,function(_0x11a232){const _0x3b7e00=a716_0xe54b;if(_0x11a232)return _0xbc2662[_0x3b7e00(0xf9)](_0x4521f6)[_0x3b7e00(0xd8)](_0x11a232);};}function respondWithFilteredResult(_0x33a902,_0x13439e){return function(_0x357ed4){const _0xb2021d=a716_0xe54b;if(_0x357ed4){const _0x49325d=_0x357ed4['count'],_0x44791b=_0x13439e[_0xb2021d(0xcf)];let _0xe7f113=_0x13439e[_0xb2021d(0xcf)]+_0x13439e[_0xb2021d(0xfa)],_0x2f0219;return _0xe7f113>=_0x49325d?(_0xe7f113=_0x49325d,_0x2f0219=0xc8):_0x2f0219=0xce,_0x33a902[_0xb2021d(0xf9)](_0x2f0219),_0x33a902[_0xb2021d(0xf6)](_0xb2021d(0xbe),_0x44791b+'-'+_0xe7f113+'/'+_0x49325d)['json'](_0x357ed4);}return null;};}function saveUpdates(_0x5c55f2){return function(_0xcf5d0e){const _0x4341af=a716_0xe54b;if(_0xcf5d0e)return _0xcf5d0e[_0x4341af(0xf0)](_0x5c55f2)[_0x4341af(0xb5)](function(_0x31bf44){return _0x31bf44;});return null;};}function removeEntity(_0x2a7fb3){return function(_0x4aedbb){const _0x3b8e12=a716_0xe54b;if(_0x4aedbb)return _0x4aedbb[_0x3b8e12(0xbb)]()[_0x3b8e12(0xb5)](function(){const _0x397f6b=_0x3b8e12,_0x3cc35e=_0x4aedbb[_0x397f6b(0xd9)]({'plain':!![]}),_0x1a638a=_0x397f6b(0xe2);return db[_0x397f6b(0xca)]['destroy']({'where':{'type':_0x1a638a,'resourceId':_0x3cc35e['id']}})['then'](function(){return _0x4aedbb;});})[_0x3b8e12(0xb5)](function(){_0x2a7fb3['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x3f9399){return function(_0x1c3e35){return!_0x1c3e35&&_0x3f9399['sendStatus'](0x194),_0x1c3e35;};}function handleError(_0x51d6b9,_0xb28d56){return _0xb28d56=_0xb28d56||0x1f4,function(_0x428e20){const _0x53d5af=a716_0xe54b;logger['error'](_0x428e20['stack']),_0x428e20[_0x53d5af(0xee)]&&delete _0x428e20[_0x53d5af(0xee)],_0x51d6b9[_0x53d5af(0xf9)](_0xb28d56)[_0x53d5af(0xeb)](_0x428e20);};}exports['index']=function(_0xe24201,_0xf303e1){const _0x102b1d=a716_0x26e44e;let _0x499257={};const _0x48e7a5={},_0x165cfe={'count':0x0,'rows':[]},_0x13bcbb=_[_0x102b1d(0xe1)](db['SquareProject'][_0x102b1d(0xba)],function(_0x21fc4d){const _0xb804b9=_0x102b1d;return{'name':_0x21fc4d[_0xb804b9(0xbf)],'type':_0x21fc4d[_0xb804b9(0xf3)]['key']};});_0x48e7a5[_0x102b1d(0xd1)]=_['map'](_0x13bcbb,_0x102b1d(0xee)),_0x48e7a5['query']=_[_0x102b1d(0xd5)](_0xe24201[_0x102b1d(0xe0)]),_0x48e7a5[_0x102b1d(0xe6)]=_[_0x102b1d(0xd6)](_0x48e7a5[_0x102b1d(0xd1)],_0x48e7a5['query']),_0x499257[_0x102b1d(0xc6)]=_[_0x102b1d(0xd6)](_0x48e7a5[_0x102b1d(0xd1)],qs[_0x102b1d(0xc1)](_0xe24201[_0x102b1d(0xe0)][_0x102b1d(0xc1)])),_0x499257[_0x102b1d(0xc6)]=_0x499257['attributes'][_0x102b1d(0xb6)]?_0x499257[_0x102b1d(0xc6)]:_0x48e7a5['model'];typeof _0xe24201[_0x102b1d(0xe0)]['nolimit']===_0x102b1d(0xdb)&&(_0x499257[_0x102b1d(0xfa)]=qs[_0x102b1d(0xfa)](_0xe24201[_0x102b1d(0xe0)][_0x102b1d(0xfa)]),_0x499257[_0x102b1d(0xcf)]=qs[_0x102b1d(0xcf)](_0xe24201[_0x102b1d(0xe0)][_0x102b1d(0xcf)]));_0x499257['order']=qs[_0x102b1d(0xf5)](_0xe24201[_0x102b1d(0xe0)][_0x102b1d(0xf5)]),_0x499257['where']=qs[_0x102b1d(0xe6)](_['pick'](_0xe24201['query'],_0x48e7a5['filters']),_0x13bcbb);_0xe24201['query'][_0x102b1d(0xc2)]&&(_0x499257[_0x102b1d(0xe3)]=_[_0x102b1d(0xcb)](_0x499257[_0x102b1d(0xe3)],{[Op['or']]:_['map'](_0x13bcbb,function(_0x51c6e6){const _0x46b3d0=_0x102b1d;if(_0x51c6e6[_0x46b3d0(0xf3)]!==_0x46b3d0(0xc7)){const _0x4aa6c3={};return _0x4aa6c3[_0x51c6e6['name']]={[Op[_0x46b3d0(0xb9)]]:'%'+_0xe24201[_0x46b3d0(0xe0)][_0x46b3d0(0xc2)]+'%'},_0x4aa6c3;}})}));_0x499257=_[_0x102b1d(0xcb)]({},_0x499257,_0xe24201['options']);const _0x27f48c={'where':_0x499257[_0x102b1d(0xe3)]};return db[_0x102b1d(0xc0)][_0x102b1d(0xb8)](_0x27f48c)['then'](function(_0x59483a){const _0x38c887=_0x102b1d;return _0x165cfe['count']=_0x59483a,_0xe24201['query'][_0x38c887(0xbd)]&&(_0x499257[_0x38c887(0xec)]=[{'all':!![]}]),db[_0x38c887(0xc0)][_0x38c887(0xbc)](_0x499257);})[_0x102b1d(0xb5)](function(_0x4d2fad){const _0x165551=_0x102b1d;return _0x165cfe[_0x165551(0xe9)]=_0x4d2fad,_0x165cfe;})[_0x102b1d(0xb5)](respondWithFilteredResult(_0xf303e1,_0x499257))[_0x102b1d(0xdf)](handleError(_0xf303e1,null));},exports[a716_0x26e44e(0xc8)]=function(_0x529d6e,_0x19b2c8){const _0x2ec255=a716_0x26e44e;let _0x4504d4={'raw':![],'where':{'id':_0x529d6e[_0x2ec255(0xd7)]['id']}};const _0x167c6a={};return _0x167c6a[_0x2ec255(0xd1)]=_[_0x2ec255(0xd5)](db[_0x2ec255(0xc0)]['rawAttributes']),_0x167c6a[_0x2ec255(0xe0)]=_[_0x2ec255(0xd5)](_0x529d6e['query']),_0x167c6a[_0x2ec255(0xe6)]=_[_0x2ec255(0xd6)](_0x167c6a['model'],_0x167c6a[_0x2ec255(0xe0)]),_0x4504d4[_0x2ec255(0xc6)]=_[_0x2ec255(0xd6)](_0x167c6a['model'],qs[_0x2ec255(0xc1)](_0x529d6e[_0x2ec255(0xe0)][_0x2ec255(0xc1)])),_0x4504d4['attributes']=_0x4504d4[_0x2ec255(0xc6)][_0x2ec255(0xb6)]?_0x4504d4[_0x2ec255(0xc6)]:_0x167c6a['model'],_0x529d6e['query']['includeAll']&&(_0x4504d4['include']=[{'all':!![]}]),_0x4504d4=_['merge']({},_0x4504d4,_0x529d6e[_0x2ec255(0xef)]),db[_0x2ec255(0xc0)][_0x2ec255(0xed)](_0x4504d4)[_0x2ec255(0xb5)](handleEntityNotFound(_0x19b2c8,null))[_0x2ec255(0xb5)](respondWithResult(_0x19b2c8,null))[_0x2ec255(0xdf)](handleError(_0x19b2c8,null));},exports[a716_0x26e44e(0xe7)]=function(_0x28be6f,_0x27a38c){const _0x52617b=a716_0x26e44e;return db['SquareProject'][_0x52617b(0xe7)](_0x28be6f[_0x52617b(0xb7)],{})[_0x52617b(0xb5)](function(_0x51f1b9){const _0x5af09f=_0x52617b,_0x2c128c=_0x28be6f[_0x5af09f(0xf4)][_0x5af09f(0xd9)]({'plain':!![]});if(!_0x2c128c)throw new Error(_0x5af09f(0xc4));if(_0x2c128c[_0x5af09f(0xc5)]===_0x5af09f(0xf4)){const _0x3ac8a4=_0x51f1b9[_0x5af09f(0xd9)]({'plain':!![]}),_0x41f9c9=_0x5af09f(0xe2);return db[_0x5af09f(0xce)][_0x5af09f(0xed)]({'where':{'name':_0x41f9c9,'userProfileId':_0x2c128c[_0x5af09f(0xe4)]},'raw':!![]})[_0x5af09f(0xb5)](function(_0x2d9593){const _0x1beda4=_0x5af09f;return _0x2d9593&&_0x2d9593['autoAssociation']===0x0?db[_0x1beda4(0xca)][_0x1beda4(0xe7)]({'name':_0x3ac8a4[_0x1beda4(0xee)],'resourceId':_0x3ac8a4['id'],'type':_0x2d9593[_0x1beda4(0xee)],'sectionId':_0x2d9593['id']},{})[_0x1beda4(0xb5)](function(){return _0x51f1b9;}):_0x51f1b9;})['catch'](function(_0x230c4f){const _0x20c8f8=_0x5af09f;logger[_0x20c8f8(0xd3)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x230c4f);throw _0x230c4f;});}return _0x51f1b9;})[_0x52617b(0xb5)](respondWithResult(_0x27a38c,0xc9))[_0x52617b(0xdf)](handleError(_0x27a38c,null));},exports[a716_0x26e44e(0xf0)]=function(_0x45944c,_0x267aa2){const _0x4c7386=a716_0x26e44e;return _0x45944c[_0x4c7386(0xb7)]['id']&&delete _0x45944c[_0x4c7386(0xb7)]['id'],db[_0x4c7386(0xc0)][_0x4c7386(0xed)]({'where':{'id':_0x45944c[_0x4c7386(0xd7)]['id']}})['then'](handleEntityNotFound(_0x267aa2,null))[_0x4c7386(0xb5)](saveUpdates(_0x45944c[_0x4c7386(0xb7)],null))['then'](respondWithResult(_0x267aa2,null))[_0x4c7386(0xdf)](handleError(_0x267aa2,null));},exports[a716_0x26e44e(0xbb)]=function(_0x43db3c,_0x36b93c){const _0x522fa3=a716_0x26e44e;return db[_0x522fa3(0xc0)][_0x522fa3(0xed)]({'where':{'id':_0x43db3c[_0x522fa3(0xd7)]['id']}})[_0x522fa3(0xb5)](handleEntityNotFound(_0x36b93c,null))[_0x522fa3(0xb5)](removeEntity(_0x36b93c,null))[_0x522fa3(0xdf)](handleError(_0x36b93c,null));},exports[a716_0x26e44e(0xde)]=function(_0x181393,_0x58787e){const _0x31e029=a716_0x26e44e;return db['SquareProject']['findOne']({'where':{'id':_0x181393['params']['id']}})[_0x31e029(0xb5)](function(_0x5043f5){const _0x336dd6=_0x31e029;if(_0x5043f5)return _0x5043f5[_0x336dd6(0xde)](_0x181393[_0x336dd6(0xb7)][_0x336dd6(0xe5)],{'through':_[_0x336dd6(0xdc)](_0x181393[_0x336dd6(0xb7)],[_0x336dd6(0xe5),'id'])});})[_0x31e029(0xb5)](respondWithResult(_0x58787e,null))['catch'](handleError(_0x58787e,null));},exports[a716_0x26e44e(0xdd)]=function(_0x13e2ea,_0x5b6a52){const _0x5ebb90=a716_0x26e44e;return db[_0x5ebb90(0xc0)][_0x5ebb90(0xed)]({'where':{'id':_0x13e2ea['params']['id']}})['then'](handleEntityNotFound(_0x5b6a52,null))['then'](function(_0x113935){const _0x17a88b=_0x5ebb90;if(_0x113935)return _0x113935['removeUsers'](_0x13e2ea[_0x17a88b(0xe0)]['ids'])[_0x17a88b(0xb5)](function(){const _0x54049a=_0x17a88b;if(_['isArray'](_0x13e2ea[_0x54049a(0xe0)][_0x54049a(0xe5)]))for(let _0x387850=0x0;_0x387850<_0x13e2ea[_0x54049a(0xe0)][_0x54049a(0xe5)]['length'];_0x387850+=0x1){socket[_0x54049a(0xd4)]('userSquareProject:remove',{'UserId':Number(_0x13e2ea[_0x54049a(0xe0)][_0x54049a(0xe5)][_0x387850]),'SquareProjectId':Number(_0x13e2ea[_0x54049a(0xd7)]['id'])});}else socket[_0x54049a(0xd4)](_0x54049a(0xea),{'UserId':Number(_0x13e2ea[_0x54049a(0xe0)][_0x54049a(0xe5)]),'SquareProjectId':Number(_0x13e2ea[_0x54049a(0xd7)]['id'])});});})[_0x5ebb90(0xb5)](respondWithStatusCode(_0x5b6a52,null))[_0x5ebb90(0xdf)](handleError(_0x5b6a52,null));},exports[a716_0x26e44e(0xe8)]=function(_0x29d52d,_0x36f850){const _0x5146bc=a716_0x26e44e;let _0x30a31d={};const _0xec05d6={};let _0x34ae64,_0x4457b8;return db[_0x5146bc(0xc0)]['findOne']({'where':{'id':_0x29d52d['params']['id']}})[_0x5146bc(0xb5)](handleEntityNotFound(_0x36f850,null))[_0x5146bc(0xb5)](function(_0xc77afa){const _0x32da07=_0x5146bc;if(_0xc77afa)return _0x34ae64=_0xc77afa,_0xec05d6[_0x32da07(0xd1)]=_[_0x32da07(0xd5)](db[_0x32da07(0xf8)][_0x32da07(0xba)]),_0xec05d6[_0x32da07(0xe0)]=_[_0x32da07(0xd5)](_0x29d52d[_0x32da07(0xe0)]),_0xec05d6[_0x32da07(0xe6)]=_[_0x32da07(0xd6)](_0xec05d6['model'],_0xec05d6[_0x32da07(0xe0)]),_0x30a31d['attributes']=_[_0x32da07(0xd6)](_0xec05d6[_0x32da07(0xd1)],qs[_0x32da07(0xc1)](_0x29d52d[_0x32da07(0xe0)][_0x32da07(0xc1)])),_0x30a31d[_0x32da07(0xc6)]=_0x30a31d[_0x32da07(0xc6)][_0x32da07(0xb6)]?_0x30a31d['attributes']:_0xec05d6[_0x32da07(0xd1)],_0x30a31d[_0x32da07(0xc9)]=qs['sort'](_0x29d52d['query'][_0x32da07(0xf5)]),_0x30a31d[_0x32da07(0xe3)]=qs['filters'](_[_0x32da07(0xcd)](_0x29d52d['query'],_0xec05d6[_0x32da07(0xe6)])),_0x29d52d[_0x32da07(0xe0)][_0x32da07(0xc2)]&&(_0x30a31d[_0x32da07(0xe3)]=_['merge'](_0x30a31d['where'],{[Op['or']]:_[_0x32da07(0xe1)](_0x30a31d[_0x32da07(0xc6)],function(_0x38a770){const _0x1d2633=_0x32da07,_0x44b717={};return _0x44b717[_0x38a770]={[Op[_0x1d2633(0xb9)]]:'%'+_0x29d52d[_0x1d2633(0xe0)]['filter']+'%'},_0x44b717;})})),_0x30a31d=_[_0x32da07(0xcb)]({},_0x30a31d,_0x29d52d[_0x32da07(0xef)]),_0x34ae64['getUsers'](_0x30a31d);})[_0x5146bc(0xb5)](function(_0x5b2e83){const _0x105413=_0x5146bc;if(_0x5b2e83)return _0x4457b8=_0x5b2e83['length'],typeof _0x29d52d['query'][_0x105413(0xd2)]==='undefined'&&(_0x30a31d[_0x105413(0xfa)]=qs[_0x105413(0xfa)](_0x29d52d['query'][_0x105413(0xfa)]),_0x30a31d[_0x105413(0xcf)]=qs[_0x105413(0xcf)](_0x29d52d['query'][_0x105413(0xcf)])),_0x34ae64['getUsers'](_0x30a31d);})[_0x5146bc(0xb5)](function(_0x112648){if(_0x112648)return _0x112648?{'count':_0x4457b8,'rows':_0x112648}:null;})['then'](respondWithResult(_0x36f850,null))['catch'](handleError(_0x36f850,null));}; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.events.js b/server/api/squareProject/squareProject.events.js index 9408457..c4fde82 100644 --- a/server/api/squareProject/squareProject.events.js +++ b/server/api/squareProject/squareProject.events.js @@ -1 +1 @@ -const a717_0x2239=['exports','events','save','emit','addHook','remove','setMaxListeners','update','undefined'];(function(_0x307657,_0x36b6a6){const _0x22396b=function(_0x3fd85e){while(--_0x3fd85e){_0x307657['push'](_0x307657['shift']());}};_0x22396b(++_0x36b6a6);}(a717_0x2239,0x1b5));const a717_0x3fd8=function(_0x307657,_0x36b6a6){_0x307657=_0x307657-0x1d7;let _0x22396b=a717_0x2239[_0x307657];return _0x22396b;};const a717_0x440ce0=a717_0x3fd8;'use strict';const EventEmitter=require(a717_0x440ce0(0x1dc)),SquareProject=require('../../mysqldb')['db']['SquareProject'],SquareProjectEvents=new EventEmitter();SquareProjectEvents[a717_0x440ce0(0x1d8)](0x0);const events={'afterCreate':a717_0x440ce0(0x1dd),'afterUpdate':a717_0x440ce0(0x1d9),'afterDestroy':a717_0x440ce0(0x1d7)};function emitEvent(_0x90bc37){return function(_0x1fbeb9){const _0x3b1ab8=a717_0x3fd8;SquareProjectEvents[_0x3b1ab8(0x1de)](_0x90bc37+':'+_0x1fbeb9['id'],_0x1fbeb9),SquareProjectEvents[_0x3b1ab8(0x1de)](_0x90bc37,_0x1fbeb9);};}for(const e in events){if(typeof events[e]!==a717_0x440ce0(0x1da)){const event=events[e];SquareProject[a717_0x440ce0(0x1df)](e,emitEvent(event));}}module[a717_0x440ce0(0x1db)]=SquareProjectEvents; \ No newline at end of file +const a717_0x45c0=['undefined','remove','emit','events','../../mysqldb','update','SquareProject','addHook'];(function(_0x5722be,_0x5898e1){const _0x45c0e6=function(_0x1cf057){while(--_0x1cf057){_0x5722be['push'](_0x5722be['shift']());}};_0x45c0e6(++_0x5898e1);}(a717_0x45c0,0x123));const a717_0x1cf0=function(_0x5722be,_0x5898e1){_0x5722be=_0x5722be-0x18b;let _0x45c0e6=a717_0x45c0[_0x5722be];return _0x45c0e6;};const a717_0x2ebd7c=a717_0x1cf0;'use strict';const EventEmitter=require(a717_0x2ebd7c(0x18b)),SquareProject=require(a717_0x2ebd7c(0x18c))['db'][a717_0x2ebd7c(0x18e)],SquareProjectEvents=new EventEmitter();SquareProjectEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':a717_0x2ebd7c(0x18d),'afterDestroy':a717_0x2ebd7c(0x191)};function emitEvent(_0x58df75){return function(_0x1ab9bb){const _0x51cf25=a717_0x1cf0;SquareProjectEvents[_0x51cf25(0x192)](_0x58df75+':'+_0x1ab9bb['id'],_0x1ab9bb),SquareProjectEvents[_0x51cf25(0x192)](_0x58df75,_0x1ab9bb);};}for(const e in events){if(typeof events[e]!==a717_0x2ebd7c(0x190)){const event=events[e];SquareProject[a717_0x2ebd7c(0x18f)](e,emitEvent(event));}}module['exports']=SquareProjectEvents; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.model.js b/server/api/squareProject/squareProject.model.js index b4cc5d1..3343699 100644 --- a/server/api/squareProject/squareProject.model.js +++ b/server/api/squareProject/squareProject.model.js @@ -1 +1 @@ -const a718_0x3b07=['./squareProject.attributes','init','SquareProject','function'];(function(_0x49a040,_0xa3b97e){const _0x3b07f2=function(_0x241f39){while(--_0x241f39){_0x49a040['push'](_0x49a040['shift']());}};_0x3b07f2(++_0xa3b97e);}(a718_0x3b07,0xfa));const a718_0x241f=function(_0x49a040,_0xa3b97e){_0x49a040=_0x49a040-0x9f;let _0x3b07f2=a718_0x3b07[_0x49a040];return _0x3b07f2;};const a718_0x1e1fa6=a718_0x241f;'use strict';const {Model}=require('sequelize'),{attributes}=require(a718_0x1e1fa6(0xa1)),{options}=require('./squareProject.options');class SquareProject extends Model{}function init(_0x3e7d2b,_0x397163){const _0x5d1a46=a718_0x1e1fa6,_0x1d35be=options(_0x3e7d2b),_0x3bcb5f=typeof _0x397163===_0x5d1a46(0xa0)?_0x397163(_0x1d35be):_0x1d35be;return SquareProject[_0x5d1a46(0xa2)](attributes,_0x3bcb5f),SquareProject;}module['exports'][a718_0x1e1fa6(0x9f)]=SquareProject,module['exports']['init']=init; \ No newline at end of file +const a718_0x359b=['init','SquareProject','exports','./squareProject.options','function'];(function(_0x13488b,_0x2dac06){const _0x359b1c=function(_0x47fd9a){while(--_0x47fd9a){_0x13488b['push'](_0x13488b['shift']());}};_0x359b1c(++_0x2dac06);}(a718_0x359b,0x118));const a718_0x47fd=function(_0x13488b,_0x2dac06){_0x13488b=_0x13488b-0x15f;let _0x359b1c=a718_0x359b[_0x13488b];return _0x359b1c;};const a718_0x5ecf54=a718_0x47fd;'use strict';const {Model}=require('sequelize'),{attributes}=require('./squareProject.attributes'),{options}=require(a718_0x5ecf54(0x162));class SquareProject extends Model{}function init(_0x583e42,_0x13f43b){const _0x128bed=a718_0x5ecf54,_0x5e50c6=options(_0x583e42),_0x2f35ed=typeof _0x13f43b===_0x128bed(0x163)?_0x13f43b(_0x5e50c6):_0x5e50c6;return SquareProject[_0x128bed(0x15f)](attributes,_0x2f35ed),SquareProject;}module['exports'][a718_0x5ecf54(0x160)]=SquareProject,module[a718_0x5ecf54(0x161)][a718_0x5ecf54(0x15f)]=init; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.options.js b/server/api/squareProject/squareProject.options.js index 7c1f10a..6e25b01 100644 --- a/server/api/squareProject/squareProject.options.js +++ b/server/api/squareProject/squareProject.options.js @@ -1 +1 @@ -var a719_0x14eb=['options','exports'];(function(_0x29b5f7,_0x5dc28e){var _0x14eb05=function(_0x56514a){while(--_0x56514a){_0x29b5f7['push'](_0x29b5f7['shift']());}};_0x14eb05(++_0x5dc28e);}(a719_0x14eb,0xec));var a719_0x5651=function(_0x29b5f7,_0x5dc28e){_0x29b5f7=_0x29b5f7-0xce;var _0x14eb05=a719_0x14eb[_0x29b5f7];return _0x14eb05;};var a719_0xd892b9=a719_0x5651;function options(_0x58fdb4){return{'sequelize':_0x58fdb4,'tableName':'square_projects','paranoid':![],'indexes':[],'timestamps':!![]};}module[a719_0xd892b9(0xcf)][a719_0xd892b9(0xce)]=options; \ No newline at end of file +var a719_0x1c59=['exports','options'];(function(_0x2deb36,_0x27235f){var _0x1c59d3=function(_0x4e2ebf){while(--_0x4e2ebf){_0x2deb36['push'](_0x2deb36['shift']());}};_0x1c59d3(++_0x27235f);}(a719_0x1c59,0xee));var a719_0x4e2e=function(_0x2deb36,_0x27235f){_0x2deb36=_0x2deb36-0x1d9;var _0x1c59d3=a719_0x1c59[_0x2deb36];return _0x1c59d3;};var a719_0x4de423=a719_0x4e2e;function options(_0x20c704){return{'sequelize':_0x20c704,'tableName':'square_projects','paranoid':![],'indexes':[],'timestamps':!![]};}module[a719_0x4de423(0x1d9)][a719_0x4de423(0x1da)]=options; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.rpc.js b/server/api/squareProject/squareProject.rpc.js index 86ed79a..f965b47 100644 --- a/server/api/squareProject/squareProject.rpc.js +++ b/server/api/squareProject/squareProject.rpc.js @@ -1 +1 @@ -const a720_0x416e=['info','../../rediscache','rpc','then','ShowSquareProject','findOne','stringify','map','raw','../../config/logger','../../mysqldb','message','debug','register','where','attributes','include','options','lodash','error','model','SquareProject'];(function(_0x5a642b,_0x4c73d0){const _0x416eb4=function(_0x128a6a){while(--_0x128a6a){_0x5a642b['push'](_0x5a642b['shift']());}};_0x416eb4(++_0x4c73d0);}(a720_0x416e,0xd4));const a720_0x128a=function(_0x5a642b,_0x4c73d0){_0x5a642b=_0x5a642b-0x1ed;let _0x416eb4=a720_0x416e[_0x5a642b];return _0x416eb4;};const a720_0x2b2c1d=a720_0x128a;'use strict';const db=require(a720_0x2b2c1d(0x1ff))['db'],logger=require(a720_0x2b2c1d(0x1fe))(a720_0x2b2c1d(0x1f7)),_=require(a720_0x2b2c1d(0x1f1)),{getSocket}=require(a720_0x2b2c1d(0x1f6)),socket=getSocket();require('./squareProject.socket')[a720_0x2b2c1d(0x202)](socket),exports[a720_0x2b2c1d(0x1f9)]=function(_0x995bbc){const _0x4e47ef=this;return new Promise(function(_0x5001ae,_0x269db3){const _0x3d9f4f=a720_0x128a;return db[_0x3d9f4f(0x1f4)][_0x3d9f4f(0x1fa)]({'raw':_0x995bbc[_0x3d9f4f(0x1f0)]?_0x995bbc['options'][_0x3d9f4f(0x1fd)]===undefined?!![]:![]:!![],'where':_0x995bbc['options']?_0x995bbc['options'][_0x3d9f4f(0x1ed)]||null:null,'attributes':_0x995bbc[_0x3d9f4f(0x1f0)]?_0x995bbc[_0x3d9f4f(0x1f0)]['attributes']||null:null,'include':_0x995bbc[_0x3d9f4f(0x1f0)]?_0x995bbc[_0x3d9f4f(0x1f0)][_0x3d9f4f(0x1ef)]?_['map'](_0x995bbc[_0x3d9f4f(0x1f0)][_0x3d9f4f(0x1ef)],function(_0x536a53){const _0x395333=_0x3d9f4f;return{'model':db[_0x536a53[_0x395333(0x1f3)]],'as':_0x536a53['as'],'attributes':_0x536a53[_0x395333(0x1ee)],'include':_0x536a53['include']?_[_0x395333(0x1fc)](_0x536a53['include'],function(_0x5eee44){const _0x29a6e6=_0x395333;return{'model':db[_0x5eee44[_0x29a6e6(0x1f3)]],'as':_0x5eee44['as'],'attributes':_0x5eee44[_0x29a6e6(0x1ee)],'include':_0x5eee44[_0x29a6e6(0x1ef)]?_[_0x29a6e6(0x1fc)](_0x5eee44[_0x29a6e6(0x1ef)],function(_0x3896da){const _0x3ca405=_0x29a6e6;return{'model':db[_0x3896da[_0x3ca405(0x1f3)]],'as':_0x3896da['as'],'attributes':_0x3896da[_0x3ca405(0x1ee)]};}):[]};}):[]};}):[]:[]})[_0x3d9f4f(0x1f8)](function(_0x422d1c){const _0x2c1ee5=_0x3d9f4f;logger[_0x2c1ee5(0x1f5)](_0x2c1ee5(0x1f9),_0x995bbc),logger[_0x2c1ee5(0x201)](_0x2c1ee5(0x1f9),_0x995bbc,JSON[_0x2c1ee5(0x1fb)](_0x422d1c)),_0x5001ae(_0x422d1c);})['catch'](function(_0x500abe){const _0x3c4cd5=_0x3d9f4f;logger[_0x3c4cd5(0x1f2)](_0x3c4cd5(0x1f9),_0x500abe[_0x3c4cd5(0x200)],_0x995bbc),_0x269db3(_0x4e47ef[_0x3c4cd5(0x1f2)](0x1f4,_0x500abe[_0x3c4cd5(0x200)]));});});}; \ No newline at end of file +const a720_0x4509=['../../mysqldb','findOne','include','register','ShowSquareProject','debug','catch','error','message','SquareProject','where','options','rpc','lodash','attributes','info','map','model','raw','then'];(function(_0x4e3416,_0x235c0c){const _0x450908=function(_0x280140){while(--_0x280140){_0x4e3416['push'](_0x4e3416['shift']());}};_0x450908(++_0x235c0c);}(a720_0x4509,0x92));const a720_0x2801=function(_0x4e3416,_0x235c0c){_0x4e3416=_0x4e3416-0x1a0;let _0x450908=a720_0x4509[_0x4e3416];return _0x450908;};const a720_0xc0f159=a720_0x2801;'use strict';const db=require(a720_0xc0f159(0x1ae))['db'],logger=require('../../config/logger')(a720_0xc0f159(0x1a6)),_=require(a720_0xc0f159(0x1a7)),{getSocket}=require('../../rediscache'),socket=getSocket();require('./squareProject.socket')[a720_0xc0f159(0x1b1)](socket),exports['ShowSquareProject']=function(_0x2ca736){const _0x4a4b46=this;return new Promise(function(_0x246e2a,_0x598116){const _0x27c691=a720_0x2801;return db[_0x27c691(0x1a3)][_0x27c691(0x1af)]({'raw':_0x2ca736[_0x27c691(0x1a5)]?_0x2ca736['options'][_0x27c691(0x1ac)]===undefined?!![]:![]:!![],'where':_0x2ca736[_0x27c691(0x1a5)]?_0x2ca736[_0x27c691(0x1a5)][_0x27c691(0x1a4)]||null:null,'attributes':_0x2ca736[_0x27c691(0x1a5)]?_0x2ca736[_0x27c691(0x1a5)]['attributes']||null:null,'include':_0x2ca736[_0x27c691(0x1a5)]?_0x2ca736[_0x27c691(0x1a5)][_0x27c691(0x1b0)]?_[_0x27c691(0x1aa)](_0x2ca736[_0x27c691(0x1a5)][_0x27c691(0x1b0)],function(_0x312755){const _0xbcddc=_0x27c691;return{'model':db[_0x312755[_0xbcddc(0x1ab)]],'as':_0x312755['as'],'attributes':_0x312755[_0xbcddc(0x1a8)],'include':_0x312755[_0xbcddc(0x1b0)]?_[_0xbcddc(0x1aa)](_0x312755[_0xbcddc(0x1b0)],function(_0x3ae25e){const _0x2efa1d=_0xbcddc;return{'model':db[_0x3ae25e[_0x2efa1d(0x1ab)]],'as':_0x3ae25e['as'],'attributes':_0x3ae25e[_0x2efa1d(0x1a8)],'include':_0x3ae25e['include']?_[_0x2efa1d(0x1aa)](_0x3ae25e[_0x2efa1d(0x1b0)],function(_0xf78f67){const _0xd3cadc=_0x2efa1d;return{'model':db[_0xf78f67[_0xd3cadc(0x1ab)]],'as':_0xf78f67['as'],'attributes':_0xf78f67[_0xd3cadc(0x1a8)]};}):[]};}):[]};}):[]:[]})[_0x27c691(0x1ad)](function(_0x1565c7){const _0x55711c=_0x27c691;logger[_0x55711c(0x1a9)](_0x55711c(0x1b2),_0x2ca736),logger[_0x55711c(0x1b3)]('ShowSquareProject',_0x2ca736,JSON['stringify'](_0x1565c7)),_0x246e2a(_0x1565c7);})[_0x27c691(0x1a0)](function(_0x382baf){const _0x3b9cf0=_0x27c691;logger[_0x3b9cf0(0x1a1)](_0x3b9cf0(0x1b2),_0x382baf[_0x3b9cf0(0x1a2)],_0x2ca736),_0x598116(_0x4a4b46[_0x3b9cf0(0x1a1)](0x1f4,_0x382baf[_0x3b9cf0(0x1a2)]));});});}; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.socket.js b/server/api/squareProject/squareProject.socket.js index 156ed54..6e429fc 100644 --- a/server/api/squareProject/squareProject.socket.js +++ b/server/api/squareProject/squareProject.socket.js @@ -1 +1 @@ -const a721_0x17e2=['length','remove','register','emit','squareProject:','./squareProject.events','update'];(function(_0x24eae2,_0x22a50a){const _0x17e2a5=function(_0x64b534){while(--_0x64b534){_0x24eae2['push'](_0x24eae2['shift']());}};_0x17e2a5(++_0x22a50a);}(a721_0x17e2,0x71));const a721_0x64b5=function(_0x24eae2,_0x22a50a){_0x24eae2=_0x24eae2-0xd6;let _0x17e2a5=a721_0x17e2[_0x24eae2];return _0x17e2a5;};const a721_0x2cd003=a721_0x64b5;'use strict';const SquareProjectEvents=require(a721_0x2cd003(0xda)),events=['save',a721_0x2cd003(0xd6),a721_0x2cd003(0xdb)];function createListener(_0x306fb9,_0x10415d){return function(_0x3c7dd3){const _0x3c7b73=a721_0x64b5;_0x10415d[_0x3c7b73(0xd8)](_0x306fb9,_0x3c7dd3);};}exports[a721_0x2cd003(0xd7)]=function(_0x10299b){const _0x3a0a4a=a721_0x2cd003;for(let _0x1664f1=0x0,_0x5b0260=events[_0x3a0a4a(0xdc)];_0x1664f1<_0x5b0260;_0x1664f1++){const _0x561338=events[_0x1664f1],_0x1b1ab2=createListener(_0x3a0a4a(0xd9)+_0x561338,_0x10299b);SquareProjectEvents['on'](_0x561338,_0x1b1ab2);}}; \ No newline at end of file +const a721_0x2296=['length','emit','remove','register','save','./squareProject.events','squareProject:'];(function(_0x36fddf,_0x3dc1a2){const _0x229626=function(_0x2d6cf0){while(--_0x2d6cf0){_0x36fddf['push'](_0x36fddf['shift']());}};_0x229626(++_0x3dc1a2);}(a721_0x2296,0x9e));const a721_0x2d6c=function(_0x36fddf,_0x3dc1a2){_0x36fddf=_0x36fddf-0x69;let _0x229626=a721_0x2296[_0x36fddf];return _0x229626;};const a721_0x46cc44=a721_0x2d6c;'use strict';const SquareProjectEvents=require(a721_0x46cc44(0x6a)),events=[a721_0x46cc44(0x69),a721_0x46cc44(0x6e),'update'];function createListener(_0x246c41,_0xc694e8){return function(_0x5bb2a7){const _0x4b6abc=a721_0x2d6c;_0xc694e8[_0x4b6abc(0x6d)](_0x246c41,_0x5bb2a7);};}exports[a721_0x46cc44(0x6f)]=function(_0x17afc4){const _0x1c047e=a721_0x46cc44;for(let _0x2865e4=0x0,_0x5e99db=events[_0x1c047e(0x6c)];_0x2865e4<_0x5e99db;_0x2865e4++){const _0xd657f9=events[_0x2865e4],_0x35f471=createListener(_0x1c047e(0x6b)+_0xd657f9,_0x17afc4);SquareProjectEvents['on'](_0xd657f9,_0x35f471);}}; \ No newline at end of file diff --git a/server/api/squareRecording/index.js b/server/api/squareRecording/index.js index a4e037b..aff051d 100644 --- a/server/api/squareRecording/index.js +++ b/server/api/squareRecording/index.js @@ -1 +1 @@ -const a722_0x9500=['index','/:id/download','put','isAuthenticated','../../components/auth/service','/:id','post','delete','/:id/delete','Router','create','get','exports'];(function(_0x1bb321,_0xd3f4fc){const _0x9500bd=function(_0x1056d5){while(--_0x1056d5){_0x1bb321['push'](_0x1bb321['shift']());}};_0x9500bd(++_0xd3f4fc);}(a722_0x9500,0x1d2));const a722_0x1056=function(_0x1bb321,_0xd3f4fc){_0x1bb321=_0x1bb321-0x130;let _0x9500bd=a722_0x9500[_0x1bb321];return _0x9500bd;};const a722_0x81a65=a722_0x1056;'use strict';const express=require('express'),router=express[a722_0x81a65(0x13b)](),auth=require(a722_0x81a65(0x136)),controller=require('./squareRecording.controller');router[a722_0x81a65(0x130)]('/',auth[a722_0x81a65(0x135)](),controller[a722_0x81a65(0x132)]),router['get'](a722_0x81a65(0x137),auth['isAuthenticated'](),controller['show']),router[a722_0x81a65(0x130)](a722_0x81a65(0x133),auth[a722_0x81a65(0x135)](),controller['download']),router[a722_0x81a65(0x138)]('/',auth[a722_0x81a65(0x135)](),controller[a722_0x81a65(0x13c)]),router[a722_0x81a65(0x134)](a722_0x81a65(0x137),auth[a722_0x81a65(0x135)](),controller['update']),router[a722_0x81a65(0x139)](a722_0x81a65(0x13a),auth[a722_0x81a65(0x135)](),controller['destroy']),module[a722_0x81a65(0x131)]=router; \ No newline at end of file +const a722_0x8080=['post','Router','./squareRecording.controller','/:id','exports','../../components/auth/service','delete','isAuthenticated','download','destroy','index','get','put','express'];(function(_0xe41051,_0x30c6e7){const _0x8080c9=function(_0x3d6d40){while(--_0x3d6d40){_0xe41051['push'](_0xe41051['shift']());}};_0x8080c9(++_0x30c6e7);}(a722_0x8080,0x151));const a722_0x3d6d=function(_0xe41051,_0x30c6e7){_0xe41051=_0xe41051-0xbe;let _0x8080c9=a722_0x8080[_0xe41051];return _0x8080c9;};const a722_0x3ef10a=a722_0x3d6d;'use strict';const express=require(a722_0x3ef10a(0xca)),router=express[a722_0x3ef10a(0xbe)](),auth=require(a722_0x3ef10a(0xc2)),controller=require(a722_0x3ef10a(0xbf));router['get']('/',auth[a722_0x3ef10a(0xc4)](),controller[a722_0x3ef10a(0xc7)]),router['get'](a722_0x3ef10a(0xc0),auth[a722_0x3ef10a(0xc4)](),controller['show']),router[a722_0x3ef10a(0xc8)]('/:id/download',auth['isAuthenticated'](),controller[a722_0x3ef10a(0xc5)]),router[a722_0x3ef10a(0xcb)]('/',auth[a722_0x3ef10a(0xc4)](),controller['create']),router[a722_0x3ef10a(0xc9)](a722_0x3ef10a(0xc0),auth[a722_0x3ef10a(0xc4)](),controller['update']),router[a722_0x3ef10a(0xc3)]('/:id/delete',auth[a722_0x3ef10a(0xc4)](),controller[a722_0x3ef10a(0xc6)]),module[a722_0x3ef10a(0xc1)]=router; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.attributes.js b/server/api/squareRecording/squareRecording.attributes.js index 14ac69b..6ee1622 100644 --- a/server/api/squareRecording/squareRecording.attributes.js +++ b/server/api/squareRecording/squareRecording.attributes.js @@ -1 +1 @@ -const a723_0x4a86=['VIRTUAL','substring','STRING','attributes','lastIndexOf','sequelize','exports'];(function(_0x2e124f,_0x4dfb82){const _0x4a8682=function(_0x3be855){while(--_0x3be855){_0x2e124f['push'](_0x2e124f['shift']());}};_0x4a8682(++_0x4dfb82);}(a723_0x4a86,0x1bc));const a723_0x3be8=function(_0x2e124f,_0x4dfb82){_0x2e124f=_0x2e124f-0x1c9;let _0x4a8682=a723_0x4a86[_0x2e124f];return _0x4a8682;};const a723_0x1e7bd2=a723_0x3be8;'use strict';const {DataTypes}=require(a723_0x1e7bd2(0x1cb)),attributes={'uniqueid':{'type':DataTypes['STRING']},'callerid':{'type':DataTypes['STRING']},'calleridname':{'type':DataTypes[a723_0x1e7bd2(0x1cf)]},'context':{'type':DataTypes[a723_0x1e7bd2(0x1cf)]},'extension':{'type':DataTypes['STRING']},'priority':{'type':DataTypes[a723_0x1e7bd2(0x1cf)]},'accountcode':{'type':DataTypes[a723_0x1e7bd2(0x1cf)]},'dnid':{'type':DataTypes[a723_0x1e7bd2(0x1cf)]},'projectName':{'type':DataTypes[a723_0x1e7bd2(0x1cf)]},'saveName':{'type':DataTypes[a723_0x1e7bd2(0x1cf)]},'filename':{'type':DataTypes['STRING']},'savePath':{'type':DataTypes['STRING']},'format':{'type':DataTypes[a723_0x1e7bd2(0x1cd)],'get':function(){const _0x4b73e4=a723_0x1e7bd2;let _0x1541ae='';const _0x7b1818=this['getDataValue']('savePath');return _0x7b1818&&(_0x1541ae=_0x7b1818[_0x4b73e4(0x1ce)](_0x7b1818[_0x4b73e4(0x1ca)]('.'))),_0x1541ae;}}};module[a723_0x1e7bd2(0x1cc)][a723_0x1e7bd2(0x1c9)]=attributes; \ No newline at end of file +const a723_0x235e=['lastIndexOf','getDataValue','STRING','exports','attributes','savePath'];(function(_0x478107,_0x39a3f4){const _0x235e3a=function(_0x4cac94){while(--_0x4cac94){_0x478107['push'](_0x478107['shift']());}};_0x235e3a(++_0x39a3f4);}(a723_0x235e,0x16f));const a723_0x4cac=function(_0x478107,_0x39a3f4){_0x478107=_0x478107-0x69;let _0x235e3a=a723_0x235e[_0x478107];return _0x235e3a;};const a723_0x501249=a723_0x4cac;'use strict';const {DataTypes}=require('sequelize'),attributes={'uniqueid':{'type':DataTypes['STRING']},'callerid':{'type':DataTypes[a723_0x501249(0x6a)]},'calleridname':{'type':DataTypes['STRING']},'context':{'type':DataTypes[a723_0x501249(0x6a)]},'extension':{'type':DataTypes['STRING']},'priority':{'type':DataTypes[a723_0x501249(0x6a)]},'accountcode':{'type':DataTypes[a723_0x501249(0x6a)]},'dnid':{'type':DataTypes[a723_0x501249(0x6a)]},'projectName':{'type':DataTypes[a723_0x501249(0x6a)]},'saveName':{'type':DataTypes[a723_0x501249(0x6a)]},'filename':{'type':DataTypes[a723_0x501249(0x6a)]},'savePath':{'type':DataTypes[a723_0x501249(0x6a)]},'format':{'type':DataTypes['VIRTUAL'],'get':function(){const _0x1496e9=a723_0x501249;let _0x1b8a05='';const _0x1b7b33=this[_0x1496e9(0x69)](_0x1496e9(0x6d));return _0x1b7b33&&(_0x1b8a05=_0x1b7b33['substring'](_0x1b7b33[_0x1496e9(0x6e)]('.'))),_0x1b8a05;}}};module[a723_0x501249(0x6b)][a723_0x501249(0x6c)]=attributes; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.controller.js b/server/api/squareRecording/squareRecording.controller.js index 74b9d78..6fd7f39 100644 --- a/server/api/squareRecording/squareRecording.controller.js +++ b/server/api/squareRecording/squareRecording.controller.js @@ -1 +1 @@ -const a724_0x6c1b=['error','update','SquareRecording','create','end','count','merge','sequelize','order','Content-Range','destroy','extname','path','filters','lodash','catch','SquareRecording\x20not\x20found','show','decryptFile','fields','where','../../components/parsers/qs','sort','send','%s.cypher','api','savePath','pick','body','info','findOne','keys','message','Not\x20found','status','filename','File:\x20\x22','undefined','unlink','.cypher','../../mysqldb','unlinkSync','length','rows','existsSync','model','cancellazione\x20fisica\x20documento\x20%s','isNil','params','type','sendStatus','rawAttributes','limit','util','secrets','includeAll','query','map','then','recording','download','intersection','set','attributes','format','key','offset','options','json','name','../../config/environment','Entity\x20not\x20found','like'];(function(_0x13a6d0,_0x479e72){const _0x6c1b79=function(_0x56294e){while(--_0x56294e){_0x13a6d0['push'](_0x13a6d0['shift']());}};_0x6c1b79(++_0x479e72);}(a724_0x6c1b,0x9c));const a724_0x5629=function(_0x13a6d0,_0x479e72){_0x13a6d0=_0x13a6d0-0x14a;let _0x6c1b79=a724_0x6c1b[_0x13a6d0];return _0x6c1b79;};const a724_0x29102f=a724_0x5629;'use strict';const util=require(a724_0x29102f(0x175)),path=require(a724_0x29102f(0x14c)),fs=require('fs'),_=require(a724_0x29102f(0x14e)),qs=require(a724_0x29102f(0x155)),logger=require('../../config/logger')(a724_0x29102f(0x159)),config=require(a724_0x29102f(0x186)),{db}=require(a724_0x29102f(0x168)),{Op,ValidationError}=require(a724_0x29102f(0x190)),{InternalError}=require('error-middleware/errors');function respondWithResult(_0x4b75c1,_0x21e2d8){return _0x21e2d8=_0x21e2d8||0xc8,function(_0x3e3320){const _0x538c59=a724_0x5629;if(_0x3e3320)return _0x4b75c1[_0x538c59(0x162)](_0x21e2d8)[_0x538c59(0x184)](_0x3e3320);};}function respondWithFilteredResult(_0x5795da,_0x244882){return function(_0x3dc1a3){const _0x5a9b0b=a724_0x5629;if(_0x3dc1a3){const _0x47f014=_0x3dc1a3[_0x5a9b0b(0x18e)],_0x453f5b=_0x244882[_0x5a9b0b(0x182)];let _0x17c236=_0x244882[_0x5a9b0b(0x182)]+_0x244882['limit'],_0x393063;return _0x17c236>=_0x47f014?(_0x17c236=_0x47f014,_0x393063=0xc8):_0x393063=0xce,_0x5795da['status'](_0x393063),_0x5795da[_0x5a9b0b(0x17e)](_0x5a9b0b(0x192),_0x453f5b+'-'+_0x17c236+'/'+_0x47f014)[_0x5a9b0b(0x184)](_0x3dc1a3);}return null;};}function saveUpdates(_0x6016cb){return function(_0x343ffb){const _0x27849d=a724_0x5629;if(_0x343ffb)return _0x343ffb[_0x27849d(0x18a)](_0x6016cb)[_0x27849d(0x17a)](function(_0x2c940c){return _0x2c940c;});return null;};}function handleEntityNotFound(_0x22db55){return function(_0x42db04){const _0x1482fb=a724_0x5629;return!_0x42db04&&_0x22db55[_0x1482fb(0x172)](0x194),_0x42db04;};}function handleError(_0x399633,_0xc5a771){return _0xc5a771=_0xc5a771||0x1f4,function(_0x36a86c){const _0x547a8e=a724_0x5629;logger[_0x547a8e(0x189)](_0x36a86c['stack']),_0x36a86c['name']&&delete _0x36a86c[_0x547a8e(0x185)],_0x399633['status'](_0xc5a771)[_0x547a8e(0x157)](_0x36a86c);};}exports['index']=function(_0x1a0984,_0x3b531d){const _0x16d60f=a724_0x29102f;let _0x2e8d7e={};const _0x16a1a3={},_0x28b44e={'count':0x0,'rows':[]},_0x2f8a42=_[_0x16d60f(0x179)](db['SquareRecording'][_0x16d60f(0x173)],function(_0x1e4ef){const _0x6f7e80=_0x16d60f;return{'name':_0x1e4ef['fieldName'],'type':_0x1e4ef[_0x6f7e80(0x171)][_0x6f7e80(0x181)]};});_0x16a1a3[_0x16d60f(0x16d)]=_['map'](_0x2f8a42,_0x16d60f(0x185)),_0x16a1a3[_0x16d60f(0x178)]=_[_0x16d60f(0x15f)](_0x1a0984[_0x16d60f(0x178)]),_0x16a1a3[_0x16d60f(0x14d)]=_['intersection'](_0x16a1a3['model'],_0x16a1a3[_0x16d60f(0x178)]),_0x2e8d7e[_0x16d60f(0x17f)]=_[_0x16d60f(0x17d)](_0x16a1a3[_0x16d60f(0x16d)],qs[_0x16d60f(0x153)](_0x1a0984[_0x16d60f(0x178)][_0x16d60f(0x153)])),_0x2e8d7e['attributes']=_0x2e8d7e[_0x16d60f(0x17f)][_0x16d60f(0x16a)]?_0x2e8d7e['attributes']:_0x16a1a3['model'];typeof _0x1a0984[_0x16d60f(0x178)]['nolimit']===_0x16d60f(0x165)&&(_0x2e8d7e[_0x16d60f(0x174)]=qs['limit'](_0x1a0984[_0x16d60f(0x178)][_0x16d60f(0x174)]),_0x2e8d7e[_0x16d60f(0x182)]=qs[_0x16d60f(0x182)](_0x1a0984[_0x16d60f(0x178)][_0x16d60f(0x182)]));_0x2e8d7e[_0x16d60f(0x191)]=qs[_0x16d60f(0x156)](_0x1a0984['query'][_0x16d60f(0x156)]),_0x2e8d7e[_0x16d60f(0x154)]=qs[_0x16d60f(0x14d)](_[_0x16d60f(0x15b)](_0x1a0984['query'],_0x16a1a3[_0x16d60f(0x14d)]),_0x2f8a42);_0x1a0984['query']['filter']&&(_0x2e8d7e[_0x16d60f(0x154)]=_[_0x16d60f(0x18f)](_0x2e8d7e[_0x16d60f(0x154)],{[Op['or']]:_[_0x16d60f(0x179)](_0x2f8a42,function(_0x2bf4f1){const _0x5f4744=_0x16d60f;if(_0x2bf4f1['type']!=='VIRTUAL'){const _0x4af2c6={};return _0x4af2c6[_0x2bf4f1['name']]={[Op[_0x5f4744(0x188)]]:'%'+_0x1a0984[_0x5f4744(0x178)]['filter']+'%'},_0x4af2c6;}})}));_0x2e8d7e=_[_0x16d60f(0x18f)]({},_0x2e8d7e,_0x1a0984[_0x16d60f(0x183)]);const _0x247ce1={'where':_0x2e8d7e[_0x16d60f(0x154)]};return db[_0x16d60f(0x18b)][_0x16d60f(0x18e)](_0x247ce1)[_0x16d60f(0x17a)](function(_0x240b13){const _0x4f50d8=_0x16d60f;return _0x28b44e[_0x4f50d8(0x18e)]=_0x240b13,_0x1a0984[_0x4f50d8(0x178)][_0x4f50d8(0x177)]&&(_0x2e8d7e['include']=[{'all':!![]}]),db[_0x4f50d8(0x18b)]['findAll'](_0x2e8d7e);})[_0x16d60f(0x17a)](function(_0x4f2fbf){const _0x58c0a5=_0x16d60f;return _0x28b44e[_0x58c0a5(0x16b)]=_0x4f2fbf,_0x28b44e;})['then'](respondWithFilteredResult(_0x3b531d,_0x2e8d7e))[_0x16d60f(0x14f)](handleError(_0x3b531d,null));},exports[a724_0x29102f(0x151)]=function(_0x45939e,_0x393b05){const _0x20c1c3=a724_0x29102f;let _0xc68d43={'raw':!![],'where':{'id':_0x45939e[_0x20c1c3(0x170)]['id']}};const _0x1021d5={};return _0x1021d5[_0x20c1c3(0x16d)]=_[_0x20c1c3(0x15f)](db[_0x20c1c3(0x18b)][_0x20c1c3(0x173)]),_0x1021d5[_0x20c1c3(0x178)]=_[_0x20c1c3(0x15f)](_0x45939e[_0x20c1c3(0x178)]),_0x1021d5['filters']=_['intersection'](_0x1021d5['model'],_0x1021d5[_0x20c1c3(0x178)]),_0xc68d43['attributes']=_[_0x20c1c3(0x17d)](_0x1021d5[_0x20c1c3(0x16d)],qs[_0x20c1c3(0x153)](_0x45939e[_0x20c1c3(0x178)][_0x20c1c3(0x153)])),_0xc68d43[_0x20c1c3(0x17f)]=_0xc68d43['attributes'][_0x20c1c3(0x16a)]?_0xc68d43[_0x20c1c3(0x17f)]:_0x1021d5[_0x20c1c3(0x16d)],_0x45939e[_0x20c1c3(0x178)][_0x20c1c3(0x177)]&&(_0xc68d43['include']=[{'all':!![]}]),_0xc68d43=_['merge']({},_0xc68d43,_0x45939e[_0x20c1c3(0x183)]),db['SquareRecording'][_0x20c1c3(0x15e)](_0xc68d43)['then'](handleEntityNotFound(_0x393b05,null))[_0x20c1c3(0x17a)](respondWithResult(_0x393b05,null))[_0x20c1c3(0x14f)](handleError(_0x393b05,null));},exports[a724_0x29102f(0x18c)]=function(_0x144063,_0x1c24fa){const _0x2dda82=a724_0x29102f;return db[_0x2dda82(0x18b)]['create'](_0x144063[_0x2dda82(0x15c)],{})[_0x2dda82(0x17a)](respondWithResult(_0x1c24fa,0xc9))[_0x2dda82(0x14f)](handleError(_0x1c24fa,null));},exports[a724_0x29102f(0x18a)]=function(_0x347b25,_0x36ee75){const _0x20268d=a724_0x29102f;return _0x347b25[_0x20268d(0x15c)]['id']&&delete _0x347b25[_0x20268d(0x15c)]['id'],db[_0x20268d(0x18b)][_0x20268d(0x15e)]({'where':{'id':_0x347b25[_0x20268d(0x170)]['id']}})['then'](handleEntityNotFound(_0x36ee75,null))['then'](saveUpdates(_0x347b25[_0x20268d(0x15c)],null))['then'](respondWithResult(_0x36ee75,null))[_0x20268d(0x14f)](handleError(_0x36ee75,null));},exports[a724_0x29102f(0x17c)]=function(_0xce72b,_0x414830){const _0x3be3bc=a724_0x29102f,_0x2fdf7d=require('../../components/encryptor');let _0x532312=![];const _0x54372e={};return _0xce72b['query'][_0x3be3bc(0x171)]&&_0xce72b['query'][_0x3be3bc(0x171)]==='uniqueid'?_0x54372e['uniqueid']=_0xce72b['params']['id']:_0x54372e['id']=_0xce72b[_0x3be3bc(0x170)]['id'],db[_0x3be3bc(0x18b)][_0x3be3bc(0x15e)]({'where':_0x54372e,'attributes':['id',_0x3be3bc(0x15a),_0x3be3bc(0x163)],'raw':!![]})[_0x3be3bc(0x17a)](handleEntityNotFound(_0x414830,null))[_0x3be3bc(0x17a)](function(_0xd33b5a){const _0x8a5a3e=_0x3be3bc;if(_0xd33b5a){const _0x3edaaf=_0xd33b5a[_0x8a5a3e(0x15a)],_0x9b6521=util[_0x8a5a3e(0x180)](_0x8a5a3e(0x158),_0x3edaaf);if(fs[_0x8a5a3e(0x16c)](_0x9b6521))return _0x532312=!![],_0x2fdf7d[_0x8a5a3e(0x152)](_0x9b6521,_0x3edaaf,config[_0x8a5a3e(0x176)][_0x8a5a3e(0x17b)])[_0x8a5a3e(0x17a)](function(){return _0xd33b5a;});return _0xd33b5a;}})[_0x3be3bc(0x17a)](function(_0x597ce7){const _0x19070c=_0x3be3bc;if(_0x597ce7){const _0x2a6501=_0x597ce7[_0x19070c(0x15a)];if(!fs[_0x19070c(0x16c)](_0x2a6501))throw new ValidationError('SquareRecording\x20not\x20found');return _0x597ce7[_0x19070c(0x163)]?_0x414830[_0x19070c(0x17c)](_0x2a6501,_0x597ce7[_0x19070c(0x163)]+path[_0x19070c(0x14b)](_0x2a6501),function(){const _0x56a235=_0x19070c;_0x532312&&fs[_0x56a235(0x166)](_0x2a6501);}):_0x414830[_0x19070c(0x17c)](_0x2a6501,function(){const _0x57264e=_0x19070c;_0x532312&&fs[_0x57264e(0x166)](_0x2a6501);});}})['catch'](function(_0x45d3a3){const _0x193961=_0x3be3bc;if(_0x45d3a3[_0x193961(0x160)]===_0x193961(0x150))_0x414830[_0x193961(0x162)](0x194)['send'](_0x193961(0x161));else return handleError(_0x414830,null);});},exports[a724_0x29102f(0x14a)]=function(_0x55a52c,_0x2a749f){const _0x56022f=a724_0x29102f;return db[_0x56022f(0x18b)]['findOne']({'where':{'id':_0x55a52c['params']['id']}})['then'](function(_0x5e3265){const _0x63d52b=_0x56022f;if(!_0x5e3265)throw new ReferenceError(_0x63d52b(0x187));return _0x5e3265;})[_0x56022f(0x17a)](function(_0x329763){const _0x57997a=_0x56022f;let _0x3b6568=_0x329763[_0x57997a(0x15a)];return logger['info'](_0x57997a(0x16e),_0x3b6568),!_[_0x57997a(0x16f)](_0x329763[_0x57997a(0x15a)])&&fs[_0x57997a(0x16c)](_0x3b6568)&&(logger[_0x57997a(0x15d)](_0x57997a(0x164)+_0x3b6568+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs['unlinkSync'](_0x3b6568)),_0x3b6568=_0x3b6568+_0x57997a(0x167),!_['isNil'](_0x329763[_0x57997a(0x15a)])&&fs[_0x57997a(0x16c)](_0x3b6568)&&(logger[_0x57997a(0x15d)](_0x57997a(0x164)+_0x3b6568+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs[_0x57997a(0x169)](_0x3b6568)),_0x329763;})['then'](function(_0x1c79c5){const _0x134790=_0x56022f;if(!_0x1c79c5)throw new InternalError();return _0x1c79c5[_0x134790(0x14a)]();})[_0x56022f(0x17a)](function(){const _0x192089=_0x56022f;_0x2a749f['status'](0xcc)[_0x192089(0x18d)]();})['catch'](handleError(_0x2a749f,null));}; \ No newline at end of file +const a724_0x3dbb=['limit','map','body','Entity\x20not\x20found','attributes','util','VIRTUAL','cancellazione\x20fisica\x20documento\x20%s','File:\x20\x22','SquareRecording','extname','filename','nolimit','sendStatus','.cypher','../../config/environment','download','type','offset','unlink','count','show','rawAttributes','intersection','findOne','%s.cypher','includeAll','uniqueid','status','json','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','update','path','SquareRecording\x20not\x20found','length','secrets','info','catch','pick','stack','Content-Range','end','keys','error','fields','Not\x20found','savePath','unlinkSync','model','send','options','order','../../config/logger','where','rows','filters','existsSync','destroy','create','include','params','name','recording','index','../../components/encryptor','isNil','sort','filter','set','merge','sequelize','findAll','query','then','format'];(function(_0xc1f2be,_0x44a563){const _0x3dbb43=function(_0xc9fcac){while(--_0xc9fcac){_0xc1f2be['push'](_0xc1f2be['shift']());}};_0x3dbb43(++_0x44a563);}(a724_0x3dbb,0xf4));const a724_0xc9fc=function(_0xc1f2be,_0x44a563){_0xc1f2be=_0xc1f2be-0x12f;let _0x3dbb43=a724_0x3dbb[_0xc1f2be];return _0x3dbb43;};const a724_0xabd3b5=a724_0xc9fc;'use strict';const util=require(a724_0xabd3b5(0x16c)),path=require(a724_0xabd3b5(0x13c)),fs=require('fs'),_=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(a724_0xabd3b5(0x150))('api'),config=require(a724_0xabd3b5(0x176)),{db}=require('../../mysqldb'),{Op,ValidationError}=require(a724_0xabd3b5(0x162)),{InternalError}=require('error-middleware/errors');function respondWithResult(_0x5cd2d7,_0x440ac7){return _0x440ac7=_0x440ac7||0xc8,function(_0x3519fa){const _0x3c6bd6=a724_0xc9fc;if(_0x3519fa)return _0x5cd2d7[_0x3c6bd6(0x138)](_0x440ac7)[_0x3c6bd6(0x139)](_0x3519fa);};}function respondWithFilteredResult(_0xd338f0,_0x56a3ab){return function(_0x327dc9){const _0x2e206b=a724_0xc9fc;if(_0x327dc9){const _0xfb7319=_0x327dc9[_0x2e206b(0x130)],_0x3075a1=_0x56a3ab[_0x2e206b(0x179)];let _0x4ad805=_0x56a3ab[_0x2e206b(0x179)]+_0x56a3ab['limit'],_0x131b16;return _0x4ad805>=_0xfb7319?(_0x4ad805=_0xfb7319,_0x131b16=0xc8):_0x131b16=0xce,_0xd338f0[_0x2e206b(0x138)](_0x131b16),_0xd338f0[_0x2e206b(0x160)](_0x2e206b(0x144),_0x3075a1+'-'+_0x4ad805+'/'+_0xfb7319)[_0x2e206b(0x139)](_0x327dc9);}return null;};}function saveUpdates(_0xdd6997){return function(_0x316d33){const _0x59e1c9=a724_0xc9fc;if(_0x316d33)return _0x316d33[_0x59e1c9(0x13b)](_0xdd6997)['then'](function(_0x44d2c8){return _0x44d2c8;});return null;};}function handleEntityNotFound(_0x1ed22c){return function(_0x2c13e2){const _0xc3dccf=a724_0xc9fc;return!_0x2c13e2&&_0x1ed22c[_0xc3dccf(0x174)](0x194),_0x2c13e2;};}function handleError(_0x565b58,_0xbedb24){return _0xbedb24=_0xbedb24||0x1f4,function(_0x76bcc4){const _0x588608=a724_0xc9fc;logger[_0x588608(0x147)](_0x76bcc4[_0x588608(0x143)]),_0x76bcc4['name']&&delete _0x76bcc4[_0x588608(0x159)],_0x565b58[_0x588608(0x138)](_0xbedb24)['send'](_0x76bcc4);};}exports[a724_0xabd3b5(0x15b)]=function(_0x4da8a7,_0x22562e){const _0x5b04ff=a724_0xabd3b5;let _0x19cc06={};const _0x5c33b8={},_0x19fe7b={'count':0x0,'rows':[]},_0x1dade9=_['map'](db[_0x5b04ff(0x170)]['rawAttributes'],function(_0x303708){return{'name':_0x303708['fieldName'],'type':_0x303708['type']['key']};});_0x5c33b8[_0x5b04ff(0x14c)]=_[_0x5b04ff(0x168)](_0x1dade9,_0x5b04ff(0x159)),_0x5c33b8['query']=_[_0x5b04ff(0x146)](_0x4da8a7['query']),_0x5c33b8[_0x5b04ff(0x153)]=_['intersection'](_0x5c33b8[_0x5b04ff(0x14c)],_0x5c33b8[_0x5b04ff(0x164)]),_0x19cc06[_0x5b04ff(0x16b)]=_[_0x5b04ff(0x133)](_0x5c33b8[_0x5b04ff(0x14c)],qs[_0x5b04ff(0x148)](_0x4da8a7[_0x5b04ff(0x164)]['fields'])),_0x19cc06[_0x5b04ff(0x16b)]=_0x19cc06[_0x5b04ff(0x16b)][_0x5b04ff(0x13e)]?_0x19cc06[_0x5b04ff(0x16b)]:_0x5c33b8[_0x5b04ff(0x14c)];typeof _0x4da8a7['query'][_0x5b04ff(0x173)]==='undefined'&&(_0x19cc06[_0x5b04ff(0x167)]=qs[_0x5b04ff(0x167)](_0x4da8a7['query'][_0x5b04ff(0x167)]),_0x19cc06[_0x5b04ff(0x179)]=qs[_0x5b04ff(0x179)](_0x4da8a7[_0x5b04ff(0x164)][_0x5b04ff(0x179)]));_0x19cc06[_0x5b04ff(0x14f)]=qs[_0x5b04ff(0x15e)](_0x4da8a7[_0x5b04ff(0x164)][_0x5b04ff(0x15e)]),_0x19cc06[_0x5b04ff(0x151)]=qs['filters'](_[_0x5b04ff(0x142)](_0x4da8a7[_0x5b04ff(0x164)],_0x5c33b8[_0x5b04ff(0x153)]),_0x1dade9);_0x4da8a7[_0x5b04ff(0x164)]['filter']&&(_0x19cc06[_0x5b04ff(0x151)]=_[_0x5b04ff(0x161)](_0x19cc06['where'],{[Op['or']]:_[_0x5b04ff(0x168)](_0x1dade9,function(_0x3e0173){const _0x5943ce=_0x5b04ff;if(_0x3e0173[_0x5943ce(0x178)]!==_0x5943ce(0x16d)){const _0x475384={};return _0x475384[_0x3e0173[_0x5943ce(0x159)]]={[Op['like']]:'%'+_0x4da8a7[_0x5943ce(0x164)][_0x5943ce(0x15f)]+'%'},_0x475384;}})}));_0x19cc06=_[_0x5b04ff(0x161)]({},_0x19cc06,_0x4da8a7[_0x5b04ff(0x14e)]);const _0x1c3c77={'where':_0x19cc06['where']};return db[_0x5b04ff(0x170)]['count'](_0x1c3c77)[_0x5b04ff(0x165)](function(_0x3f1fa0){const _0x31470a=_0x5b04ff;return _0x19fe7b[_0x31470a(0x130)]=_0x3f1fa0,_0x4da8a7[_0x31470a(0x164)][_0x31470a(0x136)]&&(_0x19cc06[_0x31470a(0x157)]=[{'all':!![]}]),db['SquareRecording'][_0x31470a(0x163)](_0x19cc06);})[_0x5b04ff(0x165)](function(_0x2bfe52){const _0xad7f9f=_0x5b04ff;return _0x19fe7b[_0xad7f9f(0x152)]=_0x2bfe52,_0x19fe7b;})[_0x5b04ff(0x165)](respondWithFilteredResult(_0x22562e,_0x19cc06))[_0x5b04ff(0x141)](handleError(_0x22562e,null));},exports[a724_0xabd3b5(0x131)]=function(_0x14726f,_0x6d8cb7){const _0x339bee=a724_0xabd3b5;let _0x13f1ec={'raw':!![],'where':{'id':_0x14726f['params']['id']}};const _0x3472e3={};return _0x3472e3[_0x339bee(0x14c)]=_['keys'](db['SquareRecording'][_0x339bee(0x132)]),_0x3472e3[_0x339bee(0x164)]=_['keys'](_0x14726f[_0x339bee(0x164)]),_0x3472e3[_0x339bee(0x153)]=_['intersection'](_0x3472e3[_0x339bee(0x14c)],_0x3472e3[_0x339bee(0x164)]),_0x13f1ec[_0x339bee(0x16b)]=_[_0x339bee(0x133)](_0x3472e3[_0x339bee(0x14c)],qs[_0x339bee(0x148)](_0x14726f['query'][_0x339bee(0x148)])),_0x13f1ec['attributes']=_0x13f1ec['attributes']['length']?_0x13f1ec[_0x339bee(0x16b)]:_0x3472e3[_0x339bee(0x14c)],_0x14726f[_0x339bee(0x164)][_0x339bee(0x136)]&&(_0x13f1ec[_0x339bee(0x157)]=[{'all':!![]}]),_0x13f1ec=_[_0x339bee(0x161)]({},_0x13f1ec,_0x14726f['options']),db[_0x339bee(0x170)][_0x339bee(0x134)](_0x13f1ec)['then'](handleEntityNotFound(_0x6d8cb7,null))[_0x339bee(0x165)](respondWithResult(_0x6d8cb7,null))['catch'](handleError(_0x6d8cb7,null));},exports[a724_0xabd3b5(0x156)]=function(_0x42a8f9,_0x11f257){const _0x56d30c=a724_0xabd3b5;return db['SquareRecording'][_0x56d30c(0x156)](_0x42a8f9[_0x56d30c(0x169)],{})[_0x56d30c(0x165)](respondWithResult(_0x11f257,0xc9))['catch'](handleError(_0x11f257,null));},exports[a724_0xabd3b5(0x13b)]=function(_0x5ae09e,_0x44ad3f){const _0xa6daf3=a724_0xabd3b5;return _0x5ae09e[_0xa6daf3(0x169)]['id']&&delete _0x5ae09e[_0xa6daf3(0x169)]['id'],db[_0xa6daf3(0x170)][_0xa6daf3(0x134)]({'where':{'id':_0x5ae09e['params']['id']}})[_0xa6daf3(0x165)](handleEntityNotFound(_0x44ad3f,null))[_0xa6daf3(0x165)](saveUpdates(_0x5ae09e['body'],null))[_0xa6daf3(0x165)](respondWithResult(_0x44ad3f,null))[_0xa6daf3(0x141)](handleError(_0x44ad3f,null));},exports[a724_0xabd3b5(0x177)]=function(_0x2279ac,_0x31f7b5){const _0x3f452f=a724_0xabd3b5,_0x19c03b=require(_0x3f452f(0x15c));let _0x5cd5e7=![];const _0x54799b={};return _0x2279ac['query']['type']&&_0x2279ac[_0x3f452f(0x164)][_0x3f452f(0x178)]===_0x3f452f(0x137)?_0x54799b[_0x3f452f(0x137)]=_0x2279ac[_0x3f452f(0x158)]['id']:_0x54799b['id']=_0x2279ac['params']['id'],db[_0x3f452f(0x170)][_0x3f452f(0x134)]({'where':_0x54799b,'attributes':['id',_0x3f452f(0x14a),_0x3f452f(0x172)],'raw':!![]})[_0x3f452f(0x165)](handleEntityNotFound(_0x31f7b5,null))['then'](function(_0x224199){const _0x4058f0=_0x3f452f;if(_0x224199){const _0x553d5c=_0x224199['savePath'],_0x7518d1=util[_0x4058f0(0x166)](_0x4058f0(0x135),_0x553d5c);if(fs[_0x4058f0(0x154)](_0x7518d1))return _0x5cd5e7=!![],_0x19c03b['decryptFile'](_0x7518d1,_0x553d5c,config[_0x4058f0(0x13f)][_0x4058f0(0x15a)])[_0x4058f0(0x165)](function(){return _0x224199;});return _0x224199;}})[_0x3f452f(0x165)](function(_0xec8d0){const _0x26b4c1=_0x3f452f;if(_0xec8d0){const _0x11904a=_0xec8d0[_0x26b4c1(0x14a)];if(!fs['existsSync'](_0x11904a))throw new ValidationError(_0x26b4c1(0x13d));return _0xec8d0[_0x26b4c1(0x172)]?_0x31f7b5[_0x26b4c1(0x177)](_0x11904a,_0xec8d0[_0x26b4c1(0x172)]+path[_0x26b4c1(0x171)](_0x11904a),function(){const _0x1ae9df=_0x26b4c1;_0x5cd5e7&&fs[_0x1ae9df(0x12f)](_0x11904a);}):_0x31f7b5[_0x26b4c1(0x177)](_0x11904a,function(){const _0x2e88e5=_0x26b4c1;_0x5cd5e7&&fs[_0x2e88e5(0x12f)](_0x11904a);});}})[_0x3f452f(0x141)](function(_0x561099){const _0x5b3457=_0x3f452f;if(_0x561099['message']==='SquareRecording\x20not\x20found')_0x31f7b5['status'](0x194)[_0x5b3457(0x14d)](_0x5b3457(0x149));else return handleError(_0x31f7b5,null);});},exports[a724_0xabd3b5(0x155)]=function(_0x448497,_0x1ec6d3){const _0x13cfcc=a724_0xabd3b5;return db[_0x13cfcc(0x170)][_0x13cfcc(0x134)]({'where':{'id':_0x448497['params']['id']}})['then'](function(_0xfac890){const _0x20eeb5=_0x13cfcc;if(!_0xfac890)throw new ReferenceError(_0x20eeb5(0x16a));return _0xfac890;})[_0x13cfcc(0x165)](function(_0x1d1fb7){const _0x1e70b0=_0x13cfcc;let _0x550cee=_0x1d1fb7[_0x1e70b0(0x14a)];return logger[_0x1e70b0(0x140)](_0x1e70b0(0x16e),_0x550cee),!_['isNil'](_0x1d1fb7['savePath'])&&fs[_0x1e70b0(0x154)](_0x550cee)&&(logger[_0x1e70b0(0x140)]('File:\x20\x22'+_0x550cee+_0x1e70b0(0x13a)),fs[_0x1e70b0(0x14b)](_0x550cee)),_0x550cee=_0x550cee+_0x1e70b0(0x175),!_[_0x1e70b0(0x15d)](_0x1d1fb7[_0x1e70b0(0x14a)])&&fs[_0x1e70b0(0x154)](_0x550cee)&&(logger[_0x1e70b0(0x140)](_0x1e70b0(0x16f)+_0x550cee+_0x1e70b0(0x13a)),fs['unlinkSync'](_0x550cee)),_0x1d1fb7;})['then'](function(_0x2b3930){const _0x2b6b3c=_0x13cfcc;if(!_0x2b3930)throw new InternalError();return _0x2b3930[_0x2b6b3c(0x155)]();})[_0x13cfcc(0x165)](function(){const _0x2490ab=_0x13cfcc;_0x1ec6d3['status'](0xcc)[_0x2490ab(0x145)]();})[_0x13cfcc(0x141)](handleError(_0x1ec6d3,null));}; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.model.js b/server/api/squareRecording/squareRecording.model.js index 1256ecb..ae1d868 100644 --- a/server/api/squareRecording/squareRecording.model.js +++ b/server/api/squareRecording/squareRecording.model.js @@ -1 +1 @@ -const a725_0xdd67=['exports','sequelize','init','function','SquareRecording','./squareRecording.attributes'];(function(_0x277f22,_0x48869d){const _0xdd675b=function(_0x27f264){while(--_0x27f264){_0x277f22['push'](_0x277f22['shift']());}};_0xdd675b(++_0x48869d);}(a725_0xdd67,0x159));const a725_0x27f2=function(_0x277f22,_0x48869d){_0x277f22=_0x277f22-0x1d7;let _0xdd675b=a725_0xdd67[_0x277f22];return _0xdd675b;};const a725_0x2996b0=a725_0x27f2;'use strict';const {Model}=require(a725_0x2996b0(0x1db)),{attributes}=require(a725_0x2996b0(0x1d9)),{options}=require('./squareRecording.options');class SquareRecording extends Model{}function init(_0x43e3bf,_0x2021e4){const _0xeb15b3=a725_0x2996b0,_0x512253=options(_0x43e3bf),_0x5a0cc8=typeof _0x2021e4===_0xeb15b3(0x1d7)?_0x2021e4(_0x512253):_0x512253;return SquareRecording[_0xeb15b3(0x1dc)](attributes,_0x5a0cc8),SquareRecording;}module['exports'][a725_0x2996b0(0x1d8)]=SquareRecording,module[a725_0x2996b0(0x1da)][a725_0x2996b0(0x1dc)]=init; \ No newline at end of file +const a725_0x39ae=['exports','init','./squareRecording.options','sequelize'];(function(_0x12541f,_0x144bf1){const _0x39ae64=function(_0x24d796){while(--_0x24d796){_0x12541f['push'](_0x12541f['shift']());}};_0x39ae64(++_0x144bf1);}(a725_0x39ae,0x86));const a725_0x24d7=function(_0x12541f,_0x144bf1){_0x12541f=_0x12541f-0x1e9;let _0x39ae64=a725_0x39ae[_0x12541f];return _0x39ae64;};const a725_0x5a5ee9=a725_0x24d7;'use strict';const {Model}=require(a725_0x5a5ee9(0x1ea)),{attributes}=require('./squareRecording.attributes'),{options}=require(a725_0x5a5ee9(0x1e9));class SquareRecording extends Model{}function init(_0x3be86,_0x21a979){const _0x123f1e=a725_0x5a5ee9,_0x3a0d70=options(_0x3be86),_0xe9050c=typeof _0x21a979==='function'?_0x21a979(_0x3a0d70):_0x3a0d70;return SquareRecording[_0x123f1e(0x1ec)](attributes,_0xe9050c),SquareRecording;}module[a725_0x5a5ee9(0x1eb)]['SquareRecording']=SquareRecording,module[a725_0x5a5ee9(0x1eb)]['init']=init; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.options.js b/server/api/squareRecording/squareRecording.options.js index db0d0cf..ec2d9ab 100644 --- a/server/api/squareRecording/squareRecording.options.js +++ b/server/api/squareRecording/squareRecording.options.js @@ -1 +1 @@ -var a726_0x3014=['options','square_recordings','exports'];(function(_0xbb7614,_0xe84649){var _0x30147b=function(_0x4f474a){while(--_0x4f474a){_0xbb7614['push'](_0xbb7614['shift']());}};_0x30147b(++_0xe84649);}(a726_0x3014,0xbc));var a726_0x4f47=function(_0xbb7614,_0xe84649){_0xbb7614=_0xbb7614-0x74;var _0x30147b=a726_0x3014[_0xbb7614];return _0x30147b;};var a726_0x162323=a726_0x4f47;function options(_0x459ff4){var _0x551ced=a726_0x4f47;return{'sequelize':_0x459ff4,'tableName':_0x551ced(0x76),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a726_0x162323(0x74)][a726_0x162323(0x75)]=options; \ No newline at end of file +var a726_0x1c34=['square_recordings','exports','options'];(function(_0x54d11b,_0x466489){var _0x1c342e=function(_0x47b327){while(--_0x47b327){_0x54d11b['push'](_0x54d11b['shift']());}};_0x1c342e(++_0x466489);}(a726_0x1c34,0xc2));var a726_0x47b3=function(_0x54d11b,_0x466489){_0x54d11b=_0x54d11b-0xd5;var _0x1c342e=a726_0x1c34[_0x54d11b];return _0x1c342e;};var a726_0x128790=a726_0x47b3;function options(_0x545254){var _0x2e4497=a726_0x47b3;return{'sequelize':_0x545254,'tableName':_0x2e4497(0xd6),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a726_0x128790(0xd7)][a726_0x128790(0xd5)]=options; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.rpc.js b/server/api/squareRecording/squareRecording.rpc.js index 5f90c8f..ac1d9d5 100644 --- a/server/api/squareRecording/squareRecording.rpc.js +++ b/server/api/squareRecording/squareRecording.rpc.js @@ -1 +1 @@ -const a727_0x5b90=['../../config/logger','CreateSquareRecording','error','stringify','message','options','catch','raw'];(function(_0x3204ad,_0x479fd4){const _0x5b90e5=function(_0x44a045){while(--_0x44a045){_0x3204ad['push'](_0x3204ad['shift']());}};_0x5b90e5(++_0x479fd4);}(a727_0x5b90,0x1f1));const a727_0x44a0=function(_0x3204ad,_0x479fd4){_0x3204ad=_0x3204ad-0x104;let _0x5b90e5=a727_0x5b90[_0x3204ad];return _0x5b90e5;};const a727_0x2c5da5=a727_0x44a0;'use strict';const db=require('../../mysqldb')['db'],logger=require(a727_0x2c5da5(0x10b))('rpc');exports['CreateSquareRecording']=function(_0x4fabe7){const _0x4a81ce=this;return new Promise(function(_0xa4b0d,_0x2f2589){const _0x2b6663=a727_0x44a0;return db['SquareRecording']['create'](_0x4fabe7['body'],{'raw':_0x4fabe7['options']?_0x4fabe7[_0x2b6663(0x108)][_0x2b6663(0x10a)]===undefined?!![]:![]:!![]})['then'](function(_0x266fe4){const _0x165b53=_0x2b6663;logger['info']('CreateSquareRecording',_0x4fabe7),logger['debug']('CreateSquareRecording',_0x4fabe7,JSON[_0x165b53(0x106)](_0x266fe4)),_0xa4b0d(_0x266fe4);})[_0x2b6663(0x109)](function(_0x1f1442){const _0x277591=_0x2b6663;logger[_0x277591(0x105)](_0x277591(0x104),_0x1f1442['message'],_0x4fabe7),_0x2f2589(_0x4a81ce[_0x277591(0x105)](0x1f4,_0x1f1442[_0x277591(0x107)]));});});}; \ No newline at end of file +const a727_0x1a73=['../../config/logger','body','raw','options','info','stringify','message','create','error','then','CreateSquareRecording'];(function(_0x109d23,_0x1e335c){const _0x1a7327=function(_0x54106e){while(--_0x54106e){_0x109d23['push'](_0x109d23['shift']());}};_0x1a7327(++_0x1e335c);}(a727_0x1a73,0x159));const a727_0x5410=function(_0x109d23,_0x1e335c){_0x109d23=_0x109d23-0x8a;let _0x1a7327=a727_0x1a73[_0x109d23];return _0x1a7327;};const a727_0x25582e=a727_0x5410;'use strict';const db=require('../../mysqldb')['db'],logger=require(a727_0x25582e(0x91))('rpc');exports[a727_0x25582e(0x90)]=function(_0x6cc084){const _0x143fb3=this;return new Promise(function(_0x4d52b6,_0x388ebb){const _0x2297c0=a727_0x5410;return db['SquareRecording'][_0x2297c0(0x8d)](_0x6cc084[_0x2297c0(0x92)],{'raw':_0x6cc084['options']?_0x6cc084[_0x2297c0(0x94)][_0x2297c0(0x93)]===undefined?!![]:![]:!![]})[_0x2297c0(0x8f)](function(_0x235be6){const _0x7b600e=_0x2297c0;logger[_0x7b600e(0x8a)](_0x7b600e(0x90),_0x6cc084),logger['debug'](_0x7b600e(0x90),_0x6cc084,JSON[_0x7b600e(0x8b)](_0x235be6)),_0x4d52b6(_0x235be6);})['catch'](function(_0x2c7d8d){const _0x4718d7=_0x2297c0;logger['error'](_0x4718d7(0x90),_0x2c7d8d[_0x4718d7(0x8c)],_0x6cc084),_0x388ebb(_0x143fb3[_0x4718d7(0x8e)](0x1f4,_0x2c7d8d[_0x4718d7(0x8c)]));});});}; \ No newline at end of file diff --git a/server/api/squareReport/index.js b/server/api/squareReport/index.js index ef8c9a4..194b4de 100644 --- a/server/api/squareReport/index.js +++ b/server/api/squareReport/index.js @@ -1 +1 @@ -const a728_0x1e53=['delete','express','/describe','/:id','./squareReport.controller','update','show','../../components/auth/service','exports','Router','describe','get','isAuthenticated'];(function(_0x5b4d41,_0x46774d){const _0x1e53e7=function(_0x31e129){while(--_0x31e129){_0x5b4d41['push'](_0x5b4d41['shift']());}};_0x1e53e7(++_0x46774d);}(a728_0x1e53,0x110));const a728_0x31e1=function(_0x5b4d41,_0x46774d){_0x5b4d41=_0x5b4d41-0x1f0;let _0x1e53e7=a728_0x1e53[_0x5b4d41];return _0x1e53e7;};const a728_0x3cd32a=a728_0x31e1;'use strict';const express=require(a728_0x3cd32a(0x1f2)),router=express[a728_0x3cd32a(0x1fa)](),auth=require(a728_0x3cd32a(0x1f8)),controller=require(a728_0x3cd32a(0x1f5));router[a728_0x3cd32a(0x1fc)]('/',auth[a728_0x3cd32a(0x1f0)](),controller['index']),router[a728_0x3cd32a(0x1fc)](a728_0x3cd32a(0x1f3),auth[a728_0x3cd32a(0x1f0)](),controller[a728_0x3cd32a(0x1fb)]),router[a728_0x3cd32a(0x1fc)](a728_0x3cd32a(0x1f4),auth[a728_0x3cd32a(0x1f0)](),controller[a728_0x3cd32a(0x1f7)]),router['post']('/',auth[a728_0x3cd32a(0x1f0)](),controller['create']),router['put'](a728_0x3cd32a(0x1f4),auth[a728_0x3cd32a(0x1f0)](),controller[a728_0x3cd32a(0x1f6)]),router[a728_0x3cd32a(0x1f1)]('/:id',auth['isAuthenticated'](),controller['destroy']),module[a728_0x3cd32a(0x1f9)]=router; \ No newline at end of file +const a728_0x5a3a=['./squareReport.controller','exports','/:id','get','show','index','describe','isAuthenticated','/describe','Router','express','put','../../components/auth/service','post','create','delete'];(function(_0x3d053a,_0x15cc8a){const _0x5a3a15=function(_0x41fc36){while(--_0x41fc36){_0x3d053a['push'](_0x3d053a['shift']());}};_0x5a3a15(++_0x15cc8a);}(a728_0x5a3a,0x19f));const a728_0x41fc=function(_0x3d053a,_0x15cc8a){_0x3d053a=_0x3d053a-0x155;let _0x5a3a15=a728_0x5a3a[_0x3d053a];return _0x5a3a15;};const a728_0xcc39d5=a728_0x41fc;'use strict';const express=require(a728_0xcc39d5(0x160)),router=express[a728_0xcc39d5(0x15f)](),auth=require(a728_0xcc39d5(0x162)),controller=require(a728_0xcc39d5(0x156));router[a728_0xcc39d5(0x159)]('/',auth['isAuthenticated'](),controller[a728_0xcc39d5(0x15b)]),router[a728_0xcc39d5(0x159)](a728_0xcc39d5(0x15e),auth[a728_0xcc39d5(0x15d)](),controller[a728_0xcc39d5(0x15c)]),router[a728_0xcc39d5(0x159)]('/:id',auth['isAuthenticated'](),controller[a728_0xcc39d5(0x15a)]),router[a728_0xcc39d5(0x163)]('/',auth[a728_0xcc39d5(0x15d)](),controller[a728_0xcc39d5(0x164)]),router[a728_0xcc39d5(0x161)](a728_0xcc39d5(0x158),auth['isAuthenticated'](),controller['update']),router[a728_0xcc39d5(0x155)](a728_0xcc39d5(0x158),auth[a728_0xcc39d5(0x15d)](),controller['destroy']),module[a728_0xcc39d5(0x157)]=router; \ No newline at end of file diff --git a/server/api/squareReport/squareReport.attributes.js b/server/api/squareReport/squareReport.attributes.js index 75ddc3e..692c08d 100644 --- a/server/api/squareReport/squareReport.attributes.js +++ b/server/api/squareReport/squareReport.attributes.js @@ -1 +1 @@ -const a729_0x4a85=['sequelize','STRING','attributes','DATE','exports'];(function(_0x557148,_0x3fc6f6){const _0x4a8529=function(_0x128dfb){while(--_0x128dfb){_0x557148['push'](_0x557148['shift']());}};_0x4a8529(++_0x3fc6f6);}(a729_0x4a85,0x147));const a729_0x128d=function(_0x557148,_0x3fc6f6){_0x557148=_0x557148-0x131;let _0x4a8529=a729_0x4a85[_0x557148];return _0x4a8529;};const a729_0x5098a7=a729_0x128d;'use strict';const {DataTypes}=require(a729_0x5098a7(0x134)),attributes={'network':{'type':DataTypes[a729_0x5098a7(0x135)]},'network_script':{'type':DataTypes[a729_0x5098a7(0x135)]},'request':{'type':DataTypes[a729_0x5098a7(0x135)]},'channel':{'type':DataTypes[a729_0x5098a7(0x135)]},'language':{'type':DataTypes[a729_0x5098a7(0x135)]},'type':{'type':DataTypes[a729_0x5098a7(0x135)]},'uniqueid':{'type':DataTypes['STRING']},'version':{'type':DataTypes['STRING']},'callerid':{'type':DataTypes['STRING']},'calleridname':{'type':DataTypes[a729_0x5098a7(0x135)]},'callingpres':{'type':DataTypes['STRING']},'callingani2':{'type':DataTypes[a729_0x5098a7(0x135)]},'callington':{'type':DataTypes[a729_0x5098a7(0x135)]},'callingtns':{'type':DataTypes[a729_0x5098a7(0x135)]},'dnid':{'type':DataTypes[a729_0x5098a7(0x135)]},'rdnis':{'type':DataTypes[a729_0x5098a7(0x135)]},'context':{'type':DataTypes['STRING']},'extension':{'type':DataTypes[a729_0x5098a7(0x135)]},'priority':{'type':DataTypes[a729_0x5098a7(0x135)]},'enhanced':{'type':DataTypes[a729_0x5098a7(0x135)]},'accountcode':{'type':DataTypes[a729_0x5098a7(0x135)]},'threadid':{'type':DataTypes[a729_0x5098a7(0x135)]},'project_name':{'type':DataTypes[a729_0x5098a7(0x135)]},'joinAt':{'type':DataTypes['DATE']},'leaveAt':{'type':DataTypes[a729_0x5098a7(0x132)]},'bot':{'type':DataTypes['BOOLEAN'],'defaultValue':![]}};module[a729_0x5098a7(0x133)][a729_0x5098a7(0x131)]=attributes; \ No newline at end of file +const a729_0x37ff=['sequelize','DATE','BOOLEAN','exports','STRING'];(function(_0x1a4809,_0x3c82ce){const _0x37ff94=function(_0x4cdb28){while(--_0x4cdb28){_0x1a4809['push'](_0x1a4809['shift']());}};_0x37ff94(++_0x3c82ce);}(a729_0x37ff,0x1ce));const a729_0x4cdb=function(_0x1a4809,_0x3c82ce){_0x1a4809=_0x1a4809-0x18e;let _0x37ff94=a729_0x37ff[_0x1a4809];return _0x37ff94;};const a729_0x51d929=a729_0x4cdb;'use strict';const {DataTypes}=require(a729_0x51d929(0x191)),attributes={'network':{'type':DataTypes[a729_0x51d929(0x190)]},'network_script':{'type':DataTypes['STRING']},'request':{'type':DataTypes[a729_0x51d929(0x190)]},'channel':{'type':DataTypes[a729_0x51d929(0x190)]},'language':{'type':DataTypes['STRING']},'type':{'type':DataTypes[a729_0x51d929(0x190)]},'uniqueid':{'type':DataTypes[a729_0x51d929(0x190)]},'version':{'type':DataTypes[a729_0x51d929(0x190)]},'callerid':{'type':DataTypes['STRING']},'calleridname':{'type':DataTypes['STRING']},'callingpres':{'type':DataTypes[a729_0x51d929(0x190)]},'callingani2':{'type':DataTypes[a729_0x51d929(0x190)]},'callington':{'type':DataTypes['STRING']},'callingtns':{'type':DataTypes[a729_0x51d929(0x190)]},'dnid':{'type':DataTypes[a729_0x51d929(0x190)]},'rdnis':{'type':DataTypes[a729_0x51d929(0x190)]},'context':{'type':DataTypes[a729_0x51d929(0x190)]},'extension':{'type':DataTypes['STRING']},'priority':{'type':DataTypes[a729_0x51d929(0x190)]},'enhanced':{'type':DataTypes['STRING']},'accountcode':{'type':DataTypes[a729_0x51d929(0x190)]},'threadid':{'type':DataTypes[a729_0x51d929(0x190)]},'project_name':{'type':DataTypes[a729_0x51d929(0x190)]},'joinAt':{'type':DataTypes['DATE']},'leaveAt':{'type':DataTypes[a729_0x51d929(0x192)]},'bot':{'type':DataTypes[a729_0x51d929(0x18e)],'defaultValue':![]}};module[a729_0x51d929(0x18f)]['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 d1cbbc6..931d517 100644 --- a/server/api/squareReport/squareReport.controller.js +++ b/server/api/squareReport/squareReport.controller.js @@ -1 +1 @@ -const a730_0x3505=['length','query','update','body','show','fieldName','then','map','keys','offset','filters','params','model','includeAll','include','count','../../mysqldb','name','intersection','merge','set','json','../../config/logger','sequelize','findOne','stack','where','send','SquareReport','destroy','rows','api','status','like','attributes','limit','index','type','findAll','options','fields','create','Content-Range','describe','undefined','end','error','nolimit','pick','catch'];(function(_0x4492cc,_0x47fad0){const _0x35054a=function(_0x5d14d0){while(--_0x5d14d0){_0x4492cc['push'](_0x4492cc['shift']());}};_0x35054a(++_0x47fad0);}(a730_0x3505,0x84));const a730_0x5d14=function(_0x4492cc,_0x47fad0){_0x4492cc=_0x4492cc-0x1a1;let _0x35054a=a730_0x3505[_0x4492cc];return _0x35054a;};const a730_0xc145d9=a730_0x5d14;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(a730_0xc145d9(0x1c9))(a730_0xc145d9(0x1d2)),{db}=require(a730_0xc145d9(0x1c3)),{Op}=require(a730_0xc145d9(0x1ca));function respondWithResult(_0x230002,_0x388678){return _0x388678=_0x388678||0xc8,function(_0x2496ed){if(_0x2496ed)return _0x230002['status'](_0x388678)['json'](_0x2496ed);};}function respondWithFilteredResult(_0x42f2ee,_0x477d4e){return function(_0x26629b){const _0x237b04=a730_0x5d14;if(_0x26629b){const _0xf10b84=_0x26629b[_0x237b04(0x1c2)],_0x152cfd=_0x477d4e[_0x237b04(0x1bc)];let _0x1694ba=_0x477d4e[_0x237b04(0x1bc)]+_0x477d4e[_0x237b04(0x1a4)],_0x25c4f8;return _0x1694ba>=_0xf10b84?(_0x1694ba=_0xf10b84,_0x25c4f8=0xc8):_0x25c4f8=0xce,_0x42f2ee['status'](_0x25c4f8),_0x42f2ee[_0x237b04(0x1c7)](_0x237b04(0x1ab),_0x152cfd+'-'+_0x1694ba+'/'+_0xf10b84)[_0x237b04(0x1c8)](_0x26629b);}return null;};}function saveUpdates(_0xf3057d){return function(_0x274795){const _0x10d781=a730_0x5d14;if(_0x274795)return _0x274795['update'](_0xf3057d)[_0x10d781(0x1b9)](function(_0x494fa9){return _0x494fa9;});return null;};}function removeEntity(_0x542b13){return function(_0x52561a){const _0x21009c=a730_0x5d14;if(_0x52561a)return _0x52561a[_0x21009c(0x1d0)]()['then'](function(){const _0x149ab4=_0x21009c;_0x542b13['status'](0xcc)[_0x149ab4(0x1ae)]();});};}function handleEntityNotFound(_0x23ee65){return function(_0x562089){return!_0x562089&&_0x23ee65['sendStatus'](0x194),_0x562089;};}function handleError(_0x39c87c,_0x5a4477){return _0x5a4477=_0x5a4477||0x1f4,function(_0x5e2bcd){const _0x4d9edd=a730_0x5d14;logger[_0x4d9edd(0x1af)](_0x5e2bcd[_0x4d9edd(0x1cc)]),_0x5e2bcd[_0x4d9edd(0x1c4)]&&delete _0x5e2bcd[_0x4d9edd(0x1c4)],_0x39c87c[_0x4d9edd(0x1a1)](_0x5a4477)[_0x4d9edd(0x1ce)](_0x5e2bcd);};}exports[a730_0xc145d9(0x1a5)]=function(_0x266d1b,_0x10a268){const _0x3e2d19=a730_0xc145d9;let _0x12985b={};const _0x5e3204={},_0x5e792={'count':0x0,'rows':[]},_0x339c27=_[_0x3e2d19(0x1ba)](db[_0x3e2d19(0x1cf)]['rawAttributes'],function(_0x3a8317){const _0x525205=_0x3e2d19;return{'name':_0x3a8317[_0x525205(0x1b8)],'type':_0x3a8317[_0x525205(0x1a6)]['key']};});_0x5e3204['model']=_['map'](_0x339c27,_0x3e2d19(0x1c4)),_0x5e3204[_0x3e2d19(0x1b4)]=_['keys'](_0x266d1b[_0x3e2d19(0x1b4)]),_0x5e3204[_0x3e2d19(0x1bd)]=_['intersection'](_0x5e3204[_0x3e2d19(0x1bf)],_0x5e3204[_0x3e2d19(0x1b4)]),_0x12985b[_0x3e2d19(0x1a3)]=_['intersection'](_0x5e3204[_0x3e2d19(0x1bf)],qs[_0x3e2d19(0x1a9)](_0x266d1b[_0x3e2d19(0x1b4)][_0x3e2d19(0x1a9)])),_0x12985b[_0x3e2d19(0x1a3)]=_0x12985b['attributes'][_0x3e2d19(0x1b3)]?_0x12985b[_0x3e2d19(0x1a3)]:_0x5e3204[_0x3e2d19(0x1bf)];typeof _0x266d1b[_0x3e2d19(0x1b4)][_0x3e2d19(0x1b0)]===_0x3e2d19(0x1ad)&&(_0x12985b[_0x3e2d19(0x1a4)]=qs[_0x3e2d19(0x1a4)](_0x266d1b[_0x3e2d19(0x1b4)][_0x3e2d19(0x1a4)]),_0x12985b[_0x3e2d19(0x1bc)]=qs['offset'](_0x266d1b[_0x3e2d19(0x1b4)][_0x3e2d19(0x1bc)]));_0x12985b['order']=qs['sort'](_0x266d1b[_0x3e2d19(0x1b4)]['sort']),_0x12985b[_0x3e2d19(0x1cd)]=qs[_0x3e2d19(0x1bd)](_[_0x3e2d19(0x1b1)](_0x266d1b[_0x3e2d19(0x1b4)],_0x5e3204[_0x3e2d19(0x1bd)]),_0x339c27);_0x266d1b[_0x3e2d19(0x1b4)]['filter']&&(_0x12985b['where']=_['merge'](_0x12985b[_0x3e2d19(0x1cd)],{[Op['or']]:_[_0x3e2d19(0x1ba)](_0x339c27,function(_0x5e91fc){const _0x24475c=_0x3e2d19;if(_0x5e91fc[_0x24475c(0x1a6)]!=='VIRTUAL'){const _0xdd39f5={};return _0xdd39f5[_0x5e91fc[_0x24475c(0x1c4)]]={[Op[_0x24475c(0x1a2)]]:'%'+_0x266d1b[_0x24475c(0x1b4)]['filter']+'%'},_0xdd39f5;}})}));_0x12985b=_[_0x3e2d19(0x1c6)]({},_0x12985b,_0x266d1b['options']);const _0x3f0574={'where':_0x12985b[_0x3e2d19(0x1cd)]};return db[_0x3e2d19(0x1cf)][_0x3e2d19(0x1c2)](_0x3f0574)[_0x3e2d19(0x1b9)](function(_0x47bbc2){const _0x3c07d2=_0x3e2d19;return _0x5e792[_0x3c07d2(0x1c2)]=_0x47bbc2,_0x266d1b[_0x3c07d2(0x1b4)][_0x3c07d2(0x1c0)]&&(_0x12985b[_0x3c07d2(0x1c1)]=[{'all':!![]}]),db[_0x3c07d2(0x1cf)][_0x3c07d2(0x1a7)](_0x12985b);})[_0x3e2d19(0x1b9)](function(_0x464a9a){const _0x2d3f6b=_0x3e2d19;return _0x5e792[_0x2d3f6b(0x1d1)]=_0x464a9a,_0x5e792;})[_0x3e2d19(0x1b9)](respondWithFilteredResult(_0x10a268,_0x12985b))[_0x3e2d19(0x1b2)](handleError(_0x10a268,null));},exports[a730_0xc145d9(0x1b7)]=function(_0x1fedc2,_0x21bcc0){const _0x35acbb=a730_0xc145d9;let _0x46a563={'raw':!![],'where':{'id':_0x1fedc2[_0x35acbb(0x1be)]['id']}};const _0x398644={};return _0x398644['model']=_[_0x35acbb(0x1bb)](db['SquareReport']['rawAttributes']),_0x398644['query']=_['keys'](_0x1fedc2[_0x35acbb(0x1b4)]),_0x398644[_0x35acbb(0x1bd)]=_[_0x35acbb(0x1c5)](_0x398644[_0x35acbb(0x1bf)],_0x398644[_0x35acbb(0x1b4)]),_0x46a563[_0x35acbb(0x1a3)]=_[_0x35acbb(0x1c5)](_0x398644['model'],qs[_0x35acbb(0x1a9)](_0x1fedc2['query'][_0x35acbb(0x1a9)])),_0x46a563[_0x35acbb(0x1a3)]=_0x46a563['attributes'][_0x35acbb(0x1b3)]?_0x46a563['attributes']:_0x398644[_0x35acbb(0x1bf)],_0x1fedc2[_0x35acbb(0x1b4)][_0x35acbb(0x1c0)]&&(_0x46a563['include']=[{'all':!![]}]),_0x46a563=_[_0x35acbb(0x1c6)]({},_0x46a563,_0x1fedc2[_0x35acbb(0x1a8)]),db[_0x35acbb(0x1cf)][_0x35acbb(0x1cb)](_0x46a563)[_0x35acbb(0x1b9)](handleEntityNotFound(_0x21bcc0,null))[_0x35acbb(0x1b9)](respondWithResult(_0x21bcc0,null))['catch'](handleError(_0x21bcc0,null));},exports[a730_0xc145d9(0x1aa)]=function(_0x166482,_0x48b8cc){const _0x199aab=a730_0xc145d9;return db[_0x199aab(0x1cf)][_0x199aab(0x1aa)](_0x166482[_0x199aab(0x1b6)],{})[_0x199aab(0x1b9)](respondWithResult(_0x48b8cc,0xc9))[_0x199aab(0x1b2)](handleError(_0x48b8cc,null));},exports[a730_0xc145d9(0x1b5)]=function(_0x46256a,_0x55c34e){const _0x3b49cf=a730_0xc145d9;return _0x46256a[_0x3b49cf(0x1b6)]['id']&&delete _0x46256a[_0x3b49cf(0x1b6)]['id'],db[_0x3b49cf(0x1cf)][_0x3b49cf(0x1cb)]({'where':{'id':_0x46256a['params']['id']}})[_0x3b49cf(0x1b9)](handleEntityNotFound(_0x55c34e,null))[_0x3b49cf(0x1b9)](saveUpdates(_0x46256a[_0x3b49cf(0x1b6)],null))[_0x3b49cf(0x1b9)](respondWithResult(_0x55c34e,null))[_0x3b49cf(0x1b2)](handleError(_0x55c34e,null));},exports['destroy']=function(_0x485801,_0x5c7985){const _0x438ff5=a730_0xc145d9;return db[_0x438ff5(0x1cf)][_0x438ff5(0x1cb)]({'where':{'id':_0x485801[_0x438ff5(0x1be)]['id']}})[_0x438ff5(0x1b9)](handleEntityNotFound(_0x5c7985,null))[_0x438ff5(0x1b9)](removeEntity(_0x5c7985,null))['catch'](handleError(_0x5c7985,null));},exports[a730_0xc145d9(0x1ac)]=function(_0x30f200,_0x5a73a0){const _0x426591=a730_0xc145d9;return db[_0x426591(0x1cf)][_0x426591(0x1ac)]()[_0x426591(0x1b9)](respondWithResult(_0x5a73a0,null))[_0x426591(0x1b2)](handleError(_0x5a73a0,null));}; \ No newline at end of file +const a730_0x3f3d=['json','attributes','body','fieldName','map','api','limit','params','keys','end','filters','filter','where','stack','update','includeAll','describe','offset','nolimit','name','like','undefined','count','lodash','findAll','error','catch','fields','create','then','merge','set','type','pick','length','order','options','../../mysqldb','sort','VIRTUAL','index','show','destroy','findOne','model','query','rows','include','../../config/logger','intersection','rawAttributes','SquareReport','status','../../components/parsers/qs','send'];(function(_0x1584fc,_0x5c2b2c){const _0x3f3d45=function(_0x3aee66){while(--_0x3aee66){_0x1584fc['push'](_0x1584fc['shift']());}};_0x3f3d45(++_0x5c2b2c);}(a730_0x3f3d,0xbc));const a730_0x3aee=function(_0x1584fc,_0x5c2b2c){_0x1584fc=_0x1584fc-0x19f;let _0x3f3d45=a730_0x3f3d[_0x1584fc];return _0x3f3d45;};const a730_0x1b6ea2=a730_0x3aee;'use strict';const _=require(a730_0x1b6ea2(0x19f)),qs=require(a730_0x1b6ea2(0x1bd)),logger=require(a730_0x1b6ea2(0x1b8))(a730_0x1b6ea2(0x1c4)),{db}=require(a730_0x1b6ea2(0x1ad)),{Op}=require('sequelize');function respondWithResult(_0x45f114,_0x2e164c){return _0x2e164c=_0x2e164c||0xc8,function(_0x191686){const _0x30a9f4=a730_0x3aee;if(_0x191686)return _0x45f114['status'](_0x2e164c)[_0x30a9f4(0x1bf)](_0x191686);};}function respondWithFilteredResult(_0x533e66,_0xc37922){return function(_0x4730f4){const _0xfcc58f=a730_0x3aee;if(_0x4730f4){const _0x4f5101=_0x4730f4['count'],_0x3f1b9c=_0xc37922['offset'];let _0x4a243e=_0xc37922[_0xfcc58f(0x1d0)]+_0xc37922[_0xfcc58f(0x1c5)],_0x3a263c;return _0x4a243e>=_0x4f5101?(_0x4a243e=_0x4f5101,_0x3a263c=0xc8):_0x3a263c=0xce,_0x533e66['status'](_0x3a263c),_0x533e66[_0xfcc58f(0x1a7)]('Content-Range',_0x3f1b9c+'-'+_0x4a243e+'/'+_0x4f5101)['json'](_0x4730f4);}return null;};}function saveUpdates(_0x54fa90){return function(_0x10cc92){const _0x5859a3=a730_0x3aee;if(_0x10cc92)return _0x10cc92[_0x5859a3(0x1cd)](_0x54fa90)[_0x5859a3(0x1a5)](function(_0x4c5d8b){return _0x4c5d8b;});return null;};}function removeEntity(_0x97805d){return function(_0x294e1d){const _0x501a12=a730_0x3aee;if(_0x294e1d)return _0x294e1d[_0x501a12(0x1b2)]()[_0x501a12(0x1a5)](function(){const _0x5f691=_0x501a12;_0x97805d[_0x5f691(0x1bc)](0xcc)[_0x5f691(0x1c8)]();});};}function handleEntityNotFound(_0x198997){return function(_0x4f64f4){return!_0x4f64f4&&_0x198997['sendStatus'](0x194),_0x4f64f4;};}function handleError(_0x9bcbe9,_0x27ad26){return _0x27ad26=_0x27ad26||0x1f4,function(_0x2c0078){const _0x52fc9f=a730_0x3aee;logger[_0x52fc9f(0x1a1)](_0x2c0078[_0x52fc9f(0x1cc)]),_0x2c0078[_0x52fc9f(0x1d2)]&&delete _0x2c0078[_0x52fc9f(0x1d2)],_0x9bcbe9[_0x52fc9f(0x1bc)](_0x27ad26)[_0x52fc9f(0x1be)](_0x2c0078);};}exports[a730_0x1b6ea2(0x1b0)]=function(_0x5eed4b,_0x5f1155){const _0x5d98b5=a730_0x1b6ea2;let _0x54fe9d={};const _0x41250a={},_0x36101c={'count':0x0,'rows':[]},_0x32f40c=_[_0x5d98b5(0x1c3)](db['SquareReport'][_0x5d98b5(0x1ba)],function(_0x3aac9e){const _0x2f3dbb=_0x5d98b5;return{'name':_0x3aac9e[_0x2f3dbb(0x1c2)],'type':_0x3aac9e[_0x2f3dbb(0x1a8)]['key']};});_0x41250a['model']=_[_0x5d98b5(0x1c3)](_0x32f40c,_0x5d98b5(0x1d2)),_0x41250a[_0x5d98b5(0x1b5)]=_['keys'](_0x5eed4b[_0x5d98b5(0x1b5)]),_0x41250a['filters']=_[_0x5d98b5(0x1b9)](_0x41250a[_0x5d98b5(0x1b4)],_0x41250a[_0x5d98b5(0x1b5)]),_0x54fe9d[_0x5d98b5(0x1c0)]=_[_0x5d98b5(0x1b9)](_0x41250a[_0x5d98b5(0x1b4)],qs[_0x5d98b5(0x1a3)](_0x5eed4b[_0x5d98b5(0x1b5)][_0x5d98b5(0x1a3)])),_0x54fe9d[_0x5d98b5(0x1c0)]=_0x54fe9d[_0x5d98b5(0x1c0)]['length']?_0x54fe9d[_0x5d98b5(0x1c0)]:_0x41250a['model'];typeof _0x5eed4b[_0x5d98b5(0x1b5)][_0x5d98b5(0x1d1)]===_0x5d98b5(0x1d4)&&(_0x54fe9d[_0x5d98b5(0x1c5)]=qs[_0x5d98b5(0x1c5)](_0x5eed4b[_0x5d98b5(0x1b5)][_0x5d98b5(0x1c5)]),_0x54fe9d[_0x5d98b5(0x1d0)]=qs[_0x5d98b5(0x1d0)](_0x5eed4b['query'][_0x5d98b5(0x1d0)]));_0x54fe9d[_0x5d98b5(0x1ab)]=qs[_0x5d98b5(0x1ae)](_0x5eed4b['query'][_0x5d98b5(0x1ae)]),_0x54fe9d[_0x5d98b5(0x1cb)]=qs['filters'](_[_0x5d98b5(0x1a9)](_0x5eed4b[_0x5d98b5(0x1b5)],_0x41250a[_0x5d98b5(0x1c9)]),_0x32f40c);_0x5eed4b[_0x5d98b5(0x1b5)][_0x5d98b5(0x1ca)]&&(_0x54fe9d[_0x5d98b5(0x1cb)]=_[_0x5d98b5(0x1a6)](_0x54fe9d[_0x5d98b5(0x1cb)],{[Op['or']]:_[_0x5d98b5(0x1c3)](_0x32f40c,function(_0x31d2be){const _0x55e780=_0x5d98b5;if(_0x31d2be[_0x55e780(0x1a8)]!==_0x55e780(0x1af)){const _0x5d2c54={};return _0x5d2c54[_0x31d2be[_0x55e780(0x1d2)]]={[Op[_0x55e780(0x1d3)]]:'%'+_0x5eed4b[_0x55e780(0x1b5)]['filter']+'%'},_0x5d2c54;}})}));_0x54fe9d=_['merge']({},_0x54fe9d,_0x5eed4b[_0x5d98b5(0x1ac)]);const _0x58e355={'where':_0x54fe9d[_0x5d98b5(0x1cb)]};return db[_0x5d98b5(0x1bb)][_0x5d98b5(0x1d5)](_0x58e355)['then'](function(_0x2f7ba5){const _0x341efa=_0x5d98b5;return _0x36101c['count']=_0x2f7ba5,_0x5eed4b[_0x341efa(0x1b5)][_0x341efa(0x1ce)]&&(_0x54fe9d[_0x341efa(0x1b7)]=[{'all':!![]}]),db['SquareReport'][_0x341efa(0x1a0)](_0x54fe9d);})[_0x5d98b5(0x1a5)](function(_0x10e8fe){const _0x409dc5=_0x5d98b5;return _0x36101c[_0x409dc5(0x1b6)]=_0x10e8fe,_0x36101c;})['then'](respondWithFilteredResult(_0x5f1155,_0x54fe9d))[_0x5d98b5(0x1a2)](handleError(_0x5f1155,null));},exports[a730_0x1b6ea2(0x1b1)]=function(_0x1a062f,_0x45e6cf){const _0x5d0749=a730_0x1b6ea2;let _0x12a8c9={'raw':!![],'where':{'id':_0x1a062f[_0x5d0749(0x1c6)]['id']}};const _0x5e114d={};return _0x5e114d[_0x5d0749(0x1b4)]=_[_0x5d0749(0x1c7)](db[_0x5d0749(0x1bb)]['rawAttributes']),_0x5e114d['query']=_[_0x5d0749(0x1c7)](_0x1a062f[_0x5d0749(0x1b5)]),_0x5e114d[_0x5d0749(0x1c9)]=_[_0x5d0749(0x1b9)](_0x5e114d[_0x5d0749(0x1b4)],_0x5e114d[_0x5d0749(0x1b5)]),_0x12a8c9['attributes']=_[_0x5d0749(0x1b9)](_0x5e114d[_0x5d0749(0x1b4)],qs[_0x5d0749(0x1a3)](_0x1a062f['query'][_0x5d0749(0x1a3)])),_0x12a8c9['attributes']=_0x12a8c9[_0x5d0749(0x1c0)][_0x5d0749(0x1aa)]?_0x12a8c9['attributes']:_0x5e114d['model'],_0x1a062f['query'][_0x5d0749(0x1ce)]&&(_0x12a8c9[_0x5d0749(0x1b7)]=[{'all':!![]}]),_0x12a8c9=_[_0x5d0749(0x1a6)]({},_0x12a8c9,_0x1a062f[_0x5d0749(0x1ac)]),db[_0x5d0749(0x1bb)][_0x5d0749(0x1b3)](_0x12a8c9)[_0x5d0749(0x1a5)](handleEntityNotFound(_0x45e6cf,null))[_0x5d0749(0x1a5)](respondWithResult(_0x45e6cf,null))[_0x5d0749(0x1a2)](handleError(_0x45e6cf,null));},exports['create']=function(_0x5453ba,_0xe644b8){const _0x361bd9=a730_0x1b6ea2;return db['SquareReport'][_0x361bd9(0x1a4)](_0x5453ba[_0x361bd9(0x1c1)],{})[_0x361bd9(0x1a5)](respondWithResult(_0xe644b8,0xc9))[_0x361bd9(0x1a2)](handleError(_0xe644b8,null));},exports[a730_0x1b6ea2(0x1cd)]=function(_0x1d7726,_0x5b0701){const _0x5efa12=a730_0x1b6ea2;return _0x1d7726['body']['id']&&delete _0x1d7726[_0x5efa12(0x1c1)]['id'],db['SquareReport']['findOne']({'where':{'id':_0x1d7726[_0x5efa12(0x1c6)]['id']}})[_0x5efa12(0x1a5)](handleEntityNotFound(_0x5b0701,null))[_0x5efa12(0x1a5)](saveUpdates(_0x1d7726[_0x5efa12(0x1c1)],null))['then'](respondWithResult(_0x5b0701,null))[_0x5efa12(0x1a2)](handleError(_0x5b0701,null));},exports['destroy']=function(_0x305ac4,_0x32a0cc){const _0x586321=a730_0x1b6ea2;return db[_0x586321(0x1bb)][_0x586321(0x1b3)]({'where':{'id':_0x305ac4['params']['id']}})[_0x586321(0x1a5)](handleEntityNotFound(_0x32a0cc,null))[_0x586321(0x1a5)](removeEntity(_0x32a0cc,null))['catch'](handleError(_0x32a0cc,null));},exports[a730_0x1b6ea2(0x1cf)]=function(_0x4e431f,_0x594135){const _0x34f34f=a730_0x1b6ea2;return db[_0x34f34f(0x1bb)]['describe']()[_0x34f34f(0x1a5)](respondWithResult(_0x594135,null))['catch'](handleError(_0x594135,null));}; \ No newline at end of file diff --git a/server/api/squareReport/squareReport.model.js b/server/api/squareReport/squareReport.model.js index 41f2b09..68ab98a 100644 --- a/server/api/squareReport/squareReport.model.js +++ b/server/api/squareReport/squareReport.model.js @@ -1 +1 @@ -const a731_0x4279=['init','exports','./squareReport.options','./squareReport.attributes','sequelize','function'];(function(_0x3fe4fc,_0x552a19){const _0x42797f=function(_0x5ca2c7){while(--_0x5ca2c7){_0x3fe4fc['push'](_0x3fe4fc['shift']());}};_0x42797f(++_0x552a19);}(a731_0x4279,0x1d3));const a731_0x5ca2=function(_0x3fe4fc,_0x552a19){_0x3fe4fc=_0x3fe4fc-0x114;let _0x42797f=a731_0x4279[_0x3fe4fc];return _0x42797f;};const a731_0x4cda24=a731_0x5ca2;'use strict';const {Model}=require(a731_0x4cda24(0x119)),{attributes}=require(a731_0x4cda24(0x118)),{options}=require(a731_0x4cda24(0x117));class SquareReport extends Model{}function init(_0x3e39b2,_0x5bef05){const _0x1851af=a731_0x4cda24,_0x41d5c6=options(_0x3e39b2),_0x601c8e=typeof _0x5bef05===_0x1851af(0x114)?_0x5bef05(_0x41d5c6):_0x41d5c6;return SquareReport['init'](attributes,_0x601c8e),SquareReport;}module[a731_0x4cda24(0x116)]['SquareReport']=SquareReport,module[a731_0x4cda24(0x116)][a731_0x4cda24(0x115)]=init; \ No newline at end of file +const a731_0xd114=['./squareReport.attributes','SquareReport','./squareReport.options','sequelize','exports','init'];(function(_0x42e995,_0x7360ce){const _0xd11475=function(_0x19530c){while(--_0x19530c){_0x42e995['push'](_0x42e995['shift']());}};_0xd11475(++_0x7360ce);}(a731_0xd114,0x1ef));const a731_0x1953=function(_0x42e995,_0x7360ce){_0x42e995=_0x42e995-0x1c2;let _0xd11475=a731_0xd114[_0x42e995];return _0xd11475;};const a731_0x4659a0=a731_0x1953;'use strict';const {Model}=require(a731_0x4659a0(0x1c2)),{attributes}=require(a731_0x4659a0(0x1c5)),{options}=require(a731_0x4659a0(0x1c7));class SquareReport extends Model{}function init(_0x3cfbfe,_0x17d324){const _0x9c8819=a731_0x4659a0,_0x203031=options(_0x3cfbfe),_0x31f394=typeof _0x17d324==='function'?_0x17d324(_0x203031):_0x203031;return SquareReport[_0x9c8819(0x1c4)](attributes,_0x31f394),SquareReport;}module[a731_0x4659a0(0x1c3)][a731_0x4659a0(0x1c6)]=SquareReport,module['exports'][a731_0x4659a0(0x1c4)]=init; \ No newline at end of file diff --git a/server/api/squareReport/squareReport.options.js b/server/api/squareReport/squareReport.options.js index adc7385..745e561 100644 --- a/server/api/squareReport/squareReport.options.js +++ b/server/api/squareReport/squareReport.options.js @@ -1 +1 @@ -var a732_0x2610=['uid_pname','exports','leaveAt','options','project_name','uniqueid','report_square'];(function(_0x1bacf0,_0x19a932){var _0x2610da=function(_0x2c2f0e){while(--_0x2c2f0e){_0x1bacf0['push'](_0x1bacf0['shift']());}};_0x2610da(++_0x19a932);}(a732_0x2610,0x102));var a732_0x2c2f=function(_0x1bacf0,_0x19a932){_0x1bacf0=_0x1bacf0-0x8d;var _0x2610da=a732_0x2610[_0x1bacf0];return _0x2610da;};var a732_0x214e6a=a732_0x2c2f;function options(_0x2ef50a){var _0x58d011=a732_0x2c2f;return{'sequelize':_0x2ef50a,'tableName':_0x58d011(0x8d),'paranoid':![],'indexes':[{'name':_0x58d011(0x8e),'fields':[_0x58d011(0x93),_0x58d011(0x92)]},{'name':_0x58d011(0x90),'fields':[_0x58d011(0x90)]}],'timestamps':!![]};}module[a732_0x214e6a(0x8f)][a732_0x214e6a(0x91)]=options; \ No newline at end of file +var a732_0x1c36=['report_square','exports','leaveAt','uid_pname','uniqueid','options'];(function(_0x138613,_0x36a4ee){var _0x1c36dd=function(_0x162a9b){while(--_0x162a9b){_0x138613['push'](_0x138613['shift']());}};_0x1c36dd(++_0x36a4ee);}(a732_0x1c36,0x69));var a732_0x162a=function(_0x138613,_0x36a4ee){_0x138613=_0x138613-0x18d;var _0x1c36dd=a732_0x1c36[_0x138613];return _0x1c36dd;};var a732_0x1d71fd=a732_0x162a;function options(_0x597851){var _0x337719=a732_0x162a;return{'sequelize':_0x597851,'tableName':_0x337719(0x190),'paranoid':![],'indexes':[{'name':_0x337719(0x18d),'fields':[_0x337719(0x18e),'project_name']},{'name':'leaveAt','fields':[_0x337719(0x192)]}],'timestamps':!![]};}module[a732_0x1d71fd(0x191)][a732_0x1d71fd(0x18f)]=options; \ No newline at end of file diff --git a/server/api/squareReport/squareReport.rpc.js b/server/api/squareReport/squareReport.rpc.js index 898b49c..ac1213d 100644 --- a/server/api/squareReport/squareReport.rpc.js +++ b/server/api/squareReport/squareReport.rpc.js @@ -1 +1 @@ -const a733_0x47f6=['UpdateSquareReport','../../config/logger','attributes','CreateSquareReport','SquareReport','where','info','limit','raw','then','debug','options','body','error','message','catch','create'];(function(_0x935651,_0x1acf40){const _0x47f661=function(_0x3239a1){while(--_0x3239a1){_0x935651['push'](_0x935651['shift']());}};_0x47f661(++_0x1acf40);}(a733_0x47f6,0x79));const a733_0x3239=function(_0x935651,_0x1acf40){_0x935651=_0x935651-0xe1;let _0x47f661=a733_0x47f6[_0x935651];return _0x47f661;};const a733_0x11b88b=a733_0x3239;'use strict';const db=require('../../mysqldb')['db'],logger=require(a733_0x11b88b(0xf1))('rpc');exports[a733_0x11b88b(0xe2)]=function(_0x4bebd4){const _0x182bf5=this;return new Promise(function(_0x5c2874,_0x27624d){const _0x2622b5=a733_0x3239;return db['SquareReport'][_0x2622b5(0xef)](_0x4bebd4['body'],{'raw':_0x4bebd4[_0x2622b5(0xea)]?_0x4bebd4[_0x2622b5(0xea)][_0x2622b5(0xe7)]===undefined?!![]:![]:!![]})['then'](function(_0xddf739){const _0x24c2c5=_0x2622b5;logger[_0x24c2c5(0xe5)](_0x24c2c5(0xe2),_0x4bebd4),logger[_0x24c2c5(0xe9)](_0x24c2c5(0xe2),_0x4bebd4,JSON['stringify'](_0xddf739)),_0x5c2874(_0xddf739);})[_0x2622b5(0xee)](function(_0xcdbcd9){const _0x43cba0=_0x2622b5;logger[_0x43cba0(0xec)]('CreateSquareReport',_0xcdbcd9[_0x43cba0(0xed)],_0x4bebd4),_0x27624d(_0x182bf5[_0x43cba0(0xec)](0x1f4,_0xcdbcd9[_0x43cba0(0xed)]));});});},exports['UpdateSquareReport']=function(_0x313231){const _0x46b1dd=this;return new Promise(function(_0x5aa5e9,_0x2f9e66){const _0x10c51b=a733_0x3239;return db[_0x10c51b(0xe3)]['update'](_0x313231[_0x10c51b(0xeb)],{'raw':_0x313231['options']?_0x313231[_0x10c51b(0xea)][_0x10c51b(0xe7)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x313231['options']?_0x313231[_0x10c51b(0xea)][_0x10c51b(0xe4)]||null:null,'attributes':_0x313231[_0x10c51b(0xea)]?_0x313231['options'][_0x10c51b(0xe1)]||null:null,'limit':_0x313231['options']?_0x313231['options'][_0x10c51b(0xe6)]||null:null})[_0x10c51b(0xe8)](function(_0x481d33){const _0x39bfc9=_0x10c51b;logger[_0x39bfc9(0xe5)](_0x39bfc9(0xf0),_0x313231),logger[_0x39bfc9(0xe9)](_0x39bfc9(0xf0),_0x313231,JSON['stringify'](_0x481d33)),_0x5aa5e9(_0x481d33);})[_0x10c51b(0xee)](function(_0x5a5330){const _0x31f8f0=_0x10c51b;logger[_0x31f8f0(0xec)](_0x31f8f0(0xf0),_0x5a5330[_0x31f8f0(0xed)],_0x313231),_0x2f9e66(_0x46b1dd[_0x31f8f0(0xec)](0x1f4,_0x5a5330[_0x31f8f0(0xed)]));});});}; \ No newline at end of file +const a733_0x4dfc=['debug','update','rpc','../../config/logger','body','../../mysqldb','SquareReport','catch','attributes','UpdateSquareReport','where','limit','raw','info','options','message','create','error','stringify','CreateSquareReport'];(function(_0x3adddf,_0x1f7c15){const _0x4dfc6f=function(_0x333913){while(--_0x333913){_0x3adddf['push'](_0x3adddf['shift']());}};_0x4dfc6f(++_0x1f7c15);}(a733_0x4dfc,0x118));const a733_0x3339=function(_0x3adddf,_0x1f7c15){_0x3adddf=_0x3adddf-0x1b0;let _0x4dfc6f=a733_0x4dfc[_0x3adddf];return _0x4dfc6f;};const a733_0x107e71=a733_0x3339;'use strict';const db=require(a733_0x107e71(0x1b5))['db'],logger=require(a733_0x107e71(0x1b3))(a733_0x107e71(0x1b2));exports[a733_0x107e71(0x1c3)]=function(_0xecbccf){const _0x7cfd3=this;return new Promise(function(_0x40574f,_0xad45da){const _0x4db7b5=a733_0x3339;return db[_0x4db7b5(0x1b6)][_0x4db7b5(0x1c0)](_0xecbccf[_0x4db7b5(0x1b4)],{'raw':_0xecbccf[_0x4db7b5(0x1be)]?_0xecbccf[_0x4db7b5(0x1be)][_0x4db7b5(0x1bc)]===undefined?!![]:![]:!![]})['then'](function(_0xef2eb3){const _0x2271c7=_0x4db7b5;logger[_0x2271c7(0x1bd)](_0x2271c7(0x1c3),_0xecbccf),logger[_0x2271c7(0x1b0)](_0x2271c7(0x1c3),_0xecbccf,JSON[_0x2271c7(0x1c2)](_0xef2eb3)),_0x40574f(_0xef2eb3);})['catch'](function(_0x314330){const _0x49b368=_0x4db7b5;logger[_0x49b368(0x1c1)](_0x49b368(0x1c3),_0x314330[_0x49b368(0x1bf)],_0xecbccf),_0xad45da(_0x7cfd3[_0x49b368(0x1c1)](0x1f4,_0x314330[_0x49b368(0x1bf)]));});});},exports[a733_0x107e71(0x1b9)]=function(_0x22076c){const _0x35c664=this;return new Promise(function(_0x5ed166,_0x4a991c){const _0x1f4b5a=a733_0x3339;return db['SquareReport'][_0x1f4b5a(0x1b1)](_0x22076c[_0x1f4b5a(0x1b4)],{'raw':_0x22076c[_0x1f4b5a(0x1be)]?_0x22076c[_0x1f4b5a(0x1be)]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x22076c['options']?_0x22076c[_0x1f4b5a(0x1be)][_0x1f4b5a(0x1ba)]||null:null,'attributes':_0x22076c[_0x1f4b5a(0x1be)]?_0x22076c[_0x1f4b5a(0x1be)][_0x1f4b5a(0x1b8)]||null:null,'limit':_0x22076c['options']?_0x22076c[_0x1f4b5a(0x1be)][_0x1f4b5a(0x1bb)]||null:null})['then'](function(_0x3c0dea){const _0x4a5260=_0x1f4b5a;logger['info'](_0x4a5260(0x1b9),_0x22076c),logger[_0x4a5260(0x1b0)](_0x4a5260(0x1b9),_0x22076c,JSON[_0x4a5260(0x1c2)](_0x3c0dea)),_0x5ed166(_0x3c0dea);})[_0x1f4b5a(0x1b7)](function(_0x2ead74){const _0x5c15a4=_0x1f4b5a;logger['error'](_0x5c15a4(0x1b9),_0x2ead74[_0x5c15a4(0x1bf)],_0x22076c),_0x4a991c(_0x35c664[_0x5c15a4(0x1c1)](0x1f4,_0x2ead74[_0x5c15a4(0x1bf)]));});});}; \ No newline at end of file diff --git a/server/api/squareReportDetail/index.js b/server/api/squareReportDetail/index.js index faedd7f..6ec81c1 100644 --- a/server/api/squareReportDetail/index.js +++ b/server/api/squareReportDetail/index.js @@ -1 +1 @@ -const a734_0x3054=['../../components/auth/service','post','put','delete','show','/describe','/:id','get','express','index','exports','update','describe','create','isAuthenticated','./squareReportDetail.controller','Router'];(function(_0x460341,_0x578774){const _0x305490=function(_0x809e89){while(--_0x809e89){_0x460341['push'](_0x460341['shift']());}};_0x305490(++_0x578774);}(a734_0x3054,0x1f2));const a734_0x809e=function(_0x460341,_0x578774){_0x460341=_0x460341-0x107;let _0x305490=a734_0x3054[_0x460341];return _0x305490;};const a734_0x3504dd=a734_0x809e;'use strict';const express=require(a734_0x3504dd(0x10a)),router=express[a734_0x3504dd(0x112)](),auth=require(a734_0x3504dd(0x113)),controller=require(a734_0x3504dd(0x111));router[a734_0x3504dd(0x109)]('/',auth[a734_0x3504dd(0x110)](),controller[a734_0x3504dd(0x10b)]),router[a734_0x3504dd(0x109)](a734_0x3504dd(0x107),auth[a734_0x3504dd(0x110)](),controller[a734_0x3504dd(0x10e)]),router['get'](a734_0x3504dd(0x108),auth['isAuthenticated'](),controller[a734_0x3504dd(0x117)]),router[a734_0x3504dd(0x114)]('/',auth[a734_0x3504dd(0x110)](),controller[a734_0x3504dd(0x10f)]),router[a734_0x3504dd(0x115)]('/:id',auth['isAuthenticated'](),controller[a734_0x3504dd(0x10d)]),router[a734_0x3504dd(0x116)](a734_0x3504dd(0x108),auth[a734_0x3504dd(0x110)](),controller['destroy']),module[a734_0x3504dd(0x10c)]=router; \ No newline at end of file +const a734_0x39f9=['Router','/describe','index','get','exports','isAuthenticated','show','describe','express','create','/:id','./squareReportDetail.controller','delete','../../components/auth/service','put'];(function(_0x5e50e9,_0x5d4afb){const _0x39f95d=function(_0x533167){while(--_0x533167){_0x5e50e9['push'](_0x5e50e9['shift']());}};_0x39f95d(++_0x5d4afb);}(a734_0x39f9,0x11d));const a734_0x5331=function(_0x5e50e9,_0x5d4afb){_0x5e50e9=_0x5e50e9-0xca;let _0x39f95d=a734_0x39f9[_0x5e50e9];return _0x39f95d;};const a734_0x3575dc=a734_0x5331;'use strict';const express=require(a734_0x3575dc(0xd2)),router=express[a734_0x3575dc(0xca)](),auth=require(a734_0x3575dc(0xd7)),controller=require(a734_0x3575dc(0xd5));router[a734_0x3575dc(0xcd)]('/',auth['isAuthenticated'](),controller[a734_0x3575dc(0xcc)]),router[a734_0x3575dc(0xcd)](a734_0x3575dc(0xcb),auth[a734_0x3575dc(0xcf)](),controller[a734_0x3575dc(0xd1)]),router[a734_0x3575dc(0xcd)](a734_0x3575dc(0xd4),auth[a734_0x3575dc(0xcf)](),controller[a734_0x3575dc(0xd0)]),router['post']('/',auth['isAuthenticated'](),controller[a734_0x3575dc(0xd3)]),router[a734_0x3575dc(0xd8)](a734_0x3575dc(0xd4),auth['isAuthenticated'](),controller['update']),router[a734_0x3575dc(0xd6)](a734_0x3575dc(0xd4),auth[a734_0x3575dc(0xcf)](),controller['destroy']),module[a734_0x3575dc(0xce)]=router; \ No newline at end of file diff --git a/server/api/squareReportDetail/squareReportDetail.attributes.js b/server/api/squareReportDetail/squareReportDetail.attributes.js index 4829efa..bf73853 100644 --- a/server/api/squareReportDetail/squareReportDetail.attributes.js +++ b/server/api/squareReportDetail/squareReportDetail.attributes.js @@ -1 +1 @@ -const a735_0x4d61=['attributes','STRING','sequelize','TEXT'];(function(_0x4e13d9,_0x59a895){const _0x4d6163=function(_0x189d6d){while(--_0x189d6d){_0x4e13d9['push'](_0x4e13d9['shift']());}};_0x4d6163(++_0x59a895);}(a735_0x4d61,0x118));const a735_0x189d=function(_0x4e13d9,_0x59a895){_0x4e13d9=_0x4e13d9-0x102;let _0x4d6163=a735_0x4d61[_0x4e13d9];return _0x4d6163;};const a735_0x28291d=a735_0x189d;'use strict';const {DataTypes}=require(a735_0x28291d(0x104)),attributes={'uniqueid':{'type':DataTypes[a735_0x28291d(0x103)]},'node':{'type':DataTypes[a735_0x28291d(0x103)]},'application':{'type':DataTypes[a735_0x28291d(0x103)]},'data':{'type':DataTypes[a735_0x28291d(0x105)]},'project_name':{'type':DataTypes[a735_0x28291d(0x103)]},'callerid':{'type':DataTypes[a735_0x28291d(0x103)]}};module['exports'][a735_0x28291d(0x102)]=attributes; \ No newline at end of file +const a735_0x79ce=['exports','STRING','attributes','sequelize'];(function(_0x1753ef,_0x3d5793){const _0x79cec9=function(_0x2a9f7e){while(--_0x2a9f7e){_0x1753ef['push'](_0x1753ef['shift']());}};_0x79cec9(++_0x3d5793);}(a735_0x79ce,0x1b0));const a735_0x2a9f=function(_0x1753ef,_0x3d5793){_0x1753ef=_0x1753ef-0x1bd;let _0x79cec9=a735_0x79ce[_0x1753ef];return _0x79cec9;};const a735_0x16344e=a735_0x2a9f;'use strict';const {DataTypes}=require(a735_0x16344e(0x1c0)),attributes={'uniqueid':{'type':DataTypes['STRING']},'node':{'type':DataTypes[a735_0x16344e(0x1be)]},'application':{'type':DataTypes[a735_0x16344e(0x1be)]},'data':{'type':DataTypes['TEXT']},'project_name':{'type':DataTypes[a735_0x16344e(0x1be)]},'callerid':{'type':DataTypes[a735_0x16344e(0x1be)]}};module[a735_0x16344e(0x1bd)][a735_0x16344e(0x1bf)]=attributes; \ No newline at end of file diff --git a/server/api/squareReportDetail/squareReportDetail.controller.js b/server/api/squareReportDetail/squareReportDetail.controller.js index 5f767a4..cbea418 100644 --- a/server/api/squareReportDetail/squareReportDetail.controller.js +++ b/server/api/squareReportDetail/squareReportDetail.controller.js @@ -1 +1 @@ -const a736_0x54ec=['../../config/logger','name','error','findAll','../../mysqldb','fieldName','findOne','type','send','create','sort','order','body','describe','SquareDetailsReport','include','attributes','sequelize','intersection','update','set','destroy','limit','catch','undefined','rows','filters','lodash','json','where','pick','options','count','show','sendStatus','map','api','filter','fields','offset','model','includeAll','query','then','params','status','rawAttributes','keys','stack','VIRTUAL','length','merge'];(function(_0x3b61b4,_0x53edaa){const _0x54ec1b=function(_0x17f317){while(--_0x17f317){_0x3b61b4['push'](_0x3b61b4['shift']());}};_0x54ec1b(++_0x53edaa);}(a736_0x54ec,0x9d));const a736_0x17f3=function(_0x3b61b4,_0x53edaa){_0x3b61b4=_0x3b61b4-0x7f;let _0x54ec1b=a736_0x54ec[_0x3b61b4];return _0x54ec1b;};const a736_0x5a2412=a736_0x17f3;'use strict';const _=require(a736_0x5a2412(0x99)),qs=require('../../components/parsers/qs'),logger=require(a736_0x5a2412(0xb2))(a736_0x5a2412(0xa2)),{db}=require(a736_0x5a2412(0x82)),{Op}=require(a736_0x5a2412(0x8f));function respondWithResult(_0x4f01c6,_0x43cafa){return _0x43cafa=_0x43cafa||0xc8,function(_0x1816bf){const _0x3ee94e=a736_0x17f3;if(_0x1816bf)return _0x4f01c6[_0x3ee94e(0xab)](_0x43cafa)['json'](_0x1816bf);};}function respondWithFilteredResult(_0x16f0ec,_0x35480b){return function(_0x1babf1){const _0x189910=a736_0x17f3;if(_0x1babf1){const _0x462f0c=_0x1babf1[_0x189910(0x9e)],_0x5251ab=_0x35480b[_0x189910(0xa5)];let _0x49f822=_0x35480b['offset']+_0x35480b['limit'],_0x43314f;return _0x49f822>=_0x462f0c?(_0x49f822=_0x462f0c,_0x43314f=0xc8):_0x43314f=0xce,_0x16f0ec[_0x189910(0xab)](_0x43314f),_0x16f0ec[_0x189910(0x92)]('Content-Range',_0x5251ab+'-'+_0x49f822+'/'+_0x462f0c)[_0x189910(0x9a)](_0x1babf1);}return null;};}function saveUpdates(_0x1253b4){return function(_0x315433){const _0x4455e3=a736_0x17f3;if(_0x315433)return _0x315433[_0x4455e3(0x91)](_0x1253b4)[_0x4455e3(0xa9)](function(_0x197023){return _0x197023;});return null;};}function removeEntity(_0x35f9b2){return function(_0x571ef6){const _0x238597=a736_0x17f3;if(_0x571ef6)return _0x571ef6[_0x238597(0x93)]()[_0x238597(0xa9)](function(){const _0x2f54d8=_0x238597;_0x35f9b2[_0x2f54d8(0xab)](0xcc)['end']();});};}function handleEntityNotFound(_0x9d78d6){return function(_0x5a9a2e){const _0x162262=a736_0x17f3;return!_0x5a9a2e&&_0x9d78d6[_0x162262(0xa0)](0x194),_0x5a9a2e;};}function handleError(_0x4fb52d,_0x45c5fe){return _0x45c5fe=_0x45c5fe||0x1f4,function(_0x3a5021){const _0x302b51=a736_0x17f3;logger[_0x302b51(0x80)](_0x3a5021[_0x302b51(0xae)]),_0x3a5021['name']&&delete _0x3a5021[_0x302b51(0x7f)],_0x4fb52d[_0x302b51(0xab)](_0x45c5fe)[_0x302b51(0x86)](_0x3a5021);};}exports['index']=function(_0x442c64,_0x554bb3){const _0x577196=a736_0x5a2412;let _0x19b1e4={};const _0x422568={},_0x518a1b={'count':0x0,'rows':[]},_0x291793=_[_0x577196(0xa1)](db[_0x577196(0x8c)][_0x577196(0xac)],function(_0x15231c){const _0x565219=_0x577196;return{'name':_0x15231c[_0x565219(0x83)],'type':_0x15231c['type']['key']};});_0x422568[_0x577196(0xa6)]=_[_0x577196(0xa1)](_0x291793,_0x577196(0x7f)),_0x422568[_0x577196(0xa8)]=_[_0x577196(0xad)](_0x442c64['query']),_0x422568[_0x577196(0x98)]=_[_0x577196(0x90)](_0x422568[_0x577196(0xa6)],_0x422568['query']),_0x19b1e4[_0x577196(0x8e)]=_[_0x577196(0x90)](_0x422568[_0x577196(0xa6)],qs[_0x577196(0xa4)](_0x442c64[_0x577196(0xa8)]['fields'])),_0x19b1e4[_0x577196(0x8e)]=_0x19b1e4[_0x577196(0x8e)][_0x577196(0xb0)]?_0x19b1e4[_0x577196(0x8e)]:_0x422568['model'];typeof _0x442c64[_0x577196(0xa8)]['nolimit']===_0x577196(0x96)&&(_0x19b1e4[_0x577196(0x94)]=qs[_0x577196(0x94)](_0x442c64[_0x577196(0xa8)][_0x577196(0x94)]),_0x19b1e4['offset']=qs[_0x577196(0xa5)](_0x442c64[_0x577196(0xa8)]['offset']));_0x19b1e4[_0x577196(0x89)]=qs[_0x577196(0x88)](_0x442c64[_0x577196(0xa8)][_0x577196(0x88)]),_0x19b1e4[_0x577196(0x9b)]=qs['filters'](_[_0x577196(0x9c)](_0x442c64[_0x577196(0xa8)],_0x422568[_0x577196(0x98)]),_0x291793);_0x442c64[_0x577196(0xa8)][_0x577196(0xa3)]&&(_0x19b1e4[_0x577196(0x9b)]=_['merge'](_0x19b1e4['where'],{[Op['or']]:_['map'](_0x291793,function(_0x32e710){const _0x24a2df=_0x577196;if(_0x32e710[_0x24a2df(0x85)]!==_0x24a2df(0xaf)){const _0x55107f={};return _0x55107f[_0x32e710[_0x24a2df(0x7f)]]={[Op['like']]:'%'+_0x442c64[_0x24a2df(0xa8)][_0x24a2df(0xa3)]+'%'},_0x55107f;}})}));_0x19b1e4=_[_0x577196(0xb1)]({},_0x19b1e4,_0x442c64[_0x577196(0x9d)]);const _0x52bbc3={'where':_0x19b1e4[_0x577196(0x9b)]};return db['SquareDetailsReport'][_0x577196(0x9e)](_0x52bbc3)[_0x577196(0xa9)](function(_0x327570){const _0x2ad00a=_0x577196;return _0x518a1b[_0x2ad00a(0x9e)]=_0x327570,_0x442c64[_0x2ad00a(0xa8)][_0x2ad00a(0xa7)]&&(_0x19b1e4['include']=[{'all':!![]}]),db[_0x2ad00a(0x8c)][_0x2ad00a(0x81)](_0x19b1e4);})[_0x577196(0xa9)](function(_0x2b6855){const _0x2b9daa=_0x577196;return _0x518a1b[_0x2b9daa(0x97)]=_0x2b6855,_0x518a1b;})[_0x577196(0xa9)](respondWithFilteredResult(_0x554bb3,_0x19b1e4))['catch'](handleError(_0x554bb3,null));},exports[a736_0x5a2412(0x9f)]=function(_0x364908,_0x456acb){const _0x5ee5bc=a736_0x5a2412;let _0x17dd7c={'raw':!![],'where':{'id':_0x364908[_0x5ee5bc(0xaa)]['id']}};const _0x1ba07d={};return _0x1ba07d[_0x5ee5bc(0xa6)]=_[_0x5ee5bc(0xad)](db['SquareDetailsReport'][_0x5ee5bc(0xac)]),_0x1ba07d[_0x5ee5bc(0xa8)]=_[_0x5ee5bc(0xad)](_0x364908['query']),_0x1ba07d[_0x5ee5bc(0x98)]=_[_0x5ee5bc(0x90)](_0x1ba07d[_0x5ee5bc(0xa6)],_0x1ba07d[_0x5ee5bc(0xa8)]),_0x17dd7c[_0x5ee5bc(0x8e)]=_[_0x5ee5bc(0x90)](_0x1ba07d[_0x5ee5bc(0xa6)],qs[_0x5ee5bc(0xa4)](_0x364908['query'][_0x5ee5bc(0xa4)])),_0x17dd7c[_0x5ee5bc(0x8e)]=_0x17dd7c[_0x5ee5bc(0x8e)][_0x5ee5bc(0xb0)]?_0x17dd7c[_0x5ee5bc(0x8e)]:_0x1ba07d[_0x5ee5bc(0xa6)],_0x364908[_0x5ee5bc(0xa8)]['includeAll']&&(_0x17dd7c[_0x5ee5bc(0x8d)]=[{'all':!![]}]),_0x17dd7c=_[_0x5ee5bc(0xb1)]({},_0x17dd7c,_0x364908[_0x5ee5bc(0x9d)]),db[_0x5ee5bc(0x8c)][_0x5ee5bc(0x84)](_0x17dd7c)['then'](handleEntityNotFound(_0x456acb,null))[_0x5ee5bc(0xa9)](respondWithResult(_0x456acb,null))[_0x5ee5bc(0x95)](handleError(_0x456acb,null));},exports['create']=function(_0x410cd3,_0x11674e){const _0x3434ed=a736_0x5a2412;return db['SquareDetailsReport'][_0x3434ed(0x87)](_0x410cd3[_0x3434ed(0x8a)],{})[_0x3434ed(0xa9)](respondWithResult(_0x11674e,0xc9))[_0x3434ed(0x95)](handleError(_0x11674e,null));},exports['update']=function(_0x40db58,_0x107a84){const _0x117ea3=a736_0x5a2412;return _0x40db58[_0x117ea3(0x8a)]['id']&&delete _0x40db58[_0x117ea3(0x8a)]['id'],db[_0x117ea3(0x8c)][_0x117ea3(0x84)]({'where':{'id':_0x40db58[_0x117ea3(0xaa)]['id']}})[_0x117ea3(0xa9)](handleEntityNotFound(_0x107a84,null))[_0x117ea3(0xa9)](saveUpdates(_0x40db58[_0x117ea3(0x8a)],null))[_0x117ea3(0xa9)](respondWithResult(_0x107a84,null))[_0x117ea3(0x95)](handleError(_0x107a84,null));},exports['destroy']=function(_0x2a1a21,_0x16f90e){const _0x54ffe5=a736_0x5a2412;return db[_0x54ffe5(0x8c)][_0x54ffe5(0x84)]({'where':{'id':_0x2a1a21[_0x54ffe5(0xaa)]['id']}})[_0x54ffe5(0xa9)](handleEntityNotFound(_0x16f90e,null))[_0x54ffe5(0xa9)](removeEntity(_0x16f90e,null))['catch'](handleError(_0x16f90e,null));},exports[a736_0x5a2412(0x8b)]=function(_0x532eb0,_0x32c28e){const _0x2d56e5=a736_0x5a2412;return db[_0x2d56e5(0x8c)]['describe']()[_0x2d56e5(0xa9)](respondWithResult(_0x32c28e,null))[_0x2d56e5(0x95)](handleError(_0x32c28e,null));}; \ No newline at end of file +const a736_0x41e1=['lodash','includeAll','set','findAll','Content-Range','order','pick','then','attributes','keys','nolimit','model','length','VIRTUAL','like','limit','error','body','send','../../mysqldb','catch','SquareDetailsReport','status','count','sort','index','filters','fieldName','json','type','offset','describe','destroy','undefined','params','where','rawAttributes','options','sendStatus','map','merge','create','../../components/parsers/qs','intersection','fields','api','findOne','filter','name','include','query','update','rows'];(function(_0x1a1797,_0x512b61){const _0x41e1d9=function(_0x392a8a){while(--_0x392a8a){_0x1a1797['push'](_0x1a1797['shift']());}};_0x41e1d9(++_0x512b61);}(a736_0x41e1,0xbd));const a736_0x392a=function(_0x1a1797,_0x512b61){_0x1a1797=_0x1a1797-0x85;let _0x41e1d9=a736_0x41e1[_0x1a1797];return _0x41e1d9;};const a736_0x44abf5=a736_0x392a;'use strict';const _=require(a736_0x44abf5(0x9c)),qs=require(a736_0x44abf5(0x91)),logger=require('../../config/logger')(a736_0x44abf5(0x94)),{db}=require(a736_0x44abf5(0xaf)),{Op}=require('sequelize');function respondWithResult(_0x554fcb,_0x372839){return _0x372839=_0x372839||0xc8,function(_0xa6162f){const _0x22e699=a736_0x392a;if(_0xa6162f)return _0x554fcb[_0x22e699(0xb2)](_0x372839)[_0x22e699(0xb8)](_0xa6162f);};}function respondWithFilteredResult(_0x33e1b1,_0x4a9ca0){return function(_0x19a064){const _0x21a0b5=a736_0x392a;if(_0x19a064){const _0x2a34ea=_0x19a064[_0x21a0b5(0xb3)],_0x95e744=_0x4a9ca0[_0x21a0b5(0x85)];let _0x5434e4=_0x4a9ca0[_0x21a0b5(0x85)]+_0x4a9ca0[_0x21a0b5(0xab)],_0x51085d;return _0x5434e4>=_0x2a34ea?(_0x5434e4=_0x2a34ea,_0x51085d=0xc8):_0x51085d=0xce,_0x33e1b1['status'](_0x51085d),_0x33e1b1[_0x21a0b5(0x9e)](_0x21a0b5(0xa0),_0x95e744+'-'+_0x5434e4+'/'+_0x2a34ea)[_0x21a0b5(0xb8)](_0x19a064);}return null;};}function saveUpdates(_0x94e263){return function(_0x432c14){const _0x3de4b1=a736_0x392a;if(_0x432c14)return _0x432c14[_0x3de4b1(0x9a)](_0x94e263)['then'](function(_0x39c4cc){return _0x39c4cc;});return null;};}function removeEntity(_0x48df64){return function(_0x259bce){const _0x45f639=a736_0x392a;if(_0x259bce)return _0x259bce[_0x45f639(0x87)]()[_0x45f639(0xa3)](function(){const _0x3bc790=_0x45f639;_0x48df64[_0x3bc790(0xb2)](0xcc)['end']();});};}function handleEntityNotFound(_0x34f3d5){return function(_0x214047){const _0x561514=a736_0x392a;return!_0x214047&&_0x34f3d5[_0x561514(0x8d)](0x194),_0x214047;};}function handleError(_0x5217c7,_0x35bec4){return _0x35bec4=_0x35bec4||0x1f4,function(_0x49b5f2){const _0x44cf6f=a736_0x392a;logger[_0x44cf6f(0xac)](_0x49b5f2['stack']),_0x49b5f2[_0x44cf6f(0x97)]&&delete _0x49b5f2[_0x44cf6f(0x97)],_0x5217c7['status'](_0x35bec4)[_0x44cf6f(0xae)](_0x49b5f2);};}exports[a736_0x44abf5(0xb5)]=function(_0x29d2cb,_0x2f378f){const _0x43fdb0=a736_0x44abf5;let _0x396de7={};const _0x1c4fd1={},_0x209eb4={'count':0x0,'rows':[]},_0x5c4541=_['map'](db[_0x43fdb0(0xb1)][_0x43fdb0(0x8b)],function(_0x134260){const _0x4ee30d=_0x43fdb0;return{'name':_0x134260[_0x4ee30d(0xb7)],'type':_0x134260[_0x4ee30d(0xb9)]['key']};});_0x1c4fd1[_0x43fdb0(0xa7)]=_[_0x43fdb0(0x8e)](_0x5c4541,'name'),_0x1c4fd1[_0x43fdb0(0x99)]=_[_0x43fdb0(0xa5)](_0x29d2cb[_0x43fdb0(0x99)]),_0x1c4fd1[_0x43fdb0(0xb6)]=_[_0x43fdb0(0x92)](_0x1c4fd1['model'],_0x1c4fd1['query']),_0x396de7[_0x43fdb0(0xa4)]=_[_0x43fdb0(0x92)](_0x1c4fd1[_0x43fdb0(0xa7)],qs[_0x43fdb0(0x93)](_0x29d2cb['query'][_0x43fdb0(0x93)])),_0x396de7[_0x43fdb0(0xa4)]=_0x396de7[_0x43fdb0(0xa4)][_0x43fdb0(0xa8)]?_0x396de7[_0x43fdb0(0xa4)]:_0x1c4fd1[_0x43fdb0(0xa7)];typeof _0x29d2cb[_0x43fdb0(0x99)][_0x43fdb0(0xa6)]===_0x43fdb0(0x88)&&(_0x396de7[_0x43fdb0(0xab)]=qs[_0x43fdb0(0xab)](_0x29d2cb[_0x43fdb0(0x99)]['limit']),_0x396de7[_0x43fdb0(0x85)]=qs[_0x43fdb0(0x85)](_0x29d2cb[_0x43fdb0(0x99)][_0x43fdb0(0x85)]));_0x396de7[_0x43fdb0(0xa1)]=qs['sort'](_0x29d2cb[_0x43fdb0(0x99)][_0x43fdb0(0xb4)]),_0x396de7[_0x43fdb0(0x8a)]=qs[_0x43fdb0(0xb6)](_[_0x43fdb0(0xa2)](_0x29d2cb[_0x43fdb0(0x99)],_0x1c4fd1[_0x43fdb0(0xb6)]),_0x5c4541);_0x29d2cb[_0x43fdb0(0x99)][_0x43fdb0(0x96)]&&(_0x396de7[_0x43fdb0(0x8a)]=_['merge'](_0x396de7[_0x43fdb0(0x8a)],{[Op['or']]:_[_0x43fdb0(0x8e)](_0x5c4541,function(_0x2c477e){const _0x1d15e3=_0x43fdb0;if(_0x2c477e[_0x1d15e3(0xb9)]!==_0x1d15e3(0xa9)){const _0x10f31a={};return _0x10f31a[_0x2c477e[_0x1d15e3(0x97)]]={[Op[_0x1d15e3(0xaa)]]:'%'+_0x29d2cb[_0x1d15e3(0x99)]['filter']+'%'},_0x10f31a;}})}));_0x396de7=_[_0x43fdb0(0x8f)]({},_0x396de7,_0x29d2cb['options']);const _0x38dab1={'where':_0x396de7[_0x43fdb0(0x8a)]};return db[_0x43fdb0(0xb1)]['count'](_0x38dab1)[_0x43fdb0(0xa3)](function(_0x186de5){const _0x2cf9f6=_0x43fdb0;return _0x209eb4[_0x2cf9f6(0xb3)]=_0x186de5,_0x29d2cb['query'][_0x2cf9f6(0x9d)]&&(_0x396de7[_0x2cf9f6(0x98)]=[{'all':!![]}]),db['SquareDetailsReport'][_0x2cf9f6(0x9f)](_0x396de7);})['then'](function(_0x3e186d){const _0x52d911=_0x43fdb0;return _0x209eb4[_0x52d911(0x9b)]=_0x3e186d,_0x209eb4;})[_0x43fdb0(0xa3)](respondWithFilteredResult(_0x2f378f,_0x396de7))[_0x43fdb0(0xb0)](handleError(_0x2f378f,null));},exports['show']=function(_0x59b814,_0x3b81cb){const _0x188d98=a736_0x44abf5;let _0x330bdb={'raw':!![],'where':{'id':_0x59b814[_0x188d98(0x89)]['id']}};const _0x4bbb97={};return _0x4bbb97['model']=_[_0x188d98(0xa5)](db[_0x188d98(0xb1)]['rawAttributes']),_0x4bbb97[_0x188d98(0x99)]=_[_0x188d98(0xa5)](_0x59b814[_0x188d98(0x99)]),_0x4bbb97[_0x188d98(0xb6)]=_[_0x188d98(0x92)](_0x4bbb97['model'],_0x4bbb97[_0x188d98(0x99)]),_0x330bdb['attributes']=_['intersection'](_0x4bbb97[_0x188d98(0xa7)],qs[_0x188d98(0x93)](_0x59b814[_0x188d98(0x99)]['fields'])),_0x330bdb[_0x188d98(0xa4)]=_0x330bdb[_0x188d98(0xa4)]['length']?_0x330bdb[_0x188d98(0xa4)]:_0x4bbb97['model'],_0x59b814[_0x188d98(0x99)][_0x188d98(0x9d)]&&(_0x330bdb[_0x188d98(0x98)]=[{'all':!![]}]),_0x330bdb=_[_0x188d98(0x8f)]({},_0x330bdb,_0x59b814[_0x188d98(0x8c)]),db[_0x188d98(0xb1)]['findOne'](_0x330bdb)['then'](handleEntityNotFound(_0x3b81cb,null))['then'](respondWithResult(_0x3b81cb,null))[_0x188d98(0xb0)](handleError(_0x3b81cb,null));},exports[a736_0x44abf5(0x90)]=function(_0x5c5cd1,_0xd9ed9){const _0x321183=a736_0x44abf5;return db[_0x321183(0xb1)][_0x321183(0x90)](_0x5c5cd1[_0x321183(0xad)],{})[_0x321183(0xa3)](respondWithResult(_0xd9ed9,0xc9))[_0x321183(0xb0)](handleError(_0xd9ed9,null));},exports[a736_0x44abf5(0x9a)]=function(_0x3701b8,_0x1948d2){const _0x15b23a=a736_0x44abf5;return _0x3701b8['body']['id']&&delete _0x3701b8[_0x15b23a(0xad)]['id'],db[_0x15b23a(0xb1)]['findOne']({'where':{'id':_0x3701b8['params']['id']}})[_0x15b23a(0xa3)](handleEntityNotFound(_0x1948d2,null))[_0x15b23a(0xa3)](saveUpdates(_0x3701b8[_0x15b23a(0xad)],null))['then'](respondWithResult(_0x1948d2,null))['catch'](handleError(_0x1948d2,null));},exports[a736_0x44abf5(0x87)]=function(_0x92b42c,_0x3e6705){const _0x286080=a736_0x44abf5;return db['SquareDetailsReport'][_0x286080(0x95)]({'where':{'id':_0x92b42c['params']['id']}})[_0x286080(0xa3)](handleEntityNotFound(_0x3e6705,null))[_0x286080(0xa3)](removeEntity(_0x3e6705,null))['catch'](handleError(_0x3e6705,null));},exports[a736_0x44abf5(0x86)]=function(_0x395be0,_0xc696c8){const _0x5371e9=a736_0x44abf5;return db[_0x5371e9(0xb1)][_0x5371e9(0x86)]()[_0x5371e9(0xa3)](respondWithResult(_0xc696c8,null))[_0x5371e9(0xb0)](handleError(_0xc696c8,null));}; \ No newline at end of file diff --git a/server/api/squareReportDetail/squareReportDetail.model.js b/server/api/squareReportDetail/squareReportDetail.model.js index 8388b52..9007772 100644 --- a/server/api/squareReportDetail/squareReportDetail.model.js +++ b/server/api/squareReportDetail/squareReportDetail.model.js @@ -1 +1 @@ -const a737_0x2533=['./squareReportDetail.attributes','./squareReportDetail.options','function','init','SquareDetailsReport'];(function(_0x1f6ea4,_0x309191){const _0x253357=function(_0x3d05d4){while(--_0x3d05d4){_0x1f6ea4['push'](_0x1f6ea4['shift']());}};_0x253357(++_0x309191);}(a737_0x2533,0x14d));const a737_0x3d05=function(_0x1f6ea4,_0x309191){_0x1f6ea4=_0x1f6ea4-0x14f;let _0x253357=a737_0x2533[_0x1f6ea4];return _0x253357;};const a737_0x283d98=a737_0x3d05;'use strict';const {Model}=require('sequelize'),{attributes}=require(a737_0x283d98(0x151)),{options}=require(a737_0x283d98(0x152));class SquareDetailsReport extends Model{}function init(_0x23f9e9,_0x47992d){const _0x3e694d=a737_0x283d98,_0xec5b42=options(_0x23f9e9),_0x159ee6=typeof _0x47992d===_0x3e694d(0x153)?_0x47992d(_0xec5b42):_0xec5b42;return SquareDetailsReport['init'](attributes,_0x159ee6),SquareDetailsReport;}module['exports'][a737_0x283d98(0x150)]=SquareDetailsReport,module['exports'][a737_0x283d98(0x14f)]=init; \ No newline at end of file +const a737_0x557e=['sequelize','./squareReportDetail.options','exports','function','./squareReportDetail.attributes','init'];(function(_0x588a9e,_0x1a2017){const _0x557e1e=function(_0x18ba0a){while(--_0x18ba0a){_0x588a9e['push'](_0x588a9e['shift']());}};_0x557e1e(++_0x1a2017);}(a737_0x557e,0x82));const a737_0x18ba=function(_0x588a9e,_0x1a2017){_0x588a9e=_0x588a9e-0x80;let _0x557e1e=a737_0x557e[_0x588a9e];return _0x557e1e;};const a737_0x20c3d8=a737_0x18ba;'use strict';const {Model}=require(a737_0x20c3d8(0x82)),{attributes}=require(a737_0x20c3d8(0x80)),{options}=require(a737_0x20c3d8(0x83));class SquareDetailsReport extends Model{}function init(_0x22b70e,_0x401838){const _0x30a172=a737_0x20c3d8,_0x57378f=options(_0x22b70e),_0x2bca8d=typeof _0x401838===_0x30a172(0x85)?_0x401838(_0x57378f):_0x57378f;return SquareDetailsReport[_0x30a172(0x81)](attributes,_0x2bca8d),SquareDetailsReport;}module[a737_0x20c3d8(0x84)]['SquareDetailsReport']=SquareDetailsReport,module[a737_0x20c3d8(0x84)]['init']=init; \ No newline at end of file diff --git a/server/api/squareReportDetail/squareReportDetail.options.js b/server/api/squareReportDetail/squareReportDetail.options.js index f755090..35fb8d9 100644 --- a/server/api/squareReportDetail/squareReportDetail.options.js +++ b/server/api/squareReportDetail/squareReportDetail.options.js @@ -1 +1 @@ -var a738_0x3b07=['report_square_details','options','exports'];(function(_0x1f3a27,_0x151f6f){var _0x3b07ae=function(_0x4af0ff){while(--_0x4af0ff){_0x1f3a27['push'](_0x1f3a27['shift']());}};_0x3b07ae(++_0x151f6f);}(a738_0x3b07,0x1a4));var a738_0x4af0=function(_0x1f3a27,_0x151f6f){_0x1f3a27=_0x1f3a27-0xc1;var _0x3b07ae=a738_0x3b07[_0x1f3a27];return _0x3b07ae;};var a738_0x1846be=a738_0x4af0;function options(_0x7d0aef){var _0x4428f8=a738_0x4af0;return{'sequelize':_0x7d0aef,'tableName':_0x4428f8(0xc1),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a738_0x1846be(0xc3)][a738_0x1846be(0xc2)]=options; \ No newline at end of file +var a738_0x26db=['report_square_details','options'];(function(_0x472b1d,_0x18073c){var _0x26db36=function(_0x20a3d0){while(--_0x20a3d0){_0x472b1d['push'](_0x472b1d['shift']());}};_0x26db36(++_0x18073c);}(a738_0x26db,0x1e5));var a738_0x20a3=function(_0x472b1d,_0x18073c){_0x472b1d=_0x472b1d-0x88;var _0x26db36=a738_0x26db[_0x472b1d];return _0x26db36;};var a738_0x35a979=a738_0x20a3;function options(_0x23558b){var _0x2ce99f=a738_0x20a3;return{'sequelize':_0x23558b,'tableName':_0x2ce99f(0x89),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a738_0x35a979(0x88)]=options; \ No newline at end of file diff --git a/server/api/squareReportDetail/squareReportDetail.rpc.js b/server/api/squareReportDetail/squareReportDetail.rpc.js index aa81d4e..5584e6a 100644 --- a/server/api/squareReportDetail/squareReportDetail.rpc.js +++ b/server/api/squareReportDetail/squareReportDetail.rpc.js @@ -1 +1 @@ -const a739_0xbd93=['raw','CreateSquareDetailsReport','message','rpc','../../mysqldb','stringify','body','info','debug','options','create','error'];(function(_0x3fcb13,_0x10decc){const _0xbd9343=function(_0x5ec7a3){while(--_0x5ec7a3){_0x3fcb13['push'](_0x3fcb13['shift']());}};_0xbd9343(++_0x10decc);}(a739_0xbd93,0xfb));const a739_0x5ec7=function(_0x3fcb13,_0x10decc){_0x3fcb13=_0x3fcb13-0xfd;let _0xbd9343=a739_0xbd93[_0x3fcb13];return _0xbd9343;};const a739_0x5cdfc2=a739_0x5ec7;'use strict';const db=require(a739_0x5cdfc2(0x102))['db'],logger=require('../../config/logger')(a739_0x5cdfc2(0x101));exports[a739_0x5cdfc2(0xff)]=function(_0x21d1f1){const _0x3a8860=this;return new Promise(function(_0x27fdfc,_0x4b585c){const _0x356b0d=a739_0x5ec7;return db['SquareDetailsReport'][_0x356b0d(0x108)](_0x21d1f1[_0x356b0d(0x104)],{'raw':_0x21d1f1[_0x356b0d(0x107)]?_0x21d1f1[_0x356b0d(0x107)][_0x356b0d(0xfe)]===undefined?!![]:![]:!![]})['then'](function(_0x764052){const _0x32c85c=_0x356b0d;logger[_0x32c85c(0x105)](_0x32c85c(0xff),_0x21d1f1),logger[_0x32c85c(0x106)](_0x32c85c(0xff),_0x21d1f1,JSON[_0x32c85c(0x103)](_0x764052)),_0x27fdfc(_0x764052);})['catch'](function(_0x47cf9c){const _0x58d213=_0x356b0d;logger[_0x58d213(0xfd)](_0x58d213(0xff),_0x47cf9c[_0x58d213(0x100)],_0x21d1f1),_0x4b585c(_0x3a8860['error'](0x1f4,_0x47cf9c[_0x58d213(0x100)]));});});}; \ No newline at end of file +const a739_0x369c=['../../config/logger','body','error','catch','raw','../../mysqldb','info','CreateSquareDetailsReport','message','options','create','then','rpc'];(function(_0x3ae0db,_0x9fb72f){const _0x369c44=function(_0x160c7b){while(--_0x160c7b){_0x3ae0db['push'](_0x3ae0db['shift']());}};_0x369c44(++_0x9fb72f);}(a739_0x369c,0x131));const a739_0x160c=function(_0x3ae0db,_0x9fb72f){_0x3ae0db=_0x3ae0db-0x16d;let _0x369c44=a739_0x369c[_0x3ae0db];return _0x369c44;};const a739_0x51adba=a739_0x160c;'use strict';const db=require(a739_0x51adba(0x179))['db'],logger=require(a739_0x51adba(0x174))(a739_0x51adba(0x173));exports['CreateSquareDetailsReport']=function(_0x25e507){const _0x15f04f=this;return new Promise(function(_0x25e646,_0x4367fe){const _0xb9654a=a739_0x160c;return db['SquareDetailsReport'][_0xb9654a(0x171)](_0x25e507[_0xb9654a(0x175)],{'raw':_0x25e507[_0xb9654a(0x170)]?_0x25e507[_0xb9654a(0x170)][_0xb9654a(0x178)]===undefined?!![]:![]:!![]})[_0xb9654a(0x172)](function(_0xb88972){const _0xda0635=_0xb9654a;logger[_0xda0635(0x16d)]('CreateSquareDetailsReport',_0x25e507),logger['debug']('CreateSquareDetailsReport',_0x25e507,JSON['stringify'](_0xb88972)),_0x25e646(_0xb88972);})[_0xb9654a(0x177)](function(_0x19728e){const _0x4b981f=_0xb9654a;logger[_0x4b981f(0x176)](_0x4b981f(0x16e),_0x19728e[_0x4b981f(0x16f)],_0x25e507),_0x4367fe(_0x15f04f[_0x4b981f(0x176)](0x1f4,_0x19728e[_0x4b981f(0x16f)]));});});}; \ No newline at end of file diff --git a/server/api/system/index.js b/server/api/system/index.js index 5bbd184..e8eebc2 100644 --- a/server/api/system/index.js +++ b/server/api/system/index.js @@ -1 +1 @@ -const a740_0x7ecb=['killProcess','express','./system.controller','isAuthenticated','index','../../components/auth/service','/process/:pid/kill','get'];(function(_0x168634,_0xa40932){const _0x7ecbca=function(_0x1a6287){while(--_0x1a6287){_0x168634['push'](_0x168634['shift']());}};_0x7ecbca(++_0xa40932);}(a740_0x7ecb,0x102));const a740_0x1a62=function(_0x168634,_0xa40932){_0x168634=_0x168634-0x100;let _0x7ecbca=a740_0x7ecb[_0x168634];return _0x7ecbca;};const a740_0x3493ea=a740_0x1a62;'use strict';const express=require(a740_0x3493ea(0x107)),router=express['Router'](),auth=require(a740_0x3493ea(0x103)),controller=require(a740_0x3493ea(0x100));router[a740_0x3493ea(0x105)]('/',auth[a740_0x3493ea(0x101)](),controller[a740_0x3493ea(0x102)]),router[a740_0x3493ea(0x105)](a740_0x3493ea(0x104),auth[a740_0x3493ea(0x101)](),controller[a740_0x3493ea(0x106)]),module['exports']=router; \ No newline at end of file +const a740_0x3e3e=['../../components/auth/service','express','/process/:pid/kill','killProcess','isAuthenticated','Router','./system.controller','get','index','exports'];(function(_0x2b5599,_0x7b03a5){const _0x3e3e33=function(_0x1ce8ca){while(--_0x1ce8ca){_0x2b5599['push'](_0x2b5599['shift']());}};_0x3e3e33(++_0x7b03a5);}(a740_0x3e3e,0x1c4));const a740_0x1ce8=function(_0x2b5599,_0x7b03a5){_0x2b5599=_0x2b5599-0x1c3;let _0x3e3e33=a740_0x3e3e[_0x2b5599];return _0x3e3e33;};const a740_0x10e381=a740_0x1ce8;'use strict';const express=require(a740_0x10e381(0x1cc)),router=express[a740_0x10e381(0x1c6)](),auth=require(a740_0x10e381(0x1cb)),controller=require(a740_0x10e381(0x1c7));router[a740_0x10e381(0x1c8)]('/',auth[a740_0x10e381(0x1c5)](),controller[a740_0x10e381(0x1c9)]),router[a740_0x10e381(0x1c8)](a740_0x10e381(0x1c3),auth[a740_0x10e381(0x1c5)](),controller[a740_0x10e381(0x1c4)]),module[a740_0x10e381(0x1ca)]=router; \ No newline at end of file diff --git a/server/api/system/system.controller.js b/server/api/system/system.controller.js index f599162..31e7d24 100644 --- a/server/api/system/system.controller.js +++ b/server/api/system/system.controller.js @@ -1 +1 @@ -const a741_0x34e7=['killProcess','api','catch','util','length','getAllData','components/import/cm','Process\x20with\x20pid\x20%s\x20not\x20found!','send','child_process','params','name','inspect','pid','format','json','<%-\x20name\x20%>,\x20%s,\x20%s,\x20%s','then','error','status','index','../../config/logger','exec'];(function(_0x56584c,_0x17bcd1){const _0x34e7d4=function(_0x2ec46b){while(--_0x2ec46b){_0x56584c['push'](_0x56584c['shift']());}};_0x34e7d4(++_0x17bcd1);}(a741_0x34e7,0xd0));const a741_0x2ec4=function(_0x56584c,_0x17bcd1){_0x56584c=_0x56584c-0xe1;let _0x34e7d4=a741_0x34e7[_0x56584c];return _0x34e7d4;};const a741_0xac992b=a741_0x2ec4;'use strict';const info=require('systeminformation'),exec=require(a741_0xac992b(0xe9))[a741_0xac992b(0xf6)],logger=require(a741_0xac992b(0xf5))(a741_0xac992b(0xe1)),util=require(a741_0xac992b(0xe3));function handleError(_0x52eb4f,_0x3f2c8b,_0x311310){return _0x3f2c8b=_0x3f2c8b||0x1f4,function(_0x14d5a5){const _0x198ed7=a741_0x2ec4;logger[_0x198ed7(0xf2)](_0x198ed7(0xf0),_0x311310,_0x3f2c8b,util[_0x198ed7(0xec)](_0x14d5a5,{'showHidden':![],'depth':null})),delete _0x14d5a5[_0x198ed7(0xeb)],_0x52eb4f[_0x198ed7(0xf3)](_0x3f2c8b)[_0x198ed7(0xe8)](_0x14d5a5);};}exports[a741_0xac992b(0xf4)]=function(_0xba1c4b,_0x1ed3a3){const _0x3262a9=a741_0xac992b;return info[_0x3262a9(0xe5)]()['then'](function(_0x1f5ff4){const _0x5b6e6c=_0x3262a9;return _0x1ed3a3['status'](0xc8)[_0x5b6e6c(0xef)](_0x1f5ff4);})[_0x3262a9(0xe2)](function(_0x1e0c3e){const _0x5852a2=_0x3262a9;return _0x1ed3a3[_0x5852a2(0xf3)](0x1f4)[_0x5852a2(0xef)](_0x1e0c3e);});},exports[a741_0xac992b(0xf7)]=function(_0x38ae5d,_0x1d4380){const _0x49dfc0=a741_0xac992b,_0x1aed64=[_0x49dfc0(0xe6)];return new Promise(function(_0x47c28c,_0x37a9ff){const _0x2efedc=_0x49dfc0;return exec(util[_0x2efedc(0xee)]('ps\x20-p\x20%s\x20-ww\x20-o\x20args',_0x38ae5d[_0x2efedc(0xea)]['pid']),function(_0x2edd64,_0x2f19c9){if(_0x2edd64)return _0x37a9ff(_0x2edd64);return _0x47c28c(_0x2f19c9);});})[_0x49dfc0(0xf1)](function(_0x4e9458){const _0x556bb1=_0x49dfc0;let _0x146a29=![];for(let _0x26a8f7=0x0,_0x58178e=_0x1aed64[_0x556bb1(0xe4)];_0x26a8f7<_0x58178e,_0x146a29===![];_0x26a8f7+=0x1){_0x4e9458['indexOf'](_0x1aed64[_0x26a8f7])>=0x0&&(_0x146a29=!![]);}if(!_0x146a29)throw new Error(util[_0x556bb1(0xee)](_0x556bb1(0xe7),_0x38ae5d[_0x556bb1(0xea)]['pid']));return process['kill'](_0x38ae5d[_0x556bb1(0xea)][_0x556bb1(0xed)],'SIGINT'),_0x1d4380[_0x556bb1(0xf3)](0xc8)['json']({'message':util[_0x556bb1(0xee)]('Process\x20with\x20pid\x20%s\x20killed\x20correctly',_0x38ae5d[_0x556bb1(0xea)][_0x556bb1(0xed)])});})['catch'](handleError(_0x1d4380,null,'killProcess'));}; \ No newline at end of file +const a741_0x48fb=['error','killProcess','Process\x20with\x20pid\x20%s\x20killed\x20correctly','indexOf','length','child_process','Process\x20with\x20pid\x20%s\x20not\x20found!','inspect','status','getAllData','api','params','<%-\x20name\x20%>,\x20%s,\x20%s,\x20%s','ps\x20-p\x20%s\x20-ww\x20-o\x20args','catch','index','json','name','send','format','then','kill','pid','util'];(function(_0x57f3e0,_0x3c0e36){const _0x48fb0b=function(_0x250b02){while(--_0x250b02){_0x57f3e0['push'](_0x57f3e0['shift']());}};_0x48fb0b(++_0x3c0e36);}(a741_0x48fb,0x133));const a741_0x250b=function(_0x57f3e0,_0x3c0e36){_0x57f3e0=_0x57f3e0-0x187;let _0x48fb0b=a741_0x48fb[_0x57f3e0];return _0x48fb0b;};const a741_0x143c8b=a741_0x250b;'use strict';const info=require('systeminformation'),exec=require(a741_0x143c8b(0x191))['exec'],logger=require('../../config/logger')(a741_0x143c8b(0x196)),util=require(a741_0x143c8b(0x18b));function handleError(_0x50b0de,_0x25bfaa,_0x28ba20){return _0x25bfaa=_0x25bfaa||0x1f4,function(_0x88d206){const _0x19b436=a741_0x250b;logger[_0x19b436(0x18c)](_0x19b436(0x198),_0x28ba20,_0x25bfaa,util[_0x19b436(0x193)](_0x88d206,{'showHidden':![],'depth':null})),delete _0x88d206[_0x19b436(0x19d)],_0x50b0de[_0x19b436(0x194)](_0x25bfaa)[_0x19b436(0x19e)](_0x88d206);};}exports[a741_0x143c8b(0x19b)]=function(_0xe39974,_0xca84d0){const _0x2539b2=a741_0x143c8b;return info[_0x2539b2(0x195)]()[_0x2539b2(0x188)](function(_0x1c6fd1){const _0x4d9180=_0x2539b2;return _0xca84d0[_0x4d9180(0x194)](0xc8)[_0x4d9180(0x19c)](_0x1c6fd1);})[_0x2539b2(0x19a)](function(_0x466635){const _0x3e4bf9=_0x2539b2;return _0xca84d0[_0x3e4bf9(0x194)](0x1f4)['json'](_0x466635);});},exports[a741_0x143c8b(0x18d)]=function(_0x4c1583,_0x291ba4){const _0x11f273=a741_0x143c8b,_0xb10b44=['components/import/cm'];return new Promise(function(_0x35747d,_0x504a50){const _0x39a5d8=a741_0x250b;return exec(util['format'](_0x39a5d8(0x199),_0x4c1583[_0x39a5d8(0x197)][_0x39a5d8(0x18a)]),function(_0x13c469,_0x3df859){if(_0x13c469)return _0x504a50(_0x13c469);return _0x35747d(_0x3df859);});})['then'](function(_0x1c5fdb){const _0x498910=a741_0x250b;let _0x428e64=![];for(let _0x5acdf9=0x0,_0x2c43aa=_0xb10b44[_0x498910(0x190)];_0x5acdf9<_0x2c43aa,_0x428e64===![];_0x5acdf9+=0x1){_0x1c5fdb[_0x498910(0x18f)](_0xb10b44[_0x5acdf9])>=0x0&&(_0x428e64=!![]);}if(!_0x428e64)throw new Error(util['format'](_0x498910(0x192),_0x4c1583[_0x498910(0x197)]['pid']));return process[_0x498910(0x189)](_0x4c1583['params']['pid'],'SIGINT'),_0x291ba4[_0x498910(0x194)](0xc8)['json']({'message':util[_0x498910(0x187)](_0x498910(0x18e),_0x4c1583[_0x498910(0x197)][_0x498910(0x18a)])});})[_0x11f273(0x19a)](handleError(_0x291ba4,null,_0x11f273(0x18d)));}; \ No newline at end of file diff --git a/server/api/tag/index.js b/server/api/tag/index.js index ea2c7a6..7360612 100644 --- a/server/api/tag/index.js +++ b/server/api/tag/index.js @@ -1 +1 @@ -const a742_0x3a2b=['isAuthenticated','express','exports','get','delete','destroy','./tag.controller','post','create','update'];(function(_0x2d39fc,_0x5e4d4b){const _0x3a2b5f=function(_0x36732c){while(--_0x36732c){_0x2d39fc['push'](_0x2d39fc['shift']());}};_0x3a2b5f(++_0x5e4d4b);}(a742_0x3a2b,0x125));const a742_0x3673=function(_0x2d39fc,_0x5e4d4b){_0x2d39fc=_0x2d39fc-0xca;let _0x3a2b5f=a742_0x3a2b[_0x2d39fc];return _0x3a2b5f;};const a742_0x8738ae=a742_0x3673;'use strict';const express=require(a742_0x8738ae(0xd2)),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a742_0x8738ae(0xcd));router['get']('/',auth[a742_0x8738ae(0xd1)](),controller['index']),router[a742_0x8738ae(0xca)]('/:id',auth['isAuthenticated'](),controller['show']),router[a742_0x8738ae(0xce)]('/',auth[a742_0x8738ae(0xd1)](),controller[a742_0x8738ae(0xcf)]),router['put']('/:id',auth[a742_0x8738ae(0xd1)](),controller[a742_0x8738ae(0xd0)]),router[a742_0x8738ae(0xcb)]('/:id',auth[a742_0x8738ae(0xd1)](),controller[a742_0x8738ae(0xcc)]),module[a742_0x8738ae(0xd3)]=router; \ No newline at end of file +const a742_0x49b9=['Router','destroy','../../components/auth/service','get','isAuthenticated','express','index','delete','./tag.controller','show','/:id'];(function(_0x10f1c2,_0x5676d7){const _0x49b9d3=function(_0x3bbb26){while(--_0x3bbb26){_0x10f1c2['push'](_0x10f1c2['shift']());}};_0x49b9d3(++_0x5676d7);}(a742_0x49b9,0x16b));const a742_0x3bbb=function(_0x10f1c2,_0x5676d7){_0x10f1c2=_0x10f1c2-0x171;let _0x49b9d3=a742_0x49b9[_0x10f1c2];return _0x49b9d3;};const a742_0x3f526d=a742_0x3bbb;'use strict';const express=require(a742_0x3f526d(0x176)),router=express[a742_0x3f526d(0x171)](),auth=require(a742_0x3f526d(0x173)),controller=require(a742_0x3f526d(0x179));router['get']('/',auth[a742_0x3f526d(0x175)](),controller[a742_0x3f526d(0x177)]),router[a742_0x3f526d(0x174)]('/:id',auth[a742_0x3f526d(0x175)](),controller[a742_0x3f526d(0x17a)]),router['post']('/',auth['isAuthenticated'](),controller['create']),router['put'](a742_0x3f526d(0x17b),auth[a742_0x3f526d(0x175)](),controller['update']),router[a742_0x3f526d(0x178)](a742_0x3f526d(0x17b),auth[a742_0x3f526d(0x175)](),controller[a742_0x3f526d(0x172)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/tag/tag.attributes.js b/server/api/tag/tag.attributes.js index 708c026..5569d02 100644 --- a/server/api/tag/tag.attributes.js +++ b/server/api/tag/tag.attributes.js @@ -1 +1 @@ -const a743_0x3a1b=['name','sequelize','#0091EA','attributes','STRING'];(function(_0x564601,_0x36c640){const _0x3a1b9b=function(_0xbc07d4){while(--_0xbc07d4){_0x564601['push'](_0x564601['shift']());}};_0x3a1b9b(++_0x36c640);}(a743_0x3a1b,0x150));const a743_0xbc07=function(_0x564601,_0x36c640){_0x564601=_0x564601-0x7f;let _0x3a1b9b=a743_0x3a1b[_0x564601];return _0x3a1b9b;};const a743_0x337e76=a743_0xbc07;'use strict';const {DataTypes}=require(a743_0x337e76(0x7f)),attributes={'name':{'type':DataTypes[a743_0x337e76(0x82)],'unique':a743_0x337e76(0x83),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'color':{'type':DataTypes[a743_0x337e76(0x82)],'defaultValue':a743_0x337e76(0x80)},'description':{'type':DataTypes[a743_0x337e76(0x82)]}};module['exports'][a743_0x337e76(0x81)]=attributes; \ No newline at end of file +const a743_0x31fc=['exports','name','#0091EA','STRING'];(function(_0x1e5b1c,_0x4073e8){const _0x31fc97=function(_0x18eef3){while(--_0x18eef3){_0x1e5b1c['push'](_0x1e5b1c['shift']());}};_0x31fc97(++_0x4073e8);}(a743_0x31fc,0x121));const a743_0x18ee=function(_0x1e5b1c,_0x4073e8){_0x1e5b1c=_0x1e5b1c-0x86;let _0x31fc97=a743_0x31fc[_0x1e5b1c];return _0x31fc97;};const a743_0x96e6f7=a743_0x18ee;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a743_0x96e6f7(0x88)],'unique':a743_0x96e6f7(0x86),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'color':{'type':DataTypes[a743_0x96e6f7(0x88)],'defaultValue':a743_0x96e6f7(0x87)},'description':{'type':DataTypes[a743_0x96e6f7(0x88)]}};module[a743_0x96e6f7(0x89)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/tag/tag.controller.js b/server/api/tag/tag.controller.js index e0f7185..bc63d48 100644 --- a/server/api/tag/tag.controller.js +++ b/server/api/tag/tag.controller.js @@ -1 +1 @@ -const a744_0x7601=['end','sort','../../components/parsers/qs','rows','destroy','map','merge','Unable\x20to\x20retrieve\x20the\x20current\x20user','query','like','type','json','name','findOne','key','create','where','Content-Range','fieldName','options','include','filters','body','model','sequelize','findAll','rawAttributes','status','api','intersection','sendStatus','order','lodash','UserProfileResource','role','Tag','count','../../config/logger','autoAssociation','keys','filter','Tags','error','offset','get','limit','length','then','catch','update','set','includeAll','pick','send','params','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','user','userProfileId','nolimit','../../mysqldb','fields','attributes','undefined'];(function(_0x21aa14,_0x2947b3){const _0x76015d=function(_0xfcd536){while(--_0xfcd536){_0x21aa14['push'](_0x21aa14['shift']());}};_0x76015d(++_0x2947b3);}(a744_0x7601,0x166));const a744_0xfcd5=function(_0x21aa14,_0x2947b3){_0x21aa14=_0x21aa14-0x88;let _0x76015d=a744_0x7601[_0x21aa14];return _0x76015d;};const a744_0xe09a1c=a744_0xfcd5;'use strict';const _=require(a744_0xe09a1c(0xbc)),qs=require(a744_0xe09a1c(0x9e)),logger=require(a744_0xe09a1c(0xc1))(a744_0xe09a1c(0xb8)),{db}=require(a744_0xe09a1c(0x98)),{Op}=require(a744_0xe09a1c(0xb4));function respondWithResult(_0x5170b9,_0x337c8a){return _0x337c8a=_0x337c8a||0xc8,function(_0x524e58){const _0x144d93=a744_0xfcd5;if(_0x524e58)return _0x5170b9[_0x144d93(0xb7)](_0x337c8a)[_0x144d93(0xa7)](_0x524e58);};}function respondWithFilteredResult(_0x288350,_0x4b2847){return function(_0x34a25e){const _0x55fbcb=a744_0xfcd5;if(_0x34a25e){const _0x3d84a8=_0x34a25e[_0x55fbcb(0xc0)],_0x3b2b0a=_0x4b2847[_0x55fbcb(0x88)];let _0x5d7ad5=_0x4b2847[_0x55fbcb(0x88)]+_0x4b2847[_0x55fbcb(0x8a)],_0x18b990;return _0x5d7ad5>=_0x3d84a8?(_0x5d7ad5=_0x3d84a8,_0x18b990=0xc8):_0x18b990=0xce,_0x288350['status'](_0x18b990),_0x288350[_0x55fbcb(0x8f)](_0x55fbcb(0xad),_0x3b2b0a+'-'+_0x5d7ad5+'/'+_0x3d84a8)[_0x55fbcb(0xa7)](_0x34a25e);}return null;};}function saveUpdates(_0x33bd9e){return function(_0x41176e){const _0x2c51d1=a744_0xfcd5;if(_0x41176e)return _0x41176e[_0x2c51d1(0x8e)](_0x33bd9e)['then'](function(_0x4f8fca){return _0x4f8fca;});return null;};}function removeEntity(_0x2f2727){return function(_0xf12077){const _0x13bf3c=a744_0xfcd5;if(_0xf12077)return _0xf12077[_0x13bf3c(0xa0)]()[_0x13bf3c(0x8c)](function(){const _0x4976a6=_0x13bf3c,_0x21ea89=_0xf12077[_0x4976a6(0x89)]({'plain':!![]}),_0x349144='Tags';return db['UserProfileResource'][_0x4976a6(0xa0)]({'where':{'type':_0x349144,'resourceId':_0x21ea89['id']}})[_0x4976a6(0x8c)](function(){return _0xf12077;});})[_0x13bf3c(0x8c)](function(){const _0x566c69=_0x13bf3c;_0x2f2727[_0x566c69(0xb7)](0xcc)[_0x566c69(0x9c)]();});};}function handleEntityNotFound(_0x3b04e9){return function(_0x5e0e3a){const _0x2724a3=a744_0xfcd5;return!_0x5e0e3a&&_0x3b04e9[_0x2724a3(0xba)](0x194),_0x5e0e3a;};}function handleError(_0x598964,_0x1dc45f){return _0x1dc45f=_0x1dc45f||0x1f4,function(_0x50798b){const _0x7cad25=a744_0xfcd5;logger[_0x7cad25(0xc6)](_0x50798b['stack']),_0x50798b['name']&&delete _0x50798b[_0x7cad25(0xa8)],_0x598964[_0x7cad25(0xb7)](_0x1dc45f)[_0x7cad25(0x92)](_0x50798b);};}exports['index']=function(_0x696a00,_0x1e7263){const _0x462388=a744_0xe09a1c;let _0x1972b5={};const _0x504601={},_0x1da3cb={'count':0x0,'rows':[]},_0x44aeb0=_['map'](db[_0x462388(0xbf)][_0x462388(0xb6)],function(_0x501adb){const _0x3fa625=_0x462388;return{'name':_0x501adb[_0x3fa625(0xae)],'type':_0x501adb[_0x3fa625(0xa6)][_0x3fa625(0xaa)]};});_0x504601['model']=_[_0x462388(0xa1)](_0x44aeb0,_0x462388(0xa8)),_0x504601[_0x462388(0xa4)]=_[_0x462388(0xc3)](_0x696a00[_0x462388(0xa4)]),_0x504601['filters']=_[_0x462388(0xb9)](_0x504601['model'],_0x504601[_0x462388(0xa4)]),_0x1972b5[_0x462388(0x9a)]=_['intersection'](_0x504601[_0x462388(0xb3)],qs[_0x462388(0x99)](_0x696a00[_0x462388(0xa4)][_0x462388(0x99)])),_0x1972b5[_0x462388(0x9a)]=_0x1972b5[_0x462388(0x9a)][_0x462388(0x8b)]?_0x1972b5['attributes']:_0x504601['model'];typeof _0x696a00['query'][_0x462388(0x97)]===_0x462388(0x9b)&&(_0x1972b5[_0x462388(0x8a)]=qs['limit'](_0x696a00['query'][_0x462388(0x8a)]),_0x1972b5[_0x462388(0x88)]=qs['offset'](_0x696a00[_0x462388(0xa4)][_0x462388(0x88)]));_0x1972b5[_0x462388(0xbb)]=qs[_0x462388(0x9d)](_0x696a00[_0x462388(0xa4)][_0x462388(0x9d)]),_0x1972b5['where']=qs[_0x462388(0xb1)](_[_0x462388(0x91)](_0x696a00[_0x462388(0xa4)],_0x504601[_0x462388(0xb1)]),_0x44aeb0);_0x696a00['query'][_0x462388(0xc4)]&&(_0x1972b5['where']=_['merge'](_0x1972b5['where'],{[Op['or']]:_[_0x462388(0xa1)](_0x44aeb0,function(_0x504003){const _0x1e0e82=_0x462388;if(_0x504003[_0x1e0e82(0xa6)]!=='VIRTUAL'){const _0x1b51cc={};return _0x1b51cc[_0x504003['name']]={[Op[_0x1e0e82(0xa5)]]:'%'+_0x696a00[_0x1e0e82(0xa4)][_0x1e0e82(0xc4)]+'%'},_0x1b51cc;}})}));_0x1972b5=_[_0x462388(0xa2)]({},_0x1972b5,_0x696a00[_0x462388(0xaf)]);const _0x16a695={'where':_0x1972b5[_0x462388(0xac)]};return db[_0x462388(0xbf)][_0x462388(0xc0)](_0x16a695)[_0x462388(0x8c)](function(_0x631963){const _0x418fb3=_0x462388;return _0x1da3cb[_0x418fb3(0xc0)]=_0x631963,_0x696a00['query']['includeAll']&&(_0x1972b5[_0x418fb3(0xb0)]=[{'all':!![]}]),db[_0x418fb3(0xbf)][_0x418fb3(0xb5)](_0x1972b5);})[_0x462388(0x8c)](function(_0x4e80b2){const _0x2ab2b3=_0x462388;return _0x1da3cb[_0x2ab2b3(0x9f)]=_0x4e80b2,_0x1da3cb;})['then'](respondWithFilteredResult(_0x1e7263,_0x1972b5))[_0x462388(0x8d)](handleError(_0x1e7263,null));},exports['show']=function(_0x50d90b,_0x3f1d7e){const _0x5bb0ea=a744_0xe09a1c;let _0x3c538a={'raw':!![],'where':{'id':_0x50d90b[_0x5bb0ea(0x93)]['id']}};const _0x834686={};return _0x834686[_0x5bb0ea(0xb3)]=_[_0x5bb0ea(0xc3)](db[_0x5bb0ea(0xbf)][_0x5bb0ea(0xb6)]),_0x834686[_0x5bb0ea(0xa4)]=_[_0x5bb0ea(0xc3)](_0x50d90b[_0x5bb0ea(0xa4)]),_0x834686[_0x5bb0ea(0xb1)]=_[_0x5bb0ea(0xb9)](_0x834686[_0x5bb0ea(0xb3)],_0x834686[_0x5bb0ea(0xa4)]),_0x3c538a[_0x5bb0ea(0x9a)]=_[_0x5bb0ea(0xb9)](_0x834686[_0x5bb0ea(0xb3)],qs[_0x5bb0ea(0x99)](_0x50d90b[_0x5bb0ea(0xa4)]['fields'])),_0x3c538a[_0x5bb0ea(0x9a)]=_0x3c538a[_0x5bb0ea(0x9a)][_0x5bb0ea(0x8b)]?_0x3c538a[_0x5bb0ea(0x9a)]:_0x834686[_0x5bb0ea(0xb3)],_0x50d90b[_0x5bb0ea(0xa4)][_0x5bb0ea(0x90)]&&(_0x3c538a[_0x5bb0ea(0xb0)]=[{'all':!![]}]),_0x3c538a=_[_0x5bb0ea(0xa2)]({},_0x3c538a,_0x50d90b['options']),db['Tag']['findOne'](_0x3c538a)[_0x5bb0ea(0x8c)](handleEntityNotFound(_0x3f1d7e,null))[_0x5bb0ea(0x8c)](respondWithResult(_0x3f1d7e,null))[_0x5bb0ea(0x8d)](handleError(_0x3f1d7e,null));},exports[a744_0xe09a1c(0xab)]=function(_0x16df8c,_0x436a60){const _0x21bcc6=a744_0xe09a1c;return db[_0x21bcc6(0xbf)][_0x21bcc6(0xab)](_0x16df8c['body'],{})[_0x21bcc6(0x8c)](function(_0x26e632){const _0x478e79=_0x21bcc6,_0x1ead62=_0x16df8c[_0x478e79(0x95)][_0x478e79(0x89)]({'plain':!![]});if(!_0x1ead62)throw new Error(_0x478e79(0xa3));if(_0x1ead62[_0x478e79(0xbe)]==='user'){const _0x2c5659=_0x26e632['get']({'plain':!![]}),_0x112c60=_0x478e79(0xc5);return db['UserProfileSection'][_0x478e79(0xa9)]({'where':{'name':_0x112c60,'userProfileId':_0x1ead62[_0x478e79(0x96)]},'raw':!![]})[_0x478e79(0x8c)](function(_0x22e680){const _0x2c6b14=_0x478e79;return _0x22e680&&_0x22e680[_0x2c6b14(0xc2)]===0x0?db[_0x2c6b14(0xbd)]['create']({'name':_0x2c5659['name'],'resourceId':_0x2c5659['id'],'type':_0x22e680[_0x2c6b14(0xa8)],'sectionId':_0x22e680['id']},{})[_0x2c6b14(0x8c)](function(){return _0x26e632;}):_0x26e632;})[_0x478e79(0x8d)](function(_0x1e9cf5){const _0x563c0d=_0x478e79;logger[_0x563c0d(0xc6)](_0x563c0d(0x94),_0x1e9cf5);throw _0x1e9cf5;});}return _0x26e632;})[_0x21bcc6(0x8c)](respondWithResult(_0x436a60,0xc9))[_0x21bcc6(0x8d)](handleError(_0x436a60,null));},exports[a744_0xe09a1c(0x8e)]=function(_0x5cfbb2,_0x828890){const _0x3e1716=a744_0xe09a1c;return _0x5cfbb2['body']['id']&&delete _0x5cfbb2[_0x3e1716(0xb2)]['id'],db[_0x3e1716(0xbf)][_0x3e1716(0xa9)]({'where':{'id':_0x5cfbb2[_0x3e1716(0x93)]['id']}})['then'](handleEntityNotFound(_0x828890,null))[_0x3e1716(0x8c)](saveUpdates(_0x5cfbb2[_0x3e1716(0xb2)],null))['then'](respondWithResult(_0x828890,null))[_0x3e1716(0x8d)](handleError(_0x828890,null));},exports[a744_0xe09a1c(0xa0)]=function(_0x53c62b,_0x3361e8){const _0x2a75ad=a744_0xe09a1c;return db['Tag'][_0x2a75ad(0xa9)]({'where':{'id':_0x53c62b['params']['id']}})['then'](handleEntityNotFound(_0x3361e8,null))[_0x2a75ad(0x8c)](removeEntity(_0x3361e8,null))[_0x2a75ad(0x8d)](handleError(_0x3361e8,null));}; \ No newline at end of file +const a744_0xad4c=['params','api','limit','includeAll','offset','Unable\x20to\x20retrieve\x20the\x20current\x20user','error','../../mysqldb','VIRTUAL','merge','json','get','intersection','filter','fields','Tag','autoAssociation','attributes','like','create','sort','show','nolimit','../../config/logger','filters','then','UserProfileSection','status','findAll','include','rawAttributes','send','destroy','rows','../../components/parsers/qs','stack','index','Tags','map','fieldName','pick','keys','findOne','model','order','count','where','UserProfileResource','user','undefined','length','type','name','catch','body','options','role','lodash','query'];(function(_0x4ad3d0,_0x191aab){const _0xad4c92=function(_0xa6addc){while(--_0xa6addc){_0x4ad3d0['push'](_0x4ad3d0['shift']());}};_0xad4c92(++_0x191aab);}(a744_0xad4c,0x1d1));const a744_0xa6ad=function(_0x4ad3d0,_0x191aab){_0x4ad3d0=_0x4ad3d0-0x137;let _0xad4c92=a744_0xad4c[_0x4ad3d0];return _0xad4c92;};const a744_0x7e0c60=a744_0xa6ad;'use strict';const _=require(a744_0x7e0c60(0x13c)),qs=require(a744_0x7e0c60(0x160)),logger=require(a744_0x7e0c60(0x155))(a744_0x7e0c60(0x13f)),{db}=require(a744_0x7e0c60(0x145)),{Op}=require('sequelize');function respondWithResult(_0x49358e,_0xbe7bce){return _0xbe7bce=_0xbe7bce||0xc8,function(_0x1a0626){const _0x5066b7=a744_0xa6ad;if(_0x1a0626)return _0x49358e[_0x5066b7(0x159)](_0xbe7bce)[_0x5066b7(0x148)](_0x1a0626);};}function respondWithFilteredResult(_0x5ae177,_0x3163e4){return function(_0x105c90){const _0x5f4317=a744_0xa6ad;if(_0x105c90){const _0x10305b=_0x105c90[_0x5f4317(0x16b)],_0x5b81b9=_0x3163e4['offset'];let _0x16e5be=_0x3163e4['offset']+_0x3163e4[_0x5f4317(0x140)],_0x47f2b0;return _0x16e5be>=_0x10305b?(_0x16e5be=_0x10305b,_0x47f2b0=0xc8):_0x47f2b0=0xce,_0x5ae177[_0x5f4317(0x159)](_0x47f2b0),_0x5ae177['set']('Content-Range',_0x5b81b9+'-'+_0x16e5be+'/'+_0x10305b)[_0x5f4317(0x148)](_0x105c90);}return null;};}function saveUpdates(_0x292672){return function(_0x2887e0){const _0x4f92dd=a744_0xa6ad;if(_0x2887e0)return _0x2887e0['update'](_0x292672)[_0x4f92dd(0x157)](function(_0x18b501){return _0x18b501;});return null;};}function removeEntity(_0x5dbdce){return function(_0x12b654){const _0x4b0a32=a744_0xa6ad;if(_0x12b654)return _0x12b654[_0x4b0a32(0x15e)]()['then'](function(){const _0x4a6772=_0x4b0a32,_0x45c9dc=_0x12b654[_0x4a6772(0x149)]({'plain':!![]}),_0x17d092=_0x4a6772(0x163);return db[_0x4a6772(0x16d)]['destroy']({'where':{'type':_0x17d092,'resourceId':_0x45c9dc['id']}})[_0x4a6772(0x157)](function(){return _0x12b654;});})[_0x4b0a32(0x157)](function(){const _0x2e5093=_0x4b0a32;_0x5dbdce[_0x2e5093(0x159)](0xcc)['end']();});};}function handleEntityNotFound(_0x1f014a){return function(_0x38c0b6){return!_0x38c0b6&&_0x1f014a['sendStatus'](0x194),_0x38c0b6;};}function handleError(_0x160cdb,_0x49d461){return _0x49d461=_0x49d461||0x1f4,function(_0x38afcd){const _0x1e3e7f=a744_0xa6ad;logger[_0x1e3e7f(0x144)](_0x38afcd[_0x1e3e7f(0x161)]),_0x38afcd[_0x1e3e7f(0x137)]&&delete _0x38afcd[_0x1e3e7f(0x137)],_0x160cdb[_0x1e3e7f(0x159)](_0x49d461)[_0x1e3e7f(0x15d)](_0x38afcd);};}exports[a744_0x7e0c60(0x162)]=function(_0x34a17b,_0x2ed41e){const _0x13a3ab=a744_0x7e0c60;let _0x3c4b35={};const _0x3e263b={},_0xefa0f8={'count':0x0,'rows':[]},_0x21a71a=_[_0x13a3ab(0x164)](db['Tag'][_0x13a3ab(0x15c)],function(_0x24e5b0){const _0x1c3434=_0x13a3ab;return{'name':_0x24e5b0[_0x1c3434(0x165)],'type':_0x24e5b0[_0x1c3434(0x171)]['key']};});_0x3e263b[_0x13a3ab(0x169)]=_[_0x13a3ab(0x164)](_0x21a71a,_0x13a3ab(0x137)),_0x3e263b[_0x13a3ab(0x13d)]=_['keys'](_0x34a17b[_0x13a3ab(0x13d)]),_0x3e263b[_0x13a3ab(0x156)]=_[_0x13a3ab(0x14a)](_0x3e263b[_0x13a3ab(0x169)],_0x3e263b[_0x13a3ab(0x13d)]),_0x3c4b35[_0x13a3ab(0x14f)]=_[_0x13a3ab(0x14a)](_0x3e263b[_0x13a3ab(0x169)],qs[_0x13a3ab(0x14c)](_0x34a17b[_0x13a3ab(0x13d)][_0x13a3ab(0x14c)])),_0x3c4b35[_0x13a3ab(0x14f)]=_0x3c4b35['attributes'][_0x13a3ab(0x170)]?_0x3c4b35[_0x13a3ab(0x14f)]:_0x3e263b[_0x13a3ab(0x169)];typeof _0x34a17b['query'][_0x13a3ab(0x154)]===_0x13a3ab(0x16f)&&(_0x3c4b35[_0x13a3ab(0x140)]=qs[_0x13a3ab(0x140)](_0x34a17b[_0x13a3ab(0x13d)][_0x13a3ab(0x140)]),_0x3c4b35[_0x13a3ab(0x142)]=qs[_0x13a3ab(0x142)](_0x34a17b[_0x13a3ab(0x13d)][_0x13a3ab(0x142)]));_0x3c4b35[_0x13a3ab(0x16a)]=qs[_0x13a3ab(0x152)](_0x34a17b[_0x13a3ab(0x13d)][_0x13a3ab(0x152)]),_0x3c4b35['where']=qs[_0x13a3ab(0x156)](_[_0x13a3ab(0x166)](_0x34a17b[_0x13a3ab(0x13d)],_0x3e263b[_0x13a3ab(0x156)]),_0x21a71a);_0x34a17b[_0x13a3ab(0x13d)][_0x13a3ab(0x14b)]&&(_0x3c4b35['where']=_[_0x13a3ab(0x147)](_0x3c4b35['where'],{[Op['or']]:_[_0x13a3ab(0x164)](_0x21a71a,function(_0x3fb6b8){const _0x265c95=_0x13a3ab;if(_0x3fb6b8['type']!==_0x265c95(0x146)){const _0xff7d28={};return _0xff7d28[_0x3fb6b8[_0x265c95(0x137)]]={[Op[_0x265c95(0x150)]]:'%'+_0x34a17b[_0x265c95(0x13d)][_0x265c95(0x14b)]+'%'},_0xff7d28;}})}));_0x3c4b35=_[_0x13a3ab(0x147)]({},_0x3c4b35,_0x34a17b[_0x13a3ab(0x13a)]);const _0x2141c4={'where':_0x3c4b35[_0x13a3ab(0x16c)]};return db['Tag'][_0x13a3ab(0x16b)](_0x2141c4)[_0x13a3ab(0x157)](function(_0x156085){const _0x20bf0c=_0x13a3ab;return _0xefa0f8[_0x20bf0c(0x16b)]=_0x156085,_0x34a17b[_0x20bf0c(0x13d)][_0x20bf0c(0x141)]&&(_0x3c4b35[_0x20bf0c(0x15b)]=[{'all':!![]}]),db[_0x20bf0c(0x14d)][_0x20bf0c(0x15a)](_0x3c4b35);})['then'](function(_0x582cb9){const _0x125ea1=_0x13a3ab;return _0xefa0f8[_0x125ea1(0x15f)]=_0x582cb9,_0xefa0f8;})[_0x13a3ab(0x157)](respondWithFilteredResult(_0x2ed41e,_0x3c4b35))['catch'](handleError(_0x2ed41e,null));},exports[a744_0x7e0c60(0x153)]=function(_0xecb3eb,_0x2708bd){const _0x12dae6=a744_0x7e0c60;let _0x2d1b0a={'raw':!![],'where':{'id':_0xecb3eb['params']['id']}};const _0x3352f8={};return _0x3352f8['model']=_[_0x12dae6(0x167)](db[_0x12dae6(0x14d)]['rawAttributes']),_0x3352f8[_0x12dae6(0x13d)]=_[_0x12dae6(0x167)](_0xecb3eb['query']),_0x3352f8['filters']=_[_0x12dae6(0x14a)](_0x3352f8[_0x12dae6(0x169)],_0x3352f8[_0x12dae6(0x13d)]),_0x2d1b0a[_0x12dae6(0x14f)]=_['intersection'](_0x3352f8[_0x12dae6(0x169)],qs[_0x12dae6(0x14c)](_0xecb3eb[_0x12dae6(0x13d)]['fields'])),_0x2d1b0a[_0x12dae6(0x14f)]=_0x2d1b0a[_0x12dae6(0x14f)][_0x12dae6(0x170)]?_0x2d1b0a[_0x12dae6(0x14f)]:_0x3352f8[_0x12dae6(0x169)],_0xecb3eb['query'][_0x12dae6(0x141)]&&(_0x2d1b0a[_0x12dae6(0x15b)]=[{'all':!![]}]),_0x2d1b0a=_[_0x12dae6(0x147)]({},_0x2d1b0a,_0xecb3eb[_0x12dae6(0x13a)]),db[_0x12dae6(0x14d)][_0x12dae6(0x168)](_0x2d1b0a)[_0x12dae6(0x157)](handleEntityNotFound(_0x2708bd,null))[_0x12dae6(0x157)](respondWithResult(_0x2708bd,null))[_0x12dae6(0x138)](handleError(_0x2708bd,null));},exports[a744_0x7e0c60(0x151)]=function(_0x1c7f0f,_0x2ec93e){const _0x4c611f=a744_0x7e0c60;return db[_0x4c611f(0x14d)][_0x4c611f(0x151)](_0x1c7f0f[_0x4c611f(0x139)],{})[_0x4c611f(0x157)](function(_0x1ee263){const _0x334bd9=_0x4c611f,_0x247ec6=_0x1c7f0f[_0x334bd9(0x16e)]['get']({'plain':!![]});if(!_0x247ec6)throw new Error(_0x334bd9(0x143));if(_0x247ec6[_0x334bd9(0x13b)]===_0x334bd9(0x16e)){const _0x5e9013=_0x1ee263[_0x334bd9(0x149)]({'plain':!![]}),_0x4adcb8=_0x334bd9(0x163);return db[_0x334bd9(0x158)][_0x334bd9(0x168)]({'where':{'name':_0x4adcb8,'userProfileId':_0x247ec6['userProfileId']},'raw':!![]})[_0x334bd9(0x157)](function(_0x47e9ec){const _0x4b8383=_0x334bd9;return _0x47e9ec&&_0x47e9ec[_0x4b8383(0x14e)]===0x0?db['UserProfileResource'][_0x4b8383(0x151)]({'name':_0x5e9013[_0x4b8383(0x137)],'resourceId':_0x5e9013['id'],'type':_0x47e9ec[_0x4b8383(0x137)],'sectionId':_0x47e9ec['id']},{})[_0x4b8383(0x157)](function(){return _0x1ee263;}):_0x1ee263;})[_0x334bd9(0x138)](function(_0x4e6cf5){const _0x47cb1e=_0x334bd9;logger[_0x47cb1e(0x144)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x4e6cf5);throw _0x4e6cf5;});}return _0x1ee263;})[_0x4c611f(0x157)](respondWithResult(_0x2ec93e,0xc9))[_0x4c611f(0x138)](handleError(_0x2ec93e,null));},exports['update']=function(_0x4de206,_0x46a0fe){const _0xa121d4=a744_0x7e0c60;return _0x4de206[_0xa121d4(0x139)]['id']&&delete _0x4de206[_0xa121d4(0x139)]['id'],db[_0xa121d4(0x14d)][_0xa121d4(0x168)]({'where':{'id':_0x4de206[_0xa121d4(0x13e)]['id']}})[_0xa121d4(0x157)](handleEntityNotFound(_0x46a0fe,null))[_0xa121d4(0x157)](saveUpdates(_0x4de206[_0xa121d4(0x139)],null))[_0xa121d4(0x157)](respondWithResult(_0x46a0fe,null))[_0xa121d4(0x138)](handleError(_0x46a0fe,null));},exports[a744_0x7e0c60(0x15e)]=function(_0x19da08,_0x1d7589){const _0x3b0e8b=a744_0x7e0c60;return db['Tag']['findOne']({'where':{'id':_0x19da08[_0x3b0e8b(0x13e)]['id']}})[_0x3b0e8b(0x157)](handleEntityNotFound(_0x1d7589,null))[_0x3b0e8b(0x157)](removeEntity(_0x1d7589,null))['catch'](handleError(_0x1d7589,null));}; \ No newline at end of file diff --git a/server/api/tag/tag.model.js b/server/api/tag/tag.model.js index 152d0f8..32e8bb5 100644 --- a/server/api/tag/tag.model.js +++ b/server/api/tag/tag.model.js @@ -1 +1 @@ -const a745_0x5003=['exports','function','./tag.options','./tag.attributes','init','sequelize'];(function(_0x18b923,_0x18ebf3){const _0x5003e2=function(_0x124777){while(--_0x124777){_0x18b923['push'](_0x18b923['shift']());}};_0x5003e2(++_0x18ebf3);}(a745_0x5003,0x160));const a745_0x1247=function(_0x18b923,_0x18ebf3){_0x18b923=_0x18b923-0x108;let _0x5003e2=a745_0x5003[_0x18b923];return _0x5003e2;};const a745_0x21c4df=a745_0x1247;'use strict';const {Model}=require(a745_0x21c4df(0x109)),{attributes}=require(a745_0x21c4df(0x10d)),{options}=require(a745_0x21c4df(0x10c));class Tag extends Model{}function init(_0x3e40e6,_0x4d38a6){const _0x507521=a745_0x21c4df,_0x5e5c0b=options(_0x3e40e6),_0x255e72=typeof _0x4d38a6===_0x507521(0x10b)?_0x4d38a6(_0x5e5c0b):_0x5e5c0b;return Tag[_0x507521(0x108)](attributes,_0x255e72),Tag;}module[a745_0x21c4df(0x10a)]['Tag']=Tag,module[a745_0x21c4df(0x10a)][a745_0x21c4df(0x108)]=init; \ No newline at end of file +const a745_0x173f=['./tag.options','Tag','exports','function','init'];(function(_0x4ded81,_0x30dfaf){const _0x173f79=function(_0x49b257){while(--_0x49b257){_0x4ded81['push'](_0x4ded81['shift']());}};_0x173f79(++_0x30dfaf);}(a745_0x173f,0x1ab));const a745_0x49b2=function(_0x4ded81,_0x30dfaf){_0x4ded81=_0x4ded81-0x14b;let _0x173f79=a745_0x173f[_0x4ded81];return _0x173f79;};const a745_0xe51c49=a745_0x49b2;'use strict';const {Model}=require('sequelize'),{attributes}=require('./tag.attributes'),{options}=require(a745_0xe51c49(0x14e));class Tag extends Model{}function init(_0x5e7a40,_0x5877eb){const _0x2cb62c=a745_0xe51c49,_0xe2c193=options(_0x5e7a40),_0x1ef51e=typeof _0x5877eb===_0x2cb62c(0x14c)?_0x5877eb(_0xe2c193):_0xe2c193;return Tag[_0x2cb62c(0x14d)](attributes,_0x1ef51e),Tag;}module[a745_0xe51c49(0x14b)][a745_0xe51c49(0x14f)]=Tag,module[a745_0xe51c49(0x14b)][a745_0xe51c49(0x14d)]=init; \ No newline at end of file diff --git a/server/api/tag/tag.options.js b/server/api/tag/tag.options.js index e3afbd4..a07d70b 100644 --- a/server/api/tag/tag.options.js +++ b/server/api/tag/tag.options.js @@ -1 +1 @@ -var a746_0x4c1d=['options'];(function(_0x292250,_0x47c476){var _0x4c1de3=function(_0xcc2e51){while(--_0xcc2e51){_0x292250['push'](_0x292250['shift']());}};_0x4c1de3(++_0x47c476);}(a746_0x4c1d,0x125));var a746_0xcc2e=function(_0x292250,_0x47c476){_0x292250=_0x292250-0x1eb;var _0x4c1de3=a746_0x4c1d[_0x292250];return _0x4c1de3;};var a746_0xbee6cd=a746_0xcc2e;function options(_0x1e2e7b){return{'sequelize':_0x1e2e7b,'tableName':'tools_tags','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a746_0xbee6cd(0x1eb)]=options; \ No newline at end of file +var a746_0x1601=['tools_tags','exports'];(function(_0x31894f,_0x48387c){var _0x160185=function(_0x9f6d65){while(--_0x9f6d65){_0x31894f['push'](_0x31894f['shift']());}};_0x160185(++_0x48387c);}(a746_0x1601,0x92));var a746_0x9f6d=function(_0x31894f,_0x48387c){_0x31894f=_0x31894f-0x87;var _0x160185=a746_0x1601[_0x31894f];return _0x160185;};var a746_0x3d34a4=a746_0x9f6d;function options(_0x242421){var _0x1154bf=a746_0x9f6d;return{'sequelize':_0x242421,'tableName':_0x1154bf(0x87),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a746_0x3d34a4(0x88)]['options']=options; \ No newline at end of file diff --git a/server/api/team/index.js b/server/api/team/index.js index 87dc756..64bf7ca 100644 --- a/server/api/team/index.js +++ b/server/api/team/index.js @@ -1 +1 @@ -const a747_0x5bab=['update','delete','getAgents','/:id/users','get','put','../../components/auth/service','/:id','exports','show','getQueues','removeAgents','/:id/queues','addQueues','post','isAuthenticated','index'];(function(_0x820be8,_0x241cc7){const _0x5bab9e=function(_0x530ca5){while(--_0x530ca5){_0x820be8['push'](_0x820be8['shift']());}};_0x5bab9e(++_0x241cc7);}(a747_0x5bab,0x183));const a747_0x530c=function(_0x820be8,_0x241cc7){_0x820be8=_0x820be8-0x1a5;let _0x5bab9e=a747_0x5bab[_0x820be8];return _0x5bab9e;};const a747_0x132a40=a747_0x530c;'use strict';const express=require('express'),router=express['Router'](),auth=require(a747_0x132a40(0x1af)),controller=require('./team.controller');router[a747_0x132a40(0x1ad)]('/',auth[a747_0x132a40(0x1a7)](),controller[a747_0x132a40(0x1a8)]),router[a747_0x132a40(0x1ad)](a747_0x132a40(0x1b0),auth[a747_0x132a40(0x1a7)](),controller[a747_0x132a40(0x1b2)]),router[a747_0x132a40(0x1ad)](a747_0x132a40(0x1b5),auth[a747_0x132a40(0x1a7)](),controller[a747_0x132a40(0x1b3)]),router[a747_0x132a40(0x1ad)](a747_0x132a40(0x1ac),auth['isAuthenticated'](),controller[a747_0x132a40(0x1ab)]),router[a747_0x132a40(0x1a6)]('/',auth[a747_0x132a40(0x1a7)](),controller['create']),router[a747_0x132a40(0x1a6)](a747_0x132a40(0x1b5),auth[a747_0x132a40(0x1a7)](),controller[a747_0x132a40(0x1a5)]),router[a747_0x132a40(0x1a6)](a747_0x132a40(0x1ac),auth[a747_0x132a40(0x1a7)](),controller['addAgents']),router[a747_0x132a40(0x1ae)](a747_0x132a40(0x1b0),auth['isAuthenticated'](),controller[a747_0x132a40(0x1a9)]),router[a747_0x132a40(0x1aa)](a747_0x132a40(0x1b0),auth[a747_0x132a40(0x1a7)](),controller['destroy']),router[a747_0x132a40(0x1aa)](a747_0x132a40(0x1b5),auth['isAuthenticated'](),controller['removeQueues']),router[a747_0x132a40(0x1aa)](a747_0x132a40(0x1ac),auth[a747_0x132a40(0x1a7)](),controller[a747_0x132a40(0x1b4)]),module[a747_0x132a40(0x1b1)]=router; \ No newline at end of file +const a747_0x1f55=['show','/:id/queues','/:id','removeQueues','../../components/auth/service','isAuthenticated','exports','delete','create','get','post','put','Router','getAgents','./team.controller','addQueues','/:id/users','addAgents','express','getQueues','removeAgents'];(function(_0xc95606,_0x12fcae){const _0x1f55a2=function(_0x1b3a9d){while(--_0x1b3a9d){_0xc95606['push'](_0xc95606['shift']());}};_0x1f55a2(++_0x12fcae);}(a747_0x1f55,0xc9));const a747_0x1b3a=function(_0xc95606,_0x12fcae){_0xc95606=_0xc95606-0x17f;let _0x1f55a2=a747_0x1f55[_0xc95606];return _0x1f55a2;};const a747_0x4ab455=a747_0x1b3a;'use strict';const express=require(a747_0x4ab455(0x185)),router=express[a747_0x4ab455(0x17f)](),auth=require(a747_0x4ab455(0x18c)),controller=require(a747_0x4ab455(0x181));router[a747_0x4ab455(0x191)]('/',auth[a747_0x4ab455(0x18d)](),controller['index']),router[a747_0x4ab455(0x191)](a747_0x4ab455(0x18a),auth[a747_0x4ab455(0x18d)](),controller[a747_0x4ab455(0x188)]),router['get'](a747_0x4ab455(0x189),auth[a747_0x4ab455(0x18d)](),controller[a747_0x4ab455(0x186)]),router['get'](a747_0x4ab455(0x183),auth[a747_0x4ab455(0x18d)](),controller[a747_0x4ab455(0x180)]),router[a747_0x4ab455(0x192)]('/',auth['isAuthenticated'](),controller[a747_0x4ab455(0x190)]),router[a747_0x4ab455(0x192)](a747_0x4ab455(0x189),auth[a747_0x4ab455(0x18d)](),controller[a747_0x4ab455(0x182)]),router[a747_0x4ab455(0x192)](a747_0x4ab455(0x183),auth[a747_0x4ab455(0x18d)](),controller[a747_0x4ab455(0x184)]),router[a747_0x4ab455(0x193)](a747_0x4ab455(0x18a),auth[a747_0x4ab455(0x18d)](),controller['update']),router[a747_0x4ab455(0x18f)]('/:id',auth[a747_0x4ab455(0x18d)](),controller['destroy']),router[a747_0x4ab455(0x18f)](a747_0x4ab455(0x189),auth[a747_0x4ab455(0x18d)](),controller[a747_0x4ab455(0x18b)]),router['delete']('/:id/users',auth['isAuthenticated'](),controller[a747_0x4ab455(0x187)]),module[a747_0x4ab455(0x18e)]=router; \ No newline at end of file diff --git a/server/api/team/team.attributes.js b/server/api/team/team.attributes.js index 3ad8b32..0d2a70f 100644 --- a/server/api/team/team.attributes.js +++ b/server/api/team/team.attributes.js @@ -1 +1 @@ -const a748_0x366e=['attributes','STRING'];(function(_0x52da49,_0xb62da6){const _0x366e83=function(_0x1a07e6){while(--_0x1a07e6){_0x52da49['push'](_0x52da49['shift']());}};_0x366e83(++_0xb62da6);}(a748_0x366e,0x8f));const a748_0x1a07=function(_0x52da49,_0xb62da6){_0x52da49=_0x52da49-0x7d;let _0x366e83=a748_0x366e[_0x52da49];return _0x366e83;};const a748_0x449371=a748_0x1a07;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a748_0x449371(0x7d)],'allowNull':![],'unique':'name'},'description':{'type':DataTypes[a748_0x449371(0x7d)]}};module['exports'][a748_0x449371(0x7e)]=attributes; \ No newline at end of file +const a748_0x4af0=['name','exports','attributes','STRING'];(function(_0x1e1d86,_0x31c2b5){const _0x4af0d5=function(_0x2353d7){while(--_0x2353d7){_0x1e1d86['push'](_0x1e1d86['shift']());}};_0x4af0d5(++_0x31c2b5);}(a748_0x4af0,0x1dc));const a748_0x2353=function(_0x1e1d86,_0x31c2b5){_0x1e1d86=_0x1e1d86-0x6a;let _0x4af0d5=a748_0x4af0[_0x1e1d86];return _0x4af0d5;};const a748_0x4f633d=a748_0x2353;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes['STRING'],'allowNull':![],'unique':a748_0x4f633d(0x6a)},'description':{'type':DataTypes[a748_0x4f633d(0x6d)]}};module[a748_0x4f633d(0x6b)][a748_0x4f633d(0x6c)]=attributes; \ No newline at end of file diff --git a/server/api/team/team.controller.js b/server/api/team/team.controller.js index 6ca4675..83cfd15 100644 --- a/server/api/team/team.controller.js +++ b/server/api/team/team.controller.js @@ -1 +1 @@ -const a749_0x1f77=['Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','create','name','interface','length','map','status','nolimit','userTeam:save','undefined','findAll','sort','mail','query','merge','UserProfileSection','toLowerCase','filter','sendStatus','json','format','removeAgents','send','api','online','like','where','UserProfileResource','fields','VIRTUAL','Queue','error','sms','../../config/utils','includeAll','Content-Range','voice','Queues','whatsapp','addQueues','addAgents','autoAssociation','model','keys','isValidChannel','destroy','getQueues','rawAttributes','emit','./team.socket','pick','offset','intersection','userTeam:remove','attributes','lodash','openchannel','User','show','util','removeQueues','all','Unable\x20to\x20retrieve\x20the\x20current\x20user','order','update','../../mysqldb','include','index','Team','then','role','ids','params','user','filters','get','type','body','capitalize','Unknown\x20channel','UserVoiceQueueRt','../../components/parsers/qs','isArray','set','findOne','chat','remove','rows','../../rediscache','isNil','options','channel','count','catch','fax','register','../../config/logger','key','end','limit','getAgents','voicePause'];(function(_0x12e7ce,_0x4d2572){const _0x1f7770=function(_0x57d2fb){while(--_0x57d2fb){_0x12e7ce['push'](_0x12e7ce['shift']());}};_0x1f7770(++_0x4d2572);}(a749_0x1f77,0x1ae));const a749_0x57d2=function(_0x12e7ce,_0x4d2572){_0x12e7ce=_0x12e7ce-0x1df;let _0x1f7770=a749_0x1f77[_0x12e7ce];return _0x1f7770;};const a749_0x5dd6ab=a749_0x57d2;'use strict';const util=require(a749_0x5dd6ab(0x204)),_=require(a749_0x5dd6ab(0x200)),qs=require(a749_0x5dd6ab(0x21a)),logger=require(a749_0x5dd6ab(0x229))(a749_0x5dd6ab(0x1e0)),utils=require(a749_0x5dd6ab(0x1ea)),{getSocket}=require(a749_0x5dd6ab(0x221)),socket=getSocket(),{db}=require(a749_0x5dd6ab(0x20a)),{Op,ValidationError}=require('sequelize');require(a749_0x5dd6ab(0x1fa))[a749_0x5dd6ab(0x228)](socket);function respondWithStatusCode(_0x31fc41,_0x37a762){return _0x37a762=_0x37a762||0xcc,function(_0x1f353a){const _0xd96e25=a749_0x57d2;if(_0x1f353a)return _0x31fc41[_0xd96e25(0x241)](_0x37a762);return _0x31fc41[_0xd96e25(0x235)](_0x37a762)[_0xd96e25(0x22b)]();};}function respondWithResult(_0x223c56,_0x42520d){return _0x42520d=_0x42520d||0xc8,function(_0x474bd1){const _0x3fc3b0=a749_0x57d2;if(_0x474bd1)return _0x223c56['status'](_0x42520d)[_0x3fc3b0(0x242)](_0x474bd1);};}function respondWithFilteredResult(_0x1514f0,_0x1ad327){return function(_0x4658be){const _0x540501=a749_0x57d2;if(_0x4658be){const _0x80dc24=_0x4658be[_0x540501(0x225)],_0x1d4f10=_0x1ad327['offset'];let _0x29c304=_0x1ad327['offset']+_0x1ad327[_0x540501(0x22c)],_0x341850;return _0x29c304>=_0x80dc24?(_0x29c304=_0x80dc24,_0x341850=0xc8):_0x341850=0xce,_0x1514f0['status'](_0x341850),_0x1514f0[_0x540501(0x21c)](_0x540501(0x1ec),_0x1d4f10+'-'+_0x29c304+'/'+_0x80dc24)[_0x540501(0x242)](_0x4658be);}return null;};}function saveUpdates(_0xf15efd){return function(_0x12bff9){const _0x4d77d8=a749_0x57d2;if(_0x12bff9)return _0x12bff9[_0x4d77d8(0x209)](_0xf15efd)[_0x4d77d8(0x20e)](function(_0x29a142){return _0x29a142;});return null;};}function removeEntity(_0x1d20f3){return function(_0x59cf29){const _0x2ad2d7=a749_0x57d2;if(_0x59cf29)return _0x59cf29[_0x2ad2d7(0x1f6)]()[_0x2ad2d7(0x20e)](function(){const _0x8478e8=_0x2ad2d7,_0x164dff=_0x59cf29[_0x8478e8(0x214)]({'plain':!![]}),_0x168087='Teams';return db[_0x8478e8(0x1e4)]['destroy']({'where':{'type':_0x168087,'resourceId':_0x164dff['id']}})[_0x8478e8(0x20e)](function(){return _0x59cf29;});})[_0x2ad2d7(0x20e)](function(){const _0x39d3ae=_0x2ad2d7;_0x1d20f3[_0x39d3ae(0x235)](0xcc)[_0x39d3ae(0x22b)]();});};}function handleEntityNotFound(_0x3e299a){return function(_0x4d3411){const _0x5a94bb=a749_0x57d2;return!_0x4d3411&&_0x3e299a[_0x5a94bb(0x241)](0x194),_0x4d3411;};}function handleError(_0x113810,_0x224735){return _0x224735=_0x224735||0x1f4,function(_0x114f1a){const _0x3c0419=a749_0x57d2;logger[_0x3c0419(0x1e8)](_0x114f1a['stack']),_0x114f1a[_0x3c0419(0x231)]&&delete _0x114f1a[_0x3c0419(0x231)],_0x113810[_0x3c0419(0x235)](_0x224735)[_0x3c0419(0x1df)](_0x114f1a);};}exports[a749_0x5dd6ab(0x20c)]=function(_0x148d83,_0x8a892b){const _0x1a1900=a749_0x5dd6ab;let _0x58eaa3={};const _0x4f2887={},_0x58c88a={'count':0x0,'rows':[]},_0x54d6e8=_[_0x1a1900(0x234)](db[_0x1a1900(0x20d)][_0x1a1900(0x1f8)],function(_0x24f7dd){const _0x35aa63=_0x1a1900;return{'name':_0x24f7dd['fieldName'],'type':_0x24f7dd[_0x35aa63(0x215)][_0x35aa63(0x22a)]};});_0x4f2887[_0x1a1900(0x1f3)]=_[_0x1a1900(0x234)](_0x54d6e8,_0x1a1900(0x231)),_0x4f2887['query']=_[_0x1a1900(0x1f4)](_0x148d83['query']),_0x4f2887[_0x1a1900(0x213)]=_['intersection'](_0x4f2887['model'],_0x4f2887[_0x1a1900(0x23c)]),_0x58eaa3[_0x1a1900(0x1ff)]=_[_0x1a1900(0x1fd)](_0x4f2887[_0x1a1900(0x1f3)],qs[_0x1a1900(0x1e5)](_0x148d83['query'][_0x1a1900(0x1e5)])),_0x58eaa3[_0x1a1900(0x1ff)]=_0x58eaa3['attributes'][_0x1a1900(0x233)]?_0x58eaa3['attributes']:_0x4f2887[_0x1a1900(0x1f3)];typeof _0x148d83[_0x1a1900(0x23c)][_0x1a1900(0x236)]===_0x1a1900(0x238)&&(_0x58eaa3['limit']=qs[_0x1a1900(0x22c)](_0x148d83['query'][_0x1a1900(0x22c)]),_0x58eaa3[_0x1a1900(0x1fc)]=qs[_0x1a1900(0x1fc)](_0x148d83[_0x1a1900(0x23c)][_0x1a1900(0x1fc)]));_0x58eaa3[_0x1a1900(0x208)]=qs[_0x1a1900(0x23a)](_0x148d83['query'][_0x1a1900(0x23a)]),_0x58eaa3['where']=qs[_0x1a1900(0x213)](_[_0x1a1900(0x1fb)](_0x148d83[_0x1a1900(0x23c)],_0x4f2887[_0x1a1900(0x213)]),_0x54d6e8);_0x148d83['query'][_0x1a1900(0x240)]&&(_0x58eaa3['where']=_['merge'](_0x58eaa3[_0x1a1900(0x1e3)],{[Op['or']]:_['map'](_0x54d6e8,function(_0xed007c){const _0x2d2e27=_0x1a1900;if(_0xed007c[_0x2d2e27(0x215)]!==_0x2d2e27(0x1e6)){const _0xeb057c={};return _0xeb057c[_0xed007c[_0x2d2e27(0x231)]]={[Op[_0x2d2e27(0x1e2)]]:'%'+_0x148d83[_0x2d2e27(0x23c)][_0x2d2e27(0x240)]+'%'},_0xeb057c;}})}));_0x58eaa3=_[_0x1a1900(0x23d)]({},_0x58eaa3,_0x148d83[_0x1a1900(0x223)]);const _0x2e2a76={'where':_0x58eaa3['where']};return db['Team'][_0x1a1900(0x225)](_0x2e2a76)['then'](function(_0x5b6c75){const _0x1f76e2=_0x1a1900;return _0x58c88a[_0x1f76e2(0x225)]=_0x5b6c75,_0x148d83['query'][_0x1f76e2(0x1eb)]&&(_0x58eaa3[_0x1f76e2(0x20b)]=[{'all':!![]}]),db[_0x1f76e2(0x20d)][_0x1f76e2(0x239)](_0x58eaa3);})[_0x1a1900(0x20e)](function(_0x42a262){const _0x519d23=_0x1a1900;return _0x58c88a[_0x519d23(0x220)]=_0x42a262,_0x58c88a;})['then'](respondWithFilteredResult(_0x8a892b,_0x58eaa3))[_0x1a1900(0x226)](handleError(_0x8a892b,null));},exports[a749_0x5dd6ab(0x203)]=function(_0x5dca01,_0x3ec98e){const _0xacd784=a749_0x5dd6ab;let _0x5a6922={'raw':![],'where':{'id':_0x5dca01['params']['id']}};const _0x2e3bf1={};return _0x2e3bf1[_0xacd784(0x1f3)]=_['keys'](db[_0xacd784(0x20d)][_0xacd784(0x1f8)]),_0x2e3bf1[_0xacd784(0x23c)]=_['keys'](_0x5dca01[_0xacd784(0x23c)]),_0x2e3bf1[_0xacd784(0x213)]=_[_0xacd784(0x1fd)](_0x2e3bf1[_0xacd784(0x1f3)],_0x2e3bf1[_0xacd784(0x23c)]),_0x5a6922[_0xacd784(0x1ff)]=_['intersection'](_0x2e3bf1[_0xacd784(0x1f3)],qs['fields'](_0x5dca01['query']['fields'])),_0x5a6922[_0xacd784(0x1ff)]=_0x5a6922['attributes'][_0xacd784(0x233)]?_0x5a6922['attributes']:_0x2e3bf1[_0xacd784(0x1f3)],_0x5dca01[_0xacd784(0x23c)][_0xacd784(0x1eb)]&&(_0x5a6922['include']=[{'all':!![]}]),_0x5a6922=_['merge']({},_0x5a6922,_0x5dca01['options']),db[_0xacd784(0x20d)][_0xacd784(0x21d)](_0x5a6922)[_0xacd784(0x20e)](handleEntityNotFound(_0x3ec98e,null))[_0xacd784(0x20e)](respondWithResult(_0x3ec98e,null))[_0xacd784(0x226)](handleError(_0x3ec98e,null));},exports[a749_0x5dd6ab(0x230)]=function(_0x47d523,_0x2d93f9){const _0x346c2b=a749_0x5dd6ab;return db['Team'][_0x346c2b(0x230)](_0x47d523[_0x346c2b(0x216)],{})[_0x346c2b(0x20e)](function(_0x1f201a){const _0x900416=_0x346c2b,_0x47b9b0=_0x47d523['user'][_0x900416(0x214)]({'plain':!![]});if(!_0x47b9b0)throw new Error(_0x900416(0x207));if(_0x47b9b0[_0x900416(0x20f)]===_0x900416(0x212)){const _0x51af0d=_0x1f201a[_0x900416(0x214)]({'plain':!![]}),_0x47a314='Teams';return db[_0x900416(0x23e)]['findOne']({'where':{'name':_0x47a314,'userProfileId':_0x47b9b0['userProfileId']},'raw':!![]})['then'](function(_0x19340a){const _0x1b2341=_0x900416;return _0x19340a&&_0x19340a[_0x1b2341(0x1f2)]===0x0?db[_0x1b2341(0x1e4)][_0x1b2341(0x230)]({'name':_0x51af0d['name'],'resourceId':_0x51af0d['id'],'type':_0x19340a['name'],'sectionId':_0x19340a['id']},{})[_0x1b2341(0x20e)](function(){return _0x1f201a;}):_0x1f201a;})[_0x900416(0x226)](function(_0x501761){const _0x460c47=_0x900416;logger['error'](_0x460c47(0x22f),_0x501761);throw _0x501761;});}return _0x1f201a;})[_0x346c2b(0x20e)](respondWithResult(_0x2d93f9,0xc9))[_0x346c2b(0x226)](handleError(_0x2d93f9,null));},exports['update']=function(_0x4d9378,_0x396ece){const _0x3ee1d4=a749_0x5dd6ab;return _0x4d9378['body']['id']&&delete _0x4d9378[_0x3ee1d4(0x216)]['id'],db[_0x3ee1d4(0x20d)][_0x3ee1d4(0x21d)]({'where':{'id':_0x4d9378['params']['id']}})['then'](handleEntityNotFound(_0x396ece,null))[_0x3ee1d4(0x20e)](saveUpdates(_0x4d9378[_0x3ee1d4(0x216)],null))['then'](respondWithResult(_0x396ece,null))[_0x3ee1d4(0x226)](handleError(_0x396ece,null));},exports['destroy']=function(_0x471330,_0x144b31){const _0x303584=a749_0x5dd6ab;return db[_0x303584(0x20d)]['findOne']({'where':{'id':_0x471330[_0x303584(0x211)]['id']}})['then'](handleEntityNotFound(_0x144b31,null))[_0x303584(0x20e)](removeEntity(_0x144b31,null))['catch'](handleError(_0x144b31,null));},exports[a749_0x5dd6ab(0x1f7)]=function(_0x1b3d5a,_0x5be261){const _0x17ab54=a749_0x5dd6ab;return db['Team'][_0x17ab54(0x21d)]({'where':{'id':_0x1b3d5a['params']['id']}})[_0x17ab54(0x20e)](handleEntityNotFound(_0x5be261,null))['then'](function(_0x2064b4){const _0x49aa9b=_0x17ab54;if(!_0x1b3d5a['query'][_0x49aa9b(0x224)]||!utils[_0x49aa9b(0x1f5)](_0x1b3d5a[_0x49aa9b(0x23c)][_0x49aa9b(0x224)]))throw new ValidationError(_0x49aa9b(0x218));let _0x23bc92={};const _0x2326ea={};return _0x2326ea[_0x49aa9b(0x1f3)]=_[_0x49aa9b(0x1f4)](db[_[_0x49aa9b(0x217)](_0x1b3d5a[_0x49aa9b(0x23c)]['channel']['toLowerCase']())+_0x49aa9b(0x1e7)]['rawAttributes']),_0x2326ea[_0x49aa9b(0x23c)]=_['keys'](_0x1b3d5a[_0x49aa9b(0x23c)]),_0x2326ea[_0x49aa9b(0x213)]=_[_0x49aa9b(0x1fd)](_0x2326ea[_0x49aa9b(0x1f3)],_0x2326ea[_0x49aa9b(0x23c)]),_0x23bc92[_0x49aa9b(0x1ff)]=_[_0x49aa9b(0x1fd)](_0x2326ea[_0x49aa9b(0x1f3)],qs[_0x49aa9b(0x1e5)](_0x1b3d5a['query'][_0x49aa9b(0x1e5)])),_0x23bc92['attributes']=_0x23bc92[_0x49aa9b(0x1ff)][_0x49aa9b(0x233)]?_0x23bc92[_0x49aa9b(0x1ff)]:_0x2326ea['model'],_0x23bc92[_0x49aa9b(0x22c)]=qs['limit'](_0x1b3d5a[_0x49aa9b(0x23c)][_0x49aa9b(0x22c)]),_0x23bc92['offset']=qs['offset'](_0x1b3d5a['query'][_0x49aa9b(0x1fc)]),_0x23bc92[_0x49aa9b(0x208)]=qs[_0x49aa9b(0x23a)](_0x1b3d5a[_0x49aa9b(0x23c)][_0x49aa9b(0x23a)]),_0x23bc92[_0x49aa9b(0x1e3)]=qs[_0x49aa9b(0x213)](_[_0x49aa9b(0x1fb)](_0x1b3d5a['query'],_0x2326ea[_0x49aa9b(0x213)])),_0x23bc92=_[_0x49aa9b(0x23d)]({},_0x23bc92,_0x1b3d5a[_0x49aa9b(0x223)]),_0x2064b4[_0x49aa9b(0x214)+_[_0x49aa9b(0x217)](_0x1b3d5a[_0x49aa9b(0x23c)][_0x49aa9b(0x224)][_0x49aa9b(0x23f)]())+'Queues'](_0x23bc92);})[_0x17ab54(0x20e)](respondWithResult(_0x5be261,null))[_0x17ab54(0x226)](handleError(_0x5be261,null));},exports[a749_0x5dd6ab(0x1f0)]=function(_0x581195,_0x689172){const _0x31b7c0=a749_0x5dd6ab;return db[_0x31b7c0(0x20d)][_0x31b7c0(0x21d)]({'where':{'id':_0x581195[_0x31b7c0(0x211)]['id']}})[_0x31b7c0(0x20e)](function(_0x4bbd15){const _0x274d1d=_0x31b7c0;if(_0x4bbd15){if(!_0x581195[_0x274d1d(0x216)][_0x274d1d(0x224)]||!utils['isValidChannel'](_0x581195[_0x274d1d(0x216)][_0x274d1d(0x224)]))throw new ValidationError(_0x274d1d(0x218));return _0x4bbd15['add'+_[_0x274d1d(0x217)](_0x581195[_0x274d1d(0x216)]['channel']['toLowerCase']())+'Queues'](_0x581195[_0x274d1d(0x216)][_0x274d1d(0x210)]);}return null;})[_0x31b7c0(0x20e)](handleEntityNotFound(_0x689172,null))[_0x31b7c0(0x20e)](respondWithStatusCode(_0x689172,null))[_0x31b7c0(0x226)](handleError(_0x689172,null));},exports[a749_0x5dd6ab(0x205)]=function(_0x15250c,_0x2efe3d){const _0x1d0890=a749_0x5dd6ab;return db['Team'][_0x1d0890(0x21d)]({'where':{'id':_0x15250c[_0x1d0890(0x211)]['id']}})[_0x1d0890(0x20e)](function(_0x1e8e02){const _0x582da2=_0x1d0890;if(_0x1e8e02){if(!_0x15250c['query'][_0x582da2(0x224)]||!utils[_0x582da2(0x1f5)](_0x15250c[_0x582da2(0x23c)][_0x582da2(0x224)]))throw new ValidationError('Unknown\x20channel');return _0x1e8e02[_0x582da2(0x21f)+_[_0x582da2(0x217)](_0x15250c[_0x582da2(0x23c)][_0x582da2(0x224)]['toLowerCase']())+_0x582da2(0x1ee)](_0x15250c['query'][_0x582da2(0x210)]);}return null;})['then'](handleEntityNotFound(_0x2efe3d,null))[_0x1d0890(0x20e)](respondWithStatusCode(_0x2efe3d,null))[_0x1d0890(0x226)](handleError(_0x2efe3d,null));},exports['addAgents']=function(_0x1395b9,_0x40f53d){const _0xc9dca4=a749_0x5dd6ab;return db[_0xc9dca4(0x20d)]['findOne']({'where':{'id':_0x1395b9[_0xc9dca4(0x211)]['id']}})['then'](function(_0x344b70){const _0x561a67=_0xc9dca4;if(_0x344b70){const _0x3af186=[_0x561a67(0x1ed),_0x561a67(0x21e),'mail',_0x561a67(0x1e9),_0x561a67(0x227),_0x561a67(0x201),_0x561a67(0x1ef)];return Promise[_0x561a67(0x206)](_0x3af186[_0x561a67(0x234)](async _0x3bb01f=>{const _0x216f47=_0x561a67,_0x3cb25e=await _0x344b70['get'+_[_0x216f47(0x217)](_0x3bb01f)+_0x216f47(0x1ee)]({'attributes':['id',_0x216f47(0x231)]});return _0x3cb25e[_0x216f47(0x234)](async _0x382e8f=>{const _0x71e6e6=_0x216f47;await _0x382e8f['addAgents'](_0x1395b9[_0x71e6e6(0x216)][_0x71e6e6(0x210)]);if(_0x3bb01f==='voice'){const _0x343146=await db[_0x71e6e6(0x202)]['findAll']({'where':{'id':_0x1395b9[_0x71e6e6(0x216)][_0x71e6e6(0x210)]},'attributes':['id','name',_0x71e6e6(0x1e1),'voicePause',_0x71e6e6(0x232)],'raw':!![]}),_0x4873d6=_[_0x71e6e6(0x240)](_0x343146,{'online':0x1}),_0x10281c=_0x4873d6[_0x71e6e6(0x234)](_0x1ae194=>{const _0x2c81a3=_0x71e6e6;return db[_0x2c81a3(0x219)]['upsert']({'membername':_0x1ae194[_0x2c81a3(0x231)],'UserId':_0x1ae194['id'],'queue_name':_0x382e8f[_0x2c81a3(0x231)],'VoiceQueueId':_0x382e8f['id'],'interface':_[_0x2c81a3(0x222)](_0x1ae194[_0x2c81a3(0x232)])?util[_0x2c81a3(0x243)]('SIP/%s',_0x1ae194[_0x2c81a3(0x231)]):_0x1ae194[_0x2c81a3(0x232)],'paused':_0x1ae194[_0x2c81a3(0x22e)]||![],'penalty':0x0});});return Promise[_0x71e6e6(0x206)](_0x10281c);}}),_0x344b70;}))['then'](function(){return _0x344b70;});}})['then'](function(_0x1f19d6){const _0x59900f=_0xc9dca4;if(_0x1f19d6)return _0x1f19d6[_0x59900f(0x1f1)](_0x1395b9[_0x59900f(0x216)][_0x59900f(0x210)],{'through':_['omit'](_0x1395b9[_0x59900f(0x216)],['ids','id'])})[_0x59900f(0x20e)](function(_0x54d418){const _0x111ef9=_0x59900f;for(let _0x42d7fb=0x0;_0x42d7fb<_0x1395b9[_0x111ef9(0x216)][_0x111ef9(0x210)][_0x111ef9(0x233)];_0x42d7fb+=0x1){socket[_0x111ef9(0x1f9)](_0x111ef9(0x237),{'UserId':_0x1395b9[_0x111ef9(0x216)][_0x111ef9(0x210)][_0x42d7fb],'TeamId':_0x1395b9[_0x111ef9(0x211)]['id']});}return _0x54d418;});})[_0xc9dca4(0x20e)](respondWithResult(_0x40f53d,null))[_0xc9dca4(0x226)](handleError(_0x40f53d,null));},exports[a749_0x5dd6ab(0x244)]=function(_0x24ebbd,_0x226163){const _0x134f33=a749_0x5dd6ab;return db['Team']['findOne']({'where':{'id':_0x24ebbd[_0x134f33(0x211)]['id']}})[_0x134f33(0x20e)](handleEntityNotFound(_0x226163,null))[_0x134f33(0x20e)](function(_0x218d98){const _0x59a9ea=_0x134f33;if(_0x218d98){const _0x56d463=['voice',_0x59a9ea(0x21e),_0x59a9ea(0x23b),_0x59a9ea(0x1e9),'fax',_0x59a9ea(0x201),'whatsapp'];return Promise[_0x59a9ea(0x206)](_0x56d463[_0x59a9ea(0x234)](async _0x5adc7d=>{const _0x10c878=_0x59a9ea,_0x7a12ef=await _0x218d98['get'+_[_0x10c878(0x217)](_0x5adc7d)+'Queues']({'attributes':['id',_0x10c878(0x231)]});return _0x7a12ef[_0x10c878(0x234)](async _0x1b26b2=>{const _0x4553d3=_0x10c878;await _0x1b26b2[_0x4553d3(0x244)](_0x24ebbd[_0x4553d3(0x23c)][_0x4553d3(0x210)]),_0x5adc7d===_0x4553d3(0x1ed)&&await db[_0x4553d3(0x219)]['destroy']({'where':{'VoiceQueueId':_0x1b26b2['id'],'UserId':_0x24ebbd[_0x4553d3(0x23c)][_0x4553d3(0x210)]}});}),_0x218d98;}))[_0x59a9ea(0x20e)](function(){return _0x218d98;});}})[_0x134f33(0x20e)](function(_0x29ac29){const _0x3af03e=_0x134f33;if(_0x29ac29)return _0x29ac29['removeAgents'](_0x24ebbd[_0x3af03e(0x23c)][_0x3af03e(0x210)])[_0x3af03e(0x20e)](function(){const _0x4585ac=_0x3af03e;if(_[_0x4585ac(0x21b)](_0x24ebbd[_0x4585ac(0x23c)][_0x4585ac(0x210)]))for(let _0x14f63c=0x0;_0x14f63c<_0x24ebbd['query']['ids'][_0x4585ac(0x233)];_0x14f63c+=0x1){socket['emit'](_0x4585ac(0x1fe),{'UserId':Number(_0x24ebbd[_0x4585ac(0x23c)][_0x4585ac(0x210)][_0x14f63c]),'TeamId':Number(_0x24ebbd[_0x4585ac(0x211)]['id'])});}else socket[_0x4585ac(0x1f9)]('userTeam:remove',{'UserId':Number(_0x24ebbd['query'][_0x4585ac(0x210)]),'TeamId':Number(_0x24ebbd[_0x4585ac(0x211)]['id'])});});})[_0x134f33(0x20e)](respondWithStatusCode(_0x226163,null))[_0x134f33(0x226)](handleError(_0x226163,null));},exports[a749_0x5dd6ab(0x22d)]=function(_0x52fac9,_0x211a60){const _0x4e054f=a749_0x5dd6ab;let _0x37b6bb={};const _0x3436e0={};let _0xd685b7,_0x102d8f;return db['Team'][_0x4e054f(0x21d)]({'where':{'id':_0x52fac9[_0x4e054f(0x211)]['id']}})[_0x4e054f(0x20e)](handleEntityNotFound(_0x211a60,null))[_0x4e054f(0x20e)](function(_0xc0355f){const _0x29a1eb=_0x4e054f;if(_0xc0355f)return _0xd685b7=_0xc0355f,_0x3436e0[_0x29a1eb(0x1f3)]=_[_0x29a1eb(0x1f4)](db['User'][_0x29a1eb(0x1f8)]),_0x3436e0[_0x29a1eb(0x23c)]=_[_0x29a1eb(0x1f4)](_0x52fac9[_0x29a1eb(0x23c)]),_0x3436e0[_0x29a1eb(0x213)]=_[_0x29a1eb(0x1fd)](_0x3436e0[_0x29a1eb(0x1f3)],_0x3436e0['query']),_0x37b6bb[_0x29a1eb(0x1ff)]=_[_0x29a1eb(0x1fd)](_0x3436e0['model'],qs[_0x29a1eb(0x1e5)](_0x52fac9[_0x29a1eb(0x23c)][_0x29a1eb(0x1e5)])),_0x37b6bb[_0x29a1eb(0x1ff)]=_0x37b6bb[_0x29a1eb(0x1ff)]['length']?_0x37b6bb['attributes']:_0x3436e0['model'],_0x37b6bb[_0x29a1eb(0x208)]=qs[_0x29a1eb(0x23a)](_0x52fac9[_0x29a1eb(0x23c)]['sort']),_0x37b6bb[_0x29a1eb(0x1e3)]=qs['filters'](_[_0x29a1eb(0x1fb)](_0x52fac9[_0x29a1eb(0x23c)],_0x3436e0['filters'])),_0x52fac9['query']['filter']&&(_0x37b6bb['where']=_[_0x29a1eb(0x23d)](_0x37b6bb[_0x29a1eb(0x1e3)],{[Op['or']]:_[_0x29a1eb(0x234)](_0x37b6bb['attributes'],function(_0x1e0b39){const _0x46911d=_0x29a1eb,_0x234b44={};return _0x234b44[_0x1e0b39]={[Op['like']]:'%'+_0x52fac9[_0x46911d(0x23c)][_0x46911d(0x240)]+'%'},_0x234b44;})})),_0x37b6bb=_[_0x29a1eb(0x23d)]({},_0x37b6bb,_0x52fac9[_0x29a1eb(0x223)]),_0xd685b7['getAgents'](_0x37b6bb);})[_0x4e054f(0x20e)](function(_0x311d49){const _0x5de499=_0x4e054f;if(_0x311d49)return _0x102d8f=_0x311d49[_0x5de499(0x233)],typeof _0x52fac9[_0x5de499(0x23c)][_0x5de499(0x236)]===_0x5de499(0x238)&&(_0x37b6bb[_0x5de499(0x22c)]=qs['limit'](_0x52fac9[_0x5de499(0x23c)][_0x5de499(0x22c)]),_0x37b6bb[_0x5de499(0x1fc)]=qs['offset'](_0x52fac9['query']['offset'])),_0xd685b7['getAgents'](_0x37b6bb);})['then'](function(_0x2230e5){if(_0x2230e5)return _0x2230e5?{'count':_0x102d8f,'rows':_0x2230e5}:null;})['then'](respondWithResult(_0x211a60,null))[_0x4e054f(0x226)](handleError(_0x211a60,null));}; \ No newline at end of file +const a749_0x22c2=['keys','whatsapp','Queue','count','sort','fieldName','fax','add','channel','model','UserProfileSection','options','findAll','get','voicePause','length','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','user','rows','includeAll','VIRTUAL','chat','UserVoiceQueueRt','query','then','undefined','emit','intersection','set','toLowerCase','lodash','name','isValidChannel','upsert','findOne','end','stack','UserProfileResource','util','isNil','../../components/parsers/qs','error','removeQueues','Unknown\x20channel','like','getAgents','online','create','status','interface','where','map','format','include','voice','fields','remove','sendStatus','sms','../../config/logger','index','all','order','update','./team.socket','pick','offset','rawAttributes','destroy','userTeam:remove','role','capitalize','ids','type','Unable\x20to\x20retrieve\x20the\x20current\x20user','catch','key','body','merge','filters','Teams','SIP/%s','api','User','removeAgents','addAgents','attributes','params','sequelize','addQueues','isArray','json','autoAssociation','filter','mail','Queues','nolimit','openchannel','../../rediscache','userProfileId','Team','limit'];(function(_0x3104e4,_0x57443a){const _0x22c2eb=function(_0x1ab897){while(--_0x1ab897){_0x3104e4['push'](_0x3104e4['shift']());}};_0x22c2eb(++_0x57443a);}(a749_0x22c2,0x100));const a749_0x1ab8=function(_0x3104e4,_0x57443a){_0x3104e4=_0x3104e4-0xc7;let _0x22c2eb=a749_0x22c2[_0x3104e4];return _0x22c2eb;};const a749_0x4c0e92=a749_0x1ab8;'use strict';const util=require(a749_0x4c0e92(0x11f)),_=require(a749_0x4c0e92(0x117)),qs=require(a749_0x4c0e92(0x121)),logger=require(a749_0x4c0e92(0xce))(a749_0x4c0e92(0xe5)),utils=require('../../config/utils'),{getSocket}=require(a749_0x4c0e92(0xf5)),socket=getSocket(),{db}=require('../../mysqldb'),{Op,ValidationError}=require(a749_0x4c0e92(0xeb));require(a749_0x4c0e92(0xd3))['register'](socket);function respondWithStatusCode(_0x324449,_0x2efc5f){return _0x2efc5f=_0x2efc5f||0xcc,function(_0x5b8dab){const _0x4adac5=a749_0x1ab8;if(_0x5b8dab)return _0x324449[_0x4adac5(0xcc)](_0x2efc5f);return _0x324449[_0x4adac5(0x129)](_0x2efc5f)[_0x4adac5(0x11c)]();};}function respondWithResult(_0x4055ad,_0x2b3fde){return _0x2b3fde=_0x2b3fde||0xc8,function(_0x10e2d8){const _0xe7a25a=a749_0x1ab8;if(_0x10e2d8)return _0x4055ad[_0xe7a25a(0x129)](_0x2b3fde)[_0xe7a25a(0xee)](_0x10e2d8);};}function respondWithFilteredResult(_0x30bc9f,_0x329448){return function(_0x21aa95){const _0x452e64=a749_0x1ab8;if(_0x21aa95){const _0x1e5d75=_0x21aa95[_0x452e64(0xfc)],_0x41449f=_0x329448['offset'];let _0x71fc3e=_0x329448['offset']+_0x329448[_0x452e64(0xf8)],_0x59f0e5;return _0x71fc3e>=_0x1e5d75?(_0x71fc3e=_0x1e5d75,_0x59f0e5=0xc8):_0x59f0e5=0xce,_0x30bc9f['status'](_0x59f0e5),_0x30bc9f[_0x452e64(0x115)]('Content-Range',_0x41449f+'-'+_0x71fc3e+'/'+_0x1e5d75)[_0x452e64(0xee)](_0x21aa95);}return null;};}function saveUpdates(_0x48fca4){return function(_0x4ae383){const _0x57acc2=a749_0x1ab8;if(_0x4ae383)return _0x4ae383[_0x57acc2(0xd2)](_0x48fca4)[_0x57acc2(0x111)](function(_0xed7782){return _0xed7782;});return null;};}function removeEntity(_0x5178d4){return function(_0x42aafb){const _0x2d03c9=a749_0x1ab8;if(_0x42aafb)return _0x42aafb[_0x2d03c9(0xd7)]()['then'](function(){const _0x9f00f5=_0x2d03c9,_0x3201cd=_0x42aafb[_0x9f00f5(0x106)]({'plain':!![]}),_0x437bd3=_0x9f00f5(0xe3);return db[_0x9f00f5(0x11e)]['destroy']({'where':{'type':_0x437bd3,'resourceId':_0x3201cd['id']}})[_0x9f00f5(0x111)](function(){return _0x42aafb;});})[_0x2d03c9(0x111)](function(){const _0x5d8c10=_0x2d03c9;_0x5178d4[_0x5d8c10(0x129)](0xcc)[_0x5d8c10(0x11c)]();});};}function handleEntityNotFound(_0x5b87b4){return function(_0x17b746){const _0x3c4e6b=a749_0x1ab8;return!_0x17b746&&_0x5b87b4[_0x3c4e6b(0xcc)](0x194),_0x17b746;};}function handleError(_0x12cbf0,_0x3a1174){return _0x3a1174=_0x3a1174||0x1f4,function(_0x3b6b34){const _0x3d023b=a749_0x1ab8;logger[_0x3d023b(0x122)](_0x3b6b34[_0x3d023b(0x11d)]),_0x3b6b34['name']&&delete _0x3b6b34[_0x3d023b(0x118)],_0x12cbf0[_0x3d023b(0x129)](_0x3a1174)['send'](_0x3b6b34);};}exports[a749_0x4c0e92(0xcf)]=function(_0xc6bf67,_0x4c096d){const _0x578dc9=a749_0x4c0e92;let _0x387636={};const _0xee1fcb={},_0x1050a2={'count':0x0,'rows':[]},_0x215cfa=_[_0x578dc9(0x12c)](db[_0x578dc9(0xf7)][_0x578dc9(0xd6)],function(_0x2fa70a){const _0x2eef3e=_0x578dc9;return{'name':_0x2fa70a[_0x2eef3e(0xfe)],'type':_0x2fa70a['type'][_0x2eef3e(0xdf)]};});_0xee1fcb[_0x578dc9(0x102)]=_[_0x578dc9(0x12c)](_0x215cfa,_0x578dc9(0x118)),_0xee1fcb[_0x578dc9(0x110)]=_[_0x578dc9(0xf9)](_0xc6bf67[_0x578dc9(0x110)]),_0xee1fcb[_0x578dc9(0xe2)]=_['intersection'](_0xee1fcb['model'],_0xee1fcb['query']),_0x387636[_0x578dc9(0xe9)]=_[_0x578dc9(0x114)](_0xee1fcb[_0x578dc9(0x102)],qs['fields'](_0xc6bf67[_0x578dc9(0x110)][_0x578dc9(0xca)])),_0x387636['attributes']=_0x387636[_0x578dc9(0xe9)][_0x578dc9(0x108)]?_0x387636[_0x578dc9(0xe9)]:_0xee1fcb[_0x578dc9(0x102)];typeof _0xc6bf67[_0x578dc9(0x110)][_0x578dc9(0xf3)]===_0x578dc9(0x112)&&(_0x387636[_0x578dc9(0xf8)]=qs[_0x578dc9(0xf8)](_0xc6bf67['query'][_0x578dc9(0xf8)]),_0x387636[_0x578dc9(0xd5)]=qs[_0x578dc9(0xd5)](_0xc6bf67['query'][_0x578dc9(0xd5)]));_0x387636['order']=qs[_0x578dc9(0xfd)](_0xc6bf67[_0x578dc9(0x110)][_0x578dc9(0xfd)]),_0x387636[_0x578dc9(0x12b)]=qs[_0x578dc9(0xe2)](_[_0x578dc9(0xd4)](_0xc6bf67[_0x578dc9(0x110)],_0xee1fcb[_0x578dc9(0xe2)]),_0x215cfa);_0xc6bf67[_0x578dc9(0x110)][_0x578dc9(0xf0)]&&(_0x387636[_0x578dc9(0x12b)]=_[_0x578dc9(0xe1)](_0x387636[_0x578dc9(0x12b)],{[Op['or']]:_[_0x578dc9(0x12c)](_0x215cfa,function(_0x34e809){const _0x29aabe=_0x578dc9;if(_0x34e809[_0x29aabe(0xdc)]!==_0x29aabe(0x10d)){const _0x1a7fa4={};return _0x1a7fa4[_0x34e809[_0x29aabe(0x118)]]={[Op['like']]:'%'+_0xc6bf67[_0x29aabe(0x110)][_0x29aabe(0xf0)]+'%'},_0x1a7fa4;}})}));_0x387636=_[_0x578dc9(0xe1)]({},_0x387636,_0xc6bf67[_0x578dc9(0x104)]);const _0x2cc025={'where':_0x387636[_0x578dc9(0x12b)]};return db[_0x578dc9(0xf7)][_0x578dc9(0xfc)](_0x2cc025)[_0x578dc9(0x111)](function(_0x4bf4cc){const _0x23cdfa=_0x578dc9;return _0x1050a2['count']=_0x4bf4cc,_0xc6bf67[_0x23cdfa(0x110)][_0x23cdfa(0x10c)]&&(_0x387636[_0x23cdfa(0xc8)]=[{'all':!![]}]),db['Team'][_0x23cdfa(0x105)](_0x387636);})[_0x578dc9(0x111)](function(_0x399289){const _0x1b7b9d=_0x578dc9;return _0x1050a2[_0x1b7b9d(0x10b)]=_0x399289,_0x1050a2;})['then'](respondWithFilteredResult(_0x4c096d,_0x387636))[_0x578dc9(0xde)](handleError(_0x4c096d,null));},exports['show']=function(_0x24994c,_0x338232){const _0x50e60b=a749_0x4c0e92;let _0x276352={'raw':![],'where':{'id':_0x24994c[_0x50e60b(0xea)]['id']}};const _0x38e239={};return _0x38e239['model']=_['keys'](db[_0x50e60b(0xf7)]['rawAttributes']),_0x38e239[_0x50e60b(0x110)]=_['keys'](_0x24994c[_0x50e60b(0x110)]),_0x38e239[_0x50e60b(0xe2)]=_['intersection'](_0x38e239[_0x50e60b(0x102)],_0x38e239[_0x50e60b(0x110)]),_0x276352[_0x50e60b(0xe9)]=_[_0x50e60b(0x114)](_0x38e239[_0x50e60b(0x102)],qs['fields'](_0x24994c[_0x50e60b(0x110)]['fields'])),_0x276352[_0x50e60b(0xe9)]=_0x276352[_0x50e60b(0xe9)][_0x50e60b(0x108)]?_0x276352[_0x50e60b(0xe9)]:_0x38e239[_0x50e60b(0x102)],_0x24994c[_0x50e60b(0x110)][_0x50e60b(0x10c)]&&(_0x276352[_0x50e60b(0xc8)]=[{'all':!![]}]),_0x276352=_[_0x50e60b(0xe1)]({},_0x276352,_0x24994c['options']),db[_0x50e60b(0xf7)]['findOne'](_0x276352)[_0x50e60b(0x111)](handleEntityNotFound(_0x338232,null))['then'](respondWithResult(_0x338232,null))[_0x50e60b(0xde)](handleError(_0x338232,null));},exports[a749_0x4c0e92(0x128)]=function(_0x24b83e,_0x58dc14){const _0x53503e=a749_0x4c0e92;return db[_0x53503e(0xf7)][_0x53503e(0x128)](_0x24b83e[_0x53503e(0xe0)],{})[_0x53503e(0x111)](function(_0x1e8b2e){const _0x8f625=_0x53503e,_0x5cef75=_0x24b83e[_0x8f625(0x10a)][_0x8f625(0x106)]({'plain':!![]});if(!_0x5cef75)throw new Error(_0x8f625(0xdd));if(_0x5cef75[_0x8f625(0xd9)]==='user'){const _0x29f0a6=_0x1e8b2e[_0x8f625(0x106)]({'plain':!![]}),_0x3319e8=_0x8f625(0xe3);return db[_0x8f625(0x103)][_0x8f625(0x11b)]({'where':{'name':_0x3319e8,'userProfileId':_0x5cef75[_0x8f625(0xf6)]},'raw':!![]})[_0x8f625(0x111)](function(_0xcc2ef0){const _0xd18d1e=_0x8f625;return _0xcc2ef0&&_0xcc2ef0[_0xd18d1e(0xef)]===0x0?db[_0xd18d1e(0x11e)]['create']({'name':_0x29f0a6[_0xd18d1e(0x118)],'resourceId':_0x29f0a6['id'],'type':_0xcc2ef0['name'],'sectionId':_0xcc2ef0['id']},{})[_0xd18d1e(0x111)](function(){return _0x1e8b2e;}):_0x1e8b2e;})[_0x8f625(0xde)](function(_0x1e03c0){const _0x1f4c88=_0x8f625;logger[_0x1f4c88(0x122)](_0x1f4c88(0x109),_0x1e03c0);throw _0x1e03c0;});}return _0x1e8b2e;})[_0x53503e(0x111)](respondWithResult(_0x58dc14,0xc9))[_0x53503e(0xde)](handleError(_0x58dc14,null));},exports['update']=function(_0x29dc17,_0x27ead5){const _0x48f269=a749_0x4c0e92;return _0x29dc17['body']['id']&&delete _0x29dc17['body']['id'],db['Team'][_0x48f269(0x11b)]({'where':{'id':_0x29dc17[_0x48f269(0xea)]['id']}})['then'](handleEntityNotFound(_0x27ead5,null))[_0x48f269(0x111)](saveUpdates(_0x29dc17['body'],null))[_0x48f269(0x111)](respondWithResult(_0x27ead5,null))[_0x48f269(0xde)](handleError(_0x27ead5,null));},exports[a749_0x4c0e92(0xd7)]=function(_0x541635,_0xfb1cb3){const _0x290c13=a749_0x4c0e92;return db[_0x290c13(0xf7)]['findOne']({'where':{'id':_0x541635[_0x290c13(0xea)]['id']}})[_0x290c13(0x111)](handleEntityNotFound(_0xfb1cb3,null))[_0x290c13(0x111)](removeEntity(_0xfb1cb3,null))[_0x290c13(0xde)](handleError(_0xfb1cb3,null));},exports['getQueues']=function(_0x3de9c6,_0x8a582a){const _0x2975b3=a749_0x4c0e92;return db[_0x2975b3(0xf7)][_0x2975b3(0x11b)]({'where':{'id':_0x3de9c6[_0x2975b3(0xea)]['id']}})['then'](handleEntityNotFound(_0x8a582a,null))[_0x2975b3(0x111)](function(_0x21ab95){const _0x38d00c=_0x2975b3;if(!_0x3de9c6[_0x38d00c(0x110)][_0x38d00c(0x101)]||!utils[_0x38d00c(0x119)](_0x3de9c6['query'][_0x38d00c(0x101)]))throw new ValidationError(_0x38d00c(0x124));let _0x37f57f={};const _0x1cb337={};return _0x1cb337[_0x38d00c(0x102)]=_[_0x38d00c(0xf9)](db[_[_0x38d00c(0xda)](_0x3de9c6[_0x38d00c(0x110)]['channel']['toLowerCase']())+_0x38d00c(0xfb)][_0x38d00c(0xd6)]),_0x1cb337['query']=_[_0x38d00c(0xf9)](_0x3de9c6[_0x38d00c(0x110)]),_0x1cb337['filters']=_[_0x38d00c(0x114)](_0x1cb337['model'],_0x1cb337['query']),_0x37f57f[_0x38d00c(0xe9)]=_['intersection'](_0x1cb337[_0x38d00c(0x102)],qs[_0x38d00c(0xca)](_0x3de9c6[_0x38d00c(0x110)][_0x38d00c(0xca)])),_0x37f57f['attributes']=_0x37f57f[_0x38d00c(0xe9)][_0x38d00c(0x108)]?_0x37f57f['attributes']:_0x1cb337['model'],_0x37f57f['limit']=qs[_0x38d00c(0xf8)](_0x3de9c6[_0x38d00c(0x110)]['limit']),_0x37f57f[_0x38d00c(0xd5)]=qs['offset'](_0x3de9c6['query']['offset']),_0x37f57f[_0x38d00c(0xd1)]=qs[_0x38d00c(0xfd)](_0x3de9c6[_0x38d00c(0x110)][_0x38d00c(0xfd)]),_0x37f57f['where']=qs[_0x38d00c(0xe2)](_[_0x38d00c(0xd4)](_0x3de9c6[_0x38d00c(0x110)],_0x1cb337['filters'])),_0x37f57f=_[_0x38d00c(0xe1)]({},_0x37f57f,_0x3de9c6[_0x38d00c(0x104)]),_0x21ab95[_0x38d00c(0x106)+_['capitalize'](_0x3de9c6['query'][_0x38d00c(0x101)][_0x38d00c(0x116)]())+'Queues'](_0x37f57f);})[_0x2975b3(0x111)](respondWithResult(_0x8a582a,null))[_0x2975b3(0xde)](handleError(_0x8a582a,null));},exports[a749_0x4c0e92(0xec)]=function(_0x360be5,_0x4c476b){const _0xe3854b=a749_0x4c0e92;return db[_0xe3854b(0xf7)]['findOne']({'where':{'id':_0x360be5['params']['id']}})[_0xe3854b(0x111)](function(_0x269217){const _0x40a22f=_0xe3854b;if(_0x269217){if(!_0x360be5[_0x40a22f(0xe0)][_0x40a22f(0x101)]||!utils[_0x40a22f(0x119)](_0x360be5[_0x40a22f(0xe0)][_0x40a22f(0x101)]))throw new ValidationError('Unknown\x20channel');return _0x269217[_0x40a22f(0x100)+_[_0x40a22f(0xda)](_0x360be5[_0x40a22f(0xe0)][_0x40a22f(0x101)][_0x40a22f(0x116)]())+_0x40a22f(0xf2)](_0x360be5[_0x40a22f(0xe0)][_0x40a22f(0xdb)]);}return null;})['then'](handleEntityNotFound(_0x4c476b,null))[_0xe3854b(0x111)](respondWithStatusCode(_0x4c476b,null))['catch'](handleError(_0x4c476b,null));},exports[a749_0x4c0e92(0x123)]=function(_0x7f9f19,_0x20b972){const _0x313b24=a749_0x4c0e92;return db[_0x313b24(0xf7)][_0x313b24(0x11b)]({'where':{'id':_0x7f9f19[_0x313b24(0xea)]['id']}})[_0x313b24(0x111)](function(_0x4037ef){const _0x5a66ba=_0x313b24;if(_0x4037ef){if(!_0x7f9f19[_0x5a66ba(0x110)]['channel']||!utils[_0x5a66ba(0x119)](_0x7f9f19['query']['channel']))throw new ValidationError(_0x5a66ba(0x124));return _0x4037ef[_0x5a66ba(0xcb)+_[_0x5a66ba(0xda)](_0x7f9f19[_0x5a66ba(0x110)][_0x5a66ba(0x101)][_0x5a66ba(0x116)]())+_0x5a66ba(0xf2)](_0x7f9f19[_0x5a66ba(0x110)][_0x5a66ba(0xdb)]);}return null;})[_0x313b24(0x111)](handleEntityNotFound(_0x20b972,null))[_0x313b24(0x111)](respondWithStatusCode(_0x20b972,null))['catch'](handleError(_0x20b972,null));},exports[a749_0x4c0e92(0xe8)]=function(_0x2de1a5,_0x421bd0){const _0x14582f=a749_0x4c0e92;return db[_0x14582f(0xf7)]['findOne']({'where':{'id':_0x2de1a5[_0x14582f(0xea)]['id']}})['then'](function(_0x476f6){const _0x25a502=_0x14582f;if(_0x476f6){const _0x570eac=[_0x25a502(0xc9),_0x25a502(0x10e),'mail',_0x25a502(0xcd),'fax','openchannel',_0x25a502(0xfa)];return Promise[_0x25a502(0xd0)](_0x570eac['map'](async _0x28ff82=>{const _0x3954ba=_0x25a502,_0x15d75f=await _0x476f6[_0x3954ba(0x106)+_[_0x3954ba(0xda)](_0x28ff82)+_0x3954ba(0xf2)]({'attributes':['id',_0x3954ba(0x118)]});return _0x15d75f[_0x3954ba(0x12c)](async _0x25dacf=>{const _0x35a892=_0x3954ba;await _0x25dacf[_0x35a892(0xe8)](_0x2de1a5[_0x35a892(0xe0)]['ids']);if(_0x28ff82===_0x35a892(0xc9)){const _0x18ebb3=await db[_0x35a892(0xe6)][_0x35a892(0x105)]({'where':{'id':_0x2de1a5[_0x35a892(0xe0)]['ids']},'attributes':['id','name',_0x35a892(0x127),_0x35a892(0x107),'interface'],'raw':!![]}),_0x334678=_[_0x35a892(0xf0)](_0x18ebb3,{'online':0x1}),_0x1081dc=_0x334678[_0x35a892(0x12c)](_0x2332a5=>{const _0x237d26=_0x35a892;return db[_0x237d26(0x10f)][_0x237d26(0x11a)]({'membername':_0x2332a5[_0x237d26(0x118)],'UserId':_0x2332a5['id'],'queue_name':_0x25dacf[_0x237d26(0x118)],'VoiceQueueId':_0x25dacf['id'],'interface':_[_0x237d26(0x120)](_0x2332a5[_0x237d26(0x12a)])?util[_0x237d26(0xc7)](_0x237d26(0xe4),_0x2332a5[_0x237d26(0x118)]):_0x2332a5['interface'],'paused':_0x2332a5[_0x237d26(0x107)]||![],'penalty':0x0});});return Promise[_0x35a892(0xd0)](_0x1081dc);}}),_0x476f6;}))['then'](function(){return _0x476f6;});}})[_0x14582f(0x111)](function(_0x48dc69){const _0x2bc0b5=_0x14582f;if(_0x48dc69)return _0x48dc69['addAgents'](_0x2de1a5[_0x2bc0b5(0xe0)][_0x2bc0b5(0xdb)],{'through':_['omit'](_0x2de1a5[_0x2bc0b5(0xe0)],[_0x2bc0b5(0xdb),'id'])})['then'](function(_0x37a68d){const _0x446be7=_0x2bc0b5;for(let _0x8c1e51=0x0;_0x8c1e51<_0x2de1a5[_0x446be7(0xe0)][_0x446be7(0xdb)][_0x446be7(0x108)];_0x8c1e51+=0x1){socket['emit']('userTeam:save',{'UserId':_0x2de1a5['body'][_0x446be7(0xdb)][_0x8c1e51],'TeamId':_0x2de1a5[_0x446be7(0xea)]['id']});}return _0x37a68d;});})['then'](respondWithResult(_0x421bd0,null))[_0x14582f(0xde)](handleError(_0x421bd0,null));},exports['removeAgents']=function(_0x3426a0,_0x67418a){const _0x144266=a749_0x4c0e92;return db[_0x144266(0xf7)]['findOne']({'where':{'id':_0x3426a0[_0x144266(0xea)]['id']}})[_0x144266(0x111)](handleEntityNotFound(_0x67418a,null))[_0x144266(0x111)](function(_0x44b0ca){const _0x485fcb=_0x144266;if(_0x44b0ca){const _0x34f8e7=['voice',_0x485fcb(0x10e),_0x485fcb(0xf1),_0x485fcb(0xcd),_0x485fcb(0xff),_0x485fcb(0xf4),_0x485fcb(0xfa)];return Promise[_0x485fcb(0xd0)](_0x34f8e7[_0x485fcb(0x12c)](async _0x552007=>{const _0x2e8c17=_0x485fcb,_0x25c363=await _0x44b0ca[_0x2e8c17(0x106)+_[_0x2e8c17(0xda)](_0x552007)+_0x2e8c17(0xf2)]({'attributes':['id',_0x2e8c17(0x118)]});return _0x25c363[_0x2e8c17(0x12c)](async _0x4ad671=>{const _0x121d06=_0x2e8c17;await _0x4ad671[_0x121d06(0xe7)](_0x3426a0[_0x121d06(0x110)]['ids']),_0x552007===_0x121d06(0xc9)&&await db[_0x121d06(0x10f)][_0x121d06(0xd7)]({'where':{'VoiceQueueId':_0x4ad671['id'],'UserId':_0x3426a0[_0x121d06(0x110)][_0x121d06(0xdb)]}});}),_0x44b0ca;}))['then'](function(){return _0x44b0ca;});}})[_0x144266(0x111)](function(_0xa19424){const _0x3dd053=_0x144266;if(_0xa19424)return _0xa19424[_0x3dd053(0xe7)](_0x3426a0['query']['ids'])[_0x3dd053(0x111)](function(){const _0x1ef612=_0x3dd053;if(_[_0x1ef612(0xed)](_0x3426a0[_0x1ef612(0x110)][_0x1ef612(0xdb)]))for(let _0x71bb98=0x0;_0x71bb98<_0x3426a0[_0x1ef612(0x110)][_0x1ef612(0xdb)][_0x1ef612(0x108)];_0x71bb98+=0x1){socket[_0x1ef612(0x113)]('userTeam:remove',{'UserId':Number(_0x3426a0[_0x1ef612(0x110)][_0x1ef612(0xdb)][_0x71bb98]),'TeamId':Number(_0x3426a0[_0x1ef612(0xea)]['id'])});}else socket[_0x1ef612(0x113)](_0x1ef612(0xd8),{'UserId':Number(_0x3426a0['query'][_0x1ef612(0xdb)]),'TeamId':Number(_0x3426a0[_0x1ef612(0xea)]['id'])});});})['then'](respondWithStatusCode(_0x67418a,null))[_0x144266(0xde)](handleError(_0x67418a,null));},exports[a749_0x4c0e92(0x126)]=function(_0x824372,_0x156fb8){const _0xb1df74=a749_0x4c0e92;let _0x900714={};const _0x1c2d7e={};let _0x4094ef,_0x47f015;return db['Team'][_0xb1df74(0x11b)]({'where':{'id':_0x824372[_0xb1df74(0xea)]['id']}})[_0xb1df74(0x111)](handleEntityNotFound(_0x156fb8,null))['then'](function(_0x2e99a3){const _0x2aeff5=_0xb1df74;if(_0x2e99a3)return _0x4094ef=_0x2e99a3,_0x1c2d7e['model']=_[_0x2aeff5(0xf9)](db[_0x2aeff5(0xe6)][_0x2aeff5(0xd6)]),_0x1c2d7e[_0x2aeff5(0x110)]=_[_0x2aeff5(0xf9)](_0x824372[_0x2aeff5(0x110)]),_0x1c2d7e[_0x2aeff5(0xe2)]=_[_0x2aeff5(0x114)](_0x1c2d7e[_0x2aeff5(0x102)],_0x1c2d7e[_0x2aeff5(0x110)]),_0x900714[_0x2aeff5(0xe9)]=_[_0x2aeff5(0x114)](_0x1c2d7e[_0x2aeff5(0x102)],qs[_0x2aeff5(0xca)](_0x824372[_0x2aeff5(0x110)]['fields'])),_0x900714[_0x2aeff5(0xe9)]=_0x900714[_0x2aeff5(0xe9)][_0x2aeff5(0x108)]?_0x900714[_0x2aeff5(0xe9)]:_0x1c2d7e[_0x2aeff5(0x102)],_0x900714[_0x2aeff5(0xd1)]=qs['sort'](_0x824372['query'][_0x2aeff5(0xfd)]),_0x900714[_0x2aeff5(0x12b)]=qs[_0x2aeff5(0xe2)](_[_0x2aeff5(0xd4)](_0x824372[_0x2aeff5(0x110)],_0x1c2d7e[_0x2aeff5(0xe2)])),_0x824372[_0x2aeff5(0x110)][_0x2aeff5(0xf0)]&&(_0x900714[_0x2aeff5(0x12b)]=_[_0x2aeff5(0xe1)](_0x900714[_0x2aeff5(0x12b)],{[Op['or']]:_[_0x2aeff5(0x12c)](_0x900714[_0x2aeff5(0xe9)],function(_0x3262d2){const _0x2393f6=_0x2aeff5,_0x4ff9e6={};return _0x4ff9e6[_0x3262d2]={[Op[_0x2393f6(0x125)]]:'%'+_0x824372[_0x2393f6(0x110)][_0x2393f6(0xf0)]+'%'},_0x4ff9e6;})})),_0x900714=_[_0x2aeff5(0xe1)]({},_0x900714,_0x824372[_0x2aeff5(0x104)]),_0x4094ef[_0x2aeff5(0x126)](_0x900714);})[_0xb1df74(0x111)](function(_0x1db1b0){const _0x34f6f4=_0xb1df74;if(_0x1db1b0)return _0x47f015=_0x1db1b0[_0x34f6f4(0x108)],typeof _0x824372[_0x34f6f4(0x110)][_0x34f6f4(0xf3)]===_0x34f6f4(0x112)&&(_0x900714[_0x34f6f4(0xf8)]=qs[_0x34f6f4(0xf8)](_0x824372['query'][_0x34f6f4(0xf8)]),_0x900714[_0x34f6f4(0xd5)]=qs[_0x34f6f4(0xd5)](_0x824372['query'][_0x34f6f4(0xd5)])),_0x4094ef['getAgents'](_0x900714);})[_0xb1df74(0x111)](function(_0x561f47){if(_0x561f47)return _0x561f47?{'count':_0x47f015,'rows':_0x561f47}:null;})[_0xb1df74(0x111)](respondWithResult(_0x156fb8,null))[_0xb1df74(0xde)](handleError(_0x156fb8,null));}; \ No newline at end of file diff --git a/server/api/team/team.events.js b/server/api/team/team.events.js index 6c0836e..d08120f 100644 --- a/server/api/team/team.events.js +++ b/server/api/team/team.events.js @@ -1 +1 @@ -const a750_0x1e26=['save','exports','update','undefined','addHook','emit','remove','setMaxListeners','Team'];(function(_0x208873,_0x531f17){const _0x1e26df=function(_0x5ce740){while(--_0x5ce740){_0x208873['push'](_0x208873['shift']());}};_0x1e26df(++_0x531f17);}(a750_0x1e26,0x1d9));const a750_0x5ce7=function(_0x208873,_0x531f17){_0x208873=_0x208873-0xe6;let _0x1e26df=a750_0x1e26[_0x208873];return _0x1e26df;};const a750_0x47bb1a=a750_0x5ce7;'use strict';const EventEmitter=require('events'),Team=require('../../mysqldb')['db'][a750_0x47bb1a(0xe9)],TeamEvents=new EventEmitter();TeamEvents[a750_0x47bb1a(0xe8)](0x0);const events={'afterCreate':a750_0x47bb1a(0xea),'afterUpdate':a750_0x47bb1a(0xec),'afterDestroy':a750_0x47bb1a(0xe7)};function emitEvent(_0x563f5e){return function(_0x5ce86a){const _0x1e206e=a750_0x5ce7;TeamEvents[_0x1e206e(0xe6)](_0x563f5e+':'+_0x5ce86a['id'],_0x5ce86a),TeamEvents[_0x1e206e(0xe6)](_0x563f5e,_0x5ce86a);};}for(const e in events){if(typeof events[e]!==a750_0x47bb1a(0xed)){const event=events[e];Team[a750_0x47bb1a(0xee)](e,emitEvent(event));}}module[a750_0x47bb1a(0xeb)]=TeamEvents; \ No newline at end of file +const a750_0x2c02=['events','exports','update','remove','Team','setMaxListeners','addHook','emit'];(function(_0x160b4a,_0x45caa8){const _0x2c02c9=function(_0x4be6ff){while(--_0x4be6ff){_0x160b4a['push'](_0x160b4a['shift']());}};_0x2c02c9(++_0x45caa8);}(a750_0x2c02,0x17c));const a750_0x4be6=function(_0x160b4a,_0x45caa8){_0x160b4a=_0x160b4a-0x112;let _0x2c02c9=a750_0x2c02[_0x160b4a];return _0x2c02c9;};const a750_0x3930c4=a750_0x4be6;'use strict';const EventEmitter=require(a750_0x3930c4(0x116)),Team=require('../../mysqldb')['db'][a750_0x3930c4(0x112)],TeamEvents=new EventEmitter();TeamEvents[a750_0x3930c4(0x113)](0x0);const events={'afterCreate':'save','afterUpdate':a750_0x3930c4(0x118),'afterDestroy':a750_0x3930c4(0x119)};function emitEvent(_0x2ab4f3){return function(_0xbb4f53){const _0x156717=a750_0x4be6;TeamEvents[_0x156717(0x115)](_0x2ab4f3+':'+_0xbb4f53['id'],_0xbb4f53),TeamEvents['emit'](_0x2ab4f3,_0xbb4f53);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];Team[a750_0x3930c4(0x114)](e,emitEvent(event));}}module[a750_0x3930c4(0x117)]=TeamEvents; \ No newline at end of file diff --git a/server/api/team/team.model.js b/server/api/team/team.model.js index 6046e96..64f3df8 100644 --- a/server/api/team/team.model.js +++ b/server/api/team/team.model.js @@ -1 +1 @@ -const a751_0x818f=['Team','sequelize','exports'];(function(_0x50b6d2,_0x2ae891){const _0x818f8f=function(_0xa324d5){while(--_0xa324d5){_0x50b6d2['push'](_0x50b6d2['shift']());}};_0x818f8f(++_0x2ae891);}(a751_0x818f,0x162));const a751_0xa324=function(_0x50b6d2,_0x2ae891){_0x50b6d2=_0x50b6d2-0x77;let _0x818f8f=a751_0x818f[_0x50b6d2];return _0x818f8f;};const a751_0x37986b=a751_0xa324;'use strict';const {Model}=require(a751_0x37986b(0x78)),{attributes}=require('./team.attributes'),{options}=require('./team.options');class Team extends Model{}function init(_0x4cf03b,_0x41b98c){const _0x3f71c9=options(_0x4cf03b),_0x2a3be0=typeof _0x41b98c==='function'?_0x41b98c(_0x3f71c9):_0x3f71c9;return Team['init'](attributes,_0x2a3be0),Team;}module[a751_0x37986b(0x79)][a751_0x37986b(0x77)]=Team,module[a751_0x37986b(0x79)]['init']=init; \ No newline at end of file +const a751_0x2709=['init','sequelize','Team','./team.options','./team.attributes','exports','function'];(function(_0x381b8c,_0x4756ee){const _0x2709d2=function(_0x10e0bb){while(--_0x10e0bb){_0x381b8c['push'](_0x381b8c['shift']());}};_0x2709d2(++_0x4756ee);}(a751_0x2709,0xf1));const a751_0x10e0=function(_0x381b8c,_0x4756ee){_0x381b8c=_0x381b8c-0x1b8;let _0x2709d2=a751_0x2709[_0x381b8c];return _0x2709d2;};const a751_0x52c71d=a751_0x10e0;'use strict';const {Model}=require(a751_0x52c71d(0x1bd)),{attributes}=require(a751_0x52c71d(0x1b9)),{options}=require(a751_0x52c71d(0x1b8));class Team extends Model{}function init(_0x49ecac,_0x50c202){const _0x1fa4f1=a751_0x52c71d,_0x36597f=options(_0x49ecac),_0x34804f=typeof _0x50c202===_0x1fa4f1(0x1bb)?_0x50c202(_0x36597f):_0x36597f;return Team[_0x1fa4f1(0x1bc)](attributes,_0x34804f),Team;}module[a751_0x52c71d(0x1ba)][a751_0x52c71d(0x1be)]=Team,module[a751_0x52c71d(0x1ba)]['init']=init; \ No newline at end of file diff --git a/server/api/team/team.options.js b/server/api/team/team.options.js index 8f89026..6ca5d1f 100644 --- a/server/api/team/team.options.js +++ b/server/api/team/team.options.js @@ -1 +1 @@ -var a752_0x50ed=['exports','teams','options'];(function(_0x3f40a2,_0x5652f4){var _0x50ed45=function(_0x50c16a){while(--_0x50c16a){_0x3f40a2['push'](_0x3f40a2['shift']());}};_0x50ed45(++_0x5652f4);}(a752_0x50ed,0x6e));var a752_0x50c1=function(_0x3f40a2,_0x5652f4){_0x3f40a2=_0x3f40a2-0x8c;var _0x50ed45=a752_0x50ed[_0x3f40a2];return _0x50ed45;};var a752_0x40a319=a752_0x50c1;function options(_0x44d842){var _0x3600ff=a752_0x50c1;return{'sequelize':_0x44d842,'tableName':_0x3600ff(0x8e),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a752_0x40a319(0x8d)][a752_0x40a319(0x8c)]=options; \ No newline at end of file +var a752_0x3cb2=['exports','options'];(function(_0x481093,_0x253809){var _0x3cb23f=function(_0x30b117){while(--_0x30b117){_0x481093['push'](_0x481093['shift']());}};_0x3cb23f(++_0x253809);}(a752_0x3cb2,0x120));var a752_0x30b1=function(_0x481093,_0x253809){_0x481093=_0x481093-0x85;var _0x3cb23f=a752_0x3cb2[_0x481093];return _0x3cb23f;};var a752_0x2ca4b7=a752_0x30b1;function options(_0x57246c){return{'sequelize':_0x57246c,'tableName':'teams','paranoid':![],'indexes':[],'timestamps':!![]};}module[a752_0x2ca4b7(0x85)][a752_0x2ca4b7(0x86)]=options; \ No newline at end of file diff --git a/server/api/team/team.rpc.js b/server/api/team/team.rpc.js index 9710f80..a061749 100644 --- a/server/api/team/team.rpc.js +++ b/server/api/team/team.rpc.js @@ -1 +1 @@ -const a753_0x21d6=['../../rediscache','register','./team.socket'];(function(_0x525277,_0x31e736){const _0x21d605=function(_0x4562c4){while(--_0x4562c4){_0x525277['push'](_0x525277['shift']());}};_0x21d605(++_0x31e736);}(a753_0x21d6,0x1c4));const a753_0x4562=function(_0x525277,_0x31e736){_0x525277=_0x525277-0xc8;let _0x21d605=a753_0x21d6[_0x525277];return _0x21d605;};const a753_0x376013=a753_0x4562;'use strict';const {getSocket}=require(a753_0x376013(0xc9)),socket=getSocket();require(a753_0x376013(0xc8))[a753_0x376013(0xca)](socket); \ No newline at end of file +const a753_0x5820=['register','../../rediscache','./team.socket'];(function(_0x1b5c40,_0x2b1024){const _0x5820fa=function(_0x4cfc87){while(--_0x4cfc87){_0x1b5c40['push'](_0x1b5c40['shift']());}};_0x5820fa(++_0x2b1024);}(a753_0x5820,0x76));const a753_0x4cfc=function(_0x1b5c40,_0x2b1024){_0x1b5c40=_0x1b5c40-0x1ab;let _0x5820fa=a753_0x5820[_0x1b5c40];return _0x5820fa;};const a753_0x5eddbd=a753_0x4cfc;'use strict';const {getSocket}=require(a753_0x5eddbd(0x1ab)),socket=getSocket();require(a753_0x5eddbd(0x1ac))[a753_0x5eddbd(0x1ad)](socket); \ No newline at end of file diff --git a/server/api/team/team.socket.js b/server/api/team/team.socket.js index 25d4537..841a8e3 100644 --- a/server/api/team/team.socket.js +++ b/server/api/team/team.socket.js @@ -1 +1 @@ -const a754_0x4e4d=['save','update','./team.events','remove','length','emit','register'];(function(_0x1b688c,_0xe5c19e){const _0x4e4d23=function(_0xbbbc55){while(--_0xbbbc55){_0x1b688c['push'](_0x1b688c['shift']());}};_0x4e4d23(++_0xe5c19e);}(a754_0x4e4d,0x1bc));const a754_0xbbbc=function(_0x1b688c,_0xe5c19e){_0x1b688c=_0x1b688c-0x75;let _0x4e4d23=a754_0x4e4d[_0x1b688c];return _0x4e4d23;};const a754_0x4ec597=a754_0xbbbc;'use strict';const TeamEvents=require(a754_0x4ec597(0x7b)),events=[a754_0x4ec597(0x79),a754_0x4ec597(0x75),a754_0x4ec597(0x7a)];function createListener(_0x2a822f,_0x55f289){return function(_0x23cee1){const _0x3317c9=a754_0xbbbc;_0x55f289[_0x3317c9(0x77)](_0x2a822f,_0x23cee1);};}exports[a754_0x4ec597(0x78)]=function(_0x12e29a){const _0x49fc1d=a754_0x4ec597;for(let _0x5b1567=0x0,_0x508eca=events[_0x49fc1d(0x76)];_0x5b1567<_0x508eca;_0x5b1567++){const _0x345d91=events[_0x5b1567],_0x9752d1=createListener('team:'+_0x345d91,_0x12e29a);TeamEvents['on'](_0x345d91,_0x9752d1);}}; \ No newline at end of file +const a754_0x2d54=['emit','./team.events','save','register'];(function(_0x5d3077,_0x81648e){const _0x2d54d2=function(_0x500680){while(--_0x500680){_0x5d3077['push'](_0x5d3077['shift']());}};_0x2d54d2(++_0x81648e);}(a754_0x2d54,0x1ac));const a754_0x5006=function(_0x5d3077,_0x81648e){_0x5d3077=_0x5d3077-0x1c3;let _0x2d54d2=a754_0x2d54[_0x5d3077];return _0x2d54d2;};const a754_0x23d2e7=a754_0x5006;'use strict';const TeamEvents=require(a754_0x23d2e7(0x1c4)),events=[a754_0x23d2e7(0x1c5),'remove','update'];function createListener(_0x1a575b,_0x3ee2c9){return function(_0xeadac3){const _0x568269=a754_0x5006;_0x3ee2c9[_0x568269(0x1c3)](_0x1a575b,_0xeadac3);};}exports[a754_0x23d2e7(0x1c6)]=function(_0x515687){for(let _0x343602=0x0,_0x2b2799=events['length'];_0x343602<_0x2b2799;_0x343602++){const _0x1d1208=events[_0x343602],_0x27bba9=createListener('team:'+_0x1d1208,_0x515687);TeamEvents['on'](_0x1d1208,_0x27bba9);}}; \ No newline at end of file diff --git a/server/api/template/index.js b/server/api/template/index.js index ca9f7cf..706b1a5 100644 --- a/server/api/template/index.js +++ b/server/api/template/index.js @@ -1 +1 @@ -const a755_0x7dd0=['isAuthenticated','update','/:id','Router','express','post','../../components/auth/service','get','destroy','put','exports','index','./template.controller','show'];(function(_0xa9fdf1,_0x28d6d7){const _0x7dd0da=function(_0x18fb29){while(--_0x18fb29){_0xa9fdf1['push'](_0xa9fdf1['shift']());}};_0x7dd0da(++_0x28d6d7);}(a755_0x7dd0,0x190));const a755_0x18fb=function(_0xa9fdf1,_0x28d6d7){_0xa9fdf1=_0xa9fdf1-0xbf;let _0x7dd0da=a755_0x7dd0[_0xa9fdf1];return _0x7dd0da;};const a755_0x5287b2=a755_0x18fb;'use strict';const express=require(a755_0x5287b2(0xc9)),router=express[a755_0x5287b2(0xc8)](),auth=require(a755_0x5287b2(0xcb)),controller=require(a755_0x5287b2(0xc3));router[a755_0x5287b2(0xcc)]('/',auth['isAuthenticated'](),controller[a755_0x5287b2(0xc2)]),router[a755_0x5287b2(0xcc)](a755_0x5287b2(0xc7),auth['isAuthenticated'](),controller[a755_0x5287b2(0xc4)]),router[a755_0x5287b2(0xca)]('/',auth[a755_0x5287b2(0xc5)](),controller['create']),router[a755_0x5287b2(0xc0)](a755_0x5287b2(0xc7),auth[a755_0x5287b2(0xc5)](),controller[a755_0x5287b2(0xc6)]),router['delete'](a755_0x5287b2(0xc7),auth[a755_0x5287b2(0xc5)](),controller[a755_0x5287b2(0xbf)]),module[a755_0x5287b2(0xc1)]=router; \ No newline at end of file +const a755_0xef02=['create','exports','put','express','post','../../components/auth/service','isAuthenticated','/:id','Router','get','show','delete'];(function(_0x385c89,_0x29340b){const _0xef02c0=function(_0x2b6418){while(--_0x2b6418){_0x385c89['push'](_0x385c89['shift']());}};_0xef02c0(++_0x29340b);}(a755_0xef02,0x16c));const a755_0x2b64=function(_0x385c89,_0x29340b){_0x385c89=_0x385c89-0x1b5;let _0xef02c0=a755_0xef02[_0x385c89];return _0xef02c0;};const a755_0x4f1bee=a755_0x2b64;'use strict';const express=require(a755_0x4f1bee(0x1c0)),router=express[a755_0x4f1bee(0x1b9)](),auth=require(a755_0x4f1bee(0x1b6)),controller=require('./template.controller');router[a755_0x4f1bee(0x1ba)]('/',auth['isAuthenticated'](),controller['index']),router[a755_0x4f1bee(0x1ba)](a755_0x4f1bee(0x1b8),auth['isAuthenticated'](),controller[a755_0x4f1bee(0x1bb)]),router[a755_0x4f1bee(0x1b5)]('/',auth[a755_0x4f1bee(0x1b7)](),controller[a755_0x4f1bee(0x1bd)]),router[a755_0x4f1bee(0x1bf)]('/:id',auth[a755_0x4f1bee(0x1b7)](),controller['update']),router[a755_0x4f1bee(0x1bc)]('/:id',auth[a755_0x4f1bee(0x1b7)](),controller['destroy']),module[a755_0x4f1bee(0x1be)]=router; \ No newline at end of file diff --git a/server/api/template/template.attributes.js b/server/api/template/template.attributes.js index d607f16..6a2d92d 100644 --- a/server/api/template/template.attributes.js +++ b/server/api/template/template.attributes.js @@ -1 +1 @@ -const a756_0x2089=['attributes','TEXT','STRING'];(function(_0x5ed266,_0x5f05b7){const _0x2089bf=function(_0x54d1a9){while(--_0x54d1a9){_0x5ed266['push'](_0x5ed266['shift']());}};_0x2089bf(++_0x5f05b7);}(a756_0x2089,0x1c9));const a756_0x54d1=function(_0x5ed266,_0x5f05b7){_0x5ed266=_0x5ed266-0x13f;let _0x2089bf=a756_0x2089[_0x5ed266];return _0x2089bf;};const a756_0x219849=a756_0x54d1;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a756_0x219849(0x140)]},'description':{'type':DataTypes[a756_0x219849(0x140)]},'html':{'type':DataTypes[a756_0x219849(0x13f)]}};module['exports'][a756_0x219849(0x141)]=attributes; \ No newline at end of file +const a756_0x52ee=['sequelize','STRING','TEXT','exports'];(function(_0x2327d0,_0x1c72e6){const _0x52eed1=function(_0x3fdec2){while(--_0x3fdec2){_0x2327d0['push'](_0x2327d0['shift']());}};_0x52eed1(++_0x1c72e6);}(a756_0x52ee,0x194));const a756_0x3fde=function(_0x2327d0,_0x1c72e6){_0x2327d0=_0x2327d0-0x191;let _0x52eed1=a756_0x52ee[_0x2327d0];return _0x52eed1;};const a756_0x9090dd=a756_0x3fde;'use strict';const {DataTypes}=require(a756_0x9090dd(0x191)),attributes={'name':{'type':DataTypes[a756_0x9090dd(0x192)]},'description':{'type':DataTypes['STRING']},'html':{'type':DataTypes[a756_0x9090dd(0x193)]}};module[a756_0x9090dd(0x194)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/template/template.controller.js b/server/api/template/template.controller.js index 1ad6896..747f5a6 100644 --- a/server/api/template/template.controller.js +++ b/server/api/template/template.controller.js @@ -1 +1 @@ -const a757_0x58d8=['params','map','fields','sequelize','Unable\x20to\x20retrieve\x20the\x20current\x20user','name','create','count','index','findAll','order','VIRTUAL','status','merge','type','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','update','end','length','nolimit','where','json','error','keys','intersection','filters','send','limit','filter','destroy','../../components/parsers/qs','sort','catch','includeAll','findOne','user','role','set','body','options','Templates','stack','UserProfileResource','key','get','attributes','UserProfileSection','then','rows','query','userProfileId','Template','offset','model','include','rawAttributes','autoAssociation'];(function(_0x3bcbc2,_0x1252b4){const _0x58d827=function(_0x745a51){while(--_0x745a51){_0x3bcbc2['push'](_0x3bcbc2['shift']());}};_0x58d827(++_0x1252b4);}(a757_0x58d8,0x197));const a757_0x745a=function(_0x3bcbc2,_0x1252b4){_0x3bcbc2=_0x3bcbc2-0x13a;let _0x58d827=a757_0x58d8[_0x3bcbc2];return _0x58d827;};const a757_0x485b9d=a757_0x745a;'use strict';const _=require('lodash'),qs=require(a757_0x485b9d(0x150)),logger=require('../../config/logger')('api'),{db}=require('../../mysqldb'),{Op}=require(a757_0x485b9d(0x16e));function respondWithResult(_0x23a3a9,_0x1b45a1){return _0x1b45a1=_0x1b45a1||0xc8,function(_0x4c143b){const _0x415144=a757_0x745a;if(_0x4c143b)return _0x23a3a9[_0x415144(0x13e)](_0x1b45a1)[_0x415144(0x147)](_0x4c143b);};}function respondWithFilteredResult(_0x2d9ba0,_0x315b6b){return function(_0x2ca6a4){const _0x1a7587=a757_0x745a;if(_0x2ca6a4){const _0x768ce6=_0x2ca6a4[_0x1a7587(0x172)],_0x38095c=_0x315b6b[_0x1a7587(0x166)];let _0x56149c=_0x315b6b[_0x1a7587(0x166)]+_0x315b6b[_0x1a7587(0x14d)],_0x44ae89;return _0x56149c>=_0x768ce6?(_0x56149c=_0x768ce6,_0x44ae89=0xc8):_0x44ae89=0xce,_0x2d9ba0['status'](_0x44ae89),_0x2d9ba0[_0x1a7587(0x157)]('Content-Range',_0x38095c+'-'+_0x56149c+'/'+_0x768ce6)[_0x1a7587(0x147)](_0x2ca6a4);}return null;};}function saveUpdates(_0x4ccc2e){return function(_0x50b7a5){const _0x2b4d49=a757_0x745a;if(_0x50b7a5)return _0x50b7a5[_0x2b4d49(0x142)](_0x4ccc2e)[_0x2b4d49(0x161)](function(_0x24eada){return _0x24eada;});return null;};}function removeEntity(_0x59641c){return function(_0x2cc881){const _0x74bc6a=a757_0x745a;if(_0x2cc881)return _0x2cc881[_0x74bc6a(0x14f)]()[_0x74bc6a(0x161)](function(){const _0x581b34=_0x74bc6a,_0x46db9d=_0x2cc881[_0x581b34(0x15e)]({'plain':!![]}),_0x3c802d=_0x581b34(0x15a);return db['UserProfileResource'][_0x581b34(0x14f)]({'where':{'type':_0x3c802d,'resourceId':_0x46db9d['id']}})['then'](function(){return _0x2cc881;});})[_0x74bc6a(0x161)](function(){const _0x173e92=_0x74bc6a;_0x59641c[_0x173e92(0x13e)](0xcc)[_0x173e92(0x143)]();});};}function handleEntityNotFound(_0x9ac1df){return function(_0xbea8f5){return!_0xbea8f5&&_0x9ac1df['sendStatus'](0x194),_0xbea8f5;};}function handleError(_0x2142f4,_0x362009){return _0x362009=_0x362009||0x1f4,function(_0x5e58f4){const _0x562bc6=a757_0x745a;logger['error'](_0x5e58f4[_0x562bc6(0x15b)]),_0x5e58f4[_0x562bc6(0x170)]&&delete _0x5e58f4[_0x562bc6(0x170)],_0x2142f4[_0x562bc6(0x13e)](_0x362009)[_0x562bc6(0x14c)](_0x5e58f4);};}exports[a757_0x485b9d(0x13a)]=function(_0x3dd2d8,_0x5b1469){const _0x26ffdf=a757_0x485b9d;let _0x302c94={};const _0x5ed77d={},_0x491fd7={'count':0x0,'rows':[]},_0x4b3955=_['map'](db[_0x26ffdf(0x165)][_0x26ffdf(0x169)],function(_0x141948){const _0x2e9fc0=_0x26ffdf;return{'name':_0x141948['fieldName'],'type':_0x141948[_0x2e9fc0(0x140)][_0x2e9fc0(0x15d)]};});_0x5ed77d[_0x26ffdf(0x167)]=_[_0x26ffdf(0x16c)](_0x4b3955,_0x26ffdf(0x170)),_0x5ed77d['query']=_[_0x26ffdf(0x149)](_0x3dd2d8['query']),_0x5ed77d[_0x26ffdf(0x14b)]=_[_0x26ffdf(0x14a)](_0x5ed77d[_0x26ffdf(0x167)],_0x5ed77d[_0x26ffdf(0x163)]),_0x302c94[_0x26ffdf(0x15f)]=_[_0x26ffdf(0x14a)](_0x5ed77d[_0x26ffdf(0x167)],qs['fields'](_0x3dd2d8['query'][_0x26ffdf(0x16d)])),_0x302c94[_0x26ffdf(0x15f)]=_0x302c94[_0x26ffdf(0x15f)][_0x26ffdf(0x144)]?_0x302c94[_0x26ffdf(0x15f)]:_0x5ed77d[_0x26ffdf(0x167)];typeof _0x3dd2d8[_0x26ffdf(0x163)][_0x26ffdf(0x145)]==='undefined'&&(_0x302c94[_0x26ffdf(0x14d)]=qs[_0x26ffdf(0x14d)](_0x3dd2d8[_0x26ffdf(0x163)][_0x26ffdf(0x14d)]),_0x302c94[_0x26ffdf(0x166)]=qs['offset'](_0x3dd2d8[_0x26ffdf(0x163)][_0x26ffdf(0x166)]));_0x302c94[_0x26ffdf(0x13c)]=qs[_0x26ffdf(0x151)](_0x3dd2d8[_0x26ffdf(0x163)][_0x26ffdf(0x151)]),_0x302c94['where']=qs[_0x26ffdf(0x14b)](_['pick'](_0x3dd2d8['query'],_0x5ed77d[_0x26ffdf(0x14b)]),_0x4b3955);_0x3dd2d8[_0x26ffdf(0x163)][_0x26ffdf(0x14e)]&&(_0x302c94[_0x26ffdf(0x146)]=_[_0x26ffdf(0x13f)](_0x302c94['where'],{[Op['or']]:_[_0x26ffdf(0x16c)](_0x4b3955,function(_0x1d72ca){const _0x41fcb8=_0x26ffdf;if(_0x1d72ca[_0x41fcb8(0x140)]!==_0x41fcb8(0x13d)){const _0x24c31c={};return _0x24c31c[_0x1d72ca[_0x41fcb8(0x170)]]={[Op['like']]:'%'+_0x3dd2d8[_0x41fcb8(0x163)][_0x41fcb8(0x14e)]+'%'},_0x24c31c;}})}));_0x302c94=_[_0x26ffdf(0x13f)]({},_0x302c94,_0x3dd2d8[_0x26ffdf(0x159)]);const _0x4459d0={'where':_0x302c94[_0x26ffdf(0x146)]};return db[_0x26ffdf(0x165)]['count'](_0x4459d0)[_0x26ffdf(0x161)](function(_0x178e6f){const _0x312a7e=_0x26ffdf;return _0x491fd7[_0x312a7e(0x172)]=_0x178e6f,_0x3dd2d8[_0x312a7e(0x163)][_0x312a7e(0x153)]&&(_0x302c94['include']=[{'all':!![]}]),db[_0x312a7e(0x165)][_0x312a7e(0x13b)](_0x302c94);})[_0x26ffdf(0x161)](function(_0x4c303b){const _0x45b548=_0x26ffdf;return _0x491fd7[_0x45b548(0x162)]=_0x4c303b,_0x491fd7;})['then'](respondWithFilteredResult(_0x5b1469,_0x302c94))[_0x26ffdf(0x152)](handleError(_0x5b1469,null));},exports['show']=function(_0x337cd7,_0xeee369){const _0x4441a5=a757_0x485b9d;let _0x504a68={'raw':!![],'where':{'id':_0x337cd7[_0x4441a5(0x16b)]['id']}};const _0x4cc3f5={};return _0x4cc3f5[_0x4441a5(0x167)]=_[_0x4441a5(0x149)](db[_0x4441a5(0x165)][_0x4441a5(0x169)]),_0x4cc3f5[_0x4441a5(0x163)]=_[_0x4441a5(0x149)](_0x337cd7['query']),_0x4cc3f5[_0x4441a5(0x14b)]=_[_0x4441a5(0x14a)](_0x4cc3f5[_0x4441a5(0x167)],_0x4cc3f5[_0x4441a5(0x163)]),_0x504a68[_0x4441a5(0x15f)]=_[_0x4441a5(0x14a)](_0x4cc3f5[_0x4441a5(0x167)],qs['fields'](_0x337cd7['query'][_0x4441a5(0x16d)])),_0x504a68[_0x4441a5(0x15f)]=_0x504a68[_0x4441a5(0x15f)][_0x4441a5(0x144)]?_0x504a68[_0x4441a5(0x15f)]:_0x4cc3f5[_0x4441a5(0x167)],_0x337cd7[_0x4441a5(0x163)]['includeAll']&&(_0x504a68[_0x4441a5(0x168)]=[{'all':!![]}]),_0x504a68=_[_0x4441a5(0x13f)]({},_0x504a68,_0x337cd7[_0x4441a5(0x159)]),db[_0x4441a5(0x165)]['findOne'](_0x504a68)[_0x4441a5(0x161)](handleEntityNotFound(_0xeee369,null))['then'](respondWithResult(_0xeee369,null))['catch'](handleError(_0xeee369,null));},exports[a757_0x485b9d(0x171)]=function(_0x346c8d,_0x19dedd){const _0x406498=a757_0x485b9d;return db[_0x406498(0x165)]['create'](_0x346c8d[_0x406498(0x158)],{})[_0x406498(0x161)](function(_0x1c33b5){const _0x36dd10=_0x406498,_0x11f488=_0x346c8d[_0x36dd10(0x155)][_0x36dd10(0x15e)]({'plain':!![]});if(!_0x11f488)throw new Error(_0x36dd10(0x16f));if(_0x11f488[_0x36dd10(0x156)]===_0x36dd10(0x155)){const _0x52cc5f=_0x1c33b5['get']({'plain':!![]}),_0x487646=_0x36dd10(0x15a);return db[_0x36dd10(0x160)]['findOne']({'where':{'name':_0x487646,'userProfileId':_0x11f488[_0x36dd10(0x164)]},'raw':!![]})[_0x36dd10(0x161)](function(_0xc188b1){const _0x1abdb9=_0x36dd10;return _0xc188b1&&_0xc188b1[_0x1abdb9(0x16a)]===0x0?db[_0x1abdb9(0x15c)][_0x1abdb9(0x171)]({'name':_0x52cc5f[_0x1abdb9(0x170)],'resourceId':_0x52cc5f['id'],'type':_0xc188b1[_0x1abdb9(0x170)],'sectionId':_0xc188b1['id']},{})[_0x1abdb9(0x161)](function(){return _0x1c33b5;}):_0x1c33b5;})[_0x36dd10(0x152)](function(_0x30fb1a){const _0x3278b0=_0x36dd10;logger[_0x3278b0(0x148)](_0x3278b0(0x141),_0x30fb1a);throw _0x30fb1a;});}return _0x1c33b5;})[_0x406498(0x161)](respondWithResult(_0x19dedd,0xc9))[_0x406498(0x152)](handleError(_0x19dedd,null));},exports[a757_0x485b9d(0x142)]=function(_0x581b61,_0x1aadc0){const _0x8b7dd2=a757_0x485b9d;return _0x581b61['body']['id']&&delete _0x581b61[_0x8b7dd2(0x158)]['id'],db[_0x8b7dd2(0x165)][_0x8b7dd2(0x154)]({'where':{'id':_0x581b61[_0x8b7dd2(0x16b)]['id']}})[_0x8b7dd2(0x161)](handleEntityNotFound(_0x1aadc0,null))[_0x8b7dd2(0x161)](saveUpdates(_0x581b61[_0x8b7dd2(0x158)],null))['then'](respondWithResult(_0x1aadc0,null))[_0x8b7dd2(0x152)](handleError(_0x1aadc0,null));},exports[a757_0x485b9d(0x14f)]=function(_0x4cf841,_0x782ed7){const _0x101fc6=a757_0x485b9d;return db[_0x101fc6(0x165)][_0x101fc6(0x154)]({'where':{'id':_0x4cf841[_0x101fc6(0x16b)]['id']}})[_0x101fc6(0x161)](handleEntityNotFound(_0x782ed7,null))[_0x101fc6(0x161)](removeEntity(_0x782ed7,null))[_0x101fc6(0x152)](handleError(_0x782ed7,null));}; \ No newline at end of file +const a757_0x272d=['api','show','name','params','findOne','includeAll','body','include','../../components/parsers/qs','catch','set','then','length','autoAssociation','rows','update','type','create','../../mysqldb','../../config/logger','merge','Template','end','get','limit','options','intersection','fieldName','status','pick','destroy','offset','error','where','filters','rawAttributes','json','sort','user','attributes','like','Templates','userProfileId','key','sequelize','count','index','Content-Range','sendStatus','model','query','fields','UserProfileResource','map','UserProfileSection','send','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','filter','findAll'];(function(_0x1ef158,_0x1d7282){const _0x272d68=function(_0x1d7d53){while(--_0x1d7d53){_0x1ef158['push'](_0x1ef158['shift']());}};_0x272d68(++_0x1d7282);}(a757_0x272d,0x1e5));const a757_0x1d7d=function(_0x1ef158,_0x1d7282){_0x1ef158=_0x1ef158-0x1d0;let _0x272d68=a757_0x272d[_0x1ef158];return _0x272d68;};const a757_0x2c0dba=a757_0x1d7d;'use strict';const _=require('lodash'),qs=require(a757_0x2c0dba(0x206)),logger=require(a757_0x2c0dba(0x1d6))(a757_0x2c0dba(0x1fe)),{db}=require(a757_0x2c0dba(0x1d5)),{Op}=require(a757_0x2c0dba(0x1ef));function respondWithResult(_0x59b329,_0x38ce2f){return _0x38ce2f=_0x38ce2f||0xc8,function(_0x117b3d){const _0x5c1ff4=a757_0x1d7d;if(_0x117b3d)return _0x59b329[_0x5c1ff4(0x1df)](_0x38ce2f)[_0x5c1ff4(0x1e7)](_0x117b3d);};}function respondWithFilteredResult(_0x5d54da,_0xdafd3e){return function(_0x52dab0){const _0x2eae2b=a757_0x1d7d;if(_0x52dab0){const _0x68de46=_0x52dab0[_0x2eae2b(0x1f0)],_0x24481a=_0xdafd3e[_0x2eae2b(0x1e2)];let _0x35d44d=_0xdafd3e['offset']+_0xdafd3e[_0x2eae2b(0x1db)],_0xf5c012;return _0x35d44d>=_0x68de46?(_0x35d44d=_0x68de46,_0xf5c012=0xc8):_0xf5c012=0xce,_0x5d54da[_0x2eae2b(0x1df)](_0xf5c012),_0x5d54da[_0x2eae2b(0x208)](_0x2eae2b(0x1f2),_0x24481a+'-'+_0x35d44d+'/'+_0x68de46)[_0x2eae2b(0x1e7)](_0x52dab0);}return null;};}function saveUpdates(_0x3190dc){return function(_0x2128a2){const _0x43b22a=a757_0x1d7d;if(_0x2128a2)return _0x2128a2[_0x43b22a(0x1d2)](_0x3190dc)[_0x43b22a(0x209)](function(_0x581890){return _0x581890;});return null;};}function removeEntity(_0x22622e){return function(_0x4cc47c){const _0x7d345c=a757_0x1d7d;if(_0x4cc47c)return _0x4cc47c[_0x7d345c(0x1e1)]()[_0x7d345c(0x209)](function(){const _0xc6003d=_0x7d345c,_0x3d7acc=_0x4cc47c['get']({'plain':!![]}),_0x4e3257=_0xc6003d(0x1ec);return db[_0xc6003d(0x1f7)][_0xc6003d(0x1e1)]({'where':{'type':_0x4e3257,'resourceId':_0x3d7acc['id']}})[_0xc6003d(0x209)](function(){return _0x4cc47c;});})[_0x7d345c(0x209)](function(){const _0x5060ff=_0x7d345c;_0x22622e[_0x5060ff(0x1df)](0xcc)[_0x5060ff(0x1d9)]();});};}function handleEntityNotFound(_0x38a177){return function(_0x4b5b67){const _0x4a2f4e=a757_0x1d7d;return!_0x4b5b67&&_0x38a177[_0x4a2f4e(0x1f3)](0x194),_0x4b5b67;};}function handleError(_0x5d436d,_0x62031f){return _0x62031f=_0x62031f||0x1f4,function(_0xfd22e8){const _0x189e1b=a757_0x1d7d;logger[_0x189e1b(0x1e3)](_0xfd22e8['stack']),_0xfd22e8[_0x189e1b(0x200)]&&delete _0xfd22e8[_0x189e1b(0x200)],_0x5d436d[_0x189e1b(0x1df)](_0x62031f)[_0x189e1b(0x1fa)](_0xfd22e8);};}exports[a757_0x2c0dba(0x1f1)]=function(_0x131f73,_0x452506){const _0x39539c=a757_0x2c0dba;let _0x502328={};const _0x484198={},_0x11190f={'count':0x0,'rows':[]},_0x4e1f7a=_[_0x39539c(0x1f8)](db[_0x39539c(0x1d8)][_0x39539c(0x1e6)],function(_0x5626a2){const _0x5262ed=_0x39539c;return{'name':_0x5626a2[_0x5262ed(0x1de)],'type':_0x5626a2[_0x5262ed(0x1d3)][_0x5262ed(0x1ee)]};});_0x484198[_0x39539c(0x1f4)]=_[_0x39539c(0x1f8)](_0x4e1f7a,_0x39539c(0x200)),_0x484198[_0x39539c(0x1f5)]=_['keys'](_0x131f73[_0x39539c(0x1f5)]),_0x484198[_0x39539c(0x1e5)]=_['intersection'](_0x484198['model'],_0x484198[_0x39539c(0x1f5)]),_0x502328[_0x39539c(0x1ea)]=_[_0x39539c(0x1dd)](_0x484198[_0x39539c(0x1f4)],qs[_0x39539c(0x1f6)](_0x131f73[_0x39539c(0x1f5)]['fields'])),_0x502328[_0x39539c(0x1ea)]=_0x502328[_0x39539c(0x1ea)][_0x39539c(0x20a)]?_0x502328[_0x39539c(0x1ea)]:_0x484198['model'];typeof _0x131f73['query']['nolimit']==='undefined'&&(_0x502328[_0x39539c(0x1db)]=qs[_0x39539c(0x1db)](_0x131f73['query'][_0x39539c(0x1db)]),_0x502328[_0x39539c(0x1e2)]=qs[_0x39539c(0x1e2)](_0x131f73['query']['offset']));_0x502328['order']=qs[_0x39539c(0x1e8)](_0x131f73['query']['sort']),_0x502328[_0x39539c(0x1e4)]=qs[_0x39539c(0x1e5)](_[_0x39539c(0x1e0)](_0x131f73[_0x39539c(0x1f5)],_0x484198[_0x39539c(0x1e5)]),_0x4e1f7a);_0x131f73['query'][_0x39539c(0x1fc)]&&(_0x502328[_0x39539c(0x1e4)]=_['merge'](_0x502328['where'],{[Op['or']]:_[_0x39539c(0x1f8)](_0x4e1f7a,function(_0x13368e){const _0xe1559e=_0x39539c;if(_0x13368e['type']!=='VIRTUAL'){const _0x5ae0df={};return _0x5ae0df[_0x13368e[_0xe1559e(0x200)]]={[Op[_0xe1559e(0x1eb)]]:'%'+_0x131f73['query'][_0xe1559e(0x1fc)]+'%'},_0x5ae0df;}})}));_0x502328=_['merge']({},_0x502328,_0x131f73[_0x39539c(0x1dc)]);const _0x10e1eb={'where':_0x502328['where']};return db['Template']['count'](_0x10e1eb)['then'](function(_0x3ee209){const _0x356bd7=_0x39539c;return _0x11190f[_0x356bd7(0x1f0)]=_0x3ee209,_0x131f73['query'][_0x356bd7(0x203)]&&(_0x502328['include']=[{'all':!![]}]),db[_0x356bd7(0x1d8)][_0x356bd7(0x1fd)](_0x502328);})[_0x39539c(0x209)](function(_0x550838){const _0x166a42=_0x39539c;return _0x11190f[_0x166a42(0x1d1)]=_0x550838,_0x11190f;})['then'](respondWithFilteredResult(_0x452506,_0x502328))[_0x39539c(0x207)](handleError(_0x452506,null));},exports[a757_0x2c0dba(0x1ff)]=function(_0x60c588,_0x4dba6a){const _0x42ffb5=a757_0x2c0dba;let _0xe40a35={'raw':!![],'where':{'id':_0x60c588[_0x42ffb5(0x201)]['id']}};const _0x3b176b={};return _0x3b176b[_0x42ffb5(0x1f4)]=_['keys'](db[_0x42ffb5(0x1d8)][_0x42ffb5(0x1e6)]),_0x3b176b[_0x42ffb5(0x1f5)]=_['keys'](_0x60c588[_0x42ffb5(0x1f5)]),_0x3b176b[_0x42ffb5(0x1e5)]=_[_0x42ffb5(0x1dd)](_0x3b176b[_0x42ffb5(0x1f4)],_0x3b176b[_0x42ffb5(0x1f5)]),_0xe40a35[_0x42ffb5(0x1ea)]=_[_0x42ffb5(0x1dd)](_0x3b176b[_0x42ffb5(0x1f4)],qs[_0x42ffb5(0x1f6)](_0x60c588['query'][_0x42ffb5(0x1f6)])),_0xe40a35[_0x42ffb5(0x1ea)]=_0xe40a35[_0x42ffb5(0x1ea)][_0x42ffb5(0x20a)]?_0xe40a35['attributes']:_0x3b176b[_0x42ffb5(0x1f4)],_0x60c588[_0x42ffb5(0x1f5)]['includeAll']&&(_0xe40a35[_0x42ffb5(0x205)]=[{'all':!![]}]),_0xe40a35=_[_0x42ffb5(0x1d7)]({},_0xe40a35,_0x60c588[_0x42ffb5(0x1dc)]),db[_0x42ffb5(0x1d8)]['findOne'](_0xe40a35)[_0x42ffb5(0x209)](handleEntityNotFound(_0x4dba6a,null))[_0x42ffb5(0x209)](respondWithResult(_0x4dba6a,null))['catch'](handleError(_0x4dba6a,null));},exports[a757_0x2c0dba(0x1d4)]=function(_0x26a364,_0x3f8a3d){const _0x5ed9fc=a757_0x2c0dba;return db[_0x5ed9fc(0x1d8)][_0x5ed9fc(0x1d4)](_0x26a364['body'],{})['then'](function(_0x5e1d75){const _0x4a8f9f=_0x5ed9fc,_0x11736c=_0x26a364[_0x4a8f9f(0x1e9)][_0x4a8f9f(0x1da)]({'plain':!![]});if(!_0x11736c)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x11736c['role']==='user'){const _0xabc3e7=_0x5e1d75['get']({'plain':!![]}),_0xb94ac9=_0x4a8f9f(0x1ec);return db[_0x4a8f9f(0x1f9)][_0x4a8f9f(0x202)]({'where':{'name':_0xb94ac9,'userProfileId':_0x11736c[_0x4a8f9f(0x1ed)]},'raw':!![]})[_0x4a8f9f(0x209)](function(_0x32a4e4){const _0x2af885=_0x4a8f9f;return _0x32a4e4&&_0x32a4e4[_0x2af885(0x1d0)]===0x0?db[_0x2af885(0x1f7)][_0x2af885(0x1d4)]({'name':_0xabc3e7[_0x2af885(0x200)],'resourceId':_0xabc3e7['id'],'type':_0x32a4e4['name'],'sectionId':_0x32a4e4['id']},{})[_0x2af885(0x209)](function(){return _0x5e1d75;}):_0x5e1d75;})[_0x4a8f9f(0x207)](function(_0x617f3d){const _0x933e25=_0x4a8f9f;logger[_0x933e25(0x1e3)](_0x933e25(0x1fb),_0x617f3d);throw _0x617f3d;});}return _0x5e1d75;})['then'](respondWithResult(_0x3f8a3d,0xc9))[_0x5ed9fc(0x207)](handleError(_0x3f8a3d,null));},exports[a757_0x2c0dba(0x1d2)]=function(_0x53c845,_0x510305){const _0x42d92e=a757_0x2c0dba;return _0x53c845[_0x42d92e(0x204)]['id']&&delete _0x53c845['body']['id'],db[_0x42d92e(0x1d8)]['findOne']({'where':{'id':_0x53c845[_0x42d92e(0x201)]['id']}})[_0x42d92e(0x209)](handleEntityNotFound(_0x510305,null))[_0x42d92e(0x209)](saveUpdates(_0x53c845[_0x42d92e(0x204)],null))[_0x42d92e(0x209)](respondWithResult(_0x510305,null))['catch'](handleError(_0x510305,null));},exports[a757_0x2c0dba(0x1e1)]=function(_0x414405,_0x42aa39){const _0x6623ee=a757_0x2c0dba;return db['Template'][_0x6623ee(0x202)]({'where':{'id':_0x414405[_0x6623ee(0x201)]['id']}})['then'](handleEntityNotFound(_0x42aa39,null))['then'](removeEntity(_0x42aa39,null))[_0x6623ee(0x207)](handleError(_0x42aa39,null));}; \ No newline at end of file diff --git a/server/api/template/template.model.js b/server/api/template/template.model.js index 5645a68..18228d2 100644 --- a/server/api/template/template.model.js +++ b/server/api/template/template.model.js @@ -1 +1 @@ -const a758_0x8ef1=['sequelize','function','Template','init','exports'];(function(_0x4adfd2,_0x8d62ae){const _0x8ef1a4=function(_0x44a9e3){while(--_0x44a9e3){_0x4adfd2['push'](_0x4adfd2['shift']());}};_0x8ef1a4(++_0x8d62ae);}(a758_0x8ef1,0x15d));const a758_0x44a9=function(_0x4adfd2,_0x8d62ae){_0x4adfd2=_0x4adfd2-0x170;let _0x8ef1a4=a758_0x8ef1[_0x4adfd2];return _0x8ef1a4;};const a758_0x51db9a=a758_0x44a9;'use strict';const {Model}=require(a758_0x51db9a(0x171)),{attributes}=require('./template.attributes'),{options}=require('./template.options');class Template extends Model{}function init(_0x4ee06c,_0x162e77){const _0x3ccfaa=a758_0x51db9a,_0x29cefe=options(_0x4ee06c),_0x183862=typeof _0x162e77===_0x3ccfaa(0x172)?_0x162e77(_0x29cefe):_0x29cefe;return Template[_0x3ccfaa(0x174)](attributes,_0x183862),Template;}module[a758_0x51db9a(0x170)][a758_0x51db9a(0x173)]=Template,module[a758_0x51db9a(0x170)][a758_0x51db9a(0x174)]=init; \ No newline at end of file +const a758_0x3846=['exports','Template','init','./template.options','sequelize'];(function(_0x5ceaa1,_0x5d8102){const _0x3846f6=function(_0x2688b6){while(--_0x2688b6){_0x5ceaa1['push'](_0x5ceaa1['shift']());}};_0x3846f6(++_0x5d8102);}(a758_0x3846,0x1de));const a758_0x2688=function(_0x5ceaa1,_0x5d8102){_0x5ceaa1=_0x5ceaa1-0x1a0;let _0x3846f6=a758_0x3846[_0x5ceaa1];return _0x3846f6;};const a758_0x39503f=a758_0x2688;'use strict';const {Model}=require(a758_0x39503f(0x1a1)),{attributes}=require('./template.attributes'),{options}=require(a758_0x39503f(0x1a0));class Template extends Model{}function init(_0x2390dc,_0x39f89f){const _0x2bc7ba=a758_0x39503f,_0x2a70b5=options(_0x2390dc),_0x5744dc=typeof _0x39f89f==='function'?_0x39f89f(_0x2a70b5):_0x2a70b5;return Template[_0x2bc7ba(0x1a4)](attributes,_0x5744dc),Template;}module['exports'][a758_0x39503f(0x1a3)]=Template,module[a758_0x39503f(0x1a2)][a758_0x39503f(0x1a4)]=init; \ No newline at end of file diff --git a/server/api/template/template.options.js b/server/api/template/template.options.js index b8e575c..13b71a6 100644 --- a/server/api/template/template.options.js +++ b/server/api/template/template.options.js @@ -1 +1 @@ -var a759_0x13ff=['tools_templates','exports'];(function(_0x2c271b,_0x3a7b17){var _0x13ff51=function(_0x5cd349){while(--_0x5cd349){_0x2c271b['push'](_0x2c271b['shift']());}};_0x13ff51(++_0x3a7b17);}(a759_0x13ff,0x1a2));var a759_0x5cd3=function(_0x2c271b,_0x3a7b17){_0x2c271b=_0x2c271b-0x111;var _0x13ff51=a759_0x13ff[_0x2c271b];return _0x13ff51;};var a759_0x3bf2fd=a759_0x5cd3;function options(_0xafe31c){var _0x339e98=a759_0x5cd3;return{'sequelize':_0xafe31c,'tableName':_0x339e98(0x111),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a759_0x3bf2fd(0x112)]['options']=options; \ No newline at end of file +var a759_0x24bd=['exports','options','tools_templates'];(function(_0xfa4b08,_0x31b958){var _0x24bd19=function(_0x1041c3){while(--_0x1041c3){_0xfa4b08['push'](_0xfa4b08['shift']());}};_0x24bd19(++_0x31b958);}(a759_0x24bd,0x1d4));var a759_0x1041=function(_0xfa4b08,_0x31b958){_0xfa4b08=_0xfa4b08-0x103;var _0x24bd19=a759_0x24bd[_0xfa4b08];return _0x24bd19;};var a759_0x4edd13=a759_0x1041;function options(_0x1fb97b){var _0x5a4f09=a759_0x1041;return{'sequelize':_0x1fb97b,'tableName':_0x5a4f09(0x105),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a759_0x4edd13(0x103)][a759_0x4edd13(0x104)]=options; \ No newline at end of file diff --git a/server/api/template/template.rpc.js b/server/api/template/template.rpc.js index dae78cb..347f3ce 100644 --- a/server/api/template/template.rpc.js +++ b/server/api/template/template.rpc.js @@ -1 +1 @@ -const a760_0x181d=['limit','stringify','debug','options','Template','where','error','GetTemplate','catch','model','raw','include','findAll','message','attributes','then','../../mysqldb','map','../../config/logger'];(function(_0xf329b4,_0x61254f){const _0x181d8f=function(_0x1e7c33){while(--_0x1e7c33){_0xf329b4['push'](_0xf329b4['shift']());}};_0x181d8f(++_0x61254f);}(a760_0x181d,0xfd));const a760_0x1e7c=function(_0xf329b4,_0x61254f){_0xf329b4=_0xf329b4-0xba;let _0x181d8f=a760_0x181d[_0xf329b4];return _0x181d8f;};const a760_0x41e001=a760_0x1e7c;'use strict';const _=require('lodash'),db=require(a760_0x41e001(0xc4))['db'],logger=require(a760_0x41e001(0xc6))('rpc');exports[a760_0x41e001(0xbb)]=function(_0x3ad475){const _0x39fbc9=this;return new Promise(function(_0x52dae7,_0x5d5dd0){const _0x54c042=a760_0x1e7c;return db[_0x54c042(0xcb)][_0x54c042(0xc0)]({'raw':_0x3ad475[_0x54c042(0xca)]?_0x3ad475[_0x54c042(0xca)][_0x54c042(0xbe)]===undefined?!![]:![]:!![],'where':_0x3ad475['options']?_0x3ad475[_0x54c042(0xca)][_0x54c042(0xcc)]||null:null,'attributes':_0x3ad475[_0x54c042(0xca)]?_0x3ad475[_0x54c042(0xca)][_0x54c042(0xc2)]||null:null,'limit':_0x3ad475[_0x54c042(0xca)]?_0x3ad475[_0x54c042(0xca)][_0x54c042(0xc7)]||null:null,'include':_0x3ad475['options']?_0x3ad475['options'][_0x54c042(0xbf)]?_[_0x54c042(0xc5)](_0x3ad475[_0x54c042(0xca)][_0x54c042(0xbf)],function(_0x9de8a9){const _0x340db5=_0x54c042;return{'model':db[_0x9de8a9[_0x340db5(0xbd)]],'as':_0x9de8a9['as'],'attributes':_0x9de8a9['attributes'],'include':_0x9de8a9[_0x340db5(0xbf)]?_['map'](_0x9de8a9['include'],function(_0x57a1f6){const _0x10fe1f=_0x340db5;return{'model':db[_0x57a1f6['model']],'as':_0x57a1f6['as'],'attributes':_0x57a1f6[_0x10fe1f(0xc2)],'include':_0x57a1f6[_0x10fe1f(0xbf)]?_[_0x10fe1f(0xc5)](_0x57a1f6[_0x10fe1f(0xbf)],function(_0x35ae7c){const _0x4daf28=_0x10fe1f;return{'model':db[_0x35ae7c[_0x4daf28(0xbd)]],'as':_0x35ae7c['as'],'attributes':_0x35ae7c[_0x4daf28(0xc2)]};}):[]};}):[]};}):[]:[]})[_0x54c042(0xc3)](function(_0x3fec9e){const _0xcea553=_0x54c042;logger['info'](_0xcea553(0xbb),_0x3ad475),logger[_0xcea553(0xc9)](_0xcea553(0xbb),_0x3ad475,JSON[_0xcea553(0xc8)](_0x3fec9e)),_0x52dae7(_0x3fec9e);})[_0x54c042(0xbc)](function(_0x127056){const _0x34d969=_0x54c042;logger[_0x34d969(0xba)]('GetTemplate',_0x127056[_0x34d969(0xc1)],_0x3ad475),_0x5d5dd0(_0x39fbc9[_0x34d969(0xba)](0x1f4,_0x127056['message']));});});}; \ No newline at end of file +const a760_0x44bf=['debug','Template','model','message','stringify','error','include','findAll','info','GetTemplate','raw','where','then','attributes','map','options','lodash'];(function(_0x567aeb,_0x24963d){const _0x44bf9b=function(_0x3ecb74){while(--_0x3ecb74){_0x567aeb['push'](_0x567aeb['shift']());}};_0x44bf9b(++_0x24963d);}(a760_0x44bf,0x198));const a760_0x3ecb=function(_0x567aeb,_0x24963d){_0x567aeb=_0x567aeb-0x160;let _0x44bf9b=a760_0x44bf[_0x567aeb];return _0x44bf9b;};const a760_0x228ff7=a760_0x3ecb;'use strict';const _=require(a760_0x228ff7(0x170)),db=require('../../mysqldb')['db'],logger=require('../../config/logger')('rpc');exports[a760_0x228ff7(0x169)]=function(_0xf6a750){const _0x39f0cc=this;return new Promise(function(_0x2ea5a1,_0xaa59f7){const _0x4b3d80=a760_0x3ecb;return db[_0x4b3d80(0x161)][_0x4b3d80(0x167)]({'raw':_0xf6a750[_0x4b3d80(0x16f)]?_0xf6a750[_0x4b3d80(0x16f)][_0x4b3d80(0x16a)]===undefined?!![]:![]:!![],'where':_0xf6a750[_0x4b3d80(0x16f)]?_0xf6a750[_0x4b3d80(0x16f)][_0x4b3d80(0x16b)]||null:null,'attributes':_0xf6a750['options']?_0xf6a750['options'][_0x4b3d80(0x16d)]||null:null,'limit':_0xf6a750[_0x4b3d80(0x16f)]?_0xf6a750[_0x4b3d80(0x16f)]['limit']||null:null,'include':_0xf6a750['options']?_0xf6a750[_0x4b3d80(0x16f)][_0x4b3d80(0x166)]?_[_0x4b3d80(0x16e)](_0xf6a750['options'][_0x4b3d80(0x166)],function(_0x6da5a8){const _0x44238d=_0x4b3d80;return{'model':db[_0x6da5a8['model']],'as':_0x6da5a8['as'],'attributes':_0x6da5a8[_0x44238d(0x16d)],'include':_0x6da5a8['include']?_[_0x44238d(0x16e)](_0x6da5a8[_0x44238d(0x166)],function(_0x252688){const _0x5036bc=_0x44238d;return{'model':db[_0x252688['model']],'as':_0x252688['as'],'attributes':_0x252688[_0x5036bc(0x16d)],'include':_0x252688[_0x5036bc(0x166)]?_[_0x5036bc(0x16e)](_0x252688[_0x5036bc(0x166)],function(_0x4c88bb){const _0x1e1572=_0x5036bc;return{'model':db[_0x4c88bb[_0x1e1572(0x162)]],'as':_0x4c88bb['as'],'attributes':_0x4c88bb[_0x1e1572(0x16d)]};}):[]};}):[]};}):[]:[]})[_0x4b3d80(0x16c)](function(_0x1775f0){const _0x48c5a1=_0x4b3d80;logger[_0x48c5a1(0x168)](_0x48c5a1(0x169),_0xf6a750),logger[_0x48c5a1(0x160)](_0x48c5a1(0x169),_0xf6a750,JSON[_0x48c5a1(0x164)](_0x1775f0)),_0x2ea5a1(_0x1775f0);})['catch'](function(_0x201a81){const _0x165431=_0x4b3d80;logger['error'](_0x165431(0x169),_0x201a81[_0x165431(0x163)],_0xf6a750),_0xaa59f7(_0x39f0cc[_0x165431(0x165)](0x1f4,_0x201a81['message']));});});}; \ No newline at end of file diff --git a/server/api/trigger/index.js b/server/api/trigger/index.js index b09438b..4cb12ed 100644 --- a/server/api/trigger/index.js +++ b/server/api/trigger/index.js @@ -1 +1 @@ -const a761_0x26a9=['addAction','/:id/any_conditions','express','getAllConditions','/:id','isAuthenticated','Router','./trigger.controller','getActions','post','addAllCondition','addAnyCondition','getAnyConditions','delete','/:id/all_conditions','get','create','../../components/auth/service','put'];(function(_0x5c60ea,_0x569b28){const _0x26a9e1=function(_0x360759){while(--_0x360759){_0x5c60ea['push'](_0x5c60ea['shift']());}};_0x26a9e1(++_0x569b28);}(a761_0x26a9,0xbe));const a761_0x3607=function(_0x5c60ea,_0x569b28){_0x5c60ea=_0x5c60ea-0x1a6;let _0x26a9e1=a761_0x26a9[_0x5c60ea];return _0x26a9e1;};const a761_0x30764d=a761_0x3607;'use strict';const express=require(a761_0x30764d(0x1a8)),router=express[a761_0x30764d(0x1ac)](),auth=require(a761_0x30764d(0x1b7)),controller=require(a761_0x30764d(0x1ad));router[a761_0x30764d(0x1b5)]('/',auth['isAuthenticated'](),controller['index']),router[a761_0x30764d(0x1b5)](a761_0x30764d(0x1aa),auth[a761_0x30764d(0x1ab)](),controller['show']),router[a761_0x30764d(0x1b5)](a761_0x30764d(0x1b4),auth[a761_0x30764d(0x1ab)](),controller[a761_0x30764d(0x1a9)]),router['get']('/:id/any_conditions',auth['isAuthenticated'](),controller[a761_0x30764d(0x1b2)]),router['get']('/:id/actions',auth['isAuthenticated'](),controller[a761_0x30764d(0x1ae)]),router[a761_0x30764d(0x1af)]('/',auth[a761_0x30764d(0x1ab)](),controller[a761_0x30764d(0x1b6)]),router[a761_0x30764d(0x1af)](a761_0x30764d(0x1b4),auth[a761_0x30764d(0x1ab)](),controller[a761_0x30764d(0x1b0)]),router[a761_0x30764d(0x1af)](a761_0x30764d(0x1a7),auth[a761_0x30764d(0x1ab)](),controller[a761_0x30764d(0x1b1)]),router[a761_0x30764d(0x1af)]('/:id/actions',auth[a761_0x30764d(0x1ab)](),controller[a761_0x30764d(0x1a6)]),router[a761_0x30764d(0x1b8)](a761_0x30764d(0x1aa),auth[a761_0x30764d(0x1ab)](),controller['update']),router[a761_0x30764d(0x1b3)](a761_0x30764d(0x1aa),auth[a761_0x30764d(0x1ab)](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a761_0x291a=['/:id/any_conditions','post','addAnyCondition','delete','getActions','create','/:id/all_conditions','express','exports','update','./trigger.controller','getAnyConditions','isAuthenticated','destroy','index','Router','put','/:id','get','../../components/auth/service','/:id/actions','addAllCondition'];(function(_0xada6fd,_0x43d872){const _0x291a24=function(_0x31d612){while(--_0x31d612){_0xada6fd['push'](_0xada6fd['shift']());}};_0x291a24(++_0x43d872);}(a761_0x291a,0x18f));const a761_0x31d6=function(_0xada6fd,_0x43d872){_0xada6fd=_0xada6fd-0xb5;let _0x291a24=a761_0x291a[_0xada6fd];return _0x291a24;};const a761_0x3dc94f=a761_0x31d6;'use strict';const express=require(a761_0x3dc94f(0xb9)),router=express[a761_0x3dc94f(0xc1)](),auth=require(a761_0x3dc94f(0xc5)),controller=require(a761_0x3dc94f(0xbc));router[a761_0x3dc94f(0xc4)]('/',auth[a761_0x3dc94f(0xbe)](),controller[a761_0x3dc94f(0xc0)]),router['get'](a761_0x3dc94f(0xc3),auth[a761_0x3dc94f(0xbe)](),controller['show']),router[a761_0x3dc94f(0xc4)](a761_0x3dc94f(0xb8),auth[a761_0x3dc94f(0xbe)](),controller['getAllConditions']),router[a761_0x3dc94f(0xc4)](a761_0x3dc94f(0xc8),auth[a761_0x3dc94f(0xbe)](),controller[a761_0x3dc94f(0xbd)]),router[a761_0x3dc94f(0xc4)](a761_0x3dc94f(0xc6),auth[a761_0x3dc94f(0xbe)](),controller[a761_0x3dc94f(0xb6)]),router['post']('/',auth['isAuthenticated'](),controller[a761_0x3dc94f(0xb7)]),router[a761_0x3dc94f(0xc9)](a761_0x3dc94f(0xb8),auth[a761_0x3dc94f(0xbe)](),controller[a761_0x3dc94f(0xc7)]),router[a761_0x3dc94f(0xc9)](a761_0x3dc94f(0xc8),auth[a761_0x3dc94f(0xbe)](),controller[a761_0x3dc94f(0xca)]),router[a761_0x3dc94f(0xc9)]('/:id/actions',auth[a761_0x3dc94f(0xbe)](),controller['addAction']),router[a761_0x3dc94f(0xc2)](a761_0x3dc94f(0xc3),auth[a761_0x3dc94f(0xbe)](),controller[a761_0x3dc94f(0xbb)]),router[a761_0x3dc94f(0xb5)]('/:id',auth[a761_0x3dc94f(0xbe)](),controller[a761_0x3dc94f(0xbf)]),module[a761_0x3dc94f(0xba)]=router; \ No newline at end of file diff --git a/server/api/trigger/trigger.attributes.js b/server/api/trigger/trigger.attributes.js index 0ad4640..08679e0 100644 --- a/server/api/trigger/trigger.attributes.js +++ b/server/api/trigger/trigger.attributes.js @@ -1 +1 @@ -const a762_0x3834=['exports','BOOLEAN','STRING','attributes'];(function(_0x16acac,_0x3054e2){const _0x383424=function(_0x11cb17){while(--_0x11cb17){_0x16acac['push'](_0x16acac['shift']());}};_0x383424(++_0x3054e2);}(a762_0x3834,0xbc));const a762_0x11cb=function(_0x16acac,_0x3054e2){_0x16acac=_0x16acac-0x155;let _0x383424=a762_0x3834[_0x16acac];return _0x383424;};const a762_0xea53de=a762_0x11cb;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes['STRING']},'channel':{'type':DataTypes[a762_0xea53de(0x157)]},'description':{'type':DataTypes['STRING']},'status':{'type':DataTypes[a762_0xea53de(0x156)],'defaultValue':![]}};module[a762_0xea53de(0x155)][a762_0xea53de(0x158)]=attributes; \ No newline at end of file +const a762_0x5200=['exports','STRING','attributes','BOOLEAN'];(function(_0x7b8298,_0x39a7fe){const _0x5200bc=function(_0x2e5c2e){while(--_0x2e5c2e){_0x7b8298['push'](_0x7b8298['shift']());}};_0x5200bc(++_0x39a7fe);}(a762_0x5200,0x1ce));const a762_0x2e5c=function(_0x7b8298,_0x39a7fe){_0x7b8298=_0x7b8298-0x17f;let _0x5200bc=a762_0x5200[_0x7b8298];return _0x5200bc;};const a762_0x546df1=a762_0x2e5c;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a762_0x546df1(0x182)]},'channel':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a762_0x546df1(0x182)]},'status':{'type':DataTypes[a762_0x546df1(0x180)],'defaultValue':![]}};module[a762_0x546df1(0x181)][a762_0x546df1(0x17f)]=attributes; \ No newline at end of file diff --git a/server/api/trigger/trigger.controller.js b/server/api/trigger/trigger.controller.js index c9887d7..b9476e2 100644 --- a/server/api/trigger/trigger.controller.js +++ b/server/api/trigger/trigger.controller.js @@ -1 +1 @@ -const a763_0x2868=['options','destroy','sequelize','pick','userProfileId','params','nolimit','lodash','api','merge','Triggers','query','include','name','model','status','send','offset','update','filter','getAllConditions','create','TriggerId','addAllCondition','end','limit','key','error','intersection','undefined','body','UserProfileSection','catch','sort','addAction','map','TriggerAllId','../../config/logger','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','keys','set','rawAttributes','Action','getActions','addAnyCondition','autoAssociation','length','../../components/parsers/qs','VIRTUAL','json','attributes','Trigger','like','getAnyConditions','UserProfileResource','where','get','findAll','Unable\x20to\x20retrieve\x20the\x20current\x20user','show','fields','filters','findOne','Content-Range','then','index','stack','order','Condition'];(function(_0x464bf9,_0x15fac9){const _0x2868ff=function(_0x3f2a27){while(--_0x3f2a27){_0x464bf9['push'](_0x464bf9['shift']());}};_0x2868ff(++_0x15fac9);}(a763_0x2868,0xa7));const a763_0x3f2a=function(_0x464bf9,_0x15fac9){_0x464bf9=_0x464bf9-0x1c5;let _0x2868ff=a763_0x2868[_0x464bf9];return _0x2868ff;};const a763_0x46a723=a763_0x3f2a;'use strict';const _=require(a763_0x46a723(0x1f4)),qs=require(a763_0x46a723(0x1d7)),logger=require(a763_0x46a723(0x1cd))(a763_0x46a723(0x1f5)),{db}=require('../../mysqldb'),{Op}=require(a763_0x46a723(0x1ef));function respondWithResult(_0x1e5e3b,_0x6c1b75){return _0x6c1b75=_0x6c1b75||0xc8,function(_0x45a63a){const _0x15274f=a763_0x3f2a;if(_0x45a63a)return _0x1e5e3b[_0x15274f(0x1fc)](_0x6c1b75)[_0x15274f(0x1d9)](_0x45a63a);};}function respondWithFilteredResult(_0x1ace27,_0x1ab7d8){return function(_0x44d088){const _0x31abf2=a763_0x3f2a;if(_0x44d088){const _0x21b1d5=_0x44d088['count'],_0x29af9a=_0x1ab7d8[_0x31abf2(0x1fe)];let _0x14afac=_0x1ab7d8[_0x31abf2(0x1fe)]+_0x1ab7d8[_0x31abf2(0x206)],_0x5a0927;return _0x14afac>=_0x21b1d5?(_0x14afac=_0x21b1d5,_0x5a0927=0xc8):_0x5a0927=0xce,_0x1ace27[_0x31abf2(0x1fc)](_0x5a0927),_0x1ace27[_0x31abf2(0x1d0)](_0x31abf2(0x1e7),_0x29af9a+'-'+_0x14afac+'/'+_0x21b1d5)['json'](_0x44d088);}return null;};}function saveUpdates(_0x4170ed){return function(_0x922022){const _0x556554=a763_0x3f2a;if(_0x922022)return _0x922022[_0x556554(0x1ff)](_0x4170ed)[_0x556554(0x1e8)](function(_0x15b0ab){return _0x15b0ab;});return null;};}function removeEntity(_0x399d41){return function(_0x310611){const _0xc943d7=a763_0x3f2a;if(_0x310611)return _0x310611[_0xc943d7(0x1ee)]()[_0xc943d7(0x1e8)](function(){const _0x286e3f=_0xc943d7,_0x5cfd34=_0x310611[_0x286e3f(0x1e0)]({'plain':!![]}),_0x1c943b=_0x286e3f(0x1f7);return db[_0x286e3f(0x1de)][_0x286e3f(0x1ee)]({'where':{'type':_0x1c943b,'resourceId':_0x5cfd34['id']}})[_0x286e3f(0x1e8)](function(){return _0x310611;});})[_0xc943d7(0x1e8)](function(){const _0x15d62a=_0xc943d7;_0x399d41[_0x15d62a(0x1fc)](0xcc)[_0x15d62a(0x205)]();});};}function handleEntityNotFound(_0x21a4f5){return function(_0xd5e35e){return!_0xd5e35e&&_0x21a4f5['sendStatus'](0x194),_0xd5e35e;};}function handleError(_0x423f64,_0x389b63){return _0x389b63=_0x389b63||0x1f4,function(_0x6d2283){const _0x366413=a763_0x3f2a;logger[_0x366413(0x208)](_0x6d2283[_0x366413(0x1ea)]),_0x6d2283[_0x366413(0x1fa)]&&delete _0x6d2283[_0x366413(0x1fa)],_0x423f64['status'](_0x389b63)[_0x366413(0x1fd)](_0x6d2283);};}exports[a763_0x46a723(0x1e9)]=function(_0x1d1376,_0x56913a){const _0x198efb=a763_0x46a723;let _0xdd0fd9={};const _0x4bf5fa={},_0x165775={'count':0x0,'rows':[]},_0x1c7718=_[_0x198efb(0x1cb)](db[_0x198efb(0x1db)][_0x198efb(0x1d1)],function(_0x984fc7){const _0x182ec3=_0x198efb;return{'name':_0x984fc7['fieldName'],'type':_0x984fc7['type'][_0x182ec3(0x207)]};});_0x4bf5fa[_0x198efb(0x1fb)]=_[_0x198efb(0x1cb)](_0x1c7718,'name'),_0x4bf5fa[_0x198efb(0x1f8)]=_[_0x198efb(0x1cf)](_0x1d1376['query']),_0x4bf5fa[_0x198efb(0x1e5)]=_[_0x198efb(0x209)](_0x4bf5fa['model'],_0x4bf5fa[_0x198efb(0x1f8)]),_0xdd0fd9[_0x198efb(0x1da)]=_[_0x198efb(0x209)](_0x4bf5fa[_0x198efb(0x1fb)],qs[_0x198efb(0x1e4)](_0x1d1376[_0x198efb(0x1f8)][_0x198efb(0x1e4)])),_0xdd0fd9[_0x198efb(0x1da)]=_0xdd0fd9['attributes']['length']?_0xdd0fd9[_0x198efb(0x1da)]:_0x4bf5fa[_0x198efb(0x1fb)];typeof _0x1d1376[_0x198efb(0x1f8)][_0x198efb(0x1f3)]==='undefined'&&(_0xdd0fd9['limit']=qs[_0x198efb(0x206)](_0x1d1376['query'][_0x198efb(0x206)]),_0xdd0fd9[_0x198efb(0x1fe)]=qs[_0x198efb(0x1fe)](_0x1d1376[_0x198efb(0x1f8)][_0x198efb(0x1fe)]));_0xdd0fd9[_0x198efb(0x1eb)]=qs[_0x198efb(0x1c9)](_0x1d1376[_0x198efb(0x1f8)][_0x198efb(0x1c9)]),_0xdd0fd9[_0x198efb(0x1df)]=qs[_0x198efb(0x1e5)](_[_0x198efb(0x1f0)](_0x1d1376['query'],_0x4bf5fa['filters']),_0x1c7718);_0x1d1376[_0x198efb(0x1f8)]['filter']&&(_0xdd0fd9[_0x198efb(0x1df)]=_[_0x198efb(0x1f6)](_0xdd0fd9['where'],{[Op['or']]:_[_0x198efb(0x1cb)](_0x1c7718,function(_0x401ea1){const _0x3e3089=_0x198efb;if(_0x401ea1['type']!==_0x3e3089(0x1d8)){const _0x2e29c1={};return _0x2e29c1[_0x401ea1['name']]={[Op[_0x3e3089(0x1dc)]]:'%'+_0x1d1376[_0x3e3089(0x1f8)][_0x3e3089(0x200)]+'%'},_0x2e29c1;}})}));_0xdd0fd9=_[_0x198efb(0x1f6)]({},_0xdd0fd9,_0x1d1376[_0x198efb(0x1ed)]);const _0x412129={'where':_0xdd0fd9[_0x198efb(0x1df)]};return db[_0x198efb(0x1db)]['count'](_0x412129)[_0x198efb(0x1e8)](function(_0x5220e7){const _0x4a524f=_0x198efb;return _0x165775['count']=_0x5220e7,_0x1d1376[_0x4a524f(0x1f8)]['includeAll']&&(_0xdd0fd9['include']=[{'all':!![]}]),db[_0x4a524f(0x1db)][_0x4a524f(0x1e1)](_0xdd0fd9);})[_0x198efb(0x1e8)](function(_0x45942e){return _0x165775['rows']=_0x45942e,_0x165775;})[_0x198efb(0x1e8)](respondWithFilteredResult(_0x56913a,_0xdd0fd9))[_0x198efb(0x1c8)](handleError(_0x56913a,null));},exports[a763_0x46a723(0x1e3)]=function(_0x4d4ca0,_0x3c0f09){const _0x498f6e=a763_0x46a723;let _0x248771={'raw':![],'where':{'id':_0x4d4ca0[_0x498f6e(0x1f2)]['id']}};const _0x5b88a9={};return _0x5b88a9['model']=_['keys'](db[_0x498f6e(0x1db)][_0x498f6e(0x1d1)]),_0x5b88a9['query']=_[_0x498f6e(0x1cf)](_0x4d4ca0[_0x498f6e(0x1f8)]),_0x5b88a9['filters']=_[_0x498f6e(0x209)](_0x5b88a9[_0x498f6e(0x1fb)],_0x5b88a9[_0x498f6e(0x1f8)]),_0x248771['attributes']=_['intersection'](_0x5b88a9['model'],qs['fields'](_0x4d4ca0[_0x498f6e(0x1f8)][_0x498f6e(0x1e4)])),_0x248771[_0x498f6e(0x1da)]=_0x248771[_0x498f6e(0x1da)][_0x498f6e(0x1d6)]?_0x248771[_0x498f6e(0x1da)]:_0x5b88a9['model'],_0x4d4ca0[_0x498f6e(0x1f8)]['includeAll']&&(_0x248771[_0x498f6e(0x1f9)]=[{'all':!![]}]),_0x248771=_[_0x498f6e(0x1f6)]({},_0x248771,_0x4d4ca0[_0x498f6e(0x1ed)]),db['Trigger']['findOne'](_0x248771)[_0x498f6e(0x1e8)](handleEntityNotFound(_0x3c0f09,null))[_0x498f6e(0x1e8)](respondWithResult(_0x3c0f09,null))[_0x498f6e(0x1c8)](handleError(_0x3c0f09,null));},exports[a763_0x46a723(0x202)]=function(_0x40caa6,_0x564d8d){const _0x3a43c2=a763_0x46a723;return db[_0x3a43c2(0x1db)][_0x3a43c2(0x202)](_0x40caa6[_0x3a43c2(0x1c6)],{})[_0x3a43c2(0x1e8)](function(_0x38ad50){const _0x474411=_0x3a43c2,_0x360e2b=_0x40caa6['user'][_0x474411(0x1e0)]({'plain':!![]});if(!_0x360e2b)throw new Error(_0x474411(0x1e2));if(_0x360e2b['role']==='user'){const _0x1e416b=_0x38ad50[_0x474411(0x1e0)]({'plain':!![]}),_0x29d78b=_0x474411(0x1f7);return db[_0x474411(0x1c7)][_0x474411(0x1e6)]({'where':{'name':_0x29d78b,'userProfileId':_0x360e2b[_0x474411(0x1f1)]},'raw':!![]})[_0x474411(0x1e8)](function(_0x2e554c){const _0x79cab1=_0x474411;return _0x2e554c&&_0x2e554c[_0x79cab1(0x1d5)]===0x0?db['UserProfileResource'][_0x79cab1(0x202)]({'name':_0x1e416b[_0x79cab1(0x1fa)],'resourceId':_0x1e416b['id'],'type':_0x2e554c[_0x79cab1(0x1fa)],'sectionId':_0x2e554c['id']},{})[_0x79cab1(0x1e8)](function(){return _0x38ad50;}):_0x38ad50;})[_0x474411(0x1c8)](function(_0x428031){const _0x25dbc5=_0x474411;logger[_0x25dbc5(0x208)](_0x25dbc5(0x1ce),_0x428031);throw _0x428031;});}return _0x38ad50;})[_0x3a43c2(0x1e8)](respondWithResult(_0x564d8d,0xc9))[_0x3a43c2(0x1c8)](handleError(_0x564d8d,null));},exports[a763_0x46a723(0x1ff)]=function(_0x38ea75,_0x3466ac){const _0x27a455=a763_0x46a723;return _0x38ea75['body']['id']&&delete _0x38ea75['body']['id'],db['Trigger'][_0x27a455(0x1e6)]({'where':{'id':_0x38ea75[_0x27a455(0x1f2)]['id']}})[_0x27a455(0x1e8)](handleEntityNotFound(_0x3466ac,null))['then'](saveUpdates(_0x38ea75[_0x27a455(0x1c6)],null))['then'](respondWithResult(_0x3466ac,null))[_0x27a455(0x1c8)](handleError(_0x3466ac,null));},exports['destroy']=function(_0x1648c3,_0x2ec719){const _0x25b888=a763_0x46a723;return db['Trigger'][_0x25b888(0x1e6)]({'where':{'id':_0x1648c3['params']['id']}})[_0x25b888(0x1e8)](handleEntityNotFound(_0x2ec719,null))['then'](removeEntity(_0x2ec719,null))[_0x25b888(0x1c8)](handleError(_0x2ec719,null));},exports[a763_0x46a723(0x204)]=function(_0x1adfbf,_0x3690f3){const _0x5df650=a763_0x46a723;return _0x1adfbf[_0x5df650(0x1c6)]['id']&&delete _0x1adfbf['body']['id'],db['Trigger'][_0x5df650(0x1e6)]({'where':{'id':_0x1adfbf['params']['id']}})[_0x5df650(0x1e8)](handleEntityNotFound(_0x3690f3,null))[_0x5df650(0x1e8)](function(_0x288131){const _0x21808e=_0x5df650;if(_0x288131)return _0x1adfbf[_0x21808e(0x1c6)][_0x21808e(0x1cc)]=_0x288131['id'],db[_0x21808e(0x1ec)][_0x21808e(0x202)](_0x1adfbf[_0x21808e(0x1c6)]);})[_0x5df650(0x1e8)](respondWithResult(_0x3690f3,null))[_0x5df650(0x1c8)](handleError(_0x3690f3,null));},exports[a763_0x46a723(0x1d4)]=function(_0x2d9c80,_0x3560ac){const _0x586d81=a763_0x46a723;return _0x2d9c80[_0x586d81(0x1c6)]['id']&&delete _0x2d9c80[_0x586d81(0x1c6)]['id'],db['Trigger'][_0x586d81(0x1e6)]({'where':{'id':_0x2d9c80[_0x586d81(0x1f2)]['id']}})[_0x586d81(0x1e8)](handleEntityNotFound(_0x3560ac,null))['then'](function(_0x5399e8){const _0x435d35=_0x586d81;if(_0x5399e8)return _0x2d9c80[_0x435d35(0x1c6)]['TriggerAnyId']=_0x5399e8['id'],db[_0x435d35(0x1ec)][_0x435d35(0x202)](_0x2d9c80[_0x435d35(0x1c6)]);})[_0x586d81(0x1e8)](respondWithResult(_0x3560ac,null))[_0x586d81(0x1c8)](handleError(_0x3560ac,null));},exports['getAllConditions']=function(_0x149979,_0xe64b08){const _0x6e5468=a763_0x46a723;let _0x55f904={};const _0x38164a={};let _0x3dcb5f,_0x20a5f6;return db[_0x6e5468(0x1db)][_0x6e5468(0x1e6)]({'where':{'id':_0x149979[_0x6e5468(0x1f2)]['id']}})[_0x6e5468(0x1e8)](handleEntityNotFound(_0xe64b08,null))[_0x6e5468(0x1e8)](function(_0x45018d){const _0x3a2291=_0x6e5468;if(_0x45018d)return _0x3dcb5f=_0x45018d,_0x38164a['model']=_[_0x3a2291(0x1cf)](db[_0x3a2291(0x1ec)][_0x3a2291(0x1d1)]),_0x38164a[_0x3a2291(0x1f8)]=_['keys'](_0x149979[_0x3a2291(0x1f8)]),_0x38164a[_0x3a2291(0x1e5)]=_[_0x3a2291(0x209)](_0x38164a[_0x3a2291(0x1fb)],_0x38164a[_0x3a2291(0x1f8)]),_0x55f904[_0x3a2291(0x1da)]=_[_0x3a2291(0x209)](_0x38164a['model'],qs[_0x3a2291(0x1e4)](_0x149979[_0x3a2291(0x1f8)]['fields'])),_0x55f904['attributes']=_0x55f904[_0x3a2291(0x1da)][_0x3a2291(0x1d6)]?_0x55f904[_0x3a2291(0x1da)]:_0x38164a[_0x3a2291(0x1fb)],_0x55f904[_0x3a2291(0x1eb)]=qs[_0x3a2291(0x1c9)](_0x149979['query'][_0x3a2291(0x1c9)]),_0x55f904[_0x3a2291(0x1df)]=qs[_0x3a2291(0x1e5)](_['pick'](_0x149979[_0x3a2291(0x1f8)],_0x38164a[_0x3a2291(0x1e5)])),_0x149979[_0x3a2291(0x1f8)][_0x3a2291(0x200)]&&(_0x55f904[_0x3a2291(0x1df)]=_[_0x3a2291(0x1f6)](_0x55f904['where'],{[Op['or']]:_[_0x3a2291(0x1cb)](_0x55f904[_0x3a2291(0x1da)],function(_0x560af0){const _0x502924=_0x3a2291,_0x501ac4={};return _0x501ac4[_0x560af0]={[Op[_0x502924(0x1dc)]]:'%'+_0x149979[_0x502924(0x1f8)][_0x502924(0x200)]+'%'},_0x501ac4;})})),_0x55f904=_[_0x3a2291(0x1f6)]({},_0x55f904,_0x149979['options']),_0x3dcb5f[_0x3a2291(0x201)](_0x55f904);})[_0x6e5468(0x1e8)](function(_0x502b22){const _0x375556=_0x6e5468;if(_0x502b22)return _0x20a5f6=_0x502b22[_0x375556(0x1d6)],typeof _0x149979[_0x375556(0x1f8)][_0x375556(0x1f3)]===_0x375556(0x1c5)&&(_0x55f904[_0x375556(0x206)]=qs[_0x375556(0x206)](_0x149979[_0x375556(0x1f8)][_0x375556(0x206)]),_0x55f904[_0x375556(0x1fe)]=qs[_0x375556(0x1fe)](_0x149979[_0x375556(0x1f8)][_0x375556(0x1fe)])),_0x3dcb5f[_0x375556(0x201)](_0x55f904);})['then'](function(_0xc43546){if(_0xc43546)return _0xc43546?{'count':_0x20a5f6,'rows':_0xc43546}:null;})[_0x6e5468(0x1e8)](respondWithResult(_0xe64b08,null))[_0x6e5468(0x1c8)](handleError(_0xe64b08,null));},exports['getAnyConditions']=function(_0x590250,_0x179b2f){const _0x48657e=a763_0x46a723;let _0x3e1258={};const _0x2ef96e={};let _0x52ff63,_0x56c215;return db[_0x48657e(0x1db)][_0x48657e(0x1e6)]({'where':{'id':_0x590250[_0x48657e(0x1f2)]['id']}})[_0x48657e(0x1e8)](handleEntityNotFound(_0x179b2f,null))[_0x48657e(0x1e8)](function(_0x4a92a){const _0x36ffd8=_0x48657e;if(_0x4a92a)return _0x52ff63=_0x4a92a,_0x2ef96e[_0x36ffd8(0x1fb)]=_[_0x36ffd8(0x1cf)](db[_0x36ffd8(0x1ec)]['rawAttributes']),_0x2ef96e[_0x36ffd8(0x1f8)]=_[_0x36ffd8(0x1cf)](_0x590250[_0x36ffd8(0x1f8)]),_0x2ef96e['filters']=_[_0x36ffd8(0x209)](_0x2ef96e[_0x36ffd8(0x1fb)],_0x2ef96e['query']),_0x3e1258[_0x36ffd8(0x1da)]=_[_0x36ffd8(0x209)](_0x2ef96e[_0x36ffd8(0x1fb)],qs[_0x36ffd8(0x1e4)](_0x590250[_0x36ffd8(0x1f8)][_0x36ffd8(0x1e4)])),_0x3e1258['attributes']=_0x3e1258['attributes'][_0x36ffd8(0x1d6)]?_0x3e1258['attributes']:_0x2ef96e['model'],_0x3e1258[_0x36ffd8(0x1eb)]=qs[_0x36ffd8(0x1c9)](_0x590250[_0x36ffd8(0x1f8)][_0x36ffd8(0x1c9)]),_0x3e1258[_0x36ffd8(0x1df)]=qs['filters'](_[_0x36ffd8(0x1f0)](_0x590250['query'],_0x2ef96e[_0x36ffd8(0x1e5)])),_0x590250['query']['filter']&&(_0x3e1258['where']=_['merge'](_0x3e1258[_0x36ffd8(0x1df)],{[Op['or']]:_[_0x36ffd8(0x1cb)](_0x3e1258['attributes'],function(_0x48d342){const _0x302bb6=_0x36ffd8,_0x37cc18={};return _0x37cc18[_0x48d342]={[Op['like']]:'%'+_0x590250[_0x302bb6(0x1f8)][_0x302bb6(0x200)]+'%'},_0x37cc18;})})),_0x3e1258=_[_0x36ffd8(0x1f6)]({},_0x3e1258,_0x590250[_0x36ffd8(0x1ed)]),_0x52ff63[_0x36ffd8(0x1dd)](_0x3e1258);})[_0x48657e(0x1e8)](function(_0x2189d5){const _0x5a20fe=_0x48657e;if(_0x2189d5)return _0x56c215=_0x2189d5[_0x5a20fe(0x1d6)],typeof _0x590250[_0x5a20fe(0x1f8)][_0x5a20fe(0x1f3)]===_0x5a20fe(0x1c5)&&(_0x3e1258[_0x5a20fe(0x206)]=qs['limit'](_0x590250[_0x5a20fe(0x1f8)][_0x5a20fe(0x206)]),_0x3e1258['offset']=qs['offset'](_0x590250['query'][_0x5a20fe(0x1fe)])),_0x52ff63['getAnyConditions'](_0x3e1258);})[_0x48657e(0x1e8)](function(_0x5cc311){if(_0x5cc311)return _0x5cc311?{'count':_0x56c215,'rows':_0x5cc311}:null;})['then'](respondWithResult(_0x179b2f,null))['catch'](handleError(_0x179b2f,null));},exports[a763_0x46a723(0x1ca)]=function(_0xc60a55,_0x2c8374){const _0x5d94c5=a763_0x46a723;return _0xc60a55[_0x5d94c5(0x1c6)]['id']&&delete _0xc60a55[_0x5d94c5(0x1c6)]['id'],db['Trigger'][_0x5d94c5(0x1e6)]({'where':{'id':_0xc60a55[_0x5d94c5(0x1f2)]['id']}})['then'](handleEntityNotFound(_0x2c8374,null))[_0x5d94c5(0x1e8)](function(_0x3b1e26){const _0x12f84f=_0x5d94c5;if(_0x3b1e26)return _0xc60a55['body'][_0x12f84f(0x203)]=_0x3b1e26['id'],db[_0x12f84f(0x1d2)][_0x12f84f(0x202)](_0xc60a55[_0x12f84f(0x1c6)]);})[_0x5d94c5(0x1e8)](respondWithResult(_0x2c8374,null))[_0x5d94c5(0x1c8)](handleError(_0x2c8374,null));},exports[a763_0x46a723(0x1d3)]=function(_0x27c747,_0x21cdac){const _0x38cbb9=a763_0x46a723;let _0x187b63={};const _0x20bb5f={};let _0x21a6ec,_0x4890ef;return db[_0x38cbb9(0x1db)]['findOne']({'where':{'id':_0x27c747[_0x38cbb9(0x1f2)]['id']}})[_0x38cbb9(0x1e8)](handleEntityNotFound(_0x21cdac,null))[_0x38cbb9(0x1e8)](function(_0x491b79){const _0x2e3929=_0x38cbb9;if(_0x491b79)return _0x21a6ec=_0x491b79,_0x20bb5f[_0x2e3929(0x1fb)]=_['keys'](db[_0x2e3929(0x1d2)][_0x2e3929(0x1d1)]),_0x20bb5f[_0x2e3929(0x1f8)]=_[_0x2e3929(0x1cf)](_0x27c747[_0x2e3929(0x1f8)]),_0x20bb5f[_0x2e3929(0x1e5)]=_[_0x2e3929(0x209)](_0x20bb5f[_0x2e3929(0x1fb)],_0x20bb5f[_0x2e3929(0x1f8)]),_0x187b63[_0x2e3929(0x1da)]=_[_0x2e3929(0x209)](_0x20bb5f['model'],qs[_0x2e3929(0x1e4)](_0x27c747['query'][_0x2e3929(0x1e4)])),_0x187b63[_0x2e3929(0x1da)]=_0x187b63[_0x2e3929(0x1da)][_0x2e3929(0x1d6)]?_0x187b63[_0x2e3929(0x1da)]:_0x20bb5f[_0x2e3929(0x1fb)],_0x187b63[_0x2e3929(0x1eb)]=qs[_0x2e3929(0x1c9)](_0x27c747[_0x2e3929(0x1f8)][_0x2e3929(0x1c9)]),_0x187b63[_0x2e3929(0x1df)]=qs[_0x2e3929(0x1e5)](_[_0x2e3929(0x1f0)](_0x27c747[_0x2e3929(0x1f8)],_0x20bb5f[_0x2e3929(0x1e5)])),_0x27c747['query'][_0x2e3929(0x200)]&&(_0x187b63[_0x2e3929(0x1df)]=_[_0x2e3929(0x1f6)](_0x187b63['where'],{[Op['or']]:_['map'](_0x187b63[_0x2e3929(0x1da)],function(_0x4abc96){const _0x4fa5a1=_0x2e3929,_0x4637b2={};return _0x4637b2[_0x4abc96]={[Op[_0x4fa5a1(0x1dc)]]:'%'+_0x27c747[_0x4fa5a1(0x1f8)][_0x4fa5a1(0x200)]+'%'},_0x4637b2;})})),_0x187b63=_[_0x2e3929(0x1f6)]({},_0x187b63,_0x27c747['options']),_0x21a6ec[_0x2e3929(0x1d3)](_0x187b63);})[_0x38cbb9(0x1e8)](function(_0x465b08){const _0x238f61=_0x38cbb9;if(_0x465b08)return _0x4890ef=_0x465b08[_0x238f61(0x1d6)],typeof _0x27c747['query']['nolimit']===_0x238f61(0x1c5)&&(_0x187b63['limit']=qs['limit'](_0x27c747[_0x238f61(0x1f8)]['limit']),_0x187b63['offset']=qs[_0x238f61(0x1fe)](_0x27c747[_0x238f61(0x1f8)][_0x238f61(0x1fe)])),_0x21a6ec[_0x238f61(0x1d3)](_0x187b63);})[_0x38cbb9(0x1e8)](function(_0x21b0e7){if(_0x21b0e7)return _0x21b0e7?{'count':_0x4890ef,'rows':_0x21b0e7}:null;})['then'](respondWithResult(_0x21cdac,null))['catch'](handleError(_0x21cdac,null));}; \ No newline at end of file +const a763_0x5ba5=['Trigger','destroy','type','attributes','offset','pick','body','Content-Range','length','Triggers','userProfileId','api','model','addAnyCondition','create','TriggerAnyId','update','includeAll','fields','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','send','merge','query','rows','getAnyConditions','where','VIRTUAL','limit','getAllConditions','UserProfileSection','filters','addAllCondition','findOne','addAction','set','user','undefined','intersection','options','role','sendStatus','../../components/parsers/qs','show','keys','status','json','filter','Action','then','error','nolimit','../../config/logger','rawAttributes','map','fieldName','end','catch','name','count','include','like','order','Condition','get','../../mysqldb','params','stack','sort','getActions'];(function(_0x156d97,_0x3ff6a8){const _0x5ba50e=function(_0x1d15e4){while(--_0x1d15e4){_0x156d97['push'](_0x156d97['shift']());}};_0x5ba50e(++_0x3ff6a8);}(a763_0x5ba5,0x1f1));const a763_0x1d15=function(_0x156d97,_0x3ff6a8){_0x156d97=_0x156d97-0xc1;let _0x5ba50e=a763_0x5ba5[_0x156d97];return _0x5ba50e;};const a763_0xa9bbd1=a763_0x1d15;'use strict';const _=require('lodash'),qs=require(a763_0xa9bbd1(0xdc)),logger=require(a763_0xa9bbd1(0xe6))(a763_0xa9bbd1(0x103)),{db}=require(a763_0xa9bbd1(0xf3)),{Op}=require('sequelize');function respondWithResult(_0x4ecca3,_0x145395){return _0x145395=_0x145395||0xc8,function(_0x26e2d3){const _0x5839f0=a763_0x1d15;if(_0x26e2d3)return _0x4ecca3['status'](_0x145395)[_0x5839f0(0xe0)](_0x26e2d3);};}function respondWithFilteredResult(_0x13528f,_0x44ad76){return function(_0x1f2506){const _0x315432=a763_0x1d15;if(_0x1f2506){const _0x29de1a=_0x1f2506[_0x315432(0xed)],_0x127750=_0x44ad76[_0x315432(0xfc)];let _0x13757b=_0x44ad76['offset']+_0x44ad76[_0x315432(0xce)],_0x34ed3a;return _0x13757b>=_0x29de1a?(_0x13757b=_0x29de1a,_0x34ed3a=0xc8):_0x34ed3a=0xce,_0x13528f[_0x315432(0xdf)](_0x34ed3a),_0x13528f[_0x315432(0xd5)](_0x315432(0xff),_0x127750+'-'+_0x13757b+'/'+_0x29de1a)[_0x315432(0xe0)](_0x1f2506);}return null;};}function saveUpdates(_0x8b97af){return function(_0x4a14ec){const _0x278a8b=a763_0x1d15;if(_0x4a14ec)return _0x4a14ec[_0x278a8b(0xc3)](_0x8b97af)[_0x278a8b(0xe3)](function(_0x43e4da){return _0x43e4da;});return null;};}function removeEntity(_0x5a3d11){return function(_0x2088d1){const _0x6b3680=a763_0x1d15;if(_0x2088d1)return _0x2088d1[_0x6b3680(0xf9)]()[_0x6b3680(0xe3)](function(){const _0x51c4c0=_0x6b3680,_0x30bc32=_0x2088d1[_0x51c4c0(0xf2)]({'plain':!![]}),_0x1d8653=_0x51c4c0(0x101);return db['UserProfileResource'][_0x51c4c0(0xf9)]({'where':{'type':_0x1d8653,'resourceId':_0x30bc32['id']}})['then'](function(){return _0x2088d1;});})['then'](function(){const _0x21273d=_0x6b3680;_0x5a3d11[_0x21273d(0xdf)](0xcc)[_0x21273d(0xea)]();});};}function handleEntityNotFound(_0x29bb82){return function(_0x4bd2ce){const _0x1b9c86=a763_0x1d15;return!_0x4bd2ce&&_0x29bb82[_0x1b9c86(0xdb)](0x194),_0x4bd2ce;};}function handleError(_0x25142a,_0x421671){return _0x421671=_0x421671||0x1f4,function(_0x48d348){const _0x72b5a7=a763_0x1d15;logger[_0x72b5a7(0xe4)](_0x48d348[_0x72b5a7(0xf5)]),_0x48d348[_0x72b5a7(0xec)]&&delete _0x48d348[_0x72b5a7(0xec)],_0x25142a['status'](_0x421671)[_0x72b5a7(0xc7)](_0x48d348);};}exports['index']=function(_0xa24f8b,_0x2acc57){const _0x4c5223=a763_0xa9bbd1;let _0x5c3e4c={};const _0x5318b4={},_0x13fc98={'count':0x0,'rows':[]},_0x55873d=_[_0x4c5223(0xe8)](db[_0x4c5223(0xf8)][_0x4c5223(0xe7)],function(_0x54788d){const _0x4e5ec8=_0x4c5223;return{'name':_0x54788d[_0x4e5ec8(0xe9)],'type':_0x54788d['type']['key']};});_0x5318b4[_0x4c5223(0x104)]=_[_0x4c5223(0xe8)](_0x55873d,'name'),_0x5318b4[_0x4c5223(0xc9)]=_[_0x4c5223(0xde)](_0xa24f8b[_0x4c5223(0xc9)]),_0x5318b4[_0x4c5223(0xd1)]=_['intersection'](_0x5318b4[_0x4c5223(0x104)],_0x5318b4[_0x4c5223(0xc9)]),_0x5c3e4c[_0x4c5223(0xfb)]=_[_0x4c5223(0xd8)](_0x5318b4[_0x4c5223(0x104)],qs[_0x4c5223(0xc5)](_0xa24f8b[_0x4c5223(0xc9)][_0x4c5223(0xc5)])),_0x5c3e4c[_0x4c5223(0xfb)]=_0x5c3e4c['attributes']['length']?_0x5c3e4c[_0x4c5223(0xfb)]:_0x5318b4['model'];typeof _0xa24f8b[_0x4c5223(0xc9)][_0x4c5223(0xe5)]===_0x4c5223(0xd7)&&(_0x5c3e4c['limit']=qs[_0x4c5223(0xce)](_0xa24f8b[_0x4c5223(0xc9)]['limit']),_0x5c3e4c[_0x4c5223(0xfc)]=qs['offset'](_0xa24f8b['query'][_0x4c5223(0xfc)]));_0x5c3e4c[_0x4c5223(0xf0)]=qs['sort'](_0xa24f8b[_0x4c5223(0xc9)]['sort']),_0x5c3e4c[_0x4c5223(0xcc)]=qs[_0x4c5223(0xd1)](_['pick'](_0xa24f8b[_0x4c5223(0xc9)],_0x5318b4[_0x4c5223(0xd1)]),_0x55873d);_0xa24f8b[_0x4c5223(0xc9)][_0x4c5223(0xe1)]&&(_0x5c3e4c[_0x4c5223(0xcc)]=_[_0x4c5223(0xc8)](_0x5c3e4c[_0x4c5223(0xcc)],{[Op['or']]:_['map'](_0x55873d,function(_0x49097e){const _0xc8b605=_0x4c5223;if(_0x49097e[_0xc8b605(0xfa)]!==_0xc8b605(0xcd)){const _0x568ad7={};return _0x568ad7[_0x49097e[_0xc8b605(0xec)]]={[Op[_0xc8b605(0xef)]]:'%'+_0xa24f8b[_0xc8b605(0xc9)][_0xc8b605(0xe1)]+'%'},_0x568ad7;}})}));_0x5c3e4c=_[_0x4c5223(0xc8)]({},_0x5c3e4c,_0xa24f8b[_0x4c5223(0xd9)]);const _0x2d437a={'where':_0x5c3e4c['where']};return db[_0x4c5223(0xf8)][_0x4c5223(0xed)](_0x2d437a)[_0x4c5223(0xe3)](function(_0x3085a6){const _0x2b6936=_0x4c5223;return _0x13fc98[_0x2b6936(0xed)]=_0x3085a6,_0xa24f8b[_0x2b6936(0xc9)][_0x2b6936(0xc4)]&&(_0x5c3e4c[_0x2b6936(0xee)]=[{'all':!![]}]),db['Trigger']['findAll'](_0x5c3e4c);})[_0x4c5223(0xe3)](function(_0x3149d6){const _0x3024c0=_0x4c5223;return _0x13fc98[_0x3024c0(0xca)]=_0x3149d6,_0x13fc98;})[_0x4c5223(0xe3)](respondWithFilteredResult(_0x2acc57,_0x5c3e4c))[_0x4c5223(0xeb)](handleError(_0x2acc57,null));},exports[a763_0xa9bbd1(0xdd)]=function(_0xa57281,_0x209e7a){const _0x8616c0=a763_0xa9bbd1;let _0xb3c89e={'raw':![],'where':{'id':_0xa57281[_0x8616c0(0xf4)]['id']}};const _0x229007={};return _0x229007['model']=_[_0x8616c0(0xde)](db[_0x8616c0(0xf8)][_0x8616c0(0xe7)]),_0x229007[_0x8616c0(0xc9)]=_[_0x8616c0(0xde)](_0xa57281[_0x8616c0(0xc9)]),_0x229007['filters']=_[_0x8616c0(0xd8)](_0x229007[_0x8616c0(0x104)],_0x229007[_0x8616c0(0xc9)]),_0xb3c89e['attributes']=_[_0x8616c0(0xd8)](_0x229007[_0x8616c0(0x104)],qs[_0x8616c0(0xc5)](_0xa57281[_0x8616c0(0xc9)][_0x8616c0(0xc5)])),_0xb3c89e[_0x8616c0(0xfb)]=_0xb3c89e[_0x8616c0(0xfb)][_0x8616c0(0x100)]?_0xb3c89e[_0x8616c0(0xfb)]:_0x229007[_0x8616c0(0x104)],_0xa57281[_0x8616c0(0xc9)][_0x8616c0(0xc4)]&&(_0xb3c89e[_0x8616c0(0xee)]=[{'all':!![]}]),_0xb3c89e=_[_0x8616c0(0xc8)]({},_0xb3c89e,_0xa57281['options']),db[_0x8616c0(0xf8)][_0x8616c0(0xd3)](_0xb3c89e)[_0x8616c0(0xe3)](handleEntityNotFound(_0x209e7a,null))[_0x8616c0(0xe3)](respondWithResult(_0x209e7a,null))['catch'](handleError(_0x209e7a,null));},exports['create']=function(_0x2a3459,_0x35d76b){const _0x5eefb9=a763_0xa9bbd1;return db[_0x5eefb9(0xf8)][_0x5eefb9(0xc1)](_0x2a3459['body'],{})[_0x5eefb9(0xe3)](function(_0xe96949){const _0x7be642=_0x5eefb9,_0x29597a=_0x2a3459[_0x7be642(0xd6)][_0x7be642(0xf2)]({'plain':!![]});if(!_0x29597a)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x29597a[_0x7be642(0xda)]===_0x7be642(0xd6)){const _0x20f222=_0xe96949['get']({'plain':!![]}),_0x40edfb=_0x7be642(0x101);return db[_0x7be642(0xd0)][_0x7be642(0xd3)]({'where':{'name':_0x40edfb,'userProfileId':_0x29597a[_0x7be642(0x102)]},'raw':!![]})[_0x7be642(0xe3)](function(_0x34eeee){const _0x3ed98c=_0x7be642;return _0x34eeee&&_0x34eeee['autoAssociation']===0x0?db['UserProfileResource'][_0x3ed98c(0xc1)]({'name':_0x20f222[_0x3ed98c(0xec)],'resourceId':_0x20f222['id'],'type':_0x34eeee[_0x3ed98c(0xec)],'sectionId':_0x34eeee['id']},{})['then'](function(){return _0xe96949;}):_0xe96949;})[_0x7be642(0xeb)](function(_0x5b347c){const _0x1bfd12=_0x7be642;logger[_0x1bfd12(0xe4)](_0x1bfd12(0xc6),_0x5b347c);throw _0x5b347c;});}return _0xe96949;})[_0x5eefb9(0xe3)](respondWithResult(_0x35d76b,0xc9))['catch'](handleError(_0x35d76b,null));},exports[a763_0xa9bbd1(0xc3)]=function(_0x3c69f8,_0x1b0056){const _0x18a949=a763_0xa9bbd1;return _0x3c69f8['body']['id']&&delete _0x3c69f8[_0x18a949(0xfe)]['id'],db[_0x18a949(0xf8)][_0x18a949(0xd3)]({'where':{'id':_0x3c69f8['params']['id']}})[_0x18a949(0xe3)](handleEntityNotFound(_0x1b0056,null))[_0x18a949(0xe3)](saveUpdates(_0x3c69f8[_0x18a949(0xfe)],null))[_0x18a949(0xe3)](respondWithResult(_0x1b0056,null))[_0x18a949(0xeb)](handleError(_0x1b0056,null));},exports[a763_0xa9bbd1(0xf9)]=function(_0x519e6e,_0x465666){const _0x206de6=a763_0xa9bbd1;return db[_0x206de6(0xf8)][_0x206de6(0xd3)]({'where':{'id':_0x519e6e[_0x206de6(0xf4)]['id']}})[_0x206de6(0xe3)](handleEntityNotFound(_0x465666,null))[_0x206de6(0xe3)](removeEntity(_0x465666,null))['catch'](handleError(_0x465666,null));},exports[a763_0xa9bbd1(0xd2)]=function(_0x124eae,_0x288257){const _0xb49d3b=a763_0xa9bbd1;return _0x124eae[_0xb49d3b(0xfe)]['id']&&delete _0x124eae['body']['id'],db[_0xb49d3b(0xf8)]['findOne']({'where':{'id':_0x124eae[_0xb49d3b(0xf4)]['id']}})[_0xb49d3b(0xe3)](handleEntityNotFound(_0x288257,null))[_0xb49d3b(0xe3)](function(_0x43347c){const _0x5f372c=_0xb49d3b;if(_0x43347c)return _0x124eae[_0x5f372c(0xfe)]['TriggerAllId']=_0x43347c['id'],db['Condition'][_0x5f372c(0xc1)](_0x124eae[_0x5f372c(0xfe)]);})[_0xb49d3b(0xe3)](respondWithResult(_0x288257,null))[_0xb49d3b(0xeb)](handleError(_0x288257,null));},exports[a763_0xa9bbd1(0x105)]=function(_0x817f0,_0x12c8f6){const _0x2c1823=a763_0xa9bbd1;return _0x817f0[_0x2c1823(0xfe)]['id']&&delete _0x817f0['body']['id'],db['Trigger']['findOne']({'where':{'id':_0x817f0['params']['id']}})['then'](handleEntityNotFound(_0x12c8f6,null))['then'](function(_0x4ce577){const _0x4ed762=_0x2c1823;if(_0x4ce577)return _0x817f0[_0x4ed762(0xfe)][_0x4ed762(0xc2)]=_0x4ce577['id'],db[_0x4ed762(0xf1)][_0x4ed762(0xc1)](_0x817f0[_0x4ed762(0xfe)]);})['then'](respondWithResult(_0x12c8f6,null))['catch'](handleError(_0x12c8f6,null));},exports['getAllConditions']=function(_0x1aaef5,_0x465c1){const _0x3af2f6=a763_0xa9bbd1;let _0x115ac0={};const _0x18a152={};let _0x11e98e,_0x53a233;return db[_0x3af2f6(0xf8)][_0x3af2f6(0xd3)]({'where':{'id':_0x1aaef5[_0x3af2f6(0xf4)]['id']}})[_0x3af2f6(0xe3)](handleEntityNotFound(_0x465c1,null))[_0x3af2f6(0xe3)](function(_0x4499fb){const _0x12635f=_0x3af2f6;if(_0x4499fb)return _0x11e98e=_0x4499fb,_0x18a152[_0x12635f(0x104)]=_[_0x12635f(0xde)](db['Condition']['rawAttributes']),_0x18a152[_0x12635f(0xc9)]=_[_0x12635f(0xde)](_0x1aaef5[_0x12635f(0xc9)]),_0x18a152[_0x12635f(0xd1)]=_[_0x12635f(0xd8)](_0x18a152['model'],_0x18a152[_0x12635f(0xc9)]),_0x115ac0[_0x12635f(0xfb)]=_[_0x12635f(0xd8)](_0x18a152[_0x12635f(0x104)],qs['fields'](_0x1aaef5[_0x12635f(0xc9)][_0x12635f(0xc5)])),_0x115ac0[_0x12635f(0xfb)]=_0x115ac0['attributes']['length']?_0x115ac0['attributes']:_0x18a152['model'],_0x115ac0[_0x12635f(0xf0)]=qs[_0x12635f(0xf6)](_0x1aaef5['query']['sort']),_0x115ac0[_0x12635f(0xcc)]=qs[_0x12635f(0xd1)](_[_0x12635f(0xfd)](_0x1aaef5[_0x12635f(0xc9)],_0x18a152[_0x12635f(0xd1)])),_0x1aaef5[_0x12635f(0xc9)][_0x12635f(0xe1)]&&(_0x115ac0['where']=_['merge'](_0x115ac0[_0x12635f(0xcc)],{[Op['or']]:_[_0x12635f(0xe8)](_0x115ac0[_0x12635f(0xfb)],function(_0x1fbf04){const _0xdc958b=_0x12635f,_0x4f77a2={};return _0x4f77a2[_0x1fbf04]={[Op['like']]:'%'+_0x1aaef5[_0xdc958b(0xc9)][_0xdc958b(0xe1)]+'%'},_0x4f77a2;})})),_0x115ac0=_['merge']({},_0x115ac0,_0x1aaef5['options']),_0x11e98e[_0x12635f(0xcf)](_0x115ac0);})[_0x3af2f6(0xe3)](function(_0x4d1633){const _0x5ab3b2=_0x3af2f6;if(_0x4d1633)return _0x53a233=_0x4d1633[_0x5ab3b2(0x100)],typeof _0x1aaef5['query']['nolimit']===_0x5ab3b2(0xd7)&&(_0x115ac0[_0x5ab3b2(0xce)]=qs[_0x5ab3b2(0xce)](_0x1aaef5[_0x5ab3b2(0xc9)][_0x5ab3b2(0xce)]),_0x115ac0['offset']=qs['offset'](_0x1aaef5[_0x5ab3b2(0xc9)][_0x5ab3b2(0xfc)])),_0x11e98e['getAllConditions'](_0x115ac0);})[_0x3af2f6(0xe3)](function(_0x389392){if(_0x389392)return _0x389392?{'count':_0x53a233,'rows':_0x389392}:null;})[_0x3af2f6(0xe3)](respondWithResult(_0x465c1,null))[_0x3af2f6(0xeb)](handleError(_0x465c1,null));},exports[a763_0xa9bbd1(0xcb)]=function(_0x472498,_0x1fe01d){const _0x5ed7ab=a763_0xa9bbd1;let _0x343ea9={};const _0x5dcc53={};let _0x2b05cc,_0x102f46;return db[_0x5ed7ab(0xf8)]['findOne']({'where':{'id':_0x472498[_0x5ed7ab(0xf4)]['id']}})[_0x5ed7ab(0xe3)](handleEntityNotFound(_0x1fe01d,null))[_0x5ed7ab(0xe3)](function(_0x113667){const _0x1cb30f=_0x5ed7ab;if(_0x113667)return _0x2b05cc=_0x113667,_0x5dcc53['model']=_[_0x1cb30f(0xde)](db[_0x1cb30f(0xf1)][_0x1cb30f(0xe7)]),_0x5dcc53[_0x1cb30f(0xc9)]=_[_0x1cb30f(0xde)](_0x472498[_0x1cb30f(0xc9)]),_0x5dcc53[_0x1cb30f(0xd1)]=_['intersection'](_0x5dcc53[_0x1cb30f(0x104)],_0x5dcc53[_0x1cb30f(0xc9)]),_0x343ea9[_0x1cb30f(0xfb)]=_[_0x1cb30f(0xd8)](_0x5dcc53['model'],qs[_0x1cb30f(0xc5)](_0x472498[_0x1cb30f(0xc9)][_0x1cb30f(0xc5)])),_0x343ea9[_0x1cb30f(0xfb)]=_0x343ea9['attributes'][_0x1cb30f(0x100)]?_0x343ea9['attributes']:_0x5dcc53['model'],_0x343ea9['order']=qs[_0x1cb30f(0xf6)](_0x472498[_0x1cb30f(0xc9)][_0x1cb30f(0xf6)]),_0x343ea9[_0x1cb30f(0xcc)]=qs[_0x1cb30f(0xd1)](_[_0x1cb30f(0xfd)](_0x472498[_0x1cb30f(0xc9)],_0x5dcc53[_0x1cb30f(0xd1)])),_0x472498[_0x1cb30f(0xc9)][_0x1cb30f(0xe1)]&&(_0x343ea9[_0x1cb30f(0xcc)]=_[_0x1cb30f(0xc8)](_0x343ea9['where'],{[Op['or']]:_['map'](_0x343ea9[_0x1cb30f(0xfb)],function(_0x54d4a1){const _0xe74ba0=_0x1cb30f,_0x57e641={};return _0x57e641[_0x54d4a1]={[Op[_0xe74ba0(0xef)]]:'%'+_0x472498[_0xe74ba0(0xc9)][_0xe74ba0(0xe1)]+'%'},_0x57e641;})})),_0x343ea9=_[_0x1cb30f(0xc8)]({},_0x343ea9,_0x472498['options']),_0x2b05cc['getAnyConditions'](_0x343ea9);})['then'](function(_0x1fcfb6){const _0x96023b=_0x5ed7ab;if(_0x1fcfb6)return _0x102f46=_0x1fcfb6[_0x96023b(0x100)],typeof _0x472498[_0x96023b(0xc9)][_0x96023b(0xe5)]===_0x96023b(0xd7)&&(_0x343ea9[_0x96023b(0xce)]=qs['limit'](_0x472498[_0x96023b(0xc9)]['limit']),_0x343ea9[_0x96023b(0xfc)]=qs['offset'](_0x472498[_0x96023b(0xc9)][_0x96023b(0xfc)])),_0x2b05cc['getAnyConditions'](_0x343ea9);})['then'](function(_0x3a732b){if(_0x3a732b)return _0x3a732b?{'count':_0x102f46,'rows':_0x3a732b}:null;})['then'](respondWithResult(_0x1fe01d,null))[_0x5ed7ab(0xeb)](handleError(_0x1fe01d,null));},exports[a763_0xa9bbd1(0xd4)]=function(_0x5c706a,_0x364c7b){const _0x142b1a=a763_0xa9bbd1;return _0x5c706a['body']['id']&&delete _0x5c706a[_0x142b1a(0xfe)]['id'],db[_0x142b1a(0xf8)][_0x142b1a(0xd3)]({'where':{'id':_0x5c706a[_0x142b1a(0xf4)]['id']}})[_0x142b1a(0xe3)](handleEntityNotFound(_0x364c7b,null))[_0x142b1a(0xe3)](function(_0x240650){const _0x97d7dd=_0x142b1a;if(_0x240650)return _0x5c706a['body']['TriggerId']=_0x240650['id'],db[_0x97d7dd(0xe2)][_0x97d7dd(0xc1)](_0x5c706a[_0x97d7dd(0xfe)]);})[_0x142b1a(0xe3)](respondWithResult(_0x364c7b,null))[_0x142b1a(0xeb)](handleError(_0x364c7b,null));},exports[a763_0xa9bbd1(0xf7)]=function(_0x5368bb,_0xb980c){const _0x518687=a763_0xa9bbd1;let _0x105100={};const _0x576d71={};let _0x4a596d,_0x417293;return db[_0x518687(0xf8)][_0x518687(0xd3)]({'where':{'id':_0x5368bb[_0x518687(0xf4)]['id']}})['then'](handleEntityNotFound(_0xb980c,null))[_0x518687(0xe3)](function(_0x5e5491){const _0x479980=_0x518687;if(_0x5e5491)return _0x4a596d=_0x5e5491,_0x576d71['model']=_['keys'](db['Action']['rawAttributes']),_0x576d71[_0x479980(0xc9)]=_[_0x479980(0xde)](_0x5368bb[_0x479980(0xc9)]),_0x576d71[_0x479980(0xd1)]=_[_0x479980(0xd8)](_0x576d71[_0x479980(0x104)],_0x576d71[_0x479980(0xc9)]),_0x105100['attributes']=_[_0x479980(0xd8)](_0x576d71['model'],qs['fields'](_0x5368bb['query'][_0x479980(0xc5)])),_0x105100[_0x479980(0xfb)]=_0x105100[_0x479980(0xfb)][_0x479980(0x100)]?_0x105100[_0x479980(0xfb)]:_0x576d71['model'],_0x105100['order']=qs[_0x479980(0xf6)](_0x5368bb[_0x479980(0xc9)][_0x479980(0xf6)]),_0x105100[_0x479980(0xcc)]=qs[_0x479980(0xd1)](_['pick'](_0x5368bb['query'],_0x576d71[_0x479980(0xd1)])),_0x5368bb[_0x479980(0xc9)][_0x479980(0xe1)]&&(_0x105100['where']=_[_0x479980(0xc8)](_0x105100[_0x479980(0xcc)],{[Op['or']]:_[_0x479980(0xe8)](_0x105100[_0x479980(0xfb)],function(_0x54a3fe){const _0x47428b=_0x479980,_0x572ca9={};return _0x572ca9[_0x54a3fe]={[Op[_0x47428b(0xef)]]:'%'+_0x5368bb[_0x47428b(0xc9)][_0x47428b(0xe1)]+'%'},_0x572ca9;})})),_0x105100=_['merge']({},_0x105100,_0x5368bb['options']),_0x4a596d['getActions'](_0x105100);})['then'](function(_0x5e8018){const _0x565e91=_0x518687;if(_0x5e8018)return _0x417293=_0x5e8018[_0x565e91(0x100)],typeof _0x5368bb[_0x565e91(0xc9)][_0x565e91(0xe5)]==='undefined'&&(_0x105100[_0x565e91(0xce)]=qs['limit'](_0x5368bb['query'][_0x565e91(0xce)]),_0x105100[_0x565e91(0xfc)]=qs[_0x565e91(0xfc)](_0x5368bb[_0x565e91(0xc9)]['offset'])),_0x4a596d[_0x565e91(0xf7)](_0x105100);})[_0x518687(0xe3)](function(_0x40b7d0){if(_0x40b7d0)return _0x40b7d0?{'count':_0x417293,'rows':_0x40b7d0}:null;})[_0x518687(0xe3)](respondWithResult(_0xb980c,null))[_0x518687(0xeb)](handleError(_0xb980c,null));}; \ No newline at end of file diff --git a/server/api/trigger/trigger.model.js b/server/api/trigger/trigger.model.js index 17a28b7..ec8f69a 100644 --- a/server/api/trigger/trigger.model.js +++ b/server/api/trigger/trigger.model.js @@ -1 +1 @@ -const a764_0xb42f=['./trigger.options','Trigger','function','exports','./trigger.attributes','init'];(function(_0x5d86d4,_0x59d417){const _0xb42f3c=function(_0x419371){while(--_0x419371){_0x5d86d4['push'](_0x5d86d4['shift']());}};_0xb42f3c(++_0x59d417);}(a764_0xb42f,0x143));const a764_0x4193=function(_0x5d86d4,_0x59d417){_0x5d86d4=_0x5d86d4-0x70;let _0xb42f3c=a764_0xb42f[_0x5d86d4];return _0xb42f3c;};const a764_0x26cb95=a764_0x4193;'use strict';const {Model}=require('sequelize'),{attributes}=require(a764_0x26cb95(0x75)),{options}=require(a764_0x26cb95(0x71));class Trigger extends Model{}function init(_0x539f03,_0x4df0bf){const _0x116a61=a764_0x26cb95,_0x1318f8=options(_0x539f03),_0x53d904=typeof _0x4df0bf===_0x116a61(0x73)?_0x4df0bf(_0x1318f8):_0x1318f8;return Trigger[_0x116a61(0x70)](attributes,_0x53d904),Trigger;}module[a764_0x26cb95(0x74)][a764_0x26cb95(0x72)]=Trigger,module[a764_0x26cb95(0x74)]['init']=init; \ No newline at end of file +const a764_0x187d=['./trigger.options','Trigger','sequelize','exports','init','function'];(function(_0x1860ce,_0x146e42){const _0x187d9d=function(_0x3b51cb){while(--_0x3b51cb){_0x1860ce['push'](_0x1860ce['shift']());}};_0x187d9d(++_0x146e42);}(a764_0x187d,0x129));const a764_0x3b51=function(_0x1860ce,_0x146e42){_0x1860ce=_0x1860ce-0x196;let _0x187d9d=a764_0x187d[_0x1860ce];return _0x187d9d;};const a764_0x4f8373=a764_0x3b51;'use strict';const {Model}=require(a764_0x4f8373(0x19b)),{attributes}=require('./trigger.attributes'),{options}=require(a764_0x4f8373(0x199));class Trigger extends Model{}function init(_0x38b83d,_0x35a386){const _0x5bcc50=a764_0x4f8373,_0x4eb570=options(_0x38b83d),_0x4fa457=typeof _0x35a386===_0x5bcc50(0x198)?_0x35a386(_0x4eb570):_0x4eb570;return Trigger['init'](attributes,_0x4fa457),Trigger;}module[a764_0x4f8373(0x196)][a764_0x4f8373(0x19a)]=Trigger,module[a764_0x4f8373(0x196)][a764_0x4f8373(0x197)]=init; \ No newline at end of file diff --git a/server/api/trigger/trigger.options.js b/server/api/trigger/trigger.options.js index dc3e63f..aef4f2b 100644 --- a/server/api/trigger/trigger.options.js +++ b/server/api/trigger/trigger.options.js @@ -1 +1 @@ -var a765_0x1f19=['options','exports'];(function(_0x556f53,_0x383eee){var _0x1f1980=function(_0x46089d){while(--_0x46089d){_0x556f53['push'](_0x556f53['shift']());}};_0x1f1980(++_0x383eee);}(a765_0x1f19,0x13c));var a765_0x4608=function(_0x556f53,_0x383eee){_0x556f53=_0x556f53-0xe3;var _0x1f1980=a765_0x1f19[_0x556f53];return _0x1f1980;};var a765_0x153e0a=a765_0x4608;function options(_0x842c6c){return{'sequelize':_0x842c6c,'tableName':'tools_triggers','paranoid':![],'indexes':[],'timestamps':!![]};}module[a765_0x153e0a(0xe4)][a765_0x153e0a(0xe3)]=options; \ No newline at end of file +var a765_0x4014=['tools_triggers','exports','options'];(function(_0x1bbdbf,_0x15844b){var _0x40148d=function(_0x28a8dd){while(--_0x28a8dd){_0x1bbdbf['push'](_0x1bbdbf['shift']());}};_0x40148d(++_0x15844b);}(a765_0x4014,0x13f));var a765_0x28a8=function(_0x1bbdbf,_0x15844b){_0x1bbdbf=_0x1bbdbf-0x114;var _0x40148d=a765_0x4014[_0x1bbdbf];return _0x40148d;};var a765_0x1a20f5=a765_0x28a8;function options(_0x566181){var _0x3c60b3=a765_0x28a8;return{'sequelize':_0x566181,'tableName':_0x3c60b3(0x116),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a765_0x1a20f5(0x114)][a765_0x1a20f5(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 f8c0990..ccabc0a 100644 --- a/server/api/trigger/trigger.rpc.js +++ b/server/api/trigger/trigger.rpc.js @@ -1 +1 @@ -const a766_0xb8cf=['Trigger','where','then','../../mysqldb','../../config/logger','limit','ShowTrigger','debug','model','options','GetTrigger','attributes','catch','include','message','raw','stringify','rpc','info','findOne','map','error'];(function(_0x3e1e18,_0x5912f9){const _0xb8cf7f=function(_0x2717c8){while(--_0x2717c8){_0x3e1e18['push'](_0x3e1e18['shift']());}};_0xb8cf7f(++_0x5912f9);}(a766_0xb8cf,0xf0));const a766_0x2717=function(_0x3e1e18,_0x5912f9){_0x3e1e18=_0x3e1e18-0xab;let _0xb8cf7f=a766_0xb8cf[_0x3e1e18];return _0xb8cf7f;};const a766_0x58b1c6=a766_0x2717;'use strict';const _=require('lodash'),db=require(a766_0x58b1c6(0xb0))['db'],logger=require(a766_0x58b1c6(0xb1))(a766_0x58b1c6(0xbe));exports[a766_0x58b1c6(0xb7)]=function(_0x5549d0){const _0x2cab43=this;return new Promise(function(_0x3dda63,_0x14745f){const _0x250a4c=a766_0x2717;return db[_0x250a4c(0xad)]['findAll']({'raw':_0x5549d0[_0x250a4c(0xb6)]?_0x5549d0[_0x250a4c(0xb6)]['raw']===undefined?!![]:![]:!![],'where':_0x5549d0['options']?_0x5549d0[_0x250a4c(0xb6)][_0x250a4c(0xae)]||null:null,'attributes':_0x5549d0[_0x250a4c(0xb6)]?_0x5549d0[_0x250a4c(0xb6)]['attributes']||null:null,'limit':_0x5549d0[_0x250a4c(0xb6)]?_0x5549d0['options'][_0x250a4c(0xb2)]||null:null,'include':_0x5549d0['options']?_0x5549d0[_0x250a4c(0xb6)][_0x250a4c(0xba)]?_[_0x250a4c(0xab)](_0x5549d0[_0x250a4c(0xb6)]['include'],function(_0x5a8dc8){const _0x2cfe32=_0x250a4c;return{'model':db[_0x5a8dc8['model']],'as':_0x5a8dc8['as'],'attributes':_0x5a8dc8['attributes'],'include':_0x5a8dc8[_0x2cfe32(0xba)]?_['map'](_0x5a8dc8[_0x2cfe32(0xba)],function(_0x1e43ec){const _0x35b819=_0x2cfe32;return{'model':db[_0x1e43ec[_0x35b819(0xb5)]],'as':_0x1e43ec['as'],'attributes':_0x1e43ec['attributes'],'include':_0x1e43ec['include']?_[_0x35b819(0xab)](_0x1e43ec[_0x35b819(0xba)],function(_0x355fa0){const _0x433abc=_0x35b819;return{'model':db[_0x355fa0[_0x433abc(0xb5)]],'as':_0x355fa0['as'],'attributes':_0x355fa0[_0x433abc(0xb8)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x523d81){const _0x4b631a=_0x250a4c;logger[_0x4b631a(0xbf)]('GetTrigger',_0x5549d0),logger['debug'](_0x4b631a(0xb7),_0x5549d0,JSON[_0x4b631a(0xbd)](_0x523d81)),_0x3dda63(_0x523d81);})[_0x250a4c(0xb9)](function(_0x4e5e6e){const _0x1a32c8=_0x250a4c;logger[_0x1a32c8(0xac)](_0x1a32c8(0xb7),_0x4e5e6e['message'],_0x5549d0),_0x14745f(_0x2cab43['error'](0x1f4,_0x4e5e6e['message']));});});},exports[a766_0x58b1c6(0xb3)]=function(_0x5893c3){const _0x180799=this;return new Promise(function(_0x2c4258,_0x238d50){const _0x170fa7=a766_0x2717;return db['Trigger'][_0x170fa7(0xc0)]({'raw':_0x5893c3[_0x170fa7(0xb6)]?_0x5893c3['options'][_0x170fa7(0xbc)]===undefined?!![]:![]:!![],'where':_0x5893c3[_0x170fa7(0xb6)]?_0x5893c3[_0x170fa7(0xb6)][_0x170fa7(0xae)]||null:null,'attributes':_0x5893c3[_0x170fa7(0xb6)]?_0x5893c3[_0x170fa7(0xb6)][_0x170fa7(0xb8)]||null:null,'include':_0x5893c3['options']?_0x5893c3[_0x170fa7(0xb6)][_0x170fa7(0xba)]?_['map'](_0x5893c3['options'][_0x170fa7(0xba)],function(_0x27b620){const _0x282112=_0x170fa7;return{'model':db[_0x27b620['model']],'as':_0x27b620['as'],'attributes':_0x27b620[_0x282112(0xb8)],'include':_0x27b620['include']?_[_0x282112(0xab)](_0x27b620[_0x282112(0xba)],function(_0x31f574){const _0x70eee3=_0x282112;return{'model':db[_0x31f574[_0x70eee3(0xb5)]],'as':_0x31f574['as'],'attributes':_0x31f574[_0x70eee3(0xb8)],'include':_0x31f574[_0x70eee3(0xba)]?_[_0x70eee3(0xab)](_0x31f574['include'],function(_0x3951ff){return{'model':db[_0x3951ff['model']],'as':_0x3951ff['as'],'attributes':_0x3951ff['attributes']};}):[]};}):[]};}):[]:[]})[_0x170fa7(0xaf)](function(_0x2edb19){const _0x56f69b=_0x170fa7;logger['info'](_0x56f69b(0xb3),_0x5893c3),logger[_0x56f69b(0xb4)]('ShowTrigger',_0x5893c3,JSON[_0x56f69b(0xbd)](_0x2edb19)),_0x2c4258(_0x2edb19);})[_0x170fa7(0xb9)](function(_0x191503){const _0x403d19=_0x170fa7;logger[_0x403d19(0xac)](_0x403d19(0xb3),_0x191503[_0x403d19(0xbb)],_0x5893c3),_0x238d50(_0x180799[_0x403d19(0xac)](0x1f4,_0x191503[_0x403d19(0xbb)]));});});}; \ No newline at end of file +const a766_0x4245=['rpc','../../mysqldb','include','message','model','GetTrigger','findAll','debug','ShowTrigger','Trigger','attributes','error','catch','options','info','map','lodash','where','../../config/logger','limit','raw'];(function(_0x4801b0,_0x1a311e){const _0x424549=function(_0x287e8c){while(--_0x287e8c){_0x4801b0['push'](_0x4801b0['shift']());}};_0x424549(++_0x1a311e);}(a766_0x4245,0xea));const a766_0x287e=function(_0x4801b0,_0x1a311e){_0x4801b0=_0x4801b0-0x18f;let _0x424549=a766_0x4245[_0x4801b0];return _0x424549;};const a766_0xc701e3=a766_0x287e;'use strict';const _=require(a766_0xc701e3(0x19c)),db=require(a766_0xc701e3(0x1a2))['db'],logger=require(a766_0xc701e3(0x19e))(a766_0xc701e3(0x1a1));exports['GetTrigger']=function(_0x5cb760){const _0x321592=this;return new Promise(function(_0x450765,_0x41c681){const _0x50ab79=a766_0x287e;return db[_0x50ab79(0x195)][_0x50ab79(0x192)]({'raw':_0x5cb760[_0x50ab79(0x199)]?_0x5cb760['options']['raw']===undefined?!![]:![]:!![],'where':_0x5cb760[_0x50ab79(0x199)]?_0x5cb760[_0x50ab79(0x199)][_0x50ab79(0x19d)]||null:null,'attributes':_0x5cb760['options']?_0x5cb760['options'][_0x50ab79(0x196)]||null:null,'limit':_0x5cb760[_0x50ab79(0x199)]?_0x5cb760[_0x50ab79(0x199)][_0x50ab79(0x19f)]||null:null,'include':_0x5cb760[_0x50ab79(0x199)]?_0x5cb760[_0x50ab79(0x199)][_0x50ab79(0x1a3)]?_['map'](_0x5cb760[_0x50ab79(0x199)][_0x50ab79(0x1a3)],function(_0x5aaa7c){const _0x330da2=_0x50ab79;return{'model':db[_0x5aaa7c[_0x330da2(0x190)]],'as':_0x5aaa7c['as'],'attributes':_0x5aaa7c[_0x330da2(0x196)],'include':_0x5aaa7c['include']?_['map'](_0x5aaa7c['include'],function(_0x1250ab){const _0x1ade5c=_0x330da2;return{'model':db[_0x1250ab[_0x1ade5c(0x190)]],'as':_0x1250ab['as'],'attributes':_0x1250ab[_0x1ade5c(0x196)],'include':_0x1250ab['include']?_[_0x1ade5c(0x19b)](_0x1250ab['include'],function(_0x2fce68){const _0x2f1cfa=_0x1ade5c;return{'model':db[_0x2fce68[_0x2f1cfa(0x190)]],'as':_0x2fce68['as'],'attributes':_0x2fce68[_0x2f1cfa(0x196)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x41fa0c){const _0x41d703=_0x50ab79;logger[_0x41d703(0x19a)](_0x41d703(0x191),_0x5cb760),logger[_0x41d703(0x193)]('GetTrigger',_0x5cb760,JSON['stringify'](_0x41fa0c)),_0x450765(_0x41fa0c);})[_0x50ab79(0x198)](function(_0x4870ca){const _0x5bbe90=_0x50ab79;logger['error']('GetTrigger',_0x4870ca[_0x5bbe90(0x18f)],_0x5cb760),_0x41c681(_0x321592[_0x5bbe90(0x197)](0x1f4,_0x4870ca['message']));});});},exports[a766_0xc701e3(0x194)]=function(_0x352b7e){const _0x2c2503=this;return new Promise(function(_0x54df11,_0x27848c){const _0x571a9b=a766_0x287e;return db[_0x571a9b(0x195)]['findOne']({'raw':_0x352b7e[_0x571a9b(0x199)]?_0x352b7e[_0x571a9b(0x199)][_0x571a9b(0x1a0)]===undefined?!![]:![]:!![],'where':_0x352b7e[_0x571a9b(0x199)]?_0x352b7e[_0x571a9b(0x199)][_0x571a9b(0x19d)]||null:null,'attributes':_0x352b7e[_0x571a9b(0x199)]?_0x352b7e[_0x571a9b(0x199)][_0x571a9b(0x196)]||null:null,'include':_0x352b7e['options']?_0x352b7e[_0x571a9b(0x199)][_0x571a9b(0x1a3)]?_['map'](_0x352b7e[_0x571a9b(0x199)][_0x571a9b(0x1a3)],function(_0xa95f90){const _0x5e9253=_0x571a9b;return{'model':db[_0xa95f90[_0x5e9253(0x190)]],'as':_0xa95f90['as'],'attributes':_0xa95f90[_0x5e9253(0x196)],'include':_0xa95f90[_0x5e9253(0x1a3)]?_[_0x5e9253(0x19b)](_0xa95f90[_0x5e9253(0x1a3)],function(_0x2389ae){const _0x52f030=_0x5e9253;return{'model':db[_0x2389ae[_0x52f030(0x190)]],'as':_0x2389ae['as'],'attributes':_0x2389ae[_0x52f030(0x196)],'include':_0x2389ae[_0x52f030(0x1a3)]?_[_0x52f030(0x19b)](_0x2389ae[_0x52f030(0x1a3)],function(_0x5b8ab7){const _0x588623=_0x52f030;return{'model':db[_0x5b8ab7[_0x588623(0x190)]],'as':_0x5b8ab7['as'],'attributes':_0x5b8ab7['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x865ca3){const _0x42f7cb=_0x571a9b;logger[_0x42f7cb(0x19a)]('ShowTrigger',_0x352b7e),logger[_0x42f7cb(0x193)]('ShowTrigger',_0x352b7e,JSON['stringify'](_0x865ca3)),_0x54df11(_0x865ca3);})[_0x571a9b(0x198)](function(_0x2cc5b3){const _0x4fa826=_0x571a9b;logger['error'](_0x4fa826(0x194),_0x2cc5b3['message'],_0x352b7e),_0x27848c(_0x2c2503['error'](0x1f4,_0x2cc5b3[_0x4fa826(0x18f)]));});});}; \ No newline at end of file diff --git a/server/api/trunk/index.js b/server/api/trunk/index.js index f035cd9..bc781c0 100644 --- a/server/api/trunk/index.js +++ b/server/api/trunk/index.js @@ -1 +1 @@ -const a767_0x38dc=['destroy','exports','post','create','put','express','../../components/auth/service','./trunk.controller','update','/:id','index','isAuthenticated','delete','get','show'];(function(_0x5174cd,_0x10c320){const _0x38dc6d=function(_0x3d68c1){while(--_0x3d68c1){_0x5174cd['push'](_0x5174cd['shift']());}};_0x38dc6d(++_0x10c320);}(a767_0x38dc,0x151));const a767_0x3d68=function(_0x5174cd,_0x10c320){_0x5174cd=_0x5174cd-0x15a;let _0x38dc6d=a767_0x38dc[_0x5174cd];return _0x38dc6d;};const a767_0x295a05=a767_0x3d68;'use strict';const express=require(a767_0x295a05(0x167)),router=express['Router'](),auth=require(a767_0x295a05(0x168)),controller=require(a767_0x295a05(0x15a));router[a767_0x295a05(0x160)]('/',auth['isAuthenticated'](),controller[a767_0x295a05(0x15d)]),router['get']('/:id',auth[a767_0x295a05(0x15e)](),controller[a767_0x295a05(0x161)]),router[a767_0x295a05(0x164)]('/:id/clone',auth[a767_0x295a05(0x15e)](),controller['clone']),router[a767_0x295a05(0x164)]('/',auth[a767_0x295a05(0x15e)](),controller[a767_0x295a05(0x165)]),router[a767_0x295a05(0x166)](a767_0x295a05(0x15c),auth[a767_0x295a05(0x15e)](),controller[a767_0x295a05(0x15b)]),router[a767_0x295a05(0x15f)]('/:id',auth[a767_0x295a05(0x15e)](),controller[a767_0x295a05(0x162)]),module[a767_0x295a05(0x163)]=router; \ No newline at end of file +const a767_0x2215=['express','/:id','create','put','index','isAuthenticated','destroy','post','get','Router','show','../../components/auth/service','./trunk.controller','update','/:id/clone'];(function(_0x59912e,_0x3ee01a){const _0x221570=function(_0x2a45ba){while(--_0x2a45ba){_0x59912e['push'](_0x59912e['shift']());}};_0x221570(++_0x3ee01a);}(a767_0x2215,0x186));const a767_0x2a45=function(_0x59912e,_0x3ee01a){_0x59912e=_0x59912e-0x1a2;let _0x221570=a767_0x2215[_0x59912e];return _0x221570;};const a767_0x3daa54=a767_0x2a45;'use strict';const express=require(a767_0x3daa54(0x1a2)),router=express[a767_0x3daa54(0x1ab)](),auth=require(a767_0x3daa54(0x1ad)),controller=require(a767_0x3daa54(0x1ae));router['get']('/',auth[a767_0x3daa54(0x1a7)](),controller[a767_0x3daa54(0x1a6)]),router[a767_0x3daa54(0x1aa)]('/:id',auth[a767_0x3daa54(0x1a7)](),controller[a767_0x3daa54(0x1ac)]),router[a767_0x3daa54(0x1a9)](a767_0x3daa54(0x1b0),auth['isAuthenticated'](),controller['clone']),router[a767_0x3daa54(0x1a9)]('/',auth[a767_0x3daa54(0x1a7)](),controller[a767_0x3daa54(0x1a4)]),router[a767_0x3daa54(0x1a5)](a767_0x3daa54(0x1a3),auth[a767_0x3daa54(0x1a7)](),controller[a767_0x3daa54(0x1af)]),router['delete']('/:id',auth[a767_0x3daa54(0x1a7)](),controller[a767_0x3daa54(0x1a8)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/trunk/trunk.attributes.js b/server/api/trunk/trunk.attributes.js index 3fa796e..6fb9830 100644 --- a/server/api/trunk/trunk.attributes.js +++ b/server/api/trunk/trunk.attributes.js @@ -1 +1 @@ -const a768_0x2979=['setDataValue','ulaw;alaw;gsm','update,nonat','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22alaw\x22]','shortinfo','active','info','ALLOWED','join','auto','all','nonat','never','allow','originate','name','update','split','PROHIB_PASSED_SCREEN','INTEGER','force_rport,comedia','certificate','yes','PROHIB','friend','getDataValue','transport','attributes','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]','ALLOWED_PASSED_SCREEN','sequelize','PROHIB_FAILED_SCREEN','\x22\x22\x20<>','refuse','dynamic','exports','PROHIB_NOT_SCREENED','pai','rfc2833','uac','inband','from-voip-provider','ALLOWED_FAILED_SCREEN','ENUM','always','udp','BOOLEAN','insecure','STRING','fingerprint','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]','peer','uas','port,invite','nat','accept'];(function(_0xba72dc,_0x615acc){const _0x29796c=function(_0x4ac38e){while(--_0x4ac38e){_0xba72dc['push'](_0xba72dc['shift']());}};_0x29796c(++_0x615acc);}(a768_0x2979,0x1d4));const a768_0x4ac3=function(_0xba72dc,_0x615acc){_0xba72dc=_0xba72dc-0xa6;let _0x29796c=a768_0x2979[_0xba72dc];return _0x29796c;};const a768_0xaffc84=a768_0x4ac3;'use strict';const {DataTypes}=require(a768_0xaffc84(0xb0)),attributes={'name':{'type':DataTypes[a768_0xaffc84(0xc2)],'allowNull':![],'unique':a768_0xaffc84(0xd9),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':DataTypes['ENUM'](a768_0xaffc84(0xaa),'user',a768_0xaffc84(0xc5)),'allowNull':![],'defaultValue':a768_0xaffc84(0xaa)},'context':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':a768_0xaffc84(0xbb)},'callingpres':{'type':DataTypes['ENUM']('ALLOWED_NOT_SCREENED',a768_0xaffc84(0xaf),a768_0xaffc84(0xbc),a768_0xaffc84(0xd1),a768_0xaffc84(0xb6),a768_0xaffc84(0xdc),a768_0xaffc84(0xb1),a768_0xaffc84(0xa9))},'deny':{'type':DataTypes[a768_0xaffc84(0xc2)]},'permit':{'type':DataTypes[a768_0xaffc84(0xc2)]},'secret':{'type':DataTypes[a768_0xaffc84(0xc2)]},'md5secret':{'type':DataTypes[a768_0xaffc84(0xc2)]},'remotesecret':{'type':DataTypes[a768_0xaffc84(0xc2)]},'transport':{'type':DataTypes[a768_0xaffc84(0xc2)],'defaultValue':a768_0xaffc84(0xbf),'set':function(_0x17a316){const _0xe325f5=a768_0xaffc84;this[_0xe325f5(0xca)](_0xe325f5(0xac),_0x17a316?_0x17a316[_0xe325f5(0xd2)](','):null);},'get':function(){const _0x10cc58=a768_0xaffc84;return this[_0x10cc58(0xab)](_0x10cc58(0xac))?this[_0x10cc58(0xab)](_0x10cc58(0xac))['split'](','):null;},'comment':a768_0xaffc84(0xae)},'dtmfmode':{'type':DataTypes[a768_0xaffc84(0xbd)]('rfc2833',a768_0xaffc84(0xd0),a768_0xaffc84(0xce),a768_0xaffc84(0xba),a768_0xaffc84(0xd3)),'defaultValue':a768_0xaffc84(0xb8)},'directmedia':{'type':DataTypes[a768_0xaffc84(0xbd)](a768_0xaffc84(0xa8),'no',a768_0xaffc84(0xd5),a768_0xaffc84(0xda),'outgoing'),'defaultValue':'no'},'directrtpsetup':{'type':DataTypes[a768_0xaffc84(0xbd)](a768_0xaffc84(0xa8),'no'),'defaultValue':'no'},'directmediapermit':{'type':DataTypes[a768_0xaffc84(0xc2)]},'directmediadeny':{'type':DataTypes[a768_0xaffc84(0xc2)]},'nat':{'type':DataTypes[a768_0xaffc84(0xc2)],'defaultValue':a768_0xaffc84(0xa6),'set':function(_0x13b3d2){const _0x14e644=a768_0xaffc84;this['setDataValue']('nat',_0x13b3d2?_0x13b3d2[_0x14e644(0xd2)](','):null);},'get':function(){const _0x526c8d=a768_0xaffc84;return this[_0x526c8d(0xab)](_0x526c8d(0xc8))?this[_0x526c8d(0xab)](_0x526c8d(0xc8))[_0x526c8d(0xdb)](','):null;},'comment':a768_0xaffc84(0xc4)},'callgroup':{'type':DataTypes[a768_0xaffc84(0xc2)]},'namedcallgroup':{'type':DataTypes[a768_0xaffc84(0xc2)]},'pickupgroup':{'type':DataTypes[a768_0xaffc84(0xc2)]},'namedpickupgroup':{'type':DataTypes['STRING']},'language':{'type':DataTypes['STRING'],'defaultValue':'en'},'tonezone':{'type':DataTypes[a768_0xaffc84(0xc2)],'allowNull':!![]},'disallow':{'type':DataTypes[a768_0xaffc84(0xc2)],'defaultValue':a768_0xaffc84(0xd4)},'allow':{'type':DataTypes[a768_0xaffc84(0xc2)],'allowNull':![],'defaultValue':a768_0xaffc84(0xcb),'set':function(_0x58d780){const _0x5a5908=a768_0xaffc84;this[_0x5a5908(0xca)](_0x5a5908(0xd7),_0x58d780?_0x58d780[_0x5a5908(0xd2)](';'):_0x5a5908(0xcb));},'get':function(){const _0x43f184=a768_0xaffc84;return this['getDataValue'](_0x43f184(0xd7))?this[_0x43f184(0xab)](_0x43f184(0xd7))[_0x43f184(0xdb)](';'):null;},'comment':a768_0xaffc84(0xcd)},'autoframing':{'type':DataTypes[a768_0xaffc84(0xbd)]('yes','no')},'insecure':{'type':DataTypes['STRING'],'defaultValue':a768_0xaffc84(0xc7),'set':function(_0x43024f){const _0x5c9511=a768_0xaffc84;this['setDataValue'](_0x5c9511(0xc1),_0x43024f?_0x43024f[_0x5c9511(0xd2)](','):null);},'get':function(){const _0x21b458=a768_0xaffc84;return this['getDataValue'](_0x21b458(0xc1))?this['getDataValue'](_0x21b458(0xc1))[_0x21b458(0xdb)](','):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]'},'trustrpid':{'type':DataTypes[a768_0xaffc84(0xbd)]('yes','no'),'defaultValue':'no'},'trust_id_outbound':{'type':DataTypes[a768_0xaffc84(0xbd)]('yes','no'),'defaultValue':'no'},'progressinband':{'type':DataTypes['ENUM'](a768_0xaffc84(0xa8),'no',a768_0xaffc84(0xd6))},'promiscredir':{'type':DataTypes[a768_0xaffc84(0xbd)]('yes','no')},'useclientcode':{'type':DataTypes[a768_0xaffc84(0xbd)](a768_0xaffc84(0xa8),'no')},'accountcode':{'type':DataTypes[a768_0xaffc84(0xdd)]({'length':0xb})},'setvar':{'type':DataTypes[a768_0xaffc84(0xc2)]},'callerid':{'type':DataTypes['STRING'],'defaultValue':a768_0xaffc84(0xb2)},'amaflags':{'type':DataTypes[a768_0xaffc84(0xc2)]},'callcounter':{'type':DataTypes[a768_0xaffc84(0xbd)]('yes','no'),'defaultValue':a768_0xaffc84(0xa8)},'busylevel':{'type':DataTypes[a768_0xaffc84(0xdd)]({'length':0xb})},'allowoverlap':{'type':DataTypes[a768_0xaffc84(0xbd)](a768_0xaffc84(0xa8),'no')},'allowsubscribe':{'type':DataTypes[a768_0xaffc84(0xbd)](a768_0xaffc84(0xa8),'no')},'allowtransfer':{'type':DataTypes[a768_0xaffc84(0xbd)](a768_0xaffc84(0xa8),'no')},'ignoresdpversion':{'type':DataTypes['ENUM'](a768_0xaffc84(0xa8),'no')},'subscribecontext':{'type':DataTypes[a768_0xaffc84(0xc2)]},'template':{'type':DataTypes[a768_0xaffc84(0xc2)]},'videosupport':{'type':DataTypes[a768_0xaffc84(0xbd)]('yes','no',a768_0xaffc84(0xbe)),'defaultValue':'no'},'maxcallbitrate':{'type':DataTypes['INTEGER']({'length':0xb})},'rfc2833compensate':{'type':DataTypes['ENUM'](a768_0xaffc84(0xa8),'no')},'mailbox':{'type':DataTypes[a768_0xaffc84(0xc2)]},'session_timers':{'type':DataTypes[a768_0xaffc84(0xbd)](a768_0xaffc84(0xc9),a768_0xaffc84(0xb3),a768_0xaffc84(0xd8))},'session_expires':{'type':DataTypes['INTEGER']({'length':0xb})},'session_minse':{'type':DataTypes[a768_0xaffc84(0xdd)]({'length':0xb})},'session_refresher':{'type':DataTypes[a768_0xaffc84(0xbd)](a768_0xaffc84(0xb9),a768_0xaffc84(0xc6)),'defaultValue':a768_0xaffc84(0xc6)},'t38pt_usertpsource':{'type':DataTypes[a768_0xaffc84(0xc2)]},'regexten':{'type':DataTypes[a768_0xaffc84(0xc2)]},'fromdomain':{'type':DataTypes[a768_0xaffc84(0xc2)]},'fromuser':{'type':DataTypes['STRING']},'port':{'type':DataTypes[a768_0xaffc84(0xdd)]({'length':0x5})},'qualify':{'type':DataTypes[a768_0xaffc84(0xbd)](a768_0xaffc84(0xa8),'no'),'defaultValue':a768_0xaffc84(0xa8)},'keepalive':{'type':DataTypes[a768_0xaffc84(0xdd)]({'length':0xb})},'defaultip':{'type':DataTypes[a768_0xaffc84(0xc2)]},'defaultuser':{'type':DataTypes[a768_0xaffc84(0xc2)]},'rtptimeout':{'type':DataTypes[a768_0xaffc84(0xdd)]({'length':0xb})},'rtpholdtimeout':{'type':DataTypes['INTEGER']({'length':0xb})},'rtpkeepalive':{'type':DataTypes[a768_0xaffc84(0xdd)]({'length':0xb})},'sendrpid':{'type':DataTypes[a768_0xaffc84(0xbd)]('yes','no',a768_0xaffc84(0xb7)),'defaultValue':'no'},'outboundproxy':{'type':DataTypes[a768_0xaffc84(0xc2)]},'callbackextension':{'type':DataTypes[a768_0xaffc84(0xc2)]},'timert1':{'type':DataTypes[a768_0xaffc84(0xdd)]({'length':0xb})},'timerb':{'type':DataTypes['INTEGER']({'length':0xb})},'qualifyfreq':{'type':DataTypes['INTEGER']({'length':0xb})},'contactpermit':{'type':DataTypes[a768_0xaffc84(0xc2)]},'contactdeny':{'type':DataTypes[a768_0xaffc84(0xc2)]},'contactacl':{'type':DataTypes['STRING']},'unsolicited_mailbox':{'type':DataTypes['STRING']},'use_q850_reason':{'type':DataTypes[a768_0xaffc84(0xc2)]},'maxforwards':{'type':DataTypes[a768_0xaffc84(0xdd)]({'length':0xb})},'encryption':{'type':DataTypes[a768_0xaffc84(0xbd)]('yes','no'),'defaultValue':'no'},'avpf':{'type':DataTypes['ENUM']('yes','no')},'force_avp':{'type':DataTypes[a768_0xaffc84(0xbd)](a768_0xaffc84(0xa8),'no')},'icesupport':{'type':DataTypes[a768_0xaffc84(0xbd)](a768_0xaffc84(0xa8),'no')},'dtlsenable':{'type':DataTypes[a768_0xaffc84(0xbd)](a768_0xaffc84(0xa8),'no')},'dtlsverify':{'type':DataTypes[a768_0xaffc84(0xbd)]('yes','no',a768_0xaffc84(0xc3),a768_0xaffc84(0xa7))},'dtlsrekey':{'type':DataTypes[a768_0xaffc84(0xdd)]({'length':0xb})},'dtlscertfile':{'type':DataTypes[a768_0xaffc84(0xc2)]},'dtlsprivatekey':{'type':DataTypes['STRING']},'dtlscipher':{'type':DataTypes['STRING']},'dtlscafile':{'type':DataTypes[a768_0xaffc84(0xc2)]},'dtlscapath':{'type':DataTypes['STRING']},'dtlssetup':{'type':DataTypes[a768_0xaffc84(0xbd)](a768_0xaffc84(0xcf),'passive','actpass'),'allowNull':!![]},'dtlsfingerprint':{'type':DataTypes['STRING']},'usereqphone':{'type':DataTypes[a768_0xaffc84(0xbd)](a768_0xaffc84(0xa8),'no'),'defaultValue':'no'},'recordonfeature':{'type':DataTypes[a768_0xaffc84(0xc2)]},'recordofffeature':{'type':DataTypes[a768_0xaffc84(0xc2)]},'call_limit':{'type':DataTypes['INTEGER']({'length':0xb}),'defaultValue':0x3e8},'registertrying':{'type':DataTypes[a768_0xaffc84(0xbd)](a768_0xaffc84(0xa8),'no')},'subscribemwi':{'type':DataTypes[a768_0xaffc84(0xbd)](a768_0xaffc84(0xa8),'no')},'vmexten':{'type':DataTypes[a768_0xaffc84(0xc2)]},'mohinterpret':{'type':DataTypes[a768_0xaffc84(0xc2)]},'mohsuggest':{'type':DataTypes[a768_0xaffc84(0xc2)]},'parkinglot':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a768_0xaffc84(0xc2)]},'host':{'type':DataTypes[a768_0xaffc84(0xc2)],'defaultValue':a768_0xaffc84(0xb4)},'canreinvite':{'type':DataTypes[a768_0xaffc84(0xbd)](a768_0xaffc84(0xa8),'no',a768_0xaffc84(0xd5),a768_0xaffc84(0xda),a768_0xaffc84(0xcc)),'defaultValue':'no'},'registry':{'type':DataTypes['STRING']},'otherFields':{'type':DataTypes['STRING']},'active':{'type':DataTypes[a768_0xaffc84(0xc0)],'allowNull':![],'defaultValue':!![]},'t38pt_udptl':{'type':DataTypes['STRING'],'defaultValue':'no'}};module[a768_0xaffc84(0xb5)][a768_0xaffc84(0xad)]=attributes; \ No newline at end of file +const a768_0x2f57=['update,nonat','shortinfo','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]','never','getDataValue','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22alaw\x22]','outgoing','PROHIB_PASSED_SCREEN','refuse','STRING','info','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]','uas','user','setDataValue','ulaw;alaw;gsm','exports','yes','join','uac','inband','ENUM','name','ALLOWED_NOT_SCREENED','split','pai','accept','sequelize','ALLOWED','insecure','transport','INTEGER','ALLOWED_PASSED_SCREEN','passive','port,invite','nonat','\x22\x22\x20<>','always','ALLOWED_FAILED_SCREEN','nat','actpass','peer','update','certificate','BOOLEAN','originate','attributes','from-voip-provider','rfc2833','fingerprint','dynamic','udp','friend','allow'];(function(_0x50f3e0,_0x10437a){const _0x2f5709=function(_0x4583ec){while(--_0x4583ec){_0x50f3e0['push'](_0x50f3e0['shift']());}};_0x2f5709(++_0x10437a);}(a768_0x2f57,0x1ad));const a768_0x4583=function(_0x50f3e0,_0x10437a){_0x50f3e0=_0x50f3e0-0xb0;let _0x2f5709=a768_0x2f57[_0x50f3e0];return _0x2f5709;};const a768_0x213faf=a768_0x4583;'use strict';const {DataTypes}=require(a768_0x213faf(0xce)),attributes={'name':{'type':DataTypes['STRING'],'allowNull':![],'unique':a768_0x213faf(0xc9),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':DataTypes['ENUM']('friend',a768_0x213faf(0xc0),a768_0x213faf(0xdc)),'allowNull':![],'defaultValue':a768_0x213faf(0xb1)},'context':{'type':DataTypes[a768_0x213faf(0xbc)],'allowNull':![],'defaultValue':a768_0x213faf(0xe2)},'callingpres':{'type':DataTypes['ENUM'](a768_0x213faf(0xca),a768_0x213faf(0xd3),a768_0x213faf(0xd9),a768_0x213faf(0xcf),'PROHIB_NOT_SCREENED',a768_0x213faf(0xba),'PROHIB_FAILED_SCREEN','PROHIB')},'deny':{'type':DataTypes['STRING']},'permit':{'type':DataTypes['STRING']},'secret':{'type':DataTypes['STRING']},'md5secret':{'type':DataTypes[a768_0x213faf(0xbc)]},'remotesecret':{'type':DataTypes[a768_0x213faf(0xbc)]},'transport':{'type':DataTypes[a768_0x213faf(0xbc)],'defaultValue':a768_0x213faf(0xb0),'set':function(_0x4d0ccd){const _0x2decf6=a768_0x213faf;this[_0x2decf6(0xc1)](_0x2decf6(0xd1),_0x4d0ccd?_0x4d0ccd[_0x2decf6(0xc5)](','):null);},'get':function(){const _0x1c1716=a768_0x213faf;return this[_0x1c1716(0xb7)](_0x1c1716(0xd1))?this['getDataValue'](_0x1c1716(0xd1))[_0x1c1716(0xcb)](','):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]'},'dtmfmode':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xe3),a768_0x213faf(0xbd),a768_0x213faf(0xb4),a768_0x213faf(0xc7),'auto'),'defaultValue':'rfc2833'},'directmedia':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no',a768_0x213faf(0xd6),a768_0x213faf(0xdd),a768_0x213faf(0xb9)),'defaultValue':'no'},'directrtpsetup':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no'),'defaultValue':'no'},'directmediapermit':{'type':DataTypes['STRING']},'directmediadeny':{'type':DataTypes[a768_0x213faf(0xbc)]},'nat':{'type':DataTypes[a768_0x213faf(0xbc)],'defaultValue':'force_rport,comedia','set':function(_0x24c9b2){const _0x34a8f4=a768_0x213faf;this[_0x34a8f4(0xc1)](_0x34a8f4(0xda),_0x24c9b2?_0x24c9b2['join'](','):null);},'get':function(){const _0x11d3f3=a768_0x213faf;return this['getDataValue']('nat')?this[_0x11d3f3(0xb7)]('nat')[_0x11d3f3(0xcb)](','):null;},'comment':a768_0x213faf(0xb5)},'callgroup':{'type':DataTypes[a768_0x213faf(0xbc)]},'namedcallgroup':{'type':DataTypes[a768_0x213faf(0xbc)]},'pickupgroup':{'type':DataTypes[a768_0x213faf(0xbc)]},'namedpickupgroup':{'type':DataTypes['STRING']},'language':{'type':DataTypes['STRING'],'defaultValue':'en'},'tonezone':{'type':DataTypes[a768_0x213faf(0xbc)],'allowNull':!![]},'disallow':{'type':DataTypes[a768_0x213faf(0xbc)],'defaultValue':'all'},'allow':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':a768_0x213faf(0xc2),'set':function(_0x436f49){const _0x2fefe5=a768_0x213faf;this[_0x2fefe5(0xc1)](_0x2fefe5(0xb2),_0x436f49?_0x436f49['join'](';'):'ulaw;alaw;gsm');},'get':function(){const _0x3fa86a=a768_0x213faf;return this['getDataValue']('allow')?this['getDataValue'](_0x3fa86a(0xb2))[_0x3fa86a(0xcb)](';'):null;},'comment':a768_0x213faf(0xb8)},'autoframing':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no')},'insecure':{'type':DataTypes[a768_0x213faf(0xbc)],'defaultValue':a768_0x213faf(0xd5),'set':function(_0x151722){const _0x24afec=a768_0x213faf;this[_0x24afec(0xc1)](_0x24afec(0xd0),_0x151722?_0x151722['join'](','):null);},'get':function(){const _0x29f407=a768_0x213faf;return this[_0x29f407(0xb7)]('insecure')?this[_0x29f407(0xb7)](_0x29f407(0xd0))[_0x29f407(0xcb)](','):null;},'comment':a768_0x213faf(0xbe)},'trustrpid':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no'),'defaultValue':'no'},'trust_id_outbound':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no'),'defaultValue':'no'},'progressinband':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no',a768_0x213faf(0xb6))},'promiscredir':{'type':DataTypes['ENUM'](a768_0x213faf(0xc4),'no')},'useclientcode':{'type':DataTypes[a768_0x213faf(0xc8)]('yes','no')},'accountcode':{'type':DataTypes[a768_0x213faf(0xd2)]({'length':0xb})},'setvar':{'type':DataTypes[a768_0x213faf(0xbc)]},'callerid':{'type':DataTypes[a768_0x213faf(0xbc)],'defaultValue':a768_0x213faf(0xd7)},'amaflags':{'type':DataTypes['STRING']},'callcounter':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no'),'defaultValue':'yes'},'busylevel':{'type':DataTypes[a768_0x213faf(0xd2)]({'length':0xb})},'allowoverlap':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no')},'allowsubscribe':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no')},'allowtransfer':{'type':DataTypes[a768_0x213faf(0xc8)]('yes','no')},'ignoresdpversion':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no')},'subscribecontext':{'type':DataTypes['STRING']},'template':{'type':DataTypes[a768_0x213faf(0xbc)]},'videosupport':{'type':DataTypes['ENUM'](a768_0x213faf(0xc4),'no',a768_0x213faf(0xd8)),'defaultValue':'no'},'maxcallbitrate':{'type':DataTypes[a768_0x213faf(0xd2)]({'length':0xb})},'rfc2833compensate':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no')},'mailbox':{'type':DataTypes['STRING']},'session_timers':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xcd),a768_0x213faf(0xbb),a768_0x213faf(0xe0))},'session_expires':{'type':DataTypes[a768_0x213faf(0xd2)]({'length':0xb})},'session_minse':{'type':DataTypes[a768_0x213faf(0xd2)]({'length':0xb})},'session_refresher':{'type':DataTypes['ENUM'](a768_0x213faf(0xc6),a768_0x213faf(0xbf)),'defaultValue':a768_0x213faf(0xbf)},'t38pt_usertpsource':{'type':DataTypes[a768_0x213faf(0xbc)]},'regexten':{'type':DataTypes[a768_0x213faf(0xbc)]},'fromdomain':{'type':DataTypes['STRING']},'fromuser':{'type':DataTypes[a768_0x213faf(0xbc)]},'port':{'type':DataTypes[a768_0x213faf(0xd2)]({'length':0x5})},'qualify':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no'),'defaultValue':'yes'},'keepalive':{'type':DataTypes[a768_0x213faf(0xd2)]({'length':0xb})},'defaultip':{'type':DataTypes[a768_0x213faf(0xbc)]},'defaultuser':{'type':DataTypes[a768_0x213faf(0xbc)]},'rtptimeout':{'type':DataTypes[a768_0x213faf(0xd2)]({'length':0xb})},'rtpholdtimeout':{'type':DataTypes[a768_0x213faf(0xd2)]({'length':0xb})},'rtpkeepalive':{'type':DataTypes[a768_0x213faf(0xd2)]({'length':0xb})},'sendrpid':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no',a768_0x213faf(0xcc)),'defaultValue':'no'},'outboundproxy':{'type':DataTypes['STRING']},'callbackextension':{'type':DataTypes['STRING']},'timert1':{'type':DataTypes[a768_0x213faf(0xd2)]({'length':0xb})},'timerb':{'type':DataTypes['INTEGER']({'length':0xb})},'qualifyfreq':{'type':DataTypes[a768_0x213faf(0xd2)]({'length':0xb})},'contactpermit':{'type':DataTypes[a768_0x213faf(0xbc)]},'contactdeny':{'type':DataTypes['STRING']},'contactacl':{'type':DataTypes[a768_0x213faf(0xbc)]},'unsolicited_mailbox':{'type':DataTypes[a768_0x213faf(0xbc)]},'use_q850_reason':{'type':DataTypes['STRING']},'maxforwards':{'type':DataTypes[a768_0x213faf(0xd2)]({'length':0xb})},'encryption':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no'),'defaultValue':'no'},'avpf':{'type':DataTypes['ENUM'](a768_0x213faf(0xc4),'no')},'force_avp':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no')},'icesupport':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no')},'dtlsenable':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no')},'dtlsverify':{'type':DataTypes['ENUM']('yes','no',a768_0x213faf(0xe4),a768_0x213faf(0xde))},'dtlsrekey':{'type':DataTypes[a768_0x213faf(0xd2)]({'length':0xb})},'dtlscertfile':{'type':DataTypes[a768_0x213faf(0xbc)]},'dtlsprivatekey':{'type':DataTypes[a768_0x213faf(0xbc)]},'dtlscipher':{'type':DataTypes['STRING']},'dtlscafile':{'type':DataTypes[a768_0x213faf(0xbc)]},'dtlscapath':{'type':DataTypes[a768_0x213faf(0xbc)]},'dtlssetup':{'type':DataTypes[a768_0x213faf(0xc8)]('active',a768_0x213faf(0xd4),a768_0x213faf(0xdb)),'allowNull':!![]},'dtlsfingerprint':{'type':DataTypes[a768_0x213faf(0xbc)]},'usereqphone':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no'),'defaultValue':'no'},'recordonfeature':{'type':DataTypes['STRING']},'recordofffeature':{'type':DataTypes[a768_0x213faf(0xbc)]},'call_limit':{'type':DataTypes[a768_0x213faf(0xd2)]({'length':0xb}),'defaultValue':0x3e8},'registertrying':{'type':DataTypes['ENUM'](a768_0x213faf(0xc4),'no')},'subscribemwi':{'type':DataTypes['ENUM'](a768_0x213faf(0xc4),'no')},'vmexten':{'type':DataTypes[a768_0x213faf(0xbc)]},'mohinterpret':{'type':DataTypes['STRING']},'mohsuggest':{'type':DataTypes[a768_0x213faf(0xbc)]},'parkinglot':{'type':DataTypes['STRING']},'description':{'type':DataTypes['STRING']},'host':{'type':DataTypes['STRING'],'defaultValue':a768_0x213faf(0xe5)},'canreinvite':{'type':DataTypes[a768_0x213faf(0xc8)](a768_0x213faf(0xc4),'no',a768_0x213faf(0xd6),a768_0x213faf(0xdd),a768_0x213faf(0xb3)),'defaultValue':'no'},'registry':{'type':DataTypes['STRING']},'otherFields':{'type':DataTypes[a768_0x213faf(0xbc)]},'active':{'type':DataTypes[a768_0x213faf(0xdf)],'allowNull':![],'defaultValue':!![]},'t38pt_udptl':{'type':DataTypes[a768_0x213faf(0xbc)],'defaultValue':'no'}};module[a768_0x213faf(0xc3)][a768_0x213faf(0xe1)]=attributes; \ No newline at end of file diff --git a/server/api/trunk/trunk.controller.js b/server/api/trunk/trunk.controller.js index 8832bc3..a157cec 100644 --- a/server/api/trunk/trunk.controller.js +++ b/server/api/trunk/trunk.controller.js @@ -1 +1 @@ -const a769_0x4b9b=['info','findAll','lodash','type','like','render','rawAttributes','message','files/templates/registry.ejs','createdAt','files/templates/trunk.ejs','end','userProfileId','ejs','VIRTUAL','json','code','updatedAt','UserProfileResource','role','readFileSync','then','key','omit','undefined','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','query','create','findOne','registry','set','fieldName','nolimit','utf8','request','params','count','update','sequelize','pick','includeAll','writeFileSync','result','chan_sip.so','sort','map','keys','/etc/asterisk/sip_xcally_registers.conf','filters','error','index','UserProfileSection','../../config/environment','root','/etc/asterisk/sip_xcally_trunks.conf','get','model','Content-Range','status','body','debug','merge','Unable\x20to\x20retrieve\x20the\x20current\x20user','stack','user','Trunk','Reload','length','destroy','stringify','http','autoAssociation','catch','limit','../../config/logger','../../components/parsers/qs','include','Trunk,\x20%s,\x20%s','attributes','filter','join','Trunk,\x20%s,\x20%s,\x20%s','offset','path','client','fields','name','request\x20sent','intersection','options','Trunks','where'];(function(_0x305aa5,_0x551112){const _0x4b9b3a=function(_0x369cf5){while(--_0x369cf5){_0x305aa5['push'](_0x305aa5['shift']());}};_0x4b9b3a(++_0x551112);}(a769_0x4b9b,0x134));const a769_0x369c=function(_0x305aa5,_0x551112){_0x305aa5=_0x305aa5-0x14b;let _0x4b9b3a=a769_0x4b9b[_0x305aa5];return _0x4b9b3a;};const a769_0x1ea04a=a769_0x369c;'use strict';const path=require(a769_0x1ea04a(0x17e)),ejs=require(a769_0x1ea04a(0x194)),fs=require('fs'),_=require(a769_0x1ea04a(0x189)),qs=require(a769_0x1ea04a(0x176)),logger=require(a769_0x1ea04a(0x175))('api'),config=require(a769_0x1ea04a(0x15f)),{db}=require('../../mysqldb'),{Op}=require(a769_0x1ea04a(0x151)),jayson=require('jayson/promise'),client=jayson[a769_0x1ea04a(0x17f)][a769_0x1ea04a(0x171)]({'port':0x232a});function respondWithRpcPromise(_0x4fc1f0,_0x3c204d,_0x51c1bb,_0x1c0f2b){return new Promise(function(_0x307a57,_0x3f04e9){const _0x554d1a=a769_0x369c,_0x5574c3=_0x1c0f2b||client;return _0x5574c3[_0x554d1a(0x14d)](_0x4fc1f0,_0x51c1bb)[_0x554d1a(0x19c)](function(_0x2662ff){const _0x1e348b=_0x554d1a;logger[_0x1e348b(0x187)](_0x1e348b(0x178),_0x3c204d,_0x1e348b(0x182)),logger[_0x1e348b(0x167)](_0x1e348b(0x17c),_0x3c204d,_0x1e348b(0x182),JSON[_0x1e348b(0x170)](_0x2662ff));if(_0x2662ff[_0x1e348b(0x15c)]){if(_0x2662ff[_0x1e348b(0x15c)][_0x1e348b(0x197)]===0x1f4)return logger[_0x1e348b(0x15c)](_0x1e348b(0x178),_0x3c204d,_0x2662ff[_0x1e348b(0x15c)][_0x1e348b(0x18e)]),_0x3f04e9(_0x2662ff['error'][_0x1e348b(0x18e)]);return logger[_0x1e348b(0x15c)]('Trunk,\x20%s,\x20%s',_0x3c204d,_0x2662ff[_0x1e348b(0x15c)][_0x1e348b(0x18e)]),_0x307a57(_0x2662ff[_0x1e348b(0x15c)][_0x1e348b(0x18e)]);}else logger['info']('Trunk,\x20%s,\x20%s',_0x3c204d,_0x1e348b(0x182)),_0x307a57(_0x2662ff[_0x1e348b(0x155)][_0x1e348b(0x18e)]);})['catch'](function(_0x4a0990){const _0x4550f4=_0x554d1a;logger[_0x4550f4(0x15c)](_0x4550f4(0x178),_0x3c204d,_0x4a0990),_0x3f04e9(_0x4a0990);});});}function respondWithResult(_0x54d654,_0x40a0f9){return _0x40a0f9=_0x40a0f9||0xc8,function(_0x249232){const _0x38613e=a769_0x369c;if(_0x249232)return _0x54d654[_0x38613e(0x165)](_0x40a0f9)['json'](_0x249232);};}function respondWithFilteredResult(_0x58765b,_0x3316e8){return function(_0x5d1f4f){const _0x44f70d=a769_0x369c;if(_0x5d1f4f){const _0x1a60f3=_0x5d1f4f['count'],_0x30d4ed=_0x3316e8[_0x44f70d(0x17d)];let _0x293480=_0x3316e8[_0x44f70d(0x17d)]+_0x3316e8[_0x44f70d(0x174)],_0x287cae;return _0x293480>=_0x1a60f3?(_0x293480=_0x1a60f3,_0x287cae=0xc8):_0x287cae=0xce,_0x58765b[_0x44f70d(0x165)](_0x287cae),_0x58765b[_0x44f70d(0x1a5)](_0x44f70d(0x164),_0x30d4ed+'-'+_0x293480+'/'+_0x1a60f3)[_0x44f70d(0x196)](_0x5d1f4f);}return null;};}function saveUpdates(_0x3a6080){return function(_0x2e03d9){const _0x1edcfc=a769_0x369c;if(_0x2e03d9)return _0x2e03d9[_0x1edcfc(0x150)](_0x3a6080)['then'](function(_0x1f43de){return _0x1f43de;});return null;};}function removeEntity(_0x15cf74){return function(_0x4aa995){const _0x2be7a1=a769_0x369c;if(_0x4aa995)return _0x4aa995[_0x2be7a1(0x16f)]()['then'](function(){const _0x43e960=_0x2be7a1,_0x4450de=_0x4aa995['get']({'plain':!![]}),_0x5d5f46='Trunks';return db[_0x43e960(0x199)][_0x43e960(0x16f)]({'where':{'type':_0x5d5f46,'resourceId':_0x4450de['id']}})[_0x43e960(0x19c)](function(){return _0x4aa995;});})[_0x2be7a1(0x19c)](function(){const _0x478dad=_0x2be7a1;_0x15cf74[_0x478dad(0x165)](0xcc)[_0x478dad(0x192)]();});};}function handleEntityNotFound(_0x595783){return function(_0x565657){return!_0x565657&&_0x595783['sendStatus'](0x194),_0x565657;};}function handleError(_0x4ea1c5,_0x2d5fbc){return _0x2d5fbc=_0x2d5fbc||0x1f4,function(_0x4fd4f0){const _0x49c682=a769_0x369c;logger[_0x49c682(0x15c)](_0x4fd4f0[_0x49c682(0x16a)]),_0x4fd4f0['name']&&delete _0x4fd4f0[_0x49c682(0x181)],_0x4ea1c5[_0x49c682(0x165)](_0x2d5fbc)['send'](_0x4fd4f0);};}exports[a769_0x1ea04a(0x15d)]=function(_0x479a1d,_0x2d8e34){const _0x2ac22d=a769_0x1ea04a;let _0x486865={};const _0x5b4561={},_0x333805={'count':0x0,'rows':[]},_0x5afd20=_['map'](db[_0x2ac22d(0x16c)]['rawAttributes'],function(_0x2540cd){const _0x278f34=_0x2ac22d;return{'name':_0x2540cd[_0x278f34(0x1a6)],'type':_0x2540cd['type'][_0x278f34(0x19d)]};});_0x5b4561[_0x2ac22d(0x163)]=_[_0x2ac22d(0x158)](_0x5afd20,_0x2ac22d(0x181)),_0x5b4561['query']=_['keys'](_0x479a1d[_0x2ac22d(0x1a1)]),_0x5b4561[_0x2ac22d(0x15b)]=_[_0x2ac22d(0x183)](_0x5b4561[_0x2ac22d(0x163)],_0x5b4561[_0x2ac22d(0x1a1)]),_0x486865[_0x2ac22d(0x179)]=_['intersection'](_0x5b4561[_0x2ac22d(0x163)],qs['fields'](_0x479a1d[_0x2ac22d(0x1a1)][_0x2ac22d(0x180)])),_0x486865[_0x2ac22d(0x179)]=_0x486865[_0x2ac22d(0x179)][_0x2ac22d(0x16e)]?_0x486865['attributes']:_0x5b4561[_0x2ac22d(0x163)];typeof _0x479a1d[_0x2ac22d(0x1a1)][_0x2ac22d(0x14b)]===_0x2ac22d(0x19f)&&(_0x486865[_0x2ac22d(0x174)]=qs[_0x2ac22d(0x174)](_0x479a1d[_0x2ac22d(0x1a1)][_0x2ac22d(0x174)]),_0x486865[_0x2ac22d(0x17d)]=qs[_0x2ac22d(0x17d)](_0x479a1d[_0x2ac22d(0x1a1)][_0x2ac22d(0x17d)]));_0x486865['order']=qs[_0x2ac22d(0x157)](_0x479a1d[_0x2ac22d(0x1a1)]['sort']),_0x486865[_0x2ac22d(0x186)]=qs['filters'](_[_0x2ac22d(0x152)](_0x479a1d['query'],_0x5b4561['filters']),_0x5afd20);_0x479a1d['query'][_0x2ac22d(0x17a)]&&(_0x486865['where']=_[_0x2ac22d(0x168)](_0x486865['where'],{[Op['or']]:_['map'](_0x5afd20,function(_0x36f7b9){const _0x137d24=_0x2ac22d;if(_0x36f7b9[_0x137d24(0x18a)]!==_0x137d24(0x195)){const _0x29a48c={};return _0x29a48c[_0x36f7b9[_0x137d24(0x181)]]={[Op[_0x137d24(0x18b)]]:'%'+_0x479a1d[_0x137d24(0x1a1)][_0x137d24(0x17a)]+'%'},_0x29a48c;}})}));_0x486865=_[_0x2ac22d(0x168)]({},_0x486865,_0x479a1d[_0x2ac22d(0x184)]);const _0x55ded9={'where':_0x486865[_0x2ac22d(0x186)]};return db['Trunk']['count'](_0x55ded9)[_0x2ac22d(0x19c)](function(_0x129929){const _0x571663=_0x2ac22d;return _0x333805[_0x571663(0x14f)]=_0x129929,_0x479a1d[_0x571663(0x1a1)]['includeAll']&&(_0x486865[_0x571663(0x177)]=[{'all':!![]}]),db[_0x571663(0x16c)][_0x571663(0x188)](_0x486865);})[_0x2ac22d(0x19c)](function(_0x59f60b){return _0x333805['rows']=_0x59f60b,_0x333805;})[_0x2ac22d(0x19c)](respondWithFilteredResult(_0x2d8e34,_0x486865))[_0x2ac22d(0x173)](handleError(_0x2d8e34,null));},exports['show']=function(_0x1299d1,_0x469768){const _0x13d9f7=a769_0x1ea04a;let _0x1743fe={'raw':![],'where':{'id':_0x1299d1[_0x13d9f7(0x14e)]['id']}};const _0x18722a={};return _0x18722a[_0x13d9f7(0x163)]=_[_0x13d9f7(0x159)](db['Trunk']['rawAttributes']),_0x18722a[_0x13d9f7(0x1a1)]=_[_0x13d9f7(0x159)](_0x1299d1['query']),_0x18722a[_0x13d9f7(0x15b)]=_[_0x13d9f7(0x183)](_0x18722a[_0x13d9f7(0x163)],_0x18722a['query']),_0x1743fe[_0x13d9f7(0x179)]=_[_0x13d9f7(0x183)](_0x18722a[_0x13d9f7(0x163)],qs[_0x13d9f7(0x180)](_0x1299d1[_0x13d9f7(0x1a1)][_0x13d9f7(0x180)])),_0x1743fe[_0x13d9f7(0x179)]=_0x1743fe[_0x13d9f7(0x179)][_0x13d9f7(0x16e)]?_0x1743fe[_0x13d9f7(0x179)]:_0x18722a[_0x13d9f7(0x163)],_0x1299d1[_0x13d9f7(0x1a1)][_0x13d9f7(0x153)]&&(_0x1743fe['include']=[{'all':!![]}]),_0x1743fe=_[_0x13d9f7(0x168)]({},_0x1743fe,_0x1299d1[_0x13d9f7(0x184)]),db[_0x13d9f7(0x16c)][_0x13d9f7(0x1a3)](_0x1743fe)['then'](handleEntityNotFound(_0x469768,null))[_0x13d9f7(0x19c)](respondWithResult(_0x469768,null))[_0x13d9f7(0x173)](handleError(_0x469768,null));},exports['clone']=function(_0x281807,_0x3f4750){const _0x18ff7f=a769_0x1ea04a;let _0x313ebc={'where':{'id':_0x281807[_0x18ff7f(0x14e)]['id']}};const _0x1a77d8={};return _0x1a77d8[_0x18ff7f(0x163)]=_[_0x18ff7f(0x159)](db[_0x18ff7f(0x16c)][_0x18ff7f(0x18d)]),_0x313ebc[_0x18ff7f(0x179)]=_[_0x18ff7f(0x183)](_0x1a77d8[_0x18ff7f(0x163)],qs['fields'](_0x281807[_0x18ff7f(0x1a1)][_0x18ff7f(0x180)])),_0x313ebc[_0x18ff7f(0x179)]=_0x313ebc[_0x18ff7f(0x179)][_0x18ff7f(0x16e)]?_0x313ebc['attributes']:_0x1a77d8[_0x18ff7f(0x163)],_0x281807[_0x18ff7f(0x1a1)]['includeAll']&&(_0x313ebc[_0x18ff7f(0x177)]=[{'all':!![]}]),_0x313ebc=_[_0x18ff7f(0x168)]({},_0x313ebc,_0x281807[_0x18ff7f(0x184)]),db[_0x18ff7f(0x16c)][_0x18ff7f(0x1a3)](_0x313ebc)[_0x18ff7f(0x19c)](handleEntityNotFound(_0x3f4750,null))[_0x18ff7f(0x19c)](function(_0x3136c9){const _0x5ed98b=_0x18ff7f;if(_0x3136c9){let _0x355095=_0x3136c9[_0x5ed98b(0x162)]({'plain':!![]});return _0x355095=qs[_0x5ed98b(0x19e)](_0x355095,['id',_0x5ed98b(0x190),'updatedAt']),_0x281807[_0x5ed98b(0x166)]=_['omit'](_0x281807[_0x5ed98b(0x166)],['id',_0x5ed98b(0x190),_0x5ed98b(0x198)]),db[_0x5ed98b(0x16c)]['create'](_[_0x5ed98b(0x168)](_0x355095,_0x281807['body']),{'include':_0x281807[_0x5ed98b(0x1a1)][_0x5ed98b(0x153)]?[{'all':!![]}]:undefined})[_0x5ed98b(0x19c)](function(_0x351e5d){const _0x47ac16=_0x5ed98b,_0x4627fa=_0x281807[_0x47ac16(0x16b)][_0x47ac16(0x162)]({'plain':!![]});if(!_0x4627fa)throw new Error(_0x47ac16(0x169));if(_0x4627fa[_0x47ac16(0x19a)]==='user'){const _0xb56597=_0x351e5d[_0x47ac16(0x162)]({'plain':!![]}),_0x58d2b3=_0x47ac16(0x185);return db[_0x47ac16(0x15e)][_0x47ac16(0x1a3)]({'where':{'name':_0x58d2b3,'userProfileId':_0x4627fa[_0x47ac16(0x193)]},'raw':!![]})[_0x47ac16(0x19c)](function(_0xab23fd){const _0x598c8a=_0x47ac16;return _0xab23fd&&_0xab23fd[_0x598c8a(0x172)]===0x0?db['UserProfileResource'][_0x598c8a(0x1a2)]({'name':_0xb56597[_0x598c8a(0x181)],'resourceId':_0xb56597['id'],'type':_0xab23fd['name'],'sectionId':_0xab23fd['id']},{})[_0x598c8a(0x19c)](function(){return _0x351e5d;}):_0x351e5d;})['catch'](function(_0x458fcb){const _0x15fda9=_0x47ac16;logger[_0x15fda9(0x15c)](_0x15fda9(0x1a0),_0x458fcb);throw _0x458fcb;});}return _0x351e5d;});}})[_0x18ff7f(0x19c)](respondWithResult(_0x3f4750,0xc9))[_0x18ff7f(0x173)](handleError(_0x3f4750,null));},exports[a769_0x1ea04a(0x1a2)]=function(_0x52642b,_0x55531b){const _0x1645c9=a769_0x1ea04a;let _0x468c33;return db[_0x1645c9(0x16c)][_0x1645c9(0x1a2)](_0x52642b[_0x1645c9(0x166)],{'raw':!![]})[_0x1645c9(0x19c)](function(_0x812c36){const _0x9cbe93=_0x1645c9;return _0x468c33=_0x812c36,db[_0x9cbe93(0x16c)][_0x9cbe93(0x188)]({'raw':!![]});})[_0x1645c9(0x19c)](function(_0x9d1478){const _0x3c6666=_0x1645c9,_0x534f2d=fs['readFileSync'](path[_0x3c6666(0x17b)](config[_0x3c6666(0x160)],_0x3c6666(0x191)),_0x3c6666(0x14c)),_0x3c6b92=fs['readFileSync'](path[_0x3c6666(0x17b)](config[_0x3c6666(0x160)],_0x3c6666(0x18f)),_0x3c6666(0x14c)),_0x40b6bf=ejs['render'](_0x534f2d,{'trunks':_0x9d1478||[]});fs[_0x3c6666(0x154)]('/etc/asterisk/sip_xcally_trunks.conf',_0x40b6bf);if(_0x468c33[_0x3c6666(0x1a4)]){const _0xbd8b82=ejs[_0x3c6666(0x18c)](_0x3c6b92,{'trunks':_0x9d1478||[]});fs[_0x3c6666(0x154)]('/etc/asterisk/sip_xcally_registers.conf',_0xbd8b82);}})[_0x1645c9(0x19c)](function(){const _0x31a885=_0x1645c9;return respondWithRpcPromise(_0x31a885(0x16d),'create',{'module':_0x31a885(0x156)});})['then'](function(){const _0x2a778d=_0x1645c9,_0x6842f9=_0x52642b[_0x2a778d(0x16b)][_0x2a778d(0x162)]({'plain':!![]});if(!_0x6842f9)throw new Error(_0x2a778d(0x169));if(_0x6842f9[_0x2a778d(0x19a)]===_0x2a778d(0x16b)){const _0xa1a76e=_0x468c33['get']({'plain':!![]});return db[_0x2a778d(0x15e)][_0x2a778d(0x1a3)]({'where':{'name':_0x2a778d(0x185),'userProfileId':_0x6842f9['userProfileId']},'raw':!![]})[_0x2a778d(0x19c)](function(_0x8d300c){const _0x58246e=_0x2a778d;return _0x8d300c&&_0x8d300c['autoAssociation']===0x0?db[_0x58246e(0x199)][_0x58246e(0x1a2)]({'name':_0xa1a76e[_0x58246e(0x181)],'resourceId':_0xa1a76e['id'],'type':_0x8d300c['name'],'sectionId':_0x8d300c['id']},{})['then'](function(){return _0x468c33;}):_0x468c33;})[_0x2a778d(0x173)](function(_0x53a9dc){const _0x202904=_0x2a778d;logger[_0x202904(0x15c)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x53a9dc);throw _0x53a9dc;});}return _0x468c33;})[_0x1645c9(0x19c)](respondWithResult(_0x55531b,0xc9))[_0x1645c9(0x173)](handleError(_0x55531b,null));},exports['update']=function(_0x2556b7,_0x2a5213){const _0x2e1e76=a769_0x1ea04a;let _0x12473a;return db['Trunk'][_0x2e1e76(0x1a3)]({'where':{'id':_0x2556b7[_0x2e1e76(0x14e)]['id']}})[_0x2e1e76(0x19c)](handleEntityNotFound(_0x2a5213,null))[_0x2e1e76(0x19c)](saveUpdates(_0x2556b7[_0x2e1e76(0x166)],null))[_0x2e1e76(0x19c)](function(_0x526738){if(_0x526738)return _0x12473a=_0x526738,db['Trunk']['findAll']({'raw':!![]});})['then'](function(_0x38d37d){const _0x555844=_0x2e1e76;if(_0x38d37d){const _0xccbe8b=fs[_0x555844(0x19b)](path[_0x555844(0x17b)](config[_0x555844(0x160)],'files/templates/trunk.ejs'),_0x555844(0x14c)),_0x3f3711=fs[_0x555844(0x19b)](path[_0x555844(0x17b)](config[_0x555844(0x160)],_0x555844(0x18f)),_0x555844(0x14c)),_0x595a60=ejs['render'](_0xccbe8b,{'trunks':_0x38d37d||[]});fs[_0x555844(0x154)](_0x555844(0x161),_0x595a60);const _0x36c168=ejs[_0x555844(0x18c)](_0x3f3711,{'trunks':_0x38d37d||[]});return fs['writeFileSync'](_0x555844(0x15a),_0x36c168),respondWithRpcPromise(_0x555844(0x16d),_0x555844(0x150),{'module':'chan_sip.so'});}return null;})[_0x2e1e76(0x19c)](function(_0x20b9c4){if(_0x20b9c4)return _0x12473a;})[_0x2e1e76(0x19c)](respondWithResult(_0x2a5213,null))['catch'](handleError(_0x2a5213,null));},exports[a769_0x1ea04a(0x16f)]=function(_0x499dba,_0x2fde1d){const _0x37a5e1=a769_0x1ea04a;return db[_0x37a5e1(0x16c)][_0x37a5e1(0x1a3)]({'where':{'id':_0x499dba[_0x37a5e1(0x14e)]['id']}})[_0x37a5e1(0x19c)](handleEntityNotFound(_0x2fde1d,null))[_0x37a5e1(0x19c)](removeEntity(_0x2fde1d,null))[_0x37a5e1(0x19c)](function(){const _0x27f71c=_0x37a5e1;return db['Trunk'][_0x27f71c(0x188)]({'raw':!![]});})[_0x37a5e1(0x19c)](function(_0x390dee){const _0x41bbd7=_0x37a5e1,_0x1b0040=fs[_0x41bbd7(0x19b)](path['join'](config['root'],_0x41bbd7(0x191)),_0x41bbd7(0x14c)),_0x202435=fs[_0x41bbd7(0x19b)](path['join'](config['root'],_0x41bbd7(0x18f)),_0x41bbd7(0x14c)),_0x2ca6cc=ejs[_0x41bbd7(0x18c)](_0x1b0040,{'trunks':_0x390dee}),_0x4b5eab=ejs['render'](_0x202435,{'trunks':_0x390dee});return fs[_0x41bbd7(0x154)](_0x41bbd7(0x161),_0x2ca6cc),fs['writeFileSync'](_0x41bbd7(0x15a),_0x4b5eab),respondWithRpcPromise('Reload',_0x41bbd7(0x16f),{'module':_0x41bbd7(0x156)});})[_0x37a5e1(0x173)](handleError(_0x2fde1d,null));}; \ No newline at end of file +const a769_0x1dc5=['model','filter','UserProfileSection','stack','Trunks','error','../../config/logger','options','merge','include','utf8','keys','fieldName','update','like','show','map','length','omit','index','UserProfileResource','findAll','chan_sip.so','get','Trunk,\x20%s,\x20%s,\x20%s','http','create','ejs','role','api','filters','includeAll','../../config/environment','name','status','sort','../../mysqldb','limit','readFileSync','writeFileSync','createdAt','pick','user','Trunk,\x20%s,\x20%s','count','where','fields','Trunk','/etc/asterisk/sip_xcally_trunks.conf','join','request\x20sent','destroy','result','findOne','body','sendStatus','render','params','/etc/asterisk/sip_xcally_registers.conf','then','autoAssociation','registry','catch','debug','Reload','order','send','message','updatedAt','offset','path','rawAttributes','files/templates/registry.ejs','end','jayson/promise','root','set','Content-Range','info','query','lodash','files/templates/trunk.ejs','json','attributes','userProfileId','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','intersection','type','clone'];(function(_0x1ed489,_0xa716a0){const _0x1dc53e=function(_0x1f6f7b){while(--_0x1f6f7b){_0x1ed489['push'](_0x1ed489['shift']());}};_0x1dc53e(++_0xa716a0);}(a769_0x1dc5,0x74));const a769_0x1f6f=function(_0x1ed489,_0xa716a0){_0x1ed489=_0x1ed489-0x115;let _0x1dc53e=a769_0x1dc5[_0x1ed489];return _0x1dc53e;};const a769_0x4cbe74=a769_0x1f6f;'use strict';const path=require(a769_0x4cbe74(0x140)),ejs=require(a769_0x4cbe74(0x115)),fs=require('fs'),_=require(a769_0x4cbe74(0x14a)),qs=require('../../components/parsers/qs'),logger=require(a769_0x4cbe74(0x159))(a769_0x4cbe74(0x117)),config=require(a769_0x4cbe74(0x11a)),{db}=require(a769_0x4cbe74(0x11e)),{Op}=require('sequelize'),jayson=require(a769_0x4cbe74(0x144)),client=jayson['client'][a769_0x4cbe74(0x16c)]({'port':0x232a});function respondWithRpcPromise(_0x47dcd0,_0x176e65,_0x4d4029,_0x3cdb9b){return new Promise(function(_0x4595d8,_0x7e7b0){const _0x3f9169=a769_0x1f6f,_0x32b2a9=_0x3cdb9b||client;return _0x32b2a9['request'](_0x47dcd0,_0x4d4029)[_0x3f9169(0x135)](function(_0x4f92c7){const _0x2502cc=_0x3f9169;logger[_0x2502cc(0x148)](_0x2502cc(0x125),_0x176e65,'request\x20sent'),logger[_0x2502cc(0x139)](_0x2502cc(0x16b),_0x176e65,'request\x20sent',JSON['stringify'](_0x4f92c7));if(_0x4f92c7[_0x2502cc(0x158)]){if(_0x4f92c7['error']['code']===0x1f4)return logger[_0x2502cc(0x158)](_0x2502cc(0x125),_0x176e65,_0x4f92c7[_0x2502cc(0x158)][_0x2502cc(0x13d)]),_0x7e7b0(_0x4f92c7[_0x2502cc(0x158)][_0x2502cc(0x13d)]);return logger[_0x2502cc(0x158)](_0x2502cc(0x125),_0x176e65,_0x4f92c7['error'][_0x2502cc(0x13d)]),_0x4595d8(_0x4f92c7[_0x2502cc(0x158)][_0x2502cc(0x13d)]);}else logger[_0x2502cc(0x148)](_0x2502cc(0x125),_0x176e65,_0x2502cc(0x12c)),_0x4595d8(_0x4f92c7[_0x2502cc(0x12e)][_0x2502cc(0x13d)]);})[_0x3f9169(0x138)](function(_0x3f560f){const _0x28b531=_0x3f9169;logger[_0x28b531(0x158)](_0x28b531(0x125),_0x176e65,_0x3f560f),_0x7e7b0(_0x3f560f);});});}function respondWithResult(_0x15797b,_0x247e7b){return _0x247e7b=_0x247e7b||0xc8,function(_0xddcf9){const _0x55802b=a769_0x1f6f;if(_0xddcf9)return _0x15797b[_0x55802b(0x11c)](_0x247e7b)[_0x55802b(0x14c)](_0xddcf9);};}function respondWithFilteredResult(_0x3189cd,_0x34eb89){return function(_0x285704){const _0x2f6989=a769_0x1f6f;if(_0x285704){const _0x143a76=_0x285704[_0x2f6989(0x126)],_0x19a1ca=_0x34eb89[_0x2f6989(0x13f)];let _0x4910f8=_0x34eb89[_0x2f6989(0x13f)]+_0x34eb89['limit'],_0x52387f;return _0x4910f8>=_0x143a76?(_0x4910f8=_0x143a76,_0x52387f=0xc8):_0x52387f=0xce,_0x3189cd[_0x2f6989(0x11c)](_0x52387f),_0x3189cd[_0x2f6989(0x146)](_0x2f6989(0x147),_0x19a1ca+'-'+_0x4910f8+'/'+_0x143a76)[_0x2f6989(0x14c)](_0x285704);}return null;};}function saveUpdates(_0x14624e){return function(_0x33ed56){const _0x427212=a769_0x1f6f;if(_0x33ed56)return _0x33ed56[_0x427212(0x160)](_0x14624e)[_0x427212(0x135)](function(_0x49df8f){return _0x49df8f;});return null;};}function removeEntity(_0x15ada0){return function(_0x438c37){const _0x2f3fe4=a769_0x1f6f;if(_0x438c37)return _0x438c37['destroy']()['then'](function(){const _0x3dc7f5=a769_0x1f6f,_0x3bb145=_0x438c37[_0x3dc7f5(0x16a)]({'plain':!![]}),_0x23423a='Trunks';return db[_0x3dc7f5(0x167)]['destroy']({'where':{'type':_0x23423a,'resourceId':_0x3bb145['id']}})['then'](function(){return _0x438c37;});})[_0x2f3fe4(0x135)](function(){const _0x455ae7=_0x2f3fe4;_0x15ada0[_0x455ae7(0x11c)](0xcc)[_0x455ae7(0x143)]();});};}function handleEntityNotFound(_0x36bedd){return function(_0x2fa05c){const _0x41e642=a769_0x1f6f;return!_0x2fa05c&&_0x36bedd[_0x41e642(0x131)](0x194),_0x2fa05c;};}function handleError(_0x22c587,_0x28edc8){return _0x28edc8=_0x28edc8||0x1f4,function(_0x2e3f74){const _0x75c4f9=a769_0x1f6f;logger[_0x75c4f9(0x158)](_0x2e3f74[_0x75c4f9(0x156)]),_0x2e3f74['name']&&delete _0x2e3f74[_0x75c4f9(0x11b)],_0x22c587[_0x75c4f9(0x11c)](_0x28edc8)[_0x75c4f9(0x13c)](_0x2e3f74);};}exports[a769_0x4cbe74(0x166)]=function(_0x2d0809,_0x33607c){const _0x1baf8=a769_0x4cbe74;let _0x37d248={};const _0x47497d={},_0x55e934={'count':0x0,'rows':[]},_0x1a6841=_[_0x1baf8(0x163)](db[_0x1baf8(0x129)][_0x1baf8(0x141)],function(_0x347f9b){const _0x120d8a=_0x1baf8;return{'name':_0x347f9b[_0x120d8a(0x15f)],'type':_0x347f9b[_0x120d8a(0x151)]['key']};});_0x47497d[_0x1baf8(0x153)]=_[_0x1baf8(0x163)](_0x1a6841,'name'),_0x47497d[_0x1baf8(0x149)]=_['keys'](_0x2d0809[_0x1baf8(0x149)]),_0x47497d[_0x1baf8(0x118)]=_['intersection'](_0x47497d['model'],_0x47497d[_0x1baf8(0x149)]),_0x37d248['attributes']=_[_0x1baf8(0x150)](_0x47497d[_0x1baf8(0x153)],qs[_0x1baf8(0x128)](_0x2d0809[_0x1baf8(0x149)]['fields'])),_0x37d248[_0x1baf8(0x14d)]=_0x37d248['attributes']['length']?_0x37d248['attributes']:_0x47497d[_0x1baf8(0x153)];typeof _0x2d0809[_0x1baf8(0x149)]['nolimit']==='undefined'&&(_0x37d248[_0x1baf8(0x11f)]=qs['limit'](_0x2d0809[_0x1baf8(0x149)][_0x1baf8(0x11f)]),_0x37d248[_0x1baf8(0x13f)]=qs[_0x1baf8(0x13f)](_0x2d0809['query'][_0x1baf8(0x13f)]));_0x37d248[_0x1baf8(0x13b)]=qs['sort'](_0x2d0809['query'][_0x1baf8(0x11d)]),_0x37d248[_0x1baf8(0x127)]=qs[_0x1baf8(0x118)](_[_0x1baf8(0x123)](_0x2d0809[_0x1baf8(0x149)],_0x47497d[_0x1baf8(0x118)]),_0x1a6841);_0x2d0809[_0x1baf8(0x149)][_0x1baf8(0x154)]&&(_0x37d248[_0x1baf8(0x127)]=_[_0x1baf8(0x15b)](_0x37d248[_0x1baf8(0x127)],{[Op['or']]:_[_0x1baf8(0x163)](_0x1a6841,function(_0x3870b8){const _0x14d67e=_0x1baf8;if(_0x3870b8[_0x14d67e(0x151)]!=='VIRTUAL'){const _0x1956c6={};return _0x1956c6[_0x3870b8[_0x14d67e(0x11b)]]={[Op[_0x14d67e(0x161)]]:'%'+_0x2d0809[_0x14d67e(0x149)]['filter']+'%'},_0x1956c6;}})}));_0x37d248=_[_0x1baf8(0x15b)]({},_0x37d248,_0x2d0809['options']);const _0x5e9d9a={'where':_0x37d248[_0x1baf8(0x127)]};return db['Trunk'][_0x1baf8(0x126)](_0x5e9d9a)[_0x1baf8(0x135)](function(_0xb0a420){const _0x6003f8=_0x1baf8;return _0x55e934[_0x6003f8(0x126)]=_0xb0a420,_0x2d0809[_0x6003f8(0x149)][_0x6003f8(0x119)]&&(_0x37d248[_0x6003f8(0x15c)]=[{'all':!![]}]),db[_0x6003f8(0x129)][_0x6003f8(0x168)](_0x37d248);})[_0x1baf8(0x135)](function(_0x134a3f){return _0x55e934['rows']=_0x134a3f,_0x55e934;})['then'](respondWithFilteredResult(_0x33607c,_0x37d248))['catch'](handleError(_0x33607c,null));},exports[a769_0x4cbe74(0x162)]=function(_0x18cb53,_0x3c9029){const _0xcb5c9a=a769_0x4cbe74;let _0xa42734={'raw':![],'where':{'id':_0x18cb53[_0xcb5c9a(0x133)]['id']}};const _0x2d1a05={};return _0x2d1a05[_0xcb5c9a(0x153)]=_['keys'](db[_0xcb5c9a(0x129)][_0xcb5c9a(0x141)]),_0x2d1a05[_0xcb5c9a(0x149)]=_['keys'](_0x18cb53[_0xcb5c9a(0x149)]),_0x2d1a05[_0xcb5c9a(0x118)]=_['intersection'](_0x2d1a05[_0xcb5c9a(0x153)],_0x2d1a05[_0xcb5c9a(0x149)]),_0xa42734[_0xcb5c9a(0x14d)]=_[_0xcb5c9a(0x150)](_0x2d1a05[_0xcb5c9a(0x153)],qs[_0xcb5c9a(0x128)](_0x18cb53[_0xcb5c9a(0x149)][_0xcb5c9a(0x128)])),_0xa42734['attributes']=_0xa42734[_0xcb5c9a(0x14d)]['length']?_0xa42734[_0xcb5c9a(0x14d)]:_0x2d1a05[_0xcb5c9a(0x153)],_0x18cb53[_0xcb5c9a(0x149)][_0xcb5c9a(0x119)]&&(_0xa42734[_0xcb5c9a(0x15c)]=[{'all':!![]}]),_0xa42734=_[_0xcb5c9a(0x15b)]({},_0xa42734,_0x18cb53[_0xcb5c9a(0x15a)]),db[_0xcb5c9a(0x129)][_0xcb5c9a(0x12f)](_0xa42734)[_0xcb5c9a(0x135)](handleEntityNotFound(_0x3c9029,null))[_0xcb5c9a(0x135)](respondWithResult(_0x3c9029,null))['catch'](handleError(_0x3c9029,null));},exports[a769_0x4cbe74(0x152)]=function(_0x5b47da,_0x48a8fc){const _0x2b8462=a769_0x4cbe74;let _0xf30096={'where':{'id':_0x5b47da['params']['id']}};const _0x2a580a={};return _0x2a580a['model']=_[_0x2b8462(0x15e)](db[_0x2b8462(0x129)][_0x2b8462(0x141)]),_0xf30096[_0x2b8462(0x14d)]=_[_0x2b8462(0x150)](_0x2a580a[_0x2b8462(0x153)],qs['fields'](_0x5b47da[_0x2b8462(0x149)]['fields'])),_0xf30096['attributes']=_0xf30096['attributes'][_0x2b8462(0x164)]?_0xf30096[_0x2b8462(0x14d)]:_0x2a580a[_0x2b8462(0x153)],_0x5b47da['query'][_0x2b8462(0x119)]&&(_0xf30096[_0x2b8462(0x15c)]=[{'all':!![]}]),_0xf30096=_[_0x2b8462(0x15b)]({},_0xf30096,_0x5b47da[_0x2b8462(0x15a)]),db[_0x2b8462(0x129)][_0x2b8462(0x12f)](_0xf30096)[_0x2b8462(0x135)](handleEntityNotFound(_0x48a8fc,null))[_0x2b8462(0x135)](function(_0x53ffa0){const _0x3c4dc9=_0x2b8462;if(_0x53ffa0){let _0x3d6ecc=_0x53ffa0[_0x3c4dc9(0x16a)]({'plain':!![]});return _0x3d6ecc=qs[_0x3c4dc9(0x165)](_0x3d6ecc,['id',_0x3c4dc9(0x122),_0x3c4dc9(0x13e)]),_0x5b47da[_0x3c4dc9(0x130)]=_[_0x3c4dc9(0x165)](_0x5b47da[_0x3c4dc9(0x130)],['id',_0x3c4dc9(0x122),_0x3c4dc9(0x13e)]),db['Trunk'][_0x3c4dc9(0x16d)](_[_0x3c4dc9(0x15b)](_0x3d6ecc,_0x5b47da[_0x3c4dc9(0x130)]),{'include':_0x5b47da['query'][_0x3c4dc9(0x119)]?[{'all':!![]}]:undefined})['then'](function(_0x448058){const _0x5d25ff=_0x3c4dc9,_0x12c994=_0x5b47da[_0x5d25ff(0x124)][_0x5d25ff(0x16a)]({'plain':!![]});if(!_0x12c994)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x12c994[_0x5d25ff(0x116)]==='user'){const _0xbbd488=_0x448058['get']({'plain':!![]}),_0x5c996b=_0x5d25ff(0x157);return db[_0x5d25ff(0x155)][_0x5d25ff(0x12f)]({'where':{'name':_0x5c996b,'userProfileId':_0x12c994['userProfileId']},'raw':!![]})['then'](function(_0x485272){const _0x2a4f26=_0x5d25ff;return _0x485272&&_0x485272[_0x2a4f26(0x136)]===0x0?db[_0x2a4f26(0x167)][_0x2a4f26(0x16d)]({'name':_0xbbd488[_0x2a4f26(0x11b)],'resourceId':_0xbbd488['id'],'type':_0x485272[_0x2a4f26(0x11b)],'sectionId':_0x485272['id']},{})[_0x2a4f26(0x135)](function(){return _0x448058;}):_0x448058;})[_0x5d25ff(0x138)](function(_0x5101d8){const _0x419434=_0x5d25ff;logger[_0x419434(0x158)](_0x419434(0x14f),_0x5101d8);throw _0x5101d8;});}return _0x448058;});}})['then'](respondWithResult(_0x48a8fc,0xc9))[_0x2b8462(0x138)](handleError(_0x48a8fc,null));},exports[a769_0x4cbe74(0x16d)]=function(_0x903d7d,_0x5770d4){const _0x295372=a769_0x4cbe74;let _0x3b2b38;return db[_0x295372(0x129)][_0x295372(0x16d)](_0x903d7d[_0x295372(0x130)],{'raw':!![]})[_0x295372(0x135)](function(_0x5f0f66){const _0x12efce=_0x295372;return _0x3b2b38=_0x5f0f66,db[_0x12efce(0x129)]['findAll']({'raw':!![]});})[_0x295372(0x135)](function(_0x427c41){const _0xf383a7=_0x295372,_0x4d8b92=fs[_0xf383a7(0x120)](path[_0xf383a7(0x12b)](config[_0xf383a7(0x145)],_0xf383a7(0x14b)),_0xf383a7(0x15d)),_0x1d4c06=fs[_0xf383a7(0x120)](path[_0xf383a7(0x12b)](config[_0xf383a7(0x145)],_0xf383a7(0x142)),_0xf383a7(0x15d)),_0x1fb90b=ejs[_0xf383a7(0x132)](_0x4d8b92,{'trunks':_0x427c41||[]});fs['writeFileSync']('/etc/asterisk/sip_xcally_trunks.conf',_0x1fb90b);if(_0x3b2b38[_0xf383a7(0x137)]){const _0x295cae=ejs['render'](_0x1d4c06,{'trunks':_0x427c41||[]});fs[_0xf383a7(0x121)](_0xf383a7(0x134),_0x295cae);}})[_0x295372(0x135)](function(){const _0x674a3c=_0x295372;return respondWithRpcPromise(_0x674a3c(0x13a),_0x674a3c(0x16d),{'module':_0x674a3c(0x169)});})[_0x295372(0x135)](function(){const _0x331d01=_0x295372,_0x181d07=_0x903d7d['user'][_0x331d01(0x16a)]({'plain':!![]});if(!_0x181d07)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x181d07[_0x331d01(0x116)]===_0x331d01(0x124)){const _0x187ddf=_0x3b2b38[_0x331d01(0x16a)]({'plain':!![]});return db[_0x331d01(0x155)]['findOne']({'where':{'name':'Trunks','userProfileId':_0x181d07[_0x331d01(0x14e)]},'raw':!![]})['then'](function(_0x130c4f){const _0x498c11=_0x331d01;return _0x130c4f&&_0x130c4f['autoAssociation']===0x0?db[_0x498c11(0x167)]['create']({'name':_0x187ddf[_0x498c11(0x11b)],'resourceId':_0x187ddf['id'],'type':_0x130c4f[_0x498c11(0x11b)],'sectionId':_0x130c4f['id']},{})[_0x498c11(0x135)](function(){return _0x3b2b38;}):_0x3b2b38;})[_0x331d01(0x138)](function(_0x240df5){const _0x47b76b=_0x331d01;logger[_0x47b76b(0x158)](_0x47b76b(0x14f),_0x240df5);throw _0x240df5;});}return _0x3b2b38;})[_0x295372(0x135)](respondWithResult(_0x5770d4,0xc9))[_0x295372(0x138)](handleError(_0x5770d4,null));},exports[a769_0x4cbe74(0x160)]=function(_0xe1fadc,_0x4fb8d4){const _0x41fdc6=a769_0x4cbe74;let _0x5e7ce6;return db[_0x41fdc6(0x129)][_0x41fdc6(0x12f)]({'where':{'id':_0xe1fadc[_0x41fdc6(0x133)]['id']}})[_0x41fdc6(0x135)](handleEntityNotFound(_0x4fb8d4,null))['then'](saveUpdates(_0xe1fadc['body'],null))[_0x41fdc6(0x135)](function(_0x4eb5ab){const _0xbbe406=_0x41fdc6;if(_0x4eb5ab)return _0x5e7ce6=_0x4eb5ab,db[_0xbbe406(0x129)]['findAll']({'raw':!![]});})[_0x41fdc6(0x135)](function(_0x4e25b5){const _0x276d56=_0x41fdc6;if(_0x4e25b5){const _0x8fe0ed=fs[_0x276d56(0x120)](path[_0x276d56(0x12b)](config[_0x276d56(0x145)],'files/templates/trunk.ejs'),_0x276d56(0x15d)),_0x27d393=fs[_0x276d56(0x120)](path[_0x276d56(0x12b)](config[_0x276d56(0x145)],_0x276d56(0x142)),_0x276d56(0x15d)),_0x2a28ee=ejs[_0x276d56(0x132)](_0x8fe0ed,{'trunks':_0x4e25b5||[]});fs[_0x276d56(0x121)](_0x276d56(0x12a),_0x2a28ee);const _0xd517e3=ejs[_0x276d56(0x132)](_0x27d393,{'trunks':_0x4e25b5||[]});return fs[_0x276d56(0x121)](_0x276d56(0x134),_0xd517e3),respondWithRpcPromise(_0x276d56(0x13a),_0x276d56(0x160),{'module':_0x276d56(0x169)});}return null;})[_0x41fdc6(0x135)](function(_0x2dea1f){if(_0x2dea1f)return _0x5e7ce6;})[_0x41fdc6(0x135)](respondWithResult(_0x4fb8d4,null))[_0x41fdc6(0x138)](handleError(_0x4fb8d4,null));},exports[a769_0x4cbe74(0x12d)]=function(_0x54e071,_0x51add5){const _0x17aaa3=a769_0x4cbe74;return db[_0x17aaa3(0x129)][_0x17aaa3(0x12f)]({'where':{'id':_0x54e071[_0x17aaa3(0x133)]['id']}})[_0x17aaa3(0x135)](handleEntityNotFound(_0x51add5,null))['then'](removeEntity(_0x51add5,null))[_0x17aaa3(0x135)](function(){const _0x3c044f=_0x17aaa3;return db[_0x3c044f(0x129)][_0x3c044f(0x168)]({'raw':!![]});})['then'](function(_0x4944b0){const _0x9a1e5a=_0x17aaa3,_0x328b52=fs['readFileSync'](path[_0x9a1e5a(0x12b)](config[_0x9a1e5a(0x145)],_0x9a1e5a(0x14b)),_0x9a1e5a(0x15d)),_0x2217bc=fs[_0x9a1e5a(0x120)](path[_0x9a1e5a(0x12b)](config[_0x9a1e5a(0x145)],_0x9a1e5a(0x142)),_0x9a1e5a(0x15d)),_0x28885f=ejs[_0x9a1e5a(0x132)](_0x328b52,{'trunks':_0x4944b0}),_0x49d19d=ejs[_0x9a1e5a(0x132)](_0x2217bc,{'trunks':_0x4944b0});return fs['writeFileSync']('/etc/asterisk/sip_xcally_trunks.conf',_0x28885f),fs['writeFileSync'](_0x9a1e5a(0x134),_0x49d19d),respondWithRpcPromise(_0x9a1e5a(0x13a),_0x9a1e5a(0x12d),{'module':_0x9a1e5a(0x169)});})[_0x17aaa3(0x138)](handleError(_0x51add5,null));}; \ No newline at end of file diff --git a/server/api/trunk/trunk.model.js b/server/api/trunk/trunk.model.js index 7cd8fa2..42b4424 100644 --- a/server/api/trunk/trunk.model.js +++ b/server/api/trunk/trunk.model.js @@ -1 +1 @@ -const a770_0x44f7=['exports','./trunk.attributes','sequelize','init','Trunk'];(function(_0x2cc77e,_0x40531f){const _0x44f73a=function(_0x25ed80){while(--_0x25ed80){_0x2cc77e['push'](_0x2cc77e['shift']());}};_0x44f73a(++_0x40531f);}(a770_0x44f7,0xd8));const a770_0x25ed=function(_0x2cc77e,_0x40531f){_0x2cc77e=_0x2cc77e-0x149;let _0x44f73a=a770_0x44f7[_0x2cc77e];return _0x44f73a;};const a770_0x21bb65=a770_0x25ed;'use strict';const {Model}=require(a770_0x21bb65(0x14a)),{attributes}=require(a770_0x21bb65(0x149)),{options}=require('./trunk.options');class Trunk extends Model{}function init(_0xbb6a8e,_0x121c05){const _0x1fbc93=a770_0x21bb65,_0x7b4726=options(_0xbb6a8e),_0x41eaea=typeof _0x121c05==='function'?_0x121c05(_0x7b4726):_0x7b4726;return Trunk[_0x1fbc93(0x14b)](attributes,_0x41eaea),Trunk;}module[a770_0x21bb65(0x14d)][a770_0x21bb65(0x14c)]=Trunk,module['exports']['init']=init; \ No newline at end of file +const a770_0x5dd4=['sequelize','function','init','exports','Trunk','./trunk.attributes'];(function(_0x4b0aac,_0x34b14b){const _0x5dd439=function(_0x145499){while(--_0x145499){_0x4b0aac['push'](_0x4b0aac['shift']());}};_0x5dd439(++_0x34b14b);}(a770_0x5dd4,0x156));const a770_0x1454=function(_0x4b0aac,_0x34b14b){_0x4b0aac=_0x4b0aac-0x146;let _0x5dd439=a770_0x5dd4[_0x4b0aac];return _0x5dd439;};const a770_0x5af422=a770_0x1454;'use strict';const {Model}=require(a770_0x5af422(0x146)),{attributes}=require(a770_0x5af422(0x14b)),{options}=require('./trunk.options');class Trunk extends Model{}function init(_0xaf6e5d,_0x20500f){const _0x412a62=a770_0x5af422,_0x399f39=options(_0xaf6e5d),_0x324d3c=typeof _0x20500f===_0x412a62(0x147)?_0x20500f(_0x399f39):_0x399f39;return Trunk[_0x412a62(0x148)](attributes,_0x324d3c),Trunk;}module[a770_0x5af422(0x149)][a770_0x5af422(0x14a)]=Trunk,module[a770_0x5af422(0x149)][a770_0x5af422(0x148)]=init; \ No newline at end of file diff --git a/server/api/trunk/trunk.options.js b/server/api/trunk/trunk.options.js index dfba4ae..f2d6df3 100644 --- a/server/api/trunk/trunk.options.js +++ b/server/api/trunk/trunk.options.js @@ -1 +1 @@ -var a771_0x9412=['exports','options'];(function(_0x588b35,_0x5ec6a1){var _0x9412fd=function(_0x365277){while(--_0x365277){_0x588b35['push'](_0x588b35['shift']());}};_0x9412fd(++_0x5ec6a1);}(a771_0x9412,0x1f1));var a771_0x3652=function(_0x588b35,_0x5ec6a1){_0x588b35=_0x588b35-0x11b;var _0x9412fd=a771_0x9412[_0x588b35];return _0x9412fd;};var a771_0xbf0e41=a771_0x3652;function options(_0x15dc6c){return{'sequelize':_0x15dc6c,'tableName':'tools_trunks','paranoid':![],'indexes':[],'timestamps':!![]};}module[a771_0xbf0e41(0x11c)][a771_0xbf0e41(0x11b)]=options; \ No newline at end of file +var a771_0x2ac9=['tools_trunks','options'];(function(_0x218e13,_0xa73167){var _0x2ac9f1=function(_0x4f1053){while(--_0x4f1053){_0x218e13['push'](_0x218e13['shift']());}};_0x2ac9f1(++_0xa73167);}(a771_0x2ac9,0x147));var a771_0x4f10=function(_0x218e13,_0xa73167){_0x218e13=_0x218e13-0x11f;var _0x2ac9f1=a771_0x2ac9[_0x218e13];return _0x2ac9f1;};var a771_0x48b1eb=a771_0x4f10;function options(_0x59cc1d){var _0x98455f=a771_0x4f10;return{'sequelize':_0x59cc1d,'tableName':_0x98455f(0x120),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a771_0x48b1eb(0x11f)]=options; \ No newline at end of file diff --git a/server/api/trunk/trunk.rpc.js b/server/api/trunk/trunk.rpc.js index 528778c..79fc235 100644 --- a/server/api/trunk/trunk.rpc.js +++ b/server/api/trunk/trunk.rpc.js @@ -1 +1 @@ -const a772_0x7812=['ShowTrunk','catch','debug','../../mysqldb','Trunk','then','options','limit','stringify','attributes','lodash','model','findAll','error','message','map','where','findOne','GetTrunk','include','info','rpc','raw','../../config/logger'];(function(_0x3dd3c7,_0xf1fb92){const _0x7812a4=function(_0x17a014){while(--_0x17a014){_0x3dd3c7['push'](_0x3dd3c7['shift']());}};_0x7812a4(++_0xf1fb92);}(a772_0x7812,0x187));const a772_0x17a0=function(_0x3dd3c7,_0xf1fb92){_0x3dd3c7=_0x3dd3c7-0xfd;let _0x7812a4=a772_0x7812[_0x3dd3c7];return _0x7812a4;};const a772_0x4deb28=a772_0x17a0;'use strict';const _=require(a772_0x4deb28(0x100)),db=require(a772_0x4deb28(0x111))['db'],logger=require(a772_0x4deb28(0x10d))(a772_0x4deb28(0x10b));exports['GetTrunk']=function(_0x102872){const _0xa01bbf=this;return new Promise(function(_0x47a1b7,_0x187585){const _0x2a71b1=a772_0x17a0;return db[_0x2a71b1(0x112)][_0x2a71b1(0x102)]({'raw':_0x102872[_0x2a71b1(0x114)]?_0x102872[_0x2a71b1(0x114)][_0x2a71b1(0x10c)]===undefined?!![]:![]:!![],'where':_0x102872[_0x2a71b1(0x114)]?_0x102872['options'][_0x2a71b1(0x106)]||null:null,'attributes':_0x102872[_0x2a71b1(0x114)]?_0x102872[_0x2a71b1(0x114)][_0x2a71b1(0xff)]||null:null,'limit':_0x102872[_0x2a71b1(0x114)]?_0x102872[_0x2a71b1(0x114)][_0x2a71b1(0xfd)]||null:null,'include':_0x102872[_0x2a71b1(0x114)]?_0x102872[_0x2a71b1(0x114)][_0x2a71b1(0x109)]?_['map'](_0x102872[_0x2a71b1(0x114)]['include'],function(_0x4dff06){const _0x5ea7c3=_0x2a71b1;return{'model':db[_0x4dff06[_0x5ea7c3(0x101)]],'as':_0x4dff06['as'],'attributes':_0x4dff06['attributes'],'include':_0x4dff06[_0x5ea7c3(0x109)]?_[_0x5ea7c3(0x105)](_0x4dff06['include'],function(_0x5c75ed){const _0x32392c=_0x5ea7c3;return{'model':db[_0x5c75ed['model']],'as':_0x5c75ed['as'],'attributes':_0x5c75ed[_0x32392c(0xff)],'include':_0x5c75ed[_0x32392c(0x109)]?_[_0x32392c(0x105)](_0x5c75ed['include'],function(_0x2ed397){const _0x23cb32=_0x32392c;return{'model':db[_0x2ed397[_0x23cb32(0x101)]],'as':_0x2ed397['as'],'attributes':_0x2ed397[_0x23cb32(0xff)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x13b170){const _0x1762fb=_0x2a71b1;logger[_0x1762fb(0x10a)](_0x1762fb(0x108),_0x102872),logger[_0x1762fb(0x110)](_0x1762fb(0x108),_0x102872,JSON[_0x1762fb(0xfe)](_0x13b170)),_0x47a1b7(_0x13b170);})[_0x2a71b1(0x10f)](function(_0x4efbb1){const _0x346662=_0x2a71b1;logger[_0x346662(0x103)](_0x346662(0x108),_0x4efbb1['message'],_0x102872),_0x187585(_0xa01bbf['error'](0x1f4,_0x4efbb1[_0x346662(0x104)]));});});},exports[a772_0x4deb28(0x10e)]=function(_0x36b1d2){const _0x1b3ae5=this;return new Promise(function(_0xee0256,_0x38dbfd){const _0xa737a4=a772_0x17a0;return db['Trunk'][_0xa737a4(0x107)]({'raw':_0x36b1d2[_0xa737a4(0x114)]?_0x36b1d2['options'][_0xa737a4(0x10c)]===undefined?!![]:![]:!![],'where':_0x36b1d2[_0xa737a4(0x114)]?_0x36b1d2[_0xa737a4(0x114)]['where']||null:null,'attributes':_0x36b1d2[_0xa737a4(0x114)]?_0x36b1d2[_0xa737a4(0x114)]['attributes']||null:null,'include':_0x36b1d2[_0xa737a4(0x114)]?_0x36b1d2['options'][_0xa737a4(0x109)]?_[_0xa737a4(0x105)](_0x36b1d2['options'][_0xa737a4(0x109)],function(_0x58210b){const _0x2bb601=_0xa737a4;return{'model':db[_0x58210b['model']],'as':_0x58210b['as'],'attributes':_0x58210b[_0x2bb601(0xff)],'include':_0x58210b[_0x2bb601(0x109)]?_[_0x2bb601(0x105)](_0x58210b[_0x2bb601(0x109)],function(_0x301927){const _0x5e3cf1=_0x2bb601;return{'model':db[_0x301927[_0x5e3cf1(0x101)]],'as':_0x301927['as'],'attributes':_0x301927[_0x5e3cf1(0xff)],'include':_0x301927['include']?_[_0x5e3cf1(0x105)](_0x301927[_0x5e3cf1(0x109)],function(_0x5192a0){const _0x300790=_0x5e3cf1;return{'model':db[_0x5192a0['model']],'as':_0x5192a0['as'],'attributes':_0x5192a0[_0x300790(0xff)]};}):[]};}):[]};}):[]:[]})[_0xa737a4(0x113)](function(_0x1c98d1){const _0x2b536d=_0xa737a4;logger['info'](_0x2b536d(0x10e),_0x36b1d2),logger[_0x2b536d(0x110)](_0x2b536d(0x10e),_0x36b1d2,JSON['stringify'](_0x1c98d1)),_0xee0256(_0x1c98d1);})[_0xa737a4(0x10f)](function(_0x12b57c){const _0xe5f005=_0xa737a4;logger[_0xe5f005(0x103)](_0xe5f005(0x10e),_0x12b57c[_0xe5f005(0x104)],_0x36b1d2),_0x38dbfd(_0x1b3ae5['error'](0x1f4,_0x12b57c[_0xe5f005(0x104)]));});});}; \ No newline at end of file +const a772_0x4703=['findOne','where','raw','options','debug','stringify','Trunk','attributes','message','catch','../../config/logger','info','error','GetTrunk','limit','model','include','ShowTrunk','map','rpc','lodash','../../mysqldb','then'];(function(_0x2204a4,_0x56fb1e){const _0x47038b=function(_0xe2fe35){while(--_0xe2fe35){_0x2204a4['push'](_0x2204a4['shift']());}};_0x47038b(++_0x56fb1e);}(a772_0x4703,0x1cd));const a772_0xe2fe=function(_0x2204a4,_0x56fb1e){_0x2204a4=_0x2204a4-0xa9;let _0x47038b=a772_0x4703[_0x2204a4];return _0x47038b;};const a772_0x51b87a=a772_0xe2fe;'use strict';const _=require(a772_0x51b87a(0xbc)),db=require(a772_0x51b87a(0xbd))['db'],logger=require(a772_0x51b87a(0xb2))(a772_0x51b87a(0xbb));exports[a772_0x51b87a(0xb5)]=function(_0x3c433d){const _0x3ec5e2=this;return new Promise(function(_0x31cf8a,_0x1bd764){const _0x46db6e=a772_0xe2fe;return db['Trunk']['findAll']({'raw':_0x3c433d['options']?_0x3c433d[_0x46db6e(0xab)][_0x46db6e(0xaa)]===undefined?!![]:![]:!![],'where':_0x3c433d[_0x46db6e(0xab)]?_0x3c433d[_0x46db6e(0xab)][_0x46db6e(0xa9)]||null:null,'attributes':_0x3c433d[_0x46db6e(0xab)]?_0x3c433d[_0x46db6e(0xab)][_0x46db6e(0xaf)]||null:null,'limit':_0x3c433d[_0x46db6e(0xab)]?_0x3c433d[_0x46db6e(0xab)][_0x46db6e(0xb6)]||null:null,'include':_0x3c433d[_0x46db6e(0xab)]?_0x3c433d['options'][_0x46db6e(0xb8)]?_['map'](_0x3c433d[_0x46db6e(0xab)][_0x46db6e(0xb8)],function(_0x4f1868){const _0x30e3b3=_0x46db6e;return{'model':db[_0x4f1868['model']],'as':_0x4f1868['as'],'attributes':_0x4f1868[_0x30e3b3(0xaf)],'include':_0x4f1868[_0x30e3b3(0xb8)]?_['map'](_0x4f1868[_0x30e3b3(0xb8)],function(_0x3ebdb0){const _0x118e9f=_0x30e3b3;return{'model':db[_0x3ebdb0['model']],'as':_0x3ebdb0['as'],'attributes':_0x3ebdb0['attributes'],'include':_0x3ebdb0[_0x118e9f(0xb8)]?_[_0x118e9f(0xba)](_0x3ebdb0['include'],function(_0x379b8c){const _0x530ca0=_0x118e9f;return{'model':db[_0x379b8c['model']],'as':_0x379b8c['as'],'attributes':_0x379b8c[_0x530ca0(0xaf)]};}):[]};}):[]};}):[]:[]})[_0x46db6e(0xbe)](function(_0x33b65e){const _0xbae5fb=_0x46db6e;logger[_0xbae5fb(0xb3)](_0xbae5fb(0xb5),_0x3c433d),logger[_0xbae5fb(0xac)](_0xbae5fb(0xb5),_0x3c433d,JSON[_0xbae5fb(0xad)](_0x33b65e)),_0x31cf8a(_0x33b65e);})[_0x46db6e(0xb1)](function(_0xbb013f){const _0x1526e4=_0x46db6e;logger['error'](_0x1526e4(0xb5),_0xbb013f['message'],_0x3c433d),_0x1bd764(_0x3ec5e2['error'](0x1f4,_0xbb013f['message']));});});},exports[a772_0x51b87a(0xb9)]=function(_0x3e0bec){const _0x5cd6d3=this;return new Promise(function(_0x9027a3,_0x18e0f7){const _0x36300a=a772_0xe2fe;return db[_0x36300a(0xae)][_0x36300a(0xbf)]({'raw':_0x3e0bec['options']?_0x3e0bec[_0x36300a(0xab)][_0x36300a(0xaa)]===undefined?!![]:![]:!![],'where':_0x3e0bec[_0x36300a(0xab)]?_0x3e0bec[_0x36300a(0xab)]['where']||null:null,'attributes':_0x3e0bec[_0x36300a(0xab)]?_0x3e0bec[_0x36300a(0xab)][_0x36300a(0xaf)]||null:null,'include':_0x3e0bec[_0x36300a(0xab)]?_0x3e0bec[_0x36300a(0xab)][_0x36300a(0xb8)]?_[_0x36300a(0xba)](_0x3e0bec[_0x36300a(0xab)][_0x36300a(0xb8)],function(_0x26e962){const _0x474890=_0x36300a;return{'model':db[_0x26e962[_0x474890(0xb7)]],'as':_0x26e962['as'],'attributes':_0x26e962[_0x474890(0xaf)],'include':_0x26e962[_0x474890(0xb8)]?_[_0x474890(0xba)](_0x26e962[_0x474890(0xb8)],function(_0x251936){const _0x3ec288=_0x474890;return{'model':db[_0x251936[_0x3ec288(0xb7)]],'as':_0x251936['as'],'attributes':_0x251936['attributes'],'include':_0x251936['include']?_[_0x3ec288(0xba)](_0x251936[_0x3ec288(0xb8)],function(_0x50f5d4){const _0x5151fd=_0x3ec288;return{'model':db[_0x50f5d4['model']],'as':_0x50f5d4['as'],'attributes':_0x50f5d4[_0x5151fd(0xaf)]};}):[]};}):[]};}):[]:[]})[_0x36300a(0xbe)](function(_0x518e96){const _0x22c527=_0x36300a;logger[_0x22c527(0xb3)](_0x22c527(0xb9),_0x3e0bec),logger[_0x22c527(0xac)](_0x22c527(0xb9),_0x3e0bec,JSON[_0x22c527(0xad)](_0x518e96)),_0x9027a3(_0x518e96);})['catch'](function(_0x2a4740){const _0x10f502=_0x36300a;logger[_0x10f502(0xb4)]('ShowTrunk',_0x2a4740[_0x10f502(0xb0)],_0x3e0bec),_0x18e0f7(_0x5cd6d3[_0x10f502(0xb4)](0x1f4,_0x2a4740[_0x10f502(0xb0)]));});});}; \ No newline at end of file diff --git a/server/api/user/index.js b/server/api/user/index.js index b9c02e3..89ebe07 100644 --- a/server/api/user/index.js +++ b/server/api/user/index.js @@ -1 +1 @@ -const a773_0x4db2=['bulkCreate','multer','removeChatInteractions','index','/:id/sms/interactions','addAvatar','getMailInteractions','getWhatsappAccounts','/:id/fax_accounts','removeApiKey','../../config/environment','/:id/mail/interactions','/:id/openchannel_accounts','removeWhatsappAccounts','/:id/sms_interactions','removeSmsAccounts','/:id/chat_websites','getFaxAccounts','getLists','unpause','root','Router','/:id/agents','getVoiceQueuesRt','getRecordings','removeFaxAccounts','single','delete','getVoicePrefixes','addTeams','getSquareProjects','createApiKey','/:id/contacts','/:id/openchannel_interactions','addOpenchannelInteractions','getMailAccounts','%s-%s','put','getContacts','addFaxAccounts','/:id/square_projects','addChatWebsites','/:id/screen_recordings','addChatInteractions','/:id','/:id/api_key','isAuthenticated','/:id/chat/interactions','/:id/login','addFaxInteractions','/whoami','/:id/logout','removeWhatsappInteractions','/:id/prefixes','util','pause','/:id/queues','getScheduledCalls','removeMailInteractions','addSmsAccounts','/:id/recordings','post','/:id/unpause','get','getSmsAccounts','destroy','join','originalname','/:id/avatar','../../components/auth/service','/:id/fax_interactions','getTeams','diskStorage','create','/:id/mail_accounts','addQueues','removeChatWebsites','getChatWebsites','files/images/','removeMailAccounts','removeSmsInteractions','file','/:id/whatsapp_accounts','/:id/whatsapp/interactions','/:id/teams','getAvatar','/:id/groups','getGroups','/:id/chat_interactions','/:id/sms_accounts','/:id/queues_rt','/:id/lists','addSmsInteractions','removeTeams','/:id/mail_interactions','/create_many','express','describe','addMailInteractions','getWhatsappInteractions','/:id/openchannel/interactions','getSmsInteractions','/:id/whatsapp_interactions','removeFaxInteractions'];(function(_0x28aa25,_0x20cf53){const _0x4db28e=function(_0x6942c1){while(--_0x6942c1){_0x28aa25['push'](_0x28aa25['shift']());}};_0x4db28e(++_0x20cf53);}(a773_0x4db2,0x1d8));const a773_0x6942=function(_0x28aa25,_0x20cf53){_0x28aa25=_0x28aa25-0x150;let _0x4db28e=a773_0x4db2[_0x28aa25];return _0x4db28e;};const a773_0x40749d=a773_0x6942;'use strict';const multer=require(a773_0x40749d(0x181)),util=require(a773_0x40749d(0x1b6)),path=require('path'),express=require(a773_0x40749d(0x178)),router=express[a773_0x40749d(0x195)](),auth=require(a773_0x40749d(0x15d)),config=require(a773_0x40749d(0x18a)),controller=require('./user.controller'),upload=multer({'storage':multer[a773_0x40749d(0x160)]({'destination':function(_0x549599,_0x2c551f,_0x40b3d8){const _0x104844=a773_0x40749d;_0x40b3d8(null,path[_0x104844(0x15a)](config[_0x104844(0x194)],_0x104844(0x166)));},'filename':function(_0x912bec,_0x432c7e,_0x2aaad6){const _0x337d48=a773_0x40749d;_0x2aaad6(null,util['format'](_0x337d48(0x1a4),Date['now'](),_0x432c7e[_0x337d48(0x15b)]));}})});router['get']('/',auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x183)]),router[a773_0x40749d(0x157)]('/describe',auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x179)]),router[a773_0x40749d(0x157)](a773_0x40749d(0x1b2),auth[a773_0x40749d(0x1ae)](),controller['whoami']),router[a773_0x40749d(0x157)](a773_0x40749d(0x1ac),auth['isAuthenticated'](),controller['show']),router[a773_0x40749d(0x157)](a773_0x40749d(0x15c),controller[a773_0x40749d(0x16d)]),router[a773_0x40749d(0x157)](a773_0x40749d(0x1a0),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x1a6)]),router[a773_0x40749d(0x157)](a773_0x40749d(0x150),auth[a773_0x40749d(0x1ae)](),controller['getQueues']),router[a773_0x40749d(0x157)](a773_0x40749d(0x172),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x197)]),router['get'](a773_0x40749d(0x16e),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x16f)]),router[a773_0x40749d(0x157)](a773_0x40749d(0x154),auth['isAuthenticated'](),controller[a773_0x40749d(0x198)]),router[a773_0x40749d(0x157)](a773_0x40749d(0x1aa),auth['isAuthenticated'](),controller['getScreenRecordings']),router['get'](a773_0x40749d(0x1af),auth[a773_0x40749d(0x1ae)](),controller['getChatInteractions']),router[a773_0x40749d(0x157)](a773_0x40749d(0x17c),auth[a773_0x40749d(0x1ae)](),controller['getOpenchannelInteractions']),router[a773_0x40749d(0x157)](a773_0x40749d(0x18b),auth['isAuthenticated'](),controller[a773_0x40749d(0x186)]),router['get'](a773_0x40749d(0x184),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x17d)]),router['get']('/:id/fax/interactions',auth[a773_0x40749d(0x1ae)](),controller['getFaxInteractions']),router['get'](a773_0x40749d(0x16b),auth['isAuthenticated'](),controller[a773_0x40749d(0x17b)]),router[a773_0x40749d(0x157)]('/:id/teams',auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x15f)]),router[a773_0x40749d(0x157)](a773_0x40749d(0x173),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x192)]),router['get'](a773_0x40749d(0x196),auth[a773_0x40749d(0x1ae)](),controller['getAgents']),router[a773_0x40749d(0x157)](a773_0x40749d(0x1b5),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x19c)]),router[a773_0x40749d(0x157)](a773_0x40749d(0x188),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x191)]),router[a773_0x40749d(0x157)](a773_0x40749d(0x162),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x1a3)]),router[a773_0x40749d(0x157)]('/:id/openchannel_accounts',auth['isAuthenticated'](),controller['getOpenchannelAccounts']),router[a773_0x40749d(0x157)](a773_0x40749d(0x171),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x158)]),router[a773_0x40749d(0x157)](a773_0x40749d(0x190),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x165)]),router['get']('/:id/whatsapp_accounts',auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x187)]),router[a773_0x40749d(0x157)](a773_0x40749d(0x1a8),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x19e)]),router[a773_0x40749d(0x157)]('/:id/scheduled_calls',auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x151)]),router[a773_0x40749d(0x157)](a773_0x40749d(0x1ad),auth[a773_0x40749d(0x1ae)](),controller['getApiKey']),router[a773_0x40749d(0x155)](a773_0x40749d(0x1a0),auth[a773_0x40749d(0x1ae)](),controller['addContacts']),router[a773_0x40749d(0x155)]('/',auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x161)]),router[a773_0x40749d(0x155)](a773_0x40749d(0x177),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x180)]),router[a773_0x40749d(0x155)](a773_0x40749d(0x150),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x163)]),router[a773_0x40749d(0x155)]('/:id/avatar',upload[a773_0x40749d(0x19a)](a773_0x40749d(0x169)),controller[a773_0x40749d(0x185)]),router[a773_0x40749d(0x155)](a773_0x40749d(0x1b0),auth[a773_0x40749d(0x1ae)](),controller['login']),router[a773_0x40749d(0x155)](a773_0x40749d(0x1b3),auth['isAuthenticated'](),controller['logout']),router['post']('/:id/pause',auth['isAuthenticated'](),controller[a773_0x40749d(0x1b7)]),router[a773_0x40749d(0x155)](a773_0x40749d(0x156),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x193)]),router['post'](a773_0x40749d(0x16c),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x19d)]),router[a773_0x40749d(0x155)](a773_0x40749d(0x170),auth['isAuthenticated'](),controller[a773_0x40749d(0x1ab)]),router[a773_0x40749d(0x155)](a773_0x40749d(0x176),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x17a)]),router[a773_0x40749d(0x155)](a773_0x40749d(0x15e),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x1b1)]),router['post']('/:id/sms_interactions',auth['isAuthenticated'](),controller[a773_0x40749d(0x174)]),router['post']('/:id/openchannel_interactions',auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x1a2)]),router['post'](a773_0x40749d(0x17e),auth[a773_0x40749d(0x1ae)](),controller['addWhatsappInteractions']),router['post'](a773_0x40749d(0x188),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x1a7)]),router[a773_0x40749d(0x155)](a773_0x40749d(0x162),auth['isAuthenticated'](),controller['addMailAccounts']),router[a773_0x40749d(0x155)]('/:id/openchannel_accounts',auth['isAuthenticated'](),controller['addOpenchannelAccounts']),router[a773_0x40749d(0x155)](a773_0x40749d(0x171),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x153)]),router['post']('/:id/chat_websites',auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x1a9)]),router['post']('/:id/whatsapp_accounts',auth['isAuthenticated'](),controller['addWhatsappAccounts']),router[a773_0x40749d(0x155)](a773_0x40749d(0x1a8),auth[a773_0x40749d(0x1ae)](),controller['addSquareProjects']),router[a773_0x40749d(0x155)](a773_0x40749d(0x1ad),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x19f)]),router[a773_0x40749d(0x1a5)](a773_0x40749d(0x1ac),auth[a773_0x40749d(0x1ae)](),controller['update']),router[a773_0x40749d(0x1a5)]('/:id/password',auth[a773_0x40749d(0x1ae)](),controller['changePassword']),router[a773_0x40749d(0x19b)](a773_0x40749d(0x150),auth[a773_0x40749d(0x1ae)](),controller['removeQueues']),router[a773_0x40749d(0x19b)]('/:id/teams',auth['isAuthenticated'](),controller[a773_0x40749d(0x175)]),router[a773_0x40749d(0x19b)]('/:id',auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x159)]),router[a773_0x40749d(0x19b)](a773_0x40749d(0x170),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x182)]),router['delete'](a773_0x40749d(0x176),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x152)]),router[a773_0x40749d(0x19b)](a773_0x40749d(0x15e),auth['isAuthenticated'](),controller[a773_0x40749d(0x17f)]),router[a773_0x40749d(0x19b)](a773_0x40749d(0x18e),auth['isAuthenticated'](),controller[a773_0x40749d(0x168)]),router[a773_0x40749d(0x19b)](a773_0x40749d(0x1a1),auth[a773_0x40749d(0x1ae)](),controller['removeOpenchannelInteractions']),router[a773_0x40749d(0x19b)](a773_0x40749d(0x17e),auth['isAuthenticated'](),controller[a773_0x40749d(0x1b4)]),router[a773_0x40749d(0x19b)]('/:id/fax_accounts',auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x199)]),router[a773_0x40749d(0x19b)](a773_0x40749d(0x162),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x167)]),router[a773_0x40749d(0x19b)](a773_0x40749d(0x18c),auth[a773_0x40749d(0x1ae)](),controller['removeOpenchannelAccounts']),router[a773_0x40749d(0x19b)](a773_0x40749d(0x171),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x18f)]),router[a773_0x40749d(0x19b)](a773_0x40749d(0x190),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x164)]),router[a773_0x40749d(0x19b)](a773_0x40749d(0x16a),auth['isAuthenticated'](),controller[a773_0x40749d(0x18d)]),router[a773_0x40749d(0x19b)](a773_0x40749d(0x1a8),auth[a773_0x40749d(0x1ae)](),controller['removeSquareProjects']),router[a773_0x40749d(0x19b)](a773_0x40749d(0x1ad),auth[a773_0x40749d(0x1ae)](),controller[a773_0x40749d(0x189)]),module['exports']=router; \ No newline at end of file +const a773_0x5695=['addMailAccounts','getChatWebsites','format','/:id/openchannel_accounts','removeTeams','/:id/login','removeOpenchannelInteractions','get','describe','getOpenchannelInteractions','createApiKey','bulkCreate','getWhatsappInteractions','addSquareProjects','addWhatsappAccounts','/:id/queues','addChatInteractions','/:id/square_projects','addSmsInteractions','/:id/prefixes','getWhatsappAccounts','getAgents','exports','/:id/fax_interactions','changePassword','/:id/queues_rt','getMailInteractions','/:id/chat/interactions','getLists','addQueues','/:id/chat_interactions','/:id/mail/interactions','index','/:id/avatar','addOpenchannelAccounts','/:id/recordings','update','removeQueues','getFaxAccounts','getAvatar','removeSquareProjects','/:id/contacts','login','/:id/groups','getSquareProjects','removeMailInteractions','/:id/whatsapp_accounts','unpause','single','/:id/sms/interactions','getScreenRecordings','removeMailAccounts','isAuthenticated','/:id/agents','getApiKey','getOpenchannelAccounts','getGroups','removeWhatsappAccounts','addFaxInteractions','multer','file','/:id/pause','whoami','/:id/lists','../../components/auth/service','/:id/api_key','removeWhatsappInteractions','%s-%s','/:id/whatsapp_interactions','removeChatWebsites','removeSmsInteractions','removeSmsAccounts','addWhatsappInteractions','post','logout','/:id/password','getFaxInteractions','getSmsAccounts','destroy','now','getContacts','show','Router','/:id/scheduled_calls','/:id/teams','/:id/sms_accounts','addSmsAccounts','addChatWebsites','getRecordings','express','diskStorage','../../config/environment','originalname','getQueues','util','path','/:id/openchannel/interactions','getTeams','put','files/images/','/:id/logout','removeFaxInteractions','/:id/fax_accounts','/:id/sms_interactions','/:id/whatsapp/interactions','removeFaxAccounts','/:id/mail_accounts','/:id/mail_interactions','/:id','/:id/unpause','removeChatInteractions','./user.controller','delete'];(function(_0x43bb5e,_0x2421ba){const _0x569557=function(_0x57bfd9){while(--_0x57bfd9){_0x43bb5e['push'](_0x43bb5e['shift']());}};_0x569557(++_0x2421ba);}(a773_0x5695,0xc2));const a773_0x57bf=function(_0x43bb5e,_0x2421ba){_0x43bb5e=_0x43bb5e-0x196;let _0x569557=a773_0x5695[_0x43bb5e];return _0x569557;};const a773_0x4b115b=a773_0x57bf;'use strict';const multer=require(a773_0x4b115b(0x1f1)),util=require(a773_0x4b115b(0x1a3)),path=require(a773_0x4b115b(0x1a4)),express=require(a773_0x4b115b(0x19e)),router=express[a773_0x4b115b(0x197)](),auth=require(a773_0x4b115b(0x1f6)),config=require(a773_0x4b115b(0x1a0)),controller=require(a773_0x4b115b(0x1b4)),upload=multer({'storage':multer[a773_0x4b115b(0x19f)]({'destination':function(_0x441243,_0x28fc29,_0x4930c0){const _0x594eb5=a773_0x4b115b;_0x4930c0(null,path['join'](config['root'],_0x594eb5(0x1a8)));},'filename':function(_0x1456d1,_0x466627,_0x460c0e){const _0xff9b21=a773_0x4b115b;_0x460c0e(null,util[_0xff9b21(0x1b8)](_0xff9b21(0x1f9),Date[_0xff9b21(0x205)](),_0x466627[_0xff9b21(0x1a1)]));}})});router[a773_0x4b115b(0x1bd)]('/',auth['isAuthenticated'](),controller[a773_0x4b115b(0x1d6)]),router[a773_0x4b115b(0x1bd)]('/describe',auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1be)]),router[a773_0x4b115b(0x1bd)]('/whoami',auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1f4)]),router[a773_0x4b115b(0x1bd)](a773_0x4b115b(0x1b1),auth['isAuthenticated'](),controller[a773_0x4b115b(0x196)]),router[a773_0x4b115b(0x1bd)]('/:id/avatar',controller[a773_0x4b115b(0x1dd)]),router[a773_0x4b115b(0x1bd)](a773_0x4b115b(0x1df),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x206)]),router[a773_0x4b115b(0x1bd)]('/:id/queues',auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1a2)]),router[a773_0x4b115b(0x1bd)](a773_0x4b115b(0x1cf),auth[a773_0x4b115b(0x1ea)](),controller['getVoiceQueuesRt']),router[a773_0x4b115b(0x1bd)](a773_0x4b115b(0x1e1),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1ee)]),router[a773_0x4b115b(0x1bd)](a773_0x4b115b(0x1d9),auth['isAuthenticated'](),controller[a773_0x4b115b(0x19d)]),router['get']('/:id/screen_recordings',auth['isAuthenticated'](),controller[a773_0x4b115b(0x1e8)]),router[a773_0x4b115b(0x1bd)](a773_0x4b115b(0x1d1),auth[a773_0x4b115b(0x1ea)](),controller['getChatInteractions']),router[a773_0x4b115b(0x1bd)](a773_0x4b115b(0x1a5),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1bf)]),router[a773_0x4b115b(0x1bd)](a773_0x4b115b(0x1d5),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1d0)]),router['get'](a773_0x4b115b(0x1e7),auth[a773_0x4b115b(0x1ea)](),controller['getSmsInteractions']),router[a773_0x4b115b(0x1bd)]('/:id/fax/interactions',auth['isAuthenticated'](),controller[a773_0x4b115b(0x202)]),router[a773_0x4b115b(0x1bd)](a773_0x4b115b(0x1ad),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1c2)]),router['get'](a773_0x4b115b(0x199),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1a6)]),router['get'](a773_0x4b115b(0x1f5),auth['isAuthenticated'](),controller[a773_0x4b115b(0x1d2)]),router[a773_0x4b115b(0x1bd)](a773_0x4b115b(0x1eb),auth['isAuthenticated'](),controller[a773_0x4b115b(0x1cb)]),router[a773_0x4b115b(0x1bd)](a773_0x4b115b(0x1c9),auth['isAuthenticated'](),controller['getVoicePrefixes']),router[a773_0x4b115b(0x1bd)](a773_0x4b115b(0x1ab),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1dc)]),router[a773_0x4b115b(0x1bd)]('/:id/mail_accounts',auth[a773_0x4b115b(0x1ea)](),controller['getMailAccounts']),router['get'](a773_0x4b115b(0x1b9),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1ed)]),router[a773_0x4b115b(0x1bd)]('/:id/sms_accounts',auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x203)]),router[a773_0x4b115b(0x1bd)]('/:id/chat_websites',auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1b7)]),router[a773_0x4b115b(0x1bd)](a773_0x4b115b(0x1e4),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1ca)]),router[a773_0x4b115b(0x1bd)]('/:id/square_projects',auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1e2)]),router[a773_0x4b115b(0x1bd)](a773_0x4b115b(0x198),auth[a773_0x4b115b(0x1ea)](),controller['getScheduledCalls']),router[a773_0x4b115b(0x1bd)](a773_0x4b115b(0x1f7),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1ec)]),router['post']('/:id/contacts',auth[a773_0x4b115b(0x1ea)](),controller['addContacts']),router[a773_0x4b115b(0x1ff)]('/',auth[a773_0x4b115b(0x1ea)](),controller['create']),router['post']('/create_many',auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1c1)]),router[a773_0x4b115b(0x1ff)](a773_0x4b115b(0x1c5),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1d3)]),router[a773_0x4b115b(0x1ff)](a773_0x4b115b(0x1d7),upload[a773_0x4b115b(0x1e6)](a773_0x4b115b(0x1f2)),controller['addAvatar']),router[a773_0x4b115b(0x1ff)](a773_0x4b115b(0x1bb),auth['isAuthenticated'](),controller[a773_0x4b115b(0x1e0)]),router['post'](a773_0x4b115b(0x1a9),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x200)]),router['post'](a773_0x4b115b(0x1f3),auth[a773_0x4b115b(0x1ea)](),controller['pause']),router['post'](a773_0x4b115b(0x1b2),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1e5)]),router[a773_0x4b115b(0x1ff)]('/:id/teams',auth[a773_0x4b115b(0x1ea)](),controller['addTeams']),router[a773_0x4b115b(0x1ff)](a773_0x4b115b(0x1d4),auth['isAuthenticated'](),controller[a773_0x4b115b(0x1c6)]),router[a773_0x4b115b(0x1ff)](a773_0x4b115b(0x1b0),auth[a773_0x4b115b(0x1ea)](),controller['addMailInteractions']),router['post'](a773_0x4b115b(0x1cd),auth['isAuthenticated'](),controller[a773_0x4b115b(0x1f0)]),router['post'](a773_0x4b115b(0x1ac),auth['isAuthenticated'](),controller[a773_0x4b115b(0x1c8)]),router[a773_0x4b115b(0x1ff)]('/:id/openchannel_interactions',auth['isAuthenticated'](),controller['addOpenchannelInteractions']),router['post'](a773_0x4b115b(0x1fa),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1fe)]),router[a773_0x4b115b(0x1ff)](a773_0x4b115b(0x1ab),auth[a773_0x4b115b(0x1ea)](),controller['addFaxAccounts']),router[a773_0x4b115b(0x1ff)](a773_0x4b115b(0x1af),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1b6)]),router[a773_0x4b115b(0x1ff)]('/:id/openchannel_accounts',auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1d8)]),router['post']('/:id/sms_accounts',auth['isAuthenticated'](),controller[a773_0x4b115b(0x19b)]),router[a773_0x4b115b(0x1ff)]('/:id/chat_websites',auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x19c)]),router['post'](a773_0x4b115b(0x1e4),auth['isAuthenticated'](),controller[a773_0x4b115b(0x1c4)]),router['post']('/:id/square_projects',auth['isAuthenticated'](),controller[a773_0x4b115b(0x1c3)]),router[a773_0x4b115b(0x1ff)](a773_0x4b115b(0x1f7),auth['isAuthenticated'](),controller[a773_0x4b115b(0x1c0)]),router[a773_0x4b115b(0x1a7)]('/:id',auth['isAuthenticated'](),controller[a773_0x4b115b(0x1da)]),router[a773_0x4b115b(0x1a7)](a773_0x4b115b(0x201),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1ce)]),router[a773_0x4b115b(0x1b5)](a773_0x4b115b(0x1c5),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1db)]),router[a773_0x4b115b(0x1b5)](a773_0x4b115b(0x199),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1ba)]),router[a773_0x4b115b(0x1b5)](a773_0x4b115b(0x1b1),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x204)]),router[a773_0x4b115b(0x1b5)](a773_0x4b115b(0x1d4),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1b3)]),router[a773_0x4b115b(0x1b5)](a773_0x4b115b(0x1b0),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1e3)]),router['delete'](a773_0x4b115b(0x1cd),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1aa)]),router['delete'](a773_0x4b115b(0x1ac),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1fc)]),router['delete']('/:id/openchannel_interactions',auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1bc)]),router[a773_0x4b115b(0x1b5)](a773_0x4b115b(0x1fa),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1f8)]),router[a773_0x4b115b(0x1b5)]('/:id/fax_accounts',auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1ae)]),router['delete'](a773_0x4b115b(0x1af),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1e9)]),router[a773_0x4b115b(0x1b5)](a773_0x4b115b(0x1b9),auth['isAuthenticated'](),controller['removeOpenchannelAccounts']),router['delete'](a773_0x4b115b(0x19a),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1fd)]),router['delete']('/:id/chat_websites',auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1fb)]),router['delete'](a773_0x4b115b(0x1e4),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1ef)]),router[a773_0x4b115b(0x1b5)](a773_0x4b115b(0x1c7),auth[a773_0x4b115b(0x1ea)](),controller[a773_0x4b115b(0x1de)]),router[a773_0x4b115b(0x1b5)](a773_0x4b115b(0x1f7),auth[a773_0x4b115b(0x1ea)](),controller['removeApiKey']),module[a773_0x4b115b(0x1cc)]=router; \ No newline at end of file diff --git a/server/api/user/user.attributes.js b/server/api/user/user.attributes.js index 63422f5..e2b06cc 100644 --- a/server/api/user/user.attributes.js +++ b/server/api/user/user.attributes.js @@ -1 +1 @@ -const a774_0x4c20=['icesupport','blockedAt','split','util','INTEGER','isArray','\x22\x22\x20<>','update','getDataValue','STRING','from-sip','rfc2833','admin','user','accept','wss','PROHIB','allow','lodash','join','defaultuser','rtcp_mux','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22gsm\x22]','friend','udp','info','format','nat','setDataValue','toLowerCase','/etc/pki/tls/private/motion.key','shortinfo','permissions','\x22%s\x22\x20<%s>','all','ulaw;alaw;gsm','actpass','TEXT','transport','ALLOWED_NOT_SCREENED','DATE','sequelize','VIRTUAL','showWebBar','BOOLEAN','dtlsenable','dtlssetup','refuse','force_avp','phoneBarEnableScreenRecordingByAgent','moment','auto','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]','yes','string','screenrecording','ENUM','PROHIB_FAILED_SCREEN','local','name','fullname','peer','always','PROHIB_NOT_SCREENED','DEFAULT\x20PAUSE','encryption','email','insecure','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]','The\x20name\x20of\x20the\x20user','attributes','dtlsprivatekey','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]','true','update,nonat','ALLOWED_PASSED_SCREEN','inband','nonat','dtlscertfile','PROHIB_PASSED_SCREEN','callerid','uac','loginAttempts','internal','/etc/pki/tls/certs/motion.crt','false','avpf','uas','originate','certificate','outgoing','exports','telephone'];(function(_0x5c145d,_0x328fed){const _0x4c20f0=function(_0x462916){while(--_0x462916){_0x5c145d['push'](_0x5c145d['shift']());}};_0x4c20f0(++_0x328fed);}(a774_0x4c20,0x15a));const a774_0x4629=function(_0x5c145d,_0x328fed){_0x5c145d=_0x5c145d-0xcd;let _0x4c20f0=a774_0x4c20[_0x5c145d];return _0x4c20f0;};const a774_0x449513=a774_0x4629;'use strict';const {DataTypes}=require(a774_0x449513(0x110)),moment=require(a774_0x449513(0x119)),util=require(a774_0x449513(0xea)),_=require(a774_0x449513(0xf9)),attributes={'name':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':![],'unique':a774_0x449513(0x122),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i},'set':function(_0x41fa7a){const _0x2b2ce7=a774_0x449513;this[_0x2b2ce7(0x103)]('name',_0x41fa7a),this[_0x2b2ce7(0x103)](_0x2b2ce7(0xfb),_0x41fa7a);},'comment':a774_0x449513(0xcf)},'fullname':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':![],'set':function(_0x2f0a25){const _0x24ce4=a774_0x449513;this['setDataValue'](_0x24ce4(0x123),_0x2f0a25),this[_0x24ce4(0x103)](_0x24ce4(0xda),util['format']('\x22%s\x22\x20<%s>',_0x2f0a25,this[_0x24ce4(0xef)](_0x24ce4(0xdd))));}},'alias':{'type':DataTypes[a774_0x449513(0xf0)]},'email':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':![],'unique':a774_0x449513(0x129),'validate':{'isEmail':!![]},'set':function(_0x55e083){const _0x4ae1ef=a774_0x449513;_0x55e083&&this[_0x4ae1ef(0x103)](_0x4ae1ef(0x129),_0x55e083[_0x4ae1ef(0x104)]());}},'role':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0xf3),a774_0x449513(0xf4),'agent',a774_0x449513(0xe6)),'allowNull':![]},'password':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':![],'validate':{'notEmpty':!![]}},'provider':{'type':DataTypes[a774_0x449513(0xf0)],'defaultValue':a774_0x449513(0x121)},'internal':{'type':DataTypes[a774_0x449513(0xeb)]({'length':0xb}),'allowNull':![],'unique':a774_0x449513(0xdd),'set':function(_0x363e21){const _0x44a6cf=a774_0x449513;this[_0x44a6cf(0x103)](_0x44a6cf(0xdd),_0x363e21),this[_0x44a6cf(0x103)]('accountcode',_0x363e21),this[_0x44a6cf(0x103)](_0x44a6cf(0xda),util[_0x44a6cf(0x101)](_0x44a6cf(0x108),this[_0x44a6cf(0xef)](_0x44a6cf(0x123)),_0x363e21));}},'salt':{'type':DataTypes['STRING']},'phone':{'type':DataTypes[a774_0x449513(0xf0)]},'mobile':{'type':DataTypes[a774_0x449513(0xf0)]},'address':{'type':DataTypes[a774_0x449513(0xf0)]},'zipcode':{'type':DataTypes[a774_0x449513(0xf0)]},'userpic':{'type':DataTypes[a774_0x449513(0xf0)]},'city':{'type':DataTypes[a774_0x449513(0xf0)]},'country':{'type':DataTypes[a774_0x449513(0xf0)]},'online':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![]},'lastLoginAt':{'type':DataTypes[a774_0x449513(0x10f)]},'voicePause':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![]},'chatPause':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![]},'mailPause':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![]},'faxPause':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![]},'smsPause':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![]},'whatsappPause':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![]},'openchannelPause':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'pauseType':{'type':DataTypes['STRING'],'defaultValue':a774_0x449513(0x127)},'lastPauseAt':{'type':DataTypes[a774_0x449513(0x10f)]},'chatCapacity':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'mailCapacity':{'type':DataTypes[a774_0x449513(0xeb)],'defaultValue':0x0},'faxCapacity':{'type':DataTypes[a774_0x449513(0xeb)],'defaultValue':0x0},'smsCapacity':{'type':DataTypes[a774_0x449513(0xeb)],'defaultValue':0x0},'whatsappCapacity':{'type':DataTypes[a774_0x449513(0xeb)],'defaultValue':0x0},'openchannelCapacity':{'type':DataTypes[a774_0x449513(0xeb)],'defaultValue':0x0},'phoneBarAutoAnswer':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![]},'phoneBarEnableSettings':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':!![]},'phoneBarListenPort':{'type':DataTypes[a774_0x449513(0xeb)]({'length':0x5}),'defaultValue':0x1428},'phoneBarExpires':{'type':DataTypes[a774_0x449513(0xeb)]({'length':0x5}),'defaultValue':0x78},'phoneBarRemoteControl':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![]},'phoneBarRemoteControlPort':{'type':DataTypes['INTEGER'],'defaultValue':0x26a0},'phoneBarEnableRecording':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![]},'phoneBarRingInUse':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![]},'chanspy':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![]},'description':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'host':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![],'defaultValue':'dynamic'},'ipaddr':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'port':{'type':DataTypes['INTEGER']({'length':0x5}),'allowNull':!![]},'regseconds':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'fullcontact':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'regserver':{'type':DataTypes['STRING'],'allowNull':!![]},'useragent':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'lastms':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'type':{'type':DataTypes['ENUM'](a774_0x449513(0xfe),a774_0x449513(0xf4),a774_0x449513(0x124)),'allowNull':!![],'defaultValue':a774_0x449513(0xfe)},'context':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![],'defaultValue':a774_0x449513(0xf1)},'callingpres':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0x10e),a774_0x449513(0xd5),'ALLOWED_FAILED_SCREEN','ALLOWED',a774_0x449513(0x126),a774_0x449513(0xd9),a774_0x449513(0x120),a774_0x449513(0xf7)),'allowNull':!![]},'deny':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'permit':{'type':DataTypes['STRING'],'allowNull':!![]},'secret':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'md5secret':{'type':DataTypes['STRING'],'allowNull':!![]},'remotesecret':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'transport':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![],'defaultValue':a774_0x449513(0xff),'set':function(_0x4f722f){const _0x5169a1=a774_0x449513;this[_0x5169a1(0x103)]('transport',typeof _0x4f722f===_0x5169a1(0x11d)?_0x4f722f:Array[_0x5169a1(0xec)](_0x4f722f)?_0x4f722f['join'](','):null);},'get':function(){const _0x30b92c=a774_0x449513;return this[_0x30b92c(0xef)](_0x30b92c(0x10d))?this[_0x30b92c(0xef)]('transport')[_0x30b92c(0xe9)](','):null;},'comment':a774_0x449513(0xce)},'dtmfmode':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0xf2),a774_0x449513(0x100),a774_0x449513(0x106),a774_0x449513(0xd6),a774_0x449513(0x11a)),'allowNull':!![],'defaultValue':a774_0x449513(0xf2)},'directmedia':{'type':DataTypes[a774_0x449513(0x11f)]('yes','no',a774_0x449513(0xd7),'update',a774_0x449513(0xe4)),'allowNull':!![],'defaultValue':'no'},'directrtpsetup':{'type':DataTypes['ENUM'](a774_0x449513(0x11c),'no'),'allowNull':!![],'defaultValue':'no'},'directmediapermit':{'type':DataTypes['STRING'],'allowNull':!![]},'directmediadeny':{'type':DataTypes['STRING'],'allowNull':!![]},'nat':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![],'defaultValue':'force_rport,comedia','set':function(_0x5d4ded){const _0x54b2b0=a774_0x449513;this[_0x54b2b0(0x103)](_0x54b2b0(0x102),typeof _0x5d4ded===_0x54b2b0(0x11d)?_0x5d4ded:Array[_0x54b2b0(0xec)](_0x5d4ded)?_0x5d4ded[_0x54b2b0(0xfa)](','):null);},'get':function(){const _0x4e61f4=a774_0x449513;return this[_0x4e61f4(0xef)]('nat')?this[_0x4e61f4(0xef)](_0x4e61f4(0x102))[_0x4e61f4(0xe9)](','):null;},'comment':a774_0x449513(0xd2)},'callgroup':{'type':DataTypes['STRING']},'namedcallgroup':{'type':DataTypes['STRING']},'pickupgroup':{'type':DataTypes[a774_0x449513(0xf0)]},'namedpickupgroup':{'type':DataTypes[a774_0x449513(0xf0)]},'language':{'type':DataTypes[a774_0x449513(0xf0)],'defaultValue':'en'},'tonezone':{'type':DataTypes[a774_0x449513(0xf0)]},'disallow':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':![],'defaultValue':a774_0x449513(0x109)},'allow':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':a774_0x449513(0x10a),'set':function(_0x54b063){const _0x51423d=a774_0x449513;this[_0x51423d(0x103)]('allow',typeof _0x54b063===_0x51423d(0x11d)?_0x54b063:Array[_0x51423d(0xec)](_0x54b063)?_0x54b063[_0x51423d(0xfa)](';'):_0x51423d(0x10a));},'get':function(){const _0x24ec1a=a774_0x449513;return this[_0x24ec1a(0xef)](_0x24ec1a(0xf8))?this[_0x24ec1a(0xef)](_0x24ec1a(0xf8))[_0x24ec1a(0xe9)](';'):null;},'comment':a774_0x449513(0xfd)},'autoframing':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0x11c),'no'),'allowNull':!![]},'insecure':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![],'set':function(_0x439aaf){const _0x1050e4=a774_0x449513;this[_0x1050e4(0x103)](_0x1050e4(0xcd),typeof _0x439aaf==='string'?_0x439aaf:Array[_0x1050e4(0xec)](_0x439aaf)?_0x439aaf[_0x1050e4(0xfa)](','):null);},'get':function(){const _0x7c2ed4=a774_0x449513;return this['getDataValue']('insecure')?this[_0x7c2ed4(0xef)](_0x7c2ed4(0xcd))[_0x7c2ed4(0xe9)](','):null;},'comment':a774_0x449513(0x11b)},'trustrpid':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0x11c),'no'),'allowNull':!![],'defaultValue':'no'},'trust_id_outbound':{'type':DataTypes['ENUM']('yes','no'),'allowNull':!![],'defaultValue':'no'},'progressinband':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0x11c),'no','never'),'allowNull':!![]},'promiscredir':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0x11c),'no'),'allowNull':!![]},'useclientcode':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0x11c),'no'),'allowNull':!![]},'accountcode':{'type':DataTypes[a774_0x449513(0xeb)]({'length':0xb}),'allowNull':!![]},'setvar':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'callerid':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![],'defaultValue':a774_0x449513(0xed)},'amaflags':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'callcounter':{'type':DataTypes['ENUM'](a774_0x449513(0x11c),'no'),'allowNull':!![],'defaultValue':a774_0x449513(0x11c)},'busylevel':{'type':DataTypes[a774_0x449513(0xeb)]({'length':0xb}),'allowNull':!![]},'allowoverlap':{'type':DataTypes['ENUM'](a774_0x449513(0x11c),'no'),'allowNull':!![]},'allowsubscribe':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0x11c),'no'),'allowNull':!![]},'allowtransfer':{'type':DataTypes[a774_0x449513(0x11f)]('yes','no'),'allowNull':!![]},'ignoresdpversion':{'type':DataTypes['ENUM']('yes','no'),'allowNull':!![]},'subscribecontext':{'type':DataTypes['STRING'],'allowNull':!![]},'template':{'type':DataTypes['STRING'],'allowNull':!![]},'videosupport':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0x11c),'no',a774_0x449513(0x125)),'allowNull':!![],'defaultValue':'no'},'maxcallbitrate':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'rfc2833compensate':{'type':DataTypes['ENUM'](a774_0x449513(0x11c),'no'),'allowNull':!![]},'mailbox':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'session_timers':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0xf5),a774_0x449513(0x116),a774_0x449513(0xe2)),'allowNull':!![]},'session_expires':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'session_minse':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'session_refresher':{'type':DataTypes['ENUM'](a774_0x449513(0xdb),a774_0x449513(0xe1)),'allowNull':!![],'defaultValue':a774_0x449513(0xe1)},'t38pt_usertpsource':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'regexten':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'fromdomain':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'fromuser':{'type':DataTypes['STRING'],'allowNull':!![]},'qualify':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0x11c),'no'),'allowNull':!![],'defaultValue':a774_0x449513(0x11c)},'keepalive':{'type':DataTypes[a774_0x449513(0xeb)]({'length':0xb}),'allowNull':!![]},'defaultip':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'defaultuser':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'rtptimeout':{'type':DataTypes[a774_0x449513(0xeb)]({'length':0xb}),'allowNull':!![]},'rtpholdtimeout':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'rtpkeepalive':{'type':DataTypes[a774_0x449513(0xeb)]({'length':0xb}),'allowNull':!![]},'sendrpid':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0x11c),'no'),'allowNull':!![],'defaultValue':'no'},'outboundproxy':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'callbackextension':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'timert1':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'timerb':{'type':DataTypes[a774_0x449513(0xeb)]({'length':0xb}),'allowNull':!![]},'qualifyfreq':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'contactpermit':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'contactdeny':{'type':DataTypes['STRING'],'allowNull':!![]},'contactacl':{'type':DataTypes['STRING'],'allowNull':!![]},'unsolicited_mailbox':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'use_q850_reason':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'maxforwards':{'type':DataTypes[a774_0x449513(0xeb)]({'length':0xb}),'allowNull':!![]},'encryption':{'type':DataTypes['ENUM'](a774_0x449513(0x11c),'no'),'allowNull':!![],'defaultValue':'no'},'avpf':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0x11c),'no'),'allowNull':!![]},'force_avp':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0x11c),'no'),'allowNull':!![]},'icesupport':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0x11c),'no'),'allowNull':!![]},'dtlsenable':{'type':DataTypes['ENUM'](a774_0x449513(0x11c),'no'),'allowNull':!![]},'dtlsverify':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0x11c),'no','fingerprint',a774_0x449513(0xe3)),'allowNull':!![]},'dtlsrekey':{'type':DataTypes[a774_0x449513(0xeb)]({'length':0xb}),'allowNull':!![]},'dtlscertfile':{'type':DataTypes['STRING'],'allowNull':!![]},'dtlsprivatekey':{'type':DataTypes['STRING'],'allowNull':!![]},'dtlscipher':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'dtlscafile':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'dtlscapath':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'dtlssetup':{'type':DataTypes[a774_0x449513(0x11f)]('active','passive',a774_0x449513(0x10b)),'allowNull':!![]},'dtlsfingerprint':{'type':DataTypes['STRING'],'allowNull':!![]},'usereqphone':{'type':DataTypes['ENUM'](a774_0x449513(0x11c),'no'),'allowNull':!![],'defaultValue':'no'},'recordonfeature':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'recordofffeature':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'call_limit':{'type':DataTypes[a774_0x449513(0xeb)]({'length':0xb}),'allowNull':!![],'defaultValue':0xa},'registertrying':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0x11c),'no'),'allowNull':!![]},'subscribemwi':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0x11c),'no'),'allowNull':!![]},'vmexten':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'mohinterpret':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'mohsuggest':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'parkinglot':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'canreinvite':{'type':DataTypes[a774_0x449513(0x11f)](a774_0x449513(0x11c),'no',a774_0x449513(0xd7),a774_0x449513(0xee),a774_0x449513(0xd4)),'allowNull':!![],'defaultValue':'no'},'loginInPause':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'resetPasswordToken':{'type':DataTypes[a774_0x449513(0xf0)]},'resetPasswordExpires':{'type':DataTypes['DATE']},'passwordResetAt':{'type':DataTypes[a774_0x449513(0x10f)],'defaultValue':null},'previousPasswords':{'type':DataTypes['STRING']},'showWebBar':{'type':DataTypes[a774_0x449513(0xeb)],'defaultValue':0x0,'set':function(_0x1f761d){const _0x206648=a774_0x449513;this[_0x206648(0x103)](_0x206648(0x112),_0x1f761d);const _0x3677b9=this['get']({'plain':!![]});switch(_0x1f761d){case 0x0:case 0x1:{let _0x22787d=_0x3677b9['transport']?_[_0x206648(0xec)](_0x3677b9[_0x206648(0x10d)])?_0x3677b9['transport'][_0x206648(0xfa)]():_0x3677b9[_0x206648(0x10d)]:'udp';_0x22787d===_0x206648(0xf6)&&(_0x22787d='udp'),this[_0x206648(0x103)](_0x206648(0x10d),_0x22787d),this['setDataValue'](_0x206648(0x128),'no'),this[_0x206648(0x103)](_0x206648(0xe0),null),this[_0x206648(0x103)](_0x206648(0x117),null),this['setDataValue'](_0x206648(0xe7),null),this[_0x206648(0x103)](_0x206648(0x114),null),this[_0x206648(0x103)]('dtlsverify',null),this[_0x206648(0x103)]('dtlssetup',null),this['setDataValue']('dtlscertfile',null),this[_0x206648(0x103)](_0x206648(0xd1),null),this[_0x206648(0x103)](_0x206648(0xfc),'no');}break;case 0x2:this[_0x206648(0x103)](_0x206648(0x10d),_0x206648(0xf6)),this[_0x206648(0x103)](_0x206648(0x128),_0x206648(0x11c)),this['setDataValue']('avpf',_0x206648(0x11c)),this[_0x206648(0x103)](_0x206648(0x117),_0x206648(0x11c)),this['setDataValue'](_0x206648(0xe7),'yes'),this['setDataValue']('dtlsenable','yes'),this[_0x206648(0x103)]('dtlsverify','no'),this[_0x206648(0x103)](_0x206648(0x115),'actpass'),this[_0x206648(0x103)](_0x206648(0xd8),_0x3677b9[_0x206648(0xd8)]||_0x206648(0xde)),this[_0x206648(0x103)](_0x206648(0xd1),_0x3677b9[_0x206648(0xd1)]||_0x206648(0x105)),this[_0x206648(0x103)](_0x206648(0xfc),_0x206648(0x11c));break;default:}}},'permissions':{'type':DataTypes[a774_0x449513(0x10c)],'set':function(_0x12dfbe){const _0x2809d1=a774_0x449513;this['setDataValue'](_0x2809d1(0x107),typeof _0x12dfbe===_0x2809d1(0x11d)?_0x12dfbe:Array[_0x2809d1(0xec)](_0x12dfbe)?_0x12dfbe['join'](','):[]);},'get':function(){const _0x2b6f7a=a774_0x449513;return this[_0x2b6f7a(0xef)](_0x2b6f7a(0x107))?_['map'](this['getDataValue'](_0x2b6f7a(0x107))[_0x2b6f7a(0xe9)](','),function(_0x1afacf){return parseInt(_0x1afacf,0xa);}):[];}},'phoneBarUnconditionalNumber':{'type':DataTypes['STRING']},'phoneBarNoReplyNumber':{'type':DataTypes['STRING']},'phoneBarBusyNumber':{'type':DataTypes[a774_0x449513(0xf0)]},'phoneBarUnconditional':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'phoneBarNoReply':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'phoneBarBusy':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![]},'phoneBarDnd':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':!![]},'phoneBarUnansweredCallBadge':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'phoneBarEnableDtmfTone':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'phoneBarAutoAnswerDelay':{'type':DataTypes[a774_0x449513(0xeb)],'defaultValue':0x0},'extensionMonitor':{'type':DataTypes[a774_0x449513(0xf0)],'defaultValue':''},'crudPermissions':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'rtcp_mux':{'type':DataTypes[a774_0x449513(0x11f)]('yes','no'),'defaultValue':'no'},'allowmessenger':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':!![]},'phoneBarOutboundProxy':{'type':DataTypes[a774_0x449513(0xf0)]},'phoneBarEnableJaws':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![]},'phoneBarEnableScreenRecordingByAgent':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![]},'phoneBarEnableVideoRecording':{'type':DataTypes[a774_0x449513(0x111)],'get':function(){const _0x459886=a774_0x449513;return this[_0x459886(0xef)](_0x459886(0x118))?this[_0x459886(0xef)](_0x459886(0x118)):![];}},'phoneBarEnableAutomaticScreenRecording':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'phoneBarPrefixRequired':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'hotdesk':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![]},'interface':{'type':DataTypes[a774_0x449513(0xf0)],'defaultValue':null},'privacyEnabled':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![]},'apiKeyNonce':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'apiKeyIat':{'type':DataTypes[a774_0x449513(0xf0)],'allowNull':!![]},'screenrecording':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![],'set':function(_0x52f8c7){const _0x3e84e8=a774_0x449513;if(typeof _0x52f8c7==='string'){const _0x41c844=_0x52f8c7==='1'?!![]:_0x52f8c7==='0'?![]:_0x52f8c7===_0x3e84e8(0xd3)?!![]:_0x52f8c7===_0x3e84e8(0xdf)?![]:![];this[_0x3e84e8(0x103)](_0x3e84e8(0x11e),_0x41c844);}else this[_0x3e84e8(0x103)]('screenrecording',_0x52f8c7);}},'blocked':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':![],'set':function(_0x359b83){const _0x187ed4=a774_0x449513;this[_0x187ed4(0x103)]('blocked',_0x359b83),_0x359b83===!![]?(this[_0x187ed4(0x103)](_0x187ed4(0xe8),moment()),this['setDataValue'](_0x187ed4(0xdc),0x0)):this[_0x187ed4(0x103)](_0x187ed4(0xe8),null);}},'blockedAt':{'type':DataTypes[a774_0x449513(0x10f)],'defaultValue':null},'loginAttempts':{'type':DataTypes[a774_0x449513(0xeb)],'defaultValue':0x0},'disabled':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'settingsEnabled':{'type':DataTypes[a774_0x449513(0x113)],'defaultValue':!![]}};module[a774_0x449513(0xe5)][a774_0x449513(0xd0)]=attributes; \ No newline at end of file +const a774_0x48c8=['actpass','dtlscertfile','force_avp','showWebBar','permissions','dynamic','callerid','nonat','util','moment','The\x20name\x20of\x20the\x20user','uas','format','accountcode','\x22%s\x22\x20<%s>','/etc/pki/tls/private/motion.key','always','friend','email','yes','admin','ENUM','rfc2833','lodash','outgoing','ALLOWED','blockedAt','PROHIB_FAILED_SCREEN','update,nonat','ALLOWED_PASSED_SCREEN','attributes','refuse','INTEGER','udp','force_rport,comedia','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]','ulaw;alaw;gsm','isArray','icesupport','join','BOOLEAN','getDataValue','split','dtlsverify','originate','fullname','dtlsenable','DATE','wss','get','agent','ALLOWED_NOT_SCREENED','screenrecording','avpf','insecure','allow','PROHIB','dtlssetup','nat','user','sequelize','true','dtlsprivatekey','name','update','all','encryption','setDataValue','string','transport','phoneBarEnableScreenRecordingByAgent','local','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]','exports','defaultuser','shortinfo','internal','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]','map','\x22\x22\x20<>','STRING','blocked','rtcp_mux','toLowerCase','loginAttempts','VIRTUAL','PROHIB_NOT_SCREENED'];(function(_0x55e40e,_0x3c2431){const _0x48c821=function(_0x351614){while(--_0x351614){_0x55e40e['push'](_0x55e40e['shift']());}};_0x48c821(++_0x3c2431);}(a774_0x48c8,0x81));const a774_0x3516=function(_0x55e40e,_0x3c2431){_0x55e40e=_0x55e40e-0x17b;let _0x48c821=a774_0x48c8[_0x55e40e];return _0x48c821;};const a774_0x3775cb=a774_0x3516;'use strict';const {DataTypes}=require(a774_0x3775cb(0x18d)),moment=require(a774_0x3775cb(0x1b1)),util=require(a774_0x3775cb(0x1b0)),_=require(a774_0x3775cb(0x1bf)),attributes={'name':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':![],'unique':a774_0x3775cb(0x190),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i},'set':function(_0x730544){const _0x55d9a5=a774_0x3775cb;this[_0x55d9a5(0x194)](_0x55d9a5(0x190),_0x730544),this['setDataValue'](_0x55d9a5(0x19b),_0x730544);},'comment':a774_0x3775cb(0x1b2)},'fullname':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':![],'set':function(_0x3c7802){const _0x35058f=a774_0x3775cb;this[_0x35058f(0x194)](_0x35058f(0x17e),_0x3c7802),this[_0x35058f(0x194)](_0x35058f(0x1ae),util[_0x35058f(0x1b4)](_0x35058f(0x1b6),_0x3c7802,this[_0x35058f(0x1d1)](_0x35058f(0x19d))));}},'alias':{'type':DataTypes[a774_0x3775cb(0x1a1)]},'email':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':![],'unique':'email','validate':{'isEmail':!![]},'set':function(_0x53681c){const _0x38bb71=a774_0x3775cb;_0x53681c&&this[_0x38bb71(0x194)](_0x38bb71(0x1ba),_0x53681c[_0x38bb71(0x1a4)]());}},'role':{'type':DataTypes['ENUM'](a774_0x3775cb(0x1bc),a774_0x3775cb(0x18c),a774_0x3775cb(0x183),'telephone'),'allowNull':![]},'password':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':![],'validate':{'notEmpty':!![]}},'provider':{'type':DataTypes[a774_0x3775cb(0x1a1)],'defaultValue':a774_0x3775cb(0x198)},'internal':{'type':DataTypes[a774_0x3775cb(0x1c8)]({'length':0xb}),'allowNull':![],'unique':a774_0x3775cb(0x19d),'set':function(_0x147fa6){const _0x109b59=a774_0x3775cb;this[_0x109b59(0x194)](_0x109b59(0x19d),_0x147fa6),this['setDataValue'](_0x109b59(0x1b5),_0x147fa6),this[_0x109b59(0x194)](_0x109b59(0x1ae),util[_0x109b59(0x1b4)](_0x109b59(0x1b6),this['getDataValue'](_0x109b59(0x17e)),_0x147fa6));}},'salt':{'type':DataTypes[a774_0x3775cb(0x1a1)]},'phone':{'type':DataTypes['STRING']},'mobile':{'type':DataTypes[a774_0x3775cb(0x1a1)]},'address':{'type':DataTypes[a774_0x3775cb(0x1a1)]},'zipcode':{'type':DataTypes[a774_0x3775cb(0x1a1)]},'userpic':{'type':DataTypes[a774_0x3775cb(0x1a1)]},'city':{'type':DataTypes['STRING']},'country':{'type':DataTypes[a774_0x3775cb(0x1a1)]},'online':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![]},'lastLoginAt':{'type':DataTypes[a774_0x3775cb(0x180)]},'voicePause':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![]},'chatPause':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![]},'mailPause':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![]},'faxPause':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![]},'smsPause':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![]},'whatsappPause':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'openchannelPause':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![]},'pauseType':{'type':DataTypes[a774_0x3775cb(0x1a1)],'defaultValue':'DEFAULT\x20PAUSE'},'lastPauseAt':{'type':DataTypes['DATE']},'chatCapacity':{'type':DataTypes[a774_0x3775cb(0x1c8)],'defaultValue':0x0},'mailCapacity':{'type':DataTypes[a774_0x3775cb(0x1c8)],'defaultValue':0x0},'faxCapacity':{'type':DataTypes[a774_0x3775cb(0x1c8)],'defaultValue':0x0},'smsCapacity':{'type':DataTypes[a774_0x3775cb(0x1c8)],'defaultValue':0x0},'whatsappCapacity':{'type':DataTypes[a774_0x3775cb(0x1c8)],'defaultValue':0x0},'openchannelCapacity':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'phoneBarAutoAnswer':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![]},'phoneBarEnableSettings':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':!![]},'phoneBarListenPort':{'type':DataTypes[a774_0x3775cb(0x1c8)]({'length':0x5}),'defaultValue':0x1428},'phoneBarExpires':{'type':DataTypes[a774_0x3775cb(0x1c8)]({'length':0x5}),'defaultValue':0x78},'phoneBarRemoteControl':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'phoneBarRemoteControlPort':{'type':DataTypes[a774_0x3775cb(0x1c8)],'defaultValue':0x26a0},'phoneBarEnableRecording':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'phoneBarRingInUse':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![]},'chanspy':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![]},'description':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'host':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![],'defaultValue':a774_0x3775cb(0x1ad)},'ipaddr':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'port':{'type':DataTypes[a774_0x3775cb(0x1c8)]({'length':0x5}),'allowNull':!![]},'regseconds':{'type':DataTypes[a774_0x3775cb(0x1c8)]({'length':0xb}),'allowNull':!![]},'fullcontact':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'regserver':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'useragent':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'lastms':{'type':DataTypes[a774_0x3775cb(0x1c8)]({'length':0xb}),'allowNull':!![]},'type':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1b9),a774_0x3775cb(0x18c),'peer'),'allowNull':!![],'defaultValue':'friend'},'context':{'type':DataTypes['STRING'],'allowNull':!![],'defaultValue':'from-sip'},'callingpres':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x184),a774_0x3775cb(0x1c5),'ALLOWED_FAILED_SCREEN',a774_0x3775cb(0x1c1),a774_0x3775cb(0x1a7),'PROHIB_PASSED_SCREEN',a774_0x3775cb(0x1c3),a774_0x3775cb(0x189)),'allowNull':!![]},'deny':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'permit':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'secret':{'type':DataTypes['STRING'],'allowNull':!![]},'md5secret':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'remotesecret':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'transport':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![],'defaultValue':a774_0x3775cb(0x1c9),'set':function(_0xcd1516){const _0x3bbecf=a774_0x3775cb;this[_0x3bbecf(0x194)]('transport',typeof _0xcd1516===_0x3bbecf(0x195)?_0xcd1516:Array[_0x3bbecf(0x1cd)](_0xcd1516)?_0xcd1516[_0x3bbecf(0x1cf)](','):null);},'get':function(){const _0x162dfd=a774_0x3775cb;return this[_0x162dfd(0x1d1)](_0x162dfd(0x196))?this[_0x162dfd(0x1d1)]('transport')[_0x162dfd(0x17b)](','):null;},'comment':a774_0x3775cb(0x19e)},'dtmfmode':{'type':DataTypes[a774_0x3775cb(0x1bd)]('rfc2833','info',a774_0x3775cb(0x19c),'inband','auto'),'allowNull':!![],'defaultValue':a774_0x3775cb(0x1be)},'directmedia':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no',a774_0x3775cb(0x1af),a774_0x3775cb(0x191),a774_0x3775cb(0x1c0)),'allowNull':!![],'defaultValue':'no'},'directrtpsetup':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no'),'allowNull':!![],'defaultValue':'no'},'directmediapermit':{'type':DataTypes['STRING'],'allowNull':!![]},'directmediadeny':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'nat':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![],'defaultValue':a774_0x3775cb(0x1ca),'set':function(_0x5ef19b){const _0x37483=a774_0x3775cb;this[_0x37483(0x194)]('nat',typeof _0x5ef19b===_0x37483(0x195)?_0x5ef19b:Array[_0x37483(0x1cd)](_0x5ef19b)?_0x5ef19b[_0x37483(0x1cf)](','):null);},'get':function(){const _0x4b7664=a774_0x3775cb;return this[_0x4b7664(0x1d1)](_0x4b7664(0x18b))?this['getDataValue'](_0x4b7664(0x18b))[_0x4b7664(0x17b)](','):null;},'comment':a774_0x3775cb(0x1cb)},'callgroup':{'type':DataTypes['STRING']},'namedcallgroup':{'type':DataTypes[a774_0x3775cb(0x1a1)]},'pickupgroup':{'type':DataTypes[a774_0x3775cb(0x1a1)]},'namedpickupgroup':{'type':DataTypes[a774_0x3775cb(0x1a1)]},'language':{'type':DataTypes['STRING'],'defaultValue':'en'},'tonezone':{'type':DataTypes[a774_0x3775cb(0x1a1)]},'disallow':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':![],'defaultValue':a774_0x3775cb(0x192)},'allow':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':![],'defaultValue':a774_0x3775cb(0x1cc),'set':function(_0x1c08e9){const _0x501800=a774_0x3775cb;this['setDataValue'](_0x501800(0x188),typeof _0x1c08e9===_0x501800(0x195)?_0x1c08e9:Array[_0x501800(0x1cd)](_0x1c08e9)?_0x1c08e9['join'](';'):_0x501800(0x1cc));},'get':function(){const _0x5ee64a=a774_0x3775cb;return this['getDataValue'](_0x5ee64a(0x188))?this[_0x5ee64a(0x1d1)](_0x5ee64a(0x188))['split'](';'):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22gsm\x22]'},'autoframing':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no'),'allowNull':!![]},'insecure':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![],'set':function(_0x51c73f){const _0x487e13=a774_0x3775cb;this[_0x487e13(0x194)](_0x487e13(0x187),typeof _0x51c73f==='string'?_0x51c73f:Array[_0x487e13(0x1cd)](_0x51c73f)?_0x51c73f[_0x487e13(0x1cf)](','):null);},'get':function(){const _0x26f7f1=a774_0x3775cb;return this[_0x26f7f1(0x1d1)]('insecure')?this[_0x26f7f1(0x1d1)](_0x26f7f1(0x187))['split'](','):null;},'comment':a774_0x3775cb(0x199)},'trustrpid':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no'),'allowNull':!![],'defaultValue':'no'},'trust_id_outbound':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no'),'allowNull':!![],'defaultValue':'no'},'progressinband':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no','never'),'allowNull':!![]},'promiscredir':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no'),'allowNull':!![]},'useclientcode':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no'),'allowNull':!![]},'accountcode':{'type':DataTypes[a774_0x3775cb(0x1c8)]({'length':0xb}),'allowNull':!![]},'setvar':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'callerid':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![],'defaultValue':a774_0x3775cb(0x1a0)},'amaflags':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'callcounter':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no'),'allowNull':!![],'defaultValue':a774_0x3775cb(0x1bb)},'busylevel':{'type':DataTypes[a774_0x3775cb(0x1c8)]({'length':0xb}),'allowNull':!![]},'allowoverlap':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no'),'allowNull':!![]},'allowsubscribe':{'type':DataTypes[a774_0x3775cb(0x1bd)]('yes','no'),'allowNull':!![]},'allowtransfer':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no'),'allowNull':!![]},'ignoresdpversion':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no'),'allowNull':!![]},'subscribecontext':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'template':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'videosupport':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no',a774_0x3775cb(0x1b8)),'allowNull':!![],'defaultValue':'no'},'maxcallbitrate':{'type':DataTypes[a774_0x3775cb(0x1c8)]({'length':0xb}),'allowNull':!![]},'rfc2833compensate':{'type':DataTypes['ENUM']('yes','no'),'allowNull':!![]},'mailbox':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'session_timers':{'type':DataTypes['ENUM']('accept',a774_0x3775cb(0x1c7),a774_0x3775cb(0x17d)),'allowNull':!![]},'session_expires':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'session_minse':{'type':DataTypes[a774_0x3775cb(0x1c8)]({'length':0xb}),'allowNull':!![]},'session_refresher':{'type':DataTypes['ENUM']('uac',a774_0x3775cb(0x1b3)),'allowNull':!![],'defaultValue':a774_0x3775cb(0x1b3)},'t38pt_usertpsource':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'regexten':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'fromdomain':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'fromuser':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'qualify':{'type':DataTypes['ENUM'](a774_0x3775cb(0x1bb),'no'),'allowNull':!![],'defaultValue':a774_0x3775cb(0x1bb)},'keepalive':{'type':DataTypes[a774_0x3775cb(0x1c8)]({'length':0xb}),'allowNull':!![]},'defaultip':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'defaultuser':{'type':DataTypes['STRING'],'allowNull':!![]},'rtptimeout':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'rtpholdtimeout':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'rtpkeepalive':{'type':DataTypes[a774_0x3775cb(0x1c8)]({'length':0xb}),'allowNull':!![]},'sendrpid':{'type':DataTypes[a774_0x3775cb(0x1bd)]('yes','no'),'allowNull':!![],'defaultValue':'no'},'outboundproxy':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'callbackextension':{'type':DataTypes['STRING'],'allowNull':!![]},'timert1':{'type':DataTypes[a774_0x3775cb(0x1c8)]({'length':0xb}),'allowNull':!![]},'timerb':{'type':DataTypes[a774_0x3775cb(0x1c8)]({'length':0xb}),'allowNull':!![]},'qualifyfreq':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'contactpermit':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'contactdeny':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'contactacl':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'unsolicited_mailbox':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'use_q850_reason':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'maxforwards':{'type':DataTypes[a774_0x3775cb(0x1c8)]({'length':0xb}),'allowNull':!![]},'encryption':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no'),'allowNull':!![],'defaultValue':'no'},'avpf':{'type':DataTypes[a774_0x3775cb(0x1bd)]('yes','no'),'allowNull':!![]},'force_avp':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no'),'allowNull':!![]},'icesupport':{'type':DataTypes['ENUM'](a774_0x3775cb(0x1bb),'no'),'allowNull':!![]},'dtlsenable':{'type':DataTypes[a774_0x3775cb(0x1bd)]('yes','no'),'allowNull':!![]},'dtlsverify':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no','fingerprint','certificate'),'allowNull':!![]},'dtlsrekey':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'dtlscertfile':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'dtlsprivatekey':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'dtlscipher':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'dtlscafile':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'dtlscapath':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'dtlssetup':{'type':DataTypes[a774_0x3775cb(0x1bd)]('active','passive',a774_0x3775cb(0x1a8)),'allowNull':!![]},'dtlsfingerprint':{'type':DataTypes['STRING'],'allowNull':!![]},'usereqphone':{'type':DataTypes['ENUM'](a774_0x3775cb(0x1bb),'no'),'allowNull':!![],'defaultValue':'no'},'recordonfeature':{'type':DataTypes['STRING'],'allowNull':!![]},'recordofffeature':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'call_limit':{'type':DataTypes[a774_0x3775cb(0x1c8)]({'length':0xb}),'allowNull':!![],'defaultValue':0xa},'registertrying':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no'),'allowNull':!![]},'subscribemwi':{'type':DataTypes[a774_0x3775cb(0x1bd)]('yes','no'),'allowNull':!![]},'vmexten':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'mohinterpret':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'mohsuggest':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'parkinglot':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'canreinvite':{'type':DataTypes[a774_0x3775cb(0x1bd)](a774_0x3775cb(0x1bb),'no',a774_0x3775cb(0x1af),a774_0x3775cb(0x191),a774_0x3775cb(0x1c4)),'allowNull':!![],'defaultValue':'no'},'loginInPause':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![]},'resetPasswordToken':{'type':DataTypes[a774_0x3775cb(0x1a1)]},'resetPasswordExpires':{'type':DataTypes['DATE']},'passwordResetAt':{'type':DataTypes[a774_0x3775cb(0x180)],'defaultValue':null},'previousPasswords':{'type':DataTypes[a774_0x3775cb(0x1a1)]},'showWebBar':{'type':DataTypes[a774_0x3775cb(0x1c8)],'defaultValue':0x0,'set':function(_0x2dd7de){const _0x544e24=a774_0x3775cb;this['setDataValue'](_0x544e24(0x1ab),_0x2dd7de);const _0x55105e=this[_0x544e24(0x182)]({'plain':!![]});switch(_0x2dd7de){case 0x0:case 0x1:{let _0xc2e73d=_0x55105e[_0x544e24(0x196)]?_[_0x544e24(0x1cd)](_0x55105e['transport'])?_0x55105e['transport']['join']():_0x55105e['transport']:_0x544e24(0x1c9);_0xc2e73d===_0x544e24(0x181)&&(_0xc2e73d=_0x544e24(0x1c9)),this[_0x544e24(0x194)]('transport',_0xc2e73d),this['setDataValue'](_0x544e24(0x193),'no'),this[_0x544e24(0x194)](_0x544e24(0x186),null),this[_0x544e24(0x194)](_0x544e24(0x1aa),null),this[_0x544e24(0x194)]('icesupport',null),this['setDataValue'](_0x544e24(0x17f),null),this['setDataValue'](_0x544e24(0x17c),null),this['setDataValue'](_0x544e24(0x18a),null),this[_0x544e24(0x194)](_0x544e24(0x1a9),null),this['setDataValue'](_0x544e24(0x18f),null),this[_0x544e24(0x194)]('rtcp_mux','no');}break;case 0x2:this[_0x544e24(0x194)](_0x544e24(0x196),_0x544e24(0x181)),this[_0x544e24(0x194)]('encryption',_0x544e24(0x1bb)),this['setDataValue'](_0x544e24(0x186),_0x544e24(0x1bb)),this[_0x544e24(0x194)](_0x544e24(0x1aa),_0x544e24(0x1bb)),this['setDataValue'](_0x544e24(0x1ce),_0x544e24(0x1bb)),this[_0x544e24(0x194)]('dtlsenable',_0x544e24(0x1bb)),this['setDataValue'](_0x544e24(0x17c),'no'),this[_0x544e24(0x194)]('dtlssetup',_0x544e24(0x1a8)),this[_0x544e24(0x194)]('dtlscertfile',_0x55105e[_0x544e24(0x1a9)]||'/etc/pki/tls/certs/motion.crt'),this['setDataValue']('dtlsprivatekey',_0x55105e['dtlsprivatekey']||_0x544e24(0x1b7)),this['setDataValue'](_0x544e24(0x1a3),_0x544e24(0x1bb));break;default:}}},'permissions':{'type':DataTypes['TEXT'],'set':function(_0x39624d){const _0x3f7f34=a774_0x3775cb;this[_0x3f7f34(0x194)]('permissions',typeof _0x39624d===_0x3f7f34(0x195)?_0x39624d:Array[_0x3f7f34(0x1cd)](_0x39624d)?_0x39624d[_0x3f7f34(0x1cf)](','):[]);},'get':function(){const _0x10275b=a774_0x3775cb;return this[_0x10275b(0x1d1)](_0x10275b(0x1ac))?_[_0x10275b(0x19f)](this['getDataValue']('permissions')[_0x10275b(0x17b)](','),function(_0x3ec5c5){return parseInt(_0x3ec5c5,0xa);}):[];}},'phoneBarUnconditionalNumber':{'type':DataTypes[a774_0x3775cb(0x1a1)]},'phoneBarNoReplyNumber':{'type':DataTypes['STRING']},'phoneBarBusyNumber':{'type':DataTypes[a774_0x3775cb(0x1a1)]},'phoneBarUnconditional':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![]},'phoneBarNoReply':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![]},'phoneBarBusy':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'phoneBarDnd':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':!![]},'phoneBarUnansweredCallBadge':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':!![]},'phoneBarEnableDtmfTone':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'phoneBarAutoAnswerDelay':{'type':DataTypes[a774_0x3775cb(0x1c8)],'defaultValue':0x0},'extensionMonitor':{'type':DataTypes[a774_0x3775cb(0x1a1)],'defaultValue':''},'crudPermissions':{'type':DataTypes[a774_0x3775cb(0x1c8)],'defaultValue':0x0},'rtcp_mux':{'type':DataTypes[a774_0x3775cb(0x1bd)]('yes','no'),'defaultValue':'no'},'allowmessenger':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':!![]},'phoneBarOutboundProxy':{'type':DataTypes[a774_0x3775cb(0x1a1)]},'phoneBarEnableJaws':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![]},'phoneBarEnableScreenRecordingByAgent':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![]},'phoneBarEnableVideoRecording':{'type':DataTypes[a774_0x3775cb(0x1a6)],'get':function(){const _0x3e6d44=a774_0x3775cb;return this[_0x3e6d44(0x1d1)](_0x3e6d44(0x197))?this[_0x3e6d44(0x1d1)](_0x3e6d44(0x197)):![];}},'phoneBarEnableAutomaticScreenRecording':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![]},'phoneBarPrefixRequired':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'hotdesk':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'interface':{'type':DataTypes['STRING'],'defaultValue':null},'privacyEnabled':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![]},'apiKeyNonce':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'apiKeyIat':{'type':DataTypes[a774_0x3775cb(0x1a1)],'allowNull':!![]},'screenrecording':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':![],'set':function(_0x531a35){const _0x3d47d9=a774_0x3775cb;if(typeof _0x531a35===_0x3d47d9(0x195)){const _0x1b2813=_0x531a35==='1'?!![]:_0x531a35==='0'?![]:_0x531a35===_0x3d47d9(0x18e)?!![]:_0x531a35==='false'?![]:![];this[_0x3d47d9(0x194)]('screenrecording',_0x1b2813);}else this[_0x3d47d9(0x194)](_0x3d47d9(0x185),_0x531a35);}},'blocked':{'type':DataTypes['BOOLEAN'],'defaultValue':![],'set':function(_0x11427f){const _0x961cce=a774_0x3775cb;this[_0x961cce(0x194)](_0x961cce(0x1a2),_0x11427f),_0x11427f===!![]?(this['setDataValue']('blockedAt',moment()),this[_0x961cce(0x194)](_0x961cce(0x1a5),0x0)):this['setDataValue'](_0x961cce(0x1c2),null);}},'blockedAt':{'type':DataTypes[a774_0x3775cb(0x180)],'defaultValue':null},'loginAttempts':{'type':DataTypes[a774_0x3775cb(0x1c8)],'defaultValue':0x0},'disabled':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'settingsEnabled':{'type':DataTypes[a774_0x3775cb(0x1d0)],'defaultValue':!![]}};module[a774_0x3775cb(0x19a)][a774_0x3775cb(0x1c6)]=attributes; \ No newline at end of file diff --git a/server/api/user/user.controller.js b/server/api/user/user.controller.js index 3b38a9c..5f922bc 100644 --- a/server/api/user/user.controller.js +++ b/server/api/user/user.controller.js @@ -1 +1 @@ -const a775_0x2cbb=['destroy','addOpenchannelAccounts','isArray','getWhatsappInteractions','internal','../../config/utils','getLists','filter','user_has_fax_interactions:remove','No\x20API\x20access\x20key\x20found!','nonce','stringify','iat','filters','Chat','isValidChannel','addTeams','resolve','set','Voice','ChatGroup','QueuePause','getOpenchannelInteractions','getTeams','addSmsAccounts','headers','addAvatar','VIRTUAL','getSmsAccounts','body','firstName','user_has_chat_interactions:remove','User,\x20%s,\x20%s','userProfileId','path','114','Fax','format','addMailAccounts','Openchannel','key','whoami','token','removeSmsInteractions','removeSmsAccounts','getVoiceQueuesRt','getChatQueues','lastName','addAgent','code','getContacts','getFaxQueues','VoiceRecording','sendStatus','MemberReport','YYYY-MM-DD\x20HH:mm:ss','removeOpenchannelAccounts','order','whatsapp','chat','Whatsapp','checkUserLimits','UserProfileResource','oldPassword','removeSquareProjects','retrieveApiKey','User\x20not\x20found\x20or\x20not\x20allowed\x20to\x20perform\x20login\x20method','jayson/promise','Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20an\x20user','108','VoiceMail','isNil','Tag','download','faxPause','removeMailAccounts','connection','addSquareProjects','../../config/license/util','UserVoiceQueue.penalty','getMailAccounts','color','fields','addOpenchannelInteractions','api','create','permissions','end','addQueues','addMailInteractions','query','addContacts','getAvatar','111','request\x20sent','max','CmContact','include','103','all','ScreenRecording','securePassword','getVoiceQueues','getWhatsappQueues','FaxInteraction','../../components/auth/service','removeAgent','removeWhatsappInteractions','info','109','removeQueues','get','lower','removeWhatsappAccounts','differenceBy','Pause','min_internal','find','removeChatInteractions','attributes','remoteAddress','102','file','%s%s','manual','status','salt','getMailInteractions','SmsAccount','map','getWhatsappAccounts','getChannels','sms','add','$lt','bulkCreate','newPassword','user:forcelogout','role','$iLike','unpause','ignore','MailInteraction','pauseType','$and','interface','lodash','105','voicePause','password','WhatsappAccount','user:%s','addSmsInteractions','$notILike','x-forwarded-for','getOpenchannelQueues','and','You\x20don\x27t\x20have\x20sufficient\x20privileges\x20to\x20access\x20this\x20resource.','moment','some','CmList','type','addWhatsappInteractions','rows','chatPause','error','../../mysqldb','existsSync','110','Queue:save','setDataValue','LOGININPAUSE','getChatInteractions','findOne','removeTeams','agent','request','validatePasswordHistory','pause','addFaxAccounts','fullname','WhatsappInteraction','getFaxAccounts','getGroups','validatePasswordPattern','CmHopper','options','getVoicePrefixes','util','openchannelPause','previousPasswords','rawAttributes','join','You\x20can\x27t\x20delete\x20yourself','getScreenRecordings','send','mobile','client','forEach','createApiKey','../../rediscache','transaction','passwordHistoryLimit','New\x20password\x20must\x20be\x20different\x20from\x20old\x20password','tag','Queues','changePassword','includes','SIP/%s','Unknown\x20channel','emit','remove','$eq','mailbox','message','loginInPause','sequelize','$notLike','removeFaxInteractions','autoAssociation','removeChatWebsites','Invalid\x20body\x20format.\x20Use\x20newPassword','logout','getSmsQueues','authenticate','channel','limit','DEFAULT\x20PAUSE','filename','files/images/','UserVoiceQueueRt','intrf','concat','like','UserProfileSection','merge','fax','phone','VoicePrefix','pick','getRecordings','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)','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','$overlap','../../config/environment','Team','$not','user_has_sms_interactions:save','dialActive','generateApiKey','undefined','capitalize','compact','user','getFaxInteractions','update','smsPause','length','MailAccount','fieldName','openchannel','describe','API\x20key\x20not\x20available','Unauthorized','LOCAL/%s@from-sip/n','../../config/logger','Queue','toLowerCase','getDataValue','104','admin','catch','user_has_chat_interactions:save','User','root','online','omit','user_has_whatsapp_interactions:save','$notBetween','getAgents','getApiKey','removeOpenchannelInteractions','then','$or','apiKeyNonce','telephone','where','FaxAccount','ids','server/files/images/logos/default_profile.png','includeAll','../../components/parsers/qs','$ne','nolimit','count','stack','isMiddleware','sort','socket','ChatInteraction','Telephones','voice','penalty','keys','Sms','user_has_openchannel_interactions:save','findAll','QueueId','Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20an\x20administrator','value','Content-Range','$contains','userpic','$like','enforcePasswordHistory','107','settingsEnabled','result','101','params','Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20another\x20administrator','UserId','getSquareProjects','SELECT','getScheduledCalls','getSmsInteractions','removeFaxAccounts','from','push','addChatInteractions','getOpenchannelAccounts','user_has_openchannel_interactions:remove','user_has_sms_interactions:remove','upsert','$lte','json','$any','addWhatsappAccounts','offset','Agents','model','PAUSE','addChatWebsites','intersection','OpenchannelAccount','addFaxInteractions','login','VoiceQueue','SquareProject','$between','name','user_has_mail_interactions:save','whatsapppause'];(function(_0x5334b7,_0x39e8cd){const _0x2cbb1e=function(_0x4d8838){while(--_0x4d8838){_0x5334b7['push'](_0x5334b7['shift']());}};_0x2cbb1e(++_0x39e8cd);}(a775_0x2cbb,0x10f));const a775_0x4d88=function(_0x5334b7,_0x39e8cd){_0x5334b7=_0x5334b7-0x196;let _0x2cbb1e=a775_0x2cbb[_0x5334b7];return _0x2cbb1e;};const a775_0x7cb8f1=a775_0x4d88;'use strict';const moment=require(a775_0x7cb8f1(0x286)),util=require(a775_0x7cb8f1(0x2a4)),path=require(a775_0x7cb8f1(0x20a)),fs=require('fs'),_=require(a775_0x7cb8f1(0x27a)),{getSocket}=require(a775_0x7cb8f1(0x2b0)),socket=getSocket(),authService=require(a775_0x7cb8f1(0x251)),qs=require(a775_0x7cb8f1(0x1aa)),logger=require(a775_0x7cb8f1(0x2f1))(a775_0x7cb8f1(0x23c)),utils=require(a775_0x7cb8f1(0x1ed)),config=require(a775_0x7cb8f1(0x2dc)),{db}=require(a775_0x7cb8f1(0x28e)),{Op,QueryTypes,fn,col,where,ValidationError}=require('sequelize'),licenseUtil=require(a775_0x7cb8f1(0x236));require('./user.socket')['register'](socket);const jayson=require(a775_0x7cb8f1(0x22b)),client=jayson[a775_0x7cb8f1(0x2ad)]['http']({'port':0x232a});function respondWithRpcPromise(_0x16ad32,_0x396af0,_0x14b0ad,_0x3504e9){return new Promise(function(_0x13266c,_0x46cf78){const _0x2cb581=a775_0x4d88,_0x42d0dc=_0x3504e9||client;return _0x42d0dc[_0x2cb581(0x298)](_0x16ad32,_0x14b0ad)[_0x2cb581(0x1a1)](function(_0x57a2ca){const _0x5d4f59=_0x2cb581;logger[_0x5d4f59(0x254)](_0x5d4f59(0x208),_0x396af0,_0x5d4f59(0x246)),logger['debug']('User,\x20%s,\x20%s,\x20%s',_0x396af0,'request\x20sent',JSON[_0x5d4f59(0x1f3)](_0x57a2ca));if(_0x57a2ca[_0x5d4f59(0x28d)]){if(_0x57a2ca[_0x5d4f59(0x28d)][_0x5d4f59(0x219)]===0x1f4)return logger[_0x5d4f59(0x28d)](_0x5d4f59(0x208),_0x396af0,_0x57a2ca[_0x5d4f59(0x28d)][_0x5d4f59(0x2be)]),_0x46cf78(_0x57a2ca[_0x5d4f59(0x28d)][_0x5d4f59(0x2be)]);return logger['error'](_0x5d4f59(0x208),_0x396af0,_0x57a2ca[_0x5d4f59(0x28d)]['message']),_0x13266c(_0x57a2ca[_0x5d4f59(0x28d)][_0x5d4f59(0x2be)]);}else logger['info'](_0x5d4f59(0x208),_0x396af0,_0x5d4f59(0x246)),_0x13266c(_0x57a2ca[_0x5d4f59(0x1c4)][_0x5d4f59(0x2be)]);})[_0x2cb581(0x196)](function(_0x3635c7){const _0x523290=_0x2cb581;logger[_0x523290(0x28d)]('User,\x20%s,\x20%s',_0x396af0,_0x3635c7),_0x46cf78(_0x3635c7);});});}function respondWithStatusCode(_0x1d5562,_0x23ea5c){return _0x23ea5c=_0x23ea5c||0xcc,function(_0x416b8b){const _0x3f1f37=a775_0x4d88;if(_0x416b8b)return _0x1d5562[_0x3f1f37(0x21d)](_0x23ea5c);return _0x1d5562[_0x3f1f37(0x265)](_0x23ea5c)['end']();};}function respondWithResult(_0x5120da,_0xa3eb26){return _0xa3eb26=_0xa3eb26||0xc8,function(_0x2068d1){const _0x20b4d4=a775_0x4d88;if(_0x2068d1)return _0x5120da['status'](_0xa3eb26)[_0x20b4d4(0x1d6)](_0x2068d1);};}function respondWithFilteredResult(_0x21b4cd,_0x12278b){return function(_0x11980e){const _0x1ae5db=a775_0x4d88;if(_0x11980e){const _0x4f8358=_0x11980e['count'],_0x367a92=_0x12278b['offset'];let _0x2f6433=_0x12278b[_0x1ae5db(0x1d9)]+_0x12278b[_0x1ae5db(0x2ca)],_0x7f49ed;return _0x2f6433>=_0x4f8358?(_0x2f6433=_0x4f8358,_0x7f49ed=0xc8):_0x7f49ed=0xce,_0x21b4cd[_0x1ae5db(0x265)](_0x7f49ed),_0x21b4cd['set'](_0x1ae5db(0x1bd),_0x367a92+'-'+_0x2f6433+'/'+_0x4f8358)[_0x1ae5db(0x1d6)](_0x11980e);}return null;};}function saveUpdates(_0x6f9d09){return function(_0x43112d){const _0xa6cc84=a775_0x4d88;if(_0x43112d)return _0x43112d[_0xa6cc84(0x2e7)](_0x6f9d09)['then'](function(_0x1f26ee){return _0x1f26ee;});return null;};}function removeEntity(_0x132030){return function(_0x208303){const _0xd6e59f=a775_0x4d88;if(_0x208303)return _0x208303[_0xd6e59f(0x1e8)]()[_0xd6e59f(0x1a1)](function(){const _0x51bffc=_0xd6e59f,_0x351473=_0x208303[_0x51bffc(0x257)]({'plain':!![]});if(_0x351473[_0x51bffc(0x272)]===_0x51bffc(0x2f6))return;const _0x41a563=[{'name':'Users','value':'user','ignore':!![]},{'name':_0x51bffc(0x1da),'value':_0x51bffc(0x297),'ignore':![]},{'name':_0x51bffc(0x1b3),'value':_0x51bffc(0x1a4),'ignore':![]}],_0x317c84=_(_0x41a563)['filter'](_0x51bffc(0x275))[_0x51bffc(0x269)](_0x51bffc(0x1bc))[_0x51bffc(0x1bc)]();if(_[_0x51bffc(0x2b7)](_0x317c84,_0x351473[_0x51bffc(0x272)]))return;const _0x1e8bbb=_['find'](_0x41a563,[_0x51bffc(0x1bc),_0x351473['role']])['name'];return db[_0x51bffc(0x226)][_0x51bffc(0x1e8)]({'where':{'type':_0x1e8bbb,'resourceId':_0x351473['id']}})['then'](function(){return _0x208303;});})[_0xd6e59f(0x1a1)](function(){const _0xef3c07=_0xd6e59f;_0x132030[_0xef3c07(0x265)](0xcc)[_0xef3c07(0x23f)]();});};}function handleEntityNotFound(_0x39fa30){return function(_0x319a23){const _0x40c916=a775_0x4d88;return!_0x319a23&&_0x39fa30[_0x40c916(0x21d)](0x194),_0x319a23;};}function handleError(_0x5c4483,_0x762163){return _0x762163=_0x762163||0x1f4,function(_0x5e2c06){const _0x442632=a775_0x4d88;logger['error'](_0x5e2c06[_0x442632(0x1ae)]),_0x5e2c06[_0x442632(0x1e5)]&&delete _0x5e2c06[_0x442632(0x1e5)],_0x5c4483[_0x442632(0x265)](_0x762163)['send'](_0x5e2c06);};}function validateUser(_0x3ce14e){return new Promise(function(_0x4df71a,_0xad0cb0){const _0x5e35b1=a775_0x4d88;if(_0x3ce14e[_0x5e35b1(0x1ec)])return _0x4df71a(_0x3ce14e);return db['Setting']['findByPk'](0x1)[_0x5e35b1(0x1a1)](function(_0xb70c6c){const _0x31d4cf=_0x5e35b1;if(_0xb70c6c[_0x31d4cf(0x24d)])authService[_0x31d4cf(0x2a0)](_0x3ce14e[_0x31d4cf(0x27d)]);db[_0x31d4cf(0x198)][_0x31d4cf(0x247)](_0x31d4cf(0x1ec))[_0x31d4cf(0x1a1)](function(_0x20c9d2){const _0x3753b8=_0x31d4cf;if(_[_0x3753b8(0x22f)](_0x20c9d2)){_0x3ce14e[_0x3753b8(0x1ec)]=_0xb70c6c[_0x3753b8(0x25c)]||0x1;return;}if(_[_0x3753b8(0x22f)](_0xb70c6c[_0x3753b8(0x25c)])||_0xb70c6c[_0x3753b8(0x25c)]===_0x20c9d2){_0x3ce14e['internal']=_0x20c9d2+0x1;return;}if(_0xb70c6c[_0x3753b8(0x25c)]>_0x20c9d2){_0x3ce14e[_0x3753b8(0x1ec)]=_0xb70c6c[_0x3753b8(0x25c)];return;}return db[_0x3753b8(0x2c0)][_0x3753b8(0x242)](_0x3753b8(0x2d9),{'type':QueryTypes[_0x3753b8(0x1ca)]})[_0x3753b8(0x1a1)](function(_0x545449){const _0x24b3bd=_0x3753b8;if(_0x545449&&_0x545449[_0x24b3bd(0x2e9)])for(let _0xf8821d=0x0,_0x3592de=_0x545449[_0x24b3bd(0x2e9)];_0xf8821d<_0x3592de&&_[_0x24b3bd(0x22f)](_0x3ce14e[_0x24b3bd(0x1ec)]);_0xf8821d++){if(_0xb70c6c[_0x24b3bd(0x25c)]<=_0x545449[_0xf8821d]['from'])_0x3ce14e['internal']=_0x545449[_0xf8821d][_0x24b3bd(0x1ce)];else _0xb70c6c[_0x24b3bd(0x25c)]>_0x545449[_0xf8821d][_0x24b3bd(0x1ce)]&&_0xb70c6c[_0x24b3bd(0x25c)]<=_0x545449[_0xf8821d]['to']&&(_0x3ce14e['internal']=_0xb70c6c[_0x24b3bd(0x25c)]);}return _[_0x24b3bd(0x22f)](_0x3ce14e[_0x24b3bd(0x1ec)])&&(_0x3ce14e['internal']=_0x20c9d2+0x1),_0x4df71a(_0x3ce14e);});});})['catch'](function(_0x518163){_0xad0cb0(_0x518163);});});}function updateUser(_0x5753f0){return new Promise(function(_0xe773b2,_0x35bb62){const _0x323abf=a775_0x4d88;try{_0x5753f0['voicemail']&&(_0x5753f0[_0x323abf(0x2bd)]=_0x5753f0[_0x323abf(0x1ec)],_0x5753f0[_0x323abf(0x22e)]={'mailbox':_0x5753f0[_0x323abf(0x1ec)],'password':_0x5753f0[_0x323abf(0x27d)],'fullname':_0x5753f0[_0x323abf(0x29c)],'email':_0x5753f0['email']});if(_0x5753f0[_0x323abf(0x272)]===_0x323abf(0x297)){if(!_0x5753f0[_0x323abf(0x23e)])_0x5753f0[_0x323abf(0x23e)]=[_0x323abf(0x1c5),_0x323abf(0x261),_0x323abf(0x24a),'113',_0x323abf(0x290),_0x323abf(0x2f5),_0x323abf(0x27b),'106',_0x323abf(0x1c2),_0x323abf(0x22d),_0x323abf(0x255),'100',_0x323abf(0x245),_0x323abf(0x20b)];}_0xe773b2(_0x5753f0);}catch(_0x55cc3f){_0x35bb62(_0x55cc3f);}});}exports['index']=function(_0x55420d,_0x211564){const _0x3fd244=a775_0x7cb8f1;let _0x309d48={};const _0x18a221={},_0x323ab4={'count':0x0,'rows':[]},_0x318d92=_[_0x3fd244(0x269)](db[_0x3fd244(0x198)][_0x3fd244(0x2a7)],function(_0x4a97fe){const _0x1897b1=_0x3fd244;return{'name':_0x4a97fe[_0x1897b1(0x2eb)],'type':_0x4a97fe[_0x1897b1(0x289)][_0x1897b1(0x210)]};});_0x18a221[_0x3fd244(0x1db)]=_[_0x3fd244(0x25a)](_[_0x3fd244(0x269)](_0x318d92,'name'),[_0x3fd244(0x27d),_0x3fd244(0x266)]),_0x18a221[_0x3fd244(0x242)]=_[_0x3fd244(0x1b6)](_0x55420d['query']),_0x18a221[_0x3fd244(0x1f5)]=_[_0x3fd244(0x1de)](_0x18a221[_0x3fd244(0x1db)],_0x18a221[_0x3fd244(0x242)]),_0x309d48['attributes']=_[_0x3fd244(0x1de)](_0x18a221[_0x3fd244(0x1db)],qs[_0x3fd244(0x23a)](_0x55420d[_0x3fd244(0x242)]['fields'])),_0x309d48[_0x3fd244(0x25f)]=_0x309d48['attributes'][_0x3fd244(0x2e9)]?_0x309d48[_0x3fd244(0x25f)]:_0x18a221[_0x3fd244(0x1db)];typeof _0x55420d[_0x3fd244(0x242)][_0x3fd244(0x1ac)]==='undefined'&&(_0x309d48[_0x3fd244(0x2ca)]=qs[_0x3fd244(0x2ca)](_0x55420d[_0x3fd244(0x242)]['limit']),_0x309d48[_0x3fd244(0x1d9)]=qs[_0x3fd244(0x1d9)](_0x55420d[_0x3fd244(0x242)][_0x3fd244(0x1d9)]));_0x309d48['order']=qs[_0x3fd244(0x1b0)](_0x55420d[_0x3fd244(0x242)]['sort']),_0x309d48[_0x3fd244(0x1a5)]=qs[_0x3fd244(0x1f5)](_[_0x3fd244(0x2d7)](_0x55420d[_0x3fd244(0x242)],_0x18a221[_0x3fd244(0x1f5)]),_0x318d92);_0x55420d[_0x3fd244(0x242)]['filter']&&(_0x309d48[_0x3fd244(0x1a5)]=_[_0x3fd244(0x2d3)](_0x309d48[_0x3fd244(0x1a5)],{[Op['or']]:_[_0x3fd244(0x269)](_0x318d92,function(_0x207927){const _0x22f301=_0x3fd244;if(_0x207927[_0x22f301(0x289)]!==_0x22f301(0x203))return where(fn(_0x22f301(0x258),col(_0x207927[_0x22f301(0x1e5)])),{'$like':fn('lower','%'+_0x55420d[_0x22f301(0x242)][_0x22f301(0x1ef)]+'%')});})}));_0x309d48=_[_0x3fd244(0x2d3)]({},_0x309d48,_0x55420d[_0x3fd244(0x2a2)]);const _0x3c721c={'where':_0x309d48[_0x3fd244(0x1a5)]};return db[_0x3fd244(0x198)][_0x3fd244(0x1ad)](_0x3c721c)[_0x3fd244(0x1a1)](function(_0x4e45f4){const _0x3d7f1b=_0x3fd244;return _0x323ab4[_0x3d7f1b(0x1ad)]=_0x4e45f4,typeof _0x55420d['query'][_0x3d7f1b(0x1a9)]!=='undefined'&&(_0x309d48[_0x3d7f1b(0x249)]=[{'all':!![]}]),db[_0x3d7f1b(0x198)][_0x3d7f1b(0x1b9)](_0x309d48);})['then'](function(_0x55553e){const _0x6c2757=_0x3fd244;return _0x323ab4[_0x6c2757(0x28b)]=_0x55553e,_0x323ab4;})[_0x3fd244(0x1a1)](respondWithFilteredResult(_0x211564,_0x309d48))[_0x3fd244(0x196)](handleError(_0x211564,null));},exports['show']=function(_0x2b9276,_0x8f303d){const _0x15535d=a775_0x7cb8f1;let _0x5688e8={'raw':![],'where':{'id':_0x2b9276[_0x15535d(0x1c6)]['id']}};const _0x3a777b={};return _0x3a777b['model']=_[_0x15535d(0x25a)](_[_0x15535d(0x1b6)](db['User'][_0x15535d(0x2a7)]),[_0x15535d(0x27d),'salt']),_0x3a777b['query']=_[_0x15535d(0x1b6)](_0x2b9276[_0x15535d(0x242)]),_0x3a777b[_0x15535d(0x1f5)]=_[_0x15535d(0x1de)](_0x3a777b[_0x15535d(0x1db)],_0x3a777b[_0x15535d(0x242)]),_0x5688e8['attributes']=_[_0x15535d(0x1de)](_0x3a777b['model'],qs[_0x15535d(0x23a)](_0x2b9276[_0x15535d(0x242)][_0x15535d(0x23a)])),_0x5688e8[_0x15535d(0x25f)]=_0x5688e8[_0x15535d(0x25f)][_0x15535d(0x2e9)]?_0x5688e8[_0x15535d(0x25f)]:_0x3a777b[_0x15535d(0x1db)],_0x2b9276[_0x15535d(0x242)][_0x15535d(0x1a9)]&&(_0x5688e8['include']=[{'all':!![]}]),_0x5688e8=_[_0x15535d(0x2d3)]({},_0x5688e8,_0x2b9276['options']),db[_0x15535d(0x198)][_0x15535d(0x295)](_0x5688e8)[_0x15535d(0x1a1)](handleEntityNotFound(_0x8f303d,null))['then'](respondWithResult(_0x8f303d,null))[_0x15535d(0x196)](handleError(_0x8f303d,null));},exports[a775_0x7cb8f1(0x26f)]=function(_0x3f2096,_0x1e1934){const _0x5b60fa=a775_0x7cb8f1,_0x1a1fe2=_0x3f2096['body'];let _0xeb265f=[];if(_0x3f2096[_0x5b60fa(0x2e5)][_0x5b60fa(0x272)]===_0x5b60fa(0x297))throw new Error(_0x5b60fa(0x2ef));if(_['some'](_0x1a1fe2,[_0x5b60fa(0x272),'user'])&&_0x3f2096[_0x5b60fa(0x2e5)][_0x5b60fa(0x272)]!==_0x5b60fa(0x2f6))throw new Error(_0x5b60fa(0x22c));if(_[_0x5b60fa(0x287)](_0x1a1fe2,['role',_0x5b60fa(0x2f6)])&&_0x3f2096[_0x5b60fa(0x2e5)][_0x5b60fa(0x272)]!==_0x5b60fa(0x2f6))throw new Error(_0x5b60fa(0x1bb));return licenseUtil[_0x5b60fa(0x225)](_0x1a1fe2)[_0x5b60fa(0x1a1)](function(){return validateUser(_0x1a1fe2[0x0]);})[_0x5b60fa(0x1a1)](function(){const _0x5c9730=_0x5b60fa;for(let _0x132d65=0x1;_0x132d65<_0x1a1fe2[_0x5c9730(0x2e9)];_0x132d65++){const _0x407d29=_0x1a1fe2[_0x132d65-0x1][_0x5c9730(0x1ec)];if(!_0x1a1fe2[_0x132d65]['internal'])_0x1a1fe2[_0x132d65][_0x5c9730(0x1ec)]=_0x407d29+0x1;_0xeb265f['push'](validateUser(_0x1a1fe2[_0x132d65]));}return Promise['all'](_0xeb265f);})[_0x5b60fa(0x1a1)](function(){const _0x575078=_0x5b60fa;_0xeb265f=[];for(let _0x80bbc4=0x0;_0x80bbc4<_0x1a1fe2[_0x575078(0x2e9)];_0x80bbc4++){_0xeb265f['push'](updateUser(_0x1a1fe2[_0x80bbc4]));}return Promise[_0x575078(0x24b)](_0xeb265f);})[_0x5b60fa(0x1a1)](function(){const _0x1869f8=_0x5b60fa;return _0xeb265f=_0x1a1fe2[_0x1869f8(0x269)](_0x2cba66=>{const _0x177139=_0x1869f8;return db[_0x177139(0x198)][_0x177139(0x23d)](_0x2cba66,{'include':[{'model':db[_0x177139(0x22e)],'as':_0x177139(0x22e)}]})[_0x177139(0x1a1)](function(_0x3c31e6){return _0x2cba66['id']=_0x3c31e6['id'],_0x2cba66;});}),Promise['all'](_0xeb265f);})[_0x5b60fa(0x1a1)](function(_0x2700a2){const _0x49cce9=_0x5b60fa;if(_0x3f2096[_0x49cce9(0x205)][_0x49cce9(0x272)]===_0x49cce9(0x2e5))return _0x2700a2;if(_0x3f2096['user'][_0x49cce9(0x272)]!=='user')return _0x2700a2;const _0x27e418=_['some'](_0x2700a2,function(_0xa5314b){const _0x4423cd=_0x49cce9;return _0xa5314b[_0x4423cd(0x272)]===_0x4423cd(0x297)||_0xa5314b[_0x4423cd(0x272)]===_0x4423cd(0x1a4);});if(!_0x27e418)return _0x2700a2;return db[_0x49cce9(0x2d2)][_0x49cce9(0x1b9)]({'where':{'name':{[Op['or']]:['Agents',_0x49cce9(0x1b3)]},'userProfileId':_0x3f2096[_0x49cce9(0x2e5)][_0x49cce9(0x209)]},'raw':!![]})['then'](function(_0x4a74af){const _0x52456d=_0x49cce9;if(_['isEmpty'](_0x4a74af)||!_['some'](_0x4a74af,[_0x52456d(0x2c3),0x0]))return _0x2700a2;_0xeb265f=[];const _0xfbe3b6=_(_0x4a74af)[_0x52456d(0x269)](function(_0x3ee4e8){const _0x570ff2=_0x52456d;if(_0x3ee4e8[_0x570ff2(0x2c3)]===0x1)return;return _0x3ee4e8['name']===_0x570ff2(0x1da)?'agent':_0x570ff2(0x1a4);})[_0x52456d(0x2e4)]()[_0x52456d(0x1bc)]();for(let _0x5bba1a=0x0;_0x5bba1a<_0x2700a2[_0x52456d(0x2e9)];_0x5bba1a++){if(!_['includes'](_0xfbe3b6,_0x2700a2[_0x5bba1a][_0x52456d(0x272)]))return;const _0xb33958=_0x2700a2[_0x5bba1a]['role']===_0x52456d(0x297)?'Agents':_0x52456d(0x1b3);_0xeb265f[_0x52456d(0x1cf)](db[_0x52456d(0x226)][_0x52456d(0x23d)]({'name':_0x2700a2[_0x5bba1a][_0x52456d(0x1e5)],'resourceId':_0x2700a2[_0x5bba1a]['id'],'type':_0xb33958,'sectionId':_[_0x52456d(0x25d)](_0x4a74af,['name',_0xb33958])['id']},{}));}return Promise[_0x52456d(0x24b)](_0xeb265f);});})[_0x5b60fa(0x1a1)](respondWithResult(_0x1e1934,0xc9))[_0x5b60fa(0x196)](handleError(_0x1e1934,null));},exports[a775_0x7cb8f1(0x2e7)]=function(_0x32f142,_0x102665){const _0x552e88=a775_0x7cb8f1;return _0x32f142['body']['id']&&delete _0x32f142[_0x552e88(0x205)]['id'],delete _0x32f142[_0x552e88(0x205)][_0x552e88(0x272)],db['User']['findOne']({'where':{'id':_0x32f142[_0x552e88(0x1c6)]['id']}})[_0x552e88(0x1a1)](handleEntityNotFound(_0x102665,null))[_0x552e88(0x1a1)](saveUpdates(_0x32f142[_0x552e88(0x205)],null))[_0x552e88(0x1a1)](respondWithResult(_0x102665,null))[_0x552e88(0x196)](handleError(_0x102665,null));},exports['describe']=function(_0x364dd0,_0x397f52){const _0xa6c8c1=a775_0x7cb8f1;return db['User'][_0xa6c8c1(0x2ed)]()['then'](respondWithResult(_0x397f52,null))['catch'](handleError(_0x397f52,null));},exports['addContacts']=function(_0x40d506,_0x1d2477){const _0x2516ed=a775_0x7cb8f1;return db[_0x2516ed(0x198)][_0x2516ed(0x295)]({'where':{'id':_0x40d506[_0x2516ed(0x1c6)]['id']}})['then'](handleEntityNotFound(_0x1d2477,null))[_0x2516ed(0x1a1)](function(_0xafdfde){const _0x2b59fd=_0x2516ed;if(_0xafdfde)return _0xafdfde[_0x2b59fd(0x243)](_0x40d506['body'][_0x2b59fd(0x1a7)],{'through':_[_0x2b59fd(0x19b)](_0x40d506['body'],[_0x2b59fd(0x1a7),'id'])});})[_0x2516ed(0x1a1)](respondWithResult(_0x1d2477,null))[_0x2516ed(0x196)](handleError(_0x1d2477,null));},exports['create']=function(_0x4db410,_0x118af8){const _0x2ce429=a775_0x7cb8f1;if(_0x4db410[_0x2ce429(0x2e5)]['role']===_0x2ce429(0x297))throw new Error('Unauthorized');if(_0x4db410[_0x2ce429(0x205)]['role']==='user'&&_0x4db410[_0x2ce429(0x2e5)]['role']!==_0x2ce429(0x2f6))throw new Error(_0x2ce429(0x22c));if(_0x4db410[_0x2ce429(0x205)][_0x2ce429(0x272)]===_0x2ce429(0x2f6)&&_0x4db410['user']['role']!==_0x2ce429(0x2f6))throw new Error(_0x2ce429(0x1c7));return licenseUtil[_0x2ce429(0x225)]([_0x4db410[_0x2ce429(0x205)]])[_0x2ce429(0x1a1)](function(){const _0x118239=_0x2ce429;return validateUser(_0x4db410[_0x118239(0x205)]);})[_0x2ce429(0x1a1)](function(_0x2d1425){const _0x44e631=_0x2ce429;return updateUser(_0x2d1425)[_0x44e631(0x1a1)](function(_0xe123a6){const _0x542ebb=_0x44e631;return _0xe123a6[_0x542ebb(0x272)]===_0x542ebb(0x2f6)&&(_0xe123a6[_0x542ebb(0x1c3)]=_0x4db410[_0x542ebb(0x2e5)][_0x542ebb(0x1c3)],delete _0xe123a6['userProfileId']),_0xe123a6;});})[_0x2ce429(0x1a1)](function(_0x1e3114){const _0x1c3868=_0x2ce429;return db[_0x1c3868(0x198)]['create'](_0x1e3114,{'include':[{'model':db[_0x1c3868(0x22e)],'as':_0x1c3868(0x22e)}]});})['then'](function(_0x39d40e){const _0x21cfb9=_0x2ce429;if(_0x4db410['body'][_0x21cfb9(0x272)]==='user')return _0x39d40e;if(_0x4db410['user'][_0x21cfb9(0x272)]!==_0x21cfb9(0x2e5))return _0x39d40e;return db[_0x21cfb9(0x2d2)][_0x21cfb9(0x295)]({'where':{'name':_0x39d40e[_0x21cfb9(0x272)]===_0x21cfb9(0x297)?_0x21cfb9(0x1da):_0x21cfb9(0x1b3),'userProfileId':_0x4db410['user']['userProfileId']},'raw':!![]})[_0x21cfb9(0x1a1)](function(_0x146d93){const _0x1ec124=_0x21cfb9;if(!_0x146d93||_0x146d93[_0x1ec124(0x2c3)]!=0x0)return _0x39d40e;return db[_0x1ec124(0x226)][_0x1ec124(0x23d)]({'name':_0x39d40e[_0x1ec124(0x1e5)],'resourceId':_0x39d40e['id'],'type':_0x146d93[_0x1ec124(0x1e5)],'sectionId':_0x146d93['id']},{})[_0x1ec124(0x1a1)](function(){return _0x39d40e;});})[_0x21cfb9(0x196)](function(_0x4eab37){const _0x29db4b=_0x21cfb9;logger[_0x29db4b(0x28d)](_0x29db4b(0x2da),_0x4eab37);throw _0x4eab37;});})[_0x2ce429(0x1a1)](respondWithResult(_0x118af8,0xc9))[_0x2ce429(0x196)](handleError(_0x118af8,null));},exports[a775_0x7cb8f1(0x2b6)]=function(_0x4e4f45,_0x583a1d){const _0x39c0bf=a775_0x7cb8f1;if(_0x4e4f45[_0x39c0bf(0x205)]['id'])delete _0x4e4f45[_0x39c0bf(0x205)]['id'];return db[_0x39c0bf(0x198)][_0x39c0bf(0x295)]({'where':{'id':_0x4e4f45[_0x39c0bf(0x1c6)]['id']}})[_0x39c0bf(0x1a1)](function(_0x348398){const _0x310009=_0x39c0bf;if(!_0x348398)return null;if(_0x348398['id']===_0x4e4f45[_0x310009(0x2e5)]['id']){if(!_0x4e4f45[_0x310009(0x205)][_0x310009(0x227)]||!_0x4e4f45[_0x310009(0x205)]['newPassword'])throw new ValidationError('Invalid\x20body\x20format.\x20Use\x20oldPassword\x20and\x20newPassword');if(!_0x348398[_0x310009(0x2c8)](_0x4e4f45['body'][_0x310009(0x227)]))throw new ValidationError('Wrong\x20credentials');if(_0x4e4f45['body'][_0x310009(0x227)]===_0x4e4f45[_0x310009(0x205)][_0x310009(0x270)])throw new ValidationError(_0x310009(0x2b3));}else{if(_0x4e4f45[_0x310009(0x2e5)][_0x310009(0x272)]===_0x310009(0x2f6)){if(!_0x4e4f45['body'][_0x310009(0x270)])throw new ValidationError(_0x310009(0x2c5));}else{if(_0x4e4f45['user'][_0x310009(0x272)]==='user'){if(!_0x4e4f45[_0x310009(0x205)]['newPassword'])throw new ValidationError(_0x310009(0x2c5));if(_0x348398[_0x310009(0x272)]!==_0x310009(0x297))throw new ValidationError(_0x310009(0x2ef));}else throw new ValidationError(_0x310009(0x2ef));}}return _0x348398;})[_0x39c0bf(0x1a1)](handleEntityNotFound(_0x583a1d,null))['then'](function(_0x6b01f5){const _0x12bec7=_0x39c0bf;return db['Setting'][_0x12bec7(0x295)]({'attributes':['id',_0x12bec7(0x24d),_0x12bec7(0x1c1),_0x12bec7(0x2b2)]})[_0x12bec7(0x1a1)](function(_0x292f30){const _0x1749f9=_0x12bec7;if(_0x292f30[_0x1749f9(0x24d)])authService['validatePasswordPattern'](_0x4e4f45[_0x1749f9(0x205)][_0x1749f9(0x270)]);if(!_0x292f30[_0x1749f9(0x1c1)]||!_0x6b01f5['previousPasswords'])return _0x6b01f5;return authService[_0x1749f9(0x299)](_0x4e4f45['body']['newPassword'],_0x6b01f5[_0x1749f9(0x2a6)],_0x292f30[_0x1749f9(0x2b2)]),_0x6b01f5;})[_0x12bec7(0x1a1)](saveUpdates({'password':_0x4e4f45[_0x12bec7(0x205)][_0x12bec7(0x270)],'passwordResetAt':_0x4e4f45[_0x12bec7(0x2e5)]['id']==_0x4e4f45[_0x12bec7(0x1c6)]['id']?moment():null,'previousPasswords':authService['updatePasswordsHistory'](_0x4e4f45['body'][_0x12bec7(0x270)],_0x6b01f5[_0x12bec7(0x2a6)])},null));})['then'](respondWithResult(_0x583a1d,null))[_0x39c0bf(0x196)](handleError(_0x583a1d,null));},exports[a775_0x7cb8f1(0x240)]=function(_0x4cb5a1,_0x2d3198){const _0x1180d4=a775_0x7cb8f1,_0x25f458=_0x4cb5a1['body'][_0x1180d4(0x2c9)];return db['User']['findOne']({'where':{'id':_0x4cb5a1[_0x1180d4(0x1c6)]['id']},'attributes':['id','name',_0x1180d4(0x272),_0x1180d4(0x19a),_0x1180d4(0x2bf),'voicePause',_0x1180d4(0x279)]})['then'](handleEntityNotFound(_0x2d3198,null))[_0x1180d4(0x1a1)](function(_0x23f072){const _0x1df258=_0x1180d4;if(_0x23f072){if(!utils[_0x1df258(0x1f7)](_0x25f458))throw new ValidationError(_0x1df258(0x2b9));return _0x23f072[_0x1df258(0x26d)+_[_0x1df258(0x2e3)](_0x25f458[_0x1df258(0x2f3)]())+_0x1df258(0x2b5)](_0x4cb5a1['body']['ids'],{'through':{'penalty':_0x4cb5a1[_0x1df258(0x205)][_0x1df258(0x1b5)]||0x0}})[_0x1df258(0x1a1)](function(_0x59de2a){const _0x17a1d8=_0x1df258;for(let _0x4b30bc=0x0;_0x4b30bc<_0x4cb5a1[_0x17a1d8(0x205)]['ids']['length'];_0x4b30bc+=0x1){const _0x468a80={'UserId':_0x4cb5a1[_0x17a1d8(0x1c6)]['id']};_0x468a80[_['capitalize'](_0x25f458['toLowerCase']())+_0x17a1d8(0x1ba)]=_0x4cb5a1[_0x17a1d8(0x205)][_0x17a1d8(0x1a7)][_0x4b30bc],socket[_0x17a1d8(0x2ba)]('user'+_['capitalize'](_0x25f458[_0x17a1d8(0x2f3)]())+_0x17a1d8(0x291),_0x468a80);}return _0x59de2a;})['then'](function(){const _0x392eb0=_0x1df258;if(_0x25f458===_0x392eb0(0x1b4))return db[_0x392eb0(0x1e2)]['findAll']({'where':{'id':_0x4cb5a1['body'][_0x392eb0(0x1a7)]||[]},'raw':!![],'attributes':['id',_0x392eb0(0x1e5)]});})[_0x1df258(0x1a1)](function(_0x5aa20c){const _0x427d22=_0x1df258,_0x379346=_0x23f072['get']({'plain':!![]}),_0x16a0aa=[];if(_0x25f458===_0x427d22(0x1b4)&&_0x379346['role']==='agent'&&_0x379346[_0x427d22(0x19a)]){for(let _0x55761e=0x0;_0x55761e<_0x5aa20c['length'];_0x55761e+=0x1){_0x16a0aa['push']({'membername':_0x379346[_0x427d22(0x1e5)],'UserId':_0x379346['id'],'queue_name':_0x5aa20c[_0x55761e][_0x427d22(0x1e5)],'VoiceQueueId':_0x5aa20c[_0x55761e]['id'],'interface':_[_0x427d22(0x22f)](_0x379346[_0x427d22(0x279)])?util[_0x427d22(0x20d)]('SIP/%s',_0x379346[_0x427d22(0x1e5)]):_0x379346[_0x427d22(0x279)],'paused':_0x379346[_0x427d22(0x27c)]||![],'penalty':_0x4cb5a1['body'][_0x427d22(0x1b5)]||0x0});}return Promise[_0x427d22(0x24b)](_0x16a0aa[_0x427d22(0x269)](_0x454f9d=>{const _0x4c3233=_0x427d22;return db[_0x4c3233(0x2ce)]['upsert'](_0x454f9d);}));}return _0x23f072;});}})['then'](respondWithStatusCode(_0x2d3198,null))[_0x1180d4(0x196)](handleError(_0x2d3198,null));},exports[a775_0x7cb8f1(0x256)]=function(_0x712a9f,_0x4580d5){const _0x3f55c5=a775_0x7cb8f1;let _0x7cfa4a;return db['User'][_0x3f55c5(0x295)]({'where':{'id':_0x712a9f[_0x3f55c5(0x1c6)]['id']},'attributes':['id','name','role']})[_0x3f55c5(0x1a1)](handleEntityNotFound(_0x4580d5,null))[_0x3f55c5(0x1a1)](function(_0x45b1de){const _0x1e7858=_0x3f55c5;if(_0x45b1de){_0x7cfa4a=_0x45b1de;if(!_0x712a9f[_0x1e7858(0x242)][_0x1e7858(0x2c9)]||!utils[_0x1e7858(0x1f7)](_0x712a9f[_0x1e7858(0x242)][_0x1e7858(0x2c9)]))throw new ValidationError(_0x1e7858(0x2b9));return _0x45b1de[_0x1e7858(0x2bb)+_[_0x1e7858(0x2e3)](_0x712a9f['query'][_0x1e7858(0x2c9)][_0x1e7858(0x2f3)]())+_0x1e7858(0x2b5)](_0x712a9f[_0x1e7858(0x242)]['ids']);}})[_0x3f55c5(0x1a1)](function(_0x2151e3){const _0x3446c3=_0x3f55c5;for(let _0x5e4698=0x0;_0x5e4698<_0x712a9f['query']['ids'][_0x3446c3(0x2e9)];_0x5e4698+=0x1){const _0x96c478={'UserId':_0x712a9f[_0x3446c3(0x1c6)]['id']};_0x96c478[_[_0x3446c3(0x2e3)](_0x712a9f[_0x3446c3(0x242)][_0x3446c3(0x2c9)][_0x3446c3(0x2f3)]())+'QueueId']=_0x712a9f[_0x3446c3(0x242)][_0x3446c3(0x1a7)][_0x5e4698],socket[_0x3446c3(0x2ba)](_0x3446c3(0x2e5)+_[_0x3446c3(0x2e3)](_0x712a9f[_0x3446c3(0x242)][_0x3446c3(0x2c9)][_0x3446c3(0x2f3)]())+'Queue:remove',_0x96c478);}return _0x2151e3;})[_0x3f55c5(0x1a1)](function(){const _0x1eeff5=_0x3f55c5;if(_0x712a9f['query'][_0x1eeff5(0x2c9)]===_0x1eeff5(0x1b4))return db[_0x1eeff5(0x2ce)][_0x1eeff5(0x1e8)]({'where':{'UserId':_0x712a9f[_0x1eeff5(0x1c6)]['id'],'VoiceQueueId':_0x712a9f[_0x1eeff5(0x242)][_0x1eeff5(0x1a7)]},'individualHooks':!![]})[_0x1eeff5(0x1a1)](function(){return _0x7cfa4a;});return _0x7cfa4a;})['then'](respondWithStatusCode(_0x4580d5,null))['catch'](handleError(_0x4580d5,null));},exports[a775_0x7cb8f1(0x202)]=function(_0x4f5e47,_0x2f2913){const _0x156c75=a775_0x7cb8f1;return _0x4f5e47[_0x156c75(0x205)][_0x156c75(0x1bf)]=_0x4f5e47[_0x156c75(0x262)][_0x156c75(0x2cc)],db[_0x156c75(0x198)][_0x156c75(0x295)]({'where':{'id':_0x4f5e47[_0x156c75(0x1c6)]['id']}})[_0x156c75(0x1a1)](handleEntityNotFound(_0x2f2913,null))[_0x156c75(0x1a1)](saveUpdates(_0x4f5e47[_0x156c75(0x205)],null))[_0x156c75(0x1a1)](respondWithResult(_0x2f2913,null))[_0x156c75(0x196)](handleError(_0x2f2913,null));},exports[a775_0x7cb8f1(0x244)]=function(_0x2bb92e,_0x249d02){const _0x522d37=a775_0x7cb8f1,_0x321a0b=path[_0x522d37(0x2a8)](config[_0x522d37(0x199)],_0x522d37(0x1a8));return db[_0x522d37(0x198)][_0x522d37(0x295)]({'where':{'id':_0x2bb92e[_0x522d37(0x1c6)]['id']},'attributes':['id',_0x522d37(0x1bf)],'raw':!![]})[_0x522d37(0x1a1)](handleEntityNotFound(_0x249d02,null))[_0x522d37(0x1a1)](function(_0x472d3b){const _0x2eab09=_0x522d37;if(_0x472d3b){if(_['isNil'](_0x472d3b[_0x2eab09(0x1bf)]))return _0x249d02[_0x2eab09(0x231)](_0x321a0b);else{if(!fs[_0x2eab09(0x28f)](path[_0x2eab09(0x2a8)](config[_0x2eab09(0x199)],_0x2eab09(0x2cd),_0x472d3b[_0x2eab09(0x1bf)])))return _0x249d02['download'](_0x321a0b);return _0x249d02[_0x2eab09(0x231)](path[_0x2eab09(0x2a8)](config[_0x2eab09(0x199)],_0x2eab09(0x2cd),_0x472d3b[_0x2eab09(0x1bf)]));}}})[_0x522d37(0x196)](handleError(_0x249d02,null));},exports[a775_0x7cb8f1(0x21a)]=function(_0x3aa219,_0x835635){const _0x296e25=a775_0x7cb8f1;let _0xf4485b={};const _0x59b649={};let _0x32db41,_0x25c276;return db[_0x296e25(0x198)]['findOne']({'where':{'id':_0x3aa219['params']['id']}})['then'](handleEntityNotFound(_0x835635,null))[_0x296e25(0x1a1)](function(_0x3e169d){const _0x7fc230=_0x296e25;if(_0x3e169d)return _0x32db41=_0x3e169d,_0x59b649[_0x7fc230(0x1db)]=_[_0x7fc230(0x1b6)](db[_0x7fc230(0x248)][_0x7fc230(0x2a7)]),_0x59b649[_0x7fc230(0x242)]=_[_0x7fc230(0x1b6)](_0x3aa219[_0x7fc230(0x242)]),_0x59b649[_0x7fc230(0x1f5)]=_[_0x7fc230(0x1de)](_0x59b649[_0x7fc230(0x1db)],_0x59b649[_0x7fc230(0x242)]),_0xf4485b[_0x7fc230(0x25f)]=_['intersection'](_0x59b649['model'],qs['fields'](_0x3aa219[_0x7fc230(0x242)][_0x7fc230(0x23a)])),_0xf4485b[_0x7fc230(0x25f)]=_0xf4485b[_0x7fc230(0x25f)][_0x7fc230(0x2e9)]?_0xf4485b[_0x7fc230(0x25f)]:_0x59b649[_0x7fc230(0x1db)],_0xf4485b[_0x7fc230(0x221)]=qs[_0x7fc230(0x1b0)](_0x3aa219[_0x7fc230(0x242)][_0x7fc230(0x1b0)]),_0xf4485b['where']=qs[_0x7fc230(0x1f5)](_[_0x7fc230(0x2d7)](_0x3aa219[_0x7fc230(0x242)],_0x59b649['filters'])),_0x3aa219[_0x7fc230(0x242)]['filter']&&(_0xf4485b[_0x7fc230(0x1a5)]=_['merge'](_0xf4485b[_0x7fc230(0x1a5)],{[Op['or']]:_[_0x7fc230(0x269)](_0xf4485b[_0x7fc230(0x25f)],function(_0x15fcc1){const _0xcf06d0=_0x7fc230,_0x3d83ff={};return _0x3d83ff[_0x15fcc1]={[Op['like']]:'%'+_0x3aa219[_0xcf06d0(0x242)]['filter']+'%'},_0x3d83ff;})})),_0xf4485b=_[_0x7fc230(0x2d3)]({},_0xf4485b,_0x3aa219[_0x7fc230(0x2a2)]),_0x32db41[_0x7fc230(0x21a)](_0xf4485b);})['then'](function(_0x14ebcf){const _0x458e41=_0x296e25;if(_0x14ebcf)return _0x25c276=_0x14ebcf['length'],typeof _0x3aa219[_0x458e41(0x242)][_0x458e41(0x1a9)]!=='undefined'&&(_0xf4485b['include']=[{'model':db[_0x458e41(0x288)],'as':'List','required':![]},{'model':db[_0x458e41(0x230)],'as':'Tags','attributes':['id',_0x458e41(0x1e5),_0x458e41(0x239)],'where':_0x3aa219[_0x458e41(0x242)][_0x458e41(0x2b4)]?{'id':_0x3aa219['query']['tag']}:undefined,'required':_0x3aa219[_0x458e41(0x242)][_0x458e41(0x2b4)]?!![]:![]}]),typeof _0x3aa219[_0x458e41(0x242)][_0x458e41(0x1ac)]===_0x458e41(0x2e2)&&(_0xf4485b[_0x458e41(0x2ca)]=qs['limit'](_0x3aa219['query'][_0x458e41(0x2ca)]),_0xf4485b[_0x458e41(0x1d9)]=qs['offset'](_0x3aa219[_0x458e41(0x242)][_0x458e41(0x1d9)])),_0x32db41['getContacts'](_0xf4485b);})[_0x296e25(0x1a1)](function(_0x1e0487){if(_0x1e0487)return _0x1e0487?{'count':_0x25c276,'rows':_0x1e0487}:null;})[_0x296e25(0x1a1)](respondWithResult(_0x835635,null))[_0x296e25(0x196)](handleError(_0x835635,null));},exports['getQueues']=function(_0x13b268,_0x17569d){const _0xb8108b=a775_0x7cb8f1;let _0x12647,_0x34757b={},_0x5961a6;return db['User'][_0xb8108b(0x295)]({'where':{'id':_0x13b268[_0xb8108b(0x1c6)]['id']},'attributes':['id',_0xb8108b(0x1e5),'role']})[_0xb8108b(0x1a1)](handleEntityNotFound(_0x17569d,null))[_0xb8108b(0x1a1)](function(_0x409ad9){const _0x351387=_0xb8108b;if(!utils[_0x351387(0x1f7)](_0x13b268[_0x351387(0x242)][_0x351387(0x2c9)]))throw new ValidationError('Unknown\x20channel');_0x12647=_0x409ad9;const _0x2f1095={};_0x2f1095['model']=_[_0x351387(0x1b6)](db[_['capitalize'](_0x13b268['query'][_0x351387(0x2c9)])+_0x351387(0x2f2)][_0x351387(0x2a7)]),_0x2f1095[_0x351387(0x242)]=_[_0x351387(0x1b6)](_0x13b268[_0x351387(0x242)]),_0x2f1095[_0x351387(0x1f5)]=_[_0x351387(0x1de)](_0x2f1095[_0x351387(0x1db)],_0x2f1095[_0x351387(0x242)]),_0x34757b[_0x351387(0x25f)]=_[_0x351387(0x1de)](_0x2f1095[_0x351387(0x1db)],qs[_0x351387(0x23a)](_0x13b268[_0x351387(0x242)][_0x351387(0x23a)])),_0x34757b[_0x351387(0x25f)]=_0x34757b[_0x351387(0x25f)]['length']?_0x34757b[_0x351387(0x25f)]:_0x2f1095[_0x351387(0x1db)],_0x34757b['order']=qs['sort'](_0x13b268[_0x351387(0x242)][_0x351387(0x1b0)]),_0x34757b[_0x351387(0x1a5)]=qs[_0x351387(0x1f5)](_[_0x351387(0x2d7)](_0x13b268['query'],_0x2f1095[_0x351387(0x1f5)]));_0x13b268[_0x351387(0x242)][_0x351387(0x1ef)]&&(_0x34757b[_0x351387(0x1a5)]=_[_0x351387(0x2d3)](_0x34757b[_0x351387(0x1a5)],{[Op['or']]:_['map'](_0x34757b[_0x351387(0x25f)],function(_0x1987ca){const _0x5f4072=_0x351387,_0x4f8d0d={};return _0x4f8d0d[_0x1987ca]={[Op[_0x5f4072(0x2d1)]]:'%'+_0x13b268[_0x5f4072(0x242)][_0x5f4072(0x1ef)]+'%'},_0x4f8d0d;})}));_0x34757b=_['merge']({},_0x34757b,_0x13b268[_0x351387(0x2a2)]);switch(_0x12647['role']){case _0x351387(0x2f6):return db[_[_0x351387(0x2e3)](_0x13b268[_0x351387(0x242)]['channel'])+_0x351387(0x2f2)]['findAll'](_0x34757b);case _0x351387(0x2e5):case _0x351387(0x297):return _0x12647[_0x351387(0x257)+_['capitalize'](_0x13b268['query'][_0x351387(0x2c9)])+_0x351387(0x2b5)](_0x34757b);default:throw new ValidationError('Unknown\x20role');}})[_0xb8108b(0x1a1)](function(_0x1f1854){const _0x20d98c=_0xb8108b;_0x5961a6=_0x1f1854[_0x20d98c(0x2e9)];typeof _0x13b268[_0x20d98c(0x242)][_0x20d98c(0x1ac)]===_0x20d98c(0x2e2)&&(_0x34757b[_0x20d98c(0x2ca)]=qs[_0x20d98c(0x2ca)](_0x13b268[_0x20d98c(0x242)][_0x20d98c(0x2ca)]),_0x34757b[_0x20d98c(0x1d9)]=qs[_0x20d98c(0x1d9)](_0x13b268['query'][_0x20d98c(0x1d9)]));switch(_0x12647[_0x20d98c(0x272)]){case _0x20d98c(0x2f6):return db[_['capitalize'](_0x13b268['query'][_0x20d98c(0x2c9)])+'Queue']['findAll'](_0x34757b);case'user':case _0x20d98c(0x297):return _0x12647[_0x20d98c(0x257)+_[_0x20d98c(0x2e3)](_0x13b268[_0x20d98c(0x242)][_0x20d98c(0x2c9)])+_0x20d98c(0x2b5)](_0x34757b);}})[_0xb8108b(0x1a1)](function(_0x212f34){return{'count':_0x5961a6,'rows':_0x212f34};})['then'](respondWithResult(_0x17569d,null))['catch'](handleError(_0x17569d,null));},exports[a775_0x7cb8f1(0x215)]=function(_0x417df0,_0x3a01ed){const _0x30e42e=a775_0x7cb8f1;let _0x4f56b1={};const _0x54011e={};let _0x8fc28c,_0x6e6e73;return db['User'][_0x30e42e(0x295)]({'where':{'id':_0x417df0['params']['id']}})[_0x30e42e(0x1a1)](handleEntityNotFound(_0x3a01ed,null))[_0x30e42e(0x1a1)](function(_0x444fc9){const _0x2e9542=_0x30e42e;if(_0x444fc9)return _0x8fc28c=_0x444fc9,_0x54011e[_0x2e9542(0x1db)]=_[_0x2e9542(0x1b6)](db[_0x2e9542(0x2ce)][_0x2e9542(0x2a7)]),_0x54011e[_0x2e9542(0x242)]=_['keys'](_0x417df0['query']),_0x54011e[_0x2e9542(0x1f5)]=_[_0x2e9542(0x1de)](_0x54011e['model'],_0x54011e[_0x2e9542(0x242)]),_0x4f56b1['attributes']=_[_0x2e9542(0x1de)](_0x54011e[_0x2e9542(0x1db)],qs[_0x2e9542(0x23a)](_0x417df0['query'][_0x2e9542(0x23a)])),_0x4f56b1[_0x2e9542(0x25f)]=_0x4f56b1[_0x2e9542(0x25f)][_0x2e9542(0x2e9)]?_0x4f56b1[_0x2e9542(0x25f)]:_0x54011e[_0x2e9542(0x1db)],_0x4f56b1[_0x2e9542(0x221)]=qs[_0x2e9542(0x1b0)](_0x417df0[_0x2e9542(0x242)][_0x2e9542(0x1b0)]),_0x4f56b1['where']=qs[_0x2e9542(0x1f5)](_[_0x2e9542(0x2d7)](_0x417df0[_0x2e9542(0x242)],_0x54011e['filters'])),_0x417df0[_0x2e9542(0x242)][_0x2e9542(0x1ef)]&&(_0x4f56b1[_0x2e9542(0x1a5)]=_[_0x2e9542(0x2d3)](_0x4f56b1[_0x2e9542(0x1a5)],{[Op['or']]:_[_0x2e9542(0x269)](_0x4f56b1[_0x2e9542(0x25f)],function(_0x759d00){const _0x1540df=_0x2e9542,_0x3bb979={};return _0x3bb979[_0x759d00]={[Op[_0x1540df(0x2d1)]]:'%'+_0x417df0[_0x1540df(0x242)][_0x1540df(0x1ef)]+'%'},_0x3bb979;})})),_0x4f56b1=_[_0x2e9542(0x2d3)]({},_0x4f56b1,_0x417df0[_0x2e9542(0x2a2)]),_0x8fc28c['getVoiceQueuesRt'](_0x4f56b1);})['then'](function(_0x48bc99){const _0x1662c7=_0x30e42e;if(_0x48bc99)return _0x6e6e73=_0x48bc99[_0x1662c7(0x2e9)],typeof _0x417df0['query'][_0x1662c7(0x1ac)]===_0x1662c7(0x2e2)&&(_0x4f56b1[_0x1662c7(0x2ca)]=qs[_0x1662c7(0x2ca)](_0x417df0['query'][_0x1662c7(0x2ca)]),_0x4f56b1[_0x1662c7(0x1d9)]=qs[_0x1662c7(0x1d9)](_0x417df0[_0x1662c7(0x242)][_0x1662c7(0x1d9)])),_0x8fc28c[_0x1662c7(0x215)](_0x4f56b1);})[_0x30e42e(0x1a1)](function(_0x341eaa){if(_0x341eaa)return _0x341eaa?{'count':_0x6e6e73,'rows':_0x341eaa}:null;})[_0x30e42e(0x1a1)](respondWithResult(_0x3a01ed,null))[_0x30e42e(0x196)](handleError(_0x3a01ed,null));},exports['getGroups']=function(_0x596f0e,_0x121703){const _0x13f337=a775_0x7cb8f1;let _0x40b847={};const _0x32794a={};let _0x1a782d,_0x4e6598;return db[_0x13f337(0x198)][_0x13f337(0x295)]({'where':{'id':_0x596f0e[_0x13f337(0x1c6)]['id']}})[_0x13f337(0x1a1)](handleEntityNotFound(_0x121703,null))[_0x13f337(0x1a1)](function(_0x2af54d){const _0x44fe7f=_0x13f337;if(_0x2af54d)return _0x1a782d=_0x2af54d,_0x32794a[_0x44fe7f(0x1db)]=_[_0x44fe7f(0x1b6)](db[_0x44fe7f(0x1fc)][_0x44fe7f(0x2a7)]),_0x32794a[_0x44fe7f(0x242)]=_['keys'](_0x596f0e[_0x44fe7f(0x242)]),_0x32794a[_0x44fe7f(0x1f5)]=_[_0x44fe7f(0x1de)](_0x32794a[_0x44fe7f(0x1db)],_0x32794a[_0x44fe7f(0x242)]),_0x40b847['attributes']=_[_0x44fe7f(0x1de)](_0x32794a['model'],qs['fields'](_0x596f0e[_0x44fe7f(0x242)]['fields'])),_0x40b847['attributes']=_0x40b847[_0x44fe7f(0x25f)][_0x44fe7f(0x2e9)]?_0x40b847[_0x44fe7f(0x25f)]:_0x32794a[_0x44fe7f(0x1db)],_0x40b847['order']=qs[_0x44fe7f(0x1b0)](_0x596f0e[_0x44fe7f(0x242)][_0x44fe7f(0x1b0)]),_0x40b847[_0x44fe7f(0x1a5)]=qs['filters'](_['pick'](_0x596f0e[_0x44fe7f(0x242)],_0x32794a['filters'])),_0x596f0e[_0x44fe7f(0x242)][_0x44fe7f(0x1ef)]&&(_0x40b847[_0x44fe7f(0x1a5)]=_[_0x44fe7f(0x2d3)](_0x40b847['where'],{[Op['or']]:_['map'](_0x40b847['attributes'],function(_0x3a6c86){const _0x48584a=_0x44fe7f,_0x5bb1e3={};return _0x5bb1e3[_0x3a6c86]={[Op['like']]:'%'+_0x596f0e[_0x48584a(0x242)][_0x48584a(0x1ef)]+'%'},_0x5bb1e3;})})),_0x40b847=_[_0x44fe7f(0x2d3)]({},_0x40b847,_0x596f0e[_0x44fe7f(0x2a2)]),_0x1a782d[_0x44fe7f(0x29f)](_0x40b847);})[_0x13f337(0x1a1)](function(_0x56fcad){const _0x16ca2f=_0x13f337;if(_0x56fcad)return _0x4e6598=_0x56fcad[_0x16ca2f(0x2e9)],typeof _0x596f0e[_0x16ca2f(0x242)]['nolimit']===_0x16ca2f(0x2e2)&&(_0x40b847['limit']=qs[_0x16ca2f(0x2ca)](_0x596f0e[_0x16ca2f(0x242)][_0x16ca2f(0x2ca)]),_0x40b847[_0x16ca2f(0x1d9)]=qs[_0x16ca2f(0x1d9)](_0x596f0e[_0x16ca2f(0x242)][_0x16ca2f(0x1d9)])),_0x1a782d[_0x16ca2f(0x29f)](_0x40b847);})[_0x13f337(0x1a1)](function(_0x32572c){if(_0x32572c)return _0x32572c?{'count':_0x4e6598,'rows':_0x32572c}:null;})[_0x13f337(0x1a1)](respondWithResult(_0x121703,null))[_0x13f337(0x196)](handleError(_0x121703,null));},exports[a775_0x7cb8f1(0x2d8)]=function(_0x3af130,_0x47455b){const _0x51c854=a775_0x7cb8f1;let _0x1279b3={'raw':!![],'where':{}};const _0x4de097={},_0x22451e={'count':0x0,'rows':[]};return db[_0x51c854(0x198)][_0x51c854(0x295)]({'where':{'id':_0x3af130[_0x51c854(0x1c6)]['id']}})[_0x51c854(0x1a1)](handleEntityNotFound(_0x47455b,null))['then'](function(_0x55d391){const _0x2a3689=_0x51c854;if(_0x55d391)return _0x4de097['model']=_[_0x2a3689(0x1b6)](db[_0x2a3689(0x21c)]['rawAttributes']),_0x4de097['query']=_[_0x2a3689(0x1b6)](_0x3af130[_0x2a3689(0x242)]),_0x4de097[_0x2a3689(0x1f5)]=_[_0x2a3689(0x1de)](_0x4de097[_0x2a3689(0x1db)],_0x4de097[_0x2a3689(0x242)]),_0x1279b3[_0x2a3689(0x25f)]=_[_0x2a3689(0x1de)](_0x4de097[_0x2a3689(0x1db)],qs[_0x2a3689(0x23a)](_0x3af130['query'][_0x2a3689(0x23a)])),_0x1279b3[_0x2a3689(0x25f)]=_0x1279b3[_0x2a3689(0x25f)][_0x2a3689(0x2e9)]?_0x1279b3[_0x2a3689(0x25f)]:_0x4de097[_0x2a3689(0x1db)],typeof _0x3af130[_0x2a3689(0x242)][_0x2a3689(0x1ac)]===_0x2a3689(0x2e2)&&(_0x1279b3[_0x2a3689(0x2ca)]=qs[_0x2a3689(0x2ca)](_0x3af130[_0x2a3689(0x242)][_0x2a3689(0x2ca)]),_0x1279b3[_0x2a3689(0x1d9)]=qs[_0x2a3689(0x1d9)](_0x3af130[_0x2a3689(0x242)]['offset'])),_0x1279b3[_0x2a3689(0x221)]=qs[_0x2a3689(0x1b0)](_0x3af130[_0x2a3689(0x242)][_0x2a3689(0x1b0)]),_0x1279b3[_0x2a3689(0x1a5)]=qs[_0x2a3689(0x1f5)](_['pick'](_0x3af130[_0x2a3689(0x242)],_0x4de097['filters'])),_0x1279b3[_0x2a3689(0x1a5)][_0x2a3689(0x1c8)]=_0x55d391['id'],_0x3af130[_0x2a3689(0x242)][_0x2a3689(0x1ef)]&&(_0x1279b3['where']=_['merge'](_0x1279b3[_0x2a3689(0x1a5)],{[Op['or']]:_['map'](_0x1279b3[_0x2a3689(0x25f)],function(_0x44e1c6){const _0x4a7ecd=_0x2a3689,_0x29e644={};return _0x29e644[_0x44e1c6]={[Op['like']]:'%'+_0x3af130[_0x4a7ecd(0x242)]['filter']+'%'},_0x29e644;})})),_0x1279b3=_['merge']({},_0x1279b3,_0x3af130['options']),db['VoiceRecording'][_0x2a3689(0x1ad)]({'where':_0x1279b3[_0x2a3689(0x1a5)]})[_0x2a3689(0x1a1)](function(_0x4bd910){const _0x46261f=_0x2a3689;return _0x22451e[_0x46261f(0x1ad)]=_0x4bd910,_0x3af130[_0x46261f(0x242)][_0x46261f(0x1a9)]&&(_0x1279b3[_0x46261f(0x249)]=[{'all':!![]}]),db[_0x46261f(0x21c)][_0x46261f(0x1b9)](_0x1279b3);})[_0x2a3689(0x1a1)](function(_0x35d4fe){const _0x5be4ac=_0x2a3689;return _0x22451e[_0x5be4ac(0x28b)]=_0x35d4fe,_0x22451e;});})[_0x51c854(0x1a1)](respondWithFilteredResult(_0x47455b,_0x1279b3))[_0x51c854(0x196)](handleError(_0x47455b,null));},exports[a775_0x7cb8f1(0x2aa)]=function(_0x3bae28,_0xbc562a){const _0x42ebc7=a775_0x7cb8f1;let _0x49ace2={'raw':!![],'where':{}};const _0x3f6deb={},_0x88b913={'count':0x0,'rows':[]};return db['User']['findOne']({'where':{'id':_0x3bae28[_0x42ebc7(0x1c6)]['id']}})['then'](handleEntityNotFound(_0xbc562a,null))['then'](function(_0x4fa5f7){const _0x1d5939=_0x42ebc7;if(_0x4fa5f7)return _0x3f6deb[_0x1d5939(0x1db)]=_[_0x1d5939(0x1b6)](db[_0x1d5939(0x24c)][_0x1d5939(0x2a7)]),_0x3f6deb['query']=_['keys'](_0x3bae28[_0x1d5939(0x242)]),_0x3f6deb[_0x1d5939(0x1f5)]=_[_0x1d5939(0x1de)](_0x3f6deb['model'],_0x3f6deb[_0x1d5939(0x242)]),_0x49ace2[_0x1d5939(0x25f)]=_[_0x1d5939(0x1de)](_0x3f6deb[_0x1d5939(0x1db)],qs['fields'](_0x3bae28[_0x1d5939(0x242)][_0x1d5939(0x23a)])),_0x49ace2['attributes']=_0x49ace2[_0x1d5939(0x25f)][_0x1d5939(0x2e9)]?_0x49ace2[_0x1d5939(0x25f)]:_0x3f6deb['model'],typeof _0x3bae28[_0x1d5939(0x242)]['nolimit']===_0x1d5939(0x2e2)&&(_0x49ace2[_0x1d5939(0x2ca)]=qs[_0x1d5939(0x2ca)](_0x3bae28[_0x1d5939(0x242)][_0x1d5939(0x2ca)]),_0x49ace2[_0x1d5939(0x1d9)]=qs[_0x1d5939(0x1d9)](_0x3bae28[_0x1d5939(0x242)]['offset'])),_0x49ace2[_0x1d5939(0x221)]=qs[_0x1d5939(0x1b0)](_0x3bae28[_0x1d5939(0x242)][_0x1d5939(0x1b0)]),_0x49ace2[_0x1d5939(0x1a5)]=qs['filters'](_[_0x1d5939(0x2d7)](_0x3bae28['query'],_0x3f6deb[_0x1d5939(0x1f5)])),_0x49ace2[_0x1d5939(0x1a5)]['UserId']=_0x4fa5f7['id'],_0x3bae28[_0x1d5939(0x242)]['filter']&&(_0x49ace2[_0x1d5939(0x1a5)]=_['merge'](_0x49ace2[_0x1d5939(0x1a5)],{[Op['or']]:_[_0x1d5939(0x269)](_0x49ace2[_0x1d5939(0x25f)],function(_0xa22a03){const _0x136e39=_0x1d5939,_0x4b1579={};return _0x4b1579[_0xa22a03]={[Op[_0x136e39(0x2d1)]]:'%'+_0x3bae28[_0x136e39(0x242)][_0x136e39(0x1ef)]+'%'},_0x4b1579;})})),_0x49ace2=_[_0x1d5939(0x2d3)]({},_0x49ace2,_0x3bae28[_0x1d5939(0x2a2)]),db['ScreenRecording'][_0x1d5939(0x1ad)]({'where':_0x49ace2[_0x1d5939(0x1a5)]})[_0x1d5939(0x1a1)](function(_0x1eda1b){const _0x848792=_0x1d5939;return _0x88b913[_0x848792(0x1ad)]=_0x1eda1b,_0x3bae28[_0x848792(0x242)][_0x848792(0x1a9)]&&(_0x49ace2[_0x848792(0x249)]=[{'all':!![]}]),db[_0x848792(0x24c)][_0x848792(0x1b9)](_0x49ace2);})[_0x1d5939(0x1a1)](function(_0xa633a9){const _0x369d56=_0x1d5939;return _0x88b913[_0x369d56(0x28b)]=_0xa633a9,_0x88b913;});})[_0x42ebc7(0x1a1)](respondWithFilteredResult(_0xbc562a,_0x49ace2))[_0x42ebc7(0x196)](handleError(_0xbc562a,null));},exports[a775_0x7cb8f1(0x294)]=function(_0x185a21,_0x27d50f){const _0x4d5e7c=a775_0x7cb8f1;let _0x5b65d6={};const _0x437837={};let _0x1b3767,_0x7e0c9a;return db[_0x4d5e7c(0x198)][_0x4d5e7c(0x295)]({'where':{'id':_0x185a21[_0x4d5e7c(0x1c6)]['id']}})[_0x4d5e7c(0x1a1)](handleEntityNotFound(_0x27d50f,null))[_0x4d5e7c(0x1a1)](function(_0x200cd8){const _0x16ec81=_0x4d5e7c;if(_0x200cd8)return _0x1b3767=_0x200cd8,_0x437837[_0x16ec81(0x1db)]=_[_0x16ec81(0x1b6)](db[_0x16ec81(0x1b2)]['rawAttributes']),_0x437837[_0x16ec81(0x242)]=_[_0x16ec81(0x1b6)](_0x185a21[_0x16ec81(0x242)]),_0x437837['filters']=_['intersection'](_0x437837[_0x16ec81(0x1db)],_0x437837[_0x16ec81(0x242)]),_0x5b65d6[_0x16ec81(0x25f)]=_[_0x16ec81(0x1de)](_0x437837[_0x16ec81(0x1db)],qs[_0x16ec81(0x23a)](_0x185a21[_0x16ec81(0x242)][_0x16ec81(0x23a)])),_0x5b65d6['attributes']=_0x5b65d6[_0x16ec81(0x25f)][_0x16ec81(0x2e9)]?_0x5b65d6[_0x16ec81(0x25f)]:_0x437837[_0x16ec81(0x1db)],_0x5b65d6['order']=qs[_0x16ec81(0x1b0)](_0x185a21['query']['sort']),_0x5b65d6['where']=qs['filters'](_['pick'](_0x185a21[_0x16ec81(0x242)],_0x437837[_0x16ec81(0x1f5)])),_0x185a21[_0x16ec81(0x242)][_0x16ec81(0x1ef)]&&(_0x5b65d6[_0x16ec81(0x1a5)]=_['merge'](_0x5b65d6[_0x16ec81(0x1a5)],{[Op['or']]:_[_0x16ec81(0x269)](_0x5b65d6[_0x16ec81(0x25f)],function(_0x12968a){const _0x491e96=_0x16ec81,_0x5c45d4={};return _0x5c45d4[_0x12968a]={[Op[_0x491e96(0x2d1)]]:'%'+_0x185a21[_0x491e96(0x242)][_0x491e96(0x1ef)]+'%'},_0x5c45d4;})})),_0x5b65d6=_[_0x16ec81(0x2d3)]({},_0x5b65d6,_0x185a21[_0x16ec81(0x2a2)]),_0x1b3767['getChatInteractions'](_0x5b65d6);})[_0x4d5e7c(0x1a1)](function(_0x57a723){const _0x92a228=_0x4d5e7c;if(_0x57a723)return _0x7e0c9a=_0x57a723[_0x92a228(0x2e9)],typeof _0x185a21[_0x92a228(0x242)]['nolimit']===_0x92a228(0x2e2)&&(_0x5b65d6[_0x92a228(0x2ca)]=qs[_0x92a228(0x2ca)](_0x185a21[_0x92a228(0x242)][_0x92a228(0x2ca)]),_0x5b65d6[_0x92a228(0x1d9)]=qs[_0x92a228(0x1d9)](_0x185a21['query']['offset'])),_0x1b3767[_0x92a228(0x294)](_0x5b65d6);})['then'](function(_0x3bace6){if(_0x3bace6)return _0x3bace6?{'count':_0x7e0c9a,'rows':_0x3bace6}:null;})[_0x4d5e7c(0x1a1)](respondWithResult(_0x27d50f,null))[_0x4d5e7c(0x196)](handleError(_0x27d50f,null));},exports[a775_0x7cb8f1(0x1fe)]=function(_0x39ea76,_0x1fb232){const _0x3de6e3=a775_0x7cb8f1;let _0x350e1c={};const _0x538cea={};let _0x1807e2,_0x27459a;return db[_0x3de6e3(0x198)]['findOne']({'where':{'id':_0x39ea76[_0x3de6e3(0x1c6)]['id']}})[_0x3de6e3(0x1a1)](handleEntityNotFound(_0x1fb232,null))[_0x3de6e3(0x1a1)](function(_0x5abd34){const _0x2c3b72=_0x3de6e3;if(_0x5abd34)return _0x1807e2=_0x5abd34,_0x538cea[_0x2c3b72(0x1db)]=_[_0x2c3b72(0x1b6)](db['OpenchannelInteraction']['rawAttributes']),_0x538cea[_0x2c3b72(0x242)]=_[_0x2c3b72(0x1b6)](_0x39ea76[_0x2c3b72(0x242)]),_0x538cea[_0x2c3b72(0x1f5)]=_[_0x2c3b72(0x1de)](_0x538cea['model'],_0x538cea[_0x2c3b72(0x242)]),_0x350e1c[_0x2c3b72(0x25f)]=_['intersection'](_0x538cea['model'],qs[_0x2c3b72(0x23a)](_0x39ea76[_0x2c3b72(0x242)]['fields'])),_0x350e1c[_0x2c3b72(0x25f)]=_0x350e1c['attributes'][_0x2c3b72(0x2e9)]?_0x350e1c[_0x2c3b72(0x25f)]:_0x538cea[_0x2c3b72(0x1db)],_0x350e1c[_0x2c3b72(0x221)]=qs['sort'](_0x39ea76[_0x2c3b72(0x242)][_0x2c3b72(0x1b0)]),_0x350e1c[_0x2c3b72(0x1a5)]=qs[_0x2c3b72(0x1f5)](_['pick'](_0x39ea76[_0x2c3b72(0x242)],_0x538cea[_0x2c3b72(0x1f5)])),_0x39ea76[_0x2c3b72(0x242)]['filter']&&(_0x350e1c[_0x2c3b72(0x1a5)]=_[_0x2c3b72(0x2d3)](_0x350e1c[_0x2c3b72(0x1a5)],{[Op['or']]:_[_0x2c3b72(0x269)](_0x350e1c['attributes'],function(_0xcc0300){const _0x3774c3=_0x2c3b72,_0x5362e6={};return _0x5362e6[_0xcc0300]={[Op[_0x3774c3(0x2d1)]]:'%'+_0x39ea76[_0x3774c3(0x242)][_0x3774c3(0x1ef)]+'%'},_0x5362e6;})})),_0x350e1c=_['merge']({},_0x350e1c,_0x39ea76[_0x2c3b72(0x2a2)]),_0x1807e2['getOpenchannelInteractions'](_0x350e1c);})[_0x3de6e3(0x1a1)](function(_0x170feb){const _0x402ad1=_0x3de6e3;if(_0x170feb)return _0x27459a=_0x170feb['length'],typeof _0x39ea76['query'][_0x402ad1(0x1ac)]===_0x402ad1(0x2e2)&&(_0x350e1c['limit']=qs[_0x402ad1(0x2ca)](_0x39ea76['query'][_0x402ad1(0x2ca)]),_0x350e1c[_0x402ad1(0x1d9)]=qs[_0x402ad1(0x1d9)](_0x39ea76[_0x402ad1(0x242)][_0x402ad1(0x1d9)])),_0x1807e2['getOpenchannelInteractions'](_0x350e1c);})[_0x3de6e3(0x1a1)](function(_0x29d89b){if(_0x29d89b)return _0x29d89b?{'count':_0x27459a,'rows':_0x29d89b}:null;})['then'](respondWithResult(_0x1fb232,null))[_0x3de6e3(0x196)](handleError(_0x1fb232,null));},exports[a775_0x7cb8f1(0x267)]=function(_0x47842e,_0x19d4b1){const _0x438ca9=a775_0x7cb8f1;let _0x3de9c6={'raw':!![],'where':{}};const _0x5449bf={},_0x4ae5b4={'count':0x0,'rows':[]};return db[_0x438ca9(0x198)][_0x438ca9(0x295)]({'where':{'id':_0x47842e['params']['id']}})[_0x438ca9(0x1a1)](handleEntityNotFound(_0x19d4b1,null))['then'](function(_0x570c94){const _0x3cc258=_0x438ca9;if(_0x570c94)return _0x5449bf[_0x3cc258(0x1db)]=_[_0x3cc258(0x1b6)](db[_0x3cc258(0x276)][_0x3cc258(0x2a7)]),_0x5449bf[_0x3cc258(0x242)]=_[_0x3cc258(0x1b6)](_0x47842e['query']),_0x5449bf[_0x3cc258(0x1f5)]=_[_0x3cc258(0x1de)](_0x5449bf[_0x3cc258(0x1db)],_0x5449bf[_0x3cc258(0x242)]),_0x3de9c6[_0x3cc258(0x25f)]=_[_0x3cc258(0x1de)](_0x5449bf[_0x3cc258(0x1db)],qs[_0x3cc258(0x23a)](_0x47842e['query']['fields'])),_0x3de9c6[_0x3cc258(0x25f)]=_0x3de9c6[_0x3cc258(0x25f)]['length']?_0x3de9c6[_0x3cc258(0x25f)]:_0x5449bf[_0x3cc258(0x1db)],typeof _0x47842e['query']['nolimit']===_0x3cc258(0x2e2)&&(_0x3de9c6[_0x3cc258(0x2ca)]=qs[_0x3cc258(0x2ca)](_0x47842e[_0x3cc258(0x242)][_0x3cc258(0x2ca)]),_0x3de9c6[_0x3cc258(0x1d9)]=qs[_0x3cc258(0x1d9)](_0x47842e[_0x3cc258(0x242)][_0x3cc258(0x1d9)])),_0x3de9c6[_0x3cc258(0x221)]=qs['sort'](_0x47842e[_0x3cc258(0x242)][_0x3cc258(0x1b0)]),_0x3de9c6['where']=qs[_0x3cc258(0x1f5)](_[_0x3cc258(0x2d7)](_0x47842e['query'],_0x5449bf[_0x3cc258(0x1f5)])),_0x3de9c6[_0x3cc258(0x1a5)][_0x3cc258(0x1c8)]=_0x570c94['id'],_0x47842e[_0x3cc258(0x242)][_0x3cc258(0x1ef)]&&(_0x3de9c6[_0x3cc258(0x1a5)]=_['merge'](_0x3de9c6[_0x3cc258(0x1a5)],{[Op['or']]:_[_0x3cc258(0x269)](_0x3de9c6[_0x3cc258(0x25f)],function(_0x55235d){const _0x47a340=_0x3cc258,_0x1d18a4={};return _0x1d18a4[_0x55235d]={[Op[_0x47a340(0x2d1)]]:'%'+_0x47842e[_0x47a340(0x242)][_0x47a340(0x1ef)]+'%'},_0x1d18a4;})})),_0x3de9c6=_['merge']({},_0x3de9c6,_0x47842e[_0x3cc258(0x2a2)]),db[_0x3cc258(0x276)]['count']({'where':_0x3de9c6['where']})[_0x3cc258(0x1a1)](function(_0x58e458){const _0x4f21bc=_0x3cc258;return _0x4ae5b4['count']=_0x58e458,_0x47842e[_0x4f21bc(0x242)][_0x4f21bc(0x1a9)]&&(_0x3de9c6['include']=[{'all':!![]}]),db[_0x4f21bc(0x276)]['findAll'](_0x3de9c6);})[_0x3cc258(0x1a1)](function(_0x110340){const _0x3e1dce=_0x3cc258;return _0x4ae5b4[_0x3e1dce(0x28b)]=_0x110340,_0x4ae5b4;});})['then'](respondWithFilteredResult(_0x19d4b1,_0x3de9c6))[_0x438ca9(0x196)](handleError(_0x19d4b1,null));},exports[a775_0x7cb8f1(0x1cc)]=function(_0x1c8ce7,_0xe8afd4){const _0x2a73da=a775_0x7cb8f1;let _0x24ad92={};const _0x2338b1={};let _0x245991,_0x4592fe;return db[_0x2a73da(0x198)][_0x2a73da(0x295)]({'where':{'id':_0x1c8ce7[_0x2a73da(0x1c6)]['id']}})[_0x2a73da(0x1a1)](handleEntityNotFound(_0xe8afd4,null))[_0x2a73da(0x1a1)](function(_0x3120e2){const _0x5afe8b=_0x2a73da;if(_0x3120e2)return _0x245991=_0x3120e2,_0x2338b1[_0x5afe8b(0x1db)]=_['keys'](db['SmsInteraction']['rawAttributes']),_0x2338b1[_0x5afe8b(0x242)]=_[_0x5afe8b(0x1b6)](_0x1c8ce7[_0x5afe8b(0x242)]),_0x2338b1[_0x5afe8b(0x1f5)]=_[_0x5afe8b(0x1de)](_0x2338b1[_0x5afe8b(0x1db)],_0x2338b1[_0x5afe8b(0x242)]),_0x24ad92[_0x5afe8b(0x25f)]=_[_0x5afe8b(0x1de)](_0x2338b1[_0x5afe8b(0x1db)],qs[_0x5afe8b(0x23a)](_0x1c8ce7[_0x5afe8b(0x242)][_0x5afe8b(0x23a)])),_0x24ad92['attributes']=_0x24ad92[_0x5afe8b(0x25f)]['length']?_0x24ad92[_0x5afe8b(0x25f)]:_0x2338b1[_0x5afe8b(0x1db)],_0x24ad92[_0x5afe8b(0x221)]=qs['sort'](_0x1c8ce7['query'][_0x5afe8b(0x1b0)]),_0x24ad92[_0x5afe8b(0x1a5)]=qs[_0x5afe8b(0x1f5)](_[_0x5afe8b(0x2d7)](_0x1c8ce7[_0x5afe8b(0x242)],_0x2338b1[_0x5afe8b(0x1f5)])),_0x1c8ce7[_0x5afe8b(0x242)]['filter']&&(_0x24ad92['where']=_['merge'](_0x24ad92['where'],{[Op['or']]:_[_0x5afe8b(0x269)](_0x24ad92[_0x5afe8b(0x25f)],function(_0xc1506a){const _0x2ac18b=_0x5afe8b,_0x553b57={};return _0x553b57[_0xc1506a]={[Op['like']]:'%'+_0x1c8ce7['query'][_0x2ac18b(0x1ef)]+'%'},_0x553b57;})})),_0x24ad92=_[_0x5afe8b(0x2d3)]({},_0x24ad92,_0x1c8ce7[_0x5afe8b(0x2a2)]),_0x245991['getSmsInteractions'](_0x24ad92);})[_0x2a73da(0x1a1)](function(_0xbfb3b4){const _0x5adb84=_0x2a73da;if(_0xbfb3b4)return _0x4592fe=_0xbfb3b4[_0x5adb84(0x2e9)],typeof _0x1c8ce7['query']['nolimit']==='undefined'&&(_0x24ad92[_0x5adb84(0x2ca)]=qs[_0x5adb84(0x2ca)](_0x1c8ce7[_0x5adb84(0x242)][_0x5adb84(0x2ca)]),_0x24ad92['offset']=qs[_0x5adb84(0x1d9)](_0x1c8ce7[_0x5adb84(0x242)][_0x5adb84(0x1d9)])),_0x245991[_0x5adb84(0x1cc)](_0x24ad92);})[_0x2a73da(0x1a1)](function(_0x537bbc){if(_0x537bbc)return _0x537bbc?{'count':_0x4592fe,'rows':_0x537bbc}:null;})[_0x2a73da(0x1a1)](respondWithResult(_0xe8afd4,null))['catch'](handleError(_0xe8afd4,null));},exports['getFaxInteractions']=function(_0x1234b5,_0x285e58){const _0x105b20=a775_0x7cb8f1;let _0x24b2d2={};const _0x4b316b={};let _0x2d4169,_0xef30c5;return db['User'][_0x105b20(0x295)]({'where':{'id':_0x1234b5[_0x105b20(0x1c6)]['id']}})[_0x105b20(0x1a1)](handleEntityNotFound(_0x285e58,null))['then'](function(_0x10dbf8){const _0x10d9d4=_0x105b20;if(_0x10dbf8)return _0x2d4169=_0x10dbf8,_0x4b316b[_0x10d9d4(0x1db)]=_[_0x10d9d4(0x1b6)](db[_0x10d9d4(0x250)][_0x10d9d4(0x2a7)]),_0x4b316b[_0x10d9d4(0x242)]=_['keys'](_0x1234b5[_0x10d9d4(0x242)]),_0x4b316b[_0x10d9d4(0x1f5)]=_[_0x10d9d4(0x1de)](_0x4b316b[_0x10d9d4(0x1db)],_0x4b316b[_0x10d9d4(0x242)]),_0x24b2d2[_0x10d9d4(0x25f)]=_['intersection'](_0x4b316b['model'],qs[_0x10d9d4(0x23a)](_0x1234b5[_0x10d9d4(0x242)][_0x10d9d4(0x23a)])),_0x24b2d2['attributes']=_0x24b2d2[_0x10d9d4(0x25f)][_0x10d9d4(0x2e9)]?_0x24b2d2['attributes']:_0x4b316b[_0x10d9d4(0x1db)],_0x24b2d2[_0x10d9d4(0x221)]=qs[_0x10d9d4(0x1b0)](_0x1234b5['query']['sort']),_0x24b2d2[_0x10d9d4(0x1a5)]=qs[_0x10d9d4(0x1f5)](_[_0x10d9d4(0x2d7)](_0x1234b5[_0x10d9d4(0x242)],_0x4b316b['filters'])),_0x1234b5[_0x10d9d4(0x242)][_0x10d9d4(0x1ef)]&&(_0x24b2d2[_0x10d9d4(0x1a5)]=_[_0x10d9d4(0x2d3)](_0x24b2d2[_0x10d9d4(0x1a5)],{[Op['or']]:_[_0x10d9d4(0x269)](_0x24b2d2[_0x10d9d4(0x25f)],function(_0x3a547f){const _0x2c3d6b=_0x10d9d4,_0x1acd43={};return _0x1acd43[_0x3a547f]={[Op['like']]:'%'+_0x1234b5[_0x2c3d6b(0x242)][_0x2c3d6b(0x1ef)]+'%'},_0x1acd43;})})),_0x24b2d2=_[_0x10d9d4(0x2d3)]({},_0x24b2d2,_0x1234b5[_0x10d9d4(0x2a2)]),_0x2d4169[_0x10d9d4(0x2e6)](_0x24b2d2);})[_0x105b20(0x1a1)](function(_0x27a7f8){const _0xb06963=_0x105b20;if(_0x27a7f8)return _0xef30c5=_0x27a7f8['length'],typeof _0x1234b5[_0xb06963(0x242)]['nolimit']===_0xb06963(0x2e2)&&(_0x24b2d2['limit']=qs[_0xb06963(0x2ca)](_0x1234b5[_0xb06963(0x242)][_0xb06963(0x2ca)]),_0x24b2d2['offset']=qs['offset'](_0x1234b5[_0xb06963(0x242)]['offset'])),_0x2d4169[_0xb06963(0x2e6)](_0x24b2d2);})[_0x105b20(0x1a1)](function(_0xb4a333){if(_0xb4a333)return _0xb4a333?{'count':_0xef30c5,'rows':_0xb4a333}:null;})[_0x105b20(0x1a1)](respondWithResult(_0x285e58,null))['catch'](handleError(_0x285e58,null));},exports[a775_0x7cb8f1(0x1eb)]=function(_0x475761,_0x382318){const _0x2fe818=a775_0x7cb8f1;let _0x363c3a={};const _0x528542={};let _0x5934e2,_0x1eb972;return db['User'][_0x2fe818(0x295)]({'where':{'id':_0x475761['params']['id']}})[_0x2fe818(0x1a1)](handleEntityNotFound(_0x382318,null))['then'](function(_0x274131){const _0x5da301=_0x2fe818;if(_0x274131)return _0x5934e2=_0x274131,_0x528542[_0x5da301(0x1db)]=_[_0x5da301(0x1b6)](db[_0x5da301(0x29d)][_0x5da301(0x2a7)]),_0x528542[_0x5da301(0x242)]=_['keys'](_0x475761['query']),_0x528542[_0x5da301(0x1f5)]=_[_0x5da301(0x1de)](_0x528542[_0x5da301(0x1db)],_0x528542[_0x5da301(0x242)]),_0x363c3a[_0x5da301(0x25f)]=_[_0x5da301(0x1de)](_0x528542[_0x5da301(0x1db)],qs['fields'](_0x475761[_0x5da301(0x242)][_0x5da301(0x23a)])),_0x363c3a[_0x5da301(0x25f)]=_0x363c3a[_0x5da301(0x25f)][_0x5da301(0x2e9)]?_0x363c3a[_0x5da301(0x25f)]:_0x528542[_0x5da301(0x1db)],_0x363c3a[_0x5da301(0x221)]=qs[_0x5da301(0x1b0)](_0x475761[_0x5da301(0x242)][_0x5da301(0x1b0)]),_0x363c3a[_0x5da301(0x1a5)]=qs[_0x5da301(0x1f5)](_[_0x5da301(0x2d7)](_0x475761[_0x5da301(0x242)],_0x528542[_0x5da301(0x1f5)])),_0x475761[_0x5da301(0x242)][_0x5da301(0x1ef)]&&(_0x363c3a[_0x5da301(0x1a5)]=_['merge'](_0x363c3a[_0x5da301(0x1a5)],{[Op['or']]:_[_0x5da301(0x269)](_0x363c3a[_0x5da301(0x25f)],function(_0x4e430f){const _0x1954c2=_0x5da301,_0x4c3d6a={};return _0x4c3d6a[_0x4e430f]={[Op['like']]:'%'+_0x475761[_0x1954c2(0x242)][_0x1954c2(0x1ef)]+'%'},_0x4c3d6a;})})),_0x363c3a=_[_0x5da301(0x2d3)]({},_0x363c3a,_0x475761['options']),_0x5934e2[_0x5da301(0x1eb)](_0x363c3a);})[_0x2fe818(0x1a1)](function(_0x572677){const _0x5d7a8d=_0x2fe818;if(_0x572677)return _0x1eb972=_0x572677[_0x5d7a8d(0x2e9)],typeof _0x475761['query'][_0x5d7a8d(0x1ac)]===_0x5d7a8d(0x2e2)&&(_0x363c3a['limit']=qs[_0x5d7a8d(0x2ca)](_0x475761[_0x5d7a8d(0x242)]['limit']),_0x363c3a[_0x5d7a8d(0x1d9)]=qs[_0x5d7a8d(0x1d9)](_0x475761[_0x5d7a8d(0x242)][_0x5d7a8d(0x1d9)])),_0x5934e2[_0x5d7a8d(0x1eb)](_0x363c3a);})[_0x2fe818(0x1a1)](function(_0x5574cd){if(_0x5574cd)return _0x5574cd?{'count':_0x1eb972,'rows':_0x5574cd}:null;})[_0x2fe818(0x1a1)](respondWithResult(_0x382318,null))[_0x2fe818(0x196)](handleError(_0x382318,null));},exports[a775_0x7cb8f1(0x1e1)]=function(_0x7c89,_0x582264,_0x368c43){const _0x4743bd=a775_0x7cb8f1;let _0x14a7e3,_0x12aa3a,_0x191e9c;const _0x34c626=!_[_0x4743bd(0x22f)](_0x7c89['params']['id'])?_0x7c89['params']['id']:!_[_0x4743bd(0x22f)](_0x7c89[_0x4743bd(0x2e5)]['id'])?_0x7c89['user']['id']:null;return db['User'][_0x4743bd(0x295)]({'where':{'id':_0x34c626,'role':{[Op['or']]:[_0x4743bd(0x2f6),_0x4743bd(0x2e5),'agent']}},'attributes':['id',_0x4743bd(0x1e5),_0x4743bd(0x2d5),_0x4743bd(0x2ac),'role',_0x4743bd(0x1ec),'loginInPause']})[_0x4743bd(0x1a1)](function(_0x4212ef){const _0x375bed=_0x4743bd;if(_0x4212ef){if(_0x4212ef['role']===_0x375bed(0x297)){_0x14a7e3=_0x4212ef;if(_0x7c89['body']['interface'])_0x191e9c=util[_0x375bed(0x20d)](_0x375bed(0x2f0),_0x14a7e3[_0x7c89[_0x375bed(0x205)]['interface']]);else _0x7c89[_0x375bed(0x205)][_0x375bed(0x2cf)]?_0x191e9c=util[_0x375bed(0x20d)](_0x375bed(0x2b8),_0x7c89['body'][_0x375bed(0x2cf)]):_0x191e9c=util[_0x375bed(0x20d)](_0x375bed(0x2b8),_0x14a7e3[_0x375bed(0x1e5)]);return socket['to'](util[_0x375bed(0x20d)](_0x375bed(0x27f),_0x14a7e3[_0x375bed(0x1e5)]))[_0x375bed(0x2ba)](_0x375bed(0x271),{'ip':_0x7c89[_0x375bed(0x201)][_0x375bed(0x282)]||_0x7c89[_0x375bed(0x234)][_0x375bed(0x260)]||_0x7c89[_0x375bed(0x1b1)]['remoteAddress']||_0x7c89['connection'][_0x375bed(0x1b1)][_0x375bed(0x260)]}),db['UserVoiceQueueRt'][_0x375bed(0x1e8)]({'where':{'membername':_0x14a7e3[_0x375bed(0x1e5)]},'individualHooks':!![]});}}else throw new ValidationError(_0x375bed(0x22a));})[_0x4743bd(0x1a1)](function(){if(_0x14a7e3)return _0x14a7e3['getVoiceQueues']({'raw':!![]});})['then'](function(_0x369ba3){const _0x2cda56=_0x4743bd;if(_0x14a7e3){if(_0x369ba3){_0x12aa3a=_0x369ba3;if(_0x12aa3a[_0x2cda56(0x2e9)]){const _0x436a9a=_0x12aa3a['map'](_0x490f89=>{const _0x4a1aa7=_0x2cda56,_0x24b0a8={'membername':_0x14a7e3[_0x4a1aa7(0x1e5)],'UserId':_0x14a7e3['id'],'queue_name':_0x490f89['name'],'VoiceQueueId':_0x490f89['id'],'interface':_0x191e9c,'paused':_0x14a7e3[_0x4a1aa7(0x2bf)]||![],'penalty':_0x490f89[_0x4a1aa7(0x237)]||0x0};return db[_0x4a1aa7(0x2ce)]['upsert'](_0x24b0a8);});return Promise['all'](_0x436a9a);}}}})[_0x4743bd(0x1a1)](function(){const _0x3f876b=_0x4743bd;if(_0x14a7e3)return db['MemberReport'][_0x3f876b(0x1b9)]({'where':{'membername':_0x14a7e3['name'],'exitAt':null}});})[_0x4743bd(0x1a1)](function(_0x45a258){const _0x4ea057=_0x4743bd;if(_0x14a7e3){const _0x4c31c4=[];return _0x45a258[_0x4ea057(0x2ae)](function(_0x3a5ebc){const _0x22796d=_0x4ea057;_0x4c31c4[_0x22796d(0x1cf)](_0x3a5ebc[_0x22796d(0x2e7)]({'exitAt':moment()[_0x22796d(0x20d)](_0x22796d(0x21f))}));}),Promise[_0x4ea057(0x24b)](_0x4c31c4);}})['then'](function(){const _0x54c941=_0x4743bd;if(_0x14a7e3){const _0x27f140=[],_0x34ab5d=[],_0x16c728=utils[_0x54c941(0x26b)](),_0x4d8cd6={'membername':_0x14a7e3[_0x54c941(0x1e5)],'interface':_0x191e9c,'enterAt':moment()[_0x54c941(0x20d)](_0x54c941(0x21f)),'role':_0x14a7e3[_0x54c941(0x272)],'internal':_0x14a7e3[_0x54c941(0x1ec)]};return _0x16c728['forEach'](function(_0x598ed7){const _0x2393da=_0x54c941;_0x27f140[_0x2393da(0x1cf)](_[_0x2393da(0x2d3)]({'channel':_0x598ed7,'type':'LOGIN','data1':_0x7c89['body']['device'],'data2':_0x191e9c},_0x4d8cd6)),_0x14a7e3['loginInPause']&&_0x34ab5d[_0x2393da(0x1cf)](_['merge']({'channel':_0x598ed7,'type':_0x2393da(0x1dc),'data1':_0x2393da(0x293)},_0x4d8cd6));}),db[_0x54c941(0x21e)][_0x54c941(0x26f)](_0x27f140[_0x54c941(0x2d0)](_0x34ab5d),{'individualHooks':!![]});}})[_0x4743bd(0x1a1)](function(){const _0x54f915=_0x4743bd;if(_0x14a7e3)return _0x14a7e3[_0x54f915(0x2e7)]({'online':!![],'lastLoginAt':moment()['format'](_0x54f915(0x21f)),'voicePause':_0x14a7e3[_0x54f915(0x2bf)]||![],'mailPause':_0x14a7e3[_0x54f915(0x2bf)]||![],'chatPause':_0x14a7e3[_0x54f915(0x2bf)]||![],'faxPause':_0x14a7e3[_0x54f915(0x2bf)]||![],'smsPause':_0x14a7e3['loginInPause']||![],'openchannelPause':_0x14a7e3[_0x54f915(0x2bf)]||![],'whatsappPause':_0x14a7e3['loginInPause']||![],'pauseType':_0x14a7e3[_0x54f915(0x2bf)]?_0x54f915(0x293):null,'interface':_0x191e9c,'lastPauseAt':moment()[_0x54f915(0x20d)](_0x54f915(0x21f))});})[_0x4743bd(0x1a1)](function(_0x4faa1f){const _0x1d4b9b=_0x4743bd;return _0x7c89[_0x1d4b9b(0x1af)]?_0x368c43():Promise[_0x1d4b9b(0x1f9)](_0x4faa1f)[_0x1d4b9b(0x1a1)](respondWithResult(_0x582264,null));})[_0x4743bd(0x196)](handleError(_0x582264,null));},exports[a775_0x7cb8f1(0x2c6)]=function(_0x2e84f8,_0x585691){const _0x1cfe6b=a775_0x7cb8f1;let _0x270b4c;return db['User']['findOne']({'where':{'id':_0x2e84f8[_0x1cfe6b(0x1c6)]['id'],'role':_0x1cfe6b(0x297)},'attributes':['id',_0x1cfe6b(0x1e5),_0x1cfe6b(0x272)]})[_0x1cfe6b(0x1a1)](handleEntityNotFound(_0x585691,null))['then'](function(_0x559ffa){const _0xeb365=_0x1cfe6b;if(_0x559ffa)return _0x270b4c=_0x559ffa,db[_0xeb365(0x2ce)]['destroy']({'where':{'membername':_0x270b4c[_0xeb365(0x1e5)]},'individualHooks':!![]});})[_0x1cfe6b(0x1a1)](function(){const _0x560fb4=_0x1cfe6b;return db[_0x560fb4(0x21e)][_0x560fb4(0x1b9)]({'where':{'membername':_0x270b4c[_0x560fb4(0x1e5)],'exitAt':null}});})[_0x1cfe6b(0x1a1)](function(_0x214f50){const _0x1af0ed=_0x1cfe6b,_0x216e4c=[];return _0x214f50[_0x1af0ed(0x2ae)](function(_0x540570){const _0x51ed7e=_0x1af0ed;_0x216e4c['push'](_0x540570[_0x51ed7e(0x2e7)]({'exitAt':moment()['format'](_0x51ed7e(0x21f))}));}),Promise['all'](_0x216e4c);})[_0x1cfe6b(0x1a1)](function(){return _0x270b4c['update']({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![],'whatsappPause':![],'interface':null});})['then'](respondWithResult(_0x585691,null))[_0x1cfe6b(0x196)](handleError(_0x585691,null));},exports[a775_0x7cb8f1(0x29a)]=function(_0x141962,_0x3e7848){const _0x111744=a775_0x7cb8f1;let _0x43a79a;return db[_0x111744(0x2ce)]['update']({'paused':0x1},{'where':{'UserId':_0x141962['params']['id']},'individualHooks':!![]})[_0x111744(0x1a1)](function(){const _0x47509d=_0x111744;return db['User'][_0x47509d(0x295)]({'where':{'id':_0x141962[_0x47509d(0x1c6)]['id'],'role':_0x47509d(0x297)},'attributes':['id','name',_0x47509d(0x272),_0x47509d(0x1ec),_0x47509d(0x279)]});})[_0x111744(0x1a1)](handleEntityNotFound(_0x3e7848,null))[_0x111744(0x1a1)](function(_0x110136){const _0x5b1e50=_0x111744;if(_0x110136)return _0x43a79a=_0x110136,respondWithRpcPromise(_0x5b1e50(0x1fd),_0x5b1e50(0x29a),{'id':_0x43a79a['id'],'name':_0x43a79a[_0x5b1e50(0x1e5)],'pause':!![]});})[_0x111744(0x1a1)](function(){const _0xa01013=_0x111744;if(_0x43a79a)return db[_0xa01013(0x21e)][_0xa01013(0x1b9)]({'where':{'membername':_0x43a79a[_0xa01013(0x1e5)],'type':_0xa01013(0x1dc),'exitAt':null}});})[_0x111744(0x1a1)](function(_0x1714e6){const _0x152483=_0x111744;if(_0x1714e6[_0x152483(0x2e9)]){const _0x5734e5=moment()[_0x152483(0x20d)](_0x152483(0x21f));for(let _0x1f85db=0x0,_0x4cf948=_0x1714e6['length'];_0x1f85db<_0x4cf948;_0x1f85db++){_0x1714e6[_0x1f85db][_0x152483(0x2e7)]({'exitAt':_0x5734e5});}}})['then'](function(){const _0x16568f=_0x111744,_0x2d4238=[],_0x35c3cd=utils[_0x16568f(0x26b)]();return _0x35c3cd[_0x16568f(0x2ae)](function(_0x194749){const _0x38b8a8=_0x16568f;_0x2d4238['push']({'channel':_0x194749,'membername':_0x43a79a[_0x38b8a8(0x1e5)],'interface':_[_0x38b8a8(0x22f)](_0x43a79a[_0x38b8a8(0x279)])?util[_0x38b8a8(0x20d)](_0x38b8a8(0x2b8),_0x43a79a[_0x38b8a8(0x1e5)]):_0x43a79a['interface'],'type':'PAUSE','enterAt':moment()[_0x38b8a8(0x20d)]('YYYY-MM-DD\x20HH:mm:ss'),'data1':_0x141962[_0x38b8a8(0x205)][_0x38b8a8(0x289)]||_0x38b8a8(0x2cb),'role':_0x43a79a[_0x38b8a8(0x272)],'internal':_0x43a79a[_0x38b8a8(0x1ec)]});}),db[_0x16568f(0x21e)][_0x16568f(0x26f)](_0x2d4238,{'individualHooks':!![]});})[_0x111744(0x1a1)](function(){const _0x26ad0a=_0x111744;return _0x43a79a[_0x26ad0a(0x2e7)]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'whatsappPause':!![],'openchannelPause':!![],'pauseType':_0x141962[_0x26ad0a(0x205)]['type']||_0x26ad0a(0x2cb),'lastPauseAt':moment()[_0x26ad0a(0x20d)](_0x26ad0a(0x21f))});})['then'](respondWithResult(_0x3e7848,null))[_0x111744(0x196)](handleError(_0x3e7848,null));},exports[a775_0x7cb8f1(0x274)]=function(_0x5ab9b4,_0x3882c8){const _0x273e21=a775_0x7cb8f1;let _0x2cd1f9;return db[_0x273e21(0x198)][_0x273e21(0x295)]({'where':{'id':_0x5ab9b4[_0x273e21(0x1c6)]['id']},'attributes':['id','name',_0x273e21(0x272),'voicePause','mailPause',_0x273e21(0x28c),_0x273e21(0x232),_0x273e21(0x2a5),_0x273e21(0x2e8),_0x273e21(0x1e7),_0x273e21(0x277),'lastPauseAt']})[_0x273e21(0x1a1)](handleEntityNotFound(_0x3882c8,null))[_0x273e21(0x1a1)](function(_0x3f8490){const _0xa924ae=_0x273e21;if(_0x3f8490){_0x2cd1f9=_0x3f8490;if(_0x5ab9b4[_0xa924ae(0x205)][_0xa924ae(0x2c9)]&&!utils[_0xa924ae(0x1f7)](_0x5ab9b4[_0xa924ae(0x205)][_0xa924ae(0x2c9)]))throw new ValidationError(_0xa924ae(0x2b9));switch(_0x5ab9b4[_0xa924ae(0x205)][_0xa924ae(0x2c9)]){case _0xa924ae(0x1b4):return respondWithRpcPromise(_0xa924ae(0x1fd),_0xa924ae(0x274),{'id':_0x2cd1f9['id'],'name':_0x2cd1f9[_0xa924ae(0x1e5)],'pause':![]})[_0xa924ae(0x1a1)](function(){return db['UserVoiceQueueRt']['update']({'paused':0x0},{'where':{'UserId':_0x2cd1f9['id']},'individualHooks':!![]});})[_0xa924ae(0x1a1)](function(){const _0x1ce6e6=_0xa924ae;return db[_0x1ce6e6(0x21e)][_0x1ce6e6(0x295)]({'where':{'channel':_0x5ab9b4[_0x1ce6e6(0x205)][_0x1ce6e6(0x2c9)],'membername':_0x2cd1f9[_0x1ce6e6(0x1e5)],'type':_0x1ce6e6(0x1dc),'exitAt':null}});})[_0xa924ae(0x1a1)](function(_0x14b80a){const _0x1c6deb=_0xa924ae;if(_0x14b80a)return _0x14b80a[_0x1c6deb(0x2e7)]({'exitAt':moment()['format'](_0x1c6deb(0x21f)),'data2':_0x1c6deb(0x264)},{'individualHooks':!![]});return null;})['then'](function(){const _0x35e0c6=_0xa924ae;return _0x2cd1f9[_0x35e0c6(0x2e7)]({'voicePause':![]});});case'mail':case _0xa924ae(0x223):case _0xa924ae(0x2d4):case _0xa924ae(0x26c):case _0xa924ae(0x222):case _0xa924ae(0x2ec):return db[_0xa924ae(0x21e)][_0xa924ae(0x295)]({'where':{'channel':_0x5ab9b4[_0xa924ae(0x205)][_0xa924ae(0x2c9)],'membername':_0x2cd1f9[_0xa924ae(0x1e5)],'type':_0xa924ae(0x1dc),'exitAt':null}})[_0xa924ae(0x1a1)](function(_0x44c9f9){const _0x559636=_0xa924ae;if(_0x44c9f9)return _0x44c9f9[_0x559636(0x2e7)]({'exitAt':moment()['format'](_0x559636(0x21f)),'data2':_0x559636(0x264)},{'individualHooks':!![]});return null;})[_0xa924ae(0x1a1)](function(){const _0x381f73=_0xa924ae,_0xd6ff80={};return _[_0x381f73(0x1fa)](_0xd6ff80,util['format'](_0x381f73(0x263),_0x5ab9b4[_0x381f73(0x205)][_0x381f73(0x2c9)],_0x381f73(0x25b)),![]),_0x2cd1f9['update'](_0xd6ff80);});default:return respondWithRpcPromise(_0xa924ae(0x1fd),_0xa924ae(0x274),{'id':_0x2cd1f9['id'],'name':_0x2cd1f9[_0xa924ae(0x1e5)],'pause':![]})[_0xa924ae(0x1a1)](function(){return db['UserVoiceQueueRt']['update']({'paused':0x0},{'where':{'UserId':_0x2cd1f9['id']}});})[_0xa924ae(0x1a1)](function(){const _0x37a134=_0xa924ae;return db[_0x37a134(0x21e)][_0x37a134(0x1b9)]({'where':{'membername':_0x2cd1f9['name'],'type':_0x37a134(0x1dc),'exitAt':null}});})[_0xa924ae(0x1a1)](function(_0x346d19){const _0x1dac6f=[];return _0x346d19['forEach'](function(_0x3362b8){const _0x5e5af3=a775_0x4d88;_0x1dac6f[_0x5e5af3(0x1cf)](_0x3362b8['update']({'exitAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'data2':_0x5e5af3(0x264)}));}),Promise['all'](_0x1dac6f);})[_0xa924ae(0x1a1)](function(){const _0x5991be=_0xa924ae;return _0x2cd1f9[_0x5991be(0x2e7)]({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'whatsappPause':![],'openchannelPause':![]});});}}})[_0x273e21(0x1a1)](respondWithResult(_0x3882c8,null))[_0x273e21(0x196)](handleError(_0x3882c8,null));},exports['getTeams']=function(_0x27c03d,_0x247fec){const _0x1734d7=a775_0x7cb8f1;let _0x49461f={};const _0x34a9d1={};let _0x1bbaf3,_0x805586;return db['User'][_0x1734d7(0x295)]({'where':{'id':_0x27c03d['params']['id']}})[_0x1734d7(0x1a1)](handleEntityNotFound(_0x247fec,null))[_0x1734d7(0x1a1)](function(_0x1c921b){const _0x3e54a0=_0x1734d7;if(_0x1c921b)return _0x1bbaf3=_0x1c921b,_0x34a9d1[_0x3e54a0(0x1db)]=_[_0x3e54a0(0x1b6)](db['Team'][_0x3e54a0(0x2a7)]),_0x34a9d1[_0x3e54a0(0x242)]=_[_0x3e54a0(0x1b6)](_0x27c03d['query']),_0x34a9d1[_0x3e54a0(0x1f5)]=_[_0x3e54a0(0x1de)](_0x34a9d1[_0x3e54a0(0x1db)],_0x34a9d1['query']),_0x49461f[_0x3e54a0(0x25f)]=_[_0x3e54a0(0x1de)](_0x34a9d1[_0x3e54a0(0x1db)],qs['fields'](_0x27c03d[_0x3e54a0(0x242)][_0x3e54a0(0x23a)])),_0x49461f[_0x3e54a0(0x25f)]=_0x49461f['attributes'][_0x3e54a0(0x2e9)]?_0x49461f[_0x3e54a0(0x25f)]:_0x34a9d1['model'],_0x49461f['order']=qs[_0x3e54a0(0x1b0)](_0x27c03d[_0x3e54a0(0x242)][_0x3e54a0(0x1b0)]),_0x49461f[_0x3e54a0(0x1a5)]=qs[_0x3e54a0(0x1f5)](_[_0x3e54a0(0x2d7)](_0x27c03d['query'],_0x34a9d1[_0x3e54a0(0x1f5)])),_0x27c03d[_0x3e54a0(0x242)][_0x3e54a0(0x1ef)]&&(_0x49461f[_0x3e54a0(0x1a5)]=_[_0x3e54a0(0x2d3)](_0x49461f['where'],{[Op['or']]:_[_0x3e54a0(0x269)](_0x49461f[_0x3e54a0(0x25f)],function(_0x54df20){const _0x2dd9bb=_0x3e54a0,_0x87de9a={};return _0x87de9a[_0x54df20]={[Op[_0x2dd9bb(0x2d1)]]:'%'+_0x27c03d[_0x2dd9bb(0x242)][_0x2dd9bb(0x1ef)]+'%'},_0x87de9a;})})),_0x49461f=_['merge']({},_0x49461f,_0x27c03d[_0x3e54a0(0x2a2)]),_0x1bbaf3[_0x3e54a0(0x1ff)](_0x49461f);})[_0x1734d7(0x1a1)](function(_0x4bc14d){const _0x3c43eb=_0x1734d7;if(_0x4bc14d)return _0x805586=_0x4bc14d[_0x3c43eb(0x2e9)],typeof _0x27c03d[_0x3c43eb(0x242)][_0x3c43eb(0x1ac)]===_0x3c43eb(0x2e2)&&(_0x49461f[_0x3c43eb(0x2ca)]=qs[_0x3c43eb(0x2ca)](_0x27c03d[_0x3c43eb(0x242)][_0x3c43eb(0x2ca)]),_0x49461f[_0x3c43eb(0x1d9)]=qs[_0x3c43eb(0x1d9)](_0x27c03d[_0x3c43eb(0x242)][_0x3c43eb(0x1d9)])),_0x1bbaf3[_0x3c43eb(0x1ff)](_0x49461f);})[_0x1734d7(0x1a1)](function(_0x2b671c){if(_0x2b671c)return _0x2b671c?{'count':_0x805586,'rows':_0x2b671c}:null;})[_0x1734d7(0x1a1)](respondWithResult(_0x247fec,null))[_0x1734d7(0x196)](handleError(_0x247fec,null));},exports[a775_0x7cb8f1(0x1f8)]=function(_0x2ba9c7,_0x1ba5d4){const _0x512675=a775_0x7cb8f1;return db[_0x512675(0x198)][_0x512675(0x295)]({'where':{'id':_0x2ba9c7[_0x512675(0x1c6)]['id']}})[_0x512675(0x1a1)](handleEntityNotFound(_0x1ba5d4,null))['then'](function(_0x5f59a9){const _0x355adb=_0x512675;if(_0x5f59a9){const _0x36dc1e=_0x5f59a9[_0x355adb(0x257)]({'plain':!![]});return _0x5f59a9['addTeams'](_0x2ba9c7['body'][_0x355adb(0x1a7)],_[_0x355adb(0x19b)](_0x2ba9c7['body'],[_0x355adb(0x1a7),'id'])||{})[_0x355adb(0x1a1)](function(){const _0x4fa288=_0x355adb;for(let _0x57a3a1=0x0;_0x57a3a1<_0x2ba9c7[_0x4fa288(0x205)][_0x4fa288(0x1a7)][_0x4fa288(0x2e9)];_0x57a3a1++){let _0x353816=[];db[_0x4fa288(0x2dd)][_0x4fa288(0x295)]({'where':{'id':_0x2ba9c7[_0x4fa288(0x205)]['ids'][_0x57a3a1]}})['then'](function(_0x419051){const _0x3947ac=_0x4fa288;return _0x353816[_0x3947ac(0x1cf)](_0x419051['getVoiceQueues']()[_0x3947ac(0x1a1)](function(_0x43be24){const _0x493053=_0x3947ac;for(let _0x1ddb32=0x0;_0x1ddb32<_0x43be24['length'];_0x1ddb32++){_0x43be24[_0x1ddb32][_0x493053(0x292)](_0x493053(0x2c9),_0x493053(0x1fb));}return _0x43be24;})),_0x353816[_0x3947ac(0x1cf)](_0x419051[_0x3947ac(0x216)]()[_0x3947ac(0x1a1)](function(_0x40620f){const _0x7fedc7=_0x3947ac;for(let _0x16fc35=0x0;_0x16fc35<_0x40620f[_0x7fedc7(0x2e9)];_0x16fc35++){_0x40620f[_0x16fc35]['setDataValue'](_0x7fedc7(0x2c9),_0x7fedc7(0x1f6));}return _0x40620f;})),_0x353816['push'](_0x419051['getMailQueues']()[_0x3947ac(0x1a1)](function(_0x33d1e4){const _0x2da55f=_0x3947ac;for(let _0x3547f5=0x0;_0x3547f5<_0x33d1e4['length'];_0x3547f5++){_0x33d1e4[_0x3547f5][_0x2da55f(0x292)]('channel','Mail');}return _0x33d1e4;})),_0x353816[_0x3947ac(0x1cf)](_0x419051['getSmsQueues']()[_0x3947ac(0x1a1)](function(_0xecd94d){const _0x10a3e7=_0x3947ac;for(let _0x417746=0x0;_0x417746<_0xecd94d['length'];_0x417746++){_0xecd94d[_0x417746][_0x10a3e7(0x292)]('channel',_0x10a3e7(0x1b7));}return _0xecd94d;})),_0x353816['push'](_0x419051[_0x3947ac(0x24f)]()[_0x3947ac(0x1a1)](function(_0x459e13){const _0x9ee714=_0x3947ac;for(let _0x18f814=0x0;_0x18f814<_0x459e13[_0x9ee714(0x2e9)];_0x18f814++){_0x459e13[_0x18f814]['setDataValue'](_0x9ee714(0x2c9),_0x9ee714(0x224));}return _0x459e13;})),_0x353816[_0x3947ac(0x1cf)](_0x419051[_0x3947ac(0x21b)]()[_0x3947ac(0x1a1)](function(_0x11ca54){const _0x802e2b=_0x3947ac;for(let _0x43cce0=0x0;_0x43cce0<_0x11ca54['length'];_0x43cce0++){_0x11ca54[_0x43cce0]['setDataValue'](_0x802e2b(0x2c9),_0x802e2b(0x20c));}return _0x11ca54;})),_0x353816['push'](_0x419051[_0x3947ac(0x283)]()['then'](function(_0x4663f8){const _0x159b95=_0x3947ac;for(let _0x186f3a=0x0;_0x186f3a<_0x4663f8[_0x159b95(0x2e9)];_0x186f3a++){_0x4663f8[_0x186f3a]['setDataValue'](_0x159b95(0x2c9),'Openchannel');}return _0x4663f8;})),Promise[_0x3947ac(0x24b)](_0x353816);})[_0x4fa288(0x1a1)](function(_0x2813f5){const _0x4faf12=_0x4fa288,_0x45b378=_['flatten'](_0x2813f5);return _0x353816=[],db[_0x4faf12(0x2c0)][_0x4faf12(0x2b1)](function(_0x104aa2){const _0x1ffa55=_0x4faf12;for(let _0x5db02a=0x0;_0x5db02a<_0x45b378[_0x1ffa55(0x2e9)];_0x5db02a++){_0x353816['push'](_0x45b378[_0x5db02a][_0x1ffa55(0x218)](_0x36dc1e['id']),{'transaction':_0x104aa2});}return Promise[_0x1ffa55(0x24b)](_0x353816)['then'](function(){const _0x53ac2d=_0x1ffa55;if(!_0x36dc1e[_0x53ac2d(0x19a)])return;const _0x4b0071=_[_0x53ac2d(0x1ef)](_0x45b378,function(_0x590545){const _0x53da95=_0x53ac2d;return _0x590545[_0x53da95(0x2f4)](_0x53da95(0x2c9))===_0x53da95(0x1fb);});return Promise[_0x53ac2d(0x24b)](_0x4b0071[_0x53ac2d(0x269)](_0x28616b=>{const _0x2ad6a9=_0x53ac2d;return db['UserVoiceQueueRt'][_0x2ad6a9(0x1d4)]({'membername':_0x36dc1e['name'],'UserId':_0x36dc1e['id'],'queue_name':_0x28616b[_0x2ad6a9(0x1e5)],'VoiceQueueId':_0x28616b['id'],'interface':_['isNil'](_0x36dc1e[_0x2ad6a9(0x279)])?util[_0x2ad6a9(0x20d)](_0x2ad6a9(0x2b8),_0x36dc1e[_0x2ad6a9(0x1e5)]):_0x36dc1e['interface'],'paused':_0x36dc1e[_0x2ad6a9(0x27c)]||![],'penalty':_0x36dc1e[_0x2ad6a9(0x1b5)]},{'transaction':_0x104aa2});}));})['then'](function(){const _0x2e465f=_0x1ffa55;for(let _0x1fff6a=0x0;_0x1fff6a<_0x45b378['length'];_0x1fff6a++){const _0x4da3a3=_0x45b378[_0x1fff6a][_0x2e465f(0x2f4)](_0x2e465f(0x2c9)),_0x25660c=_0x4da3a3+_0x2e465f(0x1ba);socket['emit']('user'+_0x4da3a3+_0x2e465f(0x291),{'UserId':_0x36dc1e['id'],[_0x25660c]:_0x45b378[_0x1fff6a]['id']});}});});});}});}})[_0x512675(0x1a1)](respondWithStatusCode(_0x1ba5d4,null))[_0x512675(0x196)](handleError(_0x1ba5d4,null));},exports[a775_0x7cb8f1(0x296)]=function(_0x2d8f6c,_0x13a8a7){const _0x20325a=a775_0x7cb8f1;return db[_0x20325a(0x198)][_0x20325a(0x295)]({'where':{'id':_0x2d8f6c[_0x20325a(0x1c6)]['id']}})[_0x20325a(0x1a1)](handleEntityNotFound(_0x13a8a7,null))['then'](function(_0x3e4bee){const _0x52e155=_0x20325a;if(_0x3e4bee){const _0xe09f77=_0x3e4bee[_0x52e155(0x257)]({'plain':!![]}),_0x18bc37=_0x2d8f6c[_0x52e155(0x242)][_0x52e155(0x1a7)];return _0x3e4bee[_0x52e155(0x296)](_0x18bc37)[_0x52e155(0x1a1)](function(){const _0x14c6d0=_0x52e155;for(let _0x7e56ec=0x0;_0x7e56ec<_0x18bc37[_0x14c6d0(0x2e9)];_0x7e56ec++){let _0x519fd3=[];db[_0x14c6d0(0x2dd)]['findOne']({'where':{'id':_0x18bc37[_0x7e56ec]}})[_0x14c6d0(0x1a1)](function(_0x30cb52){const _0x2fb040=_0x14c6d0;return _0x519fd3[_0x2fb040(0x1cf)](_0x30cb52['getVoiceQueues']()[_0x2fb040(0x1a1)](function(_0x1541e7){const _0x37bc23=_0x2fb040;for(let _0x23151b=0x0;_0x23151b<_0x1541e7[_0x37bc23(0x2e9)];_0x23151b++){_0x1541e7[_0x23151b][_0x37bc23(0x292)]('channel',_0x37bc23(0x1fb));}return _0x1541e7;})),_0x519fd3[_0x2fb040(0x1cf)](_0x30cb52[_0x2fb040(0x216)]()[_0x2fb040(0x1a1)](function(_0xbeb9c8){const _0x483426=_0x2fb040;for(let _0x5e8446=0x0;_0x5e8446<_0xbeb9c8[_0x483426(0x2e9)];_0x5e8446++){_0xbeb9c8[_0x5e8446]['setDataValue'](_0x483426(0x2c9),_0x483426(0x1f6));}return _0xbeb9c8;})),_0x519fd3[_0x2fb040(0x1cf)](_0x30cb52['getMailQueues']()[_0x2fb040(0x1a1)](function(_0x479a37){const _0xf74bc5=_0x2fb040;for(let _0x4aa5b1=0x0;_0x4aa5b1<_0x479a37['length'];_0x4aa5b1++){_0x479a37[_0x4aa5b1]['setDataValue'](_0xf74bc5(0x2c9),'Mail');}return _0x479a37;})),_0x519fd3[_0x2fb040(0x1cf)](_0x30cb52[_0x2fb040(0x2c7)]()['then'](function(_0x5c0de8){const _0x18faa1=_0x2fb040;for(let _0x8d6fed=0x0;_0x8d6fed<_0x5c0de8['length'];_0x8d6fed++){_0x5c0de8[_0x8d6fed][_0x18faa1(0x292)]('channel',_0x18faa1(0x1b7));}return _0x5c0de8;})),_0x519fd3['push'](_0x30cb52['getWhatsappQueues']()[_0x2fb040(0x1a1)](function(_0x4ffaea){const _0x484e69=_0x2fb040;for(let _0xc08c45=0x0;_0xc08c45<_0x4ffaea[_0x484e69(0x2e9)];_0xc08c45++){_0x4ffaea[_0xc08c45][_0x484e69(0x292)](_0x484e69(0x2c9),_0x484e69(0x224));}return _0x4ffaea;})),_0x519fd3[_0x2fb040(0x1cf)](_0x30cb52[_0x2fb040(0x21b)]()['then'](function(_0x552b88){const _0x192946=_0x2fb040;for(let _0x15c25e=0x0;_0x15c25e<_0x552b88[_0x192946(0x2e9)];_0x15c25e++){_0x552b88[_0x15c25e]['setDataValue'](_0x192946(0x2c9),'Fax');}return _0x552b88;})),_0x519fd3[_0x2fb040(0x1cf)](_0x30cb52[_0x2fb040(0x283)]()[_0x2fb040(0x1a1)](function(_0x3b270c){const _0x34d2d8=_0x2fb040;for(let _0x4edf4c=0x0;_0x4edf4c<_0x3b270c[_0x34d2d8(0x2e9)];_0x4edf4c++){_0x3b270c[_0x4edf4c][_0x34d2d8(0x292)]('channel',_0x34d2d8(0x20f));}return _0x3b270c;})),Promise[_0x2fb040(0x24b)](_0x519fd3);})[_0x14c6d0(0x1a1)](function(_0x37d26a){const _0x47d0c0=_0x14c6d0,_0xeb82fe=_['flatten'](_0x37d26a);return _0x519fd3=[],db['sequelize'][_0x47d0c0(0x2b1)](function(_0xa0fe5e){const _0x5e14ba=_0x47d0c0;for(let _0x228c4a=0x0;_0x228c4a<_0xeb82fe[_0x5e14ba(0x2e9)];_0x228c4a++){_0x519fd3[_0x5e14ba(0x1cf)](_0xeb82fe[_0x228c4a][_0x5e14ba(0x252)](_0xe09f77['id']),{'transaction':_0xa0fe5e});}return Promise['all'](_0x519fd3)[_0x5e14ba(0x1a1)](function(){const _0x2ce2ad=_0x5e14ba;if(!_0xe09f77[_0x2ce2ad(0x19a)])return;const _0x577c42=_[_0x2ce2ad(0x1ef)](_0xeb82fe,function(_0x54ea0a){const _0x24c12e=_0x2ce2ad;return _0x54ea0a[_0x24c12e(0x2f4)](_0x24c12e(0x2c9))===_0x24c12e(0x1fb);});return Promise[_0x2ce2ad(0x24b)](_0x577c42[_0x2ce2ad(0x269)](_0x4aa543=>{const _0x3a0237=_0x2ce2ad;return db['UserVoiceQueueRt'][_0x3a0237(0x1e8)]({'where':{'VoiceQueueId':_0x4aa543['id'],'UserId':_0xe09f77['id']},'transaction':_0xa0fe5e});}));})['then'](function(){const _0x191601=_0x5e14ba;for(let _0x5910dd=0x0;_0x5910dd<_0xeb82fe[_0x191601(0x2e9)];_0x5910dd++){const _0x375a4f=_0xeb82fe[_0x5910dd][_0x191601(0x2f4)]('channel'),_0x533356=_0x375a4f+'QueueId';socket[_0x191601(0x2ba)]('user'+_0x375a4f+'Queue:remove',{'UserId':_0xe09f77['id'],[_0x533356]:_0xeb82fe[_0x5910dd]['id']});}});});});}});}})[_0x20325a(0x1a1)](respondWithStatusCode(_0x13a8a7,null))[_0x20325a(0x196)](handleError(_0x13a8a7,null));},exports['getLists']=function(_0x1e525a,_0x151a64){const _0x44a504=a775_0x7cb8f1;let _0x5d67cc={};const _0x5984a6={};let _0x7efcf1,_0x5250ab;return db['User'][_0x44a504(0x295)]({'where':{'id':_0x1e525a[_0x44a504(0x1c6)]['id']}})[_0x44a504(0x1a1)](handleEntityNotFound(_0x151a64,null))['then'](function(_0x4b439a){const _0x3923d1=_0x44a504;if(_0x4b439a)return _0x7efcf1=_0x4b439a,_0x5984a6[_0x3923d1(0x1db)]=_[_0x3923d1(0x1b6)](db['CmList'][_0x3923d1(0x2a7)]),_0x5984a6[_0x3923d1(0x242)]=_['keys'](_0x1e525a[_0x3923d1(0x242)]),_0x5984a6['filters']=_[_0x3923d1(0x1de)](_0x5984a6[_0x3923d1(0x1db)],_0x5984a6[_0x3923d1(0x242)]),_0x5d67cc['attributes']=_[_0x3923d1(0x1de)](_0x5984a6[_0x3923d1(0x1db)],qs['fields'](_0x1e525a['query']['fields'])),_0x5d67cc[_0x3923d1(0x25f)]=_0x5d67cc[_0x3923d1(0x25f)][_0x3923d1(0x2e9)]?_0x5d67cc[_0x3923d1(0x25f)]:_0x5984a6[_0x3923d1(0x1db)],_0x5d67cc[_0x3923d1(0x221)]=qs[_0x3923d1(0x1b0)](_0x1e525a[_0x3923d1(0x242)][_0x3923d1(0x1b0)]),_0x5d67cc[_0x3923d1(0x1a5)]=qs[_0x3923d1(0x1f5)](_[_0x3923d1(0x2d7)](_0x1e525a[_0x3923d1(0x242)],_0x5984a6[_0x3923d1(0x1f5)])),_0x1e525a[_0x3923d1(0x242)]['filter']&&(_0x5d67cc['where']=_[_0x3923d1(0x2d3)](_0x5d67cc[_0x3923d1(0x1a5)],{[Op['or']]:_[_0x3923d1(0x269)](_0x5d67cc[_0x3923d1(0x25f)],function(_0x1e6f00){const _0x4e3212=_0x3923d1,_0x5e4303={};return _0x5e4303[_0x1e6f00]={[Op[_0x4e3212(0x2d1)]]:'%'+_0x1e525a[_0x4e3212(0x242)][_0x4e3212(0x1ef)]+'%'},_0x5e4303;})})),_0x5d67cc=_['merge']({},_0x5d67cc,_0x1e525a[_0x3923d1(0x2a2)]),_0x7efcf1[_0x3923d1(0x1ee)](_0x5d67cc);})[_0x44a504(0x1a1)](function(_0x2122e1){const _0x49e63e=_0x44a504;if(_0x2122e1)return _0x5250ab=_0x2122e1['length'],typeof _0x1e525a[_0x49e63e(0x242)][_0x49e63e(0x1ac)]===_0x49e63e(0x2e2)&&(_0x5d67cc[_0x49e63e(0x2ca)]=qs['limit'](_0x1e525a['query']['limit']),_0x5d67cc[_0x49e63e(0x1d9)]=qs[_0x49e63e(0x1d9)](_0x1e525a[_0x49e63e(0x242)]['offset'])),_0x7efcf1[_0x49e63e(0x1ee)](_0x5d67cc);})['then'](function(_0x117f6c){if(_0x117f6c)return _0x117f6c?{'count':_0x5250ab,'rows':_0x117f6c}:null;})[_0x44a504(0x1a1)](respondWithResult(_0x151a64,null))[_0x44a504(0x196)](handleError(_0x151a64,null));},exports[a775_0x7cb8f1(0x19e)]=function(_0x1aac10,_0xee80da){const _0x226c5c=a775_0x7cb8f1;let _0x1c3896={};const _0x5a23ad={};let _0x102c27;return db[_0x226c5c(0x198)][_0x226c5c(0x295)]({'where':{'id':_0x1aac10['params']['id']}})[_0x226c5c(0x1a1)](handleEntityNotFound(_0xee80da,null))[_0x226c5c(0x1a1)](function(_0x21e327){const _0x4c3fb1=_0x226c5c;if(_0x21e327)return _0x102c27=_0x21e327,_0x5a23ad[_0x4c3fb1(0x1db)]=_['keys'](db[_0x4c3fb1(0x198)][_0x4c3fb1(0x2a7)]),_0x5a23ad[_0x4c3fb1(0x242)]=_[_0x4c3fb1(0x1b6)](_0x1aac10['query']),_0x5a23ad['filters']=_[_0x4c3fb1(0x1de)](_0x5a23ad[_0x4c3fb1(0x1db)],_0x5a23ad[_0x4c3fb1(0x242)]),_0x1c3896[_0x4c3fb1(0x25f)]=_[_0x4c3fb1(0x1de)](_0x5a23ad[_0x4c3fb1(0x1db)],qs['fields'](_0x1aac10['query']['fields'])),_0x1c3896[_0x4c3fb1(0x25f)]=_0x1c3896[_0x4c3fb1(0x25f)][_0x4c3fb1(0x2e9)]?_0x1c3896[_0x4c3fb1(0x25f)]:_0x5a23ad['model'],_0x1c3896[_0x4c3fb1(0x221)]=qs[_0x4c3fb1(0x1b0)](_0x1aac10['query'][_0x4c3fb1(0x1b0)]),_0x1c3896['where']=qs[_0x4c3fb1(0x1f5)](_[_0x4c3fb1(0x2d7)](_0x1aac10['query'],_0x5a23ad[_0x4c3fb1(0x1f5)])),_0x1aac10['query'][_0x4c3fb1(0x1ef)]&&(_0x1c3896[_0x4c3fb1(0x1a5)]=_[_0x4c3fb1(0x2d3)](_0x1c3896['where'],{[Op['or']]:_['map'](_0x1c3896[_0x4c3fb1(0x25f)],function(_0x20cff1){const _0x393a2b=_0x4c3fb1,_0x523123={};return _0x523123[_0x20cff1]={[Op['like']]:'%'+_0x1aac10[_0x393a2b(0x242)]['filter']+'%'},_0x523123;})})),_0x1c3896[_0x4c3fb1(0x1db)]=db['User'],_0x1c3896['as']=_0x4c3fb1(0x1da),_0x1c3896=_[_0x4c3fb1(0x2d3)]({},_0x1c3896,_0x1aac10[_0x4c3fb1(0x2a2)]),_0x102c27[_0x4c3fb1(0x24e)]({'include':[_0x1c3896]});})['then'](function(_0x2cf1e9){const _0x479c53=_0x226c5c;if(_0x2cf1e9){let _0x529f3b={};const _0x3fe92b=[];for(let _0x13763e=0x0;_0x13763e<_0x2cf1e9[_0x479c53(0x2e9)];_0x13763e+=0x1){for(let _0x3cbe2d=0x0,_0x1dae96;_0x3cbe2d<_0x2cf1e9[_0x13763e][_0x479c53(0x1da)][_0x479c53(0x2e9)];_0x3cbe2d+=0x1){_0x1dae96=_0x2cf1e9[_0x13763e][_0x479c53(0x1da)][_0x3cbe2d]['get']({'plain':!![]}),_0x529f3b[_0x1dae96['id']]=_0x1dae96;}}_0x529f3b=_['values'](_0x529f3b);for(let _0x54268e=qs[_0x479c53(0x1d9)](_0x1aac10[_0x479c53(0x242)][_0x479c53(0x1d9)]);_0x54268e<_0x529f3b['length']&&_0x3fe92b[_0x479c53(0x2e9)]=_0x324adf?(_0x357aa2=_0x324adf,_0x3f0aab=0xc8):_0x3f0aab=0xce,_0x52e465['status'](_0x3f0aab),_0x52e465[_0xf7023(0xfa)](_0xf7023(0x12f),_0x2a1d32+'-'+_0x357aa2+'/'+_0x324adf)['json'](_0x32d1b4);}return null;};}function saveUpdates(_0x12a81d){return function(_0x5ef93d){const _0x18d8f3=a775_0x2b78;if(_0x5ef93d)return _0x5ef93d[_0x18d8f3(0x1e2)](_0x12a81d)[_0x18d8f3(0x17b)](function(_0x2c96fe){return _0x2c96fe;});return null;};}function removeEntity(_0x3a74be){return function(_0x2c547d){const _0x49e066=a775_0x2b78;if(_0x2c547d)return _0x2c547d[_0x49e066(0x213)]()[_0x49e066(0x17b)](function(){const _0x1ba43f=_0x49e066,_0x3c79fc=_0x2c547d[_0x1ba43f(0x1c8)]({'plain':!![]});if(_0x3c79fc[_0x1ba43f(0x15e)]==='admin')return;const _0x2f752a=[{'name':_0x1ba43f(0x1c1),'value':_0x1ba43f(0x254),'ignore':!![]},{'name':'Agents','value':'agent','ignore':![]},{'name':'Telephones','value':_0x1ba43f(0x179),'ignore':![]}],_0x169f33=_(_0x2f752a)[_0x1ba43f(0x1e8)]('ignore')[_0x1ba43f(0x20f)](_0x1ba43f(0x1f2))[_0x1ba43f(0x1f2)]();if(_[_0x1ba43f(0x1f9)](_0x169f33,_0x3c79fc[_0x1ba43f(0x15e)]))return;const _0x484a40=_[_0x1ba43f(0x206)](_0x2f752a,['value',_0x3c79fc[_0x1ba43f(0x15e)]])[_0x1ba43f(0x16f)];return db[_0x1ba43f(0x1e5)][_0x1ba43f(0x213)]({'where':{'type':_0x484a40,'resourceId':_0x3c79fc['id']}})['then'](function(){return _0x2c547d;});})[_0x49e066(0x17b)](function(){const _0x38128c=_0x49e066;_0x3a74be['status'](0xcc)[_0x38128c(0x166)]();});};}function handleEntityNotFound(_0x1688b8){return function(_0x46e7dc){return!_0x46e7dc&&_0x1688b8['sendStatus'](0x194),_0x46e7dc;};}function handleError(_0x5065dd,_0x248925){return _0x248925=_0x248925||0x1f4,function(_0x2b0516){const _0x1c0169=a775_0x2b78;logger['error'](_0x2b0516[_0x1c0169(0x221)]),_0x2b0516[_0x1c0169(0x16f)]&&delete _0x2b0516[_0x1c0169(0x16f)],_0x5065dd['status'](_0x248925)[_0x1c0169(0x18c)](_0x2b0516);};}function validateUser(_0xd9e748){return new Promise(function(_0x303137,_0x4d14ce){const _0x44f5c2=a775_0x2b78;if(_0xd9e748[_0x44f5c2(0x23a)])return _0x303137(_0xd9e748);return db['Setting'][_0x44f5c2(0x10f)](0x1)[_0x44f5c2(0x17b)](function(_0x573b50){const _0x59fbcf=_0x44f5c2;if(_0x573b50[_0x59fbcf(0x186)])authService[_0x59fbcf(0x1d5)](_0xd9e748[_0x59fbcf(0x1be)]);db[_0x59fbcf(0x1b8)][_0x59fbcf(0x220)](_0x59fbcf(0x23a))[_0x59fbcf(0x17b)](function(_0x366792){const _0x2962be=_0x59fbcf;if(_[_0x2962be(0x25d)](_0x366792)){_0xd9e748[_0x2962be(0x23a)]=_0x573b50[_0x2962be(0x20a)]||0x1;return;}if(_['isNil'](_0x573b50[_0x2962be(0x20a)])||_0x573b50['min_internal']===_0x366792){_0xd9e748[_0x2962be(0x23a)]=_0x366792+0x1;return;}if(_0x573b50[_0x2962be(0x20a)]>_0x366792){_0xd9e748[_0x2962be(0x23a)]=_0x573b50[_0x2962be(0x20a)];return;}return db[_0x2962be(0x234)][_0x2962be(0x14f)](_0x2962be(0x189),{'type':QueryTypes[_0x2962be(0x235)]})[_0x2962be(0x17b)](function(_0x51676f){const _0x22037d=_0x2962be;if(_0x51676f&&_0x51676f[_0x22037d(0x127)])for(let _0x7b87f1=0x0,_0x5c9c60=_0x51676f[_0x22037d(0x127)];_0x7b87f1<_0x5c9c60&&_[_0x22037d(0x25d)](_0xd9e748[_0x22037d(0x23a)]);_0x7b87f1++){if(_0x573b50[_0x22037d(0x20a)]<=_0x51676f[_0x7b87f1][_0x22037d(0x1b9)])_0xd9e748[_0x22037d(0x23a)]=_0x51676f[_0x7b87f1][_0x22037d(0x1b9)];else _0x573b50[_0x22037d(0x20a)]>_0x51676f[_0x7b87f1][_0x22037d(0x1b9)]&&_0x573b50[_0x22037d(0x20a)]<=_0x51676f[_0x7b87f1]['to']&&(_0xd9e748[_0x22037d(0x23a)]=_0x573b50[_0x22037d(0x20a)]);}return _['isNil'](_0xd9e748[_0x22037d(0x23a)])&&(_0xd9e748[_0x22037d(0x23a)]=_0x366792+0x1),_0x303137(_0xd9e748);});});})[_0x44f5c2(0x107)](function(_0x3a3382){_0x4d14ce(_0x3a3382);});});}function updateUser(_0x3c963e){return new Promise(function(_0x252ac2,_0x2942e6){const _0x15caa9=a775_0x2b78;try{_0x3c963e['voicemail']&&(_0x3c963e[_0x15caa9(0x135)]=_0x3c963e[_0x15caa9(0x23a)],_0x3c963e[_0x15caa9(0x1f3)]={'mailbox':_0x3c963e['internal'],'password':_0x3c963e['password'],'fullname':_0x3c963e[_0x15caa9(0x24b)],'email':_0x3c963e[_0x15caa9(0x1da)]});if(_0x3c963e['role']===_0x15caa9(0x122)){if(!_0x3c963e['permissions'])_0x3c963e[_0x15caa9(0x250)]=[_0x15caa9(0x212),_0x15caa9(0x1e6),_0x15caa9(0x13a),_0x15caa9(0x163),_0x15caa9(0x193),_0x15caa9(0x11d),_0x15caa9(0x170),_0x15caa9(0x1d4),_0x15caa9(0x128),_0x15caa9(0x23b),_0x15caa9(0x144),_0x15caa9(0x131),_0x15caa9(0x168),_0x15caa9(0x238)];}_0x252ac2(_0x3c963e);}catch(_0x58ff35){_0x2942e6(_0x58ff35);}});}exports['index']=function(_0x4235b2,_0x197115){const _0x2ebde4=a775_0x14feaf;let _0x54e563={};const _0x1dbf46={},_0x429bb7={'count':0x0,'rows':[]},_0x42ad7e=_[_0x2ebde4(0x20f)](db[_0x2ebde4(0x1b8)]['rawAttributes'],function(_0x470ffa){const _0x55d248=_0x2ebde4;return{'name':_0x470ffa['fieldName'],'type':_0x470ffa[_0x55d248(0x228)][_0x55d248(0x1bb)]};});_0x1dbf46[_0x2ebde4(0x1a1)]=_[_0x2ebde4(0x258)](_['map'](_0x42ad7e,_0x2ebde4(0x16f)),[_0x2ebde4(0x1be),'salt']),_0x1dbf46['query']=_[_0x2ebde4(0x248)](_0x4235b2['query']),_0x1dbf46[_0x2ebde4(0x1d1)]=_[_0x2ebde4(0x22b)](_0x1dbf46[_0x2ebde4(0x1a1)],_0x1dbf46['query']),_0x54e563[_0x2ebde4(0x24f)]=_['intersection'](_0x1dbf46[_0x2ebde4(0x1a1)],qs['fields'](_0x4235b2[_0x2ebde4(0x14f)][_0x2ebde4(0x156)])),_0x54e563[_0x2ebde4(0x24f)]=_0x54e563[_0x2ebde4(0x24f)][_0x2ebde4(0x127)]?_0x54e563[_0x2ebde4(0x24f)]:_0x1dbf46[_0x2ebde4(0x1a1)];typeof _0x4235b2[_0x2ebde4(0x14f)][_0x2ebde4(0x23c)]===_0x2ebde4(0x149)&&(_0x54e563[_0x2ebde4(0x124)]=qs[_0x2ebde4(0x124)](_0x4235b2[_0x2ebde4(0x14f)][_0x2ebde4(0x124)]),_0x54e563[_0x2ebde4(0x24d)]=qs[_0x2ebde4(0x24d)](_0x4235b2[_0x2ebde4(0x14f)][_0x2ebde4(0x24d)]));_0x54e563[_0x2ebde4(0x19b)]=qs[_0x2ebde4(0x157)](_0x4235b2[_0x2ebde4(0x14f)][_0x2ebde4(0x157)]),_0x54e563[_0x2ebde4(0x10c)]=qs['filters'](_[_0x2ebde4(0x143)](_0x4235b2[_0x2ebde4(0x14f)],_0x1dbf46[_0x2ebde4(0x1d1)]),_0x42ad7e);_0x4235b2[_0x2ebde4(0x14f)]['filter']&&(_0x54e563[_0x2ebde4(0x10c)]=_[_0x2ebde4(0x231)](_0x54e563[_0x2ebde4(0x10c)],{[Op['or']]:_[_0x2ebde4(0x20f)](_0x42ad7e,function(_0x2170b7){const _0x40fc5d=_0x2ebde4;if(_0x2170b7['type']!==_0x40fc5d(0x1ec))return where(fn(_0x40fc5d(0x178),col(_0x2170b7[_0x40fc5d(0x16f)])),{'$like':fn(_0x40fc5d(0x178),'%'+_0x4235b2[_0x40fc5d(0x14f)][_0x40fc5d(0x1e8)]+'%')});})}));_0x54e563=_[_0x2ebde4(0x231)]({},_0x54e563,_0x4235b2[_0x2ebde4(0x239)]);const _0x2f3157={'where':_0x54e563[_0x2ebde4(0x10c)]};return db[_0x2ebde4(0x1b8)][_0x2ebde4(0x18a)](_0x2f3157)[_0x2ebde4(0x17b)](function(_0x22a644){const _0x40f4c4=_0x2ebde4;return _0x429bb7[_0x40f4c4(0x18a)]=_0x22a644,typeof _0x4235b2[_0x40f4c4(0x14f)]['includeAll']!==_0x40f4c4(0x149)&&(_0x54e563[_0x40f4c4(0x19a)]=[{'all':!![]}]),db['User'][_0x40f4c4(0x1bf)](_0x54e563);})[_0x2ebde4(0x17b)](function(_0x4e9893){const _0x3c039d=_0x2ebde4;return _0x429bb7[_0x3c039d(0x152)]=_0x4e9893,_0x429bb7;})[_0x2ebde4(0x17b)](respondWithFilteredResult(_0x197115,_0x54e563))['catch'](handleError(_0x197115,null));},exports['show']=function(_0x215d08,_0x15eb27){const _0x590c48=a775_0x14feaf;let _0x4f538c={'raw':![],'where':{'id':_0x215d08[_0x590c48(0x194)]['id']}};const _0xdecbea={};return _0xdecbea['model']=_[_0x590c48(0x258)](_[_0x590c48(0x248)](db['User'][_0x590c48(0x1a7)]),[_0x590c48(0x1be),'salt']),_0xdecbea[_0x590c48(0x14f)]=_[_0x590c48(0x248)](_0x215d08['query']),_0xdecbea['filters']=_['intersection'](_0xdecbea[_0x590c48(0x1a1)],_0xdecbea['query']),_0x4f538c[_0x590c48(0x24f)]=_[_0x590c48(0x22b)](_0xdecbea[_0x590c48(0x1a1)],qs[_0x590c48(0x156)](_0x215d08['query']['fields'])),_0x4f538c[_0x590c48(0x24f)]=_0x4f538c['attributes'][_0x590c48(0x127)]?_0x4f538c['attributes']:_0xdecbea[_0x590c48(0x1a1)],_0x215d08[_0x590c48(0x14f)][_0x590c48(0x17e)]&&(_0x4f538c[_0x590c48(0x19a)]=[{'all':!![]}]),_0x4f538c=_[_0x590c48(0x231)]({},_0x4f538c,_0x215d08[_0x590c48(0x239)]),db[_0x590c48(0x1b8)][_0x590c48(0x121)](_0x4f538c)[_0x590c48(0x17b)](handleEntityNotFound(_0x15eb27,null))[_0x590c48(0x17b)](respondWithResult(_0x15eb27,null))[_0x590c48(0x107)](handleError(_0x15eb27,null));},exports['bulkCreate']=function(_0x23dbe6,_0x596c4c){const _0xcfda2d=a775_0x14feaf,_0x21179d=_0x23dbe6[_0xcfda2d(0x1fb)];let _0x2b1247=[];if(_0x23dbe6[_0xcfda2d(0x254)][_0xcfda2d(0x15e)]==='agent')throw new Error('Unauthorized');if(_[_0xcfda2d(0x23d)](_0x21179d,[_0xcfda2d(0x15e),'user'])&&_0x23dbe6[_0xcfda2d(0x254)][_0xcfda2d(0x15e)]!==_0xcfda2d(0x176))throw new Error(_0xcfda2d(0x1cf));if(_[_0xcfda2d(0x23d)](_0x21179d,[_0xcfda2d(0x15e),'admin'])&&_0x23dbe6[_0xcfda2d(0x254)][_0xcfda2d(0x15e)]!==_0xcfda2d(0x176))throw new Error(_0xcfda2d(0x1ce));return licenseUtil[_0xcfda2d(0x11f)](_0x21179d)['then'](function(){return validateUser(_0x21179d[0x0]);})['then'](function(){const _0xc415ee=_0xcfda2d;for(let _0x226280=0x1;_0x226280<_0x21179d[_0xc415ee(0x127)];_0x226280++){const _0x1b806f=_0x21179d[_0x226280-0x1]['internal'];if(!_0x21179d[_0x226280][_0xc415ee(0x23a)])_0x21179d[_0x226280]['internal']=_0x1b806f+0x1;_0x2b1247['push'](validateUser(_0x21179d[_0x226280]));}return Promise[_0xc415ee(0x117)](_0x2b1247);})['then'](function(){const _0x5472d0=_0xcfda2d;_0x2b1247=[];for(let _0x230e4f=0x0;_0x230e4f<_0x21179d[_0x5472d0(0x127)];_0x230e4f++){_0x2b1247[_0x5472d0(0x233)](updateUser(_0x21179d[_0x230e4f]));}return Promise[_0x5472d0(0x117)](_0x2b1247);})[_0xcfda2d(0x17b)](function(){const _0x708585=_0xcfda2d;return _0x2b1247=_0x21179d[_0x708585(0x20f)](_0x5cdb06=>{const _0x223ada=_0x708585;return db['User'][_0x223ada(0x174)](_0x5cdb06,{'include':[{'model':db['VoiceMail'],'as':'VoiceMail'}]})[_0x223ada(0x17b)](function(_0x51149f){return _0x5cdb06['id']=_0x51149f['id'],_0x5cdb06;});}),Promise[_0x708585(0x117)](_0x2b1247);})[_0xcfda2d(0x17b)](function(_0x5f2ec5){const _0x2d4d13=_0xcfda2d;if(_0x23dbe6['body'][_0x2d4d13(0x15e)]===_0x2d4d13(0x254))return _0x5f2ec5;if(_0x23dbe6['user'][_0x2d4d13(0x15e)]!==_0x2d4d13(0x254))return _0x5f2ec5;const _0x1f4b7f=_[_0x2d4d13(0x23d)](_0x5f2ec5,function(_0x1de7bf){const _0x160421=_0x2d4d13;return _0x1de7bf[_0x160421(0x15e)]===_0x160421(0x122)||_0x1de7bf['role']===_0x160421(0x179);});if(!_0x1f4b7f)return _0x5f2ec5;return db['UserProfileSection'][_0x2d4d13(0x1bf)]({'where':{'name':{[Op['or']]:[_0x2d4d13(0x1fd),_0x2d4d13(0x1ef)]},'userProfileId':_0x23dbe6[_0x2d4d13(0x254)][_0x2d4d13(0x148)]},'raw':!![]})[_0x2d4d13(0x17b)](function(_0x49f239){const _0x2c5b6b=_0x2d4d13;if(_[_0x2c5b6b(0x1dd)](_0x49f239)||!_[_0x2c5b6b(0x23d)](_0x49f239,[_0x2c5b6b(0x205),0x0]))return _0x5f2ec5;_0x2b1247=[];const _0x2d1284=_(_0x49f239)[_0x2c5b6b(0x20f)](function(_0x5867c4){const _0x2885b1=_0x2c5b6b;if(_0x5867c4['autoAssociation']===0x1)return;return _0x5867c4['name']===_0x2885b1(0x1fd)?_0x2885b1(0x122):_0x2885b1(0x179);})['compact']()[_0x2c5b6b(0x1f2)]();for(let _0x454298=0x0;_0x454298<_0x5f2ec5[_0x2c5b6b(0x127)];_0x454298++){if(!_['includes'](_0x2d1284,_0x5f2ec5[_0x454298]['role']))return;const _0x11d12e=_0x5f2ec5[_0x454298][_0x2c5b6b(0x15e)]===_0x2c5b6b(0x122)?_0x2c5b6b(0x1fd):'Telephones';_0x2b1247[_0x2c5b6b(0x233)](db[_0x2c5b6b(0x1e5)][_0x2c5b6b(0x174)]({'name':_0x5f2ec5[_0x454298][_0x2c5b6b(0x16f)],'resourceId':_0x5f2ec5[_0x454298]['id'],'type':_0x11d12e,'sectionId':_[_0x2c5b6b(0x206)](_0x49f239,['name',_0x11d12e])['id']},{}));}return Promise[_0x2c5b6b(0x117)](_0x2b1247);});})[_0xcfda2d(0x17b)](respondWithResult(_0x596c4c,0xc9))['catch'](handleError(_0x596c4c,null));},exports['update']=function(_0x3606e7,_0x2be51e){const _0x4b0387=a775_0x14feaf;return _0x3606e7[_0x4b0387(0x1fb)]['id']&&delete _0x3606e7[_0x4b0387(0x1fb)]['id'],delete _0x3606e7[_0x4b0387(0x1fb)][_0x4b0387(0x15e)],db[_0x4b0387(0x1b8)][_0x4b0387(0x121)]({'where':{'id':_0x3606e7['params']['id']}})[_0x4b0387(0x17b)](handleEntityNotFound(_0x2be51e,null))[_0x4b0387(0x17b)](saveUpdates(_0x3606e7[_0x4b0387(0x1fb)],null))[_0x4b0387(0x17b)](respondWithResult(_0x2be51e,null))[_0x4b0387(0x107)](handleError(_0x2be51e,null));},exports[a775_0x14feaf(0xff)]=function(_0x2eecba,_0x49f578){const _0x388f48=a775_0x14feaf;return db[_0x388f48(0x1b8)][_0x388f48(0xff)]()[_0x388f48(0x17b)](respondWithResult(_0x49f578,null))['catch'](handleError(_0x49f578,null));},exports[a775_0x14feaf(0x1d0)]=function(_0x3256cf,_0x4deb23){const _0x228a45=a775_0x14feaf;return db[_0x228a45(0x1b8)][_0x228a45(0x121)]({'where':{'id':_0x3256cf[_0x228a45(0x194)]['id']}})[_0x228a45(0x17b)](handleEntityNotFound(_0x4deb23,null))['then'](function(_0x153e44){const _0x5d454a=_0x228a45;if(_0x153e44)return _0x153e44[_0x5d454a(0x1d0)](_0x3256cf[_0x5d454a(0x1fb)][_0x5d454a(0x200)],{'through':_[_0x5d454a(0x1a3)](_0x3256cf['body'],[_0x5d454a(0x200),'id'])});})['then'](respondWithResult(_0x4deb23,null))['catch'](handleError(_0x4deb23,null));},exports['create']=function(_0x314ceb,_0x5d8dc9){const _0xd18b78=a775_0x14feaf;if(_0x314ceb[_0xd18b78(0x254)][_0xd18b78(0x15e)]===_0xd18b78(0x122))throw new Error(_0xd18b78(0x12b));if(_0x314ceb[_0xd18b78(0x1fb)]['role']===_0xd18b78(0x254)&&_0x314ceb[_0xd18b78(0x254)][_0xd18b78(0x15e)]!==_0xd18b78(0x176))throw new Error(_0xd18b78(0x1cf));if(_0x314ceb[_0xd18b78(0x1fb)]['role']==='admin'&&_0x314ceb['user'][_0xd18b78(0x15e)]!=='admin')throw new Error(_0xd18b78(0x1db));return licenseUtil[_0xd18b78(0x11f)]([_0x314ceb[_0xd18b78(0x1fb)]])[_0xd18b78(0x17b)](function(){const _0x1ca992=_0xd18b78;return validateUser(_0x314ceb[_0x1ca992(0x1fb)]);})[_0xd18b78(0x17b)](function(_0x6a8e2f){const _0x174298=_0xd18b78;return updateUser(_0x6a8e2f)[_0x174298(0x17b)](function(_0x4eca69){const _0x3b3ae7=_0x174298;return _0x4eca69[_0x3b3ae7(0x15e)]===_0x3b3ae7(0x176)&&(_0x4eca69[_0x3b3ae7(0x15c)]=_0x314ceb['user'][_0x3b3ae7(0x15c)],delete _0x4eca69[_0x3b3ae7(0x148)]),_0x4eca69;});})[_0xd18b78(0x17b)](function(_0x123a86){const _0x3ba043=_0xd18b78;return db[_0x3ba043(0x1b8)][_0x3ba043(0x174)](_0x123a86,{'include':[{'model':db[_0x3ba043(0x1f3)],'as':_0x3ba043(0x1f3)}]});})[_0xd18b78(0x17b)](function(_0x411ce2){const _0x4624a7=_0xd18b78;if(_0x314ceb[_0x4624a7(0x1fb)][_0x4624a7(0x15e)]===_0x4624a7(0x254))return _0x411ce2;if(_0x314ceb[_0x4624a7(0x254)]['role']!==_0x4624a7(0x254))return _0x411ce2;return db[_0x4624a7(0x237)][_0x4624a7(0x121)]({'where':{'name':_0x411ce2[_0x4624a7(0x15e)]===_0x4624a7(0x122)?_0x4624a7(0x1fd):_0x4624a7(0x1ef),'userProfileId':_0x314ceb[_0x4624a7(0x254)][_0x4624a7(0x148)]},'raw':!![]})[_0x4624a7(0x17b)](function(_0x42845b){const _0x1461b2=_0x4624a7;if(!_0x42845b||_0x42845b[_0x1461b2(0x205)]!=0x0)return _0x411ce2;return db[_0x1461b2(0x1e5)][_0x1461b2(0x174)]({'name':_0x411ce2[_0x1461b2(0x16f)],'resourceId':_0x411ce2['id'],'type':_0x42845b[_0x1461b2(0x16f)],'sectionId':_0x42845b['id']},{})['then'](function(){return _0x411ce2;});})[_0x4624a7(0x107)](function(_0x51e4e1){const _0x3f8e80=_0x4624a7;logger[_0x3f8e80(0x203)](_0x3f8e80(0x12e),_0x51e4e1);throw _0x51e4e1;});})[_0xd18b78(0x17b)](respondWithResult(_0x5d8dc9,0xc9))[_0xd18b78(0x107)](handleError(_0x5d8dc9,null));},exports[a775_0x14feaf(0x196)]=function(_0x5b486b,_0x1eb588){const _0x5e3917=a775_0x14feaf;if(_0x5b486b['body']['id'])delete _0x5b486b['body']['id'];return db[_0x5e3917(0x1b8)]['findOne']({'where':{'id':_0x5b486b[_0x5e3917(0x194)]['id']}})[_0x5e3917(0x17b)](function(_0x4db874){const _0x39b1bd=_0x5e3917;if(!_0x4db874)return null;if(_0x4db874['id']===_0x5b486b[_0x39b1bd(0x254)]['id']){if(!_0x5b486b[_0x39b1bd(0x1fb)][_0x39b1bd(0x226)]||!_0x5b486b[_0x39b1bd(0x1fb)][_0x39b1bd(0x129)])throw new ValidationError(_0x39b1bd(0x236));if(!_0x4db874['authenticate'](_0x5b486b[_0x39b1bd(0x1fb)][_0x39b1bd(0x226)]))throw new ValidationError(_0x39b1bd(0x134));if(_0x5b486b[_0x39b1bd(0x1fb)][_0x39b1bd(0x226)]===_0x5b486b[_0x39b1bd(0x1fb)][_0x39b1bd(0x129)])throw new ValidationError(_0x39b1bd(0x161));}else{if(_0x5b486b[_0x39b1bd(0x254)][_0x39b1bd(0x15e)]===_0x39b1bd(0x176)){if(!_0x5b486b[_0x39b1bd(0x1fb)][_0x39b1bd(0x129)])throw new ValidationError('Invalid\x20body\x20format.\x20Use\x20newPassword');}else{if(_0x5b486b[_0x39b1bd(0x254)][_0x39b1bd(0x15e)]===_0x39b1bd(0x254)){if(!_0x5b486b[_0x39b1bd(0x1fb)][_0x39b1bd(0x129)])throw new ValidationError('Invalid\x20body\x20format.\x20Use\x20newPassword');if(_0x4db874['role']!==_0x39b1bd(0x122))throw new ValidationError(_0x39b1bd(0x12b));}else throw new ValidationError(_0x39b1bd(0x12b));}}return _0x4db874;})[_0x5e3917(0x17b)](handleEntityNotFound(_0x1eb588,null))[_0x5e3917(0x17b)](function(_0x6c1e38){const _0x47c0e3=_0x5e3917;return db['Setting']['findOne']({'attributes':['id',_0x47c0e3(0x186),_0x47c0e3(0x136),_0x47c0e3(0x126)]})[_0x47c0e3(0x17b)](function(_0x114c5c){const _0x22c90e=_0x47c0e3;if(_0x114c5c[_0x22c90e(0x186)])authService[_0x22c90e(0x1d5)](_0x5b486b[_0x22c90e(0x1fb)][_0x22c90e(0x129)]);if(!_0x114c5c[_0x22c90e(0x136)]||!_0x6c1e38[_0x22c90e(0x119)])return _0x6c1e38;return authService[_0x22c90e(0x223)](_0x5b486b[_0x22c90e(0x1fb)][_0x22c90e(0x129)],_0x6c1e38[_0x22c90e(0x119)],_0x114c5c[_0x22c90e(0x126)]),_0x6c1e38;})[_0x47c0e3(0x17b)](saveUpdates({'password':_0x5b486b['body'][_0x47c0e3(0x129)],'passwordResetAt':_0x5b486b[_0x47c0e3(0x254)]['id']==_0x5b486b['params']['id']?moment():null,'previousPasswords':authService['updatePasswordsHistory'](_0x5b486b[_0x47c0e3(0x1fb)][_0x47c0e3(0x129)],_0x6c1e38[_0x47c0e3(0x119)])},null));})['then'](respondWithResult(_0x1eb588,null))['catch'](handleError(_0x1eb588,null));},exports[a775_0x14feaf(0x1ab)]=function(_0x6ff8c,_0x1e37d1){const _0x1c599a=a775_0x14feaf,_0x2fbe18=_0x6ff8c['body'][_0x1c599a(0x215)];return db['User']['findOne']({'where':{'id':_0x6ff8c[_0x1c599a(0x194)]['id']},'attributes':['id',_0x1c599a(0x16f),_0x1c599a(0x15e),_0x1c599a(0x104),_0x1c599a(0x184),_0x1c599a(0x17a),_0x1c599a(0x1d8)]})[_0x1c599a(0x17b)](handleEntityNotFound(_0x1e37d1,null))[_0x1c599a(0x17b)](function(_0x477d28){const _0x34bd97=_0x1c599a;if(_0x477d28){if(!utils[_0x34bd97(0x224)](_0x2fbe18))throw new ValidationError('Unknown\x20channel');return _0x477d28[_0x34bd97(0x1f0)+_[_0x34bd97(0x18d)](_0x2fbe18['toLowerCase']())+_0x34bd97(0x1ac)](_0x6ff8c[_0x34bd97(0x1fb)][_0x34bd97(0x200)],{'through':{'penalty':_0x6ff8c[_0x34bd97(0x1fb)][_0x34bd97(0x15a)]||0x0}})[_0x34bd97(0x17b)](function(_0x9e8c91){const _0x4bd3a9=_0x34bd97;for(let _0x4e878a=0x0;_0x4e878a<_0x6ff8c[_0x4bd3a9(0x1fb)][_0x4bd3a9(0x200)][_0x4bd3a9(0x127)];_0x4e878a+=0x1){const _0x2da553={'UserId':_0x6ff8c[_0x4bd3a9(0x194)]['id']};_0x2da553[_[_0x4bd3a9(0x18d)](_0x2fbe18[_0x4bd3a9(0x21f)]())+_0x4bd3a9(0x133)]=_0x6ff8c[_0x4bd3a9(0x1fb)][_0x4bd3a9(0x200)][_0x4e878a],socket[_0x4bd3a9(0x147)]('user'+_[_0x4bd3a9(0x18d)](_0x2fbe18[_0x4bd3a9(0x21f)]())+_0x4bd3a9(0x113),_0x2da553);}return _0x9e8c91;})[_0x34bd97(0x17b)](function(){const _0x2d5b6e=_0x34bd97;if(_0x2fbe18===_0x2d5b6e(0x1eb))return db['VoiceQueue'][_0x2d5b6e(0x1bf)]({'where':{'id':_0x6ff8c['body'][_0x2d5b6e(0x200)]||[]},'raw':!![],'attributes':['id',_0x2d5b6e(0x16f)]});})[_0x34bd97(0x17b)](function(_0xa0b849){const _0x32becc=_0x34bd97,_0x47e364=_0x477d28['get']({'plain':!![]}),_0x5542d4=[];if(_0x2fbe18===_0x32becc(0x1eb)&&_0x47e364[_0x32becc(0x15e)]===_0x32becc(0x122)&&_0x47e364['online']){for(let _0x27dd89=0x0;_0x27dd89<_0xa0b849[_0x32becc(0x127)];_0x27dd89+=0x1){_0x5542d4[_0x32becc(0x233)]({'membername':_0x47e364[_0x32becc(0x16f)],'UserId':_0x47e364['id'],'queue_name':_0xa0b849[_0x27dd89][_0x32becc(0x16f)],'VoiceQueueId':_0xa0b849[_0x27dd89]['id'],'interface':_[_0x32becc(0x25d)](_0x47e364[_0x32becc(0x1d8)])?util[_0x32becc(0x1cc)](_0x32becc(0x1c6),_0x47e364[_0x32becc(0x16f)]):_0x47e364[_0x32becc(0x1d8)],'paused':_0x47e364['voicePause']||![],'penalty':_0x6ff8c[_0x32becc(0x1fb)][_0x32becc(0x15a)]||0x0});}return Promise[_0x32becc(0x117)](_0x5542d4[_0x32becc(0x20f)](_0x5320ea=>{const _0x33f6df=_0x32becc;return db[_0x33f6df(0x185)][_0x33f6df(0x15b)](_0x5320ea);}));}return _0x477d28;});}})[_0x1c599a(0x17b)](respondWithStatusCode(_0x1e37d1,null))[_0x1c599a(0x107)](handleError(_0x1e37d1,null));},exports[a775_0x14feaf(0x191)]=function(_0x2ee5f6,_0x6f826a){const _0x523467=a775_0x14feaf;let _0x457577;return db[_0x523467(0x1b8)][_0x523467(0x121)]({'where':{'id':_0x2ee5f6[_0x523467(0x194)]['id']},'attributes':['id',_0x523467(0x16f),_0x523467(0x15e)]})['then'](handleEntityNotFound(_0x6f826a,null))[_0x523467(0x17b)](function(_0x41cfc7){const _0x5ad06c=_0x523467;if(_0x41cfc7){_0x457577=_0x41cfc7;if(!_0x2ee5f6['query'][_0x5ad06c(0x215)]||!utils[_0x5ad06c(0x224)](_0x2ee5f6['query'][_0x5ad06c(0x215)]))throw new ValidationError(_0x5ad06c(0x23f));return _0x41cfc7[_0x5ad06c(0x138)+_['capitalize'](_0x2ee5f6[_0x5ad06c(0x14f)]['channel'][_0x5ad06c(0x21f)]())+_0x5ad06c(0x1ac)](_0x2ee5f6[_0x5ad06c(0x14f)][_0x5ad06c(0x200)]);}})[_0x523467(0x17b)](function(_0x3375f3){const _0x14aa94=_0x523467;for(let _0x4c7106=0x0;_0x4c7106<_0x2ee5f6[_0x14aa94(0x14f)]['ids']['length'];_0x4c7106+=0x1){const _0x119a65={'UserId':_0x2ee5f6['params']['id']};_0x119a65[_['capitalize'](_0x2ee5f6['query'][_0x14aa94(0x215)][_0x14aa94(0x21f)]())+_0x14aa94(0x133)]=_0x2ee5f6[_0x14aa94(0x14f)][_0x14aa94(0x200)][_0x4c7106],socket['emit'](_0x14aa94(0x254)+_[_0x14aa94(0x18d)](_0x2ee5f6[_0x14aa94(0x14f)]['channel']['toLowerCase']())+'Queue:remove',_0x119a65);}return _0x3375f3;})[_0x523467(0x17b)](function(){const _0x48ec03=_0x523467;if(_0x2ee5f6[_0x48ec03(0x14f)][_0x48ec03(0x215)]===_0x48ec03(0x1eb))return db[_0x48ec03(0x185)][_0x48ec03(0x213)]({'where':{'UserId':_0x2ee5f6[_0x48ec03(0x194)]['id'],'VoiceQueueId':_0x2ee5f6['query']['ids']},'individualHooks':!![]})['then'](function(){return _0x457577;});return _0x457577;})['then'](respondWithStatusCode(_0x6f826a,null))[_0x523467(0x107)](handleError(_0x6f826a,null));},exports[a775_0x14feaf(0x18f)]=function(_0x51c7fd,_0x392d15){const _0x55e232=a775_0x14feaf;return _0x51c7fd[_0x55e232(0x1fb)][_0x55e232(0x227)]=_0x51c7fd[_0x55e232(0x1a4)][_0x55e232(0x1d7)],db['User'][_0x55e232(0x121)]({'where':{'id':_0x51c7fd['params']['id']}})[_0x55e232(0x17b)](handleEntityNotFound(_0x392d15,null))[_0x55e232(0x17b)](saveUpdates(_0x51c7fd[_0x55e232(0x1fb)],null))[_0x55e232(0x17b)](respondWithResult(_0x392d15,null))[_0x55e232(0x107)](handleError(_0x392d15,null));},exports[a775_0x14feaf(0x111)]=function(_0x2887b8,_0x3769ad){const _0x16942a=a775_0x14feaf,_0x2b8922=path[_0x16942a(0x16e)](config[_0x16942a(0x1b5)],_0x16942a(0x1dc));return db[_0x16942a(0x1b8)][_0x16942a(0x121)]({'where':{'id':_0x2887b8[_0x16942a(0x194)]['id']},'attributes':['id',_0x16942a(0x227)],'raw':!![]})[_0x16942a(0x17b)](handleEntityNotFound(_0x3769ad,null))[_0x16942a(0x17b)](function(_0x583da3){const _0x231212=_0x16942a;if(_0x583da3){if(_[_0x231212(0x25d)](_0x583da3['userpic']))return _0x3769ad['download'](_0x2b8922);else{if(!fs['existsSync'](path[_0x231212(0x16e)](config['root'],'files/images/',_0x583da3[_0x231212(0x227)])))return _0x3769ad[_0x231212(0x1d9)](_0x2b8922);return _0x3769ad[_0x231212(0x1d9)](path[_0x231212(0x16e)](config['root'],'files/images/',_0x583da3[_0x231212(0x227)]));}}})['catch'](handleError(_0x3769ad,null));},exports[a775_0x14feaf(0x1c5)]=function(_0x356585,_0x396f29){const _0x2c0366=a775_0x14feaf;let _0x4c965f={};const _0x3e7322={};let _0x13eeac,_0x13cd85;return db[_0x2c0366(0x1b8)][_0x2c0366(0x121)]({'where':{'id':_0x356585[_0x2c0366(0x194)]['id']}})['then'](handleEntityNotFound(_0x396f29,null))[_0x2c0366(0x17b)](function(_0x4fc7aa){const _0x168356=_0x2c0366;if(_0x4fc7aa)return _0x13eeac=_0x4fc7aa,_0x3e7322[_0x168356(0x1a1)]=_[_0x168356(0x248)](db['CmContact'][_0x168356(0x1a7)]),_0x3e7322['query']=_[_0x168356(0x248)](_0x356585[_0x168356(0x14f)]),_0x3e7322['filters']=_[_0x168356(0x22b)](_0x3e7322[_0x168356(0x1a1)],_0x3e7322[_0x168356(0x14f)]),_0x4c965f[_0x168356(0x24f)]=_['intersection'](_0x3e7322[_0x168356(0x1a1)],qs[_0x168356(0x156)](_0x356585[_0x168356(0x14f)][_0x168356(0x156)])),_0x4c965f[_0x168356(0x24f)]=_0x4c965f['attributes']['length']?_0x4c965f[_0x168356(0x24f)]:_0x3e7322[_0x168356(0x1a1)],_0x4c965f['order']=qs[_0x168356(0x157)](_0x356585[_0x168356(0x14f)][_0x168356(0x157)]),_0x4c965f['where']=qs['filters'](_['pick'](_0x356585[_0x168356(0x14f)],_0x3e7322[_0x168356(0x1d1)])),_0x356585[_0x168356(0x14f)][_0x168356(0x1e8)]&&(_0x4c965f[_0x168356(0x10c)]=_[_0x168356(0x231)](_0x4c965f['where'],{[Op['or']]:_[_0x168356(0x20f)](_0x4c965f[_0x168356(0x24f)],function(_0x27dc6e){const _0x2062a3=_0x168356,_0x2d789f={};return _0x2d789f[_0x27dc6e]={[Op['like']]:'%'+_0x356585['query'][_0x2062a3(0x1e8)]+'%'},_0x2d789f;})})),_0x4c965f=_[_0x168356(0x231)]({},_0x4c965f,_0x356585['options']),_0x13eeac['getContacts'](_0x4c965f);})['then'](function(_0x39ef8c){const _0x32a4de=_0x2c0366;if(_0x39ef8c)return _0x13cd85=_0x39ef8c[_0x32a4de(0x127)],typeof _0x356585['query']['includeAll']!==_0x32a4de(0x149)&&(_0x4c965f[_0x32a4de(0x19a)]=[{'model':db[_0x32a4de(0x208)],'as':'List','required':![]},{'model':db[_0x32a4de(0x181)],'as':_0x32a4de(0x141),'attributes':['id',_0x32a4de(0x16f),_0x32a4de(0x12d)],'where':_0x356585[_0x32a4de(0x14f)][_0x32a4de(0x24a)]?{'id':_0x356585[_0x32a4de(0x14f)][_0x32a4de(0x24a)]}:undefined,'required':_0x356585[_0x32a4de(0x14f)][_0x32a4de(0x24a)]?!![]:![]}]),typeof _0x356585[_0x32a4de(0x14f)][_0x32a4de(0x23c)]===_0x32a4de(0x149)&&(_0x4c965f[_0x32a4de(0x124)]=qs[_0x32a4de(0x124)](_0x356585['query']['limit']),_0x4c965f[_0x32a4de(0x24d)]=qs[_0x32a4de(0x24d)](_0x356585[_0x32a4de(0x14f)][_0x32a4de(0x24d)])),_0x13eeac[_0x32a4de(0x1c5)](_0x4c965f);})['then'](function(_0x14071e){if(_0x14071e)return _0x14071e?{'count':_0x13cd85,'rows':_0x14071e}:null;})[_0x2c0366(0x17b)](respondWithResult(_0x396f29,null))[_0x2c0366(0x107)](handleError(_0x396f29,null));},exports[a775_0x14feaf(0x13b)]=function(_0x224db2,_0x37d117){const _0x20179e=a775_0x14feaf;let _0x5c7a29,_0x13c411={},_0x1a5756;return db[_0x20179e(0x1b8)][_0x20179e(0x121)]({'where':{'id':_0x224db2[_0x20179e(0x194)]['id']},'attributes':['id',_0x20179e(0x16f),_0x20179e(0x15e)]})[_0x20179e(0x17b)](handleEntityNotFound(_0x37d117,null))[_0x20179e(0x17b)](function(_0x360e77){const _0x367fc2=_0x20179e;if(!utils[_0x367fc2(0x224)](_0x224db2[_0x367fc2(0x14f)][_0x367fc2(0x215)]))throw new ValidationError(_0x367fc2(0x23f));_0x5c7a29=_0x360e77;const _0x446b10={};_0x446b10['model']=_[_0x367fc2(0x248)](db[_[_0x367fc2(0x18d)](_0x224db2[_0x367fc2(0x14f)][_0x367fc2(0x215)])+'Queue'][_0x367fc2(0x1a7)]),_0x446b10[_0x367fc2(0x14f)]=_[_0x367fc2(0x248)](_0x224db2[_0x367fc2(0x14f)]),_0x446b10[_0x367fc2(0x1d1)]=_['intersection'](_0x446b10['model'],_0x446b10[_0x367fc2(0x14f)]),_0x13c411[_0x367fc2(0x24f)]=_[_0x367fc2(0x22b)](_0x446b10[_0x367fc2(0x1a1)],qs[_0x367fc2(0x156)](_0x224db2[_0x367fc2(0x14f)][_0x367fc2(0x156)])),_0x13c411[_0x367fc2(0x24f)]=_0x13c411['attributes']['length']?_0x13c411[_0x367fc2(0x24f)]:_0x446b10['model'],_0x13c411[_0x367fc2(0x19b)]=qs['sort'](_0x224db2[_0x367fc2(0x14f)][_0x367fc2(0x157)]),_0x13c411[_0x367fc2(0x10c)]=qs[_0x367fc2(0x1d1)](_['pick'](_0x224db2[_0x367fc2(0x14f)],_0x446b10[_0x367fc2(0x1d1)]));_0x224db2[_0x367fc2(0x14f)]['filter']&&(_0x13c411[_0x367fc2(0x10c)]=_[_0x367fc2(0x231)](_0x13c411[_0x367fc2(0x10c)],{[Op['or']]:_[_0x367fc2(0x20f)](_0x13c411['attributes'],function(_0x3ba271){const _0x461173=_0x367fc2,_0x211539={};return _0x211539[_0x3ba271]={[Op[_0x461173(0x14b)]]:'%'+_0x224db2[_0x461173(0x14f)][_0x461173(0x1e8)]+'%'},_0x211539;})}));_0x13c411=_[_0x367fc2(0x231)]({},_0x13c411,_0x224db2[_0x367fc2(0x239)]);switch(_0x5c7a29['role']){case _0x367fc2(0x176):return db[_['capitalize'](_0x224db2['query']['channel'])+_0x367fc2(0x1ae)][_0x367fc2(0x1bf)](_0x13c411);case'user':case'agent':return _0x5c7a29[_0x367fc2(0x1c8)+_['capitalize'](_0x224db2[_0x367fc2(0x14f)][_0x367fc2(0x215)])+'Queues'](_0x13c411);default:throw new ValidationError(_0x367fc2(0x11e));}})['then'](function(_0x56bac7){const _0x548afc=_0x20179e;_0x1a5756=_0x56bac7[_0x548afc(0x127)];typeof _0x224db2[_0x548afc(0x14f)][_0x548afc(0x23c)]==='undefined'&&(_0x13c411[_0x548afc(0x124)]=qs[_0x548afc(0x124)](_0x224db2['query'][_0x548afc(0x124)]),_0x13c411['offset']=qs[_0x548afc(0x24d)](_0x224db2[_0x548afc(0x14f)]['offset']));switch(_0x5c7a29['role']){case'admin':return db[_[_0x548afc(0x18d)](_0x224db2[_0x548afc(0x14f)][_0x548afc(0x215)])+_0x548afc(0x1ae)][_0x548afc(0x1bf)](_0x13c411);case'user':case'agent':return _0x5c7a29[_0x548afc(0x1c8)+_[_0x548afc(0x18d)](_0x224db2[_0x548afc(0x14f)][_0x548afc(0x215)])+_0x548afc(0x1ac)](_0x13c411);}})['then'](function(_0x31ecb4){return{'count':_0x1a5756,'rows':_0x31ecb4};})[_0x20179e(0x17b)](respondWithResult(_0x37d117,null))[_0x20179e(0x107)](handleError(_0x37d117,null));},exports[a775_0x14feaf(0x1f4)]=function(_0x13c92f,_0x20ae64){const _0x20ecad=a775_0x14feaf;let _0x41ef3c={};const _0x268101={};let _0x511e6e,_0xb2c48;return db[_0x20ecad(0x1b8)]['findOne']({'where':{'id':_0x13c92f[_0x20ecad(0x194)]['id']}})['then'](handleEntityNotFound(_0x20ae64,null))[_0x20ecad(0x17b)](function(_0x5c9c37){const _0x515810=_0x20ecad;if(_0x5c9c37)return _0x511e6e=_0x5c9c37,_0x268101[_0x515810(0x1a1)]=_['keys'](db[_0x515810(0x185)][_0x515810(0x1a7)]),_0x268101[_0x515810(0x14f)]=_['keys'](_0x13c92f[_0x515810(0x14f)]),_0x268101[_0x515810(0x1d1)]=_[_0x515810(0x22b)](_0x268101[_0x515810(0x1a1)],_0x268101[_0x515810(0x14f)]),_0x41ef3c[_0x515810(0x24f)]=_[_0x515810(0x22b)](_0x268101[_0x515810(0x1a1)],qs[_0x515810(0x156)](_0x13c92f[_0x515810(0x14f)][_0x515810(0x156)])),_0x41ef3c['attributes']=_0x41ef3c['attributes'][_0x515810(0x127)]?_0x41ef3c[_0x515810(0x24f)]:_0x268101[_0x515810(0x1a1)],_0x41ef3c['order']=qs[_0x515810(0x157)](_0x13c92f[_0x515810(0x14f)][_0x515810(0x157)]),_0x41ef3c[_0x515810(0x10c)]=qs[_0x515810(0x1d1)](_[_0x515810(0x143)](_0x13c92f['query'],_0x268101[_0x515810(0x1d1)])),_0x13c92f[_0x515810(0x14f)][_0x515810(0x1e8)]&&(_0x41ef3c[_0x515810(0x10c)]=_['merge'](_0x41ef3c[_0x515810(0x10c)],{[Op['or']]:_[_0x515810(0x20f)](_0x41ef3c[_0x515810(0x24f)],function(_0x5ba1bf){const _0x2cd0be=_0x515810,_0x3967bb={};return _0x3967bb[_0x5ba1bf]={[Op['like']]:'%'+_0x13c92f[_0x2cd0be(0x14f)][_0x2cd0be(0x1e8)]+'%'},_0x3967bb;})})),_0x41ef3c=_[_0x515810(0x231)]({},_0x41ef3c,_0x13c92f[_0x515810(0x239)]),_0x511e6e[_0x515810(0x1f4)](_0x41ef3c);})[_0x20ecad(0x17b)](function(_0x320b01){const _0x3b8de3=_0x20ecad;if(_0x320b01)return _0xb2c48=_0x320b01[_0x3b8de3(0x127)],typeof _0x13c92f[_0x3b8de3(0x14f)]['nolimit']==='undefined'&&(_0x41ef3c[_0x3b8de3(0x124)]=qs[_0x3b8de3(0x124)](_0x13c92f[_0x3b8de3(0x14f)][_0x3b8de3(0x124)]),_0x41ef3c[_0x3b8de3(0x24d)]=qs[_0x3b8de3(0x24d)](_0x13c92f[_0x3b8de3(0x14f)]['offset'])),_0x511e6e['getVoiceQueuesRt'](_0x41ef3c);})[_0x20ecad(0x17b)](function(_0x279f0b){if(_0x279f0b)return _0x279f0b?{'count':_0xb2c48,'rows':_0x279f0b}:null;})[_0x20ecad(0x17b)](respondWithResult(_0x20ae64,null))[_0x20ecad(0x107)](handleError(_0x20ae64,null));},exports['getGroups']=function(_0x1222a9,_0xa772e3){const _0x32f503=a775_0x14feaf;let _0xb00bcb={};const _0x56ec72={};let _0x3ca40f,_0x13d475;return db['User'][_0x32f503(0x121)]({'where':{'id':_0x1222a9[_0x32f503(0x194)]['id']}})[_0x32f503(0x17b)](handleEntityNotFound(_0xa772e3,null))[_0x32f503(0x17b)](function(_0x5c085b){const _0x4f0294=_0x32f503;if(_0x5c085b)return _0x3ca40f=_0x5c085b,_0x56ec72[_0x4f0294(0x1a1)]=_[_0x4f0294(0x248)](db['ChatGroup'][_0x4f0294(0x1a7)]),_0x56ec72[_0x4f0294(0x14f)]=_['keys'](_0x1222a9[_0x4f0294(0x14f)]),_0x56ec72[_0x4f0294(0x1d1)]=_[_0x4f0294(0x22b)](_0x56ec72[_0x4f0294(0x1a1)],_0x56ec72['query']),_0xb00bcb['attributes']=_[_0x4f0294(0x22b)](_0x56ec72['model'],qs[_0x4f0294(0x156)](_0x1222a9['query'][_0x4f0294(0x156)])),_0xb00bcb['attributes']=_0xb00bcb['attributes'][_0x4f0294(0x127)]?_0xb00bcb[_0x4f0294(0x24f)]:_0x56ec72[_0x4f0294(0x1a1)],_0xb00bcb[_0x4f0294(0x19b)]=qs[_0x4f0294(0x157)](_0x1222a9[_0x4f0294(0x14f)]['sort']),_0xb00bcb[_0x4f0294(0x10c)]=qs['filters'](_['pick'](_0x1222a9[_0x4f0294(0x14f)],_0x56ec72['filters'])),_0x1222a9['query']['filter']&&(_0xb00bcb[_0x4f0294(0x10c)]=_[_0x4f0294(0x231)](_0xb00bcb[_0x4f0294(0x10c)],{[Op['or']]:_[_0x4f0294(0x20f)](_0xb00bcb[_0x4f0294(0x24f)],function(_0x1e689d){const _0x337bda=_0x4f0294,_0x2faf63={};return _0x2faf63[_0x1e689d]={[Op[_0x337bda(0x14b)]]:'%'+_0x1222a9[_0x337bda(0x14f)][_0x337bda(0x1e8)]+'%'},_0x2faf63;})})),_0xb00bcb=_[_0x4f0294(0x231)]({},_0xb00bcb,_0x1222a9['options']),_0x3ca40f[_0x4f0294(0x199)](_0xb00bcb);})[_0x32f503(0x17b)](function(_0x43b122){const _0x42efaf=_0x32f503;if(_0x43b122)return _0x13d475=_0x43b122[_0x42efaf(0x127)],typeof _0x1222a9[_0x42efaf(0x14f)][_0x42efaf(0x23c)]==='undefined'&&(_0xb00bcb[_0x42efaf(0x124)]=qs[_0x42efaf(0x124)](_0x1222a9[_0x42efaf(0x14f)][_0x42efaf(0x124)]),_0xb00bcb[_0x42efaf(0x24d)]=qs['offset'](_0x1222a9['query'][_0x42efaf(0x24d)])),_0x3ca40f[_0x42efaf(0x199)](_0xb00bcb);})[_0x32f503(0x17b)](function(_0x184241){if(_0x184241)return _0x184241?{'count':_0x13d475,'rows':_0x184241}:null;})[_0x32f503(0x17b)](respondWithResult(_0xa772e3,null))[_0x32f503(0x107)](handleError(_0xa772e3,null));},exports[a775_0x14feaf(0x1b0)]=function(_0x3c708d,_0x1938bf){const _0x15ebc2=a775_0x14feaf;let _0x33b274={'raw':!![],'where':{}};const _0x2ae5f4={},_0x28a54e={'count':0x0,'rows':[]};return db['User'][_0x15ebc2(0x121)]({'where':{'id':_0x3c708d[_0x15ebc2(0x194)]['id']}})[_0x15ebc2(0x17b)](handleEntityNotFound(_0x1938bf,null))[_0x15ebc2(0x17b)](function(_0x5640b8){const _0x1cb4d9=_0x15ebc2;if(_0x5640b8)return _0x2ae5f4['model']=_[_0x1cb4d9(0x248)](db[_0x1cb4d9(0x165)][_0x1cb4d9(0x1a7)]),_0x2ae5f4[_0x1cb4d9(0x14f)]=_[_0x1cb4d9(0x248)](_0x3c708d[_0x1cb4d9(0x14f)]),_0x2ae5f4[_0x1cb4d9(0x1d1)]=_[_0x1cb4d9(0x22b)](_0x2ae5f4[_0x1cb4d9(0x1a1)],_0x2ae5f4[_0x1cb4d9(0x14f)]),_0x33b274['attributes']=_[_0x1cb4d9(0x22b)](_0x2ae5f4['model'],qs[_0x1cb4d9(0x156)](_0x3c708d['query'][_0x1cb4d9(0x156)])),_0x33b274['attributes']=_0x33b274['attributes'][_0x1cb4d9(0x127)]?_0x33b274[_0x1cb4d9(0x24f)]:_0x2ae5f4['model'],typeof _0x3c708d['query'][_0x1cb4d9(0x23c)]==='undefined'&&(_0x33b274[_0x1cb4d9(0x124)]=qs[_0x1cb4d9(0x124)](_0x3c708d[_0x1cb4d9(0x14f)][_0x1cb4d9(0x124)]),_0x33b274['offset']=qs[_0x1cb4d9(0x24d)](_0x3c708d[_0x1cb4d9(0x14f)][_0x1cb4d9(0x24d)])),_0x33b274['order']=qs[_0x1cb4d9(0x157)](_0x3c708d[_0x1cb4d9(0x14f)][_0x1cb4d9(0x157)]),_0x33b274['where']=qs[_0x1cb4d9(0x1d1)](_[_0x1cb4d9(0x143)](_0x3c708d[_0x1cb4d9(0x14f)],_0x2ae5f4[_0x1cb4d9(0x1d1)])),_0x33b274[_0x1cb4d9(0x10c)][_0x1cb4d9(0x222)]=_0x5640b8['id'],_0x3c708d['query'][_0x1cb4d9(0x1e8)]&&(_0x33b274[_0x1cb4d9(0x10c)]=_[_0x1cb4d9(0x231)](_0x33b274['where'],{[Op['or']]:_['map'](_0x33b274[_0x1cb4d9(0x24f)],function(_0x22bed6){const _0x56c4cf=_0x1cb4d9,_0x5b44e5={};return _0x5b44e5[_0x22bed6]={[Op[_0x56c4cf(0x14b)]]:'%'+_0x3c708d[_0x56c4cf(0x14f)][_0x56c4cf(0x1e8)]+'%'},_0x5b44e5;})})),_0x33b274=_[_0x1cb4d9(0x231)]({},_0x33b274,_0x3c708d[_0x1cb4d9(0x239)]),db[_0x1cb4d9(0x165)][_0x1cb4d9(0x18a)]({'where':_0x33b274[_0x1cb4d9(0x10c)]})[_0x1cb4d9(0x17b)](function(_0x4e0479){const _0x424c6d=_0x1cb4d9;return _0x28a54e[_0x424c6d(0x18a)]=_0x4e0479,_0x3c708d[_0x424c6d(0x14f)][_0x424c6d(0x17e)]&&(_0x33b274[_0x424c6d(0x19a)]=[{'all':!![]}]),db[_0x424c6d(0x165)]['findAll'](_0x33b274);})['then'](function(_0x5adb02){return _0x28a54e['rows']=_0x5adb02,_0x28a54e;});})[_0x15ebc2(0x17b)](respondWithFilteredResult(_0x1938bf,_0x33b274))['catch'](handleError(_0x1938bf,null));},exports[a775_0x14feaf(0x24c)]=function(_0x1d2df7,_0x23982e){const _0x2db4e8=a775_0x14feaf;let _0x5586a3={'raw':!![],'where':{}};const _0x4085b5={},_0x1297d4={'count':0x0,'rows':[]};return db[_0x2db4e8(0x1b8)][_0x2db4e8(0x121)]({'where':{'id':_0x1d2df7['params']['id']}})[_0x2db4e8(0x17b)](handleEntityNotFound(_0x23982e,null))[_0x2db4e8(0x17b)](function(_0x4c915a){const _0x16097e=_0x2db4e8;if(_0x4c915a)return _0x4085b5[_0x16097e(0x1a1)]=_['keys'](db[_0x16097e(0x1c9)][_0x16097e(0x1a7)]),_0x4085b5['query']=_['keys'](_0x1d2df7['query']),_0x4085b5[_0x16097e(0x1d1)]=_[_0x16097e(0x22b)](_0x4085b5['model'],_0x4085b5[_0x16097e(0x14f)]),_0x5586a3[_0x16097e(0x24f)]=_[_0x16097e(0x22b)](_0x4085b5[_0x16097e(0x1a1)],qs[_0x16097e(0x156)](_0x1d2df7[_0x16097e(0x14f)][_0x16097e(0x156)])),_0x5586a3['attributes']=_0x5586a3[_0x16097e(0x24f)]['length']?_0x5586a3['attributes']:_0x4085b5[_0x16097e(0x1a1)],typeof _0x1d2df7[_0x16097e(0x14f)]['nolimit']==='undefined'&&(_0x5586a3['limit']=qs['limit'](_0x1d2df7[_0x16097e(0x14f)][_0x16097e(0x124)]),_0x5586a3['offset']=qs[_0x16097e(0x24d)](_0x1d2df7[_0x16097e(0x14f)][_0x16097e(0x24d)])),_0x5586a3['order']=qs[_0x16097e(0x157)](_0x1d2df7[_0x16097e(0x14f)][_0x16097e(0x157)]),_0x5586a3['where']=qs[_0x16097e(0x1d1)](_[_0x16097e(0x143)](_0x1d2df7[_0x16097e(0x14f)],_0x4085b5['filters'])),_0x5586a3['where']['UserId']=_0x4c915a['id'],_0x1d2df7['query'][_0x16097e(0x1e8)]&&(_0x5586a3['where']=_[_0x16097e(0x231)](_0x5586a3[_0x16097e(0x10c)],{[Op['or']]:_[_0x16097e(0x20f)](_0x5586a3[_0x16097e(0x24f)],function(_0x5d6dae){const _0x50853a=_0x16097e,_0x24f76c={};return _0x24f76c[_0x5d6dae]={[Op[_0x50853a(0x14b)]]:'%'+_0x1d2df7[_0x50853a(0x14f)][_0x50853a(0x1e8)]+'%'},_0x24f76c;})})),_0x5586a3=_[_0x16097e(0x231)]({},_0x5586a3,_0x1d2df7[_0x16097e(0x239)]),db[_0x16097e(0x1c9)]['count']({'where':_0x5586a3['where']})['then'](function(_0x51baee){const _0x3eb3e4=_0x16097e;return _0x1297d4[_0x3eb3e4(0x18a)]=_0x51baee,_0x1d2df7[_0x3eb3e4(0x14f)][_0x3eb3e4(0x17e)]&&(_0x5586a3['include']=[{'all':!![]}]),db[_0x3eb3e4(0x1c9)][_0x3eb3e4(0x1bf)](_0x5586a3);})[_0x16097e(0x17b)](function(_0x1be171){const _0x17886a=_0x16097e;return _0x1297d4[_0x17886a(0x152)]=_0x1be171,_0x1297d4;});})[_0x2db4e8(0x17b)](respondWithFilteredResult(_0x23982e,_0x5586a3))[_0x2db4e8(0x107)](handleError(_0x23982e,null));},exports[a775_0x14feaf(0x1ba)]=function(_0x108fd5,_0x46d9eb){const _0x2db0a7=a775_0x14feaf;let _0x32e906={};const _0x31f3d7={};let _0x128f07,_0xcf1e9c;return db['User']['findOne']({'where':{'id':_0x108fd5[_0x2db0a7(0x194)]['id']}})[_0x2db0a7(0x17b)](handleEntityNotFound(_0x46d9eb,null))[_0x2db0a7(0x17b)](function(_0x43c1a6){const _0x495dcc=_0x2db0a7;if(_0x43c1a6)return _0x128f07=_0x43c1a6,_0x31f3d7[_0x495dcc(0x1a1)]=_[_0x495dcc(0x248)](db['ChatInteraction'][_0x495dcc(0x1a7)]),_0x31f3d7[_0x495dcc(0x14f)]=_['keys'](_0x108fd5[_0x495dcc(0x14f)]),_0x31f3d7[_0x495dcc(0x1d1)]=_[_0x495dcc(0x22b)](_0x31f3d7[_0x495dcc(0x1a1)],_0x31f3d7[_0x495dcc(0x14f)]),_0x32e906['attributes']=_[_0x495dcc(0x22b)](_0x31f3d7[_0x495dcc(0x1a1)],qs[_0x495dcc(0x156)](_0x108fd5['query'][_0x495dcc(0x156)])),_0x32e906[_0x495dcc(0x24f)]=_0x32e906[_0x495dcc(0x24f)][_0x495dcc(0x127)]?_0x32e906[_0x495dcc(0x24f)]:_0x31f3d7[_0x495dcc(0x1a1)],_0x32e906[_0x495dcc(0x19b)]=qs[_0x495dcc(0x157)](_0x108fd5[_0x495dcc(0x14f)]['sort']),_0x32e906[_0x495dcc(0x10c)]=qs['filters'](_[_0x495dcc(0x143)](_0x108fd5[_0x495dcc(0x14f)],_0x31f3d7[_0x495dcc(0x1d1)])),_0x108fd5[_0x495dcc(0x14f)][_0x495dcc(0x1e8)]&&(_0x32e906[_0x495dcc(0x10c)]=_[_0x495dcc(0x231)](_0x32e906[_0x495dcc(0x10c)],{[Op['or']]:_['map'](_0x32e906['attributes'],function(_0x26659a){const _0x2adf47=_0x495dcc,_0x19105d={};return _0x19105d[_0x26659a]={[Op[_0x2adf47(0x14b)]]:'%'+_0x108fd5[_0x2adf47(0x14f)][_0x2adf47(0x1e8)]+'%'},_0x19105d;})})),_0x32e906=_[_0x495dcc(0x231)]({},_0x32e906,_0x108fd5[_0x495dcc(0x239)]),_0x128f07['getChatInteractions'](_0x32e906);})[_0x2db0a7(0x17b)](function(_0x3f9a17){const _0x4cab52=_0x2db0a7;if(_0x3f9a17)return _0xcf1e9c=_0x3f9a17[_0x4cab52(0x127)],typeof _0x108fd5[_0x4cab52(0x14f)]['nolimit']===_0x4cab52(0x149)&&(_0x32e906[_0x4cab52(0x124)]=qs[_0x4cab52(0x124)](_0x108fd5[_0x4cab52(0x14f)]['limit']),_0x32e906[_0x4cab52(0x24d)]=qs[_0x4cab52(0x24d)](_0x108fd5['query'][_0x4cab52(0x24d)])),_0x128f07[_0x4cab52(0x1ba)](_0x32e906);})[_0x2db0a7(0x17b)](function(_0xbc68c7){if(_0xbc68c7)return _0xbc68c7?{'count':_0xcf1e9c,'rows':_0xbc68c7}:null;})[_0x2db0a7(0x17b)](respondWithResult(_0x46d9eb,null))['catch'](handleError(_0x46d9eb,null));},exports[a775_0x14feaf(0x1af)]=function(_0x25189f,_0x3bc3ca){const _0x425060=a775_0x14feaf;let _0x21a133={};const _0x146719={};let _0x97ea60,_0x266e08;return db[_0x425060(0x1b8)][_0x425060(0x121)]({'where':{'id':_0x25189f[_0x425060(0x194)]['id']}})[_0x425060(0x17b)](handleEntityNotFound(_0x3bc3ca,null))[_0x425060(0x17b)](function(_0x205c3f){const _0x4f7ce6=_0x425060;if(_0x205c3f)return _0x97ea60=_0x205c3f,_0x146719[_0x4f7ce6(0x1a1)]=_['keys'](db[_0x4f7ce6(0x192)][_0x4f7ce6(0x1a7)]),_0x146719[_0x4f7ce6(0x14f)]=_[_0x4f7ce6(0x248)](_0x25189f['query']),_0x146719[_0x4f7ce6(0x1d1)]=_['intersection'](_0x146719['model'],_0x146719[_0x4f7ce6(0x14f)]),_0x21a133[_0x4f7ce6(0x24f)]=_[_0x4f7ce6(0x22b)](_0x146719[_0x4f7ce6(0x1a1)],qs[_0x4f7ce6(0x156)](_0x25189f['query'][_0x4f7ce6(0x156)])),_0x21a133[_0x4f7ce6(0x24f)]=_0x21a133[_0x4f7ce6(0x24f)]['length']?_0x21a133[_0x4f7ce6(0x24f)]:_0x146719[_0x4f7ce6(0x1a1)],_0x21a133['order']=qs['sort'](_0x25189f[_0x4f7ce6(0x14f)][_0x4f7ce6(0x157)]),_0x21a133[_0x4f7ce6(0x10c)]=qs[_0x4f7ce6(0x1d1)](_[_0x4f7ce6(0x143)](_0x25189f['query'],_0x146719[_0x4f7ce6(0x1d1)])),_0x25189f[_0x4f7ce6(0x14f)][_0x4f7ce6(0x1e8)]&&(_0x21a133[_0x4f7ce6(0x10c)]=_[_0x4f7ce6(0x231)](_0x21a133['where'],{[Op['or']]:_[_0x4f7ce6(0x20f)](_0x21a133[_0x4f7ce6(0x24f)],function(_0x2bcdfb){const _0x58d023=_0x4f7ce6,_0x16be49={};return _0x16be49[_0x2bcdfb]={[Op[_0x58d023(0x14b)]]:'%'+_0x25189f[_0x58d023(0x14f)][_0x58d023(0x1e8)]+'%'},_0x16be49;})})),_0x21a133=_[_0x4f7ce6(0x231)]({},_0x21a133,_0x25189f[_0x4f7ce6(0x239)]),_0x97ea60[_0x4f7ce6(0x1af)](_0x21a133);})[_0x425060(0x17b)](function(_0x3591c5){const _0x526b94=_0x425060;if(_0x3591c5)return _0x266e08=_0x3591c5[_0x526b94(0x127)],typeof _0x25189f[_0x526b94(0x14f)]['nolimit']===_0x526b94(0x149)&&(_0x21a133[_0x526b94(0x124)]=qs[_0x526b94(0x124)](_0x25189f['query'][_0x526b94(0x124)]),_0x21a133[_0x526b94(0x24d)]=qs[_0x526b94(0x24d)](_0x25189f[_0x526b94(0x14f)][_0x526b94(0x24d)])),_0x97ea60[_0x526b94(0x1af)](_0x21a133);})['then'](function(_0x3ce7ad){if(_0x3ce7ad)return _0x3ce7ad?{'count':_0x266e08,'rows':_0x3ce7ad}:null;})['then'](respondWithResult(_0x3bc3ca,null))[_0x425060(0x107)](handleError(_0x3bc3ca,null));},exports[a775_0x14feaf(0x167)]=function(_0xc22673,_0x2ddaa3){const _0x270a0e=a775_0x14feaf;let _0x2a791b={'raw':!![],'where':{}};const _0x46b77b={},_0x2d62da={'count':0x0,'rows':[]};return db[_0x270a0e(0x1b8)][_0x270a0e(0x121)]({'where':{'id':_0xc22673[_0x270a0e(0x194)]['id']}})[_0x270a0e(0x17b)](handleEntityNotFound(_0x2ddaa3,null))[_0x270a0e(0x17b)](function(_0x2d96b6){const _0x434989=_0x270a0e;if(_0x2d96b6)return _0x46b77b[_0x434989(0x1a1)]=_[_0x434989(0x248)](db[_0x434989(0x11a)][_0x434989(0x1a7)]),_0x46b77b['query']=_[_0x434989(0x248)](_0xc22673[_0x434989(0x14f)]),_0x46b77b[_0x434989(0x1d1)]=_[_0x434989(0x22b)](_0x46b77b[_0x434989(0x1a1)],_0x46b77b[_0x434989(0x14f)]),_0x2a791b[_0x434989(0x24f)]=_[_0x434989(0x22b)](_0x46b77b[_0x434989(0x1a1)],qs[_0x434989(0x156)](_0xc22673['query']['fields'])),_0x2a791b[_0x434989(0x24f)]=_0x2a791b[_0x434989(0x24f)][_0x434989(0x127)]?_0x2a791b[_0x434989(0x24f)]:_0x46b77b[_0x434989(0x1a1)],typeof _0xc22673[_0x434989(0x14f)][_0x434989(0x23c)]===_0x434989(0x149)&&(_0x2a791b[_0x434989(0x124)]=qs[_0x434989(0x124)](_0xc22673[_0x434989(0x14f)]['limit']),_0x2a791b[_0x434989(0x24d)]=qs[_0x434989(0x24d)](_0xc22673[_0x434989(0x14f)][_0x434989(0x24d)])),_0x2a791b[_0x434989(0x19b)]=qs['sort'](_0xc22673['query']['sort']),_0x2a791b[_0x434989(0x10c)]=qs[_0x434989(0x1d1)](_['pick'](_0xc22673[_0x434989(0x14f)],_0x46b77b[_0x434989(0x1d1)])),_0x2a791b[_0x434989(0x10c)][_0x434989(0x222)]=_0x2d96b6['id'],_0xc22673[_0x434989(0x14f)][_0x434989(0x1e8)]&&(_0x2a791b[_0x434989(0x10c)]=_['merge'](_0x2a791b[_0x434989(0x10c)],{[Op['or']]:_['map'](_0x2a791b[_0x434989(0x24f)],function(_0x5e7e1c){const _0x221083=_0x434989,_0x3936ef={};return _0x3936ef[_0x5e7e1c]={[Op['like']]:'%'+_0xc22673[_0x221083(0x14f)][_0x221083(0x1e8)]+'%'},_0x3936ef;})})),_0x2a791b=_[_0x434989(0x231)]({},_0x2a791b,_0xc22673[_0x434989(0x239)]),db['MailInteraction'][_0x434989(0x18a)]({'where':_0x2a791b[_0x434989(0x10c)]})[_0x434989(0x17b)](function(_0x3eb713){const _0x141256=_0x434989;return _0x2d62da[_0x141256(0x18a)]=_0x3eb713,_0xc22673[_0x141256(0x14f)][_0x141256(0x17e)]&&(_0x2a791b[_0x141256(0x19a)]=[{'all':!![]}]),db[_0x141256(0x11a)]['findAll'](_0x2a791b);})[_0x434989(0x17b)](function(_0x3853e0){const _0x153f9c=_0x434989;return _0x2d62da[_0x153f9c(0x152)]=_0x3853e0,_0x2d62da;});})[_0x270a0e(0x17b)](respondWithFilteredResult(_0x2ddaa3,_0x2a791b))['catch'](handleError(_0x2ddaa3,null));},exports['getSmsInteractions']=function(_0x1b657b,_0x1f11ab){const _0xaa303=a775_0x14feaf;let _0x437ab5={};const _0x1513db={};let _0x596b59,_0x45a2a8;return db['User'][_0xaa303(0x121)]({'where':{'id':_0x1b657b['params']['id']}})['then'](handleEntityNotFound(_0x1f11ab,null))[_0xaa303(0x17b)](function(_0x5e42ee){const _0x351625=_0xaa303;if(_0x5e42ee)return _0x596b59=_0x5e42ee,_0x1513db[_0x351625(0x1a1)]=_['keys'](db['SmsInteraction'][_0x351625(0x1a7)]),_0x1513db[_0x351625(0x14f)]=_[_0x351625(0x248)](_0x1b657b['query']),_0x1513db[_0x351625(0x1d1)]=_[_0x351625(0x22b)](_0x1513db[_0x351625(0x1a1)],_0x1513db['query']),_0x437ab5[_0x351625(0x24f)]=_['intersection'](_0x1513db[_0x351625(0x1a1)],qs['fields'](_0x1b657b['query']['fields'])),_0x437ab5[_0x351625(0x24f)]=_0x437ab5[_0x351625(0x24f)][_0x351625(0x127)]?_0x437ab5[_0x351625(0x24f)]:_0x1513db[_0x351625(0x1a1)],_0x437ab5['order']=qs[_0x351625(0x157)](_0x1b657b['query'][_0x351625(0x157)]),_0x437ab5['where']=qs[_0x351625(0x1d1)](_[_0x351625(0x143)](_0x1b657b['query'],_0x1513db[_0x351625(0x1d1)])),_0x1b657b['query'][_0x351625(0x1e8)]&&(_0x437ab5[_0x351625(0x10c)]=_[_0x351625(0x231)](_0x437ab5[_0x351625(0x10c)],{[Op['or']]:_['map'](_0x437ab5[_0x351625(0x24f)],function(_0x2fb3d7){const _0x4ef11c=_0x351625,_0x16550d={};return _0x16550d[_0x2fb3d7]={[Op[_0x4ef11c(0x14b)]]:'%'+_0x1b657b[_0x4ef11c(0x14f)][_0x4ef11c(0x1e8)]+'%'},_0x16550d;})})),_0x437ab5=_[_0x351625(0x231)]({},_0x437ab5,_0x1b657b[_0x351625(0x239)]),_0x596b59['getSmsInteractions'](_0x437ab5);})[_0xaa303(0x17b)](function(_0xf2abbe){const _0x285612=_0xaa303;if(_0xf2abbe)return _0x45a2a8=_0xf2abbe[_0x285612(0x127)],typeof _0x1b657b[_0x285612(0x14f)][_0x285612(0x23c)]===_0x285612(0x149)&&(_0x437ab5[_0x285612(0x124)]=qs[_0x285612(0x124)](_0x1b657b['query'][_0x285612(0x124)]),_0x437ab5[_0x285612(0x24d)]=qs['offset'](_0x1b657b[_0x285612(0x14f)]['offset'])),_0x596b59[_0x285612(0x255)](_0x437ab5);})[_0xaa303(0x17b)](function(_0x4af508){if(_0x4af508)return _0x4af508?{'count':_0x45a2a8,'rows':_0x4af508}:null;})[_0xaa303(0x17b)](respondWithResult(_0x1f11ab,null))[_0xaa303(0x107)](handleError(_0x1f11ab,null));},exports[a775_0x14feaf(0x1a5)]=function(_0x1ceea7,_0x462ff1){const _0x37bf57=a775_0x14feaf;let _0x4a84eb={};const _0x39832a={};let _0xaac265,_0x39be44;return db[_0x37bf57(0x1b8)]['findOne']({'where':{'id':_0x1ceea7[_0x37bf57(0x194)]['id']}})[_0x37bf57(0x17b)](handleEntityNotFound(_0x462ff1,null))[_0x37bf57(0x17b)](function(_0x305116){const _0x3db9ba=_0x37bf57;if(_0x305116)return _0xaac265=_0x305116,_0x39832a[_0x3db9ba(0x1a1)]=_[_0x3db9ba(0x248)](db[_0x3db9ba(0x1f5)][_0x3db9ba(0x1a7)]),_0x39832a[_0x3db9ba(0x14f)]=_[_0x3db9ba(0x248)](_0x1ceea7['query']),_0x39832a[_0x3db9ba(0x1d1)]=_['intersection'](_0x39832a[_0x3db9ba(0x1a1)],_0x39832a[_0x3db9ba(0x14f)]),_0x4a84eb[_0x3db9ba(0x24f)]=_[_0x3db9ba(0x22b)](_0x39832a['model'],qs['fields'](_0x1ceea7[_0x3db9ba(0x14f)][_0x3db9ba(0x156)])),_0x4a84eb[_0x3db9ba(0x24f)]=_0x4a84eb[_0x3db9ba(0x24f)][_0x3db9ba(0x127)]?_0x4a84eb['attributes']:_0x39832a[_0x3db9ba(0x1a1)],_0x4a84eb[_0x3db9ba(0x19b)]=qs[_0x3db9ba(0x157)](_0x1ceea7[_0x3db9ba(0x14f)][_0x3db9ba(0x157)]),_0x4a84eb['where']=qs[_0x3db9ba(0x1d1)](_[_0x3db9ba(0x143)](_0x1ceea7['query'],_0x39832a[_0x3db9ba(0x1d1)])),_0x1ceea7[_0x3db9ba(0x14f)]['filter']&&(_0x4a84eb[_0x3db9ba(0x10c)]=_[_0x3db9ba(0x231)](_0x4a84eb[_0x3db9ba(0x10c)],{[Op['or']]:_[_0x3db9ba(0x20f)](_0x4a84eb[_0x3db9ba(0x24f)],function(_0x407965){const _0x7ac920=_0x3db9ba,_0x393a13={};return _0x393a13[_0x407965]={[Op[_0x7ac920(0x14b)]]:'%'+_0x1ceea7[_0x7ac920(0x14f)]['filter']+'%'},_0x393a13;})})),_0x4a84eb=_['merge']({},_0x4a84eb,_0x1ceea7[_0x3db9ba(0x239)]),_0xaac265[_0x3db9ba(0x1a5)](_0x4a84eb);})['then'](function(_0x1c8cb9){const _0x4ebe0c=_0x37bf57;if(_0x1c8cb9)return _0x39be44=_0x1c8cb9[_0x4ebe0c(0x127)],typeof _0x1ceea7['query'][_0x4ebe0c(0x23c)]==='undefined'&&(_0x4a84eb[_0x4ebe0c(0x124)]=qs[_0x4ebe0c(0x124)](_0x1ceea7[_0x4ebe0c(0x14f)][_0x4ebe0c(0x124)]),_0x4a84eb['offset']=qs[_0x4ebe0c(0x24d)](_0x1ceea7[_0x4ebe0c(0x14f)]['offset'])),_0xaac265['getFaxInteractions'](_0x4a84eb);})[_0x37bf57(0x17b)](function(_0xeb9224){if(_0xeb9224)return _0xeb9224?{'count':_0x39be44,'rows':_0xeb9224}:null;})[_0x37bf57(0x17b)](respondWithResult(_0x462ff1,null))[_0x37bf57(0x107)](handleError(_0x462ff1,null));},exports[a775_0x14feaf(0x197)]=function(_0xf48aaa,_0x3add3f){const _0x1b40fd=a775_0x14feaf;let _0x81ec84={};const _0x1be700={};let _0xf06b0d,_0x3e68cd;return db['User']['findOne']({'where':{'id':_0xf48aaa[_0x1b40fd(0x194)]['id']}})['then'](handleEntityNotFound(_0x3add3f,null))['then'](function(_0x1638d4){const _0x3f73ed=_0x1b40fd;if(_0x1638d4)return _0xf06b0d=_0x1638d4,_0x1be700['model']=_[_0x3f73ed(0x248)](db[_0x3f73ed(0x24e)][_0x3f73ed(0x1a7)]),_0x1be700['query']=_[_0x3f73ed(0x248)](_0xf48aaa[_0x3f73ed(0x14f)]),_0x1be700[_0x3f73ed(0x1d1)]=_[_0x3f73ed(0x22b)](_0x1be700['model'],_0x1be700[_0x3f73ed(0x14f)]),_0x81ec84[_0x3f73ed(0x24f)]=_[_0x3f73ed(0x22b)](_0x1be700[_0x3f73ed(0x1a1)],qs[_0x3f73ed(0x156)](_0xf48aaa[_0x3f73ed(0x14f)][_0x3f73ed(0x156)])),_0x81ec84[_0x3f73ed(0x24f)]=_0x81ec84[_0x3f73ed(0x24f)][_0x3f73ed(0x127)]?_0x81ec84[_0x3f73ed(0x24f)]:_0x1be700[_0x3f73ed(0x1a1)],_0x81ec84['order']=qs[_0x3f73ed(0x157)](_0xf48aaa['query']['sort']),_0x81ec84[_0x3f73ed(0x10c)]=qs[_0x3f73ed(0x1d1)](_[_0x3f73ed(0x143)](_0xf48aaa['query'],_0x1be700['filters'])),_0xf48aaa[_0x3f73ed(0x14f)]['filter']&&(_0x81ec84['where']=_[_0x3f73ed(0x231)](_0x81ec84['where'],{[Op['or']]:_['map'](_0x81ec84[_0x3f73ed(0x24f)],function(_0x47f02f){const _0x100f7c=_0x3f73ed,_0x17d20e={};return _0x17d20e[_0x47f02f]={[Op[_0x100f7c(0x14b)]]:'%'+_0xf48aaa[_0x100f7c(0x14f)][_0x100f7c(0x1e8)]+'%'},_0x17d20e;})})),_0x81ec84=_[_0x3f73ed(0x231)]({},_0x81ec84,_0xf48aaa[_0x3f73ed(0x239)]),_0xf06b0d['getWhatsappInteractions'](_0x81ec84);})[_0x1b40fd(0x17b)](function(_0x58e31d){const _0x356f69=_0x1b40fd;if(_0x58e31d)return _0x3e68cd=_0x58e31d['length'],typeof _0xf48aaa[_0x356f69(0x14f)][_0x356f69(0x23c)]===_0x356f69(0x149)&&(_0x81ec84[_0x356f69(0x124)]=qs[_0x356f69(0x124)](_0xf48aaa[_0x356f69(0x14f)]['limit']),_0x81ec84[_0x356f69(0x24d)]=qs[_0x356f69(0x24d)](_0xf48aaa[_0x356f69(0x14f)][_0x356f69(0x24d)])),_0xf06b0d[_0x356f69(0x197)](_0x81ec84);})['then'](function(_0x5267b9){if(_0x5267b9)return _0x5267b9?{'count':_0x3e68cd,'rows':_0x5267b9}:null;})[_0x1b40fd(0x17b)](respondWithResult(_0x3add3f,null))[_0x1b40fd(0x107)](handleError(_0x3add3f,null));},exports[a775_0x14feaf(0x159)]=function(_0x497704,_0x5ab937,_0x3dbc6c){const _0x375e90=a775_0x14feaf;let _0x138223,_0x11c46c,_0x441bc3;const _0x20f623=!_['isNil'](_0x497704['params']['id'])?_0x497704[_0x375e90(0x194)]['id']:!_['isNil'](_0x497704[_0x375e90(0x254)]['id'])?_0x497704[_0x375e90(0x254)]['id']:null;return db[_0x375e90(0x1b8)][_0x375e90(0x121)]({'where':{'id':_0x20f623,'role':{[Op['or']]:[_0x375e90(0x176),'user','agent']}},'attributes':['id',_0x375e90(0x16f),_0x375e90(0x25c),_0x375e90(0x1c4),'role','internal',_0x375e90(0x184)]})[_0x375e90(0x17b)](function(_0x53b0a3){const _0x43d6eb=_0x375e90;if(_0x53b0a3){if(_0x53b0a3[_0x43d6eb(0x15e)]===_0x43d6eb(0x122)){_0x138223=_0x53b0a3;if(_0x497704[_0x43d6eb(0x1fb)][_0x43d6eb(0x1d8)])_0x441bc3=util['format']('LOCAL/%s@from-sip/n',_0x138223[_0x497704[_0x43d6eb(0x1fb)][_0x43d6eb(0x1d8)]]);else _0x497704['body'][_0x43d6eb(0x13d)]?_0x441bc3=util['format'](_0x43d6eb(0x1c6),_0x497704[_0x43d6eb(0x1fb)][_0x43d6eb(0x13d)]):_0x441bc3=util[_0x43d6eb(0x1cc)]('SIP/%s',_0x138223[_0x43d6eb(0x16f)]);return socket['to'](util[_0x43d6eb(0x1cc)](_0x43d6eb(0x1d6),_0x138223[_0x43d6eb(0x16f)]))[_0x43d6eb(0x147)](_0x43d6eb(0x25e),{'ip':_0x497704[_0x43d6eb(0x22f)][_0x43d6eb(0x16c)]||_0x497704[_0x43d6eb(0x247)][_0x43d6eb(0x249)]||_0x497704[_0x43d6eb(0x1a6)][_0x43d6eb(0x249)]||_0x497704['connection'][_0x43d6eb(0x1a6)][_0x43d6eb(0x249)]}),db[_0x43d6eb(0x185)][_0x43d6eb(0x213)]({'where':{'membername':_0x138223[_0x43d6eb(0x16f)]},'individualHooks':!![]});}}else throw new ValidationError(_0x43d6eb(0x246));})[_0x375e90(0x17b)](function(){const _0x45644f=_0x375e90;if(_0x138223)return _0x138223[_0x45644f(0x1d2)]({'raw':!![]});})[_0x375e90(0x17b)](function(_0x2b14a4){const _0x5dac7d=_0x375e90;if(_0x138223){if(_0x2b14a4){_0x11c46c=_0x2b14a4;if(_0x11c46c[_0x5dac7d(0x127)]){const _0x150ce4=_0x11c46c[_0x5dac7d(0x20f)](_0x28aeff=>{const _0x22eef7=_0x5dac7d,_0x39e3d5={'membername':_0x138223[_0x22eef7(0x16f)],'UserId':_0x138223['id'],'queue_name':_0x28aeff[_0x22eef7(0x16f)],'VoiceQueueId':_0x28aeff['id'],'interface':_0x441bc3,'paused':_0x138223['loginInPause']||![],'penalty':_0x28aeff[_0x22eef7(0x22d)]||0x0};return db['UserVoiceQueueRt'][_0x22eef7(0x15b)](_0x39e3d5);});return Promise[_0x5dac7d(0x117)](_0x150ce4);}}}})[_0x375e90(0x17b)](function(){const _0x3f4513=_0x375e90;if(_0x138223)return db['MemberReport'][_0x3f4513(0x1bf)]({'where':{'membername':_0x138223['name'],'exitAt':null}});})[_0x375e90(0x17b)](function(_0x36ddf2){const _0x197efe=_0x375e90;if(_0x138223){const _0x522c24=[];return _0x36ddf2[_0x197efe(0x120)](function(_0x25b32a){const _0x32f95d=_0x197efe;_0x522c24['push'](_0x25b32a[_0x32f95d(0x1e2)]({'exitAt':moment()[_0x32f95d(0x1cc)]('YYYY-MM-DD\x20HH:mm:ss')}));}),Promise[_0x197efe(0x117)](_0x522c24);}})[_0x375e90(0x17b)](function(){const _0xb83014=_0x375e90;if(_0x138223){const _0x27fea1=[],_0x29e2fe=[],_0x150c46=utils['getChannels'](),_0x95758c={'membername':_0x138223[_0xb83014(0x16f)],'interface':_0x441bc3,'enterAt':moment()[_0xb83014(0x1cc)](_0xb83014(0x1ff)),'role':_0x138223[_0xb83014(0x15e)],'internal':_0x138223[_0xb83014(0x23a)]};return _0x150c46[_0xb83014(0x120)](function(_0x20b51d){const _0x17cce1=_0xb83014;_0x27fea1[_0x17cce1(0x233)](_[_0x17cce1(0x231)]({'channel':_0x20b51d,'type':_0x17cce1(0x19c),'data1':_0x497704[_0x17cce1(0x1fb)][_0x17cce1(0x10e)],'data2':_0x441bc3},_0x95758c)),_0x138223[_0x17cce1(0x184)]&&_0x29e2fe[_0x17cce1(0x233)](_[_0x17cce1(0x231)]({'channel':_0x20b51d,'type':_0x17cce1(0x214),'data1':_0x17cce1(0x204)},_0x95758c));}),db[_0xb83014(0x110)][_0xb83014(0x12c)](_0x27fea1[_0xb83014(0x201)](_0x29e2fe),{'individualHooks':!![]});}})[_0x375e90(0x17b)](function(){const _0x3cc08e=_0x375e90;if(_0x138223)return _0x138223[_0x3cc08e(0x1e2)]({'online':!![],'lastLoginAt':moment()[_0x3cc08e(0x1cc)](_0x3cc08e(0x1ff)),'voicePause':_0x138223[_0x3cc08e(0x184)]||![],'mailPause':_0x138223['loginInPause']||![],'chatPause':_0x138223['loginInPause']||![],'faxPause':_0x138223[_0x3cc08e(0x184)]||![],'smsPause':_0x138223[_0x3cc08e(0x184)]||![],'openchannelPause':_0x138223[_0x3cc08e(0x184)]||![],'whatsappPause':_0x138223[_0x3cc08e(0x184)]||![],'pauseType':_0x138223[_0x3cc08e(0x184)]?'LOGININPAUSE':null,'interface':_0x441bc3,'lastPauseAt':moment()[_0x3cc08e(0x1cc)](_0x3cc08e(0x1ff))});})[_0x375e90(0x17b)](function(_0x2ccd2e){const _0x5440b0=_0x375e90;return _0x497704[_0x5440b0(0x1b4)]?_0x3dbc6c():Promise['resolve'](_0x2ccd2e)[_0x5440b0(0x17b)](respondWithResult(_0x5ab937,null));})[_0x375e90(0x107)](handleError(_0x5ab937,null));},exports['logout']=function(_0x1a6d36,_0x58bed4){const _0x59bc4e=a775_0x14feaf;let _0x5235ec;return db[_0x59bc4e(0x1b8)]['findOne']({'where':{'id':_0x1a6d36[_0x59bc4e(0x194)]['id'],'role':_0x59bc4e(0x122)},'attributes':['id',_0x59bc4e(0x16f),_0x59bc4e(0x15e)]})[_0x59bc4e(0x17b)](handleEntityNotFound(_0x58bed4,null))[_0x59bc4e(0x17b)](function(_0x3ca84e){const _0xc0ed1c=_0x59bc4e;if(_0x3ca84e)return _0x5235ec=_0x3ca84e,db[_0xc0ed1c(0x185)][_0xc0ed1c(0x213)]({'where':{'membername':_0x5235ec[_0xc0ed1c(0x16f)]},'individualHooks':!![]});})[_0x59bc4e(0x17b)](function(){const _0x2f8340=_0x59bc4e;return db['MemberReport']['findAll']({'where':{'membername':_0x5235ec[_0x2f8340(0x16f)],'exitAt':null}});})[_0x59bc4e(0x17b)](function(_0x56c4ec){const _0xa94ff4=_0x59bc4e,_0x230a46=[];return _0x56c4ec[_0xa94ff4(0x120)](function(_0x3c453a){const _0x119df7=_0xa94ff4;_0x230a46[_0x119df7(0x233)](_0x3c453a[_0x119df7(0x1e2)]({'exitAt':moment()[_0x119df7(0x1cc)](_0x119df7(0x1ff))}));}),Promise[_0xa94ff4(0x117)](_0x230a46);})['then'](function(){const _0xfc1a10=_0x59bc4e;return _0x5235ec[_0xfc1a10(0x1e2)]({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![],'whatsappPause':![],'interface':null});})[_0x59bc4e(0x17b)](respondWithResult(_0x58bed4,null))[_0x59bc4e(0x107)](handleError(_0x58bed4,null));},exports[a775_0x14feaf(0x1c0)]=function(_0x390e67,_0x1c4ea4){const _0x23093d=a775_0x14feaf;let _0x145a92;return db[_0x23093d(0x185)][_0x23093d(0x1e2)]({'paused':0x1},{'where':{'UserId':_0x390e67[_0x23093d(0x194)]['id']},'individualHooks':!![]})[_0x23093d(0x17b)](function(){const _0x3343bd=_0x23093d;return db[_0x3343bd(0x1b8)]['findOne']({'where':{'id':_0x390e67[_0x3343bd(0x194)]['id'],'role':'agent'},'attributes':['id','name',_0x3343bd(0x15e),'internal',_0x3343bd(0x1d8)]});})[_0x23093d(0x17b)](handleEntityNotFound(_0x1c4ea4,null))[_0x23093d(0x17b)](function(_0x208139){const _0x47ebae=_0x23093d;if(_0x208139)return _0x145a92=_0x208139,respondWithRpcPromise(_0x47ebae(0x155),_0x47ebae(0x1c0),{'id':_0x145a92['id'],'name':_0x145a92[_0x47ebae(0x16f)],'pause':!![]});})[_0x23093d(0x17b)](function(){const _0x5bd7c7=_0x23093d;if(_0x145a92)return db[_0x5bd7c7(0x110)][_0x5bd7c7(0x1bf)]({'where':{'membername':_0x145a92[_0x5bd7c7(0x16f)],'type':_0x5bd7c7(0x214),'exitAt':null}});})[_0x23093d(0x17b)](function(_0x19d74c){const _0x42aa63=_0x23093d;if(_0x19d74c[_0x42aa63(0x127)]){const _0x51cc4e=moment()[_0x42aa63(0x1cc)](_0x42aa63(0x1ff));for(let _0x4c7a3b=0x0,_0x4335ba=_0x19d74c['length'];_0x4c7a3b<_0x4335ba;_0x4c7a3b++){_0x19d74c[_0x4c7a3b]['update']({'exitAt':_0x51cc4e});}}})[_0x23093d(0x17b)](function(){const _0x29dcda=_0x23093d,_0x3411de=[],_0x353eba=utils[_0x29dcda(0x17d)]();return _0x353eba['forEach'](function(_0x4c270b){const _0x3123a5=_0x29dcda;_0x3411de[_0x3123a5(0x233)]({'channel':_0x4c270b,'membername':_0x145a92[_0x3123a5(0x16f)],'interface':_[_0x3123a5(0x25d)](_0x145a92['interface'])?util[_0x3123a5(0x1cc)](_0x3123a5(0x1c6),_0x145a92['name']):_0x145a92[_0x3123a5(0x1d8)],'type':_0x3123a5(0x214),'enterAt':moment()[_0x3123a5(0x1cc)](_0x3123a5(0x1ff)),'data1':_0x390e67[_0x3123a5(0x1fb)][_0x3123a5(0x228)]||_0x3123a5(0x22c),'role':_0x145a92[_0x3123a5(0x15e)],'internal':_0x145a92[_0x3123a5(0x23a)]});}),db[_0x29dcda(0x110)][_0x29dcda(0x12c)](_0x3411de,{'individualHooks':!![]});})[_0x23093d(0x17b)](function(){const _0x5ef934=_0x23093d;return _0x145a92[_0x5ef934(0x1e2)]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'whatsappPause':!![],'openchannelPause':!![],'pauseType':_0x390e67['body']['type']||_0x5ef934(0x22c),'lastPauseAt':moment()[_0x5ef934(0x1cc)](_0x5ef934(0x1ff))});})[_0x23093d(0x17b)](respondWithResult(_0x1c4ea4,null))[_0x23093d(0x107)](handleError(_0x1c4ea4,null));},exports[a775_0x14feaf(0x1fc)]=function(_0x3a1a9e,_0x2e9ec3){const _0x4bab93=a775_0x14feaf;let _0x5c9367;return db[_0x4bab93(0x1b8)][_0x4bab93(0x121)]({'where':{'id':_0x3a1a9e[_0x4bab93(0x194)]['id']},'attributes':['id',_0x4bab93(0x16f),_0x4bab93(0x15e),'voicePause',_0x4bab93(0x14d),_0x4bab93(0x139),_0x4bab93(0x1e7),_0x4bab93(0x180),_0x4bab93(0xfc),_0x4bab93(0x19d),_0x4bab93(0x1f1),'lastPauseAt']})[_0x4bab93(0x17b)](handleEntityNotFound(_0x2e9ec3,null))[_0x4bab93(0x17b)](function(_0x1838d0){const _0x5e2a22=_0x4bab93;if(_0x1838d0){_0x5c9367=_0x1838d0;if(_0x3a1a9e[_0x5e2a22(0x1fb)][_0x5e2a22(0x215)]&&!utils[_0x5e2a22(0x224)](_0x3a1a9e[_0x5e2a22(0x1fb)][_0x5e2a22(0x215)]))throw new ValidationError(_0x5e2a22(0x23f));switch(_0x3a1a9e[_0x5e2a22(0x1fb)][_0x5e2a22(0x215)]){case'voice':return respondWithRpcPromise(_0x5e2a22(0x155),_0x5e2a22(0x1fc),{'id':_0x5c9367['id'],'name':_0x5c9367[_0x5e2a22(0x16f)],'pause':![]})[_0x5e2a22(0x17b)](function(){const _0x525517=_0x5e2a22;return db[_0x525517(0x185)][_0x525517(0x1e2)]({'paused':0x0},{'where':{'UserId':_0x5c9367['id']},'individualHooks':!![]});})[_0x5e2a22(0x17b)](function(){const _0x335200=_0x5e2a22;return db[_0x335200(0x110)][_0x335200(0x121)]({'where':{'channel':_0x3a1a9e['body']['channel'],'membername':_0x5c9367[_0x335200(0x16f)],'type':_0x335200(0x214),'exitAt':null}});})[_0x5e2a22(0x17b)](function(_0x3e27c8){const _0x1efe5f=_0x5e2a22;if(_0x3e27c8)return _0x3e27c8[_0x1efe5f(0x1e2)]({'exitAt':moment()[_0x1efe5f(0x1cc)]('YYYY-MM-DD\x20HH:mm:ss'),'data2':_0x1efe5f(0x256)},{'individualHooks':!![]});return null;})[_0x5e2a22(0x17b)](function(){const _0x14e3cf=_0x5e2a22;return _0x5c9367[_0x14e3cf(0x1e2)]({'voicePause':![]});});case'mail':case _0x5e2a22(0x146):case'fax':case'sms':case'whatsapp':case _0x5e2a22(0x17f):return db['MemberReport']['findOne']({'where':{'channel':_0x3a1a9e[_0x5e2a22(0x1fb)]['channel'],'membername':_0x5c9367[_0x5e2a22(0x16f)],'type':_0x5e2a22(0x214),'exitAt':null}})[_0x5e2a22(0x17b)](function(_0x359f36){const _0x83a2f0=_0x5e2a22;if(_0x359f36)return _0x359f36[_0x83a2f0(0x1e2)]({'exitAt':moment()[_0x83a2f0(0x1cc)]('YYYY-MM-DD\x20HH:mm:ss'),'data2':_0x83a2f0(0x256)},{'individualHooks':!![]});return null;})[_0x5e2a22(0x17b)](function(){const _0x48147c=_0x5e2a22,_0x651a0c={};return _[_0x48147c(0xfa)](_0x651a0c,util['format'](_0x48147c(0x251),_0x3a1a9e['body'][_0x48147c(0x215)],_0x48147c(0x1ca)),![]),_0x5c9367[_0x48147c(0x1e2)](_0x651a0c);});default:return respondWithRpcPromise(_0x5e2a22(0x155),_0x5e2a22(0x1fc),{'id':_0x5c9367['id'],'name':_0x5c9367['name'],'pause':![]})[_0x5e2a22(0x17b)](function(){const _0x5cde01=_0x5e2a22;return db[_0x5cde01(0x185)][_0x5cde01(0x1e2)]({'paused':0x0},{'where':{'UserId':_0x5c9367['id']}});})[_0x5e2a22(0x17b)](function(){const _0x15ca62=_0x5e2a22;return db[_0x15ca62(0x110)][_0x15ca62(0x1bf)]({'where':{'membername':_0x5c9367[_0x15ca62(0x16f)],'type':'PAUSE','exitAt':null}});})['then'](function(_0x3d0782){const _0x287b13=_0x5e2a22,_0x1373e0=[];return _0x3d0782['forEach'](function(_0xf7e693){const _0x9a805b=a775_0x2b78;_0x1373e0['push'](_0xf7e693[_0x9a805b(0x1e2)]({'exitAt':moment()[_0x9a805b(0x1cc)](_0x9a805b(0x1ff)),'data2':_0x9a805b(0x256)}));}),Promise[_0x287b13(0x117)](_0x1373e0);})[_0x5e2a22(0x17b)](function(){const _0x969689=_0x5e2a22;return _0x5c9367[_0x969689(0x1e2)]({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'whatsappPause':![],'openchannelPause':![]});});}}})[_0x4bab93(0x17b)](respondWithResult(_0x2e9ec3,null))['catch'](handleError(_0x2e9ec3,null));},exports['getTeams']=function(_0x1e71be,_0x25e5ba){const _0x3a3fe1=a775_0x14feaf;let _0x54b6ed={};const _0x33f5c8={};let _0x460fa8,_0x2d09a0;return db[_0x3a3fe1(0x1b8)][_0x3a3fe1(0x121)]({'where':{'id':_0x1e71be[_0x3a3fe1(0x194)]['id']}})['then'](handleEntityNotFound(_0x25e5ba,null))[_0x3a3fe1(0x17b)](function(_0x1c8d78){const _0x5b11d4=_0x3a3fe1;if(_0x1c8d78)return _0x460fa8=_0x1c8d78,_0x33f5c8[_0x5b11d4(0x1a1)]=_['keys'](db['Team']['rawAttributes']),_0x33f5c8[_0x5b11d4(0x14f)]=_['keys'](_0x1e71be['query']),_0x33f5c8[_0x5b11d4(0x1d1)]=_[_0x5b11d4(0x22b)](_0x33f5c8[_0x5b11d4(0x1a1)],_0x33f5c8[_0x5b11d4(0x14f)]),_0x54b6ed[_0x5b11d4(0x24f)]=_[_0x5b11d4(0x22b)](_0x33f5c8[_0x5b11d4(0x1a1)],qs[_0x5b11d4(0x156)](_0x1e71be['query'][_0x5b11d4(0x156)])),_0x54b6ed[_0x5b11d4(0x24f)]=_0x54b6ed[_0x5b11d4(0x24f)][_0x5b11d4(0x127)]?_0x54b6ed[_0x5b11d4(0x24f)]:_0x33f5c8['model'],_0x54b6ed[_0x5b11d4(0x19b)]=qs[_0x5b11d4(0x157)](_0x1e71be['query'][_0x5b11d4(0x157)]),_0x54b6ed[_0x5b11d4(0x10c)]=qs[_0x5b11d4(0x1d1)](_['pick'](_0x1e71be[_0x5b11d4(0x14f)],_0x33f5c8[_0x5b11d4(0x1d1)])),_0x1e71be['query'][_0x5b11d4(0x1e8)]&&(_0x54b6ed[_0x5b11d4(0x10c)]=_[_0x5b11d4(0x231)](_0x54b6ed['where'],{[Op['or']]:_['map'](_0x54b6ed[_0x5b11d4(0x24f)],function(_0x226897){const _0x4d3b24=_0x5b11d4,_0x19bc36={};return _0x19bc36[_0x226897]={[Op[_0x4d3b24(0x14b)]]:'%'+_0x1e71be[_0x4d3b24(0x14f)][_0x4d3b24(0x1e8)]+'%'},_0x19bc36;})})),_0x54b6ed=_[_0x5b11d4(0x231)]({},_0x54b6ed,_0x1e71be[_0x5b11d4(0x239)]),_0x460fa8[_0x5b11d4(0x18b)](_0x54b6ed);})[_0x3a3fe1(0x17b)](function(_0x4f937f){const _0x5cac4f=_0x3a3fe1;if(_0x4f937f)return _0x2d09a0=_0x4f937f[_0x5cac4f(0x127)],typeof _0x1e71be[_0x5cac4f(0x14f)]['nolimit']===_0x5cac4f(0x149)&&(_0x54b6ed[_0x5cac4f(0x124)]=qs['limit'](_0x1e71be['query'][_0x5cac4f(0x124)]),_0x54b6ed['offset']=qs[_0x5cac4f(0x24d)](_0x1e71be['query'][_0x5cac4f(0x24d)])),_0x460fa8['getTeams'](_0x54b6ed);})[_0x3a3fe1(0x17b)](function(_0x41e8c6){if(_0x41e8c6)return _0x41e8c6?{'count':_0x2d09a0,'rows':_0x41e8c6}:null;})[_0x3a3fe1(0x17b)](respondWithResult(_0x25e5ba,null))[_0x3a3fe1(0x107)](handleError(_0x25e5ba,null));},exports['addTeams']=function(_0x598dc5,_0x258b83){const _0x823503=a775_0x14feaf;return db[_0x823503(0x1b8)][_0x823503(0x121)]({'where':{'id':_0x598dc5[_0x823503(0x194)]['id']}})[_0x823503(0x17b)](handleEntityNotFound(_0x258b83,null))[_0x823503(0x17b)](function(_0x4a76f6){const _0x527ee6=_0x823503;if(_0x4a76f6){const _0x3e0239=_0x4a76f6[_0x527ee6(0x1c8)]({'plain':!![]});return _0x4a76f6['addTeams'](_0x598dc5[_0x527ee6(0x1fb)]['ids'],_[_0x527ee6(0x1a3)](_0x598dc5[_0x527ee6(0x1fb)],[_0x527ee6(0x200),'id'])||{})[_0x527ee6(0x17b)](function(){const _0x5b7c83=_0x527ee6;for(let _0x5cad34=0x0;_0x5cad34<_0x598dc5[_0x5b7c83(0x1fb)]['ids'][_0x5b7c83(0x127)];_0x5cad34++){let _0x227c73=[];db[_0x5b7c83(0x101)][_0x5b7c83(0x121)]({'where':{'id':_0x598dc5[_0x5b7c83(0x1fb)][_0x5b7c83(0x200)][_0x5cad34]}})[_0x5b7c83(0x17b)](function(_0x1023fe){const _0x7fba69=_0x5b7c83;return _0x227c73[_0x7fba69(0x233)](_0x1023fe[_0x7fba69(0x1d2)]()['then'](function(_0x5e4839){const _0x53e370=_0x7fba69;for(let _0x33b78f=0x0;_0x33b78f<_0x5e4839[_0x53e370(0x127)];_0x33b78f++){_0x5e4839[_0x33b78f][_0x53e370(0x20d)](_0x53e370(0x215),_0x53e370(0x1c3));}return _0x5e4839;})),_0x227c73[_0x7fba69(0x233)](_0x1023fe[_0x7fba69(0x217)]()[_0x7fba69(0x17b)](function(_0x59fbae){const _0x79ea9e=_0x7fba69;for(let _0x349407=0x0;_0x349407<_0x59fbae[_0x79ea9e(0x127)];_0x349407++){_0x59fbae[_0x349407][_0x79ea9e(0x20d)](_0x79ea9e(0x215),'Chat');}return _0x59fbae;})),_0x227c73[_0x7fba69(0x233)](_0x1023fe['getMailQueues']()['then'](function(_0x51b34f){const _0x324dc5=_0x7fba69;for(let _0x3fb603=0x0;_0x3fb603<_0x51b34f[_0x324dc5(0x127)];_0x3fb603++){_0x51b34f[_0x3fb603][_0x324dc5(0x20d)](_0x324dc5(0x215),_0x324dc5(0x12a));}return _0x51b34f;})),_0x227c73[_0x7fba69(0x233)](_0x1023fe[_0x7fba69(0x1e9)]()[_0x7fba69(0x17b)](function(_0x210782){const _0x55f47f=_0x7fba69;for(let _0x75d12c=0x0;_0x75d12c<_0x210782[_0x55f47f(0x127)];_0x75d12c++){_0x210782[_0x75d12c]['setDataValue'](_0x55f47f(0x215),_0x55f47f(0x187));}return _0x210782;})),_0x227c73[_0x7fba69(0x233)](_0x1023fe[_0x7fba69(0x109)]()[_0x7fba69(0x17b)](function(_0x1429b){const _0xa60b04=_0x7fba69;for(let _0x3f3877=0x0;_0x3f3877<_0x1429b[_0xa60b04(0x127)];_0x3f3877++){_0x1429b[_0x3f3877][_0xa60b04(0x20d)](_0xa60b04(0x215),_0xa60b04(0x25a));}return _0x1429b;})),_0x227c73[_0x7fba69(0x233)](_0x1023fe[_0x7fba69(0x142)]()['then'](function(_0x393b97){const _0x212a80=_0x7fba69;for(let _0x4f72ae=0x0;_0x4f72ae<_0x393b97[_0x212a80(0x127)];_0x4f72ae++){_0x393b97[_0x4f72ae][_0x212a80(0x20d)]('channel',_0x212a80(0x13f));}return _0x393b97;})),_0x227c73[_0x7fba69(0x233)](_0x1023fe[_0x7fba69(0x1aa)]()['then'](function(_0x37715f){const _0x40c9cc=_0x7fba69;for(let _0x53d3ca=0x0;_0x53d3ca<_0x37715f[_0x40c9cc(0x127)];_0x53d3ca++){_0x37715f[_0x53d3ca][_0x40c9cc(0x20d)](_0x40c9cc(0x215),_0x40c9cc(0x1c7));}return _0x37715f;})),Promise[_0x7fba69(0x117)](_0x227c73);})['then'](function(_0x2a6cfc){const _0x4e3bab=_0x5b7c83,_0x46da81=_[_0x4e3bab(0x153)](_0x2a6cfc);return _0x227c73=[],db[_0x4e3bab(0x234)][_0x4e3bab(0xfb)](function(_0x257632){const _0x1f68df=_0x4e3bab;for(let _0xf3354b=0x0;_0xf3354b<_0x46da81[_0x1f68df(0x127)];_0xf3354b++){_0x227c73[_0x1f68df(0x233)](_0x46da81[_0xf3354b][_0x1f68df(0x22a)](_0x3e0239['id']),{'transaction':_0x257632});}return Promise[_0x1f68df(0x117)](_0x227c73)[_0x1f68df(0x17b)](function(){const _0x48ad16=_0x1f68df;if(!_0x3e0239[_0x48ad16(0x104)])return;const _0xf18f2a=_[_0x48ad16(0x1e8)](_0x46da81,function(_0x407512){const _0x38143f=_0x48ad16;return _0x407512[_0x38143f(0x1f8)](_0x38143f(0x215))==='Voice';});return Promise['all'](_0xf18f2a[_0x48ad16(0x20f)](_0x24b2c3=>{const _0x3184e0=_0x48ad16;return db[_0x3184e0(0x185)][_0x3184e0(0x15b)]({'membername':_0x3e0239['name'],'UserId':_0x3e0239['id'],'queue_name':_0x24b2c3[_0x3184e0(0x16f)],'VoiceQueueId':_0x24b2c3['id'],'interface':_[_0x3184e0(0x25d)](_0x3e0239['interface'])?util[_0x3184e0(0x1cc)](_0x3184e0(0x1c6),_0x3e0239[_0x3184e0(0x16f)]):_0x3e0239['interface'],'paused':_0x3e0239[_0x3184e0(0x17a)]||![],'penalty':_0x3e0239['penalty']},{'transaction':_0x257632});}));})[_0x1f68df(0x17b)](function(){const _0x32bfcd=_0x1f68df;for(let _0x59838a=0x0;_0x59838a<_0x46da81[_0x32bfcd(0x127)];_0x59838a++){const _0x524872=_0x46da81[_0x59838a][_0x32bfcd(0x1f8)]('channel'),_0x45ca71=_0x524872+_0x32bfcd(0x133);socket[_0x32bfcd(0x147)](_0x32bfcd(0x254)+_0x524872+_0x32bfcd(0x113),{'UserId':_0x3e0239['id'],[_0x45ca71]:_0x46da81[_0x59838a]['id']});}});});});}});}})[_0x823503(0x17b)](respondWithStatusCode(_0x258b83,null))['catch'](handleError(_0x258b83,null));},exports[a775_0x14feaf(0x15d)]=function(_0x4b174f,_0x4efb13){const _0x9c82e=a775_0x14feaf;return db[_0x9c82e(0x1b8)][_0x9c82e(0x121)]({'where':{'id':_0x4b174f[_0x9c82e(0x194)]['id']}})['then'](handleEntityNotFound(_0x4efb13,null))[_0x9c82e(0x17b)](function(_0x3e3e7d){const _0x27cc39=_0x9c82e;if(_0x3e3e7d){const _0x59fd34=_0x3e3e7d['get']({'plain':!![]}),_0x5ec94f=_0x4b174f[_0x27cc39(0x14f)][_0x27cc39(0x200)];return _0x3e3e7d[_0x27cc39(0x15d)](_0x5ec94f)[_0x27cc39(0x17b)](function(){const _0x1adc11=_0x27cc39;for(let _0x1984e5=0x0;_0x1984e5<_0x5ec94f[_0x1adc11(0x127)];_0x1984e5++){let _0x5454c1=[];db[_0x1adc11(0x101)][_0x1adc11(0x121)]({'where':{'id':_0x5ec94f[_0x1984e5]}})[_0x1adc11(0x17b)](function(_0x5dee76){const _0x1ea8e9=_0x1adc11;return _0x5454c1[_0x1ea8e9(0x233)](_0x5dee76['getVoiceQueues']()[_0x1ea8e9(0x17b)](function(_0x15c924){const _0x4caedd=_0x1ea8e9;for(let _0x4e5a7b=0x0;_0x4e5a7b<_0x15c924[_0x4caedd(0x127)];_0x4e5a7b++){_0x15c924[_0x4e5a7b]['setDataValue']('channel',_0x4caedd(0x1c3));}return _0x15c924;})),_0x5454c1[_0x1ea8e9(0x233)](_0x5dee76[_0x1ea8e9(0x217)]()[_0x1ea8e9(0x17b)](function(_0x3745c7){const _0x5f10f3=_0x1ea8e9;for(let _0x382ed2=0x0;_0x382ed2<_0x3745c7[_0x5f10f3(0x127)];_0x382ed2++){_0x3745c7[_0x382ed2][_0x5f10f3(0x20d)](_0x5f10f3(0x215),'Chat');}return _0x3745c7;})),_0x5454c1[_0x1ea8e9(0x233)](_0x5dee76[_0x1ea8e9(0x16d)]()['then'](function(_0x36a910){const _0x2f929e=_0x1ea8e9;for(let _0x30a7f3=0x0;_0x30a7f3<_0x36a910[_0x2f929e(0x127)];_0x30a7f3++){_0x36a910[_0x30a7f3][_0x2f929e(0x20d)](_0x2f929e(0x215),_0x2f929e(0x12a));}return _0x36a910;})),_0x5454c1[_0x1ea8e9(0x233)](_0x5dee76['getSmsQueues']()[_0x1ea8e9(0x17b)](function(_0xc068a9){const _0x384c92=_0x1ea8e9;for(let _0x203e52=0x0;_0x203e52<_0xc068a9[_0x384c92(0x127)];_0x203e52++){_0xc068a9[_0x203e52][_0x384c92(0x20d)](_0x384c92(0x215),_0x384c92(0x187));}return _0xc068a9;})),_0x5454c1[_0x1ea8e9(0x233)](_0x5dee76['getWhatsappQueues']()[_0x1ea8e9(0x17b)](function(_0x58cbae){const _0x2cbe0c=_0x1ea8e9;for(let _0xc72273=0x0;_0xc72273<_0x58cbae[_0x2cbe0c(0x127)];_0xc72273++){_0x58cbae[_0xc72273][_0x2cbe0c(0x20d)](_0x2cbe0c(0x215),_0x2cbe0c(0x25a));}return _0x58cbae;})),_0x5454c1[_0x1ea8e9(0x233)](_0x5dee76[_0x1ea8e9(0x142)]()[_0x1ea8e9(0x17b)](function(_0x599998){const _0x1d2a96=_0x1ea8e9;for(let _0x576da7=0x0;_0x576da7<_0x599998['length'];_0x576da7++){_0x599998[_0x576da7][_0x1d2a96(0x20d)](_0x1d2a96(0x215),_0x1d2a96(0x13f));}return _0x599998;})),_0x5454c1[_0x1ea8e9(0x233)](_0x5dee76['getOpenchannelQueues']()[_0x1ea8e9(0x17b)](function(_0x510aec){const _0xf3d9f5=_0x1ea8e9;for(let _0x27acf6=0x0;_0x27acf6<_0x510aec[_0xf3d9f5(0x127)];_0x27acf6++){_0x510aec[_0x27acf6][_0xf3d9f5(0x20d)]('channel','Openchannel');}return _0x510aec;})),Promise[_0x1ea8e9(0x117)](_0x5454c1);})[_0x1adc11(0x17b)](function(_0x4ef62d){const _0x2d9733=_0x1adc11,_0x344501=_[_0x2d9733(0x153)](_0x4ef62d);return _0x5454c1=[],db[_0x2d9733(0x234)]['transaction'](function(_0x20b2fa){const _0x42106e=_0x2d9733;for(let _0x538068=0x0;_0x538068<_0x344501[_0x42106e(0x127)];_0x538068++){_0x5454c1[_0x42106e(0x233)](_0x344501[_0x538068][_0x42106e(0xfd)](_0x59fd34['id']),{'transaction':_0x20b2fa});}return Promise[_0x42106e(0x117)](_0x5454c1)[_0x42106e(0x17b)](function(){const _0xd18417=_0x42106e;if(!_0x59fd34['online'])return;const _0x176552=_[_0xd18417(0x1e8)](_0x344501,function(_0x395022){const _0x127d79=_0xd18417;return _0x395022[_0x127d79(0x1f8)]('channel')===_0x127d79(0x1c3);});return Promise[_0xd18417(0x117)](_0x176552[_0xd18417(0x20f)](_0xb754e7=>{const _0x440a9d=_0xd18417;return db[_0x440a9d(0x185)][_0x440a9d(0x213)]({'where':{'VoiceQueueId':_0xb754e7['id'],'UserId':_0x59fd34['id']},'transaction':_0x20b2fa});}));})[_0x42106e(0x17b)](function(){const _0x59f772=_0x42106e;for(let _0x3174ca=0x0;_0x3174ca<_0x344501['length'];_0x3174ca++){const _0xbece02=_0x344501[_0x3174ca][_0x59f772(0x1f8)]('channel'),_0x1af827=_0xbece02+_0x59f772(0x133);socket[_0x59f772(0x147)](_0x59f772(0x254)+_0xbece02+_0x59f772(0x216),{'UserId':_0x59fd34['id'],[_0x1af827]:_0x344501[_0x3174ca]['id']});}});});});}});}})[_0x9c82e(0x17b)](respondWithStatusCode(_0x4efb13,null))[_0x9c82e(0x107)](handleError(_0x4efb13,null));},exports['getLists']=function(_0x2d5b10,_0x15f886){const _0x2299ac=a775_0x14feaf;let _0x2a6389={};const _0x3845c8={};let _0x3e1754,_0x2f50fa;return db['User'][_0x2299ac(0x121)]({'where':{'id':_0x2d5b10[_0x2299ac(0x194)]['id']}})[_0x2299ac(0x17b)](handleEntityNotFound(_0x15f886,null))[_0x2299ac(0x17b)](function(_0x497710){const _0x565d0a=_0x2299ac;if(_0x497710)return _0x3e1754=_0x497710,_0x3845c8['model']=_[_0x565d0a(0x248)](db['CmList'][_0x565d0a(0x1a7)]),_0x3845c8[_0x565d0a(0x14f)]=_[_0x565d0a(0x248)](_0x2d5b10[_0x565d0a(0x14f)]),_0x3845c8[_0x565d0a(0x1d1)]=_['intersection'](_0x3845c8[_0x565d0a(0x1a1)],_0x3845c8[_0x565d0a(0x14f)]),_0x2a6389[_0x565d0a(0x24f)]=_['intersection'](_0x3845c8[_0x565d0a(0x1a1)],qs[_0x565d0a(0x156)](_0x2d5b10[_0x565d0a(0x14f)][_0x565d0a(0x156)])),_0x2a6389['attributes']=_0x2a6389[_0x565d0a(0x24f)]['length']?_0x2a6389[_0x565d0a(0x24f)]:_0x3845c8['model'],_0x2a6389['order']=qs[_0x565d0a(0x157)](_0x2d5b10['query'][_0x565d0a(0x157)]),_0x2a6389[_0x565d0a(0x10c)]=qs['filters'](_[_0x565d0a(0x143)](_0x2d5b10[_0x565d0a(0x14f)],_0x3845c8[_0x565d0a(0x1d1)])),_0x2d5b10[_0x565d0a(0x14f)][_0x565d0a(0x1e8)]&&(_0x2a6389[_0x565d0a(0x10c)]=_[_0x565d0a(0x231)](_0x2a6389[_0x565d0a(0x10c)],{[Op['or']]:_[_0x565d0a(0x20f)](_0x2a6389[_0x565d0a(0x24f)],function(_0x27df7a){const _0x249e3a=_0x565d0a,_0x16292b={};return _0x16292b[_0x27df7a]={[Op[_0x249e3a(0x14b)]]:'%'+_0x2d5b10['query'][_0x249e3a(0x1e8)]+'%'},_0x16292b;})})),_0x2a6389=_[_0x565d0a(0x231)]({},_0x2a6389,_0x2d5b10[_0x565d0a(0x239)]),_0x3e1754['getLists'](_0x2a6389);})[_0x2299ac(0x17b)](function(_0x4b0b50){const _0x3e1443=_0x2299ac;if(_0x4b0b50)return _0x2f50fa=_0x4b0b50[_0x3e1443(0x127)],typeof _0x2d5b10['query'][_0x3e1443(0x23c)]===_0x3e1443(0x149)&&(_0x2a6389[_0x3e1443(0x124)]=qs[_0x3e1443(0x124)](_0x2d5b10['query'][_0x3e1443(0x124)]),_0x2a6389[_0x3e1443(0x24d)]=qs[_0x3e1443(0x24d)](_0x2d5b10['query'][_0x3e1443(0x24d)])),_0x3e1754[_0x3e1443(0x130)](_0x2a6389);})[_0x2299ac(0x17b)](function(_0x27fa24){if(_0x27fa24)return _0x27fa24?{'count':_0x2f50fa,'rows':_0x27fa24}:null;})[_0x2299ac(0x17b)](respondWithResult(_0x15f886,null))[_0x2299ac(0x107)](handleError(_0x15f886,null));},exports[a775_0x14feaf(0x1fa)]=function(_0x439d42,_0xcc1bdc){const _0x3c8596=a775_0x14feaf;let _0x582040={};const _0x4c868c={};let _0x42dfdf;return db['User'][_0x3c8596(0x121)]({'where':{'id':_0x439d42[_0x3c8596(0x194)]['id']}})[_0x3c8596(0x17b)](handleEntityNotFound(_0xcc1bdc,null))[_0x3c8596(0x17b)](function(_0x3b46c3){const _0x42fb5d=_0x3c8596;if(_0x3b46c3)return _0x42dfdf=_0x3b46c3,_0x4c868c[_0x42fb5d(0x1a1)]=_[_0x42fb5d(0x248)](db[_0x42fb5d(0x1b8)]['rawAttributes']),_0x4c868c[_0x42fb5d(0x14f)]=_[_0x42fb5d(0x248)](_0x439d42[_0x42fb5d(0x14f)]),_0x4c868c[_0x42fb5d(0x1d1)]=_[_0x42fb5d(0x22b)](_0x4c868c[_0x42fb5d(0x1a1)],_0x4c868c[_0x42fb5d(0x14f)]),_0x582040[_0x42fb5d(0x24f)]=_['intersection'](_0x4c868c[_0x42fb5d(0x1a1)],qs[_0x42fb5d(0x156)](_0x439d42[_0x42fb5d(0x14f)]['fields'])),_0x582040[_0x42fb5d(0x24f)]=_0x582040['attributes'][_0x42fb5d(0x127)]?_0x582040[_0x42fb5d(0x24f)]:_0x4c868c['model'],_0x582040[_0x42fb5d(0x19b)]=qs[_0x42fb5d(0x157)](_0x439d42[_0x42fb5d(0x14f)][_0x42fb5d(0x157)]),_0x582040['where']=qs['filters'](_['pick'](_0x439d42['query'],_0x4c868c[_0x42fb5d(0x1d1)])),_0x439d42['query']['filter']&&(_0x582040[_0x42fb5d(0x10c)]=_[_0x42fb5d(0x231)](_0x582040[_0x42fb5d(0x10c)],{[Op['or']]:_['map'](_0x582040[_0x42fb5d(0x24f)],function(_0x48aa7e){const _0x53fa30=_0x42fb5d,_0x12a7a6={};return _0x12a7a6[_0x48aa7e]={[Op[_0x53fa30(0x14b)]]:'%'+_0x439d42[_0x53fa30(0x14f)]['filter']+'%'},_0x12a7a6;})})),_0x582040['model']=db[_0x42fb5d(0x1b8)],_0x582040['as']=_0x42fb5d(0x1fd),_0x582040=_[_0x42fb5d(0x231)]({},_0x582040,_0x439d42[_0x42fb5d(0x239)]),_0x42dfdf['getVoiceQueues']({'include':[_0x582040]});})[_0x3c8596(0x17b)](function(_0x2d4b21){const _0x2a707d=_0x3c8596;if(_0x2d4b21){let _0x5e322d={};const _0x5c3cb2=[];for(let _0x130561=0x0;_0x130561<_0x2d4b21[_0x2a707d(0x127)];_0x130561+=0x1){for(let _0x234c78=0x0,_0x3f6ac4;_0x234c78<_0x2d4b21[_0x130561][_0x2a707d(0x1fd)][_0x2a707d(0x127)];_0x234c78+=0x1){_0x3f6ac4=_0x2d4b21[_0x130561][_0x2a707d(0x1fd)][_0x234c78][_0x2a707d(0x1c8)]({'plain':!![]}),_0x5e322d[_0x3f6ac4['id']]=_0x3f6ac4;}}_0x5e322d=_[_0x2a707d(0x195)](_0x5e322d);for(let _0x15de8b=qs[_0x2a707d(0x24d)](_0x439d42[_0x2a707d(0x14f)][_0x2a707d(0x24d)]);_0x15de8b<_0x5e322d['length']&&_0x5c3cb2['length']{const _0x3e9458=_0x374229;_0x103a98&&_0x40b604(_0x103a98),this[_0x3e9458(0x109)]===_0x1824b6?_0x40b604(null,!![]):_0x40b604(null,![]);});}['makeSalt'](_0xfa0a1d,_0x583bcb){const _0x23132f=a777_0x1a80d4,_0x288e7b=0x10;if(typeof arguments[0x0]===_0x23132f(0xf1))_0x583bcb=arguments[0x0],_0xfa0a1d=_0x288e7b;else{if(typeof arguments[0x1]===_0x23132f(0xf1))_0x583bcb=arguments[0x1];else throw new Error(_0x23132f(0xfa));}!_0xfa0a1d&&(_0xfa0a1d=_0x288e7b);try{const _0x1c1fb6=crypto[_0x23132f(0x104)](_0xfa0a1d),_0x41176e=_0x1c1fb6[_0x23132f(0xfd)](_0x23132f(0xf2));return _0x583bcb(null,_0x41176e),_0x41176e;}catch(_0x49b82c){_0x583bcb(_0x49b82c);throw _0x49b82c;}}async[a777_0x1a80d4(0xf4)](_0x56ad29=0x10){return new Promise((_0x550ded,_0x3b3760)=>{crypto['randomBytes'](_0x56ad29,function(_0x5d2054,_0x5bb203){const _0x1f9302=a777_0x564f;_0x5d2054&&_0x3b3760(_0x5d2054),_0x550ded(_0x5bb203[_0x1f9302(0xfd)](_0x1f9302(0xf2)));});});}['encryptPassword'](_0x3212b3,_0x186286){const _0x3bc41c=a777_0x1a80d4;if(!_0x3212b3||!this[_0x3bc41c(0xfe)])return _0x186286&&_0x186286(null),null;const _0xb4ed71=0x2710,_0x54437a=0x40,_0xa5a90c=Buffer[_0x3bc41c(0x101)](this[_0x3bc41c(0xfe)],'base64');if(!_0x186286)return crypto[_0x3bc41c(0x108)](_0x3212b3,_0xa5a90c,_0xb4ed71,_0x54437a,_0x3bc41c(0x105))[_0x3bc41c(0xfd)](_0x3bc41c(0xf2));try{crypto[_0x3bc41c(0x100)](_0x3212b3,_0xa5a90c,_0xb4ed71,_0x54437a,'sha1',(_0x3c3f5b,_0x1be32b)=>{const _0x3ef65e=_0x3bc41c;_0x3c3f5b?_0x186286(_0x3c3f5b):_0x186286(null,_0x1be32b[_0x3ef65e(0xfd)]('base64'));});}catch(_0x17c98e){_0x186286&&_0x186286(_0x17c98e);throw _0x17c98e;}}async[a777_0x1a80d4(0xf0)](){const _0x256bcf=a777_0x1a80d4;if(!this[_0x256bcf(0x109)])return null;if(!_[_0x256bcf(0x102)](this[_0x256bcf(0x109)])&&authTypes['indexOf'](this['provider'])===-0x1)throw new Error(_0x256bcf(0xf8));return this['salt']=await this[_0x256bcf(0xf4)](),new Promise((_0x2caaec,_0x34a6d7)=>{const _0x4e546a=_0x256bcf;this['encryptPassword'](this[_0x4e546a(0x109)],(_0xb455ac,_0x49591e)=>{const _0x3762f5=_0x4e546a;_0xb455ac?_0x34a6d7(_0xb455ac):(this[_0x3762f5(0x109)]=_0x49591e,_0x2caaec());});});}[a777_0x1a80d4(0xff)](){const _0x27312b=a777_0x1a80d4;return this[_0x27312b(0xf6)]=md5(this[_0x27312b(0xf5)]+':asterisk:'+this[_0x27312b(0x109)]),this[_0x27312b(0xf6)];}}function init(_0x104f78,_0x2d4390){const _0x300a62=a777_0x1a80d4,_0x41ee74=options(_0x104f78),_0x1b589a=typeof _0x2d4390===_0x300a62(0xf1)?_0x2d4390(_0x41ee74):_0x41ee74;return User[_0x300a62(0xfc)](attributes,_0x1b589a),User;}module[a777_0x1a80d4(0xee)][a777_0x1a80d4(0xfb)]=User,module[a777_0x1a80d4(0xee)][a777_0x1a80d4(0xfc)]=init; \ No newline at end of file +const a777_0x33fb=['updatePassword','indexOf','sequelize','makeSalt','./user.options','base64','sha1','encryptPassword','updateMd5Password','local','name','authenticate','init','randomBytes','./user.attributes','google','pbkdf2Sync','md5','Missing\x20Callback','crypto','makeSaltAsync','exports','toString','function','User','pbkdf2','md5secret','password','salt'];(function(_0x6590b,_0x21ed0a){const _0x33fb8c=function(_0x1d5ea8){while(--_0x1d5ea8){_0x6590b['push'](_0x6590b['shift']());}};_0x33fb8c(++_0x21ed0a);}(a777_0x33fb,0x10c));const a777_0x1d5e=function(_0x6590b,_0x21ed0a){_0x6590b=_0x6590b-0xd6;let _0x33fb8c=a777_0x33fb[_0x6590b];return _0x33fb8c;};const a777_0x374c6a=a777_0x1d5e;'use strict';const {Model}=require(a777_0x374c6a(0xee)),{attributes}=require(a777_0x374c6a(0xdd)),{options}=require(a777_0x374c6a(0xf0)),crypto=require(a777_0x374c6a(0xe2)),md5=require(a777_0x374c6a(0xe0)),_=require('lodash'),authTypes=[a777_0x374c6a(0xde),a777_0x374c6a(0xd8)];class User extends Model{[a777_0x374c6a(0xda)](_0x4dd2e8,_0x1f6655){const _0x37c831=a777_0x374c6a;if(!_0x1f6655)return this[_0x37c831(0xea)]===this[_0x37c831(0xd6)](_0x4dd2e8);this[_0x37c831(0xd6)](_0x4dd2e8,(_0x5b5ced,_0x5c3d1b)=>{const _0x18ffa3=_0x37c831;_0x5b5ced&&_0x1f6655(_0x5b5ced),this[_0x18ffa3(0xea)]===_0x5c3d1b?_0x1f6655(null,!![]):_0x1f6655(null,![]);});}[a777_0x374c6a(0xef)](_0x46c923,_0x1ae930){const _0x7bb33a=a777_0x374c6a,_0x5eb62f=0x10;if(typeof arguments[0x0]===_0x7bb33a(0xe6))_0x1ae930=arguments[0x0],_0x46c923=_0x5eb62f;else{if(typeof arguments[0x1]===_0x7bb33a(0xe6))_0x1ae930=arguments[0x1];else throw new Error(_0x7bb33a(0xe1));}!_0x46c923&&(_0x46c923=_0x5eb62f);try{const _0x4feb6c=crypto[_0x7bb33a(0xdc)](_0x46c923),_0xb856d9=_0x4feb6c['toString'](_0x7bb33a(0xf1));return _0x1ae930(null,_0xb856d9),_0xb856d9;}catch(_0x4273ef){_0x1ae930(_0x4273ef);throw _0x4273ef;}}async[a777_0x374c6a(0xe3)](_0x17f005=0x10){return new Promise((_0x34a3d0,_0x5179a4)=>{const _0x7da5c2=a777_0x1d5e;crypto[_0x7da5c2(0xdc)](_0x17f005,function(_0x2e225d,_0x3a5157){const _0x3449a4=_0x7da5c2;_0x2e225d&&_0x5179a4(_0x2e225d),_0x34a3d0(_0x3a5157[_0x3449a4(0xe5)](_0x3449a4(0xf1)));});});}[a777_0x374c6a(0xd6)](_0x19a2cd,_0x59a024){const _0x284e3a=a777_0x374c6a;if(!_0x19a2cd||!this[_0x284e3a(0xeb)])return _0x59a024&&_0x59a024(null),null;const _0x435bee=0x2710,_0x58f2e6=0x40,_0xa5a8ba=Buffer['from'](this[_0x284e3a(0xeb)],_0x284e3a(0xf1));if(!_0x59a024)return crypto[_0x284e3a(0xdf)](_0x19a2cd,_0xa5a8ba,_0x435bee,_0x58f2e6,_0x284e3a(0xf2))[_0x284e3a(0xe5)](_0x284e3a(0xf1));try{crypto[_0x284e3a(0xe8)](_0x19a2cd,_0xa5a8ba,_0x435bee,_0x58f2e6,_0x284e3a(0xf2),(_0x3be189,_0xd6cdf2)=>{_0x3be189?_0x59a024(_0x3be189):_0x59a024(null,_0xd6cdf2['toString']('base64'));});}catch(_0x483df0){_0x59a024&&_0x59a024(_0x483df0);throw _0x483df0;}}async[a777_0x374c6a(0xec)](){const _0x24363e=a777_0x374c6a;if(!this['password'])return null;if(!_['isEmpty'](this['password'])&&authTypes[_0x24363e(0xed)](this['provider'])===-0x1)throw new Error('Invalid\x20password');return this['salt']=await this[_0x24363e(0xe3)](),new Promise((_0xcc943d,_0x1d6c12)=>{const _0x42c282=_0x24363e;this['encryptPassword'](this[_0x42c282(0xea)],(_0x46b79d,_0xcf4a6)=>{const _0x291b0c=_0x42c282;_0x46b79d?_0x1d6c12(_0x46b79d):(this[_0x291b0c(0xea)]=_0xcf4a6,_0xcc943d());});});}[a777_0x374c6a(0xd7)](){const _0x16f47d=a777_0x374c6a;return this[_0x16f47d(0xe9)]=md5(this[_0x16f47d(0xd9)]+':asterisk:'+this[_0x16f47d(0xea)]),this[_0x16f47d(0xe9)];}}function init(_0xb5c309,_0xac30c1){const _0x29e7e9=a777_0x374c6a,_0x2f84fe=options(_0xb5c309),_0x382c19=typeof _0xac30c1===_0x29e7e9(0xe6)?_0xac30c1(_0x2f84fe):_0x2f84fe;return User['init'](attributes,_0x382c19),User;}module[a777_0x374c6a(0xe4)][a777_0x374c6a(0xe7)]=User,module['exports'][a777_0x374c6a(0xdb)]=init; \ No newline at end of file diff --git a/server/api/user/user.options.js b/server/api/user/user.options.js index 657c6b6..3bf0b6c 100644 --- a/server/api/user/user.options.js +++ b/server/api/user/user.options.js @@ -1 +1 @@ -const a778_0x522d=['%s%s','ChanSpy','name','SIP/%s,,tTxX','CDR(type)=internal','recordingFormat','${UNIQUEID}.%s,ab','join','destroy','then','password','system','extensionMonitor','exports','auth','SIP/%s,,tTxXU(xcally-mixmonitor-context)','push','gsm','Set','chanspy','VoiceExtension','length','Dial','wav','CDR(type)=%s','record','Authenticate','findAll','updatePassword','defaults','merge','internal','options','from-sip','context','prefix','_XCALLY_MIXMONITOR_FORMAT=%s','Hangup','changed','models','VoiceChanSpy','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','priority','users','includes','StopMixMonitor','utf8_bin','format','utf8','concat'];(function(_0x27f27d,_0x2dfd72){const _0x522d5c=function(_0x3175e7){while(--_0x3175e7){_0x27f27d['push'](_0x27f27d['shift']());}};_0x522d5c(++_0x2dfd72);}(a778_0x522d,0x17e));const a778_0x3175=function(_0x27f27d,_0x2dfd72){_0x27f27d=_0x27f27d-0x15a;let _0x522d5c=a778_0x522d[_0x27f27d];return _0x522d5c;};const a778_0x2110a1=a778_0x3175,_=require('lodash'),util=require('util'),{Op}=require('sequelize');function addUserApplication(_0xc2b288,_0x580ac0){const _0x48173a=a778_0x3175,_0x1d5b02=[_0x48173a(0x183),'WAV',_0x48173a(0x17d)],_0x5124cb={'context':_0xc2b288[_0x48173a(0x15c)]||'from-sip','exten':_0x580ac0,'type':'system','isApp':![],'UserId':_0xc2b288['id']},_0x1b41fd=[{'app':_0x48173a(0x17e),'appdata':_0x48173a(0x170)}];_0xc2b288[_0x48173a(0x178)]&&_[_0x48173a(0x166)](_0x1d5b02,_0xc2b288[_0x48173a(0x178)])?(_0x1b41fd['push']({'app':_0x48173a(0x17e),'appdata':_0x48173a(0x163)}),_0x1b41fd[_0x48173a(0x17c)]({'app':_0x48173a(0x17e),'appdata':util[_0x48173a(0x169)](_0x48173a(0x15e),_0xc2b288[_0x48173a(0x178)])}),_0x1b41fd['push']({'app':_0x48173a(0x182),'appdata':util['format'](_0x48173a(0x17b),_0xc2b288[_0x48173a(0x16e)])})):_0x1b41fd[_0x48173a(0x17c)]({'app':_0x48173a(0x182),'appdata':util[_0x48173a(0x169)](_0x48173a(0x16f),_0xc2b288[_0x48173a(0x16e)])});_0x1b41fd[_0x48173a(0x17c)]({'app':_0x48173a(0x15f)});for(let _0x54c94b=0x0;_0x54c94b<_0x1b41fd[_0x48173a(0x181)];_0x54c94b++){_0x1b41fd[_0x54c94b][_0x48173a(0x164)]=_0x54c94b+0x1,_0x1b41fd[_0x54c94b]=_[_0x48173a(0x189)](_0x1b41fd[_0x54c94b],_0x5124cb);}return _0x1b41fd;}function addChanSpyApplications(_0x52af4b,_0x54187b,_0x317f4b){const _0x5c2670=a778_0x3175,_0x21e189={'context':_0x52af4b[_0x5c2670(0x15c)]||_0x5c2670(0x15b),'type':_0x5c2670(0x177),'isApp':![],'UserId':_0x52af4b['id']},_0x1993b1=[];for(let _0x4c0797=0x0,_0x1d289e=0x1;_0x4c0797<_0x317f4b['length'];_0x4c0797++,_0x1d289e=0x1){const _0xcd22f2={'exten':util[_0x5c2670(0x169)](_0x5c2670(0x16c),_0x317f4b[_0x4c0797][_0x5c2670(0x15d)],_0x54187b),'ChanSpyId':_0x317f4b[_0x4c0797]['id']};_0x1993b1[_0x5c2670(0x17c)](_[_0x5c2670(0x18a)]({'app':_0x5c2670(0x17e),'appdata':util[_0x5c2670(0x169)](_0x5c2670(0x184),_0x5c2670(0x17f)),'priority':_0x1d289e++},_0x21e189,_0xcd22f2)),_0x317f4b[_0x4c0797][_0x5c2670(0x185)]&&_0x1993b1[_0x5c2670(0x17c)](_[_0x5c2670(0x18a)]({'app':'MixMonitor','appdata':util[_0x5c2670(0x169)](_0x5c2670(0x172),_0x317f4b[_0x4c0797][_0x5c2670(0x171)]),'priority':_0x1d289e++},_0x21e189,_0xcd22f2)),_0x317f4b[_0x4c0797][_0x5c2670(0x17a)]&&_0x1993b1[_0x5c2670(0x17c)](_['merge']({'app':_0x5c2670(0x186),'appdata':_0x317f4b[_0x4c0797][_0x5c2670(0x176)],'priority':_0x1d289e++},_0x21e189,_0xcd22f2)),_0x1993b1[_0x5c2670(0x17c)](_[_0x5c2670(0x18a)]({'app':_0x5c2670(0x16d),'appdata':util[_0x5c2670(0x169)]('SIP/%s,%s',_0x52af4b[_0x5c2670(0x16e)],_0x317f4b[_0x4c0797][_0x5c2670(0x15a)]?_0x317f4b[_0x4c0797]['options'][_0x5c2670(0x173)](''):''),'priority':_0x1d289e++},_0x21e189,_0xcd22f2)),_0x317f4b[_0x4c0797][_0x5c2670(0x185)]&&_0x1993b1[_0x5c2670(0x17c)](_[_0x5c2670(0x18a)]({'app':_0x5c2670(0x167),'priority':_0x1d289e++},_0x21e189,_0xcd22f2));}return _0x1993b1;}function getChanSpy(_0x31efa3,_0x4b8fdd){return new Promise(function(_0x54453c,_0x483eac){const _0x5c3074=a778_0x3175;return _0x31efa3[_0x5c3074(0x162)][_0x5c3074(0x187)]()[_0x5c3074(0x175)](function(_0x4d0ee1){const _0x48f7e8=_0x5c3074;if(_0x4d0ee1){let _0x497c78=addChanSpyApplications(_0x4b8fdd,_0x4b8fdd[_0x48f7e8(0x18b)],_0x4d0ee1);return _0x4b8fdd['internal']!=_0x4b8fdd['name']&&(_0x497c78=_0x497c78[_0x48f7e8(0x16b)](addChanSpyApplications(_0x4b8fdd,_0x4b8fdd[_0x48f7e8(0x16e)],_0x4d0ee1))),_0x54453c(_0x497c78);}return _0x54453c([]);})['catch'](function(_0x2e4b4c){_0x483eac(_0x2e4b4c);});});}function options(_0x4a8727){const _0x1077c9=a778_0x3175;return{'sequelize':_0x4a8727,'tableName':_0x1077c9(0x165),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeCreate':function(_0x58e448){return _0x58e448['updateMd5Password'](),_0x58e448['updatePassword']();},'beforeUpdate':function(_0x5735a3){const _0x1fc06f=_0x1077c9;return _0x5735a3['changed'](_0x1fc06f(0x176))?(_0x5735a3['updateMd5Password'](),_0x5735a3[_0x1fc06f(0x188)]()):Promise['resolve']();},'afterCreate':function(_0x2b7a5f){const _0x217ad0=_0x1077c9,_0x282ebb=_0x4a8727[_0x217ad0(0x161)];let _0xf3ad1f=addUserApplication(_0x2b7a5f,_0x2b7a5f[_0x217ad0(0x18b)]);return _0x2b7a5f['internal']!=_0x2b7a5f[_0x217ad0(0x16e)]&&(_0xf3ad1f=_0xf3ad1f['concat'](addUserApplication(_0x2b7a5f,_0x2b7a5f[_0x217ad0(0x16e)]))),_0x282ebb[_0x217ad0(0x180)]['bulkCreate'](_0xf3ad1f)['then'](function(){const _0x4360ed=_0x217ad0;if(_0x2b7a5f[_0x4360ed(0x17f)])return getChanSpy(_0x282ebb,_0x2b7a5f);})[_0x217ad0(0x175)](function(_0x3d0f4d){const _0x31a653=_0x217ad0;return _0x3d0f4d&&_0x3d0f4d['length']?_0x282ebb[_0x31a653(0x180)]['bulkCreate'](_0x3d0f4d):null;})['catch'](function(_0xce95cd){return _0xce95cd;});},'afterUpdate':function(_0x5b221d){const _0x265056=_0x1077c9,_0x3825e9=_0x4a8727[_0x265056(0x161)];return Promise['resolve']()[_0x265056(0x175)](function(){const _0x5c2adc=_0x265056;if(_0x5b221d['changed']('chanspy')||_0x5b221d[_0x5c2adc(0x160)]('context'))return _0x3825e9[_0x5c2adc(0x180)][_0x5c2adc(0x174)]({'where':{'UserId':_0x5b221d['id'],'type':_0x5c2adc(0x177),'ChanSpyId':{[Op['ne']]:null}}})[_0x5c2adc(0x175)](function(){const _0x4d64eb=_0x5c2adc;if(_0x5b221d[_0x4d64eb(0x17f)])return getChanSpy(_0x3825e9,_0x5b221d)[_0x4d64eb(0x175)](function(_0x453c6c){const _0x514059=_0x4d64eb;if(_0x453c6c&&_0x453c6c[_0x514059(0x181)])return _0x3825e9['VoiceExtension']['bulkCreate'](_0x453c6c);});});})[_0x265056(0x175)](function(){const _0x330a71=_0x265056;return _0x5b221d[_0x330a71(0x160)]('extensionMonitor')||_0x5b221d['changed'](_0x330a71(0x15c))?_0x3825e9[_0x330a71(0x180)]['destroy']({'where':{'UserId':_0x5b221d['id'],'type':'system','ChanSpyId':null}})['then'](function(){const _0x399adc=_0x330a71;let _0x4f1771=addUserApplication(_0x5b221d,_0x5b221d[_0x399adc(0x18b)]);return _0x5b221d[_0x399adc(0x18b)]!=_0x5b221d['name']&&(_0x4f1771=_0x4f1771[_0x399adc(0x16b)](addUserApplication(_0x5b221d,_0x5b221d[_0x399adc(0x16e)]))),_0x3825e9['VoiceExtension']['bulkCreate'](_0x4f1771);}):null;})['catch'](function(_0x321aa2){return _0x321aa2;});},'afterDestroy':function(_0x1b6c18){const _0x5ab2ff=_0x1077c9,_0x33b5a8=_0x4a8727[_0x5ab2ff(0x161)];return _0x33b5a8[_0x5ab2ff(0x180)][_0x5ab2ff(0x174)]({'where':{'UserId':_0x1b6c18['id'],'type':_0x5ab2ff(0x177)}});}},'charset':_0x1077c9(0x16a),'collate':_0x1077c9(0x168)};}module[a778_0x2110a1(0x179)]['options']=options; \ No newline at end of file +const a778_0x2337=['format','catch','sequelize','Set','changed','push','then','Hangup','StopMixMonitor','record','join','options','includes','length','findAll','SIP/%s,,tTxXU(xcally-mixmonitor-context)','Dial','destroy','system','internal','updatePassword','utf8_bin','Authenticate','bulkCreate','context','updateMd5Password','MixMonitor','auth','password','${UNIQUEID}.%s,ab','recordingFormat','priority','models','users','defaults','concat','extensionMonitor','merge','VoiceExtension','resolve','chanspy','ChanSpy','name','lodash','_XCALLY_MIXMONITOR_FORMAT=%s','prefix','from-sip','wav'];(function(_0x275e0b,_0x2aea0c){const _0x233765=function(_0x1509a5){while(--_0x1509a5){_0x275e0b['push'](_0x275e0b['shift']());}};_0x233765(++_0x2aea0c);}(a778_0x2337,0x84));const a778_0x1509=function(_0x275e0b,_0x2aea0c){_0x275e0b=_0x275e0b-0x1ae;let _0x233765=a778_0x2337[_0x275e0b];return _0x233765;};const a778_0x42a141=a778_0x1509,_=require(a778_0x42a141(0x1b5)),util=require('util'),{Op}=require(a778_0x42a141(0x1bc));function addUserApplication(_0x17e261,_0x280082){const _0x31b507=a778_0x42a141,_0x2eb7=[_0x31b507(0x1b9),'WAV','gsm'],_0x463c0a={'context':_0x17e261[_0x31b507(0x1d2)]||_0x31b507(0x1b8),'exten':_0x280082,'type':_0x31b507(0x1cc),'isApp':![],'UserId':_0x17e261['id']},_0x326010=[{'app':'Set','appdata':'CDR(type)=internal'}];_0x17e261['extensionMonitor']&&_[_0x31b507(0x1c6)](_0x2eb7,_0x17e261['extensionMonitor'])?(_0x326010[_0x31b507(0x1bf)]({'app':_0x31b507(0x1bd),'appdata':'_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}'}),_0x326010[_0x31b507(0x1bf)]({'app':_0x31b507(0x1bd),'appdata':util[_0x31b507(0x1ba)](_0x31b507(0x1b6),_0x17e261['extensionMonitor'])}),_0x326010['push']({'app':_0x31b507(0x1ca),'appdata':util[_0x31b507(0x1ba)](_0x31b507(0x1c9),_0x17e261[_0x31b507(0x1b4)])})):_0x326010['push']({'app':_0x31b507(0x1ca),'appdata':util['format']('SIP/%s,,tTxX',_0x17e261[_0x31b507(0x1b4)])});_0x326010[_0x31b507(0x1bf)]({'app':_0x31b507(0x1c1)});for(let _0x42781d=0x0;_0x42781d<_0x326010[_0x31b507(0x1c7)];_0x42781d++){_0x326010[_0x42781d][_0x31b507(0x1d9)]=_0x42781d+0x1,_0x326010[_0x42781d]=_[_0x31b507(0x1dc)](_0x326010[_0x42781d],_0x463c0a);}return _0x326010;}function addChanSpyApplications(_0x2fea57,_0x2cf8fb,_0x594066){const _0x23bc4f=a778_0x42a141,_0x320871={'context':_0x2fea57['context']||'from-sip','type':_0x23bc4f(0x1cc),'isApp':![],'UserId':_0x2fea57['id']},_0xfb8a73=[];for(let _0x956e1d=0x0,_0x80d994=0x1;_0x956e1d<_0x594066[_0x23bc4f(0x1c7)];_0x956e1d++,_0x80d994=0x1){const _0x284708={'exten':util['format']('%s%s',_0x594066[_0x956e1d][_0x23bc4f(0x1b7)],_0x2cf8fb),'ChanSpyId':_0x594066[_0x956e1d]['id']};_0xfb8a73[_0x23bc4f(0x1bf)](_[_0x23bc4f(0x1af)]({'app':_0x23bc4f(0x1bd),'appdata':util[_0x23bc4f(0x1ba)]('CDR(type)=%s','chanspy'),'priority':_0x80d994++},_0x320871,_0x284708)),_0x594066[_0x956e1d][_0x23bc4f(0x1c3)]&&_0xfb8a73[_0x23bc4f(0x1bf)](_[_0x23bc4f(0x1af)]({'app':_0x23bc4f(0x1d4),'appdata':util[_0x23bc4f(0x1ba)](_0x23bc4f(0x1d7),_0x594066[_0x956e1d][_0x23bc4f(0x1d8)]),'priority':_0x80d994++},_0x320871,_0x284708)),_0x594066[_0x956e1d][_0x23bc4f(0x1d5)]&&_0xfb8a73[_0x23bc4f(0x1bf)](_[_0x23bc4f(0x1af)]({'app':_0x23bc4f(0x1d0),'appdata':_0x594066[_0x956e1d]['password'],'priority':_0x80d994++},_0x320871,_0x284708)),_0xfb8a73[_0x23bc4f(0x1bf)](_[_0x23bc4f(0x1af)]({'app':_0x23bc4f(0x1b3),'appdata':util[_0x23bc4f(0x1ba)]('SIP/%s,%s',_0x2fea57[_0x23bc4f(0x1b4)],_0x594066[_0x956e1d][_0x23bc4f(0x1c5)]?_0x594066[_0x956e1d][_0x23bc4f(0x1c5)][_0x23bc4f(0x1c4)](''):''),'priority':_0x80d994++},_0x320871,_0x284708)),_0x594066[_0x956e1d]['record']&&_0xfb8a73[_0x23bc4f(0x1bf)](_['merge']({'app':_0x23bc4f(0x1c2),'priority':_0x80d994++},_0x320871,_0x284708));}return _0xfb8a73;}function getChanSpy(_0x239ddb,_0x22a34e){return new Promise(function(_0xa31109,_0x2415ad){const _0x21bf6d=a778_0x1509;return _0x239ddb['VoiceChanSpy'][_0x21bf6d(0x1c8)]()[_0x21bf6d(0x1c0)](function(_0x154cd9){const _0x134323=_0x21bf6d;if(_0x154cd9){let _0x165825=addChanSpyApplications(_0x22a34e,_0x22a34e[_0x134323(0x1cd)],_0x154cd9);return _0x22a34e[_0x134323(0x1cd)]!=_0x22a34e[_0x134323(0x1b4)]&&(_0x165825=_0x165825[_0x134323(0x1dd)](addChanSpyApplications(_0x22a34e,_0x22a34e[_0x134323(0x1b4)],_0x154cd9))),_0xa31109(_0x165825);}return _0xa31109([]);})[_0x21bf6d(0x1bb)](function(_0x28a861){_0x2415ad(_0x28a861);});});}function options(_0x4a39a9){const _0x1d4c0f=a778_0x42a141;return{'sequelize':_0x4a39a9,'tableName':_0x1d4c0f(0x1db),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeCreate':function(_0x430bd5){const _0x582b29=_0x1d4c0f;return _0x430bd5[_0x582b29(0x1d3)](),_0x430bd5['updatePassword']();},'beforeUpdate':function(_0x431136){const _0x56727d=_0x1d4c0f;return _0x431136[_0x56727d(0x1be)](_0x56727d(0x1d6))?(_0x431136[_0x56727d(0x1d3)](),_0x431136[_0x56727d(0x1ce)]()):Promise[_0x56727d(0x1b1)]();},'afterCreate':function(_0x57b170){const _0x2aa150=_0x1d4c0f,_0x1db2c2=_0x4a39a9['models'];let _0x5219f0=addUserApplication(_0x57b170,_0x57b170[_0x2aa150(0x1cd)]);return _0x57b170[_0x2aa150(0x1cd)]!=_0x57b170[_0x2aa150(0x1b4)]&&(_0x5219f0=_0x5219f0[_0x2aa150(0x1dd)](addUserApplication(_0x57b170,_0x57b170[_0x2aa150(0x1b4)]))),_0x1db2c2[_0x2aa150(0x1b0)][_0x2aa150(0x1d1)](_0x5219f0)[_0x2aa150(0x1c0)](function(){if(_0x57b170['chanspy'])return getChanSpy(_0x1db2c2,_0x57b170);})['then'](function(_0x32fd5d){const _0x6beb8e=_0x2aa150;return _0x32fd5d&&_0x32fd5d['length']?_0x1db2c2[_0x6beb8e(0x1b0)][_0x6beb8e(0x1d1)](_0x32fd5d):null;})['catch'](function(_0xbb9959){return _0xbb9959;});},'afterUpdate':function(_0x2a2b38){const _0x2bc020=_0x1d4c0f,_0x8b143c=_0x4a39a9[_0x2bc020(0x1da)];return Promise[_0x2bc020(0x1b1)]()[_0x2bc020(0x1c0)](function(){const _0x2b7e3f=_0x2bc020;if(_0x2a2b38[_0x2b7e3f(0x1be)](_0x2b7e3f(0x1b2))||_0x2a2b38[_0x2b7e3f(0x1be)](_0x2b7e3f(0x1d2)))return _0x8b143c['VoiceExtension']['destroy']({'where':{'UserId':_0x2a2b38['id'],'type':_0x2b7e3f(0x1cc),'ChanSpyId':{[Op['ne']]:null}}})['then'](function(){const _0x22c97a=_0x2b7e3f;if(_0x2a2b38['chanspy'])return getChanSpy(_0x8b143c,_0x2a2b38)[_0x22c97a(0x1c0)](function(_0x214d70){const _0x3696b9=_0x22c97a;if(_0x214d70&&_0x214d70[_0x3696b9(0x1c7)])return _0x8b143c['VoiceExtension'][_0x3696b9(0x1d1)](_0x214d70);});});})[_0x2bc020(0x1c0)](function(){const _0x32218c=_0x2bc020;return _0x2a2b38['changed'](_0x32218c(0x1ae))||_0x2a2b38['changed'](_0x32218c(0x1d2))?_0x8b143c[_0x32218c(0x1b0)][_0x32218c(0x1cb)]({'where':{'UserId':_0x2a2b38['id'],'type':_0x32218c(0x1cc),'ChanSpyId':null}})['then'](function(){const _0x16f16a=_0x32218c;let _0x2ff22a=addUserApplication(_0x2a2b38,_0x2a2b38[_0x16f16a(0x1cd)]);return _0x2a2b38[_0x16f16a(0x1cd)]!=_0x2a2b38[_0x16f16a(0x1b4)]&&(_0x2ff22a=_0x2ff22a[_0x16f16a(0x1dd)](addUserApplication(_0x2a2b38,_0x2a2b38[_0x16f16a(0x1b4)]))),_0x8b143c[_0x16f16a(0x1b0)][_0x16f16a(0x1d1)](_0x2ff22a);}):null;})['catch'](function(_0x5a6cdf){return _0x5a6cdf;});},'afterDestroy':function(_0x2f739a){const _0x22925a=_0x1d4c0f,_0x38c718=_0x4a39a9[_0x22925a(0x1da)];return _0x38c718[_0x22925a(0x1b0)][_0x22925a(0x1cb)]({'where':{'UserId':_0x2f739a['id'],'type':_0x22925a(0x1cc)}});}},'charset':'utf8','collate':_0x1d4c0f(0x1cf)};}module['exports'][a778_0x42a141(0x1c5)]=options; \ No newline at end of file diff --git a/server/api/user/user.rpc.js b/server/api/user/user.rpc.js index a906fac..520fce3 100644 --- a/server/api/user/user.rpc.js +++ b/server/api/user/user.rpc.js @@ -1 +1 @@ -const a779_0x4e29=['internal','catch','channel','../../config/logger','getVoiceQueues','getChannels','push','concat','YYYY-MM-DD\x20HH:mm:ss','upsert','error','register','chat','limit','../../rediscache','then','raw','DEFAULT\x20PAUSE','PauseUser','agent','sequelize','merge','set','type','update','length','isNil','LOGININPAUSE','options','model','callysquare','util','body','LogoutUser','voice','LOGIN','lodash','./user.socket','attributes','all','info','UserVoiceQueueRt','bulkCreate','openchannel','name','count','role','debug','MemberReport','loginInPause','rpc','mobile','where','GetUser','Pause','../../config/utils','findOne','LoginUser','User','whatsapp','agents','ShowUser','findAll','%s%s','format','message','include','forEach','PAUSE','destroy','system','interface','SIP/%s','../../mysqldb','map'];(function(_0x27e740,_0x233d2e){const _0x4e29a6=function(_0x178ac0){while(--_0x178ac0){_0x27e740['push'](_0x27e740['shift']());}};_0x4e29a6(++_0x233d2e);}(a779_0x4e29,0xf0));const a779_0x178a=function(_0x27e740,_0x233d2e){_0x27e740=_0x27e740-0xb5;let _0x4e29a6=a779_0x4e29[_0x27e740];return _0x4e29a6;};const a779_0x531037=a779_0x178a;'use strict';const _=require(a779_0x531037(0xca)),util=require(a779_0x531037(0xc5)),db=require(a779_0x531037(0xef))['db'],logger=require(a779_0x531037(0xf4))(a779_0x531037(0xd8)),moment=require('moment'),utils=require(a779_0x531037(0xdd)),{getSocket}=require(a779_0x531037(0xff)),socket=getSocket(),sequelize=require(a779_0x531037(0xba)),{Op}=sequelize;require(a779_0x531037(0xcb))[a779_0x531037(0xfc)](socket),exports[a779_0x531037(0xdb)]=function(_0x445b3d){const _0x231d7c=this;return new Promise(function(_0xa1e16,_0x3c558e){const _0x1e171f=a779_0x178a;return db[_0x1e171f(0xe0)][_0x1e171f(0xe4)]({'raw':_0x445b3d['options']?_0x445b3d['options'][_0x1e171f(0xb6)]===undefined?!![]:![]:!![],'where':_0x445b3d['options']?_0x445b3d[_0x1e171f(0xc2)][_0x1e171f(0xda)]||null:null,'attributes':_0x445b3d[_0x1e171f(0xc2)]?_0x445b3d[_0x1e171f(0xc2)][_0x1e171f(0xcc)]||null:null,'limit':_0x445b3d[_0x1e171f(0xc2)]?_0x445b3d[_0x1e171f(0xc2)][_0x1e171f(0xfe)]||null:null,'include':_0x445b3d[_0x1e171f(0xc2)]?_0x445b3d[_0x1e171f(0xc2)][_0x1e171f(0xe8)]?_[_0x1e171f(0xf0)](_0x445b3d['options'][_0x1e171f(0xe8)],function(_0x20c912){const _0x31db58=_0x1e171f;return{'model':db[_0x20c912[_0x31db58(0xc3)]],'as':_0x20c912['as'],'attributes':_0x20c912[_0x31db58(0xcc)],'include':_0x20c912[_0x31db58(0xe8)]?_['map'](_0x20c912[_0x31db58(0xe8)],function(_0x1d7a91){const _0x1771b1=_0x31db58;return{'model':db[_0x1d7a91[_0x1771b1(0xc3)]],'as':_0x1d7a91['as'],'attributes':_0x1d7a91[_0x1771b1(0xcc)],'include':_0x1d7a91[_0x1771b1(0xe8)]?_[_0x1771b1(0xf0)](_0x1d7a91[_0x1771b1(0xe8)],function(_0x82e1e8){return{'model':db[_0x82e1e8['model']],'as':_0x82e1e8['as'],'attributes':_0x82e1e8['attributes']};}):[]};}):[]};}):[]:[]})[_0x1e171f(0xb5)](function(_0x22f25c){const _0x11207e=_0x1e171f;logger[_0x11207e(0xce)]('GetUser',_0x445b3d),logger['debug'](_0x11207e(0xdb),_0x445b3d,JSON['stringify'](_0x22f25c)),_0xa1e16(_0x22f25c);})[_0x1e171f(0xf2)](function(_0x23ec4b){const _0x6af135=_0x1e171f;logger[_0x6af135(0xfb)]('GetUser',_0x23ec4b[_0x6af135(0xe7)],_0x445b3d),_0x3c558e(_0x231d7c[_0x6af135(0xfb)](0x1f4,_0x23ec4b[_0x6af135(0xe7)]));});});},exports['ShowUser']=function(_0x2f970e){const _0x276072=this;return new Promise(function(_0x551837,_0x3ec071){const _0x14f15e=a779_0x178a;return db[_0x14f15e(0xe0)]['findOne']({'raw':_0x2f970e[_0x14f15e(0xc2)]?_0x2f970e[_0x14f15e(0xc2)][_0x14f15e(0xb6)]===undefined?!![]:![]:!![],'where':_0x2f970e[_0x14f15e(0xc2)]?_0x2f970e[_0x14f15e(0xc2)][_0x14f15e(0xda)]||null:null,'attributes':_0x2f970e[_0x14f15e(0xc2)]?_0x2f970e['options'][_0x14f15e(0xcc)]||null:null,'include':_0x2f970e[_0x14f15e(0xc2)]?_0x2f970e['options'][_0x14f15e(0xe8)]?_[_0x14f15e(0xf0)](_0x2f970e['options'][_0x14f15e(0xe8)],function(_0x3abb8b){const _0x3d700c=_0x14f15e;return{'model':db[_0x3abb8b[_0x3d700c(0xc3)]],'as':_0x3abb8b['as'],'attributes':_0x3abb8b[_0x3d700c(0xcc)],'include':_0x3abb8b[_0x3d700c(0xe8)]?_[_0x3d700c(0xf0)](_0x3abb8b[_0x3d700c(0xe8)],function(_0x25e0ba){const _0x1f225b=_0x3d700c;return{'model':db[_0x25e0ba['model']],'as':_0x25e0ba['as'],'attributes':_0x25e0ba[_0x1f225b(0xcc)],'include':_0x25e0ba['include']?_[_0x1f225b(0xf0)](_0x25e0ba[_0x1f225b(0xe8)],function(_0x3b412b){return{'model':db[_0x3b412b['model']],'as':_0x3b412b['as'],'attributes':_0x3b412b['attributes']};}):[]};}):[]};}):[]:[]})[_0x14f15e(0xb5)](function(_0x2fad55){const _0x3d350f=_0x14f15e;logger['info'](_0x3d350f(0xe3),_0x2f970e),logger[_0x3d350f(0xd5)](_0x3d350f(0xe3),_0x2f970e,JSON['stringify'](_0x2fad55)),_0x551837(_0x2fad55);})['catch'](function(_0x56d3b5){const _0x2e9265=_0x14f15e;logger['error']('ShowUser',_0x56d3b5[_0x2e9265(0xe7)],_0x2f970e),_0x3ec071(_0x276072['error'](0x1f4,_0x56d3b5[_0x2e9265(0xe7)]));});});},exports[a779_0x531037(0xb8)]=function(_0x5a3d9f){const _0x4e48e0=this;return new Promise(function(_0x5c8b7d,_0x285ca2){const _0x57400e=a779_0x178a;let _0x3e7876;return db[_0x57400e(0xe0)][_0x57400e(0xde)]({'where':_0x5a3d9f[_0x57400e(0xc2)][_0x57400e(0xda)]||{},'attributes':['id',_0x57400e(0xd2),'role',_0x57400e(0xf1),_0x57400e(0xed)]})[_0x57400e(0xb5)](function(_0x4ab89f){const _0x3735e7=_0x57400e;if(_0x4ab89f)return _0x3e7876=_0x4ab89f,db[_0x3735e7(0xcf)][_0x3735e7(0xbe)]({'paused':0x1},{'where':{'UserId':_0x3e7876['id']},'individualHooks':!![]});})[_0x57400e(0xb5)](function(){const _0x3768a6=_0x57400e;if(_0x3e7876)return db['MemberReport']['findAll']({'where':{'membername':_0x3e7876[_0x3768a6(0xd2)],'type':'PAUSE','exitAt':null}});})[_0x57400e(0xb5)](function(_0x15ae08){const _0x455d26=_0x57400e;if(_0x3e7876){if(_0x15ae08&&_0x15ae08[_0x455d26(0xbf)]){const _0x1090bf=moment()[_0x455d26(0xe6)](_0x455d26(0xf9));for(let _0x5d7e6d=0x0,_0x291e30=_0x15ae08[_0x455d26(0xbf)];_0x5d7e6d<_0x291e30;_0x5d7e6d++){_0x15ae08[_0x5d7e6d][_0x455d26(0xbe)]({'exitAt':_0x1090bf});}}}})[_0x57400e(0xb5)](function(){const _0x1dbc47=_0x57400e;if(_0x3e7876){const _0x53b100=[],_0x28d6a6=utils['getChannels']();return _0x28d6a6[_0x1dbc47(0xe9)](function(_0x2f0aa8){const _0x1c66be=_0x1dbc47;_0x53b100[_0x1c66be(0xf7)]({'channel':_0x2f0aa8,'membername':_0x3e7876[_0x1c66be(0xd2)],'interface':_[_0x1c66be(0xc0)](_0x3e7876[_0x1c66be(0xed)])?util[_0x1c66be(0xe6)](_0x1c66be(0xee),_0x3e7876[_0x1c66be(0xd2)]):_0x3e7876[_0x1c66be(0xed)],'type':'PAUSE','enterAt':moment()[_0x1c66be(0xe6)](_0x1c66be(0xf9)),'data1':_0x5a3d9f[_0x1c66be(0xc6)][_0x1c66be(0xbd)]||_0x1c66be(0xb7),'role':_0x3e7876[_0x1c66be(0xd4)],'internal':_0x3e7876[_0x1c66be(0xf1)],'uniqueid':_0x5a3d9f['body']['uniqueid']||null});}),db[_0x1dbc47(0xd6)][_0x1dbc47(0xd0)](_0x53b100,{'individualHooks':!![]});}})[_0x57400e(0xb5)](function(){const _0x5855fe=_0x57400e;if(_0x3e7876)return _0x3e7876[_0x5855fe(0xbe)]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'openchannelPause':!![],'whatsappPause':!![],'pauseType':_0x5a3d9f[_0x5855fe(0xc6)][_0x5855fe(0xbd)]||_0x5855fe(0xb7),'lastPauseAt':moment()[_0x5855fe(0xe6)](_0x5855fe(0xf9))});})[_0x57400e(0xb5)](function(_0x2a84d9){_0x5c8b7d(_0x2a84d9);})[_0x57400e(0xf2)](function(_0x447b36){const _0x57e255=_0x57400e;_0x285ca2(_0x4e48e0[_0x57e255(0xfb)](0x1f4,_0x447b36[_0x57e255(0xe7)]));});});},exports['UnpauseUser']=function(_0x2f911e){const _0x141860=this;return new Promise(function(_0x64f488,_0x171720){const _0x4dc222=a779_0x178a;let _0x40bf74;return db[_0x4dc222(0xe0)][_0x4dc222(0xde)]({'where':_0x2f911e[_0x4dc222(0xc2)]['where']||{},'attributes':['id',_0x4dc222(0xd2)]})[_0x4dc222(0xb5)](function(_0x2bb78a){const _0x4a6971=_0x4dc222;if(_0x2bb78a){_0x40bf74=_0x2bb78a;if(_0x2f911e[_0x4a6971(0xc6)][_0x4a6971(0xf3)]&&!utils['isValidChannel'](_0x2f911e[_0x4a6971(0xc6)][_0x4a6971(0xf3)]))throw new Error('Unknown\x20channel');switch(_0x2f911e[_0x4a6971(0xc6)][_0x4a6971(0xf3)]){case _0x4a6971(0xc8):return db[_0x4a6971(0xcf)][_0x4a6971(0xbe)]({'paused':0x0},{'where':{'UserId':_0x40bf74['id']}})['then'](function(){const _0x46f57a=_0x4a6971;return db['MemberReport'][_0x46f57a(0xde)]({'where':{'channel':_0x2f911e[_0x46f57a(0xc6)][_0x46f57a(0xf3)],'membername':_0x40bf74[_0x46f57a(0xd2)],'type':_0x46f57a(0xea),'exitAt':null}});})[_0x4a6971(0xb5)](function(_0x5f3793){const _0x23c9c9=_0x4a6971;if(_0x5f3793)return _0x5f3793['update']({'exitAt':moment()[_0x23c9c9(0xe6)](_0x23c9c9(0xf9)),'data2':_0x23c9c9(0xec)},{'individualHooks':!![]});return null;})[_0x4a6971(0xb5)](function(){const _0x546bdd=_0x4a6971;return _0x40bf74[_0x546bdd(0xbe)]({'voicePause':![]});});case'mail':case _0x4a6971(0xfd):case'fax':case'sms':case _0x4a6971(0xd1):case _0x4a6971(0xe1):return db['MemberReport']['findOne']({'where':{'channel':_0x2f911e[_0x4a6971(0xc6)][_0x4a6971(0xf3)],'membername':_0x40bf74['name'],'type':'PAUSE','exitAt':null}})[_0x4a6971(0xb5)](function(_0xc722ff){const _0x191ff5=_0x4a6971;return _0xc722ff['update']({'exitAt':moment()['format'](_0x191ff5(0xf9)),'data2':_0x191ff5(0xec)},{'individualHooks':!![]});})[_0x4a6971(0xb5)](function(){const _0x1dd9c5=_0x4a6971,_0x477299={};return _[_0x1dd9c5(0xbc)](_0x477299,util['format'](_0x1dd9c5(0xe5),_0x2f911e[_0x1dd9c5(0xc6)][_0x1dd9c5(0xf3)],_0x1dd9c5(0xdc)),![]),_0x40bf74[_0x1dd9c5(0xbe)](_0x477299);});default:return db[_0x4a6971(0xcf)][_0x4a6971(0xbe)]({'paused':0x0},{'where':{'UserId':_0x40bf74['id']}})[_0x4a6971(0xb5)](function(){const _0x4a8104=_0x4a6971;return db[_0x4a8104(0xd6)][_0x4a8104(0xe4)]({'where':{'membername':_0x40bf74[_0x4a8104(0xd2)],'type':_0x4a8104(0xea),'exitAt':null}});})['then'](function(_0x444431){const _0x1f25d7=_0x4a6971,_0x582468=[];return _0x444431['forEach'](function(_0x354af5){const _0x390cea=a779_0x178a;_0x582468[_0x390cea(0xf7)](_0x354af5['update']({'exitAt':moment()['format'](_0x390cea(0xf9)),'data2':_0x390cea(0xec)}));}),Promise[_0x1f25d7(0xcd)](_0x582468);})[_0x4a6971(0xb5)](function(){return _0x40bf74['update']({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![],'whatsappPause':![]});});}}})['then'](function(_0x1f4aff){_0x64f488(_0x1f4aff);})[_0x4dc222(0xf2)](function(_0x1cedbf){const _0x476d1b=_0x4dc222;_0x171720(_0x141860[_0x476d1b(0xfb)](0x1f4,_0x1cedbf[_0x476d1b(0xe7)]));});});},exports[a779_0x531037(0xc7)]=function(_0x2f4d37){const _0xac315a=this;return new Promise(function(_0x531b87,_0x1b6a04){const _0xb13a53=a779_0x178a;let _0xda9b7;return db[_0xb13a53(0xe0)][_0xb13a53(0xde)]({'where':_0x2f4d37[_0xb13a53(0xc2)][_0xb13a53(0xda)]||{},'attributes':['id',_0xb13a53(0xd2)]})[_0xb13a53(0xb5)](function(_0x505cd2){const _0x10ea95=_0xb13a53;if(_0x505cd2)return _0xda9b7=_0x505cd2,db[_0x10ea95(0xcf)][_0x10ea95(0xeb)]({'where':{'membername':_0xda9b7['name']},'individualHooks':!![]});})[_0xb13a53(0xb5)](function(){const _0x4528db=_0xb13a53;if(_0xda9b7)return db['MemberReport'][_0x4528db(0xe4)]({'where':{'membername':_0xda9b7['name'],'exitAt':null}});})[_0xb13a53(0xb5)](function(_0x18c7b3){const _0x381fd1=_0xb13a53;if(_0xda9b7){if(_0x18c7b3&&_0x18c7b3[_0x381fd1(0xbf)]){const _0x4587a9=[];return _0x18c7b3[_0x381fd1(0xe9)](function(_0x34262b){const _0x9e1ca5=_0x381fd1;_0x4587a9[_0x9e1ca5(0xf7)](_0x34262b[_0x9e1ca5(0xbe)]({'exitAt':moment()[_0x9e1ca5(0xe6)](_0x9e1ca5(0xf9))}));}),Promise[_0x381fd1(0xcd)](_0x4587a9);}}})['then'](function(){const _0x1b2f22=_0xb13a53;if(_0xda9b7)return _0xda9b7[_0x1b2f22(0xbe)]({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![]});})[_0xb13a53(0xb5)](function(_0x4d285a){_0x531b87(_0x4d285a);})['catch'](function(_0x3b3393){const _0x499f59=_0xb13a53;_0x1b6a04(_0xac315a[_0x499f59(0xfb)](0x1f4,_0x3b3393['message']));});});},exports[a779_0x531037(0xdf)]=function(_0x3187e7){const _0x3dc941=this;return new Promise(function(_0x2e0f28,_0x3beac8){const _0x1c8173=a779_0x178a;let _0x195bd9,_0x83adee,_0x278818,_0x594caa;return db[_0x1c8173(0xe0)][_0x1c8173(0xde)]({'where':_0x3187e7[_0x1c8173(0xc2)]['where']||{},'attributes':['id',_0x1c8173(0xd2),_0x1c8173(0xd4),_0x1c8173(0xd9),'phone',_0x1c8173(0xf1),'loginInPause',_0x1c8173(0xed)]})[_0x1c8173(0xb5)](function(_0x23754b){const _0x528fe8=_0x1c8173;if(_0x23754b)return _0x195bd9=_0x23754b,_0x594caa=_0x3187e7[_0x528fe8(0xc6)]['interface']?_0x3187e7['body'][_0x528fe8(0xed)]:util[_0x528fe8(0xe6)](_0x528fe8(0xee),_0x195bd9[_0x528fe8(0xd2)]),db[_0x528fe8(0xe0)][_0x528fe8(0xd3)]({'where':{'role':_0x528fe8(0xb9),'online':!![],'id':{[Op['ne']]:_0x195bd9['id']}}});})[_0x1c8173(0xb5)](function(_0x3eb9fc){if(_0x3eb9fc)return _0x278818=_0x3eb9fc,require('../../config/license/util')['getLicense']();})[_0x1c8173(0xb5)](function(_0x425f74){const _0x387671=_0x1c8173;if(_0x425f74&&_0x425f74[_0x387671(0xe2)]&&_0x278818>=_0x425f74['agents'])throw new Error('Maximum\x20login\x20has\x20been\x20reached');})[_0x1c8173(0xb5)](function(){const _0x278bd8=_0x1c8173;if(_0x195bd9)return db[_0x278bd8(0xcf)][_0x278bd8(0xeb)]({'where':{'membername':_0x195bd9[_0x278bd8(0xd2)]},'individualHooks':!![]});})[_0x1c8173(0xb5)](function(){const _0x45ba83=_0x1c8173;if(_0x195bd9)return _0x195bd9[_0x45ba83(0xf5)]({'raw':!![]});})['then'](function(_0x5bca62){const _0x374fb6=_0x1c8173;if(_0x195bd9){if(_0x5bca62){const _0xef465e=[];_0x83adee=_0x5bca62;if(_0x83adee[_0x374fb6(0xbf)]){for(let _0x2cb089=0x0;_0x2cb089<_0x83adee['length'];_0x2cb089++){_0xef465e['push'](db[_0x374fb6(0xcf)][_0x374fb6(0xfa)]({'membername':_0x195bd9[_0x374fb6(0xd2)],'UserId':_0x195bd9['id'],'queue_name':_0x83adee[_0x2cb089][_0x374fb6(0xd2)],'VoiceQueueId':_0x83adee[_0x2cb089]['id'],'interface':_0x594caa,'paused':_0x195bd9[_0x374fb6(0xd7)]||![],'penalty':_0x83adee[_0x2cb089]['UserVoiceQueue.penalty']||0x0}));}return Promise[_0x374fb6(0xcd)](_0xef465e);}}}})['then'](function(){const _0x40d8dd=_0x1c8173;if(_0x195bd9)return db['MemberReport'][_0x40d8dd(0xe4)]({'where':{'membername':_0x195bd9[_0x40d8dd(0xd2)],'exitAt':null}});})[_0x1c8173(0xb5)](function(_0x52fb9a){const _0x55c308=_0x1c8173;if(_0x195bd9){if(_0x52fb9a&&_0x52fb9a['length']){const _0x4500bd=[];return _0x52fb9a['forEach'](function(_0x5a98b0){const _0x4a6312=a779_0x178a;_0x4500bd['push'](_0x5a98b0['update']({'exitAt':moment()[_0x4a6312(0xe6)](_0x4a6312(0xf9))}));}),Promise[_0x55c308(0xcd)](_0x4500bd);}}})['then'](function(){const _0x2c24a5=_0x1c8173;if(_0x195bd9){const _0x6df064=[],_0x4a7cf9=[],_0x365e81=utils[_0x2c24a5(0xf6)](),_0x1e8776={'membername':_0x195bd9['name'],'interface':_0x594caa,'enterAt':moment()[_0x2c24a5(0xe6)](_0x2c24a5(0xf9)),'role':_0x195bd9['role'],'internal':_0x195bd9[_0x2c24a5(0xf1)]};return _0x365e81[_0x2c24a5(0xe9)](function(_0x2f1a30){const _0x44d48d=_0x2c24a5;_0x6df064[_0x44d48d(0xf7)](_[_0x44d48d(0xbb)]({'channel':_0x2f1a30,'type':_0x44d48d(0xc9),'data1':_0x44d48d(0xc4),'data2':_0x594caa},_0x1e8776)),_0x195bd9['loginInPause']&&_0x4a7cf9[_0x44d48d(0xf7)](_['merge']({'channel':_0x2f1a30,'type':_0x44d48d(0xea),'data1':_0x44d48d(0xc1)},_0x1e8776));}),db[_0x2c24a5(0xd6)]['bulkCreate'](_0x6df064[_0x2c24a5(0xf8)](_0x4a7cf9),{'individualHooks':!![]});}})[_0x1c8173(0xb5)](function(){const _0x3b7683=_0x1c8173;if(_0x195bd9)return _0x195bd9[_0x3b7683(0xbe)]({'online':!![],'lastLoginAt':moment()[_0x3b7683(0xe6)](_0x3b7683(0xf9)),'voicePause':_0x195bd9[_0x3b7683(0xd7)]||![],'mailPause':_0x195bd9['loginInPause']||![],'chatPause':_0x195bd9[_0x3b7683(0xd7)]||![],'faxPause':_0x195bd9[_0x3b7683(0xd7)]||![],'smsPause':_0x195bd9[_0x3b7683(0xd7)]||![],'openchannelPause':_0x195bd9[_0x3b7683(0xd7)]||![],'pauseType':_0x195bd9[_0x3b7683(0xd7)]?'LOGININPAUSE':null,'lastPauseAt':moment()['format'](_0x3b7683(0xf9)),'interface':_0x594caa});})[_0x1c8173(0xb5)](function(_0x41210b){_0x2e0f28(_0x41210b);})[_0x1c8173(0xf2)](function(_0x2dbf1d){const _0x3ea797=_0x1c8173;_0x3beac8(_0x3dc941[_0x3ea797(0xfb)](0x1f4,_0x2dbf1d[_0x3ea797(0xe7)]));});});}; \ No newline at end of file +const a779_0x537b=['debug','type','register','count','loginInPause','interface','model','UserVoiceQueue.penalty','LOGININPAUSE','callysquare','findOne','agents','bulkCreate','PauseUser','catch','%s%s','whatsapp','phone','getLicense','User','destroy','./user.socket','role','error','format','../../config/utils','raw','findAll','GetUser','then','mobile','fax','internal','SIP/%s','voice','YYYY-MM-DD\x20HH:mm:ss','where','merge','isValidChannel','PAUSE','LOGIN','MemberReport','system','LogoutUser','info','map','name','stringify','LoginUser','forEach','UserVoiceQueueRt','options','getVoiceQueues','attributes','util','isNil','include','update','push','agent','lodash','channel','body','all','DEFAULT\x20PAUSE','uniqueid','Unknown\x20channel','message','ShowUser','length','openchannel','mail'];(function(_0x5146c7,_0x3fde61){const _0x537bb8=function(_0x355d13){while(--_0x355d13){_0x5146c7['push'](_0x5146c7['shift']());}};_0x537bb8(++_0x3fde61);}(a779_0x537b,0x71));const a779_0x355d=function(_0x5146c7,_0x3fde61){_0x5146c7=_0x5146c7-0x16a;let _0x537bb8=a779_0x537b[_0x5146c7];return _0x537bb8;};const a779_0x585595=a779_0x355d;'use strict';const _=require(a779_0x585595(0x17d)),util=require(a779_0x585595(0x177)),db=require('../../mysqldb')['db'],logger=require('../../config/logger')('rpc'),moment=require('moment'),utils=require(a779_0x585595(0x1a2)),{getSocket}=require('../../rediscache'),socket=getSocket(),sequelize=require('sequelize'),{Op}=sequelize;require(a779_0x585595(0x19e))[a779_0x585595(0x18b)](socket),exports[a779_0x585595(0x1a5)]=function(_0x13e84b){const _0x1bf1ed=this;return new Promise(function(_0x33b27b,_0x42a9fe){const _0xe67918=a779_0x355d;return db[_0xe67918(0x19c)]['findAll']({'raw':_0x13e84b[_0xe67918(0x174)]?_0x13e84b[_0xe67918(0x174)][_0xe67918(0x1a3)]===undefined?!![]:![]:!![],'where':_0x13e84b[_0xe67918(0x174)]?_0x13e84b['options'][_0xe67918(0x1ad)]||null:null,'attributes':_0x13e84b['options']?_0x13e84b[_0xe67918(0x174)][_0xe67918(0x176)]||null:null,'limit':_0x13e84b['options']?_0x13e84b[_0xe67918(0x174)]['limit']||null:null,'include':_0x13e84b[_0xe67918(0x174)]?_0x13e84b[_0xe67918(0x174)][_0xe67918(0x179)]?_[_0xe67918(0x16e)](_0x13e84b[_0xe67918(0x174)]['include'],function(_0x289bd2){const _0x53dac4=_0xe67918;return{'model':db[_0x289bd2[_0x53dac4(0x18f)]],'as':_0x289bd2['as'],'attributes':_0x289bd2[_0x53dac4(0x176)],'include':_0x289bd2[_0x53dac4(0x179)]?_[_0x53dac4(0x16e)](_0x289bd2[_0x53dac4(0x179)],function(_0x2be781){const _0x76c8bc=_0x53dac4;return{'model':db[_0x2be781[_0x76c8bc(0x18f)]],'as':_0x2be781['as'],'attributes':_0x2be781[_0x76c8bc(0x176)],'include':_0x2be781[_0x76c8bc(0x179)]?_[_0x76c8bc(0x16e)](_0x2be781['include'],function(_0xbcb3ea){const _0x27b662=_0x76c8bc;return{'model':db[_0xbcb3ea[_0x27b662(0x18f)]],'as':_0xbcb3ea['as'],'attributes':_0xbcb3ea['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x680f80){const _0x522093=_0xe67918;logger[_0x522093(0x16d)](_0x522093(0x1a5),_0x13e84b),logger[_0x522093(0x189)](_0x522093(0x1a5),_0x13e84b,JSON[_0x522093(0x170)](_0x680f80)),_0x33b27b(_0x680f80);})[_0xe67918(0x197)](function(_0x4c2efe){const _0x1827f5=_0xe67918;logger[_0x1827f5(0x1a0)](_0x1827f5(0x1a5),_0x4c2efe[_0x1827f5(0x184)],_0x13e84b),_0x42a9fe(_0x1bf1ed[_0x1827f5(0x1a0)](0x1f4,_0x4c2efe[_0x1827f5(0x184)]));});});},exports['ShowUser']=function(_0x11354c){const _0x2e9d39=this;return new Promise(function(_0x2600d6,_0x6c1ded){const _0x19ebcc=a779_0x355d;return db[_0x19ebcc(0x19c)]['findOne']({'raw':_0x11354c[_0x19ebcc(0x174)]?_0x11354c[_0x19ebcc(0x174)]['raw']===undefined?!![]:![]:!![],'where':_0x11354c['options']?_0x11354c[_0x19ebcc(0x174)][_0x19ebcc(0x1ad)]||null:null,'attributes':_0x11354c['options']?_0x11354c[_0x19ebcc(0x174)]['attributes']||null:null,'include':_0x11354c[_0x19ebcc(0x174)]?_0x11354c[_0x19ebcc(0x174)][_0x19ebcc(0x179)]?_[_0x19ebcc(0x16e)](_0x11354c['options'][_0x19ebcc(0x179)],function(_0xfb938a){const _0x3e51be=_0x19ebcc;return{'model':db[_0xfb938a[_0x3e51be(0x18f)]],'as':_0xfb938a['as'],'attributes':_0xfb938a['attributes'],'include':_0xfb938a['include']?_['map'](_0xfb938a[_0x3e51be(0x179)],function(_0x1ec326){const _0xad4005=_0x3e51be;return{'model':db[_0x1ec326[_0xad4005(0x18f)]],'as':_0x1ec326['as'],'attributes':_0x1ec326['attributes'],'include':_0x1ec326[_0xad4005(0x179)]?_[_0xad4005(0x16e)](_0x1ec326[_0xad4005(0x179)],function(_0x4745e2){const _0x3c7daf=_0xad4005;return{'model':db[_0x4745e2[_0x3c7daf(0x18f)]],'as':_0x4745e2['as'],'attributes':_0x4745e2[_0x3c7daf(0x176)]};}):[]};}):[]};}):[]:[]})[_0x19ebcc(0x1a6)](function(_0x2f7bb6){const _0x223817=_0x19ebcc;logger[_0x223817(0x16d)](_0x223817(0x185),_0x11354c),logger['debug'](_0x223817(0x185),_0x11354c,JSON[_0x223817(0x170)](_0x2f7bb6)),_0x2600d6(_0x2f7bb6);})[_0x19ebcc(0x197)](function(_0x597505){const _0xa43add=_0x19ebcc;logger[_0xa43add(0x1a0)](_0xa43add(0x185),_0x597505['message'],_0x11354c),_0x6c1ded(_0x2e9d39['error'](0x1f4,_0x597505[_0xa43add(0x184)]));});});},exports[a779_0x585595(0x196)]=function(_0x4deb3b){const _0x522f35=this;return new Promise(function(_0x535ade,_0xa22a6b){const _0x592b68=a779_0x355d;let _0x300704;return db['User'][_0x592b68(0x193)]({'where':_0x4deb3b['options'][_0x592b68(0x1ad)]||{},'attributes':['id','name',_0x592b68(0x19f),'internal','interface']})['then'](function(_0x2c520b){const _0x2da471=_0x592b68;if(_0x2c520b)return _0x300704=_0x2c520b,db[_0x2da471(0x173)][_0x2da471(0x17a)]({'paused':0x1},{'where':{'UserId':_0x300704['id']},'individualHooks':!![]});})[_0x592b68(0x1a6)](function(){const _0x37f9ca=_0x592b68;if(_0x300704)return db['MemberReport'][_0x37f9ca(0x1a4)]({'where':{'membername':_0x300704[_0x37f9ca(0x16f)],'type':_0x37f9ca(0x1b0),'exitAt':null}});})[_0x592b68(0x1a6)](function(_0x51125e){const _0x13485d=_0x592b68;if(_0x300704){if(_0x51125e&&_0x51125e[_0x13485d(0x186)]){const _0x106f06=moment()['format'](_0x13485d(0x1ac));for(let _0x2fac77=0x0,_0x5446ef=_0x51125e[_0x13485d(0x186)];_0x2fac77<_0x5446ef;_0x2fac77++){_0x51125e[_0x2fac77][_0x13485d(0x17a)]({'exitAt':_0x106f06});}}}})[_0x592b68(0x1a6)](function(){const _0x51f9c7=_0x592b68;if(_0x300704){const _0x4853b4=[],_0x35937e=utils['getChannels']();return _0x35937e[_0x51f9c7(0x172)](function(_0x505170){const _0xe056bd=_0x51f9c7;_0x4853b4['push']({'channel':_0x505170,'membername':_0x300704[_0xe056bd(0x16f)],'interface':_[_0xe056bd(0x178)](_0x300704[_0xe056bd(0x18e)])?util[_0xe056bd(0x1a1)](_0xe056bd(0x1aa),_0x300704[_0xe056bd(0x16f)]):_0x300704[_0xe056bd(0x18e)],'type':_0xe056bd(0x1b0),'enterAt':moment()[_0xe056bd(0x1a1)](_0xe056bd(0x1ac)),'data1':_0x4deb3b[_0xe056bd(0x17f)][_0xe056bd(0x18a)]||'DEFAULT\x20PAUSE','role':_0x300704['role'],'internal':_0x300704[_0xe056bd(0x1a9)],'uniqueid':_0x4deb3b['body'][_0xe056bd(0x182)]||null});}),db['MemberReport'][_0x51f9c7(0x195)](_0x4853b4,{'individualHooks':!![]});}})['then'](function(){const _0x37d5bd=_0x592b68;if(_0x300704)return _0x300704[_0x37d5bd(0x17a)]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'openchannelPause':!![],'whatsappPause':!![],'pauseType':_0x4deb3b['body'][_0x37d5bd(0x18a)]||_0x37d5bd(0x181),'lastPauseAt':moment()[_0x37d5bd(0x1a1)](_0x37d5bd(0x1ac))});})[_0x592b68(0x1a6)](function(_0x13ab7f){_0x535ade(_0x13ab7f);})[_0x592b68(0x197)](function(_0x551734){const _0x23ccae=_0x592b68;_0xa22a6b(_0x522f35[_0x23ccae(0x1a0)](0x1f4,_0x551734[_0x23ccae(0x184)]));});});},exports['UnpauseUser']=function(_0x4f5981){const _0x96255a=this;return new Promise(function(_0x4a2b5e,_0x564925){const _0x5cbdd5=a779_0x355d;let _0x3fe6c5;return db[_0x5cbdd5(0x19c)][_0x5cbdd5(0x193)]({'where':_0x4f5981[_0x5cbdd5(0x174)][_0x5cbdd5(0x1ad)]||{},'attributes':['id',_0x5cbdd5(0x16f)]})[_0x5cbdd5(0x1a6)](function(_0x420cf7){const _0x329b77=_0x5cbdd5;if(_0x420cf7){_0x3fe6c5=_0x420cf7;if(_0x4f5981[_0x329b77(0x17f)][_0x329b77(0x17e)]&&!utils[_0x329b77(0x1af)](_0x4f5981[_0x329b77(0x17f)][_0x329b77(0x17e)]))throw new Error(_0x329b77(0x183));switch(_0x4f5981[_0x329b77(0x17f)][_0x329b77(0x17e)]){case _0x329b77(0x1ab):return db['UserVoiceQueueRt']['update']({'paused':0x0},{'where':{'UserId':_0x3fe6c5['id']}})['then'](function(){const _0x15ed8=_0x329b77;return db[_0x15ed8(0x16a)]['findOne']({'where':{'channel':_0x4f5981[_0x15ed8(0x17f)]['channel'],'membername':_0x3fe6c5['name'],'type':_0x15ed8(0x1b0),'exitAt':null}});})[_0x329b77(0x1a6)](function(_0x46b62a){const _0x3dc658=_0x329b77;if(_0x46b62a)return _0x46b62a[_0x3dc658(0x17a)]({'exitAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'data2':'system'},{'individualHooks':!![]});return null;})[_0x329b77(0x1a6)](function(){return _0x3fe6c5['update']({'voicePause':![]});});case _0x329b77(0x188):case'chat':case _0x329b77(0x1a8):case'sms':case _0x329b77(0x187):case _0x329b77(0x199):return db[_0x329b77(0x16a)][_0x329b77(0x193)]({'where':{'channel':_0x4f5981['body'][_0x329b77(0x17e)],'membername':_0x3fe6c5[_0x329b77(0x16f)],'type':'PAUSE','exitAt':null}})[_0x329b77(0x1a6)](function(_0x4caa56){const _0x50fc93=_0x329b77;return _0x4caa56[_0x50fc93(0x17a)]({'exitAt':moment()[_0x50fc93(0x1a1)]('YYYY-MM-DD\x20HH:mm:ss'),'data2':_0x50fc93(0x16b)},{'individualHooks':!![]});})[_0x329b77(0x1a6)](function(){const _0x44ae0a=_0x329b77,_0x252df8={};return _['set'](_0x252df8,util['format'](_0x44ae0a(0x198),_0x4f5981[_0x44ae0a(0x17f)][_0x44ae0a(0x17e)],'Pause'),![]),_0x3fe6c5['update'](_0x252df8);});default:return db[_0x329b77(0x173)]['update']({'paused':0x0},{'where':{'UserId':_0x3fe6c5['id']}})['then'](function(){const _0x544272=_0x329b77;return db['MemberReport'][_0x544272(0x1a4)]({'where':{'membername':_0x3fe6c5['name'],'type':_0x544272(0x1b0),'exitAt':null}});})[_0x329b77(0x1a6)](function(_0xb9ea7e){const _0x36a661=_0x329b77,_0x326a17=[];return _0xb9ea7e['forEach'](function(_0x49e3a6){const _0x5e02d3=a779_0x355d;_0x326a17[_0x5e02d3(0x17b)](_0x49e3a6['update']({'exitAt':moment()[_0x5e02d3(0x1a1)]('YYYY-MM-DD\x20HH:mm:ss'),'data2':_0x5e02d3(0x16b)}));}),Promise[_0x36a661(0x180)](_0x326a17);})[_0x329b77(0x1a6)](function(){const _0x4ef901=_0x329b77;return _0x3fe6c5[_0x4ef901(0x17a)]({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![],'whatsappPause':![]});});}}})[_0x5cbdd5(0x1a6)](function(_0x53ea2a){_0x4a2b5e(_0x53ea2a);})[_0x5cbdd5(0x197)](function(_0x220e44){const _0x6a15ab=_0x5cbdd5;_0x564925(_0x96255a['error'](0x1f4,_0x220e44[_0x6a15ab(0x184)]));});});},exports[a779_0x585595(0x16c)]=function(_0x2d1802){const _0x48652f=this;return new Promise(function(_0x2fbcc1,_0x290e38){const _0x458f80=a779_0x355d;let _0x4ca25d;return db[_0x458f80(0x19c)][_0x458f80(0x193)]({'where':_0x2d1802['options'][_0x458f80(0x1ad)]||{},'attributes':['id',_0x458f80(0x16f)]})[_0x458f80(0x1a6)](function(_0x57b937){const _0x467e99=_0x458f80;if(_0x57b937)return _0x4ca25d=_0x57b937,db[_0x467e99(0x173)][_0x467e99(0x19d)]({'where':{'membername':_0x4ca25d['name']},'individualHooks':!![]});})[_0x458f80(0x1a6)](function(){const _0x2a3a56=_0x458f80;if(_0x4ca25d)return db['MemberReport'][_0x2a3a56(0x1a4)]({'where':{'membername':_0x4ca25d[_0x2a3a56(0x16f)],'exitAt':null}});})[_0x458f80(0x1a6)](function(_0x445dc5){const _0x44c01c=_0x458f80;if(_0x4ca25d){if(_0x445dc5&&_0x445dc5[_0x44c01c(0x186)]){const _0x1aeaa1=[];return _0x445dc5['forEach'](function(_0x58bde3){const _0x5c014f=_0x44c01c;_0x1aeaa1[_0x5c014f(0x17b)](_0x58bde3['update']({'exitAt':moment()[_0x5c014f(0x1a1)](_0x5c014f(0x1ac))}));}),Promise[_0x44c01c(0x180)](_0x1aeaa1);}}})[_0x458f80(0x1a6)](function(){const _0x4c22fb=_0x458f80;if(_0x4ca25d)return _0x4ca25d[_0x4c22fb(0x17a)]({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![]});})[_0x458f80(0x1a6)](function(_0x3a6d66){_0x2fbcc1(_0x3a6d66);})[_0x458f80(0x197)](function(_0x50f073){const _0x527a11=_0x458f80;_0x290e38(_0x48652f[_0x527a11(0x1a0)](0x1f4,_0x50f073['message']));});});},exports[a779_0x585595(0x171)]=function(_0x1e0b5c){const _0x2e5fb5=this;return new Promise(function(_0x3aff81,_0x205d03){const _0x1bf5b9=a779_0x355d;let _0x472e43,_0x209d30,_0x328dff,_0x45bcbb;return db[_0x1bf5b9(0x19c)]['findOne']({'where':_0x1e0b5c[_0x1bf5b9(0x174)][_0x1bf5b9(0x1ad)]||{},'attributes':['id',_0x1bf5b9(0x16f),_0x1bf5b9(0x19f),_0x1bf5b9(0x1a7),_0x1bf5b9(0x19a),_0x1bf5b9(0x1a9),'loginInPause',_0x1bf5b9(0x18e)]})[_0x1bf5b9(0x1a6)](function(_0x281ce6){const _0x3518e6=_0x1bf5b9;if(_0x281ce6)return _0x472e43=_0x281ce6,_0x45bcbb=_0x1e0b5c[_0x3518e6(0x17f)][_0x3518e6(0x18e)]?_0x1e0b5c[_0x3518e6(0x17f)][_0x3518e6(0x18e)]:util['format'](_0x3518e6(0x1aa),_0x472e43[_0x3518e6(0x16f)]),db[_0x3518e6(0x19c)][_0x3518e6(0x18c)]({'where':{'role':_0x3518e6(0x17c),'online':!![],'id':{[Op['ne']]:_0x472e43['id']}}});})[_0x1bf5b9(0x1a6)](function(_0x1e2773){const _0x5ef31f=_0x1bf5b9;if(_0x1e2773)return _0x328dff=_0x1e2773,require('../../config/license/util')[_0x5ef31f(0x19b)]();})[_0x1bf5b9(0x1a6)](function(_0x1d807a){const _0x56315d=_0x1bf5b9;if(_0x1d807a&&_0x1d807a[_0x56315d(0x194)]&&_0x328dff>=_0x1d807a[_0x56315d(0x194)])throw new Error('Maximum\x20login\x20has\x20been\x20reached');})['then'](function(){const _0x32cc6c=_0x1bf5b9;if(_0x472e43)return db[_0x32cc6c(0x173)]['destroy']({'where':{'membername':_0x472e43[_0x32cc6c(0x16f)]},'individualHooks':!![]});})[_0x1bf5b9(0x1a6)](function(){const _0x10fdeb=_0x1bf5b9;if(_0x472e43)return _0x472e43[_0x10fdeb(0x175)]({'raw':!![]});})['then'](function(_0x114b24){const _0x46cda1=_0x1bf5b9;if(_0x472e43){if(_0x114b24){const _0x36a88f=[];_0x209d30=_0x114b24;if(_0x209d30[_0x46cda1(0x186)]){for(let _0x48a02b=0x0;_0x48a02b<_0x209d30[_0x46cda1(0x186)];_0x48a02b++){_0x36a88f[_0x46cda1(0x17b)](db['UserVoiceQueueRt']['upsert']({'membername':_0x472e43[_0x46cda1(0x16f)],'UserId':_0x472e43['id'],'queue_name':_0x209d30[_0x48a02b][_0x46cda1(0x16f)],'VoiceQueueId':_0x209d30[_0x48a02b]['id'],'interface':_0x45bcbb,'paused':_0x472e43[_0x46cda1(0x18d)]||![],'penalty':_0x209d30[_0x48a02b][_0x46cda1(0x190)]||0x0}));}return Promise[_0x46cda1(0x180)](_0x36a88f);}}}})[_0x1bf5b9(0x1a6)](function(){const _0x3049b8=_0x1bf5b9;if(_0x472e43)return db[_0x3049b8(0x16a)][_0x3049b8(0x1a4)]({'where':{'membername':_0x472e43['name'],'exitAt':null}});})['then'](function(_0x225761){const _0x40a38c=_0x1bf5b9;if(_0x472e43){if(_0x225761&&_0x225761[_0x40a38c(0x186)]){const _0x2a816a=[];return _0x225761['forEach'](function(_0x48ea37){const _0x49eff3=_0x40a38c;_0x2a816a['push'](_0x48ea37['update']({'exitAt':moment()[_0x49eff3(0x1a1)](_0x49eff3(0x1ac))}));}),Promise[_0x40a38c(0x180)](_0x2a816a);}}})[_0x1bf5b9(0x1a6)](function(){const _0x58f852=_0x1bf5b9;if(_0x472e43){const _0xd034b1=[],_0xe32c97=[],_0x183c85=utils['getChannels'](),_0x20972b={'membername':_0x472e43[_0x58f852(0x16f)],'interface':_0x45bcbb,'enterAt':moment()[_0x58f852(0x1a1)](_0x58f852(0x1ac)),'role':_0x472e43['role'],'internal':_0x472e43[_0x58f852(0x1a9)]};return _0x183c85[_0x58f852(0x172)](function(_0x312d1a){const _0x353abc=_0x58f852;_0xd034b1[_0x353abc(0x17b)](_[_0x353abc(0x1ae)]({'channel':_0x312d1a,'type':_0x353abc(0x1b1),'data1':_0x353abc(0x192),'data2':_0x45bcbb},_0x20972b)),_0x472e43[_0x353abc(0x18d)]&&_0xe32c97[_0x353abc(0x17b)](_[_0x353abc(0x1ae)]({'channel':_0x312d1a,'type':_0x353abc(0x1b0),'data1':_0x353abc(0x191)},_0x20972b));}),db['MemberReport'][_0x58f852(0x195)](_0xd034b1['concat'](_0xe32c97),{'individualHooks':!![]});}})['then'](function(){const _0x210875=_0x1bf5b9;if(_0x472e43)return _0x472e43['update']({'online':!![],'lastLoginAt':moment()[_0x210875(0x1a1)](_0x210875(0x1ac)),'voicePause':_0x472e43[_0x210875(0x18d)]||![],'mailPause':_0x472e43['loginInPause']||![],'chatPause':_0x472e43[_0x210875(0x18d)]||![],'faxPause':_0x472e43[_0x210875(0x18d)]||![],'smsPause':_0x472e43[_0x210875(0x18d)]||![],'openchannelPause':_0x472e43['loginInPause']||![],'pauseType':_0x472e43[_0x210875(0x18d)]?'LOGININPAUSE':null,'lastPauseAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'interface':_0x45bcbb});})[_0x1bf5b9(0x1a6)](function(_0x5d6ca6){_0x3aff81(_0x5d6ca6);})[_0x1bf5b9(0x197)](function(_0x181c01){const _0x29bc25=_0x1bf5b9;_0x205d03(_0x2e5fb5[_0x29bc25(0x1a0)](0x1f4,_0x181c01[_0x29bc25(0x184)]));});});}; \ No newline at end of file diff --git a/server/api/user/user.socket.js b/server/api/user/user.socket.js index a6b3b98..afdf97d 100644 --- a/server/api/user/user.socket.js +++ b/server/api/user/user.socket.js @@ -1 +1 @@ -const a780_0x2e7e=['emit','./user.events','update','remove','save','user:','register'];(function(_0x55a2ee,_0x42c4e8){const _0x2e7ee6=function(_0x59ebd5){while(--_0x59ebd5){_0x55a2ee['push'](_0x55a2ee['shift']());}};_0x2e7ee6(++_0x42c4e8);}(a780_0x2e7e,0x121));const a780_0x59eb=function(_0x55a2ee,_0x42c4e8){_0x55a2ee=_0x55a2ee-0x198;let _0x2e7ee6=a780_0x2e7e[_0x55a2ee];return _0x2e7ee6;};const a780_0x4b4f80=a780_0x59eb;'use strict';const UserEvents=require(a780_0x4b4f80(0x19e)),events=[a780_0x4b4f80(0x19a),a780_0x4b4f80(0x199),a780_0x4b4f80(0x198)];function createListener(_0x51348d,_0x121afa){return function(_0x3f700c){const _0x3ddbb9=a780_0x59eb;_0x121afa[_0x3ddbb9(0x19d)](_0x51348d,_0x3f700c);};}exports[a780_0x4b4f80(0x19c)]=function(_0x38190c){const _0x102cd3=a780_0x4b4f80;for(let _0x1c7d4c=0x0,_0x3e5b70=events['length'];_0x1c7d4c<_0x3e5b70;_0x1c7d4c++){const _0x44b8aa=events[_0x1c7d4c],_0xef34eb=createListener(_0x102cd3(0x19b)+_0x44b8aa,_0x38190c);UserEvents['on'](_0x44b8aa,_0xef34eb);}}; \ No newline at end of file +const a780_0x2c08=['save','register','emit','update'];(function(_0x26316a,_0x1162af){const _0x2c0814=function(_0x306194){while(--_0x306194){_0x26316a['push'](_0x26316a['shift']());}};_0x2c0814(++_0x1162af);}(a780_0x2c08,0x112));const a780_0x3061=function(_0x26316a,_0x1162af){_0x26316a=_0x26316a-0x96;let _0x2c0814=a780_0x2c08[_0x26316a];return _0x2c0814;};const a780_0x14c8a8=a780_0x3061;'use strict';const UserEvents=require('./user.events'),events=[a780_0x14c8a8(0x98),'remove',a780_0x14c8a8(0x97)];function createListener(_0x26b4b8,_0x2f82a0){return function(_0x3be82f){const _0x1273f7=a780_0x3061;_0x2f82a0[_0x1273f7(0x96)](_0x26b4b8,_0x3be82f);};}exports[a780_0x14c8a8(0x99)]=function(_0x1085c3){for(let _0x559613=0x0,_0xf03f66=events['length'];_0x559613<_0xf03f66;_0x559613++){const _0x19929d=events[_0x559613],_0x352425=createListener('user:'+_0x19929d,_0x1085c3);UserEvents['on'](_0x19929d,_0x352425);}}; \ No newline at end of file diff --git a/server/api/userChatQueue/index.js b/server/api/userChatQueue/index.js index 9c8fc8e..8cc61ea 100644 --- a/server/api/userChatQueue/index.js +++ b/server/api/userChatQueue/index.js @@ -1 +1 @@ -const a781_0x28af=['express','exports'];(function(_0x30b37c,_0x42bcc8){const _0x28af0f=function(_0x12858a){while(--_0x12858a){_0x30b37c['push'](_0x30b37c['shift']());}};_0x28af0f(++_0x42bcc8);}(a781_0x28af,0xa2));const a781_0x1285=function(_0x30b37c,_0x42bcc8){_0x30b37c=_0x30b37c-0x107;let _0x28af0f=a781_0x28af[_0x30b37c];return _0x28af0f;};const a781_0x33bcde=a781_0x1285;'use strict';const express=require(a781_0x33bcde(0x107)),router=express['Router']();module[a781_0x33bcde(0x108)]=router; \ No newline at end of file +const a781_0x3c6e=['exports','Router','express'];(function(_0x53d5f3,_0x3c034a){const _0x3c6e3c=function(_0xf799){while(--_0xf799){_0x53d5f3['push'](_0x53d5f3['shift']());}};_0x3c6e3c(++_0x3c034a);}(a781_0x3c6e,0x158));const a781_0xf799=function(_0x53d5f3,_0x3c034a){_0x53d5f3=_0x53d5f3-0x95;let _0x3c6e3c=a781_0x3c6e[_0x53d5f3];return _0x3c6e3c;};const a781_0x10f02b=a781_0xf799;'use strict';const express=require(a781_0x10f02b(0x95)),router=express[a781_0x10f02b(0x97)]();module[a781_0x10f02b(0x96)]=router; \ No newline at end of file diff --git a/server/api/userChatQueue/userChatQueue.attributes.js b/server/api/userChatQueue/userChatQueue.attributes.js index 7739374..eb40fd3 100644 --- a/server/api/userChatQueue/userChatQueue.attributes.js +++ b/server/api/userChatQueue/userChatQueue.attributes.js @@ -1 +1 @@ -const a782_0x1dd9=['INTEGER','sequelize'];(function(_0xe1dda5,_0x19945a){const _0x1dd9a6=function(_0xd9e1f6){while(--_0xd9e1f6){_0xe1dda5['push'](_0xe1dda5['shift']());}};_0x1dd9a6(++_0x19945a);}(a782_0x1dd9,0xfb));const a782_0xd9e1=function(_0xe1dda5,_0x19945a){_0xe1dda5=_0xe1dda5-0x1e5;let _0x1dd9a6=a782_0x1dd9[_0xe1dda5];return _0x1dd9a6;};const a782_0x533b11=a782_0xd9e1;'use strict';const {DataTypes}=require(a782_0x533b11(0x1e5)),attributes={'penalty':{'type':DataTypes[a782_0x533b11(0x1e6)],'defaultValue':0x0}};module['exports']['attributes']=attributes; \ No newline at end of file +const a782_0x5459=['exports','sequelize','INTEGER','attributes'];(function(_0x570a26,_0x429ce7){const _0x54594d=function(_0xa66c7e){while(--_0xa66c7e){_0x570a26['push'](_0x570a26['shift']());}};_0x54594d(++_0x429ce7);}(a782_0x5459,0xc6));const a782_0xa66c=function(_0x570a26,_0x429ce7){_0x570a26=_0x570a26-0xbe;let _0x54594d=a782_0x5459[_0x570a26];return _0x54594d;};const a782_0x1dacbb=a782_0xa66c;'use strict';const {DataTypes}=require(a782_0x1dacbb(0xc1)),attributes={'penalty':{'type':DataTypes[a782_0x1dacbb(0xbe)],'defaultValue':0x0}};module[a782_0x1dacbb(0xc0)][a782_0x1dacbb(0xbf)]=attributes; \ No newline at end of file diff --git a/server/api/userChatQueue/userChatQueue.model.js b/server/api/userChatQueue/userChatQueue.model.js index 3302214..91a37ee 100644 --- a/server/api/userChatQueue/userChatQueue.model.js +++ b/server/api/userChatQueue/userChatQueue.model.js @@ -1 +1 @@ -const a783_0x4729=['function','UserChatQueue','sequelize','init','./userChatQueue.options'];(function(_0x1d4469,_0x3fdb5e){const _0x4729c3=function(_0x4f29c4){while(--_0x4f29c4){_0x1d4469['push'](_0x1d4469['shift']());}};_0x4729c3(++_0x3fdb5e);}(a783_0x4729,0xf9));const a783_0x4f29=function(_0x1d4469,_0x3fdb5e){_0x1d4469=_0x1d4469-0x1dc;let _0x4729c3=a783_0x4729[_0x1d4469];return _0x4729c3;};const a783_0x2cd3e2=a783_0x4f29;'use strict';const {Model}=require(a783_0x2cd3e2(0x1df)),{attributes}=require('./userChatQueue.attributes'),{options}=require(a783_0x2cd3e2(0x1dc));class UserChatQueue extends Model{}function init(_0x334c13,_0x4adee8){const _0x1a8f59=a783_0x2cd3e2,_0x78fe66=options(_0x334c13),_0x4b77ea=typeof _0x4adee8===_0x1a8f59(0x1dd)?_0x4adee8(_0x78fe66):_0x78fe66;return UserChatQueue[_0x1a8f59(0x1e0)](attributes,_0x4b77ea),UserChatQueue;}module['exports'][a783_0x2cd3e2(0x1de)]=UserChatQueue,module['exports'][a783_0x2cd3e2(0x1e0)]=init; \ No newline at end of file +const a783_0x3dbf=['init','UserChatQueue','sequelize','function','exports'];(function(_0x31cd0d,_0x29df35){const _0x3dbffa=function(_0x2aa1e6){while(--_0x2aa1e6){_0x31cd0d['push'](_0x31cd0d['shift']());}};_0x3dbffa(++_0x29df35);}(a783_0x3dbf,0x154));const a783_0x2aa1=function(_0x31cd0d,_0x29df35){_0x31cd0d=_0x31cd0d-0x195;let _0x3dbffa=a783_0x3dbf[_0x31cd0d];return _0x3dbffa;};const a783_0x3f1d30=a783_0x2aa1;'use strict';const {Model}=require(a783_0x3f1d30(0x197)),{attributes}=require('./userChatQueue.attributes'),{options}=require('./userChatQueue.options');class UserChatQueue extends Model{}function init(_0x248ca0,_0x2a301b){const _0x33822d=a783_0x3f1d30,_0x33532f=options(_0x248ca0),_0x55d4e0=typeof _0x2a301b===_0x33822d(0x198)?_0x2a301b(_0x33532f):_0x33532f;return UserChatQueue[_0x33822d(0x195)](attributes,_0x55d4e0),UserChatQueue;}module[a783_0x3f1d30(0x199)][a783_0x3f1d30(0x196)]=UserChatQueue,module[a783_0x3f1d30(0x199)][a783_0x3f1d30(0x195)]=init; \ No newline at end of file diff --git a/server/api/userChatQueue/userChatQueue.options.js b/server/api/userChatQueue/userChatQueue.options.js index 9fb7718..60e8939 100644 --- a/server/api/userChatQueue/userChatQueue.options.js +++ b/server/api/userChatQueue/userChatQueue.options.js @@ -1 +1 @@ -var a784_0x1b02=['options','user_has_chat_queues','exports'];(function(_0x38ead0,_0x5c4f0c){var _0x1b02a9=function(_0x1dae16){while(--_0x1dae16){_0x38ead0['push'](_0x38ead0['shift']());}};_0x1b02a9(++_0x5c4f0c);}(a784_0x1b02,0xf2));var a784_0x1dae=function(_0x38ead0,_0x5c4f0c){_0x38ead0=_0x38ead0-0xd8;var _0x1b02a9=a784_0x1b02[_0x38ead0];return _0x1b02a9;};var a784_0x3aef5c=a784_0x1dae;function options(_0x29d3f4){var _0x1d7f00=a784_0x1dae;return{'sequelize':_0x29d3f4,'tableName':_0x1d7f00(0xda),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a784_0x3aef5c(0xd8)][a784_0x3aef5c(0xd9)]=options; \ No newline at end of file +var a784_0x1d78=['options'];(function(_0xf14458,_0x3494ff){var _0x1d784b=function(_0x3409a7){while(--_0x3409a7){_0xf14458['push'](_0xf14458['shift']());}};_0x1d784b(++_0x3494ff);}(a784_0x1d78,0x19e));var a784_0x3409=function(_0xf14458,_0x3494ff){_0xf14458=_0xf14458-0x1d5;var _0x1d784b=a784_0x1d78[_0xf14458];return _0x1d784b;};var a784_0x4b7d4e=a784_0x3409;function options(_0x31e9b7){return{'sequelize':_0x31e9b7,'tableName':'user_has_chat_queues','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a784_0x4b7d4e(0x1d5)]=options; \ No newline at end of file diff --git a/server/api/userFaxQueue/index.js b/server/api/userFaxQueue/index.js index 40ed76e..c34487f 100644 --- a/server/api/userFaxQueue/index.js +++ b/server/api/userFaxQueue/index.js @@ -1 +1 @@ -const a785_0x19d7=['express','exports'];(function(_0x3e53ba,_0x2570e6){const _0x19d716=function(_0x1afe75){while(--_0x1afe75){_0x3e53ba['push'](_0x3e53ba['shift']());}};_0x19d716(++_0x2570e6);}(a785_0x19d7,0xc9));const a785_0x1afe=function(_0x3e53ba,_0x2570e6){_0x3e53ba=_0x3e53ba-0x11e;let _0x19d716=a785_0x19d7[_0x3e53ba];return _0x19d716;};const a785_0x567e08=a785_0x1afe;'use strict';const express=require(a785_0x567e08(0x11f)),router=express['Router']();module[a785_0x567e08(0x11e)]=router; \ No newline at end of file +const a785_0xb150=['Router','express'];(function(_0x48624d,_0x1576a7){const _0xb15018=function(_0x4e508c){while(--_0x4e508c){_0x48624d['push'](_0x48624d['shift']());}};_0xb15018(++_0x1576a7);}(a785_0xb150,0x93));const a785_0x4e50=function(_0x48624d,_0x1576a7){_0x48624d=_0x48624d-0x1aa;let _0xb15018=a785_0xb150[_0x48624d];return _0xb15018;};const a785_0x26f40b=a785_0x4e50;'use strict';const express=require(a785_0x26f40b(0x1aa)),router=express[a785_0x26f40b(0x1ab)]();module['exports']=router; \ No newline at end of file diff --git a/server/api/userFaxQueue/userFaxQueue.attributes.js b/server/api/userFaxQueue/userFaxQueue.attributes.js index 9f9bd6e..a75f5e3 100644 --- a/server/api/userFaxQueue/userFaxQueue.attributes.js +++ b/server/api/userFaxQueue/userFaxQueue.attributes.js @@ -1 +1 @@ -const a786_0x195e=['attributes','STRING','exports'];(function(_0x1228ad,_0x23f5d6){const _0x195e84=function(_0x206a85){while(--_0x206a85){_0x1228ad['push'](_0x1228ad['shift']());}};_0x195e84(++_0x23f5d6);}(a786_0x195e,0xf1));const a786_0x206a=function(_0x1228ad,_0x23f5d6){_0x1228ad=_0x1228ad-0x101;let _0x195e84=a786_0x195e[_0x1228ad];return _0x195e84;};const a786_0x10c082=a786_0x206a;'use strict';const {DataTypes}=require('sequelize'),attributes={'penalty':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'assigned':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'queue':{'type':DataTypes[a786_0x10c082(0x101)]}};module[a786_0x10c082(0x102)][a786_0x10c082(0x103)]=attributes; \ No newline at end of file +const a786_0x2371=['attributes','INTEGER','STRING','exports'];(function(_0x2bf1bc,_0x3c3cb1){const _0x237122=function(_0x53cdd3){while(--_0x53cdd3){_0x2bf1bc['push'](_0x2bf1bc['shift']());}};_0x237122(++_0x3c3cb1);}(a786_0x2371,0x175));const a786_0x53cd=function(_0x2bf1bc,_0x3c3cb1){_0x2bf1bc=_0x2bf1bc-0x1b0;let _0x237122=a786_0x2371[_0x2bf1bc];return _0x237122;};const a786_0x385008=a786_0x53cd;'use strict';const {DataTypes}=require('sequelize'),attributes={'penalty':{'type':DataTypes[a786_0x385008(0x1b0)],'defaultValue':0x0},'assigned':{'type':DataTypes[a786_0x385008(0x1b0)],'defaultValue':0x0},'queue':{'type':DataTypes[a786_0x385008(0x1b1)]}};module[a786_0x385008(0x1b2)][a786_0x385008(0x1b3)]=attributes; \ No newline at end of file diff --git a/server/api/userFaxQueue/userFaxQueue.model.js b/server/api/userFaxQueue/userFaxQueue.model.js index 6d58c43..47375f5 100644 --- a/server/api/userFaxQueue/userFaxQueue.model.js +++ b/server/api/userFaxQueue/userFaxQueue.model.js @@ -1 +1 @@ -const a787_0x50d5=['init','./userFaxQueue.options','exports'];(function(_0x59127f,_0x58d13f){const _0x50d55b=function(_0x4cb6ad){while(--_0x4cb6ad){_0x59127f['push'](_0x59127f['shift']());}};_0x50d55b(++_0x58d13f);}(a787_0x50d5,0xc1));const a787_0x4cb6=function(_0x59127f,_0x58d13f){_0x59127f=_0x59127f-0xae;let _0x50d55b=a787_0x50d5[_0x59127f];return _0x50d55b;};const a787_0x189476=a787_0x4cb6;'use strict';const {Model}=require('sequelize'),{attributes}=require('./userFaxQueue.attributes'),{options}=require(a787_0x189476(0xae));class UserFaxQueue extends Model{}function init(_0x561251,_0x16fd94){const _0x5f20ce=a787_0x189476,_0x4d12f7=options(_0x561251),_0x31eb25=typeof _0x16fd94==='function'?_0x16fd94(_0x4d12f7):_0x4d12f7;return UserFaxQueue[_0x5f20ce(0xb0)](attributes,_0x31eb25),UserFaxQueue;}module[a787_0x189476(0xaf)]['UserFaxQueue']=UserFaxQueue,module['exports']['init']=init; \ No newline at end of file +const a787_0x1047=['./userFaxQueue.attributes','init','exports','function'];(function(_0x44866a,_0xed0cb2){const _0x10471c=function(_0x173049){while(--_0x173049){_0x44866a['push'](_0x44866a['shift']());}};_0x10471c(++_0xed0cb2);}(a787_0x1047,0xd7));const a787_0x1730=function(_0x44866a,_0xed0cb2){_0x44866a=_0x44866a-0x125;let _0x10471c=a787_0x1047[_0x44866a];return _0x10471c;};const a787_0x51fa79=a787_0x1730;'use strict';const {Model}=require('sequelize'),{attributes}=require(a787_0x51fa79(0x126)),{options}=require('./userFaxQueue.options');class UserFaxQueue extends Model{}function init(_0x46c7e0,_0x1d5630){const _0x4a52b8=a787_0x51fa79,_0x4f272d=options(_0x46c7e0),_0x172453=typeof _0x1d5630===_0x4a52b8(0x125)?_0x1d5630(_0x4f272d):_0x4f272d;return UserFaxQueue[_0x4a52b8(0x127)](attributes,_0x172453),UserFaxQueue;}module[a787_0x51fa79(0x128)]['UserFaxQueue']=UserFaxQueue,module[a787_0x51fa79(0x128)][a787_0x51fa79(0x127)]=init; \ No newline at end of file diff --git a/server/api/userFaxQueue/userFaxQueue.options.js b/server/api/userFaxQueue/userFaxQueue.options.js index 457fef0..1097c03 100644 --- a/server/api/userFaxQueue/userFaxQueue.options.js +++ b/server/api/userFaxQueue/userFaxQueue.options.js @@ -1 +1 @@ -var a788_0x2a63=['user_has_fax_queues','exports'];(function(_0x3ef9c2,_0x1da695){var _0x2a63da=function(_0x1daa26){while(--_0x1daa26){_0x3ef9c2['push'](_0x3ef9c2['shift']());}};_0x2a63da(++_0x1da695);}(a788_0x2a63,0xe4));var a788_0x1daa=function(_0x3ef9c2,_0x1da695){_0x3ef9c2=_0x3ef9c2-0x1a8;var _0x2a63da=a788_0x2a63[_0x3ef9c2];return _0x2a63da;};var a788_0x358431=a788_0x1daa;function options(_0x25901d){var _0x224edb=a788_0x1daa;return{'sequelize':_0x25901d,'tableName':_0x224edb(0x1a8),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a788_0x358431(0x1a9)]['options']=options; \ No newline at end of file +var a788_0x164b=['options','exports'];(function(_0x3ba6a7,_0x4be7f0){var _0x164b87=function(_0x4f61ba){while(--_0x4f61ba){_0x3ba6a7['push'](_0x3ba6a7['shift']());}};_0x164b87(++_0x4be7f0);}(a788_0x164b,0x128));var a788_0x4f61=function(_0x3ba6a7,_0x4be7f0){_0x3ba6a7=_0x3ba6a7-0x10a;var _0x164b87=a788_0x164b[_0x3ba6a7];return _0x164b87;};var a788_0x3a9fd3=a788_0x4f61;function options(_0x4e5768){return{'sequelize':_0x4e5768,'tableName':'user_has_fax_queues','paranoid':![],'indexes':[],'timestamps':!![]};}module[a788_0x3a9fd3(0x10b)][a788_0x3a9fd3(0x10a)]=options; \ No newline at end of file diff --git a/server/api/userMailQueue/index.js b/server/api/userMailQueue/index.js index 5528e89..391ddfe 100644 --- a/server/api/userMailQueue/index.js +++ b/server/api/userMailQueue/index.js @@ -1 +1 @@ -const a789_0x499e=['express','Router','exports'];(function(_0x267aa1,_0x392f44){const _0x499e9b=function(_0x4d03ea){while(--_0x4d03ea){_0x267aa1['push'](_0x267aa1['shift']());}};_0x499e9b(++_0x392f44);}(a789_0x499e,0x14b));const a789_0x4d03=function(_0x267aa1,_0x392f44){_0x267aa1=_0x267aa1-0x175;let _0x499e9b=a789_0x499e[_0x267aa1];return _0x499e9b;};const a789_0x537fb6=a789_0x4d03;'use strict';const express=require(a789_0x537fb6(0x177)),router=express[a789_0x537fb6(0x175)]();module[a789_0x537fb6(0x176)]=router; \ No newline at end of file +const a789_0x3f6b=['exports','express','Router'];(function(_0x212e03,_0x4d10bb){const _0x3f6b10=function(_0x2e6258){while(--_0x2e6258){_0x212e03['push'](_0x212e03['shift']());}};_0x3f6b10(++_0x4d10bb);}(a789_0x3f6b,0x1a3));const a789_0x2e62=function(_0x212e03,_0x4d10bb){_0x212e03=_0x212e03-0x128;let _0x3f6b10=a789_0x3f6b[_0x212e03];return _0x3f6b10;};const a789_0x38c476=a789_0x2e62;'use strict';const express=require(a789_0x38c476(0x12a)),router=express[a789_0x38c476(0x128)]();module[a789_0x38c476(0x129)]=router; \ No newline at end of file diff --git a/server/api/userMailQueue/userMailQueue.attributes.js b/server/api/userMailQueue/userMailQueue.attributes.js index 3f2640c..8a79ef1 100644 --- a/server/api/userMailQueue/userMailQueue.attributes.js +++ b/server/api/userMailQueue/userMailQueue.attributes.js @@ -1 +1 @@ -const a790_0xf7b9=['INTEGER','exports','sequelize'];(function(_0x4fa3bf,_0x141e01){const _0xf7b9a6=function(_0x505a0a){while(--_0x505a0a){_0x4fa3bf['push'](_0x4fa3bf['shift']());}};_0xf7b9a6(++_0x141e01);}(a790_0xf7b9,0x1f0));const a790_0x505a=function(_0x4fa3bf,_0x141e01){_0x4fa3bf=_0x4fa3bf-0x19a;let _0xf7b9a6=a790_0xf7b9[_0x4fa3bf];return _0xf7b9a6;};const a790_0x49056d=a790_0x505a;'use strict';const {DataTypes}=require(a790_0x49056d(0x19b)),attributes={'penalty':{'type':DataTypes[a790_0x49056d(0x19c)],'defaultValue':0x0}};module[a790_0x49056d(0x19a)]['attributes']=attributes; \ No newline at end of file +const a790_0x36d4=['INTEGER','attributes','exports','sequelize'];(function(_0xad342b,_0x8a542f){const _0x36d454=function(_0x133b14){while(--_0x133b14){_0xad342b['push'](_0xad342b['shift']());}};_0x36d454(++_0x8a542f);}(a790_0x36d4,0x10f));const a790_0x133b=function(_0xad342b,_0x8a542f){_0xad342b=_0xad342b-0x76;let _0x36d454=a790_0x36d4[_0xad342b];return _0x36d454;};const a790_0x625187=a790_0x133b;'use strict';const {DataTypes}=require(a790_0x625187(0x76)),attributes={'penalty':{'type':DataTypes[a790_0x625187(0x77)],'defaultValue':0x0}};module[a790_0x625187(0x79)][a790_0x625187(0x78)]=attributes; \ No newline at end of file diff --git a/server/api/userMailQueue/userMailQueue.model.js b/server/api/userMailQueue/userMailQueue.model.js index 3ead636..f9dc65d 100644 --- a/server/api/userMailQueue/userMailQueue.model.js +++ b/server/api/userMailQueue/userMailQueue.model.js @@ -1 +1 @@ -const a791_0x9120=['./userMailQueue.options','function','init','exports','./userMailQueue.attributes'];(function(_0xaa4fb6,_0x1b4dcf){const _0x9120de=function(_0x33c76d){while(--_0x33c76d){_0xaa4fb6['push'](_0xaa4fb6['shift']());}};_0x9120de(++_0x1b4dcf);}(a791_0x9120,0xad));const a791_0x33c7=function(_0xaa4fb6,_0x1b4dcf){_0xaa4fb6=_0xaa4fb6-0xbb;let _0x9120de=a791_0x9120[_0xaa4fb6];return _0x9120de;};const a791_0x17460b=a791_0x33c7;'use strict';const {Model}=require('sequelize'),{attributes}=require(a791_0x17460b(0xbc)),{options}=require(a791_0x17460b(0xbd));class UserMailQueue extends Model{}function init(_0x86b7f,_0x44412d){const _0x238def=a791_0x17460b,_0x2e43ae=options(_0x86b7f),_0x52b2eb=typeof _0x44412d===_0x238def(0xbe)?_0x44412d(_0x2e43ae):_0x2e43ae;return UserMailQueue[_0x238def(0xbf)](attributes,_0x52b2eb),UserMailQueue;}module['exports']['UserMailQueue']=UserMailQueue,module[a791_0x17460b(0xbb)]['init']=init; \ No newline at end of file +const a791_0x3610=['exports','sequelize','function','./userMailQueue.options','init','./userMailQueue.attributes'];(function(_0x3d55bf,_0x40778c){const _0x361010=function(_0x62a80f){while(--_0x62a80f){_0x3d55bf['push'](_0x3d55bf['shift']());}};_0x361010(++_0x40778c);}(a791_0x3610,0x1dc));const a791_0x62a8=function(_0x3d55bf,_0x40778c){_0x3d55bf=_0x3d55bf-0x80;let _0x361010=a791_0x3610[_0x3d55bf];return _0x361010;};const a791_0x19c9bc=a791_0x62a8;'use strict';const {Model}=require(a791_0x19c9bc(0x85)),{attributes}=require(a791_0x19c9bc(0x83)),{options}=require(a791_0x19c9bc(0x81));class UserMailQueue extends Model{}function init(_0x1d72ab,_0x59add4){const _0x41aa5f=a791_0x19c9bc,_0x583895=options(_0x1d72ab),_0x1651f3=typeof _0x59add4===_0x41aa5f(0x80)?_0x59add4(_0x583895):_0x583895;return UserMailQueue[_0x41aa5f(0x82)](attributes,_0x1651f3),UserMailQueue;}module[a791_0x19c9bc(0x84)]['UserMailQueue']=UserMailQueue,module[a791_0x19c9bc(0x84)][a791_0x19c9bc(0x82)]=init; \ No newline at end of file diff --git a/server/api/userMailQueue/userMailQueue.options.js b/server/api/userMailQueue/userMailQueue.options.js index 90652a3..0153954 100644 --- a/server/api/userMailQueue/userMailQueue.options.js +++ b/server/api/userMailQueue/userMailQueue.options.js @@ -1 +1 @@ -var a792_0x1275=['options'];(function(_0x107cb0,_0x4fc2fe){var _0x12751f=function(_0x3d03f5){while(--_0x3d03f5){_0x107cb0['push'](_0x107cb0['shift']());}};_0x12751f(++_0x4fc2fe);}(a792_0x1275,0x1eb));var a792_0x3d03=function(_0x107cb0,_0x4fc2fe){_0x107cb0=_0x107cb0-0x141;var _0x12751f=a792_0x1275[_0x107cb0];return _0x12751f;};var a792_0x23ad86=a792_0x3d03;function options(_0x519053){return{'sequelize':_0x519053,'tableName':'user_has_mail_queues','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a792_0x23ad86(0x141)]=options; \ No newline at end of file +var a792_0x4cce=['exports','options'];(function(_0x9a240f,_0x14c5f3){var _0x4cce5a=function(_0x528a96){while(--_0x528a96){_0x9a240f['push'](_0x9a240f['shift']());}};_0x4cce5a(++_0x14c5f3);}(a792_0x4cce,0x119));var a792_0x528a=function(_0x9a240f,_0x14c5f3){_0x9a240f=_0x9a240f-0x161;var _0x4cce5a=a792_0x4cce[_0x9a240f];return _0x4cce5a;};var a792_0x60bdea=a792_0x528a;function options(_0xe25c17){return{'sequelize':_0xe25c17,'tableName':'user_has_mail_queues','paranoid':![],'indexes':[],'timestamps':!![]};}module[a792_0x60bdea(0x162)][a792_0x60bdea(0x161)]=options; \ No newline at end of file diff --git a/server/api/userOpenchannelQueue/index.js b/server/api/userOpenchannelQueue/index.js index 496225c..c27422a 100644 --- a/server/api/userOpenchannelQueue/index.js +++ b/server/api/userOpenchannelQueue/index.js @@ -1 +1 @@ -const a793_0x483a=['Router','exports','express'];(function(_0x5f2dbd,_0x3ac562){const _0x483ab4=function(_0x44b2b5){while(--_0x44b2b5){_0x5f2dbd['push'](_0x5f2dbd['shift']());}};_0x483ab4(++_0x3ac562);}(a793_0x483a,0x122));const a793_0x44b2=function(_0x5f2dbd,_0x3ac562){_0x5f2dbd=_0x5f2dbd-0x169;let _0x483ab4=a793_0x483a[_0x5f2dbd];return _0x483ab4;};const a793_0x3d4321=a793_0x44b2;'use strict';const express=require(a793_0x3d4321(0x169)),router=express[a793_0x3d4321(0x16a)]();module[a793_0x3d4321(0x16b)]=router; \ No newline at end of file +const a793_0x3819=['Router','exports','express'];(function(_0x268c66,_0x293aa3){const _0x3819ea=function(_0x3ea717){while(--_0x3ea717){_0x268c66['push'](_0x268c66['shift']());}};_0x3819ea(++_0x293aa3);}(a793_0x3819,0x1c7));const a793_0x3ea7=function(_0x268c66,_0x293aa3){_0x268c66=_0x268c66-0x6a;let _0x3819ea=a793_0x3819[_0x268c66];return _0x3819ea;};const a793_0x57e0e0=a793_0x3ea7;'use strict';const express=require(a793_0x57e0e0(0x6a)),router=express[a793_0x57e0e0(0x6b)]();module[a793_0x57e0e0(0x6c)]=router; \ No newline at end of file diff --git a/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js b/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js index fa7694f..b66aca5 100644 --- a/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js +++ b/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js @@ -1 +1 @@ -const a794_0x53d8=['attributes','sequelize','exports','INTEGER'];(function(_0x2a324c,_0x2d72d6){const _0x53d848=function(_0x25e313){while(--_0x25e313){_0x2a324c['push'](_0x2a324c['shift']());}};_0x53d848(++_0x2d72d6);}(a794_0x53d8,0xb5));const a794_0x25e3=function(_0x2a324c,_0x2d72d6){_0x2a324c=_0x2a324c-0x97;let _0x53d848=a794_0x53d8[_0x2a324c];return _0x53d848;};const a794_0x4de4e4=a794_0x25e3;'use strict';const {DataTypes}=require(a794_0x4de4e4(0x97)),attributes={'penalty':{'type':DataTypes[a794_0x4de4e4(0x99)],'defaultValue':0x0}};module[a794_0x4de4e4(0x98)][a794_0x4de4e4(0x9a)]=attributes; \ No newline at end of file +const a794_0x1565=['attributes','sequelize','INTEGER'];(function(_0x241f92,_0x3e118b){const _0x1565c4=function(_0xc840f9){while(--_0xc840f9){_0x241f92['push'](_0x241f92['shift']());}};_0x1565c4(++_0x3e118b);}(a794_0x1565,0x1e4));const a794_0xc840=function(_0x241f92,_0x3e118b){_0x241f92=_0x241f92-0xd4;let _0x1565c4=a794_0x1565[_0x241f92];return _0x1565c4;};const a794_0x45bee1=a794_0xc840;'use strict';const {DataTypes}=require(a794_0x45bee1(0xd4)),attributes={'penalty':{'type':DataTypes[a794_0x45bee1(0xd5)],'defaultValue':0x0}};module['exports'][a794_0x45bee1(0xd6)]=attributes; \ No newline at end of file diff --git a/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js b/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js index d21721f..8b70e60 100644 --- a/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js +++ b/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js @@ -1 +1 @@ -const a795_0x44e9=['function','exports','sequelize','init'];(function(_0x66bd19,_0x1abd58){const _0x44e972=function(_0x4146f8){while(--_0x4146f8){_0x66bd19['push'](_0x66bd19['shift']());}};_0x44e972(++_0x1abd58);}(a795_0x44e9,0x1de));const a795_0x4146=function(_0x66bd19,_0x1abd58){_0x66bd19=_0x66bd19-0x140;let _0x44e972=a795_0x44e9[_0x66bd19];return _0x44e972;};const a795_0x5490ec=a795_0x4146;'use strict';const {Model}=require(a795_0x5490ec(0x140)),{attributes}=require('./userOpenchannelQueue.attributes'),{options}=require('./userOpenchannelQueue.options');class UserOpenchannelQueue extends Model{}function init(_0x49397a,_0x1468b8){const _0x2092a0=a795_0x5490ec,_0x846c06=options(_0x49397a),_0x47b884=typeof _0x1468b8===_0x2092a0(0x142)?_0x1468b8(_0x846c06):_0x846c06;return UserOpenchannelQueue[_0x2092a0(0x141)](attributes,_0x47b884),UserOpenchannelQueue;}module[a795_0x5490ec(0x143)]['UserOpenchannelQueue']=UserOpenchannelQueue,module[a795_0x5490ec(0x143)][a795_0x5490ec(0x141)]=init; \ No newline at end of file +const a795_0x2f4c=['exports','UserOpenchannelQueue','sequelize','./userOpenchannelQueue.options'];(function(_0x47d67f,_0x4939fa){const _0x2f4c5c=function(_0x47a29e){while(--_0x47a29e){_0x47d67f['push'](_0x47d67f['shift']());}};_0x2f4c5c(++_0x4939fa);}(a795_0x2f4c,0x165));const a795_0x47a2=function(_0x47d67f,_0x4939fa){_0x47d67f=_0x47d67f-0x162;let _0x2f4c5c=a795_0x2f4c[_0x47d67f];return _0x2f4c5c;};const a795_0x10e383=a795_0x47a2;'use strict';const {Model}=require(a795_0x10e383(0x163)),{attributes}=require('./userOpenchannelQueue.attributes'),{options}=require(a795_0x10e383(0x164));class UserOpenchannelQueue extends Model{}function init(_0x3ab43c,_0x5561e7){const _0x4d1d13=options(_0x3ab43c),_0x167a93=typeof _0x5561e7==='function'?_0x5561e7(_0x4d1d13):_0x4d1d13;return UserOpenchannelQueue['init'](attributes,_0x167a93),UserOpenchannelQueue;}module[a795_0x10e383(0x165)][a795_0x10e383(0x162)]=UserOpenchannelQueue,module[a795_0x10e383(0x165)]['init']=init; \ No newline at end of file diff --git a/server/api/userOpenchannelQueue/userOpenchannelQueue.options.js b/server/api/userOpenchannelQueue/userOpenchannelQueue.options.js index a52e262..3712da2 100644 --- a/server/api/userOpenchannelQueue/userOpenchannelQueue.options.js +++ b/server/api/userOpenchannelQueue/userOpenchannelQueue.options.js @@ -1 +1 @@ -var a796_0x5d01=['user_has_openchannel_queues','options','exports'];(function(_0x31e256,_0x4d026d){var _0x5d01fb=function(_0x345532){while(--_0x345532){_0x31e256['push'](_0x31e256['shift']());}};_0x5d01fb(++_0x4d026d);}(a796_0x5d01,0x170));var a796_0x3455=function(_0x31e256,_0x4d026d){_0x31e256=_0x31e256-0x1df;var _0x5d01fb=a796_0x5d01[_0x31e256];return _0x5d01fb;};var a796_0xe837da=a796_0x3455;function options(_0x57cf84){var _0x460169=a796_0x3455;return{'sequelize':_0x57cf84,'tableName':_0x460169(0x1e0),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a796_0xe837da(0x1df)][a796_0xe837da(0x1e1)]=options; \ No newline at end of file +var a796_0x4a62=['user_has_openchannel_queues'];(function(_0x252dbf,_0x5aae78){var _0x4a62f7=function(_0x5ecd12){while(--_0x5ecd12){_0x252dbf['push'](_0x252dbf['shift']());}};_0x4a62f7(++_0x5aae78);}(a796_0x4a62,0x138));var a796_0x5ecd=function(_0x252dbf,_0x5aae78){_0x252dbf=_0x252dbf-0x68;var _0x4a62f7=a796_0x4a62[_0x252dbf];return _0x4a62f7;};function options(_0x4f3e72){var _0x1ebe78=a796_0x5ecd;return{'sequelize':_0x4f3e72,'tableName':_0x1ebe78(0x68),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports']['options']=options; \ No newline at end of file diff --git a/server/api/userProfile/index.js b/server/api/userProfile/index.js index a94d9fa..bf6af98 100644 --- a/server/api/userProfile/index.js +++ b/server/api/userProfile/index.js @@ -1 +1 @@ -const a797_0x1483=['get','removeResources','/describe','index','exports','/:id','/:id/resources','destroy','create','clone','express','delete','../../components/auth/service','put','update','/:id/sections','getSections','Router','removeSections','./userProfile.controller','post','isAuthenticated'];(function(_0x372c91,_0x36757c){const _0x14837e=function(_0x44f30d){while(--_0x44f30d){_0x372c91['push'](_0x372c91['shift']());}};_0x14837e(++_0x36757c);}(a797_0x1483,0xed));const a797_0x44f3=function(_0x372c91,_0x36757c){_0x372c91=_0x372c91-0x1c1;let _0x14837e=a797_0x1483[_0x372c91];return _0x14837e;};const a797_0x1eaf11=a797_0x44f3;'use strict';const express=require(a797_0x1eaf11(0x1d0)),router=express[a797_0x1eaf11(0x1c1)](),auth=require(a797_0x1eaf11(0x1d2)),controller=require(a797_0x1eaf11(0x1c3));router[a797_0x1eaf11(0x1c6)]('/',auth['isAuthenticated'](),controller[a797_0x1eaf11(0x1c9)]),router['get'](a797_0x1eaf11(0x1c8),auth[a797_0x1eaf11(0x1c5)](),controller['describe']),router['get']('/:id',auth[a797_0x1eaf11(0x1c5)](),controller['show']),router['get'](a797_0x1eaf11(0x1d5),auth[a797_0x1eaf11(0x1c5)](),controller[a797_0x1eaf11(0x1d6)]),router[a797_0x1eaf11(0x1c6)](a797_0x1eaf11(0x1cc),auth['isAuthenticated'](),controller['getResources']),router[a797_0x1eaf11(0x1c4)]('/',auth['isAuthenticated'](),controller[a797_0x1eaf11(0x1ce)]),router['post']('/:id/clone',auth[a797_0x1eaf11(0x1c5)](),controller[a797_0x1eaf11(0x1cf)]),router['post'](a797_0x1eaf11(0x1d5),auth[a797_0x1eaf11(0x1c5)](),controller['addSections']),router[a797_0x1eaf11(0x1c4)](a797_0x1eaf11(0x1cc),auth[a797_0x1eaf11(0x1c5)](),controller['addResources']),router[a797_0x1eaf11(0x1d3)]('/:id',auth[a797_0x1eaf11(0x1c5)](),controller[a797_0x1eaf11(0x1d4)]),router['delete'](a797_0x1eaf11(0x1cb),auth[a797_0x1eaf11(0x1c5)](),controller[a797_0x1eaf11(0x1cd)]),router['delete'](a797_0x1eaf11(0x1d5),auth['isAuthenticated'](),controller[a797_0x1eaf11(0x1c2)]),router[a797_0x1eaf11(0x1d1)](a797_0x1eaf11(0x1cc),auth['isAuthenticated'](),controller[a797_0x1eaf11(0x1c7)]),module[a797_0x1eaf11(0x1ca)]=router; \ No newline at end of file +const a797_0x319d=['../../components/auth/service','removeSections','removeResources','isAuthenticated','getResources','/:id/sections','get','exports','index','show','/describe','post','describe','delete','addSections','/:id/resources','create','clone','addResources','express','/:id','Router'];(function(_0x362074,_0x81427){const _0x319da7=function(_0xb0fa09){while(--_0xb0fa09){_0x362074['push'](_0x362074['shift']());}};_0x319da7(++_0x81427);}(a797_0x319d,0x1bc));const a797_0xb0fa=function(_0x362074,_0x81427){_0x362074=_0x362074-0x100;let _0x319da7=a797_0x319d[_0x362074];return _0x319da7;};const a797_0x1d455c=a797_0xb0fa;'use strict';const express=require(a797_0x1d455c(0x10f)),router=express[a797_0x1d455c(0x111)](),auth=require(a797_0x1d455c(0x112)),controller=require('./userProfile.controller');router[a797_0x1d455c(0x102)]('/',auth[a797_0x1d455c(0x115)](),controller[a797_0x1d455c(0x104)]),router['get'](a797_0x1d455c(0x106),auth[a797_0x1d455c(0x115)](),controller[a797_0x1d455c(0x108)]),router['get'](a797_0x1d455c(0x110),auth[a797_0x1d455c(0x115)](),controller[a797_0x1d455c(0x105)]),router['get'](a797_0x1d455c(0x101),auth['isAuthenticated'](),controller['getSections']),router[a797_0x1d455c(0x102)]('/:id/resources',auth[a797_0x1d455c(0x115)](),controller[a797_0x1d455c(0x100)]),router[a797_0x1d455c(0x107)]('/',auth[a797_0x1d455c(0x115)](),controller[a797_0x1d455c(0x10c)]),router[a797_0x1d455c(0x107)]('/:id/clone',auth[a797_0x1d455c(0x115)](),controller[a797_0x1d455c(0x10d)]),router['post'](a797_0x1d455c(0x101),auth['isAuthenticated'](),controller[a797_0x1d455c(0x10a)]),router[a797_0x1d455c(0x107)](a797_0x1d455c(0x10b),auth[a797_0x1d455c(0x115)](),controller[a797_0x1d455c(0x10e)]),router['put'](a797_0x1d455c(0x110),auth[a797_0x1d455c(0x115)](),controller['update']),router['delete'](a797_0x1d455c(0x110),auth[a797_0x1d455c(0x115)](),controller['destroy']),router[a797_0x1d455c(0x109)](a797_0x1d455c(0x101),auth['isAuthenticated'](),controller[a797_0x1d455c(0x113)]),router[a797_0x1d455c(0x109)](a797_0x1d455c(0x10b),auth[a797_0x1d455c(0x115)](),controller[a797_0x1d455c(0x114)]),module[a797_0x1d455c(0x103)]=router; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.attributes.js b/server/api/userProfile/userProfile.attributes.js index 5aa645f..03b0bf2 100644 --- a/server/api/userProfile/userProfile.attributes.js +++ b/server/api/userProfile/userProfile.attributes.js @@ -1 +1 @@ -const a798_0x455f=['sequelize','attributes','exports','split','STRING','join','getDataValue','crudPermissions','name'];(function(_0x13c7de,_0x4c3b4d){const _0x455fdf=function(_0x53cfc1){while(--_0x53cfc1){_0x13c7de['push'](_0x13c7de['shift']());}};_0x455fdf(++_0x4c3b4d);}(a798_0x455f,0xcc));const a798_0x53cf=function(_0x13c7de,_0x4c3b4d){_0x13c7de=_0x13c7de-0x155;let _0x455fdf=a798_0x455f[_0x13c7de];return _0x455fdf;};const a798_0x5c62e0=a798_0x53cf;'use strict';const {DataTypes}=require(a798_0x5c62e0(0x158)),attributes={'name':{'type':DataTypes[a798_0x5c62e0(0x15c)],'allowNull':![],'unique':a798_0x5c62e0(0x157)},'crudPermissions':{'type':DataTypes[a798_0x5c62e0(0x15c)],'set':function(_0x3f0690){const _0x3573f0=a798_0x5c62e0;this['setDataValue'](_0x3573f0(0x156),_0x3f0690?_0x3f0690[_0x3573f0(0x15d)](''):[]);},'get':function(){const _0x47d2f3=a798_0x5c62e0;return this[_0x47d2f3(0x155)]('crudPermissions')?this['getDataValue'](_0x47d2f3(0x156))[_0x47d2f3(0x15b)](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':DataTypes['STRING'],'allowNull':!![]}};module[a798_0x5c62e0(0x15a)][a798_0x5c62e0(0x159)]=attributes; \ No newline at end of file +const a798_0x4e84=['STRING','sequelize','exports','split','attributes','setDataValue','crudPermissions','getDataValue'];(function(_0xda9a54,_0x35aa2a){const _0x4e8444=function(_0x51f084){while(--_0x51f084){_0xda9a54['push'](_0xda9a54['shift']());}};_0x4e8444(++_0x35aa2a);}(a798_0x4e84,0x1bd));const a798_0x51f0=function(_0xda9a54,_0x35aa2a){_0xda9a54=_0xda9a54-0x1eb;let _0x4e8444=a798_0x4e84[_0xda9a54];return _0x4e8444;};const a798_0x2b1a4c=a798_0x51f0;'use strict';const {DataTypes}=require(a798_0x2b1a4c(0x1ef)),attributes={'name':{'type':DataTypes[a798_0x2b1a4c(0x1ee)],'allowNull':![],'unique':'name'},'crudPermissions':{'type':DataTypes['STRING'],'set':function(_0x4d6817){const _0x4e590c=a798_0x2b1a4c;this[_0x4e590c(0x1eb)](_0x4e590c(0x1ec),_0x4d6817?_0x4d6817['join'](''):[]);},'get':function(){const _0x252e69=a798_0x2b1a4c;return this[_0x252e69(0x1ed)](_0x252e69(0x1ec))?this['getDataValue'](_0x252e69(0x1ec))[_0x252e69(0x1f1)](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':DataTypes[a798_0x2b1a4c(0x1ee)],'allowNull':!![]}};module[a798_0x2b1a4c(0x1f0)][a798_0x2b1a4c(0x1f2)]=attributes; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.controller.js b/server/api/userProfile/userProfile.controller.js index 2e59a41..b8ae075 100644 --- a/server/api/userProfile/userProfile.controller.js +++ b/server/api/userProfile/userProfile.controller.js @@ -1 +1 @@ -const a799_0x4ed3=['SquareProjects','smsqueues','UserProfileSection','json','userProfileId','extractedreports','custom','nolimit','agents','MailQueue','vtigeraccounts','intersection','keys','create','ZohoAccount','params','SquareProject','attributes','offset','SquareRecording','describe','../../rediscache','voicemails','Plugin','voicerecordings','rawAttributes','odbc','catch','intervals','filters','bulkCreate','childModel','value','openchannelaccounts','like','sounds','squareprojects','ignore','plugins','union','limit','removeSections','VoiceMusicOnHold','ChatWebsite','omit','ids','map','user','ivrcampaigns','send','FaxAccount','globalcustomfields','UserProfile','contacts','order','createdAt','fields','body','subsections','key','Interval','CmList','sugarcrmaccounts','smsaccounts','agent','rows','field','Sound','resourceId','Invalid\x20section\x20\x27','findAll','and','toLowerCase','transaction','SmsQueue','updatedAt','CmCompany','autoAssociation','lodash','model','ZendeskAccount','admin','associatedResources','name','MailAccount','filter','crudPermissions','Trigger','SugarcrmAccount','end','chatqueues','Template','mergeResources','queue','merge','openchannelqueues','status','color','destroy','stack','zendeskaccounts','OpenchannelQueue','section','role','index','telephone','api','Tags','QueueCampaigns','findOne','zohoaccounts','getResources','trunks','undefined','update','foreignKey','then','WhatsappAccount','VoiceQueue','clone','VoiceExtension','VoiceRecording','includes','mailaccounts','User','default','show','CustomReports','../../components/parsers/qs','Unknown\x20section','VoiceMail','Pause','faxqueues','VIRTUAL','CmCustomField','UserProfileResource','push','removeResources','AnalyticExtractedReport','customdashboards','templates','where','Variable','Lists','pick','reportType','voiceprefixes','ChatQueue','./userProfile.socket','type','find','Users','options','CmContact','teams','length','chatwebsites','sort','DefaultReports','outboundroutes','query','count','isEmpty','chanspies','metrics','Disposition','addSections','forEach','telephones','SalesforceAccount','mailsubstatuses','all','sequelize','error','get','parentSections','pauses','queuecampaigns','Content-Range','CannedAnswer','VoiceQueues','tag','includeAll','deskaccounts','include','FaxQueue','salesforceaccounts','tags','lists','fieldName','enabled','outbound','reportId','Reports','Dashboard','voicequeues','Resources','Tag','Trunk','Telephones','inboundroutes','sectionId','Agents'];(function(_0x2b2367,_0x582ee2){const _0x4ed391=function(_0x425dd5){while(--_0x425dd5){_0x2b2367['push'](_0x2b2367['shift']());}};_0x4ed391(++_0x582ee2);}(a799_0x4ed3,0xc3));const a799_0x425d=function(_0x2b2367,_0x582ee2){_0x2b2367=_0x2b2367-0xbf;let _0x4ed391=a799_0x4ed3[_0x2b2367];return _0x4ed391;};const a799_0x39b333=a799_0x425d;'use strict';const _=require(a799_0x39b333(0x115)),qs=require(a799_0x39b333(0x147)),logger=require('../../config/logger')(a799_0x39b333(0x131)),{getSocket}=require(a799_0x39b333(0xdc)),socket=getSocket(),{db}=require('../../mysqldb'),{Op,ValidationError}=require(a799_0x39b333(0x173));require(a799_0x39b333(0x15b))['register'](socket);function respondWithStatusCode(_0x31193,_0x2be6a8){return _0x2be6a8=_0x2be6a8||0xcc,function(_0x174558){const _0x3a6944=a799_0x425d;if(_0x174558)return _0x31193['sendStatus'](_0x2be6a8);return _0x31193[_0x3a6944(0x127)](_0x2be6a8)[_0x3a6944(0x120)]();};}function respondWithResult(_0x4e5b42,_0x197a43){return _0x197a43=_0x197a43||0xc8,function(_0x7b750){const _0x20c1ea=a799_0x425d;if(_0x7b750)return _0x4e5b42['status'](_0x197a43)[_0x20c1ea(0xca)](_0x7b750);};}function respondWithFilteredResult(_0x376140,_0x2703dd){return function(_0x216ab5){const _0x5a6156=a799_0x425d;if(_0x216ab5){const _0x289a19=_0x216ab5[_0x5a6156(0x168)],_0x486ca5=_0x2703dd['offset'];let _0x29480e=_0x2703dd[_0x5a6156(0xd9)]+_0x2703dd[_0x5a6156(0xef)],_0x3f261c;return _0x29480e>=_0x289a19?(_0x29480e=_0x289a19,_0x3f261c=0xc8):_0x3f261c=0xce,_0x376140['status'](_0x3f261c),_0x376140['set'](_0x5a6156(0x179),_0x486ca5+'-'+_0x29480e+'/'+_0x289a19)[_0x5a6156(0xca)](_0x216ab5);}return null;};}function saveUpdates(_0x447e80){return function(_0x46cbd1){const _0x29943c=a799_0x425d;if(_0x46cbd1)return _0x46cbd1[_0x29943c(0x139)](_0x447e80)[_0x29943c(0x13b)](function(_0x5c6e9c){return _0x5c6e9c;});return null;};}function removeEntity(_0x2ecb6e){return function(_0x30944a){const _0x1a4ef2=a799_0x425d;if(_0x30944a)return _0x30944a[_0x1a4ef2(0x129)]()[_0x1a4ef2(0x13b)](function(){const _0x2135ff=_0x1a4ef2;_0x2ecb6e[_0x2135ff(0x127)](0xcc)[_0x2135ff(0x120)]();});};}function handleEntityNotFound(_0xbafb82){return function(_0x2fe8d9){return!_0x2fe8d9&&_0xbafb82['sendStatus'](0x194),_0x2fe8d9;};}function handleError(_0x26e4ee,_0x22fe88){return _0x22fe88=_0x22fe88||0x1f4,function(_0x3b35ef){const _0x5222a7=a799_0x425d;logger[_0x5222a7(0x174)](_0x3b35ef[_0x5222a7(0x12a)]),_0x3b35ef[_0x5222a7(0x11a)]&&delete _0x3b35ef['name'],_0x26e4ee[_0x5222a7(0x127)](_0x22fe88)[_0x5222a7(0xf8)](_0x3b35ef);};}exports[a799_0x39b333(0x12f)]=function(_0x55cb5a,_0x3017f8){const _0x356858=a799_0x39b333;let _0x1c3658={};const _0x5a8a65={},_0x5ec380={'count':0x0,'rows':[]},_0x215937=_[_0x356858(0xf5)](db['UserProfile']['rawAttributes'],function(_0x32b224){const _0x2fd439=_0x356858;return{'name':_0x32b224[_0x2fd439(0x184)],'type':_0x32b224['type'][_0x2fd439(0x102)]};});_0x5a8a65[_0x356858(0x116)]=_['map'](_0x215937,_0x356858(0x11a)),_0x5a8a65['query']=_[_0x356858(0xd3)](_0x55cb5a[_0x356858(0x167)]),_0x5a8a65[_0x356858(0xe4)]=_[_0x356858(0xd2)](_0x5a8a65[_0x356858(0x116)],_0x5a8a65[_0x356858(0x167)]),_0x1c3658[_0x356858(0xd8)]=_[_0x356858(0xd2)](_0x5a8a65['model'],qs['fields'](_0x55cb5a['query'][_0x356858(0xff)])),_0x1c3658[_0x356858(0xd8)]=_0x1c3658[_0x356858(0xd8)][_0x356858(0x162)]?_0x1c3658[_0x356858(0xd8)]:_0x5a8a65[_0x356858(0x116)];typeof _0x55cb5a[_0x356858(0x167)][_0x356858(0xce)]===_0x356858(0x138)&&(_0x1c3658[_0x356858(0xef)]=qs['limit'](_0x55cb5a[_0x356858(0x167)][_0x356858(0xef)]),_0x1c3658[_0x356858(0xd9)]=qs[_0x356858(0xd9)](_0x55cb5a[_0x356858(0x167)][_0x356858(0xd9)]));_0x1c3658[_0x356858(0xfd)]=qs[_0x356858(0x164)](_0x55cb5a['query'][_0x356858(0x164)]),_0x1c3658[_0x356858(0x154)]=qs[_0x356858(0xe4)](_[_0x356858(0x157)](_0x55cb5a[_0x356858(0x167)],_0x5a8a65[_0x356858(0xe4)]),_0x215937);_0x55cb5a['query']['filter']&&(_0x1c3658[_0x356858(0x154)]=_[_0x356858(0x125)](_0x1c3658[_0x356858(0x154)],{[Op['or']]:_[_0x356858(0xf5)](_0x215937,function(_0x43036c){const _0x4a5252=_0x356858;if(_0x43036c[_0x4a5252(0x15c)]!=='VIRTUAL'){const _0x6bf85c={};return _0x6bf85c[_0x43036c[_0x4a5252(0x11a)]]={[Op[_0x4a5252(0xe9)]]:'%'+_0x55cb5a[_0x4a5252(0x167)][_0x4a5252(0x11c)]+'%'},_0x6bf85c;}})}));_0x1c3658=_[_0x356858(0x125)]({},_0x1c3658,_0x55cb5a[_0x356858(0x15f)]);const _0x3926ba={'where':_0x1c3658[_0x356858(0x154)]};return db[_0x356858(0xfb)]['count'](_0x3926ba)['then'](function(_0x3b7711){const _0x46637e=_0x356858;return _0x5ec380[_0x46637e(0x168)]=_0x3b7711,_0x55cb5a[_0x46637e(0x167)][_0x46637e(0x17d)]&&(_0x1c3658[_0x46637e(0x17f)]=[{'all':!![]}]),db['UserProfile'][_0x46637e(0x10d)](_0x1c3658);})[_0x356858(0x13b)](function(_0xaa49c4){const _0x5d7a4f=_0x356858;return _0x5ec380[_0x5d7a4f(0x108)]=_0xaa49c4,_0x5ec380;})[_0x356858(0x13b)](respondWithFilteredResult(_0x3017f8,_0x1c3658))[_0x356858(0xe2)](handleError(_0x3017f8,null));},exports[a799_0x39b333(0x145)]=function(_0x43a0c6,_0x1d4d18){const _0x298683=a799_0x39b333;let _0x1d0d82={'raw':![],'where':{'id':_0x43a0c6[_0x298683(0xd6)]['id']}};const _0x2f03cc={};return _0x2f03cc['model']=_[_0x298683(0xd3)](db[_0x298683(0xfb)][_0x298683(0xe0)]),_0x2f03cc[_0x298683(0x167)]=_['keys'](_0x43a0c6[_0x298683(0x167)]),_0x2f03cc[_0x298683(0xe4)]=_[_0x298683(0xd2)](_0x2f03cc[_0x298683(0x116)],_0x2f03cc[_0x298683(0x167)]),_0x1d0d82[_0x298683(0xd8)]=_[_0x298683(0xd2)](_0x2f03cc['model'],qs['fields'](_0x43a0c6[_0x298683(0x167)]['fields'])),_0x1d0d82['attributes']=_0x1d0d82[_0x298683(0xd8)]['length']?_0x1d0d82[_0x298683(0xd8)]:_0x2f03cc[_0x298683(0x116)],_0x43a0c6[_0x298683(0x167)][_0x298683(0x17d)]&&(_0x1d0d82[_0x298683(0x17f)]=[{'all':!![]}]),_0x1d0d82=_['merge']({},_0x1d0d82,_0x43a0c6[_0x298683(0x15f)]),db['UserProfile'][_0x298683(0x134)](_0x1d0d82)[_0x298683(0x13b)](handleEntityNotFound(_0x1d4d18))[_0x298683(0x13b)](respondWithResult(_0x1d4d18,null))[_0x298683(0xe2)](handleError(_0x1d4d18,null));},exports[a799_0x39b333(0xd4)]=function(_0x55e8b3,_0x10f379){const _0x2ef9f9=a799_0x39b333;return db[_0x2ef9f9(0xfb)][_0x2ef9f9(0xd4)](_0x55e8b3[_0x2ef9f9(0x100)],{})[_0x2ef9f9(0x13b)](respondWithResult(_0x10f379,0xc9))[_0x2ef9f9(0xe2)](handleError(_0x10f379,null));},exports[a799_0x39b333(0x13e)]=function(_0x4162a4,_0x1a3282){const _0x23187e=a799_0x39b333;let _0x9e3588={'where':{'id':_0x4162a4[_0x23187e(0xd6)]['id']}};const _0xc8e2ec={};return _0xc8e2ec[_0x23187e(0x116)]=_[_0x23187e(0xd3)](db[_0x23187e(0xfb)][_0x23187e(0xe0)]),_0x9e3588[_0x23187e(0xd8)]=_['intersection'](_0xc8e2ec[_0x23187e(0x116)],qs[_0x23187e(0xff)](_0x4162a4[_0x23187e(0x167)][_0x23187e(0xff)])),_0x9e3588[_0x23187e(0xd8)]=_0x9e3588['attributes'][_0x23187e(0x162)]?_0x9e3588['attributes']:_0xc8e2ec[_0x23187e(0x116)],_0x4162a4[_0x23187e(0x167)][_0x23187e(0x17d)]&&(_0x9e3588['include']=[{'all':!![]}]),_0x9e3588=_['merge']({},_0x9e3588,_0x4162a4['options']),db[_0x23187e(0xfb)][_0x23187e(0x134)](_0x9e3588)[_0x23187e(0x13b)](handleEntityNotFound(_0x1a3282))[_0x23187e(0x13b)](function(_0x41ef07){const _0x2a2d6a=_0x23187e;if(_0x41ef07){let _0x2ce286=_0x41ef07['get']({'plain':!![]});return _0x2ce286=qs[_0x2a2d6a(0xf3)](_0x2ce286,['id','createdAt','updatedAt',_0x2a2d6a(0x11d)]),_0x4162a4[_0x2a2d6a(0x100)]=_[_0x2a2d6a(0xf3)](_0x4162a4[_0x2a2d6a(0x100)],['id',_0x2a2d6a(0xfe),_0x2a2d6a(0x112)]),db[_0x2a2d6a(0x173)]['transaction'](function(_0xf1395e){const _0x5804b9=_0x2a2d6a;return db['UserProfile']['create'](_[_0x5804b9(0x125)](_0x2ce286,_0x4162a4[_0x5804b9(0x100)]),{'include':_0x4162a4['query']['includeAll']?[{'all':!![]}]:undefined,'transaction':_0xf1395e})['then'](function(_0x40b97f){const _0x10bda8=_0x5804b9,_0x5b30bb=_0x40b97f[_0x10bda8(0x175)]({'plain':!![]});return db[_0x10bda8(0xc9)][_0x10bda8(0x10d)]({'where':{'userProfileId':_0x4162a4[_0x10bda8(0xd6)]['id']},'raw':!![]})['then'](function(_0x51f461){const _0x5b8f30=_0x10bda8;if(_0x51f461)return Promise[_0x5b8f30(0x172)](_0x51f461[_0x5b8f30(0xf5)](_0x32eb48=>{const _0x13043f=_0x5b8f30;return new Promise(function(_0xf3877,_0x1962ec){const _0x1ddcac=a799_0x425d;if(_0x32eb48[_0x1ddcac(0x114)]===null||_0x32eb48[_0x1ddcac(0x114)]===0x1)_0xf3877(null);return db[_0x1ddcac(0x14e)][_0x1ddcac(0x10d)]({'where':{'sectionId':_0x32eb48['id']},'raw':!![]})['then'](function(_0x5e4248){const _0x233fac=_0x1ddcac,_0x876dad=_[_0x233fac(0xf5)](_0x5e4248,function(_0xf03602){const _0x4c9660=_0x233fac;return qs[_0x4c9660(0xf3)](_0xf03602,['id',_0x4c9660(0xfe),_0x4c9660(0x112),_0x4c9660(0xc5)]);});_0xf3877(_0x876dad);})[_0x1ddcac(0xe2)](function(_0x2ae1f6){_0x1962ec(_0x2ae1f6);});})[_0x13043f(0x13b)](function(_0xa9b535){const _0x46d429=_0x13043f,_0x21ba74=qs[_0x46d429(0xf3)](_0x32eb48,['id',_0x46d429(0xfe),_0x46d429(0x112)]);_0x21ba74['userProfileId']=_0x5b30bb['id'];if(_0xa9b535)_0x21ba74[_0x46d429(0xc0)]=_0xa9b535;return _0x21ba74;})['then'](function(_0x6d4b00){const _0x544bc6=_0x13043f;return db[_0x544bc6(0xc9)]['create'](_0x6d4b00,{'include':[{'model':db['UserProfileResource'],'as':_0x544bc6(0xc0)}],'raw':!![],'transaction':_0xf1395e});});}))['then'](function(){return _0x5b30bb;});});});});}})[_0x23187e(0x13b)](respondWithResult(_0x1a3282,0xc9))[_0x23187e(0xe2)](handleError(_0x1a3282,null));},exports[a799_0x39b333(0x139)]=function(_0x1990a4,_0x3658bb){const _0x253b96=a799_0x39b333;return _0x1990a4[_0x253b96(0x100)]['id']&&delete _0x1990a4[_0x253b96(0x100)]['id'],db[_0x253b96(0xfb)][_0x253b96(0x134)]({'where':{'id':_0x1990a4[_0x253b96(0xd6)]['id']}})['then'](handleEntityNotFound(_0x3658bb))[_0x253b96(0x13b)](saveUpdates(_0x1990a4['body'],null))['then'](respondWithResult(_0x3658bb,null))['catch'](handleError(_0x3658bb,null));},exports['destroy']=function(_0x39376e,_0x3dc9fa){const _0x31253a=a799_0x39b333;return db[_0x31253a(0xfb)][_0x31253a(0x134)]({'where':{'id':_0x39376e['params']['id']}})[_0x31253a(0x13b)](handleEntityNotFound(_0x3dc9fa))['then'](removeEntity(_0x3dc9fa,null))[_0x31253a(0xe2)](handleError(_0x3dc9fa,null));},exports[a799_0x39b333(0xdb)]=function(_0x4193b5,_0xbb0ca9){const _0x564993=a799_0x39b333;return db['UserProfile'][_0x564993(0xdb)]()[_0x564993(0x13b)](respondWithResult(_0xbb0ca9,null))[_0x564993(0xe2)](handleError(_0xbb0ca9,null));},exports[a799_0x39b333(0x16d)]=function(_0x5097b5,_0x4dc2dd){const _0x23330c=a799_0x39b333,_0x3b8db3=_0x5097b5[_0x23330c(0x100)];return db[_0x23330c(0xfb)][_0x23330c(0x134)]({'where':{'id':_0x5097b5[_0x23330c(0xd6)]['id']}})[_0x23330c(0x13b)](handleEntityNotFound(_0x4dc2dd))[_0x23330c(0x13b)](function(_0x353c36){const _0x4f8df4=_0x23330c;if(_0x353c36)return db[_0x4f8df4(0x173)][_0x4f8df4(0x110)](function(_0xcaf35b){const _0x55ac1e=_0x4f8df4;return db['UserProfileSection'][_0x55ac1e(0x129)]({'where':{'userProfileId':_0x5097b5[_0x55ac1e(0xd6)]['id'],'sectionId':_['map'](_0x3b8db3,function(_0x57652b){const _0x4999e1=_0x55ac1e;return _0x57652b[_0x4999e1(0xc5)];})},'transaction':_0xcaf35b})[_0x55ac1e(0x13b)](function(){const _0x275172=_0x55ac1e,_0x1666a0=_[_0x275172(0xf5)](_0x3b8db3,function(_0x6ed25b){const _0x1d2080=_0x275172;return _0x6ed25b['userProfileId']=_0x5097b5[_0x1d2080(0xd6)]['id'],_0x6ed25b;}),_0x21a0a1=[];return Promise[_0x275172(0x172)](_0x1666a0['map'](_0x568247=>{const _0x3eb9bf=_0x275172;return db['UserProfileSection'][_0x3eb9bf(0xd4)](_0x568247,{'include':[{'model':db[_0x3eb9bf(0x14e)],'as':_0x3eb9bf(0xc0)}],'raw':!![],'transaction':_0xcaf35b})[_0x3eb9bf(0x13b)](function(_0x30875b){const _0x454163=_0x3eb9bf;_0x21a0a1[_0x454163(0x14f)](_0x30875b[_0x454163(0x175)]({'plain':!![]}));});}))[_0x275172(0x13b)](function(){return _0x21a0a1;});});});})['then'](function(_0x1e48f5){return _0x1e48f5;})['then'](respondWithResult(_0x4dc2dd,null))[_0x23330c(0xe2)](handleError(_0x4dc2dd,null));},exports[a799_0x39b333(0xf0)]=function(_0x3c8ce1,_0x15bf78){const _0x499151=a799_0x39b333;let _0x3128a7;return db[_0x499151(0xfb)][_0x499151(0x134)]({'where':{'id':_0x3c8ce1['params']['id']},'attributes':['id',_0x499151(0x11a)]})[_0x499151(0x13b)](handleEntityNotFound(_0x15bf78))['then'](function(_0x2ae393){const _0x32578c=_0x499151;if(_0x2ae393)return _0x3128a7=_0x2ae393,db['UserProfileSection'][_0x32578c(0x129)]({'where':{'userProfileId':_0x3c8ce1['params']['id'],'sectionId':_0x3c8ce1[_0x32578c(0x167)][_0x32578c(0xf4)]}});})[_0x499151(0x13b)](function(){return _0x3128a7;})[_0x499151(0x13b)](respondWithStatusCode(_0x15bf78,null))[_0x499151(0xe2)](handleError(_0x15bf78,null));},exports['getSections']=function(_0x9f2405,_0x528849){const _0xe6c25d=a799_0x39b333;let _0x586fb5=[],_0x3b830c=[];return db['UserProfileSection'][_0xe6c25d(0x10d)]({'where':{'userProfileId':_0x9f2405[_0xe6c25d(0xd6)]['id']},'raw':!![]})['then'](function(_0x3badf5){const _0x5c6a2d=_0xe6c25d;_0x586fb5=_[_0x5c6a2d(0x11c)](_0x3badf5,function(_0x281aca){const _0x125b87=_0x5c6a2d;return _0x281aca['enabled']===0x1||_[_0x125b87(0x141)]([0x3eb,0x709],_0x281aca[_0x125b87(0xc5)]);});if(!_[_0x5c6a2d(0x169)](_0x586fb5))return _[_0x5c6a2d(0xf5)](_0x586fb5,function(_0x335b77){const _0x584db3=_0x5c6a2d;return _0x335b77[_0x584db3(0xc5)];});else return;})[_0xe6c25d(0x13b)](function(_0x29c4d4){const _0x463b52=_0xe6c25d;if(_0x29c4d4)_0x3b830c=_0x29c4d4;if(_[_0x463b52(0x141)](_0x3b830c,0x64)){const _0x4851a9=_['find'](_0x586fb5,{'sectionId':0x64});return hasDefaultDashboard(_0x4851a9)[_0x463b52(0x13b)](function(_0x5ce3f8){const _0x16a0bd=_0x463b52;return _[_0x16a0bd(0xf5)](_0x586fb5,function(_0x480547){const _0x3876de=_0x16a0bd;return _0x480547[_0x3876de(0xc5)]===0x64&&(_0x480547[_0x3876de(0x101)]=_0x5ce3f8),_0x480547;});});}else return;})['then'](function(_0x34ae26){const _0x413dfc=_0xe6c25d;if(_0x34ae26)_0x586fb5=_0x34ae26;if(_[_0x413dfc(0x141)](_0x3b830c,0x3eb)){const _0x33ae58=_['find'](_0x586fb5,{'sectionId':0x3eb});return getCustomDashboards(_0x33ae58)[_0x413dfc(0x13b)](function(_0xd2f15e){const _0x184e3a=_0x413dfc;return _[_0x184e3a(0xf5)](_0x586fb5,function(_0x500d65){const _0x3f2d02=_0x184e3a;return _0x33ae58['enabled']?_0x500d65[_0x3f2d02(0xc5)]===0x3eb&&(_0x500d65[_0x3f2d02(0x101)]=_0xd2f15e):_0x500d65[_0x3f2d02(0xc5)]===0x64&&(_0x500d65['subsections']=_0xd2f15e),_0x500d65;});});}else return;})[_0xe6c25d(0x13b)](function(_0x9878a9){const _0x15eecd=_0xe6c25d;if(_0x9878a9)_0x586fb5=_0x9878a9;if(_[_0x15eecd(0x141)](_0x3b830c,0x709)){const _0x4764e2=_[_0x15eecd(0x15d)](_0x586fb5,{'sectionId':0x709});return getPlugins(_0x4764e2)['then'](function(_0x1ac144){const _0x216c50=_0x15eecd;if(_0x4764e2[_0x216c50(0x185)])return _['map'](_0x586fb5,function(_0x48928a){const _0x4a1937=_0x216c50;return _0x48928a[_0x4a1937(0xc5)]===0x709&&(_0x48928a[_0x4a1937(0x101)]=_0x1ac144),_0x48928a;});else{const _0x4d7e71={'sectionId':0x76c,'enabled':0x1,'subsections':_0x1ac144},_0x567dfb=_['map'](_0x586fb5);return _0x567dfb[_0x216c50(0x14f)](_0x4d7e71),_0x567dfb;}});}else return;})[_0xe6c25d(0x13b)](function(_0x4a6a27){const _0xc71201=_0xe6c25d;if(_0x4a6a27)_0x586fb5=_0x4a6a27;return _[_0xc71201(0x11c)](_0x586fb5,[_0xc71201(0x185),0x1]);})['then'](respondWithResult(_0x528849,null))[_0xe6c25d(0xe2)](handleError(_0x528849,null));};function hasDefaultDashboard(_0x52f80f){const _0x11a32d=[0x65];return new Promise(function(_0x26dcb2,_0x12124b){const _0x1e1d87=a799_0x425d;try{if(_0x52f80f['autoAssociation'])_0x26dcb2(_0x11a32d);else return db[_0x1e1d87(0x14e)][_0x1e1d87(0x134)]({'where':{'sectionId':_0x52f80f['id']},'raw':!![]})[_0x1e1d87(0x13b)](function(_0x4df338){_0x4df338?_0x26dcb2(_0x11a32d):_0x26dcb2();});}catch(_0xde3152){_0x12124b(_0xde3152);}});}function getCustomDashboards(_0x5afc67){const _0x4f2834=[];return new Promise(function(_0x4a96f8,_0x209686){const _0x475b07=a799_0x425d;try{return _0x5afc67[_0x475b07(0x114)]?db[_0x475b07(0x189)][_0x475b07(0x10d)]({'raw':!![]})[_0x475b07(0x13b)](function(_0x14c812){_0x14c812['forEach'](function(_0x25b291){const _0x1cc56f=a799_0x425d;_0x4f2834[_0x1cc56f(0x14f)](_0x25b291['id']+0x1869f);}),_0x4a96f8(_0x4f2834);}):db[_0x475b07(0x14e)][_0x475b07(0x10d)]({'where':{'sectionId':_0x5afc67['id']},'raw':!![]})[_0x475b07(0x13b)](function(_0x1527d1){const _0x494478=_0x475b07;_0x1527d1[_0x494478(0x16e)](function(_0x2a8fc9){const _0x22acb9=_0x494478;_0x4f2834[_0x22acb9(0x14f)](_0x2a8fc9['resourceId']+0x1869f);}),_0x4a96f8(_0x4f2834);});}catch(_0x571a93){_0x209686(_0x571a93);}});}function getPlugins(_0x3f7c46){const _0x5c58de=[];return new Promise(function(_0x2e2f16,_0x2f2517){const _0x51e127=a799_0x425d;try{return _0x3f7c46[_0x51e127(0x114)]?db[_0x51e127(0xde)][_0x51e127(0x10d)]({'raw':!![]})[_0x51e127(0x13b)](function(_0xeb473b){_0xeb473b['forEach'](function(_0x5e1467){const _0x58d757=a799_0x425d;_0x5c58de[_0x58d757(0x14f)](_0x5e1467['id']+0x15b38);}),_0x2e2f16(_0x5c58de);}):db[_0x51e127(0x14e)][_0x51e127(0x10d)]({'where':{'sectionId':_0x3f7c46['id']},'raw':!![]})[_0x51e127(0x13b)](function(_0x43abe5){const _0x3498a4=_0x51e127;_0x43abe5[_0x3498a4(0x16e)](function(_0x154fc0){const _0x33962a=_0x3498a4;_0x5c58de[_0x33962a(0x14f)](_0x154fc0[_0x33962a(0x10b)]+0x15b38);}),_0x2e2f16(_0x5c58de);});}catch(_0x2cac03){_0x2f2517(_0x2cac03);}});}exports['addResources']=function(_0x3150c2,_0x23d2be){const _0x268b3a=a799_0x39b333;return db[_0x268b3a(0xfb)]['findOne']({'where':{'id':_0x3150c2['params']['id']}})[_0x268b3a(0x13b)](handleEntityNotFound(_0x23d2be))[_0x268b3a(0x13b)](function(_0x2d2b36){const _0x39e4ee=_0x268b3a;if(_0x2d2b36)return db['sequelize'][_0x39e4ee(0x110)](function(_0x14fdac){const _0x256c7a=_0x39e4ee;return db[_0x256c7a(0xc9)][_0x256c7a(0x10d)]({'where':{'userProfileId':_0x3150c2[_0x256c7a(0xd6)]['id']},'attributes':['id'],'raw':!![]})[_0x256c7a(0x13b)](function(_0x420967){const _0x5036cf=_0x256c7a;if(_0x420967)return db[_0x5036cf(0xc9)][_0x5036cf(0x129)]({'where':{'userProfileId':_0x3150c2[_0x5036cf(0xd6)]['id'],'id':_[_0x5036cf(0xf5)](_0x420967,function(_0x155f4b){return _0x155f4b['id'];})},'transaction':_0x14fdac});})['then'](function(){const _0x3563ca=_0x256c7a,_0x267425=_[_0x3563ca(0xf5)](_0x3150c2[_0x3563ca(0x100)],function(_0x28fd4b){return _0x28fd4b['userProfileId']=_0x3150c2['params']['id'],_0x28fd4b;});return db[_0x3563ca(0xc9)][_0x3563ca(0xe5)](_0x267425,{'raw':!![],'transaction':_0x14fdac});})[_0x256c7a(0x13b)](function(_0x1b7b43){const _0x2f7e14=_0x256c7a,_0x42c619=_[_0x2f7e14(0x11c)](_[_0x2f7e14(0xf5)](_0x1b7b43,function(_0x1e3056){return _0x1e3056['get']({'plain':!![]});}),{'includeAll':![]});if(_0x42c619)return db[_0x2f7e14(0xc9)][_0x2f7e14(0x10d)]({'where':{'userProfileId':_0x3150c2[_0x2f7e14(0xd6)]['id'],'sectionId':_[_0x2f7e14(0xf5)](_0x42c619,function(_0x16864e){const _0xd09f9f=_0x2f7e14;return _0x16864e[_0xd09f9f(0xc5)];})},'attributes':['id',_0x2f7e14(0xc5)],'raw':!![]})['then'](function(){const _0x3eac2d=_0x2f7e14,_0x4c716c=_[_0x3eac2d(0xf5)](_0x3150c2[_0x3eac2d(0x100)],function(_0x1c563e){const _0x3ee7e4=_0x3eac2d;return _0x1c563e[_0x3ee7e4(0xcb)]=_0x3150c2[_0x3ee7e4(0xd6)]['id'],_0x1c563e;});return db[_0x3eac2d(0x14e)][_0x3eac2d(0xe5)](_0x4c716c,{'raw':!![],'transaction':_0x14fdac});});})['catch'](handleError(_0x23d2be,null));});})[_0x268b3a(0x13b)](function(){})['then'](respondWithResult(_0x23d2be,null))[_0x268b3a(0xe2)](handleError(_0x23d2be,null));},exports[a799_0x39b333(0x150)]=function(_0x596ac9,_0x21c072){const _0x1e520a=a799_0x39b333;return db[_0x1e520a(0xfb)][_0x1e520a(0x134)]({'where':{'id':_0x596ac9['params']['id']}})['then'](handleEntityNotFound(_0x21c072))[_0x1e520a(0x13b)](function(_0x2bae81){const _0x4bb5e3=_0x1e520a;if(_0x2bae81)return _0x2bae81['removeResources'](_0x596ac9['query'][_0x4bb5e3(0xf4)]);})[_0x1e520a(0x13b)](respondWithStatusCode(_0x21c072,null))[_0x1e520a(0xe2)](handleError(_0x21c072,null));},exports[a799_0x39b333(0x136)]=function(_0x212409,_0x49a3c5){const _0xf1dca8=a799_0x39b333;let _0x311a36={'raw':![],'where':{}};const _0x1af2f9={},_0x2b7a1d={'count':0x0,'rows':[]},_0x163e43=_0x212409[_0xf1dca8(0x167)][_0xf1dca8(0x12d)];if(typeof _0x163e43===_0xf1dca8(0x138))throw new ValidationError(_0xf1dca8(0x148));const _0x1691b9=_0x212409[_0xf1dca8(0x167)][_0xf1dca8(0x123)]||![],_0x2b608d=getQueryModels(_0x163e43,_0x1691b9);if(typeof _0x2b608d['childModel']==='undefined')throw new ValidationError(_0xf1dca8(0x10c)+_0x163e43+'\x27');let _0x1b24f2=[];return!_['isEmpty'](_0x2b608d['parentSections'])?_0x1b24f2=_0x2b608d['parentSections']:_0x1b24f2=[{'name':_0x163e43}],db['UserProfile'][_0xf1dca8(0x134)]({'where':{'id':_0x212409[_0xf1dca8(0xd6)]['id']}})[_0xf1dca8(0x13b)](handleEntityNotFound(_0x49a3c5))[_0xf1dca8(0x13b)](function(_0x5c9c4b){const _0x2656cb=_0xf1dca8;if(_0x5c9c4b){const _0x3e2586=[];for(let _0x12dee9=0x0;_0x12dee9<_0x1b24f2[_0x2656cb(0x162)];_0x12dee9++){_0x3e2586['push'](db[_0x2656cb(0xc9)][_0x2656cb(0x134)]({'where':{'userProfileId':_0x5c9c4b['id'],'name':_0x1b24f2[_0x12dee9]['name']},'raw':!![]}));}return Promise[_0x2656cb(0x172)](_0x3e2586);}})[_0xf1dca8(0x13b)](function(_0x2bf25b){const _0x43a616=_0xf1dca8,_0x445162=_['filter'](_0x2bf25b,function(_0x22c1ea){return _0x22c1ea?_0x22c1ea:undefined;}),_0x4eee53=_[_0x43a616(0x11c)](_0x1b24f2,[_0x43a616(0xec),!![]]),_0x1d2bcb=_['isEmpty'](_0x445162)&&_[_0x43a616(0x169)](_0x4eee53)?null:_[_0x43a616(0xee)](_0x4eee53,_0x445162);if(_0x1d2bcb){const _0x1e3ce2=[];for(let _0x3c28a0=0x0;_0x3c28a0<_0x1d2bcb[_0x43a616(0x162)];_0x3c28a0++){const _0x20b24b=_[_0x43a616(0x15d)](_0x1b24f2,function(_0x2bb80b){const _0x3a5bba=_0x43a616;return _0x1d2bcb[_0x3c28a0]?_0x2bb80b[_0x3a5bba(0x11a)]===_0x1d2bcb[_0x3c28a0][_0x3a5bba(0x11a)]:null;});_0x20b24b&&(_0x1d2bcb[_0x3c28a0][_0x43a616(0xec)]?_0x1e3ce2[_0x43a616(0x14f)](getAllResources(_0x2b608d[_0x43a616(0xe6)],_0x1d2bcb[_0x3c28a0])):!_0x1d2bcb[_0x3c28a0][_0x43a616(0x114)]?_0x1e3ce2[_0x43a616(0x14f)](getAllowedResources(_0x20b24b,_0x1d2bcb[_0x3c28a0],_0x2b608d[_0x43a616(0xe6)])):_0x20b24b[_0x43a616(0x116)]&&_0x1e3ce2[_0x43a616(0x14f)](getAllFilteredResources(_0x20b24b,_0x1d2bcb[_0x3c28a0])));}return Promise['all'](_0x1e3ce2);}else return null;})[_0xf1dca8(0x13b)](function(_0x4521a8){const _0x40e9b4=_0xf1dca8,_0xfd8143=_0x4521a8;let _0x1967d7=null;_0xfd8143&&(_0x1967d7=_0xfd8143[_0x40e9b4(0x162)]===0x1?_0xfd8143[0x0]:null);if(_0x1967d7||_0xfd8143){const _0x124625=db[_0x2b608d[_0x40e9b4(0xe6)]][_0x40e9b4(0xe0)];_0x1af2f9[_0x40e9b4(0x116)]=_['keys'](_0x124625),_0x1af2f9[_0x40e9b4(0x167)]=_['keys'](_0x212409[_0x40e9b4(0x167)]),_0x1af2f9[_0x40e9b4(0xe4)]=_[_0x40e9b4(0xd2)](_0x1af2f9['model'],_0x1af2f9[_0x40e9b4(0x167)]),_0x311a36[_0x40e9b4(0xd8)]=_[_0x40e9b4(0xd2)](_0x1af2f9['model'],qs[_0x40e9b4(0xff)](_0x212409[_0x40e9b4(0x167)]['fields'])),_0x311a36[_0x40e9b4(0xd8)]=_0x311a36['attributes'][_0x40e9b4(0x162)]?_0x311a36[_0x40e9b4(0xd8)]:_0x1af2f9['model'];typeof _0x212409[_0x40e9b4(0x167)]['nolimit']===_0x40e9b4(0x138)&&(_0x311a36[_0x40e9b4(0xef)]=qs['limit'](_0x212409[_0x40e9b4(0x167)][_0x40e9b4(0xef)]),_0x311a36['offset']=qs['offset'](_0x212409[_0x40e9b4(0x167)][_0x40e9b4(0xd9)]));_0x311a36[_0x40e9b4(0xfd)]=qs[_0x40e9b4(0x164)](_0x212409[_0x40e9b4(0x167)][_0x40e9b4(0x164)]),_0x311a36[_0x40e9b4(0x154)]=qs[_0x40e9b4(0xe4)](_[_0x40e9b4(0x157)](_0x212409[_0x40e9b4(0x167)],_0x1af2f9['filters']));_0x212409[_0x40e9b4(0x167)]['filter']&&(_0x311a36[_0x40e9b4(0x154)]=_[_0x40e9b4(0x125)](_0x311a36[_0x40e9b4(0x154)],{[Op['or']]:_[_0x40e9b4(0xf5)](_0x124625,function(_0x8f6295){const _0x21acf3=_0x40e9b4;if(_0x8f6295[_0x21acf3(0x15c)][_0x21acf3(0x102)]!==_0x21acf3(0x14c)){const _0xa40792={};return _0xa40792[_0x8f6295[_0x21acf3(0x109)]]={[Op['like']]:'%'+_0x212409[_0x21acf3(0x167)][_0x21acf3(0x11c)]+'%'},_0xa40792;}})}));const _0x4d1135=[];if(_0x1967d7){const _0x177c88=_[_0x40e9b4(0x15d)](_0x1b24f2,[_0x40e9b4(0x11a),_0x1967d7[_0x40e9b4(0x11a)]]);if(_0x177c88[_0x40e9b4(0x109)]){const _0x584317={};_0x2b608d[_0x40e9b4(0xe6)]===_0x40e9b4(0x151)?_0x584317[_0x177c88[_0x40e9b4(0x13a)]]=_[_0x40e9b4(0xf5)](_0x1967d7[_0x40e9b4(0x119)],'id'):_0x584317[_0x177c88[_0x40e9b4(0x13a)]]=_0x1967d7['associatedResources'],_0x4d1135['push'](_0x584317);}else _0x311a36['where']['id']=_0x1967d7[_0x40e9b4(0x119)];}else for(let _0x9731dd=0x0;_0x9731dd<_0xfd8143[_0x40e9b4(0x162)];_0x9731dd++){const _0x2a0010=_['find'](_0x1b24f2,['name',_0xfd8143[_0x9731dd]['name']]);if(_0x2a0010[_0x40e9b4(0x109)]){const _0x24482e={};_0x24482e[_0x2a0010[_0x40e9b4(0x13a)]]=_0xfd8143[_0x9731dd][_0x40e9b4(0x119)],_0x4d1135['push'](_0x24482e);}else{if(!_0x311a36[_0x40e9b4(0x154)]['id'])_0x311a36['where']['id']=[];_0xfd8143[_0x9731dd][_0x40e9b4(0x119)]['forEach'](function(_0x5c1d95){const _0x4371bc=_0x40e9b4;_0x311a36[_0x4371bc(0x154)]['id'][_0x4371bc(0x14f)](_0x5c1d95);});}}return!_[_0x40e9b4(0x169)](_0x4d1135)&&(_0x311a36[_0x40e9b4(0x154)]=_[_0x40e9b4(0x125)](_0x311a36[_0x40e9b4(0x154)],{[Op[_0x40e9b4(0x10e)]]:{[Op['or']]:_0x4d1135}})),_0x311a36=_[_0x40e9b4(0x125)]({},_0x311a36,_0x212409[_0x40e9b4(0x15f)]),_0x1967d7&&!_0x1967d7[_0x40e9b4(0x114)]&&_0x2b608d[_0x40e9b4(0xe6)]===_0x40e9b4(0x151)?(_0x212409[_0x40e9b4(0x167)][_0x40e9b4(0x17d)]&&(_0x311a36[_0x40e9b4(0x17f)]=[{'all':!![]}]),db[_0x2b608d[_0x40e9b4(0xe6)]][_0x40e9b4(0x10d)](_0x311a36)[_0x40e9b4(0x13b)](function(_0xd4dfd8){const _0x1be7d9=_0x40e9b4,_0x48e871=[];return _0xd4dfd8[_0x1be7d9(0x16e)](function(_0x1b569c){const _0x56b92a=_0x1be7d9;let _0x42caff;switch(_0x1b569c[_0x56b92a(0x158)]){case _0x56b92a(0x144):_0x42caff=_[_0x56b92a(0x15d)](_0x1967d7[_0x56b92a(0x119)],function(_0x2af345){const _0x2fc314=_0x56b92a;return _0x2af345['id']===_0x1b569c['reportId']&&_0x2af345['type']===_0x2fc314(0x165);});break;case _0x56b92a(0xcd):_0x42caff=_[_0x56b92a(0x15d)](_0x1967d7[_0x56b92a(0x119)],function(_0x10efe9){const _0x5bcf6a=_0x56b92a;return _0x10efe9['id']===_0x1b569c['reportId']&&_0x10efe9[_0x5bcf6a(0x15c)]===_0x5bcf6a(0x146);});break;}if(_0x42caff)_0x48e871[_0x56b92a(0x14f)](_0x1b569c);}),_0x2b7a1d[_0x1be7d9(0x168)]=_0x48e871['length'],_0x2b7a1d['rows']=_0x48e871,_0x2b7a1d;})):db[_0x2b608d[_0x40e9b4(0xe6)]][_0x40e9b4(0x168)]({'where':_0x311a36[_0x40e9b4(0x154)]})['then'](function(_0x1f80b7){const _0x1705a6=_0x40e9b4;return _0x2b7a1d[_0x1705a6(0x168)]=_0x1f80b7,_0x212409[_0x1705a6(0x167)][_0x1705a6(0x17d)]&&(_0x2b608d[_0x1705a6(0xe6)]===_0x1705a6(0x160)?_0x311a36[_0x1705a6(0x17f)]=[{'model':db['Tag'],'as':_0x1705a6(0x132),'attributes':['id',_0x1705a6(0x11a),'color'],'required':_0x212409[_0x1705a6(0x167)][_0x1705a6(0x17c)]?!![]:![]},{'model':db[_0x1705a6(0xc1)],'as':'ThroughTags','attributes':['id',_0x1705a6(0x11a),_0x1705a6(0x128)],'through':_0x212409[_0x1705a6(0x167)][_0x1705a6(0x17c)]?{'attributes':[],'where':{'TagId':_0x212409[_0x1705a6(0x167)][_0x1705a6(0x17c)]||undefined}}:{},'required':_0x212409['query'][_0x1705a6(0x17c)]?!![]:![]}]:_0x311a36['include']=[{'all':!![]}]),db[_0x2b608d[_0x1705a6(0xe6)]][_0x1705a6(0x10d)](_0x311a36);})[_0x40e9b4(0x13b)](function(_0x544cf6){const _0x32e8bc=_0x40e9b4;return _0x2b7a1d[_0x32e8bc(0x108)]=_0x544cf6,_0x2b7a1d;});}else return _0x2b7a1d;})[_0xf1dca8(0x13b)](respondWithFilteredResult(_0x49a3c5,_0x311a36))[_0xf1dca8(0xe2)](handleError(_0x49a3c5,null));};function getAllResources(_0x1179b4,_0x56d1e0){return new Promise(function(_0x154522,_0x4a2ad2){const _0x3a89f1=a799_0x425d;if(_0x56d1e0){const _0xabc614=_0x56d1e0[_0x3a89f1(0x11c)]?{[_0x56d1e0[_0x3a89f1(0x11c)][_0x3a89f1(0x109)]]:_0x56d1e0['filter'][_0x3a89f1(0xe7)]}:undefined;return db[_0x1179b4]['findAll']({'where':_0xabc614,'raw':!![]})[_0x3a89f1(0x13b)](function(_0xd7fe5e){const _0x2fd8d6=_0x3a89f1;_0x56d1e0[_0x2fd8d6(0x119)]=_[_0x2fd8d6(0xf5)](_0xd7fe5e,'id'),_0x154522(_0x56d1e0);})['catch'](function(_0x1bb2e7){_0x4a2ad2(_0x1bb2e7);});}else _0x154522(null);});}function getAllFilteredResources(_0x27fca8,_0x3e7336){return new Promise(function(_0x1396b4,_0x441cf9){const _0x385744=a799_0x425d,_0x2e9907=_0x27fca8[_0x385744(0x11c)]?{[_0x27fca8['filter'][_0x385744(0x109)]]:_0x27fca8[_0x385744(0x11c)][_0x385744(0xe7)]}:undefined;return db[_0x27fca8[_0x385744(0x116)]][_0x385744(0x10d)]({'where':_0x2e9907,'raw':!![]})[_0x385744(0x13b)](function(_0x272079){const _0x105777=_0x385744;_0x3e7336['associatedResources']=_[_0x105777(0xf5)](_0x272079,function(_0x46f19d){const _0x23f343=_0x105777;return _0x46f19d[_0x23f343(0x11a)];}),_0x1396b4(_0x3e7336);})['catch'](function(_0x2d53bd){_0x441cf9(_0x2d53bd);});});}function getAllowedResources(_0xbc5a83,_0x1d2a8d,_0x4dbbe9){return new Promise(function(_0x39fda3,_0x511610){const _0x3eba24=a799_0x425d;if(_0x1d2a8d)return db[_0x3eba24(0x14e)][_0x3eba24(0x10d)]({'where':{'sectionId':_0x1d2a8d['id']},'raw':!![]})[_0x3eba24(0x13b)](function(_0x64eef4){const _0x2beb1b=_0x3eba24;_0xbc5a83[_0x2beb1b(0x109)]&&_0xbc5a83['field']!=='id'?_0x1d2a8d[_0x2beb1b(0x119)]=_['map'](_0x64eef4,function(_0x2438eb){const _0x5be5ed=_0x2beb1b;return _0x2438eb[_0xbc5a83[_0x5be5ed(0x109)]];}):_0x4dbbe9===_0x2beb1b(0x151)?_0x1d2a8d[_0x2beb1b(0x119)]=_['map'](_0x64eef4,function(_0x5d7f9e){const _0x583617=_0x2beb1b;return{'id':_0x5d7f9e[_0x583617(0x10b)],'type':_0x5d7f9e['type']};}):_0x1d2a8d[_0x2beb1b(0x119)]=_[_0x2beb1b(0xf5)](_0x64eef4,function(_0x583e9a){const _0x953d83=_0x2beb1b;return _0x583e9a[_0x953d83(0x10b)];}),_0x39fda3(_0x1d2a8d);})[_0x3eba24(0xe2)](function(_0x529aa3){_0x511610(_0x529aa3);});else _0x39fda3(null);});}function getQueryModels(_0x2a5d3d,_0x4fb135){const _0x938b4a=a799_0x39b333,_0x1c4afc=_0x2a5d3d[_0x938b4a(0x10f)](),_0x7d9150={'childModel':undefined,'parentSections':[]};switch(_0x1c4afc){case _0x938b4a(0xeb):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0xd7);break;case _0x938b4a(0xe1):_0x7d9150[_0x938b4a(0xe6)]='SquareOdbc';break;case'squarerecordings':_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0xda),_0x7d9150[_0x938b4a(0x176)]=[{'name':_0x938b4a(0xc7),'field':_0x938b4a(0x11a),'foreignKey':'projectName'}];break;case'projects':_0x7d9150[_0x938b4a(0xe6)]='JscriptyProject';break;case _0x938b4a(0xfc):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x160),_0x7d9150['parentSections']=[{'name':_0x938b4a(0x156),'field':'id','foreignKey':'ListId'}];break;case _0x938b4a(0x183):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x104);break;case'companies':_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x113);break;case _0x938b4a(0xfa):_0x7d9150['childModel']=_0x938b4a(0x14d);break;case _0x938b4a(0x121):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x15a);break;case _0x938b4a(0x163):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0xf2);break;case _0x938b4a(0x14b):_0x7d9150['childModel']=_0x938b4a(0x180);break;case'faxaccounts':_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0xf9);break;case _0x938b4a(0xc4):case'internalroutes':case _0x938b4a(0x166):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x13f);break;case'contexts':_0x7d9150[_0x938b4a(0xe6)]='VoiceContext';break;case _0x938b4a(0xdd):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x149);break;case _0x938b4a(0xdf):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x140),_0x7d9150['parentSections']=[{'name':_0x938b4a(0xc6),'field':_0x938b4a(0x11a),'foreignKey':'membername','model':'User','filter':{'field':'role','value':[_0x938b4a(0x107)]}},{'name':_0x938b4a(0xc3),'field':'name','foreignKey':'membername','model':'User','filter':{'field':_0x938b4a(0x12e),'value':[_0x938b4a(0x130)]}},{'name':'VoiceQueues','field':_0x938b4a(0x11a),'foreignKey':_0x938b4a(0x124),'model':'VoiceQueue','filter':{'field':'type','value':['inbound']}},{'name':_0x938b4a(0x133),'field':_0x938b4a(0x11a),'foreignKey':_0x938b4a(0x124),'model':_0x938b4a(0x13d),'filter':{'field':_0x938b4a(0x15c),'value':[_0x938b4a(0x186)]}}];break;case'musiconholds':_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0xf1);break;case _0x938b4a(0x16a):_0x7d9150[_0x938b4a(0xe6)]='VoiceChanSpy';break;case _0x938b4a(0x159):_0x7d9150['childModel']='VoicePrefix';break;case _0x938b4a(0xf7):_0x7d9150['childModel']='Campaign';break;case'mailqueues':_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0xd0);break;case _0x938b4a(0x142):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x11b);break;case _0x938b4a(0x171):_0x7d9150[_0x938b4a(0xe6)]='MailSubstatus';break;case _0x938b4a(0x126):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x12c);break;case _0x938b4a(0xe8):_0x7d9150[_0x938b4a(0xe6)]='OpenchannelAccount';break;case _0x938b4a(0xc8):_0x7d9150['childModel']=_0x938b4a(0x111);break;case _0x938b4a(0x106):_0x7d9150['childModel']='SmsAccount';break;case'whatsappqueues':_0x7d9150[_0x938b4a(0xe6)]='WhatsappQueue';break;case'whatsappaccounts':_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x13c);break;case _0x938b4a(0x161):_0x7d9150['childModel']='Team';break;case _0x938b4a(0xbf):case _0x938b4a(0x178):_0x7d9150[_0x938b4a(0xe6)]='VoiceQueue';_0x4fb135&&(_0x7d9150[_0x938b4a(0x176)]=[{'name':_0x938b4a(0x17b)},{'name':_0x938b4a(0x133)}]);break;case'users':case _0x938b4a(0xcf):case _0x938b4a(0x16f):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x143);_0x4fb135&&(_0x7d9150['parentSections']=[{'name':_0x938b4a(0x15e),'filter':{'field':'role','value':[_0x938b4a(0x118),_0x938b4a(0xf6)]},'ignore':!![]},{'name':'Agents'},{'name':_0x938b4a(0xc3)}]);break;case _0x938b4a(0x12b):_0x7d9150['childModel']=_0x938b4a(0x117);break;case _0x938b4a(0x181):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x170);break;case'freshdeskaccounts':_0x7d9150['childModel']='FreshdeskAccount';break;case _0x938b4a(0x105):_0x7d9150['childModel']=_0x938b4a(0x11f);break;case _0x938b4a(0x17e):_0x7d9150[_0x938b4a(0xe6)]='DeskAccount';break;case _0x938b4a(0x135):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0xd5);break;case _0x938b4a(0xd1):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x143);break;case'cannedanswers':_0x7d9150['childModel']=_0x938b4a(0x17a);break;case'dispositions':_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x16c);break;case _0x938b4a(0x152):_0x7d9150['childModel']=_0x938b4a(0x189);break;case _0x938b4a(0xe3):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x103);break;case _0x938b4a(0x177):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x14a);break;case'scheduler':_0x7d9150[_0x938b4a(0xe6)]='Schedule';break;case _0x938b4a(0xea):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x10a);break;case _0x938b4a(0x182):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0xc1);break;case _0x938b4a(0x153):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x122);break;case'triggers':_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0x11e);break;case _0x938b4a(0x137):_0x7d9150[_0x938b4a(0xe6)]=_0x938b4a(0xc2);break;case'variables':_0x7d9150['childModel']=_0x938b4a(0x155);break;case _0x938b4a(0xed):_0x7d9150['childModel']=_0x938b4a(0xde);break;case _0x938b4a(0xcc):_0x7d9150[_0x938b4a(0xe6)]='AnalyticExtractedReport',_0x7d9150['parentSections']=[{'name':_0x938b4a(0x188),'field':'id','foreignKey':_0x938b4a(0x187)}];break;case _0x938b4a(0x16b):_0x7d9150[_0x938b4a(0xe6)]='AnalyticMetric';break;default:return _0x7d9150;}return _0x7d9150;} \ No newline at end of file +const a799_0x5cee=['transaction','send','index','forEach','userProfileId','telephone','attributes','UserProfileSection','FreshdeskAccount','ivrcampaigns','chatqueues','includeAll','contacts','clone','Plugin','zohoaccounts','omit','undefined','section','ids','inboundroutes','addSections','Team','deskaccounts','SquareProjects','query','faxqueues','type','outboundroutes','UserProfileResource','squareprojects','tag','globalcustomfields','offset','SmsAccount','templates','body','chanspies','value','subsections','MailSubstatus','../../rediscache','length','include','Agents','agent','filters','findOne','default','voiceprefixes','order','VoiceChanSpy','SugarcrmAccount','find','zendeskaccounts','Tag','getResources','sectionId','SquareProject','keys','Tags','crudPermissions','VoiceQueues','map','and','fieldName','enabled','describe','plugins','projects','FaxQueue','rawAttributes','status','queue','voicerecordings','count','addResources','ZendeskAccount','AnalyticExtractedReport','MailAccount','filter','all','destroy','WhatsappAccount','cannedanswers','getSections','sort','voicequeues','extractedreports','sendStatus','JscriptyProject','name','FaxAccount','WhatsappQueue','limit','isEmpty','where','projectName','agents','get','ignore','Schedule','Dashboard','Trigger','parentSections','toLowerCase','fields','end','smsaccounts','CmContact','autoAssociation','intervals','ThroughTags','OpenchannelQueue','role','pick','foreignKey','CmCustomField','register','openchannelaccounts','metrics','MailQueue','nolimit','DeskAccount','CannedAnswer','createdAt','SquareRecording','ListId','voicemails','SmsQueue','push','teams','SalesforceAccount','contexts','VIRTUAL','catch','Variable','stack','vtigeraccounts','musiconholds','VoiceExtension','freshdeskaccounts','includes','intersection','ChatQueue','../../mysqldb','customdashboards','inbound','removeResources','companies','field','merge','childModel','openchannelqueues','VoiceContext','like','Telephones','trunks','../../config/logger','smsqueues','resourceId','Disposition','options','VoiceQueue','color','whatsappqueues','associatedResources','UserProfile','mailqueues','removeSections','chatwebsites','Sound','then','updatedAt','Interval','User','internalroutes','api','Pause','union','../../components/parsers/qs','sequelize','CmCompany','bulkCreate','model','rows','reportType','findAll','reportId','params','sounds','whatsappaccounts','membername','key','CustomReports','json','./userProfile.socket','QueueCampaigns','sugarcrmaccounts','Reports','odbc','create','mailsubstatuses'];(function(_0xbd6c30,_0x5199ca){const _0x5ceee9=function(_0x454e0b){while(--_0x454e0b){_0xbd6c30['push'](_0xbd6c30['shift']());}};_0x5ceee9(++_0x5199ca);}(a799_0x5cee,0x161));const a799_0x454e=function(_0xbd6c30,_0x5199ca){_0xbd6c30=_0xbd6c30-0x6e;let _0x5ceee9=a799_0x5cee[_0xbd6c30];return _0x5ceee9;};const a799_0x421759=a799_0x454e;'use strict';const _=require('lodash'),qs=require(a799_0x421759(0x8c)),logger=require(a799_0x421759(0x76))(a799_0x421759(0x89)),{getSocket}=require(a799_0x421759(0xcc)),socket=getSocket(),{db}=require(a799_0x421759(0x134)),{Op,ValidationError}=require('sequelize');require(a799_0x421759(0x9c))[a799_0x421759(0x119)](socket);function respondWithStatusCode(_0x591ce9,_0xc8e7c5){return _0xc8e7c5=_0xc8e7c5||0xcc,function(_0x56f2c1){const _0x494d83=a799_0x454e;if(_0x56f2c1)return _0x591ce9[_0x494d83(0xfc)](_0xc8e7c5);return _0x591ce9[_0x494d83(0xeb)](_0xc8e7c5)['end']();};}function respondWithResult(_0x35f5ab,_0x56e581){return _0x56e581=_0x56e581||0xc8,function(_0x27f5c3){const _0x4c3bf5=a799_0x454e;if(_0x27f5c3)return _0x35f5ab['status'](_0x56e581)[_0x4c3bf5(0x9b)](_0x27f5c3);};}function respondWithFilteredResult(_0x1d4cb4,_0x3f5ac0){return function(_0x354684){const _0x1c205e=a799_0x454e;if(_0x354684){const _0x1c89f2=_0x354684[_0x1c205e(0xee)],_0x3eaa83=_0x3f5ac0['offset'];let _0x4cd385=_0x3f5ac0[_0x1c205e(0xc4)]+_0x3f5ac0[_0x1c205e(0x101)],_0x2021eb;return _0x4cd385>=_0x1c89f2?(_0x4cd385=_0x1c89f2,_0x2021eb=0xc8):_0x2021eb=0xce,_0x1d4cb4['status'](_0x2021eb),_0x1d4cb4['set']('Content-Range',_0x3eaa83+'-'+_0x4cd385+'/'+_0x1c89f2)[_0x1c205e(0x9b)](_0x354684);}return null;};}function saveUpdates(_0xb152cc){return function(_0x43813d){if(_0x43813d)return _0x43813d['update'](_0xb152cc)['then'](function(_0xdc3603){return _0xdc3603;});return null;};}function removeEntity(_0x289123){return function(_0x4d85da){const _0x1ca27a=a799_0x454e;if(_0x4d85da)return _0x4d85da[_0x1ca27a(0xf5)]()[_0x1ca27a(0x84)](function(){const _0x201eac=_0x1ca27a;_0x289123[_0x201eac(0xeb)](0xcc)[_0x201eac(0x10e)]();});};}function handleEntityNotFound(_0x3d60c3){return function(_0x2326b0){const _0x46d53c=a799_0x454e;return!_0x2326b0&&_0x3d60c3[_0x46d53c(0xfc)](0x194),_0x2326b0;};}function handleError(_0x2f29f0,_0x5853b0){return _0x5853b0=_0x5853b0||0x1f4,function(_0x4d25ef){const _0xf45b27=a799_0x454e;logger['error'](_0x4d25ef[_0xf45b27(0x12c)]),_0x4d25ef[_0xf45b27(0xfe)]&&delete _0x4d25ef[_0xf45b27(0xfe)],_0x2f29f0[_0xf45b27(0xeb)](_0x5853b0)[_0xf45b27(0xa4)](_0x4d25ef);};}exports[a799_0x421759(0xa5)]=function(_0xcc4592,_0x531355){const _0x11de54=a799_0x421759;let _0x4ca071={};const _0x4b488b={},_0x174b53={'count':0x0,'rows':[]},_0x295d34=_[_0x11de54(0xe2)](db['UserProfile'][_0x11de54(0xea)],function(_0x1c9ed5){const _0x4180d7=_0x11de54;return{'name':_0x1c9ed5[_0x4180d7(0xe4)],'type':_0x1c9ed5[_0x4180d7(0xbe)]['key']};});_0x4b488b[_0x11de54(0x90)]=_['map'](_0x295d34,_0x11de54(0xfe)),_0x4b488b[_0x11de54(0xbc)]=_[_0x11de54(0xde)](_0xcc4592[_0x11de54(0xbc)]),_0x4b488b[_0x11de54(0xd1)]=_[_0x11de54(0x132)](_0x4b488b[_0x11de54(0x90)],_0x4b488b['query']),_0x4ca071['attributes']=_['intersection'](_0x4b488b['model'],qs[_0x11de54(0x10d)](_0xcc4592[_0x11de54(0xbc)][_0x11de54(0x10d)])),_0x4ca071[_0x11de54(0xa9)]=_0x4ca071['attributes'][_0x11de54(0xcd)]?_0x4ca071[_0x11de54(0xa9)]:_0x4b488b['model'];typeof _0xcc4592[_0x11de54(0xbc)][_0x11de54(0x11d)]===_0x11de54(0xb4)&&(_0x4ca071[_0x11de54(0x101)]=qs[_0x11de54(0x101)](_0xcc4592[_0x11de54(0xbc)]['limit']),_0x4ca071['offset']=qs[_0x11de54(0xc4)](_0xcc4592[_0x11de54(0xbc)][_0x11de54(0xc4)]));_0x4ca071[_0x11de54(0xd5)]=qs[_0x11de54(0xf9)](_0xcc4592[_0x11de54(0xbc)][_0x11de54(0xf9)]),_0x4ca071[_0x11de54(0x103)]=qs[_0x11de54(0xd1)](_[_0x11de54(0x116)](_0xcc4592[_0x11de54(0xbc)],_0x4b488b[_0x11de54(0xd1)]),_0x295d34);_0xcc4592[_0x11de54(0xbc)][_0x11de54(0xf3)]&&(_0x4ca071[_0x11de54(0x103)]=_[_0x11de54(0x6f)](_0x4ca071[_0x11de54(0x103)],{[Op['or']]:_['map'](_0x295d34,function(_0x13b907){const _0x3b4dde=_0x11de54;if(_0x13b907['type']!==_0x3b4dde(0x129)){const _0x23d483={};return _0x23d483[_0x13b907[_0x3b4dde(0xfe)]]={[Op[_0x3b4dde(0x73)]]:'%'+_0xcc4592['query'][_0x3b4dde(0xf3)]+'%'},_0x23d483;}})}));_0x4ca071=_[_0x11de54(0x6f)]({},_0x4ca071,_0xcc4592[_0x11de54(0x7a)]);const _0x24c768={'where':_0x4ca071[_0x11de54(0x103)]};return db['UserProfile'][_0x11de54(0xee)](_0x24c768)['then'](function(_0x519653){const _0x400737=_0x11de54;return _0x174b53['count']=_0x519653,_0xcc4592[_0x400737(0xbc)][_0x400737(0xae)]&&(_0x4ca071['include']=[{'all':!![]}]),db[_0x400737(0x7f)][_0x400737(0x93)](_0x4ca071);})['then'](function(_0x6d37f6){return _0x174b53['rows']=_0x6d37f6,_0x174b53;})[_0x11de54(0x84)](respondWithFilteredResult(_0x531355,_0x4ca071))[_0x11de54(0x12a)](handleError(_0x531355,null));},exports['show']=function(_0xccc40a,_0x541e22){const _0x256d47=a799_0x421759;let _0x5ca16a={'raw':![],'where':{'id':_0xccc40a[_0x256d47(0x95)]['id']}};const _0x2e4598={};return _0x2e4598[_0x256d47(0x90)]=_['keys'](db[_0x256d47(0x7f)][_0x256d47(0xea)]),_0x2e4598[_0x256d47(0xbc)]=_['keys'](_0xccc40a[_0x256d47(0xbc)]),_0x2e4598['filters']=_[_0x256d47(0x132)](_0x2e4598[_0x256d47(0x90)],_0x2e4598[_0x256d47(0xbc)]),_0x5ca16a[_0x256d47(0xa9)]=_[_0x256d47(0x132)](_0x2e4598[_0x256d47(0x90)],qs[_0x256d47(0x10d)](_0xccc40a[_0x256d47(0xbc)][_0x256d47(0x10d)])),_0x5ca16a[_0x256d47(0xa9)]=_0x5ca16a[_0x256d47(0xa9)][_0x256d47(0xcd)]?_0x5ca16a[_0x256d47(0xa9)]:_0x2e4598[_0x256d47(0x90)],_0xccc40a[_0x256d47(0xbc)][_0x256d47(0xae)]&&(_0x5ca16a[_0x256d47(0xce)]=[{'all':!![]}]),_0x5ca16a=_['merge']({},_0x5ca16a,_0xccc40a[_0x256d47(0x7a)]),db[_0x256d47(0x7f)][_0x256d47(0xd2)](_0x5ca16a)['then'](handleEntityNotFound(_0x541e22))['then'](respondWithResult(_0x541e22,null))[_0x256d47(0x12a)](handleError(_0x541e22,null));},exports['create']=function(_0x1753e5,_0x28b837){const _0x17b6b6=a799_0x421759;return db[_0x17b6b6(0x7f)][_0x17b6b6(0xa1)](_0x1753e5['body'],{})[_0x17b6b6(0x84)](respondWithResult(_0x28b837,0xc9))[_0x17b6b6(0x12a)](handleError(_0x28b837,null));},exports[a799_0x421759(0xb0)]=function(_0x3efb80,_0x2a27cf){const _0x2bc2c5=a799_0x421759;let _0x48b0b2={'where':{'id':_0x3efb80[_0x2bc2c5(0x95)]['id']}};const _0x55b28e={};return _0x55b28e[_0x2bc2c5(0x90)]=_[_0x2bc2c5(0xde)](db[_0x2bc2c5(0x7f)]['rawAttributes']),_0x48b0b2[_0x2bc2c5(0xa9)]=_[_0x2bc2c5(0x132)](_0x55b28e[_0x2bc2c5(0x90)],qs['fields'](_0x3efb80['query'][_0x2bc2c5(0x10d)])),_0x48b0b2[_0x2bc2c5(0xa9)]=_0x48b0b2['attributes'][_0x2bc2c5(0xcd)]?_0x48b0b2['attributes']:_0x55b28e[_0x2bc2c5(0x90)],_0x3efb80[_0x2bc2c5(0xbc)][_0x2bc2c5(0xae)]&&(_0x48b0b2[_0x2bc2c5(0xce)]=[{'all':!![]}]),_0x48b0b2=_[_0x2bc2c5(0x6f)]({},_0x48b0b2,_0x3efb80['options']),db[_0x2bc2c5(0x7f)][_0x2bc2c5(0xd2)](_0x48b0b2)[_0x2bc2c5(0x84)](handleEntityNotFound(_0x2a27cf))['then'](function(_0x4240bc){const _0x127671=_0x2bc2c5;if(_0x4240bc){let _0x36d60b=_0x4240bc[_0x127671(0x106)]({'plain':!![]});return _0x36d60b=qs[_0x127671(0xb3)](_0x36d60b,['id',_0x127671(0x120),'updatedAt',_0x127671(0xe0)]),_0x3efb80[_0x127671(0xc7)]=_[_0x127671(0xb3)](_0x3efb80[_0x127671(0xc7)],['id',_0x127671(0x120),'updatedAt']),db[_0x127671(0x8d)][_0x127671(0xa3)](function(_0x17b134){const _0x9a1b22=_0x127671;return db[_0x9a1b22(0x7f)][_0x9a1b22(0xa1)](_[_0x9a1b22(0x6f)](_0x36d60b,_0x3efb80[_0x9a1b22(0xc7)]),{'include':_0x3efb80[_0x9a1b22(0xbc)]['includeAll']?[{'all':!![]}]:undefined,'transaction':_0x17b134})[_0x9a1b22(0x84)](function(_0x3ec634){const _0x35e9da=_0x9a1b22,_0x19d960=_0x3ec634['get']({'plain':!![]});return db[_0x35e9da(0xaa)][_0x35e9da(0x93)]({'where':{'userProfileId':_0x3efb80[_0x35e9da(0x95)]['id']},'raw':!![]})[_0x35e9da(0x84)](function(_0xab610f){const _0x382190=_0x35e9da;if(_0xab610f)return Promise[_0x382190(0xf4)](_0xab610f['map'](_0x1720b8=>{const _0x145010=_0x382190;return new Promise(function(_0x4581f,_0x10ccc7){const _0xe2197e=a799_0x454e;if(_0x1720b8[_0xe2197e(0x111)]===null||_0x1720b8[_0xe2197e(0x111)]===0x1)_0x4581f(null);return db[_0xe2197e(0xc0)][_0xe2197e(0x93)]({'where':{'sectionId':_0x1720b8['id']},'raw':!![]})[_0xe2197e(0x84)](function(_0x4cd3cd){const _0x643aed=_0xe2197e,_0x6734c0=_[_0x643aed(0xe2)](_0x4cd3cd,function(_0x116dee){const _0x13b04a=_0x643aed;return qs[_0x13b04a(0xb3)](_0x116dee,['id',_0x13b04a(0x120),_0x13b04a(0x85),_0x13b04a(0xdc)]);});_0x4581f(_0x6734c0);})[_0xe2197e(0x12a)](function(_0x33024e){_0x10ccc7(_0x33024e);});})[_0x145010(0x84)](function(_0x2c88f9){const _0x5a67f2=_0x145010,_0x190750=qs[_0x5a67f2(0xb3)](_0x1720b8,['id','createdAt',_0x5a67f2(0x85)]);_0x190750[_0x5a67f2(0xa7)]=_0x19d960['id'];if(_0x2c88f9)_0x190750['Resources']=_0x2c88f9;return _0x190750;})[_0x145010(0x84)](function(_0x59a5f9){const _0xe53ea3=_0x145010;return db['UserProfileSection'][_0xe53ea3(0xa1)](_0x59a5f9,{'include':[{'model':db[_0xe53ea3(0xc0)],'as':'Resources'}],'raw':!![],'transaction':_0x17b134});});}))['then'](function(){return _0x19d960;});});});});}})[_0x2bc2c5(0x84)](respondWithResult(_0x2a27cf,0xc9))[_0x2bc2c5(0x12a)](handleError(_0x2a27cf,null));},exports['update']=function(_0x3d4bff,_0x32a4d3){const _0x328a9e=a799_0x421759;return _0x3d4bff[_0x328a9e(0xc7)]['id']&&delete _0x3d4bff[_0x328a9e(0xc7)]['id'],db[_0x328a9e(0x7f)][_0x328a9e(0xd2)]({'where':{'id':_0x3d4bff[_0x328a9e(0x95)]['id']}})[_0x328a9e(0x84)](handleEntityNotFound(_0x32a4d3))[_0x328a9e(0x84)](saveUpdates(_0x3d4bff[_0x328a9e(0xc7)],null))['then'](respondWithResult(_0x32a4d3,null))[_0x328a9e(0x12a)](handleError(_0x32a4d3,null));},exports[a799_0x421759(0xf5)]=function(_0x8929b5,_0x456549){const _0x52bd19=a799_0x421759;return db[_0x52bd19(0x7f)][_0x52bd19(0xd2)]({'where':{'id':_0x8929b5[_0x52bd19(0x95)]['id']}})['then'](handleEntityNotFound(_0x456549))['then'](removeEntity(_0x456549,null))[_0x52bd19(0x12a)](handleError(_0x456549,null));},exports[a799_0x421759(0xe6)]=function(_0x2c6461,_0x405f94){const _0x249ec1=a799_0x421759;return db[_0x249ec1(0x7f)][_0x249ec1(0xe6)]()['then'](respondWithResult(_0x405f94,null))[_0x249ec1(0x12a)](handleError(_0x405f94,null));},exports[a799_0x421759(0xb8)]=function(_0x5439d7,_0x239f1c){const _0x190504=a799_0x421759,_0xafe575=_0x5439d7[_0x190504(0xc7)];return db[_0x190504(0x7f)]['findOne']({'where':{'id':_0x5439d7[_0x190504(0x95)]['id']}})[_0x190504(0x84)](handleEntityNotFound(_0x239f1c))[_0x190504(0x84)](function(_0x4871e5){const _0x13d317=_0x190504;if(_0x4871e5)return db[_0x13d317(0x8d)][_0x13d317(0xa3)](function(_0x3ca41b){const _0x4ca2e0=_0x13d317;return db['UserProfileSection'][_0x4ca2e0(0xf5)]({'where':{'userProfileId':_0x5439d7['params']['id'],'sectionId':_[_0x4ca2e0(0xe2)](_0xafe575,function(_0x1e55e7){return _0x1e55e7['sectionId'];})},'transaction':_0x3ca41b})[_0x4ca2e0(0x84)](function(){const _0x2ac8c5=_0x4ca2e0,_0x509939=_['map'](_0xafe575,function(_0x494564){const _0x3d8302=a799_0x454e;return _0x494564[_0x3d8302(0xa7)]=_0x5439d7[_0x3d8302(0x95)]['id'],_0x494564;}),_0x4ee8af=[];return Promise['all'](_0x509939[_0x2ac8c5(0xe2)](_0x300c20=>{const _0x493d43=_0x2ac8c5;return db[_0x493d43(0xaa)][_0x493d43(0xa1)](_0x300c20,{'include':[{'model':db['UserProfileResource'],'as':'Resources'}],'raw':!![],'transaction':_0x3ca41b})[_0x493d43(0x84)](function(_0x16f053){_0x4ee8af['push'](_0x16f053['get']({'plain':!![]}));});}))['then'](function(){return _0x4ee8af;});});});})[_0x190504(0x84)](function(_0x497cdf){return _0x497cdf;})[_0x190504(0x84)](respondWithResult(_0x239f1c,null))[_0x190504(0x12a)](handleError(_0x239f1c,null));},exports[a799_0x421759(0x81)]=function(_0x2dc6ea,_0x43e8ab){const _0x12e594=a799_0x421759;let _0x37af20;return db[_0x12e594(0x7f)][_0x12e594(0xd2)]({'where':{'id':_0x2dc6ea[_0x12e594(0x95)]['id']},'attributes':['id',_0x12e594(0xfe)]})[_0x12e594(0x84)](handleEntityNotFound(_0x43e8ab))['then'](function(_0x5c2399){const _0x5380e2=_0x12e594;if(_0x5c2399)return _0x37af20=_0x5c2399,db[_0x5380e2(0xaa)][_0x5380e2(0xf5)]({'where':{'userProfileId':_0x2dc6ea[_0x5380e2(0x95)]['id'],'sectionId':_0x2dc6ea[_0x5380e2(0xbc)][_0x5380e2(0xb6)]}});})['then'](function(){return _0x37af20;})[_0x12e594(0x84)](respondWithStatusCode(_0x43e8ab,null))[_0x12e594(0x12a)](handleError(_0x43e8ab,null));},exports[a799_0x421759(0xf8)]=function(_0x1178ea,_0x162055){const _0x22b756=a799_0x421759;let _0x1adcad=[],_0x3587f7=[];return db[_0x22b756(0xaa)]['findAll']({'where':{'userProfileId':_0x1178ea['params']['id']},'raw':!![]})[_0x22b756(0x84)](function(_0x2224f3){const _0x1e3917=_0x22b756;_0x1adcad=_[_0x1e3917(0xf3)](_0x2224f3,function(_0x4c6c59){const _0x5195ec=_0x1e3917;return _0x4c6c59[_0x5195ec(0xe5)]===0x1||_[_0x5195ec(0x131)]([0x3eb,0x709],_0x4c6c59[_0x5195ec(0xdc)]);});if(!_[_0x1e3917(0x102)](_0x1adcad))return _['map'](_0x1adcad,function(_0x2559ed){const _0x3794a0=_0x1e3917;return _0x2559ed[_0x3794a0(0xdc)];});else return;})['then'](function(_0x54fd38){const _0x5168d4=_0x22b756;if(_0x54fd38)_0x3587f7=_0x54fd38;if(_['includes'](_0x3587f7,0x64)){const _0x4b174d=_[_0x5168d4(0xd8)](_0x1adcad,{'sectionId':0x64});return hasDefaultDashboard(_0x4b174d)[_0x5168d4(0x84)](function(_0x1b07e4){const _0x55a7ed=_0x5168d4;return _[_0x55a7ed(0xe2)](_0x1adcad,function(_0x43c0a1){const _0xc7ec27=_0x55a7ed;return _0x43c0a1[_0xc7ec27(0xdc)]===0x64&&(_0x43c0a1[_0xc7ec27(0xca)]=_0x1b07e4),_0x43c0a1;});});}else return;})['then'](function(_0x51bab6){const _0x1ba93a=_0x22b756;if(_0x51bab6)_0x1adcad=_0x51bab6;if(_[_0x1ba93a(0x131)](_0x3587f7,0x3eb)){const _0x821ec6=_[_0x1ba93a(0xd8)](_0x1adcad,{'sectionId':0x3eb});return getCustomDashboards(_0x821ec6)[_0x1ba93a(0x84)](function(_0x52db05){const _0x2583b7=_0x1ba93a;return _[_0x2583b7(0xe2)](_0x1adcad,function(_0x47bd3a){const _0x5893fa=_0x2583b7;return _0x821ec6[_0x5893fa(0xe5)]?_0x47bd3a['sectionId']===0x3eb&&(_0x47bd3a['subsections']=_0x52db05):_0x47bd3a[_0x5893fa(0xdc)]===0x64&&(_0x47bd3a[_0x5893fa(0xca)]=_0x52db05),_0x47bd3a;});});}else return;})['then'](function(_0x5a726b){const _0x19936e=_0x22b756;if(_0x5a726b)_0x1adcad=_0x5a726b;if(_[_0x19936e(0x131)](_0x3587f7,0x709)){const _0x79a997=_['find'](_0x1adcad,{'sectionId':0x709});return getPlugins(_0x79a997)[_0x19936e(0x84)](function(_0x547a74){const _0x375fd6=_0x19936e;if(_0x79a997['enabled'])return _['map'](_0x1adcad,function(_0x335677){const _0x61ab75=a799_0x454e;return _0x335677['sectionId']===0x709&&(_0x335677[_0x61ab75(0xca)]=_0x547a74),_0x335677;});else{const _0x2ffcc0={'sectionId':0x76c,'enabled':0x1,'subsections':_0x547a74},_0x2a2dc8=_['map'](_0x1adcad);return _0x2a2dc8[_0x375fd6(0x125)](_0x2ffcc0),_0x2a2dc8;}});}else return;})[_0x22b756(0x84)](function(_0x107655){const _0x142dc5=_0x22b756;if(_0x107655)_0x1adcad=_0x107655;return _['filter'](_0x1adcad,[_0x142dc5(0xe5),0x1]);})[_0x22b756(0x84)](respondWithResult(_0x162055,null))[_0x22b756(0x12a)](handleError(_0x162055,null));};function hasDefaultDashboard(_0x19f427){const _0x390297=[0x65];return new Promise(function(_0x3bb0cc,_0x40e0a7){const _0x565adf=a799_0x454e;try{if(_0x19f427[_0x565adf(0x111)])_0x3bb0cc(_0x390297);else return db[_0x565adf(0xc0)]['findOne']({'where':{'sectionId':_0x19f427['id']},'raw':!![]})[_0x565adf(0x84)](function(_0x2f91d6){_0x2f91d6?_0x3bb0cc(_0x390297):_0x3bb0cc();});}catch(_0x3349f2){_0x40e0a7(_0x3349f2);}});}function getCustomDashboards(_0x184e0c){const _0x3e3283=[];return new Promise(function(_0x2d2ae3,_0x53c7da){const _0x5d1a8e=a799_0x454e;try{return _0x184e0c['autoAssociation']?db[_0x5d1a8e(0x109)][_0x5d1a8e(0x93)]({'raw':!![]})[_0x5d1a8e(0x84)](function(_0x47b1b6){const _0x545651=_0x5d1a8e;_0x47b1b6[_0x545651(0xa6)](function(_0x1634e7){const _0x4c3e40=_0x545651;_0x3e3283[_0x4c3e40(0x125)](_0x1634e7['id']+0x1869f);}),_0x2d2ae3(_0x3e3283);}):db[_0x5d1a8e(0xc0)][_0x5d1a8e(0x93)]({'where':{'sectionId':_0x184e0c['id']},'raw':!![]})[_0x5d1a8e(0x84)](function(_0x5b68f0){_0x5b68f0['forEach'](function(_0x628abd){const _0x567900=a799_0x454e;_0x3e3283[_0x567900(0x125)](_0x628abd[_0x567900(0x78)]+0x1869f);}),_0x2d2ae3(_0x3e3283);});}catch(_0x31e338){_0x53c7da(_0x31e338);}});}function getPlugins(_0x46bae3){const _0x1c9d7e=[];return new Promise(function(_0x195edb,_0x1044a5){const _0x8c8e69=a799_0x454e;try{return _0x46bae3[_0x8c8e69(0x111)]?db['Plugin'][_0x8c8e69(0x93)]({'raw':!![]})[_0x8c8e69(0x84)](function(_0x872c93){const _0x73ee5=_0x8c8e69;_0x872c93[_0x73ee5(0xa6)](function(_0x1bf343){_0x1c9d7e['push'](_0x1bf343['id']+0x15b38);}),_0x195edb(_0x1c9d7e);}):db[_0x8c8e69(0xc0)]['findAll']({'where':{'sectionId':_0x46bae3['id']},'raw':!![]})[_0x8c8e69(0x84)](function(_0x61c3dc){const _0x2ec2f4=_0x8c8e69;_0x61c3dc[_0x2ec2f4(0xa6)](function(_0x46745a){const _0x45ebf8=_0x2ec2f4;_0x1c9d7e[_0x45ebf8(0x125)](_0x46745a[_0x45ebf8(0x78)]+0x15b38);}),_0x195edb(_0x1c9d7e);});}catch(_0x4d6504){_0x1044a5(_0x4d6504);}});}exports[a799_0x421759(0xef)]=function(_0x2cf19d,_0x1539ff){const _0x21a7c1=a799_0x421759;return db[_0x21a7c1(0x7f)][_0x21a7c1(0xd2)]({'where':{'id':_0x2cf19d[_0x21a7c1(0x95)]['id']}})[_0x21a7c1(0x84)](handleEntityNotFound(_0x1539ff))[_0x21a7c1(0x84)](function(_0x45e26f){const _0x373983=_0x21a7c1;if(_0x45e26f)return db[_0x373983(0x8d)][_0x373983(0xa3)](function(_0x5b8f9b){const _0x279311=_0x373983;return db[_0x279311(0xaa)][_0x279311(0x93)]({'where':{'userProfileId':_0x2cf19d[_0x279311(0x95)]['id']},'attributes':['id'],'raw':!![]})['then'](function(_0x488467){const _0x4f50c0=_0x279311;if(_0x488467)return db[_0x4f50c0(0xaa)][_0x4f50c0(0xf5)]({'where':{'userProfileId':_0x2cf19d[_0x4f50c0(0x95)]['id'],'id':_['map'](_0x488467,function(_0x234f40){return _0x234f40['id'];})},'transaction':_0x5b8f9b});})[_0x279311(0x84)](function(){const _0x5cb956=_0x279311,_0x5e5be9=_[_0x5cb956(0xe2)](_0x2cf19d[_0x5cb956(0xc7)],function(_0x2dcab9){const _0x7fe49f=_0x5cb956;return _0x2dcab9[_0x7fe49f(0xa7)]=_0x2cf19d['params']['id'],_0x2dcab9;});return db[_0x5cb956(0xaa)][_0x5cb956(0x8f)](_0x5e5be9,{'raw':!![],'transaction':_0x5b8f9b});})[_0x279311(0x84)](function(_0x5eb1f3){const _0x59169d=_0x279311,_0x23e6c6=_[_0x59169d(0xf3)](_[_0x59169d(0xe2)](_0x5eb1f3,function(_0x493189){const _0x15289d=_0x59169d;return _0x493189[_0x15289d(0x106)]({'plain':!![]});}),{'includeAll':![]});if(_0x23e6c6)return db[_0x59169d(0xaa)][_0x59169d(0x93)]({'where':{'userProfileId':_0x2cf19d[_0x59169d(0x95)]['id'],'sectionId':_[_0x59169d(0xe2)](_0x23e6c6,function(_0x14458a){const _0x15c7d1=_0x59169d;return _0x14458a[_0x15c7d1(0xdc)];})},'attributes':['id',_0x59169d(0xdc)],'raw':!![]})[_0x59169d(0x84)](function(){const _0xfbecd7=_0x59169d,_0x2dd5d0=_[_0xfbecd7(0xe2)](_0x2cf19d[_0xfbecd7(0xc7)],function(_0x317be6){const _0x52b82c=_0xfbecd7;return _0x317be6[_0x52b82c(0xa7)]=_0x2cf19d[_0x52b82c(0x95)]['id'],_0x317be6;});return db['UserProfileResource'][_0xfbecd7(0x8f)](_0x2dd5d0,{'raw':!![],'transaction':_0x5b8f9b});});})[_0x279311(0x12a)](handleError(_0x1539ff,null));});})[_0x21a7c1(0x84)](function(){})[_0x21a7c1(0x84)](respondWithResult(_0x1539ff,null))[_0x21a7c1(0x12a)](handleError(_0x1539ff,null));},exports['removeResources']=function(_0x1f808e,_0x3996b4){const _0x5c7546=a799_0x421759;return db[_0x5c7546(0x7f)][_0x5c7546(0xd2)]({'where':{'id':_0x1f808e[_0x5c7546(0x95)]['id']}})['then'](handleEntityNotFound(_0x3996b4))[_0x5c7546(0x84)](function(_0x12eb49){const _0x171289=_0x5c7546;if(_0x12eb49)return _0x12eb49[_0x171289(0x137)](_0x1f808e['query'][_0x171289(0xb6)]);})[_0x5c7546(0x84)](respondWithStatusCode(_0x3996b4,null))['catch'](handleError(_0x3996b4,null));},exports[a799_0x421759(0xdb)]=function(_0x454a48,_0xc7ba9d){const _0x4e1c15=a799_0x421759;let _0x2bdea6={'raw':![],'where':{}};const _0x167363={},_0x486d03={'count':0x0,'rows':[]},_0x165d78=_0x454a48[_0x4e1c15(0xbc)][_0x4e1c15(0xb5)];if(typeof _0x165d78===_0x4e1c15(0xb4))throw new ValidationError('Unknown\x20section');const _0x14aa74=_0x454a48['query']['mergeResources']||![],_0x1abe05=getQueryModels(_0x165d78,_0x14aa74);if(typeof _0x1abe05[_0x4e1c15(0x70)]===_0x4e1c15(0xb4))throw new ValidationError('Invalid\x20section\x20\x27'+_0x165d78+'\x27');let _0x3cc855=[];return!_[_0x4e1c15(0x102)](_0x1abe05[_0x4e1c15(0x10b)])?_0x3cc855=_0x1abe05[_0x4e1c15(0x10b)]:_0x3cc855=[{'name':_0x165d78}],db[_0x4e1c15(0x7f)][_0x4e1c15(0xd2)]({'where':{'id':_0x454a48['params']['id']}})[_0x4e1c15(0x84)](handleEntityNotFound(_0xc7ba9d))[_0x4e1c15(0x84)](function(_0x3d652c){const _0x4bf10d=_0x4e1c15;if(_0x3d652c){const _0x5ca9cf=[];for(let _0x16ba57=0x0;_0x16ba57<_0x3cc855[_0x4bf10d(0xcd)];_0x16ba57++){_0x5ca9cf[_0x4bf10d(0x125)](db['UserProfileSection'][_0x4bf10d(0xd2)]({'where':{'userProfileId':_0x3d652c['id'],'name':_0x3cc855[_0x16ba57]['name']},'raw':!![]}));}return Promise[_0x4bf10d(0xf4)](_0x5ca9cf);}})[_0x4e1c15(0x84)](function(_0x40b2a3){const _0xeb1d49=_0x4e1c15,_0x523649=_['filter'](_0x40b2a3,function(_0x5c1d95){return _0x5c1d95?_0x5c1d95:undefined;}),_0x594f0d=_[_0xeb1d49(0xf3)](_0x3cc855,[_0xeb1d49(0x107),!![]]),_0x104fdf=_['isEmpty'](_0x523649)&&_[_0xeb1d49(0x102)](_0x594f0d)?null:_[_0xeb1d49(0x8b)](_0x594f0d,_0x523649);if(_0x104fdf){const _0x2272cc=[];for(let _0x135706=0x0;_0x135706<_0x104fdf[_0xeb1d49(0xcd)];_0x135706++){const _0x5126ea=_[_0xeb1d49(0xd8)](_0x3cc855,function(_0x71e8cd){const _0x4f5eaa=_0xeb1d49;return _0x104fdf[_0x135706]?_0x71e8cd[_0x4f5eaa(0xfe)]===_0x104fdf[_0x135706][_0x4f5eaa(0xfe)]:null;});_0x5126ea&&(_0x104fdf[_0x135706]['ignore']?_0x2272cc[_0xeb1d49(0x125)](getAllResources(_0x1abe05['childModel'],_0x104fdf[_0x135706])):!_0x104fdf[_0x135706][_0xeb1d49(0x111)]?_0x2272cc[_0xeb1d49(0x125)](getAllowedResources(_0x5126ea,_0x104fdf[_0x135706],_0x1abe05[_0xeb1d49(0x70)])):_0x5126ea['model']&&_0x2272cc[_0xeb1d49(0x125)](getAllFilteredResources(_0x5126ea,_0x104fdf[_0x135706])));}return Promise['all'](_0x2272cc);}else return null;})[_0x4e1c15(0x84)](function(_0x29ddf5){const _0x29384f=_0x4e1c15,_0x40dc60=_0x29ddf5;let _0x4bc815=null;_0x40dc60&&(_0x4bc815=_0x40dc60['length']===0x1?_0x40dc60[0x0]:null);if(_0x4bc815||_0x40dc60){const _0x3dce5b=db[_0x1abe05[_0x29384f(0x70)]][_0x29384f(0xea)];_0x167363['model']=_[_0x29384f(0xde)](_0x3dce5b),_0x167363[_0x29384f(0xbc)]=_[_0x29384f(0xde)](_0x454a48[_0x29384f(0xbc)]),_0x167363[_0x29384f(0xd1)]=_[_0x29384f(0x132)](_0x167363[_0x29384f(0x90)],_0x167363['query']),_0x2bdea6[_0x29384f(0xa9)]=_[_0x29384f(0x132)](_0x167363[_0x29384f(0x90)],qs[_0x29384f(0x10d)](_0x454a48['query'][_0x29384f(0x10d)])),_0x2bdea6['attributes']=_0x2bdea6[_0x29384f(0xa9)][_0x29384f(0xcd)]?_0x2bdea6[_0x29384f(0xa9)]:_0x167363[_0x29384f(0x90)];typeof _0x454a48[_0x29384f(0xbc)][_0x29384f(0x11d)]===_0x29384f(0xb4)&&(_0x2bdea6[_0x29384f(0x101)]=qs[_0x29384f(0x101)](_0x454a48['query'][_0x29384f(0x101)]),_0x2bdea6[_0x29384f(0xc4)]=qs[_0x29384f(0xc4)](_0x454a48['query']['offset']));_0x2bdea6[_0x29384f(0xd5)]=qs[_0x29384f(0xf9)](_0x454a48[_0x29384f(0xbc)][_0x29384f(0xf9)]),_0x2bdea6[_0x29384f(0x103)]=qs[_0x29384f(0xd1)](_['pick'](_0x454a48[_0x29384f(0xbc)],_0x167363['filters']));_0x454a48['query'][_0x29384f(0xf3)]&&(_0x2bdea6[_0x29384f(0x103)]=_['merge'](_0x2bdea6[_0x29384f(0x103)],{[Op['or']]:_[_0x29384f(0xe2)](_0x3dce5b,function(_0x1644fc){const _0x1770f3=_0x29384f;if(_0x1644fc['type'][_0x1770f3(0x99)]!==_0x1770f3(0x129)){const _0xb0de1c={};return _0xb0de1c[_0x1644fc[_0x1770f3(0x6e)]]={[Op[_0x1770f3(0x73)]]:'%'+_0x454a48[_0x1770f3(0xbc)]['filter']+'%'},_0xb0de1c;}})}));const _0x241d3e=[];if(_0x4bc815){const _0x30bc27=_['find'](_0x3cc855,[_0x29384f(0xfe),_0x4bc815['name']]);if(_0x30bc27[_0x29384f(0x6e)]){const _0x1edab6={};_0x1abe05[_0x29384f(0x70)]==='AnalyticExtractedReport'?_0x1edab6[_0x30bc27['foreignKey']]=_['map'](_0x4bc815[_0x29384f(0x7e)],'id'):_0x1edab6[_0x30bc27[_0x29384f(0x117)]]=_0x4bc815[_0x29384f(0x7e)],_0x241d3e[_0x29384f(0x125)](_0x1edab6);}else _0x2bdea6[_0x29384f(0x103)]['id']=_0x4bc815[_0x29384f(0x7e)];}else for(let _0xe9ba6=0x0;_0xe9ba6<_0x40dc60['length'];_0xe9ba6++){const _0x168020=_[_0x29384f(0xd8)](_0x3cc855,[_0x29384f(0xfe),_0x40dc60[_0xe9ba6][_0x29384f(0xfe)]]);if(_0x168020[_0x29384f(0x6e)]){const _0x4c98c0={};_0x4c98c0[_0x168020['foreignKey']]=_0x40dc60[_0xe9ba6][_0x29384f(0x7e)],_0x241d3e['push'](_0x4c98c0);}else{if(!_0x2bdea6[_0x29384f(0x103)]['id'])_0x2bdea6[_0x29384f(0x103)]['id']=[];_0x40dc60[_0xe9ba6][_0x29384f(0x7e)][_0x29384f(0xa6)](function(_0x174fd3){const _0x4ab9cb=_0x29384f;_0x2bdea6[_0x4ab9cb(0x103)]['id'][_0x4ab9cb(0x125)](_0x174fd3);});}}return!_[_0x29384f(0x102)](_0x241d3e)&&(_0x2bdea6[_0x29384f(0x103)]=_['merge'](_0x2bdea6[_0x29384f(0x103)],{[Op[_0x29384f(0xe3)]]:{[Op['or']]:_0x241d3e}})),_0x2bdea6=_['merge']({},_0x2bdea6,_0x454a48['options']),_0x4bc815&&!_0x4bc815[_0x29384f(0x111)]&&_0x1abe05[_0x29384f(0x70)]===_0x29384f(0xf1)?(_0x454a48[_0x29384f(0xbc)][_0x29384f(0xae)]&&(_0x2bdea6['include']=[{'all':!![]}]),db[_0x1abe05['childModel']]['findAll'](_0x2bdea6)['then'](function(_0x426b9c){const _0x175b9f=_0x29384f,_0x28e984=[];return _0x426b9c['forEach'](function(_0x2f5be1){const _0x5363cf=a799_0x454e;let _0x205beb;switch(_0x2f5be1[_0x5363cf(0x92)]){case _0x5363cf(0xd3):_0x205beb=_[_0x5363cf(0xd8)](_0x4bc815['associatedResources'],function(_0x3f5a00){const _0x4659d1=_0x5363cf;return _0x3f5a00['id']===_0x2f5be1[_0x4659d1(0x94)]&&_0x3f5a00[_0x4659d1(0xbe)]==='DefaultReports';});break;case'custom':_0x205beb=_[_0x5363cf(0xd8)](_0x4bc815[_0x5363cf(0x7e)],function(_0x6dbdc7){const _0x385648=_0x5363cf;return _0x6dbdc7['id']===_0x2f5be1[_0x385648(0x94)]&&_0x6dbdc7['type']===_0x385648(0x9a);});break;}if(_0x205beb)_0x28e984['push'](_0x2f5be1);}),_0x486d03[_0x175b9f(0xee)]=_0x28e984[_0x175b9f(0xcd)],_0x486d03[_0x175b9f(0x91)]=_0x28e984,_0x486d03;})):db[_0x1abe05['childModel']][_0x29384f(0xee)]({'where':_0x2bdea6[_0x29384f(0x103)]})[_0x29384f(0x84)](function(_0x2b3a8a){const _0x2ff416=_0x29384f;return _0x486d03[_0x2ff416(0xee)]=_0x2b3a8a,_0x454a48[_0x2ff416(0xbc)][_0x2ff416(0xae)]&&(_0x1abe05['childModel']===_0x2ff416(0x110)?_0x2bdea6[_0x2ff416(0xce)]=[{'model':db[_0x2ff416(0xda)],'as':_0x2ff416(0xdf),'attributes':['id',_0x2ff416(0xfe),'color'],'required':_0x454a48[_0x2ff416(0xbc)]['tag']?!![]:![]},{'model':db[_0x2ff416(0xda)],'as':_0x2ff416(0x113),'attributes':['id','name',_0x2ff416(0x7c)],'through':_0x454a48[_0x2ff416(0xbc)][_0x2ff416(0xc2)]?{'attributes':[],'where':{'TagId':_0x454a48[_0x2ff416(0xbc)][_0x2ff416(0xc2)]||undefined}}:{},'required':_0x454a48['query']['tag']?!![]:![]}]:_0x2bdea6[_0x2ff416(0xce)]=[{'all':!![]}]),db[_0x1abe05[_0x2ff416(0x70)]][_0x2ff416(0x93)](_0x2bdea6);})[_0x29384f(0x84)](function(_0x10591a){const _0x772df4=_0x29384f;return _0x486d03[_0x772df4(0x91)]=_0x10591a,_0x486d03;});}else return _0x486d03;})[_0x4e1c15(0x84)](respondWithFilteredResult(_0xc7ba9d,_0x2bdea6))[_0x4e1c15(0x12a)](handleError(_0xc7ba9d,null));};function getAllResources(_0x4b714d,_0x5f4769){return new Promise(function(_0x210e27,_0x45c531){const _0x28e70a=a799_0x454e;if(_0x5f4769){const _0x4898d9=_0x5f4769[_0x28e70a(0xf3)]?{[_0x5f4769[_0x28e70a(0xf3)]['field']]:_0x5f4769[_0x28e70a(0xf3)]['value']}:undefined;return db[_0x4b714d]['findAll']({'where':_0x4898d9,'raw':!![]})['then'](function(_0x556cb8){const _0x422b7f=_0x28e70a;_0x5f4769[_0x422b7f(0x7e)]=_[_0x422b7f(0xe2)](_0x556cb8,'id'),_0x210e27(_0x5f4769);})[_0x28e70a(0x12a)](function(_0x1e3f41){_0x45c531(_0x1e3f41);});}else _0x210e27(null);});}function getAllFilteredResources(_0x27be44,_0x3dba56){return new Promise(function(_0x5b6f10,_0x147c8f){const _0x33e218=a799_0x454e,_0x260cd1=_0x27be44['filter']?{[_0x27be44['filter']['field']]:_0x27be44[_0x33e218(0xf3)][_0x33e218(0xc9)]}:undefined;return db[_0x27be44[_0x33e218(0x90)]]['findAll']({'where':_0x260cd1,'raw':!![]})[_0x33e218(0x84)](function(_0x1a1c8b){const _0x103679=_0x33e218;_0x3dba56[_0x103679(0x7e)]=_[_0x103679(0xe2)](_0x1a1c8b,function(_0x7f63d0){const _0x2e0048=_0x103679;return _0x7f63d0[_0x2e0048(0xfe)];}),_0x5b6f10(_0x3dba56);})['catch'](function(_0x1e509e){_0x147c8f(_0x1e509e);});});}function getAllowedResources(_0x38c23c,_0x30a3a9,_0x5cf9fb){return new Promise(function(_0x53ab69,_0x1ceb3c){const _0x216937=a799_0x454e;if(_0x30a3a9)return db[_0x216937(0xc0)][_0x216937(0x93)]({'where':{'sectionId':_0x30a3a9['id']},'raw':!![]})['then'](function(_0x5215f1){const _0x6ba4ec=_0x216937;_0x38c23c['field']&&_0x38c23c[_0x6ba4ec(0x6e)]!=='id'?_0x30a3a9[_0x6ba4ec(0x7e)]=_['map'](_0x5215f1,function(_0x5050ce){const _0x46b7f6=_0x6ba4ec;return _0x5050ce[_0x38c23c[_0x46b7f6(0x6e)]];}):_0x5cf9fb===_0x6ba4ec(0xf1)?_0x30a3a9['associatedResources']=_[_0x6ba4ec(0xe2)](_0x5215f1,function(_0x4f7ac4){const _0x149bf3=_0x6ba4ec;return{'id':_0x4f7ac4[_0x149bf3(0x78)],'type':_0x4f7ac4[_0x149bf3(0xbe)]};}):_0x30a3a9[_0x6ba4ec(0x7e)]=_[_0x6ba4ec(0xe2)](_0x5215f1,function(_0x345ddd){const _0x538e20=_0x6ba4ec;return _0x345ddd[_0x538e20(0x78)];}),_0x53ab69(_0x30a3a9);})[_0x216937(0x12a)](function(_0x2a1073){_0x1ceb3c(_0x2a1073);});else _0x53ab69(null);});}function getQueryModels(_0x4dd57d,_0x32e873){const _0x47a2bf=a799_0x421759,_0xbb1cfc=_0x4dd57d[_0x47a2bf(0x10c)](),_0x2dcbe9={'childModel':undefined,'parentSections':[]};switch(_0xbb1cfc){case _0x47a2bf(0xc1):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0xdd);break;case _0x47a2bf(0xa0):_0x2dcbe9[_0x47a2bf(0x70)]='SquareOdbc';break;case'squarerecordings':_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0x121),_0x2dcbe9[_0x47a2bf(0x10b)]=[{'name':_0x47a2bf(0xbb),'field':_0x47a2bf(0xfe),'foreignKey':_0x47a2bf(0x104)}];break;case _0x47a2bf(0xe8):_0x2dcbe9['childModel']=_0x47a2bf(0xfd);break;case _0x47a2bf(0xaf):_0x2dcbe9[_0x47a2bf(0x70)]='CmContact',_0x2dcbe9['parentSections']=[{'name':'Lists','field':'id','foreignKey':_0x47a2bf(0x122)}];break;case'lists':_0x2dcbe9[_0x47a2bf(0x70)]='CmList';break;case _0x47a2bf(0x138):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0x8e);break;case _0x47a2bf(0xc3):_0x2dcbe9['childModel']=_0x47a2bf(0x118);break;case _0x47a2bf(0xad):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0x133);break;case _0x47a2bf(0x82):_0x2dcbe9['childModel']='ChatWebsite';break;case _0x47a2bf(0xbd):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0xe9);break;case'faxaccounts':_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0xff);break;case _0x47a2bf(0xb7):case _0x47a2bf(0x88):case _0x47a2bf(0xbf):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0x12f);break;case _0x47a2bf(0x128):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0x72);break;case _0x47a2bf(0x123):_0x2dcbe9[_0x47a2bf(0x70)]='VoiceMail';break;case _0x47a2bf(0xed):_0x2dcbe9[_0x47a2bf(0x70)]='VoiceRecording',_0x2dcbe9[_0x47a2bf(0x10b)]=[{'name':_0x47a2bf(0xcf),'field':_0x47a2bf(0xfe),'foreignKey':_0x47a2bf(0x98),'model':_0x47a2bf(0x87),'filter':{'field':_0x47a2bf(0x115),'value':[_0x47a2bf(0xd0)]}},{'name':_0x47a2bf(0x74),'field':_0x47a2bf(0xfe),'foreignKey':_0x47a2bf(0x98),'model':'User','filter':{'field':_0x47a2bf(0x115),'value':[_0x47a2bf(0xa8)]}},{'name':_0x47a2bf(0xe1),'field':'name','foreignKey':_0x47a2bf(0xec),'model':'VoiceQueue','filter':{'field':_0x47a2bf(0xbe),'value':[_0x47a2bf(0x136)]}},{'name':_0x47a2bf(0x9d),'field':_0x47a2bf(0xfe),'foreignKey':'queue','model':_0x47a2bf(0x7b),'filter':{'field':_0x47a2bf(0xbe),'value':['outbound']}}];break;case _0x47a2bf(0x12e):_0x2dcbe9[_0x47a2bf(0x70)]='VoiceMusicOnHold';break;case _0x47a2bf(0xc8):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0xd6);break;case _0x47a2bf(0xd4):_0x2dcbe9[_0x47a2bf(0x70)]='VoicePrefix';break;case _0x47a2bf(0xac):_0x2dcbe9['childModel']='Campaign';break;case _0x47a2bf(0x80):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0x11c);break;case'mailaccounts':_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0xf2);break;case _0x47a2bf(0xa2):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0xcb);break;case _0x47a2bf(0x71):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0x114);break;case _0x47a2bf(0x11a):_0x2dcbe9['childModel']='OpenchannelAccount';break;case _0x47a2bf(0x77):_0x2dcbe9['childModel']=_0x47a2bf(0x124);break;case _0x47a2bf(0x10f):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0xc5);break;case _0x47a2bf(0x7d):_0x2dcbe9['childModel']=_0x47a2bf(0x100);break;case _0x47a2bf(0x97):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0xf6);break;case _0x47a2bf(0x126):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0xb9);break;case _0x47a2bf(0xfa):case'queuecampaigns':_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0x7b);_0x32e873&&(_0x2dcbe9['parentSections']=[{'name':_0x47a2bf(0xe1)},{'name':'QueueCampaigns'}]);break;case'users':case _0x47a2bf(0x105):case'telephones':_0x2dcbe9[_0x47a2bf(0x70)]='User';_0x32e873&&(_0x2dcbe9['parentSections']=[{'name':'Users','filter':{'field':_0x47a2bf(0x115),'value':['admin','user']},'ignore':!![]},{'name':_0x47a2bf(0xcf)},{'name':_0x47a2bf(0x74)}]);break;case _0x47a2bf(0xd9):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0xf0);break;case'salesforceaccounts':_0x2dcbe9['childModel']=_0x47a2bf(0x127);break;case _0x47a2bf(0x130):_0x2dcbe9['childModel']=_0x47a2bf(0xab);break;case _0x47a2bf(0x9e):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0xd7);break;case _0x47a2bf(0xba):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0x11e);break;case _0x47a2bf(0xb2):_0x2dcbe9[_0x47a2bf(0x70)]='ZohoAccount';break;case _0x47a2bf(0x12d):_0x2dcbe9['childModel']=_0x47a2bf(0x87);break;case _0x47a2bf(0xf7):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0x11f);break;case'dispositions':_0x2dcbe9['childModel']=_0x47a2bf(0x79);break;case _0x47a2bf(0x135):_0x2dcbe9['childModel']=_0x47a2bf(0x109);break;case _0x47a2bf(0x112):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0x86);break;case'pauses':_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0x8a);break;case'scheduler':_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0x108);break;case _0x47a2bf(0x96):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0x83);break;case'tags':_0x2dcbe9[_0x47a2bf(0x70)]='Tag';break;case _0x47a2bf(0xc6):_0x2dcbe9[_0x47a2bf(0x70)]='Template';break;case'triggers':_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0x10a);break;case _0x47a2bf(0x75):_0x2dcbe9[_0x47a2bf(0x70)]='Trunk';break;case'variables':_0x2dcbe9['childModel']=_0x47a2bf(0x12b);break;case _0x47a2bf(0xe7):_0x2dcbe9[_0x47a2bf(0x70)]=_0x47a2bf(0xb1);break;case _0x47a2bf(0xfb):_0x2dcbe9['childModel']=_0x47a2bf(0xf1),_0x2dcbe9[_0x47a2bf(0x10b)]=[{'name':_0x47a2bf(0x9f),'field':'id','foreignKey':'reportId'}];break;case _0x47a2bf(0x11b):_0x2dcbe9[_0x47a2bf(0x70)]='AnalyticMetric';break;default:return _0x2dcbe9;}return _0x2dcbe9;} \ No newline at end of file diff --git a/server/api/userProfile/userProfile.events.js b/server/api/userProfile/userProfile.events.js index 9c8e818..361c60e 100644 --- a/server/api/userProfile/userProfile.events.js +++ b/server/api/userProfile/userProfile.events.js @@ -1 +1 @@ -const a800_0x1b37=['addHook','remove','events','UserProfile','emit','update','setMaxListeners','../../mysqldb','exports','undefined'];(function(_0x37742d,_0x1b55fb){const _0x1b37c7=function(_0x3cb95f){while(--_0x3cb95f){_0x37742d['push'](_0x37742d['shift']());}};_0x1b37c7(++_0x1b55fb);}(a800_0x1b37,0x1df));const a800_0x3cb9=function(_0x37742d,_0x1b55fb){_0x37742d=_0x37742d-0x15a;let _0x1b37c7=a800_0x1b37[_0x37742d];return _0x1b37c7;};const a800_0x2a5839=a800_0x3cb9;'use strict';const EventEmitter=require(a800_0x2a5839(0x15d)),UserProfile=require(a800_0x2a5839(0x162))['db'][a800_0x2a5839(0x15e)],UserProfileEvents=new EventEmitter();UserProfileEvents[a800_0x2a5839(0x161)](0x0);const events={'afterCreate':'save','afterUpdate':a800_0x2a5839(0x160),'afterDestroy':a800_0x2a5839(0x15c)};function emitEvent(_0x4559dc){return function(_0x495b8c){const _0x4d30c0=a800_0x3cb9;UserProfileEvents[_0x4d30c0(0x15f)](_0x4559dc+':'+_0x495b8c['id'],_0x495b8c),UserProfileEvents[_0x4d30c0(0x15f)](_0x4559dc,_0x495b8c);};}for(const e in events){if(typeof events[e]!==a800_0x2a5839(0x15a)){const event=events[e];UserProfile[a800_0x2a5839(0x15b)](e,emitEvent(event));}}module[a800_0x2a5839(0x163)]=UserProfileEvents; \ No newline at end of file +const a800_0xb986=['addHook','update','save','undefined','emit','setMaxListeners','UserProfile','remove'];(function(_0x780376,_0x4f1556){const _0xb986e5=function(_0x388f65){while(--_0x388f65){_0x780376['push'](_0x780376['shift']());}};_0xb986e5(++_0x4f1556);}(a800_0xb986,0x1bf));const a800_0x388f=function(_0x780376,_0x4f1556){_0x780376=_0x780376-0x1e8;let _0xb986e5=a800_0xb986[_0x780376];return _0xb986e5;};const a800_0x1e4524=a800_0x388f;'use strict';const EventEmitter=require('events'),UserProfile=require('../../mysqldb')['db'][a800_0x1e4524(0x1ef)],UserProfileEvents=new EventEmitter();UserProfileEvents[a800_0x1e4524(0x1ee)](0x0);const events={'afterCreate':a800_0x1e4524(0x1eb),'afterUpdate':a800_0x1e4524(0x1ea),'afterDestroy':a800_0x1e4524(0x1e8)};function emitEvent(_0x53c335){return function(_0x37defe){const _0x59853d=a800_0x388f;UserProfileEvents['emit'](_0x53c335+':'+_0x37defe['id'],_0x37defe),UserProfileEvents[_0x59853d(0x1ed)](_0x53c335,_0x37defe);};}for(const e in events){if(typeof events[e]!==a800_0x1e4524(0x1ec)){const event=events[e];UserProfile[a800_0x1e4524(0x1e9)](e,emitEvent(event));}}module['exports']=UserProfileEvents; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.model.js b/server/api/userProfile/userProfile.model.js index 7b7c06d..6b7f579 100644 --- a/server/api/userProfile/userProfile.model.js +++ b/server/api/userProfile/userProfile.model.js @@ -1 +1 @@ -const a801_0x6a12=['function','init','exports','./userProfile.options','./userProfile.attributes','sequelize'];(function(_0x2c7f1c,_0x4dd721){const _0x6a12f=function(_0x366d12){while(--_0x366d12){_0x2c7f1c['push'](_0x2c7f1c['shift']());}};_0x6a12f(++_0x4dd721);}(a801_0x6a12,0xca));const a801_0x366d=function(_0x2c7f1c,_0x4dd721){_0x2c7f1c=_0x2c7f1c-0x1ac;let _0x6a12f=a801_0x6a12[_0x2c7f1c];return _0x6a12f;};const a801_0x481d1a=a801_0x366d;'use strict';const {Model}=require(a801_0x481d1a(0x1ad)),{attributes}=require(a801_0x481d1a(0x1ac)),{options}=require(a801_0x481d1a(0x1b1));class UserProfile extends Model{}function init(_0x3d2b2a,_0x48a745){const _0x19363a=a801_0x481d1a,_0x103276=options(_0x3d2b2a),_0xef32ba=typeof _0x48a745===_0x19363a(0x1ae)?_0x48a745(_0x103276):_0x103276;return UserProfile[_0x19363a(0x1af)](attributes,_0xef32ba),UserProfile;}module['exports']['UserProfile']=UserProfile,module[a801_0x481d1a(0x1b0)][a801_0x481d1a(0x1af)]=init; \ No newline at end of file +const a801_0x12b3=['init','UserProfile','function','./userProfile.attributes','exports'];(function(_0x25bdea,_0x34874b){const _0x12b3d7=function(_0x366cb5){while(--_0x366cb5){_0x25bdea['push'](_0x25bdea['shift']());}};_0x12b3d7(++_0x34874b);}(a801_0x12b3,0x132));const a801_0x366c=function(_0x25bdea,_0x34874b){_0x25bdea=_0x25bdea-0xb3;let _0x12b3d7=a801_0x12b3[_0x25bdea];return _0x12b3d7;};const a801_0x9a3cfc=a801_0x366c;'use strict';const {Model}=require('sequelize'),{attributes}=require(a801_0x9a3cfc(0xb5)),{options}=require('./userProfile.options');class UserProfile extends Model{}function init(_0x381c02,_0xe91384){const _0x240fc7=a801_0x9a3cfc,_0x5d151d=options(_0x381c02),_0x38afde=typeof _0xe91384===_0x240fc7(0xb4)?_0xe91384(_0x5d151d):_0x5d151d;return UserProfile[_0x240fc7(0xb7)](attributes,_0x38afde),UserProfile;}module['exports'][a801_0x9a3cfc(0xb3)]=UserProfile,module[a801_0x9a3cfc(0xb6)][a801_0x9a3cfc(0xb7)]=init; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.options.js b/server/api/userProfile/userProfile.options.js index 3f07815..02770cb 100644 --- a/server/api/userProfile/userProfile.options.js +++ b/server/api/userProfile/userProfile.options.js @@ -1 +1 @@ -var a802_0x503c=['user_profiles','options','exports'];(function(_0x4d5b23,_0x5add8c){var _0x503cb2=function(_0x5de694){while(--_0x5de694){_0x4d5b23['push'](_0x4d5b23['shift']());}};_0x503cb2(++_0x5add8c);}(a802_0x503c,0x1b6));var a802_0x5de6=function(_0x4d5b23,_0x5add8c){_0x4d5b23=_0x4d5b23-0x9a;var _0x503cb2=a802_0x503c[_0x4d5b23];return _0x503cb2;};var a802_0x2e5a1d=a802_0x5de6;function options(_0x50d231){var _0xd26d96=a802_0x5de6;return{'sequelize':_0x50d231,'tableName':_0xd26d96(0x9a),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a802_0x2e5a1d(0x9c)][a802_0x2e5a1d(0x9b)]=options; \ No newline at end of file +var a802_0x36fe=['exports','user_profiles'];(function(_0x5a6237,_0x2f4e7c){var _0x36fe7f=function(_0x2cdf13){while(--_0x2cdf13){_0x5a6237['push'](_0x5a6237['shift']());}};_0x36fe7f(++_0x2f4e7c);}(a802_0x36fe,0x14f));var a802_0x2cdf=function(_0x5a6237,_0x2f4e7c){_0x5a6237=_0x5a6237-0xe9;var _0x36fe7f=a802_0x36fe[_0x5a6237];return _0x36fe7f;};var a802_0x5cbd1d=a802_0x2cdf;function options(_0xe40d49){var _0x3f781d=a802_0x2cdf;return{'sequelize':_0xe40d49,'tableName':_0x3f781d(0xe9),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a802_0x5cbd1d(0xea)]['options']=options; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.rpc.js b/server/api/userProfile/userProfile.rpc.js index d28a255..47993f3 100644 --- a/server/api/userProfile/userProfile.rpc.js +++ b/server/api/userProfile/userProfile.rpc.js @@ -1 +1 @@ -const a803_0x5c5f=['../../rediscache'];(function(_0x2380f4,_0x39869f){const _0x5c5f96=function(_0x4b6613){while(--_0x4b6613){_0x2380f4['push'](_0x2380f4['shift']());}};_0x5c5f96(++_0x39869f);}(a803_0x5c5f,0x18a));const a803_0x4b66=function(_0x2380f4,_0x39869f){_0x2380f4=_0x2380f4-0x1c7;let _0x5c5f96=a803_0x5c5f[_0x2380f4];return _0x5c5f96;};const a803_0x4ed267=a803_0x4b66;'use strict';const {getSocket}=require(a803_0x4ed267(0x1c7)),socket=getSocket();require('./userProfile.socket')['register'](socket); \ No newline at end of file +const a803_0x3d1b=['../../rediscache'];(function(_0x3a326f,_0x18d7fe){const _0x3d1bc3=function(_0x4fe0f5){while(--_0x4fe0f5){_0x3a326f['push'](_0x3a326f['shift']());}};_0x3d1bc3(++_0x18d7fe);}(a803_0x3d1b,0xf4));const a803_0x4fe0=function(_0x3a326f,_0x18d7fe){_0x3a326f=_0x3a326f-0x72;let _0x3d1bc3=a803_0x3d1b[_0x3a326f];return _0x3d1bc3;};const a803_0x31715d=a803_0x4fe0;'use strict';const {getSocket}=require(a803_0x31715d(0x72)),socket=getSocket();require('./userProfile.socket')['register'](socket); \ No newline at end of file diff --git a/server/api/userProfile/userProfile.socket.js b/server/api/userProfile/userProfile.socket.js index 1207c8b..2c979b8 100644 --- a/server/api/userProfile/userProfile.socket.js +++ b/server/api/userProfile/userProfile.socket.js @@ -1 +1 @@ -const a804_0x347b=['save','./userProfile.events','userProfile:','remove','register','length','update'];(function(_0x432764,_0x17d572){const _0x347bf0=function(_0x3d35eb){while(--_0x3d35eb){_0x432764['push'](_0x432764['shift']());}};_0x347bf0(++_0x17d572);}(a804_0x347b,0x1e9));const a804_0x3d35=function(_0x432764,_0x17d572){_0x432764=_0x432764-0x84;let _0x347bf0=a804_0x347b[_0x432764];return _0x347bf0;};const a804_0x2e6fdf=a804_0x3d35;'use strict';const UserProfileEvents=require(a804_0x2e6fdf(0x86)),events=[a804_0x2e6fdf(0x85),a804_0x2e6fdf(0x88),a804_0x2e6fdf(0x84)];function createListener(_0x4ae64f,_0x413fa8){return function(_0x5c5f79){_0x413fa8['emit'](_0x4ae64f,_0x5c5f79);};}exports[a804_0x2e6fdf(0x89)]=function(_0x5598a7){const _0x36b988=a804_0x2e6fdf;for(let _0x4bdfbc=0x0,_0x5bfc72=events[_0x36b988(0x8a)];_0x4bdfbc<_0x5bfc72;_0x4bdfbc++){const _0x4b698c=events[_0x4bdfbc],_0x55854c=createListener(_0x36b988(0x87)+_0x4b698c,_0x5598a7);UserProfileEvents['on'](_0x4b698c,_0x55854c);}}; \ No newline at end of file +const a804_0x187e=['./userProfile.events','remove','register','emit','update'];(function(_0x49b6bc,_0x10ddd7){const _0x187ee7=function(_0x988f2f){while(--_0x988f2f){_0x49b6bc['push'](_0x49b6bc['shift']());}};_0x187ee7(++_0x10ddd7);}(a804_0x187e,0x157));const a804_0x988f=function(_0x49b6bc,_0x10ddd7){_0x49b6bc=_0x49b6bc-0x1d7;let _0x187ee7=a804_0x187e[_0x49b6bc];return _0x187ee7;};const a804_0x188486=a804_0x988f;'use strict';const UserProfileEvents=require(a804_0x188486(0x1d9)),events=['save',a804_0x188486(0x1da),a804_0x188486(0x1d8)];function createListener(_0x1cbbe7,_0x318f5b){return function(_0x168fe8){const _0x188b4f=a804_0x988f;_0x318f5b[_0x188b4f(0x1d7)](_0x1cbbe7,_0x168fe8);};}exports[a804_0x188486(0x1db)]=function(_0x492e3d){for(let _0x3b69d2=0x0,_0x23c5f4=events['length'];_0x3b69d2<_0x23c5f4;_0x3b69d2++){const _0x3ccca2=events[_0x3b69d2],_0x393972=createListener('userProfile:'+_0x3ccca2,_0x492e3d);UserProfileEvents['on'](_0x3ccca2,_0x393972);}}; \ No newline at end of file diff --git a/server/api/userProfileResource/index.js b/server/api/userProfileResource/index.js index d455eb2..74dc9ca 100644 --- a/server/api/userProfileResource/index.js +++ b/server/api/userProfileResource/index.js @@ -1 +1 @@ -const a805_0x5b96=['exports','put','isAuthenticated','post','index','delete','/:id','../../components/auth/service','create','Router','show','express','destroy'];(function(_0x1db80e,_0x2a91d2){const _0x5b9630=function(_0x2af365){while(--_0x2af365){_0x1db80e['push'](_0x1db80e['shift']());}};_0x5b9630(++_0x2a91d2);}(a805_0x5b96,0x1de));const a805_0x2af3=function(_0x1db80e,_0x2a91d2){_0x1db80e=_0x1db80e-0x150;let _0x5b9630=a805_0x5b96[_0x1db80e];return _0x5b9630;};const a805_0x4439e8=a805_0x2af3;'use strict';const express=require(a805_0x4439e8(0x151)),router=express[a805_0x4439e8(0x15c)](),auth=require(a805_0x4439e8(0x15a)),controller=require('./userProfileResource.controller');router['get']('/',auth[a805_0x4439e8(0x155)](),controller[a805_0x4439e8(0x157)]),router['get']('/describe',auth[a805_0x4439e8(0x155)](),controller['describe']),router['get'](a805_0x4439e8(0x159),auth[a805_0x4439e8(0x155)](),controller[a805_0x4439e8(0x150)]),router[a805_0x4439e8(0x156)]('/',auth['isAuthenticated'](),controller[a805_0x4439e8(0x15b)]),router[a805_0x4439e8(0x154)](a805_0x4439e8(0x159),auth[a805_0x4439e8(0x155)](),controller['update']),router[a805_0x4439e8(0x158)](a805_0x4439e8(0x159),auth[a805_0x4439e8(0x155)](),controller[a805_0x4439e8(0x152)]),module[a805_0x4439e8(0x153)]=router; \ No newline at end of file +const a805_0x2f45=['exports','create','../../components/auth/service','/describe','isAuthenticated','update','express','destroy','index','/:id','./userProfileResource.controller','Router','describe','get','post'];(function(_0x44d833,_0x2de534){const _0x2f4527=function(_0x5961aa){while(--_0x5961aa){_0x44d833['push'](_0x44d833['shift']());}};_0x2f4527(++_0x2de534);}(a805_0x2f45,0x1d6));const a805_0x5961=function(_0x44d833,_0x2de534){_0x44d833=_0x44d833-0x8f;let _0x2f4527=a805_0x2f45[_0x44d833];return _0x2f4527;};const a805_0x504f4f=a805_0x5961;'use strict';const express=require(a805_0x504f4f(0x90)),router=express[a805_0x504f4f(0x95)](),auth=require(a805_0x504f4f(0x9b)),controller=require(a805_0x504f4f(0x94));router[a805_0x504f4f(0x97)]('/',auth[a805_0x504f4f(0x9d)](),controller[a805_0x504f4f(0x92)]),router[a805_0x504f4f(0x97)](a805_0x504f4f(0x9c),auth['isAuthenticated'](),controller[a805_0x504f4f(0x96)]),router[a805_0x504f4f(0x97)](a805_0x504f4f(0x93),auth[a805_0x504f4f(0x9d)](),controller['show']),router[a805_0x504f4f(0x98)]('/',auth[a805_0x504f4f(0x9d)](),controller[a805_0x504f4f(0x9a)]),router['put']('/:id',auth[a805_0x504f4f(0x9d)](),controller[a805_0x504f4f(0x8f)]),router['delete'](a805_0x504f4f(0x93),auth[a805_0x504f4f(0x9d)](),controller[a805_0x504f4f(0x91)]),module[a805_0x504f4f(0x99)]=router; \ No newline at end of file diff --git a/server/api/userProfileResource/userProfileResource.attributes.js b/server/api/userProfileResource/userProfileResource.attributes.js index 12a9dd5..33b2169 100644 --- a/server/api/userProfileResource/userProfileResource.attributes.js +++ b/server/api/userProfileResource/userProfileResource.attributes.js @@ -1 +1 @@ -const a806_0x532f=['STRING','attributes','exports','INTEGER','sequelize'];(function(_0x80b81f,_0x20c01c){const _0x532faf=function(_0x114845){while(--_0x114845){_0x80b81f['push'](_0x80b81f['shift']());}};_0x532faf(++_0x20c01c);}(a806_0x532f,0xbc));const a806_0x1148=function(_0x80b81f,_0x20c01c){_0x80b81f=_0x80b81f-0x10d;let _0x532faf=a806_0x532f[_0x80b81f];return _0x532faf;};const a806_0x3c464a=a806_0x1148;'use strict';const {DataTypes}=require(a806_0x3c464a(0x10e)),attributes={'name':{'type':DataTypes[a806_0x3c464a(0x10f)],'allowNull':![]},'resourceId':{'type':DataTypes[a806_0x3c464a(0x10d)],'allowNull':![]},'type':{'type':DataTypes[a806_0x3c464a(0x10f)],'allowNull':![]}};module[a806_0x3c464a(0x111)][a806_0x3c464a(0x110)]=attributes; \ No newline at end of file +const a806_0x1821=['attributes','sequelize','exports','INTEGER'];(function(_0x204227,_0x433d08){const _0x182114=function(_0x586e22){while(--_0x586e22){_0x204227['push'](_0x204227['shift']());}};_0x182114(++_0x433d08);}(a806_0x1821,0xdf));const a806_0x586e=function(_0x204227,_0x433d08){_0x204227=_0x204227-0x9d;let _0x182114=a806_0x1821[_0x204227];return _0x182114;};const a806_0x3d25a8=a806_0x586e;'use strict';const {DataTypes}=require(a806_0x3d25a8(0x9f)),attributes={'name':{'type':DataTypes['STRING'],'allowNull':![]},'resourceId':{'type':DataTypes[a806_0x3d25a8(0x9d)],'allowNull':![]},'type':{'type':DataTypes['STRING'],'allowNull':![]}};module[a806_0x3d25a8(0xa0)][a806_0x3d25a8(0x9e)]=attributes; \ No newline at end of file diff --git a/server/api/userProfileResource/userProfileResource.controller.js b/server/api/userProfileResource/userProfileResource.controller.js index a2f654b..e258fc7 100644 --- a/server/api/userProfileResource/userProfileResource.controller.js +++ b/server/api/userProfileResource/userProfileResource.controller.js @@ -1 +1 @@ -const a807_0x5364=['describe','sendStatus','create','type','where','status','set','intersection','sort','nolimit','index','like','fields','catch','then','filters','key','map','destroy','attributes','json','limit','../../config/logger','rawAttributes','send','merge','filter','length','show','includeAll','api','params','error','body','model','lodash','VIRTUAL','offset','count','options','findOne','name','query','findAll','UserProfileResource','Content-Range','include','fieldName','keys','undefined','rows','update'];(function(_0x2d8845,_0x58f1a9){const _0x536488=function(_0xb0c4f1){while(--_0xb0c4f1){_0x2d8845['push'](_0x2d8845['shift']());}};_0x536488(++_0x58f1a9);}(a807_0x5364,0x183));const a807_0xb0c4=function(_0x2d8845,_0x58f1a9){_0x2d8845=_0x2d8845-0x199;let _0x536488=a807_0x5364[_0x2d8845];return _0x536488;};const a807_0x2316ad=a807_0xb0c4;'use strict';const _=require(a807_0x2316ad(0x1a5)),qs=require('../../components/parsers/qs'),logger=require(a807_0x2316ad(0x1cc))(a807_0x2316ad(0x1a0)),{db}=require('../../mysqldb'),{Op}=require('sequelize');function respondWithResult(_0x37f9dd,_0x1d917a){return _0x1d917a=_0x1d917a||0xc8,function(_0x482880){const _0x10410c=a807_0xb0c4;if(_0x482880)return _0x37f9dd[_0x10410c(0x1bb)](_0x1d917a)['json'](_0x482880);};}function respondWithFilteredResult(_0xca9462,_0x316850){return function(_0x4b2d23){const _0x2dbcc3=a807_0xb0c4;if(_0x4b2d23){const _0x57a0ec=_0x4b2d23['count'],_0x55ffd5=_0x316850[_0x2dbcc3(0x1a7)];let _0x5f3ef6=_0x316850[_0x2dbcc3(0x1a7)]+_0x316850[_0x2dbcc3(0x1cb)],_0x4243f7;return _0x5f3ef6>=_0x57a0ec?(_0x5f3ef6=_0x57a0ec,_0x4243f7=0xc8):_0x4243f7=0xce,_0xca9462[_0x2dbcc3(0x1bb)](_0x4243f7),_0xca9462[_0x2dbcc3(0x1bc)](_0x2dbcc3(0x1af),_0x55ffd5+'-'+_0x5f3ef6+'/'+_0x57a0ec)[_0x2dbcc3(0x1ca)](_0x4b2d23);}return null;};}function saveUpdates(_0x573a99){return function(_0x44a4dc){const _0x124fb4=a807_0xb0c4;if(_0x44a4dc)return _0x44a4dc[_0x124fb4(0x1b5)](_0x573a99)[_0x124fb4(0x1c4)](function(_0x578917){return _0x578917;});return null;};}function removeEntity(_0x17f530){return function(_0x3219f8){const _0xb1edce=a807_0xb0c4;if(_0x3219f8)return _0x3219f8['destroy']()[_0xb1edce(0x1c4)](function(){const _0x1a0abc=_0xb1edce;_0x17f530[_0x1a0abc(0x1bb)](0xcc)['end']();});};}function handleEntityNotFound(_0xe2aad0){return function(_0x5f4324){const _0x417982=a807_0xb0c4;return!_0x5f4324&&_0xe2aad0[_0x417982(0x1b7)](0x194),_0x5f4324;};}function handleError(_0x30683c,_0x33ca2a){return _0x33ca2a=_0x33ca2a||0x1f4,function(_0x3f33dc){const _0x52a103=a807_0xb0c4;logger[_0x52a103(0x1a2)](_0x3f33dc['stack']),_0x3f33dc[_0x52a103(0x1ab)]&&delete _0x3f33dc[_0x52a103(0x1ab)],_0x30683c[_0x52a103(0x1bb)](_0x33ca2a)[_0x52a103(0x19a)](_0x3f33dc);};}exports[a807_0x2316ad(0x1c0)]=function(_0x541af2,_0x3d0e3b){const _0x461acd=a807_0x2316ad;let _0xad196e={};const _0x598334={},_0xb9065c={'count':0x0,'rows':[]},_0x369236=_[_0x461acd(0x1c7)](db['UserProfileResource'][_0x461acd(0x199)],function(_0x2671bf){const _0x481a59=_0x461acd;return{'name':_0x2671bf[_0x481a59(0x1b1)],'type':_0x2671bf['type'][_0x481a59(0x1c6)]};});_0x598334[_0x461acd(0x1a4)]=_['map'](_0x369236,_0x461acd(0x1ab)),_0x598334['query']=_[_0x461acd(0x1b2)](_0x541af2[_0x461acd(0x1ac)]),_0x598334[_0x461acd(0x1c5)]=_[_0x461acd(0x1bd)](_0x598334[_0x461acd(0x1a4)],_0x598334[_0x461acd(0x1ac)]),_0xad196e[_0x461acd(0x1c9)]=_[_0x461acd(0x1bd)](_0x598334['model'],qs[_0x461acd(0x1c2)](_0x541af2[_0x461acd(0x1ac)][_0x461acd(0x1c2)])),_0xad196e[_0x461acd(0x1c9)]=_0xad196e['attributes'][_0x461acd(0x19d)]?_0xad196e[_0x461acd(0x1c9)]:_0x598334['model'];typeof _0x541af2[_0x461acd(0x1ac)][_0x461acd(0x1bf)]===_0x461acd(0x1b3)&&(_0xad196e[_0x461acd(0x1cb)]=qs[_0x461acd(0x1cb)](_0x541af2[_0x461acd(0x1ac)][_0x461acd(0x1cb)]),_0xad196e[_0x461acd(0x1a7)]=qs['offset'](_0x541af2[_0x461acd(0x1ac)]['offset']));_0xad196e['order']=qs[_0x461acd(0x1be)](_0x541af2[_0x461acd(0x1ac)][_0x461acd(0x1be)]),_0xad196e['where']=qs[_0x461acd(0x1c5)](_['pick'](_0x541af2[_0x461acd(0x1ac)],_0x598334['filters']),_0x369236);_0x541af2[_0x461acd(0x1ac)][_0x461acd(0x19c)]&&(_0xad196e['where']=_['merge'](_0xad196e[_0x461acd(0x1ba)],{[Op['or']]:_['map'](_0x369236,function(_0x52f94f){const _0x4f5762=_0x461acd;if(_0x52f94f[_0x4f5762(0x1b9)]!==_0x4f5762(0x1a6)){const _0x1efafb={};return _0x1efafb[_0x52f94f[_0x4f5762(0x1ab)]]={[Op[_0x4f5762(0x1c1)]]:'%'+_0x541af2[_0x4f5762(0x1ac)][_0x4f5762(0x19c)]+'%'},_0x1efafb;}})}));_0xad196e=_[_0x461acd(0x19b)]({},_0xad196e,_0x541af2['options']);const _0x422e9d={'where':_0xad196e[_0x461acd(0x1ba)]};return db[_0x461acd(0x1ae)][_0x461acd(0x1a8)](_0x422e9d)[_0x461acd(0x1c4)](function(_0x144f21){const _0x2a8804=_0x461acd;return _0xb9065c[_0x2a8804(0x1a8)]=_0x144f21,_0x541af2[_0x2a8804(0x1ac)]['includeAll']&&(_0xad196e[_0x2a8804(0x1b0)]=[{'all':!![]}]),db[_0x2a8804(0x1ae)][_0x2a8804(0x1ad)](_0xad196e);})[_0x461acd(0x1c4)](function(_0x5ea60c){const _0x436b22=_0x461acd;return _0xb9065c[_0x436b22(0x1b4)]=_0x5ea60c,_0xb9065c;})['then'](respondWithFilteredResult(_0x3d0e3b,_0xad196e))[_0x461acd(0x1c3)](handleError(_0x3d0e3b,null));},exports[a807_0x2316ad(0x19e)]=function(_0xe1539f,_0x6016a3){const _0x218679=a807_0x2316ad;let _0x1059fe={'raw':![],'where':{'id':_0xe1539f[_0x218679(0x1a1)]['id']}};const _0x179ca4={};return _0x179ca4[_0x218679(0x1a4)]=_[_0x218679(0x1b2)](db[_0x218679(0x1ae)][_0x218679(0x199)]),_0x179ca4[_0x218679(0x1ac)]=_[_0x218679(0x1b2)](_0xe1539f['query']),_0x179ca4['filters']=_[_0x218679(0x1bd)](_0x179ca4['model'],_0x179ca4['query']),_0x1059fe[_0x218679(0x1c9)]=_[_0x218679(0x1bd)](_0x179ca4[_0x218679(0x1a4)],qs[_0x218679(0x1c2)](_0xe1539f[_0x218679(0x1ac)][_0x218679(0x1c2)])),_0x1059fe[_0x218679(0x1c9)]=_0x1059fe[_0x218679(0x1c9)][_0x218679(0x19d)]?_0x1059fe[_0x218679(0x1c9)]:_0x179ca4[_0x218679(0x1a4)],_0xe1539f[_0x218679(0x1ac)][_0x218679(0x19f)]&&(_0x1059fe[_0x218679(0x1b0)]=[{'all':!![]}]),_0x1059fe=_[_0x218679(0x19b)]({},_0x1059fe,_0xe1539f[_0x218679(0x1a9)]),db[_0x218679(0x1ae)]['findOne'](_0x1059fe)[_0x218679(0x1c4)](handleEntityNotFound(_0x6016a3,null))[_0x218679(0x1c4)](respondWithResult(_0x6016a3,null))[_0x218679(0x1c3)](handleError(_0x6016a3,null));},exports[a807_0x2316ad(0x1b8)]=function(_0x2c8440,_0x464e30){const _0x545c3e=a807_0x2316ad;return db[_0x545c3e(0x1ae)]['create'](_0x2c8440[_0x545c3e(0x1a3)],{})[_0x545c3e(0x1c4)](respondWithResult(_0x464e30,0xc9))['catch'](handleError(_0x464e30,null));},exports[a807_0x2316ad(0x1b5)]=function(_0x177ba1,_0x286a09){const _0x33fa9f=a807_0x2316ad;return _0x177ba1[_0x33fa9f(0x1a3)]['id']&&delete _0x177ba1[_0x33fa9f(0x1a3)]['id'],db[_0x33fa9f(0x1ae)][_0x33fa9f(0x1aa)]({'where':{'id':_0x177ba1['params']['id']}})[_0x33fa9f(0x1c4)](handleEntityNotFound(_0x286a09,null))[_0x33fa9f(0x1c4)](saveUpdates(_0x177ba1[_0x33fa9f(0x1a3)],null))['then'](respondWithResult(_0x286a09,null))[_0x33fa9f(0x1c3)](handleError(_0x286a09,null));},exports[a807_0x2316ad(0x1c8)]=function(_0x89bdd3,_0x14a991){const _0x10e7ec=a807_0x2316ad;return db[_0x10e7ec(0x1ae)][_0x10e7ec(0x1aa)]({'where':{'id':_0x89bdd3[_0x10e7ec(0x1a1)]['id']}})[_0x10e7ec(0x1c4)](handleEntityNotFound(_0x14a991,null))[_0x10e7ec(0x1c4)](removeEntity(_0x14a991,null))[_0x10e7ec(0x1c3)](handleError(_0x14a991,null));},exports['describe']=function(_0x3db5e7,_0x599e85){const _0x279c83=a807_0x2316ad;return db[_0x279c83(0x1ae)][_0x279c83(0x1b6)]()[_0x279c83(0x1c4)](respondWithResult(_0x599e85,null))[_0x279c83(0x1c3)](handleError(_0x599e85,null));}; \ No newline at end of file +const a807_0x379b=['order','rows','pick','undefined','intersection','offset','stack','type','fields','limit','findOne','status','../../config/logger','merge','UserProfileResource','end','sequelize','sendStatus','Content-Range','findAll','body','../../components/parsers/qs','filters','where','json','error','rawAttributes','destroy','includeAll','map','then','keys','include','key','attributes','catch','filter','length','index','sort','params','model','query','lodash','name','send','count','create','update'];(function(_0x27848b,_0x1a5191){const _0x379b0e=function(_0x325244){while(--_0x325244){_0x27848b['push'](_0x27848b['shift']());}};_0x379b0e(++_0x1a5191);}(a807_0x379b,0x118));const a807_0x3252=function(_0x27848b,_0x1a5191){_0x27848b=_0x27848b-0x1a9;let _0x379b0e=a807_0x379b[_0x27848b];return _0x379b0e;};const a807_0x5616e6=a807_0x3252;'use strict';const _=require(a807_0x5616e6(0x1b1)),qs=require(a807_0x5616e6(0x1cc)),logger=require(a807_0x5616e6(0x1c3))('api'),{db}=require('../../mysqldb'),{Op}=require(a807_0x5616e6(0x1c7));function respondWithResult(_0x4f9c44,_0x17ad62){return _0x17ad62=_0x17ad62||0xc8,function(_0x41d643){if(_0x41d643)return _0x4f9c44['status'](_0x17ad62)['json'](_0x41d643);};}function respondWithFilteredResult(_0x5d9451,_0x4e422b){return function(_0x48249e){const _0x5c846a=a807_0x3252;if(_0x48249e){const _0x44a553=_0x48249e[_0x5c846a(0x1b4)],_0x5a8995=_0x4e422b[_0x5c846a(0x1bc)];let _0x692e01=_0x4e422b['offset']+_0x4e422b[_0x5c846a(0x1c0)],_0x35d582;return _0x692e01>=_0x44a553?(_0x692e01=_0x44a553,_0x35d582=0xc8):_0x35d582=0xce,_0x5d9451[_0x5c846a(0x1c2)](_0x35d582),_0x5d9451['set'](_0x5c846a(0x1c9),_0x5a8995+'-'+_0x692e01+'/'+_0x44a553)[_0x5c846a(0x1cf)](_0x48249e);}return null;};}function saveUpdates(_0x317c50){return function(_0x35414b){const _0x5b5964=a807_0x3252;if(_0x35414b)return _0x35414b[_0x5b5964(0x1b6)](_0x317c50)[_0x5b5964(0x1d5)](function(_0x52082d){return _0x52082d;});return null;};}function removeEntity(_0x14ca00){return function(_0x48bd4d){const _0x477220=a807_0x3252;if(_0x48bd4d)return _0x48bd4d['destroy']()[_0x477220(0x1d5)](function(){const _0x3f3557=_0x477220;_0x14ca00['status'](0xcc)[_0x3f3557(0x1c6)]();});};}function handleEntityNotFound(_0x2737b3){return function(_0x447013){const _0x496f2c=a807_0x3252;return!_0x447013&&_0x2737b3[_0x496f2c(0x1c8)](0x194),_0x447013;};}function handleError(_0x1ea914,_0x18aafa){return _0x18aafa=_0x18aafa||0x1f4,function(_0x11ea20){const _0x350e6f=a807_0x3252;logger[_0x350e6f(0x1d0)](_0x11ea20[_0x350e6f(0x1bd)]),_0x11ea20[_0x350e6f(0x1b2)]&&delete _0x11ea20['name'],_0x1ea914[_0x350e6f(0x1c2)](_0x18aafa)[_0x350e6f(0x1b3)](_0x11ea20);};}exports[a807_0x5616e6(0x1ac)]=function(_0x25703f,_0x56b47b){const _0x568f50=a807_0x5616e6;let _0x1653cf={};const _0x272dc7={},_0x4167a9={'count':0x0,'rows':[]},_0x142697=_[_0x568f50(0x1d4)](db[_0x568f50(0x1c5)][_0x568f50(0x1d1)],function(_0x205862){const _0x3d3a1e=_0x568f50;return{'name':_0x205862['fieldName'],'type':_0x205862['type'][_0x3d3a1e(0x1d8)]};});_0x272dc7[_0x568f50(0x1af)]=_['map'](_0x142697,_0x568f50(0x1b2)),_0x272dc7[_0x568f50(0x1b0)]=_[_0x568f50(0x1d6)](_0x25703f[_0x568f50(0x1b0)]),_0x272dc7[_0x568f50(0x1cd)]=_['intersection'](_0x272dc7['model'],_0x272dc7[_0x568f50(0x1b0)]),_0x1653cf[_0x568f50(0x1d9)]=_[_0x568f50(0x1bb)](_0x272dc7[_0x568f50(0x1af)],qs[_0x568f50(0x1bf)](_0x25703f['query']['fields'])),_0x1653cf[_0x568f50(0x1d9)]=_0x1653cf[_0x568f50(0x1d9)][_0x568f50(0x1ab)]?_0x1653cf[_0x568f50(0x1d9)]:_0x272dc7['model'];typeof _0x25703f[_0x568f50(0x1b0)]['nolimit']===_0x568f50(0x1ba)&&(_0x1653cf[_0x568f50(0x1c0)]=qs[_0x568f50(0x1c0)](_0x25703f[_0x568f50(0x1b0)][_0x568f50(0x1c0)]),_0x1653cf[_0x568f50(0x1bc)]=qs[_0x568f50(0x1bc)](_0x25703f[_0x568f50(0x1b0)]['offset']));_0x1653cf[_0x568f50(0x1b7)]=qs[_0x568f50(0x1ad)](_0x25703f[_0x568f50(0x1b0)][_0x568f50(0x1ad)]),_0x1653cf[_0x568f50(0x1ce)]=qs['filters'](_[_0x568f50(0x1b9)](_0x25703f[_0x568f50(0x1b0)],_0x272dc7['filters']),_0x142697);_0x25703f[_0x568f50(0x1b0)][_0x568f50(0x1aa)]&&(_0x1653cf['where']=_[_0x568f50(0x1c4)](_0x1653cf[_0x568f50(0x1ce)],{[Op['or']]:_[_0x568f50(0x1d4)](_0x142697,function(_0x3b5127){const _0x4713ad=_0x568f50;if(_0x3b5127[_0x4713ad(0x1be)]!=='VIRTUAL'){const _0x1c7e39={};return _0x1c7e39[_0x3b5127[_0x4713ad(0x1b2)]]={[Op['like']]:'%'+_0x25703f[_0x4713ad(0x1b0)][_0x4713ad(0x1aa)]+'%'},_0x1c7e39;}})}));_0x1653cf=_[_0x568f50(0x1c4)]({},_0x1653cf,_0x25703f['options']);const _0x350d66={'where':_0x1653cf['where']};return db['UserProfileResource'][_0x568f50(0x1b4)](_0x350d66)['then'](function(_0x2a0a92){const _0x56cdf5=_0x568f50;return _0x4167a9[_0x56cdf5(0x1b4)]=_0x2a0a92,_0x25703f[_0x56cdf5(0x1b0)][_0x56cdf5(0x1d3)]&&(_0x1653cf[_0x56cdf5(0x1d7)]=[{'all':!![]}]),db[_0x56cdf5(0x1c5)][_0x56cdf5(0x1ca)](_0x1653cf);})['then'](function(_0x28bdc7){const _0x5608d9=_0x568f50;return _0x4167a9[_0x5608d9(0x1b8)]=_0x28bdc7,_0x4167a9;})[_0x568f50(0x1d5)](respondWithFilteredResult(_0x56b47b,_0x1653cf))[_0x568f50(0x1a9)](handleError(_0x56b47b,null));},exports['show']=function(_0x1f261e,_0x276ee0){const _0x437039=a807_0x5616e6;let _0x26bfcb={'raw':![],'where':{'id':_0x1f261e[_0x437039(0x1ae)]['id']}};const _0x46f498={};return _0x46f498[_0x437039(0x1af)]=_[_0x437039(0x1d6)](db[_0x437039(0x1c5)][_0x437039(0x1d1)]),_0x46f498['query']=_[_0x437039(0x1d6)](_0x1f261e[_0x437039(0x1b0)]),_0x46f498[_0x437039(0x1cd)]=_['intersection'](_0x46f498['model'],_0x46f498[_0x437039(0x1b0)]),_0x26bfcb['attributes']=_[_0x437039(0x1bb)](_0x46f498['model'],qs[_0x437039(0x1bf)](_0x1f261e['query'][_0x437039(0x1bf)])),_0x26bfcb['attributes']=_0x26bfcb[_0x437039(0x1d9)][_0x437039(0x1ab)]?_0x26bfcb['attributes']:_0x46f498['model'],_0x1f261e[_0x437039(0x1b0)][_0x437039(0x1d3)]&&(_0x26bfcb[_0x437039(0x1d7)]=[{'all':!![]}]),_0x26bfcb=_[_0x437039(0x1c4)]({},_0x26bfcb,_0x1f261e['options']),db[_0x437039(0x1c5)][_0x437039(0x1c1)](_0x26bfcb)['then'](handleEntityNotFound(_0x276ee0,null))['then'](respondWithResult(_0x276ee0,null))[_0x437039(0x1a9)](handleError(_0x276ee0,null));},exports[a807_0x5616e6(0x1b5)]=function(_0x30bebc,_0x36451e){const _0x35f3e1=a807_0x5616e6;return db[_0x35f3e1(0x1c5)][_0x35f3e1(0x1b5)](_0x30bebc[_0x35f3e1(0x1cb)],{})[_0x35f3e1(0x1d5)](respondWithResult(_0x36451e,0xc9))[_0x35f3e1(0x1a9)](handleError(_0x36451e,null));},exports[a807_0x5616e6(0x1b6)]=function(_0x3305a0,_0x16cf20){const _0xe3e840=a807_0x5616e6;return _0x3305a0[_0xe3e840(0x1cb)]['id']&&delete _0x3305a0[_0xe3e840(0x1cb)]['id'],db[_0xe3e840(0x1c5)][_0xe3e840(0x1c1)]({'where':{'id':_0x3305a0[_0xe3e840(0x1ae)]['id']}})[_0xe3e840(0x1d5)](handleEntityNotFound(_0x16cf20,null))['then'](saveUpdates(_0x3305a0['body'],null))[_0xe3e840(0x1d5)](respondWithResult(_0x16cf20,null))['catch'](handleError(_0x16cf20,null));},exports[a807_0x5616e6(0x1d2)]=function(_0x385208,_0x920e0b){const _0x3955c6=a807_0x5616e6;return db[_0x3955c6(0x1c5)][_0x3955c6(0x1c1)]({'where':{'id':_0x385208[_0x3955c6(0x1ae)]['id']}})['then'](handleEntityNotFound(_0x920e0b,null))['then'](removeEntity(_0x920e0b,null))[_0x3955c6(0x1a9)](handleError(_0x920e0b,null));},exports['describe']=function(_0x1988b8,_0x59e893){const _0x1f208c=a807_0x5616e6;return db[_0x1f208c(0x1c5)]['describe']()['then'](respondWithResult(_0x59e893,null))[_0x1f208c(0x1a9)](handleError(_0x59e893,null));}; \ No newline at end of file diff --git a/server/api/userProfileResource/userProfileResource.model.js b/server/api/userProfileResource/userProfileResource.model.js index 9581c53..491aaae 100644 --- a/server/api/userProfileResource/userProfileResource.model.js +++ b/server/api/userProfileResource/userProfileResource.model.js @@ -1 +1 @@ -const a808_0x3f10=['exports','UserProfileResource','sequelize','init','./userProfileResource.options'];(function(_0x1b5b34,_0x2ab3bb){const _0x3f1038=function(_0x28f0bf){while(--_0x28f0bf){_0x1b5b34['push'](_0x1b5b34['shift']());}};_0x3f1038(++_0x2ab3bb);}(a808_0x3f10,0xd9));const a808_0x28f0=function(_0x1b5b34,_0x2ab3bb){_0x1b5b34=_0x1b5b34-0x187;let _0x3f1038=a808_0x3f10[_0x1b5b34];return _0x3f1038;};const a808_0x22a1f1=a808_0x28f0;'use strict';const {Model}=require(a808_0x22a1f1(0x187)),{attributes}=require('./userProfileResource.attributes'),{options}=require(a808_0x22a1f1(0x189));class UserProfileResource extends Model{}function init(_0x51e5ff,_0x59689e){const _0x145a9d=a808_0x22a1f1,_0x4ed163=options(_0x51e5ff),_0x39847f=typeof _0x59689e==='function'?_0x59689e(_0x4ed163):_0x4ed163;return UserProfileResource[_0x145a9d(0x188)](attributes,_0x39847f),UserProfileResource;}module[a808_0x22a1f1(0x18a)][a808_0x22a1f1(0x18b)]=UserProfileResource,module[a808_0x22a1f1(0x18a)][a808_0x22a1f1(0x188)]=init; \ No newline at end of file +const a808_0x5946=['./userProfileResource.options','./userProfileResource.attributes','exports','function','sequelize','UserProfileResource','init'];(function(_0x343155,_0x3566e8){const _0x594607=function(_0x572e39){while(--_0x572e39){_0x343155['push'](_0x343155['shift']());}};_0x594607(++_0x3566e8);}(a808_0x5946,0x98));const a808_0x572e=function(_0x343155,_0x3566e8){_0x343155=_0x343155-0xd6;let _0x594607=a808_0x5946[_0x343155];return _0x594607;};const a808_0x2777a6=a808_0x572e;'use strict';const {Model}=require(a808_0x2777a6(0xdc)),{attributes}=require(a808_0x2777a6(0xd9)),{options}=require(a808_0x2777a6(0xd8));class UserProfileResource extends Model{}function init(_0x5e940a,_0x519e8b){const _0x298090=a808_0x2777a6,_0x35d646=options(_0x5e940a),_0x10cea9=typeof _0x519e8b===_0x298090(0xdb)?_0x519e8b(_0x35d646):_0x35d646;return UserProfileResource[_0x298090(0xd7)](attributes,_0x10cea9),UserProfileResource;}module[a808_0x2777a6(0xda)][a808_0x2777a6(0xd6)]=UserProfileResource,module[a808_0x2777a6(0xda)][a808_0x2777a6(0xd7)]=init; \ No newline at end of file diff --git a/server/api/userProfileResource/userProfileResource.options.js b/server/api/userProfileResource/userProfileResource.options.js index 3d49a12..e91852a 100644 --- a/server/api/userProfileResource/userProfileResource.options.js +++ b/server/api/userProfileResource/userProfileResource.options.js @@ -1 +1 @@ -var a809_0x1615=['resourceId','exports','options','sectionId','compositeIndex'];(function(_0x1b25f6,_0x135715){var _0x1615b8=function(_0x337b63){while(--_0x337b63){_0x1b25f6['push'](_0x1b25f6['shift']());}};_0x1615b8(++_0x135715);}(a809_0x1615,0x87));var a809_0x337b=function(_0x1b25f6,_0x135715){_0x1b25f6=_0x1b25f6-0xff;var _0x1615b8=a809_0x1615[_0x1b25f6];return _0x1615b8;};var a809_0xf6693e=a809_0x337b;function options(_0x5e0bcc){var _0x415084=a809_0x337b;return{'sequelize':_0x5e0bcc,'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':_0x415084(0x103),'fields':[_0x415084(0xff),_0x415084(0x102)]}],'timestamps':!![]};}module[a809_0xf6693e(0x100)][a809_0xf6693e(0x101)]=options; \ No newline at end of file +var a809_0x5180=['user_profile_has_resources','sectionId','resourceId','options','exports'];(function(_0x1feb02,_0x3cddb6){var _0x5180b7=function(_0x435e7c){while(--_0x435e7c){_0x1feb02['push'](_0x1feb02['shift']());}};_0x5180b7(++_0x3cddb6);}(a809_0x5180,0x1e9));var a809_0x435e=function(_0x1feb02,_0x3cddb6){_0x1feb02=_0x1feb02-0x160;var _0x5180b7=a809_0x5180[_0x1feb02];return _0x5180b7;};var a809_0x5e30fe=a809_0x435e;function options(_0x3aba1e){var _0x1e9c15=a809_0x435e;return{'sequelize':_0x3aba1e,'tableName':_0x1e9c15(0x161),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x1e9c15(0x163),_0x1e9c15(0x162)]}],'timestamps':!![]};}module[a809_0x5e30fe(0x160)][a809_0x5e30fe(0x164)]=options; \ No newline at end of file diff --git a/server/api/userProfileSection/index.js b/server/api/userProfileSection/index.js index e984db2..00f5781 100644 --- a/server/api/userProfileSection/index.js +++ b/server/api/userProfileSection/index.js @@ -1 +1 @@ -const a810_0x2ba1=['../../components/auth/service','exports','create','isAuthenticated','./userProfileSection.controller','Router','express','/describe','get','show','index','update','post','destroy'];(function(_0x552d9d,_0x1dc273){const _0x2ba1c7=function(_0x145c2d){while(--_0x145c2d){_0x552d9d['push'](_0x552d9d['shift']());}};_0x2ba1c7(++_0x1dc273);}(a810_0x2ba1,0xf5));const a810_0x145c=function(_0x552d9d,_0x1dc273){_0x552d9d=_0x552d9d-0xe4;let _0x2ba1c7=a810_0x2ba1[_0x552d9d];return _0x2ba1c7;};const a810_0x405789=a810_0x145c;'use strict';const express=require(a810_0x405789(0xf1)),router=express[a810_0x405789(0xf0)](),auth=require(a810_0x405789(0xeb)),controller=require(a810_0x405789(0xef));router[a810_0x405789(0xe5)]('/',auth[a810_0x405789(0xee)](),controller[a810_0x405789(0xe7)]),router[a810_0x405789(0xe5)](a810_0x405789(0xe4),auth[a810_0x405789(0xee)](),controller['describe']),router[a810_0x405789(0xe5)]('/:id',auth['isAuthenticated'](),controller[a810_0x405789(0xe6)]),router[a810_0x405789(0xe9)]('/',auth[a810_0x405789(0xee)](),controller[a810_0x405789(0xed)]),router['put']('/:id',auth[a810_0x405789(0xee)](),controller[a810_0x405789(0xe8)]),router['delete']('/:id',auth['isAuthenticated'](),controller[a810_0x405789(0xea)]),module[a810_0x405789(0xec)]=router; \ No newline at end of file +const a810_0x40e5=['../../components/auth/service','/:id','/describe','./userProfileSection.controller','put','Router','delete','index','isAuthenticated','describe','show','create','exports','express','get'];(function(_0x41def2,_0x3fa61f){const _0x40e595=function(_0x120b12){while(--_0x120b12){_0x41def2['push'](_0x41def2['shift']());}};_0x40e595(++_0x3fa61f);}(a810_0x40e5,0xf4));const a810_0x120b=function(_0x41def2,_0x3fa61f){_0x41def2=_0x41def2-0xfd;let _0x40e595=a810_0x40e5[_0x41def2];return _0x40e595;};const a810_0x45b8b6=a810_0x120b;'use strict';const express=require(a810_0x45b8b6(0x106)),router=express[a810_0x45b8b6(0xfe)](),auth=require(a810_0x45b8b6(0x108)),controller=require(a810_0x45b8b6(0x10b));router[a810_0x45b8b6(0x107)]('/',auth[a810_0x45b8b6(0x101)](),controller[a810_0x45b8b6(0x100)]),router[a810_0x45b8b6(0x107)](a810_0x45b8b6(0x10a),auth['isAuthenticated'](),controller[a810_0x45b8b6(0x102)]),router[a810_0x45b8b6(0x107)](a810_0x45b8b6(0x109),auth[a810_0x45b8b6(0x101)](),controller[a810_0x45b8b6(0x103)]),router['post']('/',auth[a810_0x45b8b6(0x101)](),controller[a810_0x45b8b6(0x104)]),router[a810_0x45b8b6(0xfd)]('/:id',auth[a810_0x45b8b6(0x101)](),controller['update']),router[a810_0x45b8b6(0xff)](a810_0x45b8b6(0x109),auth[a810_0x45b8b6(0x101)](),controller['destroy']),module[a810_0x45b8b6(0x105)]=router; \ No newline at end of file diff --git a/server/api/userProfileSection/userProfileSection.attributes.js b/server/api/userProfileSection/userProfileSection.attributes.js index 358e4f5..26dd1e6 100644 --- a/server/api/userProfileSection/userProfileSection.attributes.js +++ b/server/api/userProfileSection/userProfileSection.attributes.js @@ -1 +1 @@ -const a811_0x4216=['split','join','exports','setDataValue','INTEGER','crudPermissions','sequelize','BOOLEAN','attributes','STRING','getDataValue'];(function(_0x40b01e,_0x5d9ac0){const _0x4216d7=function(_0x26d8ac){while(--_0x26d8ac){_0x40b01e['push'](_0x40b01e['shift']());}};_0x4216d7(++_0x5d9ac0);}(a811_0x4216,0x1c6));const a811_0x26d8=function(_0x40b01e,_0x5d9ac0){_0x40b01e=_0x40b01e-0x145;let _0x4216d7=a811_0x4216[_0x40b01e];return _0x4216d7;};const a811_0x5bedb5=a811_0x26d8;'use strict';const {DataTypes}=require(a811_0x5bedb5(0x148)),attributes={'name':{'type':DataTypes[a811_0x5bedb5(0x14b)],'allowNull':![]},'category':{'type':DataTypes[a811_0x5bedb5(0x14b)],'allowNull':![]},'sectionId':{'type':DataTypes[a811_0x5bedb5(0x146)],'allowNull':![]},'enabled':{'type':DataTypes[a811_0x5bedb5(0x149)],'defaultValue':null},'autoAssociation':{'type':DataTypes[a811_0x5bedb5(0x149)],'defaultValue':null},'crudPermissions':{'type':DataTypes['STRING'],'set':function(_0x3d2cc6){const _0x4330c6=a811_0x5bedb5;this[_0x4330c6(0x145)]('crudPermissions',_0x3d2cc6?_0x3d2cc6[_0x4330c6(0x14e)](''):[]);},'get':function(){const _0x577214=a811_0x5bedb5;return this[_0x577214(0x14c)](_0x577214(0x147))?this[_0x577214(0x14c)](_0x577214(0x147))[_0x577214(0x14d)](''):[];}}};module[a811_0x5bedb5(0x14f)][a811_0x5bedb5(0x14a)]=attributes; \ No newline at end of file +const a811_0x3baf=['crudPermissions','setDataValue','sequelize','BOOLEAN','STRING','INTEGER','getDataValue'];(function(_0x94c1f,_0x100e8b){const _0x3bafcf=function(_0x1c254b){while(--_0x1c254b){_0x94c1f['push'](_0x94c1f['shift']());}};_0x3bafcf(++_0x100e8b);}(a811_0x3baf,0x19c));const a811_0x1c25=function(_0x94c1f,_0x100e8b){_0x94c1f=_0x94c1f-0x159;let _0x3bafcf=a811_0x3baf[_0x94c1f];return _0x3bafcf;};const a811_0x58ef48=a811_0x1c25;'use strict';const {DataTypes}=require(a811_0x58ef48(0x15c)),attributes={'name':{'type':DataTypes[a811_0x58ef48(0x15e)],'allowNull':![]},'category':{'type':DataTypes[a811_0x58ef48(0x15e)],'allowNull':![]},'sectionId':{'type':DataTypes[a811_0x58ef48(0x15f)],'allowNull':![]},'enabled':{'type':DataTypes[a811_0x58ef48(0x15d)],'defaultValue':null},'autoAssociation':{'type':DataTypes['BOOLEAN'],'defaultValue':null},'crudPermissions':{'type':DataTypes[a811_0x58ef48(0x15e)],'set':function(_0x4af5f5){const _0x439e68=a811_0x58ef48;this[_0x439e68(0x15b)]('crudPermissions',_0x4af5f5?_0x4af5f5['join'](''):[]);},'get':function(){const _0x365c3f=a811_0x58ef48;return this[_0x365c3f(0x159)](_0x365c3f(0x15a))?this[_0x365c3f(0x159)](_0x365c3f(0x15a))['split'](''):[];}}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/userProfileSection/userProfileSection.controller.js b/server/api/userProfileSection/userProfileSection.controller.js index 44ad8d1..e6acdd6 100644 --- a/server/api/userProfileSection/userProfileSection.controller.js +++ b/server/api/userProfileSection/userProfileSection.controller.js @@ -1 +1 @@ -const a812_0x531c=['key','undefined','offset','sendStatus','name','then','findOne','model','catch','status','set','map','Content-Range','UserProfileSection','body','type','rawAttributes','attributes','../../config/logger','query','intersection','nolimit','fieldName','include','describe','filters','count','stack','destroy','includeAll','error','create','index','where','params','findAll','sequelize','VIRTUAL','options','json','send','fields','update','length','pick','sort','merge','api','keys','limit','end','../../mysqldb'];(function(_0x9e4d27,_0x532324){const _0x531c16=function(_0x8e51d4){while(--_0x8e51d4){_0x9e4d27['push'](_0x9e4d27['shift']());}};_0x531c16(++_0x532324);}(a812_0x531c,0x12c));const a812_0x8e51=function(_0x9e4d27,_0x532324){_0x9e4d27=_0x9e4d27-0x153;let _0x531c16=a812_0x531c[_0x9e4d27];return _0x531c16;};const a812_0x249bf3=a812_0x8e51;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(a812_0x249bf3(0x171))(a812_0x249bf3(0x15a)),{db}=require(a812_0x249bf3(0x15e)),{Op}=require(a812_0x249bf3(0x183));function respondWithResult(_0x4001e,_0x2a0334){return _0x2a0334=_0x2a0334||0xc8,function(_0x22805b){const _0x1b797a=a812_0x8e51;if(_0x22805b)return _0x4001e[_0x1b797a(0x168)](_0x2a0334)[_0x1b797a(0x186)](_0x22805b);};}function respondWithFilteredResult(_0x21207d,_0xcc5e11){return function(_0x5bb6b1){const _0x5803d3=a812_0x8e51;if(_0x5bb6b1){const _0x36900d=_0x5bb6b1['count'],_0x2b7325=_0xcc5e11[_0x5803d3(0x161)];let _0x310401=_0xcc5e11['offset']+_0xcc5e11[_0x5803d3(0x15c)],_0x283d3e;return _0x310401>=_0x36900d?(_0x310401=_0x36900d,_0x283d3e=0xc8):_0x283d3e=0xce,_0x21207d[_0x5803d3(0x168)](_0x283d3e),_0x21207d[_0x5803d3(0x169)](_0x5803d3(0x16b),_0x2b7325+'-'+_0x310401+'/'+_0x36900d)['json'](_0x5bb6b1);}return null;};}function saveUpdates(_0x59d684){return function(_0x4fb61e){const _0x180020=a812_0x8e51;if(_0x4fb61e)return _0x4fb61e[_0x180020(0x155)](_0x59d684)[_0x180020(0x164)](function(_0x2b47ab){return _0x2b47ab;});return null;};}function removeEntity(_0x5a0e3d){return function(_0x30d184){const _0x47c6a9=a812_0x8e51;if(_0x30d184)return _0x30d184[_0x47c6a9(0x17b)]()['then'](function(){const _0x493665=_0x47c6a9;_0x5a0e3d['status'](0xcc)[_0x493665(0x15d)]();});};}function handleEntityNotFound(_0x57ea70){return function(_0x4633e0){const _0x15a8f2=a812_0x8e51;return!_0x4633e0&&_0x57ea70[_0x15a8f2(0x162)](0x194),_0x4633e0;};}function handleError(_0x54dc49,_0x3a394e){return _0x3a394e=_0x3a394e||0x1f4,function(_0x55bb2f){const _0x53f5b7=a812_0x8e51;logger[_0x53f5b7(0x17d)](_0x55bb2f[_0x53f5b7(0x17a)]),_0x55bb2f[_0x53f5b7(0x163)]&&delete _0x55bb2f[_0x53f5b7(0x163)],_0x54dc49[_0x53f5b7(0x168)](_0x3a394e)[_0x53f5b7(0x153)](_0x55bb2f);};}exports[a812_0x249bf3(0x17f)]=function(_0x3ca233,_0xa35347){const _0x5a043b=a812_0x249bf3;let _0x4d2ddc={};const _0x5e5cda={},_0x230453={'count':0x0,'rows':[]},_0x378b4f=_[_0x5a043b(0x16a)](db[_0x5a043b(0x16c)][_0x5a043b(0x16f)],function(_0x103ccb){const _0x12b6d6=_0x5a043b;return{'name':_0x103ccb[_0x12b6d6(0x175)],'type':_0x103ccb[_0x12b6d6(0x16e)][_0x12b6d6(0x15f)]};});_0x5e5cda['model']=_[_0x5a043b(0x16a)](_0x378b4f,_0x5a043b(0x163)),_0x5e5cda['query']=_[_0x5a043b(0x15b)](_0x3ca233[_0x5a043b(0x172)]),_0x5e5cda['filters']=_[_0x5a043b(0x173)](_0x5e5cda[_0x5a043b(0x166)],_0x5e5cda['query']),_0x4d2ddc[_0x5a043b(0x170)]=_[_0x5a043b(0x173)](_0x5e5cda['model'],qs[_0x5a043b(0x154)](_0x3ca233[_0x5a043b(0x172)][_0x5a043b(0x154)])),_0x4d2ddc[_0x5a043b(0x170)]=_0x4d2ddc[_0x5a043b(0x170)][_0x5a043b(0x156)]?_0x4d2ddc[_0x5a043b(0x170)]:_0x5e5cda['model'];typeof _0x3ca233[_0x5a043b(0x172)][_0x5a043b(0x174)]===_0x5a043b(0x160)&&(_0x4d2ddc['limit']=qs[_0x5a043b(0x15c)](_0x3ca233[_0x5a043b(0x172)][_0x5a043b(0x15c)]),_0x4d2ddc['offset']=qs[_0x5a043b(0x161)](_0x3ca233[_0x5a043b(0x172)][_0x5a043b(0x161)]));_0x4d2ddc['order']=qs[_0x5a043b(0x158)](_0x3ca233['query'][_0x5a043b(0x158)]),_0x4d2ddc[_0x5a043b(0x180)]=qs[_0x5a043b(0x178)](_[_0x5a043b(0x157)](_0x3ca233['query'],_0x5e5cda[_0x5a043b(0x178)]),_0x378b4f);_0x3ca233[_0x5a043b(0x172)]['filter']&&(_0x4d2ddc[_0x5a043b(0x180)]=_[_0x5a043b(0x159)](_0x4d2ddc[_0x5a043b(0x180)],{[Op['or']]:_['map'](_0x378b4f,function(_0x1e0d44){const _0x26c13a=_0x5a043b;if(_0x1e0d44['type']!==_0x26c13a(0x184)){const _0x32ad7a={};return _0x32ad7a[_0x1e0d44[_0x26c13a(0x163)]]={[Op['like']]:'%'+_0x3ca233[_0x26c13a(0x172)]['filter']+'%'},_0x32ad7a;}})}));_0x4d2ddc=_[_0x5a043b(0x159)]({},_0x4d2ddc,_0x3ca233[_0x5a043b(0x185)]);const _0x1d5eb1={'where':_0x4d2ddc[_0x5a043b(0x180)]};return db['UserProfileSection'][_0x5a043b(0x179)](_0x1d5eb1)[_0x5a043b(0x164)](function(_0x243e9d){const _0x1f417b=_0x5a043b;return _0x230453[_0x1f417b(0x179)]=_0x243e9d,_0x3ca233['query'][_0x1f417b(0x17c)]&&(_0x4d2ddc[_0x1f417b(0x176)]=[{'all':!![]}]),db[_0x1f417b(0x16c)][_0x1f417b(0x182)](_0x4d2ddc);})[_0x5a043b(0x164)](function(_0xfda75c){return _0x230453['rows']=_0xfda75c,_0x230453;})[_0x5a043b(0x164)](respondWithFilteredResult(_0xa35347,_0x4d2ddc))['catch'](handleError(_0xa35347,null));},exports['show']=function(_0x341d66,_0xa93eb1){const _0x5af6e8=a812_0x249bf3;let _0x388062={'raw':![],'where':{'id':_0x341d66[_0x5af6e8(0x181)]['id']}};const _0x233e5c={};return _0x233e5c[_0x5af6e8(0x166)]=_['keys'](db[_0x5af6e8(0x16c)][_0x5af6e8(0x16f)]),_0x233e5c['query']=_['keys'](_0x341d66['query']),_0x233e5c['filters']=_['intersection'](_0x233e5c[_0x5af6e8(0x166)],_0x233e5c[_0x5af6e8(0x172)]),_0x388062[_0x5af6e8(0x170)]=_[_0x5af6e8(0x173)](_0x233e5c[_0x5af6e8(0x166)],qs['fields'](_0x341d66['query']['fields'])),_0x388062[_0x5af6e8(0x170)]=_0x388062[_0x5af6e8(0x170)][_0x5af6e8(0x156)]?_0x388062[_0x5af6e8(0x170)]:_0x233e5c[_0x5af6e8(0x166)],_0x341d66[_0x5af6e8(0x172)][_0x5af6e8(0x17c)]&&(_0x388062[_0x5af6e8(0x176)]=[{'all':!![]}]),_0x388062=_[_0x5af6e8(0x159)]({},_0x388062,_0x341d66[_0x5af6e8(0x185)]),db[_0x5af6e8(0x16c)][_0x5af6e8(0x165)](_0x388062)[_0x5af6e8(0x164)](handleEntityNotFound(_0xa93eb1,null))[_0x5af6e8(0x164)](respondWithResult(_0xa93eb1,null))[_0x5af6e8(0x167)](handleError(_0xa93eb1,null));},exports['create']=function(_0x377911,_0x2cb265){const _0x594725=a812_0x249bf3;return db[_0x594725(0x16c)][_0x594725(0x17e)](_0x377911['body'],{})[_0x594725(0x164)](respondWithResult(_0x2cb265,0xc9))[_0x594725(0x167)](handleError(_0x2cb265,null));},exports['update']=function(_0x1f1c94,_0x501fae){const _0x252bab=a812_0x249bf3;return _0x1f1c94[_0x252bab(0x16d)]['id']&&delete _0x1f1c94[_0x252bab(0x16d)]['id'],db['UserProfileSection'][_0x252bab(0x165)]({'where':{'id':_0x1f1c94[_0x252bab(0x181)]['id']}})[_0x252bab(0x164)](handleEntityNotFound(_0x501fae,null))[_0x252bab(0x164)](saveUpdates(_0x1f1c94['body'],null))['then'](respondWithResult(_0x501fae,null))[_0x252bab(0x167)](handleError(_0x501fae,null));},exports[a812_0x249bf3(0x17b)]=function(_0x10e0f2,_0xdd2843){const _0x2a4793=a812_0x249bf3;return db[_0x2a4793(0x16c)][_0x2a4793(0x165)]({'where':{'id':_0x10e0f2[_0x2a4793(0x181)]['id']}})[_0x2a4793(0x164)](handleEntityNotFound(_0xdd2843,null))[_0x2a4793(0x164)](removeEntity(_0xdd2843,null))['catch'](handleError(_0xdd2843,null));},exports[a812_0x249bf3(0x177)]=function(_0x105532,_0x570f60){const _0x5b65a=a812_0x249bf3;return db[_0x5b65a(0x16c)][_0x5b65a(0x177)]()[_0x5b65a(0x164)](respondWithResult(_0x570f60,null))[_0x5b65a(0x167)](handleError(_0x570f60,null));}; \ No newline at end of file +const a812_0x3d7c=['api','fieldName','status','limit','error','pick','findAll','create','update','include','key','offset','model','type','options','nolimit','params','filter','fields','describe','../../config/logger','destroy','intersection','json','name','UserProfileSection','map','rows','includeAll','sendStatus','merge','rawAttributes','body','then','like','lodash','sort','findOne','end','where','count','filters','query','keys','length','send','attributes','catch'];(function(_0x2d4288,_0x4c1747){const _0x3d7c09=function(_0x209ed2){while(--_0x209ed2){_0x2d4288['push'](_0x2d4288['shift']());}};_0x3d7c09(++_0x4c1747);}(a812_0x3d7c,0x110));const a812_0x209e=function(_0x2d4288,_0x4c1747){_0x2d4288=_0x2d4288-0x74;let _0x3d7c09=a812_0x3d7c[_0x2d4288];return _0x3d7c09;};const a812_0x34c86a=a812_0x209e;'use strict';const _=require(a812_0x34c86a(0x77)),qs=require('../../components/parsers/qs'),logger=require(a812_0x34c86a(0x98))(a812_0x34c86a(0x84)),{db}=require('../../mysqldb'),{Op}=require('sequelize');function respondWithResult(_0x4dff70,_0x2da3dc){return _0x2da3dc=_0x2da3dc||0xc8,function(_0x55fa81){const _0x3c6fa2=a812_0x209e;if(_0x55fa81)return _0x4dff70[_0x3c6fa2(0x86)](_0x2da3dc)[_0x3c6fa2(0x9b)](_0x55fa81);};}function respondWithFilteredResult(_0x23c831,_0x3f91b5){return function(_0x1bc4c4){const _0x50ced5=a812_0x209e;if(_0x1bc4c4){const _0x35f28c=_0x1bc4c4['count'],_0x596f33=_0x3f91b5[_0x50ced5(0x8f)];let _0x399d79=_0x3f91b5[_0x50ced5(0x8f)]+_0x3f91b5[_0x50ced5(0x87)],_0x2fd5ad;return _0x399d79>=_0x35f28c?(_0x399d79=_0x35f28c,_0x2fd5ad=0xc8):_0x2fd5ad=0xce,_0x23c831[_0x50ced5(0x86)](_0x2fd5ad),_0x23c831['set']('Content-Range',_0x596f33+'-'+_0x399d79+'/'+_0x35f28c)[_0x50ced5(0x9b)](_0x1bc4c4);}return null;};}function saveUpdates(_0x59dc1d){return function(_0x3d240d){if(_0x3d240d)return _0x3d240d['update'](_0x59dc1d)['then'](function(_0x8033cb){return _0x8033cb;});return null;};}function removeEntity(_0x26b5b5){return function(_0x5c8751){const _0x106944=a812_0x209e;if(_0x5c8751)return _0x5c8751[_0x106944(0x99)]()[_0x106944(0x75)](function(){const _0x20a468=_0x106944;_0x26b5b5[_0x20a468(0x86)](0xcc)[_0x20a468(0x7a)]();});};}function handleEntityNotFound(_0x699026){return function(_0x127ab8){const _0x40b717=a812_0x209e;return!_0x127ab8&&_0x699026[_0x40b717(0xa1)](0x194),_0x127ab8;};}function handleError(_0x54514a,_0x198842){return _0x198842=_0x198842||0x1f4,function(_0x3b1dbb){const _0x17ad1c=a812_0x209e;logger[_0x17ad1c(0x88)](_0x3b1dbb['stack']),_0x3b1dbb['name']&&delete _0x3b1dbb[_0x17ad1c(0x9c)],_0x54514a['status'](_0x198842)[_0x17ad1c(0x81)](_0x3b1dbb);};}exports['index']=function(_0x4dd322,_0x4c593f){const _0x21b4ed=a812_0x34c86a;let _0x5ae722={};const _0x5eda3a={},_0x11cb1={'count':0x0,'rows':[]},_0x38782a=_[_0x21b4ed(0x9e)](db[_0x21b4ed(0x9d)][_0x21b4ed(0xa3)],function(_0x3d807b){const _0x2a87af=_0x21b4ed;return{'name':_0x3d807b[_0x2a87af(0x85)],'type':_0x3d807b[_0x2a87af(0x91)][_0x2a87af(0x8e)]};});_0x5eda3a[_0x21b4ed(0x90)]=_[_0x21b4ed(0x9e)](_0x38782a,_0x21b4ed(0x9c)),_0x5eda3a[_0x21b4ed(0x7e)]=_[_0x21b4ed(0x7f)](_0x4dd322[_0x21b4ed(0x7e)]),_0x5eda3a[_0x21b4ed(0x7d)]=_[_0x21b4ed(0x9a)](_0x5eda3a['model'],_0x5eda3a[_0x21b4ed(0x7e)]),_0x5ae722[_0x21b4ed(0x82)]=_[_0x21b4ed(0x9a)](_0x5eda3a[_0x21b4ed(0x90)],qs[_0x21b4ed(0x96)](_0x4dd322[_0x21b4ed(0x7e)][_0x21b4ed(0x96)])),_0x5ae722[_0x21b4ed(0x82)]=_0x5ae722[_0x21b4ed(0x82)][_0x21b4ed(0x80)]?_0x5ae722['attributes']:_0x5eda3a[_0x21b4ed(0x90)];typeof _0x4dd322[_0x21b4ed(0x7e)][_0x21b4ed(0x93)]==='undefined'&&(_0x5ae722[_0x21b4ed(0x87)]=qs['limit'](_0x4dd322['query'][_0x21b4ed(0x87)]),_0x5ae722[_0x21b4ed(0x8f)]=qs[_0x21b4ed(0x8f)](_0x4dd322['query'][_0x21b4ed(0x8f)]));_0x5ae722['order']=qs[_0x21b4ed(0x78)](_0x4dd322['query'][_0x21b4ed(0x78)]),_0x5ae722['where']=qs[_0x21b4ed(0x7d)](_[_0x21b4ed(0x89)](_0x4dd322[_0x21b4ed(0x7e)],_0x5eda3a[_0x21b4ed(0x7d)]),_0x38782a);_0x4dd322[_0x21b4ed(0x7e)][_0x21b4ed(0x95)]&&(_0x5ae722[_0x21b4ed(0x7b)]=_[_0x21b4ed(0xa2)](_0x5ae722[_0x21b4ed(0x7b)],{[Op['or']]:_[_0x21b4ed(0x9e)](_0x38782a,function(_0x2f5638){const _0x519d31=_0x21b4ed;if(_0x2f5638[_0x519d31(0x91)]!=='VIRTUAL'){const _0x5dd301={};return _0x5dd301[_0x2f5638['name']]={[Op[_0x519d31(0x76)]]:'%'+_0x4dd322[_0x519d31(0x7e)]['filter']+'%'},_0x5dd301;}})}));_0x5ae722=_[_0x21b4ed(0xa2)]({},_0x5ae722,_0x4dd322['options']);const _0x1f0740={'where':_0x5ae722[_0x21b4ed(0x7b)]};return db[_0x21b4ed(0x9d)][_0x21b4ed(0x7c)](_0x1f0740)[_0x21b4ed(0x75)](function(_0x2aaf68){const _0x21dfde=_0x21b4ed;return _0x11cb1[_0x21dfde(0x7c)]=_0x2aaf68,_0x4dd322['query'][_0x21dfde(0xa0)]&&(_0x5ae722[_0x21dfde(0x8d)]=[{'all':!![]}]),db['UserProfileSection'][_0x21dfde(0x8a)](_0x5ae722);})[_0x21b4ed(0x75)](function(_0xf4acb6){const _0x32b167=_0x21b4ed;return _0x11cb1[_0x32b167(0x9f)]=_0xf4acb6,_0x11cb1;})[_0x21b4ed(0x75)](respondWithFilteredResult(_0x4c593f,_0x5ae722))[_0x21b4ed(0x83)](handleError(_0x4c593f,null));},exports['show']=function(_0x5653d5,_0xab18e1){const _0x37c00e=a812_0x34c86a;let _0x3a75c7={'raw':![],'where':{'id':_0x5653d5[_0x37c00e(0x94)]['id']}};const _0x43980e={};return _0x43980e[_0x37c00e(0x90)]=_[_0x37c00e(0x7f)](db[_0x37c00e(0x9d)]['rawAttributes']),_0x43980e[_0x37c00e(0x7e)]=_[_0x37c00e(0x7f)](_0x5653d5[_0x37c00e(0x7e)]),_0x43980e[_0x37c00e(0x7d)]=_[_0x37c00e(0x9a)](_0x43980e[_0x37c00e(0x90)],_0x43980e[_0x37c00e(0x7e)]),_0x3a75c7[_0x37c00e(0x82)]=_[_0x37c00e(0x9a)](_0x43980e['model'],qs['fields'](_0x5653d5[_0x37c00e(0x7e)]['fields'])),_0x3a75c7['attributes']=_0x3a75c7[_0x37c00e(0x82)][_0x37c00e(0x80)]?_0x3a75c7['attributes']:_0x43980e[_0x37c00e(0x90)],_0x5653d5[_0x37c00e(0x7e)][_0x37c00e(0xa0)]&&(_0x3a75c7[_0x37c00e(0x8d)]=[{'all':!![]}]),_0x3a75c7=_['merge']({},_0x3a75c7,_0x5653d5[_0x37c00e(0x92)]),db[_0x37c00e(0x9d)][_0x37c00e(0x79)](_0x3a75c7)[_0x37c00e(0x75)](handleEntityNotFound(_0xab18e1,null))[_0x37c00e(0x75)](respondWithResult(_0xab18e1,null))[_0x37c00e(0x83)](handleError(_0xab18e1,null));},exports[a812_0x34c86a(0x8b)]=function(_0x57d453,_0x2ebf58){const _0x46a0e8=a812_0x34c86a;return db[_0x46a0e8(0x9d)][_0x46a0e8(0x8b)](_0x57d453[_0x46a0e8(0x74)],{})[_0x46a0e8(0x75)](respondWithResult(_0x2ebf58,0xc9))[_0x46a0e8(0x83)](handleError(_0x2ebf58,null));},exports[a812_0x34c86a(0x8c)]=function(_0x28d0b0,_0x5ba9e3){const _0x42036f=a812_0x34c86a;return _0x28d0b0[_0x42036f(0x74)]['id']&&delete _0x28d0b0[_0x42036f(0x74)]['id'],db['UserProfileSection'][_0x42036f(0x79)]({'where':{'id':_0x28d0b0['params']['id']}})[_0x42036f(0x75)](handleEntityNotFound(_0x5ba9e3,null))[_0x42036f(0x75)](saveUpdates(_0x28d0b0[_0x42036f(0x74)],null))[_0x42036f(0x75)](respondWithResult(_0x5ba9e3,null))[_0x42036f(0x83)](handleError(_0x5ba9e3,null));},exports[a812_0x34c86a(0x99)]=function(_0x356f5e,_0x130f43){const _0x56e1e5=a812_0x34c86a;return db[_0x56e1e5(0x9d)][_0x56e1e5(0x79)]({'where':{'id':_0x356f5e[_0x56e1e5(0x94)]['id']}})[_0x56e1e5(0x75)](handleEntityNotFound(_0x130f43,null))['then'](removeEntity(_0x130f43,null))[_0x56e1e5(0x83)](handleError(_0x130f43,null));},exports[a812_0x34c86a(0x97)]=function(_0x5b92ab,_0x15a2f0){const _0x3dccb7=a812_0x34c86a;return db['UserProfileSection'][_0x3dccb7(0x97)]()['then'](respondWithResult(_0x15a2f0,null))[_0x3dccb7(0x83)](handleError(_0x15a2f0,null));}; \ No newline at end of file diff --git a/server/api/userProfileSection/userProfileSection.model.js b/server/api/userProfileSection/userProfileSection.model.js index d73caf6..f3f06e8 100644 --- a/server/api/userProfileSection/userProfileSection.model.js +++ b/server/api/userProfileSection/userProfileSection.model.js @@ -1 +1 @@ -const a813_0x2949=['function','./userProfileSection.attributes','init','./userProfileSection.options','UserProfileSection','sequelize'];(function(_0x4abb2e,_0x84fdc){const _0x294946=function(_0x3bd30c){while(--_0x3bd30c){_0x4abb2e['push'](_0x4abb2e['shift']());}};_0x294946(++_0x84fdc);}(a813_0x2949,0x107));const a813_0x3bd3=function(_0x4abb2e,_0x84fdc){_0x4abb2e=_0x4abb2e-0xc1;let _0x294946=a813_0x2949[_0x4abb2e];return _0x294946;};const a813_0x80495d=a813_0x3bd3;'use strict';const {Model}=require(a813_0x80495d(0xc1)),{attributes}=require(a813_0x80495d(0xc3)),{options}=require(a813_0x80495d(0xc5));class UserProfileSection extends Model{}function init(_0x41f4c0,_0x42ec2e){const _0x56b0c9=a813_0x80495d,_0x18bd4d=options(_0x41f4c0),_0x365ac4=typeof _0x42ec2e===_0x56b0c9(0xc2)?_0x42ec2e(_0x18bd4d):_0x18bd4d;return UserProfileSection[_0x56b0c9(0xc4)](attributes,_0x365ac4),UserProfileSection;}module['exports'][a813_0x80495d(0xc6)]=UserProfileSection,module['exports']['init']=init; \ No newline at end of file +const a813_0x5632=['init','exports','./userProfileSection.options','UserProfileSection','./userProfileSection.attributes','function'];(function(_0xd26063,_0x48cc0e){const _0x563245=function(_0x30f00e){while(--_0x30f00e){_0xd26063['push'](_0xd26063['shift']());}};_0x563245(++_0x48cc0e);}(a813_0x5632,0xbd));const a813_0x30f0=function(_0xd26063,_0x48cc0e){_0xd26063=_0xd26063-0x1cc;let _0x563245=a813_0x5632[_0xd26063];return _0x563245;};const a813_0x268050=a813_0x30f0;'use strict';const {Model}=require('sequelize'),{attributes}=require(a813_0x268050(0x1cd)),{options}=require(a813_0x268050(0x1d1));class UserProfileSection extends Model{}function init(_0x170eb9,_0x167cd5){const _0x419e19=a813_0x268050,_0x335508=options(_0x170eb9),_0x17020c=typeof _0x167cd5===_0x419e19(0x1ce)?_0x167cd5(_0x335508):_0x335508;return UserProfileSection[_0x419e19(0x1cf)](attributes,_0x17020c),UserProfileSection;}module[a813_0x268050(0x1d0)][a813_0x268050(0x1cc)]=UserProfileSection,module[a813_0x268050(0x1d0)][a813_0x268050(0x1cf)]=init; \ No newline at end of file diff --git a/server/api/userProfileSection/userProfileSection.options.js b/server/api/userProfileSection/userProfileSection.options.js index 307de25..1e95c1f 100644 --- a/server/api/userProfileSection/userProfileSection.options.js +++ b/server/api/userProfileSection/userProfileSection.options.js @@ -1 +1 @@ -var a814_0x44d7=['sectionId','userProfileId','options','exports','compositeIndex'];(function(_0x58b82c,_0x10b87d){var _0x44d7fc=function(_0x45cb39){while(--_0x45cb39){_0x58b82c['push'](_0x58b82c['shift']());}};_0x44d7fc(++_0x10b87d);}(a814_0x44d7,0xf4));var a814_0x45cb=function(_0x58b82c,_0x10b87d){_0x58b82c=_0x58b82c-0x107;var _0x44d7fc=a814_0x44d7[_0x58b82c];return _0x44d7fc;};var a814_0x4742c1=a814_0x45cb;function options(_0x520ac8){var _0x3ac275=a814_0x45cb;return{'sequelize':_0x520ac8,'tableName':'user_profile_has_sections','paranoid':![],'indexes':[{'name':_0x3ac275(0x107),'fields':[_0x3ac275(0x108),_0x3ac275(0x109)]}],'timestamps':!![]};}module[a814_0x4742c1(0x10b)][a814_0x4742c1(0x10a)]=options; \ No newline at end of file +var a814_0x5f2a=['compositeIndex','user_profile_has_sections','options','userProfileId','exports'];(function(_0x524d12,_0x3d1400){var _0x5f2a6b=function(_0x36a580){while(--_0x36a580){_0x524d12['push'](_0x524d12['shift']());}};_0x5f2a6b(++_0x3d1400);}(a814_0x5f2a,0x1cd));var a814_0x36a5=function(_0x524d12,_0x3d1400){_0x524d12=_0x524d12-0x17c;var _0x5f2a6b=a814_0x5f2a[_0x524d12];return _0x5f2a6b;};var a814_0x2e869a=a814_0x36a5;function options(_0x2b0cde){var _0x45decc=a814_0x36a5;return{'sequelize':_0x2b0cde,'tableName':_0x45decc(0x17c),'paranoid':![],'indexes':[{'name':_0x45decc(0x180),'fields':['sectionId',_0x45decc(0x17e)]}],'timestamps':!![]};}module[a814_0x2e869a(0x17f)][a814_0x2e869a(0x17d)]=options; \ No newline at end of file diff --git a/server/api/userSmsQueue/index.js b/server/api/userSmsQueue/index.js index 3e1ea0b..a3088bf 100644 --- a/server/api/userSmsQueue/index.js +++ b/server/api/userSmsQueue/index.js @@ -1 +1 @@ -const a815_0x4778=['exports'];(function(_0x3fe83f,_0x42f922){const _0x477883=function(_0x3a5d63){while(--_0x3a5d63){_0x3fe83f['push'](_0x3fe83f['shift']());}};_0x477883(++_0x42f922);}(a815_0x4778,0x15e));const a815_0x3a5d=function(_0x3fe83f,_0x42f922){_0x3fe83f=_0x3fe83f-0x162;let _0x477883=a815_0x4778[_0x3fe83f];return _0x477883;};const a815_0x5b2f6f=a815_0x3a5d;'use strict';const express=require('express'),router=express['Router']();module[a815_0x5b2f6f(0x162)]=router; \ No newline at end of file +const a815_0x48cb=['Router','exports'];(function(_0x13289b,_0x974dea){const _0x48cb94=function(_0x3b920a){while(--_0x3b920a){_0x13289b['push'](_0x13289b['shift']());}};_0x48cb94(++_0x974dea);}(a815_0x48cb,0x65));const a815_0x3b92=function(_0x13289b,_0x974dea){_0x13289b=_0x13289b-0xe9;let _0x48cb94=a815_0x48cb[_0x13289b];return _0x48cb94;};const a815_0x34497a=a815_0x3b92;'use strict';const express=require('express'),router=express[a815_0x34497a(0xea)]();module[a815_0x34497a(0xe9)]=router; \ No newline at end of file diff --git a/server/api/userSmsQueue/userSmsQueue.attributes.js b/server/api/userSmsQueue/userSmsQueue.attributes.js index 202fd73..5637792 100644 --- a/server/api/userSmsQueue/userSmsQueue.attributes.js +++ b/server/api/userSmsQueue/userSmsQueue.attributes.js @@ -1 +1 @@ -const a816_0x2ead=['INTEGER','attributes','exports','sequelize'];(function(_0x30098c,_0x4e9841){const _0x2eadcb=function(_0x306296){while(--_0x306296){_0x30098c['push'](_0x30098c['shift']());}};_0x2eadcb(++_0x4e9841);}(a816_0x2ead,0xaf));const a816_0x3062=function(_0x30098c,_0x4e9841){_0x30098c=_0x30098c-0x157;let _0x2eadcb=a816_0x2ead[_0x30098c];return _0x2eadcb;};const a816_0x53c57e=a816_0x3062;'use strict';const {DataTypes}=require(a816_0x53c57e(0x157)),attributes={'penalty':{'type':DataTypes[a816_0x53c57e(0x158)],'defaultValue':0x0}};module[a816_0x53c57e(0x15a)][a816_0x53c57e(0x159)]=attributes; \ No newline at end of file +const a816_0xeb8d=['INTEGER'];(function(_0x40fa53,_0x3e7aa6){const _0xeb8d05=function(_0x3b455e){while(--_0x3b455e){_0x40fa53['push'](_0x40fa53['shift']());}};_0xeb8d05(++_0x3e7aa6);}(a816_0xeb8d,0x8e));const a816_0x3b45=function(_0x40fa53,_0x3e7aa6){_0x40fa53=_0x40fa53-0x199;let _0xeb8d05=a816_0xeb8d[_0x40fa53];return _0xeb8d05;};const a816_0x2c51f5=a816_0x3b45;'use strict';const {DataTypes}=require('sequelize'),attributes={'penalty':{'type':DataTypes[a816_0x2c51f5(0x199)],'defaultValue':0x0}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/userSmsQueue/userSmsQueue.model.js b/server/api/userSmsQueue/userSmsQueue.model.js index e2b0be4..08ffd08 100644 --- a/server/api/userSmsQueue/userSmsQueue.model.js +++ b/server/api/userSmsQueue/userSmsQueue.model.js @@ -1 +1 @@ -const a817_0x2700=['UserSmsQueue','./userSmsQueue.options','sequelize','function','./userSmsQueue.attributes','exports'];(function(_0x297e19,_0xb379ff){const _0x270059=function(_0x5404be){while(--_0x5404be){_0x297e19['push'](_0x297e19['shift']());}};_0x270059(++_0xb379ff);}(a817_0x2700,0xd5));const a817_0x5404=function(_0x297e19,_0xb379ff){_0x297e19=_0x297e19-0x11e;let _0x270059=a817_0x2700[_0x297e19];return _0x270059;};const a817_0x4240b5=a817_0x5404;'use strict';const {Model}=require(a817_0x4240b5(0x123)),{attributes}=require(a817_0x4240b5(0x11f)),{options}=require(a817_0x4240b5(0x122));class UserSmsQueue extends Model{}function init(_0x361440,_0x35c52d){const _0x1d5b60=a817_0x4240b5,_0x3a181f=options(_0x361440),_0x4b048c=typeof _0x35c52d===_0x1d5b60(0x11e)?_0x35c52d(_0x3a181f):_0x3a181f;return UserSmsQueue['init'](attributes,_0x4b048c),UserSmsQueue;}module['exports'][a817_0x4240b5(0x121)]=UserSmsQueue,module[a817_0x4240b5(0x120)]['init']=init; \ No newline at end of file +const a817_0x3dc5=['function','./userSmsQueue.options','exports','sequelize','UserSmsQueue','./userSmsQueue.attributes','init'];(function(_0x8297be,_0x32c1b5){const _0x3dc51e=function(_0x3d8ebe){while(--_0x3d8ebe){_0x8297be['push'](_0x8297be['shift']());}};_0x3dc51e(++_0x32c1b5);}(a817_0x3dc5,0x136));const a817_0x3d8e=function(_0x8297be,_0x32c1b5){_0x8297be=_0x8297be-0xcf;let _0x3dc51e=a817_0x3dc5[_0x8297be];return _0x3dc51e;};const a817_0x390e5f=a817_0x3d8e;'use strict';const {Model}=require(a817_0x390e5f(0xd0)),{attributes}=require(a817_0x390e5f(0xd2)),{options}=require(a817_0x390e5f(0xd5));class UserSmsQueue extends Model{}function init(_0x573f8b,_0x572bef){const _0x31001d=a817_0x390e5f,_0x4913f6=options(_0x573f8b),_0x32a65f=typeof _0x572bef===_0x31001d(0xd4)?_0x572bef(_0x4913f6):_0x4913f6;return UserSmsQueue[_0x31001d(0xd3)](attributes,_0x32a65f),UserSmsQueue;}module[a817_0x390e5f(0xcf)][a817_0x390e5f(0xd1)]=UserSmsQueue,module[a817_0x390e5f(0xcf)][a817_0x390e5f(0xd3)]=init; \ No newline at end of file diff --git a/server/api/userSmsQueue/userSmsQueue.options.js b/server/api/userSmsQueue/userSmsQueue.options.js index 4d3543c..600a679 100644 --- a/server/api/userSmsQueue/userSmsQueue.options.js +++ b/server/api/userSmsQueue/userSmsQueue.options.js @@ -1 +1 @@ -var a818_0x5851=['user_has_sms_queues','options'];(function(_0x7c7296,_0x34fde6){var _0x58514b=function(_0x2c8136){while(--_0x2c8136){_0x7c7296['push'](_0x7c7296['shift']());}};_0x58514b(++_0x34fde6);}(a818_0x5851,0x132));var a818_0x2c81=function(_0x7c7296,_0x34fde6){_0x7c7296=_0x7c7296-0x115;var _0x58514b=a818_0x5851[_0x7c7296];return _0x58514b;};var a818_0x62b2ac=a818_0x2c81;function options(_0xb55435){var _0x1d6473=a818_0x2c81;return{'sequelize':_0xb55435,'tableName':_0x1d6473(0x115),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a818_0x62b2ac(0x116)]=options; \ No newline at end of file +var a818_0x6c3b=['user_has_sms_queues'];(function(_0x11594c,_0x4c6a88){var _0x6c3b11=function(_0x598663){while(--_0x598663){_0x11594c['push'](_0x11594c['shift']());}};_0x6c3b11(++_0x4c6a88);}(a818_0x6c3b,0xd7));var a818_0x5986=function(_0x11594c,_0x4c6a88){_0x11594c=_0x11594c-0x1de;var _0x6c3b11=a818_0x6c3b[_0x11594c];return _0x6c3b11;};function options(_0x53da1e){var _0x2f049e=a818_0x5986;return{'sequelize':_0x53da1e,'tableName':_0x2f049e(0x1de),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports']['options']=options; \ No newline at end of file diff --git a/server/api/userVoiceQueue/index.js b/server/api/userVoiceQueue/index.js index a9d051b..3aa2374 100644 --- a/server/api/userVoiceQueue/index.js +++ b/server/api/userVoiceQueue/index.js @@ -1 +1 @@ -const a819_0x3dd6=['Router','express','exports'];(function(_0x493a1b,_0x2d6924){const _0x3dd685=function(_0x7b48b){while(--_0x7b48b){_0x493a1b['push'](_0x493a1b['shift']());}};_0x3dd685(++_0x2d6924);}(a819_0x3dd6,0x165));const a819_0x7b48=function(_0x493a1b,_0x2d6924){_0x493a1b=_0x493a1b-0x1b0;let _0x3dd685=a819_0x3dd6[_0x493a1b];return _0x3dd685;};const a819_0x1d1559=a819_0x7b48;'use strict';const express=require(a819_0x1d1559(0x1b1)),router=express[a819_0x1d1559(0x1b0)]();module[a819_0x1d1559(0x1b2)]=router; \ No newline at end of file +const a819_0x16f3=['exports'];(function(_0x600bd0,_0x485028){const _0x16f37e=function(_0x4ccb4b){while(--_0x4ccb4b){_0x600bd0['push'](_0x600bd0['shift']());}};_0x16f37e(++_0x485028);}(a819_0x16f3,0x1ac));const a819_0x4ccb=function(_0x600bd0,_0x485028){_0x600bd0=_0x600bd0-0xc8;let _0x16f37e=a819_0x16f3[_0x600bd0];return _0x16f37e;};const a819_0x5f32ce=a819_0x4ccb;'use strict';const express=require('express'),router=express['Router']();module[a819_0x5f32ce(0xc8)]=router; \ No newline at end of file diff --git a/server/api/userVoiceQueue/userVoiceQueue.attributes.js b/server/api/userVoiceQueue/userVoiceQueue.attributes.js index 0f27aa1..8ee96f2 100644 --- a/server/api/userVoiceQueue/userVoiceQueue.attributes.js +++ b/server/api/userVoiceQueue/userVoiceQueue.attributes.js @@ -1 +1 @@ -const a820_0x12e2=['exports','attributes','INTEGER'];(function(_0x31d9aa,_0x48316a){const _0x12e2f5=function(_0x19b982){while(--_0x19b982){_0x31d9aa['push'](_0x31d9aa['shift']());}};_0x12e2f5(++_0x48316a);}(a820_0x12e2,0xbd));const a820_0x19b9=function(_0x31d9aa,_0x48316a){_0x31d9aa=_0x31d9aa-0x190;let _0x12e2f5=a820_0x12e2[_0x31d9aa];return _0x12e2f5;};const a820_0x3af99e=a820_0x19b9;'use strict';const {DataTypes}=require('sequelize'),attributes={'penalty':{'type':DataTypes[a820_0x3af99e(0x192)],'defaultValue':0x0}};module[a820_0x3af99e(0x190)][a820_0x3af99e(0x191)]=attributes; \ No newline at end of file +const a820_0x5252=['exports','attributes','INTEGER','sequelize'];(function(_0x86f7fd,_0x31681f){const _0x525216=function(_0x347561){while(--_0x347561){_0x86f7fd['push'](_0x86f7fd['shift']());}};_0x525216(++_0x31681f);}(a820_0x5252,0x170));const a820_0x3475=function(_0x86f7fd,_0x31681f){_0x86f7fd=_0x86f7fd-0xa1;let _0x525216=a820_0x5252[_0x86f7fd];return _0x525216;};const a820_0x472c5d=a820_0x3475;'use strict';const {DataTypes}=require(a820_0x472c5d(0xa4)),attributes={'penalty':{'type':DataTypes[a820_0x472c5d(0xa3)],'defaultValue':0x0}};module[a820_0x472c5d(0xa1)][a820_0x472c5d(0xa2)]=attributes; \ No newline at end of file diff --git a/server/api/userVoiceQueue/userVoiceQueue.model.js b/server/api/userVoiceQueue/userVoiceQueue.model.js index d60dacd..df95030 100644 --- a/server/api/userVoiceQueue/userVoiceQueue.model.js +++ b/server/api/userVoiceQueue/userVoiceQueue.model.js @@ -1 +1 @@ -const a821_0x27fe=['UserVoiceQueue','sequelize','exports','function','./userVoiceQueue.attributes','init'];(function(_0x45d608,_0x4a0dc0){const _0x27fe40=function(_0x22e461){while(--_0x22e461){_0x45d608['push'](_0x45d608['shift']());}};_0x27fe40(++_0x4a0dc0);}(a821_0x27fe,0xce));const a821_0x22e4=function(_0x45d608,_0x4a0dc0){_0x45d608=_0x45d608-0x1a3;let _0x27fe40=a821_0x27fe[_0x45d608];return _0x27fe40;};const a821_0x1d444f=a821_0x22e4;'use strict';const {Model}=require(a821_0x1d444f(0x1a8)),{attributes}=require(a821_0x1d444f(0x1a5)),{options}=require('./userVoiceQueue.options');class UserVoiceQueue extends Model{}function init(_0x4b805a,_0x1f387f){const _0x343205=a821_0x1d444f,_0x42a8e5=options(_0x4b805a),_0x3b0f6e=typeof _0x1f387f===_0x343205(0x1a4)?_0x1f387f(_0x42a8e5):_0x42a8e5;return UserVoiceQueue[_0x343205(0x1a6)](attributes,_0x3b0f6e),UserVoiceQueue;}module[a821_0x1d444f(0x1a3)][a821_0x1d444f(0x1a7)]=UserVoiceQueue,module[a821_0x1d444f(0x1a3)][a821_0x1d444f(0x1a6)]=init; \ No newline at end of file +const a821_0x1728=['function','./userVoiceQueue.attributes','exports','sequelize','init'];(function(_0x206276,_0xc5b776){const _0x172849=function(_0x1218a4){while(--_0x1218a4){_0x206276['push'](_0x206276['shift']());}};_0x172849(++_0xc5b776);}(a821_0x1728,0x105));const a821_0x1218=function(_0x206276,_0xc5b776){_0x206276=_0x206276-0x7e;let _0x172849=a821_0x1728[_0x206276];return _0x172849;};const a821_0x5b1472=a821_0x1218;'use strict';const {Model}=require(a821_0x5b1472(0x80)),{attributes}=require(a821_0x5b1472(0x7e)),{options}=require('./userVoiceQueue.options');class UserVoiceQueue extends Model{}function init(_0x11c915,_0x408e9f){const _0x2a8c2d=a821_0x5b1472,_0x4ffa11=options(_0x11c915),_0x36c5ec=typeof _0x408e9f===_0x2a8c2d(0x82)?_0x408e9f(_0x4ffa11):_0x4ffa11;return UserVoiceQueue[_0x2a8c2d(0x81)](attributes,_0x36c5ec),UserVoiceQueue;}module[a821_0x5b1472(0x7f)]['UserVoiceQueue']=UserVoiceQueue,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/userVoiceQueue/userVoiceQueue.options.js b/server/api/userVoiceQueue/userVoiceQueue.options.js index b4ee73a..a3a782b 100644 --- a/server/api/userVoiceQueue/userVoiceQueue.options.js +++ b/server/api/userVoiceQueue/userVoiceQueue.options.js @@ -1 +1 @@ -var a822_0x2403=['exports','options','user_has_voice_queues'];(function(_0x424f50,_0xdc1bf7){var _0x24032c=function(_0x313a24){while(--_0x313a24){_0x424f50['push'](_0x424f50['shift']());}};_0x24032c(++_0xdc1bf7);}(a822_0x2403,0x92));var a822_0x313a=function(_0x424f50,_0xdc1bf7){_0x424f50=_0x424f50-0x1a4;var _0x24032c=a822_0x2403[_0x424f50];return _0x24032c;};var a822_0x2c8df8=a822_0x313a;function options(_0x4a8e66){var _0x39d117=a822_0x313a;return{'sequelize':_0x4a8e66,'tableName':_0x39d117(0x1a4),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a822_0x2c8df8(0x1a5)][a822_0x2c8df8(0x1a6)]=options; \ No newline at end of file +var a822_0x35c5=['options'];(function(_0x2b85c0,_0x1fa197){var _0x35c50b=function(_0x48b18a){while(--_0x48b18a){_0x2b85c0['push'](_0x2b85c0['shift']());}};_0x35c50b(++_0x1fa197);}(a822_0x35c5,0x160));var a822_0x48b1=function(_0x2b85c0,_0x1fa197){_0x2b85c0=_0x2b85c0-0x8a;var _0x35c50b=a822_0x35c5[_0x2b85c0];return _0x35c50b;};var a822_0x2b4e8c=a822_0x48b1;function options(_0x239c33){return{'sequelize':_0x239c33,'tableName':'user_has_voice_queues','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a822_0x2b4e8c(0x8a)]=options; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/index.js b/server/api/userVoiceQueueRt/index.js index c5f6a2a..3f7677a 100644 --- a/server/api/userVoiceQueueRt/index.js +++ b/server/api/userVoiceQueueRt/index.js @@ -1 +1 @@ -const a823_0x2bd3=['exports','express'];(function(_0x43e706,_0x3e8ff5){const _0x2bd336=function(_0x351395){while(--_0x351395){_0x43e706['push'](_0x43e706['shift']());}};_0x2bd336(++_0x3e8ff5);}(a823_0x2bd3,0x16b));const a823_0x3513=function(_0x43e706,_0x3e8ff5){_0x43e706=_0x43e706-0x116;let _0x2bd336=a823_0x2bd3[_0x43e706];return _0x2bd336;};const a823_0x12f00a=a823_0x3513;'use strict';const express=require(a823_0x12f00a(0x116)),router=express['Router']();module[a823_0x12f00a(0x117)]=router; \ No newline at end of file +const a823_0x381e=['Router'];(function(_0x53177d,_0x4a5519){const _0x381e62=function(_0xf0b6a3){while(--_0xf0b6a3){_0x53177d['push'](_0x53177d['shift']());}};_0x381e62(++_0x4a5519);}(a823_0x381e,0x196));const a823_0xf0b6=function(_0x53177d,_0x4a5519){_0x53177d=_0x53177d-0x81;let _0x381e62=a823_0x381e[_0x53177d];return _0x381e62;};const a823_0x827f3b=a823_0xf0b6;'use strict';const express=require('express'),router=express[a823_0x827f3b(0x81)]();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 9e5ce52..5de31d7 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js @@ -1 +1 @@ -const a824_0x374a=['queue_interface','attributes','INTEGER','sequelize','STRING','exports','Required\x20by\x20Asterisk'];(function(_0x2a7bcd,_0x5aa2be){const _0x374a22=function(_0x42a976){while(--_0x42a976){_0x2a7bcd['push'](_0x2a7bcd['shift']());}};_0x374a22(++_0x5aa2be);}(a824_0x374a,0x75));const a824_0x42a9=function(_0x2a7bcd,_0x5aa2be){_0x2a7bcd=_0x2a7bcd-0x1f4;let _0x374a22=a824_0x374a[_0x2a7bcd];return _0x374a22;};const a824_0x81be21=a824_0x42a9;'use strict';const {DataTypes}=require(a824_0x81be21(0x1f9)),attributes={'uniqueid':{'type':DataTypes[a824_0x81be21(0x1f8)],'primaryKey':!![],'autoIncrement':!![],'comment':a824_0x81be21(0x1f5)},'membername':{'type':DataTypes[a824_0x81be21(0x1fa)],'allowNull':![],'comment':a824_0x81be21(0x1f5)},'UserId':{'type':DataTypes[a824_0x81be21(0x1f8)],'allowNull':![]},'queue_name':{'type':DataTypes[a824_0x81be21(0x1fa)],'allowNull':![],'unique':a824_0x81be21(0x1f6),'comment':a824_0x81be21(0x1f5)},'VoiceQueueId':{'type':DataTypes[a824_0x81be21(0x1f8)],'allowNull':![]},'interface':{'type':DataTypes['STRING'],'allowNull':![],'unique':a824_0x81be21(0x1f6),'comment':a824_0x81be21(0x1f5)},'penalty':{'type':DataTypes[a824_0x81be21(0x1f8)]({'length':0xb}),'defaultValue':0x0,'comment':a824_0x81be21(0x1f5)},'paused':{'type':DataTypes[a824_0x81be21(0x1f8)]({'length':0xb}),'defaultValue':0x0,'comment':a824_0x81be21(0x1f5)}};module[a824_0x81be21(0x1f4)][a824_0x81be21(0x1f7)]=attributes; \ No newline at end of file +const a824_0x4d7f=['sequelize','INTEGER','Required\x20by\x20Asterisk','STRING','queue_interface'];(function(_0x595566,_0x4c7a43){const _0x4d7f02=function(_0x32d91f){while(--_0x32d91f){_0x595566['push'](_0x595566['shift']());}};_0x4d7f02(++_0x4c7a43);}(a824_0x4d7f,0xe0));const a824_0x32d9=function(_0x595566,_0x4c7a43){_0x595566=_0x595566-0x130;let _0x4d7f02=a824_0x4d7f[_0x595566];return _0x4d7f02;};const a824_0x2ec67b=a824_0x32d9;'use strict';const {DataTypes}=require(a824_0x2ec67b(0x131)),attributes={'uniqueid':{'type':DataTypes['INTEGER'],'primaryKey':!![],'autoIncrement':!![],'comment':'Required\x20by\x20Asterisk'},'membername':{'type':DataTypes[a824_0x2ec67b(0x134)],'allowNull':![],'comment':a824_0x2ec67b(0x133)},'UserId':{'type':DataTypes[a824_0x2ec67b(0x132)],'allowNull':![]},'queue_name':{'type':DataTypes[a824_0x2ec67b(0x134)],'allowNull':![],'unique':a824_0x2ec67b(0x130),'comment':a824_0x2ec67b(0x133)},'VoiceQueueId':{'type':DataTypes[a824_0x2ec67b(0x132)],'allowNull':![]},'interface':{'type':DataTypes[a824_0x2ec67b(0x134)],'allowNull':![],'unique':a824_0x2ec67b(0x130),'comment':a824_0x2ec67b(0x133)},'penalty':{'type':DataTypes[a824_0x2ec67b(0x132)]({'length':0xb}),'defaultValue':0x0,'comment':a824_0x2ec67b(0x133)},'paused':{'type':DataTypes[a824_0x2ec67b(0x132)]({'length':0xb}),'defaultValue':0x0,'comment':'Required\x20by\x20Asterisk'}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js index 9a530db..3f55c08 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js @@ -1 +1 @@ -const a825_0x5eef=['setMaxListeners','emit','exports','save','events','UserVoiceQueueRt','addHook'];(function(_0x2e169b,_0x1f0a29){const _0x5eefba=function(_0x1e9cf2){while(--_0x1e9cf2){_0x2e169b['push'](_0x2e169b['shift']());}};_0x5eefba(++_0x1f0a29);}(a825_0x5eef,0x141));const a825_0x1e9c=function(_0x2e169b,_0x1f0a29){_0x2e169b=_0x2e169b-0x114;let _0x5eefba=a825_0x5eef[_0x2e169b];return _0x5eefba;};const a825_0x123c53=a825_0x1e9c;'use strict';const EventEmitter=require(a825_0x123c53(0x119)),UserVoiceQueueRt=require('../../mysqldb')['db'][a825_0x123c53(0x11a)],UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents[a825_0x123c53(0x115)](0x0);const events={'afterCreate':a825_0x123c53(0x118),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x4baf42){return function(_0xb848af){const _0x4bca7d=a825_0x1e9c;UserVoiceQueueRtEvents[_0x4bca7d(0x116)](_0x4baf42+':'+_0xb848af['id'],_0xb848af),UserVoiceQueueRtEvents[_0x4bca7d(0x116)](_0x4baf42,_0xb848af);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];UserVoiceQueueRt[a825_0x123c53(0x114)](e,emitEvent(event));}}module[a825_0x123c53(0x117)]=UserVoiceQueueRtEvents; \ No newline at end of file +const a825_0x7cb3=['emit','events','exports','undefined','remove','addHook','update','save'];(function(_0x44e1bd,_0x70764e){const _0x7cb381=function(_0x409ceb){while(--_0x409ceb){_0x44e1bd['push'](_0x44e1bd['shift']());}};_0x7cb381(++_0x70764e);}(a825_0x7cb3,0x1b8));const a825_0x409c=function(_0x44e1bd,_0x70764e){_0x44e1bd=_0x44e1bd-0xe4;let _0x7cb381=a825_0x7cb3[_0x44e1bd];return _0x7cb381;};const a825_0x4eb8ab=a825_0x409c;'use strict';const EventEmitter=require(a825_0x4eb8ab(0xe5)),UserVoiceQueueRt=require('../../mysqldb')['db']['UserVoiceQueueRt'],UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents['setMaxListeners'](0x0);const events={'afterCreate':a825_0x4eb8ab(0xeb),'afterUpdate':a825_0x4eb8ab(0xea),'afterDestroy':a825_0x4eb8ab(0xe8)};function emitEvent(_0x3925a2){return function(_0x14b3ac){const _0x14f8d8=a825_0x409c;UserVoiceQueueRtEvents[_0x14f8d8(0xe4)](_0x3925a2+':'+_0x14b3ac['id'],_0x14b3ac),UserVoiceQueueRtEvents[_0x14f8d8(0xe4)](_0x3925a2,_0x14b3ac);};}for(const e in events){if(typeof events[e]!==a825_0x4eb8ab(0xe7)){const event=events[e];UserVoiceQueueRt[a825_0x4eb8ab(0xe9)](e,emitEvent(event));}}module[a825_0x4eb8ab(0xe6)]=UserVoiceQueueRtEvents; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js index 9176245..8e35fc8 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js @@ -1 +1 @@ -const a826_0x11cf=['./userVoiceQueueRt.options','exports','UserVoiceQueueRt','./userVoiceQueueRt.attributes','function','sequelize','init'];(function(_0x229073,_0x2612df){const _0x11cf60=function(_0x492f6c){while(--_0x492f6c){_0x229073['push'](_0x229073['shift']());}};_0x11cf60(++_0x2612df);}(a826_0x11cf,0x86));const a826_0x492f=function(_0x229073,_0x2612df){_0x229073=_0x229073-0x1b5;let _0x11cf60=a826_0x11cf[_0x229073];return _0x11cf60;};const a826_0x51fa45=a826_0x492f;'use strict';const {Model}=require(a826_0x51fa45(0x1b9)),{attributes}=require(a826_0x51fa45(0x1b7)),{options}=require(a826_0x51fa45(0x1bb));class UserVoiceQueueRt extends Model{}function init(_0x11873a,_0x587166){const _0x1e7239=a826_0x51fa45,_0x222e16=options(_0x11873a),_0x2ca0e2=typeof _0x587166===_0x1e7239(0x1b8)?_0x587166(_0x222e16):_0x222e16;return UserVoiceQueueRt['init'](attributes,_0x2ca0e2),UserVoiceQueueRt;}module[a826_0x51fa45(0x1b5)][a826_0x51fa45(0x1b6)]=UserVoiceQueueRt,module[a826_0x51fa45(0x1b5)][a826_0x51fa45(0x1ba)]=init; \ No newline at end of file +const a826_0x5f56=['UserVoiceQueueRt','init','exports','./userVoiceQueueRt.options','sequelize'];(function(_0x4e0588,_0x389247){const _0x5f565b=function(_0x416ccd){while(--_0x416ccd){_0x4e0588['push'](_0x4e0588['shift']());}};_0x5f565b(++_0x389247);}(a826_0x5f56,0x124));const a826_0x416c=function(_0x4e0588,_0x389247){_0x4e0588=_0x4e0588-0x1e8;let _0x5f565b=a826_0x5f56[_0x4e0588];return _0x5f565b;};const a826_0x2fb70c=a826_0x416c;'use strict';const {Model}=require(a826_0x2fb70c(0x1ea)),{attributes}=require('./userVoiceQueueRt.attributes'),{options}=require(a826_0x2fb70c(0x1e9));class UserVoiceQueueRt extends Model{}function init(_0x1df9ee,_0x3d0cea){const _0x1199bb=a826_0x2fb70c,_0x25aa2b=options(_0x1df9ee),_0x58f805=typeof _0x3d0cea==='function'?_0x3d0cea(_0x25aa2b):_0x25aa2b;return UserVoiceQueueRt[_0x1199bb(0x1ec)](attributes,_0x58f805),UserVoiceQueueRt;}module[a826_0x2fb70c(0x1e8)][a826_0x2fb70c(0x1eb)]=UserVoiceQueueRt,module[a826_0x2fb70c(0x1e8)][a826_0x2fb70c(0x1ec)]=init; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.options.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.options.js index c4fd585..97a7dff 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.options.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.options.js @@ -1 +1 @@ -var a827_0x4e59=['options'];(function(_0x427f2c,_0x9a1ef6){var _0x4e5909=function(_0x185460){while(--_0x185460){_0x427f2c['push'](_0x427f2c['shift']());}};_0x4e5909(++_0x9a1ef6);}(a827_0x4e59,0x120));var a827_0x1854=function(_0x427f2c,_0x9a1ef6){_0x427f2c=_0x427f2c-0x184;var _0x4e5909=a827_0x4e59[_0x427f2c];return _0x4e5909;};var a827_0x4c9e18=a827_0x1854;function options(_0x237269){return{'sequelize':_0x237269,'tableName':'user_has_voice_queues_rt','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a827_0x4c9e18(0x184)]=options; \ No newline at end of file +var a827_0x4783=['exports','options'];(function(_0x5a906a,_0x5ad89d){var _0x478348=function(_0x4d20be){while(--_0x4d20be){_0x5a906a['push'](_0x5a906a['shift']());}};_0x478348(++_0x5ad89d);}(a827_0x4783,0x9d));var a827_0x4d20=function(_0x5a906a,_0x5ad89d){_0x5a906a=_0x5a906a-0xce;var _0x478348=a827_0x4783[_0x5a906a];return _0x478348;};var a827_0x553e26=a827_0x4d20;function options(_0x29639c){return{'sequelize':_0x29639c,'tableName':'user_has_voice_queues_rt','paranoid':![],'indexes':[],'timestamps':!![]};}module[a827_0x553e26(0xcf)][a827_0x553e26(0xce)]=options; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js index 1d23dff..b26654a 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js @@ -1 +1 @@ -const a828_0x337a=['error','../../rediscache','../../config/logger','where','../../mysqldb','info','GetVoiceQueueRtPauses','stringify','raw','message','./userVoiceQueueRt.socket','`paused`\x20=\x201,\x201,\x20null','then','options','UserVoiceQueueRt','rpc','register'];(function(_0x5722a3,_0x1e5896){const _0x337a1e=function(_0x1ff288){while(--_0x1ff288){_0x5722a3['push'](_0x5722a3['shift']());}};_0x337a1e(++_0x1e5896);}(a828_0x337a,0x75));const a828_0x1ff2=function(_0x5722a3,_0x1e5896){_0x5722a3=_0x5722a3-0x1a1;let _0x337a1e=a828_0x337a[_0x5722a3];return _0x337a1e;};const a828_0x28c96c=a828_0x1ff2;'use strict';const db=require(a828_0x28c96c(0x1a7))['db'],{fn,literal}=require('sequelize'),logger=require(a828_0x28c96c(0x1a5))(a828_0x28c96c(0x1a1)),{getSocket}=require(a828_0x28c96c(0x1a4)),socket=getSocket();require(a828_0x28c96c(0x1ad))[a828_0x28c96c(0x1a2)](socket),exports[a828_0x28c96c(0x1a9)]=function(_0x5ed261){const _0x3f579e=this;return new Promise(function(_0xddf043,_0x51a1ab){const _0x3870b7=a828_0x1ff2;return db[_0x3870b7(0x1b1)]['findAll']({'raw':_0x5ed261[_0x3870b7(0x1b0)]?_0x5ed261[_0x3870b7(0x1b0)][_0x3870b7(0x1ab)]===undefined?!![]:![]:!![],'where':_0x5ed261[_0x3870b7(0x1b0)]?_0x5ed261[_0x3870b7(0x1b0)][_0x3870b7(0x1a6)]||null:null,'attributes':[[fn('COUNT',fn('IF',literal(_0x3870b7(0x1ae)))),'outboundQueuePauses']]})[_0x3870b7(0x1af)](function(_0x123544){const _0xb9b637=_0x3870b7;logger[_0xb9b637(0x1a8)](_0xb9b637(0x1a9),_0x5ed261),logger['debug'](_0xb9b637(0x1a9),_0x5ed261,JSON[_0xb9b637(0x1aa)](_0x123544)),_0xddf043(_0x123544);})['catch'](function(_0x10a7c7){const _0x5f69e7=_0x3870b7;logger[_0x5f69e7(0x1a3)]('GetVoiceQueueRtPauses',_0x10a7c7[_0x5f69e7(0x1ac)],_0x5ed261),_0x51a1ab(_0x3f579e[_0x5f69e7(0x1a3)](0x1f4,_0x10a7c7[_0x5f69e7(0x1ac)]));});});}; \ No newline at end of file +const a828_0x4ab3=['UserVoiceQueueRt','register','error','debug','../../mysqldb','rpc','message','`paused`\x20=\x201,\x201,\x20null','options','where','stringify','GetVoiceQueueRtPauses','../../rediscache','findAll','COUNT','sequelize','catch','outboundQueuePauses','then','raw'];(function(_0x3a9439,_0x535602){const _0x4ab31f=function(_0x1c362d){while(--_0x1c362d){_0x3a9439['push'](_0x3a9439['shift']());}};_0x4ab31f(++_0x535602);}(a828_0x4ab3,0x170));const a828_0x1c36=function(_0x3a9439,_0x535602){_0x3a9439=_0x3a9439-0x12a;let _0x4ab31f=a828_0x4ab3[_0x3a9439];return _0x4ab31f;};const a828_0x287d58=a828_0x1c36;'use strict';const db=require(a828_0x287d58(0x13a))['db'],{fn,literal}=require(a828_0x287d58(0x131)),logger=require('../../config/logger')(a828_0x287d58(0x13b)),{getSocket}=require(a828_0x287d58(0x12e)),socket=getSocket();require('./userVoiceQueueRt.socket')[a828_0x287d58(0x137)](socket),exports[a828_0x287d58(0x12d)]=function(_0x491a3e){const _0x259761=this;return new Promise(function(_0x2a78e0,_0x51a85c){const _0x3171d2=a828_0x1c36;return db[_0x3171d2(0x136)][_0x3171d2(0x12f)]({'raw':_0x491a3e['options']?_0x491a3e[_0x3171d2(0x12a)][_0x3171d2(0x135)]===undefined?!![]:![]:!![],'where':_0x491a3e['options']?_0x491a3e['options'][_0x3171d2(0x12b)]||null:null,'attributes':[[fn(_0x3171d2(0x130),fn('IF',literal(_0x3171d2(0x13d)))),_0x3171d2(0x133)]]})[_0x3171d2(0x134)](function(_0x4fabc0){const _0x2c3b3c=_0x3171d2;logger['info'](_0x2c3b3c(0x12d),_0x491a3e),logger[_0x2c3b3c(0x139)](_0x2c3b3c(0x12d),_0x491a3e,JSON[_0x2c3b3c(0x12c)](_0x4fabc0)),_0x2a78e0(_0x4fabc0);})[_0x3171d2(0x132)](function(_0x52e66d){const _0x1c6a02=_0x3171d2;logger[_0x1c6a02(0x138)](_0x1c6a02(0x12d),_0x52e66d[_0x1c6a02(0x13c)],_0x491a3e),_0x51a85c(_0x259761['error'](0x1f4,_0x52e66d[_0x1c6a02(0x13c)]));});});}; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js index fe7828c..9d97df1 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js @@ -1 +1 @@ -const a829_0x3276=['register','update','remove','save','length'];(function(_0x283f2d,_0x91eb1e){const _0x327649=function(_0x12f510){while(--_0x12f510){_0x283f2d['push'](_0x283f2d['shift']());}};_0x327649(++_0x91eb1e);}(a829_0x3276,0x138));const a829_0x12f5=function(_0x283f2d,_0x91eb1e){_0x283f2d=_0x283f2d-0x121;let _0x327649=a829_0x3276[_0x283f2d];return _0x327649;};const a829_0x12c3de=a829_0x12f5;'use strict';const UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events'),events=[a829_0x12c3de(0x122),a829_0x12c3de(0x121),a829_0x12c3de(0x125)];function createListener(_0xe9d03e,_0x3a97d1){return function(_0x27d722){_0x3a97d1['emit'](_0xe9d03e,_0x27d722);};}exports[a829_0x12c3de(0x124)]=function(_0x529520){const _0xd376bd=a829_0x12c3de;for(let _0x18a7b7=0x0,_0x3f03bc=events[_0xd376bd(0x123)];_0x18a7b7<_0x3f03bc;_0x18a7b7++){const _0x2e15b8=events[_0x18a7b7],_0x37dd69=createListener('userVoiceQueueRt:'+_0x2e15b8,_0x529520);UserVoiceQueueRtEvents['on'](_0x2e15b8,_0x37dd69);}}; \ No newline at end of file +const a829_0x2e6e=['length','remove','save','userVoiceQueueRt:','./userVoiceQueueRt.events','emit'];(function(_0x362477,_0xeb8793){const _0x2e6e6a=function(_0x692236){while(--_0x692236){_0x362477['push'](_0x362477['shift']());}};_0x2e6e6a(++_0xeb8793);}(a829_0x2e6e,0x164));const a829_0x6922=function(_0x362477,_0xeb8793){_0x362477=_0x362477-0x10e;let _0x2e6e6a=a829_0x2e6e[_0x362477];return _0x2e6e6a;};const a829_0x18c6cb=a829_0x6922;'use strict';const UserVoiceQueueRtEvents=require(a829_0x18c6cb(0x110)),events=[a829_0x18c6cb(0x10e),a829_0x18c6cb(0x113),'update'];function createListener(_0x405de2,_0x42a592){return function(_0xcc1c69){const _0x308b6f=a829_0x6922;_0x42a592[_0x308b6f(0x111)](_0x405de2,_0xcc1c69);};}exports['register']=function(_0x10cdd9){const _0x4586c6=a829_0x18c6cb;for(let _0x54bc25=0x0,_0x579712=events[_0x4586c6(0x112)];_0x54bc25<_0x579712;_0x54bc25++){const _0x42adde=events[_0x54bc25],_0x5747ad=createListener(_0x4586c6(0x10f)+_0x42adde,_0x10cdd9);UserVoiceQueueRtEvents['on'](_0x42adde,_0x5747ad);}}; \ No newline at end of file diff --git a/server/api/userWhatsappQueue/index.js b/server/api/userWhatsappQueue/index.js index 0bcb4de..5ec2e12 100644 --- a/server/api/userWhatsappQueue/index.js +++ b/server/api/userWhatsappQueue/index.js @@ -1 +1 @@ -const a830_0x25bc=['express','exports'];(function(_0x5046ed,_0x3b1076){const _0x25bcb1=function(_0x555b1f){while(--_0x555b1f){_0x5046ed['push'](_0x5046ed['shift']());}};_0x25bcb1(++_0x3b1076);}(a830_0x25bc,0x11b));const a830_0x555b=function(_0x5046ed,_0x3b1076){_0x5046ed=_0x5046ed-0x133;let _0x25bcb1=a830_0x25bc[_0x5046ed];return _0x25bcb1;};const a830_0x303d87=a830_0x555b;'use strict';const express=require(a830_0x303d87(0x134)),router=express['Router']();module[a830_0x303d87(0x133)]=router; \ No newline at end of file +const a830_0x1aac=['exports','express'];(function(_0x5ea8c9,_0x46db5f){const _0x1aac20=function(_0x293878){while(--_0x293878){_0x5ea8c9['push'](_0x5ea8c9['shift']());}};_0x1aac20(++_0x46db5f);}(a830_0x1aac,0x68));const a830_0x2938=function(_0x5ea8c9,_0x46db5f){_0x5ea8c9=_0x5ea8c9-0x9b;let _0x1aac20=a830_0x1aac[_0x5ea8c9];return _0x1aac20;};const a830_0x49b0d6=a830_0x2938;'use strict';const express=require(a830_0x49b0d6(0x9c)),router=express['Router']();module[a830_0x49b0d6(0x9b)]=router; \ No newline at end of file diff --git a/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js b/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js index 8b4998a..9669446 100644 --- a/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js +++ b/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js @@ -1 +1 @@ -const a831_0x34e2=['exports','INTEGER','attributes'];(function(_0x31b9fb,_0x36a15d){const _0x34e2ac=function(_0x1229e8){while(--_0x1229e8){_0x31b9fb['push'](_0x31b9fb['shift']());}};_0x34e2ac(++_0x36a15d);}(a831_0x34e2,0xb2));const a831_0x1229=function(_0x31b9fb,_0x36a15d){_0x31b9fb=_0x31b9fb-0xf9;let _0x34e2ac=a831_0x34e2[_0x31b9fb];return _0x34e2ac;};const a831_0x13506a=a831_0x1229;'use strict';const {DataTypes}=require('sequelize'),attributes={'penalty':{'type':DataTypes[a831_0x13506a(0xf9)],'defaultValue':0x0}};module[a831_0x13506a(0xfb)][a831_0x13506a(0xfa)]=attributes; \ No newline at end of file +const a831_0x2054=['sequelize','exports'];(function(_0xa8ae3c,_0x4af070){const _0x2054e8=function(_0x5119fb){while(--_0x5119fb){_0xa8ae3c['push'](_0xa8ae3c['shift']());}};_0x2054e8(++_0x4af070);}(a831_0x2054,0x1a1));const a831_0x5119=function(_0xa8ae3c,_0x4af070){_0xa8ae3c=_0xa8ae3c-0x1eb;let _0x2054e8=a831_0x2054[_0xa8ae3c];return _0x2054e8;};const a831_0x5eb7b8=a831_0x5119;'use strict';const {DataTypes}=require(a831_0x5eb7b8(0x1ec)),attributes={'penalty':{'type':DataTypes['INTEGER'],'defaultValue':0x0}};module[a831_0x5eb7b8(0x1eb)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/userWhatsappQueue/userWhatsappQueue.model.js b/server/api/userWhatsappQueue/userWhatsappQueue.model.js index 8f6e32e..af9a8d0 100644 --- a/server/api/userWhatsappQueue/userWhatsappQueue.model.js +++ b/server/api/userWhatsappQueue/userWhatsappQueue.model.js @@ -1 +1 @@ -const a832_0x5b8b=['./userWhatsappQueue.options','function','UserWhatsappQueue','exports','./userWhatsappQueue.attributes','sequelize','init'];(function(_0x134cab,_0x320f2d){const _0x5b8bac=function(_0x5d2974){while(--_0x5d2974){_0x134cab['push'](_0x134cab['shift']());}};_0x5b8bac(++_0x320f2d);}(a832_0x5b8b,0x1c9));const a832_0x5d29=function(_0x134cab,_0x320f2d){_0x134cab=_0x134cab-0xd1;let _0x5b8bac=a832_0x5b8b[_0x134cab];return _0x5b8bac;};const a832_0x35947f=a832_0x5d29;'use strict';const {Model}=require(a832_0x35947f(0xd4)),{attributes}=require(a832_0x35947f(0xd3)),{options}=require(a832_0x35947f(0xd6));class UserWhatsappQueue extends Model{}function init(_0x3097f6,_0x2b67f2){const _0x4a2432=a832_0x35947f,_0x2cbc01=options(_0x3097f6),_0x34df21=typeof _0x2b67f2===_0x4a2432(0xd7)?_0x2b67f2(_0x2cbc01):_0x2cbc01;return UserWhatsappQueue['init'](attributes,_0x34df21),UserWhatsappQueue;}module[a832_0x35947f(0xd2)][a832_0x35947f(0xd1)]=UserWhatsappQueue,module[a832_0x35947f(0xd2)][a832_0x35947f(0xd5)]=init; \ No newline at end of file +const a832_0x3573=['init','function','sequelize','UserWhatsappQueue','./userWhatsappQueue.attributes','exports'];(function(_0x1f915b,_0xeab505){const _0x3573b4=function(_0x3714c4){while(--_0x3714c4){_0x1f915b['push'](_0x1f915b['shift']());}};_0x3573b4(++_0xeab505);}(a832_0x3573,0xbd));const a832_0x3714=function(_0x1f915b,_0xeab505){_0x1f915b=_0x1f915b-0xfc;let _0x3573b4=a832_0x3573[_0x1f915b];return _0x3573b4;};const a832_0x3c1703=a832_0x3714;'use strict';const {Model}=require(a832_0x3c1703(0x101)),{attributes}=require(a832_0x3c1703(0xfd)),{options}=require('./userWhatsappQueue.options');class UserWhatsappQueue extends Model{}function init(_0xe8e3c7,_0x2b57d1){const _0xd309a8=a832_0x3c1703,_0x201cc6=options(_0xe8e3c7),_0x483bca=typeof _0x2b57d1===_0xd309a8(0x100)?_0x2b57d1(_0x201cc6):_0x201cc6;return UserWhatsappQueue[_0xd309a8(0xff)](attributes,_0x483bca),UserWhatsappQueue;}module[a832_0x3c1703(0xfe)][a832_0x3c1703(0xfc)]=UserWhatsappQueue,module[a832_0x3c1703(0xfe)][a832_0x3c1703(0xff)]=init; \ No newline at end of file diff --git a/server/api/userWhatsappQueue/userWhatsappQueue.options.js b/server/api/userWhatsappQueue/userWhatsappQueue.options.js index 55e9ec9..1f6454f 100644 --- a/server/api/userWhatsappQueue/userWhatsappQueue.options.js +++ b/server/api/userWhatsappQueue/userWhatsappQueue.options.js @@ -1 +1 @@ -var a833_0x56ce=['exports','user_has_whatsapp_queues'];(function(_0x534319,_0x223a67){var _0x56ce58=function(_0x3d6879){while(--_0x3d6879){_0x534319['push'](_0x534319['shift']());}};_0x56ce58(++_0x223a67);}(a833_0x56ce,0xea));var a833_0x3d68=function(_0x534319,_0x223a67){_0x534319=_0x534319-0x121;var _0x56ce58=a833_0x56ce[_0x534319];return _0x56ce58;};var a833_0x5b0e8d=a833_0x3d68;function options(_0x4295c0){var _0x5232df=a833_0x3d68;return{'sequelize':_0x4295c0,'tableName':_0x5232df(0x122),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a833_0x5b0e8d(0x121)]['options']=options; \ No newline at end of file +var a833_0x194b=['options','user_has_whatsapp_queues','exports'];(function(_0x5a87c7,_0x1b6509){var _0x194b9a=function(_0x536f6b){while(--_0x536f6b){_0x5a87c7['push'](_0x5a87c7['shift']());}};_0x194b9a(++_0x1b6509);}(a833_0x194b,0x199));var a833_0x536f=function(_0x5a87c7,_0x1b6509){_0x5a87c7=_0x5a87c7-0x14d;var _0x194b9a=a833_0x194b[_0x5a87c7];return _0x194b9a;};var a833_0x42007f=a833_0x536f;function options(_0x5cc01f){var _0x4b6f15=a833_0x536f;return{'sequelize':_0x5cc01f,'tableName':_0x4b6f15(0x14d),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a833_0x42007f(0x14e)][a833_0x42007f(0x14f)]=options; \ No newline at end of file diff --git a/server/api/variable/index.js b/server/api/variable/index.js index 8eba24c..2bfdec5 100644 --- a/server/api/variable/index.js +++ b/server/api/variable/index.js @@ -1 +1 @@ -const a834_0x1684=['/:id','delete','update','index','destroy','express','get','../../components/auth/service','Router','isAuthenticated','create'];(function(_0x6008d5,_0x419142){const _0x1684d6=function(_0x3867c2){while(--_0x3867c2){_0x6008d5['push'](_0x6008d5['shift']());}};_0x1684d6(++_0x419142);}(a834_0x1684,0x14f));const a834_0x3867=function(_0x6008d5,_0x419142){_0x6008d5=_0x6008d5-0x145;let _0x1684d6=a834_0x1684[_0x6008d5];return _0x1684d6;};const a834_0x66aca4=a834_0x3867;'use strict';const express=require(a834_0x66aca4(0x145)),router=express[a834_0x66aca4(0x148)](),auth=require(a834_0x66aca4(0x147)),controller=require('./variable.controller');router[a834_0x66aca4(0x146)]('/',auth['isAuthenticated'](),controller[a834_0x66aca4(0x14e)]),router[a834_0x66aca4(0x146)](a834_0x66aca4(0x14b),auth[a834_0x66aca4(0x149)](),controller['show']),router['post']('/',auth[a834_0x66aca4(0x149)](),controller[a834_0x66aca4(0x14a)]),router['put'](a834_0x66aca4(0x14b),auth[a834_0x66aca4(0x149)](),controller[a834_0x66aca4(0x14d)]),router[a834_0x66aca4(0x14c)]('/:id',auth[a834_0x66aca4(0x149)](),controller[a834_0x66aca4(0x14f)]),module['exports']=router; \ No newline at end of file +const a834_0x5556=['./variable.controller','get','../../components/auth/service','post','exports','update','create','/:id','isAuthenticated'];(function(_0x397709,_0x3e325e){const _0x555689=function(_0x3f420c){while(--_0x3f420c){_0x397709['push'](_0x397709['shift']());}};_0x555689(++_0x3e325e);}(a834_0x5556,0xf0));const a834_0x3f42=function(_0x397709,_0x3e325e){_0x397709=_0x397709-0x145;let _0x555689=a834_0x5556[_0x397709];return _0x555689;};const a834_0x3a8a89=a834_0x3f42;'use strict';const express=require('express'),router=express['Router'](),auth=require(a834_0x3a8a89(0x14a)),controller=require(a834_0x3a8a89(0x148));router[a834_0x3a8a89(0x149)]('/',auth[a834_0x3a8a89(0x147)](),controller['index']),router[a834_0x3a8a89(0x149)](a834_0x3a8a89(0x146),auth[a834_0x3a8a89(0x147)](),controller['show']),router[a834_0x3a8a89(0x14b)]('/',auth[a834_0x3a8a89(0x147)](),controller[a834_0x3a8a89(0x145)]),router['put'](a834_0x3a8a89(0x146),auth[a834_0x3a8a89(0x147)](),controller[a834_0x3a8a89(0x14d)]),router['delete'](a834_0x3a8a89(0x146),auth['isAuthenticated'](),controller['destroy']),module[a834_0x3a8a89(0x14c)]=router; \ No newline at end of file diff --git a/server/api/variable/variable.attributes.js b/server/api/variable/variable.attributes.js index eb4fe86..19e4b57 100644 --- a/server/api/variable/variable.attributes.js +++ b/server/api/variable/variable.attributes.js @@ -1 +1 @@ -const a835_0x5d83=['sequelize','name','attributes','STRING','exports'];(function(_0x2968c3,_0x2ab803){const _0x5d831d=function(_0x323e5e){while(--_0x323e5e){_0x2968c3['push'](_0x2968c3['shift']());}};_0x5d831d(++_0x2ab803);}(a835_0x5d83,0xbb));const a835_0x323e=function(_0x2968c3,_0x2ab803){_0x2968c3=_0x2968c3-0x76;let _0x5d831d=a835_0x5d83[_0x2968c3];return _0x5d831d;};const a835_0x4f3142=a835_0x323e;'use strict';const {DataTypes}=require(a835_0x4f3142(0x79)),attributes={'name':{'type':DataTypes['STRING'],'unique':a835_0x4f3142(0x7a),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':DataTypes[a835_0x4f3142(0x77)]}};module[a835_0x4f3142(0x78)][a835_0x4f3142(0x76)]=attributes; \ No newline at end of file +const a835_0x4b15=['sequelize','exports','attributes','name','STRING'];(function(_0x94a42c,_0x41d2f9){const _0x4b1573=function(_0x26a888){while(--_0x26a888){_0x94a42c['push'](_0x94a42c['shift']());}};_0x4b1573(++_0x41d2f9);}(a835_0x4b15,0xe4));const a835_0x26a8=function(_0x94a42c,_0x41d2f9){_0x94a42c=_0x94a42c-0x15a;let _0x4b1573=a835_0x4b15[_0x94a42c];return _0x4b1573;};const a835_0x5c2dbe=a835_0x26a8;'use strict';const {DataTypes}=require(a835_0x5c2dbe(0x15c)),attributes={'name':{'type':DataTypes[a835_0x5c2dbe(0x15b)],'unique':a835_0x5c2dbe(0x15a),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':DataTypes[a835_0x5c2dbe(0x15b)]}};module[a835_0x5c2dbe(0x15d)][a835_0x5c2dbe(0x15e)]=attributes; \ No newline at end of file diff --git a/server/api/variable/variable.controller.js b/server/api/variable/variable.controller.js index bcdf5c8..a9350a8 100644 --- a/server/api/variable/variable.controller.js +++ b/server/api/variable/variable.controller.js @@ -1 +1 @@ -const a836_0x3fb0=['pick','like','Content-Range','get','count','rawAttributes','length','offset','stack','../../components/parsers/qs','include','undefined','Variables','where','status','findOne','nolimit','userProfileId','json','end','../../mysqldb','options','fieldName','findAll','VIRTUAL','includeAll','then','create','destroy','type','fields','key','body','lodash','user','model','sequelize','name','show','Unable\x20to\x20retrieve\x20the\x20current\x20user','UserProfileResource','params','limit','attributes','Variable','keys','error','rows','../../config/logger','update','query','filter','sort','order','map','filters','merge','sendStatus','catch','intersection'];(function(_0x330c73,_0x3dd777){const _0x3fb048=function(_0x23e053){while(--_0x23e053){_0x330c73['push'](_0x330c73['shift']());}};_0x3fb048(++_0x3dd777);}(a836_0x3fb0,0x1b9));const a836_0x23e0=function(_0x330c73,_0x3dd777){_0x330c73=_0x330c73-0x1ec;let _0x3fb048=a836_0x3fb0[_0x330c73];return _0x3fb048;};const a836_0x359ad7=a836_0x23e0;'use strict';const _=require(a836_0x359ad7(0x1f8)),qs=require(a836_0x359ad7(0x21c)),logger=require(a836_0x359ad7(0x207))('api'),{db}=require(a836_0x359ad7(0x227)),{Op}=require(a836_0x359ad7(0x1fb));function respondWithResult(_0x151f42,_0x126d74){return _0x126d74=_0x126d74||0xc8,function(_0x47c428){const _0x25cc8a=a836_0x23e0;if(_0x47c428)return _0x151f42[_0x25cc8a(0x221)](_0x126d74)['json'](_0x47c428);};}function respondWithFilteredResult(_0x398f3a,_0x243608){return function(_0x5ee06f){const _0x124d06=a836_0x23e0;if(_0x5ee06f){const _0x37bd40=_0x5ee06f[_0x124d06(0x217)],_0x4346c9=_0x243608[_0x124d06(0x21a)];let _0x1b01a3=_0x243608[_0x124d06(0x21a)]+_0x243608['limit'],_0x531f7a;return _0x1b01a3>=_0x37bd40?(_0x1b01a3=_0x37bd40,_0x531f7a=0xc8):_0x531f7a=0xce,_0x398f3a[_0x124d06(0x221)](_0x531f7a),_0x398f3a['set'](_0x124d06(0x215),_0x4346c9+'-'+_0x1b01a3+'/'+_0x37bd40)[_0x124d06(0x225)](_0x5ee06f);}return null;};}function saveUpdates(_0x3b1ffc){return function(_0x168c78){const _0x451569=a836_0x23e0;if(_0x168c78)return _0x168c78[_0x451569(0x208)](_0x3b1ffc)[_0x451569(0x1f1)](function(_0x4c9f7d){return _0x4c9f7d;});return null;};}function removeEntity(_0x361c88){return function(_0x2d18b7){const _0x518f0e=a836_0x23e0;if(_0x2d18b7)return _0x2d18b7['destroy']()[_0x518f0e(0x1f1)](function(){const _0x357755=_0x518f0e,_0xa8c00b=_0x2d18b7[_0x357755(0x216)]({'plain':!![]}),_0x234dc5='Variables';return db[_0x357755(0x1ff)][_0x357755(0x1f3)]({'where':{'type':_0x234dc5,'resourceId':_0xa8c00b['id']}})[_0x357755(0x1f1)](function(){return _0x2d18b7;});})[_0x518f0e(0x1f1)](function(){const _0x37c209=_0x518f0e;_0x361c88[_0x37c209(0x221)](0xcc)[_0x37c209(0x226)]();});};}function handleEntityNotFound(_0x19e3db){return function(_0x2ac8d5){const _0x27331d=a836_0x23e0;return!_0x2ac8d5&&_0x19e3db[_0x27331d(0x210)](0x194),_0x2ac8d5;};}function handleError(_0x5735d1,_0x38f336){return _0x38f336=_0x38f336||0x1f4,function(_0x47d4a8){const _0x6ea887=a836_0x23e0;logger[_0x6ea887(0x205)](_0x47d4a8[_0x6ea887(0x21b)]),_0x47d4a8[_0x6ea887(0x1fc)]&&delete _0x47d4a8[_0x6ea887(0x1fc)],_0x5735d1[_0x6ea887(0x221)](_0x38f336)['send'](_0x47d4a8);};}exports['index']=function(_0x3eba93,_0x4d815b){const _0x3bb1cf=a836_0x359ad7;let _0xc85a50={};const _0x2d0471={},_0x2325b5={'count':0x0,'rows':[]},_0xc8661a=_[_0x3bb1cf(0x20d)](db[_0x3bb1cf(0x203)]['rawAttributes'],function(_0x444011){const _0x20b30b=_0x3bb1cf;return{'name':_0x444011[_0x20b30b(0x1ed)],'type':_0x444011['type'][_0x20b30b(0x1f6)]};});_0x2d0471[_0x3bb1cf(0x1fa)]=_[_0x3bb1cf(0x20d)](_0xc8661a,_0x3bb1cf(0x1fc)),_0x2d0471['query']=_[_0x3bb1cf(0x204)](_0x3eba93[_0x3bb1cf(0x209)]),_0x2d0471[_0x3bb1cf(0x20e)]=_[_0x3bb1cf(0x212)](_0x2d0471[_0x3bb1cf(0x1fa)],_0x2d0471[_0x3bb1cf(0x209)]),_0xc85a50['attributes']=_[_0x3bb1cf(0x212)](_0x2d0471[_0x3bb1cf(0x1fa)],qs[_0x3bb1cf(0x1f5)](_0x3eba93[_0x3bb1cf(0x209)]['fields'])),_0xc85a50[_0x3bb1cf(0x202)]=_0xc85a50[_0x3bb1cf(0x202)][_0x3bb1cf(0x219)]?_0xc85a50['attributes']:_0x2d0471['model'];typeof _0x3eba93[_0x3bb1cf(0x209)][_0x3bb1cf(0x223)]===_0x3bb1cf(0x21e)&&(_0xc85a50[_0x3bb1cf(0x201)]=qs[_0x3bb1cf(0x201)](_0x3eba93[_0x3bb1cf(0x209)][_0x3bb1cf(0x201)]),_0xc85a50['offset']=qs[_0x3bb1cf(0x21a)](_0x3eba93[_0x3bb1cf(0x209)][_0x3bb1cf(0x21a)]));_0xc85a50[_0x3bb1cf(0x20c)]=qs[_0x3bb1cf(0x20b)](_0x3eba93[_0x3bb1cf(0x209)][_0x3bb1cf(0x20b)]),_0xc85a50['where']=qs[_0x3bb1cf(0x20e)](_[_0x3bb1cf(0x213)](_0x3eba93[_0x3bb1cf(0x209)],_0x2d0471[_0x3bb1cf(0x20e)]),_0xc8661a);_0x3eba93['query'][_0x3bb1cf(0x20a)]&&(_0xc85a50[_0x3bb1cf(0x220)]=_[_0x3bb1cf(0x20f)](_0xc85a50[_0x3bb1cf(0x220)],{[Op['or']]:_[_0x3bb1cf(0x20d)](_0xc8661a,function(_0xf67ec3){const _0x2db9fb=_0x3bb1cf;if(_0xf67ec3[_0x2db9fb(0x1f4)]!==_0x2db9fb(0x1ef)){const _0x1fc5d3={};return _0x1fc5d3[_0xf67ec3[_0x2db9fb(0x1fc)]]={[Op[_0x2db9fb(0x214)]]:'%'+_0x3eba93[_0x2db9fb(0x209)][_0x2db9fb(0x20a)]+'%'},_0x1fc5d3;}})}));_0xc85a50=_[_0x3bb1cf(0x20f)]({},_0xc85a50,_0x3eba93['options']);const _0x5856f4={'where':_0xc85a50[_0x3bb1cf(0x220)]};return db[_0x3bb1cf(0x203)][_0x3bb1cf(0x217)](_0x5856f4)[_0x3bb1cf(0x1f1)](function(_0xcb1788){const _0xec7bfc=_0x3bb1cf;return _0x2325b5['count']=_0xcb1788,_0x3eba93['query'][_0xec7bfc(0x1f0)]&&(_0xc85a50[_0xec7bfc(0x21d)]=[{'all':!![]}]),db[_0xec7bfc(0x203)][_0xec7bfc(0x1ee)](_0xc85a50);})[_0x3bb1cf(0x1f1)](function(_0x4c61a1){const _0x24e057=_0x3bb1cf;return _0x2325b5[_0x24e057(0x206)]=_0x4c61a1,_0x2325b5;})[_0x3bb1cf(0x1f1)](respondWithFilteredResult(_0x4d815b,_0xc85a50))['catch'](handleError(_0x4d815b,null));},exports[a836_0x359ad7(0x1fd)]=function(_0x18ff97,_0x86252a){const _0x18cf7f=a836_0x359ad7;let _0x46cc87={'raw':!![],'where':{'id':_0x18ff97[_0x18cf7f(0x200)]['id']}};const _0x31fef7={};return _0x31fef7[_0x18cf7f(0x1fa)]=_[_0x18cf7f(0x204)](db[_0x18cf7f(0x203)][_0x18cf7f(0x218)]),_0x31fef7[_0x18cf7f(0x209)]=_[_0x18cf7f(0x204)](_0x18ff97['query']),_0x31fef7[_0x18cf7f(0x20e)]=_['intersection'](_0x31fef7[_0x18cf7f(0x1fa)],_0x31fef7['query']),_0x46cc87[_0x18cf7f(0x202)]=_[_0x18cf7f(0x212)](_0x31fef7['model'],qs[_0x18cf7f(0x1f5)](_0x18ff97[_0x18cf7f(0x209)][_0x18cf7f(0x1f5)])),_0x46cc87['attributes']=_0x46cc87['attributes'][_0x18cf7f(0x219)]?_0x46cc87['attributes']:_0x31fef7['model'],_0x18ff97[_0x18cf7f(0x209)][_0x18cf7f(0x1f0)]&&(_0x46cc87[_0x18cf7f(0x21d)]=[{'all':!![]}]),_0x46cc87=_['merge']({},_0x46cc87,_0x18ff97[_0x18cf7f(0x1ec)]),db['Variable'][_0x18cf7f(0x222)](_0x46cc87)[_0x18cf7f(0x1f1)](handleEntityNotFound(_0x86252a,null))['then'](respondWithResult(_0x86252a,null))[_0x18cf7f(0x211)](handleError(_0x86252a,null));},exports[a836_0x359ad7(0x1f2)]=function(_0x80fc8c,_0x402807){const _0x4c2096=a836_0x359ad7;return db[_0x4c2096(0x203)][_0x4c2096(0x1f2)](_0x80fc8c[_0x4c2096(0x1f7)],{})[_0x4c2096(0x1f1)](function(_0x16368f){const _0x571aed=_0x4c2096,_0x4b510d=_0x80fc8c[_0x571aed(0x1f9)][_0x571aed(0x216)]({'plain':!![]});if(!_0x4b510d)throw new Error(_0x571aed(0x1fe));if(_0x4b510d['role']===_0x571aed(0x1f9)){const _0x489b39=_0x16368f[_0x571aed(0x216)]({'plain':!![]}),_0x4967fd=_0x571aed(0x21f);return db['UserProfileSection']['findOne']({'where':{'name':_0x4967fd,'userProfileId':_0x4b510d[_0x571aed(0x224)]},'raw':!![]})[_0x571aed(0x1f1)](function(_0x1f97c3){const _0x5adc79=_0x571aed;return _0x1f97c3&&_0x1f97c3['autoAssociation']===0x0?db['UserProfileResource'][_0x5adc79(0x1f2)]({'name':_0x489b39[_0x5adc79(0x1fc)],'resourceId':_0x489b39['id'],'type':_0x1f97c3[_0x5adc79(0x1fc)],'sectionId':_0x1f97c3['id']},{})['then'](function(){return _0x16368f;}):_0x16368f;})[_0x571aed(0x211)](function(_0x1b1f4f){const _0x134893=_0x571aed;logger[_0x134893(0x205)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x1b1f4f);throw _0x1b1f4f;});}return _0x16368f;})[_0x4c2096(0x1f1)](respondWithResult(_0x402807,0xc9))[_0x4c2096(0x211)](handleError(_0x402807,null));},exports[a836_0x359ad7(0x208)]=function(_0x2c82b8,_0x2873a0){const _0x3da40f=a836_0x359ad7;return _0x2c82b8[_0x3da40f(0x1f7)]['id']&&delete _0x2c82b8['body']['id'],db[_0x3da40f(0x203)]['findOne']({'where':{'id':_0x2c82b8['params']['id']}})['then'](handleEntityNotFound(_0x2873a0,null))[_0x3da40f(0x1f1)](saveUpdates(_0x2c82b8[_0x3da40f(0x1f7)],null))['then'](respondWithResult(_0x2873a0,null))[_0x3da40f(0x211)](handleError(_0x2873a0,null));},exports['destroy']=function(_0x3a297f,_0x471d04){const _0x1451f2=a836_0x359ad7;return db[_0x1451f2(0x203)][_0x1451f2(0x222)]({'where':{'id':_0x3a297f[_0x1451f2(0x200)]['id']}})[_0x1451f2(0x1f1)](handleEntityNotFound(_0x471d04,null))[_0x1451f2(0x1f1)](removeEntity(_0x471d04,null))[_0x1451f2(0x211)](handleError(_0x471d04,null));}; \ No newline at end of file +const a836_0x1505=['like','stack','keys','send','status','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','lodash','index','nolimit','catch','rows','pick','json','set','count','Content-Range','Variable','sequelize','user','sendStatus','Unable\x20to\x20retrieve\x20the\x20current\x20user','create','body','rawAttributes','show','UserProfileSection','VIRTUAL','where','sort','role','order','update','length','../../config/logger','params','intersection','../../components/parsers/qs','end','type','autoAssociation','then','offset','merge','options','filters','UserProfileResource','filter','attributes','error','get','findOne','map','query','name','include','destroy','Variables','../../mysqldb','fields','model'];(function(_0x6c5935,_0x144b75){const _0x15053f=function(_0xfe0be7){while(--_0xfe0be7){_0x6c5935['push'](_0x6c5935['shift']());}};_0x15053f(++_0x144b75);}(a836_0x1505,0x187));const a836_0xfe0b=function(_0x6c5935,_0x144b75){_0x6c5935=_0x6c5935-0xb3;let _0x15053f=a836_0x1505[_0x6c5935];return _0x15053f;};const a836_0x15f5ef=a836_0xfe0b;'use strict';const _=require(a836_0x15f5ef(0xd6)),qs=require(a836_0x15f5ef(0xb8)),logger=require(a836_0x15f5ef(0xb5))('api'),{db}=require(a836_0x15f5ef(0xcd)),{Op}=require(a836_0x15f5ef(0xe1));function respondWithResult(_0x1d2556,_0x26b6cd){return _0x26b6cd=_0x26b6cd||0xc8,function(_0x2ee130){const _0x29d271=a836_0xfe0b;if(_0x2ee130)return _0x1d2556[_0x29d271(0xd4)](_0x26b6cd)[_0x29d271(0xdc)](_0x2ee130);};}function respondWithFilteredResult(_0x1cd2bc,_0x1825e4){return function(_0x1e2798){const _0x211924=a836_0xfe0b;if(_0x1e2798){const _0x283021=_0x1e2798['count'],_0x705933=_0x1825e4['offset'];let _0x55ca4e=_0x1825e4['offset']+_0x1825e4['limit'],_0x27d962;return _0x55ca4e>=_0x283021?(_0x55ca4e=_0x283021,_0x27d962=0xc8):_0x27d962=0xce,_0x1cd2bc[_0x211924(0xd4)](_0x27d962),_0x1cd2bc[_0x211924(0xdd)](_0x211924(0xdf),_0x705933+'-'+_0x55ca4e+'/'+_0x283021)[_0x211924(0xdc)](_0x1e2798);}return null;};}function saveUpdates(_0x227853){return function(_0x3a20c6){const _0x42944c=a836_0xfe0b;if(_0x3a20c6)return _0x3a20c6[_0x42944c(0xb3)](_0x227853)[_0x42944c(0xbc)](function(_0x1209f2){return _0x1209f2;});return null;};}function removeEntity(_0x3a1d28){return function(_0x2eafbd){const _0x59f807=a836_0xfe0b;if(_0x2eafbd)return _0x2eafbd[_0x59f807(0xcb)]()[_0x59f807(0xbc)](function(){const _0x5c7cfe=_0x59f807,_0x31bd08=_0x2eafbd[_0x5c7cfe(0xc5)]({'plain':!![]}),_0x55a5ef=_0x5c7cfe(0xcc);return db[_0x5c7cfe(0xc1)][_0x5c7cfe(0xcb)]({'where':{'type':_0x55a5ef,'resourceId':_0x31bd08['id']}})[_0x5c7cfe(0xbc)](function(){return _0x2eafbd;});})[_0x59f807(0xbc)](function(){const _0x138c9e=_0x59f807;_0x3a1d28[_0x138c9e(0xd4)](0xcc)[_0x138c9e(0xb9)]();});};}function handleEntityNotFound(_0x549200){return function(_0x3fe871){const _0x48ab1b=a836_0xfe0b;return!_0x3fe871&&_0x549200[_0x48ab1b(0xe3)](0x194),_0x3fe871;};}function handleError(_0x3192cc,_0x386eb2){return _0x386eb2=_0x386eb2||0x1f4,function(_0x3dc689){const _0x305777=a836_0xfe0b;logger[_0x305777(0xc4)](_0x3dc689[_0x305777(0xd1)]),_0x3dc689[_0x305777(0xc9)]&&delete _0x3dc689[_0x305777(0xc9)],_0x3192cc[_0x305777(0xd4)](_0x386eb2)[_0x305777(0xd3)](_0x3dc689);};}exports[a836_0x15f5ef(0xd7)]=function(_0xa32151,_0x316463){const _0x10bc69=a836_0x15f5ef;let _0x40275d={};const _0x299e5d={},_0x250cc1={'count':0x0,'rows':[]},_0x3884a5=_[_0x10bc69(0xc7)](db[_0x10bc69(0xe0)][_0x10bc69(0xe7)],function(_0x246258){const _0x25ad1c=_0x10bc69;return{'name':_0x246258['fieldName'],'type':_0x246258[_0x25ad1c(0xba)]['key']};});_0x299e5d[_0x10bc69(0xcf)]=_['map'](_0x3884a5,_0x10bc69(0xc9)),_0x299e5d[_0x10bc69(0xc8)]=_[_0x10bc69(0xd2)](_0xa32151[_0x10bc69(0xc8)]),_0x299e5d[_0x10bc69(0xc0)]=_[_0x10bc69(0xb7)](_0x299e5d[_0x10bc69(0xcf)],_0x299e5d[_0x10bc69(0xc8)]),_0x40275d[_0x10bc69(0xc3)]=_[_0x10bc69(0xb7)](_0x299e5d[_0x10bc69(0xcf)],qs[_0x10bc69(0xce)](_0xa32151[_0x10bc69(0xc8)][_0x10bc69(0xce)])),_0x40275d[_0x10bc69(0xc3)]=_0x40275d['attributes']['length']?_0x40275d[_0x10bc69(0xc3)]:_0x299e5d[_0x10bc69(0xcf)];typeof _0xa32151[_0x10bc69(0xc8)][_0x10bc69(0xd8)]==='undefined'&&(_0x40275d['limit']=qs['limit'](_0xa32151[_0x10bc69(0xc8)]['limit']),_0x40275d[_0x10bc69(0xbd)]=qs[_0x10bc69(0xbd)](_0xa32151[_0x10bc69(0xc8)]['offset']));_0x40275d[_0x10bc69(0xee)]=qs[_0x10bc69(0xec)](_0xa32151[_0x10bc69(0xc8)][_0x10bc69(0xec)]),_0x40275d[_0x10bc69(0xeb)]=qs[_0x10bc69(0xc0)](_[_0x10bc69(0xdb)](_0xa32151['query'],_0x299e5d['filters']),_0x3884a5);_0xa32151[_0x10bc69(0xc8)][_0x10bc69(0xc2)]&&(_0x40275d[_0x10bc69(0xeb)]=_[_0x10bc69(0xbe)](_0x40275d[_0x10bc69(0xeb)],{[Op['or']]:_[_0x10bc69(0xc7)](_0x3884a5,function(_0x38e7f3){const _0x470e0c=_0x10bc69;if(_0x38e7f3[_0x470e0c(0xba)]!==_0x470e0c(0xea)){const _0x5400c2={};return _0x5400c2[_0x38e7f3['name']]={[Op[_0x470e0c(0xd0)]]:'%'+_0xa32151[_0x470e0c(0xc8)][_0x470e0c(0xc2)]+'%'},_0x5400c2;}})}));_0x40275d=_[_0x10bc69(0xbe)]({},_0x40275d,_0xa32151[_0x10bc69(0xbf)]);const _0x2acedc={'where':_0x40275d[_0x10bc69(0xeb)]};return db[_0x10bc69(0xe0)][_0x10bc69(0xde)](_0x2acedc)[_0x10bc69(0xbc)](function(_0x234575){const _0xc8ef42=_0x10bc69;return _0x250cc1['count']=_0x234575,_0xa32151[_0xc8ef42(0xc8)]['includeAll']&&(_0x40275d[_0xc8ef42(0xca)]=[{'all':!![]}]),db['Variable']['findAll'](_0x40275d);})[_0x10bc69(0xbc)](function(_0x52aafc){const _0x3a577f=_0x10bc69;return _0x250cc1[_0x3a577f(0xda)]=_0x52aafc,_0x250cc1;})[_0x10bc69(0xbc)](respondWithFilteredResult(_0x316463,_0x40275d))['catch'](handleError(_0x316463,null));},exports[a836_0x15f5ef(0xe8)]=function(_0x17f6db,_0x2660e6){const _0x385160=a836_0x15f5ef;let _0x4cef0c={'raw':!![],'where':{'id':_0x17f6db[_0x385160(0xb6)]['id']}};const _0x2c8e50={};return _0x2c8e50[_0x385160(0xcf)]=_[_0x385160(0xd2)](db['Variable'][_0x385160(0xe7)]),_0x2c8e50[_0x385160(0xc8)]=_[_0x385160(0xd2)](_0x17f6db[_0x385160(0xc8)]),_0x2c8e50[_0x385160(0xc0)]=_[_0x385160(0xb7)](_0x2c8e50[_0x385160(0xcf)],_0x2c8e50[_0x385160(0xc8)]),_0x4cef0c[_0x385160(0xc3)]=_[_0x385160(0xb7)](_0x2c8e50[_0x385160(0xcf)],qs['fields'](_0x17f6db['query']['fields'])),_0x4cef0c[_0x385160(0xc3)]=_0x4cef0c['attributes'][_0x385160(0xb4)]?_0x4cef0c[_0x385160(0xc3)]:_0x2c8e50['model'],_0x17f6db['query']['includeAll']&&(_0x4cef0c['include']=[{'all':!![]}]),_0x4cef0c=_[_0x385160(0xbe)]({},_0x4cef0c,_0x17f6db['options']),db['Variable'][_0x385160(0xc6)](_0x4cef0c)[_0x385160(0xbc)](handleEntityNotFound(_0x2660e6,null))['then'](respondWithResult(_0x2660e6,null))['catch'](handleError(_0x2660e6,null));},exports[a836_0x15f5ef(0xe5)]=function(_0x5e0d30,_0xbfa1d3){const _0x1d8e23=a836_0x15f5ef;return db['Variable'][_0x1d8e23(0xe5)](_0x5e0d30[_0x1d8e23(0xe6)],{})[_0x1d8e23(0xbc)](function(_0x47a2a7){const _0x2ddaaf=_0x1d8e23,_0x3a95ca=_0x5e0d30['user'][_0x2ddaaf(0xc5)]({'plain':!![]});if(!_0x3a95ca)throw new Error(_0x2ddaaf(0xe4));if(_0x3a95ca[_0x2ddaaf(0xed)]===_0x2ddaaf(0xe2)){const _0x1e2fe1=_0x47a2a7['get']({'plain':!![]}),_0x470fd7=_0x2ddaaf(0xcc);return db[_0x2ddaaf(0xe9)]['findOne']({'where':{'name':_0x470fd7,'userProfileId':_0x3a95ca['userProfileId']},'raw':!![]})[_0x2ddaaf(0xbc)](function(_0x146a64){const _0x374909=_0x2ddaaf;return _0x146a64&&_0x146a64[_0x374909(0xbb)]===0x0?db[_0x374909(0xc1)][_0x374909(0xe5)]({'name':_0x1e2fe1[_0x374909(0xc9)],'resourceId':_0x1e2fe1['id'],'type':_0x146a64[_0x374909(0xc9)],'sectionId':_0x146a64['id']},{})[_0x374909(0xbc)](function(){return _0x47a2a7;}):_0x47a2a7;})['catch'](function(_0x58a38d){const _0x33108e=_0x2ddaaf;logger['error'](_0x33108e(0xd5),_0x58a38d);throw _0x58a38d;});}return _0x47a2a7;})[_0x1d8e23(0xbc)](respondWithResult(_0xbfa1d3,0xc9))['catch'](handleError(_0xbfa1d3,null));},exports['update']=function(_0x4833d1,_0x15dd98){const _0x240918=a836_0x15f5ef;return _0x4833d1[_0x240918(0xe6)]['id']&&delete _0x4833d1[_0x240918(0xe6)]['id'],db[_0x240918(0xe0)]['findOne']({'where':{'id':_0x4833d1['params']['id']}})[_0x240918(0xbc)](handleEntityNotFound(_0x15dd98,null))[_0x240918(0xbc)](saveUpdates(_0x4833d1['body'],null))[_0x240918(0xbc)](respondWithResult(_0x15dd98,null))[_0x240918(0xd9)](handleError(_0x15dd98,null));},exports[a836_0x15f5ef(0xcb)]=function(_0x360938,_0x4cda9d){const _0x3eb628=a836_0x15f5ef;return db[_0x3eb628(0xe0)][_0x3eb628(0xc6)]({'where':{'id':_0x360938[_0x3eb628(0xb6)]['id']}})['then'](handleEntityNotFound(_0x4cda9d,null))['then'](removeEntity(_0x4cda9d,null))[_0x3eb628(0xd9)](handleError(_0x4cda9d,null));}; \ No newline at end of file diff --git a/server/api/variable/variable.model.js b/server/api/variable/variable.model.js index d715f79..8439e25 100644 --- a/server/api/variable/variable.model.js +++ b/server/api/variable/variable.model.js @@ -1 +1 @@ -const a837_0x425d=['./variable.options','exports','Variable','init','function'];(function(_0x5be31d,_0x1fc564){const _0x425d42=function(_0x56a09d){while(--_0x56a09d){_0x5be31d['push'](_0x5be31d['shift']());}};_0x425d42(++_0x1fc564);}(a837_0x425d,0x8b));const a837_0x56a0=function(_0x5be31d,_0x1fc564){_0x5be31d=_0x5be31d-0x9e;let _0x425d42=a837_0x425d[_0x5be31d];return _0x425d42;};const a837_0x303b77=a837_0x56a0;'use strict';const {Model}=require('sequelize'),{attributes}=require('./variable.attributes'),{options}=require(a837_0x303b77(0x9f));class Variable extends Model{}function init(_0x1d2ee9,_0x300bcb){const _0x3b0242=a837_0x303b77,_0x341d75=options(_0x1d2ee9),_0x568601=typeof _0x300bcb===_0x3b0242(0x9e)?_0x300bcb(_0x341d75):_0x341d75;return Variable[_0x3b0242(0xa2)](attributes,_0x568601),Variable;}module['exports'][a837_0x303b77(0xa1)]=Variable,module[a837_0x303b77(0xa0)]['init']=init; \ No newline at end of file +const a837_0x3b93=['Variable','./variable.attributes','function','init','sequelize','exports'];(function(_0x1f24fe,_0x24478a){const _0x3b935c=function(_0x3e858c){while(--_0x3e858c){_0x1f24fe['push'](_0x1f24fe['shift']());}};_0x3b935c(++_0x24478a);}(a837_0x3b93,0x76));const a837_0x3e85=function(_0x1f24fe,_0x24478a){_0x1f24fe=_0x1f24fe-0x186;let _0x3b935c=a837_0x3b93[_0x1f24fe];return _0x3b935c;};const a837_0xb962bf=a837_0x3e85;'use strict';const {Model}=require(a837_0xb962bf(0x186)),{attributes}=require(a837_0xb962bf(0x189)),{options}=require('./variable.options');class Variable extends Model{}function init(_0x5c9db1,_0x21d249){const _0x5dcf06=a837_0xb962bf,_0x345bc8=options(_0x5c9db1),_0x4deb1f=typeof _0x21d249===_0x5dcf06(0x18a)?_0x21d249(_0x345bc8):_0x345bc8;return Variable[_0x5dcf06(0x18b)](attributes,_0x4deb1f),Variable;}module[a837_0xb962bf(0x187)][a837_0xb962bf(0x188)]=Variable,module[a837_0xb962bf(0x187)][a837_0xb962bf(0x18b)]=init; \ No newline at end of file diff --git a/server/api/variable/variable.options.js b/server/api/variable/variable.options.js index 4829a1c..3f127ef 100644 --- a/server/api/variable/variable.options.js +++ b/server/api/variable/variable.options.js @@ -1 +1 @@ -var a838_0x34ea=['exports'];(function(_0x233f90,_0x519790){var _0x34ead1=function(_0x1126a9){while(--_0x1126a9){_0x233f90['push'](_0x233f90['shift']());}};_0x34ead1(++_0x519790);}(a838_0x34ea,0x15d));var a838_0x1126=function(_0x233f90,_0x519790){_0x233f90=_0x233f90-0xd9;var _0x34ead1=a838_0x34ea[_0x233f90];return _0x34ead1;};var a838_0x4b56c8=a838_0x1126;function options(_0x43fdd7){return{'sequelize':_0x43fdd7,'tableName':'tools_variables','paranoid':![],'indexes':[],'timestamps':!![]};}module[a838_0x4b56c8(0xd9)]['options']=options; \ No newline at end of file +var a838_0x14fb=['options','exports','tools_variables'];(function(_0x3bbb0a,_0x34ace6){var _0x14fbf5=function(_0x4432b3){while(--_0x4432b3){_0x3bbb0a['push'](_0x3bbb0a['shift']());}};_0x14fbf5(++_0x34ace6);}(a838_0x14fb,0x18d));var a838_0x4432=function(_0x3bbb0a,_0x34ace6){_0x3bbb0a=_0x3bbb0a-0x9a;var _0x14fbf5=a838_0x14fb[_0x3bbb0a];return _0x14fbf5;};var a838_0x471b6c=a838_0x4432;function options(_0x143a75){var _0x53df27=a838_0x4432;return{'sequelize':_0x143a75,'tableName':_0x53df27(0x9b),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a838_0x471b6c(0x9a)][a838_0x471b6c(0x9c)]=options; \ No newline at end of file diff --git a/server/api/variable/variable.rpc.js b/server/api/variable/variable.rpc.js index 05e575b..85f8afc 100644 --- a/server/api/variable/variable.rpc.js +++ b/server/api/variable/variable.rpc.js @@ -1 +1 @@ -const a839_0x2f20=['debug','include','options','attributes','map','../../mysqldb','rpc','stringify','info','findOne','error','model','ShowVariable','where','raw','message'];(function(_0x373c60,_0xc54971){const _0x2f20d1=function(_0x2480ea){while(--_0x2480ea){_0x373c60['push'](_0x373c60['shift']());}};_0x2f20d1(++_0xc54971);}(a839_0x2f20,0x104));const a839_0x2480=function(_0x373c60,_0xc54971){_0x373c60=_0x373c60-0xa2;let _0x2f20d1=a839_0x2f20[_0x373c60];return _0x2f20d1;};const a839_0x4393e3=a839_0x2480;'use strict';const db=require(a839_0x4393e3(0xa3))['db'],logger=require('../../config/logger')(a839_0x4393e3(0xa4)),_=require('lodash');exports[a839_0x4393e3(0xaa)]=function(_0x12ed12){const _0x119494=this;return new Promise(function(_0x4c46fd,_0x2d709b){const _0x49057c=a839_0x2480;return db['Variable'][_0x49057c(0xa7)]({'raw':_0x12ed12['options']?_0x12ed12[_0x49057c(0xb0)][_0x49057c(0xac)]===undefined?!![]:![]:!![],'where':_0x12ed12[_0x49057c(0xb0)]?_0x12ed12[_0x49057c(0xb0)][_0x49057c(0xab)]||null:null,'attributes':_0x12ed12[_0x49057c(0xb0)]?_0x12ed12[_0x49057c(0xb0)][_0x49057c(0xb1)]||null:null,'include':_0x12ed12[_0x49057c(0xb0)]?_0x12ed12[_0x49057c(0xb0)]['include']?_[_0x49057c(0xa2)](_0x12ed12[_0x49057c(0xb0)][_0x49057c(0xaf)],function(_0x322e6b){const _0xb6eefa=_0x49057c;return{'model':db[_0x322e6b[_0xb6eefa(0xa9)]],'as':_0x322e6b['as'],'attributes':_0x322e6b[_0xb6eefa(0xb1)],'include':_0x322e6b[_0xb6eefa(0xaf)]?_[_0xb6eefa(0xa2)](_0x322e6b['include'],function(_0x449b3a){const _0x3b73c1=_0xb6eefa;return{'model':db[_0x449b3a[_0x3b73c1(0xa9)]],'as':_0x449b3a['as'],'attributes':_0x449b3a[_0x3b73c1(0xb1)],'include':_0x449b3a[_0x3b73c1(0xaf)]?_[_0x3b73c1(0xa2)](_0x449b3a[_0x3b73c1(0xaf)],function(_0x68c7f8){const _0x44ac89=_0x3b73c1;return{'model':db[_0x68c7f8[_0x44ac89(0xa9)]],'as':_0x68c7f8['as'],'attributes':_0x68c7f8[_0x44ac89(0xb1)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x272614){const _0x1d7c12=_0x49057c;logger[_0x1d7c12(0xa6)](_0x1d7c12(0xaa),_0x12ed12),logger[_0x1d7c12(0xae)](_0x1d7c12(0xaa),_0x12ed12,JSON[_0x1d7c12(0xa5)](_0x272614)),_0x4c46fd(_0x272614);})['catch'](function(_0x2effab){const _0x1d7c90=_0x49057c;logger[_0x1d7c90(0xa8)](_0x1d7c90(0xaa),_0x2effab[_0x1d7c90(0xad)],_0x12ed12),_0x2d709b(_0x119494[_0x1d7c90(0xa8)](0x1f4,_0x2effab[_0x1d7c90(0xad)]));});});}; \ No newline at end of file +const a839_0x3826=['rpc','error','model','attributes','map','raw','options','include','catch','Variable','../../mysqldb','ShowVariable','../../config/logger','where','message'];(function(_0x4fb835,_0xed7250){const _0x38267c=function(_0xa4afba){while(--_0xa4afba){_0x4fb835['push'](_0x4fb835['shift']());}};_0x38267c(++_0xed7250);}(a839_0x3826,0x1ce));const a839_0xa4af=function(_0x4fb835,_0xed7250){_0x4fb835=_0x4fb835-0x6c;let _0x38267c=a839_0x3826[_0x4fb835];return _0x38267c;};const a839_0x1ca44a=a839_0xa4af;'use strict';const db=require(a839_0x1ca44a(0x79))['db'],logger=require(a839_0x1ca44a(0x6c))(a839_0x1ca44a(0x6f)),_=require('lodash');exports[a839_0x1ca44a(0x7a)]=function(_0x93c753){const _0x424dda=this;return new Promise(function(_0x1b62e8,_0x42c2cf){const _0x4d7542=a839_0xa4af;return db[_0x4d7542(0x78)]['findOne']({'raw':_0x93c753[_0x4d7542(0x75)]?_0x93c753[_0x4d7542(0x75)][_0x4d7542(0x74)]===undefined?!![]:![]:!![],'where':_0x93c753[_0x4d7542(0x75)]?_0x93c753['options'][_0x4d7542(0x6d)]||null:null,'attributes':_0x93c753[_0x4d7542(0x75)]?_0x93c753[_0x4d7542(0x75)][_0x4d7542(0x72)]||null:null,'include':_0x93c753[_0x4d7542(0x75)]?_0x93c753[_0x4d7542(0x75)][_0x4d7542(0x76)]?_[_0x4d7542(0x73)](_0x93c753['options']['include'],function(_0x5f3ac6){const _0x45a85b=_0x4d7542;return{'model':db[_0x5f3ac6['model']],'as':_0x5f3ac6['as'],'attributes':_0x5f3ac6[_0x45a85b(0x72)],'include':_0x5f3ac6[_0x45a85b(0x76)]?_[_0x45a85b(0x73)](_0x5f3ac6[_0x45a85b(0x76)],function(_0xbfb66d){const _0x274c1c=_0x45a85b;return{'model':db[_0xbfb66d[_0x274c1c(0x71)]],'as':_0xbfb66d['as'],'attributes':_0xbfb66d['attributes'],'include':_0xbfb66d[_0x274c1c(0x76)]?_['map'](_0xbfb66d[_0x274c1c(0x76)],function(_0x3ca49b){const _0x4cc967=_0x274c1c;return{'model':db[_0x3ca49b[_0x4cc967(0x71)]],'as':_0x3ca49b['as'],'attributes':_0x3ca49b['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x2be397){const _0x7b756d=_0x4d7542;logger['info'](_0x7b756d(0x7a),_0x93c753),logger['debug'](_0x7b756d(0x7a),_0x93c753,JSON['stringify'](_0x2be397)),_0x1b62e8(_0x2be397);})[_0x4d7542(0x77)](function(_0x526925){const _0xf18126=_0x4d7542;logger[_0xf18126(0x70)](_0xf18126(0x7a),_0x526925[_0xf18126(0x6e)],_0x93c753),_0x42c2cf(_0x424dda['error'](0x1f4,_0x526925[_0xf18126(0x6e)]));});});}; \ No newline at end of file diff --git a/server/api/version/index.js b/server/api/version/index.js index e29f560..5cb771e 100644 --- a/server/api/version/index.js +++ b/server/api/version/index.js @@ -1 +1 @@ -const a840_0x2c95=['get','Router','isAuthenticated','index','/pull','canUpdate','/fetch','restart','/reset','/migrations','migrations','../../components/auth/service','/restart'];(function(_0x554ba3,_0x50a4ee){const _0x2c9520=function(_0x3b2818){while(--_0x3b2818){_0x554ba3['push'](_0x554ba3['shift']());}};_0x2c9520(++_0x50a4ee);}(a840_0x2c95,0x1c0));const a840_0x3b28=function(_0x554ba3,_0x50a4ee){_0x554ba3=_0x554ba3-0x1da;let _0x2c9520=a840_0x2c95[_0x554ba3];return _0x2c9520;};const a840_0x31e939=a840_0x3b28;'use strict';const express=require('express'),router=express[a840_0x31e939(0x1e2)](),auth=require(a840_0x31e939(0x1df)),controller=require('./version.controller');router[a840_0x31e939(0x1e1)]('/',controller[a840_0x31e939(0x1e4)]),router[a840_0x31e939(0x1e1)](a840_0x31e939(0x1da),auth[a840_0x31e939(0x1e3)](),auth[a840_0x31e939(0x1e6)](),controller['fetch']),router['get'](a840_0x31e939(0x1dc),auth[a840_0x31e939(0x1e3)](),auth[a840_0x31e939(0x1e6)](),controller['reset']),router[a840_0x31e939(0x1e1)](a840_0x31e939(0x1e5),auth[a840_0x31e939(0x1e3)](),auth[a840_0x31e939(0x1e6)](),controller['pull']),router[a840_0x31e939(0x1e1)](a840_0x31e939(0x1e0),auth[a840_0x31e939(0x1e3)](),controller[a840_0x31e939(0x1db)]),router[a840_0x31e939(0x1e1)](a840_0x31e939(0x1dd),controller[a840_0x31e939(0x1de)]),module['exports']=router; \ No newline at end of file +const a840_0xd0f9=['migrations','exports','/migrations','/fetch','express','canUpdate','/pull','reset','index','fetch','isAuthenticated','get','/restart','restart'];(function(_0x214ebc,_0x227249){const _0xd0f90=function(_0x112622){while(--_0x112622){_0x214ebc['push'](_0x214ebc['shift']());}};_0xd0f90(++_0x227249);}(a840_0xd0f9,0x1da));const a840_0x1126=function(_0x214ebc,_0x227249){_0x214ebc=_0x214ebc-0x1ca;let _0xd0f90=a840_0xd0f9[_0x214ebc];return _0xd0f90;};const a840_0x4cb433=a840_0x1126;'use strict';const express=require(a840_0x4cb433(0x1d0)),router=express['Router'](),auth=require('../../components/auth/service'),controller=require('./version.controller');router[a840_0x4cb433(0x1d7)]('/',controller[a840_0x4cb433(0x1d4)]),router[a840_0x4cb433(0x1d7)](a840_0x4cb433(0x1cf),auth[a840_0x4cb433(0x1d6)](),auth['canUpdate'](),controller[a840_0x4cb433(0x1d5)]),router[a840_0x4cb433(0x1d7)]('/reset',auth[a840_0x4cb433(0x1d6)](),auth['canUpdate'](),controller[a840_0x4cb433(0x1d3)]),router['get'](a840_0x4cb433(0x1d2),auth[a840_0x4cb433(0x1d6)](),auth[a840_0x4cb433(0x1d1)](),controller['pull']),router[a840_0x4cb433(0x1d7)](a840_0x4cb433(0x1ca),auth[a840_0x4cb433(0x1d6)](),controller[a840_0x4cb433(0x1cb)]),router[a840_0x4cb433(0x1d7)](a840_0x4cb433(0x1ce),controller[a840_0x4cb433(0x1cc)]),module[a840_0x4cb433(0x1cd)]=router; \ No newline at end of file diff --git a/server/api/version/version.controller.js b/server/api/version/version.controller.js index 523193c..e67ee56 100644 --- a/server/api/version/version.controller.js +++ b/server/api/version/version.controller.js @@ -1 +1 @@ -const a841_0x531a=['simple-git','version','restart','2.0.0','status','index','fetch','../../mysqldb','child_process','git\x20reset\x20--hard','join','update','reset','\x20to\x20','constructor','error','git\x20fetch\x20origin\x20master','../../../package.json','replace','master','../../config/logger','then','lodash','Migration','FETCH_HEAD','exports','push','Database\x20migrated\x20successfully\x20from\x20version\x20','sequelize','info','../../config/environment','npm\x20install\x20--production','.js','length','../../config/pm2','root','origin','readdirSync','git\x20reset\x20--hard\x20FETCH_HEAD','query','../../utils/build-info','catch','compare-versions','json','migrations','umzug','motion2','map','pull','exec','sort','Database\x20already\x20up-to-date','latest','Your\x20system\x20has\x20been\x20restarted\x20successfully'];(function(_0x4572fc,_0x8088c3){const _0x531a70=function(_0x383aad){while(--_0x383aad){_0x4572fc['push'](_0x4572fc['shift']());}};_0x531a70(++_0x8088c3);}(a841_0x531a,0x111));const a841_0x383a=function(_0x4572fc,_0x8088c3){_0x4572fc=_0x4572fc-0xdd;let _0x531a70=a841_0x531a[_0x4572fc];return _0x531a70;};const a841_0x160b27=a841_0x383a;'use strict';const Umzug=require(a841_0x160b27(0x107)),path=require('path'),fs=require('fs'),_=require(a841_0x160b27(0xf0)),compareVersions=require(a841_0x160b27(0x104)),exec=require(a841_0x160b27(0xe2))[a841_0x160b27(0x10b)],{db}=require(a841_0x160b27(0xe1)),config=require(a841_0x160b27(0xf8)),pm2=require(a841_0x160b27(0xfc)),logger=require(a841_0x160b27(0xee))(a841_0x160b27(0xe5)),{version:packageVersion}=require(a841_0x160b27(0xeb)),git=require(a841_0x160b27(0x110))(config[a841_0x160b27(0xfd)]),{UniqueConstraintError}=require('sequelize'),{readBuildInfo}=require(a841_0x160b27(0x102));async function index(_0x37ee73,_0x2dcfdb){const _0x44517a=a841_0x160b27,_0x3686f1=await readBuildInfo(),_0x542e7e={'current':packageVersion,'phonebar':0x2,..._0x3686f1};return _0x37ee73[_0x44517a(0x101)]&&_0x37ee73[_0x44517a(0x101)][_0x44517a(0x10e)]?git[_0x44517a(0xe0)]()['tags'](function(_0x46faa0,_0x49b003){const _0x30a8c6=_0x44517a;return _0x542e7e[_0x30a8c6(0x10e)]=(_0x46faa0?packageVersion:_0x49b003[_0x30a8c6(0x10e)])||_0x30a8c6(0xdd),_0x2dcfdb['status'](0xc8)[_0x30a8c6(0x105)](_0x542e7e);}):_0x2dcfdb[_0x44517a(0xde)](0xc8)[_0x44517a(0x105)](_0x542e7e);}function fetch(_0x476bf7,_0xc9a640){const _0x1ea3b4=a841_0x160b27;return git['fetch']([_0x1ea3b4(0xfe),_0x1ea3b4(0xed)],function(_0x4dfbda){const _0x24c076=_0x1ea3b4;if(_0x4dfbda)return logger['error'](_0x4dfbda),_0xc9a640[_0x24c076(0xde)](0x1f4)[_0x24c076(0x105)](_0x4dfbda);return logger[_0x24c076(0xf7)]('git\x20fetch'),_0xc9a640[_0x24c076(0xde)](0xc8)[_0x24c076(0x105)]({'output':_0x24c076(0xea)});});}function reset(_0x313555,_0x48750f){const _0x3dc8d6=a841_0x160b27;return git[_0x3dc8d6(0xe6)](['--hard',_0x3dc8d6(0xf2)],function(_0x3f1ce4){const _0x359044=_0x3dc8d6;if(_0x3f1ce4)return logger[_0x359044(0xe9)](_0x3f1ce4),_0x48750f['status'](0x1f4)[_0x359044(0x105)](_0x3f1ce4);return logger[_0x359044(0xf7)](_0x359044(0x100)),_0x48750f['status'](0xc8)[_0x359044(0x105)]({'output':_0x359044(0xe3)});});}function pull(_0x424d7f,_0x455648){const _0x4fce34=a841_0x160b27;exec(_0x4fce34(0xf9),function(_0x76560b,_0x2b5fb9,_0x2ab9c3){const _0x13fc8a=_0x4fce34;logger[_0x13fc8a(0xf7)](_0x2b5fb9),logger[_0x13fc8a(0xf7)](_0x2ab9c3);if(_0x76560b)return logger['error'](_0x76560b),_0x455648['status'](0x1f4)[_0x13fc8a(0x105)](_0x76560b);return _0x455648['status'](0xc8)[_0x13fc8a(0x105)]({'output':_0x2b5fb9});});}function restart(_0x26d2d6,_0x134f90){const _0x25c42b=a841_0x160b27;return pm2['restart'](_0x25c42b(0x108))[_0x25c42b(0xef)](function(_0xe22e31){const _0x770118=_0x25c42b;return logger[_0x770118(0xf7)]('pm2\x20restart\x20motion\x20%s',_0xe22e31),_0x134f90[_0x770118(0xde)](0xc8)['json']({'output':_0x770118(0x10f)});})[_0x25c42b(0x103)](function(_0x5db7cf){const _0x59811e=_0x25c42b;return logger[_0x59811e(0xe9)](_0x5db7cf),_0x134f90[_0x59811e(0xde)](0x1f4)['json'](_0x5db7cf);});}function migrations(_0x33f3be,_0x24c4e0){const _0x3d93b7=a841_0x160b27,_0x3944fa=fs[_0x3d93b7(0xff)](path[_0x3d93b7(0xe4)](config['root'],_0x3d93b7(0x106))),_0x358aa1=[];for(let _0x4d8b2f=0x0;_0x4d8b2f<_0x3944fa[_0x3d93b7(0xfb)];_0x4d8b2f++){const _0x5a4651=_0x3944fa[_0x4d8b2f][_0x3d93b7(0xec)](_0x3d93b7(0xfa),'');compareVersions(packageVersion,_0x5a4651)===-0x1&&_0x358aa1[_0x3d93b7(0xf4)](_0x5a4651);}if(_0x358aa1[_0x3d93b7(0xfb)]){const _0x12ed79=_0x358aa1[_0x3d93b7(0x10c)](compareVersions),_0x5edacf=new Umzug({'storage':_0x3d93b7(0xf6),'storageOptions':{'model':db['Migration'],'modelName':_0x3d93b7(0xf1),'columnName':_0x3d93b7(0x111)},'migrations':{'params':[db[_0x3d93b7(0xf6)]['getQueryInterface'](),db['sequelize'][_0x3d93b7(0xe8)],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[_0x3d93b7(0xe4)](config[_0x3d93b7(0xfd)],_0x3d93b7(0x106)),'pattern':/\.js$/}});_0x5edacf['up']({'migrations':_[_0x3d93b7(0x109)](_0x12ed79,function(_0x15b973){const _0xf00ba6=_0x3d93b7;return _0x15b973+_0xf00ba6(0xfa);})})[_0x3d93b7(0xef)](function(){const _0x5d70a0=_0x3d93b7;return _0x24c4e0['status'](0xc8)[_0x5d70a0(0x105)]({'output':_0x5d70a0(0xf5)+packageVersion+_0x5d70a0(0xe7)+_['last'](_0x12ed79),'migrations':_[_0x5d70a0(0xe4)](_0x12ed79)});})[_0x3d93b7(0x103)](function(_0x5dcba0){const _0x45c125=_0x3d93b7;return _0x5dcba0 instanceof UniqueConstraintError?_0x24c4e0['status'](0xc8)['json']({'output':_0x45c125(0x10d)}):_0x24c4e0['status'](0x1f4)[_0x45c125(0x105)](_0x5dcba0);});}else return _0x24c4e0['status'](0xc8)['json']({'output':_0x3d93b7(0x10d)});}module[a841_0x160b27(0xf3)][a841_0x160b27(0xdf)]=index,module['exports']['fetch']=fetch,module[a841_0x160b27(0xf3)][a841_0x160b27(0x106)]=migrations,module[a841_0x160b27(0xf3)][a841_0x160b27(0x10a)]=pull,module[a841_0x160b27(0xf3)][a841_0x160b27(0xe6)]=reset,module[a841_0x160b27(0xf3)][a841_0x160b27(0x112)]=restart; \ No newline at end of file +const a841_0x5bdb=['join','umzug','../../config/environment','fetch','then','error','migrations','../../config/pm2','exec','getQueryInterface','Your\x20system\x20has\x20been\x20restarted\x20successfully','reset','constructor','readdirSync','child_process','git\x20reset\x20--hard\x20FETCH_HEAD','catch','exports','../../mysqldb','latest','pull','2.0.0','json','simple-git','--hard','../../utils/build-info','root','pm2\x20restart\x20motion\x20%s','map','index','tags','git\x20fetch\x20origin\x20master','push','\x20to\x20','status','Migration','Database\x20already\x20up-to-date','sequelize','.js','Migration\x20tried\x20to\x20use\x20old\x20style\x20\x22done\x22\x20callback.\x20Please\x20upgrade\x20to\x20\x22umzug\x22\x20and\x20return\x20a\x20promise\x20instead.','info','Database\x20migrated\x20successfully\x20from\x20version\x20','replace','length','FETCH_HEAD','restart'];(function(_0x2f66c7,_0x4e644f){const _0x5bdbe1=function(_0x26bcaa){while(--_0x26bcaa){_0x2f66c7['push'](_0x2f66c7['shift']());}};_0x5bdbe1(++_0x4e644f);}(a841_0x5bdb,0x1a3));const a841_0x26bc=function(_0x2f66c7,_0x4e644f){_0x2f66c7=_0x2f66c7-0x18a;let _0x5bdbe1=a841_0x5bdb[_0x2f66c7];return _0x5bdbe1;};const a841_0x41f4a1=a841_0x26bc;'use strict';const Umzug=require(a841_0x41f4a1(0x1b4)),path=require('path'),fs=require('fs'),_=require('lodash'),compareVersions=require('compare-versions'),exec=require(a841_0x41f4a1(0x193))[a841_0x41f4a1(0x18d)],{db}=require(a841_0x41f4a1(0x197)),config=require(a841_0x41f4a1(0x1b5)),pm2=require(a841_0x41f4a1(0x18c)),logger=require('../../config/logger')('update'),{version:packageVersion}=require('../../../package.json'),git=require(a841_0x41f4a1(0x19c))(config[a841_0x41f4a1(0x19f)]),{UniqueConstraintError}=require(a841_0x41f4a1(0x1aa)),{readBuildInfo}=require(a841_0x41f4a1(0x19e));async function index(_0x42fa22,_0x11a3e1){const _0x34dd96=a841_0x41f4a1,_0x187cf2=await readBuildInfo(),_0x6de270={'current':packageVersion,'phonebar':0x2,..._0x187cf2};return _0x42fa22['query']&&_0x42fa22['query'][_0x34dd96(0x198)]?git[_0x34dd96(0x1b6)]()[_0x34dd96(0x1a3)](function(_0x47ccc5,_0x213691){const _0xfe2cb2=_0x34dd96;return _0x6de270[_0xfe2cb2(0x198)]=(_0x47ccc5?packageVersion:_0x213691['latest'])||_0xfe2cb2(0x19a),_0x11a3e1[_0xfe2cb2(0x1a7)](0xc8)['json'](_0x6de270);}):_0x11a3e1['status'](0xc8)[_0x34dd96(0x19b)](_0x6de270);}function fetch(_0x592f3a,_0x3180d2){const _0x359ee4=a841_0x41f4a1;return git[_0x359ee4(0x1b6)](['origin','master'],function(_0x36cdc6){const _0xe6db5b=_0x359ee4;if(_0x36cdc6)return logger[_0xe6db5b(0x18a)](_0x36cdc6),_0x3180d2['status'](0x1f4)['json'](_0x36cdc6);return logger['info']('git\x20fetch'),_0x3180d2['status'](0xc8)[_0xe6db5b(0x19b)]({'output':_0xe6db5b(0x1a4)});});}function reset(_0x21fe46,_0xb97345){const _0x1e9e2d=a841_0x41f4a1;return git[_0x1e9e2d(0x190)]([_0x1e9e2d(0x19d),_0x1e9e2d(0x1b1)],function(_0x524739){const _0xb9a98a=_0x1e9e2d;if(_0x524739)return logger[_0xb9a98a(0x18a)](_0x524739),_0xb97345[_0xb9a98a(0x1a7)](0x1f4)[_0xb9a98a(0x19b)](_0x524739);return logger[_0xb9a98a(0x1ad)](_0xb9a98a(0x194)),_0xb97345[_0xb9a98a(0x1a7)](0xc8)[_0xb9a98a(0x19b)]({'output':'git\x20reset\x20--hard'});});}function pull(_0x52ac8d,_0x43e073){exec('npm\x20install\x20--production',function(_0x1d4db9,_0x58a017,_0xfcc985){const _0x10b294=a841_0x26bc;logger[_0x10b294(0x1ad)](_0x58a017),logger[_0x10b294(0x1ad)](_0xfcc985);if(_0x1d4db9)return logger[_0x10b294(0x18a)](_0x1d4db9),_0x43e073[_0x10b294(0x1a7)](0x1f4)[_0x10b294(0x19b)](_0x1d4db9);return _0x43e073[_0x10b294(0x1a7)](0xc8)[_0x10b294(0x19b)]({'output':_0x58a017});});}function restart(_0x15c440,_0x6e7706){const _0x5eedd5=a841_0x41f4a1;return pm2[_0x5eedd5(0x1b2)]('motion2')[_0x5eedd5(0x1b7)](function(_0x42f1cd){const _0x1bbdd3=_0x5eedd5;return logger[_0x1bbdd3(0x1ad)](_0x1bbdd3(0x1a0),_0x42f1cd),_0x6e7706['status'](0xc8)[_0x1bbdd3(0x19b)]({'output':_0x1bbdd3(0x18f)});})[_0x5eedd5(0x195)](function(_0xa1b3af){const _0x94e68a=_0x5eedd5;return logger[_0x94e68a(0x18a)](_0xa1b3af),_0x6e7706[_0x94e68a(0x1a7)](0x1f4)[_0x94e68a(0x19b)](_0xa1b3af);});}function migrations(_0x6132e6,_0x8f206e){const _0x307ff1=a841_0x41f4a1,_0x1ac781=fs[_0x307ff1(0x192)](path[_0x307ff1(0x1b3)](config['root'],_0x307ff1(0x18b))),_0x9d082e=[];for(let _0x14cfea=0x0;_0x14cfea<_0x1ac781['length'];_0x14cfea++){const _0x3aa03c=_0x1ac781[_0x14cfea][_0x307ff1(0x1af)]('.js','');compareVersions(packageVersion,_0x3aa03c)===-0x1&&_0x9d082e[_0x307ff1(0x1a5)](_0x3aa03c);}if(_0x9d082e[_0x307ff1(0x1b0)]){const _0x2051e6=_0x9d082e['sort'](compareVersions),_0x5d8c86=new Umzug({'storage':_0x307ff1(0x1aa),'storageOptions':{'model':db[_0x307ff1(0x1a8)],'modelName':'Migration','columnName':'version'},'migrations':{'params':[db[_0x307ff1(0x1aa)][_0x307ff1(0x18e)](),db[_0x307ff1(0x1aa)][_0x307ff1(0x191)],function(){const _0x22b7fd=_0x307ff1;throw new Error(_0x22b7fd(0x1ac));}],'path':path[_0x307ff1(0x1b3)](config[_0x307ff1(0x19f)],_0x307ff1(0x18b)),'pattern':/\.js$/}});_0x5d8c86['up']({'migrations':_[_0x307ff1(0x1a1)](_0x2051e6,function(_0x58fdb6){const _0x1adb3f=_0x307ff1;return _0x58fdb6+_0x1adb3f(0x1ab);})})[_0x307ff1(0x1b7)](function(){const _0x22f7ae=_0x307ff1;return _0x8f206e['status'](0xc8)['json']({'output':_0x22f7ae(0x1ae)+packageVersion+_0x22f7ae(0x1a6)+_['last'](_0x2051e6),'migrations':_[_0x22f7ae(0x1b3)](_0x2051e6)});})[_0x307ff1(0x195)](function(_0x154858){const _0x111cc9=_0x307ff1;return _0x154858 instanceof UniqueConstraintError?_0x8f206e[_0x111cc9(0x1a7)](0xc8)[_0x111cc9(0x19b)]({'output':'Database\x20already\x20up-to-date'}):_0x8f206e[_0x111cc9(0x1a7)](0x1f4)['json'](_0x154858);});}else return _0x8f206e[_0x307ff1(0x1a7)](0xc8)['json']({'output':_0x307ff1(0x1a9)});}module[a841_0x41f4a1(0x196)][a841_0x41f4a1(0x1a2)]=index,module[a841_0x41f4a1(0x196)][a841_0x41f4a1(0x1b6)]=fetch,module['exports'][a841_0x41f4a1(0x18b)]=migrations,module['exports'][a841_0x41f4a1(0x199)]=pull,module[a841_0x41f4a1(0x196)][a841_0x41f4a1(0x190)]=reset,module[a841_0x41f4a1(0x196)][a841_0x41f4a1(0x1b2)]=restart; \ No newline at end of file diff --git a/server/api/voiceAgentReport/index.js b/server/api/voiceAgentReport/index.js index e4e272a..5edfd08 100644 --- a/server/api/voiceAgentReport/index.js +++ b/server/api/voiceAgentReport/index.js @@ -1 +1 @@ -const a842_0x1e45=['/describe','show','put','/:id','isAuthenticated','exports','create','update','describe','index','Router','get'];(function(_0x50c486,_0x4b7179){const _0x1e4571=function(_0x105a54){while(--_0x105a54){_0x50c486['push'](_0x50c486['shift']());}};_0x1e4571(++_0x4b7179);}(a842_0x1e45,0xd0));const a842_0x105a=function(_0x50c486,_0x4b7179){_0x50c486=_0x50c486-0xeb;let _0x1e4571=a842_0x1e45[_0x50c486];return _0x1e4571;};const a842_0x4ef921=a842_0x105a;'use strict';const express=require('express'),router=express[a842_0x4ef921(0xf1)](),auth=require('../../components/auth/service'),controller=require('./voiceAgentReport.controller');router[a842_0x4ef921(0xf2)]('/',auth['isAuthenticated'](),controller[a842_0x4ef921(0xf0)]),router[a842_0x4ef921(0xf2)](a842_0x4ef921(0xf3),auth[a842_0x4ef921(0xeb)](),controller[a842_0x4ef921(0xef)]),router[a842_0x4ef921(0xf2)](a842_0x4ef921(0xf6),auth['isAuthenticated'](),controller[a842_0x4ef921(0xf4)]),router['post']('/',auth['isAuthenticated'](),controller[a842_0x4ef921(0xed)]),router[a842_0x4ef921(0xf5)](a842_0x4ef921(0xf6),auth['isAuthenticated'](),controller[a842_0x4ef921(0xee)]),router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']),module[a842_0x4ef921(0xec)]=router; \ No newline at end of file +const a842_0x3624=['show','destroy','update','/describe','./voiceAgentReport.controller','put','isAuthenticated','/:id','../../components/auth/service','exports','delete','get','post'];(function(_0x38f643,_0x160971){const _0x3624b6=function(_0x4a39a7){while(--_0x4a39a7){_0x38f643['push'](_0x38f643['shift']());}};_0x3624b6(++_0x160971);}(a842_0x3624,0xc1));const a842_0x4a39=function(_0x38f643,_0x160971){_0x38f643=_0x38f643-0x191;let _0x3624b6=a842_0x3624[_0x38f643];return _0x3624b6;};const a842_0x18a30a=a842_0x4a39;'use strict';const express=require('express'),router=express['Router'](),auth=require(a842_0x18a30a(0x19b)),controller=require(a842_0x18a30a(0x197));router['get']('/',auth[a842_0x18a30a(0x199)](),controller['index']),router['get'](a842_0x18a30a(0x196),auth[a842_0x18a30a(0x199)](),controller['describe']),router[a842_0x18a30a(0x191)]('/:id',auth[a842_0x18a30a(0x199)](),controller[a842_0x18a30a(0x193)]),router[a842_0x18a30a(0x192)]('/',auth[a842_0x18a30a(0x199)](),controller['create']),router[a842_0x18a30a(0x198)](a842_0x18a30a(0x19a),auth[a842_0x18a30a(0x199)](),controller[a842_0x18a30a(0x195)]),router[a842_0x18a30a(0x19d)](a842_0x18a30a(0x19a),auth[a842_0x18a30a(0x199)](),controller[a842_0x18a30a(0x194)]),module[a842_0x18a30a(0x19c)]=router; \ No newline at end of file diff --git a/server/api/voiceAgentReport/voiceAgentReport.attributes.js b/server/api/voiceAgentReport/voiceAgentReport.attributes.js index 98fd1ad..3a7cd05 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.attributes.js +++ b/server/api/voiceAgentReport/voiceAgentReport.attributes.js @@ -1 +1 @@ -const a843_0x2c68=['BOOLEAN','STRING','INTEGER','exports','sequelize','DATE'];(function(_0x44b4f,_0x59a8e3){const _0x2c68ab=function(_0x5591b7){while(--_0x5591b7){_0x44b4f['push'](_0x44b4f['shift']());}};_0x2c68ab(++_0x59a8e3);}(a843_0x2c68,0x15c));const a843_0x5591=function(_0x44b4f,_0x59a8e3){_0x44b4f=_0x44b4f-0xa3;let _0x2c68ab=a843_0x2c68[_0x44b4f];return _0x2c68ab;};const a843_0x43d238=a843_0x5591;'use strict';const {DataTypes}=require(a843_0x43d238(0xa7)),attributes={'type':{'type':DataTypes[a843_0x43d238(0xa4)]},'uniqueid':{'type':DataTypes[a843_0x43d238(0xa4)]},'calleridnum':{'type':DataTypes[a843_0x43d238(0xa4)]},'calleridname':{'type':DataTypes['STRING']},'queue':{'type':DataTypes[a843_0x43d238(0xa4)]},'interface':{'type':DataTypes[a843_0x43d238(0xa4)]},'membername':{'type':DataTypes['STRING']},'agentcalledAt':{'type':DataTypes['DATE']},'agentconnectAt':{'type':DataTypes[a843_0x43d238(0xa8)]},'agentcompleteAt':{'type':DataTypes['DATE']},'agentringnoanswerAt':{'type':DataTypes[a843_0x43d238(0xa8)]},'agentdumpAt':{'type':DataTypes[a843_0x43d238(0xa8)]},'holdtime':{'type':DataTypes['INTEGER']},'agentcomplete':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'agentringnoanswer':{'type':DataTypes[a843_0x43d238(0xa3)],'defaultValue':![]},'agentdump':{'type':DataTypes[a843_0x43d238(0xa3)],'defaultValue':![]},'talktime':{'type':DataTypes[a843_0x43d238(0xa5)]},'agentacw':{'type':DataTypes[a843_0x43d238(0xa3)],'defaultValue':![]},'acwtime':{'type':DataTypes[a843_0x43d238(0xa5)]},'reason':{'type':DataTypes[a843_0x43d238(0xa4)]},'lastevent':{'type':DataTypes[a843_0x43d238(0xa4)]},'channel':{'type':DataTypes[a843_0x43d238(0xa4)]},'channelstate':{'type':DataTypes[a843_0x43d238(0xa5)]},'channelstatedesc':{'type':DataTypes[a843_0x43d238(0xa4)]},'connectedlinenum':{'type':DataTypes[a843_0x43d238(0xa4)]},'connectedlinename':{'type':DataTypes[a843_0x43d238(0xa4)]},'language':{'type':DataTypes[a843_0x43d238(0xa4)]},'accountcode':{'type':DataTypes[a843_0x43d238(0xa4)]},'context':{'type':DataTypes[a843_0x43d238(0xa4)]},'exten':{'type':DataTypes['STRING']},'priority':{'type':DataTypes['STRING']},'destchannel':{'type':DataTypes[a843_0x43d238(0xa4)]},'destchannelstate':{'type':DataTypes[a843_0x43d238(0xa5)]},'destchannelstatedesc':{'type':DataTypes[a843_0x43d238(0xa4)]},'destcalleridnum':{'type':DataTypes['STRING']},'destcalleridname':{'type':DataTypes[a843_0x43d238(0xa4)]},'destconnectedlinenum':{'type':DataTypes[a843_0x43d238(0xa4)]},'destconnectedlinename':{'type':DataTypes[a843_0x43d238(0xa4)]},'destlanguage':{'type':DataTypes[a843_0x43d238(0xa4)]},'destaccountcode':{'type':DataTypes['STRING']},'destcontext':{'type':DataTypes[a843_0x43d238(0xa4)]},'destexten':{'type':DataTypes[a843_0x43d238(0xa4)]},'destpriority':{'type':DataTypes['STRING']},'destuniqueid':{'type':DataTypes[a843_0x43d238(0xa4)]},'answeredelsewheredestinationuniqueid':{'type':DataTypes[a843_0x43d238(0xa4)]},'answeredelsewheremembername':{'type':DataTypes[a843_0x43d238(0xa4)]},'transfer':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'transfertype':{'type':DataTypes[a843_0x43d238(0xa4)],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'},'transferexten':{'type':DataTypes[a843_0x43d238(0xa4)]},'transferuniqueid':{'type':DataTypes[a843_0x43d238(0xa4)]},'agententerreason':{'type':DataTypes[a843_0x43d238(0xa5)],'defaultValue':0x0}};module[a843_0x43d238(0xa6)]['attributes']=attributes; \ No newline at end of file +const a843_0x5650=['INTEGER','DATE','attributes','STRING','BOOLEAN','sequelize'];(function(_0x142ade,_0x2ee215){const _0x565008=function(_0x277dfc){while(--_0x277dfc){_0x142ade['push'](_0x142ade['shift']());}};_0x565008(++_0x2ee215);}(a843_0x5650,0x104));const a843_0x277d=function(_0x142ade,_0x2ee215){_0x142ade=_0x142ade-0xdc;let _0x565008=a843_0x5650[_0x142ade];return _0x565008;};const a843_0xd2a508=a843_0x277d;'use strict';const {DataTypes}=require(a843_0xd2a508(0xdf)),attributes={'type':{'type':DataTypes[a843_0xd2a508(0xdd)]},'uniqueid':{'type':DataTypes[a843_0xd2a508(0xdd)]},'calleridnum':{'type':DataTypes[a843_0xd2a508(0xdd)]},'calleridname':{'type':DataTypes[a843_0xd2a508(0xdd)]},'queue':{'type':DataTypes[a843_0xd2a508(0xdd)]},'interface':{'type':DataTypes[a843_0xd2a508(0xdd)]},'membername':{'type':DataTypes['STRING']},'agentcalledAt':{'type':DataTypes['DATE']},'agentconnectAt':{'type':DataTypes[a843_0xd2a508(0xe1)]},'agentcompleteAt':{'type':DataTypes[a843_0xd2a508(0xe1)]},'agentringnoanswerAt':{'type':DataTypes[a843_0xd2a508(0xe1)]},'agentdumpAt':{'type':DataTypes[a843_0xd2a508(0xe1)]},'holdtime':{'type':DataTypes[a843_0xd2a508(0xe0)]},'agentcomplete':{'type':DataTypes[a843_0xd2a508(0xde)],'defaultValue':![]},'agentringnoanswer':{'type':DataTypes[a843_0xd2a508(0xde)],'defaultValue':![]},'agentdump':{'type':DataTypes[a843_0xd2a508(0xde)],'defaultValue':![]},'talktime':{'type':DataTypes[a843_0xd2a508(0xe0)]},'agentacw':{'type':DataTypes[a843_0xd2a508(0xde)],'defaultValue':![]},'acwtime':{'type':DataTypes[a843_0xd2a508(0xe0)]},'reason':{'type':DataTypes['STRING']},'lastevent':{'type':DataTypes[a843_0xd2a508(0xdd)]},'channel':{'type':DataTypes[a843_0xd2a508(0xdd)]},'channelstate':{'type':DataTypes[a843_0xd2a508(0xe0)]},'channelstatedesc':{'type':DataTypes[a843_0xd2a508(0xdd)]},'connectedlinenum':{'type':DataTypes[a843_0xd2a508(0xdd)]},'connectedlinename':{'type':DataTypes['STRING']},'language':{'type':DataTypes[a843_0xd2a508(0xdd)]},'accountcode':{'type':DataTypes[a843_0xd2a508(0xdd)]},'context':{'type':DataTypes[a843_0xd2a508(0xdd)]},'exten':{'type':DataTypes[a843_0xd2a508(0xdd)]},'priority':{'type':DataTypes['STRING']},'destchannel':{'type':DataTypes[a843_0xd2a508(0xdd)]},'destchannelstate':{'type':DataTypes['INTEGER']},'destchannelstatedesc':{'type':DataTypes['STRING']},'destcalleridnum':{'type':DataTypes['STRING']},'destcalleridname':{'type':DataTypes[a843_0xd2a508(0xdd)]},'destconnectedlinenum':{'type':DataTypes[a843_0xd2a508(0xdd)]},'destconnectedlinename':{'type':DataTypes[a843_0xd2a508(0xdd)]},'destlanguage':{'type':DataTypes[a843_0xd2a508(0xdd)]},'destaccountcode':{'type':DataTypes[a843_0xd2a508(0xdd)]},'destcontext':{'type':DataTypes['STRING']},'destexten':{'type':DataTypes[a843_0xd2a508(0xdd)]},'destpriority':{'type':DataTypes[a843_0xd2a508(0xdd)]},'destuniqueid':{'type':DataTypes[a843_0xd2a508(0xdd)]},'answeredelsewheredestinationuniqueid':{'type':DataTypes[a843_0xd2a508(0xdd)]},'answeredelsewheremembername':{'type':DataTypes[a843_0xd2a508(0xdd)]},'transfer':{'type':DataTypes[a843_0xd2a508(0xde)],'defaultValue':![]},'transfertype':{'type':DataTypes['STRING'],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'},'transferexten':{'type':DataTypes['STRING']},'transferuniqueid':{'type':DataTypes[a843_0xd2a508(0xdd)]},'agententerreason':{'type':DataTypes[a843_0xd2a508(0xe0)],'defaultValue':0x0}};module['exports'][a843_0xd2a508(0xdc)]=attributes; \ No newline at end of file diff --git a/server/api/voiceAgentReport/voiceAgentReport.controller.js b/server/api/voiceAgentReport/voiceAgentReport.controller.js index b1f0300..6fc4b02 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.controller.js +++ b/server/api/voiceAgentReport/voiceAgentReport.controller.js @@ -1 +1 @@ -const a844_0x40c2=['catch','filter','end','fields','stack','create','merge','findOne','intersection','../../mysqldb','lodash','../../config/logger','length','options','set','count','where','offset','fieldName','query','describe','body','status','map','show','includeAll','VoiceAgentReport','type','model','sort','nolimit','order','keys','key','sendStatus','params','update','name','Content-Range','api','limit','rawAttributes','then','filters','undefined','send','findAll','error','json','attributes'];(function(_0x370e87,_0x254557){const _0x40c2d5=function(_0x14f620){while(--_0x14f620){_0x370e87['push'](_0x370e87['shift']());}};_0x40c2d5(++_0x254557);}(a844_0x40c2,0x151));const a844_0x14f6=function(_0x370e87,_0x254557){_0x370e87=_0x370e87-0x1b9;let _0x40c2d5=a844_0x40c2[_0x370e87];return _0x40c2d5;};const a844_0x50d53c=a844_0x14f6;'use strict';const _=require(a844_0x50d53c(0x1d0)),qs=require('../../components/parsers/qs'),logger=require(a844_0x50d53c(0x1d1))(a844_0x50d53c(0x1bb)),{db}=require(a844_0x50d53c(0x1cf)),{Op}=require('sequelize');function respondWithResult(_0x3f84c1,_0x1305dc){return _0x1305dc=_0x1305dc||0xc8,function(_0x2ae19e){const _0x30d102=a844_0x14f6;if(_0x2ae19e)return _0x3f84c1[_0x30d102(0x1dc)](_0x1305dc)[_0x30d102(0x1c4)](_0x2ae19e);};}function respondWithFilteredResult(_0x593921,_0x123a87){return function(_0xc387d4){const _0x1b6b97=a844_0x14f6;if(_0xc387d4){const _0x1d50c4=_0xc387d4['count'],_0x34d9ca=_0x123a87[_0x1b6b97(0x1d7)];let _0x563d25=_0x123a87['offset']+_0x123a87[_0x1b6b97(0x1bc)],_0x1e7686;return _0x563d25>=_0x1d50c4?(_0x563d25=_0x1d50c4,_0x1e7686=0xc8):_0x1e7686=0xce,_0x593921[_0x1b6b97(0x1dc)](_0x1e7686),_0x593921[_0x1b6b97(0x1d4)](_0x1b6b97(0x1ba),_0x34d9ca+'-'+_0x563d25+'/'+_0x1d50c4)['json'](_0xc387d4);}return null;};}function saveUpdates(_0x3800d5){return function(_0x3e68ff){const _0xb79da4=a844_0x14f6;if(_0x3e68ff)return _0x3e68ff[_0xb79da4(0x1ea)](_0x3800d5)[_0xb79da4(0x1be)](function(_0x5e926b){return _0x5e926b;});return null;};}function removeEntity(_0x3b8935){return function(_0x5d5a70){const _0x8eb2a2=a844_0x14f6;if(_0x5d5a70)return _0x5d5a70['destroy']()[_0x8eb2a2(0x1be)](function(){const _0x43534a=_0x8eb2a2;_0x3b8935[_0x43534a(0x1dc)](0xcc)[_0x43534a(0x1c8)]();});};}function handleEntityNotFound(_0xa1f4b2){return function(_0xd2ac7a){const _0x34bca7=a844_0x14f6;return!_0xd2ac7a&&_0xa1f4b2[_0x34bca7(0x1e8)](0x194),_0xd2ac7a;};}function handleError(_0x5a8702,_0x1ebd9d){return _0x1ebd9d=_0x1ebd9d||0x1f4,function(_0x1dc15d){const _0x4b7ea5=a844_0x14f6;logger[_0x4b7ea5(0x1c3)](_0x1dc15d[_0x4b7ea5(0x1ca)]),_0x1dc15d[_0x4b7ea5(0x1b9)]&&delete _0x1dc15d[_0x4b7ea5(0x1b9)],_0x5a8702['status'](_0x1ebd9d)[_0x4b7ea5(0x1c1)](_0x1dc15d);};}exports['index']=function(_0x3b0c27,_0x2513e5){const _0x133491=a844_0x50d53c;let _0x5af06f={};const _0x3ea11e={},_0x2cd0df={'count':0x0,'rows':[]},_0x2b19b8=_['map'](db[_0x133491(0x1e0)][_0x133491(0x1bd)],function(_0x325a12){const _0x1f8671=_0x133491;return{'name':_0x325a12[_0x1f8671(0x1d8)],'type':_0x325a12[_0x1f8671(0x1e1)][_0x1f8671(0x1e7)]};});_0x3ea11e[_0x133491(0x1e2)]=_[_0x133491(0x1dd)](_0x2b19b8,_0x133491(0x1b9)),_0x3ea11e[_0x133491(0x1d9)]=_[_0x133491(0x1e6)](_0x3b0c27['query']),_0x3ea11e[_0x133491(0x1bf)]=_[_0x133491(0x1ce)](_0x3ea11e['model'],_0x3ea11e[_0x133491(0x1d9)]),_0x5af06f[_0x133491(0x1c5)]=_['intersection'](_0x3ea11e[_0x133491(0x1e2)],qs[_0x133491(0x1c9)](_0x3b0c27[_0x133491(0x1d9)][_0x133491(0x1c9)])),_0x5af06f[_0x133491(0x1c5)]=_0x5af06f['attributes'][_0x133491(0x1d2)]?_0x5af06f[_0x133491(0x1c5)]:_0x3ea11e[_0x133491(0x1e2)];typeof _0x3b0c27[_0x133491(0x1d9)][_0x133491(0x1e4)]===_0x133491(0x1c0)&&(_0x5af06f[_0x133491(0x1bc)]=qs[_0x133491(0x1bc)](_0x3b0c27[_0x133491(0x1d9)][_0x133491(0x1bc)]),_0x5af06f[_0x133491(0x1d7)]=qs['offset'](_0x3b0c27[_0x133491(0x1d9)][_0x133491(0x1d7)]));_0x5af06f[_0x133491(0x1e5)]=qs[_0x133491(0x1e3)](_0x3b0c27[_0x133491(0x1d9)][_0x133491(0x1e3)]),_0x5af06f[_0x133491(0x1d6)]=qs[_0x133491(0x1bf)](_['pick'](_0x3b0c27['query'],_0x3ea11e[_0x133491(0x1bf)]),_0x2b19b8);_0x3b0c27['query'][_0x133491(0x1c7)]&&(_0x5af06f[_0x133491(0x1d6)]=_['merge'](_0x5af06f[_0x133491(0x1d6)],{[Op['or']]:_['map'](_0x2b19b8,function(_0x26ad9e){const _0x2b8b7e=_0x133491;if(_0x26ad9e[_0x2b8b7e(0x1e1)]!=='VIRTUAL'){const _0x6e1af6={};return _0x6e1af6[_0x26ad9e[_0x2b8b7e(0x1b9)]]={[Op['like']]:'%'+_0x3b0c27[_0x2b8b7e(0x1d9)][_0x2b8b7e(0x1c7)]+'%'},_0x6e1af6;}})}));_0x5af06f=_[_0x133491(0x1cc)]({},_0x5af06f,_0x3b0c27[_0x133491(0x1d3)]);const _0x167293={'where':_0x5af06f[_0x133491(0x1d6)]};return db[_0x133491(0x1e0)][_0x133491(0x1d5)](_0x167293)[_0x133491(0x1be)](function(_0x293628){const _0x4bedc9=_0x133491;return _0x2cd0df[_0x4bedc9(0x1d5)]=_0x293628,_0x3b0c27[_0x4bedc9(0x1d9)][_0x4bedc9(0x1df)]&&(_0x5af06f['include']=[{'all':!![]}]),db[_0x4bedc9(0x1e0)][_0x4bedc9(0x1c2)](_0x5af06f);})[_0x133491(0x1be)](function(_0x227a11){return _0x2cd0df['rows']=_0x227a11,_0x2cd0df;})[_0x133491(0x1be)](respondWithFilteredResult(_0x2513e5,_0x5af06f))[_0x133491(0x1c6)](handleError(_0x2513e5,null));},exports[a844_0x50d53c(0x1de)]=function(_0x24776c,_0x5ca7e1){const _0x32b94d=a844_0x50d53c;let _0x334f79={'raw':![],'where':{'id':_0x24776c[_0x32b94d(0x1e9)]['id']}};const _0x47593b={};return _0x47593b[_0x32b94d(0x1e2)]=_[_0x32b94d(0x1e6)](db['VoiceAgentReport']['rawAttributes']),_0x47593b['query']=_[_0x32b94d(0x1e6)](_0x24776c[_0x32b94d(0x1d9)]),_0x47593b[_0x32b94d(0x1bf)]=_['intersection'](_0x47593b[_0x32b94d(0x1e2)],_0x47593b[_0x32b94d(0x1d9)]),_0x334f79[_0x32b94d(0x1c5)]=_[_0x32b94d(0x1ce)](_0x47593b['model'],qs['fields'](_0x24776c[_0x32b94d(0x1d9)]['fields'])),_0x334f79[_0x32b94d(0x1c5)]=_0x334f79['attributes']['length']?_0x334f79[_0x32b94d(0x1c5)]:_0x47593b[_0x32b94d(0x1e2)],_0x24776c[_0x32b94d(0x1d9)][_0x32b94d(0x1df)]&&(_0x334f79['include']=[{'all':!![]}]),_0x334f79=_[_0x32b94d(0x1cc)]({},_0x334f79,_0x24776c[_0x32b94d(0x1d3)]),db[_0x32b94d(0x1e0)][_0x32b94d(0x1cd)](_0x334f79)[_0x32b94d(0x1be)](handleEntityNotFound(_0x5ca7e1,null))[_0x32b94d(0x1be)](respondWithResult(_0x5ca7e1,null))['catch'](handleError(_0x5ca7e1,null));},exports['create']=function(_0xcce797,_0x5676d1){const _0x287c93=a844_0x50d53c;return db['VoiceAgentReport'][_0x287c93(0x1cb)](_0xcce797['body'],{})[_0x287c93(0x1be)](respondWithResult(_0x5676d1,0xc9))['catch'](handleError(_0x5676d1,null));},exports[a844_0x50d53c(0x1ea)]=function(_0x46bd0a,_0x42478c){const _0x8d9c22=a844_0x50d53c;return _0x46bd0a[_0x8d9c22(0x1db)]['id']&&delete _0x46bd0a[_0x8d9c22(0x1db)]['id'],db['VoiceAgentReport'][_0x8d9c22(0x1cd)]({'where':{'id':_0x46bd0a[_0x8d9c22(0x1e9)]['id']}})[_0x8d9c22(0x1be)](handleEntityNotFound(_0x42478c,null))[_0x8d9c22(0x1be)](saveUpdates(_0x46bd0a[_0x8d9c22(0x1db)],null))['then'](respondWithResult(_0x42478c,null))[_0x8d9c22(0x1c6)](handleError(_0x42478c,null));},exports['destroy']=function(_0x20d154,_0x392c74){const _0x20e76a=a844_0x50d53c;return db[_0x20e76a(0x1e0)]['findOne']({'where':{'id':_0x20d154[_0x20e76a(0x1e9)]['id']}})[_0x20e76a(0x1be)](handleEntityNotFound(_0x392c74,null))[_0x20e76a(0x1be)](removeEntity(_0x392c74,null))[_0x20e76a(0x1c6)](handleError(_0x392c74,null));},exports[a844_0x50d53c(0x1da)]=function(_0x35bda4,_0x3cb044){const _0x1c4d8e=a844_0x50d53c;return db['VoiceAgentReport'][_0x1c4d8e(0x1da)]()['then'](respondWithResult(_0x3cb044,null))[_0x1c4d8e(0x1c6)](handleError(_0x3cb044,null));}; \ No newline at end of file +const a844_0x596b=['key','keys','name','includeAll','status','lodash','../../config/logger','sendStatus','order','../../components/parsers/qs','sort','like','fieldName','fields','count','model','findOne','limit','intersection','update','findAll','create','stack','../../mysqldb','Content-Range','pick','nolimit','catch','query','map','type','filters','where','index','VoiceAgentReport','filter','attributes','VIRTUAL','merge','send','offset','destroy','params','length','end','then','body','options','json','set','describe','include','error','rows','show'];(function(_0x33863,_0x5add11){const _0x596b09=function(_0x4e052c){while(--_0x4e052c){_0x33863['push'](_0x33863['shift']());}};_0x596b09(++_0x5add11);}(a844_0x596b,0xf3));const a844_0x4e05=function(_0x33863,_0x5add11){_0x33863=_0x33863-0x77;let _0x596b09=a844_0x596b[_0x33863];return _0x596b09;};const a844_0x350522=a844_0x4e05;'use strict';const _=require(a844_0x350522(0x9c)),qs=require(a844_0x350522(0xa0)),logger=require(a844_0x350522(0x9d))('api'),{db}=require(a844_0x350522(0x77)),{Op}=require('sequelize');function respondWithResult(_0xc67738,_0x43d804){return _0x43d804=_0x43d804||0xc8,function(_0x86438){const _0x2ea7ff=a844_0x4e05;if(_0x86438)return _0xc67738[_0x2ea7ff(0x9b)](_0x43d804)[_0x2ea7ff(0x90)](_0x86438);};}function respondWithFilteredResult(_0x125e6d,_0x4aad7f){return function(_0x54a49c){const _0x2069f7=a844_0x4e05;if(_0x54a49c){const _0x529f19=_0x54a49c[_0x2069f7(0xa5)],_0xdc48bd=_0x4aad7f[_0x2069f7(0x88)];let _0x34c336=_0x4aad7f[_0x2069f7(0x88)]+_0x4aad7f[_0x2069f7(0xa8)],_0x155dfa;return _0x34c336>=_0x529f19?(_0x34c336=_0x529f19,_0x155dfa=0xc8):_0x155dfa=0xce,_0x125e6d[_0x2069f7(0x9b)](_0x155dfa),_0x125e6d[_0x2069f7(0x91)](_0x2069f7(0x78),_0xdc48bd+'-'+_0x34c336+'/'+_0x529f19)[_0x2069f7(0x90)](_0x54a49c);}return null;};}function saveUpdates(_0x4e61a4){return function(_0x5cfd17){const _0x25fc34=a844_0x4e05;if(_0x5cfd17)return _0x5cfd17[_0x25fc34(0xaa)](_0x4e61a4)[_0x25fc34(0x8d)](function(_0x5db58c){return _0x5db58c;});return null;};}function removeEntity(_0x4632f6){return function(_0x1c69a2){const _0x4f52de=a844_0x4e05;if(_0x1c69a2)return _0x1c69a2['destroy']()[_0x4f52de(0x8d)](function(){const _0x4aa6db=_0x4f52de;_0x4632f6[_0x4aa6db(0x9b)](0xcc)[_0x4aa6db(0x8c)]();});};}function handleEntityNotFound(_0x3197c2){return function(_0x27f02d){const _0xc68628=a844_0x4e05;return!_0x27f02d&&_0x3197c2[_0xc68628(0x9e)](0x194),_0x27f02d;};}function handleError(_0x44c378,_0x45d24b){return _0x45d24b=_0x45d24b||0x1f4,function(_0x324143){const _0x4d6414=a844_0x4e05;logger[_0x4d6414(0x94)](_0x324143[_0x4d6414(0xad)]),_0x324143['name']&&delete _0x324143[_0x4d6414(0x99)],_0x44c378[_0x4d6414(0x9b)](_0x45d24b)[_0x4d6414(0x87)](_0x324143);};}exports[a844_0x350522(0x81)]=function(_0x3ec6a4,_0x42d803){const _0x453ff5=a844_0x350522;let _0xe549c0={};const _0x57f14c={},_0x1a3edb={'count':0x0,'rows':[]},_0x4627d9=_[_0x453ff5(0x7d)](db['VoiceAgentReport']['rawAttributes'],function(_0x83e2bb){const _0x420a30=_0x453ff5;return{'name':_0x83e2bb[_0x420a30(0xa3)],'type':_0x83e2bb['type'][_0x420a30(0x97)]};});_0x57f14c[_0x453ff5(0xa6)]=_['map'](_0x4627d9,_0x453ff5(0x99)),_0x57f14c['query']=_[_0x453ff5(0x98)](_0x3ec6a4[_0x453ff5(0x7c)]),_0x57f14c[_0x453ff5(0x7f)]=_['intersection'](_0x57f14c['model'],_0x57f14c[_0x453ff5(0x7c)]),_0xe549c0['attributes']=_[_0x453ff5(0xa9)](_0x57f14c[_0x453ff5(0xa6)],qs[_0x453ff5(0xa4)](_0x3ec6a4[_0x453ff5(0x7c)][_0x453ff5(0xa4)])),_0xe549c0['attributes']=_0xe549c0['attributes'][_0x453ff5(0x8b)]?_0xe549c0[_0x453ff5(0x84)]:_0x57f14c[_0x453ff5(0xa6)];typeof _0x3ec6a4[_0x453ff5(0x7c)][_0x453ff5(0x7a)]==='undefined'&&(_0xe549c0[_0x453ff5(0xa8)]=qs['limit'](_0x3ec6a4[_0x453ff5(0x7c)][_0x453ff5(0xa8)]),_0xe549c0[_0x453ff5(0x88)]=qs[_0x453ff5(0x88)](_0x3ec6a4[_0x453ff5(0x7c)][_0x453ff5(0x88)]));_0xe549c0[_0x453ff5(0x9f)]=qs[_0x453ff5(0xa1)](_0x3ec6a4[_0x453ff5(0x7c)]['sort']),_0xe549c0[_0x453ff5(0x80)]=qs['filters'](_[_0x453ff5(0x79)](_0x3ec6a4['query'],_0x57f14c[_0x453ff5(0x7f)]),_0x4627d9);_0x3ec6a4[_0x453ff5(0x7c)]['filter']&&(_0xe549c0[_0x453ff5(0x80)]=_[_0x453ff5(0x86)](_0xe549c0['where'],{[Op['or']]:_[_0x453ff5(0x7d)](_0x4627d9,function(_0x3ed025){const _0x451709=_0x453ff5;if(_0x3ed025[_0x451709(0x7e)]!==_0x451709(0x85)){const _0x1dbebf={};return _0x1dbebf[_0x3ed025[_0x451709(0x99)]]={[Op[_0x451709(0xa2)]]:'%'+_0x3ec6a4[_0x451709(0x7c)][_0x451709(0x83)]+'%'},_0x1dbebf;}})}));_0xe549c0=_[_0x453ff5(0x86)]({},_0xe549c0,_0x3ec6a4[_0x453ff5(0x8f)]);const _0xe50a3a={'where':_0xe549c0[_0x453ff5(0x80)]};return db[_0x453ff5(0x82)][_0x453ff5(0xa5)](_0xe50a3a)[_0x453ff5(0x8d)](function(_0x304906){const _0x10722f=_0x453ff5;return _0x1a3edb[_0x10722f(0xa5)]=_0x304906,_0x3ec6a4[_0x10722f(0x7c)][_0x10722f(0x9a)]&&(_0xe549c0[_0x10722f(0x93)]=[{'all':!![]}]),db[_0x10722f(0x82)][_0x10722f(0xab)](_0xe549c0);})['then'](function(_0x5cc51d){const _0x388512=_0x453ff5;return _0x1a3edb[_0x388512(0x95)]=_0x5cc51d,_0x1a3edb;})[_0x453ff5(0x8d)](respondWithFilteredResult(_0x42d803,_0xe549c0))[_0x453ff5(0x7b)](handleError(_0x42d803,null));},exports[a844_0x350522(0x96)]=function(_0x2201d0,_0x497210){const _0x1f66f9=a844_0x350522;let _0xb8ddcb={'raw':![],'where':{'id':_0x2201d0[_0x1f66f9(0x8a)]['id']}};const _0x465f83={};return _0x465f83[_0x1f66f9(0xa6)]=_[_0x1f66f9(0x98)](db['VoiceAgentReport']['rawAttributes']),_0x465f83[_0x1f66f9(0x7c)]=_['keys'](_0x2201d0['query']),_0x465f83[_0x1f66f9(0x7f)]=_[_0x1f66f9(0xa9)](_0x465f83[_0x1f66f9(0xa6)],_0x465f83[_0x1f66f9(0x7c)]),_0xb8ddcb[_0x1f66f9(0x84)]=_['intersection'](_0x465f83[_0x1f66f9(0xa6)],qs[_0x1f66f9(0xa4)](_0x2201d0[_0x1f66f9(0x7c)]['fields'])),_0xb8ddcb[_0x1f66f9(0x84)]=_0xb8ddcb['attributes'][_0x1f66f9(0x8b)]?_0xb8ddcb[_0x1f66f9(0x84)]:_0x465f83[_0x1f66f9(0xa6)],_0x2201d0['query'][_0x1f66f9(0x9a)]&&(_0xb8ddcb[_0x1f66f9(0x93)]=[{'all':!![]}]),_0xb8ddcb=_[_0x1f66f9(0x86)]({},_0xb8ddcb,_0x2201d0[_0x1f66f9(0x8f)]),db[_0x1f66f9(0x82)]['findOne'](_0xb8ddcb)[_0x1f66f9(0x8d)](handleEntityNotFound(_0x497210,null))[_0x1f66f9(0x8d)](respondWithResult(_0x497210,null))[_0x1f66f9(0x7b)](handleError(_0x497210,null));},exports[a844_0x350522(0xac)]=function(_0x23fb37,_0x3447d3){const _0x1cf594=a844_0x350522;return db[_0x1cf594(0x82)]['create'](_0x23fb37['body'],{})[_0x1cf594(0x8d)](respondWithResult(_0x3447d3,0xc9))[_0x1cf594(0x7b)](handleError(_0x3447d3,null));},exports[a844_0x350522(0xaa)]=function(_0x14315d,_0x5c5c56){const _0xdc9135=a844_0x350522;return _0x14315d[_0xdc9135(0x8e)]['id']&&delete _0x14315d[_0xdc9135(0x8e)]['id'],db['VoiceAgentReport'][_0xdc9135(0xa7)]({'where':{'id':_0x14315d[_0xdc9135(0x8a)]['id']}})[_0xdc9135(0x8d)](handleEntityNotFound(_0x5c5c56,null))[_0xdc9135(0x8d)](saveUpdates(_0x14315d['body'],null))[_0xdc9135(0x8d)](respondWithResult(_0x5c5c56,null))[_0xdc9135(0x7b)](handleError(_0x5c5c56,null));},exports[a844_0x350522(0x89)]=function(_0x4f5e6d,_0x14a1e4){const _0x36135d=a844_0x350522;return db[_0x36135d(0x82)]['findOne']({'where':{'id':_0x4f5e6d[_0x36135d(0x8a)]['id']}})[_0x36135d(0x8d)](handleEntityNotFound(_0x14a1e4,null))[_0x36135d(0x8d)](removeEntity(_0x14a1e4,null))['catch'](handleError(_0x14a1e4,null));},exports[a844_0x350522(0x92)]=function(_0x54c2f3,_0x44d5d9){const _0x3997d6=a844_0x350522;return db['VoiceAgentReport']['describe']()[_0x3997d6(0x8d)](respondWithResult(_0x44d5d9,null))[_0x3997d6(0x7b)](handleError(_0x44d5d9,null));}; \ No newline at end of file diff --git a/server/api/voiceAgentReport/voiceAgentReport.model.js b/server/api/voiceAgentReport/voiceAgentReport.model.js index 49eb630..25a3794 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.model.js +++ b/server/api/voiceAgentReport/voiceAgentReport.model.js @@ -1 +1 @@ -const a845_0x1211=['./voiceAgentReport.options','exports','function','init','./voiceAgentReport.attributes'];(function(_0x23edb7,_0x19c3b4){const _0x121188=function(_0x436153){while(--_0x436153){_0x23edb7['push'](_0x23edb7['shift']());}};_0x121188(++_0x19c3b4);}(a845_0x1211,0x99));const a845_0x4361=function(_0x23edb7,_0x19c3b4){_0x23edb7=_0x23edb7-0x65;let _0x121188=a845_0x1211[_0x23edb7];return _0x121188;};const a845_0x36e12d=a845_0x4361;'use strict';const {Model}=require('sequelize'),{attributes}=require(a845_0x36e12d(0x66)),{options}=require(a845_0x36e12d(0x67));class VoiceAgentReport extends Model{}function init(_0x5f0de5,_0x50a5dc){const _0x3b1583=a845_0x36e12d,_0x1be245=options(_0x5f0de5),_0x276b0c=typeof _0x50a5dc===_0x3b1583(0x69)?_0x50a5dc(_0x1be245):_0x1be245;return VoiceAgentReport[_0x3b1583(0x65)](attributes,_0x276b0c),VoiceAgentReport;}module[a845_0x36e12d(0x68)]['VoiceAgentReport']=VoiceAgentReport,module[a845_0x36e12d(0x68)]['init']=init; \ No newline at end of file +const a845_0x535d=['./voiceAgentReport.options','exports','init'];(function(_0x4f6ae3,_0x468292){const _0x535d95=function(_0x40d234){while(--_0x40d234){_0x4f6ae3['push'](_0x4f6ae3['shift']());}};_0x535d95(++_0x468292);}(a845_0x535d,0x14d));const a845_0x40d2=function(_0x4f6ae3,_0x468292){_0x4f6ae3=_0x4f6ae3-0xd2;let _0x535d95=a845_0x535d[_0x4f6ae3];return _0x535d95;};const a845_0x266ed9=a845_0x40d2;'use strict';const {Model}=require('sequelize'),{attributes}=require('./voiceAgentReport.attributes'),{options}=require(a845_0x266ed9(0xd2));class VoiceAgentReport extends Model{}function init(_0x323938,_0x599981){const _0x23f0f0=a845_0x266ed9,_0x3d09f0=options(_0x323938),_0x330811=typeof _0x599981==='function'?_0x599981(_0x3d09f0):_0x3d09f0;return VoiceAgentReport[_0x23f0f0(0xd4)](attributes,_0x330811),VoiceAgentReport;}module[a845_0x266ed9(0xd3)]['VoiceAgentReport']=VoiceAgentReport,module[a845_0x266ed9(0xd3)][a845_0x266ed9(0xd4)]=init; \ No newline at end of file diff --git a/server/api/voiceAgentReport/voiceAgentReport.options.js b/server/api/voiceAgentReport/voiceAgentReport.options.js index 18f6303..fe735f2 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.options.js +++ b/server/api/voiceAgentReport/voiceAgentReport.options.js @@ -1 +1 @@ -var a846_0xc56b=['destuniqueid','options','uniqueid','report_agent','exports'];(function(_0x258994,_0x42f59e){var _0xc56b67=function(_0x1b410a){while(--_0x1b410a){_0x258994['push'](_0x258994['shift']());}};_0xc56b67(++_0x42f59e);}(a846_0xc56b,0x6a));var a846_0x1b41=function(_0x258994,_0x42f59e){_0x258994=_0x258994-0x18e;var _0xc56b67=a846_0xc56b[_0x258994];return _0xc56b67;};var a846_0x436a38=a846_0x1b41;function options(_0x16250c){var _0x1d4e90=a846_0x1b41;return{'sequelize':_0x16250c,'tableName':_0x1d4e90(0x190),'paranoid':![],'indexes':[{'fields':[_0x1d4e90(0x18f),_0x1d4e90(0x192)]}],'timestamps':!![]};}module[a846_0x436a38(0x191)][a846_0x436a38(0x18e)]=options; \ No newline at end of file +var a846_0x5b36=['report_agent','exports','uniqueid','destuniqueid','options'];(function(_0x3408eb,_0x2ca5a9){var _0x5b3650=function(_0x54c603){while(--_0x54c603){_0x3408eb['push'](_0x3408eb['shift']());}};_0x5b3650(++_0x2ca5a9);}(a846_0x5b36,0x16a));var a846_0x54c6=function(_0x3408eb,_0x2ca5a9){_0x3408eb=_0x3408eb-0xa1;var _0x5b3650=a846_0x5b36[_0x3408eb];return _0x5b3650;};var a846_0x27e3b9=a846_0x54c6;function options(_0xb49b8a){var _0xd9a45b=a846_0x54c6;return{'sequelize':_0xb49b8a,'tableName':_0xd9a45b(0xa4),'paranoid':![],'indexes':[{'fields':[_0xd9a45b(0xa1),_0xd9a45b(0xa2)]}],'timestamps':!![]};}module[a846_0x27e3b9(0xa5)][a846_0x27e3b9(0xa3)]=options; \ No newline at end of file diff --git a/server/api/voiceAgentReport/voiceAgentReport.rpc.js b/server/api/voiceAgentReport/voiceAgentReport.rpc.js index 3b28067..9bd828d 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.rpc.js +++ b/server/api/voiceAgentReport/voiceAgentReport.rpc.js @@ -1 +1 @@ -const a847_0x442c=['where','../../config/logger','update','rpc','options','catch','then','message','create','UpdateVoiceAgentReport','stringify','body','VoiceAgentReport','info','CreateVoiceAgentReport','error','raw'];(function(_0xe79de5,_0x5e2111){const _0x442ca0=function(_0x27ad33){while(--_0x27ad33){_0xe79de5['push'](_0xe79de5['shift']());}};_0x442ca0(++_0x5e2111);}(a847_0x442c,0xe6));const a847_0x27ad=function(_0xe79de5,_0x5e2111){_0xe79de5=_0xe79de5-0x74;let _0x442ca0=a847_0x442c[_0xe79de5];return _0x442ca0;};const a847_0x561cab=a847_0x27ad;'use strict';const db=require('../../mysqldb')['db'],logger=require(a847_0x561cab(0x7d))(a847_0x561cab(0x7f));exports[a847_0x561cab(0x79)]=function(_0x1fa2a7){const _0x4056ad=this;return new Promise(function(_0x1615af,_0x21db53){const _0x22d76e=a847_0x27ad;return db[_0x22d76e(0x77)][_0x22d76e(0x84)](_0x1fa2a7[_0x22d76e(0x76)],{'raw':_0x1fa2a7[_0x22d76e(0x80)]?_0x1fa2a7[_0x22d76e(0x80)][_0x22d76e(0x7b)]===undefined?!![]:![]:!![]})[_0x22d76e(0x82)](function(_0x56a408){const _0x19ce66=_0x22d76e;logger[_0x19ce66(0x78)](_0x19ce66(0x79),_0x1fa2a7),logger['debug'](_0x19ce66(0x79),_0x1fa2a7,JSON[_0x19ce66(0x75)](_0x56a408)),_0x1615af(_0x56a408);})[_0x22d76e(0x81)](function(_0x1f626a){const _0xa492bb=_0x22d76e;logger[_0xa492bb(0x7a)](_0xa492bb(0x79),_0x1f626a[_0xa492bb(0x83)],_0x1fa2a7),_0x21db53(_0x4056ad[_0xa492bb(0x7a)](0x1f4,_0x1f626a[_0xa492bb(0x83)]));});});},exports[a847_0x561cab(0x74)]=function(_0x2661ba){const _0x310e0e=this;return new Promise(function(_0x165108,_0x1ca4cc){const _0x2cb522=a847_0x27ad;return db[_0x2cb522(0x77)][_0x2cb522(0x7e)](_0x2661ba['body'],{'raw':_0x2661ba[_0x2cb522(0x80)]?_0x2661ba['options'][_0x2cb522(0x7b)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2661ba[_0x2cb522(0x80)]?_0x2661ba[_0x2cb522(0x80)][_0x2cb522(0x7c)]||null:null,'attributes':_0x2661ba[_0x2cb522(0x80)]?_0x2661ba['options']['attributes']||null:null,'limit':_0x2661ba[_0x2cb522(0x80)]?_0x2661ba[_0x2cb522(0x80)]['limit']||null:null})['then'](function(_0x2f227c){const _0x5980f1=_0x2cb522;logger[_0x5980f1(0x78)](_0x5980f1(0x74),_0x2661ba),logger['debug'](_0x5980f1(0x74),_0x2661ba,JSON['stringify'](_0x2f227c)),_0x165108(_0x2f227c);})['catch'](function(_0xc70da){const _0x39b3b4=_0x2cb522;logger[_0x39b3b4(0x7a)](_0x39b3b4(0x74),_0xc70da['message'],_0x2661ba),_0x1ca4cc(_0x310e0e[_0x39b3b4(0x7a)](0x1f4,_0xc70da[_0x39b3b4(0x83)]));});});}; \ No newline at end of file +const a847_0x1881=['error','stringify','options','then','VoiceAgentReport','where','create','message','../../config/logger','UpdateVoiceAgentReport','../../mysqldb','rpc','CreateVoiceAgentReport','raw','info','debug','body','attributes','update','catch'];(function(_0x32f859,_0x50bf9b){const _0x188125=function(_0x1cc8c6){while(--_0x1cc8c6){_0x32f859['push'](_0x32f859['shift']());}};_0x188125(++_0x50bf9b);}(a847_0x1881,0x1e4));const a847_0x1cc8=function(_0x32f859,_0x50bf9b){_0x32f859=_0x32f859-0x16d;let _0x188125=a847_0x1881[_0x32f859];return _0x188125;};const a847_0x2daa3c=a847_0x1cc8;'use strict';const db=require(a847_0x2daa3c(0x173))['db'],logger=require(a847_0x2daa3c(0x171))(a847_0x2daa3c(0x174));exports['CreateVoiceAgentReport']=function(_0x2d0e1b){const _0x1a13cb=this;return new Promise(function(_0x5d0db0,_0x513994){const _0xf531a0=a847_0x1cc8;return db[_0xf531a0(0x16d)][_0xf531a0(0x16f)](_0x2d0e1b['body'],{'raw':_0x2d0e1b[_0xf531a0(0x17f)]?_0x2d0e1b[_0xf531a0(0x17f)][_0xf531a0(0x176)]===undefined?!![]:![]:!![]})[_0xf531a0(0x180)](function(_0x5ba3ac){const _0x329180=_0xf531a0;logger[_0x329180(0x177)](_0x329180(0x175),_0x2d0e1b),logger['debug']('CreateVoiceAgentReport',_0x2d0e1b,JSON[_0x329180(0x17e)](_0x5ba3ac)),_0x5d0db0(_0x5ba3ac);})[_0xf531a0(0x17c)](function(_0x434f1c){const _0x31cba7=_0xf531a0;logger['error']('CreateVoiceAgentReport',_0x434f1c[_0x31cba7(0x170)],_0x2d0e1b),_0x513994(_0x1a13cb[_0x31cba7(0x17d)](0x1f4,_0x434f1c[_0x31cba7(0x170)]));});});},exports['UpdateVoiceAgentReport']=function(_0xc2bf9c){const _0x3e9159=this;return new Promise(function(_0x1be019,_0x9007b6){const _0x6e7721=a847_0x1cc8;return db[_0x6e7721(0x16d)][_0x6e7721(0x17b)](_0xc2bf9c[_0x6e7721(0x179)],{'raw':_0xc2bf9c['options']?_0xc2bf9c[_0x6e7721(0x17f)]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xc2bf9c[_0x6e7721(0x17f)]?_0xc2bf9c[_0x6e7721(0x17f)][_0x6e7721(0x16e)]||null:null,'attributes':_0xc2bf9c[_0x6e7721(0x17f)]?_0xc2bf9c[_0x6e7721(0x17f)][_0x6e7721(0x17a)]||null:null,'limit':_0xc2bf9c[_0x6e7721(0x17f)]?_0xc2bf9c['options']['limit']||null:null})['then'](function(_0x44f798){const _0x4c0491=_0x6e7721;logger[_0x4c0491(0x177)](_0x4c0491(0x172),_0xc2bf9c),logger[_0x4c0491(0x178)](_0x4c0491(0x172),_0xc2bf9c,JSON['stringify'](_0x44f798)),_0x1be019(_0x44f798);})[_0x6e7721(0x17c)](function(_0x21a803){const _0xe4fed8=_0x6e7721;logger[_0xe4fed8(0x17d)]('UpdateVoiceAgentReport',_0x21a803[_0xe4fed8(0x170)],_0xc2bf9c),_0x9007b6(_0x3e9159[_0xe4fed8(0x17d)](0x1f4,_0x21a803[_0xe4fed8(0x170)]));});});}; \ No newline at end of file diff --git a/server/api/voiceCallReport/index.js b/server/api/voiceCallReport/index.js index a14dd9b..71e7465 100644 --- a/server/api/voiceCallReport/index.js +++ b/server/api/voiceCallReport/index.js @@ -1 +1 @@ -const a848_0x3927=['express','get','create','index','../../components/auth/service','show','put','post','/:id','Router','exports','destroy','describe','./voiceCallReport.controller','isAuthenticated'];(function(_0x4d733a,_0x40518e){const _0x392798=function(_0x50ed05){while(--_0x50ed05){_0x4d733a['push'](_0x4d733a['shift']());}};_0x392798(++_0x40518e);}(a848_0x3927,0x6a));const a848_0x50ed=function(_0x4d733a,_0x40518e){_0x4d733a=_0x4d733a-0xf8;let _0x392798=a848_0x3927[_0x4d733a];return _0x392798;};const a848_0xa63047=a848_0x50ed;'use strict';const express=require(a848_0xa63047(0x106)),router=express[a848_0xa63047(0x100)](),auth=require(a848_0xa63047(0xfb)),controller=require(a848_0xa63047(0x104));router['get']('/',auth[a848_0xa63047(0x105)](),controller[a848_0xa63047(0xfa)]),router['get']('/describe',auth[a848_0xa63047(0x105)](),controller[a848_0xa63047(0x103)]),router[a848_0xa63047(0xf8)](a848_0xa63047(0xff),auth['isAuthenticated'](),controller[a848_0xa63047(0xfc)]),router[a848_0xa63047(0xfe)]('/',auth['isAuthenticated'](),controller[a848_0xa63047(0xf9)]),router[a848_0xa63047(0xfd)](a848_0xa63047(0xff),auth[a848_0xa63047(0x105)](),controller['update']),router['delete']('/:id',auth[a848_0xa63047(0x105)](),controller[a848_0xa63047(0x102)]),module[a848_0xa63047(0x101)]=router; \ No newline at end of file +const a848_0x5d03=['index','destroy','update','get','./voiceCallReport.controller','isAuthenticated','exports','Router','describe','post','create','show','/:id','express'];(function(_0xa4f102,_0x29fb67){const _0x5d031a=function(_0xb6c832){while(--_0xb6c832){_0xa4f102['push'](_0xa4f102['shift']());}};_0x5d031a(++_0x29fb67);}(a848_0x5d03,0x65));const a848_0xb6c8=function(_0xa4f102,_0x29fb67){_0xa4f102=_0xa4f102-0xe8;let _0x5d031a=a848_0x5d03[_0xa4f102];return _0x5d031a;};const a848_0x3941db=a848_0xb6c8;'use strict';const express=require(a848_0x3941db(0xf2)),router=express[a848_0x3941db(0xec)](),auth=require('../../components/auth/service'),controller=require(a848_0x3941db(0xe9));router[a848_0x3941db(0xe8)]('/',auth['isAuthenticated'](),controller[a848_0x3941db(0xf3)]),router['get']('/describe',auth['isAuthenticated'](),controller[a848_0x3941db(0xed)]),router[a848_0x3941db(0xe8)](a848_0x3941db(0xf1),auth[a848_0x3941db(0xea)](),controller[a848_0x3941db(0xf0)]),router[a848_0x3941db(0xee)]('/',auth[a848_0x3941db(0xea)](),controller[a848_0x3941db(0xef)]),router['put'](a848_0x3941db(0xf1),auth[a848_0x3941db(0xea)](),controller[a848_0x3941db(0xf5)]),router['delete'](a848_0x3941db(0xf1),auth[a848_0x3941db(0xea)](),controller[a848_0x3941db(0xf4)]),module[a848_0x3941db(0xeb)]=router; \ No newline at end of file diff --git a/server/api/voiceCallReport/voiceCallReport.attributes.js b/server/api/voiceCallReport/voiceCallReport.attributes.js index 6b5977e..3fd963d 100644 --- a/server/api/voiceCallReport/voiceCallReport.attributes.js +++ b/server/api/voiceCallReport/voiceCallReport.attributes.js @@ -1 +1 @@ -const a849_0x54eb=['sequelize','DATE','STRING','outbound-fax','TEXT','INTEGER','ENUM','internal','dialer','exports','attributes'];(function(_0x5c172a,_0x2b2ebd){const _0x54ebac=function(_0x439c60){while(--_0x439c60){_0x5c172a['push'](_0x5c172a['shift']());}};_0x54ebac(++_0x2b2ebd);}(a849_0x54eb,0x11d));const a849_0x439c=function(_0x5c172a,_0x2b2ebd){_0x5c172a=_0x5c172a-0xa0;let _0x54ebac=a849_0x54eb[_0x5c172a];return _0x54ebac;};const a849_0x20c10c=a849_0x439c;'use strict';const {DataTypes}=require(a849_0x20c10c(0xa1)),attributes={'uniqueid':{'type':DataTypes[a849_0x20c10c(0xa3)]},'type':{'type':DataTypes[a849_0x20c10c(0xa7)]('inbound',a849_0x20c10c(0xa8),'outbound','inbound-fax',a849_0x20c10c(0xa4),a849_0x20c10c(0xa9))},'tag':{'type':DataTypes['STRING']},'accountcode':{'type':DataTypes[a849_0x20c10c(0xa3)]},'source':{'type':DataTypes['STRING']},'destination':{'type':DataTypes['STRING']},'destinationcontext':{'type':DataTypes[a849_0x20c10c(0xa3)]},'callerid':{'type':DataTypes[a849_0x20c10c(0xa3)]},'channel':{'type':DataTypes[a849_0x20c10c(0xa3)]},'destinationchannel':{'type':DataTypes[a849_0x20c10c(0xa3)]},'lastapplication':{'type':DataTypes['STRING']},'lastdata':{'type':DataTypes[a849_0x20c10c(0xa5)]},'starttime':{'type':DataTypes['DATE']},'systemanswertime':{'type':DataTypes[a849_0x20c10c(0xa2)]},'answertime':{'type':DataTypes[a849_0x20c10c(0xa2)]},'endtime':{'type':DataTypes['DATE']},'duration':{'type':DataTypes['INTEGER']},'billableseconds':{'type':DataTypes[a849_0x20c10c(0xa6)]},'mohtime':{'type':DataTypes[a849_0x20c10c(0xa6)],'defaultValue':0x0},'disposition':{'type':DataTypes[a849_0x20c10c(0xa3)]},'amaflags':{'type':DataTypes['STRING']},'userfield':{'type':DataTypes[a849_0x20c10c(0xa3)]},'userDisposition':{'type':DataTypes[a849_0x20c10c(0xa3)]},'userSecondDisposition':{'type':DataTypes['STRING']},'userThirdDisposition':{'type':DataTypes[a849_0x20c10c(0xa3)]},'note':{'type':DataTypes[a849_0x20c10c(0xa3)]},'prefix':{'type':DataTypes[a849_0x20c10c(0xa3)]},'routeid':{'type':DataTypes[a849_0x20c10c(0xa6)]},'sipcallid':{'type':DataTypes['STRING']}};module[a849_0x20c10c(0xaa)][a849_0x20c10c(0xa0)]=attributes; \ No newline at end of file +const a849_0x4f70=['outbound-fax','sequelize','dialer','DATE','inbound-fax','inbound','INTEGER','STRING','exports','TEXT','internal','ENUM'];(function(_0x3cdc33,_0x1d7fbf){const _0x4f70de=function(_0x69059a){while(--_0x69059a){_0x3cdc33['push'](_0x3cdc33['shift']());}};_0x4f70de(++_0x1d7fbf);}(a849_0x4f70,0xd9));const a849_0x6905=function(_0x3cdc33,_0x1d7fbf){_0x3cdc33=_0x3cdc33-0x129;let _0x4f70de=a849_0x4f70[_0x3cdc33];return _0x4f70de;};const a849_0x40c08b=a849_0x6905;'use strict';const {DataTypes}=require(a849_0x40c08b(0x129)),attributes={'uniqueid':{'type':DataTypes['STRING']},'type':{'type':DataTypes[a849_0x40c08b(0x133)](a849_0x40c08b(0x12d),a849_0x40c08b(0x132),'outbound',a849_0x40c08b(0x12c),a849_0x40c08b(0x134),a849_0x40c08b(0x12a))},'tag':{'type':DataTypes[a849_0x40c08b(0x12f)]},'accountcode':{'type':DataTypes[a849_0x40c08b(0x12f)]},'source':{'type':DataTypes[a849_0x40c08b(0x12f)]},'destination':{'type':DataTypes['STRING']},'destinationcontext':{'type':DataTypes[a849_0x40c08b(0x12f)]},'callerid':{'type':DataTypes[a849_0x40c08b(0x12f)]},'channel':{'type':DataTypes[a849_0x40c08b(0x12f)]},'destinationchannel':{'type':DataTypes[a849_0x40c08b(0x12f)]},'lastapplication':{'type':DataTypes[a849_0x40c08b(0x12f)]},'lastdata':{'type':DataTypes[a849_0x40c08b(0x131)]},'starttime':{'type':DataTypes[a849_0x40c08b(0x12b)]},'systemanswertime':{'type':DataTypes[a849_0x40c08b(0x12b)]},'answertime':{'type':DataTypes['DATE']},'endtime':{'type':DataTypes[a849_0x40c08b(0x12b)]},'duration':{'type':DataTypes[a849_0x40c08b(0x12e)]},'billableseconds':{'type':DataTypes[a849_0x40c08b(0x12e)]},'mohtime':{'type':DataTypes[a849_0x40c08b(0x12e)],'defaultValue':0x0},'disposition':{'type':DataTypes[a849_0x40c08b(0x12f)]},'amaflags':{'type':DataTypes['STRING']},'userfield':{'type':DataTypes[a849_0x40c08b(0x12f)]},'userDisposition':{'type':DataTypes[a849_0x40c08b(0x12f)]},'userSecondDisposition':{'type':DataTypes[a849_0x40c08b(0x12f)]},'userThirdDisposition':{'type':DataTypes['STRING']},'note':{'type':DataTypes[a849_0x40c08b(0x12f)]},'prefix':{'type':DataTypes['STRING']},'routeid':{'type':DataTypes[a849_0x40c08b(0x12e)]},'sipcallid':{'type':DataTypes[a849_0x40c08b(0x12f)]}};module[a849_0x40c08b(0x130)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/voiceCallReport/voiceCallReport.controller.js b/server/api/voiceCallReport/voiceCallReport.controller.js index 21b97d4..4229257 100644 --- a/server/api/voiceCallReport/voiceCallReport.controller.js +++ b/server/api/voiceCallReport/voiceCallReport.controller.js @@ -1 +1 @@ -const a850_0x2966=['fields','../../components/parsers/qs','catch','user','update','VoiceCallReport','type','include','create','options','findAll','end','map','send','sort','json','rawAttributes','model','query','then','index','api','fullname','body','pick','name','order','filter','VIRTUAL','../../config/logger','intersection','params','offset','findOne','Content-Range','like','error','show','nolimit','undefined','length','key','alias','filters','sequelize','merge','keys','User','limit','describe','uniqueid','rows','status','includeAll','count','attributes','destroy','where','lodash'];(function(_0x268054,_0x4d23fa){const _0x29663d=function(_0x294383){while(--_0x294383){_0x268054['push'](_0x268054['shift']());}};_0x29663d(++_0x4d23fa);}(a850_0x2966,0x1e8));const a850_0x2943=function(_0x268054,_0x4d23fa){_0x268054=_0x268054-0x17b;let _0x29663d=a850_0x2966[_0x268054];return _0x29663d;};const a850_0x562b32=a850_0x2943;'use strict';const _=require(a850_0x562b32(0x1a5)),qs=require(a850_0x562b32(0x1a7)),logger=require(a850_0x562b32(0x188))(a850_0x562b32(0x180)),{db}=require('../../mysqldb'),{Op}=require(a850_0x562b32(0x197));function respondWithResult(_0x429672,_0x358ed0){return _0x358ed0=_0x358ed0||0xc8,function(_0xd00826){const _0x54c736=a850_0x2943;if(_0xd00826)return _0x429672[_0x54c736(0x19f)](_0x358ed0)['json'](_0xd00826);};}function respondWithFilteredResult(_0x329c70,_0x4f197d){return function(_0x1d9a41){const _0x20ae86=a850_0x2943;if(_0x1d9a41){const _0x31a262=_0x1d9a41['count'],_0x56b617=_0x4f197d[_0x20ae86(0x18b)];let _0x3180b0=_0x4f197d[_0x20ae86(0x18b)]+_0x4f197d[_0x20ae86(0x19b)],_0x2d5ee0;return _0x3180b0>=_0x31a262?(_0x3180b0=_0x31a262,_0x2d5ee0=0xc8):_0x2d5ee0=0xce,_0x329c70[_0x20ae86(0x19f)](_0x2d5ee0),_0x329c70['set'](_0x20ae86(0x18d),_0x56b617+'-'+_0x3180b0+'/'+_0x31a262)[_0x20ae86(0x1b5)](_0x1d9a41);}return null;};}function saveUpdates(_0x1aa8c6){return function(_0x27de86){const _0x58e45d=a850_0x2943;if(_0x27de86)return _0x27de86[_0x58e45d(0x1aa)](_0x1aa8c6)[_0x58e45d(0x17e)](function(_0x21b8d5){return _0x21b8d5;});return null;};}function removeEntity(_0x253fb4){return function(_0x58387e){const _0x2a65e4=a850_0x2943;if(_0x58387e)return _0x58387e[_0x2a65e4(0x1a3)]()[_0x2a65e4(0x17e)](function(){const _0x480fbc=_0x2a65e4;_0x253fb4[_0x480fbc(0x19f)](0xcc)[_0x480fbc(0x1b1)]();});};}function handleEntityNotFound(_0x384189){return function(_0x2d3b57){return!_0x2d3b57&&_0x384189['sendStatus'](0x194),_0x2d3b57;};}function handleError(_0x2fd2b9,_0x162f6e){return _0x162f6e=_0x162f6e||0x1f4,function(_0x290505){const _0x33f833=a850_0x2943;logger[_0x33f833(0x18f)](_0x290505['stack']),_0x290505[_0x33f833(0x184)]&&delete _0x290505[_0x33f833(0x184)],_0x2fd2b9['status'](_0x162f6e)[_0x33f833(0x1b3)](_0x290505);};}exports[a850_0x562b32(0x17f)]=function(_0x5c5924,_0x3708cf){const _0x332b69=a850_0x562b32;let _0x1b58c9={};const _0x43d611={},_0xbdd7a1={'count':0x0,'rows':[]},_0x1bc56c=_['map'](db['VoiceCallReport'][_0x332b69(0x17b)],function(_0x1901f4){const _0x4de99f=_0x332b69;return{'name':_0x1901f4['fieldName'],'type':_0x1901f4[_0x4de99f(0x1ac)][_0x4de99f(0x194)]};});_0x43d611[_0x332b69(0x17c)]=_[_0x332b69(0x1b2)](_0x1bc56c,_0x332b69(0x184)),_0x43d611[_0x332b69(0x17d)]=_[_0x332b69(0x199)](_0x5c5924[_0x332b69(0x17d)]),_0x43d611[_0x332b69(0x196)]=_['intersection'](_0x43d611[_0x332b69(0x17c)],_0x43d611[_0x332b69(0x17d)]),_0x1b58c9[_0x332b69(0x1a2)]=_['intersection'](_0x43d611[_0x332b69(0x17c)],qs[_0x332b69(0x1a6)](_0x5c5924[_0x332b69(0x17d)][_0x332b69(0x1a6)])),_0x1b58c9['attributes']=_0x1b58c9[_0x332b69(0x1a2)][_0x332b69(0x193)]?_0x1b58c9['attributes']:_0x43d611[_0x332b69(0x17c)];typeof _0x5c5924[_0x332b69(0x17d)][_0x332b69(0x191)]===_0x332b69(0x192)&&(_0x1b58c9[_0x332b69(0x19b)]=qs[_0x332b69(0x19b)](_0x5c5924[_0x332b69(0x17d)][_0x332b69(0x19b)]),_0x1b58c9[_0x332b69(0x18b)]=qs[_0x332b69(0x18b)](_0x5c5924[_0x332b69(0x17d)][_0x332b69(0x18b)]));_0x1b58c9[_0x332b69(0x185)]=qs[_0x332b69(0x1b4)](_0x5c5924[_0x332b69(0x17d)][_0x332b69(0x1b4)]),_0x1b58c9[_0x332b69(0x1a4)]=qs[_0x332b69(0x196)](_[_0x332b69(0x183)](_0x5c5924[_0x332b69(0x17d)],_0x43d611[_0x332b69(0x196)]),_0x1bc56c);_0x5c5924[_0x332b69(0x17d)][_0x332b69(0x186)]&&(_0x1b58c9['where']=_[_0x332b69(0x198)](_0x1b58c9[_0x332b69(0x1a4)],{[Op['or']]:_[_0x332b69(0x1b2)](_0x1bc56c,function(_0x4754cf){const _0x34ef53=_0x332b69;if(_0x4754cf['type']!==_0x34ef53(0x187)){const _0x363959={};return _0x363959[_0x4754cf['name']]={[Op[_0x34ef53(0x18e)]]:'%'+_0x5c5924[_0x34ef53(0x17d)][_0x34ef53(0x186)]+'%'},_0x363959;}})}));_0x1b58c9=_['merge']({},_0x1b58c9,_0x5c5924['options']);const _0x1d0ed1={'where':_0x1b58c9[_0x332b69(0x1a4)]};return db[_0x332b69(0x1ab)][_0x332b69(0x1a1)](_0x1d0ed1)[_0x332b69(0x17e)](function(_0x5f009d){const _0x5d9a97=_0x332b69;return _0xbdd7a1[_0x5d9a97(0x1a1)]=_0x5f009d,_0x5c5924[_0x5d9a97(0x17d)][_0x5d9a97(0x1a0)]&&(_0x1b58c9['include']=[{'attributes':['id','name',_0x5d9a97(0x181),_0x5d9a97(0x195)],'model':db[_0x5d9a97(0x19a)],'as':_0x5d9a97(0x19a)}]),db[_0x5d9a97(0x1ab)][_0x5d9a97(0x1b0)](_0x1b58c9);})[_0x332b69(0x17e)](function(_0x1b4939){const _0x1ab90b=_0x332b69;return _0xbdd7a1[_0x1ab90b(0x19e)]=_0x1b4939,_0xbdd7a1;})[_0x332b69(0x17e)](respondWithFilteredResult(_0x3708cf,_0x1b58c9))[_0x332b69(0x1a8)](handleError(_0x3708cf,null));},exports[a850_0x562b32(0x190)]=function(_0x27aadf,_0x2a2751){const _0x440ed4=a850_0x562b32;let _0x263ef4={'raw':!![],'where':{'id':_0x27aadf[_0x440ed4(0x18a)]['id']}};const _0x346518={};return _0x346518['model']=_[_0x440ed4(0x199)](db[_0x440ed4(0x1ab)]['rawAttributes']),_0x346518[_0x440ed4(0x17d)]=_[_0x440ed4(0x199)](_0x27aadf[_0x440ed4(0x17d)]),_0x346518['filters']=_[_0x440ed4(0x189)](_0x346518[_0x440ed4(0x17c)],_0x346518[_0x440ed4(0x17d)]),_0x263ef4[_0x440ed4(0x1a2)]=_['intersection'](_0x346518['model'],qs[_0x440ed4(0x1a6)](_0x27aadf['query']['fields'])),_0x263ef4['attributes']=_0x263ef4[_0x440ed4(0x1a2)][_0x440ed4(0x193)]?_0x263ef4[_0x440ed4(0x1a2)]:_0x346518[_0x440ed4(0x17c)],_0x27aadf[_0x440ed4(0x17d)][_0x440ed4(0x1a0)]&&(_0x263ef4[_0x440ed4(0x1ad)]=[{'all':!![]}]),_0x263ef4=_[_0x440ed4(0x198)]({},_0x263ef4,_0x27aadf[_0x440ed4(0x1af)]),db[_0x440ed4(0x1ab)][_0x440ed4(0x18c)](_0x263ef4)[_0x440ed4(0x17e)](handleEntityNotFound(_0x2a2751,null))[_0x440ed4(0x17e)](respondWithResult(_0x2a2751,null))[_0x440ed4(0x1a8)](handleError(_0x2a2751,null));},exports['create']=function(_0x1d0351,_0x623b4){const _0xbb8c60=a850_0x562b32;return db[_0xbb8c60(0x1ab)][_0xbb8c60(0x1ae)](_0x1d0351[_0xbb8c60(0x182)],{})[_0xbb8c60(0x17e)](respondWithResult(_0x623b4,0xc9))['catch'](handleError(_0x623b4,null));},exports[a850_0x562b32(0x1a3)]=function(_0x44025f,_0x5c81aa){const _0x53476f=a850_0x562b32;return db['VoiceCallReport'][_0x53476f(0x18c)]({'where':{'id':_0x44025f[_0x53476f(0x18a)]['id']}})['then'](handleEntityNotFound(_0x5c81aa,null))[_0x53476f(0x17e)](removeEntity(_0x5c81aa,null))['catch'](handleError(_0x5c81aa,null));},exports[a850_0x562b32(0x19c)]=function(_0x166b11,_0x1d681e){const _0x4788c1=a850_0x562b32;return db[_0x4788c1(0x1ab)][_0x4788c1(0x19c)]()['then'](respondWithResult(_0x1d681e,null))['catch'](handleError(_0x1d681e,null));},exports[a850_0x562b32(0x1aa)]=function(_0x52b93a,_0x3a1da2){const _0x15e734=a850_0x562b32;return _0x52b93a[_0x15e734(0x182)][_0x15e734(0x19d)]&&delete _0x52b93a[_0x15e734(0x182)][_0x15e734(0x19d)],db['VoiceCallReport'][_0x15e734(0x18c)]({'where':{'uniqueid':_0x52b93a[_0x15e734(0x18a)]['id'],'UserId':{[Op['or']]:[null,_0x52b93a[_0x15e734(0x1a9)]['id']]}}})[_0x15e734(0x17e)](handleEntityNotFound(_0x3a1da2,null))[_0x15e734(0x17e)](saveUpdates(_0x52b93a[_0x15e734(0x182)],null))[_0x15e734(0x17e)](respondWithResult(_0x3a1da2,null))[_0x15e734(0x1a8)](handleError(_0x3a1da2,null));}; \ No newline at end of file +const a850_0x52ca=['../../mysqldb','index','destroy','options','fieldName','query','api','params','create','then','findAll','includeAll','sort','VoiceCallReport','status','length','merge','body','include','update','lodash','type','key','filters','where','fields','order','model','filter','end','name','../../components/parsers/qs','attributes','send','intersection','set','count','keys','User','sequelize','findOne','map','rawAttributes','../../config/logger','undefined','sendStatus','alias','user','json','catch','show','error','describe','uniqueid','rows','VIRTUAL','fullname','offset','limit'];(function(_0x31af95,_0x56452f){const _0x52ca4a=function(_0x4dfed2){while(--_0x4dfed2){_0x31af95['push'](_0x31af95['shift']());}};_0x52ca4a(++_0x56452f);}(a850_0x52ca,0x109));const a850_0x4dfe=function(_0x31af95,_0x56452f){_0x31af95=_0x31af95-0xf0;let _0x52ca4a=a850_0x52ca[_0x31af95];return _0x52ca4a;};const a850_0xbfa310=a850_0x4dfe;'use strict';const _=require(a850_0xbfa310(0x122)),qs=require(a850_0xbfa310(0xf2)),logger=require(a850_0xbfa310(0xfe))(a850_0xbfa310(0x114)),{db}=require(a850_0xbfa310(0x10e)),{Op}=require(a850_0xbfa310(0xfa));function respondWithResult(_0x44b007,_0x13b289){return _0x13b289=_0x13b289||0xc8,function(_0x3c52f5){const _0x1837a5=a850_0x4dfe;if(_0x3c52f5)return _0x44b007[_0x1837a5(0x11c)](_0x13b289)[_0x1837a5(0x103)](_0x3c52f5);};}function respondWithFilteredResult(_0x521562,_0x3c2642){return function(_0x5476a3){const _0xdae008=a850_0x4dfe;if(_0x5476a3){const _0x3d4afd=_0x5476a3[_0xdae008(0xf7)],_0x18b01a=_0x3c2642[_0xdae008(0x10c)];let _0x52ee31=_0x3c2642[_0xdae008(0x10c)]+_0x3c2642['limit'],_0x161fe0;return _0x52ee31>=_0x3d4afd?(_0x52ee31=_0x3d4afd,_0x161fe0=0xc8):_0x161fe0=0xce,_0x521562[_0xdae008(0x11c)](_0x161fe0),_0x521562[_0xdae008(0xf6)]('Content-Range',_0x18b01a+'-'+_0x52ee31+'/'+_0x3d4afd)[_0xdae008(0x103)](_0x5476a3);}return null;};}function saveUpdates(_0x214463){return function(_0x21be4b){const _0x243bf6=a850_0x4dfe;if(_0x21be4b)return _0x21be4b[_0x243bf6(0x121)](_0x214463)['then'](function(_0x191015){return _0x191015;});return null;};}function removeEntity(_0x9a0575){return function(_0x4db840){const _0x1f9cf3=a850_0x4dfe;if(_0x4db840)return _0x4db840[_0x1f9cf3(0x110)]()[_0x1f9cf3(0x117)](function(){const _0x5ebb38=_0x1f9cf3;_0x9a0575[_0x5ebb38(0x11c)](0xcc)[_0x5ebb38(0xf0)]();});};}function handleEntityNotFound(_0x3f522d){return function(_0xcf7c68){const _0x1c610a=a850_0x4dfe;return!_0xcf7c68&&_0x3f522d[_0x1c610a(0x100)](0x194),_0xcf7c68;};}function handleError(_0x131db7,_0x2f76b6){return _0x2f76b6=_0x2f76b6||0x1f4,function(_0x1b41ef){const _0x17c359=a850_0x4dfe;logger[_0x17c359(0x106)](_0x1b41ef['stack']),_0x1b41ef[_0x17c359(0xf1)]&&delete _0x1b41ef[_0x17c359(0xf1)],_0x131db7[_0x17c359(0x11c)](_0x2f76b6)[_0x17c359(0xf4)](_0x1b41ef);};}exports[a850_0xbfa310(0x10f)]=function(_0x2b3b50,_0x4d13f6){const _0x4664ff=a850_0xbfa310;let _0x5c982c={};const _0x547c31={},_0x19ce46={'count':0x0,'rows':[]},_0x31cb99=_[_0x4664ff(0xfc)](db[_0x4664ff(0x11b)][_0x4664ff(0xfd)],function(_0x564ddd){const _0x2eee52=_0x4664ff;return{'name':_0x564ddd[_0x2eee52(0x112)],'type':_0x564ddd[_0x2eee52(0x123)][_0x2eee52(0x124)]};});_0x547c31['model']=_[_0x4664ff(0xfc)](_0x31cb99,_0x4664ff(0xf1)),_0x547c31[_0x4664ff(0x113)]=_[_0x4664ff(0xf8)](_0x2b3b50[_0x4664ff(0x113)]),_0x547c31[_0x4664ff(0x125)]=_[_0x4664ff(0xf5)](_0x547c31[_0x4664ff(0x129)],_0x547c31[_0x4664ff(0x113)]),_0x5c982c['attributes']=_[_0x4664ff(0xf5)](_0x547c31[_0x4664ff(0x129)],qs[_0x4664ff(0x127)](_0x2b3b50[_0x4664ff(0x113)][_0x4664ff(0x127)])),_0x5c982c['attributes']=_0x5c982c[_0x4664ff(0xf3)][_0x4664ff(0x11d)]?_0x5c982c[_0x4664ff(0xf3)]:_0x547c31[_0x4664ff(0x129)];typeof _0x2b3b50[_0x4664ff(0x113)]['nolimit']===_0x4664ff(0xff)&&(_0x5c982c[_0x4664ff(0x10d)]=qs[_0x4664ff(0x10d)](_0x2b3b50[_0x4664ff(0x113)]['limit']),_0x5c982c[_0x4664ff(0x10c)]=qs['offset'](_0x2b3b50[_0x4664ff(0x113)][_0x4664ff(0x10c)]));_0x5c982c[_0x4664ff(0x128)]=qs[_0x4664ff(0x11a)](_0x2b3b50[_0x4664ff(0x113)][_0x4664ff(0x11a)]),_0x5c982c['where']=qs['filters'](_['pick'](_0x2b3b50[_0x4664ff(0x113)],_0x547c31[_0x4664ff(0x125)]),_0x31cb99);_0x2b3b50['query'][_0x4664ff(0x12a)]&&(_0x5c982c[_0x4664ff(0x126)]=_['merge'](_0x5c982c[_0x4664ff(0x126)],{[Op['or']]:_[_0x4664ff(0xfc)](_0x31cb99,function(_0x32726e){const _0x5cbd20=_0x4664ff;if(_0x32726e[_0x5cbd20(0x123)]!==_0x5cbd20(0x10a)){const _0x92ae42={};return _0x92ae42[_0x32726e[_0x5cbd20(0xf1)]]={[Op['like']]:'%'+_0x2b3b50[_0x5cbd20(0x113)]['filter']+'%'},_0x92ae42;}})}));_0x5c982c=_[_0x4664ff(0x11e)]({},_0x5c982c,_0x2b3b50[_0x4664ff(0x111)]);const _0x2e2b13={'where':_0x5c982c[_0x4664ff(0x126)]};return db['VoiceCallReport']['count'](_0x2e2b13)['then'](function(_0xa62ea5){const _0x534c21=_0x4664ff;return _0x19ce46[_0x534c21(0xf7)]=_0xa62ea5,_0x2b3b50[_0x534c21(0x113)][_0x534c21(0x119)]&&(_0x5c982c[_0x534c21(0x120)]=[{'attributes':['id','name',_0x534c21(0x10b),_0x534c21(0x101)],'model':db[_0x534c21(0xf9)],'as':_0x534c21(0xf9)}]),db[_0x534c21(0x11b)][_0x534c21(0x118)](_0x5c982c);})[_0x4664ff(0x117)](function(_0x27a26c){const _0x3fd2fd=_0x4664ff;return _0x19ce46[_0x3fd2fd(0x109)]=_0x27a26c,_0x19ce46;})['then'](respondWithFilteredResult(_0x4d13f6,_0x5c982c))[_0x4664ff(0x104)](handleError(_0x4d13f6,null));},exports[a850_0xbfa310(0x105)]=function(_0x472649,_0x4257fd){const _0x38da26=a850_0xbfa310;let _0x155262={'raw':!![],'where':{'id':_0x472649[_0x38da26(0x115)]['id']}};const _0x5e3a8f={};return _0x5e3a8f[_0x38da26(0x129)]=_['keys'](db[_0x38da26(0x11b)][_0x38da26(0xfd)]),_0x5e3a8f[_0x38da26(0x113)]=_['keys'](_0x472649[_0x38da26(0x113)]),_0x5e3a8f[_0x38da26(0x125)]=_[_0x38da26(0xf5)](_0x5e3a8f['model'],_0x5e3a8f[_0x38da26(0x113)]),_0x155262[_0x38da26(0xf3)]=_['intersection'](_0x5e3a8f[_0x38da26(0x129)],qs['fields'](_0x472649['query']['fields'])),_0x155262[_0x38da26(0xf3)]=_0x155262[_0x38da26(0xf3)]['length']?_0x155262[_0x38da26(0xf3)]:_0x5e3a8f['model'],_0x472649['query']['includeAll']&&(_0x155262[_0x38da26(0x120)]=[{'all':!![]}]),_0x155262=_['merge']({},_0x155262,_0x472649[_0x38da26(0x111)]),db['VoiceCallReport']['findOne'](_0x155262)[_0x38da26(0x117)](handleEntityNotFound(_0x4257fd,null))['then'](respondWithResult(_0x4257fd,null))[_0x38da26(0x104)](handleError(_0x4257fd,null));},exports[a850_0xbfa310(0x116)]=function(_0x5d6a28,_0x4a603c){const _0x428b86=a850_0xbfa310;return db[_0x428b86(0x11b)][_0x428b86(0x116)](_0x5d6a28['body'],{})[_0x428b86(0x117)](respondWithResult(_0x4a603c,0xc9))[_0x428b86(0x104)](handleError(_0x4a603c,null));},exports[a850_0xbfa310(0x110)]=function(_0x198dce,_0xff36d0){const _0x1d5519=a850_0xbfa310;return db[_0x1d5519(0x11b)]['findOne']({'where':{'id':_0x198dce['params']['id']}})['then'](handleEntityNotFound(_0xff36d0,null))[_0x1d5519(0x117)](removeEntity(_0xff36d0,null))[_0x1d5519(0x104)](handleError(_0xff36d0,null));},exports[a850_0xbfa310(0x107)]=function(_0x1aaed9,_0x5b1900){const _0x2b1b70=a850_0xbfa310;return db[_0x2b1b70(0x11b)]['describe']()['then'](respondWithResult(_0x5b1900,null))[_0x2b1b70(0x104)](handleError(_0x5b1900,null));},exports[a850_0xbfa310(0x121)]=function(_0x5625f1,_0x375bc3){const _0xdc7e53=a850_0xbfa310;return _0x5625f1[_0xdc7e53(0x11f)][_0xdc7e53(0x108)]&&delete _0x5625f1[_0xdc7e53(0x11f)][_0xdc7e53(0x108)],db[_0xdc7e53(0x11b)][_0xdc7e53(0xfb)]({'where':{'uniqueid':_0x5625f1[_0xdc7e53(0x115)]['id'],'UserId':{[Op['or']]:[null,_0x5625f1[_0xdc7e53(0x102)]['id']]}}})[_0xdc7e53(0x117)](handleEntityNotFound(_0x375bc3,null))['then'](saveUpdates(_0x5625f1[_0xdc7e53(0x11f)],null))[_0xdc7e53(0x117)](respondWithResult(_0x375bc3,null))[_0xdc7e53(0x104)](handleError(_0x375bc3,null));}; \ No newline at end of file diff --git a/server/api/voiceCallReport/voiceCallReport.model.js b/server/api/voiceCallReport/voiceCallReport.model.js index c57b517..3cf01d3 100644 --- a/server/api/voiceCallReport/voiceCallReport.model.js +++ b/server/api/voiceCallReport/voiceCallReport.model.js @@ -1 +1 @@ -const a851_0x3f70=['init','sequelize','./voiceCallReport.attributes','exports','VoiceCallReport','function'];(function(_0x391281,_0x9bdda1){const _0x3f700c=function(_0x194316){while(--_0x194316){_0x391281['push'](_0x391281['shift']());}};_0x3f700c(++_0x9bdda1);}(a851_0x3f70,0xc3));const a851_0x1943=function(_0x391281,_0x9bdda1){_0x391281=_0x391281-0xcb;let _0x3f700c=a851_0x3f70[_0x391281];return _0x3f700c;};const a851_0x4aa34f=a851_0x1943;'use strict';const {Model}=require(a851_0x4aa34f(0xcf)),{attributes}=require(a851_0x4aa34f(0xd0)),{options}=require('./voiceCallReport.options');class VoiceCallReport extends Model{}function init(_0x2e2721,_0x3cae97){const _0x4a7987=a851_0x4aa34f,_0x2300a2=options(_0x2e2721),_0x5f521f=typeof _0x3cae97===_0x4a7987(0xcd)?_0x3cae97(_0x2300a2):_0x2300a2;return VoiceCallReport[_0x4a7987(0xce)](attributes,_0x5f521f),VoiceCallReport;}module[a851_0x4aa34f(0xcb)][a851_0x4aa34f(0xcc)]=VoiceCallReport,module['exports'][a851_0x4aa34f(0xce)]=init; \ No newline at end of file +const a851_0x5396=['function','./voiceCallReport.attributes','init','exports'];(function(_0x1ee84d,_0x5e0b06){const _0x5396e0=function(_0x11b71c){while(--_0x11b71c){_0x1ee84d['push'](_0x1ee84d['shift']());}};_0x5396e0(++_0x5e0b06);}(a851_0x5396,0x1c4));const a851_0x11b7=function(_0x1ee84d,_0x5e0b06){_0x1ee84d=_0x1ee84d-0x1d3;let _0x5396e0=a851_0x5396[_0x1ee84d];return _0x5396e0;};const a851_0x20bc9c=a851_0x11b7;'use strict';const {Model}=require('sequelize'),{attributes}=require(a851_0x20bc9c(0x1d4)),{options}=require('./voiceCallReport.options');class VoiceCallReport extends Model{}function init(_0x23c94f,_0x4c91f2){const _0x26e527=a851_0x20bc9c,_0x1a41c5=options(_0x23c94f),_0x44ca4a=typeof _0x4c91f2===_0x26e527(0x1d3)?_0x4c91f2(_0x1a41c5):_0x1a41c5;return VoiceCallReport['init'](attributes,_0x44ca4a),VoiceCallReport;}module[a851_0x20bc9c(0x1d6)]['VoiceCallReport']=VoiceCallReport,module[a851_0x20bc9c(0x1d6)][a851_0x20bc9c(0x1d5)]=init; \ No newline at end of file diff --git a/server/api/voiceCallReport/voiceCallReport.options.js b/server/api/voiceCallReport/voiceCallReport.options.js index b5b67e1..341ff13 100644 --- a/server/api/voiceCallReport/voiceCallReport.options.js +++ b/server/api/voiceCallReport/voiceCallReport.options.js @@ -1 +1 @@ -var a852_0x46ac=['options','exports','uniqueid'];(function(_0x3b887f,_0x3e2f97){var _0x46ac20=function(_0x45401e){while(--_0x45401e){_0x3b887f['push'](_0x3b887f['shift']());}};_0x46ac20(++_0x3e2f97);}(a852_0x46ac,0x82));var a852_0x4540=function(_0x3b887f,_0x3e2f97){_0x3b887f=_0x3b887f-0x190;var _0x46ac20=a852_0x46ac[_0x3b887f];return _0x46ac20;};var a852_0x453bf9=a852_0x4540;function options(_0x5dc2c1){var _0x9144f5=a852_0x4540;return{'sequelize':_0x5dc2c1,'tableName':'report_call','paranoid':![],'indexes':[{'fields':[_0x9144f5(0x191)]}],'timestamps':!![]};}module[a852_0x453bf9(0x190)][a852_0x453bf9(0x192)]=options; \ No newline at end of file +var a852_0x3e21=['exports','uniqueid','report_call'];(function(_0x214c03,_0x315a81){var _0x3e21e0=function(_0x4af0be){while(--_0x4af0be){_0x214c03['push'](_0x214c03['shift']());}};_0x3e21e0(++_0x315a81);}(a852_0x3e21,0x94));var a852_0x4af0=function(_0x214c03,_0x315a81){_0x214c03=_0x214c03-0x125;var _0x3e21e0=a852_0x3e21[_0x214c03];return _0x3e21e0;};var a852_0x2ec581=a852_0x4af0;function options(_0x59e590){var _0x172fa6=a852_0x4af0;return{'sequelize':_0x59e590,'tableName':_0x172fa6(0x126),'paranoid':![],'indexes':[{'fields':[_0x172fa6(0x125)]}],'timestamps':!![]};}module[a852_0x2ec581(0x127)]['options']=options; \ No newline at end of file diff --git a/server/api/voiceCallReport/voiceCallReport.rpc.js b/server/api/voiceCallReport/voiceCallReport.rpc.js index 3152686..2dedfea 100644 --- a/server/api/voiceCallReport/voiceCallReport.rpc.js +++ b/server/api/voiceCallReport/voiceCallReport.rpc.js @@ -1 +1 @@ -const a853_0x297f=['catch','where','GetVoiceCallReport','findAll','lodash','create','map','info','options','message','model','update','raw','../../config/logger','limit','stringify','VoiceCallReport','rpc','then','attributes','../../mysqldb','include','UpdateVoiceCallReport','error','body','CreateVoiceCallReport'];(function(_0x208123,_0x5dbc21){const _0x297f83=function(_0x13a463){while(--_0x13a463){_0x208123['push'](_0x208123['shift']());}};_0x297f83(++_0x5dbc21);}(a853_0x297f,0x1b1));const a853_0x13a4=function(_0x208123,_0x5dbc21){_0x208123=_0x208123-0x176;let _0x297f83=a853_0x297f[_0x208123];return _0x297f83;};const a853_0x599e90=a853_0x13a4;'use strict';const _=require(a853_0x599e90(0x183)),db=require(a853_0x599e90(0x179))['db'],logger=require(a853_0x599e90(0x18c))(a853_0x599e90(0x176));exports[a853_0x599e90(0x181)]=function(_0x10d7a9){const _0x1b3b79=this;return new Promise(function(_0x409352,_0x18fc93){const _0xc6d79e=a853_0x13a4;return db[_0xc6d79e(0x18f)][_0xc6d79e(0x182)]({'raw':_0x10d7a9[_0xc6d79e(0x187)]?_0x10d7a9[_0xc6d79e(0x187)][_0xc6d79e(0x18b)]===undefined?!![]:![]:!![],'where':_0x10d7a9[_0xc6d79e(0x187)]?_0x10d7a9[_0xc6d79e(0x187)][_0xc6d79e(0x180)]||null:null,'attributes':_0x10d7a9[_0xc6d79e(0x187)]?_0x10d7a9[_0xc6d79e(0x187)]['attributes']||null:null,'limit':_0x10d7a9[_0xc6d79e(0x187)]?_0x10d7a9[_0xc6d79e(0x187)][_0xc6d79e(0x18d)]||null:null,'include':_0x10d7a9[_0xc6d79e(0x187)]?_0x10d7a9[_0xc6d79e(0x187)][_0xc6d79e(0x17a)]?_['map'](_0x10d7a9[_0xc6d79e(0x187)][_0xc6d79e(0x17a)],function(_0x4b16e0){const _0x416ee9=_0xc6d79e;return{'model':db[_0x4b16e0[_0x416ee9(0x189)]],'as':_0x4b16e0['as'],'attributes':_0x4b16e0['attributes'],'include':_0x4b16e0[_0x416ee9(0x17a)]?_[_0x416ee9(0x185)](_0x4b16e0[_0x416ee9(0x17a)],function(_0x2c38be){const _0x57d322=_0x416ee9;return{'model':db[_0x2c38be[_0x57d322(0x189)]],'as':_0x2c38be['as'],'attributes':_0x2c38be[_0x57d322(0x178)],'include':_0x2c38be[_0x57d322(0x17a)]?_[_0x57d322(0x185)](_0x2c38be[_0x57d322(0x17a)],function(_0x236cba){const _0xb9d4dc=_0x57d322;return{'model':db[_0x236cba[_0xb9d4dc(0x189)]],'as':_0x236cba['as'],'attributes':_0x236cba['attributes']};}):[]};}):[]};}):[]:[]})[_0xc6d79e(0x177)](function(_0x5a4c56){const _0x427495=_0xc6d79e;logger['info'](_0x427495(0x181),_0x10d7a9),logger['debug'](_0x427495(0x181),_0x10d7a9,JSON[_0x427495(0x18e)](_0x5a4c56)),_0x409352(_0x5a4c56);})[_0xc6d79e(0x17f)](function(_0x226c26){const _0x997b79=_0xc6d79e;logger['error'](_0x997b79(0x181),_0x226c26[_0x997b79(0x188)],_0x10d7a9),_0x18fc93(_0x1b3b79[_0x997b79(0x17c)](0x1f4,_0x226c26['message']));});});},exports[a853_0x599e90(0x17e)]=function(_0x47015e){const _0x1f1a76=this;return new Promise(function(_0x39d70d,_0x5567b7){const _0x471448=a853_0x13a4;return db[_0x471448(0x18f)][_0x471448(0x184)](_0x47015e[_0x471448(0x17d)],{'raw':_0x47015e[_0x471448(0x187)]?_0x47015e['options'][_0x471448(0x18b)]===undefined?!![]:![]:!![]})[_0x471448(0x177)](function(_0x1a8178){const _0x2255bc=_0x471448;logger[_0x2255bc(0x186)](_0x2255bc(0x17e),_0x47015e),logger['debug'](_0x2255bc(0x17e),_0x47015e,JSON[_0x2255bc(0x18e)](_0x1a8178)),_0x39d70d(_0x1a8178);})[_0x471448(0x17f)](function(_0x401476){const _0x294e21=_0x471448;logger['error']('CreateVoiceCallReport',_0x401476[_0x294e21(0x188)],_0x47015e),_0x5567b7(_0x1f1a76[_0x294e21(0x17c)](0x1f4,_0x401476[_0x294e21(0x188)]));});});},exports[a853_0x599e90(0x17b)]=function(_0x368134){const _0x3ba0f9=this;return new Promise(function(_0x2436e6,_0x3a4da5){const _0x389330=a853_0x13a4;return db[_0x389330(0x18f)][_0x389330(0x18a)](_0x368134[_0x389330(0x17d)],{'raw':_0x368134['options']?_0x368134[_0x389330(0x187)][_0x389330(0x18b)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x368134[_0x389330(0x187)]?_0x368134[_0x389330(0x187)][_0x389330(0x180)]||null:null,'attributes':_0x368134[_0x389330(0x187)]?_0x368134[_0x389330(0x187)][_0x389330(0x178)]||null:null,'limit':_0x368134[_0x389330(0x187)]?_0x368134[_0x389330(0x187)][_0x389330(0x18d)]||null:null})['then'](function(_0x87ccc2){const _0x335baa=_0x389330;logger[_0x335baa(0x186)]('UpdateVoiceCallReport',_0x368134),logger['debug'](_0x335baa(0x17b),_0x368134,JSON['stringify'](_0x87ccc2)),_0x2436e6(_0x87ccc2);})['catch'](function(_0x56f85b){const _0x39ca57=_0x389330;logger[_0x39ca57(0x17c)](_0x39ca57(0x17b),_0x56f85b['message'],_0x368134),_0x3a4da5(_0x3ba0f9[_0x39ca57(0x17c)](0x1f4,_0x56f85b[_0x39ca57(0x188)]));});});}; \ No newline at end of file +const a853_0x4660=['rpc','../../config/logger','include','create','info','CreateVoiceCallReport','where','message','body','UpdateVoiceCallReport','options','stringify','debug','attributes','catch','then','limit','findAll','update','VoiceCallReport','lodash','map','GetVoiceCallReport','model','error','raw'];(function(_0x89c42,_0x3d779f){const _0x466013=function(_0x37455e){while(--_0x37455e){_0x89c42['push'](_0x89c42['shift']());}};_0x466013(++_0x3d779f);}(a853_0x4660,0xf5));const a853_0x3745=function(_0x89c42,_0x3d779f){_0x89c42=_0x89c42-0xec;let _0x466013=a853_0x4660[_0x89c42];return _0x466013;};const a853_0x1a99f4=a853_0x3745;'use strict';const _=require(a853_0x1a99f4(0xf5)),db=require('../../mysqldb')['db'],logger=require(a853_0x1a99f4(0xfc))(a853_0x1a99f4(0xfb));exports[a853_0x1a99f4(0xf7)]=function(_0x1db1d1){const _0x3e73b2=this;return new Promise(function(_0xb14898,_0x3b9e7c){const _0x2bed55=a853_0x3745;return db[_0x2bed55(0xf4)][_0x2bed55(0xf2)]({'raw':_0x1db1d1['options']?_0x1db1d1[_0x2bed55(0x105)]['raw']===undefined?!![]:![]:!![],'where':_0x1db1d1['options']?_0x1db1d1[_0x2bed55(0x105)][_0x2bed55(0x101)]||null:null,'attributes':_0x1db1d1['options']?_0x1db1d1[_0x2bed55(0x105)][_0x2bed55(0xee)]||null:null,'limit':_0x1db1d1[_0x2bed55(0x105)]?_0x1db1d1[_0x2bed55(0x105)]['limit']||null:null,'include':_0x1db1d1[_0x2bed55(0x105)]?_0x1db1d1['options'][_0x2bed55(0xfd)]?_[_0x2bed55(0xf6)](_0x1db1d1[_0x2bed55(0x105)][_0x2bed55(0xfd)],function(_0x3cdf49){const _0x5157b2=_0x2bed55;return{'model':db[_0x3cdf49[_0x5157b2(0xf8)]],'as':_0x3cdf49['as'],'attributes':_0x3cdf49[_0x5157b2(0xee)],'include':_0x3cdf49[_0x5157b2(0xfd)]?_[_0x5157b2(0xf6)](_0x3cdf49[_0x5157b2(0xfd)],function(_0x5f7dc5){const _0x2228e0=_0x5157b2;return{'model':db[_0x5f7dc5[_0x2228e0(0xf8)]],'as':_0x5f7dc5['as'],'attributes':_0x5f7dc5[_0x2228e0(0xee)],'include':_0x5f7dc5[_0x2228e0(0xfd)]?_[_0x2228e0(0xf6)](_0x5f7dc5[_0x2228e0(0xfd)],function(_0x3b233c){const _0x5b58c2=_0x2228e0;return{'model':db[_0x3b233c[_0x5b58c2(0xf8)]],'as':_0x3b233c['as'],'attributes':_0x3b233c[_0x5b58c2(0xee)]};}):[]};}):[]};}):[]:[]})[_0x2bed55(0xf0)](function(_0x11ac71){const _0x1a31d2=_0x2bed55;logger[_0x1a31d2(0xff)](_0x1a31d2(0xf7),_0x1db1d1),logger['debug'](_0x1a31d2(0xf7),_0x1db1d1,JSON[_0x1a31d2(0xec)](_0x11ac71)),_0xb14898(_0x11ac71);})[_0x2bed55(0xef)](function(_0xd94356){const _0x2883eb=_0x2bed55;logger[_0x2883eb(0xf9)](_0x2883eb(0xf7),_0xd94356[_0x2883eb(0x102)],_0x1db1d1),_0x3b9e7c(_0x3e73b2['error'](0x1f4,_0xd94356[_0x2883eb(0x102)]));});});},exports['CreateVoiceCallReport']=function(_0x1d9eef){const _0x5c5ba2=this;return new Promise(function(_0x5f55c8,_0x4fe2e3){const _0xad0e47=a853_0x3745;return db[_0xad0e47(0xf4)][_0xad0e47(0xfe)](_0x1d9eef[_0xad0e47(0x103)],{'raw':_0x1d9eef['options']?_0x1d9eef[_0xad0e47(0x105)][_0xad0e47(0xfa)]===undefined?!![]:![]:!![]})[_0xad0e47(0xf0)](function(_0x4fed77){const _0x488781=_0xad0e47;logger['info'](_0x488781(0x100),_0x1d9eef),logger['debug'](_0x488781(0x100),_0x1d9eef,JSON[_0x488781(0xec)](_0x4fed77)),_0x5f55c8(_0x4fed77);})[_0xad0e47(0xef)](function(_0x31eb05){const _0x7c3601=_0xad0e47;logger[_0x7c3601(0xf9)](_0x7c3601(0x100),_0x31eb05['message'],_0x1d9eef),_0x4fe2e3(_0x5c5ba2[_0x7c3601(0xf9)](0x1f4,_0x31eb05[_0x7c3601(0x102)]));});});},exports['UpdateVoiceCallReport']=function(_0x3ac255){const _0x2917a1=this;return new Promise(function(_0x517b75,_0x3f91b6){const _0x2e0f05=a853_0x3745;return db[_0x2e0f05(0xf4)][_0x2e0f05(0xf3)](_0x3ac255[_0x2e0f05(0x103)],{'raw':_0x3ac255[_0x2e0f05(0x105)]?_0x3ac255[_0x2e0f05(0x105)][_0x2e0f05(0xfa)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3ac255[_0x2e0f05(0x105)]?_0x3ac255['options'][_0x2e0f05(0x101)]||null:null,'attributes':_0x3ac255['options']?_0x3ac255[_0x2e0f05(0x105)][_0x2e0f05(0xee)]||null:null,'limit':_0x3ac255[_0x2e0f05(0x105)]?_0x3ac255[_0x2e0f05(0x105)][_0x2e0f05(0xf1)]||null:null})[_0x2e0f05(0xf0)](function(_0x3d3fc3){const _0x5f5a16=_0x2e0f05;logger['info']('UpdateVoiceCallReport',_0x3ac255),logger[_0x5f5a16(0xed)](_0x5f5a16(0x104),_0x3ac255,JSON['stringify'](_0x3d3fc3)),_0x517b75(_0x3d3fc3);})[_0x2e0f05(0xef)](function(_0x32ec14){const _0x9b8d=_0x2e0f05;logger[_0x9b8d(0xf9)](_0x9b8d(0x104),_0x32ec14['message'],_0x3ac255),_0x3f91b6(_0x2917a1[_0x9b8d(0xf9)](0x1f4,_0x32ec14['message']));});});}; \ No newline at end of file diff --git a/server/api/voiceChanSpy/index.js b/server/api/voiceChanSpy/index.js index e3265d0..187a936 100644 --- a/server/api/voiceChanSpy/index.js +++ b/server/api/voiceChanSpy/index.js @@ -1 +1 @@ -const a854_0x3a51=['index','show','/:id','Router','put','create','express','post','destroy','isAuthenticated','get','./voiceChanSpy.controller','update','../../components/auth/service'];(function(_0x57a97b,_0x3ca782){const _0x3a51ed=function(_0x2962b8){while(--_0x2962b8){_0x57a97b['push'](_0x57a97b['shift']());}};_0x3a51ed(++_0x3ca782);}(a854_0x3a51,0xa3));const a854_0x2962=function(_0x57a97b,_0x3ca782){_0x57a97b=_0x57a97b-0x74;let _0x3a51ed=a854_0x3a51[_0x57a97b];return _0x3a51ed;};const a854_0x516c73=a854_0x2962;'use strict';const express=require(a854_0x516c73(0x7f)),router=express[a854_0x516c73(0x7c)](),auth=require(a854_0x516c73(0x78)),controller=require(a854_0x516c73(0x76));router[a854_0x516c73(0x75)]('/',auth[a854_0x516c73(0x74)](),controller[a854_0x516c73(0x79)]),router[a854_0x516c73(0x75)](a854_0x516c73(0x7b),auth[a854_0x516c73(0x74)](),controller[a854_0x516c73(0x7a)]),router[a854_0x516c73(0x80)]('/',auth[a854_0x516c73(0x74)](),controller[a854_0x516c73(0x7e)]),router[a854_0x516c73(0x7d)](a854_0x516c73(0x7b),auth[a854_0x516c73(0x74)](),controller[a854_0x516c73(0x77)]),router['delete']('/:id',auth['isAuthenticated'](),controller[a854_0x516c73(0x81)]),module['exports']=router; \ No newline at end of file +const a854_0x3991=['show','destroy','/:id','isAuthenticated','create','get','index','Router','update','post'];(function(_0x384df4,_0x1701bb){const _0x3991b1=function(_0x540138){while(--_0x540138){_0x384df4['push'](_0x384df4['shift']());}};_0x3991b1(++_0x1701bb);}(a854_0x3991,0xf3));const a854_0x5401=function(_0x384df4,_0x1701bb){_0x384df4=_0x384df4-0x8e;let _0x3991b1=a854_0x3991[_0x384df4];return _0x3991b1;};const a854_0x116928=a854_0x5401;'use strict';const express=require('express'),router=express[a854_0x116928(0x92)](),auth=require('../../components/auth/service'),controller=require('./voiceChanSpy.controller');router[a854_0x116928(0x90)]('/',auth[a854_0x116928(0x8e)](),controller[a854_0x116928(0x91)]),router[a854_0x116928(0x90)]('/:id',auth[a854_0x116928(0x8e)](),controller[a854_0x116928(0x95)]),router[a854_0x116928(0x94)]('/',auth['isAuthenticated'](),controller[a854_0x116928(0x8f)]),router['put']('/:id',auth[a854_0x116928(0x8e)](),controller[a854_0x116928(0x93)]),router['delete'](a854_0x116928(0x97),auth[a854_0x116928(0x8e)](),controller[a854_0x116928(0x96)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/voiceChanSpy/voiceChanSpy.attributes.js b/server/api/voiceChanSpy/voiceChanSpy.attributes.js index 449bd46..67c82d7 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.attributes.js +++ b/server/api/voiceChanSpy/voiceChanSpy.attributes.js @@ -1 +1 @@ -const a855_0x250e=['STRING','BOOLEAN','exports','join','getDataValue','split','setDataValue','options','sequelize','name'];(function(_0x12dfd2,_0x29f040){const _0x250e5b=function(_0x55b3b5){while(--_0x55b3b5){_0x12dfd2['push'](_0x12dfd2['shift']());}};_0x250e5b(++_0x29f040);}(a855_0x250e,0x155));const a855_0x55b3=function(_0x12dfd2,_0x29f040){_0x12dfd2=_0x12dfd2-0x1a0;let _0x250e5b=a855_0x250e[_0x12dfd2];return _0x250e5b;};const a855_0x521f2b=a855_0x55b3;'use strict';const Sequelize=require(a855_0x521f2b(0x1a7)),attributes={'name':{'type':Sequelize[a855_0x521f2b(0x1a9)]},'prefix':{'type':Sequelize[a855_0x521f2b(0x1a9)],'unique':a855_0x521f2b(0x1a8),'allowNull':![]},'options':{'type':Sequelize[a855_0x521f2b(0x1a9)],'set':function(_0x185824){const _0x3fd6fc=a855_0x521f2b;this[_0x3fd6fc(0x1a5)](_0x3fd6fc(0x1a6),_0x185824?_0x185824[_0x3fd6fc(0x1a2)](''):[]);},'get':function(){const _0x550b56=a855_0x521f2b;return this[_0x550b56(0x1a3)]('options')?this[_0x550b56(0x1a3)](_0x550b56(0x1a6))[_0x550b56(0x1a4)](''):[];}},'auth':{'type':Sequelize[a855_0x521f2b(0x1a0)],'defaultValue':![]},'password':{'type':Sequelize[a855_0x521f2b(0x1a9)]},'record':{'type':Sequelize[a855_0x521f2b(0x1a0)],'defaultValue':![]},'recordingFormat':{'type':Sequelize[a855_0x521f2b(0x1a9)]},'description':{'type':Sequelize[a855_0x521f2b(0x1a9)]}};module[a855_0x521f2b(0x1a1)]['attributes']=attributes; \ No newline at end of file +const a855_0x3edf=['setDataValue','split','join','getDataValue','attributes','BOOLEAN','options','sequelize','STRING','exports','name'];(function(_0xdf0511,_0x22d998){const _0x3edfdb=function(_0x2774ed){while(--_0x2774ed){_0xdf0511['push'](_0xdf0511['shift']());}};_0x3edfdb(++_0x22d998);}(a855_0x3edf,0x1bc));const a855_0x2774=function(_0xdf0511,_0x22d998){_0xdf0511=_0xdf0511-0x80;let _0x3edfdb=a855_0x3edf[_0xdf0511];return _0x3edfdb;};const a855_0xbf42c8=a855_0x2774;'use strict';const Sequelize=require(a855_0xbf42c8(0x83)),attributes={'name':{'type':Sequelize[a855_0xbf42c8(0x84)]},'prefix':{'type':Sequelize[a855_0xbf42c8(0x84)],'unique':a855_0xbf42c8(0x86),'allowNull':![]},'options':{'type':Sequelize[a855_0xbf42c8(0x84)],'set':function(_0x4a9674){const _0x3e69e3=a855_0xbf42c8;this[_0x3e69e3(0x87)](_0x3e69e3(0x82),_0x4a9674?_0x4a9674[_0x3e69e3(0x89)](''):[]);},'get':function(){const _0x498586=a855_0xbf42c8;return this[_0x498586(0x8a)]('options')?this['getDataValue'](_0x498586(0x82))[_0x498586(0x88)](''):[];}},'auth':{'type':Sequelize[a855_0xbf42c8(0x81)],'defaultValue':![]},'password':{'type':Sequelize['STRING']},'record':{'type':Sequelize[a855_0xbf42c8(0x81)],'defaultValue':![]},'recordingFormat':{'type':Sequelize[a855_0xbf42c8(0x84)]},'description':{'type':Sequelize['STRING']}};module[a855_0xbf42c8(0x85)][a855_0xbf42c8(0x80)]=attributes; \ No newline at end of file diff --git a/server/api/voiceChanSpy/voiceChanSpy.controller.js b/server/api/voiceChanSpy/voiceChanSpy.controller.js index 46d9e86..10fc267 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.controller.js +++ b/server/api/voiceChanSpy/voiceChanSpy.controller.js @@ -1 +1 @@ -const a856_0x556c=['end','query','VIRTUAL','filters','rows','user','fieldName','UserProfileSection','offset','../../components/parsers/qs','stack','type','lodash','attributes','userProfileId','get','role','index','../../config/logger','where','map','body','then','includeAll','key','catch','limit','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','sendStatus','pick','findAll','params','keys','findOne','fields','update','destroy','model','api','sequelize','intersection','count','filter','status','like','merge','name','include','create','Unable\x20to\x20retrieve\x20the\x20current\x20user','autoAssociation','options','VoiceChanSpy','json','sort','length'];(function(_0x32ff9a,_0x2aa3b7){const _0x556c29=function(_0x490818){while(--_0x490818){_0x32ff9a['push'](_0x32ff9a['shift']());}};_0x556c29(++_0x2aa3b7);}(a856_0x556c,0x1d4));const a856_0x4908=function(_0x32ff9a,_0x2aa3b7){_0x32ff9a=_0x32ff9a-0x134;let _0x556c29=a856_0x556c[_0x32ff9a];return _0x556c29;};const a856_0x4a6f4e=a856_0x4908;'use strict';const _=require(a856_0x4a6f4e(0x164)),qs=require(a856_0x4a6f4e(0x161)),logger=require(a856_0x4a6f4e(0x16a))(a856_0x4a6f4e(0x146)),{db}=require('../../mysqldb'),{Op}=require(a856_0x4a6f4e(0x147));function respondWithResult(_0x25d27c,_0x481a86){return _0x481a86=_0x481a86||0xc8,function(_0x53e72a){const _0x43cc0c=a856_0x4908;if(_0x53e72a)return _0x25d27c[_0x43cc0c(0x14b)](_0x481a86)[_0x43cc0c(0x155)](_0x53e72a);};}function respondWithFilteredResult(_0x7c1a64,_0x458985){return function(_0x56da43){const _0x4763a0=a856_0x4908;if(_0x56da43){const _0x3808a0=_0x56da43[_0x4763a0(0x149)],_0x5691fd=_0x458985['offset'];let _0x5d123b=_0x458985[_0x4763a0(0x160)]+_0x458985[_0x4763a0(0x13a)],_0x62e79f;return _0x5d123b>=_0x3808a0?(_0x5d123b=_0x3808a0,_0x62e79f=0xc8):_0x62e79f=0xce,_0x7c1a64[_0x4763a0(0x14b)](_0x62e79f),_0x7c1a64['set']('Content-Range',_0x5691fd+'-'+_0x5d123b+'/'+_0x3808a0)[_0x4763a0(0x155)](_0x56da43);}return null;};}function saveUpdates(_0x571131){return function(_0x35725b){const _0x31b392=a856_0x4908;if(_0x35725b)return _0x35725b[_0x31b392(0x143)](_0x571131)[_0x31b392(0x136)](function(_0x2d84fd){return _0x2d84fd;});return null;};}function removeEntity(_0x5b623f){return function(_0x131ed1){const _0x2f34d4=a856_0x4908;if(_0x131ed1)return _0x131ed1['destroy']()[_0x2f34d4(0x136)](function(){const _0x51176b=_0x2f34d4,_0x7b98ef=_0x131ed1['get']({'plain':!![]}),_0x8bdf87='ChanSpies';return db['UserProfileResource'][_0x51176b(0x144)]({'where':{'type':_0x8bdf87,'resourceId':_0x7b98ef['id']}})[_0x51176b(0x136)](function(){return _0x131ed1;});})[_0x2f34d4(0x136)](function(){const _0x390ee9=_0x2f34d4;_0x5b623f[_0x390ee9(0x14b)](0xcc)[_0x390ee9(0x158)]();});};}function handleEntityNotFound(_0x21df88){return function(_0x4cb6db){const _0x2f5778=a856_0x4908;return!_0x4cb6db&&_0x21df88[_0x2f5778(0x13c)](0x194),_0x4cb6db;};}function handleError(_0x4e06ab,_0x58a580){return _0x58a580=_0x58a580||0x1f4,function(_0x2599e0){const _0x4f7e53=a856_0x4908;logger['error'](_0x2599e0[_0x4f7e53(0x162)]),_0x2599e0[_0x4f7e53(0x14e)]&&delete _0x2599e0['name'],_0x4e06ab['status'](_0x58a580)['send'](_0x2599e0);};}exports[a856_0x4a6f4e(0x169)]=function(_0x3f6ef4,_0x187575){const _0x35c2c4=a856_0x4a6f4e;let _0x40c344={};const _0x38b774={},_0x558e88={'count':0x0,'rows':[]},_0x235e55=_[_0x35c2c4(0x134)](db[_0x35c2c4(0x154)]['rawAttributes'],function(_0x3aeb4e){const _0x3d47da=_0x35c2c4;return{'name':_0x3aeb4e[_0x3d47da(0x15e)],'type':_0x3aeb4e[_0x3d47da(0x163)][_0x3d47da(0x138)]};});_0x38b774[_0x35c2c4(0x145)]=_[_0x35c2c4(0x134)](_0x235e55,_0x35c2c4(0x14e)),_0x38b774['query']=_['keys'](_0x3f6ef4[_0x35c2c4(0x159)]),_0x38b774[_0x35c2c4(0x15b)]=_[_0x35c2c4(0x148)](_0x38b774['model'],_0x38b774[_0x35c2c4(0x159)]),_0x40c344[_0x35c2c4(0x165)]=_[_0x35c2c4(0x148)](_0x38b774[_0x35c2c4(0x145)],qs[_0x35c2c4(0x142)](_0x3f6ef4[_0x35c2c4(0x159)]['fields'])),_0x40c344[_0x35c2c4(0x165)]=_0x40c344[_0x35c2c4(0x165)][_0x35c2c4(0x157)]?_0x40c344[_0x35c2c4(0x165)]:_0x38b774[_0x35c2c4(0x145)];typeof _0x3f6ef4[_0x35c2c4(0x159)]['nolimit']==='undefined'&&(_0x40c344[_0x35c2c4(0x13a)]=qs[_0x35c2c4(0x13a)](_0x3f6ef4[_0x35c2c4(0x159)]['limit']),_0x40c344[_0x35c2c4(0x160)]=qs['offset'](_0x3f6ef4['query'][_0x35c2c4(0x160)]));_0x40c344['order']=qs['sort'](_0x3f6ef4[_0x35c2c4(0x159)][_0x35c2c4(0x156)]),_0x40c344['where']=qs[_0x35c2c4(0x15b)](_[_0x35c2c4(0x13d)](_0x3f6ef4['query'],_0x38b774[_0x35c2c4(0x15b)]),_0x235e55);_0x3f6ef4[_0x35c2c4(0x159)][_0x35c2c4(0x14a)]&&(_0x40c344[_0x35c2c4(0x16b)]=_[_0x35c2c4(0x14d)](_0x40c344['where'],{[Op['or']]:_[_0x35c2c4(0x134)](_0x235e55,function(_0x281c82){const _0x26c52b=_0x35c2c4;if(_0x281c82['type']!==_0x26c52b(0x15a)){const _0x2df15e={};return _0x2df15e[_0x281c82[_0x26c52b(0x14e)]]={[Op[_0x26c52b(0x14c)]]:'%'+_0x3f6ef4[_0x26c52b(0x159)][_0x26c52b(0x14a)]+'%'},_0x2df15e;}})}));_0x40c344=_[_0x35c2c4(0x14d)]({},_0x40c344,_0x3f6ef4[_0x35c2c4(0x153)]);const _0x2541b9={'where':_0x40c344['where']};return db[_0x35c2c4(0x154)][_0x35c2c4(0x149)](_0x2541b9)[_0x35c2c4(0x136)](function(_0x42fe9e){const _0x3c07a1=_0x35c2c4;return _0x558e88[_0x3c07a1(0x149)]=_0x42fe9e,_0x3f6ef4[_0x3c07a1(0x159)][_0x3c07a1(0x137)]&&(_0x40c344[_0x3c07a1(0x14f)]=[{'all':!![]}]),db[_0x3c07a1(0x154)][_0x3c07a1(0x13e)](_0x40c344);})[_0x35c2c4(0x136)](function(_0x5320c7){const _0x487ca4=_0x35c2c4;return _0x558e88[_0x487ca4(0x15c)]=_0x5320c7,_0x558e88;})[_0x35c2c4(0x136)](respondWithFilteredResult(_0x187575,_0x40c344))['catch'](handleError(_0x187575,null));},exports['show']=function(_0x236c22,_0x3bbe9d){const _0x2fd92a=a856_0x4a6f4e;let _0x38f6e0={'raw':![],'where':{'id':_0x236c22[_0x2fd92a(0x13f)]['id']}};const _0x52c9f3={};return _0x52c9f3[_0x2fd92a(0x145)]=_[_0x2fd92a(0x140)](db[_0x2fd92a(0x154)]['rawAttributes']),_0x52c9f3[_0x2fd92a(0x159)]=_[_0x2fd92a(0x140)](_0x236c22[_0x2fd92a(0x159)]),_0x52c9f3[_0x2fd92a(0x15b)]=_[_0x2fd92a(0x148)](_0x52c9f3[_0x2fd92a(0x145)],_0x52c9f3[_0x2fd92a(0x159)]),_0x38f6e0['attributes']=_[_0x2fd92a(0x148)](_0x52c9f3[_0x2fd92a(0x145)],qs[_0x2fd92a(0x142)](_0x236c22[_0x2fd92a(0x159)]['fields'])),_0x38f6e0[_0x2fd92a(0x165)]=_0x38f6e0['attributes'][_0x2fd92a(0x157)]?_0x38f6e0[_0x2fd92a(0x165)]:_0x52c9f3[_0x2fd92a(0x145)],_0x236c22[_0x2fd92a(0x159)][_0x2fd92a(0x137)]&&(_0x38f6e0['include']=[{'all':!![]}]),_0x38f6e0=_[_0x2fd92a(0x14d)]({},_0x38f6e0,_0x236c22[_0x2fd92a(0x153)]),db['VoiceChanSpy']['findOne'](_0x38f6e0)[_0x2fd92a(0x136)](handleEntityNotFound(_0x3bbe9d,null))[_0x2fd92a(0x136)](respondWithResult(_0x3bbe9d,null))['catch'](handleError(_0x3bbe9d,null));},exports[a856_0x4a6f4e(0x150)]=function(_0x56def0,_0x478ef6){const _0x3c2272=a856_0x4a6f4e;return db[_0x3c2272(0x154)][_0x3c2272(0x150)](_0x56def0['body'],{})[_0x3c2272(0x136)](function(_0x18463){const _0x288bb0=_0x3c2272,_0x421370=_0x56def0[_0x288bb0(0x15d)]['get']({'plain':!![]});if(!_0x421370)throw new Error(_0x288bb0(0x151));if(_0x421370[_0x288bb0(0x168)]==='user'){const _0x754afc=_0x18463[_0x288bb0(0x167)]({'plain':!![]}),_0xede796='ChanSpies';return db[_0x288bb0(0x15f)][_0x288bb0(0x141)]({'where':{'name':_0xede796,'userProfileId':_0x421370[_0x288bb0(0x166)]},'raw':!![]})[_0x288bb0(0x136)](function(_0xa36d2e){const _0xa75f0d=_0x288bb0;return _0xa36d2e&&_0xa36d2e[_0xa75f0d(0x152)]===0x0?db['UserProfileResource']['create']({'name':_0x754afc[_0xa75f0d(0x14e)],'resourceId':_0x754afc['id'],'type':_0xa36d2e['name'],'sectionId':_0xa36d2e['id']},{})[_0xa75f0d(0x136)](function(){return _0x18463;}):_0x18463;})[_0x288bb0(0x139)](function(_0x553a71){const _0x109474=_0x288bb0;logger['error'](_0x109474(0x13b),_0x553a71);throw _0x553a71;});}return _0x18463;})[_0x3c2272(0x136)](respondWithResult(_0x478ef6,0xc9))[_0x3c2272(0x139)](handleError(_0x478ef6,null));},exports[a856_0x4a6f4e(0x143)]=function(_0x2e4b33,_0x1c801f){const _0x2cd86d=a856_0x4a6f4e;return _0x2e4b33['body']['id']&&delete _0x2e4b33['body']['id'],db[_0x2cd86d(0x154)][_0x2cd86d(0x141)]({'where':{'id':_0x2e4b33[_0x2cd86d(0x13f)]['id']}})[_0x2cd86d(0x136)](handleEntityNotFound(_0x1c801f,null))[_0x2cd86d(0x136)](saveUpdates(_0x2e4b33[_0x2cd86d(0x135)],null))[_0x2cd86d(0x136)](respondWithResult(_0x1c801f,null))[_0x2cd86d(0x139)](handleError(_0x1c801f,null));},exports[a856_0x4a6f4e(0x144)]=function(_0x506ccf,_0x2c6839){const _0x47d098=a856_0x4a6f4e;return db[_0x47d098(0x154)]['findOne']({'where':{'id':_0x506ccf[_0x47d098(0x13f)]['id']}})[_0x47d098(0x136)](handleEntityNotFound(_0x2c6839,null))[_0x47d098(0x136)](removeEntity(_0x2c6839,null))['catch'](handleError(_0x2c6839,null));}; \ No newline at end of file +const a856_0x5694=['findAll','count','attributes','autoAssociation','length','update','../../config/logger','keys','params','body','index','create','fields','where','VIRTUAL','options','../../mysqldb','destroy','like','filter','name','merge','catch','key','user','sort','offset','set','map','api','type','findOne','sequelize','rawAttributes','includeAll','ChanSpies','VoiceChanSpy','undefined','status','show','intersection','model','query','Unable\x20to\x20retrieve\x20the\x20current\x20user','sendStatus','get','include','stack','send','filters','limit','Content-Range','pick','../../components/parsers/qs','error','then','userProfileId','json','lodash'];(function(_0x2b026b,_0x1276aa){const _0x5694bd=function(_0xb8c5ae){while(--_0xb8c5ae){_0x2b026b['push'](_0x2b026b['shift']());}};_0x5694bd(++_0x1276aa);}(a856_0x5694,0x9a));const a856_0xb8c5=function(_0x2b026b,_0x1276aa){_0x2b026b=_0x2b026b-0x11f;let _0x5694bd=a856_0x5694[_0x2b026b];return _0x5694bd;};const a856_0x750d4d=a856_0xb8c5;'use strict';const _=require(a856_0x750d4d(0x135)),qs=require(a856_0x750d4d(0x130)),logger=require(a856_0x750d4d(0x13c))(a856_0x750d4d(0x153)),{db}=require(a856_0x750d4d(0x146)),{Op}=require(a856_0x750d4d(0x156));function respondWithResult(_0x546cfa,_0x10c672){return _0x10c672=_0x10c672||0xc8,function(_0x5cb5bf){const _0x350465=a856_0xb8c5;if(_0x5cb5bf)return _0x546cfa[_0x350465(0x121)](_0x10c672)[_0x350465(0x134)](_0x5cb5bf);};}function respondWithFilteredResult(_0x2f8705,_0x56fb19){return function(_0x42962){const _0x512075=a856_0xb8c5;if(_0x42962){const _0x475207=_0x42962['count'],_0x3d64be=_0x56fb19[_0x512075(0x150)];let _0xc17ccc=_0x56fb19[_0x512075(0x150)]+_0x56fb19['limit'],_0x5714a3;return _0xc17ccc>=_0x475207?(_0xc17ccc=_0x475207,_0x5714a3=0xc8):_0x5714a3=0xce,_0x2f8705[_0x512075(0x121)](_0x5714a3),_0x2f8705[_0x512075(0x151)](_0x512075(0x12e),_0x3d64be+'-'+_0xc17ccc+'/'+_0x475207)[_0x512075(0x134)](_0x42962);}return null;};}function saveUpdates(_0x30ee94){return function(_0xdbe2f4){const _0x342c2b=a856_0xb8c5;if(_0xdbe2f4)return _0xdbe2f4[_0x342c2b(0x13b)](_0x30ee94)[_0x342c2b(0x132)](function(_0xf9d69f){return _0xf9d69f;});return null;};}function removeEntity(_0x37e682){return function(_0x35656b){const _0xd68ec3=a856_0xb8c5;if(_0x35656b)return _0x35656b['destroy']()[_0xd68ec3(0x132)](function(){const _0x119896=_0xd68ec3,_0x5d2ea4=_0x35656b['get']({'plain':!![]}),_0x1f81d3=_0x119896(0x159);return db['UserProfileResource'][_0x119896(0x147)]({'where':{'type':_0x1f81d3,'resourceId':_0x5d2ea4['id']}})['then'](function(){return _0x35656b;});})[_0xd68ec3(0x132)](function(){const _0x5648da=_0xd68ec3;_0x37e682[_0x5648da(0x121)](0xcc)['end']();});};}function handleEntityNotFound(_0x3c981d){return function(_0x45cee6){const _0x528352=a856_0xb8c5;return!_0x45cee6&&_0x3c981d[_0x528352(0x127)](0x194),_0x45cee6;};}function handleError(_0x5a2f80,_0x337847){return _0x337847=_0x337847||0x1f4,function(_0x2856e2){const _0x224d68=a856_0xb8c5;logger['error'](_0x2856e2[_0x224d68(0x12a)]),_0x2856e2[_0x224d68(0x14a)]&&delete _0x2856e2[_0x224d68(0x14a)],_0x5a2f80['status'](_0x337847)[_0x224d68(0x12b)](_0x2856e2);};}exports[a856_0x750d4d(0x140)]=function(_0x271f88,_0x31db18){const _0x438731=a856_0x750d4d;let _0xd3bb53={};const _0x21d0b3={},_0x293b91={'count':0x0,'rows':[]},_0x2a9216=_[_0x438731(0x152)](db[_0x438731(0x11f)]['rawAttributes'],function(_0x338ef3){const _0x20092c=_0x438731;return{'name':_0x338ef3['fieldName'],'type':_0x338ef3[_0x20092c(0x154)][_0x20092c(0x14d)]};});_0x21d0b3['model']=_[_0x438731(0x152)](_0x2a9216,_0x438731(0x14a)),_0x21d0b3[_0x438731(0x125)]=_[_0x438731(0x13d)](_0x271f88[_0x438731(0x125)]),_0x21d0b3[_0x438731(0x12c)]=_[_0x438731(0x123)](_0x21d0b3[_0x438731(0x124)],_0x21d0b3[_0x438731(0x125)]),_0xd3bb53[_0x438731(0x138)]=_[_0x438731(0x123)](_0x21d0b3['model'],qs[_0x438731(0x142)](_0x271f88['query'][_0x438731(0x142)])),_0xd3bb53['attributes']=_0xd3bb53['attributes']['length']?_0xd3bb53['attributes']:_0x21d0b3[_0x438731(0x124)];typeof _0x271f88['query']['nolimit']===_0x438731(0x120)&&(_0xd3bb53[_0x438731(0x12d)]=qs[_0x438731(0x12d)](_0x271f88[_0x438731(0x125)][_0x438731(0x12d)]),_0xd3bb53[_0x438731(0x150)]=qs[_0x438731(0x150)](_0x271f88['query'][_0x438731(0x150)]));_0xd3bb53['order']=qs[_0x438731(0x14f)](_0x271f88[_0x438731(0x125)]['sort']),_0xd3bb53[_0x438731(0x143)]=qs[_0x438731(0x12c)](_[_0x438731(0x12f)](_0x271f88[_0x438731(0x125)],_0x21d0b3[_0x438731(0x12c)]),_0x2a9216);_0x271f88[_0x438731(0x125)]['filter']&&(_0xd3bb53[_0x438731(0x143)]=_[_0x438731(0x14b)](_0xd3bb53[_0x438731(0x143)],{[Op['or']]:_['map'](_0x2a9216,function(_0xbd864e){const _0x12da28=_0x438731;if(_0xbd864e[_0x12da28(0x154)]!==_0x12da28(0x144)){const _0x4ede92={};return _0x4ede92[_0xbd864e[_0x12da28(0x14a)]]={[Op[_0x12da28(0x148)]]:'%'+_0x271f88[_0x12da28(0x125)][_0x12da28(0x149)]+'%'},_0x4ede92;}})}));_0xd3bb53=_['merge']({},_0xd3bb53,_0x271f88[_0x438731(0x145)]);const _0x15a934={'where':_0xd3bb53['where']};return db[_0x438731(0x11f)][_0x438731(0x137)](_0x15a934)['then'](function(_0x2a84c1){const _0x8fd1f4=_0x438731;return _0x293b91['count']=_0x2a84c1,_0x271f88['query']['includeAll']&&(_0xd3bb53[_0x8fd1f4(0x129)]=[{'all':!![]}]),db['VoiceChanSpy'][_0x8fd1f4(0x136)](_0xd3bb53);})[_0x438731(0x132)](function(_0x4a02e9){return _0x293b91['rows']=_0x4a02e9,_0x293b91;})['then'](respondWithFilteredResult(_0x31db18,_0xd3bb53))[_0x438731(0x14c)](handleError(_0x31db18,null));},exports[a856_0x750d4d(0x122)]=function(_0x1f853b,_0x19c679){const _0x595c18=a856_0x750d4d;let _0x59097d={'raw':![],'where':{'id':_0x1f853b[_0x595c18(0x13e)]['id']}};const _0x11c794={};return _0x11c794[_0x595c18(0x124)]=_['keys'](db[_0x595c18(0x11f)][_0x595c18(0x157)]),_0x11c794[_0x595c18(0x125)]=_[_0x595c18(0x13d)](_0x1f853b[_0x595c18(0x125)]),_0x11c794['filters']=_[_0x595c18(0x123)](_0x11c794[_0x595c18(0x124)],_0x11c794['query']),_0x59097d[_0x595c18(0x138)]=_[_0x595c18(0x123)](_0x11c794[_0x595c18(0x124)],qs[_0x595c18(0x142)](_0x1f853b[_0x595c18(0x125)][_0x595c18(0x142)])),_0x59097d['attributes']=_0x59097d[_0x595c18(0x138)][_0x595c18(0x13a)]?_0x59097d['attributes']:_0x11c794[_0x595c18(0x124)],_0x1f853b[_0x595c18(0x125)][_0x595c18(0x158)]&&(_0x59097d[_0x595c18(0x129)]=[{'all':!![]}]),_0x59097d=_[_0x595c18(0x14b)]({},_0x59097d,_0x1f853b[_0x595c18(0x145)]),db[_0x595c18(0x11f)][_0x595c18(0x155)](_0x59097d)[_0x595c18(0x132)](handleEntityNotFound(_0x19c679,null))[_0x595c18(0x132)](respondWithResult(_0x19c679,null))['catch'](handleError(_0x19c679,null));},exports[a856_0x750d4d(0x141)]=function(_0x477ec2,_0x26fcff){const _0x5124ff=a856_0x750d4d;return db[_0x5124ff(0x11f)][_0x5124ff(0x141)](_0x477ec2[_0x5124ff(0x13f)],{})[_0x5124ff(0x132)](function(_0x511399){const _0x49e04b=_0x5124ff,_0x37422b=_0x477ec2[_0x49e04b(0x14e)][_0x49e04b(0x128)]({'plain':!![]});if(!_0x37422b)throw new Error(_0x49e04b(0x126));if(_0x37422b['role']===_0x49e04b(0x14e)){const _0x4c6210=_0x511399[_0x49e04b(0x128)]({'plain':!![]}),_0x45519a=_0x49e04b(0x159);return db['UserProfileSection'][_0x49e04b(0x155)]({'where':{'name':_0x45519a,'userProfileId':_0x37422b[_0x49e04b(0x133)]},'raw':!![]})[_0x49e04b(0x132)](function(_0x45802b){const _0x409ead=_0x49e04b;return _0x45802b&&_0x45802b[_0x409ead(0x139)]===0x0?db['UserProfileResource'][_0x409ead(0x141)]({'name':_0x4c6210['name'],'resourceId':_0x4c6210['id'],'type':_0x45802b[_0x409ead(0x14a)],'sectionId':_0x45802b['id']},{})[_0x409ead(0x132)](function(){return _0x511399;}):_0x511399;})[_0x49e04b(0x14c)](function(_0xdaf629){const _0x32d77f=_0x49e04b;logger[_0x32d77f(0x131)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0xdaf629);throw _0xdaf629;});}return _0x511399;})[_0x5124ff(0x132)](respondWithResult(_0x26fcff,0xc9))['catch'](handleError(_0x26fcff,null));},exports[a856_0x750d4d(0x13b)]=function(_0x3f28bd,_0x8d29b9){const _0x16cece=a856_0x750d4d;return _0x3f28bd[_0x16cece(0x13f)]['id']&&delete _0x3f28bd[_0x16cece(0x13f)]['id'],db[_0x16cece(0x11f)][_0x16cece(0x155)]({'where':{'id':_0x3f28bd['params']['id']}})[_0x16cece(0x132)](handleEntityNotFound(_0x8d29b9,null))[_0x16cece(0x132)](saveUpdates(_0x3f28bd[_0x16cece(0x13f)],null))[_0x16cece(0x132)](respondWithResult(_0x8d29b9,null))[_0x16cece(0x14c)](handleError(_0x8d29b9,null));},exports[a856_0x750d4d(0x147)]=function(_0x5bcd3e,_0x2f5c61){const _0x441245=a856_0x750d4d;return db[_0x441245(0x11f)][_0x441245(0x155)]({'where':{'id':_0x5bcd3e[_0x441245(0x13e)]['id']}})[_0x441245(0x132)](handleEntityNotFound(_0x2f5c61,null))[_0x441245(0x132)](removeEntity(_0x2f5c61,null))[_0x441245(0x14c)](handleError(_0x2f5c61,null));}; \ No newline at end of file diff --git a/server/api/voiceChanSpy/voiceChanSpy.model.js b/server/api/voiceChanSpy/voiceChanSpy.model.js index 6f6294d..4fd26db 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.model.js +++ b/server/api/voiceChanSpy/voiceChanSpy.model.js @@ -1 +1 @@ -const a857_0x27ef=['./voiceChanSpy.attributes','function','./voiceChanSpy.options','init','VoiceChanSpy','exports'];(function(_0x1a3fa9,_0x40526e){const _0x27ef27=function(_0x469792){while(--_0x469792){_0x1a3fa9['push'](_0x1a3fa9['shift']());}};_0x27ef27(++_0x40526e);}(a857_0x27ef,0x1c1));const a857_0x4697=function(_0x1a3fa9,_0x40526e){_0x1a3fa9=_0x1a3fa9-0x75;let _0x27ef27=a857_0x27ef[_0x1a3fa9];return _0x27ef27;};const a857_0x440ccd=a857_0x4697;'use strict';const {Model}=require('sequelize'),{attributes}=require(a857_0x440ccd(0x76)),{options}=require(a857_0x440ccd(0x78));class VoiceChanSpy extends Model{}function init(_0x2d2aee,_0x5eb8ed){const _0x3a496c=a857_0x440ccd,_0x2ea87d=options(_0x2d2aee),_0xf704d6=typeof _0x5eb8ed===_0x3a496c(0x77)?_0x5eb8ed(_0x2ea87d):_0x2ea87d;return VoiceChanSpy[_0x3a496c(0x79)](attributes,_0xf704d6),VoiceChanSpy;}module[a857_0x440ccd(0x75)][a857_0x440ccd(0x7a)]=VoiceChanSpy,module[a857_0x440ccd(0x75)]['init']=init; \ No newline at end of file +const a857_0x187a=['sequelize','exports','init','function','./voiceChanSpy.attributes','./voiceChanSpy.options','VoiceChanSpy'];(function(_0x1be22e,_0xc089c){const _0x187af2=function(_0x559a65){while(--_0x559a65){_0x1be22e['push'](_0x1be22e['shift']());}};_0x187af2(++_0xc089c);}(a857_0x187a,0x85));const a857_0x559a=function(_0x1be22e,_0xc089c){_0x1be22e=_0x1be22e-0x180;let _0x187af2=a857_0x187a[_0x1be22e];return _0x187af2;};const a857_0x42ef71=a857_0x559a;'use strict';const {Model}=require(a857_0x42ef71(0x180)),{attributes}=require(a857_0x42ef71(0x184)),{options}=require(a857_0x42ef71(0x185));class VoiceChanSpy extends Model{}function init(_0x54ea05,_0x487ca2){const _0x44758f=a857_0x42ef71,_0x224b66=options(_0x54ea05),_0x1673a7=typeof _0x487ca2===_0x44758f(0x183)?_0x487ca2(_0x224b66):_0x224b66;return VoiceChanSpy[_0x44758f(0x182)](attributes,_0x1673a7),VoiceChanSpy;}module['exports'][a857_0x42ef71(0x186)]=VoiceChanSpy,module[a857_0x42ef71(0x181)][a857_0x42ef71(0x182)]=init; \ No newline at end of file diff --git a/server/api/voiceChanSpy/voiceChanSpy.options.js b/server/api/voiceChanSpy/voiceChanSpy.options.js index 2653295..e7da42c 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.options.js +++ b/server/api/voiceChanSpy/voiceChanSpy.options.js @@ -1 +1 @@ -const a858_0x57f3=['bulkCreate','destroy','record','system','ChanSpy','chanspy','auth','Authenticate','models','merge','StopMixMonitor','catch','length','name','MixMonitor','password','CDR(type)=%s','then','format','util','Set','User','exports','join','%s%s','VoiceExtension','voice_chanspy','concat','options','lodash','prefix','SIP/%s,%s','internal','push'];(function(_0x4f3632,_0x227989){const _0x57f34b=function(_0x466e85){while(--_0x466e85){_0x4f3632['push'](_0x4f3632['shift']());}};_0x57f34b(++_0x227989);}(a858_0x57f3,0x89));const a858_0x466e=function(_0x4f3632,_0x227989){_0x4f3632=_0x4f3632-0x1a0;let _0x57f34b=a858_0x57f3[_0x4f3632];return _0x57f34b;};const a858_0x4cecc2=a858_0x466e;'use strict';const _=require(a858_0x4cecc2(0x1bc)),util=require(a858_0x4cecc2(0x1b2));function createChanSpyApplications(_0x1eb5f5,_0x58b31a,_0x10d7db){const _0x53ecda=a858_0x4cecc2;let _0x83b62a=0x1;const _0x363fdb=[],_0x5b1b6f={'context':_0x58b31a['context']||'from-sip','exten':util[_0x53ecda(0x1b1)](_0x53ecda(0x1b7),_0x1eb5f5[_0x53ecda(0x1bd)],_0x10d7db),'type':_0x53ecda(0x1a2),'isApp':![],'ChanSpyId':_0x1eb5f5['id'],'UserId':_0x58b31a['id']};return _0x363fdb[_0x53ecda(0x1c0)](_[_0x53ecda(0x1a8)]({'app':_0x53ecda(0x1b3),'appdata':util[_0x53ecda(0x1b1)](_0x53ecda(0x1af),_0x53ecda(0x1a4)),'priority':_0x83b62a++},_0x5b1b6f)),_0x1eb5f5[_0x53ecda(0x1a1)]&&_0x363fdb[_0x53ecda(0x1c0)](_['merge']({'app':_0x53ecda(0x1ad),'appdata':util['format']('${UNIQUEID}.%s,ab',_0x1eb5f5['recordingFormat']),'priority':_0x83b62a++},_0x5b1b6f)),_0x1eb5f5[_0x53ecda(0x1a5)]&&_0x363fdb[_0x53ecda(0x1c0)](_['merge']({'app':_0x53ecda(0x1a6),'appdata':_0x1eb5f5[_0x53ecda(0x1ae)],'priority':_0x83b62a++},_0x5b1b6f)),_0x363fdb[_0x53ecda(0x1c0)](_['merge']({'app':_0x53ecda(0x1a3),'appdata':util[_0x53ecda(0x1b1)](_0x53ecda(0x1be),_0x58b31a['name'],_0x1eb5f5[_0x53ecda(0x1bb)]?_0x1eb5f5[_0x53ecda(0x1bb)][_0x53ecda(0x1b6)](''):''),'priority':_0x83b62a++},_0x5b1b6f)),_0x1eb5f5[_0x53ecda(0x1a1)]&&_0x363fdb[_0x53ecda(0x1c0)](_[_0x53ecda(0x1a8)]({'app':_0x53ecda(0x1a9),'priority':_0x83b62a++},_0x5b1b6f)),_0x363fdb;}function addChanSpyApplications(_0x259a58,_0x561181){const _0x56007c=a858_0x4cecc2;let _0x18ff1d=[];for(let _0x1eeb03=0x0;_0x1eeb03<_0x561181[_0x56007c(0x1ab)];_0x1eeb03++){_0x18ff1d=_0x18ff1d[_0x56007c(0x1ba)](createChanSpyApplications(_0x259a58,_0x561181[_0x1eeb03],_0x561181[_0x1eeb03][_0x56007c(0x1bf)])),_0x561181[_0x1eeb03][_0x56007c(0x1bf)]!=_0x561181[_0x1eeb03][_0x56007c(0x1ac)]&&(_0x18ff1d=_0x18ff1d[_0x56007c(0x1ba)](createChanSpyApplications(_0x259a58,_0x561181[_0x1eeb03],_0x561181[_0x1eeb03][_0x56007c(0x1ac)])));}return _0x18ff1d;}function getChanSpy(_0x247102,_0x1f915a){return new Promise(function(_0x5a10b6,_0xe1b4c3){const _0x4a57f8=a858_0x466e;return _0x247102[_0x4a57f8(0x1b4)]['findAll']({'attributes':['id','name',_0x4a57f8(0x1bf)],'where':{'role':'agent','chanspy':!![]},'raw':!![]})[_0x4a57f8(0x1b0)](function(_0x429157){if(_0x429157)return _0x5a10b6(addChanSpyApplications(_0x1f915a,_0x429157));return _0x5a10b6([]);})[_0x4a57f8(0x1aa)](function(_0x289656){_0xe1b4c3(_0x289656);});});}function options(_0x27c7ef){const _0x16e26b=a858_0x4cecc2;return{'sequelize':_0x27c7ef,'tableName':_0x16e26b(0x1b9),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x4db6f1){const _0x2c81e0=_0x16e26b,_0x461f0f=_0x27c7ef[_0x2c81e0(0x1a7)];return getChanSpy(_0x461f0f,_0x4db6f1)[_0x2c81e0(0x1b0)](function(_0x22298a){return _0x22298a&&_0x22298a['length']?_0x461f0f['VoiceExtension']['bulkCreate'](_0x22298a):null;})[_0x2c81e0(0x1aa)](function(_0x177170){return _0x177170;});},'afterUpdate':function(_0x13dd8f){const _0x217294=_0x16e26b,_0x28368e=_0x27c7ef['models'];return _0x28368e[_0x217294(0x1b8)][_0x217294(0x1a0)]({'where':{'ChanSpyId':_0x13dd8f['id']}})[_0x217294(0x1b0)](function(){return getChanSpy(_0x28368e,_0x13dd8f);})[_0x217294(0x1b0)](function(_0xbe98f1){const _0x39b32b=_0x217294;return _0xbe98f1&&_0xbe98f1[_0x39b32b(0x1ab)]?_0x28368e['VoiceExtension'][_0x39b32b(0x1c1)](_0xbe98f1):null;})[_0x217294(0x1aa)](function(_0x4fe70c){return _0x4fe70c;});},'afterDestroy':function(_0x594413){const _0x17514b=_0x16e26b,_0x1522a9=_0x27c7ef[_0x17514b(0x1a7)];return _0x1522a9[_0x17514b(0x1b8)][_0x17514b(0x1a0)]({'where':{'ChanSpyId':_0x594413['id']}})[_0x17514b(0x1b0)](function(){return null;})['catch'](function(_0x14df41){return _0x14df41;});}}};}module[a858_0x4cecc2(0x1b5)][a858_0x4cecc2(0x1bb)]=options; \ No newline at end of file +const a858_0x1da1=['system','context','then','recordingFormat','Authenticate','destroy','name','agent','options','Set','internal','util','merge','models','length','format','concat','record','%s%s','catch','push','User','VoiceExtension','ChanSpy','${UNIQUEID}.%s,ab','findAll','auth','voice_chanspy','password','chanspy','prefix','exports','StopMixMonitor','bulkCreate','SIP/%s,%s'];(function(_0x1e2d89,_0x1e355a){const _0x1da1c3=function(_0x1cacf7){while(--_0x1cacf7){_0x1e2d89['push'](_0x1e2d89['shift']());}};_0x1da1c3(++_0x1e355a);}(a858_0x1da1,0x14f));const a858_0x1cac=function(_0x1e2d89,_0x1e355a){_0x1e2d89=_0x1e2d89-0x1e5;let _0x1da1c3=a858_0x1da1[_0x1e2d89];return _0x1da1c3;};const a858_0x6015cc=a858_0x1cac;'use strict';const _=require('lodash'),util=require(a858_0x6015cc(0x1ff));function createChanSpyApplications(_0x41385b,_0x1659b3,_0xe7544e){const _0x25e3c7=a858_0x6015cc;let _0x4b6b35=0x1;const _0x63c80=[],_0x434bdf={'context':_0x1659b3[_0x25e3c7(0x1f5)]||'from-sip','exten':util['format'](_0x25e3c7(0x206),_0x41385b[_0x25e3c7(0x1ef)],_0xe7544e),'type':_0x25e3c7(0x1f4),'isApp':![],'ChanSpyId':_0x41385b['id'],'UserId':_0x1659b3['id']};return _0x63c80['push'](_['merge']({'app':_0x25e3c7(0x1fd),'appdata':util['format']('CDR(type)=%s',_0x25e3c7(0x1ee)),'priority':_0x4b6b35++},_0x434bdf)),_0x41385b[_0x25e3c7(0x205)]&&_0x63c80[_0x25e3c7(0x1e5)](_['merge']({'app':'MixMonitor','appdata':util[_0x25e3c7(0x203)](_0x25e3c7(0x1e9),_0x41385b[_0x25e3c7(0x1f7)]),'priority':_0x4b6b35++},_0x434bdf)),_0x41385b[_0x25e3c7(0x1eb)]&&_0x63c80[_0x25e3c7(0x1e5)](_[_0x25e3c7(0x200)]({'app':_0x25e3c7(0x1f8),'appdata':_0x41385b[_0x25e3c7(0x1ed)],'priority':_0x4b6b35++},_0x434bdf)),_0x63c80[_0x25e3c7(0x1e5)](_['merge']({'app':_0x25e3c7(0x1e8),'appdata':util[_0x25e3c7(0x203)](_0x25e3c7(0x1f3),_0x1659b3[_0x25e3c7(0x1fa)],_0x41385b[_0x25e3c7(0x1fc)]?_0x41385b['options']['join'](''):''),'priority':_0x4b6b35++},_0x434bdf)),_0x41385b[_0x25e3c7(0x205)]&&_0x63c80[_0x25e3c7(0x1e5)](_['merge']({'app':_0x25e3c7(0x1f1),'priority':_0x4b6b35++},_0x434bdf)),_0x63c80;}function addChanSpyApplications(_0xd3292e,_0x30dd33){const _0x409b3f=a858_0x6015cc;let _0x2776c7=[];for(let _0x303429=0x0;_0x303429<_0x30dd33[_0x409b3f(0x202)];_0x303429++){_0x2776c7=_0x2776c7[_0x409b3f(0x204)](createChanSpyApplications(_0xd3292e,_0x30dd33[_0x303429],_0x30dd33[_0x303429]['internal'])),_0x30dd33[_0x303429]['internal']!=_0x30dd33[_0x303429][_0x409b3f(0x1fa)]&&(_0x2776c7=_0x2776c7[_0x409b3f(0x204)](createChanSpyApplications(_0xd3292e,_0x30dd33[_0x303429],_0x30dd33[_0x303429]['name'])));}return _0x2776c7;}function getChanSpy(_0x4d2aec,_0x1e2f20){return new Promise(function(_0x4eaa85,_0x278453){const _0x28341a=a858_0x1cac;return _0x4d2aec[_0x28341a(0x1e6)][_0x28341a(0x1ea)]({'attributes':['id','name',_0x28341a(0x1fe)],'where':{'role':_0x28341a(0x1fb),'chanspy':!![]},'raw':!![]})['then'](function(_0x305274){if(_0x305274)return _0x4eaa85(addChanSpyApplications(_0x1e2f20,_0x305274));return _0x4eaa85([]);})[_0x28341a(0x207)](function(_0x5b6a01){_0x278453(_0x5b6a01);});});}function options(_0x10be6e){const _0x49a0ec=a858_0x6015cc;return{'sequelize':_0x10be6e,'tableName':_0x49a0ec(0x1ec),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x3f58f5){const _0x3e5bbe=_0x49a0ec,_0x5839f6=_0x10be6e[_0x3e5bbe(0x201)];return getChanSpy(_0x5839f6,_0x3f58f5)['then'](function(_0x1a95f5){const _0x162624=_0x3e5bbe;return _0x1a95f5&&_0x1a95f5[_0x162624(0x202)]?_0x5839f6['VoiceExtension'][_0x162624(0x1f2)](_0x1a95f5):null;})[_0x3e5bbe(0x207)](function(_0x5a5e3b){return _0x5a5e3b;});},'afterUpdate':function(_0x5cc37d){const _0x5045e8=_0x49a0ec,_0x5b1e0c=_0x10be6e[_0x5045e8(0x201)];return _0x5b1e0c[_0x5045e8(0x1e7)][_0x5045e8(0x1f9)]({'where':{'ChanSpyId':_0x5cc37d['id']}})['then'](function(){return getChanSpy(_0x5b1e0c,_0x5cc37d);})[_0x5045e8(0x1f6)](function(_0x4d23e3){const _0x4926ce=_0x5045e8;return _0x4d23e3&&_0x4d23e3[_0x4926ce(0x202)]?_0x5b1e0c[_0x4926ce(0x1e7)]['bulkCreate'](_0x4d23e3):null;})['catch'](function(_0x5d8553){return _0x5d8553;});},'afterDestroy':function(_0x41633e){const _0x14288b=_0x49a0ec,_0xb8ceb2=_0x10be6e['models'];return _0xb8ceb2['VoiceExtension'][_0x14288b(0x1f9)]({'where':{'ChanSpyId':_0x41633e['id']}})[_0x14288b(0x1f6)](function(){return null;})[_0x14288b(0x207)](function(_0x266cb2){return _0x266cb2;});}}};}module[a858_0x6015cc(0x1f0)][a858_0x6015cc(0x1fc)]=options; \ No newline at end of file diff --git a/server/api/voiceContext/index.js b/server/api/voiceContext/index.js index 116ab0e..282526e 100644 --- a/server/api/voiceContext/index.js +++ b/server/api/voiceContext/index.js @@ -1 +1 @@ -const a859_0x4e7d=['/:id','exports','./voiceContext.controller','delete','express','destroy','create','get','update','isAuthenticated','show','index','../../components/auth/service'];(function(_0x506901,_0x3bf3f5){const _0x4e7d36=function(_0x4163ef){while(--_0x4163ef){_0x506901['push'](_0x506901['shift']());}};_0x4e7d36(++_0x3bf3f5);}(a859_0x4e7d,0xce));const a859_0x4163=function(_0x506901,_0x3bf3f5){_0x506901=_0x506901-0x1e5;let _0x4e7d36=a859_0x4e7d[_0x506901];return _0x4e7d36;};const a859_0x1828d0=a859_0x4163;'use strict';const express=require(a859_0x1828d0(0x1eb)),router=express['Router'](),auth=require(a859_0x1828d0(0x1e6)),controller=require(a859_0x1828d0(0x1e9));router[a859_0x1828d0(0x1ee)]('/',auth['isAuthenticated'](),controller[a859_0x1828d0(0x1e5)]),router[a859_0x1828d0(0x1ee)](a859_0x1828d0(0x1e7),auth[a859_0x1828d0(0x1f0)](),controller[a859_0x1828d0(0x1f1)]),router['post']('/',auth[a859_0x1828d0(0x1f0)](),controller[a859_0x1828d0(0x1ed)]),router['put'](a859_0x1828d0(0x1e7),auth['isAuthenticated'](),controller[a859_0x1828d0(0x1ef)]),router[a859_0x1828d0(0x1ea)]('/:id',auth[a859_0x1828d0(0x1f0)](),controller[a859_0x1828d0(0x1ec)]),module[a859_0x1828d0(0x1e8)]=router; \ No newline at end of file +const a859_0x1243=['create','destroy','exports','/:id','isAuthenticated','Router','put','delete','get','./voiceContext.controller','post','update'];(function(_0x5009f6,_0x1626f7){const _0x124324=function(_0xb61eba){while(--_0xb61eba){_0x5009f6['push'](_0x5009f6['shift']());}};_0x124324(++_0x1626f7);}(a859_0x1243,0x1c7));const a859_0xb61e=function(_0x5009f6,_0x1626f7){_0x5009f6=_0x5009f6-0x14b;let _0x124324=a859_0x1243[_0x5009f6];return _0x124324;};const a859_0x39f0bd=a859_0xb61e;'use strict';const express=require('express'),router=express[a859_0x39f0bd(0x151)](),auth=require('../../components/auth/service'),controller=require(a859_0x39f0bd(0x155));router[a859_0x39f0bd(0x154)]('/',auth[a859_0x39f0bd(0x150)](),controller['index']),router['get'](a859_0x39f0bd(0x14f),auth[a859_0x39f0bd(0x150)](),controller['show']),router[a859_0x39f0bd(0x156)]('/',auth[a859_0x39f0bd(0x150)](),controller[a859_0x39f0bd(0x14c)]),router[a859_0x39f0bd(0x152)](a859_0x39f0bd(0x14f),auth[a859_0x39f0bd(0x150)](),controller[a859_0x39f0bd(0x14b)]),router[a859_0x39f0bd(0x153)]('/:id',auth[a859_0x39f0bd(0x150)](),controller[a859_0x39f0bd(0x14d)]),module[a859_0x39f0bd(0x14e)]=router; \ No newline at end of file diff --git a/server/api/voiceContext/voiceContext.attributes.js b/server/api/voiceContext/voiceContext.attributes.js index 0ac28fc..12a3039 100644 --- a/server/api/voiceContext/voiceContext.attributes.js +++ b/server/api/voiceContext/voiceContext.attributes.js @@ -1 +1 @@ -const a860_0x10c8=['name','sequelize','STRING','BOOLEAN','exports','attributes'];(function(_0x5f456a,_0x3ec894){const _0x10c807=function(_0x1bf96f){while(--_0x1bf96f){_0x5f456a['push'](_0x5f456a['shift']());}};_0x10c807(++_0x3ec894);}(a860_0x10c8,0x15e));const a860_0x1bf9=function(_0x5f456a,_0x3ec894){_0x5f456a=_0x5f456a-0xa3;let _0x10c807=a860_0x10c8[_0x5f456a];return _0x10c807;};const a860_0xc5ecd9=a860_0x1bf9;'use strict';const {DataTypes}=require(a860_0xc5ecd9(0xa8)),attributes={'name':{'type':DataTypes[a860_0xc5ecd9(0xa3)],'unique':a860_0xc5ecd9(0xa7)},'description':{'type':DataTypes['STRING'],'allowNull':!![]},'defaultEntry':{'type':DataTypes[a860_0xc5ecd9(0xa4)],'defaultValue':0x0}};module[a860_0xc5ecd9(0xa5)][a860_0xc5ecd9(0xa6)]=attributes; \ No newline at end of file +const a860_0x5b2f=['sequelize','BOOLEAN','name','STRING'];(function(_0x47e212,_0xe31ff1){const _0x5b2fb5=function(_0x1069f4){while(--_0x1069f4){_0x47e212['push'](_0x47e212['shift']());}};_0x5b2fb5(++_0xe31ff1);}(a860_0x5b2f,0x9e));const a860_0x1069=function(_0x47e212,_0xe31ff1){_0x47e212=_0x47e212-0x166;let _0x5b2fb5=a860_0x5b2f[_0x47e212];return _0x5b2fb5;};const a860_0x17b37e=a860_0x1069;'use strict';const {DataTypes}=require(a860_0x17b37e(0x168)),attributes={'name':{'type':DataTypes[a860_0x17b37e(0x167)],'unique':a860_0x17b37e(0x166)},'description':{'type':DataTypes[a860_0x17b37e(0x167)],'allowNull':!![]},'defaultEntry':{'type':DataTypes[a860_0x17b37e(0x169)],'defaultValue':0x0}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/voiceContext/voiceContext.controller.js b/server/api/voiceContext/voiceContext.controller.js index abe8ac0..55db092 100644 --- a/server/api/voiceContext/voiceContext.controller.js +++ b/server/api/voiceContext/voiceContext.controller.js @@ -1 +1 @@ -const a861_0x4a3c=['http','error','name','include','/etc/asterisk/extensions_xcally_contexts.conf','body','jayson/promise','type','path','pick','VoiceContext','fields','nolimit','stack','rows','sort','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','then','attributes','get','VoiceContext,\x20%s,\x20%s,\x20%s','set','../../config/logger','end','api','rawAttributes','lodash','fieldName','options','params','update','offset','destroy','autoAssociation','root','Content-Range','limit','merge','status','json','../../config/environment','key','UserProfileSection','intersection','Reload','keys','where','info','count','client','message','map','send','model','render','../../components/parsers/qs','filters','userProfileId','filter','VIRTUAL','ejs','index','create','debug','UserProfileResource','show','readFileSync','request\x20sent','VoiceContext,\x20%s,\x20%s','Unable\x20to\x20retrieve\x20the\x20current\x20user','../../mysqldb','catch','stringify','Contexts','writeFileSync','sequelize','utf8','includeAll','code','like','order','files/templates/context.ejs','chan_sip.so','findAll','join','user','query','request','findOne'];(function(_0x124ae4,_0x430c65){const _0x4a3c48=function(_0x59dceb){while(--_0x59dceb){_0x124ae4['push'](_0x124ae4['shift']());}};_0x4a3c48(++_0x430c65);}(a861_0x4a3c,0xe7));const a861_0x59dc=function(_0x124ae4,_0x430c65){_0x124ae4=_0x124ae4-0x1bd;let _0x4a3c48=a861_0x4a3c[_0x124ae4];return _0x4a3c48;};const a861_0x5b1b95=a861_0x59dc;'use strict';const path=require(a861_0x5b1b95(0x1e9)),ejs=require(a861_0x5b1b95(0x1c4)),fs=require('fs'),_=require(a861_0x5b1b95(0x1fb)),qs=require(a861_0x5b1b95(0x1bf)),logger=require(a861_0x5b1b95(0x1f7))(a861_0x5b1b95(0x1f9)),config=require(a861_0x5b1b95(0x209)),{db}=require(a861_0x5b1b95(0x1ce)),{Op}=require(a861_0x5b1b95(0x1d3)),jayson=require(a861_0x5b1b95(0x1e7)),client=jayson[a861_0x5b1b95(0x212)][a861_0x5b1b95(0x1e1)]({'port':0x232a});function respondWithRpcPromise(_0x1a913a,_0x25d078,_0x146831,_0x220862){return new Promise(function(_0xa4b923,_0x326532){const _0x21d27d=a861_0x59dc,_0x114b99=_0x220862||client;return _0x114b99[_0x21d27d(0x1df)](_0x1a913a,_0x146831)['then'](function(_0x4676fe){const _0x544278=_0x21d27d;logger[_0x544278(0x210)](_0x544278(0x1cc),_0x25d078,'request\x20sent'),logger[_0x544278(0x1c7)](_0x544278(0x1f5),_0x25d078,_0x544278(0x1cb),JSON[_0x544278(0x1d0)](_0x4676fe));if(_0x4676fe['error']){if(_0x4676fe[_0x544278(0x1e2)][_0x544278(0x1d6)]===0x1f4)return logger[_0x544278(0x1e2)](_0x544278(0x1cc),_0x25d078,_0x4676fe[_0x544278(0x1e2)][_0x544278(0x213)]),_0x326532(_0x4676fe[_0x544278(0x1e2)][_0x544278(0x213)]);return logger['error']('VoiceContext,\x20%s,\x20%s',_0x25d078,_0x4676fe[_0x544278(0x1e2)][_0x544278(0x213)]),_0xa4b923(_0x4676fe[_0x544278(0x1e2)]['message']);}else logger[_0x544278(0x210)](_0x544278(0x1cc),_0x25d078,'request\x20sent'),_0xa4b923(_0x4676fe['result'][_0x544278(0x213)]);})[_0x21d27d(0x1cf)](function(_0x31f20e){const _0x52ac82=_0x21d27d;logger[_0x52ac82(0x1e2)](_0x52ac82(0x1cc),_0x25d078,_0x31f20e),_0x326532(_0x31f20e);});});}function respondWithResult(_0x5eb9f8,_0x30c9c0){return _0x30c9c0=_0x30c9c0||0xc8,function(_0x52e093){const _0x18ef9a=a861_0x59dc;if(_0x52e093)return _0x5eb9f8[_0x18ef9a(0x207)](_0x30c9c0)[_0x18ef9a(0x208)](_0x52e093);};}function respondWithFilteredResult(_0x26df10,_0x4e13b8){return function(_0x3fe9e8){const _0x42e452=a861_0x59dc;if(_0x3fe9e8){const _0x2f7132=_0x3fe9e8[_0x42e452(0x211)],_0x14b059=_0x4e13b8['offset'];let _0x53da81=_0x4e13b8[_0x42e452(0x200)]+_0x4e13b8[_0x42e452(0x205)],_0x4802c9;return _0x53da81>=_0x2f7132?(_0x53da81=_0x2f7132,_0x4802c9=0xc8):_0x4802c9=0xce,_0x26df10['status'](_0x4802c9),_0x26df10[_0x42e452(0x1f6)](_0x42e452(0x204),_0x14b059+'-'+_0x53da81+'/'+_0x2f7132)[_0x42e452(0x208)](_0x3fe9e8);}return null;};}function saveUpdates(_0x3c2a78){return function(_0xd017e0){const _0x4c840f=a861_0x59dc;if(_0xd017e0)return _0xd017e0[_0x4c840f(0x1ff)](_0x3c2a78)[_0x4c840f(0x1f2)](function(_0x32143f){return _0x32143f;});return null;};}function removeEntity(_0x2d1fbe){return function(_0x1e8fe8){const _0x2fa0a6=a861_0x59dc;if(_0x1e8fe8)return _0x1e8fe8[_0x2fa0a6(0x201)]()[_0x2fa0a6(0x1f2)](function(){const _0x1fcc9f=_0x2fa0a6,_0x1ac418=_0x1e8fe8[_0x1fcc9f(0x1f4)]({'plain':!![]}),_0x323b80=_0x1fcc9f(0x1d1);return db[_0x1fcc9f(0x1c8)][_0x1fcc9f(0x201)]({'where':{'type':_0x323b80,'resourceId':_0x1ac418['id']}})[_0x1fcc9f(0x1f2)](function(){return _0x1e8fe8;});})[_0x2fa0a6(0x1f2)](function(){const _0x6de5e3=_0x2fa0a6;_0x2d1fbe['status'](0xcc)[_0x6de5e3(0x1f8)]();});};}function handleEntityNotFound(_0x583bfc){return function(_0x45c9ef){return!_0x45c9ef&&_0x583bfc['sendStatus'](0x194),_0x45c9ef;};}function handleError(_0x113411,_0x7702c1){return _0x7702c1=_0x7702c1||0x1f4,function(_0x409a61){const _0xbf36f4=a861_0x59dc;logger[_0xbf36f4(0x1e2)](_0x409a61[_0xbf36f4(0x1ee)]),_0x409a61['name']&&delete _0x409a61[_0xbf36f4(0x1e3)],_0x113411['status'](_0x7702c1)[_0xbf36f4(0x215)](_0x409a61);};}exports[a861_0x5b1b95(0x1c5)]=function(_0x2d6e95,_0x15fff2){const _0x394a19=a861_0x5b1b95;let _0x385832={};const _0x3bb237={},_0x46c392={'count':0x0,'rows':[]},_0x187336=_['map'](db[_0x394a19(0x1eb)]['rawAttributes'],function(_0x31fa35){const _0x1928ef=_0x394a19;return{'name':_0x31fa35[_0x1928ef(0x1fc)],'type':_0x31fa35[_0x1928ef(0x1e8)][_0x1928ef(0x20a)]};});_0x3bb237[_0x394a19(0x1bd)]=_[_0x394a19(0x214)](_0x187336,_0x394a19(0x1e3)),_0x3bb237['query']=_['keys'](_0x2d6e95[_0x394a19(0x1de)]),_0x3bb237['filters']=_[_0x394a19(0x20c)](_0x3bb237[_0x394a19(0x1bd)],_0x3bb237[_0x394a19(0x1de)]),_0x385832[_0x394a19(0x1f3)]=_[_0x394a19(0x20c)](_0x3bb237[_0x394a19(0x1bd)],qs[_0x394a19(0x1ec)](_0x2d6e95[_0x394a19(0x1de)][_0x394a19(0x1ec)])),_0x385832[_0x394a19(0x1f3)]=_0x385832[_0x394a19(0x1f3)]['length']?_0x385832[_0x394a19(0x1f3)]:_0x3bb237['model'];typeof _0x2d6e95[_0x394a19(0x1de)][_0x394a19(0x1ed)]==='undefined'&&(_0x385832['limit']=qs['limit'](_0x2d6e95[_0x394a19(0x1de)][_0x394a19(0x205)]),_0x385832[_0x394a19(0x200)]=qs[_0x394a19(0x200)](_0x2d6e95[_0x394a19(0x1de)][_0x394a19(0x200)]));_0x385832[_0x394a19(0x1d8)]=qs[_0x394a19(0x1f0)](_0x2d6e95[_0x394a19(0x1de)][_0x394a19(0x1f0)]),_0x385832['where']=qs['filters'](_[_0x394a19(0x1ea)](_0x2d6e95['query'],_0x3bb237[_0x394a19(0x1c0)]),_0x187336);_0x2d6e95[_0x394a19(0x1de)][_0x394a19(0x1c2)]&&(_0x385832[_0x394a19(0x20f)]=_['merge'](_0x385832[_0x394a19(0x20f)],{[Op['or']]:_['map'](_0x187336,function(_0x174532){const _0x408051=_0x394a19;if(_0x174532[_0x408051(0x1e8)]!==_0x408051(0x1c3)){const _0x568471={};return _0x568471[_0x174532[_0x408051(0x1e3)]]={[Op[_0x408051(0x1d7)]]:'%'+_0x2d6e95['query']['filter']+'%'},_0x568471;}})}));_0x385832=_[_0x394a19(0x206)]({},_0x385832,_0x2d6e95[_0x394a19(0x1fd)]);const _0x435555={'where':_0x385832[_0x394a19(0x20f)]};return db[_0x394a19(0x1eb)][_0x394a19(0x211)](_0x435555)[_0x394a19(0x1f2)](function(_0x269ce8){const _0x5b40a1=_0x394a19;return _0x46c392['count']=_0x269ce8,_0x2d6e95[_0x5b40a1(0x1de)][_0x5b40a1(0x1d5)]&&(_0x385832[_0x5b40a1(0x1e4)]=[{'all':!![]}]),db['VoiceContext']['findAll'](_0x385832);})[_0x394a19(0x1f2)](function(_0x29d124){const _0x211405=_0x394a19;return _0x46c392[_0x211405(0x1ef)]=_0x29d124,_0x46c392;})[_0x394a19(0x1f2)](respondWithFilteredResult(_0x15fff2,_0x385832))[_0x394a19(0x1cf)](handleError(_0x15fff2,null));},exports[a861_0x5b1b95(0x1c9)]=function(_0x532ec7,_0xed3f1d){const _0x4310f1=a861_0x5b1b95;let _0x3d397a={'raw':![],'where':{'id':_0x532ec7[_0x4310f1(0x1fe)]['id']}};const _0x4829e4={};return _0x4829e4['model']=_[_0x4310f1(0x20e)](db[_0x4310f1(0x1eb)][_0x4310f1(0x1fa)]),_0x4829e4['query']=_[_0x4310f1(0x20e)](_0x532ec7[_0x4310f1(0x1de)]),_0x4829e4[_0x4310f1(0x1c0)]=_[_0x4310f1(0x20c)](_0x4829e4['model'],_0x4829e4['query']),_0x3d397a['attributes']=_[_0x4310f1(0x20c)](_0x4829e4['model'],qs[_0x4310f1(0x1ec)](_0x532ec7[_0x4310f1(0x1de)][_0x4310f1(0x1ec)])),_0x3d397a[_0x4310f1(0x1f3)]=_0x3d397a['attributes']['length']?_0x3d397a['attributes']:_0x4829e4['model'],_0x532ec7[_0x4310f1(0x1de)][_0x4310f1(0x1d5)]&&(_0x3d397a[_0x4310f1(0x1e4)]=[{'all':!![]}]),_0x3d397a=_[_0x4310f1(0x206)]({},_0x3d397a,_0x532ec7[_0x4310f1(0x1fd)]),db[_0x4310f1(0x1eb)][_0x4310f1(0x1e0)](_0x3d397a)[_0x4310f1(0x1f2)](handleEntityNotFound(_0xed3f1d,null))[_0x4310f1(0x1f2)](respondWithResult(_0xed3f1d,null))[_0x4310f1(0x1cf)](handleError(_0xed3f1d,null));},exports[a861_0x5b1b95(0x1c6)]=function(_0x256716,_0x88ba94){const _0x5765fc=a861_0x5b1b95;let _0x4381f9;return db['VoiceContext']['create'](_0x256716[_0x5765fc(0x1e6)],{'raw':!![]})['then'](function(_0xec06f5){const _0x4ed36f=_0x5765fc;return _0x4381f9=_0xec06f5,db['VoiceContext'][_0x4ed36f(0x1db)]({'raw':!![]});})[_0x5765fc(0x1f2)](function(_0x5e7071){const _0x5e1c58=_0x5765fc,_0x4a342d=fs[_0x5e1c58(0x1ca)](path['join'](config[_0x5e1c58(0x203)],_0x5e1c58(0x1d9)),_0x5e1c58(0x1d4)),_0x2aeefc=ejs[_0x5e1c58(0x1be)](_0x4a342d,{'contexts':_0x5e7071||[]});fs[_0x5e1c58(0x1d2)](_0x5e1c58(0x1e5),_0x2aeefc);})[_0x5765fc(0x1f2)](function(){const _0x53d5bb=_0x5765fc;return respondWithRpcPromise(_0x53d5bb(0x20d),_0x53d5bb(0x1c6),{'module':'chan_sip.so'});})[_0x5765fc(0x1f2)](function(){const _0x5c08cf=_0x5765fc,_0x4a4279=_0x256716['user'][_0x5c08cf(0x1f4)]({'plain':!![]});if(!_0x4a4279)throw new Error(_0x5c08cf(0x1cd));if(_0x4a4279['role']===_0x5c08cf(0x1dd)){const _0x1206a2=_0x4381f9[_0x5c08cf(0x1f4)]({'plain':!![]});return db[_0x5c08cf(0x20b)][_0x5c08cf(0x1e0)]({'where':{'name':_0x5c08cf(0x1d1),'userProfileId':_0x4a4279[_0x5c08cf(0x1c1)]},'raw':!![]})['then'](function(_0xca5eb7){const _0x386b1f=_0x5c08cf;return _0xca5eb7&&_0xca5eb7[_0x386b1f(0x202)]===0x0?db[_0x386b1f(0x1c8)]['create']({'name':_0x1206a2[_0x386b1f(0x1e3)],'resourceId':_0x1206a2['id'],'type':_0xca5eb7[_0x386b1f(0x1e3)],'sectionId':_0xca5eb7['id']},{})[_0x386b1f(0x1f2)](function(){return _0x4381f9;}):_0x4381f9;})[_0x5c08cf(0x1cf)](function(_0x44c7e5){const _0x5b0ecb=_0x5c08cf;logger['error'](_0x5b0ecb(0x1f1),_0x44c7e5);throw _0x44c7e5;});}return _0x4381f9;})[_0x5765fc(0x1f2)](respondWithResult(_0x88ba94,0xc9))[_0x5765fc(0x1cf)](handleError(_0x88ba94,null));},exports['update']=function(_0xb8a186,_0xfa4280){const _0x754aae=a861_0x5b1b95;let _0x4db40b;return db[_0x754aae(0x1eb)][_0x754aae(0x1e0)]({'where':{'id':_0xb8a186[_0x754aae(0x1fe)]['id']}})[_0x754aae(0x1f2)](handleEntityNotFound(_0xfa4280,null))[_0x754aae(0x1f2)](saveUpdates(_0xb8a186[_0x754aae(0x1e6)],null))[_0x754aae(0x1f2)](function(_0x369601){const _0x34f367=_0x754aae;if(_0x369601)return _0x4db40b=_0x369601,db[_0x34f367(0x1eb)][_0x34f367(0x1db)]({'raw':!![]});})[_0x754aae(0x1f2)](function(_0x1256c8){const _0x3c08f8=_0x754aae,_0x4ee735=fs[_0x3c08f8(0x1ca)](path[_0x3c08f8(0x1dc)](config[_0x3c08f8(0x203)],'files/templates/context.ejs'),_0x3c08f8(0x1d4)),_0x5f3e63=ejs['render'](_0x4ee735,{'contexts':_0x1256c8||[]});fs['writeFileSync'](_0x3c08f8(0x1e5),_0x5f3e63);})[_0x754aae(0x1f2)](function(){const _0x5f4226=_0x754aae;return respondWithRpcPromise(_0x5f4226(0x20d),_0x5f4226(0x1ff),{'module':_0x5f4226(0x1da)});})[_0x754aae(0x1f2)](function(){return _0x4db40b;})[_0x754aae(0x1f2)](respondWithResult(_0xfa4280,null))[_0x754aae(0x1cf)](handleError(_0xfa4280,null));},exports[a861_0x5b1b95(0x201)]=function(_0x49a90d,_0x1b4ce0){const _0x222ef1=a861_0x5b1b95;return db[_0x222ef1(0x1eb)][_0x222ef1(0x1e0)]({'where':{'id':_0x49a90d[_0x222ef1(0x1fe)]['id']}})[_0x222ef1(0x1f2)](handleEntityNotFound(_0x1b4ce0,null))[_0x222ef1(0x1f2)](removeEntity(_0x1b4ce0,null))[_0x222ef1(0x1f2)](function(){const _0x39cf27=_0x222ef1;return db[_0x39cf27(0x1eb)][_0x39cf27(0x1db)]({'raw':!![]});})[_0x222ef1(0x1f2)](function(_0x4b9130){const _0x5898aa=_0x222ef1,_0x17fe2a=fs['readFileSync'](path[_0x5898aa(0x1dc)](config['root'],_0x5898aa(0x1d9)),_0x5898aa(0x1d4)),_0x3b7be5=ejs[_0x5898aa(0x1be)](_0x17fe2a,{'contexts':_0x4b9130});return fs[_0x5898aa(0x1d2)](_0x5898aa(0x1e5),_0x3b7be5),respondWithRpcPromise(_0x5898aa(0x20d),_0x5898aa(0x201),{'module':_0x5898aa(0x1da)});})[_0x222ef1(0x1cf)](handleError(_0x1b4ce0,null));}; \ No newline at end of file +const a861_0x3aa9=['limit','lodash','filter','rawAttributes','where','VIRTUAL','status','UserProfileResource','count','key','client','../../config/logger','code','VoiceContext,\x20%s,\x20%s','stringify','http','create','then','offset','show','get','readFileSync','path','index','include','like','name','user','Reload','attributes','includeAll','findOne','fieldName','../../components/parsers/qs','set','request','Unable\x20to\x20retrieve\x20the\x20current\x20user','keys','files/templates/context.ejs','Contexts','jayson/promise','render','merge','nolimit','Content-Range','sendStatus','query','end','destroy','writeFileSync','VoiceContext','message','catch','sort','type','error','fields','root','VoiceContext,\x20%s,\x20%s,\x20%s','info','/etc/asterisk/extensions_xcally_contexts.conf','join','intersection','filters','params','order','debug','role','pick','utf8','body','UserProfileSection','request\x20sent','send','map','api','model','findAll','update','options'];(function(_0x3759f3,_0x518c99){const _0x3aa9a5=function(_0x34aff5){while(--_0x34aff5){_0x3759f3['push'](_0x3759f3['shift']());}};_0x3aa9a5(++_0x518c99);}(a861_0x3aa9,0x16d));const a861_0x34af=function(_0x3759f3,_0x518c99){_0x3759f3=_0x3759f3-0x1d7;let _0x3aa9a5=a861_0x3aa9[_0x3759f3];return _0x3aa9a5;};const a861_0x1ef0cb=a861_0x34af;'use strict';const path=require(a861_0x1ef0cb(0x210)),ejs=require('ejs'),fs=require('fs'),_=require(a861_0x1ef0cb(0x1fb)),qs=require(a861_0x1ef0cb(0x21b)),logger=require(a861_0x1ef0cb(0x205))(a861_0x1ef0cb(0x1f5)),config=require('../../config/environment'),{db}=require('../../mysqldb'),{Op}=require('sequelize'),jayson=require(a861_0x1ef0cb(0x222)),client=jayson[a861_0x1ef0cb(0x204)][a861_0x1ef0cb(0x209)]({'port':0x232a});function respondWithRpcPromise(_0x561843,_0x3ade20,_0x54dd7b,_0x283b34){return new Promise(function(_0x33473e,_0x341954){const _0x5f041b=a861_0x34af,_0xe491cb=_0x283b34||client;return _0xe491cb[_0x5f041b(0x21d)](_0x561843,_0x54dd7b)[_0x5f041b(0x20b)](function(_0x1a8e91){const _0x1f9e41=_0x5f041b;logger[_0x1f9e41(0x1e5)](_0x1f9e41(0x207),_0x3ade20,_0x1f9e41(0x1f2)),logger[_0x1f9e41(0x1ec)](_0x1f9e41(0x1e4),_0x3ade20,'request\x20sent',JSON[_0x1f9e41(0x208)](_0x1a8e91));if(_0x1a8e91[_0x1f9e41(0x1e1)]){if(_0x1a8e91[_0x1f9e41(0x1e1)][_0x1f9e41(0x206)]===0x1f4)return logger[_0x1f9e41(0x1e1)]('VoiceContext,\x20%s,\x20%s',_0x3ade20,_0x1a8e91['error'][_0x1f9e41(0x1dd)]),_0x341954(_0x1a8e91[_0x1f9e41(0x1e1)][_0x1f9e41(0x1dd)]);return logger[_0x1f9e41(0x1e1)](_0x1f9e41(0x207),_0x3ade20,_0x1a8e91[_0x1f9e41(0x1e1)][_0x1f9e41(0x1dd)]),_0x33473e(_0x1a8e91['error'][_0x1f9e41(0x1dd)]);}else logger[_0x1f9e41(0x1e5)]('VoiceContext,\x20%s,\x20%s',_0x3ade20,_0x1f9e41(0x1f2)),_0x33473e(_0x1a8e91['result'][_0x1f9e41(0x1dd)]);})[_0x5f041b(0x1de)](function(_0x128009){const _0x4b207b=_0x5f041b;logger[_0x4b207b(0x1e1)](_0x4b207b(0x207),_0x3ade20,_0x128009),_0x341954(_0x128009);});});}function respondWithResult(_0x55bc65,_0x49767e){return _0x49767e=_0x49767e||0xc8,function(_0x37e3cc){const _0x36402a=a861_0x34af;if(_0x37e3cc)return _0x55bc65[_0x36402a(0x200)](_0x49767e)['json'](_0x37e3cc);};}function respondWithFilteredResult(_0x87a51d,_0x89e50){return function(_0x3edbe6){const _0x4c37fe=a861_0x34af;if(_0x3edbe6){const _0x5832bb=_0x3edbe6[_0x4c37fe(0x202)],_0x76135b=_0x89e50[_0x4c37fe(0x20c)];let _0x59ebf8=_0x89e50[_0x4c37fe(0x20c)]+_0x89e50[_0x4c37fe(0x1fa)],_0x40b5ee;return _0x59ebf8>=_0x5832bb?(_0x59ebf8=_0x5832bb,_0x40b5ee=0xc8):_0x40b5ee=0xce,_0x87a51d['status'](_0x40b5ee),_0x87a51d[_0x4c37fe(0x21c)](_0x4c37fe(0x226),_0x76135b+'-'+_0x59ebf8+'/'+_0x5832bb)['json'](_0x3edbe6);}return null;};}function saveUpdates(_0x6bdc62){return function(_0x48ea5f){const _0x376c84=a861_0x34af;if(_0x48ea5f)return _0x48ea5f['update'](_0x6bdc62)[_0x376c84(0x20b)](function(_0x2516e8){return _0x2516e8;});return null;};}function removeEntity(_0x2421ac){return function(_0x304529){if(_0x304529)return _0x304529['destroy']()['then'](function(){const _0x3aa87e=a861_0x34af,_0x18785a=_0x304529[_0x3aa87e(0x20e)]({'plain':!![]}),_0x1804c7=_0x3aa87e(0x221);return db['UserProfileResource'][_0x3aa87e(0x1da)]({'where':{'type':_0x1804c7,'resourceId':_0x18785a['id']}})['then'](function(){return _0x304529;});})['then'](function(){const _0x1e0340=a861_0x34af;_0x2421ac[_0x1e0340(0x200)](0xcc)[_0x1e0340(0x1d9)]();});};}function handleEntityNotFound(_0x9c8db1){return function(_0x3f25a6){const _0x1529e2=a861_0x34af;return!_0x3f25a6&&_0x9c8db1[_0x1529e2(0x1d7)](0x194),_0x3f25a6;};}function handleError(_0x522d2b,_0xe17ad5){return _0xe17ad5=_0xe17ad5||0x1f4,function(_0x1840c9){const _0x442be7=a861_0x34af;logger[_0x442be7(0x1e1)](_0x1840c9['stack']),_0x1840c9['name']&&delete _0x1840c9[_0x442be7(0x214)],_0x522d2b[_0x442be7(0x200)](_0xe17ad5)[_0x442be7(0x1f3)](_0x1840c9);};}exports[a861_0x1ef0cb(0x211)]=function(_0x1d68bf,_0x54fa6e){const _0x1741a9=a861_0x1ef0cb;let _0x57ca78={};const _0x1deafa={},_0x39752d={'count':0x0,'rows':[]},_0x1c2c20=_[_0x1741a9(0x1f4)](db['VoiceContext'][_0x1741a9(0x1fd)],function(_0x475a4b){const _0x56e23f=_0x1741a9;return{'name':_0x475a4b[_0x56e23f(0x21a)],'type':_0x475a4b['type'][_0x56e23f(0x203)]};});_0x1deafa[_0x1741a9(0x1f6)]=_['map'](_0x1c2c20,_0x1741a9(0x214)),_0x1deafa[_0x1741a9(0x1d8)]=_[_0x1741a9(0x21f)](_0x1d68bf['query']),_0x1deafa['filters']=_[_0x1741a9(0x1e8)](_0x1deafa['model'],_0x1deafa['query']),_0x57ca78[_0x1741a9(0x217)]=_[_0x1741a9(0x1e8)](_0x1deafa[_0x1741a9(0x1f6)],qs[_0x1741a9(0x1e2)](_0x1d68bf['query'][_0x1741a9(0x1e2)])),_0x57ca78[_0x1741a9(0x217)]=_0x57ca78[_0x1741a9(0x217)]['length']?_0x57ca78[_0x1741a9(0x217)]:_0x1deafa[_0x1741a9(0x1f6)];typeof _0x1d68bf[_0x1741a9(0x1d8)][_0x1741a9(0x225)]==='undefined'&&(_0x57ca78[_0x1741a9(0x1fa)]=qs['limit'](_0x1d68bf[_0x1741a9(0x1d8)][_0x1741a9(0x1fa)]),_0x57ca78[_0x1741a9(0x20c)]=qs['offset'](_0x1d68bf[_0x1741a9(0x1d8)][_0x1741a9(0x20c)]));_0x57ca78[_0x1741a9(0x1eb)]=qs[_0x1741a9(0x1df)](_0x1d68bf['query'][_0x1741a9(0x1df)]),_0x57ca78[_0x1741a9(0x1fe)]=qs[_0x1741a9(0x1e9)](_[_0x1741a9(0x1ee)](_0x1d68bf[_0x1741a9(0x1d8)],_0x1deafa[_0x1741a9(0x1e9)]),_0x1c2c20);_0x1d68bf['query'][_0x1741a9(0x1fc)]&&(_0x57ca78['where']=_['merge'](_0x57ca78[_0x1741a9(0x1fe)],{[Op['or']]:_['map'](_0x1c2c20,function(_0x17141c){const _0x243a35=_0x1741a9;if(_0x17141c[_0x243a35(0x1e0)]!==_0x243a35(0x1ff)){const _0x58a3e5={};return _0x58a3e5[_0x17141c[_0x243a35(0x214)]]={[Op[_0x243a35(0x213)]]:'%'+_0x1d68bf['query'][_0x243a35(0x1fc)]+'%'},_0x58a3e5;}})}));_0x57ca78=_[_0x1741a9(0x224)]({},_0x57ca78,_0x1d68bf['options']);const _0x5da334={'where':_0x57ca78[_0x1741a9(0x1fe)]};return db[_0x1741a9(0x1dc)][_0x1741a9(0x202)](_0x5da334)['then'](function(_0x5e704c){const _0x437bc8=_0x1741a9;return _0x39752d['count']=_0x5e704c,_0x1d68bf['query'][_0x437bc8(0x218)]&&(_0x57ca78[_0x437bc8(0x212)]=[{'all':!![]}]),db[_0x437bc8(0x1dc)][_0x437bc8(0x1f7)](_0x57ca78);})[_0x1741a9(0x20b)](function(_0x3a7907){return _0x39752d['rows']=_0x3a7907,_0x39752d;})[_0x1741a9(0x20b)](respondWithFilteredResult(_0x54fa6e,_0x57ca78))['catch'](handleError(_0x54fa6e,null));},exports[a861_0x1ef0cb(0x20d)]=function(_0x441b6b,_0x356244){const _0x4ae859=a861_0x1ef0cb;let _0x52e61d={'raw':![],'where':{'id':_0x441b6b[_0x4ae859(0x1ea)]['id']}};const _0x48d36b={};return _0x48d36b[_0x4ae859(0x1f6)]=_[_0x4ae859(0x21f)](db[_0x4ae859(0x1dc)][_0x4ae859(0x1fd)]),_0x48d36b[_0x4ae859(0x1d8)]=_[_0x4ae859(0x21f)](_0x441b6b[_0x4ae859(0x1d8)]),_0x48d36b[_0x4ae859(0x1e9)]=_[_0x4ae859(0x1e8)](_0x48d36b[_0x4ae859(0x1f6)],_0x48d36b['query']),_0x52e61d[_0x4ae859(0x217)]=_[_0x4ae859(0x1e8)](_0x48d36b['model'],qs[_0x4ae859(0x1e2)](_0x441b6b['query']['fields'])),_0x52e61d[_0x4ae859(0x217)]=_0x52e61d[_0x4ae859(0x217)]['length']?_0x52e61d['attributes']:_0x48d36b[_0x4ae859(0x1f6)],_0x441b6b[_0x4ae859(0x1d8)][_0x4ae859(0x218)]&&(_0x52e61d['include']=[{'all':!![]}]),_0x52e61d=_[_0x4ae859(0x224)]({},_0x52e61d,_0x441b6b[_0x4ae859(0x1f9)]),db[_0x4ae859(0x1dc)][_0x4ae859(0x219)](_0x52e61d)[_0x4ae859(0x20b)](handleEntityNotFound(_0x356244,null))[_0x4ae859(0x20b)](respondWithResult(_0x356244,null))[_0x4ae859(0x1de)](handleError(_0x356244,null));},exports['create']=function(_0x3a3ca1,_0x414903){const _0x1f6298=a861_0x1ef0cb;let _0x58151f;return db[_0x1f6298(0x1dc)][_0x1f6298(0x20a)](_0x3a3ca1[_0x1f6298(0x1f0)],{'raw':!![]})[_0x1f6298(0x20b)](function(_0x35af0f){const _0x1987c5=_0x1f6298;return _0x58151f=_0x35af0f,db[_0x1987c5(0x1dc)][_0x1987c5(0x1f7)]({'raw':!![]});})[_0x1f6298(0x20b)](function(_0x5dfebe){const _0x3dc84d=_0x1f6298,_0x89c451=fs['readFileSync'](path[_0x3dc84d(0x1e7)](config[_0x3dc84d(0x1e3)],_0x3dc84d(0x220)),_0x3dc84d(0x1ef)),_0x16604a=ejs[_0x3dc84d(0x223)](_0x89c451,{'contexts':_0x5dfebe||[]});fs[_0x3dc84d(0x1db)](_0x3dc84d(0x1e6),_0x16604a);})[_0x1f6298(0x20b)](function(){const _0x2aa4e2=_0x1f6298;return respondWithRpcPromise(_0x2aa4e2(0x216),_0x2aa4e2(0x20a),{'module':'chan_sip.so'});})[_0x1f6298(0x20b)](function(){const _0x25699e=_0x1f6298,_0x28655b=_0x3a3ca1['user']['get']({'plain':!![]});if(!_0x28655b)throw new Error(_0x25699e(0x21e));if(_0x28655b[_0x25699e(0x1ed)]===_0x25699e(0x215)){const _0x4e5493=_0x58151f[_0x25699e(0x20e)]({'plain':!![]});return db[_0x25699e(0x1f1)][_0x25699e(0x219)]({'where':{'name':_0x25699e(0x221),'userProfileId':_0x28655b['userProfileId']},'raw':!![]})[_0x25699e(0x20b)](function(_0x2b5eca){const _0x1f161b=_0x25699e;return _0x2b5eca&&_0x2b5eca['autoAssociation']===0x0?db[_0x1f161b(0x201)]['create']({'name':_0x4e5493[_0x1f161b(0x214)],'resourceId':_0x4e5493['id'],'type':_0x2b5eca['name'],'sectionId':_0x2b5eca['id']},{})[_0x1f161b(0x20b)](function(){return _0x58151f;}):_0x58151f;})[_0x25699e(0x1de)](function(_0x56978e){const _0x4b9d54=_0x25699e;logger[_0x4b9d54(0x1e1)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x56978e);throw _0x56978e;});}return _0x58151f;})[_0x1f6298(0x20b)](respondWithResult(_0x414903,0xc9))[_0x1f6298(0x1de)](handleError(_0x414903,null));},exports['update']=function(_0x2965b7,_0x528681){const _0x340420=a861_0x1ef0cb;let _0x596853;return db[_0x340420(0x1dc)][_0x340420(0x219)]({'where':{'id':_0x2965b7['params']['id']}})[_0x340420(0x20b)](handleEntityNotFound(_0x528681,null))[_0x340420(0x20b)](saveUpdates(_0x2965b7[_0x340420(0x1f0)],null))[_0x340420(0x20b)](function(_0x1b7b89){const _0x19b8c0=_0x340420;if(_0x1b7b89)return _0x596853=_0x1b7b89,db['VoiceContext'][_0x19b8c0(0x1f7)]({'raw':!![]});})[_0x340420(0x20b)](function(_0x21808e){const _0x47ce0b=_0x340420,_0x2dc19a=fs[_0x47ce0b(0x20f)](path['join'](config[_0x47ce0b(0x1e3)],_0x47ce0b(0x220)),'utf8'),_0x44bc18=ejs[_0x47ce0b(0x223)](_0x2dc19a,{'contexts':_0x21808e||[]});fs[_0x47ce0b(0x1db)](_0x47ce0b(0x1e6),_0x44bc18);})[_0x340420(0x20b)](function(){const _0x2a9e9f=_0x340420;return respondWithRpcPromise(_0x2a9e9f(0x216),_0x2a9e9f(0x1f8),{'module':'chan_sip.so'});})[_0x340420(0x20b)](function(){return _0x596853;})[_0x340420(0x20b)](respondWithResult(_0x528681,null))[_0x340420(0x1de)](handleError(_0x528681,null));},exports[a861_0x1ef0cb(0x1da)]=function(_0x93f133,_0x2ccd3b){const _0x322b19=a861_0x1ef0cb;return db[_0x322b19(0x1dc)][_0x322b19(0x219)]({'where':{'id':_0x93f133[_0x322b19(0x1ea)]['id']}})[_0x322b19(0x20b)](handleEntityNotFound(_0x2ccd3b,null))[_0x322b19(0x20b)](removeEntity(_0x2ccd3b,null))[_0x322b19(0x20b)](function(){const _0x14fb90=_0x322b19;return db[_0x14fb90(0x1dc)][_0x14fb90(0x1f7)]({'raw':!![]});})[_0x322b19(0x20b)](function(_0x515762){const _0xe4bb49=_0x322b19,_0x1bd2a6=fs[_0xe4bb49(0x20f)](path[_0xe4bb49(0x1e7)](config[_0xe4bb49(0x1e3)],'files/templates/context.ejs'),_0xe4bb49(0x1ef)),_0x4bcae8=ejs[_0xe4bb49(0x223)](_0x1bd2a6,{'contexts':_0x515762});return fs['writeFileSync'](_0xe4bb49(0x1e6),_0x4bcae8),respondWithRpcPromise(_0xe4bb49(0x216),_0xe4bb49(0x1da),{'module':'chan_sip.so'});})['catch'](handleError(_0x2ccd3b,null));}; \ No newline at end of file diff --git a/server/api/voiceContext/voiceContext.model.js b/server/api/voiceContext/voiceContext.model.js index eca7e0f..7c8c95d 100644 --- a/server/api/voiceContext/voiceContext.model.js +++ b/server/api/voiceContext/voiceContext.model.js @@ -1 +1 @@ -const a862_0x1e19=['./voiceContext.options','./voiceContext.attributes','exports','init','function','VoiceContext','sequelize'];(function(_0x62fae3,_0x76e624){const _0x1e19e3=function(_0x38a3d5){while(--_0x38a3d5){_0x62fae3['push'](_0x62fae3['shift']());}};_0x1e19e3(++_0x76e624);}(a862_0x1e19,0x185));const a862_0x38a3=function(_0x62fae3,_0x76e624){_0x62fae3=_0x62fae3-0xfc;let _0x1e19e3=a862_0x1e19[_0x62fae3];return _0x1e19e3;};const a862_0x1a1aa3=a862_0x38a3;'use strict';const {Model}=require(a862_0x1a1aa3(0xfe)),{attributes}=require(a862_0x1a1aa3(0x100)),{options}=require(a862_0x1a1aa3(0xff));class VoiceContext extends Model{}function init(_0x550a7c,_0x49104b){const _0x304c97=a862_0x1a1aa3,_0x5154ee=options(_0x550a7c),_0x1a4b1c=typeof _0x49104b===_0x304c97(0xfc)?_0x49104b(_0x5154ee):_0x5154ee;return VoiceContext[_0x304c97(0x102)](attributes,_0x1a4b1c),VoiceContext;}module['exports'][a862_0x1a1aa3(0xfd)]=VoiceContext,module[a862_0x1a1aa3(0x101)]['init']=init; \ No newline at end of file +const a862_0x552a=['sequelize','exports','./voiceContext.options','init','./voiceContext.attributes'];(function(_0x2faa55,_0x471157){const _0x552a06=function(_0x45035b){while(--_0x45035b){_0x2faa55['push'](_0x2faa55['shift']());}};_0x552a06(++_0x471157);}(a862_0x552a,0x119));const a862_0x4503=function(_0x2faa55,_0x471157){_0x2faa55=_0x2faa55-0xec;let _0x552a06=a862_0x552a[_0x2faa55];return _0x552a06;};const a862_0x5d1b4e=a862_0x4503;'use strict';const {Model}=require(a862_0x5d1b4e(0xf0)),{attributes}=require(a862_0x5d1b4e(0xef)),{options}=require(a862_0x5d1b4e(0xed));class VoiceContext extends Model{}function init(_0xfd5bb8,_0x55f80c){const _0x32747e=a862_0x5d1b4e,_0x59824d=options(_0xfd5bb8),_0x47bec6=typeof _0x55f80c==='function'?_0x55f80c(_0x59824d):_0x59824d;return VoiceContext[_0x32747e(0xee)](attributes,_0x47bec6),VoiceContext;}module['exports']['VoiceContext']=VoiceContext,module[a862_0x5d1b4e(0xec)][a862_0x5d1b4e(0xee)]=init; \ No newline at end of file diff --git a/server/api/voiceContext/voiceContext.options.js b/server/api/voiceContext/voiceContext.options.js index 568bf28..8f23d1a 100644 --- a/server/api/voiceContext/voiceContext.options.js +++ b/server/api/voiceContext/voiceContext.options.js @@ -1 +1 @@ -var a863_0x425a=['options','exports'];(function(_0x570c7,_0x2caf45){var _0x425a28=function(_0x433521){while(--_0x433521){_0x570c7['push'](_0x570c7['shift']());}};_0x425a28(++_0x2caf45);}(a863_0x425a,0xc1));var a863_0x4335=function(_0x570c7,_0x2caf45){_0x570c7=_0x570c7-0x143;var _0x425a28=a863_0x425a[_0x570c7];return _0x425a28;};var a863_0x1fa830=a863_0x4335;function options(_0x2412d1){return{'sequelize':_0x2412d1,'tableName':'voice_contexts','paranoid':![],'indexes':[],'timestamps':!![]};}module[a863_0x1fa830(0x143)][a863_0x1fa830(0x144)]=options; \ No newline at end of file +var a863_0x1797=['voice_contexts','options'];(function(_0x138ad8,_0x3530a9){var _0x17970e=function(_0x34d286){while(--_0x34d286){_0x138ad8['push'](_0x138ad8['shift']());}};_0x17970e(++_0x3530a9);}(a863_0x1797,0x127));var a863_0x34d2=function(_0x138ad8,_0x3530a9){_0x138ad8=_0x138ad8-0x64;var _0x17970e=a863_0x1797[_0x138ad8];return _0x17970e;};var a863_0x239df0=a863_0x34d2;function options(_0x5113b2){var _0x58c3c1=a863_0x34d2;return{'sequelize':_0x5113b2,'tableName':_0x58c3c1(0x65),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a863_0x239df0(0x64)]=options; \ No newline at end of file diff --git a/server/api/voiceDialReport/index.js b/server/api/voiceDialReport/index.js index 6ddfc37..4a739e6 100644 --- a/server/api/voiceDialReport/index.js +++ b/server/api/voiceDialReport/index.js @@ -1 +1 @@ -const a864_0x5199=['post','get','create','../../components/auth/service','exports','destroy','describe','./voiceDialReport.controller','index','/:id','express','isAuthenticated','put'];(function(_0x123aac,_0x10f831){const _0x519959=function(_0x5e7306){while(--_0x5e7306){_0x123aac['push'](_0x123aac['shift']());}};_0x519959(++_0x10f831);}(a864_0x5199,0x1ca));const a864_0x5e73=function(_0x123aac,_0x10f831){_0x123aac=_0x123aac-0xdb;let _0x519959=a864_0x5199[_0x123aac];return _0x519959;};const a864_0x5cc15c=a864_0x5e73;'use strict';const express=require(a864_0x5cc15c(0xe2)),router=express['Router'](),auth=require(a864_0x5cc15c(0xdb)),controller=require(a864_0x5cc15c(0xdf));router['get']('/',auth['isAuthenticated'](),controller[a864_0x5cc15c(0xe0)]),router[a864_0x5cc15c(0xe6)]('/describe',auth[a864_0x5cc15c(0xe3)](),controller[a864_0x5cc15c(0xde)]),router[a864_0x5cc15c(0xe6)](a864_0x5cc15c(0xe1),auth[a864_0x5cc15c(0xe3)](),controller['show']),router[a864_0x5cc15c(0xe5)]('/',auth[a864_0x5cc15c(0xe3)](),controller[a864_0x5cc15c(0xe7)]),router[a864_0x5cc15c(0xe4)]('/:id',auth[a864_0x5cc15c(0xe3)](),controller['update']),router['delete']('/:id',auth[a864_0x5cc15c(0xe3)](),controller[a864_0x5cc15c(0xdd)]),module[a864_0x5cc15c(0xdc)]=router; \ No newline at end of file +const a864_0x3d15=['delete','destroy','/:id','./voiceDialReport.controller','isAuthenticated','index','../../components/auth/service','show','express','describe','put','get','exports','post','update'];(function(_0x6e9948,_0x183f1a){const _0x3d15d7=function(_0x3df6ae){while(--_0x3df6ae){_0x6e9948['push'](_0x6e9948['shift']());}};_0x3d15d7(++_0x183f1a);}(a864_0x3d15,0x1e8));const a864_0x3df6=function(_0x6e9948,_0x183f1a){_0x6e9948=_0x6e9948-0x13d;let _0x3d15d7=a864_0x3d15[_0x6e9948];return _0x3d15d7;};const a864_0x1ca067=a864_0x3df6;'use strict';const express=require(a864_0x1ca067(0x13d)),router=express['Router'](),auth=require(a864_0x1ca067(0x14a)),controller=require(a864_0x1ca067(0x147));router[a864_0x1ca067(0x140)]('/',auth[a864_0x1ca067(0x148)](),controller[a864_0x1ca067(0x149)]),router[a864_0x1ca067(0x140)]('/describe',auth[a864_0x1ca067(0x148)](),controller[a864_0x1ca067(0x13e)]),router[a864_0x1ca067(0x140)](a864_0x1ca067(0x146),auth['isAuthenticated'](),controller[a864_0x1ca067(0x14b)]),router[a864_0x1ca067(0x142)]('/',auth[a864_0x1ca067(0x148)](),controller['create']),router[a864_0x1ca067(0x13f)](a864_0x1ca067(0x146),auth[a864_0x1ca067(0x148)](),controller[a864_0x1ca067(0x143)]),router[a864_0x1ca067(0x144)](a864_0x1ca067(0x146),auth[a864_0x1ca067(0x148)](),controller[a864_0x1ca067(0x145)]),module[a864_0x1ca067(0x141)]=router; \ No newline at end of file diff --git a/server/api/voiceDialReport/voiceDialReport.attributes.js b/server/api/voiceDialReport/voiceDialReport.attributes.js index d0f8159..11786a9 100644 --- a/server/api/voiceDialReport/voiceDialReport.attributes.js +++ b/server/api/voiceDialReport/voiceDialReport.attributes.js @@ -1 +1 @@ -const a865_0x2a06=['INTEGER','DATE','sequelize','STRING','called,connect,complete','attributes'];(function(_0x1755b4,_0x33d33f){const _0x2a06f8=function(_0xf02f60){while(--_0xf02f60){_0x1755b4['push'](_0x1755b4['shift']());}};_0x2a06f8(++_0x33d33f);}(a865_0x2a06,0x83));const a865_0xf02f=function(_0x1755b4,_0x33d33f){_0x1755b4=_0x1755b4-0x1ab;let _0x2a06f8=a865_0x2a06[_0x1755b4];return _0x2a06f8;};const a865_0x35d525=a865_0xf02f;'use strict';const {DataTypes}=require(a865_0x35d525(0x1ae)),attributes={'privilege':{'type':DataTypes[a865_0x35d525(0x1af)]},'channel':{'type':DataTypes[a865_0x35d525(0x1af)]},'channelstate':{'type':DataTypes[a865_0x35d525(0x1ac)]},'channelstatedesc':{'type':DataTypes[a865_0x35d525(0x1af)]},'calleridnum':{'type':DataTypes[a865_0x35d525(0x1af)]},'calleridname':{'type':DataTypes[a865_0x35d525(0x1af)]},'connectedlinenum':{'type':DataTypes[a865_0x35d525(0x1af)]},'connectedlinename':{'type':DataTypes[a865_0x35d525(0x1af)]},'language':{'type':DataTypes[a865_0x35d525(0x1af)]},'accountcode':{'type':DataTypes['STRING']},'context':{'type':DataTypes['STRING']},'exten':{'type':DataTypes[a865_0x35d525(0x1af)]},'priority':{'type':DataTypes['INTEGER']},'uniqueid':{'type':DataTypes[a865_0x35d525(0x1af)]},'linkedid':{'type':DataTypes[a865_0x35d525(0x1af)]},'destchannel':{'type':DataTypes[a865_0x35d525(0x1af)]},'destchannelstate':{'type':DataTypes[a865_0x35d525(0x1ac)]},'destchannelstatedesc':{'type':DataTypes[a865_0x35d525(0x1af)]},'destcalleridnum':{'type':DataTypes[a865_0x35d525(0x1af)]},'destcalleridname':{'type':DataTypes[a865_0x35d525(0x1af)]},'destconnectedlinenum':{'type':DataTypes[a865_0x35d525(0x1af)]},'destconnectedlinename':{'type':DataTypes[a865_0x35d525(0x1af)]},'destlanguage':{'type':DataTypes[a865_0x35d525(0x1af)]},'destaccountcode':{'type':DataTypes[a865_0x35d525(0x1af)]},'destcontext':{'type':DataTypes[a865_0x35d525(0x1af)]},'destexten':{'type':DataTypes[a865_0x35d525(0x1af)]},'destpriority':{'type':DataTypes[a865_0x35d525(0x1ac)]},'destuniqueid':{'type':DataTypes[a865_0x35d525(0x1af)]},'destlinkedid':{'type':DataTypes[a865_0x35d525(0x1af)]},'dialstring':{'type':DataTypes[a865_0x35d525(0x1af)]},'dialstatus':{'type':DataTypes[a865_0x35d525(0x1af)]},'starttime':{'type':DataTypes[a865_0x35d525(0x1ad)]},'answertime':{'type':DataTypes[a865_0x35d525(0x1ad)]},'endtime':{'type':DataTypes[a865_0x35d525(0x1ad)]},'lastevent':{'type':DataTypes[a865_0x35d525(0x1af)],'comment':a865_0x35d525(0x1b0)},'routeId':{'type':DataTypes[a865_0x35d525(0x1ac)]},'duration':{'type':DataTypes['INTEGER']},'holdtime':{'type':DataTypes[a865_0x35d525(0x1ac)]},'billableseconds':{'type':DataTypes[a865_0x35d525(0x1ac)]}};module['exports'][a865_0x35d525(0x1ab)]=attributes; \ No newline at end of file +const a865_0x335b=['exports','sequelize','STRING','INTEGER','attributes','called,connect,complete','DATE'];(function(_0x14e2f5,_0x2631cf){const _0x335b8b=function(_0x18e06a){while(--_0x18e06a){_0x14e2f5['push'](_0x14e2f5['shift']());}};_0x335b8b(++_0x2631cf);}(a865_0x335b,0x159));const a865_0x18e0=function(_0x14e2f5,_0x2631cf){_0x14e2f5=_0x14e2f5-0xb3;let _0x335b8b=a865_0x335b[_0x14e2f5];return _0x335b8b;};const a865_0x2903fc=a865_0x18e0;'use strict';const {DataTypes}=require(a865_0x2903fc(0xb9)),attributes={'privilege':{'type':DataTypes[a865_0x2903fc(0xb3)]},'channel':{'type':DataTypes['STRING']},'channelstate':{'type':DataTypes[a865_0x2903fc(0xb4)]},'channelstatedesc':{'type':DataTypes['STRING']},'calleridnum':{'type':DataTypes[a865_0x2903fc(0xb3)]},'calleridname':{'type':DataTypes[a865_0x2903fc(0xb3)]},'connectedlinenum':{'type':DataTypes[a865_0x2903fc(0xb3)]},'connectedlinename':{'type':DataTypes['STRING']},'language':{'type':DataTypes[a865_0x2903fc(0xb3)]},'accountcode':{'type':DataTypes[a865_0x2903fc(0xb3)]},'context':{'type':DataTypes[a865_0x2903fc(0xb3)]},'exten':{'type':DataTypes[a865_0x2903fc(0xb3)]},'priority':{'type':DataTypes[a865_0x2903fc(0xb4)]},'uniqueid':{'type':DataTypes['STRING']},'linkedid':{'type':DataTypes[a865_0x2903fc(0xb3)]},'destchannel':{'type':DataTypes[a865_0x2903fc(0xb3)]},'destchannelstate':{'type':DataTypes[a865_0x2903fc(0xb4)]},'destchannelstatedesc':{'type':DataTypes[a865_0x2903fc(0xb3)]},'destcalleridnum':{'type':DataTypes['STRING']},'destcalleridname':{'type':DataTypes[a865_0x2903fc(0xb3)]},'destconnectedlinenum':{'type':DataTypes[a865_0x2903fc(0xb3)]},'destconnectedlinename':{'type':DataTypes[a865_0x2903fc(0xb3)]},'destlanguage':{'type':DataTypes[a865_0x2903fc(0xb3)]},'destaccountcode':{'type':DataTypes[a865_0x2903fc(0xb3)]},'destcontext':{'type':DataTypes[a865_0x2903fc(0xb3)]},'destexten':{'type':DataTypes[a865_0x2903fc(0xb3)]},'destpriority':{'type':DataTypes[a865_0x2903fc(0xb4)]},'destuniqueid':{'type':DataTypes[a865_0x2903fc(0xb3)]},'destlinkedid':{'type':DataTypes[a865_0x2903fc(0xb3)]},'dialstring':{'type':DataTypes[a865_0x2903fc(0xb3)]},'dialstatus':{'type':DataTypes[a865_0x2903fc(0xb3)]},'starttime':{'type':DataTypes[a865_0x2903fc(0xb7)]},'answertime':{'type':DataTypes[a865_0x2903fc(0xb7)]},'endtime':{'type':DataTypes[a865_0x2903fc(0xb7)]},'lastevent':{'type':DataTypes[a865_0x2903fc(0xb3)],'comment':a865_0x2903fc(0xb6)},'routeId':{'type':DataTypes['INTEGER']},'duration':{'type':DataTypes[a865_0x2903fc(0xb4)]},'holdtime':{'type':DataTypes['INTEGER']},'billableseconds':{'type':DataTypes[a865_0x2903fc(0xb4)]}};module[a865_0x2903fc(0xb8)][a865_0x2903fc(0xb5)]=attributes; \ No newline at end of file diff --git a/server/api/voiceDialReport/voiceDialReport.controller.js b/server/api/voiceDialReport/voiceDialReport.controller.js index 0f23fcf..199177a 100644 --- a/server/api/voiceDialReport/voiceDialReport.controller.js +++ b/server/api/voiceDialReport/voiceDialReport.controller.js @@ -1 +1 @@ -const a866_0x3be8=['then','findAll','include','json','type','length','status','body','keys','name','intersection','findOne','key','../../mysqldb','limit','params','order','set','filters','api','index','Content-Range','merge','attributes','sequelize','nolimit','rows','undefined','like','map','send','show','fields','catch','../../components/parsers/qs','model','VIRTUAL','pick','options','rawAttributes','error','update','describe','sort','VoiceDialReport','destroy','offset','filter','where','create','query','includeAll','count'];(function(_0x2203a6,_0x5ed031){const _0x3be816=function(_0x347126){while(--_0x347126){_0x2203a6['push'](_0x2203a6['shift']());}};_0x3be816(++_0x5ed031);}(a866_0x3be8,0x1e9));const a866_0x3471=function(_0x2203a6,_0x5ed031){_0x2203a6=_0x2203a6-0x83;let _0x3be816=a866_0x3be8[_0x2203a6];return _0x3be816;};const a866_0x44dea3=a866_0x3471;'use strict';const _=require('lodash'),qs=require(a866_0x44dea3(0x99)),logger=require('../../config/logger')(a866_0x44dea3(0x8a)),{db}=require(a866_0x44dea3(0x84)),{Op}=require(a866_0x44dea3(0x8f));function respondWithResult(_0x429b8c,_0x102851){return _0x102851=_0x102851||0xc8,function(_0x143e84){const _0x1754c2=a866_0x3471;if(_0x143e84)return _0x429b8c['status'](_0x102851)[_0x1754c2(0xaf)](_0x143e84);};}function respondWithFilteredResult(_0x56c121,_0xd0ade5){return function(_0xe1bb95){const _0x9aad4=a866_0x3471;if(_0xe1bb95){const _0xa31eb1=_0xe1bb95[_0x9aad4(0xab)],_0xc49cac=_0xd0ade5[_0x9aad4(0xa5)];let _0x91ae87=_0xd0ade5[_0x9aad4(0xa5)]+_0xd0ade5['limit'],_0xfae727;return _0x91ae87>=_0xa31eb1?(_0x91ae87=_0xa31eb1,_0xfae727=0xc8):_0xfae727=0xce,_0x56c121[_0x9aad4(0xb2)](_0xfae727),_0x56c121[_0x9aad4(0x88)](_0x9aad4(0x8c),_0xc49cac+'-'+_0x91ae87+'/'+_0xa31eb1)['json'](_0xe1bb95);}return null;};}function saveUpdates(_0x307749){return function(_0x5ab2ac){const _0x15a42b=a866_0x3471;if(_0x5ab2ac)return _0x5ab2ac['update'](_0x307749)[_0x15a42b(0xac)](function(_0x555951){return _0x555951;});return null;};}function removeEntity(_0x941702){return function(_0xedf0cf){const _0x2931fc=a866_0x3471;if(_0xedf0cf)return _0xedf0cf['destroy']()[_0x2931fc(0xac)](function(){const _0x228bd0=_0x2931fc;_0x941702[_0x228bd0(0xb2)](0xcc)['end']();});};}function handleEntityNotFound(_0x38a9e2){return function(_0x43cac1){return!_0x43cac1&&_0x38a9e2['sendStatus'](0x194),_0x43cac1;};}function handleError(_0x52b3a6,_0x2c8116){return _0x2c8116=_0x2c8116||0x1f4,function(_0x1c7bd4){const _0x29fd86=a866_0x3471;logger[_0x29fd86(0x9f)](_0x1c7bd4['stack']),_0x1c7bd4[_0x29fd86(0xb5)]&&delete _0x1c7bd4[_0x29fd86(0xb5)],_0x52b3a6[_0x29fd86(0xb2)](_0x2c8116)[_0x29fd86(0x95)](_0x1c7bd4);};}exports[a866_0x44dea3(0x8b)]=function(_0x2eba4b,_0x538cde){const _0x4adb9d=a866_0x44dea3;let _0x1efd1d={};const _0x5e683d={},_0x2eb4db={'count':0x0,'rows':[]},_0x3cd405=_[_0x4adb9d(0x94)](db[_0x4adb9d(0xa3)][_0x4adb9d(0x9e)],function(_0x413c3e){const _0x50c694=_0x4adb9d;return{'name':_0x413c3e['fieldName'],'type':_0x413c3e['type'][_0x50c694(0x83)]};});_0x5e683d['model']=_[_0x4adb9d(0x94)](_0x3cd405,'name'),_0x5e683d[_0x4adb9d(0xa9)]=_[_0x4adb9d(0xb4)](_0x2eba4b['query']),_0x5e683d[_0x4adb9d(0x89)]=_[_0x4adb9d(0xb6)](_0x5e683d[_0x4adb9d(0x9a)],_0x5e683d[_0x4adb9d(0xa9)]),_0x1efd1d['attributes']=_[_0x4adb9d(0xb6)](_0x5e683d[_0x4adb9d(0x9a)],qs['fields'](_0x2eba4b[_0x4adb9d(0xa9)][_0x4adb9d(0x97)])),_0x1efd1d['attributes']=_0x1efd1d[_0x4adb9d(0x8e)][_0x4adb9d(0xb1)]?_0x1efd1d[_0x4adb9d(0x8e)]:_0x5e683d[_0x4adb9d(0x9a)];typeof _0x2eba4b['query'][_0x4adb9d(0x90)]===_0x4adb9d(0x92)&&(_0x1efd1d[_0x4adb9d(0x85)]=qs[_0x4adb9d(0x85)](_0x2eba4b[_0x4adb9d(0xa9)][_0x4adb9d(0x85)]),_0x1efd1d[_0x4adb9d(0xa5)]=qs['offset'](_0x2eba4b['query']['offset']));_0x1efd1d[_0x4adb9d(0x87)]=qs[_0x4adb9d(0xa2)](_0x2eba4b[_0x4adb9d(0xa9)]['sort']),_0x1efd1d['where']=qs[_0x4adb9d(0x89)](_[_0x4adb9d(0x9c)](_0x2eba4b[_0x4adb9d(0xa9)],_0x5e683d[_0x4adb9d(0x89)]),_0x3cd405);_0x2eba4b['query'][_0x4adb9d(0xa6)]&&(_0x1efd1d[_0x4adb9d(0xa7)]=_[_0x4adb9d(0x8d)](_0x1efd1d[_0x4adb9d(0xa7)],{[Op['or']]:_['map'](_0x3cd405,function(_0x1516dc){const _0x49850a=_0x4adb9d;if(_0x1516dc[_0x49850a(0xb0)]!==_0x49850a(0x9b)){const _0xc31c14={};return _0xc31c14[_0x1516dc['name']]={[Op[_0x49850a(0x93)]]:'%'+_0x2eba4b[_0x49850a(0xa9)]['filter']+'%'},_0xc31c14;}})}));_0x1efd1d=_[_0x4adb9d(0x8d)]({},_0x1efd1d,_0x2eba4b[_0x4adb9d(0x9d)]);const _0x110f73={'where':_0x1efd1d[_0x4adb9d(0xa7)]};return db['VoiceDialReport'][_0x4adb9d(0xab)](_0x110f73)[_0x4adb9d(0xac)](function(_0x34a24c){const _0xd288b9=_0x4adb9d;return _0x2eb4db[_0xd288b9(0xab)]=_0x34a24c,_0x2eba4b[_0xd288b9(0xa9)][_0xd288b9(0xaa)]&&(_0x1efd1d[_0xd288b9(0xae)]=[{'all':!![]}]),db['VoiceDialReport'][_0xd288b9(0xad)](_0x1efd1d);})[_0x4adb9d(0xac)](function(_0x54973b){const _0x5c4c82=_0x4adb9d;return _0x2eb4db[_0x5c4c82(0x91)]=_0x54973b,_0x2eb4db;})[_0x4adb9d(0xac)](respondWithFilteredResult(_0x538cde,_0x1efd1d))[_0x4adb9d(0x98)](handleError(_0x538cde,null));},exports[a866_0x44dea3(0x96)]=function(_0x5c149d,_0x343899){const _0x591252=a866_0x44dea3;let _0x1bf3cc={'raw':!![],'where':{'id':_0x5c149d[_0x591252(0x86)]['id']}};const _0x42b431={};return _0x42b431[_0x591252(0x9a)]=_['keys'](db['VoiceDialReport'][_0x591252(0x9e)]),_0x42b431[_0x591252(0xa9)]=_[_0x591252(0xb4)](_0x5c149d[_0x591252(0xa9)]),_0x42b431['filters']=_[_0x591252(0xb6)](_0x42b431['model'],_0x42b431[_0x591252(0xa9)]),_0x1bf3cc[_0x591252(0x8e)]=_[_0x591252(0xb6)](_0x42b431['model'],qs[_0x591252(0x97)](_0x5c149d[_0x591252(0xa9)]['fields'])),_0x1bf3cc[_0x591252(0x8e)]=_0x1bf3cc[_0x591252(0x8e)][_0x591252(0xb1)]?_0x1bf3cc[_0x591252(0x8e)]:_0x42b431[_0x591252(0x9a)],_0x5c149d[_0x591252(0xa9)][_0x591252(0xaa)]&&(_0x1bf3cc[_0x591252(0xae)]=[{'all':!![]}]),_0x1bf3cc=_[_0x591252(0x8d)]({},_0x1bf3cc,_0x5c149d[_0x591252(0x9d)]),db['VoiceDialReport'][_0x591252(0xb7)](_0x1bf3cc)['then'](handleEntityNotFound(_0x343899,null))[_0x591252(0xac)](respondWithResult(_0x343899,null))[_0x591252(0x98)](handleError(_0x343899,null));},exports[a866_0x44dea3(0xa8)]=function(_0x5ba263,_0x369115){const _0x4cd3bd=a866_0x44dea3;return db[_0x4cd3bd(0xa3)][_0x4cd3bd(0xa8)](_0x5ba263[_0x4cd3bd(0xb3)],{})[_0x4cd3bd(0xac)](respondWithResult(_0x369115,0xc9))[_0x4cd3bd(0x98)](handleError(_0x369115,null));},exports[a866_0x44dea3(0xa0)]=function(_0x2a8989,_0x4600f9){const _0x5d98f2=a866_0x44dea3;return _0x2a8989[_0x5d98f2(0xb3)]['id']&&delete _0x2a8989[_0x5d98f2(0xb3)]['id'],db[_0x5d98f2(0xa3)]['findOne']({'where':{'id':_0x2a8989[_0x5d98f2(0x86)]['id']}})[_0x5d98f2(0xac)](handleEntityNotFound(_0x4600f9,null))[_0x5d98f2(0xac)](saveUpdates(_0x2a8989[_0x5d98f2(0xb3)],null))['then'](respondWithResult(_0x4600f9,null))['catch'](handleError(_0x4600f9,null));},exports[a866_0x44dea3(0xa4)]=function(_0x47975d,_0x5f5d6f){const _0x20d399=a866_0x44dea3;return db[_0x20d399(0xa3)][_0x20d399(0xb7)]({'where':{'id':_0x47975d['params']['id']}})[_0x20d399(0xac)](handleEntityNotFound(_0x5f5d6f,null))[_0x20d399(0xac)](removeEntity(_0x5f5d6f,null))['catch'](handleError(_0x5f5d6f,null));},exports[a866_0x44dea3(0xa1)]=function(_0x57dfdb,_0x6d0d2c){const _0x4695b1=a866_0x44dea3;return db[_0x4695b1(0xa3)][_0x4695b1(0xa1)]()[_0x4695b1(0xac)](respondWithResult(_0x6d0d2c,null))[_0x4695b1(0x98)](handleError(_0x6d0d2c,null));}; \ No newline at end of file +const a866_0x2ed9=['status','keys','attributes','VIRTUAL','filter','catch','api','intersection','params','pick','filters','fields','set','query','include','map','name','create','describe','nolimit','merge','sendStatus','stack','error','show','like','limit','findOne','count','destroy','index','sort','includeAll','Content-Range','where','findAll','lodash','../../config/logger','rawAttributes','update','body','send','options','json','offset','VoiceDialReport','../../mysqldb','end','then','model','fieldName','length'];(function(_0x2ef35a,_0x1254f7){const _0x2ed981=function(_0x18f9cf){while(--_0x18f9cf){_0x2ef35a['push'](_0x2ef35a['shift']());}};_0x2ed981(++_0x1254f7);}(a866_0x2ed9,0xe9));const a866_0x18f9=function(_0x2ef35a,_0x1254f7){_0x2ef35a=_0x2ef35a-0x1a8;let _0x2ed981=a866_0x2ed9[_0x2ef35a];return _0x2ed981;};const a866_0x4c2da1=a866_0x18f9;'use strict';const _=require(a866_0x4c2da1(0x1b3)),qs=require('../../components/parsers/qs'),logger=require(a866_0x4c2da1(0x1b4))(a866_0x4c2da1(0x1c9)),{db}=require(a866_0x4c2da1(0x1bd)),{Op}=require('sequelize');function respondWithResult(_0x30c0c6,_0x4a72b5){return _0x4a72b5=_0x4a72b5||0xc8,function(_0x46eecb){const _0x51b358=a866_0x18f9;if(_0x46eecb)return _0x30c0c6[_0x51b358(0x1c3)](_0x4a72b5)[_0x51b358(0x1ba)](_0x46eecb);};}function respondWithFilteredResult(_0x37bfae,_0x67a776){return function(_0x1abff6){const _0x4416d1=a866_0x18f9;if(_0x1abff6){const _0x1d5cdc=_0x1abff6[_0x4416d1(0x1ab)],_0x813c19=_0x67a776[_0x4416d1(0x1bb)];let _0x3d876b=_0x67a776[_0x4416d1(0x1bb)]+_0x67a776[_0x4416d1(0x1a9)],_0x3cf395;return _0x3d876b>=_0x1d5cdc?(_0x3d876b=_0x1d5cdc,_0x3cf395=0xc8):_0x3cf395=0xce,_0x37bfae[_0x4416d1(0x1c3)](_0x3cf395),_0x37bfae[_0x4416d1(0x1cf)](_0x4416d1(0x1b0),_0x813c19+'-'+_0x3d876b+'/'+_0x1d5cdc)[_0x4416d1(0x1ba)](_0x1abff6);}return null;};}function saveUpdates(_0x19db17){return function(_0xe9007a){const _0x4f5c1b=a866_0x18f9;if(_0xe9007a)return _0xe9007a[_0x4f5c1b(0x1b6)](_0x19db17)['then'](function(_0x5249ab){return _0x5249ab;});return null;};}function removeEntity(_0x3c4e9e){return function(_0x635e3e){const _0x3f73a2=a866_0x18f9;if(_0x635e3e)return _0x635e3e[_0x3f73a2(0x1ac)]()['then'](function(){const _0x256b4d=_0x3f73a2;_0x3c4e9e['status'](0xcc)[_0x256b4d(0x1be)]();});};}function handleEntityNotFound(_0x2b98be){return function(_0x4384d3){const _0x14a544=a866_0x18f9;return!_0x4384d3&&_0x2b98be[_0x14a544(0x1d8)](0x194),_0x4384d3;};}function handleError(_0x5179f2,_0x4264d6){return _0x4264d6=_0x4264d6||0x1f4,function(_0x29ab45){const _0x264cf2=a866_0x18f9;logger[_0x264cf2(0x1da)](_0x29ab45[_0x264cf2(0x1d9)]),_0x29ab45[_0x264cf2(0x1d3)]&&delete _0x29ab45[_0x264cf2(0x1d3)],_0x5179f2[_0x264cf2(0x1c3)](_0x4264d6)[_0x264cf2(0x1b8)](_0x29ab45);};}exports[a866_0x4c2da1(0x1ad)]=function(_0x2a4623,_0x5248c5){const _0x4ae9d8=a866_0x4c2da1;let _0x562575={};const _0x3a2ba4={},_0x2f5664={'count':0x0,'rows':[]},_0x27cb87=_[_0x4ae9d8(0x1d2)](db['VoiceDialReport'][_0x4ae9d8(0x1b5)],function(_0x166771){const _0x4156f2=_0x4ae9d8;return{'name':_0x166771[_0x4156f2(0x1c1)],'type':_0x166771['type']['key']};});_0x3a2ba4['model']=_[_0x4ae9d8(0x1d2)](_0x27cb87,'name'),_0x3a2ba4[_0x4ae9d8(0x1d0)]=_[_0x4ae9d8(0x1c4)](_0x2a4623['query']),_0x3a2ba4[_0x4ae9d8(0x1cd)]=_[_0x4ae9d8(0x1ca)](_0x3a2ba4[_0x4ae9d8(0x1c0)],_0x3a2ba4['query']),_0x562575[_0x4ae9d8(0x1c5)]=_['intersection'](_0x3a2ba4['model'],qs[_0x4ae9d8(0x1ce)](_0x2a4623[_0x4ae9d8(0x1d0)][_0x4ae9d8(0x1ce)])),_0x562575[_0x4ae9d8(0x1c5)]=_0x562575[_0x4ae9d8(0x1c5)]['length']?_0x562575[_0x4ae9d8(0x1c5)]:_0x3a2ba4[_0x4ae9d8(0x1c0)];typeof _0x2a4623['query'][_0x4ae9d8(0x1d6)]==='undefined'&&(_0x562575[_0x4ae9d8(0x1a9)]=qs['limit'](_0x2a4623['query']['limit']),_0x562575['offset']=qs[_0x4ae9d8(0x1bb)](_0x2a4623[_0x4ae9d8(0x1d0)][_0x4ae9d8(0x1bb)]));_0x562575['order']=qs['sort'](_0x2a4623[_0x4ae9d8(0x1d0)][_0x4ae9d8(0x1ae)]),_0x562575[_0x4ae9d8(0x1b1)]=qs[_0x4ae9d8(0x1cd)](_[_0x4ae9d8(0x1cc)](_0x2a4623[_0x4ae9d8(0x1d0)],_0x3a2ba4[_0x4ae9d8(0x1cd)]),_0x27cb87);_0x2a4623[_0x4ae9d8(0x1d0)]['filter']&&(_0x562575[_0x4ae9d8(0x1b1)]=_[_0x4ae9d8(0x1d7)](_0x562575[_0x4ae9d8(0x1b1)],{[Op['or']]:_['map'](_0x27cb87,function(_0x380a51){const _0x2fc575=_0x4ae9d8;if(_0x380a51['type']!==_0x2fc575(0x1c6)){const _0x42356d={};return _0x42356d[_0x380a51[_0x2fc575(0x1d3)]]={[Op[_0x2fc575(0x1a8)]]:'%'+_0x2a4623['query'][_0x2fc575(0x1c7)]+'%'},_0x42356d;}})}));_0x562575=_[_0x4ae9d8(0x1d7)]({},_0x562575,_0x2a4623[_0x4ae9d8(0x1b9)]);const _0x5362ea={'where':_0x562575[_0x4ae9d8(0x1b1)]};return db['VoiceDialReport'][_0x4ae9d8(0x1ab)](_0x5362ea)[_0x4ae9d8(0x1bf)](function(_0x26c0fd){const _0x57242a=_0x4ae9d8;return _0x2f5664[_0x57242a(0x1ab)]=_0x26c0fd,_0x2a4623[_0x57242a(0x1d0)][_0x57242a(0x1af)]&&(_0x562575[_0x57242a(0x1d1)]=[{'all':!![]}]),db['VoiceDialReport'][_0x57242a(0x1b2)](_0x562575);})[_0x4ae9d8(0x1bf)](function(_0x38a876){return _0x2f5664['rows']=_0x38a876,_0x2f5664;})[_0x4ae9d8(0x1bf)](respondWithFilteredResult(_0x5248c5,_0x562575))[_0x4ae9d8(0x1c8)](handleError(_0x5248c5,null));},exports[a866_0x4c2da1(0x1db)]=function(_0xf1977a,_0x2b9d4b){const _0x403e0c=a866_0x4c2da1;let _0xb1d644={'raw':!![],'where':{'id':_0xf1977a[_0x403e0c(0x1cb)]['id']}};const _0x14ee53={};return _0x14ee53[_0x403e0c(0x1c0)]=_[_0x403e0c(0x1c4)](db[_0x403e0c(0x1bc)][_0x403e0c(0x1b5)]),_0x14ee53[_0x403e0c(0x1d0)]=_[_0x403e0c(0x1c4)](_0xf1977a[_0x403e0c(0x1d0)]),_0x14ee53[_0x403e0c(0x1cd)]=_[_0x403e0c(0x1ca)](_0x14ee53['model'],_0x14ee53[_0x403e0c(0x1d0)]),_0xb1d644[_0x403e0c(0x1c5)]=_['intersection'](_0x14ee53['model'],qs['fields'](_0xf1977a[_0x403e0c(0x1d0)][_0x403e0c(0x1ce)])),_0xb1d644[_0x403e0c(0x1c5)]=_0xb1d644[_0x403e0c(0x1c5)][_0x403e0c(0x1c2)]?_0xb1d644[_0x403e0c(0x1c5)]:_0x14ee53['model'],_0xf1977a[_0x403e0c(0x1d0)][_0x403e0c(0x1af)]&&(_0xb1d644['include']=[{'all':!![]}]),_0xb1d644=_[_0x403e0c(0x1d7)]({},_0xb1d644,_0xf1977a[_0x403e0c(0x1b9)]),db[_0x403e0c(0x1bc)]['findOne'](_0xb1d644)[_0x403e0c(0x1bf)](handleEntityNotFound(_0x2b9d4b,null))[_0x403e0c(0x1bf)](respondWithResult(_0x2b9d4b,null))[_0x403e0c(0x1c8)](handleError(_0x2b9d4b,null));},exports[a866_0x4c2da1(0x1d4)]=function(_0x3f764d,_0x21c4b3){const _0x402a3f=a866_0x4c2da1;return db[_0x402a3f(0x1bc)][_0x402a3f(0x1d4)](_0x3f764d[_0x402a3f(0x1b7)],{})[_0x402a3f(0x1bf)](respondWithResult(_0x21c4b3,0xc9))[_0x402a3f(0x1c8)](handleError(_0x21c4b3,null));},exports['update']=function(_0x4e0543,_0xe0ee8d){const _0x36f513=a866_0x4c2da1;return _0x4e0543[_0x36f513(0x1b7)]['id']&&delete _0x4e0543[_0x36f513(0x1b7)]['id'],db[_0x36f513(0x1bc)][_0x36f513(0x1aa)]({'where':{'id':_0x4e0543[_0x36f513(0x1cb)]['id']}})[_0x36f513(0x1bf)](handleEntityNotFound(_0xe0ee8d,null))['then'](saveUpdates(_0x4e0543[_0x36f513(0x1b7)],null))['then'](respondWithResult(_0xe0ee8d,null))['catch'](handleError(_0xe0ee8d,null));},exports[a866_0x4c2da1(0x1ac)]=function(_0x73462f,_0x43efff){const _0x3cbf41=a866_0x4c2da1;return db[_0x3cbf41(0x1bc)][_0x3cbf41(0x1aa)]({'where':{'id':_0x73462f['params']['id']}})[_0x3cbf41(0x1bf)](handleEntityNotFound(_0x43efff,null))[_0x3cbf41(0x1bf)](removeEntity(_0x43efff,null))[_0x3cbf41(0x1c8)](handleError(_0x43efff,null));},exports[a866_0x4c2da1(0x1d5)]=function(_0x5252c3,_0x21811e){const _0x624667=a866_0x4c2da1;return db['VoiceDialReport'][_0x624667(0x1d5)]()['then'](respondWithResult(_0x21811e,null))[_0x624667(0x1c8)](handleError(_0x21811e,null));}; \ No newline at end of file diff --git a/server/api/voiceDialReport/voiceDialReport.model.js b/server/api/voiceDialReport/voiceDialReport.model.js index d648a3d..7ffa361 100644 --- a/server/api/voiceDialReport/voiceDialReport.model.js +++ b/server/api/voiceDialReport/voiceDialReport.model.js @@ -1 +1 @@ -const a867_0x1209=['VoiceDialReport','function','init','sequelize','./voiceDialReport.attributes','exports','./voiceDialReport.options'];(function(_0x4009b8,_0x1475df){const _0x120957=function(_0x2a0595){while(--_0x2a0595){_0x4009b8['push'](_0x4009b8['shift']());}};_0x120957(++_0x1475df);}(a867_0x1209,0xa0));const a867_0x2a05=function(_0x4009b8,_0x1475df){_0x4009b8=_0x4009b8-0xa4;let _0x120957=a867_0x1209[_0x4009b8];return _0x120957;};const a867_0x5cc5c6=a867_0x2a05;'use strict';const {Model}=require(a867_0x5cc5c6(0xa8)),{attributes}=require(a867_0x5cc5c6(0xa9)),{options}=require(a867_0x5cc5c6(0xa4));class VoiceDialReport extends Model{}function init(_0x392780,_0x588ca1){const _0x4ff1e0=a867_0x5cc5c6,_0x88f133=options(_0x392780),_0x5770d8=typeof _0x588ca1===_0x4ff1e0(0xa6)?_0x588ca1(_0x88f133):_0x88f133;return VoiceDialReport['init'](attributes,_0x5770d8),VoiceDialReport;}module[a867_0x5cc5c6(0xaa)][a867_0x5cc5c6(0xa5)]=VoiceDialReport,module[a867_0x5cc5c6(0xaa)][a867_0x5cc5c6(0xa7)]=init; \ No newline at end of file +const a867_0x58dc=['init','exports','./voiceDialReport.attributes','sequelize'];(function(_0xff224b,_0x7fdba7){const _0x58dc49=function(_0xc4bf1d){while(--_0xc4bf1d){_0xff224b['push'](_0xff224b['shift']());}};_0x58dc49(++_0x7fdba7);}(a867_0x58dc,0x87));const a867_0xc4bf=function(_0xff224b,_0x7fdba7){_0xff224b=_0xff224b-0x9c;let _0x58dc49=a867_0x58dc[_0xff224b];return _0x58dc49;};const a867_0x2f5247=a867_0xc4bf;'use strict';const {Model}=require(a867_0x2f5247(0x9c)),{attributes}=require(a867_0x2f5247(0x9f)),{options}=require('./voiceDialReport.options');class VoiceDialReport extends Model{}function init(_0x12cb87,_0x40e7eb){const _0x3e90e6=a867_0x2f5247,_0x4316e5=options(_0x12cb87),_0x2ff1a5=typeof _0x40e7eb==='function'?_0x40e7eb(_0x4316e5):_0x4316e5;return VoiceDialReport[_0x3e90e6(0x9d)](attributes,_0x2ff1a5),VoiceDialReport;}module[a867_0x2f5247(0x9e)]['VoiceDialReport']=VoiceDialReport,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/voiceDialReport/voiceDialReport.options.js b/server/api/voiceDialReport/voiceDialReport.options.js index cc7a995..8afa3db 100644 --- a/server/api/voiceDialReport/voiceDialReport.options.js +++ b/server/api/voiceDialReport/voiceDialReport.options.js @@ -1 +1 @@ -var a868_0x349d=['report_dial','exports','options'];(function(_0x46f14c,_0x5629a1){var _0x349dd4=function(_0x1881f6){while(--_0x1881f6){_0x46f14c['push'](_0x46f14c['shift']());}};_0x349dd4(++_0x5629a1);}(a868_0x349d,0xa7));var a868_0x1881=function(_0x46f14c,_0x5629a1){_0x46f14c=_0x46f14c-0x148;var _0x349dd4=a868_0x349d[_0x46f14c];return _0x349dd4;};var a868_0x3b9749=a868_0x1881;function options(_0x3ca449){var _0x1b9e34=a868_0x1881;return{'sequelize':_0x3ca449,'tableName':_0x1b9e34(0x149),'paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]};}module[a868_0x3b9749(0x14a)][a868_0x3b9749(0x148)]=options; \ No newline at end of file +var a868_0x4e34=['report_dial','exports','uniqueid','options'];(function(_0x2ee4a2,_0x2c83de){var _0x4e34d2=function(_0x262481){while(--_0x262481){_0x2ee4a2['push'](_0x2ee4a2['shift']());}};_0x4e34d2(++_0x2c83de);}(a868_0x4e34,0x16f));var a868_0x2624=function(_0x2ee4a2,_0x2c83de){_0x2ee4a2=_0x2ee4a2-0xa2;var _0x4e34d2=a868_0x4e34[_0x2ee4a2];return _0x4e34d2;};var a868_0x25cf33=a868_0x2624;function options(_0x3f722e){var _0x33d98d=a868_0x2624;return{'sequelize':_0x3f722e,'tableName':_0x33d98d(0xa3),'paranoid':![],'indexes':[{'fields':[_0x33d98d(0xa5)]}],'timestamps':!![]};}module[a868_0x25cf33(0xa4)][a868_0x25cf33(0xa2)]=options; \ No newline at end of file diff --git a/server/api/voiceDialReport/voiceDialReport.rpc.js b/server/api/voiceDialReport/voiceDialReport.rpc.js index f0a02a0..81cc172 100644 --- a/server/api/voiceDialReport/voiceDialReport.rpc.js +++ b/server/api/voiceDialReport/voiceDialReport.rpc.js @@ -1 +1 @@ -const a869_0x1602=['catch','stringify','update','CreateVoiceDialReport','debug','limit','info','UpdateVoiceDialReport','attributes','rpc','error','options','where','then','message','VoiceDialReport','body','raw','../../config/logger','create'];(function(_0x96b7ac,_0x2761d2){const _0x1602ca=function(_0xc5b48e){while(--_0xc5b48e){_0x96b7ac['push'](_0x96b7ac['shift']());}};_0x1602ca(++_0x2761d2);}(a869_0x1602,0xda));const a869_0xc5b4=function(_0x96b7ac,_0x2761d2){_0x96b7ac=_0x96b7ac-0xed;let _0x1602ca=a869_0x1602[_0x96b7ac];return _0x1602ca;};const a869_0x3a922f=a869_0xc5b4;'use strict';const db=require('../../mysqldb')['db'],logger=require(a869_0x3a922f(0xed))(a869_0x3a922f(0xf8));exports['CreateVoiceDialReport']=function(_0x5cf3ad){const _0x349785=this;return new Promise(function(_0x182f4c,_0x5811f1){const _0x443f59=a869_0xc5b4;return db['VoiceDialReport'][_0x443f59(0xee)](_0x5cf3ad[_0x443f59(0xff)],{'raw':_0x5cf3ad[_0x443f59(0xfa)]?_0x5cf3ad[_0x443f59(0xfa)][_0x443f59(0x100)]===undefined?!![]:![]:!![]})[_0x443f59(0xfc)](function(_0x5a866c){const _0x492664=_0x443f59;logger[_0x492664(0xf5)](_0x492664(0xf2),_0x5cf3ad),logger[_0x492664(0xf3)](_0x492664(0xf2),_0x5cf3ad,JSON[_0x492664(0xf0)](_0x5a866c)),_0x182f4c(_0x5a866c);})[_0x443f59(0xef)](function(_0x4adfd8){const _0xa743bd=_0x443f59;logger[_0xa743bd(0xf9)](_0xa743bd(0xf2),_0x4adfd8[_0xa743bd(0xfd)],_0x5cf3ad),_0x5811f1(_0x349785[_0xa743bd(0xf9)](0x1f4,_0x4adfd8['message']));});});},exports[a869_0x3a922f(0xf6)]=function(_0x5b5069){const _0x49c609=this;return new Promise(function(_0x3c3856,_0x51f5fa){const _0x550fc4=a869_0xc5b4;return db[_0x550fc4(0xfe)][_0x550fc4(0xf1)](_0x5b5069['body'],{'raw':_0x5b5069[_0x550fc4(0xfa)]?_0x5b5069['options'][_0x550fc4(0x100)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5b5069[_0x550fc4(0xfa)]?_0x5b5069['options'][_0x550fc4(0xfb)]||null:null,'attributes':_0x5b5069[_0x550fc4(0xfa)]?_0x5b5069[_0x550fc4(0xfa)][_0x550fc4(0xf7)]||null:null,'limit':_0x5b5069[_0x550fc4(0xfa)]?_0x5b5069[_0x550fc4(0xfa)][_0x550fc4(0xf4)]||null:null})['then'](function(_0x36f5c0){const _0x28457c=_0x550fc4;logger['info']('UpdateVoiceDialReport',_0x5b5069),logger[_0x28457c(0xf3)]('UpdateVoiceDialReport',_0x5b5069,JSON['stringify'](_0x36f5c0)),_0x3c3856(_0x36f5c0);})[_0x550fc4(0xef)](function(_0x3cf1e9){const _0x2ef934=_0x550fc4;logger[_0x2ef934(0xf9)]('UpdateVoiceDialReport',_0x3cf1e9[_0x2ef934(0xfd)],_0x5b5069),_0x51f5fa(_0x49c609[_0x2ef934(0xf9)](0x1f4,_0x3cf1e9[_0x2ef934(0xfd)]));});});}; \ No newline at end of file +const a869_0x3f93=['UpdateVoiceDialReport','raw','options','catch','attributes','../../config/logger','debug','CreateVoiceDialReport','create','VoiceDialReport','limit','body','where','message','stringify','then','rpc','error'];(function(_0x21c6dd,_0x213af9){const _0x3f932f=function(_0x189bbe){while(--_0x189bbe){_0x21c6dd['push'](_0x21c6dd['shift']());}};_0x3f932f(++_0x213af9);}(a869_0x3f93,0x13e));const a869_0x189b=function(_0x21c6dd,_0x213af9){_0x21c6dd=_0x21c6dd-0x1b0;let _0x3f932f=a869_0x3f93[_0x21c6dd];return _0x3f932f;};const a869_0x4a6138=a869_0x189b;'use strict';const db=require('../../mysqldb')['db'],logger=require(a869_0x4a6138(0x1bb))(a869_0x4a6138(0x1b4));exports['CreateVoiceDialReport']=function(_0x429ba8){const _0x43984a=this;return new Promise(function(_0x2015ce,_0x291e55){const _0x509c7f=a869_0x189b;return db[_0x509c7f(0x1bf)][_0x509c7f(0x1be)](_0x429ba8['body'],{'raw':_0x429ba8[_0x509c7f(0x1b8)]?_0x429ba8[_0x509c7f(0x1b8)][_0x509c7f(0x1b7)]===undefined?!![]:![]:!![]})[_0x509c7f(0x1b3)](function(_0x37b7fd){const _0x583083=_0x509c7f;logger['info'](_0x583083(0x1bd),_0x429ba8),logger[_0x583083(0x1bc)](_0x583083(0x1bd),_0x429ba8,JSON['stringify'](_0x37b7fd)),_0x2015ce(_0x37b7fd);})['catch'](function(_0x136852){const _0x143c77=_0x509c7f;logger[_0x143c77(0x1b5)](_0x143c77(0x1bd),_0x136852[_0x143c77(0x1b1)],_0x429ba8),_0x291e55(_0x43984a[_0x143c77(0x1b5)](0x1f4,_0x136852[_0x143c77(0x1b1)]));});});},exports[a869_0x4a6138(0x1b6)]=function(_0x5ae556){const _0xe98de=this;return new Promise(function(_0x145091,_0x3eae0c){const _0x5bbbeb=a869_0x189b;return db[_0x5bbbeb(0x1bf)]['update'](_0x5ae556[_0x5bbbeb(0x1c1)],{'raw':_0x5ae556[_0x5bbbeb(0x1b8)]?_0x5ae556['options'][_0x5bbbeb(0x1b7)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5ae556['options']?_0x5ae556[_0x5bbbeb(0x1b8)][_0x5bbbeb(0x1b0)]||null:null,'attributes':_0x5ae556[_0x5bbbeb(0x1b8)]?_0x5ae556[_0x5bbbeb(0x1b8)][_0x5bbbeb(0x1ba)]||null:null,'limit':_0x5ae556['options']?_0x5ae556[_0x5bbbeb(0x1b8)][_0x5bbbeb(0x1c0)]||null:null})['then'](function(_0x230319){const _0x2c98c8=_0x5bbbeb;logger['info'](_0x2c98c8(0x1b6),_0x5ae556),logger['debug']('UpdateVoiceDialReport',_0x5ae556,JSON[_0x2c98c8(0x1b2)](_0x230319)),_0x145091(_0x230319);})[_0x5bbbeb(0x1b9)](function(_0x49b467){const _0x38a712=_0x5bbbeb;logger[_0x38a712(0x1b5)](_0x38a712(0x1b6),_0x49b467[_0x38a712(0x1b1)],_0x5ae556),_0x3eae0c(_0xe98de[_0x38a712(0x1b5)](0x1f4,_0x49b467[_0x38a712(0x1b1)]));});});}; \ No newline at end of file diff --git a/server/api/voiceExtension/index.js b/server/api/voiceExtension/index.js index 4387946..a0aca63 100644 --- a/server/api/voiceExtension/index.js +++ b/server/api/voiceExtension/index.js @@ -1 +1 @@ -const a870_0x2827=['show','../../components/auth/service','express','Router','destroy','exports','/:id','update','index','create','isAuthenticated','get','./voiceExtension.controller','/:id/applications','put','post','delete'];(function(_0xca6688,_0x5b61b4){const _0x282751=function(_0x5e0dde){while(--_0x5e0dde){_0xca6688['push'](_0xca6688['shift']());}};_0x282751(++_0x5b61b4);}(a870_0x2827,0xd6));const a870_0x5e0d=function(_0xca6688,_0x5b61b4){_0xca6688=_0xca6688-0x198;let _0x282751=a870_0x2827[_0xca6688];return _0x282751;};const a870_0x26044e=a870_0x5e0d;'use strict';const express=require(a870_0x26044e(0x1a1)),router=express[a870_0x26044e(0x1a2)](),auth=require(a870_0x26044e(0x1a0)),controller=require(a870_0x26044e(0x19a));router[a870_0x26044e(0x199)]('/',auth[a870_0x26044e(0x198)](),controller[a870_0x26044e(0x1a7)]),router[a870_0x26044e(0x199)](a870_0x26044e(0x1a5),auth[a870_0x26044e(0x198)](),controller[a870_0x26044e(0x19f)]),router['post']('/',auth[a870_0x26044e(0x198)](),controller[a870_0x26044e(0x1a8)]),router[a870_0x26044e(0x19d)](a870_0x26044e(0x19b),auth[a870_0x26044e(0x198)](),controller['addApplications']),router[a870_0x26044e(0x19c)](a870_0x26044e(0x1a5),auth['isAuthenticated'](),controller[a870_0x26044e(0x1a6)]),router[a870_0x26044e(0x19e)]('/:id',auth[a870_0x26044e(0x198)](),controller[a870_0x26044e(0x1a3)]),module[a870_0x26044e(0x1a4)]=router; \ No newline at end of file +const a870_0xffd3=['Router','/:id','get','destroy','express','post','put','addApplications','isAuthenticated','./voiceExtension.controller','show','../../components/auth/service','/:id/applications'];(function(_0x1c387e,_0x4095ad){const _0xffd3a6=function(_0x434c2d){while(--_0x434c2d){_0x1c387e['push'](_0x1c387e['shift']());}};_0xffd3a6(++_0x4095ad);}(a870_0xffd3,0xbf));const a870_0x434c=function(_0x1c387e,_0x4095ad){_0x1c387e=_0x1c387e-0x14e;let _0xffd3a6=a870_0xffd3[_0x1c387e];return _0xffd3a6;};const a870_0x4553b2=a870_0x434c;'use strict';const express=require(a870_0x4553b2(0x156)),router=express[a870_0x4553b2(0x152)](),auth=require(a870_0x4553b2(0x150)),controller=require(a870_0x4553b2(0x14e));router[a870_0x4553b2(0x154)]('/',auth[a870_0x4553b2(0x15a)](),controller['index']),router['get'](a870_0x4553b2(0x153),auth[a870_0x4553b2(0x15a)](),controller[a870_0x4553b2(0x14f)]),router[a870_0x4553b2(0x157)]('/',auth[a870_0x4553b2(0x15a)](),controller['create']),router[a870_0x4553b2(0x157)](a870_0x4553b2(0x151),auth[a870_0x4553b2(0x15a)](),controller[a870_0x4553b2(0x159)]),router[a870_0x4553b2(0x158)](a870_0x4553b2(0x153),auth[a870_0x4553b2(0x15a)](),controller['update']),router['delete'](a870_0x4553b2(0x153),auth[a870_0x4553b2(0x15a)](),controller[a870_0x4553b2(0x155)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.attributes.js b/server/api/voiceExtension/voiceExtension.attributes.js index eb62de6..504972a 100644 --- a/server/api/voiceExtension/voiceExtension.attributes.js +++ b/server/api/voiceExtension/voiceExtension.attributes.js @@ -1 +1 @@ -const a871_0xa485=['*,*,*,*','STRING','NoOp','exten','compositeIndex','inbound','ENUM','sequelize','wav','system','outbound','BOOLEAN','any','exports','INTEGER','internal','attributes','inbound-fax','outbound-fax','getDataValue'];(function(_0x4c2757,_0x5811e6){const _0xa4858=function(_0x1333d0){while(--_0x1333d0){_0x4c2757['push'](_0x4c2757['shift']());}};_0xa4858(++_0x5811e6);}(a871_0xa485,0x1d1));const a871_0x1333=function(_0x4c2757,_0x5811e6){_0x4c2757=_0x4c2757-0x103;let _0xa4858=a871_0xa485[_0x4c2757];return _0xa4858;};const a871_0x105056=a871_0x1333;'use strict';const {DataTypes}=require(a871_0x105056(0x105)),attributes={'context':{'type':DataTypes['STRING'],'allowNull':![],'unique':a871_0x105056(0x116),'validate':{'notEmpty':!![],'is':/[A-Za-z0-9._+*!\-[\]]+$/i}},'exten':{'type':DataTypes[a871_0x105056(0x113)],'allowNull':![],'unique':a871_0x105056(0x116)},'priority':{'type':DataTypes[a871_0x105056(0x113)],'allowNull':![],'defaultValue':'1','unique':'compositeIndex'},'tag':{'type':DataTypes[a871_0x105056(0x113)],'allowNull':![],'defaultValue':'--'},'app':{'type':DataTypes[a871_0x105056(0x113)],'allowNull':![],'defaultValue':a871_0x105056(0x114)},'appdata':{'type':DataTypes[a871_0x105056(0x113)](0x1000),'allowNull':!![],'defaultValue':''},'type':{'type':DataTypes[a871_0x105056(0x104)](a871_0x105056(0x103),a871_0x105056(0x108),a871_0x105056(0x10d),a871_0x105056(0x10f),a871_0x105056(0x110),a871_0x105056(0x107),a871_0x105056(0x10a)),'allowNull':![]},'description':{'type':DataTypes[a871_0x105056(0x113)]},'interval':{'type':DataTypes[a871_0x105056(0x113)],'allowNull':![],'defaultValue':a871_0x105056(0x112)},'IntervalId':{'type':DataTypes[a871_0x105056(0x10c)]},'isApp':{'type':DataTypes['BOOLEAN'],'allowNull':![],'defaultValue':![]},'appType':{'type':DataTypes['STRING'],'defaultValue':null},'callerID':{'type':DataTypes[a871_0x105056(0x113)],'allowNull':!![]},'record':{'type':DataTypes[a871_0x105056(0x109)],'defaultValue':![]},'cutdigits':{'type':DataTypes[a871_0x105056(0x10c)]},'recordingFormat':{'type':DataTypes[a871_0x105056(0x113)],'defaultValue':a871_0x105056(0x106)},'answer':{'type':DataTypes[a871_0x105056(0x109)],'defaultValue':!![]},'name':{'type':DataTypes['VIRTUAL'],'get':function(){const _0xa7e8b1=a871_0x105056;return this[_0xa7e8b1(0x111)](_0xa7e8b1(0x115));}}};module[a871_0x105056(0x10b)][a871_0x105056(0x10e)]=attributes; \ No newline at end of file +const a871_0x5920=['ENUM','STRING','exten','attributes','getDataValue','compositeIndex','INTEGER','internal','outbound','BOOLEAN','exports','VIRTUAL','outbound-fax'];(function(_0x1eae46,_0x5de47a){const _0x5920aa=function(_0x2dd9dd){while(--_0x2dd9dd){_0x1eae46['push'](_0x1eae46['shift']());}};_0x5920aa(++_0x5de47a);}(a871_0x5920,0xa0));const a871_0x2dd9=function(_0x1eae46,_0x5de47a){_0x1eae46=_0x1eae46-0xe6;let _0x5920aa=a871_0x5920[_0x1eae46];return _0x5920aa;};const a871_0x1c82fa=a871_0x2dd9;'use strict';const {DataTypes}=require('sequelize'),attributes={'context':{'type':DataTypes[a871_0x1c82fa(0xf0)],'allowNull':![],'unique':'compositeIndex','validate':{'notEmpty':!![],'is':/[A-Za-z0-9._+*!\-[\]]+$/i}},'exten':{'type':DataTypes['STRING'],'allowNull':![],'unique':a871_0x1c82fa(0xe7)},'priority':{'type':DataTypes[a871_0x1c82fa(0xf0)],'allowNull':![],'defaultValue':'1','unique':a871_0x1c82fa(0xe7)},'tag':{'type':DataTypes[a871_0x1c82fa(0xf0)],'allowNull':![],'defaultValue':'--'},'app':{'type':DataTypes[a871_0x1c82fa(0xf0)],'allowNull':![],'defaultValue':'NoOp'},'appdata':{'type':DataTypes[a871_0x1c82fa(0xf0)](0x1000),'allowNull':!![],'defaultValue':''},'type':{'type':DataTypes[a871_0x1c82fa(0xef)]('inbound',a871_0x1c82fa(0xea),a871_0x1c82fa(0xe9),'inbound-fax',a871_0x1c82fa(0xee),'system','any'),'allowNull':![]},'description':{'type':DataTypes['STRING']},'interval':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':'*,*,*,*'},'IntervalId':{'type':DataTypes['INTEGER']},'isApp':{'type':DataTypes[a871_0x1c82fa(0xeb)],'allowNull':![],'defaultValue':![]},'appType':{'type':DataTypes[a871_0x1c82fa(0xf0)],'defaultValue':null},'callerID':{'type':DataTypes[a871_0x1c82fa(0xf0)],'allowNull':!![]},'record':{'type':DataTypes[a871_0x1c82fa(0xeb)],'defaultValue':![]},'cutdigits':{'type':DataTypes[a871_0x1c82fa(0xe8)]},'recordingFormat':{'type':DataTypes['STRING'],'defaultValue':'wav'},'answer':{'type':DataTypes[a871_0x1c82fa(0xeb)],'defaultValue':!![]},'name':{'type':DataTypes[a871_0x1c82fa(0xed)],'get':function(){const _0x457345=a871_0x1c82fa;return this[_0x457345(0xe6)](_0x457345(0xf1));}}};module[a871_0x1c82fa(0xec)][a871_0x1c82fa(0xf2)]=attributes; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.controller.js b/server/api/voiceExtension/voiceExtension.controller.js index 842789d..d83e5fc 100644 --- a/server/api/voiceExtension/voiceExtension.controller.js +++ b/server/api/voiceExtension/voiceExtension.controller.js @@ -1 +1 @@ -const a872_0x1533=['create','../../config/logger','findAndCountAll','index','includeAll','ignore','lodash','outbound','end','user','attributes','userProfileId','Unable\x20to\x20retrieve\x20the\x20current\x20user','context','include','bulkCreate','VoiceExtensionId','find','offset','get','undefined','destroy','like','transaction','value','../../rediscache','name','where','cast(priority\x20as\x20unsigned)','cutdigits','InternalRoutes','../../mysqldb','set','./voiceExtension.socket','fields','OutboundRoutes','addApplications','api','body','VIRTUAL','status','inbound','fieldName','filters','catch','then','UserProfileResource','recordingFormat','rows','count','json','type','UserProfileSection','show','pick','exten','nolimit','startsWith','role','length','sendStatus','keys','query','findAll','concat','intersection','limit','error','includes','params','description','mandatoryDisposition','merge','Content-Range','rawAttributes','stack','filter','register','model','findOne','sequelize','update','InboundRoutes','sort','options','VoiceExtension','map'];(function(_0x441259,_0x3b0209){const _0x153312=function(_0x55cf76){while(--_0x55cf76){_0x441259['push'](_0x441259['shift']());}};_0x153312(++_0x3b0209);}(a872_0x1533,0x6e));const a872_0x55cf=function(_0x441259,_0x3b0209){_0x441259=_0x441259-0x1b9;let _0x153312=a872_0x1533[_0x441259];return _0x153312;};const a872_0x1ed7e9=a872_0x55cf;'use strict';const _=require(a872_0x1ed7e9(0x1ff)),qs=require('../../components/parsers/qs'),logger=require(a872_0x1ed7e9(0x1fa))(a872_0x1ed7e9(0x1c7)),{getSocket}=require(a872_0x1ed7e9(0x1bb)),socket=getSocket(),{db}=require(a872_0x1ed7e9(0x1c1)),{Op}=require(a872_0x1ed7e9(0x1f2));require(a872_0x1ed7e9(0x1c3))[a872_0x1ed7e9(0x1ef)](socket);function respondWithStatusCode(_0x32823f,_0xe043f4){return _0xe043f4=_0xe043f4||0xcc,function(_0x381898){const _0x2a97e9=a872_0x55cf;if(_0x381898)return _0x32823f['sendStatus'](_0xe043f4);return _0x32823f[_0x2a97e9(0x1ca)](_0xe043f4)['end']();};}function respondWithResult(_0x51c4a6,_0x331612){return _0x331612=_0x331612||0xc8,function(_0x2b7256){const _0x17d01a=a872_0x55cf;if(_0x2b7256)return _0x51c4a6[_0x17d01a(0x1ca)](_0x331612)[_0x17d01a(0x1d4)](_0x2b7256);};}function respondWithFilteredResult(_0x510baf,_0x5037a0){return function(_0x2efe57){const _0x1ed597=a872_0x55cf;if(_0x2efe57){const _0x2559fa=_0x2efe57[_0x1ed597(0x1d3)],_0x5e05fe=_0x5037a0[_0x1ed597(0x20b)];let _0x30b934=_0x5037a0[_0x1ed597(0x20b)]+_0x5037a0['limit'],_0x2cecbc;return _0x30b934>=_0x2559fa?(_0x30b934=_0x2559fa,_0x2cecbc=0xc8):_0x2cecbc=0xce,_0x510baf[_0x1ed597(0x1ca)](_0x2cecbc),_0x510baf[_0x1ed597(0x1c2)](_0x1ed597(0x1eb),_0x5e05fe+'-'+_0x30b934+'/'+_0x2559fa)[_0x1ed597(0x1d4)](_0x2efe57);}return null;};}function removeEntity(_0x141cc5){return function(_0x4736e1){const _0x219dcb=a872_0x55cf;if(_0x4736e1)return _0x4736e1[_0x219dcb(0x20e)]()[_0x219dcb(0x1cf)](function(){const _0xbcaadc=_0x219dcb,_0x3cb3aa=_0x4736e1[_0xbcaadc(0x20c)]({'plain':!![]}),_0x567332=[{'name':_0xbcaadc(0x1f4),'value':_0xbcaadc(0x1cb),'ignore':![]},{'name':_0xbcaadc(0x1c5),'value':_0xbcaadc(0x200),'ignore':![]},{'name':'InternalRoutes','value':'internal','ignore':![]}],_0x3b9a29=_(_0x567332)[_0xbcaadc(0x1ee)](_0xbcaadc(0x1fe))[_0xbcaadc(0x1f8)](_0xbcaadc(0x1ba))[_0xbcaadc(0x1ba)]();if(_[_0xbcaadc(0x1e6)](_0x3b9a29,_0x3cb3aa['type']))return;const _0xf46797=_[_0xbcaadc(0x20a)](_0x567332,[_0xbcaadc(0x1ba),_0x3cb3aa[_0xbcaadc(0x1d5)]])[_0xbcaadc(0x1bc)];return db[_0xbcaadc(0x1d0)][_0xbcaadc(0x20e)]({'where':{'type':_0xf46797,'resourceId':_0x3cb3aa['id']}})['then'](function(){return _0x4736e1;});})[_0x219dcb(0x1cf)](function(){const _0x20d91d=_0x219dcb;_0x141cc5[_0x20d91d(0x1ca)](0xcc)[_0x20d91d(0x201)]();});};}function handleEntityNotFound(_0x2f4df0){return function(_0x30f69e){const _0x4afee4=a872_0x55cf;return!_0x30f69e&&_0x2f4df0[_0x4afee4(0x1de)](0x194),_0x30f69e;};}function handleError(_0x3aa347,_0x4d8aba){return _0x4d8aba=_0x4d8aba||0x1f4,function(_0x452cde){const _0x9dd28a=a872_0x55cf;logger[_0x9dd28a(0x1e5)](_0x452cde[_0x9dd28a(0x1ed)]),_0x452cde['name']&&delete _0x452cde[_0x9dd28a(0x1bc)],_0x3aa347[_0x9dd28a(0x1ca)](_0x4d8aba)['send'](_0x452cde);};}exports[a872_0x1ed7e9(0x1fc)]=function(_0x67f958,_0x42f91b){const _0x5cede2=a872_0x1ed7e9;let _0x9a709c={};const _0x1dcb87={},_0x2a0512={'count':0x0,'rows':[]},_0x239c31=_[_0x5cede2(0x1f8)](db[_0x5cede2(0x1f7)][_0x5cede2(0x1ec)],function(_0x26abfc){const _0x5b903a=_0x5cede2;return{'name':_0x26abfc[_0x5b903a(0x1cc)],'type':_0x26abfc[_0x5b903a(0x1d5)]['key']};});_0x1dcb87[_0x5cede2(0x1f0)]=_[_0x5cede2(0x1f8)](_0x239c31,_0x5cede2(0x1bc)),_0x1dcb87[_0x5cede2(0x1e0)]=_[_0x5cede2(0x1df)](_0x67f958['query']),_0x1dcb87['filters']=_[_0x5cede2(0x1e3)](_0x1dcb87['model'],_0x1dcb87['query']),_0x9a709c[_0x5cede2(0x203)]=_['intersection'](_0x1dcb87['model'],qs['fields'](_0x67f958[_0x5cede2(0x1e0)][_0x5cede2(0x1c4)])),_0x9a709c[_0x5cede2(0x203)]=_0x9a709c['attributes'][_0x5cede2(0x1dd)]?_0x9a709c[_0x5cede2(0x203)]:_0x1dcb87[_0x5cede2(0x1f0)];typeof _0x67f958[_0x5cede2(0x1e0)][_0x5cede2(0x1da)]===_0x5cede2(0x20d)&&(_0x9a709c[_0x5cede2(0x1e4)]=qs[_0x5cede2(0x1e4)](_0x67f958[_0x5cede2(0x1e0)][_0x5cede2(0x1e4)]),_0x9a709c[_0x5cede2(0x20b)]=qs[_0x5cede2(0x20b)](_0x67f958[_0x5cede2(0x1e0)]['offset']));_0x9a709c['order']=qs[_0x5cede2(0x1f5)](_0x67f958[_0x5cede2(0x1e0)][_0x5cede2(0x1f5)]),_0x9a709c[_0x5cede2(0x1bd)]=qs['filters'](_[_0x5cede2(0x1d8)](_0x67f958[_0x5cede2(0x1e0)],_0x1dcb87[_0x5cede2(0x1cd)]),_0x239c31);_0x67f958[_0x5cede2(0x1e0)][_0x5cede2(0x1ee)]&&(_0x9a709c[_0x5cede2(0x1bd)]=_[_0x5cede2(0x1ea)](_0x9a709c[_0x5cede2(0x1bd)],{[Op['or']]:_[_0x5cede2(0x1f8)](_0x239c31,function(_0x4fd8b6){const _0x54d673=_0x5cede2;if(_0x4fd8b6[_0x54d673(0x1d5)]!==_0x54d673(0x1c9)){const _0x210bf7={};return _0x210bf7[_0x4fd8b6[_0x54d673(0x1bc)]]={[Op[_0x54d673(0x20f)]]:'%'+_0x67f958[_0x54d673(0x1e0)][_0x54d673(0x1ee)]+'%'},_0x210bf7;}})}));_0x9a709c=_[_0x5cede2(0x1ea)]({},_0x9a709c,_0x67f958['options']);const _0x2e0c2a={'where':_0x9a709c[_0x5cede2(0x1bd)]};return db['VoiceExtension'][_0x5cede2(0x1d3)](_0x2e0c2a)[_0x5cede2(0x1cf)](function(_0x418adc){const _0x591730=_0x5cede2;return _0x2a0512[_0x591730(0x1d3)]=_0x418adc,_0x67f958['query'][_0x591730(0x1fd)]&&(_0x9a709c[_0x591730(0x207)]=[{'all':!![]}]),db[_0x591730(0x1f7)][_0x591730(0x1e1)](_0x9a709c);})[_0x5cede2(0x1cf)](function(_0x207d71){const _0x3ff857=_0x5cede2;return _0x2a0512[_0x3ff857(0x1d2)]=_0x207d71,_0x2a0512;})[_0x5cede2(0x1cf)](respondWithFilteredResult(_0x42f91b,_0x9a709c))[_0x5cede2(0x1ce)](handleError(_0x42f91b,null));},exports[a872_0x1ed7e9(0x1d7)]=function(_0x5b0ea8,_0x2de16e){const _0x357613=a872_0x1ed7e9;let _0x2afc9a={'raw':![],'where':{'id':_0x5b0ea8[_0x357613(0x1e7)]['id']}};const _0x3b1d8f={};return _0x3b1d8f[_0x357613(0x1f0)]=_['keys'](db[_0x357613(0x1f7)][_0x357613(0x1ec)]),_0x3b1d8f[_0x357613(0x1e0)]=_[_0x357613(0x1df)](_0x5b0ea8['query']),_0x3b1d8f[_0x357613(0x1cd)]=_['intersection'](_0x3b1d8f['model'],_0x3b1d8f[_0x357613(0x1e0)]),_0x2afc9a[_0x357613(0x203)]=_[_0x357613(0x1e3)](_0x3b1d8f['model'],qs['fields'](_0x5b0ea8['query'][_0x357613(0x1c4)])),_0x2afc9a[_0x357613(0x203)]=_0x2afc9a[_0x357613(0x203)][_0x357613(0x1dd)]?_0x2afc9a[_0x357613(0x203)]:_0x3b1d8f[_0x357613(0x1f0)],_0x5b0ea8[_0x357613(0x1e0)][_0x357613(0x1fd)]&&(_0x2afc9a[_0x357613(0x207)]=[{'all':!![]}]),_0x2afc9a=_[_0x357613(0x1ea)]({},_0x2afc9a,_0x5b0ea8[_0x357613(0x1f6)]),db[_0x357613(0x1f7)][_0x357613(0x1f1)](_0x2afc9a)[_0x357613(0x1cf)](handleEntityNotFound(_0x2de16e,null))['then'](respondWithResult(_0x2de16e,null))[_0x357613(0x1ce)](handleError(_0x2de16e,null));},exports[a872_0x1ed7e9(0x20e)]=function(_0x205534,_0x2d2de3){const _0x56d53f=a872_0x1ed7e9;return db['VoiceExtension'][_0x56d53f(0x1f1)]({'where':{'id':_0x205534['params']['id']}})['then'](handleEntityNotFound(_0x2d2de3,null))[_0x56d53f(0x1cf)](removeEntity(_0x2d2de3,null))[_0x56d53f(0x1ce)](handleError(_0x2d2de3,null));},exports['create']=function(_0x5c4340,_0x1bca76){const _0x3feded=a872_0x1ed7e9;return _0x5c4340[_0x3feded(0x1c8)][_0x3feded(0x1d5)]===_0x3feded(0x200)&&!_[_0x3feded(0x1db)](_0x5c4340[_0x3feded(0x1c8)][_0x3feded(0x1d9)],'_')&&(_0x5c4340[_0x3feded(0x1c8)][_0x3feded(0x1d9)]='_'[_0x3feded(0x1e2)](_0x5c4340['body'][_0x3feded(0x1d9)])),db['VoiceExtension']['create'](_0x5c4340[_0x3feded(0x1c8)],{'raw':![]})[_0x3feded(0x1cf)](function(_0x44db7c){const _0x311b94=_0x3feded,_0x16502d=_0x5c4340[_0x311b94(0x202)][_0x311b94(0x20c)]({'plain':!![]});if(!_0x16502d)throw new Error(_0x311b94(0x205));if(_0x16502d[_0x311b94(0x1dc)]===_0x311b94(0x202)){const _0x25a0c2=_0x44db7c['get']({'plain':!![]}),_0x14e29d=[{'name':'InboundRoutes','value':_0x311b94(0x1cb)},{'name':'OutboundRoutes','value':_0x311b94(0x200)},{'name':_0x311b94(0x1c0),'value':'internal'}],_0xd0eabf=_[_0x311b94(0x20a)](_0x14e29d,[_0x311b94(0x1ba),_0x25a0c2['type']])[_0x311b94(0x1bc)];return db[_0x311b94(0x1d6)][_0x311b94(0x1f1)]({'where':{'name':_0xd0eabf,'userProfileId':_0x16502d[_0x311b94(0x204)]},'raw':!![]})[_0x311b94(0x1cf)](function(_0x57826b){const _0x382174=_0x311b94;return _0x57826b&&_0x57826b['autoAssociation']===0x0?db[_0x382174(0x1d0)][_0x382174(0x1f9)]({'name':_0x25a0c2[_0x382174(0x1bc)],'resourceId':_0x25a0c2['id'],'type':_0x57826b[_0x382174(0x1bc)],'sectionId':_0x57826b['id']},{})[_0x382174(0x1cf)](function(){return _0x44db7c;}):_0x44db7c;})[_0x311b94(0x1ce)](function(_0x31927f){const _0x6deb1c=_0x311b94;logger[_0x6deb1c(0x1e5)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x31927f);throw _0x31927f;});}return _0x44db7c;})[_0x3feded(0x1cf)](respondWithResult(_0x1bca76,0xc9))[_0x3feded(0x1ce)](handleError(_0x1bca76,null));},exports['update']=function(_0x453365,_0x4e74ef){const _0x1a4102=a872_0x1ed7e9;return _0x453365[_0x1a4102(0x1c8)]['id']&&delete _0x453365[_0x1a4102(0x1c8)]['id'],db[_0x1a4102(0x1f7)][_0x1a4102(0x1f1)]({'where':{'id':_0x453365['params']['id']}})[_0x1a4102(0x1cf)](handleEntityNotFound(_0x4e74ef,null))[_0x1a4102(0x1cf)](function(_0x1cb03e){const _0x16f97e=_0x1a4102;if(_0x1cb03e)return db[_0x16f97e(0x1f7)][_0x16f97e(0x1f3)](_[_0x16f97e(0x1d8)](_0x453365[_0x16f97e(0x1c8)],['exten',_0x16f97e(0x206),_0x16f97e(0x1e8),_0x16f97e(0x1d1),_0x16f97e(0x1bf),_0x16f97e(0x1e9)]),{'where':{'context':_0x1cb03e[_0x16f97e(0x206)],'exten':_0x1cb03e['exten']},'individualHooks':!![]})[_0x16f97e(0x1cf)](function(_0x62b7e3){return _0x62b7e3;});return null;})['then'](respondWithStatusCode(_0x4e74ef,null))[_0x1a4102(0x1ce)](handleError(_0x4e74ef,null));},exports[a872_0x1ed7e9(0x1c6)]=function(_0x4d6c6c,_0x32f913){const _0x5b5792=a872_0x1ed7e9;return db['VoiceExtension'][_0x5b5792(0x1f1)]({'where':{'id':_0x4d6c6c[_0x5b5792(0x1e7)]['id']}})[_0x5b5792(0x1cf)](handleEntityNotFound(_0x32f913,null))[_0x5b5792(0x1cf)](function(_0x407625){const _0x206f09=_0x5b5792;if(_0x407625)return db['sequelize'][_0x206f09(0x1b9)](function(_0xb5d31f){const _0x431ef4=_0x206f09;return db[_0x431ef4(0x1f7)][_0x431ef4(0x20e)]({'where':{'VoiceExtensionId':_0x4d6c6c[_0x431ef4(0x1e7)]['id']},'transaction':_0xb5d31f})[_0x431ef4(0x1cf)](function(){const _0x246242=_0x431ef4,_0x1a0d8c=_[_0x246242(0x1f8)](_0x4d6c6c[_0x246242(0x1c8)],function(_0x3e9d20){const _0x4c1074=_0x246242;return _0x3e9d20[_0x4c1074(0x209)]=_0x4d6c6c[_0x4c1074(0x1e7)]['id'],_0x3e9d20;});return db['VoiceExtension'][_0x246242(0x208)](_0x1a0d8c,{'transaction':_0xb5d31f});});})[_0x206f09(0x1cf)](function(){const _0x114d0b=_0x206f09;return db[_0x114d0b(0x1f7)][_0x114d0b(0x1fb)]({'where':{'isApp':!![],'VoiceExtensionId':_0x4d6c6c[_0x114d0b(0x1e7)]['id']},'order':_0x114d0b(0x1be)});});})[_0x5b5792(0x1cf)](respondWithResult(_0x32f913,null))[_0x5b5792(0x1ce)](handleError(_0x32f913,null));}; \ No newline at end of file +const a872_0x2757=['end','value','filters','inbound','rows','mandatoryDisposition','send','count','stack','like','InboundRoutes','json','intersection','query','attributes','transaction','sequelize','limit','pick','index','VIRTUAL','description','update','options','map','params','model','rawAttributes','keys','user','includes','filter','offset','UserProfileResource','lodash','internal','../../components/parsers/qs','exten','../../mysqldb','OutboundRoutes','destroy','UserProfileSection','register','VoiceExtensionId','addApplications','context','startsWith','InternalRoutes','status','get','bulkCreate','body','sendStatus','then','catch','order','VoiceExtension','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','name','set','length','sort','includeAll','undefined','Content-Range','cast(priority\x20as\x20unsigned)','where','api','create','include','fields','merge','findOne','outbound','recordingFormat','role','findAndCountAll','error','type','find'];(function(_0x3c0abf,_0xea81ce){const _0x27572b=function(_0x40e7df){while(--_0x40e7df){_0x3c0abf['push'](_0x3c0abf['shift']());}};_0x27572b(++_0xea81ce);}(a872_0x2757,0xfc));const a872_0x40e7=function(_0x3c0abf,_0xea81ce){_0x3c0abf=_0x3c0abf-0x89;let _0x27572b=a872_0x2757[_0x3c0abf];return _0x27572b;};const a872_0x396e62=a872_0x40e7;'use strict';const _=require(a872_0x396e62(0x9f)),qs=require(a872_0x396e62(0xa1)),logger=require('../../config/logger')(a872_0x396e62(0xc0)),{getSocket}=require('../../rediscache'),socket=getSocket(),{db}=require(a872_0x396e62(0xa3)),{Op}=require('sequelize');require('./voiceExtension.socket')[a872_0x396e62(0xa7)](socket);function respondWithStatusCode(_0x3d98fc,_0x37d953){return _0x37d953=_0x37d953||0xcc,function(_0x519e33){const _0x5a3c42=a872_0x40e7;if(_0x519e33)return _0x3d98fc['sendStatus'](_0x37d953);return _0x3d98fc[_0x5a3c42(0xad)](_0x37d953)[_0x5a3c42(0xcd)]();};}function respondWithResult(_0x4a2e9f,_0x516935){return _0x516935=_0x516935||0xc8,function(_0x206c95){const _0x3ccc2d=a872_0x40e7;if(_0x206c95)return _0x4a2e9f[_0x3ccc2d(0xad)](_0x516935)[_0x3ccc2d(0xd8)](_0x206c95);};}function respondWithFilteredResult(_0x27baa2,_0x59bb41){return function(_0x103c9b){const _0x3417e8=a872_0x40e7;if(_0x103c9b){const _0x10ebe4=_0x103c9b[_0x3417e8(0xd4)],_0x27e3a3=_0x59bb41[_0x3417e8(0x9d)];let _0x5d9c41=_0x59bb41[_0x3417e8(0x9d)]+_0x59bb41[_0x3417e8(0x8e)],_0x33f89f;return _0x5d9c41>=_0x10ebe4?(_0x5d9c41=_0x10ebe4,_0x33f89f=0xc8):_0x33f89f=0xce,_0x27baa2[_0x3417e8(0xad)](_0x33f89f),_0x27baa2[_0x3417e8(0xb8)](_0x3417e8(0xbd),_0x27e3a3+'-'+_0x5d9c41+'/'+_0x10ebe4)[_0x3417e8(0xd8)](_0x103c9b);}return null;};}function removeEntity(_0x33bde1){return function(_0x54088c){const _0x1beb4c=a872_0x40e7;if(_0x54088c)return _0x54088c['destroy']()[_0x1beb4c(0xb2)](function(){const _0x2f339a=_0x1beb4c,_0x5a4e56=_0x54088c['get']({'plain':!![]}),_0x158a8e=[{'name':_0x2f339a(0xd7),'value':_0x2f339a(0xd0),'ignore':![]},{'name':'OutboundRoutes','value':'outbound','ignore':![]},{'name':_0x2f339a(0xac),'value':_0x2f339a(0xa0),'ignore':![]}],_0xff17bf=_(_0x158a8e)[_0x2f339a(0x9c)]('ignore')['map'](_0x2f339a(0xce))[_0x2f339a(0xce)]();if(_[_0x2f339a(0x9b)](_0xff17bf,_0x5a4e56[_0x2f339a(0xcb)]))return;const _0x33a92a=_[_0x2f339a(0xcc)](_0x158a8e,['value',_0x5a4e56['type']])[_0x2f339a(0xb7)];return db[_0x2f339a(0x9e)][_0x2f339a(0xa5)]({'where':{'type':_0x33a92a,'resourceId':_0x5a4e56['id']}})['then'](function(){return _0x54088c;});})[_0x1beb4c(0xb2)](function(){const _0x36b1ce=_0x1beb4c;_0x33bde1[_0x36b1ce(0xad)](0xcc)[_0x36b1ce(0xcd)]();});};}function handleEntityNotFound(_0x143d61){return function(_0xec92eb){const _0x3fa728=a872_0x40e7;return!_0xec92eb&&_0x143d61[_0x3fa728(0xb1)](0x194),_0xec92eb;};}function handleError(_0x3367a3,_0x1d1e2b){return _0x1d1e2b=_0x1d1e2b||0x1f4,function(_0x7b9140){const _0x2ef3b5=a872_0x40e7;logger[_0x2ef3b5(0xca)](_0x7b9140[_0x2ef3b5(0xd5)]),_0x7b9140['name']&&delete _0x7b9140[_0x2ef3b5(0xb7)],_0x3367a3['status'](_0x1d1e2b)[_0x2ef3b5(0xd3)](_0x7b9140);};}exports[a872_0x396e62(0x90)]=function(_0x3a9696,_0x36f81a){const _0x1badbc=a872_0x396e62;let _0x13bf8e={};const _0x3b9dad={},_0x139ddc={'count':0x0,'rows':[]},_0x3e7e54=_[_0x1badbc(0x95)](db[_0x1badbc(0xb5)][_0x1badbc(0x98)],function(_0x2761ce){const _0x644e0b=_0x1badbc;return{'name':_0x2761ce['fieldName'],'type':_0x2761ce[_0x644e0b(0xcb)]['key']};});_0x3b9dad[_0x1badbc(0x97)]=_[_0x1badbc(0x95)](_0x3e7e54,'name'),_0x3b9dad['query']=_['keys'](_0x3a9696[_0x1badbc(0x8a)]),_0x3b9dad[_0x1badbc(0xcf)]=_[_0x1badbc(0x89)](_0x3b9dad[_0x1badbc(0x97)],_0x3b9dad[_0x1badbc(0x8a)]),_0x13bf8e[_0x1badbc(0x8b)]=_['intersection'](_0x3b9dad[_0x1badbc(0x97)],qs[_0x1badbc(0xc3)](_0x3a9696[_0x1badbc(0x8a)]['fields'])),_0x13bf8e[_0x1badbc(0x8b)]=_0x13bf8e[_0x1badbc(0x8b)][_0x1badbc(0xb9)]?_0x13bf8e['attributes']:_0x3b9dad[_0x1badbc(0x97)];typeof _0x3a9696[_0x1badbc(0x8a)]['nolimit']===_0x1badbc(0xbc)&&(_0x13bf8e[_0x1badbc(0x8e)]=qs[_0x1badbc(0x8e)](_0x3a9696['query'][_0x1badbc(0x8e)]),_0x13bf8e[_0x1badbc(0x9d)]=qs['offset'](_0x3a9696[_0x1badbc(0x8a)][_0x1badbc(0x9d)]));_0x13bf8e[_0x1badbc(0xb4)]=qs[_0x1badbc(0xba)](_0x3a9696['query'][_0x1badbc(0xba)]),_0x13bf8e[_0x1badbc(0xbf)]=qs[_0x1badbc(0xcf)](_[_0x1badbc(0x8f)](_0x3a9696[_0x1badbc(0x8a)],_0x3b9dad[_0x1badbc(0xcf)]),_0x3e7e54);_0x3a9696[_0x1badbc(0x8a)]['filter']&&(_0x13bf8e[_0x1badbc(0xbf)]=_['merge'](_0x13bf8e['where'],{[Op['or']]:_[_0x1badbc(0x95)](_0x3e7e54,function(_0xe6d349){const _0x464917=_0x1badbc;if(_0xe6d349[_0x464917(0xcb)]!==_0x464917(0x91)){const _0x22d5d8={};return _0x22d5d8[_0xe6d349['name']]={[Op[_0x464917(0xd6)]]:'%'+_0x3a9696[_0x464917(0x8a)]['filter']+'%'},_0x22d5d8;}})}));_0x13bf8e=_[_0x1badbc(0xc4)]({},_0x13bf8e,_0x3a9696[_0x1badbc(0x94)]);const _0x30a7ae={'where':_0x13bf8e[_0x1badbc(0xbf)]};return db['VoiceExtension'][_0x1badbc(0xd4)](_0x30a7ae)[_0x1badbc(0xb2)](function(_0x2cb05a){const _0x139c5d=_0x1badbc;return _0x139ddc['count']=_0x2cb05a,_0x3a9696[_0x139c5d(0x8a)][_0x139c5d(0xbb)]&&(_0x13bf8e[_0x139c5d(0xc2)]=[{'all':!![]}]),db[_0x139c5d(0xb5)]['findAll'](_0x13bf8e);})[_0x1badbc(0xb2)](function(_0x4ccbf2){const _0x253d7e=_0x1badbc;return _0x139ddc[_0x253d7e(0xd1)]=_0x4ccbf2,_0x139ddc;})[_0x1badbc(0xb2)](respondWithFilteredResult(_0x36f81a,_0x13bf8e))[_0x1badbc(0xb3)](handleError(_0x36f81a,null));},exports['show']=function(_0x40114e,_0x51a8d3){const _0x6bb01=a872_0x396e62;let _0xc8689e={'raw':![],'where':{'id':_0x40114e[_0x6bb01(0x96)]['id']}};const _0x2069ee={};return _0x2069ee[_0x6bb01(0x97)]=_[_0x6bb01(0x99)](db[_0x6bb01(0xb5)][_0x6bb01(0x98)]),_0x2069ee[_0x6bb01(0x8a)]=_[_0x6bb01(0x99)](_0x40114e[_0x6bb01(0x8a)]),_0x2069ee[_0x6bb01(0xcf)]=_[_0x6bb01(0x89)](_0x2069ee[_0x6bb01(0x97)],_0x2069ee[_0x6bb01(0x8a)]),_0xc8689e[_0x6bb01(0x8b)]=_['intersection'](_0x2069ee['model'],qs[_0x6bb01(0xc3)](_0x40114e['query'][_0x6bb01(0xc3)])),_0xc8689e[_0x6bb01(0x8b)]=_0xc8689e[_0x6bb01(0x8b)]['length']?_0xc8689e[_0x6bb01(0x8b)]:_0x2069ee[_0x6bb01(0x97)],_0x40114e[_0x6bb01(0x8a)][_0x6bb01(0xbb)]&&(_0xc8689e[_0x6bb01(0xc2)]=[{'all':!![]}]),_0xc8689e=_[_0x6bb01(0xc4)]({},_0xc8689e,_0x40114e[_0x6bb01(0x94)]),db['VoiceExtension'][_0x6bb01(0xc5)](_0xc8689e)[_0x6bb01(0xb2)](handleEntityNotFound(_0x51a8d3,null))[_0x6bb01(0xb2)](respondWithResult(_0x51a8d3,null))[_0x6bb01(0xb3)](handleError(_0x51a8d3,null));},exports[a872_0x396e62(0xa5)]=function(_0x4a6c36,_0x38db89){const _0x5cde0d=a872_0x396e62;return db[_0x5cde0d(0xb5)][_0x5cde0d(0xc5)]({'where':{'id':_0x4a6c36[_0x5cde0d(0x96)]['id']}})['then'](handleEntityNotFound(_0x38db89,null))[_0x5cde0d(0xb2)](removeEntity(_0x38db89,null))[_0x5cde0d(0xb3)](handleError(_0x38db89,null));},exports[a872_0x396e62(0xc1)]=function(_0x1aedc4,_0xaf2db4){const _0x23dc92=a872_0x396e62;return _0x1aedc4['body'][_0x23dc92(0xcb)]===_0x23dc92(0xc6)&&!_[_0x23dc92(0xab)](_0x1aedc4[_0x23dc92(0xb0)]['exten'],'_')&&(_0x1aedc4[_0x23dc92(0xb0)][_0x23dc92(0xa2)]='_'['concat'](_0x1aedc4[_0x23dc92(0xb0)][_0x23dc92(0xa2)])),db['VoiceExtension']['create'](_0x1aedc4[_0x23dc92(0xb0)],{'raw':![]})[_0x23dc92(0xb2)](function(_0x270dc5){const _0x4b6006=_0x23dc92,_0x576c0e=_0x1aedc4[_0x4b6006(0x9a)][_0x4b6006(0xae)]({'plain':!![]});if(!_0x576c0e)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x576c0e[_0x4b6006(0xc8)]==='user'){const _0x2e551d=_0x270dc5['get']({'plain':!![]}),_0x358cf6=[{'name':_0x4b6006(0xd7),'value':_0x4b6006(0xd0)},{'name':_0x4b6006(0xa4),'value':_0x4b6006(0xc6)},{'name':_0x4b6006(0xac),'value':_0x4b6006(0xa0)}],_0x348d81=_[_0x4b6006(0xcc)](_0x358cf6,['value',_0x2e551d[_0x4b6006(0xcb)]])[_0x4b6006(0xb7)];return db[_0x4b6006(0xa6)][_0x4b6006(0xc5)]({'where':{'name':_0x348d81,'userProfileId':_0x576c0e['userProfileId']},'raw':!![]})[_0x4b6006(0xb2)](function(_0x189580){const _0x36a33d=_0x4b6006;return _0x189580&&_0x189580['autoAssociation']===0x0?db[_0x36a33d(0x9e)]['create']({'name':_0x2e551d[_0x36a33d(0xb7)],'resourceId':_0x2e551d['id'],'type':_0x189580[_0x36a33d(0xb7)],'sectionId':_0x189580['id']},{})['then'](function(){return _0x270dc5;}):_0x270dc5;})[_0x4b6006(0xb3)](function(_0x1c8d31){const _0x5d1ff5=_0x4b6006;logger[_0x5d1ff5(0xca)](_0x5d1ff5(0xb6),_0x1c8d31);throw _0x1c8d31;});}return _0x270dc5;})[_0x23dc92(0xb2)](respondWithResult(_0xaf2db4,0xc9))[_0x23dc92(0xb3)](handleError(_0xaf2db4,null));},exports[a872_0x396e62(0x93)]=function(_0x26f3ea,_0x1358fc){const _0x2e3b3c=a872_0x396e62;return _0x26f3ea[_0x2e3b3c(0xb0)]['id']&&delete _0x26f3ea[_0x2e3b3c(0xb0)]['id'],db['VoiceExtension'][_0x2e3b3c(0xc5)]({'where':{'id':_0x26f3ea[_0x2e3b3c(0x96)]['id']}})[_0x2e3b3c(0xb2)](handleEntityNotFound(_0x1358fc,null))['then'](function(_0x2d85b3){const _0x3f5244=_0x2e3b3c;if(_0x2d85b3)return db[_0x3f5244(0xb5)][_0x3f5244(0x93)](_[_0x3f5244(0x8f)](_0x26f3ea[_0x3f5244(0xb0)],[_0x3f5244(0xa2),_0x3f5244(0xaa),_0x3f5244(0x92),_0x3f5244(0xc7),'cutdigits',_0x3f5244(0xd2)]),{'where':{'context':_0x2d85b3[_0x3f5244(0xaa)],'exten':_0x2d85b3[_0x3f5244(0xa2)]},'individualHooks':!![]})[_0x3f5244(0xb2)](function(_0x22970a){return _0x22970a;});return null;})[_0x2e3b3c(0xb2)](respondWithStatusCode(_0x1358fc,null))[_0x2e3b3c(0xb3)](handleError(_0x1358fc,null));},exports[a872_0x396e62(0xa9)]=function(_0x3ba7a6,_0x225cc0){const _0x25eaa3=a872_0x396e62;return db[_0x25eaa3(0xb5)][_0x25eaa3(0xc5)]({'where':{'id':_0x3ba7a6['params']['id']}})['then'](handleEntityNotFound(_0x225cc0,null))[_0x25eaa3(0xb2)](function(_0x2760c6){const _0xecf985=_0x25eaa3;if(_0x2760c6)return db[_0xecf985(0x8d)][_0xecf985(0x8c)](function(_0x4cf83e){const _0x165e64=_0xecf985;return db['VoiceExtension'][_0x165e64(0xa5)]({'where':{'VoiceExtensionId':_0x3ba7a6[_0x165e64(0x96)]['id']},'transaction':_0x4cf83e})[_0x165e64(0xb2)](function(){const _0xd11125=_0x165e64,_0x4d2485=_[_0xd11125(0x95)](_0x3ba7a6['body'],function(_0xf45cef){const _0x56ecdd=_0xd11125;return _0xf45cef[_0x56ecdd(0xa8)]=_0x3ba7a6[_0x56ecdd(0x96)]['id'],_0xf45cef;});return db[_0xd11125(0xb5)][_0xd11125(0xaf)](_0x4d2485,{'transaction':_0x4cf83e});});})['then'](function(){const _0x4cc031=_0xecf985;return db[_0x4cc031(0xb5)][_0x4cc031(0xc9)]({'where':{'isApp':!![],'VoiceExtensionId':_0x3ba7a6[_0x4cc031(0x96)]['id']},'order':_0x4cc031(0xbe)});});})['then'](respondWithResult(_0x225cc0,null))[_0x25eaa3(0xb3)](handleError(_0x225cc0,null));}; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.events.js b/server/api/voiceExtension/voiceExtension.events.js index 12e0d72..2c1d537 100644 --- a/server/api/voiceExtension/voiceExtension.events.js +++ b/server/api/voiceExtension/voiceExtension.events.js @@ -1 +1 @@ -const a873_0x7649=['../../mysqldb','save','VoiceExtension','emit','setMaxListeners','addHook','undefined','exports'];(function(_0x5e2c58,_0x40b676){const _0x76498d=function(_0x34df77){while(--_0x34df77){_0x5e2c58['push'](_0x5e2c58['shift']());}};_0x76498d(++_0x40b676);}(a873_0x7649,0xd9));const a873_0x34df=function(_0x5e2c58,_0x40b676){_0x5e2c58=_0x5e2c58-0x1ec;let _0x76498d=a873_0x7649[_0x5e2c58];return _0x76498d;};const a873_0x3d011d=a873_0x34df;'use strict';const EventEmitter=require('events'),VoiceExtension=require(a873_0x3d011d(0x1f3))['db'][a873_0x3d011d(0x1ed)],VoiceExtensionEvents=new EventEmitter();VoiceExtensionEvents[a873_0x3d011d(0x1ef)](0x0);const events={'afterCreate':a873_0x3d011d(0x1ec),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x39194a){return function(_0x50ae0b){const _0x1e65d7=a873_0x34df;VoiceExtensionEvents['emit'](_0x39194a+':'+_0x50ae0b['id'],_0x50ae0b),VoiceExtensionEvents[_0x1e65d7(0x1ee)](_0x39194a,_0x50ae0b);};}for(const e in events){if(typeof events[e]!==a873_0x3d011d(0x1f1)){const event=events[e];VoiceExtension[a873_0x3d011d(0x1f0)](e,emitEvent(event));}}module[a873_0x3d011d(0x1f2)]=VoiceExtensionEvents; \ No newline at end of file +const a873_0x41af=['undefined','setMaxListeners','exports','events','emit','../../mysqldb','remove'];(function(_0x2375dd,_0x118c5a){const _0x41af49=function(_0x4e027f){while(--_0x4e027f){_0x2375dd['push'](_0x2375dd['shift']());}};_0x41af49(++_0x118c5a);}(a873_0x41af,0x12a));const a873_0x4e02=function(_0x2375dd,_0x118c5a){_0x2375dd=_0x2375dd-0x162;let _0x41af49=a873_0x41af[_0x2375dd];return _0x41af49;};const a873_0x541922=a873_0x4e02;'use strict';const EventEmitter=require(a873_0x541922(0x168)),VoiceExtension=require(a873_0x541922(0x163))['db']['VoiceExtension'],VoiceExtensionEvents=new EventEmitter();VoiceExtensionEvents[a873_0x541922(0x166)](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':a873_0x541922(0x164)};function emitEvent(_0x42b5ca){return function(_0x5ddc3d){const _0x2b7459=a873_0x4e02;VoiceExtensionEvents[_0x2b7459(0x162)](_0x42b5ca+':'+_0x5ddc3d['id'],_0x5ddc3d),VoiceExtensionEvents[_0x2b7459(0x162)](_0x42b5ca,_0x5ddc3d);};}for(const e in events){if(typeof events[e]!==a873_0x541922(0x165)){const event=events[e];VoiceExtension['addHook'](e,emitEvent(event));}}module[a873_0x541922(0x167)]=VoiceExtensionEvents; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.model.js b/server/api/voiceExtension/voiceExtension.model.js index 4621683..bd232b5 100644 --- a/server/api/voiceExtension/voiceExtension.model.js +++ b/server/api/voiceExtension/voiceExtension.model.js @@ -1 +1 @@ -const a874_0x4750=['init','function','exports','VoiceExtension','sequelize'];(function(_0x5652e0,_0x222ddc){const _0x4750e5=function(_0xf45ffd){while(--_0xf45ffd){_0x5652e0['push'](_0x5652e0['shift']());}};_0x4750e5(++_0x222ddc);}(a874_0x4750,0x8c));const a874_0xf45f=function(_0x5652e0,_0x222ddc){_0x5652e0=_0x5652e0-0x1ed;let _0x4750e5=a874_0x4750[_0x5652e0];return _0x4750e5;};const a874_0x4aa0d3=a874_0xf45f;'use strict';const {Model}=require(a874_0x4aa0d3(0x1f1)),{attributes}=require('./voiceExtension.attributes'),{options}=require('./voiceExtension.options');class VoiceExtension extends Model{}function init(_0x213fca,_0x1796b7){const _0x3f5cd6=a874_0x4aa0d3,_0x1b3d4d=options(_0x213fca),_0x45cec9=typeof _0x1796b7===_0x3f5cd6(0x1ee)?_0x1796b7(_0x1b3d4d):_0x1b3d4d;return VoiceExtension[_0x3f5cd6(0x1ed)](attributes,_0x45cec9),VoiceExtension;}module[a874_0x4aa0d3(0x1ef)][a874_0x4aa0d3(0x1f0)]=VoiceExtension,module['exports'][a874_0x4aa0d3(0x1ed)]=init; \ No newline at end of file +const a874_0x461c=['function','exports','init','./voiceExtension.options','VoiceExtension','./voiceExtension.attributes'];(function(_0x475de0,_0x228a8e){const _0x461cbf=function(_0x37a5d2){while(--_0x37a5d2){_0x475de0['push'](_0x475de0['shift']());}};_0x461cbf(++_0x228a8e);}(a874_0x461c,0x1da));const a874_0x37a5=function(_0x475de0,_0x228a8e){_0x475de0=_0x475de0-0x1b7;let _0x461cbf=a874_0x461c[_0x475de0];return _0x461cbf;};const a874_0x30da2c=a874_0x37a5;'use strict';const {Model}=require('sequelize'),{attributes}=require(a874_0x30da2c(0x1bc)),{options}=require(a874_0x30da2c(0x1ba));class VoiceExtension extends Model{}function init(_0x4e7c7c,_0x181aa0){const _0x6a35e9=a874_0x30da2c,_0x551734=options(_0x4e7c7c),_0x46b649=typeof _0x181aa0===_0x6a35e9(0x1b7)?_0x181aa0(_0x551734):_0x551734;return VoiceExtension[_0x6a35e9(0x1b9)](attributes,_0x46b649),VoiceExtension;}module[a874_0x30da2c(0x1b8)][a874_0x30da2c(0x1bb)]=VoiceExtension,module[a874_0x30da2c(0x1b8)][a874_0x30da2c(0x1b9)]=init; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.options.js b/server/api/voiceExtension/voiceExtension.options.js index 5cdadc2..b2f391b 100644 --- a/server/api/voiceExtension/voiceExtension.options.js +++ b/server/api/voiceExtension/voiceExtension.options.js @@ -1 +1 @@ -var a875_0x1b90=['options','exports','voice_extensions'];(function(_0xa7152e,_0x429cfb){var _0x1b90a9=function(_0x4c970d){while(--_0x4c970d){_0xa7152e['push'](_0xa7152e['shift']());}};_0x1b90a9(++_0x429cfb);}(a875_0x1b90,0x8f));var a875_0x4c97=function(_0xa7152e,_0x429cfb){_0xa7152e=_0xa7152e-0xe9;var _0x1b90a9=a875_0x1b90[_0xa7152e];return _0x1b90a9;};var a875_0x13cd42=a875_0x4c97;function options(_0x3244cb){var _0x10494f=a875_0x4c97;return{'sequelize':_0x3244cb,'tableName':_0x10494f(0xe9),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a875_0x13cd42(0xeb)][a875_0x13cd42(0xea)]=options; \ No newline at end of file +var a875_0xf7fb=['voice_extensions'];(function(_0xa6e3f6,_0x309555){var _0xf7fb17=function(_0x84cc61){while(--_0x84cc61){_0xa6e3f6['push'](_0xa6e3f6['shift']());}};_0xf7fb17(++_0x309555);}(a875_0xf7fb,0x1ee));var a875_0x84cc=function(_0xa6e3f6,_0x309555){_0xa6e3f6=_0xa6e3f6-0x1ac;var _0xf7fb17=a875_0xf7fb[_0xa6e3f6];return _0xf7fb17;};function options(_0x3f8444){var _0x34358d=a875_0x84cc;return{'sequelize':_0x3f8444,'tableName':_0x34358d(0x1ac),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports']['options']=options; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.rpc.js b/server/api/voiceExtension/voiceExtension.rpc.js index d26948d..27ff9ec 100644 --- a/server/api/voiceExtension/voiceExtension.rpc.js +++ b/server/api/voiceExtension/voiceExtension.rpc.js @@ -1 +1 @@ -const a876_0x27fe=['model','map','findAll','message','raw','lodash','debug','./voiceExtension.socket','include','options','register','../../mysqldb','where','stringify','catch','error','../../config/logger','limit','attributes','rpc','VoiceExtension','GetVoiceExtension'];(function(_0xfa7183,_0x22146a){const _0x27feaa=function(_0x556670){while(--_0x556670){_0xfa7183['push'](_0xfa7183['shift']());}};_0x27feaa(++_0x22146a);}(a876_0x27fe,0xab));const a876_0x5566=function(_0xfa7183,_0x22146a){_0xfa7183=_0xfa7183-0x124;let _0x27feaa=a876_0x27fe[_0xfa7183];return _0x27feaa;};const a876_0x479838=a876_0x5566;'use strict';const _=require(a876_0x479838(0x12e)),db=require(a876_0x479838(0x134))['db'],logger=require(a876_0x479838(0x139))(a876_0x479838(0x126)),{getSocket}=require('../../rediscache'),socket=getSocket();require(a876_0x479838(0x130))[a876_0x479838(0x133)](socket),exports[a876_0x479838(0x128)]=function(_0x311e8e){const _0x2ae779=this;return new Promise(function(_0x408237,_0x56ba7f){const _0x4354ec=a876_0x5566;return db[_0x4354ec(0x127)][_0x4354ec(0x12b)]({'raw':_0x311e8e[_0x4354ec(0x132)]?_0x311e8e['options'][_0x4354ec(0x12d)]===undefined?!![]:![]:!![],'where':_0x311e8e['options']?_0x311e8e[_0x4354ec(0x132)][_0x4354ec(0x135)]||null:null,'attributes':_0x311e8e[_0x4354ec(0x132)]?_0x311e8e['options'][_0x4354ec(0x125)]||null:null,'limit':_0x311e8e[_0x4354ec(0x132)]?_0x311e8e['options'][_0x4354ec(0x124)]||null:null,'include':_0x311e8e[_0x4354ec(0x132)]?_0x311e8e[_0x4354ec(0x132)][_0x4354ec(0x131)]?_['map'](_0x311e8e['options'][_0x4354ec(0x131)],function(_0x3ee182){const _0x166245=_0x4354ec;return{'model':db[_0x3ee182[_0x166245(0x129)]],'as':_0x3ee182['as'],'attributes':_0x3ee182[_0x166245(0x125)],'include':_0x3ee182['include']?_[_0x166245(0x12a)](_0x3ee182[_0x166245(0x131)],function(_0x5524c3){const _0x592d77=_0x166245;return{'model':db[_0x5524c3[_0x592d77(0x129)]],'as':_0x5524c3['as'],'attributes':_0x5524c3['attributes'],'include':_0x5524c3[_0x592d77(0x131)]?_[_0x592d77(0x12a)](_0x5524c3[_0x592d77(0x131)],function(_0x3c6cb1){const _0x5a2628=_0x592d77;return{'model':db[_0x3c6cb1[_0x5a2628(0x129)]],'as':_0x3c6cb1['as'],'attributes':_0x3c6cb1[_0x5a2628(0x125)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x227813){const _0x548b82=_0x4354ec;logger['info'](_0x548b82(0x128),_0x311e8e),logger[_0x548b82(0x12f)](_0x548b82(0x128),_0x311e8e,JSON[_0x548b82(0x136)](_0x227813)),_0x408237(_0x227813);})[_0x4354ec(0x137)](function(_0x2166ed){const _0x469714=_0x4354ec;logger[_0x469714(0x138)](_0x469714(0x128),_0x2166ed['message'],_0x311e8e),_0x56ba7f(_0x2ae779[_0x469714(0x138)](0x1f4,_0x2166ed[_0x469714(0x12c)]));});});}; \ No newline at end of file +const a876_0x2987=['../../mysqldb','debug','include','../../rediscache','stringify','message','where','error','./voiceExtension.socket','../../config/logger','options','attributes','GetVoiceExtension','limit','then','map','raw','model','rpc'];(function(_0x3a9e35,_0x22c350){const _0x29874d=function(_0x5c3ecc){while(--_0x5c3ecc){_0x3a9e35['push'](_0x3a9e35['shift']());}};_0x29874d(++_0x22c350);}(a876_0x2987,0x13f));const a876_0x5c3e=function(_0x3a9e35,_0x22c350){_0x3a9e35=_0x3a9e35-0x17d;let _0x29874d=a876_0x2987[_0x3a9e35];return _0x29874d;};const a876_0x1ebc6b=a876_0x5c3e;'use strict';const _=require('lodash'),db=require(a876_0x1ebc6b(0x181))['db'],logger=require(a876_0x1ebc6b(0x18a))(a876_0x1ebc6b(0x180)),{getSocket}=require(a876_0x1ebc6b(0x184)),socket=getSocket();require(a876_0x1ebc6b(0x189))['register'](socket),exports[a876_0x1ebc6b(0x18d)]=function(_0x20d84b){const _0x1aeacd=this;return new Promise(function(_0x403149,_0x962406){const _0x33101a=a876_0x5c3e;return db['VoiceExtension']['findAll']({'raw':_0x20d84b[_0x33101a(0x18b)]?_0x20d84b['options'][_0x33101a(0x17e)]===undefined?!![]:![]:!![],'where':_0x20d84b[_0x33101a(0x18b)]?_0x20d84b['options'][_0x33101a(0x187)]||null:null,'attributes':_0x20d84b[_0x33101a(0x18b)]?_0x20d84b[_0x33101a(0x18b)]['attributes']||null:null,'limit':_0x20d84b['options']?_0x20d84b['options'][_0x33101a(0x18e)]||null:null,'include':_0x20d84b[_0x33101a(0x18b)]?_0x20d84b[_0x33101a(0x18b)][_0x33101a(0x183)]?_[_0x33101a(0x17d)](_0x20d84b[_0x33101a(0x18b)][_0x33101a(0x183)],function(_0x47268d){const _0x3257ea=_0x33101a;return{'model':db[_0x47268d[_0x3257ea(0x17f)]],'as':_0x47268d['as'],'attributes':_0x47268d[_0x3257ea(0x18c)],'include':_0x47268d['include']?_['map'](_0x47268d[_0x3257ea(0x183)],function(_0x17db42){const _0x1e2a1c=_0x3257ea;return{'model':db[_0x17db42['model']],'as':_0x17db42['as'],'attributes':_0x17db42[_0x1e2a1c(0x18c)],'include':_0x17db42[_0x1e2a1c(0x183)]?_[_0x1e2a1c(0x17d)](_0x17db42[_0x1e2a1c(0x183)],function(_0x300a97){const _0x23b5d9=_0x1e2a1c;return{'model':db[_0x300a97['model']],'as':_0x300a97['as'],'attributes':_0x300a97[_0x23b5d9(0x18c)]};}):[]};}):[]};}):[]:[]})[_0x33101a(0x18f)](function(_0x54db1d){const _0x2fdb26=_0x33101a;logger['info'](_0x2fdb26(0x18d),_0x20d84b),logger[_0x2fdb26(0x182)](_0x2fdb26(0x18d),_0x20d84b,JSON[_0x2fdb26(0x185)](_0x54db1d)),_0x403149(_0x54db1d);})['catch'](function(_0x376130){const _0x53dda7=_0x33101a;logger[_0x53dda7(0x188)](_0x53dda7(0x18d),_0x376130[_0x53dda7(0x186)],_0x20d84b),_0x962406(_0x1aeacd[_0x53dda7(0x188)](0x1f4,_0x376130['message']));});});}; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.socket.js b/server/api/voiceExtension/voiceExtension.socket.js index a8bceb2..8cdc69a 100644 --- a/server/api/voiceExtension/voiceExtension.socket.js +++ b/server/api/voiceExtension/voiceExtension.socket.js @@ -1 +1 @@ -const a877_0x4316=['update','emit','./voiceExtension.events','remove','save','length','voiceExtension:'];(function(_0xd03bf0,_0x4767a9){const _0x4316c3=function(_0x3c4b64){while(--_0x3c4b64){_0xd03bf0['push'](_0xd03bf0['shift']());}};_0x4316c3(++_0x4767a9);}(a877_0x4316,0x199));const a877_0x3c4b=function(_0xd03bf0,_0x4767a9){_0xd03bf0=_0xd03bf0-0x95;let _0x4316c3=a877_0x4316[_0xd03bf0];return _0x4316c3;};const a877_0x419f90=a877_0x3c4b;'use strict';const VoiceExtensionEvents=require(a877_0x419f90(0x9b)),events=[a877_0x419f90(0x96),a877_0x419f90(0x95),a877_0x419f90(0x99)];function createListener(_0x3c1b0a,_0x1f53c9){return function(_0x38a0ca){const _0x28b2d6=a877_0x3c4b;_0x1f53c9[_0x28b2d6(0x9a)](_0x3c1b0a,_0x38a0ca);};}exports['register']=function(_0x12d951){const _0x5746ea=a877_0x419f90;for(let _0x96fb0d=0x0,_0x7b5cf1=events[_0x5746ea(0x97)];_0x96fb0d<_0x7b5cf1;_0x96fb0d++){const _0x459cc7=events[_0x96fb0d],_0x5a01aa=createListener(_0x5746ea(0x98)+_0x459cc7,_0x12d951);VoiceExtensionEvents['on'](_0x459cc7,_0x5a01aa);}}; \ No newline at end of file +const a877_0x1681=['./voiceExtension.events','length','remove','emit','save','voiceExtension:'];(function(_0x314c03,_0x1c83e7){const _0x1681bb=function(_0x5ee7fc){while(--_0x5ee7fc){_0x314c03['push'](_0x314c03['shift']());}};_0x1681bb(++_0x1c83e7);}(a877_0x1681,0x11b));const a877_0x5ee7=function(_0x314c03,_0x1c83e7){_0x314c03=_0x314c03-0x9f;let _0x1681bb=a877_0x1681[_0x314c03];return _0x1681bb;};const a877_0x536d0a=a877_0x5ee7;'use strict';const VoiceExtensionEvents=require(a877_0x536d0a(0xa4)),events=[a877_0x536d0a(0xa2),a877_0x536d0a(0xa0),'update'];function createListener(_0x32f066,_0x155200){return function(_0x4b62c4){const _0x1be19=a877_0x5ee7;_0x155200[_0x1be19(0xa1)](_0x32f066,_0x4b62c4);};}exports['register']=function(_0x42a95a){const _0x122c88=a877_0x536d0a;for(let _0x3297b5=0x0,_0x52b9a9=events[_0x122c88(0x9f)];_0x3297b5<_0x52b9a9;_0x3297b5++){const _0x4374f5=events[_0x3297b5],_0x467ef1=createListener(_0x122c88(0xa3)+_0x4374f5,_0x42a95a);VoiceExtensionEvents['on'](_0x4374f5,_0x467ef1);}}; \ No newline at end of file diff --git a/server/api/voiceMail/index.js b/server/api/voiceMail/index.js index b6eebce..f47bb5f 100644 --- a/server/api/voiceMail/index.js +++ b/server/api/voiceMail/index.js @@ -1 +1 @@ -const a878_0x472b=['index','Router','/:id','isAuthenticated','get','./voiceMail.controller','update','destroy','getMessages','express','../../components/auth/service','show','/:id/messages','put'];(function(_0x28bd0f,_0x416fd8){const _0x472b43=function(_0x567076){while(--_0x567076){_0x28bd0f['push'](_0x28bd0f['shift']());}};_0x472b43(++_0x416fd8);}(a878_0x472b,0x17d));const a878_0x5670=function(_0x28bd0f,_0x416fd8){_0x28bd0f=_0x28bd0f-0x114;let _0x472b43=a878_0x472b[_0x28bd0f];return _0x472b43;};const a878_0x4e2886=a878_0x5670;'use strict';const express=require(a878_0x4e2886(0x11a)),router=express[a878_0x4e2886(0x120)](),auth=require(a878_0x4e2886(0x11b)),controller=require(a878_0x4e2886(0x116));router[a878_0x4e2886(0x115)]('/',auth[a878_0x4e2886(0x114)](),controller[a878_0x4e2886(0x11f)]),router[a878_0x4e2886(0x115)](a878_0x4e2886(0x121),auth['isAuthenticated'](),controller[a878_0x4e2886(0x11c)]),router[a878_0x4e2886(0x115)](a878_0x4e2886(0x11d),auth['isAuthenticated'](),controller[a878_0x4e2886(0x119)]),router['post']('/',auth[a878_0x4e2886(0x114)](),controller['create']),router[a878_0x4e2886(0x11e)](a878_0x4e2886(0x121),auth[a878_0x4e2886(0x114)](),controller[a878_0x4e2886(0x117)]),router['delete']('/:id',auth['isAuthenticated'](),controller[a878_0x4e2886(0x118)]),module['exports']=router; \ No newline at end of file +const a878_0x516e=['update','destroy','show','get','index','getMessages','/:id/messages','put','./voiceMail.controller','isAuthenticated','Router','/:id','delete','express'];(function(_0x393ce6,_0x2e3a42){const _0x516ee1=function(_0x40858b){while(--_0x40858b){_0x393ce6['push'](_0x393ce6['shift']());}};_0x516ee1(++_0x2e3a42);}(a878_0x516e,0xd1));const a878_0x4085=function(_0x393ce6,_0x2e3a42){_0x393ce6=_0x393ce6-0x1a5;let _0x516ee1=a878_0x516e[_0x393ce6];return _0x516ee1;};const a878_0x8fa905=a878_0x4085;'use strict';const express=require(a878_0x8fa905(0x1a5)),router=express[a878_0x8fa905(0x1b0)](),auth=require('../../components/auth/service'),controller=require(a878_0x8fa905(0x1ae));router[a878_0x8fa905(0x1a9)]('/',auth[a878_0x8fa905(0x1af)](),controller[a878_0x8fa905(0x1aa)]),router[a878_0x8fa905(0x1a9)](a878_0x8fa905(0x1b1),auth['isAuthenticated'](),controller[a878_0x8fa905(0x1a8)]),router[a878_0x8fa905(0x1a9)](a878_0x8fa905(0x1ac),auth[a878_0x8fa905(0x1af)](),controller[a878_0x8fa905(0x1ab)]),router['post']('/',auth[a878_0x8fa905(0x1af)](),controller['create']),router[a878_0x8fa905(0x1ad)](a878_0x8fa905(0x1b1),auth['isAuthenticated'](),controller[a878_0x8fa905(0x1a6)]),router[a878_0x8fa905(0x1b2)](a878_0x8fa905(0x1b1),auth['isAuthenticated'](),controller[a878_0x8fa905(0x1a7)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/voiceMail/voiceMail.attributes.js b/server/api/voiceMail/voiceMail.attributes.js index 738abf3..371fd1a 100644 --- a/server/api/voiceMail/voiceMail.attributes.js +++ b/server/api/voiceMail/voiceMail.attributes.js @@ -1 +1 @@ -const a879_0x44c2=['sequelize','INTEGER','trim','\x20-\x20','from-voicemail','STRING','mailbox','getDataValue','ENUM','contest_mailbox','TINYINT(4)','exports','fullname','string','yes'];(function(_0x2ba341,_0x14ce70){const _0x44c25d=function(_0xc19a17){while(--_0xc19a17){_0x2ba341['push'](_0x2ba341['shift']());}};_0x44c25d(++_0x14ce70);}(a879_0x44c2,0xfa));const a879_0xc19a=function(_0x2ba341,_0x14ce70){_0x2ba341=_0x2ba341-0x15e;let _0x44c25d=a879_0x44c2[_0x2ba341];return _0x44c25d;};const a879_0x4fa670=a879_0xc19a;'use strict';const {DataTypes}=require(a879_0x4fa670(0x163)),attributes={'customer_id':{'type':DataTypes[a879_0x4fa670(0x168)]},'context':{'type':DataTypes[a879_0x4fa670(0x168)],'defaultValue':a879_0x4fa670(0x167),'unique':a879_0x4fa670(0x16c)},'mailbox':{'type':DataTypes[a879_0x4fa670(0x168)],'defaultValue':'','allowNull':![],'unique':a879_0x4fa670(0x16c)},'password':{'type':DataTypes[a879_0x4fa670(0x168)]},'fullname':{'type':DataTypes[a879_0x4fa670(0x168)]},'email':{'type':DataTypes[a879_0x4fa670(0x168)],'validate':{'isEmail':!![]},'set':function(_0x5c5e2f){const _0x3eae85=a879_0x4fa670;this['setDataValue']('email',typeof _0x5c5e2f===_0x3eae85(0x161)&&_0x5c5e2f[_0x3eae85(0x165)]()?_0x5c5e2f[_0x3eae85(0x165)]():null);}},'pager':{'type':DataTypes['STRING']},'tz':{'type':DataTypes[a879_0x4fa670(0x168)],'defaultValue':'central'},'attach':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':'yes','allowNull':![]},'saycid':{'type':DataTypes['ENUM'](a879_0x4fa670(0x162),'no'),'defaultValue':a879_0x4fa670(0x162),'allowNull':![]},'dialout':{'type':DataTypes['STRING']},'callback':{'type':DataTypes['STRING']},'review':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':'no','allowNull':![]},'operator':{'type':DataTypes['ENUM'](a879_0x4fa670(0x162),'no'),'defaultValue':'no','allowNull':![]},'envelope':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':'no','allowNull':![]},'sayduration':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':'no','allowNull':![]},'saydurationm':{'type':a879_0x4fa670(0x15e),'defaultValue':0x1,'allowNull':![]},'sendvoicemail':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':'no','allowNull':![]},'delete':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':'no','allowNull':![]},'nextaftercmd':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':a879_0x4fa670(0x162),'allowNull':![]},'forcename':{'type':DataTypes['ENUM'](a879_0x4fa670(0x162),'no'),'defaultValue':'no','allowNull':![]},'forcegreetings':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':'no','allowNull':![]},'hidefromdir':{'type':DataTypes[a879_0x4fa670(0x16b)](a879_0x4fa670(0x162),'no'),'defaultValue':a879_0x4fa670(0x162),'allowNull':![]},'stamp':{'type':'TIMESTAMP'},'emailsubject':{'type':DataTypes[a879_0x4fa670(0x168)]},'emailbody':{'type':DataTypes[a879_0x4fa670(0x168)]},'maxsecs':{'type':DataTypes[a879_0x4fa670(0x164)]({'length':0xff}),'defaultValue':0xb4,'allowNull':![]},'maxmsg':{'type':DataTypes[a879_0x4fa670(0x164)]({'length':0xff}),'defaultValue':0x64,'allowNull':![]},'name':{'type':DataTypes['VIRTUAL'],'get':function(){const _0x5020a5=a879_0x4fa670;return this[_0x5020a5(0x16a)](_0x5020a5(0x160))+_0x5020a5(0x166)+this['getDataValue'](_0x5020a5(0x169));}}};module[a879_0x4fa670(0x15f)]['attributes']=attributes; \ No newline at end of file +const a879_0x282f=['trim','\x20-\x20','yes','fullname','attributes','VIRTUAL','STRING','ENUM','contest_mailbox','email','getDataValue','sequelize','exports','from-voicemail','INTEGER','TINYINT(4)','central','TIMESTAMP','setDataValue'];(function(_0x121cdd,_0x51cb3c){const _0x282f10=function(_0x189bfd){while(--_0x189bfd){_0x121cdd['push'](_0x121cdd['shift']());}};_0x282f10(++_0x51cb3c);}(a879_0x282f,0xcd));const a879_0x189b=function(_0x121cdd,_0x51cb3c){_0x121cdd=_0x121cdd-0xc6;let _0x282f10=a879_0x282f[_0x121cdd];return _0x282f10;};const a879_0x22af6b=a879_0x189b;'use strict';const {DataTypes}=require(a879_0x22af6b(0xd5)),attributes={'customer_id':{'type':DataTypes['STRING']},'context':{'type':DataTypes[a879_0x22af6b(0xd0)],'defaultValue':a879_0x22af6b(0xd7),'unique':a879_0x22af6b(0xd2)},'mailbox':{'type':DataTypes['STRING'],'defaultValue':'','allowNull':![],'unique':a879_0x22af6b(0xd2)},'password':{'type':DataTypes[a879_0x22af6b(0xd0)]},'fullname':{'type':DataTypes[a879_0x22af6b(0xd0)]},'email':{'type':DataTypes['STRING'],'validate':{'isEmail':!![]},'set':function(_0x3e51c7){const _0x43cda4=a879_0x22af6b;this[_0x43cda4(0xc9)](_0x43cda4(0xd3),typeof _0x3e51c7==='string'&&_0x3e51c7[_0x43cda4(0xca)]()?_0x3e51c7[_0x43cda4(0xca)]():null);}},'pager':{'type':DataTypes[a879_0x22af6b(0xd0)]},'tz':{'type':DataTypes['STRING'],'defaultValue':a879_0x22af6b(0xc7)},'attach':{'type':DataTypes['ENUM']('yes','no'),'defaultValue':a879_0x22af6b(0xcc),'allowNull':![]},'saycid':{'type':DataTypes[a879_0x22af6b(0xd1)](a879_0x22af6b(0xcc),'no'),'defaultValue':'yes','allowNull':![]},'dialout':{'type':DataTypes[a879_0x22af6b(0xd0)]},'callback':{'type':DataTypes[a879_0x22af6b(0xd0)]},'review':{'type':DataTypes['ENUM'](a879_0x22af6b(0xcc),'no'),'defaultValue':'no','allowNull':![]},'operator':{'type':DataTypes['ENUM'](a879_0x22af6b(0xcc),'no'),'defaultValue':'no','allowNull':![]},'envelope':{'type':DataTypes[a879_0x22af6b(0xd1)](a879_0x22af6b(0xcc),'no'),'defaultValue':'no','allowNull':![]},'sayduration':{'type':DataTypes[a879_0x22af6b(0xd1)]('yes','no'),'defaultValue':'no','allowNull':![]},'saydurationm':{'type':a879_0x22af6b(0xc6),'defaultValue':0x1,'allowNull':![]},'sendvoicemail':{'type':DataTypes[a879_0x22af6b(0xd1)](a879_0x22af6b(0xcc),'no'),'defaultValue':'no','allowNull':![]},'delete':{'type':DataTypes[a879_0x22af6b(0xd1)](a879_0x22af6b(0xcc),'no'),'defaultValue':'no','allowNull':![]},'nextaftercmd':{'type':DataTypes[a879_0x22af6b(0xd1)](a879_0x22af6b(0xcc),'no'),'defaultValue':a879_0x22af6b(0xcc),'allowNull':![]},'forcename':{'type':DataTypes[a879_0x22af6b(0xd1)](a879_0x22af6b(0xcc),'no'),'defaultValue':'no','allowNull':![]},'forcegreetings':{'type':DataTypes['ENUM']('yes','no'),'defaultValue':'no','allowNull':![]},'hidefromdir':{'type':DataTypes[a879_0x22af6b(0xd1)](a879_0x22af6b(0xcc),'no'),'defaultValue':a879_0x22af6b(0xcc),'allowNull':![]},'stamp':{'type':a879_0x22af6b(0xc8)},'emailsubject':{'type':DataTypes[a879_0x22af6b(0xd0)]},'emailbody':{'type':DataTypes[a879_0x22af6b(0xd0)]},'maxsecs':{'type':DataTypes[a879_0x22af6b(0xd8)]({'length':0xff}),'defaultValue':0xb4,'allowNull':![]},'maxmsg':{'type':DataTypes['INTEGER']({'length':0xff}),'defaultValue':0x64,'allowNull':![]},'name':{'type':DataTypes[a879_0x22af6b(0xcf)],'get':function(){const _0x445c0f=a879_0x22af6b;return this[_0x445c0f(0xd4)](_0x445c0f(0xcd))+_0x445c0f(0xcb)+this[_0x445c0f(0xd4)]('mailbox');}}};module[a879_0x22af6b(0xd6)][a879_0x22af6b(0xce)]=attributes; \ No newline at end of file diff --git a/server/api/voiceMail/voiceMail.controller.js b/server/api/voiceMail/voiceMail.controller.js index ee747ee..01f4ddb 100644 --- a/server/api/voiceMail/voiceMail.controller.js +++ b/server/api/voiceMail/voiceMail.controller.js @@ -1 +1 @@ -const a880_0x5698=['VoiceMailMessage','keys','api','user','name','Content-Range','limit','includeAll','rawAttributes','attributes','options','map','pick','json','model','findAll','length','include','body','userProfileId','../../components/parsers/qs','stack','destroy','update','offset','VoiceMail','undefined','mailbox','catch','sort','Voicemails','order','filters','show','get','status','params','fields','nolimit','set','send','like','where','fieldName','end','UserProfileSection','intersection','merge','query','error','then','count','type','create','lodash','findAndCountAll','index','key','VIRTUAL','sequelize','filter','findOne'];(function(_0x4f08ca,_0x1b1c10){const _0x569877=function(_0x192aea){while(--_0x192aea){_0x4f08ca['push'](_0x4f08ca['shift']());}};_0x569877(++_0x1b1c10);}(a880_0x5698,0x197));const a880_0x192a=function(_0x4f08ca,_0x1b1c10){_0x4f08ca=_0x4f08ca-0x1ae;let _0x569877=a880_0x5698[_0x4f08ca];return _0x569877;};const a880_0x61fabe=a880_0x192a;'use strict';const _=require(a880_0x61fabe(0x1c1)),qs=require(a880_0x61fabe(0x1dd)),logger=require('../../config/logger')(a880_0x61fabe(0x1cb)),{db}=require('../../mysqldb'),{Op}=require(a880_0x61fabe(0x1c6));function respondWithResult(_0x582b02,_0x323175){return _0x323175=_0x323175||0xc8,function(_0x1fd4d3){const _0x536a68=a880_0x192a;if(_0x1fd4d3)return _0x582b02[_0x536a68(0x1ae)](_0x323175)[_0x536a68(0x1d6)](_0x1fd4d3);};}function respondWithFilteredResult(_0x116ad6,_0x1f9243){return function(_0x2d0a30){const _0x164f13=a880_0x192a;if(_0x2d0a30){const _0x18bdc9=_0x2d0a30[_0x164f13(0x1be)],_0x2b65b0=_0x1f9243['offset'];let _0x4e0985=_0x1f9243[_0x164f13(0x1e1)]+_0x1f9243[_0x164f13(0x1cf)],_0x531886;return _0x4e0985>=_0x18bdc9?(_0x4e0985=_0x18bdc9,_0x531886=0xc8):_0x531886=0xce,_0x116ad6[_0x164f13(0x1ae)](_0x531886),_0x116ad6[_0x164f13(0x1b2)](_0x164f13(0x1ce),_0x2b65b0+'-'+_0x4e0985+'/'+_0x18bdc9)[_0x164f13(0x1d6)](_0x2d0a30);}return null;};}function saveUpdates(_0x422dff){return function(_0x10acb7){const _0x136774=a880_0x192a;if(_0x10acb7)return _0x10acb7[_0x136774(0x1e0)](_0x422dff)[_0x136774(0x1bd)](function(_0x1b378b){return _0x1b378b;});return null;};}function removeEntity(_0x22a120){return function(_0x2cdf04){if(_0x2cdf04)return _0x2cdf04['destroy']()['then'](function(){const _0x3b8df1=a880_0x192a,_0x57165f=_0x2cdf04[_0x3b8df1(0x1eb)]({'plain':!![]}),_0x2534e6='Voicemails';return db['UserProfileResource'][_0x3b8df1(0x1df)]({'where':{'type':_0x2534e6,'resourceId':_0x57165f['id']}})['then'](function(){return _0x2cdf04;});})['then'](function(){const _0x266d3d=a880_0x192a;_0x22a120[_0x266d3d(0x1ae)](0xcc)[_0x266d3d(0x1b7)]();});};}function handleEntityNotFound(_0x290bb4){return function(_0x4873e5){return!_0x4873e5&&_0x290bb4['sendStatus'](0x194),_0x4873e5;};}function handleError(_0x4b29c0,_0x638ca5){return _0x638ca5=_0x638ca5||0x1f4,function(_0x2dc755){const _0x22b033=a880_0x192a;logger[_0x22b033(0x1bc)](_0x2dc755[_0x22b033(0x1de)]),_0x2dc755[_0x22b033(0x1cd)]&&delete _0x2dc755[_0x22b033(0x1cd)],_0x4b29c0[_0x22b033(0x1ae)](_0x638ca5)[_0x22b033(0x1b3)](_0x2dc755);};}exports[a880_0x61fabe(0x1c3)]=function(_0x28ccda,_0x27cc24){const _0x1127d9=a880_0x61fabe;let _0x379771={};const _0x280ad4={},_0x261492={'count':0x0,'rows':[]},_0x2c6040=_[_0x1127d9(0x1d4)](db[_0x1127d9(0x1e2)][_0x1127d9(0x1d1)],function(_0x223091){const _0x494922=_0x1127d9;return{'name':_0x223091[_0x494922(0x1b6)],'type':_0x223091[_0x494922(0x1bf)][_0x494922(0x1c4)]};});_0x280ad4['model']=_[_0x1127d9(0x1d4)](_0x2c6040,_0x1127d9(0x1cd)),_0x280ad4[_0x1127d9(0x1bb)]=_[_0x1127d9(0x1ca)](_0x28ccda[_0x1127d9(0x1bb)]),_0x280ad4['filters']=_[_0x1127d9(0x1b9)](_0x280ad4['model'],_0x280ad4[_0x1127d9(0x1bb)]),_0x379771['attributes']=_[_0x1127d9(0x1b9)](_0x280ad4[_0x1127d9(0x1d7)],qs[_0x1127d9(0x1b0)](_0x28ccda[_0x1127d9(0x1bb)]['fields'])),_0x379771[_0x1127d9(0x1d2)]=_0x379771['attributes'][_0x1127d9(0x1d9)]?_0x379771[_0x1127d9(0x1d2)]:_0x280ad4[_0x1127d9(0x1d7)];typeof _0x28ccda[_0x1127d9(0x1bb)]['nolimit']===_0x1127d9(0x1e3)&&(_0x379771[_0x1127d9(0x1cf)]=qs[_0x1127d9(0x1cf)](_0x28ccda[_0x1127d9(0x1bb)][_0x1127d9(0x1cf)]),_0x379771[_0x1127d9(0x1e1)]=qs[_0x1127d9(0x1e1)](_0x28ccda['query'][_0x1127d9(0x1e1)]));_0x379771[_0x1127d9(0x1e8)]=qs[_0x1127d9(0x1e6)](_0x28ccda[_0x1127d9(0x1bb)]['sort']),_0x379771['where']=qs[_0x1127d9(0x1e9)](_[_0x1127d9(0x1d5)](_0x28ccda[_0x1127d9(0x1bb)],_0x280ad4[_0x1127d9(0x1e9)]),_0x2c6040);_0x28ccda[_0x1127d9(0x1bb)][_0x1127d9(0x1c7)]&&(_0x379771[_0x1127d9(0x1b5)]=_[_0x1127d9(0x1ba)](_0x379771[_0x1127d9(0x1b5)],{[Op['or']]:_[_0x1127d9(0x1d4)](_0x2c6040,function(_0x510ddc){const _0x2bb108=_0x1127d9;if(_0x510ddc[_0x2bb108(0x1bf)]!==_0x2bb108(0x1c5)){const _0x4cccb6={};return _0x4cccb6[_0x510ddc['name']]={[Op[_0x2bb108(0x1b4)]]:'%'+_0x28ccda[_0x2bb108(0x1bb)][_0x2bb108(0x1c7)]+'%'},_0x4cccb6;}})}));_0x379771=_[_0x1127d9(0x1ba)]({},_0x379771,_0x28ccda['options']);const _0x3142f5={'where':_0x379771['where']};return db['VoiceMail'][_0x1127d9(0x1be)](_0x3142f5)[_0x1127d9(0x1bd)](function(_0x40f272){const _0x5c9fc3=_0x1127d9;return _0x261492[_0x5c9fc3(0x1be)]=_0x40f272,_0x28ccda[_0x5c9fc3(0x1bb)][_0x5c9fc3(0x1d0)]&&(_0x379771[_0x5c9fc3(0x1da)]=[{'all':!![]}]),db['VoiceMail'][_0x5c9fc3(0x1d8)](_0x379771);})['then'](function(_0x5ee982){return _0x261492['rows']=_0x5ee982,_0x261492;})[_0x1127d9(0x1bd)](respondWithFilteredResult(_0x27cc24,_0x379771))[_0x1127d9(0x1e5)](handleError(_0x27cc24,null));},exports[a880_0x61fabe(0x1ea)]=function(_0x2cd5f2,_0x3953c3){const _0x306124=a880_0x61fabe;let _0x5e426c={'raw':!![],'where':{'id':_0x2cd5f2['params']['id']}};const _0x217dad={};return _0x217dad['model']=_[_0x306124(0x1ca)](db['VoiceMail']['rawAttributes']),_0x217dad[_0x306124(0x1bb)]=_[_0x306124(0x1ca)](_0x2cd5f2[_0x306124(0x1bb)]),_0x217dad['filters']=_[_0x306124(0x1b9)](_0x217dad[_0x306124(0x1d7)],_0x217dad[_0x306124(0x1bb)]),_0x5e426c[_0x306124(0x1d2)]=_[_0x306124(0x1b9)](_0x217dad['model'],qs[_0x306124(0x1b0)](_0x2cd5f2[_0x306124(0x1bb)][_0x306124(0x1b0)])),_0x5e426c[_0x306124(0x1d2)]=_0x5e426c[_0x306124(0x1d2)][_0x306124(0x1d9)]?_0x5e426c['attributes']:_0x217dad[_0x306124(0x1d7)],_0x2cd5f2['query'][_0x306124(0x1d0)]&&(_0x5e426c[_0x306124(0x1da)]=[{'all':!![]}]),_0x5e426c=_[_0x306124(0x1ba)]({},_0x5e426c,_0x2cd5f2[_0x306124(0x1d3)]),db[_0x306124(0x1e2)][_0x306124(0x1c8)](_0x5e426c)[_0x306124(0x1bd)](handleEntityNotFound(_0x3953c3,null))[_0x306124(0x1bd)](respondWithResult(_0x3953c3,null))[_0x306124(0x1e5)](handleError(_0x3953c3,null));},exports['create']=function(_0xcddba1,_0x44188a){const _0x4103db=a880_0x61fabe;return db[_0x4103db(0x1e2)]['create'](_0xcddba1['body'],{})[_0x4103db(0x1bd)](function(_0x5abaa6){const _0x1c0e11=_0x4103db,_0x42336d=_0xcddba1[_0x1c0e11(0x1cc)]['get']({'plain':!![]});if(!_0x42336d)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x42336d['role']==='user'){const _0x975bad=_0x5abaa6['get']({'plain':!![]}),_0x4cda52=_0x1c0e11(0x1e7);return db[_0x1c0e11(0x1b8)][_0x1c0e11(0x1c8)]({'where':{'name':_0x4cda52,'userProfileId':_0x42336d[_0x1c0e11(0x1dc)]},'raw':!![]})[_0x1c0e11(0x1bd)](function(_0x2f0215){const _0x17fe99=_0x1c0e11;return _0x2f0215&&_0x2f0215['autoAssociation']===0x0?db['UserProfileResource'][_0x17fe99(0x1c0)]({'name':_0x975bad[_0x17fe99(0x1cd)],'resourceId':_0x975bad['id'],'type':_0x2f0215[_0x17fe99(0x1cd)],'sectionId':_0x2f0215['id']},{})[_0x17fe99(0x1bd)](function(){return _0x5abaa6;}):_0x5abaa6;})[_0x1c0e11(0x1e5)](function(_0x449812){const _0x516ae7=_0x1c0e11;logger[_0x516ae7(0x1bc)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x449812);throw _0x449812;});}return _0x5abaa6;})['then'](respondWithResult(_0x44188a,0xc9))[_0x4103db(0x1e5)](handleError(_0x44188a,null));},exports['update']=function(_0x2ddf38,_0x6521af){const _0x1338bf=a880_0x61fabe;return _0x2ddf38[_0x1338bf(0x1db)]['id']&&delete _0x2ddf38[_0x1338bf(0x1db)]['id'],db['VoiceMail']['findOne']({'where':{'id':_0x2ddf38[_0x1338bf(0x1af)]['id']}})[_0x1338bf(0x1bd)](handleEntityNotFound(_0x6521af,null))[_0x1338bf(0x1bd)](saveUpdates(_0x2ddf38[_0x1338bf(0x1db)],null))[_0x1338bf(0x1bd)](respondWithResult(_0x6521af,null))[_0x1338bf(0x1e5)](handleError(_0x6521af,null));},exports['destroy']=function(_0x3d09a8,_0x2741a2){const _0x1b9d67=a880_0x61fabe;return db['VoiceMail'][_0x1b9d67(0x1c8)]({'where':{'id':_0x3d09a8[_0x1b9d67(0x1af)]['id']}})[_0x1b9d67(0x1bd)](handleEntityNotFound(_0x2741a2,null))[_0x1b9d67(0x1bd)](removeEntity(_0x2741a2,null))[_0x1b9d67(0x1e5)](handleError(_0x2741a2,null));},exports['getMessages']=function(_0x1fb04b,_0x1755f2){const _0x40a10c=a880_0x61fabe;return db[_0x40a10c(0x1e2)][_0x40a10c(0x1c8)]({'where':{'id':_0x1fb04b[_0x40a10c(0x1af)]['id']}})[_0x40a10c(0x1bd)](handleEntityNotFound(_0x1755f2,null))[_0x40a10c(0x1bd)](function(_0x11d01e){const _0x132263=_0x40a10c;let _0x25aed6={};const _0xf3068b={};return _0xf3068b[_0x132263(0x1d7)]=_[_0x132263(0x1ca)](db[_0x132263(0x1c9)]['rawAttributes']),_0xf3068b[_0x132263(0x1bb)]=_[_0x132263(0x1ca)](_0x1fb04b[_0x132263(0x1bb)]),_0xf3068b[_0x132263(0x1e9)]=_[_0x132263(0x1b9)](_0xf3068b['model'],_0xf3068b[_0x132263(0x1bb)]),_0x25aed6[_0x132263(0x1d2)]=_[_0x132263(0x1b9)](_0xf3068b[_0x132263(0x1d7)],qs[_0x132263(0x1b0)](_0x1fb04b[_0x132263(0x1bb)][_0x132263(0x1b0)])),_0x25aed6[_0x132263(0x1d2)]=_0x25aed6['attributes']['length']?_0x25aed6[_0x132263(0x1d2)]:_0xf3068b[_0x132263(0x1d7)],typeof _0x1fb04b[_0x132263(0x1bb)][_0x132263(0x1b1)]===_0x132263(0x1e3)&&(_0x25aed6[_0x132263(0x1cf)]=qs[_0x132263(0x1cf)](_0x1fb04b[_0x132263(0x1bb)][_0x132263(0x1cf)]),_0x25aed6[_0x132263(0x1e1)]=qs[_0x132263(0x1e1)](_0x1fb04b[_0x132263(0x1bb)][_0x132263(0x1e1)])),_0x25aed6['order']=qs[_0x132263(0x1e6)](_0x1fb04b[_0x132263(0x1bb)][_0x132263(0x1e6)]),_0x25aed6[_0x132263(0x1b5)]=qs[_0x132263(0x1e9)](_[_0x132263(0x1d5)](_0x1fb04b[_0x132263(0x1bb)],_0xf3068b[_0x132263(0x1e9)])),_0x1fb04b[_0x132263(0x1bb)][_0x132263(0x1c7)]&&(_0x25aed6[_0x132263(0x1b5)]=_[_0x132263(0x1ba)](_0x25aed6[_0x132263(0x1b5)],{[Op['or']]:_[_0x132263(0x1d4)](_0x25aed6[_0x132263(0x1d2)],function(_0x272d68){const _0x191313=_0x132263,_0x1b0d07={};return _0x1b0d07[_0x272d68]={[Op['like']]:'%'+_0x1fb04b[_0x191313(0x1bb)][_0x191313(0x1c7)]+'%'},_0x1b0d07;})})),_0x25aed6[_0x132263(0x1b5)]=_[_0x132263(0x1ba)](_0x25aed6[_0x132263(0x1b5)],{'mailboxuser':_0x11d01e[_0x132263(0x1e4)]}),_0x25aed6=_['merge']({},_0x25aed6,_0x1fb04b[_0x132263(0x1d3)]),db[_0x132263(0x1c9)][_0x132263(0x1c2)](_0x25aed6)[_0x132263(0x1bd)](respondWithFilteredResult(_0x1755f2,_0x25aed6));})[_0x40a10c(0x1e5)](handleError(_0x1755f2,null));}; \ No newline at end of file +const a880_0x5c02=['UserProfileResource','UserProfileSection','filter','fields','status','create','nolimit','findOne','keys','destroy','undefined','include','mailbox','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','intersection','sendStatus','VoiceMail','length','../../components/parsers/qs','set','merge','Content-Range','send','update','options','body','user','rows','limit','json','get','like','findAll','attributes','userProfileId','VIRTUAL','stack','params','sort','findAndCountAll','autoAssociation','count','order','filters','includeAll','rawAttributes','catch','VoiceMailMessage','../../mysqldb','model','sequelize','../../config/logger','offset','show','query','api','pick','name','map','where','then','fieldName','end'];(function(_0x3a321b,_0x3d49b7){const _0x5c0239=function(_0x495d95){while(--_0x495d95){_0x3a321b['push'](_0x3a321b['shift']());}};_0x5c0239(++_0x3d49b7);}(a880_0x5c02,0x1e6));const a880_0x495d=function(_0x3a321b,_0x3d49b7){_0x3a321b=_0x3a321b-0x98;let _0x5c0239=a880_0x5c02[_0x3a321b];return _0x5c0239;};const a880_0x3d0dce=a880_0x495d;'use strict';const _=require('lodash'),qs=require(a880_0x3d0dce(0xbc)),logger=require(a880_0x3d0dce(0x9e))(a880_0x3d0dce(0xa2)),{db}=require(a880_0x3d0dce(0x9b)),{Op}=require(a880_0x3d0dce(0x9d));function respondWithResult(_0xf28344,_0x358c44){return _0x358c44=_0x358c44||0xc8,function(_0x7729b3){const _0x1dfa65=a880_0x495d;if(_0x7729b3)return _0xf28344['status'](_0x358c44)[_0x1dfa65(0xc7)](_0x7729b3);};}function respondWithFilteredResult(_0x33e639,_0x3f00c8){return function(_0x43359a){const _0x2b4316=a880_0x495d;if(_0x43359a){const _0x38c796=_0x43359a[_0x2b4316(0xd3)],_0x34c6f5=_0x3f00c8[_0x2b4316(0x9f)];let _0x536ea7=_0x3f00c8[_0x2b4316(0x9f)]+_0x3f00c8[_0x2b4316(0xc6)],_0x1e425b;return _0x536ea7>=_0x38c796?(_0x536ea7=_0x38c796,_0x1e425b=0xc8):_0x1e425b=0xce,_0x33e639[_0x2b4316(0xae)](_0x1e425b),_0x33e639[_0x2b4316(0xbd)](_0x2b4316(0xbf),_0x34c6f5+'-'+_0x536ea7+'/'+_0x38c796)[_0x2b4316(0xc7)](_0x43359a);}return null;};}function saveUpdates(_0xe9999b){return function(_0x31047e){const _0xe0c9a3=a880_0x495d;if(_0x31047e)return _0x31047e['update'](_0xe9999b)[_0xe0c9a3(0xa7)](function(_0x53bcab){return _0x53bcab;});return null;};}function removeEntity(_0x464dc5){return function(_0x3344c8){const _0x95c713=a880_0x495d;if(_0x3344c8)return _0x3344c8[_0x95c713(0xb3)]()[_0x95c713(0xa7)](function(){const _0x59909c=_0x95c713,_0x1eedbe=_0x3344c8[_0x59909c(0xc8)]({'plain':!![]}),_0x2312a0='Voicemails';return db[_0x59909c(0xaa)][_0x59909c(0xb3)]({'where':{'type':_0x2312a0,'resourceId':_0x1eedbe['id']}})[_0x59909c(0xa7)](function(){return _0x3344c8;});})[_0x95c713(0xa7)](function(){const _0x47fc78=_0x95c713;_0x464dc5['status'](0xcc)[_0x47fc78(0xa9)]();});};}function handleEntityNotFound(_0x58691d){return function(_0x1df848){const _0x45ba81=a880_0x495d;return!_0x1df848&&_0x58691d[_0x45ba81(0xb9)](0x194),_0x1df848;};}function handleError(_0x2b7441,_0x5e8758){return _0x5e8758=_0x5e8758||0x1f4,function(_0x557016){const _0xa2d4df=a880_0x495d;logger['error'](_0x557016[_0xa2d4df(0xce)]),_0x557016[_0xa2d4df(0xa4)]&&delete _0x557016[_0xa2d4df(0xa4)],_0x2b7441[_0xa2d4df(0xae)](_0x5e8758)[_0xa2d4df(0xc0)](_0x557016);};}exports['index']=function(_0x39772f,_0x33aab8){const _0x4f140d=a880_0x3d0dce;let _0x4fc53a={};const _0x587dcc={},_0x4dced9={'count':0x0,'rows':[]},_0x2c3a95=_['map'](db[_0x4f140d(0xba)][_0x4f140d(0x98)],function(_0x197a2e){const _0x2c1597=_0x4f140d;return{'name':_0x197a2e[_0x2c1597(0xa8)],'type':_0x197a2e['type']['key']};});_0x587dcc['model']=_[_0x4f140d(0xa5)](_0x2c3a95,_0x4f140d(0xa4)),_0x587dcc[_0x4f140d(0xa1)]=_[_0x4f140d(0xb2)](_0x39772f[_0x4f140d(0xa1)]),_0x587dcc[_0x4f140d(0xd5)]=_[_0x4f140d(0xb8)](_0x587dcc['model'],_0x587dcc[_0x4f140d(0xa1)]),_0x4fc53a[_0x4f140d(0xcb)]=_[_0x4f140d(0xb8)](_0x587dcc[_0x4f140d(0x9c)],qs[_0x4f140d(0xad)](_0x39772f[_0x4f140d(0xa1)][_0x4f140d(0xad)])),_0x4fc53a['attributes']=_0x4fc53a[_0x4f140d(0xcb)][_0x4f140d(0xbb)]?_0x4fc53a[_0x4f140d(0xcb)]:_0x587dcc[_0x4f140d(0x9c)];typeof _0x39772f[_0x4f140d(0xa1)][_0x4f140d(0xb0)]===_0x4f140d(0xb4)&&(_0x4fc53a['limit']=qs[_0x4f140d(0xc6)](_0x39772f[_0x4f140d(0xa1)][_0x4f140d(0xc6)]),_0x4fc53a[_0x4f140d(0x9f)]=qs['offset'](_0x39772f[_0x4f140d(0xa1)]['offset']));_0x4fc53a[_0x4f140d(0xd4)]=qs['sort'](_0x39772f[_0x4f140d(0xa1)][_0x4f140d(0xd0)]),_0x4fc53a[_0x4f140d(0xa6)]=qs['filters'](_[_0x4f140d(0xa3)](_0x39772f[_0x4f140d(0xa1)],_0x587dcc['filters']),_0x2c3a95);_0x39772f[_0x4f140d(0xa1)][_0x4f140d(0xac)]&&(_0x4fc53a[_0x4f140d(0xa6)]=_[_0x4f140d(0xbe)](_0x4fc53a[_0x4f140d(0xa6)],{[Op['or']]:_[_0x4f140d(0xa5)](_0x2c3a95,function(_0x305106){const _0x4bc219=_0x4f140d;if(_0x305106['type']!==_0x4bc219(0xcd)){const _0x32a609={};return _0x32a609[_0x305106[_0x4bc219(0xa4)]]={[Op[_0x4bc219(0xc9)]]:'%'+_0x39772f['query'][_0x4bc219(0xac)]+'%'},_0x32a609;}})}));_0x4fc53a=_[_0x4f140d(0xbe)]({},_0x4fc53a,_0x39772f[_0x4f140d(0xc2)]);const _0x82e4b7={'where':_0x4fc53a[_0x4f140d(0xa6)]};return db['VoiceMail'][_0x4f140d(0xd3)](_0x82e4b7)[_0x4f140d(0xa7)](function(_0x56f475){const _0x47619b=_0x4f140d;return _0x4dced9[_0x47619b(0xd3)]=_0x56f475,_0x39772f[_0x47619b(0xa1)]['includeAll']&&(_0x4fc53a[_0x47619b(0xb5)]=[{'all':!![]}]),db[_0x47619b(0xba)][_0x47619b(0xca)](_0x4fc53a);})['then'](function(_0x669cb0){const _0x3ab780=_0x4f140d;return _0x4dced9[_0x3ab780(0xc5)]=_0x669cb0,_0x4dced9;})[_0x4f140d(0xa7)](respondWithFilteredResult(_0x33aab8,_0x4fc53a))[_0x4f140d(0x99)](handleError(_0x33aab8,null));},exports[a880_0x3d0dce(0xa0)]=function(_0x553fe7,_0x26602f){const _0x102dcf=a880_0x3d0dce;let _0x27779b={'raw':!![],'where':{'id':_0x553fe7[_0x102dcf(0xcf)]['id']}};const _0x1d3a02={};return _0x1d3a02[_0x102dcf(0x9c)]=_[_0x102dcf(0xb2)](db['VoiceMail']['rawAttributes']),_0x1d3a02[_0x102dcf(0xa1)]=_[_0x102dcf(0xb2)](_0x553fe7[_0x102dcf(0xa1)]),_0x1d3a02[_0x102dcf(0xd5)]=_['intersection'](_0x1d3a02[_0x102dcf(0x9c)],_0x1d3a02[_0x102dcf(0xa1)]),_0x27779b['attributes']=_[_0x102dcf(0xb8)](_0x1d3a02[_0x102dcf(0x9c)],qs['fields'](_0x553fe7[_0x102dcf(0xa1)][_0x102dcf(0xad)])),_0x27779b[_0x102dcf(0xcb)]=_0x27779b[_0x102dcf(0xcb)][_0x102dcf(0xbb)]?_0x27779b[_0x102dcf(0xcb)]:_0x1d3a02[_0x102dcf(0x9c)],_0x553fe7[_0x102dcf(0xa1)][_0x102dcf(0xd6)]&&(_0x27779b['include']=[{'all':!![]}]),_0x27779b=_['merge']({},_0x27779b,_0x553fe7[_0x102dcf(0xc2)]),db[_0x102dcf(0xba)][_0x102dcf(0xb1)](_0x27779b)['then'](handleEntityNotFound(_0x26602f,null))[_0x102dcf(0xa7)](respondWithResult(_0x26602f,null))['catch'](handleError(_0x26602f,null));},exports[a880_0x3d0dce(0xaf)]=function(_0x2fdf57,_0x4f24e1){const _0x304d28=a880_0x3d0dce;return db['VoiceMail'][_0x304d28(0xaf)](_0x2fdf57[_0x304d28(0xc3)],{})[_0x304d28(0xa7)](function(_0x4ebeaf){const _0x177876=_0x304d28,_0x3a0db2=_0x2fdf57['user'][_0x177876(0xc8)]({'plain':!![]});if(!_0x3a0db2)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x3a0db2['role']===_0x177876(0xc4)){const _0x372f7c=_0x4ebeaf['get']({'plain':!![]}),_0x51723a='Voicemails';return db[_0x177876(0xab)][_0x177876(0xb1)]({'where':{'name':_0x51723a,'userProfileId':_0x3a0db2[_0x177876(0xcc)]},'raw':!![]})[_0x177876(0xa7)](function(_0x514d66){const _0x3e2538=_0x177876;return _0x514d66&&_0x514d66[_0x3e2538(0xd2)]===0x0?db[_0x3e2538(0xaa)][_0x3e2538(0xaf)]({'name':_0x372f7c[_0x3e2538(0xa4)],'resourceId':_0x372f7c['id'],'type':_0x514d66[_0x3e2538(0xa4)],'sectionId':_0x514d66['id']},{})[_0x3e2538(0xa7)](function(){return _0x4ebeaf;}):_0x4ebeaf;})[_0x177876(0x99)](function(_0x55d08f){const _0x51bfc7=_0x177876;logger['error'](_0x51bfc7(0xb7),_0x55d08f);throw _0x55d08f;});}return _0x4ebeaf;})['then'](respondWithResult(_0x4f24e1,0xc9))[_0x304d28(0x99)](handleError(_0x4f24e1,null));},exports[a880_0x3d0dce(0xc1)]=function(_0x40a1d2,_0x31939f){const _0x5df993=a880_0x3d0dce;return _0x40a1d2[_0x5df993(0xc3)]['id']&&delete _0x40a1d2['body']['id'],db[_0x5df993(0xba)][_0x5df993(0xb1)]({'where':{'id':_0x40a1d2['params']['id']}})[_0x5df993(0xa7)](handleEntityNotFound(_0x31939f,null))['then'](saveUpdates(_0x40a1d2['body'],null))[_0x5df993(0xa7)](respondWithResult(_0x31939f,null))[_0x5df993(0x99)](handleError(_0x31939f,null));},exports[a880_0x3d0dce(0xb3)]=function(_0xe4d7c2,_0x3044b0){const _0x4a4e29=a880_0x3d0dce;return db[_0x4a4e29(0xba)]['findOne']({'where':{'id':_0xe4d7c2[_0x4a4e29(0xcf)]['id']}})[_0x4a4e29(0xa7)](handleEntityNotFound(_0x3044b0,null))['then'](removeEntity(_0x3044b0,null))[_0x4a4e29(0x99)](handleError(_0x3044b0,null));},exports['getMessages']=function(_0x512114,_0x578996){const _0x34c216=a880_0x3d0dce;return db[_0x34c216(0xba)][_0x34c216(0xb1)]({'where':{'id':_0x512114['params']['id']}})['then'](handleEntityNotFound(_0x578996,null))['then'](function(_0x592b39){const _0x4f2044=_0x34c216;let _0x2a85d1={};const _0x57e585={};return _0x57e585[_0x4f2044(0x9c)]=_[_0x4f2044(0xb2)](db[_0x4f2044(0x9a)][_0x4f2044(0x98)]),_0x57e585[_0x4f2044(0xa1)]=_[_0x4f2044(0xb2)](_0x512114[_0x4f2044(0xa1)]),_0x57e585[_0x4f2044(0xd5)]=_[_0x4f2044(0xb8)](_0x57e585[_0x4f2044(0x9c)],_0x57e585[_0x4f2044(0xa1)]),_0x2a85d1[_0x4f2044(0xcb)]=_[_0x4f2044(0xb8)](_0x57e585[_0x4f2044(0x9c)],qs[_0x4f2044(0xad)](_0x512114['query'][_0x4f2044(0xad)])),_0x2a85d1[_0x4f2044(0xcb)]=_0x2a85d1[_0x4f2044(0xcb)]['length']?_0x2a85d1['attributes']:_0x57e585[_0x4f2044(0x9c)],typeof _0x512114['query'][_0x4f2044(0xb0)]===_0x4f2044(0xb4)&&(_0x2a85d1[_0x4f2044(0xc6)]=qs[_0x4f2044(0xc6)](_0x512114[_0x4f2044(0xa1)][_0x4f2044(0xc6)]),_0x2a85d1[_0x4f2044(0x9f)]=qs['offset'](_0x512114['query'][_0x4f2044(0x9f)])),_0x2a85d1[_0x4f2044(0xd4)]=qs['sort'](_0x512114['query'][_0x4f2044(0xd0)]),_0x2a85d1['where']=qs[_0x4f2044(0xd5)](_['pick'](_0x512114[_0x4f2044(0xa1)],_0x57e585[_0x4f2044(0xd5)])),_0x512114['query'][_0x4f2044(0xac)]&&(_0x2a85d1[_0x4f2044(0xa6)]=_[_0x4f2044(0xbe)](_0x2a85d1[_0x4f2044(0xa6)],{[Op['or']]:_[_0x4f2044(0xa5)](_0x2a85d1[_0x4f2044(0xcb)],function(_0x284c77){const _0x11cfa4=_0x4f2044,_0x3692f5={};return _0x3692f5[_0x284c77]={[Op[_0x11cfa4(0xc9)]]:'%'+_0x512114['query'][_0x11cfa4(0xac)]+'%'},_0x3692f5;})})),_0x2a85d1[_0x4f2044(0xa6)]=_['merge'](_0x2a85d1[_0x4f2044(0xa6)],{'mailboxuser':_0x592b39[_0x4f2044(0xb6)]}),_0x2a85d1=_[_0x4f2044(0xbe)]({},_0x2a85d1,_0x512114['options']),db[_0x4f2044(0x9a)][_0x4f2044(0xd1)](_0x2a85d1)[_0x4f2044(0xa7)](respondWithFilteredResult(_0x578996,_0x2a85d1));})['catch'](handleError(_0x578996,null));}; \ No newline at end of file diff --git a/server/api/voiceMail/voiceMail.model.js b/server/api/voiceMail/voiceMail.model.js index 1e39450..8c152f6 100644 --- a/server/api/voiceMail/voiceMail.model.js +++ b/server/api/voiceMail/voiceMail.model.js @@ -1 +1 @@ -const a881_0x1f09=['./voiceMail.attributes','VoiceMail','init','sequelize','./voiceMail.options','exports','function'];(function(_0x1b3db5,_0x516196){const _0x1f0964=function(_0x34d612){while(--_0x34d612){_0x1b3db5['push'](_0x1b3db5['shift']());}};_0x1f0964(++_0x516196);}(a881_0x1f09,0x19d));const a881_0x34d6=function(_0x1b3db5,_0x516196){_0x1b3db5=_0x1b3db5-0x14d;let _0x1f0964=a881_0x1f09[_0x1b3db5];return _0x1f0964;};const a881_0x139973=a881_0x34d6;'use strict';const {Model}=require(a881_0x139973(0x150)),{attributes}=require(a881_0x139973(0x14d)),{options}=require(a881_0x139973(0x151));class VoiceMail extends Model{}function init(_0x24ca3f,_0x4fa34c){const _0x211e54=a881_0x139973,_0x486778=options(_0x24ca3f),_0x2fa422=typeof _0x4fa34c===_0x211e54(0x153)?_0x4fa34c(_0x486778):_0x486778;return VoiceMail[_0x211e54(0x14f)](attributes,_0x2fa422),VoiceMail;}module[a881_0x139973(0x152)][a881_0x139973(0x14e)]=VoiceMail,module['exports'][a881_0x139973(0x14f)]=init; \ No newline at end of file +const a881_0x2859=['./voiceMail.attributes','sequelize','VoiceMail','function','exports'];(function(_0x347c0b,_0x1de913){const _0x2859d1=function(_0x49abe9){while(--_0x49abe9){_0x347c0b['push'](_0x347c0b['shift']());}};_0x2859d1(++_0x1de913);}(a881_0x2859,0xdc));const a881_0x49ab=function(_0x347c0b,_0x1de913){_0x347c0b=_0x347c0b-0x87;let _0x2859d1=a881_0x2859[_0x347c0b];return _0x2859d1;};const a881_0x3e482b=a881_0x49ab;'use strict';const {Model}=require(a881_0x3e482b(0x88)),{attributes}=require(a881_0x3e482b(0x87)),{options}=require('./voiceMail.options');class VoiceMail extends Model{}function init(_0x5ec277,_0x5a6a01){const _0xd4add1=a881_0x3e482b,_0x4e3203=options(_0x5ec277),_0x392c9b=typeof _0x5a6a01===_0xd4add1(0x8a)?_0x5a6a01(_0x4e3203):_0x4e3203;return VoiceMail['init'](attributes,_0x392c9b),VoiceMail;}module[a881_0x3e482b(0x8b)][a881_0x3e482b(0x89)]=VoiceMail,module[a881_0x3e482b(0x8b)]['init']=init; \ No newline at end of file diff --git a/server/api/voiceMail/voiceMail.options.js b/server/api/voiceMail/voiceMail.options.js index 407daf7..716a67c 100644 --- a/server/api/voiceMail/voiceMail.options.js +++ b/server/api/voiceMail/voiceMail.options.js @@ -1 +1 @@ -var a882_0x2e82=['options','mailbox','mailbox_context','voice_voicemail','exports','context'];(function(_0x5c3a5f,_0x4dd18d){var _0x2e8223=function(_0x1152d2){while(--_0x1152d2){_0x5c3a5f['push'](_0x5c3a5f['shift']());}};_0x2e8223(++_0x4dd18d);}(a882_0x2e82,0x146));var a882_0x1152=function(_0x5c3a5f,_0x4dd18d){_0x5c3a5f=_0x5c3a5f-0x1ae;var _0x2e8223=a882_0x2e82[_0x5c3a5f];return _0x2e8223;};var a882_0x4d0aa3=a882_0x1152;function options(_0x1517de){var _0x39e9eb=a882_0x1152;return{'sequelize':_0x1517de,'tableName':_0x39e9eb(0x1af),'paranoid':![],'indexes':[{'name':_0x39e9eb(0x1ae),'fields':[_0x39e9eb(0x1b3),_0x39e9eb(0x1b1)]}],'timestamps':!![]};}module[a882_0x4d0aa3(0x1b0)][a882_0x4d0aa3(0x1b2)]=options; \ No newline at end of file +var a882_0x2ad6=['mailbox_context','voice_voicemail','exports','mailbox'];(function(_0x527503,_0x3cb43f){var _0x2ad628=function(_0x4f5e11){while(--_0x4f5e11){_0x527503['push'](_0x527503['shift']());}};_0x2ad628(++_0x3cb43f);}(a882_0x2ad6,0x15d));var a882_0x4f5e=function(_0x527503,_0x3cb43f){_0x527503=_0x527503-0x194;var _0x2ad628=a882_0x2ad6[_0x527503];return _0x2ad628;};var a882_0x23fd17=a882_0x4f5e;function options(_0x6173df){var _0x259bcb=a882_0x4f5e;return{'sequelize':_0x6173df,'tableName':_0x259bcb(0x194),'paranoid':![],'indexes':[{'name':_0x259bcb(0x197),'fields':[_0x259bcb(0x196),'context']}],'timestamps':!![]};}module[a882_0x23fd17(0x195)]['options']=options; \ No newline at end of file diff --git a/server/api/voiceMailMessage/index.js b/server/api/voiceMailMessage/index.js index 5621fec..47b894a 100644 --- a/server/api/voiceMailMessage/index.js +++ b/server/api/voiceMailMessage/index.js @@ -1 +1 @@ -const a883_0x5dde=['download','../../components/auth/service','index','create','/:id/download','isAuthenticated','get','post','update','/:id','./voiceMailMessage.controller','destroy','express','exports','show','Router'];(function(_0x6e369e,_0x524aaf){const _0x5ddef4=function(_0x2932b8){while(--_0x2932b8){_0x6e369e['push'](_0x6e369e['shift']());}};_0x5ddef4(++_0x524aaf);}(a883_0x5dde,0x17a));const a883_0x2932=function(_0x6e369e,_0x524aaf){_0x6e369e=_0x6e369e-0x172;let _0x5ddef4=a883_0x5dde[_0x6e369e];return _0x5ddef4;};const a883_0x337b5c=a883_0x2932;'use strict';const express=require(a883_0x337b5c(0x174)),router=express[a883_0x337b5c(0x177)](),auth=require(a883_0x337b5c(0x179)),controller=require(a883_0x337b5c(0x172));router[a883_0x337b5c(0x17e)]('/',auth[a883_0x337b5c(0x17d)](),controller[a883_0x337b5c(0x17a)]),router['get'](a883_0x337b5c(0x181),auth[a883_0x337b5c(0x17d)](),controller[a883_0x337b5c(0x176)]),router[a883_0x337b5c(0x17e)](a883_0x337b5c(0x17c),auth['isAuthenticated'](),controller[a883_0x337b5c(0x178)]),router[a883_0x337b5c(0x17f)]('/',auth['isAuthenticated'](),controller[a883_0x337b5c(0x17b)]),router['put'](a883_0x337b5c(0x181),auth[a883_0x337b5c(0x17d)](),controller[a883_0x337b5c(0x180)]),router['delete']('/:id',auth[a883_0x337b5c(0x17d)](),controller[a883_0x337b5c(0x173)]),module[a883_0x337b5c(0x175)]=router; \ No newline at end of file +const a883_0x817f=['Router','../../components/auth/service','show','update','index','./voiceMailMessage.controller','put','isAuthenticated','destroy','/:id/download','/:id','delete','download','get','express','exports','post'];(function(_0xaae30a,_0x55b0e2){const _0x817f88=function(_0x43d195){while(--_0x43d195){_0xaae30a['push'](_0xaae30a['shift']());}};_0x817f88(++_0x55b0e2);}(a883_0x817f,0x180));const a883_0x43d1=function(_0xaae30a,_0x55b0e2){_0xaae30a=_0xaae30a-0xcd;let _0x817f88=a883_0x817f[_0xaae30a];return _0x817f88;};const a883_0x58e826=a883_0x43d1;'use strict';const express=require(a883_0x58e826(0xd1)),router=express[a883_0x58e826(0xd4)](),auth=require(a883_0x58e826(0xd5)),controller=require(a883_0x58e826(0xd9));router[a883_0x58e826(0xd0)]('/',auth[a883_0x58e826(0xdb)](),controller[a883_0x58e826(0xd8)]),router[a883_0x58e826(0xd0)](a883_0x58e826(0xcd),auth[a883_0x58e826(0xdb)](),controller[a883_0x58e826(0xd6)]),router['get'](a883_0x58e826(0xdd),auth[a883_0x58e826(0xdb)](),controller[a883_0x58e826(0xcf)]),router[a883_0x58e826(0xd3)]('/',auth['isAuthenticated'](),controller['create']),router[a883_0x58e826(0xda)](a883_0x58e826(0xcd),auth[a883_0x58e826(0xdb)](),controller[a883_0x58e826(0xd7)]),router[a883_0x58e826(0xce)](a883_0x58e826(0xcd),auth[a883_0x58e826(0xdb)](),controller[a883_0x58e826(0xdc)]),module[a883_0x58e826(0xd2)]=router; \ No newline at end of file diff --git a/server/api/voiceMailMessage/voiceMailMessage.attributes.js b/server/api/voiceMailMessage/voiceMailMessage.attributes.js index 3c6da06..969e4dd 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.attributes.js +++ b/server/api/voiceMailMessage/voiceMailMessage.attributes.js @@ -1 +1 @@ -const a884_0x2c30=['TIMESTAMP','getDataValue','VIRTUAL','INTEGER','STRING','sequelize','BLOB','attributes','exports'];(function(_0x2f7a0d,_0x20c729){const _0x2c3083=function(_0x515c0b){while(--_0x515c0b){_0x2f7a0d['push'](_0x2f7a0d['shift']());}};_0x2c3083(++_0x20c729);}(a884_0x2c30,0xe4));const a884_0x515c=function(_0x2f7a0d,_0x20c729){_0x2f7a0d=_0x2f7a0d-0x80;let _0x2c3083=a884_0x2c30[_0x2f7a0d];return _0x2c3083;};const a884_0xe81eb6=a884_0x515c;'use strict';const {DataTypes}=require(a884_0xe81eb6(0x82)),attributes={'name':{'type':DataTypes[a884_0xe81eb6(0x88)],'get':function(){const _0xf87c88=a884_0xe81eb6;return this[_0xf87c88(0x87)]('id');}},'msgnum':{'type':DataTypes[a884_0xe81eb6(0x80)]({'length':0xb}),'defaultValue':0x0,'allowNull':![]},'dir':{'type':DataTypes['STRING'],'defaultValue':''},'context':{'type':DataTypes[a884_0xe81eb6(0x81)],'defaultValue':''},'macrocontext':{'type':DataTypes[a884_0xe81eb6(0x81)],'defaultValue':''},'callerid':{'type':DataTypes[a884_0xe81eb6(0x81)],'defaultValue':''},'origtime':{'type':DataTypes[a884_0xe81eb6(0x81)],'defaultValue':''},'duration':{'type':DataTypes['STRING'],'defaultValue':''},'mailboxuser':{'type':DataTypes['STRING'],'defaultValue':''},'mailboxcontext':{'type':DataTypes[a884_0xe81eb6(0x81)],'defaultValue':''},'recording':{'type':DataTypes[a884_0xe81eb6(0x83)]('long'),'defaultValue':null},'flag':{'type':DataTypes[a884_0xe81eb6(0x81)],'defaultValue':''},'msg_id':{'type':DataTypes[a884_0xe81eb6(0x81)],'defaultValue':''},'stamp':{'type':a884_0xe81eb6(0x86),'allowNull':![]}};module[a884_0xe81eb6(0x85)][a884_0xe81eb6(0x84)]=attributes; \ No newline at end of file +const a884_0x1cb3=['TIMESTAMP','STRING','attributes','sequelize','VIRTUAL','exports','BLOB'];(function(_0x32841a,_0x39314e){const _0x1cb328=function(_0x30e4d6){while(--_0x30e4d6){_0x32841a['push'](_0x32841a['shift']());}};_0x1cb328(++_0x39314e);}(a884_0x1cb3,0xe9));const a884_0x30e4=function(_0x32841a,_0x39314e){_0x32841a=_0x32841a-0xb4;let _0x1cb328=a884_0x1cb3[_0x32841a];return _0x1cb328;};const a884_0xa6a82f=a884_0x30e4;'use strict';const {DataTypes}=require(a884_0xa6a82f(0xb5)),attributes={'name':{'type':DataTypes[a884_0xa6a82f(0xb6)],'get':function(){return this['getDataValue']('id');}},'msgnum':{'type':DataTypes['INTEGER']({'length':0xb}),'defaultValue':0x0,'allowNull':![]},'dir':{'type':DataTypes[a884_0xa6a82f(0xba)],'defaultValue':''},'context':{'type':DataTypes[a884_0xa6a82f(0xba)],'defaultValue':''},'macrocontext':{'type':DataTypes[a884_0xa6a82f(0xba)],'defaultValue':''},'callerid':{'type':DataTypes[a884_0xa6a82f(0xba)],'defaultValue':''},'origtime':{'type':DataTypes[a884_0xa6a82f(0xba)],'defaultValue':''},'duration':{'type':DataTypes[a884_0xa6a82f(0xba)],'defaultValue':''},'mailboxuser':{'type':DataTypes['STRING'],'defaultValue':''},'mailboxcontext':{'type':DataTypes['STRING'],'defaultValue':''},'recording':{'type':DataTypes[a884_0xa6a82f(0xb8)]('long'),'defaultValue':null},'flag':{'type':DataTypes[a884_0xa6a82f(0xba)],'defaultValue':''},'msg_id':{'type':DataTypes[a884_0xa6a82f(0xba)],'defaultValue':''},'stamp':{'type':a884_0xa6a82f(0xb9),'allowNull':![]}};module[a884_0xa6a82f(0xb7)][a884_0xa6a82f(0xb4)]=attributes; \ No newline at end of file diff --git a/server/api/voiceMailMessage/voiceMailMessage.controller.js b/server/api/voiceMailMessage/voiceMailMessage.controller.js index d5b3566..08cb7b8 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.controller.js +++ b/server/api/voiceMailMessage/voiceMailMessage.controller.js @@ -1 +1 @@ -const a885_0x5b82=['attachment','end','from','query','Content-Range','params','../../config/logger','VIRTUAL','body','rawAttributes','attributes','VoiceMailMessage\x20not\x20found','merge','limit','json','intersection','undefined','msg_id','create','include','then','index','set','.wav\x22','../../mysqldb','findOne','destroy','map','update','status','offset','findAll','type','rows','attachment;\x20filename=\x22','fields','count','sequelize','where','model','catch','like','send','api','differenceBy','VoiceMailMessage','recording','length','show','sort','error','name','keys','lodash','../../components/parsers/qs','filter','order','options','filters','audio/wav','sendStatus'];(function(_0x86d66f,_0x43bf67){const _0x5b82b0=function(_0x30f554){while(--_0x30f554){_0x86d66f['push'](_0x86d66f['shift']());}};_0x5b82b0(++_0x43bf67);}(a885_0x5b82,0x1da));const a885_0x30f5=function(_0x86d66f,_0x43bf67){_0x86d66f=_0x86d66f-0x1ef;let _0x5b82b0=a885_0x5b82[_0x86d66f];return _0x5b82b0;};const a885_0x442015=a885_0x30f5;'use strict';const _=require(a885_0x442015(0x1f5)),qs=require(a885_0x442015(0x1f6)),logger=require(a885_0x442015(0x203))(a885_0x442015(0x228)),{db}=require(a885_0x442015(0x215)),{Op,ValidationError}=require(a885_0x442015(0x222));function respondWithResult(_0x4a220d,_0x27db0c){return _0x27db0c=_0x27db0c||0xc8,function(_0x19bc76){const _0x3f1d29=a885_0x30f5;if(_0x19bc76)return _0x4a220d['status'](_0x27db0c)[_0x3f1d29(0x20b)](_0x19bc76);};}function respondWithFilteredResult(_0x2783ef,_0x4f84eb){return function(_0x425ab4){const _0x28718e=a885_0x30f5;if(_0x425ab4){const _0x4ce321=_0x425ab4['count'],_0x5d1c29=_0x4f84eb['offset'];let _0x4b011a=_0x4f84eb['offset']+_0x4f84eb[_0x28718e(0x20a)],_0x104efc;return _0x4b011a>=_0x4ce321?(_0x4b011a=_0x4ce321,_0x104efc=0xc8):_0x104efc=0xce,_0x2783ef[_0x28718e(0x21a)](_0x104efc),_0x2783ef[_0x28718e(0x213)](_0x28718e(0x201),_0x5d1c29+'-'+_0x4b011a+'/'+_0x4ce321)[_0x28718e(0x20b)](_0x425ab4);}return null;};}function saveUpdates(_0x527b45){return function(_0x2712c){const _0x969901=a885_0x30f5;if(_0x2712c)return _0x2712c[_0x969901(0x219)](_0x527b45)[_0x969901(0x211)](function(_0xd77405){return _0xd77405;});return null;};}function removeEntity(_0x19ebc8){return function(_0x4f5f88){const _0x393608=a885_0x30f5;if(_0x4f5f88)return _0x4f5f88[_0x393608(0x217)]()['then'](function(){const _0x5610cc=_0x393608;_0x19ebc8[_0x5610cc(0x21a)](0xcc)[_0x5610cc(0x1fe)]();});};}function handleEntityNotFound(_0x9b1088){return function(_0x55f738){const _0x3ad3af=a885_0x30f5;return!_0x55f738&&_0x9b1088[_0x3ad3af(0x1fc)](0x194),_0x55f738;};}function handleError(_0x428e7f,_0x3cec0d){return _0x3cec0d=_0x3cec0d||0x1f4,function(_0x14c6ee){const _0x347b71=a885_0x30f5;logger[_0x347b71(0x1f2)](_0x14c6ee['stack']),_0x14c6ee['name']&&delete _0x14c6ee[_0x347b71(0x1f3)],_0x428e7f[_0x347b71(0x21a)](_0x3cec0d)[_0x347b71(0x227)](_0x14c6ee);};}exports[a885_0x442015(0x212)]=function(_0x496209,_0x32d298){const _0x1a0d74=a885_0x442015;let _0x550332={};const _0x4c72a0={},_0x228ef4={'count':0x0,'rows':[]},_0x4dc6e4=_[_0x1a0d74(0x218)](db[_0x1a0d74(0x22a)][_0x1a0d74(0x206)],function(_0x2ff638){return{'name':_0x2ff638['fieldName'],'type':_0x2ff638['type']['key']};});_0x4c72a0['model']=_[_0x1a0d74(0x229)](_[_0x1a0d74(0x218)](_0x4dc6e4,_0x1a0d74(0x1f3)),[_0x1a0d74(0x1f3)]),_0x4c72a0[_0x1a0d74(0x200)]=_[_0x1a0d74(0x1f4)](_0x496209[_0x1a0d74(0x200)]),_0x4c72a0[_0x1a0d74(0x1fa)]=_[_0x1a0d74(0x20c)](_0x4c72a0[_0x1a0d74(0x224)],_0x4c72a0[_0x1a0d74(0x200)]),_0x550332['attributes']=_[_0x1a0d74(0x20c)](_0x4c72a0[_0x1a0d74(0x224)],qs[_0x1a0d74(0x220)](_0x496209['query'][_0x1a0d74(0x220)])),_0x550332[_0x1a0d74(0x207)]=_0x550332['attributes'][_0x1a0d74(0x1ef)]?_0x550332['attributes']:_0x4c72a0[_0x1a0d74(0x224)];typeof _0x496209[_0x1a0d74(0x200)]['nolimit']===_0x1a0d74(0x20d)&&(_0x550332[_0x1a0d74(0x20a)]=qs[_0x1a0d74(0x20a)](_0x496209[_0x1a0d74(0x200)]['limit']),_0x550332[_0x1a0d74(0x21b)]=qs[_0x1a0d74(0x21b)](_0x496209[_0x1a0d74(0x200)][_0x1a0d74(0x21b)]));_0x550332[_0x1a0d74(0x1f8)]=qs[_0x1a0d74(0x1f1)](_0x496209[_0x1a0d74(0x200)][_0x1a0d74(0x1f1)]),_0x550332[_0x1a0d74(0x223)]=qs['filters'](_['pick'](_0x496209[_0x1a0d74(0x200)],_0x4c72a0[_0x1a0d74(0x1fa)]),_0x4dc6e4);_0x496209[_0x1a0d74(0x200)][_0x1a0d74(0x1f7)]&&(_0x550332[_0x1a0d74(0x223)]=_[_0x1a0d74(0x209)](_0x550332[_0x1a0d74(0x223)],{[Op['or']]:_[_0x1a0d74(0x218)](_0x4dc6e4,function(_0x4b22ea){const _0x5d553b=_0x1a0d74;if(_0x4b22ea[_0x5d553b(0x21d)]!==_0x5d553b(0x204)){const _0x374cc4={};return _0x374cc4[_0x4b22ea[_0x5d553b(0x1f3)]]={[Op[_0x5d553b(0x226)]]:'%'+_0x496209[_0x5d553b(0x200)][_0x5d553b(0x1f7)]+'%'},_0x374cc4;}})}));_0x550332=_[_0x1a0d74(0x209)]({},_0x550332,_0x496209[_0x1a0d74(0x1f9)]);const _0x1308ef={'where':_0x550332['where']};return db[_0x1a0d74(0x22a)][_0x1a0d74(0x221)](_0x1308ef)[_0x1a0d74(0x211)](function(_0x2c6309){const _0x1d2c31=_0x1a0d74;return _0x228ef4[_0x1d2c31(0x221)]=_0x2c6309,_0x496209[_0x1d2c31(0x200)]['includeAll']&&(_0x550332['include']=[{'all':!![]}]),db[_0x1d2c31(0x22a)][_0x1d2c31(0x21c)](_0x550332);})[_0x1a0d74(0x211)](function(_0x331ba6){const _0x2779bb=_0x1a0d74;return _0x228ef4[_0x2779bb(0x21e)]=_0x331ba6,_0x228ef4;})[_0x1a0d74(0x211)](respondWithFilteredResult(_0x32d298,_0x550332))[_0x1a0d74(0x225)](handleError(_0x32d298,null));},exports[a885_0x442015(0x1f0)]=function(_0xb79624,_0x5597d5){const _0x4a2d40=a885_0x442015;let _0x204ce1={'raw':!![],'where':{'id':_0xb79624['params']['id']}};const _0x23da12={};return _0x23da12[_0x4a2d40(0x224)]=_['keys'](db[_0x4a2d40(0x22a)][_0x4a2d40(0x206)]),_0x23da12['query']=_[_0x4a2d40(0x1f4)](_0xb79624['query']),_0x23da12[_0x4a2d40(0x1fa)]=_[_0x4a2d40(0x20c)](_0x23da12['model'],_0x23da12[_0x4a2d40(0x200)]),_0x204ce1[_0x4a2d40(0x207)]=_[_0x4a2d40(0x20c)](_0x23da12[_0x4a2d40(0x224)],qs[_0x4a2d40(0x220)](_0xb79624['query']['fields'])),_0x204ce1[_0x4a2d40(0x207)]=_0x204ce1['attributes'][_0x4a2d40(0x1ef)]?_0x204ce1[_0x4a2d40(0x207)]:_0x23da12[_0x4a2d40(0x224)],_0xb79624[_0x4a2d40(0x200)]['includeAll']&&(_0x204ce1[_0x4a2d40(0x210)]=[{'all':!![]}]),_0x204ce1=_[_0x4a2d40(0x209)]({},_0x204ce1,_0xb79624[_0x4a2d40(0x1f9)]),db[_0x4a2d40(0x22a)][_0x4a2d40(0x216)](_0x204ce1)[_0x4a2d40(0x211)](handleEntityNotFound(_0x5597d5,null))[_0x4a2d40(0x211)](respondWithResult(_0x5597d5,null))['catch'](handleError(_0x5597d5,null));},exports[a885_0x442015(0x20f)]=function(_0x3163d3,_0x299e77){const _0x2bcf3d=a885_0x442015;return db[_0x2bcf3d(0x22a)][_0x2bcf3d(0x20f)](_0x3163d3[_0x2bcf3d(0x205)],{})[_0x2bcf3d(0x211)](respondWithResult(_0x299e77,0xc9))[_0x2bcf3d(0x225)](handleError(_0x299e77,null));},exports[a885_0x442015(0x219)]=function(_0x542d1c,_0x2aa1cb){const _0x4d6724=a885_0x442015;return _0x542d1c[_0x4d6724(0x205)]['id']&&delete _0x542d1c['body']['id'],db[_0x4d6724(0x22a)][_0x4d6724(0x216)]({'where':{'id':_0x542d1c['params']['id']}})['then'](handleEntityNotFound(_0x2aa1cb,null))[_0x4d6724(0x211)](saveUpdates(_0x542d1c[_0x4d6724(0x205)],null))[_0x4d6724(0x211)](respondWithResult(_0x2aa1cb,null))[_0x4d6724(0x225)](handleError(_0x2aa1cb,null));},exports[a885_0x442015(0x217)]=function(_0x177ff6,_0x4ac853){const _0xd3f470=a885_0x442015;return db[_0xd3f470(0x22a)][_0xd3f470(0x216)]({'where':{'id':_0x177ff6[_0xd3f470(0x202)]['id']}})[_0xd3f470(0x211)](handleEntityNotFound(_0x4ac853,null))[_0xd3f470(0x211)](removeEntity(_0x4ac853,null))[_0xd3f470(0x225)](handleError(_0x4ac853,null));},exports['download']=function(_0x4380e8,_0x3766d6){const _0x18a007=a885_0x442015;return db[_0x18a007(0x22a)][_0x18a007(0x216)]({'where':{'id':_0x4380e8[_0x18a007(0x202)]['id']},'attributes':['id',_0x18a007(0x22b),'msg_id']})[_0x18a007(0x211)](handleEntityNotFound(_0x3766d6,null))[_0x18a007(0x211)](function(_0x260a17){const _0x3d1d81=_0x18a007;if(_0x260a17){if(!_0x260a17[_0x3d1d81(0x22b)])throw new ValidationError(_0x3d1d81(0x208));const _0x3db402={'Content-Type':_0x3d1d81(0x1fb),'Content-Disposition':_0x3d1d81(0x1fd)};return _0x260a17[_0x3d1d81(0x20e)]&&(_0x3db402['Content-Disposition']=_0x3d1d81(0x21f)+_0x260a17[_0x3d1d81(0x20e)]+_0x3d1d81(0x214)),_0x3766d6[_0x3d1d81(0x213)](_0x3db402),_0x3766d6[_0x3d1d81(0x227)](Buffer[_0x3d1d81(0x1ff)](_0x260a17[_0x3d1d81(0x22b)]));}})['catch'](handleError(_0x3766d6,null));}; \ No newline at end of file +const a885_0x2fa3=['rows','length','fieldName','include','api','VIRTUAL','where','VoiceMailMessage\x20not\x20found','intersection','name','Content-Range','download','map','attachment;\x20filename=\x22','findOne','includeAll','filter','show','destroy','create','update','type','pick','../../config/logger','count','index','catch','attachment','filters','Content-Disposition','audio/wav','sequelize','sort','order','attributes','params','nolimit','msg_id','.wav\x22','rawAttributes','VoiceMailMessage','set','key','options','keys','limit','error','status','offset','stack','recording','body','send','then','like','model','query','json','merge','lodash','fields'];(function(_0x2ccc8f,_0x266326){const _0x2fa335=function(_0xb05912){while(--_0xb05912){_0x2ccc8f['push'](_0x2ccc8f['shift']());}};_0x2fa335(++_0x266326);}(a885_0x2fa3,0x175));const a885_0xb059=function(_0x2ccc8f,_0x266326){_0x2ccc8f=_0x2ccc8f-0xd0;let _0x2fa335=a885_0x2fa3[_0x2ccc8f];return _0x2fa335;};const a885_0x1ae35b=a885_0xb059;'use strict';const _=require(a885_0x1ae35b(0x104)),qs=require('../../components/parsers/qs'),logger=require(a885_0x1ae35b(0xe0))(a885_0x1ae35b(0x10a)),{db}=require('../../mysqldb'),{Op,ValidationError}=require(a885_0x1ae35b(0xe8));function respondWithResult(_0x18973e,_0x2ea9bd){return _0x2ea9bd=_0x2ea9bd||0xc8,function(_0x9836de){const _0x4585b4=a885_0xb059;if(_0x9836de)return _0x18973e[_0x4585b4(0xf8)](_0x2ea9bd)['json'](_0x9836de);};}function respondWithFilteredResult(_0x3d4f1f,_0x2ab4a8){return function(_0x3a3381){const _0x87a48c=a885_0xb059;if(_0x3a3381){const _0x16c45c=_0x3a3381[_0x87a48c(0xe1)],_0x5c7473=_0x2ab4a8[_0x87a48c(0xf9)];let _0x33d050=_0x2ab4a8[_0x87a48c(0xf9)]+_0x2ab4a8[_0x87a48c(0xf6)],_0x31742c;return _0x33d050>=_0x16c45c?(_0x33d050=_0x16c45c,_0x31742c=0xc8):_0x31742c=0xce,_0x3d4f1f[_0x87a48c(0xf8)](_0x31742c),_0x3d4f1f[_0x87a48c(0xf2)](_0x87a48c(0xd3),_0x5c7473+'-'+_0x33d050+'/'+_0x16c45c)[_0x87a48c(0x102)](_0x3a3381);}return null;};}function saveUpdates(_0x12012c){return function(_0x122444){const _0x396c5c=a885_0xb059;if(_0x122444)return _0x122444[_0x396c5c(0xdd)](_0x12012c)['then'](function(_0xe2b3f7){return _0xe2b3f7;});return null;};}function removeEntity(_0x4334ff){return function(_0xed05ea){const _0xbe606d=a885_0xb059;if(_0xed05ea)return _0xed05ea[_0xbe606d(0xdb)]()[_0xbe606d(0xfe)](function(){const _0x486c6e=_0xbe606d;_0x4334ff[_0x486c6e(0xf8)](0xcc)['end']();});};}function handleEntityNotFound(_0x4cf866){return function(_0x3d1571){return!_0x3d1571&&_0x4cf866['sendStatus'](0x194),_0x3d1571;};}function handleError(_0x28159b,_0x39c12a){return _0x39c12a=_0x39c12a||0x1f4,function(_0x24794c){const _0x5a24ab=a885_0xb059;logger[_0x5a24ab(0xf7)](_0x24794c[_0x5a24ab(0xfa)]),_0x24794c[_0x5a24ab(0xd2)]&&delete _0x24794c['name'],_0x28159b[_0x5a24ab(0xf8)](_0x39c12a)[_0x5a24ab(0xfd)](_0x24794c);};}exports[a885_0x1ae35b(0xe2)]=function(_0xf9c305,_0x388d28){const _0x30be04=a885_0x1ae35b;let _0x1a4514={};const _0x170223={},_0x563370={'count':0x0,'rows':[]},_0x1d14b9=_['map'](db['VoiceMailMessage']['rawAttributes'],function(_0x2a69c6){const _0x39086e=a885_0xb059;return{'name':_0x2a69c6[_0x39086e(0x108)],'type':_0x2a69c6[_0x39086e(0xde)][_0x39086e(0xf3)]};});_0x170223['model']=_['differenceBy'](_['map'](_0x1d14b9,_0x30be04(0xd2)),[_0x30be04(0xd2)]),_0x170223[_0x30be04(0x101)]=_[_0x30be04(0xf5)](_0xf9c305[_0x30be04(0x101)]),_0x170223[_0x30be04(0xe5)]=_['intersection'](_0x170223[_0x30be04(0x100)],_0x170223[_0x30be04(0x101)]),_0x1a4514[_0x30be04(0xeb)]=_[_0x30be04(0xd1)](_0x170223[_0x30be04(0x100)],qs[_0x30be04(0x105)](_0xf9c305[_0x30be04(0x101)][_0x30be04(0x105)])),_0x1a4514[_0x30be04(0xeb)]=_0x1a4514['attributes']['length']?_0x1a4514[_0x30be04(0xeb)]:_0x170223['model'];typeof _0xf9c305[_0x30be04(0x101)][_0x30be04(0xed)]==='undefined'&&(_0x1a4514[_0x30be04(0xf6)]=qs['limit'](_0xf9c305[_0x30be04(0x101)][_0x30be04(0xf6)]),_0x1a4514[_0x30be04(0xf9)]=qs[_0x30be04(0xf9)](_0xf9c305[_0x30be04(0x101)]['offset']));_0x1a4514[_0x30be04(0xea)]=qs[_0x30be04(0xe9)](_0xf9c305['query']['sort']),_0x1a4514[_0x30be04(0x10c)]=qs[_0x30be04(0xe5)](_[_0x30be04(0xdf)](_0xf9c305[_0x30be04(0x101)],_0x170223[_0x30be04(0xe5)]),_0x1d14b9);_0xf9c305[_0x30be04(0x101)][_0x30be04(0xd9)]&&(_0x1a4514[_0x30be04(0x10c)]=_[_0x30be04(0x103)](_0x1a4514[_0x30be04(0x10c)],{[Op['or']]:_[_0x30be04(0xd5)](_0x1d14b9,function(_0x4bd417){const _0x41c8e0=_0x30be04;if(_0x4bd417[_0x41c8e0(0xde)]!==_0x41c8e0(0x10b)){const _0x2da9f0={};return _0x2da9f0[_0x4bd417[_0x41c8e0(0xd2)]]={[Op[_0x41c8e0(0xff)]]:'%'+_0xf9c305[_0x41c8e0(0x101)]['filter']+'%'},_0x2da9f0;}})}));_0x1a4514=_[_0x30be04(0x103)]({},_0x1a4514,_0xf9c305[_0x30be04(0xf4)]);const _0x10d9bd={'where':_0x1a4514['where']};return db[_0x30be04(0xf1)][_0x30be04(0xe1)](_0x10d9bd)[_0x30be04(0xfe)](function(_0x371b43){const _0x51ca96=_0x30be04;return _0x563370[_0x51ca96(0xe1)]=_0x371b43,_0xf9c305[_0x51ca96(0x101)][_0x51ca96(0xd8)]&&(_0x1a4514[_0x51ca96(0x109)]=[{'all':!![]}]),db[_0x51ca96(0xf1)]['findAll'](_0x1a4514);})['then'](function(_0x3e0d93){const _0x2cee04=_0x30be04;return _0x563370[_0x2cee04(0x106)]=_0x3e0d93,_0x563370;})['then'](respondWithFilteredResult(_0x388d28,_0x1a4514))[_0x30be04(0xe3)](handleError(_0x388d28,null));},exports[a885_0x1ae35b(0xda)]=function(_0x311064,_0x8cb6ec){const _0x2a99ed=a885_0x1ae35b;let _0x18270d={'raw':!![],'where':{'id':_0x311064[_0x2a99ed(0xec)]['id']}};const _0x371200={};return _0x371200[_0x2a99ed(0x100)]=_['keys'](db[_0x2a99ed(0xf1)][_0x2a99ed(0xf0)]),_0x371200[_0x2a99ed(0x101)]=_[_0x2a99ed(0xf5)](_0x311064[_0x2a99ed(0x101)]),_0x371200[_0x2a99ed(0xe5)]=_[_0x2a99ed(0xd1)](_0x371200[_0x2a99ed(0x100)],_0x371200[_0x2a99ed(0x101)]),_0x18270d[_0x2a99ed(0xeb)]=_['intersection'](_0x371200[_0x2a99ed(0x100)],qs[_0x2a99ed(0x105)](_0x311064[_0x2a99ed(0x101)][_0x2a99ed(0x105)])),_0x18270d[_0x2a99ed(0xeb)]=_0x18270d[_0x2a99ed(0xeb)][_0x2a99ed(0x107)]?_0x18270d[_0x2a99ed(0xeb)]:_0x371200[_0x2a99ed(0x100)],_0x311064['query']['includeAll']&&(_0x18270d[_0x2a99ed(0x109)]=[{'all':!![]}]),_0x18270d=_[_0x2a99ed(0x103)]({},_0x18270d,_0x311064['options']),db[_0x2a99ed(0xf1)]['findOne'](_0x18270d)[_0x2a99ed(0xfe)](handleEntityNotFound(_0x8cb6ec,null))[_0x2a99ed(0xfe)](respondWithResult(_0x8cb6ec,null))[_0x2a99ed(0xe3)](handleError(_0x8cb6ec,null));},exports[a885_0x1ae35b(0xdc)]=function(_0x15ccbd,_0x41493b){const _0x2d8201=a885_0x1ae35b;return db[_0x2d8201(0xf1)][_0x2d8201(0xdc)](_0x15ccbd[_0x2d8201(0xfc)],{})[_0x2d8201(0xfe)](respondWithResult(_0x41493b,0xc9))[_0x2d8201(0xe3)](handleError(_0x41493b,null));},exports[a885_0x1ae35b(0xdd)]=function(_0x167721,_0x16713f){const _0x16078a=a885_0x1ae35b;return _0x167721['body']['id']&&delete _0x167721[_0x16078a(0xfc)]['id'],db[_0x16078a(0xf1)][_0x16078a(0xd7)]({'where':{'id':_0x167721['params']['id']}})[_0x16078a(0xfe)](handleEntityNotFound(_0x16713f,null))['then'](saveUpdates(_0x167721['body'],null))[_0x16078a(0xfe)](respondWithResult(_0x16713f,null))['catch'](handleError(_0x16713f,null));},exports['destroy']=function(_0x583ddb,_0x47755c){const _0x31fbb7=a885_0x1ae35b;return db[_0x31fbb7(0xf1)][_0x31fbb7(0xd7)]({'where':{'id':_0x583ddb[_0x31fbb7(0xec)]['id']}})[_0x31fbb7(0xfe)](handleEntityNotFound(_0x47755c,null))[_0x31fbb7(0xfe)](removeEntity(_0x47755c,null))[_0x31fbb7(0xe3)](handleError(_0x47755c,null));},exports[a885_0x1ae35b(0xd4)]=function(_0x5807ae,_0x3d7cb1){const _0x5b5893=a885_0x1ae35b;return db[_0x5b5893(0xf1)][_0x5b5893(0xd7)]({'where':{'id':_0x5807ae[_0x5b5893(0xec)]['id']},'attributes':['id',_0x5b5893(0xfb),_0x5b5893(0xee)]})[_0x5b5893(0xfe)](handleEntityNotFound(_0x3d7cb1,null))[_0x5b5893(0xfe)](function(_0x56e6cf){const _0x371f30=_0x5b5893;if(_0x56e6cf){if(!_0x56e6cf[_0x371f30(0xfb)])throw new ValidationError(_0x371f30(0xd0));const _0xe73ed7={'Content-Type':_0x371f30(0xe7),'Content-Disposition':_0x371f30(0xe4)};return _0x56e6cf[_0x371f30(0xee)]&&(_0xe73ed7[_0x371f30(0xe6)]=_0x371f30(0xd6)+_0x56e6cf[_0x371f30(0xee)]+_0x371f30(0xef)),_0x3d7cb1[_0x371f30(0xf2)](_0xe73ed7),_0x3d7cb1[_0x371f30(0xfd)](Buffer['from'](_0x56e6cf[_0x371f30(0xfb)]));}})[_0x5b5893(0xe3)](handleError(_0x3d7cb1,null));}; \ No newline at end of file diff --git a/server/api/voiceMailMessage/voiceMailMessage.model.js b/server/api/voiceMailMessage/voiceMailMessage.model.js index d96ea79..db4c3bc 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.model.js +++ b/server/api/voiceMailMessage/voiceMailMessage.model.js @@ -1 +1 @@ -const a886_0x5e55=['VoiceMailMessage','function','init','./voiceMailMessage.attributes','./voiceMailMessage.options','sequelize','exports'];(function(_0x49a341,_0x2f6df8){const _0x5e55aa=function(_0x446eb9){while(--_0x446eb9){_0x49a341['push'](_0x49a341['shift']());}};_0x5e55aa(++_0x2f6df8);}(a886_0x5e55,0xca));const a886_0x446e=function(_0x49a341,_0x2f6df8){_0x49a341=_0x49a341-0x1c3;let _0x5e55aa=a886_0x5e55[_0x49a341];return _0x5e55aa;};const a886_0x57b944=a886_0x446e;'use strict';const {Model}=require(a886_0x57b944(0x1c9)),{attributes}=require(a886_0x57b944(0x1c7)),{options}=require(a886_0x57b944(0x1c8));class VoiceMailMessage extends Model{}function init(_0xbddd42,_0x2e53c4){const _0x48b4a9=a886_0x57b944,_0x3264fb=options(_0xbddd42),_0x28888c=typeof _0x2e53c4===_0x48b4a9(0x1c5)?_0x2e53c4(_0x3264fb):_0x3264fb;return VoiceMailMessage['init'](attributes,_0x28888c),VoiceMailMessage;}module[a886_0x57b944(0x1c3)][a886_0x57b944(0x1c4)]=VoiceMailMessage,module['exports'][a886_0x57b944(0x1c6)]=init; \ No newline at end of file +const a886_0x8ad9=['./voiceMailMessage.attributes','exports','sequelize','function','init'];(function(_0x336743,_0x6fdf57){const _0x8ad970=function(_0x5e12c0){while(--_0x5e12c0){_0x336743['push'](_0x336743['shift']());}};_0x8ad970(++_0x6fdf57);}(a886_0x8ad9,0xc8));const a886_0x5e12=function(_0x336743,_0x6fdf57){_0x336743=_0x336743-0xf3;let _0x8ad970=a886_0x8ad9[_0x336743];return _0x8ad970;};const a886_0x1d44f4=a886_0x5e12;'use strict';const {Model}=require(a886_0x1d44f4(0xf5)),{attributes}=require(a886_0x1d44f4(0xf3)),{options}=require('./voiceMailMessage.options');class VoiceMailMessage extends Model{}function init(_0xa06532,_0x383900){const _0x1b2cb3=a886_0x1d44f4,_0x4b1194=options(_0xa06532),_0x1e2c3b=typeof _0x383900===_0x1b2cb3(0xf6)?_0x383900(_0x4b1194):_0x4b1194;return VoiceMailMessage[_0x1b2cb3(0xf7)](attributes,_0x1e2c3b),VoiceMailMessage;}module['exports']['VoiceMailMessage']=VoiceMailMessage,module[a886_0x1d44f4(0xf4)][a886_0x1d44f4(0xf7)]=init; \ No newline at end of file diff --git a/server/api/voiceMailMessage/voiceMailMessage.options.js b/server/api/voiceMailMessage/voiceMailMessage.options.js index 2df9b03..86c3143 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.options.js +++ b/server/api/voiceMailMessage/voiceMailMessage.options.js @@ -1 +1 @@ -var a887_0x1f3c=['voice_voicemail_messages','dir','options'];(function(_0x345476,_0x52566b){var _0x1f3ce4=function(_0x26cd40){while(--_0x26cd40){_0x345476['push'](_0x345476['shift']());}};_0x1f3ce4(++_0x52566b);}(a887_0x1f3c,0x1ce));var a887_0x26cd=function(_0x345476,_0x52566b){_0x345476=_0x345476-0x1c3;var _0x1f3ce4=a887_0x1f3c[_0x345476];return _0x1f3ce4;};var a887_0x31d0fe=a887_0x26cd;function options(_0x357357){var _0x2e12c3=a887_0x26cd;return{'sequelize':_0x357357,'tableName':_0x2e12c3(0x1c3),'paranoid':![],'indexes':[{'name':_0x2e12c3(0x1c4),'fields':[_0x2e12c3(0x1c4)]}],'timestamps':![]};}module['exports'][a887_0x31d0fe(0x1c5)]=options; \ No newline at end of file +var a887_0x15ff=['voice_voicemail_messages','dir'];(function(_0x1cedba,_0x41092a){var _0x15ffee=function(_0x13c93b){while(--_0x13c93b){_0x1cedba['push'](_0x1cedba['shift']());}};_0x15ffee(++_0x41092a);}(a887_0x15ff,0x1e6));var a887_0x13c9=function(_0x1cedba,_0x41092a){_0x1cedba=_0x1cedba-0x1ac;var _0x15ffee=a887_0x15ff[_0x1cedba];return _0x15ffee;};function options(_0x9e3b21){var _0x22f85a=a887_0x13c9;return{'sequelize':_0x9e3b21,'tableName':_0x22f85a(0x1ac),'paranoid':![],'indexes':[{'name':_0x22f85a(0x1ad),'fields':[_0x22f85a(0x1ad)]}],'timestamps':![]};}module['exports']['options']=options; \ No newline at end of file diff --git a/server/api/voiceMusicOnHold/index.js b/server/api/voiceMusicOnHold/index.js index b6137f6..652f418 100644 --- a/server/api/voiceMusicOnHold/index.js +++ b/server/api/voiceMusicOnHold/index.js @@ -1 +1 @@ -const a888_0x14c3=['removeSound','./voiceMusicOnHold.controller','express','/:id/sounds','get','/:id/sounds/:id2','isAuthenticated','Router','destroy','update','delete','getSounds','../../components/auth/service','create','/:id','exports','post','show'];(function(_0x4c05d2,_0x1bf697){const _0x14c3da=function(_0x343088){while(--_0x343088){_0x4c05d2['push'](_0x4c05d2['shift']());}};_0x14c3da(++_0x1bf697);}(a888_0x14c3,0x129));const a888_0x3430=function(_0x4c05d2,_0x1bf697){_0x4c05d2=_0x4c05d2-0x15f;let _0x14c3da=a888_0x14c3[_0x4c05d2];return _0x14c3da;};const a888_0x246c48=a888_0x3430;'use strict';const express=require(a888_0x246c48(0x16a)),router=express[a888_0x246c48(0x16f)](),auth=require(a888_0x246c48(0x162)),controller=require(a888_0x246c48(0x169));router['get']('/',auth[a888_0x246c48(0x16e)](),controller['index']),router[a888_0x246c48(0x16c)](a888_0x246c48(0x164),auth[a888_0x246c48(0x16e)](),controller[a888_0x246c48(0x167)]),router[a888_0x246c48(0x16c)](a888_0x246c48(0x16b),auth['isAuthenticated'](),controller[a888_0x246c48(0x161)]),router[a888_0x246c48(0x166)]('/',auth[a888_0x246c48(0x16e)](),controller[a888_0x246c48(0x163)]),router['post'](a888_0x246c48(0x16b),auth[a888_0x246c48(0x16e)](),controller['addSound']),router['put'](a888_0x246c48(0x164),auth[a888_0x246c48(0x16e)](),controller[a888_0x246c48(0x15f)]),router['delete'](a888_0x246c48(0x164),auth['isAuthenticated'](),controller[a888_0x246c48(0x170)]),router[a888_0x246c48(0x160)](a888_0x246c48(0x16d),auth[a888_0x246c48(0x16e)](),controller[a888_0x246c48(0x168)]),module[a888_0x246c48(0x165)]=router; \ No newline at end of file +const a888_0x2460=['express','exports','destroy','Router','put','/:id/sounds/:id2','get','/:id','post','addSound','./voiceMusicOnHold.controller','getSounds','/:id/sounds','update','isAuthenticated','show'];(function(_0xf9e458,_0xc218f1){const _0x246089=function(_0x29e439){while(--_0x29e439){_0xf9e458['push'](_0xf9e458['shift']());}};_0x246089(++_0xc218f1);}(a888_0x2460,0xf1));const a888_0x29e4=function(_0xf9e458,_0xc218f1){_0xf9e458=_0xf9e458-0x121;let _0x246089=a888_0x2460[_0xf9e458];return _0x246089;};const a888_0x5352dd=a888_0x29e4;'use strict';const express=require(a888_0x5352dd(0x130)),router=express[a888_0x5352dd(0x123)](),auth=require('../../components/auth/service'),controller=require(a888_0x5352dd(0x12a));router[a888_0x5352dd(0x126)]('/',auth[a888_0x5352dd(0x12e)](),controller['index']),router['get']('/:id',auth['isAuthenticated'](),controller[a888_0x5352dd(0x12f)]),router['get'](a888_0x5352dd(0x12c),auth[a888_0x5352dd(0x12e)](),controller[a888_0x5352dd(0x12b)]),router['post']('/',auth[a888_0x5352dd(0x12e)](),controller['create']),router[a888_0x5352dd(0x128)](a888_0x5352dd(0x12c),auth['isAuthenticated'](),controller[a888_0x5352dd(0x129)]),router[a888_0x5352dd(0x124)](a888_0x5352dd(0x127),auth['isAuthenticated'](),controller[a888_0x5352dd(0x12d)]),router['delete'](a888_0x5352dd(0x127),auth['isAuthenticated'](),controller[a888_0x5352dd(0x122)]),router['delete'](a888_0x5352dd(0x125),auth[a888_0x5352dd(0x12e)](),controller['removeSound']),module[a888_0x5352dd(0x121)]=router; \ No newline at end of file diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js index df40a77..df11b1c 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js @@ -1 +1 @@ -const a889_0xe5c6=['quietmp3','alpha','custom','TIMESTAMP','files','BOOLEAN','STRING','mp3nb','mp3','name','attributes'];(function(_0x339137,_0xad2d3a){const _0xe5c638=function(_0x38a307){while(--_0x38a307){_0x339137['push'](_0x339137['shift']());}};_0xe5c638(++_0xad2d3a);}(a889_0xe5c6,0x8a));const a889_0x38a3=function(_0x339137,_0xad2d3a){_0x339137=_0x339137-0x123;let _0xe5c638=a889_0xe5c6[_0x339137];return _0xe5c638;};const a889_0x450046=a889_0x38a3;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a889_0x450046(0x123)],'allowNull':![],'unique':a889_0x450046(0x126)},'mode':{'type':DataTypes['ENUM'](a889_0x450046(0x12a),a889_0x450046(0x12c),a889_0x450046(0x124),'quietmp3nb',a889_0x450046(0x128),a889_0x450046(0x125)),'allowNull':!![],'defaultValue':'files'},'directory':{'type':DataTypes[a889_0x450046(0x123)],'allowNull':!![]},'application':{'type':DataTypes[a889_0x450046(0x123)],'allowNull':!![]},'digit':{'type':DataTypes['STRING'],'allowNull':!![]},'sort':{'type':DataTypes[a889_0x450046(0x123)],'allowNull':!![],'defaultValue':a889_0x450046(0x129)},'format':{'type':DataTypes[a889_0x450046(0x123)],'allowNull':!![]},'stamp':{'type':a889_0x450046(0x12b)},'defaultEntry':{'type':DataTypes[a889_0x450046(0x12d)],'defaultValue':0x0}};module['exports'][a889_0x450046(0x127)]=attributes; \ No newline at end of file +const a889_0x4bff=['name','files','attributes','mp3nb','TIMESTAMP','custom','STRING','quietmp3nb','quietmp3','BOOLEAN','sequelize'];(function(_0x3fb0aa,_0x42db94){const _0x4bff6b=function(_0x5f3118){while(--_0x5f3118){_0x3fb0aa['push'](_0x3fb0aa['shift']());}};_0x4bff6b(++_0x42db94);}(a889_0x4bff,0x8d));const a889_0x5f31=function(_0x3fb0aa,_0x42db94){_0x3fb0aa=_0x3fb0aa-0x125;let _0x4bff6b=a889_0x4bff[_0x3fb0aa];return _0x4bff6b;};const a889_0x5cc409=a889_0x5f31;'use strict';const {DataTypes}=require(a889_0x5cc409(0x126)),attributes={'name':{'type':DataTypes[a889_0x5cc409(0x12d)],'allowNull':![],'unique':a889_0x5cc409(0x127)},'mode':{'type':DataTypes['ENUM'](a889_0x5cc409(0x12c),a889_0x5cc409(0x128),a889_0x5cc409(0x12a),a889_0x5cc409(0x12e),a889_0x5cc409(0x12f),'mp3'),'allowNull':!![],'defaultValue':'files'},'directory':{'type':DataTypes[a889_0x5cc409(0x12d)],'allowNull':!![]},'application':{'type':DataTypes[a889_0x5cc409(0x12d)],'allowNull':!![]},'digit':{'type':DataTypes[a889_0x5cc409(0x12d)],'allowNull':!![]},'sort':{'type':DataTypes[a889_0x5cc409(0x12d)],'allowNull':!![],'defaultValue':'alpha'},'format':{'type':DataTypes[a889_0x5cc409(0x12d)],'allowNull':!![]},'stamp':{'type':a889_0x5cc409(0x12b)},'defaultEntry':{'type':DataTypes[a889_0x5cc409(0x125)],'defaultValue':0x0}};module['exports'][a889_0x5cc409(0x129)]=attributes; \ No newline at end of file diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js index 653331e..dd4e469 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js @@ -1 +1 @@ -const a890_0xfde8=['rmdirSync','then','sendStatus','basename','pick','VoiceMusicOnHold','removeSound','findAll','send','util','Unable\x20to\x20retrieve\x20the\x20current\x20user','show','transaction','model','getSounds','converted_format','files','type','findOne','error','create','update','includeAll','destroy','Sound','message','role','json','sequelize','filters','../../components/parsers/qs','name','createdAt','query','directory','nolimit','undefined','fields','offset','params','merge','where','format','keys','server/files/moh','../../config/logger','mode','root','filter','attributes','count','like','UserProfileSection','VIRTUAL','map','get','join','symlinkSync','sort','end','Content-Range','length','../../config/environment','body','readdirSync','catch','options','MusicOnHolds','rawAttributes','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','%s.%s','include','userProfileId','order','key','intersection','limit','id2','../../mysqldb','unlinkSync','UserProfileResource','server/files/sounds/converted','status','save_name'];(function(_0x7344d2,_0x4dedeb){const _0xfde8ff=function(_0x4ea94b){while(--_0x4ea94b){_0x7344d2['push'](_0x7344d2['shift']());}};_0xfde8ff(++_0x4dedeb);}(a890_0xfde8,0xee));const a890_0x4ea9=function(_0x7344d2,_0x4dedeb){_0x7344d2=_0x7344d2-0x88;let _0xfde8ff=a890_0xfde8[_0x7344d2];return _0xfde8ff;};const a890_0x456ccf=a890_0x4ea9;'use strict';const util=require(a890_0x456ccf(0x9f)),path=require('path'),fs=require('fs'),_=require('lodash'),qs=require(a890_0x456ccf(0xb4)),logger=require(a890_0x456ccf(0xc3))('api'),config=require(a890_0x456ccf(0xd4)),{db}=require(a890_0x456ccf(0x90)),{Op,ValidationError}=require('sequelize');function respondWithStatusCode(_0x264c42,_0x550a9d){return _0x550a9d=_0x550a9d||0xcc,function(_0x2d3b63){const _0x346f14=a890_0x4ea9;if(_0x2d3b63)return _0x264c42[_0x346f14(0x98)](_0x550a9d);return _0x264c42[_0x346f14(0x94)](_0x550a9d)[_0x346f14(0xd1)]();};}function respondWithResult(_0x39062e,_0x4e1aa1){return _0x4e1aa1=_0x4e1aa1||0xc8,function(_0xd99173){const _0xa2b1e6=a890_0x4ea9;if(_0xd99173)return _0x39062e[_0xa2b1e6(0x94)](_0x4e1aa1)[_0xa2b1e6(0xb1)](_0xd99173);};}function respondWithFilteredResult(_0x5b2906,_0x124fa3){return function(_0x233035){const _0x1ef827=a890_0x4ea9;if(_0x233035){const _0x354a6c=_0x233035['count'],_0x26c5cd=_0x124fa3[_0x1ef827(0xbc)];let _0x2bea9b=_0x124fa3[_0x1ef827(0xbc)]+_0x124fa3[_0x1ef827(0x8e)],_0x57f561;return _0x2bea9b>=_0x354a6c?(_0x2bea9b=_0x354a6c,_0x57f561=0xc8):_0x57f561=0xce,_0x5b2906[_0x1ef827(0x94)](_0x57f561),_0x5b2906['set'](_0x1ef827(0xd2),_0x26c5cd+'-'+_0x2bea9b+'/'+_0x354a6c)[_0x1ef827(0xb1)](_0x233035);}return null;};}function saveUpdates(_0x78dba0){return function(_0x9b3955){const _0x11c651=a890_0x4ea9;if(_0x9b3955)return _0x9b3955[_0x11c651(0xab)](_0x78dba0)[_0x11c651(0x97)](function(_0x23bb27){return _0x23bb27;});return null;};}function removeEntity(_0x31388f){return function(_0x32be55){const _0x15bfa0=a890_0x4ea9;if(_0x32be55)return _0x32be55[_0x15bfa0(0xad)]()[_0x15bfa0(0x97)](function(){const _0x5d3a9d=_0x15bfa0,_0x36f06a=_0x32be55['get']({'plain':!![]}),_0xc218fd=_0x5d3a9d(0xd9);return db[_0x5d3a9d(0x92)][_0x5d3a9d(0xad)]({'where':{'type':_0xc218fd,'resourceId':_0x36f06a['id']}})[_0x5d3a9d(0x97)](function(){return _0x32be55;});})['then'](function(){const _0x3d46ca=_0x15bfa0;_0x31388f[_0x3d46ca(0x94)](0xcc)[_0x3d46ca(0xd1)]();});};}function handleEntityNotFound(_0xa1fc){return function(_0x233815){const _0x1b6d70=a890_0x4ea9;return!_0x233815&&_0xa1fc[_0x1b6d70(0x98)](0x194),_0x233815;};}function handleError(_0x3b7a60,_0x32c39e){return _0x32c39e=_0x32c39e||0x1f4,function(_0x12a086){const _0x5a08ce=a890_0x4ea9;logger[_0x5a08ce(0xa9)](_0x12a086['stack']),_0x12a086['name']&&delete _0x12a086[_0x5a08ce(0xb5)],_0x3b7a60[_0x5a08ce(0x94)](_0x32c39e)[_0x5a08ce(0x9e)](_0x12a086);};}exports['index']=function(_0x792030,_0x1eb097){const _0x207a2d=a890_0x456ccf;let _0x5a0912={};const _0x206613={},_0x238334={'count':0x0,'rows':[]},_0x3013ef=_['map'](db[_0x207a2d(0x9b)]['rawAttributes'],function(_0x198853){const _0x3ca42f=_0x207a2d;return{'name':_0x198853['fieldName'],'type':_0x198853[_0x3ca42f(0xa7)][_0x3ca42f(0x8c)]};});_0x206613['model']=_[_0x207a2d(0xcc)](_0x3013ef,_0x207a2d(0xb5)),_0x206613['query']=_[_0x207a2d(0xc1)](_0x792030[_0x207a2d(0xb7)]),_0x206613[_0x207a2d(0xb3)]=_[_0x207a2d(0x8d)](_0x206613[_0x207a2d(0xa3)],_0x206613[_0x207a2d(0xb7)]),_0x5a0912[_0x207a2d(0xc7)]=_[_0x207a2d(0x8d)](_0x206613[_0x207a2d(0xa3)],qs['fields'](_0x792030[_0x207a2d(0xb7)][_0x207a2d(0xbb)])),_0x5a0912[_0x207a2d(0xc7)]=_0x5a0912[_0x207a2d(0xc7)][_0x207a2d(0xd3)]?_0x5a0912[_0x207a2d(0xc7)]:_0x206613[_0x207a2d(0xa3)];typeof _0x792030[_0x207a2d(0xb7)][_0x207a2d(0xb9)]===_0x207a2d(0xba)&&(_0x5a0912[_0x207a2d(0x8e)]=qs['limit'](_0x792030[_0x207a2d(0xb7)][_0x207a2d(0x8e)]),_0x5a0912[_0x207a2d(0xbc)]=qs[_0x207a2d(0xbc)](_0x792030[_0x207a2d(0xb7)][_0x207a2d(0xbc)]));_0x5a0912[_0x207a2d(0x8b)]=qs[_0x207a2d(0xd0)](_0x792030[_0x207a2d(0xb7)][_0x207a2d(0xd0)]),_0x5a0912[_0x207a2d(0xbf)]=qs[_0x207a2d(0xb3)](_[_0x207a2d(0x9a)](_0x792030[_0x207a2d(0xb7)],_0x206613[_0x207a2d(0xb3)]),_0x3013ef);_0x792030[_0x207a2d(0xb7)][_0x207a2d(0xc6)]&&(_0x5a0912['where']=_['merge'](_0x5a0912[_0x207a2d(0xbf)],{[Op['or']]:_[_0x207a2d(0xcc)](_0x3013ef,function(_0x12a81d){const _0x17916d=_0x207a2d;if(_0x12a81d[_0x17916d(0xa7)]!==_0x17916d(0xcb)){const _0x166316={};return _0x166316[_0x12a81d[_0x17916d(0xb5)]]={[Op[_0x17916d(0xc9)]]:'%'+_0x792030['query']['filter']+'%'},_0x166316;}})}));_0x5a0912=_['merge']({},_0x5a0912,_0x792030[_0x207a2d(0xd8)]);const _0x817c3b={'where':_0x5a0912[_0x207a2d(0xbf)]};return db[_0x207a2d(0x9b)][_0x207a2d(0xc8)](_0x817c3b)[_0x207a2d(0x97)](function(_0x2ed70c){const _0x3373b9=_0x207a2d;return _0x238334['count']=_0x2ed70c,_0x792030[_0x3373b9(0xb7)][_0x3373b9(0xac)]&&(_0x5a0912[_0x3373b9(0x89)]=[{'all':!![]}]),db[_0x3373b9(0x9b)][_0x3373b9(0x9d)](_0x5a0912);})[_0x207a2d(0x97)](function(_0x5168a0){return _0x238334['rows']=_0x5168a0,_0x238334;})[_0x207a2d(0x97)](respondWithFilteredResult(_0x1eb097,_0x5a0912))[_0x207a2d(0xd7)](handleError(_0x1eb097,null));},exports[a890_0x456ccf(0xa1)]=function(_0x4084de,_0x1f411f){const _0x5c33cb=a890_0x456ccf;let _0x56ad11={'raw':![],'where':{'id':_0x4084de['params']['id']}};const _0x4119d6={};return _0x4119d6[_0x5c33cb(0xa3)]=_[_0x5c33cb(0xc1)](db['VoiceMusicOnHold'][_0x5c33cb(0xda)]),_0x4119d6[_0x5c33cb(0xb7)]=_['keys'](_0x4084de['query']),_0x4119d6[_0x5c33cb(0xb3)]=_[_0x5c33cb(0x8d)](_0x4119d6[_0x5c33cb(0xa3)],_0x4119d6[_0x5c33cb(0xb7)]),_0x56ad11[_0x5c33cb(0xc7)]=_['intersection'](_0x4119d6[_0x5c33cb(0xa3)],qs[_0x5c33cb(0xbb)](_0x4084de[_0x5c33cb(0xb7)]['fields'])),_0x56ad11['attributes']=_0x56ad11[_0x5c33cb(0xc7)]['length']?_0x56ad11[_0x5c33cb(0xc7)]:_0x4119d6[_0x5c33cb(0xa3)],_0x4084de['query'][_0x5c33cb(0xac)]&&(_0x56ad11[_0x5c33cb(0x89)]=[{'all':!![]}]),_0x56ad11=_['merge']({},_0x56ad11,_0x4084de['options']),db[_0x5c33cb(0x9b)][_0x5c33cb(0xa8)](_0x56ad11)[_0x5c33cb(0x97)](handleEntityNotFound(_0x1f411f,null))[_0x5c33cb(0x97)](respondWithResult(_0x1f411f,null))[_0x5c33cb(0xd7)](handleError(_0x1f411f,null));},exports['update']=function(_0xd9d905,_0x12c64){const _0x392d43=a890_0x456ccf;return _0xd9d905[_0x392d43(0xd5)]['id']&&delete _0xd9d905['body']['id'],db[_0x392d43(0x9b)][_0x392d43(0xa8)]({'where':{'id':_0xd9d905[_0x392d43(0xbd)]['id']}})[_0x392d43(0x97)](handleEntityNotFound(_0x12c64,null))[_0x392d43(0x97)](saveUpdates(_0xd9d905[_0x392d43(0xd5)],null))['then'](respondWithResult(_0x12c64,null))[_0x392d43(0xd7)](handleError(_0x12c64,null));},exports[a890_0x456ccf(0xaa)]=function(_0x9127c1,_0x329996){const _0x558ae7=a890_0x456ccf;return db[_0x558ae7(0xb2)][_0x558ae7(0xa2)](function(_0x18a1ed){const _0x193bc3=_0x558ae7;return _0x9127c1[_0x193bc3(0xd5)][_0x193bc3(0xc4)]===_0x193bc3(0xa6)&&(_0x9127c1['body'][_0x193bc3(0xb8)]=path[_0x193bc3(0xce)](config['root'],_0x193bc3(0xc2),_0x9127c1[_0x193bc3(0xd5)][_0x193bc3(0xb5)])),db[_0x193bc3(0x9b)][_0x193bc3(0xaa)](_0x9127c1[_0x193bc3(0xd5)],{'transaction':_0x18a1ed})['then'](function(_0x4f5f11){const _0x501346=_0x193bc3;_0x9127c1[_0x501346(0xd5)]['mode']==='files'&&fs['mkdirSync'](_0x4f5f11[_0x501346(0xb8)],parseInt('0777',0x8));const _0x461b49=_0x9127c1['user']['get']({'plain':!![]});if(!_0x461b49)throw new Error(_0x501346(0xa0));if(_0x461b49[_0x501346(0xb0)]==='user'){const _0x17d0a8=_0x4f5f11[_0x501346(0xcd)]({'plain':!![]});return db[_0x501346(0xca)][_0x501346(0xa8)]({'where':{'name':_0x501346(0xd9),'userProfileId':_0x461b49[_0x501346(0x8a)]},'raw':!![]})[_0x501346(0x97)](function(_0x1921a4){const _0x484c48=_0x501346;return _0x1921a4&&_0x1921a4['autoAssociation']===0x0?db[_0x484c48(0x92)]['create']({'name':_0x17d0a8['name'],'resourceId':_0x17d0a8['id'],'type':_0x1921a4[_0x484c48(0xb5)],'sectionId':_0x1921a4['id']},{})['then'](function(){return _0x4f5f11;}):_0x4f5f11;})[_0x501346(0xd7)](function(_0x39c489){const _0x5f3b16=_0x501346;logger['error'](_0x5f3b16(0xdb),_0x39c489);});}return _0x4f5f11;});})['then'](respondWithResult(_0x329996,0xc9))['catch'](handleError(_0x329996,null));},exports['destroy']=function(_0x237a2e,_0x1fd314){const _0x3f3207=a890_0x456ccf;return db[_0x3f3207(0x9b)][_0x3f3207(0xa8)]({'where':{'id':_0x237a2e[_0x3f3207(0xbd)]['id']}})['then'](function(_0x7ae8a4){const _0x2d528c=_0x3f3207;if(_0x7ae8a4)return db[_0x2d528c(0xb2)]['transaction'](function(_0x4dbdf8){const _0xe80f5f=_0x2d528c;return _0x7ae8a4[_0xe80f5f(0xad)]({'transaction':_0x4dbdf8,'raw':!![]})[_0xe80f5f(0x97)](function(_0x1c4601){const _0x3606c3=_0xe80f5f;return _0x1c4601[_0x3606c3(0xb8)]&&(fs[_0x3606c3(0xd6)](_0x1c4601[_0x3606c3(0xb8)])['forEach'](function(_0x13b092){const _0x1cf47f=_0x3606c3;fs[_0x1cf47f(0x91)](path['join'](_0x1c4601['directory'],_0x13b092));}),fs[_0x3606c3(0x96)](_0x1c4601[_0x3606c3(0xb8)])),_0x1c4601;});})['catch'](function(_0x2dd405){const _0x4c36f6=_0x2d528c;throw new ValidationError(_0x2dd405[_0x4c36f6(0xaf)]);});})[_0x3f3207(0x97)](handleEntityNotFound(_0x1fd314,null))[_0x3f3207(0x97)](removeEntity(_0x1fd314,null))[_0x3f3207(0xd7)](handleError(_0x1fd314,null));},exports['addSound']=function(_0x40b1af,_0x5cd0e0){const _0x84f51e=a890_0x456ccf;return db[_0x84f51e(0xb2)][_0x84f51e(0xa2)](function(_0x5dfb9c){const _0x9893c9=_0x84f51e;let _0x1568f7;return db[_0x9893c9(0x9b)]['findOne']({'where':{'id':_0x40b1af[_0x9893c9(0xbd)]['id']}})['then'](function(_0x2467c8){const _0x5e79e8=_0x9893c9;if(_0x2467c8)return _0x1568f7=_0x2467c8,_0x2467c8['addSound'](_0x40b1af[_0x5e79e8(0xd5)]['id'],{'transaction':_0x5dfb9c});})['then'](function(_0xf5bd73){const _0xd1f0bf=_0x9893c9;if(_0xf5bd73)return db['Sound'][_0xd1f0bf(0xa8)]({'where':{'id':_0x40b1af[_0xd1f0bf(0xd5)]['id']},'attributes':['id','name',_0xd1f0bf(0x95),_0xd1f0bf(0xa5),_0xd1f0bf(0xb6)],'raw':!![]});})[_0x9893c9(0x97)](function(_0x50cf1f){const _0x5a9b32=_0x9893c9;if(_0x50cf1f){const _0x614283=path['join'](config[_0x5a9b32(0xc5)],_0x5a9b32(0x93),util[_0x5a9b32(0xc0)](_0x5a9b32(0x88),path[_0x5a9b32(0x99)](_0x50cf1f['save_name'],path['extname'](_0x50cf1f[_0x5a9b32(0x95)])),_0x50cf1f[_0x5a9b32(0xa5)])),_0x3e8d93=path[_0x5a9b32(0xce)](config[_0x5a9b32(0xc5)],_0x5a9b32(0xc2),_0x1568f7[_0x5a9b32(0xb5)],util['format'](_0x5a9b32(0x88),_0x50cf1f[_0x5a9b32(0xb5)],_0x50cf1f[_0x5a9b32(0xa5)]));return fs[_0x5a9b32(0xcf)](_0x614283,_0x3e8d93),_0x50cf1f;}})['catch'](function(_0x1467af){const _0x4a1a1c=_0x9893c9;throw new ValidationError(_0x1467af[_0x4a1a1c(0xaf)]);});})[_0x84f51e(0x97)](handleEntityNotFound(_0x5cd0e0,null))[_0x84f51e(0x97)](respondWithResult(_0x5cd0e0,0xc9))['catch'](handleError(_0x5cd0e0,null));},exports['removeSound']=function(_0x2906e5,_0x4d46fa){const _0x274746=a890_0x456ccf;return db['sequelize']['transaction'](function(){const _0x4ca559=a890_0x4ea9;let _0x4f2193;return db['VoiceMusicOnHold'][_0x4ca559(0xa8)]({'where':{'id':_0x2906e5[_0x4ca559(0xbd)]['id']}})[_0x4ca559(0x97)](handleEntityNotFound(_0x4d46fa,null))[_0x4ca559(0x97)](function(_0x4eb135){const _0x5eb868=_0x4ca559;if(_0x4eb135)return _0x4f2193=_0x4eb135,_0x4eb135[_0x5eb868(0x9c)](_0x2906e5['params'][_0x5eb868(0x8f)]);})[_0x4ca559(0x97)](function(_0x3464c8){const _0x5a992b=_0x4ca559;if(_0x3464c8)return db[_0x5a992b(0xae)]['findOne']({'where':{'id':_0x2906e5[_0x5a992b(0xbd)][_0x5a992b(0x8f)]},'attributes':['id',_0x5a992b(0xb5),_0x5a992b(0x95),_0x5a992b(0xa5),_0x5a992b(0xb6)],'raw':!![]});})['then'](function(_0x151116){const _0x3d3dbe=_0x4ca559;if(_0x151116)return fs['unlinkSync'](path['join'](_0x4f2193['directory'],util['format'](_0x3d3dbe(0x88),_0x151116[_0x3d3dbe(0xb5)],_0x151116[_0x3d3dbe(0xa5)]))),_0x151116;})[_0x4ca559(0xd7)](function(_0x597c7c){throw new ValidationError(_0x597c7c['message']);});})[_0x274746(0x97)](handleEntityNotFound(_0x4d46fa,null))[_0x274746(0x97)](respondWithStatusCode(_0x4d46fa,0xcc))[_0x274746(0xd7)](handleError(_0x4d46fa,null));},exports[a890_0x456ccf(0xa4)]=function(_0x2acde4,_0x4dbd5e){const _0x5ca235=a890_0x456ccf;let _0x17339d={};const _0x4be766={};let _0x412e35,_0x2f369d;return db[_0x5ca235(0x9b)][_0x5ca235(0xa8)]({'where':{'id':_0x2acde4[_0x5ca235(0xbd)]['id']}})[_0x5ca235(0x97)](handleEntityNotFound(_0x4dbd5e,null))['then'](function(_0xea8d4a){const _0x1e9f8b=_0x5ca235;if(_0xea8d4a)return _0x412e35=_0xea8d4a,_0x4be766['model']=_[_0x1e9f8b(0xc1)](db['Sound'][_0x1e9f8b(0xda)]),_0x4be766[_0x1e9f8b(0xb7)]=_[_0x1e9f8b(0xc1)](_0x2acde4['query']),_0x4be766[_0x1e9f8b(0xb3)]=_['intersection'](_0x4be766[_0x1e9f8b(0xa3)],_0x4be766[_0x1e9f8b(0xb7)]),_0x17339d[_0x1e9f8b(0xc7)]=_[_0x1e9f8b(0x8d)](_0x4be766[_0x1e9f8b(0xa3)],qs[_0x1e9f8b(0xbb)](_0x2acde4[_0x1e9f8b(0xb7)]['fields'])),_0x17339d['attributes']=_0x17339d[_0x1e9f8b(0xc7)][_0x1e9f8b(0xd3)]?_0x17339d[_0x1e9f8b(0xc7)]:_0x4be766['model'],_0x17339d[_0x1e9f8b(0x8b)]=qs[_0x1e9f8b(0xd0)](_0x2acde4[_0x1e9f8b(0xb7)]['sort']),_0x17339d['where']=qs[_0x1e9f8b(0xb3)](_[_0x1e9f8b(0x9a)](_0x2acde4['query'],_0x4be766[_0x1e9f8b(0xb3)])),_0x2acde4[_0x1e9f8b(0xb7)][_0x1e9f8b(0xc6)]&&(_0x17339d['where']=_[_0x1e9f8b(0xbe)](_0x17339d[_0x1e9f8b(0xbf)],{[Op['or']]:_[_0x1e9f8b(0xcc)](_0x17339d[_0x1e9f8b(0xc7)],function(_0x28756b){const _0x567320=_0x1e9f8b,_0x46890c={};return _0x46890c[_0x28756b]={[Op[_0x567320(0xc9)]]:'%'+_0x2acde4[_0x567320(0xb7)][_0x567320(0xc6)]+'%'},_0x46890c;})})),_0x17339d=_[_0x1e9f8b(0xbe)]({},_0x17339d,_0x2acde4[_0x1e9f8b(0xd8)]),_0x412e35[_0x1e9f8b(0xa4)](_0x17339d);})[_0x5ca235(0x97)](function(_0x5afaff){const _0x270629=_0x5ca235;if(_0x5afaff)return _0x2f369d=_0x5afaff['length'],typeof _0x2acde4[_0x270629(0xb7)][_0x270629(0xb9)]==='undefined'&&(_0x17339d[_0x270629(0x8e)]=qs['limit'](_0x2acde4['query'][_0x270629(0x8e)]),_0x17339d[_0x270629(0xbc)]=qs[_0x270629(0xbc)](_0x2acde4[_0x270629(0xb7)]['offset'])),_0x412e35['getSounds'](_0x17339d);})['then'](function(_0x4f62ac){if(_0x4f62ac)return _0x4f62ac?{'count':_0x2f369d,'rows':_0x4f62ac}:null;})[_0x5ca235(0x97)](respondWithResult(_0x4dbd5e,null))[_0x5ca235(0xd7)](handleError(_0x4dbd5e,null));}; \ No newline at end of file +const a890_0x3708=['addSound','unlinkSync','undefined','order','util','rawAttributes','destroy','user','attributes','error','basename','options','name','mkdirSync','files','userProfileId','map','filter','get','symlinkSync','type','fieldName','fields','sendStatus','status','removeSound','0777','../../config/logger','rows','intersection','include','includeAll','sort','index','findAll','offset','set','length','Content-Range','converted_format','message','query','model','then','json','VoiceMusicOnHold','root','keys','mode','save_name','server/files/sounds/converted','count','stack','format','end','%s.%s','api','transaction','../../components/parsers/qs','where','catch','join','id2','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','getSounds','create','body','Unable\x20to\x20retrieve\x20the\x20current\x20user','filters','merge','server/files/moh','rmdirSync','findOne','sequelize','params','send','nolimit','limit','extname','Sound','VIRTUAL','role','path','MusicOnHolds','like','readdirSync','directory','createdAt'];(function(_0x634bfb,_0x29211d){const _0x370846=function(_0x413295){while(--_0x413295){_0x634bfb['push'](_0x634bfb['shift']());}};_0x370846(++_0x29211d);}(a890_0x3708,0xf0));const a890_0x4132=function(_0x634bfb,_0x29211d){_0x634bfb=_0x634bfb-0x109;let _0x370846=a890_0x3708[_0x634bfb];return _0x370846;};const a890_0x377b2d=a890_0x4132;'use strict';const util=require(a890_0x377b2d(0x125)),path=require(a890_0x377b2d(0x11b)),fs=require('fs'),_=require('lodash'),qs=require(a890_0x377b2d(0x15b)),logger=require(a890_0x377b2d(0x13c))(a890_0x377b2d(0x159)),config=require('../../config/environment'),{db}=require('../../mysqldb'),{Op,ValidationError}=require('sequelize');function respondWithStatusCode(_0xae86d2,_0x5569e2){return _0x5569e2=_0x5569e2||0xcc,function(_0x2df8db){const _0xf44b60=a890_0x4132;if(_0x2df8db)return _0xae86d2[_0xf44b60(0x138)](_0x5569e2);return _0xae86d2['status'](_0x5569e2)[_0xf44b60(0x157)]();};}function respondWithResult(_0x3eb4a2,_0x327306){return _0x327306=_0x327306||0xc8,function(_0x2f41aa){const _0x53f680=a890_0x4132;if(_0x2f41aa)return _0x3eb4a2[_0x53f680(0x139)](_0x327306)[_0x53f680(0x14d)](_0x2f41aa);};}function respondWithFilteredResult(_0x1bb32a,_0x158df7){return function(_0x172085){const _0xe44c5=a890_0x4132;if(_0x172085){const _0x2902ac=_0x172085[_0xe44c5(0x154)],_0x57d1d5=_0x158df7['offset'];let _0x24593e=_0x158df7[_0xe44c5(0x144)]+_0x158df7['limit'],_0x290740;return _0x24593e>=_0x2902ac?(_0x24593e=_0x2902ac,_0x290740=0xc8):_0x290740=0xce,_0x1bb32a[_0xe44c5(0x139)](_0x290740),_0x1bb32a[_0xe44c5(0x145)](_0xe44c5(0x147),_0x57d1d5+'-'+_0x24593e+'/'+_0x2902ac)[_0xe44c5(0x14d)](_0x172085);}return null;};}function saveUpdates(_0x1d5345){return function(_0x5f4ad0){const _0x221a5b=a890_0x4132;if(_0x5f4ad0)return _0x5f4ad0['update'](_0x1d5345)[_0x221a5b(0x14c)](function(_0x3577d2){return _0x3577d2;});return null;};}function removeEntity(_0x5a4f0a){return function(_0x1bf2a7){const _0x588f43=a890_0x4132;if(_0x1bf2a7)return _0x1bf2a7[_0x588f43(0x127)]()[_0x588f43(0x14c)](function(){const _0x4d29db=_0x588f43,_0x13fdab=_0x1bf2a7[_0x4d29db(0x133)]({'plain':!![]}),_0x4c732a=_0x4d29db(0x11c);return db['UserProfileResource']['destroy']({'where':{'type':_0x4c732a,'resourceId':_0x13fdab['id']}})[_0x4d29db(0x14c)](function(){return _0x1bf2a7;});})['then'](function(){const _0x136002=_0x588f43;_0x5a4f0a[_0x136002(0x139)](0xcc)[_0x136002(0x157)]();});};}function handleEntityNotFound(_0x351c15){return function(_0x48fbd9){const _0x5dbca7=a890_0x4132;return!_0x48fbd9&&_0x351c15[_0x5dbca7(0x138)](0x194),_0x48fbd9;};}function handleError(_0x485b66,_0x2455dd){return _0x2455dd=_0x2455dd||0x1f4,function(_0x2089ac){const _0x4425db=a890_0x4132;logger[_0x4425db(0x12a)](_0x2089ac[_0x4425db(0x155)]),_0x2089ac[_0x4425db(0x12d)]&&delete _0x2089ac[_0x4425db(0x12d)],_0x485b66[_0x4425db(0x139)](_0x2455dd)[_0x4425db(0x114)](_0x2089ac);};}exports[a890_0x377b2d(0x142)]=function(_0x428f0f,_0x43be05){const _0x19c06d=a890_0x377b2d;let _0x3ab248={};const _0x53e366={},_0x11558d={'count':0x0,'rows':[]},_0xe18b02=_[_0x19c06d(0x131)](db[_0x19c06d(0x14e)]['rawAttributes'],function(_0x19eca2){const _0x465815=_0x19c06d;return{'name':_0x19eca2[_0x465815(0x136)],'type':_0x19eca2[_0x465815(0x135)]['key']};});_0x53e366['model']=_[_0x19c06d(0x131)](_0xe18b02,_0x19c06d(0x12d)),_0x53e366[_0x19c06d(0x14a)]=_[_0x19c06d(0x150)](_0x428f0f[_0x19c06d(0x14a)]),_0x53e366['filters']=_['intersection'](_0x53e366[_0x19c06d(0x14b)],_0x53e366[_0x19c06d(0x14a)]),_0x3ab248[_0x19c06d(0x129)]=_[_0x19c06d(0x13e)](_0x53e366[_0x19c06d(0x14b)],qs[_0x19c06d(0x137)](_0x428f0f[_0x19c06d(0x14a)]['fields'])),_0x3ab248['attributes']=_0x3ab248[_0x19c06d(0x129)][_0x19c06d(0x146)]?_0x3ab248[_0x19c06d(0x129)]:_0x53e366[_0x19c06d(0x14b)];typeof _0x428f0f[_0x19c06d(0x14a)][_0x19c06d(0x115)]==='undefined'&&(_0x3ab248[_0x19c06d(0x116)]=qs[_0x19c06d(0x116)](_0x428f0f[_0x19c06d(0x14a)]['limit']),_0x3ab248[_0x19c06d(0x144)]=qs[_0x19c06d(0x144)](_0x428f0f['query'][_0x19c06d(0x144)]));_0x3ab248[_0x19c06d(0x124)]=qs[_0x19c06d(0x141)](_0x428f0f[_0x19c06d(0x14a)]['sort']),_0x3ab248['where']=qs[_0x19c06d(0x10d)](_['pick'](_0x428f0f['query'],_0x53e366[_0x19c06d(0x10d)]),_0xe18b02);_0x428f0f[_0x19c06d(0x14a)]['filter']&&(_0x3ab248[_0x19c06d(0x15c)]=_[_0x19c06d(0x10e)](_0x3ab248[_0x19c06d(0x15c)],{[Op['or']]:_[_0x19c06d(0x131)](_0xe18b02,function(_0x46734f){const _0x2201fe=_0x19c06d;if(_0x46734f['type']!==_0x2201fe(0x119)){const _0x5b2848={};return _0x5b2848[_0x46734f[_0x2201fe(0x12d)]]={[Op['like']]:'%'+_0x428f0f['query']['filter']+'%'},_0x5b2848;}})}));_0x3ab248=_[_0x19c06d(0x10e)]({},_0x3ab248,_0x428f0f[_0x19c06d(0x12c)]);const _0x52759b={'where':_0x3ab248[_0x19c06d(0x15c)]};return db[_0x19c06d(0x14e)]['count'](_0x52759b)[_0x19c06d(0x14c)](function(_0x4ba4d6){const _0x738c73=_0x19c06d;return _0x11558d[_0x738c73(0x154)]=_0x4ba4d6,_0x428f0f['query'][_0x738c73(0x140)]&&(_0x3ab248[_0x738c73(0x13f)]=[{'all':!![]}]),db[_0x738c73(0x14e)][_0x738c73(0x143)](_0x3ab248);})[_0x19c06d(0x14c)](function(_0x49b2c5){const _0x2e76ae=_0x19c06d;return _0x11558d[_0x2e76ae(0x13d)]=_0x49b2c5,_0x11558d;})['then'](respondWithFilteredResult(_0x43be05,_0x3ab248))['catch'](handleError(_0x43be05,null));},exports['show']=function(_0x26ec05,_0xfcd87a){const _0x399267=a890_0x377b2d;let _0x173f10={'raw':![],'where':{'id':_0x26ec05[_0x399267(0x113)]['id']}};const _0x5580f0={};return _0x5580f0[_0x399267(0x14b)]=_[_0x399267(0x150)](db[_0x399267(0x14e)][_0x399267(0x126)]),_0x5580f0['query']=_[_0x399267(0x150)](_0x26ec05[_0x399267(0x14a)]),_0x5580f0[_0x399267(0x10d)]=_['intersection'](_0x5580f0[_0x399267(0x14b)],_0x5580f0[_0x399267(0x14a)]),_0x173f10['attributes']=_[_0x399267(0x13e)](_0x5580f0['model'],qs[_0x399267(0x137)](_0x26ec05[_0x399267(0x14a)][_0x399267(0x137)])),_0x173f10[_0x399267(0x129)]=_0x173f10[_0x399267(0x129)][_0x399267(0x146)]?_0x173f10[_0x399267(0x129)]:_0x5580f0[_0x399267(0x14b)],_0x26ec05[_0x399267(0x14a)][_0x399267(0x140)]&&(_0x173f10['include']=[{'all':!![]}]),_0x173f10=_[_0x399267(0x10e)]({},_0x173f10,_0x26ec05['options']),db['VoiceMusicOnHold'][_0x399267(0x111)](_0x173f10)[_0x399267(0x14c)](handleEntityNotFound(_0xfcd87a,null))[_0x399267(0x14c)](respondWithResult(_0xfcd87a,null))[_0x399267(0x15d)](handleError(_0xfcd87a,null));},exports['update']=function(_0x9957a0,_0xa197e0){const _0x454824=a890_0x377b2d;return _0x9957a0[_0x454824(0x10b)]['id']&&delete _0x9957a0[_0x454824(0x10b)]['id'],db[_0x454824(0x14e)][_0x454824(0x111)]({'where':{'id':_0x9957a0[_0x454824(0x113)]['id']}})[_0x454824(0x14c)](handleEntityNotFound(_0xa197e0,null))[_0x454824(0x14c)](saveUpdates(_0x9957a0[_0x454824(0x10b)],null))[_0x454824(0x14c)](respondWithResult(_0xa197e0,null))[_0x454824(0x15d)](handleError(_0xa197e0,null));},exports['create']=function(_0x3dd039,_0x5210cb){const _0x345723=a890_0x377b2d;return db['sequelize'][_0x345723(0x15a)](function(_0x782b85){const _0x5d8801=_0x345723;return _0x3dd039[_0x5d8801(0x10b)]['mode']===_0x5d8801(0x12f)&&(_0x3dd039[_0x5d8801(0x10b)][_0x5d8801(0x11f)]=path[_0x5d8801(0x15e)](config['root'],'server/files/moh',_0x3dd039[_0x5d8801(0x10b)][_0x5d8801(0x12d)])),db[_0x5d8801(0x14e)][_0x5d8801(0x10a)](_0x3dd039[_0x5d8801(0x10b)],{'transaction':_0x782b85})[_0x5d8801(0x14c)](function(_0x2a2f05){const _0x29eb0e=_0x5d8801;_0x3dd039[_0x29eb0e(0x10b)][_0x29eb0e(0x151)]==='files'&&fs[_0x29eb0e(0x12e)](_0x2a2f05[_0x29eb0e(0x11f)],parseInt(_0x29eb0e(0x13b),0x8));const _0x2eef0c=_0x3dd039[_0x29eb0e(0x128)]['get']({'plain':!![]});if(!_0x2eef0c)throw new Error(_0x29eb0e(0x10c));if(_0x2eef0c[_0x29eb0e(0x11a)]===_0x29eb0e(0x128)){const _0x464f3c=_0x2a2f05[_0x29eb0e(0x133)]({'plain':!![]});return db['UserProfileSection']['findOne']({'where':{'name':_0x29eb0e(0x11c),'userProfileId':_0x2eef0c[_0x29eb0e(0x130)]},'raw':!![]})[_0x29eb0e(0x14c)](function(_0x49b603){const _0x311753=_0x29eb0e;return _0x49b603&&_0x49b603['autoAssociation']===0x0?db['UserProfileResource'][_0x311753(0x10a)]({'name':_0x464f3c['name'],'resourceId':_0x464f3c['id'],'type':_0x49b603['name'],'sectionId':_0x49b603['id']},{})['then'](function(){return _0x2a2f05;}):_0x2a2f05;})[_0x29eb0e(0x15d)](function(_0x49be1a){const _0x2d85dd=_0x29eb0e;logger['error'](_0x2d85dd(0x160),_0x49be1a);});}return _0x2a2f05;});})['then'](respondWithResult(_0x5210cb,0xc9))[_0x345723(0x15d)](handleError(_0x5210cb,null));},exports[a890_0x377b2d(0x127)]=function(_0x15f65c,_0x1b912b){const _0x1574ce=a890_0x377b2d;return db[_0x1574ce(0x14e)]['findOne']({'where':{'id':_0x15f65c[_0x1574ce(0x113)]['id']}})[_0x1574ce(0x14c)](function(_0x3a6a13){const _0x56fc02=_0x1574ce;if(_0x3a6a13)return db[_0x56fc02(0x112)]['transaction'](function(_0x58220d){const _0x338adc=_0x56fc02;return _0x3a6a13[_0x338adc(0x127)]({'transaction':_0x58220d,'raw':!![]})[_0x338adc(0x14c)](function(_0x319550){const _0x5efc1b=_0x338adc;return _0x319550[_0x5efc1b(0x11f)]&&(fs[_0x5efc1b(0x11e)](_0x319550[_0x5efc1b(0x11f)])['forEach'](function(_0x3c2e83){const _0x3840f7=_0x5efc1b;fs[_0x3840f7(0x122)](path[_0x3840f7(0x15e)](_0x319550['directory'],_0x3c2e83));}),fs[_0x5efc1b(0x110)](_0x319550['directory'])),_0x319550;});})[_0x56fc02(0x15d)](function(_0x23cb2d){throw new ValidationError(_0x23cb2d['message']);});})['then'](handleEntityNotFound(_0x1b912b,null))[_0x1574ce(0x14c)](removeEntity(_0x1b912b,null))['catch'](handleError(_0x1b912b,null));},exports[a890_0x377b2d(0x121)]=function(_0x450898,_0xd268c5){const _0xd68a05=a890_0x377b2d;return db[_0xd68a05(0x112)][_0xd68a05(0x15a)](function(_0x27dd4a){const _0x37d029=_0xd68a05;let _0x5dc8a9;return db[_0x37d029(0x14e)][_0x37d029(0x111)]({'where':{'id':_0x450898[_0x37d029(0x113)]['id']}})[_0x37d029(0x14c)](function(_0x3056b1){const _0x43545c=_0x37d029;if(_0x3056b1)return _0x5dc8a9=_0x3056b1,_0x3056b1[_0x43545c(0x121)](_0x450898[_0x43545c(0x10b)]['id'],{'transaction':_0x27dd4a});})['then'](function(_0x5a76c5){const _0x3d2341=_0x37d029;if(_0x5a76c5)return db[_0x3d2341(0x118)][_0x3d2341(0x111)]({'where':{'id':_0x450898['body']['id']},'attributes':['id','name',_0x3d2341(0x152),_0x3d2341(0x148),_0x3d2341(0x120)],'raw':!![]});})['then'](function(_0x12fab8){const _0xd2dc6a=_0x37d029;if(_0x12fab8){const _0x11fb8f=path[_0xd2dc6a(0x15e)](config[_0xd2dc6a(0x14f)],_0xd2dc6a(0x153),util['format']('%s.%s',path[_0xd2dc6a(0x12b)](_0x12fab8[_0xd2dc6a(0x152)],path[_0xd2dc6a(0x117)](_0x12fab8[_0xd2dc6a(0x152)])),_0x12fab8['converted_format'])),_0x9deca=path['join'](config[_0xd2dc6a(0x14f)],_0xd2dc6a(0x10f),_0x5dc8a9['name'],util['format'](_0xd2dc6a(0x158),_0x12fab8[_0xd2dc6a(0x12d)],_0x12fab8['converted_format']));return fs[_0xd2dc6a(0x134)](_0x11fb8f,_0x9deca),_0x12fab8;}})[_0x37d029(0x15d)](function(_0x264c8a){throw new ValidationError(_0x264c8a['message']);});})[_0xd68a05(0x14c)](handleEntityNotFound(_0xd268c5,null))[_0xd68a05(0x14c)](respondWithResult(_0xd268c5,0xc9))[_0xd68a05(0x15d)](handleError(_0xd268c5,null));},exports['removeSound']=function(_0x5b75c0,_0x1eb3e7){const _0x149185=a890_0x377b2d;return db[_0x149185(0x112)][_0x149185(0x15a)](function(){const _0x1d4388=_0x149185;let _0x40325d;return db[_0x1d4388(0x14e)][_0x1d4388(0x111)]({'where':{'id':_0x5b75c0[_0x1d4388(0x113)]['id']}})['then'](handleEntityNotFound(_0x1eb3e7,null))[_0x1d4388(0x14c)](function(_0x3f1b7c){const _0x3450e2=_0x1d4388;if(_0x3f1b7c)return _0x40325d=_0x3f1b7c,_0x3f1b7c[_0x3450e2(0x13a)](_0x5b75c0['params'][_0x3450e2(0x15f)]);})[_0x1d4388(0x14c)](function(_0x28084a){const _0x666f14=_0x1d4388;if(_0x28084a)return db['Sound'][_0x666f14(0x111)]({'where':{'id':_0x5b75c0[_0x666f14(0x113)]['id2']},'attributes':['id',_0x666f14(0x12d),_0x666f14(0x152),_0x666f14(0x148),'createdAt'],'raw':!![]});})['then'](function(_0x121eba){const _0x38bec4=_0x1d4388;if(_0x121eba)return fs[_0x38bec4(0x122)](path[_0x38bec4(0x15e)](_0x40325d['directory'],util[_0x38bec4(0x156)]('%s.%s',_0x121eba[_0x38bec4(0x12d)],_0x121eba['converted_format']))),_0x121eba;})[_0x1d4388(0x15d)](function(_0x18a9c8){const _0x1840c0=_0x1d4388;throw new ValidationError(_0x18a9c8[_0x1840c0(0x149)]);});})['then'](handleEntityNotFound(_0x1eb3e7,null))[_0x149185(0x14c)](respondWithStatusCode(_0x1eb3e7,0xcc))[_0x149185(0x15d)](handleError(_0x1eb3e7,null));},exports[a890_0x377b2d(0x109)]=function(_0x19f707,_0x745920){const _0x346ce0=a890_0x377b2d;let _0x38fea5={};const _0x45b010={};let _0x27e583,_0x47ee9b;return db[_0x346ce0(0x14e)]['findOne']({'where':{'id':_0x19f707[_0x346ce0(0x113)]['id']}})[_0x346ce0(0x14c)](handleEntityNotFound(_0x745920,null))['then'](function(_0x55b330){const _0x347559=_0x346ce0;if(_0x55b330)return _0x27e583=_0x55b330,_0x45b010[_0x347559(0x14b)]=_[_0x347559(0x150)](db[_0x347559(0x118)]['rawAttributes']),_0x45b010[_0x347559(0x14a)]=_[_0x347559(0x150)](_0x19f707[_0x347559(0x14a)]),_0x45b010[_0x347559(0x10d)]=_[_0x347559(0x13e)](_0x45b010[_0x347559(0x14b)],_0x45b010[_0x347559(0x14a)]),_0x38fea5[_0x347559(0x129)]=_[_0x347559(0x13e)](_0x45b010[_0x347559(0x14b)],qs[_0x347559(0x137)](_0x19f707[_0x347559(0x14a)][_0x347559(0x137)])),_0x38fea5['attributes']=_0x38fea5['attributes']['length']?_0x38fea5['attributes']:_0x45b010['model'],_0x38fea5[_0x347559(0x124)]=qs['sort'](_0x19f707[_0x347559(0x14a)]['sort']),_0x38fea5['where']=qs[_0x347559(0x10d)](_['pick'](_0x19f707[_0x347559(0x14a)],_0x45b010[_0x347559(0x10d)])),_0x19f707['query']['filter']&&(_0x38fea5['where']=_[_0x347559(0x10e)](_0x38fea5['where'],{[Op['or']]:_[_0x347559(0x131)](_0x38fea5['attributes'],function(_0x18f677){const _0x52cc1f=_0x347559,_0x51d226={};return _0x51d226[_0x18f677]={[Op[_0x52cc1f(0x11d)]]:'%'+_0x19f707[_0x52cc1f(0x14a)][_0x52cc1f(0x132)]+'%'},_0x51d226;})})),_0x38fea5=_[_0x347559(0x10e)]({},_0x38fea5,_0x19f707['options']),_0x27e583['getSounds'](_0x38fea5);})[_0x346ce0(0x14c)](function(_0xdc363d){const _0x29dad7=_0x346ce0;if(_0xdc363d)return _0x47ee9b=_0xdc363d['length'],typeof _0x19f707[_0x29dad7(0x14a)]['nolimit']===_0x29dad7(0x123)&&(_0x38fea5['limit']=qs[_0x29dad7(0x116)](_0x19f707[_0x29dad7(0x14a)][_0x29dad7(0x116)]),_0x38fea5[_0x29dad7(0x144)]=qs['offset'](_0x19f707[_0x29dad7(0x14a)][_0x29dad7(0x144)])),_0x27e583[_0x29dad7(0x109)](_0x38fea5);})[_0x346ce0(0x14c)](function(_0x2436dc){if(_0x2436dc)return _0x2436dc?{'count':_0x47ee9b,'rows':_0x2436dc}:null;})[_0x346ce0(0x14c)](respondWithResult(_0x745920,null))[_0x346ce0(0x15d)](handleError(_0x745920,null));}; \ No newline at end of file diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js index 1b56dfd..c9e795c 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js @@ -1 +1 @@ -const a891_0x1eb8=['init','function','VoiceMusicOnHold','exports','./voiceMusicOnHold.options','sequelize','./voiceMusicOnHold.attributes'];(function(_0xa6a703,_0x536107){const _0x1eb8aa=function(_0x51f6fc){while(--_0x51f6fc){_0xa6a703['push'](_0xa6a703['shift']());}};_0x1eb8aa(++_0x536107);}(a891_0x1eb8,0x91));const a891_0x51f6=function(_0xa6a703,_0x536107){_0xa6a703=_0xa6a703-0x135;let _0x1eb8aa=a891_0x1eb8[_0xa6a703];return _0x1eb8aa;};const a891_0x637a0b=a891_0x51f6;'use strict';const {Model}=require(a891_0x637a0b(0x135)),{attributes}=require(a891_0x637a0b(0x136)),{options}=require(a891_0x637a0b(0x13b));class VoiceMusicOnHold extends Model{}function init(_0x288144,_0x4ee4a4){const _0x43acfb=a891_0x637a0b,_0x398920=options(_0x288144),_0x4f70e1=typeof _0x4ee4a4===_0x43acfb(0x138)?_0x4ee4a4(_0x398920):_0x398920;return VoiceMusicOnHold['init'](attributes,_0x4f70e1),VoiceMusicOnHold;}module['exports'][a891_0x637a0b(0x139)]=VoiceMusicOnHold,module[a891_0x637a0b(0x13a)][a891_0x637a0b(0x137)]=init; \ No newline at end of file +const a891_0x1e61=['init','sequelize','./voiceMusicOnHold.attributes','exports','./voiceMusicOnHold.options','VoiceMusicOnHold'];(function(_0x5d4ff3,_0x285020){const _0x1e6110=function(_0x35b41c){while(--_0x35b41c){_0x5d4ff3['push'](_0x5d4ff3['shift']());}};_0x1e6110(++_0x285020);}(a891_0x1e61,0xb9));const a891_0x35b4=function(_0x5d4ff3,_0x285020){_0x5d4ff3=_0x5d4ff3-0x107;let _0x1e6110=a891_0x1e61[_0x5d4ff3];return _0x1e6110;};const a891_0x15e2e3=a891_0x35b4;'use strict';const {Model}=require(a891_0x15e2e3(0x109)),{attributes}=require(a891_0x15e2e3(0x10a)),{options}=require(a891_0x15e2e3(0x10c));class VoiceMusicOnHold extends Model{}function init(_0x1904da,_0x2e1b45){const _0x5681ac=a891_0x15e2e3,_0x5d77af=options(_0x1904da),_0x175016=typeof _0x2e1b45==='function'?_0x2e1b45(_0x5d77af):_0x5d77af;return VoiceMusicOnHold[_0x5681ac(0x108)](attributes,_0x175016),VoiceMusicOnHold;}module[a891_0x15e2e3(0x10b)][a891_0x15e2e3(0x107)]=VoiceMusicOnHold,module['exports'][a891_0x15e2e3(0x108)]=init; \ No newline at end of file diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.options.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.options.js index 5dc8956..2066db9 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.options.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.options.js @@ -1 +1 @@ -var a892_0x4035=['options','exports'];(function(_0x3af7b2,_0x366d73){var _0x403566=function(_0x1100b1){while(--_0x1100b1){_0x3af7b2['push'](_0x3af7b2['shift']());}};_0x403566(++_0x366d73);}(a892_0x4035,0x7d));var a892_0x1100=function(_0x3af7b2,_0x366d73){_0x3af7b2=_0x3af7b2-0xe5;var _0x403566=a892_0x4035[_0x3af7b2];return _0x403566;};var a892_0x396faa=a892_0x1100;function options(_0x208099){return{'sequelize':_0x208099,'tableName':'voice_musiconhold','paranoid':![],'indexes':[],'timestamps':!![]};}module[a892_0x396faa(0xe5)][a892_0x396faa(0xe6)]=options; \ No newline at end of file +var a892_0x1705=['options','voice_musiconhold','exports'];(function(_0x3f9eec,_0x353e65){var _0x170561=function(_0x90f2de){while(--_0x90f2de){_0x3f9eec['push'](_0x3f9eec['shift']());}};_0x170561(++_0x353e65);}(a892_0x1705,0xa6));var a892_0x90f2=function(_0x3f9eec,_0x353e65){_0x3f9eec=_0x3f9eec-0x18a;var _0x170561=a892_0x1705[_0x3f9eec];return _0x170561;};var a892_0x6523b8=a892_0x90f2;function options(_0x21e837){var _0x57940b=a892_0x90f2;return{'sequelize':_0x21e837,'tableName':_0x57940b(0x18a),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a892_0x6523b8(0x18b)][a892_0x6523b8(0x18c)]=options; \ No newline at end of file diff --git a/server/api/voicePrefix/index.js b/server/api/voicePrefix/index.js index 5512440..270d0d6 100644 --- a/server/api/voicePrefix/index.js +++ b/server/api/voicePrefix/index.js @@ -1 +1 @@ -const a893_0x10fd=['addAgents','delete','put','isAuthenticated','post','exports','getAgents','removeAgents','/:id','../../components/auth/service','Router','destroy','describe','create','/:id/users','get','express'];(function(_0x2bd9ab,_0x549e60){const _0x10fde4=function(_0x1020db){while(--_0x1020db){_0x2bd9ab['push'](_0x2bd9ab['shift']());}};_0x10fde4(++_0x549e60);}(a893_0x10fd,0x1e9));const a893_0x1020=function(_0x2bd9ab,_0x549e60){_0x2bd9ab=_0x2bd9ab-0x188;let _0x10fde4=a893_0x10fd[_0x2bd9ab];return _0x10fde4;};const a893_0x330f34=a893_0x1020;'use strict';const express=require(a893_0x330f34(0x18b)),router=express[a893_0x330f34(0x196)](),auth=require(a893_0x330f34(0x195)),controller=require('./voicePrefix.controller');router[a893_0x330f34(0x18a)]('/',auth[a893_0x330f34(0x18f)](),controller['index']),router['get']('/describe',auth[a893_0x330f34(0x18f)](),controller[a893_0x330f34(0x198)]),router[a893_0x330f34(0x18a)](a893_0x330f34(0x194),auth[a893_0x330f34(0x18f)](),controller['show']),router[a893_0x330f34(0x18a)]('/:id/users',auth[a893_0x330f34(0x18f)](),controller[a893_0x330f34(0x192)]),router[a893_0x330f34(0x190)]('/',auth[a893_0x330f34(0x18f)](),controller[a893_0x330f34(0x188)]),router[a893_0x330f34(0x190)](a893_0x330f34(0x189),auth[a893_0x330f34(0x18f)](),controller[a893_0x330f34(0x18c)]),router[a893_0x330f34(0x18e)]('/:id',auth['isAuthenticated'](),controller['update']),router[a893_0x330f34(0x18d)](a893_0x330f34(0x194),auth[a893_0x330f34(0x18f)](),controller[a893_0x330f34(0x197)]),router[a893_0x330f34(0x18d)]('/:id/users',auth[a893_0x330f34(0x18f)](),controller[a893_0x330f34(0x193)]),module[a893_0x330f34(0x191)]=router; \ No newline at end of file +const a893_0x5173=['index','removeAgents','/:id','express','exports','isAuthenticated','get','./voicePrefix.controller','getAgents','Router','post','/:id/users','describe','create','update','delete','destroy','put'];(function(_0x4c868a,_0xfb807b){const _0x5173bf=function(_0x124ce7){while(--_0x124ce7){_0x4c868a['push'](_0x4c868a['shift']());}};_0x5173bf(++_0xfb807b);}(a893_0x5173,0x12f));const a893_0x124c=function(_0x4c868a,_0xfb807b){_0x4c868a=_0x4c868a-0x108;let _0x5173bf=a893_0x5173[_0x4c868a];return _0x5173bf;};const a893_0x2e9170=a893_0x124c;'use strict';const express=require(a893_0x2e9170(0x10e)),router=express[a893_0x2e9170(0x114)](),auth=require('../../components/auth/service'),controller=require(a893_0x2e9170(0x112));router[a893_0x2e9170(0x111)]('/',auth[a893_0x2e9170(0x110)](),controller[a893_0x2e9170(0x10b)]),router[a893_0x2e9170(0x111)]('/describe',auth[a893_0x2e9170(0x110)](),controller[a893_0x2e9170(0x117)]),router['get'](a893_0x2e9170(0x10d),auth[a893_0x2e9170(0x110)](),controller['show']),router[a893_0x2e9170(0x111)](a893_0x2e9170(0x116),auth[a893_0x2e9170(0x110)](),controller[a893_0x2e9170(0x113)]),router[a893_0x2e9170(0x115)]('/',auth[a893_0x2e9170(0x110)](),controller[a893_0x2e9170(0x118)]),router[a893_0x2e9170(0x115)](a893_0x2e9170(0x116),auth[a893_0x2e9170(0x110)](),controller['addAgents']),router[a893_0x2e9170(0x10a)](a893_0x2e9170(0x10d),auth[a893_0x2e9170(0x110)](),controller[a893_0x2e9170(0x119)]),router['delete'](a893_0x2e9170(0x10d),auth[a893_0x2e9170(0x110)](),controller[a893_0x2e9170(0x109)]),router[a893_0x2e9170(0x108)](a893_0x2e9170(0x116),auth[a893_0x2e9170(0x110)](),controller[a893_0x2e9170(0x10c)]),module[a893_0x2e9170(0x10f)]=router; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.attributes.js b/server/api/voicePrefix/voicePrefix.attributes.js index f116793..647c562 100644 --- a/server/api/voicePrefix/voicePrefix.attributes.js +++ b/server/api/voicePrefix/voicePrefix.attributes.js @@ -1 +1 @@ -const a894_0x36c5=['STRING','exports','sequelize','INTEGER','name','attributes'];(function(_0x172b90,_0x5b5a5f){const _0x36c5=function(_0x150b2a){while(--_0x150b2a){_0x172b90['push'](_0x172b90['shift']());}};_0x36c5(++_0x5b5a5f);}(a894_0x36c5,0x158));const a894_0x150b=function(_0x172b90,_0x5b5a5f){_0x172b90=_0x172b90-0x7b;let _0x36c5=a894_0x36c5[_0x172b90];return _0x36c5;};const a894_0x1952b3=a894_0x150b;'use strict';const {DataTypes}=require(a894_0x1952b3(0x7b)),attributes={'name':{'type':DataTypes[a894_0x1952b3(0x7f)],'allowNull':![],'unique':a894_0x1952b3(0x7d)},'prefix':{'type':DataTypes['VIRTUAL'],'get':function(){return'system-'+this['getDataValue']('name')+'-';}},'description':{'type':DataTypes[a894_0x1952b3(0x7f)]},'callerIdAll':{'type':DataTypes['STRING']},'VoiceExtensionId':{'type':DataTypes[a894_0x1952b3(0x7c)]}};module[a894_0x1952b3(0x80)][a894_0x1952b3(0x7e)]=attributes; \ No newline at end of file +const a894_0x3323=['INTEGER','attributes','getDataValue','name','VIRTUAL','STRING'];(function(_0x416f7,_0x1fe84a){const _0x332328=function(_0x4b5e6c){while(--_0x4b5e6c){_0x416f7['push'](_0x416f7['shift']());}};_0x332328(++_0x1fe84a);}(a894_0x3323,0x1e7));const a894_0x4b5e=function(_0x416f7,_0x1fe84a){_0x416f7=_0x416f7-0x11e;let _0x332328=a894_0x3323[_0x416f7];return _0x332328;};const a894_0x2b4341=a894_0x4b5e;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a894_0x2b4341(0x122)],'allowNull':![],'unique':'name'},'prefix':{'type':DataTypes[a894_0x2b4341(0x121)],'get':function(){const _0x3c7b69=a894_0x2b4341;return'system-'+this[_0x3c7b69(0x11f)](_0x3c7b69(0x120))+'-';}},'description':{'type':DataTypes[a894_0x2b4341(0x122)]},'callerIdAll':{'type':DataTypes[a894_0x2b4341(0x122)]},'VoiceExtensionId':{'type':DataTypes[a894_0x2b4341(0x123)]}};module['exports'][a894_0x2b4341(0x11e)]=attributes; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.controller.js b/server/api/voicePrefix/voicePrefix.controller.js index e19f57b..adc7ca8 100644 --- a/server/api/voicePrefix/voicePrefix.controller.js +++ b/server/api/voicePrefix/voicePrefix.controller.js @@ -1 +1 @@ -const a895_0x1600=['UserProfileResource','Extensions\x20creation\x20failed','userVoicePrefix:save','PREFIX-CALLERIDALL=','VoiceExtension','options','isArray','params','keys','show','appdata','body','callerIdAll','pick','prefix','update','fieldName','removeAgents','type','filters','name','emit','VoicePrefix','lodash','model','limit','fields','findByPk','destroy','offset','count','Voice\x20Prefix','catch','VIRTUAL','exten','getAgents','rows','findAll','like','VoiceExtensionId','sendStatus','user','push','attributes','../../config/logger','register','transaction','map','send','where','ids','${EXTEN:','merge','autoAssociation','length','get','order','query','filter','sort','goto','set','VoicePrefixId','sequelize','findOne','error','Content-Range','intersection','end','describe','create','./voicePrefix.socket','from-sip','userVoicePrefix:remove','UserProfileSection','context','NoOp','rawAttributes','../../mysqldb','VoicePrefixes','role','status','charAt','then','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Set','undefined','bulkCreate','index','includeAll'];(function(_0x5c60ae,_0x1c6444){const _0x1600d8=function(_0x359931){while(--_0x359931){_0x5c60ae['push'](_0x5c60ae['shift']());}};_0x1600d8(++_0x1c6444);}(a895_0x1600,0x1bf));const a895_0x3599=function(_0x5c60ae,_0x1c6444){_0x5c60ae=_0x5c60ae-0x68;let _0x1600d8=a895_0x1600[_0x5c60ae];return _0x1600d8;};const a895_0x564f78=a895_0x3599;'use strict';const _=require(a895_0x564f78(0x82)),qs=require('../../components/parsers/qs'),logger=require(a895_0x564f78(0x97))('api'),{getSocket}=require('../../rediscache'),socket=getSocket(),{db}=require(a895_0x564f78(0xb9)),{Op}=require('sequelize');require(a895_0x564f78(0xb2))[a895_0x564f78(0x98)](socket);function respondWithStatusCode(_0x5dfff4,_0x1038af){return _0x1038af=_0x1038af||0xcc,function(_0x43878c){const _0x4d0e9b=a895_0x3599;if(_0x43878c)return _0x5dfff4[_0x4d0e9b(0x93)](_0x1038af);return _0x5dfff4[_0x4d0e9b(0xbc)](_0x1038af)[_0x4d0e9b(0xaf)]();};}function respondWithResult(_0x34b148,_0x3e125d){return _0x3e125d=_0x3e125d||0xc8,function(_0x53cd87){if(_0x53cd87)return _0x34b148['status'](_0x3e125d)['json'](_0x53cd87);};}function respondWithFilteredResult(_0x523ca2,_0x2ad5e5){return function(_0x45a2c7){const _0x61c0c5=a895_0x3599;if(_0x45a2c7){const _0x4e307b=_0x45a2c7['count'],_0x3d303c=_0x2ad5e5[_0x61c0c5(0x88)];let _0x3e13ab=_0x2ad5e5['offset']+_0x2ad5e5[_0x61c0c5(0x84)],_0x40efcb;return _0x3e13ab>=_0x4e307b?(_0x3e13ab=_0x4e307b,_0x40efcb=0xc8):_0x40efcb=0xce,_0x523ca2['status'](_0x40efcb),_0x523ca2[_0x61c0c5(0xa8)](_0x61c0c5(0xad),_0x3d303c+'-'+_0x3e13ab+'/'+_0x4e307b)['json'](_0x45a2c7);}return null;};}function removeEntity(_0x58a83e){return function(_0x14a9d9){const _0x4a401a=a895_0x3599;if(_0x14a9d9)return _0x14a9d9[_0x4a401a(0x87)]()['then'](function(){const _0xcfd90a=_0x4a401a,_0x1c4c87=_0x14a9d9[_0xcfd90a(0xa2)]({'plain':!![]}),_0x966d67=_0xcfd90a(0xba);return db[_0xcfd90a(0x6b)][_0xcfd90a(0x87)]({'where':{'type':_0x966d67,'resourceId':_0x1c4c87['id']}})[_0xcfd90a(0xbe)](function(){return _0x14a9d9;});})['then'](function(){const _0x112bd9=_0x4a401a;_0x58a83e[_0x112bd9(0xbc)](0xcc)['end']();});};}function handleEntityNotFound(_0x497d4e){return function(_0x3e6f06){const _0x1864f2=a895_0x3599;return!_0x3e6f06&&_0x497d4e[_0x1864f2(0x93)](0x194),_0x3e6f06;};}function handleError(_0x37486f,_0x149a9f){return _0x149a9f=_0x149a9f||0x1f4,function(_0x49325e){const _0xca0c4d=a895_0x3599;logger[_0xca0c4d(0xac)](_0x49325e['stack']),_0x49325e[_0xca0c4d(0x7f)]&&delete _0x49325e[_0xca0c4d(0x7f)],_0x37486f['status'](_0x149a9f)[_0xca0c4d(0x9b)](_0x49325e);};}exports[a895_0x564f78(0x69)]=function(_0x2a2655,_0x107247){const _0x3082a6=a895_0x564f78;let _0x5ded12={};const _0x2e9eb5={},_0x1144e2={'count':0x0,'rows':[]},_0x2cf45d=_[_0x3082a6(0x9a)](db[_0x3082a6(0x81)][_0x3082a6(0xb8)],function(_0x35df8d){const _0x4ba71f=_0x3082a6;return{'name':_0x35df8d[_0x4ba71f(0x7b)],'type':_0x35df8d[_0x4ba71f(0x7d)]['key']};});_0x2e9eb5[_0x3082a6(0x83)]=_['map'](_0x2cf45d,_0x3082a6(0x7f)),_0x2e9eb5[_0x3082a6(0xa4)]=_['keys'](_0x2a2655[_0x3082a6(0xa4)]),_0x2e9eb5['filters']=_[_0x3082a6(0xae)](_0x2e9eb5[_0x3082a6(0x83)],_0x2e9eb5['query']),_0x5ded12[_0x3082a6(0x96)]=_[_0x3082a6(0xae)](_0x2e9eb5[_0x3082a6(0x83)],qs['fields'](_0x2a2655['query'][_0x3082a6(0x85)])),_0x5ded12[_0x3082a6(0x96)]=_0x5ded12[_0x3082a6(0x96)]['length']?_0x5ded12['attributes']:_0x2e9eb5['model'];typeof _0x2a2655['query']['nolimit']==='undefined'&&(_0x5ded12['limit']=qs[_0x3082a6(0x84)](_0x2a2655[_0x3082a6(0xa4)][_0x3082a6(0x84)]),_0x5ded12[_0x3082a6(0x88)]=qs['offset'](_0x2a2655[_0x3082a6(0xa4)]['offset']));_0x5ded12[_0x3082a6(0xa3)]=qs['sort'](_0x2a2655[_0x3082a6(0xa4)]['sort']),_0x5ded12[_0x3082a6(0x9c)]=qs[_0x3082a6(0x7e)](_[_0x3082a6(0x78)](_0x2a2655['query'],_0x2e9eb5[_0x3082a6(0x7e)]),_0x2cf45d);_0x2a2655[_0x3082a6(0xa4)]['filter']&&(_0x5ded12['where']=_['merge'](_0x5ded12[_0x3082a6(0x9c)],{[Op['or']]:_['map'](_0x2cf45d,function(_0x6ef331){const _0x676fcf=_0x3082a6;if(_0x6ef331['type']!==_0x676fcf(0x8c)){const _0x55dc31={};return _0x55dc31[_0x6ef331['name']]={[Op['like']]:'%'+_0x2a2655['query'][_0x676fcf(0xa5)]+'%'},_0x55dc31;}})}));_0x5ded12=_[_0x3082a6(0x9f)]({},_0x5ded12,_0x2a2655[_0x3082a6(0x70)]);const _0x2e8c36={'where':_0x5ded12[_0x3082a6(0x9c)]};return db[_0x3082a6(0x81)][_0x3082a6(0x89)](_0x2e8c36)[_0x3082a6(0xbe)](function(_0x4ddc2e){const _0xd82196=_0x3082a6;return _0x1144e2[_0xd82196(0x89)]=_0x4ddc2e,_0x2a2655[_0xd82196(0xa4)]['includeAll']&&(_0x5ded12['include']=[{'all':!![]}]),db['VoicePrefix'][_0xd82196(0x90)](_0x5ded12);})[_0x3082a6(0xbe)](function(_0x2e22a2){const _0x21b95d=_0x3082a6;return _0x1144e2[_0x21b95d(0x8f)]=_0x2e22a2,_0x1144e2;})[_0x3082a6(0xbe)](respondWithFilteredResult(_0x107247,_0x5ded12))[_0x3082a6(0x8b)](handleError(_0x107247,null));},exports[a895_0x564f78(0x74)]=function(_0x87fc6b,_0x32ab75){const _0x2b83d5=a895_0x564f78;let _0x5df0bc={'raw':![],'where':{'id':_0x87fc6b[_0x2b83d5(0x72)]['id']}};const _0x21605b={};return _0x21605b[_0x2b83d5(0x83)]=_['keys'](db[_0x2b83d5(0x81)][_0x2b83d5(0xb8)]),_0x21605b[_0x2b83d5(0xa4)]=_['keys'](_0x87fc6b[_0x2b83d5(0xa4)]),_0x21605b[_0x2b83d5(0x7e)]=_['intersection'](_0x21605b[_0x2b83d5(0x83)],_0x21605b['query']),_0x5df0bc['attributes']=_[_0x2b83d5(0xae)](_0x21605b['model'],qs[_0x2b83d5(0x85)](_0x87fc6b[_0x2b83d5(0xa4)][_0x2b83d5(0x85)])),_0x5df0bc[_0x2b83d5(0x96)]=_0x5df0bc[_0x2b83d5(0x96)][_0x2b83d5(0xa1)]?_0x5df0bc[_0x2b83d5(0x96)]:_0x21605b[_0x2b83d5(0x83)],_0x87fc6b[_0x2b83d5(0xa4)][_0x2b83d5(0x6a)]&&(_0x5df0bc['include']=[{'all':!![]}]),_0x5df0bc=_[_0x2b83d5(0x9f)]({},_0x5df0bc,_0x87fc6b['options']),db[_0x2b83d5(0x81)][_0x2b83d5(0xab)](_0x5df0bc)[_0x2b83d5(0xbe)](handleEntityNotFound(_0x32ab75,null))[_0x2b83d5(0xbe)](respondWithResult(_0x32ab75,null))[_0x2b83d5(0x8b)](handleError(_0x32ab75,null));},exports['destroy']=function(_0x1658d0,_0x252372){const _0x5ce45c=a895_0x564f78;return db[_0x5ce45c(0x81)][_0x5ce45c(0xab)]({'where':{'id':_0x1658d0[_0x5ce45c(0x72)]['id']}})[_0x5ce45c(0xbe)](handleEntityNotFound(_0x252372,null))[_0x5ce45c(0xbe)](removeEntity(_0x252372,null))['catch'](handleError(_0x252372,null));},exports[a895_0x564f78(0xb0)]=function(_0x1c111c,_0xc83d58){const _0x4e51af=a895_0x564f78;return db['VoicePrefix'][_0x4e51af(0xb0)]()['then'](respondWithResult(_0xc83d58,null))[_0x4e51af(0x8b)](handleError(_0xc83d58,null));},exports[a895_0x564f78(0xb1)]=function(_0x17d933,_0x1db640){const _0x1073c9=a895_0x564f78;let _0x48d930;return db[_0x1073c9(0xaa)]['transaction'](function(_0xad6521){const _0x2dabb9=_0x1073c9;return db[_0x2dabb9(0x81)][_0x2dabb9(0xb1)](_0x17d933['body'],{'transaction':_0xad6521})[_0x2dabb9(0xbe)](function(_0x5be44d){const _0x374191=_0x2dabb9;return _0x48d930=_0x5be44d[_0x374191(0xa2)]({'plain':!![]}),db[_0x374191(0x6f)][_0x374191(0xab)]({'where':{'id':_0x48d930[_0x374191(0x92)]},'raw':!![]})[_0x374191(0xbe)](function(_0x342a06){return createVoicePrefixExtensions(_0x48d930,_0x342a06,_0xad6521);});});})[_0x1073c9(0xbe)](function(){const _0xabfe00=_0x1073c9,_0x123d91=_0x17d933[_0xabfe00(0x94)]['get']({'plain':!![]});if(!_0x123d91)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x123d91[_0xabfe00(0xbb)]===_0xabfe00(0x94)){const _0x146094=_0x48d930;return db[_0xabfe00(0xb5)][_0xabfe00(0xab)]({'where':{'name':_0xabfe00(0xba),'userProfileId':_0x123d91['userProfileId']},'raw':!![]})['then'](function(_0x58c859){const _0x40ad3f=_0xabfe00;return _0x58c859&&_0x58c859[_0x40ad3f(0xa0)]===0x0?db[_0x40ad3f(0x6b)]['create']({'name':_0x146094[_0x40ad3f(0x7f)],'resourceId':_0x146094['id'],'type':_0x58c859[_0x40ad3f(0x7f)],'sectionId':_0x58c859['id']},{})['then'](function(){return _0x48d930;}):_0x48d930;})[_0xabfe00(0x8b)](function(_0x2ddaca){const _0x2c5708=_0xabfe00;logger[_0x2c5708(0xac)](_0x2c5708(0xbf),_0x2ddaca);throw _0x2ddaca;});}return _0x48d930;})['then'](respondWithResult(_0x1db640,null))['catch'](handleError(_0x1db640,null));};function Extension(_0x59700f,_0x1f8a07,_0x56aec2,_0x4919f9){const _0x2d9295=a895_0x564f78;this[_0x2d9295(0xb6)]=_0x2d9295(0xb3),this[_0x2d9295(0x8d)]=_0x59700f,this['app']=_0x56aec2,this[_0x2d9295(0x7d)]='system',this['description']='Voice\x20Prefix\x20Extension',this['priority']=_0x1f8a07,this[_0x2d9295(0x75)]=_0x4919f9;}function createVoicePrefixExtensions(_0x2d0d23,_0x453068,_0x54a749){return new Promise(function(_0x2e6889,_0x171672){const _0x1a8297=a895_0x3599,_0x1f3302=new Extension(formatPrefixName(_0x2d0d23[_0x1a8297(0x79)]),0x1,_0x1a8297(0xb7),_0x1a8297(0x8a));return _0x1f3302[_0x1a8297(0xa9)]=_0x2d0d23['id'],db[_0x1a8297(0x6f)]['create'](_0x1f3302,{'transaction':_0x54a749})[_0x1a8297(0xbe)](function(_0x23205c){const _0x18f8cd=_0x1a8297,_0x5cd49f=_0x23205c['get']({'plain':!![]}),_0x3ea63d=_['map'](addVoicePrefixExtensions(_0x2d0d23,_0x453068),function(_0x23d0c6){return _0x23d0c6['VoiceExtensionId']=_0x5cd49f['id'],_0x23d0c6['VoicePrefixId']=_0x2d0d23['id'],_0x23d0c6;});return db['VoiceExtension'][_0x18f8cd(0x68)](_0x3ea63d,{'transaction':_0x54a749})[_0x18f8cd(0xbe)](function(_0x1abc3d){const _0x42f2ba=_0x18f8cd;return!_0x1abc3d?_0x171672(_0x42f2ba(0x6c)):_0x2e6889(_0x1abc3d);})['catch'](function(_0x12c5d6){return _0x171672(_0x12c5d6);});});});}function addVoicePrefixExtensions(_0x4bef20,_0x1ec169){const _0x361604=a895_0x564f78,_0x5b91ed=[],_0x55b192=formatPrefixName(_0x4bef20[_0x361604(0x79)]);return _0x5b91ed[_0x361604(0x95)](new Extension(_0x55b192,0x2,_0x361604(0xc0),'CDR(prefix)='+_0x4bef20[_0x361604(0x7f)])),_0x4bef20[_0x361604(0x77)]?_0x5b91ed[_0x361604(0x95)](new Extension(_0x55b192,0x3,_0x361604(0xc0),_0x361604(0x6e)+_0x4bef20[_0x361604(0x77)])):_0x5b91ed[_0x361604(0x95)](new Extension(_0x55b192,0x3,_0x361604(0xb7),'No\x20callerid\x20available')),_0x5b91ed[_0x361604(0x95)](new Extension(_0x55b192,0x4,_0x361604(0xa7),_0x1ec169[_0x361604(0xb6)]+','+_0x361604(0x9e)+(0x8+_0x4bef20['name'][_0x361604(0xa1)])+'}'+','+0x1)),_0x5b91ed;}function formatPrefixName(_0x2021a9){const _0x2de0bf=a895_0x564f78;let _0x1066c2='_';for(let _0x3bf143=0x0;_0x3bf143<_0x2021a9[_0x2de0bf(0xa1)];_0x3bf143++){_0x2021a9['charAt'](_0x3bf143)=='-'?_0x1066c2+=_0x2021a9['charAt'](_0x3bf143):_0x1066c2+='['+_0x2021a9[_0x2de0bf(0xbd)](_0x3bf143)+']';}return _0x1066c2+='.',_0x1066c2;}exports[a895_0x564f78(0x7a)]=function(_0x274deb,_0x3c8a7d){const _0x5d94d8=a895_0x564f78,_0x371c66=_0x274deb[_0x5d94d8(0x76)];return _0x371c66[_0x5d94d8(0x79)]='system-'+_0x371c66[_0x5d94d8(0x7f)]+'-',db[_0x5d94d8(0xaa)][_0x5d94d8(0x99)](function(_0x99dce2){const _0x224188=_0x5d94d8;return db[_0x224188(0x81)][_0x224188(0x7a)](_0x371c66,{'where':{'id':_0x371c66['id']},'transaction':_0x99dce2})[_0x224188(0xbe)](function(){const _0x33a4c5=_0x224188;return db['VoiceExtension'][_0x33a4c5(0x87)]({'where':{'VoicePrefixId':_0x371c66['id']},'transaction':_0x99dce2})['then'](function(){const _0x47531b=_0x33a4c5;return db['VoiceExtension'][_0x47531b(0xab)]({'where':{'id':_0x371c66['VoiceExtensionId']},'raw':!![]})[_0x47531b(0xbe)](function(_0x2461b9){return createVoicePrefixExtensions(_0x371c66,_0x2461b9,_0x99dce2);});});});})['then'](function(){const _0x17637=_0x5d94d8;return db[_0x17637(0x81)][_0x17637(0x86)](_0x371c66['id']);})['then'](respondWithResult(_0x3c8a7d,null))['catch'](handleError(_0x3c8a7d,null));},exports['addAgents']=function(_0x4e9b9b,_0x3afac2){const _0x1f57cc=a895_0x564f78;return db[_0x1f57cc(0x81)][_0x1f57cc(0xab)]({'where':{'id':_0x4e9b9b[_0x1f57cc(0x72)]['id']}})['then'](function(_0xe0aa2){const _0x18a36a=_0x1f57cc;if(_0xe0aa2)return _0xe0aa2['addAgents'](_0x4e9b9b['body'][_0x18a36a(0x9d)],{'through':_['omit'](_0x4e9b9b[_0x18a36a(0x76)],[_0x18a36a(0x9d),'id'])})[_0x18a36a(0xbe)](function(_0x338ff8){const _0x160ebe=_0x18a36a;for(let _0x5d592a=0x0;_0x5d592a<_0x4e9b9b['body'][_0x160ebe(0x9d)]['length'];_0x5d592a+=0x1){socket['emit'](_0x160ebe(0x6d),{'UserId':_0x4e9b9b[_0x160ebe(0x76)][_0x160ebe(0x9d)][_0x5d592a],'VoicePrefixId':_0x4e9b9b[_0x160ebe(0x72)]['id']});}return _0x338ff8;});})[_0x1f57cc(0xbe)](respondWithResult(_0x3afac2,null))[_0x1f57cc(0x8b)](handleError(_0x3afac2,null));},exports['removeAgents']=function(_0x1e1c98,_0x24398b){const _0x15c459=a895_0x564f78;return db[_0x15c459(0x81)]['findOne']({'where':{'id':_0x1e1c98[_0x15c459(0x72)]['id']}})[_0x15c459(0xbe)](handleEntityNotFound(_0x24398b,null))[_0x15c459(0xbe)](function(_0x1b5bb7){const _0x4fd538=_0x15c459;if(_0x1b5bb7)return _0x1b5bb7[_0x4fd538(0x7c)](_0x1e1c98[_0x4fd538(0xa4)]['ids'])[_0x4fd538(0xbe)](function(){const _0x5b7a40=_0x4fd538;if(_[_0x5b7a40(0x71)](_0x1e1c98['query'][_0x5b7a40(0x9d)]))for(let _0x5cce21=0x0;_0x5cce21<_0x1e1c98[_0x5b7a40(0xa4)][_0x5b7a40(0x9d)][_0x5b7a40(0xa1)];_0x5cce21+=0x1){socket[_0x5b7a40(0x80)](_0x5b7a40(0xb4),{'UserId':Number(_0x1e1c98['query']['ids'][_0x5cce21]),'VoicePrefixId':Number(_0x1e1c98[_0x5b7a40(0x72)]['id'])});}else socket[_0x5b7a40(0x80)](_0x5b7a40(0xb4),{'UserId':Number(_0x1e1c98[_0x5b7a40(0xa4)]['ids']),'VoicePrefixId':Number(_0x1e1c98['params']['id'])});});})[_0x15c459(0xbe)](respondWithStatusCode(_0x24398b,null))['catch'](handleError(_0x24398b,null));},exports[a895_0x564f78(0x8e)]=function(_0x5c9c89,_0x1363cb){const _0xb891fa=a895_0x564f78;let _0x1cdd84={};const _0x257507={};let _0x4ffeb4,_0x10c634;return db['VoicePrefix'][_0xb891fa(0xab)]({'where':{'id':_0x5c9c89[_0xb891fa(0x72)]['id']}})[_0xb891fa(0xbe)](handleEntityNotFound(_0x1363cb,null))[_0xb891fa(0xbe)](function(_0x42c1a7){const _0x3a22ae=_0xb891fa;if(_0x42c1a7)return _0x4ffeb4=_0x42c1a7,_0x257507[_0x3a22ae(0x83)]=_[_0x3a22ae(0x73)](db['User'][_0x3a22ae(0xb8)]),_0x257507[_0x3a22ae(0xa4)]=_['keys'](_0x5c9c89['query']),_0x257507['filters']=_[_0x3a22ae(0xae)](_0x257507[_0x3a22ae(0x83)],_0x257507[_0x3a22ae(0xa4)]),_0x1cdd84[_0x3a22ae(0x96)]=_[_0x3a22ae(0xae)](_0x257507['model'],qs[_0x3a22ae(0x85)](_0x5c9c89['query'][_0x3a22ae(0x85)])),_0x1cdd84[_0x3a22ae(0x96)]=_0x1cdd84[_0x3a22ae(0x96)][_0x3a22ae(0xa1)]?_0x1cdd84[_0x3a22ae(0x96)]:_0x257507[_0x3a22ae(0x83)],_0x1cdd84[_0x3a22ae(0xa3)]=qs[_0x3a22ae(0xa6)](_0x5c9c89['query'][_0x3a22ae(0xa6)]),_0x1cdd84['where']=qs[_0x3a22ae(0x7e)](_[_0x3a22ae(0x78)](_0x5c9c89[_0x3a22ae(0xa4)],_0x257507[_0x3a22ae(0x7e)])),_0x5c9c89[_0x3a22ae(0xa4)][_0x3a22ae(0xa5)]&&(_0x1cdd84[_0x3a22ae(0x9c)]=_[_0x3a22ae(0x9f)](_0x1cdd84[_0x3a22ae(0x9c)],{[Op['or']]:_['map'](_0x1cdd84[_0x3a22ae(0x96)],function(_0x3faed7){const _0x479946=_0x3a22ae,_0x4d7a2a={};return _0x4d7a2a[_0x3faed7]={[Op[_0x479946(0x91)]]:'%'+_0x5c9c89['query'][_0x479946(0xa5)]+'%'},_0x4d7a2a;})})),_0x1cdd84=_[_0x3a22ae(0x9f)]({},_0x1cdd84,_0x5c9c89[_0x3a22ae(0x70)]),_0x4ffeb4[_0x3a22ae(0x8e)](_0x1cdd84);})[_0xb891fa(0xbe)](function(_0x4741d7){const _0x389ca8=_0xb891fa;if(_0x4741d7)return _0x10c634=_0x4741d7[_0x389ca8(0xa1)],typeof _0x5c9c89['query']['nolimit']===_0x389ca8(0xc1)&&(_0x1cdd84['limit']=qs[_0x389ca8(0x84)](_0x5c9c89['query'][_0x389ca8(0x84)]),_0x1cdd84[_0x389ca8(0x88)]=qs['offset'](_0x5c9c89['query'][_0x389ca8(0x88)])),_0x4ffeb4[_0x389ca8(0x8e)](_0x1cdd84);})[_0xb891fa(0xbe)](function(_0x1ed95a){if(_0x1ed95a)return _0x1ed95a?{'count':_0x10c634,'rows':_0x1ed95a}:null;})[_0xb891fa(0xbe)](respondWithResult(_0x1363cb,null))[_0xb891fa(0x8b)](handleError(_0x1363cb,null));}; \ No newline at end of file +const a895_0xd609=['emit','body','keys','fieldName','Set','app','findByPk','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','../../config/logger','describe','options','autoAssociation','appdata','send','update','system','lodash','filters','findOne','map','exten','push','userVoicePrefix:save','query','VIRTUAL','include','length','Unable\x20to\x20retrieve\x20the\x20current\x20user','charAt','rows','sort','Content-Range','VoiceExtensionId','sendStatus','fields','isArray','count','get','getAgents','undefined','callerIdAll','end','intersection','omit','like','offset','register','system-','ids','UserProfileResource','json','where','api','from-sip','No\x20callerid\x20available','User','model','key','error','VoicePrefixId','prefix','attributes','VoicePrefixes','UserProfileSection','VoicePrefix','destroy','VoiceExtension','userProfileId','pick','status','transaction','rawAttributes','then','${EXTEN:','order','removeAgents','index','catch','sequelize','type','filter','Voice\x20Prefix\x20Extension','nolimit','role','limit','params','create','merge','name','user','./voicePrefix.socket','context','description','NoOp'];(function(_0x5c7eae,_0x2acb94){const _0xd609a2=function(_0x36de54){while(--_0x36de54){_0x5c7eae['push'](_0x5c7eae['shift']());}};_0xd609a2(++_0x2acb94);}(a895_0xd609,0x1de));const a895_0x36de=function(_0x5c7eae,_0x2acb94){_0x5c7eae=_0x5c7eae-0x1ab;let _0xd609a2=a895_0xd609[_0x5c7eae];return _0xd609a2;};const a895_0x4e3a86=a895_0x36de;'use strict';const _=require(a895_0x4e3a86(0x1b3)),qs=require('../../components/parsers/qs'),logger=require(a895_0x4e3a86(0x1ab))(a895_0x4e3a86(0x1d7)),{getSocket}=require('../../rediscache'),socket=getSocket(),{db}=require('../../mysqldb'),{Op}=require('sequelize');require(a895_0x4e3a86(0x1fd))[a895_0x4e3a86(0x1d1)](socket);function respondWithStatusCode(_0xb56f72,_0x24b59e){return _0x24b59e=_0x24b59e||0xcc,function(_0x2fd924){const _0x5386a1=a895_0x36de;if(_0x2fd924)return _0xb56f72['sendStatus'](_0x24b59e);return _0xb56f72['status'](_0x24b59e)[_0x5386a1(0x1cc)]();};}function respondWithResult(_0x136adc,_0x953068){return _0x953068=_0x953068||0xc8,function(_0x482341){const _0x5b1c04=a895_0x36de;if(_0x482341)return _0x136adc[_0x5b1c04(0x1e8)](_0x953068)[_0x5b1c04(0x1d5)](_0x482341);};}function respondWithFilteredResult(_0xbb7f42,_0x4d86c4){return function(_0x41af78){const _0x52fd65=a895_0x36de;if(_0x41af78){const _0x5e1bff=_0x41af78[_0x52fd65(0x1c7)],_0x198723=_0x4d86c4[_0x52fd65(0x1d0)];let _0x34940f=_0x4d86c4[_0x52fd65(0x1d0)]+_0x4d86c4[_0x52fd65(0x1f7)],_0x89b5ee;return _0x34940f>=_0x5e1bff?(_0x34940f=_0x5e1bff,_0x89b5ee=0xc8):_0x89b5ee=0xce,_0xbb7f42[_0x52fd65(0x1e8)](_0x89b5ee),_0xbb7f42['set'](_0x52fd65(0x1c2),_0x198723+'-'+_0x34940f+'/'+_0x5e1bff)['json'](_0x41af78);}return null;};}function removeEntity(_0x27f5db){return function(_0x4b536b){const _0x332457=a895_0x36de;if(_0x4b536b)return _0x4b536b[_0x332457(0x1e4)]()[_0x332457(0x1eb)](function(){const _0x9bedf4=_0x332457,_0x3f91bd=_0x4b536b[_0x9bedf4(0x1c8)]({'plain':!![]}),_0x139a6c=_0x9bedf4(0x1e1);return db[_0x9bedf4(0x1d4)][_0x9bedf4(0x1e4)]({'where':{'type':_0x139a6c,'resourceId':_0x3f91bd['id']}})[_0x9bedf4(0x1eb)](function(){return _0x4b536b;});})[_0x332457(0x1eb)](function(){const _0x4de175=_0x332457;_0x27f5db[_0x4de175(0x1e8)](0xcc)[_0x4de175(0x1cc)]();});};}function handleEntityNotFound(_0x1e916f){return function(_0x526148){const _0x2f99f9=a895_0x36de;return!_0x526148&&_0x1e916f[_0x2f99f9(0x1c4)](0x194),_0x526148;};}function handleError(_0xc02c0e,_0x535559){return _0x535559=_0x535559||0x1f4,function(_0x4a1434){const _0xe98c07=a895_0x36de;logger['error'](_0x4a1434['stack']),_0x4a1434[_0xe98c07(0x1fb)]&&delete _0x4a1434[_0xe98c07(0x1fb)],_0xc02c0e[_0xe98c07(0x1e8)](_0x535559)[_0xe98c07(0x1b0)](_0x4a1434);};}exports[a895_0x4e3a86(0x1ef)]=function(_0x133adf,_0x3e9172){const _0x54d785=a895_0x4e3a86;let _0x51bfe3={};const _0x46d620={},_0x57c628={'count':0x0,'rows':[]},_0x4e494a=_[_0x54d785(0x1b6)](db[_0x54d785(0x1e3)][_0x54d785(0x1ea)],function(_0x28fb93){const _0x541275=_0x54d785;return{'name':_0x28fb93[_0x541275(0x204)],'type':_0x28fb93[_0x541275(0x1f2)][_0x541275(0x1dc)]};});_0x46d620['model']=_[_0x54d785(0x1b6)](_0x4e494a,_0x54d785(0x1fb)),_0x46d620[_0x54d785(0x1ba)]=_[_0x54d785(0x203)](_0x133adf[_0x54d785(0x1ba)]),_0x46d620['filters']=_[_0x54d785(0x1cd)](_0x46d620[_0x54d785(0x1db)],_0x46d620[_0x54d785(0x1ba)]),_0x51bfe3[_0x54d785(0x1e0)]=_['intersection'](_0x46d620[_0x54d785(0x1db)],qs['fields'](_0x133adf[_0x54d785(0x1ba)]['fields'])),_0x51bfe3[_0x54d785(0x1e0)]=_0x51bfe3['attributes']['length']?_0x51bfe3['attributes']:_0x46d620[_0x54d785(0x1db)];typeof _0x133adf['query'][_0x54d785(0x1f5)]===_0x54d785(0x1ca)&&(_0x51bfe3['limit']=qs[_0x54d785(0x1f7)](_0x133adf['query'][_0x54d785(0x1f7)]),_0x51bfe3['offset']=qs[_0x54d785(0x1d0)](_0x133adf[_0x54d785(0x1ba)]['offset']));_0x51bfe3[_0x54d785(0x1ed)]=qs[_0x54d785(0x1c1)](_0x133adf[_0x54d785(0x1ba)][_0x54d785(0x1c1)]),_0x51bfe3[_0x54d785(0x1d6)]=qs['filters'](_[_0x54d785(0x1e7)](_0x133adf[_0x54d785(0x1ba)],_0x46d620[_0x54d785(0x1b4)]),_0x4e494a);_0x133adf[_0x54d785(0x1ba)]['filter']&&(_0x51bfe3[_0x54d785(0x1d6)]=_['merge'](_0x51bfe3['where'],{[Op['or']]:_[_0x54d785(0x1b6)](_0x4e494a,function(_0xab6e9f){const _0x49cd03=_0x54d785;if(_0xab6e9f['type']!==_0x49cd03(0x1bb)){const _0x47201f={};return _0x47201f[_0xab6e9f[_0x49cd03(0x1fb)]]={[Op[_0x49cd03(0x1cf)]]:'%'+_0x133adf[_0x49cd03(0x1ba)][_0x49cd03(0x1f3)]+'%'},_0x47201f;}})}));_0x51bfe3=_['merge']({},_0x51bfe3,_0x133adf[_0x54d785(0x1ad)]);const _0x188476={'where':_0x51bfe3[_0x54d785(0x1d6)]};return db[_0x54d785(0x1e3)]['count'](_0x188476)['then'](function(_0x470776){const _0x10a1bc=_0x54d785;return _0x57c628[_0x10a1bc(0x1c7)]=_0x470776,_0x133adf[_0x10a1bc(0x1ba)]['includeAll']&&(_0x51bfe3[_0x10a1bc(0x1bc)]=[{'all':!![]}]),db[_0x10a1bc(0x1e3)]['findAll'](_0x51bfe3);})[_0x54d785(0x1eb)](function(_0x21bec3){const _0x397430=_0x54d785;return _0x57c628[_0x397430(0x1c0)]=_0x21bec3,_0x57c628;})[_0x54d785(0x1eb)](respondWithFilteredResult(_0x3e9172,_0x51bfe3))[_0x54d785(0x1f0)](handleError(_0x3e9172,null));},exports['show']=function(_0x27a54b,_0x4f208e){const _0x5ef407=a895_0x4e3a86;let _0x494e8e={'raw':![],'where':{'id':_0x27a54b['params']['id']}};const _0xc555c5={};return _0xc555c5[_0x5ef407(0x1db)]=_['keys'](db[_0x5ef407(0x1e3)][_0x5ef407(0x1ea)]),_0xc555c5[_0x5ef407(0x1ba)]=_['keys'](_0x27a54b[_0x5ef407(0x1ba)]),_0xc555c5[_0x5ef407(0x1b4)]=_[_0x5ef407(0x1cd)](_0xc555c5[_0x5ef407(0x1db)],_0xc555c5[_0x5ef407(0x1ba)]),_0x494e8e['attributes']=_[_0x5ef407(0x1cd)](_0xc555c5[_0x5ef407(0x1db)],qs[_0x5ef407(0x1c5)](_0x27a54b[_0x5ef407(0x1ba)][_0x5ef407(0x1c5)])),_0x494e8e[_0x5ef407(0x1e0)]=_0x494e8e[_0x5ef407(0x1e0)][_0x5ef407(0x1bd)]?_0x494e8e[_0x5ef407(0x1e0)]:_0xc555c5[_0x5ef407(0x1db)],_0x27a54b['query']['includeAll']&&(_0x494e8e[_0x5ef407(0x1bc)]=[{'all':!![]}]),_0x494e8e=_[_0x5ef407(0x1fa)]({},_0x494e8e,_0x27a54b[_0x5ef407(0x1ad)]),db[_0x5ef407(0x1e3)][_0x5ef407(0x1b5)](_0x494e8e)[_0x5ef407(0x1eb)](handleEntityNotFound(_0x4f208e,null))['then'](respondWithResult(_0x4f208e,null))[_0x5ef407(0x1f0)](handleError(_0x4f208e,null));},exports[a895_0x4e3a86(0x1e4)]=function(_0x18a23a,_0x50a201){const _0x258405=a895_0x4e3a86;return db[_0x258405(0x1e3)][_0x258405(0x1b5)]({'where':{'id':_0x18a23a['params']['id']}})['then'](handleEntityNotFound(_0x50a201,null))[_0x258405(0x1eb)](removeEntity(_0x50a201,null))[_0x258405(0x1f0)](handleError(_0x50a201,null));},exports[a895_0x4e3a86(0x1ac)]=function(_0x14e26c,_0x29f387){const _0x469a70=a895_0x4e3a86;return db[_0x469a70(0x1e3)][_0x469a70(0x1ac)]()[_0x469a70(0x1eb)](respondWithResult(_0x29f387,null))['catch'](handleError(_0x29f387,null));},exports[a895_0x4e3a86(0x1f9)]=function(_0x10b4f9,_0x4757d3){const _0x3d924a=a895_0x4e3a86;let _0x3b7cd0;return db[_0x3d924a(0x1f1)][_0x3d924a(0x1e9)](function(_0x331b11){const _0x5b78d5=_0x3d924a;return db['VoicePrefix'][_0x5b78d5(0x1f9)](_0x10b4f9[_0x5b78d5(0x202)],{'transaction':_0x331b11})[_0x5b78d5(0x1eb)](function(_0x4da5b1){const _0x55d73d=_0x5b78d5;return _0x3b7cd0=_0x4da5b1['get']({'plain':!![]}),db[_0x55d73d(0x1e5)]['findOne']({'where':{'id':_0x3b7cd0[_0x55d73d(0x1c3)]},'raw':!![]})[_0x55d73d(0x1eb)](function(_0x1496c8){return createVoicePrefixExtensions(_0x3b7cd0,_0x1496c8,_0x331b11);});});})[_0x3d924a(0x1eb)](function(){const _0x20d68d=_0x3d924a,_0x2a7207=_0x10b4f9['user'][_0x20d68d(0x1c8)]({'plain':!![]});if(!_0x2a7207)throw new Error(_0x20d68d(0x1be));if(_0x2a7207[_0x20d68d(0x1f6)]===_0x20d68d(0x1fc)){const _0x3144cb=_0x3b7cd0;return db[_0x20d68d(0x1e2)][_0x20d68d(0x1b5)]({'where':{'name':_0x20d68d(0x1e1),'userProfileId':_0x2a7207[_0x20d68d(0x1e6)]},'raw':!![]})['then'](function(_0x538bf0){const _0x492c41=_0x20d68d;return _0x538bf0&&_0x538bf0[_0x492c41(0x1ae)]===0x0?db[_0x492c41(0x1d4)][_0x492c41(0x1f9)]({'name':_0x3144cb[_0x492c41(0x1fb)],'resourceId':_0x3144cb['id'],'type':_0x538bf0[_0x492c41(0x1fb)],'sectionId':_0x538bf0['id']},{})[_0x492c41(0x1eb)](function(){return _0x3b7cd0;}):_0x3b7cd0;})[_0x20d68d(0x1f0)](function(_0x13c405){const _0x461882=_0x20d68d;logger[_0x461882(0x1dd)](_0x461882(0x208),_0x13c405);throw _0x13c405;});}return _0x3b7cd0;})[_0x3d924a(0x1eb)](respondWithResult(_0x4757d3,null))['catch'](handleError(_0x4757d3,null));};function Extension(_0x4b748b,_0x3f6717,_0x13f8e3,_0x1fb56c){const _0x23ecac=a895_0x4e3a86;this[_0x23ecac(0x1fe)]=_0x23ecac(0x1d8),this[_0x23ecac(0x1b7)]=_0x4b748b,this[_0x23ecac(0x206)]=_0x13f8e3,this[_0x23ecac(0x1f2)]=_0x23ecac(0x1b2),this[_0x23ecac(0x1ff)]=_0x23ecac(0x1f4),this['priority']=_0x3f6717,this[_0x23ecac(0x1af)]=_0x1fb56c;}function createVoicePrefixExtensions(_0x51b275,_0x16de47,_0x13de34){return new Promise(function(_0x5a5ea2,_0xdbcfa0){const _0x424c63=a895_0x36de,_0x1fe6b6=new Extension(formatPrefixName(_0x51b275[_0x424c63(0x1df)]),0x1,_0x424c63(0x200),'Voice\x20Prefix');return _0x1fe6b6[_0x424c63(0x1de)]=_0x51b275['id'],db[_0x424c63(0x1e5)][_0x424c63(0x1f9)](_0x1fe6b6,{'transaction':_0x13de34})[_0x424c63(0x1eb)](function(_0x2e6919){const _0x5635ae=_0x424c63,_0x5711d7=_0x2e6919[_0x5635ae(0x1c8)]({'plain':!![]}),_0x276630=_['map'](addVoicePrefixExtensions(_0x51b275,_0x16de47),function(_0x14b41b){const _0x51a2dc=_0x5635ae;return _0x14b41b[_0x51a2dc(0x1c3)]=_0x5711d7['id'],_0x14b41b['VoicePrefixId']=_0x51b275['id'],_0x14b41b;});return db[_0x5635ae(0x1e5)]['bulkCreate'](_0x276630,{'transaction':_0x13de34})[_0x5635ae(0x1eb)](function(_0x5c89d1){return!_0x5c89d1?_0xdbcfa0('Extensions\x20creation\x20failed'):_0x5a5ea2(_0x5c89d1);})[_0x5635ae(0x1f0)](function(_0x228d7b){return _0xdbcfa0(_0x228d7b);});});});}function addVoicePrefixExtensions(_0x50eab8,_0x363daf){const _0x501bb4=a895_0x4e3a86,_0x41b096=[],_0x310391=formatPrefixName(_0x50eab8[_0x501bb4(0x1df)]);return _0x41b096[_0x501bb4(0x1b8)](new Extension(_0x310391,0x2,_0x501bb4(0x205),'CDR(prefix)='+_0x50eab8[_0x501bb4(0x1fb)])),_0x50eab8[_0x501bb4(0x1cb)]?_0x41b096[_0x501bb4(0x1b8)](new Extension(_0x310391,0x3,_0x501bb4(0x205),'PREFIX-CALLERIDALL='+_0x50eab8[_0x501bb4(0x1cb)])):_0x41b096[_0x501bb4(0x1b8)](new Extension(_0x310391,0x3,_0x501bb4(0x200),_0x501bb4(0x1d9))),_0x41b096[_0x501bb4(0x1b8)](new Extension(_0x310391,0x4,'goto',_0x363daf['context']+','+_0x501bb4(0x1ec)+(0x8+_0x50eab8['name'][_0x501bb4(0x1bd)])+'}'+','+0x1)),_0x41b096;}function formatPrefixName(_0x4d2b36){const _0x4b1c3d=a895_0x4e3a86;let _0x5e2e53='_';for(let _0x4ad9a0=0x0;_0x4ad9a0<_0x4d2b36[_0x4b1c3d(0x1bd)];_0x4ad9a0++){_0x4d2b36[_0x4b1c3d(0x1bf)](_0x4ad9a0)=='-'?_0x5e2e53+=_0x4d2b36['charAt'](_0x4ad9a0):_0x5e2e53+='['+_0x4d2b36[_0x4b1c3d(0x1bf)](_0x4ad9a0)+']';}return _0x5e2e53+='.',_0x5e2e53;}exports['update']=function(_0x1b462e,_0x39c721){const _0x2af8bc=a895_0x4e3a86,_0x17433b=_0x1b462e[_0x2af8bc(0x202)];return _0x17433b[_0x2af8bc(0x1df)]=_0x2af8bc(0x1d2)+_0x17433b[_0x2af8bc(0x1fb)]+'-',db[_0x2af8bc(0x1f1)]['transaction'](function(_0x145b0c){const _0x362674=_0x2af8bc;return db[_0x362674(0x1e3)][_0x362674(0x1b1)](_0x17433b,{'where':{'id':_0x17433b['id']},'transaction':_0x145b0c})[_0x362674(0x1eb)](function(){const _0x3e3c6f=_0x362674;return db[_0x3e3c6f(0x1e5)][_0x3e3c6f(0x1e4)]({'where':{'VoicePrefixId':_0x17433b['id']},'transaction':_0x145b0c})[_0x3e3c6f(0x1eb)](function(){const _0x2370a9=_0x3e3c6f;return db[_0x2370a9(0x1e5)][_0x2370a9(0x1b5)]({'where':{'id':_0x17433b[_0x2370a9(0x1c3)]},'raw':!![]})[_0x2370a9(0x1eb)](function(_0x3163eb){return createVoicePrefixExtensions(_0x17433b,_0x3163eb,_0x145b0c);});});});})['then'](function(){const _0x5e973d=_0x2af8bc;return db['VoicePrefix'][_0x5e973d(0x207)](_0x17433b['id']);})[_0x2af8bc(0x1eb)](respondWithResult(_0x39c721,null))[_0x2af8bc(0x1f0)](handleError(_0x39c721,null));},exports['addAgents']=function(_0x1ced2b,_0x573f28){const _0x3d54e9=a895_0x4e3a86;return db[_0x3d54e9(0x1e3)][_0x3d54e9(0x1b5)]({'where':{'id':_0x1ced2b['params']['id']}})[_0x3d54e9(0x1eb)](function(_0x349c22){const _0x3ca566=_0x3d54e9;if(_0x349c22)return _0x349c22['addAgents'](_0x1ced2b[_0x3ca566(0x202)][_0x3ca566(0x1d3)],{'through':_[_0x3ca566(0x1ce)](_0x1ced2b[_0x3ca566(0x202)],['ids','id'])})[_0x3ca566(0x1eb)](function(_0x1ea23b){const _0x5d7004=_0x3ca566;for(let _0x22a17d=0x0;_0x22a17d<_0x1ced2b['body'][_0x5d7004(0x1d3)]['length'];_0x22a17d+=0x1){socket[_0x5d7004(0x201)](_0x5d7004(0x1b9),{'UserId':_0x1ced2b[_0x5d7004(0x202)][_0x5d7004(0x1d3)][_0x22a17d],'VoicePrefixId':_0x1ced2b['params']['id']});}return _0x1ea23b;});})['then'](respondWithResult(_0x573f28,null))['catch'](handleError(_0x573f28,null));},exports[a895_0x4e3a86(0x1ee)]=function(_0x382fae,_0x23c42b){const _0x4290a6=a895_0x4e3a86;return db[_0x4290a6(0x1e3)][_0x4290a6(0x1b5)]({'where':{'id':_0x382fae[_0x4290a6(0x1f8)]['id']}})[_0x4290a6(0x1eb)](handleEntityNotFound(_0x23c42b,null))[_0x4290a6(0x1eb)](function(_0x5b9d5b){const _0x3d1698=_0x4290a6;if(_0x5b9d5b)return _0x5b9d5b[_0x3d1698(0x1ee)](_0x382fae['query'][_0x3d1698(0x1d3)])[_0x3d1698(0x1eb)](function(){const _0x3797ae=_0x3d1698;if(_[_0x3797ae(0x1c6)](_0x382fae['query'][_0x3797ae(0x1d3)]))for(let _0x423849=0x0;_0x423849<_0x382fae[_0x3797ae(0x1ba)][_0x3797ae(0x1d3)][_0x3797ae(0x1bd)];_0x423849+=0x1){socket[_0x3797ae(0x201)]('userVoicePrefix:remove',{'UserId':Number(_0x382fae['query'][_0x3797ae(0x1d3)][_0x423849]),'VoicePrefixId':Number(_0x382fae[_0x3797ae(0x1f8)]['id'])});}else socket[_0x3797ae(0x201)]('userVoicePrefix:remove',{'UserId':Number(_0x382fae[_0x3797ae(0x1ba)][_0x3797ae(0x1d3)]),'VoicePrefixId':Number(_0x382fae[_0x3797ae(0x1f8)]['id'])});});})[_0x4290a6(0x1eb)](respondWithStatusCode(_0x23c42b,null))['catch'](handleError(_0x23c42b,null));},exports[a895_0x4e3a86(0x1c9)]=function(_0x3c3422,_0x2069fd){const _0x7cecaa=a895_0x4e3a86;let _0x150fb2={};const _0x479e60={};let _0x4d5f02,_0xb3e01c;return db[_0x7cecaa(0x1e3)][_0x7cecaa(0x1b5)]({'where':{'id':_0x3c3422[_0x7cecaa(0x1f8)]['id']}})[_0x7cecaa(0x1eb)](handleEntityNotFound(_0x2069fd,null))[_0x7cecaa(0x1eb)](function(_0x25470d){const _0x4a8e1f=_0x7cecaa;if(_0x25470d)return _0x4d5f02=_0x25470d,_0x479e60[_0x4a8e1f(0x1db)]=_[_0x4a8e1f(0x203)](db[_0x4a8e1f(0x1da)][_0x4a8e1f(0x1ea)]),_0x479e60[_0x4a8e1f(0x1ba)]=_[_0x4a8e1f(0x203)](_0x3c3422[_0x4a8e1f(0x1ba)]),_0x479e60[_0x4a8e1f(0x1b4)]=_[_0x4a8e1f(0x1cd)](_0x479e60[_0x4a8e1f(0x1db)],_0x479e60[_0x4a8e1f(0x1ba)]),_0x150fb2[_0x4a8e1f(0x1e0)]=_[_0x4a8e1f(0x1cd)](_0x479e60[_0x4a8e1f(0x1db)],qs[_0x4a8e1f(0x1c5)](_0x3c3422[_0x4a8e1f(0x1ba)][_0x4a8e1f(0x1c5)])),_0x150fb2[_0x4a8e1f(0x1e0)]=_0x150fb2[_0x4a8e1f(0x1e0)]['length']?_0x150fb2[_0x4a8e1f(0x1e0)]:_0x479e60['model'],_0x150fb2[_0x4a8e1f(0x1ed)]=qs['sort'](_0x3c3422['query'][_0x4a8e1f(0x1c1)]),_0x150fb2[_0x4a8e1f(0x1d6)]=qs[_0x4a8e1f(0x1b4)](_[_0x4a8e1f(0x1e7)](_0x3c3422[_0x4a8e1f(0x1ba)],_0x479e60['filters'])),_0x3c3422[_0x4a8e1f(0x1ba)][_0x4a8e1f(0x1f3)]&&(_0x150fb2[_0x4a8e1f(0x1d6)]=_[_0x4a8e1f(0x1fa)](_0x150fb2['where'],{[Op['or']]:_[_0x4a8e1f(0x1b6)](_0x150fb2[_0x4a8e1f(0x1e0)],function(_0x1c08d0){const _0x1af9b2=_0x4a8e1f,_0x5a463d={};return _0x5a463d[_0x1c08d0]={[Op[_0x1af9b2(0x1cf)]]:'%'+_0x3c3422[_0x1af9b2(0x1ba)][_0x1af9b2(0x1f3)]+'%'},_0x5a463d;})})),_0x150fb2=_[_0x4a8e1f(0x1fa)]({},_0x150fb2,_0x3c3422['options']),_0x4d5f02[_0x4a8e1f(0x1c9)](_0x150fb2);})[_0x7cecaa(0x1eb)](function(_0x902b1c){const _0x23cd26=_0x7cecaa;if(_0x902b1c)return _0xb3e01c=_0x902b1c['length'],typeof _0x3c3422[_0x23cd26(0x1ba)][_0x23cd26(0x1f5)]===_0x23cd26(0x1ca)&&(_0x150fb2['limit']=qs[_0x23cd26(0x1f7)](_0x3c3422[_0x23cd26(0x1ba)]['limit']),_0x150fb2[_0x23cd26(0x1d0)]=qs[_0x23cd26(0x1d0)](_0x3c3422['query'][_0x23cd26(0x1d0)])),_0x4d5f02[_0x23cd26(0x1c9)](_0x150fb2);})[_0x7cecaa(0x1eb)](function(_0x56b134){if(_0x56b134)return _0x56b134?{'count':_0xb3e01c,'rows':_0x56b134}:null;})[_0x7cecaa(0x1eb)](respondWithResult(_0x2069fd,null))['catch'](handleError(_0x2069fd,null));}; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.events.js b/server/api/voicePrefix/voicePrefix.events.js index a116abd..bcda5f2 100644 --- a/server/api/voicePrefix/voicePrefix.events.js +++ b/server/api/voicePrefix/voicePrefix.events.js @@ -1 +1 @@ -const a896_0x5ebd=['events','exports','emit','setMaxListeners','remove','addHook','update','save','undefined'];(function(_0x1d2e22,_0x2d1ba3){const _0x5ebd7f=function(_0x23367b){while(--_0x23367b){_0x1d2e22['push'](_0x1d2e22['shift']());}};_0x5ebd7f(++_0x2d1ba3);}(a896_0x5ebd,0x183));const a896_0x2336=function(_0x1d2e22,_0x2d1ba3){_0x1d2e22=_0x1d2e22-0x105;let _0x5ebd7f=a896_0x5ebd[_0x1d2e22];return _0x5ebd7f;};const a896_0x56dabc=a896_0x2336;'use strict';const EventEmitter=require(a896_0x56dabc(0x105)),VoicePrefix=require('../../mysqldb')['db']['VoicePrefix'],VoicePrefixEvents=new EventEmitter();VoicePrefixEvents[a896_0x56dabc(0x108)](0x0);const events={'afterCreate':a896_0x56dabc(0x10c),'afterUpdate':a896_0x56dabc(0x10b),'afterDestroy':a896_0x56dabc(0x109)};function emitEvent(_0x4e9838){return function(_0x1be940){const _0x12d982=a896_0x2336;VoicePrefixEvents[_0x12d982(0x107)](_0x4e9838+':'+_0x1be940['id'],_0x1be940),VoicePrefixEvents[_0x12d982(0x107)](_0x4e9838,_0x1be940);};}for(const e in events){if(typeof events[e]!==a896_0x56dabc(0x10d)){const event=events[e];VoicePrefix[a896_0x56dabc(0x10a)](e,emitEvent(event));}}module[a896_0x56dabc(0x106)]=VoicePrefixEvents; \ No newline at end of file +const a896_0x3ea2=['VoicePrefix','addHook','events','update','../../mysqldb','save','setMaxListeners','emit','remove'];(function(_0x22182e,_0x107991){const _0x3ea2de=function(_0x5b2dae){while(--_0x5b2dae){_0x22182e['push'](_0x22182e['shift']());}};_0x3ea2de(++_0x107991);}(a896_0x3ea2,0x1d4));const a896_0x5b2d=function(_0x22182e,_0x107991){_0x22182e=_0x22182e-0x1c5;let _0x3ea2de=a896_0x3ea2[_0x22182e];return _0x3ea2de;};const a896_0x1ab859=a896_0x5b2d;'use strict';const EventEmitter=require(a896_0x1ab859(0x1c7)),VoicePrefix=require(a896_0x1ab859(0x1c9))['db'][a896_0x1ab859(0x1c5)],VoicePrefixEvents=new EventEmitter();VoicePrefixEvents[a896_0x1ab859(0x1cb)](0x0);const events={'afterCreate':a896_0x1ab859(0x1ca),'afterUpdate':a896_0x1ab859(0x1c8),'afterDestroy':a896_0x1ab859(0x1cd)};function emitEvent(_0x1a7f6a){return function(_0x77f3a){const _0x30115f=a896_0x5b2d;VoicePrefixEvents[_0x30115f(0x1cc)](_0x1a7f6a+':'+_0x77f3a['id'],_0x77f3a),VoicePrefixEvents['emit'](_0x1a7f6a,_0x77f3a);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];VoicePrefix[a896_0x1ab859(0x1c6)](e,emitEvent(event));}}module['exports']=VoicePrefixEvents; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.model.js b/server/api/voicePrefix/voicePrefix.model.js index 332b545..1dd8862 100644 --- a/server/api/voicePrefix/voicePrefix.model.js +++ b/server/api/voicePrefix/voicePrefix.model.js @@ -1 +1 @@ -const a897_0x3c52=['function','./voicePrefix.options','./voicePrefix.attributes','sequelize'];(function(_0x45bfc9,_0x329e37){const _0x3c5288=function(_0x5bfd14){while(--_0x5bfd14){_0x45bfc9['push'](_0x45bfc9['shift']());}};_0x3c5288(++_0x329e37);}(a897_0x3c52,0xc7));const a897_0x5bfd=function(_0x45bfc9,_0x329e37){_0x45bfc9=_0x45bfc9-0xd2;let _0x3c5288=a897_0x3c52[_0x45bfc9];return _0x3c5288;};const a897_0x529be2=a897_0x5bfd;'use strict';const {Model}=require(a897_0x529be2(0xd2)),{attributes}=require(a897_0x529be2(0xd5)),{options}=require(a897_0x529be2(0xd4));class VoicePrefix extends Model{}function init(_0x1d346d,_0x4627ef){const _0x387447=a897_0x529be2,_0x3bb0d0=options(_0x1d346d),_0x19fe08=typeof _0x4627ef===_0x387447(0xd3)?_0x4627ef(_0x3bb0d0):_0x3bb0d0;return VoicePrefix['init'](attributes,_0x19fe08),VoicePrefix;}module['exports']['VoicePrefix']=VoicePrefix,module['exports']['init']=init; \ No newline at end of file +const a897_0x1870=['function','exports','VoicePrefix','./voicePrefix.attributes','sequelize','init','./voicePrefix.options'];(function(_0x3f06e5,_0x3f7689){const _0x1870ef=function(_0x249437){while(--_0x249437){_0x3f06e5['push'](_0x3f06e5['shift']());}};_0x1870ef(++_0x3f7689);}(a897_0x1870,0x1bb));const a897_0x2494=function(_0x3f06e5,_0x3f7689){_0x3f06e5=_0x3f06e5-0x155;let _0x1870ef=a897_0x1870[_0x3f06e5];return _0x1870ef;};const a897_0x285bb0=a897_0x2494;'use strict';const {Model}=require(a897_0x285bb0(0x157)),{attributes}=require(a897_0x285bb0(0x156)),{options}=require(a897_0x285bb0(0x159));class VoicePrefix extends Model{}function init(_0x19c408,_0x5cf97e){const _0x1c0ce1=a897_0x285bb0,_0xc66eb2=options(_0x19c408),_0x477a83=typeof _0x5cf97e===_0x1c0ce1(0x15a)?_0x5cf97e(_0xc66eb2):_0xc66eb2;return VoicePrefix[_0x1c0ce1(0x158)](attributes,_0x477a83),VoicePrefix;}module[a897_0x285bb0(0x15b)][a897_0x285bb0(0x155)]=VoicePrefix,module[a897_0x285bb0(0x15b)][a897_0x285bb0(0x158)]=init; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.options.js b/server/api/voicePrefix/voicePrefix.options.js index 1a4132a..f862905 100644 --- a/server/api/voicePrefix/voicePrefix.options.js +++ b/server/api/voicePrefix/voicePrefix.options.js @@ -1 +1 @@ -var a898_0x1408=['options','voice_prefixes'];(function(_0x413d16,_0x1c0ec1){var _0x140802=function(_0x1f1f22){while(--_0x1f1f22){_0x413d16['push'](_0x413d16['shift']());}};_0x140802(++_0x1c0ec1);}(a898_0x1408,0xc9));var a898_0x1f1f=function(_0x413d16,_0x1c0ec1){_0x413d16=_0x413d16-0x13b;var _0x140802=a898_0x1408[_0x413d16];return _0x140802;};var a898_0x305daf=a898_0x1f1f;function options(_0x4ad4a2){var _0x47abbe=a898_0x1f1f;return{'sequelize':_0x4ad4a2,'tableName':_0x47abbe(0x13b),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a898_0x305daf(0x13c)]=options; \ No newline at end of file +var a898_0x4b9a=['voice_prefixes','options','exports'];(function(_0x34e635,_0x3c8aa9){var _0x4b9aa7=function(_0x179388){while(--_0x179388){_0x34e635['push'](_0x34e635['shift']());}};_0x4b9aa7(++_0x3c8aa9);}(a898_0x4b9a,0x134));var a898_0x1793=function(_0x34e635,_0x3c8aa9){_0x34e635=_0x34e635-0x1d7;var _0x4b9aa7=a898_0x4b9a[_0x34e635];return _0x4b9aa7;};var a898_0x22fa81=a898_0x1793;function options(_0x4ad14c){var _0x27a128=a898_0x1793;return{'sequelize':_0x4ad14c,'tableName':_0x27a128(0x1d8),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a898_0x22fa81(0x1d7)][a898_0x22fa81(0x1d9)]=options; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.rpc.js b/server/api/voicePrefix/voicePrefix.rpc.js index 3ad6d7a..a68f181 100644 --- a/server/api/voicePrefix/voicePrefix.rpc.js +++ b/server/api/voicePrefix/voicePrefix.rpc.js @@ -1 +1 @@ -const a899_0x2c75=['register','./voicePrefix.socket','../../rediscache'];(function(_0x3aa665,_0x588bef){const _0x2c7576=function(_0x16fe93){while(--_0x16fe93){_0x3aa665['push'](_0x3aa665['shift']());}};_0x2c7576(++_0x588bef);}(a899_0x2c75,0x84));const a899_0x16fe=function(_0x3aa665,_0x588bef){_0x3aa665=_0x3aa665-0xeb;let _0x2c7576=a899_0x2c75[_0x3aa665];return _0x2c7576;};const a899_0x562c69=a899_0x16fe;'use strict';const {getSocket}=require(a899_0x562c69(0xed)),socket=getSocket();require(a899_0x562c69(0xec))[a899_0x562c69(0xeb)](socket); \ No newline at end of file +const a899_0x1e35=['../../rediscache','register'];(function(_0x5d3374,_0x335fb4){const _0x1e350e=function(_0x234db9){while(--_0x234db9){_0x5d3374['push'](_0x5d3374['shift']());}};_0x1e350e(++_0x335fb4);}(a899_0x1e35,0xbc));const a899_0x234d=function(_0x5d3374,_0x335fb4){_0x5d3374=_0x5d3374-0x129;let _0x1e350e=a899_0x1e35[_0x5d3374];return _0x1e350e;};const a899_0x1a1ecf=a899_0x234d;'use strict';const {getSocket}=require(a899_0x1a1ecf(0x129)),socket=getSocket();require('./voicePrefix.socket')[a899_0x1a1ecf(0x12a)](socket); \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.socket.js b/server/api/voicePrefix/voicePrefix.socket.js index 4a2c63b..5443eb2 100644 --- a/server/api/voicePrefix/voicePrefix.socket.js +++ b/server/api/voicePrefix/voicePrefix.socket.js @@ -1 +1 @@ -const a900_0x10da=['emit','./voicePrefix.events','register','length','save'];(function(_0x3b088d,_0x733a2b){const _0x10da65=function(_0x42d9db){while(--_0x42d9db){_0x3b088d['push'](_0x3b088d['shift']());}};_0x10da65(++_0x733a2b);}(a900_0x10da,0x1d1));const a900_0x42d9=function(_0x3b088d,_0x733a2b){_0x3b088d=_0x3b088d-0x107;let _0x10da65=a900_0x10da[_0x3b088d];return _0x10da65;};const a900_0x5abc4e=a900_0x42d9;'use strict';const VoicePrefixEvents=require(a900_0x5abc4e(0x108)),events=[a900_0x5abc4e(0x10b),'remove','update'];function createListener(_0x22cc08,_0x1c18fd){return function(_0x9c8414){const _0x55a0ac=a900_0x42d9;_0x1c18fd[_0x55a0ac(0x107)](_0x22cc08,_0x9c8414);};}exports[a900_0x5abc4e(0x109)]=function(_0x7cc657){const _0x249172=a900_0x5abc4e;for(let _0x2b0934=0x0,_0x4540ca=events[_0x249172(0x10a)];_0x2b0934<_0x4540ca;_0x2b0934++){const _0x6a8696=events[_0x2b0934],_0x4b26a5=createListener('voicePrefix:'+_0x6a8696,_0x7cc657);VoicePrefixEvents['on'](_0x6a8696,_0x4b26a5);}}; \ No newline at end of file +const a900_0xa89a=['length','emit','remove','update','./voicePrefix.events','save'];(function(_0x4cef2c,_0x45ac88){const _0xa89abe=function(_0x472316){while(--_0x472316){_0x4cef2c['push'](_0x4cef2c['shift']());}};_0xa89abe(++_0x45ac88);}(a900_0xa89a,0x15a));const a900_0x4723=function(_0x4cef2c,_0x45ac88){_0x4cef2c=_0x4cef2c-0x70;let _0xa89abe=a900_0xa89a[_0x4cef2c];return _0xa89abe;};const a900_0x4641ac=a900_0x4723;'use strict';const VoicePrefixEvents=require(a900_0x4641ac(0x70)),events=[a900_0x4641ac(0x71),a900_0x4641ac(0x74),a900_0x4641ac(0x75)];function createListener(_0x3f073f,_0x4f8f0b){return function(_0x19a1fd){const _0x5480fa=a900_0x4723;_0x4f8f0b[_0x5480fa(0x73)](_0x3f073f,_0x19a1fd);};}exports['register']=function(_0x20ba11){const _0x3d3f61=a900_0x4641ac;for(let _0x78d3f7=0x0,_0x33a6a2=events[_0x3d3f61(0x72)];_0x78d3f7<_0x33a6a2;_0x78d3f7++){const _0x4e9191=events[_0x78d3f7],_0x4e923e=createListener('voicePrefix:'+_0x4e9191,_0x20ba11);VoicePrefixEvents['on'](_0x4e9191,_0x4e923e);}}; \ No newline at end of file diff --git a/server/api/voiceQueue/index.js b/server/api/voiceQueue/index.js index c644a23..52e62e8 100644 --- a/server/api/voiceQueue/index.js +++ b/server/api/voiceQueue/index.js @@ -1 +1 @@ -const a901_0x3377=['/:id/blacklists','getMembers','exports','getHopperFinals','/:id/lists','get','addAgents','./voiceQueue.controller','isAuthenticated','/:id/hopper_finals','delete','destroy','/:id/members','/:id/hoppers','/:id/hopper_black','getBlackLists','clone','index','getHopperHistories','addTeams','getHoppers','post','../../components/auth/service','put','removeBlackLists','update','/:id','addLists','Router','getLists','removeLists','/:id/teams'];(function(_0x170dcc,_0x58cb97){const _0x3377c1=function(_0x5da97a){while(--_0x5da97a){_0x170dcc['push'](_0x170dcc['shift']());}};_0x3377c1(++_0x58cb97);}(a901_0x3377,0x192));const a901_0x5da9=function(_0x170dcc,_0x58cb97){_0x170dcc=_0x170dcc-0x131;let _0x3377c1=a901_0x3377[_0x170dcc];return _0x3377c1;};const a901_0x2b5832=a901_0x5da9;'use strict';const express=require('express'),router=express[a901_0x2b5832(0x13b)](),auth=require(a901_0x2b5832(0x135)),controller=require(a901_0x2b5832(0x146));router[a901_0x2b5832(0x144)]('/',auth[a901_0x2b5832(0x147)](),controller[a901_0x2b5832(0x150)]),router[a901_0x2b5832(0x144)]('/:id',auth[a901_0x2b5832(0x147)](),controller['show']),router[a901_0x2b5832(0x144)](a901_0x2b5832(0x14c),auth[a901_0x2b5832(0x147)](),controller[a901_0x2b5832(0x133)]),router[a901_0x2b5832(0x144)]('/:id/hopper_histories',auth['isAuthenticated'](),controller[a901_0x2b5832(0x131)]),router[a901_0x2b5832(0x144)](a901_0x2b5832(0x148),auth[a901_0x2b5832(0x147)](),controller[a901_0x2b5832(0x142)]),router['get'](a901_0x2b5832(0x14d),auth[a901_0x2b5832(0x147)](),controller['getHopperBlacks']),router[a901_0x2b5832(0x144)](a901_0x2b5832(0x13e),auth[a901_0x2b5832(0x147)](),controller['getTeams']),router['get']('/:id/users',auth[a901_0x2b5832(0x147)](),controller['getAgents']),router[a901_0x2b5832(0x144)](a901_0x2b5832(0x14b),auth[a901_0x2b5832(0x147)](),controller[a901_0x2b5832(0x140)]),router[a901_0x2b5832(0x144)]('/:id/lists',auth[a901_0x2b5832(0x147)](),controller[a901_0x2b5832(0x13c)]),router[a901_0x2b5832(0x144)]('/:id/blacklists',auth['isAuthenticated'](),controller[a901_0x2b5832(0x14e)]),router[a901_0x2b5832(0x134)]('/',auth['isAuthenticated'](),controller['create']),router[a901_0x2b5832(0x134)]('/:id/clone',auth[a901_0x2b5832(0x147)](),controller[a901_0x2b5832(0x14f)]),router[a901_0x2b5832(0x134)]('/:id/teams',auth[a901_0x2b5832(0x147)](),controller[a901_0x2b5832(0x132)]),router['post']('/:id/users',auth['isAuthenticated'](),controller[a901_0x2b5832(0x145)]),router['post'](a901_0x2b5832(0x143),auth[a901_0x2b5832(0x147)](),controller[a901_0x2b5832(0x13a)]),router[a901_0x2b5832(0x134)](a901_0x2b5832(0x13f),auth[a901_0x2b5832(0x147)](),controller['addBlackLists']),router[a901_0x2b5832(0x136)](a901_0x2b5832(0x139),auth[a901_0x2b5832(0x147)](),controller[a901_0x2b5832(0x138)]),router[a901_0x2b5832(0x149)](a901_0x2b5832(0x139),auth[a901_0x2b5832(0x147)](),controller[a901_0x2b5832(0x14a)]),router[a901_0x2b5832(0x149)](a901_0x2b5832(0x13e),auth[a901_0x2b5832(0x147)](),controller['removeTeams']),router[a901_0x2b5832(0x149)]('/:id/users',auth['isAuthenticated'](),controller['removeAgents']),router['delete'](a901_0x2b5832(0x143),auth[a901_0x2b5832(0x147)](),controller[a901_0x2b5832(0x13d)]),router[a901_0x2b5832(0x149)](a901_0x2b5832(0x13f),auth[a901_0x2b5832(0x147)](),controller[a901_0x2b5832(0x137)]),module[a901_0x2b5832(0x141)]=router; \ No newline at end of file +const a901_0x1034=['destroy','getAgents','getHopperFinals','/:id/hopper_black','/:id/blacklists','/:id/lists','getTeams','addBlackLists','clone','/:id/hopper_finals','getBlackLists','isAuthenticated','/:id/hoppers','removeTeams','/:id/users','index','../../components/auth/service','Router','delete','getHoppers','/:id/hopper_histories','removeLists','get','getMembers','getHopperHistories','exports','/:id','put','/:id/teams','removeBlackLists','show','post','removeAgents','getLists','/:id/clone','getHopperBlacks'];(function(_0x36a272,_0xbf64aa){const _0x1034a6=function(_0x1be297){while(--_0x1be297){_0x36a272['push'](_0x36a272['shift']());}};_0x1034a6(++_0xbf64aa);}(a901_0x1034,0x183));const a901_0x1be2=function(_0x36a272,_0xbf64aa){_0x36a272=_0x36a272-0x12e;let _0x1034a6=a901_0x1034[_0x36a272];return _0x1034a6;};const a901_0x416566=a901_0x1be2;'use strict';const express=require('express'),router=express[a901_0x416566(0x148)](),auth=require(a901_0x416566(0x147)),controller=require('./voiceQueue.controller');router['get']('/',auth[a901_0x416566(0x142)](),controller[a901_0x416566(0x146)]),router[a901_0x416566(0x14d)](a901_0x416566(0x151),auth[a901_0x416566(0x142)](),controller[a901_0x416566(0x131)]),router[a901_0x416566(0x14d)](a901_0x416566(0x143),auth[a901_0x416566(0x142)](),controller[a901_0x416566(0x14a)]),router[a901_0x416566(0x14d)](a901_0x416566(0x14b),auth['isAuthenticated'](),controller[a901_0x416566(0x14f)]),router[a901_0x416566(0x14d)](a901_0x416566(0x140),auth[a901_0x416566(0x142)](),controller[a901_0x416566(0x139)]),router[a901_0x416566(0x14d)](a901_0x416566(0x13a),auth[a901_0x416566(0x142)](),controller[a901_0x416566(0x136)]),router[a901_0x416566(0x14d)](a901_0x416566(0x12f),auth[a901_0x416566(0x142)](),controller[a901_0x416566(0x13d)]),router[a901_0x416566(0x14d)](a901_0x416566(0x145),auth[a901_0x416566(0x142)](),controller[a901_0x416566(0x138)]),router['get']('/:id/members',auth[a901_0x416566(0x142)](),controller[a901_0x416566(0x14e)]),router[a901_0x416566(0x14d)](a901_0x416566(0x13c),auth['isAuthenticated'](),controller[a901_0x416566(0x134)]),router[a901_0x416566(0x14d)](a901_0x416566(0x13b),auth[a901_0x416566(0x142)](),controller[a901_0x416566(0x141)]),router[a901_0x416566(0x132)]('/',auth[a901_0x416566(0x142)](),controller['create']),router[a901_0x416566(0x132)](a901_0x416566(0x135),auth[a901_0x416566(0x142)](),controller[a901_0x416566(0x13f)]),router[a901_0x416566(0x132)]('/:id/teams',auth[a901_0x416566(0x142)](),controller['addTeams']),router[a901_0x416566(0x132)](a901_0x416566(0x145),auth[a901_0x416566(0x142)](),controller['addAgents']),router[a901_0x416566(0x132)](a901_0x416566(0x13c),auth[a901_0x416566(0x142)](),controller['addLists']),router[a901_0x416566(0x132)](a901_0x416566(0x13b),auth[a901_0x416566(0x142)](),controller[a901_0x416566(0x13e)]),router[a901_0x416566(0x12e)](a901_0x416566(0x151),auth[a901_0x416566(0x142)](),controller['update']),router[a901_0x416566(0x149)]('/:id',auth['isAuthenticated'](),controller[a901_0x416566(0x137)]),router[a901_0x416566(0x149)](a901_0x416566(0x12f),auth[a901_0x416566(0x142)](),controller[a901_0x416566(0x144)]),router['delete'](a901_0x416566(0x145),auth['isAuthenticated'](),controller[a901_0x416566(0x133)]),router[a901_0x416566(0x149)](a901_0x416566(0x13c),auth[a901_0x416566(0x142)](),controller[a901_0x416566(0x14c)]),router['delete'](a901_0x416566(0x13b),auth[a901_0x416566(0x142)](),controller[a901_0x416566(0x130)]),module[a901_0x416566(0x150)]=router; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.attributes.js b/server/api/voiceQueue/voiceQueue.attributes.js index 14136a5..413ea96 100644 --- a/server/api/voiceQueue/voiceQueue.attributes.js +++ b/server/api/voiceQueue/voiceQueue.attributes.js @@ -1 +1 @@ -const a902_0x129e=['setDataValue','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','random','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','rrordered','agentBusyFactor','dropRate','Cut\x20Digit\x20(min:1,\x20max:15)','once','#AgentReject\x20Retry\x20(min:1,\x20max:999)','ASC','always','#AMD\x20Total\x20Analysis\x20Time','onlyIfOpen','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','wrapuptime','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Initial\x20Silence','ENUM','power','wrandom','#AMD\x20Maximum\x20Number\x20Of\x20Words','getDataValue','split','predictive','acw','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','#Abandoned\x20Retry\x20(min:1,\x20max:999)','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','leastrecent','all','DESC','Only\x20for\x20predictive\x20method.','ringall','Predictive\x20Optimization\x20Percentage\x20(min:\x201,\x20max:\x2095)','dialMethod','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#NoAnswer\x20Retry\x20(min:1,\x20max:999)','Max\x209999\x20member\x20in\x20queue(min:1,\x20max:9999),\x200\x20means\x20unlimited.','#AMD\x20Min\x20Word\x20Length','#RecallMe\x20Timeout\x20(min:1)','mandatoryDisposition','join','booked','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','UNSIGNED','leavewhenempty','sequelize','TEXT','#AMD\x20Maximum\x20Word\x20Length','INTEGER','STRING','Dial\x20Method.','BOOLEAN','07:00-22:00,*,*,*','outbound','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','strategy','Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Drop\x20Retry\x20(min:1,\x20max:999)','#Busy\x20Retry\x20(min:1,\x20max:999)','progressive','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','linear','#Congestion\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Between\x20Words\x20Silence','FLOAT','yes','type','#AMD\x20Greeting','inbound','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','name','joinempty','Active/Disactive\x20Recall\x20In\x20Queue','default','rrmemory','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AMD\x20After\x20Greeting\x20Silence','attributes','Interval\x20Predictive\x20Minutes\x20(min:5\x20max:30)','periodic_announce','AGI\x20queue\x20option\x20(use:\x20agi://127.0.0.1/square,)','Active/Disactive\x20AMD'];(function(_0x1133a2,_0x257d27){const _0x129ecf=function(_0x576798){while(--_0x576798){_0x1133a2['push'](_0x1133a2['shift']());}};_0x129ecf(++_0x257d27);}(a902_0x129e,0x157));const a902_0x5767=function(_0x1133a2,_0x257d27){_0x1133a2=_0x1133a2-0x1a0;let _0x129ecf=a902_0x129e[_0x1133a2];return _0x129ecf;};const a902_0x4ec130=a902_0x5767;'use strict';const {DataTypes}=require(a902_0x4ec130(0x1c8)),attributes={'name':{'type':DataTypes['STRING'],'allowNull':![],'unique':a902_0x4ec130(0x1e1),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':DataTypes[a902_0x4ec130(0x1ab)](a902_0x4ec130(0x1df),a902_0x4ec130(0x1d0)),'allowNull':![],'defaultValue':a902_0x4ec130(0x1df)},'musiconhold':{'type':DataTypes[a902_0x4ec130(0x1cc)],'defaultValue':a902_0x4ec130(0x1e4)},'announce':{'type':DataTypes[a902_0x4ec130(0x1cc)],'defaultValue':''},'strategy':{'type':DataTypes['ENUM']('rr',a902_0x4ec130(0x1ba),a902_0x4ec130(0x1b6),'fewestcalls',a902_0x4ec130(0x1ef),a902_0x4ec130(0x1e5),a902_0x4ec130(0x1d8),a902_0x4ec130(0x1ad),a902_0x4ec130(0x1f1)),'allowNull':![],'defaultValue':a902_0x4ec130(0x1ba),'set':function(_0x465a93){const _0x12dcfa=a902_0x4ec130;this[_0x12dcfa(0x1ed)](_0x12dcfa(0x1d2),_0x465a93?_0x465a93:'rrmemory');},'get':function(){const _0x125dc0=a902_0x4ec130,_0x20cb52=this[_0x125dc0(0x1af)](_0x125dc0(0x1dd)),_0x256fe2=this[_0x125dc0(0x1af)](_0x125dc0(0x1bc)),_0x5118ef=this[_0x125dc0(0x1af)](_0x125dc0(0x1d2));if(_0x20cb52===_0x125dc0(0x1df))return _0x5118ef;if(_0x256fe2===_0x125dc0(0x1c4)&&_0x5118ef===_0x125dc0(0x1e5)||_0x256fe2===_0x125dc0(0x1c4)&&_0x5118ef==='roundrobin')return _0x5118ef;if(_0x256fe2===_0x125dc0(0x1d6)||_0x256fe2===_0x125dc0(0x1b1)||_0x256fe2===_0x125dc0(0x1ac))return _0x5118ef;return null;}},'servicelevel':{'type':DataTypes['INTEGER']({'length':0xb}),'defaultValue':0x0},'context':{'type':DataTypes[a902_0x4ec130(0x1cc)],'defaultValue':null},'penaltymemberslimit':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0xb})},'timeout':{'type':DataTypes['INTEGER']({'length':0xb}),'defaultValue':0xf},'retry':{'type':DataTypes['INTEGER']({'length':0xb}),'defaultValue':0x2},'timeoutpriority':{'type':DataTypes[a902_0x4ec130(0x1cc)]},'weight':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![],'defaultValue':0x0},'wrapuptime':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0xb}),'defaultValue':0x0},'autofill':{'type':DataTypes['ENUM'](a902_0x4ec130(0x1dc),'no'),'defaultValue':a902_0x4ec130(0x1dc)},'autopause':{'type':DataTypes['ENUM'](a902_0x4ec130(0x1dc),'no',a902_0x4ec130(0x1b7)),'defaultValue':'no'},'autopausedelay':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0xb})},'autopausebusy':{'type':DataTypes[a902_0x4ec130(0x1ab)](a902_0x4ec130(0x1dc),'no'),'defaultValue':'no'},'autopauseunavail':{'type':DataTypes[a902_0x4ec130(0x1ab)](a902_0x4ec130(0x1dc),'no'),'defaultValue':'no'},'maxlen':{'type':DataTypes['INTEGER']({'length':0xb}),'defaultValue':0x0},'setinterfacevar':{'type':DataTypes['ENUM'](a902_0x4ec130(0x1dc),'no'),'defaultValue':'no'},'setqueueentryvar':{'type':DataTypes['ENUM'](a902_0x4ec130(0x1dc),'no'),'defautValue':'no'},'setqueuevar':{'type':DataTypes[a902_0x4ec130(0x1ab)]('yes','no'),'defaultValue':'no'},'eventmemberstatus':{'type':DataTypes[a902_0x4ec130(0x1ab)](a902_0x4ec130(0x1dc),'no'),'defaultValue':'no'},'membermacro':{'type':DataTypes[a902_0x4ec130(0x1cc)],'allowNull':!![]},'membergosub':{'type':DataTypes[a902_0x4ec130(0x1cc)],'allowNull':!![]},'announce_frequency':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0xb}),'defaultValue':0x0},'min_announce_frequency':{'type':DataTypes['INTEGER']({'length':0xb}),'defaultValue':0x0},'periodic_announce_frequency':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0xb}),'defaultValue':0x0},'random_periodic_announce':{'type':DataTypes[a902_0x4ec130(0x1ab)](a902_0x4ec130(0x1dc),'no'),'defaultValue':'no'},'relative_periodic_announce':{'type':DataTypes[a902_0x4ec130(0x1ab)](a902_0x4ec130(0x1dc),'no'),'defaultValue':a902_0x4ec130(0x1dc)},'announce_holdtime':{'type':DataTypes[a902_0x4ec130(0x1ab)](a902_0x4ec130(0x1dc),'no',a902_0x4ec130(0x1a1)),'defaultValue':'no'},'announce_position':{'type':DataTypes['STRING'],'defaultValue':'no'},'announce_to_first_user':{'type':DataTypes[a902_0x4ec130(0x1ab)](a902_0x4ec130(0x1dc),'no')},'announce_position_limit':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0xb})},'announce_round_seconds':{'type':DataTypes[a902_0x4ec130(0x1ab)]('0','5','10','15','20','30'),'defaultValue':'0'},'monitor_format':{'type':DataTypes['STRING'],'defaultValue':''},'monitor_type':{'type':DataTypes[a902_0x4ec130(0x1cc)]},'queue_youarenext':{'type':DataTypes[a902_0x4ec130(0x1cc)],'defaultValue':null},'queue_thereare':{'type':DataTypes[a902_0x4ec130(0x1cc)],'defaultValue':null},'queue_callswaiting':{'type':DataTypes[a902_0x4ec130(0x1cc)],'defaultValue':null},'queue_holdtime':{'type':DataTypes[a902_0x4ec130(0x1cc)],'defaultValue':null},'queue_minute':{'type':DataTypes[a902_0x4ec130(0x1cc)],'allowNull':!![],'defaultValue':null},'queue_minutes':{'type':DataTypes[a902_0x4ec130(0x1cc)],'defaultValue':null},'queue_seconds':{'type':DataTypes[a902_0x4ec130(0x1cc)],'defaultValue':null},'queue_thankyou':{'type':DataTypes[a902_0x4ec130(0x1cc)],'defaultValue':null},'queue_reporthold':{'type':DataTypes[a902_0x4ec130(0x1cc)]},'queue_quantity1':{'type':DataTypes[a902_0x4ec130(0x1cc)]},'queue_quantity2':{'type':DataTypes[a902_0x4ec130(0x1cc)]},'queue_periodic_announce':{'type':DataTypes[a902_0x4ec130(0x1cc)]},'queue_less_than':{'type':DataTypes[a902_0x4ec130(0x1cc)]},'periodic_announce':{'type':DataTypes[a902_0x4ec130(0x1c9)],'set':function(_0x336dc9){const _0x15ee60=a902_0x4ec130;this['setDataValue'](_0x15ee60(0x1ea),_0x336dc9?_0x336dc9['join'](','):[]);},'get':function(){const _0x3b4d25=a902_0x4ec130;return this[_0x3b4d25(0x1af)](_0x3b4d25(0x1ea))?this['getDataValue'](_0x3b4d25(0x1ea))[_0x3b4d25(0x1b0)](','):[];}},'joinempty':{'type':DataTypes['STRING'],'defaultValue':a902_0x4ec130(0x1dc),'set':function(_0x537614){const _0x59c870=a902_0x4ec130;this[_0x59c870(0x1ed)](_0x59c870(0x1e2),_0x537614?_0x537614[_0x59c870(0x1c3)](','):undefined);},'get':function(){const _0x52abea=a902_0x4ec130;return this['getDataValue'](_0x52abea(0x1e2))?this['getDataValue']('joinempty')[_0x52abea(0x1b0)](','):undefined;}},'leavewhenempty':{'type':DataTypes[a902_0x4ec130(0x1cc)],'defaultValue':'no','set':function(_0x2da487){const _0x356f2e=a902_0x4ec130;this[_0x356f2e(0x1ed)](_0x356f2e(0x1c7),_0x2da487?_0x2da487[_0x356f2e(0x1c3)](','):undefined);},'get':function(){const _0x2a6b05=a902_0x4ec130;return this[_0x2a6b05(0x1af)]('leavewhenempty')?this['getDataValue'](_0x2a6b05(0x1c7))[_0x2a6b05(0x1b0)](','):undefined;}},'reportholdtime':{'type':DataTypes['ENUM'](a902_0x4ec130(0x1dc),'no'),'defaultValue':'no'},'ringinuse':{'type':DataTypes[a902_0x4ec130(0x1ab)](a902_0x4ec130(0x1dc),'no'),'defaultValue':'no'},'memberdelay':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0xb}),'defaultValue':0x0},'timeoutrestart':{'type':DataTypes[a902_0x4ec130(0x1ab)](a902_0x4ec130(0x1dc),'no'),'defaultValue':'no'},'defaultrule':{'type':DataTypes[a902_0x4ec130(0x1cc)]},'description':{'type':DataTypes[a902_0x4ec130(0x1cc)]},'acw':{'type':DataTypes[a902_0x4ec130(0x1ce)],'defaultValue':0x0,'set':function(_0x3d0f17){const _0x4fe4cd=a902_0x4ec130;this[_0x4fe4cd(0x1ed)](_0x4fe4cd(0x1b2),_0x3d0f17),_0x3d0f17&&(this[_0x4fe4cd(0x1af)]('wrapuptime')<0x2&&this[_0x4fe4cd(0x1ed)](_0x4fe4cd(0x1a8),0x2));}},'acwTimeout':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0xb}),'defaultValue':0xa},'dialActive':{'type':DataTypes[a902_0x4ec130(0x1ce)],'defaultValue':0x0,'comment':'Active/Disactive\x20Campaign'},'dialMethod':{'type':DataTypes[a902_0x4ec130(0x1ab)]('preview',a902_0x4ec130(0x1d6),a902_0x4ec130(0x1ac),'predictive',a902_0x4ec130(0x1c4)),'defaultValue':a902_0x4ec130(0x1d6),'comment':a902_0x4ec130(0x1cd)},'dialLimitChannel':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x4})[a902_0x4ec130(0x1c6)],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':'Max\x209999\x20channels,\x200\x20means\x20unlimited.'},'dialLimitQueue':{'type':DataTypes['INTEGER']({'length':0x4})[a902_0x4ec130(0x1c6)],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':a902_0x4ec130(0x1bf)},'dialPowerLevel':{'type':DataTypes[a902_0x4ec130(0x1db)]({'length':0x2})[a902_0x4ec130(0x1c6)],'defaultValue':0x1,'validate':{'min':0x1,'max':0xa},'comment':'Power\x20Level:\x20Calls\x20for\x20agents\x20(min:1,\x20max:10).'},'dialPredictiveOptimization':{'type':DataTypes[a902_0x4ec130(0x1ab)](a902_0x4ec130(0x1f2),'dropRate'),'defaultValue':a902_0x4ec130(0x1f3),'comment':a902_0x4ec130(0x1b9)},'dialPredictiveOptimizationPercentage':{'type':DataTypes[a902_0x4ec130(0x1db)]({'length':0x2})[a902_0x4ec130(0x1c6)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5f},'comment':a902_0x4ec130(0x1bb)},'dialPredictiveInterval':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x3})['UNSIGNED'],'defaultValue':0xa,'validate':{'min':0x5,'max':0x1e},'comment':a902_0x4ec130(0x1e9)},'dialOriginateCallerIdName':{'type':DataTypes['STRING']},'dialOriginateCallerIdNumber':{'type':DataTypes['STRING']},'dialOriginateTimeout':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x3})[a902_0x4ec130(0x1c6)],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0x4ec130(0x1d1)},'dialQueueOptions':{'type':DataTypes['STRING'],'defaultValue':'tTxX','comment':'https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue'},'dialQueueTimeout':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x3})[a902_0x4ec130(0x1c6)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0x4ec130(0x1f0)},'dialQueueProject':{'type':DataTypes[a902_0x4ec130(0x1cc)],'comment':a902_0x4ec130(0x1eb)},'dialCongestionMaxRetry':{'type':DataTypes['INTEGER']({'length':0x3})[a902_0x4ec130(0x1c6)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0x4ec130(0x1d9)},'dialCongestionRetryFrequency':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x5})[a902_0x4ec130(0x1c6)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a902_0x4ec130(0x1a7)},'dialBusyMaxRetry':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x3})[a902_0x4ec130(0x1c6)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0x4ec130(0x1d5)},'dialBusyRetryFrequency':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x5})[a902_0x4ec130(0x1c6)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a902_0x4ec130(0x1d3)},'dialNoAnswerMaxRetry':{'type':DataTypes['INTEGER']({'length':0x3})[a902_0x4ec130(0x1c6)],'defaultValue':0x3,'comment':a902_0x4ec130(0x1be)},'dialNoAnswerRetryFrequency':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x5})[a902_0x4ec130(0x1c6)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a902_0x4ec130(0x1e6)},'dialGlobalMaxRetry':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x3})['UNSIGNED'],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':a902_0x4ec130(0x1b3)},'dialTimezone':{'type':DataTypes['STRING'],'defaultValue':null},'dialGlobalInterval':{'type':DataTypes[a902_0x4ec130(0x1cc)],'defaultValue':a902_0x4ec130(0x1cf)},'dialPrefix':{'type':DataTypes[a902_0x4ec130(0x1cc)],'defaultValue':null},'dialCheckDuplicateType':{'type':DataTypes[a902_0x4ec130(0x1ab)](a902_0x4ec130(0x1a4),'never',a902_0x4ec130(0x1a6)),'defaultValue':'always'},'dialAMDActive':{'type':DataTypes['BOOLEAN'],'defaultValue':0x0,'comment':a902_0x4ec130(0x1ec)},'dialAMDInitialSilence':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x9})[a902_0x4ec130(0x1c6)],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':a902_0x4ec130(0x1aa)},'dialAMDGreeting':{'type':DataTypes['INTEGER']({'length':0x9})['UNSIGNED'],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':a902_0x4ec130(0x1de)},'dialAMDAfterGreetingSilence':{'type':DataTypes['INTEGER']({'length':0x9})['UNSIGNED'],'defaultValue':0x320,'validate':{'min':0x0},'comment':a902_0x4ec130(0x1e7)},'dialAMDTotalAnalysisTime':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x9})[a902_0x4ec130(0x1c6)],'defaultValue':0x1388,'validate':{'min':0x0},'comment':a902_0x4ec130(0x1a5)},'dialAMDMinWordLength':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x9})[a902_0x4ec130(0x1c6)],'defaultValue':0x64,'validate':{'min':0x0},'comment':a902_0x4ec130(0x1c0)},'dialAMDBetweenWordsSilence':{'type':DataTypes['INTEGER']({'length':0x9})[a902_0x4ec130(0x1c6)],'defaultValue':0x32,'validate':{'min':0x0},'comment':a902_0x4ec130(0x1da)},'dialAMDMaximumNumberOfWords':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x9})[a902_0x4ec130(0x1c6)],'defaultValue':0x3,'validate':{'min':0x0},'comment':a902_0x4ec130(0x1ae)},'dialAMDSilenceThreshold':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x5})[a902_0x4ec130(0x1c6)],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':a902_0x4ec130(0x1c5)},'dialAMDMaximumWordLength':{'type':DataTypes['INTEGER']({'length':0x9})[a902_0x4ec130(0x1c6)],'defaultValue':0x1388,'validate':{'min':0x0},'comment':a902_0x4ec130(0x1ca)},'dialRecallMeTimeout':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x5})[a902_0x4ec130(0x1c6)],'validate':{'min':0x1},'defaultValue':0x1e,'comment':a902_0x4ec130(0x1c1)},'dialRecallInQueue':{'type':DataTypes['BOOLEAN'],'defaultValue':0x0,'comment':a902_0x4ec130(0x1e3)},'dialOrderByScheduledAt':{'type':DataTypes[a902_0x4ec130(0x1ab)](a902_0x4ec130(0x1b8),a902_0x4ec130(0x1a3)),'defaultValue':a902_0x4ec130(0x1b8)},'dialQueueProject2':{'type':DataTypes['STRING'],'comment':a902_0x4ec130(0x1eb)},'dialAgiAfterHangupClient':{'type':DataTypes[a902_0x4ec130(0x1ce)],'defaultValue':![]},'dialAgiAfterHangupAgent':{'type':DataTypes[a902_0x4ec130(0x1ce)],'defaultValue':![]},'dialRandomLastDigitCallerIdNumber':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x3})[a902_0x4ec130(0x1c6)],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':a902_0x4ec130(0x1b5)},'dialCutDigit':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x3})[a902_0x4ec130(0x1c6)],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':a902_0x4ec130(0x1a0)},'dialNoSuchNumberMaxRetry':{'type':DataTypes['INTEGER']({'length':0x3})['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0x4ec130(0x1a9)},'dialNoSuchNumberRetryFrequency':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x5})[a902_0x4ec130(0x1c6)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialDropMaxRetry':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x3})['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0x4ec130(0x1d4)},'dialDropRetryFrequency':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x5})[a902_0x4ec130(0x1c6)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialAbandonedMaxRetry':{'type':DataTypes['INTEGER']({'length':0x3})[a902_0x4ec130(0x1c6)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0x4ec130(0x1b4)},'dialAbandonedRetryFrequency':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x5})[a902_0x4ec130(0x1c6)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a902_0x4ec130(0x1bd)},'dialMachineMaxRetry':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x3})['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Machine\x20Retry\x20(min:1,\x20max:999)'},'dialMachineRetryFrequency':{'type':DataTypes['INTEGER']({'length':0x5})[a902_0x4ec130(0x1c6)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialAgentRejectMaxRetry':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x3})['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0x4ec130(0x1a2)},'dialAgentRejectRetryFrequency':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x5})[a902_0x4ec130(0x1c6)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a902_0x4ec130(0x1ee)},'mandatoryDispositionPauseId':{'type':DataTypes[a902_0x4ec130(0x1cb)],'allowNull':!![],'comment':a902_0x4ec130(0x1e0)},'mandatoryDisposition':{'type':DataTypes[a902_0x4ec130(0x1ce)],'defaultValue':![],'comment':a902_0x4ec130(0x1d7),'set':function(_0x5bec2b){const _0x3acc8b=a902_0x4ec130;if(!_0x5bec2b)this[_0x3acc8b(0x1ed)]('mandatoryDispositionPauseId',null);this['setDataValue'](_0x3acc8b(0x1c2),_0x5bec2b);}},'dialPredictiveIntervalMaxThreshold':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x3})[a902_0x4ec130(0x1c6)],'defaultValue':0x14,'validate':{'min':0x1,'max':0x64}},'dialPredictiveIntervalMinThreshold':{'type':DataTypes[a902_0x4ec130(0x1cb)]({'length':0x3})['UNSIGNED'],'defaultValue':0xa,'validate':{'min':0x1,'max':0x64}}};module['exports'][a902_0x4ec130(0x1e8)]=attributes; \ No newline at end of file +const a902_0x5c1f=['leavewhenempty','yes','power','agentBusyFactor','always','random','rrordered','setDataValue','rrmemory','exports','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Abandoned\x20Retry\x20(min:1,\x20max:999)','AGI\x20queue\x20option\x20(use:\x20agi://127.0.0.1/square,)','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','predictive','#AgentReject\x20Retry\x20(min:1,\x20max:999)','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','DESC','FLOAT','#Busy\x20Retry\x20(min:1,\x20max:999)','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','getDataValue','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','name','Active/Disactive\x20Recall\x20In\x20Queue','leastrecent','#RecallMe\x20Timeout\x20(min:1)','join','#AMD\x20Total\x20Analysis\x20Time','#AMD\x20Maximum\x20Number\x20Of\x20Words','#AMD\x20Between\x20Words\x20Silence','STRING','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Predictive\x20Optimization\x20Percentage\x20(min:\x201,\x20max:\x2095)','booked','ENUM','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','#AMD\x20Greeting','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','linear','Dial\x20Method.','INTEGER','ringall','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','joinempty','Active/Disactive\x20AMD','periodic_announce','all','dialMethod','type','roundrobin','once','inbound','fewestcalls','Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Drop\x20Retry\x20(min:1,\x20max:999)','07:00-22:00,*,*,*','wrapuptime','BOOLEAN','sequelize','dropRate','#AMD\x20After\x20Greeting\x20Silence','progressive','ASC','preview','never','https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue','acw','split','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','UNSIGNED','#Congestion\x20Retry\x20(min:1,\x20max:999)','mandatoryDispositionPauseId','default','onlyIfOpen','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','strategy','Max\x209999\x20channels,\x200\x20means\x20unlimited.','Power\x20Level:\x20Calls\x20for\x20agents\x20(min:1,\x20max:10).'];(function(_0x51e009,_0x493501){const _0x5c1f7b=function(_0x5b92b5){while(--_0x5b92b5){_0x51e009['push'](_0x51e009['shift']());}};_0x5c1f7b(++_0x493501);}(a902_0x5c1f,0xac));const a902_0x5b92=function(_0x51e009,_0x493501){_0x51e009=_0x51e009-0x122;let _0x5c1f7b=a902_0x5c1f[_0x51e009];return _0x5c1f7b;};const a902_0x30a17e=a902_0x5b92;'use strict';const {DataTypes}=require(a902_0x30a17e(0x152)),attributes={'name':{'type':DataTypes[a902_0x30a17e(0x136)],'allowNull':![],'unique':a902_0x30a17e(0x12e),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':DataTypes[a902_0x30a17e(0x13a)](a902_0x30a17e(0x14b),'outbound'),'allowNull':![],'defaultValue':a902_0x30a17e(0x14b)},'musiconhold':{'type':DataTypes[a902_0x30a17e(0x136)],'defaultValue':a902_0x30a17e(0x160)},'announce':{'type':DataTypes['STRING'],'defaultValue':''},'strategy':{'type':DataTypes[a902_0x30a17e(0x13a)]('rr',a902_0x30a17e(0x141),a902_0x30a17e(0x130),a902_0x30a17e(0x14c),a902_0x30a17e(0x16b),'rrmemory',a902_0x30a17e(0x13e),'wrandom',a902_0x30a17e(0x16c)),'allowNull':![],'defaultValue':'ringall','set':function(_0x29e031){const _0x36451b=a902_0x30a17e;this[_0x36451b(0x16d)](_0x36451b(0x163),_0x29e031?_0x29e031:_0x36451b(0x16e));},'get':function(){const _0x42d1b4=a902_0x30a17e,_0x5d13ea=this[_0x42d1b4(0x12c)](_0x42d1b4(0x148)),_0x56adc1=this[_0x42d1b4(0x12c)](_0x42d1b4(0x147)),_0x5696c5=this[_0x42d1b4(0x12c)](_0x42d1b4(0x163));if(_0x5d13ea===_0x42d1b4(0x14b))return _0x5696c5;if(_0x56adc1===_0x42d1b4(0x139)&&_0x5696c5===_0x42d1b4(0x16e)||_0x56adc1==='booked'&&_0x5696c5===_0x42d1b4(0x149))return _0x5696c5;if(_0x56adc1===_0x42d1b4(0x155)||_0x56adc1==='predictive'||_0x56adc1===_0x42d1b4(0x168))return _0x5696c5;return null;}},'servicelevel':{'type':DataTypes['INTEGER']({'length':0xb}),'defaultValue':0x0},'context':{'type':DataTypes['STRING'],'defaultValue':null},'penaltymemberslimit':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0xb})},'timeout':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0xb}),'defaultValue':0xf},'retry':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0xb}),'defaultValue':0x2},'timeoutpriority':{'type':DataTypes[a902_0x30a17e(0x136)]},'weight':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![],'defaultValue':0x0},'wrapuptime':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0xb}),'defaultValue':0x0},'autofill':{'type':DataTypes[a902_0x30a17e(0x13a)](a902_0x30a17e(0x167),'no'),'defaultValue':a902_0x30a17e(0x167)},'autopause':{'type':DataTypes['ENUM'](a902_0x30a17e(0x167),'no',a902_0x30a17e(0x146)),'defaultValue':'no'},'autopausedelay':{'type':DataTypes['INTEGER']({'length':0xb})},'autopausebusy':{'type':DataTypes[a902_0x30a17e(0x13a)](a902_0x30a17e(0x167),'no'),'defaultValue':'no'},'autopauseunavail':{'type':DataTypes[a902_0x30a17e(0x13a)]('yes','no'),'defaultValue':'no'},'maxlen':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0xb}),'defaultValue':0x0},'setinterfacevar':{'type':DataTypes[a902_0x30a17e(0x13a)](a902_0x30a17e(0x167),'no'),'defaultValue':'no'},'setqueueentryvar':{'type':DataTypes[a902_0x30a17e(0x13a)](a902_0x30a17e(0x167),'no'),'defautValue':'no'},'setqueuevar':{'type':DataTypes[a902_0x30a17e(0x13a)]('yes','no'),'defaultValue':'no'},'eventmemberstatus':{'type':DataTypes['ENUM'](a902_0x30a17e(0x167),'no'),'defaultValue':'no'},'membermacro':{'type':DataTypes[a902_0x30a17e(0x136)],'allowNull':!![]},'membergosub':{'type':DataTypes[a902_0x30a17e(0x136)],'allowNull':!![]},'announce_frequency':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0xb}),'defaultValue':0x0},'min_announce_frequency':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0xb}),'defaultValue':0x0},'periodic_announce_frequency':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0xb}),'defaultValue':0x0},'random_periodic_announce':{'type':DataTypes[a902_0x30a17e(0x13a)](a902_0x30a17e(0x167),'no'),'defaultValue':'no'},'relative_periodic_announce':{'type':DataTypes[a902_0x30a17e(0x13a)]('yes','no'),'defaultValue':a902_0x30a17e(0x167)},'announce_holdtime':{'type':DataTypes['ENUM'](a902_0x30a17e(0x167),'no',a902_0x30a17e(0x14a)),'defaultValue':'no'},'announce_position':{'type':DataTypes[a902_0x30a17e(0x136)],'defaultValue':'no'},'announce_to_first_user':{'type':DataTypes[a902_0x30a17e(0x13a)](a902_0x30a17e(0x167),'no')},'announce_position_limit':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0xb})},'announce_round_seconds':{'type':DataTypes[a902_0x30a17e(0x13a)]('0','5','10','15','20','30'),'defaultValue':'0'},'monitor_format':{'type':DataTypes[a902_0x30a17e(0x136)],'defaultValue':''},'monitor_type':{'type':DataTypes['STRING']},'queue_youarenext':{'type':DataTypes[a902_0x30a17e(0x136)],'defaultValue':null},'queue_thereare':{'type':DataTypes[a902_0x30a17e(0x136)],'defaultValue':null},'queue_callswaiting':{'type':DataTypes[a902_0x30a17e(0x136)],'defaultValue':null},'queue_holdtime':{'type':DataTypes[a902_0x30a17e(0x136)],'defaultValue':null},'queue_minute':{'type':DataTypes[a902_0x30a17e(0x136)],'allowNull':!![],'defaultValue':null},'queue_minutes':{'type':DataTypes[a902_0x30a17e(0x136)],'defaultValue':null},'queue_seconds':{'type':DataTypes[a902_0x30a17e(0x136)],'defaultValue':null},'queue_thankyou':{'type':DataTypes[a902_0x30a17e(0x136)],'defaultValue':null},'queue_reporthold':{'type':DataTypes[a902_0x30a17e(0x136)]},'queue_quantity1':{'type':DataTypes['STRING']},'queue_quantity2':{'type':DataTypes[a902_0x30a17e(0x136)]},'queue_periodic_announce':{'type':DataTypes[a902_0x30a17e(0x136)]},'queue_less_than':{'type':DataTypes[a902_0x30a17e(0x136)]},'periodic_announce':{'type':DataTypes['TEXT'],'set':function(_0x4ee87e){const _0x3cba4b=a902_0x30a17e;this['setDataValue'](_0x3cba4b(0x145),_0x4ee87e?_0x4ee87e[_0x3cba4b(0x132)](','):[]);},'get':function(){const _0x4d67a4=a902_0x30a17e;return this['getDataValue'](_0x4d67a4(0x145))?this['getDataValue'](_0x4d67a4(0x145))[_0x4d67a4(0x15b)](','):[];}},'joinempty':{'type':DataTypes[a902_0x30a17e(0x136)],'defaultValue':a902_0x30a17e(0x167),'set':function(_0xf9e6c7){const _0x4a0047=a902_0x30a17e;this[_0x4a0047(0x16d)](_0x4a0047(0x143),_0xf9e6c7?_0xf9e6c7[_0x4a0047(0x132)](','):undefined);},'get':function(){const _0x44f9fc=a902_0x30a17e;return this['getDataValue'](_0x44f9fc(0x143))?this[_0x44f9fc(0x12c)](_0x44f9fc(0x143))[_0x44f9fc(0x15b)](','):undefined;}},'leavewhenempty':{'type':DataTypes['STRING'],'defaultValue':'no','set':function(_0x37464e){const _0x173bbc=a902_0x30a17e;this[_0x173bbc(0x16d)](_0x173bbc(0x166),_0x37464e?_0x37464e[_0x173bbc(0x132)](','):undefined);},'get':function(){const _0x92f9e1=a902_0x30a17e;return this[_0x92f9e1(0x12c)](_0x92f9e1(0x166))?this[_0x92f9e1(0x12c)](_0x92f9e1(0x166))[_0x92f9e1(0x15b)](','):undefined;}},'reportholdtime':{'type':DataTypes[a902_0x30a17e(0x13a)](a902_0x30a17e(0x167),'no'),'defaultValue':'no'},'ringinuse':{'type':DataTypes[a902_0x30a17e(0x13a)](a902_0x30a17e(0x167),'no'),'defaultValue':'no'},'memberdelay':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0xb}),'defaultValue':0x0},'timeoutrestart':{'type':DataTypes[a902_0x30a17e(0x13a)]('yes','no'),'defaultValue':'no'},'defaultrule':{'type':DataTypes[a902_0x30a17e(0x136)]},'description':{'type':DataTypes[a902_0x30a17e(0x136)]},'acw':{'type':DataTypes[a902_0x30a17e(0x151)],'defaultValue':0x0,'set':function(_0x4ff75c){const _0x24cd52=a902_0x30a17e;this[_0x24cd52(0x16d)](_0x24cd52(0x15a),_0x4ff75c),_0x4ff75c&&(this[_0x24cd52(0x12c)](_0x24cd52(0x150))<0x2&&this[_0x24cd52(0x16d)](_0x24cd52(0x150),0x2));}},'acwTimeout':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0xb}),'defaultValue':0xa},'dialActive':{'type':DataTypes[a902_0x30a17e(0x151)],'defaultValue':0x0,'comment':'Active/Disactive\x20Campaign'},'dialMethod':{'type':DataTypes['ENUM'](a902_0x30a17e(0x157),a902_0x30a17e(0x155),a902_0x30a17e(0x168),a902_0x30a17e(0x125),'booked'),'defaultValue':'progressive','comment':a902_0x30a17e(0x13f)},'dialLimitChannel':{'type':DataTypes['INTEGER']({'length':0x4})[a902_0x30a17e(0x15d)],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':a902_0x30a17e(0x164)},'dialLimitQueue':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x4})['UNSIGNED'],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':'Max\x209999\x20member\x20in\x20queue(min:1,\x20max:9999),\x200\x20means\x20unlimited.'},'dialPowerLevel':{'type':DataTypes[a902_0x30a17e(0x129)]({'length':0x2})['UNSIGNED'],'defaultValue':0x1,'validate':{'min':0x1,'max':0xa},'comment':a902_0x30a17e(0x165)},'dialPredictiveOptimization':{'type':DataTypes[a902_0x30a17e(0x13a)](a902_0x30a17e(0x169),a902_0x30a17e(0x153)),'defaultValue':a902_0x30a17e(0x153),'comment':'Only\x20for\x20predictive\x20method.'},'dialPredictiveOptimizationPercentage':{'type':DataTypes['FLOAT']({'length':0x2})[a902_0x30a17e(0x15d)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5f},'comment':a902_0x30a17e(0x138)},'dialPredictiveInterval':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x3})[a902_0x30a17e(0x15d)],'defaultValue':0xa,'validate':{'min':0x5,'max':0x1e},'comment':'Interval\x20Predictive\x20Minutes\x20(min:5\x20max:30)'},'dialOriginateCallerIdName':{'type':DataTypes[a902_0x30a17e(0x136)]},'dialOriginateCallerIdNumber':{'type':DataTypes['STRING']},'dialOriginateTimeout':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x3})[a902_0x30a17e(0x15d)],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0x30a17e(0x162)},'dialQueueOptions':{'type':DataTypes['STRING'],'defaultValue':'tTxX','comment':a902_0x30a17e(0x159)},'dialQueueTimeout':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x3})[a902_0x30a17e(0x15d)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0x30a17e(0x13b)},'dialQueueProject':{'type':DataTypes['STRING'],'comment':a902_0x30a17e(0x122)},'dialCongestionMaxRetry':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x3})['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0x30a17e(0x15e)},'dialCongestionRetryFrequency':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x5})[a902_0x30a17e(0x15d)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a902_0x30a17e(0x12b)},'dialBusyMaxRetry':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x3})[a902_0x30a17e(0x15d)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0x30a17e(0x12a)},'dialBusyRetryFrequency':{'type':DataTypes['INTEGER']({'length':0x5})['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialNoAnswerMaxRetry':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x3})[a902_0x30a17e(0x15d)],'defaultValue':0x3,'comment':'#NoAnswer\x20Retry\x20(min:1,\x20max:999)'},'dialNoAnswerRetryFrequency':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x5})[a902_0x30a17e(0x15d)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialGlobalMaxRetry':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x3})[a902_0x30a17e(0x15d)],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':a902_0x30a17e(0x123)},'dialTimezone':{'type':DataTypes[a902_0x30a17e(0x136)],'defaultValue':null},'dialGlobalInterval':{'type':DataTypes[a902_0x30a17e(0x136)],'defaultValue':a902_0x30a17e(0x14f)},'dialPrefix':{'type':DataTypes[a902_0x30a17e(0x136)],'defaultValue':null},'dialCheckDuplicateType':{'type':DataTypes[a902_0x30a17e(0x13a)](a902_0x30a17e(0x16a),a902_0x30a17e(0x158),a902_0x30a17e(0x161)),'defaultValue':a902_0x30a17e(0x16a)},'dialAMDActive':{'type':DataTypes[a902_0x30a17e(0x151)],'defaultValue':0x0,'comment':a902_0x30a17e(0x144)},'dialAMDInitialSilence':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x9})[a902_0x30a17e(0x15d)],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':'#AMD\x20Initial\x20Silence'},'dialAMDGreeting':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x9})[a902_0x30a17e(0x15d)],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':a902_0x30a17e(0x13c)},'dialAMDAfterGreetingSilence':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x9})[a902_0x30a17e(0x15d)],'defaultValue':0x320,'validate':{'min':0x0},'comment':a902_0x30a17e(0x154)},'dialAMDTotalAnalysisTime':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x9})[a902_0x30a17e(0x15d)],'defaultValue':0x1388,'validate':{'min':0x0},'comment':a902_0x30a17e(0x133)},'dialAMDMinWordLength':{'type':DataTypes['INTEGER']({'length':0x9})['UNSIGNED'],'defaultValue':0x64,'validate':{'min':0x0},'comment':'#AMD\x20Min\x20Word\x20Length'},'dialAMDBetweenWordsSilence':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x9})[a902_0x30a17e(0x15d)],'defaultValue':0x32,'validate':{'min':0x0},'comment':a902_0x30a17e(0x135)},'dialAMDMaximumNumberOfWords':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x9})['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x0},'comment':a902_0x30a17e(0x134)},'dialAMDSilenceThreshold':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x5})['UNSIGNED'],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':a902_0x30a17e(0x15c)},'dialAMDMaximumWordLength':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x9})[a902_0x30a17e(0x15d)],'defaultValue':0x1388,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Word\x20Length'},'dialRecallMeTimeout':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x5})[a902_0x30a17e(0x15d)],'validate':{'min':0x1},'defaultValue':0x1e,'comment':a902_0x30a17e(0x131)},'dialRecallInQueue':{'type':DataTypes[a902_0x30a17e(0x151)],'defaultValue':0x0,'comment':a902_0x30a17e(0x12f)},'dialOrderByScheduledAt':{'type':DataTypes[a902_0x30a17e(0x13a)](a902_0x30a17e(0x128),a902_0x30a17e(0x156)),'defaultValue':a902_0x30a17e(0x128)},'dialQueueProject2':{'type':DataTypes['STRING'],'comment':a902_0x30a17e(0x122)},'dialAgiAfterHangupClient':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'dialAgiAfterHangupAgent':{'type':DataTypes[a902_0x30a17e(0x151)],'defaultValue':![]},'dialRandomLastDigitCallerIdNumber':{'type':DataTypes['INTEGER']({'length':0x3})['UNSIGNED'],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':a902_0x30a17e(0x124)},'dialCutDigit':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x3})['UNSIGNED'],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':'Cut\x20Digit\x20(min:1,\x20max:15)'},'dialNoSuchNumberMaxRetry':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x3})[a902_0x30a17e(0x15d)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0x30a17e(0x127)},'dialNoSuchNumberRetryFrequency':{'type':DataTypes['INTEGER']({'length':0x5})[a902_0x30a17e(0x15d)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialDropMaxRetry':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x3})[a902_0x30a17e(0x15d)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0x30a17e(0x14e)},'dialDropRetryFrequency':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x5})[a902_0x30a17e(0x15d)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a902_0x30a17e(0x14d)},'dialAbandonedMaxRetry':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x3})[a902_0x30a17e(0x15d)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0x30a17e(0x171)},'dialAbandonedRetryFrequency':{'type':DataTypes['INTEGER']({'length':0x5})[a902_0x30a17e(0x15d)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a902_0x30a17e(0x170)},'dialMachineMaxRetry':{'type':DataTypes['INTEGER']({'length':0x3})[a902_0x30a17e(0x15d)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Machine\x20Retry\x20(min:1,\x20max:999)'},'dialMachineRetryFrequency':{'type':DataTypes['INTEGER']({'length':0x5})[a902_0x30a17e(0x15d)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a902_0x30a17e(0x142)},'dialAgentRejectMaxRetry':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x3})[a902_0x30a17e(0x15d)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0x30a17e(0x126)},'dialAgentRejectRetryFrequency':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x5})[a902_0x30a17e(0x15d)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a902_0x30a17e(0x137)},'mandatoryDispositionPauseId':{'type':DataTypes[a902_0x30a17e(0x140)],'allowNull':!![],'comment':a902_0x30a17e(0x13d)},'mandatoryDisposition':{'type':DataTypes[a902_0x30a17e(0x151)],'defaultValue':![],'comment':a902_0x30a17e(0x12d),'set':function(_0x17ba68){const _0x38147=a902_0x30a17e;if(!_0x17ba68)this[_0x38147(0x16d)](_0x38147(0x15f),null);this[_0x38147(0x16d)]('mandatoryDisposition',_0x17ba68);}},'dialPredictiveIntervalMaxThreshold':{'type':DataTypes[a902_0x30a17e(0x140)]({'length':0x3})[a902_0x30a17e(0x15d)],'defaultValue':0x14,'validate':{'min':0x1,'max':0x64}},'dialPredictiveIntervalMinThreshold':{'type':DataTypes['INTEGER']({'length':0x3})[a902_0x30a17e(0x15d)],'defaultValue':0xa,'validate':{'min':0x1,'max':0x64}}};module[a902_0x30a17e(0x16f)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.controller.js b/server/api/voiceQueue/voiceQueue.controller.js index 31a54f4..3506bd0 100644 --- a/server/api/voiceQueue/voiceQueue.controller.js +++ b/server/api/voiceQueue/voiceQueue.controller.js @@ -1 +1 @@ -const a903_0x4523=['then','COALESCE(phone,\x27\x27)','destroy','QueueCampaigns','length','ListId\x20=\x20?','order','CmHopper','where','sendStatus','interface','options','getHopperFinals','createdAt','body','filters','CmHopperBlack','VoiceQueueId','register','emit','COALESCE(calleridnum,\x27\x27)','insert','flatMap','ContactId','update','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','select','fromQuery','VoiceQueueId\x20=\x20?','map','create','forEach','CmList','getAgents','findOne','query','VoiceQueues','every','merge','push','updatedAt','getLists','catch','format','Team','Unable\x20to\x20retrieve\x20the\x20current\x20user','rows','../../config/logger','phone\x20IS\x20NOT\x20NULL','from','fieldName','sequelize','removeAgents','teams','userProfileId','voicePause','getHoppers','getBlackLists','like','UserVoiceQueueRt','intersection','params','find','./voiceQueue.socket','error','includes','../../rediscache','userVoiceQueue:remove','json','CmListId','send','Agents','user','stack','autoAssociation','isEmpty','end','removeBlackLists','CmHopperFinal','isArray','model','ignore','../../components/parsers/qs','addBlackLists','sort','role','attributes','field','keys','VoiceQueue','SELECT','getHopperBlacks','toString','all','limit','getHopperHistories','removeLists','cm_hopper','into','show','set','includeAll','cm_contacts','VIRTUAL','removeTeams','outbound','rawAttributes','status','include','nolimit','phone','get','SIP/%s','UserProfileResource','getMembers','addLists','online','findAll','compact','ListId','count','omit','isNil','findOrCreate','api','transaction','penalty','dialCheckDuplicateType','user_has_teams','offset','name','util','pick','scheduledAt','phone\x20NOT\x20IN\x20(?)','getTeams','UserProfileSection','team_has_voice_queues','inbound','../../mysqldb','addAgents','value','index','NOW()','Content-Range','upsert','deletedAt\x20IS\x20NULL','CmHopperHistory','clone','type','ids','join','ut.UserId\x20=\x20?','undefined','TeamId','filter','lodash','fields','User','addTeams'];(function(_0x26263f,_0x487fef){const _0x452320=function(_0x2d8265){while(--_0x2d8265){_0x26263f['push'](_0x26263f['shift']());}};_0x452320(++_0x487fef);}(a903_0x4523,0x8c));const a903_0x2d82=function(_0x26263f,_0x487fef){_0x26263f=_0x26263f-0xa5;let _0x452320=a903_0x4523[_0x26263f];return _0x452320;};const a903_0x1a0075=a903_0x2d82;'use strict';const util=require(a903_0x1a0075(0x13c)),_=require(a903_0x1a0075(0xb5)),squel=require('squel'),qs=require(a903_0x1a0075(0x10b)),logger=require(a903_0x1a0075(0xe8))(a903_0x1a0075(0x135)),{getSocket}=require(a903_0x1a0075(0xfb)),socket=getSocket(),{db}=require(a903_0x1a0075(0x144)),{Op,QueryTypes}=require(a903_0x1a0075(0xec));require(a903_0x1a0075(0xf8))[a903_0x1a0075(0xcb)](socket);function respondWithStatusCode(_0x5066be,_0x3c0a4a){return _0x3c0a4a=_0x3c0a4a||0xcc,function(_0x3a55a9){const _0x400ad3=a903_0x2d82;if(_0x3a55a9)return _0x5066be[_0x400ad3(0xc2)](_0x3c0a4a);return _0x5066be['status'](_0x3c0a4a)['end']();};}function respondWithResult(_0x38c0a7,_0x531e52){return _0x531e52=_0x531e52||0xc8,function(_0x335484){const _0x5e039f=a903_0x2d82;if(_0x335484)return _0x38c0a7[_0x5e039f(0x124)](_0x531e52)['json'](_0x335484);};}function respondWithFilteredResult(_0x485bb5,_0x397990){return function(_0x5f0b49){const _0x14da95=a903_0x2d82;if(_0x5f0b49){const _0x57cbe3=_0x5f0b49[_0x14da95(0x131)],_0x254278=_0x397990[_0x14da95(0x13a)];let _0x1af81d=_0x397990['offset']+_0x397990[_0x14da95(0x117)],_0x52b2f0;return _0x1af81d>=_0x57cbe3?(_0x1af81d=_0x57cbe3,_0x52b2f0=0xc8):_0x52b2f0=0xce,_0x485bb5[_0x14da95(0x124)](_0x52b2f0),_0x485bb5[_0x14da95(0x11d)](_0x14da95(0xa9),_0x254278+'-'+_0x1af81d+'/'+_0x57cbe3)[_0x14da95(0xfd)](_0x5f0b49);}return null;};}function saveUpdates(_0x2f6f08){return function(_0x21d830){const _0x15a514=a903_0x2d82;if(_0x21d830)return _0x21d830[_0x15a514(0xd1)](_0x2f6f08)['then'](function(_0x2b05d7){return _0x2b05d7;});return null;};}function removeEntity(_0x1dd96c){return function(_0x312a9f){const _0x1dfc06=a903_0x2d82;if(_0x312a9f)return _0x312a9f[_0x1dfc06(0xbb)]()['then'](function(){const _0x3bca10=_0x1dfc06,_0x548234=_0x312a9f['get']({'plain':!![]}),_0x3aabb3=[{'name':_0x3bca10(0xdd),'value':_0x3bca10(0x143),'ignore':![]},{'name':_0x3bca10(0xbc),'value':'outbound','ignore':![]}],_0xf889f8=_(_0x3aabb3)['filter'](_0x3bca10(0x10a))[_0x3bca10(0xd6)](_0x3bca10(0xa6))[_0x3bca10(0xa6)]();if(_['includes'](_0xf889f8,_0x548234['type']))return;const _0x16d7aa=_[_0x3bca10(0xf7)](_0x3aabb3,['value',_0x548234[_0x3bca10(0xae)]])[_0x3bca10(0x13b)];return db[_0x3bca10(0x12a)][_0x3bca10(0xbb)]({'where':{'type':_0x16d7aa,'resourceId':_0x548234['id']}})[_0x3bca10(0xb9)](function(){return _0x312a9f;});})[_0x1dfc06(0xb9)](function(){const _0x5e8afd=_0x1dfc06;_0x1dd96c[_0x5e8afd(0x124)](0xcc)[_0x5e8afd(0x105)]();});};}function handleEntityNotFound(_0x2af712){return function(_0x4e5546){const _0x9ca1c0=a903_0x2d82;return!_0x4e5546&&_0x2af712[_0x9ca1c0(0xc2)](0x194),_0x4e5546;};}function handleError(_0x590712,_0x2614e7){return _0x2614e7=_0x2614e7||0x1f4,function(_0x31e860){const _0x3d817f=a903_0x2d82;logger['error'](_0x31e860[_0x3d817f(0x102)]),_0x31e860[_0x3d817f(0x13b)]&&delete _0x31e860[_0x3d817f(0x13b)],_0x590712[_0x3d817f(0x124)](_0x2614e7)[_0x3d817f(0xff)](_0x31e860);};}exports[a903_0x1a0075(0xa7)]=function(_0x49a61e,_0x1718ec){const _0x60148f=a903_0x1a0075;let _0xb2c29b={};const _0x2baf8f={},_0x4d3544={'count':0x0,'rows':[]},_0x53bf97=_[_0x60148f(0xd6)](db[_0x60148f(0x112)][_0x60148f(0x123)],function(_0x169a34){const _0x4c2cef=_0x60148f;return{'name':_0x169a34[_0x4c2cef(0xeb)],'type':_0x169a34[_0x4c2cef(0xae)]['key']};});_0x2baf8f[_0x60148f(0x109)]=_[_0x60148f(0xd6)](_0x53bf97,_0x60148f(0x13b)),_0x2baf8f['query']=_[_0x60148f(0x111)](_0x49a61e[_0x60148f(0xdc)]),_0x2baf8f[_0x60148f(0xc8)]=_[_0x60148f(0xf5)](_0x2baf8f['model'],_0x2baf8f['query']),_0xb2c29b['attributes']=_[_0x60148f(0xf5)](_0x2baf8f[_0x60148f(0x109)],qs[_0x60148f(0xb6)](_0x49a61e['query'][_0x60148f(0xb6)])),_0xb2c29b[_0x60148f(0x10f)]=_0xb2c29b[_0x60148f(0x10f)][_0x60148f(0xbd)]?_0xb2c29b[_0x60148f(0x10f)]:_0x2baf8f['model'];typeof _0x49a61e['query'][_0x60148f(0x126)]===_0x60148f(0xb2)&&(_0xb2c29b[_0x60148f(0x117)]=qs[_0x60148f(0x117)](_0x49a61e[_0x60148f(0xdc)][_0x60148f(0x117)]),_0xb2c29b[_0x60148f(0x13a)]=qs[_0x60148f(0x13a)](_0x49a61e[_0x60148f(0xdc)][_0x60148f(0x13a)]));_0xb2c29b[_0x60148f(0xbf)]=qs['sort'](_0x49a61e[_0x60148f(0xdc)]['sort']),_0xb2c29b[_0x60148f(0xc1)]=qs['filters'](_[_0x60148f(0x13d)](_0x49a61e[_0x60148f(0xdc)],_0x2baf8f[_0x60148f(0xc8)]),_0x53bf97);_0x49a61e[_0x60148f(0xdc)][_0x60148f(0xb4)]&&(_0xb2c29b[_0x60148f(0xc1)]=_[_0x60148f(0xdf)](_0xb2c29b[_0x60148f(0xc1)],{[Op['or']]:_[_0x60148f(0xd6)](_0x53bf97,function(_0x2d34ff){const _0x20dc0c=_0x60148f;if(_0x2d34ff[_0x20dc0c(0xae)]!==_0x20dc0c(0x120)){const _0x436454={};return _0x436454[_0x2d34ff[_0x20dc0c(0x13b)]]={[Op[_0x20dc0c(0xf3)]]:'%'+_0x49a61e[_0x20dc0c(0xdc)][_0x20dc0c(0xb4)]+'%'},_0x436454;}})}));_0xb2c29b=_[_0x60148f(0xdf)]({},_0xb2c29b,_0x49a61e[_0x60148f(0xc4)]);const _0xaf6da9={'where':_0xb2c29b['where']};return db[_0x60148f(0x112)]['count'](_0xaf6da9)[_0x60148f(0xb9)](function(_0x3196d2){const _0x26a91e=_0x60148f;return _0x4d3544[_0x26a91e(0x131)]=_0x3196d2,_0x49a61e['query'][_0x26a91e(0x11e)]&&(_0xb2c29b[_0x26a91e(0x125)]=[{'all':!![]}]),db[_0x26a91e(0x112)][_0x26a91e(0x12e)](_0xb2c29b);})['then'](function(_0x6b671b){return _0x4d3544['rows']=_0x6b671b,_0x4d3544;})['then'](respondWithFilteredResult(_0x1718ec,_0xb2c29b))['catch'](handleError(_0x1718ec,null));},exports[a903_0x1a0075(0x11c)]=function(_0x1cada7,_0x144837){const _0x556669=a903_0x1a0075;let _0x2965b7={'raw':![],'where':{'id':_0x1cada7[_0x556669(0xf6)]['id']}};const _0x56223b={};return _0x56223b[_0x556669(0x109)]=_[_0x556669(0x111)](db[_0x556669(0x112)][_0x556669(0x123)]),_0x56223b[_0x556669(0xdc)]=_['keys'](_0x1cada7['query']),_0x56223b[_0x556669(0xc8)]=_[_0x556669(0xf5)](_0x56223b[_0x556669(0x109)],_0x56223b['query']),_0x2965b7[_0x556669(0x10f)]=_[_0x556669(0xf5)](_0x56223b[_0x556669(0x109)],qs[_0x556669(0xb6)](_0x1cada7['query'][_0x556669(0xb6)])),_0x2965b7[_0x556669(0x10f)]=_0x2965b7[_0x556669(0x10f)][_0x556669(0xbd)]?_0x2965b7[_0x556669(0x10f)]:_0x56223b[_0x556669(0x109)],_0x1cada7['query'][_0x556669(0x11e)]&&(_0x2965b7['include']=[{'all':!![]}]),_0x2965b7=_[_0x556669(0xdf)]({},_0x2965b7,_0x1cada7['options']),db[_0x556669(0x112)]['findOne'](_0x2965b7)['then'](handleEntityNotFound(_0x144837,null))[_0x556669(0xb9)](respondWithResult(_0x144837,null))['catch'](handleError(_0x144837,null));},exports[a903_0x1a0075(0xd7)]=function(_0x3fb311,_0x20f54a){const _0x3cd1e5=a903_0x1a0075;return db[_0x3cd1e5(0x112)][_0x3cd1e5(0xd7)](_0x3fb311[_0x3cd1e5(0xc7)],{})[_0x3cd1e5(0xb9)](function(_0x4389c1){const _0x58b742=_0x3cd1e5,_0x5d0894=_0x3fb311[_0x58b742(0x101)][_0x58b742(0x128)]({'plain':!![]});if(!_0x5d0894)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x5d0894[_0x58b742(0x10e)]==='user'){const _0x8a1952=_0x4389c1['get']({'plain':!![]}),_0x2e3205=[{'name':_0x58b742(0xdd),'value':_0x58b742(0x143)},{'name':_0x58b742(0xbc),'value':_0x58b742(0x122)}],_0x233586=_[_0x58b742(0xf7)](_0x2e3205,[_0x58b742(0xa6),_0x8a1952[_0x58b742(0xae)]])[_0x58b742(0x13b)];return db['UserProfileSection']['findOne']({'where':{'name':_0x233586,'userProfileId':_0x5d0894[_0x58b742(0xef)]},'raw':!![]})[_0x58b742(0xb9)](function(_0x3ec05a){const _0x7572c0=_0x58b742;return _0x3ec05a&&_0x3ec05a[_0x7572c0(0x103)]===0x0?db[_0x7572c0(0x12a)][_0x7572c0(0xd7)]({'name':_0x8a1952[_0x7572c0(0x13b)],'resourceId':_0x8a1952['id'],'type':_0x3ec05a[_0x7572c0(0x13b)],'sectionId':_0x3ec05a['id']},{})[_0x7572c0(0xb9)](function(){return _0x4389c1;}):_0x4389c1;})[_0x58b742(0xe3)](function(_0x2b4948){const _0x5974f4=_0x58b742;logger[_0x5974f4(0xf9)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x2b4948);throw _0x2b4948;});}return _0x4389c1;})[_0x3cd1e5(0xb9)](respondWithResult(_0x20f54a,0xc9))[_0x3cd1e5(0xe3)](handleError(_0x20f54a,null));},exports[a903_0x1a0075(0xad)]=function(_0x31874f,_0x370593){const _0x3394c0=a903_0x1a0075;let _0xe46e60={'where':{'id':_0x31874f['params']['id']}};const _0x228adb={};return _0x228adb[_0x3394c0(0x109)]=_[_0x3394c0(0x111)](db[_0x3394c0(0x112)][_0x3394c0(0x123)]),_0xe46e60[_0x3394c0(0x10f)]=_[_0x3394c0(0xf5)](_0x228adb[_0x3394c0(0x109)],qs['fields'](_0x31874f['query'][_0x3394c0(0xb6)])),_0xe46e60[_0x3394c0(0x10f)]=_0xe46e60[_0x3394c0(0x10f)][_0x3394c0(0xbd)]?_0xe46e60[_0x3394c0(0x10f)]:_0x228adb['model'],_0x31874f[_0x3394c0(0xdc)][_0x3394c0(0x11e)]&&(_0xe46e60['include']=[{'all':!![]}]),_0xe46e60=_[_0x3394c0(0xdf)]({},_0xe46e60,_0x31874f[_0x3394c0(0xc4)]),db[_0x3394c0(0x112)][_0x3394c0(0xdb)](_0xe46e60)[_0x3394c0(0xb9)](handleEntityNotFound(_0x370593,null))['then'](function(_0x4d308c){const _0xeb2f09=_0x3394c0;if(_0x4d308c){let _0xc6aa60=_0x4d308c[_0xeb2f09(0x128)]({'plain':!![]});return _0xc6aa60=qs[_0xeb2f09(0x132)](_0xc6aa60,['id',_0xeb2f09(0xc6),_0xeb2f09(0xe1)]),_0x31874f[_0xeb2f09(0xc7)]=_[_0xeb2f09(0x132)](_0x31874f['body'],['id',_0xeb2f09(0xc6),_0xeb2f09(0xe1)]),db[_0xeb2f09(0x112)][_0xeb2f09(0xd7)](_[_0xeb2f09(0xdf)](_0xc6aa60,_0x31874f[_0xeb2f09(0xc7)]),{'include':_0x31874f[_0xeb2f09(0xdc)][_0xeb2f09(0x11e)]?[{'all':!![]}]:undefined})[_0xeb2f09(0xb9)](function(_0x4bc741){const _0xab9dd6=_0xeb2f09,_0x2a3040=_0x31874f[_0xab9dd6(0x101)][_0xab9dd6(0x128)]({'plain':!![]});if(!_0x2a3040)throw new Error(_0xab9dd6(0xe6));if(_0x2a3040[_0xab9dd6(0x10e)]===_0xab9dd6(0x101)){const _0x40667e=_0x4bc741[_0xab9dd6(0x128)]({'plain':!![]}),_0x5e6420=[{'name':'VoiceQueues','value':_0xab9dd6(0x143)},{'name':_0xab9dd6(0xbc),'value':_0xab9dd6(0x122)}],_0x43918b=_[_0xab9dd6(0xf7)](_0x5e6420,[_0xab9dd6(0xa6),_0x40667e[_0xab9dd6(0xae)]])[_0xab9dd6(0x13b)];return db[_0xab9dd6(0x141)]['findOne']({'where':{'name':_0x43918b,'userProfileId':_0x2a3040[_0xab9dd6(0xef)]},'raw':!![]})[_0xab9dd6(0xb9)](function(_0x1c1df7){const _0x126c73=_0xab9dd6;return _0x1c1df7&&_0x1c1df7[_0x126c73(0x103)]===0x0?db[_0x126c73(0x12a)][_0x126c73(0xd7)]({'name':_0x40667e[_0x126c73(0x13b)],'resourceId':_0x40667e['id'],'type':_0x1c1df7['name'],'sectionId':_0x1c1df7['id']},{})[_0x126c73(0xb9)](function(){return _0x4bc741;}):_0x4bc741;})[_0xab9dd6(0xe3)](function(_0x5c3094){const _0x40160b=_0xab9dd6;logger[_0x40160b(0xf9)](_0x40160b(0xd2),_0x5c3094);throw _0x5c3094;});}return _0x4bc741;});}})['then'](respondWithResult(_0x370593,0xc9))['catch'](handleError(_0x370593,null));},exports[a903_0x1a0075(0xd1)]=function(_0x3451c9,_0x50220c){const _0x307743=a903_0x1a0075;return _0x3451c9[_0x307743(0xc7)]['id']&&delete _0x3451c9[_0x307743(0xc7)]['id'],db[_0x307743(0x112)]['findOne']({'where':{'id':_0x3451c9[_0x307743(0xf6)]['id']}})['then'](handleEntityNotFound(_0x50220c,null))[_0x307743(0xb9)](saveUpdates(_0x3451c9[_0x307743(0xc7)],null))[_0x307743(0xb9)](respondWithResult(_0x50220c,null))[_0x307743(0xe3)](handleError(_0x50220c,null));},exports[a903_0x1a0075(0xbb)]=function(_0xbf2ee4,_0x54999e){const _0x5531a5=a903_0x1a0075;return db[_0x5531a5(0x112)]['findOne']({'where':{'id':_0xbf2ee4['params']['id']}})[_0x5531a5(0xb9)](handleEntityNotFound(_0x54999e,null))[_0x5531a5(0xb9)](removeEntity(_0x54999e,null))[_0x5531a5(0xe3)](handleError(_0x54999e,null));},exports[a903_0x1a0075(0xf1)]=function(_0xb82648,_0x4f1187){const _0x5629ea=a903_0x1a0075;let _0x4f25b={'raw':![],'where':{}};const _0x41451d={},_0x26304e={'count':0x0,'rows':[]};return db[_0x5629ea(0x112)][_0x5629ea(0xdb)]({'where':{'id':_0xb82648['params']['id']}})[_0x5629ea(0xb9)](handleEntityNotFound(_0x4f1187,null))[_0x5629ea(0xb9)](function(_0x104512){const _0x284d4f=_0x5629ea;if(_0x104512)return _0x41451d[_0x284d4f(0x109)]=_['keys'](db[_0x284d4f(0xc0)][_0x284d4f(0x123)]),_0x41451d[_0x284d4f(0xdc)]=_[_0x284d4f(0x111)](_0xb82648['query']),_0x41451d[_0x284d4f(0xc8)]=_[_0x284d4f(0xf5)](_0x41451d[_0x284d4f(0x109)],_0x41451d['query']),_0x4f25b[_0x284d4f(0x10f)]=_[_0x284d4f(0xf5)](_0x41451d['model'],qs['fields'](_0xb82648[_0x284d4f(0xdc)]['fields'])),_0x4f25b['attributes']=_0x4f25b[_0x284d4f(0x10f)][_0x284d4f(0xbd)]?_0x4f25b[_0x284d4f(0x10f)]:_0x41451d[_0x284d4f(0x109)],typeof _0xb82648[_0x284d4f(0xdc)][_0x284d4f(0x126)]==='undefined'&&(_0x4f25b[_0x284d4f(0x117)]=qs['limit'](_0xb82648[_0x284d4f(0xdc)][_0x284d4f(0x117)]),_0x4f25b[_0x284d4f(0x13a)]=qs[_0x284d4f(0x13a)](_0xb82648[_0x284d4f(0xdc)][_0x284d4f(0x13a)])),_0x4f25b[_0x284d4f(0xbf)]=qs[_0x284d4f(0x10d)](_0xb82648[_0x284d4f(0xdc)][_0x284d4f(0x10d)]),_0x4f25b[_0x284d4f(0xc1)]=qs[_0x284d4f(0xc8)](_[_0x284d4f(0x13d)](_0xb82648[_0x284d4f(0xdc)],_0x41451d[_0x284d4f(0xc8)])),_0x4f25b['where'][_0x284d4f(0xca)]=_0x104512['id'],_0xb82648[_0x284d4f(0xdc)]['filter']&&(_0x4f25b['where']=_[_0x284d4f(0xdf)](_0x4f25b[_0x284d4f(0xc1)],{[Op['or']]:_[_0x284d4f(0xd6)](_0x4f25b[_0x284d4f(0x10f)],function(_0x29fce9){const _0x898bc0=_0x284d4f,_0x54a0cf={};return _0x54a0cf[_0x29fce9]={[Op['like']]:'%'+_0xb82648[_0x898bc0(0xdc)]['filter']+'%'},_0x54a0cf;})})),_0x4f25b=_[_0x284d4f(0xdf)]({},_0x4f25b,_0xb82648['options']),db[_0x284d4f(0xc0)]['count']({'where':_0x4f25b[_0x284d4f(0xc1)]})['then'](function(_0x1342ae){const _0x497df7=_0x284d4f;return _0x26304e['count']=_0x1342ae,_0xb82648[_0x497df7(0xdc)][_0x497df7(0x11e)]&&(_0x4f25b[_0x497df7(0x125)]=[{'all':!![]}]),db[_0x497df7(0xc0)][_0x497df7(0x12e)](_0x4f25b);})[_0x284d4f(0xb9)](function(_0x18b3df){const _0x4714fc=_0x284d4f;return _0x26304e[_0x4714fc(0xe7)]=_0x18b3df,_0x26304e;});})[_0x5629ea(0xb9)](respondWithFilteredResult(_0x4f1187,_0x4f25b))['catch'](handleError(_0x4f1187,null));},exports[a903_0x1a0075(0x118)]=function(_0x185cdb,_0x90bac9){const _0x167475=a903_0x1a0075;let _0x8728f1={'raw':!![],'where':{}};const _0x404e14={},_0x153818={'count':0x0,'rows':[]};return db[_0x167475(0x112)][_0x167475(0xdb)]({'where':{'id':_0x185cdb[_0x167475(0xf6)]['id']}})[_0x167475(0xb9)](handleEntityNotFound(_0x90bac9,null))[_0x167475(0xb9)](function(_0x124fea){const _0x5536e7=_0x167475;if(_0x124fea)return _0x404e14[_0x5536e7(0x109)]=_['keys'](db[_0x5536e7(0xac)][_0x5536e7(0x123)]),_0x404e14[_0x5536e7(0xdc)]=_[_0x5536e7(0x111)](_0x185cdb[_0x5536e7(0xdc)]),_0x404e14[_0x5536e7(0xc8)]=_[_0x5536e7(0xf5)](_0x404e14['model'],_0x404e14[_0x5536e7(0xdc)]),_0x8728f1[_0x5536e7(0x10f)]=_[_0x5536e7(0xf5)](_0x404e14[_0x5536e7(0x109)],qs['fields'](_0x185cdb[_0x5536e7(0xdc)][_0x5536e7(0xb6)])),_0x8728f1[_0x5536e7(0x10f)]=_0x8728f1[_0x5536e7(0x10f)][_0x5536e7(0xbd)]?_0x8728f1['attributes']:_0x404e14[_0x5536e7(0x109)],typeof _0x185cdb[_0x5536e7(0xdc)][_0x5536e7(0x126)]==='undefined'&&(_0x8728f1[_0x5536e7(0x117)]=qs['limit'](_0x185cdb[_0x5536e7(0xdc)][_0x5536e7(0x117)]),_0x8728f1['offset']=qs['offset'](_0x185cdb[_0x5536e7(0xdc)][_0x5536e7(0x13a)])),_0x8728f1[_0x5536e7(0xbf)]=qs[_0x5536e7(0x10d)](_0x185cdb['query'][_0x5536e7(0x10d)]),_0x8728f1[_0x5536e7(0xc1)]=qs[_0x5536e7(0xc8)](_[_0x5536e7(0x13d)](_0x185cdb['query'],_0x404e14[_0x5536e7(0xc8)])),_0x8728f1[_0x5536e7(0xc1)][_0x5536e7(0xca)]=_0x124fea['id'],_0x185cdb[_0x5536e7(0xdc)][_0x5536e7(0xb4)]&&(_0x8728f1[_0x5536e7(0xc1)]=_['merge'](_0x8728f1[_0x5536e7(0xc1)],{[Op['or']]:_[_0x5536e7(0xd6)](_0x8728f1['attributes'],function(_0x3f83ee){const _0x1777cf=_0x5536e7,_0x1a9b2a={};return _0x1a9b2a[_0x3f83ee]={[Op[_0x1777cf(0xf3)]]:'%'+_0x185cdb[_0x1777cf(0xdc)]['filter']+'%'},_0x1a9b2a;})})),_0x8728f1=_[_0x5536e7(0xdf)]({},_0x8728f1,_0x185cdb[_0x5536e7(0xc4)]),db[_0x5536e7(0xac)][_0x5536e7(0x131)]({'where':_0x8728f1[_0x5536e7(0xc1)]})[_0x5536e7(0xb9)](function(_0x250968){const _0x490206=_0x5536e7;return _0x153818[_0x490206(0x131)]=_0x250968,_0x185cdb[_0x490206(0xdc)]['includeAll']&&(_0x8728f1['include']=[{'all':!![]}]),db[_0x490206(0xac)][_0x490206(0x12e)](_0x8728f1);})['then'](function(_0x5dab87){const _0x1d423c=_0x5536e7;return _0x153818[_0x1d423c(0xe7)]=_0x5dab87,_0x153818;});})[_0x167475(0xb9)](respondWithFilteredResult(_0x90bac9,_0x8728f1))[_0x167475(0xe3)](handleError(_0x90bac9,null));},exports[a903_0x1a0075(0xc5)]=function(_0x2710f1,_0x307459){const _0x2dc03a=a903_0x1a0075;let _0x4b2b8c={'raw':!![],'where':{}};const _0x3a3f48={},_0x5a6f46={'count':0x0,'rows':[]};return db[_0x2dc03a(0x112)][_0x2dc03a(0xdb)]({'where':{'id':_0x2710f1[_0x2dc03a(0xf6)]['id']}})[_0x2dc03a(0xb9)](handleEntityNotFound(_0x307459,null))[_0x2dc03a(0xb9)](function(_0x2ef6df){const _0x5678db=_0x2dc03a;if(_0x2ef6df)return _0x3a3f48[_0x5678db(0x109)]=_[_0x5678db(0x111)](db['CmHopperFinal'][_0x5678db(0x123)]),_0x3a3f48['query']=_[_0x5678db(0x111)](_0x2710f1['query']),_0x3a3f48[_0x5678db(0xc8)]=_['intersection'](_0x3a3f48[_0x5678db(0x109)],_0x3a3f48[_0x5678db(0xdc)]),_0x4b2b8c[_0x5678db(0x10f)]=_[_0x5678db(0xf5)](_0x3a3f48['model'],qs[_0x5678db(0xb6)](_0x2710f1['query'][_0x5678db(0xb6)])),_0x4b2b8c[_0x5678db(0x10f)]=_0x4b2b8c[_0x5678db(0x10f)][_0x5678db(0xbd)]?_0x4b2b8c['attributes']:_0x3a3f48['model'],typeof _0x2710f1[_0x5678db(0xdc)][_0x5678db(0x126)]===_0x5678db(0xb2)&&(_0x4b2b8c['limit']=qs[_0x5678db(0x117)](_0x2710f1[_0x5678db(0xdc)][_0x5678db(0x117)]),_0x4b2b8c[_0x5678db(0x13a)]=qs[_0x5678db(0x13a)](_0x2710f1[_0x5678db(0xdc)][_0x5678db(0x13a)])),_0x4b2b8c[_0x5678db(0xbf)]=qs['sort'](_0x2710f1['query'][_0x5678db(0x10d)]),_0x4b2b8c[_0x5678db(0xc1)]=qs[_0x5678db(0xc8)](_[_0x5678db(0x13d)](_0x2710f1[_0x5678db(0xdc)],_0x3a3f48[_0x5678db(0xc8)])),_0x4b2b8c[_0x5678db(0xc1)]['VoiceQueueId']=_0x2ef6df['id'],_0x2710f1[_0x5678db(0xdc)][_0x5678db(0xb4)]&&(_0x4b2b8c['where']=_[_0x5678db(0xdf)](_0x4b2b8c[_0x5678db(0xc1)],{[Op['or']]:_[_0x5678db(0xd6)](_0x4b2b8c['attributes'],function(_0xe916d5){const _0x32248d=_0x5678db,_0x5015de={};return _0x5015de[_0xe916d5]={[Op[_0x32248d(0xf3)]]:'%'+_0x2710f1[_0x32248d(0xdc)]['filter']+'%'},_0x5015de;})})),_0x4b2b8c=_[_0x5678db(0xdf)]({},_0x4b2b8c,_0x2710f1[_0x5678db(0xc4)]),db[_0x5678db(0x107)][_0x5678db(0x131)]({'where':_0x4b2b8c['where']})[_0x5678db(0xb9)](function(_0xf9d2e6){const _0x47fcd9=_0x5678db;return _0x5a6f46[_0x47fcd9(0x131)]=_0xf9d2e6,_0x2710f1[_0x47fcd9(0xdc)][_0x47fcd9(0x11e)]&&(_0x4b2b8c[_0x47fcd9(0x125)]=[{'all':!![]}]),db[_0x47fcd9(0x107)][_0x47fcd9(0x12e)](_0x4b2b8c);})[_0x5678db(0xb9)](function(_0x3e4f4d){return _0x5a6f46['rows']=_0x3e4f4d,_0x5a6f46;});})[_0x2dc03a(0xb9)](respondWithFilteredResult(_0x307459,_0x4b2b8c))['catch'](handleError(_0x307459,null));},exports[a903_0x1a0075(0x114)]=function(_0x4db7de,_0x59bc49){const _0x19fc04=a903_0x1a0075;let _0x44f368={'raw':!![],'where':{}};const _0xc41e4c={},_0x28d6bd={'count':0x0,'rows':[]};return db['VoiceQueue'][_0x19fc04(0xdb)]({'where':{'id':_0x4db7de[_0x19fc04(0xf6)]['id']}})[_0x19fc04(0xb9)](handleEntityNotFound(_0x59bc49,null))[_0x19fc04(0xb9)](function(_0x550d9f){const _0x27ede0=_0x19fc04;if(_0x550d9f)return _0xc41e4c[_0x27ede0(0x109)]=_[_0x27ede0(0x111)](db[_0x27ede0(0xc9)]['rawAttributes']),_0xc41e4c[_0x27ede0(0xdc)]=_[_0x27ede0(0x111)](_0x4db7de['query']),_0xc41e4c['filters']=_[_0x27ede0(0xf5)](_0xc41e4c[_0x27ede0(0x109)],_0xc41e4c[_0x27ede0(0xdc)]),_0x44f368['attributes']=_[_0x27ede0(0xf5)](_0xc41e4c[_0x27ede0(0x109)],qs['fields'](_0x4db7de[_0x27ede0(0xdc)][_0x27ede0(0xb6)])),_0x44f368[_0x27ede0(0x10f)]=_0x44f368[_0x27ede0(0x10f)][_0x27ede0(0xbd)]?_0x44f368['attributes']:_0xc41e4c['model'],typeof _0x4db7de[_0x27ede0(0xdc)][_0x27ede0(0x126)]===_0x27ede0(0xb2)&&(_0x44f368[_0x27ede0(0x117)]=qs[_0x27ede0(0x117)](_0x4db7de[_0x27ede0(0xdc)][_0x27ede0(0x117)]),_0x44f368[_0x27ede0(0x13a)]=qs[_0x27ede0(0x13a)](_0x4db7de[_0x27ede0(0xdc)]['offset'])),_0x44f368[_0x27ede0(0xbf)]=qs[_0x27ede0(0x10d)](_0x4db7de[_0x27ede0(0xdc)]['sort']),_0x44f368[_0x27ede0(0xc1)]=qs[_0x27ede0(0xc8)](_['pick'](_0x4db7de['query'],_0xc41e4c['filters'])),_0x44f368[_0x27ede0(0xc1)][_0x27ede0(0xca)]=_0x550d9f['id'],_0x4db7de[_0x27ede0(0xdc)][_0x27ede0(0xb4)]&&(_0x44f368[_0x27ede0(0xc1)]=_['merge'](_0x44f368[_0x27ede0(0xc1)],{[Op['or']]:_[_0x27ede0(0xd6)](_0x44f368[_0x27ede0(0x10f)],function(_0x2ce0a0){const _0x8cd593=_0x27ede0,_0x522798={};return _0x522798[_0x2ce0a0]={[Op[_0x8cd593(0xf3)]]:'%'+_0x4db7de[_0x8cd593(0xdc)][_0x8cd593(0xb4)]+'%'},_0x522798;})})),_0x44f368=_[_0x27ede0(0xdf)]({},_0x44f368,_0x4db7de['options']),db['CmHopperBlack']['count']({'where':_0x44f368['where']})[_0x27ede0(0xb9)](function(_0x34fa1e){const _0x1e61c8=_0x27ede0;return _0x28d6bd[_0x1e61c8(0x131)]=_0x34fa1e,_0x4db7de[_0x1e61c8(0xdc)][_0x1e61c8(0x11e)]&&(_0x44f368[_0x1e61c8(0x125)]=[{'all':!![]}]),db[_0x1e61c8(0xc9)][_0x1e61c8(0x12e)](_0x44f368);})['then'](function(_0xe04f36){const _0x489349=_0x27ede0;return _0x28d6bd[_0x489349(0xe7)]=_0xe04f36,_0x28d6bd;});})[_0x19fc04(0xb9)](respondWithFilteredResult(_0x59bc49,_0x44f368))[_0x19fc04(0xe3)](handleError(_0x59bc49,null));},exports['getTeams']=function(_0x43f444,_0x1b875e){const _0x42d4b6=a903_0x1a0075;let _0x18b1f9={};const _0x3e5d98={};let _0x1f7296,_0x4ccd0b;return db[_0x42d4b6(0x112)]['findOne']({'where':{'id':_0x43f444['params']['id']}})[_0x42d4b6(0xb9)](handleEntityNotFound(_0x1b875e,null))[_0x42d4b6(0xb9)](function(_0x70c1d4){const _0x233e9d=_0x42d4b6;if(_0x70c1d4)return _0x1f7296=_0x70c1d4,_0x3e5d98[_0x233e9d(0x109)]=_[_0x233e9d(0x111)](db[_0x233e9d(0xe5)][_0x233e9d(0x123)]),_0x3e5d98['query']=_[_0x233e9d(0x111)](_0x43f444[_0x233e9d(0xdc)]),_0x3e5d98['filters']=_[_0x233e9d(0xf5)](_0x3e5d98[_0x233e9d(0x109)],_0x3e5d98['query']),_0x18b1f9[_0x233e9d(0x10f)]=_[_0x233e9d(0xf5)](_0x3e5d98['model'],qs[_0x233e9d(0xb6)](_0x43f444['query']['fields'])),_0x18b1f9[_0x233e9d(0x10f)]=_0x18b1f9[_0x233e9d(0x10f)][_0x233e9d(0xbd)]?_0x18b1f9[_0x233e9d(0x10f)]:_0x3e5d98[_0x233e9d(0x109)],_0x18b1f9['order']=qs['sort'](_0x43f444['query'][_0x233e9d(0x10d)]),_0x18b1f9[_0x233e9d(0xc1)]=qs[_0x233e9d(0xc8)](_[_0x233e9d(0x13d)](_0x43f444[_0x233e9d(0xdc)],_0x3e5d98[_0x233e9d(0xc8)])),_0x43f444[_0x233e9d(0xdc)][_0x233e9d(0xb4)]&&(_0x18b1f9[_0x233e9d(0xc1)]=_['merge'](_0x18b1f9[_0x233e9d(0xc1)],{[Op['or']]:_[_0x233e9d(0xd6)](_0x18b1f9['attributes'],function(_0x3fb76e){const _0xa5b45=_0x233e9d,_0x573fa6={};return _0x573fa6[_0x3fb76e]={[Op[_0xa5b45(0xf3)]]:'%'+_0x43f444[_0xa5b45(0xdc)][_0xa5b45(0xb4)]+'%'},_0x573fa6;})})),_0x18b1f9=_[_0x233e9d(0xdf)]({},_0x18b1f9,_0x43f444[_0x233e9d(0xc4)]),_0x1f7296[_0x233e9d(0x140)](_0x18b1f9);})['then'](function(_0x1e2c30){const _0x1e8e96=_0x42d4b6;if(_0x1e2c30)return _0x4ccd0b=_0x1e2c30['length'],typeof _0x43f444[_0x1e8e96(0xdc)]['nolimit']===_0x1e8e96(0xb2)&&(_0x18b1f9[_0x1e8e96(0x117)]=qs[_0x1e8e96(0x117)](_0x43f444[_0x1e8e96(0xdc)][_0x1e8e96(0x117)]),_0x18b1f9['offset']=qs[_0x1e8e96(0x13a)](_0x43f444[_0x1e8e96(0xdc)][_0x1e8e96(0x13a)])),_0x1f7296[_0x1e8e96(0x140)](_0x18b1f9);})[_0x42d4b6(0xb9)](function(_0x5a4c36){if(_0x5a4c36)return _0x5a4c36?{'count':_0x4ccd0b,'rows':_0x5a4c36}:null;})[_0x42d4b6(0xb9)](respondWithResult(_0x1b875e,null))[_0x42d4b6(0xe3)](handleError(_0x1b875e,null));},exports[a903_0x1a0075(0xb8)]=function(_0x6ff43d,_0x4a608d){const _0x44edc9=a903_0x1a0075,_0x1b0002=_0x6ff43d[_0x44edc9(0xc7)][_0x44edc9(0xee)],_0x3e691b=_[_0x44edc9(0xd6)](_0x1b0002,'id');return db[_0x44edc9(0xe5)][_0x44edc9(0x12e)]({'where':{'id':_0x3e691b},'attributes':['id'],'include':[{'model':db[_0x44edc9(0xb7)],'as':'Agents','attributes':['id','name',_0x44edc9(0x12d),'voicePause',_0x44edc9(0xc3)],'raw':!![]}]})['then'](function(_0x15f0a0){const _0x33636f=_0x44edc9;if(_0x15f0a0){const _0x3207c9=_[_0x33636f(0xcf)](_0x15f0a0,function(_0x355602){const _0x5b6ca2=_0x33636f,_0x5c100b=_0x355602[_0x5b6ca2(0x128)]({'plain':!![]});return _0x5c100b[_0x5b6ca2(0x100)]['forEach'](function(_0x1a3c7f){const _0x1ca113=_0x5b6ca2;_0x1a3c7f[_0x1ca113(0x137)]=_[_0x1ca113(0xf7)](_0x1b0002,{'id':_0x5c100b['id']})[_0x1ca113(0x137)];}),_0x5c100b['Agents'];});return db[_0x33636f(0x112)]['findOne']({'where':{'id':_0x6ff43d[_0x33636f(0xf6)]['id']}})[_0x33636f(0xb9)](function(_0x42a5b7){const _0x1d782d=_0x33636f;return db[_0x1d782d(0xec)][_0x1d782d(0x136)](function(_0x2bc235){const _0x354bf1=_0x1d782d;return _0x42a5b7['addTeams'](_0x3e691b,{'transaction':_0x2bc235})[_0x354bf1(0xb9)](function(){const _0x32b4d4=_0x354bf1,_0x526095=_0x3207c9[_0x32b4d4(0xd6)](_0x3d3185=>{const _0x22b011=_0x32b4d4;return db['UserVoiceQueue'][_0x22b011(0x134)]({'where':{'UserId':_0x3d3185['id'],'VoiceQueueId':_0x6ff43d[_0x22b011(0xf6)]['id']},'defaults':{'penalty':_0x3d3185[_0x22b011(0x137)]},'transaction':_0x2bc235});});return Promise['all'](_0x526095);})[_0x354bf1(0xb9)](function(){const _0xdb999b=_0x354bf1,_0x4366a7=_[_0xdb999b(0xb4)](_0x3207c9,{'online':!![]}),_0x5f6a85=_0x4366a7[_0xdb999b(0xd6)](_0x5bec68=>{const _0x143dbf=_0xdb999b;return db[_0x143dbf(0xf4)][_0x143dbf(0xaa)]({'membername':_0x5bec68['name'],'UserId':_0x5bec68['id'],'queue_name':_0x42a5b7[_0x143dbf(0x13b)],'VoiceQueueId':_0x42a5b7['id'],'interface':_[_0x143dbf(0x133)](_0x5bec68[_0x143dbf(0xc3)])?util[_0x143dbf(0xe4)](_0x143dbf(0x129),_0x5bec68[_0x143dbf(0x13b)]):_0x5bec68[_0x143dbf(0xc3)],'paused':_0x5bec68['voicePause']||![],'penalty':_0x5bec68[_0x143dbf(0x137)]},{'transaction':_0x2bc235});});return Promise[_0xdb999b(0x116)](_0x5f6a85);})[_0x354bf1(0xb9)](function(){const _0xbfcce3=_0x354bf1;_0x3207c9[_0xbfcce3(0xd8)](function(_0x272257){socket['emit']('userVoiceQueue:save',{'UserId':_0x272257['id'],'VoiceQueueId':_0x42a5b7['id']});});});});});}})[_0x44edc9(0xb9)](respondWithStatusCode(_0x4a608d,null))[_0x44edc9(0xe3)](handleError(_0x4a608d,null));},exports['removeTeams']=function(_0x5199f1,_0x4d225a){const _0x25cf66=a903_0x1a0075;return db['Team'][_0x25cf66(0x12e)]({'where':{'id':_0x5199f1[_0x25cf66(0xdc)][_0x25cf66(0xaf)]},'attributes':['id'],'include':[{'model':db[_0x25cf66(0xb7)],'as':_0x25cf66(0x100),'attributes':['id'],'raw':!![]}]})[_0x25cf66(0xb9)](handleEntityNotFound(_0x4d225a,null))[_0x25cf66(0xb9)](function(_0x1f8957){const _0x5b1ce7=_0x25cf66,_0x574550=_['map'](_0x1f8957,'id');let _0x223bfb=[];const _0x15d7bb=[],_0x529df8=squel[_0x5b1ce7(0xd3)]();_0x529df8[_0x5b1ce7(0x110)]('tq.TeamId')[_0x5b1ce7(0xea)](_0x5b1ce7(0x142),'tq')[_0x5b1ce7(0xb0)](_0x5b1ce7(0x139),'ut','ut.TeamId\x20=\x20tq.TeamId')[_0x5b1ce7(0xc1)](_0x5b1ce7(0xd5),_0x5199f1['params']['id']);for(let _0x3290b3=0x0;_0x3290b3<_0x1f8957[_0x5b1ce7(0xbd)];_0x3290b3+=0x1){const _0xb6694c=_0x1f8957[_0x3290b3];for(let _0x44af8c=0x0;_0x44af8c<_0xb6694c[_0x5b1ce7(0x100)][_0x5b1ce7(0xbd)];_0x44af8c+=0x1){const _0x42bf8e=_0xb6694c[_0x5b1ce7(0x100)][_0x44af8c],_0x1ddb66=_0x529df8[_0x5b1ce7(0xad)]();_0x1ddb66[_0x5b1ce7(0xc1)](_0x5b1ce7(0xb1),_0x42bf8e['id']),_0x15d7bb[_0x5b1ce7(0xe0)](db[_0x5b1ce7(0xec)][_0x5b1ce7(0xdc)](_0x1ddb66['toString'](),{'type':QueryTypes[_0x5b1ce7(0x113)]})['then'](function(_0x197bac){const _0x45e1f7=_0x5b1ce7;if(_0x197bac['length']===0x1)return _0x42bf8e['id'];else{const _0x313994=_[_0x45e1f7(0xde)](_[_0x45e1f7(0xd6)](_0x197bac,_0x45e1f7(0xb3)),function(_0x3aa447){const _0x49f31e=_0x45e1f7;return _[_0x49f31e(0xfa)](_0x574550,_0x3aa447);});if(_0x313994)return _0x42bf8e['id'];}}));}}return Promise[_0x5b1ce7(0x116)](_0x15d7bb)['then'](function(_0x52e230){const _0x8e5a75=_0x5b1ce7;return _0x223bfb=_(_0x223bfb)['union'](_0x52e230)[_0x8e5a75(0x12f)]()[_0x8e5a75(0xa6)](),db['VoiceQueue']['findOne']({'where':{'id':_0x5199f1[_0x8e5a75(0xf6)]['id']}})[_0x8e5a75(0xb9)](function(_0x27ea52){const _0x5dfd3b=_0x8e5a75;return db[_0x5dfd3b(0xec)][_0x5dfd3b(0x136)](function(_0x2c7780){const _0x118ef0=_0x5dfd3b;return _0x27ea52[_0x118ef0(0x121)](_0x5199f1[_0x118ef0(0xdc)]['ids'],{'transaction':_0x2c7780})['then'](function(){const _0x2bf8c4=_0x118ef0;if(!_[_0x2bf8c4(0x104)](_0x223bfb))return _0x27ea52[_0x2bf8c4(0xed)](_0x223bfb,{'transaction':_0x2c7780})['then'](function(){const _0x6ec6a1=_0x2bf8c4;return db[_0x6ec6a1(0xf4)][_0x6ec6a1(0xbb)]({'where':{'VoiceQueueId':_0x5199f1['params']['id'],'UserId':_0x223bfb},'transaction':_0x2c7780});});})['then'](function(){_0x223bfb['forEach'](function(_0x4e41cb){const _0x2486ec=a903_0x2d82;socket[_0x2486ec(0xcc)](_0x2486ec(0xfc),{'UserId':_0x4e41cb,'VoiceQueueId':_0x27ea52['id']});});});});});});})[_0x25cf66(0xb9)](respondWithStatusCode(_0x4d225a,null))['catch'](handleError(_0x4d225a,null));},exports[a903_0x1a0075(0xa5)]=function(_0x772b94,_0x160077){const _0x3e74b1=a903_0x1a0075;let _0x7f6a91,_0x336923;return db[_0x3e74b1(0x112)][_0x3e74b1(0xdb)]({'where':{'id':_0x772b94[_0x3e74b1(0xf6)]['id']}})[_0x3e74b1(0xb9)](function(_0x18aec2){const _0x539c66=_0x3e74b1;if(_0x18aec2)return _0x336923=_0x18aec2,_0x18aec2[_0x539c66(0xa5)](_0x772b94[_0x539c66(0xc7)][_0x539c66(0xaf)],{'through':_['omit'](_0x772b94[_0x539c66(0xc7)],[_0x539c66(0xaf),'id'])})[_0x539c66(0xb9)](function(_0x135e36){const _0x37be37=_0x539c66;for(let _0x3f2c1e=0x0;_0x3f2c1e<_0x772b94[_0x37be37(0xc7)][_0x37be37(0xaf)]['length'];_0x3f2c1e+=0x1){socket[_0x37be37(0xcc)]('userVoiceQueue:save',{'UserId':_0x772b94[_0x37be37(0xc7)]['ids'][_0x3f2c1e],'VoiceQueueId':_0x772b94[_0x37be37(0xf6)]['id']});}return _0x135e36;});})['then'](function(_0x7a8341){const _0xef387b=_0x3e74b1;_0x7f6a91=_0x7a8341||[];if(_0x336923)return db[_0xef387b(0xb7)][_0xef387b(0x12e)]({'where':{'id':_0x772b94[_0xef387b(0xc7)][_0xef387b(0xaf)]},'attributes':['id',_0xef387b(0x13b),'online','voicePause',_0xef387b(0xc3)],'raw':!![]});})[_0x3e74b1(0xb9)](function(_0x14271d){const _0x14789b=_0x3e74b1;if(!_['isEmpty'](_0x14271d)){const _0xd7a73e=[];for(let _0x4e9d12=0x0;_0x4e9d12<_0x14271d[_0x14789b(0xbd)];_0x4e9d12++){_0x14271d[_0x4e9d12]['online']&&_0xd7a73e[_0x14789b(0xe0)](db[_0x14789b(0xf4)][_0x14789b(0xaa)]({'membername':_0x14271d[_0x4e9d12][_0x14789b(0x13b)],'UserId':_0x14271d[_0x4e9d12]['id'],'queue_name':_0x336923[_0x14789b(0x13b)],'VoiceQueueId':_0x336923['id'],'interface':_[_0x14789b(0x133)](_0x14271d[_0x4e9d12][_0x14789b(0xc3)])?util[_0x14789b(0xe4)]('SIP/%s',_0x14271d[_0x4e9d12]['name']):_0x14271d[_0x4e9d12][_0x14789b(0xc3)],'paused':_0x14271d[_0x4e9d12][_0x14789b(0xf0)]||![],'penalty':_0x772b94[_0x14789b(0xc7)][_0x14789b(0x137)]||0x0}));}return Promise[_0x14789b(0x116)](_0xd7a73e);}})['then'](function(){return _0x7f6a91;})['then'](respondWithResult(_0x160077,null))[_0x3e74b1(0xe3)](handleError(_0x160077,null));},exports[a903_0x1a0075(0xed)]=function(_0x2480bb,_0x3f59f6){const _0x6c7daf=a903_0x1a0075;return db['VoiceQueue'][_0x6c7daf(0xdb)]({'where':{'id':_0x2480bb[_0x6c7daf(0xf6)]['id']}})['then'](handleEntityNotFound(_0x3f59f6,null))['then'](function(_0x5d8423){const _0x318b76=_0x6c7daf;if(_0x5d8423)return _0x5d8423[_0x318b76(0xed)](_0x2480bb[_0x318b76(0xdc)][_0x318b76(0xaf)])[_0x318b76(0xb9)](function(){const _0xacfc89=_0x318b76;if(_[_0xacfc89(0x108)](_0x2480bb[_0xacfc89(0xdc)][_0xacfc89(0xaf)]))for(let _0x4d4abd=0x0;_0x4d4abd<_0x2480bb[_0xacfc89(0xdc)]['ids'][_0xacfc89(0xbd)];_0x4d4abd+=0x1){socket['emit'](_0xacfc89(0xfc),{'UserId':Number(_0x2480bb[_0xacfc89(0xdc)][_0xacfc89(0xaf)][_0x4d4abd]),'VoiceQueueId':Number(_0x2480bb[_0xacfc89(0xf6)]['id'])});}else socket[_0xacfc89(0xcc)](_0xacfc89(0xfc),{'UserId':Number(_0x2480bb[_0xacfc89(0xdc)]['ids']),'VoiceQueueId':Number(_0x2480bb['params']['id'])});});})[_0x6c7daf(0xb9)](function(_0x2005c0){const _0x4dd734=_0x6c7daf;return db['UserVoiceQueueRt'][_0x4dd734(0xbb)]({'where':{'VoiceQueueId':_0x2480bb[_0x4dd734(0xf6)]['id'],'UserId':_0x2480bb[_0x4dd734(0xdc)][_0x4dd734(0xaf)]}})[_0x4dd734(0xb9)](function(){return _0x2005c0;});})[_0x6c7daf(0xb9)](respondWithStatusCode(_0x3f59f6,null))[_0x6c7daf(0xe3)](handleError(_0x3f59f6,null));},exports[a903_0x1a0075(0xda)]=function(_0x50c94c,_0x1c9d4f){const _0x165d8d=a903_0x1a0075;let _0x46f24e={};const _0x1c54bb={};let _0x252d4f,_0x347201;return db[_0x165d8d(0x112)][_0x165d8d(0xdb)]({'where':{'id':_0x50c94c['params']['id']}})['then'](handleEntityNotFound(_0x1c9d4f,null))[_0x165d8d(0xb9)](function(_0x45540a){const _0xa9bff3=_0x165d8d;if(_0x45540a)return _0x252d4f=_0x45540a,_0x1c54bb[_0xa9bff3(0x109)]=_[_0xa9bff3(0x111)](db['User'][_0xa9bff3(0x123)]),_0x1c54bb[_0xa9bff3(0xdc)]=_['keys'](_0x50c94c[_0xa9bff3(0xdc)]),_0x1c54bb[_0xa9bff3(0xc8)]=_[_0xa9bff3(0xf5)](_0x1c54bb[_0xa9bff3(0x109)],_0x1c54bb[_0xa9bff3(0xdc)]),_0x46f24e[_0xa9bff3(0x10f)]=_['intersection'](_0x1c54bb[_0xa9bff3(0x109)],qs[_0xa9bff3(0xb6)](_0x50c94c[_0xa9bff3(0xdc)][_0xa9bff3(0xb6)])),_0x46f24e[_0xa9bff3(0x10f)]=_0x46f24e[_0xa9bff3(0x10f)][_0xa9bff3(0xbd)]?_0x46f24e[_0xa9bff3(0x10f)]:_0x1c54bb[_0xa9bff3(0x109)],_0x46f24e['order']=qs[_0xa9bff3(0x10d)](_0x50c94c[_0xa9bff3(0xdc)][_0xa9bff3(0x10d)]),_0x46f24e[_0xa9bff3(0xc1)]=qs['filters'](_['pick'](_0x50c94c['query'],_0x1c54bb['filters'])),_0x50c94c[_0xa9bff3(0xdc)][_0xa9bff3(0xb4)]&&(_0x46f24e[_0xa9bff3(0xc1)]=_[_0xa9bff3(0xdf)](_0x46f24e['where'],{[Op['or']]:_[_0xa9bff3(0xd6)](_0x46f24e[_0xa9bff3(0x10f)],function(_0x1c474c){const _0x532779=_0xa9bff3,_0x44c680={};return _0x44c680[_0x1c474c]={[Op['like']]:'%'+_0x50c94c[_0x532779(0xdc)][_0x532779(0xb4)]+'%'},_0x44c680;})})),_0x46f24e=_[_0xa9bff3(0xdf)]({},_0x46f24e,_0x50c94c[_0xa9bff3(0xc4)]),_0x252d4f[_0xa9bff3(0xda)](_0x46f24e);})[_0x165d8d(0xb9)](function(_0x420cac){const _0xb9df24=_0x165d8d;if(_0x420cac)return _0x347201=_0x420cac[_0xb9df24(0xbd)],typeof _0x50c94c['query']['nolimit']===_0xb9df24(0xb2)&&(_0x46f24e[_0xb9df24(0x117)]=qs[_0xb9df24(0x117)](_0x50c94c[_0xb9df24(0xdc)][_0xb9df24(0x117)]),_0x46f24e[_0xb9df24(0x13a)]=qs[_0xb9df24(0x13a)](_0x50c94c[_0xb9df24(0xdc)]['offset'])),_0x252d4f[_0xb9df24(0xda)](_0x46f24e);})[_0x165d8d(0xb9)](function(_0x17c79e){if(_0x17c79e)return _0x17c79e?{'count':_0x347201,'rows':_0x17c79e}:null;})[_0x165d8d(0xb9)](respondWithResult(_0x1c9d4f,null))[_0x165d8d(0xe3)](handleError(_0x1c9d4f,null));},exports['getMembers']=function(_0x2d8428,_0xda7e85){const _0x298c94=a903_0x1a0075;let _0x18b983={};const _0x2a3af9={};let _0x2771bf,_0x5b0b2c;return db[_0x298c94(0x112)]['findOne']({'where':{'id':_0x2d8428['params']['id']}})['then'](handleEntityNotFound(_0xda7e85,null))['then'](function(_0x257e89){const _0x2965d1=_0x298c94;if(_0x257e89)return _0x2771bf=_0x257e89,_0x2a3af9[_0x2965d1(0x109)]=_[_0x2965d1(0x111)](db[_0x2965d1(0xf4)]['rawAttributes']),_0x2a3af9[_0x2965d1(0xdc)]=_[_0x2965d1(0x111)](_0x2d8428[_0x2965d1(0xdc)]),_0x2a3af9[_0x2965d1(0xc8)]=_[_0x2965d1(0xf5)](_0x2a3af9[_0x2965d1(0x109)],_0x2a3af9[_0x2965d1(0xdc)]),_0x18b983[_0x2965d1(0x10f)]=_['intersection'](_0x2a3af9['model'],qs[_0x2965d1(0xb6)](_0x2d8428[_0x2965d1(0xdc)]['fields'])),_0x18b983[_0x2965d1(0x10f)]=_0x18b983[_0x2965d1(0x10f)]['length']?_0x18b983[_0x2965d1(0x10f)]:_0x2a3af9['model'],_0x18b983['order']=qs[_0x2965d1(0x10d)](_0x2d8428[_0x2965d1(0xdc)]['sort']),_0x18b983[_0x2965d1(0xc1)]=qs[_0x2965d1(0xc8)](_[_0x2965d1(0x13d)](_0x2d8428[_0x2965d1(0xdc)],_0x2a3af9[_0x2965d1(0xc8)])),_0x2d8428['query'][_0x2965d1(0xb4)]&&(_0x18b983[_0x2965d1(0xc1)]=_['merge'](_0x18b983[_0x2965d1(0xc1)],{[Op['or']]:_[_0x2965d1(0xd6)](_0x18b983[_0x2965d1(0x10f)],function(_0x49aff1){const _0x1efe7e=_0x2965d1,_0x5ad1f2={};return _0x5ad1f2[_0x49aff1]={[Op[_0x1efe7e(0xf3)]]:'%'+_0x2d8428[_0x1efe7e(0xdc)][_0x1efe7e(0xb4)]+'%'},_0x5ad1f2;})})),_0x18b983=_[_0x2965d1(0xdf)]({},_0x18b983,_0x2d8428[_0x2965d1(0xc4)]),_0x2771bf[_0x2965d1(0x12b)](_0x18b983);})[_0x298c94(0xb9)](function(_0x49d415){const _0x3b9bf3=_0x298c94;if(_0x49d415)return _0x5b0b2c=_0x49d415[_0x3b9bf3(0xbd)],typeof _0x2d8428[_0x3b9bf3(0xdc)][_0x3b9bf3(0x126)]===_0x3b9bf3(0xb2)&&(_0x18b983['limit']=qs['limit'](_0x2d8428[_0x3b9bf3(0xdc)][_0x3b9bf3(0x117)]),_0x18b983[_0x3b9bf3(0x13a)]=qs[_0x3b9bf3(0x13a)](_0x2d8428[_0x3b9bf3(0xdc)][_0x3b9bf3(0x13a)])),_0x2771bf[_0x3b9bf3(0x12b)](_0x18b983);})['then'](function(_0xf48218){return _0xf48218?{'count':_0x5b0b2c,'rows':_0xf48218}:null;})[_0x298c94(0xb9)](respondWithResult(_0xda7e85,null))[_0x298c94(0xe3)](handleError(_0xda7e85,null));},exports[a903_0x1a0075(0xe2)]=function(_0xd1145a,_0x3751ea){const _0x489dc3=a903_0x1a0075;let _0x523aa7={};const _0x5983ee={};let _0x207902,_0xfc151f;return db[_0x489dc3(0x112)]['findOne']({'where':{'id':_0xd1145a['params']['id']}})[_0x489dc3(0xb9)](handleEntityNotFound(_0x3751ea,null))[_0x489dc3(0xb9)](function(_0xccc678){const _0x587396=_0x489dc3;if(_0xccc678)return _0x207902=_0xccc678,_0x5983ee[_0x587396(0x109)]=_[_0x587396(0x111)](db[_0x587396(0xd9)][_0x587396(0x123)]),_0x5983ee[_0x587396(0xdc)]=_['keys'](_0xd1145a[_0x587396(0xdc)]),_0x5983ee[_0x587396(0xc8)]=_['intersection'](_0x5983ee[_0x587396(0x109)],_0x5983ee[_0x587396(0xdc)]),_0x523aa7[_0x587396(0x10f)]=_['intersection'](_0x5983ee[_0x587396(0x109)],qs[_0x587396(0xb6)](_0xd1145a[_0x587396(0xdc)]['fields'])),_0x523aa7[_0x587396(0x10f)]=_0x523aa7['attributes'][_0x587396(0xbd)]?_0x523aa7[_0x587396(0x10f)]:_0x5983ee[_0x587396(0x109)],_0x523aa7[_0x587396(0xbf)]=qs[_0x587396(0x10d)](_0xd1145a['query'][_0x587396(0x10d)]),_0x523aa7[_0x587396(0xc1)]=qs['filters'](_[_0x587396(0x13d)](_0xd1145a[_0x587396(0xdc)],_0x5983ee[_0x587396(0xc8)])),_0xd1145a['query'][_0x587396(0xb4)]&&(_0x523aa7[_0x587396(0xc1)]=_[_0x587396(0xdf)](_0x523aa7[_0x587396(0xc1)],{[Op['or']]:_[_0x587396(0xd6)](_0x523aa7['attributes'],function(_0x260453){const _0xbebe65=_0x587396,_0x463a4b={};return _0x463a4b[_0x260453]={[Op[_0xbebe65(0xf3)]]:'%'+_0xd1145a[_0xbebe65(0xdc)]['filter']+'%'},_0x463a4b;})})),_0x523aa7=_[_0x587396(0xdf)]({},_0x523aa7,_0xd1145a[_0x587396(0xc4)]),_0x207902['getLists'](_0x523aa7);})['then'](function(_0x39c43c){const _0x278ca4=_0x489dc3;if(_0x39c43c)return _0xfc151f=_0x39c43c[_0x278ca4(0xbd)],typeof _0xd1145a[_0x278ca4(0xdc)][_0x278ca4(0x126)]==='undefined'&&(_0x523aa7['limit']=qs[_0x278ca4(0x117)](_0xd1145a[_0x278ca4(0xdc)][_0x278ca4(0x117)]),_0x523aa7[_0x278ca4(0x13a)]=qs[_0x278ca4(0x13a)](_0xd1145a['query'][_0x278ca4(0x13a)])),_0x207902[_0x278ca4(0xe2)](_0x523aa7);})[_0x489dc3(0xb9)](function(_0x4127bb){if(_0x4127bb)return _0x4127bb?{'count':_0xfc151f,'rows':_0x4127bb}:null;})[_0x489dc3(0xb9)](respondWithResult(_0x3751ea,null))[_0x489dc3(0xe3)](handleError(_0x3751ea,null));},exports['addLists']=function(_0x5e7e63,_0x384890){const _0x2d1e06=a903_0x1a0075;let _0x547133,_0x2b1473;return db[_0x2d1e06(0x112)]['findOne']({'where':{'id':_0x5e7e63['params']['id']}})[_0x2d1e06(0xb9)](handleEntityNotFound(_0x384890,null))['then'](function(_0x26e350){const _0x16c4ae=_0x2d1e06;if(_0x26e350)return _0x2b1473=_0x26e350,_0x26e350[_0x16c4ae(0x12c)](_0x5e7e63[_0x16c4ae(0xc7)][_0x16c4ae(0xaf)],{'through':_[_0x16c4ae(0x132)](_0x5e7e63[_0x16c4ae(0xc7)],[_0x16c4ae(0xaf),'id'])});return null;})[_0x2d1e06(0xb9)](function(_0x59d18e){const _0x24fd68=_0x2d1e06;let _0x52ed98;_0x547133=_0x59d18e||[];const _0x3a2431=[];if(_0x59d18e){for(let _0x5476ea=0x0;_0x5476ea<_0x59d18e[_0x24fd68(0xbd)];_0x5476ea+=0x1){const _0x440a7b=_0x59d18e[_0x5476ea][_0x24fd68(0x128)]({'plain':!![]});_0x2b1473['dialCheckDuplicateType']=_0x5e7e63['body']['dialCheckDuplicateType']?_0x5e7e63[_0x24fd68(0xc7)]['dialCheckDuplicateType']:_0x2b1473[_0x24fd68(0x138)];switch(_0x2b1473[_0x24fd68(0x138)]){case'always':_0x52ed98=squel[_0x24fd68(0xce)]()[_0x24fd68(0x11b)](_0x24fd68(0x11a))[_0x24fd68(0xd4)]([_0x24fd68(0x127),_0x24fd68(0x13e),'ContactId',_0x24fd68(0x130),_0x24fd68(0xca),_0x24fd68(0xc6),'updatedAt'],squel[_0x24fd68(0xd3)]()[_0x24fd68(0x110)](_0x24fd68(0x127),_0x24fd68(0x127))['field'](_0x24fd68(0xa8),_0x24fd68(0x13e))[_0x24fd68(0x110)]('id',_0x24fd68(0xd0))[_0x24fd68(0x110)](_0x440a7b[_0x24fd68(0xfe)][_0x24fd68(0x115)](),_0x24fd68(0x130))['field'](_0x5e7e63[_0x24fd68(0xf6)]['id'][_0x24fd68(0x115)](),_0x24fd68(0xca))[_0x24fd68(0x110)](_0x24fd68(0xa8),_0x24fd68(0xc6))[_0x24fd68(0x110)](_0x24fd68(0xa8),_0x24fd68(0xe1))[_0x24fd68(0xea)]('cm_contacts')['where'](_0x24fd68(0xab))[_0x24fd68(0xc1)](_0x24fd68(0xbe),_0x440a7b[_0x24fd68(0xfe)]['toString']())[_0x24fd68(0xc1)](_0x24fd68(0xe9))[_0x24fd68(0xc1)](_0x24fd68(0x13f),squel[_0x24fd68(0xd3)]()[_0x24fd68(0x110)](_0x24fd68(0xcd))[_0x24fd68(0xea)]('cm_hopper_final')['where'](_0x24fd68(0xd5),_0x5e7e63[_0x24fd68(0xf6)]['id'][_0x24fd68(0x115)]()))[_0x24fd68(0xc1)]('phone\x20NOT\x20IN\x20(?)',squel['select']()['field']('COALESCE(phone,\x27\x27)')[_0x24fd68(0xea)]('cm_hopper')[_0x24fd68(0xc1)]('VoiceQueueId\x20=\x20?',_0x5e7e63['params']['id'][_0x24fd68(0x115)]())))[_0x24fd68(0x115)]();break;case'onlyIfOpen':_0x52ed98=squel[_0x24fd68(0xce)]()['into'](_0x24fd68(0x11a))[_0x24fd68(0xd4)]([_0x24fd68(0x127),'scheduledAt',_0x24fd68(0xd0),_0x24fd68(0x130),_0x24fd68(0xca),'createdAt','updatedAt'],squel['select']()[_0x24fd68(0x110)]('phone',_0x24fd68(0x127))[_0x24fd68(0x110)](_0x24fd68(0xa8),'scheduledAt')['field']('id',_0x24fd68(0xd0))[_0x24fd68(0x110)](_0x440a7b['CmListId'][_0x24fd68(0x115)](),_0x24fd68(0x130))[_0x24fd68(0x110)](_0x5e7e63[_0x24fd68(0xf6)]['id'][_0x24fd68(0x115)](),'VoiceQueueId')['field'](_0x24fd68(0xa8),_0x24fd68(0xc6))[_0x24fd68(0x110)](_0x24fd68(0xa8),_0x24fd68(0xe1))[_0x24fd68(0xea)](_0x24fd68(0x11f))[_0x24fd68(0xc1)](_0x24fd68(0xab))[_0x24fd68(0xc1)](_0x24fd68(0xbe),_0x440a7b[_0x24fd68(0xfe)]['toString']())[_0x24fd68(0xc1)](_0x24fd68(0xe9))[_0x24fd68(0xc1)]('phone\x20NOT\x20IN\x20(?)',squel['select']()[_0x24fd68(0x110)](_0x24fd68(0xba))[_0x24fd68(0xea)](_0x24fd68(0x11a))['where'](_0x24fd68(0xd5),_0x5e7e63[_0x24fd68(0xf6)]['id'][_0x24fd68(0x115)]())))[_0x24fd68(0x115)]();break;default:_0x52ed98=squel['insert']()['into'](_0x24fd68(0x11a))[_0x24fd68(0xd4)]([_0x24fd68(0x127),_0x24fd68(0x13e),_0x24fd68(0xd0),_0x24fd68(0x130),_0x24fd68(0xca),_0x24fd68(0xc6),_0x24fd68(0xe1)],squel[_0x24fd68(0xd3)]()[_0x24fd68(0x110)](_0x24fd68(0x127),_0x24fd68(0x127))['field'](_0x24fd68(0xa8),_0x24fd68(0x13e))['field']('id',_0x24fd68(0xd0))[_0x24fd68(0x110)](_0x440a7b[_0x24fd68(0xfe)][_0x24fd68(0x115)](),_0x24fd68(0x130))[_0x24fd68(0x110)](_0x5e7e63[_0x24fd68(0xf6)]['id'][_0x24fd68(0x115)](),_0x24fd68(0xca))[_0x24fd68(0x110)]('NOW()',_0x24fd68(0xc6))[_0x24fd68(0x110)](_0x24fd68(0xa8),_0x24fd68(0xe1))[_0x24fd68(0xea)]('cm_contacts')[_0x24fd68(0xc1)](_0x24fd68(0xab))['where']('ListId\x20=\x20?',_0x440a7b[_0x24fd68(0xfe)][_0x24fd68(0x115)]())[_0x24fd68(0xc1)](_0x24fd68(0xe9)))[_0x24fd68(0x115)]();}_0x3a2431[_0x24fd68(0xe0)](db['sequelize'][_0x24fd68(0xdc)](_0x52ed98));}return Promise['all'](_0x3a2431);}})[_0x2d1e06(0xb9)](function(){return _0x547133;})[_0x2d1e06(0xb9)](respondWithResult(_0x384890,null))[_0x2d1e06(0xe3)](handleError(_0x384890,null));},exports[a903_0x1a0075(0x119)]=function(_0x4c1f04,_0x138b55){const _0x454699=a903_0x1a0075;return db[_0x454699(0x112)]['findOne']({'where':{'id':_0x4c1f04[_0x454699(0xf6)]['id']}})[_0x454699(0xb9)](handleEntityNotFound(_0x138b55,null))[_0x454699(0xb9)](function(_0x44bfb9){const _0x34c824=_0x454699;if(_0x44bfb9)return _0x44bfb9[_0x34c824(0x119)](_0x4c1f04['query'][_0x34c824(0xaf)]);})[_0x454699(0xb9)](function(_0x2a4d7b){const _0x537329=_0x454699;if(_0x2a4d7b)return db[_0x537329(0xc0)]['destroy']({'where':{'ListId':_0x4c1f04['query'][_0x537329(0xaf)],'VoiceQueueId':_0x4c1f04[_0x537329(0xf6)]['id']}})[_0x537329(0xb9)](function(){return _0x2a4d7b;});})[_0x454699(0xb9)](respondWithStatusCode(_0x138b55,null))['catch'](handleError(_0x138b55,null));},exports[a903_0x1a0075(0xf2)]=function(_0x560645,_0x48ab25){const _0x12008a=a903_0x1a0075;let _0x44afe6={};const _0x809913={};let _0x190a4a,_0x36d958;return db[_0x12008a(0x112)][_0x12008a(0xdb)]({'where':{'id':_0x560645[_0x12008a(0xf6)]['id']}})[_0x12008a(0xb9)](handleEntityNotFound(_0x48ab25,null))[_0x12008a(0xb9)](function(_0x5769e5){const _0x22bcb9=_0x12008a;if(_0x5769e5)return _0x190a4a=_0x5769e5,_0x809913[_0x22bcb9(0x109)]=_['keys'](db[_0x22bcb9(0xd9)]['rawAttributes']),_0x809913['query']=_['keys'](_0x560645[_0x22bcb9(0xdc)]),_0x809913['filters']=_[_0x22bcb9(0xf5)](_0x809913[_0x22bcb9(0x109)],_0x809913[_0x22bcb9(0xdc)]),_0x44afe6[_0x22bcb9(0x10f)]=_[_0x22bcb9(0xf5)](_0x809913['model'],qs['fields'](_0x560645[_0x22bcb9(0xdc)]['fields'])),_0x44afe6['attributes']=_0x44afe6[_0x22bcb9(0x10f)][_0x22bcb9(0xbd)]?_0x44afe6['attributes']:_0x809913[_0x22bcb9(0x109)],_0x44afe6['order']=qs[_0x22bcb9(0x10d)](_0x560645[_0x22bcb9(0xdc)][_0x22bcb9(0x10d)]),_0x44afe6[_0x22bcb9(0xc1)]=qs[_0x22bcb9(0xc8)](_[_0x22bcb9(0x13d)](_0x560645[_0x22bcb9(0xdc)],_0x809913['filters'])),_0x560645[_0x22bcb9(0xdc)][_0x22bcb9(0xb4)]&&(_0x44afe6[_0x22bcb9(0xc1)]=_['merge'](_0x44afe6['where'],{[Op['or']]:_[_0x22bcb9(0xd6)](_0x44afe6[_0x22bcb9(0x10f)],function(_0x4a5fb4){const _0x2aea42=_0x22bcb9,_0x2820a4={};return _0x2820a4[_0x4a5fb4]={[Op[_0x2aea42(0xf3)]]:'%'+_0x560645[_0x2aea42(0xdc)][_0x2aea42(0xb4)]+'%'},_0x2820a4;})})),_0x44afe6=_[_0x22bcb9(0xdf)]({},_0x44afe6,_0x560645['options']),_0x190a4a[_0x22bcb9(0xf2)](_0x44afe6);})[_0x12008a(0xb9)](function(_0x1b4fdb){const _0x183285=_0x12008a;if(_0x1b4fdb)return _0x36d958=_0x1b4fdb[_0x183285(0xbd)],typeof _0x560645[_0x183285(0xdc)]['nolimit']===_0x183285(0xb2)&&(_0x44afe6[_0x183285(0x117)]=qs[_0x183285(0x117)](_0x560645[_0x183285(0xdc)]['limit']),_0x44afe6['offset']=qs['offset'](_0x560645[_0x183285(0xdc)]['offset'])),_0x190a4a[_0x183285(0xf2)](_0x44afe6);})['then'](function(_0x3a021f){if(_0x3a021f)return _0x3a021f?{'count':_0x36d958,'rows':_0x3a021f}:null;})[_0x12008a(0xb9)](respondWithResult(_0x48ab25,null))[_0x12008a(0xe3)](handleError(_0x48ab25,null));},exports[a903_0x1a0075(0x10c)]=function(_0x3dde22,_0x39a2b4){const _0x504069=a903_0x1a0075;let _0x237efb;return db['VoiceQueue'][_0x504069(0xdb)]({'where':{'id':_0x3dde22['params']['id']}})[_0x504069(0xb9)](handleEntityNotFound(_0x39a2b4,null))[_0x504069(0xb9)](function(_0x168030){const _0x2df958=_0x504069;if(_0x168030)return _0x168030[_0x2df958(0x10c)](_0x3dde22[_0x2df958(0xc7)]['ids'],{'through':_[_0x2df958(0x132)](_0x3dde22['body'],[_0x2df958(0xaf),'id'])});return null;})[_0x504069(0xb9)](function(_0x51d15c){const _0x3b61f6=_0x504069;let _0x17be56;_0x237efb=_0x51d15c||[];const _0x4cb5b2=[];if(_0x51d15c){for(let _0xae4a8b=0x0;_0xae4a8b<_0x51d15c[_0x3b61f6(0xbd)];_0xae4a8b+=0x1){const _0x13afb0=_0x51d15c[_0xae4a8b][_0x3b61f6(0x128)]({'plain':!![]});_0x17be56=squel[_0x3b61f6(0xce)]()[_0x3b61f6(0x11b)]('cm_hopper_black')[_0x3b61f6(0xd4)](['phone',_0x3b61f6(0xd0),_0x3b61f6(0x130),_0x3b61f6(0xca),_0x3b61f6(0xc6),'updatedAt'],squel['select']()[_0x3b61f6(0x110)](_0x3b61f6(0x127),_0x3b61f6(0x127))[_0x3b61f6(0x110)]('id',_0x3b61f6(0xd0))[_0x3b61f6(0x110)](_0x13afb0[_0x3b61f6(0xfe)][_0x3b61f6(0x115)](),_0x3b61f6(0x130))[_0x3b61f6(0x110)](_0x3dde22['params']['id'][_0x3b61f6(0x115)](),_0x3b61f6(0xca))[_0x3b61f6(0x110)](_0x3b61f6(0xa8),_0x3b61f6(0xc6))[_0x3b61f6(0x110)](_0x3b61f6(0xa8),_0x3b61f6(0xe1))[_0x3b61f6(0xea)](_0x3b61f6(0x11f))[_0x3b61f6(0xc1)](_0x3b61f6(0xab))['where'](_0x3b61f6(0xbe),_0x13afb0[_0x3b61f6(0xfe)][_0x3b61f6(0x115)]())[_0x3b61f6(0xc1)](_0x3b61f6(0xe9)))[_0x3b61f6(0x115)](),_0x4cb5b2[_0x3b61f6(0xe0)](db[_0x3b61f6(0xec)][_0x3b61f6(0xdc)](_0x17be56));}return Promise[_0x3b61f6(0x116)](_0x4cb5b2);}})[_0x504069(0xb9)](function(){return _0x237efb;})[_0x504069(0xb9)](respondWithResult(_0x39a2b4,null))[_0x504069(0xe3)](handleError(_0x39a2b4,null));},exports[a903_0x1a0075(0x106)]=function(_0x419a7e,_0x496f39){const _0x278e73=a903_0x1a0075;return db[_0x278e73(0x112)][_0x278e73(0xdb)]({'where':{'id':_0x419a7e[_0x278e73(0xf6)]['id']}})[_0x278e73(0xb9)](handleEntityNotFound(_0x496f39,null))[_0x278e73(0xb9)](function(_0x12a273){const _0x9e0a86=_0x278e73;if(_0x12a273)return _0x12a273[_0x9e0a86(0x106)](_0x419a7e[_0x9e0a86(0xdc)]['ids']);})[_0x278e73(0xb9)](function(_0x22a54c){const _0x36ead2=_0x278e73;if(_0x22a54c)return db[_0x36ead2(0xc9)][_0x36ead2(0xbb)]({'where':{'ListId':_0x419a7e[_0x36ead2(0xdc)][_0x36ead2(0xaf)],'VoiceQueueId':_0x419a7e[_0x36ead2(0xf6)]['id']}})[_0x36ead2(0xb9)](function(){return _0x22a54c;});})[_0x278e73(0xb9)](respondWithStatusCode(_0x496f39,null))[_0x278e73(0xe3)](handleError(_0x496f39,null));}; \ No newline at end of file +const a903_0x15d5=['from','join','CmListId','ListId\x20=\x20?','findOne','toString','SIP/%s','QueueCampaigns','omit','ids','createdAt','autoAssociation','intersection','removeBlackLists','compact','nolimit','outbound','ut.UserId\x20=\x20?','query','forEach','fromQuery','limit','getLists','phone\x20IS\x20NOT\x20NULL','scheduledAt','penalty','keys','teams','length','fields','sendStatus','getMembers','getAgents','get','cm_contacts','removeTeams','deletedAt\x20IS\x20NULL','upsert','voicePause','VIRTUAL','catch','COALESCE(calleridnum,\x27\x27)','update','format','options','sequelize','clone','flatMap','register','rawAttributes','TeamId','where','inbound','map','send','isArray','phone','end','user','ContactId','undefined','addAgents','COALESCE(phone,\x27\x27)','removeLists','order','findOrCreate','userVoiceQueue:remove','CmHopperBlack','count','cm_hopper_final','UserProfileResource','fieldName','VoiceQueues','model','util','getHoppers','ignore','squel','ListId','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','getHopperHistories','json','status','Unable\x20to\x20retrieve\x20the\x20current\x20user','create','always','cm_hopper_black','role','pick','VoiceQueue','filter','CmList','include','cm_hopper','into','interface','stack','Team','CmHopper','attributes','phone\x20NOT\x20IN\x20(?)','union','params','insert','select','isNil','CmHopperFinal','value','../../components/parsers/qs','field','destroy','find','transaction','sort','../../config/logger','updatedAt','Agents','getHopperFinals','error','Content-Range','findAll','User','like','addTeams','body','offset','onlyIfOpen','name','userVoiceQueue:save','emit','online','./voiceQueue.socket','push','filters','type','getBlackLists','all','UserVoiceQueueRt','includeAll','dialCheckDuplicateType','VoiceQueueId','rows','tq.TeamId','NOW()','getTeams','merge','UserVoiceQueue','VoiceQueueId\x20=\x20?','UserProfileSection','addBlackLists','ut.TeamId\x20=\x20tq.TeamId','then'];(function(_0x3ae71b,_0x21a493){const _0x15d500=function(_0x4ac0b4){while(--_0x4ac0b4){_0x3ae71b['push'](_0x3ae71b['shift']());}};_0x15d500(++_0x21a493);}(a903_0x15d5,0x114));const a903_0x4ac0=function(_0x3ae71b,_0x21a493){_0x3ae71b=_0x3ae71b-0x153;let _0x15d500=a903_0x15d5[_0x3ae71b];return _0x15d500;};const a903_0x118aeb=a903_0x4ac0;'use strict';const util=require(a903_0x118aeb(0x1b9)),_=require('lodash'),squel=require(a903_0x118aeb(0x1bc)),qs=require(a903_0x118aeb(0x1db)),logger=require(a903_0x118aeb(0x1e1))('api'),{getSocket}=require('../../rediscache'),socket=getSocket(),{db}=require('../../mysqldb'),{Op,QueryTypes}=require(a903_0x118aeb(0x19c));require(a903_0x118aeb(0x15a))[a903_0x118aeb(0x19f)](socket);function respondWithStatusCode(_0x3a0dd2,_0x3ce66d){return _0x3ce66d=_0x3ce66d||0xcc,function(_0x168751){const _0x26821d=a903_0x4ac0;if(_0x168751)return _0x3a0dd2[_0x26821d(0x18d)](_0x3ce66d);return _0x3a0dd2[_0x26821d(0x1c1)](_0x3ce66d)['end']();};}function respondWithResult(_0x3f517d,_0x2644e1){return _0x2644e1=_0x2644e1||0xc8,function(_0x3e77e3){const _0x14918d=a903_0x4ac0;if(_0x3e77e3)return _0x3f517d[_0x14918d(0x1c1)](_0x2644e1)['json'](_0x3e77e3);};}function respondWithFilteredResult(_0xbff1b8,_0x24d4e2){return function(_0x8f1167){const _0x4a201a=a903_0x4ac0;if(_0x8f1167){const _0x1f5d2b=_0x8f1167[_0x4a201a(0x1b3)],_0x5397c1=_0x24d4e2['offset'];let _0x5cd909=_0x24d4e2['offset']+_0x24d4e2['limit'],_0x217e9d;return _0x5cd909>=_0x1f5d2b?(_0x5cd909=_0x1f5d2b,_0x217e9d=0xc8):_0x217e9d=0xce,_0xbff1b8['status'](_0x217e9d),_0xbff1b8['set'](_0x4a201a(0x1e6),_0x5397c1+'-'+_0x5cd909+'/'+_0x1f5d2b)[_0x4a201a(0x1c0)](_0x8f1167);}return null;};}function saveUpdates(_0x5690fc){return function(_0xc5267e){const _0x51f3cd=a903_0x4ac0;if(_0xc5267e)return _0xc5267e[_0x51f3cd(0x199)](_0x5690fc)['then'](function(_0x259505){return _0x259505;});return null;};}function removeEntity(_0xd8de56){return function(_0x49befc){const _0x48fdcd=a903_0x4ac0;if(_0x49befc)return _0x49befc[_0x48fdcd(0x1dd)]()[_0x48fdcd(0x16e)](function(){const _0x4337a6=_0x48fdcd,_0x44d20a=_0x49befc[_0x4337a6(0x190)]({'plain':!![]}),_0x1e65e2=[{'name':_0x4337a6(0x1b7),'value':'inbound','ignore':![]},{'name':'QueueCampaigns','value':_0x4337a6(0x17f),'ignore':![]}],_0x202656=_(_0x1e65e2)[_0x4337a6(0x1c9)](_0x4337a6(0x1bb))[_0x4337a6(0x1a4)](_0x4337a6(0x1da))[_0x4337a6(0x1da)]();if(_['includes'](_0x202656,_0x44d20a[_0x4337a6(0x15d)]))return;const _0x4c8a0a=_['find'](_0x1e65e2,[_0x4337a6(0x1da),_0x44d20a[_0x4337a6(0x15d)]])['name'];return db[_0x4337a6(0x1b5)][_0x4337a6(0x1dd)]({'where':{'type':_0x4c8a0a,'resourceId':_0x44d20a['id']}})[_0x4337a6(0x16e)](function(){return _0x49befc;});})[_0x48fdcd(0x16e)](function(){const _0x1d6c1f=_0x48fdcd;_0xd8de56['status'](0xcc)[_0x1d6c1f(0x1a8)]();});};}function handleEntityNotFound(_0x2d3c53){return function(_0x3f310e){const _0x72f2c6=a903_0x4ac0;return!_0x3f310e&&_0x2d3c53[_0x72f2c6(0x18d)](0x194),_0x3f310e;};}function handleError(_0x2f30d0,_0x3c3056){return _0x3c3056=_0x3c3056||0x1f4,function(_0x34bc7e){const _0x213446=a903_0x4ac0;logger[_0x213446(0x1e5)](_0x34bc7e[_0x213446(0x1cf)]),_0x34bc7e[_0x213446(0x156)]&&delete _0x34bc7e[_0x213446(0x156)],_0x2f30d0[_0x213446(0x1c1)](_0x3c3056)[_0x213446(0x1a5)](_0x34bc7e);};}exports['index']=function(_0x990229,_0x39d72d){const _0x3bd928=a903_0x118aeb;let _0x2ee58c={};const _0x556f19={},_0x28abf9={'count':0x0,'rows':[]},_0xf91a34=_['map'](db[_0x3bd928(0x1c8)][_0x3bd928(0x1a0)],function(_0x2ec44b){const _0x2c3079=_0x3bd928;return{'name':_0x2ec44b[_0x2c3079(0x1b6)],'type':_0x2ec44b[_0x2c3079(0x15d)]['key']};});_0x556f19[_0x3bd928(0x1b8)]=_[_0x3bd928(0x1a4)](_0xf91a34,_0x3bd928(0x156)),_0x556f19[_0x3bd928(0x181)]=_[_0x3bd928(0x189)](_0x990229[_0x3bd928(0x181)]),_0x556f19[_0x3bd928(0x15c)]=_[_0x3bd928(0x17b)](_0x556f19[_0x3bd928(0x1b8)],_0x556f19['query']),_0x2ee58c['attributes']=_[_0x3bd928(0x17b)](_0x556f19[_0x3bd928(0x1b8)],qs[_0x3bd928(0x18c)](_0x990229[_0x3bd928(0x181)][_0x3bd928(0x18c)])),_0x2ee58c['attributes']=_0x2ee58c[_0x3bd928(0x1d2)][_0x3bd928(0x18b)]?_0x2ee58c[_0x3bd928(0x1d2)]:_0x556f19[_0x3bd928(0x1b8)];typeof _0x990229['query'][_0x3bd928(0x17e)]===_0x3bd928(0x1ab)&&(_0x2ee58c[_0x3bd928(0x184)]=qs['limit'](_0x990229[_0x3bd928(0x181)][_0x3bd928(0x184)]),_0x2ee58c[_0x3bd928(0x154)]=qs[_0x3bd928(0x154)](_0x990229[_0x3bd928(0x181)][_0x3bd928(0x154)]));_0x2ee58c[_0x3bd928(0x1af)]=qs[_0x3bd928(0x1e0)](_0x990229[_0x3bd928(0x181)]['sort']),_0x2ee58c[_0x3bd928(0x1a2)]=qs[_0x3bd928(0x15c)](_[_0x3bd928(0x1c7)](_0x990229['query'],_0x556f19[_0x3bd928(0x15c)]),_0xf91a34);_0x990229['query'][_0x3bd928(0x1c9)]&&(_0x2ee58c[_0x3bd928(0x1a2)]=_[_0x3bd928(0x168)](_0x2ee58c['where'],{[Op['or']]:_[_0x3bd928(0x1a4)](_0xf91a34,function(_0x33765e){const _0x1ecbd9=_0x3bd928;if(_0x33765e[_0x1ecbd9(0x15d)]!==_0x1ecbd9(0x196)){const _0x348f94={};return _0x348f94[_0x33765e[_0x1ecbd9(0x156)]]={[Op[_0x1ecbd9(0x1e9)]]:'%'+_0x990229[_0x1ecbd9(0x181)][_0x1ecbd9(0x1c9)]+'%'},_0x348f94;}})}));_0x2ee58c=_[_0x3bd928(0x168)]({},_0x2ee58c,_0x990229[_0x3bd928(0x19b)]);const _0x1e0811={'where':_0x2ee58c['where']};return db[_0x3bd928(0x1c8)][_0x3bd928(0x1b3)](_0x1e0811)[_0x3bd928(0x16e)](function(_0x52436a){const _0x1187c9=_0x3bd928;return _0x28abf9[_0x1187c9(0x1b3)]=_0x52436a,_0x990229[_0x1187c9(0x181)]['includeAll']&&(_0x2ee58c[_0x1187c9(0x1cb)]=[{'all':!![]}]),db['VoiceQueue'][_0x1187c9(0x1e7)](_0x2ee58c);})['then'](function(_0x442bd0){const _0x3ba720=_0x3bd928;return _0x28abf9[_0x3ba720(0x164)]=_0x442bd0,_0x28abf9;})[_0x3bd928(0x16e)](respondWithFilteredResult(_0x39d72d,_0x2ee58c))['catch'](handleError(_0x39d72d,null));},exports['show']=function(_0x42078b,_0x200148){const _0x1d7874=a903_0x118aeb;let _0x502627={'raw':![],'where':{'id':_0x42078b[_0x1d7874(0x1d5)]['id']}};const _0x227391={};return _0x227391[_0x1d7874(0x1b8)]=_[_0x1d7874(0x189)](db['VoiceQueue']['rawAttributes']),_0x227391[_0x1d7874(0x181)]=_['keys'](_0x42078b['query']),_0x227391[_0x1d7874(0x15c)]=_[_0x1d7874(0x17b)](_0x227391[_0x1d7874(0x1b8)],_0x227391[_0x1d7874(0x181)]),_0x502627['attributes']=_[_0x1d7874(0x17b)](_0x227391[_0x1d7874(0x1b8)],qs[_0x1d7874(0x18c)](_0x42078b[_0x1d7874(0x181)][_0x1d7874(0x18c)])),_0x502627[_0x1d7874(0x1d2)]=_0x502627[_0x1d7874(0x1d2)][_0x1d7874(0x18b)]?_0x502627['attributes']:_0x227391['model'],_0x42078b[_0x1d7874(0x181)]['includeAll']&&(_0x502627['include']=[{'all':!![]}]),_0x502627=_[_0x1d7874(0x168)]({},_0x502627,_0x42078b['options']),db[_0x1d7874(0x1c8)]['findOne'](_0x502627)['then'](handleEntityNotFound(_0x200148,null))[_0x1d7874(0x16e)](respondWithResult(_0x200148,null))[_0x1d7874(0x197)](handleError(_0x200148,null));},exports[a903_0x118aeb(0x1c3)]=function(_0x594dbd,_0x3170d1){const _0x57b1ab=a903_0x118aeb;return db[_0x57b1ab(0x1c8)][_0x57b1ab(0x1c3)](_0x594dbd[_0x57b1ab(0x153)],{})['then'](function(_0x2bc461){const _0x12cbff=_0x57b1ab,_0x1fc0ab=_0x594dbd[_0x12cbff(0x1a9)][_0x12cbff(0x190)]({'plain':!![]});if(!_0x1fc0ab)throw new Error(_0x12cbff(0x1c2));if(_0x1fc0ab['role']==='user'){const _0x53277a=_0x2bc461[_0x12cbff(0x190)]({'plain':!![]}),_0x12e744=[{'name':_0x12cbff(0x1b7),'value':'inbound'},{'name':_0x12cbff(0x176),'value':_0x12cbff(0x17f)}],_0x397753=_[_0x12cbff(0x1de)](_0x12e744,['value',_0x53277a[_0x12cbff(0x15d)]])[_0x12cbff(0x156)];return db['UserProfileSection']['findOne']({'where':{'name':_0x397753,'userProfileId':_0x1fc0ab['userProfileId']},'raw':!![]})[_0x12cbff(0x16e)](function(_0x542c58){const _0x31e238=_0x12cbff;return _0x542c58&&_0x542c58[_0x31e238(0x17a)]===0x0?db[_0x31e238(0x1b5)]['create']({'name':_0x53277a[_0x31e238(0x156)],'resourceId':_0x53277a['id'],'type':_0x542c58[_0x31e238(0x156)],'sectionId':_0x542c58['id']},{})[_0x31e238(0x16e)](function(){return _0x2bc461;}):_0x2bc461;})[_0x12cbff(0x197)](function(_0x5e0b06){const _0x1241eb=_0x12cbff;logger[_0x1241eb(0x1e5)](_0x1241eb(0x1be),_0x5e0b06);throw _0x5e0b06;});}return _0x2bc461;})['then'](respondWithResult(_0x3170d1,0xc9))[_0x57b1ab(0x197)](handleError(_0x3170d1,null));},exports[a903_0x118aeb(0x19d)]=function(_0x593edf,_0x1e9752){const _0x707ba6=a903_0x118aeb;let _0x54ff60={'where':{'id':_0x593edf[_0x707ba6(0x1d5)]['id']}};const _0x2cac79={};return _0x2cac79[_0x707ba6(0x1b8)]=_[_0x707ba6(0x189)](db['VoiceQueue']['rawAttributes']),_0x54ff60[_0x707ba6(0x1d2)]=_['intersection'](_0x2cac79[_0x707ba6(0x1b8)],qs['fields'](_0x593edf[_0x707ba6(0x181)][_0x707ba6(0x18c)])),_0x54ff60[_0x707ba6(0x1d2)]=_0x54ff60[_0x707ba6(0x1d2)][_0x707ba6(0x18b)]?_0x54ff60[_0x707ba6(0x1d2)]:_0x2cac79['model'],_0x593edf[_0x707ba6(0x181)][_0x707ba6(0x161)]&&(_0x54ff60[_0x707ba6(0x1cb)]=[{'all':!![]}]),_0x54ff60=_['merge']({},_0x54ff60,_0x593edf[_0x707ba6(0x19b)]),db['VoiceQueue'][_0x707ba6(0x173)](_0x54ff60)[_0x707ba6(0x16e)](handleEntityNotFound(_0x1e9752,null))[_0x707ba6(0x16e)](function(_0x580b19){const _0x4a7f5f=_0x707ba6;if(_0x580b19){let _0x2ee1b1=_0x580b19[_0x4a7f5f(0x190)]({'plain':!![]});return _0x2ee1b1=qs[_0x4a7f5f(0x177)](_0x2ee1b1,['id',_0x4a7f5f(0x179),_0x4a7f5f(0x1e2)]),_0x593edf[_0x4a7f5f(0x153)]=_[_0x4a7f5f(0x177)](_0x593edf['body'],['id',_0x4a7f5f(0x179),'updatedAt']),db[_0x4a7f5f(0x1c8)][_0x4a7f5f(0x1c3)](_[_0x4a7f5f(0x168)](_0x2ee1b1,_0x593edf[_0x4a7f5f(0x153)]),{'include':_0x593edf[_0x4a7f5f(0x181)]['includeAll']?[{'all':!![]}]:undefined})['then'](function(_0x11601e){const _0x593937=_0x4a7f5f,_0x383627=_0x593edf['user'][_0x593937(0x190)]({'plain':!![]});if(!_0x383627)throw new Error(_0x593937(0x1c2));if(_0x383627[_0x593937(0x1c6)]===_0x593937(0x1a9)){const _0x53fabb=_0x11601e[_0x593937(0x190)]({'plain':!![]}),_0x540402=[{'name':_0x593937(0x1b7),'value':_0x593937(0x1a3)},{'name':_0x593937(0x176),'value':'outbound'}],_0x18bfe8=_[_0x593937(0x1de)](_0x540402,['value',_0x53fabb[_0x593937(0x15d)]])[_0x593937(0x156)];return db[_0x593937(0x16b)][_0x593937(0x173)]({'where':{'name':_0x18bfe8,'userProfileId':_0x383627['userProfileId']},'raw':!![]})[_0x593937(0x16e)](function(_0x2d3c74){const _0x23b43b=_0x593937;return _0x2d3c74&&_0x2d3c74['autoAssociation']===0x0?db[_0x23b43b(0x1b5)][_0x23b43b(0x1c3)]({'name':_0x53fabb[_0x23b43b(0x156)],'resourceId':_0x53fabb['id'],'type':_0x2d3c74[_0x23b43b(0x156)],'sectionId':_0x2d3c74['id']},{})['then'](function(){return _0x11601e;}):_0x11601e;})[_0x593937(0x197)](function(_0x39bb70){const _0x3cb841=_0x593937;logger[_0x3cb841(0x1e5)](_0x3cb841(0x1be),_0x39bb70);throw _0x39bb70;});}return _0x11601e;});}})['then'](respondWithResult(_0x1e9752,0xc9))[_0x707ba6(0x197)](handleError(_0x1e9752,null));},exports[a903_0x118aeb(0x199)]=function(_0x48c1bd,_0x39db71){const _0x3f496e=a903_0x118aeb;return _0x48c1bd[_0x3f496e(0x153)]['id']&&delete _0x48c1bd['body']['id'],db['VoiceQueue'][_0x3f496e(0x173)]({'where':{'id':_0x48c1bd[_0x3f496e(0x1d5)]['id']}})[_0x3f496e(0x16e)](handleEntityNotFound(_0x39db71,null))[_0x3f496e(0x16e)](saveUpdates(_0x48c1bd[_0x3f496e(0x153)],null))[_0x3f496e(0x16e)](respondWithResult(_0x39db71,null))[_0x3f496e(0x197)](handleError(_0x39db71,null));},exports[a903_0x118aeb(0x1dd)]=function(_0x475501,_0x2eebef){const _0x5e50d2=a903_0x118aeb;return db[_0x5e50d2(0x1c8)][_0x5e50d2(0x173)]({'where':{'id':_0x475501['params']['id']}})[_0x5e50d2(0x16e)](handleEntityNotFound(_0x2eebef,null))[_0x5e50d2(0x16e)](removeEntity(_0x2eebef,null))['catch'](handleError(_0x2eebef,null));},exports[a903_0x118aeb(0x1ba)]=function(_0xa776a0,_0x103638){const _0x3dca16=a903_0x118aeb;let _0x1b7a0b={'raw':![],'where':{}};const _0xcc0e07={},_0x2a891c={'count':0x0,'rows':[]};return db[_0x3dca16(0x1c8)][_0x3dca16(0x173)]({'where':{'id':_0xa776a0['params']['id']}})[_0x3dca16(0x16e)](handleEntityNotFound(_0x103638,null))[_0x3dca16(0x16e)](function(_0x1b708c){const _0x25e185=_0x3dca16;if(_0x1b708c)return _0xcc0e07[_0x25e185(0x1b8)]=_['keys'](db[_0x25e185(0x1d1)][_0x25e185(0x1a0)]),_0xcc0e07[_0x25e185(0x181)]=_[_0x25e185(0x189)](_0xa776a0[_0x25e185(0x181)]),_0xcc0e07[_0x25e185(0x15c)]=_[_0x25e185(0x17b)](_0xcc0e07[_0x25e185(0x1b8)],_0xcc0e07[_0x25e185(0x181)]),_0x1b7a0b[_0x25e185(0x1d2)]=_[_0x25e185(0x17b)](_0xcc0e07[_0x25e185(0x1b8)],qs['fields'](_0xa776a0['query'][_0x25e185(0x18c)])),_0x1b7a0b['attributes']=_0x1b7a0b['attributes'][_0x25e185(0x18b)]?_0x1b7a0b['attributes']:_0xcc0e07[_0x25e185(0x1b8)],typeof _0xa776a0[_0x25e185(0x181)][_0x25e185(0x17e)]===_0x25e185(0x1ab)&&(_0x1b7a0b['limit']=qs[_0x25e185(0x184)](_0xa776a0[_0x25e185(0x181)][_0x25e185(0x184)]),_0x1b7a0b[_0x25e185(0x154)]=qs[_0x25e185(0x154)](_0xa776a0[_0x25e185(0x181)][_0x25e185(0x154)])),_0x1b7a0b['order']=qs[_0x25e185(0x1e0)](_0xa776a0[_0x25e185(0x181)][_0x25e185(0x1e0)]),_0x1b7a0b['where']=qs[_0x25e185(0x15c)](_['pick'](_0xa776a0[_0x25e185(0x181)],_0xcc0e07['filters'])),_0x1b7a0b[_0x25e185(0x1a2)][_0x25e185(0x163)]=_0x1b708c['id'],_0xa776a0[_0x25e185(0x181)][_0x25e185(0x1c9)]&&(_0x1b7a0b[_0x25e185(0x1a2)]=_['merge'](_0x1b7a0b[_0x25e185(0x1a2)],{[Op['or']]:_[_0x25e185(0x1a4)](_0x1b7a0b[_0x25e185(0x1d2)],function(_0x2d5d7d){const _0x43831e=_0x25e185,_0x5947fe={};return _0x5947fe[_0x2d5d7d]={[Op['like']]:'%'+_0xa776a0[_0x43831e(0x181)][_0x43831e(0x1c9)]+'%'},_0x5947fe;})})),_0x1b7a0b=_[_0x25e185(0x168)]({},_0x1b7a0b,_0xa776a0[_0x25e185(0x19b)]),db[_0x25e185(0x1d1)][_0x25e185(0x1b3)]({'where':_0x1b7a0b[_0x25e185(0x1a2)]})['then'](function(_0x364c4f){const _0x3d463a=_0x25e185;return _0x2a891c[_0x3d463a(0x1b3)]=_0x364c4f,_0xa776a0['query'][_0x3d463a(0x161)]&&(_0x1b7a0b[_0x3d463a(0x1cb)]=[{'all':!![]}]),db[_0x3d463a(0x1d1)][_0x3d463a(0x1e7)](_0x1b7a0b);})[_0x25e185(0x16e)](function(_0x5a4623){const _0x3bda05=_0x25e185;return _0x2a891c[_0x3bda05(0x164)]=_0x5a4623,_0x2a891c;});})[_0x3dca16(0x16e)](respondWithFilteredResult(_0x103638,_0x1b7a0b))[_0x3dca16(0x197)](handleError(_0x103638,null));},exports[a903_0x118aeb(0x1bf)]=function(_0x29fbb3,_0xba1d37){const _0x4c8f8d=a903_0x118aeb;let _0x3356d4={'raw':!![],'where':{}};const _0x2857d3={},_0x873044={'count':0x0,'rows':[]};return db[_0x4c8f8d(0x1c8)][_0x4c8f8d(0x173)]({'where':{'id':_0x29fbb3[_0x4c8f8d(0x1d5)]['id']}})[_0x4c8f8d(0x16e)](handleEntityNotFound(_0xba1d37,null))[_0x4c8f8d(0x16e)](function(_0xcc131b){const _0x5b5677=_0x4c8f8d;if(_0xcc131b)return _0x2857d3[_0x5b5677(0x1b8)]=_[_0x5b5677(0x189)](db['CmHopperHistory'][_0x5b5677(0x1a0)]),_0x2857d3[_0x5b5677(0x181)]=_[_0x5b5677(0x189)](_0x29fbb3[_0x5b5677(0x181)]),_0x2857d3['filters']=_[_0x5b5677(0x17b)](_0x2857d3[_0x5b5677(0x1b8)],_0x2857d3[_0x5b5677(0x181)]),_0x3356d4[_0x5b5677(0x1d2)]=_[_0x5b5677(0x17b)](_0x2857d3[_0x5b5677(0x1b8)],qs[_0x5b5677(0x18c)](_0x29fbb3['query'][_0x5b5677(0x18c)])),_0x3356d4[_0x5b5677(0x1d2)]=_0x3356d4['attributes'][_0x5b5677(0x18b)]?_0x3356d4[_0x5b5677(0x1d2)]:_0x2857d3[_0x5b5677(0x1b8)],typeof _0x29fbb3[_0x5b5677(0x181)]['nolimit']===_0x5b5677(0x1ab)&&(_0x3356d4['limit']=qs[_0x5b5677(0x184)](_0x29fbb3[_0x5b5677(0x181)][_0x5b5677(0x184)]),_0x3356d4[_0x5b5677(0x154)]=qs['offset'](_0x29fbb3[_0x5b5677(0x181)]['offset'])),_0x3356d4['order']=qs[_0x5b5677(0x1e0)](_0x29fbb3[_0x5b5677(0x181)][_0x5b5677(0x1e0)]),_0x3356d4['where']=qs[_0x5b5677(0x15c)](_[_0x5b5677(0x1c7)](_0x29fbb3['query'],_0x2857d3[_0x5b5677(0x15c)])),_0x3356d4[_0x5b5677(0x1a2)]['VoiceQueueId']=_0xcc131b['id'],_0x29fbb3['query'][_0x5b5677(0x1c9)]&&(_0x3356d4[_0x5b5677(0x1a2)]=_[_0x5b5677(0x168)](_0x3356d4['where'],{[Op['or']]:_[_0x5b5677(0x1a4)](_0x3356d4[_0x5b5677(0x1d2)],function(_0x31d402){const _0x52304e=_0x5b5677,_0x500b7b={};return _0x500b7b[_0x31d402]={[Op[_0x52304e(0x1e9)]]:'%'+_0x29fbb3[_0x52304e(0x181)][_0x52304e(0x1c9)]+'%'},_0x500b7b;})})),_0x3356d4=_[_0x5b5677(0x168)]({},_0x3356d4,_0x29fbb3[_0x5b5677(0x19b)]),db['CmHopperHistory'][_0x5b5677(0x1b3)]({'where':_0x3356d4['where']})[_0x5b5677(0x16e)](function(_0x3b56e1){const _0x33e4fd=_0x5b5677;return _0x873044[_0x33e4fd(0x1b3)]=_0x3b56e1,_0x29fbb3['query'][_0x33e4fd(0x161)]&&(_0x3356d4['include']=[{'all':!![]}]),db['CmHopperHistory'][_0x33e4fd(0x1e7)](_0x3356d4);})[_0x5b5677(0x16e)](function(_0x3846ef){const _0x24fae1=_0x5b5677;return _0x873044[_0x24fae1(0x164)]=_0x3846ef,_0x873044;});})[_0x4c8f8d(0x16e)](respondWithFilteredResult(_0xba1d37,_0x3356d4))[_0x4c8f8d(0x197)](handleError(_0xba1d37,null));},exports[a903_0x118aeb(0x1e4)]=function(_0x15e03b,_0x1770c7){const _0x51ff05=a903_0x118aeb;let _0x2374ab={'raw':!![],'where':{}};const _0x590063={},_0xd6038b={'count':0x0,'rows':[]};return db[_0x51ff05(0x1c8)][_0x51ff05(0x173)]({'where':{'id':_0x15e03b[_0x51ff05(0x1d5)]['id']}})['then'](handleEntityNotFound(_0x1770c7,null))[_0x51ff05(0x16e)](function(_0x55ad72){const _0x9611c9=_0x51ff05;if(_0x55ad72)return _0x590063[_0x9611c9(0x1b8)]=_[_0x9611c9(0x189)](db[_0x9611c9(0x1d9)]['rawAttributes']),_0x590063[_0x9611c9(0x181)]=_[_0x9611c9(0x189)](_0x15e03b[_0x9611c9(0x181)]),_0x590063[_0x9611c9(0x15c)]=_[_0x9611c9(0x17b)](_0x590063[_0x9611c9(0x1b8)],_0x590063[_0x9611c9(0x181)]),_0x2374ab[_0x9611c9(0x1d2)]=_[_0x9611c9(0x17b)](_0x590063['model'],qs[_0x9611c9(0x18c)](_0x15e03b['query'][_0x9611c9(0x18c)])),_0x2374ab[_0x9611c9(0x1d2)]=_0x2374ab[_0x9611c9(0x1d2)][_0x9611c9(0x18b)]?_0x2374ab[_0x9611c9(0x1d2)]:_0x590063[_0x9611c9(0x1b8)],typeof _0x15e03b['query'][_0x9611c9(0x17e)]===_0x9611c9(0x1ab)&&(_0x2374ab[_0x9611c9(0x184)]=qs[_0x9611c9(0x184)](_0x15e03b['query'][_0x9611c9(0x184)]),_0x2374ab[_0x9611c9(0x154)]=qs[_0x9611c9(0x154)](_0x15e03b[_0x9611c9(0x181)][_0x9611c9(0x154)])),_0x2374ab['order']=qs[_0x9611c9(0x1e0)](_0x15e03b[_0x9611c9(0x181)][_0x9611c9(0x1e0)]),_0x2374ab[_0x9611c9(0x1a2)]=qs[_0x9611c9(0x15c)](_[_0x9611c9(0x1c7)](_0x15e03b[_0x9611c9(0x181)],_0x590063['filters'])),_0x2374ab[_0x9611c9(0x1a2)][_0x9611c9(0x163)]=_0x55ad72['id'],_0x15e03b['query']['filter']&&(_0x2374ab['where']=_['merge'](_0x2374ab[_0x9611c9(0x1a2)],{[Op['or']]:_['map'](_0x2374ab[_0x9611c9(0x1d2)],function(_0x310f73){const _0x3fcd2d=_0x9611c9,_0x42f0b6={};return _0x42f0b6[_0x310f73]={[Op[_0x3fcd2d(0x1e9)]]:'%'+_0x15e03b[_0x3fcd2d(0x181)]['filter']+'%'},_0x42f0b6;})})),_0x2374ab=_[_0x9611c9(0x168)]({},_0x2374ab,_0x15e03b['options']),db[_0x9611c9(0x1d9)][_0x9611c9(0x1b3)]({'where':_0x2374ab[_0x9611c9(0x1a2)]})[_0x9611c9(0x16e)](function(_0xcf1a64){const _0x3b0cba=_0x9611c9;return _0xd6038b[_0x3b0cba(0x1b3)]=_0xcf1a64,_0x15e03b['query'][_0x3b0cba(0x161)]&&(_0x2374ab[_0x3b0cba(0x1cb)]=[{'all':!![]}]),db[_0x3b0cba(0x1d9)][_0x3b0cba(0x1e7)](_0x2374ab);})['then'](function(_0x1b0229){const _0x4ba626=_0x9611c9;return _0xd6038b[_0x4ba626(0x164)]=_0x1b0229,_0xd6038b;});})[_0x51ff05(0x16e)](respondWithFilteredResult(_0x1770c7,_0x2374ab))[_0x51ff05(0x197)](handleError(_0x1770c7,null));},exports['getHopperBlacks']=function(_0x47eb4e,_0x17d7ee){const _0x299de9=a903_0x118aeb;let _0x250d92={'raw':!![],'where':{}};const _0x31dd76={},_0x1bb334={'count':0x0,'rows':[]};return db[_0x299de9(0x1c8)][_0x299de9(0x173)]({'where':{'id':_0x47eb4e[_0x299de9(0x1d5)]['id']}})[_0x299de9(0x16e)](handleEntityNotFound(_0x17d7ee,null))[_0x299de9(0x16e)](function(_0x1b4661){const _0x299754=_0x299de9;if(_0x1b4661)return _0x31dd76[_0x299754(0x1b8)]=_[_0x299754(0x189)](db[_0x299754(0x1b2)][_0x299754(0x1a0)]),_0x31dd76['query']=_[_0x299754(0x189)](_0x47eb4e[_0x299754(0x181)]),_0x31dd76['filters']=_[_0x299754(0x17b)](_0x31dd76[_0x299754(0x1b8)],_0x31dd76[_0x299754(0x181)]),_0x250d92[_0x299754(0x1d2)]=_[_0x299754(0x17b)](_0x31dd76['model'],qs[_0x299754(0x18c)](_0x47eb4e[_0x299754(0x181)][_0x299754(0x18c)])),_0x250d92[_0x299754(0x1d2)]=_0x250d92[_0x299754(0x1d2)][_0x299754(0x18b)]?_0x250d92[_0x299754(0x1d2)]:_0x31dd76[_0x299754(0x1b8)],typeof _0x47eb4e['query'][_0x299754(0x17e)]===_0x299754(0x1ab)&&(_0x250d92[_0x299754(0x184)]=qs[_0x299754(0x184)](_0x47eb4e['query'][_0x299754(0x184)]),_0x250d92[_0x299754(0x154)]=qs[_0x299754(0x154)](_0x47eb4e[_0x299754(0x181)]['offset'])),_0x250d92[_0x299754(0x1af)]=qs[_0x299754(0x1e0)](_0x47eb4e[_0x299754(0x181)][_0x299754(0x1e0)]),_0x250d92[_0x299754(0x1a2)]=qs[_0x299754(0x15c)](_[_0x299754(0x1c7)](_0x47eb4e[_0x299754(0x181)],_0x31dd76[_0x299754(0x15c)])),_0x250d92[_0x299754(0x1a2)][_0x299754(0x163)]=_0x1b4661['id'],_0x47eb4e[_0x299754(0x181)][_0x299754(0x1c9)]&&(_0x250d92[_0x299754(0x1a2)]=_[_0x299754(0x168)](_0x250d92[_0x299754(0x1a2)],{[Op['or']]:_[_0x299754(0x1a4)](_0x250d92['attributes'],function(_0xdab4e3){const _0x2d8875={};return _0x2d8875[_0xdab4e3]={[Op['like']]:'%'+_0x47eb4e['query']['filter']+'%'},_0x2d8875;})})),_0x250d92=_[_0x299754(0x168)]({},_0x250d92,_0x47eb4e[_0x299754(0x19b)]),db[_0x299754(0x1b2)][_0x299754(0x1b3)]({'where':_0x250d92[_0x299754(0x1a2)]})[_0x299754(0x16e)](function(_0x3b7dfd){const _0x3e6b20=_0x299754;return _0x1bb334[_0x3e6b20(0x1b3)]=_0x3b7dfd,_0x47eb4e[_0x3e6b20(0x181)]['includeAll']&&(_0x250d92[_0x3e6b20(0x1cb)]=[{'all':!![]}]),db[_0x3e6b20(0x1b2)][_0x3e6b20(0x1e7)](_0x250d92);})[_0x299754(0x16e)](function(_0x381a3f){const _0x4245fc=_0x299754;return _0x1bb334[_0x4245fc(0x164)]=_0x381a3f,_0x1bb334;});})['then'](respondWithFilteredResult(_0x17d7ee,_0x250d92))['catch'](handleError(_0x17d7ee,null));},exports[a903_0x118aeb(0x167)]=function(_0x5b1596,_0x1fb237){const _0x23c5ad=a903_0x118aeb;let _0x5bd3e7={};const _0x49a4a1={};let _0x2b358f,_0x326894;return db[_0x23c5ad(0x1c8)][_0x23c5ad(0x173)]({'where':{'id':_0x5b1596[_0x23c5ad(0x1d5)]['id']}})['then'](handleEntityNotFound(_0x1fb237,null))[_0x23c5ad(0x16e)](function(_0x9ef208){const _0x51eab9=_0x23c5ad;if(_0x9ef208)return _0x2b358f=_0x9ef208,_0x49a4a1['model']=_[_0x51eab9(0x189)](db['Team']['rawAttributes']),_0x49a4a1[_0x51eab9(0x181)]=_[_0x51eab9(0x189)](_0x5b1596[_0x51eab9(0x181)]),_0x49a4a1['filters']=_[_0x51eab9(0x17b)](_0x49a4a1['model'],_0x49a4a1[_0x51eab9(0x181)]),_0x5bd3e7[_0x51eab9(0x1d2)]=_[_0x51eab9(0x17b)](_0x49a4a1[_0x51eab9(0x1b8)],qs['fields'](_0x5b1596['query']['fields'])),_0x5bd3e7[_0x51eab9(0x1d2)]=_0x5bd3e7[_0x51eab9(0x1d2)][_0x51eab9(0x18b)]?_0x5bd3e7[_0x51eab9(0x1d2)]:_0x49a4a1[_0x51eab9(0x1b8)],_0x5bd3e7['order']=qs['sort'](_0x5b1596[_0x51eab9(0x181)][_0x51eab9(0x1e0)]),_0x5bd3e7[_0x51eab9(0x1a2)]=qs[_0x51eab9(0x15c)](_['pick'](_0x5b1596['query'],_0x49a4a1[_0x51eab9(0x15c)])),_0x5b1596[_0x51eab9(0x181)]['filter']&&(_0x5bd3e7[_0x51eab9(0x1a2)]=_[_0x51eab9(0x168)](_0x5bd3e7[_0x51eab9(0x1a2)],{[Op['or']]:_[_0x51eab9(0x1a4)](_0x5bd3e7[_0x51eab9(0x1d2)],function(_0x21e032){const _0x307a3e=_0x51eab9,_0x3b8bc1={};return _0x3b8bc1[_0x21e032]={[Op['like']]:'%'+_0x5b1596[_0x307a3e(0x181)]['filter']+'%'},_0x3b8bc1;})})),_0x5bd3e7=_['merge']({},_0x5bd3e7,_0x5b1596['options']),_0x2b358f[_0x51eab9(0x167)](_0x5bd3e7);})[_0x23c5ad(0x16e)](function(_0x158fa3){const _0x555736=_0x23c5ad;if(_0x158fa3)return _0x326894=_0x158fa3[_0x555736(0x18b)],typeof _0x5b1596[_0x555736(0x181)][_0x555736(0x17e)]===_0x555736(0x1ab)&&(_0x5bd3e7[_0x555736(0x184)]=qs['limit'](_0x5b1596[_0x555736(0x181)][_0x555736(0x184)]),_0x5bd3e7[_0x555736(0x154)]=qs[_0x555736(0x154)](_0x5b1596[_0x555736(0x181)][_0x555736(0x154)])),_0x2b358f['getTeams'](_0x5bd3e7);})[_0x23c5ad(0x16e)](function(_0x2db82b){if(_0x2db82b)return _0x2db82b?{'count':_0x326894,'rows':_0x2db82b}:null;})['then'](respondWithResult(_0x1fb237,null))[_0x23c5ad(0x197)](handleError(_0x1fb237,null));},exports['addTeams']=function(_0x5df40d,_0x511612){const _0x7bb731=a903_0x118aeb,_0x5b84bb=_0x5df40d['body'][_0x7bb731(0x18a)],_0x31a046=_[_0x7bb731(0x1a4)](_0x5b84bb,'id');return db[_0x7bb731(0x1d0)][_0x7bb731(0x1e7)]({'where':{'id':_0x31a046},'attributes':['id'],'include':[{'model':db[_0x7bb731(0x1e8)],'as':_0x7bb731(0x1e3),'attributes':['id',_0x7bb731(0x156),_0x7bb731(0x159),_0x7bb731(0x195),_0x7bb731(0x1ce)],'raw':!![]}]})['then'](function(_0x48c721){const _0x3c27e0=_0x7bb731;if(_0x48c721){const _0x5c9826=_[_0x3c27e0(0x19e)](_0x48c721,function(_0x1fe956){const _0x1cc38a=_0x3c27e0,_0x29f8e1=_0x1fe956[_0x1cc38a(0x190)]({'plain':!![]});return _0x29f8e1[_0x1cc38a(0x1e3)]['forEach'](function(_0x22a699){const _0x460182=_0x1cc38a;_0x22a699[_0x460182(0x188)]=_[_0x460182(0x1de)](_0x5b84bb,{'id':_0x29f8e1['id']})['penalty'];}),_0x29f8e1[_0x1cc38a(0x1e3)];});return db[_0x3c27e0(0x1c8)]['findOne']({'where':{'id':_0x5df40d[_0x3c27e0(0x1d5)]['id']}})['then'](function(_0x2459a3){const _0x1c7617=_0x3c27e0;return db[_0x1c7617(0x19c)]['transaction'](function(_0x58a4ba){const _0x40cf7c=_0x1c7617;return _0x2459a3[_0x40cf7c(0x1ea)](_0x31a046,{'transaction':_0x58a4ba})[_0x40cf7c(0x16e)](function(){const _0x3b4316=_0x40cf7c,_0x170ff4=_0x5c9826['map'](_0x3ffaaa=>{const _0x3ee807=a903_0x4ac0;return db[_0x3ee807(0x169)][_0x3ee807(0x1b0)]({'where':{'UserId':_0x3ffaaa['id'],'VoiceQueueId':_0x5df40d['params']['id']},'defaults':{'penalty':_0x3ffaaa['penalty']},'transaction':_0x58a4ba});});return Promise[_0x3b4316(0x15f)](_0x170ff4);})[_0x40cf7c(0x16e)](function(){const _0x2393bd=_0x40cf7c,_0x110fd4=_[_0x2393bd(0x1c9)](_0x5c9826,{'online':!![]}),_0x1eed97=_0x110fd4['map'](_0x47c5f0=>{const _0x4c0dde=_0x2393bd;return db[_0x4c0dde(0x160)][_0x4c0dde(0x194)]({'membername':_0x47c5f0[_0x4c0dde(0x156)],'UserId':_0x47c5f0['id'],'queue_name':_0x2459a3[_0x4c0dde(0x156)],'VoiceQueueId':_0x2459a3['id'],'interface':_[_0x4c0dde(0x1d8)](_0x47c5f0[_0x4c0dde(0x1ce)])?util[_0x4c0dde(0x19a)](_0x4c0dde(0x175),_0x47c5f0['name']):_0x47c5f0[_0x4c0dde(0x1ce)],'paused':_0x47c5f0[_0x4c0dde(0x195)]||![],'penalty':_0x47c5f0['penalty']},{'transaction':_0x58a4ba});});return Promise[_0x2393bd(0x15f)](_0x1eed97);})[_0x40cf7c(0x16e)](function(){const _0x103971=_0x40cf7c;_0x5c9826[_0x103971(0x182)](function(_0x1709c9){const _0x4d8935=_0x103971;socket[_0x4d8935(0x158)](_0x4d8935(0x157),{'UserId':_0x1709c9['id'],'VoiceQueueId':_0x2459a3['id']});});});});});}})[_0x7bb731(0x16e)](respondWithStatusCode(_0x511612,null))[_0x7bb731(0x197)](handleError(_0x511612,null));},exports[a903_0x118aeb(0x192)]=function(_0x262684,_0x1a07b8){const _0x9dbaf5=a903_0x118aeb;return db[_0x9dbaf5(0x1d0)][_0x9dbaf5(0x1e7)]({'where':{'id':_0x262684[_0x9dbaf5(0x181)][_0x9dbaf5(0x178)]},'attributes':['id'],'include':[{'model':db['User'],'as':'Agents','attributes':['id'],'raw':!![]}]})[_0x9dbaf5(0x16e)](handleEntityNotFound(_0x1a07b8,null))[_0x9dbaf5(0x16e)](function(_0x214f57){const _0x238fc8=_0x9dbaf5,_0x437731=_['map'](_0x214f57,'id');let _0x500135=[];const _0xc196c4=[],_0x1dd6e7=squel[_0x238fc8(0x1d7)]();_0x1dd6e7[_0x238fc8(0x1dc)](_0x238fc8(0x165))[_0x238fc8(0x16f)]('team_has_voice_queues','tq')[_0x238fc8(0x170)]('user_has_teams','ut',_0x238fc8(0x16d))[_0x238fc8(0x1a2)](_0x238fc8(0x16a),_0x262684[_0x238fc8(0x1d5)]['id']);for(let _0x55ec67=0x0;_0x55ec67<_0x214f57[_0x238fc8(0x18b)];_0x55ec67+=0x1){const _0x583e69=_0x214f57[_0x55ec67];for(let _0x3038e4=0x0;_0x3038e4<_0x583e69[_0x238fc8(0x1e3)][_0x238fc8(0x18b)];_0x3038e4+=0x1){const _0x48a962=_0x583e69[_0x238fc8(0x1e3)][_0x3038e4],_0x2fe01d=_0x1dd6e7[_0x238fc8(0x19d)]();_0x2fe01d['where'](_0x238fc8(0x180),_0x48a962['id']),_0xc196c4[_0x238fc8(0x15b)](db[_0x238fc8(0x19c)][_0x238fc8(0x181)](_0x2fe01d[_0x238fc8(0x174)](),{'type':QueryTypes['SELECT']})[_0x238fc8(0x16e)](function(_0x47c092){const _0x99f767=_0x238fc8;if(_0x47c092[_0x99f767(0x18b)]===0x1)return _0x48a962['id'];else{const _0x135134=_['every'](_[_0x99f767(0x1a4)](_0x47c092,_0x99f767(0x1a1)),function(_0x89cc95){return _['includes'](_0x437731,_0x89cc95);});if(_0x135134)return _0x48a962['id'];}}));}}return Promise[_0x238fc8(0x15f)](_0xc196c4)[_0x238fc8(0x16e)](function(_0x1760f7){const _0x446337=_0x238fc8;return _0x500135=_(_0x500135)[_0x446337(0x1d4)](_0x1760f7)[_0x446337(0x17d)]()[_0x446337(0x1da)](),db[_0x446337(0x1c8)]['findOne']({'where':{'id':_0x262684['params']['id']}})[_0x446337(0x16e)](function(_0x304bdf){const _0x5f4aa4=_0x446337;return db[_0x5f4aa4(0x19c)][_0x5f4aa4(0x1df)](function(_0x243deb){const _0x1632ff=_0x5f4aa4;return _0x304bdf[_0x1632ff(0x192)](_0x262684['query'][_0x1632ff(0x178)],{'transaction':_0x243deb})[_0x1632ff(0x16e)](function(){const _0x1f3311=_0x1632ff;if(!_['isEmpty'](_0x500135))return _0x304bdf['removeAgents'](_0x500135,{'transaction':_0x243deb})[_0x1f3311(0x16e)](function(){const _0x21f220=_0x1f3311;return db[_0x21f220(0x160)]['destroy']({'where':{'VoiceQueueId':_0x262684['params']['id'],'UserId':_0x500135},'transaction':_0x243deb});});})['then'](function(){const _0x48cd5f=_0x1632ff;_0x500135[_0x48cd5f(0x182)](function(_0x476c22){const _0x374fba=_0x48cd5f;socket['emit'](_0x374fba(0x1b1),{'UserId':_0x476c22,'VoiceQueueId':_0x304bdf['id']});});});});});});})['then'](respondWithStatusCode(_0x1a07b8,null))[_0x9dbaf5(0x197)](handleError(_0x1a07b8,null));},exports[a903_0x118aeb(0x1ac)]=function(_0x46c69d,_0x18be8b){const _0x554702=a903_0x118aeb;let _0x2b45f1,_0xd6b411;return db[_0x554702(0x1c8)][_0x554702(0x173)]({'where':{'id':_0x46c69d[_0x554702(0x1d5)]['id']}})[_0x554702(0x16e)](function(_0x1b6134){const _0x34cb99=_0x554702;if(_0x1b6134)return _0xd6b411=_0x1b6134,_0x1b6134[_0x34cb99(0x1ac)](_0x46c69d[_0x34cb99(0x153)][_0x34cb99(0x178)],{'through':_[_0x34cb99(0x177)](_0x46c69d[_0x34cb99(0x153)],[_0x34cb99(0x178),'id'])})['then'](function(_0x3103f5){const _0x27b6db=_0x34cb99;for(let _0x3918cb=0x0;_0x3918cb<_0x46c69d['body']['ids'][_0x27b6db(0x18b)];_0x3918cb+=0x1){socket[_0x27b6db(0x158)](_0x27b6db(0x157),{'UserId':_0x46c69d[_0x27b6db(0x153)][_0x27b6db(0x178)][_0x3918cb],'VoiceQueueId':_0x46c69d[_0x27b6db(0x1d5)]['id']});}return _0x3103f5;});})[_0x554702(0x16e)](function(_0x5e80d1){const _0xa04581=_0x554702;_0x2b45f1=_0x5e80d1||[];if(_0xd6b411)return db[_0xa04581(0x1e8)][_0xa04581(0x1e7)]({'where':{'id':_0x46c69d[_0xa04581(0x153)][_0xa04581(0x178)]},'attributes':['id',_0xa04581(0x156),_0xa04581(0x159),_0xa04581(0x195),_0xa04581(0x1ce)],'raw':!![]});})['then'](function(_0x97a89a){const _0x357ead=_0x554702;if(!_['isEmpty'](_0x97a89a)){const _0x26a170=[];for(let _0x56f9dd=0x0;_0x56f9dd<_0x97a89a[_0x357ead(0x18b)];_0x56f9dd++){_0x97a89a[_0x56f9dd][_0x357ead(0x159)]&&_0x26a170[_0x357ead(0x15b)](db[_0x357ead(0x160)]['upsert']({'membername':_0x97a89a[_0x56f9dd][_0x357ead(0x156)],'UserId':_0x97a89a[_0x56f9dd]['id'],'queue_name':_0xd6b411[_0x357ead(0x156)],'VoiceQueueId':_0xd6b411['id'],'interface':_['isNil'](_0x97a89a[_0x56f9dd][_0x357ead(0x1ce)])?util[_0x357ead(0x19a)]('SIP/%s',_0x97a89a[_0x56f9dd][_0x357ead(0x156)]):_0x97a89a[_0x56f9dd][_0x357ead(0x1ce)],'paused':_0x97a89a[_0x56f9dd][_0x357ead(0x195)]||![],'penalty':_0x46c69d[_0x357ead(0x153)][_0x357ead(0x188)]||0x0}));}return Promise[_0x357ead(0x15f)](_0x26a170);}})[_0x554702(0x16e)](function(){return _0x2b45f1;})[_0x554702(0x16e)](respondWithResult(_0x18be8b,null))[_0x554702(0x197)](handleError(_0x18be8b,null));},exports['removeAgents']=function(_0x190ef5,_0x4e09f4){const _0x1c41ee=a903_0x118aeb;return db[_0x1c41ee(0x1c8)]['findOne']({'where':{'id':_0x190ef5['params']['id']}})[_0x1c41ee(0x16e)](handleEntityNotFound(_0x4e09f4,null))[_0x1c41ee(0x16e)](function(_0x2a1a7f){const _0x5b3dc5=_0x1c41ee;if(_0x2a1a7f)return _0x2a1a7f['removeAgents'](_0x190ef5[_0x5b3dc5(0x181)]['ids'])['then'](function(){const _0x53f81f=_0x5b3dc5;if(_[_0x53f81f(0x1a6)](_0x190ef5[_0x53f81f(0x181)][_0x53f81f(0x178)]))for(let _0x203fd4=0x0;_0x203fd4<_0x190ef5['query']['ids'][_0x53f81f(0x18b)];_0x203fd4+=0x1){socket['emit'](_0x53f81f(0x1b1),{'UserId':Number(_0x190ef5[_0x53f81f(0x181)][_0x53f81f(0x178)][_0x203fd4]),'VoiceQueueId':Number(_0x190ef5['params']['id'])});}else socket[_0x53f81f(0x158)](_0x53f81f(0x1b1),{'UserId':Number(_0x190ef5['query']['ids']),'VoiceQueueId':Number(_0x190ef5[_0x53f81f(0x1d5)]['id'])});});})[_0x1c41ee(0x16e)](function(_0x4aca1a){const _0x7ec058=_0x1c41ee;return db[_0x7ec058(0x160)]['destroy']({'where':{'VoiceQueueId':_0x190ef5[_0x7ec058(0x1d5)]['id'],'UserId':_0x190ef5[_0x7ec058(0x181)][_0x7ec058(0x178)]}})[_0x7ec058(0x16e)](function(){return _0x4aca1a;});})[_0x1c41ee(0x16e)](respondWithStatusCode(_0x4e09f4,null))[_0x1c41ee(0x197)](handleError(_0x4e09f4,null));},exports[a903_0x118aeb(0x18f)]=function(_0x5a4768,_0x313f42){const _0xcdffde=a903_0x118aeb;let _0x1adf7e={};const _0x5e73cd={};let _0x16a43d,_0x29a21c;return db['VoiceQueue'][_0xcdffde(0x173)]({'where':{'id':_0x5a4768[_0xcdffde(0x1d5)]['id']}})['then'](handleEntityNotFound(_0x313f42,null))['then'](function(_0x2eb5bd){const _0x27c2ea=_0xcdffde;if(_0x2eb5bd)return _0x16a43d=_0x2eb5bd,_0x5e73cd[_0x27c2ea(0x1b8)]=_[_0x27c2ea(0x189)](db[_0x27c2ea(0x1e8)][_0x27c2ea(0x1a0)]),_0x5e73cd['query']=_['keys'](_0x5a4768[_0x27c2ea(0x181)]),_0x5e73cd['filters']=_[_0x27c2ea(0x17b)](_0x5e73cd[_0x27c2ea(0x1b8)],_0x5e73cd['query']),_0x1adf7e[_0x27c2ea(0x1d2)]=_[_0x27c2ea(0x17b)](_0x5e73cd['model'],qs[_0x27c2ea(0x18c)](_0x5a4768[_0x27c2ea(0x181)][_0x27c2ea(0x18c)])),_0x1adf7e[_0x27c2ea(0x1d2)]=_0x1adf7e['attributes']['length']?_0x1adf7e['attributes']:_0x5e73cd['model'],_0x1adf7e[_0x27c2ea(0x1af)]=qs[_0x27c2ea(0x1e0)](_0x5a4768[_0x27c2ea(0x181)][_0x27c2ea(0x1e0)]),_0x1adf7e[_0x27c2ea(0x1a2)]=qs[_0x27c2ea(0x15c)](_[_0x27c2ea(0x1c7)](_0x5a4768[_0x27c2ea(0x181)],_0x5e73cd[_0x27c2ea(0x15c)])),_0x5a4768[_0x27c2ea(0x181)][_0x27c2ea(0x1c9)]&&(_0x1adf7e[_0x27c2ea(0x1a2)]=_['merge'](_0x1adf7e[_0x27c2ea(0x1a2)],{[Op['or']]:_[_0x27c2ea(0x1a4)](_0x1adf7e[_0x27c2ea(0x1d2)],function(_0x1d2fb){const _0x36d944=_0x27c2ea,_0x1d6f2a={};return _0x1d6f2a[_0x1d2fb]={[Op['like']]:'%'+_0x5a4768[_0x36d944(0x181)][_0x36d944(0x1c9)]+'%'},_0x1d6f2a;})})),_0x1adf7e=_['merge']({},_0x1adf7e,_0x5a4768[_0x27c2ea(0x19b)]),_0x16a43d[_0x27c2ea(0x18f)](_0x1adf7e);})[_0xcdffde(0x16e)](function(_0x36861c){const _0x410f37=_0xcdffde;if(_0x36861c)return _0x29a21c=_0x36861c['length'],typeof _0x5a4768['query'][_0x410f37(0x17e)]===_0x410f37(0x1ab)&&(_0x1adf7e['limit']=qs[_0x410f37(0x184)](_0x5a4768[_0x410f37(0x181)]['limit']),_0x1adf7e[_0x410f37(0x154)]=qs[_0x410f37(0x154)](_0x5a4768[_0x410f37(0x181)][_0x410f37(0x154)])),_0x16a43d['getAgents'](_0x1adf7e);})[_0xcdffde(0x16e)](function(_0x459b5b){if(_0x459b5b)return _0x459b5b?{'count':_0x29a21c,'rows':_0x459b5b}:null;})[_0xcdffde(0x16e)](respondWithResult(_0x313f42,null))[_0xcdffde(0x197)](handleError(_0x313f42,null));},exports[a903_0x118aeb(0x18e)]=function(_0x115cf9,_0x27e153){const _0x562ec7=a903_0x118aeb;let _0x39ef79={};const _0x5217c6={};let _0x44cd74,_0x1a086c;return db[_0x562ec7(0x1c8)]['findOne']({'where':{'id':_0x115cf9['params']['id']}})['then'](handleEntityNotFound(_0x27e153,null))['then'](function(_0x34becc){const _0x2a8eac=_0x562ec7;if(_0x34becc)return _0x44cd74=_0x34becc,_0x5217c6[_0x2a8eac(0x1b8)]=_[_0x2a8eac(0x189)](db[_0x2a8eac(0x160)][_0x2a8eac(0x1a0)]),_0x5217c6['query']=_[_0x2a8eac(0x189)](_0x115cf9[_0x2a8eac(0x181)]),_0x5217c6[_0x2a8eac(0x15c)]=_[_0x2a8eac(0x17b)](_0x5217c6[_0x2a8eac(0x1b8)],_0x5217c6['query']),_0x39ef79['attributes']=_[_0x2a8eac(0x17b)](_0x5217c6[_0x2a8eac(0x1b8)],qs[_0x2a8eac(0x18c)](_0x115cf9['query']['fields'])),_0x39ef79[_0x2a8eac(0x1d2)]=_0x39ef79[_0x2a8eac(0x1d2)][_0x2a8eac(0x18b)]?_0x39ef79[_0x2a8eac(0x1d2)]:_0x5217c6['model'],_0x39ef79['order']=qs[_0x2a8eac(0x1e0)](_0x115cf9[_0x2a8eac(0x181)][_0x2a8eac(0x1e0)]),_0x39ef79['where']=qs[_0x2a8eac(0x15c)](_[_0x2a8eac(0x1c7)](_0x115cf9['query'],_0x5217c6[_0x2a8eac(0x15c)])),_0x115cf9['query'][_0x2a8eac(0x1c9)]&&(_0x39ef79[_0x2a8eac(0x1a2)]=_[_0x2a8eac(0x168)](_0x39ef79[_0x2a8eac(0x1a2)],{[Op['or']]:_[_0x2a8eac(0x1a4)](_0x39ef79['attributes'],function(_0x198150){const _0x1e939b=_0x2a8eac,_0x452de4={};return _0x452de4[_0x198150]={[Op[_0x1e939b(0x1e9)]]:'%'+_0x115cf9[_0x1e939b(0x181)][_0x1e939b(0x1c9)]+'%'},_0x452de4;})})),_0x39ef79=_[_0x2a8eac(0x168)]({},_0x39ef79,_0x115cf9[_0x2a8eac(0x19b)]),_0x44cd74[_0x2a8eac(0x18e)](_0x39ef79);})['then'](function(_0x1f4c5e){const _0x3d5d28=_0x562ec7;if(_0x1f4c5e)return _0x1a086c=_0x1f4c5e[_0x3d5d28(0x18b)],typeof _0x115cf9[_0x3d5d28(0x181)][_0x3d5d28(0x17e)]===_0x3d5d28(0x1ab)&&(_0x39ef79[_0x3d5d28(0x184)]=qs[_0x3d5d28(0x184)](_0x115cf9[_0x3d5d28(0x181)][_0x3d5d28(0x184)]),_0x39ef79[_0x3d5d28(0x154)]=qs[_0x3d5d28(0x154)](_0x115cf9[_0x3d5d28(0x181)][_0x3d5d28(0x154)])),_0x44cd74['getMembers'](_0x39ef79);})[_0x562ec7(0x16e)](function(_0x4c8ce2){return _0x4c8ce2?{'count':_0x1a086c,'rows':_0x4c8ce2}:null;})[_0x562ec7(0x16e)](respondWithResult(_0x27e153,null))['catch'](handleError(_0x27e153,null));},exports[a903_0x118aeb(0x185)]=function(_0x3d20db,_0x52fee6){const _0x2932af=a903_0x118aeb;let _0xe02e19={};const _0x24607d={};let _0x109ce8,_0x49541c;return db[_0x2932af(0x1c8)]['findOne']({'where':{'id':_0x3d20db[_0x2932af(0x1d5)]['id']}})[_0x2932af(0x16e)](handleEntityNotFound(_0x52fee6,null))[_0x2932af(0x16e)](function(_0x5022ad){const _0x3b7e63=_0x2932af;if(_0x5022ad)return _0x109ce8=_0x5022ad,_0x24607d[_0x3b7e63(0x1b8)]=_[_0x3b7e63(0x189)](db[_0x3b7e63(0x1ca)][_0x3b7e63(0x1a0)]),_0x24607d['query']=_[_0x3b7e63(0x189)](_0x3d20db['query']),_0x24607d['filters']=_[_0x3b7e63(0x17b)](_0x24607d[_0x3b7e63(0x1b8)],_0x24607d['query']),_0xe02e19['attributes']=_[_0x3b7e63(0x17b)](_0x24607d[_0x3b7e63(0x1b8)],qs[_0x3b7e63(0x18c)](_0x3d20db['query'][_0x3b7e63(0x18c)])),_0xe02e19[_0x3b7e63(0x1d2)]=_0xe02e19['attributes'][_0x3b7e63(0x18b)]?_0xe02e19[_0x3b7e63(0x1d2)]:_0x24607d[_0x3b7e63(0x1b8)],_0xe02e19['order']=qs[_0x3b7e63(0x1e0)](_0x3d20db[_0x3b7e63(0x181)][_0x3b7e63(0x1e0)]),_0xe02e19['where']=qs['filters'](_[_0x3b7e63(0x1c7)](_0x3d20db[_0x3b7e63(0x181)],_0x24607d[_0x3b7e63(0x15c)])),_0x3d20db[_0x3b7e63(0x181)][_0x3b7e63(0x1c9)]&&(_0xe02e19[_0x3b7e63(0x1a2)]=_[_0x3b7e63(0x168)](_0xe02e19[_0x3b7e63(0x1a2)],{[Op['or']]:_[_0x3b7e63(0x1a4)](_0xe02e19[_0x3b7e63(0x1d2)],function(_0x3a63b8){const _0x21d850=_0x3b7e63,_0xbb6a34={};return _0xbb6a34[_0x3a63b8]={[Op[_0x21d850(0x1e9)]]:'%'+_0x3d20db[_0x21d850(0x181)][_0x21d850(0x1c9)]+'%'},_0xbb6a34;})})),_0xe02e19=_[_0x3b7e63(0x168)]({},_0xe02e19,_0x3d20db[_0x3b7e63(0x19b)]),_0x109ce8[_0x3b7e63(0x185)](_0xe02e19);})['then'](function(_0xb8f9f2){const _0x109af8=_0x2932af;if(_0xb8f9f2)return _0x49541c=_0xb8f9f2[_0x109af8(0x18b)],typeof _0x3d20db[_0x109af8(0x181)][_0x109af8(0x17e)]==='undefined'&&(_0xe02e19[_0x109af8(0x184)]=qs[_0x109af8(0x184)](_0x3d20db[_0x109af8(0x181)][_0x109af8(0x184)]),_0xe02e19[_0x109af8(0x154)]=qs[_0x109af8(0x154)](_0x3d20db[_0x109af8(0x181)][_0x109af8(0x154)])),_0x109ce8[_0x109af8(0x185)](_0xe02e19);})[_0x2932af(0x16e)](function(_0x14cb1a){if(_0x14cb1a)return _0x14cb1a?{'count':_0x49541c,'rows':_0x14cb1a}:null;})['then'](respondWithResult(_0x52fee6,null))[_0x2932af(0x197)](handleError(_0x52fee6,null));},exports['addLists']=function(_0x12b5bb,_0x225cf7){const _0x592bf0=a903_0x118aeb;let _0x5c030f,_0x2860c5;return db[_0x592bf0(0x1c8)][_0x592bf0(0x173)]({'where':{'id':_0x12b5bb[_0x592bf0(0x1d5)]['id']}})[_0x592bf0(0x16e)](handleEntityNotFound(_0x225cf7,null))['then'](function(_0x28d749){const _0x17857f=_0x592bf0;if(_0x28d749)return _0x2860c5=_0x28d749,_0x28d749['addLists'](_0x12b5bb[_0x17857f(0x153)][_0x17857f(0x178)],{'through':_[_0x17857f(0x177)](_0x12b5bb[_0x17857f(0x153)],[_0x17857f(0x178),'id'])});return null;})[_0x592bf0(0x16e)](function(_0x2cb7c7){const _0x2b7cd4=_0x592bf0;let _0x3f1eaf;_0x5c030f=_0x2cb7c7||[];const _0x2de137=[];if(_0x2cb7c7){for(let _0x1754cc=0x0;_0x1754cc<_0x2cb7c7['length'];_0x1754cc+=0x1){const _0x1b2f69=_0x2cb7c7[_0x1754cc][_0x2b7cd4(0x190)]({'plain':!![]});_0x2860c5[_0x2b7cd4(0x162)]=_0x12b5bb['body'][_0x2b7cd4(0x162)]?_0x12b5bb[_0x2b7cd4(0x153)][_0x2b7cd4(0x162)]:_0x2860c5[_0x2b7cd4(0x162)];switch(_0x2860c5[_0x2b7cd4(0x162)]){case _0x2b7cd4(0x1c4):_0x3f1eaf=squel[_0x2b7cd4(0x1d6)]()['into'](_0x2b7cd4(0x1cc))[_0x2b7cd4(0x183)](['phone',_0x2b7cd4(0x187),_0x2b7cd4(0x1aa),'ListId',_0x2b7cd4(0x163),_0x2b7cd4(0x179),_0x2b7cd4(0x1e2)],squel[_0x2b7cd4(0x1d7)]()[_0x2b7cd4(0x1dc)](_0x2b7cd4(0x1a7),_0x2b7cd4(0x1a7))[_0x2b7cd4(0x1dc)]('NOW()',_0x2b7cd4(0x187))[_0x2b7cd4(0x1dc)]('id',_0x2b7cd4(0x1aa))[_0x2b7cd4(0x1dc)](_0x1b2f69[_0x2b7cd4(0x171)][_0x2b7cd4(0x174)](),_0x2b7cd4(0x1bd))[_0x2b7cd4(0x1dc)](_0x12b5bb['params']['id']['toString'](),_0x2b7cd4(0x163))['field']('NOW()',_0x2b7cd4(0x179))[_0x2b7cd4(0x1dc)](_0x2b7cd4(0x166),'updatedAt')[_0x2b7cd4(0x16f)](_0x2b7cd4(0x191))[_0x2b7cd4(0x1a2)](_0x2b7cd4(0x193))[_0x2b7cd4(0x1a2)](_0x2b7cd4(0x172),_0x1b2f69[_0x2b7cd4(0x171)][_0x2b7cd4(0x174)]())[_0x2b7cd4(0x1a2)](_0x2b7cd4(0x186))[_0x2b7cd4(0x1a2)](_0x2b7cd4(0x1d3),squel[_0x2b7cd4(0x1d7)]()[_0x2b7cd4(0x1dc)](_0x2b7cd4(0x198))['from'](_0x2b7cd4(0x1b4))['where'](_0x2b7cd4(0x16a),_0x12b5bb[_0x2b7cd4(0x1d5)]['id']['toString']()))[_0x2b7cd4(0x1a2)]('phone\x20NOT\x20IN\x20(?)',squel['select']()['field'](_0x2b7cd4(0x1ad))[_0x2b7cd4(0x16f)](_0x2b7cd4(0x1cc))[_0x2b7cd4(0x1a2)](_0x2b7cd4(0x16a),_0x12b5bb[_0x2b7cd4(0x1d5)]['id']['toString']())))['toString']();break;case _0x2b7cd4(0x155):_0x3f1eaf=squel['insert']()[_0x2b7cd4(0x1cd)](_0x2b7cd4(0x1cc))[_0x2b7cd4(0x183)](['phone',_0x2b7cd4(0x187),_0x2b7cd4(0x1aa),_0x2b7cd4(0x1bd),'VoiceQueueId',_0x2b7cd4(0x179),_0x2b7cd4(0x1e2)],squel[_0x2b7cd4(0x1d7)]()[_0x2b7cd4(0x1dc)]('phone',_0x2b7cd4(0x1a7))[_0x2b7cd4(0x1dc)](_0x2b7cd4(0x166),_0x2b7cd4(0x187))[_0x2b7cd4(0x1dc)]('id',_0x2b7cd4(0x1aa))[_0x2b7cd4(0x1dc)](_0x1b2f69[_0x2b7cd4(0x171)][_0x2b7cd4(0x174)](),'ListId')[_0x2b7cd4(0x1dc)](_0x12b5bb[_0x2b7cd4(0x1d5)]['id'][_0x2b7cd4(0x174)](),_0x2b7cd4(0x163))['field'](_0x2b7cd4(0x166),'createdAt')[_0x2b7cd4(0x1dc)](_0x2b7cd4(0x166),_0x2b7cd4(0x1e2))[_0x2b7cd4(0x16f)](_0x2b7cd4(0x191))[_0x2b7cd4(0x1a2)](_0x2b7cd4(0x193))['where'](_0x2b7cd4(0x172),_0x1b2f69[_0x2b7cd4(0x171)][_0x2b7cd4(0x174)]())[_0x2b7cd4(0x1a2)]('phone\x20IS\x20NOT\x20NULL')[_0x2b7cd4(0x1a2)](_0x2b7cd4(0x1d3),squel[_0x2b7cd4(0x1d7)]()[_0x2b7cd4(0x1dc)](_0x2b7cd4(0x1ad))[_0x2b7cd4(0x16f)](_0x2b7cd4(0x1cc))[_0x2b7cd4(0x1a2)]('VoiceQueueId\x20=\x20?',_0x12b5bb[_0x2b7cd4(0x1d5)]['id'][_0x2b7cd4(0x174)]())))[_0x2b7cd4(0x174)]();break;default:_0x3f1eaf=squel[_0x2b7cd4(0x1d6)]()[_0x2b7cd4(0x1cd)](_0x2b7cd4(0x1cc))[_0x2b7cd4(0x183)](['phone',_0x2b7cd4(0x187),_0x2b7cd4(0x1aa),_0x2b7cd4(0x1bd),'VoiceQueueId',_0x2b7cd4(0x179),'updatedAt'],squel[_0x2b7cd4(0x1d7)]()['field'](_0x2b7cd4(0x1a7),_0x2b7cd4(0x1a7))[_0x2b7cd4(0x1dc)]('NOW()',_0x2b7cd4(0x187))[_0x2b7cd4(0x1dc)]('id',_0x2b7cd4(0x1aa))['field'](_0x1b2f69[_0x2b7cd4(0x171)][_0x2b7cd4(0x174)](),_0x2b7cd4(0x1bd))[_0x2b7cd4(0x1dc)](_0x12b5bb[_0x2b7cd4(0x1d5)]['id'][_0x2b7cd4(0x174)](),'VoiceQueueId')[_0x2b7cd4(0x1dc)](_0x2b7cd4(0x166),'createdAt')[_0x2b7cd4(0x1dc)](_0x2b7cd4(0x166),'updatedAt')[_0x2b7cd4(0x16f)](_0x2b7cd4(0x191))['where']('deletedAt\x20IS\x20NULL')[_0x2b7cd4(0x1a2)](_0x2b7cd4(0x172),_0x1b2f69[_0x2b7cd4(0x171)][_0x2b7cd4(0x174)]())[_0x2b7cd4(0x1a2)]('phone\x20IS\x20NOT\x20NULL'))['toString']();}_0x2de137[_0x2b7cd4(0x15b)](db[_0x2b7cd4(0x19c)][_0x2b7cd4(0x181)](_0x3f1eaf));}return Promise[_0x2b7cd4(0x15f)](_0x2de137);}})['then'](function(){return _0x5c030f;})[_0x592bf0(0x16e)](respondWithResult(_0x225cf7,null))[_0x592bf0(0x197)](handleError(_0x225cf7,null));},exports[a903_0x118aeb(0x1ae)]=function(_0x1e69bd,_0x3802a5){const _0xd0c838=a903_0x118aeb;return db['VoiceQueue']['findOne']({'where':{'id':_0x1e69bd['params']['id']}})['then'](handleEntityNotFound(_0x3802a5,null))[_0xd0c838(0x16e)](function(_0x211380){const _0x355688=_0xd0c838;if(_0x211380)return _0x211380[_0x355688(0x1ae)](_0x1e69bd[_0x355688(0x181)][_0x355688(0x178)]);})['then'](function(_0x549376){const _0x52b074=_0xd0c838;if(_0x549376)return db[_0x52b074(0x1d1)][_0x52b074(0x1dd)]({'where':{'ListId':_0x1e69bd[_0x52b074(0x181)][_0x52b074(0x178)],'VoiceQueueId':_0x1e69bd[_0x52b074(0x1d5)]['id']}})[_0x52b074(0x16e)](function(){return _0x549376;});})['then'](respondWithStatusCode(_0x3802a5,null))['catch'](handleError(_0x3802a5,null));},exports[a903_0x118aeb(0x15e)]=function(_0x487dbb,_0x4fd00f){const _0x12cdc9=a903_0x118aeb;let _0x218e4e={};const _0x4b5db0={};let _0x2d5319,_0x34a4ac;return db[_0x12cdc9(0x1c8)][_0x12cdc9(0x173)]({'where':{'id':_0x487dbb['params']['id']}})[_0x12cdc9(0x16e)](handleEntityNotFound(_0x4fd00f,null))['then'](function(_0x47b0c7){const _0x12c5a5=_0x12cdc9;if(_0x47b0c7)return _0x2d5319=_0x47b0c7,_0x4b5db0[_0x12c5a5(0x1b8)]=_[_0x12c5a5(0x189)](db[_0x12c5a5(0x1ca)][_0x12c5a5(0x1a0)]),_0x4b5db0[_0x12c5a5(0x181)]=_['keys'](_0x487dbb[_0x12c5a5(0x181)]),_0x4b5db0[_0x12c5a5(0x15c)]=_[_0x12c5a5(0x17b)](_0x4b5db0[_0x12c5a5(0x1b8)],_0x4b5db0[_0x12c5a5(0x181)]),_0x218e4e[_0x12c5a5(0x1d2)]=_[_0x12c5a5(0x17b)](_0x4b5db0[_0x12c5a5(0x1b8)],qs[_0x12c5a5(0x18c)](_0x487dbb['query'][_0x12c5a5(0x18c)])),_0x218e4e[_0x12c5a5(0x1d2)]=_0x218e4e[_0x12c5a5(0x1d2)]['length']?_0x218e4e[_0x12c5a5(0x1d2)]:_0x4b5db0[_0x12c5a5(0x1b8)],_0x218e4e[_0x12c5a5(0x1af)]=qs['sort'](_0x487dbb[_0x12c5a5(0x181)][_0x12c5a5(0x1e0)]),_0x218e4e[_0x12c5a5(0x1a2)]=qs[_0x12c5a5(0x15c)](_['pick'](_0x487dbb[_0x12c5a5(0x181)],_0x4b5db0[_0x12c5a5(0x15c)])),_0x487dbb[_0x12c5a5(0x181)][_0x12c5a5(0x1c9)]&&(_0x218e4e[_0x12c5a5(0x1a2)]=_['merge'](_0x218e4e[_0x12c5a5(0x1a2)],{[Op['or']]:_[_0x12c5a5(0x1a4)](_0x218e4e[_0x12c5a5(0x1d2)],function(_0x216167){const _0x39cc0c=_0x12c5a5,_0x50f641={};return _0x50f641[_0x216167]={[Op[_0x39cc0c(0x1e9)]]:'%'+_0x487dbb['query'][_0x39cc0c(0x1c9)]+'%'},_0x50f641;})})),_0x218e4e=_['merge']({},_0x218e4e,_0x487dbb[_0x12c5a5(0x19b)]),_0x2d5319[_0x12c5a5(0x15e)](_0x218e4e);})[_0x12cdc9(0x16e)](function(_0xfdf756){const _0x19d9ba=_0x12cdc9;if(_0xfdf756)return _0x34a4ac=_0xfdf756[_0x19d9ba(0x18b)],typeof _0x487dbb['query']['nolimit']===_0x19d9ba(0x1ab)&&(_0x218e4e[_0x19d9ba(0x184)]=qs[_0x19d9ba(0x184)](_0x487dbb[_0x19d9ba(0x181)][_0x19d9ba(0x184)]),_0x218e4e[_0x19d9ba(0x154)]=qs[_0x19d9ba(0x154)](_0x487dbb['query'][_0x19d9ba(0x154)])),_0x2d5319['getBlackLists'](_0x218e4e);})['then'](function(_0x610c13){if(_0x610c13)return _0x610c13?{'count':_0x34a4ac,'rows':_0x610c13}:null;})[_0x12cdc9(0x16e)](respondWithResult(_0x4fd00f,null))[_0x12cdc9(0x197)](handleError(_0x4fd00f,null));},exports['addBlackLists']=function(_0xfd84e5,_0x459a66){const _0x165821=a903_0x118aeb;let _0x21096f;return db[_0x165821(0x1c8)][_0x165821(0x173)]({'where':{'id':_0xfd84e5[_0x165821(0x1d5)]['id']}})[_0x165821(0x16e)](handleEntityNotFound(_0x459a66,null))['then'](function(_0x16b2ad){const _0x224b43=_0x165821;if(_0x16b2ad)return _0x16b2ad[_0x224b43(0x16c)](_0xfd84e5[_0x224b43(0x153)]['ids'],{'through':_['omit'](_0xfd84e5['body'],[_0x224b43(0x178),'id'])});return null;})[_0x165821(0x16e)](function(_0x27e015){const _0x583973=_0x165821;let _0x40f9b6;_0x21096f=_0x27e015||[];const _0x192aeb=[];if(_0x27e015){for(let _0x550de5=0x0;_0x550de5<_0x27e015[_0x583973(0x18b)];_0x550de5+=0x1){const _0x5cf27a=_0x27e015[_0x550de5][_0x583973(0x190)]({'plain':!![]});_0x40f9b6=squel[_0x583973(0x1d6)]()[_0x583973(0x1cd)](_0x583973(0x1c5))[_0x583973(0x183)]([_0x583973(0x1a7),'ContactId','ListId',_0x583973(0x163),_0x583973(0x179),_0x583973(0x1e2)],squel[_0x583973(0x1d7)]()[_0x583973(0x1dc)](_0x583973(0x1a7),'phone')[_0x583973(0x1dc)]('id',_0x583973(0x1aa))[_0x583973(0x1dc)](_0x5cf27a[_0x583973(0x171)][_0x583973(0x174)](),_0x583973(0x1bd))['field'](_0xfd84e5[_0x583973(0x1d5)]['id'][_0x583973(0x174)](),_0x583973(0x163))['field'](_0x583973(0x166),_0x583973(0x179))[_0x583973(0x1dc)](_0x583973(0x166),_0x583973(0x1e2))[_0x583973(0x16f)](_0x583973(0x191))[_0x583973(0x1a2)](_0x583973(0x193))['where'](_0x583973(0x172),_0x5cf27a[_0x583973(0x171)][_0x583973(0x174)]())[_0x583973(0x1a2)]('phone\x20IS\x20NOT\x20NULL'))[_0x583973(0x174)](),_0x192aeb[_0x583973(0x15b)](db[_0x583973(0x19c)][_0x583973(0x181)](_0x40f9b6));}return Promise['all'](_0x192aeb);}})[_0x165821(0x16e)](function(){return _0x21096f;})[_0x165821(0x16e)](respondWithResult(_0x459a66,null))['catch'](handleError(_0x459a66,null));},exports[a903_0x118aeb(0x17c)]=function(_0x483a83,_0xd59c1e){const _0x31ff91=a903_0x118aeb;return db[_0x31ff91(0x1c8)][_0x31ff91(0x173)]({'where':{'id':_0x483a83[_0x31ff91(0x1d5)]['id']}})[_0x31ff91(0x16e)](handleEntityNotFound(_0xd59c1e,null))[_0x31ff91(0x16e)](function(_0x33ee50){const _0xfdb70a=_0x31ff91;if(_0x33ee50)return _0x33ee50[_0xfdb70a(0x17c)](_0x483a83[_0xfdb70a(0x181)][_0xfdb70a(0x178)]);})[_0x31ff91(0x16e)](function(_0xfda2bd){const _0x51ae3a=_0x31ff91;if(_0xfda2bd)return db[_0x51ae3a(0x1b2)][_0x51ae3a(0x1dd)]({'where':{'ListId':_0x483a83[_0x51ae3a(0x181)][_0x51ae3a(0x178)],'VoiceQueueId':_0x483a83[_0x51ae3a(0x1d5)]['id']}})['then'](function(){return _0xfda2bd;});})[_0x31ff91(0x16e)](respondWithStatusCode(_0xd59c1e,null))[_0x31ff91(0x197)](handleError(_0xd59c1e,null));}; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.events.js b/server/api/voiceQueue/voiceQueue.events.js index 0fdb5d9..aaa5aa6 100644 --- a/server/api/voiceQueue/voiceQueue.events.js +++ b/server/api/voiceQueue/voiceQueue.events.js @@ -1 +1 @@ -const a904_0x4281=['emit','undefined','VoiceQueue','remove','setMaxListeners'];(function(_0x4ea010,_0x299ce2){const _0x4281c7=function(_0x4c9cae){while(--_0x4c9cae){_0x4ea010['push'](_0x4ea010['shift']());}};_0x4281c7(++_0x299ce2);}(a904_0x4281,0x168));const a904_0x4c9c=function(_0x4ea010,_0x299ce2){_0x4ea010=_0x4ea010-0x9b;let _0x4281c7=a904_0x4281[_0x4ea010];return _0x4281c7;};const a904_0x2460c8=a904_0x4c9c;'use strict';const EventEmitter=require('events'),VoiceQueue=require('../../mysqldb')['db'][a904_0x2460c8(0x9d)],VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[a904_0x2460c8(0x9f)](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':a904_0x2460c8(0x9e)};function emitEvent(_0x30d463){return function(_0x153c7c){const _0x156499=a904_0x4c9c;VoiceQueueEvents['emit'](_0x30d463+':'+_0x153c7c['id'],_0x153c7c),VoiceQueueEvents[_0x156499(0x9b)](_0x30d463,_0x153c7c);};}for(const e in events){if(typeof events[e]!==a904_0x2460c8(0x9c)){const event=events[e];VoiceQueue['addHook'](e,emitEvent(event));}}module['exports']=VoiceQueueEvents; \ No newline at end of file +const a904_0x4b82=['undefined','../../mysqldb','remove','update','VoiceQueue','exports','emit','setMaxListeners'];(function(_0x10c116,_0x4fe44c){const _0x4b825d=function(_0x3d368a){while(--_0x3d368a){_0x10c116['push'](_0x10c116['shift']());}};_0x4b825d(++_0x4fe44c);}(a904_0x4b82,0x189));const a904_0x3d36=function(_0x10c116,_0x4fe44c){_0x10c116=_0x10c116-0xd0;let _0x4b825d=a904_0x4b82[_0x10c116];return _0x4b825d;};const a904_0x288a61=a904_0x3d36;'use strict';const EventEmitter=require('events'),VoiceQueue=require(a904_0x288a61(0xd0))['db'][a904_0x288a61(0xd3)],VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[a904_0x288a61(0xd6)](0x0);const events={'afterCreate':'save','afterUpdate':a904_0x288a61(0xd2),'afterDestroy':a904_0x288a61(0xd1)};function emitEvent(_0x55711b){return function(_0x4634b5){const _0x4fd74e=a904_0x3d36;VoiceQueueEvents[_0x4fd74e(0xd5)](_0x55711b+':'+_0x4634b5['id'],_0x4634b5),VoiceQueueEvents[_0x4fd74e(0xd5)](_0x55711b,_0x4634b5);};}for(const e in events){if(typeof events[e]!==a904_0x288a61(0xd7)){const event=events[e];VoiceQueue['addHook'](e,emitEvent(event));}}module[a904_0x288a61(0xd4)]=VoiceQueueEvents; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.model.js b/server/api/voiceQueue/voiceQueue.model.js index c57997b..4986338 100644 --- a/server/api/voiceQueue/voiceQueue.model.js +++ b/server/api/voiceQueue/voiceQueue.model.js @@ -1 +1 @@ -const a905_0x5e03=['./voiceQueue.attributes','function','./voiceQueue.options','sequelize','exports','VoiceQueue','init'];(function(_0x42a47c,_0xed613a){const _0x5e034b=function(_0x4ae0c){while(--_0x4ae0c){_0x42a47c['push'](_0x42a47c['shift']());}};_0x5e034b(++_0xed613a);}(a905_0x5e03,0x190));const a905_0x4ae0=function(_0x42a47c,_0xed613a){_0x42a47c=_0x42a47c-0x199;let _0x5e034b=a905_0x5e03[_0x42a47c];return _0x5e034b;};const a905_0x420e13=a905_0x4ae0;'use strict';const {Model}=require(a905_0x420e13(0x19b)),{attributes}=require(a905_0x420e13(0x19f)),{options}=require(a905_0x420e13(0x19a));class VoiceQueue extends Model{}function init(_0x2f7914,_0x418da4){const _0x3fa6f3=a905_0x420e13,_0x997432=options(_0x2f7914),_0x3f215b=typeof _0x418da4===_0x3fa6f3(0x199)?_0x418da4(_0x997432):_0x997432;return VoiceQueue[_0x3fa6f3(0x19e)](attributes,_0x3f215b),VoiceQueue;}module[a905_0x420e13(0x19c)][a905_0x420e13(0x19d)]=VoiceQueue,module[a905_0x420e13(0x19c)][a905_0x420e13(0x19e)]=init; \ No newline at end of file +const a905_0x21f6=['VoiceQueue','function','exports','init','./voiceQueue.attributes'];(function(_0x5e0395,_0x23cfc9){const _0x21f6fb=function(_0x1c822a){while(--_0x1c822a){_0x5e0395['push'](_0x5e0395['shift']());}};_0x21f6fb(++_0x23cfc9);}(a905_0x21f6,0xef));const a905_0x1c82=function(_0x5e0395,_0x23cfc9){_0x5e0395=_0x5e0395-0x19b;let _0x21f6fb=a905_0x21f6[_0x5e0395];return _0x21f6fb;};const a905_0x5608a7=a905_0x1c82;'use strict';const {Model}=require('sequelize'),{attributes}=require(a905_0x5608a7(0x19b)),{options}=require('./voiceQueue.options');class VoiceQueue extends Model{}function init(_0x59af0e,_0x4ae28b){const _0x3ad7c0=a905_0x5608a7,_0x3567d3=options(_0x59af0e),_0x397726=typeof _0x4ae28b===_0x3ad7c0(0x19d)?_0x4ae28b(_0x3567d3):_0x3567d3;return VoiceQueue['init'](attributes,_0x397726),VoiceQueue;}module[a905_0x5608a7(0x19e)][a905_0x5608a7(0x19c)]=VoiceQueue,module[a905_0x5608a7(0x19e)][a905_0x5608a7(0x19f)]=init; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.options.js b/server/api/voiceQueue/voiceQueue.options.js index c517e2b..0fe75f1 100644 --- a/server/api/voiceQueue/voiceQueue.options.js +++ b/server/api/voiceQueue/voiceQueue.options.js @@ -1 +1 @@ -var a906_0x2244=['exports','options','voice_queues'];(function(_0x5a89ca,_0x20e021){var _0x2244c6=function(_0x15ed6f){while(--_0x15ed6f){_0x5a89ca['push'](_0x5a89ca['shift']());}};_0x2244c6(++_0x20e021);}(a906_0x2244,0x16b));var a906_0x15ed=function(_0x5a89ca,_0x20e021){_0x5a89ca=_0x5a89ca-0x1e0;var _0x2244c6=a906_0x2244[_0x5a89ca];return _0x2244c6;};var a906_0x20c65a=a906_0x15ed;function options(_0x6d0d4c){var _0x5bc269=a906_0x15ed;return{'sequelize':_0x6d0d4c,'tableName':_0x5bc269(0x1e2),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a906_0x20c65a(0x1e0)][a906_0x20c65a(0x1e1)]=options; \ No newline at end of file +var a906_0x3202=['options','exports','voice_queues'];(function(_0x584bad,_0xe863f3){var _0x32023c=function(_0x1dbd67){while(--_0x1dbd67){_0x584bad['push'](_0x584bad['shift']());}};_0x32023c(++_0xe863f3);}(a906_0x3202,0xc6));var a906_0x1dbd=function(_0x584bad,_0xe863f3){_0x584bad=_0x584bad-0xd6;var _0x32023c=a906_0x3202[_0x584bad];return _0x32023c;};var a906_0x54b8c4=a906_0x1dbd;function options(_0x3a6433){var _0x4e08cb=a906_0x1dbd;return{'sequelize':_0x3a6433,'tableName':_0x4e08cb(0xd8),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a906_0x54b8c4(0xd7)][a906_0x54b8c4(0xd6)]=options; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.rpc.js b/server/api/voiceQueue/voiceQueue.rpc.js index 6ec30e2..97db0f1 100644 --- a/server/api/voiceQueue/voiceQueue.rpc.js +++ b/server/api/voiceQueue/voiceQueue.rpc.js @@ -1 +1 @@ -const a907_0x3de3=['message','GetVoiceQueue','raw','register','options','limit','../../rediscache','catch','findOne','lodash','attributes','include','model','debug','VoiceQueue','where','rpc','stringify','findAll','./voiceQueue.socket','../../config/logger','map','then','error','ShowVoiceQueue'];(function(_0x4b12fb,_0x3274bf){const _0x3de3dd=function(_0x2a5bf0){while(--_0x2a5bf0){_0x4b12fb['push'](_0x4b12fb['shift']());}};_0x3de3dd(++_0x3274bf);}(a907_0x3de3,0x69));const a907_0x2a5b=function(_0x4b12fb,_0x3274bf){_0x4b12fb=_0x4b12fb-0x1c8;let _0x3de3dd=a907_0x3de3[_0x4b12fb];return _0x3de3dd;};const a907_0x54d225=a907_0x2a5b;'use strict';const _=require(a907_0x54d225(0x1cc)),db=require('../../mysqldb')['db'],logger=require(a907_0x54d225(0x1d7))(a907_0x54d225(0x1d3)),{getSocket}=require(a907_0x54d225(0x1c9)),socket=getSocket();require(a907_0x54d225(0x1d6))[a907_0x54d225(0x1df)](socket),exports[a907_0x54d225(0x1dd)]=function(_0x525c61){const _0x50907d=this;return new Promise(function(_0x30f643,_0x153174){const _0x324d05=a907_0x2a5b;return db[_0x324d05(0x1d1)][_0x324d05(0x1d5)]({'raw':_0x525c61[_0x324d05(0x1e0)]?_0x525c61[_0x324d05(0x1e0)][_0x324d05(0x1de)]===undefined?!![]:![]:!![],'where':_0x525c61['options']?_0x525c61['options']['where']||null:null,'attributes':_0x525c61[_0x324d05(0x1e0)]?_0x525c61[_0x324d05(0x1e0)]['attributes']||null:null,'limit':_0x525c61[_0x324d05(0x1e0)]?_0x525c61[_0x324d05(0x1e0)][_0x324d05(0x1c8)]||null:null,'include':_0x525c61[_0x324d05(0x1e0)]?_0x525c61[_0x324d05(0x1e0)][_0x324d05(0x1ce)]?_['map'](_0x525c61['options'][_0x324d05(0x1ce)],function(_0x372d8f){const _0x2d9587=_0x324d05;return{'model':db[_0x372d8f[_0x2d9587(0x1cf)]],'as':_0x372d8f['as'],'attributes':_0x372d8f['attributes'],'include':_0x372d8f['include']?_[_0x2d9587(0x1d8)](_0x372d8f['include'],function(_0x2c0ccc){const _0x5de780=_0x2d9587;return{'model':db[_0x2c0ccc['model']],'as':_0x2c0ccc['as'],'attributes':_0x2c0ccc['attributes'],'include':_0x2c0ccc[_0x5de780(0x1ce)]?_['map'](_0x2c0ccc[_0x5de780(0x1ce)],function(_0x11e80e){const _0x2b1a65=_0x5de780;return{'model':db[_0x11e80e['model']],'as':_0x11e80e['as'],'attributes':_0x11e80e[_0x2b1a65(0x1cd)]};}):[]};}):[]};}):[]:[]})[_0x324d05(0x1d9)](function(_0x28103a){const _0x4c8d81=_0x324d05;logger['info'](_0x4c8d81(0x1dd),_0x525c61),logger[_0x4c8d81(0x1d0)]('GetVoiceQueue',_0x525c61,JSON[_0x4c8d81(0x1d4)](_0x28103a)),_0x30f643(_0x28103a);})[_0x324d05(0x1ca)](function(_0x568358){const _0x20ea1b=_0x324d05;logger['error'](_0x20ea1b(0x1dd),_0x568358[_0x20ea1b(0x1dc)],_0x525c61),_0x153174(_0x50907d[_0x20ea1b(0x1da)](0x1f4,_0x568358['message']));});});},exports[a907_0x54d225(0x1db)]=function(_0x5d4495){const _0x298efc=this;return new Promise(function(_0x106ad0,_0x5bc9fb){const _0x2619aa=a907_0x2a5b;return db['VoiceQueue'][_0x2619aa(0x1cb)]({'raw':_0x5d4495['options']?_0x5d4495[_0x2619aa(0x1e0)][_0x2619aa(0x1de)]===undefined?!![]:![]:!![],'where':_0x5d4495[_0x2619aa(0x1e0)]?_0x5d4495[_0x2619aa(0x1e0)][_0x2619aa(0x1d2)]||null:null,'attributes':_0x5d4495[_0x2619aa(0x1e0)]?_0x5d4495[_0x2619aa(0x1e0)]['attributes']||null:null,'include':_0x5d4495['options']?_0x5d4495[_0x2619aa(0x1e0)][_0x2619aa(0x1ce)]?_[_0x2619aa(0x1d8)](_0x5d4495['options'][_0x2619aa(0x1ce)],function(_0xe42cba){const _0x29e9bb=_0x2619aa;return{'model':db[_0xe42cba[_0x29e9bb(0x1cf)]],'as':_0xe42cba['as'],'attributes':_0xe42cba[_0x29e9bb(0x1cd)],'include':_0xe42cba[_0x29e9bb(0x1ce)]?_[_0x29e9bb(0x1d8)](_0xe42cba[_0x29e9bb(0x1ce)],function(_0x16cd3f){const _0x34ff53=_0x29e9bb;return{'model':db[_0x16cd3f['model']],'as':_0x16cd3f['as'],'attributes':_0x16cd3f['attributes'],'include':_0x16cd3f[_0x34ff53(0x1ce)]?_[_0x34ff53(0x1d8)](_0x16cd3f[_0x34ff53(0x1ce)],function(_0xf90650){const _0x433aef=_0x34ff53;return{'model':db[_0xf90650[_0x433aef(0x1cf)]],'as':_0xf90650['as'],'attributes':_0xf90650[_0x433aef(0x1cd)]};}):[]};}):[]};}):[]:[]})[_0x2619aa(0x1d9)](function(_0x36d972){const _0x3a8559=_0x2619aa;logger['info'](_0x3a8559(0x1db),_0x5d4495),logger[_0x3a8559(0x1d0)](_0x3a8559(0x1db),_0x5d4495,JSON[_0x3a8559(0x1d4)](_0x36d972)),_0x106ad0(_0x36d972);})[_0x2619aa(0x1ca)](function(_0x2e0853){const _0x2064eb=_0x2619aa;logger['error'](_0x2064eb(0x1db),_0x2e0853['message'],_0x5d4495),_0x5bc9fb(_0x298efc[_0x2064eb(0x1da)](0x1f4,_0x2e0853[_0x2064eb(0x1dc)]));});});}; \ No newline at end of file +const a907_0x56d2=['findOne','../../config/logger','../../mysqldb','error','GetVoiceQueue','where','../../rediscache','lodash','./voiceQueue.socket','VoiceQueue','attributes','message','debug','map','then','catch','include','info','options','raw','stringify','model','ShowVoiceQueue'];(function(_0x424b4a,_0x3b1cab){const _0x56d2bc=function(_0x37e7ab){while(--_0x37e7ab){_0x424b4a['push'](_0x424b4a['shift']());}};_0x56d2bc(++_0x3b1cab);}(a907_0x56d2,0xeb));const a907_0x37e7=function(_0x424b4a,_0x3b1cab){_0x424b4a=_0x424b4a-0x1d8;let _0x56d2bc=a907_0x56d2[_0x424b4a];return _0x56d2bc;};const a907_0x2fb707=a907_0x37e7;'use strict';const _=require(a907_0x2fb707(0x1da)),db=require(a907_0x2fb707(0x1ec))['db'],logger=require(a907_0x2fb707(0x1eb))('rpc'),{getSocket}=require(a907_0x2fb707(0x1d9)),socket=getSocket();require(a907_0x2fb707(0x1db))['register'](socket),exports[a907_0x2fb707(0x1ee)]=function(_0x4528f8){const _0x5db045=this;return new Promise(function(_0x25e846,_0x5c5f2e){const _0xe0f93e=a907_0x37e7;return db[_0xe0f93e(0x1dc)]['findAll']({'raw':_0x4528f8[_0xe0f93e(0x1e5)]?_0x4528f8['options'][_0xe0f93e(0x1e6)]===undefined?!![]:![]:!![],'where':_0x4528f8['options']?_0x4528f8[_0xe0f93e(0x1e5)][_0xe0f93e(0x1d8)]||null:null,'attributes':_0x4528f8[_0xe0f93e(0x1e5)]?_0x4528f8['options']['attributes']||null:null,'limit':_0x4528f8[_0xe0f93e(0x1e5)]?_0x4528f8[_0xe0f93e(0x1e5)]['limit']||null:null,'include':_0x4528f8[_0xe0f93e(0x1e5)]?_0x4528f8[_0xe0f93e(0x1e5)][_0xe0f93e(0x1e3)]?_[_0xe0f93e(0x1e0)](_0x4528f8[_0xe0f93e(0x1e5)][_0xe0f93e(0x1e3)],function(_0x38e886){const _0x10250e=_0xe0f93e;return{'model':db[_0x38e886[_0x10250e(0x1e8)]],'as':_0x38e886['as'],'attributes':_0x38e886['attributes'],'include':_0x38e886[_0x10250e(0x1e3)]?_[_0x10250e(0x1e0)](_0x38e886[_0x10250e(0x1e3)],function(_0x53a482){const _0x61485f=_0x10250e;return{'model':db[_0x53a482[_0x61485f(0x1e8)]],'as':_0x53a482['as'],'attributes':_0x53a482[_0x61485f(0x1dd)],'include':_0x53a482[_0x61485f(0x1e3)]?_[_0x61485f(0x1e0)](_0x53a482[_0x61485f(0x1e3)],function(_0x187fc2){const _0x5dc6a6=_0x61485f;return{'model':db[_0x187fc2[_0x5dc6a6(0x1e8)]],'as':_0x187fc2['as'],'attributes':_0x187fc2['attributes']};}):[]};}):[]};}):[]:[]})[_0xe0f93e(0x1e1)](function(_0x17d71c){const _0x31cdfa=_0xe0f93e;logger[_0x31cdfa(0x1e4)](_0x31cdfa(0x1ee),_0x4528f8),logger[_0x31cdfa(0x1df)](_0x31cdfa(0x1ee),_0x4528f8,JSON[_0x31cdfa(0x1e7)](_0x17d71c)),_0x25e846(_0x17d71c);})[_0xe0f93e(0x1e2)](function(_0x31b3d6){const _0x1e7ed8=_0xe0f93e;logger[_0x1e7ed8(0x1ed)]('GetVoiceQueue',_0x31b3d6['message'],_0x4528f8),_0x5c5f2e(_0x5db045[_0x1e7ed8(0x1ed)](0x1f4,_0x31b3d6[_0x1e7ed8(0x1de)]));});});},exports['ShowVoiceQueue']=function(_0x4b8cfc){const _0x43a515=this;return new Promise(function(_0x16a8bf,_0x552d57){const _0xc49e53=a907_0x37e7;return db['VoiceQueue'][_0xc49e53(0x1ea)]({'raw':_0x4b8cfc[_0xc49e53(0x1e5)]?_0x4b8cfc[_0xc49e53(0x1e5)][_0xc49e53(0x1e6)]===undefined?!![]:![]:!![],'where':_0x4b8cfc[_0xc49e53(0x1e5)]?_0x4b8cfc[_0xc49e53(0x1e5)][_0xc49e53(0x1d8)]||null:null,'attributes':_0x4b8cfc[_0xc49e53(0x1e5)]?_0x4b8cfc[_0xc49e53(0x1e5)][_0xc49e53(0x1dd)]||null:null,'include':_0x4b8cfc[_0xc49e53(0x1e5)]?_0x4b8cfc[_0xc49e53(0x1e5)][_0xc49e53(0x1e3)]?_[_0xc49e53(0x1e0)](_0x4b8cfc['options']['include'],function(_0x24e417){const _0x3da58e=_0xc49e53;return{'model':db[_0x24e417[_0x3da58e(0x1e8)]],'as':_0x24e417['as'],'attributes':_0x24e417[_0x3da58e(0x1dd)],'include':_0x24e417[_0x3da58e(0x1e3)]?_['map'](_0x24e417[_0x3da58e(0x1e3)],function(_0xf0429b){const _0x564d4d=_0x3da58e;return{'model':db[_0xf0429b['model']],'as':_0xf0429b['as'],'attributes':_0xf0429b[_0x564d4d(0x1dd)],'include':_0xf0429b['include']?_[_0x564d4d(0x1e0)](_0xf0429b[_0x564d4d(0x1e3)],function(_0x4a8fce){return{'model':db[_0x4a8fce['model']],'as':_0x4a8fce['as'],'attributes':_0x4a8fce['attributes']};}):[]};}):[]};}):[]:[]})[_0xc49e53(0x1e1)](function(_0x435290){const _0x3dc346=_0xc49e53;logger['info'](_0x3dc346(0x1e9),_0x4b8cfc),logger['debug']('ShowVoiceQueue',_0x4b8cfc,JSON[_0x3dc346(0x1e7)](_0x435290)),_0x16a8bf(_0x435290);})['catch'](function(_0x3b457e){const _0x289da1=_0xc49e53;logger[_0x289da1(0x1ed)](_0x289da1(0x1e9),_0x3b457e[_0x289da1(0x1de)],_0x4b8cfc),_0x552d57(_0x43a515[_0x289da1(0x1ed)](0x1f4,_0x3b457e[_0x289da1(0x1de)]));});});}; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.socket.js b/server/api/voiceQueue/voiceQueue.socket.js index 8595f3b..a769311 100644 --- a/server/api/voiceQueue/voiceQueue.socket.js +++ b/server/api/voiceQueue/voiceQueue.socket.js @@ -1 +1 @@ -const a908_0x4a5d=['register','save','update','voiceQueue:','length'];(function(_0x1bf675,_0x4f3e83){const _0x4a5d9d=function(_0x5707ad){while(--_0x5707ad){_0x1bf675['push'](_0x1bf675['shift']());}};_0x4a5d9d(++_0x4f3e83);}(a908_0x4a5d,0xea));const a908_0x5707=function(_0x1bf675,_0x4f3e83){_0x1bf675=_0x1bf675-0x174;let _0x4a5d9d=a908_0x4a5d[_0x1bf675];return _0x4a5d9d;};const a908_0x49d9d9=a908_0x5707;'use strict';const VoiceQueueEvents=require('./voiceQueue.events'),events=[a908_0x49d9d9(0x176),'remove',a908_0x49d9d9(0x177)];function createListener(_0x1ec1ac,_0x46583c){return function(_0x279a03){_0x46583c['emit'](_0x1ec1ac,_0x279a03);};}exports[a908_0x49d9d9(0x175)]=function(_0x11cef6){const _0x4ff048=a908_0x49d9d9;for(let _0x2d374e=0x0,_0x113af2=events[_0x4ff048(0x174)];_0x2d374e<_0x113af2;_0x2d374e++){const _0x335cea=events[_0x2d374e],_0x56b4a5=createListener(_0x4ff048(0x178)+_0x335cea,_0x11cef6);VoiceQueueEvents['on'](_0x335cea,_0x56b4a5);}}; \ No newline at end of file +const a908_0xa930=['emit','update','save','length','./voiceQueue.events'];(function(_0x1521cf,_0x11bd90){const _0xa930ff=function(_0x3627ee){while(--_0x3627ee){_0x1521cf['push'](_0x1521cf['shift']());}};_0xa930ff(++_0x11bd90);}(a908_0xa930,0x122));const a908_0x3627=function(_0x1521cf,_0x11bd90){_0x1521cf=_0x1521cf-0x7e;let _0xa930ff=a908_0xa930[_0x1521cf];return _0xa930ff;};const a908_0xd20313=a908_0x3627;'use strict';const VoiceQueueEvents=require(a908_0xd20313(0x82)),events=[a908_0xd20313(0x80),'remove',a908_0xd20313(0x7f)];function createListener(_0x384274,_0x3901ee){return function(_0x28894e){const _0x4a1118=a908_0x3627;_0x3901ee[_0x4a1118(0x7e)](_0x384274,_0x28894e);};}exports['register']=function(_0x10e8e0){const _0x221e00=a908_0xd20313;for(let _0x30f2d6=0x0,_0x30bd59=events[_0x221e00(0x81)];_0x30f2d6<_0x30bd59;_0x30f2d6++){const _0x109eaf=events[_0x30f2d6],_0xcc3b93=createListener('voiceQueue:'+_0x109eaf,_0x10e8e0);VoiceQueueEvents['on'](_0x109eaf,_0xcc3b93);}}; \ No newline at end of file diff --git a/server/api/voiceQueueReport/index.js b/server/api/voiceQueueReport/index.js index 80e9f6a..becd723 100644 --- a/server/api/voiceQueueReport/index.js +++ b/server/api/voiceQueueReport/index.js @@ -1 +1 @@ -const a909_0x3e8c=['destroy','post','describe','/index','index','./voiceQueueReport.controller','express','put','/:id','isAuthenticated','update','get','/describe','Router','show','create'];(function(_0x8f0c52,_0x1b511c){const _0x3e8ce3=function(_0x2e5359){while(--_0x2e5359){_0x8f0c52['push'](_0x8f0c52['shift']());}};_0x3e8ce3(++_0x1b511c);}(a909_0x3e8c,0x1b8));const a909_0x2e53=function(_0x8f0c52,_0x1b511c){_0x8f0c52=_0x8f0c52-0x139;let _0x3e8ce3=a909_0x3e8c[_0x8f0c52];return _0x3e8ce3;};const a909_0x45c49c=a909_0x2e53;'use strict';const express=require(a909_0x45c49c(0x147)),router=express[a909_0x45c49c(0x13e)](),auth=require('../../components/auth/service'),controller=require(a909_0x45c49c(0x146));router[a909_0x45c49c(0x13c)]('/',auth[a909_0x45c49c(0x13a)](),controller[a909_0x45c49c(0x145)]),router[a909_0x45c49c(0x13c)](a909_0x45c49c(0x13d),auth[a909_0x45c49c(0x13a)](),controller[a909_0x45c49c(0x143)]),router[a909_0x45c49c(0x13c)](a909_0x45c49c(0x144),auth['isAuthenticated'](),controller['getVoiceQueuesReport']),router['get'](a909_0x45c49c(0x139),auth[a909_0x45c49c(0x13a)](),controller[a909_0x45c49c(0x13f)]),router[a909_0x45c49c(0x142)]('/',auth[a909_0x45c49c(0x13a)](),controller[a909_0x45c49c(0x140)]),router[a909_0x45c49c(0x148)](a909_0x45c49c(0x139),auth[a909_0x45c49c(0x13a)](),controller[a909_0x45c49c(0x13b)]),router['delete'](a909_0x45c49c(0x139),auth[a909_0x45c49c(0x13a)](),controller[a909_0x45c49c(0x141)]),module['exports']=router; \ No newline at end of file +const a909_0x319d=['destroy','describe','update','exports','/:id','delete','express','./voiceQueueReport.controller','Router','put','/describe','isAuthenticated','post','get','create','/index','index'];(function(_0x3dda60,_0x3f0970){const _0x319da0=function(_0x52c854){while(--_0x52c854){_0x3dda60['push'](_0x3dda60['shift']());}};_0x319da0(++_0x3f0970);}(a909_0x319d,0x125));const a909_0x52c8=function(_0x3dda60,_0x3f0970){_0x3dda60=_0x3dda60-0x7e;let _0x319da0=a909_0x319d[_0x3dda60];return _0x319da0;};const a909_0x262cea=a909_0x52c8;'use strict';const express=require(a909_0x262cea(0x80)),router=express[a909_0x262cea(0x82)](),auth=require('../../components/auth/service'),controller=require(a909_0x262cea(0x81));router[a909_0x262cea(0x87)]('/',auth[a909_0x262cea(0x85)](),controller[a909_0x262cea(0x8a)]),router[a909_0x262cea(0x87)](a909_0x262cea(0x84),auth[a909_0x262cea(0x85)](),controller[a909_0x262cea(0x8c)]),router[a909_0x262cea(0x87)](a909_0x262cea(0x89),auth[a909_0x262cea(0x85)](),controller['getVoiceQueuesReport']),router['get'](a909_0x262cea(0x7e),auth[a909_0x262cea(0x85)](),controller['show']),router[a909_0x262cea(0x86)]('/',auth[a909_0x262cea(0x85)](),controller[a909_0x262cea(0x88)]),router[a909_0x262cea(0x83)](a909_0x262cea(0x7e),auth[a909_0x262cea(0x85)](),controller[a909_0x262cea(0x8d)]),router[a909_0x262cea(0x7f)](a909_0x262cea(0x7e),auth['isAuthenticated'](),controller[a909_0x262cea(0x8b)]),module[a909_0x262cea(0x8e)]=router; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.attributes.js b/server/api/voiceQueueReport/voiceQueueReport.attributes.js index 11e518b..7157a41 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.attributes.js +++ b/server/api/voiceQueueReport/voiceQueueReport.attributes.js @@ -1 +1 @@ -const a910_0x2404=['STRING','BOOLEAN','getDataValue','INTEGER','FORWARD,\x20BLIND,\x20ATTENDED','queuecallerjoinAt','format','DATE','exports','queuecallerleaveAt','sequelize','attributes','setDataValue','seconds'];(function(_0x4548ef,_0x342f17){const _0x2404e3=function(_0xe1fd1e){while(--_0xe1fd1e){_0x4548ef['push'](_0x4548ef['shift']());}};_0x2404e3(++_0x342f17);}(a910_0x2404,0x1dd));const a910_0xe1fd=function(_0x4548ef,_0x342f17){_0x4548ef=_0x4548ef-0x1cd;let _0x2404e3=a910_0x2404[_0x4548ef];return _0x2404e3;};const a910_0x3bad21=a910_0xe1fd;'use strict';const {DataTypes}=require(a910_0x3bad21(0x1d6)),moment=require('moment'),attributes={'type':{'type':DataTypes[a910_0x3bad21(0x1da)]},'uniqueid':{'type':DataTypes[a910_0x3bad21(0x1da)]},'calleridnum':{'type':DataTypes[a910_0x3bad21(0x1da)]},'calleridname':{'type':DataTypes[a910_0x3bad21(0x1da)]},'queue':{'type':DataTypes[a910_0x3bad21(0x1da)]},'queuecallerjoinAt':{'type':DataTypes[a910_0x3bad21(0x1d3)]},'queuecallerleaveAt':{'type':DataTypes[a910_0x3bad21(0x1d3)],'set':function(_0x3500e7){const _0x2a424a=a910_0x3bad21,_0x16ec4d=moment(_0x3500e7),_0x5b2c90=moment(this[_0x2a424a(0x1ce)](_0x2a424a(0x1d1)))[_0x2a424a(0x1d2)]('YYYY-MM-DD\x20HH:mm:ss'),_0x37aa8d=_0x16ec4d['diff'](_0x5b2c90,_0x2a424a(0x1d9));this[_0x2a424a(0x1d8)](_0x2a424a(0x1d5),_0x3500e7),this[_0x2a424a(0x1d8)]('holdtime',_0x37aa8d||null);}},'position':{'type':DataTypes['INTEGER']},'count':{'type':DataTypes['INTEGER']},'queuecallerabandon':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'queuecallerabandonAt':{'type':DataTypes[a910_0x3bad21(0x1d3)]},'queuecallercomplete':{'type':DataTypes[a910_0x3bad21(0x1cd)],'defaultValue':![]},'queuecallercompleteAt':{'type':DataTypes[a910_0x3bad21(0x1d3)]},'queuecallerexit':{'type':DataTypes[a910_0x3bad21(0x1cd)],'defaultValue':![]},'queuecallerexitAt':{'type':DataTypes[a910_0x3bad21(0x1d3)]},'queuecallerexitreason':{'type':DataTypes[a910_0x3bad21(0x1da)],'comment':'COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT'},'originalposition':{'type':DataTypes[a910_0x3bad21(0x1cf)]},'channel':{'type':DataTypes[a910_0x3bad21(0x1da)]},'connectedlinenum':{'type':DataTypes['STRING']},'connectedlinename':{'type':DataTypes['STRING']},'accountcode':{'type':DataTypes[a910_0x3bad21(0x1da)]},'context':{'type':DataTypes['STRING']},'exten':{'type':DataTypes[a910_0x3bad21(0x1da)]},'priority':{'type':DataTypes['STRING']},'holdtime':{'type':DataTypes[a910_0x3bad21(0x1cf)]},'mohtime':{'type':DataTypes[a910_0x3bad21(0x1cf)],'defaultValue':0x0},'assigned':{'type':DataTypes[a910_0x3bad21(0x1cd)],'defaultValue':![]},'lastAssignedTo':{'type':DataTypes[a910_0x3bad21(0x1da)]},'transfer':{'type':DataTypes[a910_0x3bad21(0x1cd)],'defaultValue':![]},'transfertype':{'type':DataTypes[a910_0x3bad21(0x1da)],'comment':a910_0x3bad21(0x1d0)},'transferexten':{'type':DataTypes[a910_0x3bad21(0x1da)]},'transferuniqueid':{'type':DataTypes[a910_0x3bad21(0x1da)]},'disposition':{'type':DataTypes[a910_0x3bad21(0x1da)]},'secondDisposition':{'type':DataTypes[a910_0x3bad21(0x1da)]},'thirdDisposition':{'type':DataTypes[a910_0x3bad21(0x1da)]},'queuecallerenterreason':{'type':DataTypes[a910_0x3bad21(0x1cf)],'defaultValue':0x0}};module[a910_0x3bad21(0x1d4)][a910_0x3bad21(0x1d7)]=attributes; \ No newline at end of file +const a910_0x1749=['INTEGER','DATE','sequelize','holdtime','format','STRING','exports','setDataValue','FORWARD,\x20BLIND,\x20ATTENDED','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','diff','seconds','YYYY-MM-DD\x20HH:mm:ss','BOOLEAN','moment','queuecallerjoinAt'];(function(_0x331956,_0x1023eb){const _0x17497a=function(_0x71805a){while(--_0x71805a){_0x331956['push'](_0x331956['shift']());}};_0x17497a(++_0x1023eb);}(a910_0x1749,0xf3));const a910_0x7180=function(_0x331956,_0x1023eb){_0x331956=_0x331956-0x166;let _0x17497a=a910_0x1749[_0x331956];return _0x17497a;};const a910_0x362589=a910_0x7180;'use strict';const {DataTypes}=require(a910_0x362589(0x175)),moment=require(a910_0x362589(0x171)),attributes={'type':{'type':DataTypes[a910_0x362589(0x168)]},'uniqueid':{'type':DataTypes[a910_0x362589(0x168)]},'calleridnum':{'type':DataTypes[a910_0x362589(0x168)]},'calleridname':{'type':DataTypes[a910_0x362589(0x168)]},'queue':{'type':DataTypes['STRING']},'queuecallerjoinAt':{'type':DataTypes[a910_0x362589(0x174)]},'queuecallerleaveAt':{'type':DataTypes['DATE'],'set':function(_0x3da5bc){const _0x118f8a=a910_0x362589,_0x1eb216=moment(_0x3da5bc),_0x56ed2f=moment(this['getDataValue'](_0x118f8a(0x172)))[_0x118f8a(0x167)](_0x118f8a(0x16f)),_0x2fa438=_0x1eb216[_0x118f8a(0x16d)](_0x56ed2f,_0x118f8a(0x16e));this[_0x118f8a(0x16a)]('queuecallerleaveAt',_0x3da5bc),this['setDataValue'](_0x118f8a(0x166),_0x2fa438||null);}},'position':{'type':DataTypes['INTEGER']},'count':{'type':DataTypes[a910_0x362589(0x173)]},'queuecallerabandon':{'type':DataTypes[a910_0x362589(0x170)],'defaultValue':![]},'queuecallerabandonAt':{'type':DataTypes[a910_0x362589(0x174)]},'queuecallercomplete':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'queuecallercompleteAt':{'type':DataTypes[a910_0x362589(0x174)]},'queuecallerexit':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'queuecallerexitAt':{'type':DataTypes[a910_0x362589(0x174)]},'queuecallerexitreason':{'type':DataTypes[a910_0x362589(0x168)],'comment':a910_0x362589(0x16c)},'originalposition':{'type':DataTypes['INTEGER']},'channel':{'type':DataTypes[a910_0x362589(0x168)]},'connectedlinenum':{'type':DataTypes[a910_0x362589(0x168)]},'connectedlinename':{'type':DataTypes[a910_0x362589(0x168)]},'accountcode':{'type':DataTypes[a910_0x362589(0x168)]},'context':{'type':DataTypes['STRING']},'exten':{'type':DataTypes[a910_0x362589(0x168)]},'priority':{'type':DataTypes[a910_0x362589(0x168)]},'holdtime':{'type':DataTypes[a910_0x362589(0x173)]},'mohtime':{'type':DataTypes[a910_0x362589(0x173)],'defaultValue':0x0},'assigned':{'type':DataTypes[a910_0x362589(0x170)],'defaultValue':![]},'lastAssignedTo':{'type':DataTypes[a910_0x362589(0x168)]},'transfer':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'transfertype':{'type':DataTypes[a910_0x362589(0x168)],'comment':a910_0x362589(0x16b)},'transferexten':{'type':DataTypes['STRING']},'transferuniqueid':{'type':DataTypes[a910_0x362589(0x168)]},'disposition':{'type':DataTypes['STRING']},'secondDisposition':{'type':DataTypes[a910_0x362589(0x168)]},'thirdDisposition':{'type':DataTypes[a910_0x362589(0x168)]},'queuecallerenterreason':{'type':DataTypes[a910_0x362589(0x173)],'defaultValue':0x0}};module[a910_0x362589(0x169)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.controller.js b/server/api/voiceQueueReport/voiceQueueReport.controller.js index ed8ad69..2b5f4a6 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.controller.js +++ b/server/api/voiceQueueReport/voiceQueueReport.controller.js @@ -1 +1 @@ -const a911_0x2cf8=['VIRTUAL','findAll','index','destroy','VoiceQueueReport','params','catch','options','like','key','nolimit','where','status','attributes','include','sendStatus','set','order','limit','model','query','type','json','error','body','rows','length','filter','fields','undefined','count','includeAll','send','update','name','map','stack','merge','../../rediscache','pick','keys','getVoiceQueuesReport','sequelize','../../mysqldb','fieldName','describe','rawAttributes','findOne','offset','sort','then','filters','../../config/logger','register','lodash','intersection','create'];(function(_0x1438f6,_0x531379){const _0x2cf80d=function(_0x254f54){while(--_0x254f54){_0x1438f6['push'](_0x1438f6['shift']());}};_0x2cf80d(++_0x531379);}(a911_0x2cf8,0x1ba));const a911_0x254f=function(_0x1438f6,_0x531379){_0x1438f6=_0x1438f6-0x1f4;let _0x2cf80d=a911_0x2cf8[_0x1438f6];return _0x2cf80d;};const a911_0x5c6e26=a911_0x254f;'use strict';const _=require(a911_0x5c6e26(0x1ff)),qs=require('../../components/parsers/qs'),logger=require(a911_0x5c6e26(0x1fd))('api'),{getSocket}=require(a911_0x5c6e26(0x228)),socket=getSocket(),{db}=require(a911_0x5c6e26(0x1f4)),{Op}=require(a911_0x5c6e26(0x22c));require('./voiceQueueReport.socket')[a911_0x5c6e26(0x1fe)](socket);function respondWithResult(_0x13bc81,_0x1ca679){return _0x1ca679=_0x1ca679||0xc8,function(_0x2ead9b){const _0x176a86=a911_0x254f;if(_0x2ead9b)return _0x13bc81[_0x176a86(0x20e)](_0x1ca679)['json'](_0x2ead9b);};}function respondWithFilteredResult(_0x135f7c,_0x13cb36){return function(_0x3c8b98){const _0x25ab85=a911_0x254f;if(_0x3c8b98){const _0x4f1690=_0x3c8b98[_0x25ab85(0x220)],_0x359df9=_0x13cb36[_0x25ab85(0x1f9)];let _0x52dc3d=_0x13cb36['offset']+_0x13cb36[_0x25ab85(0x214)],_0x3b82b0;return _0x52dc3d>=_0x4f1690?(_0x52dc3d=_0x4f1690,_0x3b82b0=0xc8):_0x3b82b0=0xce,_0x135f7c[_0x25ab85(0x20e)](_0x3b82b0),_0x135f7c[_0x25ab85(0x212)]('Content-Range',_0x359df9+'-'+_0x52dc3d+'/'+_0x4f1690)[_0x25ab85(0x218)](_0x3c8b98);}return null;};}function saveUpdates(_0x163482){return function(_0x4c243b){const _0x33a215=a911_0x254f;if(_0x4c243b)return _0x4c243b[_0x33a215(0x223)](_0x163482)['then'](function(_0x5d7b83){return _0x5d7b83;});return null;};}function removeEntity(_0x16a1a6){return function(_0x468b03){const _0x36ace1=a911_0x254f;if(_0x468b03)return _0x468b03[_0x36ace1(0x205)]()[_0x36ace1(0x1fb)](function(){_0x16a1a6['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x4e79e2){return function(_0x3025c7){const _0x42ee1d=a911_0x254f;return!_0x3025c7&&_0x4e79e2[_0x42ee1d(0x211)](0x194),_0x3025c7;};}function handleError(_0x11fc0e,_0x18a63b){return _0x18a63b=_0x18a63b||0x1f4,function(_0x586d67){const _0x37b098=a911_0x254f;logger[_0x37b098(0x219)](_0x586d67[_0x37b098(0x226)]),_0x586d67['name']&&delete _0x586d67[_0x37b098(0x224)],_0x11fc0e[_0x37b098(0x20e)](_0x18a63b)[_0x37b098(0x222)](_0x586d67);};}exports[a911_0x5c6e26(0x204)]=function(_0x55e41a,_0x16b412){const _0x51ca5f=a911_0x5c6e26;let _0x256166={};const _0x893be7={},_0x32b110={'count':0x0,'rows':[]},_0xc793f1=_['map'](db[_0x51ca5f(0x206)][_0x51ca5f(0x1f7)],function(_0x1e1b27){const _0x28cc58=_0x51ca5f;return{'name':_0x1e1b27[_0x28cc58(0x1f5)],'type':_0x1e1b27[_0x28cc58(0x217)][_0x28cc58(0x20b)]};});_0x893be7[_0x51ca5f(0x215)]=_[_0x51ca5f(0x225)](_0xc793f1,_0x51ca5f(0x224)),_0x893be7[_0x51ca5f(0x216)]=_['keys'](_0x55e41a['query']),_0x893be7[_0x51ca5f(0x1fc)]=_[_0x51ca5f(0x200)](_0x893be7[_0x51ca5f(0x215)],_0x893be7[_0x51ca5f(0x216)]),_0x256166[_0x51ca5f(0x20f)]=_['intersection'](_0x893be7[_0x51ca5f(0x215)],qs['fields'](_0x55e41a[_0x51ca5f(0x216)][_0x51ca5f(0x21e)])),_0x256166[_0x51ca5f(0x20f)]=_0x256166[_0x51ca5f(0x20f)][_0x51ca5f(0x21c)]?_0x256166[_0x51ca5f(0x20f)]:_0x893be7[_0x51ca5f(0x215)];typeof _0x55e41a[_0x51ca5f(0x216)][_0x51ca5f(0x20c)]==='undefined'&&(_0x256166[_0x51ca5f(0x214)]=qs[_0x51ca5f(0x214)](_0x55e41a[_0x51ca5f(0x216)]['limit']),_0x256166[_0x51ca5f(0x1f9)]=qs[_0x51ca5f(0x1f9)](_0x55e41a[_0x51ca5f(0x216)][_0x51ca5f(0x1f9)]));_0x256166[_0x51ca5f(0x213)]=qs[_0x51ca5f(0x1fa)](_0x55e41a['query'][_0x51ca5f(0x1fa)]),_0x256166['where']=qs[_0x51ca5f(0x1fc)](_[_0x51ca5f(0x229)](_0x55e41a['query'],_0x893be7[_0x51ca5f(0x1fc)]),_0xc793f1);_0x55e41a['query'][_0x51ca5f(0x21d)]&&(_0x256166[_0x51ca5f(0x20d)]=_[_0x51ca5f(0x227)](_0x256166[_0x51ca5f(0x20d)],{[Op['or']]:_[_0x51ca5f(0x225)](_0xc793f1,function(_0x4d31f3){const _0x24e103=_0x51ca5f;if(_0x4d31f3[_0x24e103(0x217)]!==_0x24e103(0x202)){const _0x51358b={};return _0x51358b[_0x4d31f3[_0x24e103(0x224)]]={[Op['like']]:'%'+_0x55e41a[_0x24e103(0x216)][_0x24e103(0x21d)]+'%'},_0x51358b;}})}));_0x256166=_[_0x51ca5f(0x227)]({},_0x256166,_0x55e41a[_0x51ca5f(0x209)]);const _0x418f4e={'where':_0x256166[_0x51ca5f(0x20d)]};return db['VoiceQueueReport'][_0x51ca5f(0x220)](_0x418f4e)[_0x51ca5f(0x1fb)](function(_0x5b4644){const _0x2c4e25=_0x51ca5f;return _0x32b110['count']=_0x5b4644,_0x55e41a['query'][_0x2c4e25(0x221)]&&(_0x256166['include']=[{'all':!![]}]),db[_0x2c4e25(0x206)][_0x2c4e25(0x203)](_0x256166);})[_0x51ca5f(0x1fb)](function(_0x3899c4){const _0x187413=_0x51ca5f;return _0x32b110[_0x187413(0x21b)]=_0x3899c4,_0x32b110;})[_0x51ca5f(0x1fb)](respondWithFilteredResult(_0x16b412,_0x256166))['catch'](handleError(_0x16b412,null));},exports['show']=function(_0xae268b,_0x439cb1){const _0x217b74=a911_0x5c6e26;let _0x1426e0={'raw':![],'where':{'id':_0xae268b[_0x217b74(0x207)]['id']}};const _0x408e03={};return _0x408e03['model']=_[_0x217b74(0x22a)](db['VoiceQueueReport'][_0x217b74(0x1f7)]),_0x408e03[_0x217b74(0x216)]=_[_0x217b74(0x22a)](_0xae268b[_0x217b74(0x216)]),_0x408e03['filters']=_['intersection'](_0x408e03['model'],_0x408e03['query']),_0x1426e0['attributes']=_[_0x217b74(0x200)](_0x408e03['model'],qs['fields'](_0xae268b[_0x217b74(0x216)][_0x217b74(0x21e)])),_0x1426e0['attributes']=_0x1426e0['attributes'][_0x217b74(0x21c)]?_0x1426e0[_0x217b74(0x20f)]:_0x408e03[_0x217b74(0x215)],_0xae268b[_0x217b74(0x216)]['includeAll']&&(_0x1426e0[_0x217b74(0x210)]=[{'all':!![]}]),_0x1426e0=_['merge']({},_0x1426e0,_0xae268b[_0x217b74(0x209)]),db['VoiceQueueReport']['findOne'](_0x1426e0)[_0x217b74(0x1fb)](handleEntityNotFound(_0x439cb1,null))[_0x217b74(0x1fb)](respondWithResult(_0x439cb1,null))['catch'](handleError(_0x439cb1,null));},exports['create']=function(_0x217f19,_0x114de7){const _0xf60cec=a911_0x5c6e26;return db[_0xf60cec(0x206)][_0xf60cec(0x201)](_0x217f19['body'],{})[_0xf60cec(0x1fb)](respondWithResult(_0x114de7,0xc9))[_0xf60cec(0x208)](handleError(_0x114de7,null));},exports[a911_0x5c6e26(0x223)]=function(_0x3ea9db,_0x45653a){const _0x5c73a0=a911_0x5c6e26;return _0x3ea9db[_0x5c73a0(0x21a)]['id']&&delete _0x3ea9db['body']['id'],db[_0x5c73a0(0x206)][_0x5c73a0(0x1f8)]({'where':{'id':_0x3ea9db[_0x5c73a0(0x207)]['id']}})[_0x5c73a0(0x1fb)](handleEntityNotFound(_0x45653a,null))['then'](saveUpdates(_0x3ea9db[_0x5c73a0(0x21a)],null))[_0x5c73a0(0x1fb)](respondWithResult(_0x45653a,null))['catch'](handleError(_0x45653a,null));},exports[a911_0x5c6e26(0x205)]=function(_0x51def0,_0x23dfdc){const _0x324f2e=a911_0x5c6e26;return db['VoiceQueueReport'][_0x324f2e(0x1f8)]({'where':{'id':_0x51def0[_0x324f2e(0x207)]['id']}})[_0x324f2e(0x1fb)](handleEntityNotFound(_0x23dfdc,null))[_0x324f2e(0x1fb)](removeEntity(_0x23dfdc,null))['catch'](handleError(_0x23dfdc,null));},exports['describe']=function(_0x5b4271,_0x3d4c74){const _0x5a70c6=a911_0x5c6e26;return db['VoiceQueueReport'][_0x5a70c6(0x1f6)]()[_0x5a70c6(0x1fb)](respondWithResult(_0x3d4c74,null))[_0x5a70c6(0x208)](handleError(_0x3d4c74,null));},exports[a911_0x5c6e26(0x22b)]=function(_0x1f7e21,_0x318bf8){const _0x16b0fa=a911_0x5c6e26;let _0xcf39db={};const _0x301df0={},_0x4e9c7d={'count':0x0,'rows':[]};_0x301df0[_0x16b0fa(0x215)]=_[_0x16b0fa(0x22a)](db[_0x16b0fa(0x206)][_0x16b0fa(0x1f7)]),_0x301df0[_0x16b0fa(0x216)]=_[_0x16b0fa(0x22a)](_0x1f7e21[_0x16b0fa(0x216)]),_0x301df0[_0x16b0fa(0x1fc)]=_[_0x16b0fa(0x200)](_0x301df0[_0x16b0fa(0x215)],_0x301df0[_0x16b0fa(0x216)]),_0xcf39db['attributes']=_[_0x16b0fa(0x200)](_0x301df0[_0x16b0fa(0x215)],qs[_0x16b0fa(0x21e)](_0x1f7e21[_0x16b0fa(0x216)]['fields'])),_0xcf39db[_0x16b0fa(0x20f)]=_0xcf39db[_0x16b0fa(0x20f)]['length']?_0xcf39db[_0x16b0fa(0x20f)]:_0x301df0[_0x16b0fa(0x215)];typeof _0x1f7e21['query'][_0x16b0fa(0x20c)]===_0x16b0fa(0x21f)&&(_0xcf39db[_0x16b0fa(0x214)]=qs[_0x16b0fa(0x214)](_0x1f7e21[_0x16b0fa(0x216)][_0x16b0fa(0x214)]),_0xcf39db['offset']=qs['offset'](_0x1f7e21[_0x16b0fa(0x216)][_0x16b0fa(0x1f9)]));_0xcf39db['order']=qs[_0x16b0fa(0x1fa)](_0x1f7e21['query']['sort']),_0xcf39db['where']=qs[_0x16b0fa(0x1fc)](_[_0x16b0fa(0x229)](_0x1f7e21[_0x16b0fa(0x216)],_0x301df0['filters']));_0x1f7e21[_0x16b0fa(0x216)][_0x16b0fa(0x21d)]&&(_0xcf39db['where']=_[_0x16b0fa(0x227)](_0xcf39db[_0x16b0fa(0x20d)],{[Op['or']]:_[_0x16b0fa(0x225)](_0xcf39db[_0x16b0fa(0x20f)],function(_0x5e538e){const _0x4913f8=_0x16b0fa,_0x228d8f={};return _0x228d8f[_0x5e538e]={[Op[_0x4913f8(0x20a)]]:'%'+_0x1f7e21[_0x4913f8(0x216)]['filter']+'%'},_0x228d8f;})}));_0xcf39db=_[_0x16b0fa(0x227)]({},_0xcf39db,_0x1f7e21[_0x16b0fa(0x209)]);const _0x3d73ac={'where':_0xcf39db[_0x16b0fa(0x20d)]};return db['VoiceQueueReport'][_0x16b0fa(0x220)](_0x3d73ac)[_0x16b0fa(0x1fb)](function(_0x27c254){const _0x179ac1=_0x16b0fa;return _0x4e9c7d[_0x179ac1(0x220)]=_0x27c254,_0x1f7e21[_0x179ac1(0x216)]['includeAll']&&(_0xcf39db[_0x179ac1(0x210)]=[{'all':!![]}]),db[_0x179ac1(0x206)][_0x179ac1(0x203)](_0xcf39db);})[_0x16b0fa(0x1fb)](function(_0x1f0879){const _0x567b21=_0x16b0fa;return _0x4e9c7d[_0x567b21(0x21b)]=_0x1f0879,_0x4e9c7d;})['then'](respondWithFilteredResult(_0x318bf8,_0xcf39db,_0x16b0fa(0x22b)))[_0x16b0fa(0x208)](handleError(_0x318bf8,null,_0x16b0fa(0x22b)));}; \ No newline at end of file +const a911_0xc1ae=['filter','show','fields','map','json','includeAll','rows','name','error','end','register','VoiceQueueReport','body','model','options','catch','pick','key','create','sequelize','lodash','destroy','keys','describe','../../components/parsers/qs','status','set','fieldName','send','length','nolimit','stack','sendStatus','limit','filters','rawAttributes','offset','getVoiceQueuesReport','count','undefined','sort','../../config/logger','params','order','index','VIRTUAL','query','findAll','include','findOne','merge','then','attributes','api','update','../../mysqldb','./voiceQueueReport.socket','Content-Range','where','intersection','../../rediscache','type'];(function(_0x4fee97,_0x465a77){const _0xc1ae40=function(_0x35f750){while(--_0x35f750){_0x4fee97['push'](_0x4fee97['shift']());}};_0xc1ae40(++_0x465a77);}(a911_0xc1ae,0xf4));const a911_0x35f7=function(_0x4fee97,_0x465a77){_0x4fee97=_0x4fee97-0x16d;let _0xc1ae40=a911_0xc1ae[_0x4fee97];return _0xc1ae40;};const a911_0x257f9e=a911_0x35f7;'use strict';const _=require(a911_0x257f9e(0x185)),qs=require(a911_0x257f9e(0x189)),logger=require(a911_0x257f9e(0x19a))(a911_0x257f9e(0x1a6)),{getSocket}=require(a911_0x257f9e(0x16f)),socket=getSocket(),{db}=require(a911_0x257f9e(0x1a8)),{Op}=require(a911_0x257f9e(0x184));require(a911_0x257f9e(0x1a9))[a911_0x257f9e(0x17b)](socket);function respondWithResult(_0x58d490,_0x32c80b){return _0x32c80b=_0x32c80b||0xc8,function(_0x356b79){const _0x156692=a911_0x35f7;if(_0x356b79)return _0x58d490[_0x156692(0x18a)](_0x32c80b)[_0x156692(0x175)](_0x356b79);};}function respondWithFilteredResult(_0x5e7e74,_0x2837bc){return function(_0x33d4c8){const _0xfebb18=a911_0x35f7;if(_0x33d4c8){const _0x181fc1=_0x33d4c8[_0xfebb18(0x197)],_0x1b1cb4=_0x2837bc['offset'];let _0x476d3e=_0x2837bc[_0xfebb18(0x195)]+_0x2837bc[_0xfebb18(0x192)],_0x5163aa;return _0x476d3e>=_0x181fc1?(_0x476d3e=_0x181fc1,_0x5163aa=0xc8):_0x5163aa=0xce,_0x5e7e74[_0xfebb18(0x18a)](_0x5163aa),_0x5e7e74[_0xfebb18(0x18b)](_0xfebb18(0x1aa),_0x1b1cb4+'-'+_0x476d3e+'/'+_0x181fc1)[_0xfebb18(0x175)](_0x33d4c8);}return null;};}function saveUpdates(_0x24ab69){return function(_0xa3b17e){const _0x54391b=a911_0x35f7;if(_0xa3b17e)return _0xa3b17e['update'](_0x24ab69)[_0x54391b(0x1a4)](function(_0x50d9c4){return _0x50d9c4;});return null;};}function removeEntity(_0x1753d4){return function(_0x4c26ba){const _0x57ccdd=a911_0x35f7;if(_0x4c26ba)return _0x4c26ba[_0x57ccdd(0x186)]()[_0x57ccdd(0x1a4)](function(){const _0x43df23=_0x57ccdd;_0x1753d4[_0x43df23(0x18a)](0xcc)[_0x43df23(0x17a)]();});};}function handleEntityNotFound(_0x419bca){return function(_0x4a382d){const _0x1fb80e=a911_0x35f7;return!_0x4a382d&&_0x419bca[_0x1fb80e(0x191)](0x194),_0x4a382d;};}function handleError(_0x4fb901,_0x2e985a){return _0x2e985a=_0x2e985a||0x1f4,function(_0x54454b){const _0xb8b982=a911_0x35f7;logger[_0xb8b982(0x179)](_0x54454b[_0xb8b982(0x190)]),_0x54454b[_0xb8b982(0x178)]&&delete _0x54454b[_0xb8b982(0x178)],_0x4fb901[_0xb8b982(0x18a)](_0x2e985a)[_0xb8b982(0x18d)](_0x54454b);};}exports[a911_0x257f9e(0x19d)]=function(_0x2aeebf,_0x1b027c){const _0xbab12=a911_0x257f9e;let _0x4e62a5={};const _0x4f6339={},_0x138356={'count':0x0,'rows':[]},_0x474c1c=_[_0xbab12(0x174)](db[_0xbab12(0x17c)]['rawAttributes'],function(_0x2b9322){const _0x319df1=_0xbab12;return{'name':_0x2b9322[_0x319df1(0x18c)],'type':_0x2b9322[_0x319df1(0x170)][_0x319df1(0x182)]};});_0x4f6339[_0xbab12(0x17e)]=_[_0xbab12(0x174)](_0x474c1c,_0xbab12(0x178)),_0x4f6339[_0xbab12(0x19f)]=_[_0xbab12(0x187)](_0x2aeebf[_0xbab12(0x19f)]),_0x4f6339[_0xbab12(0x193)]=_[_0xbab12(0x16e)](_0x4f6339[_0xbab12(0x17e)],_0x4f6339[_0xbab12(0x19f)]),_0x4e62a5[_0xbab12(0x1a5)]=_[_0xbab12(0x16e)](_0x4f6339['model'],qs['fields'](_0x2aeebf[_0xbab12(0x19f)][_0xbab12(0x173)])),_0x4e62a5[_0xbab12(0x1a5)]=_0x4e62a5[_0xbab12(0x1a5)][_0xbab12(0x18e)]?_0x4e62a5[_0xbab12(0x1a5)]:_0x4f6339[_0xbab12(0x17e)];typeof _0x2aeebf[_0xbab12(0x19f)][_0xbab12(0x18f)]===_0xbab12(0x198)&&(_0x4e62a5['limit']=qs['limit'](_0x2aeebf['query'][_0xbab12(0x192)]),_0x4e62a5[_0xbab12(0x195)]=qs[_0xbab12(0x195)](_0x2aeebf[_0xbab12(0x19f)][_0xbab12(0x195)]));_0x4e62a5[_0xbab12(0x19c)]=qs[_0xbab12(0x199)](_0x2aeebf['query']['sort']),_0x4e62a5['where']=qs['filters'](_[_0xbab12(0x181)](_0x2aeebf[_0xbab12(0x19f)],_0x4f6339[_0xbab12(0x193)]),_0x474c1c);_0x2aeebf[_0xbab12(0x19f)][_0xbab12(0x171)]&&(_0x4e62a5['where']=_[_0xbab12(0x1a3)](_0x4e62a5[_0xbab12(0x16d)],{[Op['or']]:_['map'](_0x474c1c,function(_0x49248d){const _0x196d4e=_0xbab12;if(_0x49248d[_0x196d4e(0x170)]!==_0x196d4e(0x19e)){const _0x17c6b1={};return _0x17c6b1[_0x49248d['name']]={[Op['like']]:'%'+_0x2aeebf['query'][_0x196d4e(0x171)]+'%'},_0x17c6b1;}})}));_0x4e62a5=_[_0xbab12(0x1a3)]({},_0x4e62a5,_0x2aeebf[_0xbab12(0x17f)]);const _0x525487={'where':_0x4e62a5['where']};return db[_0xbab12(0x17c)][_0xbab12(0x197)](_0x525487)[_0xbab12(0x1a4)](function(_0x1f35be){const _0x3cc2a7=_0xbab12;return _0x138356[_0x3cc2a7(0x197)]=_0x1f35be,_0x2aeebf['query']['includeAll']&&(_0x4e62a5[_0x3cc2a7(0x1a1)]=[{'all':!![]}]),db[_0x3cc2a7(0x17c)][_0x3cc2a7(0x1a0)](_0x4e62a5);})['then'](function(_0x33b90c){return _0x138356['rows']=_0x33b90c,_0x138356;})[_0xbab12(0x1a4)](respondWithFilteredResult(_0x1b027c,_0x4e62a5))[_0xbab12(0x180)](handleError(_0x1b027c,null));},exports[a911_0x257f9e(0x172)]=function(_0x14d929,_0x210d20){const _0x42f15e=a911_0x257f9e;let _0x3abe66={'raw':![],'where':{'id':_0x14d929[_0x42f15e(0x19b)]['id']}};const _0x1eeb9b={};return _0x1eeb9b[_0x42f15e(0x17e)]=_[_0x42f15e(0x187)](db[_0x42f15e(0x17c)][_0x42f15e(0x194)]),_0x1eeb9b['query']=_['keys'](_0x14d929[_0x42f15e(0x19f)]),_0x1eeb9b['filters']=_[_0x42f15e(0x16e)](_0x1eeb9b[_0x42f15e(0x17e)],_0x1eeb9b[_0x42f15e(0x19f)]),_0x3abe66[_0x42f15e(0x1a5)]=_[_0x42f15e(0x16e)](_0x1eeb9b[_0x42f15e(0x17e)],qs['fields'](_0x14d929[_0x42f15e(0x19f)][_0x42f15e(0x173)])),_0x3abe66['attributes']=_0x3abe66[_0x42f15e(0x1a5)]['length']?_0x3abe66[_0x42f15e(0x1a5)]:_0x1eeb9b[_0x42f15e(0x17e)],_0x14d929['query']['includeAll']&&(_0x3abe66[_0x42f15e(0x1a1)]=[{'all':!![]}]),_0x3abe66=_['merge']({},_0x3abe66,_0x14d929[_0x42f15e(0x17f)]),db[_0x42f15e(0x17c)][_0x42f15e(0x1a2)](_0x3abe66)[_0x42f15e(0x1a4)](handleEntityNotFound(_0x210d20,null))['then'](respondWithResult(_0x210d20,null))[_0x42f15e(0x180)](handleError(_0x210d20,null));},exports[a911_0x257f9e(0x183)]=function(_0xd13ebf,_0x3523cb){const _0x5121f1=a911_0x257f9e;return db[_0x5121f1(0x17c)][_0x5121f1(0x183)](_0xd13ebf[_0x5121f1(0x17d)],{})[_0x5121f1(0x1a4)](respondWithResult(_0x3523cb,0xc9))[_0x5121f1(0x180)](handleError(_0x3523cb,null));},exports[a911_0x257f9e(0x1a7)]=function(_0x2f1869,_0x1f7d9f){const _0x38ffde=a911_0x257f9e;return _0x2f1869[_0x38ffde(0x17d)]['id']&&delete _0x2f1869[_0x38ffde(0x17d)]['id'],db[_0x38ffde(0x17c)][_0x38ffde(0x1a2)]({'where':{'id':_0x2f1869[_0x38ffde(0x19b)]['id']}})[_0x38ffde(0x1a4)](handleEntityNotFound(_0x1f7d9f,null))[_0x38ffde(0x1a4)](saveUpdates(_0x2f1869[_0x38ffde(0x17d)],null))[_0x38ffde(0x1a4)](respondWithResult(_0x1f7d9f,null))[_0x38ffde(0x180)](handleError(_0x1f7d9f,null));},exports['destroy']=function(_0x2f8996,_0x5b7fad){const _0x375079=a911_0x257f9e;return db[_0x375079(0x17c)][_0x375079(0x1a2)]({'where':{'id':_0x2f8996[_0x375079(0x19b)]['id']}})[_0x375079(0x1a4)](handleEntityNotFound(_0x5b7fad,null))[_0x375079(0x1a4)](removeEntity(_0x5b7fad,null))[_0x375079(0x180)](handleError(_0x5b7fad,null));},exports[a911_0x257f9e(0x188)]=function(_0x3be838,_0x23cb84){const _0x990547=a911_0x257f9e;return db[_0x990547(0x17c)][_0x990547(0x188)]()['then'](respondWithResult(_0x23cb84,null))['catch'](handleError(_0x23cb84,null));},exports[a911_0x257f9e(0x196)]=function(_0x3b07de,_0x286fcc){const _0x2f3a0d=a911_0x257f9e;let _0x28317c={};const _0x8ae2b1={},_0x1d2ac8={'count':0x0,'rows':[]};_0x8ae2b1['model']=_[_0x2f3a0d(0x187)](db[_0x2f3a0d(0x17c)][_0x2f3a0d(0x194)]),_0x8ae2b1[_0x2f3a0d(0x19f)]=_[_0x2f3a0d(0x187)](_0x3b07de[_0x2f3a0d(0x19f)]),_0x8ae2b1[_0x2f3a0d(0x193)]=_[_0x2f3a0d(0x16e)](_0x8ae2b1[_0x2f3a0d(0x17e)],_0x8ae2b1['query']),_0x28317c[_0x2f3a0d(0x1a5)]=_[_0x2f3a0d(0x16e)](_0x8ae2b1[_0x2f3a0d(0x17e)],qs['fields'](_0x3b07de['query']['fields'])),_0x28317c[_0x2f3a0d(0x1a5)]=_0x28317c[_0x2f3a0d(0x1a5)]['length']?_0x28317c[_0x2f3a0d(0x1a5)]:_0x8ae2b1['model'];typeof _0x3b07de[_0x2f3a0d(0x19f)][_0x2f3a0d(0x18f)]===_0x2f3a0d(0x198)&&(_0x28317c[_0x2f3a0d(0x192)]=qs[_0x2f3a0d(0x192)](_0x3b07de['query'][_0x2f3a0d(0x192)]),_0x28317c[_0x2f3a0d(0x195)]=qs[_0x2f3a0d(0x195)](_0x3b07de[_0x2f3a0d(0x19f)][_0x2f3a0d(0x195)]));_0x28317c['order']=qs['sort'](_0x3b07de[_0x2f3a0d(0x19f)][_0x2f3a0d(0x199)]),_0x28317c[_0x2f3a0d(0x16d)]=qs[_0x2f3a0d(0x193)](_[_0x2f3a0d(0x181)](_0x3b07de[_0x2f3a0d(0x19f)],_0x8ae2b1['filters']));_0x3b07de['query']['filter']&&(_0x28317c[_0x2f3a0d(0x16d)]=_[_0x2f3a0d(0x1a3)](_0x28317c[_0x2f3a0d(0x16d)],{[Op['or']]:_[_0x2f3a0d(0x174)](_0x28317c[_0x2f3a0d(0x1a5)],function(_0x5c7acc){const _0x572baa=_0x2f3a0d,_0x5424d3={};return _0x5424d3[_0x5c7acc]={[Op['like']]:'%'+_0x3b07de[_0x572baa(0x19f)][_0x572baa(0x171)]+'%'},_0x5424d3;})}));_0x28317c=_['merge']({},_0x28317c,_0x3b07de[_0x2f3a0d(0x17f)]);const _0x24232e={'where':_0x28317c[_0x2f3a0d(0x16d)]};return db[_0x2f3a0d(0x17c)]['count'](_0x24232e)['then'](function(_0x4b5cb4){const _0x4294d1=_0x2f3a0d;return _0x1d2ac8[_0x4294d1(0x197)]=_0x4b5cb4,_0x3b07de[_0x4294d1(0x19f)][_0x4294d1(0x176)]&&(_0x28317c[_0x4294d1(0x1a1)]=[{'all':!![]}]),db[_0x4294d1(0x17c)][_0x4294d1(0x1a0)](_0x28317c);})['then'](function(_0x7dbd0c){const _0x57259e=_0x2f3a0d;return _0x1d2ac8[_0x57259e(0x177)]=_0x7dbd0c,_0x1d2ac8;})[_0x2f3a0d(0x1a4)](respondWithFilteredResult(_0x286fcc,_0x28317c,_0x2f3a0d(0x196)))['catch'](handleError(_0x286fcc,null,_0x2f3a0d(0x196)));}; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.events.js b/server/api/voiceQueueReport/voiceQueueReport.events.js index 6ea25ae..42796f0 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.events.js +++ b/server/api/voiceQueueReport/voiceQueueReport.events.js @@ -1 +1 @@ -const a912_0x79c6=['undefined','events','remove','save','update','VoiceQueueReport','../../mysqldb','emit','addHook','setMaxListeners'];(function(_0x1a3181,_0x16876a){const _0x79c6a3=function(_0x1fd217){while(--_0x1fd217){_0x1a3181['push'](_0x1a3181['shift']());}};_0x79c6a3(++_0x16876a);}(a912_0x79c6,0x64));const a912_0x1fd2=function(_0x1a3181,_0x16876a){_0x1a3181=_0x1a3181-0xea;let _0x79c6a3=a912_0x79c6[_0x1a3181];return _0x79c6a3;};const a912_0x76e052=a912_0x1fd2;'use strict';const EventEmitter=require(a912_0x76e052(0xeb)),VoiceQueueReport=require(a912_0x76e052(0xf0))['db'][a912_0x76e052(0xef)],VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[a912_0x76e052(0xf3)](0x0);const events={'afterCreate':a912_0x76e052(0xed),'afterUpdate':a912_0x76e052(0xee),'afterDestroy':a912_0x76e052(0xec)};function emitEvent(_0x3beefb){return function(_0x47f4a3){const _0x9f3699=a912_0x1fd2;VoiceQueueReportEvents[_0x9f3699(0xf1)](_0x3beefb+':'+_0x47f4a3['id'],_0x47f4a3),VoiceQueueReportEvents['emit'](_0x3beefb,_0x47f4a3);};}for(const e in events){if(typeof events[e]!==a912_0x76e052(0xea)){const event=events[e];VoiceQueueReport[a912_0x76e052(0xf2)](e,emitEvent(event));}}module['exports']=VoiceQueueReportEvents; \ No newline at end of file +const a912_0x4da4=['undefined','emit','exports','../../mysqldb','addHook','update','events'];(function(_0x2fed19,_0xdbd30b){const _0x4da450=function(_0x3e2223){while(--_0x3e2223){_0x2fed19['push'](_0x2fed19['shift']());}};_0x4da450(++_0xdbd30b);}(a912_0x4da4,0x144));const a912_0x3e22=function(_0x2fed19,_0xdbd30b){_0x2fed19=_0x2fed19-0x1b1;let _0x4da450=a912_0x4da4[_0x2fed19];return _0x4da450;};const a912_0xda4317=a912_0x3e22;'use strict';const EventEmitter=require(a912_0xda4317(0x1b5)),VoiceQueueReport=require(a912_0xda4317(0x1b2))['db']['VoiceQueueReport'],VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':a912_0xda4317(0x1b4),'afterDestroy':'remove'};function emitEvent(_0x1251ed){return function(_0x2193fb){const _0x2ea33a=a912_0x3e22;VoiceQueueReportEvents['emit'](_0x1251ed+':'+_0x2193fb['id'],_0x2193fb),VoiceQueueReportEvents[_0x2ea33a(0x1b7)](_0x1251ed,_0x2193fb);};}for(const e in events){if(typeof events[e]!==a912_0xda4317(0x1b6)){const event=events[e];VoiceQueueReport[a912_0xda4317(0x1b3)](e,emitEvent(event));}}module[a912_0xda4317(0x1b1)]=VoiceQueueReportEvents; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.model.js b/server/api/voiceQueueReport/voiceQueueReport.model.js index 38cd12a..74387a9 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.model.js +++ b/server/api/voiceQueueReport/voiceQueueReport.model.js @@ -1 +1 @@ -const a913_0x15de=['function','./voiceQueueReport.options','init','./voiceQueueReport.attributes','exports'];(function(_0x388dc0,_0x40763e){const _0x15de1c=function(_0x5c2497){while(--_0x5c2497){_0x388dc0['push'](_0x388dc0['shift']());}};_0x15de1c(++_0x40763e);}(a913_0x15de,0x147));const a913_0x5c24=function(_0x388dc0,_0x40763e){_0x388dc0=_0x388dc0-0x157;let _0x15de1c=a913_0x15de[_0x388dc0];return _0x15de1c;};const a913_0x21d02b=a913_0x5c24;'use strict';const {Model}=require('sequelize'),{attributes}=require(a913_0x21d02b(0x158)),{options}=require(a913_0x21d02b(0x15b));class VoiceQueueReport extends Model{}function init(_0x12f020,_0x4002cf){const _0x58c74f=a913_0x21d02b,_0x60dfc8=options(_0x12f020),_0x5dda90=typeof _0x4002cf===_0x58c74f(0x15a)?_0x4002cf(_0x60dfc8):_0x60dfc8;return VoiceQueueReport[_0x58c74f(0x157)](attributes,_0x5dda90),VoiceQueueReport;}module[a913_0x21d02b(0x159)]['VoiceQueueReport']=VoiceQueueReport,module[a913_0x21d02b(0x159)][a913_0x21d02b(0x157)]=init; \ No newline at end of file +const a913_0x4c89=['exports','VoiceQueueReport','sequelize','./voiceQueueReport.options','function','init'];(function(_0x4d2368,_0xfdc1eb){const _0x4c89a2=function(_0x1de0e3){while(--_0x1de0e3){_0x4d2368['push'](_0x4d2368['shift']());}};_0x4c89a2(++_0xfdc1eb);}(a913_0x4c89,0x16f));const a913_0x1de0=function(_0x4d2368,_0xfdc1eb){_0x4d2368=_0x4d2368-0x136;let _0x4c89a2=a913_0x4c89[_0x4d2368];return _0x4c89a2;};const a913_0x2502e0=a913_0x1de0;'use strict';const {Model}=require(a913_0x2502e0(0x137)),{attributes}=require('./voiceQueueReport.attributes'),{options}=require(a913_0x2502e0(0x138));class VoiceQueueReport extends Model{}function init(_0x46d886,_0x33dbcc){const _0x497123=a913_0x2502e0,_0x427400=options(_0x46d886),_0x49c9ea=typeof _0x33dbcc===_0x497123(0x139)?_0x33dbcc(_0x427400):_0x427400;return VoiceQueueReport['init'](attributes,_0x49c9ea),VoiceQueueReport;}module[a913_0x2502e0(0x13b)][a913_0x2502e0(0x136)]=VoiceQueueReport,module['exports'][a913_0x2502e0(0x13a)]=init; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.options.js b/server/api/voiceQueueReport/voiceQueueReport.options.js index 6aef825..bdfe5c5 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.options.js +++ b/server/api/voiceQueueReport/voiceQueueReport.options.js @@ -1 +1 @@ -var a914_0x24b1=['exports','calleridnum','report_queue'];(function(_0x22135a,_0x4ea7de){var _0x24b167=function(_0x247a92){while(--_0x247a92){_0x22135a['push'](_0x22135a['shift']());}};_0x24b167(++_0x4ea7de);}(a914_0x24b1,0xc9));var a914_0x247a=function(_0x22135a,_0x4ea7de){_0x22135a=_0x22135a-0x1dd;var _0x24b167=a914_0x24b1[_0x22135a];return _0x24b167;};var a914_0xe726ca=a914_0x247a;function options(_0x12b78b){var _0xbafb8a=a914_0x247a;return{'sequelize':_0x12b78b,'tableName':_0xbafb8a(0x1df),'paranoid':![],'indexes':[{'fields':['uniqueid']},{'fields':[_0xbafb8a(0x1de)]}],'timestamps':!![]};}module[a914_0xe726ca(0x1dd)]['options']=options; \ No newline at end of file +var a914_0x4995=['uniqueid','exports','options'];(function(_0x50d8b2,_0x35e10e){var _0x4995ac=function(_0x18b326){while(--_0x18b326){_0x50d8b2['push'](_0x50d8b2['shift']());}};_0x4995ac(++_0x35e10e);}(a914_0x4995,0x1c5));var a914_0x18b3=function(_0x50d8b2,_0x35e10e){_0x50d8b2=_0x50d8b2-0x1d5;var _0x4995ac=a914_0x4995[_0x50d8b2];return _0x4995ac;};var a914_0x360754=a914_0x18b3;function options(_0x52d567){var _0x58c0bb=a914_0x18b3;return{'sequelize':_0x52d567,'tableName':'report_queue','paranoid':![],'indexes':[{'fields':[_0x58c0bb(0x1d5)]},{'fields':['calleridnum']}],'timestamps':!![]};}module[a914_0x360754(0x1d6)][a914_0x360754(0x1d7)]=options; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.rpc.js b/server/api/voiceQueueReport/voiceQueueReport.rpc.js index 1405649..948893e 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.rpc.js +++ b/server/api/voiceQueueReport/voiceQueueReport.rpc.js @@ -1 +1 @@ -const a915_0x3fcf=['create','register','VoiceQueueReport','options','GetVoiceQueueReport','findAll','../../rediscache','rpc','limit','../../mysqldb','lodash','UpdateVoiceQueueReport','then','map','catch','debug','error','raw','message','stringify','update','info','model','include','body','attributes','../../config/logger','CreateVoiceQueueReport'];(function(_0x353a2b,_0x4d1a9e){const _0x3fcf32=function(_0x39a0f0){while(--_0x39a0f0){_0x353a2b['push'](_0x353a2b['shift']());}};_0x3fcf32(++_0x4d1a9e);}(a915_0x3fcf,0x12a));const a915_0x39a0=function(_0x353a2b,_0x4d1a9e){_0x353a2b=_0x353a2b-0x197;let _0x3fcf32=a915_0x3fcf[_0x353a2b];return _0x3fcf32;};const a915_0x560843=a915_0x39a0;'use strict';const _=require(a915_0x560843(0x1ab)),db=require(a915_0x560843(0x1aa))['db'],logger=require(a915_0x560843(0x19f))(a915_0x560843(0x1a8)),{getSocket}=require(a915_0x560843(0x1a7)),socket=getSocket();require('./voiceQueueReport.socket')[a915_0x560843(0x1a2)](socket),exports['GetVoiceQueueReport']=function(_0x364eac){const _0x28d0a6=this;return new Promise(function(_0xa9809c,_0x331efd){const _0x3551de=a915_0x39a0;return db[_0x3551de(0x1a3)][_0x3551de(0x1a6)]({'raw':_0x364eac['options']?_0x364eac[_0x3551de(0x1a4)][_0x3551de(0x1b2)]===undefined?!![]:![]:!![],'where':_0x364eac[_0x3551de(0x1a4)]?_0x364eac[_0x3551de(0x1a4)]['where']||null:null,'attributes':_0x364eac[_0x3551de(0x1a4)]?_0x364eac['options'][_0x3551de(0x19e)]||null:null,'limit':_0x364eac[_0x3551de(0x1a4)]?_0x364eac[_0x3551de(0x1a4)][_0x3551de(0x1a9)]||null:null,'include':_0x364eac[_0x3551de(0x1a4)]?_0x364eac[_0x3551de(0x1a4)][_0x3551de(0x19c)]?_[_0x3551de(0x1ae)](_0x364eac['options']['include'],function(_0x41ea44){const _0x387705=_0x3551de;return{'model':db[_0x41ea44[_0x387705(0x19b)]],'as':_0x41ea44['as'],'attributes':_0x41ea44[_0x387705(0x19e)],'include':_0x41ea44['include']?_[_0x387705(0x1ae)](_0x41ea44['include'],function(_0xd24453){const _0x3742e4=_0x387705;return{'model':db[_0xd24453[_0x3742e4(0x19b)]],'as':_0xd24453['as'],'attributes':_0xd24453['attributes'],'include':_0xd24453[_0x3742e4(0x19c)]?_['map'](_0xd24453[_0x3742e4(0x19c)],function(_0x13cf23){const _0xd0adb7=_0x3742e4;return{'model':db[_0x13cf23[_0xd0adb7(0x19b)]],'as':_0x13cf23['as'],'attributes':_0x13cf23[_0xd0adb7(0x19e)]};}):[]};}):[]};}):[]:[]})[_0x3551de(0x1ad)](function(_0x125b85){const _0x4cb22a=_0x3551de;logger[_0x4cb22a(0x19a)](_0x4cb22a(0x1a5),_0x364eac),logger[_0x4cb22a(0x1b0)](_0x4cb22a(0x1a5),_0x364eac,JSON[_0x4cb22a(0x198)](_0x125b85)),_0xa9809c(_0x125b85);})[_0x3551de(0x1af)](function(_0x113d27){const _0x56d075=_0x3551de;logger[_0x56d075(0x1b1)]('GetVoiceQueueReport',_0x113d27[_0x56d075(0x197)],_0x364eac),_0x331efd(_0x28d0a6[_0x56d075(0x1b1)](0x1f4,_0x113d27[_0x56d075(0x197)]));});});},exports[a915_0x560843(0x1a0)]=function(_0x40a6d7){const _0x281b8c=this;return new Promise(function(_0x1a9fb4,_0x444f55){const _0x31647a=a915_0x39a0;return db[_0x31647a(0x1a3)][_0x31647a(0x1a1)](_0x40a6d7['body'],{'raw':_0x40a6d7[_0x31647a(0x1a4)]?_0x40a6d7[_0x31647a(0x1a4)][_0x31647a(0x1b2)]===undefined?!![]:![]:!![]})[_0x31647a(0x1ad)](function(_0x4fe42d){const _0x25d279=_0x31647a;logger['info'](_0x25d279(0x1a0),_0x40a6d7),logger[_0x25d279(0x1b0)](_0x25d279(0x1a0),_0x40a6d7,JSON[_0x25d279(0x198)](_0x4fe42d)),_0x1a9fb4(_0x4fe42d);})[_0x31647a(0x1af)](function(_0x31560a){const _0x17f92e=_0x31647a;logger[_0x17f92e(0x1b1)](_0x17f92e(0x1a0),_0x31560a[_0x17f92e(0x197)],_0x40a6d7),_0x444f55(_0x281b8c[_0x17f92e(0x1b1)](0x1f4,_0x31560a['message']));});});},exports[a915_0x560843(0x1ac)]=function(_0x52b20e){const _0x298a0c=this;return new Promise(function(_0x35e2e5,_0x200d91){const _0x4c6513=a915_0x39a0;return db[_0x4c6513(0x1a3)][_0x4c6513(0x199)](_0x52b20e[_0x4c6513(0x19d)],{'raw':_0x52b20e[_0x4c6513(0x1a4)]?_0x52b20e[_0x4c6513(0x1a4)][_0x4c6513(0x1b2)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x52b20e[_0x4c6513(0x1a4)]?_0x52b20e[_0x4c6513(0x1a4)]['where']||null:null,'attributes':_0x52b20e[_0x4c6513(0x1a4)]?_0x52b20e[_0x4c6513(0x1a4)][_0x4c6513(0x19e)]||null:null,'limit':_0x52b20e[_0x4c6513(0x1a4)]?_0x52b20e[_0x4c6513(0x1a4)]['limit']||null:null})[_0x4c6513(0x1ad)](function(_0x2fdc70){const _0x558d67=_0x4c6513;logger[_0x558d67(0x19a)](_0x558d67(0x1ac),_0x52b20e),logger[_0x558d67(0x1b0)](_0x558d67(0x1ac),_0x52b20e,JSON[_0x558d67(0x198)](_0x2fdc70)),_0x35e2e5(_0x2fdc70);})[_0x4c6513(0x1af)](function(_0x530bad){const _0x2d3fc5=_0x4c6513;logger['error'](_0x2d3fc5(0x1ac),_0x530bad[_0x2d3fc5(0x197)],_0x52b20e),_0x200d91(_0x298a0c[_0x2d3fc5(0x1b1)](0x1f4,_0x530bad[_0x2d3fc5(0x197)]));});});}; \ No newline at end of file +const a915_0x2656=['UpdateVoiceQueueReport','./voiceQueueReport.socket','then','../../rediscache','map','where','message','stringify','limit','update','include','lodash','create','findAll','info','options','register','raw','GetVoiceQueueReport','body','rpc','CreateVoiceQueueReport','../../mysqldb','../../config/logger','error','model','attributes','catch','debug','VoiceQueueReport'];(function(_0x5aee76,_0x27ffab){const _0x265690=function(_0x143f1e){while(--_0x143f1e){_0x5aee76['push'](_0x5aee76['shift']());}};_0x265690(++_0x27ffab);}(a915_0x2656,0x1de));const a915_0x143f=function(_0x5aee76,_0x27ffab){_0x5aee76=_0x5aee76-0x8f;let _0x265690=a915_0x2656[_0x5aee76];return _0x265690;};const a915_0x34d8c8=a915_0x143f;'use strict';const _=require(a915_0x34d8c8(0x9c)),db=require(a915_0x34d8c8(0xa7))['db'],logger=require(a915_0x34d8c8(0xa8))(a915_0x34d8c8(0xa5)),{getSocket}=require(a915_0x34d8c8(0x94)),socket=getSocket();require(a915_0x34d8c8(0x92))[a915_0x34d8c8(0xa1)](socket),exports[a915_0x34d8c8(0xa3)]=function(_0x585064){const _0x281afa=this;return new Promise(function(_0x2143d5,_0x51bbdf){const _0x2c5d34=a915_0x143f;return db['VoiceQueueReport'][_0x2c5d34(0x9e)]({'raw':_0x585064[_0x2c5d34(0xa0)]?_0x585064[_0x2c5d34(0xa0)][_0x2c5d34(0xa2)]===undefined?!![]:![]:!![],'where':_0x585064[_0x2c5d34(0xa0)]?_0x585064[_0x2c5d34(0xa0)][_0x2c5d34(0x96)]||null:null,'attributes':_0x585064[_0x2c5d34(0xa0)]?_0x585064['options'][_0x2c5d34(0xab)]||null:null,'limit':_0x585064[_0x2c5d34(0xa0)]?_0x585064[_0x2c5d34(0xa0)][_0x2c5d34(0x99)]||null:null,'include':_0x585064[_0x2c5d34(0xa0)]?_0x585064['options']['include']?_[_0x2c5d34(0x95)](_0x585064[_0x2c5d34(0xa0)][_0x2c5d34(0x9b)],function(_0x3a52cb){const _0x31f91a=_0x2c5d34;return{'model':db[_0x3a52cb[_0x31f91a(0xaa)]],'as':_0x3a52cb['as'],'attributes':_0x3a52cb['attributes'],'include':_0x3a52cb[_0x31f91a(0x9b)]?_[_0x31f91a(0x95)](_0x3a52cb[_0x31f91a(0x9b)],function(_0xd97999){const _0x56b33e=_0x31f91a;return{'model':db[_0xd97999['model']],'as':_0xd97999['as'],'attributes':_0xd97999[_0x56b33e(0xab)],'include':_0xd97999[_0x56b33e(0x9b)]?_['map'](_0xd97999['include'],function(_0x57dd50){const _0x558d1f=_0x56b33e;return{'model':db[_0x57dd50[_0x558d1f(0xaa)]],'as':_0x57dd50['as'],'attributes':_0x57dd50[_0x558d1f(0xab)]};}):[]};}):[]};}):[]:[]})[_0x2c5d34(0x93)](function(_0x4c9c84){const _0x587e3f=_0x2c5d34;logger[_0x587e3f(0x9f)]('GetVoiceQueueReport',_0x585064),logger[_0x587e3f(0x8f)](_0x587e3f(0xa3),_0x585064,JSON[_0x587e3f(0x98)](_0x4c9c84)),_0x2143d5(_0x4c9c84);})[_0x2c5d34(0xac)](function(_0x5f17cb){const _0x3b4736=_0x2c5d34;logger[_0x3b4736(0xa9)]('GetVoiceQueueReport',_0x5f17cb['message'],_0x585064),_0x51bbdf(_0x281afa[_0x3b4736(0xa9)](0x1f4,_0x5f17cb[_0x3b4736(0x97)]));});});},exports[a915_0x34d8c8(0xa6)]=function(_0x5c2410){const _0x4d68f3=this;return new Promise(function(_0x5e14fc,_0x414f0c){const _0x546bf4=a915_0x143f;return db['VoiceQueueReport'][_0x546bf4(0x9d)](_0x5c2410[_0x546bf4(0xa4)],{'raw':_0x5c2410[_0x546bf4(0xa0)]?_0x5c2410['options'][_0x546bf4(0xa2)]===undefined?!![]:![]:!![]})[_0x546bf4(0x93)](function(_0x2321b2){const _0x43d56e=_0x546bf4;logger[_0x43d56e(0x9f)](_0x43d56e(0xa6),_0x5c2410),logger[_0x43d56e(0x8f)]('CreateVoiceQueueReport',_0x5c2410,JSON[_0x43d56e(0x98)](_0x2321b2)),_0x5e14fc(_0x2321b2);})['catch'](function(_0x49316f){const _0x200779=_0x546bf4;logger[_0x200779(0xa9)](_0x200779(0xa6),_0x49316f['message'],_0x5c2410),_0x414f0c(_0x4d68f3[_0x200779(0xa9)](0x1f4,_0x49316f['message']));});});},exports[a915_0x34d8c8(0x91)]=function(_0x313a77){const _0x32ce1b=this;return new Promise(function(_0x588ed6,_0x5d2851){const _0x3a67b7=a915_0x143f;return db[_0x3a67b7(0x90)][_0x3a67b7(0x9a)](_0x313a77[_0x3a67b7(0xa4)],{'raw':_0x313a77[_0x3a67b7(0xa0)]?_0x313a77['options'][_0x3a67b7(0xa2)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x313a77[_0x3a67b7(0xa0)]?_0x313a77[_0x3a67b7(0xa0)]['where']||null:null,'attributes':_0x313a77['options']?_0x313a77[_0x3a67b7(0xa0)][_0x3a67b7(0xab)]||null:null,'limit':_0x313a77[_0x3a67b7(0xa0)]?_0x313a77[_0x3a67b7(0xa0)]['limit']||null:null})[_0x3a67b7(0x93)](function(_0x1d8a22){const _0x252436=_0x3a67b7;logger[_0x252436(0x9f)](_0x252436(0x91),_0x313a77),logger[_0x252436(0x8f)](_0x252436(0x91),_0x313a77,JSON[_0x252436(0x98)](_0x1d8a22)),_0x588ed6(_0x1d8a22);})[_0x3a67b7(0xac)](function(_0x1944a1){const _0x16c887=_0x3a67b7;logger[_0x16c887(0xa9)]('UpdateVoiceQueueReport',_0x1944a1['message'],_0x313a77),_0x5d2851(_0x32ce1b[_0x16c887(0xa9)](0x1f4,_0x1944a1['message']));});});}; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.socket.js b/server/api/voiceQueueReport/voiceQueueReport.socket.js index 32d2997..838435d 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.socket.js +++ b/server/api/voiceQueueReport/voiceQueueReport.socket.js @@ -1 +1 @@ -const a916_0x5268=['register','update','voiceQueueReport:','length','remove','./voiceQueueReport.events'];(function(_0x1d7568,_0x23b183){const _0x526892=function(_0x40ef3b){while(--_0x40ef3b){_0x1d7568['push'](_0x1d7568['shift']());}};_0x526892(++_0x23b183);}(a916_0x5268,0x18a));const a916_0x40ef=function(_0x1d7568,_0x23b183){_0x1d7568=_0x1d7568-0x192;let _0x526892=a916_0x5268[_0x1d7568];return _0x526892;};const a916_0x28b051=a916_0x40ef;'use strict';const VoiceQueueReportEvents=require(a916_0x28b051(0x193)),events=['save',a916_0x28b051(0x192),a916_0x28b051(0x195)];function createListener(_0x29d72d,_0x8caf69){return function(_0x3add2d){_0x8caf69['emit'](_0x29d72d,_0x3add2d);};}exports[a916_0x28b051(0x194)]=function(_0x15f20d){const _0x551a53=a916_0x28b051;for(let _0x56d22d=0x0,_0x4dd8a2=events[_0x551a53(0x197)];_0x56d22d<_0x4dd8a2;_0x56d22d++){const _0x36f77f=events[_0x56d22d],_0x1c2286=createListener(_0x551a53(0x196)+_0x36f77f,_0x15f20d);VoiceQueueReportEvents['on'](_0x36f77f,_0x1c2286);}}; \ No newline at end of file +const a916_0x4c88=['save','update','./voiceQueueReport.events','remove','register','length','emit'];(function(_0x4b5466,_0x3a9ab4){const _0x4c889e=function(_0x5d00bf){while(--_0x5d00bf){_0x4b5466['push'](_0x4b5466['shift']());}};_0x4c889e(++_0x3a9ab4);}(a916_0x4c88,0x80));const a916_0x5d00=function(_0x4b5466,_0x3a9ab4){_0x4b5466=_0x4b5466-0x67;let _0x4c889e=a916_0x4c88[_0x4b5466];return _0x4c889e;};const a916_0x2331a1=a916_0x5d00;'use strict';const VoiceQueueReportEvents=require(a916_0x2331a1(0x67)),events=[a916_0x2331a1(0x6c),a916_0x2331a1(0x68),a916_0x2331a1(0x6d)];function createListener(_0x4fa759,_0x127e1b){return function(_0x526979){const _0x47d035=a916_0x5d00;_0x127e1b[_0x47d035(0x6b)](_0x4fa759,_0x526979);};}exports[a916_0x2331a1(0x69)]=function(_0x529a43){const _0x52147b=a916_0x2331a1;for(let _0x389d50=0x0,_0x1ec0dd=events[_0x52147b(0x6a)];_0x389d50<_0x1ec0dd;_0x389d50++){const _0x382d7f=events[_0x389d50],_0x9ca805=createListener('voiceQueueReport:'+_0x382d7f,_0x529a43);VoiceQueueReportEvents['on'](_0x382d7f,_0x9ca805);}}; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/index.js b/server/api/voiceQueuesLog/index.js index 1628145..1dbec5f 100644 --- a/server/api/voiceQueuesLog/index.js +++ b/server/api/voiceQueuesLog/index.js @@ -1 +1 @@ -const a917_0x2c4d=['express','exports','post','/:id','Router','isAuthenticated','delete','destroy','put','./voiceQueuesLog.controller','../../components/auth/service','index','update','get'];(function(_0x2ad58a,_0x8ceeef){const _0x2c4d1e=function(_0x118173){while(--_0x118173){_0x2ad58a['push'](_0x2ad58a['shift']());}};_0x2c4d1e(++_0x8ceeef);}(a917_0x2c4d,0xae));const a917_0x1181=function(_0x2ad58a,_0x8ceeef){_0x2ad58a=_0x2ad58a-0x19c;let _0x2c4d1e=a917_0x2c4d[_0x2ad58a];return _0x2c4d1e;};const a917_0x580242=a917_0x1181;'use strict';const express=require(a917_0x580242(0x1a4)),router=express[a917_0x580242(0x1a8)](),auth=require(a917_0x580242(0x1a0)),controller=require(a917_0x580242(0x19f));router[a917_0x580242(0x1a3)]('/',auth['isAuthenticated'](),controller[a917_0x580242(0x1a1)]),router[a917_0x580242(0x1a3)](a917_0x580242(0x1a7),auth[a917_0x580242(0x1a9)](),controller['show']),router[a917_0x580242(0x1a6)]('/',auth[a917_0x580242(0x1a9)](),controller['create']),router[a917_0x580242(0x19e)](a917_0x580242(0x1a7),auth[a917_0x580242(0x1a9)](),controller[a917_0x580242(0x1a2)]),router[a917_0x580242(0x19c)]('/:id',auth[a917_0x580242(0x1a9)](),controller[a917_0x580242(0x19d)]),module[a917_0x580242(0x1a5)]=router; \ No newline at end of file +const a917_0x9835=['destroy','/:id','../../components/auth/service','exports','Router','create','show','isAuthenticated','post','get','delete','express','put'];(function(_0x5301d5,_0x93fd39){const _0x983576=function(_0xc0ec8){while(--_0xc0ec8){_0x5301d5['push'](_0x5301d5['shift']());}};_0x983576(++_0x93fd39);}(a917_0x9835,0x75));const a917_0xc0ec=function(_0x5301d5,_0x93fd39){_0x5301d5=_0x5301d5-0x73;let _0x983576=a917_0x9835[_0x5301d5];return _0x983576;};const a917_0xdd8337=a917_0xc0ec;'use strict';const express=require(a917_0xdd8337(0x7e)),router=express[a917_0xdd8337(0x77)](),auth=require(a917_0xdd8337(0x75)),controller=require('./voiceQueuesLog.controller');router[a917_0xdd8337(0x7c)]('/',auth[a917_0xdd8337(0x7a)](),controller['index']),router[a917_0xdd8337(0x7c)](a917_0xdd8337(0x74),auth['isAuthenticated'](),controller[a917_0xdd8337(0x79)]),router[a917_0xdd8337(0x7b)]('/',auth['isAuthenticated'](),controller[a917_0xdd8337(0x78)]),router[a917_0xdd8337(0x7f)](a917_0xdd8337(0x74),auth[a917_0xdd8337(0x7a)](),controller['update']),router[a917_0xdd8337(0x7d)](a917_0xdd8337(0x74),auth[a917_0xdd8337(0x7a)](),controller[a917_0xdd8337(0x73)]),module[a917_0xdd8337(0x76)]=router; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js b/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js index 9bd5a45..708a064 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js @@ -1 +1 @@ -const a918_0x2826=['sequelize','moment','DATE','format','STRING'];(function(_0x486ae,_0x23ec0b){const _0x282698=function(_0x284a21){while(--_0x284a21){_0x486ae['push'](_0x486ae['shift']());}};_0x282698(++_0x23ec0b);}(a918_0x2826,0x14e));const a918_0x284a=function(_0x486ae,_0x23ec0b){_0x486ae=_0x486ae-0x188;let _0x282698=a918_0x2826[_0x486ae];return _0x282698;};const a918_0x18f9cf=a918_0x284a;'use strict';const {DataTypes}=require(a918_0x18f9cf(0x189)),moment=require(a918_0x18f9cf(0x18a)),attributes={'time':{'type':DataTypes[a918_0x18f9cf(0x188)]},'callid':{'type':DataTypes[a918_0x18f9cf(0x188)],'allowNull':![],'defaultValue':''},'queuename':{'type':DataTypes[a918_0x18f9cf(0x188)],'allowNull':![],'defaultValue':''},'agent':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':''},'event':{'type':DataTypes[a918_0x18f9cf(0x188)],'allowNull':![],'defaultValue':''},'data':{'type':DataTypes[a918_0x18f9cf(0x188)],'allowNull':![],'defaultValue':''},'data1':{'type':DataTypes[a918_0x18f9cf(0x188)],'allowNull':![],'defaultValue':''},'data2':{'type':DataTypes[a918_0x18f9cf(0x188)],'allowNull':![],'defaultValue':''},'data3':{'type':DataTypes[a918_0x18f9cf(0x188)],'allowNull':![],'defaultValue':''},'data4':{'type':DataTypes[a918_0x18f9cf(0x188)],'allowNull':![],'defaultValue':''},'data5':{'type':DataTypes[a918_0x18f9cf(0x188)],'allowNull':![],'defaultValue':''},'dtm':{'type':DataTypes[a918_0x18f9cf(0x18b)],'allowNull':![],'defaultValue':moment()[a918_0x18f9cf(0x18c)]('YYYY-MM-DD\x20HH:mm:ss')}};module['exports']['attributes']=attributes; \ No newline at end of file +const a918_0x5d22=['moment','STRING','sequelize','format','attributes','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x4cbd2b,_0x2c96b0){const _0x5d22fd=function(_0x1ca160){while(--_0x1ca160){_0x4cbd2b['push'](_0x4cbd2b['shift']());}};_0x5d22fd(++_0x2c96b0);}(a918_0x5d22,0x1e2));const a918_0x1ca1=function(_0x4cbd2b,_0x2c96b0){_0x4cbd2b=_0x4cbd2b-0x7b;let _0x5d22fd=a918_0x5d22[_0x4cbd2b];return _0x5d22fd;};const a918_0x2db889=a918_0x1ca1;'use strict';const {DataTypes}=require(a918_0x2db889(0x7b)),moment=require(a918_0x2db889(0x7f)),attributes={'time':{'type':DataTypes[a918_0x2db889(0x80)]},'callid':{'type':DataTypes[a918_0x2db889(0x80)],'allowNull':![],'defaultValue':''},'queuename':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':''},'agent':{'type':DataTypes[a918_0x2db889(0x80)],'allowNull':![],'defaultValue':''},'event':{'type':DataTypes[a918_0x2db889(0x80)],'allowNull':![],'defaultValue':''},'data':{'type':DataTypes[a918_0x2db889(0x80)],'allowNull':![],'defaultValue':''},'data1':{'type':DataTypes[a918_0x2db889(0x80)],'allowNull':![],'defaultValue':''},'data2':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':''},'data3':{'type':DataTypes[a918_0x2db889(0x80)],'allowNull':![],'defaultValue':''},'data4':{'type':DataTypes[a918_0x2db889(0x80)],'allowNull':![],'defaultValue':''},'data5':{'type':DataTypes[a918_0x2db889(0x80)],'allowNull':![],'defaultValue':''},'dtm':{'type':DataTypes['DATE'],'allowNull':![],'defaultValue':moment()[a918_0x2db889(0x7c)](a918_0x2db889(0x7e))}};module['exports'][a918_0x2db889(0x7d)]=attributes; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.controller.js b/server/api/voiceQueuesLog/voiceQueuesLog.controller.js index 22406cc..e17398a 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.controller.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.controller.js @@ -1 +1 @@ -const a919_0x12a7=['merge','like','rawAttributes','keys','where','findAll','Content-Range','../../components/parsers/qs','pick','fieldName','VIRTUAL','include','query','../../mysqldb','offset','stack','order','show','undefined','VoiceQueuesLog','count','then','status','name','json','catch','nolimit','error','body','sendStatus','model','destroy','key','findOne','limit','options','type','lodash','filter','sort','end','map','intersection','api','update','length','fields','attributes','params','sequelize','includeAll','filters','create'];(function(_0x5163d8,_0x3afe93){const _0x12a735=function(_0x2eb7f4){while(--_0x2eb7f4){_0x5163d8['push'](_0x5163d8['shift']());}};_0x12a735(++_0x3afe93);}(a919_0x12a7,0x164));const a919_0x2eb7=function(_0x5163d8,_0x3afe93){_0x5163d8=_0x5163d8-0x92;let _0x12a735=a919_0x12a7[_0x5163d8];return _0x12a735;};const a919_0x249056=a919_0x2eb7;'use strict';const _=require(a919_0x249056(0xc6)),qs=require(a919_0x249056(0xa8)),logger=require('../../config/logger')(a919_0x249056(0x97)),{db}=require(a919_0x249056(0xae)),{Op}=require(a919_0x249056(0x9d));function respondWithResult(_0x4f0121,_0x406716){return _0x406716=_0x406716||0xc8,function(_0x16df45){const _0x4156b0=a919_0x2eb7;if(_0x16df45)return _0x4f0121[_0x4156b0(0xb7)](_0x406716)[_0x4156b0(0xb9)](_0x16df45);};}function respondWithFilteredResult(_0x12b985,_0x2da670){return function(_0x3c3eae){const _0x333914=a919_0x2eb7;if(_0x3c3eae){const _0x36b5a5=_0x3c3eae[_0x333914(0xb5)],_0x5cd79e=_0x2da670[_0x333914(0xaf)];let _0x2e80ea=_0x2da670[_0x333914(0xaf)]+_0x2da670[_0x333914(0xc3)],_0xf8835c;return _0x2e80ea>=_0x36b5a5?(_0x2e80ea=_0x36b5a5,_0xf8835c=0xc8):_0xf8835c=0xce,_0x12b985['status'](_0xf8835c),_0x12b985['set'](_0x333914(0xa7),_0x5cd79e+'-'+_0x2e80ea+'/'+_0x36b5a5)['json'](_0x3c3eae);}return null;};}function saveUpdates(_0x3edc5c){return function(_0x322d62){const _0x58ae7f=a919_0x2eb7;if(_0x322d62)return _0x322d62[_0x58ae7f(0x98)](_0x3edc5c)['then'](function(_0x5427f9){return _0x5427f9;});return null;};}function removeEntity(_0x4b0f9d){return function(_0x40a5bc){const _0x792a3b=a919_0x2eb7;if(_0x40a5bc)return _0x40a5bc[_0x792a3b(0xc0)]()[_0x792a3b(0xb6)](function(){const _0x1bc901=_0x792a3b;_0x4b0f9d[_0x1bc901(0xb7)](0xcc)[_0x1bc901(0x94)]();});};}function handleEntityNotFound(_0x33122b){return function(_0xbae7be){const _0xa1b767=a919_0x2eb7;return!_0xbae7be&&_0x33122b[_0xa1b767(0xbe)](0x194),_0xbae7be;};}function handleError(_0x6eefc2,_0xb61c56){return _0xb61c56=_0xb61c56||0x1f4,function(_0x173fd2){const _0x341622=a919_0x2eb7;logger[_0x341622(0xbc)](_0x173fd2[_0x341622(0xb0)]),_0x173fd2[_0x341622(0xb8)]&&delete _0x173fd2['name'],_0x6eefc2[_0x341622(0xb7)](_0xb61c56)['send'](_0x173fd2);};}exports['index']=function(_0x1b656e,_0x317a61){const _0x527210=a919_0x249056;let _0x9ff19e={};const _0x37d6c7={},_0x3f143c={'count':0x0,'rows':[]},_0x2c6af2=_['map'](db[_0x527210(0xb4)][_0x527210(0xa3)],function(_0x4869aa){const _0xb351c9=_0x527210;return{'name':_0x4869aa[_0xb351c9(0xaa)],'type':_0x4869aa[_0xb351c9(0xc5)][_0xb351c9(0xc1)]};});_0x37d6c7[_0x527210(0xbf)]=_[_0x527210(0x95)](_0x2c6af2,_0x527210(0xb8)),_0x37d6c7['query']=_[_0x527210(0xa4)](_0x1b656e[_0x527210(0xad)]),_0x37d6c7[_0x527210(0x9f)]=_[_0x527210(0x96)](_0x37d6c7[_0x527210(0xbf)],_0x37d6c7[_0x527210(0xad)]),_0x9ff19e['attributes']=_[_0x527210(0x96)](_0x37d6c7[_0x527210(0xbf)],qs[_0x527210(0x9a)](_0x1b656e[_0x527210(0xad)][_0x527210(0x9a)])),_0x9ff19e[_0x527210(0x9b)]=_0x9ff19e[_0x527210(0x9b)][_0x527210(0x99)]?_0x9ff19e[_0x527210(0x9b)]:_0x37d6c7[_0x527210(0xbf)];typeof _0x1b656e[_0x527210(0xad)][_0x527210(0xbb)]===_0x527210(0xb3)&&(_0x9ff19e[_0x527210(0xc3)]=qs[_0x527210(0xc3)](_0x1b656e[_0x527210(0xad)][_0x527210(0xc3)]),_0x9ff19e['offset']=qs[_0x527210(0xaf)](_0x1b656e['query']['offset']));_0x9ff19e[_0x527210(0xb1)]=qs['sort'](_0x1b656e[_0x527210(0xad)][_0x527210(0x93)]),_0x9ff19e[_0x527210(0xa5)]=qs[_0x527210(0x9f)](_[_0x527210(0xa9)](_0x1b656e['query'],_0x37d6c7[_0x527210(0x9f)]),_0x2c6af2);_0x1b656e[_0x527210(0xad)][_0x527210(0x92)]&&(_0x9ff19e[_0x527210(0xa5)]=_[_0x527210(0xa1)](_0x9ff19e[_0x527210(0xa5)],{[Op['or']]:_['map'](_0x2c6af2,function(_0x3945fc){const _0x39ee1c=_0x527210;if(_0x3945fc[_0x39ee1c(0xc5)]!==_0x39ee1c(0xab)){const _0x2640d3={};return _0x2640d3[_0x3945fc[_0x39ee1c(0xb8)]]={[Op[_0x39ee1c(0xa2)]]:'%'+_0x1b656e[_0x39ee1c(0xad)][_0x39ee1c(0x92)]+'%'},_0x2640d3;}})}));_0x9ff19e=_[_0x527210(0xa1)]({},_0x9ff19e,_0x1b656e[_0x527210(0xc4)]);const _0x21b2bc={'where':_0x9ff19e[_0x527210(0xa5)]};return db['VoiceQueuesLog'][_0x527210(0xb5)](_0x21b2bc)[_0x527210(0xb6)](function(_0x4dbd52){const _0x332863=_0x527210;return _0x3f143c['count']=_0x4dbd52,_0x1b656e[_0x332863(0xad)][_0x332863(0x9e)]&&(_0x9ff19e[_0x332863(0xac)]=[{'all':!![]}]),db[_0x332863(0xb4)][_0x332863(0xa6)](_0x9ff19e);})['then'](function(_0x2cb80c){return _0x3f143c['rows']=_0x2cb80c,_0x3f143c;})[_0x527210(0xb6)](respondWithFilteredResult(_0x317a61,_0x9ff19e))[_0x527210(0xba)](handleError(_0x317a61,null));},exports[a919_0x249056(0xb2)]=function(_0x42d816,_0x48137f){const _0x2574f6=a919_0x249056;let _0x3e66a3={'raw':!![],'where':{'id':_0x42d816[_0x2574f6(0x9c)]['id']}};const _0x4105fb={};return _0x4105fb[_0x2574f6(0xbf)]=_[_0x2574f6(0xa4)](db['VoiceQueuesLog']['rawAttributes']),_0x4105fb[_0x2574f6(0xad)]=_['keys'](_0x42d816[_0x2574f6(0xad)]),_0x4105fb['filters']=_['intersection'](_0x4105fb[_0x2574f6(0xbf)],_0x4105fb[_0x2574f6(0xad)]),_0x3e66a3[_0x2574f6(0x9b)]=_[_0x2574f6(0x96)](_0x4105fb['model'],qs[_0x2574f6(0x9a)](_0x42d816[_0x2574f6(0xad)][_0x2574f6(0x9a)])),_0x3e66a3[_0x2574f6(0x9b)]=_0x3e66a3[_0x2574f6(0x9b)][_0x2574f6(0x99)]?_0x3e66a3['attributes']:_0x4105fb[_0x2574f6(0xbf)],_0x42d816['query'][_0x2574f6(0x9e)]&&(_0x3e66a3['include']=[{'all':!![]}]),_0x3e66a3=_['merge']({},_0x3e66a3,_0x42d816['options']),db['VoiceQueuesLog'][_0x2574f6(0xc2)](_0x3e66a3)[_0x2574f6(0xb6)](handleEntityNotFound(_0x48137f,null))[_0x2574f6(0xb6)](respondWithResult(_0x48137f,null))[_0x2574f6(0xba)](handleError(_0x48137f,null));},exports['create']=function(_0x376c3f,_0x4c0531){const _0x5ecc0d=a919_0x249056;return db[_0x5ecc0d(0xb4)][_0x5ecc0d(0xa0)](_0x376c3f[_0x5ecc0d(0xbd)],{})['then'](respondWithResult(_0x4c0531,0xc9))[_0x5ecc0d(0xba)](handleError(_0x4c0531,null));},exports[a919_0x249056(0x98)]=function(_0x165e14,_0x34dc83){const _0x4597e6=a919_0x249056;return _0x165e14[_0x4597e6(0xbd)]['id']&&delete _0x165e14[_0x4597e6(0xbd)]['id'],db[_0x4597e6(0xb4)][_0x4597e6(0xc2)]({'where':{'id':_0x165e14[_0x4597e6(0x9c)]['id']}})[_0x4597e6(0xb6)](handleEntityNotFound(_0x34dc83,null))['then'](saveUpdates(_0x165e14[_0x4597e6(0xbd)],null))[_0x4597e6(0xb6)](respondWithResult(_0x34dc83,null))['catch'](handleError(_0x34dc83,null));},exports[a919_0x249056(0xc0)]=function(_0x9a8338,_0x4d6bb3){const _0x11112e=a919_0x249056;return db[_0x11112e(0xb4)][_0x11112e(0xc2)]({'where':{'id':_0x9a8338[_0x11112e(0x9c)]['id']}})[_0x11112e(0xb6)](handleEntityNotFound(_0x4d6bb3,null))[_0x11112e(0xb6)](removeEntity(_0x4d6bb3,null))[_0x11112e(0xba)](handleError(_0x4d6bb3,null));}; \ No newline at end of file +const a919_0x103e=['name','VIRTUAL','offset','query','VoiceQueuesLog','status','lodash','Content-Range','fieldName','filter','keys','include','rows','params','nolimit','count','json','rawAttributes','destroy','../../components/parsers/qs','findOne','../../mysqldb','fields','sendStatus','merge','create','update','sort','limit','type','set','model','pick','index','intersection','send','attributes','where','undefined','includeAll','options','body','../../config/logger','catch','then','findAll','map','show','length','filters','stack'];(function(_0x5698cc,_0x165684){const _0x103eeb=function(_0x3a76bf){while(--_0x3a76bf){_0x5698cc['push'](_0x5698cc['shift']());}};_0x103eeb(++_0x165684);}(a919_0x103e,0x168));const a919_0x3a76=function(_0x5698cc,_0x165684){_0x5698cc=_0x5698cc-0x155;let _0x103eeb=a919_0x103e[_0x5698cc];return _0x103eeb;};const a919_0x38532e=a919_0x3a76;'use strict';const _=require(a919_0x38532e(0x158)),qs=require(a919_0x38532e(0x165)),logger=require(a919_0x38532e(0x17c))('api'),{db}=require(a919_0x38532e(0x167)),{Op}=require('sequelize');function respondWithResult(_0xbbb744,_0x2571dd){return _0x2571dd=_0x2571dd||0xc8,function(_0x14d9df){const _0x30ce10=a919_0x3a76;if(_0x14d9df)return _0xbbb744['status'](_0x2571dd)[_0x30ce10(0x162)](_0x14d9df);};}function respondWithFilteredResult(_0x22990f,_0x326e1a){return function(_0x43e477){const _0x597cd9=a919_0x3a76;if(_0x43e477){const _0x410e54=_0x43e477[_0x597cd9(0x161)],_0x55e27d=_0x326e1a['offset'];let _0x13b8d5=_0x326e1a[_0x597cd9(0x187)]+_0x326e1a[_0x597cd9(0x16e)],_0x4929ac;return _0x13b8d5>=_0x410e54?(_0x13b8d5=_0x410e54,_0x4929ac=0xc8):_0x4929ac=0xce,_0x22990f[_0x597cd9(0x157)](_0x4929ac),_0x22990f[_0x597cd9(0x170)](_0x597cd9(0x159),_0x55e27d+'-'+_0x13b8d5+'/'+_0x410e54)[_0x597cd9(0x162)](_0x43e477);}return null;};}function saveUpdates(_0x3320ac){return function(_0x261109){const _0x3d9873=a919_0x3a76;if(_0x261109)return _0x261109[_0x3d9873(0x16c)](_0x3320ac)[_0x3d9873(0x17e)](function(_0x4e6cdb){return _0x4e6cdb;});return null;};}function removeEntity(_0xafe7e7){return function(_0x472e44){const _0x20b3d6=a919_0x3a76;if(_0x472e44)return _0x472e44[_0x20b3d6(0x164)]()['then'](function(){const _0x449dd8=_0x20b3d6;_0xafe7e7[_0x449dd8(0x157)](0xcc)['end']();});};}function handleEntityNotFound(_0x25d260){return function(_0x2e4fce){const _0x26f862=a919_0x3a76;return!_0x2e4fce&&_0x25d260[_0x26f862(0x169)](0x194),_0x2e4fce;};}function handleError(_0x51aec8,_0x3c268d){return _0x3c268d=_0x3c268d||0x1f4,function(_0x3b61f7){const _0x102b85=a919_0x3a76;logger['error'](_0x3b61f7[_0x102b85(0x184)]),_0x3b61f7[_0x102b85(0x185)]&&delete _0x3b61f7['name'],_0x51aec8['status'](_0x3c268d)[_0x102b85(0x175)](_0x3b61f7);};}exports[a919_0x38532e(0x173)]=function(_0x58b753,_0x5c91e2){const _0x54b50d=a919_0x38532e;let _0x21cd06={};const _0x5c3ab2={},_0x16aa54={'count':0x0,'rows':[]},_0x1787d9=_[_0x54b50d(0x180)](db[_0x54b50d(0x156)][_0x54b50d(0x163)],function(_0x168be4){const _0x343496=_0x54b50d;return{'name':_0x168be4[_0x343496(0x15a)],'type':_0x168be4['type']['key']};});_0x5c3ab2[_0x54b50d(0x171)]=_[_0x54b50d(0x180)](_0x1787d9,_0x54b50d(0x185)),_0x5c3ab2[_0x54b50d(0x155)]=_['keys'](_0x58b753[_0x54b50d(0x155)]),_0x5c3ab2[_0x54b50d(0x183)]=_[_0x54b50d(0x174)](_0x5c3ab2[_0x54b50d(0x171)],_0x5c3ab2[_0x54b50d(0x155)]),_0x21cd06[_0x54b50d(0x176)]=_[_0x54b50d(0x174)](_0x5c3ab2[_0x54b50d(0x171)],qs[_0x54b50d(0x168)](_0x58b753[_0x54b50d(0x155)][_0x54b50d(0x168)])),_0x21cd06['attributes']=_0x21cd06[_0x54b50d(0x176)]['length']?_0x21cd06[_0x54b50d(0x176)]:_0x5c3ab2[_0x54b50d(0x171)];typeof _0x58b753[_0x54b50d(0x155)][_0x54b50d(0x160)]===_0x54b50d(0x178)&&(_0x21cd06[_0x54b50d(0x16e)]=qs[_0x54b50d(0x16e)](_0x58b753[_0x54b50d(0x155)]['limit']),_0x21cd06['offset']=qs['offset'](_0x58b753[_0x54b50d(0x155)][_0x54b50d(0x187)]));_0x21cd06['order']=qs['sort'](_0x58b753[_0x54b50d(0x155)][_0x54b50d(0x16d)]),_0x21cd06[_0x54b50d(0x177)]=qs['filters'](_[_0x54b50d(0x172)](_0x58b753[_0x54b50d(0x155)],_0x5c3ab2[_0x54b50d(0x183)]),_0x1787d9);_0x58b753[_0x54b50d(0x155)]['filter']&&(_0x21cd06['where']=_['merge'](_0x21cd06[_0x54b50d(0x177)],{[Op['or']]:_[_0x54b50d(0x180)](_0x1787d9,function(_0x2c8d1c){const _0x5005c3=_0x54b50d;if(_0x2c8d1c[_0x5005c3(0x16f)]!==_0x5005c3(0x186)){const _0x82b5bc={};return _0x82b5bc[_0x2c8d1c[_0x5005c3(0x185)]]={[Op['like']]:'%'+_0x58b753[_0x5005c3(0x155)][_0x5005c3(0x15b)]+'%'},_0x82b5bc;}})}));_0x21cd06=_[_0x54b50d(0x16a)]({},_0x21cd06,_0x58b753[_0x54b50d(0x17a)]);const _0x2c45bf={'where':_0x21cd06[_0x54b50d(0x177)]};return db['VoiceQueuesLog'][_0x54b50d(0x161)](_0x2c45bf)[_0x54b50d(0x17e)](function(_0x3bf38c){const _0x595e38=_0x54b50d;return _0x16aa54[_0x595e38(0x161)]=_0x3bf38c,_0x58b753[_0x595e38(0x155)][_0x595e38(0x179)]&&(_0x21cd06[_0x595e38(0x15d)]=[{'all':!![]}]),db[_0x595e38(0x156)][_0x595e38(0x17f)](_0x21cd06);})['then'](function(_0x6edeaf){const _0x1ca32d=_0x54b50d;return _0x16aa54[_0x1ca32d(0x15e)]=_0x6edeaf,_0x16aa54;})['then'](respondWithFilteredResult(_0x5c91e2,_0x21cd06))[_0x54b50d(0x17d)](handleError(_0x5c91e2,null));},exports[a919_0x38532e(0x181)]=function(_0x2a12b2,_0x42c282){const _0x5e6565=a919_0x38532e;let _0x434d79={'raw':!![],'where':{'id':_0x2a12b2[_0x5e6565(0x15f)]['id']}};const _0x134c5d={};return _0x134c5d[_0x5e6565(0x171)]=_[_0x5e6565(0x15c)](db[_0x5e6565(0x156)]['rawAttributes']),_0x134c5d[_0x5e6565(0x155)]=_['keys'](_0x2a12b2[_0x5e6565(0x155)]),_0x134c5d[_0x5e6565(0x183)]=_[_0x5e6565(0x174)](_0x134c5d[_0x5e6565(0x171)],_0x134c5d[_0x5e6565(0x155)]),_0x434d79[_0x5e6565(0x176)]=_[_0x5e6565(0x174)](_0x134c5d[_0x5e6565(0x171)],qs[_0x5e6565(0x168)](_0x2a12b2['query'][_0x5e6565(0x168)])),_0x434d79['attributes']=_0x434d79['attributes'][_0x5e6565(0x182)]?_0x434d79[_0x5e6565(0x176)]:_0x134c5d[_0x5e6565(0x171)],_0x2a12b2['query']['includeAll']&&(_0x434d79[_0x5e6565(0x15d)]=[{'all':!![]}]),_0x434d79=_[_0x5e6565(0x16a)]({},_0x434d79,_0x2a12b2['options']),db['VoiceQueuesLog'][_0x5e6565(0x166)](_0x434d79)[_0x5e6565(0x17e)](handleEntityNotFound(_0x42c282,null))[_0x5e6565(0x17e)](respondWithResult(_0x42c282,null))[_0x5e6565(0x17d)](handleError(_0x42c282,null));},exports[a919_0x38532e(0x16b)]=function(_0x2b6580,_0x21dc2f){const _0x349517=a919_0x38532e;return db[_0x349517(0x156)][_0x349517(0x16b)](_0x2b6580[_0x349517(0x17b)],{})['then'](respondWithResult(_0x21dc2f,0xc9))[_0x349517(0x17d)](handleError(_0x21dc2f,null));},exports['update']=function(_0x38aafd,_0x453171){const _0xc7f9db=a919_0x38532e;return _0x38aafd['body']['id']&&delete _0x38aafd[_0xc7f9db(0x17b)]['id'],db[_0xc7f9db(0x156)][_0xc7f9db(0x166)]({'where':{'id':_0x38aafd[_0xc7f9db(0x15f)]['id']}})['then'](handleEntityNotFound(_0x453171,null))[_0xc7f9db(0x17e)](saveUpdates(_0x38aafd['body'],null))['then'](respondWithResult(_0x453171,null))[_0xc7f9db(0x17d)](handleError(_0x453171,null));},exports[a919_0x38532e(0x164)]=function(_0x1b6d01,_0x5a9d4b){const _0x111e64=a919_0x38532e;return db[_0x111e64(0x156)][_0x111e64(0x166)]({'where':{'id':_0x1b6d01[_0x111e64(0x15f)]['id']}})[_0x111e64(0x17e)](handleEntityNotFound(_0x5a9d4b,null))['then'](removeEntity(_0x5a9d4b,null))['catch'](handleError(_0x5a9d4b,null));}; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.model.js b/server/api/voiceQueuesLog/voiceQueuesLog.model.js index b54bcd4..c6b6d75 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.model.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.model.js @@ -1 +1 @@ -const a920_0x5152=['./voiceQueuesLog.options','./voiceQueuesLog.attributes','sequelize','function','init','VoiceQueuesLog','exports'];(function(_0x2dc07f,_0x14f8f7){const _0x51529f=function(_0x1994d1){while(--_0x1994d1){_0x2dc07f['push'](_0x2dc07f['shift']());}};_0x51529f(++_0x14f8f7);}(a920_0x5152,0x9e));const a920_0x1994=function(_0x2dc07f,_0x14f8f7){_0x2dc07f=_0x2dc07f-0x97;let _0x51529f=a920_0x5152[_0x2dc07f];return _0x51529f;};const a920_0x5d5ba2=a920_0x1994;'use strict';const {Model}=require(a920_0x5d5ba2(0x9c)),{attributes}=require(a920_0x5d5ba2(0x9b)),{options}=require(a920_0x5d5ba2(0x9a));class VoiceQueuesLog extends Model{}function init(_0x4cdb31,_0x3899da){const _0x4ab998=a920_0x5d5ba2,_0x4e4c75=options(_0x4cdb31),_0xaef225=typeof _0x3899da===_0x4ab998(0x9d)?_0x3899da(_0x4e4c75):_0x4e4c75;return VoiceQueuesLog['init'](attributes,_0xaef225),VoiceQueuesLog;}module[a920_0x5d5ba2(0x99)][a920_0x5d5ba2(0x98)]=VoiceQueuesLog,module[a920_0x5d5ba2(0x99)][a920_0x5d5ba2(0x97)]=init; \ No newline at end of file +const a920_0x559b=['exports','./voiceQueuesLog.attributes','sequelize','init','function'];(function(_0x50948e,_0x281a0c){const _0x559b45=function(_0x412a40){while(--_0x412a40){_0x50948e['push'](_0x50948e['shift']());}};_0x559b45(++_0x281a0c);}(a920_0x559b,0x128));const a920_0x412a=function(_0x50948e,_0x281a0c){_0x50948e=_0x50948e-0xeb;let _0x559b45=a920_0x559b[_0x50948e];return _0x559b45;};const a920_0x3933b3=a920_0x412a;'use strict';const {Model}=require(a920_0x3933b3(0xec)),{attributes}=require(a920_0x3933b3(0xeb)),{options}=require('./voiceQueuesLog.options');class VoiceQueuesLog extends Model{}function init(_0x3fbb3d,_0x43d9ff){const _0x399372=a920_0x3933b3,_0x2c8da6=options(_0x3fbb3d),_0x20e57e=typeof _0x43d9ff===_0x399372(0xee)?_0x43d9ff(_0x2c8da6):_0x2c8da6;return VoiceQueuesLog[_0x399372(0xed)](attributes,_0x20e57e),VoiceQueuesLog;}module['exports']['VoiceQueuesLog']=VoiceQueuesLog,module[a920_0x3933b3(0xef)]['init']=init; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.options.js b/server/api/voiceQueuesLog/voiceQueuesLog.options.js index db35359..9501279 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.options.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.options.js @@ -1 +1 @@ -var a921_0x3cab=['voice_queues_log','event'];(function(_0x4defa6,_0x3ccf2a){var _0x3cab37=function(_0x5f1cfa){while(--_0x5f1cfa){_0x4defa6['push'](_0x4defa6['shift']());}};_0x3cab37(++_0x3ccf2a);}(a921_0x3cab,0x13c));var a921_0x5f1c=function(_0x4defa6,_0x3ccf2a){_0x4defa6=_0x4defa6-0x1b4;var _0x3cab37=a921_0x3cab[_0x4defa6];return _0x3cab37;};function options(_0x403e98){var _0x2af10c=a921_0x5f1c;return{'sequelize':_0x403e98,'tableName':_0x2af10c(0x1b4),'paranoid':![],'indexes':[{'name':'event_dtm','fields':[_0x2af10c(0x1b5),'dtm']}],'timestamps':![]};}module['exports']['options']=options; \ No newline at end of file +var a921_0x55d0=['voice_queues_log','options','event_dtm','dtm'];(function(_0x31f61c,_0x5573fe){var _0x55d077=function(_0x33eb67){while(--_0x33eb67){_0x31f61c['push'](_0x31f61c['shift']());}};_0x55d077(++_0x5573fe);}(a921_0x55d0,0xf0));var a921_0x33eb=function(_0x31f61c,_0x5573fe){_0x31f61c=_0x31f61c-0x1b8;var _0x55d077=a921_0x55d0[_0x31f61c];return _0x55d077;};var a921_0x59f16e=a921_0x33eb;function options(_0x4be719){var _0x36cdd1=a921_0x33eb;return{'sequelize':_0x4be719,'tableName':_0x36cdd1(0x1b8),'paranoid':![],'indexes':[{'name':_0x36cdd1(0x1ba),'fields':['event',_0x36cdd1(0x1bb)]}],'timestamps':![]};}module['exports'][a921_0x59f16e(0x1b9)]=options; \ No newline at end of file diff --git a/server/api/voiceRecording/index.js b/server/api/voiceRecording/index.js index d90bc65..aa4e0c6 100644 --- a/server/api/voiceRecording/index.js +++ b/server/api/voiceRecording/index.js @@ -1 +1 @@ -const a922_0x3a6e=['describe','index','update','exports','express','post','downloadTranscribe','Router','/:id','isAuthenticated','get','delete','show','runTranscribe','./voiceRecording.controller','/:id/downloads','/:id/transcribe','downloads','put','/:id/download'];(function(_0x3c4121,_0x2d782e){const _0x3a6ed4=function(_0x47b3bb){while(--_0x47b3bb){_0x3c4121['push'](_0x3c4121['shift']());}};_0x3a6ed4(++_0x2d782e);}(a922_0x3a6e,0x73));const a922_0x47b3=function(_0x3c4121,_0x2d782e){_0x3c4121=_0x3c4121-0x84;let _0x3a6ed4=a922_0x3a6e[_0x3c4121];return _0x3a6ed4;};const a922_0x59e83f=a922_0x47b3;'use strict';const express=require(a922_0x59e83f(0x8d)),router=express[a922_0x59e83f(0x90)](),auth=require('../../components/auth/service'),controller=require(a922_0x59e83f(0x97));router[a922_0x59e83f(0x93)]('/',auth[a922_0x59e83f(0x92)](),controller[a922_0x59e83f(0x8a)]),router[a922_0x59e83f(0x93)]('/describe',auth[a922_0x59e83f(0x92)](),controller[a922_0x59e83f(0x89)]),router[a922_0x59e83f(0x93)](a922_0x59e83f(0x91),auth['isAuthenticated'](),controller[a922_0x59e83f(0x95)]),router[a922_0x59e83f(0x93)](a922_0x59e83f(0x88),auth[a922_0x59e83f(0x92)](),controller['download']),router[a922_0x59e83f(0x93)](a922_0x59e83f(0x84),controller[a922_0x59e83f(0x86)]),router[a922_0x59e83f(0x93)](a922_0x59e83f(0x85),auth['isAuthenticated'](),controller[a922_0x59e83f(0x8f)]),router[a922_0x59e83f(0x8e)]('/',auth[a922_0x59e83f(0x92)](),controller['create']),router[a922_0x59e83f(0x8e)](a922_0x59e83f(0x85),auth['isAuthenticated'](),controller[a922_0x59e83f(0x96)]),router[a922_0x59e83f(0x87)](a922_0x59e83f(0x91),auth[a922_0x59e83f(0x92)](),controller[a922_0x59e83f(0x8b)]),router[a922_0x59e83f(0x94)](a922_0x59e83f(0x91),auth[a922_0x59e83f(0x92)](),controller['destroy']),module[a922_0x59e83f(0x8c)]=router; \ No newline at end of file +const a922_0xdf84=['update','downloadTranscribe','create','runTranscribe','isAuthenticated','/:id/downloads','/:id','/describe','show','put','/:id/transcribe','destroy','downloads','describe','exports','get','download','./voiceRecording.controller','post','/:id/download','../../components/auth/service'];(function(_0x531d2a,_0x2b1e8c){const _0xdf843f=function(_0x30e7cf){while(--_0x30e7cf){_0x531d2a['push'](_0x531d2a['shift']());}};_0xdf843f(++_0x2b1e8c);}(a922_0xdf84,0xdc));const a922_0x30e7=function(_0x531d2a,_0x2b1e8c){_0x531d2a=_0x531d2a-0x11c;let _0xdf843f=a922_0xdf84[_0x531d2a];return _0xdf843f;};const a922_0x515ca8=a922_0x30e7;'use strict';const express=require('express'),router=express['Router'](),auth=require(a922_0x515ca8(0x126)),controller=require(a922_0x515ca8(0x123));router[a922_0x515ca8(0x121)]('/',auth[a922_0x515ca8(0x12b)](),controller['index']),router[a922_0x515ca8(0x121)](a922_0x515ca8(0x12e),auth['isAuthenticated'](),controller[a922_0x515ca8(0x11f)]),router[a922_0x515ca8(0x121)](a922_0x515ca8(0x12d),auth[a922_0x515ca8(0x12b)](),controller[a922_0x515ca8(0x12f)]),router[a922_0x515ca8(0x121)](a922_0x515ca8(0x125),auth['isAuthenticated'](),controller[a922_0x515ca8(0x122)]),router['get'](a922_0x515ca8(0x12c),controller[a922_0x515ca8(0x11e)]),router[a922_0x515ca8(0x121)](a922_0x515ca8(0x11c),auth[a922_0x515ca8(0x12b)](),controller[a922_0x515ca8(0x128)]),router[a922_0x515ca8(0x124)]('/',auth[a922_0x515ca8(0x12b)](),controller[a922_0x515ca8(0x129)]),router['post'](a922_0x515ca8(0x11c),auth['isAuthenticated'](),controller[a922_0x515ca8(0x12a)]),router[a922_0x515ca8(0x130)]('/:id',auth[a922_0x515ca8(0x12b)](),controller[a922_0x515ca8(0x127)]),router['delete'](a922_0x515ca8(0x12d),auth[a922_0x515ca8(0x12b)](),controller[a922_0x515ca8(0x11d)]),module[a922_0x515ca8(0x120)]=router; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.attributes.js b/server/api/voiceRecording/voiceRecording.attributes.js index ee12916..4478c95 100644 --- a/server/api/voiceRecording/voiceRecording.attributes.js +++ b/server/api/voiceRecording/voiceRecording.attributes.js @@ -1 +1 @@ -const a923_0x1d49=['toString','updatedAt','DATE','sequelize','createdAt','NEW','value','attributes','format','BOOLEAN','TEXT','getDataValue','setDataValue','VIRTUAL','FLOAT','channel','path','exports','MM-DD-YYYY\x20HH:mm','moment','STRING','split'];(function(_0x414fa5,_0x12e35b){const _0x1d49bd=function(_0x405296){while(--_0x405296){_0x414fa5['push'](_0x414fa5['shift']());}};_0x1d49bd(++_0x12e35b);}(a923_0x1d49,0x124));const a923_0x4052=function(_0x414fa5,_0x12e35b){_0x414fa5=_0x414fa5-0x142;let _0x1d49bd=a923_0x1d49[_0x414fa5];return _0x1d49bd;};const a923_0x5c6af6=a923_0x4052;'use strict';const {DataTypes}=require(a923_0x5c6af6(0x155)),moment=require(a923_0x5c6af6(0x14f)),path=require(a923_0x5c6af6(0x14c)),attributes={'format':{'type':DataTypes[a923_0x5c6af6(0x149)],'get':function(){const _0x4585c2=a923_0x5c6af6;return this[_0x4585c2(0x147)](_0x4585c2(0x142))?path['extname'](this[_0x4585c2(0x147)](_0x4585c2(0x142))):undefined;}},'uniqueid':{'type':DataTypes[a923_0x5c6af6(0x150)]},'channel':{'type':DataTypes[a923_0x5c6af6(0x150)],'set':function(_0x5952fd){const _0x1cb339=a923_0x5c6af6;_0x5952fd&&(this[_0x1cb339(0x148)](_0x1cb339(0x14b),_0x5952fd),this['setDataValue']('membername',_0x5952fd[_0x1cb339(0x151)](/\/|-/)[0x1]));}},'membername':{'type':DataTypes[a923_0x5c6af6(0x150)]},'calleridnum':{'type':DataTypes[a923_0x5c6af6(0x150)]},'calleridname':{'type':DataTypes[a923_0x5c6af6(0x150)]},'connectedlinenum':{'type':DataTypes[a923_0x5c6af6(0x150)]},'connectedlinename':{'type':DataTypes[a923_0x5c6af6(0x150)]},'accountcode':{'type':DataTypes[a923_0x5c6af6(0x150)]},'context':{'type':DataTypes[a923_0x5c6af6(0x150)]},'exten':{'type':DataTypes['STRING']},'value':{'type':DataTypes[a923_0x5c6af6(0x150)]},'type':{'type':DataTypes['STRING']},'rating':{'type':DataTypes['INTEGER'],'validate':{'max':0x5,'min':0x0}},'queue':{'type':DataTypes[a923_0x5c6af6(0x150)]},'userDisposition':{'type':DataTypes['STRING']},'userSecondDisposition':{'type':DataTypes[a923_0x5c6af6(0x150)]},'userThirdDisposition':{'type':DataTypes['STRING']},'location':{'type':DataTypes[a923_0x5c6af6(0x146)]},'transcribeName':{'type':DataTypes[a923_0x5c6af6(0x150)]},'transcribeStatus':{'type':DataTypes[a923_0x5c6af6(0x150)],'defaultValue':a923_0x5c6af6(0x157)},'fileUri':{'type':DataTypes[a923_0x5c6af6(0x146)]},'fileText':{'type':DataTypes[a923_0x5c6af6(0x146)]},'failureReason':{'type':DataTypes[a923_0x5c6af6(0x146)]},'sentiment':{'type':DataTypes[a923_0x5c6af6(0x150)]},'sPositive':{'type':DataTypes[a923_0x5c6af6(0x14a)]},'sNegative':{'type':DataTypes[a923_0x5c6af6(0x14a)]},'sNeutral':{'type':DataTypes[a923_0x5c6af6(0x14a)]},'sMixed':{'type':DataTypes[a923_0x5c6af6(0x14a)]},'tempSentiment':{'type':DataTypes[a923_0x5c6af6(0x145)],'defaultValue':![]},'createdAt':{'type':DataTypes[a923_0x5c6af6(0x154)],'get':function(){const _0x36a9b8=a923_0x5c6af6;return moment(this[_0x36a9b8(0x147)](_0x36a9b8(0x156)))[_0x36a9b8(0x144)]('MM-DD-YYYY\x20HH:mm')[_0x36a9b8(0x152)]();}},'updatedAt':{'type':DataTypes['DATE'],'get':function(){const _0x3bef29=a923_0x5c6af6;return moment(this['getDataValue'](_0x3bef29(0x153)))[_0x3bef29(0x144)](_0x3bef29(0x14e))['toString']();}}};module[a923_0x5c6af6(0x14d)][a923_0x5c6af6(0x143)]=attributes; \ No newline at end of file +const a923_0x11c0=['BOOLEAN','setDataValue','channel','moment','createdAt','INTEGER','toString','path','getDataValue','VIRTUAL','updatedAt','NEW','DATE','attributes','split','STRING','value','membername','FLOAT','MM-DD-YYYY\x20HH:mm','TEXT'];(function(_0x41ca8c,_0x47fdd7){const _0x11c08e=function(_0x57a53d){while(--_0x57a53d){_0x41ca8c['push'](_0x41ca8c['shift']());}};_0x11c08e(++_0x47fdd7);}(a923_0x11c0,0x186));const a923_0x57a5=function(_0x41ca8c,_0x47fdd7){_0x41ca8c=_0x41ca8c-0x169;let _0x11c08e=a923_0x11c0[_0x41ca8c];return _0x11c08e;};const a923_0x8b8353=a923_0x57a5;'use strict';const {DataTypes}=require('sequelize'),moment=require(a923_0x8b8353(0x175)),path=require(a923_0x8b8353(0x179)),attributes={'format':{'type':DataTypes[a923_0x8b8353(0x17b)],'get':function(){const _0x20ee03=a923_0x8b8353;return this[_0x20ee03(0x17a)]('value')?path['extname'](this[_0x20ee03(0x17a)](_0x20ee03(0x16d))):undefined;}},'uniqueid':{'type':DataTypes['STRING']},'channel':{'type':DataTypes['STRING'],'set':function(_0x74665f){const _0x3d4538=a923_0x8b8353;_0x74665f&&(this[_0x3d4538(0x173)](_0x3d4538(0x174),_0x74665f),this[_0x3d4538(0x173)](_0x3d4538(0x16e),_0x74665f[_0x3d4538(0x16b)](/\/|-/)[0x1]));}},'membername':{'type':DataTypes[a923_0x8b8353(0x16c)]},'calleridnum':{'type':DataTypes['STRING']},'calleridname':{'type':DataTypes[a923_0x8b8353(0x16c)]},'connectedlinenum':{'type':DataTypes[a923_0x8b8353(0x16c)]},'connectedlinename':{'type':DataTypes[a923_0x8b8353(0x16c)]},'accountcode':{'type':DataTypes[a923_0x8b8353(0x16c)]},'context':{'type':DataTypes['STRING']},'exten':{'type':DataTypes[a923_0x8b8353(0x16c)]},'value':{'type':DataTypes['STRING']},'type':{'type':DataTypes[a923_0x8b8353(0x16c)]},'rating':{'type':DataTypes[a923_0x8b8353(0x177)],'validate':{'max':0x5,'min':0x0}},'queue':{'type':DataTypes['STRING']},'userDisposition':{'type':DataTypes[a923_0x8b8353(0x16c)]},'userSecondDisposition':{'type':DataTypes['STRING']},'userThirdDisposition':{'type':DataTypes['STRING']},'location':{'type':DataTypes['TEXT']},'transcribeName':{'type':DataTypes[a923_0x8b8353(0x16c)]},'transcribeStatus':{'type':DataTypes['STRING'],'defaultValue':a923_0x8b8353(0x17d)},'fileUri':{'type':DataTypes[a923_0x8b8353(0x171)]},'fileText':{'type':DataTypes[a923_0x8b8353(0x171)]},'failureReason':{'type':DataTypes[a923_0x8b8353(0x171)]},'sentiment':{'type':DataTypes[a923_0x8b8353(0x16c)]},'sPositive':{'type':DataTypes['FLOAT']},'sNegative':{'type':DataTypes[a923_0x8b8353(0x16f)]},'sNeutral':{'type':DataTypes[a923_0x8b8353(0x16f)]},'sMixed':{'type':DataTypes['FLOAT']},'tempSentiment':{'type':DataTypes[a923_0x8b8353(0x172)],'defaultValue':![]},'createdAt':{'type':DataTypes[a923_0x8b8353(0x169)],'get':function(){const _0x1fdf6a=a923_0x8b8353;return moment(this[_0x1fdf6a(0x17a)](_0x1fdf6a(0x176)))['format'](_0x1fdf6a(0x170))[_0x1fdf6a(0x178)]();}},'updatedAt':{'type':DataTypes['DATE'],'get':function(){const _0x1bf736=a923_0x8b8353;return moment(this[_0x1bf736(0x17a)](_0x1bf736(0x17c)))['format'](_0x1bf736(0x170))[_0x1bf736(0x178)]();}}};module['exports'][a923_0x8b8353(0x16a)]=attributes; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.controller.js b/server/api/voiceRecording/voiceRecording.controller.js index cdfa8bd..fe319fd 100644 --- a/server/api/voiceRecording/voiceRecording.controller.js +++ b/server/api/voiceRecording/voiceRecording.controller.js @@ -1 +1 @@ -const a924_0x5d23=['destroy','upload','Content-Range','describe','uniqueid','key','status','Setting','Transcribe\x20not\x20configured','../../mysqldb','rows','differenceBy','lodash','[RUNTRANSCRIPT][%d]\x20Starting\x20voice\x20recording\x20upload\x20in\x20bucket\x20%s','Bucket','params','type','TranscriptionJobStatus','.cypher','%s.cypher','offset','../../components/parsers/qs','Not\x20found','order','transcribeName','limit','message','MD5','and','[RUNTRANSCRIPT][%d]\x20Transcription\x20job\x20%s\x20created','Entity\x20not\x20found','value','send','.txt','error-middleware/errors','format','model','set','VIRTUAL','find','[RUNTRANSCRIPT][%d]\x20Sending\x20transcribe\x20request','download','map','path','create','/server/files/transcribes/transcribe_','bucket','recording','VoiceRecording','nolimit','count','findOne','readFileSync','transcribeAccountId','decryptFile','sort','File:\x20\x22','TranscribeService','Voice\x20Recording\x20not\x20found','data2','tempSentiment','IN_PROGRESS','merge','query','downloadTranscribe','aws-sdk','attributes','unlinkSync','Location','listBuckets','startTranscriptionJob','Cloud\x20Provider\x20not\x20available','keys','include','cancellazione\x20fisica\x20documento\x20%s','Transcript\x20not\x20available','createBucket','fields','api','Sentiment\x20Analysis\x20not\x20configured','body','TranscriptionJobName','data1','NEW','info','sequelize','TranscriptionJob','[RUNTRANSCRIPT][%d]\x20Transcript\x20action\x20already\x20requested','filename','sentimentRegion','then','../../config/environment','like','includeAll','CloudProvider','existsSync','../../config/logger','fieldName','intersection','location','push','transcribeRegion','name','fileText','secrets','length','runTranscribe','json','writeFile','[RUNTRANSCRIPT][%d]\x20Voice\x20recording\x20uploaded\x20in\x20bucket\x20%s\x20(%s)','end','language','$and','update','options','downloads','catch','../../components/encryptor','rawAttributes','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','Buckets','VoiceRecording\x20not\x20found','show','isNil','sendStatus','filter','sentimentAccountId','unlink','transcribeStatus','where','token','index','filters'];(function(_0x599cb3,_0x40e65a){const _0x5d2374=function(_0x3795a8){while(--_0x3795a8){_0x599cb3['push'](_0x599cb3['shift']());}};_0x5d2374(++_0x40e65a);}(a924_0x5d23,0x6e));const a924_0x3795=function(_0x599cb3,_0x40e65a){_0x599cb3=_0x599cb3-0x169;let _0x5d2374=a924_0x5d23[_0x599cb3];return _0x5d2374;};const a924_0x481391=a924_0x3795;'use strict';const util=require('util'),path=require(a924_0x481391(0x1ab)),fs=require('fs'),_=require(a924_0x481391(0x18c)),AWS=require(a924_0x481391(0x1c1)),{v4:uuidv4}=require('uuid'),qs=require(a924_0x481391(0x195)),logger=require(a924_0x481391(0x1e0))(a924_0x481391(0x1ce)),config=require(a924_0x481391(0x1db)),{db}=require(a924_0x481391(0x189)),{Op,fn,col,ValidationError}=require(a924_0x481391(0x1d5)),{InternalError}=require(a924_0x481391(0x1a2));function respondWithResult(_0x3069dd,_0x39397f){return _0x39397f=_0x39397f||0xc8,function(_0xb6eb8b){const _0xe45406=a924_0x3795;if(_0xb6eb8b)return _0x3069dd[_0xe45406(0x186)](_0x39397f)[_0xe45406(0x1eb)](_0xb6eb8b);};}function respondWithFilteredResult(_0x43d640,_0x56d846){return function(_0x40f8e9){const _0x1bd300=a924_0x3795;if(_0x40f8e9){const _0x306fbb=_0x40f8e9[_0x1bd300(0x1b2)],_0x556031=_0x56d846[_0x1bd300(0x194)];let _0xd2851f=_0x56d846[_0x1bd300(0x194)]+_0x56d846[_0x1bd300(0x199)],_0x15ad9d;return _0xd2851f>=_0x306fbb?(_0xd2851f=_0x306fbb,_0x15ad9d=0xc8):_0x15ad9d=0xce,_0x43d640[_0x1bd300(0x186)](_0x15ad9d),_0x43d640[_0x1bd300(0x1a5)](_0x1bd300(0x182),_0x556031+'-'+_0xd2851f+'/'+_0x306fbb)[_0x1bd300(0x1eb)](_0x40f8e9);}return null;};}function saveUpdates(_0x4b0953){return function(_0x305548){const _0x5a60d0=a924_0x3795;if(_0x305548)return _0x305548[_0x5a60d0(0x16c)](_0x4b0953)[_0x5a60d0(0x1da)](function(_0x4e296d){return _0x4e296d;});return null;};}function handleEntityNotFound(_0x1ec291){return function(_0x4f0bd6){const _0x4c1788=a924_0x3795;return!_0x4f0bd6&&_0x1ec291[_0x4c1788(0x177)](0x194),_0x4f0bd6;};}function handleError(_0x53dd69,_0xa1203c){return _0xa1203c=_0xa1203c||0x1f4,function(_0x4d6b57){const _0x295427=a924_0x3795;logger['error'](_0x4d6b57['stack']),_0x4d6b57[_0x295427(0x1e6)]&&delete _0x4d6b57['name'],_0x53dd69['status'](_0xa1203c)[_0x295427(0x1a0)](_0x4d6b57);};}exports[a924_0x481391(0x17e)]=function(_0x1c5551,_0x3ee2a0){const _0x5cdf1a=a924_0x481391;let _0x565d4a={};const _0x113936={},_0x528708={'count':0x0,'rows':[]},_0x48cc58=_[_0x5cdf1a(0x1aa)](db[_0x5cdf1a(0x1b0)]['rawAttributes'],function(_0x45c1c3){const _0x2a2cf5=_0x5cdf1a;return{'name':_0x45c1c3[_0x2a2cf5(0x1e1)],'type':_0x45c1c3['type'][_0x2a2cf5(0x185)]};});_0x113936[_0x5cdf1a(0x1a4)]=_[_0x5cdf1a(0x18b)](_[_0x5cdf1a(0x1aa)](_0x48cc58,'name'),[_0x5cdf1a(0x1a3)]),_0x113936[_0x5cdf1a(0x1bf)]=_['keys'](_0x1c5551[_0x5cdf1a(0x1bf)]),_0x113936[_0x5cdf1a(0x17f)]=_[_0x5cdf1a(0x1e2)](_0x113936[_0x5cdf1a(0x1a4)],_0x113936['query']),_0x565d4a[_0x5cdf1a(0x1c2)]=_[_0x5cdf1a(0x1e2)](_0x113936[_0x5cdf1a(0x1a4)],qs[_0x5cdf1a(0x1cd)](_0x1c5551[_0x5cdf1a(0x1bf)][_0x5cdf1a(0x1cd)])),_0x565d4a[_0x5cdf1a(0x1c2)]=_0x565d4a[_0x5cdf1a(0x1c2)][_0x5cdf1a(0x1e9)]?_0x565d4a[_0x5cdf1a(0x1c2)]:_0x113936['model'];typeof _0x1c5551['query'][_0x5cdf1a(0x1b1)]==='undefined'&&(_0x565d4a[_0x5cdf1a(0x199)]=qs[_0x5cdf1a(0x199)](_0x1c5551['query'][_0x5cdf1a(0x199)]),_0x565d4a[_0x5cdf1a(0x194)]=qs['offset'](_0x1c5551['query']['offset']));_0x565d4a[_0x5cdf1a(0x197)]=qs[_0x5cdf1a(0x1b7)](_0x1c5551[_0x5cdf1a(0x1bf)][_0x5cdf1a(0x1b7)]),_0x565d4a[_0x5cdf1a(0x17c)]=qs[_0x5cdf1a(0x17f)](_['pick'](_0x1c5551['query'],_0x113936['filters']),_0x48cc58);_0x1c5551[_0x5cdf1a(0x1bf)][_0x5cdf1a(0x178)]&&(_0x565d4a[_0x5cdf1a(0x17c)]=_[_0x5cdf1a(0x1be)](_0x565d4a[_0x5cdf1a(0x17c)],{[Op['or']]:_['map'](_0x48cc58,function(_0x2b2040){const _0x17acd9=_0x5cdf1a;if(_0x2b2040[_0x17acd9(0x190)]!==_0x17acd9(0x1a6)){const _0x29a0d9={};return _0x29a0d9[_0x2b2040[_0x17acd9(0x1e6)]]={[Op[_0x17acd9(0x1dc)]]:'%'+_0x1c5551['query'][_0x17acd9(0x178)]+'%'},_0x29a0d9;}})}));_0x565d4a=_['merge']({},_0x565d4a,_0x1c5551[_0x5cdf1a(0x16d)]);const _0x3e8398={'where':_0x565d4a[_0x5cdf1a(0x17c)]};return db[_0x5cdf1a(0x1b0)][_0x5cdf1a(0x1b2)](_0x3e8398)[_0x5cdf1a(0x1da)](function(_0xaf59b0){const _0x283078=_0x5cdf1a;return _0x528708[_0x283078(0x1b2)]=_0xaf59b0,_0x1c5551[_0x283078(0x1bf)][_0x283078(0x1dd)]&&(_0x565d4a['include']=[{'all':!![]}]),db[_0x283078(0x1b0)]['findAll'](_0x565d4a);})['then'](function(_0x12cf25){const _0x391467=_0x5cdf1a;return _0x528708[_0x391467(0x18a)]=_0x12cf25,_0x528708;})[_0x5cdf1a(0x1da)](respondWithFilteredResult(_0x3ee2a0,_0x565d4a))[_0x5cdf1a(0x16f)](handleError(_0x3ee2a0,null));},exports[a924_0x481391(0x175)]=function(_0x31cd8d,_0x58385e){const _0xd0612f=a924_0x481391;let _0x1fba73={'raw':![],'where':{'id':_0x31cd8d[_0xd0612f(0x18f)]['id']}};const _0x57fa53={};return _0x57fa53[_0xd0612f(0x1a4)]=_[_0xd0612f(0x1c8)](db[_0xd0612f(0x1b0)][_0xd0612f(0x171)]),_0x57fa53['query']=_[_0xd0612f(0x1c8)](_0x31cd8d[_0xd0612f(0x1bf)]),_0x57fa53[_0xd0612f(0x17f)]=_['intersection'](_0x57fa53[_0xd0612f(0x1a4)],_0x57fa53[_0xd0612f(0x1bf)]),_0x1fba73[_0xd0612f(0x1c2)]=_[_0xd0612f(0x1e2)](_0x57fa53[_0xd0612f(0x1a4)],qs['fields'](_0x31cd8d[_0xd0612f(0x1bf)]['fields'])),_0x1fba73[_0xd0612f(0x1c2)]=_0x1fba73[_0xd0612f(0x1c2)][_0xd0612f(0x1e9)]?_0x1fba73[_0xd0612f(0x1c2)]:_0x57fa53['model'],_0x31cd8d[_0xd0612f(0x1bf)][_0xd0612f(0x1dd)]&&(_0x1fba73[_0xd0612f(0x1c9)]=[{'all':!![]}]),_0x1fba73=_['merge']({},_0x1fba73,_0x31cd8d[_0xd0612f(0x16d)]),db[_0xd0612f(0x1b0)][_0xd0612f(0x1b3)](_0x1fba73)[_0xd0612f(0x1da)](handleEntityNotFound(_0x58385e,null))[_0xd0612f(0x1da)](respondWithResult(_0x58385e,null))['catch'](handleError(_0x58385e,null));},exports[a924_0x481391(0x1ac)]=function(_0x22489e,_0x2b4576){const _0x2b2adb=a924_0x481391;return db[_0x2b2adb(0x1b0)][_0x2b2adb(0x1ac)](_0x22489e[_0x2b2adb(0x1d0)],{})['then'](respondWithResult(_0x2b4576,0xc9))[_0x2b2adb(0x16f)](handleError(_0x2b4576,null));},exports[a924_0x481391(0x16c)]=function(_0x4f04f4,_0x80a781){const _0x5b7ca8=a924_0x481391;return _0x4f04f4[_0x5b7ca8(0x1d0)]['id']&&delete _0x4f04f4[_0x5b7ca8(0x1d0)]['id'],db[_0x5b7ca8(0x1b0)][_0x5b7ca8(0x1b3)]({'where':{'id':_0x4f04f4[_0x5b7ca8(0x18f)]['id']}})[_0x5b7ca8(0x1da)](handleEntityNotFound(_0x80a781,null))[_0x5b7ca8(0x1da)](saveUpdates(_0x4f04f4[_0x5b7ca8(0x1d0)],null))[_0x5b7ca8(0x1da)](respondWithResult(_0x80a781,null))[_0x5b7ca8(0x16f)](handleError(_0x80a781,null));},exports[a924_0x481391(0x183)]=function(_0x236121,_0x3ccdd8){const _0x194a9d=a924_0x481391;return db[_0x194a9d(0x1b0)][_0x194a9d(0x183)]()[_0x194a9d(0x1da)](respondWithResult(_0x3ccdd8,null))[_0x194a9d(0x16f)](handleError(_0x3ccdd8,null));},exports[a924_0x481391(0x1a9)]=function(_0x167850,_0x20027a){const _0x4da46b=a924_0x481391,_0xec0e6=require('../../components/encryptor');let _0x310b9e=![];const _0x4e34b3={};return _0x167850[_0x4da46b(0x1bf)]['type']&&_0x167850[_0x4da46b(0x1bf)][_0x4da46b(0x190)]===_0x4da46b(0x184)?_0x4e34b3[_0x4da46b(0x184)]=_0x167850[_0x4da46b(0x18f)]['id']:_0x4e34b3['id']=_0x167850['params']['id'],db[_0x4da46b(0x1b0)][_0x4da46b(0x1b3)]({'where':_0x4e34b3,'attributes':['id',_0x4da46b(0x19f)],'raw':!![]})['then'](handleEntityNotFound(_0x20027a,null))['then'](function(_0xbc25d){const _0x227b61=_0x4da46b;if(_0xbc25d){const _0x14a32f=_0xbc25d['value'],_0x3304b6=util['format'](_0x227b61(0x193),_0x14a32f);if(fs[_0x227b61(0x1df)](_0x3304b6))return _0x310b9e=!![],_0xec0e6[_0x227b61(0x1b6)](_0x3304b6,_0x14a32f,config[_0x227b61(0x1e8)][_0x227b61(0x1af)])['then'](function(){return _0xbc25d;});return _0xbc25d;}})[_0x4da46b(0x1da)](function(_0xa9b669){const _0x323f93=_0x4da46b;if(_0xa9b669){const _0x4b8881=_0xa9b669['value'];if(!fs[_0x323f93(0x1df)](_0x4b8881))throw new ValidationError('VoiceRecording\x20not\x20found');return _0xa9b669[_0x323f93(0x1d8)]?_0x20027a[_0x323f93(0x1a9)](_0x4b8881,_0xa9b669[_0x323f93(0x1d8)]+path['extname'](_0x4b8881),function(){const _0x181943=_0x323f93;_0x310b9e&&fs[_0x181943(0x17a)](_0x4b8881);}):_0x20027a[_0x323f93(0x1a9)](_0x4b8881,function(){const _0x1e7387=_0x323f93;_0x310b9e&&fs[_0x1e7387(0x17a)](_0x4b8881);});}})[_0x4da46b(0x16f)](function(_0x2793f2){const _0x547b11=_0x4da46b;if(_0x2793f2[_0x547b11(0x19a)]===_0x547b11(0x174))_0x20027a[_0x547b11(0x186)](0x194)[_0x547b11(0x1a0)](_0x547b11(0x196));else return handleError(_0x20027a,null);});},exports[a924_0x481391(0x16e)]=function(_0xfbf72c,_0xc65650){const _0x4a250d=a924_0x481391,_0x4ab179=require(_0x4a250d(0x170));let _0x511e0c=![];const _0x5e8ee1={[Op[_0x4a250d(0x19c)]]:[_0x5e8ee1(fn(_0x4a250d(0x19b),col(_0x4a250d(0x184))),_0xfbf72c[_0x4a250d(0x1bf)][_0x4a250d(0x17d)])]};return _0xfbf72c[_0x4a250d(0x1bf)][_0x4a250d(0x190)]&&_0xfbf72c[_0x4a250d(0x1bf)]['type']===_0x4a250d(0x184)?_0x5e8ee1[_0x4a250d(0x16b)][_0x4a250d(0x1e4)]({'uniqueid':_0xfbf72c['params']['id']}):_0x5e8ee1['$and']['push']({'id':_0xfbf72c[_0x4a250d(0x18f)]['id']}),db[_0x4a250d(0x1b0)][_0x4a250d(0x1b3)]({'where':_0x5e8ee1,'attributes':['id',_0x4a250d(0x19f)],'raw':!![]})[_0x4a250d(0x1da)](handleEntityNotFound(_0xc65650,null))[_0x4a250d(0x1da)](function(_0x395f76){const _0x307305=_0x4a250d;if(_0x395f76){const _0x2667f0=util[_0x307305(0x1a3)](_0x307305(0x193),_0x395f76[_0x307305(0x19f)]);if(fs['existsSync'](_0x2667f0))return _0x511e0c=!![],_0x4ab179['decryptFile'](_0x2667f0,_0x395f76['value'],config['secrets']['recording'])[_0x307305(0x1da)](function(){return _0x395f76;});return _0x395f76;}})['then'](function(_0x264435){const _0x525589=_0x4a250d;if(_0x264435){if(!fs['existsSync'](_0x264435[_0x525589(0x19f)]))throw new ValidationError('VoiceRecording\x20not\x20found');return _0x264435['filename']?_0xc65650[_0x525589(0x1a9)](_0x264435[_0x525589(0x19f)],_0x264435[_0x525589(0x1d8)]+path['extname'](_0x264435[_0x525589(0x19f)]),function(){const _0x456519=_0x525589;_0x511e0c&&fs[_0x456519(0x17a)](_0x264435[_0x456519(0x19f)]);}):_0xc65650['download'](_0x264435[_0x525589(0x19f)],function(){const _0xb9d10d=_0x525589;_0x511e0c&&fs[_0xb9d10d(0x17a)](_0x264435[_0xb9d10d(0x19f)]);});}})[_0x4a250d(0x16f)](handleError(_0xc65650,null));},exports['destroy']=function(_0x210b7c,_0x20eddb){const _0xf325e8=a924_0x481391;return db[_0xf325e8(0x1b0)][_0xf325e8(0x1b3)]({'where':{'id':_0x210b7c['params']['id']}})[_0xf325e8(0x1da)](function(_0x3e2011){const _0x1fb2d2=_0xf325e8;if(!_0x3e2011)throw new ReferenceError(_0x1fb2d2(0x19e));return _0x3e2011;})[_0xf325e8(0x1da)](function(_0xf5baf9){const _0x34b096=_0xf325e8;let _0x54e3ff=_0xf5baf9[_0x34b096(0x19f)];return logger[_0x34b096(0x1d4)](_0x34b096(0x1ca),_0x54e3ff),!_[_0x34b096(0x176)](_0xf5baf9['value'])&&fs[_0x34b096(0x1df)](_0x54e3ff)&&(logger[_0x34b096(0x1d4)](_0x34b096(0x1b8)+_0x54e3ff+_0x34b096(0x172)),fs[_0x34b096(0x1c3)](_0x54e3ff)),_0x54e3ff=_0x54e3ff+_0x34b096(0x192),!_[_0x34b096(0x176)](_0xf5baf9[_0x34b096(0x19f)])&&fs[_0x34b096(0x1df)](_0x54e3ff)&&(logger[_0x34b096(0x1d4)](_0x34b096(0x1b8)+_0x54e3ff+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs['unlinkSync'](_0x54e3ff)),_0xf5baf9;})[_0xf325e8(0x1da)](function(_0x17efac){const _0x5d9229=_0xf325e8;if(!_0x17efac)throw new InternalError();return _0x17efac[_0x5d9229(0x180)]();})[_0xf325e8(0x1da)](function(){const _0xee5df8=_0xf325e8;_0x20eddb['status'](0xcc)[_0xee5df8(0x169)]();})[_0xf325e8(0x16f)](handleError(_0x20eddb,null));};function getBucketslist(_0x5ce116,_0x21bdf6,_0x42693b){return new Promise(function(_0xfcf7e2,_0x40922e){const _0x2cc083=a924_0x3795,_0x4ca14a=new AWS['S3']({'accessKeyId':_0x21bdf6,'secretAccessKey':_0x5ce116,'region':_0x42693b});_0x4ca14a[_0x2cc083(0x1c5)]({},function(_0x28d174,_0x1954f4){return _0x28d174?_0x40922e(_0x28d174):_0xfcf7e2(_0x1954f4);});});}function createBucket(_0x227027,_0x467856,_0x27f431,_0x13672d){return new Promise(function(_0x15f3a2,_0xb3d737){const _0x13c393=a924_0x3795,_0x36059c=new AWS['S3']({'accessKeyId':_0x467856,'secretAccessKey':_0x227027,'region':_0x27f431});_0x36059c[_0x13c393(0x1cc)]({'Bucket':_0x13672d},function(_0x36e3cc,_0x447b73){return _0x36e3cc?_0xb3d737(_0x36e3cc):_0x15f3a2(_0x447b73);});});}function uploadFile(_0x2439db,_0x2861ec,_0x3a893f,_0x3ef76b,_0x619b3c,_0x9f39fb){return new Promise(function(_0x4dbbc5,_0x27c065){const _0x52f40e=a924_0x3795,_0x545680=new AWS['S3']({'accessKeyId':_0x2861ec,'secretAccessKey':_0x2439db,'region':_0x3a893f});_0x545680[_0x52f40e(0x181)]({'Bucket':_0x3ef76b,'Key':_0x619b3c,'Body':_0x9f39fb},function(_0x3da6e0,_0x3545b2){return _0x3da6e0?_0x27c065(_0x3da6e0):_0x4dbbc5(_0x3545b2);});});}function startTranscribe(_0x2aa8f8,_0x3f95c3,_0x208664,_0x215b0b,_0x11b53e,_0x3d132a){return new Promise(function(_0x17a938,_0x37e078){const _0x457700=a924_0x3795,_0x5648c5=new AWS[(_0x457700(0x1b9))]({'accessKeyId':_0x3f95c3,'secretAccessKey':_0x2aa8f8,'region':_0x208664});_0x5648c5[_0x457700(0x1c6)]({'TranscriptionJobName':_0x215b0b,'LanguageCode':_0x11b53e,'Media':{'MediaFileUri':_0x3d132a}},function(_0x3959a6,_0xd21a2c){return _0x3959a6?_0x37e078(_0x3959a6):_0x17a938(_0xd21a2c);});});}function transcribe(_0x321332,_0x22f14c,_0x511d15,_0x4ae5fc,_0xb5d732,_0x201003,_0x115767){return new Promise(function(_0x823a4f,_0x4b12dc){const _0x1fe3e5=a924_0x3795,_0x15bf67={};return logger[_0x1fe3e5(0x1d4)](util[_0x1fe3e5(0x1a3)](_0x1fe3e5(0x18d),_0x321332,_0xb5d732)),uploadFile(_0x22f14c,_0x511d15,_0x4ae5fc,_0xb5d732,path['basename'](_0x201003),fs[_0x1fe3e5(0x1b4)](_0x201003))[_0x1fe3e5(0x1da)](function(_0x50acdc){const _0x996d23=_0x1fe3e5;return logger[_0x996d23(0x1d4)](util[_0x996d23(0x1a3)](_0x996d23(0x1ed),_0x321332,_0xb5d732,_0x50acdc[_0x996d23(0x1c4)])),_0x15bf67[_0x996d23(0x1ae)]=_0x50acdc[_0x996d23(0x18e)],_0x15bf67[_0x996d23(0x1e3)]=_0x50acdc[_0x996d23(0x1c4)],logger[_0x996d23(0x1d4)](util[_0x996d23(0x1a3)](_0x996d23(0x1a8),_0x321332)),startTranscribe(_0x22f14c,_0x511d15,_0x4ae5fc,uuidv4(),_0x115767,_0x50acdc[_0x996d23(0x1c4)]);})[_0x1fe3e5(0x1da)](function(_0x4021d0){const _0x3d8f92=_0x1fe3e5;return logger[_0x3d8f92(0x1d4)](util[_0x3d8f92(0x1a3)](_0x3d8f92(0x19d),_0x321332,_0x4021d0[_0x3d8f92(0x1d6)]['TranscriptionJobName'])),_0x15bf67[_0x3d8f92(0x198)]=_0x4021d0[_0x3d8f92(0x1d6)][_0x3d8f92(0x1d1)],_0x15bf67[_0x3d8f92(0x17b)]=_0x4021d0['TranscriptionJob'][_0x3d8f92(0x191)],_0x823a4f(_0x15bf67);})[_0x1fe3e5(0x16f)](function(_0x143a38){return _0x4b12dc(_0x143a38);});});}exports[a924_0x481391(0x1ea)]=function(_0x36d467,_0x1dd7c6){const _0x1898b5=a924_0x481391;let _0x51cd71,_0xd0ea3b,_0x4801a9;const _0x5baa02=require(_0x1898b5(0x170));return db[_0x1898b5(0x1b0)][_0x1898b5(0x1b3)]({'where':{'id':_0x36d467[_0x1898b5(0x18f)]['id']}})['then'](function(_0x3b497d){const _0x30e445=_0x1898b5;if(_0x3b497d){const _0x23adc6=util[_0x30e445(0x1a3)]('%s.cypher',_0x3b497d[_0x30e445(0x19f)]);if(fs[_0x30e445(0x1df)](_0x23adc6))return _0x5baa02[_0x30e445(0x1b6)](_0x23adc6,_0x3b497d[_0x30e445(0x19f)],config[_0x30e445(0x1e8)]['recording'])[_0x30e445(0x1da)](function(){return _0x3b497d;});return _0x3b497d;}})[_0x1898b5(0x1da)](function(_0xcce2f){const _0x59df42=_0x1898b5;if(!_0xcce2f)throw new ValidationError(_0x59df42(0x1ba));return _0xd0ea3b=_0xcce2f,db[_0x59df42(0x187)][_0x59df42(0x1b3)]({'where':{'id':0x1}});})[_0x1898b5(0x1da)](handleEntityNotFound(_0x1dd7c6,null))[_0x1898b5(0x1da)](function(_0x16b451){const _0x5a0ca8=_0x1898b5;if(_0x16b451){_0x51cd71=_0x16b451;if(!_0x51cd71['transcribe']||!_0x51cd71[_0x5a0ca8(0x1b5)]||!_0x51cd71[_0x5a0ca8(0x1e5)]||!_0x51cd71[_0x5a0ca8(0x16a)]||!_0x51cd71[_0x5a0ca8(0x1ae)])throw new ValidationError(_0x5a0ca8(0x188));if(_0x36d467['body']['runSentiment']&&(!_0x51cd71['sentiment']||!_0x51cd71[_0x5a0ca8(0x179)]||!_0x51cd71[_0x5a0ca8(0x1d9)]||!_0x51cd71[_0x5a0ca8(0x16a)]||!_0x51cd71['bucket']))throw new ValidationError(_0x5a0ca8(0x1cf));return db[_0x5a0ca8(0x1de)][_0x5a0ca8(0x1b3)]({'where':{'id':_0x51cd71[_0x5a0ca8(0x1b5)]}});}})['then'](function(_0x58f78d){const _0x478801=_0x1898b5;if(!_0x58f78d)throw new ValidationError(_0x478801(0x1c7));if(!_0x58f78d['data1']||!_0x58f78d[_0x478801(0x1bb)])throw new ValidationError('Cloud\x20Provider\x20not\x20configured');return _0x4801a9=_0x58f78d,getBucketslist(_0x4801a9[_0x478801(0x1d2)],_0x4801a9[_0x478801(0x1bb)],_0x51cd71[_0x478801(0x1e5)]);})[_0x1898b5(0x1da)](function(_0x2c66d0){const _0x4bf129=_0x1898b5;if(_0x2c66d0&&_0x2c66d0[_0x4bf129(0x173)]){const _0x5cb9d0=_[_0x4bf129(0x1a7)](_0x2c66d0[_0x4bf129(0x173)],function(_0x25aed3){return _0x25aed3['Name']===_0x51cd71['bucket'];});if(!_0x5cb9d0)return logger[_0x4bf129(0x1d4)](util[_0x4bf129(0x1a3)]('[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20not\x20available',_0x36d467['params']['id'],_0x51cd71[_0x4bf129(0x1ae)])),createBucket(_0x4801a9['data1'],_0x4801a9[_0x4bf129(0x1bb)],_0x51cd71[_0x4bf129(0x1e5)],_0x51cd71[_0x4bf129(0x1ae)]);logger[_0x4bf129(0x1d4)](util[_0x4bf129(0x1a3)]('[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20available',_0x36d467[_0x4bf129(0x18f)]['id'],_0x51cd71[_0x4bf129(0x1ae)]));return;}})[_0x1898b5(0x1da)](function(){const _0x23de0b=_0x1898b5;return _0xd0ea3b['transcribeStatus']===_0x23de0b(0x1d3)?transcribe(_0x36d467[_0x23de0b(0x18f)]['id'],_0x4801a9[_0x23de0b(0x1d2)],_0x4801a9[_0x23de0b(0x1bb)],_0x51cd71[_0x23de0b(0x1e5)],_0x51cd71[_0x23de0b(0x1ae)],_0xd0ea3b[_0x23de0b(0x19f)],_0x51cd71['language']):(logger[_0x23de0b(0x1d4)](util[_0x23de0b(0x1a3)](_0x23de0b(0x1d7),_0x36d467['params']['id'])),{'transcribeStatus':_0x23de0b(0x1bd)});})[_0x1898b5(0x1da)](function(_0x2962a7){const _0x440797=_0x1898b5;if(_0x2962a7)return _0x2962a7[_0x440797(0x1bc)]=_0x36d467[_0x440797(0x1d0)]['runSentiment'],_0xd0ea3b[_0x440797(0x16c)](_0x2962a7);})['then'](respondWithResult(_0x1dd7c6,null))['catch'](handleError(_0x1dd7c6,null));};function writeFile(_0x4522bc,_0x20867f){return new Promise(function(_0x546be2,_0x14b147){const _0x2abb3e=a924_0x3795;fs[_0x2abb3e(0x1ec)](_0x20867f,_0x4522bc,function(_0x2247b9,_0x541623){return _0x2247b9?_0x14b147(_0x2247b9):_0x546be2(_0x541623);});});}exports[a924_0x481391(0x1c0)]=function(_0x443d35,_0x431af5){const _0x317bda=a924_0x481391;return db[_0x317bda(0x1b0)][_0x317bda(0x1b3)]({'where':{'id':_0x443d35[_0x317bda(0x18f)]['id']}})[_0x317bda(0x1da)](handleEntityNotFound(_0x431af5))['then'](function(_0x19bedf){const _0x9d47a=_0x317bda;if(_0x19bedf&&_0x19bedf[_0x9d47a(0x1e7)]){const _0x576cbd=_0x19bedf[_0x9d47a(0x1e7)],_0x42986f=config['root']+_0x9d47a(0x1ad)+_0x19bedf['id']+_0x9d47a(0x1a1);if(fs['existsSync'](_0x42986f))return _0x42986f;return writeFile(_0x576cbd,_0x42986f)[_0x9d47a(0x1da)](function(){return _0x42986f;});}else throw new ValidationError(_0x9d47a(0x1cb));})[_0x317bda(0x1da)](function(_0x1e9f65){const _0x281313=_0x317bda;return _0x431af5[_0x281313(0x1a9)](_0x1e9f65);})[_0x317bda(0x16f)](handleError(_0x431af5));}; \ No newline at end of file +const a924_0x1074=['\x22\x20trovato\x20eseguo\x20la\x20cancellazione','body','create','sort','Location','$and','json','error-middleware/errors','keys','../../components/parsers/qs','name','isNil','createBucket','extname','listBuckets','intersection','fieldName','transcribe','push','type','.txt','root','Setting','[RUNTRANSCRIPT][%d]\x20Voice\x20recording\x20uploaded\x20in\x20bucket\x20%s\x20(%s)','../../config/environment','existsSync','describe','bucket','.cypher','[RUNTRANSCRIPT][%d]\x20Transcript\x20action\x20already\x20requested','rows','Cloud\x20Provider\x20not\x20available','recording','secrets','tempSentiment','[RUNTRANSCRIPT][%d]\x20Starting\x20voice\x20recording\x20upload\x20in\x20bucket\x20%s','destroy','TranscriptionJobStatus','includeAll','include','transcribeAccountId','writeFile','end','Name','map','uuid','Transcript\x20not\x20available','send','fileText','decryptFile','Not\x20found','VoiceRecording','upload','../../config/logger','query','Content-Range','transcribeStatus','rawAttributes','startTranscriptionJob','sentimentRegion','then','and','limit','fields','options','basename','status','where','format','MD5','transcribeRegion','params','offset','catch','length','findOne','[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20not\x20available','info','language','merge','stack','TranscriptionJob','index','count','differenceBy','aws-sdk','downloadTranscribe','unlink','filters','data1','sendStatus','filename','IN_PROGRESS','lodash','location','runSentiment','Buckets','File:\x20\x22','Voice\x20Recording\x20not\x20found','show','path','download','unlinkSync','filter','data2','pick','attributes','model','[RUNTRANSCRIPT][%d]\x20Transcription\x20job\x20%s\x20created','NEW','util','%s.cypher','update','order','uniqueid','../../components/encryptor','Sentiment\x20Analysis\x20not\x20configured','value','../../mysqldb','VoiceRecording\x20not\x20found'];(function(_0x20bb00,_0x41ec64){const _0x1074b7=function(_0x23f506){while(--_0x23f506){_0x20bb00['push'](_0x20bb00['shift']());}};_0x1074b7(++_0x41ec64);}(a924_0x1074,0x172));const a924_0x23f5=function(_0x20bb00,_0x41ec64){_0x20bb00=_0x20bb00-0x1c4;let _0x1074b7=a924_0x1074[_0x20bb00];return _0x1074b7;};const a924_0x390b1a=a924_0x23f5;'use strict';const util=require(a924_0x390b1a(0x228)),path=require(a924_0x390b1a(0x21e)),fs=require('fs'),_=require(a924_0x390b1a(0x217)),AWS=require(a924_0x390b1a(0x20f)),{v4:uuidv4}=require(a924_0x390b1a(0x1e7)),qs=require(a924_0x390b1a(0x23b)),logger=require(a924_0x390b1a(0x1ef))('api'),config=require(a924_0x390b1a(0x1d2)),{db}=require(a924_0x390b1a(0x230)),{Op,fn,col,ValidationError}=require('sequelize'),{InternalError}=require(a924_0x390b1a(0x239));function respondWithResult(_0x20a85e,_0xabab68){return _0xabab68=_0xabab68||0xc8,function(_0x5e8841){const _0x4015d1=a924_0x23f5;if(_0x5e8841)return _0x20a85e[_0x4015d1(0x1fc)](_0xabab68)['json'](_0x5e8841);};}function respondWithFilteredResult(_0x43bbfa,_0x236742){return function(_0x5d3c9b){const _0x56ae4e=a924_0x23f5;if(_0x5d3c9b){const _0x3ea4f9=_0x5d3c9b[_0x56ae4e(0x20d)],_0x438fdb=_0x236742['offset'];let _0x2ecf1a=_0x236742[_0x56ae4e(0x202)]+_0x236742[_0x56ae4e(0x1f8)],_0x123594;return _0x2ecf1a>=_0x3ea4f9?(_0x2ecf1a=_0x3ea4f9,_0x123594=0xc8):_0x123594=0xce,_0x43bbfa[_0x56ae4e(0x1fc)](_0x123594),_0x43bbfa['set'](_0x56ae4e(0x1f1),_0x438fdb+'-'+_0x2ecf1a+'/'+_0x3ea4f9)[_0x56ae4e(0x238)](_0x5d3c9b);}return null;};}function saveUpdates(_0x56992a){return function(_0xc87ac4){const _0x516d2=a924_0x23f5;if(_0xc87ac4)return _0xc87ac4[_0x516d2(0x22a)](_0x56992a)[_0x516d2(0x1f6)](function(_0x4ff2ec){return _0x4ff2ec;});return null;};}function handleEntityNotFound(_0x24c38e){return function(_0x5b0202){const _0x4b8c77=a924_0x23f5;return!_0x5b0202&&_0x24c38e[_0x4b8c77(0x214)](0x194),_0x5b0202;};}function handleError(_0xc15509,_0x447ddf){return _0x447ddf=_0x447ddf||0x1f4,function(_0x5914d5){const _0x3caba5=a924_0x23f5;logger['error'](_0x5914d5[_0x3caba5(0x20a)]),_0x5914d5[_0x3caba5(0x1c4)]&&delete _0x5914d5['name'],_0xc15509['status'](_0x447ddf)[_0x3caba5(0x1e9)](_0x5914d5);};}exports[a924_0x390b1a(0x20c)]=function(_0x4f0f05,_0xe54b02){const _0x4dae68=a924_0x390b1a;let _0x3a6eeb={};const _0x4906b2={},_0x2760fc={'count':0x0,'rows':[]},_0xb87e01=_[_0x4dae68(0x1e6)](db[_0x4dae68(0x1ed)][_0x4dae68(0x1f3)],function(_0x101052){const _0x57d759=_0x4dae68;return{'name':_0x101052[_0x57d759(0x1ca)],'type':_0x101052[_0x57d759(0x1cd)]['key']};});_0x4906b2['model']=_[_0x4dae68(0x20e)](_['map'](_0xb87e01,_0x4dae68(0x1c4)),['format']),_0x4906b2[_0x4dae68(0x1f0)]=_[_0x4dae68(0x23a)](_0x4f0f05[_0x4dae68(0x1f0)]),_0x4906b2['filters']=_[_0x4dae68(0x1c9)](_0x4906b2[_0x4dae68(0x225)],_0x4906b2[_0x4dae68(0x1f0)]),_0x3a6eeb[_0x4dae68(0x224)]=_[_0x4dae68(0x1c9)](_0x4906b2[_0x4dae68(0x225)],qs['fields'](_0x4f0f05['query'][_0x4dae68(0x1f9)])),_0x3a6eeb[_0x4dae68(0x224)]=_0x3a6eeb[_0x4dae68(0x224)]['length']?_0x3a6eeb[_0x4dae68(0x224)]:_0x4906b2[_0x4dae68(0x225)];typeof _0x4f0f05['query']['nolimit']==='undefined'&&(_0x3a6eeb['limit']=qs[_0x4dae68(0x1f8)](_0x4f0f05[_0x4dae68(0x1f0)][_0x4dae68(0x1f8)]),_0x3a6eeb['offset']=qs[_0x4dae68(0x202)](_0x4f0f05[_0x4dae68(0x1f0)]['offset']));_0x3a6eeb[_0x4dae68(0x22b)]=qs[_0x4dae68(0x235)](_0x4f0f05[_0x4dae68(0x1f0)]['sort']),_0x3a6eeb[_0x4dae68(0x1fd)]=qs[_0x4dae68(0x212)](_[_0x4dae68(0x223)](_0x4f0f05['query'],_0x4906b2[_0x4dae68(0x212)]),_0xb87e01);_0x4f0f05[_0x4dae68(0x1f0)][_0x4dae68(0x221)]&&(_0x3a6eeb['where']=_['merge'](_0x3a6eeb[_0x4dae68(0x1fd)],{[Op['or']]:_[_0x4dae68(0x1e6)](_0xb87e01,function(_0x3ca0fd){const _0x6110e4=_0x4dae68;if(_0x3ca0fd[_0x6110e4(0x1cd)]!=='VIRTUAL'){const _0x320263={};return _0x320263[_0x3ca0fd['name']]={[Op['like']]:'%'+_0x4f0f05['query']['filter']+'%'},_0x320263;}})}));_0x3a6eeb=_[_0x4dae68(0x209)]({},_0x3a6eeb,_0x4f0f05[_0x4dae68(0x1fa)]);const _0x32a6b0={'where':_0x3a6eeb[_0x4dae68(0x1fd)]};return db['VoiceRecording'][_0x4dae68(0x20d)](_0x32a6b0)[_0x4dae68(0x1f6)](function(_0x5e0ae7){const _0x3eb8e7=_0x4dae68;return _0x2760fc['count']=_0x5e0ae7,_0x4f0f05['query'][_0x3eb8e7(0x1e0)]&&(_0x3a6eeb['include']=[{'all':!![]}]),db[_0x3eb8e7(0x1ed)]['findAll'](_0x3a6eeb);})[_0x4dae68(0x1f6)](function(_0x52c848){const _0x534eeb=_0x4dae68;return _0x2760fc[_0x534eeb(0x1d8)]=_0x52c848,_0x2760fc;})[_0x4dae68(0x1f6)](respondWithFilteredResult(_0xe54b02,_0x3a6eeb))[_0x4dae68(0x203)](handleError(_0xe54b02,null));},exports[a924_0x390b1a(0x21d)]=function(_0x1789ef,_0x4e3a85){const _0x4d5d03=a924_0x390b1a;let _0x21ffaa={'raw':![],'where':{'id':_0x1789ef[_0x4d5d03(0x201)]['id']}};const _0x420eb8={};return _0x420eb8[_0x4d5d03(0x225)]=_['keys'](db[_0x4d5d03(0x1ed)][_0x4d5d03(0x1f3)]),_0x420eb8[_0x4d5d03(0x1f0)]=_[_0x4d5d03(0x23a)](_0x1789ef[_0x4d5d03(0x1f0)]),_0x420eb8['filters']=_['intersection'](_0x420eb8[_0x4d5d03(0x225)],_0x420eb8['query']),_0x21ffaa['attributes']=_['intersection'](_0x420eb8[_0x4d5d03(0x225)],qs[_0x4d5d03(0x1f9)](_0x1789ef['query']['fields'])),_0x21ffaa['attributes']=_0x21ffaa['attributes'][_0x4d5d03(0x204)]?_0x21ffaa[_0x4d5d03(0x224)]:_0x420eb8[_0x4d5d03(0x225)],_0x1789ef[_0x4d5d03(0x1f0)]['includeAll']&&(_0x21ffaa[_0x4d5d03(0x1e1)]=[{'all':!![]}]),_0x21ffaa=_[_0x4d5d03(0x209)]({},_0x21ffaa,_0x1789ef[_0x4d5d03(0x1fa)]),db[_0x4d5d03(0x1ed)][_0x4d5d03(0x205)](_0x21ffaa)[_0x4d5d03(0x1f6)](handleEntityNotFound(_0x4e3a85,null))[_0x4d5d03(0x1f6)](respondWithResult(_0x4e3a85,null))[_0x4d5d03(0x203)](handleError(_0x4e3a85,null));},exports[a924_0x390b1a(0x234)]=function(_0x4065e6,_0x2c5026){const _0x1b865b=a924_0x390b1a;return db['VoiceRecording'][_0x1b865b(0x234)](_0x4065e6[_0x1b865b(0x233)],{})[_0x1b865b(0x1f6)](respondWithResult(_0x2c5026,0xc9))[_0x1b865b(0x203)](handleError(_0x2c5026,null));},exports['update']=function(_0x567b03,_0x523219){const _0x4f9034=a924_0x390b1a;return _0x567b03[_0x4f9034(0x233)]['id']&&delete _0x567b03[_0x4f9034(0x233)]['id'],db['VoiceRecording']['findOne']({'where':{'id':_0x567b03['params']['id']}})[_0x4f9034(0x1f6)](handleEntityNotFound(_0x523219,null))[_0x4f9034(0x1f6)](saveUpdates(_0x567b03['body'],null))[_0x4f9034(0x1f6)](respondWithResult(_0x523219,null))['catch'](handleError(_0x523219,null));},exports[a924_0x390b1a(0x1d4)]=function(_0x32baf4,_0x5925c9){const _0x3bcd3f=a924_0x390b1a;return db[_0x3bcd3f(0x1ed)]['describe']()['then'](respondWithResult(_0x5925c9,null))[_0x3bcd3f(0x203)](handleError(_0x5925c9,null));},exports[a924_0x390b1a(0x21f)]=function(_0xb6f3d,_0x4788d0){const _0x11c925=a924_0x390b1a,_0x4b017a=require(_0x11c925(0x22d));let _0x303153=![];const _0x352b8a={};return _0xb6f3d['query'][_0x11c925(0x1cd)]&&_0xb6f3d[_0x11c925(0x1f0)][_0x11c925(0x1cd)]===_0x11c925(0x22c)?_0x352b8a[_0x11c925(0x22c)]=_0xb6f3d[_0x11c925(0x201)]['id']:_0x352b8a['id']=_0xb6f3d['params']['id'],db[_0x11c925(0x1ed)][_0x11c925(0x205)]({'where':_0x352b8a,'attributes':['id',_0x11c925(0x22f)],'raw':!![]})[_0x11c925(0x1f6)](handleEntityNotFound(_0x4788d0,null))['then'](function(_0x415789){const _0x2b57e4=_0x11c925;if(_0x415789){const _0x19307f=_0x415789[_0x2b57e4(0x22f)],_0x5c5523=util['format'](_0x2b57e4(0x229),_0x19307f);if(fs[_0x2b57e4(0x1d3)](_0x5c5523))return _0x303153=!![],_0x4b017a[_0x2b57e4(0x1eb)](_0x5c5523,_0x19307f,config['secrets']['recording'])['then'](function(){return _0x415789;});return _0x415789;}})[_0x11c925(0x1f6)](function(_0x293e72){const _0x4a7357=_0x11c925;if(_0x293e72){const _0x1dbe60=_0x293e72[_0x4a7357(0x22f)];if(!fs[_0x4a7357(0x1d3)](_0x1dbe60))throw new ValidationError(_0x4a7357(0x231));return _0x293e72[_0x4a7357(0x215)]?_0x4788d0['download'](_0x1dbe60,_0x293e72[_0x4a7357(0x215)]+path[_0x4a7357(0x1c7)](_0x1dbe60),function(){const _0x58c245=_0x4a7357;_0x303153&&fs[_0x58c245(0x211)](_0x1dbe60);}):_0x4788d0['download'](_0x1dbe60,function(){const _0x5ad6af=_0x4a7357;_0x303153&&fs[_0x5ad6af(0x211)](_0x1dbe60);});}})[_0x11c925(0x203)](function(_0x558e01){const _0x172adb=_0x11c925;if(_0x558e01['message']===_0x172adb(0x231))_0x4788d0[_0x172adb(0x1fc)](0x194)['send'](_0x172adb(0x1ec));else return handleError(_0x4788d0,null);});},exports['downloads']=function(_0x5e0750,_0x54846b){const _0x142caa=a924_0x390b1a,_0xf7af33=require(_0x142caa(0x22d));let _0x4b446b=![];const _0x28fbd0={[Op[_0x142caa(0x1f7)]]:[_0x28fbd0(fn(_0x142caa(0x1ff),col(_0x142caa(0x22c))),_0x5e0750['query']['token'])]};return _0x5e0750['query']['type']&&_0x5e0750['query'][_0x142caa(0x1cd)]==='uniqueid'?_0x28fbd0[_0x142caa(0x237)][_0x142caa(0x1cc)]({'uniqueid':_0x5e0750[_0x142caa(0x201)]['id']}):_0x28fbd0[_0x142caa(0x237)][_0x142caa(0x1cc)]({'id':_0x5e0750['params']['id']}),db[_0x142caa(0x1ed)]['findOne']({'where':_0x28fbd0,'attributes':['id',_0x142caa(0x22f)],'raw':!![]})[_0x142caa(0x1f6)](handleEntityNotFound(_0x54846b,null))[_0x142caa(0x1f6)](function(_0x4251b7){const _0x57cdcf=_0x142caa;if(_0x4251b7){const _0x4dc12d=util[_0x57cdcf(0x1fe)](_0x57cdcf(0x229),_0x4251b7[_0x57cdcf(0x22f)]);if(fs[_0x57cdcf(0x1d3)](_0x4dc12d))return _0x4b446b=!![],_0xf7af33[_0x57cdcf(0x1eb)](_0x4dc12d,_0x4251b7[_0x57cdcf(0x22f)],config[_0x57cdcf(0x1db)][_0x57cdcf(0x1da)])[_0x57cdcf(0x1f6)](function(){return _0x4251b7;});return _0x4251b7;}})[_0x142caa(0x1f6)](function(_0xcc1d60){const _0x5294aa=_0x142caa;if(_0xcc1d60){if(!fs[_0x5294aa(0x1d3)](_0xcc1d60[_0x5294aa(0x22f)]))throw new ValidationError(_0x5294aa(0x231));return _0xcc1d60[_0x5294aa(0x215)]?_0x54846b[_0x5294aa(0x21f)](_0xcc1d60[_0x5294aa(0x22f)],_0xcc1d60[_0x5294aa(0x215)]+path[_0x5294aa(0x1c7)](_0xcc1d60['value']),function(){const _0xc3793e=_0x5294aa;_0x4b446b&&fs[_0xc3793e(0x211)](_0xcc1d60[_0xc3793e(0x22f)]);}):_0x54846b['download'](_0xcc1d60['value'],function(){const _0x39fc30=_0x5294aa;_0x4b446b&&fs['unlink'](_0xcc1d60[_0x39fc30(0x22f)]);});}})['catch'](handleError(_0x54846b,null));},exports[a924_0x390b1a(0x1de)]=function(_0x5d0641,_0x339733){const _0x548c82=a924_0x390b1a;return db[_0x548c82(0x1ed)][_0x548c82(0x205)]({'where':{'id':_0x5d0641['params']['id']}})[_0x548c82(0x1f6)](function(_0xe6e835){if(!_0xe6e835)throw new ReferenceError('Entity\x20not\x20found');return _0xe6e835;})[_0x548c82(0x1f6)](function(_0x2c418b){const _0x478838=_0x548c82;let _0x1643af=_0x2c418b['value'];return logger[_0x478838(0x207)]('cancellazione\x20fisica\x20documento\x20%s',_0x1643af),!_['isNil'](_0x2c418b[_0x478838(0x22f)])&&fs[_0x478838(0x1d3)](_0x1643af)&&(logger[_0x478838(0x207)](_0x478838(0x21b)+_0x1643af+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs['unlinkSync'](_0x1643af)),_0x1643af=_0x1643af+_0x478838(0x1d6),!_[_0x478838(0x1c5)](_0x2c418b[_0x478838(0x22f)])&&fs[_0x478838(0x1d3)](_0x1643af)&&(logger[_0x478838(0x207)](_0x478838(0x21b)+_0x1643af+_0x478838(0x232)),fs[_0x478838(0x220)](_0x1643af)),_0x2c418b;})[_0x548c82(0x1f6)](function(_0x3a8ad6){const _0x1281f4=_0x548c82;if(!_0x3a8ad6)throw new InternalError();return _0x3a8ad6[_0x1281f4(0x1de)]();})[_0x548c82(0x1f6)](function(){const _0x45b84f=_0x548c82;_0x339733[_0x45b84f(0x1fc)](0xcc)[_0x45b84f(0x1e4)]();})[_0x548c82(0x203)](handleError(_0x339733,null));};function getBucketslist(_0xd7e7e2,_0xe51c2e,_0x2b2304){return new Promise(function(_0x62eb97,_0x55ddf2){const _0xb68321=a924_0x23f5,_0x436bb7=new AWS['S3']({'accessKeyId':_0xe51c2e,'secretAccessKey':_0xd7e7e2,'region':_0x2b2304});_0x436bb7[_0xb68321(0x1c8)]({},function(_0x30e31f,_0x41e0d7){return _0x30e31f?_0x55ddf2(_0x30e31f):_0x62eb97(_0x41e0d7);});});}function createBucket(_0x23307a,_0x127194,_0x4681b7,_0x19d935){return new Promise(function(_0x48c3e5,_0x26be6b){const _0x2a3c20=a924_0x23f5,_0x52dd01=new AWS['S3']({'accessKeyId':_0x127194,'secretAccessKey':_0x23307a,'region':_0x4681b7});_0x52dd01[_0x2a3c20(0x1c6)]({'Bucket':_0x19d935},function(_0xcc97a8,_0x372f1c){return _0xcc97a8?_0x26be6b(_0xcc97a8):_0x48c3e5(_0x372f1c);});});}function uploadFile(_0x240a05,_0x464d4e,_0x541e83,_0x25daaf,_0x10b376,_0x93a8d6){return new Promise(function(_0x7a728,_0x557ba9){const _0x1578e1=a924_0x23f5,_0x22467a=new AWS['S3']({'accessKeyId':_0x464d4e,'secretAccessKey':_0x240a05,'region':_0x541e83});_0x22467a[_0x1578e1(0x1ee)]({'Bucket':_0x25daaf,'Key':_0x10b376,'Body':_0x93a8d6},function(_0x34788e,_0x1091a2){return _0x34788e?_0x557ba9(_0x34788e):_0x7a728(_0x1091a2);});});}function startTranscribe(_0x36b671,_0x15000a,_0x1b40b8,_0x43b2fc,_0x56955a,_0xce5f4e){return new Promise(function(_0x2fe6a2,_0x160619){const _0x206731=a924_0x23f5,_0x4b85f8=new AWS['TranscribeService']({'accessKeyId':_0x15000a,'secretAccessKey':_0x36b671,'region':_0x1b40b8});_0x4b85f8[_0x206731(0x1f4)]({'TranscriptionJobName':_0x43b2fc,'LanguageCode':_0x56955a,'Media':{'MediaFileUri':_0xce5f4e}},function(_0x5d34d8,_0x5cf7fb){return _0x5d34d8?_0x160619(_0x5d34d8):_0x2fe6a2(_0x5cf7fb);});});}function transcribe(_0x440ba9,_0xf0d309,_0x19b459,_0x2bc570,_0x3aa6cd,_0x4396ff,_0x23202c){return new Promise(function(_0x1ac09f,_0x3394c2){const _0x53a117=a924_0x23f5,_0x189f24={};return logger[_0x53a117(0x207)](util[_0x53a117(0x1fe)](_0x53a117(0x1dd),_0x440ba9,_0x3aa6cd)),uploadFile(_0xf0d309,_0x19b459,_0x2bc570,_0x3aa6cd,path[_0x53a117(0x1fb)](_0x4396ff),fs['readFileSync'](_0x4396ff))[_0x53a117(0x1f6)](function(_0x250e30){const _0x13a815=_0x53a117;return logger['info'](util['format'](_0x13a815(0x1d1),_0x440ba9,_0x3aa6cd,_0x250e30['Location'])),_0x189f24[_0x13a815(0x1d5)]=_0x250e30['Bucket'],_0x189f24[_0x13a815(0x218)]=_0x250e30[_0x13a815(0x236)],logger[_0x13a815(0x207)](util[_0x13a815(0x1fe)]('[RUNTRANSCRIPT][%d]\x20Sending\x20transcribe\x20request',_0x440ba9)),startTranscribe(_0xf0d309,_0x19b459,_0x2bc570,uuidv4(),_0x23202c,_0x250e30[_0x13a815(0x236)]);})[_0x53a117(0x1f6)](function(_0x42428f){const _0x10f15e=_0x53a117;return logger[_0x10f15e(0x207)](util[_0x10f15e(0x1fe)](_0x10f15e(0x226),_0x440ba9,_0x42428f[_0x10f15e(0x20b)]['TranscriptionJobName'])),_0x189f24['transcribeName']=_0x42428f[_0x10f15e(0x20b)]['TranscriptionJobName'],_0x189f24[_0x10f15e(0x1f2)]=_0x42428f[_0x10f15e(0x20b)][_0x10f15e(0x1df)],_0x1ac09f(_0x189f24);})[_0x53a117(0x203)](function(_0x3c5c9b){return _0x3394c2(_0x3c5c9b);});});}exports['runTranscribe']=function(_0x5c0356,_0x50a267){const _0x21f2c7=a924_0x390b1a;let _0x46b56c,_0x1fc240,_0x469b05;const _0x263dc9=require('../../components/encryptor');return db['VoiceRecording'][_0x21f2c7(0x205)]({'where':{'id':_0x5c0356['params']['id']}})['then'](function(_0x1c614c){const _0x802775=_0x21f2c7;if(_0x1c614c){const _0x33147d=util[_0x802775(0x1fe)](_0x802775(0x229),_0x1c614c['value']);if(fs['existsSync'](_0x33147d))return _0x263dc9[_0x802775(0x1eb)](_0x33147d,_0x1c614c[_0x802775(0x22f)],config[_0x802775(0x1db)][_0x802775(0x1da)])[_0x802775(0x1f6)](function(){return _0x1c614c;});return _0x1c614c;}})[_0x21f2c7(0x1f6)](function(_0x1f16da){const _0x2a01d1=_0x21f2c7;if(!_0x1f16da)throw new ValidationError(_0x2a01d1(0x21c));return _0x1fc240=_0x1f16da,db[_0x2a01d1(0x1d0)]['findOne']({'where':{'id':0x1}});})[_0x21f2c7(0x1f6)](handleEntityNotFound(_0x50a267,null))[_0x21f2c7(0x1f6)](function(_0x3d4365){const _0x4ae64d=_0x21f2c7;if(_0x3d4365){_0x46b56c=_0x3d4365;if(!_0x46b56c[_0x4ae64d(0x1cb)]||!_0x46b56c[_0x4ae64d(0x1e2)]||!_0x46b56c[_0x4ae64d(0x200)]||!_0x46b56c[_0x4ae64d(0x208)]||!_0x46b56c['bucket'])throw new ValidationError('Transcribe\x20not\x20configured');if(_0x5c0356[_0x4ae64d(0x233)][_0x4ae64d(0x219)]&&(!_0x46b56c['sentiment']||!_0x46b56c['sentimentAccountId']||!_0x46b56c[_0x4ae64d(0x1f5)]||!_0x46b56c[_0x4ae64d(0x208)]||!_0x46b56c[_0x4ae64d(0x1d5)]))throw new ValidationError(_0x4ae64d(0x22e));return db['CloudProvider'][_0x4ae64d(0x205)]({'where':{'id':_0x46b56c[_0x4ae64d(0x1e2)]}});}})[_0x21f2c7(0x1f6)](function(_0x28659f){const _0x2bd2c6=_0x21f2c7;if(!_0x28659f)throw new ValidationError(_0x2bd2c6(0x1d9));if(!_0x28659f['data1']||!_0x28659f['data2'])throw new ValidationError('Cloud\x20Provider\x20not\x20configured');return _0x469b05=_0x28659f,getBucketslist(_0x469b05[_0x2bd2c6(0x213)],_0x469b05[_0x2bd2c6(0x222)],_0x46b56c[_0x2bd2c6(0x200)]);})[_0x21f2c7(0x1f6)](function(_0x239427){const _0x26755d=_0x21f2c7;if(_0x239427&&_0x239427['Buckets']){const _0x272217=_['find'](_0x239427[_0x26755d(0x21a)],function(_0x5bbd0c){const _0x1a686d=_0x26755d;return _0x5bbd0c[_0x1a686d(0x1e5)]===_0x46b56c['bucket'];});if(!_0x272217)return logger[_0x26755d(0x207)](util[_0x26755d(0x1fe)](_0x26755d(0x206),_0x5c0356[_0x26755d(0x201)]['id'],_0x46b56c[_0x26755d(0x1d5)])),createBucket(_0x469b05[_0x26755d(0x213)],_0x469b05[_0x26755d(0x222)],_0x46b56c[_0x26755d(0x200)],_0x46b56c[_0x26755d(0x1d5)]);logger[_0x26755d(0x207)](util['format']('[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20available',_0x5c0356[_0x26755d(0x201)]['id'],_0x46b56c[_0x26755d(0x1d5)]));return;}})[_0x21f2c7(0x1f6)](function(){const _0x117769=_0x21f2c7;return _0x1fc240[_0x117769(0x1f2)]===_0x117769(0x227)?transcribe(_0x5c0356[_0x117769(0x201)]['id'],_0x469b05['data1'],_0x469b05[_0x117769(0x222)],_0x46b56c['transcribeRegion'],_0x46b56c[_0x117769(0x1d5)],_0x1fc240[_0x117769(0x22f)],_0x46b56c[_0x117769(0x208)]):(logger['info'](util['format'](_0x117769(0x1d7),_0x5c0356[_0x117769(0x201)]['id'])),{'transcribeStatus':_0x117769(0x216)});})[_0x21f2c7(0x1f6)](function(_0x514dc3){const _0x5ca480=_0x21f2c7;if(_0x514dc3)return _0x514dc3[_0x5ca480(0x1dc)]=_0x5c0356['body'][_0x5ca480(0x219)],_0x1fc240[_0x5ca480(0x22a)](_0x514dc3);})[_0x21f2c7(0x1f6)](respondWithResult(_0x50a267,null))[_0x21f2c7(0x203)](handleError(_0x50a267,null));};function writeFile(_0x8be44c,_0x135675){return new Promise(function(_0x14f813,_0x1a740d){const _0x22672f=a924_0x23f5;fs[_0x22672f(0x1e3)](_0x135675,_0x8be44c,function(_0x467f06,_0x2bf64e){return _0x467f06?_0x1a740d(_0x467f06):_0x14f813(_0x2bf64e);});});}exports[a924_0x390b1a(0x210)]=function(_0x1de432,_0x3070f6){const _0x4431e3=a924_0x390b1a;return db[_0x4431e3(0x1ed)][_0x4431e3(0x205)]({'where':{'id':_0x1de432[_0x4431e3(0x201)]['id']}})['then'](handleEntityNotFound(_0x3070f6))[_0x4431e3(0x1f6)](function(_0x3fc8bd){const _0x594f04=_0x4431e3;if(_0x3fc8bd&&_0x3fc8bd[_0x594f04(0x1ea)]){const _0x24eb40=_0x3fc8bd[_0x594f04(0x1ea)],_0x2752fa=config[_0x594f04(0x1cf)]+'/server/files/transcribes/transcribe_'+_0x3fc8bd['id']+_0x594f04(0x1ce);if(fs[_0x594f04(0x1d3)](_0x2752fa))return _0x2752fa;return writeFile(_0x24eb40,_0x2752fa)[_0x594f04(0x1f6)](function(){return _0x2752fa;});}else throw new ValidationError(_0x594f04(0x1e8));})[_0x4431e3(0x1f6)](function(_0x11b1ac){const _0xf88f0f=_0x4431e3;return _0x3070f6[_0xf88f0f(0x21f)](_0x11b1ac);})[_0x4431e3(0x203)](handleError(_0x3070f6));}; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.model.js b/server/api/voiceRecording/voiceRecording.model.js index 38338d3..92d3ea9 100644 --- a/server/api/voiceRecording/voiceRecording.model.js +++ b/server/api/voiceRecording/voiceRecording.model.js @@ -1 +1 @@ -const a925_0x2767=['function','init','VoiceRecording','./voiceRecording.attributes','exports'];(function(_0x2a7ee3,_0x5d7ff3){const _0x276798=function(_0x3c2124){while(--_0x3c2124){_0x2a7ee3['push'](_0x2a7ee3['shift']());}};_0x276798(++_0x5d7ff3);}(a925_0x2767,0x8c));const a925_0x3c21=function(_0x2a7ee3,_0x5d7ff3){_0x2a7ee3=_0x2a7ee3-0x100;let _0x276798=a925_0x2767[_0x2a7ee3];return _0x276798;};const a925_0x15ad53=a925_0x3c21;'use strict';const {Model}=require('sequelize'),{attributes}=require(a925_0x15ad53(0x103)),{options}=require('./voiceRecording.options');class VoiceRecording extends Model{}function init(_0x53f411,_0x20472e){const _0xd44ad8=a925_0x15ad53,_0x309c7b=options(_0x53f411),_0x40c7f9=typeof _0x20472e===_0xd44ad8(0x100)?_0x20472e(_0x309c7b):_0x309c7b;return VoiceRecording['init'](attributes,_0x40c7f9),VoiceRecording;}module[a925_0x15ad53(0x104)][a925_0x15ad53(0x102)]=VoiceRecording,module[a925_0x15ad53(0x104)][a925_0x15ad53(0x101)]=init; \ No newline at end of file +const a925_0x54f5=['init','sequelize','exports','./voiceRecording.options','VoiceRecording'];(function(_0x498eb8,_0x212a57){const _0x54f5b9=function(_0x507d50){while(--_0x507d50){_0x498eb8['push'](_0x498eb8['shift']());}};_0x54f5b9(++_0x212a57);}(a925_0x54f5,0x12a));const a925_0x507d=function(_0x498eb8,_0x212a57){_0x498eb8=_0x498eb8-0x1a8;let _0x54f5b9=a925_0x54f5[_0x498eb8];return _0x54f5b9;};const a925_0x4de6=a925_0x507d;'use strict';const {Model}=require(a925_0x4de6(0x1ab)),{attributes}=require('./voiceRecording.attributes'),{options}=require(a925_0x4de6(0x1a8));class VoiceRecording extends Model{}function init(_0x17b770,_0xa737c8){const _0xf78d9a=options(_0x17b770),_0x3b9afc=typeof _0xa737c8==='function'?_0xa737c8(_0xf78d9a):_0xf78d9a;return VoiceRecording['init'](attributes,_0x3b9afc),VoiceRecording;}module['exports'][a925_0x4de6(0x1a9)]=VoiceRecording,module[a925_0x4de6(0x1ac)][a925_0x4de6(0x1aa)]=init; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.options.js b/server/api/voiceRecording/voiceRecording.options.js index ecfc7d9..c20b97f 100644 --- a/server/api/voiceRecording/voiceRecording.options.js +++ b/server/api/voiceRecording/voiceRecording.options.js @@ -1 +1 @@ -var a926_0x3d4d=['options','exports','voice_recordings'];(function(_0x31a0c,_0x4c9d0b){var _0x3d4d14=function(_0x3a7183){while(--_0x3a7183){_0x31a0c['push'](_0x31a0c['shift']());}};_0x3d4d14(++_0x4c9d0b);}(a926_0x3d4d,0xdb));var a926_0x3a71=function(_0x31a0c,_0x4c9d0b){_0x31a0c=_0x31a0c-0x1d2;var _0x3d4d14=a926_0x3d4d[_0x31a0c];return _0x3d4d14;};var a926_0x33ffd2=a926_0x3a71;function options(_0x294c3c){var _0x55f378=a926_0x3a71;return{'sequelize':_0x294c3c,'tableName':_0x55f378(0x1d4),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]};}module[a926_0x33ffd2(0x1d3)][a926_0x33ffd2(0x1d2)]=options; \ No newline at end of file +var a926_0x2cb9=['uniqueid','exports','voice_recordings'];(function(_0x434948,_0x4573c3){var _0x2cb98e=function(_0x5a6f0d){while(--_0x5a6f0d){_0x434948['push'](_0x434948['shift']());}};_0x2cb98e(++_0x4573c3);}(a926_0x2cb9,0x10d));var a926_0x5a6f=function(_0x434948,_0x4573c3){_0x434948=_0x434948-0x84;var _0x2cb98e=a926_0x2cb9[_0x434948];return _0x2cb98e;};var a926_0x1640e7=a926_0x5a6f;function options(_0x3694f6){var _0x3e6a9b=a926_0x5a6f;return{'sequelize':_0x3694f6,'tableName':_0x3e6a9b(0x84),'paranoid':![],'indexes':[{'name':_0x3e6a9b(0x85),'fields':[_0x3e6a9b(0x85)]}],'timestamps':!![]};}module[a926_0x1640e7(0x86)]['options']=options; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.rpc.js b/server/api/voiceRecording/voiceRecording.rpc.js index 2b7095f..e9a3777 100644 --- a/server/api/voiceRecording/voiceRecording.rpc.js +++ b/server/api/voiceRecording/voiceRecording.rpc.js @@ -1 +1 @@ -const a927_0x4953=['format','body','findOne','message','UpdateVoiceRecording','rpc','raw','VoiceRecording','CreateVoiceRecording\x20file\x20encrypted','where','../../config/environment','error','info','CreateVoiceRecording','callRecordingEncryption','stringify','secrets','Setting','unlink','debug','existsSync','create','../../components/encryptor','options','value','then','catch','../../mysqldb'];(function(_0x1e2fd6,_0x13a79b){const _0x495394=function(_0x1cdc02){while(--_0x1cdc02){_0x1e2fd6['push'](_0x1e2fd6['shift']());}};_0x495394(++_0x13a79b);}(a927_0x4953,0x1c6));const a927_0x1cdc=function(_0x1e2fd6,_0x13a79b){_0x1e2fd6=_0x1e2fd6-0xce;let _0x495394=a927_0x4953[_0x1e2fd6];return _0x495394;};const a927_0xfb4863=a927_0x1cdc;'use strict';const util=require('util'),fs=require('fs'),db=require(a927_0xfb4863(0xe3))['db'],logger=require('../../config/logger')(a927_0xfb4863(0xe9)),config=require(a927_0xfb4863(0xd2));exports['UpdateVoiceRecording']=function(_0xd39f17){const _0x2ff4f0=this;return new Promise(function(_0x309d6f,_0x12a5a3){const _0x1e07ca=a927_0x1cdc;return db[_0x1e07ca(0xcf)]['update'](_0xd39f17[_0x1e07ca(0xe5)],{'raw':_0xd39f17[_0x1e07ca(0xdf)]?_0xd39f17[_0x1e07ca(0xdf)][_0x1e07ca(0xce)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xd39f17[_0x1e07ca(0xdf)]?_0xd39f17[_0x1e07ca(0xdf)][_0x1e07ca(0xd1)]||null:null,'attributes':_0xd39f17[_0x1e07ca(0xdf)]?_0xd39f17['options']['attributes']||null:null,'limit':_0xd39f17[_0x1e07ca(0xdf)]?_0xd39f17[_0x1e07ca(0xdf)]['limit']||null:null})[_0x1e07ca(0xe1)](function(_0x3182b4){const _0x514d62=_0x1e07ca;logger['info']('UpdateVoiceRecording',_0xd39f17),logger[_0x514d62(0xdb)](_0x514d62(0xe8),_0xd39f17,JSON[_0x514d62(0xd7)](_0x3182b4)),_0x309d6f(_0x3182b4);})['catch'](function(_0x260579){const _0x5245d3=_0x1e07ca;logger['error']('UpdateVoiceRecording',_0x260579[_0x5245d3(0xe7)],_0xd39f17),_0x12a5a3(_0x2ff4f0[_0x5245d3(0xd3)](0x1f4,_0x260579['message']));});});},exports[a927_0xfb4863(0xd5)]=function(_0x447847){const _0x12ab14=this;return new Promise(function(_0x31e0cb,_0x244453){const _0xe49b17=a927_0x1cdc,_0x40d794=require(_0xe49b17(0xde));let _0x33c3d3;return db[_0xe49b17(0xd9)][_0xe49b17(0xe6)]({'attributes':['id',_0xe49b17(0xd6)],'where':{'id':0x1},'raw':!![]})['then'](function(_0x5b1f5f){const _0x1a5240=_0xe49b17;return _0x33c3d3=_0x5b1f5f,db['VoiceRecording'][_0x1a5240(0xdd)](_0x447847['body']);})[_0xe49b17(0xe1)](function(_0x52a1e8){const _0x1c21fc=_0xe49b17;if(_0x33c3d3[_0x1c21fc(0xd6)]&&fs[_0x1c21fc(0xdc)](_0x52a1e8[_0x1c21fc(0xe0)])){const _0xc3370f=util[_0x1c21fc(0xe4)]('%s.cypher',_0x52a1e8[_0x1c21fc(0xe0)]);return _0x40d794['encryptFile'](_0x52a1e8[_0x1c21fc(0xe0)],_0xc3370f,config[_0x1c21fc(0xd8)]['recording'])['then'](function(){const _0x1820e3=_0x1c21fc;return fs[_0x1820e3(0xda)](_0x52a1e8['value']),logger['info'](_0x1820e3(0xd0)),_0x52a1e8;});}return _0x52a1e8;})['then'](function(_0x98c903){const _0x59d40f=_0xe49b17;logger[_0x59d40f(0xd4)](_0x59d40f(0xd5),_0x447847),logger[_0x59d40f(0xdb)](_0x59d40f(0xd5),_0x447847,JSON['stringify'](_0x98c903)),_0x31e0cb(_0x98c903);})[_0xe49b17(0xe2)](function(_0x5915dc){const _0xa3047c=_0xe49b17;logger['error']('CreateVoiceRecording',_0x5915dc[_0xa3047c(0xe7)],_0x447847),_0x244453(_0x12ab14[_0xa3047c(0xd3)](0x1f4,_0x5915dc[_0xa3047c(0xe7)]));});});}; \ No newline at end of file +const a927_0x2a3f=['format','../../mysqldb','%s.cypher','VoiceRecording','unlink','raw','recording','create','CreateVoiceRecording','debug','../../components/encryptor','stringify','body','encryptFile','../../config/logger','rpc','../../config/environment','existsSync','catch','findOne','error','then','options','UpdateVoiceRecording','message','callRecordingEncryption','value','limit','util','attributes','info','where','CreateVoiceRecording\x20file\x20encrypted'];(function(_0x4aafa2,_0x4b7c97){const _0x2a3fb9=function(_0x3682e9){while(--_0x3682e9){_0x4aafa2['push'](_0x4aafa2['shift']());}};_0x2a3fb9(++_0x4b7c97);}(a927_0x2a3f,0x87));const a927_0x3682=function(_0x4aafa2,_0x4b7c97){_0x4aafa2=_0x4aafa2-0x1f0;let _0x2a3fb9=a927_0x2a3f[_0x4aafa2];return _0x2a3fb9;};const a927_0x4de75d=a927_0x3682;'use strict';const util=require(a927_0x4de75d(0x209)),fs=require('fs'),db=require(a927_0x4de75d(0x20f))['db'],logger=require(a927_0x4de75d(0x1fb))(a927_0x4de75d(0x1fc)),config=require(a927_0x4de75d(0x1fd));exports['UpdateVoiceRecording']=function(_0x2fb888){const _0x478117=this;return new Promise(function(_0x3aed93,_0xcb87b0){const _0x27a0a8=a927_0x3682;return db[_0x27a0a8(0x1f0)]['update'](_0x2fb888['body'],{'raw':_0x2fb888['options']?_0x2fb888[_0x27a0a8(0x203)][_0x27a0a8(0x1f2)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2fb888[_0x27a0a8(0x203)]?_0x2fb888[_0x27a0a8(0x203)][_0x27a0a8(0x20c)]||null:null,'attributes':_0x2fb888[_0x27a0a8(0x203)]?_0x2fb888['options'][_0x27a0a8(0x20a)]||null:null,'limit':_0x2fb888[_0x27a0a8(0x203)]?_0x2fb888[_0x27a0a8(0x203)][_0x27a0a8(0x208)]||null:null})[_0x27a0a8(0x202)](function(_0x21932c){const _0x5d365c=_0x27a0a8;logger[_0x5d365c(0x20b)](_0x5d365c(0x204),_0x2fb888),logger[_0x5d365c(0x1f6)](_0x5d365c(0x204),_0x2fb888,JSON[_0x5d365c(0x1f8)](_0x21932c)),_0x3aed93(_0x21932c);})[_0x27a0a8(0x1ff)](function(_0x4bf21f){const _0x20ebc6=_0x27a0a8;logger[_0x20ebc6(0x201)](_0x20ebc6(0x204),_0x4bf21f['message'],_0x2fb888),_0xcb87b0(_0x478117['error'](0x1f4,_0x4bf21f[_0x20ebc6(0x205)]));});});},exports[a927_0x4de75d(0x1f5)]=function(_0x48d4f2){const _0x3416ac=this;return new Promise(function(_0x43b87c,_0x1bef3d){const _0x3fe7b3=a927_0x3682,_0x5178ec=require(_0x3fe7b3(0x1f7));let _0x3de068;return db['Setting'][_0x3fe7b3(0x200)]({'attributes':['id','callRecordingEncryption'],'where':{'id':0x1},'raw':!![]})[_0x3fe7b3(0x202)](function(_0x2ddefb){const _0x49e8cd=_0x3fe7b3;return _0x3de068=_0x2ddefb,db[_0x49e8cd(0x1f0)][_0x49e8cd(0x1f4)](_0x48d4f2[_0x49e8cd(0x1f9)]);})[_0x3fe7b3(0x202)](function(_0x593e94){const _0x4fa05e=_0x3fe7b3;if(_0x3de068[_0x4fa05e(0x206)]&&fs[_0x4fa05e(0x1fe)](_0x593e94[_0x4fa05e(0x207)])){const _0x439a20=util[_0x4fa05e(0x20e)](_0x4fa05e(0x210),_0x593e94[_0x4fa05e(0x207)]);return _0x5178ec[_0x4fa05e(0x1fa)](_0x593e94[_0x4fa05e(0x207)],_0x439a20,config['secrets'][_0x4fa05e(0x1f3)])[_0x4fa05e(0x202)](function(){const _0x26574b=_0x4fa05e;return fs[_0x26574b(0x1f1)](_0x593e94[_0x26574b(0x207)]),logger['info'](_0x26574b(0x20d)),_0x593e94;});}return _0x593e94;})[_0x3fe7b3(0x202)](function(_0x21825e){const _0x23aab7=_0x3fe7b3;logger['info'](_0x23aab7(0x1f5),_0x48d4f2),logger[_0x23aab7(0x1f6)](_0x23aab7(0x1f5),_0x48d4f2,JSON[_0x23aab7(0x1f8)](_0x21825e)),_0x43b87c(_0x21825e);})[_0x3fe7b3(0x1ff)](function(_0x352387){const _0x5779af=_0x3fe7b3;logger[_0x5779af(0x201)](_0x5779af(0x1f5),_0x352387[_0x5779af(0x205)],_0x48d4f2),_0x1bef3d(_0x3416ac[_0x5779af(0x201)](0x1f4,_0x352387[_0x5779af(0x205)]));});});}; \ No newline at end of file diff --git a/server/api/voiceTransferReport/index.js b/server/api/voiceTransferReport/index.js index 25ff5e5..60b21b9 100644 --- a/server/api/voiceTransferReport/index.js +++ b/server/api/voiceTransferReport/index.js @@ -1 +1 @@ -const a928_0x928f=['exports','express','index','get','put','update','../../components/auth/service','isAuthenticated','create','/:id'];(function(_0x3a28a4,_0x59685c){const _0x928f47=function(_0x5a4b4a){while(--_0x5a4b4a){_0x3a28a4['push'](_0x3a28a4['shift']());}};_0x928f47(++_0x59685c);}(a928_0x928f,0x1d3));const a928_0x5a4b=function(_0x3a28a4,_0x59685c){_0x3a28a4=_0x3a28a4-0x141;let _0x928f47=a928_0x928f[_0x3a28a4];return _0x928f47;};const a928_0x3a448e=a928_0x5a4b;'use strict';const express=require(a928_0x3a448e(0x145)),router=express['Router'](),auth=require(a928_0x3a448e(0x14a)),controller=require('./voiceTransferReport.controller');router[a928_0x3a448e(0x147)]('/',auth[a928_0x3a448e(0x141)](),controller[a928_0x3a448e(0x146)]),router['get'](a928_0x3a448e(0x143),auth[a928_0x3a448e(0x141)](),controller['show']),router['post']('/',auth[a928_0x3a448e(0x141)](),controller[a928_0x3a448e(0x142)]),router[a928_0x3a448e(0x148)](a928_0x3a448e(0x143),auth['isAuthenticated'](),controller[a928_0x3a448e(0x149)]),router['delete'](a928_0x3a448e(0x143),auth[a928_0x3a448e(0x141)](),controller['destroy']),module[a928_0x3a448e(0x144)]=router; \ No newline at end of file +const a928_0x4036=['index','../../components/auth/service','express','/:id','show','isAuthenticated','exports','delete','create','update','get','./voiceTransferReport.controller'];(function(_0x188262,_0x1f22e1){const _0x403624=function(_0x3ca76b){while(--_0x3ca76b){_0x188262['push'](_0x188262['shift']());}};_0x403624(++_0x1f22e1);}(a928_0x4036,0x1a5));const a928_0x3ca7=function(_0x188262,_0x1f22e1){_0x188262=_0x188262-0x77;let _0x403624=a928_0x4036[_0x188262];return _0x403624;};const a928_0x3c9fad=a928_0x3ca7;'use strict';const express=require(a928_0x3c9fad(0x78)),router=express['Router'](),auth=require(a928_0x3c9fad(0x77)),controller=require(a928_0x3c9fad(0x81));router[a928_0x3c9fad(0x80)]('/',auth['isAuthenticated'](),controller[a928_0x3c9fad(0x82)]),router[a928_0x3c9fad(0x80)](a928_0x3c9fad(0x79),auth['isAuthenticated'](),controller[a928_0x3c9fad(0x7a)]),router['post']('/',auth['isAuthenticated'](),controller[a928_0x3c9fad(0x7e)]),router['put']('/:id',auth[a928_0x3c9fad(0x7b)](),controller[a928_0x3c9fad(0x7f)]),router[a928_0x3c9fad(0x7d)](a928_0x3c9fad(0x79),auth[a928_0x3c9fad(0x7b)](),controller['destroy']),module[a928_0x3c9fad(0x7c)]=router; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.attributes.js b/server/api/voiceTransferReport/voiceTransferReport.attributes.js index 4a20c68..7bc7f98 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.attributes.js +++ b/server/api/voiceTransferReport/voiceTransferReport.attributes.js @@ -1 +1 @@ -const a929_0x2df7=['ENUM','blind','attended','attributes','Yes','exports','STRING'];(function(_0x4bf84a,_0x329325){const _0x2df740=function(_0x5736d4){while(--_0x5736d4){_0x4bf84a['push'](_0x4bf84a['shift']());}};_0x2df740(++_0x329325);}(a929_0x2df7,0xb4));const a929_0x5736=function(_0x4bf84a,_0x329325){_0x4bf84a=_0x4bf84a-0x69;let _0x2df740=a929_0x2df7[_0x4bf84a];return _0x2df740;};const a929_0x2d22f0=a929_0x5736;'use strict';const {DataTypes}=require('sequelize'),attributes={'type':{'type':DataTypes[a929_0x2d22f0(0x6b)](a929_0x2d22f0(0x6c),a929_0x2d22f0(0x6d))},'result':{'type':DataTypes[a929_0x2d22f0(0x6a)]},'transfererchannel':{'type':DataTypes[a929_0x2d22f0(0x6a)]},'transferercalleridnum':{'type':DataTypes[a929_0x2d22f0(0x6a)]},'transferercalleridname':{'type':DataTypes[a929_0x2d22f0(0x6a)]},'transfererconnectedlinenum':{'type':DataTypes[a929_0x2d22f0(0x6a)]},'transfererconnectedlinename':{'type':DataTypes[a929_0x2d22f0(0x6a)]},'transfereraccountcode':{'type':DataTypes[a929_0x2d22f0(0x6a)]},'transferercontext':{'type':DataTypes['STRING']},'transfererexten':{'type':DataTypes[a929_0x2d22f0(0x6a)]},'transfererlinkedid':{'type':DataTypes[a929_0x2d22f0(0x6a)]},'transfereechannel':{'type':DataTypes[a929_0x2d22f0(0x6a)]},'transfereecalleridnum':{'type':DataTypes[a929_0x2d22f0(0x6a)]},'transfereecalleridname':{'type':DataTypes[a929_0x2d22f0(0x6a)]},'transfereeconnectedlinenum':{'type':DataTypes[a929_0x2d22f0(0x6a)]},'transfereeconnectedlinename':{'type':DataTypes[a929_0x2d22f0(0x6a)]},'transfereeaccountcode':{'type':DataTypes['STRING']},'transfereecontext':{'type':DataTypes['STRING']},'transfereeexten':{'type':DataTypes['STRING']},'transfereelinkedid':{'type':DataTypes[a929_0x2d22f0(0x6a)]},'isexternal':{'type':DataTypes[a929_0x2d22f0(0x6b)](a929_0x2d22f0(0x6f),'No')},'context':{'type':DataTypes[a929_0x2d22f0(0x6a)]},'extension':{'type':DataTypes[a929_0x2d22f0(0x6a)]}};module[a929_0x2d22f0(0x69)][a929_0x2d22f0(0x6e)]=attributes; \ No newline at end of file +const a929_0x2498=['blind','Yes','attributes','STRING','exports','sequelize','ENUM'];(function(_0x55a03b,_0x4ff7a6){const _0x24983e=function(_0x4ab66c){while(--_0x4ab66c){_0x55a03b['push'](_0x55a03b['shift']());}};_0x24983e(++_0x4ff7a6);}(a929_0x2498,0x19a));const a929_0x4ab6=function(_0x55a03b,_0x4ff7a6){_0x55a03b=_0x55a03b-0x1b9;let _0x24983e=a929_0x2498[_0x55a03b];return _0x24983e;};const a929_0xf6ea93=a929_0x4ab6;'use strict';const {DataTypes}=require(a929_0xf6ea93(0x1ba)),attributes={'type':{'type':DataTypes[a929_0xf6ea93(0x1bb)](a929_0xf6ea93(0x1bc),'attended')},'result':{'type':DataTypes['STRING']},'transfererchannel':{'type':DataTypes['STRING']},'transferercalleridnum':{'type':DataTypes[a929_0xf6ea93(0x1bf)]},'transferercalleridname':{'type':DataTypes[a929_0xf6ea93(0x1bf)]},'transfererconnectedlinenum':{'type':DataTypes['STRING']},'transfererconnectedlinename':{'type':DataTypes[a929_0xf6ea93(0x1bf)]},'transfereraccountcode':{'type':DataTypes['STRING']},'transferercontext':{'type':DataTypes['STRING']},'transfererexten':{'type':DataTypes[a929_0xf6ea93(0x1bf)]},'transfererlinkedid':{'type':DataTypes[a929_0xf6ea93(0x1bf)]},'transfereechannel':{'type':DataTypes[a929_0xf6ea93(0x1bf)]},'transfereecalleridnum':{'type':DataTypes[a929_0xf6ea93(0x1bf)]},'transfereecalleridname':{'type':DataTypes[a929_0xf6ea93(0x1bf)]},'transfereeconnectedlinenum':{'type':DataTypes[a929_0xf6ea93(0x1bf)]},'transfereeconnectedlinename':{'type':DataTypes[a929_0xf6ea93(0x1bf)]},'transfereeaccountcode':{'type':DataTypes['STRING']},'transfereecontext':{'type':DataTypes[a929_0xf6ea93(0x1bf)]},'transfereeexten':{'type':DataTypes['STRING']},'transfereelinkedid':{'type':DataTypes[a929_0xf6ea93(0x1bf)]},'isexternal':{'type':DataTypes[a929_0xf6ea93(0x1bb)](a929_0xf6ea93(0x1bd),'No')},'context':{'type':DataTypes[a929_0xf6ea93(0x1bf)]},'extension':{'type':DataTypes[a929_0xf6ea93(0x1bf)]}};module[a929_0xf6ea93(0x1b9)][a929_0xf6ea93(0x1be)]=attributes; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.controller.js b/server/api/voiceTransferReport/voiceTransferReport.controller.js index b9c23a6..e66ae86 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.controller.js +++ b/server/api/voiceTransferReport/voiceTransferReport.controller.js @@ -1 +1 @@ -const a930_0x1fc0=['includeAll','create','sort','intersection','findAll','../../mysqldb','update','body','fieldName','error','destroy','api','set','catch','rows','lodash','merge','options','status','send','end','VIRTUAL','findOne','map','query','fields','filter','filters','include','VoiceTransferReport','offset','nolimit','show','key','Content-Range','rawAttributes','name','type','length','like','where','params','json','limit','undefined','model','then','attributes','../../config/logger','index','count','../../components/parsers/qs'];(function(_0x52e219,_0x48777a){const _0x1fc000=function(_0xbdfd7){while(--_0xbdfd7){_0x52e219['push'](_0x52e219['shift']());}};_0x1fc000(++_0x48777a);}(a930_0x1fc0,0x134));const a930_0xbdfd=function(_0x52e219,_0x48777a){_0x52e219=_0x52e219-0xcb;let _0x1fc000=a930_0x1fc0[_0x52e219];return _0x1fc000;};const a930_0x50e1ef=a930_0xbdfd;'use strict';const _=require(a930_0x50e1ef(0xde)),qs=require(a930_0x50e1ef(0xce)),logger=require(a930_0x50e1ef(0xcb))(a930_0x50e1ef(0xda)),{db}=require(a930_0x50e1ef(0xd4)),{Op}=require('sequelize');function respondWithResult(_0x62710a,_0x59c3cb){return _0x59c3cb=_0x59c3cb||0xc8,function(_0x51c99c){const _0x2c9eac=a930_0xbdfd;if(_0x51c99c)return _0x62710a[_0x2c9eac(0xe1)](_0x59c3cb)['json'](_0x51c99c);};}function respondWithFilteredResult(_0x30fa7f,_0x2cc1b3){return function(_0x597846){const _0x6b0833=a930_0xbdfd;if(_0x597846){const _0x4f26b9=_0x597846[_0x6b0833(0xcd)],_0x3f8f8f=_0x2cc1b3[_0x6b0833(0xed)];let _0xa4db43=_0x2cc1b3[_0x6b0833(0xed)]+_0x2cc1b3[_0x6b0833(0xfa)],_0x739ee8;return _0xa4db43>=_0x4f26b9?(_0xa4db43=_0x4f26b9,_0x739ee8=0xc8):_0x739ee8=0xce,_0x30fa7f[_0x6b0833(0xe1)](_0x739ee8),_0x30fa7f[_0x6b0833(0xdb)](_0x6b0833(0xf1),_0x3f8f8f+'-'+_0xa4db43+'/'+_0x4f26b9)[_0x6b0833(0xf9)](_0x597846);}return null;};}function saveUpdates(_0x265f53){return function(_0x17d699){const _0x487f6a=a930_0xbdfd;if(_0x17d699)return _0x17d699[_0x487f6a(0xd5)](_0x265f53)[_0x487f6a(0xfd)](function(_0xd7e00b){return _0xd7e00b;});return null;};}function removeEntity(_0xaa458c){return function(_0x582511){const _0x2a288f=a930_0xbdfd;if(_0x582511)return _0x582511['destroy']()[_0x2a288f(0xfd)](function(){const _0x4c782f=_0x2a288f;_0xaa458c['status'](0xcc)[_0x4c782f(0xe3)]();});};}function handleEntityNotFound(_0x3c0931){return function(_0x20404f){return!_0x20404f&&_0x3c0931['sendStatus'](0x194),_0x20404f;};}function handleError(_0x474843,_0x3fa4a0){return _0x3fa4a0=_0x3fa4a0||0x1f4,function(_0x5973c6){const _0x4c5722=a930_0xbdfd;logger[_0x4c5722(0xd8)](_0x5973c6['stack']),_0x5973c6[_0x4c5722(0xf3)]&&delete _0x5973c6['name'],_0x474843[_0x4c5722(0xe1)](_0x3fa4a0)[_0x4c5722(0xe2)](_0x5973c6);};}exports[a930_0x50e1ef(0xcc)]=function(_0x435d90,_0xf4fd37){const _0x3597e1=a930_0x50e1ef;let _0x5179bc={};const _0x377383={},_0x483d90={'count':0x0,'rows':[]},_0x2b8f79=_[_0x3597e1(0xe6)](db['VoiceTransferReport'][_0x3597e1(0xf2)],function(_0x5e1e22){const _0x3cc51f=_0x3597e1;return{'name':_0x5e1e22[_0x3cc51f(0xd7)],'type':_0x5e1e22[_0x3cc51f(0xf4)][_0x3cc51f(0xf0)]};});_0x377383[_0x3597e1(0xfc)]=_[_0x3597e1(0xe6)](_0x2b8f79,_0x3597e1(0xf3)),_0x377383[_0x3597e1(0xe7)]=_['keys'](_0x435d90[_0x3597e1(0xe7)]),_0x377383[_0x3597e1(0xea)]=_[_0x3597e1(0xd2)](_0x377383['model'],_0x377383[_0x3597e1(0xe7)]),_0x5179bc[_0x3597e1(0xfe)]=_[_0x3597e1(0xd2)](_0x377383[_0x3597e1(0xfc)],qs[_0x3597e1(0xe8)](_0x435d90[_0x3597e1(0xe7)][_0x3597e1(0xe8)])),_0x5179bc['attributes']=_0x5179bc[_0x3597e1(0xfe)][_0x3597e1(0xf5)]?_0x5179bc[_0x3597e1(0xfe)]:_0x377383['model'];typeof _0x435d90['query'][_0x3597e1(0xee)]===_0x3597e1(0xfb)&&(_0x5179bc['limit']=qs[_0x3597e1(0xfa)](_0x435d90[_0x3597e1(0xe7)][_0x3597e1(0xfa)]),_0x5179bc['offset']=qs[_0x3597e1(0xed)](_0x435d90['query'][_0x3597e1(0xed)]));_0x5179bc['order']=qs[_0x3597e1(0xd1)](_0x435d90[_0x3597e1(0xe7)][_0x3597e1(0xd1)]),_0x5179bc[_0x3597e1(0xf7)]=qs[_0x3597e1(0xea)](_['pick'](_0x435d90['query'],_0x377383[_0x3597e1(0xea)]),_0x2b8f79);_0x435d90[_0x3597e1(0xe7)][_0x3597e1(0xe9)]&&(_0x5179bc[_0x3597e1(0xf7)]=_[_0x3597e1(0xdf)](_0x5179bc['where'],{[Op['or']]:_[_0x3597e1(0xe6)](_0x2b8f79,function(_0x2ebbdb){const _0x566a62=_0x3597e1;if(_0x2ebbdb[_0x566a62(0xf4)]!==_0x566a62(0xe4)){const _0x4fd11a={};return _0x4fd11a[_0x2ebbdb[_0x566a62(0xf3)]]={[Op[_0x566a62(0xf6)]]:'%'+_0x435d90['query']['filter']+'%'},_0x4fd11a;}})}));_0x5179bc=_[_0x3597e1(0xdf)]({},_0x5179bc,_0x435d90[_0x3597e1(0xe0)]);const _0x938326={'where':_0x5179bc[_0x3597e1(0xf7)]};return db[_0x3597e1(0xec)][_0x3597e1(0xcd)](_0x938326)[_0x3597e1(0xfd)](function(_0x414e9e){const _0x15af55=_0x3597e1;return _0x483d90[_0x15af55(0xcd)]=_0x414e9e,_0x435d90[_0x15af55(0xe7)][_0x15af55(0xcf)]&&(_0x5179bc[_0x15af55(0xeb)]=[{'all':!![]}]),db['VoiceTransferReport'][_0x15af55(0xd3)](_0x5179bc);})[_0x3597e1(0xfd)](function(_0x37b171){const _0xa791ca=_0x3597e1;return _0x483d90[_0xa791ca(0xdd)]=_0x37b171,_0x483d90;})['then'](respondWithFilteredResult(_0xf4fd37,_0x5179bc))[_0x3597e1(0xdc)](handleError(_0xf4fd37,null));},exports[a930_0x50e1ef(0xef)]=function(_0x2360ac,_0x24d676){const _0xc53cc7=a930_0x50e1ef;let _0x367479={'raw':!![],'where':{'id':_0x2360ac[_0xc53cc7(0xf8)]['id']}};const _0x422f13={};return _0x422f13[_0xc53cc7(0xfc)]=_['keys'](db[_0xc53cc7(0xec)][_0xc53cc7(0xf2)]),_0x422f13[_0xc53cc7(0xe7)]=_['keys'](_0x2360ac[_0xc53cc7(0xe7)]),_0x422f13[_0xc53cc7(0xea)]=_[_0xc53cc7(0xd2)](_0x422f13['model'],_0x422f13[_0xc53cc7(0xe7)]),_0x367479[_0xc53cc7(0xfe)]=_[_0xc53cc7(0xd2)](_0x422f13['model'],qs['fields'](_0x2360ac[_0xc53cc7(0xe7)]['fields'])),_0x367479['attributes']=_0x367479[_0xc53cc7(0xfe)][_0xc53cc7(0xf5)]?_0x367479[_0xc53cc7(0xfe)]:_0x422f13[_0xc53cc7(0xfc)],_0x2360ac[_0xc53cc7(0xe7)][_0xc53cc7(0xcf)]&&(_0x367479[_0xc53cc7(0xeb)]=[{'all':!![]}]),_0x367479=_['merge']({},_0x367479,_0x2360ac[_0xc53cc7(0xe0)]),db[_0xc53cc7(0xec)][_0xc53cc7(0xe5)](_0x367479)[_0xc53cc7(0xfd)](handleEntityNotFound(_0x24d676,null))[_0xc53cc7(0xfd)](respondWithResult(_0x24d676,null))['catch'](handleError(_0x24d676,null));},exports[a930_0x50e1ef(0xd0)]=function(_0xf3bfea,_0x5b08c4){const _0x47804d=a930_0x50e1ef;return db[_0x47804d(0xec)][_0x47804d(0xd0)](_0xf3bfea[_0x47804d(0xd6)],{})[_0x47804d(0xfd)](respondWithResult(_0x5b08c4,0xc9))[_0x47804d(0xdc)](handleError(_0x5b08c4,null));},exports[a930_0x50e1ef(0xd5)]=function(_0x59ce6e,_0x2c17ee){const _0x1a9130=a930_0x50e1ef;return _0x59ce6e[_0x1a9130(0xd6)]['id']&&delete _0x59ce6e[_0x1a9130(0xd6)]['id'],db[_0x1a9130(0xec)][_0x1a9130(0xe5)]({'where':{'id':_0x59ce6e[_0x1a9130(0xf8)]['id']}})[_0x1a9130(0xfd)](handleEntityNotFound(_0x2c17ee,null))['then'](saveUpdates(_0x59ce6e[_0x1a9130(0xd6)],null))[_0x1a9130(0xfd)](respondWithResult(_0x2c17ee,null))[_0x1a9130(0xdc)](handleError(_0x2c17ee,null));},exports[a930_0x50e1ef(0xd9)]=function(_0x1c051b,_0xd93eb5){const _0x34ae45=a930_0x50e1ef;return db['VoiceTransferReport'][_0x34ae45(0xe5)]({'where':{'id':_0x1c051b[_0x34ae45(0xf8)]['id']}})['then'](handleEntityNotFound(_0xd93eb5,null))[_0x34ae45(0xfd)](removeEntity(_0xd93eb5,null))[_0x34ae45(0xdc)](handleError(_0xd93eb5,null));}; \ No newline at end of file +const a930_0x196b=['options','filters','keys','index','length','merge','attributes','where','key','offset','count','then','lodash','error','set','status','order','intersection','limit','VIRTUAL','api','rawAttributes','destroy','pick','show','catch','name','../../mysqldb','model','update','query','include','map','params','sequelize','sendStatus','like','body','fieldName','rows','VoiceTransferReport','../../config/logger','fields','includeAll','filter','../../components/parsers/qs','Content-Range','type','send','sort','end','create','findOne','json'];(function(_0x1c2c8d,_0x965e6a){const _0x196b5d=function(_0x32c15f){while(--_0x32c15f){_0x1c2c8d['push'](_0x1c2c8d['shift']());}};_0x196b5d(++_0x965e6a);}(a930_0x196b,0x139));const a930_0x32c1=function(_0x1c2c8d,_0x965e6a){_0x1c2c8d=_0x1c2c8d-0x1b8;let _0x196b5d=a930_0x196b[_0x1c2c8d];return _0x196b5d;};const a930_0x4dd0d7=a930_0x32c1;'use strict';const _=require(a930_0x4dd0d7(0x1cf)),qs=require(a930_0x4dd0d7(0x1ba)),logger=require(a930_0x4dd0d7(0x1ec))(a930_0x4dd0d7(0x1d7)),{db}=require(a930_0x4dd0d7(0x1de)),{Op}=require(a930_0x4dd0d7(0x1e5));function respondWithResult(_0x48d3be,_0x5ebbaa){return _0x5ebbaa=_0x5ebbaa||0xc8,function(_0xed4f29){const _0x18cce1=a930_0x32c1;if(_0xed4f29)return _0x48d3be[_0x18cce1(0x1d2)](_0x5ebbaa)[_0x18cce1(0x1c2)](_0xed4f29);};}function respondWithFilteredResult(_0x1e12cb,_0x429b36){return function(_0xdcbd8c){const _0x4643a3=a930_0x32c1;if(_0xdcbd8c){const _0x180806=_0xdcbd8c['count'],_0x959046=_0x429b36[_0x4643a3(0x1cc)];let _0x2f6758=_0x429b36[_0x4643a3(0x1cc)]+_0x429b36[_0x4643a3(0x1d5)],_0x5d4686;return _0x2f6758>=_0x180806?(_0x2f6758=_0x180806,_0x5d4686=0xc8):_0x5d4686=0xce,_0x1e12cb[_0x4643a3(0x1d2)](_0x5d4686),_0x1e12cb[_0x4643a3(0x1d1)](_0x4643a3(0x1bb),_0x959046+'-'+_0x2f6758+'/'+_0x180806)[_0x4643a3(0x1c2)](_0xdcbd8c);}return null;};}function saveUpdates(_0x23fb89){return function(_0x1098a7){const _0x10d26d=a930_0x32c1;if(_0x1098a7)return _0x1098a7[_0x10d26d(0x1e0)](_0x23fb89)[_0x10d26d(0x1ce)](function(_0x5c2e44){return _0x5c2e44;});return null;};}function removeEntity(_0x1cebe6){return function(_0x2e122d){const _0x2d4146=a930_0x32c1;if(_0x2e122d)return _0x2e122d[_0x2d4146(0x1d9)]()[_0x2d4146(0x1ce)](function(){const _0x51400a=_0x2d4146;_0x1cebe6[_0x51400a(0x1d2)](0xcc)[_0x51400a(0x1bf)]();});};}function handleEntityNotFound(_0x2426ef){return function(_0x3f2e67){const _0xcf0542=a930_0x32c1;return!_0x3f2e67&&_0x2426ef[_0xcf0542(0x1e6)](0x194),_0x3f2e67;};}function handleError(_0x23d810,_0x43d19a){return _0x43d19a=_0x43d19a||0x1f4,function(_0x33c090){const _0x5659de=a930_0x32c1;logger[_0x5659de(0x1d0)](_0x33c090['stack']),_0x33c090[_0x5659de(0x1dd)]&&delete _0x33c090[_0x5659de(0x1dd)],_0x23d810[_0x5659de(0x1d2)](_0x43d19a)[_0x5659de(0x1bd)](_0x33c090);};}exports[a930_0x4dd0d7(0x1c6)]=function(_0x1595ab,_0x21b65b){const _0x224aad=a930_0x4dd0d7;let _0x4549fd={};const _0x360da6={},_0x499722={'count':0x0,'rows':[]},_0x4ad827=_[_0x224aad(0x1e3)](db[_0x224aad(0x1eb)][_0x224aad(0x1d8)],function(_0x4ed4d3){const _0xb31e63=_0x224aad;return{'name':_0x4ed4d3[_0xb31e63(0x1e9)],'type':_0x4ed4d3[_0xb31e63(0x1bc)][_0xb31e63(0x1cb)]};});_0x360da6['model']=_[_0x224aad(0x1e3)](_0x4ad827,_0x224aad(0x1dd)),_0x360da6[_0x224aad(0x1e1)]=_[_0x224aad(0x1c5)](_0x1595ab[_0x224aad(0x1e1)]),_0x360da6[_0x224aad(0x1c4)]=_[_0x224aad(0x1d4)](_0x360da6['model'],_0x360da6[_0x224aad(0x1e1)]),_0x4549fd['attributes']=_[_0x224aad(0x1d4)](_0x360da6[_0x224aad(0x1df)],qs[_0x224aad(0x1ed)](_0x1595ab[_0x224aad(0x1e1)]['fields'])),_0x4549fd[_0x224aad(0x1c9)]=_0x4549fd['attributes'][_0x224aad(0x1c7)]?_0x4549fd['attributes']:_0x360da6[_0x224aad(0x1df)];typeof _0x1595ab[_0x224aad(0x1e1)]['nolimit']==='undefined'&&(_0x4549fd[_0x224aad(0x1d5)]=qs[_0x224aad(0x1d5)](_0x1595ab['query'][_0x224aad(0x1d5)]),_0x4549fd['offset']=qs['offset'](_0x1595ab[_0x224aad(0x1e1)][_0x224aad(0x1cc)]));_0x4549fd[_0x224aad(0x1d3)]=qs[_0x224aad(0x1be)](_0x1595ab[_0x224aad(0x1e1)][_0x224aad(0x1be)]),_0x4549fd[_0x224aad(0x1ca)]=qs['filters'](_[_0x224aad(0x1da)](_0x1595ab['query'],_0x360da6[_0x224aad(0x1c4)]),_0x4ad827);_0x1595ab[_0x224aad(0x1e1)][_0x224aad(0x1b9)]&&(_0x4549fd[_0x224aad(0x1ca)]=_['merge'](_0x4549fd['where'],{[Op['or']]:_[_0x224aad(0x1e3)](_0x4ad827,function(_0x2afcac){const _0x2feb10=_0x224aad;if(_0x2afcac[_0x2feb10(0x1bc)]!==_0x2feb10(0x1d6)){const _0x3e7c4d={};return _0x3e7c4d[_0x2afcac[_0x2feb10(0x1dd)]]={[Op[_0x2feb10(0x1e7)]]:'%'+_0x1595ab[_0x2feb10(0x1e1)][_0x2feb10(0x1b9)]+'%'},_0x3e7c4d;}})}));_0x4549fd=_[_0x224aad(0x1c8)]({},_0x4549fd,_0x1595ab[_0x224aad(0x1c3)]);const _0x352dde={'where':_0x4549fd[_0x224aad(0x1ca)]};return db['VoiceTransferReport'][_0x224aad(0x1cd)](_0x352dde)['then'](function(_0x16b7cc){const _0x17a054=_0x224aad;return _0x499722['count']=_0x16b7cc,_0x1595ab[_0x17a054(0x1e1)][_0x17a054(0x1b8)]&&(_0x4549fd['include']=[{'all':!![]}]),db[_0x17a054(0x1eb)]['findAll'](_0x4549fd);})['then'](function(_0x3cd673){const _0x23a7f0=_0x224aad;return _0x499722[_0x23a7f0(0x1ea)]=_0x3cd673,_0x499722;})['then'](respondWithFilteredResult(_0x21b65b,_0x4549fd))['catch'](handleError(_0x21b65b,null));},exports[a930_0x4dd0d7(0x1db)]=function(_0x53e8c0,_0x2dff39){const _0x49798b=a930_0x4dd0d7;let _0x42d573={'raw':!![],'where':{'id':_0x53e8c0[_0x49798b(0x1e4)]['id']}};const _0x1804f6={};return _0x1804f6[_0x49798b(0x1df)]=_['keys'](db[_0x49798b(0x1eb)][_0x49798b(0x1d8)]),_0x1804f6[_0x49798b(0x1e1)]=_[_0x49798b(0x1c5)](_0x53e8c0[_0x49798b(0x1e1)]),_0x1804f6[_0x49798b(0x1c4)]=_[_0x49798b(0x1d4)](_0x1804f6['model'],_0x1804f6[_0x49798b(0x1e1)]),_0x42d573[_0x49798b(0x1c9)]=_[_0x49798b(0x1d4)](_0x1804f6['model'],qs[_0x49798b(0x1ed)](_0x53e8c0[_0x49798b(0x1e1)][_0x49798b(0x1ed)])),_0x42d573[_0x49798b(0x1c9)]=_0x42d573[_0x49798b(0x1c9)]['length']?_0x42d573[_0x49798b(0x1c9)]:_0x1804f6[_0x49798b(0x1df)],_0x53e8c0[_0x49798b(0x1e1)][_0x49798b(0x1b8)]&&(_0x42d573[_0x49798b(0x1e2)]=[{'all':!![]}]),_0x42d573=_[_0x49798b(0x1c8)]({},_0x42d573,_0x53e8c0[_0x49798b(0x1c3)]),db[_0x49798b(0x1eb)]['findOne'](_0x42d573)[_0x49798b(0x1ce)](handleEntityNotFound(_0x2dff39,null))['then'](respondWithResult(_0x2dff39,null))[_0x49798b(0x1dc)](handleError(_0x2dff39,null));},exports[a930_0x4dd0d7(0x1c0)]=function(_0x459a1c,_0x19b6d6){const _0x10fd92=a930_0x4dd0d7;return db['VoiceTransferReport'][_0x10fd92(0x1c0)](_0x459a1c[_0x10fd92(0x1e8)],{})['then'](respondWithResult(_0x19b6d6,0xc9))['catch'](handleError(_0x19b6d6,null));},exports['update']=function(_0x64cc02,_0x4e2973){const _0x568d4f=a930_0x4dd0d7;return _0x64cc02['body']['id']&&delete _0x64cc02[_0x568d4f(0x1e8)]['id'],db[_0x568d4f(0x1eb)]['findOne']({'where':{'id':_0x64cc02[_0x568d4f(0x1e4)]['id']}})[_0x568d4f(0x1ce)](handleEntityNotFound(_0x4e2973,null))['then'](saveUpdates(_0x64cc02[_0x568d4f(0x1e8)],null))[_0x568d4f(0x1ce)](respondWithResult(_0x4e2973,null))[_0x568d4f(0x1dc)](handleError(_0x4e2973,null));},exports['destroy']=function(_0x3427b7,_0x10a0d8){const _0x502144=a930_0x4dd0d7;return db[_0x502144(0x1eb)][_0x502144(0x1c1)]({'where':{'id':_0x3427b7[_0x502144(0x1e4)]['id']}})[_0x502144(0x1ce)](handleEntityNotFound(_0x10a0d8,null))[_0x502144(0x1ce)](removeEntity(_0x10a0d8,null))['catch'](handleError(_0x10a0d8,null));}; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.model.js b/server/api/voiceTransferReport/voiceTransferReport.model.js index 195f057..7abca22 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.model.js +++ b/server/api/voiceTransferReport/voiceTransferReport.model.js @@ -1 +1 @@ -const a931_0x66f5=['sequelize','./voiceTransferReport.attributes','init','exports','./voiceTransferReport.options'];(function(_0xb67e2,_0x1a5b84){const _0x66f53=function(_0x53ef09){while(--_0x53ef09){_0xb67e2['push'](_0xb67e2['shift']());}};_0x66f53(++_0x1a5b84);}(a931_0x66f5,0xd7));const a931_0x53ef=function(_0xb67e2,_0x1a5b84){_0xb67e2=_0xb67e2-0x102;let _0x66f53=a931_0x66f5[_0xb67e2];return _0x66f53;};const a931_0x35a0c4=a931_0x53ef;'use strict';const {Model}=require(a931_0x35a0c4(0x102)),{attributes}=require(a931_0x35a0c4(0x103)),{options}=require(a931_0x35a0c4(0x106));class VoiceTransferReport extends Model{}function init(_0x206e1b,_0x565bd1){const _0x567a98=options(_0x206e1b),_0x320454=typeof _0x565bd1==='function'?_0x565bd1(_0x567a98):_0x567a98;return VoiceTransferReport['init'](attributes,_0x320454),VoiceTransferReport;}module[a931_0x35a0c4(0x105)]['VoiceTransferReport']=VoiceTransferReport,module[a931_0x35a0c4(0x105)][a931_0x35a0c4(0x104)]=init; \ No newline at end of file +const a931_0x1c28=['function','VoiceTransferReport','exports','./voiceTransferReport.attributes'];(function(_0x46891e,_0x426b2d){const _0x1c2804=function(_0x350ea2){while(--_0x350ea2){_0x46891e['push'](_0x46891e['shift']());}};_0x1c2804(++_0x426b2d);}(a931_0x1c28,0x7f));const a931_0x350e=function(_0x46891e,_0x426b2d){_0x46891e=_0x46891e-0x13d;let _0x1c2804=a931_0x1c28[_0x46891e];return _0x1c2804;};const a931_0x5684f7=a931_0x350e;'use strict';const {Model}=require('sequelize'),{attributes}=require(a931_0x5684f7(0x13d)),{options}=require('./voiceTransferReport.options');class VoiceTransferReport extends Model{}function init(_0xbdf847,_0x58bd89){const _0x2f92c5=a931_0x5684f7,_0x35c8bb=options(_0xbdf847),_0x26bfb1=typeof _0x58bd89===_0x2f92c5(0x13e)?_0x58bd89(_0x35c8bb):_0x35c8bb;return VoiceTransferReport['init'](attributes,_0x26bfb1),VoiceTransferReport;}module[a931_0x5684f7(0x140)][a931_0x5684f7(0x13f)]=VoiceTransferReport,module[a931_0x5684f7(0x140)]['init']=init; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.options.js b/server/api/voiceTransferReport/voiceTransferReport.options.js index 08ac4fa..7e34ddd 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.options.js +++ b/server/api/voiceTransferReport/voiceTransferReport.options.js @@ -1 +1 @@ -var a932_0x4a5a=['report_call_transfer','options','exports'];(function(_0x1ba21a,_0x1c7fca){var _0x4a5a92=function(_0x3d165b){while(--_0x3d165b){_0x1ba21a['push'](_0x1ba21a['shift']());}};_0x4a5a92(++_0x1c7fca);}(a932_0x4a5a,0x66));var a932_0x3d16=function(_0x1ba21a,_0x1c7fca){_0x1ba21a=_0x1ba21a-0x1a5;var _0x4a5a92=a932_0x4a5a[_0x1ba21a];return _0x4a5a92;};var a932_0x34e443=a932_0x3d16;function options(_0x445156){var _0x2a99c8=a932_0x3d16;return{'sequelize':_0x445156,'tableName':_0x2a99c8(0x1a5),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a932_0x34e443(0x1a7)][a932_0x34e443(0x1a6)]=options; \ No newline at end of file +var a932_0x2efb=['report_call_transfer','exports'];(function(_0x49a935,_0x29caf4){var _0x2efb96=function(_0x50c092){while(--_0x50c092){_0x49a935['push'](_0x49a935['shift']());}};_0x2efb96(++_0x29caf4);}(a932_0x2efb,0xc6));var a932_0x50c0=function(_0x49a935,_0x29caf4){_0x49a935=_0x49a935-0x1b8;var _0x2efb96=a932_0x2efb[_0x49a935];return _0x2efb96;};var a932_0x12f268=a932_0x50c0;function options(_0x307226){var _0x4e815b=a932_0x50c0;return{'sequelize':_0x307226,'tableName':_0x4e815b(0x1b8),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a932_0x12f268(0x1b9)]['options']=options; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.rpc.js b/server/api/voiceTransferReport/voiceTransferReport.rpc.js index 792d278..213bf36 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.rpc.js +++ b/server/api/voiceTransferReport/voiceTransferReport.rpc.js @@ -1 +1 @@ -const a933_0x2b4a=['raw','error','CreateVoiceTransferReport','../../mysqldb','stringify','debug','info','then','VoiceTransferReport','create','../../config/logger','options','rpc','catch','message','body'];(function(_0x50fa2c,_0x4dc738){const _0x2b4a90=function(_0x3a0788){while(--_0x3a0788){_0x50fa2c['push'](_0x50fa2c['shift']());}};_0x2b4a90(++_0x4dc738);}(a933_0x2b4a,0xfa));const a933_0x3a07=function(_0x50fa2c,_0x4dc738){_0x50fa2c=_0x50fa2c-0x1a3;let _0x2b4a90=a933_0x2b4a[_0x50fa2c];return _0x2b4a90;};const a933_0x2977ae=a933_0x3a07;'use strict';const db=require(a933_0x2977ae(0x1ac))['db'],logger=require(a933_0x2977ae(0x1a3))(a933_0x2977ae(0x1a5));exports[a933_0x2977ae(0x1ab)]=function(_0x2cc8c4){const _0x261ffa=this;return new Promise(function(_0x217731,_0x3f7edc){const _0x2a0dac=a933_0x3a07;return db[_0x2a0dac(0x1b1)][_0x2a0dac(0x1b2)](_0x2cc8c4[_0x2a0dac(0x1a8)],{'raw':_0x2cc8c4[_0x2a0dac(0x1a4)]?_0x2cc8c4[_0x2a0dac(0x1a4)][_0x2a0dac(0x1a9)]===undefined?!![]:![]:!![]})[_0x2a0dac(0x1b0)](function(_0x386e7b){const _0x454450=_0x2a0dac;logger[_0x454450(0x1af)]('CreateVoiceTransferReport',_0x2cc8c4),logger[_0x454450(0x1ae)](_0x454450(0x1ab),_0x2cc8c4,JSON[_0x454450(0x1ad)](_0x386e7b)),_0x217731(_0x386e7b);})[_0x2a0dac(0x1a6)](function(_0x342d1f){const _0x15b55a=_0x2a0dac;logger[_0x15b55a(0x1aa)](_0x15b55a(0x1ab),_0x342d1f['message'],_0x2cc8c4),_0x3f7edc(_0x261ffa['error'](0x1f4,_0x342d1f[_0x15b55a(0x1a7)]));});});}; \ No newline at end of file +const a933_0x2adf=['../../mysqldb','CreateVoiceTransferReport','stringify','info','raw','message','rpc','error','catch','create','then','VoiceTransferReport','../../config/logger','debug','body'];(function(_0x8958c2,_0xa4f575){const _0x2adf89=function(_0x4aa150){while(--_0x4aa150){_0x8958c2['push'](_0x8958c2['shift']());}};_0x2adf89(++_0xa4f575);}(a933_0x2adf,0x1ec));const a933_0x4aa1=function(_0x8958c2,_0xa4f575){_0x8958c2=_0x8958c2-0x1e7;let _0x2adf89=a933_0x2adf[_0x8958c2];return _0x2adf89;};const a933_0x476685=a933_0x4aa1;'use strict';const db=require(a933_0x476685(0x1ea))['db'],logger=require(a933_0x476685(0x1e7))(a933_0x476685(0x1f0));exports[a933_0x476685(0x1eb)]=function(_0x3de320){const _0x31065f=this;return new Promise(function(_0x55b523,_0x4c83de){const _0x2096ef=a933_0x4aa1;return db[_0x2096ef(0x1f5)][_0x2096ef(0x1f3)](_0x3de320[_0x2096ef(0x1e9)],{'raw':_0x3de320['options']?_0x3de320['options'][_0x2096ef(0x1ee)]===undefined?!![]:![]:!![]})[_0x2096ef(0x1f4)](function(_0x4ef8ff){const _0x363cb6=_0x2096ef;logger[_0x363cb6(0x1ed)](_0x363cb6(0x1eb),_0x3de320),logger[_0x363cb6(0x1e8)]('CreateVoiceTransferReport',_0x3de320,JSON[_0x363cb6(0x1ec)](_0x4ef8ff)),_0x55b523(_0x4ef8ff);})[_0x2096ef(0x1f2)](function(_0x461354){const _0xcdb392=_0x2096ef;logger['error'](_0xcdb392(0x1eb),_0x461354[_0xcdb392(0x1ef)],_0x3de320),_0x4c83de(_0x31065f[_0xcdb392(0x1f1)](0x1f4,_0x461354[_0xcdb392(0x1ef)]));});});}; \ No newline at end of file diff --git a/server/api/webbar/index.js b/server/api/webbar/index.js index 49a6781..eb0e663 100644 --- a/server/api/webbar/index.js +++ b/server/api/webbar/index.js @@ -1 +1 @@ -const a934_0x3dd7=['answer','/originate','isAuthenticated','/calls','/hangup','exports','unhold','/hold','express','/answer','/transfer','hold','post','./webbar.controller','../../components/auth/service','calls','transfer','/unhold','canUpdate'];(function(_0x42c0e9,_0x449cc6){const _0x3dd7f3=function(_0x23d7d2){while(--_0x23d7d2){_0x42c0e9['push'](_0x42c0e9['shift']());}};_0x3dd7f3(++_0x449cc6);}(a934_0x3dd7,0x1e4));const a934_0x23d7=function(_0x42c0e9,_0x449cc6){_0x42c0e9=_0x42c0e9-0x1f0;let _0x3dd7f3=a934_0x3dd7[_0x42c0e9];return _0x3dd7f3;};const a934_0x5dc4ef=a934_0x23d7;'use strict';const express=require(a934_0x5dc4ef(0x202)),router=express['Router'](),auth=require(a934_0x5dc4ef(0x1f5)),controller=require(a934_0x5dc4ef(0x1f4));router['post'](a934_0x5dc4ef(0x1fb),auth[a934_0x5dc4ef(0x1fc)](),auth[a934_0x5dc4ef(0x1f9)](),controller['originate']),router['post'](a934_0x5dc4ef(0x1fe),auth[a934_0x5dc4ef(0x1fc)](),auth[a934_0x5dc4ef(0x1f9)](),controller['hangup']),router[a934_0x5dc4ef(0x1f3)](a934_0x5dc4ef(0x1f0),auth['isAuthenticated'](),auth[a934_0x5dc4ef(0x1f9)](),controller[a934_0x5dc4ef(0x1fa)]),router[a934_0x5dc4ef(0x1f3)](a934_0x5dc4ef(0x201),auth['isAuthenticated'](),auth[a934_0x5dc4ef(0x1f9)](),controller[a934_0x5dc4ef(0x1f2)]),router[a934_0x5dc4ef(0x1f3)](a934_0x5dc4ef(0x1f8),auth[a934_0x5dc4ef(0x1fc)](),auth[a934_0x5dc4ef(0x1f9)](),controller[a934_0x5dc4ef(0x200)]),router['post'](a934_0x5dc4ef(0x1fd),auth[a934_0x5dc4ef(0x1fc)](),auth[a934_0x5dc4ef(0x1f9)](),controller[a934_0x5dc4ef(0x1f6)]),router['post'](a934_0x5dc4ef(0x1f1),auth[a934_0x5dc4ef(0x1fc)](),auth['canUpdate'](),controller[a934_0x5dc4ef(0x1f7)]),module[a934_0x5dc4ef(0x1ff)]=router; \ No newline at end of file +const a934_0x3793=['answer','unhold','isAuthenticated','/answer','Router','express','/hold','./webbar.controller','originate','hangup','canUpdate','exports','post','/originate','transfer'];(function(_0x481300,_0x22c214){const _0x3793dc=function(_0x4f4328){while(--_0x4f4328){_0x481300['push'](_0x481300['shift']());}};_0x3793dc(++_0x22c214);}(a934_0x3793,0x176));const a934_0x4f43=function(_0x481300,_0x22c214){_0x481300=_0x481300-0x133;let _0x3793dc=a934_0x3793[_0x481300];return _0x3793dc;};const a934_0x538d69=a934_0x4f43;'use strict';const express=require(a934_0x538d69(0x139)),router=express[a934_0x538d69(0x138)](),auth=require('../../components/auth/service'),controller=require(a934_0x538d69(0x13b));router[a934_0x538d69(0x140)](a934_0x538d69(0x141),auth[a934_0x538d69(0x136)](),auth['canUpdate'](),controller[a934_0x538d69(0x13c)]),router[a934_0x538d69(0x140)]('/hangup',auth[a934_0x538d69(0x136)](),auth[a934_0x538d69(0x13e)](),controller[a934_0x538d69(0x13d)]),router[a934_0x538d69(0x140)](a934_0x538d69(0x137),auth['isAuthenticated'](),auth[a934_0x538d69(0x13e)](),controller[a934_0x538d69(0x134)]),router['post'](a934_0x538d69(0x13a),auth[a934_0x538d69(0x136)](),auth[a934_0x538d69(0x13e)](),controller['hold']),router[a934_0x538d69(0x140)]('/unhold',auth[a934_0x538d69(0x136)](),auth[a934_0x538d69(0x13e)](),controller[a934_0x538d69(0x135)]),router[a934_0x538d69(0x140)]('/calls',auth[a934_0x538d69(0x136)](),auth[a934_0x538d69(0x13e)](),controller['calls']),router[a934_0x538d69(0x140)]('/transfer',auth['isAuthenticated'](),auth['canUpdate'](),controller[a934_0x538d69(0x133)]),module[a934_0x538d69(0x13f)]=router; \ No newline at end of file diff --git a/server/api/webbar/webbar.controller.js b/server/api/webbar/webbar.controller.js index 911855d..0cb1b37 100644 --- a/server/api/webbar/webbar.controller.js +++ b/server/api/webbar/webbar.controller.js @@ -1 +1 @@ -const a935_0x4657=['originate\x20executed!','hold\x20fired:','request','hold\x20executed!','webbar:answer','webbar:hangup','callNumber\x20is\x20required','info','catch','message','transfer','transfer\x20fired:','format','webbar:originate','userId\x20is\x20required','webbar:unhold','unhold','lodash','conference\x20executed!','hangup\x20executed!','validate','util','unhold\x20fired:','User','status','code','send','then','body','error','rows','webbar:hold','callNumber','callbackUrl','length','entityFound:','filter','unhold\x20executed!','userId','../../mysqldb','hangup','callerId','conference\x20fired:','originate','conference','log','stack','http','client','../../config/logger','../../rediscache','number','hangup\x20fired:','UserId','all','transferNumber\x20is\x20required','sessionId','answer\x20executed!','webbar:transfer','hold','name','agent','NotFound','json','user:%s','string','transfer\x20executed!'];(function(_0x1aa956,_0xcdaaa2){const _0x46575a=function(_0x3e4c9d){while(--_0x3e4c9d){_0x1aa956['push'](_0x1aa956['shift']());}};_0x46575a(++_0xcdaaa2);}(a935_0x4657,0xdc));const a935_0x3e4c=function(_0x1aa956,_0xcdaaa2){_0x1aa956=_0x1aa956-0x11f;let _0x46575a=a935_0x4657[_0x1aa956];return _0x46575a;};const a935_0x2379f8=a935_0x3e4c;'use strict';const _=require(a935_0x2379f8(0x160)),{db}=require(a935_0x2379f8(0x133)),util=require(a935_0x2379f8(0x121)),jayson=require('jayson/promise'),amiClient=jayson[a935_0x2379f8(0x13c)][a935_0x2379f8(0x13b)]({'port':0x232a}),logger=require(a935_0x2379f8(0x13d))('webbarapi'),{getSocket}=require(a935_0x2379f8(0x13e)),io=getSocket(),Schema=require('validate'),originateValidation=new Schema({'userId':{'type':'number','required':[!![],'userId\x20is\x20required']},'callNumber':{'type':a935_0x2379f8(0x14d),'required':[!![],a935_0x2379f8(0x155)]},'callerId':{'type':a935_0x2379f8(0x14d)},'callbackUrl':{'type':a935_0x2379f8(0x14d)}}),hangupValidation=new Schema({'userId':{'type':a935_0x2379f8(0x13f),'required':[!![],a935_0x2379f8(0x15d)]},'sessionId':{'type':a935_0x2379f8(0x14d),'required':![]}}),answerValidation=new Schema({'userId':{'type':'number','required':[!![],'userId\x20is\x20required']},'sessionId':{'type':a935_0x2379f8(0x14d),'required':![]}}),transferValidation=new Schema({'userId':{'type':a935_0x2379f8(0x13f),'required':[!![],a935_0x2379f8(0x15d)]},'sessionId':{'type':a935_0x2379f8(0x14d),'required':[!![],'sessionId\x20is\x20required']},'transferNumber':{'type':a935_0x2379f8(0x14d),'required':[!![],a935_0x2379f8(0x143)]}}),holdValidation=new Schema({'userId':{'type':a935_0x2379f8(0x13f),'required':[!![],a935_0x2379f8(0x15d)]},'sessionId':{'type':a935_0x2379f8(0x14d),'required':![]}}),unholdValidation=new Schema({'userId':{'type':a935_0x2379f8(0x13f),'required':[!![],a935_0x2379f8(0x15d)]},'sessionId':{'type':a935_0x2379f8(0x14d),'required':![]}}),callsValidation=new Schema({'userId':{'type':a935_0x2379f8(0x13f),'required':[!![],'userId\x20is\x20required']}}),conferenceValidation=new Schema({'userId':{'type':'number','required':[!![],a935_0x2379f8(0x15d)]}});function emit(_0x39dddf,_0x10f3a5,_0x94eb80){const _0x469950=a935_0x2379f8;logger[_0x469950(0x156)](_0x39dddf,_0x10f3a5,JSON['stringify'](_0x94eb80)),io['to'](_0x39dddf)['emit'](_0x10f3a5,_0x94eb80);}function handleError(_0x21a8aa){return function(_0xb1008c){const _0x905e1=a935_0x3e4c;console[_0x905e1(0x139)]('handleError:',_0xb1008c,_0xb1008c instanceof RangeError),logger['error'](_0xb1008c[_0x905e1(0x13a)]),_0xb1008c instanceof RangeError?(_0xb1008c['name']&&delete _0xb1008c[_0x905e1(0x148)],_0x21a8aa['status'](0x194)[_0x905e1(0x126)](_0xb1008c)):(_0xb1008c[_0x905e1(0x148)]&&delete _0xb1008c[_0x905e1(0x148)],_0x21a8aa['status'](0x1f4)[_0x905e1(0x126)](_0xb1008c));};}function checkError(){return function(_0x2a2ef2){const _0x3fcc59=a935_0x3e4c;if(!_0x2a2ef2)throw new RangeError(_0x3fcc59(0x14a));return _0x2a2ef2;};}function respondWithRpcPromise(_0x282221,_0x3c86ae){return new Promise(function(_0x487e0e,_0x38ee3d){const _0x31d17b=a935_0x3e4c,_0x1f1221=amiClient;return _0x1f1221[_0x31d17b(0x151)](_0x282221,_0x3c86ae)[_0x31d17b(0x127)](function(_0x2858c9){const _0x59262a=_0x31d17b;if(_0x2858c9['error']){if(_0x2858c9[_0x59262a(0x129)][_0x59262a(0x125)]===0x1f4)return _0x38ee3d(_0x2858c9[_0x59262a(0x129)][_0x59262a(0x158)]);return _0x487e0e(_0x2858c9[_0x59262a(0x129)]['message']);}else _0x487e0e(_0x2858c9['result']);})[_0x31d17b(0x157)](function(_0x39267f){_0x38ee3d(_0x39267f);});});}function getAgent(_0x3e9e63){const _0x5a72b5=a935_0x2379f8;return db[_0x5a72b5(0x123)]['findOne']({'where':{'id':_0x3e9e63,'role':_0x5a72b5(0x149)}})['then'](checkError());}exports[a935_0x2379f8(0x137)]=function(_0x4b2701,_0x4fae78){const _0x5bb1d8=a935_0x2379f8;logger[_0x5bb1d8(0x156)]('originate\x20fired:',_0x4b2701['body']);const _0x9d8351=originateValidation[_0x5bb1d8(0x120)](_0x4b2701[_0x5bb1d8(0x128)]);if(_0x9d8351['length']>0x0)return _0x4fae78['status'](0x190)['json'](_0x9d8351);const _0x315c4c=_0x4b2701[_0x5bb1d8(0x128)][_0x5bb1d8(0x132)],_0x350a71=_0x4b2701['body'][_0x5bb1d8(0x12c)],_0x91180c=_0x4b2701[_0x5bb1d8(0x128)][_0x5bb1d8(0x135)],_0xbdb4ec=_0x4b2701['body'][_0x5bb1d8(0x12d)];return getAgent(_0x315c4c)['then'](function(_0x25cdeb){const _0x50c66d=_0x5bb1d8;return logger[_0x50c66d(0x156)]('entityFound:',_0x25cdeb[_0x50c66d(0x148)]),emit(util[_0x50c66d(0x15b)](_0x50c66d(0x14c),_0x25cdeb[_0x50c66d(0x148)]),_0x50c66d(0x15c),{'callNumber':_0x350a71,'callerId':_0x91180c,'callbackUrl':_0xbdb4ec}),_0x4fae78['status'](0xc8)['json']({'error':![],'message':_0x50c66d(0x14f)});})['catch'](handleError(_0x4fae78));},exports[a935_0x2379f8(0x134)]=function(_0x5dc5ef,_0x4d76f4){const _0x46658e=a935_0x2379f8;logger[_0x46658e(0x156)](_0x46658e(0x140),_0x5dc5ef[_0x46658e(0x128)]);const _0x416157=hangupValidation[_0x46658e(0x120)](_0x5dc5ef[_0x46658e(0x128)]);if(_0x416157[_0x46658e(0x12e)]>0x0)return _0x4d76f4[_0x46658e(0x124)](0x190)[_0x46658e(0x14b)](_0x416157);const _0x59e9cd=_0x5dc5ef[_0x46658e(0x128)]['userId'],_0x4adeba=_0x5dc5ef[_0x46658e(0x128)][_0x46658e(0x144)];return getAgent(_0x59e9cd)[_0x46658e(0x127)](function(_0x14902b){const _0xb000f8=_0x46658e;return logger[_0xb000f8(0x156)]('entityFound:',_0x14902b[_0xb000f8(0x148)]),emit(util[_0xb000f8(0x15b)]('user:%s',_0x14902b['name']),_0xb000f8(0x154),{'sessionId':_0x4adeba}),_0x4d76f4[_0xb000f8(0x124)](0xc8)['json']({'error':![],'message':_0xb000f8(0x11f)});})[_0x46658e(0x157)](handleError(_0x4d76f4));},exports['answer']=function(_0x2eabd9,_0x2da91b){const _0x4ec21a=a935_0x2379f8;logger[_0x4ec21a(0x156)]('answer\x20fired:',_0x2eabd9['body']);const _0x51eacc=answerValidation[_0x4ec21a(0x120)](_0x2eabd9[_0x4ec21a(0x128)]);if(_0x51eacc[_0x4ec21a(0x12e)]>0x0)return _0x2da91b[_0x4ec21a(0x124)](0x190)['json'](_0x51eacc);const _0x486d01=_0x2eabd9[_0x4ec21a(0x128)]['userId'],_0x8c4ef4=_0x2eabd9['body'][_0x4ec21a(0x144)];return getAgent(_0x486d01)['then'](function(_0x1e0d5c){const _0x2975fc=_0x4ec21a;return logger[_0x2975fc(0x156)]('entityFound:',_0x1e0d5c['name']),emit(util[_0x2975fc(0x15b)]('user:%s',_0x1e0d5c[_0x2975fc(0x148)]),_0x2975fc(0x153),{'sessionId':_0x8c4ef4}),_0x2da91b['status'](0xc8)[_0x2975fc(0x14b)]({'error':![],'message':_0x2975fc(0x145)});})['catch'](handleError(_0x2da91b));},exports[a935_0x2379f8(0x147)]=function(_0x5051f7,_0x2748fa){const _0x41ab44=a935_0x2379f8;logger['info'](_0x41ab44(0x150),_0x5051f7[_0x41ab44(0x128)]);const _0x61fcb6=holdValidation[_0x41ab44(0x120)](_0x5051f7[_0x41ab44(0x128)]);if(_0x61fcb6[_0x41ab44(0x12e)]>0x0)return _0x2748fa[_0x41ab44(0x124)](0x190)[_0x41ab44(0x14b)](_0x61fcb6);const _0x426884=_0x5051f7['body'][_0x41ab44(0x132)],_0x1e1ba7=_0x5051f7['body'][_0x41ab44(0x144)];return getAgent(_0x426884)['then'](function(_0x196434){const _0x3808e8=_0x41ab44;return logger[_0x3808e8(0x156)](_0x3808e8(0x12f),_0x196434[_0x3808e8(0x148)]),emit(util[_0x3808e8(0x15b)](_0x3808e8(0x14c),_0x196434['name']),_0x3808e8(0x12b),{'sessionId':_0x1e1ba7}),_0x2748fa[_0x3808e8(0x124)](0xc8)[_0x3808e8(0x14b)]({'error':![],'message':_0x3808e8(0x152)});})['catch'](handleError(_0x2748fa));},exports[a935_0x2379f8(0x15f)]=function(_0x468e55,_0x38fcd0){const _0x11ab61=a935_0x2379f8;logger[_0x11ab61(0x156)](_0x11ab61(0x122),_0x468e55[_0x11ab61(0x128)]);const _0x4139dc=unholdValidation[_0x11ab61(0x120)](_0x468e55[_0x11ab61(0x128)]);if(_0x4139dc['length']>0x0)return _0x38fcd0['status'](0x190)[_0x11ab61(0x14b)](_0x4139dc);const _0x398f81=_0x468e55[_0x11ab61(0x128)][_0x11ab61(0x132)],_0x257a57=_0x468e55[_0x11ab61(0x128)][_0x11ab61(0x144)];return getAgent(_0x398f81)['then'](function(_0x58c6e1){const _0x301ab2=_0x11ab61;return logger[_0x301ab2(0x156)]('entityFound:',_0x58c6e1[_0x301ab2(0x148)]),emit(util['format'](_0x301ab2(0x14c),_0x58c6e1[_0x301ab2(0x148)]),_0x301ab2(0x15e),{'sessionId':_0x257a57}),_0x38fcd0[_0x301ab2(0x124)](0xc8)['json']({'error':![],'message':_0x301ab2(0x131)});})[_0x11ab61(0x157)](handleError(_0x38fcd0));},exports['calls']=function(_0x1e8995,_0x1b4653){const _0x4d5d7f=a935_0x2379f8;logger[_0x4d5d7f(0x156)]('calls\x20fired:',_0x1b4653[_0x4d5d7f(0x128)]);const _0x197a0d=callsValidation[_0x4d5d7f(0x120)](_0x1e8995[_0x4d5d7f(0x128)]);if(_0x197a0d['length']>0x0)return _0x1b4653[_0x4d5d7f(0x124)](0x190)[_0x4d5d7f(0x14b)](_0x197a0d);const _0x1868fe=_0x1e8995[_0x4d5d7f(0x128)][_0x4d5d7f(0x132)],_0x5731fe=respondWithRpcPromise('VoiceChannels'),_0x110f29=getAgent(_0x1868fe);return Promise[_0x4d5d7f(0x142)]([_0x5731fe,_0x110f29])[_0x4d5d7f(0x127)](function(_0x2451f9){const _0x29e2cb=_0x4d5d7f,_0x314dbc=_0x2451f9[0x0],_0x279cff=_0x2451f9[0x1],_0x22d2ee=_[_0x29e2cb(0x130)](_0x314dbc[_0x29e2cb(0x12a)],function(_0x44db93){const _0x58deb2=_0x29e2cb;return _0x44db93[_0x58deb2(0x141)]==_0x279cff['id'];});return _0x1b4653['status'](0xc8)[_0x29e2cb(0x14b)]({'count':_0x22d2ee[_0x29e2cb(0x12e)],'rows':_0x22d2ee});})[_0x4d5d7f(0x157)](handleError(_0x1b4653));},exports[a935_0x2379f8(0x138)]=function(_0x23038b,_0x3f3f89){const _0x520dcb=a935_0x2379f8;logger['info'](_0x520dcb(0x136),_0x23038b[_0x520dcb(0x128)]);const _0x19e0bb=conferenceValidation[_0x520dcb(0x120)](_0x23038b[_0x520dcb(0x128)]);if(_0x19e0bb['length']>0x0)return _0x3f3f89[_0x520dcb(0x124)](0x190)[_0x520dcb(0x14b)](_0x19e0bb);const _0x39a723=_0x23038b[_0x520dcb(0x128)][_0x520dcb(0x132)];return getAgent(_0x39a723)[_0x520dcb(0x127)](function(_0x38e287){const _0x293730=_0x520dcb;return logger[_0x293730(0x156)](_0x293730(0x12f),_0x38e287[_0x293730(0x148)]),emit(util[_0x293730(0x15b)](_0x293730(0x14c),_0x38e287[_0x293730(0x148)]),'webbar:conference'),_0x3f3f89[_0x293730(0x124)](0xc8)[_0x293730(0x14b)]({'error':![],'message':_0x293730(0x161)});})[_0x520dcb(0x157)](handleError(_0x3f3f89));},exports[a935_0x2379f8(0x159)]=function(_0x5473d5,_0x33f4ed){const _0x2f2912=a935_0x2379f8;logger['info'](_0x2f2912(0x15a),_0x5473d5['body']);const _0x136f5e=transferValidation['validate'](_0x5473d5[_0x2f2912(0x128)]);if(_0x136f5e[_0x2f2912(0x12e)]>0x0)return _0x33f4ed[_0x2f2912(0x124)](0x190)[_0x2f2912(0x14b)](_0x136f5e);const _0x2a4b17=_0x5473d5[_0x2f2912(0x128)][_0x2f2912(0x132)],_0x103b28=_0x5473d5['body'][_0x2f2912(0x144)],_0xccd58e=_0x5473d5[_0x2f2912(0x128)]['transferNumber'];return getAgent(_0x2a4b17)[_0x2f2912(0x127)](function(_0x49a22a){const _0xaa7b5c=_0x2f2912;return logger[_0xaa7b5c(0x156)](_0xaa7b5c(0x12f),_0x49a22a[_0xaa7b5c(0x148)]),emit(util[_0xaa7b5c(0x15b)](_0xaa7b5c(0x14c),_0x49a22a[_0xaa7b5c(0x148)]),_0xaa7b5c(0x146),{'sessionId':_0x103b28,'transferNumber':_0xccd58e}),_0x33f4ed['status'](0xc8)[_0xaa7b5c(0x14b)]({'error':![],'message':_0xaa7b5c(0x14e)});})[_0x2f2912(0x157)](handleError(_0x33f4ed));}; \ No newline at end of file +const a935_0x48e6=['userId\x20is\x20required','jayson/promise','callNumber\x20is\x20required','User','answer\x20executed!','unhold\x20fired:','hangup\x20executed!','userId','webbarapi','hold','then','error','info','transfer\x20fired:','webbar:hold','webbar:transfer','../../config/logger','body','user:%s','code','json','name','webbar:answer','sessionId','originate\x20fired:','calls\x20fired:','entityFound:','filter','stringify','result','hangup\x20fired:','rows','string','handleError:','message','emit','validate','findOne','hold\x20fired:','catch','originate','format','stack','transfer\x20executed!','originate\x20executed!','callbackUrl','http','transferNumber','transferNumber\x20is\x20required','webbar:hangup','unhold','../../rediscache','send','number','length','log','sessionId\x20is\x20required','client','unhold\x20executed!','webbar:unhold','NotFound','agent','../../mysqldb','all','conference\x20executed!','transfer','status','answer','conference','util'];(function(_0x166dc4,_0x2269c9){const _0x48e62f=function(_0xed2012){while(--_0xed2012){_0x166dc4['push'](_0x166dc4['shift']());}};_0x48e62f(++_0x2269c9);}(a935_0x48e6,0x101));const a935_0xed20=function(_0x166dc4,_0x2269c9){_0x166dc4=_0x166dc4-0x6b;let _0x48e62f=a935_0x48e6[_0x166dc4];return _0x48e62f;};const a935_0x2d71c5=a935_0xed20;'use strict';const _=require('lodash'),{db}=require(a935_0x2d71c5(0x7a)),util=require(a935_0x2d71c5(0x81)),jayson=require(a935_0x2d71c5(0x83)),amiClient=jayson[a935_0x2d71c5(0x75)][a935_0x2d71c5(0xb0)]({'port':0x232a}),logger=require(a935_0x2d71c5(0x92))(a935_0x2d71c5(0x8a)),{getSocket}=require(a935_0x2d71c5(0x6f)),io=getSocket(),Schema=require('validate'),originateValidation=new Schema({'userId':{'type':a935_0x2d71c5(0x71),'required':[!![],a935_0x2d71c5(0x82)]},'callNumber':{'type':a935_0x2d71c5(0xa2),'required':[!![],a935_0x2d71c5(0x84)]},'callerId':{'type':a935_0x2d71c5(0xa2)},'callbackUrl':{'type':a935_0x2d71c5(0xa2)}}),hangupValidation=new Schema({'userId':{'type':'number','required':[!![],a935_0x2d71c5(0x82)]},'sessionId':{'type':a935_0x2d71c5(0xa2),'required':![]}}),answerValidation=new Schema({'userId':{'type':'number','required':[!![],a935_0x2d71c5(0x82)]},'sessionId':{'type':'string','required':![]}}),transferValidation=new Schema({'userId':{'type':a935_0x2d71c5(0x71),'required':[!![],'userId\x20is\x20required']},'sessionId':{'type':a935_0x2d71c5(0xa2),'required':[!![],a935_0x2d71c5(0x74)]},'transferNumber':{'type':a935_0x2d71c5(0xa2),'required':[!![],a935_0x2d71c5(0x6c)]}}),holdValidation=new Schema({'userId':{'type':'number','required':[!![],'userId\x20is\x20required']},'sessionId':{'type':a935_0x2d71c5(0xa2),'required':![]}}),unholdValidation=new Schema({'userId':{'type':a935_0x2d71c5(0x71),'required':[!![],'userId\x20is\x20required']},'sessionId':{'type':a935_0x2d71c5(0xa2),'required':![]}}),callsValidation=new Schema({'userId':{'type':a935_0x2d71c5(0x71),'required':[!![],'userId\x20is\x20required']}}),conferenceValidation=new Schema({'userId':{'type':a935_0x2d71c5(0x71),'required':[!![],a935_0x2d71c5(0x82)]}});function emit(_0xfb5307,_0x1617ab,_0xac20a0){const _0xb3f30e=a935_0x2d71c5;logger[_0xb3f30e(0x8e)](_0xfb5307,_0x1617ab,JSON[_0xb3f30e(0x9e)](_0xac20a0)),io['to'](_0xfb5307)[_0xb3f30e(0xa5)](_0x1617ab,_0xac20a0);}function handleError(_0x307666){return function(_0x12feea){const _0x119297=a935_0xed20;console[_0x119297(0x73)](_0x119297(0xa3),_0x12feea,_0x12feea instanceof RangeError),logger[_0x119297(0x8d)](_0x12feea[_0x119297(0xac)]),_0x12feea instanceof RangeError?(_0x12feea[_0x119297(0x97)]&&delete _0x12feea['name'],_0x307666[_0x119297(0x7e)](0x194)[_0x119297(0x70)](_0x12feea)):(_0x12feea[_0x119297(0x97)]&&delete _0x12feea[_0x119297(0x97)],_0x307666[_0x119297(0x7e)](0x1f4)['send'](_0x12feea));};}function checkError(){return function(_0x388510){const _0xdca9a9=a935_0xed20;if(!_0x388510)throw new RangeError(_0xdca9a9(0x78));return _0x388510;};}function respondWithRpcPromise(_0x49cf47,_0x42d42e){return new Promise(function(_0xf56b0e,_0x2affdb){const _0x5d0294=amiClient;return _0x5d0294['request'](_0x49cf47,_0x42d42e)['then'](function(_0x48ac4c){const _0x1d58b7=a935_0xed20;if(_0x48ac4c[_0x1d58b7(0x8d)]){if(_0x48ac4c[_0x1d58b7(0x8d)][_0x1d58b7(0x95)]===0x1f4)return _0x2affdb(_0x48ac4c['error'][_0x1d58b7(0xa4)]);return _0xf56b0e(_0x48ac4c[_0x1d58b7(0x8d)]['message']);}else _0xf56b0e(_0x48ac4c[_0x1d58b7(0x9f)]);})['catch'](function(_0x28fc9d){_0x2affdb(_0x28fc9d);});});}function getAgent(_0x1db025){const _0x3a334a=a935_0x2d71c5;return db[_0x3a334a(0x85)][_0x3a334a(0xa7)]({'where':{'id':_0x1db025,'role':_0x3a334a(0x79)}})[_0x3a334a(0x8c)](checkError());}exports[a935_0x2d71c5(0xaa)]=function(_0x25221f,_0x193147){const _0x1207bf=a935_0x2d71c5;logger['info'](_0x1207bf(0x9a),_0x25221f[_0x1207bf(0x93)]);const _0x28b2e1=originateValidation[_0x1207bf(0xa6)](_0x25221f['body']);if(_0x28b2e1[_0x1207bf(0x72)]>0x0)return _0x193147['status'](0x190)['json'](_0x28b2e1);const _0x48599b=_0x25221f[_0x1207bf(0x93)][_0x1207bf(0x89)],_0x2b83d3=_0x25221f[_0x1207bf(0x93)]['callNumber'],_0xc9029=_0x25221f[_0x1207bf(0x93)]['callerId'],_0x57f167=_0x25221f[_0x1207bf(0x93)][_0x1207bf(0xaf)];return getAgent(_0x48599b)['then'](function(_0x495a7e){const _0x3dcaa3=_0x1207bf;return logger[_0x3dcaa3(0x8e)](_0x3dcaa3(0x9c),_0x495a7e[_0x3dcaa3(0x97)]),emit(util[_0x3dcaa3(0xab)]('user:%s',_0x495a7e[_0x3dcaa3(0x97)]),'webbar:originate',{'callNumber':_0x2b83d3,'callerId':_0xc9029,'callbackUrl':_0x57f167}),_0x193147[_0x3dcaa3(0x7e)](0xc8)[_0x3dcaa3(0x96)]({'error':![],'message':_0x3dcaa3(0xae)});})[_0x1207bf(0xa9)](handleError(_0x193147));},exports['hangup']=function(_0x30a9bc,_0x3fffe9){const _0xbafe68=a935_0x2d71c5;logger[_0xbafe68(0x8e)](_0xbafe68(0xa0),_0x30a9bc[_0xbafe68(0x93)]);const _0x9a5cba=hangupValidation[_0xbafe68(0xa6)](_0x30a9bc[_0xbafe68(0x93)]);if(_0x9a5cba['length']>0x0)return _0x3fffe9[_0xbafe68(0x7e)](0x190)[_0xbafe68(0x96)](_0x9a5cba);const _0x2f925a=_0x30a9bc[_0xbafe68(0x93)][_0xbafe68(0x89)],_0x550027=_0x30a9bc['body']['sessionId'];return getAgent(_0x2f925a)[_0xbafe68(0x8c)](function(_0x121afe){const _0xb57771=_0xbafe68;return logger[_0xb57771(0x8e)](_0xb57771(0x9c),_0x121afe[_0xb57771(0x97)]),emit(util[_0xb57771(0xab)]('user:%s',_0x121afe[_0xb57771(0x97)]),_0xb57771(0x6d),{'sessionId':_0x550027}),_0x3fffe9[_0xb57771(0x7e)](0xc8)[_0xb57771(0x96)]({'error':![],'message':_0xb57771(0x88)});})[_0xbafe68(0xa9)](handleError(_0x3fffe9));},exports[a935_0x2d71c5(0x7f)]=function(_0x223e59,_0x86fe78){const _0xc4c98e=a935_0x2d71c5;logger[_0xc4c98e(0x8e)]('answer\x20fired:',_0x223e59[_0xc4c98e(0x93)]);const _0x4d1195=answerValidation[_0xc4c98e(0xa6)](_0x223e59[_0xc4c98e(0x93)]);if(_0x4d1195['length']>0x0)return _0x86fe78[_0xc4c98e(0x7e)](0x190)[_0xc4c98e(0x96)](_0x4d1195);const _0x1d37d3=_0x223e59[_0xc4c98e(0x93)][_0xc4c98e(0x89)],_0xb986ee=_0x223e59[_0xc4c98e(0x93)][_0xc4c98e(0x99)];return getAgent(_0x1d37d3)['then'](function(_0x4a7100){const _0x271190=_0xc4c98e;return logger[_0x271190(0x8e)](_0x271190(0x9c),_0x4a7100['name']),emit(util[_0x271190(0xab)](_0x271190(0x94),_0x4a7100[_0x271190(0x97)]),_0x271190(0x98),{'sessionId':_0xb986ee}),_0x86fe78[_0x271190(0x7e)](0xc8)[_0x271190(0x96)]({'error':![],'message':_0x271190(0x86)});})[_0xc4c98e(0xa9)](handleError(_0x86fe78));},exports[a935_0x2d71c5(0x8b)]=function(_0x161395,_0x851207){const _0x31be0e=a935_0x2d71c5;logger[_0x31be0e(0x8e)](_0x31be0e(0xa8),_0x161395['body']);const _0x2d40ed=holdValidation[_0x31be0e(0xa6)](_0x161395[_0x31be0e(0x93)]);if(_0x2d40ed['length']>0x0)return _0x851207[_0x31be0e(0x7e)](0x190)['json'](_0x2d40ed);const _0xcc3546=_0x161395[_0x31be0e(0x93)][_0x31be0e(0x89)],_0x9b0dc8=_0x161395[_0x31be0e(0x93)][_0x31be0e(0x99)];return getAgent(_0xcc3546)[_0x31be0e(0x8c)](function(_0x4ce011){const _0xd7e619=_0x31be0e;return logger[_0xd7e619(0x8e)](_0xd7e619(0x9c),_0x4ce011[_0xd7e619(0x97)]),emit(util[_0xd7e619(0xab)]('user:%s',_0x4ce011[_0xd7e619(0x97)]),_0xd7e619(0x90),{'sessionId':_0x9b0dc8}),_0x851207[_0xd7e619(0x7e)](0xc8)['json']({'error':![],'message':'hold\x20executed!'});})[_0x31be0e(0xa9)](handleError(_0x851207));},exports[a935_0x2d71c5(0x6e)]=function(_0x314fef,_0x16f42c){const _0x57f535=a935_0x2d71c5;logger[_0x57f535(0x8e)](_0x57f535(0x87),_0x314fef['body']);const _0x454151=unholdValidation[_0x57f535(0xa6)](_0x314fef[_0x57f535(0x93)]);if(_0x454151[_0x57f535(0x72)]>0x0)return _0x16f42c['status'](0x190)['json'](_0x454151);const _0x2dba08=_0x314fef['body'][_0x57f535(0x89)],_0x9e4e0a=_0x314fef[_0x57f535(0x93)][_0x57f535(0x99)];return getAgent(_0x2dba08)[_0x57f535(0x8c)](function(_0x2f0778){const _0x110563=_0x57f535;return logger[_0x110563(0x8e)](_0x110563(0x9c),_0x2f0778[_0x110563(0x97)]),emit(util[_0x110563(0xab)](_0x110563(0x94),_0x2f0778[_0x110563(0x97)]),_0x110563(0x77),{'sessionId':_0x9e4e0a}),_0x16f42c[_0x110563(0x7e)](0xc8)[_0x110563(0x96)]({'error':![],'message':_0x110563(0x76)});})[_0x57f535(0xa9)](handleError(_0x16f42c));},exports['calls']=function(_0x19b7f0,_0xeab5ef){const _0x14031b=a935_0x2d71c5;logger['info'](_0x14031b(0x9b),_0xeab5ef['body']);const _0x42f7d1=callsValidation[_0x14031b(0xa6)](_0x19b7f0['body']);if(_0x42f7d1[_0x14031b(0x72)]>0x0)return _0xeab5ef[_0x14031b(0x7e)](0x190)[_0x14031b(0x96)](_0x42f7d1);const _0x32bfba=_0x19b7f0[_0x14031b(0x93)][_0x14031b(0x89)],_0x1d97b5=respondWithRpcPromise('VoiceChannels'),_0x2c9950=getAgent(_0x32bfba);return Promise[_0x14031b(0x7b)]([_0x1d97b5,_0x2c9950])['then'](function(_0x373eeb){const _0x50e94a=_0x14031b,_0x38f976=_0x373eeb[0x0],_0x5355e0=_0x373eeb[0x1],_0x9bd092=_[_0x50e94a(0x9d)](_0x38f976[_0x50e94a(0xa1)],function(_0x7e205b){return _0x7e205b['UserId']==_0x5355e0['id'];});return _0xeab5ef[_0x50e94a(0x7e)](0xc8)[_0x50e94a(0x96)]({'count':_0x9bd092[_0x50e94a(0x72)],'rows':_0x9bd092});})[_0x14031b(0xa9)](handleError(_0xeab5ef));},exports[a935_0x2d71c5(0x80)]=function(_0x125954,_0x27f257){const _0x5ab19e=a935_0x2d71c5;logger[_0x5ab19e(0x8e)]('conference\x20fired:',_0x125954[_0x5ab19e(0x93)]);const _0xbe9645=conferenceValidation[_0x5ab19e(0xa6)](_0x125954[_0x5ab19e(0x93)]);if(_0xbe9645['length']>0x0)return _0x27f257[_0x5ab19e(0x7e)](0x190)['json'](_0xbe9645);const _0x2f861d=_0x125954[_0x5ab19e(0x93)][_0x5ab19e(0x89)];return getAgent(_0x2f861d)[_0x5ab19e(0x8c)](function(_0x4f3232){const _0x585a69=_0x5ab19e;return logger[_0x585a69(0x8e)]('entityFound:',_0x4f3232['name']),emit(util['format'](_0x585a69(0x94),_0x4f3232['name']),'webbar:conference'),_0x27f257['status'](0xc8)[_0x585a69(0x96)]({'error':![],'message':_0x585a69(0x7c)});})[_0x5ab19e(0xa9)](handleError(_0x27f257));},exports[a935_0x2d71c5(0x7d)]=function(_0x481f83,_0x14c018){const _0xa9d5e6=a935_0x2d71c5;logger[_0xa9d5e6(0x8e)](_0xa9d5e6(0x8f),_0x481f83['body']);const _0x1d5bf9=transferValidation[_0xa9d5e6(0xa6)](_0x481f83[_0xa9d5e6(0x93)]);if(_0x1d5bf9[_0xa9d5e6(0x72)]>0x0)return _0x14c018['status'](0x190)[_0xa9d5e6(0x96)](_0x1d5bf9);const _0x543685=_0x481f83[_0xa9d5e6(0x93)]['userId'],_0x5a05ab=_0x481f83[_0xa9d5e6(0x93)][_0xa9d5e6(0x99)],_0x4d3e38=_0x481f83[_0xa9d5e6(0x93)][_0xa9d5e6(0x6b)];return getAgent(_0x543685)[_0xa9d5e6(0x8c)](function(_0x116dfe){const _0x283b68=_0xa9d5e6;return logger[_0x283b68(0x8e)]('entityFound:',_0x116dfe[_0x283b68(0x97)]),emit(util[_0x283b68(0xab)](_0x283b68(0x94),_0x116dfe[_0x283b68(0x97)]),_0x283b68(0x91),{'sessionId':_0x5a05ab,'transferNumber':_0x4d3e38}),_0x14c018[_0x283b68(0x7e)](0xc8)[_0x283b68(0x96)]({'error':![],'message':_0x283b68(0xad)});})[_0xa9d5e6(0xa9)](handleError(_0x14c018));}; \ No newline at end of file diff --git a/server/api/whatsappAccount/index.js b/server/api/whatsappAccount/index.js index affcde8..761ccd3 100644 --- a/server/api/whatsappAccount/index.js +++ b/server/api/whatsappAccount/index.js @@ -1 +1 @@ -const a936_0x3e01=['addApplications','getAnswers','../../components/auth/service','isAuthenticated','getApplications','get','addDisposition','/describe','index','destroy','update','addAnswer','delete','/:id/users','/:id/notify','Router','express','removeDispositions','describe','removeAnswers','/:id/applications','create','post','addAgents','/:id','send','put','getDispositions','/:id/canned_answers','/:id/dispositions'];(function(_0x58157a,_0x15e321){const _0x3e01be=function(_0x2df950){while(--_0x2df950){_0x58157a['push'](_0x58157a['shift']());}};_0x3e01be(++_0x15e321);}(a936_0x3e01,0x127));const a936_0x2df9=function(_0x58157a,_0x15e321){_0x58157a=_0x58157a-0x1ed;let _0x3e01be=a936_0x3e01[_0x58157a];return _0x3e01be;};const a936_0xcba0c3=a936_0x2df9;'use strict';const express=require(a936_0xcba0c3(0x202)),router=express[a936_0xcba0c3(0x201)](),auth=require(a936_0xcba0c3(0x1f4)),controller=require('./whatsappAccount.controller');router[a936_0xcba0c3(0x1f7)]('/',auth[a936_0xcba0c3(0x1f5)](),controller[a936_0xcba0c3(0x1fa)]),router['get'](a936_0xcba0c3(0x1f9),auth[a936_0xcba0c3(0x1f5)](),controller[a936_0xcba0c3(0x204)]),router[a936_0xcba0c3(0x1f7)]('/:id',auth[a936_0xcba0c3(0x1f5)](),controller['show']),router[a936_0xcba0c3(0x1f7)](a936_0xcba0c3(0x1f1),auth[a936_0xcba0c3(0x1f5)](),controller[a936_0xcba0c3(0x1ef)]),router['get'](a936_0xcba0c3(0x1f0),auth[a936_0xcba0c3(0x1f5)](),controller[a936_0xcba0c3(0x1f3)]),router[a936_0xcba0c3(0x1f7)]('/:id/users',auth[a936_0xcba0c3(0x1f5)](),controller['getAgents']),router['get'](a936_0xcba0c3(0x206),auth[a936_0xcba0c3(0x1f5)](),controller[a936_0xcba0c3(0x1f6)]),router[a936_0xcba0c3(0x208)]('/',auth[a936_0xcba0c3(0x1f5)](),controller[a936_0xcba0c3(0x207)]),router['post']('/:id/dispositions',auth[a936_0xcba0c3(0x1f5)](),controller[a936_0xcba0c3(0x1f8)]),router[a936_0xcba0c3(0x208)](a936_0xcba0c3(0x1f0),auth[a936_0xcba0c3(0x1f5)](),controller[a936_0xcba0c3(0x1fd)]),router[a936_0xcba0c3(0x208)](a936_0xcba0c3(0x1ff),auth[a936_0xcba0c3(0x1f5)](),controller[a936_0xcba0c3(0x209)]),router[a936_0xcba0c3(0x208)](a936_0xcba0c3(0x206),auth[a936_0xcba0c3(0x1f5)](),controller[a936_0xcba0c3(0x1f2)]),router['post'](a936_0xcba0c3(0x200),controller['notify']),router[a936_0xcba0c3(0x208)]('/:id/send',auth[a936_0xcba0c3(0x1f5)](),controller[a936_0xcba0c3(0x1ed)]),router[a936_0xcba0c3(0x1ee)](a936_0xcba0c3(0x20a),auth['isAuthenticated'](),controller[a936_0xcba0c3(0x1fc)]),router[a936_0xcba0c3(0x1fe)]('/:id',auth[a936_0xcba0c3(0x1f5)](),controller[a936_0xcba0c3(0x1fb)]),router[a936_0xcba0c3(0x1fe)](a936_0xcba0c3(0x1f1),auth['isAuthenticated'](),controller[a936_0xcba0c3(0x203)]),router[a936_0xcba0c3(0x1fe)](a936_0xcba0c3(0x1f0),auth['isAuthenticated'](),controller[a936_0xcba0c3(0x205)]),router['delete']('/:id/users',auth[a936_0xcba0c3(0x1f5)](),controller['removeAgents']),module['exports']=router; \ No newline at end of file +const a936_0x114f=['/:id/dispositions','/describe','removeAgents','removeDispositions','put','getAnswers','Router','show','/:id/notify','getApplications','./whatsappAccount.controller','/:id','get','index','removeAnswers','delete','send','update','/:id/canned_answers','isAuthenticated','exports','addAgents','../../components/auth/service','getAgents','post','/:id/applications','getDispositions','notify','express','addAnswer','/:id/users'];(function(_0x4c9056,_0x3db80e){const _0x114fe6=function(_0x51e5d0){while(--_0x51e5d0){_0x4c9056['push'](_0x4c9056['shift']());}};_0x114fe6(++_0x3db80e);}(a936_0x114f,0x6d));const a936_0x51e5=function(_0x4c9056,_0x3db80e){_0x4c9056=_0x4c9056-0xcd;let _0x114fe6=a936_0x114f[_0x4c9056];return _0x114fe6;};const a936_0x5418af=a936_0x51e5;'use strict';const express=require(a936_0x5418af(0xd9)),router=express[a936_0x5418af(0xe2)](),auth=require(a936_0x5418af(0xd3)),controller=require(a936_0x5418af(0xe6));router['get']('/',auth[a936_0x5418af(0xd0)](),controller[a936_0x5418af(0xe9)]),router['get'](a936_0x5418af(0xdd),auth['isAuthenticated'](),controller['describe']),router[a936_0x5418af(0xe8)]('/:id',auth['isAuthenticated'](),controller[a936_0x5418af(0xe3)]),router[a936_0x5418af(0xe8)](a936_0x5418af(0xdc),auth[a936_0x5418af(0xd0)](),controller[a936_0x5418af(0xd7)]),router[a936_0x5418af(0xe8)](a936_0x5418af(0xcf),auth['isAuthenticated'](),controller[a936_0x5418af(0xe1)]),router[a936_0x5418af(0xe8)](a936_0x5418af(0xdb),auth['isAuthenticated'](),controller[a936_0x5418af(0xd4)]),router[a936_0x5418af(0xe8)]('/:id/applications',auth['isAuthenticated'](),controller[a936_0x5418af(0xe5)]),router[a936_0x5418af(0xd5)]('/',auth[a936_0x5418af(0xd0)](),controller['create']),router[a936_0x5418af(0xd5)](a936_0x5418af(0xdc),auth['isAuthenticated'](),controller['addDisposition']),router[a936_0x5418af(0xd5)](a936_0x5418af(0xcf),auth[a936_0x5418af(0xd0)](),controller[a936_0x5418af(0xda)]),router[a936_0x5418af(0xd5)]('/:id/users',auth[a936_0x5418af(0xd0)](),controller[a936_0x5418af(0xd2)]),router[a936_0x5418af(0xd5)](a936_0x5418af(0xd6),auth[a936_0x5418af(0xd0)](),controller['addApplications']),router[a936_0x5418af(0xd5)](a936_0x5418af(0xe4),controller[a936_0x5418af(0xd8)]),router[a936_0x5418af(0xd5)]('/:id/send',auth[a936_0x5418af(0xd0)](),controller[a936_0x5418af(0xcd)]),router[a936_0x5418af(0xe0)](a936_0x5418af(0xe7),auth[a936_0x5418af(0xd0)](),controller[a936_0x5418af(0xce)]),router['delete'](a936_0x5418af(0xe7),auth['isAuthenticated'](),controller['destroy']),router[a936_0x5418af(0xeb)](a936_0x5418af(0xdc),auth[a936_0x5418af(0xd0)](),controller[a936_0x5418af(0xdf)]),router[a936_0x5418af(0xeb)](a936_0x5418af(0xcf),auth[a936_0x5418af(0xd0)](),controller[a936_0x5418af(0xea)]),router[a936_0x5418af(0xeb)](a936_0x5418af(0xdb),auth[a936_0x5418af(0xd0)](),controller[a936_0x5418af(0xde)]),module[a936_0x5418af(0xd1)]=router; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.attributes.js b/server/api/whatsappAccount/whatsappAccount.attributes.js index 10acb04..de80b2e 100644 --- a/server/api/whatsappAccount/whatsappAccount.attributes.js +++ b/server/api/whatsappAccount/whatsappAccount.attributes.js @@ -1 +1 @@ -const a937_0x46b9=['sequelize','ENUM','BOOLEAN','TEXT','attributes','INTEGER','STRING','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','exports','twilio','name'];(function(_0x520cce,_0x5bd624){const _0x46b93e=function(_0x5b8a4b){while(--_0x5b8a4b){_0x520cce['push'](_0x520cce['shift']());}};_0x46b93e(++_0x5bd624);}(a937_0x46b9,0xd0));const a937_0x5b8a=function(_0x520cce,_0x5bd624){_0x520cce=_0x520cce-0x93;let _0x46b93e=a937_0x46b9[_0x520cce];return _0x46b93e;};const a937_0x75a668=a937_0x5b8a;'use strict';const {DataTypes}=require(a937_0x75a668(0x9b)),rs=require('randomstring'),attributes={'name':{'type':DataTypes['STRING'],'unique':a937_0x75a668(0x9a),'allowNull':![]},'key':{'type':DataTypes['STRING'],'allowNull':![]},'remote':{'type':DataTypes[a937_0x75a668(0x95)],'allowNull':![]},'token':{'type':DataTypes[a937_0x75a668(0x95)],'defaultValue':function(){return rs['generate']();}},'phone':{'type':DataTypes[a937_0x75a668(0x95)]},'type':{'type':DataTypes[a937_0x75a668(0x9c)](a937_0x75a668(0x99))},'accountSid':{'type':DataTypes[a937_0x75a668(0x95)]},'authToken':{'type':DataTypes[a937_0x75a668(0x95)]},'notificationTemplate':{'type':DataTypes[a937_0x75a668(0x9e)],'defaultValue':function(){return'Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}';}},'notificationSound':{'type':DataTypes[a937_0x75a668(0x9d)],'defaultValue':![]},'notificationShake':{'type':DataTypes[a937_0x75a668(0x9d)],'defaultValue':![]},'waitForTheAssignedAgent':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':DataTypes[a937_0x75a668(0x9d)],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes[a937_0x75a668(0x9d)],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes[a937_0x75a668(0x94)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':DataTypes['INTEGER'],'comment':a937_0x75a668(0x96)},'mandatoryDisposition':{'type':DataTypes[a937_0x75a668(0x9d)],'defaultValue':![],'comment':a937_0x75a668(0x97),'set':function(_0x47175b){!_0x47175b&&this['setDataValue']('mandatoryDispositionPauseId',null),this['setDataValue']('mandatoryDisposition',_0x47175b);}},'description':{'type':DataTypes['STRING']}};module[a937_0x75a668(0x98)][a937_0x75a668(0x93)]=attributes; \ No newline at end of file +const a937_0x51fe=['twilio','generate','exports','randomstring','BOOLEAN','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','ENUM','STRING','TEXT','mandatoryDispositionPauseId','name','mandatoryDisposition','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','INTEGER','setDataValue','sequelize','attributes'];(function(_0x435234,_0x506352){const _0x51fe75=function(_0x46aa61){while(--_0x46aa61){_0x435234['push'](_0x435234['shift']());}};_0x51fe75(++_0x506352);}(a937_0x51fe,0xbd));const a937_0x46aa=function(_0x435234,_0x506352){_0x435234=_0x435234-0x7b;let _0x51fe75=a937_0x51fe[_0x435234];return _0x51fe75;};const a937_0x1e36aa=a937_0x46aa;'use strict';const {DataTypes}=require(a937_0x1e36aa(0x88)),rs=require(a937_0x1e36aa(0x7c)),attributes={'name':{'type':DataTypes['STRING'],'unique':a937_0x1e36aa(0x83),'allowNull':![]},'key':{'type':DataTypes[a937_0x1e36aa(0x80)],'allowNull':![]},'remote':{'type':DataTypes[a937_0x1e36aa(0x80)],'allowNull':![]},'token':{'type':DataTypes[a937_0x1e36aa(0x80)],'defaultValue':function(){const _0x17540d=a937_0x1e36aa;return rs[_0x17540d(0x8b)]();}},'phone':{'type':DataTypes[a937_0x1e36aa(0x80)]},'type':{'type':DataTypes[a937_0x1e36aa(0x7f)](a937_0x1e36aa(0x8a))},'accountSid':{'type':DataTypes[a937_0x1e36aa(0x80)]},'authToken':{'type':DataTypes[a937_0x1e36aa(0x80)]},'notificationTemplate':{'type':DataTypes[a937_0x1e36aa(0x81)],'defaultValue':function(){const _0x39ca04=a937_0x1e36aa;return _0x39ca04(0x85);}},'notificationSound':{'type':DataTypes[a937_0x1e36aa(0x7d)],'defaultValue':![]},'notificationShake':{'type':DataTypes[a937_0x1e36aa(0x7d)],'defaultValue':![]},'waitForTheAssignedAgent':{'type':DataTypes[a937_0x1e36aa(0x86)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':DataTypes[a937_0x1e36aa(0x7d)],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes[a937_0x1e36aa(0x86)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes[a937_0x1e36aa(0x7d)],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes[a937_0x1e36aa(0x86)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':DataTypes['INTEGER'],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':DataTypes[a937_0x1e36aa(0x7d)],'defaultValue':![],'comment':a937_0x1e36aa(0x7e),'set':function(_0x5244c5){const _0x32c0d9=a937_0x1e36aa;!_0x5244c5&&this['setDataValue'](_0x32c0d9(0x82),null),this[_0x32c0d9(0x87)](_0x32c0d9(0x84),_0x5244c5);}},'description':{'type':DataTypes[a937_0x1e36aa(0x80)]}};module[a937_0x1e36aa(0x7b)][a937_0x1e36aa(0x89)]=attributes; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.controller.js b/server/api/whatsappAccount/whatsappAccount.controller.js index e945e2a..248d153 100644 --- a/server/api/whatsappAccount/whatsappAccount.controller.js +++ b/server/api/whatsappAccount/whatsappAccount.controller.js @@ -1 +1 @@ -const a938_0x22d5=['jayson/promise','destroy','includes','userWhatsappAccount:remove','rawAttributes','pick','push','getDispositions','key','error','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','User','rows','isArray','removeAnswers','undefined','sort','sendStatus','send','whatsapp:','UserProfileSection','VIRTUAL','Applications','emit','findOne','message','code','order','register','./whatsappAccount.socket','unmanaged','created','UserId','include','set','mandatoryDispositionPause','mobile','unshift','orderBy','entity\x20found','lodash','list','close','query','getAgents','WhatsappAccountId','client','addDisposition','contact','name','replace','end','request\x20sent','stack','Pause','autoclose','result','DESC','sequelize','Disposition','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','priority','map','model','catch','offset','Start','from\x20is\x20mandatory','dataValues','merge','receiveMessage','describe','text/xml','fields','autoAssociation','filters','defaults','Content-Type','WhatsappAccount,\x20%s,\x20%s,\x20%s','role','mapKey','includeAll','Messages','messageId','then','CmList','show','account','Contacts','Unable\x20to\x20retrieve\x20the\x20current\x20user','findAll','params','nolimit','body\x20is\x20mandatory\x20and\x20not\x20empty','type','../../mysqldb','*,*,*,*','count','options','attributes','Body','body','waitForTheAssignedAgent','createdAt','WhatsappAccount,\x20%s,\x20%s','addAgents','fieldName','transaction','omit','WhatsappAccount','create','removeDispositions','http','where','stringify','info','update','ListId','addAnswer','userProfileId','WhatsappInteraction','debug','get','UserProfileResource','ids','userWhatsappAccount:save','limit','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','agent','filter','notify','like','../../config/logger','updatedAt','\x0a','WhatsappMessage','intersection','CannedAnswer','difference','interaction','status','AttachmentId','WhatsappAccounts','keys','from','startRouting','../../rediscache','out','List','applications','CmContact','ContactId','length','json','WhatsappApplication','isNil','user'];(function(_0x18ac63,_0x53768c){const _0x22d57c=function(_0x2835a2){while(--_0x2835a2){_0x18ac63['push'](_0x18ac63['shift']());}};_0x22d57c(++_0x53768c);}(a938_0x22d5,0x179));const a938_0x2835=function(_0x18ac63,_0x53768c){_0x18ac63=_0x18ac63-0x183;let _0x22d57c=a938_0x22d5[_0x18ac63];return _0x22d57c;};const a938_0x4f87d9=a938_0x2835;'use strict';const _=require(a938_0x4f87d9(0x209)),qs=require('../../components/parsers/qs'),logger=require(a938_0x4f87d9(0x1c8))('api'),{getSocket}=require(a938_0x4f87d9(0x1d6)),socket=getSocket(),{db}=require(a938_0x4f87d9(0x1a3)),{Op,ValidationError}=require(a938_0x4f87d9(0x21b));require(a938_0x4f87d9(0x1fe))[a938_0x4f87d9(0x1fd)](socket);const jayson=require(a938_0x4f87d9(0x1e1)),client=jayson[a938_0x4f87d9(0x20f)][a938_0x4f87d9(0x1b4)]({'port':0x232c});function respondWithRpcPromise(_0x36fad2,_0x24e309,_0x23f0b8,_0x234733){return new Promise(function(_0x4c7577,_0x4117e6){const _0x4eccd9=a938_0x2835,_0x726126=_0x234733||client;return _0x726126['request'](_0x36fad2,_0x23f0b8)['then'](function(_0x3947e5){const _0x22bfd4=a938_0x2835;logger[_0x22bfd4(0x1b7)](_0x22bfd4(0x1ac),_0x24e309,_0x22bfd4(0x215)),logger[_0x22bfd4(0x1bd)](_0x22bfd4(0x192),_0x24e309,_0x22bfd4(0x215),JSON[_0x22bfd4(0x1b6)](_0x3947e5));if(_0x3947e5['error']){if(_0x3947e5[_0x22bfd4(0x1ea)][_0x22bfd4(0x1fb)]===0x1f4)return logger['error']('WhatsappAccount,\x20%s,\x20%s',_0x24e309,_0x3947e5['error'][_0x22bfd4(0x1fa)]),_0x4117e6(_0x3947e5[_0x22bfd4(0x1ea)][_0x22bfd4(0x1fa)]);return logger[_0x22bfd4(0x1ea)]('WhatsappAccount,\x20%s,\x20%s',_0x24e309,_0x3947e5['error'][_0x22bfd4(0x1fa)]),_0x4c7577(_0x3947e5[_0x22bfd4(0x1ea)][_0x22bfd4(0x1fa)]);}else logger[_0x22bfd4(0x1b7)](_0x22bfd4(0x1ac),_0x24e309,'request\x20sent'),_0x4c7577(_0x3947e5[_0x22bfd4(0x219)][_0x22bfd4(0x1fa)]);})[_0x4eccd9(0x184)](function(_0x30aeb3){const _0x3ac02e=_0x4eccd9;logger[_0x3ac02e(0x1ea)](_0x3ac02e(0x1ac),_0x24e309,_0x30aeb3),_0x4117e6(_0x30aeb3);});});}function respondWithStatusCode(_0xc6fb56,_0x27ad10){return _0x27ad10=_0x27ad10||0xcc,function(_0xe55989){const _0x9e3046=a938_0x2835;if(_0xe55989)return _0xc6fb56[_0x9e3046(0x1f2)](_0x27ad10);return _0xc6fb56[_0x9e3046(0x1d0)](_0x27ad10)[_0x9e3046(0x214)]();};}function respondWithResult(_0x4035ed,_0x209877){return _0x209877=_0x209877||0xc8,function(_0x4f2aef){const _0x1d9d6f=a938_0x2835;if(_0x4f2aef)return _0x4035ed[_0x1d9d6f(0x1d0)](_0x209877)['json'](_0x4f2aef);};}function respondWithFilteredResult(_0x594d27,_0x36d8a8){return function(_0x2621a0){const _0x4dceda=a938_0x2835;if(_0x2621a0){const _0x740bfd=_0x2621a0['count'],_0x22d6d2=_0x36d8a8[_0x4dceda(0x185)];let _0xecad41=_0x36d8a8['offset']+_0x36d8a8[_0x4dceda(0x1c2)],_0x3d4862;return _0xecad41>=_0x740bfd?(_0xecad41=_0x740bfd,_0x3d4862=0xc8):_0x3d4862=0xce,_0x594d27[_0x4dceda(0x1d0)](_0x3d4862),_0x594d27[_0x4dceda(0x203)]('Content-Range',_0x22d6d2+'-'+_0xecad41+'/'+_0x740bfd)[_0x4dceda(0x1dd)](_0x2621a0);}return null;};}function saveUpdates(_0x9cfdb4){return function(_0x3eade2){const _0x391c0f=a938_0x2835;if(_0x3eade2)return _0x3eade2[_0x391c0f(0x1b8)](_0x9cfdb4)[_0x391c0f(0x198)](function(_0xf153d1){return _0xf153d1;});return null;};}function removeEntity(_0x1c4a7d){return function(_0xa9ed8c){const _0x1ebbb5=a938_0x2835;if(_0xa9ed8c)return _0xa9ed8c['destroy']()[_0x1ebbb5(0x198)](function(){const _0x4aa0fd=_0x1ebbb5,_0x8c29c6=_0xa9ed8c[_0x4aa0fd(0x1be)]({'plain':!![]}),_0x30235b=_0x4aa0fd(0x1d2);return db[_0x4aa0fd(0x1bf)]['destroy']({'where':{'type':_0x30235b,'resourceId':_0x8c29c6['id']}})[_0x4aa0fd(0x198)](function(){return _0xa9ed8c;});})[_0x1ebbb5(0x198)](function(){const _0x166457=_0x1ebbb5;_0x1c4a7d[_0x166457(0x1d0)](0xcc)[_0x166457(0x214)]();});};}function handleEntityNotFound(_0x2a582f){return function(_0x308ea9){const _0x354fdd=a938_0x2835;return!_0x308ea9&&_0x2a582f[_0x354fdd(0x1f2)](0x194),_0x308ea9;};}function handleError(_0x3b263c,_0x35b438){return _0x35b438=_0x35b438||0x1f4,function(_0x15aed2){const _0x5df84b=a938_0x2835;logger[_0x5df84b(0x1ea)](_0x15aed2[_0x5df84b(0x216)]),_0x15aed2[_0x5df84b(0x212)]&&delete _0x15aed2[_0x5df84b(0x212)],_0x3b263c[_0x5df84b(0x1d0)](_0x35b438)[_0x5df84b(0x1f3)](_0x15aed2);};}exports['index']=function(_0xf5d047,_0x1dae28){const _0x1f1fa7=a938_0x4f87d9;let _0x1885dd={'include':[{'model':db[_0x1f1fa7(0x217)],'as':_0x1f1fa7(0x204)}]};const _0x50048e={},_0x2c2267={'count':0x0,'rows':[]},_0x3aee58=_[_0x1f1fa7(0x21f)](db[_0x1f1fa7(0x1b1)]['rawAttributes'],function(_0x37f23b){const _0x4f4a7a=_0x1f1fa7;return{'name':_0x37f23b[_0x4f4a7a(0x1ae)],'type':_0x37f23b[_0x4f4a7a(0x1a2)][_0x4f4a7a(0x1e9)]};});_0x50048e[_0x1f1fa7(0x183)]=_[_0x1f1fa7(0x21f)](_0x3aee58,_0x1f1fa7(0x212)),_0x50048e[_0x1f1fa7(0x20c)]=_[_0x1f1fa7(0x1d3)](_0xf5d047[_0x1f1fa7(0x20c)]),_0x50048e['filters']=_[_0x1f1fa7(0x1cc)](_0x50048e[_0x1f1fa7(0x183)],_0x50048e[_0x1f1fa7(0x20c)]),_0x1885dd['attributes']=_[_0x1f1fa7(0x1cc)](_0x50048e['model'],qs['fields'](_0xf5d047[_0x1f1fa7(0x20c)][_0x1f1fa7(0x18d)])),_0x1885dd['attributes']=_0x1885dd[_0x1f1fa7(0x1a7)][_0x1f1fa7(0x1dc)]?_0x1885dd['attributes']:_0x50048e[_0x1f1fa7(0x183)];typeof _0xf5d047[_0x1f1fa7(0x20c)][_0x1f1fa7(0x1a0)]===_0x1f1fa7(0x1f0)&&(_0x1885dd[_0x1f1fa7(0x1c2)]=qs['limit'](_0xf5d047[_0x1f1fa7(0x20c)][_0x1f1fa7(0x1c2)]),_0x1885dd[_0x1f1fa7(0x185)]=qs[_0x1f1fa7(0x185)](_0xf5d047[_0x1f1fa7(0x20c)][_0x1f1fa7(0x185)]));_0x1885dd[_0x1f1fa7(0x1fc)]=qs[_0x1f1fa7(0x1f1)](_0xf5d047[_0x1f1fa7(0x20c)]['sort']),_0x1885dd[_0x1f1fa7(0x1b5)]=qs['filters'](_[_0x1f1fa7(0x1e6)](_0xf5d047[_0x1f1fa7(0x20c)],_0x50048e[_0x1f1fa7(0x18f)]),_0x3aee58);_0xf5d047[_0x1f1fa7(0x20c)][_0x1f1fa7(0x1c5)]&&(_0x1885dd[_0x1f1fa7(0x1b5)]=_[_0x1f1fa7(0x189)](_0x1885dd[_0x1f1fa7(0x1b5)],{[Op['or']]:_[_0x1f1fa7(0x21f)](_0x3aee58,function(_0x371b71){const _0x3aec43=_0x1f1fa7;if(_0x371b71['type']!==_0x3aec43(0x1f6)){const _0xbd1ff9={};return _0xbd1ff9[_0x371b71[_0x3aec43(0x212)]]={[Op['like']]:'%'+_0xf5d047['query']['filter']+'%'},_0xbd1ff9;}})}));_0x1885dd=_[_0x1f1fa7(0x189)]({},_0x1885dd,_0xf5d047['options']);const _0x589439={'where':_0x1885dd[_0x1f1fa7(0x1b5)]};return db['WhatsappAccount'][_0x1f1fa7(0x1a5)](_0x589439)[_0x1f1fa7(0x198)](function(_0x3179dc){const _0x4cc3c5=_0x1f1fa7;return _0x2c2267['count']=_0x3179dc,_0xf5d047[_0x4cc3c5(0x20c)]['includeAll']&&(_0x1885dd[_0x4cc3c5(0x202)]=[{'all':!![]}]),db[_0x4cc3c5(0x1b1)][_0x4cc3c5(0x19e)](_0x1885dd);})[_0x1f1fa7(0x198)](function(_0xe29eae){const _0x3e59db=_0x1f1fa7;return _0x2c2267[_0x3e59db(0x1ed)]=_0xe29eae,_0x2c2267;})[_0x1f1fa7(0x198)](respondWithFilteredResult(_0x1dae28,_0x1885dd))[_0x1f1fa7(0x184)](handleError(_0x1dae28,null));},exports[a938_0x4f87d9(0x19a)]=function(_0x557f2e,_0x581fb0){const _0x42d2ec=a938_0x4f87d9;let _0x29e6d4={'raw':![],'where':{'id':_0x557f2e[_0x42d2ec(0x19f)]['id']},'include':[{'model':db[_0x42d2ec(0x217)],'as':_0x42d2ec(0x204)}]};const _0x588653={};return _0x588653[_0x42d2ec(0x183)]=_[_0x42d2ec(0x1d3)](db[_0x42d2ec(0x1b1)][_0x42d2ec(0x1e5)]),_0x588653[_0x42d2ec(0x20c)]=_[_0x42d2ec(0x1d3)](_0x557f2e[_0x42d2ec(0x20c)]),_0x588653[_0x42d2ec(0x18f)]=_[_0x42d2ec(0x1cc)](_0x588653[_0x42d2ec(0x183)],_0x588653[_0x42d2ec(0x20c)]),_0x29e6d4[_0x42d2ec(0x1a7)]=_[_0x42d2ec(0x1cc)](_0x588653[_0x42d2ec(0x183)],qs[_0x42d2ec(0x18d)](_0x557f2e['query']['fields'])),_0x29e6d4[_0x42d2ec(0x1a7)]=_0x29e6d4[_0x42d2ec(0x1a7)][_0x42d2ec(0x1dc)]?_0x29e6d4[_0x42d2ec(0x1a7)]:_0x588653['model'],_0x557f2e[_0x42d2ec(0x20c)][_0x42d2ec(0x195)]&&(_0x29e6d4[_0x42d2ec(0x202)]=[{'all':!![]}]),_0x29e6d4=_[_0x42d2ec(0x189)]({},_0x29e6d4,_0x557f2e['options']),db[_0x42d2ec(0x1b1)][_0x42d2ec(0x1f9)](_0x29e6d4)[_0x42d2ec(0x198)](handleEntityNotFound(_0x581fb0,null))[_0x42d2ec(0x198)](respondWithResult(_0x581fb0,null))[_0x42d2ec(0x184)](handleError(_0x581fb0,null));},exports[a938_0x4f87d9(0x1b2)]=function(_0xbf9256,_0x5223cf){const _0x21c357=a938_0x4f87d9;return db[_0x21c357(0x1b1)]['create'](_0xbf9256[_0x21c357(0x1a9)],{})[_0x21c357(0x198)](function(_0x1f9e9a){const _0x27acd3=_0x21c357,_0x49c4d9=_0xbf9256[_0x27acd3(0x1e0)]['get']({'plain':!![]});if(!_0x49c4d9)throw new Error(_0x27acd3(0x19d));if(_0x49c4d9[_0x27acd3(0x193)]===_0x27acd3(0x1e0)){const _0x2cb551=_0x1f9e9a['get']({'plain':!![]}),_0x51c4a7=_0x27acd3(0x1d2);return db[_0x27acd3(0x1f5)][_0x27acd3(0x1f9)]({'where':{'name':_0x51c4a7,'userProfileId':_0x49c4d9[_0x27acd3(0x1bb)]},'raw':!![]})[_0x27acd3(0x198)](function(_0x5a1993){const _0x435de1=_0x27acd3;return _0x5a1993&&_0x5a1993[_0x435de1(0x18e)]===0x0?db[_0x435de1(0x1bf)][_0x435de1(0x1b2)]({'name':_0x2cb551[_0x435de1(0x212)],'resourceId':_0x2cb551['id'],'type':_0x5a1993[_0x435de1(0x212)],'sectionId':_0x5a1993['id']},{})['then'](function(){return _0x1f9e9a;}):_0x1f9e9a;})[_0x27acd3(0x184)](function(_0x36ece2){const _0x20a954=_0x27acd3;logger[_0x20a954(0x1ea)](_0x20a954(0x21d),_0x36ece2);throw _0x36ece2;});}return _0x1f9e9a;})[_0x21c357(0x198)](respondWithResult(_0x5223cf,0xc9))['catch'](handleError(_0x5223cf,null));},exports[a938_0x4f87d9(0x1b8)]=function(_0x465429,_0x5e08fd){const _0x4fc7ce=a938_0x4f87d9;return _0x465429['body']['id']&&delete _0x465429[_0x4fc7ce(0x1a9)]['id'],db[_0x4fc7ce(0x1b1)][_0x4fc7ce(0x1f9)]({'where':{'id':_0x465429['params']['id']},'include':[{'model':db[_0x4fc7ce(0x217)],'as':_0x4fc7ce(0x204)}]})[_0x4fc7ce(0x198)](handleEntityNotFound(_0x5e08fd,null))[_0x4fc7ce(0x198)](saveUpdates(_0x465429['body'],null))[_0x4fc7ce(0x198)](respondWithResult(_0x5e08fd,null))[_0x4fc7ce(0x184)](handleError(_0x5e08fd,null));},exports[a938_0x4f87d9(0x1e2)]=function(_0xf102cf,_0x3c9e97){const _0x27d687=a938_0x4f87d9;return db[_0x27d687(0x1b1)]['findOne']({'where':{'id':_0xf102cf[_0x27d687(0x19f)]['id']}})[_0x27d687(0x198)](handleEntityNotFound(_0x3c9e97,null))[_0x27d687(0x198)](removeEntity(_0x3c9e97,null))[_0x27d687(0x184)](handleError(_0x3c9e97,null));},exports[a938_0x4f87d9(0x18b)]=function(_0x26bbfc,_0x1cf36b){const _0x17ba06=a938_0x4f87d9;return db[_0x17ba06(0x1b1)][_0x17ba06(0x18b)]()[_0x17ba06(0x198)](respondWithResult(_0x1cf36b,null))[_0x17ba06(0x184)](handleError(_0x1cf36b,null));},exports[a938_0x4f87d9(0x210)]=function(_0x425e1c,_0x362dc6){const _0x42fc2f=a938_0x4f87d9;return _0x425e1c[_0x42fc2f(0x1a9)]['id']&&delete _0x425e1c[_0x42fc2f(0x1a9)]['id'],db[_0x42fc2f(0x1b1)][_0x42fc2f(0x1f9)]({'where':{'id':_0x425e1c['params']['id']}})[_0x42fc2f(0x198)](handleEntityNotFound(_0x362dc6,null))[_0x42fc2f(0x198)](function(_0x378432){const _0x4c7780=_0x42fc2f;if(_0x378432)return _0x425e1c[_0x4c7780(0x1a9)][_0x4c7780(0x20e)]=_0x378432['id'],db[_0x4c7780(0x21c)]['create'](_0x425e1c['body']);})['then'](respondWithResult(_0x362dc6,null))[_0x42fc2f(0x184)](handleError(_0x362dc6,null));},exports[a938_0x4f87d9(0x1e8)]=function(_0x33a290,_0x35979b){const _0x282643=a938_0x4f87d9;let _0xd6b0dc={'raw':![],'where':{}};const _0x60ddf5={},_0x475e08={'count':0x0,'rows':[]};return db['WhatsappAccount'][_0x282643(0x1f9)]({'where':{'id':_0x33a290[_0x282643(0x19f)]['id']}})[_0x282643(0x198)](handleEntityNotFound(_0x35979b,null))[_0x282643(0x198)](function(_0x25c0d1){const _0x4e0b92=_0x282643;if(_0x25c0d1)return _0x60ddf5[_0x4e0b92(0x183)]=_[_0x4e0b92(0x1d3)](db['Disposition'][_0x4e0b92(0x1e5)]),_0x60ddf5[_0x4e0b92(0x20c)]=_[_0x4e0b92(0x1d3)](_0x33a290[_0x4e0b92(0x20c)]),_0x60ddf5[_0x4e0b92(0x18f)]=_[_0x4e0b92(0x1cc)](_0x60ddf5['model'],_0x60ddf5['query']),_0xd6b0dc['attributes']=_['intersection'](_0x60ddf5[_0x4e0b92(0x183)],qs[_0x4e0b92(0x18d)](_0x33a290[_0x4e0b92(0x20c)]['fields'])),_0xd6b0dc['attributes']=_0xd6b0dc[_0x4e0b92(0x1a7)]['length']?_0xd6b0dc['attributes']:_0x60ddf5[_0x4e0b92(0x183)],typeof _0x33a290[_0x4e0b92(0x20c)][_0x4e0b92(0x1a0)]==='undefined'&&(_0xd6b0dc[_0x4e0b92(0x1c2)]=qs['limit'](_0x33a290[_0x4e0b92(0x20c)][_0x4e0b92(0x1c2)]),_0xd6b0dc[_0x4e0b92(0x185)]=qs['offset'](_0x33a290['query'][_0x4e0b92(0x185)])),_0xd6b0dc[_0x4e0b92(0x1fc)]=qs[_0x4e0b92(0x1f1)](_0x33a290[_0x4e0b92(0x20c)][_0x4e0b92(0x1f1)]),_0xd6b0dc['where']=qs['filters'](_['pick'](_0x33a290[_0x4e0b92(0x20c)],_0x60ddf5['filters'])),_0xd6b0dc[_0x4e0b92(0x1b5)]['WhatsappAccountId']=_0x25c0d1['id'],_0x33a290[_0x4e0b92(0x20c)][_0x4e0b92(0x1c5)]&&(_0xd6b0dc[_0x4e0b92(0x1b5)]=_[_0x4e0b92(0x189)](_0xd6b0dc[_0x4e0b92(0x1b5)],{[Op['or']]:_[_0x4e0b92(0x21f)](_0xd6b0dc[_0x4e0b92(0x1a7)],function(_0x475e04){const _0x3ed017=_0x4e0b92,_0x546764={};return _0x546764[_0x475e04]={[Op[_0x3ed017(0x1c7)]]:'%'+_0x33a290['query']['filter']+'%'},_0x546764;})})),_0xd6b0dc=_[_0x4e0b92(0x189)]({},_0xd6b0dc,_0x33a290['options']),db[_0x4e0b92(0x21c)][_0x4e0b92(0x1a5)]({'where':_0xd6b0dc[_0x4e0b92(0x1b5)]})['then'](function(_0x45da55){const _0x1e4ab6=_0x4e0b92;return _0x475e08[_0x1e4ab6(0x1a5)]=_0x45da55,_0x33a290[_0x1e4ab6(0x20c)][_0x1e4ab6(0x195)]&&(_0xd6b0dc[_0x1e4ab6(0x202)]=[{'all':!![]}]),db[_0x1e4ab6(0x21c)][_0x1e4ab6(0x19e)](_0xd6b0dc);})[_0x4e0b92(0x198)](function(_0x3170b2){const _0x320828=_0x4e0b92;return _0x475e08[_0x320828(0x1ed)]=_0x3170b2,_0x475e08;});})[_0x282643(0x198)](respondWithFilteredResult(_0x35979b,_0xd6b0dc))['catch'](handleError(_0x35979b,null));},exports[a938_0x4f87d9(0x1b3)]=function(_0x16ed31,_0x2c1289){const _0x5454e4=a938_0x4f87d9;return db['WhatsappAccount'][_0x5454e4(0x1f9)]({'where':{'id':_0x16ed31['params']['id']}})[_0x5454e4(0x198)](handleEntityNotFound(_0x2c1289,null))['then'](function(_0x35b81f){const _0x2026b3=_0x5454e4;if(_0x35b81f)return _0x35b81f['removeDispositions'](_0x16ed31[_0x2026b3(0x20c)][_0x2026b3(0x1c0)]);})['then'](respondWithStatusCode(_0x2c1289,null))['catch'](handleError(_0x2c1289,null));},exports[a938_0x4f87d9(0x1ba)]=function(_0x2d0304,_0x436d06){const _0x2e8ffe=a938_0x4f87d9;return _0x2d0304[_0x2e8ffe(0x1a9)]['id']&&delete _0x2d0304[_0x2e8ffe(0x1a9)]['id'],db['WhatsappAccount'][_0x2e8ffe(0x1f9)]({'where':{'id':_0x2d0304[_0x2e8ffe(0x19f)]['id']}})['then'](handleEntityNotFound(_0x436d06,null))['then'](function(_0x46bae2){const _0x133b16=_0x2e8ffe;if(_0x46bae2)return _0x2d0304['body']['WhatsappAccountId']=_0x46bae2['id'],db['CannedAnswer'][_0x133b16(0x1b2)](_0x2d0304[_0x133b16(0x1a9)]);})[_0x2e8ffe(0x198)](respondWithResult(_0x436d06,null))[_0x2e8ffe(0x184)](handleError(_0x436d06,null));},exports['getAnswers']=function(_0x582539,_0x12dbc0){const _0x532ffd=a938_0x4f87d9;let _0x3d214b={'raw':![],'where':{}};const _0x1d02a6={},_0x455fd4={'count':0x0,'rows':[]};return db['WhatsappAccount'][_0x532ffd(0x1f9)]({'where':{'id':_0x582539['params']['id']}})[_0x532ffd(0x198)](handleEntityNotFound(_0x12dbc0,null))['then'](function(_0x143e6b){const _0x18d900=_0x532ffd;if(_0x143e6b)return _0x1d02a6['model']=_[_0x18d900(0x1d3)](db[_0x18d900(0x1cd)][_0x18d900(0x1e5)]),_0x1d02a6[_0x18d900(0x20c)]=_['keys'](_0x582539[_0x18d900(0x20c)]),_0x1d02a6['filters']=_[_0x18d900(0x1cc)](_0x1d02a6[_0x18d900(0x183)],_0x1d02a6[_0x18d900(0x20c)]),_0x3d214b[_0x18d900(0x1a7)]=_['intersection'](_0x1d02a6['model'],qs[_0x18d900(0x18d)](_0x582539['query'][_0x18d900(0x18d)])),_0x3d214b['attributes']=_0x3d214b[_0x18d900(0x1a7)]['length']?_0x3d214b['attributes']:_0x1d02a6[_0x18d900(0x183)],typeof _0x582539[_0x18d900(0x20c)][_0x18d900(0x1a0)]===_0x18d900(0x1f0)&&(_0x3d214b[_0x18d900(0x1c2)]=qs['limit'](_0x582539[_0x18d900(0x20c)][_0x18d900(0x1c2)]),_0x3d214b[_0x18d900(0x185)]=qs[_0x18d900(0x185)](_0x582539[_0x18d900(0x20c)][_0x18d900(0x185)])),_0x3d214b[_0x18d900(0x1fc)]=qs[_0x18d900(0x1f1)](_0x582539[_0x18d900(0x20c)][_0x18d900(0x1f1)]),_0x3d214b['where']=qs['filters'](_['pick'](_0x582539[_0x18d900(0x20c)],_0x1d02a6['filters'])),_0x3d214b[_0x18d900(0x1b5)][_0x18d900(0x20e)]=_0x143e6b['id'],_0x582539['query'][_0x18d900(0x1c5)]&&(_0x3d214b['where']=_['merge'](_0x3d214b[_0x18d900(0x1b5)],{[Op['or']]:_[_0x18d900(0x21f)](_0x3d214b[_0x18d900(0x1a7)],function(_0x2dd852){const _0x2ec85b=_0x18d900,_0x2dd5bc={};return _0x2dd5bc[_0x2dd852]={[Op[_0x2ec85b(0x1c7)]]:'%'+_0x582539[_0x2ec85b(0x20c)][_0x2ec85b(0x1c5)]+'%'},_0x2dd5bc;})})),_0x3d214b=_[_0x18d900(0x189)]({},_0x3d214b,_0x582539[_0x18d900(0x1a6)]),db[_0x18d900(0x1cd)][_0x18d900(0x1a5)]({'where':_0x3d214b['where']})[_0x18d900(0x198)](function(_0x2779d0){const _0x7878fd=_0x18d900;return _0x455fd4[_0x7878fd(0x1a5)]=_0x2779d0,_0x582539['query'][_0x7878fd(0x195)]&&(_0x3d214b[_0x7878fd(0x202)]=[{'all':!![]}]),db['CannedAnswer']['findAll'](_0x3d214b);})['then'](function(_0x5a09fd){const _0x2f6a3e=_0x18d900;return _0x455fd4[_0x2f6a3e(0x1ed)]=_0x5a09fd,_0x455fd4;});})[_0x532ffd(0x198)](respondWithFilteredResult(_0x12dbc0,_0x3d214b))['catch'](handleError(_0x12dbc0,null));},exports[a938_0x4f87d9(0x1ef)]=function(_0x34d68f,_0xe4338e){const _0x9dd4bf=a938_0x4f87d9;return db[_0x9dd4bf(0x1b1)][_0x9dd4bf(0x1f9)]({'where':{'id':_0x34d68f[_0x9dd4bf(0x19f)]['id']}})['then'](handleEntityNotFound(_0xe4338e,null))['then'](function(_0x253f15){const _0x57b738=_0x9dd4bf;if(_0x253f15)return _0x253f15[_0x57b738(0x1ef)](_0x34d68f[_0x57b738(0x20c)][_0x57b738(0x1c0)]);})[_0x9dd4bf(0x198)](respondWithStatusCode(_0xe4338e,null))['catch'](handleError(_0xe4338e,null));},exports['addAgents']=function(_0x32517f,_0x540866){const _0x28b045=a938_0x4f87d9;return db[_0x28b045(0x1b1)]['findOne']({'where':{'id':_0x32517f['params']['id']}})[_0x28b045(0x198)](function(_0x4b5675){const _0x5a933d=_0x28b045;if(_0x4b5675)return _0x4b5675[_0x5a933d(0x1ad)](_0x32517f[_0x5a933d(0x1a9)][_0x5a933d(0x1c0)],{'through':_[_0x5a933d(0x1b0)](_0x32517f[_0x5a933d(0x1a9)],['ids','id'])})[_0x5a933d(0x198)](function(_0x234af0){const _0x20f85f=_0x5a933d;for(let _0x5c14c5=0x0;_0x5c14c5<_0x32517f['body']['ids'][_0x20f85f(0x1dc)];_0x5c14c5+=0x1){socket[_0x20f85f(0x1f8)](_0x20f85f(0x1c1),{'UserId':_0x32517f['body']['ids'][_0x5c14c5],'WhatsappAccountId':_0x32517f[_0x20f85f(0x19f)]['id']});}return _0x234af0;});})['then'](respondWithResult(_0x540866,null))['catch'](handleError(_0x540866,null));},exports['removeAgents']=function(_0x135196,_0x57f7fc){const _0xd49704=a938_0x4f87d9;return db[_0xd49704(0x1b1)]['findOne']({'where':{'id':_0x135196[_0xd49704(0x19f)]['id']}})[_0xd49704(0x198)](handleEntityNotFound(_0x57f7fc,null))[_0xd49704(0x198)](function(_0x54850b){const _0x411ee2=_0xd49704;if(_0x54850b)return _0x54850b['removeAgents'](_0x135196['query']['ids'])[_0x411ee2(0x198)](function(){const _0x1bf334=_0x411ee2;if(_[_0x1bf334(0x1ee)](_0x135196['query'][_0x1bf334(0x1c0)]))for(let _0x23ac1e=0x0;_0x23ac1e<_0x135196[_0x1bf334(0x20c)][_0x1bf334(0x1c0)][_0x1bf334(0x1dc)];_0x23ac1e+=0x1){socket['emit']('userWhatsappAccount:remove',{'UserId':Number(_0x135196['query'][_0x1bf334(0x1c0)][_0x23ac1e]),'WhatsappAccountId':Number(_0x135196['params']['id'])});}else socket[_0x1bf334(0x1f8)](_0x1bf334(0x1e4),{'UserId':Number(_0x135196[_0x1bf334(0x20c)][_0x1bf334(0x1c0)]),'WhatsappAccountId':Number(_0x135196[_0x1bf334(0x19f)]['id'])});});})[_0xd49704(0x198)](respondWithStatusCode(_0x57f7fc,null))['catch'](handleError(_0x57f7fc,null));},exports[a938_0x4f87d9(0x20d)]=function(_0x3b14a2,_0x26cbd5){const _0x5c84e4=a938_0x4f87d9;let _0x3a1b46={};const _0x192b3e={};let _0x5252c7,_0x23a66f;return db['WhatsappAccount'][_0x5c84e4(0x1f9)]({'where':{'id':_0x3b14a2[_0x5c84e4(0x19f)]['id']}})[_0x5c84e4(0x198)](handleEntityNotFound(_0x26cbd5,null))['then'](function(_0x526ed0){const _0x495396=_0x5c84e4;if(_0x526ed0)return _0x5252c7=_0x526ed0,_0x192b3e[_0x495396(0x183)]=_[_0x495396(0x1d3)](db[_0x495396(0x1ec)]['rawAttributes']),_0x192b3e[_0x495396(0x20c)]=_[_0x495396(0x1d3)](_0x3b14a2[_0x495396(0x20c)]),_0x192b3e['filters']=_[_0x495396(0x1cc)](_0x192b3e[_0x495396(0x183)],_0x192b3e[_0x495396(0x20c)]),_0x3a1b46['attributes']=_[_0x495396(0x1cc)](_0x192b3e[_0x495396(0x183)],qs['fields'](_0x3b14a2[_0x495396(0x20c)][_0x495396(0x18d)])),_0x3a1b46[_0x495396(0x1a7)]=_0x3a1b46[_0x495396(0x1a7)][_0x495396(0x1dc)]?_0x3a1b46[_0x495396(0x1a7)]:_0x192b3e[_0x495396(0x183)],_0x3a1b46['order']=qs[_0x495396(0x1f1)](_0x3b14a2[_0x495396(0x20c)][_0x495396(0x1f1)]),_0x3a1b46['where']=qs[_0x495396(0x18f)](_[_0x495396(0x1e6)](_0x3b14a2[_0x495396(0x20c)],_0x192b3e['filters'])),_0x3b14a2[_0x495396(0x20c)][_0x495396(0x1c5)]&&(_0x3a1b46['where']=_[_0x495396(0x189)](_0x3a1b46[_0x495396(0x1b5)],{[Op['or']]:_[_0x495396(0x21f)](_0x3a1b46[_0x495396(0x1a7)],function(_0x4e2eb1){const _0x1a4692=_0x495396,_0x4b6976={};return _0x4b6976[_0x4e2eb1]={[Op[_0x1a4692(0x1c7)]]:'%'+_0x3b14a2[_0x1a4692(0x20c)][_0x1a4692(0x1c5)]+'%'},_0x4b6976;})})),_0x3a1b46=_[_0x495396(0x189)]({},_0x3a1b46,_0x3b14a2[_0x495396(0x1a6)]),_0x5252c7[_0x495396(0x20d)](_0x3a1b46);})[_0x5c84e4(0x198)](function(_0x323c3b){const _0x1b3fab=_0x5c84e4;if(_0x323c3b)return _0x23a66f=_0x323c3b['length'],typeof _0x3b14a2[_0x1b3fab(0x20c)]['nolimit']===_0x1b3fab(0x1f0)&&(_0x3a1b46['limit']=qs[_0x1b3fab(0x1c2)](_0x3b14a2[_0x1b3fab(0x20c)][_0x1b3fab(0x1c2)]),_0x3a1b46[_0x1b3fab(0x185)]=qs['offset'](_0x3b14a2[_0x1b3fab(0x20c)][_0x1b3fab(0x185)])),_0x5252c7[_0x1b3fab(0x20d)](_0x3a1b46);})[_0x5c84e4(0x198)](function(_0x4706d8){if(_0x4706d8)return _0x4706d8?{'count':_0x23a66f,'rows':_0x4706d8}:null;})[_0x5c84e4(0x198)](respondWithResult(_0x26cbd5,null))['catch'](handleError(_0x26cbd5,null));},exports['addApplications']=function(_0x426ddc,_0x4bfb16){const _0x2c1c1a=a938_0x4f87d9;return db['WhatsappAccount'][_0x2c1c1a(0x1f9)]({'where':{'id':_0x426ddc[_0x2c1c1a(0x19f)]['id']}})['then'](handleEntityNotFound(_0x4bfb16,null))['then'](function(_0x101a0f){const _0x491586=_0x2c1c1a;if(_0x101a0f)return db[_0x491586(0x21b)][_0x491586(0x1af)](function(_0x2eb504){const _0x5f3476=_0x491586;return db[_0x5f3476(0x1de)][_0x5f3476(0x1e2)]({'where':{'WhatsappAccountId':_0x426ddc['params']['id']},'transaction':_0x2eb504})[_0x5f3476(0x198)](function(){const _0x177dbe=_0x5f3476,_0x1e565f=_[_0x177dbe(0x21f)](_0x426ddc[_0x177dbe(0x1a9)],function(_0x4863c0){const _0x5d23f9=_0x177dbe;return _0x4863c0[_0x5d23f9(0x20e)]=_0x426ddc[_0x5d23f9(0x19f)]['id'],_0x4863c0;});return db[_0x177dbe(0x1de)]['bulkCreate'](_0x1e565f,{'transaction':_0x2eb504});});})[_0x491586(0x198)](function(){const _0x24f1b8=_0x491586;return db[_0x24f1b8(0x1de)]['findAndCountAll']({'where':{'WhatsappAccountId':_0x426ddc[_0x24f1b8(0x19f)]['id']},'order':_0x24f1b8(0x21e)});});})[_0x2c1c1a(0x198)](respondWithResult(_0x4bfb16,null))[_0x2c1c1a(0x184)](handleError(_0x4bfb16,null));},exports['getApplications']=function(_0x31a37a,_0x645305){const _0x5e8c53=a938_0x4f87d9;let _0x34d242={};const _0x216549={};let _0x33c390,_0x327c97;return db[_0x5e8c53(0x1b1)][_0x5e8c53(0x1f9)]({'where':{'id':_0x31a37a[_0x5e8c53(0x19f)]['id']}})[_0x5e8c53(0x198)](handleEntityNotFound(_0x645305,null))[_0x5e8c53(0x198)](function(_0x2d36b3){const _0x461125=_0x5e8c53;if(_0x2d36b3)return _0x33c390=_0x2d36b3,_0x216549[_0x461125(0x183)]=_[_0x461125(0x1d3)](db[_0x461125(0x1de)][_0x461125(0x1e5)]),_0x216549[_0x461125(0x20c)]=_[_0x461125(0x1d3)](_0x31a37a[_0x461125(0x20c)]),_0x216549[_0x461125(0x18f)]=_[_0x461125(0x1cc)](_0x216549['model'],_0x216549[_0x461125(0x20c)]),_0x34d242[_0x461125(0x1a7)]=_[_0x461125(0x1cc)](_0x216549['model'],qs[_0x461125(0x18d)](_0x31a37a[_0x461125(0x20c)][_0x461125(0x18d)])),_0x34d242['attributes']=_0x34d242['attributes'][_0x461125(0x1dc)]?_0x34d242[_0x461125(0x1a7)]:_0x216549[_0x461125(0x183)],_0x34d242['order']=qs['sort'](_0x31a37a[_0x461125(0x20c)][_0x461125(0x1f1)]),_0x34d242[_0x461125(0x1b5)]=qs[_0x461125(0x18f)](_['pick'](_0x31a37a[_0x461125(0x20c)],_0x216549[_0x461125(0x18f)])),_0x31a37a[_0x461125(0x20c)]['filter']&&(_0x34d242[_0x461125(0x1b5)]=_[_0x461125(0x189)](_0x34d242[_0x461125(0x1b5)],{[Op['or']]:_[_0x461125(0x21f)](_0x34d242[_0x461125(0x1a7)],function(_0xaf658){const _0x201496=_0x461125,_0x22fe6d={};return _0x22fe6d[_0xaf658]={[Op[_0x201496(0x1c7)]]:'%'+_0x31a37a[_0x201496(0x20c)][_0x201496(0x1c5)]+'%'},_0x22fe6d;})})),_0x34d242=_[_0x461125(0x189)]({},_0x34d242,_0x31a37a[_0x461125(0x1a6)]),_0x33c390['getApplications'](_0x34d242);})[_0x5e8c53(0x198)](function(_0x17883){const _0x302c7b=_0x5e8c53;if(_0x17883)return _0x327c97=_0x17883[_0x302c7b(0x1dc)],typeof _0x31a37a['query'][_0x302c7b(0x1a0)]===_0x302c7b(0x1f0)&&(_0x34d242[_0x302c7b(0x1c2)]=qs['limit'](_0x31a37a['query'][_0x302c7b(0x1c2)]),_0x34d242['offset']=qs['offset'](_0x31a37a[_0x302c7b(0x20c)][_0x302c7b(0x185)])),_0x33c390['getApplications'](_0x34d242);})['then'](function(_0x2da809){if(_0x2da809)return _0x2da809?{'count':_0x327c97,'rows':_0x2da809}:null;})['then'](respondWithResult(_0x645305,null))[_0x5e8c53(0x184)](handleError(_0x645305,null));},exports[a938_0x4f87d9(0x1c6)]=function(_0x384335,_0x4dc021){const _0xed72f0=a938_0x4f87d9,_0x5601a1={'channel':'whatsapp'};let _0x23209d=[],_0x42b41e=[];const _0x20662e={};return db[_0xed72f0(0x1b1)][_0xed72f0(0x1f9)]({'where':{'id':_0x384335['params']['id']},'include':[{'model':db[_0xed72f0(0x1de)],'as':_0xed72f0(0x1f7)}]})[_0xed72f0(0x198)](handleEntityNotFound(_0x4dc021,null))['then'](function(_0x1aa8cb){const _0x19fcb9=_0xed72f0;return _0x5601a1[_0x19fcb9(0x19b)]=_0x1aa8cb,_0x5601a1[_0x19fcb9(0x1d9)]=_[_0x19fcb9(0x207)](_0x1aa8cb[_0x19fcb9(0x1f7)],[_0x19fcb9(0x21e)],['asc']),_0x5601a1['account'][_0x19fcb9(0x1f7)]&&delete _0x5601a1[_0x19fcb9(0x19b)]['Applications'],db[_0x19fcb9(0x1da)][_0x19fcb9(0x18b)]();})['then'](function(_0x2f78e9){const _0x215b92=_0xed72f0;if(!_0x2f78e9)throw new ValidationError('no\x20available\x20attributes');_0x23209d=_[_0x215b92(0x1ce)](_[_0x215b92(0x1d3)](_0x2f78e9),[_0x215b92(0x1ab),_0x215b92(0x1c9)]),_0x42b41e=_[_0x215b92(0x1ce)](_[_0x215b92(0x1d3)](_0x2f78e9),['createdAt',_0x215b92(0x1c9),'CompanyId','ListId']),_0x5601a1[_0x215b92(0x1a9)]={'mapKey':_0x215b92(0x205)};_0x5601a1['account']['type']&&_0x5601a1[_0x215b92(0x19b)][_0x215b92(0x1a2)]==='twilio'&&(_0x5601a1[_0x215b92(0x1a9)][_0x215b92(0x1d4)]=_0x384335[_0x215b92(0x1a9)]['From'][_0x215b92(0x213)](_0x215b92(0x1f4),''),_0x5601a1[_0x215b92(0x1a9)][_0x215b92(0x1a9)]=_0x384335['body'][_0x215b92(0x1a8)],_0x5601a1['body'][_0x215b92(0x197)]=_0x384335[_0x215b92(0x1a9)]['MessageSid']);_0x5601a1[_0x215b92(0x1a9)]['id']&&delete _0x5601a1[_0x215b92(0x1a9)]['id'];if(_[_0x215b92(0x1df)](_0x5601a1[_0x215b92(0x1a9)][_0x215b92(0x1d4)]))throw new ValidationError(_0x215b92(0x187));if(_[_0x215b92(0x1df)](_0x5601a1[_0x215b92(0x1a9)][_0x215b92(0x1a9)])||_0x5601a1[_0x215b92(0x1a9)][_0x215b92(0x1a9)]==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x215b92(0x1df)](_0x5601a1[_0x215b92(0x1a9)][_0x215b92(0x194)]))throw new ValidationError(_0x215b92(0x1eb)+_0x42b41e);if(!_[_0x215b92(0x1e3)](_0x42b41e,_0x5601a1[_0x215b92(0x1a9)]['mapKey']))throw new ValidationError(_0x215b92(0x1c3)+_0x42b41e);return _0x20662e[_0x5601a1[_0x215b92(0x1a9)]['mapKey']]=_0x5601a1[_0x215b92(0x1a9)][_0x215b92(0x1d4)],db[_0x215b92(0x199)]['findOne']({'where':{'id':_0x5601a1[_0x215b92(0x19b)][_0x215b92(0x1b9)]},'include':[{'model':db[_0x215b92(0x1da)],'as':_0x215b92(0x19c),'where':_0x20662e,'limit':0x1,'order':[['updatedAt',_0x215b92(0x21a)]]}]});})[_0xed72f0(0x198)](handleEntityNotFound(_0x4dc021,null))[_0xed72f0(0x198)](function(_0x3b5c1e){const _0xba186=_0xed72f0;if(_0x3b5c1e){_0x5601a1[_0xba186(0x20a)]=_[_0xba186(0x1b0)](_0x3b5c1e,['Contacts']);if(_0x3b5c1e[_0xba186(0x19c)]['length'])return _0x3b5c1e[_0xba186(0x19c)][0x0];const _0x165a39=_[_0xba186(0x190)](_0x5601a1[_0xba186(0x1a9)],{'firstName':_0x5601a1['body'][_0xba186(0x1d4)],'ListId':_0x3b5c1e['id']});return _0x165a39[_0x5601a1['body'][_0xba186(0x194)]]=_0x5601a1['body'][_0xba186(0x1d4)],db[_0xba186(0x1da)]['create'](_0x165a39,{'fields':_0x23209d,'raw':!![]});}})[_0xed72f0(0x198)](handleEntityNotFound(_0x4dc021,null))[_0xed72f0(0x198)](function(_0x558330){const _0x543b35=_0xed72f0;if(_0x558330){_0x5601a1[_0x543b35(0x211)]=_0x558330;const _0xa2c154={'ContactId':_0x558330['id'],'phone':_0x5601a1[_0x543b35(0x1a9)][_0x543b35(0x1d4)],'WhatsappAccountId':_0x384335[_0x543b35(0x19f)]['id']},_0x59057c={'ContactId':_0x558330['id'],'WhatsappAccountId':_0x384335[_0x543b35(0x19f)]['id'],'closed':![]};return db['WhatsappInteraction'][_0x543b35(0x1f9)]({'where':_0x59057c})[_0x543b35(0x198)](function(_0x3a3804){const _0x210c65=_0x543b35;if(_0x3a3804)return[_0x3a3804,![]];return db[_0x210c65(0x1bc)][_0x210c65(0x1b2)](_0xa2c154)[_0x210c65(0x198)](function(_0x478247){return[_0x478247,!![]];});});}})[_0xed72f0(0x198)](function([_0x883e48,_0x4ac6f3]){const _0x2bffc9=_0xed72f0;return _0x5601a1[_0x2bffc9(0x1cf)]=_0x883e48[_0x2bffc9(0x1be)]({'plain':!![]}),_0x5601a1['interaction'][_0x2bffc9(0x200)]=![],_0x4ac6f3&&(_0x5601a1[_0x2bffc9(0x19b)][_0x2bffc9(0x218)]&&_0x5601a1['applications'][_0x2bffc9(0x1e7)]({'id':0x0,'priority':_0x5601a1[_0x2bffc9(0x1d9)][_0x2bffc9(0x1dc)]+0x1,'app':_0x2bffc9(0x20b),'appdata':_0x2bffc9(0x1ff),'interval':_0x2bffc9(0x1a4)}),_0x5601a1[_0x2bffc9(0x1cf)][_0x2bffc9(0x200)]=!![]),db[_0x2bffc9(0x1cb)][_0x2bffc9(0x1b2)]({'phone':_0x5601a1[_0x2bffc9(0x1a9)]['from'],'messageId':_0x5601a1[_0x2bffc9(0x1a9)]['messageId'],'body':_0x5601a1[_0x2bffc9(0x1a9)]['body'],'WhatsappAccountId':_0x384335[_0x2bffc9(0x19f)]['id'],'WhatsappInteractionId':_0x883e48['id'],'direction':'in','ContactId':_0x883e48[_0x2bffc9(0x1db)],'AttachmentId':_0x5601a1[_0x2bffc9(0x1a9)][_0x2bffc9(0x1d1)]});})[_0xed72f0(0x198)](function(_0x50af0b){const _0xd276e6=_0xed72f0;_0x5601a1['message']=_0x50af0b;if(_0x5601a1['interaction'][_0xd276e6(0x201)])return db[_0xd276e6(0x1ec)]['findOne']({'attributes':['id',_0xd276e6(0x212)],'where':{'id':_0x5601a1[_0xd276e6(0x1cf)][_0xd276e6(0x201)]}})[_0xd276e6(0x198)](function(_0x33272f){const _0x2556d5=_0xd276e6;return _0x33272f&&_0x5601a1[_0x2556d5(0x1d9)][_0x2556d5(0x206)]({'id':0x0,'priority':0x0,'app':_0x2556d5(0x1c4),'appdata':_0x33272f[_0x2556d5(0x212)]+','+(_0x5601a1['account'][_0x2556d5(0x1aa)]||0xa),'interval':_0x2556d5(0x1a4)}),respondWithRpcPromise(_0x2556d5(0x186),_0x2556d5(0x1d5),_0x5601a1);});return respondWithRpcPromise(_0xd276e6(0x186),'startRouting',_0x5601a1);})[_0xed72f0(0x198)](function(_0xe71b26){const _0x4c1f66=_0xed72f0;if(_0xe71b26){const _0x2984c3=0xc8,_0x450060=_0x4c1f66(0x18a);return logger[_0x4c1f66(0x1b7)]('WhatsappAccount,\x20%s,\x20%s,\x20%s',_0x450060,_0x2984c3,_0x4c1f66(0x208)),logger['debug']('WhatsappAccount,\x20%s,\x20%s,\x20%s,\x20%s',_0x450060,_0x2984c3,_0x4c1f66(0x208),JSON[_0x4c1f66(0x1b6)](_0xe71b26)),_0x5601a1[_0x4c1f66(0x19b)][_0x4c1f66(0x1a2)]==='twilio'?_0x4dc021[_0x4c1f66(0x1d0)](_0x2984c3)['set'](_0x4c1f66(0x191),_0x4c1f66(0x18c))[_0x4c1f66(0x1f3)](_0x4c1f66(0x1ca)):_0x4dc021[_0x4c1f66(0x1d0)](_0x2984c3)[_0x4c1f66(0x1dd)](_0xe71b26);}})[_0xed72f0(0x184)](handleError(_0x4dc021,null));},exports[a938_0x4f87d9(0x1f3)]=function(_0x31f9fc,_0x427743){const _0x441560=a938_0x4f87d9;let _0x3263d2,_0x15d7da;if(_[_0x441560(0x1df)](_0x31f9fc[_0x441560(0x1a9)][_0x441560(0x1a9)])||_0x31f9fc['body'][_0x441560(0x1a9)]==='')throw new ValidationError(_0x441560(0x1a1));if(_['isNil'](_0x31f9fc[_0x441560(0x1a9)]['to']))throw new ValidationError('to\x20is\x20mandatory');const _0x12d464=_0x31f9fc[_0x441560(0x1a9)]['to'];return db[_0x441560(0x1b1)]['findOne']({'where':{'id':_0x31f9fc[_0x441560(0x19f)]['id']},'include':[{'model':db['CmList'],'as':_0x441560(0x1d8),'include':[{'model':db[_0x441560(0x1da)],'as':_0x441560(0x19c),'where':{'mobile':_0x12d464},'limit':0x1,'order':[[_0x441560(0x1c9),_0x441560(0x21a)]]}]}]})[_0x441560(0x198)](handleEntityNotFound(_0x427743,null))[_0x441560(0x198)](function(_0x25ff4f){const _0x329542=_0x441560;if(_0x25ff4f&&_0x25ff4f[_0x329542(0x1d8)]){_0x3263d2=_0x25ff4f['get']({'plain':!![]});if(_0x3263d2[_0x329542(0x1d8)]&&_0x3263d2[_0x329542(0x1d8)]['Contacts'][_0x329542(0x1dc)])return _0x3263d2[_0x329542(0x1d8)][_0x329542(0x19c)][0x0];return db[_0x329542(0x1da)][_0x329542(0x1b2)](_[_0x329542(0x190)](_0x31f9fc['body'],{'firstName':_0x12d464,'mobile':_0x12d464,'phone':_0x12d464,'ListId':_0x3263d2['ListId']}));}})['then'](handleEntityNotFound(_0x427743,null))[_0x441560(0x198)](function(_0x2d56ae){const _0x2241b8=_0x441560;if(_0x2d56ae)return _0x15d7da=_0x2d56ae,db[_0x2241b8(0x1bc)][_0x2241b8(0x1f9)]({'where':{'ContactId':_0x15d7da['id'],'closed':![],'WhatsappAccountId':_0x3263d2['id']}})['then'](function(_0xdbf441){const _0x3da914=_0x2241b8;if(_0xdbf441)return[_0xdbf441,![]];return db['WhatsappInteraction'][_0x3da914(0x1b2)]({'UserId':_0x31f9fc[_0x3da914(0x1e0)]['id'],'ContactId':_0x15d7da['id'],'WhatsappAccountId':_0x3263d2['id'],'phone':_0x12d464,'firstMsgDirection':_0x3da914(0x1d7),'Messages':[_['merge'](_0x31f9fc[_0x3da914(0x1a9)],{'read':![],'body':_0x31f9fc[_0x3da914(0x1a9)]['body'],'phone':_0x12d464,'WhatsappAccountId':_0x3263d2['id'],'UserId':_0x31f9fc[_0x3da914(0x1e0)]['id'],'ContactId':_0x15d7da['id']})]},{'include':[{'model':db[_0x3da914(0x1cb)],'as':_0x3da914(0x196)}]})['then'](function(_0x3e2f91){return[_0x3e2f91,!![]];});});})[_0x441560(0x198)](function([_0xe90a1,_0x17d130]){const _0x3f4d8c=_0x441560;if(_0x17d130)return _0xe90a1;return db[_0x3f4d8c(0x1cb)][_0x3f4d8c(0x1b2)](_[_0x3f4d8c(0x189)](_0x31f9fc[_0x3f4d8c(0x1a9)],{'read':![],'body':_0x31f9fc[_0x3f4d8c(0x1a9)][_0x3f4d8c(0x1a9)],'phone':_0x12d464,'WhatsappAccountId':_0x3263d2['id'],'WhatsappInteractionId':_0xe90a1['id'],'UserId':_0x31f9fc[_0x3f4d8c(0x1e0)]['id'],'ContactId':_0x15d7da['id']}))['then'](function(_0xa044fc){const _0x3e01b7=_0x3f4d8c;return _0xe90a1[_0x3e01b7(0x188)][_0x3e01b7(0x196)]=[],_0xe90a1[_0x3e01b7(0x188)][_0x3e01b7(0x196)][_0x3e01b7(0x1e7)](_0xa044fc[_0x3e01b7(0x188)]),_0xe90a1;});})[_0x441560(0x198)](respondWithResult(_0x427743,null))[_0x441560(0x184)](handleError(_0x427743,null));}; \ No newline at end of file +const a938_0x5ee3=['ListId','debug','CmContact','Pause','filter','send','index','info','addDisposition','asc','body\x20is\x20mandatory\x20and\x20not\x20empty','UserId','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','WhatsappAccount,\x20%s,\x20%s','getApplications','query','lodash','no\x20available\x20attributes','ids','error','getDispositions','from','difference','mapKey','Contacts','client','type','role','../../rediscache','Applications','model','set','where','update','WhatsappInteraction','UserProfileSection','filters','addAnswer','From','WhatsappMessage','removeAnswers','autoAssociation','merge','WhatsappAccount,\x20%s,\x20%s,\x20%s,\x20%s','rows','MessageSid','message','removeAgents','findOne','../../config/logger','sequelize','order','includes','WhatsappApplication','count','Start','Unable\x20to\x20retrieve\x20the\x20current\x20user','request\x20sent','sort','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','like','close','isNil','body','fields','push','../../mysqldb','end','nolimit','user','dataValues','out','length','userWhatsappAccount:remove','get','messageId','sendStatus','CannedAnswer','undefined','interaction','emit','Disposition','include','Content-Range','text/xml','json','result','ContactId','from\x20is\x20mandatory','catch','then','includeAll','WhatsappAccount','options','addAgents','twilio','params','attributes','show','WhatsappAccount,\x20%s,\x20%s,\x20%s','WhatsappAccountId','status','DESC','offset','findAndCountAll','Messages','startRouting','../../components/parsers/qs','priority','destroy','api','mandatoryDispositionPause','register','rawAttributes','key','account','waitForTheAssignedAgent','getAnswers','pick','updatedAt','keys','whatsapp:','create','applications','orderBy','list','intersection','stack','getAgents','List','UserProfileResource','name','jayson/promise','findAll','map','notify','describe','User','entity\x20found','AttachmentId','created','defaults','omit','replace','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','Content-Type','limit','stringify','*,*,*,*','CmList'];(function(_0x3a9991,_0x406e73){const _0x5ee393=function(_0x32930b){while(--_0x32930b){_0x3a9991['push'](_0x3a9991['shift']());}};_0x5ee393(++_0x406e73);}(a938_0x5ee3,0x1a0));const a938_0x3293=function(_0x3a9991,_0x406e73){_0x3a9991=_0x3a9991-0xea;let _0x5ee393=a938_0x5ee3[_0x3a9991];return _0x5ee393;};const a938_0x251037=a938_0x3293;'use strict';const _=require(a938_0x251037(0x11c)),qs=require(a938_0x251037(0x177)),logger=require(a938_0x251037(0x13d))(a938_0x251037(0x17a)),{getSocket}=require(a938_0x251037(0x128)),socket=getSocket(),{db}=require(a938_0x251037(0x14e)),{Op,ValidationError}=require(a938_0x251037(0x13e));require('./whatsappAccount.socket')[a938_0x251037(0x17c)](socket);const jayson=require(a938_0x251037(0xfa)),client=jayson[a938_0x251037(0x125)]['http']({'port':0x232c});function respondWithRpcPromise(_0x517873,_0x3981d8,_0x49b261,_0x2c7191){return new Promise(function(_0x528d73,_0x1af54a){const _0x2f3163=a938_0x3293,_0x298fde=_0x2c7191||client;return _0x298fde['request'](_0x517873,_0x49b261)[_0x2f3163(0x166)](function(_0x5b1c24){const _0x1d8198=_0x2f3163;logger[_0x1d8198(0x113)](_0x1d8198(0x119),_0x3981d8,_0x1d8198(0x145)),logger[_0x1d8198(0x10d)](_0x1d8198(0x16f),_0x3981d8,_0x1d8198(0x145),JSON[_0x1d8198(0x109)](_0x5b1c24));if(_0x5b1c24['error']){if(_0x5b1c24['error']['code']===0x1f4)return logger[_0x1d8198(0x11f)](_0x1d8198(0x119),_0x3981d8,_0x5b1c24['error'][_0x1d8198(0x13a)]),_0x1af54a(_0x5b1c24[_0x1d8198(0x11f)]['message']);return logger[_0x1d8198(0x11f)](_0x1d8198(0x119),_0x3981d8,_0x5b1c24[_0x1d8198(0x11f)][_0x1d8198(0x13a)]),_0x528d73(_0x5b1c24['error']['message']);}else logger['info'](_0x1d8198(0x119),_0x3981d8,_0x1d8198(0x145)),_0x528d73(_0x5b1c24[_0x1d8198(0x162)][_0x1d8198(0x13a)]);})['catch'](function(_0x429298){const _0x49e033=_0x2f3163;logger['error'](_0x49e033(0x119),_0x3981d8,_0x429298),_0x1af54a(_0x429298);});});}function respondWithStatusCode(_0x3278e4,_0x1e93ad){return _0x1e93ad=_0x1e93ad||0xcc,function(_0x27a37f){const _0x2b2d65=a938_0x3293;if(_0x27a37f)return _0x3278e4[_0x2b2d65(0x158)](_0x1e93ad);return _0x3278e4[_0x2b2d65(0x171)](_0x1e93ad)[_0x2b2d65(0x14f)]();};}function respondWithResult(_0xf407e,_0x4a513d){return _0x4a513d=_0x4a513d||0xc8,function(_0x5929de){const _0x2a11f5=a938_0x3293;if(_0x5929de)return _0xf407e['status'](_0x4a513d)[_0x2a11f5(0x161)](_0x5929de);};}function respondWithFilteredResult(_0x4e4de0,_0x5ae1ed){return function(_0x169cb4){const _0x1832db=a938_0x3293;if(_0x169cb4){const _0x4172e5=_0x169cb4[_0x1832db(0x142)],_0x11c91c=_0x5ae1ed[_0x1832db(0x173)];let _0x29d892=_0x5ae1ed[_0x1832db(0x173)]+_0x5ae1ed[_0x1832db(0x108)],_0x11d8ea;return _0x29d892>=_0x4172e5?(_0x29d892=_0x4172e5,_0x11d8ea=0xc8):_0x11d8ea=0xce,_0x4e4de0[_0x1832db(0x171)](_0x11d8ea),_0x4e4de0[_0x1832db(0x12b)](_0x1832db(0x15f),_0x11c91c+'-'+_0x29d892+'/'+_0x4172e5)['json'](_0x169cb4);}return null;};}function saveUpdates(_0x17f822){return function(_0x584c4e){const _0x18054d=a938_0x3293;if(_0x584c4e)return _0x584c4e[_0x18054d(0x12d)](_0x17f822)[_0x18054d(0x166)](function(_0x4cccc0){return _0x4cccc0;});return null;};}function removeEntity(_0x32f80e){return function(_0x67b234){const _0x4693b5=a938_0x3293;if(_0x67b234)return _0x67b234[_0x4693b5(0x179)]()[_0x4693b5(0x166)](function(){const _0x421028=_0x4693b5,_0x2f580b=_0x67b234['get']({'plain':!![]}),_0x2538bd='WhatsappAccounts';return db[_0x421028(0xf8)][_0x421028(0x179)]({'where':{'type':_0x2538bd,'resourceId':_0x2f580b['id']}})[_0x421028(0x166)](function(){return _0x67b234;});})[_0x4693b5(0x166)](function(){_0x32f80e['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x37b5d3){return function(_0x550ffe){const _0x38782d=a938_0x3293;return!_0x550ffe&&_0x37b5d3[_0x38782d(0x158)](0x194),_0x550ffe;};}function handleError(_0x190438,_0x32ec9b){return _0x32ec9b=_0x32ec9b||0x1f4,function(_0x867340){const _0x3b2b62=a938_0x3293;logger['error'](_0x867340[_0x3b2b62(0xf5)]),_0x867340[_0x3b2b62(0xf9)]&&delete _0x867340[_0x3b2b62(0xf9)],_0x190438[_0x3b2b62(0x171)](_0x32ec9b)[_0x3b2b62(0x111)](_0x867340);};}exports[a938_0x251037(0x112)]=function(_0x4b5d4d,_0x1a81e5){const _0x107699=a938_0x251037;let _0xf56528={'include':[{'model':db['Pause'],'as':_0x107699(0x17b)}]};const _0x123c48={},_0x1a2c16={'count':0x0,'rows':[]},_0x18ccb6=_[_0x107699(0xfc)](db[_0x107699(0x168)][_0x107699(0x17d)],function(_0x4016bb){const _0x5d1086=_0x107699;return{'name':_0x4016bb['fieldName'],'type':_0x4016bb['type'][_0x5d1086(0x17e)]};});_0x123c48[_0x107699(0x12a)]=_[_0x107699(0xfc)](_0x18ccb6,_0x107699(0xf9)),_0x123c48[_0x107699(0x11b)]=_[_0x107699(0xee)](_0x4b5d4d[_0x107699(0x11b)]),_0x123c48['filters']=_['intersection'](_0x123c48[_0x107699(0x12a)],_0x123c48[_0x107699(0x11b)]),_0xf56528[_0x107699(0x16d)]=_[_0x107699(0xf4)](_0x123c48[_0x107699(0x12a)],qs[_0x107699(0x14c)](_0x4b5d4d[_0x107699(0x11b)][_0x107699(0x14c)])),_0xf56528[_0x107699(0x16d)]=_0xf56528[_0x107699(0x16d)]['length']?_0xf56528[_0x107699(0x16d)]:_0x123c48[_0x107699(0x12a)];typeof _0x4b5d4d['query'][_0x107699(0x150)]===_0x107699(0x15a)&&(_0xf56528[_0x107699(0x108)]=qs[_0x107699(0x108)](_0x4b5d4d['query'][_0x107699(0x108)]),_0xf56528[_0x107699(0x173)]=qs[_0x107699(0x173)](_0x4b5d4d[_0x107699(0x11b)][_0x107699(0x173)]));_0xf56528[_0x107699(0x13f)]=qs[_0x107699(0x146)](_0x4b5d4d['query']['sort']),_0xf56528[_0x107699(0x12c)]=qs['filters'](_['pick'](_0x4b5d4d[_0x107699(0x11b)],_0x123c48[_0x107699(0x130)]),_0x18ccb6);_0x4b5d4d[_0x107699(0x11b)][_0x107699(0x110)]&&(_0xf56528[_0x107699(0x12c)]=_[_0x107699(0x136)](_0xf56528['where'],{[Op['or']]:_[_0x107699(0xfc)](_0x18ccb6,function(_0x201112){const _0x42fc75=_0x107699;if(_0x201112[_0x42fc75(0x126)]!=='VIRTUAL'){const _0x531785={};return _0x531785[_0x201112[_0x42fc75(0xf9)]]={[Op[_0x42fc75(0x148)]]:'%'+_0x4b5d4d[_0x42fc75(0x11b)]['filter']+'%'},_0x531785;}})}));_0xf56528=_[_0x107699(0x136)]({},_0xf56528,_0x4b5d4d[_0x107699(0x169)]);const _0x127f1d={'where':_0xf56528[_0x107699(0x12c)]};return db[_0x107699(0x168)][_0x107699(0x142)](_0x127f1d)[_0x107699(0x166)](function(_0xb65bd5){const _0x3437a8=_0x107699;return _0x1a2c16['count']=_0xb65bd5,_0x4b5d4d[_0x3437a8(0x11b)]['includeAll']&&(_0xf56528[_0x3437a8(0x15e)]=[{'all':!![]}]),db[_0x3437a8(0x168)][_0x3437a8(0xfb)](_0xf56528);})[_0x107699(0x166)](function(_0x33fee0){return _0x1a2c16['rows']=_0x33fee0,_0x1a2c16;})[_0x107699(0x166)](respondWithFilteredResult(_0x1a81e5,_0xf56528))[_0x107699(0x165)](handleError(_0x1a81e5,null));},exports[a938_0x251037(0x16e)]=function(_0x449546,_0x312163){const _0x36172b=a938_0x251037;let _0xbf6459={'raw':![],'where':{'id':_0x449546[_0x36172b(0x16c)]['id']},'include':[{'model':db[_0x36172b(0x10f)],'as':_0x36172b(0x17b)}]};const _0x321255={};return _0x321255[_0x36172b(0x12a)]=_[_0x36172b(0xee)](db[_0x36172b(0x168)][_0x36172b(0x17d)]),_0x321255[_0x36172b(0x11b)]=_[_0x36172b(0xee)](_0x449546[_0x36172b(0x11b)]),_0x321255[_0x36172b(0x130)]=_[_0x36172b(0xf4)](_0x321255[_0x36172b(0x12a)],_0x321255[_0x36172b(0x11b)]),_0xbf6459[_0x36172b(0x16d)]=_[_0x36172b(0xf4)](_0x321255[_0x36172b(0x12a)],qs['fields'](_0x449546[_0x36172b(0x11b)][_0x36172b(0x14c)])),_0xbf6459[_0x36172b(0x16d)]=_0xbf6459[_0x36172b(0x16d)][_0x36172b(0x154)]?_0xbf6459[_0x36172b(0x16d)]:_0x321255[_0x36172b(0x12a)],_0x449546[_0x36172b(0x11b)][_0x36172b(0x167)]&&(_0xbf6459[_0x36172b(0x15e)]=[{'all':!![]}]),_0xbf6459=_['merge']({},_0xbf6459,_0x449546['options']),db[_0x36172b(0x168)]['findOne'](_0xbf6459)[_0x36172b(0x166)](handleEntityNotFound(_0x312163,null))[_0x36172b(0x166)](respondWithResult(_0x312163,null))[_0x36172b(0x165)](handleError(_0x312163,null));},exports['create']=function(_0x15e7fc,_0x18be84){const _0xe1b1b9=a938_0x251037;return db['WhatsappAccount'][_0xe1b1b9(0xf0)](_0x15e7fc[_0xe1b1b9(0x14b)],{})['then'](function(_0x4c1b60){const _0x303b69=_0xe1b1b9,_0x532153=_0x15e7fc['user'][_0x303b69(0x156)]({'plain':!![]});if(!_0x532153)throw new Error(_0x303b69(0x144));if(_0x532153[_0x303b69(0x127)]==='user'){const _0x52df4c=_0x4c1b60[_0x303b69(0x156)]({'plain':!![]}),_0x364a8='WhatsappAccounts';return db[_0x303b69(0x12f)]['findOne']({'where':{'name':_0x364a8,'userProfileId':_0x532153['userProfileId']},'raw':!![]})[_0x303b69(0x166)](function(_0x15c409){const _0x4e6168=_0x303b69;return _0x15c409&&_0x15c409[_0x4e6168(0x135)]===0x0?db[_0x4e6168(0xf8)][_0x4e6168(0xf0)]({'name':_0x52df4c[_0x4e6168(0xf9)],'resourceId':_0x52df4c['id'],'type':_0x15c409[_0x4e6168(0xf9)],'sectionId':_0x15c409['id']},{})[_0x4e6168(0x166)](function(){return _0x4c1b60;}):_0x4c1b60;})[_0x303b69(0x165)](function(_0x1e336d){const _0x59595c=_0x303b69;logger[_0x59595c(0x11f)](_0x59595c(0x118),_0x1e336d);throw _0x1e336d;});}return _0x4c1b60;})['then'](respondWithResult(_0x18be84,0xc9))['catch'](handleError(_0x18be84,null));},exports['update']=function(_0x4f2be9,_0x5d541f){const _0x5d0548=a938_0x251037;return _0x4f2be9[_0x5d0548(0x14b)]['id']&&delete _0x4f2be9['body']['id'],db[_0x5d0548(0x168)][_0x5d0548(0x13c)]({'where':{'id':_0x4f2be9[_0x5d0548(0x16c)]['id']},'include':[{'model':db[_0x5d0548(0x10f)],'as':_0x5d0548(0x17b)}]})[_0x5d0548(0x166)](handleEntityNotFound(_0x5d541f,null))[_0x5d0548(0x166)](saveUpdates(_0x4f2be9['body'],null))['then'](respondWithResult(_0x5d541f,null))[_0x5d0548(0x165)](handleError(_0x5d541f,null));},exports['destroy']=function(_0x151d8,_0x1d6578){const _0x27c819=a938_0x251037;return db[_0x27c819(0x168)][_0x27c819(0x13c)]({'where':{'id':_0x151d8[_0x27c819(0x16c)]['id']}})[_0x27c819(0x166)](handleEntityNotFound(_0x1d6578,null))[_0x27c819(0x166)](removeEntity(_0x1d6578,null))[_0x27c819(0x165)](handleError(_0x1d6578,null));},exports[a938_0x251037(0xfe)]=function(_0xca7ae1,_0x486901){const _0x437a5e=a938_0x251037;return db[_0x437a5e(0x168)][_0x437a5e(0xfe)]()[_0x437a5e(0x166)](respondWithResult(_0x486901,null))[_0x437a5e(0x165)](handleError(_0x486901,null));},exports[a938_0x251037(0x114)]=function(_0x55370e,_0x863c99){const _0x15c399=a938_0x251037;return _0x55370e[_0x15c399(0x14b)]['id']&&delete _0x55370e[_0x15c399(0x14b)]['id'],db[_0x15c399(0x168)][_0x15c399(0x13c)]({'where':{'id':_0x55370e['params']['id']}})[_0x15c399(0x166)](handleEntityNotFound(_0x863c99,null))['then'](function(_0x1ef7a6){const _0x4c8260=_0x15c399;if(_0x1ef7a6)return _0x55370e[_0x4c8260(0x14b)][_0x4c8260(0x170)]=_0x1ef7a6['id'],db['Disposition'][_0x4c8260(0xf0)](_0x55370e[_0x4c8260(0x14b)]);})[_0x15c399(0x166)](respondWithResult(_0x863c99,null))[_0x15c399(0x165)](handleError(_0x863c99,null));},exports[a938_0x251037(0x120)]=function(_0xa94fd6,_0x2f750f){const _0x37b69c=a938_0x251037;let _0x51a0ca={'raw':![],'where':{}};const _0x4b2f7e={},_0x5e3cc9={'count':0x0,'rows':[]};return db[_0x37b69c(0x168)][_0x37b69c(0x13c)]({'where':{'id':_0xa94fd6['params']['id']}})[_0x37b69c(0x166)](handleEntityNotFound(_0x2f750f,null))['then'](function(_0x36ba4c){const _0x3d6a0b=_0x37b69c;if(_0x36ba4c)return _0x4b2f7e[_0x3d6a0b(0x12a)]=_[_0x3d6a0b(0xee)](db[_0x3d6a0b(0x15d)][_0x3d6a0b(0x17d)]),_0x4b2f7e[_0x3d6a0b(0x11b)]=_['keys'](_0xa94fd6['query']),_0x4b2f7e[_0x3d6a0b(0x130)]=_['intersection'](_0x4b2f7e[_0x3d6a0b(0x12a)],_0x4b2f7e['query']),_0x51a0ca[_0x3d6a0b(0x16d)]=_[_0x3d6a0b(0xf4)](_0x4b2f7e[_0x3d6a0b(0x12a)],qs[_0x3d6a0b(0x14c)](_0xa94fd6[_0x3d6a0b(0x11b)][_0x3d6a0b(0x14c)])),_0x51a0ca[_0x3d6a0b(0x16d)]=_0x51a0ca[_0x3d6a0b(0x16d)][_0x3d6a0b(0x154)]?_0x51a0ca[_0x3d6a0b(0x16d)]:_0x4b2f7e['model'],typeof _0xa94fd6[_0x3d6a0b(0x11b)]['nolimit']===_0x3d6a0b(0x15a)&&(_0x51a0ca[_0x3d6a0b(0x108)]=qs['limit'](_0xa94fd6[_0x3d6a0b(0x11b)][_0x3d6a0b(0x108)]),_0x51a0ca[_0x3d6a0b(0x173)]=qs['offset'](_0xa94fd6[_0x3d6a0b(0x11b)][_0x3d6a0b(0x173)])),_0x51a0ca[_0x3d6a0b(0x13f)]=qs['sort'](_0xa94fd6[_0x3d6a0b(0x11b)][_0x3d6a0b(0x146)]),_0x51a0ca['where']=qs[_0x3d6a0b(0x130)](_[_0x3d6a0b(0xec)](_0xa94fd6[_0x3d6a0b(0x11b)],_0x4b2f7e[_0x3d6a0b(0x130)])),_0x51a0ca[_0x3d6a0b(0x12c)][_0x3d6a0b(0x170)]=_0x36ba4c['id'],_0xa94fd6[_0x3d6a0b(0x11b)][_0x3d6a0b(0x110)]&&(_0x51a0ca[_0x3d6a0b(0x12c)]=_[_0x3d6a0b(0x136)](_0x51a0ca[_0x3d6a0b(0x12c)],{[Op['or']]:_[_0x3d6a0b(0xfc)](_0x51a0ca[_0x3d6a0b(0x16d)],function(_0x5380b2){const _0x4b5db1=_0x3d6a0b,_0x534c3a={};return _0x534c3a[_0x5380b2]={[Op[_0x4b5db1(0x148)]]:'%'+_0xa94fd6[_0x4b5db1(0x11b)][_0x4b5db1(0x110)]+'%'},_0x534c3a;})})),_0x51a0ca=_['merge']({},_0x51a0ca,_0xa94fd6[_0x3d6a0b(0x169)]),db[_0x3d6a0b(0x15d)]['count']({'where':_0x51a0ca[_0x3d6a0b(0x12c)]})['then'](function(_0xa3f952){const _0x42d15f=_0x3d6a0b;return _0x5e3cc9['count']=_0xa3f952,_0xa94fd6[_0x42d15f(0x11b)][_0x42d15f(0x167)]&&(_0x51a0ca[_0x42d15f(0x15e)]=[{'all':!![]}]),db[_0x42d15f(0x15d)][_0x42d15f(0xfb)](_0x51a0ca);})[_0x3d6a0b(0x166)](function(_0x5bebbd){return _0x5e3cc9['rows']=_0x5bebbd,_0x5e3cc9;});})['then'](respondWithFilteredResult(_0x2f750f,_0x51a0ca))['catch'](handleError(_0x2f750f,null));},exports['removeDispositions']=function(_0x1b05ee,_0x39445f){const _0x33096d=a938_0x251037;return db[_0x33096d(0x168)]['findOne']({'where':{'id':_0x1b05ee[_0x33096d(0x16c)]['id']}})[_0x33096d(0x166)](handleEntityNotFound(_0x39445f,null))[_0x33096d(0x166)](function(_0x1ccdf9){const _0x4631c0=_0x33096d;if(_0x1ccdf9)return _0x1ccdf9['removeDispositions'](_0x1b05ee['query'][_0x4631c0(0x11e)]);})[_0x33096d(0x166)](respondWithStatusCode(_0x39445f,null))[_0x33096d(0x165)](handleError(_0x39445f,null));},exports[a938_0x251037(0x131)]=function(_0x3d438c,_0x558064){const _0x102d0d=a938_0x251037;return _0x3d438c[_0x102d0d(0x14b)]['id']&&delete _0x3d438c[_0x102d0d(0x14b)]['id'],db[_0x102d0d(0x168)]['findOne']({'where':{'id':_0x3d438c[_0x102d0d(0x16c)]['id']}})['then'](handleEntityNotFound(_0x558064,null))['then'](function(_0x3dad82){const _0xe2741e=_0x102d0d;if(_0x3dad82)return _0x3d438c[_0xe2741e(0x14b)][_0xe2741e(0x170)]=_0x3dad82['id'],db[_0xe2741e(0x159)]['create'](_0x3d438c[_0xe2741e(0x14b)]);})['then'](respondWithResult(_0x558064,null))[_0x102d0d(0x165)](handleError(_0x558064,null));},exports[a938_0x251037(0xeb)]=function(_0x478150,_0x462c7f){const _0x87bc59=a938_0x251037;let _0x394933={'raw':![],'where':{}};const _0x2e7d59={},_0xfcfdc8={'count':0x0,'rows':[]};return db[_0x87bc59(0x168)][_0x87bc59(0x13c)]({'where':{'id':_0x478150[_0x87bc59(0x16c)]['id']}})['then'](handleEntityNotFound(_0x462c7f,null))[_0x87bc59(0x166)](function(_0x1088f2){const _0x4cc255=_0x87bc59;if(_0x1088f2)return _0x2e7d59[_0x4cc255(0x12a)]=_[_0x4cc255(0xee)](db['CannedAnswer'][_0x4cc255(0x17d)]),_0x2e7d59['query']=_['keys'](_0x478150[_0x4cc255(0x11b)]),_0x2e7d59[_0x4cc255(0x130)]=_[_0x4cc255(0xf4)](_0x2e7d59[_0x4cc255(0x12a)],_0x2e7d59['query']),_0x394933[_0x4cc255(0x16d)]=_[_0x4cc255(0xf4)](_0x2e7d59[_0x4cc255(0x12a)],qs['fields'](_0x478150[_0x4cc255(0x11b)][_0x4cc255(0x14c)])),_0x394933[_0x4cc255(0x16d)]=_0x394933[_0x4cc255(0x16d)][_0x4cc255(0x154)]?_0x394933[_0x4cc255(0x16d)]:_0x2e7d59['model'],typeof _0x478150[_0x4cc255(0x11b)]['nolimit']===_0x4cc255(0x15a)&&(_0x394933[_0x4cc255(0x108)]=qs[_0x4cc255(0x108)](_0x478150['query'][_0x4cc255(0x108)]),_0x394933[_0x4cc255(0x173)]=qs[_0x4cc255(0x173)](_0x478150[_0x4cc255(0x11b)]['offset'])),_0x394933['order']=qs['sort'](_0x478150['query'][_0x4cc255(0x146)]),_0x394933['where']=qs[_0x4cc255(0x130)](_[_0x4cc255(0xec)](_0x478150['query'],_0x2e7d59[_0x4cc255(0x130)])),_0x394933[_0x4cc255(0x12c)][_0x4cc255(0x170)]=_0x1088f2['id'],_0x478150['query'][_0x4cc255(0x110)]&&(_0x394933['where']=_[_0x4cc255(0x136)](_0x394933[_0x4cc255(0x12c)],{[Op['or']]:_[_0x4cc255(0xfc)](_0x394933['attributes'],function(_0x2399a2){const _0x3eae76=_0x4cc255,_0x4fa028={};return _0x4fa028[_0x2399a2]={[Op[_0x3eae76(0x148)]]:'%'+_0x478150['query'][_0x3eae76(0x110)]+'%'},_0x4fa028;})})),_0x394933=_[_0x4cc255(0x136)]({},_0x394933,_0x478150['options']),db[_0x4cc255(0x159)]['count']({'where':_0x394933[_0x4cc255(0x12c)]})['then'](function(_0x2b2dcf){const _0x357962=_0x4cc255;return _0xfcfdc8[_0x357962(0x142)]=_0x2b2dcf,_0x478150[_0x357962(0x11b)][_0x357962(0x167)]&&(_0x394933[_0x357962(0x15e)]=[{'all':!![]}]),db['CannedAnswer'][_0x357962(0xfb)](_0x394933);})['then'](function(_0x539f86){const _0x2ffdd5=_0x4cc255;return _0xfcfdc8[_0x2ffdd5(0x138)]=_0x539f86,_0xfcfdc8;});})[_0x87bc59(0x166)](respondWithFilteredResult(_0x462c7f,_0x394933))[_0x87bc59(0x165)](handleError(_0x462c7f,null));},exports[a938_0x251037(0x134)]=function(_0x1f3c09,_0x22aa3c){const _0x4675c5=a938_0x251037;return db[_0x4675c5(0x168)][_0x4675c5(0x13c)]({'where':{'id':_0x1f3c09[_0x4675c5(0x16c)]['id']}})['then'](handleEntityNotFound(_0x22aa3c,null))[_0x4675c5(0x166)](function(_0x48efaf){const _0x409b9e=_0x4675c5;if(_0x48efaf)return _0x48efaf[_0x409b9e(0x134)](_0x1f3c09[_0x409b9e(0x11b)][_0x409b9e(0x11e)]);})[_0x4675c5(0x166)](respondWithStatusCode(_0x22aa3c,null))[_0x4675c5(0x165)](handleError(_0x22aa3c,null));},exports[a938_0x251037(0x16a)]=function(_0x24a656,_0x46ad5b){const _0x4b3e29=a938_0x251037;return db['WhatsappAccount'][_0x4b3e29(0x13c)]({'where':{'id':_0x24a656[_0x4b3e29(0x16c)]['id']}})['then'](function(_0x1fb96e){const _0x4e27b1=_0x4b3e29;if(_0x1fb96e)return _0x1fb96e[_0x4e27b1(0x16a)](_0x24a656['body'][_0x4e27b1(0x11e)],{'through':_[_0x4e27b1(0x104)](_0x24a656[_0x4e27b1(0x14b)],[_0x4e27b1(0x11e),'id'])})[_0x4e27b1(0x166)](function(_0x2efc45){const _0x65a079=_0x4e27b1;for(let _0x12ce80=0x0;_0x12ce80<_0x24a656['body'][_0x65a079(0x11e)]['length'];_0x12ce80+=0x1){socket[_0x65a079(0x15c)]('userWhatsappAccount:save',{'UserId':_0x24a656['body']['ids'][_0x12ce80],'WhatsappAccountId':_0x24a656['params']['id']});}return _0x2efc45;});})[_0x4b3e29(0x166)](respondWithResult(_0x46ad5b,null))[_0x4b3e29(0x165)](handleError(_0x46ad5b,null));},exports[a938_0x251037(0x13b)]=function(_0x1e536c,_0x22eceb){const _0x167819=a938_0x251037;return db['WhatsappAccount'][_0x167819(0x13c)]({'where':{'id':_0x1e536c[_0x167819(0x16c)]['id']}})[_0x167819(0x166)](handleEntityNotFound(_0x22eceb,null))['then'](function(_0x2408d3){const _0x5b967d=_0x167819;if(_0x2408d3)return _0x2408d3['removeAgents'](_0x1e536c['query'][_0x5b967d(0x11e)])[_0x5b967d(0x166)](function(){const _0x463d56=_0x5b967d;if(_['isArray'](_0x1e536c[_0x463d56(0x11b)][_0x463d56(0x11e)]))for(let _0x10f767=0x0;_0x10f767<_0x1e536c['query'][_0x463d56(0x11e)][_0x463d56(0x154)];_0x10f767+=0x1){socket[_0x463d56(0x15c)](_0x463d56(0x155),{'UserId':Number(_0x1e536c['query']['ids'][_0x10f767]),'WhatsappAccountId':Number(_0x1e536c[_0x463d56(0x16c)]['id'])});}else socket[_0x463d56(0x15c)](_0x463d56(0x155),{'UserId':Number(_0x1e536c[_0x463d56(0x11b)]['ids']),'WhatsappAccountId':Number(_0x1e536c[_0x463d56(0x16c)]['id'])});});})['then'](respondWithStatusCode(_0x22eceb,null))[_0x167819(0x165)](handleError(_0x22eceb,null));},exports[a938_0x251037(0xf6)]=function(_0x79a190,_0x3a0a3c){const _0x2b0253=a938_0x251037;let _0x55a76d={};const _0x3cd75d={};let _0x2d3047,_0x5e1309;return db[_0x2b0253(0x168)][_0x2b0253(0x13c)]({'where':{'id':_0x79a190['params']['id']}})[_0x2b0253(0x166)](handleEntityNotFound(_0x3a0a3c,null))['then'](function(_0x34934d){const _0x45d5d1=_0x2b0253;if(_0x34934d)return _0x2d3047=_0x34934d,_0x3cd75d[_0x45d5d1(0x12a)]=_[_0x45d5d1(0xee)](db['User'][_0x45d5d1(0x17d)]),_0x3cd75d[_0x45d5d1(0x11b)]=_['keys'](_0x79a190['query']),_0x3cd75d[_0x45d5d1(0x130)]=_[_0x45d5d1(0xf4)](_0x3cd75d[_0x45d5d1(0x12a)],_0x3cd75d['query']),_0x55a76d['attributes']=_['intersection'](_0x3cd75d['model'],qs[_0x45d5d1(0x14c)](_0x79a190['query']['fields'])),_0x55a76d[_0x45d5d1(0x16d)]=_0x55a76d[_0x45d5d1(0x16d)][_0x45d5d1(0x154)]?_0x55a76d[_0x45d5d1(0x16d)]:_0x3cd75d['model'],_0x55a76d[_0x45d5d1(0x13f)]=qs['sort'](_0x79a190[_0x45d5d1(0x11b)][_0x45d5d1(0x146)]),_0x55a76d[_0x45d5d1(0x12c)]=qs[_0x45d5d1(0x130)](_[_0x45d5d1(0xec)](_0x79a190[_0x45d5d1(0x11b)],_0x3cd75d[_0x45d5d1(0x130)])),_0x79a190['query']['filter']&&(_0x55a76d[_0x45d5d1(0x12c)]=_[_0x45d5d1(0x136)](_0x55a76d[_0x45d5d1(0x12c)],{[Op['or']]:_['map'](_0x55a76d[_0x45d5d1(0x16d)],function(_0x36b048){const _0x3091ea=_0x45d5d1,_0x3ae13c={};return _0x3ae13c[_0x36b048]={[Op[_0x3091ea(0x148)]]:'%'+_0x79a190[_0x3091ea(0x11b)][_0x3091ea(0x110)]+'%'},_0x3ae13c;})})),_0x55a76d=_['merge']({},_0x55a76d,_0x79a190[_0x45d5d1(0x169)]),_0x2d3047['getAgents'](_0x55a76d);})[_0x2b0253(0x166)](function(_0x320814){const _0x2c4f63=_0x2b0253;if(_0x320814)return _0x5e1309=_0x320814[_0x2c4f63(0x154)],typeof _0x79a190[_0x2c4f63(0x11b)][_0x2c4f63(0x150)]==='undefined'&&(_0x55a76d[_0x2c4f63(0x108)]=qs[_0x2c4f63(0x108)](_0x79a190[_0x2c4f63(0x11b)][_0x2c4f63(0x108)]),_0x55a76d[_0x2c4f63(0x173)]=qs[_0x2c4f63(0x173)](_0x79a190[_0x2c4f63(0x11b)]['offset'])),_0x2d3047[_0x2c4f63(0xf6)](_0x55a76d);})[_0x2b0253(0x166)](function(_0x447e91){if(_0x447e91)return _0x447e91?{'count':_0x5e1309,'rows':_0x447e91}:null;})[_0x2b0253(0x166)](respondWithResult(_0x3a0a3c,null))[_0x2b0253(0x165)](handleError(_0x3a0a3c,null));},exports['addApplications']=function(_0x12a49f,_0x53a6b5){const _0x438429=a938_0x251037;return db['WhatsappAccount'][_0x438429(0x13c)]({'where':{'id':_0x12a49f[_0x438429(0x16c)]['id']}})[_0x438429(0x166)](handleEntityNotFound(_0x53a6b5,null))['then'](function(_0xc62c16){const _0x38e682=_0x438429;if(_0xc62c16)return db[_0x38e682(0x13e)]['transaction'](function(_0x1d3fa4){const _0x3a6779=_0x38e682;return db[_0x3a6779(0x141)][_0x3a6779(0x179)]({'where':{'WhatsappAccountId':_0x12a49f['params']['id']},'transaction':_0x1d3fa4})['then'](function(){const _0x11cfae=_0x3a6779,_0x42df59=_[_0x11cfae(0xfc)](_0x12a49f[_0x11cfae(0x14b)],function(_0x54f6f9){const _0x2eba2c=_0x11cfae;return _0x54f6f9[_0x2eba2c(0x170)]=_0x12a49f[_0x2eba2c(0x16c)]['id'],_0x54f6f9;});return db[_0x11cfae(0x141)]['bulkCreate'](_0x42df59,{'transaction':_0x1d3fa4});});})['then'](function(){const _0x19e669=_0x38e682;return db[_0x19e669(0x141)][_0x19e669(0x174)]({'where':{'WhatsappAccountId':_0x12a49f['params']['id']},'order':_0x19e669(0x178)});});})[_0x438429(0x166)](respondWithResult(_0x53a6b5,null))[_0x438429(0x165)](handleError(_0x53a6b5,null));},exports[a938_0x251037(0x11a)]=function(_0x1d4407,_0x1eb957){const _0x621dad=a938_0x251037;let _0x18cf64={};const _0x26feb3={};let _0x1c9447,_0x540976;return db[_0x621dad(0x168)][_0x621dad(0x13c)]({'where':{'id':_0x1d4407['params']['id']}})[_0x621dad(0x166)](handleEntityNotFound(_0x1eb957,null))[_0x621dad(0x166)](function(_0x46b91e){const _0x5dd35d=_0x621dad;if(_0x46b91e)return _0x1c9447=_0x46b91e,_0x26feb3['model']=_[_0x5dd35d(0xee)](db[_0x5dd35d(0x141)][_0x5dd35d(0x17d)]),_0x26feb3[_0x5dd35d(0x11b)]=_[_0x5dd35d(0xee)](_0x1d4407[_0x5dd35d(0x11b)]),_0x26feb3['filters']=_[_0x5dd35d(0xf4)](_0x26feb3[_0x5dd35d(0x12a)],_0x26feb3[_0x5dd35d(0x11b)]),_0x18cf64[_0x5dd35d(0x16d)]=_[_0x5dd35d(0xf4)](_0x26feb3[_0x5dd35d(0x12a)],qs[_0x5dd35d(0x14c)](_0x1d4407['query'][_0x5dd35d(0x14c)])),_0x18cf64[_0x5dd35d(0x16d)]=_0x18cf64[_0x5dd35d(0x16d)][_0x5dd35d(0x154)]?_0x18cf64[_0x5dd35d(0x16d)]:_0x26feb3[_0x5dd35d(0x12a)],_0x18cf64[_0x5dd35d(0x13f)]=qs[_0x5dd35d(0x146)](_0x1d4407[_0x5dd35d(0x11b)][_0x5dd35d(0x146)]),_0x18cf64[_0x5dd35d(0x12c)]=qs['filters'](_[_0x5dd35d(0xec)](_0x1d4407[_0x5dd35d(0x11b)],_0x26feb3[_0x5dd35d(0x130)])),_0x1d4407['query'][_0x5dd35d(0x110)]&&(_0x18cf64['where']=_[_0x5dd35d(0x136)](_0x18cf64[_0x5dd35d(0x12c)],{[Op['or']]:_['map'](_0x18cf64['attributes'],function(_0x4515d4){const _0x2e5fba=_0x5dd35d,_0x15db29={};return _0x15db29[_0x4515d4]={[Op[_0x2e5fba(0x148)]]:'%'+_0x1d4407[_0x2e5fba(0x11b)][_0x2e5fba(0x110)]+'%'},_0x15db29;})})),_0x18cf64=_[_0x5dd35d(0x136)]({},_0x18cf64,_0x1d4407['options']),_0x1c9447[_0x5dd35d(0x11a)](_0x18cf64);})['then'](function(_0x5699b7){const _0xec6b72=_0x621dad;if(_0x5699b7)return _0x540976=_0x5699b7[_0xec6b72(0x154)],typeof _0x1d4407[_0xec6b72(0x11b)][_0xec6b72(0x150)]===_0xec6b72(0x15a)&&(_0x18cf64[_0xec6b72(0x108)]=qs[_0xec6b72(0x108)](_0x1d4407['query'][_0xec6b72(0x108)]),_0x18cf64['offset']=qs['offset'](_0x1d4407[_0xec6b72(0x11b)]['offset'])),_0x1c9447[_0xec6b72(0x11a)](_0x18cf64);})[_0x621dad(0x166)](function(_0x17dfa7){if(_0x17dfa7)return _0x17dfa7?{'count':_0x540976,'rows':_0x17dfa7}:null;})[_0x621dad(0x166)](respondWithResult(_0x1eb957,null))[_0x621dad(0x165)](handleError(_0x1eb957,null));},exports[a938_0x251037(0xfd)]=function(_0x217617,_0xd6ff98){const _0x4c0662=a938_0x251037,_0x3c6917={'channel':'whatsapp'};let _0x284dd0=[],_0x4606c5=[];const _0x28af1e={};return db['WhatsappAccount'][_0x4c0662(0x13c)]({'where':{'id':_0x217617['params']['id']},'include':[{'model':db[_0x4c0662(0x141)],'as':_0x4c0662(0x129)}]})[_0x4c0662(0x166)](handleEntityNotFound(_0xd6ff98,null))[_0x4c0662(0x166)](function(_0xa709a3){const _0x460dc9=_0x4c0662;return _0x3c6917[_0x460dc9(0x17f)]=_0xa709a3,_0x3c6917[_0x460dc9(0xf1)]=_[_0x460dc9(0xf2)](_0xa709a3[_0x460dc9(0x129)],['priority'],[_0x460dc9(0x115)]),_0x3c6917['account']['Applications']&&delete _0x3c6917[_0x460dc9(0x17f)][_0x460dc9(0x129)],db[_0x460dc9(0x10e)][_0x460dc9(0xfe)]();})[_0x4c0662(0x166)](function(_0x1b23db){const _0x40f9bb=_0x4c0662;if(!_0x1b23db)throw new ValidationError(_0x40f9bb(0x11d));_0x284dd0=_[_0x40f9bb(0x122)](_[_0x40f9bb(0xee)](_0x1b23db),['createdAt',_0x40f9bb(0xed)]),_0x4606c5=_[_0x40f9bb(0x122)](_[_0x40f9bb(0xee)](_0x1b23db),['createdAt',_0x40f9bb(0xed),'CompanyId',_0x40f9bb(0x10c)]),_0x3c6917['body']={'mapKey':'mobile'};_0x3c6917[_0x40f9bb(0x17f)][_0x40f9bb(0x126)]&&_0x3c6917[_0x40f9bb(0x17f)]['type']===_0x40f9bb(0x16b)&&(_0x3c6917['body'][_0x40f9bb(0x121)]=_0x217617['body'][_0x40f9bb(0x132)][_0x40f9bb(0x105)](_0x40f9bb(0xef),''),_0x3c6917[_0x40f9bb(0x14b)][_0x40f9bb(0x14b)]=_0x217617[_0x40f9bb(0x14b)]['Body'],_0x3c6917[_0x40f9bb(0x14b)][_0x40f9bb(0x157)]=_0x217617[_0x40f9bb(0x14b)][_0x40f9bb(0x139)]);_0x3c6917[_0x40f9bb(0x14b)]['id']&&delete _0x3c6917[_0x40f9bb(0x14b)]['id'];if(_[_0x40f9bb(0x14a)](_0x3c6917[_0x40f9bb(0x14b)]['from']))throw new ValidationError(_0x40f9bb(0x164));if(_[_0x40f9bb(0x14a)](_0x3c6917[_0x40f9bb(0x14b)][_0x40f9bb(0x14b)])||_0x3c6917['body'][_0x40f9bb(0x14b)]==='')throw new ValidationError(_0x40f9bb(0x116));if(_[_0x40f9bb(0x14a)](_0x3c6917[_0x40f9bb(0x14b)][_0x40f9bb(0x123)]))throw new ValidationError(_0x40f9bb(0x106)+_0x4606c5);if(!_[_0x40f9bb(0x140)](_0x4606c5,_0x3c6917[_0x40f9bb(0x14b)][_0x40f9bb(0x123)]))throw new ValidationError(_0x40f9bb(0x147)+_0x4606c5);return _0x28af1e[_0x3c6917[_0x40f9bb(0x14b)][_0x40f9bb(0x123)]]=_0x3c6917[_0x40f9bb(0x14b)][_0x40f9bb(0x121)],db[_0x40f9bb(0x10b)][_0x40f9bb(0x13c)]({'where':{'id':_0x3c6917[_0x40f9bb(0x17f)]['ListId']},'include':[{'model':db[_0x40f9bb(0x10e)],'as':_0x40f9bb(0x124),'where':_0x28af1e,'limit':0x1,'order':[[_0x40f9bb(0xed),'DESC']]}]});})[_0x4c0662(0x166)](handleEntityNotFound(_0xd6ff98,null))[_0x4c0662(0x166)](function(_0x2b6e4b){const _0x218b91=_0x4c0662;if(_0x2b6e4b){_0x3c6917[_0x218b91(0xf3)]=_[_0x218b91(0x104)](_0x2b6e4b,[_0x218b91(0x124)]);if(_0x2b6e4b[_0x218b91(0x124)][_0x218b91(0x154)])return _0x2b6e4b[_0x218b91(0x124)][0x0];const _0x348b6b=_['defaults'](_0x3c6917[_0x218b91(0x14b)],{'firstName':_0x3c6917[_0x218b91(0x14b)]['from'],'ListId':_0x2b6e4b['id']});return _0x348b6b[_0x3c6917[_0x218b91(0x14b)]['mapKey']]=_0x3c6917[_0x218b91(0x14b)]['from'],db[_0x218b91(0x10e)][_0x218b91(0xf0)](_0x348b6b,{'fields':_0x284dd0,'raw':!![]});}})[_0x4c0662(0x166)](handleEntityNotFound(_0xd6ff98,null))['then'](function(_0x400b2f){const _0x4c57d8=_0x4c0662;if(_0x400b2f){_0x3c6917['contact']=_0x400b2f;const _0x31fea2={'ContactId':_0x400b2f['id'],'phone':_0x3c6917['body'][_0x4c57d8(0x121)],'WhatsappAccountId':_0x217617['params']['id']},_0x2fd404={'ContactId':_0x400b2f['id'],'WhatsappAccountId':_0x217617[_0x4c57d8(0x16c)]['id'],'closed':![]};return db['WhatsappInteraction'][_0x4c57d8(0x13c)]({'where':_0x2fd404})[_0x4c57d8(0x166)](function(_0x7a747d){const _0x4358f5=_0x4c57d8;if(_0x7a747d)return[_0x7a747d,![]];return db[_0x4358f5(0x12e)]['create'](_0x31fea2)[_0x4358f5(0x166)](function(_0x51300c){return[_0x51300c,!![]];});});}})['then'](function([_0x5d2fcf,_0x2f170c]){const _0x4490aa=_0x4c0662;return _0x3c6917[_0x4490aa(0x15b)]=_0x5d2fcf['get']({'plain':!![]}),_0x3c6917[_0x4490aa(0x15b)]['created']=![],_0x2f170c&&(_0x3c6917[_0x4490aa(0x17f)]['autoclose']&&_0x3c6917[_0x4490aa(0xf1)][_0x4490aa(0x14d)]({'id':0x0,'priority':_0x3c6917['applications']['length']+0x1,'app':_0x4490aa(0x149),'appdata':'unmanaged','interval':_0x4490aa(0x10a)}),_0x3c6917[_0x4490aa(0x15b)][_0x4490aa(0x102)]=!![]),db[_0x4490aa(0x133)][_0x4490aa(0xf0)]({'phone':_0x3c6917[_0x4490aa(0x14b)][_0x4490aa(0x121)],'messageId':_0x3c6917['body'][_0x4490aa(0x157)],'body':_0x3c6917[_0x4490aa(0x14b)][_0x4490aa(0x14b)],'WhatsappAccountId':_0x217617['params']['id'],'WhatsappInteractionId':_0x5d2fcf['id'],'direction':'in','ContactId':_0x5d2fcf[_0x4490aa(0x163)],'AttachmentId':_0x3c6917[_0x4490aa(0x14b)][_0x4490aa(0x101)]});})[_0x4c0662(0x166)](function(_0x381cb0){const _0x28079a=_0x4c0662;_0x3c6917[_0x28079a(0x13a)]=_0x381cb0;if(_0x3c6917[_0x28079a(0x15b)][_0x28079a(0x117)])return db[_0x28079a(0xff)][_0x28079a(0x13c)]({'attributes':['id','name'],'where':{'id':_0x3c6917[_0x28079a(0x15b)]['UserId']}})[_0x28079a(0x166)](function(_0x1ee337){const _0x3663fe=_0x28079a;return _0x1ee337&&_0x3c6917[_0x3663fe(0xf1)]['unshift']({'id':0x0,'priority':0x0,'app':'agent','appdata':_0x1ee337[_0x3663fe(0xf9)]+','+(_0x3c6917['account'][_0x3663fe(0xea)]||0xa),'interval':'*,*,*,*'}),respondWithRpcPromise('Start',_0x3663fe(0x176),_0x3c6917);});return respondWithRpcPromise(_0x28079a(0x143),_0x28079a(0x176),_0x3c6917);})['then'](function(_0x466923){const _0x311a8e=_0x4c0662;if(_0x466923){const _0x4c3836=0xc8,_0x5078a8='receiveMessage';return logger[_0x311a8e(0x113)](_0x311a8e(0x16f),_0x5078a8,_0x4c3836,_0x311a8e(0x100)),logger[_0x311a8e(0x10d)](_0x311a8e(0x137),_0x5078a8,_0x4c3836,_0x311a8e(0x100),JSON[_0x311a8e(0x109)](_0x466923)),_0x3c6917['account'][_0x311a8e(0x126)]===_0x311a8e(0x16b)?_0xd6ff98[_0x311a8e(0x171)](_0x4c3836)['set'](_0x311a8e(0x107),_0x311a8e(0x160))['send']('\x0a'):_0xd6ff98[_0x311a8e(0x171)](_0x4c3836)['json'](_0x466923);}})[_0x4c0662(0x165)](handleError(_0xd6ff98,null));},exports['send']=function(_0x56011,_0x5c2d91){const _0xf33da1=a938_0x251037;let _0x136737,_0x4755aa;if(_[_0xf33da1(0x14a)](_0x56011[_0xf33da1(0x14b)][_0xf33da1(0x14b)])||_0x56011[_0xf33da1(0x14b)][_0xf33da1(0x14b)]==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0xf33da1(0x14a)](_0x56011[_0xf33da1(0x14b)]['to']))throw new ValidationError('to\x20is\x20mandatory');const _0x58fb46=_0x56011[_0xf33da1(0x14b)]['to'];return db[_0xf33da1(0x168)]['findOne']({'where':{'id':_0x56011[_0xf33da1(0x16c)]['id']},'include':[{'model':db[_0xf33da1(0x10b)],'as':'List','include':[{'model':db['CmContact'],'as':_0xf33da1(0x124),'where':{'mobile':_0x58fb46},'limit':0x1,'order':[[_0xf33da1(0xed),_0xf33da1(0x172)]]}]}]})['then'](handleEntityNotFound(_0x5c2d91,null))['then'](function(_0x5e96cb){const _0x3b4bf7=_0xf33da1;if(_0x5e96cb&&_0x5e96cb[_0x3b4bf7(0xf7)]){_0x136737=_0x5e96cb[_0x3b4bf7(0x156)]({'plain':!![]});if(_0x136737['List']&&_0x136737[_0x3b4bf7(0xf7)][_0x3b4bf7(0x124)][_0x3b4bf7(0x154)])return _0x136737['List'][_0x3b4bf7(0x124)][0x0];return db['CmContact'][_0x3b4bf7(0xf0)](_[_0x3b4bf7(0x103)](_0x56011[_0x3b4bf7(0x14b)],{'firstName':_0x58fb46,'mobile':_0x58fb46,'phone':_0x58fb46,'ListId':_0x136737[_0x3b4bf7(0x10c)]}));}})[_0xf33da1(0x166)](handleEntityNotFound(_0x5c2d91,null))[_0xf33da1(0x166)](function(_0x5f52f5){const _0x42866f=_0xf33da1;if(_0x5f52f5)return _0x4755aa=_0x5f52f5,db[_0x42866f(0x12e)][_0x42866f(0x13c)]({'where':{'ContactId':_0x4755aa['id'],'closed':![],'WhatsappAccountId':_0x136737['id']}})['then'](function(_0x321eac){const _0x24cec4=_0x42866f;if(_0x321eac)return[_0x321eac,![]];return db['WhatsappInteraction'][_0x24cec4(0xf0)]({'UserId':_0x56011[_0x24cec4(0x151)]['id'],'ContactId':_0x4755aa['id'],'WhatsappAccountId':_0x136737['id'],'phone':_0x58fb46,'firstMsgDirection':_0x24cec4(0x153),'Messages':[_[_0x24cec4(0x136)](_0x56011[_0x24cec4(0x14b)],{'read':![],'body':_0x56011[_0x24cec4(0x14b)][_0x24cec4(0x14b)],'phone':_0x58fb46,'WhatsappAccountId':_0x136737['id'],'UserId':_0x56011[_0x24cec4(0x151)]['id'],'ContactId':_0x4755aa['id']})]},{'include':[{'model':db[_0x24cec4(0x133)],'as':_0x24cec4(0x175)}]})['then'](function(_0x2d742){return[_0x2d742,!![]];});});})[_0xf33da1(0x166)](function([_0x597046,_0x5593b0]){const _0xe8422d=_0xf33da1;if(_0x5593b0)return _0x597046;return db[_0xe8422d(0x133)][_0xe8422d(0xf0)](_[_0xe8422d(0x136)](_0x56011[_0xe8422d(0x14b)],{'read':![],'body':_0x56011[_0xe8422d(0x14b)][_0xe8422d(0x14b)],'phone':_0x58fb46,'WhatsappAccountId':_0x136737['id'],'WhatsappInteractionId':_0x597046['id'],'UserId':_0x56011[_0xe8422d(0x151)]['id'],'ContactId':_0x4755aa['id']}))[_0xe8422d(0x166)](function(_0x531085){const _0x3ce970=_0xe8422d;return _0x597046['dataValues']['Messages']=[],_0x597046[_0x3ce970(0x152)][_0x3ce970(0x175)][_0x3ce970(0x14d)](_0x531085['dataValues']),_0x597046;});})['then'](respondWithResult(_0x5c2d91,null))[_0xf33da1(0x165)](handleError(_0x5c2d91,null));}; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.events.js b/server/api/whatsappAccount/whatsappAccount.events.js index 6a1c753..98e115e 100644 --- a/server/api/whatsappAccount/whatsappAccount.events.js +++ b/server/api/whatsappAccount/whatsappAccount.events.js @@ -1 +1 @@ -const a939_0xdd15=['emit','exports','update','setMaxListeners','save','undefined','WhatsappAccount'];(function(_0x157aa3,_0x3f2d3e){const _0xdd150c=function(_0x26340a){while(--_0x26340a){_0x157aa3['push'](_0x157aa3['shift']());}};_0xdd150c(++_0x3f2d3e);}(a939_0xdd15,0x1b8));const a939_0x2634=function(_0x157aa3,_0x3f2d3e){_0x157aa3=_0x157aa3-0x1dd;let _0xdd150c=a939_0xdd15[_0x157aa3];return _0xdd150c;};const a939_0x36977b=a939_0x2634;'use strict';const EventEmitter=require('events'),WhatsappAccount=require('../../mysqldb')['db'][a939_0x36977b(0x1dd)],WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[a939_0x36977b(0x1e1)](0x0);const events={'afterCreate':a939_0x36977b(0x1e2),'afterUpdate':a939_0x36977b(0x1e0),'afterDestroy':'remove'};function emitEvent(_0x3defa4){return function(_0x49d5bf){const _0x5cb8ec=a939_0x2634;WhatsappAccountEvents[_0x5cb8ec(0x1de)](_0x3defa4+':'+_0x49d5bf['id'],_0x49d5bf),WhatsappAccountEvents[_0x5cb8ec(0x1de)](_0x3defa4,_0x49d5bf);};}for(const e in events){if(typeof events[e]!==a939_0x36977b(0x1e3)){const event=events[e];WhatsappAccount['addHook'](e,emitEvent(event));}}module[a939_0x36977b(0x1df)]=WhatsappAccountEvents; \ No newline at end of file +const a939_0x25c8=['exports','WhatsappAccount','remove','addHook','update','events','undefined','../../mysqldb','setMaxListeners','save','emit'];(function(_0x1f9b78,_0x1ce5c2){const _0x25c889=function(_0x267acb){while(--_0x267acb){_0x1f9b78['push'](_0x1f9b78['shift']());}};_0x25c889(++_0x1ce5c2);}(a939_0x25c8,0x1a6));const a939_0x267a=function(_0x1f9b78,_0x1ce5c2){_0x1f9b78=_0x1f9b78-0x11c;let _0x25c889=a939_0x25c8[_0x1f9b78];return _0x25c889;};const a939_0x5a005d=a939_0x267a;'use strict';const EventEmitter=require(a939_0x5a005d(0x11d)),WhatsappAccount=require(a939_0x5a005d(0x11f))['db'][a939_0x5a005d(0x124)],WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[a939_0x5a005d(0x120)](0x0);const events={'afterCreate':a939_0x5a005d(0x121),'afterUpdate':a939_0x5a005d(0x11c),'afterDestroy':a939_0x5a005d(0x125)};function emitEvent(_0x3073f0){return function(_0x48daab){const _0x49a6e9=a939_0x267a;WhatsappAccountEvents['emit'](_0x3073f0+':'+_0x48daab['id'],_0x48daab),WhatsappAccountEvents[_0x49a6e9(0x122)](_0x3073f0,_0x48daab);};}for(const e in events){if(typeof events[e]!==a939_0x5a005d(0x11e)){const event=events[e];WhatsappAccount[a939_0x5a005d(0x126)](e,emitEvent(event));}}module[a939_0x5a005d(0x123)]=WhatsappAccountEvents; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.model.js b/server/api/whatsappAccount/whatsappAccount.model.js index 0909333..f24b0f4 100644 --- a/server/api/whatsappAccount/whatsappAccount.model.js +++ b/server/api/whatsappAccount/whatsappAccount.model.js @@ -1 +1 @@ -const a940_0x4f5f=['./whatsappAccount.attributes','init','./whatsappAccount.options','exports','function','WhatsappAccount','sequelize'];(function(_0x6b31d8,_0x152904){const _0x4f5f66=function(_0x4f2a6a){while(--_0x4f2a6a){_0x6b31d8['push'](_0x6b31d8['shift']());}};_0x4f5f66(++_0x152904);}(a940_0x4f5f,0x69));const a940_0x4f2a=function(_0x6b31d8,_0x152904){_0x6b31d8=_0x6b31d8-0x135;let _0x4f5f66=a940_0x4f5f[_0x6b31d8];return _0x4f5f66;};const a940_0xc151d6=a940_0x4f2a;'use strict';const {Model}=require(a940_0xc151d6(0x13b)),{attributes}=require(a940_0xc151d6(0x135)),{options}=require(a940_0xc151d6(0x137));class WhatsappAccount extends Model{}function init(_0x531266,_0x30b4c3){const _0x1a2558=a940_0xc151d6,_0x5d76d0=options(_0x531266),_0x3cf611=typeof _0x30b4c3===_0x1a2558(0x139)?_0x30b4c3(_0x5d76d0):_0x5d76d0;return WhatsappAccount[_0x1a2558(0x136)](attributes,_0x3cf611),WhatsappAccount;}module[a940_0xc151d6(0x138)][a940_0xc151d6(0x13a)]=WhatsappAccount,module[a940_0xc151d6(0x138)][a940_0xc151d6(0x136)]=init; \ No newline at end of file +const a940_0x5a63=['./whatsappAccount.options','exports','function','WhatsappAccount','init','./whatsappAccount.attributes'];(function(_0x3aeb7a,_0x353b59){const _0x5a6370=function(_0x1f5002){while(--_0x1f5002){_0x3aeb7a['push'](_0x3aeb7a['shift']());}};_0x5a6370(++_0x353b59);}(a940_0x5a63,0x164));const a940_0x1f50=function(_0x3aeb7a,_0x353b59){_0x3aeb7a=_0x3aeb7a-0xfa;let _0x5a6370=a940_0x5a63[_0x3aeb7a];return _0x5a6370;};const a940_0x5955cc=a940_0x1f50;'use strict';const {Model}=require('sequelize'),{attributes}=require(a940_0x5955cc(0xfd)),{options}=require(a940_0x5955cc(0xfe));class WhatsappAccount extends Model{}function init(_0x13b25a,_0x47776f){const _0x113fe0=a940_0x5955cc,_0x3684b7=options(_0x13b25a),_0x16de4c=typeof _0x47776f===_0x113fe0(0xfa)?_0x47776f(_0x3684b7):_0x3684b7;return WhatsappAccount[_0x113fe0(0xfc)](attributes,_0x16de4c),WhatsappAccount;}module[a940_0x5955cc(0xff)][a940_0x5955cc(0xfb)]=WhatsappAccount,module['exports'][a940_0x5955cc(0xfc)]=init; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.options.js b/server/api/whatsappAccount/whatsappAccount.options.js index ace5c66..d021ddc 100644 --- a/server/api/whatsappAccount/whatsappAccount.options.js +++ b/server/api/whatsappAccount/whatsappAccount.options.js @@ -1 +1 @@ -var a941_0x559d=['options','whatsapp_accounts'];(function(_0x19cf92,_0x349a71){var _0x559dd3=function(_0x368f78){while(--_0x368f78){_0x19cf92['push'](_0x19cf92['shift']());}};_0x559dd3(++_0x349a71);}(a941_0x559d,0x165));var a941_0x368f=function(_0x19cf92,_0x349a71){_0x19cf92=_0x19cf92-0xb1;var _0x559dd3=a941_0x559d[_0x19cf92];return _0x559dd3;};var a941_0x4cfb9f=a941_0x368f;function options(_0x5a0954){var _0x470c6d=a941_0x368f;return{'sequelize':_0x5a0954,'tableName':_0x470c6d(0xb1),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a941_0x4cfb9f(0xb2)]=options; \ No newline at end of file +var a941_0x2e81=['options','whatsapp_accounts','exports'];(function(_0x2ca7e2,_0xff2c33){var _0x2e81d7=function(_0x3aee19){while(--_0x3aee19){_0x2ca7e2['push'](_0x2ca7e2['shift']());}};_0x2e81d7(++_0xff2c33);}(a941_0x2e81,0x100));var a941_0x3aee=function(_0x2ca7e2,_0xff2c33){_0x2ca7e2=_0x2ca7e2-0x68;var _0x2e81d7=a941_0x2e81[_0x2ca7e2];return _0x2e81d7;};var a941_0x526edf=a941_0x3aee;function options(_0x377f53){var _0x2d6350=a941_0x3aee;return{'sequelize':_0x377f53,'tableName':_0x2d6350(0x68),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a941_0x526edf(0x69)][a941_0x526edf(0x6a)]=options; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.rpc.js b/server/api/whatsappAccount/whatsappAccount.rpc.js index 2a4fb6a..19af3ec 100644 --- a/server/api/whatsappAccount/whatsappAccount.rpc.js +++ b/server/api/whatsappAccount/whatsappAccount.rpc.js @@ -1 +1 @@ -const a942_0x5c0c=['where','ShowWhatsappAccount','include','catch','./whatsappAccount.socket','../../config/logger','info','map','../../mysqldb','register','options','stringify','rpc','debug','message','../../rediscache','then','attributes','error'];(function(_0x4f477a,_0x9cf136){const _0x5c0cf4=function(_0x4ca024){while(--_0x4ca024){_0x4f477a['push'](_0x4f477a['shift']());}};_0x5c0cf4(++_0x9cf136);}(a942_0x5c0c,0x70));const a942_0x4ca0=function(_0x4f477a,_0x9cf136){_0x4f477a=_0x4f477a-0x12f;let _0x5c0cf4=a942_0x5c0c[_0x4f477a];return _0x5c0cf4;};const a942_0x2e98a3=a942_0x4ca0;'use strict';const db=require(a942_0x2e98a3(0x139))['db'],logger=require(a942_0x2e98a3(0x136))(a942_0x2e98a3(0x13d)),_=require('lodash'),{getSocket}=require(a942_0x2e98a3(0x140)),socket=getSocket();require(a942_0x2e98a3(0x135))[a942_0x2e98a3(0x13a)](socket),exports[a942_0x2e98a3(0x132)]=function(_0x20c338){const _0x3a16c9=this;return new Promise(function(_0x34339c,_0x378abb){const _0x3d79bc=a942_0x4ca0;return db['WhatsappAccount']['findOne']({'raw':_0x20c338['options']?_0x20c338[_0x3d79bc(0x13b)]['raw']===undefined?!![]:![]:!![],'where':_0x20c338[_0x3d79bc(0x13b)]?_0x20c338['options'][_0x3d79bc(0x131)]||null:null,'attributes':_0x20c338[_0x3d79bc(0x13b)]?_0x20c338[_0x3d79bc(0x13b)][_0x3d79bc(0x12f)]||null:null,'include':_0x20c338[_0x3d79bc(0x13b)]?_0x20c338[_0x3d79bc(0x13b)][_0x3d79bc(0x133)]?_['map'](_0x20c338['options']['include'],function(_0x571c4c){const _0x3ec616=_0x3d79bc;return{'model':db[_0x571c4c['model']],'as':_0x571c4c['as'],'attributes':_0x571c4c['attributes'],'include':_0x571c4c[_0x3ec616(0x133)]?_[_0x3ec616(0x138)](_0x571c4c[_0x3ec616(0x133)],function(_0x52b1a9){const _0x4095d5=_0x3ec616;return{'model':db[_0x52b1a9['model']],'as':_0x52b1a9['as'],'attributes':_0x52b1a9[_0x4095d5(0x12f)],'include':_0x52b1a9[_0x4095d5(0x133)]?_[_0x4095d5(0x138)](_0x52b1a9['include'],function(_0x91ee6f){const _0x1877bc=_0x4095d5;return{'model':db[_0x91ee6f['model']],'as':_0x91ee6f['as'],'attributes':_0x91ee6f[_0x1877bc(0x12f)]};}):[]};}):[]};}):[]:[]})[_0x3d79bc(0x141)](function(_0x509ee6){const _0x5501f9=_0x3d79bc;logger[_0x5501f9(0x137)](_0x5501f9(0x132),_0x20c338),logger[_0x5501f9(0x13e)]('ShowWhatsappAccount',_0x20c338,JSON[_0x5501f9(0x13c)](_0x509ee6)),_0x34339c(_0x509ee6);})[_0x3d79bc(0x134)](function(_0x35fccf){const _0xa623e7=_0x3d79bc;logger[_0xa623e7(0x130)](_0xa623e7(0x132),_0x35fccf['message'],_0x20c338),_0x378abb(_0x3a16c9['error'](0x1f4,_0x35fccf[_0xa623e7(0x13f)]));});});}; \ No newline at end of file +const a942_0x4898=['options','../../rediscache','ShowWhatsappAccount','rpc','model','debug','stringify','map','./whatsappAccount.socket','findOne','../../mysqldb','attributes','message','include','then','register','catch','error','info','where','../../config/logger','lodash'];(function(_0x75ae91,_0x57ce52){const _0x4898bc=function(_0x21bac9){while(--_0x21bac9){_0x75ae91['push'](_0x75ae91['shift']());}};_0x4898bc(++_0x57ce52);}(a942_0x4898,0x197));const a942_0x21ba=function(_0x75ae91,_0x57ce52){_0x75ae91=_0x75ae91-0x6d;let _0x4898bc=a942_0x4898[_0x75ae91];return _0x4898bc;};const a942_0x41c978=a942_0x21ba;'use strict';const db=require(a942_0x41c978(0x82))['db'],logger=require(a942_0x41c978(0x76))(a942_0x41c978(0x7b)),_=require(a942_0x41c978(0x77)),{getSocket}=require(a942_0x41c978(0x79)),socket=getSocket();require(a942_0x41c978(0x80))[a942_0x41c978(0x71)](socket),exports[a942_0x41c978(0x7a)]=function(_0x2ed9ec){const _0x1da14d=this;return new Promise(function(_0x3e0561,_0x43670a){const _0x3160d8=a942_0x21ba;return db['WhatsappAccount'][_0x3160d8(0x81)]({'raw':_0x2ed9ec[_0x3160d8(0x78)]?_0x2ed9ec[_0x3160d8(0x78)]['raw']===undefined?!![]:![]:!![],'where':_0x2ed9ec[_0x3160d8(0x78)]?_0x2ed9ec[_0x3160d8(0x78)][_0x3160d8(0x75)]||null:null,'attributes':_0x2ed9ec[_0x3160d8(0x78)]?_0x2ed9ec[_0x3160d8(0x78)][_0x3160d8(0x6d)]||null:null,'include':_0x2ed9ec[_0x3160d8(0x78)]?_0x2ed9ec[_0x3160d8(0x78)][_0x3160d8(0x6f)]?_[_0x3160d8(0x7f)](_0x2ed9ec[_0x3160d8(0x78)][_0x3160d8(0x6f)],function(_0x52b08f){const _0x1215ec=_0x3160d8;return{'model':db[_0x52b08f[_0x1215ec(0x7c)]],'as':_0x52b08f['as'],'attributes':_0x52b08f['attributes'],'include':_0x52b08f[_0x1215ec(0x6f)]?_[_0x1215ec(0x7f)](_0x52b08f[_0x1215ec(0x6f)],function(_0x12cdde){const _0x2426e8=_0x1215ec;return{'model':db[_0x12cdde[_0x2426e8(0x7c)]],'as':_0x12cdde['as'],'attributes':_0x12cdde['attributes'],'include':_0x12cdde[_0x2426e8(0x6f)]?_[_0x2426e8(0x7f)](_0x12cdde[_0x2426e8(0x6f)],function(_0x1e5cf1){const _0x2039b3=_0x2426e8;return{'model':db[_0x1e5cf1[_0x2039b3(0x7c)]],'as':_0x1e5cf1['as'],'attributes':_0x1e5cf1['attributes']};}):[]};}):[]};}):[]:[]})[_0x3160d8(0x70)](function(_0x55e44b){const _0xe0b273=_0x3160d8;logger[_0xe0b273(0x74)](_0xe0b273(0x7a),_0x2ed9ec),logger[_0xe0b273(0x7d)](_0xe0b273(0x7a),_0x2ed9ec,JSON[_0xe0b273(0x7e)](_0x55e44b)),_0x3e0561(_0x55e44b);})[_0x3160d8(0x72)](function(_0xe452d7){const _0x55e1df=_0x3160d8;logger[_0x55e1df(0x73)](_0x55e1df(0x7a),_0xe452d7[_0x55e1df(0x6e)],_0x2ed9ec),_0x43670a(_0x1da14d[_0x55e1df(0x73)](0x1f4,_0xe452d7['message']));});});}; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.socket.js b/server/api/whatsappAccount/whatsappAccount.socket.js index ad66dba..dc9bf31 100644 --- a/server/api/whatsappAccount/whatsappAccount.socket.js +++ b/server/api/whatsappAccount/whatsappAccount.socket.js @@ -1 +1 @@ -const a943_0x9292=['update','emit','whatsappAccount:','./whatsappAccount.events','save'];(function(_0x32c739,_0x219df4){const _0x9292ed=function(_0x53fbf4){while(--_0x53fbf4){_0x32c739['push'](_0x32c739['shift']());}};_0x9292ed(++_0x219df4);}(a943_0x9292,0xdd));const a943_0x53fb=function(_0x32c739,_0x219df4){_0x32c739=_0x32c739-0x139;let _0x9292ed=a943_0x9292[_0x32c739];return _0x9292ed;};const a943_0x539e8d=a943_0x53fb;'use strict';const WhatsappAccountEvents=require(a943_0x539e8d(0x13b)),events=[a943_0x539e8d(0x13c),'remove',a943_0x539e8d(0x13d)];function createListener(_0x286e1e,_0x42b732){return function(_0x40bae0){const _0x461b79=a943_0x53fb;_0x42b732[_0x461b79(0x139)](_0x286e1e,_0x40bae0);};}exports['register']=function(_0xfa1c5b){const _0x145af9=a943_0x539e8d;for(let _0x11c8fb=0x0,_0x4f5097=events['length'];_0x11c8fb<_0x4f5097;_0x11c8fb++){const _0x2ad322=events[_0x11c8fb],_0x468761=createListener(_0x145af9(0x13a)+_0x2ad322,_0xfa1c5b);WhatsappAccountEvents['on'](_0x2ad322,_0x468761);}}; \ No newline at end of file +const a943_0x5432=['whatsappAccount:','emit','length','update','save'];(function(_0x156177,_0x48ecac){const _0x5432e4=function(_0x5869d3){while(--_0x5869d3){_0x156177['push'](_0x156177['shift']());}};_0x5432e4(++_0x48ecac);}(a943_0x5432,0xd7));const a943_0x5869=function(_0x156177,_0x48ecac){_0x156177=_0x156177-0x15a;let _0x5432e4=a943_0x5432[_0x156177];return _0x5432e4;};const a943_0xaf8f97=a943_0x5869;'use strict';const WhatsappAccountEvents=require('./whatsappAccount.events'),events=[a943_0xaf8f97(0x15e),'remove',a943_0xaf8f97(0x15d)];function createListener(_0x318c59,_0x27cb15){return function(_0x515684){const _0x3a3c4f=a943_0x5869;_0x27cb15[_0x3a3c4f(0x15b)](_0x318c59,_0x515684);};}exports['register']=function(_0x57084d){const _0x459b71=a943_0xaf8f97;for(let _0x433e78=0x0,_0x54a9e6=events[_0x459b71(0x15c)];_0x433e78<_0x54a9e6;_0x433e78++){const _0xa7d63a=events[_0x433e78],_0x2bba51=createListener(_0x459b71(0x15a)+_0xa7d63a,_0x57084d);WhatsappAccountEvents['on'](_0xa7d63a,_0x2bba51);}}; \ No newline at end of file diff --git a/server/api/whatsappApplication/index.js b/server/api/whatsappApplication/index.js index f4cccf9..1f9b8f5 100644 --- a/server/api/whatsappApplication/index.js +++ b/server/api/whatsappApplication/index.js @@ -1 +1 @@ -const a944_0x2331=['get','exports','Router','create','update','delete','/:id','isAuthenticated','put','index','destroy'];(function(_0x5a1d40,_0x4f3c74){const _0x2331d0=function(_0x38ae29){while(--_0x38ae29){_0x5a1d40['push'](_0x5a1d40['shift']());}};_0x2331d0(++_0x4f3c74);}(a944_0x2331,0xe2));const a944_0x38ae=function(_0x5a1d40,_0x4f3c74){_0x5a1d40=_0x5a1d40-0x1ea;let _0x2331d0=a944_0x2331[_0x5a1d40];return _0x2331d0;};const a944_0x1940a8=a944_0x38ae;'use strict';const express=require('express'),router=express[a944_0x1940a8(0x1f1)](),auth=require('../../components/auth/service'),controller=require('./whatsappApplication.controller');router[a944_0x1940a8(0x1ef)]('/',auth[a944_0x1940a8(0x1eb)](),controller[a944_0x1940a8(0x1ed)]),router['get'](a944_0x1940a8(0x1ea),auth[a944_0x1940a8(0x1eb)](),controller['show']),router['post']('/',auth[a944_0x1940a8(0x1eb)](),controller[a944_0x1940a8(0x1f2)]),router[a944_0x1940a8(0x1ec)](a944_0x1940a8(0x1ea),auth[a944_0x1940a8(0x1eb)](),controller[a944_0x1940a8(0x1f3)]),router[a944_0x1940a8(0x1f4)](a944_0x1940a8(0x1ea),auth[a944_0x1940a8(0x1eb)](),controller[a944_0x1940a8(0x1ee)]),module[a944_0x1940a8(0x1f0)]=router; \ No newline at end of file +const a944_0x4850=['isAuthenticated','update','../../components/auth/service','express','./whatsappApplication.controller','post','destroy','/:id','get'];(function(_0x127495,_0x5a6bb7){const _0x48503f=function(_0x1096f6){while(--_0x1096f6){_0x127495['push'](_0x127495['shift']());}};_0x48503f(++_0x5a6bb7);}(a944_0x4850,0xc0));const a944_0x1096=function(_0x127495,_0x5a6bb7){_0x127495=_0x127495-0x1f4;let _0x48503f=a944_0x4850[_0x127495];return _0x48503f;};const a944_0x188cb6=a944_0x1096;'use strict';const express=require(a944_0x188cb6(0x1f4)),router=express['Router'](),auth=require(a944_0x188cb6(0x1fc)),controller=require(a944_0x188cb6(0x1f5));router['get']('/',auth['isAuthenticated'](),controller['index']),router[a944_0x188cb6(0x1f9)](a944_0x188cb6(0x1f8),auth['isAuthenticated'](),controller['show']),router[a944_0x188cb6(0x1f6)]('/',auth[a944_0x188cb6(0x1fa)](),controller['create']),router['put'](a944_0x188cb6(0x1f8),auth[a944_0x188cb6(0x1fa)](),controller[a944_0x188cb6(0x1fb)]),router['delete'](a944_0x188cb6(0x1f8),auth[a944_0x188cb6(0x1fa)](),controller[a944_0x188cb6(0x1f7)]),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 b32deb1..076b60c 100644 --- a/server/api/whatsappApplication/whatsappApplication.attributes.js +++ b/server/api/whatsappApplication/whatsappApplication.attributes.js @@ -1 +1 @@ -const a945_0x3ff2=['sequelize','exports','STRING','*,*,*,*','TEXT','attributes','noop','INTEGER'];(function(_0x1491d2,_0x30ba48){const _0x3ff26a=function(_0x4d213e){while(--_0x4d213e){_0x1491d2['push'](_0x1491d2['shift']());}};_0x3ff26a(++_0x30ba48);}(a945_0x3ff2,0xf9));const a945_0x4d21=function(_0x1491d2,_0x30ba48){_0x1491d2=_0x1491d2-0x1da;let _0x3ff26a=a945_0x3ff2[_0x1491d2];return _0x3ff26a;};const a945_0x163f83=a945_0x4d21;'use strict';const {DataTypes}=require(a945_0x163f83(0x1e1)),attributes={'priority':{'type':DataTypes[a945_0x163f83(0x1e0)],'allowNull':![]},'app':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':a945_0x163f83(0x1df)},'appdata':{'type':DataTypes[a945_0x163f83(0x1dd)]()},'description':{'type':DataTypes[a945_0x163f83(0x1db)]},'interval':{'type':DataTypes['STRING'],'defaultValue':a945_0x163f83(0x1dc)}};module[a945_0x163f83(0x1da)][a945_0x163f83(0x1de)]=attributes; \ No newline at end of file +const a945_0x257d=['sequelize','*,*,*,*','STRING','exports','TEXT','attributes','INTEGER','noop'];(function(_0x37e275,_0x482a5d){const _0x257dec=function(_0x2bcf75){while(--_0x2bcf75){_0x37e275['push'](_0x37e275['shift']());}};_0x257dec(++_0x482a5d);}(a945_0x257d,0x195));const a945_0x2bcf=function(_0x37e275,_0x482a5d){_0x37e275=_0x37e275-0x151;let _0x257dec=a945_0x257d[_0x37e275];return _0x257dec;};const a945_0x1cd42f=a945_0x2bcf;'use strict';const {DataTypes}=require(a945_0x1cd42f(0x154)),attributes={'priority':{'type':DataTypes[a945_0x1cd42f(0x152)],'allowNull':![]},'app':{'type':DataTypes[a945_0x1cd42f(0x156)],'allowNull':![],'defaultValue':a945_0x1cd42f(0x153)},'appdata':{'type':DataTypes[a945_0x1cd42f(0x158)]()},'description':{'type':DataTypes[a945_0x1cd42f(0x156)]},'interval':{'type':DataTypes['STRING'],'defaultValue':a945_0x1cd42f(0x155)}};module[a945_0x1cd42f(0x157)][a945_0x1cd42f(0x151)]=attributes; \ No newline at end of file diff --git a/server/api/whatsappApplication/whatsappApplication.controller.js b/server/api/whatsappApplication/whatsappApplication.controller.js index e0e2238..96f8522 100644 --- a/server/api/whatsappApplication/whatsappApplication.controller.js +++ b/server/api/whatsappApplication/whatsappApplication.controller.js @@ -1 +1 @@ -const a946_0x3dcb=['fieldName','limit','attributes','filters','sort','show','undefined','include','end','merge','../../components/parsers/qs','count','keys','intersection','create','sequelize','includeAll','stack','options','api','WhatsappApplication','sendStatus','rows','body','json','set','send','name','findOne','index','where','../../config/logger','then','params','offset','status','model','../../mysqldb','catch','key','update','map','findAll','order','pick','length','filter','query','destroy','fields','type','nolimit','rawAttributes'];(function(_0x4282bf,_0x3bfa73){const _0x3dcb98=function(_0x3ec0eb){while(--_0x3ec0eb){_0x4282bf['push'](_0x4282bf['shift']());}};_0x3dcb98(++_0x3bfa73);}(a946_0x3dcb,0x103));const a946_0x3ec0=function(_0x4282bf,_0x3bfa73){_0x4282bf=_0x4282bf-0x66;let _0x3dcb98=a946_0x3dcb[_0x4282bf];return _0x3dcb98;};const a946_0x11c3d4=a946_0x3ec0;'use strict';const _=require('lodash'),qs=require(a946_0x11c3d4(0x76)),logger=require(a946_0x11c3d4(0x8b))(a946_0x11c3d4(0x7f)),{db}=require(a946_0x11c3d4(0x91)),{Op}=require(a946_0x11c3d4(0x7b));function respondWithResult(_0x3264ab,_0x2a5a4e){return _0x2a5a4e=_0x2a5a4e||0xc8,function(_0x19d18b){const _0x2b8926=a946_0x3ec0;if(_0x19d18b)return _0x3264ab[_0x2b8926(0x8f)](_0x2a5a4e)[_0x2b8926(0x84)](_0x19d18b);};}function respondWithFilteredResult(_0x2f07d6,_0x55904e){return function(_0x35fdc9){const _0x5905a6=a946_0x3ec0;if(_0x35fdc9){const _0x3b1c2a=_0x35fdc9[_0x5905a6(0x77)],_0x57152b=_0x55904e[_0x5905a6(0x8e)];let _0x2b6709=_0x55904e[_0x5905a6(0x8e)]+_0x55904e[_0x5905a6(0x6d)],_0x1f450f;return _0x2b6709>=_0x3b1c2a?(_0x2b6709=_0x3b1c2a,_0x1f450f=0xc8):_0x1f450f=0xce,_0x2f07d6[_0x5905a6(0x8f)](_0x1f450f),_0x2f07d6[_0x5905a6(0x85)]('Content-Range',_0x57152b+'-'+_0x2b6709+'/'+_0x3b1c2a)[_0x5905a6(0x84)](_0x35fdc9);}return null;};}function saveUpdates(_0x438cc2){return function(_0x5e231d){const _0x5ecc1c=a946_0x3ec0;if(_0x5e231d)return _0x5e231d[_0x5ecc1c(0x94)](_0x438cc2)[_0x5ecc1c(0x8c)](function(_0x2a4733){return _0x2a4733;});return null;};}function removeEntity(_0x429e97){return function(_0xa6d0e4){const _0x195d7a=a946_0x3ec0;if(_0xa6d0e4)return _0xa6d0e4[_0x195d7a(0x67)]()[_0x195d7a(0x8c)](function(){const _0x4c05e0=_0x195d7a;_0x429e97[_0x4c05e0(0x8f)](0xcc)[_0x4c05e0(0x74)]();});};}function handleEntityNotFound(_0x5bbf68){return function(_0x6e04ac){const _0x12eaa6=a946_0x3ec0;return!_0x6e04ac&&_0x5bbf68[_0x12eaa6(0x81)](0x194),_0x6e04ac;};}function handleError(_0x40740a,_0x16f89b){return _0x16f89b=_0x16f89b||0x1f4,function(_0x38ac6e){const _0x529515=a946_0x3ec0;logger['error'](_0x38ac6e[_0x529515(0x7d)]),_0x38ac6e[_0x529515(0x87)]&&delete _0x38ac6e[_0x529515(0x87)],_0x40740a[_0x529515(0x8f)](_0x16f89b)[_0x529515(0x86)](_0x38ac6e);};}exports[a946_0x11c3d4(0x89)]=function(_0x178c61,_0x2cd099){const _0x15d663=a946_0x11c3d4;let _0x1beaee={};const _0x1be965={},_0x20563f={'count':0x0,'rows':[]},_0x5f2c30=_['map'](db['WhatsappApplication']['rawAttributes'],function(_0x3ce940){const _0x9c420b=a946_0x3ec0;return{'name':_0x3ce940[_0x9c420b(0x6c)],'type':_0x3ce940[_0x9c420b(0x69)][_0x9c420b(0x93)]};});_0x1be965[_0x15d663(0x90)]=_[_0x15d663(0x95)](_0x5f2c30,_0x15d663(0x87)),_0x1be965[_0x15d663(0x66)]=_[_0x15d663(0x78)](_0x178c61[_0x15d663(0x66)]),_0x1be965[_0x15d663(0x6f)]=_[_0x15d663(0x79)](_0x1be965['model'],_0x1be965[_0x15d663(0x66)]),_0x1beaee['attributes']=_[_0x15d663(0x79)](_0x1be965[_0x15d663(0x90)],qs[_0x15d663(0x68)](_0x178c61[_0x15d663(0x66)][_0x15d663(0x68)])),_0x1beaee[_0x15d663(0x6e)]=_0x1beaee[_0x15d663(0x6e)][_0x15d663(0x99)]?_0x1beaee[_0x15d663(0x6e)]:_0x1be965[_0x15d663(0x90)];typeof _0x178c61['query'][_0x15d663(0x6a)]===_0x15d663(0x72)&&(_0x1beaee['limit']=qs[_0x15d663(0x6d)](_0x178c61[_0x15d663(0x66)][_0x15d663(0x6d)]),_0x1beaee[_0x15d663(0x8e)]=qs[_0x15d663(0x8e)](_0x178c61[_0x15d663(0x66)][_0x15d663(0x8e)]));_0x1beaee[_0x15d663(0x97)]=qs[_0x15d663(0x70)](_0x178c61[_0x15d663(0x66)][_0x15d663(0x70)]),_0x1beaee[_0x15d663(0x8a)]=qs[_0x15d663(0x6f)](_[_0x15d663(0x98)](_0x178c61['query'],_0x1be965[_0x15d663(0x6f)]),_0x5f2c30);_0x178c61[_0x15d663(0x66)][_0x15d663(0x9a)]&&(_0x1beaee[_0x15d663(0x8a)]=_['merge'](_0x1beaee['where'],{[Op['or']]:_[_0x15d663(0x95)](_0x5f2c30,function(_0x1ef2f8){const _0xf4e906=_0x15d663;if(_0x1ef2f8[_0xf4e906(0x69)]!=='VIRTUAL'){const _0xdd3f4e={};return _0xdd3f4e[_0x1ef2f8['name']]={[Op['like']]:'%'+_0x178c61[_0xf4e906(0x66)]['filter']+'%'},_0xdd3f4e;}})}));_0x1beaee=_[_0x15d663(0x75)]({},_0x1beaee,_0x178c61['options']);const _0x28a41d={'where':_0x1beaee[_0x15d663(0x8a)]};return db[_0x15d663(0x80)][_0x15d663(0x77)](_0x28a41d)[_0x15d663(0x8c)](function(_0x3e0978){const _0x42fc11=_0x15d663;return _0x20563f[_0x42fc11(0x77)]=_0x3e0978,_0x178c61[_0x42fc11(0x66)][_0x42fc11(0x7c)]&&(_0x1beaee['include']=[{'all':!![]}]),db[_0x42fc11(0x80)][_0x42fc11(0x96)](_0x1beaee);})[_0x15d663(0x8c)](function(_0x2d24f3){const _0x1fc4ad=_0x15d663;return _0x20563f[_0x1fc4ad(0x82)]=_0x2d24f3,_0x20563f;})[_0x15d663(0x8c)](respondWithFilteredResult(_0x2cd099,_0x1beaee))[_0x15d663(0x92)](handleError(_0x2cd099,null));},exports[a946_0x11c3d4(0x71)]=function(_0xeab2cd,_0x7188d2){const _0x352055=a946_0x11c3d4;let _0x48ab50={'raw':!![],'where':{'id':_0xeab2cd[_0x352055(0x8d)]['id']}};const _0x1b21f9={};return _0x1b21f9[_0x352055(0x90)]=_['keys'](db[_0x352055(0x80)][_0x352055(0x6b)]),_0x1b21f9[_0x352055(0x66)]=_['keys'](_0xeab2cd[_0x352055(0x66)]),_0x1b21f9[_0x352055(0x6f)]=_[_0x352055(0x79)](_0x1b21f9[_0x352055(0x90)],_0x1b21f9['query']),_0x48ab50[_0x352055(0x6e)]=_['intersection'](_0x1b21f9[_0x352055(0x90)],qs[_0x352055(0x68)](_0xeab2cd[_0x352055(0x66)][_0x352055(0x68)])),_0x48ab50[_0x352055(0x6e)]=_0x48ab50[_0x352055(0x6e)]['length']?_0x48ab50[_0x352055(0x6e)]:_0x1b21f9[_0x352055(0x90)],_0xeab2cd[_0x352055(0x66)][_0x352055(0x7c)]&&(_0x48ab50[_0x352055(0x73)]=[{'all':!![]}]),_0x48ab50=_[_0x352055(0x75)]({},_0x48ab50,_0xeab2cd[_0x352055(0x7e)]),db[_0x352055(0x80)][_0x352055(0x88)](_0x48ab50)[_0x352055(0x8c)](handleEntityNotFound(_0x7188d2,null))['then'](respondWithResult(_0x7188d2,null))['catch'](handleError(_0x7188d2,null));},exports[a946_0x11c3d4(0x7a)]=function(_0x127f5e,_0xcc72f6){const _0x1d86fa=a946_0x11c3d4;return db[_0x1d86fa(0x80)][_0x1d86fa(0x7a)](_0x127f5e[_0x1d86fa(0x83)],{})['then'](respondWithResult(_0xcc72f6,0xc9))[_0x1d86fa(0x92)](handleError(_0xcc72f6,null));},exports['update']=function(_0x4d5297,_0x4ee853){const _0x29f784=a946_0x11c3d4;return _0x4d5297['body']['id']&&delete _0x4d5297[_0x29f784(0x83)]['id'],db['WhatsappApplication']['findOne']({'where':{'id':_0x4d5297[_0x29f784(0x8d)]['id']}})[_0x29f784(0x8c)](handleEntityNotFound(_0x4ee853,null))[_0x29f784(0x8c)](saveUpdates(_0x4d5297['body'],null))[_0x29f784(0x8c)](respondWithResult(_0x4ee853,null))['catch'](handleError(_0x4ee853,null));},exports[a946_0x11c3d4(0x67)]=function(_0x1a1f61,_0x23e85d){const _0x4ce3eb=a946_0x11c3d4;return db[_0x4ce3eb(0x80)][_0x4ce3eb(0x88)]({'where':{'id':_0x1a1f61[_0x4ce3eb(0x8d)]['id']}})[_0x4ce3eb(0x8c)](handleEntityNotFound(_0x23e85d,null))[_0x4ce3eb(0x8c)](removeEntity(_0x23e85d,null))['catch'](handleError(_0x23e85d,null));}; \ No newline at end of file +const a946_0x3760=['keys','json','set','WhatsappApplication','params','stack','catch','rawAttributes','limit','key','undefined','map','name','query','model','then','lodash','sort','nolimit','include','send','create','../../config/logger','type','intersection','end','findOne','filters','merge','includeAll','error','api','filter','VIRTUAL','destroy','options','../../components/parsers/qs','../../mysqldb','update','fields','index','length','body','status','where','fieldName','rows','count','order','offset','attributes'];(function(_0x4bae2a,_0xb75c51){const _0x37602c=function(_0x4b9f91){while(--_0x4b9f91){_0x4bae2a['push'](_0x4bae2a['shift']());}};_0x37602c(++_0xb75c51);}(a946_0x3760,0x109));const a946_0x4b9f=function(_0x4bae2a,_0xb75c51){_0x4bae2a=_0x4bae2a-0xff;let _0x37602c=a946_0x3760[_0x4bae2a];return _0x37602c;};const a946_0x312476=a946_0x4b9f;'use strict';const _=require(a946_0x312476(0x105)),qs=require(a946_0x312476(0x119)),logger=require(a946_0x312476(0x10b))(a946_0x312476(0x114)),{db}=require(a946_0x312476(0x11a)),{Op}=require('sequelize');function respondWithResult(_0x3dd1ba,_0x5d5aff){return _0x5d5aff=_0x5d5aff||0xc8,function(_0x7acd52){const _0x268d3b=a946_0x4b9f;if(_0x7acd52)return _0x3dd1ba[_0x268d3b(0x120)](_0x5d5aff)[_0x268d3b(0x129)](_0x7acd52);};}function respondWithFilteredResult(_0x3a02bc,_0x405b79){return function(_0x1760c5){const _0x51185a=a946_0x4b9f;if(_0x1760c5){const _0x4a78d7=_0x1760c5[_0x51185a(0x124)],_0x8b67e0=_0x405b79[_0x51185a(0x126)];let _0x23129e=_0x405b79['offset']+_0x405b79[_0x51185a(0x130)],_0x2f9bd8;return _0x23129e>=_0x4a78d7?(_0x23129e=_0x4a78d7,_0x2f9bd8=0xc8):_0x2f9bd8=0xce,_0x3a02bc['status'](_0x2f9bd8),_0x3a02bc[_0x51185a(0x12a)]('Content-Range',_0x8b67e0+'-'+_0x23129e+'/'+_0x4a78d7)[_0x51185a(0x129)](_0x1760c5);}return null;};}function saveUpdates(_0x2ac8eb){return function(_0x2195d1){const _0x4a8fc4=a946_0x4b9f;if(_0x2195d1)return _0x2195d1['update'](_0x2ac8eb)[_0x4a8fc4(0x104)](function(_0x39f310){return _0x39f310;});return null;};}function removeEntity(_0x37b4d3){return function(_0x4034b3){const _0x5368ec=a946_0x4b9f;if(_0x4034b3)return _0x4034b3[_0x5368ec(0x117)]()[_0x5368ec(0x104)](function(){const _0x416213=_0x5368ec;_0x37b4d3[_0x416213(0x120)](0xcc)[_0x416213(0x10e)]();});};}function handleEntityNotFound(_0x163eb9){return function(_0xec784b){return!_0xec784b&&_0x163eb9['sendStatus'](0x194),_0xec784b;};}function handleError(_0xc57b20,_0x8c1f46){return _0x8c1f46=_0x8c1f46||0x1f4,function(_0x304574){const _0x13d4a3=a946_0x4b9f;logger[_0x13d4a3(0x113)](_0x304574[_0x13d4a3(0x12d)]),_0x304574[_0x13d4a3(0x101)]&&delete _0x304574[_0x13d4a3(0x101)],_0xc57b20[_0x13d4a3(0x120)](_0x8c1f46)[_0x13d4a3(0x109)](_0x304574);};}exports[a946_0x312476(0x11d)]=function(_0x384d7d,_0x5a8db5){const _0x253574=a946_0x312476;let _0x20f105={};const _0x21e87e={},_0x381187={'count':0x0,'rows':[]},_0x3e44f5=_[_0x253574(0x100)](db['WhatsappApplication'][_0x253574(0x12f)],function(_0x4611b2){const _0x3381ab=_0x253574;return{'name':_0x4611b2[_0x3381ab(0x122)],'type':_0x4611b2['type'][_0x3381ab(0x131)]};});_0x21e87e[_0x253574(0x103)]=_['map'](_0x3e44f5,_0x253574(0x101)),_0x21e87e[_0x253574(0x102)]=_[_0x253574(0x128)](_0x384d7d[_0x253574(0x102)]),_0x21e87e[_0x253574(0x110)]=_[_0x253574(0x10d)](_0x21e87e[_0x253574(0x103)],_0x21e87e[_0x253574(0x102)]),_0x20f105[_0x253574(0x127)]=_['intersection'](_0x21e87e['model'],qs[_0x253574(0x11c)](_0x384d7d[_0x253574(0x102)][_0x253574(0x11c)])),_0x20f105[_0x253574(0x127)]=_0x20f105['attributes'][_0x253574(0x11e)]?_0x20f105['attributes']:_0x21e87e[_0x253574(0x103)];typeof _0x384d7d[_0x253574(0x102)][_0x253574(0x107)]===_0x253574(0xff)&&(_0x20f105[_0x253574(0x130)]=qs[_0x253574(0x130)](_0x384d7d['query'][_0x253574(0x130)]),_0x20f105[_0x253574(0x126)]=qs[_0x253574(0x126)](_0x384d7d[_0x253574(0x102)][_0x253574(0x126)]));_0x20f105[_0x253574(0x125)]=qs[_0x253574(0x106)](_0x384d7d[_0x253574(0x102)][_0x253574(0x106)]),_0x20f105[_0x253574(0x121)]=qs['filters'](_['pick'](_0x384d7d['query'],_0x21e87e[_0x253574(0x110)]),_0x3e44f5);_0x384d7d[_0x253574(0x102)]['filter']&&(_0x20f105[_0x253574(0x121)]=_[_0x253574(0x111)](_0x20f105[_0x253574(0x121)],{[Op['or']]:_[_0x253574(0x100)](_0x3e44f5,function(_0x2b046d){const _0x388a30=_0x253574;if(_0x2b046d[_0x388a30(0x10c)]!==_0x388a30(0x116)){const _0x150bc7={};return _0x150bc7[_0x2b046d[_0x388a30(0x101)]]={[Op['like']]:'%'+_0x384d7d[_0x388a30(0x102)][_0x388a30(0x115)]+'%'},_0x150bc7;}})}));_0x20f105=_[_0x253574(0x111)]({},_0x20f105,_0x384d7d[_0x253574(0x118)]);const _0x3a851e={'where':_0x20f105[_0x253574(0x121)]};return db[_0x253574(0x12b)][_0x253574(0x124)](_0x3a851e)['then'](function(_0x8267b1){const _0x223ee9=_0x253574;return _0x381187[_0x223ee9(0x124)]=_0x8267b1,_0x384d7d[_0x223ee9(0x102)][_0x223ee9(0x112)]&&(_0x20f105[_0x223ee9(0x108)]=[{'all':!![]}]),db[_0x223ee9(0x12b)]['findAll'](_0x20f105);})['then'](function(_0xa6d2a8){const _0x2fc226=_0x253574;return _0x381187[_0x2fc226(0x123)]=_0xa6d2a8,_0x381187;})[_0x253574(0x104)](respondWithFilteredResult(_0x5a8db5,_0x20f105))[_0x253574(0x12e)](handleError(_0x5a8db5,null));},exports['show']=function(_0x4cd8a0,_0x5a32cc){const _0x23d4f0=a946_0x312476;let _0x4fdb29={'raw':!![],'where':{'id':_0x4cd8a0['params']['id']}};const _0x298472={};return _0x298472['model']=_[_0x23d4f0(0x128)](db['WhatsappApplication'][_0x23d4f0(0x12f)]),_0x298472[_0x23d4f0(0x102)]=_[_0x23d4f0(0x128)](_0x4cd8a0[_0x23d4f0(0x102)]),_0x298472[_0x23d4f0(0x110)]=_['intersection'](_0x298472['model'],_0x298472['query']),_0x4fdb29[_0x23d4f0(0x127)]=_[_0x23d4f0(0x10d)](_0x298472[_0x23d4f0(0x103)],qs[_0x23d4f0(0x11c)](_0x4cd8a0[_0x23d4f0(0x102)][_0x23d4f0(0x11c)])),_0x4fdb29[_0x23d4f0(0x127)]=_0x4fdb29[_0x23d4f0(0x127)][_0x23d4f0(0x11e)]?_0x4fdb29['attributes']:_0x298472[_0x23d4f0(0x103)],_0x4cd8a0[_0x23d4f0(0x102)][_0x23d4f0(0x112)]&&(_0x4fdb29[_0x23d4f0(0x108)]=[{'all':!![]}]),_0x4fdb29=_[_0x23d4f0(0x111)]({},_0x4fdb29,_0x4cd8a0['options']),db['WhatsappApplication'][_0x23d4f0(0x10f)](_0x4fdb29)[_0x23d4f0(0x104)](handleEntityNotFound(_0x5a32cc,null))[_0x23d4f0(0x104)](respondWithResult(_0x5a32cc,null))[_0x23d4f0(0x12e)](handleError(_0x5a32cc,null));},exports[a946_0x312476(0x10a)]=function(_0x4c0f2f,_0x3c51ec){const _0x168919=a946_0x312476;return db[_0x168919(0x12b)][_0x168919(0x10a)](_0x4c0f2f[_0x168919(0x11f)],{})[_0x168919(0x104)](respondWithResult(_0x3c51ec,0xc9))[_0x168919(0x12e)](handleError(_0x3c51ec,null));},exports[a946_0x312476(0x11b)]=function(_0x4efa88,_0x24235c){const _0x3a5e24=a946_0x312476;return _0x4efa88[_0x3a5e24(0x11f)]['id']&&delete _0x4efa88['body']['id'],db[_0x3a5e24(0x12b)][_0x3a5e24(0x10f)]({'where':{'id':_0x4efa88['params']['id']}})['then'](handleEntityNotFound(_0x24235c,null))['then'](saveUpdates(_0x4efa88[_0x3a5e24(0x11f)],null))[_0x3a5e24(0x104)](respondWithResult(_0x24235c,null))[_0x3a5e24(0x12e)](handleError(_0x24235c,null));},exports[a946_0x312476(0x117)]=function(_0x590921,_0x20ec40){const _0x3ad729=a946_0x312476;return db['WhatsappApplication'][_0x3ad729(0x10f)]({'where':{'id':_0x590921[_0x3ad729(0x12c)]['id']}})[_0x3ad729(0x104)](handleEntityNotFound(_0x20ec40,null))[_0x3ad729(0x104)](removeEntity(_0x20ec40,null))[_0x3ad729(0x12e)](handleError(_0x20ec40,null));}; \ No newline at end of file diff --git a/server/api/whatsappApplication/whatsappApplication.model.js b/server/api/whatsappApplication/whatsappApplication.model.js index 1898805..a03e158 100644 --- a/server/api/whatsappApplication/whatsappApplication.model.js +++ b/server/api/whatsappApplication/whatsappApplication.model.js @@ -1 +1 @@ -const a947_0x4856=['function','exports','./whatsappApplication.options','init','./whatsappApplication.attributes','sequelize'];(function(_0x1677cc,_0x41becf){const _0x485609=function(_0x146861){while(--_0x146861){_0x1677cc['push'](_0x1677cc['shift']());}};_0x485609(++_0x41becf);}(a947_0x4856,0x1ae));const a947_0x1468=function(_0x1677cc,_0x41becf){_0x1677cc=_0x1677cc-0xf3;let _0x485609=a947_0x4856[_0x1677cc];return _0x485609;};const a947_0x162718=a947_0x1468;'use strict';const {Model}=require(a947_0x162718(0xf4)),{attributes}=require(a947_0x162718(0xf3)),{options}=require(a947_0x162718(0xf7));class WhatsappApplication extends Model{}function init(_0x3f6aa7,_0x95eb71){const _0x2fdde8=a947_0x162718,_0x567d57=options(_0x3f6aa7),_0x439cfa=typeof _0x95eb71===_0x2fdde8(0xf5)?_0x95eb71(_0x567d57):_0x567d57;return WhatsappApplication['init'](attributes,_0x439cfa),WhatsappApplication;}module[a947_0x162718(0xf6)]['WhatsappApplication']=WhatsappApplication,module[a947_0x162718(0xf6)][a947_0x162718(0xf8)]=init; \ No newline at end of file +const a947_0x2b06=['exports','WhatsappApplication','./whatsappApplication.attributes','./whatsappApplication.options','function','init','sequelize'];(function(_0x5a1b23,_0xae34f){const _0x2b06ac=function(_0x383c01){while(--_0x383c01){_0x5a1b23['push'](_0x5a1b23['shift']());}};_0x2b06ac(++_0xae34f);}(a947_0x2b06,0xcf));const a947_0x383c=function(_0x5a1b23,_0xae34f){_0x5a1b23=_0x5a1b23-0x107;let _0x2b06ac=a947_0x2b06[_0x5a1b23];return _0x2b06ac;};const a947_0x503917=a947_0x383c;'use strict';const {Model}=require(a947_0x503917(0x109)),{attributes}=require(a947_0x503917(0x10c)),{options}=require(a947_0x503917(0x10d));class WhatsappApplication extends Model{}function init(_0xb830eb,_0x4c31d4){const _0x1f4b2c=a947_0x503917,_0x5111ed=options(_0xb830eb),_0x489364=typeof _0x4c31d4===_0x1f4b2c(0x107)?_0x4c31d4(_0x5111ed):_0x5111ed;return WhatsappApplication[_0x1f4b2c(0x108)](attributes,_0x489364),WhatsappApplication;}module[a947_0x503917(0x10a)][a947_0x503917(0x10b)]=WhatsappApplication,module['exports'][a947_0x503917(0x108)]=init; \ No newline at end of file diff --git a/server/api/whatsappApplication/whatsappApplication.options.js b/server/api/whatsappApplication/whatsappApplication.options.js index 28bb245..3af5cd0 100644 --- a/server/api/whatsappApplication/whatsappApplication.options.js +++ b/server/api/whatsappApplication/whatsappApplication.options.js @@ -1 +1 @@ -var a948_0x44e2=['whatsapp_applications','options','exports','utf8mb4_unicode_ci'];(function(_0x503241,_0x5e4d9c){var _0x44e203=function(_0x4c8e19){while(--_0x4c8e19){_0x503241['push'](_0x503241['shift']());}};_0x44e203(++_0x5e4d9c);}(a948_0x44e2,0xdb));var a948_0x4c8e=function(_0x503241,_0x5e4d9c){_0x503241=_0x503241-0x15f;var _0x44e203=a948_0x44e2[_0x503241];return _0x44e203;};var a948_0x262043=a948_0x4c8e;function options(_0x233d64){var _0x5a6802=a948_0x4c8e;return{'sequelize':_0x233d64,'tableName':_0x5a6802(0x160),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x5a6802(0x15f)};}module[a948_0x262043(0x162)][a948_0x262043(0x161)]=options; \ No newline at end of file +var a948_0xe871=['options','exports','utf8mb4_unicode_ci'];(function(_0x31ed6a,_0x290d03){var _0xe87125=function(_0x2d8893){while(--_0x2d8893){_0x31ed6a['push'](_0x31ed6a['shift']());}};_0xe87125(++_0x290d03);}(a948_0xe871,0x12f));var a948_0x2d88=function(_0x31ed6a,_0x290d03){_0x31ed6a=_0x31ed6a-0x92;var _0xe87125=a948_0xe871[_0x31ed6a];return _0xe87125;};var a948_0x27d184=a948_0x2d88;function options(_0x4528af){var _0x4dfa58=a948_0x2d88;return{'sequelize':_0x4528af,'tableName':'whatsapp_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x4dfa58(0x94)};}module[a948_0x27d184(0x93)][a948_0x27d184(0x92)]=options; \ No newline at end of file diff --git a/server/api/whatsappInteraction/index.js b/server/api/whatsappInteraction/index.js index cbe4e66..1396782 100644 --- a/server/api/whatsappInteraction/index.js +++ b/server/api/whatsappInteraction/index.js @@ -1 +1 @@ -const a949_0x522c=['addTags','get','put','tracked','../../components/auth/service','download','whatsappinteraction:destroy','describe','./whatsappInteraction.controller','post','/:id/messages','show','express','removeTags','whatsappinteraction:addtags','isAuthenticated','update','getMessages','/:id/tags','destroy','index','addMessage','/:id','whatsapp'];(function(_0x2df7ed,_0x4f1957){const _0x522c87=function(_0x3e6a0d){while(--_0x3e6a0d){_0x2df7ed['push'](_0x2df7ed['shift']());}};_0x522c87(++_0x4f1957);}(a949_0x522c,0xd8));const a949_0x3e6a=function(_0x2df7ed,_0x4f1957){_0x2df7ed=_0x2df7ed-0x10b;let _0x522c87=a949_0x522c[_0x2df7ed];return _0x522c87;};const a949_0x72b40d=a949_0x3e6a;'use strict';const express=require(a949_0x72b40d(0x117)),router=express['Router'](),auth=require(a949_0x72b40d(0x10f)),interaction=require('../../components/interaction/service'),controller=require(a949_0x72b40d(0x113));router[a949_0x72b40d(0x10c)]('/',auth[a949_0x72b40d(0x11a)](),controller[a949_0x72b40d(0x11f)]),router[a949_0x72b40d(0x10c)]('/describe',auth['isAuthenticated'](),controller[a949_0x72b40d(0x112)]),router[a949_0x72b40d(0x10c)](a949_0x72b40d(0x121),auth[a949_0x72b40d(0x11a)](),controller[a949_0x72b40d(0x116)]),router['get'](a949_0x72b40d(0x115),auth[a949_0x72b40d(0x11a)](),controller[a949_0x72b40d(0x11c)]),router['get']('/:id/download',auth[a949_0x72b40d(0x11a)](),controller[a949_0x72b40d(0x110)]),router[a949_0x72b40d(0x114)]('/',auth[a949_0x72b40d(0x11a)](),controller['create']),router[a949_0x72b40d(0x114)](a949_0x72b40d(0x115),auth['isAuthenticated'](),controller[a949_0x72b40d(0x120)]),router[a949_0x72b40d(0x114)](a949_0x72b40d(0x11d),auth[a949_0x72b40d(0x11a)](),interaction[a949_0x72b40d(0x10e)](a949_0x72b40d(0x122),a949_0x72b40d(0x119)),controller[a949_0x72b40d(0x10b)]),router[a949_0x72b40d(0x10d)]('/:id',auth[a949_0x72b40d(0x11a)](),interaction[a949_0x72b40d(0x10e)](a949_0x72b40d(0x122),'whatsappinteraction:update'),controller[a949_0x72b40d(0x11b)]),router['delete']('/:id',auth[a949_0x72b40d(0x11a)](),interaction[a949_0x72b40d(0x10e)]('whatsapp',a949_0x72b40d(0x111)),controller[a949_0x72b40d(0x11e)]),router['delete'](a949_0x72b40d(0x11d),auth['isAuthenticated'](),controller[a949_0x72b40d(0x118)]),module['exports']=router; \ No newline at end of file +const a949_0x112d=['whatsapp','/:id/tags','describe','post','./whatsappInteraction.controller','put','removeTags','destroy','create','/:id','addMessage','delete','/:id/messages','tracked','get','/describe','exports','../../components/auth/service','getMessages','express','update','../../components/interaction/service','download','isAuthenticated','addTags','show','Router','whatsappinteraction:update'];(function(_0x440595,_0x5bc022){const _0x112d63=function(_0x207030){while(--_0x207030){_0x440595['push'](_0x440595['shift']());}};_0x112d63(++_0x5bc022);}(a949_0x112d,0x173));const a949_0x2070=function(_0x440595,_0x5bc022){_0x440595=_0x440595-0xe8;let _0x112d63=a949_0x112d[_0x440595];return _0x112d63;};const a949_0x5f00e6=a949_0x2070;'use strict';const express=require(a949_0x5f00e6(0xf4)),router=express[a949_0x5f00e6(0xfb)](),auth=require(a949_0x5f00e6(0xf2)),interaction=require(a949_0x5f00e6(0xf6)),controller=require(a949_0x5f00e6(0x101));router[a949_0x5f00e6(0xef)]('/',auth['isAuthenticated'](),controller['index']),router['get'](a949_0x5f00e6(0xf0),auth[a949_0x5f00e6(0xf8)](),controller[a949_0x5f00e6(0xff)]),router[a949_0x5f00e6(0xef)](a949_0x5f00e6(0xea),auth['isAuthenticated'](),controller[a949_0x5f00e6(0xfa)]),router['get'](a949_0x5f00e6(0xed),auth[a949_0x5f00e6(0xf8)](),controller[a949_0x5f00e6(0xf3)]),router[a949_0x5f00e6(0xef)]('/:id/download',auth['isAuthenticated'](),controller[a949_0x5f00e6(0xf7)]),router[a949_0x5f00e6(0x100)]('/',auth['isAuthenticated'](),controller[a949_0x5f00e6(0xe9)]),router['post'](a949_0x5f00e6(0xed),auth['isAuthenticated'](),controller[a949_0x5f00e6(0xeb)]),router[a949_0x5f00e6(0x100)]('/:id/tags',auth['isAuthenticated'](),interaction['tracked'](a949_0x5f00e6(0xfd),'whatsappinteraction:addtags'),controller[a949_0x5f00e6(0xf9)]),router[a949_0x5f00e6(0x102)](a949_0x5f00e6(0xea),auth[a949_0x5f00e6(0xf8)](),interaction[a949_0x5f00e6(0xee)](a949_0x5f00e6(0xfd),a949_0x5f00e6(0xfc)),controller[a949_0x5f00e6(0xf5)]),router[a949_0x5f00e6(0xec)](a949_0x5f00e6(0xea),auth[a949_0x5f00e6(0xf8)](),interaction[a949_0x5f00e6(0xee)]('whatsapp','whatsappinteraction:destroy'),controller[a949_0x5f00e6(0xe8)]),router[a949_0x5f00e6(0xec)](a949_0x5f00e6(0xfe),auth[a949_0x5f00e6(0xf8)](),controller[a949_0x5f00e6(0x103)]),module[a949_0x5f00e6(0xf1)]=router; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.attributes.js b/server/api/whatsappInteraction/whatsappInteraction.attributes.js index 5f999db..96f4037 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.attributes.js +++ b/server/api/whatsappInteraction/whatsappInteraction.attributes.js @@ -1 +1 @@ -const a950_0x3814=['attributes','DATE','exports','BOOLEAN','STRING','out','ENUM'];(function(_0x3f4043,_0x10fb92){const _0x38140f=function(_0xeed3f){while(--_0xeed3f){_0x3f4043['push'](_0x3f4043['shift']());}};_0x38140f(++_0x10fb92);}(a950_0x3814,0x139));const a950_0xeed3=function(_0x3f4043,_0x10fb92){_0x3f4043=_0x3f4043-0x173;let _0x38140f=a950_0x3814[_0x3f4043];return _0x38140f;};const a950_0x4b2181=a950_0xeed3;'use strict';const {DataTypes}=require('sequelize'),attributes={'closed':{'type':DataTypes[a950_0x4b2181(0x178)],'defaultValue':![]},'closedAt':{'type':DataTypes['DATE']},'disposition':{'type':DataTypes[a950_0x4b2181(0x179)]},'secondDisposition':{'type':DataTypes[a950_0x4b2181(0x179)]},'thirdDisposition':{'type':DataTypes[a950_0x4b2181(0x179)]},'note':{'type':DataTypes['STRING']},'phone':{'type':DataTypes['STRING']},'read1stAt':{'type':DataTypes['DATE']},'firstMsgDirection':{'type':DataTypes[a950_0x4b2181(0x174)]('in',a950_0x4b2181(0x173)),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':DataTypes[a950_0x4b2181(0x176)]},'lastMsgDirection':{'type':DataTypes['ENUM']('in','out'),'defaultValue':'in','allowNull':![]}};module[a950_0x4b2181(0x177)][a950_0x4b2181(0x175)]=attributes; \ No newline at end of file +const a950_0x4c70=['DATE','exports','BOOLEAN','attributes','STRING','out','ENUM'];(function(_0x342068,_0x197bfc){const _0x4c700c=function(_0x1ef39c){while(--_0x1ef39c){_0x342068['push'](_0x342068['shift']());}};_0x4c700c(++_0x197bfc);}(a950_0x4c70,0x195));const a950_0x1ef3=function(_0x342068,_0x197bfc){_0x342068=_0x342068-0x18f;let _0x4c700c=a950_0x4c70[_0x342068];return _0x4c700c;};const a950_0x14d068=a950_0x1ef3;'use strict';const {DataTypes}=require('sequelize'),attributes={'closed':{'type':DataTypes[a950_0x14d068(0x192)],'defaultValue':![]},'closedAt':{'type':DataTypes[a950_0x14d068(0x190)]},'disposition':{'type':DataTypes[a950_0x14d068(0x194)]},'secondDisposition':{'type':DataTypes['STRING']},'thirdDisposition':{'type':DataTypes[a950_0x14d068(0x194)]},'note':{'type':DataTypes[a950_0x14d068(0x194)]},'phone':{'type':DataTypes['STRING']},'read1stAt':{'type':DataTypes[a950_0x14d068(0x190)]},'firstMsgDirection':{'type':DataTypes[a950_0x14d068(0x18f)]('in',a950_0x14d068(0x195)),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':DataTypes[a950_0x14d068(0x190)]},'lastMsgDirection':{'type':DataTypes[a950_0x14d068(0x18f)]('in',a950_0x14d068(0x195)),'defaultValue':'in','allowNull':![]}};module[a950_0x14d068(0x191)][a950_0x14d068(0x193)]=attributes; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.controller.js b/server/api/whatsappInteraction/whatsappInteraction.controller.js index e2359dc..0a99776 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.controller.js +++ b/server/api/whatsappInteraction/whatsappInteraction.controller.js @@ -1 +1 @@ -const a951_0x37b3=['from','contactName','Attachment','views','toFile','operator','register','downloadInteraction.html','tmp','user','err','pipe','rawAttributes','ContactId','nolimit','error','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','u.id\x20=\x20ui.UserId','a.mandatoryDisposition','i.WhatsappAccountId\x20IN\x20?','i.id','create','Contact.email','attributes','Owner','rows','40px','set','offset','type','$lte','json','$substring','gte','keys','createWriteStream','DESC','show','ids','squel','isNumeric','../../rediscache','unlinkSync','map','split','getWhatsappAccounts','createdAt','send','compact','emit','html-pdf','limit','include','filters','value','then','Contact.lastName','union','get','findOne','setTags','CmContact','length','transcript-','root','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','key','c.fax','push','index','\x0a\x20\x20\x20\x20\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','Contact.phone','getFullTextValue','unreadMessages','tag','pick','group','Contact.mobile','attachments','i.phone\x20LIKE\x20?','includeAll','isEmpty','secret','Tags','name','mkdirSync','CASE\x20WHEN\x20(c.firstName\x20IS\x20NOT\x20NULL\x20AND\x20c.firstName\x20<>\x20\x27\x27)\x20OR\x20(c.lastName\x20IS\x20NOT\x20NULL\x20AND\x20c.lastName\x20<>\x20\x27\x27)\x20THEN\x20CONCAT(IFNULL(c.firstName,\x20\x27\x27),\x20\x27\x20\x27,\x20IFNULL(c.lastName,\x20\x27\x27))\x20ELSE\x20\x27Unknown\x27\x20END','YYYY-MM-DD\x20HH:mm:ss','Contact','TagIds','$gte','c.phone','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','c.email','./whatsappInteraction.socket','\x20IS\x20NULL','fullname','basename','WhatsappAccountId','SELECT','where','../../components/parsers/qs','cm_contacts','zip-dir','filter','30px','.pdf','files','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','Contact.firstName','addTags','api','resolve','server','keyBy','c.mobile','../../config/logger','read','me.WhatsappInteractionId\x20=\x20i.id','count','format','`\x20>\x200','c.lastName','it.WhatsappInteractionId\x20=\x20i.id','ui.WhatsappInteractionId\x20IN\x20?','status','UserId','../../config/environment','whatsapp_interaction_has_tags','having','GROUP_CONCAT(DISTINCT\x20t.id)','u.fullname','lodash','i.*','field','Tag','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','isArray','`unreadMessages`\x20=\x200','a.id\x20=\x20i.WhatsappAccountId','`unreadMessages`\x20>\x200','t.id\x20IN\x20?','u.id','color','merge','o.internal','firstName','model','transcript-%d-%s.zip','destroy','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','forEach','closedAt','catch','i.WhatsappAccountId\x20IS\x20NULL','Contact.fax','out','some','toString','i.WhatsappAccountId\x20IS\x20NOT\x20NULL','Owner.internal','query','parseSearch','all','join','`\x20=\x200','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\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','YYYY-MM-DD','search','getMessages','Account','direction','WhatsappInteractionId','unix','Owner.fullname','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','WhatsappMessage','find','t.id\x20=\x20it.TagId','text','fields','renderFile','fieldName','omit','users','params','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','WhatsappInteraction','journey','stack','existsSync','start','path','sequelize','undefined','whatsappInteractionTags:save','Whatsapp','sort','buildExpression','sendStatus','whatsapp_messages','describe','intersection','replace','select','lastName','10px','Messages','body','end','download','tools_tags','i.id\x20LIKE\x20?','Content-Range','parse','addMessage','order','User','removeTags','N.A.','options','left_join'];(function(_0x310356,_0x5df022){const _0x37b3b7=function(_0x3eb4bf){while(--_0x3eb4bf){_0x310356['push'](_0x310356['shift']());}};_0x37b3b7(++_0x5df022);}(a951_0x37b3,0x133));const a951_0x3eb4=function(_0x310356,_0x5df022){_0x310356=_0x310356-0x15c;let _0x37b3b7=a951_0x37b3[_0x310356];return _0x37b3b7;};const a951_0x5d0354=a951_0x3eb4;'use strict';const pdf=require(a951_0x5d0354(0x217)),rimraf=require('rimraf'),zipdir=require(a951_0x5d0354(0x16e)),moment=require('moment'),util=require('util'),path=require(a951_0x5d0354(0x1c7)),ejs=require('ejs'),fs=require('fs'),_=require(a951_0x5d0354(0x18b)),squel=require(a951_0x5d0354(0x20c)),{getSocket}=require(a951_0x5d0354(0x20e)),socket=getSocket(),qs=require(a951_0x5d0354(0x16c)),as=require('../../components/parsers/advancedSearch'),logger=require(a951_0x5d0354(0x17b))(a951_0x5d0354(0x176)),config=require(a951_0x5d0354(0x186)),{db}=require('../../mysqldb'),{Op,QueryTypes}=require('sequelize');require(a951_0x5d0354(0x165))[a951_0x5d0354(0x1eb)](socket);function respondWithStatusCode(_0x2387b0,_0x41696d){return _0x41696d=_0x41696d||0xcc,function(_0x16768b){const _0x35d07e=a951_0x3eb4;if(_0x16768b)return _0x2387b0[_0x35d07e(0x1ce)](_0x41696d);return _0x2387b0[_0x35d07e(0x184)](_0x41696d)[_0x35d07e(0x1d8)]();};}function respondWithResult(_0xafe44e,_0xa23f96){return _0xa23f96=_0xa23f96||0xc8,function(_0x28b182){if(_0x28b182)return _0xafe44e['status'](_0xa23f96)['json'](_0x28b182);};}function respondWithFilteredResult(_0x27aa47,_0x424fd1){return function(_0x48625c){const _0x51bdd4=a951_0x3eb4;if(_0x48625c){const _0x27e822=_0x48625c['count'],_0x5ac445=_0x424fd1[_0x51bdd4(0x201)];let _0x56758e=_0x424fd1[_0x51bdd4(0x201)]+_0x424fd1[_0x51bdd4(0x218)],_0x512d42;return _0x56758e>=_0x27e822?(_0x56758e=_0x27e822,_0x512d42=0xc8):_0x512d42=0xce,_0x27aa47[_0x51bdd4(0x184)](_0x512d42),_0x27aa47[_0x51bdd4(0x200)](_0x51bdd4(0x1dc),_0x5ac445+'-'+_0x56758e+'/'+_0x27e822)[_0x51bdd4(0x204)](_0x48625c);}return null;};}function saveUpdates(_0x5af5d3){return function(_0x53e26a){const _0x511d84=a951_0x3eb4;if(_0x53e26a)return _0x53e26a['update'](_0x5af5d3)[_0x511d84(0x21c)](function(_0x28fae9){return _0x28fae9;});return null;};}function removeEntity(_0xfdf2e8){return function(_0xc33c0e){const _0x3762c7=a951_0x3eb4;if(_0xc33c0e)return _0xc33c0e[_0x3762c7(0x19c)]()['then'](function(){const _0x4c4e64=_0x3762c7;_0xfdf2e8[_0x4c4e64(0x184)](0xcc)['end']();});};}function handleEntityNotFound(_0x4c4dc8){return function(_0x1fc377){const _0x38a015=a951_0x3eb4;return!_0x1fc377&&_0x4c4dc8[_0x38a015(0x1ce)](0x194),_0x1fc377;};}function handleError(_0x6944f4,_0x1a2a2f){return _0x1a2a2f=_0x1a2a2f||0x1f4,function(_0x33114e){const _0xbb31d=a951_0x3eb4;logger[_0xbb31d(0x1f4)](_0x33114e[_0xbb31d(0x1c4)]),_0x33114e[_0xbb31d(0x239)]&&delete _0x33114e[_0xbb31d(0x239)],_0x6944f4[_0xbb31d(0x184)](_0x1a2a2f)[_0xbb31d(0x214)](_0x33114e);};}function getInteractionUsers(_0x4466fb,_0x43902e){return new Promise(function(_0x512df7,_0x4f7bcb){const _0x1f1d73=a951_0x3eb4;try{_0x43902e[_0x4466fb['id']]&&(_0x4466fb['Users']=_[_0x1f1d73(0x210)](_0x43902e[_0x4466fb['id']],function(_0x56b4aa){const _0x37cafc=_0x1f1d73;return{'id':_0x56b4aa['id'],'fullname':_0x56b4aa[_0x37cafc(0x167)]};}));}catch(_0x2a55a1){_0x4f7bcb(_0x2a55a1);}_0x512df7(_0x4466fb);});}function getInteractionTags(_0x21389a,_0x186543){return new Promise(function(_0x443678,_0x29a8ce){const _0x202c61=a951_0x3eb4;try{_0x21389a[_0x202c61(0x160)]&&(_0x21389a[_0x202c61(0x238)]=[],_0x21389a[_0x202c61(0x160)][_0x202c61(0x211)](',')[_0x202c61(0x19e)](function(_0x5b4882){const _0x48dab2=_0x202c61;_0x21389a[_0x48dab2(0x238)][_0x48dab2(0x229)](_0x186543[_0x5b4882]);})),delete _0x21389a[_0x202c61(0x160)];}catch(_0xf7665f){_0x29a8ce(_0xf7665f);}_0x443678(_0x21389a);});}function updateWhatsappInteraction(_0x5d05b0,_0x14c0e4,_0x5d8a2a){return new Promise(function(_0x40d0ac,_0xe9558a){const _0x5dea6c=a951_0x3eb4;return getInteractionUsers(_0x5d05b0,_0x5d8a2a)[_0x5dea6c(0x21c)](function(_0x23df7c){return getInteractionTags(_0x23df7c,_0x14c0e4);})[_0x5dea6c(0x21c)](function(_0x45edcd){_0x40d0ac(_0x45edcd);})[_0x5dea6c(0x1a0)](function(_0x3feadb){_0xe9558a(_0x3feadb);});});}exports[a951_0x5d0354(0x22a)]=function(_0x5be43e,_0x393203){const _0x43eb16=a951_0x5d0354,_0x5ad46d={},_0x5b7df5={},_0x3d97b6={'count':0x0,'rows':[]},_0x5c75c3=_[_0x43eb16(0x210)](db[_0x43eb16(0x1c2)][_0x43eb16(0x1f1)],function(_0x1e92f4){const _0x3b85f7=_0x43eb16;return{'name':_0x1e92f4[_0x3b85f7(0x1bd)],'type':_0x1e92f4[_0x3b85f7(0x202)][_0x3b85f7(0x227)]};});_0x5b7df5[_0x43eb16(0x19a)]=_['map'](_0x5c75c3,_0x43eb16(0x239)),_0x5b7df5[_0x43eb16(0x1a8)]=_['keys'](_0x5be43e[_0x43eb16(0x1a8)]),_0x5b7df5['filters']=_[_0x43eb16(0x1d1)](_0x5b7df5[_0x43eb16(0x19a)],_0x5b7df5[_0x43eb16(0x1a8)]),_0x5ad46d[_0x43eb16(0x1fc)]=_[_0x43eb16(0x1d1)](_0x5b7df5['model'],qs[_0x43eb16(0x1bb)](_0x5be43e[_0x43eb16(0x1a8)][_0x43eb16(0x1bb)])),_0x5ad46d['attributes']=_0x5ad46d['attributes'][_0x43eb16(0x223)]?_0x5ad46d[_0x43eb16(0x1fc)]:_0x5b7df5['model'];typeof _0x5be43e['query'][_0x43eb16(0x1f3)]===_0x43eb16(0x1c9)&&(_0x5ad46d[_0x43eb16(0x218)]=qs[_0x43eb16(0x218)](_0x5be43e[_0x43eb16(0x1a8)][_0x43eb16(0x218)]),_0x5ad46d['offset']=qs['offset'](_0x5be43e[_0x43eb16(0x1a8)][_0x43eb16(0x201)]));_0x5ad46d[_0x43eb16(0x1df)]=qs[_0x43eb16(0x1cc)](_0x5be43e['query'][_0x43eb16(0x1cc)]),_0x5ad46d[_0x43eb16(0x16b)]=qs['filters'](_['pick'](_0x5be43e['query'],_0x5b7df5[_0x43eb16(0x21a)]),_0x5c75c3);let _0x395ad6=[];const _0x536e8f=squel[_0x43eb16(0x1d3)]()[_0x43eb16(0x18d)]('id')[_0x43eb16(0x18d)](_0x43eb16(0x239))[_0x43eb16(0x18d)](_0x43eb16(0x196))['from']('tools_tags'),_0x49b6e7=squel[_0x43eb16(0x1d3)]()[_0x43eb16(0x18d)](_0x43eb16(0x195))[_0x43eb16(0x18d)](_0x43eb16(0x18a))[_0x43eb16(0x18d)]('ui.WhatsappInteractionId')[_0x43eb16(0x1e5)]('user_has_whatsapp_interactions','ui')[_0x43eb16(0x1e4)](_0x43eb16(0x1bf),'u',_0x43eb16(0x1f6)),_0x283cc8=squel[_0x43eb16(0x1d3)]()['from']('whatsapp_interactions','i')[_0x43eb16(0x1e4)](_0x43eb16(0x16d),'c',_0x43eb16(0x18f))[_0x43eb16(0x1e4)](_0x43eb16(0x1bf),'o','o.id\x20=\x20i.UserId')[_0x43eb16(0x1e4)]('whatsapp_accounts','a',_0x43eb16(0x192))[_0x43eb16(0x1e4)](_0x43eb16(0x1cf),'me',_0x43eb16(0x17d))['left_join'](_0x43eb16(0x187),'it',_0x43eb16(0x182))[_0x43eb16(0x1e4)](_0x43eb16(0x1da),'t',_0x43eb16(0x1b9)),_0x488021=squel['expr']();let _0x24b47f=[];const _0x50801c=squel['expr']();let _0x513cf9;if(_0x5be43e[_0x43eb16(0x1a8)][_0x43eb16(0x1af)]){_0x513cf9=as[_0x43eb16(0x1a9)](_0x5be43e[_0x43eb16(0x1a8)][_0x43eb16(0x1af)]);const _0x4f8e89=_0x513cf9['sqlOperator'];for(let _0x1c1a90=0x0;_0x1c1a90<_0x513cf9['conditions'][_0x43eb16(0x223)];_0x1c1a90++){const _0x2edd29=_0x513cf9['conditions'][_0x1c1a90],_0x3b26bc='i';let _0x1bc7c6,_0x342597=_[_0x43eb16(0x1b8)](_0x5c75c3,[_0x43eb16(0x239),_0x2edd29[_0x43eb16(0x18d)]]);if(!_0x342597)switch(_0x2edd29[_0x43eb16(0x18d)]){case _0x43eb16(0x22e):_0x2edd29[_0x43eb16(0x21b)]==0x1?_0x283cc8[_0x43eb16(0x188)]('`'+_0x2edd29['field']+_0x43eb16(0x1ac)):_0x283cc8[_0x43eb16(0x188)]('`'+_0x2edd29[_0x43eb16(0x18d)]+_0x43eb16(0x180));break;case'Contact':if(_0x2edd29[_0x43eb16(0x1ea)]===_0x43eb16(0x205)){if(_0x2edd29['value']['split']('\x20')['length']>0x1)_0x488021[_0x4f8e89](_0x43eb16(0x163),qs['getFullTextValue'](_0x2edd29[_0x43eb16(0x21b)]),null);else{const _0x1f997e='%'+_0x2edd29[_0x43eb16(0x21b)]+'%';_0x488021[_0x4f8e89](_0x43eb16(0x1c1),_0x1f997e,_0x1f997e,_0x1f997e);}}else _0x342597=_[_0x43eb16(0x1b8)](_0x5c75c3,['name','ContactId']),_0x2edd29[_0x43eb16(0x18d)]=_0x43eb16(0x1f2),_0x1bc7c6=as['buildExpression'](_0x3b26bc,_0x342597[_0x43eb16(0x202)],_0x2edd29),_0x488021[_0x4f8e89](_0x1bc7c6[_0x43eb16(0x1ba)],_0x1bc7c6[_0x43eb16(0x21b)][_0x43eb16(0x1c6)],_0x1bc7c6[_0x43eb16(0x21b)][_0x43eb16(0x1d8)]);break;case'Tag':{const _0x5b0e66=_0x2edd29[_0x43eb16(0x21b)][_0x43eb16(0x211)](',')[_0x43eb16(0x210)](function(_0x552407){return Number(_0x552407);});_0x5b0e66[_0x43eb16(0x19e)](function(_0x1e5d96){const _0x3eb4ac=_0x43eb16;_0x50801c['or'](_0x3eb4ac(0x19d),'%,'+_0x1e5d96+',%');}),_0x24b47f=_[_0x43eb16(0x21e)](_0x24b47f,_0x5b0e66);}break;case _0x43eb16(0x1e0):_0x2edd29[_0x43eb16(0x1ea)]===_0x43eb16(0x205)?_0x488021[_0x4f8e89](_0x43eb16(0x1f5),'%'+_0x2edd29[_0x43eb16(0x21b)]+'%',null):(_0x342597=_[_0x43eb16(0x1b8)](_0x5c75c3,['name',_0x43eb16(0x185)]),_0x2edd29[_0x43eb16(0x18d)]=_0x43eb16(0x185),_0x1bc7c6=as[_0x43eb16(0x1cd)](_0x3b26bc,_0x342597['type'],_0x2edd29),_0x488021[_0x4f8e89](_0x1bc7c6[_0x43eb16(0x1ba)],_0x1bc7c6[_0x43eb16(0x21b)][_0x43eb16(0x1c6)],_0x1bc7c6[_0x43eb16(0x21b)][_0x43eb16(0x1d8)]));break;case _0x43eb16(0x1d7):_0x1bc7c6=as[_0x43eb16(0x1cd)]('me',null,_0x2edd29),_0x488021[_0x4f8e89](_0x1bc7c6['text'],_0x1bc7c6[_0x43eb16(0x21b)][_0x43eb16(0x1c6)],_0x1bc7c6['value'][_0x43eb16(0x1d8)]);break;}else _0x1bc7c6=as[_0x43eb16(0x1cd)](_0x3b26bc,_0x342597[_0x43eb16(0x202)],_0x2edd29),_0x488021[_0x4f8e89](_0x1bc7c6[_0x43eb16(0x1ba)],_0x1bc7c6['value'][_0x43eb16(0x1c6)],_0x1bc7c6[_0x43eb16(0x21b)][_0x43eb16(0x1d8)]);}}else{const _0x5ef5c8=_(_0x5be43e[_0x43eb16(0x1a8)])[_0x43eb16(0x207)]()['map'](function(_0x497b60){const _0x424192=_0x43eb16;return _[_0x424192(0x1a4)](_0x5c75c3,[_0x424192(0x239),_0x497b60])?_0x497b60:undefined;})[_0x43eb16(0x215)]()['value']();!_[_0x43eb16(0x236)](_0x5ef5c8)&&_0x5ef5c8[_0x43eb16(0x19e)](function(_0x35d3cf){const _0x3e1e26=_0x43eb16;if(_0x35d3cf===_0x3e1e26(0x169))_0x283cc8[_0x3e1e26(0x16b)](_0x3e1e26(0x1f8),[]['concat'](_0x5be43e['query'][_0x35d3cf]));else{if(_0x35d3cf==='createdAt'){const _0x23089b=JSON[_0x3e1e26(0x1dd)](_0x5be43e[_0x3e1e26(0x1a8)][_0x35d3cf])['$gte'],_0x49e0e6=JSON[_0x3e1e26(0x1dd)](_0x5be43e[_0x3e1e26(0x1a8)][_0x35d3cf])[_0x3e1e26(0x203)];_0x283cc8['where'](_0x3e1e26(0x226),_0x23089b,_0x49e0e6);}else _0x5be43e[_0x3e1e26(0x1a8)][_0x35d3cf]==='null'?_0x283cc8['where']('i.'+_0x35d3cf+_0x3e1e26(0x166)):_0x283cc8[_0x3e1e26(0x16b)]('i.'+_0x35d3cf+'\x20=\x20?',_0x5be43e['query'][_0x35d3cf]);}});_0x5be43e[_0x43eb16(0x1a8)][_0x43eb16(0x17c)]&&(_0x5be43e[_0x43eb16(0x1a8)][_0x43eb16(0x17c)]==0x1?_0x283cc8[_0x43eb16(0x188)](_0x43eb16(0x191)):_0x283cc8[_0x43eb16(0x188)](_0x43eb16(0x193)));_0x5be43e[_0x43eb16(0x1a8)][_0x43eb16(0x22f)]&&(_0x24b47f=_[_0x43eb16(0x190)](_0x5be43e[_0x43eb16(0x1a8)][_0x43eb16(0x22f)])?_0x5be43e[_0x43eb16(0x1a8)][_0x43eb16(0x22f)]:new Array(_0x5be43e['query'][_0x43eb16(0x22f)]),_0x24b47f[_0x43eb16(0x19e)](function(_0x5eb250){_0x50801c['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x5eb250+',%');}));if(_0x5be43e[_0x43eb16(0x1a8)][_0x43eb16(0x16f)]){const _0x2a7b76=_0x5be43e[_0x43eb16(0x1a8)][_0x43eb16(0x16f)][_0x43eb16(0x1d2)]('\x5c','\x5c\x5c')[_0x43eb16(0x1d2)](/'/g,'\x27\x27');qs[_0x43eb16(0x20d)](_0x2a7b76)?_0x488021['or'](_0x43eb16(0x1db),_0x2a7b76+'%')['or'](_0x43eb16(0x234),_0x2a7b76+'%'):_0x488021['or'](_0x43eb16(0x173),qs[_0x43eb16(0x22d)](_0x2a7b76))['or']('CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?',_0x2a7b76+'%');}}_0x283cc8['where'](_0x488021),_0x283cc8[_0x43eb16(0x231)](_0x43eb16(0x1f9));let _0xa20bbb={'type':QueryTypes[_0x43eb16(0x16a)],'raw':!![]};const _0x2f7d55=_0x283cc8['clone']();_0x2f7d55[_0x43eb16(0x18d)](_0x43eb16(0x1f9)),_0x2f7d55[_0x43eb16(0x18d)](_0x43eb16(0x1b6),'unreadMessages'),_0x5ad46d['order']&&_0x5ad46d[_0x43eb16(0x1df)][_0x43eb16(0x19e)](function(_0x1a6f40){const _0x1750a5=_0x43eb16,_0x351aaa=_0x1a6f40[0x0]===_0x1750a5(0x1e6)?_0x1a6f40[0x0]:'i.'+_0x1a6f40[0x0];_0x283cc8[_0x1750a5(0x1df)](_0x351aaa,_0x1a6f40[0x1]===_0x1750a5(0x209)?![]:!![]);}),!_[_0x43eb16(0x236)](_0x24b47f)&&(_0x283cc8['having'](_0x50801c),_0x2f7d55[_0x43eb16(0x16b)](_0x43eb16(0x194),_0x24b47f)),Promise[_0x43eb16(0x177)]()[_0x43eb16(0x21c)](function(){const _0x5872ae=_0x43eb16;if(!_0x513cf9){if(_0x5be43e['query']['WhatsappAccountId']||_0x5be43e['query'][_0x5872ae(0x1c3)])return;_0x2f7d55['where'](_0x5872ae(0x1a6)),_0x283cc8[_0x5872ae(0x16b)](_0x5872ae(0x1a6));return;}return _0x5be43e[_0x5872ae(0x1ee)][_0x5872ae(0x212)]({'attributes':['id'],'raw':!![]})[_0x5872ae(0x21c)](function(_0x1cb776){const _0xb307ca=_0x5872ae;_[_0xb307ca(0x236)](_0x1cb776)?(_0x2f7d55[_0xb307ca(0x16b)](_0xb307ca(0x1a1)),_0x283cc8[_0xb307ca(0x16b)](_0xb307ca(0x1a1))):(_0x2f7d55[_0xb307ca(0x16b)](_0xb307ca(0x1f8),_['map'](_0x1cb776,'id')),_0x283cc8['where']('i.WhatsappAccountId\x20IN\x20?',_[_0xb307ca(0x210)](_0x1cb776,'id')));});})[_0x43eb16(0x21c)](function(){const _0x325d3f=_0x43eb16;db[_0x325d3f(0x1c8)]['query'](_0x2f7d55[_0x325d3f(0x1a5)](),_0xa20bbb)['then'](function(_0x5f4572){const _0x4f0f97=_0x325d3f;_0x3d97b6['count']=_0x5f4572[_0x4f0f97(0x223)];if(_0x3d97b6[_0x4f0f97(0x17e)]===0x0)return[];return db[_0x4f0f97(0x1c8)][_0x4f0f97(0x1a8)](_0x536e8f['toString'](),_0xa20bbb)[_0x4f0f97(0x21c)](function(_0x1e50db){const _0x442794=_0x4f0f97;_0x395ad6=_[_0x442794(0x179)](_0x1e50db,'id'),_0xa20bbb=_[_0x442794(0x197)](_0xa20bbb,{'model':db[_0x442794(0x1c2)],'mapToModel':!![],'raw':!![],'nest':!![]});_0x5be43e['query'][_0x442794(0x1bb)]?_0x5ad46d[_0x442794(0x1fc)][_0x442794(0x19e)](function(_0x4d0c96){const _0x27df39=_0x442794;_0x283cc8[_0x27df39(0x18d)]('i.'+_0x4d0c96);}):(_0x283cc8['field'](_0x442794(0x1b6),'unreadMessages'),_0x283cc8['field']('a.key','Account.key'),_0x283cc8[_0x442794(0x18d)](_0x442794(0x1f7),'Account.mandatoryDisposition'),_0x283cc8[_0x442794(0x18d)](_0x442794(0x15d),'contactName'),_0x283cc8[_0x442794(0x18d)](_0x442794(0x18c)),_0x283cc8[_0x442794(0x18d)]('c.firstName',_0x442794(0x174)),_0x283cc8['field'](_0x442794(0x181),_0x442794(0x21d)),_0x283cc8[_0x442794(0x18d)](_0x442794(0x164),_0x442794(0x1fb)),_0x283cc8[_0x442794(0x18d)](_0x442794(0x162),_0x442794(0x22c)),_0x283cc8[_0x442794(0x18d)](_0x442794(0x17a),_0x442794(0x232)),_0x283cc8['field'](_0x442794(0x228),_0x442794(0x1a2)),_0x283cc8[_0x442794(0x18d)]('o.fullname',_0x442794(0x1b5)),_0x283cc8[_0x442794(0x18d)](_0x442794(0x198),_0x442794(0x1a7)),_0x283cc8[_0x442794(0x18d)](_0x442794(0x189),_0x442794(0x160)));if(_0x5ad46d[_0x442794(0x218)])_0x283cc8[_0x442794(0x218)](_0x5ad46d['limit']);if(_0x5ad46d[_0x442794(0x201)])_0x283cc8[_0x442794(0x201)](_0x5ad46d[_0x442794(0x201)]);return db[_0x442794(0x1c8)][_0x442794(0x1a8)](_0x283cc8['toString'](),_0xa20bbb);})[_0x4f0f97(0x21c)](function(_0x2d1742){const _0x17f30f=_0x4f0f97;return _0x49b6e7[_0x17f30f(0x16b)](_0x17f30f(0x183),_['map'](_0x2d1742,'id')),db[_0x17f30f(0x1c8)][_0x17f30f(0x1a8)](_0x49b6e7[_0x17f30f(0x1a5)](),_0xa20bbb)[_0x17f30f(0x21c)](function(_0x9b1073){const _0x25d2e3=_0x17f30f,_0x1e31a5=_['groupBy'](_0x9b1073,'WhatsappInteractionId'),_0x33fd19=[];return _0x2d1742[_0x25d2e3(0x19e)](function(_0x20f477){const _0x59de5c=_0x25d2e3;_0x33fd19[_0x59de5c(0x229)](updateWhatsappInteraction(_0x20f477,_0x395ad6,_0x1e31a5));}),Promise[_0x25d2e3(0x1aa)](_0x33fd19);});});})['then'](function(_0x328209){const _0x1eebe6=_0x325d3f;return _0x3d97b6[_0x1eebe6(0x1fe)]=_0x328209,_0x3d97b6;})[_0x325d3f(0x21c)](respondWithFilteredResult(_0x393203,_0x5ad46d));})[_0x43eb16(0x1a0)](handleError(_0x393203,null));},exports[a951_0x5d0354(0x20a)]=function(_0x2071a5,_0x30ad98){const _0x17c8b0=a951_0x5d0354;let _0x95e985={'raw':![],'where':{'id':_0x2071a5['params']['id']}};const _0x39aa14={};return _0x39aa14['model']=_['keys'](db[_0x17c8b0(0x1c2)]['rawAttributes']),_0x39aa14[_0x17c8b0(0x1a8)]=_[_0x17c8b0(0x207)](_0x2071a5[_0x17c8b0(0x1a8)]),_0x39aa14[_0x17c8b0(0x21a)]=_[_0x17c8b0(0x1d1)](_0x39aa14[_0x17c8b0(0x19a)],_0x39aa14['query']),_0x95e985[_0x17c8b0(0x1fc)]=_['intersection'](_0x39aa14[_0x17c8b0(0x19a)],qs[_0x17c8b0(0x1bb)](_0x2071a5[_0x17c8b0(0x1a8)][_0x17c8b0(0x1bb)])),_0x95e985[_0x17c8b0(0x1fc)]=_0x95e985[_0x17c8b0(0x1fc)][_0x17c8b0(0x223)]?_0x95e985[_0x17c8b0(0x1fc)]:_0x39aa14[_0x17c8b0(0x19a)],_0x2071a5[_0x17c8b0(0x1a8)][_0x17c8b0(0x235)]&&(_0x95e985[_0x17c8b0(0x219)]=[{'all':!![]}]),_0x95e985=_['merge']({},_0x95e985,_0x2071a5[_0x17c8b0(0x1e3)]),db[_0x17c8b0(0x1c2)][_0x17c8b0(0x220)](_0x95e985)[_0x17c8b0(0x21c)](handleEntityNotFound(_0x30ad98,null))[_0x17c8b0(0x21c)](respondWithResult(_0x30ad98,null))['catch'](handleError(_0x30ad98,null));},exports[a951_0x5d0354(0x1fa)]=function(_0x51bf15,_0x5dd21a){const _0x473ab4=a951_0x5d0354;return db[_0x473ab4(0x1c2)]['create'](_0x51bf15[_0x473ab4(0x1d7)],{})['then'](respondWithResult(_0x5dd21a,0xc9))[_0x473ab4(0x1a0)](handleError(_0x5dd21a,null));},exports['update']=function(_0x167b5b,_0x2c68af){const _0x59e1a6=a951_0x5d0354;return _0x167b5b[_0x59e1a6(0x1d7)]['id']&&delete _0x167b5b[_0x59e1a6(0x1d7)]['id'],db['WhatsappInteraction']['findOne']({'where':{'id':_0x167b5b[_0x59e1a6(0x1c0)]['id']}})['then'](handleEntityNotFound(_0x2c68af,null))['then'](saveUpdates(_0x167b5b[_0x59e1a6(0x1d7)],null))[_0x59e1a6(0x21c)](respondWithResult(_0x2c68af,null))[_0x59e1a6(0x1a0)](handleError(_0x2c68af,null));},exports['destroy']=function(_0x2b7593,_0x277350){const _0x34f565=a951_0x5d0354;return db[_0x34f565(0x1c2)][_0x34f565(0x220)]({'where':{'id':_0x2b7593[_0x34f565(0x1c0)]['id']}})['then'](handleEntityNotFound(_0x277350,null))[_0x34f565(0x21c)](removeEntity(_0x277350,null))[_0x34f565(0x1a0)](handleError(_0x277350,null));},exports[a951_0x5d0354(0x1d0)]=function(_0x4a4e89,_0x37576f){const _0x8ff4f0=a951_0x5d0354;return db[_0x8ff4f0(0x1c2)][_0x8ff4f0(0x1d0)]()[_0x8ff4f0(0x21c)](respondWithResult(_0x37576f,null))[_0x8ff4f0(0x1a0)](handleError(_0x37576f,null));},exports['addMessage']=function(_0x46f5ed,_0x17dd64){const _0x2bcfb0=a951_0x5d0354;return db[_0x2bcfb0(0x1b7)][_0x2bcfb0(0x220)]({'where':{'id':_0x46f5ed['params']['id']}})[_0x2bcfb0(0x21c)](function(_0x4215cf){const _0x5bd491=_0x2bcfb0;if(_0x4215cf)return _0x4215cf[_0x5bd491(0x1de)](_0x46f5ed[_0x5bd491(0x1d7)][_0x5bd491(0x20b)],{'through':_['omit'](_0x46f5ed[_0x5bd491(0x1d7)],[_0x5bd491(0x20b),'id'])});})[_0x2bcfb0(0x21c)](respondWithResult(_0x17dd64,null))[_0x2bcfb0(0x1a0)](handleError(_0x17dd64,null));},exports[a951_0x5d0354(0x1b0)]=function(_0x9634f4,_0x2aff4b){const _0x3aac3f=a951_0x5d0354;let _0x4008f5={'raw':![],'where':{}};const _0xbdd715={},_0x2c2f58={'count':0x0,'rows':[]};return db['WhatsappInteraction']['findOne']({'where':{'id':_0x9634f4['params']['id']}})[_0x3aac3f(0x21c)](handleEntityNotFound(_0x2aff4b,null))[_0x3aac3f(0x21c)](function(_0x460d7f){const _0x25dbb3=_0x3aac3f;if(_0x460d7f){_0xbdd715[_0x25dbb3(0x19a)]=_[_0x25dbb3(0x207)](db[_0x25dbb3(0x1b7)]['rawAttributes']),_0xbdd715['query']=_[_0x25dbb3(0x207)](_0x9634f4[_0x25dbb3(0x1a8)]),_0xbdd715['filters']=_[_0x25dbb3(0x1d1)](_0xbdd715['model'],_0xbdd715[_0x25dbb3(0x1a8)]),_0x4008f5[_0x25dbb3(0x1fc)]=_['intersection'](_0xbdd715[_0x25dbb3(0x19a)],qs['fields'](_0x9634f4[_0x25dbb3(0x1a8)][_0x25dbb3(0x1bb)])),_0x4008f5[_0x25dbb3(0x1fc)]=_0x4008f5[_0x25dbb3(0x1fc)][_0x25dbb3(0x223)]?_0x4008f5[_0x25dbb3(0x1fc)]:_0xbdd715['model'];typeof _0x9634f4[_0x25dbb3(0x1a8)][_0x25dbb3(0x1f3)]===_0x25dbb3(0x1c9)&&(_0x4008f5[_0x25dbb3(0x218)]=qs[_0x25dbb3(0x218)](_0x9634f4[_0x25dbb3(0x1a8)][_0x25dbb3(0x218)]),_0x4008f5[_0x25dbb3(0x201)]=qs['offset'](_0x9634f4[_0x25dbb3(0x1a8)]['offset']));_0x4008f5['order']=qs['sort'](_0x9634f4[_0x25dbb3(0x1a8)][_0x25dbb3(0x1cc)]),_0x4008f5[_0x25dbb3(0x16b)]=qs[_0x25dbb3(0x21a)](_[_0x25dbb3(0x230)](_0x9634f4['query'],_0xbdd715[_0x25dbb3(0x21a)])),_0x4008f5[_0x25dbb3(0x16b)][_0x25dbb3(0x1b3)]=_0x460d7f['id'];_0x9634f4[_0x25dbb3(0x1a8)]['filter']&&(_0x4008f5[_0x25dbb3(0x16b)]=_[_0x25dbb3(0x197)](_0x4008f5['where'],{[Op['or']]:_[_0x25dbb3(0x210)](_0x4008f5['attributes'],function(_0x2225a4){const _0x1dd41c=_0x25dbb3,_0x5d124c={};return _0x5d124c[_0x2225a4]={[Op['like']]:'%'+_0x9634f4[_0x1dd41c(0x1a8)][_0x1dd41c(0x16f)]+'%'},_0x5d124c;})}));if(_0x9634f4[_0x25dbb3(0x1a8)][_0x25dbb3(0x161)]){const _0x29056e=_0x9634f4['query'][_0x25dbb3(0x161)][_0x25dbb3(0x211)](','),_0x15aaa3={};_0x15aaa3[_0x29056e[0x0]]={[Op[_0x25dbb3(0x206)]]:moment(_0x29056e[0x1])[_0x25dbb3(0x17f)](_0x25dbb3(0x15e))},_0x4008f5[_0x25dbb3(0x16b)]=_[_0x25dbb3(0x197)](_0x4008f5[_0x25dbb3(0x16b)],_0x15aaa3);}return _0x4008f5=_[_0x25dbb3(0x197)]({},_0x4008f5,_0x9634f4['options']),db[_0x25dbb3(0x1b7)][_0x25dbb3(0x17e)]({'where':_0x4008f5[_0x25dbb3(0x16b)]})['then'](function(_0x499511){const _0x18e258=_0x25dbb3;return _0x2c2f58['count']=_0x499511,_0x9634f4[_0x18e258(0x1a8)]['includeAll']&&(_0x4008f5[_0x18e258(0x219)]=[{'all':!![]}]),db[_0x18e258(0x1b7)]['findAll'](_0x4008f5);})[_0x25dbb3(0x21c)](function(_0xa1176d){const _0x8cff6=_0x25dbb3;return _0x2c2f58[_0x8cff6(0x1fe)]=_0xa1176d,_0x2c2f58;});}})[_0x3aac3f(0x21c)](respondWithFilteredResult(_0x2aff4b,_0x4008f5))[_0x3aac3f(0x1a0)](handleError(_0x2aff4b,null));},exports[a951_0x5d0354(0x175)]=function(_0x30cf22,_0x2bc17a){const _0x4d1d73=a951_0x5d0354;return db['WhatsappInteraction'][_0x4d1d73(0x220)]({'where':{'id':_0x30cf22[_0x4d1d73(0x1c0)]['id']}})[_0x4d1d73(0x21c)](function(_0x12b0ab){const _0x3e87b1=_0x4d1d73;if(_0x12b0ab)return _0x12b0ab[_0x3e87b1(0x221)](_0x30cf22[_0x3e87b1(0x1d7)]['ids'],{'through':_[_0x3e87b1(0x1be)](_0x30cf22[_0x3e87b1(0x1d7)],[_0x3e87b1(0x20b),'id'])})[_0x3e87b1(0x21c)](function(){const _0x40ca9b=_0x3e87b1;return db[_0x40ca9b(0x18e)]['findAll']({'attributes':['id',_0x40ca9b(0x239),_0x40ca9b(0x196)],'where':{'id':_0x30cf22[_0x40ca9b(0x1d7)][_0x40ca9b(0x20b)]}});})[_0x3e87b1(0x21c)](function(_0x202375){const _0x30cf26=_0x3e87b1;return socket[_0x30cf26(0x216)](_0x30cf26(0x1ca),{'id':Number(_0x30cf22['params']['id']),'tags':_0x202375||[]}),{'id':Number(_0x30cf22[_0x30cf26(0x1c0)]['id']),'tags':_0x202375||[]};});})[_0x4d1d73(0x21c)](respondWithResult(_0x2bc17a,null))[_0x4d1d73(0x1a0)](handleError(_0x2bc17a,null));},exports[a951_0x5d0354(0x1e1)]=function(_0x1e5bd4,_0x912a7f){const _0x296f20=a951_0x5d0354;return db[_0x296f20(0x1c2)]['findOne']({'where':{'id':_0x1e5bd4[_0x296f20(0x1c0)]['id']}})[_0x296f20(0x21c)](handleEntityNotFound(_0x912a7f,null))[_0x296f20(0x21c)](function(_0x215816){if(_0x215816)return _0x215816['removeTags'](_0x1e5bd4['query']['ids']);})['then'](respondWithStatusCode(_0x912a7f,null))[_0x296f20(0x1a0)](handleError(_0x912a7f,null));},exports['download']=function(_0x156554,_0x348040){const _0x3bcb42=a951_0x5d0354,_0x21ac0c=moment()[_0x3bcb42(0x1b4)]()['toString'](),_0x338263=path[_0x3bcb42(0x1ab)](config[_0x3bcb42(0x225)],_0x3bcb42(0x172),_0x3bcb42(0x1ed)),_0xa603de=path[_0x3bcb42(0x1ab)](config[_0x3bcb42(0x225)],_0x3bcb42(0x178),_0x3bcb42(0x172),'attachments'),_0x57a327=path[_0x3bcb42(0x1ab)](_0x338263,_0x21ac0c),_0x5606f9=util['format'](_0x3bcb42(0x19b),_0x156554['params']['id'],_0x21ac0c),_0x364ae7=path[_0x3bcb42(0x1ab)](_0x338263,_0x5606f9),_0x1953a8=[];_0x1953a8[_0x3bcb42(0x229)]({'model':db[_0x3bcb42(0x1e0)],'as':_0x3bcb42(0x1e0),'attributes':['id',_0x3bcb42(0x167)],'raw':!![]}),_0x1953a8[_0x3bcb42(0x229)]({'model':db[_0x3bcb42(0x222)],'as':_0x3bcb42(0x15f),'attributes':['id',_0x3bcb42(0x199),_0x3bcb42(0x1d4)],'raw':!![]});_0x156554[_0x3bcb42(0x1a8)][_0x3bcb42(0x233)]&&_0x1953a8[_0x3bcb42(0x229)]({'model':db[_0x3bcb42(0x1e7)],'as':_0x3bcb42(0x1e7),'raw':!![]});const _0x2bd1fd=[{'model':db[_0x3bcb42(0x1b7)],'as':_0x3bcb42(0x1d6),'attributes':['id',_0x3bcb42(0x1d7),_0x3bcb42(0x213),_0x3bcb42(0x1b2),_0x3bcb42(0x237),_0x3bcb42(0x17c)],'include':_0x1953a8}];return _0x2bd1fd['push']({'model':db['WhatsappAccount'],'as':_0x3bcb42(0x1b1),'attributes':['id','name']}),_0x2bd1fd[_0x3bcb42(0x229)]({'model':db['User'],'as':'Owner','attributes':['id',_0x3bcb42(0x167)]}),db[_0x3bcb42(0x1c2)][_0x3bcb42(0x220)]({'where':{'id':_0x156554[_0x3bcb42(0x1c0)]['id']},'include':_0x2bd1fd})[_0x3bcb42(0x21c)](handleEntityNotFound(_0x348040,null))[_0x3bcb42(0x21c)](function(_0x3e5904){const _0x224790=_0x3bcb42;if(_0x3e5904){const _0x2b4f8d=_0x3e5904[_0x224790(0x21f)]({'plain':!![]});fs[_0x224790(0x15c)](_0x57a327);const _0x51f2cf={'format':'A4','border':_0x224790(0x1d5),'header':{'height':_0x224790(0x1ff),'contents':{'first':_0x224790(0x22b)}},'footer':{'height':_0x224790(0x170),'contents':{'default':util[_0x224790(0x17f)](_0x224790(0x1ad),util['format']('%s\x20#%d',_0x224790(0x1cb),_0x2b4f8d['id']),moment()[_0x224790(0x17f)](_0x224790(0x1ae))[_0x224790(0x1a5)]())}}},_0x4c2bbd={'channel':_0x224790(0x1cb),'account':_0x2b4f8d['Account']['name'],'agent':_0x2b4f8d[_0x224790(0x1fd)]?_0x2b4f8d[_0x224790(0x1fd)][_0x224790(0x167)]:_0x224790(0x1e2),'createdAt':moment(_0x2b4f8d[_0x224790(0x213)])['format'](_0x224790(0x15e))[_0x224790(0x1a5)](),'closedAt':_0x2b4f8d['closed']?moment(_0x2b4f8d[_0x224790(0x19f)])['format']('YYYY-MM-DD\x20HH:mm:ss')['toString']():'','disposition':_0x2b4f8d['disposition'],'messages':_(_0x2b4f8d['Messages'])[_0x224790(0x16f)]({'secret':![]})[_0x224790(0x210)](function(_0x58012e){const _0x239074=_0x224790;if(_0x58012e['Attachment']){const _0x1e0af7=path['join'](_0xa603de,_0x58012e['Attachment'][_0x239074(0x168)]);fs[_0x239074(0x1c5)](_0x1e0af7)&&fs['createReadStream'](_0x1e0af7)[_0x239074(0x1f0)](fs[_0x239074(0x208)](path[_0x239074(0x1ab)](_0x57a327,_0x58012e[_0x239074(0x1e7)]['basename'])));}return{'date':moment(_0x58012e[_0x239074(0x213)])['format'](_0x239074(0x15e))['toString'](),'sender':_0x58012e[_0x239074(0x1b2)]===_0x239074(0x1a3)?_0x58012e['User']?_0x58012e[_0x239074(0x1e0)]['fullname']:'System':_0x58012e['Contact'][_0x239074(0x199)]+(_0x58012e[_0x239074(0x15f)][_0x239074(0x1d4)]?'\x20'+_0x58012e[_0x239074(0x15f)]['lastName']:''),'body':_0x58012e['Attachment']?_0x58012e[_0x239074(0x1e7)]['basename']:_0x58012e[_0x239074(0x1d7)],'direction':_0x58012e[_0x239074(0x1b2)]===_0x239074(0x1a3)?'A':'C','secret':_0x58012e[_0x239074(0x237)],'read':_0x58012e[_0x239074(0x17c)],'attachment':_0x58012e['Attachment']};})['value']()};return ejs[_0x224790(0x1bc)](path[_0x224790(0x1ab)](config[_0x224790(0x225)],'server',_0x224790(0x1e8),_0x224790(0x1ec)),{'interaction':_0x4c2bbd})[_0x224790(0x21c)](function(_0x410254){return new Promise(function(_0x4bfeaa,_0x29613d){const _0x19ae0e=a951_0x3eb4;pdf['create'](_0x410254,_0x51f2cf)[_0x19ae0e(0x1e9)](path[_0x19ae0e(0x1ab)](_0x57a327,_0x19ae0e(0x224)+_0x2b4f8d['id']+'-'+_0x21ac0c+_0x19ae0e(0x171)),function(_0x5b330b,_0x1a098d){if(_0x5b330b)return _0x29613d(_0x5b330b);_0x4bfeaa(_0x1a098d);});});})[_0x224790(0x21c)](function(){const _0x2aed51=_0x224790;return new Promise(function(_0x3d6757,_0x5281a5){zipdir(_0x57a327,{'saveTo':_0x364ae7},function(_0x70ab30,_0x300b35){if(_0x70ab30)return _0x5281a5(_0x70ab30);return _0x3d6757(_0x300b35);});})[_0x2aed51(0x21c)](function(){return new Promise(function(_0x30bcf4,_0x636139){rimraf(_0x57a327,function(_0x5b27c2){if(_0x5b27c2)_0x636139(_0x5b27c2);return _0x30bcf4();});});})[_0x2aed51(0x21c)](function(){const _0x52fe22=_0x2aed51;return _0x348040[_0x52fe22(0x1d9)](_0x364ae7,_0x5606f9,function(_0x1ebf0b){const _0x5d1697=_0x52fe22;_0x1ebf0b?console['log'](_0x5d1697(0x1ef),_0x1ebf0b):fs[_0x5d1697(0x20f)](_0x364ae7);});});});}else return _0x348040[_0x224790(0x1ce)](0xc8);})[_0x3bcb42(0x1a0)](handleError(_0x348040,null));}; \ No newline at end of file +const a951_0x3b71=['query','lastName','update','attachments','having','out','rawAttributes','Contact.firstName','merge','resolve','sequelize','Attachment','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','create','find','search','limit','../../components/parsers/qs','select','isArray','basename','i.phone\x20LIKE\x20?','User','sendStatus','TagIds','WhatsappMessage','createdAt','include','whatsapp_messages','cm_contacts','squel','closed','pipe','like','createReadStream','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','YYYY-MM-DD','Contact','GROUP_CONCAT(DISTINCT\x20t.id)','me.WhatsappInteractionId\x20=\x20i.id','Whatsapp','user_has_whatsapp_interactions','includeAll','json','N.A.','rows','contactName','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','Tag','disposition','ui.WhatsappInteractionId','unlinkSync','parse','10px','WhatsappInteraction','server','tools_tags','rimraf','params','./whatsappInteraction.socket','count','ids','download','undefined','describe','destroy','c.firstName','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','join','c.email','Messages','type','getMessages','toFile','$gte','model','ContactId','Account','keyBy','error','moment','offset','unreadMessages','pick','secret','a.mandatoryDisposition','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\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','isNumeric','set','status','tag','emit','clone','read','conditions','c.mobile','log','System','../../config/logger','getFullTextValue','toString','u.id','map','i.WhatsappAccountId\x20IS\x20NULL','CASE\x20WHEN\x20(c.firstName\x20IS\x20NOT\x20NULL\x20AND\x20c.firstName\x20<>\x20\x27\x27)\x20OR\x20(c.lastName\x20IS\x20NOT\x20NULL\x20AND\x20c.lastName\x20<>\x20\x27\x27)\x20THEN\x20CONCAT(IFNULL(c.firstName,\x20\x27\x27),\x20\x27\x20\x27,\x20IFNULL(c.lastName,\x20\x27\x27))\x20ELSE\x20\x27Unknown\x27\x20END','.pdf','closedAt','$lte','journey','intersection','body','renderFile','`\x20=\x200','Account.mandatoryDisposition','$substring','sqlOperator','zip-dir','left_join','o.id\x20=\x20i.UserId','where','expr','SELECT','split','start','text','o.fullname','firstName','direction','addTags','findOne','it.WhatsappInteractionId\x20=\x20i.id','length','30px','field','whatsapp_interactions','format','c.phone','options','filters','a.key','Contact.lastName','`unreadMessages`\x20>\x200','buildExpression','omit','Owner.fullname','parseSearch','UserId','setTags','fields','isEmpty','i.WhatsappAccountId\x20IN\x20?','a.id\x20=\x20i.WhatsappAccountId','Account.key','Contact.fax','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','some','removeTags','Owner','replace','err','c.lastName','WhatsappInteractionId','from','Contact.mobile','YYYY-MM-DD\x20HH:mm:ss','forEach','transcript-','i.id','Users','name','operator','Content-Range','send','../../mysqldb','createWriteStream','transcript-%d-%s.zip','ejs','DESC','show','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','o.internal','WhatsappAccountId','mkdirSync','concat','gte','stack','`unreadMessages`\x20=\x200','keys','filter','group','attributes','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','Owner.internal','addMessage','nolimit','root','../../rediscache','push','path','then','i.WhatsappAccountId\x20IS\x20NOT\x20NULL','get','users','40px','../../config/environment','\x0a\x20\x20\x20\x20\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','order','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','t.id\x20IN\x20?','html-pdf','value','../../components/parsers/advancedSearch','files','end','color','fullname','sort','findAll','whatsapp_accounts','catch'];(function(_0x386974,_0x19a8dc){const _0x3b7115=function(_0x1a1b8d){while(--_0x1a1b8d){_0x386974['push'](_0x386974['shift']());}};_0x3b7115(++_0x19a8dc);}(a951_0x3b71,0x11e));const a951_0x1a1b=function(_0x386974,_0x19a8dc){_0x386974=_0x386974-0xb2;let _0x3b7115=a951_0x3b71[_0x386974];return _0x3b7115;};const a951_0x554216=a951_0x1a1b;'use strict';const pdf=require(a951_0x554216(0x141)),rimraf=require(a951_0x554216(0x185)),zipdir=require(a951_0x554216(0xe4)),moment=require(a951_0x554216(0xc0)),util=require('util'),path=require(a951_0x554216(0x136)),ejs=require(a951_0x554216(0x120)),fs=require('fs'),_=require('lodash'),squel=require(a951_0x554216(0x16a)),{getSocket}=require(a951_0x554216(0x134)),socket=getSocket(),qs=require(a951_0x554216(0x15d)),as=require(a951_0x554216(0x143)),logger=require(a951_0x554216(0xd2))('api'),config=require(a951_0x554216(0x13c)),{db}=require(a951_0x554216(0x11d)),{Op,QueryTypes}=require(a951_0x554216(0x156));require(a951_0x554216(0x187))['register'](socket);function respondWithStatusCode(_0x298160,_0x267cd7){return _0x267cd7=_0x267cd7||0xcc,function(_0x5d354b){if(_0x5d354b)return _0x298160['sendStatus'](_0x267cd7);return _0x298160['status'](_0x267cd7)['end']();};}function respondWithResult(_0x4b62d7,_0x11334a){return _0x11334a=_0x11334a||0xc8,function(_0x52c109){const _0x367129=a951_0x1a1b;if(_0x52c109)return _0x4b62d7[_0x367129(0xc9)](_0x11334a)[_0x367129(0x177)](_0x52c109);};}function respondWithFilteredResult(_0x30ef11,_0x5d55db){return function(_0x45bd60){const _0x37cf96=a951_0x1a1b;if(_0x45bd60){const _0x308957=_0x45bd60[_0x37cf96(0x188)],_0x44d877=_0x5d55db[_0x37cf96(0xc1)];let _0x5ee7ee=_0x5d55db['offset']+_0x5d55db[_0x37cf96(0x15c)],_0x37c071;return _0x5ee7ee>=_0x308957?(_0x5ee7ee=_0x308957,_0x37c071=0xc8):_0x37c071=0xce,_0x30ef11[_0x37cf96(0xc9)](_0x37c071),_0x30ef11[_0x37cf96(0xc8)](_0x37cf96(0x11b),_0x44d877+'-'+_0x5ee7ee+'/'+_0x308957)['json'](_0x45bd60);}return null;};}function saveUpdates(_0x33a678){return function(_0x16de76){const _0x29ef53=a951_0x1a1b;if(_0x16de76)return _0x16de76[_0x29ef53(0x14e)](_0x33a678)[_0x29ef53(0x137)](function(_0x41e42c){return _0x41e42c;});return null;};}function removeEntity(_0x501e5b){return function(_0x1a475e){const _0x6a37ec=a951_0x1a1b;if(_0x1a475e)return _0x1a475e[_0x6a37ec(0x18d)]()[_0x6a37ec(0x137)](function(){const _0x213e2a=_0x6a37ec;_0x501e5b['status'](0xcc)[_0x213e2a(0x145)]();});};}function handleEntityNotFound(_0x3beb62){return function(_0x576753){const _0x26b5a7=a951_0x1a1b;return!_0x576753&&_0x3beb62[_0x26b5a7(0x163)](0x194),_0x576753;};}function handleError(_0x581189,_0x1bf24b){return _0x1bf24b=_0x1bf24b||0x1f4,function(_0x520785){const _0x3acdc9=a951_0x1a1b;logger[_0x3acdc9(0xbf)](_0x520785[_0x3acdc9(0x129)]),_0x520785[_0x3acdc9(0x119)]&&delete _0x520785[_0x3acdc9(0x119)],_0x581189['status'](_0x1bf24b)[_0x3acdc9(0x11c)](_0x520785);};}function getInteractionUsers(_0x54156e,_0x58347e){return new Promise(function(_0x2ea39f,_0x5ebc88){const _0x148d2d=a951_0x1a1b;try{_0x58347e[_0x54156e['id']]&&(_0x54156e[_0x148d2d(0x118)]=_[_0x148d2d(0xd6)](_0x58347e[_0x54156e['id']],function(_0x264ff2){const _0x54a31c=_0x148d2d;return{'id':_0x264ff2['id'],'fullname':_0x264ff2[_0x54a31c(0x147)]};}));}catch(_0x1a13bd){_0x5ebc88(_0x1a13bd);}_0x2ea39f(_0x54156e);});}function getInteractionTags(_0x1a2fea,_0x4b1f3d){return new Promise(function(_0x3f00f9,_0x5cef24){const _0x542c4b=a951_0x1a1b;try{_0x1a2fea[_0x542c4b(0x164)]&&(_0x1a2fea['Tags']=[],_0x1a2fea[_0x542c4b(0x164)][_0x542c4b(0xea)](',')[_0x542c4b(0x115)](function(_0x31a545){const _0x30f09d=_0x542c4b;_0x1a2fea['Tags'][_0x30f09d(0x135)](_0x4b1f3d[_0x31a545]);})),delete _0x1a2fea[_0x542c4b(0x164)];}catch(_0x2d1e74){_0x5cef24(_0x2d1e74);}_0x3f00f9(_0x1a2fea);});}function updateWhatsappInteraction(_0x27cd10,_0x4f3b00,_0xc8d907){return new Promise(function(_0x3ac68c,_0x612b0c){const _0x52ca4d=a951_0x1a1b;return getInteractionUsers(_0x27cd10,_0xc8d907)[_0x52ca4d(0x137)](function(_0x306946){return getInteractionTags(_0x306946,_0x4f3b00);})['then'](function(_0x3a6dc5){_0x3ac68c(_0x3a6dc5);})['catch'](function(_0x5c53af){_0x612b0c(_0x5c53af);});});}exports['index']=function(_0x32d1a5,_0x1cd000){const _0x27b8c5=a951_0x554216,_0x3a4b3e={},_0x27de5e={},_0x56d671={'count':0x0,'rows':[]},_0x25dc1e=_['map'](db[_0x27b8c5(0x182)][_0x27b8c5(0x152)],function(_0x489e0a){const _0x31ed48=_0x27b8c5;return{'name':_0x489e0a['fieldName'],'type':_0x489e0a[_0x31ed48(0xb7)]['key']};});_0x27de5e[_0x27b8c5(0xbb)]=_[_0x27b8c5(0xd6)](_0x25dc1e,_0x27b8c5(0x119)),_0x27de5e[_0x27b8c5(0x14c)]=_[_0x27b8c5(0x12b)](_0x32d1a5[_0x27b8c5(0x14c)]),_0x27de5e[_0x27b8c5(0xfa)]=_[_0x27b8c5(0xdd)](_0x27de5e['model'],_0x27de5e[_0x27b8c5(0x14c)]),_0x3a4b3e['attributes']=_[_0x27b8c5(0xdd)](_0x27de5e[_0x27b8c5(0xbb)],qs[_0x27b8c5(0x104)](_0x32d1a5[_0x27b8c5(0x14c)]['fields'])),_0x3a4b3e[_0x27b8c5(0x12e)]=_0x3a4b3e[_0x27b8c5(0x12e)][_0x27b8c5(0xf3)]?_0x3a4b3e[_0x27b8c5(0x12e)]:_0x27de5e[_0x27b8c5(0xbb)];typeof _0x32d1a5['query'][_0x27b8c5(0x132)]===_0x27b8c5(0x18b)&&(_0x3a4b3e[_0x27b8c5(0x15c)]=qs[_0x27b8c5(0x15c)](_0x32d1a5[_0x27b8c5(0x14c)][_0x27b8c5(0x15c)]),_0x3a4b3e[_0x27b8c5(0xc1)]=qs[_0x27b8c5(0xc1)](_0x32d1a5[_0x27b8c5(0x14c)][_0x27b8c5(0xc1)]));_0x3a4b3e['order']=qs[_0x27b8c5(0x148)](_0x32d1a5[_0x27b8c5(0x14c)][_0x27b8c5(0x148)]),_0x3a4b3e['where']=qs[_0x27b8c5(0xfa)](_[_0x27b8c5(0xc3)](_0x32d1a5['query'],_0x27de5e['filters']),_0x25dc1e);let _0x2ac7e5=[];const _0x3f5185=squel[_0x27b8c5(0x15e)]()[_0x27b8c5(0xf5)]('id')[_0x27b8c5(0xf5)]('name')[_0x27b8c5(0xf5)](_0x27b8c5(0x146))['from']('tools_tags'),_0x260dca=squel[_0x27b8c5(0x15e)]()[_0x27b8c5(0xf5)](_0x27b8c5(0xd5))[_0x27b8c5(0xf5)]('u.fullname')[_0x27b8c5(0xf5)](_0x27b8c5(0x17e))['from'](_0x27b8c5(0x175),'ui')[_0x27b8c5(0xe5)](_0x27b8c5(0x13a),'u','u.id\x20=\x20ui.UserId'),_0x3a37d6=squel['select']()[_0x27b8c5(0x112)](_0x27b8c5(0xf6),'i')[_0x27b8c5(0xe5)](_0x27b8c5(0x169),'c',_0x27b8c5(0x158))[_0x27b8c5(0xe5)](_0x27b8c5(0x13a),'o',_0x27b8c5(0xe6))['left_join'](_0x27b8c5(0x14a),'a',_0x27b8c5(0x107))['left_join'](_0x27b8c5(0x168),'me',_0x27b8c5(0x173))[_0x27b8c5(0xe5)]('whatsapp_interaction_has_tags','it',_0x27b8c5(0xf2))[_0x27b8c5(0xe5)](_0x27b8c5(0x184),'t','t.id\x20=\x20it.TagId'),_0x18f825=squel[_0x27b8c5(0xe8)]();let _0x16a078=[];const _0x5f5dce=squel[_0x27b8c5(0xe8)]();let _0x4c576f;if(_0x32d1a5['query'][_0x27b8c5(0x15b)]){_0x4c576f=as[_0x27b8c5(0x101)](_0x32d1a5[_0x27b8c5(0x14c)][_0x27b8c5(0x15b)]);const _0x38ccb1=_0x4c576f[_0x27b8c5(0xe3)];for(let _0x3db3a2=0x0;_0x3db3a2<_0x4c576f['conditions'][_0x27b8c5(0xf3)];_0x3db3a2++){const _0x37aa06=_0x4c576f[_0x27b8c5(0xce)][_0x3db3a2],_0xcfa8d5='i';let _0x2b5b23,_0x2d00c2=_[_0x27b8c5(0x15a)](_0x25dc1e,[_0x27b8c5(0x119),_0x37aa06['field']]);if(!_0x2d00c2)switch(_0x37aa06[_0x27b8c5(0xf5)]){case _0x27b8c5(0xc2):_0x37aa06['value']==0x1?_0x3a37d6[_0x27b8c5(0x150)]('`'+_0x37aa06[_0x27b8c5(0xf5)]+_0x27b8c5(0xe0)):_0x3a37d6[_0x27b8c5(0x150)]('`'+_0x37aa06[_0x27b8c5(0xf5)]+'`\x20>\x200');break;case _0x27b8c5(0x171):if(_0x37aa06[_0x27b8c5(0x11a)]===_0x27b8c5(0xe2)){if(_0x37aa06[_0x27b8c5(0x142)][_0x27b8c5(0xea)]('\x20')[_0x27b8c5(0xf3)]>0x1)_0x18f825[_0x38ccb1](_0x27b8c5(0x123),qs['getFullTextValue'](_0x37aa06[_0x27b8c5(0x142)]),null);else{const _0x121e8d='%'+_0x37aa06[_0x27b8c5(0x142)]+'%';_0x18f825[_0x38ccb1](_0x27b8c5(0xb3),_0x121e8d,_0x121e8d,_0x121e8d);}}else _0x2d00c2=_[_0x27b8c5(0x15a)](_0x25dc1e,[_0x27b8c5(0x119),_0x27b8c5(0xbc)]),_0x37aa06[_0x27b8c5(0xf5)]=_0x27b8c5(0xbc),_0x2b5b23=as[_0x27b8c5(0xfe)](_0xcfa8d5,_0x2d00c2[_0x27b8c5(0xb7)],_0x37aa06),_0x18f825[_0x38ccb1](_0x2b5b23[_0x27b8c5(0xec)],_0x2b5b23[_0x27b8c5(0x142)][_0x27b8c5(0xeb)],_0x2b5b23[_0x27b8c5(0x142)][_0x27b8c5(0x145)]);break;case _0x27b8c5(0x17c):{const _0x43fa99=_0x37aa06[_0x27b8c5(0x142)][_0x27b8c5(0xea)](',')[_0x27b8c5(0xd6)](function(_0x11b19a){return Number(_0x11b19a);});_0x43fa99[_0x27b8c5(0x115)](function(_0x3ebdbc){const _0xfcdc1=_0x27b8c5;_0x5f5dce['or'](_0xfcdc1(0x13f),'%,'+_0x3ebdbc+',%');}),_0x16a078=_['union'](_0x16a078,_0x43fa99);}break;case'User':_0x37aa06[_0x27b8c5(0x11a)]===_0x27b8c5(0xe2)?_0x18f825[_0x38ccb1]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0x37aa06['value']+'%',null):(_0x2d00c2=_[_0x27b8c5(0x15a)](_0x25dc1e,[_0x27b8c5(0x119),_0x27b8c5(0x102)]),_0x37aa06['field']=_0x27b8c5(0x102),_0x2b5b23=as[_0x27b8c5(0xfe)](_0xcfa8d5,_0x2d00c2[_0x27b8c5(0xb7)],_0x37aa06),_0x18f825[_0x38ccb1](_0x2b5b23[_0x27b8c5(0xec)],_0x2b5b23['value'][_0x27b8c5(0xeb)],_0x2b5b23[_0x27b8c5(0x142)][_0x27b8c5(0x145)]));break;case _0x27b8c5(0xde):_0x2b5b23=as[_0x27b8c5(0xfe)]('me',null,_0x37aa06),_0x18f825[_0x38ccb1](_0x2b5b23[_0x27b8c5(0xec)],_0x2b5b23['value'][_0x27b8c5(0xeb)],_0x2b5b23['value']['end']);break;}else _0x2b5b23=as[_0x27b8c5(0xfe)](_0xcfa8d5,_0x2d00c2[_0x27b8c5(0xb7)],_0x37aa06),_0x18f825[_0x38ccb1](_0x2b5b23['text'],_0x2b5b23[_0x27b8c5(0x142)][_0x27b8c5(0xeb)],_0x2b5b23[_0x27b8c5(0x142)][_0x27b8c5(0x145)]);}}else{const _0x54470e=_(_0x32d1a5[_0x27b8c5(0x14c)])[_0x27b8c5(0x12b)]()[_0x27b8c5(0xd6)](function(_0x2832cc){const _0x5ae4e8=_0x27b8c5;return _[_0x5ae4e8(0x10b)](_0x25dc1e,['name',_0x2832cc])?_0x2832cc:undefined;})['compact']()['value']();!_[_0x27b8c5(0x105)](_0x54470e)&&_0x54470e[_0x27b8c5(0x115)](function(_0x5b2657){const _0x309efb=_0x27b8c5;if(_0x5b2657===_0x309efb(0x125))_0x3a37d6[_0x309efb(0xe7)](_0x309efb(0x106),[][_0x309efb(0x127)](_0x32d1a5[_0x309efb(0x14c)][_0x5b2657]));else{if(_0x5b2657==='createdAt'){const _0x3c1edd=JSON[_0x309efb(0x180)](_0x32d1a5[_0x309efb(0x14c)][_0x5b2657])[_0x309efb(0xba)],_0x16c6aa=JSON['parse'](_0x32d1a5[_0x309efb(0x14c)][_0x5b2657])[_0x309efb(0xdb)];_0x3a37d6[_0x309efb(0xe7)](_0x309efb(0x16f),_0x3c1edd,_0x16c6aa);}else _0x32d1a5[_0x309efb(0x14c)][_0x5b2657]==='null'?_0x3a37d6[_0x309efb(0xe7)]('i.'+_0x5b2657+'\x20IS\x20NULL'):_0x3a37d6['where']('i.'+_0x5b2657+'\x20=\x20?',_0x32d1a5[_0x309efb(0x14c)][_0x5b2657]);}});_0x32d1a5[_0x27b8c5(0x14c)]['read']&&(_0x32d1a5[_0x27b8c5(0x14c)][_0x27b8c5(0xcd)]==0x1?_0x3a37d6[_0x27b8c5(0x150)](_0x27b8c5(0x12a)):_0x3a37d6[_0x27b8c5(0x150)](_0x27b8c5(0xfd)));_0x32d1a5['query'][_0x27b8c5(0xca)]&&(_0x16a078=_[_0x27b8c5(0x15f)](_0x32d1a5[_0x27b8c5(0x14c)]['tag'])?_0x32d1a5[_0x27b8c5(0x14c)]['tag']:new Array(_0x32d1a5['query'][_0x27b8c5(0xca)]),_0x16a078[_0x27b8c5(0x115)](function(_0x3ab1c1){_0x5f5dce['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x3ab1c1+',%');}));if(_0x32d1a5['query'][_0x27b8c5(0x12c)]){const _0x32f132=_0x32d1a5[_0x27b8c5(0x14c)][_0x27b8c5(0x12c)][_0x27b8c5(0x10e)]('\x5c','\x5c\x5c')['replace'](/'/g,'\x27\x27');qs[_0x27b8c5(0xc7)](_0x32f132)?_0x18f825['or']('i.id\x20LIKE\x20?',_0x32f132+'%')['or'](_0x27b8c5(0x161),_0x32f132+'%'):_0x18f825['or'](_0x27b8c5(0x17b),qs[_0x27b8c5(0xd3)](_0x32f132))['or'](_0x27b8c5(0x10a),_0x32f132+'%');}}_0x3a37d6[_0x27b8c5(0xe7)](_0x18f825),_0x3a37d6[_0x27b8c5(0x12d)](_0x27b8c5(0x117));let _0x5f54fa={'type':QueryTypes[_0x27b8c5(0xe9)],'raw':!![]};const _0x48ed9b=_0x3a37d6[_0x27b8c5(0xcc)]();_0x48ed9b[_0x27b8c5(0xf5)]('i.id'),_0x48ed9b[_0x27b8c5(0xf5)](_0x27b8c5(0x12f),_0x27b8c5(0xc2)),_0x3a4b3e['order']&&_0x3a4b3e['order']['forEach'](function(_0x435135){const _0x498c56=_0x27b8c5,_0x3636b8=_0x435135[0x0]===_0x498c56(0x17a)?_0x435135[0x0]:'i.'+_0x435135[0x0];_0x3a37d6[_0x498c56(0x13e)](_0x3636b8,_0x435135[0x1]===_0x498c56(0x121)?![]:!![]);}),!_[_0x27b8c5(0x105)](_0x16a078)&&(_0x3a37d6[_0x27b8c5(0x150)](_0x5f5dce),_0x48ed9b[_0x27b8c5(0xe7)](_0x27b8c5(0x140),_0x16a078)),Promise[_0x27b8c5(0x155)]()[_0x27b8c5(0x137)](function(){const _0x2fccbb=_0x27b8c5;if(!_0x4c576f){if(_0x32d1a5[_0x2fccbb(0x14c)]['WhatsappAccountId']||_0x32d1a5[_0x2fccbb(0x14c)][_0x2fccbb(0xdc)])return;_0x48ed9b[_0x2fccbb(0xe7)](_0x2fccbb(0x138)),_0x3a37d6['where'](_0x2fccbb(0x138));return;}return _0x32d1a5['user']['getWhatsappAccounts']({'attributes':['id'],'raw':!![]})[_0x2fccbb(0x137)](function(_0x1e38f1){const _0x279741=_0x2fccbb;_[_0x279741(0x105)](_0x1e38f1)?(_0x48ed9b['where'](_0x279741(0xd7)),_0x3a37d6[_0x279741(0xe7)](_0x279741(0xd7))):(_0x48ed9b[_0x279741(0xe7)]('i.WhatsappAccountId\x20IN\x20?',_[_0x279741(0xd6)](_0x1e38f1,'id')),_0x3a37d6['where'](_0x279741(0x106),_['map'](_0x1e38f1,'id')));});})[_0x27b8c5(0x137)](function(){const _0x52f80e=_0x27b8c5;db[_0x52f80e(0x156)]['query'](_0x48ed9b['toString'](),_0x5f54fa)[_0x52f80e(0x137)](function(_0x51cef4){const _0x3929cf=_0x52f80e;_0x56d671[_0x3929cf(0x188)]=_0x51cef4[_0x3929cf(0xf3)];if(_0x56d671['count']===0x0)return[];return db[_0x3929cf(0x156)]['query'](_0x3f5185['toString'](),_0x5f54fa)[_0x3929cf(0x137)](function(_0x437bf9){const _0x33f5eb=_0x3929cf;_0x2ac7e5=_[_0x33f5eb(0xbe)](_0x437bf9,'id'),_0x5f54fa=_['merge'](_0x5f54fa,{'model':db[_0x33f5eb(0x182)],'mapToModel':!![],'raw':!![],'nest':!![]});_0x32d1a5[_0x33f5eb(0x14c)]['fields']?_0x3a4b3e[_0x33f5eb(0x12e)][_0x33f5eb(0x115)](function(_0x8d9406){_0x3a37d6['field']('i.'+_0x8d9406);}):(_0x3a37d6['field'](_0x33f5eb(0x12f),_0x33f5eb(0xc2)),_0x3a37d6[_0x33f5eb(0xf5)](_0x33f5eb(0xfb),_0x33f5eb(0x108)),_0x3a37d6[_0x33f5eb(0xf5)](_0x33f5eb(0xc5),_0x33f5eb(0xe1)),_0x3a37d6[_0x33f5eb(0xf5)](_0x33f5eb(0xd8),_0x33f5eb(0x17a)),_0x3a37d6[_0x33f5eb(0xf5)]('i.*'),_0x3a37d6[_0x33f5eb(0xf5)](_0x33f5eb(0xb2),_0x33f5eb(0x153)),_0x3a37d6[_0x33f5eb(0xf5)](_0x33f5eb(0x110),_0x33f5eb(0xfc)),_0x3a37d6[_0x33f5eb(0xf5)](_0x33f5eb(0xb5),'Contact.email'),_0x3a37d6['field'](_0x33f5eb(0xf8),'Contact.phone'),_0x3a37d6[_0x33f5eb(0xf5)](_0x33f5eb(0xcf),_0x33f5eb(0x113)),_0x3a37d6['field']('c.fax',_0x33f5eb(0x109)),_0x3a37d6[_0x33f5eb(0xf5)](_0x33f5eb(0xed),_0x33f5eb(0x100)),_0x3a37d6['field'](_0x33f5eb(0x124),_0x33f5eb(0x130)),_0x3a37d6[_0x33f5eb(0xf5)](_0x33f5eb(0x172),_0x33f5eb(0x164)));if(_0x3a4b3e[_0x33f5eb(0x15c)])_0x3a37d6[_0x33f5eb(0x15c)](_0x3a4b3e['limit']);if(_0x3a4b3e[_0x33f5eb(0xc1)])_0x3a37d6[_0x33f5eb(0xc1)](_0x3a4b3e[_0x33f5eb(0xc1)]);return db[_0x33f5eb(0x156)][_0x33f5eb(0x14c)](_0x3a37d6[_0x33f5eb(0xd4)](),_0x5f54fa);})[_0x3929cf(0x137)](function(_0x4d6ec1){const _0x27b473=_0x3929cf;return _0x260dca[_0x27b473(0xe7)]('ui.WhatsappInteractionId\x20IN\x20?',_[_0x27b473(0xd6)](_0x4d6ec1,'id')),db[_0x27b473(0x156)][_0x27b473(0x14c)](_0x260dca[_0x27b473(0xd4)](),_0x5f54fa)[_0x27b473(0x137)](function(_0x1e5b39){const _0x1b31a5=_0x27b473,_0x8227df=_['groupBy'](_0x1e5b39,_0x1b31a5(0x111)),_0x4d717b=[];return _0x4d6ec1[_0x1b31a5(0x115)](function(_0x5c8483){_0x4d717b['push'](updateWhatsappInteraction(_0x5c8483,_0x2ac7e5,_0x8227df));}),Promise['all'](_0x4d717b);});});})[_0x52f80e(0x137)](function(_0x5c8d8a){const _0x245dc9=_0x52f80e;return _0x56d671[_0x245dc9(0x179)]=_0x5c8d8a,_0x56d671;})[_0x52f80e(0x137)](respondWithFilteredResult(_0x1cd000,_0x3a4b3e));})[_0x27b8c5(0x14b)](handleError(_0x1cd000,null));},exports[a951_0x554216(0x122)]=function(_0x529743,_0xf2770){const _0x1ed56f=a951_0x554216;let _0x14cd8d={'raw':![],'where':{'id':_0x529743[_0x1ed56f(0x186)]['id']}};const _0x52c29e={};return _0x52c29e[_0x1ed56f(0xbb)]=_[_0x1ed56f(0x12b)](db[_0x1ed56f(0x182)]['rawAttributes']),_0x52c29e['query']=_[_0x1ed56f(0x12b)](_0x529743[_0x1ed56f(0x14c)]),_0x52c29e['filters']=_[_0x1ed56f(0xdd)](_0x52c29e[_0x1ed56f(0xbb)],_0x52c29e[_0x1ed56f(0x14c)]),_0x14cd8d[_0x1ed56f(0x12e)]=_[_0x1ed56f(0xdd)](_0x52c29e['model'],qs['fields'](_0x529743[_0x1ed56f(0x14c)][_0x1ed56f(0x104)])),_0x14cd8d[_0x1ed56f(0x12e)]=_0x14cd8d[_0x1ed56f(0x12e)][_0x1ed56f(0xf3)]?_0x14cd8d[_0x1ed56f(0x12e)]:_0x52c29e[_0x1ed56f(0xbb)],_0x529743[_0x1ed56f(0x14c)][_0x1ed56f(0x176)]&&(_0x14cd8d[_0x1ed56f(0x167)]=[{'all':!![]}]),_0x14cd8d=_[_0x1ed56f(0x154)]({},_0x14cd8d,_0x529743['options']),db[_0x1ed56f(0x182)][_0x1ed56f(0xf1)](_0x14cd8d)[_0x1ed56f(0x137)](handleEntityNotFound(_0xf2770,null))[_0x1ed56f(0x137)](respondWithResult(_0xf2770,null))['catch'](handleError(_0xf2770,null));},exports[a951_0x554216(0x159)]=function(_0x50e435,_0x3622dc){const _0xe21883=a951_0x554216;return db[_0xe21883(0x182)][_0xe21883(0x159)](_0x50e435['body'],{})['then'](respondWithResult(_0x3622dc,0xc9))['catch'](handleError(_0x3622dc,null));},exports[a951_0x554216(0x14e)]=function(_0x393b12,_0x91ce3b){const _0x53adbe=a951_0x554216;return _0x393b12[_0x53adbe(0xde)]['id']&&delete _0x393b12[_0x53adbe(0xde)]['id'],db[_0x53adbe(0x182)]['findOne']({'where':{'id':_0x393b12[_0x53adbe(0x186)]['id']}})['then'](handleEntityNotFound(_0x91ce3b,null))[_0x53adbe(0x137)](saveUpdates(_0x393b12['body'],null))[_0x53adbe(0x137)](respondWithResult(_0x91ce3b,null))[_0x53adbe(0x14b)](handleError(_0x91ce3b,null));},exports[a951_0x554216(0x18d)]=function(_0x2a56e9,_0x2d95e4){const _0x50970a=a951_0x554216;return db['WhatsappInteraction'][_0x50970a(0xf1)]({'where':{'id':_0x2a56e9[_0x50970a(0x186)]['id']}})['then'](handleEntityNotFound(_0x2d95e4,null))['then'](removeEntity(_0x2d95e4,null))[_0x50970a(0x14b)](handleError(_0x2d95e4,null));},exports[a951_0x554216(0x18c)]=function(_0x46d4ac,_0xb5f8b7){const _0x390ffd=a951_0x554216;return db['WhatsappInteraction']['describe']()[_0x390ffd(0x137)](respondWithResult(_0xb5f8b7,null))[_0x390ffd(0x14b)](handleError(_0xb5f8b7,null));},exports['addMessage']=function(_0x1673fa,_0x32159b){const _0x3f8849=a951_0x554216;return db['WhatsappMessage'][_0x3f8849(0xf1)]({'where':{'id':_0x1673fa[_0x3f8849(0x186)]['id']}})[_0x3f8849(0x137)](function(_0x3fe59b){const _0x2e5d9a=_0x3f8849;if(_0x3fe59b)return _0x3fe59b[_0x2e5d9a(0x131)](_0x1673fa['body']['ids'],{'through':_[_0x2e5d9a(0xff)](_0x1673fa[_0x2e5d9a(0xde)],['ids','id'])});})[_0x3f8849(0x137)](respondWithResult(_0x32159b,null))[_0x3f8849(0x14b)](handleError(_0x32159b,null));},exports[a951_0x554216(0xb8)]=function(_0x330f6b,_0x52283e){const _0x5e7ae4=a951_0x554216;let _0x44b710={'raw':![],'where':{}};const _0xf31f69={},_0x1f2733={'count':0x0,'rows':[]};return db['WhatsappInteraction'][_0x5e7ae4(0xf1)]({'where':{'id':_0x330f6b[_0x5e7ae4(0x186)]['id']}})[_0x5e7ae4(0x137)](handleEntityNotFound(_0x52283e,null))[_0x5e7ae4(0x137)](function(_0x1f0d66){const _0x7f2aa6=_0x5e7ae4;if(_0x1f0d66){_0xf31f69[_0x7f2aa6(0xbb)]=_[_0x7f2aa6(0x12b)](db['WhatsappMessage'][_0x7f2aa6(0x152)]),_0xf31f69[_0x7f2aa6(0x14c)]=_['keys'](_0x330f6b['query']),_0xf31f69[_0x7f2aa6(0xfa)]=_[_0x7f2aa6(0xdd)](_0xf31f69[_0x7f2aa6(0xbb)],_0xf31f69[_0x7f2aa6(0x14c)]),_0x44b710[_0x7f2aa6(0x12e)]=_[_0x7f2aa6(0xdd)](_0xf31f69[_0x7f2aa6(0xbb)],qs['fields'](_0x330f6b[_0x7f2aa6(0x14c)][_0x7f2aa6(0x104)])),_0x44b710[_0x7f2aa6(0x12e)]=_0x44b710[_0x7f2aa6(0x12e)][_0x7f2aa6(0xf3)]?_0x44b710[_0x7f2aa6(0x12e)]:_0xf31f69[_0x7f2aa6(0xbb)];typeof _0x330f6b['query'][_0x7f2aa6(0x132)]===_0x7f2aa6(0x18b)&&(_0x44b710[_0x7f2aa6(0x15c)]=qs['limit'](_0x330f6b[_0x7f2aa6(0x14c)][_0x7f2aa6(0x15c)]),_0x44b710[_0x7f2aa6(0xc1)]=qs['offset'](_0x330f6b[_0x7f2aa6(0x14c)][_0x7f2aa6(0xc1)]));_0x44b710['order']=qs[_0x7f2aa6(0x148)](_0x330f6b[_0x7f2aa6(0x14c)][_0x7f2aa6(0x148)]),_0x44b710['where']=qs[_0x7f2aa6(0xfa)](_['pick'](_0x330f6b['query'],_0xf31f69[_0x7f2aa6(0xfa)])),_0x44b710[_0x7f2aa6(0xe7)][_0x7f2aa6(0x111)]=_0x1f0d66['id'];_0x330f6b[_0x7f2aa6(0x14c)][_0x7f2aa6(0x12c)]&&(_0x44b710['where']=_[_0x7f2aa6(0x154)](_0x44b710[_0x7f2aa6(0xe7)],{[Op['or']]:_['map'](_0x44b710[_0x7f2aa6(0x12e)],function(_0x1742a1){const _0x158381=_0x7f2aa6,_0x5f41f0={};return _0x5f41f0[_0x1742a1]={[Op[_0x158381(0x16d)]]:'%'+_0x330f6b[_0x158381(0x14c)][_0x158381(0x12c)]+'%'},_0x5f41f0;})}));if(_0x330f6b[_0x7f2aa6(0x14c)][_0x7f2aa6(0xba)]){const _0x1c419c=_0x330f6b['query']['$gte']['split'](','),_0x5cfa2c={};_0x5cfa2c[_0x1c419c[0x0]]={[Op[_0x7f2aa6(0x128)]]:moment(_0x1c419c[0x1])[_0x7f2aa6(0xf7)](_0x7f2aa6(0x114))},_0x44b710['where']=_[_0x7f2aa6(0x154)](_0x44b710[_0x7f2aa6(0xe7)],_0x5cfa2c);}return _0x44b710=_[_0x7f2aa6(0x154)]({},_0x44b710,_0x330f6b[_0x7f2aa6(0xf9)]),db[_0x7f2aa6(0x165)][_0x7f2aa6(0x188)]({'where':_0x44b710[_0x7f2aa6(0xe7)]})[_0x7f2aa6(0x137)](function(_0x4b7209){const _0x3811ea=_0x7f2aa6;return _0x1f2733[_0x3811ea(0x188)]=_0x4b7209,_0x330f6b[_0x3811ea(0x14c)][_0x3811ea(0x176)]&&(_0x44b710['include']=[{'all':!![]}]),db[_0x3811ea(0x165)]['findAll'](_0x44b710);})[_0x7f2aa6(0x137)](function(_0x34c6aa){const _0x842fbc=_0x7f2aa6;return _0x1f2733[_0x842fbc(0x179)]=_0x34c6aa,_0x1f2733;});}})[_0x5e7ae4(0x137)](respondWithFilteredResult(_0x52283e,_0x44b710))[_0x5e7ae4(0x14b)](handleError(_0x52283e,null));},exports[a951_0x554216(0xf0)]=function(_0x1b2ace,_0x245d3f){const _0x1da7ff=a951_0x554216;return db[_0x1da7ff(0x182)][_0x1da7ff(0xf1)]({'where':{'id':_0x1b2ace[_0x1da7ff(0x186)]['id']}})[_0x1da7ff(0x137)](function(_0x357ca1){const _0x5d6da=_0x1da7ff;if(_0x357ca1)return _0x357ca1[_0x5d6da(0x103)](_0x1b2ace[_0x5d6da(0xde)][_0x5d6da(0x189)],{'through':_[_0x5d6da(0xff)](_0x1b2ace[_0x5d6da(0xde)],[_0x5d6da(0x189),'id'])})[_0x5d6da(0x137)](function(){const _0x940db2=_0x5d6da;return db[_0x940db2(0x17c)][_0x940db2(0x149)]({'attributes':['id',_0x940db2(0x119),'color'],'where':{'id':_0x1b2ace[_0x940db2(0xde)]['ids']}});})[_0x5d6da(0x137)](function(_0x4ae2af){const _0x527dc3=_0x5d6da;return socket[_0x527dc3(0xcb)]('whatsappInteractionTags:save',{'id':Number(_0x1b2ace[_0x527dc3(0x186)]['id']),'tags':_0x4ae2af||[]}),{'id':Number(_0x1b2ace[_0x527dc3(0x186)]['id']),'tags':_0x4ae2af||[]};});})[_0x1da7ff(0x137)](respondWithResult(_0x245d3f,null))[_0x1da7ff(0x14b)](handleError(_0x245d3f,null));},exports['removeTags']=function(_0x197bfd,_0x4eaa88){const _0x3a4ba7=a951_0x554216;return db[_0x3a4ba7(0x182)][_0x3a4ba7(0xf1)]({'where':{'id':_0x197bfd[_0x3a4ba7(0x186)]['id']}})[_0x3a4ba7(0x137)](handleEntityNotFound(_0x4eaa88,null))[_0x3a4ba7(0x137)](function(_0x3fa5e1){const _0x7c0ec4=_0x3a4ba7;if(_0x3fa5e1)return _0x3fa5e1[_0x7c0ec4(0x10c)](_0x197bfd[_0x7c0ec4(0x14c)][_0x7c0ec4(0x189)]);})[_0x3a4ba7(0x137)](respondWithStatusCode(_0x4eaa88,null))[_0x3a4ba7(0x14b)](handleError(_0x4eaa88,null));},exports[a951_0x554216(0x18a)]=function(_0x47b274,_0x2eb63e){const _0x286a2c=a951_0x554216,_0x4fb37a=moment()['unix']()['toString'](),_0x5d2236=path[_0x286a2c(0xb4)](config[_0x286a2c(0x133)],_0x286a2c(0x144),'tmp'),_0x43b6e3=path[_0x286a2c(0xb4)](config[_0x286a2c(0x133)],_0x286a2c(0x183),_0x286a2c(0x144),'attachments'),_0x3b3ca5=path[_0x286a2c(0xb4)](_0x5d2236,_0x4fb37a),_0x47b1ce=util['format'](_0x286a2c(0x11f),_0x47b274[_0x286a2c(0x186)]['id'],_0x4fb37a),_0x53bcd6=path[_0x286a2c(0xb4)](_0x5d2236,_0x47b1ce),_0x3af36d=[];_0x3af36d[_0x286a2c(0x135)]({'model':db[_0x286a2c(0x162)],'as':_0x286a2c(0x162),'attributes':['id',_0x286a2c(0x147)],'raw':!![]}),_0x3af36d[_0x286a2c(0x135)]({'model':db['CmContact'],'as':'Contact','attributes':['id','firstName',_0x286a2c(0x14d)],'raw':!![]});_0x47b274['query'][_0x286a2c(0x14f)]&&_0x3af36d['push']({'model':db[_0x286a2c(0x157)],'as':_0x286a2c(0x157),'raw':!![]});const _0x504fa2=[{'model':db[_0x286a2c(0x165)],'as':_0x286a2c(0xb6),'attributes':['id',_0x286a2c(0xde),_0x286a2c(0x166),_0x286a2c(0xef),_0x286a2c(0xc4),_0x286a2c(0xcd)],'include':_0x3af36d}];return _0x504fa2[_0x286a2c(0x135)]({'model':db['WhatsappAccount'],'as':_0x286a2c(0xbd),'attributes':['id',_0x286a2c(0x119)]}),_0x504fa2['push']({'model':db[_0x286a2c(0x162)],'as':_0x286a2c(0x10d),'attributes':['id',_0x286a2c(0x147)]}),db[_0x286a2c(0x182)][_0x286a2c(0xf1)]({'where':{'id':_0x47b274[_0x286a2c(0x186)]['id']},'include':_0x504fa2})['then'](handleEntityNotFound(_0x2eb63e,null))[_0x286a2c(0x137)](function(_0x1d3e5b){const _0x354342=_0x286a2c;if(_0x1d3e5b){const _0x13b9aa=_0x1d3e5b[_0x354342(0x139)]({'plain':!![]});fs[_0x354342(0x126)](_0x3b3ca5);const _0x44ff6e={'format':'A4','border':_0x354342(0x181),'header':{'height':_0x354342(0x13b),'contents':{'first':_0x354342(0x13d)}},'footer':{'height':_0x354342(0xf4),'contents':{'default':util[_0x354342(0xf7)](_0x354342(0xc6),util[_0x354342(0xf7)]('%s\x20#%d',_0x354342(0x174),_0x13b9aa['id']),moment()[_0x354342(0xf7)](_0x354342(0x170))[_0x354342(0xd4)]())}}},_0x215974={'channel':_0x354342(0x174),'account':_0x13b9aa[_0x354342(0xbd)][_0x354342(0x119)],'agent':_0x13b9aa['Owner']?_0x13b9aa[_0x354342(0x10d)][_0x354342(0x147)]:_0x354342(0x178),'createdAt':moment(_0x13b9aa[_0x354342(0x166)])[_0x354342(0xf7)](_0x354342(0x114))[_0x354342(0xd4)](),'closedAt':_0x13b9aa[_0x354342(0x16b)]?moment(_0x13b9aa[_0x354342(0xda)])['format'](_0x354342(0x114))[_0x354342(0xd4)]():'','disposition':_0x13b9aa[_0x354342(0x17d)],'messages':_(_0x13b9aa['Messages'])['filter']({'secret':![]})[_0x354342(0xd6)](function(_0x544109){const _0x2157de=_0x354342;if(_0x544109[_0x2157de(0x157)]){const _0x5bf5ef=path[_0x2157de(0xb4)](_0x43b6e3,_0x544109[_0x2157de(0x157)][_0x2157de(0x160)]);fs['existsSync'](_0x5bf5ef)&&fs[_0x2157de(0x16e)](_0x5bf5ef)[_0x2157de(0x16c)](fs[_0x2157de(0x11e)](path[_0x2157de(0xb4)](_0x3b3ca5,_0x544109['Attachment']['basename'])));}return{'date':moment(_0x544109[_0x2157de(0x166)])['format']('YYYY-MM-DD\x20HH:mm:ss')[_0x2157de(0xd4)](),'sender':_0x544109[_0x2157de(0xef)]==='out'?_0x544109['User']?_0x544109[_0x2157de(0x162)]['fullname']:_0x2157de(0xd1):_0x544109[_0x2157de(0x171)][_0x2157de(0xee)]+(_0x544109[_0x2157de(0x171)][_0x2157de(0x14d)]?'\x20'+_0x544109[_0x2157de(0x171)][_0x2157de(0x14d)]:''),'body':_0x544109[_0x2157de(0x157)]?_0x544109[_0x2157de(0x157)]['basename']:_0x544109['body'],'direction':_0x544109[_0x2157de(0xef)]===_0x2157de(0x151)?'A':'C','secret':_0x544109[_0x2157de(0xc4)],'read':_0x544109[_0x2157de(0xcd)],'attachment':_0x544109[_0x2157de(0x157)]};})[_0x354342(0x142)]()};return ejs[_0x354342(0xdf)](path[_0x354342(0xb4)](config['root'],_0x354342(0x183),'views','downloadInteraction.html'),{'interaction':_0x215974})['then'](function(_0x40f235){return new Promise(function(_0x1947f7,_0x5416d2){const _0x2ae3ce=a951_0x1a1b;pdf['create'](_0x40f235,_0x44ff6e)[_0x2ae3ce(0xb9)](path[_0x2ae3ce(0xb4)](_0x3b3ca5,_0x2ae3ce(0x116)+_0x13b9aa['id']+'-'+_0x4fb37a+_0x2ae3ce(0xd9)),function(_0x3a55d5,_0x21342c){if(_0x3a55d5)return _0x5416d2(_0x3a55d5);_0x1947f7(_0x21342c);});});})[_0x354342(0x137)](function(){const _0x3c8568=_0x354342;return new Promise(function(_0x3a446c,_0x5523bf){zipdir(_0x3b3ca5,{'saveTo':_0x53bcd6},function(_0x13e78f,_0x9466c0){if(_0x13e78f)return _0x5523bf(_0x13e78f);return _0x3a446c(_0x9466c0);});})[_0x3c8568(0x137)](function(){return new Promise(function(_0x5bbc5b,_0x473ae1){rimraf(_0x3b3ca5,function(_0x3d4e80){if(_0x3d4e80)_0x473ae1(_0x3d4e80);return _0x5bbc5b();});});})['then'](function(){const _0x3bf595=_0x3c8568;return _0x2eb63e[_0x3bf595(0x18a)](_0x53bcd6,_0x47b1ce,function(_0x50c7f7){const _0x5d0fc9=_0x3bf595;_0x50c7f7?console[_0x5d0fc9(0xd0)](_0x5d0fc9(0x10f),_0x50c7f7):fs[_0x5d0fc9(0x17f)](_0x53bcd6);});});});}else return _0x2eb63e[_0x354342(0x163)](0xc8);})['catch'](handleError(_0x2eb63e,null));}; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.events.js b/server/api/whatsappInteraction/whatsappInteraction.events.js index 41fb090..2e762c2 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.events.js +++ b/server/api/whatsappInteraction/whatsappInteraction.events.js @@ -1 +1 @@ -const a952_0x5e58=['events','WhatsappMessage','getUsers','unreadMessages','remove','save','addHook','Users','undefined','../../mysqldb','map','exports','setMaxListeners','emit','findAll','WhatsappInteraction','then','setDataValue','catch'];(function(_0x4b06ee,_0x43c91b){const _0x5e5880=function(_0x448bcf){while(--_0x448bcf){_0x4b06ee['push'](_0x4b06ee['shift']());}};_0x5e5880(++_0x43c91b);}(a952_0x5e58,0x116));const a952_0x448b=function(_0x4b06ee,_0x43c91b){_0x4b06ee=_0x4b06ee-0xbc;let _0x5e5880=a952_0x5e58[_0x4b06ee];return _0x5e5880;};const a952_0x1973a3=a952_0x448b;'use strict';const EventEmitter=require(a952_0x1973a3(0xc3)),WhatsappInteraction=require(a952_0x1973a3(0xcc))['db'][a952_0x1973a3(0xbf)],WhatsappMessage=require(a952_0x1973a3(0xcc))['db'][a952_0x1973a3(0xc4)],WhatsappInteractionEvents=new EventEmitter();WhatsappInteractionEvents[a952_0x1973a3(0xbc)](0x0);const events={'afterCreate':a952_0x1973a3(0xc8),'afterUpdate':'update','afterDestroy':a952_0x1973a3(0xc7)};function emitEvent(_0x38b050){return function(_0x5f134f){const _0x2ccba7=a952_0x448b;_0x5f134f[_0x2ccba7(0xc5)]({'attributes':['id'],'raw':!![]})[_0x2ccba7(0xc0)](function(_0x49b0fa){const _0x45f413=_0x2ccba7;return _0x5f134f['setDataValue'](_0x45f413(0xca),_0x49b0fa[_0x45f413(0xcd)](function(_0x34b1aa){return{'id':_0x34b1aa['id']};})),WhatsappMessage[_0x45f413(0xbe)]({'where':{'WhatsappInteractionId':_0x5f134f['id'],'direction':'in','read':![]},'raw':!![]});})[_0x2ccba7(0xc0)](function(_0x236c13){const _0x136e46=_0x2ccba7;_0x5f134f[_0x136e46(0xc1)](_0x136e46(0xc6),_0x236c13['length']),WhatsappInteractionEvents[_0x136e46(0xbd)](_0x38b050+':'+_0x5f134f['id'],_0x5f134f),WhatsappInteractionEvents['emit'](_0x38b050,_0x5f134f);})[_0x2ccba7(0xc2)](()=>{});};}for(const e in events){if(typeof events[e]!==a952_0x1973a3(0xcb)){const event=events[e];WhatsappInteraction[a952_0x1973a3(0xc9)](e,emitEvent(event));}}module[a952_0x1973a3(0xce)]=WhatsappInteractionEvents; \ No newline at end of file +const a952_0x2ebf=['setDataValue','emit','catch','map','setMaxListeners','unreadMessages','undefined','update','WhatsappInteraction','Users','save','remove','then','WhatsappMessage','exports','findAll','../../mysqldb'];(function(_0x191027,_0x296166){const _0x2ebf65=function(_0x480d1c){while(--_0x480d1c){_0x191027['push'](_0x191027['shift']());}};_0x2ebf65(++_0x296166);}(a952_0x2ebf,0x123));const a952_0x480d=function(_0x191027,_0x296166){_0x191027=_0x191027-0xd2;let _0x2ebf65=a952_0x2ebf[_0x191027];return _0x2ebf65;};const a952_0x3fa396=a952_0x480d;'use strict';const EventEmitter=require('events'),WhatsappInteraction=require(a952_0x3fa396(0xe0))['db'][a952_0x3fa396(0xd8)],WhatsappMessage=require(a952_0x3fa396(0xe0))['db'][a952_0x3fa396(0xdd)],WhatsappInteractionEvents=new EventEmitter();WhatsappInteractionEvents[a952_0x3fa396(0xd4)](0x0);const events={'afterCreate':a952_0x3fa396(0xda),'afterUpdate':a952_0x3fa396(0xd7),'afterDestroy':a952_0x3fa396(0xdb)};function emitEvent(_0x31249d){return function(_0x490a5d){const _0x3f2e95=a952_0x480d;_0x490a5d['getUsers']({'attributes':['id'],'raw':!![]})[_0x3f2e95(0xdc)](function(_0x426c62){const _0x5cf365=_0x3f2e95;return _0x490a5d['setDataValue'](_0x5cf365(0xd9),_0x426c62[_0x5cf365(0xd3)](function(_0x76de6){return{'id':_0x76de6['id']};})),WhatsappMessage[_0x5cf365(0xdf)]({'where':{'WhatsappInteractionId':_0x490a5d['id'],'direction':'in','read':![]},'raw':!![]});})[_0x3f2e95(0xdc)](function(_0x4f6bac){const _0x791488=_0x3f2e95;_0x490a5d[_0x791488(0xe1)](_0x791488(0xd5),_0x4f6bac['length']),WhatsappInteractionEvents['emit'](_0x31249d+':'+_0x490a5d['id'],_0x490a5d),WhatsappInteractionEvents[_0x791488(0xe2)](_0x31249d,_0x490a5d);})[_0x3f2e95(0xd2)](()=>{});};}for(const e in events){if(typeof events[e]!==a952_0x3fa396(0xd6)){const event=events[e];WhatsappInteraction['addHook'](e,emitEvent(event));}}module[a952_0x3fa396(0xde)]=WhatsappInteractionEvents; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.model.js b/server/api/whatsappInteraction/whatsappInteraction.model.js index b79a54d..893daad 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.model.js +++ b/server/api/whatsappInteraction/whatsappInteraction.model.js @@ -1 +1 @@ -const a953_0x471b=['./whatsappInteraction.options','init','exports','./whatsappInteraction.attributes','sequelize','function'];(function(_0x3f234e,_0x5de209){const _0x471bef=function(_0x32508c){while(--_0x32508c){_0x3f234e['push'](_0x3f234e['shift']());}};_0x471bef(++_0x5de209);}(a953_0x471b,0x1ae));const a953_0x3250=function(_0x3f234e,_0x5de209){_0x3f234e=_0x3f234e-0x160;let _0x471bef=a953_0x471b[_0x3f234e];return _0x471bef;};const a953_0x2e5284=a953_0x3250;'use strict';const {Model}=require(a953_0x2e5284(0x160)),{attributes}=require(a953_0x2e5284(0x165)),{options}=require(a953_0x2e5284(0x162));class WhatsappInteraction extends Model{}function init(_0x2ea29f,_0x14f9cd){const _0x350e21=a953_0x2e5284,_0x5eb78d=options(_0x2ea29f),_0x1518de=typeof _0x14f9cd===_0x350e21(0x161)?_0x14f9cd(_0x5eb78d):_0x5eb78d;return WhatsappInteraction[_0x350e21(0x163)](attributes,_0x1518de),WhatsappInteraction;}module[a953_0x2e5284(0x164)]['WhatsappInteraction']=WhatsappInteraction,module[a953_0x2e5284(0x164)]['init']=init; \ No newline at end of file +const a953_0x3713=['./whatsappInteraction.attributes','function','./whatsappInteraction.options','WhatsappInteraction','init','exports'];(function(_0x8c562f,_0xc0029c){const _0x371329=function(_0x536ceb){while(--_0x536ceb){_0x8c562f['push'](_0x8c562f['shift']());}};_0x371329(++_0xc0029c);}(a953_0x3713,0x1d1));const a953_0x536c=function(_0x8c562f,_0xc0029c){_0x8c562f=_0x8c562f-0x10d;let _0x371329=a953_0x3713[_0x8c562f];return _0x371329;};const a953_0x431227=a953_0x536c;'use strict';const {Model}=require('sequelize'),{attributes}=require(a953_0x431227(0x110)),{options}=require(a953_0x431227(0x112));class WhatsappInteraction extends Model{}function init(_0x822a5a,_0x9efdeb){const _0x94ce9c=a953_0x431227,_0x421ce7=options(_0x822a5a),_0x24ae93=typeof _0x9efdeb===_0x94ce9c(0x111)?_0x9efdeb(_0x421ce7):_0x421ce7;return WhatsappInteraction[_0x94ce9c(0x10e)](attributes,_0x24ae93),WhatsappInteraction;}module[a953_0x431227(0x10f)][a953_0x431227(0x10d)]=WhatsappInteraction,module[a953_0x431227(0x10f)][a953_0x431227(0x10e)]=init; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.options.js b/server/api/whatsappInteraction/whatsappInteraction.options.js index 54e71f9..a6f70ae 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.options.js +++ b/server/api/whatsappInteraction/whatsappInteraction.options.js @@ -1 +1 @@ -const a954_0x4af1=['whatsapp_interactions','exports','closed','changed','options','moment','YYYY-MM-DD\x20HH:mm:ss','closedAt'];(function(_0x537e20,_0x9a1d57){const _0x4af180=function(_0x122292){while(--_0x122292){_0x537e20['push'](_0x537e20['shift']());}};_0x4af180(++_0x9a1d57);}(a954_0x4af1,0xec));const a954_0x1222=function(_0x537e20,_0x9a1d57){_0x537e20=_0x537e20-0xbc;let _0x4af180=a954_0x4af1[_0x537e20];return _0x4af180;};const a954_0x124c09=a954_0x1222,moment=require(a954_0x124c09(0xbd));function options(_0x341854){const _0x489b90=a954_0x124c09;return{'sequelize':_0x341854,'tableName':_0x489b90(0xc0),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0xc8186b){const _0x53a6a3=_0x489b90;_0xc8186b[_0x53a6a3(0xc3)](_0x53a6a3(0xc2))&&(_0xc8186b[_0x53a6a3(0xbf)]=moment()['format'](_0x53a6a3(0xbe)));}}};}module[a954_0x124c09(0xc1)][a954_0x124c09(0xbc)]=options; \ No newline at end of file +const a954_0x1a48=['changed','options','closedAt','YYYY-MM-DD\x20HH:mm:ss','closed','moment','exports'];(function(_0x3daa80,_0x1120b4){const _0x1a4806=function(_0x41fe2d){while(--_0x41fe2d){_0x3daa80['push'](_0x3daa80['shift']());}};_0x1a4806(++_0x1120b4);}(a954_0x1a48,0x123));const a954_0x41fe=function(_0x3daa80,_0x1120b4){_0x3daa80=_0x3daa80-0x16b;let _0x1a4806=a954_0x1a48[_0x3daa80];return _0x1a4806;};const a954_0x5cf8e1=a954_0x41fe,moment=require(a954_0x5cf8e1(0x16c));function options(_0x1be3b7){return{'sequelize':_0x1be3b7,'tableName':'whatsapp_interactions','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x353f55){const _0x50aabf=a954_0x41fe;_0x353f55[_0x50aabf(0x16e)](_0x50aabf(0x16b))&&(_0x353f55[_0x50aabf(0x170)]=moment()['format'](_0x50aabf(0x171)));}}};}module[a954_0x5cf8e1(0x16d)][a954_0x5cf8e1(0x16f)]=options; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.rpc.js b/server/api/whatsappInteraction/whatsappInteraction.rpc.js index 70f0637..363d66d 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.rpc.js +++ b/server/api/whatsappInteraction/whatsappInteraction.rpc.js @@ -1 +1 @@ -const a955_0x840d=['error','raw','debug','UpdateWhatsappInteraction','catch','AddTags','../../rediscache','../../mysqldb','then','update','message','info','rpc','options','limit','body','ids','addTags','findOne','AddTagsToWhatsappInteraction','stringify','./whatsappInteraction.socket','register','WhatsappInteraction'];(function(_0xdac58a,_0x5aae6d){const _0x840dec=function(_0xa677e7){while(--_0xa677e7){_0xdac58a['push'](_0xdac58a['shift']());}};_0x840dec(++_0x5aae6d);}(a955_0x840d,0x184));const a955_0xa677=function(_0xdac58a,_0x5aae6d){_0xdac58a=_0xdac58a-0x15d;let _0x840dec=a955_0x840d[_0xdac58a];return _0x840dec;};const a955_0x32abb2=a955_0xa677;'use strict';const _=require('lodash'),db=require(a955_0x32abb2(0x160))['db'],logger=require('../../config/logger')(a955_0x32abb2(0x165)),{getSocket}=require(a955_0x32abb2(0x15f)),socket=getSocket();require(a955_0x32abb2(0x16e))[a955_0x32abb2(0x16f)](socket),exports[a955_0x32abb2(0x174)]=function(_0x15aa96){const _0x220f60=this;return new Promise(function(_0x5f1702,_0x719f1f){const _0x2ae0e8=a955_0xa677;return db[_0x2ae0e8(0x170)][_0x2ae0e8(0x162)](_0x15aa96[_0x2ae0e8(0x168)],{'raw':_0x15aa96[_0x2ae0e8(0x166)]?_0x15aa96[_0x2ae0e8(0x166)][_0x2ae0e8(0x172)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x15aa96['options']?_0x15aa96[_0x2ae0e8(0x166)]['where']||null:null,'attributes':_0x15aa96[_0x2ae0e8(0x166)]?_0x15aa96[_0x2ae0e8(0x166)]['attributes']||null:null,'limit':_0x15aa96[_0x2ae0e8(0x166)]?_0x15aa96[_0x2ae0e8(0x166)][_0x2ae0e8(0x167)]||null:null})[_0x2ae0e8(0x161)](function(_0x43d62b){const _0x3a968b=_0x2ae0e8;logger[_0x3a968b(0x164)](_0x3a968b(0x174),_0x15aa96),logger['debug'](_0x3a968b(0x174),_0x15aa96,JSON[_0x3a968b(0x16d)](_0x43d62b)),_0x5f1702(_0x43d62b);})[_0x2ae0e8(0x15d)](function(_0x45c2b8){const _0x18096f=_0x2ae0e8;logger[_0x18096f(0x171)](_0x18096f(0x174),_0x45c2b8[_0x18096f(0x163)],_0x15aa96),_0x719f1f(_0x220f60[_0x18096f(0x171)](0x1f4,_0x45c2b8[_0x18096f(0x163)]));});});},exports[a955_0x32abb2(0x16c)]=function(_0x49a403){const _0x393824=this;return new Promise(function(_0x168af9,_0x2a7655){const _0x5095cc=a955_0xa677;return db['WhatsappInteraction'][_0x5095cc(0x16b)]({'where':_0x49a403[_0x5095cc(0x166)]?_0x49a403[_0x5095cc(0x166)]['where']||null:null})['then'](function(_0xc622a9){const _0x4b82f8=_0x5095cc;if(_0xc622a9)return _0xc622a9[_0x4b82f8(0x16a)](_0x49a403[_0x4b82f8(0x168)][_0x4b82f8(0x169)],{'through':_['omit'](_0x49a403[_0x4b82f8(0x168)],[_0x4b82f8(0x169),'id'])});})[_0x5095cc(0x161)](function([_0x18d2e0]){const _0x41cbd8=_0x5095cc;logger[_0x41cbd8(0x164)](_0x41cbd8(0x15e),_0x49a403),logger[_0x41cbd8(0x173)](_0x41cbd8(0x15e),_0x49a403,JSON[_0x41cbd8(0x16d)](_0x18d2e0)),_0x168af9(_0x18d2e0);})[_0x5095cc(0x15d)](function(_0x57ad1a){const _0xed1b68=_0x5095cc;logger[_0xed1b68(0x171)](_0xed1b68(0x15e),_0x57ad1a['message'],_0x49a403),_0x2a7655(_0x393824[_0xed1b68(0x171)](0x1f4,_0x57ad1a['message']));});});}; \ No newline at end of file +const a955_0x5111=['error','addTags','UpdateWhatsappInteraction','../../mysqldb','limit','then','stringify','omit','update','./whatsappInteraction.socket','register','raw','options','AddTags','lodash','catch','info','body','ids','debug','where','message','WhatsappInteraction','attributes'];(function(_0x4f4694,_0x31ac7e){const _0x511140=function(_0xbf618c){while(--_0xbf618c){_0x4f4694['push'](_0x4f4694['shift']());}};_0x511140(++_0x31ac7e);}(a955_0x5111,0x172));const a955_0xbf61=function(_0x4f4694,_0x31ac7e){_0x4f4694=_0x4f4694-0xaa;let _0x511140=a955_0x5111[_0x4f4694];return _0x511140;};const a955_0x4d87f5=a955_0xbf61;'use strict';const _=require(a955_0x4d87f5(0xae)),db=require(a955_0x4d87f5(0xbb))['db'],logger=require('../../config/logger')('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket();require(a955_0x4d87f5(0xc1))[a955_0x4d87f5(0xaa)](socket),exports['UpdateWhatsappInteraction']=function(_0x55aa3d){const _0x4c7def=this;return new Promise(function(_0x301119,_0x3e4e20){const _0x17eac3=a955_0xbf61;return db['WhatsappInteraction'][_0x17eac3(0xc0)](_0x55aa3d['body'],{'raw':_0x55aa3d[_0x17eac3(0xac)]?_0x55aa3d[_0x17eac3(0xac)][_0x17eac3(0xab)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x55aa3d[_0x17eac3(0xac)]?_0x55aa3d[_0x17eac3(0xac)][_0x17eac3(0xb4)]||null:null,'attributes':_0x55aa3d[_0x17eac3(0xac)]?_0x55aa3d['options'][_0x17eac3(0xb7)]||null:null,'limit':_0x55aa3d['options']?_0x55aa3d[_0x17eac3(0xac)][_0x17eac3(0xbc)]||null:null})[_0x17eac3(0xbd)](function(_0x2b7cf4){const _0x480ee0=_0x17eac3;logger[_0x480ee0(0xb0)](_0x480ee0(0xba),_0x55aa3d),logger['debug']('UpdateWhatsappInteraction',_0x55aa3d,JSON[_0x480ee0(0xbe)](_0x2b7cf4)),_0x301119(_0x2b7cf4);})[_0x17eac3(0xaf)](function(_0xeaa392){const _0x2ef089=_0x17eac3;logger['error'](_0x2ef089(0xba),_0xeaa392[_0x2ef089(0xb5)],_0x55aa3d),_0x3e4e20(_0x4c7def[_0x2ef089(0xb8)](0x1f4,_0xeaa392[_0x2ef089(0xb5)]));});});},exports['AddTagsToWhatsappInteraction']=function(_0x358b81){const _0x493e17=this;return new Promise(function(_0x324685,_0x3e390f){const _0x200df0=a955_0xbf61;return db[_0x200df0(0xb6)]['findOne']({'where':_0x358b81[_0x200df0(0xac)]?_0x358b81['options'][_0x200df0(0xb4)]||null:null})[_0x200df0(0xbd)](function(_0x1570b6){const _0x44ca23=_0x200df0;if(_0x1570b6)return _0x1570b6[_0x44ca23(0xb9)](_0x358b81[_0x44ca23(0xb1)][_0x44ca23(0xb2)],{'through':_[_0x44ca23(0xbf)](_0x358b81[_0x44ca23(0xb1)],[_0x44ca23(0xb2),'id'])});})[_0x200df0(0xbd)](function([_0x4b1f2e]){const _0x3cd169=_0x200df0;logger['info'](_0x3cd169(0xad),_0x358b81),logger[_0x3cd169(0xb3)](_0x3cd169(0xad),_0x358b81,JSON['stringify'](_0x4b1f2e)),_0x324685(_0x4b1f2e);})['catch'](function(_0x42ca78){const _0x2995e4=_0x200df0;logger[_0x2995e4(0xb8)](_0x2995e4(0xad),_0x42ca78[_0x2995e4(0xb5)],_0x358b81),_0x3e390f(_0x493e17['error'](0x1f4,_0x42ca78[_0x2995e4(0xb5)]));});});}; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.socket.js b/server/api/whatsappInteraction/whatsappInteraction.socket.js index fc2f174..e1111b3 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.socket.js +++ b/server/api/whatsappInteraction/whatsappInteraction.socket.js @@ -1 +1 @@ -const a956_0x6e60=['emit','update','register','./whatsappInteraction.events'];(function(_0x5dd39a,_0x2beea2){const _0x6e60a9=function(_0x331b6e){while(--_0x331b6e){_0x5dd39a['push'](_0x5dd39a['shift']());}};_0x6e60a9(++_0x2beea2);}(a956_0x6e60,0x115));const a956_0x331b=function(_0x5dd39a,_0x2beea2){_0x5dd39a=_0x5dd39a-0x13d;let _0x6e60a9=a956_0x6e60[_0x5dd39a];return _0x6e60a9;};const a956_0x438451=a956_0x331b;'use strict';const WhatsappInteractionEvents=require(a956_0x438451(0x13f)),events=['save','remove',a956_0x438451(0x13d)];function createListener(_0x2be650,_0x3b2abb){return function(_0x3cf1d4){const _0x41a442=a956_0x331b;_0x3b2abb[_0x41a442(0x140)](_0x2be650,_0x3cf1d4);};}exports[a956_0x438451(0x13e)]=function(_0x8a49e6){for(let _0x2c67f1=0x0,_0xad4126=events['length'];_0x2c67f1<_0xad4126;_0x2c67f1++){const _0x20e428=events[_0x2c67f1],_0x31905f=createListener('whatsappInteraction:'+_0x20e428,_0x8a49e6);WhatsappInteractionEvents['on'](_0x20e428,_0x31905f);}}; \ No newline at end of file +const a956_0x5e80=['save','length','update','emit','./whatsappInteraction.events','whatsappInteraction:'];(function(_0x3da22a,_0x1dca10){const _0x5e8031=function(_0x346453){while(--_0x346453){_0x3da22a['push'](_0x3da22a['shift']());}};_0x5e8031(++_0x1dca10);}(a956_0x5e80,0x94));const a956_0x3464=function(_0x3da22a,_0x1dca10){_0x3da22a=_0x3da22a-0x1f1;let _0x5e8031=a956_0x5e80[_0x3da22a];return _0x5e8031;};const a956_0x66d1af=a956_0x3464;'use strict';const WhatsappInteractionEvents=require(a956_0x66d1af(0x1f1)),events=[a956_0x66d1af(0x1f3),'remove',a956_0x66d1af(0x1f5)];function createListener(_0x1d73d7,_0x47838a){return function(_0x48d923){const _0x1aced1=a956_0x3464;_0x47838a[_0x1aced1(0x1f6)](_0x1d73d7,_0x48d923);};}exports['register']=function(_0xdbec){const _0x4ccd2d=a956_0x66d1af;for(let _0x659f01=0x0,_0x75cb08=events[_0x4ccd2d(0x1f4)];_0x659f01<_0x75cb08;_0x659f01++){const _0x275b7e=events[_0x659f01],_0x314b84=createListener(_0x4ccd2d(0x1f2)+_0x275b7e,_0xdbec);WhatsappInteractionEvents['on'](_0x275b7e,_0x314b84);}}; \ No newline at end of file diff --git a/server/api/whatsappMessage/index.js b/server/api/whatsappMessage/index.js index 3adb040..572bbc9 100644 --- a/server/api/whatsappMessage/index.js +++ b/server/api/whatsappMessage/index.js @@ -1 +1 @@ -const a957_0x4eb3=['put','/:id','whatsappmessage:create','whatsapp','create','get','describe','../../components/auth/service','show','Router','tracked','/:id/accept','isAuthenticated','update','/:id/status','/:id/reject','accept','./whatsappMessage.controller','../../components/interaction/service','/describe','delete','destroy','post'];(function(_0x545561,_0x2c4a58){const _0x4eb33b=function(_0x4b6a93){while(--_0x4b6a93){_0x545561['push'](_0x545561['shift']());}};_0x4eb33b(++_0x2c4a58);}(a957_0x4eb3,0x188));const a957_0x4b6a=function(_0x545561,_0x2c4a58){_0x545561=_0x545561-0x180;let _0x4eb33b=a957_0x4eb3[_0x545561];return _0x4eb33b;};const a957_0x6480ff=a957_0x4b6a;'use strict';const express=require('express'),router=express[a957_0x6480ff(0x188)](),auth=require(a957_0x6480ff(0x186)),interaction=require(a957_0x6480ff(0x191)),controller=require(a957_0x6480ff(0x190));router['get']('/',auth[a957_0x6480ff(0x18b)](),controller['index']),router[a957_0x6480ff(0x184)](a957_0x6480ff(0x192),auth[a957_0x6480ff(0x18b)](),controller[a957_0x6480ff(0x185)]),router[a957_0x6480ff(0x184)](a957_0x6480ff(0x180),auth[a957_0x6480ff(0x18b)](),controller[a957_0x6480ff(0x187)]),router[a957_0x6480ff(0x195)]('/',auth[a957_0x6480ff(0x18b)](),interaction[a957_0x6480ff(0x189)](a957_0x6480ff(0x182),a957_0x6480ff(0x181)),controller[a957_0x6480ff(0x183)]),router[a957_0x6480ff(0x195)](a957_0x6480ff(0x18d),controller['status']),router[a957_0x6480ff(0x196)](a957_0x6480ff(0x180),auth[a957_0x6480ff(0x18b)](),controller[a957_0x6480ff(0x18c)]),router[a957_0x6480ff(0x196)](a957_0x6480ff(0x18a),auth[a957_0x6480ff(0x18b)](),controller[a957_0x6480ff(0x18f)]),router['put'](a957_0x6480ff(0x18e),auth[a957_0x6480ff(0x18b)](),controller['reject']),router[a957_0x6480ff(0x193)](a957_0x6480ff(0x180),auth['isAuthenticated'](),controller[a957_0x6480ff(0x194)]),module['exports']=router; \ No newline at end of file +const a957_0x3ab6=['/:id/accept','post','describe','./whatsappMessage.controller','isAuthenticated','/:id/reject','/:id/status','update','exports','express','../../components/interaction/service','index','whatsappmessage:create','/:id','reject','put','/describe','show','whatsapp','status','get','create'];(function(_0x1bff3c,_0x361c88){const _0x3ab661=function(_0x3b22dd){while(--_0x3b22dd){_0x1bff3c['push'](_0x1bff3c['shift']());}};_0x3ab661(++_0x361c88);}(a957_0x3ab6,0x197));const a957_0x3b22=function(_0x1bff3c,_0x361c88){_0x1bff3c=_0x1bff3c-0x15c;let _0x3ab661=a957_0x3ab6[_0x1bff3c];return _0x3ab661;};const a957_0x3f815e=a957_0x3b22;'use strict';const express=require(a957_0x3f815e(0x170)),router=express['Router'](),auth=require('../../components/auth/service'),interaction=require(a957_0x3f815e(0x171)),controller=require(a957_0x3f815e(0x16a));router[a957_0x3f815e(0x165)]('/',auth[a957_0x3f815e(0x16b)](),controller[a957_0x3f815e(0x15c)]),router[a957_0x3f815e(0x165)](a957_0x3f815e(0x161),auth[a957_0x3f815e(0x16b)](),controller[a957_0x3f815e(0x169)]),router[a957_0x3f815e(0x165)](a957_0x3f815e(0x15e),auth[a957_0x3f815e(0x16b)](),controller[a957_0x3f815e(0x162)]),router['post']('/',auth[a957_0x3f815e(0x16b)](),interaction['tracked'](a957_0x3f815e(0x163),a957_0x3f815e(0x15d)),controller[a957_0x3f815e(0x166)]),router[a957_0x3f815e(0x168)](a957_0x3f815e(0x16d),controller[a957_0x3f815e(0x164)]),router[a957_0x3f815e(0x160)]('/:id',auth[a957_0x3f815e(0x16b)](),controller[a957_0x3f815e(0x16e)]),router[a957_0x3f815e(0x160)](a957_0x3f815e(0x167),auth[a957_0x3f815e(0x16b)](),controller['accept']),router['put'](a957_0x3f815e(0x16c),auth[a957_0x3f815e(0x16b)](),controller[a957_0x3f815e(0x15f)]),router['delete'](a957_0x3f815e(0x15e),auth[a957_0x3f815e(0x16b)](),controller['destroy']),module[a957_0x3f815e(0x16f)]=router; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.attributes.js b/server/api/whatsappMessage/whatsappMessage.attributes.js index a790c47..e3cfe76 100644 --- a/server/api/whatsappMessage/whatsappMessage.attributes.js +++ b/server/api/whatsappMessage/whatsappMessage.attributes.js @@ -1 +1 @@ -const a958_0x293e=['sequelize','DATE','out','exports','TEXT','BOOLEAN','medium','ENUM'];(function(_0x11ec93,_0x49d2e4){const _0x293e35=function(_0x1105c0){while(--_0x1105c0){_0x11ec93['push'](_0x11ec93['shift']());}};_0x293e35(++_0x49d2e4);}(a958_0x293e,0x199));const a958_0x1105=function(_0x11ec93,_0x49d2e4){_0x11ec93=_0x11ec93-0x8f;let _0x293e35=a958_0x293e[_0x11ec93];return _0x293e35;};const a958_0x26b6c9=a958_0x1105;'use strict';const {DataTypes}=require(a958_0x26b6c9(0x96)),attributes={'body':{'type':DataTypes[a958_0x26b6c9(0x92)]({'length':a958_0x26b6c9(0x94)}),'allowNull':![]},'read':{'type':DataTypes[a958_0x26b6c9(0x93)],'defaultValue':![]},'direction':{'type':DataTypes[a958_0x26b6c9(0x95)]('in',a958_0x26b6c9(0x90)),'defaultValue':'out','allowNull':![]},'messageId':{'type':DataTypes['STRING'](0xbe)},'phone':{'type':DataTypes['STRING']},'readAt':{'type':DataTypes[a958_0x26b6c9(0x8f)]},'secret':{'type':DataTypes[a958_0x26b6c9(0x93)],'defaultValue':![]},'providerName':{'type':DataTypes['STRING']},'providerResponse':{'type':DataTypes[a958_0x26b6c9(0x92)]}};module[a958_0x26b6c9(0x91)]['attributes']=attributes; \ No newline at end of file +const a958_0xa4ae=['out','sequelize','STRING','exports','ENUM','BOOLEAN','TEXT'];(function(_0x334429,_0x65df00){const _0xa4aef1=function(_0x3b0f71){while(--_0x3b0f71){_0x334429['push'](_0x334429['shift']());}};_0xa4aef1(++_0x65df00);}(a958_0xa4ae,0xd6));const a958_0x3b0f=function(_0x334429,_0x65df00){_0x334429=_0x334429-0xef;let _0xa4aef1=a958_0xa4ae[_0x334429];return _0xa4aef1;};const a958_0x430fcd=a958_0x3b0f;'use strict';const {DataTypes}=require(a958_0x430fcd(0xf3)),attributes={'body':{'type':DataTypes[a958_0x430fcd(0xf1)]({'length':'medium'}),'allowNull':![]},'read':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'direction':{'type':DataTypes[a958_0x430fcd(0xef)]('in',a958_0x430fcd(0xf2)),'defaultValue':'out','allowNull':![]},'messageId':{'type':DataTypes[a958_0x430fcd(0xf4)](0xbe)},'phone':{'type':DataTypes[a958_0x430fcd(0xf4)]},'readAt':{'type':DataTypes['DATE']},'secret':{'type':DataTypes[a958_0x430fcd(0xf0)],'defaultValue':![]},'providerName':{'type':DataTypes[a958_0x430fcd(0xf4)]},'providerResponse':{'type':DataTypes['TEXT']}};module[a958_0x430fcd(0xf5)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.controller.js b/server/api/whatsappMessage/whatsappMessage.controller.js index 8c57910..54e148c 100644 --- a/server/api/whatsappMessage/whatsappMessage.controller.js +++ b/server/api/whatsappMessage/whatsappMessage.controller.js @@ -1 +1 @@ -const a959_0x212f=['WhatsappMessage,\x20%s,\x20%s,\x20%s','rejectmessage','send','Content-Range','http','stringify','then','request','AcceptMessage','rejectMessage','offset','info','WhatsappAccount,\x20%s,\x20%s,\x20%s','intersection','show','end','util','accept','jayson/promise','catch','WhatsappMessage','stack','CmContact','describe','debug','message','[WHATSAPPMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','include','undefined','format','user','event','params','where','filters','null','../../config/logger','received\x20delivery\x20report\x20from','WhatsappInteraction','client','register','findOne','request\x20sent','model','whatsapp','includeAll','isNil','WhatsappInteractionId','MessageStatus','merge','index','read','filter','api','WhatsappMessage,\x20%s,\x20%s','length','lodash','create','SIP/%s','get','MessageSid','query','status','inspect','YYYY-MM-DD\x20HH:mm:ss','WhatsappAccount','json','update','count','attributes','channel','WhatsappAccountId','rows','role','name','order','type','error','../../rediscache','UserId','WhatsppMessage,\x20%s,\x20%s,\x20%s','findAll','nolimit','twilio','sort','rawAttributes','limit','destroy','messageId','keys','fields','EventManager','options','interaction','fieldName','body','reject'];(function(_0x4e9942,_0x3a8ddb){const _0x212f73=function(_0x41254f){while(--_0x41254f){_0x4e9942['push'](_0x4e9942['shift']());}};_0x212f73(++_0x3a8ddb);}(a959_0x212f,0xe1));const a959_0x4125=function(_0x4e9942,_0x3a8ddb){_0x4e9942=_0x4e9942-0x123;let _0x212f73=a959_0x212f[_0x4e9942];return _0x212f73;};const a959_0x594c6f=a959_0x4125;'use strict';const moment=require('moment'),util=require(a959_0x594c6f(0x175)),_=require(a959_0x594c6f(0x13c)),qs=require('../../components/parsers/qs'),logger=require(a959_0x594c6f(0x128))(a959_0x594c6f(0x139)),{getSocket}=require(a959_0x594c6f(0x152)),socket=getSocket(),interaction_log=require(a959_0x594c6f(0x128))('whatsapp-interactions'),{db}=require('../../mysqldb'),{Op}=require('sequelize');require('./whatsappMessage.socket')[a959_0x594c6f(0x12c)](socket);const jayson=require(a959_0x594c6f(0x177)),client=jayson['client'][a959_0x594c6f(0x169)]({'port':0x232c}),client9002=jayson[a959_0x594c6f(0x12b)]['http']({'port':0x232a});function respondWithRpcPromise(_0x2f0d8f,_0x9f932a,_0x1fa969,_0x3713a4){return new Promise(function(_0x520222,_0x2323b5){const _0x2f1587=a959_0x4125,_0x4cddae=_0x3713a4||client;return _0x4cddae[_0x2f1587(0x16c)](_0x2f0d8f,_0x1fa969)[_0x2f1587(0x16b)](function(_0x3a39aa){const _0x2f6bdf=_0x2f1587;logger[_0x2f6bdf(0x170)]('WhatsappMessage,\x20%s,\x20%s',_0x9f932a,'request\x20sent'),logger[_0x2f6bdf(0x17d)](_0x2f6bdf(0x165),_0x9f932a,_0x2f6bdf(0x12e),JSON[_0x2f6bdf(0x16a)](_0x3a39aa));if(_0x3a39aa['error']){if(_0x3a39aa[_0x2f6bdf(0x151)]['code']===0x1f4)return logger[_0x2f6bdf(0x151)](_0x2f6bdf(0x13a),_0x9f932a,_0x3a39aa['error'][_0x2f6bdf(0x17e)]),_0x2323b5(_0x3a39aa['error'][_0x2f6bdf(0x17e)]);return logger[_0x2f6bdf(0x151)](_0x2f6bdf(0x13a),_0x9f932a,_0x3a39aa[_0x2f6bdf(0x151)][_0x2f6bdf(0x17e)]),_0x520222(_0x3a39aa[_0x2f6bdf(0x151)][_0x2f6bdf(0x17e)]);}else logger[_0x2f6bdf(0x170)](_0x2f6bdf(0x13a),_0x9f932a,_0x2f6bdf(0x12e)),_0x520222(_0x3a39aa['result'][_0x2f6bdf(0x17e)]);})['catch'](function(_0x459944){const _0x2f1792=_0x2f1587;logger[_0x2f1792(0x151)](_0x2f1792(0x13a),_0x9f932a,_0x459944),_0x2323b5(_0x459944);});});}function respondWithResult(_0x4d92ef,_0x4f5a02){return _0x4f5a02=_0x4f5a02||0xc8,function(_0x10e81){const _0x381658=a959_0x4125;if(_0x10e81)return _0x4d92ef[_0x381658(0x142)](_0x4f5a02)['json'](_0x10e81);};}function respondWithFilteredResult(_0x3ebfc2,_0x111504){return function(_0x7d361d){const _0x2e1c02=a959_0x4125;if(_0x7d361d){const _0x1abf9c=_0x7d361d[_0x2e1c02(0x148)],_0x504686=_0x111504['offset'];let _0x4e9e00=_0x111504[_0x2e1c02(0x16f)]+_0x111504[_0x2e1c02(0x15a)],_0x547ba4;return _0x4e9e00>=_0x1abf9c?(_0x4e9e00=_0x1abf9c,_0x547ba4=0xc8):_0x547ba4=0xce,_0x3ebfc2['status'](_0x547ba4),_0x3ebfc2['set'](_0x2e1c02(0x168),_0x504686+'-'+_0x4e9e00+'/'+_0x1abf9c)[_0x2e1c02(0x146)](_0x7d361d);}return null;};}function saveUpdates(_0x16ac5a){return function(_0x2b9154){const _0x3f606e=a959_0x4125;if(_0x2b9154)return _0x2b9154[_0x3f606e(0x147)](_0x16ac5a)[_0x3f606e(0x16b)](function(_0x21acc7){return _0x21acc7;});return null;};}function removeEntity(_0x34ff72){return function(_0x4e2adf){const _0x46226b=a959_0x4125;if(_0x4e2adf)return _0x4e2adf[_0x46226b(0x15b)]()[_0x46226b(0x16b)](function(){const _0x319a1c=_0x46226b;_0x34ff72[_0x319a1c(0x142)](0xcc)[_0x319a1c(0x174)]();});};}function handleEntityNotFound(_0x51659c){return function(_0x21a3f5){return!_0x21a3f5&&_0x51659c['sendStatus'](0x194),_0x21a3f5;};}function handleError(_0x424c2f,_0x3b4547){return _0x3b4547=_0x3b4547||0x1f4,function(_0x3f564b){const _0x542a72=a959_0x4125;logger[_0x542a72(0x151)](_0x3f564b[_0x542a72(0x17a)]),_0x3f564b[_0x542a72(0x14e)]&&delete _0x3f564b['name'],_0x424c2f[_0x542a72(0x142)](_0x3b4547)[_0x542a72(0x167)](_0x3f564b);};}exports[a959_0x594c6f(0x136)]=function(_0x4f6c6b,_0x732595){const _0x3c6dc7=a959_0x594c6f;let _0x329ae6={};const _0x4d6c17={},_0x5f4f46={'count':0x0,'rows':[]},_0x2d59a6=_['map'](db[_0x3c6dc7(0x179)][_0x3c6dc7(0x159)],function(_0x5dbcc8){const _0x38ee86=_0x3c6dc7;return{'name':_0x5dbcc8[_0x38ee86(0x162)],'type':_0x5dbcc8[_0x38ee86(0x150)]['key']};});_0x4d6c17[_0x3c6dc7(0x12f)]=_['map'](_0x2d59a6,_0x3c6dc7(0x14e)),_0x4d6c17[_0x3c6dc7(0x141)]=_['keys'](_0x4f6c6b[_0x3c6dc7(0x141)]),_0x4d6c17['filters']=_[_0x3c6dc7(0x172)](_0x4d6c17[_0x3c6dc7(0x12f)],_0x4d6c17['query']),_0x329ae6[_0x3c6dc7(0x149)]=_[_0x3c6dc7(0x172)](_0x4d6c17['model'],qs['fields'](_0x4f6c6b[_0x3c6dc7(0x141)][_0x3c6dc7(0x15e)])),_0x329ae6[_0x3c6dc7(0x149)]=_0x329ae6[_0x3c6dc7(0x149)][_0x3c6dc7(0x13b)]?_0x329ae6[_0x3c6dc7(0x149)]:_0x4d6c17[_0x3c6dc7(0x12f)];typeof _0x4f6c6b[_0x3c6dc7(0x141)][_0x3c6dc7(0x156)]===_0x3c6dc7(0x181)&&(_0x329ae6[_0x3c6dc7(0x15a)]=qs[_0x3c6dc7(0x15a)](_0x4f6c6b['query'][_0x3c6dc7(0x15a)]),_0x329ae6[_0x3c6dc7(0x16f)]=qs[_0x3c6dc7(0x16f)](_0x4f6c6b[_0x3c6dc7(0x141)]['offset']));_0x329ae6[_0x3c6dc7(0x14f)]=qs[_0x3c6dc7(0x158)](_0x4f6c6b[_0x3c6dc7(0x141)][_0x3c6dc7(0x158)]),_0x329ae6[_0x3c6dc7(0x125)]=qs[_0x3c6dc7(0x126)](_['pick'](_0x4f6c6b['query'],_0x4d6c17[_0x3c6dc7(0x126)]),_0x2d59a6);_0x4f6c6b['query'][_0x3c6dc7(0x138)]&&(_0x329ae6[_0x3c6dc7(0x125)]=_[_0x3c6dc7(0x135)](_0x329ae6[_0x3c6dc7(0x125)],{[Op['or']]:_['map'](_0x2d59a6,function(_0x2e0e4f){const _0x1e915e=_0x3c6dc7;if(_0x2e0e4f[_0x1e915e(0x150)]!=='VIRTUAL'){const _0x20ba07={};return _0x20ba07[_0x2e0e4f[_0x1e915e(0x14e)]]={[Op['like']]:'%'+_0x4f6c6b['query'][_0x1e915e(0x138)]+'%'},_0x20ba07;}})}));_0x329ae6=_['merge']({},_0x329ae6,_0x4f6c6b['options']);const _0x2919f4={'where':_0x329ae6[_0x3c6dc7(0x125)]};return db[_0x3c6dc7(0x179)]['count'](_0x2919f4)[_0x3c6dc7(0x16b)](function(_0x1eb250){const _0x58d02b=_0x3c6dc7;return _0x5f4f46[_0x58d02b(0x148)]=_0x1eb250,_0x4f6c6b[_0x58d02b(0x141)][_0x58d02b(0x131)]&&(_0x329ae6[_0x58d02b(0x180)]=[{'all':!![]}]),db[_0x58d02b(0x179)][_0x58d02b(0x155)](_0x329ae6);})[_0x3c6dc7(0x16b)](function(_0x2c5e08){const _0x5c6b1b=_0x3c6dc7;return _0x5f4f46[_0x5c6b1b(0x14c)]=_0x2c5e08,_0x5f4f46;})[_0x3c6dc7(0x16b)](respondWithFilteredResult(_0x732595,_0x329ae6))[_0x3c6dc7(0x178)](handleError(_0x732595,null));},exports[a959_0x594c6f(0x173)]=function(_0x20f260,_0x261d80){const _0xc7f4fe=a959_0x594c6f;let _0x3bfc15={'raw':!![],'where':{'id':_0x20f260[_0xc7f4fe(0x124)]['id']}};const _0x25d6cb={};return _0x25d6cb[_0xc7f4fe(0x12f)]=_[_0xc7f4fe(0x15d)](db['WhatsappMessage'][_0xc7f4fe(0x159)]),_0x25d6cb[_0xc7f4fe(0x141)]=_[_0xc7f4fe(0x15d)](_0x20f260[_0xc7f4fe(0x141)]),_0x25d6cb[_0xc7f4fe(0x126)]=_[_0xc7f4fe(0x172)](_0x25d6cb[_0xc7f4fe(0x12f)],_0x25d6cb[_0xc7f4fe(0x141)]),_0x3bfc15['attributes']=_['intersection'](_0x25d6cb[_0xc7f4fe(0x12f)],qs['fields'](_0x20f260[_0xc7f4fe(0x141)][_0xc7f4fe(0x15e)])),_0x3bfc15[_0xc7f4fe(0x149)]=_0x3bfc15['attributes'][_0xc7f4fe(0x13b)]?_0x3bfc15[_0xc7f4fe(0x149)]:_0x25d6cb[_0xc7f4fe(0x12f)],_0x20f260[_0xc7f4fe(0x141)][_0xc7f4fe(0x131)]&&(_0x3bfc15['include']=[{'all':!![]}]),_0x3bfc15=_[_0xc7f4fe(0x135)]({},_0x3bfc15,_0x20f260[_0xc7f4fe(0x160)]),db[_0xc7f4fe(0x179)][_0xc7f4fe(0x12d)](_0x3bfc15)[_0xc7f4fe(0x16b)](handleEntityNotFound(_0x261d80,null))[_0xc7f4fe(0x16b)](respondWithResult(_0x261d80,null))['catch'](handleError(_0x261d80,null));},exports['create']=function(_0x4ae375,_0x5aafcf){const _0x17c827=a959_0x594c6f;return db[_0x17c827(0x179)][_0x17c827(0x13d)](_0x4ae375['body'],{})[_0x17c827(0x16b)](respondWithResult(_0x5aafcf,0xc9))['catch'](handleError(_0x5aafcf,null));},exports['update']=function(_0x5fb741,_0x19370c){const _0x4db106=a959_0x594c6f;return _0x5fb741['body']['id']&&delete _0x5fb741[_0x4db106(0x163)]['id'],db[_0x4db106(0x179)]['findOne']({'where':{'id':_0x5fb741[_0x4db106(0x124)]['id']}})[_0x4db106(0x16b)](handleEntityNotFound(_0x19370c,null))[_0x4db106(0x16b)](saveUpdates(_0x5fb741[_0x4db106(0x163)],null))[_0x4db106(0x16b)](respondWithResult(_0x19370c,null))[_0x4db106(0x178)](handleError(_0x19370c,null));},exports['destroy']=function(_0x3b7883,_0x15d63a){const _0xc2cd22=a959_0x594c6f;return db[_0xc2cd22(0x179)][_0xc2cd22(0x12d)]({'where':{'id':_0x3b7883[_0xc2cd22(0x124)]['id']}})[_0xc2cd22(0x16b)](handleEntityNotFound(_0x15d63a,null))[_0xc2cd22(0x16b)](removeEntity(_0x15d63a,null))[_0xc2cd22(0x178)](handleError(_0x15d63a,null));},exports[a959_0x594c6f(0x17c)]=function(_0x287ccb,_0x8ea564){const _0x977c0a=a959_0x594c6f;return db['WhatsappMessage'][_0x977c0a(0x17c)]()[_0x977c0a(0x16b)](respondWithResult(_0x8ea564,null))[_0x977c0a(0x178)](handleError(_0x8ea564,null));},exports['accept']=function(_0x58a513,_0x258c77){const _0x2a2656=a959_0x594c6f,_0x1ca79f={'channel':_0x2a2656(0x130)};return _0x58a513['body']['id']&&delete _0x58a513['body']['id'],_0x58a513[_0x2a2656(0x163)][_0x2a2656(0x137)]=!![],_0x58a513['body']['readAt']=moment()['format'](_0x2a2656(0x144)),_0x58a513[_0x2a2656(0x163)]['UserId']=_0x58a513[_0x2a2656(0x163)]['UserId']||_0x58a513[_0x2a2656(0x183)]['id'],db['WhatsappMessage'][_0x2a2656(0x12d)]({'where':{'id':_0x58a513['params']['id'],'UserId':null},'include':[{'model':db[_0x2a2656(0x17b)],'as':'Contact'}]})[_0x2a2656(0x16b)](handleEntityNotFound(_0x258c77,null))[_0x2a2656(0x16b)](saveUpdates(_0x58a513[_0x2a2656(0x163)],null))[_0x2a2656(0x16b)](function(_0xea90f7){const _0x3c2349=_0x2a2656;if(_0xea90f7)return _0x1ca79f[_0x3c2349(0x17e)]=_0xea90f7['get']({'plain':!![]}),db[_0x3c2349(0x12a)][_0x3c2349(0x12d)]({'where':{'id':_0xea90f7['WhatsappInteractionId']}});return null;})[_0x2a2656(0x16b)](handleEntityNotFound(_0x258c77,null))[_0x2a2656(0x16b)](function(_0x31dc74){const _0x37fb18=_0x2a2656;if(_0x31dc74)return _0x31dc74['update']({'UserId':_0x58a513['body'][_0x37fb18(0x153)],'read1stAt':_[_0x37fb18(0x132)](_0x31dc74['read1stAt'])?moment()[_0x37fb18(0x182)]('YYYY-MM-DD\x20HH:mm:ss'):undefined});return null;})[_0x2a2656(0x16b)](function(_0x58ff57){const _0x5dbb48=_0x2a2656;if(_0x58ff57)return _0x1ca79f[_0x5dbb48(0x161)]=_0x58ff57['get']({'plain':!![]}),interaction_log[_0x5dbb48(0x170)](_0x5dbb48(0x17f),_0x58a513[_0x5dbb48(0x183)]['id'],_0x58a513[_0x5dbb48(0x183)]['name'],_0x58a513[_0x5dbb48(0x183)]['role'],_0x1ca79f['interaction']['id'],_0x58a513[_0x5dbb48(0x163)]?JSON[_0x5dbb48(0x16a)](_0x58a513[_0x5dbb48(0x163)]):_0x5dbb48(0x127)),respondWithRpcPromise(_0x5dbb48(0x16d),'acceptMessage',_0x1ca79f);return null;})[_0x2a2656(0x16b)](function(_0x211f8c){const _0xfa0611=_0x2a2656;if(_0x211f8c){if(_0x58a513[_0xfa0611(0x163)]['manual'])return _0x1ca79f[_0xfa0611(0x17e)]['interface']=util[_0xfa0611(0x182)](_0xfa0611(0x13e),_0x58a513[_0xfa0611(0x183)][_0xfa0611(0x14e)]),_0x1ca79f[_0xfa0611(0x17e)]['channel']=_0x1ca79f[_0xfa0611(0x14a)],_0x1ca79f[_0xfa0611(0x17e)][_0xfa0611(0x123)]=_0xfa0611(0x176),respondWithRpcPromise(_0xfa0611(0x15f),_0xfa0611(0x15f),{'event':'acceptmessage','message':_0x1ca79f[_0xfa0611(0x17e)]},client9002)[_0xfa0611(0x16b)](function(){return _0x1ca79f;});return _0x1ca79f;}return null;})[_0x2a2656(0x16b)](respondWithResult(_0x258c77,null))[_0x2a2656(0x178)](handleError(_0x258c77,null));},exports[a959_0x594c6f(0x164)]=function(_0x1a104e,_0xdc9430){const _0x69447e=a959_0x594c6f,_0x5a3561={'agent':{},'channel':_0x69447e(0x130)};return _0x1a104e[_0x69447e(0x163)]['id']&&delete _0x1a104e[_0x69447e(0x163)]['id'],_0x1a104e[_0x69447e(0x163)][_0x69447e(0x153)]=_0x1a104e[_0x69447e(0x163)][_0x69447e(0x153)]||_0x1a104e[_0x69447e(0x183)]['id'],_0x5a3561['agent']['id']=_0x1a104e[_0x69447e(0x163)][_0x69447e(0x153)],db['WhatsappMessage'][_0x69447e(0x12d)]({'where':{'id':_0x1a104e[_0x69447e(0x124)]['id'],'UserId':null}})[_0x69447e(0x16b)](handleEntityNotFound(_0xdc9430,null))['then'](function(_0x5579a0){const _0xde6120=_0x69447e;if(_0x5579a0)return _0x5a3561[_0xde6120(0x17e)]=_0x5579a0['get']({'plain':!![]}),db[_0xde6120(0x12a)]['findOne']({'where':{'id':_0x5579a0[_0xde6120(0x133)]}});return null;})[_0x69447e(0x16b)](handleEntityNotFound(_0xdc9430,null))['then'](function(_0x452dc1){const _0x4f5322=_0x69447e;if(_0x452dc1)return _0x5a3561['interaction']=_0x452dc1[_0x4f5322(0x13f)]({'plain':!![]}),interaction_log[_0x4f5322(0x170)]('[WHATSAPPMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x1a104e['user']['id'],_0x1a104e[_0x4f5322(0x183)][_0x4f5322(0x14e)],_0x1a104e[_0x4f5322(0x183)][_0x4f5322(0x14d)],_0x5a3561[_0x4f5322(0x161)]['id'],_0x1a104e[_0x4f5322(0x163)]?JSON[_0x4f5322(0x16a)](_0x1a104e[_0x4f5322(0x163)]):_0x4f5322(0x127)),respondWithRpcPromise('RejectMessage',_0x4f5322(0x16e),_0x5a3561);return null;})[_0x69447e(0x16b)](function(_0x5ef8ad){const _0x1eff1b=_0x69447e;if(_0x5ef8ad)return _0x5ef8ad['message']['interface']=util[_0x1eff1b(0x182)](_0x1eff1b(0x13e),_0x1a104e['user'][_0x1eff1b(0x14e)]),_0x5ef8ad[_0x1eff1b(0x17e)][_0x1eff1b(0x14a)]=_0x5a3561[_0x1eff1b(0x14a)],_0x5ef8ad[_0x1eff1b(0x17e)][_0x1eff1b(0x123)]='reject',respondWithRpcPromise(_0x1eff1b(0x15f),'EventManager',{'event':_0x1eff1b(0x166),'message':_0x5ef8ad['message']},client9002),_0x5a3561;return null;})['then'](respondWithResult(_0xdc9430,null))['catch'](handleError(_0xdc9430,null));},exports[a959_0x594c6f(0x142)]=function(_0x47cbf0,_0xb3e223){const _0x25fce1=a959_0x594c6f;_0x47cbf0['body']['id']&&delete _0x47cbf0[_0x25fce1(0x163)]['id'];let _0x31be06;return db[_0x25fce1(0x179)]['findOne']({'where':{'id':_0x47cbf0[_0x25fce1(0x124)]['id']}})['then'](handleEntityNotFound(_0xb3e223,null))[_0x25fce1(0x16b)](function(_0x287400){const _0x34ae4b=_0x25fce1;if(_0x287400)return _0x31be06=_0x287400,db[_0x34ae4b(0x145)][_0x34ae4b(0x12d)]({'where':{'id':_0x287400[_0x34ae4b(0x14b)]}});})[_0x25fce1(0x16b)](handleEntityNotFound(_0xb3e223,null))[_0x25fce1(0x16b)](function(_0xbeff25){const _0x577ca8=_0x25fce1;if(_0xbeff25){logger['debug'](_0x577ca8(0x154),_0x577ca8(0x142),_0x577ca8(0x129),_0xbeff25['type'],util[_0x577ca8(0x143)](_0x47cbf0[_0x577ca8(0x163)],{'showHidden':![],'depth':null}));switch(_0xbeff25[_0x577ca8(0x150)]){case _0x577ca8(0x157):if(_0x47cbf0[_0x577ca8(0x163)][_0x577ca8(0x140)]&&_0x47cbf0[_0x577ca8(0x163)][_0x577ca8(0x140)]===_0x31be06[_0x577ca8(0x15c)]&&_0x47cbf0[_0x577ca8(0x163)][_0x577ca8(0x134)]&&_0x47cbf0[_0x577ca8(0x163)][_0x577ca8(0x134)]===_0x577ca8(0x137))return _0x31be06[_0x577ca8(0x147)]({'read':!![]});else logger[_0x577ca8(0x151)](_0x577ca8(0x171),'status',_0x577ca8(0x157),util['inspect'](_0x47cbf0[_0x577ca8(0x163)],{'showHidden':![],'depth':null}));break;}return _0x31be06;}})[_0x25fce1(0x16b)](respondWithResult(_0xb3e223,null))[_0x25fce1(0x178)](handleError(_0xb3e223,null));}; \ No newline at end of file +const a959_0x2d1f=['interface','Content-Range','user','[WHATSAPPMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','intersection','inspect','messageId','WhatsappAccountId','offset','UserId','limit','util','role','WhatsappMessage,\x20%s,\x20%s','MessageSid','length','body','create','Contact','filters','request','lodash','format','request\x20sent','read','result','CmContact','name','./whatsappMessage.socket','client','reject','where','keys','error','../../mysqldb','accept','WhatsappAccount,\x20%s,\x20%s,\x20%s','WhatsppMessage,\x20%s,\x20%s,\x20%s','../../config/logger','merge','YYYY-MM-DD\x20HH:mm:ss','WhatsappMessage','options','set','model','WhatsappInteraction','EventManager','get','rejectmessage','AcceptMessage','params','debug','findOne','jayson/promise','readAt','WhatsappAccount','MessageStatus','update','channel','api','WhatsappMessage,\x20%s,\x20%s,\x20%s','sort','rejectMessage','stringify','nolimit','undefined','fieldName','SIP/%s','code','fields','then','type','register','message','whatsapp','acceptMessage','agent','query','json','count','pick','../../components/parsers/qs','event','destroy','status','interaction','describe','filter','twilio','attributes','info','WhatsappInteractionId','includeAll','send','findAll','isNil','index','map','like','received\x20delivery\x20report\x20from','include','VIRTUAL','show','http','catch','null'];(function(_0x1d3553,_0x2693f8){const _0x2d1ff5=function(_0x4db928){while(--_0x4db928){_0x1d3553['push'](_0x1d3553['shift']());}};_0x2d1ff5(++_0x2693f8);}(a959_0x2d1f,0x186));const a959_0x4db9=function(_0x1d3553,_0x2693f8){_0x1d3553=_0x1d3553-0x139;let _0x2d1ff5=a959_0x2d1f[_0x1d3553];return _0x2d1ff5;};const a959_0x1cb2b0=a959_0x4db9;'use strict';const moment=require('moment'),util=require(a959_0x1cb2b0(0x166)),_=require(a959_0x1cb2b0(0x170)),qs=require(a959_0x1cb2b0(0x142)),logger=require(a959_0x1cb2b0(0x181))(a959_0x1cb2b0(0x196)),{getSocket}=require('../../rediscache'),socket=getSocket(),interaction_log=require(a959_0x1cb2b0(0x181))('whatsapp-interactions'),{db}=require(a959_0x1cb2b0(0x17d)),{Op}=require('sequelize');require(a959_0x1cb2b0(0x177))[a959_0x1cb2b0(0x139)](socket);const jayson=require(a959_0x1cb2b0(0x190)),client=jayson[a959_0x1cb2b0(0x178)][a959_0x1cb2b0(0x158)]({'port':0x232c}),client9002=jayson[a959_0x1cb2b0(0x178)][a959_0x1cb2b0(0x158)]({'port':0x232a});function respondWithRpcPromise(_0x3b859a,_0x4527bf,_0x46864c,_0x27827e){return new Promise(function(_0x3864e2,_0x47ef3f){const _0x9db16b=a959_0x4db9,_0x2c8c19=_0x27827e||client;return _0x2c8c19[_0x9db16b(0x16f)](_0x3b859a,_0x46864c)[_0x9db16b(0x1a1)](function(_0xe82a22){const _0x407c3b=_0x9db16b;logger[_0x407c3b(0x14b)](_0x407c3b(0x168),_0x4527bf,_0x407c3b(0x172)),logger[_0x407c3b(0x18e)](_0x407c3b(0x197),_0x4527bf,_0x407c3b(0x172),JSON[_0x407c3b(0x19a)](_0xe82a22));if(_0xe82a22[_0x407c3b(0x17c)]){if(_0xe82a22['error'][_0x407c3b(0x19f)]===0x1f4)return logger['error'](_0x407c3b(0x168),_0x4527bf,_0xe82a22[_0x407c3b(0x17c)]['message']),_0x47ef3f(_0xe82a22[_0x407c3b(0x17c)]['message']);return logger['error'](_0x407c3b(0x168),_0x4527bf,_0xe82a22[_0x407c3b(0x17c)]['message']),_0x3864e2(_0xe82a22['error'][_0x407c3b(0x13a)]);}else logger[_0x407c3b(0x14b)](_0x407c3b(0x168),_0x4527bf,_0x407c3b(0x172)),_0x3864e2(_0xe82a22[_0x407c3b(0x174)]['message']);})['catch'](function(_0x415673){const _0xb6ea0e=_0x9db16b;logger[_0xb6ea0e(0x17c)]('WhatsappMessage,\x20%s,\x20%s',_0x4527bf,_0x415673),_0x47ef3f(_0x415673);});});}function respondWithResult(_0x590525,_0x5ea0d5){return _0x5ea0d5=_0x5ea0d5||0xc8,function(_0xfd88cc){const _0x493514=a959_0x4db9;if(_0xfd88cc)return _0x590525['status'](_0x5ea0d5)[_0x493514(0x13f)](_0xfd88cc);};}function respondWithFilteredResult(_0x3be9d3,_0x2d736b){return function(_0x21e2a7){const _0x261fe1=a959_0x4db9;if(_0x21e2a7){const _0x434376=_0x21e2a7[_0x261fe1(0x140)],_0xf5a157=_0x2d736b['offset'];let _0x499b2a=_0x2d736b['offset']+_0x2d736b[_0x261fe1(0x165)],_0x480071;return _0x499b2a>=_0x434376?(_0x499b2a=_0x434376,_0x480071=0xc8):_0x480071=0xce,_0x3be9d3[_0x261fe1(0x145)](_0x480071),_0x3be9d3[_0x261fe1(0x186)](_0x261fe1(0x15c),_0xf5a157+'-'+_0x499b2a+'/'+_0x434376)['json'](_0x21e2a7);}return null;};}function saveUpdates(_0x2e4107){return function(_0x785709){const _0x1fdd06=a959_0x4db9;if(_0x785709)return _0x785709[_0x1fdd06(0x194)](_0x2e4107)[_0x1fdd06(0x1a1)](function(_0x9168a7){return _0x9168a7;});return null;};}function removeEntity(_0x4de648){return function(_0x4f13de){const _0x4b9f1e=a959_0x4db9;if(_0x4f13de)return _0x4f13de[_0x4b9f1e(0x144)]()[_0x4b9f1e(0x1a1)](function(){const _0x595a44=_0x4b9f1e;_0x4de648[_0x595a44(0x145)](0xcc)['end']();});};}function handleEntityNotFound(_0x295eee){return function(_0x2ee4b4){return!_0x2ee4b4&&_0x295eee['sendStatus'](0x194),_0x2ee4b4;};}function handleError(_0x568e8c,_0x3a9045){return _0x3a9045=_0x3a9045||0x1f4,function(_0x1eddbd){const _0x2e8731=a959_0x4db9;logger['error'](_0x1eddbd['stack']),_0x1eddbd[_0x2e8731(0x176)]&&delete _0x1eddbd[_0x2e8731(0x176)],_0x568e8c[_0x2e8731(0x145)](_0x3a9045)[_0x2e8731(0x14e)](_0x1eddbd);};}exports[a959_0x1cb2b0(0x151)]=function(_0x2fc6ce,_0x7da4d0){const _0x597e2f=a959_0x1cb2b0;let _0x546ac9={};const _0x533ba5={},_0x30bbaa={'count':0x0,'rows':[]},_0x4e30a1=_['map'](db['WhatsappMessage']['rawAttributes'],function(_0x503b1f){const _0x50ae4d=a959_0x4db9;return{'name':_0x503b1f[_0x50ae4d(0x19d)],'type':_0x503b1f[_0x50ae4d(0x1a2)]['key']};});_0x533ba5['model']=_[_0x597e2f(0x152)](_0x4e30a1,'name'),_0x533ba5[_0x597e2f(0x13e)]=_[_0x597e2f(0x17b)](_0x2fc6ce[_0x597e2f(0x13e)]),_0x533ba5[_0x597e2f(0x16e)]=_[_0x597e2f(0x15f)](_0x533ba5['model'],_0x533ba5['query']),_0x546ac9[_0x597e2f(0x14a)]=_[_0x597e2f(0x15f)](_0x533ba5['model'],qs['fields'](_0x2fc6ce[_0x597e2f(0x13e)]['fields'])),_0x546ac9[_0x597e2f(0x14a)]=_0x546ac9[_0x597e2f(0x14a)][_0x597e2f(0x16a)]?_0x546ac9[_0x597e2f(0x14a)]:_0x533ba5[_0x597e2f(0x187)];typeof _0x2fc6ce[_0x597e2f(0x13e)][_0x597e2f(0x19b)]===_0x597e2f(0x19c)&&(_0x546ac9[_0x597e2f(0x165)]=qs[_0x597e2f(0x165)](_0x2fc6ce[_0x597e2f(0x13e)][_0x597e2f(0x165)]),_0x546ac9[_0x597e2f(0x163)]=qs[_0x597e2f(0x163)](_0x2fc6ce[_0x597e2f(0x13e)][_0x597e2f(0x163)]));_0x546ac9['order']=qs['sort'](_0x2fc6ce['query'][_0x597e2f(0x198)]),_0x546ac9[_0x597e2f(0x17a)]=qs[_0x597e2f(0x16e)](_[_0x597e2f(0x141)](_0x2fc6ce[_0x597e2f(0x13e)],_0x533ba5[_0x597e2f(0x16e)]),_0x4e30a1);_0x2fc6ce['query'][_0x597e2f(0x148)]&&(_0x546ac9[_0x597e2f(0x17a)]=_[_0x597e2f(0x182)](_0x546ac9['where'],{[Op['or']]:_[_0x597e2f(0x152)](_0x4e30a1,function(_0x5355d3){const _0x48b20c=_0x597e2f;if(_0x5355d3[_0x48b20c(0x1a2)]!==_0x48b20c(0x156)){const _0x2b503d={};return _0x2b503d[_0x5355d3['name']]={[Op[_0x48b20c(0x153)]]:'%'+_0x2fc6ce['query'][_0x48b20c(0x148)]+'%'},_0x2b503d;}})}));_0x546ac9=_['merge']({},_0x546ac9,_0x2fc6ce[_0x597e2f(0x185)]);const _0x29e2ff={'where':_0x546ac9[_0x597e2f(0x17a)]};return db['WhatsappMessage'][_0x597e2f(0x140)](_0x29e2ff)['then'](function(_0x12c5ad){const _0x21d83f=_0x597e2f;return _0x30bbaa[_0x21d83f(0x140)]=_0x12c5ad,_0x2fc6ce[_0x21d83f(0x13e)][_0x21d83f(0x14d)]&&(_0x546ac9[_0x21d83f(0x155)]=[{'all':!![]}]),db[_0x21d83f(0x184)][_0x21d83f(0x14f)](_0x546ac9);})[_0x597e2f(0x1a1)](function(_0x5ec3e6){return _0x30bbaa['rows']=_0x5ec3e6,_0x30bbaa;})[_0x597e2f(0x1a1)](respondWithFilteredResult(_0x7da4d0,_0x546ac9))[_0x597e2f(0x159)](handleError(_0x7da4d0,null));},exports[a959_0x1cb2b0(0x157)]=function(_0x3c38c9,_0x17052d){const _0x440bbe=a959_0x1cb2b0;let _0x1c566e={'raw':!![],'where':{'id':_0x3c38c9[_0x440bbe(0x18d)]['id']}};const _0x4bbfa0={};return _0x4bbfa0[_0x440bbe(0x187)]=_[_0x440bbe(0x17b)](db['WhatsappMessage']['rawAttributes']),_0x4bbfa0['query']=_[_0x440bbe(0x17b)](_0x3c38c9[_0x440bbe(0x13e)]),_0x4bbfa0[_0x440bbe(0x16e)]=_[_0x440bbe(0x15f)](_0x4bbfa0[_0x440bbe(0x187)],_0x4bbfa0[_0x440bbe(0x13e)]),_0x1c566e[_0x440bbe(0x14a)]=_[_0x440bbe(0x15f)](_0x4bbfa0[_0x440bbe(0x187)],qs[_0x440bbe(0x1a0)](_0x3c38c9[_0x440bbe(0x13e)]['fields'])),_0x1c566e['attributes']=_0x1c566e[_0x440bbe(0x14a)][_0x440bbe(0x16a)]?_0x1c566e[_0x440bbe(0x14a)]:_0x4bbfa0[_0x440bbe(0x187)],_0x3c38c9[_0x440bbe(0x13e)]['includeAll']&&(_0x1c566e[_0x440bbe(0x155)]=[{'all':!![]}]),_0x1c566e=_['merge']({},_0x1c566e,_0x3c38c9[_0x440bbe(0x185)]),db[_0x440bbe(0x184)][_0x440bbe(0x18f)](_0x1c566e)[_0x440bbe(0x1a1)](handleEntityNotFound(_0x17052d,null))[_0x440bbe(0x1a1)](respondWithResult(_0x17052d,null))[_0x440bbe(0x159)](handleError(_0x17052d,null));},exports[a959_0x1cb2b0(0x16c)]=function(_0x845da6,_0x2820f2){const _0x1073d9=a959_0x1cb2b0;return db[_0x1073d9(0x184)]['create'](_0x845da6['body'],{})['then'](respondWithResult(_0x2820f2,0xc9))[_0x1073d9(0x159)](handleError(_0x2820f2,null));},exports[a959_0x1cb2b0(0x194)]=function(_0x157d73,_0x37f582){const _0x49f0c9=a959_0x1cb2b0;return _0x157d73[_0x49f0c9(0x16b)]['id']&&delete _0x157d73[_0x49f0c9(0x16b)]['id'],db[_0x49f0c9(0x184)][_0x49f0c9(0x18f)]({'where':{'id':_0x157d73[_0x49f0c9(0x18d)]['id']}})[_0x49f0c9(0x1a1)](handleEntityNotFound(_0x37f582,null))['then'](saveUpdates(_0x157d73[_0x49f0c9(0x16b)],null))['then'](respondWithResult(_0x37f582,null))[_0x49f0c9(0x159)](handleError(_0x37f582,null));},exports[a959_0x1cb2b0(0x144)]=function(_0x114cd2,_0xc2f989){const _0x479fb0=a959_0x1cb2b0;return db[_0x479fb0(0x184)][_0x479fb0(0x18f)]({'where':{'id':_0x114cd2[_0x479fb0(0x18d)]['id']}})[_0x479fb0(0x1a1)](handleEntityNotFound(_0xc2f989,null))['then'](removeEntity(_0xc2f989,null))[_0x479fb0(0x159)](handleError(_0xc2f989,null));},exports[a959_0x1cb2b0(0x147)]=function(_0x220939,_0x319d27){const _0x1b2d32=a959_0x1cb2b0;return db[_0x1b2d32(0x184)]['describe']()['then'](respondWithResult(_0x319d27,null))[_0x1b2d32(0x159)](handleError(_0x319d27,null));},exports[a959_0x1cb2b0(0x17e)]=function(_0x193af1,_0x126677){const _0x554d46=a959_0x1cb2b0,_0x56368e={'channel':'whatsapp'};return _0x193af1[_0x554d46(0x16b)]['id']&&delete _0x193af1['body']['id'],_0x193af1[_0x554d46(0x16b)][_0x554d46(0x173)]=!![],_0x193af1[_0x554d46(0x16b)][_0x554d46(0x191)]=moment()[_0x554d46(0x171)](_0x554d46(0x183)),_0x193af1[_0x554d46(0x16b)]['UserId']=_0x193af1[_0x554d46(0x16b)]['UserId']||_0x193af1['user']['id'],db['WhatsappMessage']['findOne']({'where':{'id':_0x193af1['params']['id'],'UserId':null},'include':[{'model':db[_0x554d46(0x175)],'as':_0x554d46(0x16d)}]})[_0x554d46(0x1a1)](handleEntityNotFound(_0x126677,null))[_0x554d46(0x1a1)](saveUpdates(_0x193af1[_0x554d46(0x16b)],null))['then'](function(_0x37d871){const _0x332329=_0x554d46;if(_0x37d871)return _0x56368e[_0x332329(0x13a)]=_0x37d871[_0x332329(0x18a)]({'plain':!![]}),db['WhatsappInteraction'][_0x332329(0x18f)]({'where':{'id':_0x37d871['WhatsappInteractionId']}});return null;})[_0x554d46(0x1a1)](handleEntityNotFound(_0x126677,null))[_0x554d46(0x1a1)](function(_0x3583d5){const _0x5a5092=_0x554d46;if(_0x3583d5)return _0x3583d5[_0x5a5092(0x194)]({'UserId':_0x193af1['body']['UserId'],'read1stAt':_[_0x5a5092(0x150)](_0x3583d5['read1stAt'])?moment()['format'](_0x5a5092(0x183)):undefined});return null;})[_0x554d46(0x1a1)](function(_0x4af7ec){const _0x5211f2=_0x554d46;if(_0x4af7ec)return _0x56368e['interaction']=_0x4af7ec['get']({'plain':!![]}),interaction_log[_0x5211f2(0x14b)]('[WHATSAPPMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x193af1[_0x5211f2(0x15d)]['id'],_0x193af1[_0x5211f2(0x15d)][_0x5211f2(0x176)],_0x193af1[_0x5211f2(0x15d)][_0x5211f2(0x167)],_0x56368e[_0x5211f2(0x146)]['id'],_0x193af1['body']?JSON[_0x5211f2(0x19a)](_0x193af1[_0x5211f2(0x16b)]):_0x5211f2(0x15a)),respondWithRpcPromise(_0x5211f2(0x18c),_0x5211f2(0x13c),_0x56368e);return null;})[_0x554d46(0x1a1)](function(_0x42fd51){const _0x5fb21e=_0x554d46;if(_0x42fd51){if(_0x193af1[_0x5fb21e(0x16b)]['manual'])return _0x56368e[_0x5fb21e(0x13a)][_0x5fb21e(0x15b)]=util['format'](_0x5fb21e(0x19e),_0x193af1[_0x5fb21e(0x15d)][_0x5fb21e(0x176)]),_0x56368e['message'][_0x5fb21e(0x195)]=_0x56368e[_0x5fb21e(0x195)],_0x56368e['message'][_0x5fb21e(0x143)]=_0x5fb21e(0x17e),respondWithRpcPromise(_0x5fb21e(0x189),_0x5fb21e(0x189),{'event':'acceptmessage','message':_0x56368e[_0x5fb21e(0x13a)]},client9002)['then'](function(){return _0x56368e;});return _0x56368e;}return null;})['then'](respondWithResult(_0x126677,null))['catch'](handleError(_0x126677,null));},exports[a959_0x1cb2b0(0x179)]=function(_0x2e5086,_0x46a21a){const _0x5308fb=a959_0x1cb2b0,_0x182767={'agent':{},'channel':_0x5308fb(0x13b)};return _0x2e5086[_0x5308fb(0x16b)]['id']&&delete _0x2e5086[_0x5308fb(0x16b)]['id'],_0x2e5086[_0x5308fb(0x16b)][_0x5308fb(0x164)]=_0x2e5086[_0x5308fb(0x16b)]['UserId']||_0x2e5086[_0x5308fb(0x15d)]['id'],_0x182767[_0x5308fb(0x13d)]['id']=_0x2e5086[_0x5308fb(0x16b)]['UserId'],db['WhatsappMessage']['findOne']({'where':{'id':_0x2e5086[_0x5308fb(0x18d)]['id'],'UserId':null}})[_0x5308fb(0x1a1)](handleEntityNotFound(_0x46a21a,null))['then'](function(_0x59e716){const _0x2f640b=_0x5308fb;if(_0x59e716)return _0x182767[_0x2f640b(0x13a)]=_0x59e716[_0x2f640b(0x18a)]({'plain':!![]}),db[_0x2f640b(0x188)][_0x2f640b(0x18f)]({'where':{'id':_0x59e716[_0x2f640b(0x14c)]}});return null;})[_0x5308fb(0x1a1)](handleEntityNotFound(_0x46a21a,null))['then'](function(_0xe409db){const _0x1bb775=_0x5308fb;if(_0xe409db)return _0x182767['interaction']=_0xe409db['get']({'plain':!![]}),interaction_log[_0x1bb775(0x14b)](_0x1bb775(0x15e),_0x2e5086[_0x1bb775(0x15d)]['id'],_0x2e5086['user'][_0x1bb775(0x176)],_0x2e5086[_0x1bb775(0x15d)]['role'],_0x182767['interaction']['id'],_0x2e5086[_0x1bb775(0x16b)]?JSON[_0x1bb775(0x19a)](_0x2e5086[_0x1bb775(0x16b)]):_0x1bb775(0x15a)),respondWithRpcPromise('RejectMessage',_0x1bb775(0x199),_0x182767);return null;})[_0x5308fb(0x1a1)](function(_0x34e757){const _0x2b6246=_0x5308fb;if(_0x34e757)return _0x34e757[_0x2b6246(0x13a)][_0x2b6246(0x15b)]=util[_0x2b6246(0x171)](_0x2b6246(0x19e),_0x2e5086[_0x2b6246(0x15d)][_0x2b6246(0x176)]),_0x34e757[_0x2b6246(0x13a)]['channel']=_0x182767[_0x2b6246(0x195)],_0x34e757['message'][_0x2b6246(0x143)]='reject',respondWithRpcPromise(_0x2b6246(0x189),_0x2b6246(0x189),{'event':_0x2b6246(0x18b),'message':_0x34e757[_0x2b6246(0x13a)]},client9002),_0x182767;return null;})['then'](respondWithResult(_0x46a21a,null))[_0x5308fb(0x159)](handleError(_0x46a21a,null));},exports[a959_0x1cb2b0(0x145)]=function(_0x3b1852,_0x42cd8c){const _0x2ecb8f=a959_0x1cb2b0;_0x3b1852[_0x2ecb8f(0x16b)]['id']&&delete _0x3b1852[_0x2ecb8f(0x16b)]['id'];let _0x4436eb;return db[_0x2ecb8f(0x184)][_0x2ecb8f(0x18f)]({'where':{'id':_0x3b1852['params']['id']}})['then'](handleEntityNotFound(_0x42cd8c,null))['then'](function(_0x3b2a35){const _0x33637f=_0x2ecb8f;if(_0x3b2a35)return _0x4436eb=_0x3b2a35,db[_0x33637f(0x192)][_0x33637f(0x18f)]({'where':{'id':_0x3b2a35[_0x33637f(0x162)]}});})['then'](handleEntityNotFound(_0x42cd8c,null))[_0x2ecb8f(0x1a1)](function(_0x1b7333){const _0x3dbb23=_0x2ecb8f;if(_0x1b7333){logger[_0x3dbb23(0x18e)](_0x3dbb23(0x180),_0x3dbb23(0x145),_0x3dbb23(0x154),_0x1b7333[_0x3dbb23(0x1a2)],util[_0x3dbb23(0x160)](_0x3b1852[_0x3dbb23(0x16b)],{'showHidden':![],'depth':null}));switch(_0x1b7333[_0x3dbb23(0x1a2)]){case'twilio':if(_0x3b1852['body'][_0x3dbb23(0x169)]&&_0x3b1852[_0x3dbb23(0x16b)]['MessageSid']===_0x4436eb[_0x3dbb23(0x161)]&&_0x3b1852['body'][_0x3dbb23(0x193)]&&_0x3b1852[_0x3dbb23(0x16b)]['MessageStatus']===_0x3dbb23(0x173))return _0x4436eb[_0x3dbb23(0x194)]({'read':!![]});else logger[_0x3dbb23(0x17c)](_0x3dbb23(0x17f),_0x3dbb23(0x145),_0x3dbb23(0x149),util[_0x3dbb23(0x160)](_0x3b1852[_0x3dbb23(0x16b)],{'showHidden':![],'depth':null}));break;}return _0x4436eb;}})[_0x2ecb8f(0x1a1)](respondWithResult(_0x42cd8c,null))[_0x2ecb8f(0x159)](handleError(_0x42cd8c,null));}; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.events.js b/server/api/whatsappMessage/whatsappMessage.events.js index cc03349..41753de 100644 --- a/server/api/whatsappMessage/whatsappMessage.events.js +++ b/server/api/whatsappMessage/whatsappMessage.events.js @@ -1 +1 @@ -const a960_0x4d04=['remove','undefined','addHook','exports','setMaxListeners','events','../../mysqldb','save'];(function(_0x4b507e,_0x3827e){const _0x4d043d=function(_0x5a57b1){while(--_0x5a57b1){_0x4b507e['push'](_0x4b507e['shift']());}};_0x4d043d(++_0x3827e);}(a960_0x4d04,0x9d));const a960_0x5a57=function(_0x4b507e,_0x3827e){_0x4b507e=_0x4b507e-0x140;let _0x4d043d=a960_0x4d04[_0x4b507e];return _0x4d043d;};const a960_0x289178=a960_0x5a57;'use strict';const EventEmitter=require(a960_0x289178(0x140)),WhatsappMessage=require(a960_0x289178(0x141))['db']['WhatsappMessage'],WhatsappMessageEvents=new EventEmitter();WhatsappMessageEvents[a960_0x289178(0x147)](0x0);const events={'afterCreate':a960_0x289178(0x142),'afterUpdate':'update','afterDestroy':a960_0x289178(0x143)};function emitEvent(_0xb714a6){return function(_0x3f00d2){WhatsappMessageEvents['emit'](_0xb714a6+':'+_0x3f00d2['id'],_0x3f00d2),WhatsappMessageEvents['emit'](_0xb714a6,_0x3f00d2);};}for(const e in events){if(typeof events[e]!==a960_0x289178(0x144)){const event=events[e];WhatsappMessage[a960_0x289178(0x145)](e,emitEvent(event));}}module[a960_0x289178(0x146)]=WhatsappMessageEvents; \ No newline at end of file +const a960_0x4012=['update','WhatsappMessage','save','events','emit','setMaxListeners','remove'];(function(_0x3a7460,_0x2579fe){const _0x401294=function(_0x5dd47a){while(--_0x5dd47a){_0x3a7460['push'](_0x3a7460['shift']());}};_0x401294(++_0x2579fe);}(a960_0x4012,0x123));const a960_0x5dd4=function(_0x3a7460,_0x2579fe){_0x3a7460=_0x3a7460-0xce;let _0x401294=a960_0x4012[_0x3a7460];return _0x401294;};const a960_0x4c1265=a960_0x5dd4;'use strict';const EventEmitter=require(a960_0x4c1265(0xd4)),WhatsappMessage=require('../../mysqldb')['db'][a960_0x4c1265(0xd2)],WhatsappMessageEvents=new EventEmitter();WhatsappMessageEvents[a960_0x4c1265(0xcf)](0x0);const events={'afterCreate':a960_0x4c1265(0xd3),'afterUpdate':a960_0x4c1265(0xd1),'afterDestroy':a960_0x4c1265(0xd0)};function emitEvent(_0x191ffa){return function(_0x1b362e){const _0x4ea32d=a960_0x5dd4;WhatsappMessageEvents[_0x4ea32d(0xce)](_0x191ffa+':'+_0x1b362e['id'],_0x1b362e),WhatsappMessageEvents['emit'](_0x191ffa,_0x1b362e);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];WhatsappMessage['addHook'](e,emitEvent(event));}}module['exports']=WhatsappMessageEvents; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.model.js b/server/api/whatsappMessage/whatsappMessage.model.js index 1a13881..049bf29 100644 --- a/server/api/whatsappMessage/whatsappMessage.model.js +++ b/server/api/whatsappMessage/whatsappMessage.model.js @@ -1 +1 @@ -const a961_0x117a=['init','sequelize','exports','./whatsappMessage.options','./whatsappMessage.attributes','WhatsappMessage','function'];(function(_0x11eb9d,_0xa59c98){const _0x117a42=function(_0x74dafa){while(--_0x74dafa){_0x11eb9d['push'](_0x11eb9d['shift']());}};_0x117a42(++_0xa59c98);}(a961_0x117a,0xda));const a961_0x74da=function(_0x11eb9d,_0xa59c98){_0x11eb9d=_0x11eb9d-0x1a0;let _0x117a42=a961_0x117a[_0x11eb9d];return _0x117a42;};const a961_0x780900=a961_0x74da;'use strict';const {Model}=require(a961_0x780900(0x1a0)),{attributes}=require(a961_0x780900(0x1a3)),{options}=require(a961_0x780900(0x1a2));class WhatsappMessage extends Model{}function init(_0x4f46ae,_0x4f27b4){const _0x49a347=a961_0x780900,_0x1c2fc9=options(_0x4f46ae),_0x11b860=typeof _0x4f27b4===_0x49a347(0x1a5)?_0x4f27b4(_0x1c2fc9):_0x1c2fc9;return WhatsappMessage[_0x49a347(0x1a6)](attributes,_0x11b860),WhatsappMessage;}module[a961_0x780900(0x1a1)][a961_0x780900(0x1a4)]=WhatsappMessage,module[a961_0x780900(0x1a1)]['init']=init; \ No newline at end of file +const a961_0x5888=['sequelize','init','./whatsappMessage.attributes','function','WhatsappMessage'];(function(_0x2f6158,_0x739b82){const _0x5888bf=function(_0x513fc7){while(--_0x513fc7){_0x2f6158['push'](_0x2f6158['shift']());}};_0x5888bf(++_0x739b82);}(a961_0x5888,0x1cf));const a961_0x513f=function(_0x2f6158,_0x739b82){_0x2f6158=_0x2f6158-0x18a;let _0x5888bf=a961_0x5888[_0x2f6158];return _0x5888bf;};const a961_0x161785=a961_0x513f;'use strict';const {Model}=require(a961_0x161785(0x18c)),{attributes}=require(a961_0x161785(0x18e)),{options}=require('./whatsappMessage.options');class WhatsappMessage extends Model{}function init(_0x1a942b,_0x525542){const _0x1f7865=a961_0x161785,_0x5b9863=options(_0x1a942b),_0x59a432=typeof _0x525542===_0x1f7865(0x18a)?_0x525542(_0x5b9863):_0x5b9863;return WhatsappMessage[_0x1f7865(0x18d)](attributes,_0x59a432),WhatsappMessage;}module['exports'][a961_0x161785(0x18b)]=WhatsappMessage,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.options.js b/server/api/whatsappMessage/whatsappMessage.options.js index 1c08cf6..3e7fe25 100644 --- a/server/api/whatsappMessage/whatsappMessage.options.js +++ b/server/api/whatsappMessage/whatsappMessage.options.js @@ -1 +1 @@ -const a962_0x619a=['direction','utf8mb4_unicode_ci','utf8mb4','WhatsappInteraction','/api/whatsapp/messages/','find','FULLTEXT','WhatsappAccountId','WhatsappMessage,\x20%s,\x20%s,\x20%s','Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken','exports','WhatsappInteractionId','authToken','createdAt','lodash','api','create','util','error','inspect','secret','whatsapp_messages','WhatsappAccount','findOne','get','out','messageId','whatsapp:','then','accountSid','token','sid','toLowerCase','update','options','isNil','/status?token=','twilio','type'];(function(_0x1f3dfe,_0x3dffab){const _0x619aff=function(_0x459f15){while(--_0x459f15){_0x1f3dfe['push'](_0x1f3dfe['shift']());}};_0x619aff(++_0x3dffab);}(a962_0x619a,0x6e));const a962_0x459f=function(_0x1f3dfe,_0x3dffab){_0x1f3dfe=_0x1f3dfe-0x11f;let _0x619aff=a962_0x619a[_0x1f3dfe];return _0x619aff;};const a962_0x36959b=a962_0x459f,util=require(a962_0x36959b(0x137)),_=require(a962_0x36959b(0x134)),twilio=require('twilio'),logger=require('../../config/logger')(a962_0x36959b(0x135));function options(_0x119957){const _0x2b6520=a962_0x36959b;return{'sequelize':_0x119957,'tableName':_0x2b6520(0x13b),'paranoid':![],'indexes':[{'name':_0x2b6520(0x140),'fields':['messageId']},{'name':'fti_whatsapp_messages','fields':['body'],'type':_0x2b6520(0x12c)}],'timestamps':!![],'hooks':{'afterCreate':function(_0x30c035){const _0x4d3ae4=_0x2b6520,_0x22b43c=_0x119957['models'],_0x4e9c64=_0x30c035[_0x4d3ae4(0x13e)]({'plain':!![]});(_0x4e9c64['direction'][_0x4d3ae4(0x11f)]()==='in'||_0x4e9c64[_0x4d3ae4(0x126)][_0x4d3ae4(0x11f)]()===_0x4d3ae4(0x13f)&&!_0x4e9c64[_0x4d3ae4(0x13a)]&&!_[_0x4d3ae4(0x122)](_0x4e9c64['UserId']))&&_0x22b43c[_0x4d3ae4(0x129)][_0x4d3ae4(0x13d)]({'where':{'id':_0x4e9c64[_0x4d3ae4(0x131)]}})[_0x4d3ae4(0x142)](function(_0x54604f){const _0x42d9d9=_0x4d3ae4;_0x54604f&&_0x54604f[_0x42d9d9(0x120)]({'lastMsgAt':_0x4e9c64[_0x42d9d9(0x133)],'lastMsgDirection':_0x4e9c64[_0x42d9d9(0x126)]['toLowerCase']()});})['catch'](function(_0x31e7bc){const _0x48f9ef=_0x4d3ae4;console[_0x48f9ef(0x138)](_0x31e7bc);});if(_0x4e9c64[_0x4d3ae4(0x126)]===_0x4d3ae4(0x13f)&&!_0x4e9c64[_0x4d3ae4(0x13a)]){let _0x3afd2f;_0x22b43c[_0x4d3ae4(0x13c)][_0x4d3ae4(0x12b)]({'where':{'id':_0x4e9c64[_0x4d3ae4(0x12d)]},'raw':!![]})['then'](function(_0x33bbc9){const _0x43446f=_0x4d3ae4;_0x3afd2f=_0x33bbc9;if(_0x3afd2f&&_0x3afd2f[_0x43446f(0x125)])switch(_0x3afd2f[_0x43446f(0x125)]){case _0x43446f(0x124):if(_0x3afd2f['accountSid']&&_0x3afd2f[_0x43446f(0x132)]&&_0x3afd2f['phone']){const _0x4be157=new twilio(_0x3afd2f[_0x43446f(0x143)],_0x3afd2f[_0x43446f(0x132)]);_0x4be157['messages'][_0x43446f(0x136)]({'body':_0x4e9c64['body'],'to':_0x43446f(0x141)+_0x4e9c64['phone'],'from':_0x43446f(0x141)+_0x3afd2f['phone'],'statusCallback':_0x3afd2f['remote']+_0x43446f(0x12a)+_0x4e9c64['id']+_0x43446f(0x123)+_0x3afd2f[_0x43446f(0x144)]})[_0x43446f(0x142)](function(_0x2f05d3){const _0x39cb8c=_0x43446f;if(_0x2f05d3[_0x39cb8c(0x145)])return _0x30c035['update']({'messageId':_0x2f05d3[_0x39cb8c(0x145)]});})['catch'](function(_0x5583c3){const _0x130677=_0x43446f;logger[_0x130677(0x138)](_0x130677(0x12e),'afterCreate',_0x130677(0x124),util[_0x130677(0x139)](_0x5583c3,{'showHidden':![],'depth':null}));});}else logger[_0x43446f(0x138)](_0x43446f(0x12e),'afterCreate',_0x43446f(0x124),_0x43446f(0x12f));break;}});}}},'charset':_0x2b6520(0x128),'collate':_0x2b6520(0x127)};}module[a962_0x36959b(0x130)][a962_0x36959b(0x121)]=options; \ No newline at end of file +const a962_0x5072=['accountSid','toLowerCase','error','whatsapp_messages','then','WhatsappMessage,\x20%s,\x20%s,\x20%s','get','token','WhatsappAccountId','direction','create','models','WhatsappInteractionId','utf8mb4','authToken','sid','exports','messages','catch','createdAt','body','util','api','messageId','twilio','WhatsappAccount','find','phone','secret','out','afterCreate','whatsapp:','utf8mb4_unicode_ci','type','FULLTEXT','findOne'];(function(_0x54cdd4,_0x442dbc){const _0x5072bf=function(_0x18716f){while(--_0x18716f){_0x54cdd4['push'](_0x54cdd4['shift']());}};_0x5072bf(++_0x442dbc);}(a962_0x5072,0x1db));const a962_0x1871=function(_0x54cdd4,_0x442dbc){_0x54cdd4=_0x54cdd4-0x19d;let _0x5072bf=a962_0x5072[_0x54cdd4];return _0x5072bf;};const a962_0x10d218=a962_0x1871,util=require(a962_0x10d218(0x1ab)),_=require('lodash'),twilio=require(a962_0x10d218(0x1ae)),logger=require('../../config/logger')(a962_0x10d218(0x1ac));function options(_0x398975){const _0x2307f7=a962_0x10d218;return{'sequelize':_0x398975,'tableName':_0x2307f7(0x1bd),'paranoid':![],'indexes':[{'name':_0x2307f7(0x1ad),'fields':['messageId']},{'name':'fti_whatsapp_messages','fields':[_0x2307f7(0x1aa)],'type':_0x2307f7(0x1b8)}],'timestamps':!![],'hooks':{'afterCreate':function(_0x2bb47d){const _0x4181b6=_0x2307f7,_0x290da7=_0x398975[_0x4181b6(0x1a1)],_0x3ba73c=_0x2bb47d[_0x4181b6(0x1c0)]({'plain':!![]});(_0x3ba73c[_0x4181b6(0x19f)][_0x4181b6(0x1bb)]()==='in'||_0x3ba73c[_0x4181b6(0x19f)][_0x4181b6(0x1bb)]()===_0x4181b6(0x1b3)&&!_0x3ba73c[_0x4181b6(0x1b2)]&&!_['isNil'](_0x3ba73c['UserId']))&&_0x290da7['WhatsappInteraction'][_0x4181b6(0x1b9)]({'where':{'id':_0x3ba73c[_0x4181b6(0x1a2)]}})[_0x4181b6(0x1be)](function(_0x311945){const _0x1046dc=_0x4181b6;_0x311945&&_0x311945['update']({'lastMsgAt':_0x3ba73c[_0x1046dc(0x1a9)],'lastMsgDirection':_0x3ba73c[_0x1046dc(0x19f)][_0x1046dc(0x1bb)]()});})[_0x4181b6(0x1a8)](function(_0x43b3cb){const _0x4d6a48=_0x4181b6;console[_0x4d6a48(0x1bc)](_0x43b3cb);});if(_0x3ba73c[_0x4181b6(0x19f)]==='out'&&!_0x3ba73c[_0x4181b6(0x1b2)]){let _0x4fa3f1;_0x290da7[_0x4181b6(0x1af)][_0x4181b6(0x1b0)]({'where':{'id':_0x3ba73c[_0x4181b6(0x19e)]},'raw':!![]})[_0x4181b6(0x1be)](function(_0x3a83d9){const _0x169b08=_0x4181b6;_0x4fa3f1=_0x3a83d9;if(_0x4fa3f1&&_0x4fa3f1[_0x169b08(0x1b7)])switch(_0x4fa3f1[_0x169b08(0x1b7)]){case _0x169b08(0x1ae):if(_0x4fa3f1[_0x169b08(0x1ba)]&&_0x4fa3f1[_0x169b08(0x1a4)]&&_0x4fa3f1[_0x169b08(0x1b1)]){const _0x541191=new twilio(_0x4fa3f1[_0x169b08(0x1ba)],_0x4fa3f1[_0x169b08(0x1a4)]);_0x541191[_0x169b08(0x1a7)][_0x169b08(0x1a0)]({'body':_0x3ba73c[_0x169b08(0x1aa)],'to':_0x169b08(0x1b5)+_0x3ba73c[_0x169b08(0x1b1)],'from':_0x169b08(0x1b5)+_0x4fa3f1[_0x169b08(0x1b1)],'statusCallback':_0x4fa3f1['remote']+'/api/whatsapp/messages/'+_0x3ba73c['id']+'/status?token='+_0x4fa3f1[_0x169b08(0x19d)]})[_0x169b08(0x1be)](function(_0x4a1f55){const _0x38be34=_0x169b08;if(_0x4a1f55[_0x38be34(0x1a5)])return _0x2bb47d['update']({'messageId':_0x4a1f55[_0x38be34(0x1a5)]});})[_0x169b08(0x1a8)](function(_0x26ed93){const _0x24232e=_0x169b08;logger[_0x24232e(0x1bc)]('WhatsappMessage,\x20%s,\x20%s,\x20%s',_0x24232e(0x1b4),_0x24232e(0x1ae),util['inspect'](_0x26ed93,{'showHidden':![],'depth':null}));});}else logger[_0x169b08(0x1bc)](_0x169b08(0x1bf),_0x169b08(0x1b4),_0x169b08(0x1ae),'Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken');break;}});}}},'charset':_0x2307f7(0x1a3),'collate':_0x2307f7(0x1b6)};}module[a962_0x10d218(0x1a6)]['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 e6c4f75..cbfa8c7 100644 --- a/server/api/whatsappMessage/whatsappMessage.rpc.js +++ b/server/api/whatsappMessage/whatsappMessage.rpc.js @@ -1 +1 @@ -const a963_0x24b6=['rpc','message','stringify','info','body','../../config/logger','WhatsappMessage','./whatsappMessage.socket','raw','catch','error','CreateWhatsappMessage'];(function(_0x3c06e4,_0x21394c){const _0x24b69a=function(_0x5582ab){while(--_0x5582ab){_0x3c06e4['push'](_0x3c06e4['shift']());}};_0x24b69a(++_0x21394c);}(a963_0x24b6,0x15e));const a963_0x5582=function(_0x3c06e4,_0x21394c){_0x3c06e4=_0x3c06e4-0xf3;let _0x24b69a=a963_0x24b6[_0x3c06e4];return _0x24b69a;};const a963_0x5d21dd=a963_0x5582;'use strict';const db=require('../../mysqldb')['db'],logger=require(a963_0x5d21dd(0xf6))(a963_0x5d21dd(0xfd)),{getSocket}=require('../../rediscache'),socket=getSocket();require(a963_0x5d21dd(0xf8))['register'](socket),exports[a963_0x5d21dd(0xfc)]=function(_0x4bd524){const _0x53fb43=this;return new Promise(function(_0x31c57a,_0x49f773){const _0x4a7881=a963_0x5582;return db[_0x4a7881(0xf7)]['create'](_0x4bd524[_0x4a7881(0xf5)],{'raw':_0x4bd524['options']?_0x4bd524['options'][_0x4a7881(0xf9)]===undefined?!![]:![]:!![]})['then'](function(_0x1b85ee){const _0x3142a8=_0x4a7881;logger[_0x3142a8(0xf4)](_0x3142a8(0xfc),_0x4bd524),logger['debug']('CreateWhatsappMessage',_0x4bd524,JSON[_0x3142a8(0xf3)](_0x1b85ee)),_0x31c57a(_0x1b85ee);})[_0x4a7881(0xfa)](function(_0x1875e8){const _0x26b4f1=_0x4a7881;logger[_0x26b4f1(0xfb)](_0x26b4f1(0xfc),_0x1875e8[_0x26b4f1(0xfe)],_0x4bd524),_0x49f773(_0x53fb43[_0x26b4f1(0xfb)](0x1f4,_0x1875e8[_0x26b4f1(0xfe)]));});});}; \ No newline at end of file +const a963_0x4317=['body','catch','register','./whatsappMessage.socket','then','raw','../../config/logger','error','message','CreateWhatsappMessage','create','WhatsappMessage','../../rediscache','info','rpc','../../mysqldb','options'];(function(_0x329a1d,_0x98d18e){const _0x431718=function(_0x2d9a1d){while(--_0x2d9a1d){_0x329a1d['push'](_0x329a1d['shift']());}};_0x431718(++_0x98d18e);}(a963_0x4317,0xf9));const a963_0x2d9a=function(_0x329a1d,_0x98d18e){_0x329a1d=_0x329a1d-0x95;let _0x431718=a963_0x4317[_0x329a1d];return _0x431718;};const a963_0x20c6e7=a963_0x2d9a;'use strict';const db=require(a963_0x20c6e7(0x99))['db'],logger=require(a963_0x20c6e7(0xa1))(a963_0x20c6e7(0x98)),{getSocket}=require(a963_0x20c6e7(0x96)),socket=getSocket();require(a963_0x20c6e7(0x9e))[a963_0x20c6e7(0x9d)](socket),exports['CreateWhatsappMessage']=function(_0xf2cfc5){const _0x3ad88f=this;return new Promise(function(_0xb4b9eb,_0x56ccbd){const _0x5e9335=a963_0x2d9a;return db[_0x5e9335(0x95)][_0x5e9335(0xa5)](_0xf2cfc5[_0x5e9335(0x9b)],{'raw':_0xf2cfc5['options']?_0xf2cfc5[_0x5e9335(0x9a)][_0x5e9335(0xa0)]===undefined?!![]:![]:!![]})[_0x5e9335(0x9f)](function(_0x150daa){const _0x3e65ab=_0x5e9335;logger[_0x3e65ab(0x97)](_0x3e65ab(0xa4),_0xf2cfc5),logger['debug'](_0x3e65ab(0xa4),_0xf2cfc5,JSON['stringify'](_0x150daa)),_0xb4b9eb(_0x150daa);})[_0x5e9335(0x9c)](function(_0x391df3){const _0x1630a1=_0x5e9335;logger[_0x1630a1(0xa2)]('CreateWhatsappMessage',_0x391df3['message'],_0xf2cfc5),_0x56ccbd(_0x3ad88f[_0x1630a1(0xa2)](0x1f4,_0x391df3[_0x1630a1(0xa3)]));});});}; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.socket.js b/server/api/whatsappMessage/whatsappMessage.socket.js index d865a57..1f17de2 100644 --- a/server/api/whatsappMessage/whatsappMessage.socket.js +++ b/server/api/whatsappMessage/whatsappMessage.socket.js @@ -1 +1 @@ -const a964_0x45b6=['whatsappMessage:','./whatsappMessage.events','emit','remove','register'];(function(_0x1680df,_0x50f4e6){const _0x45b6b8=function(_0x4b0a75){while(--_0x4b0a75){_0x1680df['push'](_0x1680df['shift']());}};_0x45b6b8(++_0x50f4e6);}(a964_0x45b6,0x8f));const a964_0x4b0a=function(_0x1680df,_0x50f4e6){_0x1680df=_0x1680df-0x1a8;let _0x45b6b8=a964_0x45b6[_0x1680df];return _0x45b6b8;};const a964_0x176039=a964_0x4b0a;'use strict';const WhatsappMessageEvents=require(a964_0x176039(0x1ab)),events=['save',a964_0x176039(0x1a8),'update'];function createListener(_0x43e252,_0x42a201){return function(_0x6a7548){const _0x5be743=a964_0x4b0a;_0x42a201[_0x5be743(0x1ac)](_0x43e252,_0x6a7548);};}exports[a964_0x176039(0x1a9)]=function(_0x29ef2d){const _0x323b0e=a964_0x176039;for(let _0x5a5b4f=0x0,_0x551d7b=events['length'];_0x5a5b4f<_0x551d7b;_0x5a5b4f++){const _0x3aa31e=events[_0x5a5b4f],_0x1bd2fa=createListener(_0x323b0e(0x1aa)+_0x3aa31e,_0x29ef2d);WhatsappMessageEvents['on'](_0x3aa31e,_0x1bd2fa);}}; \ No newline at end of file +const a964_0x3372=['update','register','length','remove','save','emit','./whatsappMessage.events'];(function(_0x1421ae,_0x106e4c){const _0x3372ed=function(_0x3577a1){while(--_0x3577a1){_0x1421ae['push'](_0x1421ae['shift']());}};_0x3372ed(++_0x106e4c);}(a964_0x3372,0x1af));const a964_0x3577=function(_0x1421ae,_0x106e4c){_0x1421ae=_0x1421ae-0xa0;let _0x3372ed=a964_0x3372[_0x1421ae];return _0x3372ed;};const a964_0xdf6277=a964_0x3577;'use strict';const WhatsappMessageEvents=require(a964_0xdf6277(0xa2)),events=[a964_0xdf6277(0xa0),a964_0xdf6277(0xa6),a964_0xdf6277(0xa3)];function createListener(_0x17050e,_0x497807){return function(_0x43daa1){const _0x314848=a964_0x3577;_0x497807[_0x314848(0xa1)](_0x17050e,_0x43daa1);};}exports[a964_0xdf6277(0xa4)]=function(_0x5c7ab6){const _0x2d2421=a964_0xdf6277;for(let _0xde34dc=0x0,_0x3cf7c9=events[_0x2d2421(0xa5)];_0xde34dc<_0x3cf7c9;_0xde34dc++){const _0x479813=events[_0xde34dc],_0x3593eb=createListener('whatsappMessage:'+_0x479813,_0x5c7ab6);WhatsappMessageEvents['on'](_0x479813,_0x3593eb);}}; \ No newline at end of file diff --git a/server/api/whatsappQueue/index.js b/server/api/whatsappQueue/index.js index 2c0f02a..050cae2 100644 --- a/server/api/whatsappQueue/index.js +++ b/server/api/whatsappQueue/index.js @@ -1 +1 @@ -const a965_0x2427=['get','/:id/users','describe','/:id/teams','addTeams','/:id/members','update','express','getAgents','/:id','/describe','isAuthenticated','Router','exports','./whatsappQueue.controller','post','delete','destroy','../../components/auth/service','create','removeTeams'];(function(_0x436773,_0x3aaed2){const _0x242706=function(_0x4641b4){while(--_0x4641b4){_0x436773['push'](_0x436773['shift']());}};_0x242706(++_0x3aaed2);}(a965_0x2427,0x1d3));const a965_0x4641=function(_0x436773,_0x3aaed2){_0x436773=_0x436773-0x15d;let _0x242706=a965_0x2427[_0x436773];return _0x242706;};const a965_0x104aab=a965_0x4641;'use strict';const express=require(a965_0x104aab(0x15f)),router=express[a965_0x104aab(0x164)](),auth=require(a965_0x104aab(0x16a)),controller=require(a965_0x104aab(0x166));router[a965_0x104aab(0x16d)]('/',auth['isAuthenticated'](),controller['index']),router['get'](a965_0x104aab(0x162),auth['isAuthenticated'](),controller[a965_0x104aab(0x16f)]),router[a965_0x104aab(0x16d)](a965_0x104aab(0x161),auth[a965_0x104aab(0x163)](),controller['show']),router[a965_0x104aab(0x16d)](a965_0x104aab(0x15d),auth['isAuthenticated'](),controller['getMembers']),router[a965_0x104aab(0x16d)](a965_0x104aab(0x170),auth[a965_0x104aab(0x163)](),controller['getTeams']),router[a965_0x104aab(0x16d)](a965_0x104aab(0x16e),auth[a965_0x104aab(0x163)](),controller[a965_0x104aab(0x160)]),router[a965_0x104aab(0x167)]('/',auth[a965_0x104aab(0x163)](),controller[a965_0x104aab(0x16b)]),router['post'](a965_0x104aab(0x170),auth[a965_0x104aab(0x163)](),controller[a965_0x104aab(0x171)]),router[a965_0x104aab(0x167)](a965_0x104aab(0x16e),auth[a965_0x104aab(0x163)](),controller['addAgents']),router['put'](a965_0x104aab(0x161),auth[a965_0x104aab(0x163)](),controller[a965_0x104aab(0x15e)]),router[a965_0x104aab(0x168)](a965_0x104aab(0x161),auth[a965_0x104aab(0x163)](),controller[a965_0x104aab(0x169)]),router['delete'](a965_0x104aab(0x170),auth[a965_0x104aab(0x163)](),controller[a965_0x104aab(0x16c)]),router[a965_0x104aab(0x168)](a965_0x104aab(0x16e),auth[a965_0x104aab(0x163)](),controller['removeAgents']),module[a965_0x104aab(0x165)]=router; \ No newline at end of file +const a965_0x5884=['getTeams','update','addTeams','create','show','./whatsappQueue.controller','post','/:id/members','/:id','../../components/auth/service','exports','delete','describe','index','/:id/teams','express','Router','removeAgents','addAgents','put','getAgents','getMembers','get','/describe','/:id/users','isAuthenticated','removeTeams'];(function(_0x44c213,_0x4a34f6){const _0x5884e9=function(_0x2a94e3){while(--_0x2a94e3){_0x44c213['push'](_0x44c213['shift']());}};_0x5884e9(++_0x4a34f6);}(a965_0x5884,0xf3));const a965_0x2a94=function(_0x44c213,_0x4a34f6){_0x44c213=_0x44c213-0xb1;let _0x5884e9=a965_0x5884[_0x44c213];return _0x5884e9;};const a965_0x5153df=a965_0x2a94;'use strict';const express=require(a965_0x5153df(0xc0)),router=express[a965_0x5153df(0xc1)](),auth=require(a965_0x5153df(0xba)),controller=require(a965_0x5153df(0xb6));router[a965_0x5153df(0xc7)]('/',auth[a965_0x5153df(0xca)](),controller[a965_0x5153df(0xbe)]),router[a965_0x5153df(0xc7)](a965_0x5153df(0xc8),auth[a965_0x5153df(0xca)](),controller[a965_0x5153df(0xbd)]),router[a965_0x5153df(0xc7)]('/:id',auth[a965_0x5153df(0xca)](),controller[a965_0x5153df(0xb5)]),router[a965_0x5153df(0xc7)](a965_0x5153df(0xb8),auth[a965_0x5153df(0xca)](),controller[a965_0x5153df(0xc6)]),router[a965_0x5153df(0xc7)](a965_0x5153df(0xbf),auth[a965_0x5153df(0xca)](),controller[a965_0x5153df(0xb1)]),router[a965_0x5153df(0xc7)]('/:id/users',auth[a965_0x5153df(0xca)](),controller[a965_0x5153df(0xc5)]),router[a965_0x5153df(0xb7)]('/',auth[a965_0x5153df(0xca)](),controller[a965_0x5153df(0xb4)]),router[a965_0x5153df(0xb7)](a965_0x5153df(0xbf),auth['isAuthenticated'](),controller[a965_0x5153df(0xb3)]),router['post'](a965_0x5153df(0xc9),auth[a965_0x5153df(0xca)](),controller[a965_0x5153df(0xc3)]),router[a965_0x5153df(0xc4)](a965_0x5153df(0xb9),auth[a965_0x5153df(0xca)](),controller[a965_0x5153df(0xb2)]),router[a965_0x5153df(0xbc)](a965_0x5153df(0xb9),auth[a965_0x5153df(0xca)](),controller['destroy']),router[a965_0x5153df(0xbc)](a965_0x5153df(0xbf),auth[a965_0x5153df(0xca)](),controller[a965_0x5153df(0xcb)]),router[a965_0x5153df(0xbc)](a965_0x5153df(0xc9),auth[a965_0x5153df(0xca)](),controller[a965_0x5153df(0xc2)]),module[a965_0x5153df(0xbb)]=router; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.attributes.js b/server/api/whatsappQueue/whatsappQueue.attributes.js index b97ad2c..9454c6d 100644 --- a/server/api/whatsappQueue/whatsappQueue.attributes.js +++ b/server/api/whatsappQueue/whatsappQueue.attributes.js @@ -1 +1 @@ -const a966_0x43cf=['roundrobin','attributes','INTEGER','beepall','STRING','ENUM','rrmemory','name'];(function(_0x4e44a7,_0x45ce76){const _0x43cf8b=function(_0x4f79de){while(--_0x4f79de){_0x4e44a7['push'](_0x4e44a7['shift']());}};_0x43cf8b(++_0x45ce76);}(a966_0x43cf,0x107));const a966_0x4f79=function(_0x4e44a7,_0x45ce76){_0x4e44a7=_0x4e44a7-0x1ca;let _0x43cf8b=a966_0x43cf[_0x4e44a7];return _0x43cf8b;};const a966_0x40e166=a966_0x4f79;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes['STRING'],'unique':a966_0x40e166(0x1ca),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'timeout':{'type':DataTypes[a966_0x40e166(0x1cd)],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes[a966_0x40e166(0x1d0)](a966_0x40e166(0x1d1),a966_0x40e166(0x1ce),a966_0x40e166(0x1cb))},'description':{'type':DataTypes[a966_0x40e166(0x1cf)]}};module['exports'][a966_0x40e166(0x1cc)]=attributes; \ No newline at end of file +const a966_0x3b23=['rrmemory','ENUM','attributes','exports','sequelize','name','STRING','INTEGER'];(function(_0x2be5b3,_0x4cd887){const _0x3b2344=function(_0x1fea44){while(--_0x1fea44){_0x2be5b3['push'](_0x2be5b3['shift']());}};_0x3b2344(++_0x4cd887);}(a966_0x3b23,0xee));const a966_0x1fea=function(_0x2be5b3,_0x4cd887){_0x2be5b3=_0x2be5b3-0xfc;let _0x3b2344=a966_0x3b23[_0x2be5b3];return _0x3b2344;};const a966_0x537217=a966_0x1fea;'use strict';const {DataTypes}=require(a966_0x537217(0x102)),attributes={'name':{'type':DataTypes['STRING'],'unique':a966_0x537217(0x103),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'timeout':{'type':DataTypes[a966_0x537217(0xfd)],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes[a966_0x537217(0xff)](a966_0x537217(0xfe),'beepall','roundrobin')},'description':{'type':DataTypes[a966_0x537217(0xfc)]}};module[a966_0x537217(0x101)][a966_0x537217(0x100)]=attributes; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.controller.js b/server/api/whatsappQueue/whatsappQueue.controller.js index 8d9ecf1..3d5ac9b 100644 --- a/server/api/whatsappQueue/whatsappQueue.controller.js +++ b/server/api/whatsappQueue/whatsappQueue.controller.js @@ -1 +1 @@ -const a967_0x1c52=['catch','getMembers','updatedAt','./whatsappQueue.socket','error','WhatsappQueueId\x20=\x20?','tq.TeamId','then','util','send','includeAll','isEmpty','addTeams','User','name','../../config/logger','findAll','params','UserProfileResource','SIP','model','getAgents','fields','Content-Range','team_has_whatsapp_queues','rows','emit','status','intersection','../../components/parsers/qs','from','keys','where','sequelize','autoAssociation','userProfileId','all','toString','SELECT','body','voicePause','order','findOne','UserId','create','removeTeams','get','limit','show','sort','WhatsappQueue','clone','UserProfileSection','map','include','every','UserWhatsappQueue','WhatsappQueueId','ut.TeamId\x20=\x20tq.TeamId','value','push','userWhatsappQueue:save','query','attributes','nolimit','ids','type','rawAttributes','agent','getTeams','flatMap','removeAgents','offset','destroy','undefined','WhatsappQueues','interface','describe','filters','end','user_has_teams','isArray','VIRTUAL','userWhatsappQueue:remove','compact','like','transaction','stack','union','format','join','count','%s/%s','findOrCreate','filter','squel','update','Team','sendStatus','api','user','options','json','length','online','merge','Unable\x20to\x20retrieve\x20the\x20current\x20user','Agents','whatsappPause','../../rediscache','pick'];(function(_0x3ff91e,_0x44fa81){const _0x1c52b6=function(_0xc2b801){while(--_0xc2b801){_0x3ff91e['push'](_0x3ff91e['shift']());}};_0x1c52b6(++_0x44fa81);}(a967_0x1c52,0x1c1));const a967_0xc2b8=function(_0x3ff91e,_0x44fa81){_0x3ff91e=_0x3ff91e-0x96;let _0x1c52b6=a967_0x1c52[_0x3ff91e];return _0x1c52b6;};const a967_0xdecb2=a967_0xc2b8;'use strict';const util=require(a967_0xdecb2(0x99)),_=require('lodash'),squel=require(a967_0xdecb2(0xf0)),qs=require(a967_0xdecb2(0xae)),logger=require(a967_0xdecb2(0xa0))(a967_0xdecb2(0xf4)),{getSocket}=require(a967_0xdecb2(0xfe)),socket=getSocket(),{db}=require('../../mysqldb'),{Op,QueryTypes}=require('sequelize');require(a967_0xdecb2(0x103))['register'](socket);function respondWithStatusCode(_0x3c8979,_0x1b0fef){return _0x1b0fef=_0x1b0fef||0xcc,function(_0x3e220e){const _0x578875=a967_0xc2b8;if(_0x3e220e)return _0x3c8979[_0x578875(0xf3)](_0x1b0fef);return _0x3c8979['status'](_0x1b0fef)['end']();};}function respondWithResult(_0x58ca30,_0x1c67ba){return _0x1c67ba=_0x1c67ba||0xc8,function(_0x582551){const _0x53a12b=a967_0xc2b8;if(_0x582551)return _0x58ca30[_0x53a12b(0xac)](_0x1c67ba)[_0x53a12b(0xf7)](_0x582551);};}function respondWithFilteredResult(_0x4f548a,_0x372e14){return function(_0x55bdcf){const _0x26a32b=a967_0xc2b8;if(_0x55bdcf){const _0x3e20e4=_0x55bdcf[_0x26a32b(0xec)],_0x408bf1=_0x372e14[_0x26a32b(0xd9)];let _0x3d4f53=_0x372e14[_0x26a32b(0xd9)]+_0x372e14[_0x26a32b(0xc0)],_0x3eb96b;return _0x3d4f53>=_0x3e20e4?(_0x3d4f53=_0x3e20e4,_0x3eb96b=0xc8):_0x3eb96b=0xce,_0x4f548a[_0x26a32b(0xac)](_0x3eb96b),_0x4f548a['set'](_0x26a32b(0xa8),_0x408bf1+'-'+_0x3d4f53+'/'+_0x3e20e4)[_0x26a32b(0xf7)](_0x55bdcf);}return null;};}function saveUpdates(_0x492cb2){return function(_0x37a905){const _0x55007d=a967_0xc2b8;if(_0x37a905)return _0x37a905[_0x55007d(0xf1)](_0x492cb2)['then'](function(_0x3e2137){return _0x3e2137;});return null;};}function removeEntity(_0x518c00){return function(_0x2c1f88){const _0x3c0291=a967_0xc2b8;if(_0x2c1f88)return _0x2c1f88[_0x3c0291(0xda)]()[_0x3c0291(0x98)](function(){const _0x5c3cdb=_0x3c0291,_0x517d5d=_0x2c1f88[_0x5c3cdb(0xbf)]({'plain':!![]}),_0x2221ae=_0x5c3cdb(0xdc);return db[_0x5c3cdb(0xa3)][_0x5c3cdb(0xda)]({'where':{'type':_0x2221ae,'resourceId':_0x517d5d['id']}})[_0x5c3cdb(0x98)](function(){return _0x2c1f88;});})[_0x3c0291(0x98)](function(){const _0x42af89=_0x3c0291;_0x518c00[_0x42af89(0xac)](0xcc)[_0x42af89(0xe0)]();});};}function handleEntityNotFound(_0x1e3fd7){return function(_0x1ddd11){const _0x15a2de=a967_0xc2b8;return!_0x1ddd11&&_0x1e3fd7[_0x15a2de(0xf3)](0x194),_0x1ddd11;};}function handleError(_0x2f1b29,_0x125fe1){return _0x125fe1=_0x125fe1||0x1f4,function(_0x54e741){const _0x24406f=a967_0xc2b8;logger[_0x24406f(0x104)](_0x54e741[_0x24406f(0xe8)]),_0x54e741['name']&&delete _0x54e741[_0x24406f(0x9f)],_0x2f1b29[_0x24406f(0xac)](_0x125fe1)[_0x24406f(0x9a)](_0x54e741);};}exports['index']=function(_0x4f69ed,_0xdd679a){const _0x216f31=a967_0xdecb2;let _0x43a219={};const _0xb6f4f0={},_0x23771a={'count':0x0,'rows':[]},_0x1475b7=_[_0x216f31(0xc6)](db[_0x216f31(0xc3)]['rawAttributes'],function(_0x3591ae){const _0xebf7f0=_0x216f31;return{'name':_0x3591ae['fieldName'],'type':_0x3591ae[_0xebf7f0(0xd3)]['key']};});_0xb6f4f0[_0x216f31(0xa5)]=_[_0x216f31(0xc6)](_0x1475b7,_0x216f31(0x9f)),_0xb6f4f0[_0x216f31(0xcf)]=_[_0x216f31(0xb0)](_0x4f69ed[_0x216f31(0xcf)]),_0xb6f4f0[_0x216f31(0xdf)]=_[_0x216f31(0xad)](_0xb6f4f0[_0x216f31(0xa5)],_0xb6f4f0[_0x216f31(0xcf)]),_0x43a219['attributes']=_[_0x216f31(0xad)](_0xb6f4f0[_0x216f31(0xa5)],qs[_0x216f31(0xa7)](_0x4f69ed[_0x216f31(0xcf)][_0x216f31(0xa7)])),_0x43a219['attributes']=_0x43a219[_0x216f31(0xd0)][_0x216f31(0xf8)]?_0x43a219[_0x216f31(0xd0)]:_0xb6f4f0['model'];typeof _0x4f69ed['query'][_0x216f31(0xd1)]===_0x216f31(0xdb)&&(_0x43a219['limit']=qs['limit'](_0x4f69ed[_0x216f31(0xcf)][_0x216f31(0xc0)]),_0x43a219['offset']=qs[_0x216f31(0xd9)](_0x4f69ed['query'][_0x216f31(0xd9)]));_0x43a219[_0x216f31(0xba)]=qs['sort'](_0x4f69ed['query'][_0x216f31(0xc2)]),_0x43a219[_0x216f31(0xb1)]=qs[_0x216f31(0xdf)](_[_0x216f31(0xff)](_0x4f69ed[_0x216f31(0xcf)],_0xb6f4f0[_0x216f31(0xdf)]),_0x1475b7);_0x4f69ed['query']['filter']&&(_0x43a219[_0x216f31(0xb1)]=_[_0x216f31(0xfa)](_0x43a219['where'],{[Op['or']]:_[_0x216f31(0xc6)](_0x1475b7,function(_0x1042fe){const _0x585ecc=_0x216f31;if(_0x1042fe[_0x585ecc(0xd3)]!==_0x585ecc(0xe3)){const _0x4fdadd={};return _0x4fdadd[_0x1042fe[_0x585ecc(0x9f)]]={[Op[_0x585ecc(0xe6)]]:'%'+_0x4f69ed[_0x585ecc(0xcf)]['filter']+'%'},_0x4fdadd;}})}));_0x43a219=_[_0x216f31(0xfa)]({},_0x43a219,_0x4f69ed[_0x216f31(0xf6)]);const _0x1bf9ca={'where':_0x43a219['where']};return db[_0x216f31(0xc3)][_0x216f31(0xec)](_0x1bf9ca)[_0x216f31(0x98)](function(_0x453a36){const _0x387270=_0x216f31;return _0x23771a['count']=_0x453a36,_0x4f69ed['query'][_0x387270(0x9b)]&&(_0x43a219[_0x387270(0xc7)]=[{'all':!![]}]),db['WhatsappQueue'][_0x387270(0xa1)](_0x43a219);})[_0x216f31(0x98)](function(_0x19d44b){const _0x294456=_0x216f31;return _0x23771a[_0x294456(0xaa)]=_0x19d44b,_0x23771a;})[_0x216f31(0x98)](respondWithFilteredResult(_0xdd679a,_0x43a219))['catch'](handleError(_0xdd679a,null));},exports[a967_0xdecb2(0xc1)]=function(_0x3b509a,_0x4eda5b){const _0x32ff38=a967_0xdecb2;let _0x59c296={'raw':!![],'where':{'id':_0x3b509a[_0x32ff38(0xa2)]['id']}};const _0x44399b={};return _0x44399b[_0x32ff38(0xa5)]=_['keys'](db[_0x32ff38(0xc3)]['rawAttributes']),_0x44399b[_0x32ff38(0xcf)]=_[_0x32ff38(0xb0)](_0x3b509a[_0x32ff38(0xcf)]),_0x44399b[_0x32ff38(0xdf)]=_[_0x32ff38(0xad)](_0x44399b[_0x32ff38(0xa5)],_0x44399b[_0x32ff38(0xcf)]),_0x59c296[_0x32ff38(0xd0)]=_['intersection'](_0x44399b[_0x32ff38(0xa5)],qs[_0x32ff38(0xa7)](_0x3b509a[_0x32ff38(0xcf)][_0x32ff38(0xa7)])),_0x59c296[_0x32ff38(0xd0)]=_0x59c296[_0x32ff38(0xd0)][_0x32ff38(0xf8)]?_0x59c296[_0x32ff38(0xd0)]:_0x44399b[_0x32ff38(0xa5)],_0x3b509a[_0x32ff38(0xcf)]['includeAll']&&(_0x59c296[_0x32ff38(0xc7)]=[{'all':!![]}]),_0x59c296=_[_0x32ff38(0xfa)]({},_0x59c296,_0x3b509a[_0x32ff38(0xf6)]),db[_0x32ff38(0xc3)][_0x32ff38(0xbb)](_0x59c296)[_0x32ff38(0x98)](handleEntityNotFound(_0x4eda5b,null))[_0x32ff38(0x98)](respondWithResult(_0x4eda5b,null))['catch'](handleError(_0x4eda5b,null));},exports[a967_0xdecb2(0xbd)]=function(_0x492cfb,_0x44e5d1){const _0x26c04b=a967_0xdecb2;return db[_0x26c04b(0xc3)]['create'](_0x492cfb[_0x26c04b(0xb8)],{})['then'](function(_0x26da7d){const _0x32d277=_0x26c04b,_0x4eca74=_0x492cfb[_0x32d277(0xf5)][_0x32d277(0xbf)]({'plain':!![]});if(!_0x4eca74)throw new Error(_0x32d277(0xfb));if(_0x4eca74['role']==='user'){const _0x3f316a=_0x26da7d[_0x32d277(0xbf)]({'plain':!![]}),_0x4ca3d4=_0x32d277(0xdc);return db[_0x32d277(0xc5)][_0x32d277(0xbb)]({'where':{'name':_0x4ca3d4,'userProfileId':_0x4eca74[_0x32d277(0xb4)]},'raw':!![]})[_0x32d277(0x98)](function(_0x1bc934){const _0x50d14f=_0x32d277;return _0x1bc934&&_0x1bc934[_0x50d14f(0xb3)]===0x0?db[_0x50d14f(0xa3)][_0x50d14f(0xbd)]({'name':_0x3f316a[_0x50d14f(0x9f)],'resourceId':_0x3f316a['id'],'type':_0x1bc934[_0x50d14f(0x9f)],'sectionId':_0x1bc934['id']},{})[_0x50d14f(0x98)](function(){return _0x26da7d;}):_0x26da7d;})[_0x32d277(0x100)](function(_0x5069c7){const _0x34b3a8=_0x32d277;logger[_0x34b3a8(0x104)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x5069c7);throw _0x5069c7;});}return _0x26da7d;})['then'](respondWithResult(_0x44e5d1,0xc9))[_0x26c04b(0x100)](handleError(_0x44e5d1,null));},exports['update']=function(_0x358205,_0x5d68ae){const _0xa657f7=a967_0xdecb2;return _0x358205[_0xa657f7(0xb8)]['id']&&delete _0x358205['body']['id'],db[_0xa657f7(0xc3)][_0xa657f7(0xbb)]({'where':{'id':_0x358205[_0xa657f7(0xa2)]['id']}})['then'](handleEntityNotFound(_0x5d68ae,null))[_0xa657f7(0x98)](saveUpdates(_0x358205['body'],null))[_0xa657f7(0x98)](respondWithResult(_0x5d68ae,null))['catch'](handleError(_0x5d68ae,null));},exports[a967_0xdecb2(0xda)]=function(_0x14b21c,_0x39ba46){const _0x13c1c8=a967_0xdecb2;return db[_0x13c1c8(0xc3)][_0x13c1c8(0xbb)]({'where':{'id':_0x14b21c[_0x13c1c8(0xa2)]['id']}})[_0x13c1c8(0x98)](handleEntityNotFound(_0x39ba46,null))[_0x13c1c8(0x98)](removeEntity(_0x39ba46,null))[_0x13c1c8(0x100)](handleError(_0x39ba46,null));},exports[a967_0xdecb2(0xde)]=function(_0x434c82,_0x554bd9){const _0x494d2c=a967_0xdecb2;return db[_0x494d2c(0xc3)][_0x494d2c(0xde)]()[_0x494d2c(0x98)](respondWithResult(_0x554bd9,null))['catch'](handleError(_0x554bd9,null));},exports[a967_0xdecb2(0x101)]=function(_0xc6500a,_0x1b145c){const _0x59d3f0=a967_0xdecb2;let _0x37fb4c={'raw':!![],'where':{}};const _0x226d4f={};let _0x69e33;return db[_0x59d3f0(0xc3)]['findOne']({'where':{'id':_0xc6500a[_0x59d3f0(0xa2)]['id']}})['then'](handleEntityNotFound(_0x1b145c,null))['then'](function(_0x21e0df){const _0x537d31=_0x59d3f0;if(_0x21e0df)return _0x69e33=_0x21e0df[_0x537d31(0xbf)]({'plain':!![]}),_0x226d4f[_0x537d31(0xa5)]=_['keys'](db[_0x537d31(0xc9)][_0x537d31(0xd4)]),_0x226d4f[_0x537d31(0xcf)]=_[_0x537d31(0xb0)](_0xc6500a['query']),_0x226d4f['filters']=_['intersection'](_0x226d4f[_0x537d31(0xa5)],_0x226d4f[_0x537d31(0xcf)]),_0x37fb4c[_0x537d31(0xd0)]=_[_0x537d31(0xad)](_0x226d4f['model'],qs['fields'](_0xc6500a[_0x537d31(0xcf)]['fields'])),_0x37fb4c['attributes']=_0x37fb4c['attributes'][_0x537d31(0xf8)]?_0x37fb4c[_0x537d31(0xd0)]:_0x226d4f[_0x537d31(0xa5)],typeof _0xc6500a[_0x537d31(0xcf)][_0x537d31(0xd1)]==='undefined'&&(_0x37fb4c[_0x537d31(0xc0)]=qs['limit'](_0xc6500a[_0x537d31(0xcf)]['limit']),_0x37fb4c[_0x537d31(0xd9)]=qs[_0x537d31(0xd9)](_0xc6500a[_0x537d31(0xcf)]['offset'])),_0x37fb4c[_0x537d31(0xba)]=qs['sort'](_0xc6500a[_0x537d31(0xcf)][_0x537d31(0xc2)]),_0x37fb4c['where']=qs[_0x537d31(0xdf)](_[_0x537d31(0xff)](_0xc6500a[_0x537d31(0xcf)],_0x226d4f[_0x537d31(0xdf)])),_0x37fb4c[_0x537d31(0xb1)][_0x537d31(0xca)]=_0x21e0df['id'],_0xc6500a[_0x537d31(0xcf)][_0x537d31(0xef)]&&(_0x37fb4c[_0x537d31(0xb1)]=_[_0x537d31(0xfa)](_0x37fb4c[_0x537d31(0xb1)],{[Op['or']]:_[_0x537d31(0xc6)](_0x37fb4c[_0x537d31(0xd0)],function(_0x35dbd5){const _0x3dc1a7=_0x537d31,_0x4ab192={};return _0x4ab192[_0x35dbd5]={[Op['like']]:'%'+_0xc6500a[_0x3dc1a7(0xcf)][_0x3dc1a7(0xef)]+'%'},_0x4ab192;})})),_0x37fb4c=_['merge']({},_0x37fb4c,_0xc6500a['options']),db['UserWhatsappQueue']['findAll'](_0x37fb4c);})['then'](function(_0x27e5d6){const _0x54bef8=_0x59d3f0;if(_0x27e5d6)return db['User']['findAndCountAll']({'where':{'id':_[_0x54bef8(0xc6)](_0x27e5d6,_0x54bef8(0xbc)),'role':_0x54bef8(0xd5)},'attributes':['id',_0x54bef8(0x9f),_0x54bef8(0xfd),_0x54bef8(0x102),'createdAt']});})[_0x59d3f0(0x98)](function(_0x587558){const _0x305553=_0x59d3f0;return _0x587558?{'count':_0x587558['count'],'rows':_[_0x305553(0xc6)](_0x587558[_0x305553(0xaa)],function(_0x5719ff){const _0x4e76be=_0x305553;return{'membername':_0x5719ff[_0x4e76be(0x9f)],'UserId':_0x5719ff['id'],'queue_name':_0x69e33['name'],'WhatsappQueueId':_0x69e33['id'],'interface':util[_0x4e76be(0xea)](_0x4e76be(0xed),_0x4e76be(0xa4),_0x5719ff[_0x4e76be(0x9f)]),'penalty':0x0,'paused':_0x5719ff['whatsappPause'],'createdAt':_0x5719ff['createdAt'],'updatedAt':_0x5719ff[_0x4e76be(0x102)]};})}:{'count':0x0,'rows':[]};})[_0x59d3f0(0x98)](respondWithFilteredResult(_0x1b145c,_0x37fb4c))['catch'](handleError(_0x1b145c,null));},exports[a967_0xdecb2(0xd6)]=function(_0x5e2c3e,_0x343dc9){const _0x3cd76b=a967_0xdecb2;let _0x4d0d4f={};const _0x47de47={};let _0x2f62b4,_0x326ee2;return db[_0x3cd76b(0xc3)][_0x3cd76b(0xbb)]({'where':{'id':_0x5e2c3e['params']['id']}})['then'](handleEntityNotFound(_0x343dc9,null))[_0x3cd76b(0x98)](function(_0x37c543){const _0x4cdcf8=_0x3cd76b;if(_0x37c543)return _0x2f62b4=_0x37c543,_0x47de47['model']=_[_0x4cdcf8(0xb0)](db['Team'][_0x4cdcf8(0xd4)]),_0x47de47[_0x4cdcf8(0xcf)]=_[_0x4cdcf8(0xb0)](_0x5e2c3e[_0x4cdcf8(0xcf)]),_0x47de47[_0x4cdcf8(0xdf)]=_[_0x4cdcf8(0xad)](_0x47de47['model'],_0x47de47[_0x4cdcf8(0xcf)]),_0x4d0d4f[_0x4cdcf8(0xd0)]=_[_0x4cdcf8(0xad)](_0x47de47['model'],qs[_0x4cdcf8(0xa7)](_0x5e2c3e[_0x4cdcf8(0xcf)]['fields'])),_0x4d0d4f['attributes']=_0x4d0d4f['attributes'][_0x4cdcf8(0xf8)]?_0x4d0d4f[_0x4cdcf8(0xd0)]:_0x47de47[_0x4cdcf8(0xa5)],_0x4d0d4f[_0x4cdcf8(0xba)]=qs['sort'](_0x5e2c3e[_0x4cdcf8(0xcf)][_0x4cdcf8(0xc2)]),_0x4d0d4f[_0x4cdcf8(0xb1)]=qs['filters'](_[_0x4cdcf8(0xff)](_0x5e2c3e[_0x4cdcf8(0xcf)],_0x47de47[_0x4cdcf8(0xdf)])),_0x5e2c3e[_0x4cdcf8(0xcf)]['filter']&&(_0x4d0d4f['where']=_[_0x4cdcf8(0xfa)](_0x4d0d4f[_0x4cdcf8(0xb1)],{[Op['or']]:_[_0x4cdcf8(0xc6)](_0x4d0d4f[_0x4cdcf8(0xd0)],function(_0x29f541){const _0x9667ff=_0x4cdcf8,_0x45f49a={};return _0x45f49a[_0x29f541]={[Op[_0x9667ff(0xe6)]]:'%'+_0x5e2c3e[_0x9667ff(0xcf)][_0x9667ff(0xef)]+'%'},_0x45f49a;})})),_0x4d0d4f=_['merge']({},_0x4d0d4f,_0x5e2c3e[_0x4cdcf8(0xf6)]),_0x2f62b4[_0x4cdcf8(0xd6)](_0x4d0d4f);})['then'](function(_0x50fd25){const _0x5bf4f2=_0x3cd76b;if(_0x50fd25)return _0x326ee2=_0x50fd25['length'],typeof _0x5e2c3e['query'][_0x5bf4f2(0xd1)]==='undefined'&&(_0x4d0d4f['limit']=qs['limit'](_0x5e2c3e[_0x5bf4f2(0xcf)][_0x5bf4f2(0xc0)]),_0x4d0d4f[_0x5bf4f2(0xd9)]=qs['offset'](_0x5e2c3e[_0x5bf4f2(0xcf)]['offset'])),_0x2f62b4[_0x5bf4f2(0xd6)](_0x4d0d4f);})[_0x3cd76b(0x98)](function(_0x5c1f4e){if(_0x5c1f4e)return _0x5c1f4e?{'count':_0x326ee2,'rows':_0x5c1f4e}:null;})[_0x3cd76b(0x98)](respondWithResult(_0x343dc9,null))[_0x3cd76b(0x100)](handleError(_0x343dc9,null));},exports[a967_0xdecb2(0x9d)]=function(_0x1f6e41,_0x545232){const _0x1795f0=a967_0xdecb2,_0x5f39e9=_0x1f6e41[_0x1795f0(0xb8)]['ids'];return db[_0x1795f0(0xf2)][_0x1795f0(0xa1)]({'where':{'id':_0x5f39e9},'attributes':['id'],'include':[{'model':db[_0x1795f0(0x9e)],'as':'Agents','attributes':['id',_0x1795f0(0x9f),_0x1795f0(0xf9),_0x1795f0(0xb9),_0x1795f0(0xdd)],'raw':!![]}]})[_0x1795f0(0x98)](function(_0xc0002){const _0x1ec888=_0x1795f0;if(_0xc0002){const _0x34c66f=_[_0x1ec888(0xd7)](_0xc0002,function(_0x27928f){const _0x221a5a=_0x1ec888,_0x486da3=_0x27928f[_0x221a5a(0xbf)]({'plain':!![]});return _0x486da3[_0x221a5a(0xfc)];});return db[_0x1ec888(0xc3)][_0x1ec888(0xbb)]({'where':{'id':_0x1f6e41[_0x1ec888(0xa2)]['id']}})[_0x1ec888(0x98)](function(_0x143b20){const _0x2bd8e0=_0x1ec888;return db['sequelize'][_0x2bd8e0(0xe7)](function(_0x16c570){const _0xc051d7=_0x2bd8e0;return _0x143b20['addTeams'](_0x5f39e9,{'transaction':_0x16c570})[_0xc051d7(0x98)](function(){const _0x31ad5b=_0xc051d7;return Promise[_0x31ad5b(0xb5)](_0x34c66f[_0x31ad5b(0xc6)](_0x348f2f=>{const _0x1b07ae=_0x31ad5b;return db[_0x1b07ae(0xc9)][_0x1b07ae(0xee)]({'where':{'UserId':_0x348f2f['id'],'WhatsappQueueId':_0x1f6e41[_0x1b07ae(0xa2)]['id']},'transaction':_0x16c570});}));})['then'](function(){_0x34c66f['forEach'](function(_0x304f6f){const _0x49104d=a967_0xc2b8;socket['emit'](_0x49104d(0xce),{'UserId':_0x304f6f['id'],'WhatsappQueueId':_0x143b20['id']});});});});});}})[_0x1795f0(0x98)](respondWithStatusCode(_0x545232,null))[_0x1795f0(0x100)](handleError(_0x545232,null));},exports[a967_0xdecb2(0xbe)]=function(_0x3db7e0,_0x348753){const _0x231473=a967_0xdecb2;return db[_0x231473(0xf2)]['findAll']({'where':{'id':_0x3db7e0[_0x231473(0xcf)][_0x231473(0xd2)]},'attributes':['id'],'include':[{'model':db[_0x231473(0x9e)],'as':'Agents','attributes':['id'],'raw':!![]}]})['then'](handleEntityNotFound(_0x348753,null))[_0x231473(0x98)](function(_0x5d8c14){const _0x268b8c=_0x231473,_0x55d152=_[_0x268b8c(0xc6)](_0x5d8c14,'id');let _0x85bb44=[];const _0x3479b9=[],_0x4a90db=squel['select']();_0x4a90db['field'](_0x268b8c(0x97))[_0x268b8c(0xaf)](_0x268b8c(0xa9),'tq')[_0x268b8c(0xeb)](_0x268b8c(0xe1),'ut',_0x268b8c(0xcb))[_0x268b8c(0xb1)](_0x268b8c(0x96),_0x3db7e0[_0x268b8c(0xa2)]['id']);for(let _0x57d7c5=0x0;_0x57d7c5<_0x5d8c14['length'];_0x57d7c5+=0x1){const _0x44d77f=_0x5d8c14[_0x57d7c5];for(let _0x316486=0x0;_0x316486<_0x44d77f[_0x268b8c(0xfc)][_0x268b8c(0xf8)];_0x316486+=0x1){const _0x280463=_0x44d77f[_0x268b8c(0xfc)][_0x316486],_0x213e9b=_0x4a90db[_0x268b8c(0xc4)]();_0x213e9b[_0x268b8c(0xb1)]('ut.UserId\x20=\x20?',_0x280463['id']),_0x3479b9[_0x268b8c(0xcd)](db[_0x268b8c(0xb2)][_0x268b8c(0xcf)](_0x213e9b[_0x268b8c(0xb6)](),{'type':QueryTypes[_0x268b8c(0xb7)]})[_0x268b8c(0x98)](function(_0x2acc18){const _0x362108=_0x268b8c;if(_0x2acc18['length']===0x1)return _0x280463['id'];else{const _0x2a0491=_[_0x362108(0xc8)](_[_0x362108(0xc6)](_0x2acc18,'TeamId'),function(_0x555236){return _['includes'](_0x55d152,_0x555236);});if(_0x2a0491)return _0x280463['id'];}}));}}return Promise[_0x268b8c(0xb5)](_0x3479b9)[_0x268b8c(0x98)](function(_0x3730d5){const _0x298c56=_0x268b8c;return _0x85bb44=_(_0x85bb44)[_0x298c56(0xe9)](_0x3730d5)[_0x298c56(0xe5)]()[_0x298c56(0xcc)](),db[_0x298c56(0xc3)][_0x298c56(0xbb)]({'where':{'id':_0x3db7e0[_0x298c56(0xa2)]['id']}})[_0x298c56(0x98)](function(_0x36cf9a){const _0x5ce6e5=_0x298c56;return db[_0x5ce6e5(0xb2)][_0x5ce6e5(0xe7)](function(_0x3a8497){const _0x1b23f0=_0x5ce6e5;return _0x36cf9a[_0x1b23f0(0xbe)](_0x3db7e0[_0x1b23f0(0xcf)][_0x1b23f0(0xd2)],{'transaction':_0x3a8497})[_0x1b23f0(0x98)](function(){const _0x85d40c=_0x1b23f0;if(!_[_0x85d40c(0x9c)](_0x85bb44))return _0x36cf9a[_0x85d40c(0xd8)](_0x85bb44,{'transaction':_0x3a8497});})[_0x1b23f0(0x98)](function(){_0x85bb44['forEach'](function(_0x1ac7ae){const _0xa89a2e=a967_0xc2b8;socket[_0xa89a2e(0xab)](_0xa89a2e(0xe4),{'UserId':_0x1ac7ae,'WhatsappQueueId':_0x36cf9a['id']});});});});});});})[_0x231473(0x98)](respondWithStatusCode(_0x348753,null))[_0x231473(0x100)](handleError(_0x348753,null));},exports['addAgents']=function(_0xd26a4a,_0x44f66b){const _0x28e66f=a967_0xdecb2;return db[_0x28e66f(0xc3)][_0x28e66f(0xbb)]({'where':{'id':_0xd26a4a[_0x28e66f(0xa2)]['id']}})[_0x28e66f(0x98)](function(_0x49aaa8){const _0x30f2e9=_0x28e66f;if(_0x49aaa8)return _0x49aaa8['addAgents'](_0xd26a4a[_0x30f2e9(0xb8)]['ids'],{'through':_['omit'](_0xd26a4a[_0x30f2e9(0xb8)],[_0x30f2e9(0xd2),'id'])})['then'](function(_0x39a58a){const _0x533ae6=_0x30f2e9;for(let _0x46ef4c=0x0;_0x46ef4c<_0xd26a4a[_0x533ae6(0xb8)][_0x533ae6(0xd2)][_0x533ae6(0xf8)];_0x46ef4c+=0x1){socket[_0x533ae6(0xab)](_0x533ae6(0xce),{'UserId':_0xd26a4a[_0x533ae6(0xb8)]['ids'][_0x46ef4c],'WhatsappQueueId':_0xd26a4a['params']['id']});}return _0x39a58a;});})[_0x28e66f(0x98)](respondWithResult(_0x44f66b,null))[_0x28e66f(0x100)](handleError(_0x44f66b,null));},exports['removeAgents']=function(_0x573e61,_0x500d8c){const _0x10e3b6=a967_0xdecb2;return db['WhatsappQueue']['findOne']({'where':{'id':_0x573e61[_0x10e3b6(0xa2)]['id']}})[_0x10e3b6(0x98)](handleEntityNotFound(_0x500d8c,null))[_0x10e3b6(0x98)](function(_0x466c03){const _0xccdcb1=_0x10e3b6;if(_0x466c03)return _0x466c03['removeAgents'](_0x573e61[_0xccdcb1(0xcf)][_0xccdcb1(0xd2)])[_0xccdcb1(0x98)](function(){const _0x3f06d9=_0xccdcb1;if(_[_0x3f06d9(0xe2)](_0x573e61[_0x3f06d9(0xcf)][_0x3f06d9(0xd2)]))for(let _0x275e61=0x0;_0x275e61<_0x573e61[_0x3f06d9(0xcf)][_0x3f06d9(0xd2)]['length'];_0x275e61+=0x1){socket['emit']('userWhatsappQueue:remove',{'UserId':Number(_0x573e61[_0x3f06d9(0xcf)][_0x3f06d9(0xd2)][_0x275e61]),'WhatsappQueueId':Number(_0x573e61[_0x3f06d9(0xa2)]['id'])});}else socket['emit'](_0x3f06d9(0xe4),{'UserId':Number(_0x573e61[_0x3f06d9(0xcf)][_0x3f06d9(0xd2)]),'WhatsappQueueId':Number(_0x573e61['params']['id'])});});})[_0x10e3b6(0x98)](respondWithStatusCode(_0x500d8c,null))['catch'](handleError(_0x500d8c,null));},exports[a967_0xdecb2(0xa6)]=function(_0x59fdab,_0x2342cd){const _0x3f30e8=a967_0xdecb2;let _0x1221bf={};const _0x368369={};let _0x3165f5,_0x4ad044;return db[_0x3f30e8(0xc3)]['findOne']({'where':{'id':_0x59fdab[_0x3f30e8(0xa2)]['id']}})[_0x3f30e8(0x98)](handleEntityNotFound(_0x2342cd,null))['then'](function(_0x17560b){const _0x302998=_0x3f30e8;if(_0x17560b)return _0x3165f5=_0x17560b,_0x368369[_0x302998(0xa5)]=_[_0x302998(0xb0)](db[_0x302998(0x9e)]['rawAttributes']),_0x368369['query']=_[_0x302998(0xb0)](_0x59fdab[_0x302998(0xcf)]),_0x368369['filters']=_['intersection'](_0x368369[_0x302998(0xa5)],_0x368369[_0x302998(0xcf)]),_0x1221bf[_0x302998(0xd0)]=_['intersection'](_0x368369[_0x302998(0xa5)],qs[_0x302998(0xa7)](_0x59fdab[_0x302998(0xcf)]['fields'])),_0x1221bf['attributes']=_0x1221bf[_0x302998(0xd0)][_0x302998(0xf8)]?_0x1221bf['attributes']:_0x368369[_0x302998(0xa5)],_0x1221bf[_0x302998(0xba)]=qs[_0x302998(0xc2)](_0x59fdab[_0x302998(0xcf)]['sort']),_0x1221bf[_0x302998(0xb1)]=qs[_0x302998(0xdf)](_[_0x302998(0xff)](_0x59fdab[_0x302998(0xcf)],_0x368369[_0x302998(0xdf)])),_0x59fdab[_0x302998(0xcf)][_0x302998(0xef)]&&(_0x1221bf[_0x302998(0xb1)]=_[_0x302998(0xfa)](_0x1221bf[_0x302998(0xb1)],{[Op['or']]:_['map'](_0x1221bf[_0x302998(0xd0)],function(_0x4ebb93){const _0x37e630=_0x302998,_0x873b1={};return _0x873b1[_0x4ebb93]={[Op[_0x37e630(0xe6)]]:'%'+_0x59fdab['query'][_0x37e630(0xef)]+'%'},_0x873b1;})})),_0x1221bf=_['merge']({},_0x1221bf,_0x59fdab['options']),_0x3165f5[_0x302998(0xa6)](_0x1221bf);})['then'](function(_0x162632){const _0x4d484a=_0x3f30e8;if(_0x162632)return _0x4ad044=_0x162632[_0x4d484a(0xf8)],typeof _0x59fdab[_0x4d484a(0xcf)][_0x4d484a(0xd1)]===_0x4d484a(0xdb)&&(_0x1221bf[_0x4d484a(0xc0)]=qs[_0x4d484a(0xc0)](_0x59fdab[_0x4d484a(0xcf)][_0x4d484a(0xc0)]),_0x1221bf[_0x4d484a(0xd9)]=qs[_0x4d484a(0xd9)](_0x59fdab[_0x4d484a(0xcf)][_0x4d484a(0xd9)])),_0x3165f5[_0x4d484a(0xa6)](_0x1221bf);})[_0x3f30e8(0x98)](function(_0x241b7d){if(_0x241b7d)return _0x241b7d?{'count':_0x4ad044,'rows':_0x241b7d}:null;})['then'](respondWithResult(_0x2342cd,null))[_0x3f30e8(0x100)](handleError(_0x2342cd,null));}; \ No newline at end of file +const a967_0x3837=['undefined','userWhatsappQueue:remove','api','includeAll','status','squel','Content-Range','send','UserProfileResource','../../mysqldb','../../components/parsers/qs','push','merge','getTeams','every','../../config/logger','model','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Team','get','all','isEmpty','name','Agents','join','create','team_has_whatsapp_queues','limit','options','whatsappPause','order','lodash','UserProfileSection','UserWhatsappQueue','attributes','WhatsappQueueId','userProfileId','nolimit','value','like','count','Unable\x20to\x20retrieve\x20the\x20current\x20user','offset','body','fields','WhatsappQueueId\x20=\x20?','then','findOne','addTeams','compact','include','ut.TeamId\x20=\x20tq.TeamId','register','TeamId','intersection','./whatsappQueue.socket','../../rediscache','WhatsappQueue','agent','filter','rows','removeTeams','user_has_teams','util','role','findAll','UserId','end','updatedAt','from','rawAttributes','user','map','addAgents','userWhatsappQueue:save','catch','interface','type','emit','union','set','field','params','SIP','sequelize','describe','sort','VIRTUAL','length','transaction','createdAt','forEach','update','toString','destroy','ids','error','removeAgents','getAgents','key','where','fieldName','User','query','index','filters','pick','isArray','includes','WhatsappQueues','keys'];(function(_0xc998fb,_0x16b432){const _0x38378c=function(_0x365886){while(--_0x365886){_0xc998fb['push'](_0xc998fb['shift']());}};_0x38378c(++_0x16b432);}(a967_0x3837,0x118));const a967_0x3658=function(_0xc998fb,_0x16b432){_0xc998fb=_0xc998fb-0x1e2;let _0x38378c=a967_0x3837[_0xc998fb];return _0x38378c;};const a967_0x5714df=a967_0x3658;'use strict';const util=require(a967_0x5714df(0x1e7)),_=require(a967_0x5714df(0x236)),squel=require(a967_0x5714df(0x21c)),qs=require(a967_0x5714df(0x221)),logger=require(a967_0x5714df(0x226))(a967_0x5714df(0x219)),{getSocket}=require(a967_0x5714df(0x24f)),socket=getSocket(),{db}=require(a967_0x5714df(0x220)),{Op,QueryTypes}=require(a967_0x5714df(0x1fc));require(a967_0x5714df(0x24e))[a967_0x5714df(0x24b)](socket);function respondWithStatusCode(_0xe11e87,_0x489ec2){return _0x489ec2=_0x489ec2||0xcc,function(_0x201dfc){const _0x55c187=a967_0x3658;if(_0x201dfc)return _0xe11e87['sendStatus'](_0x489ec2);return _0xe11e87['status'](_0x489ec2)[_0x55c187(0x1eb)]();};}function respondWithResult(_0x3e758e,_0x526152){return _0x526152=_0x526152||0xc8,function(_0x283310){const _0x1e1ac2=a967_0x3658;if(_0x283310)return _0x3e758e[_0x1e1ac2(0x21b)](_0x526152)['json'](_0x283310);};}function respondWithFilteredResult(_0x7b243c,_0x57ca9c){return function(_0x3257bb){const _0x3fd511=a967_0x3658;if(_0x3257bb){const _0x549521=_0x3257bb[_0x3fd511(0x23f)],_0x428655=_0x57ca9c[_0x3fd511(0x241)];let _0x490dc1=_0x57ca9c['offset']+_0x57ca9c[_0x3fd511(0x232)],_0x354ce8;return _0x490dc1>=_0x549521?(_0x490dc1=_0x549521,_0x354ce8=0xc8):_0x354ce8=0xce,_0x7b243c[_0x3fd511(0x21b)](_0x354ce8),_0x7b243c[_0x3fd511(0x1f8)](_0x3fd511(0x21d),_0x428655+'-'+_0x490dc1+'/'+_0x549521)['json'](_0x3257bb);}return null;};}function saveUpdates(_0x2086f6){return function(_0x2d7a4e){const _0x3b9553=a967_0x3658;if(_0x2d7a4e)return _0x2d7a4e[_0x3b9553(0x204)](_0x2086f6)['then'](function(_0x18660a){return _0x18660a;});return null;};}function removeEntity(_0x58a2f2){return function(_0x17419f){const _0x373235=a967_0x3658;if(_0x17419f)return _0x17419f[_0x373235(0x206)]()[_0x373235(0x245)](function(){const _0x3d0dff=_0x373235,_0x1f8931=_0x17419f['get']({'plain':!![]}),_0x22d458=_0x3d0dff(0x215);return db[_0x3d0dff(0x21f)][_0x3d0dff(0x206)]({'where':{'type':_0x22d458,'resourceId':_0x1f8931['id']}})[_0x3d0dff(0x245)](function(){return _0x17419f;});})[_0x373235(0x245)](function(){const _0x489e02=_0x373235;_0x58a2f2[_0x489e02(0x21b)](0xcc)['end']();});};}function handleEntityNotFound(_0xeb4cff){return function(_0x26c74e){return!_0x26c74e&&_0xeb4cff['sendStatus'](0x194),_0x26c74e;};}function handleError(_0x53aa2f,_0xe9a3c6){return _0xe9a3c6=_0xe9a3c6||0x1f4,function(_0x23fc71){const _0x3851b7=a967_0x3658;logger[_0x3851b7(0x208)](_0x23fc71['stack']),_0x23fc71[_0x3851b7(0x22d)]&&delete _0x23fc71[_0x3851b7(0x22d)],_0x53aa2f[_0x3851b7(0x21b)](_0xe9a3c6)[_0x3851b7(0x21e)](_0x23fc71);};}exports[a967_0x5714df(0x210)]=function(_0x17388b,_0x4b845){const _0x466c2c=a967_0x5714df;let _0x1174b7={};const _0x48d212={},_0x495dfe={'count':0x0,'rows':[]},_0x5f050a=_[_0x466c2c(0x1f0)](db['WhatsappQueue'][_0x466c2c(0x1ee)],function(_0x3098b0){const _0x2f735a=_0x466c2c;return{'name':_0x3098b0[_0x2f735a(0x20d)],'type':_0x3098b0[_0x2f735a(0x1f5)][_0x2f735a(0x20b)]};});_0x48d212[_0x466c2c(0x227)]=_['map'](_0x5f050a,_0x466c2c(0x22d)),_0x48d212[_0x466c2c(0x20f)]=_[_0x466c2c(0x216)](_0x17388b[_0x466c2c(0x20f)]),_0x48d212[_0x466c2c(0x211)]=_[_0x466c2c(0x24d)](_0x48d212[_0x466c2c(0x227)],_0x48d212[_0x466c2c(0x20f)]),_0x1174b7[_0x466c2c(0x239)]=_[_0x466c2c(0x24d)](_0x48d212['model'],qs[_0x466c2c(0x243)](_0x17388b[_0x466c2c(0x20f)]['fields'])),_0x1174b7[_0x466c2c(0x239)]=_0x1174b7[_0x466c2c(0x239)][_0x466c2c(0x200)]?_0x1174b7['attributes']:_0x48d212[_0x466c2c(0x227)];typeof _0x17388b[_0x466c2c(0x20f)]['nolimit']==='undefined'&&(_0x1174b7[_0x466c2c(0x232)]=qs[_0x466c2c(0x232)](_0x17388b[_0x466c2c(0x20f)][_0x466c2c(0x232)]),_0x1174b7['offset']=qs['offset'](_0x17388b[_0x466c2c(0x20f)][_0x466c2c(0x241)]));_0x1174b7[_0x466c2c(0x235)]=qs[_0x466c2c(0x1fe)](_0x17388b['query'][_0x466c2c(0x1fe)]),_0x1174b7[_0x466c2c(0x20c)]=qs[_0x466c2c(0x211)](_[_0x466c2c(0x212)](_0x17388b[_0x466c2c(0x20f)],_0x48d212[_0x466c2c(0x211)]),_0x5f050a);_0x17388b['query']['filter']&&(_0x1174b7[_0x466c2c(0x20c)]=_[_0x466c2c(0x223)](_0x1174b7['where'],{[Op['or']]:_[_0x466c2c(0x1f0)](_0x5f050a,function(_0x34e6d8){const _0x22da70=_0x466c2c;if(_0x34e6d8['type']!==_0x22da70(0x1ff)){const _0x46e006={};return _0x46e006[_0x34e6d8[_0x22da70(0x22d)]]={[Op[_0x22da70(0x23e)]]:'%'+_0x17388b['query'][_0x22da70(0x1e3)]+'%'},_0x46e006;}})}));_0x1174b7=_['merge']({},_0x1174b7,_0x17388b['options']);const _0x18b53c={'where':_0x1174b7[_0x466c2c(0x20c)]};return db[_0x466c2c(0x250)][_0x466c2c(0x23f)](_0x18b53c)['then'](function(_0x44ff4c){const _0x23fa1c=_0x466c2c;return _0x495dfe[_0x23fa1c(0x23f)]=_0x44ff4c,_0x17388b[_0x23fa1c(0x20f)][_0x23fa1c(0x21a)]&&(_0x1174b7[_0x23fa1c(0x249)]=[{'all':!![]}]),db[_0x23fa1c(0x250)][_0x23fa1c(0x1e9)](_0x1174b7);})[_0x466c2c(0x245)](function(_0x1e60c4){const _0x1af388=_0x466c2c;return _0x495dfe[_0x1af388(0x1e4)]=_0x1e60c4,_0x495dfe;})[_0x466c2c(0x245)](respondWithFilteredResult(_0x4b845,_0x1174b7))[_0x466c2c(0x1f3)](handleError(_0x4b845,null));},exports['show']=function(_0x27eff9,_0x4434cd){const _0x473146=a967_0x5714df;let _0x3ce634={'raw':!![],'where':{'id':_0x27eff9[_0x473146(0x1fa)]['id']}};const _0x442572={};return _0x442572[_0x473146(0x227)]=_[_0x473146(0x216)](db[_0x473146(0x250)][_0x473146(0x1ee)]),_0x442572[_0x473146(0x20f)]=_[_0x473146(0x216)](_0x27eff9[_0x473146(0x20f)]),_0x442572[_0x473146(0x211)]=_[_0x473146(0x24d)](_0x442572['model'],_0x442572[_0x473146(0x20f)]),_0x3ce634[_0x473146(0x239)]=_['intersection'](_0x442572[_0x473146(0x227)],qs['fields'](_0x27eff9[_0x473146(0x20f)][_0x473146(0x243)])),_0x3ce634['attributes']=_0x3ce634[_0x473146(0x239)][_0x473146(0x200)]?_0x3ce634['attributes']:_0x442572['model'],_0x27eff9[_0x473146(0x20f)]['includeAll']&&(_0x3ce634[_0x473146(0x249)]=[{'all':!![]}]),_0x3ce634=_[_0x473146(0x223)]({},_0x3ce634,_0x27eff9[_0x473146(0x233)]),db[_0x473146(0x250)][_0x473146(0x246)](_0x3ce634)[_0x473146(0x245)](handleEntityNotFound(_0x4434cd,null))[_0x473146(0x245)](respondWithResult(_0x4434cd,null))[_0x473146(0x1f3)](handleError(_0x4434cd,null));},exports[a967_0x5714df(0x230)]=function(_0x333615,_0x23f9df){const _0x5a71ee=a967_0x5714df;return db[_0x5a71ee(0x250)]['create'](_0x333615[_0x5a71ee(0x242)],{})[_0x5a71ee(0x245)](function(_0x102f68){const _0x5ec74f=_0x5a71ee,_0x87ee67=_0x333615['user'][_0x5ec74f(0x22a)]({'plain':!![]});if(!_0x87ee67)throw new Error(_0x5ec74f(0x240));if(_0x87ee67[_0x5ec74f(0x1e8)]===_0x5ec74f(0x1ef)){const _0x36b4fb=_0x102f68['get']({'plain':!![]}),_0x918f9c=_0x5ec74f(0x215);return db[_0x5ec74f(0x237)][_0x5ec74f(0x246)]({'where':{'name':_0x918f9c,'userProfileId':_0x87ee67[_0x5ec74f(0x23b)]},'raw':!![]})[_0x5ec74f(0x245)](function(_0x37c976){const _0x19a1b2=_0x5ec74f;return _0x37c976&&_0x37c976['autoAssociation']===0x0?db['UserProfileResource'][_0x19a1b2(0x230)]({'name':_0x36b4fb[_0x19a1b2(0x22d)],'resourceId':_0x36b4fb['id'],'type':_0x37c976[_0x19a1b2(0x22d)],'sectionId':_0x37c976['id']},{})[_0x19a1b2(0x245)](function(){return _0x102f68;}):_0x102f68;})[_0x5ec74f(0x1f3)](function(_0x5f12f0){const _0x5fc2c2=_0x5ec74f;logger[_0x5fc2c2(0x208)](_0x5fc2c2(0x228),_0x5f12f0);throw _0x5f12f0;});}return _0x102f68;})[_0x5a71ee(0x245)](respondWithResult(_0x23f9df,0xc9))[_0x5a71ee(0x1f3)](handleError(_0x23f9df,null));},exports[a967_0x5714df(0x204)]=function(_0x4ad50f,_0x1d619a){const _0x1db4c6=a967_0x5714df;return _0x4ad50f[_0x1db4c6(0x242)]['id']&&delete _0x4ad50f['body']['id'],db[_0x1db4c6(0x250)][_0x1db4c6(0x246)]({'where':{'id':_0x4ad50f['params']['id']}})[_0x1db4c6(0x245)](handleEntityNotFound(_0x1d619a,null))[_0x1db4c6(0x245)](saveUpdates(_0x4ad50f[_0x1db4c6(0x242)],null))['then'](respondWithResult(_0x1d619a,null))[_0x1db4c6(0x1f3)](handleError(_0x1d619a,null));},exports[a967_0x5714df(0x206)]=function(_0x2aa12a,_0x3cd881){const _0x241cfb=a967_0x5714df;return db['WhatsappQueue'][_0x241cfb(0x246)]({'where':{'id':_0x2aa12a[_0x241cfb(0x1fa)]['id']}})[_0x241cfb(0x245)](handleEntityNotFound(_0x3cd881,null))['then'](removeEntity(_0x3cd881,null))[_0x241cfb(0x1f3)](handleError(_0x3cd881,null));},exports[a967_0x5714df(0x1fd)]=function(_0x1ed490,_0x151bc0){const _0x682838=a967_0x5714df;return db[_0x682838(0x250)][_0x682838(0x1fd)]()[_0x682838(0x245)](respondWithResult(_0x151bc0,null))['catch'](handleError(_0x151bc0,null));},exports['getMembers']=function(_0x476d1f,_0x418031){const _0x386fc2=a967_0x5714df;let _0x404136={'raw':!![],'where':{}};const _0x3fc45c={};let _0x512d95;return db[_0x386fc2(0x250)]['findOne']({'where':{'id':_0x476d1f[_0x386fc2(0x1fa)]['id']}})[_0x386fc2(0x245)](handleEntityNotFound(_0x418031,null))[_0x386fc2(0x245)](function(_0x527c3d){const _0x1e3ddc=_0x386fc2;if(_0x527c3d)return _0x512d95=_0x527c3d[_0x1e3ddc(0x22a)]({'plain':!![]}),_0x3fc45c[_0x1e3ddc(0x227)]=_[_0x1e3ddc(0x216)](db[_0x1e3ddc(0x238)][_0x1e3ddc(0x1ee)]),_0x3fc45c[_0x1e3ddc(0x20f)]=_[_0x1e3ddc(0x216)](_0x476d1f[_0x1e3ddc(0x20f)]),_0x3fc45c[_0x1e3ddc(0x211)]=_[_0x1e3ddc(0x24d)](_0x3fc45c[_0x1e3ddc(0x227)],_0x3fc45c[_0x1e3ddc(0x20f)]),_0x404136[_0x1e3ddc(0x239)]=_[_0x1e3ddc(0x24d)](_0x3fc45c[_0x1e3ddc(0x227)],qs[_0x1e3ddc(0x243)](_0x476d1f['query'][_0x1e3ddc(0x243)])),_0x404136[_0x1e3ddc(0x239)]=_0x404136[_0x1e3ddc(0x239)][_0x1e3ddc(0x200)]?_0x404136[_0x1e3ddc(0x239)]:_0x3fc45c[_0x1e3ddc(0x227)],typeof _0x476d1f[_0x1e3ddc(0x20f)]['nolimit']===_0x1e3ddc(0x217)&&(_0x404136['limit']=qs[_0x1e3ddc(0x232)](_0x476d1f[_0x1e3ddc(0x20f)][_0x1e3ddc(0x232)]),_0x404136[_0x1e3ddc(0x241)]=qs[_0x1e3ddc(0x241)](_0x476d1f[_0x1e3ddc(0x20f)][_0x1e3ddc(0x241)])),_0x404136[_0x1e3ddc(0x235)]=qs[_0x1e3ddc(0x1fe)](_0x476d1f[_0x1e3ddc(0x20f)]['sort']),_0x404136[_0x1e3ddc(0x20c)]=qs[_0x1e3ddc(0x211)](_['pick'](_0x476d1f[_0x1e3ddc(0x20f)],_0x3fc45c[_0x1e3ddc(0x211)])),_0x404136['where'][_0x1e3ddc(0x23a)]=_0x527c3d['id'],_0x476d1f[_0x1e3ddc(0x20f)][_0x1e3ddc(0x1e3)]&&(_0x404136['where']=_[_0x1e3ddc(0x223)](_0x404136[_0x1e3ddc(0x20c)],{[Op['or']]:_[_0x1e3ddc(0x1f0)](_0x404136['attributes'],function(_0x1d2686){const _0x5c6076={};return _0x5c6076[_0x1d2686]={[Op['like']]:'%'+_0x476d1f['query']['filter']+'%'},_0x5c6076;})})),_0x404136=_['merge']({},_0x404136,_0x476d1f[_0x1e3ddc(0x233)]),db[_0x1e3ddc(0x238)]['findAll'](_0x404136);})[_0x386fc2(0x245)](function(_0x2d0b6c){const _0x30c2c0=_0x386fc2;if(_0x2d0b6c)return db[_0x30c2c0(0x20e)]['findAndCountAll']({'where':{'id':_[_0x30c2c0(0x1f0)](_0x2d0b6c,_0x30c2c0(0x1ea)),'role':_0x30c2c0(0x1e2)},'attributes':['id',_0x30c2c0(0x22d),_0x30c2c0(0x234),'updatedAt',_0x30c2c0(0x202)]});})[_0x386fc2(0x245)](function(_0x502aae){const _0x41ac8b=_0x386fc2;return _0x502aae?{'count':_0x502aae['count'],'rows':_[_0x41ac8b(0x1f0)](_0x502aae[_0x41ac8b(0x1e4)],function(_0x133425){const _0x5f5809=_0x41ac8b;return{'membername':_0x133425['name'],'UserId':_0x133425['id'],'queue_name':_0x512d95[_0x5f5809(0x22d)],'WhatsappQueueId':_0x512d95['id'],'interface':util['format']('%s/%s',_0x5f5809(0x1fb),_0x133425[_0x5f5809(0x22d)]),'penalty':0x0,'paused':_0x133425[_0x5f5809(0x234)],'createdAt':_0x133425[_0x5f5809(0x202)],'updatedAt':_0x133425[_0x5f5809(0x1ec)]};})}:{'count':0x0,'rows':[]};})[_0x386fc2(0x245)](respondWithFilteredResult(_0x418031,_0x404136))[_0x386fc2(0x1f3)](handleError(_0x418031,null));},exports[a967_0x5714df(0x224)]=function(_0x275c48,_0x5dce98){const _0x5c1303=a967_0x5714df;let _0x603a45={};const _0x3065d1={};let _0xd1fd67,_0x669c43;return db['WhatsappQueue']['findOne']({'where':{'id':_0x275c48[_0x5c1303(0x1fa)]['id']}})[_0x5c1303(0x245)](handleEntityNotFound(_0x5dce98,null))['then'](function(_0x35b26b){const _0x49dca0=_0x5c1303;if(_0x35b26b)return _0xd1fd67=_0x35b26b,_0x3065d1[_0x49dca0(0x227)]=_[_0x49dca0(0x216)](db[_0x49dca0(0x229)][_0x49dca0(0x1ee)]),_0x3065d1[_0x49dca0(0x20f)]=_[_0x49dca0(0x216)](_0x275c48[_0x49dca0(0x20f)]),_0x3065d1[_0x49dca0(0x211)]=_[_0x49dca0(0x24d)](_0x3065d1[_0x49dca0(0x227)],_0x3065d1[_0x49dca0(0x20f)]),_0x603a45['attributes']=_[_0x49dca0(0x24d)](_0x3065d1['model'],qs['fields'](_0x275c48[_0x49dca0(0x20f)]['fields'])),_0x603a45[_0x49dca0(0x239)]=_0x603a45[_0x49dca0(0x239)]['length']?_0x603a45['attributes']:_0x3065d1[_0x49dca0(0x227)],_0x603a45[_0x49dca0(0x235)]=qs[_0x49dca0(0x1fe)](_0x275c48['query']['sort']),_0x603a45[_0x49dca0(0x20c)]=qs['filters'](_['pick'](_0x275c48[_0x49dca0(0x20f)],_0x3065d1[_0x49dca0(0x211)])),_0x275c48[_0x49dca0(0x20f)][_0x49dca0(0x1e3)]&&(_0x603a45[_0x49dca0(0x20c)]=_['merge'](_0x603a45[_0x49dca0(0x20c)],{[Op['or']]:_[_0x49dca0(0x1f0)](_0x603a45[_0x49dca0(0x239)],function(_0x244a00){const _0x42c56b=_0x49dca0,_0x33ede9={};return _0x33ede9[_0x244a00]={[Op[_0x42c56b(0x23e)]]:'%'+_0x275c48[_0x42c56b(0x20f)][_0x42c56b(0x1e3)]+'%'},_0x33ede9;})})),_0x603a45=_[_0x49dca0(0x223)]({},_0x603a45,_0x275c48[_0x49dca0(0x233)]),_0xd1fd67['getTeams'](_0x603a45);})[_0x5c1303(0x245)](function(_0xff657){const _0x5d1cad=_0x5c1303;if(_0xff657)return _0x669c43=_0xff657['length'],typeof _0x275c48[_0x5d1cad(0x20f)][_0x5d1cad(0x23c)]==='undefined'&&(_0x603a45['limit']=qs['limit'](_0x275c48[_0x5d1cad(0x20f)][_0x5d1cad(0x232)]),_0x603a45['offset']=qs[_0x5d1cad(0x241)](_0x275c48['query'][_0x5d1cad(0x241)])),_0xd1fd67[_0x5d1cad(0x224)](_0x603a45);})[_0x5c1303(0x245)](function(_0xc78be5){if(_0xc78be5)return _0xc78be5?{'count':_0x669c43,'rows':_0xc78be5}:null;})[_0x5c1303(0x245)](respondWithResult(_0x5dce98,null))[_0x5c1303(0x1f3)](handleError(_0x5dce98,null));},exports[a967_0x5714df(0x247)]=function(_0x54846b,_0x22ee21){const _0x5b9679=a967_0x5714df,_0x3ad5b3=_0x54846b[_0x5b9679(0x242)][_0x5b9679(0x207)];return db[_0x5b9679(0x229)]['findAll']({'where':{'id':_0x3ad5b3},'attributes':['id'],'include':[{'model':db['User'],'as':_0x5b9679(0x22e),'attributes':['id','name','online','voicePause',_0x5b9679(0x1f4)],'raw':!![]}]})[_0x5b9679(0x245)](function(_0x4a1170){const _0x21eb52=_0x5b9679;if(_0x4a1170){const _0x12c972=_['flatMap'](_0x4a1170,function(_0xf00e56){const _0x1a9b5e=a967_0x3658,_0x89a8f3=_0xf00e56[_0x1a9b5e(0x22a)]({'plain':!![]});return _0x89a8f3['Agents'];});return db[_0x21eb52(0x250)][_0x21eb52(0x246)]({'where':{'id':_0x54846b[_0x21eb52(0x1fa)]['id']}})[_0x21eb52(0x245)](function(_0x288860){const _0x198c8b=_0x21eb52;return db[_0x198c8b(0x1fc)][_0x198c8b(0x201)](function(_0x30a03b){const _0x58ee09=_0x198c8b;return _0x288860['addTeams'](_0x3ad5b3,{'transaction':_0x30a03b})[_0x58ee09(0x245)](function(){const _0x5e91fc=_0x58ee09;return Promise['all'](_0x12c972[_0x5e91fc(0x1f0)](_0x5bc0e3=>{const _0x2ae760=_0x5e91fc;return db[_0x2ae760(0x238)]['findOrCreate']({'where':{'UserId':_0x5bc0e3['id'],'WhatsappQueueId':_0x54846b[_0x2ae760(0x1fa)]['id']},'transaction':_0x30a03b});}));})[_0x58ee09(0x245)](function(){const _0x480ec2=_0x58ee09;_0x12c972[_0x480ec2(0x203)](function(_0x425dc0){const _0x305310=_0x480ec2;socket[_0x305310(0x1f6)](_0x305310(0x1f2),{'UserId':_0x425dc0['id'],'WhatsappQueueId':_0x288860['id']});});});});});}})['then'](respondWithStatusCode(_0x22ee21,null))[_0x5b9679(0x1f3)](handleError(_0x22ee21,null));},exports['removeTeams']=function(_0x26281c,_0x1b1db4){const _0x33c551=a967_0x5714df;return db[_0x33c551(0x229)][_0x33c551(0x1e9)]({'where':{'id':_0x26281c[_0x33c551(0x20f)][_0x33c551(0x207)]},'attributes':['id'],'include':[{'model':db[_0x33c551(0x20e)],'as':'Agents','attributes':['id'],'raw':!![]}]})[_0x33c551(0x245)](handleEntityNotFound(_0x1b1db4,null))[_0x33c551(0x245)](function(_0x264004){const _0x5a20cf=_0x33c551,_0x5b0af3=_['map'](_0x264004,'id');let _0x15eb8f=[];const _0xf6c958=[],_0x598655=squel['select']();_0x598655[_0x5a20cf(0x1f9)]('tq.TeamId')[_0x5a20cf(0x1ed)](_0x5a20cf(0x231),'tq')[_0x5a20cf(0x22f)](_0x5a20cf(0x1e6),'ut',_0x5a20cf(0x24a))[_0x5a20cf(0x20c)](_0x5a20cf(0x244),_0x26281c[_0x5a20cf(0x1fa)]['id']);for(let _0x4d8cec=0x0;_0x4d8cec<_0x264004[_0x5a20cf(0x200)];_0x4d8cec+=0x1){const _0x539056=_0x264004[_0x4d8cec];for(let _0x140286=0x0;_0x140286<_0x539056['Agents'][_0x5a20cf(0x200)];_0x140286+=0x1){const _0x203e97=_0x539056[_0x5a20cf(0x22e)][_0x140286],_0x3daa15=_0x598655['clone']();_0x3daa15[_0x5a20cf(0x20c)]('ut.UserId\x20=\x20?',_0x203e97['id']),_0xf6c958[_0x5a20cf(0x222)](db[_0x5a20cf(0x1fc)][_0x5a20cf(0x20f)](_0x3daa15[_0x5a20cf(0x205)](),{'type':QueryTypes['SELECT']})[_0x5a20cf(0x245)](function(_0xe982e8){const _0xd02ef2=_0x5a20cf;if(_0xe982e8['length']===0x1)return _0x203e97['id'];else{const _0x4b73cb=_[_0xd02ef2(0x225)](_[_0xd02ef2(0x1f0)](_0xe982e8,_0xd02ef2(0x24c)),function(_0x3226cb){const _0x4fc72f=_0xd02ef2;return _[_0x4fc72f(0x214)](_0x5b0af3,_0x3226cb);});if(_0x4b73cb)return _0x203e97['id'];}}));}}return Promise[_0x5a20cf(0x22b)](_0xf6c958)[_0x5a20cf(0x245)](function(_0x22f16f){const _0x2ddc9c=_0x5a20cf;return _0x15eb8f=_(_0x15eb8f)[_0x2ddc9c(0x1f7)](_0x22f16f)[_0x2ddc9c(0x248)]()[_0x2ddc9c(0x23d)](),db[_0x2ddc9c(0x250)]['findOne']({'where':{'id':_0x26281c[_0x2ddc9c(0x1fa)]['id']}})[_0x2ddc9c(0x245)](function(_0x2d5905){const _0x536bf8=_0x2ddc9c;return db[_0x536bf8(0x1fc)][_0x536bf8(0x201)](function(_0x24927b){const _0x4f1058=_0x536bf8;return _0x2d5905[_0x4f1058(0x1e5)](_0x26281c['query'][_0x4f1058(0x207)],{'transaction':_0x24927b})[_0x4f1058(0x245)](function(){const _0x2d1b09=_0x4f1058;if(!_[_0x2d1b09(0x22c)](_0x15eb8f))return _0x2d5905[_0x2d1b09(0x209)](_0x15eb8f,{'transaction':_0x24927b});})[_0x4f1058(0x245)](function(){const _0x5c5ab7=_0x4f1058;_0x15eb8f[_0x5c5ab7(0x203)](function(_0x3a1c04){socket['emit']('userWhatsappQueue:remove',{'UserId':_0x3a1c04,'WhatsappQueueId':_0x2d5905['id']});});});});});});})[_0x33c551(0x245)](respondWithStatusCode(_0x1b1db4,null))[_0x33c551(0x1f3)](handleError(_0x1b1db4,null));},exports[a967_0x5714df(0x1f1)]=function(_0x47c025,_0x521062){const _0x1280ea=a967_0x5714df;return db['WhatsappQueue']['findOne']({'where':{'id':_0x47c025[_0x1280ea(0x1fa)]['id']}})['then'](function(_0x18a3fb){const _0x26f791=_0x1280ea;if(_0x18a3fb)return _0x18a3fb[_0x26f791(0x1f1)](_0x47c025[_0x26f791(0x242)][_0x26f791(0x207)],{'through':_['omit'](_0x47c025[_0x26f791(0x242)],[_0x26f791(0x207),'id'])})['then'](function(_0x4d6c08){const _0x22b238=_0x26f791;for(let _0x51f2bf=0x0;_0x51f2bf<_0x47c025['body'][_0x22b238(0x207)][_0x22b238(0x200)];_0x51f2bf+=0x1){socket[_0x22b238(0x1f6)](_0x22b238(0x1f2),{'UserId':_0x47c025['body']['ids'][_0x51f2bf],'WhatsappQueueId':_0x47c025[_0x22b238(0x1fa)]['id']});}return _0x4d6c08;});})['then'](respondWithResult(_0x521062,null))[_0x1280ea(0x1f3)](handleError(_0x521062,null));},exports[a967_0x5714df(0x209)]=function(_0x2f9531,_0x2b8927){const _0x26ed9d=a967_0x5714df;return db['WhatsappQueue'][_0x26ed9d(0x246)]({'where':{'id':_0x2f9531['params']['id']}})[_0x26ed9d(0x245)](handleEntityNotFound(_0x2b8927,null))['then'](function(_0x208dd6){const _0x4876c0=_0x26ed9d;if(_0x208dd6)return _0x208dd6[_0x4876c0(0x209)](_0x2f9531[_0x4876c0(0x20f)][_0x4876c0(0x207)])[_0x4876c0(0x245)](function(){const _0x3983bb=_0x4876c0;if(_[_0x3983bb(0x213)](_0x2f9531[_0x3983bb(0x20f)][_0x3983bb(0x207)]))for(let _0xae07cb=0x0;_0xae07cb<_0x2f9531['query']['ids'][_0x3983bb(0x200)];_0xae07cb+=0x1){socket[_0x3983bb(0x1f6)](_0x3983bb(0x218),{'UserId':Number(_0x2f9531[_0x3983bb(0x20f)][_0x3983bb(0x207)][_0xae07cb]),'WhatsappQueueId':Number(_0x2f9531[_0x3983bb(0x1fa)]['id'])});}else socket[_0x3983bb(0x1f6)]('userWhatsappQueue:remove',{'UserId':Number(_0x2f9531[_0x3983bb(0x20f)][_0x3983bb(0x207)]),'WhatsappQueueId':Number(_0x2f9531[_0x3983bb(0x1fa)]['id'])});});})[_0x26ed9d(0x245)](respondWithStatusCode(_0x2b8927,null))[_0x26ed9d(0x1f3)](handleError(_0x2b8927,null));},exports[a967_0x5714df(0x20a)]=function(_0x1f68c3,_0x322571){const _0x2dfc79=a967_0x5714df;let _0x4fca1a={};const _0x4a87a2={};let _0x3b0159,_0x3d6121;return db[_0x2dfc79(0x250)][_0x2dfc79(0x246)]({'where':{'id':_0x1f68c3[_0x2dfc79(0x1fa)]['id']}})['then'](handleEntityNotFound(_0x322571,null))['then'](function(_0x461e71){const _0x204fc5=_0x2dfc79;if(_0x461e71)return _0x3b0159=_0x461e71,_0x4a87a2[_0x204fc5(0x227)]=_[_0x204fc5(0x216)](db[_0x204fc5(0x20e)][_0x204fc5(0x1ee)]),_0x4a87a2['query']=_[_0x204fc5(0x216)](_0x1f68c3[_0x204fc5(0x20f)]),_0x4a87a2[_0x204fc5(0x211)]=_[_0x204fc5(0x24d)](_0x4a87a2[_0x204fc5(0x227)],_0x4a87a2[_0x204fc5(0x20f)]),_0x4fca1a[_0x204fc5(0x239)]=_[_0x204fc5(0x24d)](_0x4a87a2['model'],qs[_0x204fc5(0x243)](_0x1f68c3[_0x204fc5(0x20f)][_0x204fc5(0x243)])),_0x4fca1a[_0x204fc5(0x239)]=_0x4fca1a[_0x204fc5(0x239)][_0x204fc5(0x200)]?_0x4fca1a[_0x204fc5(0x239)]:_0x4a87a2[_0x204fc5(0x227)],_0x4fca1a[_0x204fc5(0x235)]=qs[_0x204fc5(0x1fe)](_0x1f68c3['query'][_0x204fc5(0x1fe)]),_0x4fca1a[_0x204fc5(0x20c)]=qs[_0x204fc5(0x211)](_[_0x204fc5(0x212)](_0x1f68c3['query'],_0x4a87a2['filters'])),_0x1f68c3['query'][_0x204fc5(0x1e3)]&&(_0x4fca1a['where']=_['merge'](_0x4fca1a[_0x204fc5(0x20c)],{[Op['or']]:_['map'](_0x4fca1a['attributes'],function(_0x190824){const _0x4264fc=_0x204fc5,_0x25a566={};return _0x25a566[_0x190824]={[Op[_0x4264fc(0x23e)]]:'%'+_0x1f68c3[_0x4264fc(0x20f)][_0x4264fc(0x1e3)]+'%'},_0x25a566;})})),_0x4fca1a=_[_0x204fc5(0x223)]({},_0x4fca1a,_0x1f68c3[_0x204fc5(0x233)]),_0x3b0159['getAgents'](_0x4fca1a);})[_0x2dfc79(0x245)](function(_0x4b73f6){const _0x7b88ef=_0x2dfc79;if(_0x4b73f6)return _0x3d6121=_0x4b73f6[_0x7b88ef(0x200)],typeof _0x1f68c3[_0x7b88ef(0x20f)][_0x7b88ef(0x23c)]===_0x7b88ef(0x217)&&(_0x4fca1a[_0x7b88ef(0x232)]=qs[_0x7b88ef(0x232)](_0x1f68c3[_0x7b88ef(0x20f)][_0x7b88ef(0x232)]),_0x4fca1a[_0x7b88ef(0x241)]=qs[_0x7b88ef(0x241)](_0x1f68c3[_0x7b88ef(0x20f)][_0x7b88ef(0x241)])),_0x3b0159['getAgents'](_0x4fca1a);})[_0x2dfc79(0x245)](function(_0x4c3da4){if(_0x4c3da4)return _0x4c3da4?{'count':_0x3d6121,'rows':_0x4c3da4}:null;})['then'](respondWithResult(_0x322571,null))[_0x2dfc79(0x1f3)](handleError(_0x322571,null));}; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.events.js b/server/api/whatsappQueue/whatsappQueue.events.js index c94e7af..fd6fe04 100644 --- a/server/api/whatsappQueue/whatsappQueue.events.js +++ b/server/api/whatsappQueue/whatsappQueue.events.js @@ -1 +1 @@ -const a968_0x1d3a=['events','setMaxListeners','undefined','save','update','exports','emit','remove'];(function(_0x1f5dc7,_0x1e62fc){const _0x1d3a3e=function(_0x543cd2){while(--_0x543cd2){_0x1f5dc7['push'](_0x1f5dc7['shift']());}};_0x1d3a3e(++_0x1e62fc);}(a968_0x1d3a,0xd8));const a968_0x543c=function(_0x1f5dc7,_0x1e62fc){_0x1f5dc7=_0x1f5dc7-0x132;let _0x1d3a3e=a968_0x1d3a[_0x1f5dc7];return _0x1d3a3e;};const a968_0x2afc73=a968_0x543c;'use strict';const EventEmitter=require(a968_0x2afc73(0x132)),WhatsappQueue=require('../../mysqldb')['db']['WhatsappQueue'],WhatsappQueueEvents=new EventEmitter();WhatsappQueueEvents[a968_0x2afc73(0x133)](0x0);const events={'afterCreate':a968_0x2afc73(0x135),'afterUpdate':a968_0x2afc73(0x136),'afterDestroy':a968_0x2afc73(0x139)};function emitEvent(_0xf75692){return function(_0x27c436){const _0x5bbcba=a968_0x543c;WhatsappQueueEvents[_0x5bbcba(0x138)](_0xf75692+':'+_0x27c436['id'],_0x27c436),WhatsappQueueEvents[_0x5bbcba(0x138)](_0xf75692,_0x27c436);};}for(const e in events){if(typeof events[e]!==a968_0x2afc73(0x134)){const event=events[e];WhatsappQueue['addHook'](e,emitEvent(event));}}module[a968_0x2afc73(0x137)]=WhatsappQueueEvents; \ No newline at end of file +const a968_0x3fe0=['undefined','events','remove','emit','addHook','exports','../../mysqldb','setMaxListeners','WhatsappQueue'];(function(_0x42399f,_0x502e5d){const _0x3fe01d=function(_0x4fcf56){while(--_0x4fcf56){_0x42399f['push'](_0x42399f['shift']());}};_0x3fe01d(++_0x502e5d);}(a968_0x3fe0,0x8c));const a968_0x4fcf=function(_0x42399f,_0x502e5d){_0x42399f=_0x42399f-0x118;let _0x3fe01d=a968_0x3fe0[_0x42399f];return _0x3fe01d;};const a968_0x3e2bcf=a968_0x4fcf;'use strict';const EventEmitter=require(a968_0x3e2bcf(0x11d)),WhatsappQueue=require(a968_0x3e2bcf(0x119))['db'][a968_0x3e2bcf(0x11b)],WhatsappQueueEvents=new EventEmitter();WhatsappQueueEvents[a968_0x3e2bcf(0x11a)](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':a968_0x3e2bcf(0x11e)};function emitEvent(_0x577550){return function(_0xecf05c){const _0x42bfb6=a968_0x4fcf;WhatsappQueueEvents['emit'](_0x577550+':'+_0xecf05c['id'],_0xecf05c),WhatsappQueueEvents[_0x42bfb6(0x11f)](_0x577550,_0xecf05c);};}for(const e in events){if(typeof events[e]!==a968_0x3e2bcf(0x11c)){const event=events[e];WhatsappQueue[a968_0x3e2bcf(0x120)](e,emitEvent(event));}}module[a968_0x3e2bcf(0x118)]=WhatsappQueueEvents; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.model.js b/server/api/whatsappQueue/whatsappQueue.model.js index 6e7cbba..332a7c0 100644 --- a/server/api/whatsappQueue/whatsappQueue.model.js +++ b/server/api/whatsappQueue/whatsappQueue.model.js @@ -1 +1 @@ -const a969_0x2efd=['./whatsappQueue.options','WhatsappQueue','sequelize','function','exports','init'];(function(_0x43efc6,_0x37bfb5){const _0x2efd3a=function(_0x513ddd){while(--_0x513ddd){_0x43efc6['push'](_0x43efc6['shift']());}};_0x2efd3a(++_0x37bfb5);}(a969_0x2efd,0x157));const a969_0x513d=function(_0x43efc6,_0x37bfb5){_0x43efc6=_0x43efc6-0x1dd;let _0x2efd3a=a969_0x2efd[_0x43efc6];return _0x2efd3a;};const a969_0x161214=a969_0x513d;'use strict';const {Model}=require(a969_0x161214(0x1de)),{attributes}=require('./whatsappQueue.attributes'),{options}=require(a969_0x161214(0x1e2));class WhatsappQueue extends Model{}function init(_0x11f084,_0x13b1d4){const _0x3083f3=a969_0x161214,_0x54938f=options(_0x11f084),_0x10b143=typeof _0x13b1d4===_0x3083f3(0x1df)?_0x13b1d4(_0x54938f):_0x54938f;return WhatsappQueue[_0x3083f3(0x1e1)](attributes,_0x10b143),WhatsappQueue;}module[a969_0x161214(0x1e0)][a969_0x161214(0x1dd)]=WhatsappQueue,module[a969_0x161214(0x1e0)]['init']=init; \ No newline at end of file +const a969_0x591e=['exports','./whatsappQueue.options','function','init','WhatsappQueue','sequelize'];(function(_0x29633e,_0x4b915d){const _0x591e04=function(_0x588cb6){while(--_0x588cb6){_0x29633e['push'](_0x29633e['shift']());}};_0x591e04(++_0x4b915d);}(a969_0x591e,0x145));const a969_0x588c=function(_0x29633e,_0x4b915d){_0x29633e=_0x29633e-0x112;let _0x591e04=a969_0x591e[_0x29633e];return _0x591e04;};const a969_0x39f155=a969_0x588c;'use strict';const {Model}=require(a969_0x39f155(0x116)),{attributes}=require('./whatsappQueue.attributes'),{options}=require(a969_0x39f155(0x112));class WhatsappQueue extends Model{}function init(_0x8f856e,_0x1855a3){const _0x4a4b7a=a969_0x39f155,_0x3afd67=options(_0x8f856e),_0x4fb886=typeof _0x1855a3===_0x4a4b7a(0x113)?_0x1855a3(_0x3afd67):_0x3afd67;return WhatsappQueue[_0x4a4b7a(0x114)](attributes,_0x4fb886),WhatsappQueue;}module['exports'][a969_0x39f155(0x115)]=WhatsappQueue,module[a969_0x39f155(0x117)]['init']=init; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.options.js b/server/api/whatsappQueue/whatsappQueue.options.js index 701b6b9..652f99a 100644 --- a/server/api/whatsappQueue/whatsappQueue.options.js +++ b/server/api/whatsappQueue/whatsappQueue.options.js @@ -1 +1 @@ -var a970_0x95c4=['options','whatsapp_queues'];(function(_0x36477e,_0x4c15b0){var _0x95c45b=function(_0x245be4){while(--_0x245be4){_0x36477e['push'](_0x36477e['shift']());}};_0x95c45b(++_0x4c15b0);}(a970_0x95c4,0x168));var a970_0x245b=function(_0x36477e,_0x4c15b0){_0x36477e=_0x36477e-0x140;var _0x95c45b=a970_0x95c4[_0x36477e];return _0x95c45b;};var a970_0x173660=a970_0x245b;function options(_0x5ca63d){var _0x3de665=a970_0x245b;return{'sequelize':_0x5ca63d,'tableName':_0x3de665(0x141),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a970_0x173660(0x140)]=options; \ No newline at end of file +var a970_0x52a3=['whatsapp_queues','exports','options'];(function(_0x11a728,_0x3747c1){var _0x52a326=function(_0xd6cded){while(--_0xd6cded){_0x11a728['push'](_0x11a728['shift']());}};_0x52a326(++_0x3747c1);}(a970_0x52a3,0x115));var a970_0xd6cd=function(_0x11a728,_0x3747c1){_0x11a728=_0x11a728-0x147;var _0x52a326=a970_0x52a3[_0x11a728];return _0x52a326;};var a970_0x5a4944=a970_0xd6cd;function options(_0x213f0e){var _0x44b72c=a970_0xd6cd;return{'sequelize':_0x213f0e,'tableName':_0x44b72c(0x149),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a970_0x5a4944(0x147)][a970_0x5a4944(0x148)]=options; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.rpc.js b/server/api/whatsappQueue/whatsappQueue.rpc.js index 01280dc..5e44f4a 100644 --- a/server/api/whatsappQueue/whatsappQueue.rpc.js +++ b/server/api/whatsappQueue/whatsappQueue.rpc.js @@ -1 +1 @@ -const a971_0x1989=['error','map','./whatsappQueue.socket','model','rpc','../../config/logger','GetWhatsappQueue','where','limit','register','WhatsappQueue','include','then','options','../../rediscache','debug','stringify','ShowWhatsappQueue','findOne','message','raw','info','catch','attributes','../../mysqldb','lodash'];(function(_0x23de3f,_0x4976a9){const _0x1989da=function(_0x57e68c){while(--_0x57e68c){_0x23de3f['push'](_0x23de3f['shift']());}};_0x1989da(++_0x4976a9);}(a971_0x1989,0x104));const a971_0x57e6=function(_0x23de3f,_0x4976a9){_0x23de3f=_0x23de3f-0xbc;let _0x1989da=a971_0x1989[_0x23de3f];return _0x1989da;};const a971_0x41a2ef=a971_0x57e6;'use strict';const _=require(a971_0x41a2ef(0xd5)),db=require(a971_0x41a2ef(0xd4))['db'],logger=require(a971_0x41a2ef(0xc1))(a971_0x41a2ef(0xc0)),{getSocket}=require(a971_0x41a2ef(0xca)),socket=getSocket();require(a971_0x41a2ef(0xbe))[a971_0x41a2ef(0xc5)](socket),exports[a971_0x41a2ef(0xc2)]=function(_0x4e827c){const _0x1f78cf=this;return new Promise(function(_0x45d7c5,_0x4e1884){const _0x459511=a971_0x57e6;return db['WhatsappQueue']['findAll']({'raw':_0x4e827c[_0x459511(0xc9)]?_0x4e827c[_0x459511(0xc9)][_0x459511(0xd0)]===undefined?!![]:![]:!![],'where':_0x4e827c[_0x459511(0xc9)]?_0x4e827c[_0x459511(0xc9)][_0x459511(0xc3)]||null:null,'attributes':_0x4e827c[_0x459511(0xc9)]?_0x4e827c[_0x459511(0xc9)]['attributes']||null:null,'limit':_0x4e827c[_0x459511(0xc9)]?_0x4e827c['options'][_0x459511(0xc4)]||null:null,'include':_0x4e827c['options']?_0x4e827c[_0x459511(0xc9)]['include']?_[_0x459511(0xbd)](_0x4e827c['options'][_0x459511(0xc7)],function(_0x19f44f){const _0x49cd2b=_0x459511;return{'model':db[_0x19f44f['model']],'as':_0x19f44f['as'],'attributes':_0x19f44f['attributes'],'include':_0x19f44f['include']?_[_0x49cd2b(0xbd)](_0x19f44f[_0x49cd2b(0xc7)],function(_0x3182a9){const _0x140faf=_0x49cd2b;return{'model':db[_0x3182a9[_0x140faf(0xbf)]],'as':_0x3182a9['as'],'attributes':_0x3182a9[_0x140faf(0xd3)],'include':_0x3182a9[_0x140faf(0xc7)]?_[_0x140faf(0xbd)](_0x3182a9[_0x140faf(0xc7)],function(_0x7d0bed){const _0x541bf4=_0x140faf;return{'model':db[_0x7d0bed[_0x541bf4(0xbf)]],'as':_0x7d0bed['as'],'attributes':_0x7d0bed['attributes']};}):[]};}):[]};}):[]:[]})[_0x459511(0xc8)](function(_0x16a5f5){const _0x5a78e0=_0x459511;logger[_0x5a78e0(0xd1)](_0x5a78e0(0xc2),_0x4e827c),logger[_0x5a78e0(0xcb)](_0x5a78e0(0xc2),_0x4e827c,JSON[_0x5a78e0(0xcc)](_0x16a5f5)),_0x45d7c5(_0x16a5f5);})[_0x459511(0xd2)](function(_0x3d1b8a){const _0x4a4600=_0x459511;logger[_0x4a4600(0xbc)](_0x4a4600(0xc2),_0x3d1b8a[_0x4a4600(0xcf)],_0x4e827c),_0x4e1884(_0x1f78cf[_0x4a4600(0xbc)](0x1f4,_0x3d1b8a[_0x4a4600(0xcf)]));});});},exports[a971_0x41a2ef(0xcd)]=function(_0x191d3a){const _0x483160=this;return new Promise(function(_0x2036f5,_0x21eb69){const _0x3d3568=a971_0x57e6;return db[_0x3d3568(0xc6)][_0x3d3568(0xce)]({'raw':_0x191d3a[_0x3d3568(0xc9)]?_0x191d3a['options']['raw']===undefined?!![]:![]:!![],'where':_0x191d3a[_0x3d3568(0xc9)]?_0x191d3a[_0x3d3568(0xc9)][_0x3d3568(0xc3)]||null:null,'attributes':_0x191d3a['options']?_0x191d3a[_0x3d3568(0xc9)][_0x3d3568(0xd3)]||null:null,'include':_0x191d3a['options']?_0x191d3a[_0x3d3568(0xc9)][_0x3d3568(0xc7)]?_['map'](_0x191d3a[_0x3d3568(0xc9)][_0x3d3568(0xc7)],function(_0x392e03){const _0x3f5873=_0x3d3568;return{'model':db[_0x392e03['model']],'as':_0x392e03['as'],'attributes':_0x392e03[_0x3f5873(0xd3)],'include':_0x392e03[_0x3f5873(0xc7)]?_['map'](_0x392e03['include'],function(_0x2a86f4){const _0x2ceadc=_0x3f5873;return{'model':db[_0x2a86f4[_0x2ceadc(0xbf)]],'as':_0x2a86f4['as'],'attributes':_0x2a86f4[_0x2ceadc(0xd3)],'include':_0x2a86f4['include']?_[_0x2ceadc(0xbd)](_0x2a86f4[_0x2ceadc(0xc7)],function(_0x467c9d){const _0x2f53a3=_0x2ceadc;return{'model':db[_0x467c9d[_0x2f53a3(0xbf)]],'as':_0x467c9d['as'],'attributes':_0x467c9d['attributes']};}):[]};}):[]};}):[]:[]})[_0x3d3568(0xc8)](function(_0x373d7d){const _0x18122d=_0x3d3568;logger[_0x18122d(0xd1)]('ShowWhatsappQueue',_0x191d3a),logger[_0x18122d(0xcb)](_0x18122d(0xcd),_0x191d3a,JSON[_0x18122d(0xcc)](_0x373d7d)),_0x2036f5(_0x373d7d);})['catch'](function(_0x4d0583){const _0x5a235d=_0x3d3568;logger[_0x5a235d(0xbc)](_0x5a235d(0xcd),_0x4d0583[_0x5a235d(0xcf)],_0x191d3a),_0x21eb69(_0x483160['error'](0x1f4,_0x4d0583[_0x5a235d(0xcf)]));});});}; \ No newline at end of file +const a971_0x3222=['ShowWhatsappQueue','error','map','findOne','../../rediscache','WhatsappQueue','attributes','options','./whatsappQueue.socket','info','debug','stringify','catch','../../mysqldb','include','../../config/logger','then','limit','model','GetWhatsappQueue','register','message','lodash','raw'];(function(_0x2540e2,_0x309cb7){const _0x3222cd=function(_0x539ee5){while(--_0x539ee5){_0x2540e2['push'](_0x2540e2['shift']());}};_0x3222cd(++_0x309cb7);}(a971_0x3222,0xfb));const a971_0x539e=function(_0x2540e2,_0x309cb7){_0x2540e2=_0x2540e2-0x12c;let _0x3222cd=a971_0x3222[_0x2540e2];return _0x3222cd;};const a971_0x403f3e=a971_0x539e;'use strict';const _=require(a971_0x403f3e(0x137)),db=require(a971_0x403f3e(0x12e))['db'],logger=require(a971_0x403f3e(0x130))('rpc'),{getSocket}=require(a971_0x403f3e(0x13d)),socket=getSocket();require(a971_0x403f3e(0x141))[a971_0x403f3e(0x135)](socket),exports[a971_0x403f3e(0x134)]=function(_0x2da95e){const _0x537300=this;return new Promise(function(_0x337a7d,_0x4f0aac){const _0x4c4126=a971_0x539e;return db[_0x4c4126(0x13e)]['findAll']({'raw':_0x2da95e[_0x4c4126(0x140)]?_0x2da95e['options']['raw']===undefined?!![]:![]:!![],'where':_0x2da95e[_0x4c4126(0x140)]?_0x2da95e[_0x4c4126(0x140)]['where']||null:null,'attributes':_0x2da95e[_0x4c4126(0x140)]?_0x2da95e['options'][_0x4c4126(0x13f)]||null:null,'limit':_0x2da95e['options']?_0x2da95e[_0x4c4126(0x140)][_0x4c4126(0x132)]||null:null,'include':_0x2da95e[_0x4c4126(0x140)]?_0x2da95e[_0x4c4126(0x140)]['include']?_['map'](_0x2da95e[_0x4c4126(0x140)][_0x4c4126(0x12f)],function(_0xa0c579){const _0xd174b3=_0x4c4126;return{'model':db[_0xa0c579[_0xd174b3(0x133)]],'as':_0xa0c579['as'],'attributes':_0xa0c579[_0xd174b3(0x13f)],'include':_0xa0c579[_0xd174b3(0x12f)]?_[_0xd174b3(0x13b)](_0xa0c579[_0xd174b3(0x12f)],function(_0x16890d){const _0x2bed5c=_0xd174b3;return{'model':db[_0x16890d[_0x2bed5c(0x133)]],'as':_0x16890d['as'],'attributes':_0x16890d[_0x2bed5c(0x13f)],'include':_0x16890d[_0x2bed5c(0x12f)]?_[_0x2bed5c(0x13b)](_0x16890d[_0x2bed5c(0x12f)],function(_0x4f9aa){const _0x391a30=_0x2bed5c;return{'model':db[_0x4f9aa[_0x391a30(0x133)]],'as':_0x4f9aa['as'],'attributes':_0x4f9aa[_0x391a30(0x13f)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4dc238){const _0xb55c41=_0x4c4126;logger[_0xb55c41(0x142)](_0xb55c41(0x134),_0x2da95e),logger[_0xb55c41(0x143)](_0xb55c41(0x134),_0x2da95e,JSON['stringify'](_0x4dc238)),_0x337a7d(_0x4dc238);})[_0x4c4126(0x12d)](function(_0x4f5044){const _0x331af6=_0x4c4126;logger[_0x331af6(0x13a)]('GetWhatsappQueue',_0x4f5044['message'],_0x2da95e),_0x4f0aac(_0x537300[_0x331af6(0x13a)](0x1f4,_0x4f5044[_0x331af6(0x136)]));});});},exports['ShowWhatsappQueue']=function(_0x37ddd5){const _0x54ee21=this;return new Promise(function(_0x142990,_0x5dc0a8){const _0x40d8ac=a971_0x539e;return db[_0x40d8ac(0x13e)][_0x40d8ac(0x13c)]({'raw':_0x37ddd5[_0x40d8ac(0x140)]?_0x37ddd5['options'][_0x40d8ac(0x138)]===undefined?!![]:![]:!![],'where':_0x37ddd5['options']?_0x37ddd5[_0x40d8ac(0x140)]['where']||null:null,'attributes':_0x37ddd5[_0x40d8ac(0x140)]?_0x37ddd5[_0x40d8ac(0x140)][_0x40d8ac(0x13f)]||null:null,'include':_0x37ddd5['options']?_0x37ddd5['options']['include']?_[_0x40d8ac(0x13b)](_0x37ddd5[_0x40d8ac(0x140)]['include'],function(_0x1dd037){const _0x5dc42b=_0x40d8ac;return{'model':db[_0x1dd037[_0x5dc42b(0x133)]],'as':_0x1dd037['as'],'attributes':_0x1dd037[_0x5dc42b(0x13f)],'include':_0x1dd037['include']?_[_0x5dc42b(0x13b)](_0x1dd037[_0x5dc42b(0x12f)],function(_0x3a7450){const _0x1a6d78=_0x5dc42b;return{'model':db[_0x3a7450[_0x1a6d78(0x133)]],'as':_0x3a7450['as'],'attributes':_0x3a7450[_0x1a6d78(0x13f)],'include':_0x3a7450[_0x1a6d78(0x12f)]?_[_0x1a6d78(0x13b)](_0x3a7450[_0x1a6d78(0x12f)],function(_0x4aa2fc){const _0x1069bb=_0x1a6d78;return{'model':db[_0x4aa2fc['model']],'as':_0x4aa2fc['as'],'attributes':_0x4aa2fc[_0x1069bb(0x13f)]};}):[]};}):[]};}):[]:[]})[_0x40d8ac(0x131)](function(_0x458c2f){const _0x1d404c=_0x40d8ac;logger['info'](_0x1d404c(0x139),_0x37ddd5),logger[_0x1d404c(0x143)](_0x1d404c(0x139),_0x37ddd5,JSON[_0x1d404c(0x12c)](_0x458c2f)),_0x142990(_0x458c2f);})['catch'](function(_0x24cffd){const _0x3efebb=_0x40d8ac;logger[_0x3efebb(0x13a)](_0x3efebb(0x139),_0x24cffd[_0x3efebb(0x136)],_0x37ddd5),_0x5dc0a8(_0x54ee21['error'](0x1f4,_0x24cffd[_0x3efebb(0x136)]));});});}; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.socket.js b/server/api/whatsappQueue/whatsappQueue.socket.js index 75950cd..c7b1f99 100644 --- a/server/api/whatsappQueue/whatsappQueue.socket.js +++ b/server/api/whatsappQueue/whatsappQueue.socket.js @@ -1 +1 @@ -const a972_0x2d35=['whatsappQueue:','remove','./whatsappQueue.events','register','update','length'];(function(_0x4423a9,_0x34bbad){const _0x2d3557=function(_0x3ac274){while(--_0x3ac274){_0x4423a9['push'](_0x4423a9['shift']());}};_0x2d3557(++_0x34bbad);}(a972_0x2d35,0x100));const a972_0x3ac2=function(_0x4423a9,_0x34bbad){_0x4423a9=_0x4423a9-0xb0;let _0x2d3557=a972_0x2d35[_0x4423a9];return _0x2d3557;};const a972_0xda40ab=a972_0x3ac2;'use strict';const WhatsappQueueEvents=require(a972_0xda40ab(0xb4)),events=['save',a972_0xda40ab(0xb3),a972_0xda40ab(0xb0)];function createListener(_0x44866e,_0x1952b1){return function(_0x4d62fb){_0x1952b1['emit'](_0x44866e,_0x4d62fb);};}exports[a972_0xda40ab(0xb5)]=function(_0x55108e){const _0x4d80c8=a972_0xda40ab;for(let _0x450707=0x0,_0x43b8e8=events[_0x4d80c8(0xb1)];_0x450707<_0x43b8e8;_0x450707++){const _0x595ce9=events[_0x450707],_0x11b86e=createListener(_0x4d80c8(0xb2)+_0x595ce9,_0x55108e);WhatsappQueueEvents['on'](_0x595ce9,_0x11b86e);}}; \ No newline at end of file +const a972_0xd3fa=['save','length','emit','update','./whatsappQueue.events','remove','whatsappQueue:','register'];(function(_0x3d0374,_0x27c772){const _0xd3fadd=function(_0x209250){while(--_0x209250){_0x3d0374['push'](_0x3d0374['shift']());}};_0xd3fadd(++_0x27c772);}(a972_0xd3fa,0x1c4));const a972_0x2092=function(_0x3d0374,_0x27c772){_0x3d0374=_0x3d0374-0x18c;let _0xd3fadd=a972_0xd3fa[_0x3d0374];return _0xd3fadd;};const a972_0x2b84ed=a972_0x2092;'use strict';const WhatsappQueueEvents=require(a972_0x2b84ed(0x18c)),events=[a972_0x2b84ed(0x190),a972_0x2b84ed(0x18d),a972_0x2b84ed(0x193)];function createListener(_0x55d389,_0x3bdd5d){return function(_0x32f434){const _0x575c83=a972_0x2092;_0x3bdd5d[_0x575c83(0x192)](_0x55d389,_0x32f434);};}exports[a972_0x2b84ed(0x18f)]=function(_0x587d06){const _0x5c4fce=a972_0x2b84ed;for(let _0x87b434=0x0,_0x3338c8=events[_0x5c4fce(0x191)];_0x87b434<_0x3338c8;_0x87b434++){const _0x3670d9=events[_0x87b434],_0x30db9a=createListener(_0x5c4fce(0x18e)+_0x3670d9,_0x587d06);WhatsappQueueEvents['on'](_0x3670d9,_0x30db9a);}}; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/index.js b/server/api/whatsappQueueReport/index.js index a2f9261..7d3c332 100644 --- a/server/api/whatsappQueueReport/index.js +++ b/server/api/whatsappQueueReport/index.js @@ -1 +1 @@ -const a973_0x3cd1=['../../components/auth/service','describe','/describe','isAuthenticated','/:id','post','destroy','delete','create','exports','get','express','show','put','Router','./whatsappQueueReport.controller'];(function(_0x1d0cec,_0x4d813f){const _0x3cd172=function(_0x3f41e3){while(--_0x3f41e3){_0x1d0cec['push'](_0x1d0cec['shift']());}};_0x3cd172(++_0x4d813f);}(a973_0x3cd1,0x14b));const a973_0x3f41=function(_0x1d0cec,_0x4d813f){_0x1d0cec=_0x1d0cec-0x1ac;let _0x3cd172=a973_0x3cd1[_0x1d0cec];return _0x3cd172;};const a973_0x46bf64=a973_0x3f41;'use strict';const express=require(a973_0x46bf64(0x1ac)),router=express[a973_0x46bf64(0x1af)](),auth=require(a973_0x46bf64(0x1b1)),controller=require(a973_0x46bf64(0x1b0));router[a973_0x46bf64(0x1bb)]('/',auth[a973_0x46bf64(0x1b4)](),controller['index']),router[a973_0x46bf64(0x1bb)](a973_0x46bf64(0x1b3),auth[a973_0x46bf64(0x1b4)](),controller[a973_0x46bf64(0x1b2)]),router[a973_0x46bf64(0x1bb)](a973_0x46bf64(0x1b5),auth['isAuthenticated'](),controller[a973_0x46bf64(0x1ad)]),router[a973_0x46bf64(0x1b6)]('/',auth['isAuthenticated'](),controller[a973_0x46bf64(0x1b9)]),router[a973_0x46bf64(0x1ae)]('/:id',auth['isAuthenticated'](),controller['update']),router[a973_0x46bf64(0x1b8)](a973_0x46bf64(0x1b5),auth[a973_0x46bf64(0x1b4)](),controller[a973_0x46bf64(0x1b7)]),module[a973_0x46bf64(0x1ba)]=router; \ No newline at end of file +const a973_0x858c=['isAuthenticated','create','destroy','/describe','post','delete','/:id','exports','show','describe','Router','index'];(function(_0x31ecac,_0xdc0355){const _0x858c9a=function(_0x4fabc6){while(--_0x4fabc6){_0x31ecac['push'](_0x31ecac['shift']());}};_0x858c9a(++_0xdc0355);}(a973_0x858c,0x8c));const a973_0x4fab=function(_0x31ecac,_0xdc0355){_0x31ecac=_0x31ecac-0x108;let _0x858c9a=a973_0x858c[_0x31ecac];return _0x858c9a;};const a973_0x31a904=a973_0x4fab;'use strict';const express=require('express'),router=express[a973_0x31a904(0x10a)](),auth=require('../../components/auth/service'),controller=require('./whatsappQueueReport.controller');router['get']('/',auth['isAuthenticated'](),controller[a973_0x31a904(0x10b)]),router['get'](a973_0x31a904(0x10f),auth[a973_0x31a904(0x10c)](),controller[a973_0x31a904(0x109)]),router['get'](a973_0x31a904(0x112),auth[a973_0x31a904(0x10c)](),controller[a973_0x31a904(0x108)]),router[a973_0x31a904(0x110)]('/',auth[a973_0x31a904(0x10c)](),controller[a973_0x31a904(0x10d)]),router['put'](a973_0x31a904(0x112),auth['isAuthenticated'](),controller['update']),router[a973_0x31a904(0x111)]('/:id',auth['isAuthenticated'](),controller[a973_0x31a904(0x10e)]),module[a973_0x31a904(0x113)]=router; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js b/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js index 78328fd..6e1b9ab 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js @@ -1 +1 @@ -const a974_0x6d3d=['sequelize','attributes','DATE','STRING'];(function(_0x54fd98,_0xc2830c){const _0x6d3ddc=function(_0x4dbc9){while(--_0x4dbc9){_0x54fd98['push'](_0x54fd98['shift']());}};_0x6d3ddc(++_0xc2830c);}(a974_0x6d3d,0x7e));const a974_0x4dbc=function(_0x54fd98,_0xc2830c){_0x54fd98=_0x54fd98-0x145;let _0x6d3ddc=a974_0x6d3d[_0x54fd98];return _0x6d3ddc;};const a974_0x1d8053=a974_0x4dbc;'use strict';const {DataTypes}=require(a974_0x1d8053(0x147)),attributes={'uniqueid':{'type':DataTypes['STRING'],'allowNull':![]},'from':{'type':DataTypes[a974_0x1d8053(0x146)]},'joinAt':{'type':DataTypes[a974_0x1d8053(0x145)]},'leaveAt':{'type':DataTypes[a974_0x1d8053(0x145)]},'acceptAt':{'type':DataTypes[a974_0x1d8053(0x145)]},'exitAt':{'type':DataTypes[a974_0x1d8053(0x145)]},'reason':{'type':DataTypes[a974_0x1d8053(0x146)]}};module['exports'][a974_0x1d8053(0x148)]=attributes; \ No newline at end of file +const a974_0x258d=['STRING','sequelize','DATE','exports'];(function(_0x366664,_0x2169d0){const _0x258d4d=function(_0x1e1585){while(--_0x1e1585){_0x366664['push'](_0x366664['shift']());}};_0x258d4d(++_0x2169d0);}(a974_0x258d,0x172));const a974_0x1e15=function(_0x366664,_0x2169d0){_0x366664=_0x366664-0x177;let _0x258d4d=a974_0x258d[_0x366664];return _0x258d4d;};const a974_0x1d270b=a974_0x1e15;'use strict';const {DataTypes}=require(a974_0x1d270b(0x17a)),attributes={'uniqueid':{'type':DataTypes[a974_0x1d270b(0x179)],'allowNull':![]},'from':{'type':DataTypes[a974_0x1d270b(0x179)]},'joinAt':{'type':DataTypes[a974_0x1d270b(0x177)]},'leaveAt':{'type':DataTypes['DATE']},'acceptAt':{'type':DataTypes[a974_0x1d270b(0x177)]},'exitAt':{'type':DataTypes[a974_0x1d270b(0x177)]},'reason':{'type':DataTypes[a974_0x1d270b(0x179)]}};module[a974_0x1d270b(0x178)]['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 d31c97a..194518c 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.controller.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.controller.js @@ -1 +1 @@ -const a975_0x8a54=['../../mysqldb','intersection','describe','rawAttributes','params','index','includeAll','keys','map','filters','api','WhatsappQueueReport','nolimit','../../components/parsers/qs','filter','options','catch','include','error','attributes','sort','destroy','Content-Range','VIRTUAL','end','order','query','show','then','send','sendStatus','fieldName','type','sequelize','findOne','body','count','model','update','json','status','fields','like','where','create','set','limit','key','name','offset','pick'];(function(_0x152cd1,_0xdda8ef){const _0x8a5438=function(_0x5b8758){while(--_0x5b8758){_0x152cd1['push'](_0x152cd1['shift']());}};_0x8a5438(++_0xdda8ef);}(a975_0x8a54,0x1c6));const a975_0x5b87=function(_0x152cd1,_0xdda8ef){_0x152cd1=_0x152cd1-0x7a;let _0x8a5438=a975_0x8a54[_0x152cd1];return _0x8a5438;};const a975_0x337dba=a975_0x5b87;'use strict';const _=require('lodash'),qs=require(a975_0x337dba(0x8c)),logger=require('../../config/logger')(a975_0x337dba(0x89)),{db}=require(a975_0x337dba(0x7f)),{Op}=require(a975_0x337dba(0xa0));function respondWithResult(_0x325f95,_0x3a3c08){return _0x3a3c08=_0x3a3c08||0xc8,function(_0x38c5bb){if(_0x38c5bb)return _0x325f95['status'](_0x3a3c08)['json'](_0x38c5bb);};}function respondWithFilteredResult(_0x34fc98,_0x2feb6e){return function(_0x456f3b){const _0x399664=a975_0x5b87;if(_0x456f3b){const _0x42085d=_0x456f3b[_0x399664(0xa3)],_0x11a863=_0x2feb6e[_0x399664(0x7d)];let _0x1a4f28=_0x2feb6e[_0x399664(0x7d)]+_0x2feb6e[_0x399664(0x7a)],_0x4fbc28;return _0x1a4f28>=_0x42085d?(_0x1a4f28=_0x42085d,_0x4fbc28=0xc8):_0x4fbc28=0xce,_0x34fc98[_0x399664(0xa7)](_0x4fbc28),_0x34fc98[_0x399664(0xac)](_0x399664(0x95),_0x11a863+'-'+_0x1a4f28+'/'+_0x42085d)[_0x399664(0xa6)](_0x456f3b);}return null;};}function saveUpdates(_0x3d1bcf){return function(_0x5de48a){const _0x2f380c=a975_0x5b87;if(_0x5de48a)return _0x5de48a[_0x2f380c(0xa5)](_0x3d1bcf)[_0x2f380c(0x9b)](function(_0x26e3b9){return _0x26e3b9;});return null;};}function removeEntity(_0x580456){return function(_0x49ade4){const _0x3950af=a975_0x5b87;if(_0x49ade4)return _0x49ade4[_0x3950af(0x94)]()['then'](function(){const _0x59d0b8=_0x3950af;_0x580456[_0x59d0b8(0xa7)](0xcc)[_0x59d0b8(0x97)]();});};}function handleEntityNotFound(_0xb5b416){return function(_0xe22404){const _0x1786db=a975_0x5b87;return!_0xe22404&&_0xb5b416[_0x1786db(0x9d)](0x194),_0xe22404;};}function handleError(_0x3a0fcc,_0x5c9fb1){return _0x5c9fb1=_0x5c9fb1||0x1f4,function(_0x402f50){const _0x4b8016=a975_0x5b87;logger[_0x4b8016(0x91)](_0x402f50['stack']),_0x402f50[_0x4b8016(0x7c)]&&delete _0x402f50[_0x4b8016(0x7c)],_0x3a0fcc[_0x4b8016(0xa7)](_0x5c9fb1)[_0x4b8016(0x9c)](_0x402f50);};}exports[a975_0x337dba(0x84)]=function(_0x18ad50,_0x4e7174){const _0x58203f=a975_0x337dba;let _0x91f84={};const _0x46e0ca={},_0x242ad2={'count':0x0,'rows':[]},_0x33e781=_[_0x58203f(0x87)](db[_0x58203f(0x8a)][_0x58203f(0x82)],function(_0x4255ea){const _0x330fa0=_0x58203f;return{'name':_0x4255ea[_0x330fa0(0x9e)],'type':_0x4255ea[_0x330fa0(0x9f)][_0x330fa0(0x7b)]};});_0x46e0ca[_0x58203f(0xa4)]=_['map'](_0x33e781,_0x58203f(0x7c)),_0x46e0ca[_0x58203f(0x99)]=_[_0x58203f(0x86)](_0x18ad50[_0x58203f(0x99)]),_0x46e0ca[_0x58203f(0x88)]=_[_0x58203f(0x80)](_0x46e0ca[_0x58203f(0xa4)],_0x46e0ca[_0x58203f(0x99)]),_0x91f84[_0x58203f(0x92)]=_[_0x58203f(0x80)](_0x46e0ca[_0x58203f(0xa4)],qs[_0x58203f(0xa8)](_0x18ad50[_0x58203f(0x99)]['fields'])),_0x91f84[_0x58203f(0x92)]=_0x91f84[_0x58203f(0x92)]['length']?_0x91f84[_0x58203f(0x92)]:_0x46e0ca['model'];typeof _0x18ad50['query'][_0x58203f(0x8b)]==='undefined'&&(_0x91f84[_0x58203f(0x7a)]=qs[_0x58203f(0x7a)](_0x18ad50['query'][_0x58203f(0x7a)]),_0x91f84[_0x58203f(0x7d)]=qs[_0x58203f(0x7d)](_0x18ad50[_0x58203f(0x99)]['offset']));_0x91f84[_0x58203f(0x98)]=qs[_0x58203f(0x93)](_0x18ad50[_0x58203f(0x99)]['sort']),_0x91f84[_0x58203f(0xaa)]=qs[_0x58203f(0x88)](_[_0x58203f(0x7e)](_0x18ad50['query'],_0x46e0ca['filters']),_0x33e781);_0x18ad50[_0x58203f(0x99)][_0x58203f(0x8d)]&&(_0x91f84[_0x58203f(0xaa)]=_['merge'](_0x91f84[_0x58203f(0xaa)],{[Op['or']]:_[_0x58203f(0x87)](_0x33e781,function(_0x19cc75){const _0x3b54f7=_0x58203f;if(_0x19cc75[_0x3b54f7(0x9f)]!==_0x3b54f7(0x96)){const _0x364cc9={};return _0x364cc9[_0x19cc75[_0x3b54f7(0x7c)]]={[Op[_0x3b54f7(0xa9)]]:'%'+_0x18ad50[_0x3b54f7(0x99)][_0x3b54f7(0x8d)]+'%'},_0x364cc9;}})}));_0x91f84=_['merge']({},_0x91f84,_0x18ad50[_0x58203f(0x8e)]);const _0xf83f95={'where':_0x91f84[_0x58203f(0xaa)]};return db[_0x58203f(0x8a)][_0x58203f(0xa3)](_0xf83f95)[_0x58203f(0x9b)](function(_0x34ef20){const _0x508e38=_0x58203f;return _0x242ad2['count']=_0x34ef20,_0x18ad50[_0x508e38(0x99)]['includeAll']&&(_0x91f84[_0x508e38(0x90)]=[{'all':!![]}]),db[_0x508e38(0x8a)]['findAll'](_0x91f84);})['then'](function(_0x40a187){return _0x242ad2['rows']=_0x40a187,_0x242ad2;})[_0x58203f(0x9b)](respondWithFilteredResult(_0x4e7174,_0x91f84))[_0x58203f(0x8f)](handleError(_0x4e7174,null));},exports[a975_0x337dba(0x9a)]=function(_0x708d84,_0x5a32a6){const _0x3015b6=a975_0x337dba;let _0x15d778={'raw':!![],'where':{'id':_0x708d84['params']['id']}};const _0x3a4bd3={};return _0x3a4bd3[_0x3015b6(0xa4)]=_[_0x3015b6(0x86)](db[_0x3015b6(0x8a)][_0x3015b6(0x82)]),_0x3a4bd3['query']=_[_0x3015b6(0x86)](_0x708d84[_0x3015b6(0x99)]),_0x3a4bd3['filters']=_[_0x3015b6(0x80)](_0x3a4bd3['model'],_0x3a4bd3[_0x3015b6(0x99)]),_0x15d778[_0x3015b6(0x92)]=_['intersection'](_0x3a4bd3['model'],qs[_0x3015b6(0xa8)](_0x708d84[_0x3015b6(0x99)][_0x3015b6(0xa8)])),_0x15d778[_0x3015b6(0x92)]=_0x15d778[_0x3015b6(0x92)]['length']?_0x15d778[_0x3015b6(0x92)]:_0x3a4bd3[_0x3015b6(0xa4)],_0x708d84[_0x3015b6(0x99)][_0x3015b6(0x85)]&&(_0x15d778[_0x3015b6(0x90)]=[{'all':!![]}]),_0x15d778=_['merge']({},_0x15d778,_0x708d84['options']),db[_0x3015b6(0x8a)][_0x3015b6(0xa1)](_0x15d778)[_0x3015b6(0x9b)](handleEntityNotFound(_0x5a32a6,null))[_0x3015b6(0x9b)](respondWithResult(_0x5a32a6,null))[_0x3015b6(0x8f)](handleError(_0x5a32a6,null));},exports['create']=function(_0x5473e6,_0x5df187){const _0x3eff2a=a975_0x337dba;return db[_0x3eff2a(0x8a)][_0x3eff2a(0xab)](_0x5473e6[_0x3eff2a(0xa2)],{})['then'](respondWithResult(_0x5df187,0xc9))[_0x3eff2a(0x8f)](handleError(_0x5df187,null));},exports[a975_0x337dba(0xa5)]=function(_0x4d1765,_0x2b4731){const _0x286f19=a975_0x337dba;return _0x4d1765[_0x286f19(0xa2)]['id']&&delete _0x4d1765['body']['id'],db[_0x286f19(0x8a)][_0x286f19(0xa1)]({'where':{'id':_0x4d1765[_0x286f19(0x83)]['id']}})[_0x286f19(0x9b)](handleEntityNotFound(_0x2b4731,null))[_0x286f19(0x9b)](saveUpdates(_0x4d1765[_0x286f19(0xa2)],null))[_0x286f19(0x9b)](respondWithResult(_0x2b4731,null))[_0x286f19(0x8f)](handleError(_0x2b4731,null));},exports[a975_0x337dba(0x94)]=function(_0x514bb9,_0x32292b){const _0x270282=a975_0x337dba;return db[_0x270282(0x8a)][_0x270282(0xa1)]({'where':{'id':_0x514bb9['params']['id']}})[_0x270282(0x9b)](handleEntityNotFound(_0x32292b,null))['then'](removeEntity(_0x32292b,null))[_0x270282(0x8f)](handleError(_0x32292b,null));},exports[a975_0x337dba(0x81)]=function(_0x2ee4c5,_0x1a6abe){const _0x3c401f=a975_0x337dba;return db['WhatsappQueueReport']['describe']()[_0x3c401f(0x9b)](respondWithResult(_0x1a6abe,null))[_0x3c401f(0x8f)](handleError(_0x1a6abe,null));}; \ No newline at end of file +const a975_0x5edd=['includeAll','destroy','order','rawAttributes','merge','stack','intersection','lodash','../../components/parsers/qs','body','include','like','params','describe','keys','sort','options','then','sequelize','query','findAll','filters','set','filter','error','sendStatus','catch','create','fields','show','nolimit','index','update','model','undefined','../../config/logger','json','attributes','count','findOne','end','VIRTUAL','name','offset','limit','status','WhatsappQueueReport','pick','send','map','length','where','Content-Range','type'];(function(_0x51ecda,_0x26cc99){const _0x5edd1c=function(_0x2e8b1e){while(--_0x2e8b1e){_0x51ecda['push'](_0x51ecda['shift']());}};_0x5edd1c(++_0x26cc99);}(a975_0x5edd,0x1e4));const a975_0x2e8b=function(_0x51ecda,_0x26cc99){_0x51ecda=_0x51ecda-0xd1;let _0x5edd1c=a975_0x5edd[_0x51ecda];return _0x5edd1c;};const a975_0x34cf0c=a975_0x2e8b;'use strict';const _=require(a975_0x34cf0c(0xda)),qs=require(a975_0x34cf0c(0xdb)),logger=require(a975_0x34cf0c(0xf6))('api'),{db}=require('../../mysqldb'),{Op}=require(a975_0x34cf0c(0xe5));function respondWithResult(_0x285058,_0x4a69f8){return _0x4a69f8=_0x4a69f8||0xc8,function(_0xe8c660){const _0x5e9bae=a975_0x2e8b;if(_0xe8c660)return _0x285058[_0x5e9bae(0x100)](_0x4a69f8)[_0x5e9bae(0xf7)](_0xe8c660);};}function respondWithFilteredResult(_0x57dc4d,_0x40d721){return function(_0x406c69){const _0x3cc9b9=a975_0x2e8b;if(_0x406c69){const _0xe98884=_0x406c69['count'],_0x303dfd=_0x40d721['offset'];let _0x10f01e=_0x40d721[_0x3cc9b9(0xfe)]+_0x40d721[_0x3cc9b9(0xff)],_0x2adb44;return _0x10f01e>=_0xe98884?(_0x10f01e=_0xe98884,_0x2adb44=0xc8):_0x2adb44=0xce,_0x57dc4d[_0x3cc9b9(0x100)](_0x2adb44),_0x57dc4d[_0x3cc9b9(0xe9)](_0x3cc9b9(0xd1),_0x303dfd+'-'+_0x10f01e+'/'+_0xe98884)[_0x3cc9b9(0xf7)](_0x406c69);}return null;};}function saveUpdates(_0x4862f3){return function(_0x50fd19){const _0x54ad95=a975_0x2e8b;if(_0x50fd19)return _0x50fd19[_0x54ad95(0xf3)](_0x4862f3)['then'](function(_0x5051ae){return _0x5051ae;});return null;};}function removeEntity(_0x5933b0){return function(_0xaadd8a){const _0x268cd3=a975_0x2e8b;if(_0xaadd8a)return _0xaadd8a[_0x268cd3(0xd4)]()[_0x268cd3(0xe4)](function(){const _0x263c58=_0x268cd3;_0x5933b0['status'](0xcc)[_0x263c58(0xfb)]();});};}function handleEntityNotFound(_0x127c61){return function(_0x300723){const _0x2b4e59=a975_0x2e8b;return!_0x300723&&_0x127c61[_0x2b4e59(0xec)](0x194),_0x300723;};}function handleError(_0x31118a,_0x53dd25){return _0x53dd25=_0x53dd25||0x1f4,function(_0x56052b){const _0x4e7d6b=a975_0x2e8b;logger[_0x4e7d6b(0xeb)](_0x56052b[_0x4e7d6b(0xd8)]),_0x56052b[_0x4e7d6b(0xfd)]&&delete _0x56052b[_0x4e7d6b(0xfd)],_0x31118a['status'](_0x53dd25)[_0x4e7d6b(0x103)](_0x56052b);};}exports[a975_0x34cf0c(0xf2)]=function(_0x336fd2,_0x95d354){const _0x2240d4=a975_0x34cf0c;let _0x5dbcb3={};const _0x23dfe0={},_0x2f09a3={'count':0x0,'rows':[]},_0x6825a8=_['map'](db[_0x2240d4(0x101)][_0x2240d4(0xd6)],function(_0x1d8d00){const _0x57b911=_0x2240d4;return{'name':_0x1d8d00['fieldName'],'type':_0x1d8d00[_0x57b911(0xd2)]['key']};});_0x23dfe0[_0x2240d4(0xf4)]=_[_0x2240d4(0x104)](_0x6825a8,_0x2240d4(0xfd)),_0x23dfe0[_0x2240d4(0xe6)]=_[_0x2240d4(0xe1)](_0x336fd2[_0x2240d4(0xe6)]),_0x23dfe0[_0x2240d4(0xe8)]=_[_0x2240d4(0xd9)](_0x23dfe0[_0x2240d4(0xf4)],_0x23dfe0[_0x2240d4(0xe6)]),_0x5dbcb3[_0x2240d4(0xf8)]=_[_0x2240d4(0xd9)](_0x23dfe0['model'],qs[_0x2240d4(0xef)](_0x336fd2[_0x2240d4(0xe6)]['fields'])),_0x5dbcb3[_0x2240d4(0xf8)]=_0x5dbcb3['attributes'][_0x2240d4(0x105)]?_0x5dbcb3[_0x2240d4(0xf8)]:_0x23dfe0[_0x2240d4(0xf4)];typeof _0x336fd2[_0x2240d4(0xe6)][_0x2240d4(0xf1)]===_0x2240d4(0xf5)&&(_0x5dbcb3[_0x2240d4(0xff)]=qs[_0x2240d4(0xff)](_0x336fd2['query']['limit']),_0x5dbcb3[_0x2240d4(0xfe)]=qs[_0x2240d4(0xfe)](_0x336fd2[_0x2240d4(0xe6)][_0x2240d4(0xfe)]));_0x5dbcb3[_0x2240d4(0xd5)]=qs[_0x2240d4(0xe2)](_0x336fd2[_0x2240d4(0xe6)][_0x2240d4(0xe2)]),_0x5dbcb3[_0x2240d4(0x106)]=qs[_0x2240d4(0xe8)](_[_0x2240d4(0x102)](_0x336fd2[_0x2240d4(0xe6)],_0x23dfe0[_0x2240d4(0xe8)]),_0x6825a8);_0x336fd2[_0x2240d4(0xe6)][_0x2240d4(0xea)]&&(_0x5dbcb3[_0x2240d4(0x106)]=_[_0x2240d4(0xd7)](_0x5dbcb3['where'],{[Op['or']]:_['map'](_0x6825a8,function(_0x272f0){const _0x335a0e=_0x2240d4;if(_0x272f0[_0x335a0e(0xd2)]!==_0x335a0e(0xfc)){const _0x18afbe={};return _0x18afbe[_0x272f0['name']]={[Op[_0x335a0e(0xde)]]:'%'+_0x336fd2[_0x335a0e(0xe6)][_0x335a0e(0xea)]+'%'},_0x18afbe;}})}));_0x5dbcb3=_['merge']({},_0x5dbcb3,_0x336fd2[_0x2240d4(0xe3)]);const _0x521ba3={'where':_0x5dbcb3[_0x2240d4(0x106)]};return db['WhatsappQueueReport'][_0x2240d4(0xf9)](_0x521ba3)[_0x2240d4(0xe4)](function(_0x38fd63){const _0x6d4097=_0x2240d4;return _0x2f09a3['count']=_0x38fd63,_0x336fd2['query'][_0x6d4097(0xd3)]&&(_0x5dbcb3[_0x6d4097(0xdd)]=[{'all':!![]}]),db[_0x6d4097(0x101)][_0x6d4097(0xe7)](_0x5dbcb3);})['then'](function(_0x2c0b68){return _0x2f09a3['rows']=_0x2c0b68,_0x2f09a3;})['then'](respondWithFilteredResult(_0x95d354,_0x5dbcb3))[_0x2240d4(0xed)](handleError(_0x95d354,null));},exports[a975_0x34cf0c(0xf0)]=function(_0xe0af4b,_0x2b02e0){const _0x387bcd=a975_0x34cf0c;let _0x1dacf4={'raw':!![],'where':{'id':_0xe0af4b[_0x387bcd(0xdf)]['id']}};const _0x39a325={};return _0x39a325[_0x387bcd(0xf4)]=_[_0x387bcd(0xe1)](db['WhatsappQueueReport'][_0x387bcd(0xd6)]),_0x39a325[_0x387bcd(0xe6)]=_[_0x387bcd(0xe1)](_0xe0af4b[_0x387bcd(0xe6)]),_0x39a325[_0x387bcd(0xe8)]=_[_0x387bcd(0xd9)](_0x39a325[_0x387bcd(0xf4)],_0x39a325[_0x387bcd(0xe6)]),_0x1dacf4[_0x387bcd(0xf8)]=_[_0x387bcd(0xd9)](_0x39a325[_0x387bcd(0xf4)],qs['fields'](_0xe0af4b['query']['fields'])),_0x1dacf4[_0x387bcd(0xf8)]=_0x1dacf4[_0x387bcd(0xf8)]['length']?_0x1dacf4['attributes']:_0x39a325[_0x387bcd(0xf4)],_0xe0af4b[_0x387bcd(0xe6)][_0x387bcd(0xd3)]&&(_0x1dacf4[_0x387bcd(0xdd)]=[{'all':!![]}]),_0x1dacf4=_[_0x387bcd(0xd7)]({},_0x1dacf4,_0xe0af4b[_0x387bcd(0xe3)]),db[_0x387bcd(0x101)][_0x387bcd(0xfa)](_0x1dacf4)[_0x387bcd(0xe4)](handleEntityNotFound(_0x2b02e0,null))['then'](respondWithResult(_0x2b02e0,null))[_0x387bcd(0xed)](handleError(_0x2b02e0,null));},exports[a975_0x34cf0c(0xee)]=function(_0x1e18dc,_0xca68a6){const _0x15b6ce=a975_0x34cf0c;return db[_0x15b6ce(0x101)][_0x15b6ce(0xee)](_0x1e18dc[_0x15b6ce(0xdc)],{})[_0x15b6ce(0xe4)](respondWithResult(_0xca68a6,0xc9))[_0x15b6ce(0xed)](handleError(_0xca68a6,null));},exports[a975_0x34cf0c(0xf3)]=function(_0x5baa30,_0x303948){const _0x35049b=a975_0x34cf0c;return _0x5baa30['body']['id']&&delete _0x5baa30[_0x35049b(0xdc)]['id'],db['WhatsappQueueReport'][_0x35049b(0xfa)]({'where':{'id':_0x5baa30[_0x35049b(0xdf)]['id']}})[_0x35049b(0xe4)](handleEntityNotFound(_0x303948,null))['then'](saveUpdates(_0x5baa30[_0x35049b(0xdc)],null))['then'](respondWithResult(_0x303948,null))[_0x35049b(0xed)](handleError(_0x303948,null));},exports['destroy']=function(_0x1e20f4,_0x15823e){const _0x52d205=a975_0x34cf0c;return db[_0x52d205(0x101)][_0x52d205(0xfa)]({'where':{'id':_0x1e20f4[_0x52d205(0xdf)]['id']}})[_0x52d205(0xe4)](handleEntityNotFound(_0x15823e,null))[_0x52d205(0xe4)](removeEntity(_0x15823e,null))['catch'](handleError(_0x15823e,null));},exports[a975_0x34cf0c(0xe0)]=function(_0x2c1626,_0x77ef35){const _0x2b3e4d=a975_0x34cf0c;return db[_0x2b3e4d(0x101)][_0x2b3e4d(0xe0)]()[_0x2b3e4d(0xe4)](respondWithResult(_0x77ef35,null))[_0x2b3e4d(0xed)](handleError(_0x77ef35,null));}; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.model.js b/server/api/whatsappQueueReport/whatsappQueueReport.model.js index 0d9f048..92af814 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.model.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.model.js @@ -1 +1 @@ -const a976_0x2ba1=['WhatsappQueueReport','./whatsappQueueReport.attributes','function','init','sequelize','exports'];(function(_0x5b7e66,_0x430e8f){const _0x2ba112=function(_0x2f7670){while(--_0x2f7670){_0x5b7e66['push'](_0x5b7e66['shift']());}};_0x2ba112(++_0x430e8f);}(a976_0x2ba1,0xcf));const a976_0x2f76=function(_0x5b7e66,_0x430e8f){_0x5b7e66=_0x5b7e66-0x1da;let _0x2ba112=a976_0x2ba1[_0x5b7e66];return _0x2ba112;};const a976_0x40e6fe=a976_0x2f76;'use strict';const {Model}=require(a976_0x40e6fe(0x1db)),{attributes}=require(a976_0x40e6fe(0x1de)),{options}=require('./whatsappQueueReport.options');class WhatsappQueueReport extends Model{}function init(_0x2a8277,_0x347fa8){const _0xdb01f5=a976_0x40e6fe,_0x46cc70=options(_0x2a8277),_0x176741=typeof _0x347fa8===_0xdb01f5(0x1df)?_0x347fa8(_0x46cc70):_0x46cc70;return WhatsappQueueReport[_0xdb01f5(0x1da)](attributes,_0x176741),WhatsappQueueReport;}module[a976_0x40e6fe(0x1dc)][a976_0x40e6fe(0x1dd)]=WhatsappQueueReport,module['exports']['init']=init; \ No newline at end of file +const a976_0x18ab=['init','./whatsappQueueReport.options','WhatsappQueueReport','exports','function','sequelize'];(function(_0x39e6b0,_0x3ac79c){const _0x18ab63=function(_0x2a7566){while(--_0x2a7566){_0x39e6b0['push'](_0x39e6b0['shift']());}};_0x18ab63(++_0x3ac79c);}(a976_0x18ab,0x9c));const a976_0x2a75=function(_0x39e6b0,_0x3ac79c){_0x39e6b0=_0x39e6b0-0x1da;let _0x18ab63=a976_0x18ab[_0x39e6b0];return _0x18ab63;};const a976_0x56de5c=a976_0x2a75;'use strict';const {Model}=require(a976_0x56de5c(0x1df)),{attributes}=require('./whatsappQueueReport.attributes'),{options}=require(a976_0x56de5c(0x1db));class WhatsappQueueReport extends Model{}function init(_0x27c4b5,_0x520fdc){const _0x61ef30=a976_0x56de5c,_0x45b402=options(_0x27c4b5),_0x964483=typeof _0x520fdc===_0x61ef30(0x1de)?_0x520fdc(_0x45b402):_0x45b402;return WhatsappQueueReport[_0x61ef30(0x1da)](attributes,_0x964483),WhatsappQueueReport;}module[a976_0x56de5c(0x1dd)][a976_0x56de5c(0x1dc)]=WhatsappQueueReport,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.options.js b/server/api/whatsappQueueReport/whatsappQueueReport.options.js index d242dda..f3f5fef 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.options.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.options.js @@ -1 +1 @@ -var a977_0x32e8=['exports','uniqueid','options'];(function(_0x53a85e,_0x4bd362){var _0x32e880=function(_0x2036e0){while(--_0x2036e0){_0x53a85e['push'](_0x53a85e['shift']());}};_0x32e880(++_0x4bd362);}(a977_0x32e8,0x1c4));var a977_0x2036=function(_0x53a85e,_0x4bd362){_0x53a85e=_0x53a85e-0x1a5;var _0x32e880=a977_0x32e8[_0x53a85e];return _0x32e880;};var a977_0x16a25a=a977_0x2036;function options(_0x3c194c){var _0x4a87be=a977_0x2036;return{'sequelize':_0x3c194c,'tableName':'report_whatsapp_queue','paranoid':![],'indexes':[{'name':_0x4a87be(0x1a7),'fields':[_0x4a87be(0x1a7)]}],'timestamps':!![]};}module[a977_0x16a25a(0x1a6)][a977_0x16a25a(0x1a5)]=options; \ No newline at end of file +var a977_0x3866=['report_whatsapp_queue','exports','uniqueid'];(function(_0x1c863e,_0x192224){var _0x386647=function(_0x1cb113){while(--_0x1cb113){_0x1c863e['push'](_0x1c863e['shift']());}};_0x386647(++_0x192224);}(a977_0x3866,0x71));var a977_0x1cb1=function(_0x1c863e,_0x192224){_0x1c863e=_0x1c863e-0x118;var _0x386647=a977_0x3866[_0x1c863e];return _0x386647;};var a977_0x22d71c=a977_0x1cb1;function options(_0x45f803){var _0x3213a9=a977_0x1cb1;return{'sequelize':_0x45f803,'tableName':_0x3213a9(0x119),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x3213a9(0x118)]}],'timestamps':!![]};}module[a977_0x22d71c(0x11a)]['options']=options; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js b/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js index c25fffb..853b14a 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js @@ -1 +1 @@ -const a978_0x1d5b=['../../mysqldb','CreateWhatsappQueueReport','catch','debug','limit','where','stringify','info','../../config/logger','attributes','options','raw','WhatsappQueueReport','body','update','message','create','error','then','UpdateWhatsappQueueReport'];(function(_0x35e528,_0x400cc5){const _0x1d5bd5=function(_0x35f1da){while(--_0x35f1da){_0x35e528['push'](_0x35e528['shift']());}};_0x1d5bd5(++_0x400cc5);}(a978_0x1d5b,0xd5));const a978_0x35f1=function(_0x35e528,_0x400cc5){_0x35e528=_0x35e528-0x6c;let _0x1d5bd5=a978_0x1d5b[_0x35e528];return _0x1d5bd5;};const a978_0x33d211=a978_0x35f1;'use strict';const db=require(a978_0x33d211(0x73))['db'],logger=require(a978_0x33d211(0x7b))('rpc');exports[a978_0x33d211(0x74)]=function(_0x317ba2){const _0x4b7e66=this;return new Promise(function(_0x8c7ed1,_0x2f9c2e){const _0x55c818=a978_0x35f1;return db[_0x55c818(0x7f)][_0x55c818(0x6f)](_0x317ba2[_0x55c818(0x6c)],{'raw':_0x317ba2[_0x55c818(0x7d)]?_0x317ba2[_0x55c818(0x7d)][_0x55c818(0x7e)]===undefined?!![]:![]:!![]})['then'](function(_0x280c9f){const _0x2749fc=_0x55c818;logger[_0x2749fc(0x7a)]('CreateWhatsappQueueReport',_0x317ba2),logger[_0x2749fc(0x76)](_0x2749fc(0x74),_0x317ba2,JSON[_0x2749fc(0x79)](_0x280c9f)),_0x8c7ed1(_0x280c9f);})[_0x55c818(0x75)](function(_0x3ae47e){const _0x33a3b4=_0x55c818;logger[_0x33a3b4(0x70)](_0x33a3b4(0x74),_0x3ae47e['message'],_0x317ba2),_0x2f9c2e(_0x4b7e66['error'](0x1f4,_0x3ae47e[_0x33a3b4(0x6e)]));});});},exports[a978_0x33d211(0x72)]=function(_0x528295){const _0xd570db=this;return new Promise(function(_0x551205,_0x112907){const _0x469982=a978_0x35f1;return db[_0x469982(0x7f)][_0x469982(0x6d)](_0x528295[_0x469982(0x6c)],{'raw':_0x528295['options']?_0x528295[_0x469982(0x7d)][_0x469982(0x7e)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x528295[_0x469982(0x7d)]?_0x528295[_0x469982(0x7d)][_0x469982(0x78)]||null:null,'attributes':_0x528295[_0x469982(0x7d)]?_0x528295[_0x469982(0x7d)][_0x469982(0x7c)]||null:null,'limit':_0x528295[_0x469982(0x7d)]?_0x528295['options'][_0x469982(0x77)]||null:null})[_0x469982(0x71)](function(_0x549ffa){const _0x361af8=_0x469982;logger[_0x361af8(0x7a)](_0x361af8(0x72),_0x528295),logger[_0x361af8(0x76)](_0x361af8(0x72),_0x528295,JSON[_0x361af8(0x79)](_0x549ffa)),_0x551205(_0x549ffa);})[_0x469982(0x75)](function(_0x30aa3f){const _0x528c62=_0x469982;logger[_0x528c62(0x70)](_0x528c62(0x72),_0x30aa3f[_0x528c62(0x6e)],_0x528295),_0x112907(_0xd570db[_0x528c62(0x70)](0x1f4,_0x30aa3f[_0x528c62(0x6e)]));});});}; \ No newline at end of file +const a978_0x13d0=['error','catch','body','raw','WhatsappQueueReport','info','debug','UpdateWhatsappQueueReport','where','options','then','limit','CreateWhatsappQueueReport','update','create','message','stringify','../../mysqldb'];(function(_0x34fb7e,_0x5ea9e1){const _0x13d051=function(_0x424125){while(--_0x424125){_0x34fb7e['push'](_0x34fb7e['shift']());}};_0x13d051(++_0x5ea9e1);}(a978_0x13d0,0x153));const a978_0x4241=function(_0x34fb7e,_0x5ea9e1){_0x34fb7e=_0x34fb7e-0x1c8;let _0x13d051=a978_0x13d0[_0x34fb7e];return _0x13d051;};const a978_0x530144=a978_0x4241;'use strict';const db=require(a978_0x530144(0x1ca))['db'],logger=require('../../config/logger')('rpc');exports[a978_0x530144(0x1d7)]=function(_0x27c69f){const _0x781718=this;return new Promise(function(_0x3a44cf,_0x4de7f4){const _0x13f2e1=a978_0x4241;return db['WhatsappQueueReport'][_0x13f2e1(0x1d9)](_0x27c69f[_0x13f2e1(0x1cd)],{'raw':_0x27c69f[_0x13f2e1(0x1d4)]?_0x27c69f[_0x13f2e1(0x1d4)][_0x13f2e1(0x1ce)]===undefined?!![]:![]:!![]})[_0x13f2e1(0x1d5)](function(_0x5db356){const _0x814061=_0x13f2e1;logger[_0x814061(0x1d0)](_0x814061(0x1d7),_0x27c69f),logger[_0x814061(0x1d1)](_0x814061(0x1d7),_0x27c69f,JSON[_0x814061(0x1c9)](_0x5db356)),_0x3a44cf(_0x5db356);})[_0x13f2e1(0x1cc)](function(_0x3943dc){const _0x412297=_0x13f2e1;logger[_0x412297(0x1cb)](_0x412297(0x1d7),_0x3943dc[_0x412297(0x1c8)],_0x27c69f),_0x4de7f4(_0x781718['error'](0x1f4,_0x3943dc[_0x412297(0x1c8)]));});});},exports[a978_0x530144(0x1d2)]=function(_0x100dad){const _0xf95caa=this;return new Promise(function(_0x29a3d1,_0x2b576f){const _0xadc625=a978_0x4241;return db[_0xadc625(0x1cf)][_0xadc625(0x1d8)](_0x100dad[_0xadc625(0x1cd)],{'raw':_0x100dad['options']?_0x100dad['options'][_0xadc625(0x1ce)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x100dad[_0xadc625(0x1d4)]?_0x100dad['options'][_0xadc625(0x1d3)]||null:null,'attributes':_0x100dad[_0xadc625(0x1d4)]?_0x100dad['options']['attributes']||null:null,'limit':_0x100dad[_0xadc625(0x1d4)]?_0x100dad['options'][_0xadc625(0x1d6)]||null:null})[_0xadc625(0x1d5)](function(_0x37b71d){const _0x260db4=_0xadc625;logger['info'](_0x260db4(0x1d2),_0x100dad),logger[_0x260db4(0x1d1)](_0x260db4(0x1d2),_0x100dad,JSON['stringify'](_0x37b71d)),_0x29a3d1(_0x37b71d);})[_0xadc625(0x1cc)](function(_0x390322){const _0x33bd07=_0xadc625;logger[_0x33bd07(0x1cb)](_0x33bd07(0x1d2),_0x390322[_0x33bd07(0x1c8)],_0x100dad),_0x2b576f(_0xf95caa[_0x33bd07(0x1cb)](0x1f4,_0x390322[_0x33bd07(0x1c8)]));});});}; \ No newline at end of file diff --git a/server/api/whatsappTransferReport/index.js b/server/api/whatsappTransferReport/index.js index 3550ec4..69fa30d 100644 --- a/server/api/whatsappTransferReport/index.js +++ b/server/api/whatsappTransferReport/index.js @@ -1 +1 @@ -const a979_0x3aed=['isAuthenticated','../../components/auth/service','get','Router','exports','put','show','./whatsappTransferReport.controller','update','post','describe','delete','/:id'];(function(_0x3a902c,_0x4c3b76){const _0x3aedde=function(_0x462131){while(--_0x462131){_0x3a902c['push'](_0x3a902c['shift']());}};_0x3aedde(++_0x4c3b76);}(a979_0x3aed,0x1e9));const a979_0x4621=function(_0x3a902c,_0x4c3b76){_0x3a902c=_0x3a902c-0x7b;let _0x3aedde=a979_0x3aed[_0x3a902c];return _0x3aedde;};const a979_0x427a87=a979_0x4621;'use strict';const express=require('express'),router=express[a979_0x427a87(0x83)](),auth=require(a979_0x427a87(0x81)),controller=require(a979_0x427a87(0x87));router['get']('/',auth[a979_0x427a87(0x80)](),controller['index']),router[a979_0x427a87(0x82)]('/describe',auth[a979_0x427a87(0x80)](),controller[a979_0x427a87(0x7d)]),router['get'](a979_0x427a87(0x7f),auth[a979_0x427a87(0x80)](),controller[a979_0x427a87(0x86)]),router[a979_0x427a87(0x7c)]('/',auth[a979_0x427a87(0x80)](),controller['create']),router[a979_0x427a87(0x85)](a979_0x427a87(0x7f),auth['isAuthenticated'](),controller[a979_0x427a87(0x7b)]),router[a979_0x427a87(0x7e)](a979_0x427a87(0x7f),auth[a979_0x427a87(0x80)](),controller['destroy']),module[a979_0x427a87(0x84)]=router; \ No newline at end of file +const a979_0x35a1=['update','post','delete','isAuthenticated','get','index','express','describe','show','Router','put','destroy','../../components/auth/service','/describe','/:id','exports'];(function(_0x1b8656,_0x3f4f8b){const _0x35a165=function(_0xeaba14){while(--_0xeaba14){_0x1b8656['push'](_0x1b8656['shift']());}};_0x35a165(++_0x3f4f8b);}(a979_0x35a1,0x10c));const a979_0xeaba=function(_0x1b8656,_0x3f4f8b){_0x1b8656=_0x1b8656-0x13d;let _0x35a165=a979_0x35a1[_0x1b8656];return _0x35a165;};const a979_0xc95e14=a979_0xeaba;'use strict';const express=require(a979_0xc95e14(0x147)),router=express[a979_0xc95e14(0x14a)](),auth=require(a979_0xc95e14(0x13d)),controller=require('./whatsappTransferReport.controller');router[a979_0xc95e14(0x145)]('/',auth[a979_0xc95e14(0x144)](),controller[a979_0xc95e14(0x146)]),router[a979_0xc95e14(0x145)](a979_0xc95e14(0x13e),auth[a979_0xc95e14(0x144)](),controller[a979_0xc95e14(0x148)]),router[a979_0xc95e14(0x145)](a979_0xc95e14(0x13f),auth[a979_0xc95e14(0x144)](),controller[a979_0xc95e14(0x149)]),router[a979_0xc95e14(0x142)]('/',auth[a979_0xc95e14(0x144)](),controller['create']),router[a979_0xc95e14(0x14b)](a979_0xc95e14(0x13f),auth[a979_0xc95e14(0x144)](),controller[a979_0xc95e14(0x141)]),router[a979_0xc95e14(0x143)](a979_0xc95e14(0x13f),auth[a979_0xc95e14(0x144)](),controller[a979_0xc95e14(0x14c)]),module[a979_0xc95e14(0x140)]=router; \ No newline at end of file diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js b/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js index 385aee1..19634f0 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js @@ -1 +1 @@ -const a980_0x3b54=['account','attributes','STRING','queue','agent','exports','sequelize','ENUM'];(function(_0xa82124,_0x3440d6){const _0x3b54cd=function(_0x4786b0){while(--_0x4786b0){_0xa82124['push'](_0xa82124['shift']());}};_0x3b54cd(++_0x3440d6);}(a980_0x3b54,0x1ba));const a980_0x4786=function(_0xa82124,_0x3440d6){_0xa82124=_0xa82124-0x111;let _0x3b54cd=a980_0x3b54[_0xa82124];return _0x3b54cd;};const a980_0x13c2a6=a980_0x4786;'use strict';const {DataTypes}=require(a980_0x13c2a6(0x115)),attributes={'uniqueid':{'type':DataTypes[a980_0x13c2a6(0x111)],'allowNull':![]},'type':{'type':DataTypes[a980_0x13c2a6(0x116)](a980_0x13c2a6(0x117),a980_0x13c2a6(0x113),a980_0x13c2a6(0x112)),'allowNull':![]},'transferredAt':{'type':DataTypes['DATE']}};module[a980_0x13c2a6(0x114)][a980_0x13c2a6(0x118)]=attributes; \ No newline at end of file +const a980_0x4adf=['STRING','attributes','DATE','exports','account','agent','queue'];(function(_0x3763b0,_0x2eb50c){const _0x4adf28=function(_0x37f5c5){while(--_0x37f5c5){_0x3763b0['push'](_0x3763b0['shift']());}};_0x4adf28(++_0x2eb50c);}(a980_0x4adf,0xd3));const a980_0x37f5=function(_0x3763b0,_0x2eb50c){_0x3763b0=_0x3763b0-0x1e2;let _0x4adf28=a980_0x4adf[_0x3763b0];return _0x4adf28;};const a980_0x5a1457=a980_0x37f5;'use strict';const {DataTypes}=require('sequelize'),attributes={'uniqueid':{'type':DataTypes[a980_0x5a1457(0x1e8)],'allowNull':![]},'type':{'type':DataTypes['ENUM'](a980_0x5a1457(0x1e5),a980_0x5a1457(0x1e6),a980_0x5a1457(0x1e7)),'allowNull':![]},'transferredAt':{'type':DataTypes[a980_0x5a1457(0x1e3)]}};module[a980_0x5a1457(0x1e4)][a980_0x5a1457(0x1e2)]=attributes; \ No newline at end of file diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.controller.js b/server/api/whatsappTransferReport/whatsappTransferReport.controller.js index 9de7aba..52f7d45 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.controller.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.controller.js @@ -1 +1 @@ -const a981_0xede8=['count','name','params','findOne','create','length','catch','nolimit','sort','map','rows','like','sendStatus','WhatsappTransferReport','attributes','keys','filters','include','then','options','body','intersection','order','query','findAll','where','error','status','Content-Range','update','filter','lodash','rawAttributes','offset','limit','undefined','describe','destroy','../../mysqldb','api','model','sequelize','../../config/logger','key','fields','includeAll','show','merge','json','end','VIRTUAL'];(function(_0x11ea5c,_0x1fd6cf){const _0xede858=function(_0x5b2141){while(--_0x5b2141){_0x11ea5c['push'](_0x11ea5c['shift']());}};_0xede858(++_0x1fd6cf);}(a981_0xede8,0xcf));const a981_0x5b21=function(_0x11ea5c,_0x1fd6cf){_0x11ea5c=_0x11ea5c-0x165;let _0xede858=a981_0xede8[_0x11ea5c];return _0xede858;};const a981_0x22c12f=a981_0x5b21;'use strict';const _=require(a981_0x22c12f(0x181)),qs=require('../../components/parsers/qs'),logger=require(a981_0x22c12f(0x18c))(a981_0x22c12f(0x189)),{db}=require(a981_0x22c12f(0x188)),{Op}=require(a981_0x22c12f(0x18b));function respondWithResult(_0x1d46b1,_0x4cfdd4){return _0x4cfdd4=_0x4cfdd4||0xc8,function(_0x331fce){if(_0x331fce)return _0x1d46b1['status'](_0x4cfdd4)['json'](_0x331fce);};}function respondWithFilteredResult(_0x34c03b,_0x38d33d){return function(_0x566ec3){const _0x32cb49=a981_0x5b21;if(_0x566ec3){const _0x113fdf=_0x566ec3[_0x32cb49(0x195)],_0x481657=_0x38d33d[_0x32cb49(0x183)];let _0x701c68=_0x38d33d[_0x32cb49(0x183)]+_0x38d33d[_0x32cb49(0x184)],_0x57f4e7;return _0x701c68>=_0x113fdf?(_0x701c68=_0x113fdf,_0x57f4e7=0xc8):_0x57f4e7=0xce,_0x34c03b[_0x32cb49(0x17d)](_0x57f4e7),_0x34c03b['set'](_0x32cb49(0x17e),_0x481657+'-'+_0x701c68+'/'+_0x113fdf)[_0x32cb49(0x192)](_0x566ec3);}return null;};}function saveUpdates(_0x375c74){return function(_0x18eaff){const _0xe65ee2=a981_0x5b21;if(_0x18eaff)return _0x18eaff['update'](_0x375c74)[_0xe65ee2(0x174)](function(_0x332f6f){return _0x332f6f;});return null;};}function removeEntity(_0x4bef6b){return function(_0x66d228){const _0x13a224=a981_0x5b21;if(_0x66d228)return _0x66d228[_0x13a224(0x187)]()[_0x13a224(0x174)](function(){const _0x27fffa=_0x13a224;_0x4bef6b[_0x27fffa(0x17d)](0xcc)[_0x27fffa(0x193)]();});};}function handleEntityNotFound(_0x4fc51f){return function(_0x39569a){const _0x43ade4=a981_0x5b21;return!_0x39569a&&_0x4fc51f[_0x43ade4(0x16e)](0x194),_0x39569a;};}function handleError(_0x2540e9,_0x526d60){return _0x526d60=_0x526d60||0x1f4,function(_0xae47cf){const _0x5d31b3=a981_0x5b21;logger[_0x5d31b3(0x17c)](_0xae47cf['stack']),_0xae47cf[_0x5d31b3(0x196)]&&delete _0xae47cf[_0x5d31b3(0x196)],_0x2540e9[_0x5d31b3(0x17d)](_0x526d60)['send'](_0xae47cf);};}exports['index']=function(_0x37dd9b,_0x42d296){const _0x57fe83=a981_0x22c12f;let _0x40c5f7={};const _0x3405bc={},_0x25f997={'count':0x0,'rows':[]},_0x2868a9=_[_0x57fe83(0x16b)](db[_0x57fe83(0x16f)][_0x57fe83(0x182)],function(_0x2173d7){const _0x14e41d=_0x57fe83;return{'name':_0x2173d7['fieldName'],'type':_0x2173d7['type'][_0x14e41d(0x18d)]};});_0x3405bc[_0x57fe83(0x18a)]=_['map'](_0x2868a9,_0x57fe83(0x196)),_0x3405bc[_0x57fe83(0x179)]=_[_0x57fe83(0x171)](_0x37dd9b[_0x57fe83(0x179)]),_0x3405bc[_0x57fe83(0x172)]=_[_0x57fe83(0x177)](_0x3405bc[_0x57fe83(0x18a)],_0x3405bc[_0x57fe83(0x179)]),_0x40c5f7['attributes']=_['intersection'](_0x3405bc[_0x57fe83(0x18a)],qs[_0x57fe83(0x18e)](_0x37dd9b[_0x57fe83(0x179)][_0x57fe83(0x18e)])),_0x40c5f7[_0x57fe83(0x170)]=_0x40c5f7[_0x57fe83(0x170)][_0x57fe83(0x167)]?_0x40c5f7['attributes']:_0x3405bc[_0x57fe83(0x18a)];typeof _0x37dd9b['query'][_0x57fe83(0x169)]===_0x57fe83(0x185)&&(_0x40c5f7[_0x57fe83(0x184)]=qs[_0x57fe83(0x184)](_0x37dd9b[_0x57fe83(0x179)]['limit']),_0x40c5f7[_0x57fe83(0x183)]=qs[_0x57fe83(0x183)](_0x37dd9b[_0x57fe83(0x179)][_0x57fe83(0x183)]));_0x40c5f7[_0x57fe83(0x178)]=qs[_0x57fe83(0x16a)](_0x37dd9b[_0x57fe83(0x179)][_0x57fe83(0x16a)]),_0x40c5f7[_0x57fe83(0x17b)]=qs[_0x57fe83(0x172)](_['pick'](_0x37dd9b[_0x57fe83(0x179)],_0x3405bc['filters']),_0x2868a9);_0x37dd9b[_0x57fe83(0x179)][_0x57fe83(0x180)]&&(_0x40c5f7[_0x57fe83(0x17b)]=_[_0x57fe83(0x191)](_0x40c5f7[_0x57fe83(0x17b)],{[Op['or']]:_['map'](_0x2868a9,function(_0xfa08c6){const _0x357848=_0x57fe83;if(_0xfa08c6['type']!==_0x357848(0x194)){const _0x5e67ab={};return _0x5e67ab[_0xfa08c6[_0x357848(0x196)]]={[Op[_0x357848(0x16d)]]:'%'+_0x37dd9b[_0x357848(0x179)][_0x357848(0x180)]+'%'},_0x5e67ab;}})}));_0x40c5f7=_[_0x57fe83(0x191)]({},_0x40c5f7,_0x37dd9b[_0x57fe83(0x175)]);const _0x5ae61d={'where':_0x40c5f7[_0x57fe83(0x17b)]};return db[_0x57fe83(0x16f)]['count'](_0x5ae61d)[_0x57fe83(0x174)](function(_0x4a6840){const _0x80ee91=_0x57fe83;return _0x25f997[_0x80ee91(0x195)]=_0x4a6840,_0x37dd9b[_0x80ee91(0x179)]['includeAll']&&(_0x40c5f7[_0x80ee91(0x173)]=[{'all':!![]}]),db[_0x80ee91(0x16f)][_0x80ee91(0x17a)](_0x40c5f7);})['then'](function(_0x2166c4){const _0x16d0a0=_0x57fe83;return _0x25f997[_0x16d0a0(0x16c)]=_0x2166c4,_0x25f997;})[_0x57fe83(0x174)](respondWithFilteredResult(_0x42d296,_0x40c5f7))[_0x57fe83(0x168)](handleError(_0x42d296,null));},exports[a981_0x22c12f(0x190)]=function(_0x3844bb,_0xb61a43){const _0x3aecd3=a981_0x22c12f;let _0x1dea1b={'raw':!![],'where':{'id':_0x3844bb[_0x3aecd3(0x197)]['id']}};const _0x4bf1bf={};return _0x4bf1bf[_0x3aecd3(0x18a)]=_[_0x3aecd3(0x171)](db[_0x3aecd3(0x16f)][_0x3aecd3(0x182)]),_0x4bf1bf[_0x3aecd3(0x179)]=_[_0x3aecd3(0x171)](_0x3844bb[_0x3aecd3(0x179)]),_0x4bf1bf['filters']=_['intersection'](_0x4bf1bf['model'],_0x4bf1bf[_0x3aecd3(0x179)]),_0x1dea1b['attributes']=_[_0x3aecd3(0x177)](_0x4bf1bf[_0x3aecd3(0x18a)],qs[_0x3aecd3(0x18e)](_0x3844bb[_0x3aecd3(0x179)][_0x3aecd3(0x18e)])),_0x1dea1b[_0x3aecd3(0x170)]=_0x1dea1b['attributes'][_0x3aecd3(0x167)]?_0x1dea1b[_0x3aecd3(0x170)]:_0x4bf1bf['model'],_0x3844bb['query'][_0x3aecd3(0x18f)]&&(_0x1dea1b['include']=[{'all':!![]}]),_0x1dea1b=_[_0x3aecd3(0x191)]({},_0x1dea1b,_0x3844bb[_0x3aecd3(0x175)]),db[_0x3aecd3(0x16f)][_0x3aecd3(0x165)](_0x1dea1b)[_0x3aecd3(0x174)](handleEntityNotFound(_0xb61a43,null))[_0x3aecd3(0x174)](respondWithResult(_0xb61a43,null))[_0x3aecd3(0x168)](handleError(_0xb61a43,null));},exports['create']=function(_0x171ea7,_0x29cf4f){const _0x84c976=a981_0x22c12f;return db[_0x84c976(0x16f)][_0x84c976(0x166)](_0x171ea7[_0x84c976(0x176)],{})[_0x84c976(0x174)](respondWithResult(_0x29cf4f,0xc9))['catch'](handleError(_0x29cf4f,null));},exports[a981_0x22c12f(0x17f)]=function(_0x5adaf2,_0x421dc3){const _0x596eb3=a981_0x22c12f;return _0x5adaf2[_0x596eb3(0x176)]['id']&&delete _0x5adaf2[_0x596eb3(0x176)]['id'],db['WhatsappTransferReport'][_0x596eb3(0x165)]({'where':{'id':_0x5adaf2[_0x596eb3(0x197)]['id']}})['then'](handleEntityNotFound(_0x421dc3,null))[_0x596eb3(0x174)](saveUpdates(_0x5adaf2[_0x596eb3(0x176)],null))[_0x596eb3(0x174)](respondWithResult(_0x421dc3,null))[_0x596eb3(0x168)](handleError(_0x421dc3,null));},exports['destroy']=function(_0x32e548,_0x24e7e4){const _0x4919ca=a981_0x22c12f;return db[_0x4919ca(0x16f)][_0x4919ca(0x165)]({'where':{'id':_0x32e548[_0x4919ca(0x197)]['id']}})['then'](handleEntityNotFound(_0x24e7e4,null))[_0x4919ca(0x174)](removeEntity(_0x24e7e4,null))[_0x4919ca(0x168)](handleError(_0x24e7e4,null));},exports[a981_0x22c12f(0x186)]=function(_0xd89780,_0x262e9c){const _0x13be06=a981_0x22c12f;return db[_0x13be06(0x16f)][_0x13be06(0x186)]()[_0x13be06(0x174)](respondWithResult(_0x262e9c,null))[_0x13be06(0x168)](handleError(_0x262e9c,null));}; \ No newline at end of file +const a981_0x12a5=['filter','query','key','index','describe','then','intersection','where','WhatsappTransferReport','merge','map','offset','pick','count','includeAll','keys','api','model','length','send','../../mysqldb','sort','fields','set','params','body','stack','findAll','options','fieldName','type','limit','include','order','status','name','Content-Range','catch','../../components/parsers/qs','update','findOne','json','undefined','create','error','sequelize','../../config/logger','attributes','filters','like'];(function(_0x284f09,_0xeb34b6){const _0x12a561=function(_0x431150){while(--_0x431150){_0x284f09['push'](_0x284f09['shift']());}};_0x12a561(++_0xeb34b6);}(a981_0x12a5,0x18c));const a981_0x4311=function(_0x284f09,_0xeb34b6){_0x284f09=_0x284f09-0x8a;let _0x12a561=a981_0x12a5[_0x284f09];return _0x12a561;};const a981_0x1dfc80=a981_0x4311;'use strict';const _=require('lodash'),qs=require(a981_0x1dfc80(0xb4)),logger=require(a981_0x1dfc80(0x8a))(a981_0x1dfc80(0x9e)),{db}=require(a981_0x1dfc80(0xa2)),{Op}=require(a981_0x1dfc80(0xbb));function respondWithResult(_0x312313,_0x112e07){return _0x112e07=_0x112e07||0xc8,function(_0x135047){const _0x30f376=a981_0x4311;if(_0x135047)return _0x312313[_0x30f376(0xb0)](_0x112e07)['json'](_0x135047);};}function respondWithFilteredResult(_0x8218c7,_0x4ad7f6){return function(_0x3ec6e4){const _0x51d015=a981_0x4311;if(_0x3ec6e4){const _0x1b4e2c=_0x3ec6e4['count'],_0x47eab3=_0x4ad7f6['offset'];let _0x46f1bd=_0x4ad7f6[_0x51d015(0x99)]+_0x4ad7f6[_0x51d015(0xad)],_0x3c8781;return _0x46f1bd>=_0x1b4e2c?(_0x46f1bd=_0x1b4e2c,_0x3c8781=0xc8):_0x3c8781=0xce,_0x8218c7[_0x51d015(0xb0)](_0x3c8781),_0x8218c7[_0x51d015(0xa5)](_0x51d015(0xb2),_0x47eab3+'-'+_0x46f1bd+'/'+_0x1b4e2c)[_0x51d015(0xb7)](_0x3ec6e4);}return null;};}function saveUpdates(_0x22217d){return function(_0x11cce1){const _0xbbfd5f=a981_0x4311;if(_0x11cce1)return _0x11cce1['update'](_0x22217d)[_0xbbfd5f(0x93)](function(_0x503ebc){return _0x503ebc;});return null;};}function removeEntity(_0xf0d498){return function(_0x2c4f4d){const _0x211e04=a981_0x4311;if(_0x2c4f4d)return _0x2c4f4d['destroy']()[_0x211e04(0x93)](function(){const _0x45d252=_0x211e04;_0xf0d498[_0x45d252(0xb0)](0xcc)['end']();});};}function handleEntityNotFound(_0x467a84){return function(_0x3abdcb){return!_0x3abdcb&&_0x467a84['sendStatus'](0x194),_0x3abdcb;};}function handleError(_0x5a5816,_0x1a604a){return _0x1a604a=_0x1a604a||0x1f4,function(_0x4cf576){const _0x5d977e=a981_0x4311;logger[_0x5d977e(0xba)](_0x4cf576[_0x5d977e(0xa8)]),_0x4cf576[_0x5d977e(0xb1)]&&delete _0x4cf576['name'],_0x5a5816[_0x5d977e(0xb0)](_0x1a604a)[_0x5d977e(0xa1)](_0x4cf576);};}exports[a981_0x1dfc80(0x91)]=function(_0x4da6b7,_0x14304e){const _0x2fbf25=a981_0x1dfc80;let _0x228022={};const _0x769ba3={},_0x3a7d44={'count':0x0,'rows':[]},_0x7197e9=_['map'](db[_0x2fbf25(0x96)]['rawAttributes'],function(_0x12db8f){const _0x115761=_0x2fbf25;return{'name':_0x12db8f[_0x115761(0xab)],'type':_0x12db8f[_0x115761(0xac)][_0x115761(0x90)]};});_0x769ba3[_0x2fbf25(0x9f)]=_[_0x2fbf25(0x98)](_0x7197e9,'name'),_0x769ba3['query']=_['keys'](_0x4da6b7[_0x2fbf25(0x8f)]),_0x769ba3['filters']=_[_0x2fbf25(0x94)](_0x769ba3[_0x2fbf25(0x9f)],_0x769ba3[_0x2fbf25(0x8f)]),_0x228022['attributes']=_[_0x2fbf25(0x94)](_0x769ba3['model'],qs['fields'](_0x4da6b7[_0x2fbf25(0x8f)][_0x2fbf25(0xa4)])),_0x228022[_0x2fbf25(0x8b)]=_0x228022[_0x2fbf25(0x8b)][_0x2fbf25(0xa0)]?_0x228022[_0x2fbf25(0x8b)]:_0x769ba3[_0x2fbf25(0x9f)];typeof _0x4da6b7[_0x2fbf25(0x8f)]['nolimit']===_0x2fbf25(0xb8)&&(_0x228022[_0x2fbf25(0xad)]=qs['limit'](_0x4da6b7['query']['limit']),_0x228022[_0x2fbf25(0x99)]=qs[_0x2fbf25(0x99)](_0x4da6b7[_0x2fbf25(0x8f)][_0x2fbf25(0x99)]));_0x228022[_0x2fbf25(0xaf)]=qs[_0x2fbf25(0xa3)](_0x4da6b7[_0x2fbf25(0x8f)][_0x2fbf25(0xa3)]),_0x228022[_0x2fbf25(0x95)]=qs[_0x2fbf25(0x8c)](_[_0x2fbf25(0x9a)](_0x4da6b7[_0x2fbf25(0x8f)],_0x769ba3['filters']),_0x7197e9);_0x4da6b7['query']['filter']&&(_0x228022[_0x2fbf25(0x95)]=_[_0x2fbf25(0x97)](_0x228022['where'],{[Op['or']]:_[_0x2fbf25(0x98)](_0x7197e9,function(_0x475ddd){const _0x3d1c6f=_0x2fbf25;if(_0x475ddd[_0x3d1c6f(0xac)]!=='VIRTUAL'){const _0x3b3c10={};return _0x3b3c10[_0x475ddd[_0x3d1c6f(0xb1)]]={[Op[_0x3d1c6f(0x8d)]]:'%'+_0x4da6b7['query'][_0x3d1c6f(0x8e)]+'%'},_0x3b3c10;}})}));_0x228022=_['merge']({},_0x228022,_0x4da6b7[_0x2fbf25(0xaa)]);const _0x53600a={'where':_0x228022[_0x2fbf25(0x95)]};return db[_0x2fbf25(0x96)][_0x2fbf25(0x9b)](_0x53600a)[_0x2fbf25(0x93)](function(_0x533e98){const _0x801d00=_0x2fbf25;return _0x3a7d44[_0x801d00(0x9b)]=_0x533e98,_0x4da6b7[_0x801d00(0x8f)][_0x801d00(0x9c)]&&(_0x228022[_0x801d00(0xae)]=[{'all':!![]}]),db['WhatsappTransferReport'][_0x801d00(0xa9)](_0x228022);})[_0x2fbf25(0x93)](function(_0xdd9d70){return _0x3a7d44['rows']=_0xdd9d70,_0x3a7d44;})[_0x2fbf25(0x93)](respondWithFilteredResult(_0x14304e,_0x228022))['catch'](handleError(_0x14304e,null));},exports['show']=function(_0x52f151,_0x2d1b7c){const _0x528503=a981_0x1dfc80;let _0x577703={'raw':!![],'where':{'id':_0x52f151[_0x528503(0xa6)]['id']}};const _0x598d88={};return _0x598d88['model']=_['keys'](db['WhatsappTransferReport']['rawAttributes']),_0x598d88[_0x528503(0x8f)]=_[_0x528503(0x9d)](_0x52f151[_0x528503(0x8f)]),_0x598d88[_0x528503(0x8c)]=_[_0x528503(0x94)](_0x598d88['model'],_0x598d88[_0x528503(0x8f)]),_0x577703[_0x528503(0x8b)]=_['intersection'](_0x598d88['model'],qs[_0x528503(0xa4)](_0x52f151[_0x528503(0x8f)]['fields'])),_0x577703['attributes']=_0x577703[_0x528503(0x8b)][_0x528503(0xa0)]?_0x577703[_0x528503(0x8b)]:_0x598d88['model'],_0x52f151[_0x528503(0x8f)][_0x528503(0x9c)]&&(_0x577703['include']=[{'all':!![]}]),_0x577703=_[_0x528503(0x97)]({},_0x577703,_0x52f151['options']),db['WhatsappTransferReport']['findOne'](_0x577703)['then'](handleEntityNotFound(_0x2d1b7c,null))['then'](respondWithResult(_0x2d1b7c,null))['catch'](handleError(_0x2d1b7c,null));},exports[a981_0x1dfc80(0xb9)]=function(_0x16571e,_0x466f1e){const _0x3a88b4=a981_0x1dfc80;return db['WhatsappTransferReport'][_0x3a88b4(0xb9)](_0x16571e['body'],{})[_0x3a88b4(0x93)](respondWithResult(_0x466f1e,0xc9))[_0x3a88b4(0xb3)](handleError(_0x466f1e,null));},exports[a981_0x1dfc80(0xb5)]=function(_0x4a2199,_0x398a15){const _0x12d350=a981_0x1dfc80;return _0x4a2199[_0x12d350(0xa7)]['id']&&delete _0x4a2199['body']['id'],db[_0x12d350(0x96)][_0x12d350(0xb6)]({'where':{'id':_0x4a2199[_0x12d350(0xa6)]['id']}})['then'](handleEntityNotFound(_0x398a15,null))[_0x12d350(0x93)](saveUpdates(_0x4a2199[_0x12d350(0xa7)],null))['then'](respondWithResult(_0x398a15,null))[_0x12d350(0xb3)](handleError(_0x398a15,null));},exports['destroy']=function(_0x2b96be,_0x48ccc4){const _0x419379=a981_0x1dfc80;return db['WhatsappTransferReport'][_0x419379(0xb6)]({'where':{'id':_0x2b96be[_0x419379(0xa6)]['id']}})[_0x419379(0x93)](handleEntityNotFound(_0x48ccc4,null))[_0x419379(0x93)](removeEntity(_0x48ccc4,null))[_0x419379(0xb3)](handleError(_0x48ccc4,null));},exports[a981_0x1dfc80(0x92)]=function(_0x13a1d5,_0x3a8032){const _0x8e698a=a981_0x1dfc80;return db['WhatsappTransferReport'][_0x8e698a(0x92)]()[_0x8e698a(0x93)](respondWithResult(_0x3a8032,null))[_0x8e698a(0xb3)](handleError(_0x3a8032,null));}; \ No newline at end of file diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.model.js b/server/api/whatsappTransferReport/whatsappTransferReport.model.js index c8cfe43..f584409 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.model.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.model.js @@ -1 +1 @@ -const a982_0x1252=['exports','./whatsappTransferReport.options','init','WhatsappTransferReport','function','sequelize'];(function(_0x4e5d62,_0x2906ec){const _0x12525c=function(_0x267310){while(--_0x267310){_0x4e5d62['push'](_0x4e5d62['shift']());}};_0x12525c(++_0x2906ec);}(a982_0x1252,0x1c2));const a982_0x2673=function(_0x4e5d62,_0x2906ec){_0x4e5d62=_0x4e5d62-0x165;let _0x12525c=a982_0x1252[_0x4e5d62];return _0x12525c;};const a982_0x129d3f=a982_0x2673;'use strict';const {Model}=require(a982_0x129d3f(0x16a)),{attributes}=require('./whatsappTransferReport.attributes'),{options}=require(a982_0x129d3f(0x166));class WhatsappTransferReport extends Model{}function init(_0x4846cf,_0x27507a){const _0x3ca847=a982_0x129d3f,_0x3dc6c2=options(_0x4846cf),_0x3bf47e=typeof _0x27507a===_0x3ca847(0x169)?_0x27507a(_0x3dc6c2):_0x3dc6c2;return WhatsappTransferReport[_0x3ca847(0x167)](attributes,_0x3bf47e),WhatsappTransferReport;}module[a982_0x129d3f(0x165)][a982_0x129d3f(0x168)]=WhatsappTransferReport,module[a982_0x129d3f(0x165)][a982_0x129d3f(0x167)]=init; \ No newline at end of file +const a982_0x3cfe=['exports','./whatsappTransferReport.options','init'];(function(_0x499be6,_0x5b8e96){const _0x3cfef7=function(_0x24cf13){while(--_0x24cf13){_0x499be6['push'](_0x499be6['shift']());}};_0x3cfef7(++_0x5b8e96);}(a982_0x3cfe,0x10f));const a982_0x24cf=function(_0x499be6,_0x5b8e96){_0x499be6=_0x499be6-0x84;let _0x3cfef7=a982_0x3cfe[_0x499be6];return _0x3cfef7;};const a982_0x5d4ad9=a982_0x24cf;'use strict';const {Model}=require('sequelize'),{attributes}=require('./whatsappTransferReport.attributes'),{options}=require(a982_0x5d4ad9(0x84));class WhatsappTransferReport extends Model{}function init(_0x2135f8,_0x1b07e7){const _0x23413c=options(_0x2135f8),_0x537b30=typeof _0x1b07e7==='function'?_0x1b07e7(_0x23413c):_0x23413c;return WhatsappTransferReport['init'](attributes,_0x537b30),WhatsappTransferReport;}module['exports']['WhatsappTransferReport']=WhatsappTransferReport,module[a982_0x5d4ad9(0x86)][a982_0x5d4ad9(0x85)]=init; \ No newline at end of file diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.options.js b/server/api/whatsappTransferReport/whatsappTransferReport.options.js index c607272..388c153 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.options.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.options.js @@ -1 +1 @@ -var a983_0x4ae0=['report_whatsapp_transfer','options','uniqueid'];(function(_0x29a7cf,_0x760215){var _0x4ae0ee=function(_0x3abe03){while(--_0x3abe03){_0x29a7cf['push'](_0x29a7cf['shift']());}};_0x4ae0ee(++_0x760215);}(a983_0x4ae0,0x154));var a983_0x3abe=function(_0x29a7cf,_0x760215){_0x29a7cf=_0x29a7cf-0xb8;var _0x4ae0ee=a983_0x4ae0[_0x29a7cf];return _0x4ae0ee;};var a983_0x459ea6=a983_0x3abe;function options(_0x20953b){var _0x220ef8=a983_0x3abe;return{'sequelize':_0x20953b,'tableName':_0x220ef8(0xba),'paranoid':![],'indexes':[{'name':_0x220ef8(0xb9),'fields':[_0x220ef8(0xb9)]}],'timestamps':!![]};}module['exports'][a983_0x459ea6(0xb8)]=options; \ No newline at end of file +var a983_0x2447=['exports','options','report_whatsapp_transfer','uniqueid'];(function(_0x4dc43f,_0x38e565){var _0x24477d=function(_0x352ab9){while(--_0x352ab9){_0x4dc43f['push'](_0x4dc43f['shift']());}};_0x24477d(++_0x38e565);}(a983_0x2447,0x119));var a983_0x352a=function(_0x4dc43f,_0x38e565){_0x4dc43f=_0x4dc43f-0x135;var _0x24477d=a983_0x2447[_0x4dc43f];return _0x24477d;};var a983_0x2244dc=a983_0x352a;function options(_0x523e32){var _0x577176=a983_0x352a;return{'sequelize':_0x523e32,'tableName':_0x577176(0x136),'paranoid':![],'indexes':[{'name':_0x577176(0x137),'fields':[_0x577176(0x137)]}],'timestamps':!![]};}module[a983_0x2244dc(0x138)][a983_0x2244dc(0x135)]=options; \ No newline at end of file diff --git a/server/app.js b/server/app.js index 9c69916..8223caf 100644 --- a/server/app.js +++ b/server/app.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -const a984_0x3e46=['join','message','Redis\x20disconnected','./mysqldb','disconnect','process\x20or\x20namespace\x20not\x20found','listen','close','Rpc\x20closed','filter','delete','status','./rpc','SIGUSR2','App\x20shut\x20down','./rediscache','Database','./config/schedule','seedDB','./config/config.service','sequelize','map','info','apps','Seed\x20DB\x20ok','online','\x0a*****\x20\x20\x20\x20\x20\x20\x20Stopped\x20and\x20removed\x20all\x20subprocesses\x20\x20\x20\x20\x20\x20*****\x0a\x0a\x0a','./config/environment','xCally\x20ready!','isProduction','name','Starting\x20DB\x20seed...','Server\x20failed\x20to\x20start\x20due\x20to\x20error:','environment','Cannot\x20kill\x20','error','./config/license','./config/pm2/config','xCally\x20Starting...\x20','RPC\x20Error','log','start','Error\x20on\x20server\x20exit','stack','warn','kill','Online\x20apps:','Offline\x20apps:','debug','ONCE\x20SIGINT','lodash','Error\x20on\x20server\x20exit:\x20','ON\x20SIGINT','once','\x20signal!\x20\x20\x20\x20\x20\x20\x20\x20*****\x0a','./config/seedDB','exit','./config/schedule/whatsapp','Development\x20Mode','./globals','SIGINT','DB\x20Sync\x20Error:\x20','pid'];(function(_0x552bbd,_0x1c6688){const _0x3e4613=function(_0x353ccc){while(--_0x353ccc){_0x552bbd['push'](_0x552bbd['shift']());}};_0x3e4613(++_0x1c6688);}(a984_0x3e46,0xb0));const a984_0x353c=function(_0x552bbd,_0x1c6688){_0x552bbd=_0x552bbd-0x1e7;let _0x3e4613=a984_0x3e46[_0x552bbd];return _0x3e4613;};const a984_0x2c86c6=a984_0x353c;'use strict';require(a984_0x2c86c6(0x1f0));const mysqldb=require(a984_0x2c86c6(0x1f7)),{RPC}=require(a984_0x2c86c6(0x200)),{getConfigService}=require(a984_0x2c86c6(0x207)),config=require(a984_0x2c86c6(0x20f)),logger=require('./config/logger'),pm2=require('./config/pm2'),pm2Config=require(a984_0x2c86c6(0x219)),schedule=require(a984_0x2c86c6(0x205)),chat=require('./config/schedule/chat'),whatsapp=require(a984_0x2c86c6(0x1ee)),transcribe=require('./config/schedule/transcribe'),{default:seedDB}=require(a984_0x2c86c6(0x1ec)),{default:checkLicense}=require(a984_0x2c86c6(0x218)),{getRedis}=require(a984_0x2c86c6(0x203)),cs=getConfigService(),_=require(a984_0x2c86c6(0x1e7)),appLogger=logger('app'),queryLogger=logger('db-query');function logDatabase(_0x42a12a){const _0x4f937e=a984_0x2c86c6;try{queryLogger[_0x4f937e(0x20a)](_0x4f937e(0x204),_0x42a12a);}catch(_0x296077){console[_0x4f937e(0x217)](_0x296077);}}function onRPCError(_0x48d979){const _0x32205d=a984_0x2c86c6;appLogger[_0x32205d(0x217)](_0x32205d(0x21b),_0x48d979);}const rpc=new RPC(onRPCError),onServerExitHandler=_['debounce'](async function onServerExit(_0x15f8cb){const _0x27351f=a984_0x2c86c6;console[_0x27351f(0x21c)]('\x0a*****\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Caught\x20'+_0x15f8cb+_0x27351f(0x1eb));try{await rpc[_0x27351f(0x1fb)](),appLogger[_0x27351f(0x224)](_0x27351f(0x1fc));for(const _0x4f3f41 of pm2Config[_0x27351f(0x20b)]){try{await pm2[_0x27351f(0x1fe)](_0x4f3f41[_0x27351f(0x212)]),appLogger['debug'](_0x4f3f41[_0x27351f(0x212)]+'\x20deleted');}catch(_0x439b55){_0x439b55[_0x27351f(0x1f5)]!==_0x27351f(0x1f9)&&(console[_0x27351f(0x217)](_0x27351f(0x216)+_0x4f3f41[_0x27351f(0x212)],_0x439b55),appLogger[_0x27351f(0x217)]('Cannot\x20kill\x20'+_0x4f3f41[_0x27351f(0x212)]+':\x20'+_0x439b55[_0x27351f(0x1f5)]+'\x0a'+_0x439b55[_0x27351f(0x21f)]));}}console[_0x27351f(0x21c)](_0x27351f(0x20e)),getRedis()[_0x27351f(0x1f8)](),appLogger[_0x27351f(0x224)](_0x27351f(0x1f6)),appLogger[_0x27351f(0x224)](_0x27351f(0x202));}catch(_0x559b4c){console[_0x27351f(0x217)](_0x27351f(0x21e),_0x559b4c),appLogger[_0x27351f(0x217)](_0x27351f(0x1e8)+_0x559b4c[_0x27351f(0x1f5)]+'\x0a'+_0x559b4c[_0x27351f(0x21f)]);}},0x7d0,{'leading':!![]});!(cs['isProduction']||cs['isTest'])?(process['once']('SIGUSR2',async function(){const _0x131555=a984_0x2c86c6;await onServerExitHandler(_0x131555(0x201)),process[_0x131555(0x221)](process[_0x131555(0x1f3)],_0x131555(0x201));}),process['on'](a984_0x2c86c6(0x1f1),async function(){const _0x8f2a0f=a984_0x2c86c6;console['log'](_0x8f2a0f(0x1e9)),await onServerExitHandler(_0x8f2a0f(0x1f1)),process[_0x8f2a0f(0x1ed)](0x0);})):process[a984_0x2c86c6(0x1ea)]('SIGINT',async function(){const _0x4c3ebd=a984_0x2c86c6;console[_0x4c3ebd(0x21c)](_0x4c3ebd(0x225)),await onServerExitHandler('SIGINT'),process['exit'](0x0);});async function main(){const _0x3bd525=a984_0x2c86c6;try{console[_0x3bd525(0x21c)](_0x3bd525(0x21a)+(cs['isProduction']?'':_0x3bd525(0x1ef)));try{await mysqldb['db'][_0x3bd525(0x208)]['sync']({'logging':cs[_0x3bd525(0x211)]||cs[_0x3bd525(0x215)]==='test'?![]:logDatabase});}catch(_0x56b334){console[_0x3bd525(0x220)]('DB\x20Sync\x20Error:\x0a',_0x56b334),queryLogger['error'](_0x3bd525(0x1f2)+_0x56b334[_0x3bd525(0x1f5)]+',\x20'+_0x56b334['stack']);}config[_0x3bd525(0x206)]===!![]&&(console[_0x3bd525(0x21c)](_0x3bd525(0x213)),await seedDB(),console[_0x3bd525(0x21c)](_0x3bd525(0x20c)));await checkLicense();const _0x253bb0=await rpc[_0x3bd525(0x1fa)]();appLogger[_0x3bd525(0x20a)](_0x253bb0),await chat[_0x3bd525(0x21d)](),await whatsapp[_0x3bd525(0x21d)](),await schedule['start']();const _0x14d7eb=await transcribe[_0x3bd525(0x21d)]();appLogger[_0x3bd525(0x20a)](_0x14d7eb);const _0x14debd=await pm2[_0x3bd525(0x21d)](pm2Config);appLogger[_0x3bd525(0x20a)](_0x3bd525(0x222),_[_0x3bd525(0x209)](_[_0x3bd525(0x1fd)](_0x14debd,{'status':_0x3bd525(0x20d)}),'name')['join']()),appLogger[_0x3bd525(0x20a)](_0x3bd525(0x223),_[_0x3bd525(0x209)](_[_0x3bd525(0x1fd)](_0x14debd,function(_0x549901){const _0x2a3ecb=_0x3bd525;return _0x549901[_0x2a3ecb(0x1ff)]!==_0x2a3ecb(0x20d);}),_0x3bd525(0x212))[_0x3bd525(0x1f4)]()||'None'),console['log'](_0x3bd525(0x210));}catch(_0x3f86fc){console[_0x3bd525(0x217)](_0x3f86fc),appLogger[_0x3bd525(0x217)](_0x3bd525(0x214),_0x3f86fc);throw _0x3f86fc;}}main(); \ No newline at end of file +const a984_0x6bf8=['Cannot\x20kill\x20','process\x20or\x20namespace\x20not\x20found','test','debug','\x0a*****\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Caught\x20','SIGUSR2','close','exit','./rpc','./config/pm2','once','Database','info','SIGINT','pid','./globals','Rpc\x20closed','\x20deleted','db-query','Offline\x20apps:','./config/schedule','Starting\x20DB\x20seed...','ON\x20SIGINT','./config/logger','./config/schedule/chat','log','stack','ONCE\x20SIGINT','filter','environment','map','message','lodash','DB\x20Sync\x20Error:\x20','./config/seedDB','apps','Development\x20Mode','disconnect','Seed\x20DB\x20ok','Error\x20on\x20server\x20exit','start','error','xCally\x20ready!','isProduction','name','./config/environment','join','\x20signal!\x20\x20\x20\x20\x20\x20\x20\x20*****\x0a','./config/schedule/whatsapp','debounce','RPC\x20Error','online','./rediscache','isTest','kill','app','./mysqldb','xCally\x20Starting...\x20','Error\x20on\x20server\x20exit:\x20','Redis\x20disconnected','delete','./config/schedule/transcribe','./config/pm2/config'];(function(_0x4725ca,_0x5dae77){const _0x6bf8a8=function(_0x44233d){while(--_0x44233d){_0x4725ca['push'](_0x4725ca['shift']());}};_0x6bf8a8(++_0x5dae77);}(a984_0x6bf8,0x1d8));const a984_0x4423=function(_0x4725ca,_0x5dae77){_0x4725ca=_0x4725ca-0x1a7;let _0x6bf8a8=a984_0x6bf8[_0x4725ca];return _0x6bf8a8;};const a984_0x47ab4b=a984_0x4423;'use strict';require(a984_0x47ab4b(0x1d6));const mysqldb=require(a984_0x47ab4b(0x1c0)),{RPC}=require(a984_0x47ab4b(0x1cf)),{getConfigService}=require('./config/config.service'),config=require(a984_0x47ab4b(0x1b5)),logger=require(a984_0x47ab4b(0x1de)),pm2=require(a984_0x47ab4b(0x1d0)),pm2Config=require(a984_0x47ab4b(0x1c6)),schedule=require(a984_0x47ab4b(0x1db)),chat=require(a984_0x47ab4b(0x1df)),whatsapp=require(a984_0x47ab4b(0x1b8)),transcribe=require(a984_0x47ab4b(0x1c5)),{default:seedDB}=require(a984_0x47ab4b(0x1aa)),{default:checkLicense}=require('./config/license'),{getRedis}=require(a984_0x47ab4b(0x1bc)),cs=getConfigService(),_=require(a984_0x47ab4b(0x1a8)),appLogger=logger(a984_0x47ab4b(0x1bf)),queryLogger=logger(a984_0x47ab4b(0x1d9));function logDatabase(_0x20e285){const _0x2a17d6=a984_0x47ab4b;try{queryLogger[_0x2a17d6(0x1d3)](_0x2a17d6(0x1d2),_0x20e285);}catch(_0x54eaaf){console[_0x2a17d6(0x1b1)](_0x54eaaf);}}function onRPCError(_0x358678){const _0xe98270=a984_0x47ab4b;appLogger[_0xe98270(0x1b1)](_0xe98270(0x1ba),_0x358678);}const rpc=new RPC(onRPCError),onServerExitHandler=_[a984_0x47ab4b(0x1b9)](async function onServerExit(_0x3d2485){const _0x3bde84=a984_0x47ab4b;console[_0x3bde84(0x1e0)](_0x3bde84(0x1cb)+_0x3d2485+_0x3bde84(0x1b7));try{await rpc[_0x3bde84(0x1cd)](),appLogger[_0x3bde84(0x1ca)](_0x3bde84(0x1d7));for(const _0x49470d of pm2Config[_0x3bde84(0x1ab)]){try{await pm2[_0x3bde84(0x1c4)](_0x49470d[_0x3bde84(0x1b4)]),appLogger[_0x3bde84(0x1ca)](_0x49470d[_0x3bde84(0x1b4)]+_0x3bde84(0x1d8));}catch(_0x2ebcd2){_0x2ebcd2[_0x3bde84(0x1a7)]!==_0x3bde84(0x1c8)&&(console[_0x3bde84(0x1b1)](_0x3bde84(0x1c7)+_0x49470d['name'],_0x2ebcd2),appLogger['error'](_0x3bde84(0x1c7)+_0x49470d[_0x3bde84(0x1b4)]+':\x20'+_0x2ebcd2[_0x3bde84(0x1a7)]+'\x0a'+_0x2ebcd2['stack']));}}console[_0x3bde84(0x1e0)]('\x0a*****\x20\x20\x20\x20\x20\x20\x20Stopped\x20and\x20removed\x20all\x20subprocesses\x20\x20\x20\x20\x20\x20*****\x0a\x0a\x0a'),getRedis()[_0x3bde84(0x1ad)](),appLogger[_0x3bde84(0x1ca)](_0x3bde84(0x1c3)),appLogger[_0x3bde84(0x1ca)]('App\x20shut\x20down');}catch(_0x597254){console[_0x3bde84(0x1b1)](_0x3bde84(0x1af),_0x597254),appLogger['error'](_0x3bde84(0x1c2)+_0x597254[_0x3bde84(0x1a7)]+'\x0a'+_0x597254[_0x3bde84(0x1e1)]);}},0x7d0,{'leading':!![]});!(cs['isProduction']||cs[a984_0x47ab4b(0x1bd)])?(process[a984_0x47ab4b(0x1d1)](a984_0x47ab4b(0x1cc),async function(){const _0x42d331=a984_0x47ab4b;await onServerExitHandler('SIGUSR2'),process[_0x42d331(0x1be)](process[_0x42d331(0x1d5)],_0x42d331(0x1cc));}),process['on'](a984_0x47ab4b(0x1d4),async function(){const _0x3009a6=a984_0x47ab4b;console[_0x3009a6(0x1e0)](_0x3009a6(0x1dd)),await onServerExitHandler('SIGINT'),process[_0x3009a6(0x1ce)](0x0);})):process['once'](a984_0x47ab4b(0x1d4),async function(){const _0xf39262=a984_0x47ab4b;console[_0xf39262(0x1e0)](_0xf39262(0x1e2)),await onServerExitHandler(_0xf39262(0x1d4)),process['exit'](0x0);});async function main(){const _0x157ed8=a984_0x47ab4b;try{console[_0x157ed8(0x1e0)](_0x157ed8(0x1c1)+(cs[_0x157ed8(0x1b3)]?'':_0x157ed8(0x1ac)));try{await mysqldb['db']['sequelize']['sync']({'logging':cs[_0x157ed8(0x1b3)]||cs[_0x157ed8(0x1e4)]===_0x157ed8(0x1c9)?![]:logDatabase});}catch(_0x2310ed){console['warn']('DB\x20Sync\x20Error:\x0a',_0x2310ed),queryLogger[_0x157ed8(0x1b1)](_0x157ed8(0x1a9)+_0x2310ed[_0x157ed8(0x1a7)]+',\x20'+_0x2310ed[_0x157ed8(0x1e1)]);}config['seedDB']===!![]&&(console['log'](_0x157ed8(0x1dc)),await seedDB(),console[_0x157ed8(0x1e0)](_0x157ed8(0x1ae)));await checkLicense();const _0x327f77=await rpc['listen']();appLogger[_0x157ed8(0x1d3)](_0x327f77),await chat[_0x157ed8(0x1b0)](),await whatsapp[_0x157ed8(0x1b0)](),await schedule[_0x157ed8(0x1b0)]();const _0x47e708=await transcribe[_0x157ed8(0x1b0)]();appLogger[_0x157ed8(0x1d3)](_0x47e708);const _0x391d5f=await pm2[_0x157ed8(0x1b0)](pm2Config);appLogger[_0x157ed8(0x1d3)]('Online\x20apps:',_[_0x157ed8(0x1e5)](_[_0x157ed8(0x1e3)](_0x391d5f,{'status':_0x157ed8(0x1bb)}),_0x157ed8(0x1b4))['join']()),appLogger['info'](_0x157ed8(0x1da),_[_0x157ed8(0x1e5)](_['filter'](_0x391d5f,function(_0x2778f6){const _0x199481=_0x157ed8;return _0x2778f6['status']!==_0x199481(0x1bb);}),'name')[_0x157ed8(0x1b6)]()||'None'),console[_0x157ed8(0x1e0)](_0x157ed8(0x1b2));}catch(_0x262807){console[_0x157ed8(0x1b1)](_0x262807),appLogger['error']('Server\x20failed\x20to\x20start\x20due\x20to\x20error:',_0x262807);throw _0x262807;}}main(); \ No newline at end of file diff --git a/server/components/auth/service.js b/server/components/auth/service.js index 3e1ba86..c8833e0 100644 --- a/server/components/auth/service.js +++ b/server/components/auth/service.js @@ -1 +1 @@ -const a985_0x506e=['Bearer','join','chatPause','decryptString','The\x20password\x20must\x20be\x20different\x20from\x20the\x20last\x20one.\x20Please\x20choose\x20another\x20one.','signToken','Forbidden.','allowmessenger','user','composable-middleware','format','internal','pass','redirect','secrets','User','passwordResetAt','util','faxPause','role','isAuthenticated','apiKeyIat','crypto','apiKeyNonce','HS512','isMiddleware','userProfileId','test','phoneBarDnd','verify','phoneBarRemoteControlPort','sign','openchannelPause','voicePause','length','query','sequelize','retrieveApiKey','lodash','phoneBarEnableDtmfTone','Unmanaged.','floor','ChatInteraction','toLowerCase','It\x20looks\x20like\x20you\x20aren\x27t\x20logged\x20in,\x20please\x20try\x20again.','pauseType','apikey','permissions','hex','startsWith','phoneBarAutoAnswer','Basic','getUuid','phoneBarExpires','secret','payload','closed','md5secret','showWebBar','params','disposition','isChatInteractionAuthorized','update','Unknown\x20authorization\x20format','canUpdate','motion.token','Forbidden','name','phoneBarRemoteControl','use','split','json','promisify','The\x20password\x20must\x20be\x20different\x20from\x20the\x20previous\x20%d\x20passwords.\x20Please\x20choose\x20another\x20one.','send','crudPermissions','userpic','../../config/license/hardware','Invalid\x20API\x20access\x20key','unshift','cookie','now','phoneBarPrefixRequired','generateApiKey','isEqual','exports','validatePasswordPattern','toString','catch','splice','validatePasswordHistory','lastPauseAt','nonce','mailPause','User\x20not\x20found.','phoneBarAutoAnswerDelay','isNil','lastLoginAt','regenerateApiKey','unmanaged','status','settingsEnabled','session','basic-auth','sub','randomBytes','Wrong\x20credentials.','authorization','API\x20access\x20key\x20is\x20not\x20valid\x20anymore','authenticate','then','headers','findOne','updatePasswordsHistory','express-jwt'];(function(_0x413b03,_0x4a8769){const _0x506e53=function(_0x27dee4){while(--_0x27dee4){_0x413b03['push'](_0x413b03['shift']());}};_0x506e53(++_0x4a8769);}(a985_0x506e,0x7d));const a985_0x27de=function(_0x413b03,_0x4a8769){_0x413b03=_0x413b03-0x1c2;let _0x506e53=a985_0x506e[_0x413b03];return _0x506e53;};const a985_0x5c37e5=a985_0x27de;'use strict';const {db}=require('../../mysqldb'),{ValidationError}=require(a985_0x5c37e5(0x1dc)),config=require('../../config/environment'),hardwareConf=require(a985_0x5c37e5(0x205)),licenseUtil=require('../../config/license/util'),encryptor=require('../encryptor'),util=require(a985_0x5c37e5(0x1c9)),_=require(a985_0x5c37e5(0x1de)),jwt=require('jsonwebtoken'),expressJwt=require(a985_0x5c37e5(0x22a)),compose=require(a985_0x5c37e5(0x234)),basicAuth=require(a985_0x5c37e5(0x21f)),crypto=require(a985_0x5c37e5(0x1ce)),validateJwt=expressJwt({'secret':config[a985_0x5c37e5(0x1c6)][a985_0x5c37e5(0x21e)],'algorithms':['HS256']}),userAttributes=['id',a985_0x5c37e5(0x1cb),'fullname',a985_0x5c37e5(0x1fb),a985_0x5c37e5(0x1c3),'email',a985_0x5c37e5(0x204),a985_0x5c37e5(0x1e7),a985_0x5c37e5(0x1f1),a985_0x5c37e5(0x1d9),a985_0x5c37e5(0x22d),a985_0x5c37e5(0x215),a985_0x5c37e5(0x1ca),'smsPause',a985_0x5c37e5(0x1d8),a985_0x5c37e5(0x1e5),a985_0x5c37e5(0x1f2),a985_0x5c37e5(0x219),a985_0x5c37e5(0x213),a985_0x5c37e5(0x203),a985_0x5c37e5(0x232),a985_0x5c37e5(0x1c8),'alias',a985_0x5c37e5(0x1ea),a985_0x5c37e5(0x217),a985_0x5c37e5(0x1d4),'phoneBarEnableRecording',a985_0x5c37e5(0x1df),'phoneBarEnableSettings',a985_0x5c37e5(0x1ed),a985_0x5c37e5(0x20a),a985_0x5c37e5(0x1fc),a985_0x5c37e5(0x1d6),'hotdesk','interface',a985_0x5c37e5(0x1d2),a985_0x5c37e5(0x21d)];function isChatInteractionAuthorized(){const _0x2b4b86=a985_0x5c37e5;return this[_0x2b4b86(0x1cc)](!![])['use'](function(_0x26a4ad,_0x3c0f82,_0x50a564){const _0x106ee7=_0x2b4b86;if(_0x26a4ad[_0x106ee7(0x233)])_0x50a564();else return db[_0x106ee7(0x1e2)][_0x106ee7(0x228)]({'where':{'id':_0x26a4ad[_0x106ee7(0x1f3)]['id']},'attributes':['id',_0x106ee7(0x1f0),_0x106ee7(0x1f4)],'raw':!![]})[_0x106ee7(0x226)](function(_0x8f15d1){const _0x5251ea=_0x106ee7;if(_0x8f15d1&&_0x8f15d1[_0x5251ea(0x1f0)])return _0x3c0f82[_0x5251ea(0x21c)](_0x8f15d1[_0x5251ea(0x1f4)]===_0x5251ea(0x21b)?0x195:0x193)['json']({'message':_0x8f15d1['disposition']===_0x5251ea(0x21b)?_0x5251ea(0x1e0):_0x5251ea(0x231)});else _0x50a564();})[_0x106ee7(0x210)](function(_0x5de225){_0x50a564(_0x5de225);});});}function isAuthenticated(_0x57f646){const _0x5d6471=a985_0x5c37e5;return compose()[_0x5d6471(0x1fd)](function(_0x2610a6,_0x25ca1f,_0x5b2640){const _0x4e5b88=_0x5d6471;if(_0x2610a6[_0x4e5b88(0x227)][_0x4e5b88(0x223)]){if(_['startsWith'](_0x2610a6['headers'][_0x4e5b88(0x223)],_0x4e5b88(0x1eb))){const _0x2e95c7=basicAuth(_0x2610a6);db[_0x4e5b88(0x1c7)][_0x4e5b88(0x228)]({'where':{'name':_0x2e95c7[_0x4e5b88(0x1fb)]}})[_0x4e5b88(0x226)](function(_0x44654d){const _0x51da63=_0x4e5b88;if(!_0x44654d||!_0x44654d[_0x51da63(0x225)](_0x2e95c7[_0x51da63(0x1c4)]))return _0x25ca1f[_0x51da63(0x21c)](0x191)[_0x51da63(0x1ff)]({'message':_0x51da63(0x222)});_0x2610a6['user']={'id':_0x44654d['id']},_0x5b2640();})[_0x4e5b88(0x210)](function(_0x1212e1){_0x5b2640(_0x1212e1);});}else{if(_[_0x4e5b88(0x1e9)](_0x2610a6[_0x4e5b88(0x227)][_0x4e5b88(0x223)],_0x4e5b88(0x22b)))validateJwt(_0x2610a6,_0x25ca1f,_0x5b2640);else{if(_0x57f646)_0x5b2640();else return _0x25ca1f['status'](0x193)[_0x4e5b88(0x1ff)]({'message':_0x4e5b88(0x1f7)});}}}else{if(_0x2610a6['query'][_0x4e5b88(0x1e6)])try{const _0x5775e0={'audience':hardwareConf[_0x4e5b88(0x1ec)](),'issuer':hardwareConf[_0x4e5b88(0x1ec)]()};verifyJwt(_0x2610a6[_0x4e5b88(0x1db)][_0x4e5b88(0x1e6)],_0x5775e0)[_0x4e5b88(0x226)](function(_0x5c7377){const _0xc7cbe0=_0x4e5b88;return db[_0xc7cbe0(0x1c7)]['findOne']({'where':{'id':_0x5c7377[_0xc7cbe0(0x220)]}})[_0xc7cbe0(0x226)](function(_0x37143a){const _0x1d67e0=_0xc7cbe0;if(!_0x37143a||!_[_0x1d67e0(0x20c)](_0x37143a[_0x1d67e0(0x1cf)],_0x5c7377[_0x1d67e0(0x214)]))return _0x25ca1f['status'](0x191)[_0x1d67e0(0x1ff)]({'message':_0x1d67e0(0x224)});_0x2610a6[_0x1d67e0(0x233)]={'id':_0x37143a['id']},_0x5b2640();});})['catch'](function(){const _0xc42d18=_0x4e5b88;return _0x25ca1f['status'](0x191)[_0xc42d18(0x1ff)]({'message':_0xc42d18(0x206)});});}catch(_0x401da4){_0x5b2640(_0x401da4);}else{if(_0x57f646)_0x5b2640();else return _0x25ca1f[_0x4e5b88(0x21c)](0x193)[_0x4e5b88(0x1ff)]({'message':'Unknown\x20authorization\x20format'});}}})['use'](function(_0x34d442,_0x1ad166,_0x459e24){const _0x2e6c59=_0x5d6471;if(_0x34d442['user'])db[_0x2e6c59(0x1c7)][_0x2e6c59(0x228)]({'where':{'id':_0x34d442[_0x2e6c59(0x233)]['id']},'attributes':userAttributes})['then'](function(_0x468758){const _0x303550=_0x2e6c59;if(!_0x468758)return _0x1ad166['status'](0x194)[_0x303550(0x1ff)]({'message':_0x303550(0x216)});_0x34d442[_0x303550(0x233)]=_0x468758,_0x459e24();})['catch'](function(_0x3c4b0f){_0x459e24(_0x3c4b0f);});else{if(_0x57f646)_0x459e24();else return _0x1ad166[_0x2e6c59(0x21c)](0x194)['json']({'message':'User\x20object\x20not\x20found.'});}});}function canUpdate(){const _0x3f402e=a985_0x5c37e5;return compose()[_0x3f402e(0x1fd)](function(_0x529c60,_0x29b620,_0xed8f38){const _0x3e9612=_0x3f402e;return licenseUtil['getLicense']()[_0x3e9612(0x226)](function(_0x346551){const _0x2afb68=_0x3e9612;if(_0x346551[_0x2afb68(0x1f6)])_0xed8f38();else return _0x29b620[_0x2afb68(0x21c)](0x193)[_0x2afb68(0x1ff)]({'message':_0x2afb68(0x1fa)});})[_0x3e9612(0x210)](function(_0x18923a){_0xed8f38(_0x18923a);});});}function isMiddleware(_0x43b70e,_0x88c010,_0x3bd477){const _0x35c8e3=a985_0x5c37e5;return _0x43b70e[_0x35c8e3(0x1d1)]=!![],_0x3bd477();}function signToken(_0x30a145){return signJwt(_0x30a145);}function setTokenCookie(_0x25a015,_0xe7a90c){const _0x3d451c=a985_0x5c37e5;if(!_0x25a015[_0x3d451c(0x233)])return _0xe7a90c[_0x3d451c(0x21c)](0x194)[_0x3d451c(0x1ff)]({'message':_0x3d451c(0x1e4)});const _0x273ef5={'payload':{'id':_0x25a015[_0x3d451c(0x233)]['id'],'role':_0x25a015[_0x3d451c(0x233)][_0x3d451c(0x1cb)]},'options':{'expiresIn':0x15180}};return signJwt(_0x273ef5)[_0x3d451c(0x226)](function(_0x4eed0b){const _0xa07d24=_0x3d451c;_0xe7a90c[_0xa07d24(0x208)](_0xa07d24(0x1f9),_0x4eed0b),_0xe7a90c[_0xa07d24(0x1c5)]('/dashboards/general');})['catch'](function(_0x40a3bd){const _0x1330b1=_0x3d451c;return _0xe7a90c['status'](0x1f4)[_0x1330b1(0x202)](_0x40a3bd);});}function retrieveApiKey(_0x4ecec7){const _0x33e0fc=a985_0x5c37e5;return _[_0x33e0fc(0x218)](_0x4ecec7['apiKeyNonce'])||_['isNil'](_0x4ecec7[_0x33e0fc(0x1cd)])?null:createJwt(_0x4ecec7);}function generateApiKey(_0x39e8f2){const _0x222e0f=a985_0x5c37e5;return _0x39e8f2['apiKeyNonce']=generateNonce(),_0x39e8f2[_0x222e0f(0x1cd)]=generateIssuedAt(),createJwt(_0x39e8f2);}function regenerateApiKey(_0x3c0786,_0x54d870){const _0x35d320=a985_0x5c37e5,_0x30b852=_0x3c0786['query'][_0x35d320(0x1e6)];if(_0x30b852){const _0x5a1f29={'nonce':_0x54d870['apiKeyNonce'],'iat':_0x54d870[_0x35d320(0x1cd)],'audience':hardwareConf[_0x35d320(0x1ec)](),'issuer':hardwareConf[_0x35d320(0x1ec)]()};return verifyJwt(_0x30b852,_0x5a1f29)['then'](function(){return generateApiKey(_0x54d870);});}else throw{'message':'Please\x20use\x20the\x20previous\x20API\x20access\x20key\x20to\x20generate\x20a\x20new\x20one'};}function validatePasswordPattern(_0x5a9e27){const _0x1e4cc5=a985_0x5c37e5,_0x4e666a=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/);if(!_0x4e666a[_0x1e4cc5(0x1d3)](_0x5a9e27))throw new ValidationError('The\x20password\x20must\x20be\x20at\x20least\x208\x20characters\x20long\x20and\x20have\x201\x20lowercase\x20character,\x201\x20uppercase\x20character,\x201\x20number\x20and\x201\x20special\x20character\x20~!@#$%^&-_=+[{]}.');return;}function validatePasswordHistory(_0x462152,_0x35978c,_0x2213be){const _0x19a6d5=a985_0x5c37e5,_0x42fd8e=encryptor[_0x19a6d5(0x22e)](_0x35978c)[_0x19a6d5(0x1fe)](',');for(let _0x157f2e=0x0;_0x157f2e<_0x2213be;_0x157f2e++){if(!_0x42fd8e[_0x157f2e])break;if(_0x462152[_0x19a6d5(0x1e3)]()===_0x42fd8e[_0x157f2e]['toLowerCase']()){let _0x281aaf=util[_0x19a6d5(0x1c2)](_0x19a6d5(0x201),_0x2213be);_0x2213be===0x1&&(_0x281aaf=_0x19a6d5(0x22f));throw new ValidationError(_0x281aaf);}}return;}function updatePasswordsHistory(_0x4a7c54,_0x21a76f){const _0x1b19d4=a985_0x5c37e5,_0x6858fb=_0x21a76f?encryptor[_0x1b19d4(0x22e)](_0x21a76f)[_0x1b19d4(0x1fe)](','):[];return _0x6858fb[_0x1b19d4(0x1da)]===0x5&&_0x6858fb[_0x1b19d4(0x211)](-0x1,0x1),_0x6858fb[_0x1b19d4(0x207)](_0x4a7c54),encryptor['encryptString'](_0x6858fb[_0x1b19d4(0x22c)](','));}function signJwt(_0x2c8ce4){const _0x241be0=a985_0x5c37e5,_0xdeea6e=util[_0x241be0(0x200)](jwt[_0x241be0(0x1d7)],{'context':jwt}),_0x5a3497=_0x2c8ce4[_0x241be0(0x1ee)]||config[_0x241be0(0x1c6)]['session'];return new Promise(function(_0x111cf0,_0x569dcc){const _0x27504f=_0x241be0;_0xdeea6e(_0x2c8ce4[_0x27504f(0x1ef)],_0x5a3497,_0x2c8ce4['options'])[_0x27504f(0x226)](function(_0x4bd5d8){_0x111cf0(_0x4bd5d8);})['catch'](function(_0x5f06da){_0x569dcc(_0x5f06da);});});}function verifyJwt(_0x4c5ff4,_0x2e1f0d,_0x40752a){const _0x37589d=a985_0x5c37e5,_0x5b5347=util[_0x37589d(0x200)](jwt[_0x37589d(0x1d5)],{'context':jwt}),_0x3d7fec=_0x40752a||config[_0x37589d(0x1c6)][_0x37589d(0x21e)];return new Promise(function(_0x321988,_0x26260f){const _0x32ed40=_0x37589d;_0x5b5347(_0x4c5ff4,_0x3d7fec,_0x2e1f0d)[_0x32ed40(0x226)](function(_0x4bfb59){_0x321988(_0x4bfb59);})[_0x32ed40(0x210)](function(_0x43d679){_0x26260f(_0x43d679);});});}function generateNonce(){const _0x2d6606=a985_0x5c37e5;return crypto[_0x2d6606(0x221)](0x10)[_0x2d6606(0x20f)](_0x2d6606(0x1e8));}function generateIssuedAt(){const _0x1e684b=a985_0x5c37e5;return Math[_0x1e684b(0x1e1)](Date[_0x1e684b(0x209)]()/0x3e8)['toString']();}function createJwt(_0x41d041){const _0x150d1e=a985_0x5c37e5,_0x5c83d2={'payload':{'iat':_0x41d041[_0x150d1e(0x1cd)],'nonce':_0x41d041[_0x150d1e(0x1cf)]},'options':{'algorithm':_0x150d1e(0x1d0),'subject':_0x41d041['id'][_0x150d1e(0x20f)](),'issuer':hardwareConf['getUuid'](),'audience':hardwareConf[_0x150d1e(0x1ec)]()}};return signJwt(_0x5c83d2)[_0x150d1e(0x226)](function(_0x46eb5a){const _0x4be3e0=_0x150d1e;return{'iat':_0x41d041['apiKeyIat'],'nonce':_0x41d041[_0x4be3e0(0x1cf)],'token':_0x46eb5a};});}module[a985_0x5c37e5(0x20d)][a985_0x5c37e5(0x1f5)]=isChatInteractionAuthorized,module['exports']['isAuthenticated']=isAuthenticated,module[a985_0x5c37e5(0x20d)][a985_0x5c37e5(0x1f8)]=canUpdate,module[a985_0x5c37e5(0x20d)]['isMiddleware']=isMiddleware,module[a985_0x5c37e5(0x20d)][a985_0x5c37e5(0x230)]=signToken,module[a985_0x5c37e5(0x20d)]['setTokenCookie']=setTokenCookie,module[a985_0x5c37e5(0x20d)][a985_0x5c37e5(0x1dd)]=retrieveApiKey,module['exports'][a985_0x5c37e5(0x20b)]=generateApiKey,module[a985_0x5c37e5(0x20d)][a985_0x5c37e5(0x21a)]=regenerateApiKey,module[a985_0x5c37e5(0x20d)][a985_0x5c37e5(0x20e)]=validatePasswordPattern,module[a985_0x5c37e5(0x20d)][a985_0x5c37e5(0x212)]=validatePasswordHistory,module[a985_0x5c37e5(0x20d)][a985_0x5c37e5(0x229)]=updatePasswordsHistory; \ No newline at end of file +const a985_0x3956=['allowmessenger','API\x20access\x20key\x20is\x20not\x20valid\x20anymore','interface','role','headers','userpic','isChatInteractionAuthorized','json','phoneBarEnableDtmfTone','User','../../config/environment','crypto','ChatInteraction','motion.token','isAuthenticated','apikey','lastLoginAt','alias','isMiddleware','validatePasswordHistory','apiKeyIat','exports','hotdesk','now','join','phoneBarEnableSettings','signToken','express-jwt','basic-auth','generateApiKey','randomBytes','format','startsWith','unmanaged','../encryptor','sign','Unknown\x20authorization\x20format','composable-middleware','validatePasswordPattern','lastPauseAt','sub','getUuid','The\x20password\x20must\x20be\x20different\x20from\x20the\x20previous\x20%d\x20passwords.\x20Please\x20choose\x20another\x20one.','passwordResetAt','phoneBarDnd','secret','phoneBarAutoAnswerDelay','length','floor','secrets','toLowerCase','phoneBarEnableRecording','Wrong\x20credentials.','user','isEqual','sequelize','settingsEnabled','options','Basic','verify','closed','disposition','status','toString','pass','apiKeyNonce','regenerateApiKey','../../config/license/hardware','split','catch','../../config/license/util','HS512','md5secret','use','query','chatPause','fullname','isNil','promisify','jsonwebtoken','phoneBarRemoteControl','session','pauseType','setTokenCookie','util','crudPermissions','HS256','permissions','getLicense','smsPause','decryptString','payload','showWebBar','updatePasswordsHistory','../../mysqldb','then','unshift','findOne','update','send','phoneBarRemoteControlPort','authenticate','lodash','test'];(function(_0x514939,_0x42b236){const _0x395605=function(_0x53ec12){while(--_0x53ec12){_0x514939['push'](_0x514939['shift']());}};_0x395605(++_0x42b236);}(a985_0x3956,0x124));const a985_0x53ec=function(_0x514939,_0x42b236){_0x514939=_0x514939-0xe3;let _0x395605=a985_0x3956[_0x514939];return _0x395605;};const a985_0x2db39a=a985_0x53ec;'use strict';const {db}=require(a985_0x2db39a(0xed)),{ValidationError}=require(a985_0x2db39a(0x12e)),config=require(a985_0x2db39a(0x101)),hardwareConf=require(a985_0x2db39a(0x13a)),licenseUtil=require(a985_0x2db39a(0x13d)),encryptor=require(a985_0x2db39a(0x119)),util=require(a985_0x2db39a(0xe3)),_=require(a985_0x2db39a(0xf5)),jwt=require(a985_0x2db39a(0x146)),expressJwt=require(a985_0x2db39a(0x112)),compose=require(a985_0x2db39a(0x11c)),basicAuth=require(a985_0x2db39a(0x113)),crypto=require(a985_0x2db39a(0x102)),validateJwt=expressJwt({'secret':config[a985_0x2db39a(0x128)][a985_0x2db39a(0x148)],'algorithms':[a985_0x2db39a(0xe5)]}),userAttributes=['id',a985_0x2db39a(0xfa),a985_0x2db39a(0x143),'name','internal','email',a985_0x2db39a(0xfc),a985_0x2db39a(0xe6),a985_0x2db39a(0x13f),'voicePause',a985_0x2db39a(0x142),'mailPause','faxPause',a985_0x2db39a(0xe8),'openchannelPause',a985_0x2db39a(0x149),a985_0x2db39a(0xeb),a985_0x2db39a(0x107),a985_0x2db39a(0x11e),a985_0x2db39a(0xe4),a985_0x2db39a(0xf7),a985_0x2db39a(0x122),a985_0x2db39a(0x108),'phoneBarAutoAnswer',a985_0x2db39a(0x125),a985_0x2db39a(0x123),a985_0x2db39a(0x12a),a985_0x2db39a(0xff),a985_0x2db39a(0x110),'phoneBarExpires','phoneBarPrefixRequired',a985_0x2db39a(0x147),a985_0x2db39a(0xf3),a985_0x2db39a(0x10d),a985_0x2db39a(0xf9),'userProfileId',a985_0x2db39a(0x12f)];function isChatInteractionAuthorized(){const _0x307f52=a985_0x2db39a;return this[_0x307f52(0x105)](!![])[_0x307f52(0x140)](function(_0x312ef1,_0x2472b7,_0x4defa3){const _0xb8e9d4=_0x307f52;if(_0x312ef1[_0xb8e9d4(0x12c)])_0x4defa3();else return db[_0xb8e9d4(0x103)][_0xb8e9d4(0xf0)]({'where':{'id':_0x312ef1['params']['id']},'attributes':['id',_0xb8e9d4(0x133),_0xb8e9d4(0x134)],'raw':!![]})[_0xb8e9d4(0xee)](function(_0x3fa219){const _0x4d0ea1=_0xb8e9d4;if(_0x3fa219&&_0x3fa219[_0x4d0ea1(0x133)])return _0x2472b7[_0x4d0ea1(0x135)](_0x3fa219[_0x4d0ea1(0x134)]===_0x4d0ea1(0x118)?0x195:0x193)[_0x4d0ea1(0xfe)]({'message':_0x3fa219[_0x4d0ea1(0x134)]===_0x4d0ea1(0x118)?'Unmanaged.':'Forbidden.'});else _0x4defa3();})[_0xb8e9d4(0x13c)](function(_0x2de0ec){_0x4defa3(_0x2de0ec);});});}function isAuthenticated(_0x64655e){const _0x3e4ef6=a985_0x2db39a;return compose()[_0x3e4ef6(0x140)](function(_0x495425,_0x38bbbf,_0x1943d3){const _0x3edf79=_0x3e4ef6;if(_0x495425[_0x3edf79(0xfb)]['authorization']){if(_[_0x3edf79(0x117)](_0x495425['headers']['authorization'],_0x3edf79(0x131))){const _0x45edd6=basicAuth(_0x495425);db[_0x3edf79(0x100)][_0x3edf79(0xf0)]({'where':{'name':_0x45edd6['name']}})[_0x3edf79(0xee)](function(_0x383992){const _0x4fb7a5=_0x3edf79;if(!_0x383992||!_0x383992[_0x4fb7a5(0xf4)](_0x45edd6[_0x4fb7a5(0x137)]))return _0x38bbbf['status'](0x191)['json']({'message':_0x4fb7a5(0x12b)});_0x495425['user']={'id':_0x383992['id']},_0x1943d3();})['catch'](function(_0x90ff36){_0x1943d3(_0x90ff36);});}else{if(_[_0x3edf79(0x117)](_0x495425[_0x3edf79(0xfb)]['authorization'],'Bearer'))validateJwt(_0x495425,_0x38bbbf,_0x1943d3);else{if(_0x64655e)_0x1943d3();else return _0x38bbbf[_0x3edf79(0x135)](0x193)['json']({'message':_0x3edf79(0x11b)});}}}else{if(_0x495425[_0x3edf79(0x141)][_0x3edf79(0x106)])try{const _0x5bdf36={'audience':hardwareConf[_0x3edf79(0x120)](),'issuer':hardwareConf[_0x3edf79(0x120)]()};verifyJwt(_0x495425[_0x3edf79(0x141)]['apikey'],_0x5bdf36)[_0x3edf79(0xee)](function(_0x56b66e){const _0x422484=_0x3edf79;return db[_0x422484(0x100)][_0x422484(0xf0)]({'where':{'id':_0x56b66e[_0x422484(0x11f)]}})[_0x422484(0xee)](function(_0x3c686c){const _0x371d70=_0x422484;if(!_0x3c686c||!_[_0x371d70(0x12d)](_0x3c686c['apiKeyNonce'],_0x56b66e['nonce']))return _0x38bbbf[_0x371d70(0x135)](0x191)[_0x371d70(0xfe)]({'message':_0x371d70(0xf8)});_0x495425['user']={'id':_0x3c686c['id']},_0x1943d3();});})[_0x3edf79(0x13c)](function(){const _0x1c21de=_0x3edf79;return _0x38bbbf['status'](0x191)[_0x1c21de(0xfe)]({'message':'Invalid\x20API\x20access\x20key'});});}catch(_0x5199d8){_0x1943d3(_0x5199d8);}else{if(_0x64655e)_0x1943d3();else return _0x38bbbf[_0x3edf79(0x135)](0x193)[_0x3edf79(0xfe)]({'message':_0x3edf79(0x11b)});}}})[_0x3e4ef6(0x140)](function(_0x8a2146,_0xa638db,_0x48344c){const _0x4f8390=_0x3e4ef6;if(_0x8a2146[_0x4f8390(0x12c)])db[_0x4f8390(0x100)][_0x4f8390(0xf0)]({'where':{'id':_0x8a2146[_0x4f8390(0x12c)]['id']},'attributes':userAttributes})['then'](function(_0x5311ae){if(!_0x5311ae)return _0xa638db['status'](0x194)['json']({'message':'User\x20not\x20found.'});_0x8a2146['user']=_0x5311ae,_0x48344c();})['catch'](function(_0x57d023){_0x48344c(_0x57d023);});else{if(_0x64655e)_0x48344c();else return _0xa638db[_0x4f8390(0x135)](0x194)[_0x4f8390(0xfe)]({'message':'User\x20object\x20not\x20found.'});}});}function canUpdate(){return compose()['use'](function(_0x481944,_0x48865c,_0x14c7b1){const _0x1c3c6b=a985_0x53ec;return licenseUtil[_0x1c3c6b(0xe7)]()[_0x1c3c6b(0xee)](function(_0x2fd48d){const _0x4195f0=_0x1c3c6b;if(_0x2fd48d[_0x4195f0(0xf1)])_0x14c7b1();else return _0x48865c['status'](0x193)[_0x4195f0(0xfe)]({'message':'Forbidden'});})[_0x1c3c6b(0x13c)](function(_0x79c4ac){_0x14c7b1(_0x79c4ac);});});}function isMiddleware(_0x54baba,_0x29ac7d,_0x490dde){const _0x44dc41=a985_0x2db39a;return _0x54baba[_0x44dc41(0x109)]=!![],_0x490dde();}function signToken(_0x2767bc){return signJwt(_0x2767bc);}function setTokenCookie(_0x1f85d1,_0x2e592){const _0x3c39db=a985_0x2db39a;if(!_0x1f85d1[_0x3c39db(0x12c)])return _0x2e592[_0x3c39db(0x135)](0x194)[_0x3c39db(0xfe)]({'message':'It\x20looks\x20like\x20you\x20aren\x27t\x20logged\x20in,\x20please\x20try\x20again.'});const _0x551469={'payload':{'id':_0x1f85d1[_0x3c39db(0x12c)]['id'],'role':_0x1f85d1[_0x3c39db(0x12c)][_0x3c39db(0xfa)]},'options':{'expiresIn':0x15180}};return signJwt(_0x551469)['then'](function(_0x3566e0){const _0x37bf65=_0x3c39db;_0x2e592['cookie'](_0x37bf65(0x104),_0x3566e0),_0x2e592['redirect']('/dashboards/general');})['catch'](function(_0x476858){const _0x152c3b=_0x3c39db;return _0x2e592[_0x152c3b(0x135)](0x1f4)[_0x152c3b(0xf2)](_0x476858);});}function retrieveApiKey(_0x329b85){const _0x3b4e7d=a985_0x2db39a;return _['isNil'](_0x329b85[_0x3b4e7d(0x138)])||_[_0x3b4e7d(0x144)](_0x329b85[_0x3b4e7d(0x10b)])?null:createJwt(_0x329b85);}function generateApiKey(_0x39ccef){return _0x39ccef['apiKeyNonce']=generateNonce(),_0x39ccef['apiKeyIat']=generateIssuedAt(),createJwt(_0x39ccef);}function regenerateApiKey(_0x439353,_0x18ebb9){const _0x2c94ad=a985_0x2db39a,_0x438014=_0x439353[_0x2c94ad(0x141)][_0x2c94ad(0x106)];if(_0x438014){const _0x30b04d={'nonce':_0x18ebb9[_0x2c94ad(0x138)],'iat':_0x18ebb9[_0x2c94ad(0x10b)],'audience':hardwareConf[_0x2c94ad(0x120)](),'issuer':hardwareConf[_0x2c94ad(0x120)]()};return verifyJwt(_0x438014,_0x30b04d)[_0x2c94ad(0xee)](function(){return generateApiKey(_0x18ebb9);});}else throw{'message':'Please\x20use\x20the\x20previous\x20API\x20access\x20key\x20to\x20generate\x20a\x20new\x20one'};}function validatePasswordPattern(_0x448271){const _0x3ea63c=a985_0x2db39a,_0x38fec3=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/);if(!_0x38fec3[_0x3ea63c(0xf6)](_0x448271))throw new ValidationError('The\x20password\x20must\x20be\x20at\x20least\x208\x20characters\x20long\x20and\x20have\x201\x20lowercase\x20character,\x201\x20uppercase\x20character,\x201\x20number\x20and\x201\x20special\x20character\x20~!@#$%^&-_=+[{]}.');return;}function validatePasswordHistory(_0x255698,_0x420aec,_0x38be90){const _0x26354f=a985_0x2db39a,_0x7c3b21=encryptor['decryptString'](_0x420aec)[_0x26354f(0x13b)](',');for(let _0x363759=0x0;_0x363759<_0x38be90;_0x363759++){if(!_0x7c3b21[_0x363759])break;if(_0x255698[_0x26354f(0x129)]()===_0x7c3b21[_0x363759]['toLowerCase']()){let _0x1d7483=util[_0x26354f(0x116)](_0x26354f(0x121),_0x38be90);_0x38be90===0x1&&(_0x1d7483='The\x20password\x20must\x20be\x20different\x20from\x20the\x20last\x20one.\x20Please\x20choose\x20another\x20one.');throw new ValidationError(_0x1d7483);}}return;}function updatePasswordsHistory(_0x59c927,_0x513692){const _0x17df13=a985_0x2db39a,_0x14c468=_0x513692?encryptor[_0x17df13(0xe9)](_0x513692)[_0x17df13(0x13b)](','):[];return _0x14c468[_0x17df13(0x126)]===0x5&&_0x14c468['splice'](-0x1,0x1),_0x14c468[_0x17df13(0xef)](_0x59c927),encryptor['encryptString'](_0x14c468[_0x17df13(0x10f)](','));}function signJwt(_0x568916){const _0x4e44de=a985_0x2db39a,_0x101598=util[_0x4e44de(0x145)](jwt[_0x4e44de(0x11a)],{'context':jwt}),_0x533a66=_0x568916[_0x4e44de(0x124)]||config['secrets']['session'];return new Promise(function(_0x19e614,_0x540912){const _0x42a48e=_0x4e44de;_0x101598(_0x568916[_0x42a48e(0xea)],_0x533a66,_0x568916[_0x42a48e(0x130)])[_0x42a48e(0xee)](function(_0x5f0b91){_0x19e614(_0x5f0b91);})['catch'](function(_0x2910e7){_0x540912(_0x2910e7);});});}function verifyJwt(_0x510ff2,_0x43e23f,_0x18666e){const _0xd159a1=a985_0x2db39a,_0xcc5ceb=util[_0xd159a1(0x145)](jwt[_0xd159a1(0x132)],{'context':jwt}),_0x402c4a=_0x18666e||config[_0xd159a1(0x128)][_0xd159a1(0x148)];return new Promise(function(_0x176ed0,_0x17b523){const _0x1322d4=_0xd159a1;_0xcc5ceb(_0x510ff2,_0x402c4a,_0x43e23f)[_0x1322d4(0xee)](function(_0x4c0c7a){_0x176ed0(_0x4c0c7a);})[_0x1322d4(0x13c)](function(_0x189cb2){_0x17b523(_0x189cb2);});});}function generateNonce(){const _0x2a093b=a985_0x2db39a;return crypto[_0x2a093b(0x115)](0x10)[_0x2a093b(0x136)]('hex');}function generateIssuedAt(){const _0x35493c=a985_0x2db39a;return Math[_0x35493c(0x127)](Date[_0x35493c(0x10e)]()/0x3e8)[_0x35493c(0x136)]();}function createJwt(_0x471bf4){const _0x194be8=a985_0x2db39a,_0x147fc0={'payload':{'iat':_0x471bf4[_0x194be8(0x10b)],'nonce':_0x471bf4['apiKeyNonce']},'options':{'algorithm':_0x194be8(0x13e),'subject':_0x471bf4['id']['toString'](),'issuer':hardwareConf[_0x194be8(0x120)](),'audience':hardwareConf[_0x194be8(0x120)]()}};return signJwt(_0x147fc0)[_0x194be8(0xee)](function(_0x9e5614){const _0xee0ece=_0x194be8;return{'iat':_0x471bf4[_0xee0ece(0x10b)],'nonce':_0x471bf4['apiKeyNonce'],'token':_0x9e5614};});}module[a985_0x2db39a(0x10c)][a985_0x2db39a(0xfd)]=isChatInteractionAuthorized,module['exports'][a985_0x2db39a(0x105)]=isAuthenticated,module[a985_0x2db39a(0x10c)]['canUpdate']=canUpdate,module[a985_0x2db39a(0x10c)][a985_0x2db39a(0x109)]=isMiddleware,module['exports'][a985_0x2db39a(0x111)]=signToken,module['exports'][a985_0x2db39a(0x14a)]=setTokenCookie,module[a985_0x2db39a(0x10c)]['retrieveApiKey']=retrieveApiKey,module['exports'][a985_0x2db39a(0x114)]=generateApiKey,module[a985_0x2db39a(0x10c)][a985_0x2db39a(0x139)]=regenerateApiKey,module['exports'][a985_0x2db39a(0x11d)]=validatePasswordPattern,module[a985_0x2db39a(0x10c)][a985_0x2db39a(0x10a)]=validatePasswordHistory,module['exports'][a985_0x2db39a(0xec)]=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 a300469..3ee8906 100644 --- a/server/components/encryptor/create-cypher-fallback.js +++ b/server/components/encryptor/create-cypher-fallback.js @@ -1 +1 @@ -const a986_0x2843=['crypto','createCypherFallback','repeat','exports','hex','Missing\x20passphrase','test','message','from','min','Missing\x20cipher','length','slice','update'];(function(_0x5316ad,_0x2a4c8e){const _0x284370=function(_0x2e0cd7){while(--_0x2e0cd7){_0x5316ad['push'](_0x5316ad['shift']());}};_0x284370(++_0x2a4c8e);}(a986_0x2843,0x16f));const a986_0x2e0c=function(_0x5316ad,_0x2a4c8e){_0x5316ad=_0x5316ad-0xbf;let _0x284370=a986_0x2843[_0x5316ad];return _0x284370;};const a986_0x1841d0=a986_0x2e0c;'use strict';const {createCipheriv,createHash}=require(a986_0x1841d0(0xca));function sizes(_0xf4e1a3){const _0x311e47=a986_0x1841d0;for(let _0x1ad270=0x1,_0x13753b=0x0;;){try{return createCipheriv(_0xf4e1a3,'.'[_0x311e47(0xcc)](_0x1ad270),'.'[_0x311e47(0xcc)](_0x13753b)),[_0x1ad270,_0x13753b];}catch(_0xde22fb){if(/invalid iv length/i[_0x311e47(0xc2)](_0xde22fb[_0x311e47(0xc3)]))_0x13753b+=0x1;else{if(/invalid key length/i[_0x311e47(0xc2)](_0xde22fb[_0x311e47(0xc3)]))_0x1ad270+=0x1;else throw _0xde22fb;}}}}function compute(_0x3c38de,_0x1f1093){const _0x286a03=a986_0x1841d0;let [_0x32f71e,_0x3116e4]=sizes(_0x3c38de);for(let _0x3b1eb4='',_0x43d181='',_0x2c3ff6='';;){const _0x281394=createHash('md5');_0x281394[_0x286a03(0xc9)](_0x2c3ff6,'hex'),_0x281394[_0x286a03(0xc9)](_0x1f1093),_0x2c3ff6=_0x281394['digest'](_0x286a03(0xc0));let _0x1a1b8a=0x0,_0x46b160=0x0;_0x1a1b8a=Math['min'](_0x2c3ff6['length']-_0x46b160,0x2*_0x32f71e),(_0x32f71e-=_0x1a1b8a/0x2,_0x3b1eb4+=_0x2c3ff6[_0x286a03(0xc8)](_0x46b160,_0x46b160+_0x1a1b8a),_0x46b160+=_0x1a1b8a),_0x1a1b8a=Math[_0x286a03(0xc5)](_0x2c3ff6[_0x286a03(0xc7)]-_0x46b160,0x2*_0x3116e4),(_0x3116e4-=_0x1a1b8a/0x2,_0x43d181+=_0x2c3ff6[_0x286a03(0xc8)](_0x46b160,_0x46b160+_0x1a1b8a),_0x46b160+=_0x1a1b8a);if(_0x32f71e+_0x3116e4===0x0)return[_0x3b1eb4,_0x43d181];}}function createCypherFallback(_0x2125e1,_0x28b9b3){const _0x53aa6b=a986_0x1841d0;if(!_0x2125e1)throw new Error(_0x53aa6b(0xc6));if(!_0x28b9b3)throw new Error(_0x53aa6b(0xc1));const [_0x15c8c1,_0x4e3a59]=compute(_0x2125e1,_0x28b9b3);return{'key':Buffer[_0x53aa6b(0xc4)](_0x15c8c1,_0x53aa6b(0xc0)),'iv':Buffer[_0x53aa6b(0xc4)](_0x4e3a59,_0x53aa6b(0xc0))};}module[a986_0x1841d0(0xbf)][a986_0x1841d0(0xcb)]=createCypherFallback; \ No newline at end of file +const a986_0x2246=['from','md5','exports','message','slice','createCypherFallback','repeat','length','update','digest','crypto','test','hex','min'];(function(_0x57b4fa,_0x1189d0){const _0x2246d5=function(_0x399e09){while(--_0x399e09){_0x57b4fa['push'](_0x57b4fa['shift']());}};_0x2246d5(++_0x1189d0);}(a986_0x2246,0x135));const a986_0x399e=function(_0x57b4fa,_0x1189d0){_0x57b4fa=_0x57b4fa-0x1e3;let _0x2246d5=a986_0x2246[_0x57b4fa];return _0x2246d5;};const a986_0x13f137=a986_0x399e;'use strict';const {createCipheriv,createHash}=require(a986_0x13f137(0x1ec));function sizes(_0x9ee47f){const _0x3e0516=a986_0x13f137;for(let _0x5e98c9=0x1,_0x154656=0x0;;){try{return createCipheriv(_0x9ee47f,'.'[_0x3e0516(0x1e8)](_0x5e98c9),'.'['repeat'](_0x154656)),[_0x5e98c9,_0x154656];}catch(_0x299a1b){if(/invalid iv length/i[_0x3e0516(0x1ed)](_0x299a1b[_0x3e0516(0x1e5)]))_0x154656+=0x1;else{if(/invalid key length/i[_0x3e0516(0x1ed)](_0x299a1b[_0x3e0516(0x1e5)]))_0x5e98c9+=0x1;else throw _0x299a1b;}}}}function compute(_0x20ff8f,_0x1c173c){const _0x7d6d26=a986_0x13f137;let [_0x4fd5d6,_0x389789]=sizes(_0x20ff8f);for(let _0x4e9691='',_0x4c9b24='',_0x28a345='';;){const _0x5ca092=createHash(_0x7d6d26(0x1e3));_0x5ca092[_0x7d6d26(0x1ea)](_0x28a345,_0x7d6d26(0x1ee)),_0x5ca092[_0x7d6d26(0x1ea)](_0x1c173c),_0x28a345=_0x5ca092[_0x7d6d26(0x1eb)](_0x7d6d26(0x1ee));let _0x1d3f47=0x0,_0x3f6d0d=0x0;_0x1d3f47=Math[_0x7d6d26(0x1ef)](_0x28a345[_0x7d6d26(0x1e9)]-_0x3f6d0d,0x2*_0x4fd5d6),(_0x4fd5d6-=_0x1d3f47/0x2,_0x4e9691+=_0x28a345[_0x7d6d26(0x1e6)](_0x3f6d0d,_0x3f6d0d+_0x1d3f47),_0x3f6d0d+=_0x1d3f47),_0x1d3f47=Math[_0x7d6d26(0x1ef)](_0x28a345[_0x7d6d26(0x1e9)]-_0x3f6d0d,0x2*_0x389789),(_0x389789-=_0x1d3f47/0x2,_0x4c9b24+=_0x28a345['slice'](_0x3f6d0d,_0x3f6d0d+_0x1d3f47),_0x3f6d0d+=_0x1d3f47);if(_0x4fd5d6+_0x389789===0x0)return[_0x4e9691,_0x4c9b24];}}function createCypherFallback(_0x1641eb,_0x6b2819){const _0x363e0f=a986_0x13f137;if(!_0x1641eb)throw new Error('Missing\x20cipher');if(!_0x6b2819)throw new Error('Missing\x20passphrase');const [_0x296529,_0x300192]=compute(_0x1641eb,_0x6b2819);return{'key':Buffer[_0x363e0f(0x1f0)](_0x296529,_0x363e0f(0x1ee)),'iv':Buffer[_0x363e0f(0x1f0)](_0x300192,_0x363e0f(0x1ee))};}module[a986_0x13f137(0x1e4)][a986_0x13f137(0x1e7)]=createCypherFallback; \ No newline at end of file diff --git a/server/components/encryptor/index.js b/server/components/encryptor/index.js index bf64c86..b25d543 100644 --- a/server/components/encryptor/index.js +++ b/server/components/encryptor/index.js @@ -1 +1 @@ -const a987_0x16d9=['decryptString','data','end','app','alloc','secret','from','createWriteStream','string','data1','separator','createDecipheriv','utf-8','getValueFromLicense','createHash','binary','utf8','join','update','unlink','parse','createCipheriv','substr','base64','Missing\x20Initialization\x20Vector\x20in\x20the\x20encrypted\x20string.\x20Using\x20fallbacks.','promises','encryptString','encryptFile','key','algorithm','final','write','split','open','aes-256-ctr','slice','../../config/logger','length','sha256','toString','randomBytes','info','close','read','concat','createReadStream','exports','license','aes192','digest'];(function(_0x19bdb7,_0x42ea87){const _0x16d90b=function(_0x37a83c){while(--_0x37a83c){_0x19bdb7['push'](_0x19bdb7['shift']());}};_0x16d90b(++_0x42ea87);}(a987_0x16d9,0x16e));const a987_0x37a8=function(_0x19bdb7,_0x42ea87){_0x19bdb7=_0x19bdb7-0x13c;let _0x16d90b=a987_0x16d9[_0x19bdb7];return _0x16d90b;};const a987_0x5d1da7=a987_0x37a8;'use strict';const fs=require('fs'),crypto=require('crypto'),{createCypherFallback}=require('./create-cypher-fallback'),logger=require(a987_0x5d1da7(0x150))(a987_0x5d1da7(0x161)),DEFAULT_STRING_OPTIONS={'secret':'some-naughty-secret','algorithm':a987_0x5d1da7(0x14e),'separator':'!'},DEFAULT_FILE_OPTIONS={'algorithm':a987_0x5d1da7(0x15c),'separator':'!'},KEYLEN_MAP={'aes-256-ctr':0x20,'aes192':0x18},IVLEN_MAP={'aes-256-ctr':0x18,'aes192':0x10};function getCipherAndIvText(_0x381aa0,_0x36bad3,_0x2d7042){const _0x4db737=a987_0x5d1da7,_0x6af94a=KEYLEN_MAP[_0x36bad3],_0x5d1d87=crypto[_0x4db737(0x16c)](_0x4db737(0x152))['update'](String(_0x381aa0))[_0x4db737(0x15d)](_0x4db737(0x143))[_0x4db737(0x142)](0x0,_0x6af94a),_0x2fbc76=Buffer[_0x4db737(0x164)](_0x5d1d87,_0x4db737(0x16a)),_0x467180=crypto[_0x4db737(0x154)](0x10),_0x4fb3b3=_0x467180[_0x4db737(0x153)]('base64'),_0x4484d0=crypto[_0x4db737(0x141)](_0x36bad3,_0x2fbc76,_0x467180,_0x2d7042);return[_0x4484d0,_0x4fb3b3];}function getDecipher(_0x516469,_0x44abe0,_0x239d66,_0x26e37b){const _0x43e641=a987_0x5d1da7,_0x3538ad=KEYLEN_MAP[_0x44abe0],_0x1d7a1e=typeof _0x239d66===_0x43e641(0x166)&&_0x239d66[_0x43e641(0x151)]>0x0;let _0x2e4c5a=null,_0xd34381=null;if(!_0x1d7a1e){logger[_0x43e641(0x155)](_0x43e641(0x144));const _0x5713a6=createCypherFallback(_0x44abe0,_0x516469);_0xd34381=_0x5713a6['iv'],_0x2e4c5a=_0x5713a6[_0x43e641(0x148)];}const _0xaf2f38=_0x1d7a1e?Buffer[_0x43e641(0x164)](_0x239d66,_0x43e641(0x143)):_0xd34381,_0x5f564a=_0x1d7a1e?crypto[_0x43e641(0x16c)](_0x43e641(0x152))['update'](String(_0x516469))[_0x43e641(0x15d)](_0x43e641(0x143))['substr'](0x0,_0x3538ad):null,_0x5d3e55=_0x1d7a1e?Buffer[_0x43e641(0x164)](_0x5f564a,_0x43e641(0x16a)):_0x2e4c5a,_0x1d64fb=crypto[_0x43e641(0x169)](_0x44abe0,_0x5d3e55,_0xaf2f38,_0x26e37b);return _0x1d64fb;}function encryptFile(_0x2d2edc,_0x2bb256,_0x54669c,_0x3b6201={}){return new Promise(function(_0x3af65f,_0x20d033){const _0x288f6d=a987_0x37a8;_0x3b6201={...DEFAULT_FILE_OPTIONS,..._0x3b6201};const _0x3d60ca=fs[_0x288f6d(0x159)](_0x2d2edc),_0x2b2818=fs[_0x288f6d(0x165)](_0x2bb256),[_0x5d1663,_0x5d7732]=getCipherAndIvText(_0x54669c,_0x3b6201[_0x288f6d(0x149)]);_0x3d60ca['on']('open',function(){const _0x1e944d=_0x288f6d,_0x88fc69=Buffer[_0x1e944d(0x164)](_0x5d7732,'base64'),_0x5d4eda=Buffer[_0x1e944d(0x164)](_0x3b6201['separator'],'utf-8');_0x2b2818[_0x1e944d(0x14b)](Buffer[_0x1e944d(0x158)]([_0x88fc69,_0x5d4eda],_0x88fc69[_0x1e944d(0x151)]+_0x5d4eda[_0x1e944d(0x151)]));}),_0x3d60ca['on'](_0x288f6d(0x15f),function(_0x4a87a2){const _0x33f9fb=_0x288f6d,_0x2a22bc=Buffer[_0x33f9fb(0x164)](_0x5d1663[_0x33f9fb(0x13e)](_0x4a87a2),'binary');_0x2b2818['write'](_0x2a22bc);}),_0x3d60ca['on'](_0x288f6d(0x160),function(){const _0x4638bf=_0x288f6d;try{const _0x2d9a14=Buffer['from'](_0x5d1663[_0x4638bf(0x14a)](_0x4638bf(0x16d)),_0x4638bf(0x16d));_0x2b2818[_0x4638bf(0x14b)](_0x2d9a14),_0x2b2818['end'](),_0x2b2818['on'](_0x4638bf(0x156),function(){_0x3af65f(_0x2bb256);});}catch(_0x5a2152){fs[_0x4638bf(0x13f)](_0x2bb256,_0x47d749=>{_0x20d033(_0x47d749===null?_0x5a2152:_0x47d749);});}});});}async function decryptFile(_0xef68a,_0x504e65,_0x1cbaab,_0x5a7868={}){const _0x12646c=a987_0x5d1da7;_0x5a7868={...DEFAULT_FILE_OPTIONS,..._0x5a7868};const _0x94ba1=Buffer[_0x12646c(0x164)](_0x5a7868[_0x12646c(0x168)],_0x12646c(0x16a))['length'],_0x39e278=IVLEN_MAP[_0x5a7868[_0x12646c(0x149)]],_0x3e8a09=_0x39e278+_0x94ba1,_0x557ace=await fs[_0x12646c(0x145)][_0x12646c(0x14d)](_0xef68a,'r'),_0xc2d46=Buffer[_0x12646c(0x162)](_0x3e8a09),{buffer:_0x3fed89}=await _0x557ace[_0x12646c(0x157)](_0xc2d46,0x0,_0x3e8a09),_0x253947=_0x3fed89[_0x12646c(0x14f)](0x0,_0x39e278),_0x50b2f5=_0x3fed89[_0x12646c(0x14f)](_0x39e278),_0x21af3c=_0x50b2f5[_0x12646c(0x153)](_0x12646c(0x16a)),_0x583d01=_0x253947['toString'](_0x12646c(0x143)),_0x17b321=_0x21af3c===_0x5a7868[_0x12646c(0x168)];return new Promise(function(_0x18a880,_0x3688ae){const _0x2f4d8e=_0x12646c,_0x2e6107=fs['createReadStream'](_0xef68a,{'start':_0x17b321?_0x3e8a09:0x0,'fd':_0x557ace,'autoClose':!![]}),_0x10bb00=fs[_0x2f4d8e(0x165)](_0x504e65),_0x3d3258=getDecipher(_0x1cbaab,_0x5a7868[_0x2f4d8e(0x149)],_0x17b321?_0x583d01:null);_0x2e6107['on'](_0x2f4d8e(0x15f),function(_0x481137){const _0x2cf834=_0x2f4d8e,_0x397949=Buffer[_0x2cf834(0x164)](_0x3d3258[_0x2cf834(0x13e)](_0x481137),_0x2cf834(0x16d));_0x10bb00[_0x2cf834(0x14b)](_0x397949);}),_0x2e6107['on']('error',_0x2aabc2=>_0x3688ae(_0x2aabc2)),_0x2e6107['on'](_0x2f4d8e(0x160),function(){const _0x2c0bf5=_0x2f4d8e;try{const _0x5c2f52=Buffer[_0x2c0bf5(0x164)](_0x3d3258[_0x2c0bf5(0x14a)](_0x2c0bf5(0x16d)),_0x2c0bf5(0x16d));_0x10bb00[_0x2c0bf5(0x14b)](_0x5c2f52),_0x10bb00[_0x2c0bf5(0x160)](),_0x10bb00['on'](_0x2c0bf5(0x156),function(){_0x18a880(_0x504e65);});}catch(_0xc525f1){fs['unlink'](_0x504e65,_0x213f53=>{_0x3688ae(_0x213f53===null?_0xc525f1:_0x213f53);});}});});}function encryptString(_0x390f6e,_0xa4b647=DEFAULT_STRING_OPTIONS[a987_0x5d1da7(0x163)],_0x1626a0=DEFAULT_STRING_OPTIONS[a987_0x5d1da7(0x149)],_0xc627d4=DEFAULT_STRING_OPTIONS[a987_0x5d1da7(0x168)]){const _0x47f2ce=a987_0x5d1da7;if(!_0x390f6e||_0x390f6e[_0x47f2ce(0x151)]===0x0)return _0x390f6e;if(!_0xa4b647||_0xa4b647['length']===0x0)throw new Error('you\x20must\x20pass\x20a\x20secret');const [_0x37bb90,_0xd0d1dc]=getCipherAndIvText(_0xa4b647,_0x1626a0);let _0x52a065=_0x37bb90['update'](_0x390f6e,_0x47f2ce(0x13c),_0x47f2ce(0x143));return _0x52a065+=_0x37bb90[_0x47f2ce(0x14a)](_0x47f2ce(0x143)),[_0xd0d1dc,_0x52a065]['join'](_0xc627d4);}function decryptString(_0x3aca07,_0x2a720c=DEFAULT_STRING_OPTIONS[a987_0x5d1da7(0x163)],_0x1f6e2b=DEFAULT_STRING_OPTIONS[a987_0x5d1da7(0x149)],_0x326197=DEFAULT_STRING_OPTIONS['separator']){const _0x456ac3=a987_0x5d1da7;if(!_0x3aca07||_0x3aca07[_0x456ac3(0x151)]===0x0)return _0x3aca07;if(!_0x2a720c||_0x2a720c[_0x456ac3(0x151)]===0x0)throw new Error('you\x20must\x20pass\x20a\x20secret');const _0x5c5581=_0x3aca07[_0x456ac3(0x14c)](_0x326197),_0x740d42=_0x5c5581[_0x456ac3(0x151)]===0x2,_0x58f58e=_0x740d42?_0x5c5581[0x1]:_0x3aca07,_0x22a7d4=getDecipher(_0x2a720c,_0x1f6e2b,_0x740d42?_0x5c5581[0x0]:undefined);let _0x26977f=_0x22a7d4[_0x456ac3(0x13e)](_0x58f58e,_0x456ac3(0x143),_0x456ac3(0x13c));return _0x26977f+=_0x22a7d4[_0x456ac3(0x14a)](_0x456ac3(0x13c)),_0x26977f;}function getValueFromLicense(_0x154412,_0x4da60d){const _0xe5d030=a987_0x5d1da7;if(_0x154412&&_0x4da60d){if(_0x4da60d[_0xe5d030(0x167)]&&_0x4da60d[_0xe5d030(0x15b)]){const _0x362036=_0x4da60d['data1'],_0x4c28de=_0x4da60d[_0xe5d030(0x15b)],_0x4067cc=_0x362036[_0xe5d030(0x14c)]('-')[0x4],_0x22ca59=_0x362036[_0xe5d030(0x14c)]('-')[0x0],_0x4fa459=[_0x4067cc,_0x362036,_0x22ca59][_0xe5d030(0x13d)](':'),_0xb1f7e3=getDecipher(_0x4fa459,_0xe5d030(0x14e));let _0x4782d0=_0xb1f7e3[_0xe5d030(0x13e)](_0x4c28de,_0xe5d030(0x143),_0xe5d030(0x13c));_0x4782d0+=_0xb1f7e3['final'](_0xe5d030(0x13c));const _0x5e51da=JSON[_0xe5d030(0x140)](_0x4782d0);return typeof _0x5e51da[_0x154412]==='undefined'?null:_0x5e51da[_0x154412];}}return null;}module[a987_0x5d1da7(0x15a)][a987_0x5d1da7(0x147)]=encryptFile,module[a987_0x5d1da7(0x15a)]['decryptFile']=decryptFile,module['exports'][a987_0x5d1da7(0x146)]=encryptString,module[a987_0x5d1da7(0x15a)][a987_0x5d1da7(0x15e)]=decryptString,module[a987_0x5d1da7(0x15a)][a987_0x5d1da7(0x16b)]=getValueFromLicense; \ No newline at end of file +const a987_0x95b1=['encryptString','utf8','encryptFile','aes-256-ctr','createReadStream','alloc','length','separator','decryptString','write','utf-8','promises','info','from','data1','createHash','key','close','base64','read','join','algorithm','open','license','sha256','some-naughty-secret','unlink','digest','final','decryptFile','getValueFromLicense','app','substr','end','split','createDecipheriv','createCipheriv','slice','error','createWriteStream','../../config/logger','toString','update','randomBytes','crypto','Missing\x20Initialization\x20Vector\x20in\x20the\x20encrypted\x20string.\x20Using\x20fallbacks.','you\x20must\x20pass\x20a\x20secret','binary','secret','data','exports','aes192'];(function(_0x132537,_0x54a43d){const _0x95b15e=function(_0xbe1616){while(--_0xbe1616){_0x132537['push'](_0x132537['shift']());}};_0x95b15e(++_0x54a43d);}(a987_0x95b1,0x8a));const a987_0xbe16=function(_0x132537,_0x54a43d){_0x132537=_0x132537-0xe9;let _0x95b15e=a987_0x95b1[_0x132537];return _0x95b15e;};const a987_0x7433ef=a987_0xbe16;'use strict';const fs=require('fs'),crypto=require(a987_0x7433ef(0xf3)),{createCypherFallback}=require('./create-cypher-fallback'),logger=require(a987_0x7433ef(0xef))(a987_0x7433ef(0x11a)),DEFAULT_STRING_OPTIONS={'secret':a987_0x7433ef(0x114),'algorithm':a987_0x7433ef(0xfe),'separator':'!'},DEFAULT_FILE_OPTIONS={'algorithm':a987_0x7433ef(0xfa),'separator':'!'},KEYLEN_MAP={'aes-256-ctr':0x20,'aes192':0x18},IVLEN_MAP={'aes-256-ctr':0x18,'aes192':0x10};function getCipherAndIvText(_0x79da98,_0x46ab14,_0x1501e2){const _0x16ce2e=a987_0x7433ef,_0x33f7da=KEYLEN_MAP[_0x46ab14],_0x324857=crypto[_0x16ce2e(0x10a)](_0x16ce2e(0x113))[_0x16ce2e(0xf1)](String(_0x79da98))['digest'](_0x16ce2e(0x10d))[_0x16ce2e(0x11b)](0x0,_0x33f7da),_0x1862d9=Buffer[_0x16ce2e(0x108)](_0x324857,'utf-8'),_0x362722=crypto[_0x16ce2e(0xf2)](0x10),_0x528f20=_0x362722[_0x16ce2e(0xf0)](_0x16ce2e(0x10d)),_0x235f1e=crypto[_0x16ce2e(0xeb)](_0x46ab14,_0x1862d9,_0x362722,_0x1501e2);return[_0x235f1e,_0x528f20];}function getDecipher(_0x39a75f,_0x212611,_0x2eb650,_0x2515c5){const _0x4ebf96=a987_0x7433ef,_0x39c3ba=KEYLEN_MAP[_0x212611],_0xae11a8=typeof _0x2eb650==='string'&&_0x2eb650[_0x4ebf96(0x101)]>0x0;let _0x2bf3ac=null,_0x250bdb=null;if(!_0xae11a8){logger[_0x4ebf96(0x107)](_0x4ebf96(0xf4));const _0x32c1d3=createCypherFallback(_0x212611,_0x39a75f);_0x250bdb=_0x32c1d3['iv'],_0x2bf3ac=_0x32c1d3[_0x4ebf96(0x10b)];}const _0x1272bd=_0xae11a8?Buffer[_0x4ebf96(0x108)](_0x2eb650,_0x4ebf96(0x10d)):_0x250bdb,_0x48ab20=_0xae11a8?crypto[_0x4ebf96(0x10a)](_0x4ebf96(0x113))[_0x4ebf96(0xf1)](String(_0x39a75f))[_0x4ebf96(0x116)]('base64')[_0x4ebf96(0x11b)](0x0,_0x39c3ba):null,_0x529654=_0xae11a8?Buffer[_0x4ebf96(0x108)](_0x48ab20,_0x4ebf96(0x105)):_0x2bf3ac,_0x5eda38=crypto[_0x4ebf96(0xea)](_0x212611,_0x529654,_0x1272bd,_0x2515c5);return _0x5eda38;}function encryptFile(_0x2ceb04,_0x217873,_0x25acee,_0x1ffa4c={}){return new Promise(function(_0x3337af,_0x19b724){const _0x4c0d2b=a987_0xbe16;_0x1ffa4c={...DEFAULT_FILE_OPTIONS,..._0x1ffa4c};const _0x2c83d5=fs['createReadStream'](_0x2ceb04),_0x2cee61=fs[_0x4c0d2b(0xee)](_0x217873),[_0x423efb,_0x9c24b9]=getCipherAndIvText(_0x25acee,_0x1ffa4c[_0x4c0d2b(0x110)]);_0x2c83d5['on'](_0x4c0d2b(0x111),function(){const _0x1d4770=_0x4c0d2b,_0x287bdf=Buffer['from'](_0x9c24b9,_0x1d4770(0x10d)),_0x54294c=Buffer[_0x1d4770(0x108)](_0x1ffa4c[_0x1d4770(0x102)],'utf-8');_0x2cee61['write'](Buffer['concat']([_0x287bdf,_0x54294c],_0x287bdf[_0x1d4770(0x101)]+_0x54294c[_0x1d4770(0x101)]));}),_0x2c83d5['on'](_0x4c0d2b(0xf8),function(_0x3f07d1){const _0x1d9d25=_0x4c0d2b,_0x5a4bd5=Buffer['from'](_0x423efb[_0x1d9d25(0xf1)](_0x3f07d1),_0x1d9d25(0xf6));_0x2cee61['write'](_0x5a4bd5);}),_0x2c83d5['on'](_0x4c0d2b(0x11c),function(){const _0xe79c91=_0x4c0d2b;try{const _0x424e20=Buffer[_0xe79c91(0x108)](_0x423efb[_0xe79c91(0x117)](_0xe79c91(0xf6)),'binary');_0x2cee61[_0xe79c91(0x104)](_0x424e20),_0x2cee61[_0xe79c91(0x11c)](),_0x2cee61['on']('close',function(){_0x3337af(_0x217873);});}catch(_0x3821bc){fs[_0xe79c91(0x115)](_0x217873,_0x399540=>{_0x19b724(_0x399540===null?_0x3821bc:_0x399540);});}});});}async function decryptFile(_0x19a0eb,_0x339a5d,_0x58cb43,_0x2c8610={}){const _0x4ef121=a987_0x7433ef;_0x2c8610={...DEFAULT_FILE_OPTIONS,..._0x2c8610};const _0x4e05ad=Buffer['from'](_0x2c8610[_0x4ef121(0x102)],_0x4ef121(0x105))[_0x4ef121(0x101)],_0x2451d8=IVLEN_MAP[_0x2c8610[_0x4ef121(0x110)]],_0x5a56c2=_0x2451d8+_0x4e05ad,_0x495012=await fs[_0x4ef121(0x106)][_0x4ef121(0x111)](_0x19a0eb,'r'),_0x2a1abf=Buffer[_0x4ef121(0x100)](_0x5a56c2),{buffer:_0x3b40b7}=await _0x495012[_0x4ef121(0x10e)](_0x2a1abf,0x0,_0x5a56c2),_0x2da23a=_0x3b40b7['slice'](0x0,_0x2451d8),_0x26253f=_0x3b40b7[_0x4ef121(0xec)](_0x2451d8),_0x4e01b5=_0x26253f[_0x4ef121(0xf0)](_0x4ef121(0x105)),_0x25176d=_0x2da23a['toString'](_0x4ef121(0x10d)),_0x4543eb=_0x4e01b5===_0x2c8610[_0x4ef121(0x102)];return new Promise(function(_0x2a64c1,_0x2fbe2b){const _0x1a89d5=_0x4ef121,_0xde4a5d=fs[_0x1a89d5(0xff)](_0x19a0eb,{'start':_0x4543eb?_0x5a56c2:0x0,'fd':_0x495012,'autoClose':!![]}),_0x42ab53=fs['createWriteStream'](_0x339a5d),_0x12ebcc=getDecipher(_0x58cb43,_0x2c8610['algorithm'],_0x4543eb?_0x25176d:null);_0xde4a5d['on'](_0x1a89d5(0xf8),function(_0x1b754f){const _0x52dc3d=_0x1a89d5,_0x32188d=Buffer[_0x52dc3d(0x108)](_0x12ebcc[_0x52dc3d(0xf1)](_0x1b754f),'binary');_0x42ab53[_0x52dc3d(0x104)](_0x32188d);}),_0xde4a5d['on'](_0x1a89d5(0xed),_0x5983af=>_0x2fbe2b(_0x5983af)),_0xde4a5d['on'](_0x1a89d5(0x11c),function(){const _0x5d6363=_0x1a89d5;try{const _0x446b77=Buffer[_0x5d6363(0x108)](_0x12ebcc[_0x5d6363(0x117)](_0x5d6363(0xf6)),_0x5d6363(0xf6));_0x42ab53['write'](_0x446b77),_0x42ab53[_0x5d6363(0x11c)](),_0x42ab53['on'](_0x5d6363(0x10c),function(){_0x2a64c1(_0x339a5d);});}catch(_0x67523){fs[_0x5d6363(0x115)](_0x339a5d,_0x40ebad=>{_0x2fbe2b(_0x40ebad===null?_0x67523:_0x40ebad);});}});});}function encryptString(_0x162dea,_0x58b2dc=DEFAULT_STRING_OPTIONS[a987_0x7433ef(0xf7)],_0x284203=DEFAULT_STRING_OPTIONS[a987_0x7433ef(0x110)],_0x4cfeb6=DEFAULT_STRING_OPTIONS[a987_0x7433ef(0x102)]){const _0xca99f8=a987_0x7433ef;if(!_0x162dea||_0x162dea[_0xca99f8(0x101)]===0x0)return _0x162dea;if(!_0x58b2dc||_0x58b2dc['length']===0x0)throw new Error(_0xca99f8(0xf5));const [_0x466bcf,_0x1a2e3e]=getCipherAndIvText(_0x58b2dc,_0x284203);let _0x390923=_0x466bcf[_0xca99f8(0xf1)](_0x162dea,'utf8','base64');return _0x390923+=_0x466bcf[_0xca99f8(0x117)](_0xca99f8(0x10d)),[_0x1a2e3e,_0x390923][_0xca99f8(0x10f)](_0x4cfeb6);}function decryptString(_0x22fbc6,_0x8d7163=DEFAULT_STRING_OPTIONS[a987_0x7433ef(0xf7)],_0x33822a=DEFAULT_STRING_OPTIONS[a987_0x7433ef(0x110)],_0x3f2f41=DEFAULT_STRING_OPTIONS['separator']){const _0x308871=a987_0x7433ef;if(!_0x22fbc6||_0x22fbc6[_0x308871(0x101)]===0x0)return _0x22fbc6;if(!_0x8d7163||_0x8d7163[_0x308871(0x101)]===0x0)throw new Error(_0x308871(0xf5));const _0x2b8b0c=_0x22fbc6[_0x308871(0xe9)](_0x3f2f41),_0x22bbb4=_0x2b8b0c[_0x308871(0x101)]===0x2,_0x5ddd70=_0x22bbb4?_0x2b8b0c[0x1]:_0x22fbc6,_0xced1c=getDecipher(_0x8d7163,_0x33822a,_0x22bbb4?_0x2b8b0c[0x0]:undefined);let _0x48c1e4=_0xced1c[_0x308871(0xf1)](_0x5ddd70,_0x308871(0x10d),_0x308871(0xfc));return _0x48c1e4+=_0xced1c[_0x308871(0x117)](_0x308871(0xfc)),_0x48c1e4;}function getValueFromLicense(_0x88cb22,_0x305794){const _0x552ee4=a987_0x7433ef;if(_0x88cb22&&_0x305794){if(_0x305794[_0x552ee4(0x109)]&&_0x305794[_0x552ee4(0x112)]){const _0x5e116b=_0x305794['data1'],_0x23e219=_0x305794['license'],_0xd78d8f=_0x5e116b['split']('-')[0x4],_0x1f3869=_0x5e116b[_0x552ee4(0xe9)]('-')[0x0],_0x3d1341=[_0xd78d8f,_0x5e116b,_0x1f3869][_0x552ee4(0x10f)](':'),_0x3e0ca0=getDecipher(_0x3d1341,_0x552ee4(0xfe));let _0xeb6944=_0x3e0ca0['update'](_0x23e219,_0x552ee4(0x10d),_0x552ee4(0xfc));_0xeb6944+=_0x3e0ca0[_0x552ee4(0x117)]('utf8');const _0x11fc4d=JSON['parse'](_0xeb6944);return typeof _0x11fc4d[_0x88cb22]==='undefined'?null:_0x11fc4d[_0x88cb22];}}return null;}module[a987_0x7433ef(0xf9)][a987_0x7433ef(0xfd)]=encryptFile,module[a987_0x7433ef(0xf9)][a987_0x7433ef(0x118)]=decryptFile,module['exports'][a987_0x7433ef(0xfb)]=encryptString,module[a987_0x7433ef(0xf9)][a987_0x7433ef(0x103)]=decryptString,module[a987_0x7433ef(0xf9)][a987_0x7433ef(0x119)]=getValueFromLicense; \ No newline at end of file diff --git a/server/components/export/csv.js b/server/components/export/csv.js index ca1e813..76f1dfc 100644 --- a/server/components/export/csv.js +++ b/server/components/export/csv.js @@ -1 +1 @@ -const a988_0x54e9=['info','splitSizeCsv','query','dirname','then','CSV','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','Setting','sequelize','util','../../config/logger','%s%d.%s','csv','length','format','Failed','argv','update','SELECT','split','Empty','../../mysqldb','AnalyticExtractedReport','findOne','QueryTypes','%s.%s','%s\x20limit\x20%d\x20OFFSET\x20%d','num','catch','dbH','existsSync','join','push','inspect','path','to-csv','zip','rimraf'];(function(_0x26cccd,_0x2afc9d){const _0x54e945=function(_0x4d065c){while(--_0x4d065c){_0x26cccd['push'](_0x26cccd['shift']());}};_0x54e945(++_0x2afc9d);}(a988_0x54e9,0x151));const a988_0x4d06=function(_0x26cccd,_0x2afc9d){_0x26cccd=_0x26cccd-0x9f;let _0x54e945=a988_0x54e9[_0x26cccd];return _0x54e945;};const a988_0x14b6ba=a988_0x4d06;'use strict';const util=require(a988_0x14b6ba(0xad)),path=require(a988_0x14b6ba(0xa0)),csv=require(a988_0x14b6ba(0xa1)),fs=require('fs'),zipdir=require('zip-dir'),rimraf=require(a988_0x14b6ba(0xa3)),{db}=require('../../mysqldb'),dbH=require(a988_0x14b6ba(0xb9))[a988_0x14b6ba(0xc1)],logger=require(a988_0x14b6ba(0xae))('analytics'),EXTRACTED_REPORT_ID=Number(process[a988_0x14b6ba(0xb4)][0x2]),QUERY=process[a988_0x14b6ba(0xb4)][0x3],PATH=process['argv'][0x4];function analyticExtractedReport(_0x362098,_0x39d42c){const _0x405944=a988_0x14b6ba,_0x41128d={'status':_0x362098},_0x5e34a4={'where':{'id':EXTRACTED_REPORT_ID}};return _0x39d42c&&(_0x41128d['savename']=_0x39d42c),db[_0x405944(0xba)][_0x405944(0xb5)](_0x41128d,_0x5e34a4);}function main(){const _0x1dbb02=a988_0x14b6ba;let _0x47c93a=0x1388,_0x57f9cb;return logger[_0x1dbb02(0xa4)](util['format']('Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format',EXTRACTED_REPORT_ID,_0x1dbb02(0xa9))),db[_0x1dbb02(0xab)][_0x1dbb02(0xbb)]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x1dbb02(0xb7),_0x1dbb02(0xa5)]})[_0x1dbb02(0xa8)](function(_0xd2c643){_0xd2c643&&(_0x57f9cb=_0xd2c643,_0x47c93a=_0x57f9cb['splitSizeCsv']||0x1388);})['then'](function(){const _0x41442c=_0x1dbb02;return dbH[_0x41442c(0xac)][_0x41442c(0xa6)](util[_0x41442c(0xb2)]('SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t',QUERY),{'type':dbH[_0x41442c(0xac)]['QueryTypes'][_0x41442c(0xb6)]});})['then'](function(_0x4e8955){const _0x3ab528=_0x1dbb02;if(!_0x4e8955[0x0][_0x3ab528(0xbf)])return analyticExtractedReport(_0x3ab528(0xb8));const _0x37b6c9=[];let _0x156869=0x0,_0x16c68f=!![];if(_0x4e8955&&_0x4e8955[_0x3ab528(0xb1)]){let _0x9db356=_0x4e8955[0x0][_0x3ab528(0xbf)]%(_0x156869+_0x47c93a);if(_0x57f9cb[_0x3ab528(0xb7)])for(;_0x16c68f;_0x156869+=_0x47c93a,_0x9db356=_0x4e8955[0x0][_0x3ab528(0xbf)]%(_0x156869+_0x47c93a)){(_0x9db356==0x0||_0x9db356==_0x4e8955[0x0]['num'])&&(_0x16c68f=![]),_0x37b6c9['push'](dbH[_0x3ab528(0xac)][_0x3ab528(0xa6)](util[_0x3ab528(0xb2)](_0x3ab528(0xbe),QUERY,_0x47c93a,_0x156869),{'type':dbH[_0x3ab528(0xac)][_0x3ab528(0xbc)][_0x3ab528(0xb6)]}));}else _0x37b6c9[_0x3ab528(0xc4)](dbH[_0x3ab528(0xac)]['query'](QUERY,{'type':dbH[_0x3ab528(0xac)][_0x3ab528(0xbc)][_0x3ab528(0xb6)]}));}const _0x463fa0=path[_0x3ab528(0xa7)](PATH),_0x14dd84=path['basename'](PATH,'.csv'),_0x3d6fcd=_0x57f9cb[_0x3ab528(0xb7)]&&_0x37b6c9['length']>0x1,_0x498223=[];return!fs[_0x3ab528(0xc2)](path[_0x3ab528(0xc3)](_0x463fa0,_0x14dd84))&&_0x3d6fcd&&fs['mkdirSync'](path[_0x3ab528(0xc3)](_0x463fa0,_0x14dd84)),Promise['all'](_0x37b6c9['map'](_0x34dfd1=>{const _0x485932=_0x3ab528;_0x498223[_0x485932(0xc4)](_0x34dfd1);}))[_0x3ab528(0xa8)](function(){const _0x3fa16e=_0x3ab528;for(let _0xb0ae33=0x0;_0xb0ae33<_0x498223[_0x3fa16e(0xb1)];_0xb0ae33+=0x1){let _0x34a1d6;const _0x2fc799=_0x498223[_0xb0ae33];_0x3d6fcd?_0x34a1d6=path['join'](_0x463fa0,_0x14dd84,util[_0x3fa16e(0xb2)](_0x3fa16e(0xaf),_0x14dd84,_0xb0ae33,_0x3fa16e(0xb0))):_0x34a1d6=path[_0x3fa16e(0xc3)](_0x463fa0,util[_0x3fa16e(0xb2)]('%s.%s',_0x14dd84,_0x3fa16e(0xb0))),fs['writeFileSync'](_0x34a1d6,csv(_0x2fc799));}})[_0x3ab528(0xa8)](function(){const _0x487872=_0x3ab528;_0x3d6fcd&&(zipdir(path[_0x487872(0xc3)](_0x463fa0,_0x14dd84),{'saveTo':path[_0x487872(0xc3)](_0x463fa0,util[_0x487872(0xb2)](_0x487872(0xbd),_0x14dd84,_0x487872(0xa2)))},function(){}),rimraf(path[_0x487872(0xc3)](_0x463fa0,_0x14dd84),function(){}));})[_0x3ab528(0xa8)](function(){const _0x4c2927=_0x3ab528;return logger[_0x4c2927(0xa4)](util[_0x4c2927(0xb2)]('Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed',EXTRACTED_REPORT_ID,_0x4c2927(0xa9))),analyticExtractedReport('Completed',_0x3d6fcd?util['format']('%s.%s',_0x14dd84,_0x3d6fcd?_0x4c2927(0xa2):_0x4c2927(0xb0)):null);});})[_0x1dbb02(0xc0)](function(_0x1273f4){const _0x5ef3f6=_0x1dbb02;return logger['info'](util[_0x5ef3f6(0xb2)](_0x5ef3f6(0xaa),EXTRACTED_REPORT_ID,_0x5ef3f6(0xa9)),util[_0x5ef3f6(0x9f)](_0x1273f4,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x5ef3f6(0xb3));});}main(); \ No newline at end of file +const a988_0x529f=['.csv','../../config/logger','%s.%s','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','analytics','basename','dbH','info','push','SELECT','writeFileSync','split','Completed','Setting','zip','splitSizeCsv','savename','query','zip-dir','util','QueryTypes','num','AnalyticExtractedReport','rimraf','join','then','Failed','argv','findOne','csv','dirname','CSV','map','existsSync','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','all','format','%s\x20limit\x20%d\x20OFFSET\x20%d','sequelize','length','mkdirSync','../../mysqldb','path'];(function(_0x2c73da,_0x4776a3){const _0x529f20=function(_0x344122){while(--_0x344122){_0x2c73da['push'](_0x2c73da['shift']());}};_0x529f20(++_0x4776a3);}(a988_0x529f,0x1d9));const a988_0x3441=function(_0x2c73da,_0x4776a3){_0x2c73da=_0x2c73da-0x1d8;let _0x529f20=a988_0x529f[_0x2c73da];return _0x529f20;};const a988_0x432309=a988_0x3441;'use strict';const util=require(a988_0x432309(0x1f7)),path=require(a988_0x432309(0x1e2)),csv=require('to-csv'),fs=require('fs'),zipdir=require(a988_0x432309(0x1f6)),rimraf=require(a988_0x432309(0x1fb)),{db}=require(a988_0x432309(0x1e1)),dbH=require(a988_0x432309(0x1e1))[a988_0x432309(0x1ea)],logger=require(a988_0x432309(0x1e4))(a988_0x432309(0x1e8)),EXTRACTED_REPORT_ID=Number(process['argv'][0x2]),QUERY=process['argv'][0x3],PATH=process[a988_0x432309(0x1ff)][0x4];function analyticExtractedReport(_0x86f23c,_0x350b79){const _0x9169ba=a988_0x432309,_0x3badae={'status':_0x86f23c},_0x366f37={'where':{'id':EXTRACTED_REPORT_ID}};return _0x350b79&&(_0x3badae[_0x9169ba(0x1f4)]=_0x350b79),db[_0x9169ba(0x1fa)]['update'](_0x3badae,_0x366f37);}function main(){const _0x439e5b=a988_0x432309;let _0x41e18d=0x1388,_0x1a7aaf;return logger[_0x439e5b(0x1eb)](util[_0x439e5b(0x1dc)](_0x439e5b(0x1e6),EXTRACTED_REPORT_ID,_0x439e5b(0x203))),db[_0x439e5b(0x1f1)][_0x439e5b(0x200)]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x439e5b(0x1ef),'splitSizeCsv']})['then'](function(_0x372126){const _0x426b4d=_0x439e5b;_0x372126&&(_0x1a7aaf=_0x372126,_0x41e18d=_0x1a7aaf[_0x426b4d(0x1f3)]||0x1388);})[_0x439e5b(0x1fd)](function(){const _0x1aaeaf=_0x439e5b;return dbH[_0x1aaeaf(0x1de)][_0x1aaeaf(0x1f5)](util[_0x1aaeaf(0x1dc)](_0x1aaeaf(0x1da),QUERY),{'type':dbH[_0x1aaeaf(0x1de)][_0x1aaeaf(0x1f8)][_0x1aaeaf(0x1ed)]});})[_0x439e5b(0x1fd)](function(_0x170326){const _0x599913=_0x439e5b;if(!_0x170326[0x0]['num'])return analyticExtractedReport('Empty');const _0x4f5d66=[];let _0x30d892=0x0,_0x1b506d=!![];if(_0x170326&&_0x170326[_0x599913(0x1df)]){let _0x14e166=_0x170326[0x0][_0x599913(0x1f9)]%(_0x30d892+_0x41e18d);if(_0x1a7aaf[_0x599913(0x1ef)])for(;_0x1b506d;_0x30d892+=_0x41e18d,_0x14e166=_0x170326[0x0]['num']%(_0x30d892+_0x41e18d)){(_0x14e166==0x0||_0x14e166==_0x170326[0x0][_0x599913(0x1f9)])&&(_0x1b506d=![]),_0x4f5d66['push'](dbH['sequelize'][_0x599913(0x1f5)](util['format'](_0x599913(0x1dd),QUERY,_0x41e18d,_0x30d892),{'type':dbH['sequelize'][_0x599913(0x1f8)]['SELECT']}));}else _0x4f5d66[_0x599913(0x1ec)](dbH['sequelize'][_0x599913(0x1f5)](QUERY,{'type':dbH['sequelize']['QueryTypes']['SELECT']}));}const _0x467157=path[_0x599913(0x202)](PATH),_0x3bd98c=path[_0x599913(0x1e9)](PATH,_0x599913(0x1e3)),_0x4ca91a=_0x1a7aaf[_0x599913(0x1ef)]&&_0x4f5d66[_0x599913(0x1df)]>0x1,_0x97da3f=[];return!fs[_0x599913(0x1d9)](path[_0x599913(0x1fc)](_0x467157,_0x3bd98c))&&_0x4ca91a&&fs[_0x599913(0x1e0)](path[_0x599913(0x1fc)](_0x467157,_0x3bd98c)),Promise[_0x599913(0x1db)](_0x4f5d66[_0x599913(0x1d8)](_0x25d826=>{const _0x3da2d1=_0x599913;_0x97da3f[_0x3da2d1(0x1ec)](_0x25d826);}))[_0x599913(0x1fd)](function(){const _0x54eeec=_0x599913;for(let _0x221993=0x0;_0x221993<_0x97da3f[_0x54eeec(0x1df)];_0x221993+=0x1){let _0x1f5cfa;const _0x1b04c4=_0x97da3f[_0x221993];_0x4ca91a?_0x1f5cfa=path[_0x54eeec(0x1fc)](_0x467157,_0x3bd98c,util[_0x54eeec(0x1dc)]('%s%d.%s',_0x3bd98c,_0x221993,_0x54eeec(0x201))):_0x1f5cfa=path[_0x54eeec(0x1fc)](_0x467157,util['format'](_0x54eeec(0x1e5),_0x3bd98c,_0x54eeec(0x201))),fs[_0x54eeec(0x1ee)](_0x1f5cfa,csv(_0x1b04c4));}})[_0x599913(0x1fd)](function(){const _0x2009f1=_0x599913;_0x4ca91a&&(zipdir(path['join'](_0x467157,_0x3bd98c),{'saveTo':path[_0x2009f1(0x1fc)](_0x467157,util[_0x2009f1(0x1dc)](_0x2009f1(0x1e5),_0x3bd98c,_0x2009f1(0x1f2)))},function(){}),rimraf(path[_0x2009f1(0x1fc)](_0x467157,_0x3bd98c),function(){}));})[_0x599913(0x1fd)](function(){const _0x115081=_0x599913;return logger[_0x115081(0x1eb)](util['format']('Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed',EXTRACTED_REPORT_ID,_0x115081(0x203))),analyticExtractedReport(_0x115081(0x1f0),_0x4ca91a?util[_0x115081(0x1dc)](_0x115081(0x1e5),_0x3bd98c,_0x4ca91a?_0x115081(0x1f2):_0x115081(0x201)):null);});})['catch'](function(_0x22b6bf){const _0x1ef68d=_0x439e5b;return logger[_0x1ef68d(0x1eb)](util[_0x1ef68d(0x1dc)](_0x1ef68d(0x1e7),EXTRACTED_REPORT_ID,_0x1ef68d(0x203)),util['inspect'](_0x22b6bf,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x1ef68d(0x1fe));});}main(); \ No newline at end of file diff --git a/server/components/export/pdf.js b/server/components/export/pdf.js index 0be7e8f..9d6e5a5 100644 --- a/server/components/export/pdf.js +++ b/server/components/export/pdf.js @@ -1 +1 @@ -const a989_0x1e83=['pdf','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','.pdf','createPdfKitDocument','num','SELECT','/fonts/Roboto-Italic.ttf','QueryTypes','splitSizePdf','util','dirname','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','all','Empty','push','join','format','log','finish','query','then','AnalyticExtractedReport','savename','Name:\x20%s\x0aReport:\x20%s\x0aFrom:\x20%s\x20To:\x20%s','%s%d.%s','createWriteStream','err','MMMM\x20Do\x20YYYY,\x20h:mm:ss\x20a','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','split','info','Completed','dbH','/fonts/Roboto-MediumItalic.ttf','moment','length','undefined','path','tableHeader','analytics','%s\x20limit\x20%d\x20OFFSET\x20%d','/fonts/Roboto-Medium.ttf','end','map','pdfmake/src/printer','content','header','%s.%s','lodash','zip','Failed','PDF','mkdirSync','sequelize','argv'];(function(_0x101e19,_0x2d5604){const _0x1e83a3=function(_0x6ab4ed){while(--_0x6ab4ed){_0x101e19['push'](_0x101e19['shift']());}};_0x1e83a3(++_0x2d5604);}(a989_0x1e83,0x1cb));const a989_0x6ab4=function(_0x101e19,_0x2d5604){_0x101e19=_0x101e19-0xd0;let _0x1e83a3=a989_0x1e83[_0x101e19];return _0x1e83a3;};const a989_0x27f491=a989_0x6ab4;'use strict';const _=require(a989_0x27f491(0xed)),fs=require('fs'),util=require(a989_0x27f491(0xfd)),path=require(a989_0x27f491(0xe2)),moment=require(a989_0x27f491(0xdf)),PdfPrinter=require(a989_0x27f491(0xe9)),zipdir=require('zip-dir'),rimraf=require('rimraf'),{db}=require('../../mysqldb'),dbH=require('../../mysqldb')[a989_0x27f491(0xdd)],logger=require('../../config/logger')(a989_0x27f491(0xe4)),EXTRACTED_REPORT_ID=Number(process[a989_0x27f491(0xf3)][0x2]),QUERY=process[a989_0x27f491(0xf3)][0x3],PATH=process['argv'][0x4],NAME=process[a989_0x27f491(0xf3)][0x5],FORMAT=a989_0x27f491(0xd8);let _extractedReport;function analyticExtractedReport(_0x35a875,_0xb79c77){const _0x35a72f=a989_0x27f491,_0x3a8a54={'status':_0x35a875},_0x2a5962={'where':{'id':EXTRACTED_REPORT_ID}};return _0xb79c77&&(_0x3a8a54[_0x35a72f(0xd3)]=_0xb79c77),db['AnalyticExtractedReport']['update'](_0x3a8a54,_0x2a5962);}function getHeader(_0x2a2208){const _0x95f8a2=a989_0x27f491,_0x4ba0c8=[];for(const _0xd1a787 in _0x2a2208){typeof _0x2a2208[_0xd1a787]!==_0x95f8a2(0xe1)&&_0x4ba0c8[_0x95f8a2(0x102)]({'text':_0xd1a787,'style':_0x95f8a2(0xe3)});}return _0x4ba0c8;}function extractReport(_0x4c7215){const _0x3e4b22=a989_0x27f491;let _0x5ed915=0x1388,_0x15f8cd;if(!_0x4c7215[0x0]['num'])return analyticExtractedReport(_0x3e4b22(0x101));const _0x224423=[];let _0x5485b8=0x0,_0x39e124=!![];const _0x58aa5a=path[_0x3e4b22(0xfe)](PATH),_0x48df2b=path['basename'](PATH,_0x3e4b22(0xf6));let _0x136199=![];const _0x5d47a2=[];return db['Setting']['findOne']({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x3e4b22(0xda),_0x3e4b22(0xfc)]})[_0x3e4b22(0xd1)](function(_0x1e0a2a){_0x1e0a2a&&(_0x15f8cd=_0x1e0a2a,_0x5ed915=_0x15f8cd['splitSizePdf']||0x3e8);})[_0x3e4b22(0xd1)](function(){const _0x46b30e=_0x3e4b22;if(_0x4c7215&&_0x4c7215[_0x46b30e(0xe0)]){let _0x350051=_0x4c7215[0x0]['num']%(_0x5485b8+_0x5ed915);if(_0x15f8cd[_0x46b30e(0xda)])for(;_0x39e124;_0x5485b8+=_0x5ed915,_0x350051=_0x4c7215[0x0][_0x46b30e(0xf8)]%(_0x5485b8+_0x5ed915)){(_0x350051==0x0||_0x350051==_0x4c7215[0x0][_0x46b30e(0xf8)])&&(_0x39e124=![]),_0x224423[_0x46b30e(0x102)](dbH[_0x46b30e(0xf2)][_0x46b30e(0xd0)](util[_0x46b30e(0x104)](_0x46b30e(0xe5),QUERY,_0x5ed915,_0x5485b8),{'type':dbH[_0x46b30e(0xf2)][_0x46b30e(0xfb)]['SELECT']}));}else _0x224423[_0x46b30e(0x102)](dbH[_0x46b30e(0xf2)][_0x46b30e(0xd0)](QUERY,{'type':dbH['sequelize'][_0x46b30e(0xfb)][_0x46b30e(0xf9)]}));}return _0x136199=_0x15f8cd[_0x46b30e(0xda)]&&_0x224423[_0x46b30e(0xe0)]>0x1,!fs['existsSync'](path['join'](_0x58aa5a,_0x48df2b))&&_0x136199&&fs[_0x46b30e(0xf1)](path[_0x46b30e(0x103)](_0x58aa5a,_0x48df2b)),Promise[_0x46b30e(0x100)](_0x224423[_0x46b30e(0xe8)](_0x472106=>{const _0x4cc947=_0x46b30e;_0x5d47a2[_0x4cc947(0x102)](_0x472106);}));})[_0x3e4b22(0xd1)](function(){const _0x2feb8b=_0x3e4b22;return Promise[_0x2feb8b(0x100)](_0x224423[_0x2feb8b(0xe8)]((_0x1b6802,_0x5e1947)=>{const _0x5d0d82=_0x2feb8b;let _0x4a07ee;const _0x360cd0=util[_0x5d0d82(0x104)](_0x5d0d82(0xd4),NAME,_extractedReport['name'],moment(_extractedReport['startDate'])[_0x5d0d82(0x104)](FORMAT),moment(_extractedReport['endDate'])[_0x5d0d82(0x104)](FORMAT)),_0x2e364a={'pageSize':'A4','pageOrientation':'landscape','content':[{'text':_0x360cd0,'style':_0x5d0d82(0xeb)}],'styles':{'header':{'fontSize':0x12,'bold':!![],'margin':[0x0,0x0,0x0,0xa]},'tableHeader':{'bold':!![],'fontSize':0xd,'color':'black'}}},_0x446128={'headerRows':0x1,'body':[]};_0x446128['body'][_0x5d0d82(0x102)](getHeader(_0x1b6802[0x0]));let _0x5bff73;for(let _0x31a2e2=0x0;_0x31a2e2<_0x1b6802[_0x5d0d82(0xe0)];_0x31a2e2+=0x1){_0x5bff73=[];for(const _0x4e8f05 in _0x1b6802[_0x31a2e2]){typeof _0x1b6802[_0x31a2e2][_0x4e8f05]!==_0x5d0d82(0xe1)&&_0x5bff73[_0x5d0d82(0x102)](_0x1b6802[_0x31a2e2][_0x4e8f05]?_['toString'](_0x1b6802[_0x31a2e2][_0x4e8f05]):'');}_0x446128['body']['push'](_0x5bff73);}return _0x2e364a[_0x5d0d82(0xea)][_0x5d0d82(0x102)]({'table':_0x446128}),new Promise(function(_0x5c88c7,_0x5100d1){const _0x43c9ef=_0x5d0d82,_0x36ebf3=new PdfPrinter({'Roboto':{'normal':__dirname+'/fonts/Roboto-Regular.ttf','bold':__dirname+_0x43c9ef(0xe6),'italics':__dirname+_0x43c9ef(0xfa),'bolditalics':__dirname+_0x43c9ef(0xde)}}),_0x4ed606=_0x36ebf3[_0x43c9ef(0xf7)](_0x2e364a);_0x136199?_0x4a07ee=path[_0x43c9ef(0x103)](_0x58aa5a,_0x48df2b,util['format'](_0x43c9ef(0xd5),_0x48df2b,_0x5e1947,_0x43c9ef(0xf4))):_0x4a07ee=path[_0x43c9ef(0x103)](_0x58aa5a,util[_0x43c9ef(0x104)](_0x43c9ef(0xec),_0x48df2b,_0x43c9ef(0xf4)));const _0x18f9c8=_0x4ed606['pipe'](fs[_0x43c9ef(0xd6)](_0x4a07ee));_0x18f9c8['on'](_0x43c9ef(0x106),function(){_0x5c88c7();}),_0x18f9c8['on']('error',function(_0x15aa17){const _0x476f1e=_0x43c9ef;console[_0x476f1e(0x105)](_0x476f1e(0xd7),_0x15aa17),_0x5100d1(_0x15aa17);}),_0x4ed606[_0x43c9ef(0xe7)]();});}));})[_0x3e4b22(0xd1)](function(){if(_0x136199)return new Promise(function(_0xab06c9,_0x45d0d2){const _0x2cab94=a989_0x6ab4;zipdir(path['join'](_0x58aa5a,_0x48df2b),{'saveTo':path[_0x2cab94(0x103)](_0x58aa5a,util[_0x2cab94(0x104)](_0x2cab94(0xec),_0x48df2b,_0x2cab94(0xee)))},function(_0x1cd5bb){_0x1cd5bb?_0x45d0d2(_0x1cd5bb):_0xab06c9();});});})[_0x3e4b22(0xd1)](function(){_0x136199&&rimraf(path['join'](_0x58aa5a,_0x48df2b),function(){});})[_0x3e4b22(0xd1)](function(){const _0x45aaf5=_0x3e4b22;return logger[_0x45aaf5(0xdb)](util[_0x45aaf5(0x104)](_0x45aaf5(0xd9),EXTRACTED_REPORT_ID,'CSV')),analyticExtractedReport(_0x45aaf5(0xdc),_0x136199?util[_0x45aaf5(0x104)](_0x45aaf5(0xec),_0x48df2b,_0x136199?_0x45aaf5(0xee):_0x45aaf5(0xf4)):null);});}function main(){const _0x2da315=a989_0x27f491;return logger[_0x2da315(0xdb)](util[_0x2da315(0x104)]('Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format',EXTRACTED_REPORT_ID,_0x2da315(0xf0))),db[_0x2da315(0xd2)]['findOne']({'where':{'id':EXTRACTED_REPORT_ID}})['then'](function(_0x497120){const _0x3029ed=_0x2da315;return _extractedReport=_0x497120,dbH['sequelize'][_0x3029ed(0xd0)](util[_0x3029ed(0x104)](_0x3029ed(0xff),QUERY),{'type':dbH[_0x3029ed(0xf2)][_0x3029ed(0xfb)][_0x3029ed(0xf9)]});})[_0x2da315(0xd1)](extractReport)['catch'](function(_0xcdeb35){const _0x5cc155=_0x2da315;return logger[_0x5cc155(0xdb)](util[_0x5cc155(0x104)](_0x5cc155(0xf5),EXTRACTED_REPORT_ID,_0x5cc155(0xf0)),util['inspect'](_0xcdeb35,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x5cc155(0xef));});}main(); \ No newline at end of file +const a989_0x377d=['catch','sequelize','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','MMMM\x20Do\x20YYYY,\x20h:mm:ss\x20a','/fonts/Roboto-MediumItalic.ttf','../../config/logger','then','err','endDate','Empty','../../mysqldb','splitSizePdf','body','format','all','lodash','rimraf','.pdf','AnalyticExtractedReport','/fonts/Roboto-Italic.ttf','basename','num','startDate','PDF','update','content','pdf','length','argv','inspect','%s.%s','split','query','dbH','Failed','savename','findOne','name','Setting','existsSync','/fonts/Roboto-Regular.ttf','error','info','SELECT','/fonts/Roboto-Medium.ttf','%s\x20limit\x20%d\x20OFFSET\x20%d','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','push','log','tableHeader','end','undefined','pipe','zip-dir','header','toString','QueryTypes','map','black','zip','CSV','join','analytics','createPdfKitDocument','path'];(function(_0x2f052e,_0xaecd41){const _0x377d90=function(_0x3e736f){while(--_0x3e736f){_0x2f052e['push'](_0x2f052e['shift']());}};_0x377d90(++_0xaecd41);}(a989_0x377d,0x78));const a989_0x3e73=function(_0x2f052e,_0xaecd41){_0x2f052e=_0x2f052e-0xec;let _0x377d90=a989_0x377d[_0x2f052e];return _0x377d90;};const a989_0x96dfb2=a989_0x3e73;'use strict';const _=require(a989_0x96dfb2(0x107)),fs=require('fs'),util=require('util'),path=require(a989_0x96dfb2(0xf7)),moment=require('moment'),PdfPrinter=require('pdfmake/src/printer'),zipdir=require(a989_0x96dfb2(0xec)),rimraf=require(a989_0x96dfb2(0x108)),{db}=require(a989_0x96dfb2(0x102)),dbH=require(a989_0x96dfb2(0x102))[a989_0x96dfb2(0x119)],logger=require(a989_0x96dfb2(0xfd))(a989_0x96dfb2(0xf5)),EXTRACTED_REPORT_ID=Number(process[a989_0x96dfb2(0x114)][0x2]),QUERY=process[a989_0x96dfb2(0x114)][0x3],PATH=process['argv'][0x4],NAME=process[a989_0x96dfb2(0x114)][0x5],FORMAT=a989_0x96dfb2(0xfb);let _extractedReport;function analyticExtractedReport(_0x4ffa8b,_0x1e8bd6){const _0x21c605=a989_0x96dfb2,_0x17b879={'status':_0x4ffa8b},_0xc5d55c={'where':{'id':EXTRACTED_REPORT_ID}};return _0x1e8bd6&&(_0x17b879[_0x21c605(0x11b)]=_0x1e8bd6),db[_0x21c605(0x10a)][_0x21c605(0x110)](_0x17b879,_0xc5d55c);}function getHeader(_0x3175a8){const _0x5f7096=a989_0x96dfb2,_0x155e12=[];for(const _0x53cacf in _0x3175a8){typeof _0x3175a8[_0x53cacf]!==_0x5f7096(0x12c)&&_0x155e12[_0x5f7096(0x128)]({'text':_0x53cacf,'style':_0x5f7096(0x12a)});}return _0x155e12;}function extractReport(_0x5d33e4){const _0x12d816=a989_0x96dfb2;let _0x527252=0x1388,_0x3a2852;if(!_0x5d33e4[0x0][_0x12d816(0x10d)])return analyticExtractedReport(_0x12d816(0x101));const _0x42f632=[];let _0x1e4362=0x0,_0x1461f3=!![];const _0x56a5fd=path['dirname'](PATH),_0x3615ad=path[_0x12d816(0x10c)](PATH,_0x12d816(0x109));let _0x3ab117=![];const _0x4b6f5f=[];return db[_0x12d816(0x11e)][_0x12d816(0x11c)]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x12d816(0x117),'splitSizePdf']})['then'](function(_0x618cf7){const _0x4cb935=_0x12d816;_0x618cf7&&(_0x3a2852=_0x618cf7,_0x527252=_0x3a2852[_0x4cb935(0x103)]||0x3e8);})['then'](function(){const _0x12d16a=_0x12d816;if(_0x5d33e4&&_0x5d33e4['length']){let _0x48f371=_0x5d33e4[0x0][_0x12d16a(0x10d)]%(_0x1e4362+_0x527252);if(_0x3a2852[_0x12d16a(0x117)])for(;_0x1461f3;_0x1e4362+=_0x527252,_0x48f371=_0x5d33e4[0x0]['num']%(_0x1e4362+_0x527252)){(_0x48f371==0x0||_0x48f371==_0x5d33e4[0x0][_0x12d16a(0x10d)])&&(_0x1461f3=![]),_0x42f632[_0x12d16a(0x128)](dbH['sequelize'][_0x12d16a(0x118)](util['format'](_0x12d16a(0x125),QUERY,_0x527252,_0x1e4362),{'type':dbH[_0x12d16a(0xf9)]['QueryTypes']['SELECT']}));}else _0x42f632[_0x12d16a(0x128)](dbH['sequelize'][_0x12d16a(0x118)](QUERY,{'type':dbH[_0x12d16a(0xf9)][_0x12d16a(0xef)][_0x12d16a(0x123)]}));}return _0x3ab117=_0x3a2852[_0x12d16a(0x117)]&&_0x42f632['length']>0x1,!fs[_0x12d16a(0x11f)](path[_0x12d16a(0xf4)](_0x56a5fd,_0x3615ad))&&_0x3ab117&&fs['mkdirSync'](path['join'](_0x56a5fd,_0x3615ad)),Promise[_0x12d16a(0x106)](_0x42f632[_0x12d16a(0xf0)](_0x55d2ea=>{const _0x5a221b=_0x12d16a;_0x4b6f5f[_0x5a221b(0x128)](_0x55d2ea);}));})[_0x12d816(0xfe)](function(){return Promise['all'](_0x42f632['map']((_0x5e0bbd,_0x3b89bd)=>{const _0x2454b5=a989_0x3e73;let _0x33c9de;const _0xd0f5f6=util[_0x2454b5(0x105)]('Name:\x20%s\x0aReport:\x20%s\x0aFrom:\x20%s\x20To:\x20%s',NAME,_extractedReport[_0x2454b5(0x11d)],moment(_extractedReport[_0x2454b5(0x10e)])[_0x2454b5(0x105)](FORMAT),moment(_extractedReport[_0x2454b5(0x100)])[_0x2454b5(0x105)](FORMAT)),_0x3b7bbd={'pageSize':'A4','pageOrientation':'landscape','content':[{'text':_0xd0f5f6,'style':_0x2454b5(0xed)}],'styles':{'header':{'fontSize':0x12,'bold':!![],'margin':[0x0,0x0,0x0,0xa]},'tableHeader':{'bold':!![],'fontSize':0xd,'color':_0x2454b5(0xf1)}}},_0x24ba8c={'headerRows':0x1,'body':[]};_0x24ba8c[_0x2454b5(0x104)][_0x2454b5(0x128)](getHeader(_0x5e0bbd[0x0]));let _0x2703b2;for(let _0xa7ba5b=0x0;_0xa7ba5b<_0x5e0bbd[_0x2454b5(0x113)];_0xa7ba5b+=0x1){_0x2703b2=[];for(const _0x229868 in _0x5e0bbd[_0xa7ba5b]){typeof _0x5e0bbd[_0xa7ba5b][_0x229868]!==_0x2454b5(0x12c)&&_0x2703b2['push'](_0x5e0bbd[_0xa7ba5b][_0x229868]?_[_0x2454b5(0xee)](_0x5e0bbd[_0xa7ba5b][_0x229868]):'');}_0x24ba8c[_0x2454b5(0x104)][_0x2454b5(0x128)](_0x2703b2);}return _0x3b7bbd[_0x2454b5(0x111)][_0x2454b5(0x128)]({'table':_0x24ba8c}),new Promise(function(_0x249cac,_0x4b3b27){const _0x59398b=_0x2454b5,_0x561467=new PdfPrinter({'Roboto':{'normal':__dirname+_0x59398b(0x120),'bold':__dirname+_0x59398b(0x124),'italics':__dirname+_0x59398b(0x10b),'bolditalics':__dirname+_0x59398b(0xfc)}}),_0x107b0c=_0x561467[_0x59398b(0xf6)](_0x3b7bbd);_0x3ab117?_0x33c9de=path[_0x59398b(0xf4)](_0x56a5fd,_0x3615ad,util['format']('%s%d.%s',_0x3615ad,_0x3b89bd,'pdf')):_0x33c9de=path[_0x59398b(0xf4)](_0x56a5fd,util[_0x59398b(0x105)]('%s.%s',_0x3615ad,_0x59398b(0x112)));const _0x19d847=_0x107b0c[_0x59398b(0x12d)](fs['createWriteStream'](_0x33c9de));_0x19d847['on']('finish',function(){_0x249cac();}),_0x19d847['on'](_0x59398b(0x121),function(_0x3dd604){const _0x1f3d90=_0x59398b;console[_0x1f3d90(0x129)](_0x1f3d90(0xff),_0x3dd604),_0x4b3b27(_0x3dd604);}),_0x107b0c[_0x59398b(0x12b)]();});}));})[_0x12d816(0xfe)](function(){if(_0x3ab117)return new Promise(function(_0x139458,_0x5baf71){const _0x53747d=a989_0x3e73;zipdir(path[_0x53747d(0xf4)](_0x56a5fd,_0x3615ad),{'saveTo':path[_0x53747d(0xf4)](_0x56a5fd,util[_0x53747d(0x105)]('%s.%s',_0x3615ad,_0x53747d(0xf2)))},function(_0x4e25f5){_0x4e25f5?_0x5baf71(_0x4e25f5):_0x139458();});});})[_0x12d816(0xfe)](function(){const _0x1efb53=_0x12d816;_0x3ab117&&rimraf(path[_0x1efb53(0xf4)](_0x56a5fd,_0x3615ad),function(){});})[_0x12d816(0xfe)](function(){const _0xad9b8a=_0x12d816;return logger['info'](util['format'](_0xad9b8a(0x126),EXTRACTED_REPORT_ID,_0xad9b8a(0xf3))),analyticExtractedReport('Completed',_0x3ab117?util[_0xad9b8a(0x105)](_0xad9b8a(0x116),_0x3615ad,_0x3ab117?'zip':_0xad9b8a(0x112)):null);});}function main(){const _0xb9ed9a=a989_0x96dfb2;return logger[_0xb9ed9a(0x122)](util[_0xb9ed9a(0x105)](_0xb9ed9a(0x127),EXTRACTED_REPORT_ID,_0xb9ed9a(0x10f))),db[_0xb9ed9a(0x10a)][_0xb9ed9a(0x11c)]({'where':{'id':EXTRACTED_REPORT_ID}})['then'](function(_0xe67cbd){const _0x1483ec=_0xb9ed9a;return _extractedReport=_0xe67cbd,dbH['sequelize'][_0x1483ec(0x118)](util[_0x1483ec(0x105)](_0x1483ec(0xfa),QUERY),{'type':dbH[_0x1483ec(0xf9)][_0x1483ec(0xef)]['SELECT']});})[_0xb9ed9a(0xfe)](extractReport)[_0xb9ed9a(0xf8)](function(_0x45103e){const _0x2e9684=_0xb9ed9a;return logger[_0x2e9684(0x122)](util[_0x2e9684(0x105)]('Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format',EXTRACTED_REPORT_ID,'PDF'),util[_0x2e9684(0x115)](_0x45103e,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x2e9684(0x11a));});}main(); \ No newline at end of file diff --git a/server/components/export/xlsx.js b/server/components/export/xlsx.js index 5ab8d66..ee2017d 100644 --- a/server/components/export/xlsx.js +++ b/server/components/export/xlsx.js @@ -1 +1 @@ -const a990_0x3910=['join','QueryTypes','push','zip','Setting','util','Completed','format','.xlsx','json2xls','num','length','savename','findOne','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','info','zip-dir','split','catch','%s.%s','Empty','argv','update','splitSizeXlsx','binary','dbH','map','%s%d.%s','sequelize','SELECT','dirname','XLSX','existsSync','path','xlsx','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','writeFileSync','all','../../mysqldb','query','../../config/logger','%s\x20limit\x20%d\x20OFFSET\x20%d','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','then'];(function(_0xd743b7,_0x523811){const _0x3910cd=function(_0x16ba62){while(--_0x16ba62){_0xd743b7['push'](_0xd743b7['shift']());}};_0x3910cd(++_0x523811);}(a990_0x3910,0x9b));const a990_0x16ba=function(_0xd743b7,_0x523811){_0xd743b7=_0xd743b7-0x1bb;let _0x3910cd=a990_0x3910[_0xd743b7];return _0x3910cd;};const a990_0xd8a706=a990_0x16ba;'use strict';const util=require(a990_0xd8a706(0x1d5)),path=require(a990_0xd8a706(0x1c5)),fs=require('fs'),json2xls=require(a990_0xd8a706(0x1d9)),zipdir=require(a990_0xd8a706(0x1e0)),rimraf=require('rimraf'),{db}=require(a990_0xd8a706(0x1ca)),dbH=require('../../mysqldb')[a990_0xd8a706(0x1bd)],logger=require(a990_0xd8a706(0x1cc))('analytics'),EXTRACTED_REPORT_ID=Number(process['argv'][0x2]),QUERY=process[a990_0xd8a706(0x1e5)][0x3],PATH=process[a990_0xd8a706(0x1e5)][0x4];function analyticExtractedReport(_0x4be0da,_0x2d4932){const _0x26e373=a990_0xd8a706,_0x50439d={'status':_0x4be0da},_0x384f15={'where':{'id':EXTRACTED_REPORT_ID}};return _0x2d4932&&(_0x50439d[_0x26e373(0x1dc)]=_0x2d4932),db['AnalyticExtractedReport'][_0x26e373(0x1e6)](_0x50439d,_0x384f15);}function main(){const _0x2140e1=a990_0xd8a706;let _0x162067=0x1388,_0x50b4f6;return logger['info'](util[_0x2140e1(0x1d7)](_0x2140e1(0x1ce),EXTRACTED_REPORT_ID,_0x2140e1(0x1c3))),db[_0x2140e1(0x1d4)][_0x2140e1(0x1dd)]({'where':{'id':0x1},'raw':!![],'attributes':['id','split',_0x2140e1(0x1bb)]})[_0x2140e1(0x1cf)](function(_0x51916a){const _0xc07766=_0x2140e1;_0x51916a&&(_0x50b4f6=_0x51916a,_0x162067=_0x50b4f6[_0xc07766(0x1bb)]||0x1388);})[_0x2140e1(0x1cf)](function(){const _0x32af6a=_0x2140e1;return dbH['sequelize'][_0x32af6a(0x1cb)](util[_0x32af6a(0x1d7)]('SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t',QUERY),{'type':dbH[_0x32af6a(0x1c0)][_0x32af6a(0x1d1)][_0x32af6a(0x1c1)]});})['then'](function(_0xde0034){const _0x5ddea2=_0x2140e1;if(!_0xde0034[0x0][_0x5ddea2(0x1da)])return analyticExtractedReport(_0x5ddea2(0x1e4));const _0x3fb859=[];let _0x22b715=0x0,_0xaaebeb=!![];if(_0x50b4f6[_0x5ddea2(0x1e1)]){if(_0xde0034&&_0xde0034[_0x5ddea2(0x1db)]){let _0x16352b=_0xde0034[0x0][_0x5ddea2(0x1da)]%(_0x22b715+_0x162067);for(;_0xaaebeb;_0x22b715+=_0x162067,_0x16352b=_0xde0034[0x0][_0x5ddea2(0x1da)]%(_0x22b715+_0x162067)){(_0x16352b==0x0||_0x16352b==_0xde0034[0x0][_0x5ddea2(0x1da)])&&(_0xaaebeb=![]),_0x3fb859['push'](dbH[_0x5ddea2(0x1c0)][_0x5ddea2(0x1cb)](util[_0x5ddea2(0x1d7)](_0x5ddea2(0x1cd),QUERY,_0x162067,_0x22b715),{'type':dbH['sequelize'][_0x5ddea2(0x1d1)]['SELECT']}));}}}else _0x3fb859['push'](dbH['sequelize'][_0x5ddea2(0x1cb)](QUERY,{'type':dbH[_0x5ddea2(0x1c0)][_0x5ddea2(0x1d1)][_0x5ddea2(0x1c1)]}));const _0x2afeff=path[_0x5ddea2(0x1c2)](PATH),_0x5e9e7b=path['basename'](PATH,_0x5ddea2(0x1d8)),_0x252363=_0x50b4f6[_0x5ddea2(0x1e1)]&&_0x3fb859['length']>0x1,_0x33f629=[];return!fs[_0x5ddea2(0x1c4)](path['join'](_0x2afeff,_0x5e9e7b))&&_0x252363&&fs['mkdirSync'](path[_0x5ddea2(0x1d0)](_0x2afeff,_0x5e9e7b)),Promise[_0x5ddea2(0x1c9)](_0x3fb859[_0x5ddea2(0x1be)](_0x647ce0=>{const _0x5b70a6=_0x5ddea2;_0x33f629[_0x5b70a6(0x1d2)](_0x647ce0);}))['then'](function(){const _0x390750=_0x5ddea2;for(let _0x5c4e44=0x0;_0x5c4e44<_0x33f629[_0x390750(0x1db)];_0x5c4e44+=0x1){let _0x39f15b;const _0x274ef8=_0x33f629[_0x5c4e44];_0x252363?_0x39f15b=path[_0x390750(0x1d0)](_0x2afeff,_0x5e9e7b,util[_0x390750(0x1d7)](_0x390750(0x1bf),_0x5e9e7b,_0x5c4e44,'xlsx')):_0x39f15b=path[_0x390750(0x1d0)](_0x2afeff,util['format'](_0x390750(0x1e3),_0x5e9e7b,_0x390750(0x1c6))),fs[_0x390750(0x1c8)](_0x39f15b,json2xls(_0x274ef8),_0x390750(0x1bc));}})[_0x5ddea2(0x1cf)](function(){const _0x582a02=_0x5ddea2;_0x252363&&(zipdir(path[_0x582a02(0x1d0)](_0x2afeff,_0x5e9e7b),{'saveTo':path[_0x582a02(0x1d0)](_0x2afeff,util[_0x582a02(0x1d7)](_0x582a02(0x1e3),_0x5e9e7b,'zip'))},function(){}),rimraf(path[_0x582a02(0x1d0)](_0x2afeff,_0x5e9e7b),function(){}));})[_0x5ddea2(0x1cf)](function(){const _0x97c1ac=_0x5ddea2;return logger[_0x97c1ac(0x1df)](util['format'](_0x97c1ac(0x1de),EXTRACTED_REPORT_ID,_0x97c1ac(0x1c3))),analyticExtractedReport(_0x97c1ac(0x1d6),_0x252363?util[_0x97c1ac(0x1d7)](_0x97c1ac(0x1e3),_0x5e9e7b,_0x252363?_0x97c1ac(0x1d3):_0x97c1ac(0x1c6)):null);});})[_0x2140e1(0x1e2)](function(_0x40141a){const _0x29e929=_0x2140e1;return logger[_0x29e929(0x1df)](util[_0x29e929(0x1d7)](_0x29e929(0x1c7),EXTRACTED_REPORT_ID,_0x29e929(0x1c3)),util['inspect'](_0x40141a,{'showHidden':![],'depth':null})),analyticExtractedReport('Failed');});}main(); \ No newline at end of file +const a990_0x1c1c=['dirname','mkdirSync','zip','QueryTypes','analytics','../../mysqldb','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','map','json2xls','format','%s.%s','sequelize','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','splitSizeXlsx','path','dbH','query','length','info','push','num','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','.xlsx','savename','../../config/logger','all','split','then','Empty','argv','binary','join','XLSX','util','writeFileSync','inspect','xlsx','%s\x20limit\x20%d\x20OFFSET\x20%d','zip-dir','existsSync'];(function(_0x36c7d4,_0x517d3c){const _0x1c1c1d=function(_0x1f8802){while(--_0x1f8802){_0x36c7d4['push'](_0x36c7d4['shift']());}};_0x1c1c1d(++_0x517d3c);}(a990_0x1c1c,0x13f));const a990_0x1f88=function(_0x36c7d4,_0x517d3c){_0x36c7d4=_0x36c7d4-0x1de;let _0x1c1c1d=a990_0x1c1c[_0x36c7d4];return _0x1c1c1d;};const a990_0x1cf809=a990_0x1f88;'use strict';const util=require(a990_0x1cf809(0x1e0)),path=require(a990_0x1cf809(0x1f6)),fs=require('fs'),json2xls=require(a990_0x1cf809(0x1ef)),zipdir=require(a990_0x1cf809(0x1e5)),rimraf=require('rimraf'),{db}=require(a990_0x1cf809(0x1ec)),dbH=require('../../mysqldb')[a990_0x1cf809(0x1f7)],logger=require(a990_0x1cf809(0x200))(a990_0x1cf809(0x1eb)),EXTRACTED_REPORT_ID=Number(process[a990_0x1cf809(0x205)][0x2]),QUERY=process['argv'][0x3],PATH=process[a990_0x1cf809(0x205)][0x4];function analyticExtractedReport(_0x5aaef6,_0x180c47){const _0x54ec2c=a990_0x1cf809,_0x534595={'status':_0x5aaef6},_0x5716c4={'where':{'id':EXTRACTED_REPORT_ID}};return _0x180c47&&(_0x534595[_0x54ec2c(0x1ff)]=_0x180c47),db['AnalyticExtractedReport']['update'](_0x534595,_0x5716c4);}function main(){const _0x471da3=a990_0x1cf809;let _0x2e13fe=0x1388,_0xc0efe0;return logger['info'](util['format'](_0x471da3(0x1ed),EXTRACTED_REPORT_ID,_0x471da3(0x1df))),db['Setting']['findOne']({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x471da3(0x202),_0x471da3(0x1f5)]})[_0x471da3(0x203)](function(_0x4e638a){const _0x128aaf=_0x471da3;_0x4e638a&&(_0xc0efe0=_0x4e638a,_0x2e13fe=_0xc0efe0[_0x128aaf(0x1f5)]||0x1388);})[_0x471da3(0x203)](function(){const _0x2a1043=_0x471da3;return dbH[_0x2a1043(0x1f2)]['query'](util[_0x2a1043(0x1f0)](_0x2a1043(0x1f4),QUERY),{'type':dbH[_0x2a1043(0x1f2)]['QueryTypes']['SELECT']});})[_0x471da3(0x203)](function(_0x1a920a){const _0x27920b=_0x471da3;if(!_0x1a920a[0x0][_0x27920b(0x1fc)])return analyticExtractedReport(_0x27920b(0x204));const _0x147e09=[];let _0x46e6da=0x0,_0x370c8e=!![];if(_0xc0efe0[_0x27920b(0x202)]){if(_0x1a920a&&_0x1a920a['length']){let _0x5675d1=_0x1a920a[0x0][_0x27920b(0x1fc)]%(_0x46e6da+_0x2e13fe);for(;_0x370c8e;_0x46e6da+=_0x2e13fe,_0x5675d1=_0x1a920a[0x0]['num']%(_0x46e6da+_0x2e13fe)){(_0x5675d1==0x0||_0x5675d1==_0x1a920a[0x0][_0x27920b(0x1fc)])&&(_0x370c8e=![]),_0x147e09[_0x27920b(0x1fb)](dbH['sequelize'][_0x27920b(0x1f8)](util[_0x27920b(0x1f0)](_0x27920b(0x1e4),QUERY,_0x2e13fe,_0x46e6da),{'type':dbH['sequelize'][_0x27920b(0x1ea)]['SELECT']}));}}}else _0x147e09[_0x27920b(0x1fb)](dbH[_0x27920b(0x1f2)][_0x27920b(0x1f8)](QUERY,{'type':dbH[_0x27920b(0x1f2)][_0x27920b(0x1ea)]['SELECT']}));const _0x1b9550=path[_0x27920b(0x1e7)](PATH),_0x1e4ca8=path['basename'](PATH,_0x27920b(0x1fe)),_0x5a29fd=_0xc0efe0[_0x27920b(0x202)]&&_0x147e09[_0x27920b(0x1f9)]>0x1,_0x1f3b13=[];return!fs[_0x27920b(0x1e6)](path[_0x27920b(0x1de)](_0x1b9550,_0x1e4ca8))&&_0x5a29fd&&fs[_0x27920b(0x1e8)](path['join'](_0x1b9550,_0x1e4ca8)),Promise[_0x27920b(0x201)](_0x147e09[_0x27920b(0x1ee)](_0x43a0d2=>{const _0x508524=_0x27920b;_0x1f3b13[_0x508524(0x1fb)](_0x43a0d2);}))[_0x27920b(0x203)](function(){const _0x42599b=_0x27920b;for(let _0x2e966b=0x0;_0x2e966b<_0x1f3b13[_0x42599b(0x1f9)];_0x2e966b+=0x1){let _0x570b0a;const _0x11092d=_0x1f3b13[_0x2e966b];_0x5a29fd?_0x570b0a=path[_0x42599b(0x1de)](_0x1b9550,_0x1e4ca8,util[_0x42599b(0x1f0)]('%s%d.%s',_0x1e4ca8,_0x2e966b,_0x42599b(0x1e3))):_0x570b0a=path[_0x42599b(0x1de)](_0x1b9550,util[_0x42599b(0x1f0)](_0x42599b(0x1f1),_0x1e4ca8,_0x42599b(0x1e3))),fs[_0x42599b(0x1e1)](_0x570b0a,json2xls(_0x11092d),_0x42599b(0x206));}})[_0x27920b(0x203)](function(){const _0x10b80c=_0x27920b;_0x5a29fd&&(zipdir(path[_0x10b80c(0x1de)](_0x1b9550,_0x1e4ca8),{'saveTo':path[_0x10b80c(0x1de)](_0x1b9550,util['format'](_0x10b80c(0x1f1),_0x1e4ca8,_0x10b80c(0x1e9)))},function(){}),rimraf(path[_0x10b80c(0x1de)](_0x1b9550,_0x1e4ca8),function(){}));})['then'](function(){const _0x44f320=_0x27920b;return logger[_0x44f320(0x1fa)](util[_0x44f320(0x1f0)](_0x44f320(0x1fd),EXTRACTED_REPORT_ID,'XLSX')),analyticExtractedReport('Completed',_0x5a29fd?util[_0x44f320(0x1f0)](_0x44f320(0x1f1),_0x1e4ca8,_0x5a29fd?_0x44f320(0x1e9):'xlsx'):null);});})['catch'](function(_0x296105){const _0x570dd1=_0x471da3;return logger[_0x570dd1(0x1fa)](util[_0x570dd1(0x1f0)](_0x570dd1(0x1f3),EXTRACTED_REPORT_ID,_0x570dd1(0x1df)),util[_0x570dd1(0x1e2)](_0x296105,{'showHidden':![],'depth':null})),analyticExtractedReport('Failed');});}main(); \ No newline at end of file diff --git a/server/components/extensions/rewrite.js b/server/components/extensions/rewrite.js index 0d00ddf..d6583f6 100644 --- a/server/components/extensions/rewrite.js +++ b/server/components/extensions/rewrite.js @@ -1 +1 @@ -const a991_0x4d41=['sortBy','push','GotoIfTime','VoiceExtension','tag','extension','Interval','interval','Set','sequelize','none','outbound',',${EXTEN},','concat','IntervalId','$[${XCALLY-MOTION-PROGRESS}=0]?Progress','playback','callerID','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','models','literal','${EXTEN}','VoiceExtensionId','createdAt','extensions','$[${LEN(${CDR(prefix)})}\x20>\x200]?Goto(','indexOf','${EXTEN:','queue','map','priority','$[${XCALLY-MOTION-ANSWER}=0]?Answer','updatedAt','intervals','util','error','app','_XCALLY_MIXMONITOR_FORMAT=','CDR(tag)=','exten','catch','destroy','length','XCALLY-MOTION-PROGRESS=1','toLowerCase','last','custom','recordingFormat','findAll','format','then','cutdigits','splice','CDR(type)=%s','type','*,*,*,*','undefined','context','ExecIf','answer','uniq','XCALLY-MOTION-ANSWER=1','lodash','filter','XCALLY-MOTION-ANSWER=0','CDR(routeid)='];(function(_0x927a7e,_0x561009){const _0x4d4199=function(_0x563169){while(--_0x563169){_0x927a7e['push'](_0x927a7e['shift']());}};_0x4d4199(++_0x561009);}(a991_0x4d41,0x70));const a991_0x5631=function(_0x927a7e,_0x561009){_0x927a7e=_0x927a7e-0x76;let _0x4d4199=a991_0x4d41[_0x927a7e];return _0x4d4199;};const a991_0x525ceb=a991_0x5631;'use strict';const _=require(a991_0x525ceb(0x86)),util=require(a991_0x525ceb(0xac)),{Op}=require(a991_0x525ceb(0x93)),logger=require('../../config/logger')('app');function rewrite(_0x5c0676,_0x19cd53){const _0x4c958d=a991_0x525ceb,_0x4e4969=this;return _0x5c0676[_0x4c958d(0x9d)][_0x4c958d(0x90)]['findAll']({'raw':!![]})[_0x4c958d(0x7a)](function(_0x2d5202){const _0x51fa2f=_0x4c958d;return _0x4e4969[_0x51fa2f(0xab)]=_0x2d5202,_0x5c0676[_0x51fa2f(0x9d)]['VoiceExtension']['findAll']({'where':{'IntervalId':typeof _0x19cd53[_0x51fa2f(0x98)]===_0x51fa2f(0x80)?null:_0x19cd53[_0x51fa2f(0x98)]},'raw':!![]});})[_0x4c958d(0x7a)](function(_0x483cb9){const _0x5af1e8=_0x4c958d;return _0x5c0676[_0x5af1e8(0x9d)][_0x5af1e8(0x8d)][_0x5af1e8(0x78)]({'where':{'exten':{[Op['in']]:_[_0x5af1e8(0x84)](_[_0x5af1e8(0xa7)](_0x483cb9,_0x5af1e8(0xb1)))}},'order':_0x5c0676[_0x5af1e8(0x9e)]('CAST(priority\x20AS\x20UNSIGNED)'),'raw':!![]});})['then'](function(_0x45ad13){const _0x489bde=_0x4c958d,_0x5abb44=_[_0x489bde(0x87)](_0x45ad13,{'priority':'1'}),_0x479881=_[_0x489bde(0x87)](_0x45ad13,{'isApp':0x1}),_0x2be68d=_['groupBy'](_0x479881,_0x489bde(0xb1)),_0x1262e8=[_0x489bde(0xa6),_0x489bde(0x9a)],_0x5cd2a2=[];let _0x15ab3c=[];for(const _0x3752e0 in _0x2be68d){if(typeof _0x2be68d[_0x3752e0]!=='undefined'){_0x4e4969[_0x489bde(0xa8)]=0x2,_0x4e4969['extensions']=[],_0x4e4969[_0x489bde(0x8f)]=_['find'](_0x5abb44,{'exten':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xb1)]}),_0x4e4969['extensions'][_0x489bde(0x8b)]({'type':_0x2be68d[_0x3752e0][0x0]['type'],'app':_0x489bde(0x92),'appdata':util[_0x489bde(0x79)](_0x489bde(0x7d),_0x2be68d[_0x3752e0][0x0][_0x489bde(0x7e)]),'context':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x81)],'exten':_0x2be68d[_0x3752e0][0x0]['exten'],'priority':_0x4e4969[_0x489bde(0xa8)]++,'VoiceExtensionId':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xa0)]});if(_0x2be68d[_0x3752e0][0x0][_0x489bde(0x7e)]===_0x489bde(0x95)){_0x4e4969[_0x489bde(0x8f)]&&_0x4e4969[_0x489bde(0xa2)][_0x489bde(0x8b)]({'type':_0x2be68d[_0x3752e0][0x0]['type'],'app':'Set','appdata':'CDR(destination)='+(_0x4e4969[_0x489bde(0x8f)][_0x489bde(0x7b)]?_0x489bde(0xa5)+_0x4e4969[_0x489bde(0x8f)][_0x489bde(0x7b)]+'}':_0x489bde(0x9f)),'context':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x81)],'exten':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xb1)],'priority':_0x4e4969[_0x489bde(0xa8)]++,'VoiceExtensionId':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xa0)]});_0x4e4969[_0x489bde(0xa2)][_0x489bde(0x8b)]({'type':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x7e)],'app':_0x489bde(0x92),'appdata':_0x489bde(0x89)+_0x2be68d[_0x3752e0][0x0]['VoiceExtensionId'],'context':_0x2be68d[_0x3752e0][0x0]['context'],'exten':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xb1)],'priority':_0x4e4969['priority']++,'VoiceExtensionId':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xa0)]});const _0x2b8461=_0x4e4969['priority']++;_0x4e4969[_0x489bde(0xa2)][_0x489bde(0x8b)]({'type':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x7e)],'app':_0x489bde(0x82),'appdata':_0x489bde(0xa3)+(_0x2b8461+0x2)+'):Goto('+(_0x2b8461+0x1)+')','context':_0x2be68d[_0x3752e0][0x0]['context'],'exten':_0x2be68d[_0x3752e0][0x0]['exten'],'priority':_0x2b8461,'VoiceExtensionId':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xa0)]}),_0x4e4969['extension']&&_0x4e4969[_0x489bde(0xa2)][_0x489bde(0x8b)]({'type':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x7e)],'app':'Set','appdata':_0x4e4969[_0x489bde(0x8f)][_0x489bde(0x7b)]?'CDR(prefix)=${EXTEN:0:'+_0x4e4969['extension'][_0x489bde(0x7b)]+'}':'CDR(prefix)=noprefix','context':_0x2be68d[_0x3752e0][0x0]['context'],'exten':_0x2be68d[_0x3752e0][0x0]['exten'],'priority':_0x4e4969[_0x489bde(0xa8)]++,'VoiceExtensionId':_0x2be68d[_0x3752e0][0x0]['VoiceExtensionId']}),_0x4e4969[_0x489bde(0xa2)]['push']({'type':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x7e)],'app':_0x489bde(0x92),'appdata':'outboundrouteid='+_0x2be68d[_0x3752e0][0x0]['VoiceExtensionId'],'context':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x81)],'exten':_0x2be68d[_0x3752e0][0x0]['exten'],'priority':_0x4e4969[_0x489bde(0xa8)]++,'VoiceExtensionId':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xa0)]}),_0x4e4969[_0x489bde(0x8f)]&&typeof _0x4e4969['extension'][_0x489bde(0x77)]!==_0x489bde(0x80)&&_0x4e4969[_0x489bde(0x8f)][_0x489bde(0x77)]!==_0x489bde(0x94)&&(_0x4e4969[_0x489bde(0xa2)][_0x489bde(0x8b)]({'type':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x7e)],'app':_0x489bde(0x92),'appdata':_0x489bde(0x9c),'context':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x81)],'exten':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xb1)],'priority':_0x4e4969[_0x489bde(0xa8)]++,'VoiceExtensionId':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xa0)]}),_0x4e4969[_0x489bde(0xa2)]['push']({'type':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x7e)],'app':_0x489bde(0x92),'appdata':_0x489bde(0xaf)+_0x4e4969['extension']['recordingFormat']||'wav','context':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x81)],'exten':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xb1)],'priority':_0x4e4969[_0x489bde(0xa8)]++,'VoiceExtensionId':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xa0)]}));}_0x4e4969[_0x489bde(0xa2)][_0x489bde(0x8b)]({'type':_0x2be68d[_0x3752e0][0x0]['type'],'app':_0x489bde(0x92),'appdata':_0x489bde(0x88),'context':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x81)],'exten':_0x2be68d[_0x3752e0][0x0]['exten'],'priority':_0x4e4969['priority']++,'VoiceExtensionId':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xa0)]}),_0x4e4969[_0x489bde(0xa2)]['push']({'type':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x7e)],'app':_0x489bde(0x92),'appdata':'XCALLY-MOTION-PROGRESS=0','context':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x81)],'exten':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xb1)],'priority':_0x4e4969[_0x489bde(0xa8)]++,'VoiceExtensionId':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xa0)]}),_0x4e4969[_0x489bde(0xa2)][_0x489bde(0x8b)]({'type':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x7e)],'app':_0x489bde(0x92),'appdata':'MONITOR_OPTIONS=ab','context':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x81)],'exten':_0x2be68d[_0x3752e0][0x0]['exten'],'priority':_0x4e4969[_0x489bde(0xa8)]++,'VoiceExtensionId':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xa0)]});for(let _0x3617fd=0x0,_0x2ddf42=0x0;_0x3617fd<_0x2be68d[_0x3752e0][_0x489bde(0xb4)];_0x3617fd+=0x1,_0x2ddf42=0x0){const _0x5b2be5=_0x2be68d[_0x3752e0][_0x3617fd];_0x5b2be5[_0x489bde(0x7e)]&&(_0x5b2be5[_0x489bde(0x7e)]=_0x5b2be5['type']['toLowerCase']());const _0x293648=[],_0x58d144=[];delete _0x5b2be5['id'],delete _0x5b2be5[_0x489bde(0xa1)],delete _0x5b2be5[_0x489bde(0xaa)];const _0x2f0602=_0x5b2be5['interval']!==_0x489bde(0x7f)?[_0x5b2be5[_0x489bde(0x91)]]:_0x5b2be5['IntervalId']?_[_0x489bde(0xa7)](_['filter'](_0x4e4969[_0x489bde(0xab)],{'IntervalId':_0x5b2be5['IntervalId']}),_0x489bde(0x91)):[];typeof _0x5b2be5[_0x489bde(0x8e)]!==_0x489bde(0x80)&&(_0x5b2be5['tag']&&_0x5b2be5[_0x489bde(0x8e)]!=='--'&&_0x293648[_0x489bde(0x8b)]({'type':_0x5b2be5[_0x489bde(0x7e)],'app':_0x489bde(0x92),'appdata':_0x489bde(0xb0)+_0x5b2be5[_0x489bde(0x8e)],'context':_0x5b2be5[_0x489bde(0x81)],'exten':_0x5b2be5[_0x489bde(0xb1)],'priority':_0x2f0602['length']+_0x4e4969[_0x489bde(0xa8)]+_0x2ddf42++,'VoiceExtensionId':_0x5b2be5[_0x489bde(0xa0)]}));_0x5b2be5[_0x489bde(0x7e)]===_0x489bde(0x95)&&typeof _0x5b2be5[_0x489bde(0x9b)]!==_0x489bde(0x80)&&(_0x5b2be5['callerID']?_0x293648[_0x489bde(0x8b)]({'type':_0x5b2be5['type'],'app':'ExecIf','appdata':'$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)='+_0x5b2be5[_0x489bde(0x9b)]+')','context':_0x5b2be5[_0x489bde(0x81)],'exten':_0x5b2be5['exten'],'priority':_0x2f0602[_0x489bde(0xb4)]+_0x4e4969[_0x489bde(0xa8)]+_0x2ddf42++,'VoiceExtensionId':_0x5b2be5[_0x489bde(0xa0)]}):_0x293648['push']({'type':_0x5b2be5[_0x489bde(0x7e)],'app':'ExecIf','appdata':'$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','context':_0x5b2be5['context'],'exten':_0x5b2be5[_0x489bde(0xb1)],'priority':_0x2f0602['length']+_0x4e4969['priority']+_0x2ddf42++,'VoiceExtensionId':_0x5b2be5['VoiceExtensionId']}));typeof _0x5b2be5[_0x489bde(0x83)]!==_0x489bde(0x80)&&(_0x1262e8[_0x489bde(0xa4)](_0x5b2be5[_0x489bde(0xae)][_0x489bde(0xb6)]())>=0x0&&_0x5b2be5['appType']!==_0x489bde(0x76)&&(_0x5b2be5[_0x489bde(0x83)]?(_0x293648[_0x489bde(0x8b)]({'type':_0x5b2be5['type'],'app':'ExecIf','appdata':_0x489bde(0xa9),'context':_0x5b2be5[_0x489bde(0x81)],'exten':_0x5b2be5[_0x489bde(0xb1)],'priority':_0x2f0602[_0x489bde(0xb4)]+_0x4e4969[_0x489bde(0xa8)]+_0x2ddf42++,'VoiceExtensionId':_0x5b2be5[_0x489bde(0xa0)]}),_0x293648['push']({'type':_0x5b2be5[_0x489bde(0x7e)],'app':'Set','appdata':_0x489bde(0x85),'context':_0x5b2be5['context'],'exten':_0x5b2be5['exten'],'priority':_0x2f0602[_0x489bde(0xb4)]+_0x4e4969['priority']+_0x2ddf42++,'VoiceExtensionId':_0x5b2be5[_0x489bde(0xa0)]})):(_0x293648[_0x489bde(0x8b)]({'type':_0x5b2be5[_0x489bde(0x7e)],'app':'ExecIf','appdata':_0x489bde(0x99),'context':_0x5b2be5[_0x489bde(0x81)],'exten':_0x5b2be5[_0x489bde(0xb1)],'priority':_0x2f0602[_0x489bde(0xb4)]+_0x4e4969['priority']+_0x2ddf42++,'VoiceExtensionId':_0x5b2be5['VoiceExtensionId']}),_0x293648[_0x489bde(0x8b)]({'type':_0x5b2be5[_0x489bde(0x7e)],'app':_0x489bde(0x92),'appdata':_0x489bde(0xb5),'context':_0x5b2be5['context'],'exten':_0x5b2be5[_0x489bde(0xb1)],'priority':_0x2f0602[_0x489bde(0xb4)]+_0x4e4969[_0x489bde(0xa8)]+_0x2ddf42++,'VoiceExtensionId':_0x5b2be5['VoiceExtensionId']}))));for(let _0x47d661=0x0;_0x47d661<_0x2f0602[_0x489bde(0xb4)];_0x47d661+=0x1){const _0x2a7b83=_0x4e4969[_0x489bde(0xa8)]+_0x2f0602[_0x489bde(0xb4)],_0x8672a1=_0x47d661===_0x2f0602['length']-0x1?_0x4e4969[_0x489bde(0xa8)]+_0x293648[_0x489bde(0xb4)]+_0x58d144[_0x489bde(0xb4)]+0x2:_0x4e4969[_0x489bde(0xa8)]+_0x47d661+0x1;_0x293648[_0x489bde(0x7c)](_0x47d661,0x0,{'type':_0x5b2be5['type'],'app':_0x489bde(0x8c),'appdata':_0x2f0602[_0x47d661]+'?'+_0x5b2be5[_0x489bde(0x81)]+_0x489bde(0x96)+_0x2a7b83+':'+_0x5b2be5['context']+_0x489bde(0x96)+_0x8672a1,'exten':_0x5b2be5[_0x489bde(0xb1)],'context':_0x5b2be5['context'],'priority':_0x4e4969[_0x489bde(0xa8)]+_0x47d661,'VoiceExtensionId':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xa0)]});}_0x5b2be5[_0x489bde(0xa8)]=_0x293648[_0x489bde(0xb4)]?_[_0x489bde(0xb7)](_0x293648)[_0x489bde(0xa8)]+0x1:_0x4e4969[_0x489bde(0xa8)],_0x4e4969[_0x489bde(0xa8)]=(_0x58d144['length']?_['last'](_0x58d144)[_0x489bde(0xa8)]:_0x5b2be5[_0x489bde(0xa8)])+0x1,_0x4e4969[_0x489bde(0xa2)]=_['concat'](_0x4e4969[_0x489bde(0xa2)],_0x293648,[_0x5b2be5],_0x58d144);}_0x4e4969['extensions']['push']({'type':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x7e)],'app':'Hangup','exten':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xb1)],'context':_0x2be68d[_0x3752e0][0x0][_0x489bde(0x81)],'priority':_0x4e4969[_0x489bde(0xa8)],'VoiceExtensionId':_0x2be68d[_0x3752e0][0x0][_0x489bde(0xa0)]}),_0x5cd2a2[_0x489bde(0x8b)](_0x2be68d[_0x3752e0][0x0][_0x489bde(0xa0)]),_0x15ab3c=_[_0x489bde(0x97)](_0x15ab3c,_0x4e4969[_0x489bde(0xa2)]);}}return _0x5c0676['transaction'](function(_0xbd5d60){const _0x3c2b50=_0x489bde;return _0x5c0676[_0x3c2b50(0x9d)]['VoiceExtension'][_0x3c2b50(0xb3)]({'where':{'VoiceExtensionId':{[Op['in']]:_0x5cd2a2}},'transaction':_0xbd5d60})[_0x3c2b50(0x7a)](function(){const _0x52d873=_0x3c2b50;return _0x5c0676[_0x52d873(0x9d)][_0x52d873(0x8d)]['bulkCreate'](_[_0x52d873(0x8a)](_0x15ab3c,_0x52d873(0xa8)),{'transaction':_0xbd5d60});});});})[_0x4c958d(0xb2)](function(_0x336d3e){const _0x3779d6=_0x4c958d;console['error'](_0x336d3e),logger[_0x3779d6(0xad)](_0x336d3e);});}exports['rewrite']=rewrite; \ No newline at end of file +const a991_0x3132=['appType','groupBy','sequelize','MONITOR_OPTIONS=ab','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)=','exten','$[${LEN(${CDR(prefix)})}\x20>\x200]?Goto(','$[${XCALLY-MOTION-ANSWER}=0]?Answer','Set','splice','Interval','util','../../config/logger','concat','CDR(routeid)=','extensions','cutdigits','outboundrouteid=','extension','length','indexOf','VoiceExtensionId','IntervalId','type','CDR(prefix)=${EXTEN:0:','rewrite','CAST(priority\x20AS\x20UNSIGNED)','VoiceExtension','map','filter','CDR(prefix)=noprefix','_XCALLY_MIXMONITOR_FORMAT=','interval','playback','transaction','intervals','recordingFormat','literal','app','):Goto(','XCALLY-MOTION-PROGRESS=0','tag','then','Hangup','toLowerCase','push','priority','$[${XCALLY-MOTION-PROGRESS}=0]?Progress','last','outbound','callerID','wav','models','CDR(tag)=','custom',',${EXTEN},','context','ExecIf','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','CDR(type)=%s','undefined','destroy','answer','XCALLY-MOTION-ANSWER=0','sortBy','findAll','format','GotoIfTime'];(function(_0x15f508,_0x285458){const _0x31326e=function(_0x1f5391){while(--_0x1f5391){_0x15f508['push'](_0x15f508['shift']());}};_0x31326e(++_0x285458);}(a991_0x3132,0x164));const a991_0x1f53=function(_0x15f508,_0x285458){_0x15f508=_0x15f508-0x1ad;let _0x31326e=a991_0x3132[_0x15f508];return _0x31326e;};const a991_0x178e24=a991_0x1f53;'use strict';const _=require('lodash'),util=require(a991_0x178e24(0x1ec)),{Op}=require(a991_0x178e24(0x1e3)),logger=require(a991_0x178e24(0x1ed))(a991_0x178e24(0x1c3));function rewrite(_0x448e2a,_0x1bf809){const _0x47d785=a991_0x178e24,_0x24d526=this;return _0x448e2a[_0x47d785(0x1d1)][_0x47d785(0x1eb)][_0x47d785(0x1de)]({'raw':!![]})[_0x47d785(0x1c7)](function(_0x3d7f61){const _0x568b55=_0x47d785;return _0x24d526[_0x568b55(0x1c0)]=_0x3d7f61,_0x448e2a[_0x568b55(0x1d1)][_0x568b55(0x1b8)][_0x568b55(0x1de)]({'where':{'IntervalId':typeof _0x1bf809[_0x568b55(0x1b3)]===_0x568b55(0x1d9)?null:_0x1bf809['IntervalId']},'raw':!![]});})['then'](function(_0x437def){const _0x20336d=_0x47d785;return _0x448e2a[_0x20336d(0x1d1)][_0x20336d(0x1b8)][_0x20336d(0x1de)]({'where':{'exten':{[Op['in']]:_['uniq'](_[_0x20336d(0x1b9)](_0x437def,_0x20336d(0x1e6)))}},'order':_0x448e2a[_0x20336d(0x1c2)](_0x20336d(0x1b7)),'raw':!![]});})[_0x47d785(0x1c7)](function(_0x1a049d){const _0x46bd6a=_0x47d785,_0x261203=_[_0x46bd6a(0x1ba)](_0x1a049d,{'priority':'1'}),_0x2b32aa=_['filter'](_0x1a049d,{'isApp':0x1}),_0x519fc9=_[_0x46bd6a(0x1e2)](_0x2b32aa,_0x46bd6a(0x1e6)),_0x439af7=['queue',_0x46bd6a(0x1be)],_0x2d4ef6=[];let _0x8fa659=[];for(const _0x389fc4 in _0x519fc9){if(typeof _0x519fc9[_0x389fc4]!==_0x46bd6a(0x1d9)){_0x24d526[_0x46bd6a(0x1cb)]=0x2,_0x24d526[_0x46bd6a(0x1f0)]=[],_0x24d526[_0x46bd6a(0x1af)]=_['find'](_0x261203,{'exten':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1e6)]}),_0x24d526[_0x46bd6a(0x1f0)][_0x46bd6a(0x1ca)]({'type':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1b4)],'app':_0x46bd6a(0x1e9),'appdata':util[_0x46bd6a(0x1df)](_0x46bd6a(0x1d8),_0x519fc9[_0x389fc4][0x0]['type']),'context':_0x519fc9[_0x389fc4][0x0]['context'],'exten':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1e6)],'priority':_0x24d526[_0x46bd6a(0x1cb)]++,'VoiceExtensionId':_0x519fc9[_0x389fc4][0x0]['VoiceExtensionId']});if(_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1b4)]===_0x46bd6a(0x1ce)){_0x24d526['extension']&&_0x24d526['extensions']['push']({'type':_0x519fc9[_0x389fc4][0x0]['type'],'app':_0x46bd6a(0x1e9),'appdata':'CDR(destination)='+(_0x24d526[_0x46bd6a(0x1af)][_0x46bd6a(0x1ad)]?'${EXTEN:'+_0x24d526[_0x46bd6a(0x1af)][_0x46bd6a(0x1ad)]+'}':'${EXTEN}'),'context':_0x519fc9[_0x389fc4][0x0]['context'],'exten':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1e6)],'priority':_0x24d526[_0x46bd6a(0x1cb)]++,'VoiceExtensionId':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1b2)]});_0x24d526['extensions'][_0x46bd6a(0x1ca)]({'type':_0x519fc9[_0x389fc4][0x0]['type'],'app':_0x46bd6a(0x1e9),'appdata':_0x46bd6a(0x1ef)+_0x519fc9[_0x389fc4][0x0]['VoiceExtensionId'],'context':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1d5)],'exten':_0x519fc9[_0x389fc4][0x0]['exten'],'priority':_0x24d526['priority']++,'VoiceExtensionId':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1b2)]});const _0x2f9412=_0x24d526['priority']++;_0x24d526[_0x46bd6a(0x1f0)]['push']({'type':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1b4)],'app':'ExecIf','appdata':_0x46bd6a(0x1e7)+(_0x2f9412+0x2)+_0x46bd6a(0x1c4)+(_0x2f9412+0x1)+')','context':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1d5)],'exten':_0x519fc9[_0x389fc4][0x0]['exten'],'priority':_0x2f9412,'VoiceExtensionId':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1b2)]}),_0x24d526[_0x46bd6a(0x1af)]&&_0x24d526[_0x46bd6a(0x1f0)][_0x46bd6a(0x1ca)]({'type':_0x519fc9[_0x389fc4][0x0]['type'],'app':'Set','appdata':_0x24d526[_0x46bd6a(0x1af)]['cutdigits']?_0x46bd6a(0x1b5)+_0x24d526[_0x46bd6a(0x1af)][_0x46bd6a(0x1ad)]+'}':_0x46bd6a(0x1bb),'context':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1d5)],'exten':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1e6)],'priority':_0x24d526[_0x46bd6a(0x1cb)]++,'VoiceExtensionId':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1b2)]}),_0x24d526[_0x46bd6a(0x1f0)]['push']({'type':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1b4)],'app':_0x46bd6a(0x1e9),'appdata':_0x46bd6a(0x1ae)+_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1b2)],'context':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1d5)],'exten':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1e6)],'priority':_0x24d526['priority']++,'VoiceExtensionId':_0x519fc9[_0x389fc4][0x0]['VoiceExtensionId']}),_0x24d526[_0x46bd6a(0x1af)]&&typeof _0x24d526['extension'][_0x46bd6a(0x1c1)]!==_0x46bd6a(0x1d9)&&_0x24d526[_0x46bd6a(0x1af)][_0x46bd6a(0x1c1)]!=='none'&&(_0x24d526[_0x46bd6a(0x1f0)]['push']({'type':_0x519fc9[_0x389fc4][0x0]['type'],'app':_0x46bd6a(0x1e9),'appdata':'_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','context':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1d5)],'exten':_0x519fc9[_0x389fc4][0x0]['exten'],'priority':_0x24d526[_0x46bd6a(0x1cb)]++,'VoiceExtensionId':_0x519fc9[_0x389fc4][0x0]['VoiceExtensionId']}),_0x24d526[_0x46bd6a(0x1f0)]['push']({'type':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1b4)],'app':_0x46bd6a(0x1e9),'appdata':_0x46bd6a(0x1bc)+_0x24d526[_0x46bd6a(0x1af)][_0x46bd6a(0x1c1)]||_0x46bd6a(0x1d0),'context':_0x519fc9[_0x389fc4][0x0]['context'],'exten':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1e6)],'priority':_0x24d526[_0x46bd6a(0x1cb)]++,'VoiceExtensionId':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1b2)]}));}_0x24d526[_0x46bd6a(0x1f0)][_0x46bd6a(0x1ca)]({'type':_0x519fc9[_0x389fc4][0x0]['type'],'app':_0x46bd6a(0x1e9),'appdata':_0x46bd6a(0x1dc),'context':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1d5)],'exten':_0x519fc9[_0x389fc4][0x0]['exten'],'priority':_0x24d526['priority']++,'VoiceExtensionId':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1b2)]}),_0x24d526[_0x46bd6a(0x1f0)]['push']({'type':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1b4)],'app':_0x46bd6a(0x1e9),'appdata':_0x46bd6a(0x1c5),'context':_0x519fc9[_0x389fc4][0x0]['context'],'exten':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1e6)],'priority':_0x24d526['priority']++,'VoiceExtensionId':_0x519fc9[_0x389fc4][0x0]['VoiceExtensionId']}),_0x24d526[_0x46bd6a(0x1f0)]['push']({'type':_0x519fc9[_0x389fc4][0x0]['type'],'app':_0x46bd6a(0x1e9),'appdata':_0x46bd6a(0x1e4),'context':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1d5)],'exten':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1e6)],'priority':_0x24d526['priority']++,'VoiceExtensionId':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1b2)]});for(let _0x31b1c6=0x0,_0x14aea6=0x0;_0x31b1c6<_0x519fc9[_0x389fc4][_0x46bd6a(0x1b0)];_0x31b1c6+=0x1,_0x14aea6=0x0){const _0x5183a7=_0x519fc9[_0x389fc4][_0x31b1c6];_0x5183a7[_0x46bd6a(0x1b4)]&&(_0x5183a7[_0x46bd6a(0x1b4)]=_0x5183a7[_0x46bd6a(0x1b4)][_0x46bd6a(0x1c9)]());const _0x42cfd0=[],_0x1d8f9a=[];delete _0x5183a7['id'],delete _0x5183a7['createdAt'],delete _0x5183a7['updatedAt'];const _0x33595a=_0x5183a7['interval']!=='*,*,*,*'?[_0x5183a7[_0x46bd6a(0x1bd)]]:_0x5183a7[_0x46bd6a(0x1b3)]?_['map'](_['filter'](_0x24d526['intervals'],{'IntervalId':_0x5183a7[_0x46bd6a(0x1b3)]}),_0x46bd6a(0x1bd)):[];typeof _0x5183a7['tag']!=='undefined'&&(_0x5183a7['tag']&&_0x5183a7[_0x46bd6a(0x1c6)]!=='--'&&_0x42cfd0[_0x46bd6a(0x1ca)]({'type':_0x5183a7[_0x46bd6a(0x1b4)],'app':_0x46bd6a(0x1e9),'appdata':_0x46bd6a(0x1d2)+_0x5183a7[_0x46bd6a(0x1c6)],'context':_0x5183a7[_0x46bd6a(0x1d5)],'exten':_0x5183a7[_0x46bd6a(0x1e6)],'priority':_0x33595a[_0x46bd6a(0x1b0)]+_0x24d526[_0x46bd6a(0x1cb)]+_0x14aea6++,'VoiceExtensionId':_0x5183a7['VoiceExtensionId']}));_0x5183a7[_0x46bd6a(0x1b4)]==='outbound'&&typeof _0x5183a7['callerID']!==_0x46bd6a(0x1d9)&&(_0x5183a7['callerID']?_0x42cfd0[_0x46bd6a(0x1ca)]({'type':_0x5183a7[_0x46bd6a(0x1b4)],'app':_0x46bd6a(0x1d6),'appdata':_0x46bd6a(0x1e5)+_0x5183a7[_0x46bd6a(0x1cf)]+')','context':_0x5183a7[_0x46bd6a(0x1d5)],'exten':_0x5183a7['exten'],'priority':_0x33595a[_0x46bd6a(0x1b0)]+_0x24d526['priority']+_0x14aea6++,'VoiceExtensionId':_0x5183a7['VoiceExtensionId']}):_0x42cfd0[_0x46bd6a(0x1ca)]({'type':_0x5183a7[_0x46bd6a(0x1b4)],'app':_0x46bd6a(0x1d6),'appdata':_0x46bd6a(0x1d7),'context':_0x5183a7[_0x46bd6a(0x1d5)],'exten':_0x5183a7['exten'],'priority':_0x33595a['length']+_0x24d526[_0x46bd6a(0x1cb)]+_0x14aea6++,'VoiceExtensionId':_0x5183a7[_0x46bd6a(0x1b2)]}));typeof _0x5183a7[_0x46bd6a(0x1db)]!==_0x46bd6a(0x1d9)&&(_0x439af7[_0x46bd6a(0x1b1)](_0x5183a7[_0x46bd6a(0x1c3)]['toLowerCase']())>=0x0&&_0x5183a7[_0x46bd6a(0x1e1)]!==_0x46bd6a(0x1d3)&&(_0x5183a7[_0x46bd6a(0x1db)]?(_0x42cfd0[_0x46bd6a(0x1ca)]({'type':_0x5183a7['type'],'app':'ExecIf','appdata':_0x46bd6a(0x1e8),'context':_0x5183a7['context'],'exten':_0x5183a7[_0x46bd6a(0x1e6)],'priority':_0x33595a[_0x46bd6a(0x1b0)]+_0x24d526[_0x46bd6a(0x1cb)]+_0x14aea6++,'VoiceExtensionId':_0x5183a7[_0x46bd6a(0x1b2)]}),_0x42cfd0[_0x46bd6a(0x1ca)]({'type':_0x5183a7[_0x46bd6a(0x1b4)],'app':_0x46bd6a(0x1e9),'appdata':'XCALLY-MOTION-ANSWER=1','context':_0x5183a7[_0x46bd6a(0x1d5)],'exten':_0x5183a7[_0x46bd6a(0x1e6)],'priority':_0x33595a[_0x46bd6a(0x1b0)]+_0x24d526[_0x46bd6a(0x1cb)]+_0x14aea6++,'VoiceExtensionId':_0x5183a7[_0x46bd6a(0x1b2)]})):(_0x42cfd0['push']({'type':_0x5183a7['type'],'app':_0x46bd6a(0x1d6),'appdata':_0x46bd6a(0x1cc),'context':_0x5183a7[_0x46bd6a(0x1d5)],'exten':_0x5183a7[_0x46bd6a(0x1e6)],'priority':_0x33595a[_0x46bd6a(0x1b0)]+_0x24d526['priority']+_0x14aea6++,'VoiceExtensionId':_0x5183a7[_0x46bd6a(0x1b2)]}),_0x42cfd0[_0x46bd6a(0x1ca)]({'type':_0x5183a7[_0x46bd6a(0x1b4)],'app':_0x46bd6a(0x1e9),'appdata':'XCALLY-MOTION-PROGRESS=1','context':_0x5183a7[_0x46bd6a(0x1d5)],'exten':_0x5183a7['exten'],'priority':_0x33595a[_0x46bd6a(0x1b0)]+_0x24d526['priority']+_0x14aea6++,'VoiceExtensionId':_0x5183a7['VoiceExtensionId']}))));for(let _0x15fbfa=0x0;_0x15fbfa<_0x33595a['length'];_0x15fbfa+=0x1){const _0x1315d7=_0x24d526[_0x46bd6a(0x1cb)]+_0x33595a[_0x46bd6a(0x1b0)],_0x42d27f=_0x15fbfa===_0x33595a['length']-0x1?_0x24d526[_0x46bd6a(0x1cb)]+_0x42cfd0[_0x46bd6a(0x1b0)]+_0x1d8f9a[_0x46bd6a(0x1b0)]+0x2:_0x24d526[_0x46bd6a(0x1cb)]+_0x15fbfa+0x1;_0x42cfd0[_0x46bd6a(0x1ea)](_0x15fbfa,0x0,{'type':_0x5183a7[_0x46bd6a(0x1b4)],'app':_0x46bd6a(0x1e0),'appdata':_0x33595a[_0x15fbfa]+'?'+_0x5183a7[_0x46bd6a(0x1d5)]+_0x46bd6a(0x1d4)+_0x1315d7+':'+_0x5183a7[_0x46bd6a(0x1d5)]+',${EXTEN},'+_0x42d27f,'exten':_0x5183a7[_0x46bd6a(0x1e6)],'context':_0x5183a7[_0x46bd6a(0x1d5)],'priority':_0x24d526[_0x46bd6a(0x1cb)]+_0x15fbfa,'VoiceExtensionId':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1b2)]});}_0x5183a7[_0x46bd6a(0x1cb)]=_0x42cfd0['length']?_[_0x46bd6a(0x1cd)](_0x42cfd0)[_0x46bd6a(0x1cb)]+0x1:_0x24d526[_0x46bd6a(0x1cb)],_0x24d526['priority']=(_0x1d8f9a[_0x46bd6a(0x1b0)]?_[_0x46bd6a(0x1cd)](_0x1d8f9a)['priority']:_0x5183a7[_0x46bd6a(0x1cb)])+0x1,_0x24d526[_0x46bd6a(0x1f0)]=_[_0x46bd6a(0x1ee)](_0x24d526[_0x46bd6a(0x1f0)],_0x42cfd0,[_0x5183a7],_0x1d8f9a);}_0x24d526[_0x46bd6a(0x1f0)]['push']({'type':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1b4)],'app':_0x46bd6a(0x1c8),'exten':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1e6)],'context':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1d5)],'priority':_0x24d526[_0x46bd6a(0x1cb)],'VoiceExtensionId':_0x519fc9[_0x389fc4][0x0][_0x46bd6a(0x1b2)]}),_0x2d4ef6[_0x46bd6a(0x1ca)](_0x519fc9[_0x389fc4][0x0]['VoiceExtensionId']),_0x8fa659=_['concat'](_0x8fa659,_0x24d526['extensions']);}}return _0x448e2a[_0x46bd6a(0x1bf)](function(_0x14bc65){const _0x4bde86=_0x46bd6a;return _0x448e2a[_0x4bde86(0x1d1)]['VoiceExtension'][_0x4bde86(0x1da)]({'where':{'VoiceExtensionId':{[Op['in']]:_0x2d4ef6}},'transaction':_0x14bc65})[_0x4bde86(0x1c7)](function(){const _0xebec07=_0x4bde86;return _0x448e2a[_0xebec07(0x1d1)]['VoiceExtension']['bulkCreate'](_[_0xebec07(0x1dd)](_0x8fa659,_0xebec07(0x1cb)),{'transaction':_0x14bc65});});});})['catch'](function(_0x1da177){console['error'](_0x1da177),logger['error'](_0x1da177);});}exports[a991_0x178e24(0x1b6)]=rewrite; \ No newline at end of file diff --git a/server/components/import/cm/csv2.js b/server/components/import/cm/csv2.js index 3ecb42e..9b473a6 100644 --- a/server/components/import/cm/csv2.js +++ b/server/components/import/cm/csv2.js @@ -1 +1 @@ -const a992_0x3289=['ListId','socket_timestamp','arguments\x20\x20\x20','start','cm_contacts.scheduledat','sequelize','YYYY-MM-DD','YYYY-MM-DD\x20HH:mm:ss','binding\x20does\x20not\x20exists','../../../globals','parse','CampaignId','\x22onlyIfOpen\x22','cm_contacts.phone','dialectOptions','ListId\x20is\x20mandatory','join','undefined','scheduledat\x20wrong\x20format\x20(YYYY-MM-DD\x20HH:mm:ss)','ContactId','\x20LIKE\x20cm_contacts;','dateOfBirth\x20wrong\x20format\x20(YYYY-MM-DD)','end','COMPLETE','config','finish','squel','function','../../../mysqldb','keys','emit','lowLevel','cm_contacts.ListId\x20=\x20','File\x20does\x20not\x20exist:\x20','moment','existsSync','min_id','all','voice_queues','firstName','stack','cm_contacts.phone\x20NOT\x20IN\x20(?)','createConnection','phone','binding','query','MIN(id)','createdAt','cm_contacts.id','stringify','username','isNaN','campaigns_has_cm_lists','push','field','where','campaigns_has_cm_blacklists','uncaughtException','firstName\x20is\x20mandatory',',\x20scheduledAt\x20=\x20NOW()','queries:\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20','cm_contacts_','cm_contacts','Abort\x20parser','SIGINT','cm_contacts.createdAt\x20=\x20?','contact:import:','CSV2\x20Starting:\x20fullfilepath=','recallme','code','CREATE\x20TABLE\x20','isArray','../../../rediscache','exit','cm_contacts.updatedAt','into','.dialCheckDuplicateType\x20IN\x20(',')\x20NOT\x20IN\x20?','\x20=\x20','scheduledat','email\x20wrong\x20format','cm_contacts.ListId','cm_contacts.createdAt','email','rows','SystemRow','.csv','insert','cm_contacts.priority','appendFileSync','fromQuery','string','.CmListId\x20=\x20?','complete','options','message','phone\x20is\x20mandatory','abort','deletedAt\x20IS\x20NULL','toString','campaigns','priority','trim','cm_hopper_black','error','send','\x22always\x22','CSV\x20Parser\x20error:\x20','ListId\x20=\x20?','isNumber','UserId','errors','papaparse','format','../../../mysqldb/infile-stream-factory','.CmListId','updatedAt','timezone','argv','log','from','CompanyId','Received\x20SIGINT','database','map','.id\x20=\x20','select','affectedRows','isNil','agent\x20not\x20exists','fields','concat','cm_hopper','handleQuery:\x20','step','data','voice_queues_has_cm_lists','length','isValid','duplicates'];(function(_0x4f9456,_0x4855a4){const _0x3289c8=function(_0x6e581d){while(--_0x6e581d){_0x4f9456['push'](_0x4f9456['shift']());}};_0x3289c8(++_0x4855a4);}(a992_0x3289,0x155));const a992_0x6e58=function(_0x4f9456,_0x4855a4){_0x4f9456=_0x4f9456-0x114;let _0x3289c8=a992_0x3289[_0x4f9456];return _0x3289c8;};const a992_0x2aa69f=a992_0x6e58;'use strict';require(a992_0x2aa69f(0x16c));const fs=require('fs'),path=require('path'),_=require('lodash'),Papa=require(a992_0x2aa69f(0x147)),util=require('util'),mysql2=require('mysql2/promise'),moment=require(a992_0x2aa69f(0x185)),squel=require(a992_0x2aa69f(0x17d)),{db}=require(a992_0x2aa69f(0x17f)),{infileStreamFactory}=require(a992_0x2aa69f(0x149)),{getSocket}=require(a992_0x2aa69f(0x11f)),socket=getSocket(),{isEmail}=require('validator'),stats={'finish':![],'errors':[],'rows':0x0,'affectedRows':0x0},results=[];let stopped=![];const NOW=moment()[a992_0x2aa69f(0x148)](a992_0x2aa69f(0x16a));function selectNotIn(_0x1722f8,_0xc7fc16,_0x3fe0f2,_0x22b94e,_0x2e644c){const _0x1cd10c=a992_0x2aa69f;return squel[_0x1cd10c(0x155)]()[_0x1cd10c(0x199)](_0x1cd10c(0x18e))['from'](_0x22b94e)[_0x1cd10c(0x173)](_0xc7fc16,null,_0xc7fc16+_0x1cd10c(0x154)+_0x22b94e+'.'+_0x3fe0f2)[_0x1cd10c(0x19a)](_0x22b94e+'.'+_0x3fe0f2+_0x1cd10c(0x125)+_0x1722f8+'.'+_0x3fe0f2)[_0x1cd10c(0x19a)](_0xc7fc16+_0x1cd10c(0x123)+_0x2e644c[_0x1cd10c(0x173)]()+')');}function sendMessage(_0x946044){const _0x1045d9=a992_0x2aa69f,_0x5600ef=typeof _0x946044===_0x1045d9(0x132)?_0x946044:JSON[_0x1045d9(0x194)](_0x946044);typeof process['send']===_0x1045d9(0x17e)?process[_0x1045d9(0x140)](_0x5600ef):console[_0x1045d9(0x14e)](_0x5600ef);}function insertCmHopper(_0x35945f,_0x347de3,_0x409181,_0x32c22a,_0x484092){const _0x5004a7=a992_0x2aa69f,_0x5b3e27=['cm_contacts.phone',_0x5004a7(0x167),_0x5004a7(0x193),_0x5004a7(0x128),_0x347de3+'.'+_0x32c22a,_0x5004a7(0x129),_0x5004a7(0x121),_0x5004a7(0x12f),'cm_contacts.UserId','\x22'+_0x484092+'\x22'];return squel[_0x5004a7(0x12e)]()['into'](_0x5004a7(0x15b))[_0x5004a7(0x131)](['phone',_0x5004a7(0x126),_0x5004a7(0x176),_0x5004a7(0x163),_0x32c22a,_0x5004a7(0x192),_0x5004a7(0x14b),'priority',_0x5004a7(0x145),_0x5004a7(0x11b)],squel[_0x5004a7(0x155)]()[_0x5004a7(0x159)](_0x5b3e27)[_0x5004a7(0x14f)](_0x347de3)[_0x5004a7(0x173)](_0x5004a7(0x115),null,_0x5004a7(0x183)+_0x347de3+'.CmListId')['join'](_0x409181,null,_0x409181+_0x5004a7(0x154)+_0x347de3+'.'+_0x32c22a)[_0x5004a7(0x19a)](_0x347de3+_0x5004a7(0x133),_0x35945f)['where'](_0x5004a7(0x118),NOW)[_0x5004a7(0x19a)](_0x5004a7(0x18c),selectNotIn(_0x347de3,_0x409181,_0x32c22a,_0x5004a7(0x15b),[_0x5004a7(0x141),_0x5004a7(0x16f)]))[_0x5004a7(0x19a)](_0x5004a7(0x18c),selectNotIn(_0x347de3,_0x409181,_0x32c22a,_0x5004a7(0x15b),['\x22always\x22'])))[_0x5004a7(0x13a)]();}function insertCmHopperBlack(_0x162ba6,_0x25db7f,_0x4b01e3,_0x31a648){const _0x34848b=a992_0x2aa69f,_0x244449=[_0x34848b(0x170),_0x34848b(0x193),_0x34848b(0x128),_0x25db7f+'.'+_0x31a648,'cm_contacts.createdAt',_0x34848b(0x121)];return squel[_0x34848b(0x12e)]()['into'](_0x34848b(0x13e))[_0x34848b(0x131)]([_0x34848b(0x18e),_0x34848b(0x176),_0x34848b(0x163),_0x31a648,_0x34848b(0x192),'updatedAt'],squel[_0x34848b(0x155)]()[_0x34848b(0x159)](_0x244449)[_0x34848b(0x14f)](_0x25db7f)[_0x34848b(0x173)]('cm_contacts',null,_0x34848b(0x183)+_0x25db7f+_0x34848b(0x14a))[_0x34848b(0x173)](_0x4b01e3,null,_0x4b01e3+_0x34848b(0x154)+_0x25db7f+'.'+_0x31a648)['where'](_0x25db7f+_0x34848b(0x133),_0x162ba6)[_0x34848b(0x19a)](_0x34848b(0x118),NOW)[_0x34848b(0x19a)]('cm_contacts.phone\x20NOT\x20IN\x20(?)',squel[_0x34848b(0x155)]()[_0x34848b(0x199)]('phone')[_0x34848b(0x14f)](_0x34848b(0x13e))[_0x34848b(0x19a)]('ListId\x20=\x20?',_0x162ba6)['where'](_0x31a648+_0x34848b(0x125)+_0x25db7f+'.'+_0x31a648)))[_0x34848b(0x13a)]();}function insertCmContact(_0x1dcec7,_0xa991d9,_0x2d5147,_0x243815){const _0x5541c7=a992_0x2aa69f,_0x34a539=_[_0x5541c7(0x15a)](_[_0x5541c7(0x180)](_0x243815),[_0x5541c7(0x163),_0x5541c7(0x150),_0x5541c7(0x192),_0x5541c7(0x14b)]);return squel[_0x5541c7(0x12e)]()[_0x5541c7(0x122)](_0x5541c7(0x115))[_0x5541c7(0x131)](_0x34a539,squel['select']()['fields'](_0x34a539)[_0x5541c7(0x14f)](_0xa991d9)[_0x5541c7(0x19a)]('('+_0x2d5147[_0x5541c7(0x173)](',')+_0x5541c7(0x124),squel[_0x5541c7(0x155)]()['fields'](_0x2d5147)[_0x5541c7(0x14f)](_0x5541c7(0x115))[_0x5541c7(0x19a)](_0x5541c7(0x143),_0x1dcec7)[_0x5541c7(0x19a)](_0x5541c7(0x139)))[_0x5541c7(0x19a)]('id\x20IN\x20?',squel[_0x5541c7(0x155)]()['field'](_0x5541c7(0x191),_0x5541c7(0x187))[_0x5541c7(0x14f)](_0xa991d9)['group'](_0x2d5147[_0x5541c7(0x173)](','))))[_0x5541c7(0x13a)]();}function handleStop(){const _0x3dfcfc=a992_0x2aa69f;console[_0x3dfcfc(0x14e)](_0x3dfcfc(0x151)),stopped=!![];}function handleUncaughtException(_0x1f37ac){const _0x48d769=a992_0x2aa69f;console[_0x48d769(0x13f)](_0x1f37ac['message']);throw _0x1f37ac;}function handleError(_0x4ad44e,_0x4d5549){const _0x5cf4f2=a992_0x2aa69f;stats[_0x5cf4f2(0x146)][_0x5cf4f2(0x198)]({'name':_0x4d5549[_0x5cf4f2(0x11c)],'message':_0x4d5549['message'],'row':_0x4ad44e});}async function lowLevelMySQL2Query(_0x46dc12){const _0x3c73ce=a992_0x2aa69f,_0x1dc26f=db[_0x3c73ce(0x168)][_0x3c73ce(0x17b)],_0x4bb14b={'host':_0x1dc26f['host'],'port':_0x1dc26f['port'],'user':_0x1dc26f[_0x3c73ce(0x195)],'password':_0x1dc26f['password'],'database':_0x1dc26f[_0x3c73ce(0x152)],'timezone':db[_0x3c73ce(0x168)][_0x3c73ce(0x135)][_0x3c73ce(0x14c)],'bigNumberStrings':![],'supportBigNumbers':!![],..._0x1dc26f[_0x3c73ce(0x171)]},_0x11c9da=await mysql2[_0x3c73ce(0x18d)](_0x4bb14b),[_0x4a892e,_0x4819ae]=await _0x11c9da[_0x3c73ce(0x190)]({'sql':_0x46dc12,'infileStreamFactory':infileStreamFactory});return await _0x11c9da[_0x3c73ce(0x179)](),{'affectedRows':_0x4a892e[_0x3c73ce(0x156)],'rows':_0x4a892e,'fields':_0x4819ae};}async function handleQuery(_0x276074,_0x558481=![]){const _0x66d7b4=a992_0x2aa69f;try{if(_0x558481){const {affectedRows:_0x2bb285}=await lowLevelMySQL2Query(_0x276074);results[_0x66d7b4(0x198)](_0x2bb285);}else{const [_0x366132]=await db[_0x66d7b4(0x168)][_0x66d7b4(0x190)](_0x276074);results['push'](_0x366132);}}catch(_0x32cf28){console[_0x66d7b4(0x13f)](_0x66d7b4(0x15c)+_0x32cf28[_0x66d7b4(0x136)],_0x32cf28[_0x66d7b4(0x18b)],_0x276074);throw _0x32cf28;}}function main(_0xaa42e9,_0x25f95b,_0xa276d,_0x1d84b2){const _0xcafd8b=a992_0x2aa69f;sendMessage(_0xcafd8b(0x166));const _0x35ad42=_0x25f95b[_0xcafd8b(0x18f)],_0x209940=_0x25f95b[_0xcafd8b(0x164)],_0x31aff5=path[_0xcafd8b(0x173)](path['dirname'](_0xaa42e9),_0x209940+_0xcafd8b(0x12d)),_0x159560=_[_0xcafd8b(0x180)](_0x35ad42)[_0xcafd8b(0x173)]();fs['writeFileSync'](_0x31aff5,_0x159560+'\x0a'),Papa[_0xcafd8b(0x16d)](fs['createReadStream'](_0xaa42e9),{'header':!![],'skipEmptyLines':!![],'step':function(_0x32668e,_0x181994){const _0x5650e4=_0xcafd8b;let _0x448475=0x0,_0x22766a=[];const _0x54371c=Array[_0x5650e4(0x11e)](_0x32668e['data'])?_0x32668e[_0x5650e4(0x15e)]:[_0x32668e['data']];try{for(_0x448475=0x0,_0x22766a=[];_0x448475<_0x54371c[_0x5650e4(0x160)];_0x448475++){stats[_0x5650e4(0x12b)]+=0x1;if(_0x32668e[_0x5650e4(0x146)][_0x448475])handleError(_0x54371c[_0x448475],_0x32668e['errors'][_0x448475]);else{const _0x28c2f6=[];for(const _0x411b35 in _0x35ad42){if(typeof _0x35ad42[_0x411b35]!==_0x5650e4(0x174)){if(_0x54371c[_0x448475][_0x35ad42[_0x411b35]]){let _0x522df3=_[_0x5650e4(0x13d)](_0x54371c[_0x448475][_0x35ad42[_0x411b35]]['replace'](/"/g,'\x27'));switch(_0x411b35){case _0x5650e4(0x126):{const _0x3a438f=moment(_0x522df3,_0x5650e4(0x16a),!![]);_0x3a438f[_0x5650e4(0x161)]()?_0x22766a[_0x5650e4(0x198)]('\x22'+_0x522df3+'\x22'):_0x28c2f6['push'](_0x5650e4(0x175));}break;case _0x5650e4(0x13c):{const _0x48517e=parseInt(_0x522df3);_0x522df3=_[_0x5650e4(0x196)](_0x48517e)||_0x48517e<0x0||_0x48517e>0x4?_0x1d84b2?0x3:0x2:_0x48517e,_0x22766a['push']('\x22'+_0x522df3+'\x22');}break;case'UserId':{const _0x3dd64d=parseInt(_0x522df3);_[_0x5650e4(0x144)](_0x3dd64d)&&_['includes'](_0xa276d,_0x3dd64d)?_0x22766a[_0x5650e4(0x198)]('\x22'+_0x3dd64d+'\x22'):_0x28c2f6[_0x5650e4(0x198)](_0x5650e4(0x158));}break;case _0x5650e4(0x12a):isEmail(_0x522df3)?_0x22766a['push']('\x22'+_0x522df3+'\x22'):_0x28c2f6[_0x5650e4(0x198)](_0x5650e4(0x127));break;case'dateOfBirth':{const _0x21e26e=moment(_0x522df3,_0x5650e4(0x169),!![]);_0x21e26e[_0x5650e4(0x161)]()?_0x22766a[_0x5650e4(0x198)]('\x22'+_0x522df3+'\x22'):_0x28c2f6[_0x5650e4(0x198)](_0x5650e4(0x178));}break;default:_0x22766a[_0x5650e4(0x198)]('\x22'+_0x522df3+'\x22');}}else switch(_0x411b35){case _0x5650e4(0x18a):case _0x5650e4(0x18e):_0x28c2f6[_0x5650e4(0x198)](_0x411b35+'\x20not\x20specified');break;default:_0x22766a[_0x5650e4(0x198)]('\x22\x22');}}}_0x28c2f6[_0x5650e4(0x160)]?handleError(_0x54371c[_0x448475],{'code':_0x5650e4(0x12c),'message':_0x28c2f6['join']()}):fs[_0x5650e4(0x130)](_0x31aff5,_0x22766a[_0x5650e4(0x173)]()+'\x0a'),_0x22766a=[];}!(stats[_0x5650e4(0x12b)]%0xc8)&&(socket[_0x5650e4(0x181)](_0x5650e4(0x119)+_0x209940,stats),stats[_0x5650e4(0x146)]=[]);}stopped&&(console[_0x5650e4(0x14e)](_0x5650e4(0x116)),_0x181994[_0x5650e4(0x138)]());}catch(_0x4fa44a){handleError(_0x32668e[_0x5650e4(0x15e)][_0x448475],{'code':'SystemError','message':_0x4fa44a[_0x5650e4(0x136)]}),console[_0x5650e4(0x13f)](_0x5650e4(0x15d),_0x4fa44a['message']);}},'complete':_0x2f709a=>(async()=>{const _0x2f4805=_0xcafd8b;console[_0x2f4805(0x14e)](_0x2f4805(0x17a),_0x2f709a);try{const _0x37bbe9=[];let _0x37a273=_0x2f4805(0x115);_0x25f95b[_0x2f4805(0x162)]&&_0x25f95b[_0x2f4805(0x162)]['length']&&(_0x37a273=_0x2f4805(0x114)+_0x209940,_0x37bbe9['push']({'query':_0x2f4805(0x11d)+_0x37a273+_0x2f4805(0x177),'lowLevel':![]}));let _0x3b9160=util[_0x2f4805(0x148)]('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',_0x31aff5,_0x37a273,_0x159560,_0x25f95b[_0x2f4805(0x163)],_0x25f95b[_0x2f4805(0x150)]||null,NOW,NOW);_[_0x2f4805(0x157)](_0x35ad42[_0x2f4805(0x126)])&&(_0x3b9160+=_0x2f4805(0x19e));_0x37bbe9[_0x2f4805(0x198)]({'query':_0x3b9160,'lowLevel':!![]});_0x25f95b[_0x2f4805(0x162)]&&_0x25f95b['duplicates']['length']&&(_0x37bbe9[_0x2f4805(0x198)]({'query':insertCmContact(_0x25f95b[_0x2f4805(0x163)],_0x37a273,_0x25f95b[_0x2f4805(0x162)],_0x35ad42),'lowLevel':![]}),_0x37bbe9[_0x2f4805(0x198)]({'query':'DROP\x20TABLE\x20'+_0x37a273+';','lowLevel':![]}));_0x37bbe9['push']({'query':insertCmHopper(_0x25f95b[_0x2f4805(0x163)],_0x2f4805(0x15f),_0x2f4805(0x189),'VoiceQueueId',_0x1d84b2),'lowLevel':![]}),_0x37bbe9['push']({'query':insertCmHopperBlack(_0x25f95b['ListId'],'voice_queues_has_cm_blacklists',_0x2f4805(0x189),'VoiceQueueId'),'lowLevel':![]}),_0x37bbe9[_0x2f4805(0x198)]({'query':insertCmHopper(_0x25f95b[_0x2f4805(0x163)],_0x2f4805(0x197),_0x2f4805(0x13b),_0x2f4805(0x16e),_0x1d84b2),'lowLevel':![]}),_0x37bbe9[_0x2f4805(0x198)]({'query':insertCmHopperBlack(_0x25f95b[_0x2f4805(0x163)],_0x2f4805(0x19b),'campaigns',_0x2f4805(0x16e)),'lowLevel':![]}),console['log'](_0x2f4805(0x19f)+_0x37bbe9[_0x2f4805(0x153)](_0x5b46eb=>_0x5b46eb[_0x2f4805(0x190)])[_0x2f4805(0x173)]('\x0a'));try{await Promise[_0x2f4805(0x188)](_0x37bbe9[_0x2f4805(0x153)](_0xa4847e=>handleQuery(_0xa4847e['query'],_0xa4847e[_0x2f4805(0x182)]))),stats[_0x2f4805(0x17c)]=!![],stats[_0x2f4805(0x156)]=_0x25f95b['duplicates']&&_0x25f95b[_0x2f4805(0x162)]['length']?results[0x2][_0x2f4805(0x156)]:results[0x0][_0x2f4805(0x156)],socket[_0x2f4805(0x181)]('contact:import:'+_0x209940,stats),process[_0x2f4805(0x120)](0x0);}catch(_0x540b27){console['error'](_0x2f4805(0x142)+_0x540b27[_0x2f4805(0x136)]+',\x20'+_0x540b27[_0x2f4805(0x18b)]);throw _0x540b27;}}catch(_0x15d076){console['error'](_0x2f4805(0x134),_0x15d076[_0x2f4805(0x136)]);throw _0x15d076;}})(),'error':function(_0x313a74,_0x40ab41,_0x5ede47,_0x20ff15){throw new Error(_0x20ff15);}});}function validate(){const _0xa20d44=a992_0x2aa69f;if(process[_0xa20d44(0x14d)]&&process[_0xa20d44(0x14d)][_0xa20d44(0x160)]<0x4)throw new Error(_0xa20d44(0x165));const [,,_0x459e8c,_0x5808bd,_0x509bdc]=process['argv'];console['log'](_0xa20d44(0x11a)+_0x459e8c+',\x0a\x20bodyString,\x20agentsString');if(!fs[_0xa20d44(0x186)](_0x459e8c))throw new Error(_0xa20d44(0x184)+_0x459e8c);let _0x49f18b={},_0x16b6cd=0x0;try{_0x49f18b=JSON[_0xa20d44(0x16d)](_0x5808bd);if(!_0x49f18b[_0xa20d44(0x18f)])throw new Error(_0xa20d44(0x16b));if(!_0x49f18b['binding'][_0xa20d44(0x18e)])throw new Error(_0xa20d44(0x137));if(!_0x49f18b['binding'][_0xa20d44(0x18a)])throw new Error(_0xa20d44(0x19d));_0x49f18b[_0xa20d44(0x18f)]['UserId']&&(_0x16b6cd=0x1);if(!_0x49f18b[_0xa20d44(0x163)])throw new Error(_0xa20d44(0x172));}catch(_0x55f340){throw new Error('body\x20id\x20mandatory');}let _0xcc14f=[];try{_0xcc14f=_[_0xa20d44(0x153)](JSON[_0xa20d44(0x16d)](_0x509bdc,'id'));}catch(_0x42369e){console[_0xa20d44(0x14e)]('No\x20agent\x20available');}main(_0x459e8c,_0x49f18b,_0xcc14f,_0x16b6cd);}validate(),process['on'](a992_0x2aa69f(0x117),handleStop),process['on'](a992_0x2aa69f(0x19c),handleUncaughtException); \ No newline at end of file +const a992_0x4cbd=['email\x20wrong\x20format','insert','.dialCheckDuplicateType\x20IN\x20(','rows','into','createdAt','updatedAt','host','cm_contacts.ListId','send','CampaignId','scheduledat','path','cm_contacts.createdAt\x20=\x20?','cm_hopper_black','createReadStream','binding','../../../globals','stringify','length','select','step','log','fields','squel','dateOfBirth','.CmListId\x20=\x20?','arguments\x20\x20\x20','cm_contacts.createdAt','cm_contacts.priority','LOAD\x20DATA\x20LOCAL\x20INFILE\x20\x27%s\x27\x20INTO\x20TABLE\x20%s\x20CHARACTER\x20SET\x20UTF8\x20FIELDS\x20TERMINATED\x20BY\x20\x27,\x27\x20ENCLOSED\x20BY\x20\x27\x22\x27\x20LINES\x20TERMINATED\x20BY\x20\x27\x0a\x27\x20IGNORE\x201\x20ROWS\x20(%s)\x20SET\x20id\x20=\x20NULL,\x20ListId\x20=\x20%s,\x20CompanyId\x20=\x20%s,\x20createdAt\x20=\x20\x27%s\x27,\x20updatedAt\x20=\x20\x27%s\x27','recallme','UserId','.id\x20=\x20','YYYY-MM-DD','voice_queues','agent\x20not\x20exists','emit','phone','affectedRows','stack','handleQuery:\x20','database','voice_queues_has_cm_lists','start','MIN(id)','cm_contacts.updatedAt','mysql2/promise','CompanyId','sequelize','duplicates','parse','cm_contacts_','dialectOptions','keys','cm_contacts.phone','finish','where','cm_contacts.id','\x20LIKE\x20cm_contacts;','CREATE\x20TABLE\x20','argv','replace','string','cm_hopper','../../../mysqldb/infile-stream-factory','cm_contacts.ListId\x20=\x20','fromQuery','isValid','from','DROP\x20TABLE\x20','min_id','deletedAt\x20IS\x20NULL','ListId\x20=\x20?','join','CSV2\x20Starting:\x20fullfilepath=','SIGINT','trim','SystemRow','code','lodash','moment','binding\x20does\x20not\x20exists','message','SystemError','voice_queues_has_cm_blacklists','email','\x22onlyIfOpen\x22','push','contact:import:',',\x0a\x20bodyString,\x20agentsString','function','ContactId','end','abort','priority','writeFileSync','options','Received\x20SIGINT','toString','body\x20id\x20mandatory','\x22always\x22','cm_contacts.UserId','VoiceQueueId','CSV\x20Parser\x20error:\x20','isNumber','data','exit','dateOfBirth\x20wrong\x20format\x20(YYYY-MM-DD)','.CmListId','No\x20agent\x20available','id\x20IN\x20?','socket_timestamp','../../../rediscache','includes','.csv','ListId','error','uncaughtException','File\x20does\x20not\x20exist:\x20','\x20=\x20','format','isNil','validator',')\x20NOT\x20IN\x20?','group','port','cm_contacts','undefined','Abort\x20parser','query','complete','COMPLETE','campaigns','dirname','map','phone\x20is\x20mandatory','config','isNaN','cm_contacts.phone\x20NOT\x20IN\x20(?)','campaigns_has_cm_blacklists','field','cm_contacts.scheduledat','ListId\x20is\x20mandatory','errors'];(function(_0x15c323,_0x391999){const _0x4cbda7=function(_0x4119e8){while(--_0x4119e8){_0x15c323['push'](_0x15c323['shift']());}};_0x4cbda7(++_0x391999);}(a992_0x4cbd,0xbc));const a992_0x4119=function(_0x15c323,_0x391999){_0x15c323=_0x15c323-0x18e;let _0x4cbda7=a992_0x4cbd[_0x15c323];return _0x4cbda7;};const a992_0xd66f5a=a992_0x4119;'use strict';require(a992_0xd66f5a(0x205));const fs=require('fs'),path=require(a992_0xd66f5a(0x200)),_=require(a992_0xd66f5a(0x1b3)),Papa=require('papaparse'),util=require('util'),mysql2=require(a992_0xd66f5a(0x192)),moment=require(a992_0xd66f5a(0x1b4)),squel=require(a992_0xd66f5a(0x20c)),{db}=require('../../../mysqldb'),{infileStreamFactory}=require(a992_0xd66f5a(0x1a4)),{getSocket}=require(a992_0xd66f5a(0x1d4)),socket=getSocket(),{isEmail}=require(a992_0xd66f5a(0x1de)),stats={'finish':![],'errors':[],'rows':0x0,'affectedRows':0x0},results=[];let stopped=![];const NOW=moment()[a992_0xd66f5a(0x1dc)]('YYYY-MM-DD\x20HH:mm:ss');function selectNotIn(_0x479d37,_0x4bb09b,_0x35c8ea,_0x166274,_0x2c43d9){const _0x198ac3=a992_0xd66f5a;return squel[_0x198ac3(0x208)]()[_0x198ac3(0x1f0)]('phone')['from'](_0x166274)['join'](_0x4bb09b,null,_0x4bb09b+_0x198ac3(0x215)+_0x166274+'.'+_0x35c8ea)[_0x198ac3(0x19c)](_0x166274+'.'+_0x35c8ea+_0x198ac3(0x1db)+_0x479d37+'.'+_0x35c8ea)[_0x198ac3(0x19c)](_0x4bb09b+_0x198ac3(0x1f6)+_0x2c43d9['join']()+')');}function sendMessage(_0x43674e){const _0x39c4e4=a992_0xd66f5a,_0x5dfb9c=typeof _0x43674e===_0x39c4e4(0x1a2)?_0x43674e:JSON[_0x39c4e4(0x206)](_0x43674e);typeof process[_0x39c4e4(0x1fd)]===_0x39c4e4(0x1be)?process[_0x39c4e4(0x1fd)](_0x5dfb9c):console[_0x39c4e4(0x20a)](_0x5dfb9c);}function insertCmHopper(_0x22174f,_0x201c7e,_0x3f562f,_0x3241a1,_0x344126){const _0x18b8a8=a992_0xd66f5a,_0x390bed=[_0x18b8a8(0x19a),_0x18b8a8(0x1f1),'cm_contacts.id','cm_contacts.ListId',_0x201c7e+'.'+_0x3241a1,_0x18b8a8(0x210),_0x18b8a8(0x191),_0x18b8a8(0x211),_0x18b8a8(0x1c9),'\x22'+_0x344126+'\x22'];return squel[_0x18b8a8(0x1f5)]()[_0x18b8a8(0x1f8)](_0x18b8a8(0x1a3))[_0x18b8a8(0x1a6)](['phone','scheduledat',_0x18b8a8(0x1bf),_0x18b8a8(0x1d7),_0x3241a1,_0x18b8a8(0x1f9),'updatedAt',_0x18b8a8(0x1c2),_0x18b8a8(0x214),_0x18b8a8(0x213)],squel[_0x18b8a8(0x208)]()[_0x18b8a8(0x20b)](_0x390bed)[_0x18b8a8(0x1a8)](_0x201c7e)[_0x18b8a8(0x1ad)](_0x18b8a8(0x1e2),null,_0x18b8a8(0x1a5)+_0x201c7e+_0x18b8a8(0x1d0))[_0x18b8a8(0x1ad)](_0x3f562f,null,_0x3f562f+_0x18b8a8(0x215)+_0x201c7e+'.'+_0x3241a1)[_0x18b8a8(0x19c)](_0x201c7e+'.CmListId\x20=\x20?',_0x22174f)['where'](_0x18b8a8(0x201),NOW)['where']('cm_contacts.phone\x20NOT\x20IN\x20(?)',selectNotIn(_0x201c7e,_0x3f562f,_0x3241a1,_0x18b8a8(0x1a3),[_0x18b8a8(0x1c8),_0x18b8a8(0x1ba)]))[_0x18b8a8(0x19c)](_0x18b8a8(0x1ee),selectNotIn(_0x201c7e,_0x3f562f,_0x3241a1,_0x18b8a8(0x1a3),[_0x18b8a8(0x1c8)])))[_0x18b8a8(0x1c6)]();}function insertCmHopperBlack(_0x153fc0,_0x35dfc0,_0x2531df,_0x1d6620){const _0x4dbd46=a992_0xd66f5a,_0x3c4aa8=[_0x4dbd46(0x19a),_0x4dbd46(0x19d),_0x4dbd46(0x1fc),_0x35dfc0+'.'+_0x1d6620,'cm_contacts.createdAt',_0x4dbd46(0x191)];return squel['insert']()[_0x4dbd46(0x1f8)](_0x4dbd46(0x202))[_0x4dbd46(0x1a6)](['phone',_0x4dbd46(0x1bf),_0x4dbd46(0x1d7),_0x1d6620,_0x4dbd46(0x1f9),_0x4dbd46(0x1fa)],squel[_0x4dbd46(0x208)]()['fields'](_0x3c4aa8)[_0x4dbd46(0x1a8)](_0x35dfc0)['join'](_0x4dbd46(0x1e2),null,'cm_contacts.ListId\x20=\x20'+_0x35dfc0+_0x4dbd46(0x1d0))[_0x4dbd46(0x1ad)](_0x2531df,null,_0x2531df+_0x4dbd46(0x215)+_0x35dfc0+'.'+_0x1d6620)[_0x4dbd46(0x19c)](_0x35dfc0+_0x4dbd46(0x20e),_0x153fc0)['where']('cm_contacts.createdAt\x20=\x20?',NOW)['where'](_0x4dbd46(0x1ee),squel[_0x4dbd46(0x208)]()[_0x4dbd46(0x1f0)](_0x4dbd46(0x21a))[_0x4dbd46(0x1a8)](_0x4dbd46(0x202))['where'](_0x4dbd46(0x1ac),_0x153fc0)[_0x4dbd46(0x19c)](_0x1d6620+_0x4dbd46(0x1db)+_0x35dfc0+'.'+_0x1d6620)))['toString']();}function insertCmContact(_0x37aa59,_0x5e68af,_0x44d859,_0x3cab14){const _0x572f17=a992_0xd66f5a,_0x21e674=_['concat'](_[_0x572f17(0x199)](_0x3cab14),[_0x572f17(0x1d7),_0x572f17(0x193),_0x572f17(0x1f9),_0x572f17(0x1fa)]);return squel['insert']()[_0x572f17(0x1f8)](_0x572f17(0x1e2))['fromQuery'](_0x21e674,squel[_0x572f17(0x208)]()[_0x572f17(0x20b)](_0x21e674)[_0x572f17(0x1a8)](_0x5e68af)[_0x572f17(0x19c)]('('+_0x44d859[_0x572f17(0x1ad)](',')+_0x572f17(0x1df),squel[_0x572f17(0x208)]()['fields'](_0x44d859)[_0x572f17(0x1a8)](_0x572f17(0x1e2))[_0x572f17(0x19c)](_0x572f17(0x1ac),_0x37aa59)['where'](_0x572f17(0x1ab)))['where'](_0x572f17(0x1d2),squel[_0x572f17(0x208)]()[_0x572f17(0x1f0)](_0x572f17(0x190),_0x572f17(0x1aa))[_0x572f17(0x1a8)](_0x5e68af)[_0x572f17(0x1e0)](_0x44d859[_0x572f17(0x1ad)](','))))[_0x572f17(0x1c6)]();}function handleStop(){const _0x369981=a992_0xd66f5a;console[_0x369981(0x20a)](_0x369981(0x1c5)),stopped=!![];}function handleUncaughtException(_0x3ba9f7){const _0xc51635=a992_0xd66f5a;console[_0xc51635(0x1d8)](_0x3ba9f7[_0xc51635(0x1b6)]);throw _0x3ba9f7;}function handleError(_0x26b114,_0x17cd93){const _0x4ce0dd=a992_0xd66f5a;stats['errors']['push']({'name':_0x17cd93[_0x4ce0dd(0x1b2)],'message':_0x17cd93['message'],'row':_0x26b114});}async function lowLevelMySQL2Query(_0x31ec77){const _0x11e6e4=a992_0xd66f5a,_0x5e4464=db[_0x11e6e4(0x194)][_0x11e6e4(0x1ec)],_0xa462a0={'host':_0x5e4464[_0x11e6e4(0x1fb)],'port':_0x5e4464[_0x11e6e4(0x1e1)],'user':_0x5e4464['username'],'password':_0x5e4464['password'],'database':_0x5e4464[_0x11e6e4(0x21e)],'timezone':db[_0x11e6e4(0x194)][_0x11e6e4(0x1c4)]['timezone'],'bigNumberStrings':![],'supportBigNumbers':!![],..._0x5e4464[_0x11e6e4(0x198)]},_0x418c7b=await mysql2['createConnection'](_0xa462a0),[_0x53c0df,_0x57db95]=await _0x418c7b[_0x11e6e4(0x1e5)]({'sql':_0x31ec77,'infileStreamFactory':infileStreamFactory});return await _0x418c7b[_0x11e6e4(0x1c0)](),{'affectedRows':_0x53c0df['affectedRows'],'rows':_0x53c0df,'fields':_0x57db95};}async function handleQuery(_0x3438e8,_0x458887=![]){const _0x1c7a0f=a992_0xd66f5a;try{if(_0x458887){const {affectedRows:_0x78483e}=await lowLevelMySQL2Query(_0x3438e8);results[_0x1c7a0f(0x1bb)](_0x78483e);}else{const [_0x50b4ac]=await db[_0x1c7a0f(0x194)][_0x1c7a0f(0x1e5)](_0x3438e8);results[_0x1c7a0f(0x1bb)](_0x50b4ac);}}catch(_0x345f16){console[_0x1c7a0f(0x1d8)](_0x1c7a0f(0x21d)+_0x345f16[_0x1c7a0f(0x1b6)],_0x345f16[_0x1c7a0f(0x21c)],_0x3438e8);throw _0x345f16;}}function main(_0x292484,_0x3692a0,_0x38ea73,_0x3f7979){const _0x3eaabe=a992_0xd66f5a;sendMessage(_0x3eaabe(0x18f));const _0x112ef5=_0x3692a0[_0x3eaabe(0x204)],_0x4c6455=_0x3692a0[_0x3eaabe(0x1d3)],_0x2b4544=path[_0x3eaabe(0x1ad)](path[_0x3eaabe(0x1e9)](_0x292484),_0x4c6455+_0x3eaabe(0x1d6)),_0x101286=_[_0x3eaabe(0x199)](_0x112ef5)[_0x3eaabe(0x1ad)]();fs[_0x3eaabe(0x1c3)](_0x2b4544,_0x101286+'\x0a'),Papa[_0x3eaabe(0x196)](fs[_0x3eaabe(0x203)](_0x292484),{'header':!![],'skipEmptyLines':!![],'step':function(_0x4e1c3c,_0x4ce9e8){const _0x20e527=_0x3eaabe;let _0x5900cd=0x0,_0x3fbc76=[];const _0x17fd28=Array['isArray'](_0x4e1c3c['data'])?_0x4e1c3c[_0x20e527(0x1cd)]:[_0x4e1c3c['data']];try{for(_0x5900cd=0x0,_0x3fbc76=[];_0x5900cd<_0x17fd28[_0x20e527(0x207)];_0x5900cd++){stats[_0x20e527(0x1f7)]+=0x1;if(_0x4e1c3c[_0x20e527(0x1f3)][_0x5900cd])handleError(_0x17fd28[_0x5900cd],_0x4e1c3c[_0x20e527(0x1f3)][_0x5900cd]);else{const _0x1277d9=[];for(const _0x4b8575 in _0x112ef5){if(typeof _0x112ef5[_0x4b8575]!==_0x20e527(0x1e3)){if(_0x17fd28[_0x5900cd][_0x112ef5[_0x4b8575]]){let _0x523f10=_[_0x20e527(0x1b0)](_0x17fd28[_0x5900cd][_0x112ef5[_0x4b8575]][_0x20e527(0x1a1)](/"/g,'\x27'));switch(_0x4b8575){case _0x20e527(0x1ff):{const _0x5dc71f=moment(_0x523f10,'YYYY-MM-DD\x20HH:mm:ss',!![]);_0x5dc71f[_0x20e527(0x1a7)]()?_0x3fbc76['push']('\x22'+_0x523f10+'\x22'):_0x1277d9[_0x20e527(0x1bb)]('scheduledat\x20wrong\x20format\x20(YYYY-MM-DD\x20HH:mm:ss)');}break;case _0x20e527(0x1c2):{const _0x562970=parseInt(_0x523f10);_0x523f10=_[_0x20e527(0x1ed)](_0x562970)||_0x562970<0x0||_0x562970>0x4?_0x3f7979?0x3:0x2:_0x562970,_0x3fbc76[_0x20e527(0x1bb)]('\x22'+_0x523f10+'\x22');}break;case _0x20e527(0x214):{const _0x590fbd=parseInt(_0x523f10);_[_0x20e527(0x1cc)](_0x590fbd)&&_[_0x20e527(0x1d5)](_0x38ea73,_0x590fbd)?_0x3fbc76[_0x20e527(0x1bb)]('\x22'+_0x590fbd+'\x22'):_0x1277d9[_0x20e527(0x1bb)](_0x20e527(0x218));}break;case _0x20e527(0x1b9):isEmail(_0x523f10)?_0x3fbc76['push']('\x22'+_0x523f10+'\x22'):_0x1277d9[_0x20e527(0x1bb)](_0x20e527(0x1f4));break;case _0x20e527(0x20d):{const _0x2a6241=moment(_0x523f10,_0x20e527(0x216),!![]);_0x2a6241[_0x20e527(0x1a7)]()?_0x3fbc76['push']('\x22'+_0x523f10+'\x22'):_0x1277d9[_0x20e527(0x1bb)](_0x20e527(0x1cf));}break;default:_0x3fbc76[_0x20e527(0x1bb)]('\x22'+_0x523f10+'\x22');}}else switch(_0x4b8575){case'firstName':case _0x20e527(0x21a):_0x1277d9[_0x20e527(0x1bb)](_0x4b8575+'\x20not\x20specified');break;default:_0x3fbc76[_0x20e527(0x1bb)]('\x22\x22');}}}_0x1277d9[_0x20e527(0x207)]?handleError(_0x17fd28[_0x5900cd],{'code':_0x20e527(0x1b1),'message':_0x1277d9[_0x20e527(0x1ad)]()}):fs['appendFileSync'](_0x2b4544,_0x3fbc76[_0x20e527(0x1ad)]()+'\x0a'),_0x3fbc76=[];}!(stats[_0x20e527(0x1f7)]%0xc8)&&(socket[_0x20e527(0x219)](_0x20e527(0x1bc)+_0x4c6455,stats),stats[_0x20e527(0x1f3)]=[]);}stopped&&(console['log'](_0x20e527(0x1e4)),_0x4ce9e8[_0x20e527(0x1c1)]());}catch(_0x43b777){handleError(_0x4e1c3c[_0x20e527(0x1cd)][_0x5900cd],{'code':_0x20e527(0x1b7),'message':_0x43b777[_0x20e527(0x1b6)]}),console[_0x20e527(0x1d8)](_0x20e527(0x209),_0x43b777[_0x20e527(0x1b6)]);}},'complete':_0x522dc6=>(async()=>{const _0x53485a=_0x3eaabe;console[_0x53485a(0x20a)](_0x53485a(0x1e7),_0x522dc6);try{const _0x2b38eb=[];let _0x396e06='cm_contacts';_0x3692a0[_0x53485a(0x195)]&&_0x3692a0[_0x53485a(0x195)][_0x53485a(0x207)]&&(_0x396e06=_0x53485a(0x197)+_0x4c6455,_0x2b38eb[_0x53485a(0x1bb)]({'query':_0x53485a(0x19f)+_0x396e06+_0x53485a(0x19e),'lowLevel':![]}));let _0x34f6ab=util[_0x53485a(0x1dc)](_0x53485a(0x212),_0x2b4544,_0x396e06,_0x101286,_0x3692a0['ListId'],_0x3692a0[_0x53485a(0x193)]||null,NOW,NOW);_[_0x53485a(0x1dd)](_0x112ef5[_0x53485a(0x1ff)])&&(_0x34f6ab+=',\x20scheduledAt\x20=\x20NOW()');_0x2b38eb[_0x53485a(0x1bb)]({'query':_0x34f6ab,'lowLevel':!![]});_0x3692a0[_0x53485a(0x195)]&&_0x3692a0[_0x53485a(0x195)]['length']&&(_0x2b38eb['push']({'query':insertCmContact(_0x3692a0[_0x53485a(0x1d7)],_0x396e06,_0x3692a0[_0x53485a(0x195)],_0x112ef5),'lowLevel':![]}),_0x2b38eb[_0x53485a(0x1bb)]({'query':_0x53485a(0x1a9)+_0x396e06+';','lowLevel':![]}));_0x2b38eb['push']({'query':insertCmHopper(_0x3692a0[_0x53485a(0x1d7)],_0x53485a(0x18e),_0x53485a(0x217),_0x53485a(0x1ca),_0x3f7979),'lowLevel':![]}),_0x2b38eb[_0x53485a(0x1bb)]({'query':insertCmHopperBlack(_0x3692a0[_0x53485a(0x1d7)],_0x53485a(0x1b8),_0x53485a(0x217),_0x53485a(0x1ca)),'lowLevel':![]}),_0x2b38eb[_0x53485a(0x1bb)]({'query':insertCmHopper(_0x3692a0['ListId'],'campaigns_has_cm_lists',_0x53485a(0x1e8),_0x53485a(0x1fe),_0x3f7979),'lowLevel':![]}),_0x2b38eb[_0x53485a(0x1bb)]({'query':insertCmHopperBlack(_0x3692a0['ListId'],_0x53485a(0x1ef),_0x53485a(0x1e8),_0x53485a(0x1fe)),'lowLevel':![]}),console['log']('queries:\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2b38eb['map'](_0x4da78f=>_0x4da78f['query'])['join']('\x0a'));try{await Promise['all'](_0x2b38eb[_0x53485a(0x1ea)](_0x494ea3=>handleQuery(_0x494ea3[_0x53485a(0x1e5)],_0x494ea3['lowLevel']))),stats[_0x53485a(0x19b)]=!![],stats[_0x53485a(0x21b)]=_0x3692a0[_0x53485a(0x195)]&&_0x3692a0['duplicates']['length']?results[0x2][_0x53485a(0x21b)]:results[0x0]['affectedRows'],socket['emit'](_0x53485a(0x1bc)+_0x4c6455,stats),process[_0x53485a(0x1ce)](0x0);}catch(_0x32d4ba){console[_0x53485a(0x1d8)](_0x53485a(0x1cb)+_0x32d4ba[_0x53485a(0x1b6)]+',\x20'+_0x32d4ba[_0x53485a(0x21c)]);throw _0x32d4ba;}}catch(_0x22402e){console[_0x53485a(0x1d8)](_0x53485a(0x1e6),_0x22402e[_0x53485a(0x1b6)]);throw _0x22402e;}})(),'error':function(_0x12e5ff,_0xc85d68,_0x4e23dd,_0x5c8787){throw new Error(_0x5c8787);}});}function validate(){const _0x3a0d1f=a992_0xd66f5a;if(process[_0x3a0d1f(0x1a0)]&&process[_0x3a0d1f(0x1a0)][_0x3a0d1f(0x207)]<0x4)throw new Error(_0x3a0d1f(0x20f));const [,,_0x16a672,_0x3e82f9,_0x34dc3f]=process[_0x3a0d1f(0x1a0)];console['log'](_0x3a0d1f(0x1ae)+_0x16a672+_0x3a0d1f(0x1bd));if(!fs['existsSync'](_0x16a672))throw new Error(_0x3a0d1f(0x1da)+_0x16a672);let _0x2c6b9b={},_0x520dd4=0x0;try{_0x2c6b9b=JSON[_0x3a0d1f(0x196)](_0x3e82f9);if(!_0x2c6b9b[_0x3a0d1f(0x204)])throw new Error(_0x3a0d1f(0x1b5));if(!_0x2c6b9b['binding']['phone'])throw new Error(_0x3a0d1f(0x1eb));if(!_0x2c6b9b[_0x3a0d1f(0x204)]['firstName'])throw new Error('firstName\x20is\x20mandatory');_0x2c6b9b['binding'][_0x3a0d1f(0x214)]&&(_0x520dd4=0x1);if(!_0x2c6b9b[_0x3a0d1f(0x1d7)])throw new Error(_0x3a0d1f(0x1f2));}catch(_0x22be2d){throw new Error(_0x3a0d1f(0x1c7));}let _0x4ad7c2=[];try{_0x4ad7c2=_['map'](JSON['parse'](_0x34dc3f,'id'));}catch(_0x47972c){console['log'](_0x3a0d1f(0x1d1));}main(_0x16a672,_0x2c6b9b,_0x4ad7c2,_0x520dd4);}validate(),process['on'](a992_0xd66f5a(0x1af),handleStop),process['on'](a992_0xd66f5a(0x1d9),handleUncaughtException); \ No newline at end of file diff --git a/server/components/integrations/configuration.js b/server/components/integrations/configuration.js index 392e731..add6051 100644 --- a/server/components/integrations/configuration.js +++ b/server/components/integrations/configuration.js @@ -1 +1 @@ -const a993_0x2081=['holdtime','membername','destcalleridnum','toLowerCase','endtime','outbound','***\x20Call\x20Info\x20***','getSubjects','destexten','billableseconds','queue','agentconnectAt','Hold\x20Time','agentcompleteAt','inbound','Date','keyValue','Billable\x20Time','Agent\x20Connect','Call\x20To','***\x20Time\x20Info\x20***','duration','UniqueId','Member\x20Name','Agent\x20Name','starttime','variable','calleridnum','Agent\x20Ring','Talk\x20Time','uniqueid','voice','destcalleridname','Agent\x20Number','string','Caller\x20Number','Outbound\x20Call','***\x20Agent\x20Info\x20***','agentcalledAt','push'];(function(_0xb84cbb,_0x512ab0){const _0x2081af=function(_0x49b7dd){while(--_0x49b7dd){_0xb84cbb['push'](_0xb84cbb['shift']());}};_0x2081af(++_0x512ab0);}(a993_0x2081,0x1a1));const a993_0x49b7=function(_0xb84cbb,_0x512ab0){_0xb84cbb=_0xb84cbb-0x1a0;let _0x2081af=a993_0x2081[_0xb84cbb];return _0x2081af;};const a993_0x258887=a993_0x49b7;'use strict';exports[a993_0x258887(0x1be)]=function(_0x4e20da,_0x19d320){const _0x44de3f=a993_0x258887,_0x8ac2bc=[{'type':_0x44de3f(0x1b1),'content':'[xCALLY\x20Ticket]','variableName':null}];switch(_0x4e20da[_0x44de3f(0x1ba)]()){case'voice':switch(_0x19d320[_0x44de3f(0x1ba)]()){case'inbound':_0x8ac2bc[_0x44de3f(0x1b6)]({'type':_0x44de3f(0x1a9),'content':'','variableName':_0x44de3f(0x1c1)}),_0x8ac2bc[_0x44de3f(0x1b6)]({'type':'variable','content':'','variableName':_0x44de3f(0x1aa)});break;case _0x44de3f(0x1bc):_0x8ac2bc[_0x44de3f(0x1b6)]({'type':_0x44de3f(0x1b1),'content':_0x44de3f(0x1b3),'variableName':null}),_0x8ac2bc[_0x44de3f(0x1b6)]({'type':'variable','content':'','variableName':_0x44de3f(0x1b9)});break;}}return _0x8ac2bc;},exports['getDescriptions']=function(_0x437a1c,_0xf2f1e4){const _0x38a582=a993_0x258887;let _0x111b7a=[];switch(_0x437a1c[_0x38a582(0x1ba)]()){case _0x38a582(0x1ae):switch(_0xf2f1e4[_0x38a582(0x1ba)]()){case _0x38a582(0x1c5):_0x111b7a=[{'type':_0x38a582(0x1b1),'content':_0x38a582(0x1bd),'key':null,'keyType':null,'variableName':null},{'type':_0x38a582(0x1c7),'content':'','key':_0x38a582(0x1b2),'keyType':_0x38a582(0x1a9),'variableName':_0x38a582(0x1aa)},{'type':_0x38a582(0x1c7),'content':'','key':'Caller\x20Name','keyType':_0x38a582(0x1a9),'variableName':'calleridname'},{'type':_0x38a582(0x1c7),'content':'','key':_0x38a582(0x1a2),'keyType':_0x38a582(0x1a9),'variableName':_0x38a582(0x1bf)},{'type':'keyValue','content':'','key':'Queue','keyType':_0x38a582(0x1a9),'variableName':_0x38a582(0x1c1)},{'type':_0x38a582(0x1c7),'content':'','key':'UniqueId','keyType':_0x38a582(0x1a9),'variableName':_0x38a582(0x1ad)},{'type':_0x38a582(0x1c7),'content':'','key':_0x38a582(0x1c6),'keyType':_0x38a582(0x1a9),'variableName':'agentcalledAt'},{'type':_0x38a582(0x1b1),'content':_0x38a582(0x1b4),'key':null,'keyType':null,'variableName':null},{'type':_0x38a582(0x1c7),'content':'','key':_0x38a582(0x1a7),'keyType':_0x38a582(0x1a9),'variableName':_0x38a582(0x1af)},{'type':_0x38a582(0x1c7),'content':'','key':_0x38a582(0x1b0),'keyType':_0x38a582(0x1a9),'variableName':_0x38a582(0x1b9)},{'type':_0x38a582(0x1b1),'content':'***\x20Time\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':'keyValue','content':'','key':_0x38a582(0x1ab),'keyType':'variable','variableName':_0x38a582(0x1b5)},{'type':_0x38a582(0x1c7),'content':'','key':_0x38a582(0x1a1),'keyType':_0x38a582(0x1a9),'variableName':_0x38a582(0x1c2)},{'type':_0x38a582(0x1c7),'content':'','key':'Agent\x20Complete','keyType':'variable','variableName':_0x38a582(0x1c4)},{'type':_0x38a582(0x1c7),'content':'','key':_0x38a582(0x1c3),'keyType':_0x38a582(0x1a9),'variableName':_0x38a582(0x1b7)},{'type':_0x38a582(0x1c7),'content':'','key':_0x38a582(0x1ac),'keyType':_0x38a582(0x1a9),'variableName':'talktime'}];break;case'outbound':_0x111b7a=[{'type':_0x38a582(0x1b1),'content':_0x38a582(0x1bd),'variableName':null},{'type':'keyValue','content':'','key':'Called\x20Number','keyType':_0x38a582(0x1a9),'keyContent':'','variableName':'destcalleridnum'},{'type':_0x38a582(0x1c7),'content':'','key':_0x38a582(0x1a6),'keyType':_0x38a582(0x1a9),'keyContent':'','variableName':_0x38a582(0x1b8)},{'type':'keyValue','content':'','key':_0x38a582(0x1a5),'keyType':_0x38a582(0x1a9),'keyContent':'','variableName':_0x38a582(0x1ad)},{'type':_0x38a582(0x1c7),'content':'','key':_0x38a582(0x1c6),'keyType':_0x38a582(0x1a9),'keyContent':'','variableName':_0x38a582(0x1a8)},{'type':_0x38a582(0x1b1),'content':_0x38a582(0x1a3)},{'type':_0x38a582(0x1c7),'content':'','key':'Answer\x20Time','keyType':_0x38a582(0x1a9),'keyContent':'','variableName':'answertime'},{'type':_0x38a582(0x1c7),'content':'','key':'Complete\x20Time','keyType':_0x38a582(0x1a9),'keyContent':'','variableName':_0x38a582(0x1bb)},{'type':_0x38a582(0x1c7),'content':'','key':'Duration','keyType':_0x38a582(0x1a9),'keyContent':'','variableName':_0x38a582(0x1a4)},{'type':_0x38a582(0x1c7),'content':'','key':_0x38a582(0x1a0),'keyType':_0x38a582(0x1a9),'keyContent':'','variableName':_0x38a582(0x1c0)}];break;}}return _0x111b7a;}; \ No newline at end of file +const a993_0x4b62=['Answer\x20Time','uniqueid','variable','outbound','Complete\x20Time','[xCALLY\x20Ticket]','inbound','UniqueId','Billable\x20Time','voice','***\x20Agent\x20Info\x20***','Caller\x20Number','queue','Duration','agentconnectAt','keyValue','Agent\x20Connect','Queue','string','answertime','Agent\x20Number','Call\x20To','Hold\x20Time','Agent\x20Complete','Date','starttime','push','Agent\x20Name','agentcompleteAt','calleridname','calleridnum','***\x20Call\x20Info\x20***','toLowerCase','getSubjects','holdtime','***\x20Time\x20Info\x20***','Agent\x20Ring','destcalleridname','Caller\x20Name','endtime','agentcalledAt','talktime'];(function(_0x458c9a,_0x308b19){const _0x4b62a2=function(_0x473f4b){while(--_0x473f4b){_0x458c9a['push'](_0x458c9a['shift']());}};_0x4b62a2(++_0x308b19);}(a993_0x4b62,0xde));const a993_0x473f=function(_0x458c9a,_0x308b19){_0x458c9a=_0x458c9a-0x67;let _0x4b62a2=a993_0x4b62[_0x458c9a];return _0x4b62a2;};const a993_0x4c9bac=a993_0x473f;'use strict';exports[a993_0x4c9bac(0x7c)]=function(_0x18bdeb,_0x289b08){const _0x483c27=a993_0x4c9bac,_0x5137a8=[{'type':_0x483c27(0x6d),'content':_0x483c27(0x8a),'variableName':null}];switch(_0x18bdeb[_0x483c27(0x7b)]()){case _0x483c27(0x8e):switch(_0x289b08[_0x483c27(0x7b)]()){case'inbound':_0x5137a8[_0x483c27(0x75)]({'type':_0x483c27(0x87),'content':'','variableName':_0x483c27(0x67)}),_0x5137a8[_0x483c27(0x75)]({'type':_0x483c27(0x87),'content':'','variableName':_0x483c27(0x79)});break;case _0x483c27(0x88):_0x5137a8[_0x483c27(0x75)]({'type':_0x483c27(0x6d),'content':'Outbound\x20Call','variableName':null}),_0x5137a8[_0x483c27(0x75)]({'type':_0x483c27(0x87),'content':'','variableName':'destcalleridnum'});break;}}return _0x5137a8;},exports['getDescriptions']=function(_0x2c4fb2,_0x5b072d){const _0x1d88b2=a993_0x4c9bac;let _0x460fc4=[];switch(_0x2c4fb2[_0x1d88b2(0x7b)]()){case _0x1d88b2(0x8e):switch(_0x5b072d[_0x1d88b2(0x7b)]()){case _0x1d88b2(0x8b):_0x460fc4=[{'type':_0x1d88b2(0x6d),'content':_0x1d88b2(0x7a),'key':null,'keyType':null,'variableName':null},{'type':_0x1d88b2(0x6a),'content':'','key':_0x1d88b2(0x90),'keyType':'variable','variableName':_0x1d88b2(0x79)},{'type':_0x1d88b2(0x6a),'content':'','key':_0x1d88b2(0x81),'keyType':_0x1d88b2(0x87),'variableName':_0x1d88b2(0x78)},{'type':_0x1d88b2(0x6a),'content':'','key':_0x1d88b2(0x70),'keyType':'variable','variableName':'destexten'},{'type':_0x1d88b2(0x6a),'content':'','key':_0x1d88b2(0x6c),'keyType':_0x1d88b2(0x87),'variableName':_0x1d88b2(0x67)},{'type':_0x1d88b2(0x6a),'content':'','key':'UniqueId','keyType':_0x1d88b2(0x87),'variableName':_0x1d88b2(0x86)},{'type':_0x1d88b2(0x6a),'content':'','key':_0x1d88b2(0x73),'keyType':_0x1d88b2(0x87),'variableName':_0x1d88b2(0x83)},{'type':_0x1d88b2(0x6d),'content':_0x1d88b2(0x8f),'key':null,'keyType':null,'variableName':null},{'type':_0x1d88b2(0x6a),'content':'','key':_0x1d88b2(0x76),'keyType':_0x1d88b2(0x87),'variableName':_0x1d88b2(0x80)},{'type':_0x1d88b2(0x6a),'content':'','key':_0x1d88b2(0x6f),'keyType':_0x1d88b2(0x87),'variableName':'destcalleridnum'},{'type':_0x1d88b2(0x6d),'content':_0x1d88b2(0x7e),'key':null,'keyType':null,'variableName':null},{'type':'keyValue','content':'','key':_0x1d88b2(0x7f),'keyType':_0x1d88b2(0x87),'variableName':_0x1d88b2(0x83)},{'type':_0x1d88b2(0x6a),'content':'','key':_0x1d88b2(0x6b),'keyType':_0x1d88b2(0x87),'variableName':_0x1d88b2(0x69)},{'type':_0x1d88b2(0x6a),'content':'','key':_0x1d88b2(0x72),'keyType':_0x1d88b2(0x87),'variableName':_0x1d88b2(0x77)},{'type':'keyValue','content':'','key':_0x1d88b2(0x71),'keyType':_0x1d88b2(0x87),'variableName':_0x1d88b2(0x7d)},{'type':'keyValue','content':'','key':'Talk\x20Time','keyType':_0x1d88b2(0x87),'variableName':_0x1d88b2(0x84)}];break;case _0x1d88b2(0x88):_0x460fc4=[{'type':_0x1d88b2(0x6d),'content':_0x1d88b2(0x7a),'variableName':null},{'type':'keyValue','content':'','key':'Called\x20Number','keyType':_0x1d88b2(0x87),'keyContent':'','variableName':'destcalleridnum'},{'type':'keyValue','content':'','key':'Member\x20Name','keyType':_0x1d88b2(0x87),'keyContent':'','variableName':'membername'},{'type':'keyValue','content':'','key':_0x1d88b2(0x8c),'keyType':_0x1d88b2(0x87),'keyContent':'','variableName':_0x1d88b2(0x86)},{'type':_0x1d88b2(0x6a),'content':'','key':_0x1d88b2(0x73),'keyType':_0x1d88b2(0x87),'keyContent':'','variableName':_0x1d88b2(0x74)},{'type':_0x1d88b2(0x6d),'content':_0x1d88b2(0x7e)},{'type':_0x1d88b2(0x6a),'content':'','key':_0x1d88b2(0x85),'keyType':_0x1d88b2(0x87),'keyContent':'','variableName':_0x1d88b2(0x6e)},{'type':'keyValue','content':'','key':_0x1d88b2(0x89),'keyType':_0x1d88b2(0x87),'keyContent':'','variableName':_0x1d88b2(0x82)},{'type':_0x1d88b2(0x6a),'content':'','key':_0x1d88b2(0x68),'keyType':'variable','keyContent':'','variableName':'duration'},{'type':_0x1d88b2(0x6a),'content':'','key':_0x1d88b2(0x8d),'keyType':_0x1d88b2(0x87),'keyContent':'','variableName':'billableseconds'}];break;}}return _0x460fc4;}; \ No newline at end of file diff --git a/server/components/interaction/service.js b/server/components/interaction/service.js index 4f1091d..f23cbb9 100644 --- a/server/components/interaction/service.js +++ b/server/components/interaction/service.js @@ -1 +1 @@ -const a994_0x3f7e=['catch','stringify','mail-interactions','upperFirst','fax-interactions','InteractionId','unknown','phone','findOne','query','user','then','body','lodash','tracked','toUpperCase','../../config/logger','../../mysqldb','error','html','fax','null','clone','[%s]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','omit','info'];(function(_0x1fa9e9,_0x38a4c5){const _0x3f7e43=function(_0x239ac1){while(--_0x239ac1){_0x1fa9e9['push'](_0x1fa9e9['shift']());}};_0x3f7e43(++_0x38a4c5);}(a994_0x3f7e,0xfa));const a994_0x239a=function(_0x1fa9e9,_0x38a4c5){_0x1fa9e9=_0x1fa9e9-0xff;let _0x3f7e43=a994_0x3f7e[_0x1fa9e9];return _0x3f7e43;};const a994_0x1df8a1=a994_0x239a;'use strict';const _=require(a994_0x1df8a1(0x116)),{db}=require(a994_0x1df8a1(0x100)),loggers={'openchannel':require(a994_0x1df8a1(0xff))('openchannel-interactions'),'mail':require(a994_0x1df8a1(0xff))(a994_0x1df8a1(0x10b)),'fax':require(a994_0x1df8a1(0xff))(a994_0x1df8a1(0x10d)),'sms':require('../../config/logger')('sms-interactions'),'chat':require(a994_0x1df8a1(0xff))('chat-interactions'),'whatsapp':require(a994_0x1df8a1(0xff))('whatsapp-interactions')};function getInteractionId(_0x51f8f3,_0x5c78a7,_0x3bee35){const _0x5c5cdb=a994_0x1df8a1;if(_0x51f8f3&&_0x51f8f3[_[_0x5c5cdb(0x10c)](_0x3bee35)+_0x5c5cdb(0x10e)])return _0x51f8f3[_[_0x5c5cdb(0x10c)](_0x3bee35)+_0x5c5cdb(0x10e)];else{if(_0x51f8f3&&_0x51f8f3['id'])return _0x51f8f3['id'];else return _0x5c78a7&&_0x5c78a7['id']?_0x5c78a7['id']:_0x5c5cdb(0x10f);}}function log(_0x29fc44,_0x21aca9,_0x14f51c,_0x531207,_0xc2b410,_0x2b2f81){const _0x4daaa9=a994_0x1df8a1;loggers[_0xc2b410['toLowerCase']()][_0x29fc44](_0x4daaa9(0x106),_0x2b2f81[_0x4daaa9(0x118)](),_0x21aca9?_0x21aca9['id']:null,_0x21aca9?_0x21aca9['name']:null,_0x21aca9?_0x21aca9['role']:null,getInteractionId(_0x14f51c,_0x531207,_0xc2b410),_0x14f51c?JSON[_0x4daaa9(0x10a)](_0x14f51c):_0x4daaa9(0x104));}function updateUser(_0x1c2eff,_0x3ccabf,_0xf09ae8,_0x57b177,_0x7fabf){const _0x4c3fae=a994_0x1df8a1;db[_[_0x4c3fae(0x10c)](_0x57b177)+'Interaction'][_0x4c3fae(0x111)]({'where':{'id':getInteractionId(_0x3ccabf,_0xf09ae8,_0x57b177)}})[_0x4c3fae(0x114)](function(_0x49b67d){if(_0x49b67d)return _0x49b67d['update']({'UserId':_0x1c2eff?_0x1c2eff['id']:null});})[_0x4c3fae(0x114)](function(_0x17c42c){const _0x467029=_0x4c3fae;_0x17c42c&&log(_0x467029(0x108),_0x1c2eff,_0x3ccabf,_0xf09ae8,_0x57b177,_0x7fabf);})[_0x4c3fae(0x109)](function(){const _0x57d718=_0x4c3fae;log(_0x57d718(0x101),_0x1c2eff,_0x3ccabf,_0xf09ae8,_0x57b177,_0x7fabf);});}exports[a994_0x1df8a1(0x117)]=function(_0x498cae,_0x2d2be6){return function(_0x3b3142,_0x915f1d,_0x35288c){const _0x49e5c8=a994_0x239a,_0x258795=_0x3b3142[_0x49e5c8(0x113)];let _0x2b18e3={};const _0x116236=_0x3b3142[_0x49e5c8(0x112)];_0x2b18e3&&(_0x2b18e3=_[_0x49e5c8(0x105)](_0x3b3142[_0x49e5c8(0x115)]),_0x2b18e3=_[_0x49e5c8(0x107)](_0x2b18e3,['body',_0x49e5c8(0x102),_0x49e5c8(0x110),_0x49e5c8(0x103),'mobile'])),updateUser(_0x258795,_0x2b18e3,_0x116236,_0x498cae,_0x2d2be6),_0x35288c(null);};}; \ No newline at end of file +const a994_0x568e=['openchannel-interactions','toUpperCase','phone','html','error','null','user','then','info','catch','unknown','tracked','mail-interactions','lodash','body','mobile','omit','[%s]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','../../mysqldb','InteractionId','../../config/logger','query','upperFirst','fax-interactions','chat-interactions','sms-interactions','role','Interaction','toLowerCase','update','clone'];(function(_0xdbdbb4,_0x38cfd9){const _0x568e01=function(_0x9e6c6f){while(--_0x9e6c6f){_0xdbdbb4['push'](_0xdbdbb4['shift']());}};_0x568e01(++_0x38cfd9);}(a994_0x568e,0xbe));const a994_0x9e6c=function(_0xdbdbb4,_0x38cfd9){_0xdbdbb4=_0xdbdbb4-0xc8;let _0x568e01=a994_0x568e[_0xdbdbb4];return _0x568e01;};const a994_0x2ce5e9=a994_0x9e6c;'use strict';const _=require(a994_0x2ce5e9(0xd1)),{db}=require(a994_0x2ce5e9(0xd6)),loggers={'openchannel':require(a994_0x2ce5e9(0xd8))(a994_0x2ce5e9(0xe3)),'mail':require(a994_0x2ce5e9(0xd8))(a994_0x2ce5e9(0xd0)),'fax':require(a994_0x2ce5e9(0xd8))(a994_0x2ce5e9(0xdb)),'sms':require(a994_0x2ce5e9(0xd8))(a994_0x2ce5e9(0xdd)),'chat':require('../../config/logger')(a994_0x2ce5e9(0xdc)),'whatsapp':require('../../config/logger')('whatsapp-interactions')};function getInteractionId(_0x2caad6,_0x83127c,_0x3cf36c){const _0x1e5383=a994_0x2ce5e9;if(_0x2caad6&&_0x2caad6[_[_0x1e5383(0xda)](_0x3cf36c)+_0x1e5383(0xd7)])return _0x2caad6[_[_0x1e5383(0xda)](_0x3cf36c)+'InteractionId'];else{if(_0x2caad6&&_0x2caad6['id'])return _0x2caad6['id'];else return _0x83127c&&_0x83127c['id']?_0x83127c['id']:_0x1e5383(0xce);}}function log(_0x25ead4,_0x5d4d80,_0x33d9dd,_0x336a98,_0xf14767,_0x3f4c2a){const _0x5bebcc=a994_0x2ce5e9;loggers[_0xf14767[_0x5bebcc(0xe0)]()][_0x25ead4](_0x5bebcc(0xd5),_0x3f4c2a[_0x5bebcc(0xe4)](),_0x5d4d80?_0x5d4d80['id']:null,_0x5d4d80?_0x5d4d80['name']:null,_0x5d4d80?_0x5d4d80[_0x5bebcc(0xde)]:null,getInteractionId(_0x33d9dd,_0x336a98,_0xf14767),_0x33d9dd?JSON['stringify'](_0x33d9dd):_0x5bebcc(0xc9));}function updateUser(_0x230b19,_0x5418d7,_0x4e8847,_0x262b91,_0x14fc25){const _0x4aeb30=a994_0x2ce5e9;db[_[_0x4aeb30(0xda)](_0x262b91)+_0x4aeb30(0xdf)]['findOne']({'where':{'id':getInteractionId(_0x5418d7,_0x4e8847,_0x262b91)}})[_0x4aeb30(0xcb)](function(_0x5b7972){const _0x16bb1e=_0x4aeb30;if(_0x5b7972)return _0x5b7972[_0x16bb1e(0xe1)]({'UserId':_0x230b19?_0x230b19['id']:null});})[_0x4aeb30(0xcb)](function(_0x2d3e60){const _0x2da22b=_0x4aeb30;_0x2d3e60&&log(_0x2da22b(0xcc),_0x230b19,_0x5418d7,_0x4e8847,_0x262b91,_0x14fc25);})[_0x4aeb30(0xcd)](function(){const _0x564f8f=_0x4aeb30;log(_0x564f8f(0xc8),_0x230b19,_0x5418d7,_0x4e8847,_0x262b91,_0x14fc25);});}exports[a994_0x2ce5e9(0xcf)]=function(_0x3ed150,_0x5b5ce2){return function(_0x37c891,_0x17f3ac,_0x40e781){const _0x36411a=a994_0x9e6c,_0x51bbc1=_0x37c891[_0x36411a(0xca)];let _0x4e3a2c={};const _0x4b60d3=_0x37c891[_0x36411a(0xd9)];_0x4e3a2c&&(_0x4e3a2c=_[_0x36411a(0xe2)](_0x37c891[_0x36411a(0xd2)]),_0x4e3a2c=_[_0x36411a(0xd4)](_0x4e3a2c,['body',_0x36411a(0xe6),_0x36411a(0xe5),'fax',_0x36411a(0xd3)])),updateUser(_0x51bbc1,_0x4e3a2c,_0x4b60d3,_0x3ed150,_0x5b5ce2),_0x40e781(null);};}; \ No newline at end of file diff --git a/server/components/license/service.js b/server/components/license/service.js index 784ce8a..66f8c33 100644 --- a/server/components/license/service.js +++ b/server/components/license/service.js @@ -1 +1 @@ -const a995_0x2299=['status','users','../../mysqldb','count','License','sequelize','json','../encryptor','Maximum\x20%s\x20limit\x20have\x20been\x20reached','then','user','format','isUserLimit','catch','util','User','findOne','composable-middleware'];(function(_0x278516,_0x536aed){const _0x229939=function(_0x3d0ccd){while(--_0x3d0ccd){_0x278516['push'](_0x278516['shift']());}};_0x229939(++_0x536aed);}(a995_0x2299,0x17e));const a995_0x3d0c=function(_0x278516,_0x536aed){_0x278516=_0x278516-0x104;let _0x229939=a995_0x2299[_0x278516];return _0x229939;};const a995_0x392824=a995_0x3d0c;'use strict';const util=require(a995_0x392824(0x10e)),compose=require(a995_0x392824(0x111)),{Op}=require(a995_0x392824(0x105)),{db}=require(a995_0x392824(0x114)),{getValueFromLicense}=require(a995_0x392824(0x107));function isLimit(_0x4ea192,_0x1a7767,_0x1b7cdb,_0x2a18b3){let _0x32409c=_0x1a7767;return compose()['use'](function(_0x3ccd87,_0x5f4e04,_0x5a7dbc){const _0x205c61=a995_0x3d0c;return db[_0x205c61(0x104)][_0x205c61(0x110)]({'where':{'id':0x1},'raw':!![]})['then'](function(_0x3c0bc4){const _0x23f9b1=getValueFromLicense(_0x4ea192,_0x3c0bc4);return _0x23f9b1?_0x23f9b1:_0x32409c;})[_0x205c61(0x109)](function(_0x3fdc22){const _0x8268bd=_0x205c61;return _0x32409c=_0x3fdc22,_0x1b7cdb[_0x8268bd(0x115)](_0x2a18b3);})[_0x205c61(0x109)](function(_0x1de38d){const _0x47e73d=_0x205c61;if(_0x1de38d>=_0x32409c)return _0x5f4e04[_0x47e73d(0x112)](0x193)[_0x47e73d(0x106)]({'message':util[_0x47e73d(0x10b)](_0x47e73d(0x108),_0x4ea192)});_0x5a7dbc();})[_0x205c61(0x10d)](function(_0x88292d){_0x5a7dbc(_0x88292d);});});}function isUserLimit(){const _0x336cb7=a995_0x392824;return isLimit(_0x336cb7(0x113),0x1,db[_0x336cb7(0x10f)],{'where':{[Op['or']]:[{'role':'admin'},{'role':_0x336cb7(0x10a)}]}});}exports[a995_0x392824(0x10c)]=isUserLimit; \ No newline at end of file +const a995_0xe4b6=['findOne','Maximum\x20%s\x20limit\x20have\x20been\x20reached','composable-middleware','isUserLimit','util','then','count','User','../../mysqldb','user','sequelize','use','status','json','format','catch'];(function(_0x400d19,_0x3e82de){const _0xe4b605=function(_0x471051){while(--_0x471051){_0x400d19['push'](_0x400d19['shift']());}};_0xe4b605(++_0x3e82de);}(a995_0xe4b6,0xd6));const a995_0x4710=function(_0x400d19,_0x3e82de){_0x400d19=_0x400d19-0xb6;let _0xe4b605=a995_0xe4b6[_0x400d19];return _0xe4b605;};const a995_0x3bdcd3=a995_0x4710;'use strict';const util=require(a995_0x3bdcd3(0xc4)),compose=require(a995_0x3bdcd3(0xc2)),{Op}=require(a995_0x3bdcd3(0xba)),{db}=require(a995_0x3bdcd3(0xb8)),{getValueFromLicense}=require('../encryptor');function isLimit(_0x2419ef,_0x10b899,_0x5e67a7,_0x5b26c3){const _0x2c41be=a995_0x3bdcd3;let _0x3156a0=_0x10b899;return compose()[_0x2c41be(0xbb)](function(_0x37f152,_0x1a2b9a,_0x25cc89){const _0x3d8a07=_0x2c41be;return db['License'][_0x3d8a07(0xc0)]({'where':{'id':0x1},'raw':!![]})[_0x3d8a07(0xc5)](function(_0x4db03a){const _0x1d9e50=getValueFromLicense(_0x2419ef,_0x4db03a);return _0x1d9e50?_0x1d9e50:_0x3156a0;})[_0x3d8a07(0xc5)](function(_0x16fac1){const _0x339d24=_0x3d8a07;return _0x3156a0=_0x16fac1,_0x5e67a7[_0x339d24(0xb6)](_0x5b26c3);})[_0x3d8a07(0xc5)](function(_0x76980c){const _0x5b82d7=_0x3d8a07;if(_0x76980c>=_0x3156a0)return _0x1a2b9a[_0x5b82d7(0xbc)](0x193)[_0x5b82d7(0xbd)]({'message':util[_0x5b82d7(0xbe)](_0x5b82d7(0xc1),_0x2419ef)});_0x25cc89();})[_0x3d8a07(0xbf)](function(_0x254495){_0x25cc89(_0x254495);});});}function isUserLimit(){const _0x2a098c=a995_0x3bdcd3;return isLimit('users',0x1,db[_0x2a098c(0xb7)],{'where':{[Op['or']]:[{'role':'admin'},{'role':_0x2a098c(0xb9)}]}});}exports[a995_0x3bdcd3(0xc3)]=isUserLimit; \ No newline at end of file diff --git a/server/components/parsers/advancedSearch.js b/server/components/parsers/advancedSearch.js index e99ae9b..3d59759 100644 --- a/server/components/parsers/advancedSearch.js +++ b/server/components/parsers/advancedSearch.js @@ -1 +1 @@ -const a996_0x5c70=['format','lodash','$substring','filter','and','$between','$gt','IN\x20?','includes','>=\x20?','text','shift','\x20AS\x20','<\x20?','replace','$notIn','forEach','CAST(','[$or]','YYYY-MM-DD','$endsWith','push','operator','map','>\x20?','BETWEEN\x20?\x20AND\x20?','$lte','value','DATE','indexOf','sqlOperator','[$and]','=\x20?','\x20OR\x20','buildExpression','pop','start','length','utcOffset','parseSearch','\x20IS\x20NULL)','<=\x20?','$in','$ne','match','seconds','$eq','minutes','field','add','$lt','split','castTo','$startsWith','startsWith','hours'];(function(_0xd703c7,_0x3891de){const _0x5c7011=function(_0x3ed742){while(--_0x3ed742){_0xd703c7['push'](_0xd703c7['shift']());}};_0x5c7011(++_0x3891de);}(a996_0x5c70,0xe5));const a996_0x3ed7=function(_0xd703c7,_0x3891de){_0xd703c7=_0xd703c7-0x104;let _0x5c7011=a996_0x5c70[_0xd703c7];return _0x5c7011;};const a996_0xed7268=a996_0x3ed7;'use strict';const _=require(a996_0xed7268(0x138)),moment=require('moment');exports[a996_0xed7268(0x126)]=function(_0x1c9961){const _0x23968a=a996_0xed7268,_0x188519={'conditions':[]};_0x188519[_0x23968a(0x11d)]=_[_0x23968a(0x135)](_0x1c9961,_0x23968a(0x111))?'or':_0x23968a(0x13b);const _0x44ea97=_0x1c9961[_0x23968a(0x10d)](_0x23968a(0x11e),'')[_0x23968a(0x10d)](_0x23968a(0x111),'')[_0x23968a(0x132)]('||');for(let _0x5d0345=0x0;_0x5d0345<_0x44ea97[_0x23968a(0x124)];_0x5d0345++){const _0x2b9a4b=_0x44ea97[_0x5d0345][_0x23968a(0x132)](':='),_0x19e752=_0x2b9a4b[0x0],_0xeb61df=_0x2b9a4b['slice'](0x1);_0xeb61df[_0x23968a(0x10f)](function(_0x1a418a){const _0x1daacd=_0x23968a,_0x26711f=_0x1a418a[_0x1daacd(0x132)]('[')[_0x1daacd(0x10a)](),_0x2eb154=_0x1a418a[_0x1daacd(0x12b)](/\[(.*?)\]/g);_0x2eb154['forEach'](function(_0x5c7f07){const _0x37a729=_0x1daacd,_0x2e7363=_0x5c7f07[_0x37a729(0x132)]('[')[_0x37a729(0x13a)](function(_0x409dff){const _0x32167b=_0x37a729;return _0x409dff[_0x32167b(0x11c)](']')>-0x1;})[_0x37a729(0x116)](function(_0x55782e){return _0x55782e['split'](']')[0x0];})[0x0];_0x188519['conditions'][_0x37a729(0x114)]({'field':_0x19e752,'operator':_0x26711f,'value':_0x2e7363});});});}return _0x188519;},exports[a996_0xed7268(0x121)]=function(_0x52c532,_0x18f2e0,_0x120cb6){const _0x4254d0=a996_0xed7268,_0x44ba8b={};if(_0x18f2e0===_0x4254d0(0x11b)){if(_0x120cb6['operator']===_0x4254d0(0x12d))_0x120cb6[_0x4254d0(0x115)]=_0x4254d0(0x104),_0x120cb6[_0x4254d0(0x11a)]+=','+_0x120cb6['value'];else _[_0x4254d0(0x107)]([_0x4254d0(0x105),_0x4254d0(0x119)],_0x120cb6[_0x4254d0(0x115)])&&(_0x120cb6[_0x4254d0(0x11a)]=moment(_0x120cb6[_0x4254d0(0x11a)])[_0x4254d0(0x130)](0x1,'days')[_0x4254d0(0x137)](_0x4254d0(0x112)));}_0x120cb6['castTo']?(_0x18f2e0=_0x120cb6[_0x4254d0(0x133)],_0x44ba8b['text']=_0x4254d0(0x110)+_0x52c532+'.'+_0x120cb6[_0x4254d0(0x12f)]+_0x4254d0(0x10b)+_0x120cb6[_0x4254d0(0x133)]+')\x20'+parseOperator(_0x120cb6[_0x4254d0(0x115)])):_0x44ba8b['text']=_0x52c532+'.'+_0x120cb6[_0x4254d0(0x12f)]+'\x20'+parseOperator(_0x120cb6[_0x4254d0(0x115)]);if(_[_0x4254d0(0x107)]([_0x4254d0(0x12a),_0x4254d0(0x10e)],_0x120cb6[_0x4254d0(0x115)]))_0x44ba8b[_0x4254d0(0x109)]='('+_0x44ba8b[_0x4254d0(0x109)]+_0x4254d0(0x120)+_0x52c532+'.'+_0x120cb6[_0x4254d0(0x12f)]+_0x4254d0(0x127);return _0x44ba8b[_0x4254d0(0x11a)]=parseValue(_0x18f2e0,_0x120cb6['operator'],_0x120cb6[_0x4254d0(0x11a)]),_0x44ba8b;};function parseOperator(_0x29f992){const _0x3ffa8d=a996_0xed7268;let _0x4a71bd;switch(_0x29f992){case _0x3ffa8d(0x129):_0x4a71bd=_0x3ffa8d(0x106);break;case _0x3ffa8d(0x10e):_0x4a71bd='NOT\x20IN\x20?';break;case _0x3ffa8d(0x12d):_0x4a71bd=_0x3ffa8d(0x11f);break;case _0x3ffa8d(0x12a):_0x4a71bd='<>\x20?';break;case _0x3ffa8d(0x139):case _0x3ffa8d(0x134):case _0x3ffa8d(0x113):_0x4a71bd='LIKE\x20?';break;case _0x3ffa8d(0x131):_0x4a71bd=_0x3ffa8d(0x10c);break;case _0x3ffa8d(0x105):_0x4a71bd=_0x3ffa8d(0x117);break;case _0x3ffa8d(0x119):_0x4a71bd=_0x3ffa8d(0x128);break;case'$gte':_0x4a71bd=_0x3ffa8d(0x108);break;case'$between':_0x4a71bd=_0x3ffa8d(0x118);break;}return _0x4a71bd;}function parseValue(_0x57106f,_0x55c4df,_0x51cec5){const _0x9c28a0=a996_0xed7268;let _0x3b5217={'start':undefined,'end':undefined};switch(_0x55c4df){case'$in':case _0x9c28a0(0x10e):_0x3b5217[_0x9c28a0(0x123)]=_0x51cec5[_0x9c28a0(0x132)](',');break;case _0x9c28a0(0x139):_0x3b5217[_0x9c28a0(0x123)]='%'+_0x51cec5+'%';break;case _0x9c28a0(0x134):_0x3b5217['start']=_0x51cec5+'%';break;case _0x9c28a0(0x113):_0x3b5217['start']='%'+_0x51cec5;break;case _0x9c28a0(0x104):{const _0x4c930c=_0x5a7a52[_0x9c28a0(0x132)](',');let _0x5a7a52=_0x4c930c[_0x9c28a0(0x10a)](),_0x2be170=_0x4c930c[_0x9c28a0(0x122)]();_0x57106f===_0x9c28a0(0x11b)&&(_0x5a7a52=moment(_0x5a7a52)[_0x9c28a0(0x125)](0x0,!![])['format'](),_0x2be170=moment(_0x2be170)[_0x9c28a0(0x125)](0x0,!![])[_0x9c28a0(0x130)](0x17,_0x9c28a0(0x136))['add'](0x3b,_0x9c28a0(0x12e))[_0x9c28a0(0x130)](0x3b,_0x9c28a0(0x12c))[_0x9c28a0(0x137)]()),_0x3b5217={'start':_0x5a7a52,'end':_0x2be170};}break;default:_0x3b5217[_0x9c28a0(0x123)]=_0x51cec5;break;}return _0x3b5217;} \ No newline at end of file +const a996_0xc006=['text','$endsWith','days','$lte','IN\x20?','minutes','hours','sqlOperator','split','CAST(','$gte','utcOffset','$startsWith','operator','filter','LIKE\x20?','map','=\x20?','add','$eq','>=\x20?','shift','match','DATE','start','$in','startsWith','castTo','[$or]','\x20IS\x20NULL)','$between','format','push','conditions','value','[$and]','$ne','forEach','$lt','pop','slice','BETWEEN\x20?\x20AND\x20?','$gt','YYYY-MM-DD','$notIn','$substring','seconds','\x20OR\x20','NOT\x20IN\x20?','<=\x20?','<>\x20?','replace','indexOf','includes'];(function(_0x5d1b01,_0x34e4aa){const _0xc00659=function(_0x5e6793){while(--_0x5e6793){_0x5d1b01['push'](_0x5d1b01['shift']());}};_0xc00659(++_0x34e4aa);}(a996_0xc006,0x80));const a996_0x5e67=function(_0x5d1b01,_0x34e4aa){_0x5d1b01=_0x5d1b01-0xf5;let _0xc00659=a996_0xc006[_0x5d1b01];return _0xc00659;};'use strict';const _=require('lodash'),moment=require('moment');exports['parseSearch']=function(_0x23c379){const _0x88a9c2=a996_0x5e67,_0x46b4c8={'conditions':[]};_0x46b4c8[_0x88a9c2(0x11e)]=_[_0x88a9c2(0xfb)](_0x23c379,_0x88a9c2(0xfd))?'or':'and';const _0x4d294c=_0x23c379[_0x88a9c2(0x114)](_0x88a9c2(0x104),'')['replace'](_0x88a9c2(0xfd),'')[_0x88a9c2(0x11f)]('||');for(let _0x2eb0b5=0x0;_0x2eb0b5<_0x4d294c['length'];_0x2eb0b5++){const _0x3bf972=_0x4d294c[_0x2eb0b5]['split'](':='),_0x1502e3=_0x3bf972[0x0],_0x13c96d=_0x3bf972[_0x88a9c2(0x109)](0x1);_0x13c96d[_0x88a9c2(0x106)](function(_0x7a911b){const _0x5cbb62=_0x88a9c2,_0x5a24b4=_0x7a911b[_0x5cbb62(0x11f)]('[')['shift'](),_0x3ea6a9=_0x7a911b[_0x5cbb62(0xf7)](/\[(.*?)\]/g);_0x3ea6a9[_0x5cbb62(0x106)](function(_0x2f5009){const _0x953c39=_0x5cbb62,_0x4f4d59=_0x2f5009[_0x953c39(0x11f)]('[')[_0x953c39(0x125)](function(_0x49f57a){const _0xa5961a=_0x953c39;return _0x49f57a[_0xa5961a(0x115)](']')>-0x1;})[_0x953c39(0x127)](function(_0x406cef){const _0x29e354=_0x953c39;return _0x406cef[_0x29e354(0x11f)](']')[0x0];})[0x0];_0x46b4c8[_0x953c39(0x102)][_0x953c39(0x101)]({'field':_0x1502e3,'operator':_0x5a24b4,'value':_0x4f4d59});});});}return _0x46b4c8;},exports['buildExpression']=function(_0x43a42e,_0x1a9955,_0x4517fd){const _0x423cb5=a996_0x5e67,_0xe49a60={};if(_0x1a9955===_0x423cb5(0xf8)){if(_0x4517fd[_0x423cb5(0x124)]===_0x423cb5(0x12a))_0x4517fd[_0x423cb5(0x124)]=_0x423cb5(0xff),_0x4517fd[_0x423cb5(0x103)]+=','+_0x4517fd[_0x423cb5(0x103)];else _[_0x423cb5(0x116)]([_0x423cb5(0x10b),_0x423cb5(0x11a)],_0x4517fd[_0x423cb5(0x124)])&&(_0x4517fd['value']=moment(_0x4517fd['value'])['add'](0x1,_0x423cb5(0x119))[_0x423cb5(0x100)](_0x423cb5(0x10c)));}_0x4517fd[_0x423cb5(0xfc)]?(_0x1a9955=_0x4517fd[_0x423cb5(0xfc)],_0xe49a60[_0x423cb5(0x117)]=_0x423cb5(0x120)+_0x43a42e+'.'+_0x4517fd['field']+'\x20AS\x20'+_0x4517fd[_0x423cb5(0xfc)]+')\x20'+parseOperator(_0x4517fd[_0x423cb5(0x124)])):_0xe49a60[_0x423cb5(0x117)]=_0x43a42e+'.'+_0x4517fd['field']+'\x20'+parseOperator(_0x4517fd[_0x423cb5(0x124)]);if(_[_0x423cb5(0x116)]([_0x423cb5(0x105),'$notIn'],_0x4517fd['operator']))_0xe49a60[_0x423cb5(0x117)]='('+_0xe49a60[_0x423cb5(0x117)]+_0x423cb5(0x110)+_0x43a42e+'.'+_0x4517fd['field']+_0x423cb5(0xfe);return _0xe49a60[_0x423cb5(0x103)]=parseValue(_0x1a9955,_0x4517fd[_0x423cb5(0x124)],_0x4517fd[_0x423cb5(0x103)]),_0xe49a60;};function parseOperator(_0x330229){const _0x17419a=a996_0x5e67;let _0x5209f0;switch(_0x330229){case _0x17419a(0xfa):_0x5209f0=_0x17419a(0x11b);break;case _0x17419a(0x10d):_0x5209f0=_0x17419a(0x111);break;case _0x17419a(0x12a):_0x5209f0=_0x17419a(0x128);break;case'$ne':_0x5209f0=_0x17419a(0x113);break;case'$substring':case _0x17419a(0x123):case _0x17419a(0x118):_0x5209f0=_0x17419a(0x126);break;case _0x17419a(0x107):_0x5209f0='<\x20?';break;case _0x17419a(0x10b):_0x5209f0='>\x20?';break;case _0x17419a(0x11a):_0x5209f0=_0x17419a(0x112);break;case _0x17419a(0x121):_0x5209f0=_0x17419a(0xf5);break;case'$between':_0x5209f0=_0x17419a(0x10a);break;}return _0x5209f0;}function parseValue(_0x29844d,_0x5f118d,_0xdeb26a){const _0x193c26=a996_0x5e67;let _0x38e272={'start':undefined,'end':undefined};switch(_0x5f118d){case'$in':case'$notIn':_0x38e272[_0x193c26(0xf9)]=_0xdeb26a[_0x193c26(0x11f)](',');break;case _0x193c26(0x10e):_0x38e272[_0x193c26(0xf9)]='%'+_0xdeb26a+'%';break;case _0x193c26(0x123):_0x38e272[_0x193c26(0xf9)]=_0xdeb26a+'%';break;case _0x193c26(0x118):_0x38e272[_0x193c26(0xf9)]='%'+_0xdeb26a;break;case'$between':{const _0x296646=_0x2c6220[_0x193c26(0x11f)](',');let _0x2c6220=_0x296646[_0x193c26(0xf6)](),_0x535434=_0x296646[_0x193c26(0x108)]();_0x29844d===_0x193c26(0xf8)&&(_0x2c6220=moment(_0x2c6220)[_0x193c26(0x122)](0x0,!![])['format'](),_0x535434=moment(_0x535434)[_0x193c26(0x122)](0x0,!![])[_0x193c26(0x129)](0x17,_0x193c26(0x11d))[_0x193c26(0x129)](0x3b,_0x193c26(0x11c))[_0x193c26(0x129)](0x3b,_0x193c26(0x10f))[_0x193c26(0x100)]()),_0x38e272={'start':_0x2c6220,'end':_0x535434};}break;default:_0x38e272['start']=_0xdeb26a;break;}return _0x38e272;} \ No newline at end of file diff --git a/server/components/parsers/qs.js b/server/components/parsers/qs.js index 37bbf50..27a8128 100644 --- a/server/components/parsers/qs.js +++ b/server/components/parsers/qs.js @@ -1 +1 @@ -const a997_0x244c=['lte','sequelize','omit','isString','unset','isArray','YYYY-MM-DD','match','isEmail','split','DESC','limit','lodash','indexOf','isPlainObject','forOwn','moment','includes','undefined','offset','^[+]?[0-9]*$','getFullTextValue','format','sort','forEach','priority','parse','cast','filters','$lte','ASC','fields','join','col','find','type','push','$gte','unsigned','isNumeric','subtract','isEmpty','map','utc'];(function(_0x44bfdd,_0xe5dabe){const _0x244c93=function(_0x33992b){while(--_0x33992b){_0x44bfdd['push'](_0x44bfdd['shift']());}};_0x244c93(++_0xe5dabe);}(a997_0x244c,0xa9));const a997_0x3399=function(_0x44bfdd,_0xe5dabe){_0x44bfdd=_0x44bfdd-0x1a4;let _0x244c93=a997_0x244c[_0x44bfdd];return _0x244c93;};const a997_0x45eb62=a997_0x3399;'use strict';const _=require(a997_0x45eb62(0x1b7)),sequelize=require(a997_0x45eb62(0x1ac)),moment=require(a997_0x45eb62(0x1bb)),Op=sequelize['Op'],LIMIT_VALUE=0xfa;exports[a997_0x45eb62(0x1ca)]=function(_0x8b3207){const _0x3cfcaf=a997_0x45eb62;let _0x2906df=null;return _0x8b3207&&(_0x2906df=_0x8b3207[_0x3cfcaf(0x1b4)](',')),_0x2906df;},exports[a997_0x45eb62(0x1c7)]=function(_0x16f282,_0x2c18c1){const _0x14718d=a997_0x45eb62,_0x214865={};return!_[_0x14718d(0x1a8)](_0x16f282)&&_[_0x14718d(0x1ba)](_0x16f282,function(_0x35ee9a,_0x538094){const _0x5b5175=_0x14718d;try{if(_0x2c18c1){const _0x137d46=_[_0x5b5175(0x1cd)](_0x2c18c1,{'name':_0x538094})||{};if(_0x137d46[_0x5b5175(0x1ce)]==='DATE'&&_[_0x5b5175(0x1b9)](_0x35ee9a)){const _0x38cb7c=JSON[_0x5b5175(0x1c5)](_0x35ee9a),_0x567a92={[Op['gte']]:moment(moment(_0x38cb7c[_0x5b5175(0x1a4)])['format'](_0x5b5175(0x1b1)))[_0x5b5175(0x1aa)]()[_0x5b5175(0x1c1)](),[Op[_0x5b5175(0x1ab)]]:moment(moment(_0x38cb7c[_0x5b5175(0x1c8)])[_0x5b5175(0x1c1)](_0x5b5175(0x1b1)))[_0x5b5175(0x1aa)]()[_0x5b5175(0x1a7)](0x1,'s')[_0x5b5175(0x1c1)]()};_0x214865[_0x538094]=_0x567a92;}else _0x214865[_0x538094]=_['isArray'](_0x35ee9a)?_0x35ee9a:JSON[_0x5b5175(0x1c5)](_0x35ee9a);}else _0x214865[_0x538094]=_[_0x5b5175(0x1b0)](_0x35ee9a)?_0x35ee9a:JSON['parse'](_0x35ee9a);}catch(_0x53ed64){_0x214865[_0x538094]=_0x35ee9a[_0x5b5175(0x1b4)](',');}}),_0x214865;},exports[a997_0x45eb62(0x1b6)]=function(_0x24d934){return _0x24d934=parseInt(_0x24d934,0xa),(!_0x24d934||_0x24d934<0x0)&&(_0x24d934=LIMIT_VALUE),_0x24d934;},exports[a997_0x45eb62(0x1be)]=function(_0x66d13d){return _0x66d13d=parseInt(_0x66d13d,0xa),(!_0x66d13d||_0x66d13d<0x0)&&(_0x66d13d=0x0),_0x66d13d;},exports[a997_0x45eb62(0x1c2)]=function(_0xbcabb3){const _0x49277b=a997_0x45eb62;let _0x5dcfbe,_0x12b550=null;return _0xbcabb3&&(_0x5dcfbe=_0xbcabb3['split'](','),_0x12b550=_[_0x49277b(0x1a9)](_0x5dcfbe,function(_0x41c54e){const _0x4e9e4b=_0x49277b;return _0x41c54e[_0x4e9e4b(0x1b8)]('-')===0x0?[_0x41c54e===_0x4e9e4b(0x1c4)?sequelize[_0x4e9e4b(0x1c6)](sequelize[_0x4e9e4b(0x1cc)](_0x4e9e4b(0x1c4)),_0x4e9e4b(0x1a5)):_0x41c54e['substr'](0x1),_0x4e9e4b(0x1b5)]:[_0x41c54e===_0x4e9e4b(0x1c4)?sequelize[_0x4e9e4b(0x1c6)](sequelize[_0x4e9e4b(0x1cc)](_0x4e9e4b(0x1c4)),_0x4e9e4b(0x1a5)):_0x41c54e,_0x4e9e4b(0x1c9)];})),_0x12b550;},exports[a997_0x45eb62(0x1ad)]=function(_0x1014fa,_0x206e84){const _0x4239f0=a997_0x45eb62;if(_['isEmpty'](_0x1014fa))return _0x1014fa;if(_[_0x4239f0(0x1b0)](_0x1014fa)){for(let _0x470053=0x0;_0x470053<_0x1014fa['length'];_0x470053+=0x1){_0x1014fa[_0x470053]=this[_0x4239f0(0x1ad)](_0x1014fa[_0x470053],_0x206e84);}return _0x1014fa;}if(!_['isObject'](_0x1014fa))return _0x1014fa;_[_0x4239f0(0x1ae)](_0x206e84)&&(_0x206e84=[_0x206e84]);if(!_['isArray'](_0x206e84))return _0x1014fa;for(let _0x31369a=0x0;_0x31369a<_0x206e84['length'];_0x31369a+=0x1){_[_0x4239f0(0x1af)](_0x1014fa,_0x206e84[_0x31369a]);}for(const _0x3017bc in _0x1014fa){typeof _0x1014fa[_0x3017bc]!==_0x4239f0(0x1bd)&&(_0x1014fa[_0x3017bc]=this['omit'](_0x1014fa[_0x3017bc],_0x206e84));}return _0x1014fa;},exports[a997_0x45eb62(0x1a6)]=function(_0x56166f){const _0x1da6fb=a997_0x45eb62;return _0x56166f['match'](RegExp(_0x1da6fb(0x1bf)))?!![]:![];},exports[a997_0x45eb62(0x1b3)]=function(_0x5089d6){const _0x4f336d=a997_0x45eb62;return _0x5089d6[_0x4f336d(0x1b2)](/^\S+@\S+$/)?!![]:![];},exports[a997_0x45eb62(0x1c0)]=function(_0x4a3825){const _0x227234=a997_0x45eb62,_0x3e1f85=[];return _0x4a3825[_0x227234(0x1b4)](/[ ,]+/)[_0x227234(0x1c3)](function(_0x47af11){const _0x48eb7b=_0x227234;_0x47af11=_0x47af11['replace'](/([^:]")"+/g,'$1'),_0x47af11='+'+_0x47af11+'*';if(_0x47af11[_0x48eb7b(0x1bc)]('@'))_0x47af11='\x22'+_0x47af11+'\x22';_0x3e1f85[_0x48eb7b(0x1cf)](_0x47af11);}),_0x3e1f85[_0x227234(0x1cb)]('\x20');}; \ No newline at end of file +const a997_0xd9ac=['join','push','isPlainObject','split','col','DATE','$gte','match','limit','priority','isString','type','ASC','forEach','YYYY-MM-DD','forOwn','isEmail','moment','isObject','gte','find','includes','isEmpty','subtract','cast','replace','filters','lte','^[+]?[0-9]*$','utc','lodash','indexOf','fields','isNumeric','omit','DESC','sequelize','format','unset','getFullTextValue','length','isArray','sort','parse','substr'];(function(_0x123063,_0x1d0119){const _0xd9ac67=function(_0x57fe78){while(--_0x57fe78){_0x123063['push'](_0x123063['shift']());}};_0xd9ac67(++_0x1d0119);}(a997_0xd9ac,0x9a));const a997_0x57fe=function(_0x123063,_0x1d0119){_0x123063=_0x123063-0x15c;let _0xd9ac67=a997_0xd9ac[_0x123063];return _0xd9ac67;};const a997_0x42985a=a997_0x57fe;'use strict';const _=require(a997_0x42985a(0x167)),sequelize=require(a997_0x42985a(0x16d)),moment=require(a997_0x42985a(0x187)),Op=sequelize['Op'],LIMIT_VALUE=0xfa;exports[a997_0x42985a(0x169)]=function(_0x3eaa1b){const _0x2e7194=a997_0x42985a;let _0x331dcf=null;return _0x3eaa1b&&(_0x331dcf=_0x3eaa1b[_0x2e7194(0x179)](',')),_0x331dcf;},exports[a997_0x42985a(0x163)]=function(_0x1de3a7,_0x5d19a8){const _0x5e0e73=a997_0x42985a,_0x373a55={};return!_[_0x5e0e73(0x15f)](_0x1de3a7)&&_[_0x5e0e73(0x185)](_0x1de3a7,function(_0x41f647,_0x3f94e7){const _0x1cf2f9=_0x5e0e73;try{if(_0x5d19a8){const _0x5196b5=_[_0x1cf2f9(0x15d)](_0x5d19a8,{'name':_0x3f94e7})||{};if(_0x5196b5[_0x1cf2f9(0x181)]===_0x1cf2f9(0x17b)&&_[_0x1cf2f9(0x178)](_0x41f647)){const _0x4e7bf6=JSON['parse'](_0x41f647),_0x1073cf={[Op[_0x1cf2f9(0x15c)]]:moment(moment(_0x4e7bf6[_0x1cf2f9(0x17c)])[_0x1cf2f9(0x16e)](_0x1cf2f9(0x184)))[_0x1cf2f9(0x166)]()['format'](),[Op[_0x1cf2f9(0x164)]]:moment(moment(_0x4e7bf6['$lte'])[_0x1cf2f9(0x16e)]('YYYY-MM-DD'))[_0x1cf2f9(0x166)]()[_0x1cf2f9(0x160)](0x1,'s')[_0x1cf2f9(0x16e)]()};_0x373a55[_0x3f94e7]=_0x1073cf;}else _0x373a55[_0x3f94e7]=_[_0x1cf2f9(0x172)](_0x41f647)?_0x41f647:JSON[_0x1cf2f9(0x174)](_0x41f647);}else _0x373a55[_0x3f94e7]=_[_0x1cf2f9(0x172)](_0x41f647)?_0x41f647:JSON['parse'](_0x41f647);}catch(_0x2fb5f6){_0x373a55[_0x3f94e7]=_0x41f647[_0x1cf2f9(0x179)](',');}}),_0x373a55;},exports[a997_0x42985a(0x17e)]=function(_0x293bc0){return _0x293bc0=parseInt(_0x293bc0,0xa),(!_0x293bc0||_0x293bc0<0x0)&&(_0x293bc0=LIMIT_VALUE),_0x293bc0;},exports['offset']=function(_0x1513e7){return _0x1513e7=parseInt(_0x1513e7,0xa),(!_0x1513e7||_0x1513e7<0x0)&&(_0x1513e7=0x0),_0x1513e7;},exports[a997_0x42985a(0x173)]=function(_0x2d3eb3){const _0x28e90e=a997_0x42985a;let _0x778d8a,_0x46a5d9=null;return _0x2d3eb3&&(_0x778d8a=_0x2d3eb3[_0x28e90e(0x179)](','),_0x46a5d9=_['map'](_0x778d8a,function(_0x2fb3ea){const _0x2b051d=_0x28e90e;return _0x2fb3ea[_0x2b051d(0x168)]('-')===0x0?[_0x2fb3ea==='priority'?sequelize[_0x2b051d(0x161)](sequelize[_0x2b051d(0x17a)]('priority'),'unsigned'):_0x2fb3ea[_0x2b051d(0x175)](0x1),_0x2b051d(0x16c)]:[_0x2fb3ea===_0x2b051d(0x17f)?sequelize[_0x2b051d(0x161)](sequelize[_0x2b051d(0x17a)](_0x2b051d(0x17f)),'unsigned'):_0x2fb3ea,_0x2b051d(0x182)];})),_0x46a5d9;},exports[a997_0x42985a(0x16b)]=function(_0x50dd81,_0x36fd92){const _0x33c7a8=a997_0x42985a;if(_['isEmpty'](_0x50dd81))return _0x50dd81;if(_[_0x33c7a8(0x172)](_0x50dd81)){for(let _0x366879=0x0;_0x366879<_0x50dd81[_0x33c7a8(0x171)];_0x366879+=0x1){_0x50dd81[_0x366879]=this[_0x33c7a8(0x16b)](_0x50dd81[_0x366879],_0x36fd92);}return _0x50dd81;}if(!_[_0x33c7a8(0x188)](_0x50dd81))return _0x50dd81;_[_0x33c7a8(0x180)](_0x36fd92)&&(_0x36fd92=[_0x36fd92]);if(!_['isArray'](_0x36fd92))return _0x50dd81;for(let _0x343b43=0x0;_0x343b43<_0x36fd92['length'];_0x343b43+=0x1){_[_0x33c7a8(0x16f)](_0x50dd81,_0x36fd92[_0x343b43]);}for(const _0x4bf4f3 in _0x50dd81){typeof _0x50dd81[_0x4bf4f3]!=='undefined'&&(_0x50dd81[_0x4bf4f3]=this[_0x33c7a8(0x16b)](_0x50dd81[_0x4bf4f3],_0x36fd92));}return _0x50dd81;},exports[a997_0x42985a(0x16a)]=function(_0x4972c0){const _0x42c0fe=a997_0x42985a;return _0x4972c0[_0x42c0fe(0x17d)](RegExp(_0x42c0fe(0x165)))?!![]:![];},exports[a997_0x42985a(0x186)]=function(_0x38c0ee){const _0xdde600=a997_0x42985a;return _0x38c0ee[_0xdde600(0x17d)](/^\S+@\S+$/)?!![]:![];},exports[a997_0x42985a(0x170)]=function(_0x4085f3){const _0x19accf=a997_0x42985a,_0x5a1c22=[];return _0x4085f3[_0x19accf(0x179)](/[ ,]+/)[_0x19accf(0x183)](function(_0x4e3895){const _0x4aea64=_0x19accf;_0x4e3895=_0x4e3895[_0x4aea64(0x162)](/([^:]")"+/g,'$1'),_0x4e3895='+'+_0x4e3895+'*';if(_0x4e3895[_0x4aea64(0x15e)]('@'))_0x4e3895='\x22'+_0x4e3895+'\x22';_0x5a1c22[_0x4aea64(0x177)](_0x4e3895);}),_0x5a1c22[_0x19accf(0x176)]('\x20');}; \ No newline at end of file diff --git a/server/config/api-documentation.js b/server/config/api-documentation.js index 1003bd9..393aadb 100644 --- a/server/config/api-documentation.js +++ b/server/config/api-documentation.js @@ -1 +1 @@ -const a998_0x59f7=['parse','openapi.rpc','default','/openapi.rpc.document.json','use','openapi.json','send','/openapi.document.json','appPath','Redocs\x20API\x20Docs','get','/swagger-ui','/redocs','promises','version','url','apiDocumentation','redoc-express','swagger-ui-express','application/json','/redocs-rpc','yml','endsWith','Motion\x20V2\x20RPC\x20API','info','://','readFile','Content-Type','protocol','join','servers','setHeader','path','Motion\x20V2\x20API','includes','setup','Reading\x20document\x20from\x20','text/yaml','yaml','schemas'];(function(_0x2e6bb6,_0x4ac358){const _0x59f701=function(_0x39bc92){while(--_0x39bc92){_0x2e6bb6['push'](_0x2e6bb6['shift']());}};_0x59f701(++_0x4ac358);}(a998_0x59f7,0xcb));const a998_0x39bc=function(_0x2e6bb6,_0x4ac358){_0x2e6bb6=_0x2e6bb6-0x160;let _0x59f701=a998_0x59f7[_0x2e6bb6];return _0x59f701;};const a998_0x26f960=a998_0x39bc,path=require(a998_0x26f960(0x17d)),fs=require('fs'),redoc=require(a998_0x26f960(0x16e)),swaggerUi=require(a998_0x26f960(0x16f)),{version:packageVersion}=require('../../package.json'),YAML=require(a998_0x26f960(0x183)),OPENAPI_DOC_URL_RX=/^\/openapi\.document\.(json|yml)$/,OPENAPI_RPC_DOC_URL_RX=/^\/openapi\.rpc\.document\.(json|yml)$/,OPENAPI_DOC_URL=a998_0x26f960(0x164),OPENAPI_RPC_DOC_URL=a998_0x26f960(0x160);async function getSwaggerDocument(_0x15b218,_0x4ed0e0){const _0x27dd37=a998_0x26f960,_0xd69269=_0x15b218['app']['get'](_0x27dd37(0x165)),_0x2dcb5a=_0x15b218['hostname'],_0x505c40=_0x15b218[_0x27dd37(0x179)],_0x8bea73=_0x15b218['url'][_0x27dd37(0x17f)](_0x27dd37(0x186)),_0x4d98a3=_0x15b218[_0x27dd37(0x16c)][_0x27dd37(0x173)](_0x27dd37(0x172)),_0x1a7bd2=path[_0x27dd37(0x17a)](_0xd69269,_0x27dd37(0x184),'openapi',_0x8bea73?'openapi.rpc.json':_0x27dd37(0x162));console['log'](_0x27dd37(0x181)+_0x1a7bd2);const _0x1a2857=await fs[_0x27dd37(0x16a)][_0x27dd37(0x177)](_0x1a7bd2,'utf-8'),_0x26b1f6=JSON[_0x27dd37(0x185)](_0x1a2857);_0x26b1f6[_0x27dd37(0x175)][_0x27dd37(0x16b)]=packageVersion,!_0x8bea73&&_0x2dcb5a!=='localhost:9000'&&(_0x26b1f6[_0x27dd37(0x17b)]=[{'url':_0x505c40+_0x27dd37(0x176)+_0x2dcb5a+'/api','description':'Current\x20Server'},..._0x26b1f6[_0x27dd37(0x17b)]]),_0x4d98a3?(_0x4ed0e0['setHeader'](_0x27dd37(0x178),_0x27dd37(0x182)),_0x4ed0e0[_0x27dd37(0x163)](YAML['stringify'](_0x26b1f6))):(_0x4ed0e0[_0x27dd37(0x17c)](_0x27dd37(0x178),_0x27dd37(0x170)),_0x4ed0e0['send'](_0x26b1f6));}function apiDocumentation(_0x6c96b9){const _0x1c6d7d=a998_0x26f960;_0x6c96b9[_0x1c6d7d(0x167)](OPENAPI_DOC_URL_RX,getSwaggerDocument),_0x6c96b9[_0x1c6d7d(0x167)](OPENAPI_RPC_DOC_URL_RX,getSwaggerDocument);const _0x147c0e={'explorer':!![],'swaggerOptions':{'urls':[{'url':OPENAPI_DOC_URL,'name':_0x1c6d7d(0x17e)},{'url':OPENAPI_RPC_DOC_URL,'name':_0x1c6d7d(0x174)}]}};return _0x6c96b9[_0x1c6d7d(0x161)](_0x1c6d7d(0x168),swaggerUi['serve'],swaggerUi[_0x1c6d7d(0x180)](null,_0x147c0e)),_0x6c96b9['get'](_0x1c6d7d(0x169),redoc({'title':_0x1c6d7d(0x166),'specUrl':OPENAPI_DOC_URL})),_0x6c96b9[_0x1c6d7d(0x167)](_0x1c6d7d(0x171),redoc({'title':'Redocs\x20RPC\x20API\x20Docs','specUrl':OPENAPI_RPC_DOC_URL})),_0x6c96b9;}exports[a998_0x26f960(0x16d)]=apiDocumentation,exports[a998_0x26f960(0x187)]=apiDocumentation; \ No newline at end of file +const a998_0x5031=['://','localhost:9000','setup','/openapi.document.json','protocol','Motion\x20V2\x20API','default','log','path','yaml','app','application/json','openapi.rpc','stringify','openapi.json','Reading\x20document\x20from\x20','serve','servers','parse','Redocs\x20RPC\x20API\x20Docs','setHeader','text/yaml','swagger-ui-express','/openapi.rpc.document.json','send','info','../../package.json','promises','version','Content-Type','openapi.rpc.json','url','schemas','get','Redocs\x20API\x20Docs','openapi','/redocs-rpc','includes'];(function(_0x322ec9,_0x4d7876){const _0x503164=function(_0x3e0c67){while(--_0x3e0c67){_0x322ec9['push'](_0x322ec9['shift']());}};_0x503164(++_0x4d7876);}(a998_0x5031,0x17f));const a998_0x3e0c=function(_0x322ec9,_0x4d7876){_0x322ec9=_0x322ec9-0x65;let _0x503164=a998_0x5031[_0x322ec9];return _0x503164;};const a998_0x2ee122=a998_0x3e0c,path=require(a998_0x2ee122(0x6a)),fs=require('fs'),redoc=require('redoc-express'),swaggerUi=require(a998_0x2ee122(0x78)),{version:packageVersion}=require(a998_0x2ee122(0x7c)),YAML=require(a998_0x2ee122(0x6b)),OPENAPI_DOC_URL_RX=/^\/openapi\.document\.(json|yml)$/,OPENAPI_RPC_DOC_URL_RX=/^\/openapi\.rpc\.document\.(json|yml)$/,OPENAPI_DOC_URL=a998_0x2ee122(0x65),OPENAPI_RPC_DOC_URL=a998_0x2ee122(0x79);async function getSwaggerDocument(_0x8cd8fd,_0x347fbf){const _0x476f3d=a998_0x2ee122,_0x3e0782=_0x8cd8fd[_0x476f3d(0x6c)][_0x476f3d(0x83)]('appPath'),_0x127f77=_0x8cd8fd['hostname'],_0x5ecf86=_0x8cd8fd[_0x476f3d(0x66)],_0x4eb03d=_0x8cd8fd['url'][_0x476f3d(0x87)](_0x476f3d(0x6e)),_0x4973b2=_0x8cd8fd[_0x476f3d(0x81)]['endsWith']('yml'),_0x47426a=path['join'](_0x3e0782,_0x476f3d(0x82),_0x476f3d(0x85),_0x4eb03d?_0x476f3d(0x80):_0x476f3d(0x70));console[_0x476f3d(0x69)](_0x476f3d(0x71)+_0x47426a);const _0x4b3708=await fs[_0x476f3d(0x7d)]['readFile'](_0x47426a,'utf-8'),_0x12be75=JSON[_0x476f3d(0x74)](_0x4b3708);_0x12be75[_0x476f3d(0x7b)][_0x476f3d(0x7e)]=packageVersion,!_0x4eb03d&&_0x127f77!==_0x476f3d(0x89)&&(_0x12be75[_0x476f3d(0x73)]=[{'url':_0x5ecf86+_0x476f3d(0x88)+_0x127f77+'/api','description':'Current\x20Server'},..._0x12be75['servers']]),_0x4973b2?(_0x347fbf[_0x476f3d(0x76)]('Content-Type',_0x476f3d(0x77)),_0x347fbf[_0x476f3d(0x7a)](YAML[_0x476f3d(0x6f)](_0x12be75))):(_0x347fbf['setHeader'](_0x476f3d(0x7f),_0x476f3d(0x6d)),_0x347fbf[_0x476f3d(0x7a)](_0x12be75));}function apiDocumentation(_0x1715ca){const _0x456be8=a998_0x2ee122;_0x1715ca[_0x456be8(0x83)](OPENAPI_DOC_URL_RX,getSwaggerDocument),_0x1715ca[_0x456be8(0x83)](OPENAPI_RPC_DOC_URL_RX,getSwaggerDocument);const _0x2b7453={'explorer':!![],'swaggerOptions':{'urls':[{'url':OPENAPI_DOC_URL,'name':_0x456be8(0x67)},{'url':OPENAPI_RPC_DOC_URL,'name':'Motion\x20V2\x20RPC\x20API'}]}};return _0x1715ca['use']('/swagger-ui',swaggerUi[_0x456be8(0x72)],swaggerUi[_0x456be8(0x8a)](null,_0x2b7453)),_0x1715ca['get']('/redocs',redoc({'title':_0x456be8(0x84),'specUrl':OPENAPI_DOC_URL})),_0x1715ca['get'](_0x456be8(0x86),redoc({'title':_0x456be8(0x75),'specUrl':OPENAPI_RPC_DOC_URL})),_0x1715ca;}exports['apiDocumentation']=apiDocumentation,exports[a998_0x2ee122(0x68)]=apiDocumentation; \ No newline at end of file diff --git a/server/config/config.service.js b/server/config/config.service.js index 2467dbd..420e357 100644 --- a/server/config/config.service.js +++ b/server/config/config.service.js @@ -1 +1 @@ -const a999_0x27b5=['replace','true','lodash','NODE_ENV','number','defineProperties','production','./env_definitions','boolean','toLowerCase','reduce','test','undefined'];(function(_0x5adb1d,_0x1a529c){const _0x27b57e=function(_0x30befa){while(--_0x30befa){_0x5adb1d['push'](_0x5adb1d['shift']());}};_0x27b57e(++_0x1a529c);}(a999_0x27b5,0x15d));const a999_0x30be=function(_0x5adb1d,_0x1a529c){_0x5adb1d=_0x5adb1d-0x1a3;let _0x27b57e=a999_0x27b5[_0x5adb1d];return _0x27b57e;};const a999_0x68299a=a999_0x30be,{camelCase}=require(a999_0x68299a(0x1a7)),{validKeys}=require(a999_0x68299a(0x1ac)),VALID_KEYS=validKeys;function toBoolean(_0x414b7b,_0x46585e=![]){const _0x119163=a999_0x68299a;return typeof _0x414b7b===_0x119163(0x1a4)?_0x46585e:Boolean(typeof _0x414b7b==='string'?_0x414b7b[_0x119163(0x1ae)]()===_0x119163(0x1a6):_0x414b7b);}function toNumber(_0x166304,_0x9deff1=null){const _0x1eae79=typeof _0x166304==='undefined'||_0x166304===null?NaN:Number(_0x166304);return isNaN(_0x1eae79)?_0x9deff1:_0x1eae79;}function toString(_0xde91,_0x5f0e89=''){const _0x4d766b=a999_0x68299a;return typeof _0xde91===_0x4d766b(0x1a4)||_0xde91===null?_0x5f0e89:String(_0xde91);}function getPropertiesConfiguration(){const _0x379590=a999_0x68299a,_0x499d68={'enumerable':!![],'configurable':![],'writable':![]};return VALID_KEYS[_0x379590(0x1af)]((_0x4e193c,{env:_0x20a01f,type:_0xb7f570,defaultValue:_0x36f5ac})=>{const _0x301252=_0x379590;let _0x42f508=null;const _0x125fa5=process['env'][_0x20a01f];switch(_0xb7f570){case _0x301252(0x1ad):_0x42f508=toBoolean(_0x125fa5,_0x36f5ac);break;case _0x301252(0x1a9):_0x42f508=toNumber(_0x125fa5,_0x36f5ac);break;case'string':_0x42f508=toString(_0x125fa5,_0x36f5ac);break;default:break;}if(_0x20a01f===_0x301252(0x1a8))_0x4e193c={..._0x4e193c,'isProduction':{'value':_0x42f508===_0x301252(0x1ab),..._0x499d68},'isTest':{'value':_0x42f508===_0x301252(0x1a3),..._0x499d68},'environment':{'value':_0x42f508,..._0x499d68}};else{const _0x2fc16b=camelCase(_0x20a01f[_0x301252(0x1a5)](/^XC_/,''));_0x4e193c={..._0x4e193c,[_0x2fc16b]:{'value':_0x42f508,..._0x499d68}};}return _0x4e193c;},{});}let configService=null;function getConfigService(){const _0x443d3b=a999_0x68299a;if(configService===null){configService={};const _0x3a08a0=getPropertiesConfiguration();Object[_0x443d3b(0x1aa)](configService,_0x3a08a0);}return configService;}module['exports']['getConfigService']=getConfigService; \ No newline at end of file +const a999_0x4b2c=['lodash','exports','number','undefined','getConfigService','replace','NODE_ENV','string','defineProperties','test','boolean','toLowerCase','reduce'];(function(_0x3df695,_0x140b95){const _0x4b2c2a=function(_0x83f82d){while(--_0x83f82d){_0x3df695['push'](_0x3df695['shift']());}};_0x4b2c2a(++_0x140b95);}(a999_0x4b2c,0x16e));const a999_0x83f8=function(_0x3df695,_0x140b95){_0x3df695=_0x3df695-0x192;let _0x4b2c2a=a999_0x4b2c[_0x3df695];return _0x4b2c2a;};const a999_0x1a4157=a999_0x83f8,{camelCase}=require(a999_0x1a4157(0x19d)),{validKeys}=require('./env_definitions'),VALID_KEYS=validKeys;function toBoolean(_0x27bda1,_0x54e5c6=![]){const _0x491216=a999_0x1a4157;return typeof _0x27bda1===_0x491216(0x193)?_0x54e5c6:Boolean(typeof _0x27bda1==='string'?_0x27bda1[_0x491216(0x19b)]()==='true':_0x27bda1);}function toNumber(_0x732f5c,_0x213b5c=null){const _0x1bafa7=a999_0x1a4157,_0x246947=typeof _0x732f5c===_0x1bafa7(0x193)||_0x732f5c===null?NaN:Number(_0x732f5c);return isNaN(_0x246947)?_0x213b5c:_0x246947;}function toString(_0x177cac,_0x39f361=''){return typeof _0x177cac==='undefined'||_0x177cac===null?_0x39f361:String(_0x177cac);}function getPropertiesConfiguration(){const _0x35b604=a999_0x1a4157,_0x20d354={'enumerable':!![],'configurable':![],'writable':![]};return VALID_KEYS[_0x35b604(0x19c)]((_0x378c41,{env:_0x53ddfe,type:_0x1e6f4e,defaultValue:_0x2236c5})=>{const _0x18faa2=_0x35b604;let _0xd9282c=null;const _0x2a8526=process['env'][_0x53ddfe];switch(_0x1e6f4e){case _0x18faa2(0x19a):_0xd9282c=toBoolean(_0x2a8526,_0x2236c5);break;case _0x18faa2(0x192):_0xd9282c=toNumber(_0x2a8526,_0x2236c5);break;case _0x18faa2(0x197):_0xd9282c=toString(_0x2a8526,_0x2236c5);break;default:break;}if(_0x53ddfe===_0x18faa2(0x196))_0x378c41={..._0x378c41,'isProduction':{'value':_0xd9282c==='production',..._0x20d354},'isTest':{'value':_0xd9282c===_0x18faa2(0x199),..._0x20d354},'environment':{'value':_0xd9282c,..._0x20d354}};else{const _0xf60e76=camelCase(_0x53ddfe[_0x18faa2(0x195)](/^XC_/,''));_0x378c41={..._0x378c41,[_0xf60e76]:{'value':_0xd9282c,..._0x20d354}};}return _0x378c41;},{});}let configService=null;function getConfigService(){const _0x56a4c9=a999_0x1a4157;if(configService===null){configService={};const _0x505269=getPropertiesConfiguration();Object[_0x56a4c9(0x198)](configService,_0x505269);}return configService;}module[a999_0x1a4157(0x19e)][a999_0x1a4157(0x194)]=getConfigService; \ No newline at end of file diff --git a/server/config/environment/development.js b/server/config/environment/development.js index 6cfb9c0..45e0e95 100644 --- a/server/config/environment/development.js +++ b/server/config/environment/development.js @@ -1 +1 @@ -const a1000_0x5a0a=['asteriskPassword','dbHost','determine','jstz','./shared','googleSecret','sessionSecret','timezones','recordingSecret','utf8mb4','../config.service','mysql','redisHost','utf8','dbPort','name','rpcPort','domain','agiIp','/api/auth/google/callback','asteriskHost','exports','redisPort','seedDb','rpcIp','asteriskUsername'];(function(_0x4d4d96,_0x55394a){const _0x5a0a2f=function(_0x429943){while(--_0x429943){_0x4d4d96['push'](_0x4d4d96['shift']());}};_0x5a0a2f(++_0x55394a);}(a1000_0x5a0a,0x1a5));const a1000_0x4299=function(_0x4d4d96,_0x55394a){_0x4d4d96=_0x4d4d96-0xf1;let _0x5a0a2f=a1000_0x5a0a[_0x4d4d96];return _0x5a0a2f;};const a1000_0x58a759=a1000_0x4299;'use strict';const shared=require(a1000_0x58a759(0x10a)),jstz=require(a1000_0x58a759(0x109)),timezone=jstz[a1000_0x58a759(0x108)](),timezoneOffset=shared[a1000_0x58a759(0xf3)][timezone[a1000_0x58a759(0xfb)]()]['offsetStr'],cs=require(a1000_0x58a759(0xf6))['getConfigService']();module[a1000_0x58a759(0x101)]={'sequelize':{'database':cs['mysqlDatabase'],'username':cs['mysqlUser'],'password':cs['mysqlPassword'],'options':{'host':cs[a1000_0x58a759(0x107)],'port':cs['dbPort'],'dialect':a1000_0x58a759(0xf7),'dialectOptions':{'charset':a1000_0x58a759(0xf5)},'timezone':timezoneOffset,'define':{'charset':a1000_0x58a759(0xf9),'collate':'utf8_general_ci'}}},'sequelizeHistory':{'database':cs['mysqlDatabase'],'username':cs['mysqlUser'],'password':cs['mysqlPassword'],'options':{'host':cs[a1000_0x58a759(0x107)],'port':cs[a1000_0x58a759(0xfa)],'dialect':a1000_0x58a759(0xf7),'dialectOptions':{'charset':'utf8mb4'},'logging':![],'timezone':timezoneOffset,'define':{'charset':a1000_0x58a759(0xf9),'collate':'utf8_general_ci'}}},'asterisk':{'ip':cs[a1000_0x58a759(0x100)],'port':cs['asteriskPort'],'username':cs[a1000_0x58a759(0x105)],'password':cs[a1000_0x58a759(0x106)]},'redis':{'host':cs[a1000_0x58a759(0xf8)],'port':cs[a1000_0x58a759(0x102)]},'rpc':{'port':cs[a1000_0x58a759(0xfc)],'ip':cs[a1000_0x58a759(0x104)]},'agi':{'port':cs['agiPort'],'ip':cs[a1000_0x58a759(0xfe)]},'seedDB':cs[a1000_0x58a759(0x103)],'google':{'clientID':cs['googleId'],'clientSecret':cs[a1000_0x58a759(0xf1)],'callbackURL':cs[a1000_0x58a759(0xfd)]+a1000_0x58a759(0xff)},'secrets':{'session':cs[a1000_0x58a759(0xf2)],'recording':cs[a1000_0x58a759(0xf4)]},'xdr':{'disabled':![]}}; \ No newline at end of file +const a1000_0xba40=['exports','agiPort','utf8','googleId','determine','sessionSecret','asteriskPassword','offsetStr','mysql','domain','utf8mb4','mysqlPassword','rpcPort','googleSecret','mysqlUser','seedDb','asteriskHost','dbPort','agiIp','dbHost','redisHost','mysqlDatabase','jstz','./shared','/api/auth/google/callback','asteriskPort','recordingSecret','../config.service','getConfigService','redisPort'];(function(_0x108e3d,_0x201df1){const _0xba409a=function(_0x4f0f59){while(--_0x4f0f59){_0x108e3d['push'](_0x108e3d['shift']());}};_0xba409a(++_0x201df1);}(a1000_0xba40,0xd2));const a1000_0x4f0f=function(_0x108e3d,_0x201df1){_0x108e3d=_0x108e3d-0x11e;let _0xba409a=a1000_0xba40[_0x108e3d];return _0xba409a;};const a1000_0x47a4f5=a1000_0x4f0f;'use strict';const shared=require(a1000_0x47a4f5(0x135)),jstz=require(a1000_0x47a4f5(0x134)),timezone=jstz[a1000_0x47a4f5(0x122)](),timezoneOffset=shared['timezones'][timezone['name']()][a1000_0x47a4f5(0x125)],cs=require(a1000_0x47a4f5(0x139))[a1000_0x47a4f5(0x13a)]();module[a1000_0x47a4f5(0x11e)]={'sequelize':{'database':cs[a1000_0x47a4f5(0x133)],'username':cs[a1000_0x47a4f5(0x12c)],'password':cs[a1000_0x47a4f5(0x129)],'options':{'host':cs[a1000_0x47a4f5(0x131)],'port':cs[a1000_0x47a4f5(0x12f)],'dialect':a1000_0x47a4f5(0x126),'dialectOptions':{'charset':a1000_0x47a4f5(0x128)},'timezone':timezoneOffset,'define':{'charset':a1000_0x47a4f5(0x120),'collate':'utf8_general_ci'}}},'sequelizeHistory':{'database':cs[a1000_0x47a4f5(0x133)],'username':cs[a1000_0x47a4f5(0x12c)],'password':cs['mysqlPassword'],'options':{'host':cs[a1000_0x47a4f5(0x131)],'port':cs[a1000_0x47a4f5(0x12f)],'dialect':a1000_0x47a4f5(0x126),'dialectOptions':{'charset':a1000_0x47a4f5(0x128)},'logging':![],'timezone':timezoneOffset,'define':{'charset':a1000_0x47a4f5(0x120),'collate':'utf8_general_ci'}}},'asterisk':{'ip':cs[a1000_0x47a4f5(0x12e)],'port':cs[a1000_0x47a4f5(0x137)],'username':cs['asteriskUsername'],'password':cs[a1000_0x47a4f5(0x124)]},'redis':{'host':cs[a1000_0x47a4f5(0x132)],'port':cs[a1000_0x47a4f5(0x13b)]},'rpc':{'port':cs[a1000_0x47a4f5(0x12a)],'ip':cs['rpcIp']},'agi':{'port':cs[a1000_0x47a4f5(0x11f)],'ip':cs[a1000_0x47a4f5(0x130)]},'seedDB':cs[a1000_0x47a4f5(0x12d)],'google':{'clientID':cs[a1000_0x47a4f5(0x121)],'clientSecret':cs[a1000_0x47a4f5(0x12b)],'callbackURL':cs[a1000_0x47a4f5(0x127)]+a1000_0x47a4f5(0x136)},'secrets':{'session':cs[a1000_0x47a4f5(0x123)],'recording':cs[a1000_0x47a4f5(0x138)]},'xdr':{'disabled':![]}}; \ No newline at end of file diff --git a/server/config/environment/index.js b/server/config/environment/index.js index 7c2aae4..6e14511 100644 --- a/server/config/environment/index.js +++ b/server/config/environment/index.js @@ -1 +1 @@ -const a1001_0x1281=['../environment/','isProduction','seedDB','environment','exports','sessionSecret','appRoot','port','development','recordingSecret','./shared','isTest','../config.service'];(function(_0x5dd667,_0x151357){const _0x12815e=function(_0x2b4908){while(--_0x2b4908){_0x5dd667['push'](_0x5dd667['shift']());}};_0x12815e(++_0x151357);}(a1001_0x1281,0x1ae));const a1001_0x2b49=function(_0x5dd667,_0x151357){_0x5dd667=_0x5dd667-0x173;let _0x12815e=a1001_0x1281[_0x5dd667];return _0x12815e;};const a1001_0x130b60=a1001_0x2b49;'use strict';const cs=require(a1001_0x130b60(0x17e))['getConfigService'](),all={'env':cs['environment'],'root':global[a1001_0x130b60(0x178)],'browserSyncPort':cs['browserSyncPort'],'port':cs[a1001_0x130b60(0x179)],'ip':cs['ip'],'seedDB':cs[a1001_0x130b60(0x174)],'secrets':{'session':cs[a1001_0x130b60(0x177)],'recording':cs[a1001_0x130b60(0x17b)]}},shared=require(a1001_0x130b60(0x17c)),env=cs[a1001_0x130b60(0x173)]||cs[a1001_0x130b60(0x17d)]?cs[a1001_0x130b60(0x175)]:a1001_0x130b60(0x17a),variables=require(a1001_0x130b60(0x17f)+env);module[a1001_0x130b60(0x176)]={...all,...shared,...variables}; \ No newline at end of file +const a1001_0x42eb=['../config.service','isTest','recordingSecret','../environment/','environment','appRoot','exports','getConfigService','./shared','sessionSecret','seedDB','browserSyncPort','development'];(function(_0x405320,_0x590350){const _0x42eb16=function(_0x55d0d1){while(--_0x55d0d1){_0x405320['push'](_0x405320['shift']());}};_0x42eb16(++_0x590350);}(a1001_0x42eb,0x13c));const a1001_0x55d0=function(_0x405320,_0x590350){_0x405320=_0x405320-0x1da;let _0x42eb16=a1001_0x42eb[_0x405320];return _0x42eb16;};const a1001_0xba93da=a1001_0x55d0;'use strict';const cs=require(a1001_0xba93da(0x1e3))[a1001_0xba93da(0x1dd)](),all={'env':cs[a1001_0xba93da(0x1da)],'root':global[a1001_0xba93da(0x1db)],'browserSyncPort':cs[a1001_0xba93da(0x1e1)],'port':cs['port'],'ip':cs['ip'],'seedDB':cs[a1001_0xba93da(0x1e0)],'secrets':{'session':cs[a1001_0xba93da(0x1df)],'recording':cs[a1001_0xba93da(0x1e5)]}},shared=require(a1001_0xba93da(0x1de)),env=cs['isProduction']||cs[a1001_0xba93da(0x1e4)]?cs['environment']:a1001_0xba93da(0x1e2),variables=require(a1001_0xba93da(0x1e6)+env);module[a1001_0xba93da(0x1dc)]={...all,...shared,...variables}; \ No newline at end of file diff --git a/server/config/environment/production.js b/server/config/environment/production.js deleted file mode 100644 index f171009..0000000 --- a/server/config/environment/production.js +++ /dev/null @@ -1 +0,0 @@ -const a1002_0x5781=['jstz','./shared','utf8_general_ci','mysqlUser','redisPort','agiPort','redisHost','asteriskPassword','mysqlDatabase','asteriskUsername','utf8mb4','exports','dbPort','recordingSecret','sessionSecret','asteriskHost','seedDb','getConfigService','/api/auth/google/callback','timezones','domain','mysqlPassword','determine','utf8','rpcIp','dbHost','mysql','googleSecret'];(function(_0x4b94a3,_0x4529b0){const _0x578104=function(_0x48a2e8){while(--_0x48a2e8){_0x4b94a3['push'](_0x4b94a3['shift']());}};_0x578104(++_0x4529b0);}(a1002_0x5781,0xb4));const a1002_0x48a2=function(_0x4b94a3,_0x4529b0){_0x4b94a3=_0x4b94a3-0x137;let _0x578104=a1002_0x5781[_0x4b94a3];return _0x578104;};const a1002_0x5c3f8c=a1002_0x48a2;'use strict';const shared=require(a1002_0x5c3f8c(0x148)),jstz=require(a1002_0x5c3f8c(0x147)),timezone=jstz[a1002_0x5c3f8c(0x141)](),timezoneOffset=shared[a1002_0x5c3f8c(0x13e)][timezone['name']()]['offsetStr'],cs=require('../config.service')[a1002_0x5c3f8c(0x13c)]();module[a1002_0x5c3f8c(0x152)]={'sequelize':{'database':cs[a1002_0x5c3f8c(0x14f)],'username':cs['mysqlUser'],'password':cs[a1002_0x5c3f8c(0x140)],'options':{'host':cs[a1002_0x5c3f8c(0x144)],'port':cs[a1002_0x5c3f8c(0x137)],'dialect':a1002_0x5c3f8c(0x145),'dialectOptions':{'charset':a1002_0x5c3f8c(0x151)},'timezone':timezoneOffset,'define':{'charset':a1002_0x5c3f8c(0x142),'collate':a1002_0x5c3f8c(0x149)}}},'sequelizeHistory':{'database':cs[a1002_0x5c3f8c(0x14f)],'username':cs[a1002_0x5c3f8c(0x14a)],'password':cs[a1002_0x5c3f8c(0x140)],'options':{'host':cs[a1002_0x5c3f8c(0x144)],'port':cs[a1002_0x5c3f8c(0x137)],'dialect':'mysql','dialectOptions':{'charset':a1002_0x5c3f8c(0x151)},'logging':![],'timezone':timezoneOffset,'define':{'charset':a1002_0x5c3f8c(0x142),'collate':'utf8_general_ci'}}},'asterisk':{'ip':cs[a1002_0x5c3f8c(0x13a)],'port':cs['asteriskPort'],'username':cs[a1002_0x5c3f8c(0x150)],'password':cs[a1002_0x5c3f8c(0x14e)]},'redis':{'host':cs[a1002_0x5c3f8c(0x14d)],'port':cs[a1002_0x5c3f8c(0x14b)]},'rpc':{'port':cs['rpcPort'],'ip':cs[a1002_0x5c3f8c(0x143)]},'agi':{'port':cs[a1002_0x5c3f8c(0x14c)],'ip':cs['agiIp']},'seedDB':cs[a1002_0x5c3f8c(0x13b)],'google':{'clientID':cs['googleId'],'clientSecret':cs[a1002_0x5c3f8c(0x146)],'callbackURL':cs[a1002_0x5c3f8c(0x13f)]+a1002_0x5c3f8c(0x13d)},'secrets':{'session':cs[a1002_0x5c3f8c(0x139)],'recording':cs[a1002_0x5c3f8c(0x138)]},'xdr':{'disabled':![]}}; \ No newline at end of file diff --git a/server/config/environment/shared.js b/server/config/environment/shared.js index 0fe1cde..ae795a8 100644 --- a/server/config/environment/shared.js +++ b/server/config/environment/shared.js @@ -1 +1 @@ -var a1003_0x276c=['Europe/Rome','Atlantic/Faroe','Atlantic/Canary','America/Recife','Pacific/Niue','Asia/Krasnoyarsk','-09:00','+09:00','Asia/Colombo','America/Paramaribo','Asia/Kabul','Asia/Macau','America/Juneau','Asia/Gaza','Asia/Novokuznetsk','Europe/Lisbon','America/Guatemala','Asia/Jerusalem','Asia/Jakarta','America/Noronha','America/Asuncion','Antarctica/Mawson','Pacific/Guam','America/Dawson_Creek','Europe/London','Asia/Qatar','Pacific/Kiritimati','Pacific/Pohnpei','+03:00','Asia/Seoul','UTC','Europe/Zaporozhye','+14:00','Pacific/Noumea','America/Cambridge_Bay','America/Porto_Velho','America/Detroit','Asia/Tbilisi','America/Miquelon','Pacific/Honolulu','America/Dawson','+07:00','Indian/Reunion','Asia/Yakutsk','America/El_Salvador','Pacific/Easter','Asia/Kolkata','Australia/Perth','Pacific/Gambier','-06:00','America/Eirunepe','-02:00','America/Caracas','America/Yellowknife','Asia/Manila','Asia/Samarkand','Pacific/Efate','+13:45','America/Argentina/Mendoza','user','Europe/Gibraltar','America/Adak','Africa/Monrovia','Atlantic/Stanley','Australia/Melbourne','America/Inuvik','America/Creston','Asia/Hovd','Africa/El_Aaiun','America/Cayenne','America/Phoenix','America/Port-au-Prince','America/Swift_Current','Pacific/Marquesas','Asia/Yekaterinburg','Pacific/Wallis','Europe/Bucharest','Europe/Vilnius','America/Campo_Grande','Asia/Amman','+08:00','Europe/Istanbul','-03:00','Africa/Casablanca','Pacific/Kwajalein','America/Merida','+02:00','Asia/Karachi','Africa/Tripoli','Antarctica/Casey','Europe/Athens','Pacific/Chatham','Europe/Berlin','-03:30','America/Denver','Australia/Sydney','America/Cayman','Australia/Adelaide','America/New_York','Asia/Nicosia','America/Glace_Bay','Pacific/Tarawa','Europe/Zurich','America/St_Johns','Europe/Tallinn','+11:00','Africa/Tunis','Europe/Sofia','America/Santiago','America/Los_Angeles','+09:30','Asia/Sakhalin','America/Argentina/San_Luis','America/Goose_Bay','Asia/Tehran','Asia/Riyadh','Asia/Shanghai','Asia/Kamchatka','Antarctica/Palmer','Asia/Urumqi','America/Argentina/San_Juan','+13:00','Europe/Vienna','America/Santa_Isabel','Atlantic/Reykjavik','America/Chicago','America/Argentina/Jujuy','-10:00','America/Argentina/La_Rioja','Pacific/Rarotonga','America/Resolute','America/Mazatlan','America/Indiana/Vevay','Asia/Anadyr','Europe/Monaco','Africa/Algiers','Europe/Samara','Asia/Hebron','Atlantic/Madeira','Europe/Oslo','America/Vancouver','America/North_Dakota/New_Salem','Europe/Kaliningrad','+12:00','Pacific/Galapagos','Asia/Jayapura','America/Chihuahua','America/Cancun','-04:30','America/Argentina/Ushuaia','Pacific/Funafuti','America/Martinique','Africa/Ceuta','America/North_Dakota/Center','Africa/Ndjamena','Antarctica/DumontDUrville','Europe/Riga','Europe/Madrid','Europe/Minsk','America/Pangnirtung','America/Regina','Asia/Hong_Kong','America/Bahia','Europe/Budapest','America/Boise','Australia/Brisbane','America/Thunder_Bay','Indian/Cocos','+10:30','Africa/Khartoum','Asia/Thimphu','America/Anchorage','exports','Asia/Yerevan','America/Tegucigalpa','Europe/Dublin','Indian/Maldives','Asia/Brunei','America/Atikokan','Africa/Johannesburg','Asia/Dubai','Europe/Chisinau','+10:00','Asia/Damascus','Europe/Paris','America/Indiana/Vincennes','America/Indiana/Winamac','America/Godthab','Pacific/Apia','Asia/Ust-Nera','Europe/Luxembourg','America/Matamoros','Asia/Khandyga','America/Yakutat','Indian/Chagos','Asia/Kuching','America/Belem','America/Araguaina','Africa/Maputo','America/Rainy_River','America/Barbados','America/Danmarkshavn','America/Indiana/Indianapolis','America/Montevideo','Europe/Simferopol','America/Winnipeg','guest','Africa/Windhoek','Pacific/Tahiti','-08:00','Asia/Makassar','+01:00','Europe/Kiev','Asia/Dili','Indian/Mauritius','America/Argentina/Buenos_Aires','Europe/Warsaw','Pacific/Kosrae','Atlantic/Bermuda','America/Fortaleza','Asia/Singapore','Europe/Stockholm','Antarctica/Davis','America/Indiana/Petersburg','Asia/Ashgabat','Antarctica/Vostok','+06:30','Asia/Oral','Atlantic/Azores','Pacific/Fiji','Pacific/Pago_Pago','Asia/Novosibirsk','America/Fort_Nelson','America/Indiana/Tell_City','America/Scoresbysund','Africa/Nairobi','Europe/Moscow','America/Mexico_City','America/Havana','Antarctica/Macquarie','-04:00','+08:45','Europe/Uzhgorod','America/Costa_Rica','Australia/Eucla','Asia/Aqtau','-01:00','America/Argentina/Cordoba','Australia/Currie','America/Moncton','Australia/Hobart','Antarctica/Rothera','America/Argentina/Salta','America/Argentina/Catamarca','+03:30','America/Rio_Branco','Asia/Magadan','Europe/Andorra','America/Halifax','Pacific/Port_Moresby','+06:00','America/Panama','America/Monterrey','America/Indiana/Knox','Australia/Broken_Hill','America/Tijuana','+08:30','-11:00','America/Lima','America/Boa_Vista','+05:00','America/Nipigon','-07:00','-05:00','Atlantic/South_Georgia','+00:00','America/Kentucky/Louisville','+04:00','+05:30','Antarctica/Troll','Europe/Helsinki','Australia/Lord_Howe'];(function(_0x2bb72d,_0x1449cc){var _0x276c1e=function(_0xcdae84){while(--_0xcdae84){_0x2bb72d['push'](_0x2bb72d['shift']());}};_0x276c1e(++_0x1449cc);}(a1003_0x276c,0xd9));var a1003_0xcdae=function(_0x2bb72d,_0x1449cc){_0x2bb72d=_0x2bb72d-0x10b;var _0x276c1e=a1003_0x276c[_0x2bb72d];return _0x276c1e;};var a1003_0x18af18=a1003_0xcdae;'use strict';module[a1003_0x18af18(0x1f8)]={'userRoles':[a1003_0x18af18(0x21a),a1003_0x18af18(0x187),'admin'],'timezones':{'Europe/Andorra':{'name':a1003_0x18af18(0x133),'utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['AD']},'Asia/Dubai':{'name':a1003_0x18af18(0x200),'utcOffset':0xf0,'offsetStr':a1003_0x18af18(0x147),'countries':['AE','OM']},'Asia/Kabul':{'name':a1003_0x18af18(0x156),'utcOffset':0x10e,'offsetStr':'+04:30','countries':['AF']},'Europe/Tirane':{'name':'Europe/Tirane','utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['AL']},'Asia/Yerevan':{'name':a1003_0x18af18(0x1f9),'utcOffset':0xf0,'offsetStr':a1003_0x18af18(0x147),'countries':['AM']},'Antarctica/Rothera':{'name':a1003_0x18af18(0x12d),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['AQ']},'Antarctica/Palmer':{'name':a1003_0x18af18(0x1c2),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['AQ']},'Antarctica/Mawson':{'name':a1003_0x18af18(0x161),'utcOffset':0x12c,'offsetStr':a1003_0x18af18(0x140),'countries':['AQ']},'Antarctica/Davis':{'name':a1003_0x18af18(0x110),'utcOffset':0x1a4,'offsetStr':a1003_0x18af18(0x175),'countries':['AQ']},'Antarctica/Casey':{'name':a1003_0x18af18(0x1a5),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['AQ']},'Antarctica/Vostok':{'name':a1003_0x18af18(0x113),'utcOffset':0x168,'offsetStr':a1003_0x18af18(0x136),'countries':['AQ']},'Antarctica/DumontDUrville':{'name':a1003_0x18af18(0x1e7),'utcOffset':0x258,'offsetStr':a1003_0x18af18(0x202),'countries':['AQ']},'Antarctica/Syowa':{'name':'Antarctica/Syowa','utcOffset':0xb4,'offsetStr':a1003_0x18af18(0x168),'countries':['AQ']},'Antarctica/Troll':{'name':a1003_0x18af18(0x149),'utcOffset':0x0,'offsetStr':a1003_0x18af18(0x145),'countries':['AQ']},'America/Argentina/Buenos_Aires':{'name':a1003_0x18af18(0x223),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['AR']},'America/Argentina/Cordoba':{'name':a1003_0x18af18(0x129),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['AR']},'America/Argentina/Salta':{'name':a1003_0x18af18(0x12e),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['AR']},'America/Argentina/Jujuy':{'name':a1003_0x18af18(0x1ca),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['AR']},'America/Argentina/Tucuman':{'name':'America/Argentina/Tucuman','utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['AR']},'America/Argentina/Catamarca':{'name':a1003_0x18af18(0x12f),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['AR']},'America/Argentina/La_Rioja':{'name':a1003_0x18af18(0x1cc),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['AR']},'America/Argentina/San_Juan':{'name':a1003_0x18af18(0x1c4),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['AR']},'America/Argentina/Mendoza':{'name':a1003_0x18af18(0x186),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/San_Luis':{'name':a1003_0x18af18(0x1bc),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/Rio_Gallegos':{'name':'America/Argentina/Rio_Gallegos','utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['AR']},'America/Argentina/Ushuaia':{'name':a1003_0x18af18(0x1e1),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['AR']},'Pacific/Pago_Pago':{'name':a1003_0x18af18(0x118),'utcOffset':-0x294,'offsetStr':a1003_0x18af18(0x13d),'countries':['AS','UM']},'Europe/Vienna':{'name':a1003_0x18af18(0x1c6),'utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['AT']},'Australia/Lord_Howe':{'name':a1003_0x18af18(0x14b),'utcOffset':0x294,'offsetStr':a1003_0x18af18(0x1b5),'countries':['AU']},'Antarctica/Macquarie':{'name':a1003_0x18af18(0x121),'utcOffset':0x294,'offsetStr':a1003_0x18af18(0x1b5),'countries':['AU']},'Australia/Hobart':{'name':a1003_0x18af18(0x12c),'utcOffset':0x294,'offsetStr':a1003_0x18af18(0x1b5),'countries':['AU']},'Australia/Currie':{'name':a1003_0x18af18(0x12a),'utcOffset':0x294,'offsetStr':a1003_0x18af18(0x1b5),'countries':['AU']},'Australia/Melbourne':{'name':a1003_0x18af18(0x18c),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},'Australia/Sydney':{'name':a1003_0x18af18(0x1ab),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},'Australia/Broken_Hill':{'name':a1003_0x18af18(0x13a),'utcOffset':0x276,'offsetStr':a1003_0x18af18(0x1f4),'countries':['AU']},'Australia/Brisbane':{'name':a1003_0x18af18(0x1f1),'utcOffset':0x258,'offsetStr':a1003_0x18af18(0x202),'countries':['AU']},'Australia/Lindeman':{'name':'Australia/Lindeman','utcOffset':0x258,'offsetStr':'+10:00','countries':['AU']},'Australia/Adelaide':{'name':a1003_0x18af18(0x1ad),'utcOffset':0x276,'offsetStr':a1003_0x18af18(0x1f4),'countries':['AU']},'Australia/Darwin':{'name':'Australia/Darwin','utcOffset':0x23a,'offsetStr':a1003_0x18af18(0x1ba),'countries':['AU']},'Australia/Perth':{'name':a1003_0x18af18(0x17b),'utcOffset':0x1e0,'offsetStr':a1003_0x18af18(0x19c),'countries':['AU']},'Australia/Eucla':{'name':a1003_0x18af18(0x126),'utcOffset':0x20d,'offsetStr':a1003_0x18af18(0x123),'countries':['AU']},'Asia/Baku':{'name':'Asia/Baku','utcOffset':0xf0,'offsetStr':a1003_0x18af18(0x147),'countries':['AZ']},'America/Barbados':{'name':a1003_0x18af18(0x214),'utcOffset':-0xf0,'offsetStr':a1003_0x18af18(0x122),'countries':['BB']},'Asia/Dhaka':{'name':'Asia/Dhaka','utcOffset':0x168,'offsetStr':a1003_0x18af18(0x136),'countries':['BD']},'Europe/Brussels':{'name':'Europe/Brussels','utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['BE']},'Europe/Sofia':{'name':a1003_0x18af18(0x1b7),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['BG']},'Atlantic/Bermuda':{'name':a1003_0x18af18(0x10c),'utcOffset':-0xf0,'offsetStr':a1003_0x18af18(0x122),'countries':['BM']},'Asia/Brunei':{'name':a1003_0x18af18(0x1fd),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['BN']},'America/La_Paz':{'name':'America/La_Paz','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BO']},'America/Noronha':{'name':a1003_0x18af18(0x15f),'utcOffset':-0x78,'offsetStr':a1003_0x18af18(0x17f),'countries':['BR']},'America/Belem':{'name':a1003_0x18af18(0x210),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['BR']},'America/Fortaleza':{'name':a1003_0x18af18(0x10d),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['BR']},'America/Recife':{'name':a1003_0x18af18(0x14f),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['BR']},'America/Araguaina':{'name':a1003_0x18af18(0x211),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['BR']},'America/Maceio':{'name':'America/Maceio','utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['BR']},'America/Bahia':{'name':a1003_0x18af18(0x1ee),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['BR']},'America/Sao_Paulo':{'name':'America/Sao_Paulo','utcOffset':-0x78,'offsetStr':a1003_0x18af18(0x17f),'countries':['BR']},'America/Campo_Grande':{'name':a1003_0x18af18(0x19a),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['BR']},'America/Cuiaba':{'name':'America/Cuiaba','utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['BR']},'America/Santarem':{'name':'America/Santarem','utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['BR']},'America/Porto_Velho':{'name':a1003_0x18af18(0x16f),'utcOffset':-0xf0,'offsetStr':a1003_0x18af18(0x122),'countries':['BR']},'America/Boa_Vista':{'name':a1003_0x18af18(0x13f),'utcOffset':-0xf0,'offsetStr':a1003_0x18af18(0x122),'countries':['BR']},'America/Manaus':{'name':'America/Manaus','utcOffset':-0xf0,'offsetStr':a1003_0x18af18(0x122),'countries':['BR']},'America/Eirunepe':{'name':a1003_0x18af18(0x17e),'utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['BR']},'America/Rio_Branco':{'name':a1003_0x18af18(0x131),'utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['BR']},'America/Nassau':{'name':'America/Nassau','utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['BS']},'Asia/Thimphu':{'name':a1003_0x18af18(0x1f6),'utcOffset':0x168,'offsetStr':a1003_0x18af18(0x136),'countries':['BT']},'Europe/Minsk':{'name':a1003_0x18af18(0x1ea),'utcOffset':0xb4,'offsetStr':a1003_0x18af18(0x168),'countries':['BY']},'America/Belize':{'name':'America/Belize','utcOffset':-0x168,'offsetStr':'-06:00','countries':['BZ']},'America/St_Johns':{'name':a1003_0x18af18(0x1b3),'utcOffset':-0xd2,'offsetStr':a1003_0x18af18(0x1a9),'countries':['CA']},'America/Halifax':{'name':a1003_0x18af18(0x134),'utcOffset':-0xf0,'offsetStr':a1003_0x18af18(0x122),'countries':['CA']},'America/Glace_Bay':{'name':a1003_0x18af18(0x1b0),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},'America/Moncton':{'name':a1003_0x18af18(0x12b),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},'America/Goose_Bay':{'name':a1003_0x18af18(0x1bd),'utcOffset':-0xf0,'offsetStr':a1003_0x18af18(0x122),'countries':['CA']},'America/Blanc-Sablon':{'name':'America/Blanc-Sablon','utcOffset':-0xf0,'offsetStr':a1003_0x18af18(0x122),'countries':['CA']},'America/Toronto':{'name':'America/Toronto','utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['CA']},'America/Nipigon':{'name':a1003_0x18af18(0x141),'utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['CA']},'America/Thunder_Bay':{'name':a1003_0x18af18(0x1f2),'utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['CA']},'America/Iqaluit':{'name':'America/Iqaluit','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},'America/Pangnirtung':{'name':a1003_0x18af18(0x1eb),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},'America/Resolute':{'name':a1003_0x18af18(0x1ce),'utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['CA']},'America/Atikokan':{'name':a1003_0x18af18(0x1fe),'utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['CA']},'America/Rankin_Inlet':{'name':'America/Rankin_Inlet','utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['CA']},'America/Winnipeg':{'name':a1003_0x18af18(0x219),'utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['CA']},'America/Rainy_River':{'name':a1003_0x18af18(0x213),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Regina':{'name':a1003_0x18af18(0x1ec),'utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['CA']},'America/Swift_Current':{'name':a1003_0x18af18(0x194),'utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['CA']},'America/Edmonton':{'name':'America/Edmonton','utcOffset':-0x1a4,'offsetStr':a1003_0x18af18(0x142),'countries':['CA']},'America/Cambridge_Bay':{'name':a1003_0x18af18(0x16e),'utcOffset':-0x1a4,'offsetStr':a1003_0x18af18(0x142),'countries':['CA']},'America/Yellowknife':{'name':a1003_0x18af18(0x181),'utcOffset':-0x1a4,'offsetStr':a1003_0x18af18(0x142),'countries':['CA']},'America/Inuvik':{'name':a1003_0x18af18(0x18d),'utcOffset':-0x1a4,'offsetStr':a1003_0x18af18(0x142),'countries':['CA']},'America/Creston':{'name':a1003_0x18af18(0x18e),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},'America/Dawson_Creek':{'name':a1003_0x18af18(0x163),'utcOffset':-0x1a4,'offsetStr':a1003_0x18af18(0x142),'countries':['CA']},'America/Fort_Nelson':{'name':a1003_0x18af18(0x11a),'utcOffset':-0x1a4,'offsetStr':a1003_0x18af18(0x142),'countries':['CA']},'America/Vancouver':{'name':a1003_0x18af18(0x1d8),'utcOffset':-0x1e0,'offsetStr':a1003_0x18af18(0x21d),'countries':['CA']},'America/Whitehorse':{'name':'America/Whitehorse','utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['CA']},'America/Dawson':{'name':a1003_0x18af18(0x174),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['CA']},'Indian/Cocos':{'name':a1003_0x18af18(0x1f3),'utcOffset':0x186,'offsetStr':a1003_0x18af18(0x114),'countries':['CC']},'Europe/Zurich':{'name':a1003_0x18af18(0x1b2),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['CH','DE','LI']},'Africa/Abidjan':{'name':'Africa/Abidjan','utcOffset':0x0,'offsetStr':'+00:00','countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},'Pacific/Rarotonga':{'name':a1003_0x18af18(0x1cd),'utcOffset':-0x258,'offsetStr':'-10:00','countries':['CK']},'America/Santiago':{'name':a1003_0x18af18(0x1b8),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['CL']},'Pacific/Easter':{'name':a1003_0x18af18(0x179),'utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['CL']},'Asia/Shanghai':{'name':a1003_0x18af18(0x1c0),'utcOffset':0x1e0,'offsetStr':a1003_0x18af18(0x19c),'countries':['CN']},'Asia/Urumqi':{'name':a1003_0x18af18(0x1c3),'utcOffset':0x168,'offsetStr':a1003_0x18af18(0x136),'countries':['CN']},'America/Bogota':{'name':'America/Bogota','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CO']},'America/Costa_Rica':{'name':a1003_0x18af18(0x125),'utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['CR']},'America/Havana':{'name':a1003_0x18af18(0x120),'utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['CU']},'Atlantic/Cape_Verde':{'name':'Atlantic/Cape_Verde','utcOffset':-0x3c,'offsetStr':a1003_0x18af18(0x128),'countries':['CV']},'America/Curacao':{'name':'America/Curacao','utcOffset':-0xf0,'offsetStr':a1003_0x18af18(0x122),'countries':['CW','AW','BQ','SX']},'Indian/Christmas':{'name':'Indian/Christmas','utcOffset':0x1a4,'offsetStr':a1003_0x18af18(0x175),'countries':['CX']},'Asia/Nicosia':{'name':a1003_0x18af18(0x1af),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['CY']},'Europe/Prague':{'name':'Europe/Prague','utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['CZ','SK']},'Europe/Berlin':{'name':a1003_0x18af18(0x1a8),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['DE']},'Europe/Copenhagen':{'name':'Europe/Copenhagen','utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['DK']},'America/Santo_Domingo':{'name':'America/Santo_Domingo','utcOffset':-0xf0,'offsetStr':a1003_0x18af18(0x122),'countries':['DO']},'Africa/Algiers':{'name':a1003_0x18af18(0x1d3),'utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['DZ']},'America/Guayaquil':{'name':'America/Guayaquil','utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['EC']},'Pacific/Galapagos':{'name':a1003_0x18af18(0x1dc),'utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['EC']},'Europe/Tallinn':{'name':a1003_0x18af18(0x1b4),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['EE']},'Africa/Cairo':{'name':'Africa/Cairo','utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['EG']},'Africa/El_Aaiun':{'name':a1003_0x18af18(0x190),'utcOffset':0x0,'offsetStr':a1003_0x18af18(0x145),'countries':['EH']},'Europe/Madrid':{'name':a1003_0x18af18(0x1e9),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['ES']},'Africa/Ceuta':{'name':a1003_0x18af18(0x1e4),'utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['ES']},'Atlantic/Canary':{'name':a1003_0x18af18(0x14e),'utcOffset':0x0,'offsetStr':a1003_0x18af18(0x145),'countries':['ES']},'Europe/Helsinki':{'name':a1003_0x18af18(0x14a),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['FI','AX']},'Pacific/Fiji':{'name':a1003_0x18af18(0x117),'utcOffset':0x2d0,'offsetStr':a1003_0x18af18(0x1db),'countries':['FJ']},'Atlantic/Stanley':{'name':a1003_0x18af18(0x18b),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['FK']},'Pacific/Chuuk':{'name':'Pacific/Chuuk','utcOffset':0x258,'offsetStr':'+10:00','countries':['FM']},'Pacific/Pohnpei':{'name':a1003_0x18af18(0x167),'utcOffset':0x294,'offsetStr':a1003_0x18af18(0x1b5),'countries':['FM']},'Pacific/Kosrae':{'name':a1003_0x18af18(0x10b),'utcOffset':0x294,'offsetStr':a1003_0x18af18(0x1b5),'countries':['FM']},'Atlantic/Faroe':{'name':a1003_0x18af18(0x14d),'utcOffset':0x0,'offsetStr':a1003_0x18af18(0x145),'countries':['FO']},'Europe/Paris':{'name':a1003_0x18af18(0x204),'utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['FR']},'UTC':{'name':a1003_0x18af18(0x16a),'utcOffset':0x0,'offsetStr':'+00:00','countries':['GB','GG','IM','JE']},'Europe/London':{'name':a1003_0x18af18(0x164),'utcOffset':0x0,'offsetStr':a1003_0x18af18(0x145),'countries':['GB','GG','IM','JE']},'Asia/Tbilisi':{'name':a1003_0x18af18(0x171),'utcOffset':0xf0,'offsetStr':a1003_0x18af18(0x147),'countries':['GE']},'America/Cayenne':{'name':a1003_0x18af18(0x191),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['GF']},'Africa/Accra':{'name':'Africa/Accra','utcOffset':0x0,'offsetStr':a1003_0x18af18(0x145),'countries':['GH']},'Europe/Gibraltar':{'name':a1003_0x18af18(0x188),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['GI']},'America/Godthab':{'name':a1003_0x18af18(0x207),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['GL']},'America/Danmarkshavn':{'name':a1003_0x18af18(0x215),'utcOffset':0x0,'offsetStr':a1003_0x18af18(0x145),'countries':['GL']},'America/Scoresbysund':{'name':a1003_0x18af18(0x11c),'utcOffset':-0x3c,'offsetStr':a1003_0x18af18(0x128),'countries':['GL']},'America/Thule':{'name':'America/Thule','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['GL']},'Europe/Athens':{'name':a1003_0x18af18(0x1a6),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['GR']},'Atlantic/South_Georgia':{'name':a1003_0x18af18(0x144),'utcOffset':-0x78,'offsetStr':'-02:00','countries':['GS']},'America/Guatemala':{'name':a1003_0x18af18(0x15c),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['GT']},'Pacific/Guam':{'name':a1003_0x18af18(0x162),'utcOffset':0x258,'offsetStr':a1003_0x18af18(0x202),'countries':['GU','MP']},'Africa/Bissau':{'name':'Africa/Bissau','utcOffset':0x0,'offsetStr':a1003_0x18af18(0x145),'countries':['GW']},'America/Guyana':{'name':'America/Guyana','utcOffset':-0xf0,'offsetStr':a1003_0x18af18(0x122),'countries':['GY']},'Asia/Hong_Kong':{'name':a1003_0x18af18(0x1ed),'utcOffset':0x1e0,'offsetStr':a1003_0x18af18(0x19c),'countries':['HK']},'America/Tegucigalpa':{'name':a1003_0x18af18(0x1fa),'utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['HN']},'America/Port-au-Prince':{'name':a1003_0x18af18(0x193),'utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['HT']},'Europe/Budapest':{'name':a1003_0x18af18(0x1ef),'utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['HU']},'Asia/Jakarta':{'name':a1003_0x18af18(0x15e),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['ID']},'Asia/Pontianak':{'name':'Asia/Pontianak','utcOffset':0x1a4,'offsetStr':'+07:00','countries':['ID']},'Asia/Makassar':{'name':a1003_0x18af18(0x21e),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['ID']},'Asia/Jayapura':{'name':a1003_0x18af18(0x1dd),'utcOffset':0x21c,'offsetStr':a1003_0x18af18(0x153),'countries':['ID']},'Europe/Dublin':{'name':a1003_0x18af18(0x1fb),'utcOffset':0x0,'offsetStr':a1003_0x18af18(0x145),'countries':['IE']},'Asia/Jerusalem':{'name':a1003_0x18af18(0x15d),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['IL']},'Asia/Kolkata':{'name':a1003_0x18af18(0x17a),'utcOffset':0x14a,'offsetStr':a1003_0x18af18(0x148),'countries':['IN']},'Indian/Chagos':{'name':a1003_0x18af18(0x20e),'utcOffset':0x168,'offsetStr':a1003_0x18af18(0x136),'countries':['IO']},'Asia/Baghdad':{'name':'Asia/Baghdad','utcOffset':0xb4,'offsetStr':a1003_0x18af18(0x168),'countries':['IQ']},'Asia/Tehran':{'name':a1003_0x18af18(0x1be),'utcOffset':0xd2,'offsetStr':a1003_0x18af18(0x130),'countries':['IR']},'Atlantic/Reykjavik':{'name':a1003_0x18af18(0x1c8),'utcOffset':0x0,'offsetStr':a1003_0x18af18(0x145),'countries':['IS']},'Europe/Rome':{'name':a1003_0x18af18(0x14c),'utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['IT','SM','VA']},'America/Jamaica':{'name':'America/Jamaica','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['JM']},'Asia/Amman':{'name':a1003_0x18af18(0x19b),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['JO']},'Asia/Tokyo':{'name':'Asia/Tokyo','utcOffset':0x21c,'offsetStr':'+09:00','countries':['JP']},'Africa/Nairobi':{'name':a1003_0x18af18(0x11d),'utcOffset':0xb4,'offsetStr':a1003_0x18af18(0x168),'countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},'Asia/Bishkek':{'name':'Asia/Bishkek','utcOffset':0x168,'offsetStr':a1003_0x18af18(0x136),'countries':['KG']},'Pacific/Tarawa':{'name':a1003_0x18af18(0x1b1),'utcOffset':0x2d0,'offsetStr':a1003_0x18af18(0x1db),'countries':['KI']},'Pacific/Enderbury':{'name':'Pacific/Enderbury','utcOffset':0x30c,'offsetStr':a1003_0x18af18(0x1c5),'countries':['KI']},'Pacific/Kiritimati':{'name':a1003_0x18af18(0x166),'utcOffset':0x348,'offsetStr':a1003_0x18af18(0x16c),'countries':['KI']},'Asia/Pyongyang':{'name':'Asia/Pyongyang','utcOffset':0x1fe,'offsetStr':a1003_0x18af18(0x13c),'countries':['KP']},'Asia/Seoul':{'name':a1003_0x18af18(0x169),'utcOffset':0x21c,'offsetStr':a1003_0x18af18(0x153),'countries':['KR']},'America/Cayman':{'name':a1003_0x18af18(0x1ac),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['KY']},'Asia/Almaty':{'name':'Asia/Almaty','utcOffset':0x168,'offsetStr':a1003_0x18af18(0x136),'countries':['KZ']},'Asia/Qyzylorda':{'name':'Asia/Qyzylorda','utcOffset':0x168,'offsetStr':'+06:00','countries':['KZ']},'Asia/Aqtobe':{'name':'Asia/Aqtobe','utcOffset':0x12c,'offsetStr':a1003_0x18af18(0x140),'countries':['KZ']},'Asia/Aqtau':{'name':a1003_0x18af18(0x127),'utcOffset':0x12c,'offsetStr':a1003_0x18af18(0x140),'countries':['KZ']},'Asia/Oral':{'name':a1003_0x18af18(0x115),'utcOffset':0x12c,'offsetStr':a1003_0x18af18(0x140),'countries':['KZ']},'Asia/Beirut':{'name':'Asia/Beirut','utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['LB']},'Asia/Colombo':{'name':a1003_0x18af18(0x154),'utcOffset':0x14a,'offsetStr':a1003_0x18af18(0x148),'countries':['LK']},'Africa/Monrovia':{'name':a1003_0x18af18(0x18a),'utcOffset':0x0,'offsetStr':a1003_0x18af18(0x145),'countries':['LR']},'Europe/Vilnius':{'name':a1003_0x18af18(0x199),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['LT']},'Europe/Luxembourg':{'name':a1003_0x18af18(0x20a),'utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['LU']},'Europe/Riga':{'name':a1003_0x18af18(0x1e8),'utcOffset':0x78,'offsetStr':'+02:00','countries':['LV']},'Africa/Tripoli':{'name':a1003_0x18af18(0x1a4),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['LY']},'Africa/Casablanca':{'name':a1003_0x18af18(0x19f),'utcOffset':0x0,'offsetStr':a1003_0x18af18(0x145),'countries':['MA']},'Europe/Monaco':{'name':a1003_0x18af18(0x1d2),'utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['MC']},'Europe/Chisinau':{'name':a1003_0x18af18(0x201),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['MD']},'Pacific/Majuro':{'name':'Pacific/Majuro','utcOffset':0x2d0,'offsetStr':a1003_0x18af18(0x1db),'countries':['MH']},'Pacific/Kwajalein':{'name':a1003_0x18af18(0x1a0),'utcOffset':0x2d0,'offsetStr':a1003_0x18af18(0x1db),'countries':['MH']},'Asia/Rangoon':{'name':'Asia/Rangoon','utcOffset':0x186,'offsetStr':a1003_0x18af18(0x114),'countries':['MM']},'Asia/Ulaanbaatar':{'name':'Asia/Ulaanbaatar','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MN']},'Asia/Hovd':{'name':a1003_0x18af18(0x18f),'utcOffset':0x1a4,'offsetStr':a1003_0x18af18(0x175),'countries':['MN']},'Asia/Choibalsan':{'name':'Asia/Choibalsan','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MN']},'Asia/Macau':{'name':a1003_0x18af18(0x157),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MO']},'America/Martinique':{'name':a1003_0x18af18(0x1e3),'utcOffset':-0xf0,'offsetStr':a1003_0x18af18(0x122),'countries':['MQ']},'Europe/Malta':{'name':'Europe/Malta','utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['MT']},'Indian/Mauritius':{'name':a1003_0x18af18(0x222),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['MU']},'Indian/Maldives':{'name':a1003_0x18af18(0x1fc),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['MV']},'America/Mexico_City':{'name':a1003_0x18af18(0x11f),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'America/Cancun':{'name':a1003_0x18af18(0x1df),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['MX']},'America/Merida':{'name':a1003_0x18af18(0x1a1),'utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['MX']},'America/Monterrey':{'name':a1003_0x18af18(0x138),'utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['MX']},'America/Matamoros':{'name':a1003_0x18af18(0x20b),'utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['MX']},'America/Mazatlan':{'name':a1003_0x18af18(0x1cf),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['MX']},'America/Chihuahua':{'name':a1003_0x18af18(0x1de),'utcOffset':-0x1a4,'offsetStr':a1003_0x18af18(0x142),'countries':['MX']},'America/Ojinaga':{'name':'America/Ojinaga','utcOffset':-0x1a4,'offsetStr':a1003_0x18af18(0x142),'countries':['MX']},'America/Hermosillo':{'name':'America/Hermosillo','utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['MX']},'America/Tijuana':{'name':a1003_0x18af18(0x13b),'utcOffset':-0x1e0,'offsetStr':a1003_0x18af18(0x21d),'countries':['MX']},'America/Santa_Isabel':{'name':a1003_0x18af18(0x1c7),'utcOffset':-0x1e0,'offsetStr':a1003_0x18af18(0x21d),'countries':['MX']},'America/Bahia_Banderas':{'name':'America/Bahia_Banderas','utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['MX']},'Asia/Kuala_Lumpur':{'name':'Asia/Kuala_Lumpur','utcOffset':0x1e0,'offsetStr':a1003_0x18af18(0x19c),'countries':['MY']},'Asia/Kuching':{'name':a1003_0x18af18(0x20f),'utcOffset':0x1e0,'offsetStr':a1003_0x18af18(0x19c),'countries':['MY']},'Africa/Maputo':{'name':a1003_0x18af18(0x212),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},'Africa/Windhoek':{'name':a1003_0x18af18(0x21b),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['NA']},'Pacific/Noumea':{'name':a1003_0x18af18(0x16d),'utcOffset':0x294,'offsetStr':a1003_0x18af18(0x1b5),'countries':['NC']},'Pacific/Norfolk':{'name':'Pacific/Norfolk','utcOffset':0x294,'offsetStr':'+11:00','countries':['NF']},'Africa/Lagos':{'name':'Africa/Lagos','utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},'America/Managua':{'name':'America/Managua','utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['NI']},'Europe/Amsterdam':{'name':'Europe/Amsterdam','utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['NL']},'Europe/Oslo':{'name':a1003_0x18af18(0x1d7),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['NO','SJ']},'Asia/Kathmandu':{'name':'Asia/Kathmandu','utcOffset':0x159,'offsetStr':'+05:45','countries':['NP']},'Pacific/Nauru':{'name':'Pacific/Nauru','utcOffset':0x2d0,'offsetStr':a1003_0x18af18(0x1db),'countries':['NR']},'Pacific/Niue':{'name':a1003_0x18af18(0x150),'utcOffset':-0x294,'offsetStr':a1003_0x18af18(0x13d),'countries':['NU']},'Pacific/Auckland':{'name':'Pacific/Auckland','utcOffset':0x30c,'offsetStr':a1003_0x18af18(0x1c5),'countries':['NZ','AQ']},'Pacific/Chatham':{'name':a1003_0x18af18(0x1a7),'utcOffset':0x339,'offsetStr':a1003_0x18af18(0x185),'countries':['NZ']},'America/Panama':{'name':a1003_0x18af18(0x137),'utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['PA']},'America/Lima':{'name':a1003_0x18af18(0x13e),'utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['PE']},'Pacific/Tahiti':{'name':a1003_0x18af18(0x21c),'utcOffset':-0x258,'offsetStr':a1003_0x18af18(0x1cb),'countries':['PF']},'Pacific/Marquesas':{'name':a1003_0x18af18(0x195),'utcOffset':-0x23a,'offsetStr':'-09:30','countries':['PF']},'Pacific/Gambier':{'name':a1003_0x18af18(0x17c),'utcOffset':-0x21c,'offsetStr':a1003_0x18af18(0x152),'countries':['PF']},'Pacific/Port_Moresby':{'name':a1003_0x18af18(0x135),'utcOffset':0x258,'offsetStr':a1003_0x18af18(0x202),'countries':['PG']},'Pacific/Bougainville':{'name':'Pacific/Bougainville','utcOffset':0x294,'offsetStr':a1003_0x18af18(0x1b5),'countries':['PG']},'Asia/Manila':{'name':a1003_0x18af18(0x182),'utcOffset':0x1e0,'offsetStr':a1003_0x18af18(0x19c),'countries':['PH']},'Asia/Karachi':{'name':a1003_0x18af18(0x1a3),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['PK']},'Europe/Warsaw':{'name':a1003_0x18af18(0x224),'utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['PL']},'America/Miquelon':{'name':a1003_0x18af18(0x172),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['PM']},'Pacific/Pitcairn':{'name':'Pacific/Pitcairn','utcOffset':-0x1e0,'offsetStr':a1003_0x18af18(0x21d),'countries':['PN']},'America/Puerto_Rico':{'name':'America/Puerto_Rico','utcOffset':-0xf0,'offsetStr':a1003_0x18af18(0x122),'countries':['PR']},'Asia/Gaza':{'name':a1003_0x18af18(0x159),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['PS']},'Asia/Hebron':{'name':a1003_0x18af18(0x1d5),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['PS']},'Europe/Lisbon':{'name':a1003_0x18af18(0x15b),'utcOffset':0x0,'offsetStr':a1003_0x18af18(0x145),'countries':['PT']},'Atlantic/Madeira':{'name':a1003_0x18af18(0x1d6),'utcOffset':0x0,'offsetStr':'+00:00','countries':['PT']},'Atlantic/Azores':{'name':a1003_0x18af18(0x116),'utcOffset':-0x3c,'offsetStr':a1003_0x18af18(0x128),'countries':['PT']},'Pacific/Palau':{'name':'Pacific/Palau','utcOffset':0x21c,'offsetStr':a1003_0x18af18(0x153),'countries':['PW']},'America/Asuncion':{'name':a1003_0x18af18(0x160),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['PY']},'Asia/Qatar':{'name':a1003_0x18af18(0x165),'utcOffset':0xb4,'offsetStr':a1003_0x18af18(0x168),'countries':['QA','BH']},'Indian/Reunion':{'name':a1003_0x18af18(0x176),'utcOffset':0xf0,'offsetStr':a1003_0x18af18(0x147),'countries':['RE','TF']},'Europe/Bucharest':{'name':a1003_0x18af18(0x198),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['RO']},'Europe/Belgrade':{'name':'Europe/Belgrade','utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['RS','BA','HR','ME','MK','SI']},'Europe/Kaliningrad':{'name':a1003_0x18af18(0x1da),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['RU']},'Europe/Moscow':{'name':a1003_0x18af18(0x11e),'utcOffset':0xb4,'offsetStr':a1003_0x18af18(0x168),'countries':['RU']},'Europe/Simferopol':{'name':a1003_0x18af18(0x218),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},'Europe/Volgograd':{'name':'Europe/Volgograd','utcOffset':0xb4,'offsetStr':a1003_0x18af18(0x168),'countries':['RU']},'Europe/Samara':{'name':a1003_0x18af18(0x1d4),'utcOffset':0xf0,'offsetStr':a1003_0x18af18(0x147),'countries':['RU']},'Asia/Yekaterinburg':{'name':a1003_0x18af18(0x196),'utcOffset':0x12c,'offsetStr':a1003_0x18af18(0x140),'countries':['RU']},'Asia/Omsk':{'name':'Asia/Omsk','utcOffset':0x168,'offsetStr':a1003_0x18af18(0x136),'countries':['RU']},'Asia/Novosibirsk':{'name':a1003_0x18af18(0x119),'utcOffset':0x168,'offsetStr':a1003_0x18af18(0x136),'countries':['RU']},'Asia/Novokuznetsk':{'name':a1003_0x18af18(0x15a),'utcOffset':0x1a4,'offsetStr':a1003_0x18af18(0x175),'countries':['RU']},'Asia/Krasnoyarsk':{'name':a1003_0x18af18(0x151),'utcOffset':0x1a4,'offsetStr':a1003_0x18af18(0x175),'countries':['RU']},'Asia/Irkutsk':{'name':'Asia/Irkutsk','utcOffset':0x1e0,'offsetStr':a1003_0x18af18(0x19c),'countries':['RU']},'Asia/Chita':{'name':'Asia/Chita','utcOffset':0x1e0,'offsetStr':a1003_0x18af18(0x19c),'countries':['RU']},'Asia/Yakutsk':{'name':a1003_0x18af18(0x177),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['RU']},'Asia/Khandyga':{'name':a1003_0x18af18(0x20c),'utcOffset':0x21c,'offsetStr':a1003_0x18af18(0x153),'countries':['RU']},'Asia/Vladivostok':{'name':'Asia/Vladivostok','utcOffset':0x258,'offsetStr':a1003_0x18af18(0x202),'countries':['RU']},'Asia/Sakhalin':{'name':a1003_0x18af18(0x1bb),'utcOffset':0x258,'offsetStr':a1003_0x18af18(0x202),'countries':['RU']},'Asia/Ust-Nera':{'name':a1003_0x18af18(0x209),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},'Asia/Magadan':{'name':a1003_0x18af18(0x132),'utcOffset':0x258,'offsetStr':a1003_0x18af18(0x202),'countries':['RU']},'Asia/Srednekolymsk':{'name':'Asia/Srednekolymsk','utcOffset':0x294,'offsetStr':a1003_0x18af18(0x1b5),'countries':['RU']},'Asia/Kamchatka':{'name':a1003_0x18af18(0x1c1),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['RU']},'Asia/Anadyr':{'name':a1003_0x18af18(0x1d1),'utcOffset':0x2d0,'offsetStr':a1003_0x18af18(0x1db),'countries':['RU']},'Asia/Riyadh':{'name':a1003_0x18af18(0x1bf),'utcOffset':0xb4,'offsetStr':a1003_0x18af18(0x168),'countries':['SA','KW','YE']},'Pacific/Guadalcanal':{'name':'Pacific/Guadalcanal','utcOffset':0x294,'offsetStr':'+11:00','countries':['SB']},'Indian/Mahe':{'name':'Indian/Mahe','utcOffset':0xf0,'offsetStr':a1003_0x18af18(0x147),'countries':['SC']},'Africa/Khartoum':{'name':a1003_0x18af18(0x1f5),'utcOffset':0xb4,'offsetStr':a1003_0x18af18(0x168),'countries':['SD','SS']},'Europe/Stockholm':{'name':a1003_0x18af18(0x10f),'utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['SE']},'Asia/Singapore':{'name':a1003_0x18af18(0x10e),'utcOffset':0x1e0,'offsetStr':a1003_0x18af18(0x19c),'countries':['SG']},'America/Paramaribo':{'name':a1003_0x18af18(0x155),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['SR']},'America/El_Salvador':{'name':a1003_0x18af18(0x178),'utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['SV']},'Asia/Damascus':{'name':a1003_0x18af18(0x203),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['SY']},'America/Grand_Turk':{'name':'America/Grand_Turk','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['TC']},'Africa/Ndjamena':{'name':a1003_0x18af18(0x1e6),'utcOffset':0x3c,'offsetStr':a1003_0x18af18(0x21f),'countries':['TD']},'Indian/Kerguelen':{'name':'Indian/Kerguelen','utcOffset':0x12c,'offsetStr':a1003_0x18af18(0x140),'countries':['TF']},'Asia/Bangkok':{'name':'Asia/Bangkok','utcOffset':0x1a4,'offsetStr':a1003_0x18af18(0x175),'countries':['TH','KH','LA','VN']},'Asia/Dushanbe':{'name':'Asia/Dushanbe','utcOffset':0x12c,'offsetStr':'+05:00','countries':['TJ']},'Pacific/Fakaofo':{'name':'Pacific/Fakaofo','utcOffset':0x30c,'offsetStr':a1003_0x18af18(0x1c5),'countries':['TK']},'Asia/Dili':{'name':a1003_0x18af18(0x221),'utcOffset':0x21c,'offsetStr':a1003_0x18af18(0x153),'countries':['TL']},'Asia/Ashgabat':{'name':a1003_0x18af18(0x112),'utcOffset':0x12c,'offsetStr':a1003_0x18af18(0x140),'countries':['TM']},'Africa/Tunis':{'name':a1003_0x18af18(0x1b6),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['TN']},'Pacific/Tongatapu':{'name':'Pacific/Tongatapu','utcOffset':0x30c,'offsetStr':'+13:00','countries':['TO']},'Europe/Istanbul':{'name':a1003_0x18af18(0x19d),'utcOffset':0x78,'offsetStr':'+02:00','countries':['TR']},'America/Port_of_Spain':{'name':'America/Port_of_Spain','utcOffset':-0xf0,'offsetStr':a1003_0x18af18(0x122),'countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},'Pacific/Funafuti':{'name':a1003_0x18af18(0x1e2),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['TV']},'Asia/Taipei':{'name':'Asia/Taipei','utcOffset':0x1e0,'offsetStr':a1003_0x18af18(0x19c),'countries':['TW']},'Europe/Kiev':{'name':a1003_0x18af18(0x220),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['UA']},'Europe/Uzhgorod':{'name':a1003_0x18af18(0x124),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['UA']},'Europe/Zaporozhye':{'name':a1003_0x18af18(0x16b),'utcOffset':0x78,'offsetStr':a1003_0x18af18(0x1a2),'countries':['UA']},'Pacific/Wake':{'name':'Pacific/Wake','utcOffset':0x2d0,'offsetStr':a1003_0x18af18(0x1db),'countries':['UM']},'America/New_York':{'name':a1003_0x18af18(0x1ae),'utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['US']},'America/Detroit':{'name':a1003_0x18af18(0x170),'utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['US']},'America/Kentucky/Louisville':{'name':a1003_0x18af18(0x146),'utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['US']},'America/Kentucky/Monticello':{'name':'America/Kentucky/Monticello','utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['US']},'America/Indiana/Indianapolis':{'name':a1003_0x18af18(0x216),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Indiana/Vincennes':{'name':a1003_0x18af18(0x205),'utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['US']},'America/Indiana/Winamac':{'name':a1003_0x18af18(0x206),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Indiana/Marengo':{'name':'America/Indiana/Marengo','utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['US']},'America/Indiana/Petersburg':{'name':a1003_0x18af18(0x111),'utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['US']},'America/Indiana/Vevay':{'name':a1003_0x18af18(0x1d0),'utcOffset':-0x12c,'offsetStr':a1003_0x18af18(0x143),'countries':['US']},'America/Chicago':{'name':a1003_0x18af18(0x1c9),'utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['US']},'America/Indiana/Tell_City':{'name':a1003_0x18af18(0x11b),'utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['US']},'America/Indiana/Knox':{'name':a1003_0x18af18(0x139),'utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['US']},'America/Menominee':{'name':'America/Menominee','utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['US']},'America/North_Dakota/Center':{'name':a1003_0x18af18(0x1e5),'utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['US']},'America/North_Dakota/New_Salem':{'name':a1003_0x18af18(0x1d9),'utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['US']},'America/North_Dakota/Beulah':{'name':'America/North_Dakota/Beulah','utcOffset':-0x168,'offsetStr':a1003_0x18af18(0x17d),'countries':['US']},'America/Denver':{'name':a1003_0x18af18(0x1aa),'utcOffset':-0x1a4,'offsetStr':a1003_0x18af18(0x142),'countries':['US']},'America/Boise':{'name':a1003_0x18af18(0x1f0),'utcOffset':-0x1a4,'offsetStr':a1003_0x18af18(0x142),'countries':['US']},'America/Phoenix':{'name':a1003_0x18af18(0x192),'utcOffset':-0x1a4,'offsetStr':a1003_0x18af18(0x142),'countries':['US']},'America/Los_Angeles':{'name':a1003_0x18af18(0x1b9),'utcOffset':-0x1e0,'offsetStr':a1003_0x18af18(0x21d),'countries':['US']},'America/Metlakatla':{'name':'America/Metlakatla','utcOffset':-0x1e0,'offsetStr':a1003_0x18af18(0x21d),'countries':['US']},'America/Anchorage':{'name':a1003_0x18af18(0x1f7),'utcOffset':-0x21c,'offsetStr':a1003_0x18af18(0x152),'countries':['US']},'America/Juneau':{'name':a1003_0x18af18(0x158),'utcOffset':-0x21c,'offsetStr':a1003_0x18af18(0x152),'countries':['US']},'America/Sitka':{'name':'America/Sitka','utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},'America/Yakutat':{'name':a1003_0x18af18(0x20d),'utcOffset':-0x21c,'offsetStr':a1003_0x18af18(0x152),'countries':['US']},'America/Nome':{'name':'America/Nome','utcOffset':-0x21c,'offsetStr':a1003_0x18af18(0x152),'countries':['US']},'America/Adak':{'name':a1003_0x18af18(0x189),'utcOffset':-0x258,'offsetStr':'-10:00','countries':['US']},'Pacific/Honolulu':{'name':a1003_0x18af18(0x173),'utcOffset':-0x258,'offsetStr':a1003_0x18af18(0x1cb),'countries':['US','UM']},'America/Montevideo':{'name':a1003_0x18af18(0x217),'utcOffset':-0xb4,'offsetStr':a1003_0x18af18(0x19e),'countries':['UY']},'Asia/Samarkand':{'name':a1003_0x18af18(0x183),'utcOffset':0x12c,'offsetStr':a1003_0x18af18(0x140),'countries':['UZ']},'Asia/Tashkent':{'name':'Asia/Tashkent','utcOffset':0x12c,'offsetStr':a1003_0x18af18(0x140),'countries':['UZ']},'America/Caracas':{'name':a1003_0x18af18(0x180),'utcOffset':-0x10e,'offsetStr':a1003_0x18af18(0x1e0),'countries':['VE']},'Asia/Ho_Chi_Minh':{'name':'Asia/Ho_Chi_Minh','utcOffset':0x1a4,'offsetStr':'+07:00','countries':['VN']},'Pacific/Efate':{'name':a1003_0x18af18(0x184),'utcOffset':0x294,'offsetStr':a1003_0x18af18(0x1b5),'countries':['VU']},'Pacific/Wallis':{'name':a1003_0x18af18(0x197),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['WF']},'Pacific/Apia':{'name':a1003_0x18af18(0x208),'utcOffset':0x348,'offsetStr':a1003_0x18af18(0x16c),'countries':['WS']},'Africa/Johannesburg':{'name':a1003_0x18af18(0x1ff),'utcOffset':0x78,'offsetStr':'+02:00','countries':['ZA','LS','SZ']}}}; \ No newline at end of file +var a1003_0x1a9f=['Pacific/Enderbury','+06:30','America/Resolute','+08:00','America/North_Dakota/Beulah','Asia/Damascus','America/Juneau','Asia/Pontianak','Pacific/Auckland','Asia/Baghdad','Asia/Jayapura','America/Monterrey','Europe/Kiev','America/Rankin_Inlet','Asia/Anadyr','America/Indiana/Winamac','Europe/Volgograd','America/Santa_Isabel','-03:30','America/Rainy_River','-10:00','America/Santarem','+03:00','America/Araguaina','America/La_Paz','Antarctica/Mawson','Europe/Berlin','-02:00','Australia/Hobart','Europe/Zaporozhye','Asia/Qatar','Asia/Tbilisi','Asia/Makassar','+12:00','America/Glace_Bay','Atlantic/Cape_Verde','America/Argentina/Ushuaia','Asia/Bangkok','America/Tegucigalpa','America/Winnipeg','+13:00','Pacific/Fiji','Asia/Novokuznetsk','Australia/Melbourne','Africa/Abidjan','Europe/London','America/Metlakatla','Antarctica/Vostok','America/Argentina/Catamarca','+09:30','America/Scoresbysund','Asia/Manila','Indian/Reunion','Europe/Athens','-08:00','Pacific/Gambier','+07:00','Africa/Cairo','Atlantic/Faroe','Pacific/Efate','Asia/Qyzylorda','+11:00','Asia/Kuala_Lumpur','Europe/Minsk','Africa/Nairobi','America/Jamaica','Australia/Lindeman','Antarctica/Troll','-05:00','Atlantic/South_Georgia','Asia/Srednekolymsk','Europe/Tallinn','Europe/Bucharest','+13:45','Africa/Johannesburg','America/Adak','Asia/Kuching','America/Boise','America/Sitka','America/Recife','America/Indiana/Petersburg','-06:00','+06:00','Pacific/Palau','Europe/Simferopol','America/Managua','America/New_York','Pacific/Apia','America/Indiana/Knox','Europe/Oslo','Africa/Ndjamena','+04:00','Africa/Khartoum','Australia/Eucla','Asia/Thimphu','America/Port-au-Prince','+05:00','America/North_Dakota/Center','Europe/Tirane','Indian/Chagos','Africa/Monrovia','America/Moncton','America/Bogota','America/Argentina/San_Luis','+00:00','Indian/Mauritius','America/Dawson_Creek','Atlantic/Stanley','Asia/Rangoon','America/Port_of_Spain','America/Indiana/Indianapolis','user','Asia/Magadan','Europe/Samara','Pacific/Majuro','America/Porto_Velho','-09:00','Pacific/Norfolk','Asia/Ulaanbaatar','America/Dawson','America/Goose_Bay','Asia/Pyongyang','America/Santo_Domingo','America/El_Salvador','America/Creston','Europe/Dublin','+14:00','Europe/Istanbul','Indian/Cocos','America/Cambridge_Bay','America/Belem','America/Iqaluit','America/Mexico_City','America/Bahia','Pacific/Nauru','Europe/Kaliningrad','Asia/Jerusalem','Asia/Ashgabat','Asia/Yekaterinburg','-11:00','Asia/Tokyo','America/Yellowknife','America/Indiana/Marengo','Europe/Sofia','-07:00','America/Bahia_Banderas','Indian/Maldives','Europe/Chisinau','Europe/Warsaw','Africa/Algiers','Asia/Irkutsk','Asia/Singapore','Asia/Seoul','America/Pangnirtung','America/Matamoros','Pacific/Fakaofo','Australia/Sydney','Australia/Adelaide','Asia/Nicosia','Asia/Shanghai','Africa/Bissau','Pacific/Chuuk','America/Toronto','America/Edmonton','America/Nipigon','Asia/Kamchatka','Asia/Hong_Kong','Pacific/Noumea','Asia/Samarkand','America/Sao_Paulo','+01:00','Asia/Brunei','America/Argentina/Jujuy','Pacific/Wallis','Asia/Tashkent','Atlantic/Canary','-03:00','Europe/Andorra','America/Kentucky/Louisville','Europe/Rome','Asia/Riyadh','Africa/Maputo','America/Godthab','Atlantic/Bermuda','Europe/Vilnius','Asia/Dili','Asia/Novosibirsk','Asia/Kolkata','Pacific/Honolulu','America/Argentina/San_Juan','Asia/Ho_Chi_Minh','America/Havana','America/Argentina/Cordoba','Asia/Karachi','America/Cayenne','Asia/Macau','Europe/Gibraltar','America/Grand_Turk','America/Cayman','Pacific/Chatham','America/Asuncion','Pacific/Marquesas','Antarctica/Syowa','Pacific/Funafuti','America/Indiana/Tell_City','+05:30','Asia/Bishkek','America/Detroit','-09:30','Indian/Kerguelen','America/Blanc-Sablon','Asia/Dushanbe','America/Barbados','America/Anchorage','+08:45','America/Hermosillo','Antarctica/Rothera','admin','Australia/Perth','Pacific/Rarotonga','Asia/Aqtau','America/Regina','Africa/Tunis','+10:30','America/Santiago','Asia/Choibalsan','Asia/Yakutsk','Asia/Ust-Nera','Asia/Hovd','America/Cuiaba','Pacific/Bougainville','America/Argentina/Mendoza','America/Eirunepe','America/Caracas','+02:00','-04:00','America/St_Johns','Pacific/Kosrae','Pacific/Tongatapu','America/Rio_Branco','Asia/Omsk','Indian/Christmas','Asia/Vladivostok','Pacific/Guam','+04:30','Asia/Hebron','Antarctica/Macquarie','Asia/Khandyga','Asia/Tehran','Pacific/Wake','Africa/Lagos','Pacific/Tarawa','+10:00','Asia/Colombo','+08:30','America/Miquelon','Asia/Kathmandu','Europe/Moscow','America/Nome','Asia/Oral','Atlantic/Azores','Pacific/Guadalcanal','Australia/Darwin','Australia/Brisbane','America/Puerto_Rico','Asia/Kabul','America/Argentina/La_Rioja','America/Argentina/Salta','Pacific/Easter','America/Atikokan','America/Ojinaga','Pacific/Pitcairn','America/Manaus','America/Indiana/Vevay','America/Kentucky/Monticello','America/Phoenix','America/Indiana/Vincennes','America/Paramaribo','America/Inuvik','Pacific/Kiritimati','Antarctica/Casey','+09:00','Europe/Paris','America/Swift_Current','America/Maceio','America/Guatemala','Europe/Lisbon','America/Halifax','Pacific/Pohnpei','Europe/Copenhagen','Europe/Madrid','Asia/Aqtobe','UTC','exports','Africa/Tripoli','America/Merida'];(function(_0x570335,_0x3ce146){var _0x1a9f4b=function(_0xb26e52){while(--_0xb26e52){_0x570335['push'](_0x570335['shift']());}};_0x1a9f4b(++_0x3ce146);}(a1003_0x1a9f,0xfb));var a1003_0xb26e=function(_0x570335,_0x3ce146){_0x570335=_0x570335-0x1d3;var _0x1a9f4b=a1003_0x1a9f[_0x570335];return _0x1a9f4b;};var a1003_0x3321a5=a1003_0xb26e;'use strict';module[a1003_0x3321a5(0x1fd)]={'userRoles':['guest',a1003_0x3321a5(0x26f),a1003_0x3321a5(0x2d9)],'timezones':{'Europe/Andorra':{'name':a1003_0x3321a5(0x2b1),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['AD']},'Asia/Dubai':{'name':'Asia/Dubai','utcOffset':0xf0,'offsetStr':a1003_0x3321a5(0x25b),'countries':['AE','OM']},'Asia/Kabul':{'name':a1003_0x3321a5(0x1e1),'utcOffset':0x10e,'offsetStr':a1003_0x3321a5(0x2f4),'countries':['AF']},'Europe/Tirane':{'name':a1003_0x3321a5(0x262),'utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['AL']},'Asia/Yerevan':{'name':'Asia/Yerevan','utcOffset':0xf0,'offsetStr':a1003_0x3321a5(0x25b),'countries':['AM']},'Antarctica/Rothera':{'name':a1003_0x3321a5(0x2d8),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['AQ']},'Antarctica/Palmer':{'name':'Antarctica/Palmer','utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['AQ']},'Antarctica/Mawson':{'name':a1003_0x3321a5(0x219),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['AQ']},'Antarctica/Davis':{'name':'Antarctica/Davis','utcOffset':0x1a4,'offsetStr':a1003_0x3321a5(0x238),'countries':['AQ']},'Antarctica/Casey':{'name':a1003_0x3321a5(0x1f0),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['AQ']},'Antarctica/Vostok':{'name':a1003_0x3321a5(0x22f),'utcOffset':0x168,'offsetStr':a1003_0x3321a5(0x252),'countries':['AQ']},'Antarctica/DumontDUrville':{'name':'Antarctica/DumontDUrville','utcOffset':0x258,'offsetStr':a1003_0x3321a5(0x1d4),'countries':['AQ']},'Antarctica/Syowa':{'name':a1003_0x3321a5(0x2ca),'utcOffset':0xb4,'offsetStr':a1003_0x3321a5(0x216),'countries':['AQ']},'Antarctica/Troll':{'name':a1003_0x3321a5(0x243),'utcOffset':0x0,'offsetStr':'+00:00','countries':['AQ']},'America/Argentina/Buenos_Aires':{'name':'America/Argentina/Buenos_Aires','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/Cordoba':{'name':a1003_0x3321a5(0x2c0),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['AR']},'America/Argentina/Salta':{'name':a1003_0x3321a5(0x1e3),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['AR']},'America/Argentina/Jujuy':{'name':a1003_0x3321a5(0x2ac),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/Tucuman':{'name':'America/Argentina/Tucuman','utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['AR']},'America/Argentina/Catamarca':{'name':a1003_0x3321a5(0x230),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/La_Rioja':{'name':a1003_0x3321a5(0x1e2),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['AR']},'America/Argentina/San_Juan':{'name':a1003_0x3321a5(0x2bd),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['AR']},'America/Argentina/Mendoza':{'name':a1003_0x3321a5(0x2e7),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['AR']},'America/Argentina/San_Luis':{'name':a1003_0x3321a5(0x267),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['AR']},'America/Argentina/Rio_Gallegos':{'name':'America/Argentina/Rio_Gallegos','utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['AR']},'America/Argentina/Ushuaia':{'name':a1003_0x3321a5(0x224),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['AR']},'Pacific/Pago_Pago':{'name':'Pacific/Pago_Pago','utcOffset':-0x294,'offsetStr':a1003_0x3321a5(0x28b),'countries':['AS','UM']},'Europe/Vienna':{'name':'Europe/Vienna','utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['AT']},'Australia/Lord_Howe':{'name':'Australia/Lord_Howe','utcOffset':0x294,'offsetStr':a1003_0x3321a5(0x23d),'countries':['AU']},'Antarctica/Macquarie':{'name':a1003_0x3321a5(0x2f6),'utcOffset':0x294,'offsetStr':a1003_0x3321a5(0x23d),'countries':['AU']},'Australia/Hobart':{'name':a1003_0x3321a5(0x21c),'utcOffset':0x294,'offsetStr':a1003_0x3321a5(0x23d),'countries':['AU']},'Australia/Currie':{'name':'Australia/Currie','utcOffset':0x294,'offsetStr':a1003_0x3321a5(0x23d),'countries':['AU']},'Australia/Melbourne':{'name':a1003_0x3321a5(0x22b),'utcOffset':0x294,'offsetStr':a1003_0x3321a5(0x23d),'countries':['AU']},'Australia/Sydney':{'name':a1003_0x3321a5(0x29c),'utcOffset':0x294,'offsetStr':a1003_0x3321a5(0x23d),'countries':['AU']},'Australia/Broken_Hill':{'name':'Australia/Broken_Hill','utcOffset':0x276,'offsetStr':a1003_0x3321a5(0x2df),'countries':['AU']},'Australia/Brisbane':{'name':a1003_0x3321a5(0x1df),'utcOffset':0x258,'offsetStr':a1003_0x3321a5(0x1d4),'countries':['AU']},'Australia/Lindeman':{'name':a1003_0x3321a5(0x242),'utcOffset':0x258,'offsetStr':a1003_0x3321a5(0x1d4),'countries':['AU']},'Australia/Adelaide':{'name':a1003_0x3321a5(0x29d),'utcOffset':0x276,'offsetStr':a1003_0x3321a5(0x2df),'countries':['AU']},'Australia/Darwin':{'name':a1003_0x3321a5(0x1de),'utcOffset':0x23a,'offsetStr':a1003_0x3321a5(0x231),'countries':['AU']},'Australia/Perth':{'name':a1003_0x3321a5(0x2da),'utcOffset':0x1e0,'offsetStr':a1003_0x3321a5(0x203),'countries':['AU']},'Australia/Eucla':{'name':a1003_0x3321a5(0x25d),'utcOffset':0x20d,'offsetStr':a1003_0x3321a5(0x2d6),'countries':['AU']},'Asia/Baku':{'name':'Asia/Baku','utcOffset':0xf0,'offsetStr':a1003_0x3321a5(0x25b),'countries':['AZ']},'America/Barbados':{'name':a1003_0x3321a5(0x2d4),'utcOffset':-0xf0,'offsetStr':a1003_0x3321a5(0x2eb),'countries':['BB']},'Asia/Dhaka':{'name':'Asia/Dhaka','utcOffset':0x168,'offsetStr':'+06:00','countries':['BD']},'Europe/Brussels':{'name':'Europe/Brussels','utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['BE']},'Europe/Sofia':{'name':a1003_0x3321a5(0x28f),'utcOffset':0x78,'offsetStr':a1003_0x3321a5(0x2ea),'countries':['BG']},'Atlantic/Bermuda':{'name':a1003_0x3321a5(0x2b7),'utcOffset':-0xf0,'offsetStr':a1003_0x3321a5(0x2eb),'countries':['BM']},'Asia/Brunei':{'name':a1003_0x3321a5(0x2ab),'utcOffset':0x1e0,'offsetStr':a1003_0x3321a5(0x203),'countries':['BN']},'America/La_Paz':{'name':a1003_0x3321a5(0x218),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BO']},'America/Noronha':{'name':'America/Noronha','utcOffset':-0x78,'offsetStr':a1003_0x3321a5(0x21b),'countries':['BR']},'America/Belem':{'name':a1003_0x3321a5(0x282),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['BR']},'America/Fortaleza':{'name':'America/Fortaleza','utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['BR']},'America/Recife':{'name':a1003_0x3321a5(0x24f),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['BR']},'America/Araguaina':{'name':a1003_0x3321a5(0x217),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['BR']},'America/Maceio':{'name':a1003_0x3321a5(0x1f4),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['BR']},'America/Bahia':{'name':a1003_0x3321a5(0x285),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['BR']},'America/Sao_Paulo':{'name':a1003_0x3321a5(0x2a9),'utcOffset':-0x78,'offsetStr':a1003_0x3321a5(0x21b),'countries':['BR']},'America/Campo_Grande':{'name':'America/Campo_Grande','utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['BR']},'America/Cuiaba':{'name':a1003_0x3321a5(0x2e5),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},'America/Santarem':{'name':a1003_0x3321a5(0x215),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['BR']},'America/Porto_Velho':{'name':a1003_0x3321a5(0x273),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BR']},'America/Boa_Vista':{'name':'America/Boa_Vista','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BR']},'America/Manaus':{'name':a1003_0x3321a5(0x1e8),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BR']},'America/Eirunepe':{'name':a1003_0x3321a5(0x2e8),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BR']},'America/Rio_Branco':{'name':a1003_0x3321a5(0x2ef),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BR']},'America/Nassau':{'name':'America/Nassau','utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['BS']},'Asia/Thimphu':{'name':a1003_0x3321a5(0x25e),'utcOffset':0x168,'offsetStr':a1003_0x3321a5(0x252),'countries':['BT']},'Europe/Minsk':{'name':a1003_0x3321a5(0x23f),'utcOffset':0xb4,'offsetStr':a1003_0x3321a5(0x216),'countries':['BY']},'America/Belize':{'name':'America/Belize','utcOffset':-0x168,'offsetStr':a1003_0x3321a5(0x251),'countries':['BZ']},'America/St_Johns':{'name':a1003_0x3321a5(0x2ec),'utcOffset':-0xd2,'offsetStr':a1003_0x3321a5(0x212),'countries':['CA']},'America/Halifax':{'name':a1003_0x3321a5(0x1f7),'utcOffset':-0xf0,'offsetStr':a1003_0x3321a5(0x2eb),'countries':['CA']},'America/Glace_Bay':{'name':a1003_0x3321a5(0x222),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},'America/Moncton':{'name':a1003_0x3321a5(0x265),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},'America/Goose_Bay':{'name':a1003_0x3321a5(0x278),'utcOffset':-0xf0,'offsetStr':a1003_0x3321a5(0x2eb),'countries':['CA']},'America/Blanc-Sablon':{'name':a1003_0x3321a5(0x2d2),'utcOffset':-0xf0,'offsetStr':a1003_0x3321a5(0x2eb),'countries':['CA']},'America/Toronto':{'name':a1003_0x3321a5(0x2a2),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['CA']},'America/Nipigon':{'name':a1003_0x3321a5(0x2a4),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['CA']},'America/Thunder_Bay':{'name':'America/Thunder_Bay','utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['CA']},'America/Iqaluit':{'name':a1003_0x3321a5(0x283),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['CA']},'America/Pangnirtung':{'name':a1003_0x3321a5(0x299),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['CA']},'America/Resolute':{'name':a1003_0x3321a5(0x202),'utcOffset':-0x168,'offsetStr':a1003_0x3321a5(0x251),'countries':['CA']},'America/Atikokan':{'name':a1003_0x3321a5(0x1e5),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},'America/Rankin_Inlet':{'name':a1003_0x3321a5(0x20d),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Winnipeg':{'name':a1003_0x3321a5(0x227),'utcOffset':-0x168,'offsetStr':a1003_0x3321a5(0x251),'countries':['CA']},'America/Rainy_River':{'name':a1003_0x3321a5(0x213),'utcOffset':-0x168,'offsetStr':a1003_0x3321a5(0x251),'countries':['CA']},'America/Regina':{'name':a1003_0x3321a5(0x2dd),'utcOffset':-0x168,'offsetStr':a1003_0x3321a5(0x251),'countries':['CA']},'America/Swift_Current':{'name':a1003_0x3321a5(0x1f3),'utcOffset':-0x168,'offsetStr':a1003_0x3321a5(0x251),'countries':['CA']},'America/Edmonton':{'name':a1003_0x3321a5(0x2a3),'utcOffset':-0x1a4,'offsetStr':a1003_0x3321a5(0x290),'countries':['CA']},'America/Cambridge_Bay':{'name':a1003_0x3321a5(0x281),'utcOffset':-0x1a4,'offsetStr':a1003_0x3321a5(0x290),'countries':['CA']},'America/Yellowknife':{'name':a1003_0x3321a5(0x28d),'utcOffset':-0x1a4,'offsetStr':a1003_0x3321a5(0x290),'countries':['CA']},'America/Inuvik':{'name':a1003_0x3321a5(0x1ee),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},'America/Creston':{'name':a1003_0x3321a5(0x27c),'utcOffset':-0x1a4,'offsetStr':a1003_0x3321a5(0x290),'countries':['CA']},'America/Dawson_Creek':{'name':a1003_0x3321a5(0x26a),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},'America/Fort_Nelson':{'name':'America/Fort_Nelson','utcOffset':-0x1a4,'offsetStr':a1003_0x3321a5(0x290),'countries':['CA']},'America/Vancouver':{'name':'America/Vancouver','utcOffset':-0x1e0,'offsetStr':a1003_0x3321a5(0x236),'countries':['CA']},'America/Whitehorse':{'name':'America/Whitehorse','utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['CA']},'America/Dawson':{'name':a1003_0x3321a5(0x277),'utcOffset':-0x1e0,'offsetStr':a1003_0x3321a5(0x236),'countries':['CA']},'Indian/Cocos':{'name':a1003_0x3321a5(0x280),'utcOffset':0x186,'offsetStr':'+06:30','countries':['CC']},'Europe/Zurich':{'name':'Europe/Zurich','utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['CH','DE','LI']},'Africa/Abidjan':{'name':a1003_0x3321a5(0x22c),'utcOffset':0x0,'offsetStr':a1003_0x3321a5(0x268),'countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},'Pacific/Rarotonga':{'name':a1003_0x3321a5(0x2db),'utcOffset':-0x258,'offsetStr':'-10:00','countries':['CK']},'America/Santiago':{'name':a1003_0x3321a5(0x2e0),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['CL']},'Pacific/Easter':{'name':a1003_0x3321a5(0x1e4),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['CL']},'Asia/Shanghai':{'name':a1003_0x3321a5(0x29f),'utcOffset':0x1e0,'offsetStr':a1003_0x3321a5(0x203),'countries':['CN']},'Asia/Urumqi':{'name':'Asia/Urumqi','utcOffset':0x168,'offsetStr':'+06:00','countries':['CN']},'America/Bogota':{'name':a1003_0x3321a5(0x266),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['CO']},'America/Costa_Rica':{'name':'America/Costa_Rica','utcOffset':-0x168,'offsetStr':a1003_0x3321a5(0x251),'countries':['CR']},'America/Havana':{'name':a1003_0x3321a5(0x2bf),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['CU']},'Atlantic/Cape_Verde':{'name':a1003_0x3321a5(0x223),'utcOffset':-0x3c,'offsetStr':'-01:00','countries':['CV']},'America/Curacao':{'name':'America/Curacao','utcOffset':-0xf0,'offsetStr':a1003_0x3321a5(0x2eb),'countries':['CW','AW','BQ','SX']},'Indian/Christmas':{'name':a1003_0x3321a5(0x2f1),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['CX']},'Asia/Nicosia':{'name':a1003_0x3321a5(0x29e),'utcOffset':0x78,'offsetStr':a1003_0x3321a5(0x2ea),'countries':['CY']},'Europe/Prague':{'name':'Europe/Prague','utcOffset':0x3c,'offsetStr':'+01:00','countries':['CZ','SK']},'Europe/Berlin':{'name':a1003_0x3321a5(0x21a),'utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['DE']},'Europe/Copenhagen':{'name':a1003_0x3321a5(0x1f9),'utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['DK']},'America/Santo_Domingo':{'name':a1003_0x3321a5(0x27a),'utcOffset':-0xf0,'offsetStr':a1003_0x3321a5(0x2eb),'countries':['DO']},'Africa/Algiers':{'name':a1003_0x3321a5(0x295),'utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['DZ']},'America/Guayaquil':{'name':'America/Guayaquil','utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['EC']},'Pacific/Galapagos':{'name':'Pacific/Galapagos','utcOffset':-0x168,'offsetStr':'-06:00','countries':['EC']},'Europe/Tallinn':{'name':a1003_0x3321a5(0x247),'utcOffset':0x78,'offsetStr':a1003_0x3321a5(0x2ea),'countries':['EE']},'Africa/Cairo':{'name':a1003_0x3321a5(0x239),'utcOffset':0x78,'offsetStr':a1003_0x3321a5(0x2ea),'countries':['EG']},'Africa/El_Aaiun':{'name':'Africa/El_Aaiun','utcOffset':0x0,'offsetStr':'+00:00','countries':['EH']},'Europe/Madrid':{'name':a1003_0x3321a5(0x1fa),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['ES']},'Africa/Ceuta':{'name':'Africa/Ceuta','utcOffset':0x3c,'offsetStr':'+01:00','countries':['ES']},'Atlantic/Canary':{'name':a1003_0x3321a5(0x2af),'utcOffset':0x0,'offsetStr':a1003_0x3321a5(0x268),'countries':['ES']},'Europe/Helsinki':{'name':'Europe/Helsinki','utcOffset':0x78,'offsetStr':a1003_0x3321a5(0x2ea),'countries':['FI','AX']},'Pacific/Fiji':{'name':a1003_0x3321a5(0x229),'utcOffset':0x2d0,'offsetStr':a1003_0x3321a5(0x221),'countries':['FJ']},'Atlantic/Stanley':{'name':a1003_0x3321a5(0x26b),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['FK']},'Pacific/Chuuk':{'name':a1003_0x3321a5(0x2a1),'utcOffset':0x258,'offsetStr':'+10:00','countries':['FM']},'Pacific/Pohnpei':{'name':a1003_0x3321a5(0x1f8),'utcOffset':0x294,'offsetStr':'+11:00','countries':['FM']},'Pacific/Kosrae':{'name':a1003_0x3321a5(0x2ed),'utcOffset':0x294,'offsetStr':a1003_0x3321a5(0x23d),'countries':['FM']},'Atlantic/Faroe':{'name':a1003_0x3321a5(0x23a),'utcOffset':0x0,'offsetStr':a1003_0x3321a5(0x268),'countries':['FO']},'Europe/Paris':{'name':a1003_0x3321a5(0x1f2),'utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['FR']},'UTC':{'name':a1003_0x3321a5(0x1fc),'utcOffset':0x0,'offsetStr':'+00:00','countries':['GB','GG','IM','JE']},'Europe/London':{'name':a1003_0x3321a5(0x22d),'utcOffset':0x0,'offsetStr':a1003_0x3321a5(0x268),'countries':['GB','GG','IM','JE']},'Asia/Tbilisi':{'name':a1003_0x3321a5(0x21f),'utcOffset':0xf0,'offsetStr':a1003_0x3321a5(0x25b),'countries':['GE']},'America/Cayenne':{'name':a1003_0x3321a5(0x2c2),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['GF']},'Africa/Accra':{'name':'Africa/Accra','utcOffset':0x0,'offsetStr':'+00:00','countries':['GH']},'Europe/Gibraltar':{'name':a1003_0x3321a5(0x2c4),'utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['GI']},'America/Godthab':{'name':a1003_0x3321a5(0x2b6),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['GL']},'America/Danmarkshavn':{'name':'America/Danmarkshavn','utcOffset':0x0,'offsetStr':'+00:00','countries':['GL']},'America/Scoresbysund':{'name':a1003_0x3321a5(0x232),'utcOffset':-0x3c,'offsetStr':'-01:00','countries':['GL']},'America/Thule':{'name':'America/Thule','utcOffset':-0xf0,'offsetStr':a1003_0x3321a5(0x2eb),'countries':['GL']},'Europe/Athens':{'name':a1003_0x3321a5(0x235),'utcOffset':0x78,'offsetStr':a1003_0x3321a5(0x2ea),'countries':['GR']},'Atlantic/South_Georgia':{'name':a1003_0x3321a5(0x245),'utcOffset':-0x78,'offsetStr':a1003_0x3321a5(0x21b),'countries':['GS']},'America/Guatemala':{'name':a1003_0x3321a5(0x1f5),'utcOffset':-0x168,'offsetStr':a1003_0x3321a5(0x251),'countries':['GT']},'Pacific/Guam':{'name':a1003_0x3321a5(0x2f3),'utcOffset':0x258,'offsetStr':'+10:00','countries':['GU','MP']},'Africa/Bissau':{'name':a1003_0x3321a5(0x2a0),'utcOffset':0x0,'offsetStr':a1003_0x3321a5(0x268),'countries':['GW']},'America/Guyana':{'name':'America/Guyana','utcOffset':-0xf0,'offsetStr':a1003_0x3321a5(0x2eb),'countries':['GY']},'Asia/Hong_Kong':{'name':a1003_0x3321a5(0x2a6),'utcOffset':0x1e0,'offsetStr':a1003_0x3321a5(0x203),'countries':['HK']},'America/Tegucigalpa':{'name':a1003_0x3321a5(0x226),'utcOffset':-0x168,'offsetStr':a1003_0x3321a5(0x251),'countries':['HN']},'America/Port-au-Prince':{'name':a1003_0x3321a5(0x25f),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['HT']},'Europe/Budapest':{'name':'Europe/Budapest','utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['HU']},'Asia/Jakarta':{'name':'Asia/Jakarta','utcOffset':0x1a4,'offsetStr':a1003_0x3321a5(0x238),'countries':['ID']},'Asia/Pontianak':{'name':a1003_0x3321a5(0x207),'utcOffset':0x1a4,'offsetStr':a1003_0x3321a5(0x238),'countries':['ID']},'Asia/Makassar':{'name':a1003_0x3321a5(0x220),'utcOffset':0x1e0,'offsetStr':a1003_0x3321a5(0x203),'countries':['ID']},'Asia/Jayapura':{'name':a1003_0x3321a5(0x20a),'utcOffset':0x21c,'offsetStr':a1003_0x3321a5(0x1f1),'countries':['ID']},'Europe/Dublin':{'name':a1003_0x3321a5(0x27d),'utcOffset':0x0,'offsetStr':a1003_0x3321a5(0x268),'countries':['IE']},'Asia/Jerusalem':{'name':a1003_0x3321a5(0x288),'utcOffset':0x78,'offsetStr':'+02:00','countries':['IL']},'Asia/Kolkata':{'name':a1003_0x3321a5(0x2bb),'utcOffset':0x14a,'offsetStr':a1003_0x3321a5(0x2cd),'countries':['IN']},'Indian/Chagos':{'name':a1003_0x3321a5(0x263),'utcOffset':0x168,'offsetStr':'+06:00','countries':['IO']},'Asia/Baghdad':{'name':a1003_0x3321a5(0x209),'utcOffset':0xb4,'offsetStr':a1003_0x3321a5(0x216),'countries':['IQ']},'Asia/Tehran':{'name':a1003_0x3321a5(0x2f8),'utcOffset':0xd2,'offsetStr':'+03:30','countries':['IR']},'Atlantic/Reykjavik':{'name':'Atlantic/Reykjavik','utcOffset':0x0,'offsetStr':a1003_0x3321a5(0x268),'countries':['IS']},'Europe/Rome':{'name':a1003_0x3321a5(0x2b3),'utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['IT','SM','VA']},'America/Jamaica':{'name':a1003_0x3321a5(0x241),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['JM']},'Asia/Amman':{'name':'Asia/Amman','utcOffset':0x78,'offsetStr':a1003_0x3321a5(0x2ea),'countries':['JO']},'Asia/Tokyo':{'name':a1003_0x3321a5(0x28c),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['JP']},'Africa/Nairobi':{'name':a1003_0x3321a5(0x240),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},'Asia/Bishkek':{'name':a1003_0x3321a5(0x2ce),'utcOffset':0x168,'offsetStr':a1003_0x3321a5(0x252),'countries':['KG']},'Pacific/Tarawa':{'name':a1003_0x3321a5(0x1d3),'utcOffset':0x2d0,'offsetStr':a1003_0x3321a5(0x221),'countries':['KI']},'Pacific/Enderbury':{'name':a1003_0x3321a5(0x200),'utcOffset':0x30c,'offsetStr':a1003_0x3321a5(0x228),'countries':['KI']},'Pacific/Kiritimati':{'name':a1003_0x3321a5(0x1ef),'utcOffset':0x348,'offsetStr':a1003_0x3321a5(0x27e),'countries':['KI']},'Asia/Pyongyang':{'name':a1003_0x3321a5(0x279),'utcOffset':0x1fe,'offsetStr':a1003_0x3321a5(0x1d6),'countries':['KP']},'Asia/Seoul':{'name':a1003_0x3321a5(0x298),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['KR']},'America/Cayman':{'name':a1003_0x3321a5(0x2c6),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['KY']},'Asia/Almaty':{'name':'Asia/Almaty','utcOffset':0x168,'offsetStr':a1003_0x3321a5(0x252),'countries':['KZ']},'Asia/Qyzylorda':{'name':a1003_0x3321a5(0x23c),'utcOffset':0x168,'offsetStr':a1003_0x3321a5(0x252),'countries':['KZ']},'Asia/Aqtobe':{'name':a1003_0x3321a5(0x1fb),'utcOffset':0x12c,'offsetStr':a1003_0x3321a5(0x260),'countries':['KZ']},'Asia/Aqtau':{'name':a1003_0x3321a5(0x2dc),'utcOffset':0x12c,'offsetStr':a1003_0x3321a5(0x260),'countries':['KZ']},'Asia/Oral':{'name':a1003_0x3321a5(0x1db),'utcOffset':0x12c,'offsetStr':a1003_0x3321a5(0x260),'countries':['KZ']},'Asia/Beirut':{'name':'Asia/Beirut','utcOffset':0x78,'offsetStr':a1003_0x3321a5(0x2ea),'countries':['LB']},'Asia/Colombo':{'name':a1003_0x3321a5(0x1d5),'utcOffset':0x14a,'offsetStr':a1003_0x3321a5(0x2cd),'countries':['LK']},'Africa/Monrovia':{'name':a1003_0x3321a5(0x264),'utcOffset':0x0,'offsetStr':'+00:00','countries':['LR']},'Europe/Vilnius':{'name':a1003_0x3321a5(0x2b8),'utcOffset':0x78,'offsetStr':a1003_0x3321a5(0x2ea),'countries':['LT']},'Europe/Luxembourg':{'name':'Europe/Luxembourg','utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['LU']},'Europe/Riga':{'name':'Europe/Riga','utcOffset':0x78,'offsetStr':a1003_0x3321a5(0x2ea),'countries':['LV']},'Africa/Tripoli':{'name':a1003_0x3321a5(0x1fe),'utcOffset':0x78,'offsetStr':'+02:00','countries':['LY']},'Africa/Casablanca':{'name':'Africa/Casablanca','utcOffset':0x0,'offsetStr':a1003_0x3321a5(0x268),'countries':['MA']},'Europe/Monaco':{'name':'Europe/Monaco','utcOffset':0x3c,'offsetStr':'+01:00','countries':['MC']},'Europe/Chisinau':{'name':a1003_0x3321a5(0x293),'utcOffset':0x78,'offsetStr':a1003_0x3321a5(0x2ea),'countries':['MD']},'Pacific/Majuro':{'name':a1003_0x3321a5(0x272),'utcOffset':0x2d0,'offsetStr':a1003_0x3321a5(0x221),'countries':['MH']},'Pacific/Kwajalein':{'name':'Pacific/Kwajalein','utcOffset':0x2d0,'offsetStr':a1003_0x3321a5(0x221),'countries':['MH']},'Asia/Rangoon':{'name':a1003_0x3321a5(0x26c),'utcOffset':0x186,'offsetStr':a1003_0x3321a5(0x201),'countries':['MM']},'Asia/Ulaanbaatar':{'name':a1003_0x3321a5(0x276),'utcOffset':0x1e0,'offsetStr':a1003_0x3321a5(0x203),'countries':['MN']},'Asia/Hovd':{'name':a1003_0x3321a5(0x2e4),'utcOffset':0x1a4,'offsetStr':a1003_0x3321a5(0x238),'countries':['MN']},'Asia/Choibalsan':{'name':a1003_0x3321a5(0x2e1),'utcOffset':0x1e0,'offsetStr':a1003_0x3321a5(0x203),'countries':['MN']},'Asia/Macau':{'name':a1003_0x3321a5(0x2c3),'utcOffset':0x1e0,'offsetStr':a1003_0x3321a5(0x203),'countries':['MO']},'America/Martinique':{'name':'America/Martinique','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['MQ']},'Europe/Malta':{'name':'Europe/Malta','utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['MT']},'Indian/Mauritius':{'name':a1003_0x3321a5(0x269),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['MU']},'Indian/Maldives':{'name':a1003_0x3321a5(0x292),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['MV']},'America/Mexico_City':{'name':a1003_0x3321a5(0x284),'utcOffset':-0x168,'offsetStr':a1003_0x3321a5(0x251),'countries':['MX']},'America/Cancun':{'name':'America/Cancun','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['MX']},'America/Merida':{'name':a1003_0x3321a5(0x1ff),'utcOffset':-0x168,'offsetStr':a1003_0x3321a5(0x251),'countries':['MX']},'America/Monterrey':{'name':a1003_0x3321a5(0x20b),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'America/Matamoros':{'name':a1003_0x3321a5(0x29a),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'America/Mazatlan':{'name':'America/Mazatlan','utcOffset':-0x1a4,'offsetStr':a1003_0x3321a5(0x290),'countries':['MX']},'America/Chihuahua':{'name':'America/Chihuahua','utcOffset':-0x1a4,'offsetStr':a1003_0x3321a5(0x290),'countries':['MX']},'America/Ojinaga':{'name':a1003_0x3321a5(0x1e6),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['MX']},'America/Hermosillo':{'name':a1003_0x3321a5(0x2d7),'utcOffset':-0x1a4,'offsetStr':a1003_0x3321a5(0x290),'countries':['MX']},'America/Tijuana':{'name':'America/Tijuana','utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['MX']},'America/Santa_Isabel':{'name':a1003_0x3321a5(0x211),'utcOffset':-0x1e0,'offsetStr':a1003_0x3321a5(0x236),'countries':['MX']},'America/Bahia_Banderas':{'name':a1003_0x3321a5(0x291),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'Asia/Kuala_Lumpur':{'name':a1003_0x3321a5(0x23e),'utcOffset':0x1e0,'offsetStr':a1003_0x3321a5(0x203),'countries':['MY']},'Asia/Kuching':{'name':a1003_0x3321a5(0x24c),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MY']},'Africa/Maputo':{'name':a1003_0x3321a5(0x2b5),'utcOffset':0x78,'offsetStr':'+02:00','countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},'Africa/Windhoek':{'name':'Africa/Windhoek','utcOffset':0x78,'offsetStr':'+02:00','countries':['NA']},'Pacific/Noumea':{'name':a1003_0x3321a5(0x2a7),'utcOffset':0x294,'offsetStr':a1003_0x3321a5(0x23d),'countries':['NC']},'Pacific/Norfolk':{'name':a1003_0x3321a5(0x275),'utcOffset':0x294,'offsetStr':'+11:00','countries':['NF']},'Africa/Lagos':{'name':a1003_0x3321a5(0x2fa),'utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},'America/Managua':{'name':a1003_0x3321a5(0x255),'utcOffset':-0x168,'offsetStr':a1003_0x3321a5(0x251),'countries':['NI']},'Europe/Amsterdam':{'name':'Europe/Amsterdam','utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['NL']},'Europe/Oslo':{'name':a1003_0x3321a5(0x259),'utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['NO','SJ']},'Asia/Kathmandu':{'name':a1003_0x3321a5(0x1d8),'utcOffset':0x159,'offsetStr':'+05:45','countries':['NP']},'Pacific/Nauru':{'name':a1003_0x3321a5(0x286),'utcOffset':0x2d0,'offsetStr':a1003_0x3321a5(0x221),'countries':['NR']},'Pacific/Niue':{'name':'Pacific/Niue','utcOffset':-0x294,'offsetStr':a1003_0x3321a5(0x28b),'countries':['NU']},'Pacific/Auckland':{'name':a1003_0x3321a5(0x208),'utcOffset':0x30c,'offsetStr':a1003_0x3321a5(0x228),'countries':['NZ','AQ']},'Pacific/Chatham':{'name':a1003_0x3321a5(0x2c7),'utcOffset':0x339,'offsetStr':a1003_0x3321a5(0x249),'countries':['NZ']},'America/Panama':{'name':'America/Panama','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['PA']},'America/Lima':{'name':'America/Lima','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['PE']},'Pacific/Tahiti':{'name':'Pacific/Tahiti','utcOffset':-0x258,'offsetStr':a1003_0x3321a5(0x214),'countries':['PF']},'Pacific/Marquesas':{'name':a1003_0x3321a5(0x2c9),'utcOffset':-0x23a,'offsetStr':a1003_0x3321a5(0x2d0),'countries':['PF']},'Pacific/Gambier':{'name':a1003_0x3321a5(0x237),'utcOffset':-0x21c,'offsetStr':a1003_0x3321a5(0x274),'countries':['PF']},'Pacific/Port_Moresby':{'name':'Pacific/Port_Moresby','utcOffset':0x258,'offsetStr':'+10:00','countries':['PG']},'Pacific/Bougainville':{'name':a1003_0x3321a5(0x2e6),'utcOffset':0x294,'offsetStr':'+11:00','countries':['PG']},'Asia/Manila':{'name':a1003_0x3321a5(0x233),'utcOffset':0x1e0,'offsetStr':a1003_0x3321a5(0x203),'countries':['PH']},'Asia/Karachi':{'name':a1003_0x3321a5(0x2c1),'utcOffset':0x12c,'offsetStr':a1003_0x3321a5(0x260),'countries':['PK']},'Europe/Warsaw':{'name':a1003_0x3321a5(0x294),'utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['PL']},'America/Miquelon':{'name':a1003_0x3321a5(0x1d7),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['PM']},'Pacific/Pitcairn':{'name':a1003_0x3321a5(0x1e7),'utcOffset':-0x1e0,'offsetStr':a1003_0x3321a5(0x236),'countries':['PN']},'America/Puerto_Rico':{'name':a1003_0x3321a5(0x1e0),'utcOffset':-0xf0,'offsetStr':a1003_0x3321a5(0x2eb),'countries':['PR']},'Asia/Gaza':{'name':'Asia/Gaza','utcOffset':0x78,'offsetStr':'+02:00','countries':['PS']},'Asia/Hebron':{'name':a1003_0x3321a5(0x2f5),'utcOffset':0x78,'offsetStr':a1003_0x3321a5(0x2ea),'countries':['PS']},'Europe/Lisbon':{'name':a1003_0x3321a5(0x1f6),'utcOffset':0x0,'offsetStr':'+00:00','countries':['PT']},'Atlantic/Madeira':{'name':'Atlantic/Madeira','utcOffset':0x0,'offsetStr':a1003_0x3321a5(0x268),'countries':['PT']},'Atlantic/Azores':{'name':a1003_0x3321a5(0x1dc),'utcOffset':-0x3c,'offsetStr':'-01:00','countries':['PT']},'Pacific/Palau':{'name':a1003_0x3321a5(0x253),'utcOffset':0x21c,'offsetStr':a1003_0x3321a5(0x1f1),'countries':['PW']},'America/Asuncion':{'name':a1003_0x3321a5(0x2c8),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['PY']},'Asia/Qatar':{'name':a1003_0x3321a5(0x21e),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['QA','BH']},'Indian/Reunion':{'name':a1003_0x3321a5(0x234),'utcOffset':0xf0,'offsetStr':a1003_0x3321a5(0x25b),'countries':['RE','TF']},'Europe/Bucharest':{'name':a1003_0x3321a5(0x248),'utcOffset':0x78,'offsetStr':'+02:00','countries':['RO']},'Europe/Belgrade':{'name':'Europe/Belgrade','utcOffset':0x3c,'offsetStr':'+01:00','countries':['RS','BA','HR','ME','MK','SI']},'Europe/Kaliningrad':{'name':a1003_0x3321a5(0x287),'utcOffset':0x78,'offsetStr':a1003_0x3321a5(0x2ea),'countries':['RU']},'Europe/Moscow':{'name':a1003_0x3321a5(0x1d9),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},'Europe/Simferopol':{'name':a1003_0x3321a5(0x254),'utcOffset':0xb4,'offsetStr':a1003_0x3321a5(0x216),'countries':['RU']},'Europe/Volgograd':{'name':a1003_0x3321a5(0x210),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},'Europe/Samara':{'name':a1003_0x3321a5(0x271),'utcOffset':0xf0,'offsetStr':a1003_0x3321a5(0x25b),'countries':['RU']},'Asia/Yekaterinburg':{'name':a1003_0x3321a5(0x28a),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['RU']},'Asia/Omsk':{'name':a1003_0x3321a5(0x2f0),'utcOffset':0x168,'offsetStr':a1003_0x3321a5(0x252),'countries':['RU']},'Asia/Novosibirsk':{'name':a1003_0x3321a5(0x2ba),'utcOffset':0x168,'offsetStr':a1003_0x3321a5(0x252),'countries':['RU']},'Asia/Novokuznetsk':{'name':a1003_0x3321a5(0x22a),'utcOffset':0x1a4,'offsetStr':a1003_0x3321a5(0x238),'countries':['RU']},'Asia/Krasnoyarsk':{'name':'Asia/Krasnoyarsk','utcOffset':0x1a4,'offsetStr':a1003_0x3321a5(0x238),'countries':['RU']},'Asia/Irkutsk':{'name':a1003_0x3321a5(0x296),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['RU']},'Asia/Chita':{'name':'Asia/Chita','utcOffset':0x1e0,'offsetStr':a1003_0x3321a5(0x203),'countries':['RU']},'Asia/Yakutsk':{'name':a1003_0x3321a5(0x2e2),'utcOffset':0x21c,'offsetStr':a1003_0x3321a5(0x1f1),'countries':['RU']},'Asia/Khandyga':{'name':a1003_0x3321a5(0x2f7),'utcOffset':0x21c,'offsetStr':a1003_0x3321a5(0x1f1),'countries':['RU']},'Asia/Vladivostok':{'name':a1003_0x3321a5(0x2f2),'utcOffset':0x258,'offsetStr':a1003_0x3321a5(0x1d4),'countries':['RU']},'Asia/Sakhalin':{'name':'Asia/Sakhalin','utcOffset':0x258,'offsetStr':a1003_0x3321a5(0x1d4),'countries':['RU']},'Asia/Ust-Nera':{'name':a1003_0x3321a5(0x2e3),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},'Asia/Magadan':{'name':a1003_0x3321a5(0x270),'utcOffset':0x258,'offsetStr':a1003_0x3321a5(0x1d4),'countries':['RU']},'Asia/Srednekolymsk':{'name':a1003_0x3321a5(0x246),'utcOffset':0x294,'offsetStr':a1003_0x3321a5(0x23d),'countries':['RU']},'Asia/Kamchatka':{'name':a1003_0x3321a5(0x2a5),'utcOffset':0x2d0,'offsetStr':a1003_0x3321a5(0x221),'countries':['RU']},'Asia/Anadyr':{'name':a1003_0x3321a5(0x20e),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['RU']},'Asia/Riyadh':{'name':a1003_0x3321a5(0x2b4),'utcOffset':0xb4,'offsetStr':a1003_0x3321a5(0x216),'countries':['SA','KW','YE']},'Pacific/Guadalcanal':{'name':a1003_0x3321a5(0x1dd),'utcOffset':0x294,'offsetStr':a1003_0x3321a5(0x23d),'countries':['SB']},'Indian/Mahe':{'name':'Indian/Mahe','utcOffset':0xf0,'offsetStr':a1003_0x3321a5(0x25b),'countries':['SC']},'Africa/Khartoum':{'name':a1003_0x3321a5(0x25c),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['SD','SS']},'Europe/Stockholm':{'name':'Europe/Stockholm','utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['SE']},'Asia/Singapore':{'name':a1003_0x3321a5(0x297),'utcOffset':0x1e0,'offsetStr':a1003_0x3321a5(0x203),'countries':['SG']},'America/Paramaribo':{'name':a1003_0x3321a5(0x1ed),'utcOffset':-0xb4,'offsetStr':a1003_0x3321a5(0x2b0),'countries':['SR']},'America/El_Salvador':{'name':a1003_0x3321a5(0x27b),'utcOffset':-0x168,'offsetStr':a1003_0x3321a5(0x251),'countries':['SV']},'Asia/Damascus':{'name':a1003_0x3321a5(0x205),'utcOffset':0x78,'offsetStr':a1003_0x3321a5(0x2ea),'countries':['SY']},'America/Grand_Turk':{'name':a1003_0x3321a5(0x2c5),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['TC']},'Africa/Ndjamena':{'name':a1003_0x3321a5(0x25a),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['TD']},'Indian/Kerguelen':{'name':a1003_0x3321a5(0x2d1),'utcOffset':0x12c,'offsetStr':a1003_0x3321a5(0x260),'countries':['TF']},'Asia/Bangkok':{'name':a1003_0x3321a5(0x225),'utcOffset':0x1a4,'offsetStr':a1003_0x3321a5(0x238),'countries':['TH','KH','LA','VN']},'Asia/Dushanbe':{'name':a1003_0x3321a5(0x2d3),'utcOffset':0x12c,'offsetStr':a1003_0x3321a5(0x260),'countries':['TJ']},'Pacific/Fakaofo':{'name':a1003_0x3321a5(0x29b),'utcOffset':0x30c,'offsetStr':a1003_0x3321a5(0x228),'countries':['TK']},'Asia/Dili':{'name':a1003_0x3321a5(0x2b9),'utcOffset':0x21c,'offsetStr':a1003_0x3321a5(0x1f1),'countries':['TL']},'Asia/Ashgabat':{'name':a1003_0x3321a5(0x289),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['TM']},'Africa/Tunis':{'name':a1003_0x3321a5(0x2de),'utcOffset':0x3c,'offsetStr':a1003_0x3321a5(0x2aa),'countries':['TN']},'Pacific/Tongatapu':{'name':a1003_0x3321a5(0x2ee),'utcOffset':0x30c,'offsetStr':a1003_0x3321a5(0x228),'countries':['TO']},'Europe/Istanbul':{'name':a1003_0x3321a5(0x27f),'utcOffset':0x78,'offsetStr':'+02:00','countries':['TR']},'America/Port_of_Spain':{'name':a1003_0x3321a5(0x26d),'utcOffset':-0xf0,'offsetStr':a1003_0x3321a5(0x2eb),'countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},'Pacific/Funafuti':{'name':a1003_0x3321a5(0x2cb),'utcOffset':0x2d0,'offsetStr':a1003_0x3321a5(0x221),'countries':['TV']},'Asia/Taipei':{'name':'Asia/Taipei','utcOffset':0x1e0,'offsetStr':a1003_0x3321a5(0x203),'countries':['TW']},'Europe/Kiev':{'name':a1003_0x3321a5(0x20c),'utcOffset':0x78,'offsetStr':a1003_0x3321a5(0x2ea),'countries':['UA']},'Europe/Uzhgorod':{'name':'Europe/Uzhgorod','utcOffset':0x78,'offsetStr':a1003_0x3321a5(0x2ea),'countries':['UA']},'Europe/Zaporozhye':{'name':a1003_0x3321a5(0x21d),'utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},'Pacific/Wake':{'name':a1003_0x3321a5(0x2f9),'utcOffset':0x2d0,'offsetStr':a1003_0x3321a5(0x221),'countries':['UM']},'America/New_York':{'name':a1003_0x3321a5(0x256),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['US']},'America/Detroit':{'name':a1003_0x3321a5(0x2cf),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Kentucky/Louisville':{'name':a1003_0x3321a5(0x2b2),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['US']},'America/Kentucky/Monticello':{'name':a1003_0x3321a5(0x1ea),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['US']},'America/Indiana/Indianapolis':{'name':a1003_0x3321a5(0x26e),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['US']},'America/Indiana/Vincennes':{'name':a1003_0x3321a5(0x1ec),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['US']},'America/Indiana/Winamac':{'name':a1003_0x3321a5(0x20f),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Indiana/Marengo':{'name':a1003_0x3321a5(0x28e),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['US']},'America/Indiana/Petersburg':{'name':a1003_0x3321a5(0x250),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['US']},'America/Indiana/Vevay':{'name':a1003_0x3321a5(0x1e9),'utcOffset':-0x12c,'offsetStr':a1003_0x3321a5(0x244),'countries':['US']},'America/Chicago':{'name':'America/Chicago','utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},'America/Indiana/Tell_City':{'name':a1003_0x3321a5(0x2cc),'utcOffset':-0x168,'offsetStr':a1003_0x3321a5(0x251),'countries':['US']},'America/Indiana/Knox':{'name':a1003_0x3321a5(0x258),'utcOffset':-0x168,'offsetStr':a1003_0x3321a5(0x251),'countries':['US']},'America/Menominee':{'name':'America/Menominee','utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},'America/North_Dakota/Center':{'name':a1003_0x3321a5(0x261),'utcOffset':-0x168,'offsetStr':a1003_0x3321a5(0x251),'countries':['US']},'America/North_Dakota/New_Salem':{'name':'America/North_Dakota/New_Salem','utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},'America/North_Dakota/Beulah':{'name':a1003_0x3321a5(0x204),'utcOffset':-0x168,'offsetStr':a1003_0x3321a5(0x251),'countries':['US']},'America/Denver':{'name':'America/Denver','utcOffset':-0x1a4,'offsetStr':a1003_0x3321a5(0x290),'countries':['US']},'America/Boise':{'name':a1003_0x3321a5(0x24d),'utcOffset':-0x1a4,'offsetStr':a1003_0x3321a5(0x290),'countries':['US']},'America/Phoenix':{'name':a1003_0x3321a5(0x1eb),'utcOffset':-0x1a4,'offsetStr':a1003_0x3321a5(0x290),'countries':['US']},'America/Los_Angeles':{'name':'America/Los_Angeles','utcOffset':-0x1e0,'offsetStr':a1003_0x3321a5(0x236),'countries':['US']},'America/Metlakatla':{'name':a1003_0x3321a5(0x22e),'utcOffset':-0x1e0,'offsetStr':a1003_0x3321a5(0x236),'countries':['US']},'America/Anchorage':{'name':a1003_0x3321a5(0x2d5),'utcOffset':-0x21c,'offsetStr':a1003_0x3321a5(0x274),'countries':['US']},'America/Juneau':{'name':a1003_0x3321a5(0x206),'utcOffset':-0x21c,'offsetStr':a1003_0x3321a5(0x274),'countries':['US']},'America/Sitka':{'name':a1003_0x3321a5(0x24e),'utcOffset':-0x21c,'offsetStr':a1003_0x3321a5(0x274),'countries':['US']},'America/Yakutat':{'name':'America/Yakutat','utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},'America/Nome':{'name':a1003_0x3321a5(0x1da),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},'America/Adak':{'name':a1003_0x3321a5(0x24b),'utcOffset':-0x258,'offsetStr':a1003_0x3321a5(0x214),'countries':['US']},'Pacific/Honolulu':{'name':a1003_0x3321a5(0x2bc),'utcOffset':-0x258,'offsetStr':'-10:00','countries':['US','UM']},'America/Montevideo':{'name':'America/Montevideo','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['UY']},'Asia/Samarkand':{'name':a1003_0x3321a5(0x2a8),'utcOffset':0x12c,'offsetStr':a1003_0x3321a5(0x260),'countries':['UZ']},'Asia/Tashkent':{'name':a1003_0x3321a5(0x2ae),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['UZ']},'America/Caracas':{'name':a1003_0x3321a5(0x2e9),'utcOffset':-0x10e,'offsetStr':'-04:30','countries':['VE']},'Asia/Ho_Chi_Minh':{'name':a1003_0x3321a5(0x2be),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['VN']},'Pacific/Efate':{'name':a1003_0x3321a5(0x23b),'utcOffset':0x294,'offsetStr':a1003_0x3321a5(0x23d),'countries':['VU']},'Pacific/Wallis':{'name':a1003_0x3321a5(0x2ad),'utcOffset':0x2d0,'offsetStr':a1003_0x3321a5(0x221),'countries':['WF']},'Pacific/Apia':{'name':a1003_0x3321a5(0x257),'utcOffset':0x348,'offsetStr':a1003_0x3321a5(0x27e),'countries':['WS']},'Africa/Johannesburg':{'name':a1003_0x3321a5(0x24a),'utcOffset':0x78,'offsetStr':'+02:00','countries':['ZA','LS','SZ']}}}; \ No newline at end of file diff --git a/server/config/environment/test.js b/server/config/environment/test.js index a379f8b..b67e721 100644 --- a/server/config/environment/test.js +++ b/server/config/environment/test.js @@ -1 +1 @@ -const a1004_0x2de7=['asteriskHost','asteriskUsername','dbPort','utf8mb4','googleSecret','getConfigService','mysqlPassword','rpcPort','rpcIp','mysql','./shared','asteriskPort','agiPort','exports','../config.service','agiIp','determine','jstz','utf8','redisHost','utf8_general_ci','offsetStr','dbHost','/api/auth/google/callback','sessionSecret','domain','mysqlUser','mysqlDatabase','redisPort','seedDb'];(function(_0x57e6ae,_0x4bae48){const _0x2de723=function(_0x4aca08){while(--_0x4aca08){_0x57e6ae['push'](_0x57e6ae['shift']());}};_0x2de723(++_0x4bae48);}(a1004_0x2de7,0xa3));const a1004_0x4aca=function(_0x57e6ae,_0x4bae48){_0x57e6ae=_0x57e6ae-0x127;let _0x2de723=a1004_0x2de7[_0x57e6ae];return _0x2de723;};const a1004_0x28239c=a1004_0x4aca;'use strict';const shared=require(a1004_0x28239c(0x142)),jstz=require(a1004_0x28239c(0x12b)),timezone=jstz[a1004_0x28239c(0x12a)](),timezoneOffset=shared['timezones'][timezone['name']()][a1004_0x28239c(0x12f)],cs=require(a1004_0x28239c(0x128))[a1004_0x28239c(0x13d)]();module[a1004_0x28239c(0x127)]={'sequelize':{'database':cs[a1004_0x28239c(0x135)],'username':cs[a1004_0x28239c(0x134)],'password':cs[a1004_0x28239c(0x13e)],'options':{'host':cs[a1004_0x28239c(0x130)],'port':cs[a1004_0x28239c(0x13a)],'dialect':a1004_0x28239c(0x141),'dialectOptions':{'charset':a1004_0x28239c(0x13b)},'timezone':timezoneOffset,'define':{'charset':a1004_0x28239c(0x12c),'collate':a1004_0x28239c(0x12e)}}},'sequelizeHistory':{'database':cs[a1004_0x28239c(0x135)],'username':cs[a1004_0x28239c(0x134)],'password':cs[a1004_0x28239c(0x13e)],'options':{'host':cs[a1004_0x28239c(0x130)],'port':cs[a1004_0x28239c(0x13a)],'dialect':a1004_0x28239c(0x141),'dialectOptions':{'charset':a1004_0x28239c(0x13b)},'logging':![],'timezone':timezoneOffset,'define':{'charset':a1004_0x28239c(0x12c),'collate':a1004_0x28239c(0x12e)}}},'asterisk':{'ip':cs[a1004_0x28239c(0x138)],'port':cs[a1004_0x28239c(0x143)],'username':cs[a1004_0x28239c(0x139)],'password':cs['asteriskPassword']},'redis':{'host':cs[a1004_0x28239c(0x12d)],'port':cs[a1004_0x28239c(0x136)]},'rpc':{'port':cs[a1004_0x28239c(0x13f)],'ip':cs[a1004_0x28239c(0x140)]},'agi':{'port':cs[a1004_0x28239c(0x144)],'ip':cs[a1004_0x28239c(0x129)]},'seedDB':cs[a1004_0x28239c(0x137)],'google':{'clientID':cs['googleId'],'clientSecret':cs[a1004_0x28239c(0x13c)],'callbackURL':cs[a1004_0x28239c(0x133)]+a1004_0x28239c(0x131)},'secrets':{'session':cs[a1004_0x28239c(0x132)],'recording':cs['recordingSecret']},'xdr':{'disabled':![]}}; \ No newline at end of file +const a1004_0x503f=['timezones','offsetStr','./shared','asteriskUsername','dbPort','jstz','redisPort','asteriskHost','rpcIp','getConfigService','utf8mb4','determine','domain','dbHost','recordingSecret','sessionSecret','/api/auth/google/callback','../config.service','exports','seedDb','asteriskPassword','agiPort','googleSecret','mysqlUser','name','utf8_general_ci','mysqlDatabase','utf8','googleId','rpcPort'];(function(_0x39d5cb,_0x2d0cbe){const _0x503ff5=function(_0x77bc4a){while(--_0x77bc4a){_0x39d5cb['push'](_0x39d5cb['shift']());}};_0x503ff5(++_0x2d0cbe);}(a1004_0x503f,0x18e));const a1004_0x77bc=function(_0x39d5cb,_0x2d0cbe){_0x39d5cb=_0x39d5cb-0x6c;let _0x503ff5=a1004_0x503f[_0x39d5cb];return _0x503ff5;};const a1004_0x48e36e=a1004_0x77bc;'use strict';const shared=require(a1004_0x48e36e(0x84)),jstz=require(a1004_0x48e36e(0x87)),timezone=jstz[a1004_0x48e36e(0x6f)](),timezoneOffset=shared[a1004_0x48e36e(0x82)][timezone[a1004_0x48e36e(0x7c)]()][a1004_0x48e36e(0x83)],cs=require(a1004_0x48e36e(0x75))[a1004_0x48e36e(0x6d)]();module[a1004_0x48e36e(0x76)]={'sequelize':{'database':cs[a1004_0x48e36e(0x7e)],'username':cs['mysqlUser'],'password':cs['mysqlPassword'],'options':{'host':cs[a1004_0x48e36e(0x71)],'port':cs[a1004_0x48e36e(0x86)],'dialect':'mysql','dialectOptions':{'charset':a1004_0x48e36e(0x6e)},'timezone':timezoneOffset,'define':{'charset':a1004_0x48e36e(0x7f),'collate':a1004_0x48e36e(0x7d)}}},'sequelizeHistory':{'database':cs['mysqlDatabase'],'username':cs[a1004_0x48e36e(0x7b)],'password':cs['mysqlPassword'],'options':{'host':cs[a1004_0x48e36e(0x71)],'port':cs[a1004_0x48e36e(0x86)],'dialect':'mysql','dialectOptions':{'charset':'utf8mb4'},'logging':![],'timezone':timezoneOffset,'define':{'charset':'utf8','collate':a1004_0x48e36e(0x7d)}}},'asterisk':{'ip':cs[a1004_0x48e36e(0x89)],'port':cs['asteriskPort'],'username':cs[a1004_0x48e36e(0x85)],'password':cs[a1004_0x48e36e(0x78)]},'redis':{'host':cs['redisHost'],'port':cs[a1004_0x48e36e(0x88)]},'rpc':{'port':cs[a1004_0x48e36e(0x81)],'ip':cs[a1004_0x48e36e(0x6c)]},'agi':{'port':cs[a1004_0x48e36e(0x79)],'ip':cs['agiIp']},'seedDB':cs[a1004_0x48e36e(0x77)],'google':{'clientID':cs[a1004_0x48e36e(0x80)],'clientSecret':cs[a1004_0x48e36e(0x7a)],'callbackURL':cs[a1004_0x48e36e(0x70)]+a1004_0x48e36e(0x74)},'secrets':{'session':cs[a1004_0x48e36e(0x73)],'recording':cs[a1004_0x48e36e(0x72)]},'xdr':{'disabled':![]}}; \ No newline at end of file diff --git a/server/config/express.js b/server/config/express.js index 72117e9..083b509 100644 --- a/server/config/express.js +++ b/server/config/express.js @@ -1 +1 @@ -const a1005_0x13fb=['get','enable','initialize','./config.service','cors','info','appPath','configExpress','views','json\x20replacer','./logger','split','body-parser','json','set','cookie-parser','passport','/server/views','errorhandler','method-override','isProduction','engine','root','ejs','Public\x20path\x20set\x20to\x20','path','public','trust\x20proxy','use','./environment','toISOString'];(function(_0xb8a1f3,_0x4eda58){const _0x13fbc3=function(_0x51a4d7){while(--_0x51a4d7){_0xb8a1f3['push'](_0xb8a1f3['shift']());}};_0x13fbc3(++_0x4eda58);}(a1005_0x13fb,0x12a));const a1005_0x51a4=function(_0xb8a1f3,_0x4eda58){_0xb8a1f3=_0xb8a1f3-0x9c;let _0x13fbc3=a1005_0x13fb[_0xb8a1f3];return _0x13fbc3;};const a1005_0x519b60=a1005_0x51a4;'use strict';const express=require('express'),bodyParser=require(a1005_0x519b60(0xb4)),methodOverride=require(a1005_0x519b60(0x9c)),cookieParser=require(a1005_0x519b60(0xb7)),errorHandler=require(a1005_0x519b60(0xba)),path=require(a1005_0x519b60(0xa2)),passport=require(a1005_0x519b60(0xb8)),cors=require(a1005_0x519b60(0xac)),config=require(a1005_0x519b60(0xa6)),{getConfigService}=require(a1005_0x519b60(0xab)),logger=require(a1005_0x519b60(0xb2))('app');function configExpress(_0x246c8a){const _0x448d62=a1005_0x519b60,_0x423bd7=getConfigService();return _0x246c8a[_0x448d62(0xb6)](_0x448d62(0xae),path['join'](config[_0x448d62(0x9f)],'..',_0x448d62(0xa3))),logger[_0x448d62(0xad)](_0x448d62(0xa1)+_0x246c8a['get']('appPath')),!_0x423bd7[_0x448d62(0x9d)]&&_0x246c8a['use'](errorHandler()),_0x246c8a[_0x448d62(0xb6)](_0x448d62(0xb1),function(_0x576f1a,_0x5093d0){const _0x44cbdf=_0x448d62;return this[_0x576f1a]instanceof Date&&(_0x5093d0=this[_0x576f1a][_0x44cbdf(0xa7)]()[_0x44cbdf(0xb3)]('.')[0x0]+'Z'),_0x5093d0;}),_0x246c8a[_0x448d62(0xa5)](express['static'](_0x246c8a[_0x448d62(0xa8)]('appPath'))),_0x246c8a[_0x448d62(0xb6)](_0x448d62(0xb0),config['root']+_0x448d62(0xb9)),_0x246c8a[_0x448d62(0x9e)]('html',require(_0x448d62(0xa0))['renderFile']),_0x246c8a[_0x448d62(0xb6)]('view\x20engine','html'),_0x246c8a[_0x448d62(0xa5)](bodyParser['urlencoded']({'limit':'50mb','extended':!![]})),_0x246c8a[_0x448d62(0xa5)](bodyParser[_0x448d62(0xb5)]({'limit':'50mb'})),_0x246c8a['use'](cors({'origin':!_0x423bd7['isProduction'],'methods':_0x423bd7[_0x448d62(0x9d)]?'GET,HEAD,PUT,PATCH,POST,DELETE':'OPTIONS,GET,HEAD,PUT,PATCH,POST,DELETE','preflightContinue':!![]})),_0x246c8a[_0x448d62(0xa9)](_0x448d62(0xa4)),_0x246c8a[_0x448d62(0xa5)](methodOverride()),_0x246c8a[_0x448d62(0xa5)](cookieParser()),_0x246c8a[_0x448d62(0xa5)](passport[_0x448d62(0xaa)]()),_0x246c8a;}exports[a1005_0x519b60(0xaf)]=configExpress,exports['default']=configExpress; \ No newline at end of file +const a1005_0x2fc4=['cors','initialize','views','engine','method-override','html','root','appPath','passport','json\x20replacer','renderFile','isProduction','./logger','urlencoded','50mb','/server/views','express','path','public','Public\x20path\x20set\x20to\x20','split','trust\x20proxy','set','./environment','GET,HEAD,PUT,PATCH,POST,DELETE','errorhandler','enable','use','toISOString','view\x20engine','app','get','cookie-parser'];(function(_0x90922c,_0x5c23e5){const _0x2fc46d=function(_0x19cedd){while(--_0x19cedd){_0x90922c['push'](_0x90922c['shift']());}};_0x2fc46d(++_0x5c23e5);}(a1005_0x2fc4,0x15d));const a1005_0x19ce=function(_0x90922c,_0x5c23e5){_0x90922c=_0x90922c-0x155;let _0x2fc46d=a1005_0x2fc4[_0x90922c];return _0x2fc46d;};const a1005_0x1929de=a1005_0x19ce;'use strict';const express=require(a1005_0x1929de(0x173)),bodyParser=require('body-parser'),methodOverride=require(a1005_0x1929de(0x167)),cookieParser=require(a1005_0x1929de(0x162)),errorHandler=require(a1005_0x1929de(0x15b)),path=require(a1005_0x1929de(0x174)),passport=require(a1005_0x1929de(0x16b)),cors=require(a1005_0x1929de(0x163)),config=require(a1005_0x1929de(0x159)),{getConfigService}=require('./config.service'),logger=require(a1005_0x1929de(0x16f))(a1005_0x1929de(0x160));function configExpress(_0x430d23){const _0x5beac5=a1005_0x1929de,_0x2c7e2b=getConfigService();return _0x430d23[_0x5beac5(0x158)]('appPath',path['join'](config[_0x5beac5(0x169)],'..',_0x5beac5(0x175))),logger['info'](_0x5beac5(0x155)+_0x430d23['get'](_0x5beac5(0x16a))),!_0x2c7e2b[_0x5beac5(0x16e)]&&_0x430d23['use'](errorHandler()),_0x430d23['set'](_0x5beac5(0x16c),function(_0x2c66b1,_0x3c410b){const _0x74a974=_0x5beac5;return this[_0x2c66b1]instanceof Date&&(_0x3c410b=this[_0x2c66b1][_0x74a974(0x15e)]()[_0x74a974(0x156)]('.')[0x0]+'Z'),_0x3c410b;}),_0x430d23[_0x5beac5(0x15d)](express['static'](_0x430d23[_0x5beac5(0x161)](_0x5beac5(0x16a)))),_0x430d23[_0x5beac5(0x158)](_0x5beac5(0x165),config[_0x5beac5(0x169)]+_0x5beac5(0x172)),_0x430d23[_0x5beac5(0x166)](_0x5beac5(0x168),require('ejs')[_0x5beac5(0x16d)]),_0x430d23[_0x5beac5(0x158)](_0x5beac5(0x15f),_0x5beac5(0x168)),_0x430d23[_0x5beac5(0x15d)](bodyParser[_0x5beac5(0x170)]({'limit':'50mb','extended':!![]})),_0x430d23[_0x5beac5(0x15d)](bodyParser['json']({'limit':_0x5beac5(0x171)})),_0x430d23['use'](cors({'origin':!_0x2c7e2b[_0x5beac5(0x16e)],'methods':_0x2c7e2b[_0x5beac5(0x16e)]?_0x5beac5(0x15a):'OPTIONS,GET,HEAD,PUT,PATCH,POST,DELETE','preflightContinue':!![]})),_0x430d23[_0x5beac5(0x15c)](_0x5beac5(0x157)),_0x430d23['use'](methodOverride()),_0x430d23[_0x5beac5(0x15d)](cookieParser()),_0x430d23[_0x5beac5(0x15d)](passport[_0x5beac5(0x164)]()),_0x430d23;}exports['configExpress']=configExpress,exports['default']=configExpress; \ No newline at end of file diff --git a/server/config/license/hardware.js b/server/config/license/hardware.js index d58bf64..2e3432f 100644 --- a/server/config/license/hardware.js +++ b/server/config/license/hardware.js @@ -1 +1 @@ -const a1006_0x1eeb=['createHash','macAddress','hex','utf8','crypto','orderBy','keys','map','getUuid','127.0.0.1','execSync','devLicense','length','family','child_process','update','../config.service','getFirstInterface','isProduction','hostname','substring','00:00:00:00:00:00','ipAddress','filter','exports','replace','lodash','digest','platform','networkInterfaces','internal','getCPUhash','mac','model','address','md5','dmidecode\x20--string\x20system-uuid','concat','join'];(function(_0x2d630b,_0x31536a){const _0x1eeb7f=function(_0x913da0){while(--_0x913da0){_0x2d630b['push'](_0x2d630b['shift']());}};_0x1eeb7f(++_0x31536a);}(a1006_0x1eeb,0xfe));const a1006_0x913d=function(_0x2d630b,_0x31536a){_0x2d630b=_0x2d630b-0x18c;let _0x1eeb7f=a1006_0x1eeb[_0x2d630b];return _0x1eeb7f;};const a1006_0x391eb4=a1006_0x913d;'use strict';const _=require(a1006_0x391eb4(0x192)),os=require('os'),crypto=require(a1006_0x391eb4(0x1a3)),{getConfigService}=require(a1006_0x391eb4(0x1af)),exec=require(a1006_0x391eb4(0x1ad))[a1006_0x391eb4(0x1a9)];function getInterfaces(){const _0x2c2300=a1006_0x391eb4;let _0x48be2b=[];const _0x408fdd=os[_0x2c2300(0x195)](),_0x4d21d8=_[_0x2c2300(0x1a4)](_[_0x2c2300(0x1a5)](_0x408fdd));for(let _0x46f6d6=0x0;_0x46f6d6<_0x4d21d8[_0x2c2300(0x1ab)];_0x46f6d6++){const _0x3f2945=_0x408fdd[_0x4d21d8[_0x46f6d6]][_0x2c2300(0x18f)](function(_0x9909ed){const _0x5db2a2=_0x2c2300;return _0x9909ed[_0x5db2a2(0x1ac)]==='IPv4'&&_0x9909ed[_0x5db2a2(0x196)]===![];});_0x48be2b=_0x48be2b[_0x2c2300(0x19d)](_0x3f2945);}return _0x48be2b;}function getFirstInterface(){const _0x18e8f0=a1006_0x391eb4,_0x5af662=_['head'](getInterfaces());return{'macAddress':_0x5af662&&_0x5af662[_0x18e8f0(0x198)]?_0x5af662[_0x18e8f0(0x198)]:_0x18e8f0(0x18d),'ipAddress':_0x5af662&&_0x5af662[_0x18e8f0(0x19a)]?_0x5af662[_0x18e8f0(0x19a)]:_0x18e8f0(0x1a8)};}function getCPUhash(){const _0x231b07=a1006_0x391eb4,_0x58ba3b=_['orderBy'](os['cpus']()[_0x231b07(0x1a6)](function(_0x43841f){const _0x1cd826=_0x231b07;return _0x43841f[_0x1cd826(0x199)];}))[_0x231b07(0x19e)](':');return crypto['createHash'](_0x231b07(0x19b))[_0x231b07(0x1ae)](_0x58ba3b)[_0x231b07(0x193)](_0x231b07(0x1a1));}function getUuid(){const _0x46f785=a1006_0x391eb4,_0x14bb48=getConfigService(),_0x5d204f=os[_0x46f785(0x194)](),_0x15d4c4=/[0-9a-f-]{36}/;if(!_0x14bb48[_0x46f785(0x1b1)]&&_0x15d4c4['test'](_0x14bb48[_0x46f785(0x1aa)]))return _0x14bb48[_0x46f785(0x1aa)];else{if(_0x5d204f==='win32')return exec(_0x46f785(0x19c),{'encoding':_0x46f785(0x1a2)})[_0x46f785(0x191)]('\x0d\x0a','');else{const _0x57c570=getFirstInterface(),_0x3249b2=getCPUhash(),_0x4214d3=_0x3249b2+'|'+os[_0x46f785(0x1b2)]()+'|'+_0x57c570[_0x46f785(0x1a0)]+'|'+_0x57c570[_0x46f785(0x18e)],_0x148904=crypto[_0x46f785(0x19f)]('md5')['update'](_0x4214d3)['digest'](_0x46f785(0x1a1));return _0x148904[_0x46f785(0x18c)](0x0,0x8)+'-'+_0x148904['substring'](0x8,0xc)+'-'+_0x148904[_0x46f785(0x18c)](0xc,0x10)+'-'+_0x148904['substring'](0x10,0x14)+'-'+_0x148904[_0x46f785(0x18c)](0x14);}}}module['exports'][a1006_0x391eb4(0x1a7)]=getUuid,module[a1006_0x391eb4(0x190)][a1006_0x391eb4(0x1b0)]=getFirstInterface,module['exports'][a1006_0x391eb4(0x197)]=getCPUhash; \ No newline at end of file +const a1006_0x590f=['lodash','orderBy','replace','createHash','getFirstInterface','internal','length','model','getCPUhash','getUuid','win32','exports','md5','child_process','substring','address','update','cpus','hex','127.0.0.1','devLicense','concat','networkInterfaces','execSync','mac','IPv4','platform','keys','../config.service','ipAddress','crypto','dmidecode\x20--string\x20system-uuid','isProduction','digest','join','head','test'];(function(_0x18e950,_0x3eddd1){const _0x590f79=function(_0x5e88e7){while(--_0x5e88e7){_0x18e950['push'](_0x18e950['shift']());}};_0x590f79(++_0x3eddd1);}(a1006_0x590f,0x15d));const a1006_0x5e88=function(_0x18e950,_0x3eddd1){_0x18e950=_0x18e950-0xe3;let _0x590f79=a1006_0x590f[_0x18e950];return _0x590f79;};const a1006_0x1e2ab7=a1006_0x5e88;'use strict';const _=require(a1006_0x1e2ab7(0xf8)),os=require('os'),crypto=require(a1006_0x1e2ab7(0xf1)),{getConfigService}=require(a1006_0x1e2ab7(0xef)),exec=require(a1006_0x1e2ab7(0x105))[a1006_0x1e2ab7(0xea)];function getInterfaces(){const _0x5281f1=a1006_0x1e2ab7;let _0x2f80f8=[];const _0x177893=os[_0x5281f1(0xe9)](),_0x5ac426=_['orderBy'](_[_0x5281f1(0xee)](_0x177893));for(let _0x6bcf77=0x0;_0x6bcf77<_0x5ac426[_0x5281f1(0xfe)];_0x6bcf77++){const _0x3713df=_0x177893[_0x5ac426[_0x6bcf77]]['filter'](function(_0x2d9358){const _0x1edb1e=_0x5281f1;return _0x2d9358['family']===_0x1edb1e(0xec)&&_0x2d9358[_0x1edb1e(0xfd)]===![];});_0x2f80f8=_0x2f80f8[_0x5281f1(0xe8)](_0x3713df);}return _0x2f80f8;}function getFirstInterface(){const _0x5addd0=a1006_0x1e2ab7,_0x888f3e=_[_0x5addd0(0xf6)](getInterfaces());return{'macAddress':_0x888f3e&&_0x888f3e[_0x5addd0(0xeb)]?_0x888f3e[_0x5addd0(0xeb)]:'00:00:00:00:00:00','ipAddress':_0x888f3e&&_0x888f3e[_0x5addd0(0x107)]?_0x888f3e['address']:_0x5addd0(0xe6)};}function getCPUhash(){const _0x27c41c=a1006_0x1e2ab7,_0x5703fa=_[_0x27c41c(0xf9)](os[_0x27c41c(0xe4)]()['map'](function(_0x321a26){const _0x586177=_0x27c41c;return _0x321a26[_0x586177(0xff)];}))[_0x27c41c(0xf5)](':');return crypto[_0x27c41c(0xfb)]('md5')[_0x27c41c(0xe3)](_0x5703fa)['digest'](_0x27c41c(0xe5));}function getUuid(){const _0x901836=a1006_0x1e2ab7,_0x2193ed=getConfigService(),_0x4d958d=os[_0x901836(0xed)](),_0x546d4a=/[0-9a-f-]{36}/;if(!_0x2193ed[_0x901836(0xf3)]&&_0x546d4a[_0x901836(0xf7)](_0x2193ed[_0x901836(0xe7)]))return _0x2193ed[_0x901836(0xe7)];else{if(_0x4d958d===_0x901836(0x102))return exec(_0x901836(0xf2),{'encoding':'utf8'})[_0x901836(0xfa)]('\x0d\x0a','');else{const _0x3a4f15=getFirstInterface(),_0x424db2=getCPUhash(),_0x35af7d=_0x424db2+'|'+os['hostname']()+'|'+_0x3a4f15['macAddress']+'|'+_0x3a4f15[_0x901836(0xf0)],_0x5f4233=crypto[_0x901836(0xfb)](_0x901836(0x104))[_0x901836(0xe3)](_0x35af7d)[_0x901836(0xf4)](_0x901836(0xe5));return _0x5f4233['substring'](0x0,0x8)+'-'+_0x5f4233[_0x901836(0x106)](0x8,0xc)+'-'+_0x5f4233[_0x901836(0x106)](0xc,0x10)+'-'+_0x5f4233[_0x901836(0x106)](0x10,0x14)+'-'+_0x5f4233[_0x901836(0x106)](0x14);}}}module[a1006_0x1e2ab7(0x103)][a1006_0x1e2ab7(0x101)]=getUuid,module[a1006_0x1e2ab7(0x103)][a1006_0x1e2ab7(0xfc)]=getFirstInterface,module[a1006_0x1e2ab7(0x103)][a1006_0x1e2ab7(0x100)]=getCPUhash; \ No newline at end of file diff --git a/server/config/license/index.js b/server/config/license/index.js index 1f1c33f..852959e 100644 --- a/server/config/license/index.js +++ b/server/config/license/index.js @@ -1 +1 @@ -const a1007_0x7a21=['email','ipAddress','moment','getUuid','uuid','toUpperCase','Changed','%s/api/servers/%s/check?version=%s','message','license','active','days','https://www.xcallymotion.com','findOrCreate','../../mysqldb','info','findOne','%s/api/servers/%s/check?version=%s&oldtoken=%s','finally','catch','../../../package.json','diff','then','get','|uuid|','request-promise-native','./hardware','reject','../../api/jira/jira.controller','error','NEW\x20UUID\x20DETECTED:\x20FROM\x20%s\x20TO\x20%s','|email|','fullname','DEMO\x20START\x20AT\x20%s','getFirstInterface','format','MOTLICENSE','Alert','YYYY-MM-DD\x20HH:mm','|reason|','default','data1','admin','|machineUuid|','THE\x20LICENSE\x20HAS\x20BEEN\x20DISABLED','THE\x20LICENSE\x20HAS\x20BEEN\x20ENABLED','GET','|name|','openIssue','SERVICE\x20LICENSE\x20STARTED\x20%s','data2','../../components/encryptor','update','Motion\x20License\x20Alert','encryptString'];(function(_0x5e4cf4,_0xc31c00){const _0x7a21a0=function(_0x2035d0){while(--_0x2035d0){_0x5e4cf4['push'](_0x5e4cf4['shift']());}};_0x7a21a0(++_0xc31c00);}(a1007_0x7a21,0xe4));const a1007_0x2035=function(_0x5e4cf4,_0xc31c00){_0x5e4cf4=_0x5e4cf4-0x1db;let _0x7a21a0=a1007_0x7a21[_0x5e4cf4];return _0x7a21a0;};const a1007_0x1cd855=a1007_0x2035;'use strict';const {version}=require(a1007_0x1cd855(0x1e7)),util=require('util'),encryptor=require(a1007_0x1cd855(0x206)),moment=require(a1007_0x1cd855(0x20c)),rp=require(a1007_0x1cd855(0x1ec)),{db}=require(a1007_0x1cd855(0x1e1)),hardware=require(a1007_0x1cd855(0x1ed)),logger=require('../logger')(a1007_0x1cd855(0x1dc)),jira=require(a1007_0x1cd855(0x1ef)),HOST=a1007_0x1cd855(0x1df),TIME=0x3c*0x1388,DAYS=0x7;let GRAY_PERIOD_REASON,ADMIN,oldToken;function httpRequest(_0x333647){return new Promise(function(_0x1b24b1,_0x478c72){const _0x4c573c=a1007_0x2035;let _0x2102e8=util[_0x4c573c(0x1f6)](_0x4c573c(0x211),HOST,_0x333647,version);oldToken&&(_0x2102e8=util[_0x4c573c(0x1f6)](_0x4c573c(0x1e4),HOST,_0x333647,version,oldToken));const _0x3d75f1={'uri':_0x2102e8,'method':_0x4c573c(0x201),'timeout':0xea60,'json':!![]};return rp(_0x3d75f1)[_0x4c573c(0x1e9)](function(_0xb92696){_0x1b24b1(_0xb92696);})[_0x4c573c(0x1e6)](function(_0x596e5f){_0x478c72(_0x596e5f);});});}function sendJiraAlert(_0x3fb9f2,_0x5ec0f3,_0x4e5465){const _0x6731bd=a1007_0x1cd855;let _0x3021df='||FIELD||VALUE||\x0a';return db['User'][_0x6731bd(0x1e3)]({'where':{'role':_0x6731bd(0x1fd)},'attributes':[_0x6731bd(0x1f3),_0x6731bd(0x20a)],'raw':!![]})[_0x6731bd(0x1e9)](function(_0x2b553a){const _0x426656=_0x6731bd;return ADMIN=_0x2b553a,_0x3021df+=_0x426656(0x1fa)+_0x4e5465+'|\x0a',_0x3021df+=_0x426656(0x1eb)+_0x3fb9f2+'|\x0a',_0x3021df+=_0x426656(0x1fe)+_0x5ec0f3+'|\x0a',_0x3021df+=_0x426656(0x202)+ADMIN[_0x426656(0x1f3)]+'|\x0a',_0x3021df+=_0x426656(0x1f2)+ADMIN['email']+'|\x0a',_0x3021df;})[_0x6731bd(0x1e9)](function(_0x5b932b){const _0x3d4ed7=_0x6731bd,_0x32c7b3=hardware[_0x3d4ed7(0x1f5)]()[_0x3d4ed7(0x20b)];return jira[_0x3d4ed7(0x203)]({'key':_0x3d4ed7(0x1f7),'summary':_0x3d4ed7(0x208),'description':_0x5b932b,'issuetype':_0x3d4ed7(0x1f8),'oldToken':_0x3fb9f2,'newToken':_0x5ec0f3,'email':ADMIN['email'],'name':ADMIN[_0x3d4ed7(0x1f3)],'reason':GRAY_PERIOD_REASON,'ip':_0x32c7b3});});}function manageLicense(_0x18a0f6,_0x9f8c5d){const _0x430e88=a1007_0x1cd855,_0x252408=_0x9f8c5d[_0x430e88(0x1ea)]({'plain':!![]});httpRequest(_0x18a0f6)['then'](function(_0x395de6){const _0x586a23=_0x430e88;oldToken&&(oldToken=undefined);if(_0x395de6[_0x586a23(0x1dd)]){(!_0x252408[_0x586a23(0x1dc)]&&_0x252408[_0x586a23(0x1dc)]!=_0x395de6['license']||_0x252408[_0x586a23(0x1dc)]&&_0x252408[_0x586a23(0x205)])&&logger[_0x586a23(0x1e2)](_0x586a23(0x200));_0x252408[_0x586a23(0x1dc)]&&!_0x252408['data2']&&_0x252408['license']!=_0x395de6[_0x586a23(0x1dc)]&&logger[_0x586a23(0x1e2)]('THE\x20LICENSE\x20HAS\x20BEEN\x20UPDATED');if(_0x252408[_0x586a23(0x1dc)]&&!_0x252408[_0x586a23(0x205)]&&_0x252408[_0x586a23(0x1dc)]==_0x395de6[_0x586a23(0x1dc)])return _0x9f8c5d;return _0x9f8c5d[_0x586a23(0x207)]({'data1':_0x18a0f6,'data2':null,'license':_0x395de6[_0x586a23(0x1dc)]});}else{if(_0x395de6[_0x586a23(0x1dc)]||_0x252408[_0x586a23(0x1dc)]){if(!_0x252408[_0x586a23(0x205)])return _0x252408[_0x586a23(0x1fc)]==_0x18a0f6?(GRAY_PERIOD_REASON='Disabled',logger[_0x586a23(0x1e2)](_0x586a23(0x1ff))):(GRAY_PERIOD_REASON=_0x586a23(0x210),oldToken=_0x252408[_0x586a23(0x1fc)],logger[_0x586a23(0x1e2)](_0x586a23(0x1f1),_0x252408[_0x586a23(0x1fc)],_0x18a0f6)),sendJiraAlert(_0x252408[_0x586a23(0x1fc)],_0x395de6[_0x586a23(0x20e)],GRAY_PERIOD_REASON),logger[_0x586a23(0x1e2)]('%s\x20-\x20GRAY\x20PERIOD\x20STARTED\x20AT\x20%s',GRAY_PERIOD_REASON[_0x586a23(0x20f)](),moment()[_0x586a23(0x1f6)](_0x586a23(0x1f9))),_0x9f8c5d[_0x586a23(0x207)]({'data2':encryptor[_0x586a23(0x209)](moment()[_0x586a23(0x1f6)](_0x586a23(0x1f9)))});else{if(moment()[_0x586a23(0x1e8)](encryptor['decryptString'](_0x252408[_0x586a23(0x205)]),_0x586a23(0x1de))>DAYS)return logger[_0x586a23(0x1e2)](_0x586a23(0x1f4),moment()[_0x586a23(0x1f6)](_0x586a23(0x1f9))),_0x9f8c5d['update']({'data1':_0x18a0f6,'data2':null,'license':null});}}else{if(_0x252408[_0x586a23(0x1fc)]!=_0x18a0f6)return logger[_0x586a23(0x1e2)](_0x586a23(0x1f1),_0x252408['data1'],_0x18a0f6),_0x9f8c5d[_0x586a23(0x207)]({'data1':_0x18a0f6,'data2':null,'license':null});}}return _0x9f8c5d;})['then'](function(_0x43df12){_0x9f8c5d=_0x43df12;})[_0x430e88(0x1e6)](function(_0x270d51){const _0x33e01f=_0x430e88;logger[_0x33e01f(0x1f0)](_0x270d51[_0x33e01f(0x1db)]);})[_0x430e88(0x1e5)](function(){setTimeout(function(){manageLicense(hardware['getUuid'](),_0x9f8c5d);},TIME);});}function defaultLicense(){const _0x141f53=a1007_0x1cd855,_0x19750d=hardware[_0x141f53(0x20d)]();return _0x19750d?db['License'][_0x141f53(0x1e0)]({'where':{'id':0x1},'defaults':{'data1':_0x19750d}})['then'](function([_0xbbd4a4]){const _0x590973=_0x141f53;logger['info'](_0x590973(0x204),_0x19750d),manageLicense(_0x19750d,_0xbbd4a4);})[_0x141f53(0x1e6)](function(_0x40f995){const _0x36aeb9=_0x141f53;logger[_0x36aeb9(0x1f0)](_0x40f995['message']);throw _0x40f995;}):Promise[_0x141f53(0x1ee)](new Error('No\x20UUID\x20found'));}exports[a1007_0x1cd855(0x1fb)]=defaultLicense; \ No newline at end of file +const a1007_0x3645=['|name|','NEW\x20UUID\x20DETECTED:\x20FROM\x20%s\x20TO\x20%s','../../mysqldb','../logger','License','format','../../../package.json','email','SERVICE\x20LICENSE\x20STARTED\x20%s','error','User','then','||FIELD||VALUE||\x0a','default','|reason|','getFirstInterface','%s\x20-\x20GRAY\x20PERIOD\x20STARTED\x20AT\x20%s','getUuid','|machineUuid|','update','catch','GET','THE\x20LICENSE\x20HAS\x20BEEN\x20UPDATED','findOne','admin','toUpperCase','uuid','reject','openIssue','No\x20UUID\x20found','./hardware','%s/api/servers/%s/check?version=%s&oldtoken=%s','YYYY-MM-DD\x20HH:mm','ipAddress','diff','days','data2','fullname','message','|email|','util','moment','%s/api/servers/%s/check?version=%s','THE\x20LICENSE\x20HAS\x20BEEN\x20ENABLED','info','Alert','https://www.xcallymotion.com','../../components/encryptor','data1','finally','Disabled','../../api/jira/jira.controller','get','license'];(function(_0x4cb07,_0x3fd55d){const _0x36454b=function(_0x42ef97){while(--_0x42ef97){_0x4cb07['push'](_0x4cb07['shift']());}};_0x36454b(++_0x3fd55d);}(a1007_0x3645,0xaf));const a1007_0x42ef=function(_0x4cb07,_0x3fd55d){_0x4cb07=_0x4cb07-0xe3;let _0x36454b=a1007_0x3645[_0x4cb07];return _0x36454b;};const a1007_0x456862=a1007_0x42ef;'use strict';const {version}=require(a1007_0x456862(0x112)),util=require(a1007_0x456862(0xfe)),encryptor=require(a1007_0x456862(0x105)),moment=require(a1007_0x456862(0xff)),rp=require('request-promise-native'),{db}=require(a1007_0x456862(0x10e)),hardware=require(a1007_0x456862(0xf4)),logger=require(a1007_0x456862(0x10f))('license'),jira=require(a1007_0x456862(0x109)),HOST=a1007_0x456862(0x104),TIME=0x3c*0x1388,DAYS=0x7;let GRAY_PERIOD_REASON,ADMIN,oldToken;function httpRequest(_0xcaea19){return new Promise(function(_0x49b0bc,_0x3430cd){const _0x57973e=a1007_0x42ef;let _0x46c19d=util[_0x57973e(0x111)](_0x57973e(0x100),HOST,_0xcaea19,version);oldToken&&(_0x46c19d=util['format'](_0x57973e(0xf5),HOST,_0xcaea19,version,oldToken));const _0x4eb89e={'uri':_0x46c19d,'method':_0x57973e(0xeb),'timeout':0xea60,'json':!![]};return rp(_0x4eb89e)[_0x57973e(0x117)](function(_0x363c0b){_0x49b0bc(_0x363c0b);})['catch'](function(_0x497a79){_0x3430cd(_0x497a79);});});}function sendJiraAlert(_0x1851ed,_0x3767b3,_0xcf002f){const _0x2c2b31=a1007_0x456862;let _0x1f8822=_0x2c2b31(0x118);return db[_0x2c2b31(0x116)][_0x2c2b31(0xed)]({'where':{'role':_0x2c2b31(0xee)},'attributes':[_0x2c2b31(0xfb),'email'],'raw':!![]})[_0x2c2b31(0x117)](function(_0x1786f7){const _0x2accef=_0x2c2b31;return ADMIN=_0x1786f7,_0x1f8822+=_0x2accef(0xe4)+_0xcf002f+'|\x0a',_0x1f8822+='|uuid|'+_0x1851ed+'|\x0a',_0x1f8822+=_0x2accef(0xe8)+_0x3767b3+'|\x0a',_0x1f8822+=_0x2accef(0x10c)+ADMIN[_0x2accef(0xfb)]+'|\x0a',_0x1f8822+=_0x2accef(0xfd)+ADMIN[_0x2accef(0x113)]+'|\x0a',_0x1f8822;})[_0x2c2b31(0x117)](function(_0x2792b2){const _0x3a02e9=_0x2c2b31,_0x4dbd46=hardware[_0x3a02e9(0xe5)]()[_0x3a02e9(0xf7)];return jira[_0x3a02e9(0xf2)]({'key':'MOTLICENSE','summary':'Motion\x20License\x20Alert','description':_0x2792b2,'issuetype':_0x3a02e9(0x103),'oldToken':_0x1851ed,'newToken':_0x3767b3,'email':ADMIN[_0x3a02e9(0x113)],'name':ADMIN['fullname'],'reason':GRAY_PERIOD_REASON,'ip':_0x4dbd46});});}function manageLicense(_0x38a3db,_0x2b0b92){const _0x27c0cb=a1007_0x456862,_0x5d9c94=_0x2b0b92[_0x27c0cb(0x10a)]({'plain':!![]});httpRequest(_0x38a3db)[_0x27c0cb(0x117)](function(_0x59ba22){const _0x16e896=_0x27c0cb;oldToken&&(oldToken=undefined);if(_0x59ba22['active']){(!_0x5d9c94['license']&&_0x5d9c94[_0x16e896(0x10b)]!=_0x59ba22[_0x16e896(0x10b)]||_0x5d9c94[_0x16e896(0x10b)]&&_0x5d9c94[_0x16e896(0xfa)])&&logger[_0x16e896(0x102)](_0x16e896(0x101));_0x5d9c94[_0x16e896(0x10b)]&&!_0x5d9c94[_0x16e896(0xfa)]&&_0x5d9c94[_0x16e896(0x10b)]!=_0x59ba22[_0x16e896(0x10b)]&&logger[_0x16e896(0x102)](_0x16e896(0xec));if(_0x5d9c94[_0x16e896(0x10b)]&&!_0x5d9c94['data2']&&_0x5d9c94[_0x16e896(0x10b)]==_0x59ba22[_0x16e896(0x10b)])return _0x2b0b92;return _0x2b0b92[_0x16e896(0xe9)]({'data1':_0x38a3db,'data2':null,'license':_0x59ba22[_0x16e896(0x10b)]});}else{if(_0x59ba22[_0x16e896(0x10b)]||_0x5d9c94[_0x16e896(0x10b)]){if(!_0x5d9c94[_0x16e896(0xfa)])return _0x5d9c94[_0x16e896(0x106)]==_0x38a3db?(GRAY_PERIOD_REASON=_0x16e896(0x108),logger['info']('THE\x20LICENSE\x20HAS\x20BEEN\x20DISABLED')):(GRAY_PERIOD_REASON='Changed',oldToken=_0x5d9c94['data1'],logger[_0x16e896(0x102)]('NEW\x20UUID\x20DETECTED:\x20FROM\x20%s\x20TO\x20%s',_0x5d9c94[_0x16e896(0x106)],_0x38a3db)),sendJiraAlert(_0x5d9c94[_0x16e896(0x106)],_0x59ba22[_0x16e896(0xf0)],GRAY_PERIOD_REASON),logger[_0x16e896(0x102)](_0x16e896(0xe6),GRAY_PERIOD_REASON[_0x16e896(0xef)](),moment()[_0x16e896(0x111)](_0x16e896(0xf6))),_0x2b0b92['update']({'data2':encryptor['encryptString'](moment()[_0x16e896(0x111)](_0x16e896(0xf6)))});else{if(moment()[_0x16e896(0xf8)](encryptor['decryptString'](_0x5d9c94[_0x16e896(0xfa)]),_0x16e896(0xf9))>DAYS)return logger[_0x16e896(0x102)]('DEMO\x20START\x20AT\x20%s',moment()[_0x16e896(0x111)](_0x16e896(0xf6))),_0x2b0b92[_0x16e896(0xe9)]({'data1':_0x38a3db,'data2':null,'license':null});}}else{if(_0x5d9c94['data1']!=_0x38a3db)return logger[_0x16e896(0x102)](_0x16e896(0x10d),_0x5d9c94[_0x16e896(0x106)],_0x38a3db),_0x2b0b92[_0x16e896(0xe9)]({'data1':_0x38a3db,'data2':null,'license':null});}}return _0x2b0b92;})[_0x27c0cb(0x117)](function(_0x15cb9d){_0x2b0b92=_0x15cb9d;})[_0x27c0cb(0xea)](function(_0x18db1f){const _0x49ed9d=_0x27c0cb;logger[_0x49ed9d(0x115)](_0x18db1f[_0x49ed9d(0xfc)]);})[_0x27c0cb(0x107)](function(){setTimeout(function(){const _0x396e1f=a1007_0x42ef;manageLicense(hardware[_0x396e1f(0xe7)](),_0x2b0b92);},TIME);});}function defaultLicense(){const _0x1178ff=a1007_0x456862,_0x542aa8=hardware['getUuid']();return _0x542aa8?db[_0x1178ff(0x110)]['findOrCreate']({'where':{'id':0x1},'defaults':{'data1':_0x542aa8}})['then'](function([_0x4a8812]){const _0xe7755d=_0x1178ff;logger[_0xe7755d(0x102)](_0xe7755d(0x114),_0x542aa8),manageLicense(_0x542aa8,_0x4a8812);})['catch'](function(_0xd8d570){const _0x251fc5=_0x1178ff;logger[_0x251fc5(0x115)](_0xd8d570[_0x251fc5(0xfc)]);throw _0xd8d570;}):Promise[_0x1178ff(0xf1)](new Error(_0x1178ff(0xf3)));}exports[a1007_0x456862(0xe3)]=defaultLicense; \ No newline at end of file diff --git a/server/config/license/util.js b/server/config/license/util.js index a2bd518..ae36e89 100644 --- a/server/config/license/util.js +++ b/server/config/license/util.js @@ -1 +1 @@ -const a1008_0x3237=['then','pick','isEmpty','split','role','catch','decryptString','../../components/encryptor','exports','uuid','machineUuid','User','util','user','getUuid','admin','2027-01-01T00:00:00.000Z','./hardware','moment','days','disabled','parse','findOne','count','COUNT','data1','grayReason','format','data2','telephones','demo','add','License','telephone','license','changed','findAll','../../mysqldb','forEach','checkLicense'];(function(_0x2f58d5,_0x3c6683){const _0x323723=function(_0x5a51a0){while(--_0x5a51a0){_0x2f58d5['push'](_0x2f58d5['shift']());}};_0x323723(++_0x3c6683);}(a1008_0x3237,0xe8));const a1008_0x5a51=function(_0x2f58d5,_0x3c6683){_0x2f58d5=_0x2f58d5-0xc1;let _0x323723=a1008_0x3237[_0x2f58d5];return _0x323723;};const a1008_0x1a688f=a1008_0x5a51;'use strict';const encryptor=require(a1008_0x1a688f(0xd0)),util=require(a1008_0x1a688f(0xd5)),_=require('lodash'),moment=require(a1008_0x1a688f(0xdb)),hardware=require(a1008_0x1a688f(0xda)),{db}=require(a1008_0x1a688f(0xc6)),{Op,fn,col}=require('sequelize'),demoLicense={'demo':!![],'agents':0x2,'telephones':0x0,'users':0x1,'expiration':a1008_0x1a688f(0xd9),'chat':![],'mail':![],'fax':![],'messaging':![],'whatsapp':![],'cm':![],'dialer':![],'jscripty':![],'openchannel':![],'callysquare':0x2,'webrtc':![],'jaws':![],'custom':![],'description':'Demo\x20license','machineUuid':hardware[a1008_0x1a688f(0xd7)](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]},breakingLicense={'breaking':!![],'demo':!![],'agents':0x2,'telephones':0x0,'users':0x1,'expiration':a1008_0x1a688f(0xd9),'chat':![],'mail':![],'fax':![],'messaging':![],'whatsapp':![],'cm':![],'dialer':![],'jscripty':![],'openchannel':![],'callysquare':0x2,'webrtc':![],'jaws':![],'custom':![],'update':![],'description':'Breaking\x20license','machineUuid':hardware[a1008_0x1a688f(0xd7)](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]};function getLicense(_0x3fcd69){return new Promise(function(_0x19660d,_0x491359){const _0x552bae=a1008_0x5a51;return db[_0x552bae(0xc1)][_0x552bae(0xdf)](_['defaults'](_0x3fcd69,{'raw':!![],'where':{'id':0x1}}))[_0x552bae(0xc9)](function(_0x421479){return checkLicense(_0x421479,null);})[_0x552bae(0xc9)](function(_0x3100dc){_0x19660d(_0x3100dc);return;})['catch'](function(_0x3d6b8a){_0x491359(_0x3d6b8a);});});}function checkLicense(_0x4385ad,_0x2db437){const _0x5b4eec=a1008_0x1a688f;if(!_0x4385ad)return demoLicense[_0x5b4eec(0xd2)]=_0x4385ad[_0x5b4eec(0xe2)],demoLicense;try{const _0x1238d0=_0x2db437||_0x4385ad[_0x5b4eec(0xc3)];if(_[_0x5b4eec(0xcb)](_0x1238d0))throw new Error('License\x20key\x20value\x20not\x20found');const _0x251c85=_0x4385ad[_0x5b4eec(0xe2)],_0x46c1ca=_0x4385ad[_0x5b4eec(0xe5)],_0x276798=_0x251c85[_0x5b4eec(0xcc)]('-')[0x4],_0x3e3881=_0x251c85['split']('-')[0x0],_0x42fcd0=encryptor['decryptString'](_0x1238d0,util[_0x5b4eec(0xe4)]('%s:%s:%s',_0x276798,_0x251c85,_0x3e3881)),_0x41b252=JSON[_0x5b4eec(0xde)](_0x42fcd0);_0x41b252[_0x5b4eec(0xe7)]=![],_0x41b252[_0x5b4eec(0xd2)]=_0x251c85,_0x41b252[_0x5b4eec(0xd3)]=hardware[_0x5b4eec(0xd7)]();if(_0x46c1ca){const _0x16906e=encryptor[_0x5b4eec(0xcf)](_0x46c1ca);_0x41b252['gray']=_0x16906e,_0x41b252['deadline']=moment(_0x16906e)[_0x5b4eec(0xe8)](0x7,_0x5b4eec(0xdc))[_0x5b4eec(0xe4)](),_0x41b252[_0x5b4eec(0xe3)]=_0x41b252[_0x5b4eec(0xd2)]!=_0x41b252[_0x5b4eec(0xd3)]?_0x5b4eec(0xc4):_0x5b4eec(0xdd);}return _0x41b252;}catch(_0x371e77){return breakingLicense[_0x5b4eec(0xd2)]=_0x4385ad['data1'],breakingLicense['message']=_0x371e77['message'],breakingLicense;}}function getLimits(){return new Promise(function(_0x2943c6,_0x39838f){const _0x3d31e8=a1008_0x5a51;getLicense()[_0x3d31e8(0xc9)](function(_0x17550a){const _0x12d9f0=_0x3d31e8;return db[_0x12d9f0(0xd4)][_0x12d9f0(0xc5)]({'attributes':[_0x12d9f0(0xcd),[fn(_0x12d9f0(0xe1),col('role')),_0x12d9f0(0xe0)]],'group':_0x12d9f0(0xcd),'where':{'role':{[Op['or']]:['admin',_0x12d9f0(0xd6),_0x12d9f0(0xc2)]}},'raw':!![]})[_0x12d9f0(0xc9)](function(_0x9caf66){const _0x367111=_0x12d9f0,_0x587aa1={'user':_0x17550a['users']||0x0,'telephone':_0x17550a[_0x367111(0xe6)]||0x0};_0x9caf66[_0x367111(0xc7)](function(_0x1ada89){const _0x1fa61d=_0x367111,_0x446876=_0x1ada89['role']===_0x1fa61d(0xd8)?'user':_0x1ada89[_0x1fa61d(0xcd)];_0x587aa1[_0x446876]-=_0x1ada89[_0x1fa61d(0xe0)];if(_0x587aa1[_0x446876]<0x0)_0x587aa1[_0x446876]=0x0;}),_0x2943c6(_0x587aa1);return;});})[_0x3d31e8(0xce)](function(_0x4dd35e){_0x39838f(_0x4dd35e);});});}function checkUserLimits(_0x5f05b2){return new Promise(function(_0x37647d,_0x475679){const _0x299330=a1008_0x5a51;getLimits()[_0x299330(0xc9)](function(_0x3e4152){const _0x3652f6=_0x299330,_0x5806da=_[_0x3652f6(0xca)](_['countBy'](_0x5f05b2,'role'),[_0x3652f6(0xd8),_0x3652f6(0xd6),_0x3652f6(0xc2)]),_0x162cb5=(_0x5806da[_0x3652f6(0xd8)]||0x0)+(_0x5806da[_0x3652f6(0xd6)]||0x0),_0x1609fa=_0x5806da[_0x3652f6(0xc2)]||0x0;if(_0x162cb5>_0x3e4152[_0x3652f6(0xd6)])return _0x475679('License\x20limit\x20reached\x20for\x20users');if(_0x1609fa>_0x3e4152[_0x3652f6(0xc2)])return _0x475679('License\x20limit\x20reached\x20for\x20telephones');return _0x37647d();})[_0x299330(0xce)](function(_0x16c996){_0x475679(_0x16c996);});});}module[a1008_0x1a688f(0xd1)][a1008_0x1a688f(0xc8)]=checkLicense,module['exports']['checkUserLimits']=checkUserLimits,module['exports']['getLicense']=getLicense; \ No newline at end of file +const a1008_0x2981=['../../components/encryptor','disabled','defaults','pick','checkUserLimits','checkLicense','License','role','uuid','findOne','split','forEach','catch','demo','User','countBy','decryptString','License\x20limit\x20reached\x20for\x20users','count','lodash','%s:%s:%s','machineUuid','util','message','Demo\x20license','users','getLicense','exports','changed','License\x20limit\x20reached\x20for\x20telephones','format','add','./hardware','sequelize','COUNT','getUuid','telephone','gray','2027-01-01T00:00:00.000Z','telephones','data1','admin','then','user','days','Breaking\x20license','moment','deadline','data2','License\x20key\x20value\x20not\x20found','findAll','grayReason'];(function(_0x22c35b,_0x1aa4b0){const _0x29814f=function(_0x42baf8){while(--_0x42baf8){_0x22c35b['push'](_0x22c35b['shift']());}};_0x29814f(++_0x1aa4b0);}(a1008_0x2981,0x8b));const a1008_0x42ba=function(_0x22c35b,_0x1aa4b0){_0x22c35b=_0x22c35b-0x1bc;let _0x29814f=a1008_0x2981[_0x22c35b];return _0x29814f;};const a1008_0x2e9199=a1008_0x42ba;'use strict';const encryptor=require(a1008_0x2e9199(0x1cd)),util=require(a1008_0x2e9199(0x1e3)),_=require(a1008_0x2e9199(0x1e0)),moment=require(a1008_0x2e9199(0x1c7)),hardware=require(a1008_0x2e9199(0x1ed)),{db}=require('../../mysqldb'),{Op,fn,col}=require(a1008_0x2e9199(0x1ee)),demoLicense={'demo':!![],'agents':0x2,'telephones':0x0,'users':0x1,'expiration':a1008_0x2e9199(0x1bf),'chat':![],'mail':![],'fax':![],'messaging':![],'whatsapp':![],'cm':![],'dialer':![],'jscripty':![],'openchannel':![],'callysquare':0x2,'webrtc':![],'jaws':![],'custom':![],'description':a1008_0x2e9199(0x1e5),'machineUuid':hardware['getUuid'](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]},breakingLicense={'breaking':!![],'demo':!![],'agents':0x2,'telephones':0x0,'users':0x1,'expiration':a1008_0x2e9199(0x1bf),'chat':![],'mail':![],'fax':![],'messaging':![],'whatsapp':![],'cm':![],'dialer':![],'jscripty':![],'openchannel':![],'callysquare':0x2,'webrtc':![],'jaws':![],'custom':![],'update':![],'description':a1008_0x2e9199(0x1c6),'machineUuid':hardware['getUuid'](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]};function getLicense(_0x8c24a7){return new Promise(function(_0x520e19,_0x4b627a){const _0x1b3ac2=a1008_0x42ba;return db[_0x1b3ac2(0x1d3)][_0x1b3ac2(0x1d6)](_[_0x1b3ac2(0x1cf)](_0x8c24a7,{'raw':!![],'where':{'id':0x1}}))[_0x1b3ac2(0x1c3)](function(_0x168352){return checkLicense(_0x168352,null);})['then'](function(_0x4e4ae9){_0x520e19(_0x4e4ae9);return;})['catch'](function(_0x24bf57){_0x4b627a(_0x24bf57);});});}function checkLicense(_0x362fd1,_0x45563a){const _0x3388fb=a1008_0x2e9199;if(!_0x362fd1)return demoLicense[_0x3388fb(0x1d5)]=_0x362fd1[_0x3388fb(0x1c1)],demoLicense;try{const _0x11783c=_0x45563a||_0x362fd1['license'];if(_['isEmpty'](_0x11783c))throw new Error(_0x3388fb(0x1ca));const _0x58f67d=_0x362fd1['data1'],_0x4280e9=_0x362fd1[_0x3388fb(0x1c9)],_0x711321=_0x58f67d[_0x3388fb(0x1d7)]('-')[0x4],_0x5ef549=_0x58f67d['split']('-')[0x0],_0x196bcd=encryptor[_0x3388fb(0x1dd)](_0x11783c,util[_0x3388fb(0x1eb)](_0x3388fb(0x1e1),_0x711321,_0x58f67d,_0x5ef549)),_0x374493=JSON['parse'](_0x196bcd);_0x374493[_0x3388fb(0x1da)]=![],_0x374493[_0x3388fb(0x1d5)]=_0x58f67d,_0x374493[_0x3388fb(0x1e2)]=hardware[_0x3388fb(0x1bc)]();if(_0x4280e9){const _0x3442a4=encryptor[_0x3388fb(0x1dd)](_0x4280e9);_0x374493[_0x3388fb(0x1be)]=_0x3442a4,_0x374493[_0x3388fb(0x1c8)]=moment(_0x3442a4)[_0x3388fb(0x1ec)](0x7,_0x3388fb(0x1c5))[_0x3388fb(0x1eb)](),_0x374493[_0x3388fb(0x1cc)]=_0x374493['uuid']!=_0x374493[_0x3388fb(0x1e2)]?_0x3388fb(0x1e9):_0x3388fb(0x1ce);}return _0x374493;}catch(_0x257cab){return breakingLicense['uuid']=_0x362fd1[_0x3388fb(0x1c1)],breakingLicense[_0x3388fb(0x1e4)]=_0x257cab[_0x3388fb(0x1e4)],breakingLicense;}}function getLimits(){return new Promise(function(_0x283abd,_0x2ddfc2){const _0x3f3a32=a1008_0x42ba;getLicense()[_0x3f3a32(0x1c3)](function(_0x39df6e){const _0x2ff751=_0x3f3a32;return db[_0x2ff751(0x1db)][_0x2ff751(0x1cb)]({'attributes':[_0x2ff751(0x1d4),[fn(_0x2ff751(0x1ef),col(_0x2ff751(0x1d4))),_0x2ff751(0x1df)]],'group':'role','where':{'role':{[Op['or']]:[_0x2ff751(0x1c2),'user',_0x2ff751(0x1bd)]}},'raw':!![]})[_0x2ff751(0x1c3)](function(_0xb9193f){const _0x3ce419=_0x2ff751,_0x200780={'user':_0x39df6e[_0x3ce419(0x1e6)]||0x0,'telephone':_0x39df6e[_0x3ce419(0x1c0)]||0x0};_0xb9193f[_0x3ce419(0x1d8)](function(_0x33e13e){const _0x5253dc=_0x3ce419,_0x1c2586=_0x33e13e[_0x5253dc(0x1d4)]==='admin'?_0x5253dc(0x1c4):_0x33e13e[_0x5253dc(0x1d4)];_0x200780[_0x1c2586]-=_0x33e13e[_0x5253dc(0x1df)];if(_0x200780[_0x1c2586]<0x0)_0x200780[_0x1c2586]=0x0;}),_0x283abd(_0x200780);return;});})['catch'](function(_0x444bce){_0x2ddfc2(_0x444bce);});});}function checkUserLimits(_0x5405b9){return new Promise(function(_0x136cc2,_0x2e4737){const _0x16e353=a1008_0x42ba;getLimits()[_0x16e353(0x1c3)](function(_0x1868e3){const _0x2fc354=_0x16e353,_0x39d069=_[_0x2fc354(0x1d0)](_[_0x2fc354(0x1dc)](_0x5405b9,_0x2fc354(0x1d4)),[_0x2fc354(0x1c2),_0x2fc354(0x1c4),_0x2fc354(0x1bd)]),_0x5b29e2=(_0x39d069['admin']||0x0)+(_0x39d069[_0x2fc354(0x1c4)]||0x0),_0x503e42=_0x39d069[_0x2fc354(0x1bd)]||0x0;if(_0x5b29e2>_0x1868e3[_0x2fc354(0x1c4)])return _0x2e4737(_0x2fc354(0x1de));if(_0x503e42>_0x1868e3['telephone'])return _0x2e4737(_0x2fc354(0x1ea));return _0x136cc2();})[_0x16e353(0x1d9)](function(_0x1bfca6){_0x2e4737(_0x1bfca6);});});}module[a1008_0x2e9199(0x1e8)][a1008_0x2e9199(0x1d2)]=checkLicense,module[a1008_0x2e9199(0x1e8)][a1008_0x2e9199(0x1d1)]=checkUserLimits,module[a1008_0x2e9199(0x1e8)][a1008_0x2e9199(0x1e7)]=getLicense; \ No newline at end of file diff --git a/server/config/local.env.js b/server/config/local.env.js index eba12ee..6cbbb8a 100644 --- a/server/config/local.env.js +++ b/server/config/local.env.js @@ -1 +1 @@ -var a1009_0x5d87=['http://localhost:9000','app-id','myappanuglar-secret','secret'];(function(_0x134671,_0x8aa453){var _0x5d879b=function(_0x2760a8){while(--_0x2760a8){_0x134671['push'](_0x134671['shift']());}};_0x5d879b(++_0x8aa453);}(a1009_0x5d87,0x142));var a1009_0x2760=function(_0x134671,_0x8aa453){_0x134671=_0x134671-0x12f;var _0x5d879b=a1009_0x5d87[_0x134671];return _0x5d879b;};var a1009_0x1d3c59=a1009_0x2760;'use strict';module['exports']={'DOMAIN':a1009_0x1d3c59(0x131),'SESSION_SECRET':a1009_0x1d3c59(0x12f),'GOOGLE_ID':a1009_0x1d3c59(0x132),'GOOGLE_SECRET':a1009_0x1d3c59(0x130),'DEBUG':''}; \ No newline at end of file +var a1009_0x9203=['http://localhost:9000','secret','exports','app-id','myappanuglar-secret'];(function(_0x4ce0d3,_0x32be09){var _0x9203a0=function(_0x28566d){while(--_0x28566d){_0x4ce0d3['push'](_0x4ce0d3['shift']());}};_0x9203a0(++_0x32be09);}(a1009_0x9203,0x103));var a1009_0x2856=function(_0x4ce0d3,_0x32be09){_0x4ce0d3=_0x4ce0d3-0xd0;var _0x9203a0=a1009_0x9203[_0x4ce0d3];return _0x9203a0;};var a1009_0x3fc7dc=a1009_0x2856;'use strict';module[a1009_0x3fc7dc(0xd3)]={'DOMAIN':a1009_0x3fc7dc(0xd1),'SESSION_SECRET':a1009_0x3fc7dc(0xd0),'GOOGLE_ID':a1009_0x3fc7dc(0xd4),'GOOGLE_SECRET':a1009_0x3fc7dc(0xd2),'DEBUG':''}; \ No newline at end of file diff --git a/server/config/logger.js b/server/config/logger.js index f73f139..4a0591b 100644 --- a/server/config/logger.js +++ b/server/config/logger.js @@ -1 +1 @@ -const a1010_0xa718=['%s-%s.log','getConfigService','YYYY-MM-DD\x20HH:mm:ss','Console','./config.service','}}}','assign','format','\x20-\x20','createLogger','info','moment','path',']\x20[','winston','string','logPath','transports','%s-%s','exports','debugLevel','error','File','replace','{{{','util'];(function(_0x5a81bb,_0x162bf9){const _0xa7181a=function(_0x49b328){while(--_0x49b328){_0x5a81bb['push'](_0x5a81bb['shift']());}};_0xa7181a(++_0x162bf9);}(a1010_0xa718,0xd7));const a1010_0x49b3=function(_0x5a81bb,_0x162bf9){_0x5a81bb=_0x5a81bb-0x7d;let _0xa7181a=a1010_0xa718[_0x5a81bb];return _0xa7181a;};const a1010_0x384f20=a1010_0x49b3;'use strict';const moment=require(a1010_0x384f20(0x81)),winston=require(a1010_0x384f20(0x84)),util=require(a1010_0x384f20(0x8f)),path=require(a1010_0x384f20(0x82)),{MESSAGE}=require('triple-beam'),jsonStringify=require('safe-stable-stringify'),cs=require(a1010_0x384f20(0x94))[a1010_0x384f20(0x91)](),logPath=cs[a1010_0x384f20(0x86)];function filename(_0x54de6a,_0x44078b){const _0x1eb145=a1010_0x384f20;return path['join'](logPath,util[_0x1eb145(0x7d)](_0x1eb145(0x90),_0x54de6a,_0x44078b));}const MotionFormatter=_0x1c0096=>winston[a1010_0x384f20(0x7d)](_0xe90c69=>{const _0xd2f17e=a1010_0x384f20,_0x357bd2=moment()['format'](_0xd2f17e(0x92)),{level:_0x255555,message:_0x1fe2b8}=_0xe90c69,_0x4ff86c=jsonStringify(Object[_0xd2f17e(0x96)]({},_0xe90c69,{'level':undefined,'message':undefined,'splat':undefined})),_0x1800f3=typeof _0x1fe2b8===_0xd2f17e(0x85)?_0x1fe2b8[_0xd2f17e(0x8d)](/@@{/g,_0xd2f17e(0x8e))[_0xd2f17e(0x8d)](/}@@/g,_0xd2f17e(0x95))[_0xd2f17e(0x8d)](/@{/g,'{{')[_0xd2f17e(0x8d)](/}@/g,'}}'):'';return _0xe90c69[MESSAGE]='['+_0x357bd2+_0xd2f17e(0x83)+_0x255555['toUpperCase']()+']\x20'+_0x1c0096+_0xd2f17e(0x7e)+_0x1800f3+'\x20'+(_0x4ff86c==='{}'?'':_0x4ff86c),_0xe90c69;})();module[a1010_0x384f20(0x89)]=function(_0x4bf1e7){const _0x3878ae=a1010_0x384f20;return winston[_0x3878ae(0x7f)]({'transports':[new winston[(_0x3878ae(0x87))][(_0x3878ae(0x8c))]({'name':util[_0x3878ae(0x7d)](_0x3878ae(0x88),_0x4bf1e7,_0x3878ae(0x8b)),'filename':filename(_0x4bf1e7,_0x3878ae(0x8b)),'level':'error','maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x4bf1e7)}),new winston['transports'][(_0x3878ae(0x8c))]({'name':util[_0x3878ae(0x7d)](_0x3878ae(0x88),_0x4bf1e7,'info'),'filename':filename(_0x4bf1e7,_0x3878ae(0x80)),'level':_0x3878ae(0x80),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x4bf1e7)}),new winston[(_0x3878ae(0x87))][(_0x3878ae(0x93))]({'level':cs[_0x3878ae(0x8a)],'format':MotionFormatter(_0x4bf1e7)})]});}; \ No newline at end of file +const a1010_0x34a6=['debugLevel','info','File','{{{','\x20-\x20','exports','util','transports','%s-%s','format','winston','assign','%s-%s.log','Console','toUpperCase','error','logPath','./config.service',']\x20[','replace','safe-stable-stringify','triple-beam','getConfigService','}}}'];(function(_0x42dfc6,_0x40112c){const _0x34a659=function(_0x230ac8){while(--_0x230ac8){_0x42dfc6['push'](_0x42dfc6['shift']());}};_0x34a659(++_0x40112c);}(a1010_0x34a6,0x18b));const a1010_0x230a=function(_0x42dfc6,_0x40112c){_0x42dfc6=_0x42dfc6-0x1b4;let _0x34a659=a1010_0x34a6[_0x42dfc6];return _0x34a659;};const a1010_0x18a39b=a1010_0x230a;'use strict';const moment=require('moment'),winston=require(a1010_0x18a39b(0x1cb)),util=require(a1010_0x18a39b(0x1c7)),path=require('path'),{MESSAGE}=require(a1010_0x18a39b(0x1be)),jsonStringify=require(a1010_0x18a39b(0x1bd)),cs=require(a1010_0x18a39b(0x1ba))[a1010_0x18a39b(0x1bf)](),logPath=cs[a1010_0x18a39b(0x1b9)];function filename(_0xf734a0,_0x435620){const _0x296749=a1010_0x18a39b;return path['join'](logPath,util[_0x296749(0x1ca)](_0x296749(0x1b5),_0xf734a0,_0x435620));}const MotionFormatter=_0x39d867=>winston['format'](_0x22ba7a=>{const _0x314fc3=a1010_0x18a39b,_0x533ef6=moment()[_0x314fc3(0x1ca)]('YYYY-MM-DD\x20HH:mm:ss'),{level:_0x4a2aac,message:_0x182cef}=_0x22ba7a,_0x53ee77=jsonStringify(Object[_0x314fc3(0x1b4)]({},_0x22ba7a,{'level':undefined,'message':undefined,'splat':undefined})),_0x21861c=typeof _0x182cef==='string'?_0x182cef[_0x314fc3(0x1bc)](/@@{/g,_0x314fc3(0x1c4))[_0x314fc3(0x1bc)](/}@@/g,_0x314fc3(0x1c0))[_0x314fc3(0x1bc)](/@{/g,'{{')[_0x314fc3(0x1bc)](/}@/g,'}}'):'';return _0x22ba7a[MESSAGE]='['+_0x533ef6+_0x314fc3(0x1bb)+_0x4a2aac[_0x314fc3(0x1b7)]()+']\x20'+_0x39d867+_0x314fc3(0x1c5)+_0x21861c+'\x20'+(_0x53ee77==='{}'?'':_0x53ee77),_0x22ba7a;})();module[a1010_0x18a39b(0x1c6)]=function(_0x223548){const _0x37a2af=a1010_0x18a39b;return winston['createLogger']({'transports':[new winston[(_0x37a2af(0x1c8))][(_0x37a2af(0x1c3))]({'name':util[_0x37a2af(0x1ca)](_0x37a2af(0x1c9),_0x223548,_0x37a2af(0x1b8)),'filename':filename(_0x223548,'error'),'level':_0x37a2af(0x1b8),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x223548)}),new winston[(_0x37a2af(0x1c8))][(_0x37a2af(0x1c3))]({'name':util[_0x37a2af(0x1ca)](_0x37a2af(0x1c9),_0x223548,_0x37a2af(0x1c2)),'filename':filename(_0x223548,'info'),'level':'info','maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x223548)}),new winston['transports'][(_0x37a2af(0x1b6))]({'level':cs[_0x37a2af(0x1c1)],'format':MotionFormatter(_0x223548)})]});}; \ No newline at end of file diff --git a/server/config/pm2/config.js b/server/config/pm2/config.js index 9d2cb06..07fe13a 100644 --- a/server/config/pm2/config.js +++ b/server/config/pm2/config.js @@ -1 +1 @@ -const a1011_0x489d=['express','agi','services/ami/index.js','join','services/xdr/index.js','isTest','email','ami','routing','appRoot','../config.service','services/routing/index.js','services/express/index.js','services/agi/index.js','xdr','getConfigService'];(function(_0x1c391d,_0x1ab11d){const _0x489df9=function(_0xa5a7d0){while(--_0xa5a7d0){_0x1c391d['push'](_0x1c391d['shift']());}};_0x489df9(++_0x1ab11d);}(a1011_0x489d,0xf7));const a1011_0xa5a7=function(_0x1c391d,_0x1ab11d){_0x1c391d=_0x1c391d-0xc1;let _0x489df9=a1011_0x489d[_0x1c391d];return _0x489df9;};const a1011_0x5256cb=a1011_0xa5a7;'use strict';const path=require('path'),cs=require(a1011_0x5256cb(0xc4))[a1011_0x5256cb(0xc9)]();let config={'apps':[{'wait_ready':!![],'name':a1011_0x5256cb(0xca),'script':path['join'](global[a1011_0x5256cb(0xc3)],'services/express/index.js')},{'name':a1011_0x5256cb(0xc1),'script':path[a1011_0x5256cb(0xcd)](global[a1011_0x5256cb(0xc3)],a1011_0x5256cb(0xcc))},{'name':'agi','script':path['join'](global[a1011_0x5256cb(0xc3)],a1011_0x5256cb(0xc7))},{'name':a1011_0x5256cb(0xd0),'script':path[a1011_0x5256cb(0xcd)](global[a1011_0x5256cb(0xc3)],'services/email/index.js')},{'name':'routing','script':path[a1011_0x5256cb(0xcd)](global[a1011_0x5256cb(0xc3)],a1011_0x5256cb(0xc5))},{'name':a1011_0x5256cb(0xc8),'script':path[a1011_0x5256cb(0xcd)](global[a1011_0x5256cb(0xc3)],a1011_0x5256cb(0xce))}]};cs[a1011_0x5256cb(0xcf)]&&(config={'apps':[{'wait_ready':!![],'name':a1011_0x5256cb(0xca),'script':path[a1011_0x5256cb(0xcd)](global[a1011_0x5256cb(0xc3)],a1011_0x5256cb(0xc6))},{'name':a1011_0x5256cb(0xcb),'script':path['join'](global[a1011_0x5256cb(0xc3)],a1011_0x5256cb(0xc7))},{'name':a1011_0x5256cb(0xd0),'script':path[a1011_0x5256cb(0xcd)](global[a1011_0x5256cb(0xc3)],'services/email/index.js')},{'name':a1011_0x5256cb(0xc2),'script':path[a1011_0x5256cb(0xcd)](global[a1011_0x5256cb(0xc3)],a1011_0x5256cb(0xc5))}]});module['exports']=config; \ No newline at end of file +const a1011_0x3187=['services/agi/index.js','services/ami/index.js','exports','xdr','express','services/routing/index.js','routing','services/email/index.js','services/xdr/index.js','../config.service','agi','getConfigService','join','email','appRoot'];(function(_0x2be7a8,_0x2223e9){const _0x3187de=function(_0x5d34de){while(--_0x5d34de){_0x2be7a8['push'](_0x2be7a8['shift']());}};_0x3187de(++_0x2223e9);}(a1011_0x3187,0x1a0));const a1011_0x5d34=function(_0x2be7a8,_0x2223e9){_0x2be7a8=_0x2be7a8-0x119;let _0x3187de=a1011_0x3187[_0x2be7a8];return _0x3187de;};const a1011_0x26a17c=a1011_0x5d34;'use strict';const path=require('path'),cs=require(a1011_0x26a17c(0x126))[a1011_0x26a17c(0x119)]();let config={'apps':[{'wait_ready':!![],'name':a1011_0x26a17c(0x121),'script':path[a1011_0x26a17c(0x11a)](global['appRoot'],'services/express/index.js')},{'name':'ami','script':path[a1011_0x26a17c(0x11a)](global[a1011_0x26a17c(0x11c)],a1011_0x26a17c(0x11e))},{'name':'agi','script':path[a1011_0x26a17c(0x11a)](global['appRoot'],'services/agi/index.js')},{'name':a1011_0x26a17c(0x11b),'script':path['join'](global[a1011_0x26a17c(0x11c)],a1011_0x26a17c(0x124))},{'name':a1011_0x26a17c(0x123),'script':path[a1011_0x26a17c(0x11a)](global[a1011_0x26a17c(0x11c)],a1011_0x26a17c(0x122))},{'name':a1011_0x26a17c(0x120),'script':path[a1011_0x26a17c(0x11a)](global['appRoot'],a1011_0x26a17c(0x125))}]};cs['isTest']&&(config={'apps':[{'wait_ready':!![],'name':a1011_0x26a17c(0x121),'script':path[a1011_0x26a17c(0x11a)](global[a1011_0x26a17c(0x11c)],'services/express/index.js')},{'name':a1011_0x26a17c(0x127),'script':path[a1011_0x26a17c(0x11a)](global[a1011_0x26a17c(0x11c)],a1011_0x26a17c(0x11d))},{'name':a1011_0x26a17c(0x11b),'script':path[a1011_0x26a17c(0x11a)](global['appRoot'],a1011_0x26a17c(0x124))},{'name':'routing','script':path['join'](global[a1011_0x26a17c(0x11c)],a1011_0x26a17c(0x122))}]});module[a1011_0x26a17c(0x11f)]=config; \ No newline at end of file diff --git a/server/config/pm2/index.js b/server/config/pm2/index.js index d48a109..82dfe52 100644 --- a/server/config/pm2/index.js +++ b/server/config/pm2/index.js @@ -1 +1 @@ -const a1012_0x4af5=['node_args','then','isTest','nodeArgs','--inspect','environment','list','stop','saved','start','debug','../config.service','delete','connected','disconnect','isProduction','connect','interpreterArgs','Stopped\x20and\x20Deleted','Stopped','describe','restart','dump','interpreter','vscode_debugger','interpreter_args'];(function(_0x45ec23,_0x5f1daa){const _0x4af50b=function(_0x1256f4){while(--_0x1256f4){_0x45ec23['push'](_0x45ec23['shift']());}};_0x4af50b(++_0x5f1daa);}(a1012_0x4af5,0xfa));const a1012_0x1256=function(_0x45ec23,_0x5f1daa){_0x45ec23=_0x45ec23-0x1b6;let _0x4af50b=a1012_0x4af5[_0x45ec23];return _0x4af50b;};const a1012_0x350421=a1012_0x1256;'use strict';const pm2=require('pm2'),cs=require(a1012_0x350421(0x1cb))['getConfigService']();function connect(){return new Promise(function(_0x461ce0,_0x2a5c9f){const _0x44a0f3=a1012_0x1256;return pm2[_0x44a0f3(0x1b6)](function(_0x57e5cc){const _0xe45035=_0x44a0f3;_0x57e5cc?_0x2a5c9f(_0x57e5cc):_0x461ce0(_0xe45035(0x1cd));});});}exports['start']=function(_0x50f784){const _0x53200d=a1012_0x350421;return!(cs[_0x53200d(0x1cf)]||cs[_0x53200d(0x1c2)]||cs[_0x53200d(0x1c5)]===_0x53200d(0x1be))&&(_0x50f784[_0x53200d(0x1bd)]='node',_0x50f784[_0x53200d(0x1bf)]=['--inspect'],_0x50f784[_0x53200d(0x1c0)]=[_0x53200d(0x1c4)],_0x50f784[_0x53200d(0x1b7)]=[_0x53200d(0x1c4)],_0x50f784[_0x53200d(0x1c3)]=[_0x53200d(0x1c4)]),connect()[_0x53200d(0x1c1)](function(){return new Promise(function(_0x5d9437,_0x1add09){const _0x599272=a1012_0x1256;return pm2[_0x599272(0x1c9)](_0x50f784,function(_0x166cbc,_0x11d07d){const _0x106854=_0x599272;_0x166cbc?_0x1add09(_0x166cbc):(pm2[_0x106854(0x1ce)](),_0x5d9437(_0x11d07d));});});});},exports['stop']=function(_0x2f9ac4){const _0x4d8aae=a1012_0x350421;return connect()[_0x4d8aae(0x1c1)](function(){return new Promise(function(_0x4f4197,_0x25cd0e){const _0x37564b=a1012_0x1256;return pm2[_0x37564b(0x1c7)](_0x2f9ac4,function(_0x3d6e63,_0x130c4f){const _0x477f75=_0x37564b;_0x3d6e63?_0x25cd0e(_0x3d6e63):(console[_0x477f75(0x1ca)](_0x477f75(0x1b9),_0x2f9ac4),_0x4f4197(_0x130c4f));});});});},exports[a1012_0x350421(0x1bb)]=function(_0x177bcb){const _0x4a9113=a1012_0x350421;return connect()[_0x4a9113(0x1c1)](function(){return new Promise(function(_0xb010ea,_0x1f97c4){const _0x2b5e2b=a1012_0x1256;return pm2[_0x2b5e2b(0x1bb)](_0x177bcb,function(_0x15dddc,_0x189c59){_0x15dddc?_0x1f97c4(_0x15dddc):(console['debug']('Restarted',_0x177bcb),_0xb010ea(_0x189c59));});});});},exports[a1012_0x350421(0x1c6)]=function(){const _0x3246a0=a1012_0x350421;return connect()[_0x3246a0(0x1c1)](function(){return new Promise(function(_0x358480,_0x395571){const _0x5068d0=a1012_0x1256;return pm2[_0x5068d0(0x1c6)](function(_0x2bbe30,_0x8834ee){_0x2bbe30?_0x395571(_0x2bbe30):_0x358480(_0x8834ee);});});});},exports[a1012_0x350421(0x1ba)]=function(_0x1697f6){return connect()['then'](function(){return new Promise(function(_0x2f47cc,_0xd28cae){const _0x257645=a1012_0x1256;return pm2[_0x257645(0x1ba)](_0x1697f6,function(_0x196246,_0x5d137c){_0x196246?_0xd28cae(_0x196246):_0x2f47cc(_0x5d137c);});});});},exports[a1012_0x350421(0x1cc)]=function(_0x2a6276){const _0x4527aa=a1012_0x350421;return connect()[_0x4527aa(0x1c1)](function(){return new Promise(function(_0x112734,_0x357ddc){const _0x2d73cf=a1012_0x1256;return pm2[_0x2d73cf(0x1cc)](_0x2a6276,function(_0x354a45,_0x53ecc1){const _0x4d3309=_0x2d73cf;_0x354a45?_0x357ddc(_0x354a45):(console['debug'](_0x4d3309(0x1b8),_0x2a6276),_0x112734(_0x53ecc1));});});});},exports[a1012_0x350421(0x1bc)]=function(){const _0x32561e=a1012_0x350421;return connect()[_0x32561e(0x1c1)](function(){return new Promise(function(_0x47e908,_0x4a2cad){const _0x3fd48b=a1012_0x1256;return pm2[_0x3fd48b(0x1bc)](function(_0x3a2736){const _0x169094=_0x3fd48b;_0x3a2736?_0x4a2cad(_0x3a2736):_0x47e908(_0x169094(0x1c8));});});});}; \ No newline at end of file +const a1012_0x4e0d=['isProduction','then','interpreterArgs','debug','restart','Restarted','disconnect','interpreter','connected','dump','../config.service','Stopped','vscode_debugger','pm2','nodeArgs','--inspect','start','node_args','list','delete','stop','getConfigService','interpreter_args','saved','describe'];(function(_0x3e9031,_0x4dfcfd){const _0x4e0d06=function(_0x398956){while(--_0x398956){_0x3e9031['push'](_0x3e9031['shift']());}};_0x4e0d06(++_0x4dfcfd);}(a1012_0x4e0d,0x1db));const a1012_0x3989=function(_0x3e9031,_0x4dfcfd){_0x3e9031=_0x3e9031-0x154;let _0x4e0d06=a1012_0x4e0d[_0x3e9031];return _0x4e0d06;};const a1012_0x11a3e2=a1012_0x3989;'use strict';const pm2=require(a1012_0x11a3e2(0x161)),cs=require(a1012_0x11a3e2(0x15e))[a1012_0x11a3e2(0x169)]();function connect(){return new Promise(function(_0x5af5ae,_0x5db898){return pm2['connect'](function(_0x158f03){const _0x44de0a=a1012_0x3989;_0x158f03?_0x5db898(_0x158f03):_0x5af5ae(_0x44de0a(0x15c));});});}exports[a1012_0x11a3e2(0x164)]=function(_0x9363aa){const _0x360aa8=a1012_0x11a3e2;return!(cs[_0x360aa8(0x154)]||cs['isTest']||cs['environment']===_0x360aa8(0x160))&&(_0x9363aa[_0x360aa8(0x15b)]='node',_0x9363aa[_0x360aa8(0x16a)]=[_0x360aa8(0x163)],_0x9363aa[_0x360aa8(0x165)]=[_0x360aa8(0x163)],_0x9363aa[_0x360aa8(0x156)]=['--inspect'],_0x9363aa[_0x360aa8(0x162)]=[_0x360aa8(0x163)]),connect()[_0x360aa8(0x155)](function(){return new Promise(function(_0x2449c8,_0x2639ad){const _0x3de902=a1012_0x3989;return pm2[_0x3de902(0x164)](_0x9363aa,function(_0x10a047,_0x201e43){const _0x22fe86=_0x3de902;_0x10a047?_0x2639ad(_0x10a047):(pm2[_0x22fe86(0x15a)](),_0x2449c8(_0x201e43));});});});},exports['stop']=function(_0x28998e){const _0x390ec5=a1012_0x11a3e2;return connect()[_0x390ec5(0x155)](function(){return new Promise(function(_0x49886b,_0x44f0fe){const _0x549532=a1012_0x3989;return pm2[_0x549532(0x168)](_0x28998e,function(_0x3a7309,_0x3dba4e){const _0xc5b57b=_0x549532;_0x3a7309?_0x44f0fe(_0x3a7309):(console[_0xc5b57b(0x157)](_0xc5b57b(0x15f),_0x28998e),_0x49886b(_0x3dba4e));});});});},exports[a1012_0x11a3e2(0x158)]=function(_0x5e8b4d){const _0x4fa963=a1012_0x11a3e2;return connect()[_0x4fa963(0x155)](function(){return new Promise(function(_0x5b248a,_0x337aea){const _0x45cafa=a1012_0x3989;return pm2[_0x45cafa(0x158)](_0x5e8b4d,function(_0x212dc9,_0x16d9d5){const _0x214d90=_0x45cafa;_0x212dc9?_0x337aea(_0x212dc9):(console[_0x214d90(0x157)](_0x214d90(0x159),_0x5e8b4d),_0x5b248a(_0x16d9d5));});});});},exports[a1012_0x11a3e2(0x166)]=function(){return connect()['then'](function(){return new Promise(function(_0x3d312a,_0x5eedd8){const _0x150538=a1012_0x3989;return pm2[_0x150538(0x166)](function(_0x2956d9,_0x16976e){_0x2956d9?_0x5eedd8(_0x2956d9):_0x3d312a(_0x16976e);});});});},exports[a1012_0x11a3e2(0x16c)]=function(_0x20c1e7){const _0x22ea2c=a1012_0x11a3e2;return connect()[_0x22ea2c(0x155)](function(){return new Promise(function(_0x63ccd1,_0x1e8556){return pm2['describe'](_0x20c1e7,function(_0x27c4e0,_0x50b7c6){_0x27c4e0?_0x1e8556(_0x27c4e0):_0x63ccd1(_0x50b7c6);});});});},exports['delete']=function(_0x3eae37){const _0x2e7f54=a1012_0x11a3e2;return connect()[_0x2e7f54(0x155)](function(){return new Promise(function(_0x30b88d,_0xdedb97){const _0x42d2a0=a1012_0x3989;return pm2[_0x42d2a0(0x167)](_0x3eae37,function(_0x219825,_0x185b3d){const _0x27f6e7=_0x42d2a0;_0x219825?_0xdedb97(_0x219825):(console[_0x27f6e7(0x157)]('Stopped\x20and\x20Deleted',_0x3eae37),_0x30b88d(_0x185b3d));});});});},exports[a1012_0x11a3e2(0x15d)]=function(){const _0x5ce4b7=a1012_0x11a3e2;return connect()[_0x5ce4b7(0x155)](function(){return new Promise(function(_0x2fc3ca,_0x297a1f){const _0xb90894=a1012_0x3989;return pm2[_0xb90894(0x15d)](function(_0x1b2cf8){const _0x1dafd3=_0xb90894;_0x1b2cf8?_0x297a1f(_0x1b2cf8):_0x2fc3ca(_0x1dafd3(0x16b));});});});}; \ No newline at end of file diff --git a/server/config/schedule/chat.js b/server/config/schedule/chat.js index b4615f1..4d7fc30 100644 --- a/server/config/schedule/chat.js +++ b/server/config/schedule/chat.js @@ -1 +1 @@ -const a1013_0x35f7=['catch','[CHAT]\x20Error\x20closing\x20interactions','emit','lodash','timeout','info','error','chatInteraction:update','then','Setting','length','inspect','lastMsgAt','sequelize','[CHAT]\x20Sending\x20updates\x20for\x20interactions:','system','../../mysqldb','minutes','ChatInteraction','../../rediscache','join','chatTimeout','findOne','map','subtract'];(function(_0x12a1cc,_0x255869){const _0x35f747=function(_0x2513ee){while(--_0x2513ee){_0x12a1cc['push'](_0x12a1cc['shift']());}};_0x35f747(++_0x255869);}(a1013_0x35f7,0x87));const a1013_0x2513=function(_0x12a1cc,_0x255869){_0x12a1cc=_0x12a1cc-0xad;let _0x35f747=a1013_0x35f7[_0x12a1cc];return _0x35f747;};const a1013_0x4f1ae4=a1013_0x2513;'use strict';const _=require(a1013_0x4f1ae4(0xbf)),moment=require('moment'),util=require('util'),logger=require('../logger')('schedule'),{Op}=require(a1013_0x4f1ae4(0xb0)),{db}=require(a1013_0x4f1ae4(0xb3)),{getSocket}=require(a1013_0x4f1ae4(0xb6)),io=getSocket();function closeInteractions(){const _0x2c3b2f=a1013_0x4f1ae4;let _0x28526b=0x0,_0xc785f6=[];return db[_0x2c3b2f(0xc5)][_0x2c3b2f(0xb9)]({'raw':!![],'attributes':['id','chatTimeout'],'where':{'id':0x1}})[_0x2c3b2f(0xc4)](function(_0x3704bd){const _0x5758b8=_0x2c3b2f;return _0x28526b=_0x3704bd[_0x5758b8(0xb8)],_0x28526b?db[_0x5758b8(0xb5)]['findAll']({'raw':!![],'attributes':['id',_0x5758b8(0xaf)],'where':{'closed':![],'lastMsgAt':{[Op['lt']]:moment()[_0x5758b8(0xbb)](_0x3704bd['chatTimeout'],_0x5758b8(0xb4))}}}):[];})[_0x2c3b2f(0xc4)](function(_0x45de00){const _0x3b9449=_0x2c3b2f;if(_0x45de00&&_0x45de00['length'])return _0xc785f6=_[_0x3b9449(0xba)](_0x45de00||[],'id'),logger[_0x3b9449(0xc1)]('[CHAT]\x20Interactions\x20to\x20close:',_0xc785f6[_0x3b9449(0xb7)]()),db[_0x3b9449(0xb5)]['update']({'closeReason':_0x3b9449(0xb2),'disposition':_0x3b9449(0xc0),'closed':!![],'closedAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss')},{'where':{'id':_0xc785f6}});})[_0x2c3b2f(0xc4)](function(){const _0x1bac7b=_0x2c3b2f;if(_0xc785f6&&_0xc785f6[_0x1bac7b(0xad)]){logger[_0x1bac7b(0xc1)](_0x1bac7b(0xb1),_0xc785f6[_0x1bac7b(0xb7)]());for(let _0x36092b=0x0;_0x36092b<_0xc785f6[_0x1bac7b(0xad)];_0x36092b++){io[_0x1bac7b(0xbe)](_0x1bac7b(0xc3),{'id':_0xc785f6[_0x36092b],'closed':!![]});}}})[_0x2c3b2f(0xbc)](function(_0x43dc00){const _0x1bdc55=_0x2c3b2f;logger[_0x1bdc55(0xc2)](_0x1bdc55(0xbd),_0x43dc00?util[_0x1bdc55(0xae)](_0x43dc00,{'showHidden':![],'depth':null}):'');});}function start(){return setInterval(function(){return closeInteractions();},0x3c*0x3e8),closeInteractions();}exports['start']=start; \ No newline at end of file +const a1013_0x5a53=['start','chatInteraction:update','length','../logger','info','join','catch','lastMsgAt','sequelize','error','../../rediscache','[CHAT]\x20Error\x20closing\x20interactions','chatTimeout','then','ChatInteraction','inspect','util','lodash','[CHAT]\x20Sending\x20updates\x20for\x20interactions:','emit','timeout','findAll','YYYY-MM-DD\x20HH:mm:ss','moment','../../mysqldb'];(function(_0x159eea,_0x1aa4eb){const _0x5a53cb=function(_0x261f2a){while(--_0x261f2a){_0x159eea['push'](_0x159eea['shift']());}};_0x5a53cb(++_0x1aa4eb);}(a1013_0x5a53,0x187));const a1013_0x261f=function(_0x159eea,_0x1aa4eb){_0x159eea=_0x159eea-0xb7;let _0x5a53cb=a1013_0x5a53[_0x159eea];return _0x5a53cb;};const a1013_0x1465ab=a1013_0x261f;'use strict';const _=require(a1013_0x1465ab(0xb8)),moment=require(a1013_0x1465ab(0xbe)),util=require(a1013_0x1465ab(0xb7)),logger=require(a1013_0x1465ab(0xc3))('schedule'),{Op}=require(a1013_0x1465ab(0xc8)),{db}=require(a1013_0x1465ab(0xbf)),{getSocket}=require(a1013_0x1465ab(0xca)),io=getSocket();function closeInteractions(){const _0x5d72de=a1013_0x1465ab;let _0x422a2b=0x0,_0x17e2c3=[];return db['Setting']['findOne']({'raw':!![],'attributes':['id',_0x5d72de(0xcc)],'where':{'id':0x1}})[_0x5d72de(0xcd)](function(_0x43232e){const _0x181a10=_0x5d72de;return _0x422a2b=_0x43232e[_0x181a10(0xcc)],_0x422a2b?db[_0x181a10(0xce)][_0x181a10(0xbc)]({'raw':!![],'attributes':['id',_0x181a10(0xc7)],'where':{'closed':![],'lastMsgAt':{[Op['lt']]:moment()['subtract'](_0x43232e[_0x181a10(0xcc)],'minutes')}}}):[];})[_0x5d72de(0xcd)](function(_0x46e44a){const _0x19b657=_0x5d72de;if(_0x46e44a&&_0x46e44a[_0x19b657(0xc2)])return _0x17e2c3=_['map'](_0x46e44a||[],'id'),logger[_0x19b657(0xc4)]('[CHAT]\x20Interactions\x20to\x20close:',_0x17e2c3[_0x19b657(0xc5)]()),db['ChatInteraction']['update']({'closeReason':'system','disposition':_0x19b657(0xbb),'closed':!![],'closedAt':moment()['format'](_0x19b657(0xbd))},{'where':{'id':_0x17e2c3}});})['then'](function(){const _0x4e208a=_0x5d72de;if(_0x17e2c3&&_0x17e2c3['length']){logger[_0x4e208a(0xc4)](_0x4e208a(0xb9),_0x17e2c3[_0x4e208a(0xc5)]());for(let _0x2aa920=0x0;_0x2aa920<_0x17e2c3[_0x4e208a(0xc2)];_0x2aa920++){io[_0x4e208a(0xba)](_0x4e208a(0xc1),{'id':_0x17e2c3[_0x2aa920],'closed':!![]});}}})[_0x5d72de(0xc6)](function(_0x14f186){const _0xa0338d=_0x5d72de;logger[_0xa0338d(0xc9)](_0xa0338d(0xcb),_0x14f186?util[_0xa0338d(0xcf)](_0x14f186,{'showHidden':![],'depth':null}):'');});}function start(){return setInterval(function(){return closeInteractions();},0x3c*0x3e8),closeInteractions();}exports[a1013_0x1465ab(0xc0)]=start; \ No newline at end of file diff --git a/server/config/schedule/index.js b/server/config/schedule/index.js index 6459968..7259f06 100644 --- a/server/config/schedule/index.js +++ b/server/config/schedule/index.js @@ -1 +1 @@ -const a1014_0x1de4=['cron','add','text','output','findAll','toString','stringify','status','lodash','message','difference','error\x20mail','host','bcc','join','email\x20sent','isBetween','format','subtractUnit','../../api/analyticDefaultReport/analyticDefaultReport.controller','empty\x20file,\x20email\x20not\x20sent','start','attachments','length','info','YYYY-MM-DD\x20HH:mm:ss','../../api/analyticCustomReport/analyticCustomReport.controller','cron-job-manager','DefaultReportId','update\x20cron','subtractNumber','name','service','scheduled','schedule','client','endAt','add\x20cron','email','port','Smtp','user','stop','extname','startAt','delete\x20cron','subtractUnit\x20null\x20or\x20undefined','pass','update','../../mysqldb','deleteJob','secure','stop\x20cron','savename','CustomReportId','request','active','moment','index','existsSync','util','error','keyBy','Sent','subtract','isNil','map','then','path','jobs','../logger','toRun','keys','exec\x20custom\x20report\x20id:%s','catch','jayson/promise','authentication','MailAccount','run','exists','run\x20job'];(function(_0x6c5ca9,_0x2ce83e){const _0x1de472=function(_0xd36b23){while(--_0xd36b23){_0x6c5ca9['push'](_0x6c5ca9['shift']());}};_0x1de472(++_0x2ce83e);}(a1014_0x1de4,0x9d));const a1014_0xd36b=function(_0x6c5ca9,_0x2ce83e){_0x6c5ca9=_0x6c5ca9-0xd2;let _0x1de472=a1014_0x1de4[_0x6c5ca9];return _0x1de472;};const a1014_0x41dc2a=a1014_0xd36b;'use strict';const fs=require('fs'),util=require(a1014_0x41dc2a(0x113)),path=require(a1014_0x41dc2a(0x11b)),_=require(a1014_0x41dc2a(0xdf)),moment=require(a1014_0x41dc2a(0x110)),CronJobManager=require(a1014_0x41dc2a(0xf2)),jayson=require(a1014_0x41dc2a(0x122)),logger=require(a1014_0x41dc2a(0x11d))(a1014_0x41dc2a(0xf9)),{db}=require(a1014_0x41dc2a(0x108)),analyticCustomReportController=require(a1014_0x41dc2a(0xf1)),analyticDefaultReportController=require(a1014_0x41dc2a(0xea)),client=jayson[a1014_0x41dc2a(0xfa)]['http']({'port':0x232b}),manager=new CronJobManager();function handleSendEmail(_0x8a0746,_0x558eff){return function(){const _0x59b9cc=a1014_0xd36b;logger[_0x59b9cc(0xef)]('Try\x20to\x20send\x20a\x20mail\x20to',_0x8a0746[_0x59b9cc(0xfd)]);let _0x30408d=!![];const _0x19a019={'tls':{'rejectUnauthorized':![]}};_0x8a0746[_0x59b9cc(0xd3)][_0x59b9cc(0xff)]['service']?_0x19a019[_0x59b9cc(0xf7)]=_0x8a0746[_0x59b9cc(0xd3)][_0x59b9cc(0xff)]['service']:(_0x19a019[_0x59b9cc(0xe3)]=_0x8a0746[_0x59b9cc(0xd3)]['Smtp'][_0x59b9cc(0xe3)],_0x19a019[_0x59b9cc(0xfe)]=_0x8a0746[_0x59b9cc(0xd3)][_0x59b9cc(0xff)][_0x59b9cc(0xfe)],_0x19a019[_0x59b9cc(0x10a)]=_0x8a0746[_0x59b9cc(0xd3)]['Smtp'][_0x59b9cc(0x10a)]);_0x8a0746[_0x59b9cc(0xd3)]['Smtp'][_0x59b9cc(0xd2)]&&(_0x19a019['auth']={'user':_0x8a0746[_0x59b9cc(0xd3)]['Smtp'][_0x59b9cc(0x100)],'pass':_0x8a0746[_0x59b9cc(0xd3)][_0x59b9cc(0xff)][_0x59b9cc(0x106)]});const _0x2bd9c4={'account':_0x19a019,'message':{'from':util[_0x59b9cc(0xe8)]('\x22%s\x22\x20<%s>',_0x8a0746[_0x59b9cc(0xd3)]['name'],_0x8a0746[_0x59b9cc(0xd3)][_0x59b9cc(0xfd)]||_0x8a0746['MailAccount']['Smtp'][_0x59b9cc(0x100)]),'to':_0x8a0746[_0x59b9cc(0xfd)],'cc':_0x8a0746['cc'],'bcc':_0x8a0746[_0x59b9cc(0xe4)],'subject':util[_0x59b9cc(0xe8)]('Report\x20%s\x20last\x20%s\x20%s',_0x558eff['name'],_0x8a0746[_0x59b9cc(0xf5)],_0x8a0746[_0x59b9cc(0xe9)])}},_0x2b5f06=path[_0x59b9cc(0xe5)](__dirname,'../../files/reports'),_0x5802a5=_0x558eff[_0x59b9cc(0x10c)],_0x5cf3b7=util[_0x59b9cc(0xe8)]('%s.%s',path['basename'](_0x558eff['savename'],path[_0x59b9cc(0x102)](_0x558eff[_0x59b9cc(0x10c)])),'zip'),_0x442bbc=path[_0x59b9cc(0xe5)](_0x2b5f06,_0x5802a5),_0x1e4fd0=path[_0x59b9cc(0xe5)](_0x2b5f06,_0x5cf3b7);if(fs[_0x59b9cc(0x112)](_0x442bbc))_0x558eff[_0x59b9cc(0xde)]=_0x59b9cc(0x116),_0x2bd9c4[_0x59b9cc(0xe0)][_0x59b9cc(0xed)]=[{'filename':_0x5802a5,'path':_0x442bbc}],_0x2bd9c4[_0x59b9cc(0xe0)][_0x59b9cc(0xd9)]=util[_0x59b9cc(0xe8)]('Info\x20report:\x0a%s\x0aPlease\x20see\x20the\x20attachments\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20it.\x0a\x0a',JSON[_0x59b9cc(0xdd)](_0x558eff,null,0x2));else fs[_0x59b9cc(0x112)](_0x1e4fd0)?(_0x558eff['status']=_0x59b9cc(0x116),_0x2bd9c4[_0x59b9cc(0xe0)]['attachments']=[{'filename':_0x5cf3b7,'path':_0x1e4fd0}]):(_0x2bd9c4[_0x59b9cc(0xe0)][_0x59b9cc(0xd9)]='Report\x20empty\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20this\x20email.\x0a\x0a',!_0x8a0746['sendIfEmpty']&&(_0x30408d=![],logger['info'](_0x59b9cc(0xeb))));if(_0x30408d)return client[_0x59b9cc(0x10e)]('SendMail',_0x2bd9c4)['then'](function(_0x53cfa3){const _0x2c0bd6=_0x59b9cc;if(_0x53cfa3['error'])return logger[_0x2c0bd6(0x114)](_0x2c0bd6(0xe2),JSON['stringify'](_0x53cfa3));return logger[_0x2c0bd6(0xef)](_0x2c0bd6(0xe6));})[_0x59b9cc(0x121)](function(_0x464d69){const _0x378c3f=_0x59b9cc;return logger[_0x378c3f(0x114)](_0x378c3f(0xe2),JSON[_0x378c3f(0xdd)](_0x464d69));});};}function handleError(){return function(_0x17a7e3){const _0x5171dc=a1014_0xd36b;return logger[_0x5171dc(0x114)](JSON[_0x5171dc(0xdd)](_0x17a7e3));};}function handleResult(_0x2bad78){return function(_0x5f23a5){const _0x5944c9=a1014_0xd36b;logger['info']('data',JSON[_0x5944c9(0xdd)](_0x5f23a5)),_0x2bad78[_0x5944c9(0xd3)]&&_0x2bad78[_0x5944c9(0xd3)][_0x5944c9(0xff)]&&!_[_0x5944c9(0x118)](_0x2bad78[_0x5944c9(0xfd)])&&setTimeout(handleSendEmail(_0x2bad78,_0x5f23a5),0x3c*0x3e8);};}function handleJob(_0xb7bb37){return function(){const _0x1b696f=a1014_0xd36b;try{if(_[_0x1b696f(0x118)](_0xb7bb37[_0x1b696f(0xf5)]))return logger[_0x1b696f(0xef)]('subtractNumber\x20null\x20or\x20undefined');if(_[_0x1b696f(0x118)](_0xb7bb37[_0x1b696f(0xe9)]))return logger[_0x1b696f(0xef)](_0x1b696f(0x105));const _0x396bfe={'startDate':moment()[_0x1b696f(0x117)](_0xb7bb37[_0x1b696f(0xf5)],_0xb7bb37[_0x1b696f(0xe9)])[_0x1b696f(0xe8)](_0x1b696f(0xf0)),'endDate':moment()['format'](_0x1b696f(0xf0)),'type':_0x1b696f(0xf8),'output':_0xb7bb37[_0x1b696f(0xda)],'name':_0xb7bb37[_0x1b696f(0xf6)]};if(!_[_0x1b696f(0x118)](_0xb7bb37[_0x1b696f(0xf3)]))return logger[_0x1b696f(0xef)]('exec\x20defaul\x20report\x20id:%s',_0xb7bb37[_0x1b696f(0xf3)]),analyticDefaultReportController['runReport']({'id':_0xb7bb37['DefaultReportId']},_0x396bfe)['then'](handleResult(_0xb7bb37))['catch'](handleError());if(!_[_0x1b696f(0x118)](_0xb7bb37[_0x1b696f(0x10d)]))return logger['info'](_0x1b696f(0x120),_0xb7bb37[_0x1b696f(0x10d)]),analyticCustomReportController['runReport']({'id':_0xb7bb37[_0x1b696f(0x10d)]},_0x396bfe)[_0x1b696f(0x11a)](handleResult(_0xb7bb37))[_0x1b696f(0x121)](handleError());}catch(_0x52eaa2){logger[_0x1b696f(0x114)](JSON[_0x1b696f(0xdd)](_0x52eaa2));}return logger[_0x1b696f(0xef)]('no\x20report\x20id');};}function getJobs(_0x194814){const _0x1e3bed=a1014_0x41dc2a,_0x24ae87={};return _0x194814&&(_0x24ae87['id']=_0x194814),db['Schedule'][_0x1e3bed(0xdb)]({'where':_0x24ae87,'include':[{'model':db['MailAccount'],'attributes':['id',_0x1e3bed(0xf6),_0x1e3bed(0xfd)],'include':[{'model':db['MailServerOut'],'as':_0x1e3bed(0xff)}]}]})['then'](function(_0x36bea0){const _0xd3a132=_0x1e3bed,_0x114b0=_[_0xd3a132(0x11f)](manager[_0xd3a132(0x11c)]),_0x149a9a=_[_0xd3a132(0x119)](_0x36bea0,function(_0x582cf2){const _0x13bde9=_0xd3a132;return _0x582cf2['id'][_0x13bde9(0xdc)]();}),_0x222854=_[_0xd3a132(0x115)](_0x36bea0,function(_0x2289b6){const _0x345ecd=_0xd3a132;return _0x2289b6['id'][_0x345ecd(0xdc)]();}),_0x265927=_0x194814?_0x149a9a:_[_0xd3a132(0xe1)](_0x149a9a,_0x114b0),_0x170809=_['intersection'](_0x149a9a,_0x114b0),_0x1093ea=_[_0xd3a132(0xe1)](_0x114b0,_0x149a9a);let _0x14d4bb,_0xba31ef;for(_0x14d4bb=0x0;_0x14d4bb<_0x1093ea['length']&&!_0x194814;_0x14d4bb+=0x1){_0xba31ef=_0x1093ea[_0x14d4bb]['toString'](),manager[_0xd3a132(0xd5)](_0xba31ef)&&(manager[_0xd3a132(0x101)](_0xba31ef),manager['deleteJob'](_0xba31ef),logger[_0xd3a132(0xef)](_0xd3a132(0x104),_0xba31ef));}logger[_0xd3a132(0xef)](_0xd3a132(0x11e),JSON['stringify'](_0x265927));for(_0x14d4bb=0x0;_0x14d4bb<_0x265927[_0xd3a132(0xee)];_0x14d4bb+=0x1){_0xba31ef=_0x265927[_0x14d4bb][_0xd3a132(0xdc)](),logger['info'](_0xd3a132(0x111),_0xba31ef);if(_0x194814)logger[_0xd3a132(0xef)]('my\x20id',_0x194814),logger[_0xd3a132(0xef)](JSON[_0xd3a132(0xdd)](_0x222854[_0xba31ef])),Promise['resolve']()[_0xd3a132(0x11a)](handleJob(_0x222854[_0xba31ef])),logger['info'](_0xd3a132(0xd6),_0x222854[_0xba31ef]['name'],_0x222854[_0xba31ef]['cron']);else{if(_0x222854[_0xba31ef][_0xd3a132(0xd7)]&&_0x222854[_0xba31ef][_0xd3a132(0x10f)]&&moment()[_0xd3a132(0xe7)](_0x222854[_0xba31ef][_0xd3a132(0x103)],_0x222854[_0xba31ef][_0xd3a132(0xfb)]))manager[_0xd3a132(0xd8)](_0xba31ef,_0x222854[_0xba31ef]['cron'],handleJob(_0x222854[_0xba31ef])),manager[_0xd3a132(0xec)](_0xba31ef),logger['info'](_0xd3a132(0xfc),_0x222854[_0xba31ef][_0xd3a132(0xf6)],_0x222854[_0xba31ef]['cron']);else manager['exists'](_0xba31ef)&&(manager[_0xd3a132(0x101)](_0xba31ef),manager[_0xd3a132(0x109)](_0xba31ef),logger['info']('stop\x20cron',_0x222854[_0xba31ef]['name'],_0x222854[_0xba31ef][_0xd3a132(0xd7)]));}}for(_0x14d4bb=0x0,_0xba31ef;_0x14d4bb<_0x170809[_0xd3a132(0xee)]&&!_0x194814;_0x14d4bb+=0x1){_0xba31ef=_0x170809[_0x14d4bb]['toString'](),manager['exists'](_0xba31ef)&&(_0x222854[_0xba31ef][_0xd3a132(0xd7)]&&_0x222854[_0xba31ef][_0xd3a132(0x10f)]&&moment()[_0xd3a132(0xe7)](_0x222854[_0xba31ef][_0xd3a132(0x103)],_0x222854[_0xba31ef][_0xd3a132(0xfb)])?(manager[_0xd3a132(0x107)](_0xba31ef,_0x222854[_0xba31ef][_0xd3a132(0xd7)],handleJob(_0x222854[_0xba31ef])),logger[_0xd3a132(0xef)](_0xd3a132(0xf4),_0x222854[_0xba31ef][_0xd3a132(0xf6)],_0x222854[_0xba31ef][_0xd3a132(0xd7)])):(manager[_0xd3a132(0x101)](_0xba31ef),manager[_0xd3a132(0x109)](_0xba31ef),logger['info'](_0xd3a132(0x10b),_0x222854[_0xba31ef][_0xd3a132(0xf6)],_0x222854[_0xba31ef][_0xd3a132(0xd7)])));}})[_0x1e3bed(0x121)](function(_0x4b7ed8){const _0x335bfa=_0x1e3bed;logger[_0x335bfa(0x114)](JSON['stringify'](_0x4b7ed8));});}exports[a1014_0x41dc2a(0xd4)]=function(_0x44dfa5){return getJobs(_0x44dfa5);},exports['start']=function(){return setInterval(function(){return getJobs();},0x3c*0x3e8),getJobs();}; \ No newline at end of file +const a1014_0x3168=['findAll','intersection','keys','http','toString','path','subtractUnit\x20null\x20or\x20undefined','existsSync','YYYY-MM-DD\x20HH:mm:ss','../../files/reports','map','sendIfEmpty','text','deleteJob','../../api/analyticCustomReport/analyticCustomReport.controller','update\x20cron','email\x20sent','then','message','../../api/analyticDefaultReport/analyticDefaultReport.controller','add','port','empty\x20file,\x20email\x20not\x20sent','cron','Report\x20%s\x20last\x20%s\x20%s','subtractNumber\x20null\x20or\x20undefined','active','length','\x22%s\x22\x20<%s>','auth','format','delete\x20cron','error\x20mail','stringify','../logger','output','Sent','runReport','stop','MailServerOut','pass','error','moment','update','exec\x20defaul\x20report\x20id:%s','attachments','isBetween','join','info','startAt','run','jobs','name','client','status','isNil','stop\x20cron','subtractUnit','bcc','savename','exec\x20custom\x20report\x20id:%s','keyBy','email','user','subtract','no\x20report\x20id','extname','zip','subtractNumber','Schedule','exists','difference','index','my\x20id','start','../../mysqldb','host','MailAccount','CustomReportId','DefaultReportId','catch','run\x20job','service','Smtp','basename'];(function(_0x3f8e4d,_0x52ab80){const _0x3168d4=function(_0x13fa59){while(--_0x13fa59){_0x3f8e4d['push'](_0x3f8e4d['shift']());}};_0x3168d4(++_0x52ab80);}(a1014_0x3168,0x7a));const a1014_0x13fa=function(_0x3f8e4d,_0x52ab80){_0x3f8e4d=_0x3f8e4d-0x1ec;let _0x3168d4=a1014_0x3168[_0x3f8e4d];return _0x3168d4;};const a1014_0x2b4a26=a1014_0x13fa;'use strict';const fs=require('fs'),util=require('util'),path=require(a1014_0x2b4a26(0x221)),_=require('lodash'),moment=require(a1014_0x2b4a26(0x1f1)),CronJobManager=require('cron-job-manager'),jayson=require('jayson/promise'),logger=require(a1014_0x2b4a26(0x23e))('schedule'),{db}=require(a1014_0x2b4a26(0x212)),analyticCustomReportController=require(a1014_0x2b4a26(0x22a)),analyticDefaultReportController=require(a1014_0x2b4a26(0x22f)),client=jayson[a1014_0x2b4a26(0x1fc)][a1014_0x2b4a26(0x21f)]({'port':0x232b}),manager=new CronJobManager();function handleSendEmail(_0x187ff3,_0x32b135){return function(){const _0x451aaf=a1014_0x13fa;logger[_0x451aaf(0x1f7)]('Try\x20to\x20send\x20a\x20mail\x20to',_0x187ff3[_0x451aaf(0x205)]);let _0xb0938d=!![];const _0x1bf2ae={'tls':{'rejectUnauthorized':![]}};_0x187ff3[_0x451aaf(0x214)][_0x451aaf(0x21a)][_0x451aaf(0x219)]?_0x1bf2ae[_0x451aaf(0x219)]=_0x187ff3['MailAccount']['Smtp']['service']:(_0x1bf2ae[_0x451aaf(0x213)]=_0x187ff3[_0x451aaf(0x214)][_0x451aaf(0x21a)]['host'],_0x1bf2ae[_0x451aaf(0x231)]=_0x187ff3[_0x451aaf(0x214)][_0x451aaf(0x21a)][_0x451aaf(0x231)],_0x1bf2ae['secure']=_0x187ff3['MailAccount']['Smtp']['secure']);_0x187ff3['MailAccount'][_0x451aaf(0x21a)]['authentication']&&(_0x1bf2ae[_0x451aaf(0x239)]={'user':_0x187ff3[_0x451aaf(0x214)][_0x451aaf(0x21a)]['user'],'pass':_0x187ff3[_0x451aaf(0x214)][_0x451aaf(0x21a)][_0x451aaf(0x1ef)]});const _0x1f8a42={'account':_0x1bf2ae,'message':{'from':util[_0x451aaf(0x23a)](_0x451aaf(0x238),_0x187ff3['MailAccount'][_0x451aaf(0x1fb)],_0x187ff3[_0x451aaf(0x214)]['email']||_0x187ff3[_0x451aaf(0x214)][_0x451aaf(0x21a)][_0x451aaf(0x206)]),'to':_0x187ff3[_0x451aaf(0x205)],'cc':_0x187ff3['cc'],'bcc':_0x187ff3[_0x451aaf(0x201)],'subject':util[_0x451aaf(0x23a)](_0x451aaf(0x234),_0x32b135[_0x451aaf(0x1fb)],_0x187ff3[_0x451aaf(0x20b)],_0x187ff3['subtractUnit'])}},_0xdfa286=path[_0x451aaf(0x1f6)](__dirname,_0x451aaf(0x225)),_0x55c678=_0x32b135['savename'],_0x4568c8=util[_0x451aaf(0x23a)]('%s.%s',path[_0x451aaf(0x21b)](_0x32b135['savename'],path[_0x451aaf(0x209)](_0x32b135[_0x451aaf(0x202)])),_0x451aaf(0x20a)),_0x1f57cc=path[_0x451aaf(0x1f6)](_0xdfa286,_0x55c678),_0x42801e=path[_0x451aaf(0x1f6)](_0xdfa286,_0x4568c8);if(fs[_0x451aaf(0x223)](_0x1f57cc))_0x32b135[_0x451aaf(0x1fd)]=_0x451aaf(0x240),_0x1f8a42[_0x451aaf(0x22e)][_0x451aaf(0x1f4)]=[{'filename':_0x55c678,'path':_0x1f57cc}],_0x1f8a42[_0x451aaf(0x22e)][_0x451aaf(0x228)]=util[_0x451aaf(0x23a)]('Info\x20report:\x0a%s\x0aPlease\x20see\x20the\x20attachments\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20it.\x0a\x0a',JSON[_0x451aaf(0x23d)](_0x32b135,null,0x2));else fs[_0x451aaf(0x223)](_0x42801e)?(_0x32b135[_0x451aaf(0x1fd)]=_0x451aaf(0x240),_0x1f8a42['message'][_0x451aaf(0x1f4)]=[{'filename':_0x4568c8,'path':_0x42801e}]):(_0x1f8a42[_0x451aaf(0x22e)]['text']='Report\x20empty\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20this\x20email.\x0a\x0a',!_0x187ff3[_0x451aaf(0x227)]&&(_0xb0938d=![],logger[_0x451aaf(0x1f7)](_0x451aaf(0x232))));if(_0xb0938d)return client['request']('SendMail',_0x1f8a42)[_0x451aaf(0x22d)](function(_0x20bddc){const _0x48d1d2=_0x451aaf;if(_0x20bddc[_0x48d1d2(0x1f0)])return logger[_0x48d1d2(0x1f0)](_0x48d1d2(0x23c),JSON[_0x48d1d2(0x23d)](_0x20bddc));return logger['info'](_0x48d1d2(0x22c));})[_0x451aaf(0x217)](function(_0x5620f8){const _0x15d4a0=_0x451aaf;return logger[_0x15d4a0(0x1f0)](_0x15d4a0(0x23c),JSON[_0x15d4a0(0x23d)](_0x5620f8));});};}function handleError(){return function(_0x28f248){const _0x2913bf=a1014_0x13fa;return logger[_0x2913bf(0x1f0)](JSON['stringify'](_0x28f248));};}function handleResult(_0x459fde){return function(_0x4c172f){const _0x2343d3=a1014_0x13fa;logger['info']('data',JSON['stringify'](_0x4c172f)),_0x459fde[_0x2343d3(0x214)]&&_0x459fde['MailAccount'][_0x2343d3(0x21a)]&&!_[_0x2343d3(0x1fe)](_0x459fde[_0x2343d3(0x205)])&&setTimeout(handleSendEmail(_0x459fde,_0x4c172f),0x3c*0x3e8);};}function handleJob(_0x46e6d6){return function(){const _0x815ba7=a1014_0x13fa;try{if(_[_0x815ba7(0x1fe)](_0x46e6d6['subtractNumber']))return logger[_0x815ba7(0x1f7)](_0x815ba7(0x235));if(_[_0x815ba7(0x1fe)](_0x46e6d6[_0x815ba7(0x200)]))return logger['info'](_0x815ba7(0x222));const _0x3747a4={'startDate':moment()[_0x815ba7(0x207)](_0x46e6d6[_0x815ba7(0x20b)],_0x46e6d6[_0x815ba7(0x200)])[_0x815ba7(0x23a)](_0x815ba7(0x224)),'endDate':moment()[_0x815ba7(0x23a)](_0x815ba7(0x224)),'type':'scheduled','output':_0x46e6d6[_0x815ba7(0x23f)],'name':_0x46e6d6[_0x815ba7(0x1fb)]};if(!_[_0x815ba7(0x1fe)](_0x46e6d6[_0x815ba7(0x216)]))return logger[_0x815ba7(0x1f7)](_0x815ba7(0x1f3),_0x46e6d6['DefaultReportId']),analyticDefaultReportController[_0x815ba7(0x1ec)]({'id':_0x46e6d6['DefaultReportId']},_0x3747a4)[_0x815ba7(0x22d)](handleResult(_0x46e6d6))[_0x815ba7(0x217)](handleError());if(!_[_0x815ba7(0x1fe)](_0x46e6d6[_0x815ba7(0x215)]))return logger[_0x815ba7(0x1f7)](_0x815ba7(0x203),_0x46e6d6['CustomReportId']),analyticCustomReportController[_0x815ba7(0x1ec)]({'id':_0x46e6d6[_0x815ba7(0x215)]},_0x3747a4)[_0x815ba7(0x22d)](handleResult(_0x46e6d6))[_0x815ba7(0x217)](handleError());}catch(_0x3c99c7){logger[_0x815ba7(0x1f0)](JSON[_0x815ba7(0x23d)](_0x3c99c7));}return logger[_0x815ba7(0x1f7)](_0x815ba7(0x208));};}function getJobs(_0x51b5b2){const _0x4120bb=a1014_0x2b4a26,_0x5509df={};return _0x51b5b2&&(_0x5509df['id']=_0x51b5b2),db[_0x4120bb(0x20c)][_0x4120bb(0x21c)]({'where':_0x5509df,'include':[{'model':db[_0x4120bb(0x214)],'attributes':['id','name',_0x4120bb(0x205)],'include':[{'model':db[_0x4120bb(0x1ee)],'as':_0x4120bb(0x21a)}]}]})[_0x4120bb(0x22d)](function(_0x5d7373){const _0x48b17d=_0x4120bb,_0x16914f=_[_0x48b17d(0x21e)](manager[_0x48b17d(0x1fa)]),_0x32e7f2=_[_0x48b17d(0x226)](_0x5d7373,function(_0x3a458b){return _0x3a458b['id']['toString']();}),_0x2f9e62=_[_0x48b17d(0x204)](_0x5d7373,function(_0x916363){const _0x50198c=_0x48b17d;return _0x916363['id'][_0x50198c(0x220)]();}),_0x5c607c=_0x51b5b2?_0x32e7f2:_[_0x48b17d(0x20e)](_0x32e7f2,_0x16914f),_0x4b41fd=_[_0x48b17d(0x21d)](_0x32e7f2,_0x16914f),_0x12d44b=_[_0x48b17d(0x20e)](_0x16914f,_0x32e7f2);let _0x1db48d,_0x19cc4d;for(_0x1db48d=0x0;_0x1db48d<_0x12d44b['length']&&!_0x51b5b2;_0x1db48d+=0x1){_0x19cc4d=_0x12d44b[_0x1db48d][_0x48b17d(0x220)](),manager['exists'](_0x19cc4d)&&(manager[_0x48b17d(0x1ed)](_0x19cc4d),manager[_0x48b17d(0x229)](_0x19cc4d),logger[_0x48b17d(0x1f7)](_0x48b17d(0x23b),_0x19cc4d));}logger['info']('toRun',JSON['stringify'](_0x5c607c));for(_0x1db48d=0x0;_0x1db48d<_0x5c607c[_0x48b17d(0x237)];_0x1db48d+=0x1){_0x19cc4d=_0x5c607c[_0x1db48d]['toString'](),logger[_0x48b17d(0x1f7)](_0x48b17d(0x20f),_0x19cc4d);if(_0x51b5b2)logger[_0x48b17d(0x1f7)](_0x48b17d(0x210),_0x51b5b2),logger[_0x48b17d(0x1f7)](JSON[_0x48b17d(0x23d)](_0x2f9e62[_0x19cc4d])),Promise['resolve']()[_0x48b17d(0x22d)](handleJob(_0x2f9e62[_0x19cc4d])),logger[_0x48b17d(0x1f7)](_0x48b17d(0x218),_0x2f9e62[_0x19cc4d][_0x48b17d(0x1fb)],_0x2f9e62[_0x19cc4d][_0x48b17d(0x233)]);else{if(_0x2f9e62[_0x19cc4d][_0x48b17d(0x233)]&&_0x2f9e62[_0x19cc4d][_0x48b17d(0x236)]&&moment()[_0x48b17d(0x1f5)](_0x2f9e62[_0x19cc4d][_0x48b17d(0x1f8)],_0x2f9e62[_0x19cc4d]['endAt']))manager[_0x48b17d(0x230)](_0x19cc4d,_0x2f9e62[_0x19cc4d][_0x48b17d(0x233)],handleJob(_0x2f9e62[_0x19cc4d])),manager[_0x48b17d(0x211)](_0x19cc4d),logger['info']('add\x20cron',_0x2f9e62[_0x19cc4d]['name'],_0x2f9e62[_0x19cc4d][_0x48b17d(0x233)]);else manager[_0x48b17d(0x20d)](_0x19cc4d)&&(manager[_0x48b17d(0x1ed)](_0x19cc4d),manager['deleteJob'](_0x19cc4d),logger['info'](_0x48b17d(0x1ff),_0x2f9e62[_0x19cc4d][_0x48b17d(0x1fb)],_0x2f9e62[_0x19cc4d][_0x48b17d(0x233)]));}}for(_0x1db48d=0x0,_0x19cc4d;_0x1db48d<_0x4b41fd[_0x48b17d(0x237)]&&!_0x51b5b2;_0x1db48d+=0x1){_0x19cc4d=_0x4b41fd[_0x1db48d]['toString'](),manager[_0x48b17d(0x20d)](_0x19cc4d)&&(_0x2f9e62[_0x19cc4d][_0x48b17d(0x233)]&&_0x2f9e62[_0x19cc4d][_0x48b17d(0x236)]&&moment()['isBetween'](_0x2f9e62[_0x19cc4d][_0x48b17d(0x1f8)],_0x2f9e62[_0x19cc4d]['endAt'])?(manager[_0x48b17d(0x1f2)](_0x19cc4d,_0x2f9e62[_0x19cc4d][_0x48b17d(0x233)],handleJob(_0x2f9e62[_0x19cc4d])),logger[_0x48b17d(0x1f7)](_0x48b17d(0x22b),_0x2f9e62[_0x19cc4d]['name'],_0x2f9e62[_0x19cc4d][_0x48b17d(0x233)])):(manager['stop'](_0x19cc4d),manager['deleteJob'](_0x19cc4d),logger[_0x48b17d(0x1f7)](_0x48b17d(0x1ff),_0x2f9e62[_0x19cc4d]['name'],_0x2f9e62[_0x19cc4d][_0x48b17d(0x233)])));}})[_0x4120bb(0x217)](function(_0x25f739){const _0x197c2b=_0x4120bb;logger[_0x197c2b(0x1f0)](JSON[_0x197c2b(0x23d)](_0x25f739));});}exports[a1014_0x2b4a26(0x1f9)]=function(_0x1de790){return getJobs(_0x1de790);},exports[a1014_0x2b4a26(0x211)]=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 8d819f9..98bc69a 100644 --- a/server/config/schedule/transcribe.js +++ b/server/config/schedule/transcribe.js @@ -1 +1 @@ -const a1015_0x10c8=['data1','Mixed','Sentiment\x20Analysis\x20not\x20requested','TranscriptFileUri','../../mysqldb','IN_PROGRESS','TranscriptionJobStatus','sentiment','transcribeAccountId','sentimentRegion','Settings\x20not\x20available','Comprehend','TranscriptionJob','[RECORDING:%d]\x20Requesting\x20sentiment\x20analysis','Sentiment','Negative','Transcript','transcribe','detectSentiment','[RECORDING:%d]\x20Transcript\x20downloaded','name','findAll','[RECORDING:%d]\x20Sentiment\x20Analysis\x20available','sentimentAccountId','fileText','request-promise-native','[RECORDING:%d]\x20Get\x20status\x20for\x20transcript\x20job\x20(%s)','Positive','Cloud\x20Provider\x20not\x20available','resolve','SentimentScore','results','FailureReason','tempSentiment','transcribeRegion','CloudProvider','Transcribe\x20not\x20configured','VoiceRecording','FAILED','forEach','SequelizeValidationError','format','[RECORDING:%d]\x20Error\x20running\x20Transcribe\x20&\x20Sentiment\x20Analysis','findOne','error','bucket','[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated','[RECORDING:%d]\x20Transcript\x20Job\x20status\x20not\x20managed','catch','../../config/logger','transcribeName','TranscribeService','language','transcripts','inspect','No\x20transcribe\x20job\x20to\x20check','Cloud\x20Provider\x20not\x20configured','Sentiment\x20Analysis\x20not\x20configured','length','sequelize','update','info','Neutral','data2','then'];(function(_0x422774,_0x4fdb95){const _0x10c867=function(_0x124db5){while(--_0x124db5){_0x422774['push'](_0x422774['shift']());}};_0x10c867(++_0x4fdb95);}(a1015_0x10c8,0x1ea));const a1015_0x124d=function(_0x422774,_0x4fdb95){_0x422774=_0x422774-0x127;let _0x10c867=a1015_0x10c8[_0x422774];return _0x10c867;};const a1015_0xf36673=a1015_0x124d,AWS=require('aws-sdk'),rp=require(a1015_0xf36673(0x15e)),util=require('util'),{db}=require(a1015_0xf36673(0x149)),{ValidationError}=require(a1015_0xf36673(0x13f)),logger=require(a1015_0xf36673(0x135))('transcribe');function getTranscriptionJob(_0x51ee16,_0x2fac28,_0x5c33d2,_0xe4b2fb){return new Promise(function(_0x58e331,_0x2a3259){const _0x43bcc0=a1015_0x124d,_0x3da5d7=new AWS[(_0x43bcc0(0x137))]({'accessKeyId':_0x2fac28,'secretAccessKey':_0x51ee16,'region':_0x5c33d2});_0x3da5d7['getTranscriptionJob']({'TranscriptionJobName':_0xe4b2fb},function(_0x543ec5,_0x50c82c){return _0x543ec5?_0x2a3259(_0x543ec5):_0x58e331(_0x50c82c);});});}function sentiment(_0x1c9785,_0x179b36,_0x540fd0,_0x2a5a7f,_0x858569){return new Promise(function(_0x17bd32,_0x4ce915){const _0x25051e=a1015_0x124d,_0x405c28=new AWS[(_0x25051e(0x150))]({'accessKeyId':_0x179b36,'secretAccessKey':_0x1c9785,'region':_0x540fd0});_0x405c28[_0x25051e(0x157)]({'Text':_0x2a5a7f,'LanguageCode':_0x858569['substring'](0x0,0x2)},function(_0x298bf8,_0x5230dd){return _0x298bf8?_0x4ce915(_0x298bf8):_0x17bd32(_0x5230dd);});});}function checkTranscribeJob(_0x18399d,_0x185e02,_0x330b56){let _0x291727;return new Promise(function(_0x28666e){const _0x49c9b2=a1015_0x124d;return logger[_0x49c9b2(0x141)](util[_0x49c9b2(0x12d)](_0x49c9b2(0x15f),_0x18399d['id'],_0x18399d['transcribeName'])),getTranscriptionJob(_0x330b56[_0x49c9b2(0x145)],_0x330b56[_0x49c9b2(0x143)],_0x185e02[_0x49c9b2(0x167)],_0x18399d[_0x49c9b2(0x136)])[_0x49c9b2(0x144)](function(_0x424325){const _0x5ba221=_0x49c9b2;logger[_0x5ba221(0x141)](util['format']('[RECORDING:%d]\x20Status\x20of\x20transcript\x20job\x20(%s):\x20%s',_0x18399d['id'],_0x18399d[_0x5ba221(0x136)],_0x424325[_0x5ba221(0x151)][_0x5ba221(0x14b)]));if(!_0x18399d['fileText'])switch(_0x424325['TranscriptionJob'][_0x5ba221(0x14b)]){case'COMPLETED':{const _0x3f9eef={'transcribeStatus':_0x424325['TranscriptionJob'][_0x5ba221(0x14b)],'fileUri':_0x424325[_0x5ba221(0x151)]['Transcript'][_0x5ba221(0x148)]};return logger[_0x5ba221(0x141)](util['format']('[RECORDING:%d]\x20Get\x20transcript',_0x18399d['id'])),rp({'uri':_0x424325[_0x5ba221(0x151)][_0x5ba221(0x155)][_0x5ba221(0x148)],'json':!![]})[_0x5ba221(0x144)](function(_0x4ab73c){const _0x4bf50e=_0x5ba221;logger[_0x4bf50e(0x141)](util[_0x4bf50e(0x12d)](_0x4bf50e(0x158),_0x18399d['id']));if(_0x4ab73c&&_0x4ab73c['results']&&_0x4ab73c['results'][_0x4bf50e(0x139)]&&_0x4ab73c['results'][_0x4bf50e(0x139)][_0x4bf50e(0x13e)]){_0x3f9eef[_0x4bf50e(0x15d)]='';for(let _0x1cfa68=0x0;_0x1cfa68<_0x4ab73c[_0x4bf50e(0x164)]['transcripts'][_0x4bf50e(0x13e)];_0x1cfa68++){_0x3f9eef[_0x4bf50e(0x15d)]+=_0x4ab73c['results'][_0x4bf50e(0x139)][_0x1cfa68]['transcript']+'';}}return _0x18399d[_0x4bf50e(0x140)](_0x3f9eef);})[_0x5ba221(0x144)](function(){const _0x57d8bb=_0x5ba221;logger[_0x57d8bb(0x141)](util[_0x57d8bb(0x12d)]('[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated',_0x18399d['id']));if(!_0x18399d[_0x57d8bb(0x166)])throw new ValidationError('Sentiment\x20Analysis\x20not\x20requested');if(!_0x185e02['sentiment']||!_0x185e02[_0x57d8bb(0x15c)]||!_0x185e02['sentimentRegion']||!_0x185e02[_0x57d8bb(0x138)]||!_0x185e02['bucket'])throw new ValidationError(_0x57d8bb(0x13d));if(!_0x3f9eef[_0x57d8bb(0x15d)])throw new Error('Transcript\x20not\x20available');return _0x185e02[_0x57d8bb(0x15c)]===_0x330b56['id']?_0x330b56:db[_0x57d8bb(0x127)][_0x57d8bb(0x12f)]({'where':{'id':_0x185e02[_0x57d8bb(0x15c)]}});})[_0x5ba221(0x144)](function(_0x2dafd3){const _0xde51dd=_0x5ba221;if(!_0x2dafd3)throw new ValidationError(_0xde51dd(0x161));if(!_0x2dafd3[_0xde51dd(0x145)]||!_0x2dafd3[_0xde51dd(0x143)])throw new ValidationError(_0xde51dd(0x13c));return _0x291727=_0x2dafd3,logger['info'](util[_0xde51dd(0x12d)](_0xde51dd(0x152),_0x18399d['id'])),sentiment(_0x291727[_0xde51dd(0x145)],_0x291727['data2'],_0x185e02[_0xde51dd(0x14e)],_0x3f9eef[_0xde51dd(0x15d)],_0x185e02[_0xde51dd(0x138)]);})[_0x5ba221(0x144)](function(_0x4c1d5b){const _0x552f61=_0x5ba221;return logger[_0x552f61(0x141)](util[_0x552f61(0x12d)](_0x552f61(0x15b),_0x18399d['id'])),_0x18399d[_0x552f61(0x140)]({'sentiment':_0x4c1d5b[_0x552f61(0x153)],'sPositive':_0x4c1d5b[_0x552f61(0x163)][_0x552f61(0x160)],'sNegative':_0x4c1d5b[_0x552f61(0x163)][_0x552f61(0x154)],'sMixed':_0x4c1d5b[_0x552f61(0x163)][_0x552f61(0x146)],'sNeutral':_0x4c1d5b[_0x552f61(0x163)][_0x552f61(0x142)]});})[_0x5ba221(0x144)](function(){const _0x1a2556=_0x5ba221;logger[_0x1a2556(0x141)](util[_0x1a2556(0x12d)](_0x1a2556(0x132),_0x18399d['id'])),_0x28666e();});}case _0x5ba221(0x12a):return _0x18399d[_0x5ba221(0x140)]({'transcribeStatus':'FAILED','failureReason':_0x424325[_0x5ba221(0x151)][_0x5ba221(0x165)]})[_0x5ba221(0x144)](function(){const _0x1d9a36=_0x5ba221;logger[_0x1d9a36(0x141)](util['format'](_0x1d9a36(0x132),_0x18399d['id'])),_0x28666e();});default:logger[_0x5ba221(0x141)](util[_0x5ba221(0x12d)](_0x5ba221(0x133),_0x18399d['id']));break;}else return Promise[_0x5ba221(0x162)]()[_0x5ba221(0x144)](function(){const _0x39429f=_0x5ba221;if(!_0x18399d[_0x39429f(0x166)])throw new ValidationError(_0x39429f(0x147));if(!_0x185e02[_0x39429f(0x14c)]||!_0x185e02[_0x39429f(0x15c)]||!_0x185e02['sentimentRegion']||!_0x185e02[_0x39429f(0x138)]||!_0x185e02[_0x39429f(0x131)])throw new ValidationError(_0x39429f(0x13d));if(!_0x18399d[_0x39429f(0x15d)])throw new Error('Transcript\x20not\x20available');return _0x185e02['sentimentAccountId']===_0x330b56['id']?_0x330b56:db['CloudProvider'][_0x39429f(0x12f)]({'where':{'id':_0x185e02[_0x39429f(0x15c)]}});})[_0x5ba221(0x144)](function(_0x576a2d){const _0x27adc5=_0x5ba221;if(!_0x576a2d)throw new ValidationError(_0x27adc5(0x161));if(!_0x576a2d['data1']||!_0x576a2d[_0x27adc5(0x143)])throw new ValidationError(_0x27adc5(0x13c));return _0x291727=_0x576a2d,logger[_0x27adc5(0x141)](util[_0x27adc5(0x12d)](_0x27adc5(0x152),_0x18399d['id'])),sentiment(_0x291727[_0x27adc5(0x145)],_0x291727['data2'],_0x185e02['sentimentRegion'],_0x18399d['fileText'],_0x185e02[_0x27adc5(0x138)]);})[_0x5ba221(0x144)](function(_0x2ad8b4){const _0x308eb7=_0x5ba221;return logger[_0x308eb7(0x141)](util[_0x308eb7(0x12d)]('[RECORDING:%d]\x20Sentiment\x20Analysis\x20available',_0x18399d['id'])),_0x18399d['update']({'sentiment':_0x2ad8b4[_0x308eb7(0x153)],'sPositive':_0x2ad8b4[_0x308eb7(0x163)]['Positive'],'sNegative':_0x2ad8b4[_0x308eb7(0x163)][_0x308eb7(0x154)],'sMixed':_0x2ad8b4[_0x308eb7(0x163)][_0x308eb7(0x146)],'sNeutral':_0x2ad8b4[_0x308eb7(0x163)][_0x308eb7(0x142)],'transcribeStatus':'COMPLETED'});})[_0x5ba221(0x144)](function(){const _0x3295ef=_0x5ba221;logger[_0x3295ef(0x141)](util[_0x3295ef(0x12d)](_0x3295ef(0x132),_0x18399d['id'])),_0x28666e();});})[_0x49c9b2(0x134)](function(_0x5b9d42){const _0x227010=_0x49c9b2;_0x5b9d42&&((!_0x5b9d42[_0x227010(0x159)]||_0x5b9d42['name']!==_0x227010(0x12c))&&logger[_0x227010(0x130)](util[_0x227010(0x12d)](_0x227010(0x12e),_0x18399d['id']),util[_0x227010(0x13a)](_0x5b9d42,{'showHidden':![],'depth':null}))),_0x28666e();});});}function checkTranscribe(){const _0x4278e9=a1015_0xf36673;let _0x46f085,_0x13d770,_0x38ec47;return db[_0x4278e9(0x129)][_0x4278e9(0x15a)]({'where':{'transcribeStatus':_0x4278e9(0x14a)}})[_0x4278e9(0x144)](function(_0x493d2d){const _0x401d9e=_0x4278e9;if(!_0x493d2d||!_0x493d2d[_0x401d9e(0x13e)])throw new ValidationError(_0x401d9e(0x13b));return _0x46f085=_0x493d2d,db['Setting'][_0x401d9e(0x12f)]({'where':{'id':0x1}});})[_0x4278e9(0x144)](function(_0x374058){const _0x2aea6b=_0x4278e9;if(!_0x374058)throw new ValidationError(_0x2aea6b(0x14f));_0x13d770=_0x374058;if(!_0x13d770[_0x2aea6b(0x156)]||!_0x13d770[_0x2aea6b(0x14d)]||!_0x13d770[_0x2aea6b(0x167)]||!_0x13d770['language']||!_0x13d770[_0x2aea6b(0x131)])throw new ValidationError(_0x2aea6b(0x128));return db['CloudProvider']['findOne']({'where':{'id':_0x13d770[_0x2aea6b(0x14d)]}});})['then'](function(_0x474427){const _0x157e63=_0x4278e9;if(!_0x474427)throw new ValidationError(_0x157e63(0x161));if(!_0x474427[_0x157e63(0x145)]||!_0x474427['data2'])throw new ValidationError('Cloud\x20Provider\x20not\x20configured');_0x38ec47=_0x474427;const _0x5465fa=[];return _0x46f085[_0x157e63(0x12b)](function(_0xb1db0f){_0x5465fa['push'](checkTranscribeJob(_0xb1db0f,_0x13d770,_0x38ec47));}),Promise['all'](_0x5465fa);})[_0x4278e9(0x134)](function(_0x2c59c4){const _0x20c5b4=_0x4278e9;_0x2c59c4&&((!_0x2c59c4['name']||_0x2c59c4[_0x20c5b4(0x159)]!==_0x20c5b4(0x12c))&&logger[_0x20c5b4(0x130)](util['inspect'](_0x2c59c4,{'showHidden':![],'depth':null})));});}exports['start']=function(){return setInterval(function(){return checkTranscribe();},0x3c*0x3e8),checkTranscribe();}; \ No newline at end of file +const a1015_0x3dea=['Cloud\x20Provider\x20not\x20configured','start','transcribeName','Settings\x20not\x20available','../../config/logger','language','SentimentScore','util','Sentiment','getTranscriptionJob','CloudProvider','Sentiment\x20Analysis\x20not\x20requested','TranscriptionJobStatus','push','transcribe','Transcribe\x20not\x20configured','sentimentRegion','Comprehend','[RECORDING:%d]\x20Requesting\x20sentiment\x20analysis','FAILED','Cloud\x20Provider\x20not\x20available','info','Transcript\x20not\x20available','[RECORDING:%d]\x20Get\x20transcript','TranscriptionJob','[RECORDING:%d]\x20Transcript\x20Job\x20status\x20not\x20managed','data2','FailureReason','COMPLETED','Transcript','findOne','Negative','[RECORDING:%d]\x20Error\x20running\x20Transcribe\x20&\x20Sentiment\x20Analysis','inspect','VoiceRecording','catch','../../mysqldb','transcribeRegion','Mixed','[RECORDING:%d]\x20Sentiment\x20Analysis\x20available','tempSentiment','SequelizeValidationError','fileText','transcribeAccountId','name','request-promise-native','forEach','sentiment','data1','aws-sdk','sequelize','transcripts','update','Sentiment\x20Analysis\x20not\x20configured','results','Positive','length','findAll','sentimentAccountId','Setting','format','detectSentiment','error','then','TranscriptFileUri','bucket','[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated'];(function(_0x53e3b1,_0x2f64cd){const _0x3deadd=function(_0x5f26fa){while(--_0x5f26fa){_0x53e3b1['push'](_0x53e3b1['shift']());}};_0x3deadd(++_0x2f64cd);}(a1015_0x3dea,0xbb));const a1015_0x5f26=function(_0x53e3b1,_0x2f64cd){_0x53e3b1=_0x53e3b1-0xfe;let _0x3deadd=a1015_0x3dea[_0x53e3b1];return _0x3deadd;};const a1015_0x5b5776=a1015_0x5f26,AWS=require(a1015_0x5b5776(0x13d)),rp=require(a1015_0x5b5776(0x139)),util=require(a1015_0x5b5776(0x113)),{db}=require(a1015_0x5b5776(0x130)),{ValidationError}=require(a1015_0x5b5776(0x13e)),logger=require(a1015_0x5b5776(0x110))(a1015_0x5b5776(0x11a));function getTranscriptionJob(_0x66f726,_0x52d582,_0x2cd8c8,_0xd96c04){return new Promise(function(_0x53b0dd,_0x24065d){const _0x549c1d=a1015_0x5f26,_0x39914d=new AWS['TranscribeService']({'accessKeyId':_0x52d582,'secretAccessKey':_0x66f726,'region':_0x2cd8c8});_0x39914d[_0x549c1d(0x115)]({'TranscriptionJobName':_0xd96c04},function(_0x53986e,_0x3f7c0b){return _0x53986e?_0x24065d(_0x53986e):_0x53b0dd(_0x3f7c0b);});});}function sentiment(_0x332fe2,_0xf0c4e9,_0x4ae7a1,_0x1e258c,_0x428c24){return new Promise(function(_0x1720ea,_0x3ddfbf){const _0x4cb7f9=a1015_0x5f26,_0x37aac3=new AWS[(_0x4cb7f9(0x11d))]({'accessKeyId':_0xf0c4e9,'secretAccessKey':_0x332fe2,'region':_0x4ae7a1});_0x37aac3[_0x4cb7f9(0x106)]({'Text':_0x1e258c,'LanguageCode':_0x428c24['substring'](0x0,0x2)},function(_0x1bac0e,_0x3067b6){return _0x1bac0e?_0x3ddfbf(_0x1bac0e):_0x1720ea(_0x3067b6);});});}function checkTranscribeJob(_0x2aa527,_0x46b6af,_0x332f15){let _0x156ee6;return new Promise(function(_0x3e0b49){const _0x58bf84=a1015_0x5f26;return logger['info'](util[_0x58bf84(0x105)]('[RECORDING:%d]\x20Get\x20status\x20for\x20transcript\x20job\x20(%s)',_0x2aa527['id'],_0x2aa527[_0x58bf84(0x10e)])),getTranscriptionJob(_0x332f15[_0x58bf84(0x13c)],_0x332f15[_0x58bf84(0x126)],_0x46b6af[_0x58bf84(0x131)],_0x2aa527[_0x58bf84(0x10e)])[_0x58bf84(0x108)](function(_0x1ab2ef){const _0x29a8d7=_0x58bf84;logger[_0x29a8d7(0x121)](util[_0x29a8d7(0x105)]('[RECORDING:%d]\x20Status\x20of\x20transcript\x20job\x20(%s):\x20%s',_0x2aa527['id'],_0x2aa527[_0x29a8d7(0x10e)],_0x1ab2ef[_0x29a8d7(0x124)]['TranscriptionJobStatus']));if(!_0x2aa527['fileText'])switch(_0x1ab2ef[_0x29a8d7(0x124)]['TranscriptionJobStatus']){case _0x29a8d7(0x128):{const _0x2b5e64={'transcribeStatus':_0x1ab2ef[_0x29a8d7(0x124)][_0x29a8d7(0x118)],'fileUri':_0x1ab2ef[_0x29a8d7(0x124)][_0x29a8d7(0x129)]['TranscriptFileUri']};return logger['info'](util['format'](_0x29a8d7(0x123),_0x2aa527['id'])),rp({'uri':_0x1ab2ef[_0x29a8d7(0x124)][_0x29a8d7(0x129)][_0x29a8d7(0x109)],'json':!![]})[_0x29a8d7(0x108)](function(_0x22592f){const _0x5393d0=_0x29a8d7;logger['info'](util[_0x5393d0(0x105)]('[RECORDING:%d]\x20Transcript\x20downloaded',_0x2aa527['id']));if(_0x22592f&&_0x22592f[_0x5393d0(0xff)]&&_0x22592f[_0x5393d0(0xff)][_0x5393d0(0x13f)]&&_0x22592f['results'][_0x5393d0(0x13f)][_0x5393d0(0x101)]){_0x2b5e64[_0x5393d0(0x136)]='';for(let _0x55ff0a=0x0;_0x55ff0a<_0x22592f[_0x5393d0(0xff)][_0x5393d0(0x13f)][_0x5393d0(0x101)];_0x55ff0a++){_0x2b5e64[_0x5393d0(0x136)]+=_0x22592f[_0x5393d0(0xff)][_0x5393d0(0x13f)][_0x55ff0a]['transcript']+'';}}return _0x2aa527['update'](_0x2b5e64);})[_0x29a8d7(0x108)](function(){const _0x2f2ac7=_0x29a8d7;logger['info'](util[_0x2f2ac7(0x105)](_0x2f2ac7(0x10b),_0x2aa527['id']));if(!_0x2aa527['tempSentiment'])throw new ValidationError(_0x2f2ac7(0x117));if(!_0x46b6af[_0x2f2ac7(0x13b)]||!_0x46b6af[_0x2f2ac7(0x103)]||!_0x46b6af['sentimentRegion']||!_0x46b6af[_0x2f2ac7(0x111)]||!_0x46b6af[_0x2f2ac7(0x10a)])throw new ValidationError(_0x2f2ac7(0xfe));if(!_0x2b5e64[_0x2f2ac7(0x136)])throw new Error(_0x2f2ac7(0x122));return _0x46b6af[_0x2f2ac7(0x103)]===_0x332f15['id']?_0x332f15:db[_0x2f2ac7(0x116)][_0x2f2ac7(0x12a)]({'where':{'id':_0x46b6af[_0x2f2ac7(0x103)]}});})[_0x29a8d7(0x108)](function(_0x488706){const _0x58ca86=_0x29a8d7;if(!_0x488706)throw new ValidationError(_0x58ca86(0x120));if(!_0x488706[_0x58ca86(0x13c)]||!_0x488706[_0x58ca86(0x126)])throw new ValidationError('Cloud\x20Provider\x20not\x20configured');return _0x156ee6=_0x488706,logger[_0x58ca86(0x121)](util[_0x58ca86(0x105)](_0x58ca86(0x11e),_0x2aa527['id'])),sentiment(_0x156ee6[_0x58ca86(0x13c)],_0x156ee6['data2'],_0x46b6af['sentimentRegion'],_0x2b5e64['fileText'],_0x46b6af['language']);})[_0x29a8d7(0x108)](function(_0x350f3a){const _0x3b5b75=_0x29a8d7;return logger['info'](util[_0x3b5b75(0x105)](_0x3b5b75(0x133),_0x2aa527['id'])),_0x2aa527[_0x3b5b75(0x140)]({'sentiment':_0x350f3a['Sentiment'],'sPositive':_0x350f3a['SentimentScore'][_0x3b5b75(0x100)],'sNegative':_0x350f3a[_0x3b5b75(0x112)]['Negative'],'sMixed':_0x350f3a[_0x3b5b75(0x112)][_0x3b5b75(0x132)],'sNeutral':_0x350f3a['SentimentScore']['Neutral']});})[_0x29a8d7(0x108)](function(){const _0x2caa2d=_0x29a8d7;logger[_0x2caa2d(0x121)](util[_0x2caa2d(0x105)](_0x2caa2d(0x10b),_0x2aa527['id'])),_0x3e0b49();});}case _0x29a8d7(0x11f):return _0x2aa527[_0x29a8d7(0x140)]({'transcribeStatus':'FAILED','failureReason':_0x1ab2ef[_0x29a8d7(0x124)][_0x29a8d7(0x127)]})['then'](function(){const _0x5bc659=_0x29a8d7;logger[_0x5bc659(0x121)](util[_0x5bc659(0x105)]('[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated',_0x2aa527['id'])),_0x3e0b49();});default:logger[_0x29a8d7(0x121)](util[_0x29a8d7(0x105)](_0x29a8d7(0x125),_0x2aa527['id']));break;}else return Promise['resolve']()[_0x29a8d7(0x108)](function(){const _0x62dc6d=_0x29a8d7;if(!_0x2aa527[_0x62dc6d(0x134)])throw new ValidationError(_0x62dc6d(0x117));if(!_0x46b6af[_0x62dc6d(0x13b)]||!_0x46b6af['sentimentAccountId']||!_0x46b6af['sentimentRegion']||!_0x46b6af[_0x62dc6d(0x111)]||!_0x46b6af[_0x62dc6d(0x10a)])throw new ValidationError('Sentiment\x20Analysis\x20not\x20configured');if(!_0x2aa527[_0x62dc6d(0x136)])throw new Error(_0x62dc6d(0x122));return _0x46b6af['sentimentAccountId']===_0x332f15['id']?_0x332f15:db['CloudProvider'][_0x62dc6d(0x12a)]({'where':{'id':_0x46b6af['sentimentAccountId']}});})[_0x29a8d7(0x108)](function(_0x5db16e){const _0x4ef747=_0x29a8d7;if(!_0x5db16e)throw new ValidationError(_0x4ef747(0x120));if(!_0x5db16e['data1']||!_0x5db16e[_0x4ef747(0x126)])throw new ValidationError(_0x4ef747(0x10c));return _0x156ee6=_0x5db16e,logger[_0x4ef747(0x121)](util[_0x4ef747(0x105)]('[RECORDING:%d]\x20Requesting\x20sentiment\x20analysis',_0x2aa527['id'])),sentiment(_0x156ee6[_0x4ef747(0x13c)],_0x156ee6[_0x4ef747(0x126)],_0x46b6af[_0x4ef747(0x11c)],_0x2aa527['fileText'],_0x46b6af['language']);})['then'](function(_0x319dd3){const _0x2bf9be=_0x29a8d7;return logger[_0x2bf9be(0x121)](util[_0x2bf9be(0x105)](_0x2bf9be(0x133),_0x2aa527['id'])),_0x2aa527[_0x2bf9be(0x140)]({'sentiment':_0x319dd3[_0x2bf9be(0x114)],'sPositive':_0x319dd3[_0x2bf9be(0x112)][_0x2bf9be(0x100)],'sNegative':_0x319dd3['SentimentScore'][_0x2bf9be(0x12b)],'sMixed':_0x319dd3[_0x2bf9be(0x112)][_0x2bf9be(0x132)],'sNeutral':_0x319dd3[_0x2bf9be(0x112)]['Neutral'],'transcribeStatus':'COMPLETED'});})['then'](function(){const _0x2acff7=_0x29a8d7;logger[_0x2acff7(0x121)](util['format'](_0x2acff7(0x10b),_0x2aa527['id'])),_0x3e0b49();});})[_0x58bf84(0x12f)](function(_0x213b4b){const _0x2260eb=_0x58bf84;_0x213b4b&&((!_0x213b4b[_0x2260eb(0x138)]||_0x213b4b[_0x2260eb(0x138)]!==_0x2260eb(0x135))&&logger[_0x2260eb(0x107)](util[_0x2260eb(0x105)](_0x2260eb(0x12c),_0x2aa527['id']),util[_0x2260eb(0x12d)](_0x213b4b,{'showHidden':![],'depth':null}))),_0x3e0b49();});});}function checkTranscribe(){const _0x1e6ddd=a1015_0x5b5776;let _0x3975f7,_0x4f5579,_0xf1a2ff;return db[_0x1e6ddd(0x12e)][_0x1e6ddd(0x102)]({'where':{'transcribeStatus':'IN_PROGRESS'}})[_0x1e6ddd(0x108)](function(_0xa3ec1a){const _0x8242b8=_0x1e6ddd;if(!_0xa3ec1a||!_0xa3ec1a[_0x8242b8(0x101)])throw new ValidationError('No\x20transcribe\x20job\x20to\x20check');return _0x3975f7=_0xa3ec1a,db[_0x8242b8(0x104)]['findOne']({'where':{'id':0x1}});})['then'](function(_0x52b616){const _0x465ea6=_0x1e6ddd;if(!_0x52b616)throw new ValidationError(_0x465ea6(0x10f));_0x4f5579=_0x52b616;if(!_0x4f5579[_0x465ea6(0x11a)]||!_0x4f5579['transcribeAccountId']||!_0x4f5579[_0x465ea6(0x131)]||!_0x4f5579[_0x465ea6(0x111)]||!_0x4f5579['bucket'])throw new ValidationError(_0x465ea6(0x11b));return db[_0x465ea6(0x116)][_0x465ea6(0x12a)]({'where':{'id':_0x4f5579[_0x465ea6(0x137)]}});})[_0x1e6ddd(0x108)](function(_0x3d0af4){const _0xc9fe6e=_0x1e6ddd;if(!_0x3d0af4)throw new ValidationError(_0xc9fe6e(0x120));if(!_0x3d0af4[_0xc9fe6e(0x13c)]||!_0x3d0af4[_0xc9fe6e(0x126)])throw new ValidationError('Cloud\x20Provider\x20not\x20configured');_0xf1a2ff=_0x3d0af4;const _0x3184f9=[];return _0x3975f7[_0xc9fe6e(0x13a)](function(_0xfc90bb){const _0x520b87=_0xc9fe6e;_0x3184f9[_0x520b87(0x119)](checkTranscribeJob(_0xfc90bb,_0x4f5579,_0xf1a2ff));}),Promise['all'](_0x3184f9);})['catch'](function(_0x2aff02){const _0xfc314b=_0x1e6ddd;_0x2aff02&&((!_0x2aff02[_0xfc314b(0x138)]||_0x2aff02[_0xfc314b(0x138)]!==_0xfc314b(0x135))&&logger[_0xfc314b(0x107)](util[_0xfc314b(0x12d)](_0x2aff02,{'showHidden':![],'depth':null})));});}exports[a1015_0x5b5776(0x10d)]=function(){return setInterval(function(){return checkTranscribe();},0x3c*0x3e8),checkTranscribe();}; \ No newline at end of file diff --git a/server/config/schedule/whatsapp.js b/server/config/schedule/whatsapp.js index 983a911..a05d6c2 100644 --- a/server/config/schedule/whatsapp.js +++ b/server/config/schedule/whatsapp.js @@ -1 +1 @@ -const a1016_0x5299=['[WHATSAPP]\x20Sending\x20updates\x20for\x20interactions:','emit','[WHATSAPP]\x20Error\x20closing\x20interactions','then','sequelize','start','[WHATSAPP]\x20Interactions\x20to\x20close:','info','WhatsappInteraction','whatsappInteraction:update','hours','schedule','timeout','join','../../mysqldb','../../rediscache','findAll','format','length','update','YYYY-MM-DD\x20HH:mm:ss','subtract','../logger'];(function(_0x8f5250,_0x360126){const _0x5299c5=function(_0x1184be){while(--_0x1184be){_0x8f5250['push'](_0x8f5250['shift']());}};_0x5299c5(++_0x360126);}(a1016_0x5299,0x178));const a1016_0x1184=function(_0x8f5250,_0x360126){_0x8f5250=_0x8f5250-0x9f;let _0x5299c5=a1016_0x5299[_0x8f5250];return _0x5299c5;};const a1016_0x553f1c=a1016_0x1184;'use strict';const _=require('lodash'),moment=require('moment'),util=require('util'),logger=require(a1016_0x553f1c(0xad))(a1016_0x553f1c(0xa2)),{Op}=require(a1016_0x553f1c(0xb2)),{db}=require(a1016_0x553f1c(0xa5)),{getSocket}=require(a1016_0x553f1c(0xa6)),io=getSocket();function closeInteractions(){const _0x1b1ac5=a1016_0x553f1c;let _0xaa9e4a=[];return db[_0x1b1ac5(0x9f)][_0x1b1ac5(0xa7)]({'raw':!![],'attributes':['id','lastMsgAt'],'where':{'closed':![],'lastMsgDirection':'in','lastMsgAt':{[Op['lt']]:moment()[_0x1b1ac5(0xac)](0x18,_0x1b1ac5(0xa1))}}})['then'](function(_0x17ce8b){const _0x56e9f1=_0x1b1ac5;if(_0x17ce8b&&_0x17ce8b[_0x56e9f1(0xa9)])return _0xaa9e4a=_['map'](_0x17ce8b||[],'id'),logger[_0x56e9f1(0xb5)](_0x56e9f1(0xb4),_0xaa9e4a[_0x56e9f1(0xa4)]()),db[_0x56e9f1(0x9f)][_0x56e9f1(0xaa)]({'closeReason':'system','disposition':_0x56e9f1(0xa3),'closed':!![],'closedAt':moment()[_0x56e9f1(0xa8)](_0x56e9f1(0xab))},{'where':{'id':_0xaa9e4a}});})[_0x1b1ac5(0xb1)](function(){const _0x313ae5=_0x1b1ac5;if(_0xaa9e4a&&_0xaa9e4a['length']){logger[_0x313ae5(0xb5)](_0x313ae5(0xae),_0xaa9e4a[_0x313ae5(0xa4)]());for(let _0x658f23=0x0;_0x658f23<_0xaa9e4a[_0x313ae5(0xa9)];_0x658f23++){io[_0x313ae5(0xaf)](_0x313ae5(0xa0),{'id':_0xaa9e4a[_0x658f23],'closed':!![]});}}})['catch'](function(_0xa74e77){const _0x5af860=_0x1b1ac5;logger['error'](_0x5af860(0xb0),_0xa74e77?util['inspect'](_0xa74e77,{'showHidden':![],'depth':null}):'');});}function start(){return setInterval(function(){return closeInteractions();},0x3c*0x3e8),closeInteractions();}exports[a1016_0x553f1c(0xb3)]=start; \ No newline at end of file +const a1016_0xaf1b=['whatsappInteraction:update','inspect','util','[WHATSAPP]\x20Sending\x20updates\x20for\x20interactions:','length','update','hours','then','WhatsappInteraction','emit','catch','../../mysqldb','schedule','info','../../rediscache','sequelize','[WHATSAPP]\x20Interactions\x20to\x20close:','start','format','YYYY-MM-DD\x20HH:mm:ss','lodash','lastMsgAt','timeout','findAll','system','map'];(function(_0x1305f2,_0x1c3ab1){const _0xaf1b70=function(_0x3852ef){while(--_0x3852ef){_0x1305f2['push'](_0x1305f2['shift']());}};_0xaf1b70(++_0x1c3ab1);}(a1016_0xaf1b,0x1e0));const a1016_0x3852=function(_0x1305f2,_0x1c3ab1){_0x1305f2=_0x1305f2-0xc8;let _0xaf1b70=a1016_0xaf1b[_0x1305f2];return _0xaf1b70;};const a1016_0x1175be=a1016_0x3852;'use strict';const _=require(a1016_0x1175be(0xd0)),moment=require('moment'),util=require(a1016_0x1175be(0xd8)),logger=require('../logger')(a1016_0x1175be(0xc8)),{Op}=require(a1016_0x1175be(0xcb)),{db}=require(a1016_0x1175be(0xe1)),{getSocket}=require(a1016_0x1175be(0xca)),io=getSocket();function closeInteractions(){const _0x330274=a1016_0x1175be;let _0x54c149=[];return db[_0x330274(0xde)][_0x330274(0xd3)]({'raw':!![],'attributes':['id',_0x330274(0xd1)],'where':{'closed':![],'lastMsgDirection':'in','lastMsgAt':{[Op['lt']]:moment()['subtract'](0x18,_0x330274(0xdc))}}})[_0x330274(0xdd)](function(_0x1b70ee){const _0x405b89=_0x330274;if(_0x1b70ee&&_0x1b70ee[_0x405b89(0xda)])return _0x54c149=_[_0x405b89(0xd5)](_0x1b70ee||[],'id'),logger[_0x405b89(0xc9)](_0x405b89(0xcc),_0x54c149['join']()),db[_0x405b89(0xde)][_0x405b89(0xdb)]({'closeReason':_0x405b89(0xd4),'disposition':_0x405b89(0xd2),'closed':!![],'closedAt':moment()[_0x405b89(0xce)](_0x405b89(0xcf))},{'where':{'id':_0x54c149}});})['then'](function(){const _0x1b21d9=_0x330274;if(_0x54c149&&_0x54c149[_0x1b21d9(0xda)]){logger[_0x1b21d9(0xc9)](_0x1b21d9(0xd9),_0x54c149['join']());for(let _0x39c60d=0x0;_0x39c60d<_0x54c149['length'];_0x39c60d++){io[_0x1b21d9(0xdf)](_0x1b21d9(0xd6),{'id':_0x54c149[_0x39c60d],'closed':!![]});}}})[_0x330274(0xe0)](function(_0x2b6c1a){const _0x23ddb9=_0x330274;logger['error']('[WHATSAPP]\x20Error\x20closing\x20interactions',_0x2b6c1a?util[_0x23ddb9(0xd7)](_0x2b6c1a,{'showHidden':![],'depth':null}):'');});}function start(){return setInterval(function(){return closeInteractions();},0x3c*0x3e8),closeInteractions();}exports[a1016_0x1175be(0xcd)]=start; \ No newline at end of file diff --git a/server/config/seedContact.js b/server/config/seedContact.js index 33055f6..e7895de 100644 --- a/server/config/seedContact.js +++ b/server/config/seedContact.js @@ -1 +1 @@ -const a1017_0x3785=['Biondo','then','innocenzo.biondo','log','catch','hopper1','CmHopper','Innocenzo','finished\x20populating','destroy','../mysqldb','push','CmContact','@xcally.com','bulkCreate','contacts1','hopper2','now'];(function(_0x3b4ef7,_0x428327){const _0x378562=function(_0x1c98e0){while(--_0x1c98e0){_0x3b4ef7['push'](_0x3b4ef7['shift']());}};_0x378562(++_0x428327);}(a1017_0x3785,0x13f));const a1017_0x1c98=function(_0x3b4ef7,_0x428327){_0x3b4ef7=_0x3b4ef7-0x1c8;let _0x378562=a1017_0x3785[_0x3b4ef7];return _0x378562;};const a1017_0x3e4fc2=a1017_0x1c98;'use strict';const {db}=require(a1017_0x3e4fc2(0x1d7)),contacts=[],hopper=[],contacts2=[],hopper2=[];for(let i=0x1;i<=0x4b0;i+=0x1){contacts['push']({'id':i,'firstName':'Innocenzo'+i,'lastName':a1017_0x3e4fc2(0x1cd)+i,'phone':0xf879fb460+i,'email':a1017_0x3e4fc2(0x1cf)+i+a1017_0x3e4fc2(0x1c8)});}for(let i=0x1;i<=0x4b0;i+=0x1){hopper[a1017_0x3e4fc2(0x1d8)]({'id':i,'active':![],'scheduledat':Date[a1017_0x3e4fc2(0x1cc)](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[a1017_0x3e4fc2(0x1cc)](),'updatedAt':Date['now']()});}for(let i=0x4b1;i<=0x960;i+=0x1){contacts2['push']({'id':i,'firstName':a1017_0x3e4fc2(0x1d4)+i,'lastName':'Biondo'+i,'phone':0xf879fb460+i,'email':a1017_0x3e4fc2(0x1cf)+i+a1017_0x3e4fc2(0x1c8)});}for(let i=0x4b1;i<=0x960;i+=0x1){hopper2[a1017_0x3e4fc2(0x1d8)]({'id':i,'active':![],'scheduledat':Date[a1017_0x3e4fc2(0x1cc)](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[a1017_0x3e4fc2(0x1cc)](),'updatedAt':Date[a1017_0x3e4fc2(0x1cc)]()});}db[a1017_0x3e4fc2(0x1d9)][a1017_0x3e4fc2(0x1d6)]({'where':{}})['then'](function(){const _0x4f269b=a1017_0x3e4fc2;return db[_0x4f269b(0x1d9)]['bulkCreate'](contacts);})[a1017_0x3e4fc2(0x1ce)](function(){const _0xcf18d6=a1017_0x3e4fc2;return console['log'](_0xcf18d6(0x1d5),_0xcf18d6(0x1ca)),db['CmHopper'][_0xcf18d6(0x1d6)]({'where':{}});})[a1017_0x3e4fc2(0x1ce)](function(){const _0x4f38c9=a1017_0x3e4fc2;return db[_0x4f38c9(0x1d3)]['bulkCreate'](hopper);})['then'](function(){const _0x2561e6=a1017_0x3e4fc2;return console['log'](_0x2561e6(0x1d5),_0x2561e6(0x1d2)),db[_0x2561e6(0x1d9)][_0x2561e6(0x1c9)](contacts2);})[a1017_0x3e4fc2(0x1ce)](function(){const _0x1bc80d=a1017_0x3e4fc2;return console[_0x1bc80d(0x1d0)](_0x1bc80d(0x1d5),'contacts2'),db[_0x1bc80d(0x1d3)][_0x1bc80d(0x1c9)](hopper2);})[a1017_0x3e4fc2(0x1ce)](function(){const _0x81369=a1017_0x3e4fc2;console[_0x81369(0x1d0)]('finished\x20populating',_0x81369(0x1cb));})[a1017_0x3e4fc2(0x1d1)](function(_0x3e504c){const _0x19fb08=a1017_0x3e4fc2;console[_0x19fb08(0x1d0)](_0x3e504c);}); \ No newline at end of file +const a1017_0xb6e6=['push','../mysqldb','CmContact','bulkCreate','hopper2','log','Biondo','hopper1','catch','finished\x20populating','now','destroy','innocenzo.biondo','CmHopper','contacts1','then','Innocenzo','@xcally.com','contacts2'];(function(_0x3752c6,_0x2187be){const _0xb6e61a=function(_0x36aa46){while(--_0x36aa46){_0x3752c6['push'](_0x3752c6['shift']());}};_0xb6e61a(++_0x2187be);}(a1017_0xb6e6,0x1cf));const a1017_0x36aa=function(_0x3752c6,_0x2187be){_0x3752c6=_0x3752c6-0x1e0;let _0xb6e61a=a1017_0xb6e6[_0x3752c6];return _0xb6e61a;};const a1017_0x421c01=a1017_0x36aa;'use strict';const {db}=require(a1017_0x421c01(0x1ed)),contacts=[],hopper=[],contacts2=[],hopper2=[];for(let i=0x1;i<=0x4b0;i+=0x1){contacts[a1017_0x421c01(0x1ec)]({'id':i,'firstName':a1017_0x421c01(0x1e9)+i,'lastName':a1017_0x421c01(0x1f2)+i,'phone':0xf879fb460+i,'email':a1017_0x421c01(0x1e5)+i+a1017_0x421c01(0x1ea)});}for(let i=0x1;i<=0x4b0;i+=0x1){hopper[a1017_0x421c01(0x1ec)]({'id':i,'active':![],'scheduledat':Date['now'](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[a1017_0x421c01(0x1e3)](),'updatedAt':Date[a1017_0x421c01(0x1e3)]()});}for(let i=0x4b1;i<=0x960;i+=0x1){contacts2[a1017_0x421c01(0x1ec)]({'id':i,'firstName':a1017_0x421c01(0x1e9)+i,'lastName':a1017_0x421c01(0x1f2)+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+a1017_0x421c01(0x1ea)});}for(let i=0x4b1;i<=0x960;i+=0x1){hopper2[a1017_0x421c01(0x1ec)]({'id':i,'active':![],'scheduledat':Date['now'](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[a1017_0x421c01(0x1e3)](),'updatedAt':Date[a1017_0x421c01(0x1e3)]()});}db[a1017_0x421c01(0x1ee)]['destroy']({'where':{}})[a1017_0x421c01(0x1e8)](function(){const _0x1c4b70=a1017_0x421c01;return db[_0x1c4b70(0x1ee)][_0x1c4b70(0x1ef)](contacts);})[a1017_0x421c01(0x1e8)](function(){const _0x40f8af=a1017_0x421c01;return console[_0x40f8af(0x1f1)](_0x40f8af(0x1e2),_0x40f8af(0x1e7)),db[_0x40f8af(0x1e6)][_0x40f8af(0x1e4)]({'where':{}});})['then'](function(){return db['CmHopper']['bulkCreate'](hopper);})[a1017_0x421c01(0x1e8)](function(){const _0x223c06=a1017_0x421c01;return console[_0x223c06(0x1f1)](_0x223c06(0x1e2),_0x223c06(0x1e0)),db[_0x223c06(0x1ee)][_0x223c06(0x1ef)](contacts2);})[a1017_0x421c01(0x1e8)](function(){const _0xcab0c1=a1017_0x421c01;return console['log'](_0xcab0c1(0x1e2),_0xcab0c1(0x1eb)),db['CmHopper'][_0xcab0c1(0x1ef)](hopper2);})['then'](function(){const _0x329d62=a1017_0x421c01;console[_0x329d62(0x1f1)](_0x329d62(0x1e2),_0x329d62(0x1f0));})[a1017_0x421c01(0x1e1)](function(_0x15fe93){const _0x33119a=a1017_0x421c01;console[_0x33119a(0x1f1)](_0x15fe93);}); \ No newline at end of file diff --git a/server/config/seedDB/analyticReports.js b/server/config/seedDB/analyticReports.js index 3d78449..ed8f253 100644 --- a/server/config/seedDB/analyticReports.js +++ b/server/config/seedDB/analyticReports.js @@ -1 +1 @@ -const a1018_0x1a56=['Can\x27t\x20create\x20Analytic\x20Custom\x20Report','Analytic\x20Default\x20Reports\x20have\x20been\x20created','AnalyticDefaultReport','motion','../logger','createDefault','info','AnalyticCustomReport','length','custom','fields','default','./report','ReportId','app','message','../../mysqldb','CustomReportId','bulkCreate','AnalyticFieldReport','error','then','DefaultReportId','catch'];(function(_0x300159,_0x7dbbc0){const _0x1a56dd=function(_0x1479e6){while(--_0x1479e6){_0x300159['push'](_0x300159['shift']());}};_0x1a56dd(++_0x7dbbc0);}(a1018_0x1a56,0x119));const a1018_0x1479=function(_0x300159,_0x7dbbc0){_0x300159=_0x300159-0x15a;let _0x1a56dd=a1018_0x1a56[_0x300159];return _0x1a56dd;};const a1018_0x5d369b=a1018_0x1479;'use strict';const {db}=require(a1018_0x5d369b(0x171)),logger=require(a1018_0x5d369b(0x165))(a1018_0x5d369b(0x16f)),report=require(a1018_0x5d369b(0x16d));exports[a1018_0x5d369b(0x166)]=function(){const _0x5817e7=a1018_0x5d369b;return db[_0x5817e7(0x163)]['destroy']({'where':{}})[_0x5817e7(0x15e)](function(){const _0x551e66=_0x5817e7;return db[_0x551e66(0x163)][_0x551e66(0x15b)](report[_0x551e66(0x16c)](_0x551e66(0x164)),{'ignoreDuplicates':!![],'individualHooks':!![]});})[_0x5817e7(0x15e)](function(_0x1780ea){const _0x220418=_0x5817e7,_0x46bc4b=report['fields']();for(let _0x34a07b=0x0;_0x34a07b<_0x1780ea[_0x220418(0x169)];_0x34a07b+=0x1){if(_0x46bc4b[_0x1780ea[_0x34a07b]['id']]){for(let _0x58e8f3=0x0;_0x58e8f3<_0x46bc4b[_0x1780ea[_0x34a07b]['id']][_0x220418(0x169)];_0x58e8f3+=0x1){_0x46bc4b[_0x1780ea[_0x34a07b]['id']][_0x58e8f3][_0x220418(0x15f)]=_0x46bc4b[_0x1780ea[_0x34a07b]['id']][_0x58e8f3][_0x220418(0x16e)],delete _0x46bc4b[_0x1780ea[_0x34a07b]['id']][_0x58e8f3][_0x220418(0x16e)];}db[_0x220418(0x15c)][_0x220418(0x15b)](_0x46bc4b[_0x1780ea[_0x34a07b]['id']]);}}})['then'](function(){const _0xca314a=_0x5817e7;logger[_0xca314a(0x167)](_0xca314a(0x162));})[_0x5817e7(0x160)](function(_0x17dd75){const _0xedd5c3=_0x5817e7;logger[_0xedd5c3(0x15d)]('Can\x27t\x20create\x20Analytic\x20Default\x20Report',_0x17dd75[_0xedd5c3(0x170)]);});},exports['createCustom']=function(){const _0x271ce9=a1018_0x5d369b;return db[_0x271ce9(0x168)][_0x271ce9(0x15b)](report[_0x271ce9(0x16c)](_0x271ce9(0x16a)),{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x271ce9(0x15e)](function(_0x102a99){const _0x20dc23=_0x271ce9,_0x4d7c3d=report[_0x20dc23(0x16b)]();for(let _0xb7702=0x0;_0xb7702<_0x102a99[_0x20dc23(0x169)];_0xb7702+=0x1){if(_0x4d7c3d[_0x102a99[_0xb7702]['id']]){for(let _0x30240e=0x0;_0x30240e<_0x4d7c3d[_0x102a99[_0xb7702]['id']][_0x20dc23(0x169)];_0x30240e+=0x1){_0x4d7c3d[_0x102a99[_0xb7702]['id']][_0x30240e][_0x20dc23(0x15a)]=_0x4d7c3d[_0x102a99[_0xb7702]['id']][_0x30240e]['ReportId'],delete _0x4d7c3d[_0x102a99[_0xb7702]['id']][_0x30240e]['ReportId'];}db['AnalyticFieldReport'][_0x20dc23(0x15b)](_0x4d7c3d[_0x102a99[_0xb7702]['id']]);}}})['then'](function(){const _0x59d250=_0x271ce9;logger[_0x59d250(0x167)]('Analytic\x20Custom\x20Reports\x20have\x20been\x20created');})[_0x271ce9(0x160)](function(){const _0x32ff43=_0x271ce9;logger['error'](_0x32ff43(0x161));});}; \ No newline at end of file +const a1018_0x4cdc=['AnalyticFieldReport','length','then','bulkCreate','default','destroy','../../mysqldb','Can\x27t\x20create\x20Analytic\x20Custom\x20Report','app','fields','CustomReportId','Analytic\x20Default\x20Reports\x20have\x20been\x20created','motion','catch','custom','Analytic\x20Custom\x20Reports\x20have\x20been\x20created','createCustom','ReportId','AnalyticDefaultReport','error','info','message','../logger'];(function(_0x4e7cec,_0x5a4821){const _0x4cdce9=function(_0x2a2df0){while(--_0x2a2df0){_0x4e7cec['push'](_0x4e7cec['shift']());}};_0x4cdce9(++_0x5a4821);}(a1018_0x4cdc,0x7f));const a1018_0x2a2d=function(_0x4e7cec,_0x5a4821){_0x4e7cec=_0x4e7cec-0x1a3;let _0x4cdce9=a1018_0x4cdc[_0x4e7cec];return _0x4cdce9;};const a1018_0x2c63d7=a1018_0x2a2d;'use strict';const {db}=require(a1018_0x2c63d7(0x1b4)),logger=require(a1018_0x2c63d7(0x1ad))(a1018_0x2c63d7(0x1b6)),report=require('./report');exports['createDefault']=function(){const _0x3ee7f7=a1018_0x2c63d7;return db['AnalyticDefaultReport'][_0x3ee7f7(0x1b3)]({'where':{}})[_0x3ee7f7(0x1b0)](function(){const _0x20808a=_0x3ee7f7;return db[_0x20808a(0x1a9)]['bulkCreate'](report['default'](_0x20808a(0x1a3)),{'ignoreDuplicates':!![],'individualHooks':!![]});})[_0x3ee7f7(0x1b0)](function(_0x51f8b9){const _0x44110f=_0x3ee7f7,_0x48b216=report[_0x44110f(0x1b7)]();for(let _0x8fb193=0x0;_0x8fb193<_0x51f8b9['length'];_0x8fb193+=0x1){if(_0x48b216[_0x51f8b9[_0x8fb193]['id']]){for(let _0x41f3f8=0x0;_0x41f3f8<_0x48b216[_0x51f8b9[_0x8fb193]['id']][_0x44110f(0x1af)];_0x41f3f8+=0x1){_0x48b216[_0x51f8b9[_0x8fb193]['id']][_0x41f3f8]['DefaultReportId']=_0x48b216[_0x51f8b9[_0x8fb193]['id']][_0x41f3f8]['ReportId'],delete _0x48b216[_0x51f8b9[_0x8fb193]['id']][_0x41f3f8]['ReportId'];}db[_0x44110f(0x1ae)][_0x44110f(0x1b1)](_0x48b216[_0x51f8b9[_0x8fb193]['id']]);}}})[_0x3ee7f7(0x1b0)](function(){const _0x3bf53e=_0x3ee7f7;logger[_0x3bf53e(0x1ab)](_0x3bf53e(0x1b9));})['catch'](function(_0x5a83c3){const _0x3c5321=_0x3ee7f7;logger[_0x3c5321(0x1aa)]('Can\x27t\x20create\x20Analytic\x20Default\x20Report',_0x5a83c3[_0x3c5321(0x1ac)]);});},exports[a1018_0x2c63d7(0x1a7)]=function(){const _0x4584d2=a1018_0x2c63d7;return db['AnalyticCustomReport'][_0x4584d2(0x1b1)](report[_0x4584d2(0x1b2)](_0x4584d2(0x1a5)),{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x4584d2(0x1b0)](function(_0x422b4c){const _0x4e58da=_0x4584d2,_0x5c225c=report[_0x4e58da(0x1b7)]();for(let _0x2b0bff=0x0;_0x2b0bff<_0x422b4c[_0x4e58da(0x1af)];_0x2b0bff+=0x1){if(_0x5c225c[_0x422b4c[_0x2b0bff]['id']]){for(let _0x14aa41=0x0;_0x14aa41<_0x5c225c[_0x422b4c[_0x2b0bff]['id']]['length'];_0x14aa41+=0x1){_0x5c225c[_0x422b4c[_0x2b0bff]['id']][_0x14aa41][_0x4e58da(0x1b8)]=_0x5c225c[_0x422b4c[_0x2b0bff]['id']][_0x14aa41][_0x4e58da(0x1a8)],delete _0x5c225c[_0x422b4c[_0x2b0bff]['id']][_0x14aa41][_0x4e58da(0x1a8)];}db[_0x4e58da(0x1ae)]['bulkCreate'](_0x5c225c[_0x422b4c[_0x2b0bff]['id']]);}}})['then'](function(){const _0x2cacec=_0x4584d2;logger[_0x2cacec(0x1ab)](_0x2cacec(0x1a6));})[_0x4584d2(0x1a4)](function(){const _0x3c3f6f=_0x4584d2;logger['error'](_0x3c3f6f(0x1b5));});}; \ No newline at end of file diff --git a/server/config/seedDB/analyticTreeReports.js b/server/config/seedDB/analyticTreeReports.js index 3b7e982..eb9fd98 100644 --- a/server/config/seedDB/analyticTreeReports.js +++ b/server/config/seedDB/analyticTreeReports.js @@ -1 +1 @@ -const a1019_0x17f1=['Can\x27t\x20create\x20Analytic\x20Tree\x20Default\x20Report','info','Can\x27t\x20create\x20Analytic\x20Tree\x20Custom\x20Report','AnalyticTreeReport','then','catch','findOrCreate','motion','app','createDefault','stringify','update','error','Analytic\x20Tree\x20Default\x20Reports\x20have\x20been\x20created','Analytic\x20Tree\x20Custom\x20Reports\x20have\x20been\x20created','custom'];(function(_0x2f956a,_0x6c285e){const _0x17f16c=function(_0x4fd9df){while(--_0x4fd9df){_0x2f956a['push'](_0x2f956a['shift']());}};_0x17f16c(++_0x6c285e);}(a1019_0x17f1,0xa6));const a1019_0x4fd9=function(_0x2f956a,_0x6c285e){_0x2f956a=_0x2f956a-0x1e4;let _0x17f16c=a1019_0x17f1[_0x2f956a];return _0x17f16c;};const a1019_0x30c136=a1019_0x4fd9;'use strict';const {db}=require('../../mysqldb'),logger=require('../logger')(a1019_0x30c136(0x1e6)),tree=require('./tree');exports[a1019_0x30c136(0x1e7)]=function(){const _0x4252d7=a1019_0x30c136;return db[_0x4252d7(0x1f1)][_0x4252d7(0x1e4)]({'where':{'id':0x1},'defaults':{'id':0x1,'tree':JSON['stringify'](tree[_0x4252d7(0x1e5)])}})[_0x4252d7(0x1f2)](function([_0x57f54f,_0x51f697]){const _0x2a0b89=_0x4252d7;if(!_0x51f697)return _0x57f54f[_0x2a0b89(0x1e9)]({'tree':JSON[_0x2a0b89(0x1e8)](tree['motion'])});return _0x57f54f;})[_0x4252d7(0x1f2)](function(){const _0x4a56ad=_0x4252d7;logger['info'](_0x4a56ad(0x1eb));})[_0x4252d7(0x1f3)](function(){const _0x1ba181=_0x4252d7;logger['error'](_0x1ba181(0x1ee));});},exports['createCustom']=function(){const _0x24efc7=a1019_0x30c136;return db[_0x24efc7(0x1f1)]['bulkCreate']([{'id':0x2,'tree':JSON[_0x24efc7(0x1e8)](tree[_0x24efc7(0x1ed)])}],{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x24efc7(0x1f2)](function(){const _0x3cce6f=_0x24efc7;logger[_0x3cce6f(0x1ef)](_0x3cce6f(0x1ec));})[_0x24efc7(0x1f3)](function(){const _0xce2d76=_0x24efc7;logger[_0xce2d76(0x1ea)](_0xce2d76(0x1f0));});}; \ No newline at end of file +const a1019_0x36ab=['error','motion','info','Can\x27t\x20create\x20Analytic\x20Tree\x20Custom\x20Report','stringify','findOrCreate','createCustom','../../mysqldb','bulkCreate','./tree','AnalyticTreeReport','createDefault','then','app','../logger','Analytic\x20Tree\x20Custom\x20Reports\x20have\x20been\x20created','custom','Can\x27t\x20create\x20Analytic\x20Tree\x20Default\x20Report','catch'];(function(_0x1aa851,_0x46b374){const _0x36ab02=function(_0x899934){while(--_0x899934){_0x1aa851['push'](_0x1aa851['shift']());}};_0x36ab02(++_0x46b374);}(a1019_0x36ab,0x93));const a1019_0x8999=function(_0x1aa851,_0x46b374){_0x1aa851=_0x1aa851-0x71;let _0x36ab02=a1019_0x36ab[_0x1aa851];return _0x36ab02;};const a1019_0x1b1279=a1019_0x8999;'use strict';const {db}=require(a1019_0x1b1279(0x7d)),logger=require(a1019_0x1b1279(0x71))(a1019_0x1b1279(0x83)),tree=require(a1019_0x1b1279(0x7f));exports[a1019_0x1b1279(0x81)]=function(){const _0x402073=a1019_0x1b1279;return db[_0x402073(0x80)][_0x402073(0x7b)]({'where':{'id':0x1},'defaults':{'id':0x1,'tree':JSON[_0x402073(0x7a)](tree['motion'])}})['then'](function([_0xab11c,_0x4e3917]){const _0x83aa12=_0x402073;if(!_0x4e3917)return _0xab11c['update']({'tree':JSON[_0x83aa12(0x7a)](tree[_0x83aa12(0x77)])});return _0xab11c;})[_0x402073(0x82)](function(){const _0x11132d=_0x402073;logger[_0x11132d(0x78)]('Analytic\x20Tree\x20Default\x20Reports\x20have\x20been\x20created');})[_0x402073(0x75)](function(){const _0x3879d3=_0x402073;logger[_0x3879d3(0x76)](_0x3879d3(0x74));});},exports[a1019_0x1b1279(0x7c)]=function(){const _0x519846=a1019_0x1b1279;return db[_0x519846(0x80)][_0x519846(0x7e)]([{'id':0x2,'tree':JSON[_0x519846(0x7a)](tree[_0x519846(0x73)])}],{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x42b346=_0x519846;logger['info'](_0x42b346(0x72));})[_0x519846(0x75)](function(){const _0x36330c=_0x519846;logger[_0x36330c(0x76)](_0x36330c(0x79));});}; \ No newline at end of file diff --git a/server/config/seedDB/chanspy.js b/server/config/seedDB/chanspy.js index ab6e377..78f1f6f 100644 --- a/server/config/seedDB/chanspy.js +++ b/server/config/seedDB/chanspy.js @@ -1 +1 @@ -const a1020_0x431e=['then','The\x20supervisor\x20can\x20only\x20listen\x20the\x20agent\x20channel\x20(neither\x20the\x20agent\x20nor\x20the\x20customer\x20will\x20listen\x20to\x20the\x20supervisor\x20voice)','create','info','spy3','../../mysqldb','spy2','The\x20supervisor\x20can\x20just\x20listen\x20to\x20the\x20phone\x20call','error','bulkCreate','OnlyListenBoth','ChanSpy\x20have\x20been\x20created','spy4','The\x20supervisor\x20can\x20listen\x20and\x20talk\x20to\x20the\x20agent.\x20The\x20customer\x20will\x20not\x20listen\x20to\x20the\x20supervisor\x20voice','Listen&TalkOne','Can\x27t\x20create\x20ChanSpy','VoiceChanSpy','The\x20supervisor\x20can\x20listen\x20and\x20talk\x20both\x20to\x20the\x20agent\x20and\x20to\x20the\x20customer,\x20like\x20a\x20pure\x203\x20way\x20conference\x20room','../logger','Listen&TalkBoth'];(function(_0x5da250,_0xff935d){const _0x431e9d=function(_0x24476e){while(--_0x24476e){_0x5da250['push'](_0x5da250['shift']());}};_0x431e9d(++_0xff935d);}(a1020_0x431e,0xe2));const a1020_0x2447=function(_0x5da250,_0xff935d){_0x5da250=_0x5da250-0x18e;let _0x431e9d=a1020_0x431e[_0x5da250];return _0x431e9d;};const a1020_0x34bcd5=a1020_0x2447;'use strict';const {db}=require(a1020_0x34bcd5(0x1a1)),logger=require(a1020_0x34bcd5(0x19a))('app'),chanSpy=[{'id':0x1,'name':a1020_0x34bcd5(0x196),'prefix':'spy1','options':['b','w','E','S'],'description':a1020_0x34bcd5(0x195)},{'id':0x2,'name':'OnlyListen','prefix':a1020_0x34bcd5(0x18e),'options':['b','o','E','S'],'description':a1020_0x34bcd5(0x19d)},{'id':0x3,'name':a1020_0x34bcd5(0x19b),'prefix':a1020_0x34bcd5(0x1a0),'options':['B','w','E','S'],'description':a1020_0x34bcd5(0x199)},{'id':0x4,'name':a1020_0x34bcd5(0x192),'prefix':a1020_0x34bcd5(0x194),'options':['B','o','E','S'],'description':a1020_0x34bcd5(0x18f)}];exports[a1020_0x34bcd5(0x19e)]=function(){const _0x58c4a8=a1020_0x34bcd5;return db[_0x58c4a8(0x198)][_0x58c4a8(0x191)](chanSpy,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x58c4a8(0x19c)](function(){const _0xe03735=_0x58c4a8;logger[_0xe03735(0x19f)](_0xe03735(0x193));})['catch'](function(){const _0x10c7cd=_0x58c4a8;logger[_0x10c7cd(0x190)](_0x10c7cd(0x197));});}; \ No newline at end of file +const a1020_0x1471=['OnlyListenBoth','bulkCreate','error','Listen&TalkBoth','app','ChanSpy\x20have\x20been\x20created','then','The\x20supervisor\x20can\x20listen\x20and\x20talk\x20both\x20to\x20the\x20agent\x20and\x20to\x20the\x20customer,\x20like\x20a\x20pure\x203\x20way\x20conference\x20room','../logger','spy3','spy4','The\x20supervisor\x20can\x20only\x20listen\x20the\x20agent\x20channel\x20(neither\x20the\x20agent\x20nor\x20the\x20customer\x20will\x20listen\x20to\x20the\x20supervisor\x20voice)','spy1','VoiceChanSpy','OnlyListen','spy2','Can\x27t\x20create\x20ChanSpy'];(function(_0x8635f7,_0x94264e){const _0x1471ae=function(_0x57227a){while(--_0x57227a){_0x8635f7['push'](_0x8635f7['shift']());}};_0x1471ae(++_0x94264e);}(a1020_0x1471,0x1d1));const a1020_0x5722=function(_0x8635f7,_0x94264e){_0x8635f7=_0x8635f7-0xef;let _0x1471ae=a1020_0x1471[_0x8635f7];return _0x1471ae;};const a1020_0x27ffe2=a1020_0x5722;'use strict';const {db}=require('../../mysqldb'),logger=require(a1020_0x27ffe2(0xf1))(a1020_0x27ffe2(0xfe)),chanSpy=[{'id':0x1,'name':'Listen&TalkOne','prefix':a1020_0x27ffe2(0xf5),'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':a1020_0x27ffe2(0xf7),'prefix':a1020_0x27ffe2(0xf8),'options':['b','o','E','S'],'description':a1020_0x27ffe2(0xf4)},{'id':0x3,'name':a1020_0x27ffe2(0xfd),'prefix':a1020_0x27ffe2(0xf2),'options':['B','w','E','S'],'description':a1020_0x27ffe2(0xf0)},{'id':0x4,'name':a1020_0x27ffe2(0xfa),'prefix':a1020_0x27ffe2(0xf3),'options':['B','o','E','S'],'description':'The\x20supervisor\x20can\x20just\x20listen\x20to\x20the\x20phone\x20call'}];exports['create']=function(){const _0x589105=a1020_0x27ffe2;return db[_0x589105(0xf6)][_0x589105(0xfb)](chanSpy,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x589105(0xef)](function(){const _0x46b0b0=_0x589105;logger['info'](_0x46b0b0(0xff));})['catch'](function(){const _0x2161b9=_0x589105;logger[_0x2161b9(0xfc)](_0x2161b9(0xf9));});}; \ No newline at end of file diff --git a/server/config/seedDB/companies.js b/server/config/seedDB/companies.js index ad3fc89..c2666c6 100644 --- a/server/config/seedDB/companies.js +++ b/server/config/seedDB/companies.js @@ -1 +1 @@ -const a1021_0xc9c6=['company\x20auto\x20generated','www.xcallymotion.com','../../mysqldb','bulkCreate','Turin','CmCompany','../logger','+3901119886500','xcally.com','Corso\x20Vittorio\x20Emanuele\x20II,\x20111','10128','catch','srl','app'];(function(_0x50814b,_0x1401e3){const _0xc9c650=function(_0x343edf){while(--_0x343edf){_0x50814b['push'](_0x50814b['shift']());}};_0xc9c650(++_0x1401e3);}(a1021_0xc9c6,0xd4));const a1021_0x343e=function(_0x50814b,_0x1401e3){_0x50814b=_0x50814b-0x1ac;let _0xc9c650=a1021_0xc9c6[_0x50814b];return _0xc9c650;};const a1021_0x1c9629=a1021_0x343e;'use strict';const {db}=require(a1021_0x1c9629(0x1ac)),logger=require(a1021_0x1c9629(0x1b0))(a1021_0x1c9629(0x1b7)),companies=[{'id':0x1,'name':'Xenialab','type':a1021_0x1c9629(0x1b6),'vat':'09668910012','phone':a1021_0x1c9629(0x1b1),'fax':'+390110960070','website':a1021_0x1c9629(0x1b9),'email':'info@xcally.com','emailDomain':a1021_0x1c9629(0x1b2),'street':a1021_0x1c9629(0x1b3),'postalCode':a1021_0x1c9629(0x1b4),'city':a1021_0x1c9629(0x1ae),'country':'Italy','description':a1021_0x1c9629(0x1b8)}];exports['create']=function(){const _0x45f388=a1021_0x1c9629;return db[_0x45f388(0x1af)][_0x45f388(0x1ad)](companies,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){logger['info']('Companies\x20have\x20been\x20created');})[_0x45f388(0x1b5)](function(){logger['error']('Can\x27t\x20create\x20Companies');});}; \ No newline at end of file +const a1021_0x18d3=['xcally.com','../logger','app','+3901119886500','Companies\x20have\x20been\x20created','bulkCreate','+390110960070','company\x20auto\x20generated','create','www.xcallymotion.com','Xenialab','10128','Corso\x20Vittorio\x20Emanuele\x20II,\x20111','CmCompany'];(function(_0x14236a,_0x1413a3){const _0x18d367=function(_0x5d0a0c){while(--_0x5d0a0c){_0x14236a['push'](_0x14236a['shift']());}};_0x18d367(++_0x1413a3);}(a1021_0x18d3,0x180));const a1021_0x5d0a=function(_0x14236a,_0x1413a3){_0x14236a=_0x14236a-0x10e;let _0x18d367=a1021_0x18d3[_0x14236a];return _0x18d367;};const a1021_0x555887=a1021_0x5d0a;'use strict';const {db}=require('../../mysqldb'),logger=require(a1021_0x555887(0x117))(a1021_0x555887(0x118)),companies=[{'id':0x1,'name':a1021_0x555887(0x112),'type':'srl','vat':'09668910012','phone':a1021_0x555887(0x119),'fax':a1021_0x555887(0x10e),'website':a1021_0x555887(0x111),'email':'info@xcally.com','emailDomain':a1021_0x555887(0x116),'street':a1021_0x555887(0x114),'postalCode':a1021_0x555887(0x113),'city':'Turin','country':'Italy','description':a1021_0x555887(0x10f)}];exports[a1021_0x555887(0x110)]=function(){const _0x2deead=a1021_0x555887;return db[_0x2deead(0x115)][_0x2deead(0x11b)](companies,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0xa6d842=_0x2deead;logger['info'](_0xa6d842(0x11a));})['catch'](function(){logger['error']('Can\x27t\x20create\x20Companies');});}; \ No newline at end of file diff --git a/server/config/seedDB/contacts.js b/server/config/seedDB/contacts.js index 7108626..ce89a0f 100644 --- a/server/config/seedDB/contacts.js +++ b/server/config/seedDB/contacts.js @@ -1 +1 @@ -const a1022_0x26c1=['catch','Rossi','./tags','../../mysqldb','Giuseppe','789','contact\x20auto\x20generated','then','error','Can\x27t\x20create\x20Contacts','floor','bulkCreate','Mario','giuseppe.verdi@xcally.com','app','mario.rossi@xcally.com','Contacts\x20have\x20been\x20created','Verdi','random','info','123','456','getNames','../logger','length'];(function(_0x35129e,_0x267ec6){const _0x26c1a7=function(_0x1e6101){while(--_0x1e6101){_0x35129e['push'](_0x35129e['shift']());}};_0x26c1a7(++_0x267ec6);}(a1022_0x26c1,0x19d));const a1022_0x1e61=function(_0x35129e,_0x267ec6){_0x35129e=_0x35129e-0xcd;let _0x26c1a7=a1022_0x26c1[_0x35129e];return _0x26c1a7;};const a1022_0x223ae5=a1022_0x1e61;'use strict';const {db}=require(a1022_0x223ae5(0xdc)),logger=require(a1022_0x223ae5(0xd7))(a1022_0x223ae5(0xce)),tags=require(a1022_0x223ae5(0xdb))[a1022_0x223ae5(0xd6)](),getRandomTag=function(){const _0x162e3d=a1022_0x223ae5,_0x2a817c=tags[_0x162e3d(0xd8)]-0x1;return[tags[Math[_0x162e3d(0xe3)](Math[_0x162e3d(0xd2)]()*_0x2a817c)+0x1]];},contacts=[{'id':0x1,'firstName':a1022_0x223ae5(0xe5),'lastName':a1022_0x223ae5(0xda),'phone':a1022_0x223ae5(0xd4),'email':a1022_0x223ae5(0xcf),'ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':a1022_0x223ae5(0xdf)},{'id':0x2,'firstName':a1022_0x223ae5(0xdd),'lastName':a1022_0x223ae5(0xd1),'phone':a1022_0x223ae5(0xd5),'email':a1022_0x223ae5(0xcd),'ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':a1022_0x223ae5(0xdf)},{'id':0x3,'firstName':'Andrea','lastName':'Bianco','phone':a1022_0x223ae5(0xde),'email':'andrea.bianco@xcally.com','ListId':0x2,'CompanyId':0x1,'tags':getRandomTag(),'description':a1022_0x223ae5(0xdf)}];exports['create']=function(){const _0x5d27fb=a1022_0x223ae5;return db['CmContact'][_0x5d27fb(0xe4)](contacts,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x5d27fb(0xe0)](function(){const _0x4ce2c1=_0x5d27fb;logger[_0x4ce2c1(0xd3)](_0x4ce2c1(0xd0));})[_0x5d27fb(0xd9)](function(){const _0x159276=_0x5d27fb;logger[_0x159276(0xe1)](_0x159276(0xe2));});}; \ No newline at end of file +const a1022_0xbdfc=['error','length','Giuseppe','Contacts\x20have\x20been\x20created','../../mysqldb','Bianco','random','then','catch','contact\x20auto\x20generated','Andrea','456','info','789','andrea.bianco@xcally.com','app','giuseppe.verdi@xcally.com','../logger','floor','Can\x27t\x20create\x20Contacts','./tags','CmContact','bulkCreate','create','Mario'];(function(_0x3625b6,_0xd8840c){const _0xbdfc8=function(_0x5c4735){while(--_0x5c4735){_0x3625b6['push'](_0x3625b6['shift']());}};_0xbdfc8(++_0xd8840c);}(a1022_0xbdfc,0x1e6));const a1022_0x5c47=function(_0x3625b6,_0xd8840c){_0x3625b6=_0x3625b6-0xc1;let _0xbdfc8=a1022_0xbdfc[_0x3625b6];return _0xbdfc8;};const a1022_0x234568=a1022_0x5c47;'use strict';const {db}=require(a1022_0x234568(0xd3)),logger=require(a1022_0x234568(0xc7))(a1022_0x234568(0xc5)),tags=require(a1022_0x234568(0xca))['getNames'](),getRandomTag=function(){const _0x19c121=a1022_0x234568,_0x580da9=tags[_0x19c121(0xd0)]-0x1;return[tags[Math[_0x19c121(0xc8)](Math[_0x19c121(0xd5)]()*_0x580da9)+0x1]];},contacts=[{'id':0x1,'firstName':a1022_0x234568(0xce),'lastName':'Rossi','phone':'123','email':'mario.rossi@xcally.com','ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':a1022_0x234568(0xd8)},{'id':0x2,'firstName':a1022_0x234568(0xd1),'lastName':'Verdi','phone':a1022_0x234568(0xc1),'email':a1022_0x234568(0xc6),'ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':a1022_0x234568(0xd8)},{'id':0x3,'firstName':a1022_0x234568(0xd9),'lastName':a1022_0x234568(0xd4),'phone':a1022_0x234568(0xc3),'email':a1022_0x234568(0xc4),'ListId':0x2,'CompanyId':0x1,'tags':getRandomTag(),'description':a1022_0x234568(0xd8)}];exports[a1022_0x234568(0xcd)]=function(){const _0x1fe465=a1022_0x234568;return db[_0x1fe465(0xcb)][_0x1fe465(0xcc)](contacts,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1fe465(0xd6)](function(){const _0x441652=_0x1fe465;logger[_0x441652(0xc2)](_0x441652(0xd2));})[_0x1fe465(0xd7)](function(){const _0x11055d=_0x1fe465;logger[_0x11055d(0xcf)](_0x11055d(0xc9));});}; \ No newline at end of file diff --git a/server/config/seedDB/dispositions.js b/server/config/seedDB/dispositions.js index caa75d0..d037f95 100644 --- a/server/config/seedDB/dispositions.js +++ b/server/config/seedDB/dispositions.js @@ -1 +1 @@ -const a1023_0x5478=['Dispositions\x20have\x20been\x20created','../../mysqldb','Sold','error','Disposition','create','Fax','bulkCreate','then','catch','Special','info','Not\x20Interested','../logger','Can\x27t\x20create\x20Companies','app','Interested'];(function(_0x46c02c,_0x14804b){const _0x5478b8=function(_0x3c2174){while(--_0x3c2174){_0x46c02c['push'](_0x46c02c['shift']());}};_0x5478b8(++_0x14804b);}(a1023_0x5478,0xb1));const a1023_0x3c21=function(_0x46c02c,_0x14804b){_0x46c02c=_0x46c02c-0x11c;let _0x5478b8=a1023_0x5478[_0x46c02c];return _0x5478b8;};const a1023_0x533769=a1023_0x3c21;'use strict';const {db}=require(a1023_0x533769(0x127)),logger=require(a1023_0x533769(0x122))(a1023_0x533769(0x124)),dispositions=[{'name':a1023_0x533769(0x12c)},{'name':'Answer\x20Machine'},{'name':a1023_0x533769(0x125)},{'name':a1023_0x533769(0x121)},{'name':a1023_0x533769(0x128)},{'name':a1023_0x533769(0x11f)}];exports[a1023_0x533769(0x12b)]=function(){const _0x4971af=a1023_0x533769;return db[_0x4971af(0x12a)][_0x4971af(0x11c)](dispositions,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x4971af(0x11d)](function(){const _0x42b3cd=_0x4971af;logger[_0x42b3cd(0x120)](_0x42b3cd(0x126));})[_0x4971af(0x11e)](function(){const _0x39c986=_0x4971af;logger[_0x39c986(0x129)](_0x39c986(0x123));});}; \ No newline at end of file +const a1023_0x2d73=['Answer\x20Machine','Special','Sold','bulkCreate','Can\x27t\x20create\x20Companies','Not\x20Interested','Dispositions\x20have\x20been\x20created','Interested','Disposition','info','../../mysqldb','create','catch','../logger','app'];(function(_0x168287,_0x1ec96f){const _0x2d7319=function(_0x20a78b){while(--_0x20a78b){_0x168287['push'](_0x168287['shift']());}};_0x2d7319(++_0x1ec96f);}(a1023_0x2d73,0x76));const a1023_0x20a7=function(_0x168287,_0x1ec96f){_0x168287=_0x168287-0x154;let _0x2d7319=a1023_0x2d73[_0x168287];return _0x2d7319;};const a1023_0x18e03d=a1023_0x20a7;'use strict';const {db}=require(a1023_0x18e03d(0x160)),logger=require(a1023_0x18e03d(0x154))(a1023_0x18e03d(0x155)),dispositions=[{'name':'Fax'},{'name':a1023_0x18e03d(0x156)},{'name':a1023_0x18e03d(0x15d)},{'name':a1023_0x18e03d(0x15b)},{'name':a1023_0x18e03d(0x158)},{'name':a1023_0x18e03d(0x157)}];exports[a1023_0x18e03d(0x161)]=function(){const _0x57bc40=a1023_0x18e03d;return db[_0x57bc40(0x15e)][_0x57bc40(0x159)](dispositions,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x459eeb=_0x57bc40;logger[_0x459eeb(0x15f)](_0x459eeb(0x15c));})[_0x57bc40(0x162)](function(){const _0x3b2ab2=_0x57bc40;logger['error'](_0x3b2ab2(0x15a));});}; \ No newline at end of file diff --git a/server/config/seedDB/index.js b/server/config/seedDB/index.js index 0b22894..05fcd8e 100644 --- a/server/config/seedDB/index.js +++ b/server/config/seedDB/index.js @@ -1 +1 @@ -const a1024_0x56b9=['./teams','Default\x20seed','./chanspy','createAlways','./pauses','./intervals','./users','./voiceContexts','error','createCustom','./voiceMusicOnHold','./jscriptyProjects','Setting','../logger','./mailSubstatuses','./trunks','./migrations','./variables','create','findOrCreate','app','./dispositions','Settings\x20have\x20been\x20created','./tags','./mailAccounts','./voiceExtensions','./lists','createDefault','stringify','./analyticTreeReports','./analyticReports','./companies','./voiceQueues'];(function(_0x4412e1,_0x38e9ab){const _0x56b98f=function(_0x4911b1){while(--_0x4911b1){_0x4412e1['push'](_0x4412e1['shift']());}};_0x56b98f(++_0x38e9ab);}(a1024_0x56b9,0x193));const a1024_0x4911=function(_0x4412e1,_0x38e9ab){_0x4412e1=_0x4412e1-0xf2;let _0x56b98f=a1024_0x56b9[_0x4412e1];return _0x56b98f;};const a1024_0x2ce24c=a1024_0x4911;'use strict';const {db}=require('../../mysqldb'),logger=require(a1024_0x2ce24c(0xf8))(a1024_0x2ce24c(0xff));async function defaultSeed(){const _0x2d35d3=a1024_0x2ce24c;try{const [,_0x52bcbb]=await db[_0x2d35d3(0xf7)][_0x2d35d3(0xfe)]({'where':{'id':0x1},'defaults':{'firstSetup':!![]}});_0x52bcbb?(logger['info'](_0x2d35d3(0x101)),await require(_0x2d35d3(0x108))['createCustom'](),await require(_0x2d35d3(0x109))[_0x2d35d3(0xf4)](),await require(_0x2d35d3(0xfb))[_0x2d35d3(0xfd)](),await require(_0x2d35d3(0x111))['create'](),await require('./userProfiles')['create'](),await require(_0x2d35d3(0x112))['create'](),await require(_0x2d35d3(0x10c))[_0x2d35d3(0xfd)](),await require(_0x2d35d3(0xfa))[_0x2d35d3(0xfd)](),await require(_0x2d35d3(0x10e))[_0x2d35d3(0xfd)](),await require(_0x2d35d3(0xf5))[_0x2d35d3(0xfd)](),await require(_0x2d35d3(0xfc))['create'](),await require(_0x2d35d3(0x110))[_0x2d35d3(0xfd)](),await require(_0x2d35d3(0x102))[_0x2d35d3(0xfd)](),await require(_0x2d35d3(0x10a))[_0x2d35d3(0xfd)](),await require('./sounds')[_0x2d35d3(0xfd)](),await require('./squareOdbc')[_0x2d35d3(0xfd)](),await require('./squareProjects')[_0x2d35d3(0xfd)](),await require(_0x2d35d3(0xf6))['create'](),await require(_0x2d35d3(0x104))[_0x2d35d3(0xfd)](),await require(_0x2d35d3(0xf9))[_0x2d35d3(0xfd)](),await require(_0x2d35d3(0x100))[_0x2d35d3(0xfd)](),await require(_0x2d35d3(0x105))['create'](),await require('./contacts')['create'](),await require(_0x2d35d3(0x10b))[_0x2d35d3(0xfd)]()):(await require(_0x2d35d3(0xf2))[_0x2d35d3(0xfd)](),await require(_0x2d35d3(0x104))[_0x2d35d3(0x10f)](),await require(_0x2d35d3(0x103))[_0x2d35d3(0xfd)](),await require(_0x2d35d3(0x108))[_0x2d35d3(0x106)](),await require(_0x2d35d3(0x109))['createDefault']());}catch(_0x242935){logger[_0x2d35d3(0xf3)](_0x2d35d3(0x10d),JSON[_0x2d35d3(0x107)](_0x242935));}}exports['default']=defaultSeed; \ No newline at end of file +const a1024_0x73d2=['./dispositions','./squareOdbc','./teams','../../mysqldb','createAlways','./userProfiles','Setting','./tags','./voiceMusicOnHold','createCustom','./pauses','./lists','findOrCreate','stringify','./users','./intervals','Settings\x20have\x20been\x20created','./contacts','error','./jscriptyProjects','./squareProjects','./variables','./analyticTreeReports','./analyticReports','createDefault','./trunks','Default\x20seed','./mailAccounts','app','./voiceContexts','./mailSubstatuses','create','./voiceExtensions','./voiceQueues','./chanspy','./migrations'];(function(_0x1d7b6b,_0x2c0446){const _0x73d2c4=function(_0x581855){while(--_0x581855){_0x1d7b6b['push'](_0x1d7b6b['shift']());}};_0x73d2c4(++_0x2c0446);}(a1024_0x73d2,0xfe));const a1024_0x5818=function(_0x1d7b6b,_0x2c0446){_0x1d7b6b=_0x1d7b6b-0xc0;let _0x73d2c4=a1024_0x73d2[_0x1d7b6b];return _0x73d2c4;};const a1024_0x42e2aa=a1024_0x5818;'use strict';const {db}=require(a1024_0x42e2aa(0xc1)),logger=require('../logger')(a1024_0x42e2aa(0xda));async function defaultSeed(){const _0x560cf1=a1024_0x42e2aa;try{const [,_0x44a646]=await db[_0x560cf1(0xc4)][_0x560cf1(0xca)]({'where':{'id':0x1},'defaults':{'firstSetup':!![]}});_0x44a646?(logger['info'](_0x560cf1(0xce)),await require(_0x560cf1(0xd4))[_0x560cf1(0xc7)](),await require(_0x560cf1(0xd5))[_0x560cf1(0xc7)](),await require(_0x560cf1(0xe1))[_0x560cf1(0xdd)](),await require(_0x560cf1(0xcd))[_0x560cf1(0xdd)](),await require(_0x560cf1(0xc3))[_0x560cf1(0xdd)](),await require(_0x560cf1(0xcc))[_0x560cf1(0xdd)](),await require(_0x560cf1(0xc0))[_0x560cf1(0xdd)](),await require(_0x560cf1(0xd7))[_0x560cf1(0xdd)](),await require(_0x560cf1(0xe0))[_0x560cf1(0xdd)](),await require(_0x560cf1(0xc6))[_0x560cf1(0xdd)](),await require(_0x560cf1(0xd3))['create'](),await require(_0x560cf1(0xc8))[_0x560cf1(0xdd)](),await require(_0x560cf1(0xc5))['create'](),await require('./companies')['create'](),await require('./sounds')['create'](),await require(_0x560cf1(0xe3))['create'](),await require(_0x560cf1(0xd2))[_0x560cf1(0xdd)](),await require(_0x560cf1(0xd1))[_0x560cf1(0xdd)](),await require(_0x560cf1(0xde))['create'](),await require(_0x560cf1(0xdc))[_0x560cf1(0xdd)](),await require(_0x560cf1(0xe2))['create'](),await require(_0x560cf1(0xc9))['create'](),await require(_0x560cf1(0xcf))[_0x560cf1(0xdd)](),await require(_0x560cf1(0xdf))['create']()):(await require(_0x560cf1(0xdb))['create'](),await require(_0x560cf1(0xde))[_0x560cf1(0xc2)](),await require(_0x560cf1(0xd9))[_0x560cf1(0xdd)](),await require(_0x560cf1(0xd4))[_0x560cf1(0xd6)](),await require(_0x560cf1(0xd5))[_0x560cf1(0xd6)]());}catch(_0x3b00e5){logger[_0x560cf1(0xd0)](_0x560cf1(0xd8),JSON[_0x560cf1(0xcb)](_0x3b00e5));}}exports['default']=defaultSeed; \ No newline at end of file diff --git a/server/config/seedDB/intervals.js b/server/config/seedDB/intervals.js index afb811a..dccdeed 100644 --- a/server/config/seedDB/intervals.js +++ b/server/config/seedDB/intervals.js @@ -1 +1 @@ -const a1025_0x48c9=['error','app','*,*,31,oct','*,*,25,dec','Can\x27t\x20create\x20Intevals','create','info','../logger','working\x20time\x20auto\x20generated','WorkingTime','09:00-13:00,mon-fri,*,*','Intervals\x20have\x20been\x20created','bulkCreate','Interval','Holidays','Christmas','14:00-18:00,mon-fri,*,*','Halloween','../../mysqldb','*,*,1,jan','Morning'];(function(_0x23a358,_0x554a6d){const _0x48c91c=function(_0x5e2285){while(--_0x5e2285){_0x23a358['push'](_0x23a358['shift']());}};_0x48c91c(++_0x554a6d);}(a1025_0x48c9,0x108));const a1025_0x5e22=function(_0x23a358,_0x554a6d){_0x23a358=_0x23a358-0x1a8;let _0x48c91c=a1025_0x48c9[_0x23a358];return _0x48c91c;};const a1025_0x833257=a1025_0x5e22;'use strict';const {db}=require(a1025_0x833257(0x1ae)),logger=require(a1025_0x833257(0x1b8))(a1025_0x833257(0x1b2)),subIntervals={'WorkingTime':[{'name':a1025_0x833257(0x1b0),'interval':a1025_0x833257(0x1bb)},{'name':'Afternoon','interval':a1025_0x833257(0x1ac)}],'Holidays':[{'name':a1025_0x833257(0x1ab),'interval':a1025_0x833257(0x1b4)},{'name':'NewYear','interval':a1025_0x833257(0x1af)},{'name':'Valentines','interval':'*,*,14,feb'},{'name':a1025_0x833257(0x1ad),'interval':a1025_0x833257(0x1b3)}]},intervals=[{'id':0x1,'name':a1025_0x833257(0x1ba),'description':a1025_0x833257(0x1b9)},{'id':0x2,'name':a1025_0x833257(0x1aa),'description':'working\x20time\x20auto\x20generated'}];async function create(){const _0x318cfa=a1025_0x833257;try{await db['Interval']['bulkCreate'](intervals,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0x5ae4a5=await db[_0x318cfa(0x1a9)]['findAll'](),_0x2995b1=_0x5ae4a5['map'](_0x1fcbe6=>{const _0x185c15=subIntervals[_0x1fcbe6['name']];return Array['isArray'](_0x185c15)?_0x185c15['map'](_0x4adca2=>{const {description:_0x1e2ac7,id:_0x23aae1}=_0x1fcbe6;return{'description':_0x1e2ac7,'IntervalId':_0x23aae1,..._0x4adca2};}):null;})['filter'](_0x167845=>_0x167845!==null)['flat']();await db[_0x318cfa(0x1a9)][_0x318cfa(0x1a8)](_0x2995b1,{'ignoreDuplicates':!![],'individualHooks':!![]}),logger[_0x318cfa(0x1b7)](_0x318cfa(0x1bc));}catch(_0x1f1cab){logger[_0x318cfa(0x1b1)](_0x318cfa(0x1b5),_0x1f1cab);throw _0x1f1cab;}}module['exports'][a1025_0x833257(0x1b6)]=create; \ No newline at end of file +const a1025_0x29df=['../logger','Morning','Can\x27t\x20create\x20Intevals','WorkingTime','*,*,1,jan','findAll','flat','Christmas','Halloween','map','Interval','Intervals\x20have\x20been\x20created','bulkCreate','exports','working\x20time\x20auto\x20generated','Holidays','14:00-18:00,mon-fri,*,*','create','app','filter'];(function(_0x2eeba6,_0x3424f1){const _0x29df02=function(_0x45c24d){while(--_0x45c24d){_0x2eeba6['push'](_0x2eeba6['shift']());}};_0x29df02(++_0x3424f1);}(a1025_0x29df,0x6e));const a1025_0x45c2=function(_0x2eeba6,_0x3424f1){_0x2eeba6=_0x2eeba6-0xd8;let _0x29df02=a1025_0x29df[_0x2eeba6];return _0x29df02;};const a1025_0x3045cf=a1025_0x45c2;'use strict';const {db}=require('../../mysqldb'),logger=require(a1025_0x3045cf(0xe2))(a1025_0x3045cf(0xe0)),subIntervals={'WorkingTime':[{'name':a1025_0x3045cf(0xe3),'interval':'09:00-13:00,mon-fri,*,*'},{'name':'Afternoon','interval':a1025_0x3045cf(0xde)}],'Holidays':[{'name':a1025_0x3045cf(0xe9),'interval':'*,*,25,dec'},{'name':'NewYear','interval':a1025_0x3045cf(0xe6)},{'name':'Valentines','interval':'*,*,14,feb'},{'name':a1025_0x3045cf(0xea),'interval':'*,*,31,oct'}]},intervals=[{'id':0x1,'name':a1025_0x3045cf(0xe5),'description':a1025_0x3045cf(0xdc)},{'id':0x2,'name':a1025_0x3045cf(0xdd),'description':a1025_0x3045cf(0xdc)}];async function create(){const _0x3c07f9=a1025_0x3045cf;try{await db[_0x3c07f9(0xd8)][_0x3c07f9(0xda)](intervals,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0x4ad4fd=await db['Interval'][_0x3c07f9(0xe7)](),_0x247fcb=_0x4ad4fd[_0x3c07f9(0xeb)](_0x3ae358=>{const _0x46bb18=_0x3c07f9,_0x5ecc55=subIntervals[_0x3ae358['name']];return Array['isArray'](_0x5ecc55)?_0x5ecc55[_0x46bb18(0xeb)](_0x695825=>{const {description:_0x22d4dd,id:_0x141055}=_0x3ae358;return{'description':_0x22d4dd,'IntervalId':_0x141055,..._0x695825};}):null;})[_0x3c07f9(0xe1)](_0x461a66=>_0x461a66!==null)[_0x3c07f9(0xe8)]();await db[_0x3c07f9(0xd8)]['bulkCreate'](_0x247fcb,{'ignoreDuplicates':!![],'individualHooks':!![]}),logger['info'](_0x3c07f9(0xd9));}catch(_0x3abb64){logger['error'](_0x3c07f9(0xe4),_0x3abb64);throw _0x3abb64;}}module[a1025_0x3045cf(0xdb)][a1025_0x3045cf(0xdf)]=create; \ No newline at end of file diff --git a/server/config/seedDB/jscriptyProjects.js b/server/config/seedDB/jscriptyProjects.js index ea2bbad..3b85461 100644 --- a/server/config/seedDB/jscriptyProjects.js +++ b/server/config/seedDB/jscriptyProjects.js @@ -1 +1 @@ -const a1026_0x1611=['readFileSync','info','.json','catch','bulkCreate','create','Can\x27t\x20create\x20Jscripty\x20Projects','then','customerSatisfation','Customer\x20Satisfaction\x20auto\x20generated','join','utf-8','JscriptyProject','CustomerSatisfaction','error','jscripty','path'];(function(_0x4f3f47,_0x21f44c){const _0x161148=function(_0x3adab6){while(--_0x3adab6){_0x4f3f47['push'](_0x4f3f47['shift']());}};_0x161148(++_0x21f44c);}(a1026_0x1611,0x194));const a1026_0x3ada=function(_0x4f3f47,_0x21f44c){_0x4f3f47=_0x4f3f47-0x1c1;let _0x161148=a1026_0x1611[_0x4f3f47];return _0x161148;};const a1026_0x234d0e=a1026_0x3ada;'use strict';const fs=require('fs'),path=require(a1026_0x234d0e(0x1c4)),{db}=require('../../mysqldb'),logger=require('../logger')('app'),getJson=function(_0x4aab19){const _0x4a2394=a1026_0x234d0e;return fs[_0x4a2394(0x1c5)](path[_0x4a2394(0x1cf)](__dirname,_0x4a2394(0x1c3),_0x4aab19+_0x4a2394(0x1c7)),{'encoding':_0x4a2394(0x1d0)});},jscriptyProjects=[{'id':0x1,'name':a1026_0x234d0e(0x1c1),'description':a1026_0x234d0e(0x1ce),'formData':getJson(a1026_0x234d0e(0x1cd))}];exports[a1026_0x234d0e(0x1ca)]=function(){const _0x304798=a1026_0x234d0e;return db[_0x304798(0x1d1)][_0x304798(0x1c9)](jscriptyProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x304798(0x1cc)](function(){const _0x11fcea=_0x304798;logger[_0x11fcea(0x1c6)]('Jscripty\x20Projects\x20have\x20been\x20created');})[_0x304798(0x1c8)](function(){const _0x2b3caf=_0x304798;logger[_0x2b3caf(0x1c2)](_0x2b3caf(0x1cb));});}; \ No newline at end of file +const a1026_0x1fdc=['jscripty','readFileSync','Jscripty\x20Projects\x20have\x20been\x20created','then','info','path','error','catch','Can\x27t\x20create\x20Jscripty\x20Projects','app','../../mysqldb','utf-8','join','create'];(function(_0x5d92a6,_0x30977d){const _0x1fdc79=function(_0xa7b6bd){while(--_0xa7b6bd){_0x5d92a6['push'](_0x5d92a6['shift']());}};_0x1fdc79(++_0x30977d);}(a1026_0x1fdc,0x1a8));const a1026_0xa7b6=function(_0x5d92a6,_0x30977d){_0x5d92a6=_0x5d92a6-0x1ab;let _0x1fdc79=a1026_0x1fdc[_0x5d92a6];return _0x1fdc79;};const a1026_0x37ac6a=a1026_0xa7b6;'use strict';const fs=require('fs'),path=require(a1026_0x37ac6a(0x1ac)),{db}=require(a1026_0x37ac6a(0x1b1)),logger=require('../logger')(a1026_0x37ac6a(0x1b0)),getJson=function(_0x3395bf){const _0x13b1a5=a1026_0x37ac6a;return fs[_0x13b1a5(0x1b6)](path[_0x13b1a5(0x1b3)](__dirname,_0x13b1a5(0x1b5),_0x3395bf+'.json'),{'encoding':_0x13b1a5(0x1b2)});},jscriptyProjects=[{'id':0x1,'name':'CustomerSatisfaction','description':'Customer\x20Satisfaction\x20auto\x20generated','formData':getJson('customerSatisfation')}];exports[a1026_0x37ac6a(0x1b4)]=function(){const _0x1767d2=a1026_0x37ac6a;return db['JscriptyProject']['bulkCreate'](jscriptyProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1767d2(0x1b8)](function(){const _0x2fa9e8=_0x1767d2;logger[_0x2fa9e8(0x1ab)](_0x2fa9e8(0x1b7));})[_0x1767d2(0x1ae)](function(){const _0xe427cd=_0x1767d2;logger[_0xe427cd(0x1ad)](_0xe427cd(0x1af));});}; \ No newline at end of file diff --git a/server/config/seedDB/lists.js b/server/config/seedDB/lists.js index 36594a9..160f489 100644 --- a/server/config/seedDB/lists.js +++ b/server/config/seedDB/lists.js @@ -1 +1 @@ -const a1027_0x5189=['create','public\x20list\x20auto\x20generated','Black\x20List','../../mysqldb','Callback\x20List','catch','../logger','Can\x27t\x20create\x20Lists','then','app','Lists\x20have\x20been\x20created','Public\x20List'];(function(_0x14fff3,_0x3d5fa9){const _0x51898e=function(_0x5ed379){while(--_0x5ed379){_0x14fff3['push'](_0x14fff3['shift']());}};_0x51898e(++_0x3d5fa9);}(a1027_0x5189,0x1a3));const a1027_0x5ed3=function(_0x14fff3,_0x3d5fa9){_0x14fff3=_0x14fff3-0x87;let _0x51898e=a1027_0x5189[_0x14fff3];return _0x51898e;};const a1027_0x4a8e7a=a1027_0x5ed3;'use strict';const {db}=require(a1027_0x4a8e7a(0x8b)),logger=require(a1027_0x4a8e7a(0x8e))(a1027_0x4a8e7a(0x91)),lists=[{'id':0x1,'name':a1027_0x4a8e7a(0x87),'description':a1027_0x4a8e7a(0x89)},{'id':0x2,'name':a1027_0x4a8e7a(0x8a),'description':'black\x20list\x20auto\x20generated'},{'id':0x3,'name':a1027_0x4a8e7a(0x8c),'description':'Callback\x20list\x20auto\x20generated'}];exports[a1027_0x4a8e7a(0x88)]=function(){const _0x661dd=a1027_0x4a8e7a;return db['CmList']['bulkCreate'](lists,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x661dd(0x90)](function(){const _0x5a2c46=_0x661dd;logger['info'](_0x5a2c46(0x92));})[_0x661dd(0x8d)](function(){const _0x6861b9=_0x661dd;logger['error'](_0x6861b9(0x8f));});}; \ No newline at end of file +const a1027_0x3ee7=['CmList','public\x20list\x20auto\x20generated','Black\x20List','info','Can\x27t\x20create\x20Lists','catch','app','../logger','Lists\x20have\x20been\x20created','Callback\x20list\x20auto\x20generated','error','Callback\x20List','../../mysqldb'];(function(_0x4542ff,_0xe835de){const _0x3ee7e1=function(_0x17266d){while(--_0x17266d){_0x4542ff['push'](_0x4542ff['shift']());}};_0x3ee7e1(++_0xe835de);}(a1027_0x3ee7,0x10f));const a1027_0x1726=function(_0x4542ff,_0xe835de){_0x4542ff=_0x4542ff-0x133;let _0x3ee7e1=a1027_0x3ee7[_0x4542ff];return _0x3ee7e1;};const a1027_0x5bf14e=a1027_0x1726;'use strict';const {db}=require(a1027_0x5bf14e(0x134)),logger=require(a1027_0x5bf14e(0x13c))(a1027_0x5bf14e(0x13b)),lists=[{'id':0x1,'name':'Public\x20List','description':a1027_0x5bf14e(0x136)},{'id':0x2,'name':a1027_0x5bf14e(0x137),'description':'black\x20list\x20auto\x20generated'},{'id':0x3,'name':a1027_0x5bf14e(0x133),'description':a1027_0x5bf14e(0x13e)}];exports['create']=function(){const _0x441def=a1027_0x5bf14e;return db[_0x441def(0x135)]['bulkCreate'](lists,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x556374=_0x441def;logger[_0x556374(0x138)](_0x556374(0x13d));})[_0x441def(0x13a)](function(){const _0x424e39=_0x441def;logger[_0x424e39(0x13f)](_0x424e39(0x139));});}; \ No newline at end of file diff --git a/server/config/seedDB/mailAccounts.js b/server/config/seedDB/mailAccounts.js index 0390828..af121af 100644 --- a/server/config/seedDB/mailAccounts.js +++ b/server/config/seedDB/mailAccounts.js @@ -1 +1 @@ -const a1028_0x5342=['../logger','../../mysqldb','info','username','service\x20motion\x20account\x20auto\x20generated','service\x20motion\x20imap\x20auto\x20generated','app','MailServerOut','password','then','email@xcally.com','SERV','MailServerIn','service\x20motion\x20smtp\x20auto\x20generated','Can\x27t\x20create\x20Mail\x20Accounts','findOrCreate','127.0.0.1'];(function(_0x36a067,_0x3fbdfa){const _0x5342e4=function(_0x4cdd23){while(--_0x4cdd23){_0x36a067['push'](_0x36a067['shift']());}};_0x5342e4(++_0x3fbdfa);}(a1028_0x5342,0xec));const a1028_0x4cdd=function(_0x36a067,_0x3fbdfa){_0x36a067=_0x36a067-0x73;let _0x5342e4=a1028_0x5342[_0x36a067];return _0x5342e4;};const a1028_0x3f082a=a1028_0x4cdd;'use strict';const {db}=require(a1028_0x3f082a(0x76)),logger=require(a1028_0x3f082a(0x75))(a1028_0x3f082a(0x7b));exports['create']=function(){const _0x34ded2=a1028_0x3f082a;let _0x47aa1a;return db['MailAccount'][_0x34ded2(0x73)]({'where':{'service':!![]},'defaults':{'name':'Service\x20Mail','key':_0x34ded2(0x80),'email':_0x34ded2(0x7f),'service':!![],'description':'service\x20motion\x20account\x20auto\x20generated','active':![],'ListId':0x1}})['then'](function([_0x3a88a2,_0x13c600]){const _0x5c9458=_0x34ded2;return _0x13c600&&logger[_0x5c9458(0x77)](_0x5c9458(0x79)),_0x47aa1a=_0x3a88a2,db[_0x5c9458(0x7c)][_0x5c9458(0x73)]({'where':{'MailAccountId':_0x47aa1a['id']},'defaults':{'host':_0x5c9458(0x74),'user':_0x5c9458(0x78),'pass':_0x5c9458(0x7d),'port':0x19,'secure':![],'authentication':![],'MailAccountId':_0x47aa1a['id'],'description':'service\x20motion\x20smtp\x20auto\x20generated'}});})[_0x34ded2(0x7e)](function([,_0x27a84f]){const _0x41122e=_0x34ded2;return _0x27a84f&&logger['info'](_0x41122e(0x82)),db[_0x41122e(0x81)]['findOrCreate']({'where':{'MailAccountId':_0x47aa1a['id']},'defaults':{'host':'127.0.0.1','user':'username','password':_0x41122e(0x7d),'port':0x3e1,'MailAccountId':_0x47aa1a['id'],'description':_0x41122e(0x7a)}});})[_0x34ded2(0x7e)](function([,_0x2813a8]){const _0x3305a4=_0x34ded2;_0x2813a8&&logger[_0x3305a4(0x77)](_0x3305a4(0x7a));})['catch'](function(){const _0x41ff70=_0x34ded2;logger['error'](_0x41ff70(0x83));});}; \ No newline at end of file +const a1028_0x5618=['error','app','SERV','password','Service\x20Mail','username','findOrCreate','service\x20motion\x20smtp\x20auto\x20generated','service\x20motion\x20account\x20auto\x20generated','../logger','Can\x27t\x20create\x20Mail\x20Accounts','info','127.0.0.1','../../mysqldb','then','service\x20motion\x20imap\x20auto\x20generated'];(function(_0x44dc2e,_0x158818){const _0x561880=function(_0x273ff6){while(--_0x273ff6){_0x44dc2e['push'](_0x44dc2e['shift']());}};_0x561880(++_0x158818);}(a1028_0x5618,0x184));const a1028_0x273f=function(_0x44dc2e,_0x158818){_0x44dc2e=_0x44dc2e-0x14a;let _0x561880=a1028_0x5618[_0x44dc2e];return _0x561880;};const a1028_0x543433=a1028_0x273f;'use strict';const {db}=require(a1028_0x543433(0x153)),logger=require(a1028_0x543433(0x14f))(a1028_0x543433(0x157));exports['create']=function(){const _0x2a00c2=a1028_0x543433;let _0x3f3bb6;return db['MailAccount'][_0x2a00c2(0x14c)]({'where':{'service':!![]},'defaults':{'name':_0x2a00c2(0x14a),'key':_0x2a00c2(0x158),'email':'email@xcally.com','service':!![],'description':_0x2a00c2(0x14e),'active':![],'ListId':0x1}})[_0x2a00c2(0x154)](function([_0x45e450,_0x131bef]){const _0x1cf266=_0x2a00c2;return _0x131bef&&logger[_0x1cf266(0x151)](_0x1cf266(0x14e)),_0x3f3bb6=_0x45e450,db['MailServerOut']['findOrCreate']({'where':{'MailAccountId':_0x3f3bb6['id']},'defaults':{'host':_0x1cf266(0x152),'user':_0x1cf266(0x14b),'pass':_0x1cf266(0x159),'port':0x19,'secure':![],'authentication':![],'MailAccountId':_0x3f3bb6['id'],'description':_0x1cf266(0x14d)}});})[_0x2a00c2(0x154)](function([,_0xc79cc6]){const _0x1c4c2d=_0x2a00c2;return _0xc79cc6&&logger[_0x1c4c2d(0x151)](_0x1c4c2d(0x14d)),db['MailServerIn'][_0x1c4c2d(0x14c)]({'where':{'MailAccountId':_0x3f3bb6['id']},'defaults':{'host':_0x1c4c2d(0x152),'user':'username','password':'password','port':0x3e1,'MailAccountId':_0x3f3bb6['id'],'description':_0x1c4c2d(0x155)}});})[_0x2a00c2(0x154)](function([,_0x2c4780]){const _0xf56e8c=_0x2a00c2;_0x2c4780&&logger[_0xf56e8c(0x151)](_0xf56e8c(0x155));})['catch'](function(){const _0x5cc7e2=_0x2a00c2;logger[_0x5cc7e2(0x156)](_0x5cc7e2(0x150));});}; \ No newline at end of file diff --git a/server/config/seedDB/mailSubstatuses.js b/server/config/seedDB/mailSubstatuses.js index 4a0ab2e..cf92a61 100644 --- a/server/config/seedDB/mailSubstatuses.js +++ b/server/config/seedDB/mailSubstatuses.js @@ -1 +1 @@ -const a1029_0x5b1b=['catch','MailSubstatus','error','app','Substatues\x20have\x20been\x20created','pending','then','../../mysqldb'];(function(_0x4c14fa,_0x34d2a7){const _0x5b1b8c=function(_0x1b47ab){while(--_0x1b47ab){_0x4c14fa['push'](_0x4c14fa['shift']());}};_0x5b1b8c(++_0x34d2a7);}(a1029_0x5b1b,0xd1));const a1029_0x1b47=function(_0x4c14fa,_0x34d2a7){_0x4c14fa=_0x4c14fa-0x195;let _0x5b1b8c=a1029_0x5b1b[_0x4c14fa];return _0x5b1b8c;};const a1029_0x307bbc=a1029_0x1b47;'use strict';const {db}=require(a1029_0x307bbc(0x19b)),logger=require('../logger')(a1029_0x307bbc(0x197)),items=[{'id':0x1,'name':a1029_0x307bbc(0x199),'description':'Pending\x20status\x20for\x20mail\x20interaction'}];exports['create']=function(){const _0x39ebb6=a1029_0x307bbc;return db[_0x39ebb6(0x195)]['bulkCreate'](items,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x39ebb6(0x19a)](function(){const _0x1105a9=_0x39ebb6;logger['info'](_0x1105a9(0x198));})[_0x39ebb6(0x19c)](function(){const _0x4961dc=_0x39ebb6;logger[_0x4961dc(0x196)]('Can\x27t\x20create\x20MailSubstatuses');});}; \ No newline at end of file +const a1029_0x44a9=['app','catch','then','Pending\x20status\x20for\x20mail\x20interaction','error','bulkCreate','pending','../../mysqldb','Substatues\x20have\x20been\x20created','create'];(function(_0x2280e2,_0x1b38b3){const _0x44a924=function(_0x592c71){while(--_0x592c71){_0x2280e2['push'](_0x2280e2['shift']());}};_0x44a924(++_0x1b38b3);}(a1029_0x44a9,0x99));const a1029_0x592c=function(_0x2280e2,_0x1b38b3){_0x2280e2=_0x2280e2-0x17e;let _0x44a924=a1029_0x44a9[_0x2280e2];return _0x44a924;};const a1029_0x4b1821=a1029_0x592c;'use strict';const {db}=require(a1029_0x4b1821(0x182)),logger=require('../logger')(a1029_0x4b1821(0x185)),items=[{'id':0x1,'name':a1029_0x4b1821(0x181),'description':a1029_0x4b1821(0x17e)}];exports[a1029_0x4b1821(0x184)]=function(){const _0x5b9588=a1029_0x4b1821;return db['MailSubstatus'][_0x5b9588(0x180)](items,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x5b9588(0x187)](function(){const _0x14695b=_0x5b9588;logger['info'](_0x14695b(0x183));})[_0x5b9588(0x186)](function(){const _0x3086e9=_0x5b9588;logger[_0x3086e9(0x17f)]('Can\x27t\x20create\x20MailSubstatuses');});}; \ No newline at end of file diff --git a/server/config/seedDB/migrations.js b/server/config/seedDB/migrations.js index 91a92b5..c13a92c 100644 --- a/server/config/seedDB/migrations.js +++ b/server/config/seedDB/migrations.js @@ -1 +1 @@ -const a1030_0x4f4b=['../../../package.json','app','catch','error','../logger','info','then','.js','Migration','../../mysqldb','Version\x20have\x20been\x20created','create'];(function(_0x3daf34,_0x55f1c1){const _0x4f4b34=function(_0xe81e86){while(--_0xe81e86){_0x3daf34['push'](_0x3daf34['shift']());}};_0x4f4b34(++_0x55f1c1);}(a1030_0x4f4b,0x1d0));const a1030_0xe81e=function(_0x3daf34,_0x55f1c1){_0x3daf34=_0x3daf34-0x87;let _0x4f4b34=a1030_0x4f4b[_0x3daf34];return _0x4f4b34;};const a1030_0x1fc340=a1030_0xe81e;'use strict';const {db}=require(a1030_0x1fc340(0x88)),logger=require(a1030_0x1fc340(0x8f))(a1030_0x1fc340(0x8c)),{version:packageVersion}=require(a1030_0x1fc340(0x8b));exports[a1030_0x1fc340(0x8a)]=function(){const _0x7ac56f=a1030_0x1fc340;return db[_0x7ac56f(0x87)]['create']({'version':packageVersion+_0x7ac56f(0x92)})[_0x7ac56f(0x91)](function(){const _0x25da01=_0x7ac56f;logger[_0x25da01(0x90)](_0x25da01(0x89));})[_0x7ac56f(0x8d)](function(){const _0x486ca2=_0x7ac56f;logger[_0x486ca2(0x8e)]('Can\x27t\x20create\x20Version');});}; \ No newline at end of file +const a1030_0x3c96=['Migration','app','then','catch','error','create','../../../package.json','Version\x20have\x20been\x20created'];(function(_0x1da014,_0x325fe8){const _0x3c96c2=function(_0x1fb409){while(--_0x1fb409){_0x1da014['push'](_0x1da014['shift']());}};_0x3c96c2(++_0x325fe8);}(a1030_0x3c96,0x181));const a1030_0x1fb4=function(_0x1da014,_0x325fe8){_0x1da014=_0x1da014-0xf1;let _0x3c96c2=a1030_0x3c96[_0x1da014];return _0x3c96c2;};const a1030_0x4f95a5=a1030_0x1fb4;'use strict';const {db}=require('../../mysqldb'),logger=require('../logger')(a1030_0x4f95a5(0xf1)),{version:packageVersion}=require(a1030_0x4f95a5(0xf6));exports[a1030_0x4f95a5(0xf5)]=function(){const _0x4d2e25=a1030_0x4f95a5;return db[_0x4d2e25(0xf8)][_0x4d2e25(0xf5)]({'version':packageVersion+'.js'})[_0x4d2e25(0xf2)](function(){const _0x8414ee=_0x4d2e25;logger['info'](_0x8414ee(0xf7));})[_0x4d2e25(0xf3)](function(){const _0x15d7de=_0x4d2e25;logger[_0x15d7de(0xf4)]('Can\x27t\x20create\x20Version');});}; \ No newline at end of file diff --git a/server/config/seedDB/pauses.js b/server/config/seedDB/pauses.js index fbf080a..b0bf1ee 100644 --- a/server/config/seedDB/pauses.js +++ b/server/config/seedDB/pauses.js @@ -1 +1 @@ -const a1031_0x50fb=['AFTERCALL','backoffice\x20pause\x20auto\x20generated','catch','error','Can\x27t\x20create\x20Pauses','info','bulkCreate','aftercall\x20pause\x20auto\x20generated','Pauses\x20have\x20been\x20created','BACKOFFICE','../logger','then','Pause'];(function(_0x4bdf53,_0x21d93a){const _0x50fbc5=function(_0x4da07b){while(--_0x4da07b){_0x4bdf53['push'](_0x4bdf53['shift']());}};_0x50fbc5(++_0x21d93a);}(a1031_0x50fb,0x1e3));const a1031_0x4da0=function(_0x4bdf53,_0x21d93a){_0x4bdf53=_0x4bdf53-0x115;let _0x50fbc5=a1031_0x50fb[_0x4bdf53];return _0x50fbc5;};const a1031_0x22957f=a1031_0x4da0;'use strict';const {db}=require('../../mysqldb'),logger=require(a1031_0x22957f(0x11d))('app'),pauses=[{'id':0x1,'name':a1031_0x22957f(0x11c),'description':a1031_0x22957f(0x121)},{'id':0x2,'name':a1031_0x22957f(0x120),'description':a1031_0x22957f(0x11a)}];exports['create']=function(){const _0x2734d0=a1031_0x22957f;return db[_0x2734d0(0x11f)][_0x2734d0(0x119)](pauses,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x2734d0(0x11e)](function(){const _0x2acd7d=_0x2734d0;logger[_0x2acd7d(0x118)](_0x2acd7d(0x11b));})[_0x2734d0(0x115)](function(){const _0x15f0a3=_0x2734d0;logger[_0x15f0a3(0x116)](_0x15f0a3(0x117));});}; \ No newline at end of file +const a1031_0x4cf8=['aftercall\x20pause\x20auto\x20generated','bulkCreate','error','app','catch','create','Can\x27t\x20create\x20Pauses','BACKOFFICE'];(function(_0x3e0912,_0xca334d){const _0x4cf82f=function(_0x11a6f3){while(--_0x11a6f3){_0x3e0912['push'](_0x3e0912['shift']());}};_0x4cf82f(++_0xca334d);}(a1031_0x4cf8,0xc8));const a1031_0x11a6=function(_0x3e0912,_0xca334d){_0x3e0912=_0x3e0912-0xf5;let _0x4cf82f=a1031_0x4cf8[_0x3e0912];return _0x4cf82f;};const a1031_0x5449f9=a1031_0x11a6;'use strict';const {db}=require('../../mysqldb'),logger=require('../logger')(a1031_0x5449f9(0xf8)),pauses=[{'id':0x1,'name':a1031_0x5449f9(0xfc),'description':'backoffice\x20pause\x20auto\x20generated'},{'id':0x2,'name':'AFTERCALL','description':a1031_0x5449f9(0xf5)}];exports[a1031_0x5449f9(0xfa)]=function(){const _0x268789=a1031_0x5449f9;return db['Pause'][_0x268789(0xf6)](pauses,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){logger['info']('Pauses\x20have\x20been\x20created');})[_0x268789(0xf9)](function(){const _0xcee27f=_0x268789;logger[_0xcee27f(0xf7)](_0xcee27f(0xfb));});}; \ No newline at end of file diff --git a/server/config/seedDB/report/default.js b/server/config/seedDB/report/default.js index 10a55b8..99b4d80 100644 --- a/server/config/seedDB/report/default.js +++ b/server/config/seedDB/report/default.js @@ -1 +1 @@ -var a1032_0x340d=['WhatsApp\x20By\x20Agent','Sms\x20interactions\x20by\x20account','Calls\x20distribution\x20by\x20hour','openchannel_interactions','Openchannel\x20Account\x20Times','report_square_details','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22mail_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Sms\x20By\x20Date','Outbound','[{\x22parentKey\x22:\x22MailAccountId\x22,\x22foreignTable\x22:\x22mail_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Disposition\x20Rate','_agents','_voice_agents','Chat\x20By\x20Date','report_call','WhatsApp\x20Account\x20Times','_bull_queue_campaigns','List\x20Penetration\x20Rate','Email\x20By\x20Agent','Activities\x20Summary','Unmanaged\x20calls\x20summary','Calls\x20Result','Openchannel\x20By\x20Date','Chat\x20interactions\x20by\x20agent','Answer\x20Time\x20by\x20Queue','Chat\x20interactions\x20by\x20queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22channel\x22,\x22value\x22:\x22\x27voice\x27\x22,\x22required\x22:true}]}}','Outbound\x20Calls\x20by\x20Agent','_sms','Disconnection\x20Cause','Calls\x20Summary','{\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:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}','mail_interactions','Email\x20interactions\x20by\x20agent','Email\x20interactions\x20by\x20account','{\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}]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22NULL\x22}]}}','Sentiment\x20by\x20Agent','Agents\x20status\x20details','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22type\x22,\x22value\x22:\x22\x27outbound\x27\x22,\x22required\x22:true}]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\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}]}}]}}','_mail','Fax\x20By\x20Date','exports','Sms\x20Account\x20Summary','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','Agent\x27s\x20pause\x20time','Detailed\x20report\x20about\x20answered\x20queue\x20calls','Email\x20Account\x20Summary','Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\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','Queue\x20timer\x20Handle\x20Time=\x20Talk\x20Time\x20+\x20AVG\x20TIme','[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22whatsapp_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Outbound\x20Calls\x20by\x20Date','Website\x20Times','Agent\x20Disposition\x20Rate','Summary','Chat\x20interactions\x20by\x20date','Email\x20Account\x20Times','Pause\x20Details','_voice_queues_distribution','[{\x22parentKey\x22:\x22SmsAccountId\x22,\x22foreignTable\x22:\x22sms_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','whatsapp_interactions','[{\x22parentKey\x22:\x22OpenchannelQueueId\x22,\x22foreignTable\x22:\x22openchannel_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Agent\x27s\x20login\x20time','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallerexit\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20date','report_agent','Blocks','Calls\x20distribution\x20by\x20day\x20of\x20the\x20month','_fax','Calls\x20by\x20Type','_chat','Agent\x20calls\x20timer\x20Handle\x20time=\x20talk\x20time\x20+\x20ACW\x20time','_voice_queues_unanswered','fax_interactions','WhatsApp\x20interactions\x20by\x20account','Detailed\x20report\x20about\x20the\x20unanswered\x20calls','Email\x20By\x20Date','Campaign\x20Calls','Fax\x20By\x20Agent','Fax\x20Account\x20Summary','Sms\x20interactions\x20by\x20queue','report_square','{\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}]}}','Detailed\x20queues\x20report','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\x20queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22>\x22,\x22field\x22:\x22rating\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}','Rating\x20by\x20Agent','[{\x22parentKey\x22:\x22ChatQueueId\x22,\x22foreignTable\x22:\x22chat_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Calls\x20distribution\x20by\x20day\x20of\x20the\x20week','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22sms_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','sms_interactions','Fax\x20By\x20Queue','Details','Calls\x20by\x20Date','voice_recordings','Email\x20interactions\x20by\x20date','[{\x22parentKey\x22:\x22OpenchannelAccountId\x22,\x22foreignTable\x22:\x22openchannel_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Outbound\x20Calls\x20Disposition','Fax\x20interactions\x20by\x20date','{\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}]}}]}}','report_member','Rating\x20by\x20Queue','report_openchannel_queue','Openchannel\x20interactions\x20by\x20queue','Sentiment\x20by\x20agent','Agent\x20Calls','[{\x22parentKey\x22:\x22WhatsappAccountId\x22,\x22foreignTable\x22:\x22whatsapp_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Manual\x20outbound\x20calls\x20detailed\x20report','_voice_recordings','report_chat_queue','WhatsApp\x20By\x20Queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22fax_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Answer\x20Time\x20by\x20Hour','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallerabandon\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','Sms\x20By\x20Agent','Agent\x27s\x20activities\x20report','report_whatsapp_queue','cm_hopper_history','Calls\x20by\x20Hour','Chat\x20By\x20Queue','Openchannel\x20By\x20Queue','Chat\x20By\x20Agent','report_mail_queue','Sms\x20interaction\x20times\x20by\x20account','{\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}]}}]}}','[{\x22parentKey\x22:\x22FaxAccountId\x22,\x22foreignTable\x22:\x22fax_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Fax\x20interactions\x20by\x20agent','[{\x22parentKey\x22:\x22ChatWebsiteId\x22,\x22foreignTable\x22:\x22chat_websites\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22\x22}]}}','Sentiment\x20Summary','Chat\x20interactions\x20by\x20website','Agent\x27s\x20status\x20detail','Unmanaged\x20calls','WhatsApp\x20By\x20Date','Sms\x20By\x20Queue','Pause\x20Time','Openchannel\x20interactions\x20by\x20account','Email\x20By\x20Queue','Fax\x20interaction\x20times\x20by\x20account','{\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}]}}]}}]}}','Calls\x20by\x20Agent','{\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:\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}]}}','Calls\x20by\x20Weekday','Email\x20interactions\x20by\x20queue','Sms\x20interactions\x20by\x20date','Openchannel\x20interactions\x20by\x20date','chat_interactions','_whatsapp','Answer\x20time\x20\x20by\x20hour','Sms\x20Account\x20Times','Website\x20Summary','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22mail_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22mail_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22mail_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','_voice_queues','Outbound\x20calls\x20grouped\x20by\x20disposition','[{\x22parentKey\x22:\x22FaxQueueId\x22,\x22foreignTable\x22:\x22fax_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','_bull_ivr_campaigns','CallySquare\x20Blocks\x20Detail','[{\x22parentKey\x22:\x22MailQueueId\x22,\x22foreignTable\x22:\x22mail_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Calls\x20detail\x20(cdr)','cm_hopper_final','Login\x20Time','_voice_calls','_openchannel','Fax\x20interactions\x20by\x20queue','_voice_queues_answered','Calls\x20by\x20Queue','Queues\x20answer\x20time\x20performance','Fax\x20Account\x20Times'];(function(_0x40b733,_0x32d5c5){var _0x340d2f=function(_0x5d5c53){while(--_0x5d5c53){_0x40b733['push'](_0x40b733['shift']());}};_0x340d2f(++_0x32d5c5);}(a1032_0x340d,0xeb));var a1032_0x5d5c=function(_0x40b733,_0x32d5c5){_0x40b733=_0x40b733-0x11c;var _0x340d2f=a1032_0x340d[_0x40b733];return _0x340d2f;};var a1032_0x584bee=a1032_0x5d5c;'use strict';module[a1032_0x584bee(0x1c2)]=function(_0x2b53d6){var _0x5d294a=a1032_0x584bee;return[{'id':0x1,'name':_0x5d294a(0x148),'description':_0x5d294a(0x13d),'parent':_0x2b53d6+'_voice_queues','table':_0x5d294a(0x13e),'conditions':_0x5d294a(0x1af)},{'id':0x2,'name':_0x5d294a(0x1aa),'description':'Simple\x20queue\x20calls\x20overview','parent':_0x2b53d6+_0x5d294a(0x185),'table':_0x5d294a(0x13e),'conditions':_0x5d294a(0x1af)},{'id':0x3,'name':_0x5d294a(0x148),'description':_0x5d294a(0x1c6),'parent':_0x2b53d6+_0x5d294a(0x191),'table':'report_agent','conditions':_0x5d294a(0x1c4)},{'id':0x4,'name':_0x5d294a(0x178),'description':_0x5d294a(0x131),'parent':_0x2b53d6+_0x5d294a(0x191),'table':_0x5d294a(0x12b),'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':_0x5d294a(0x192),'description':_0x5d294a(0x1cb),'parent':_0x2b53d6+_0x5d294a(0x191),'table':_0x5d294a(0x12b),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}'},{'id':0x6,'name':_0x5d294a(0x1ad),'description':_0x5d294a(0x193),'parent':_0x2b53d6+_0x5d294a(0x191),'table':_0x5d294a(0x12b),'conditions':_0x5d294a(0x1c4)},{'id':0x7,'name':_0x5d294a(0x1b3),'description':'Summary\x20of\x20the\x20calls\x20disconnection\x20causes','parent':_0x2b53d6+_0x5d294a(0x191),'table':_0x5d294a(0x12b),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}'},{'id':0x8,'name':_0x5d294a(0x15c),'description':_0x5d294a(0x181),'parent':_0x2b53d6+_0x5d294a(0x191),'table':_0x5d294a(0x12b),'conditions':_0x5d294a(0x1c4)},{'id':0x9,'name':'Details','description':_0x5d294a(0x135),'parent':_0x2b53d6+_0x5d294a(0x132),'table':_0x5d294a(0x13e),'conditions':_0x5d294a(0x1b5)},{'id':0xa,'name':'Unanswered\x20by\x20Queue','description':_0x5d294a(0x1ca),'parent':_0x2b53d6+'_voice_queues_unanswered','table':_0x5d294a(0x13e),'conditions':_0x5d294a(0x1b5)},{'id':0xb,'name':_0x5d294a(0x170),'description':_0x5d294a(0x1a9),'parent':_0x2b53d6+_0x5d294a(0x132),'table':'report_queue','conditions':_0x5d294a(0x129)},{'id':0xc,'name':'Abandon\x20Time\x20by\x20Queue','description':'Abandon\x20time\x20performance\x20by\x20queue','parent':_0x2b53d6+_0x5d294a(0x132),'table':_0x5d294a(0x13e),'conditions':_0x5d294a(0x15d)},{'id':0xd,'name':_0x5d294a(0x149),'description':'Queue\x20calls\x20summary\x20by\x20date','parent':_0x2b53d6+_0x5d294a(0x123),'table':'report_queue','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0xe,'name':_0x5d294a(0x162),'description':_0x5d294a(0x197),'parent':_0x2b53d6+_0x5d294a(0x123),'table':'report_queue','conditions':_0x5d294a(0x1af)},{'id':0xf,'name':'Calls\x20by\x20Day','description':_0x5d294a(0x12d),'parent':_0x2b53d6+'_voice_queues_distribution','table':_0x5d294a(0x13e),'conditions':_0x5d294a(0x1af)},{'id':0x10,'name':_0x5d294a(0x17b),'description':_0x5d294a(0x144),'parent':_0x2b53d6+_0x5d294a(0x123),'table':_0x5d294a(0x13e),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x11,'name':_0x5d294a(0x11f),'description':_0x5d294a(0x140),'parent':_0x2b53d6+_0x5d294a(0x185),'table':'report_queue','conditions':_0x5d294a(0x1af)},{'id':0x12,'name':_0x5d294a(0x148),'description':_0x5d294a(0x18b),'parent':_0x2b53d6+_0x5d294a(0x18e),'table':'report_call','conditions':_0x5d294a(0x1af)},{'id':0x13,'name':_0x5d294a(0x19d),'description':_0x5d294a(0x157),'parent':_0x2b53d6+_0x5d294a(0x18e),'table':_0x5d294a(0x1a3),'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':_0x5d294a(0x12f),'description':'Summary\x20report\x20of\x20the\x20calls\x20type','parent':_0x2b53d6+'_voice_calls','table':_0x5d294a(0x1a3),'conditions':_0x5d294a(0x1af)},{'id':0x15,'name':_0x5d294a(0x14d),'description':_0x5d294a(0x186),'parent':_0x2b53d6+_0x5d294a(0x18e),'table':'report_call','conditions':_0x5d294a(0x1be)},{'id':0x16,'name':_0x5d294a(0x1b1),'description':_0x5d294a(0x1c8),'parent':_0x2b53d6+_0x5d294a(0x18e),'table':_0x5d294a(0x1a3),'conditions':_0x5d294a(0x1be)},{'id':0x17,'name':_0x5d294a(0x11c),'description':_0x5d294a(0x12a),'parent':_0x2b53d6+_0x5d294a(0x18e),'table':_0x5d294a(0x1a3),'conditions':_0x5d294a(0x1be)},{'id':0x18,'name':_0x5d294a(0x18d),'description':_0x5d294a(0x128),'parent':_0x2b53d6+_0x5d294a(0x1a0),'table':'report_member','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':_0x5d294a(0x1a8),'description':_0x5d294a(0x15f),'parent':_0x2b53d6+_0x5d294a(0x1a1),'table':_0x5d294a(0x150),'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':_0x5d294a(0x122),'description':_0x5d294a(0x1bd),'parent':_0x2b53d6+_0x5d294a(0x1a1),'table':'report_member','conditions':_0x5d294a(0x17a)},{'id':0x1b,'name':_0x5d294a(0x148),'description':_0x5d294a(0x16f),'parent':_0x2b53d6+_0x5d294a(0x1a1),'table':_0x5d294a(0x150),'conditions':_0x5d294a(0x1b0)},{'id':0x1c,'name':_0x5d294a(0x173),'description':_0x5d294a(0x1c5),'parent':_0x2b53d6+_0x5d294a(0x1a1),'table':_0x5d294a(0x150),'conditions':_0x5d294a(0x13c)},{'id':0x1d,'name':'Summary','description':'CallySquare\x20Summary','parent':_0x2b53d6+'_voice_callysquare','table':_0x5d294a(0x13b),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x1e,'name':_0x5d294a(0x12c),'description':_0x5d294a(0x189),'parent':_0x2b53d6+'_voice_callysquare','table':_0x5d294a(0x19a),'conditions':_0x5d294a(0x1af)},{'id':0x1f,'name':_0x5d294a(0x142),'description':'Records\x20rating\x20by\x20agent','parent':_0x2b53d6+_0x5d294a(0x158),'table':_0x5d294a(0x14a),'conditions':_0x5d294a(0x141)},{'id':0x20,'name':_0x5d294a(0x151),'description':'Records\x20rating\x20by\x20queue','parent':_0x2b53d6+'_voice_recordings','table':'voice_recordings','conditions':_0x5d294a(0x1ba)},{'id':0x21,'name':'Details','description':'','parent':_0x2b53d6+'_bull_queue_campaigns','table':'cm_hopper_final','conditions':_0x5d294a(0x179)},{'id':0x22,'name':_0x5d294a(0x1b4),'description':'','parent':_0x2b53d6+_0x5d294a(0x1a5),'table':_0x5d294a(0x161),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22}]}}'},{'id':0x23,'name':'Campaign\x20Calls','description':'','parent':_0x2b53d6+_0x5d294a(0x1a5),'table':_0x5d294a(0x18c),'conditions':_0x5d294a(0x179)},{'id':0x24,'name':_0x5d294a(0x1a6),'description':'','parent':_0x2b53d6+'_bull_queue_campaigns','table':_0x5d294a(0x18c),'conditions':_0x5d294a(0x179)},{'id':0x25,'name':_0x5d294a(0x155),'description':'','parent':_0x2b53d6+_0x5d294a(0x1a5),'table':_0x5d294a(0x18c),'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':_0x5d294a(0x19f),'description':'','parent':_0x2b53d6+_0x5d294a(0x1a5),'table':_0x5d294a(0x18c),'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':_0x5d294a(0x11e),'description':'','parent':_0x2b53d6+_0x5d294a(0x1a5),'table':'cm_hopper_final','conditions':_0x5d294a(0x1c9)},{'id':0x28,'name':_0x5d294a(0x148),'description':'','parent':_0x2b53d6+_0x5d294a(0x188),'table':_0x5d294a(0x18c),'conditions':_0x5d294a(0x1b6)},{'id':0x29,'name':_0x5d294a(0x1b4),'description':'','parent':_0x2b53d6+_0x5d294a(0x188),'table':_0x5d294a(0x161),'conditions':_0x5d294a(0x1b6)},{'id':0x2a,'name':_0x5d294a(0x137),'description':'','parent':_0x2b53d6+_0x5d294a(0x188),'table':'cm_hopper_final','conditions':_0x5d294a(0x1b6)},{'id':0x2b,'name':_0x5d294a(0x1a6),'description':'','parent':_0x2b53d6+_0x5d294a(0x188),'table':'cm_hopper_final','conditions':_0x5d294a(0x1b6)},{'id':0x2c,'name':_0x5d294a(0x183),'description':_0x5d294a(0x16e),'parent':_0x2b53d6+_0x5d294a(0x130),'table':_0x5d294a(0x17f),'joins':_0x5d294a(0x16b)},{'id':0x2d,'name':_0x5d294a(0x11d),'description':'Chat\x20interaction\x20times\x20by\x20website','parent':_0x2b53d6+'_chat','table':_0x5d294a(0x17f),'conditions':_0x5d294a(0x177),'joins':_0x5d294a(0x16b)},{'id':0x2e,'name':_0x5d294a(0x165),'description':_0x5d294a(0x1ac),'parent':_0x2b53d6+_0x5d294a(0x130),'table':_0x5d294a(0x17f),'conditions':_0x5d294a(0x13f),'joins':_0x5d294a(0x1cc)},{'id':0x2f,'name':_0x5d294a(0x1a2),'description':_0x5d294a(0x120),'parent':_0x2b53d6+_0x5d294a(0x130),'table':'chat_interactions','conditions':_0x5d294a(0x13f)},{'id':0x30,'name':_0x5d294a(0x163),'description':_0x5d294a(0x1ae),'parent':_0x2b53d6+_0x5d294a(0x130),'table':_0x5d294a(0x159),'joins':_0x5d294a(0x143)},{'id':0x31,'name':_0x5d294a(0x1c7),'description':_0x5d294a(0x1b9),'parent':_0x2b53d6+_0x5d294a(0x1c0),'table':'mail_interactions','joins':_0x5d294a(0x19e)},{'id':0x32,'name':_0x5d294a(0x121),'description':'Email\x20interaction\x20times\x20by\x20account','parent':_0x2b53d6+'_mail','table':_0x5d294a(0x1b7),'conditions':_0x5d294a(0x184),'joins':'[{\x22parentKey\x22:\x22MailAccountId\x22,\x22foreignTable\x22:\x22mail_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x33,'name':_0x5d294a(0x1a7),'description':_0x5d294a(0x1b8),'parent':_0x2b53d6+_0x5d294a(0x1c0),'table':_0x5d294a(0x1b7),'conditions':_0x5d294a(0x19b),'joins':_0x5d294a(0x1cc)},{'id':0x34,'name':_0x5d294a(0x136),'description':_0x5d294a(0x14b),'parent':_0x2b53d6+_0x5d294a(0x1c0),'table':_0x5d294a(0x1b7),'conditions':_0x5d294a(0x19b)},{'id':0x35,'name':_0x5d294a(0x175),'description':_0x5d294a(0x17c),'parent':_0x2b53d6+'_mail','table':_0x5d294a(0x166),'joins':_0x5d294a(0x18a)},{'id':0x36,'name':'Openchannel\x20Account\x20Summary','description':_0x5d294a(0x174),'parent':_0x2b53d6+'_openchannel','table':_0x5d294a(0x198),'joins':'[{\x22parentKey\x22:\x22OpenchannelAccountId\x22,\x22foreignTable\x22:\x22openchannel_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x37,'name':_0x5d294a(0x199),'description':'Openchannel\x20interaction\x20times\x20by\x20account','parent':_0x2b53d6+_0x5d294a(0x18f),'table':'openchannel_interactions','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22openchannel_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22openchannel_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','joins':_0x5d294a(0x14c)},{'id':0x38,'name':'Openchannel\x20By\x20Agent','description':'Openchannel\x20interactions\x20by\x20agent','parent':_0x2b53d6+'_openchannel','table':_0x5d294a(0x198),'conditions':_0x5d294a(0x127),'joins':_0x5d294a(0x1cc)},{'id':0x39,'name':_0x5d294a(0x1ab),'description':_0x5d294a(0x17e),'parent':_0x2b53d6+'_openchannel','table':_0x5d294a(0x198),'conditions':_0x5d294a(0x127)},{'id':0x3a,'name':_0x5d294a(0x164),'description':_0x5d294a(0x153),'parent':_0x2b53d6+'_openchannel','table':_0x5d294a(0x152),'joins':_0x5d294a(0x126)},{'id':0x3b,'name':_0x5d294a(0x1c3),'description':_0x5d294a(0x196),'parent':_0x2b53d6+'_sms','table':'sms_interactions','joins':_0x5d294a(0x124)},{'id':0x3c,'name':_0x5d294a(0x182),'description':_0x5d294a(0x167),'parent':_0x2b53d6+'_sms','table':_0x5d294a(0x146),'conditions':_0x5d294a(0x1bf),'joins':_0x5d294a(0x124)},{'id':0x3d,'name':_0x5d294a(0x15e),'description':'Sms\x20interactions\x20by\x20agent','parent':_0x2b53d6+_0x5d294a(0x1b2),'table':_0x5d294a(0x146),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22sms_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','joins':_0x5d294a(0x1cc)},{'id':0x3e,'name':_0x5d294a(0x19c),'description':_0x5d294a(0x17d),'parent':_0x2b53d6+_0x5d294a(0x1b2),'table':_0x5d294a(0x146),'conditions':_0x5d294a(0x145)},{'id':0x3f,'name':_0x5d294a(0x172),'description':_0x5d294a(0x13a),'parent':_0x2b53d6+_0x5d294a(0x1b2),'table':'report_sms_queue','joins':'[{\x22parentKey\x22:\x22SmsQueueId\x22,\x22foreignTable\x22:\x22sms_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x40,'name':_0x5d294a(0x139),'description':'Fax\x20interactions\x20by\x20account','parent':_0x2b53d6+_0x5d294a(0x12e),'table':_0x5d294a(0x133),'joins':'[{\x22parentKey\x22:\x22FaxAccountId\x22,\x22foreignTable\x22:\x22fax_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x41,'name':_0x5d294a(0x194),'description':_0x5d294a(0x176),'parent':_0x2b53d6+_0x5d294a(0x12e),'table':'fax_interactions','conditions':_0x5d294a(0x14f),'joins':_0x5d294a(0x169)},{'id':0x42,'name':_0x5d294a(0x138),'description':_0x5d294a(0x16a),'parent':_0x2b53d6+_0x5d294a(0x12e),'table':_0x5d294a(0x133),'conditions':_0x5d294a(0x15b),'joins':_0x5d294a(0x1cc)},{'id':0x43,'name':_0x5d294a(0x1c1),'description':_0x5d294a(0x14e),'parent':_0x2b53d6+_0x5d294a(0x12e),'table':_0x5d294a(0x133),'conditions':_0x5d294a(0x15b)},{'id':0x44,'name':_0x5d294a(0x147),'description':_0x5d294a(0x190),'parent':_0x2b53d6+'_fax','table':'report_fax_queue','joins':_0x5d294a(0x187)},{'id':0x45,'name':'WhatsApp\x20Account\x20Summary','description':_0x5d294a(0x134),'parent':_0x2b53d6+_0x5d294a(0x180),'table':_0x5d294a(0x125),'joins':_0x5d294a(0x156)},{'id':0x46,'name':_0x5d294a(0x1a4),'description':'WhatsApp\x20interaction\x20times\x20by\x20account','parent':_0x2b53d6+_0x5d294a(0x180),'table':_0x5d294a(0x125),'conditions':_0x5d294a(0x168),'joins':_0x5d294a(0x156)},{'id':0x47,'name':_0x5d294a(0x195),'description':'WhatsApp\x20interactions\x20by\x20agent','parent':_0x2b53d6+'_whatsapp','table':_0x5d294a(0x125),'conditions':_0x5d294a(0x1cd),'joins':_0x5d294a(0x1cc)},{'id':0x48,'name':_0x5d294a(0x171),'description':'WhatsApp\x20interactions\x20by\x20date','parent':_0x2b53d6+_0x5d294a(0x180),'table':_0x5d294a(0x125),'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':_0x5d294a(0x15a),'description':'WhatsApp\x20interactions\x20by\x20queue','parent':_0x2b53d6+_0x5d294a(0x180),'table':_0x5d294a(0x160),'joins':'[{\x22parentKey\x22:\x22WhatsappQueueId\x22,\x22foreignTable\x22:\x22whatsapp_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x4a,'name':_0x5d294a(0x1bc),'description':_0x5d294a(0x154),'parent':_0x2b53d6+_0x5d294a(0x158),'table':_0x5d294a(0x14a),'conditions':_0x5d294a(0x1bb),'joins':_0x5d294a(0x1cc)},{'id':0x4b,'name':_0x5d294a(0x16d),'description':_0x5d294a(0x16d),'parent':_0x2b53d6+_0x5d294a(0x158),'table':_0x5d294a(0x14a),'conditions':_0x5d294a(0x16c)}];}; \ No newline at end of file +var a1032_0x1214=['_fax','Sms\x20By\x20Queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallerexit\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','Fax\x20By\x20Queue','{\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\x20interaction\x20times\x20by\x20account','Outbound\x20Calls\x20by\x20Date','_agents','{\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}]}}','Sms\x20interactions\x20by\x20agent','[{\x22parentKey\x22:\x22SmsAccountId\x22,\x22foreignTable\x22:\x22sms_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Openchannel\x20interactions\x20by\x20agent','Calls\x20by\x20Weekday','Summary\x20report\x20of\x20the\x20calls\x20type','Openchannel\x20By\x20Agent','WhatsApp\x20By\x20Agent','WhatsApp\x20interactions\x20by\x20agent','WhatsApp\x20By\x20Date','Chat\x20By\x20Date','{\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}]}}]}}','Answer\x20time\x20\x20by\x20hour','[{\x22parentKey\x22:\x22ChatQueueId\x22,\x22foreignTable\x22:\x22chat_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','[{\x22parentKey\x22:\x22WhatsappAccountId\x22,\x22foreignTable\x22:\x22whatsapp_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\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}]}}]}}','_mail','Sentiment\x20by\x20agent','Sentiment\x20by\x20Agent','_bull_queue_campaigns','_voice_queues_distribution','WhatsApp\x20interactions\x20by\x20queue','Website\x20Times','Rating\x20by\x20Queue','Email\x20interactions\x20by\x20account','Openchannel\x20Account\x20Summary','{\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}]}}','Email\x20Account\x20Times','_voice_agents','Abandon\x20time\x20performance\x20by\x20queue','Queue\x20timer\x20Handle\x20Time=\x20Talk\x20Time\x20+\x20AVG\x20TIme','Calls\x20by\x20Type','Records\x20rating\x20by\x20agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Campaign\x20Calls','Openchannel\x20interactions\x20by\x20date','Sms\x20interactions\x20by\x20queue','Pause\x20Time','Fax\x20interactions\x20by\x20queue','_voice_calls','report_whatsapp_queue','Answer\x20Time\x20by\x20Queue','[{\x22parentKey\x22:\x22OpenchannelAccountId\x22,\x22foreignTable\x22:\x22openchannel_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22mail_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Calls\x20distribution\x20by\x20hour','report_fax_queue','Agent\x20Calls','openchannel_interactions','Agent\x20Disposition\x20Rate','_openchannel','Chat\x20interaction\x20times\x20by\x20website','Outbound\x20Calls\x20Disposition','cm_hopper_final','WhatsApp\x20interactions\x20by\x20date','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22},{\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}]}}]}}','Chat\x20interactions\x20by\x20website','Records\x20rating\x20by\x20queue','_voice_callysquare','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22sms_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22}]}}','Calls\x20by\x20Queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22\x22}]}}','Abandon\x20Time\x20by\x20Queue','Fax\x20interactions\x20by\x20date','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22fax_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Openchannel\x20By\x20Date','mail_interactions','Chat\x20By\x20Agent','Manual\x20outbound\x20calls\x20detailed\x20report','Email\x20Account\x20Summary','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallerabandon\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20date','Fax\x20By\x20Date','Queue\x20calls\x20summary\x20by\x20date','report_square_details','Website\x20Summary','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}','Simple\x20queue\x20calls\x20overview','Sentiment\x20Summary','Calls\x20distribution\x20by\x20day\x20of\x20the\x20month','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','Fax\x20Account\x20Summary','report_queue','report_chat_queue','{\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}]}}','Email\x20interactions\x20by\x20agent','Email\x20By\x20Date','report_sms_queue','[{\x22parentKey\x22:\x22SmsQueueId\x22,\x22foreignTable\x22:\x22sms_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Calls\x20Summary','Agent\x27s\x20login\x20time','Sms\x20By\x20Agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22chat_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','report_agent','Outbound\x20Calls\x20by\x20Agent','WhatsApp\x20interaction\x20times\x20by\x20account','Summary\x20of\x20the\x20calls\x20disconnection\x20causes','Openchannel\x20interactions\x20by\x20account','Rating\x20by\x20Agent','List\x20Penetration\x20Rate','Agent\x20calls\x20timer\x20Handle\x20time=\x20talk\x20time\x20+\x20ACW\x20time','Openchannel\x20By\x20Queue','{\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}]}}]}}]}}','sms_interactions','_voice_queues_unanswered','whatsapp_interactions','_voice_queues_answered','_voice_recordings','Details','_bull_ivr_campaigns','Calls\x20distribution\x20by\x20queue','Fax\x20Account\x20Times','[{\x22parentKey\x22:\x22OpenchannelQueueId\x22,\x22foreignTable\x22:\x22openchannel_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Fax\x20interactions\x20by\x20account','Sms\x20interactions\x20by\x20account','Chat\x20interactions\x20by\x20agent','[{\x22parentKey\x22:\x22FaxAccountId\x22,\x22foreignTable\x22:\x22fax_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Openchannel\x20interactions\x20by\x20queue','Activities\x20Summary','[{\x22parentKey\x22:\x22WhatsappQueueId\x22,\x22foreignTable\x22:\x22whatsapp_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','CallySquare\x20Blocks\x20Detail','fax_interactions','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22whatsapp_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','voice_recordings','WhatsApp\x20By\x20Queue','Chat\x20By\x20Queue','report_mail_queue','Sms\x20Account\x20Summary','Summary','chat_interactions','_whatsapp','report_member','Blocks','report_call','{\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}]}}]}}','[{\x22parentKey\x22:\x22ChatWebsiteId\x22,\x22foreignTable\x22:\x22chat_websites\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Detailed\x20queues\x20report','[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22type\x22,\x22value\x22:\x22\x27outbound\x27\x22,\x22required\x22:true}]}}','[{\x22parentKey\x22:\x22MailAccountId\x22,\x22foreignTable\x22:\x22mail_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','_voice_queues','Detailed\x20report\x20about\x20answered\x20queue\x20calls','Agent\x27s\x20status\x20detail','Agents\x20status\x20details','Calls\x20detail\x20(cdr)','Calls\x20by\x20Hour','_sms','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallercomplete\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}','Chat\x20interactions\x20by\x20queue','_chat','Agent\x27s\x20pause\x20time','Email\x20By\x20Agent','Outbound\x20calls\x20grouped\x20by\x20disposition','Sms\x20interactions\x20by\x20date','Email\x20interactions\x20by\x20date','Disconnection\x20Cause','Unmanaged\x20calls','Pause\x20Details','CallySquare\x20Summary','report_openchannel_queue','Calls\x20Result','Outbound','Fax\x20interactions\x20by\x20agent','Email\x20interaction\x20times\x20by\x20account','report_square','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22channel\x22,\x22value\x22:\x22\x27voice\x27\x22,\x22required\x22:true},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22type\x22,\x22value\x22:\x22\x27PAUSE\x27\x22,\x22required\x22:true}]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}','{\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}]}}'];(function(_0xfb7fc1,_0x3a0ce8){var _0x12142d=function(_0x29d2b3){while(--_0x29d2b3){_0xfb7fc1['push'](_0xfb7fc1['shift']());}};_0x12142d(++_0x3a0ce8);}(a1032_0x1214,0x126));var a1032_0x29d2=function(_0xfb7fc1,_0x3a0ce8){_0xfb7fc1=_0xfb7fc1-0xe3;var _0x12142d=a1032_0x1214[_0xfb7fc1];return _0x12142d;};'use strict';module['exports']=function(_0x2db191){var _0x4ece6d=a1032_0x29d2;return[{'id':0x1,'name':_0x4ece6d(0x191),'description':_0x4ece6d(0xfd),'parent':_0x2db191+_0x4ece6d(0x101),'table':_0x4ece6d(0x177),'conditions':_0x4ece6d(0x11b)},{'id':0x2,'name':_0x4ece6d(0x115),'description':_0x4ece6d(0x172),'parent':_0x2db191+_0x4ece6d(0x101),'table':_0x4ece6d(0x177),'conditions':_0x4ece6d(0x11b)},{'id':0x3,'name':_0x4ece6d(0x191),'description':_0x4ece6d(0x102),'parent':_0x2db191+_0x4ece6d(0x18f),'table':'report_agent','conditions':_0x4ece6d(0x175)},{'id':0x4,'name':'Calls\x20by\x20Agent','description':_0x4ece6d(0x189),'parent':_0x2db191+'_voice_queues_answered','table':'report_agent','conditions':_0x4ece6d(0x175)},{'id':0x5,'name':_0x4ece6d(0x161),'description':_0x4ece6d(0x143),'parent':_0x2db191+'_voice_queues_answered','table':_0x4ece6d(0x182),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}'},{'id':0x6,'name':_0x4ece6d(0x14e),'description':'Queues\x20answer\x20time\x20performance','parent':_0x2db191+_0x4ece6d(0x18f),'table':_0x4ece6d(0x182),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}'},{'id':0x7,'name':_0x4ece6d(0x110),'description':_0x4ece6d(0x185),'parent':_0x2db191+_0x4ece6d(0x18f),'table':'report_agent','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}'},{'id':0x8,'name':'Answer\x20Time\x20by\x20Hour','description':_0x4ece6d(0x131),'parent':_0x2db191+_0x4ece6d(0x18f),'table':'report_agent','conditions':_0x4ece6d(0x175)},{'id':0x9,'name':_0x4ece6d(0x191),'description':'Detailed\x20report\x20about\x20the\x20unanswered\x20calls','parent':_0x2db191+_0x4ece6d(0x18d),'table':_0x4ece6d(0x177),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallercomplete\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}'},{'id':0xa,'name':'Unanswered\x20by\x20Queue','description':'Unanswered\x20calls\x20summary\x20by\x20queue','parent':_0x2db191+'_voice_queues_unanswered','table':_0x4ece6d(0x177),'conditions':_0x4ece6d(0x108)},{'id':0xb,'name':_0x4ece6d(0x111),'description':'Unmanaged\x20calls\x20summary','parent':_0x2db191+_0x4ece6d(0x18d),'table':_0x4ece6d(0x177),'conditions':_0x4ece6d(0x11f)},{'id':0xc,'name':_0x4ece6d(0x163),'description':_0x4ece6d(0x142),'parent':_0x2db191+_0x4ece6d(0x18d),'table':_0x4ece6d(0x177),'conditions':_0x4ece6d(0x16b)},{'id':0xd,'name':'Calls\x20by\x20Date','description':_0x4ece6d(0x16e),'parent':_0x2db191+_0x4ece6d(0x139),'table':_0x4ece6d(0x177),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0xe,'name':_0x4ece6d(0x106),'description':_0x4ece6d(0x151),'parent':_0x2db191+_0x4ece6d(0x139),'table':_0x4ece6d(0x177),'conditions':_0x4ece6d(0x11b)},{'id':0xf,'name':'Calls\x20by\x20Day','description':_0x4ece6d(0x174),'parent':_0x2db191+'_voice_queues_distribution','table':'report_queue','conditions':_0x4ece6d(0x11b)},{'id':0x10,'name':_0x4ece6d(0x129),'description':'Calls\x20distribution\x20by\x20day\x20of\x20the\x20week','parent':_0x2db191+_0x4ece6d(0x139),'table':'report_queue','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x11,'name':'Summary','description':_0x4ece6d(0xe3),'parent':_0x2db191+_0x4ece6d(0x101),'table':'report_queue','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x12,'name':_0x4ece6d(0x191),'description':_0x4ece6d(0x105),'parent':_0x2db191+_0x4ece6d(0x14c),'table':_0x4ece6d(0xfa),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x13,'name':_0x4ece6d(0x116),'description':_0x4ece6d(0x169),'parent':_0x2db191+_0x4ece6d(0x14c),'table':'report_call','conditions':_0x4ece6d(0xff)},{'id':0x14,'name':_0x4ece6d(0x144),'description':_0x4ece6d(0x12a),'parent':_0x2db191+_0x4ece6d(0x14c),'table':_0x4ece6d(0xfa),'conditions':_0x4ece6d(0x11b)},{'id':0x15,'name':_0x4ece6d(0x158),'description':_0x4ece6d(0x10d),'parent':_0x2db191+_0x4ece6d(0x14c),'table':'report_call','conditions':_0x4ece6d(0xff)},{'id':0x16,'name':_0x4ece6d(0x183),'description':'Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20agent','parent':_0x2db191+'_voice_calls','table':'report_call','conditions':_0x4ece6d(0xff)},{'id':0x17,'name':_0x4ece6d(0x123),'description':_0x4ece6d(0x16c),'parent':_0x2db191+'_voice_calls','table':_0x4ece6d(0xfa),'conditions':_0x4ece6d(0xff)},{'id':0x18,'name':'Login\x20Time','description':_0x4ece6d(0x17f),'parent':_0x2db191+_0x4ece6d(0x124),'table':_0x4ece6d(0xf8),'conditions':_0x4ece6d(0x13f)},{'id':0x19,'name':_0x4ece6d(0xeb),'description':'Agent\x27s\x20activities\x20report','parent':_0x2db191+_0x4ece6d(0x141),'table':_0x4ece6d(0xf8),'conditions':_0x4ece6d(0x125)},{'id':0x1a,'name':_0x4ece6d(0x112),'description':_0x4ece6d(0x104),'parent':_0x2db191+_0x4ece6d(0x141),'table':'report_member','conditions':_0x4ece6d(0x11a)},{'id':0x1b,'name':_0x4ece6d(0x191),'description':_0x4ece6d(0x103),'parent':_0x2db191+_0x4ece6d(0x141),'table':_0x4ece6d(0xf8),'conditions':_0x4ece6d(0x125)},{'id':0x1c,'name':_0x4ece6d(0x14a),'description':_0x4ece6d(0x10b),'parent':_0x2db191+_0x4ece6d(0x141),'table':_0x4ece6d(0xf8),'conditions':_0x4ece6d(0x11c)},{'id':0x1d,'name':_0x4ece6d(0xf5),'description':_0x4ece6d(0x113),'parent':_0x2db191+_0x4ece6d(0x15e),'table':_0x4ece6d(0x119),'conditions':_0x4ece6d(0x11b)},{'id':0x1e,'name':_0x4ece6d(0xf9),'description':_0x4ece6d(0xed),'parent':_0x2db191+_0x4ece6d(0x15e),'table':_0x4ece6d(0x16f),'conditions':_0x4ece6d(0x11b)},{'id':0x1f,'name':_0x4ece6d(0x187),'description':_0x4ece6d(0x145),'parent':_0x2db191+_0x4ece6d(0x190),'table':_0x4ece6d(0xf0),'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':_0x4ece6d(0x13c),'description':_0x4ece6d(0x15d),'parent':_0x2db191+_0x4ece6d(0x190),'table':_0x4ece6d(0xf0),'conditions':_0x4ece6d(0x121)},{'id':0x21,'name':_0x4ece6d(0x191),'description':'','parent':_0x2db191+'_bull_queue_campaigns','table':_0x4ece6d(0x159),'conditions':_0x4ece6d(0x160)},{'id':0x22,'name':'Calls\x20Summary','description':'','parent':_0x2db191+'_bull_queue_campaigns','table':'cm_hopper_history','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22}]}}'},{'id':0x23,'name':_0x4ece6d(0x147),'description':'','parent':_0x2db191+_0x4ece6d(0x138),'table':'cm_hopper_final','conditions':_0x4ece6d(0x160)},{'id':0x24,'name':_0x4ece6d(0x188),'description':'','parent':_0x2db191+_0x4ece6d(0x138),'table':_0x4ece6d(0x159),'conditions':_0x4ece6d(0x160)},{'id':0x25,'name':_0x4ece6d(0x153),'description':'','parent':_0x2db191+_0x4ece6d(0x138),'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':'Disposition\x20Rate','description':'','parent':_0x2db191+'_bull_queue_campaigns','table':_0x4ece6d(0x159),'conditions':_0x4ece6d(0x179)},{'id':0x27,'name':_0x4ece6d(0x155),'description':'','parent':_0x2db191+_0x4ece6d(0x138),'table':_0x4ece6d(0x159),'conditions':_0x4ece6d(0x179)},{'id':0x28,'name':'Details','description':'','parent':_0x2db191+_0x4ece6d(0x192),'table':_0x4ece6d(0x159),'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':_0x4ece6d(0x17e),'description':'','parent':_0x2db191+'_bull_ivr_campaigns','table':'cm_hopper_history','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}'},{'id':0x2a,'name':'Campaign\x20Calls','description':'','parent':_0x2db191+_0x4ece6d(0x192),'table':_0x4ece6d(0x159),'conditions':_0x4ece6d(0x171)},{'id':0x2b,'name':_0x4ece6d(0x188),'description':'','parent':_0x2db191+_0x4ece6d(0x192),'table':'cm_hopper_final','conditions':_0x4ece6d(0x171)},{'id':0x2c,'name':_0x4ece6d(0x170),'description':_0x4ece6d(0x15c),'parent':_0x2db191+'_chat','table':_0x4ece6d(0xf6),'joins':_0x4ece6d(0xfc)},{'id':0x2d,'name':_0x4ece6d(0x13b),'description':_0x4ece6d(0x157),'parent':_0x2db191+_0x4ece6d(0x10a),'table':'chat_interactions','conditions':_0x4ece6d(0x18b),'joins':'[{\x22parentKey\x22:\x22ChatWebsiteId\x22,\x22foreignTable\x22:\x22chat_websites\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x2e,'name':_0x4ece6d(0x168),'description':_0x4ece6d(0xe8),'parent':_0x2db191+_0x4ece6d(0x10a),'table':_0x4ece6d(0xf6),'conditions':_0x4ece6d(0x181),'joins':_0x4ece6d(0xfe)},{'id':0x2f,'name':_0x4ece6d(0x12f),'description':'Chat\x20interactions\x20by\x20date','parent':_0x2db191+_0x4ece6d(0x10a),'table':_0x4ece6d(0xf6),'conditions':_0x4ece6d(0x181)},{'id':0x30,'name':_0x4ece6d(0xf2),'description':_0x4ece6d(0x109),'parent':_0x2db191+'_chat','table':_0x4ece6d(0x178),'joins':_0x4ece6d(0x132)},{'id':0x31,'name':_0x4ece6d(0x16a),'description':_0x4ece6d(0x13d),'parent':_0x2db191+_0x4ece6d(0x135),'table':'mail_interactions','joins':_0x4ece6d(0x100)},{'id':0x32,'name':_0x4ece6d(0x140),'description':_0x4ece6d(0x118),'parent':_0x2db191+'_mail','table':_0x4ece6d(0x167),'conditions':'{\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}]}}]}}','joins':_0x4ece6d(0x100)},{'id':0x33,'name':_0x4ece6d(0x10c),'description':_0x4ece6d(0x17a),'parent':_0x2db191+'_mail','table':_0x4ece6d(0x167),'conditions':_0x4ece6d(0x150),'joins':'[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x34,'name':_0x4ece6d(0x17b),'description':_0x4ece6d(0x10f),'parent':_0x2db191+_0x4ece6d(0x135),'table':_0x4ece6d(0x167),'conditions':_0x4ece6d(0x150)},{'id':0x35,'name':'Email\x20By\x20Queue','description':'Email\x20interactions\x20by\x20queue','parent':_0x2db191+_0x4ece6d(0x135),'table':_0x4ece6d(0xf3),'joins':'[{\x22parentKey\x22:\x22MailQueueId\x22,\x22foreignTable\x22:\x22mail_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x36,'name':_0x4ece6d(0x13e),'description':_0x4ece6d(0x186),'parent':_0x2db191+_0x4ece6d(0x156),'table':_0x4ece6d(0x154),'joins':_0x4ece6d(0x14f)},{'id':0x37,'name':'Openchannel\x20Account\x20Times','description':_0x4ece6d(0x122),'parent':_0x2db191+'_openchannel','table':_0x4ece6d(0x154),'conditions':_0x4ece6d(0x15b),'joins':_0x4ece6d(0x14f)},{'id':0x38,'name':_0x4ece6d(0x12b),'description':_0x4ece6d(0x128),'parent':_0x2db191+_0x4ece6d(0x156),'table':_0x4ece6d(0x154),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','joins':_0x4ece6d(0xfe)},{'id':0x39,'name':_0x4ece6d(0x166),'description':_0x4ece6d(0x148),'parent':_0x2db191+'_openchannel','table':'openchannel_interactions','conditions':_0x4ece6d(0x146)},{'id':0x3a,'name':_0x4ece6d(0x18a),'description':_0x4ece6d(0xea),'parent':_0x2db191+_0x4ece6d(0x156),'table':_0x4ece6d(0x114),'joins':_0x4ece6d(0xe5)},{'id':0x3b,'name':_0x4ece6d(0xf4),'description':_0x4ece6d(0xe7),'parent':_0x2db191+_0x4ece6d(0x107),'table':_0x4ece6d(0x18c),'joins':_0x4ece6d(0x127)},{'id':0x3c,'name':'Sms\x20Account\x20Times','description':'Sms\x20interaction\x20times\x20by\x20account','parent':_0x2db191+'_sms','table':'sms_interactions','conditions':_0x4ece6d(0x130),'joins':_0x4ece6d(0x127)},{'id':0x3d,'name':_0x4ece6d(0x180),'description':_0x4ece6d(0x126),'parent':_0x2db191+_0x4ece6d(0x107),'table':'sms_interactions','conditions':_0x4ece6d(0x15f),'joins':'[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x3e,'name':'Sms\x20By\x20Date','description':_0x4ece6d(0x10e),'parent':_0x2db191+_0x4ece6d(0x107),'table':_0x4ece6d(0x18c),'conditions':_0x4ece6d(0x15f)},{'id':0x3f,'name':_0x4ece6d(0x11e),'description':_0x4ece6d(0x149),'parent':_0x2db191+_0x4ece6d(0x107),'table':_0x4ece6d(0x17c),'joins':_0x4ece6d(0x17d)},{'id':0x40,'name':_0x4ece6d(0x176),'description':_0x4ece6d(0xe6),'parent':_0x2db191+_0x4ece6d(0x11d),'table':_0x4ece6d(0xee),'joins':'[{\x22parentKey\x22:\x22FaxAccountId\x22,\x22foreignTable\x22:\x22fax_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x41,'name':_0x4ece6d(0xe4),'description':'Fax\x20interaction\x20times\x20by\x20account','parent':_0x2db191+_0x4ece6d(0x11d),'table':_0x4ece6d(0xee),'conditions':_0x4ece6d(0xfb),'joins':_0x4ece6d(0xe9)},{'id':0x42,'name':'Fax\x20By\x20Agent','description':_0x4ece6d(0x117),'parent':_0x2db191+'_fax','table':_0x4ece6d(0xee),'conditions':_0x4ece6d(0x165),'joins':_0x4ece6d(0xfe)},{'id':0x43,'name':_0x4ece6d(0x16d),'description':_0x4ece6d(0x164),'parent':_0x2db191+_0x4ece6d(0x11d),'table':_0x4ece6d(0xee),'conditions':_0x4ece6d(0x165)},{'id':0x44,'name':_0x4ece6d(0x120),'description':_0x4ece6d(0x14b),'parent':_0x2db191+'_fax','table':_0x4ece6d(0x152),'joins':'[{\x22parentKey\x22:\x22FaxQueueId\x22,\x22foreignTable\x22:\x22fax_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x45,'name':'WhatsApp\x20Account\x20Summary','description':'WhatsApp\x20interactions\x20by\x20account','parent':_0x2db191+_0x4ece6d(0xf7),'table':_0x4ece6d(0x18e),'joins':_0x4ece6d(0x133)},{'id':0x46,'name':'WhatsApp\x20Account\x20Times','description':_0x4ece6d(0x184),'parent':_0x2db191+_0x4ece6d(0xf7),'table':_0x4ece6d(0x18e),'conditions':_0x4ece6d(0x134),'joins':_0x4ece6d(0x133)},{'id':0x47,'name':_0x4ece6d(0x12c),'description':_0x4ece6d(0x12d),'parent':_0x2db191+_0x4ece6d(0xf7),'table':'whatsapp_interactions','conditions':_0x4ece6d(0xef),'joins':_0x4ece6d(0xfe)},{'id':0x48,'name':_0x4ece6d(0x12e),'description':_0x4ece6d(0x15a),'parent':_0x2db191+'_whatsapp','table':_0x4ece6d(0x18e),'conditions':_0x4ece6d(0xef)},{'id':0x49,'name':_0x4ece6d(0xf1),'description':_0x4ece6d(0x13a),'parent':_0x2db191+_0x4ece6d(0xf7),'table':_0x4ece6d(0x14d),'joins':_0x4ece6d(0xec)},{'id':0x4a,'name':_0x4ece6d(0x137),'description':_0x4ece6d(0x136),'parent':_0x2db191+_0x4ece6d(0x190),'table':_0x4ece6d(0xf0),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22NULL\x22}]}}','joins':'[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x4b,'name':_0x4ece6d(0x173),'description':_0x4ece6d(0x173),'parent':_0x2db191+'_voice_recordings','table':_0x4ece6d(0xf0),'conditions':_0x4ece6d(0x162)}];}; \ No newline at end of file diff --git a/server/config/seedDB/report/fields.js b/server/config/seedDB/report/fields.js index 0e170c1..c7a0ce5 100644 --- a/server/config/seedDB/report/fields.js +++ b/server/config/seedDB/report/fields.js @@ -1 +1 @@ -const a1033_0x37ce=['COUNT(IF(reason=\x27accepted\x27,1,NULL))','agentconnectAt','COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))','openchannel_queues.name','QueueAbandonAt','AgentACW','exitAt','Email\x20Account','chat_interactions.closed','Answer\x20Rate\x20<10s','users.fullname','Tot\x20TalkTime','ROUND(COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','Positive(%)','JoinAt','Disposition','Answered\x2020-30s','agentcompleteAt','DESC','Caller\x20Id','fax_interactions.createdAt','talktime\x20+\x20acwtime','Contacts','QueueJoinAt','Interactions','IF(queuecallercomplete=1,holdtime,null)','lastapplication','fax_accounts.name','Duration','billableseconds','agentcalledAt','Block','Tot\x20Unmanaged\x20Time','whatsapp_interactions.closed','QueueExit','UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','SEC_TO_TIME','Avg\x20HoldTime','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)','Abandoned\x2010-60s','Tot\x20Duration','CallerId','Campaign\x20Name','statedesc','AvgAbandonTime','BlackList','Avg\x20Duration','AvgTalkTime','CASE\x20WHEN\x20type=\x27LOGIN\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','campaign','openchannel_interactions.closed','Abandon\x20Time','Reason','queue','report_openchannel_queue.id','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','Timeout','talktime','chat_interactions.id','source','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','Abandoned\x20Rate>120s','Completed\x20(%)','Abandoned\x2060-120s','QueueLeaveAt','tag','ROUND(AVG(talktime))','UniqueId','SEC_TO_TIME(AVG(talktime))','Answer\x20Rate\x20>30s','NEGATIVE','Avg\x20Unmanaged\x20TIme','Answer\x20Rate\x2020-30s','Closed','COUNT\x20DISTINCT','Source','sms_interactions.id','AbandonTime','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27unmanaged\x27,1,NULL))','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)','blacklist','ReportId','Open','groupBy','Neutral(%)','Drop\x20Reason','calleridname','Abandoned\x20(%)','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=10\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<60,1,NULL))','endtime','ROUND(AVG(duration))','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','queuecallerjoinAt','Answer\x20Rate','LastEvent','CallerID','ROUND(SUM(IF(state=4,1,0))/COUNT(*)*100,1)','Total\x20Rating','LastCallAt','COUNT','Project\x20Name','Calls','Type','mail_interactions.id','openchannel_accounts.name','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)','callerid','queuecallerexit','queuecallercompleteAt','agentcomplete','UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','ROUND(SUM(queuecallercomplete)/COUNT(DISTINCT\x20uniqueid)*100,1)','sms_interactions.closed','exten','Abandoned\x20Rate\x2010-60s','Data','DestChannel','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL))','TotTalkTime','TotACWTime','ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','report_whatsapp_queue.id','Interaction\x20Time','ROUND(COUNT(IF(holdtime<10,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL))','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)))','ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)))','queuecallerabandon','connectedlinename','fax_interactions.closed','Date','leaveAt','disposition','Answered\x20<10s','report_sms_queue.id','chat_queues.name','Sms\x20Account','Total\x20(%)','Tot\x20Answered','holdtime','QueueExitAt','AVG','TalkTime','Answered','interface','MIXED','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)))','Interface','whatsapp_accounts.name','Avg\x20ACWTime','SUM(IF(state=4,1,0))','duration','dnid','Answered\x20>30s','destination','UniqueID','COUNT(IF(holdtime<10,1,NULL))','Rated\x20Calls','HangupReason','uniqueid','EnterAt','End\x20Time','Login\x20Time','StartTime','AVG\x20Interaction\x20Time','openchannel_interactions.id','Calls\x20(%)','ROUND(AVG(acwtime))','Day','AVG\x20Talk\x20Time','COUNT(IF(reason=\x27timeout\x27,1,NULL))','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','Avg\x20TalkTime','Start\x20Time','COUNT(IF(closed=0,1,NULL))','CompleteAt','Abandoned<10s','Talk\x20Time','Abandoned','Hour','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)','Answered\x2010-20s','calleridnum','Openchannel\x20Account','ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27abandoned\x27,1,NULL))/COUNT(id)\x20*100,1)','Tag','queuecallercomplete','CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20queuecallercompleteAt\x20ELSE\x20queuecallerLeaveAt\x20END','AgentCompleteAt','AnswerTime','AvgHandleTime','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)','Destination','ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27unmanaged\x27,1,NULL))/COUNT(id)\x20*100,1)','Hold\x20Time','Completed','EndTime','AgentCalledAt','ListId','Event','Negative(%)','AVG\x20Hold\x20Time','node','DayOfWeek','CASE\x20WHEN\x20type=\x27PAUSE\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','DID','Agent','ROUND(AVG(UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','Unmanaged\x20(%)','Sentiment\x20TOT','mail_interactions.createdAt','Avg\x20Rating','Web\x20Site','data','ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27queue\x27),2)','Answer\x20Rate\x2010-20s','mail_accounts.name','HOUR','Penetration\x20Rate','UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)','sms_accounts.name','lastevent','Avg\x20Handle\x20Time','AgentACWTime','queuecallerexitAt','LastApp','Tot\x20Handle\x20Time','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)','enterAt','queuecallerleaveAt','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)','ExitAt','POSITIVE','type','countglobal','DATE','PauseType','ROUND(COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','starttime','COUNT(IF(holdtime\x20>=30,1,NULL))','Abandoned\x20Rate<10s','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))\x20\x20/\x20SUM(queuecallerabandon)\x20*100,1)','Billsec','queuecallerexitreason','Total\x20Calls','Offered','ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27ivr\x27),2)','COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))','fax_interactions.id','position','ASC','UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))\x20/\x20SUM(queuecallerabandon)\x20*100,1)','CallerIdName','UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)))','UnmanagedAt','SUM','dropreason','State','ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','rating','Pause\x20Time','project_name','DAY(queuecallerjoinat)','Whatsapp\x20Account','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))','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)','voice_recordings.sentiment','acwtime','Abandoned>120s','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL))','AgentExtension','fax_queues.name','whatsapp_interactions.id','UnmanagedReason','UserId','data1','answertime','Accepted','report_fax_queue.id','chat_websites.name','reason','Recorded\x20Calls','membername','AvgACWTime','queuecallerjoinat','destinationchannel','sms_interactions.createdAt','TOT','Global\x20Count','Queue','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','COUNT(IF(closed=1\x20&&\x20((disposition\x20!=\x27unmanaged\x27\x20&&\x20disposition\x20!=\x27abandoned\x27)\x20||\x20disposition\x20IS\x20NULL),1,NULL))','COUNT(IF(closed=1,1,NULL))','ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','NEUTRAL','mail_queues.name','Unmanaged','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)))','AgentComplete','lastdata','CASE\x20WHEN\x20type=\x27TALKING\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27abandoned\x27,1,NULL))','exports','Total','CallerIdNum','queuecallerabandonAt','Tot\x20Abandoned','report_mail_queue.id','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)'];(function(_0x4453f0,_0x1aa274){const _0x37ce98=function(_0x17e7fc){while(--_0x17e7fc){_0x4453f0['push'](_0x4453f0['shift']());}};_0x37ce98(++_0x1aa274);}(a1033_0x37ce,0x100));const a1033_0x17e7=function(_0x4453f0,_0x1aa274){_0x4453f0=_0x4453f0-0xdf;let _0x37ce98=a1033_0x37ce[_0x4453f0];return _0x37ce98;};const a1033_0x2b795d=a1033_0x17e7;'use strict';const _=require('lodash');module[a1033_0x2b795d(0x110)]=function(){const _0x54d377=a1033_0x2b795d,_0x46d684=[{'field':_0x54d377(0x1b7),'alias':_0x54d377(0x15a),'ReportId':0x1},{'field':'calleridnum','alias':_0x54d377(0x112),'ReportId':0x1},{'field':_0x54d377(0x16d),'alias':_0x54d377(0x215),'ReportId':0x1},{'field':_0x54d377(0x14c),'alias':'Queue','ReportId':0x1},{'field':_0x54d377(0x173),'alias':_0x54d377(0x12e),'ReportId':0x1},{'field':_0x54d377(0x1fd),'alias':_0x54d377(0x157),'ReportId':0x1},{'field':_0x54d377(0x197),'alias':'QueueAbandon','ReportId':0x1},{'field':_0x54d377(0x113),'alias':_0x54d377(0x11b),'ReportId':0x1},{'field':_0x54d377(0x1d2),'alias':'Complete','ReportId':0x1},{'field':_0x54d377(0x183),'alias':_0x54d377(0x1c7),'ReportId':0x1},{'field':_0x54d377(0x182),'alias':_0x54d377(0x139),'ReportId':0x1},{'field':'queuecallerexitAt','alias':_0x54d377(0x1a4),'ReportId':0x1},{'field':_0x54d377(0x20b),'alias':'QueueExitReason','ReportId':0x1},{'field':_0x54d377(0x188),'alias':_0x54d377(0x1e5),'ReportId':0x1},{'field':_0x54d377(0x13a),'alias':'TalkTime','format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x1},{'field':_0x54d377(0x213),'alias':_0x54d377(0x164),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x1},{'field':_0x54d377(0x130),'alias':'AnswerTime','format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x1},{'field':'calleridnum','alias':_0x54d377(0x176),'ReportId':0x2},{'field':_0x54d377(0x14c),'alias':'Queue','ReportId':0x2},{'field':_0x54d377(0x173),'alias':_0x54d377(0x1bb),'ReportId':0x2},{'field':_0x54d377(0x1d3),'alias':_0x54d377(0x1dc),'custom':0x1,'ReportId':0x2},{'field':_0x54d377(0x1a3),'alias':'HoldTime','format':_0x54d377(0x13b),'ReportId':0x2},{'field':'CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20\x27YES\x27\x20ELSE\x20\x27NO\x27\x20END','alias':_0x54d377(0x1a7),'custom':0x1,'ReportId':0x2},{'field':'uniqueid','alias':_0x54d377(0x15a),'ReportId':0x3},{'field':'calleridnum','alias':'CallerIdNum','ReportId':0x3},{'field':_0x54d377(0x16d),'alias':_0x54d377(0x215),'ReportId':0x3},{'field':_0x54d377(0x14c),'alias':'Queue','ReportId':0x3},{'field':_0x54d377(0xfc),'alias':_0x54d377(0x1e6),'ReportId':0x3},{'field':_0x54d377(0x135),'alias':_0x54d377(0x1dd),'ReportId':0x3},{'field':_0x54d377(0x118),'alias':'AgentConnectAt','ReportId':0x3},{'field':_0x54d377(0x128),'alias':_0x54d377(0x1d4),'ReportId':0x3},{'field':_0x54d377(0x1a3),'alias':_0x54d377(0x1d5),'ReportId':0x3},{'field':_0x54d377(0x150),'alias':_0x54d377(0x1a6),'ReportId':0x3},{'field':'agentacw','alias':_0x54d377(0x11c),'ReportId':0x3},{'field':_0x54d377(0xed),'alias':_0x54d377(0x1f7),'ReportId':0x3},{'field':_0x54d377(0x184),'alias':_0x54d377(0x10c),'ReportId':0x3},{'field':'reason','alias':_0x54d377(0x1b6),'ReportId':0x3},{'field':_0x54d377(0x1f5),'alias':_0x54d377(0x175),'ReportId':0x3},{'field':_0x54d377(0x188),'alias':_0x54d377(0x1e5),'ReportId':0x3},{'field':_0x54d377(0xfc),'alias':_0x54d377(0x1e6),'groupBy':0x1,'ReportId':0x4},{'field':_0x54d377(0x184),'alias':_0x54d377(0x1db),'function':'SUM','ReportId':0x4},{'field':_0x54d377(0x150),'alias':_0x54d377(0x18d),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'ReportId':0x4},{'field':'acwtime','alias':_0x54d377(0x18e),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'ReportId':0x4},{'field':_0x54d377(0x12c),'alias':'TotHandleTime','function':_0x54d377(0xe1),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x4},{'field':_0x54d377(0x159),'alias':_0x54d377(0x146),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x4},{'field':'ROUND(AVG(acwtime))','alias':_0x54d377(0xfd),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x4},{'field':'ROUND(SUM(talktime\x20+\x20acwtime)/COUNT(agentcomplete))','alias':_0x54d377(0x1d6),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x4},{'field':_0x54d377(0x14c),'alias':_0x54d377(0x103),'groupBy':0x1,'ReportId':0x5},{'field':_0x54d377(0x184),'alias':_0x54d377(0x1db),'function':'SUM','ReportId':0x5},{'field':_0x54d377(0x150),'alias':'Tot\x20TalkTime','function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'ReportId':0x5},{'field':_0x54d377(0x1a3),'alias':'Tot\x20HoldTime','function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'ReportId':0x5},{'field':_0x54d377(0xed),'alias':'Tot\x20ACWTime','function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'ReportId':0x5},{'field':_0x54d377(0x12c),'alias':_0x54d377(0x1fa),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x5},{'field':'ROUND(AVG(talktime))','alias':_0x54d377(0x1c4),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x5},{'field':'ROUND(AVG(holdtime))','alias':_0x54d377(0x13c),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x5},{'field':_0x54d377(0x1bf),'alias':_0x54d377(0x1ad),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x5},{'field':'ROUND(SUM(talktime\x20+\x20acwtime)/COUNT(agentcomplete))','alias':_0x54d377(0x1f6),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x5},{'field':_0x54d377(0x14c),'alias':_0x54d377(0x103),'groupBy':0x1,'ReportId':0x6},{'field':_0x54d377(0x184),'alias':_0x54d377(0x1a2),'function':'SUM','ReportId':0x6},{'field':'COUNT(IF(holdtime<10,1,NULL))','alias':_0x54d377(0x19d),'custom':0x1,'ReportId':0x6},{'field':_0x54d377(0x192),'alias':_0x54d377(0x120),'custom':0x1,'ReportId':0x6},{'field':_0x54d377(0x20f),'alias':_0x54d377(0x1cd),'custom':0x1,'ReportId':0x6},{'field':_0x54d377(0x123),'alias':_0x54d377(0x1ef),'custom':0x1,'ReportId':0x6},{'field':'COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))','alias':_0x54d377(0x127),'custom':0x1,'ReportId':0x6},{'field':_0x54d377(0x205),'alias':_0x54d377(0x15f),'custom':0x1,'ReportId':0x6},{'field':_0x54d377(0x207),'alias':_0x54d377(0x1b1),'custom':0x1,'ReportId':0x6},{'field':'ROUND(COUNT(IF(holdtime\x20>=30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','alias':_0x54d377(0x15c),'custom':0x1,'ReportId':0x6},{'field':_0x54d377(0xfa),'alias':_0x54d377(0x14b),'groupBy':0x1,'ReportId':0x7},{'field':_0x54d377(0x1b7),'alias':_0x54d377(0x17c),'function':_0x54d377(0x17a),'ReportId':0x7},{'field':_0x54d377(0x118),'alias':_0x54d377(0x1cb),'format':_0x54d377(0x1f1),'groupBy':0x1,'ReportId':0x8},{'field':_0x54d377(0x184),'alias':_0x54d377(0x1a2),'function':'SUM','ReportId':0x8},{'field':_0x54d377(0x1b4),'alias':_0x54d377(0x19d),'custom':0x1,'ReportId':0x8},{'field':'COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))','alias':_0x54d377(0x1cd),'custom':0x1,'ReportId':0x8},{'field':_0x54d377(0x119),'alias':_0x54d377(0x127),'custom':0x1,'ReportId':0x8},{'field':_0x54d377(0x207),'alias':'Answered\x20>30s','custom':0x1,'ReportId':0x8},{'field':_0x54d377(0x1b7),'alias':_0x54d377(0x15a),'ReportId':0x9},{'field':'calleridnum','alias':_0x54d377(0x112),'ReportId':0x9},{'field':_0x54d377(0x14c),'alias':'Queue','ReportId':0x9},{'field':_0x54d377(0x173),'alias':_0x54d377(0x125),'ReportId':0x9},{'field':'queuecallerleaveAt','alias':'LeaveAt','ReportId':0x9},{'field':_0x54d377(0x197),'alias':'Abandon','ReportId':0x9},{'field':_0x54d377(0x113),'alias':'AbandonAt','ReportId':0x9},{'field':'queuecallerexit','alias':_0x54d377(0x10a),'ReportId':0x9},{'field':_0x54d377(0x1f8),'alias':_0x54d377(0xe0),'ReportId':0x9},{'field':_0x54d377(0x20b),'alias':_0x54d377(0xf3),'ReportId':0x9},{'field':_0x54d377(0x211),'alias':'QueuePosition','ReportId':0x9},{'field':_0x54d377(0x188),'alias':_0x54d377(0x1e5),'ReportId':0x9},{'field':'UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','alias':_0x54d377(0x14a),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x9},{'field':_0x54d377(0x185),'alias':'Unmanaged\x20HoldTime','format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x9},{'field':_0x54d377(0x14c),'alias':_0x54d377(0x103),'groupBy':0x1,'ReportId':0xa},{'field':_0x54d377(0x197),'alias':_0x54d377(0x1ca),'function':_0x54d377(0xe1),'ReportId':0xa},{'field':'queuecallerexit','alias':_0x54d377(0x10a),'function':_0x54d377(0xe1),'ReportId':0xa},{'field':_0x54d377(0x213),'alias':'Tot\x20AbandonTime','function':'SUM','format':_0x54d377(0x13b),'custom':0x1,'ReportId':0xa},{'field':_0x54d377(0x195),'alias':_0x54d377(0x143),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0xa},{'field':'UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','alias':_0x54d377(0x137),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0xa},{'field':_0x54d377(0x1e7),'alias':_0x54d377(0x15e),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xa},{'field':_0x54d377(0x20b),'alias':_0x54d377(0x14b),'groupBy':0x1,'ReportId':0xb},{'field':_0x54d377(0x182),'alias':_0x54d377(0x17c),'function':_0x54d377(0xe1),'ReportId':0xb},{'field':_0x54d377(0x185),'alias':_0x54d377(0x137),'function':_0x54d377(0xe1),'custom':0x1,'ReportId':0xb},{'field':'queue','alias':_0x54d377(0x103),'groupBy':0x1,'ReportId':0xc},{'field':'queuecallerabandon','alias':_0x54d377(0x114),'function':_0x54d377(0xe1),'ReportId':0xc},{'field':'COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))','alias':_0x54d377(0x1c8),'custom':0x1,'ReportId':0xc},{'field':_0x54d377(0x214),'alias':_0x54d377(0x208),'custom':0x1,'ReportId':0xc},{'field':_0x54d377(0x16f),'alias':_0x54d377(0x13e),'custom':0x1,'ReportId':0xc},{'field':'ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=10\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<60,1,NULL))\x20\x20/\x20SUM(queuecallerabandon)\x20*100,1)','alias':_0x54d377(0x189),'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':_0x54d377(0x156),'custom':0x1,'ReportId':0xc},{'field':_0x54d377(0x1fe),'alias':'Abandoned\x20Rate\x2060-120s','custom':0x1,'ReportId':0xc},{'field':_0x54d377(0xea),'alias':_0x54d377(0xee),'custom':0x1,'ReportId':0xc},{'field':_0x54d377(0x209),'alias':_0x54d377(0x154),'custom':0x1,'ReportId':0xc},{'field':'queuecallerjoinat','alias':_0x54d377(0x19a),'format':_0x54d377(0x203),'groupBy':0x1,'custom':0x1,'ReportId':0xd},{'field':'uniqueid','alias':_0x54d377(0x20d),'function':_0x54d377(0x161),'ReportId':0xd},{'field':_0x54d377(0x1d2),'alias':_0x54d377(0x1db),'function':'SUM','ReportId':0xd},{'field':_0x54d377(0x197),'alias':_0x54d377(0x1ca),'function':_0x54d377(0xe1),'custom':0x1,'ReportId':0xd},{'field':_0x54d377(0x182),'alias':'Unmanaged','function':_0x54d377(0xe1),'custom':0x1,'ReportId':0xd},{'field':_0x54d377(0x13a),'alias':_0x54d377(0x122),'function':'SUM','format':'SEC_TO_TIME','custom':0x1,'ReportId':0xd},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','alias':'AvgTalkTime','format':_0x54d377(0x13b),'custom':0x1,'ReportId':0xd},{'field':_0x54d377(0x195),'alias':_0x54d377(0x143),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0xd},{'field':_0x54d377(0xfe),'alias':_0x54d377(0x1cb),'format':_0x54d377(0x1f1),'groupBy':0x1,'custom':0x1,'ReportId':0xe},{'field':_0x54d377(0x1b7),'alias':'Offered','function':'COUNT\x20DISTINCT','ReportId':0xe},{'field':_0x54d377(0x1d2),'alias':_0x54d377(0x1a7),'function':'SUM','ReportId':0xe},{'field':_0x54d377(0x186),'alias':'Answer\x20Rate','custom':0x1,'ReportId':0xe},{'field':'queuecallerabandon','alias':_0x54d377(0x1ca),'function':_0x54d377(0xe1),'ReportId':0xe},{'field':_0x54d377(0x182),'alias':_0x54d377(0x10a),'function':'SUM','ReportId':0xe},{'field':'UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','alias':_0x54d377(0x122),'function':_0x54d377(0xe1),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xe},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','alias':_0x54d377(0x146),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0xe},{'field':_0x54d377(0x195),'alias':_0x54d377(0x143),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0xe},{'field':_0x54d377(0xe8),'alias':_0x54d377(0x1c0),'groupBy':0x1,'custom':0x1,'ReportId':0xf},{'field':_0x54d377(0x1b7),'alias':'Offered','function':_0x54d377(0x161),'ReportId':0xf},{'field':_0x54d377(0x1d2),'alias':'Answered','function':'SUM','ReportId':0xf},{'field':_0x54d377(0x186),'alias':_0x54d377(0x174),'custom':0x1,'ReportId':0xf},{'field':_0x54d377(0x197),'alias':_0x54d377(0x1ca),'function':_0x54d377(0xe1),'ReportId':0xf},{'field':_0x54d377(0x182),'alias':_0x54d377(0x10a),'function':_0x54d377(0xe1),'ReportId':0xf},{'field':_0x54d377(0x13a),'alias':_0x54d377(0x122),'function':_0x54d377(0xe1),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xf},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','alias':_0x54d377(0x146),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0xf},{'field':_0x54d377(0x195),'alias':_0x54d377(0x143),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0xf},{'field':'DAYNAME(queuecallerjoinat)','alias':_0x54d377(0x1e3),'groupBy':0x1,'custom':0x1,'ReportId':0x10},{'field':_0x54d377(0x1b7),'alias':_0x54d377(0x20d),'function':_0x54d377(0x161),'ReportId':0x10},{'field':'queuecallercomplete','alias':_0x54d377(0x1a7),'function':_0x54d377(0xe1),'ReportId':0x10},{'field':_0x54d377(0x186),'alias':_0x54d377(0x174),'custom':0x1,'ReportId':0x10},{'field':_0x54d377(0x197),'alias':_0x54d377(0x1ca),'function':_0x54d377(0xe1),'orderBy':_0x54d377(0x212),'ReportId':0x10},{'field':_0x54d377(0x182),'alias':_0x54d377(0x10a),'function':'SUM','ReportId':0x10},{'field':'UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','alias':_0x54d377(0x122),'function':'SUM','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x10},{'field':_0x54d377(0xe4),'alias':_0x54d377(0x146),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x10},{'field':_0x54d377(0x195),'alias':'AvgAbandonTime','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x10},{'field':'queue','alias':_0x54d377(0x103),'groupBy':0x1,'ReportId':0x11},{'field':_0x54d377(0x1b7),'alias':_0x54d377(0x20d),'function':_0x54d377(0x161),'ReportId':0x11},{'field':_0x54d377(0x1d2),'alias':_0x54d377(0x1a7),'function':_0x54d377(0xe1),'ReportId':0x11},{'field':_0x54d377(0x186),'alias':'Answer\x20Rate','custom':0x1,'ReportId':0x11},{'field':_0x54d377(0x197),'alias':'Abandoned','function':'SUM','ReportId':0x11},{'field':_0x54d377(0x182),'alias':_0x54d377(0x10a),'function':'SUM','ReportId':0x11},{'field':_0x54d377(0x13a),'alias':'Tot\x20TalkTime','function':'SUM','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x11},{'field':_0x54d377(0xe4),'alias':_0x54d377(0x146),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x11},{'field':_0x54d377(0x195),'alias':_0x54d377(0x143),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x11},{'field':'uniqueid','alias':_0x54d377(0x1b3),'ReportId':0x12},{'field':_0x54d377(0x201),'alias':'Type','ReportId':0x12},{'field':_0x54d377(0x158),'alias':_0x54d377(0x1d1),'ReportId':0x12},{'field':_0x54d377(0x152),'alias':_0x54d377(0x162),'ReportId':0x12},{'field':'destination','alias':'Destination','ReportId':0x12},{'field':_0x54d377(0x181),'alias':_0x54d377(0x176),'ReportId':0x12},{'field':_0x54d377(0xff),'alias':_0x54d377(0x18b),'ReportId':0x12},{'field':_0x54d377(0x131),'alias':_0x54d377(0x1f9),'ReportId':0x12},{'field':_0x54d377(0x10d),'alias':'LastData','ReportId':0x12},{'field':_0x54d377(0x206),'alias':_0x54d377(0x1bb),'ReportId':0x12},{'field':_0x54d377(0xf6),'alias':'AnswerTime','ReportId':0x12},{'field':'endtime','alias':'EndTime','ReportId':0x12},{'field':_0x54d377(0x1af),'alias':_0x54d377(0x133),'ReportId':0x12},{'field':_0x54d377(0x19c),'alias':_0x54d377(0x126),'ReportId':0x12},{'field':_0x54d377(0x1b7),'alias':_0x54d377(0x1b3),'ReportId':0x13},{'field':'accountcode','alias':_0x54d377(0xf0),'ReportId':0x13},{'field':_0x54d377(0x152),'alias':_0x54d377(0x162),'ReportId':0x13},{'field':_0x54d377(0x1b2),'alias':_0x54d377(0x1d8),'ReportId':0x13},{'field':_0x54d377(0x181),'alias':_0x54d377(0x140),'ReportId':0x13},{'field':_0x54d377(0x206),'alias':_0x54d377(0x1bb),'ReportId':0x13},{'field':_0x54d377(0xf6),'alias':_0x54d377(0x1d5),'ReportId':0x13},{'field':_0x54d377(0x170),'alias':'EndTime','ReportId':0x13},{'field':_0x54d377(0x1af),'alias':_0x54d377(0x133),'format':_0x54d377(0x13b),'ReportId':0x13},{'field':_0x54d377(0x134),'alias':_0x54d377(0x20a),'format':_0x54d377(0x13b),'ReportId':0x13},{'field':_0x54d377(0x19c),'alias':_0x54d377(0x126),'ReportId':0x13},{'field':_0x54d377(0x158),'alias':_0x54d377(0x1d1),'ReportId':0x13},{'field':_0x54d377(0x201),'alias':_0x54d377(0x17d),'groupBy':0x1,'ReportId':0x14},{'field':_0x54d377(0x1b7),'alias':_0x54d377(0x17c),'function':_0x54d377(0x17a),'ReportId':0x14},{'field':_0x54d377(0x1af),'alias':'Tot\x20Duration','function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'ReportId':0x14},{'field':'ROUND(AVG(duration))','alias':_0x54d377(0x145),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x14},{'field':_0x54d377(0x19c),'alias':_0x54d377(0x126),'groupBy':0x1,'ReportId':0x15},{'field':_0x54d377(0x1b7),'alias':_0x54d377(0x17c),'function':'COUNT','ReportId':0x15},{'field':_0x54d377(0x1af),'alias':_0x54d377(0x13f),'function':'SUM','format':_0x54d377(0x13b),'ReportId':0x15},{'field':_0x54d377(0x171),'alias':'Avg\x20Duration','format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x15},{'field':'SUBSTRING_INDEX(channel,\x20\x22-\x22,\x201)','alias':_0x54d377(0x1e6),'groupBy':0x1,'custom':0x1,'ReportId':0x16},{'field':_0x54d377(0x1b7),'alias':_0x54d377(0x17c),'function':'COUNT','ReportId':0x16},{'field':_0x54d377(0x1af),'alias':_0x54d377(0x13f),'function':_0x54d377(0xe1),'format':'SEC_TO_TIME','ReportId':0x16},{'field':'ROUND(AVG(duration))','alias':_0x54d377(0x145),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x16},{'field':_0x54d377(0x206),'alias':_0x54d377(0x19a),'format':'DATE','groupBy':0x1,'ReportId':0x17},{'field':'uniqueid','alias':_0x54d377(0x17c),'function':_0x54d377(0x17a),'ReportId':0x17},{'field':_0x54d377(0x1af),'alias':_0x54d377(0x13f),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'ReportId':0x17},{'field':_0x54d377(0x171),'alias':'Avg\x20Duration','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x17},{'field':_0x54d377(0xfc),'alias':_0x54d377(0x1e6),'groupBy':0x1,'orderBy':_0x54d377(0x212),'ReportId':0x18},{'field':_0x54d377(0x1f3),'alias':_0x54d377(0x133),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x18},{'field':_0x54d377(0xfc),'alias':_0x54d377(0x1e6),'groupBy':0x1,'ReportId':0x19},{'field':_0x54d377(0x147),'alias':_0x54d377(0x1ba),'function':'SUM','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x19},{'field':_0x54d377(0x10e),'alias':_0x54d377(0x1c9),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x19},{'field':_0x54d377(0x1e4),'alias':_0x54d377(0xe6),'function':_0x54d377(0xe1),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x19},{'field':_0x54d377(0xfc),'alias':_0x54d377(0x1e6),'ReportId':0x1a},{'field':_0x54d377(0x1fc),'alias':_0x54d377(0x1b8),'ReportId':0x1a},{'field':_0x54d377(0x11d),'alias':_0x54d377(0x1ff),'ReportId':0x1a},{'field':_0x54d377(0xf5),'alias':'Pause','ReportId':0x1a},{'field':_0x54d377(0x1af),'alias':_0x54d377(0x133),'format':_0x54d377(0x13b),'ReportId':0x1a},{'field':_0x54d377(0xfc),'alias':'Agent','ReportId':0x1b},{'field':_0x54d377(0x1a8),'alias':_0x54d377(0x1ab),'ReportId':0x1b},{'field':_0x54d377(0x201),'alias':_0x54d377(0x1df),'ReportId':0x1b},{'field':_0x54d377(0xf5),'alias':_0x54d377(0x17d),'ReportId':0x1b},{'field':_0x54d377(0x1fc),'alias':_0x54d377(0x1b8),'ReportId':0x1b},{'field':_0x54d377(0x11d),'alias':_0x54d377(0x1ff),'ReportId':0x1b},{'field':'UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)','alias':_0x54d377(0x133),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x1b},{'field':_0x54d377(0xfc),'alias':'Agent','groupBy':0x1,'orderBy':_0x54d377(0x212),'ReportId':0x1c},{'field':_0x54d377(0xf5),'alias':_0x54d377(0x204),'groupBy':0x1,'orderBy':_0x54d377(0x212),'ReportId':0x1c},{'field':_0x54d377(0x1f3),'alias':_0x54d377(0x133),'function':'SUM','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x1c},{'field':_0x54d377(0xe7),'alias':_0x54d377(0x17b),'ReportId':0x1d},{'field':_0x54d377(0x1b7),'alias':'UniqueId','ReportId':0x1d},{'field':_0x54d377(0x181),'alias':_0x54d377(0x140),'ReportId':0x1d},{'field':_0x54d377(0x1b0),'alias':_0x54d377(0x1e5),'ReportId':0x1d},{'field':'joinAt','alias':_0x54d377(0x1c5),'orderBy':'ASC','ReportId':0x1d},{'field':_0x54d377(0x19b),'alias':_0x54d377(0x1b9),'ReportId':0x1d},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':_0x54d377(0x133),'format':_0x54d377(0x13b),'custom':0x1,'ReportId':0x1d},{'field':_0x54d377(0x1b7),'alias':'Unique\x20Id','ReportId':0x1e},{'field':_0x54d377(0xe7),'alias':'Project\x20Name','ReportId':0x1e},{'field':_0x54d377(0x181),'alias':_0x54d377(0x12a),'ReportId':0x1e},{'field':_0x54d377(0x1e2),'alias':_0x54d377(0x136),'ReportId':0x1e},{'field':_0x54d377(0x1ed),'alias':_0x54d377(0x18a),'ReportId':0x1e},{'field':_0x54d377(0x198),'alias':_0x54d377(0x1e6),'groupBy':0x1,'ReportId':0x1f},{'field':_0x54d377(0x1b7),'alias':_0x54d377(0xfb),'function':'COUNT','ReportId':0x1f},{'field':_0x54d377(0xe5),'alias':_0x54d377(0x178),'function':_0x54d377(0xe1),'ReportId':0x1f},{'field':_0x54d377(0xe5),'alias':_0x54d377(0x1eb),'function':_0x54d377(0x1a5),'ReportId':0x1f},{'field':_0x54d377(0x14c),'alias':'Queue','groupBy':0x1,'ReportId':0x20},{'field':_0x54d377(0x1b7),'alias':_0x54d377(0x1b5),'function':_0x54d377(0x17a),'ReportId':0x20},{'field':_0x54d377(0xe5),'alias':_0x54d377(0x178),'function':_0x54d377(0xe1),'ReportId':0x20},{'field':_0x54d377(0xe5),'alias':_0x54d377(0x1eb),'function':_0x54d377(0x1a5),'ReportId':0x20},{'field':_0x54d377(0x148),'alias':'Campaign\x20Name','ReportId':0x21},{'field':_0x54d377(0x1ce),'alias':'CallerIdNum','ReportId':0x21},{'field':'starttime','alias':_0x54d377(0x179),'orderBy':_0x54d377(0x129),'ReportId':0x21},{'field':'statedesc','alias':_0x54d377(0xe3),'ReportId':0x21},{'field':'countglobal','alias':_0x54d377(0x102),'ReportId':0x21},{'field':'dropreason','alias':_0x54d377(0x16c),'ReportId':0x21},{'field':_0x54d377(0x167),'alias':_0x54d377(0x144),'ReportId':0x21},{'field':_0x54d377(0xfc),'alias':'Agent','ReportId':0x21},{'field':_0x54d377(0x150),'alias':_0x54d377(0x1c9),'ReportId':0x21},{'field':_0x54d377(0x19c),'alias':'Disposition','ReportId':0x21},{'field':_0x54d377(0x1b7),'alias':_0x54d377(0x15a),'ReportId':0x21},{'field':_0x54d377(0x142),'alias':_0x54d377(0xe3),'groupBy':!![],'orderBy':_0x54d377(0x212),'ReportId':0x22},{'field':'id','alias':'Calls','function':_0x54d377(0x17a),'ReportId':0x22},{'field':_0x54d377(0x1ee),'alias':_0x54d377(0x1be),'custom':!![],'ReportId':0x22},{'field':_0x54d377(0x148),'alias':_0x54d377(0x141),'orderBy':_0x54d377(0x212),'groupBy':!![],'ReportId':0x23},{'field':'statedesc','alias':_0x54d377(0xe3),'groupBy':!![],'ReportId':0x23},{'field':'id','alias':_0x54d377(0x20c),'function':_0x54d377(0x17a),'ReportId':0x23},{'field':_0x54d377(0x1de),'groupBy':!![],'orderBy':_0x54d377(0x212),'ReportId':0x24},{'field':'id','alias':_0x54d377(0x12d),'function':_0x54d377(0x17a),'ReportId':0x24},{'field':'SUM(IF(state=4,1,0))','alias':'Managed','custom':!![],'ReportId':0x24},{'field':_0x54d377(0x177),'alias':'Penetration\x20Rate','custom':!![],'ReportId':0x24},{'field':_0x54d377(0xfc),'alias':_0x54d377(0x1e6),'groupBy':!![],'orderBy':_0x54d377(0x212),'ReportId':0x25},{'field':'id','alias':'Calls','function':_0x54d377(0x17a),'ReportId':0x25},{'field':_0x54d377(0x15b),'alias':_0x54d377(0x1c1),'custom':!![],'ReportId':0x25},{'field':_0x54d377(0x19c),'alias':_0x54d377(0x126),'groupBy':!![],'ReportId':0x26},{'field':'id','alias':_0x54d377(0x111),'function':_0x54d377(0x17a),'ReportId':0x26},{'field':'ROUND(COUNT(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_final\x20WHERE\x20state=4\x20and\x20campaigntype=\x27queue\x27),2)','alias':'Total\x20(%)','custom':!![],'ReportId':0x26},{'field':_0x54d377(0xfc),'alias':_0x54d377(0x1e6),'groupBy':!![],'ReportId':0x27},{'field':'disposition','alias':_0x54d377(0x126),'groupBy':!![],'ReportId':0x27},{'field':'id','alias':'Total','function':_0x54d377(0x17a),'ReportId':0x27},{'field':'ROUND(COUNT(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_final\x20WHERE\x20state=4\x20and\x20campaigntype=\x27queue\x27),2)','alias':_0x54d377(0x1a1),'custom':!![],'ReportId':0x27},{'field':_0x54d377(0x148),'alias':_0x54d377(0x141),'ReportId':0x28},{'field':'calleridnum','alias':_0x54d377(0x112),'ReportId':0x28},{'field':_0x54d377(0x206),'alias':_0x54d377(0x179),'orderBy':'DESC','ReportId':0x28},{'field':_0x54d377(0x142),'alias':_0x54d377(0xe3),'ReportId':0x28},{'field':_0x54d377(0x202),'alias':'Global\x20Count','ReportId':0x28},{'field':_0x54d377(0xe2),'alias':_0x54d377(0x16c),'ReportId':0x28},{'field':'blacklist','alias':_0x54d377(0x144),'ReportId':0x28},{'field':_0x54d377(0x150),'alias':_0x54d377(0x1c9),'ReportId':0x28},{'field':_0x54d377(0x1b7),'alias':_0x54d377(0x15a),'ReportId':0x28},{'field':_0x54d377(0x142),'alias':_0x54d377(0xe3),'groupBy':!![],'orderBy':_0x54d377(0x212),'ReportId':0x29},{'field':'id','alias':_0x54d377(0x17c),'function':_0x54d377(0x17a),'ReportId':0x29},{'field':_0x54d377(0x20e),'alias':_0x54d377(0x1be),'custom':!![],'ReportId':0x29},{'field':'campaign','alias':_0x54d377(0x141),'orderBy':_0x54d377(0x212),'groupBy':!![],'ReportId':0x2a},{'field':_0x54d377(0x142),'alias':'State','groupBy':!![],'ReportId':0x2a},{'field':'id','alias':_0x54d377(0x20c),'function':_0x54d377(0x17a),'ReportId':0x2a},{'field':_0x54d377(0x1de),'groupBy':!![],'orderBy':_0x54d377(0x212),'ReportId':0x2b},{'field':'id','alias':'Contacts','function':'COUNT','ReportId':0x2b},{'field':_0x54d377(0x1ae),'alias':'Managed','custom':!![],'ReportId':0x2b},{'field':_0x54d377(0x177),'alias':_0x54d377(0x1f2),'custom':!![],'ReportId':0x2b},{'field':_0x54d377(0xf9),'alias':_0x54d377(0x1ec),'groupBy':!![],'ReportId':0x2c},{'field':'chat_interactions.id','alias':_0x54d377(0x12f),'function':'COUNT','ReportId':0x2c},{'field':'COUNT(IF(closed=0,1,NULL))','alias':_0x54d377(0x169),'custom':!![],'ReportId':0x2c},{'field':'COUNT(IF(closed=1\x20&&\x20((disposition\x20!=\x27unmanaged\x27\x20&&\x20disposition\x20!=\x27abandoned\x27)\x20||\x20disposition\x20IS\x20NULL),1,NULL))','alias':_0x54d377(0x160),'custom':!![],'ReportId':0x2c},{'field':_0x54d377(0x165),'alias':_0x54d377(0x10a),'custom':!![],'ReportId':0x2c},{'field':_0x54d377(0x10f),'alias':_0x54d377(0x1ca),'custom':!![],'ReportId':0x2c},{'field':_0x54d377(0xf9),'alias':'Web\x20Site','groupBy':!![],'ReportId':0x2d},{'field':_0x54d377(0x166),'alias':_0x54d377(0x191),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x2d},{'field':_0x54d377(0xdf),'alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x2d},{'field':_0x54d377(0x121),'alias':'Agent','groupBy':!![],'ReportId':0x2e},{'field':_0x54d377(0x11f),'alias':_0x54d377(0x160),'function':_0x54d377(0xe1),'ReportId':0x2e},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)','alias':_0x54d377(0x191),'function':_0x54d377(0xe1),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x2e},{'field':_0x54d377(0xdf),'alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x2e},{'field':'chat_interactions.createdAt','alias':_0x54d377(0x19a),'format':_0x54d377(0x203),'groupBy':!![],'custom':!![],'ReportId':0x2f},{'field':_0x54d377(0x151),'alias':_0x54d377(0x12f),'function':_0x54d377(0x17a),'ReportId':0x2f},{'field':_0x54d377(0x105),'alias':_0x54d377(0x1db),'custom':!![],'ReportId':0x2f},{'field':_0x54d377(0xeb),'alias':'Completed\x20(%)','custom':!![],'ReportId':0x2f},{'field':_0x54d377(0x165),'alias':'Unmanaged','custom':!![],'ReportId':0x2f},{'field':_0x54d377(0x1d9),'alias':_0x54d377(0x1e8),'custom':!![],'ReportId':0x2f},{'field':_0x54d377(0x10f),'alias':_0x54d377(0x1ca),'custom':!![],'ReportId':0x2f},{'field':_0x54d377(0x1d0),'alias':_0x54d377(0x16e),'custom':!![],'ReportId':0x2f},{'field':_0x54d377(0x104),'alias':_0x54d377(0x191),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x2f},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x2f},{'field':_0x54d377(0x19f),'alias':'Queue','groupBy':!![],'ReportId':0x30},{'field':'report_chat_queue.id','alias':'Interactions','function':'COUNT','ReportId':0x30},{'field':'COUNT(IF(reason=\x27accepted\x27,1,NULL))','alias':_0x54d377(0xf7),'custom':!![],'ReportId':0x30},{'field':_0x54d377(0x1c2),'alias':_0x54d377(0x14f),'custom':!![],'ReportId':0x30},{'field':_0x54d377(0x216),'alias':_0x54d377(0x1da),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x30},{'field':_0x54d377(0x18f),'alias':_0x54d377(0x1e1),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x30},{'field':_0x54d377(0x1f0),'alias':_0x54d377(0x11e),'groupBy':!![],'ReportId':0x31},{'field':_0x54d377(0x17e),'alias':'Interactions','function':_0x54d377(0x17a),'ReportId':0x31},{'field':'COUNT(IF(closed=0,1,NULL))','alias':_0x54d377(0x169),'custom':!![],'ReportId':0x31},{'field':_0x54d377(0x106),'alias':_0x54d377(0x160),'custom':!![],'ReportId':0x31},{'field':_0x54d377(0x1f0),'alias':_0x54d377(0x11e),'groupBy':!![],'ReportId':0x32},{'field':_0x54d377(0x1cc),'alias':'Interaction\x20Time','function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x32},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)))','alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x32},{'field':_0x54d377(0x121),'alias':_0x54d377(0x1e6),'groupBy':!![],'ReportId':0x33},{'field':'mail_interactions.closed','alias':_0x54d377(0x160),'function':_0x54d377(0xe1),'ReportId':0x33},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)','alias':_0x54d377(0x191),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x33},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)))','alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x33},{'field':_0x54d377(0x1ea),'alias':_0x54d377(0x19a),'format':_0x54d377(0x203),'groupBy':!![],'custom':!![],'ReportId':0x34},{'field':_0x54d377(0x17e),'alias':_0x54d377(0x12f),'function':_0x54d377(0x17a),'ReportId':0x34},{'field':_0x54d377(0x106),'alias':_0x54d377(0x1db),'custom':!![],'ReportId':0x34},{'field':'ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','alias':'Completed\x20(%)','custom':!![],'ReportId':0x34},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':'Interaction\x20Time','function':'SUM','format':_0x54d377(0x13b),'custom':!![],'ReportId':0x34},{'field':_0x54d377(0x153),'alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x34},{'field':_0x54d377(0x109),'alias':'Queue','groupBy':!![],'ReportId':0x35},{'field':_0x54d377(0x115),'alias':'Interactions','function':'COUNT','ReportId':0x35},{'field':_0x54d377(0x117),'alias':_0x54d377(0xf7),'custom':!![],'ReportId':0x35},{'field':_0x54d377(0x1c2),'alias':_0x54d377(0x14f),'custom':!![],'ReportId':0x35},{'field':_0x54d377(0x216),'alias':_0x54d377(0x1da),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x35},{'field':_0x54d377(0x18f),'alias':_0x54d377(0x1e1),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x35},{'field':_0x54d377(0x17f),'alias':_0x54d377(0x1cf),'groupBy':!![],'ReportId':0x36},{'field':'openchannel_interactions.id','alias':_0x54d377(0x12f),'function':_0x54d377(0x17a),'ReportId':0x36},{'field':_0x54d377(0x1c6),'alias':_0x54d377(0x169),'custom':!![],'ReportId':0x36},{'field':_0x54d377(0x106),'alias':_0x54d377(0x160),'custom':!![],'ReportId':0x36},{'field':'openchannel_accounts.name','alias':'Openchannel\x20Account','groupBy':!![],'ReportId':0x37},{'field':_0x54d377(0x1d7),'alias':_0x54d377(0x191),'function':'SUM','format':_0x54d377(0x13b),'custom':!![],'ReportId':0x37},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)))','alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x37},{'field':_0x54d377(0x121),'alias':_0x54d377(0x1e6),'groupBy':!![],'ReportId':0x38},{'field':_0x54d377(0x149),'alias':_0x54d377(0x160),'function':_0x54d377(0xe1),'ReportId':0x38},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)','alias':_0x54d377(0x191),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x38},{'field':_0x54d377(0x1aa),'alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x38},{'field':'openchannel_interactions.createdAt','alias':_0x54d377(0x19a),'format':_0x54d377(0x203),'groupBy':!![],'custom':!![],'ReportId':0x39},{'field':_0x54d377(0x1bd),'alias':_0x54d377(0x12f),'function':_0x54d377(0x17a),'ReportId':0x39},{'field':_0x54d377(0x106),'alias':'Completed','custom':!![],'ReportId':0x39},{'field':'ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x54d377(0x155),'custom':!![],'ReportId':0x39},{'field':_0x54d377(0x104),'alias':_0x54d377(0x191),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x39},{'field':_0x54d377(0x153),'alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x39},{'field':_0x54d377(0x11a),'alias':'Queue','groupBy':!![],'ReportId':0x3a},{'field':_0x54d377(0x14d),'alias':_0x54d377(0x12f),'function':_0x54d377(0x17a),'ReportId':0x3a},{'field':_0x54d377(0x117),'alias':_0x54d377(0xf7),'custom':!![],'ReportId':0x3a},{'field':_0x54d377(0x1c2),'alias':_0x54d377(0x14f),'custom':!![],'ReportId':0x3a},{'field':_0x54d377(0x216),'alias':_0x54d377(0x1da),'function':_0x54d377(0xe1),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3a},{'field':'ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','alias':'AVG\x20Hold\x20Time','format':_0x54d377(0x13b),'custom':!![],'ReportId':0x3a},{'field':_0x54d377(0x1f4),'alias':_0x54d377(0x1a0),'groupBy':!![],'ReportId':0x3b},{'field':'sms_interactions.id','alias':_0x54d377(0x12f),'function':_0x54d377(0x17a),'ReportId':0x3b},{'field':_0x54d377(0x1c6),'alias':'Open','custom':!![],'ReportId':0x3b},{'field':_0x54d377(0x106),'alias':_0x54d377(0x160),'custom':!![],'ReportId':0x3b},{'field':_0x54d377(0x1f4),'alias':_0x54d377(0x1a0),'groupBy':!![],'ReportId':0x3c},{'field':_0x54d377(0x13d),'alias':_0x54d377(0x191),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x3c},{'field':_0x54d377(0x196),'alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x3c},{'field':_0x54d377(0x121),'alias':_0x54d377(0x1e6),'groupBy':!![],'ReportId':0x3d},{'field':_0x54d377(0x187),'alias':'Closed','function':'SUM','ReportId':0x3d},{'field':_0x54d377(0x13d),'alias':_0x54d377(0x191),'function':_0x54d377(0xe1),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3d},{'field':_0x54d377(0x196),'alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x3d},{'field':_0x54d377(0x100),'alias':_0x54d377(0x19a),'format':_0x54d377(0x203),'groupBy':!![],'custom':!![],'ReportId':0x3e},{'field':_0x54d377(0x163),'alias':_0x54d377(0x12f),'function':_0x54d377(0x17a),'ReportId':0x3e},{'field':_0x54d377(0x106),'alias':_0x54d377(0x1db),'custom':!![],'ReportId':0x3e},{'field':'ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x54d377(0x155),'custom':!![],'ReportId':0x3e},{'field':_0x54d377(0x104),'alias':_0x54d377(0x191),'function':'SUM','format':_0x54d377(0x13b),'custom':!![],'ReportId':0x3e},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x3e},{'field':'sms_queues.name','alias':_0x54d377(0x103),'groupBy':!![],'ReportId':0x3f},{'field':_0x54d377(0x19e),'alias':_0x54d377(0x12f),'function':_0x54d377(0x17a),'ReportId':0x3f},{'field':_0x54d377(0x117),'alias':'Accepted','custom':!![],'ReportId':0x3f},{'field':_0x54d377(0x1c2),'alias':'Timeout','custom':!![],'ReportId':0x3f},{'field':_0x54d377(0x216),'alias':_0x54d377(0x1da),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x3f},{'field':_0x54d377(0x18f),'alias':_0x54d377(0x1e1),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3f},{'field':_0x54d377(0xf1),'alias':_0x54d377(0x103),'groupBy':!![],'ReportId':0x44},{'field':_0x54d377(0xf8),'alias':_0x54d377(0x12f),'function':'COUNT','ReportId':0x44},{'field':_0x54d377(0x117),'alias':_0x54d377(0xf7),'custom':!![],'ReportId':0x44},{'field':_0x54d377(0x1c2),'alias':_0x54d377(0x14f),'custom':!![],'ReportId':0x44},{'field':_0x54d377(0x216),'alias':_0x54d377(0x1da),'function':_0x54d377(0xe1),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x44},{'field':_0x54d377(0x18f),'alias':_0x54d377(0x1e1),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x44},{'field':_0x54d377(0x12b),'alias':_0x54d377(0x19a),'format':_0x54d377(0x203),'groupBy':!![],'custom':!![],'ReportId':0x43},{'field':_0x54d377(0x210),'alias':_0x54d377(0x12f),'function':'COUNT','ReportId':0x43},{'field':_0x54d377(0x106),'alias':_0x54d377(0x1db),'custom':!![],'ReportId':0x43},{'field':'ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x54d377(0x155),'custom':!![],'ReportId':0x43},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':'Interaction\x20Time','function':_0x54d377(0xe1),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x43},{'field':_0x54d377(0x153),'alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x43},{'field':_0x54d377(0x121),'alias':_0x54d377(0x1e6),'groupBy':!![],'ReportId':0x42},{'field':_0x54d377(0x199),'alias':_0x54d377(0x160),'function':_0x54d377(0xe1),'ReportId':0x42},{'field':_0x54d377(0x1fb),'alias':_0x54d377(0x191),'function':'SUM','format':'SEC_TO_TIME','custom':!![],'ReportId':0x42},{'field':_0x54d377(0x10b),'alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x42},{'field':_0x54d377(0x132),'alias':'Fax\x20Account','groupBy':!![],'ReportId':0x41},{'field':_0x54d377(0x1fb),'alias':_0x54d377(0x191),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x41},{'field':_0x54d377(0x10b),'alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x41},{'field':_0x54d377(0x132),'alias':'Fax\x20Account','groupBy':!![],'ReportId':0x40},{'field':_0x54d377(0x210),'alias':_0x54d377(0x12f),'function':'COUNT','ReportId':0x40},{'field':'COUNT(IF(closed=0,1,NULL))','alias':'Open','custom':!![],'ReportId':0x40},{'field':_0x54d377(0x106),'alias':_0x54d377(0x160),'custom':!![],'ReportId':0x40},{'field':'voice_recordings.UserId','alias':_0x54d377(0xf4),'groupBy':!![],'custom':![],'ReportId':0x4a},{'field':'users.fullname','alias':'Full\x20Name','groupBy':![],'custom':![],'ReportId':0x4a},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL))','alias':'POSITIVE','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL))','alias':_0x54d377(0x15d),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x54d377(0xef),'alias':_0x54d377(0x108),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x54d377(0x193),'alias':'MIXED','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x54d377(0xec),'alias':_0x54d377(0x101),'function':_0x54d377(0x17a),'groupBy':![],'custom':![],'ReportId':0x4a},{'field':_0x54d377(0x14e),'alias':_0x54d377(0x124),'groupBy':![],'custom':!![],'ReportId':0x45},{'field':_0x54d377(0x1c3),'alias':'Negative(%)','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x54d377(0x172),'alias':'Neutral(%)','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x54d377(0x116),'alias':'Mixed(%)','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x54d377(0xec),'alias':_0x54d377(0x1e9),'function':_0x54d377(0x17a),'groupBy':![],'custom':![],'ReportId':0x4b},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL))','alias':_0x54d377(0x200),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x54d377(0x18c),'alias':'NEGATIVE','groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL))','alias':'NEUTRAL','groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL))','alias':_0x54d377(0x1a9),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x54d377(0x14e),'alias':_0x54d377(0x124),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x54d377(0x1c3),'alias':_0x54d377(0x1e0),'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':_0x54d377(0x16b),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x54d377(0x116),'alias':'Mixed(%)','groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x54d377(0x1ac),'alias':_0x54d377(0xe9),'groupBy':!![],'ReportId':0x45},{'field':_0x54d377(0xf2),'alias':'Interactions','function':_0x54d377(0x17a),'ReportId':0x45},{'field':'COUNT(IF(closed=0,1,NULL))','alias':_0x54d377(0x169),'custom':!![],'ReportId':0x45},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0x54d377(0x160),'custom':!![],'ReportId':0x45},{'field':_0x54d377(0x1ac),'alias':_0x54d377(0xe9),'groupBy':!![],'ReportId':0x46},{'field':_0x54d377(0x180),'alias':_0x54d377(0x191),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x46},{'field':_0x54d377(0x194),'alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x46},{'field':'users.fullname','alias':'Agent','groupBy':!![],'ReportId':0x47},{'field':_0x54d377(0x138),'alias':'Closed','function':_0x54d377(0xe1),'ReportId':0x47},{'field':_0x54d377(0x180),'alias':_0x54d377(0x191),'function':'SUM','format':'SEC_TO_TIME','custom':!![],'ReportId':0x47},{'field':_0x54d377(0x194),'alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x47},{'field':'whatsapp_interactions.createdAt','alias':'Date','format':_0x54d377(0x203),'groupBy':!![],'custom':!![],'ReportId':0x48},{'field':_0x54d377(0xf2),'alias':_0x54d377(0x12f),'function':_0x54d377(0x17a),'ReportId':0x48},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0x54d377(0x1db),'custom':!![],'ReportId':0x48},{'field':_0x54d377(0x107),'alias':_0x54d377(0x155),'custom':!![],'ReportId':0x48},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':_0x54d377(0x191),'function':_0x54d377(0xe1),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x48},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','alias':_0x54d377(0x1bc),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x48},{'field':'whatsapp_queues.name','alias':_0x54d377(0x103),'groupBy':!![],'ReportId':0x49},{'field':_0x54d377(0x190),'alias':_0x54d377(0x12f),'function':'COUNT','ReportId':0x49},{'field':_0x54d377(0x117),'alias':_0x54d377(0xf7),'custom':!![],'ReportId':0x49},{'field':_0x54d377(0x1c2),'alias':'Timeout','custom':!![],'ReportId':0x49},{'field':_0x54d377(0x216),'alias':_0x54d377(0x1da),'function':_0x54d377(0xe1),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x49},{'field':_0x54d377(0x18f),'alias':_0x54d377(0x1e1),'format':_0x54d377(0x13b),'custom':!![],'ReportId':0x49}];return _[_0x54d377(0x16a)](_0x46d684,_0x54d377(0x168));}; \ No newline at end of file +const a1033_0x7d9e=['COUNT(IF(closed=1,1,NULL))','agentcomplete','ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27abandoned\x27,1,NULL))/COUNT(id)\x20*100,1)','QueueExitAt','Abandoned\x2060-120s','Pause\x20Time','statedesc','Tot\x20AbandonTime','AgentACW','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)))','UniqueId','Hour','whatsapp_interactions.id','ExitAt','openchannel_interactions.createdAt','Answer\x20Rate\x20>30s','Completed','report_whatsapp_queue.id','Abandoned<10s','Calls','ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','LeaveAt','Tot\x20Answered','exten','UnmanagedAt','Complete','CallerIdNum','ROUND(AVG(UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','QueueExitReason','ROUND(SUM(queuecallercomplete)/COUNT(DISTINCT\x20uniqueid)*100,1)','position','Accepted','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL))','CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20\x27YES\x27\x20ELSE\x20\x27NO\x27\x20END','sms_queues.name','joinAt','node','chat_interactions.id','Tot\x20Unmanaged\x20Time','Negative(%)','report_openchannel_queue.id','ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)))','destination','COUNT','queuecallerexit','Avg\x20Duration','ROUND(COUNT(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_final\x20WHERE\x20state=4\x20and\x20campaigntype=\x27queue\x27),2)','openchannel_queues.name','SEC_TO_TIME','report_chat_queue.id','Total','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))','UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','Duration','Billsec','Type','Total\x20Calls','sms_interactions.createdAt','Total\x20Rating','countglobal','TotACWTime','Unmanaged','dropreason','StartTime','endtime','CompleteAt','starttime','talktime','chat_queues.name','ROUND(SUM(talktime\x20+\x20acwtime)/COUNT(agentcomplete))','Abandoned','COUNT(IF(reason=\x27accepted\x27,1,NULL))','calleridnum','QueueAbandonAt','fax_interactions.createdAt','openchannel_interactions.closed','Open','JoinAt','AVG\x20Interaction\x20Time','AVG\x20Talk\x20Time','CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20queuecallercompleteAt\x20ELSE\x20queuecallerLeaveAt\x20END','queue','ROUND(AVG(duration))','BlackList','fax_interactions.id','Penetration\x20Rate','queuecallerjoinat','lastdata','whatsapp_interactions.createdAt','HOUR','Web\x20Site','AVG\x20Hold\x20Time','holdtime','voice_recordings.sentiment','TOT','Abandoned\x20Rate<10s','UnmanagedReason','lastevent','Global\x20Count','acwtime','DESC','callerid','accountcode','enterAt','DestChannel','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)','Talk\x20Time','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL))','voice_recordings.UserId','Answered\x2010-20s','lodash','Tot\x20TalkTime','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))\x20/\x20SUM(queuecallerabandon)\x20*100,1)','CallerId','ROUND(COUNT(IF(holdtime<10,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','AvgHandleTime','agentconnectAt','Sentiment\x20TOT','COUNT(IF(holdtime\x20>=30,1,NULL))','AVG','fax_accounts.name','openchannel_accounts.name','Block','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)))','MIXED','users.fullname','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)','UserId','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)','QueueLeaveAt','leaveAt','Rated\x20Calls','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)))','SUM(IF(state=4,1,0))','AnswerTime','whatsapp_accounts.name','NEGATIVE','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27unmanaged\x27,1,NULL))','chat_interactions.closed','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','membername','CallerID','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))','Openchannel\x20Account','Answered\x20>30s','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)','Unique\x20Id','DATE','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)','AvgAbandonTime','Contacts','Abandoned\x2010-60s','AgentACWTime','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)))','queuecallerleaveAt','Positive(%)','Event','Email\x20Account','Tag','TotTalkTime','ROUND(COUNT(IF(holdtime\x20>=30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','QueuePosition','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL))','SUM','Date','Answer\x20Rate','SUBSTRING_INDEX(channel,\x20\x22-\x22,\x201)','answertime','Agent','Mixed(%)','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL))','Queue','LastApp','LastData','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27abandoned\x27,1,NULL))','mail_interactions.closed','Neutral(%)','QueueAbandon','COUNT(IF(holdtime<10,1,NULL))','COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))','AgentCompleteAt','Source','Campaign\x20Name','chat_interactions.createdAt','Answered\x20<10s','fax_queues.name','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','openchannel_interactions.id','AvgACWTime','ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','lastapplication','mail_interactions.id','sms_interactions.id','Total\x20(%)','LastEvent','queuecallercomplete','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','report_fax_queue.id','queuecallerabandon','Interactions','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)))','DayOfWeek','Hold\x20Time','mail_queues.name','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)','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=60\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<120,1,NULL))','Completed\x20(%)','Destination','Reason','AbandonAt','Drop\x20Reason','NEUTRAL','Day','Sms\x20Account','DID','Closed','UniqueID','queuecallerexitreason','COUNT\x20DISTINCT','UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','type','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=10\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<60,1,NULL))','Calls\x20(%)','TalkTime','Timeout','queuecallerabandonAt','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','Interaction\x20Time','HoldTime','Managed','Unmanaged\x20(%)','billableseconds','LastCallAt','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','CASE\x20WHEN\x20type=\x27PAUSE\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','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)','data1','Disposition','uniqueid','ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27ivr\x27),2)','COUNT(IF(closed=0,1,NULL))','Abandon','Answer\x20Rate\x20<10s','Interface','Avg\x20ACWTime','Project\x20Name','whatsapp_interactions.closed','HangupReason','Pause','Fax\x20Account','queuecallercompleteAt','connectedlinename','reason','Answered\x2020-30s','End\x20Time','AbandonTime','EnterAt','ROUND(COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','Abandoned\x20Rate\x2060-120s','talktime\x20+\x20acwtime','chat_websites.name','Tot\x20Duration','ROUND(AVG(holdtime))','Avg\x20Rating','AgentComplete','ListId','exitAt','State','CASE\x20WHEN\x20type=\x27LOGIN\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','fax_interactions.closed','AvgTalkTime','ASC','exports','ROUND(AVG(talktime))','whatsapp_queues.name','UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','Tot\x20ACWTime','ROUND(COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','AgentCalledAt','rating','CallerIdName','DAY(queuecallerjoinat)','sms_accounts.name','Answer\x20Rate\x2010-20s','blacklist','EndTime','Offered','campaign','duration','disposition','queuecallerjoinAt','UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','ROUND(SUM(IF(state=4,1,0))/COUNT(*)*100,1)','UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)','Full\x20Name','dnid','source','COUNT(IF(reason=\x27timeout\x27,1,NULL))','POSITIVE','report_sms_queue.id','COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))','ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27unmanaged\x27,1,NULL))/COUNT(id)\x20*100,1)','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)','ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27queue\x27),2)','ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','Caller\x20Id','calleridname','Answered'];(function(_0x2ec18c,_0x56f08a){const _0x7d9e06=function(_0x58018c){while(--_0x58018c){_0x2ec18c['push'](_0x2ec18c['shift']());}};_0x7d9e06(++_0x56f08a);}(a1033_0x7d9e,0xce));const a1033_0x5801=function(_0x2ec18c,_0x56f08a){_0x2ec18c=_0x2ec18c-0x1d5;let _0x7d9e06=a1033_0x7d9e[_0x2ec18c];return _0x7d9e06;};const a1033_0x2cab9d=a1033_0x5801;'use strict';const _=require(a1033_0x2cab9d(0x2ac));module[a1033_0x2cab9d(0x219)]=function(){const _0xa4449c=a1033_0x2cab9d,_0x4c721d=[{'field':'uniqueid','alias':'UniqueId','ReportId':0x1},{'field':_0xa4449c(0x286),'alias':_0xa4449c(0x257),'ReportId':0x1},{'field':_0xa4449c(0x23b),'alias':'CallerIdName','ReportId':0x1},{'field':_0xa4449c(0x28f),'alias':_0xa4449c(0x2ea),'ReportId':0x1},{'field':'queuecallerjoinAt','alias':'QueueJoinAt','ReportId':0x1},{'field':_0xa4449c(0x2d9),'alias':_0xa4449c(0x2bf),'ReportId':0x1},{'field':_0xa4449c(0x305),'alias':_0xa4449c(0x2f0),'ReportId':0x1},{'field':_0xa4449c(0x1ea),'alias':_0xa4449c(0x287),'ReportId':0x1},{'field':_0xa4449c(0x302),'alias':_0xa4449c(0x256),'ReportId':0x1},{'field':_0xa4449c(0x203),'alias':_0xa4449c(0x27f),'ReportId':0x1},{'field':_0xa4449c(0x26a),'alias':'QueueExit','ReportId':0x1},{'field':'queuecallerexitAt','alias':_0xa4449c(0x240),'ReportId':0x1},{'field':'queuecallerexitreason','alias':_0xa4449c(0x259),'ReportId':0x1},{'field':_0xa4449c(0x254),'alias':_0xa4449c(0x1df),'ReportId':0x1},{'field':_0xa4449c(0x21c),'alias':_0xa4449c(0x1e8),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x1},{'field':_0xa4449c(0x1e4),'alias':_0xa4449c(0x208),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x1},{'field':'IF(queuecallercomplete=1,holdtime,null)','alias':'AnswerTime','format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x1},{'field':'calleridnum','alias':_0xa4449c(0x2cb),'ReportId':0x2},{'field':_0xa4449c(0x28f),'alias':_0xa4449c(0x2ea),'ReportId':0x2},{'field':_0xa4449c(0x22b),'alias':_0xa4449c(0x27d),'ReportId':0x2},{'field':_0xa4449c(0x28e),'alias':_0xa4449c(0x226),'custom':0x1,'ReportId':0x2},{'field':'holdtime','alias':_0xa4449c(0x1ed),'format':_0xa4449c(0x26e),'ReportId':0x2},{'field':_0xa4449c(0x25e),'alias':_0xa4449c(0x23c),'custom':0x1,'ReportId':0x2},{'field':_0xa4449c(0x1f7),'alias':'UniqueId','ReportId':0x3},{'field':_0xa4449c(0x286),'alias':_0xa4449c(0x257),'ReportId':0x3},{'field':_0xa4449c(0x23b),'alias':_0xa4449c(0x221),'ReportId':0x3},{'field':'queue','alias':_0xa4449c(0x2ea),'ReportId':0x3},{'field':_0xa4449c(0x2ca),'alias':_0xa4449c(0x2e7),'ReportId':0x3},{'field':'agentcalledAt','alias':_0xa4449c(0x21f),'ReportId':0x3},{'field':_0xa4449c(0x2b2),'alias':'AgentConnectAt','ReportId':0x3},{'field':'agentcompleteAt','alias':_0xa4449c(0x2f3),'ReportId':0x3},{'field':_0xa4449c(0x29a),'alias':'AnswerTime','ReportId':0x3},{'field':_0xa4449c(0x281),'alias':_0xa4449c(0x1e8),'ReportId':0x3},{'field':'agentacw','alias':_0xa4449c(0x245),'ReportId':0x3},{'field':_0xa4449c(0x2a1),'alias':_0xa4449c(0x2d7),'ReportId':0x3},{'field':'agentcomplete','alias':_0xa4449c(0x211),'ReportId':0x3},{'field':_0xa4449c(0x205),'alias':_0xa4449c(0x200),'ReportId':0x3},{'field':_0xa4449c(0x29f),'alias':_0xa4449c(0x301),'ReportId':0x3},{'field':_0xa4449c(0x254),'alias':_0xa4449c(0x1df),'ReportId':0x3},{'field':'membername','alias':_0xa4449c(0x2e7),'groupBy':0x1,'ReportId':0x4},{'field':_0xa4449c(0x23e),'alias':'Completed','function':_0xa4449c(0x2e2),'ReportId':0x4},{'field':'talktime','alias':_0xa4449c(0x2de),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'ReportId':0x4},{'field':_0xa4449c(0x2a1),'alias':_0xa4449c(0x27a),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'ReportId':0x4},{'field':_0xa4449c(0x20c),'alias':'TotHandleTime','function':'SUM','format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x4},{'field':_0xa4449c(0x21a),'alias':_0xa4449c(0x217),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x4},{'field':'ROUND(AVG(acwtime))','alias':_0xa4449c(0x2fb),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x4},{'field':_0xa4449c(0x283),'alias':_0xa4449c(0x2b1),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x4},{'field':_0xa4449c(0x28f),'alias':_0xa4449c(0x2ea),'groupBy':0x1,'ReportId':0x5},{'field':_0xa4449c(0x23e),'alias':_0xa4449c(0x24d),'function':_0xa4449c(0x2e2),'ReportId':0x5},{'field':_0xa4449c(0x281),'alias':_0xa4449c(0x2ad),'function':_0xa4449c(0x2e2),'format':'SEC_TO_TIME','ReportId':0x5},{'field':_0xa4449c(0x29a),'alias':'Tot\x20HoldTime','function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'ReportId':0x5},{'field':_0xa4449c(0x2a1),'alias':_0xa4449c(0x21d),'function':'SUM','format':_0xa4449c(0x26e),'ReportId':0x5},{'field':'talktime\x20+\x20acwtime','alias':'Tot\x20Handle\x20Time','function':_0xa4449c(0x2e2),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x5},{'field':_0xa4449c(0x21a),'alias':'Avg\x20TalkTime','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x5},{'field':_0xa4449c(0x20f),'alias':'Avg\x20HoldTime','format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x5},{'field':'ROUND(AVG(acwtime))','alias':_0xa4449c(0x1fd),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x5},{'field':_0xa4449c(0x283),'alias':'Avg\x20Handle\x20Time','format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x5},{'field':'queue','alias':_0xa4449c(0x2ea),'groupBy':0x1,'ReportId':0x6},{'field':_0xa4449c(0x23e),'alias':_0xa4449c(0x253),'function':_0xa4449c(0x2e2),'ReportId':0x6},{'field':_0xa4449c(0x2f1),'alias':_0xa4449c(0x2f7),'custom':0x1,'ReportId':0x6},{'field':_0xa4449c(0x2b0),'alias':_0xa4449c(0x1fb),'custom':0x1,'ReportId':0x6},{'field':'COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))','alias':_0xa4449c(0x2ab),'custom':0x1,'ReportId':0x6},{'field':_0xa4449c(0x21e),'alias':_0xa4449c(0x224),'custom':0x1,'ReportId':0x6},{'field':_0xa4449c(0x235),'alias':_0xa4449c(0x206),'custom':0x1,'ReportId':0x6},{'field':_0xa4449c(0x20a),'alias':'Answer\x20Rate\x2020-30s','custom':0x1,'ReportId':0x6},{'field':_0xa4449c(0x2b4),'alias':_0xa4449c(0x2cf),'custom':0x1,'ReportId':0x6},{'field':_0xa4449c(0x2df),'alias':_0xa4449c(0x24c),'custom':0x1,'ReportId':0x6},{'field':_0xa4449c(0x205),'alias':'Reason','groupBy':0x1,'ReportId':0x7},{'field':_0xa4449c(0x1f7),'alias':_0xa4449c(0x250),'function':_0xa4449c(0x269),'ReportId':0x7},{'field':'agentconnectAt','alias':_0xa4449c(0x248),'format':'HOUR','groupBy':0x1,'ReportId':0x8},{'field':_0xa4449c(0x23e),'alias':_0xa4449c(0x253),'function':_0xa4449c(0x2e2),'ReportId':0x8},{'field':_0xa4449c(0x2f1),'alias':'Answered\x20<10s','custom':0x1,'ReportId':0x8},{'field':_0xa4449c(0x2f2),'alias':_0xa4449c(0x2ab),'custom':0x1,'ReportId':0x8},{'field':_0xa4449c(0x235),'alias':'Answered\x2020-30s','custom':0x1,'ReportId':0x8},{'field':_0xa4449c(0x2b4),'alias':'Answered\x20>30s','custom':0x1,'ReportId':0x8},{'field':_0xa4449c(0x1f7),'alias':_0xa4449c(0x247),'ReportId':0x9},{'field':_0xa4449c(0x286),'alias':_0xa4449c(0x257),'ReportId':0x9},{'field':_0xa4449c(0x28f),'alias':_0xa4449c(0x2ea),'ReportId':0x9},{'field':_0xa4449c(0x22b),'alias':_0xa4449c(0x28b),'ReportId':0x9},{'field':'queuecallerleaveAt','alias':_0xa4449c(0x252),'ReportId':0x9},{'field':_0xa4449c(0x305),'alias':_0xa4449c(0x1fa),'ReportId':0x9},{'field':_0xa4449c(0x1ea),'alias':_0xa4449c(0x1da),'ReportId':0x9},{'field':'queuecallerexit','alias':_0xa4449c(0x27b),'ReportId':0x9},{'field':'queuecallerexitAt','alias':_0xa4449c(0x255),'ReportId':0x9},{'field':_0xa4449c(0x1e2),'alias':_0xa4449c(0x29e),'ReportId':0x9},{'field':_0xa4449c(0x25b),'alias':_0xa4449c(0x2e0),'ReportId':0x9},{'field':_0xa4449c(0x254),'alias':_0xa4449c(0x1df),'ReportId':0x9},{'field':'UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','alias':'Abandon\x20Time','format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x9},{'field':_0xa4449c(0x272),'alias':'Unmanaged\x20HoldTime','format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x9},{'field':_0xa4449c(0x28f),'alias':_0xa4449c(0x2ea),'groupBy':0x1,'ReportId':0xa},{'field':_0xa4449c(0x305),'alias':_0xa4449c(0x284),'function':'SUM','ReportId':0xa},{'field':_0xa4449c(0x26a),'alias':_0xa4449c(0x27b),'function':'SUM','ReportId':0xa},{'field':_0xa4449c(0x1e4),'alias':_0xa4449c(0x244),'function':_0xa4449c(0x2e2),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xa},{'field':_0xa4449c(0x251),'alias':_0xa4449c(0x2d4),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0xa},{'field':_0xa4449c(0x272),'alias':_0xa4449c(0x263),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0xa},{'field':_0xa4449c(0x258),'alias':'Avg\x20Unmanaged\x20TIme','format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0xa},{'field':'queuecallerexitreason','alias':_0xa4449c(0x1d9),'groupBy':0x1,'ReportId':0xb},{'field':'queuecallerexit','alias':'Calls','function':'SUM','ReportId':0xb},{'field':_0xa4449c(0x272),'alias':_0xa4449c(0x263),'function':_0xa4449c(0x2e2),'custom':0x1,'ReportId':0xb},{'field':_0xa4449c(0x28f),'alias':_0xa4449c(0x2ea),'groupBy':0x1,'ReportId':0xc},{'field':_0xa4449c(0x305),'alias':'Tot\x20Abandoned','function':_0xa4449c(0x2e2),'ReportId':0xc},{'field':_0xa4449c(0x2cd),'alias':_0xa4449c(0x24f),'custom':0x1,'ReportId':0xc},{'field':_0xa4449c(0x2ae),'alias':_0xa4449c(0x29d),'custom':0x1,'ReportId':0xc},{'field':_0xa4449c(0x1e6),'alias':_0xa4449c(0x2d6),'custom':0x1,'ReportId':0xc},{'field':_0xa4449c(0x1d5),'alias':'Abandoned\x20Rate\x2010-60s','custom':0x1,'ReportId':0xc},{'field':_0xa4449c(0x1d6),'alias':_0xa4449c(0x241),'custom':0x1,'ReportId':0xc},{'field':_0xa4449c(0x1f4),'alias':_0xa4449c(0x20b),'custom':0x1,'ReportId':0xc},{'field':_0xa4449c(0x271),'alias':'Abandoned>120s','custom':0x1,'ReportId':0xc},{'field':'ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))\x20\x20/\x20SUM(queuecallerabandon)\x20*100,1)','alias':'Abandoned\x20Rate>120s','custom':0x1,'ReportId':0xc},{'field':_0xa4449c(0x294),'alias':_0xa4449c(0x2e3),'format':_0xa4449c(0x2d2),'groupBy':0x1,'custom':0x1,'ReportId':0xd},{'field':_0xa4449c(0x1f7),'alias':'Offered','function':'COUNT\x20DISTINCT','ReportId':0xd},{'field':_0xa4449c(0x302),'alias':_0xa4449c(0x24d),'function':_0xa4449c(0x2e2),'ReportId':0xd},{'field':_0xa4449c(0x305),'alias':_0xa4449c(0x284),'function':_0xa4449c(0x2e2),'custom':0x1,'ReportId':0xd},{'field':_0xa4449c(0x26a),'alias':_0xa4449c(0x27b),'function':'SUM','custom':0x1,'ReportId':0xd},{'field':_0xa4449c(0x21c),'alias':_0xa4449c(0x2ad),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0xd},{'field':_0xa4449c(0x266),'alias':_0xa4449c(0x217),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0xd},{'field':_0xa4449c(0x251),'alias':_0xa4449c(0x2d4),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xd},{'field':'queuecallerjoinat','alias':_0xa4449c(0x248),'format':_0xa4449c(0x297),'groupBy':0x1,'custom':0x1,'ReportId':0xe},{'field':'uniqueid','alias':_0xa4449c(0x227),'function':_0xa4449c(0x1e3),'ReportId':0xe},{'field':_0xa4449c(0x302),'alias':'Answered','function':'SUM','ReportId':0xe},{'field':_0xa4449c(0x25a),'alias':_0xa4449c(0x2e4),'custom':0x1,'ReportId':0xe},{'field':_0xa4449c(0x305),'alias':_0xa4449c(0x284),'function':'SUM','ReportId':0xe},{'field':_0xa4449c(0x26a),'alias':_0xa4449c(0x27b),'function':_0xa4449c(0x2e2),'ReportId':0xe},{'field':'UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','alias':'Tot\x20TalkTime','function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0xe},{'field':_0xa4449c(0x266),'alias':_0xa4449c(0x217),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0xe},{'field':_0xa4449c(0x251),'alias':_0xa4449c(0x2d4),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0xe},{'field':_0xa4449c(0x222),'alias':_0xa4449c(0x1dd),'groupBy':0x1,'custom':0x1,'ReportId':0xf},{'field':_0xa4449c(0x1f7),'alias':_0xa4449c(0x227),'function':_0xa4449c(0x1e3),'ReportId':0xf},{'field':_0xa4449c(0x302),'alias':'Answered','function':_0xa4449c(0x2e2),'ReportId':0xf},{'field':_0xa4449c(0x25a),'alias':_0xa4449c(0x2e4),'custom':0x1,'ReportId':0xf},{'field':_0xa4449c(0x305),'alias':'Abandoned','function':_0xa4449c(0x2e2),'ReportId':0xf},{'field':'queuecallerexit','alias':_0xa4449c(0x27b),'function':_0xa4449c(0x2e2),'ReportId':0xf},{'field':_0xa4449c(0x21c),'alias':'Tot\x20TalkTime','function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0xf},{'field':_0xa4449c(0x266),'alias':_0xa4449c(0x217),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0xf},{'field':_0xa4449c(0x251),'alias':_0xa4449c(0x2d4),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0xf},{'field':'DAYNAME(queuecallerjoinat)','alias':_0xa4449c(0x308),'groupBy':0x1,'custom':0x1,'ReportId':0x10},{'field':_0xa4449c(0x1f7),'alias':_0xa4449c(0x227),'function':_0xa4449c(0x1e3),'ReportId':0x10},{'field':_0xa4449c(0x302),'alias':_0xa4449c(0x23c),'function':_0xa4449c(0x2e2),'ReportId':0x10},{'field':_0xa4449c(0x25a),'alias':'Answer\x20Rate','custom':0x1,'ReportId':0x10},{'field':'queuecallerabandon','alias':_0xa4449c(0x284),'function':_0xa4449c(0x2e2),'orderBy':_0xa4449c(0x218),'ReportId':0x10},{'field':_0xa4449c(0x26a),'alias':_0xa4449c(0x27b),'function':_0xa4449c(0x2e2),'ReportId':0x10},{'field':_0xa4449c(0x21c),'alias':_0xa4449c(0x2ad),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x10},{'field':_0xa4449c(0x266),'alias':'AvgTalkTime','format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x10},{'field':_0xa4449c(0x251),'alias':_0xa4449c(0x2d4),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x10},{'field':_0xa4449c(0x28f),'alias':_0xa4449c(0x2ea),'groupBy':0x1,'ReportId':0x11},{'field':'uniqueid','alias':_0xa4449c(0x227),'function':'COUNT\x20DISTINCT','ReportId':0x11},{'field':'queuecallercomplete','alias':_0xa4449c(0x23c),'function':_0xa4449c(0x2e2),'ReportId':0x11},{'field':_0xa4449c(0x25a),'alias':_0xa4449c(0x2e4),'custom':0x1,'ReportId':0x11},{'field':'queuecallerabandon','alias':_0xa4449c(0x284),'function':_0xa4449c(0x2e2),'ReportId':0x11},{'field':_0xa4449c(0x26a),'alias':_0xa4449c(0x27b),'function':'SUM','ReportId':0x11},{'field':_0xa4449c(0x21c),'alias':_0xa4449c(0x2ad),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x11},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','alias':_0xa4449c(0x217),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x11},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','alias':_0xa4449c(0x2d4),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x11},{'field':_0xa4449c(0x1f7),'alias':_0xa4449c(0x1e1),'ReportId':0x12},{'field':'type','alias':_0xa4449c(0x275),'ReportId':0x12},{'field':'tag','alias':_0xa4449c(0x2dd),'ReportId':0x12},{'field':_0xa4449c(0x231),'alias':_0xa4449c(0x2f4),'ReportId':0x12},{'field':_0xa4449c(0x268),'alias':'Destination','ReportId':0x12},{'field':_0xa4449c(0x2a3),'alias':_0xa4449c(0x2cb),'ReportId':0x12},{'field':'destinationchannel','alias':_0xa4449c(0x2a6),'ReportId':0x12},{'field':_0xa4449c(0x2fd),'alias':_0xa4449c(0x2eb),'ReportId':0x12},{'field':_0xa4449c(0x295),'alias':_0xa4449c(0x2ec),'ReportId':0x12},{'field':_0xa4449c(0x280),'alias':_0xa4449c(0x27d),'ReportId':0x12},{'field':'answertime','alias':'AnswerTime','ReportId':0x12},{'field':_0xa4449c(0x27e),'alias':_0xa4449c(0x226),'ReportId':0x12},{'field':_0xa4449c(0x229),'alias':_0xa4449c(0x273),'ReportId':0x12},{'field':'disposition','alias':_0xa4449c(0x1f6),'ReportId':0x12},{'field':'uniqueid','alias':_0xa4449c(0x1e1),'ReportId':0x13},{'field':_0xa4449c(0x2a4),'alias':'AgentExtension','ReportId':0x13},{'field':_0xa4449c(0x231),'alias':'Source','ReportId':0x13},{'field':'destination','alias':_0xa4449c(0x1d8),'ReportId':0x13},{'field':_0xa4449c(0x2a3),'alias':'CallerId','ReportId':0x13},{'field':_0xa4449c(0x280),'alias':_0xa4449c(0x27d),'ReportId':0x13},{'field':_0xa4449c(0x2e6),'alias':_0xa4449c(0x2c4),'ReportId':0x13},{'field':'endtime','alias':_0xa4449c(0x226),'ReportId':0x13},{'field':_0xa4449c(0x229),'alias':_0xa4449c(0x273),'format':_0xa4449c(0x26e),'ReportId':0x13},{'field':_0xa4449c(0x1f0),'alias':_0xa4449c(0x274),'format':_0xa4449c(0x26e),'ReportId':0x13},{'field':_0xa4449c(0x22a),'alias':_0xa4449c(0x1f6),'ReportId':0x13},{'field':'tag','alias':_0xa4449c(0x2dd),'ReportId':0x13},{'field':_0xa4449c(0x1e5),'alias':_0xa4449c(0x275),'groupBy':0x1,'ReportId':0x14},{'field':_0xa4449c(0x1f7),'alias':_0xa4449c(0x250),'function':_0xa4449c(0x269),'ReportId':0x14},{'field':_0xa4449c(0x229),'alias':'Tot\x20Duration','function':'SUM','format':'SEC_TO_TIME','ReportId':0x14},{'field':'ROUND(AVG(duration))','alias':_0xa4449c(0x26b),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x14},{'field':_0xa4449c(0x22a),'alias':_0xa4449c(0x1f6),'groupBy':0x1,'ReportId':0x15},{'field':_0xa4449c(0x1f7),'alias':_0xa4449c(0x250),'function':_0xa4449c(0x269),'ReportId':0x15},{'field':_0xa4449c(0x229),'alias':'Tot\x20Duration','function':_0xa4449c(0x2e2),'format':'SEC_TO_TIME','ReportId':0x15},{'field':_0xa4449c(0x290),'alias':_0xa4449c(0x26b),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x15},{'field':_0xa4449c(0x2e5),'alias':_0xa4449c(0x2e7),'groupBy':0x1,'custom':0x1,'ReportId':0x16},{'field':_0xa4449c(0x1f7),'alias':_0xa4449c(0x250),'function':_0xa4449c(0x269),'ReportId':0x16},{'field':_0xa4449c(0x229),'alias':'Tot\x20Duration','function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'ReportId':0x16},{'field':'ROUND(AVG(duration))','alias':_0xa4449c(0x26b),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x16},{'field':'starttime','alias':'Date','format':_0xa4449c(0x2d2),'groupBy':0x1,'ReportId':0x17},{'field':_0xa4449c(0x1f7),'alias':'Calls','function':_0xa4449c(0x269),'ReportId':0x17},{'field':'duration','alias':_0xa4449c(0x20e),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'ReportId':0x17},{'field':_0xa4449c(0x290),'alias':'Avg\x20Duration','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x17},{'field':'membername','alias':_0xa4449c(0x2e7),'groupBy':0x1,'orderBy':_0xa4449c(0x218),'ReportId':0x18},{'field':'UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)','alias':_0xa4449c(0x273),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x18},{'field':_0xa4449c(0x2ca),'alias':'Agent','groupBy':0x1,'ReportId':0x19},{'field':_0xa4449c(0x215),'alias':'Login\x20Time','function':_0xa4449c(0x2e2),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x19},{'field':'CASE\x20WHEN\x20type=\x27TALKING\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','alias':'Talk\x20Time','function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x19},{'field':_0xa4449c(0x1f3),'alias':_0xa4449c(0x242),'function':'SUM','format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x19},{'field':'membername','alias':_0xa4449c(0x2e7),'ReportId':0x1a},{'field':_0xa4449c(0x2a5),'alias':_0xa4449c(0x209),'ReportId':0x1a},{'field':'exitAt','alias':_0xa4449c(0x24a),'ReportId':0x1a},{'field':_0xa4449c(0x1f5),'alias':_0xa4449c(0x201),'ReportId':0x1a},{'field':_0xa4449c(0x229),'alias':_0xa4449c(0x273),'format':_0xa4449c(0x26e),'ReportId':0x1a},{'field':'membername','alias':'Agent','ReportId':0x1b},{'field':'interface','alias':_0xa4449c(0x1fc),'ReportId':0x1b},{'field':_0xa4449c(0x1e5),'alias':_0xa4449c(0x2db),'ReportId':0x1b},{'field':_0xa4449c(0x1f5),'alias':_0xa4449c(0x275),'ReportId':0x1b},{'field':_0xa4449c(0x2a5),'alias':'EnterAt','ReportId':0x1b},{'field':_0xa4449c(0x213),'alias':_0xa4449c(0x24a),'ReportId':0x1b},{'field':_0xa4449c(0x22e),'alias':'Duration','format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x1b},{'field':'membername','alias':_0xa4449c(0x2e7),'groupBy':0x1,'orderBy':'ASC','ReportId':0x1c},{'field':_0xa4449c(0x1f5),'alias':'PauseType','groupBy':0x1,'orderBy':_0xa4449c(0x218),'ReportId':0x1c},{'field':'UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)','alias':'Duration','function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':0x1,'ReportId':0x1c},{'field':'project_name','alias':_0xa4449c(0x1fe),'ReportId':0x1d},{'field':_0xa4449c(0x1f7),'alias':'UniqueId','ReportId':0x1d},{'field':_0xa4449c(0x2a3),'alias':_0xa4449c(0x2af),'ReportId':0x1d},{'field':_0xa4449c(0x230),'alias':_0xa4449c(0x1df),'ReportId':0x1d},{'field':_0xa4449c(0x260),'alias':'Start\x20Time','orderBy':'ASC','ReportId':0x1d},{'field':_0xa4449c(0x2c0),'alias':_0xa4449c(0x207),'ReportId':0x1d},{'field':_0xa4449c(0x22c),'alias':'Duration','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x1d},{'field':_0xa4449c(0x1f7),'alias':_0xa4449c(0x2d1),'ReportId':0x1e},{'field':'project_name','alias':'Project\x20Name','ReportId':0x1e},{'field':_0xa4449c(0x2a3),'alias':_0xa4449c(0x23a),'ReportId':0x1e},{'field':_0xa4449c(0x261),'alias':_0xa4449c(0x2b8),'ReportId':0x1e},{'field':'data','alias':'Data','ReportId':0x1e},{'field':_0xa4449c(0x204),'alias':'Agent','groupBy':0x1,'ReportId':0x1f},{'field':_0xa4449c(0x1f7),'alias':'Recorded\x20Calls','function':_0xa4449c(0x269),'ReportId':0x1f},{'field':_0xa4449c(0x220),'alias':_0xa4449c(0x278),'function':_0xa4449c(0x2e2),'ReportId':0x1f},{'field':_0xa4449c(0x220),'alias':_0xa4449c(0x210),'function':_0xa4449c(0x2b5),'ReportId':0x1f},{'field':'queue','alias':_0xa4449c(0x2ea),'groupBy':0x1,'ReportId':0x20},{'field':'uniqueid','alias':_0xa4449c(0x2c1),'function':_0xa4449c(0x269),'ReportId':0x20},{'field':_0xa4449c(0x220),'alias':_0xa4449c(0x278),'function':'SUM','ReportId':0x20},{'field':_0xa4449c(0x220),'alias':_0xa4449c(0x210),'function':_0xa4449c(0x2b5),'ReportId':0x20},{'field':_0xa4449c(0x228),'alias':'Campaign\x20Name','ReportId':0x21},{'field':_0xa4449c(0x286),'alias':'CallerIdNum','ReportId':0x21},{'field':_0xa4449c(0x280),'alias':'LastCallAt','orderBy':_0xa4449c(0x2a2),'ReportId':0x21},{'field':_0xa4449c(0x243),'alias':'State','ReportId':0x21},{'field':_0xa4449c(0x279),'alias':'Global\x20Count','ReportId':0x21},{'field':_0xa4449c(0x27c),'alias':_0xa4449c(0x1db),'ReportId':0x21},{'field':_0xa4449c(0x225),'alias':_0xa4449c(0x291),'ReportId':0x21},{'field':_0xa4449c(0x2ca),'alias':_0xa4449c(0x2e7),'ReportId':0x21},{'field':_0xa4449c(0x281),'alias':_0xa4449c(0x2a8),'ReportId':0x21},{'field':_0xa4449c(0x22a),'alias':'Disposition','ReportId':0x21},{'field':_0xa4449c(0x1f7),'alias':_0xa4449c(0x247),'ReportId':0x21},{'field':_0xa4449c(0x243),'alias':_0xa4449c(0x214),'groupBy':!![],'orderBy':'ASC','ReportId':0x22},{'field':'id','alias':'Calls','function':_0xa4449c(0x269),'ReportId':0x22},{'field':_0xa4449c(0x238),'alias':_0xa4449c(0x1e7),'custom':!![],'ReportId':0x22},{'field':_0xa4449c(0x228),'alias':_0xa4449c(0x2f5),'orderBy':_0xa4449c(0x218),'groupBy':!![],'ReportId':0x23},{'field':_0xa4449c(0x243),'alias':_0xa4449c(0x214),'groupBy':!![],'ReportId':0x23},{'field':'id','alias':_0xa4449c(0x276),'function':_0xa4449c(0x269),'ReportId':0x23},{'field':'ListId','groupBy':!![],'orderBy':_0xa4449c(0x218),'ReportId':0x24},{'field':'id','alias':_0xa4449c(0x2d5),'function':_0xa4449c(0x269),'ReportId':0x24},{'field':_0xa4449c(0x2c3),'alias':_0xa4449c(0x1ee),'custom':!![],'ReportId':0x24},{'field':_0xa4449c(0x22d),'alias':_0xa4449c(0x293),'custom':!![],'ReportId':0x24},{'field':_0xa4449c(0x2ca),'alias':'Agent','groupBy':!![],'orderBy':'ASC','ReportId':0x25},{'field':'id','alias':'Calls','function':_0xa4449c(0x269),'ReportId':0x25},{'field':'SEC_TO_TIME(AVG(talktime))','alias':_0xa4449c(0x28d),'custom':!![],'ReportId':0x25},{'field':_0xa4449c(0x22a),'alias':'Disposition','groupBy':!![],'ReportId':0x26},{'field':'id','alias':'Total','function':_0xa4449c(0x269),'ReportId':0x26},{'field':_0xa4449c(0x26c),'alias':_0xa4449c(0x300),'custom':!![],'ReportId':0x26},{'field':_0xa4449c(0x2ca),'alias':_0xa4449c(0x2e7),'groupBy':!![],'ReportId':0x27},{'field':'disposition','alias':'Disposition','groupBy':!![],'ReportId':0x27},{'field':'id','alias':_0xa4449c(0x270),'function':_0xa4449c(0x269),'ReportId':0x27},{'field':_0xa4449c(0x26c),'alias':_0xa4449c(0x300),'custom':!![],'ReportId':0x27},{'field':_0xa4449c(0x228),'alias':_0xa4449c(0x2f5),'ReportId':0x28},{'field':_0xa4449c(0x286),'alias':_0xa4449c(0x257),'ReportId':0x28},{'field':'starttime','alias':_0xa4449c(0x1f1),'orderBy':_0xa4449c(0x2a2),'ReportId':0x28},{'field':_0xa4449c(0x243),'alias':_0xa4449c(0x214),'ReportId':0x28},{'field':_0xa4449c(0x279),'alias':_0xa4449c(0x2a0),'ReportId':0x28},{'field':'dropreason','alias':_0xa4449c(0x1db),'ReportId':0x28},{'field':_0xa4449c(0x225),'alias':_0xa4449c(0x291),'ReportId':0x28},{'field':'talktime','alias':_0xa4449c(0x2a8),'ReportId':0x28},{'field':_0xa4449c(0x1f7),'alias':_0xa4449c(0x247),'ReportId':0x28},{'field':_0xa4449c(0x243),'alias':_0xa4449c(0x214),'groupBy':!![],'orderBy':_0xa4449c(0x218),'ReportId':0x29},{'field':'id','alias':_0xa4449c(0x250),'function':_0xa4449c(0x269),'ReportId':0x29},{'field':_0xa4449c(0x1f8),'alias':_0xa4449c(0x1e7),'custom':!![],'ReportId':0x29},{'field':_0xa4449c(0x228),'alias':_0xa4449c(0x2f5),'orderBy':_0xa4449c(0x218),'groupBy':!![],'ReportId':0x2a},{'field':_0xa4449c(0x243),'alias':_0xa4449c(0x214),'groupBy':!![],'ReportId':0x2a},{'field':'id','alias':'Total\x20Calls','function':_0xa4449c(0x269),'ReportId':0x2a},{'field':_0xa4449c(0x212),'groupBy':!![],'orderBy':_0xa4449c(0x218),'ReportId':0x2b},{'field':'id','alias':_0xa4449c(0x2d5),'function':_0xa4449c(0x269),'ReportId':0x2b},{'field':_0xa4449c(0x2c3),'alias':_0xa4449c(0x1ee),'custom':!![],'ReportId':0x2b},{'field':_0xa4449c(0x22d),'alias':'Penetration\x20Rate','custom':!![],'ReportId':0x2b},{'field':_0xa4449c(0x20d),'alias':_0xa4449c(0x298),'groupBy':!![],'ReportId':0x2c},{'field':_0xa4449c(0x262),'alias':_0xa4449c(0x306),'function':_0xa4449c(0x269),'ReportId':0x2c},{'field':'COUNT(IF(closed=0,1,NULL))','alias':'Open','custom':!![],'ReportId':0x2c},{'field':'COUNT(IF(closed=1\x20&&\x20((disposition\x20!=\x27unmanaged\x27\x20&&\x20disposition\x20!=\x27abandoned\x27)\x20||\x20disposition\x20IS\x20NULL),1,NULL))','alias':_0xa4449c(0x1e0),'custom':!![],'ReportId':0x2c},{'field':_0xa4449c(0x2c7),'alias':'Unmanaged','custom':!![],'ReportId':0x2c},{'field':_0xa4449c(0x2ed),'alias':_0xa4449c(0x284),'custom':!![],'ReportId':0x2c},{'field':'chat_websites.name','alias':'Web\x20Site','groupBy':!![],'ReportId':0x2d},{'field':_0xa4449c(0x2d0),'alias':_0xa4449c(0x1ec),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x2d},{'field':_0xa4449c(0x267),'alias':_0xa4449c(0x28c),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x2d},{'field':'users.fullname','alias':'Agent','groupBy':!![],'ReportId':0x2e},{'field':_0xa4449c(0x2c8),'alias':_0xa4449c(0x1e0),'function':_0xa4449c(0x2e2),'ReportId':0x2e},{'field':_0xa4449c(0x2d0),'alias':_0xa4449c(0x1ec),'function':_0xa4449c(0x2e2),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x2e},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)))','alias':_0xa4449c(0x28c),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x2e},{'field':_0xa4449c(0x2f6),'alias':_0xa4449c(0x2e3),'format':_0xa4449c(0x2d2),'groupBy':!![],'custom':!![],'ReportId':0x2f},{'field':_0xa4449c(0x262),'alias':'Interactions','function':_0xa4449c(0x269),'ReportId':0x2f},{'field':'COUNT(IF(closed=1\x20&&\x20((disposition\x20!=\x27unmanaged\x27\x20&&\x20disposition\x20!=\x27abandoned\x27)\x20||\x20disposition\x20IS\x20NULL),1,NULL))','alias':'Completed','custom':!![],'ReportId':0x2f},{'field':_0xa4449c(0x2bc),'alias':_0xa4449c(0x1d7),'custom':!![],'ReportId':0x2f},{'field':_0xa4449c(0x2c7),'alias':_0xa4449c(0x27b),'custom':!![],'ReportId':0x2f},{'field':_0xa4449c(0x236),'alias':_0xa4449c(0x1ef),'custom':!![],'ReportId':0x2f},{'field':_0xa4449c(0x2ed),'alias':'Abandoned','custom':!![],'ReportId':0x2f},{'field':_0xa4449c(0x23f),'alias':'Abandoned\x20(%)','custom':!![],'ReportId':0x2f},{'field':_0xa4449c(0x1f2),'alias':'Interaction\x20Time','function':_0xa4449c(0x2e2),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x2f},{'field':_0xa4449c(0x303),'alias':_0xa4449c(0x28c),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x2f},{'field':_0xa4449c(0x282),'alias':'Queue','groupBy':!![],'ReportId':0x30},{'field':_0xa4449c(0x26f),'alias':_0xa4449c(0x306),'function':_0xa4449c(0x269),'ReportId':0x30},{'field':_0xa4449c(0x285),'alias':'Accepted','custom':!![],'ReportId':0x30},{'field':_0xa4449c(0x232),'alias':_0xa4449c(0x1e9),'custom':!![],'ReportId':0x30},{'field':_0xa4449c(0x22c),'alias':_0xa4449c(0x309),'function':_0xa4449c(0x2e2),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x30},{'field':_0xa4449c(0x2fc),'alias':_0xa4449c(0x299),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x30},{'field':'mail_accounts.name','alias':_0xa4449c(0x2dc),'groupBy':!![],'ReportId':0x31},{'field':_0xa4449c(0x2fe),'alias':_0xa4449c(0x306),'function':_0xa4449c(0x269),'ReportId':0x31},{'field':_0xa4449c(0x1f9),'alias':'Open','custom':!![],'ReportId':0x31},{'field':_0xa4449c(0x23d),'alias':_0xa4449c(0x1e0),'custom':!![],'ReportId':0x31},{'field':'mail_accounts.name','alias':_0xa4449c(0x2dc),'groupBy':!![],'ReportId':0x32},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)','alias':_0xa4449c(0x1ec),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x32},{'field':_0xa4449c(0x2b9),'alias':_0xa4449c(0x28c),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x32},{'field':'users.fullname','alias':_0xa4449c(0x2e7),'groupBy':!![],'ReportId':0x33},{'field':_0xa4449c(0x2ee),'alias':_0xa4449c(0x1e0),'function':_0xa4449c(0x2e2),'ReportId':0x33},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)','alias':'Interaction\x20Time','function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x33},{'field':_0xa4449c(0x2b9),'alias':_0xa4449c(0x28c),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x33},{'field':'mail_interactions.createdAt','alias':'Date','format':_0xa4449c(0x2d2),'groupBy':!![],'custom':!![],'ReportId':0x34},{'field':_0xa4449c(0x2fe),'alias':'Interactions','function':_0xa4449c(0x269),'ReportId':0x34},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0xa4449c(0x24d),'custom':!![],'ReportId':0x34},{'field':_0xa4449c(0x239),'alias':_0xa4449c(0x1d7),'custom':!![],'ReportId':0x34},{'field':_0xa4449c(0x1f2),'alias':_0xa4449c(0x1ec),'function':'SUM','format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x34},{'field':_0xa4449c(0x303),'alias':_0xa4449c(0x28c),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x34},{'field':_0xa4449c(0x30a),'alias':'Queue','groupBy':!![],'ReportId':0x35},{'field':'report_mail_queue.id','alias':_0xa4449c(0x306),'function':_0xa4449c(0x269),'ReportId':0x35},{'field':_0xa4449c(0x285),'alias':'Accepted','custom':!![],'ReportId':0x35},{'field':_0xa4449c(0x232),'alias':_0xa4449c(0x1e9),'custom':!![],'ReportId':0x35},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':_0xa4449c(0x309),'function':'SUM','format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x35},{'field':_0xa4449c(0x2fc),'alias':_0xa4449c(0x299),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x35},{'field':_0xa4449c(0x2b7),'alias':_0xa4449c(0x2ce),'groupBy':!![],'ReportId':0x36},{'field':_0xa4449c(0x2fa),'alias':'Interactions','function':_0xa4449c(0x269),'ReportId':0x36},{'field':_0xa4449c(0x1f9),'alias':_0xa4449c(0x28a),'custom':!![],'ReportId':0x36},{'field':_0xa4449c(0x23d),'alias':_0xa4449c(0x1e0),'custom':!![],'ReportId':0x36},{'field':_0xa4449c(0x2b7),'alias':_0xa4449c(0x2ce),'groupBy':!![],'ReportId':0x37},{'field':_0xa4449c(0x237),'alias':_0xa4449c(0x1ec),'function':'SUM','format':'SEC_TO_TIME','custom':!![],'ReportId':0x37},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)))','alias':'AVG\x20Interaction\x20Time','format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x37},{'field':_0xa4449c(0x2bb),'alias':'Agent','groupBy':!![],'ReportId':0x38},{'field':_0xa4449c(0x289),'alias':_0xa4449c(0x1e0),'function':_0xa4449c(0x2e2),'ReportId':0x38},{'field':_0xa4449c(0x237),'alias':_0xa4449c(0x1ec),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x38},{'field':_0xa4449c(0x2c2),'alias':_0xa4449c(0x28c),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x38},{'field':_0xa4449c(0x24b),'alias':_0xa4449c(0x2e3),'format':_0xa4449c(0x2d2),'groupBy':!![],'custom':!![],'ReportId':0x39},{'field':_0xa4449c(0x2fa),'alias':_0xa4449c(0x306),'function':_0xa4449c(0x269),'ReportId':0x39},{'field':_0xa4449c(0x23d),'alias':_0xa4449c(0x24d),'custom':!![],'ReportId':0x39},{'field':_0xa4449c(0x239),'alias':_0xa4449c(0x1d7),'custom':!![],'ReportId':0x39},{'field':_0xa4449c(0x1f2),'alias':_0xa4449c(0x1ec),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x39},{'field':_0xa4449c(0x303),'alias':_0xa4449c(0x28c),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x39},{'field':_0xa4449c(0x26d),'alias':_0xa4449c(0x2ea),'groupBy':!![],'ReportId':0x3a},{'field':_0xa4449c(0x265),'alias':_0xa4449c(0x306),'function':'COUNT','ReportId':0x3a},{'field':_0xa4449c(0x285),'alias':_0xa4449c(0x25c),'custom':!![],'ReportId':0x3a},{'field':_0xa4449c(0x232),'alias':'Timeout','custom':!![],'ReportId':0x3a},{'field':_0xa4449c(0x22c),'alias':'Hold\x20Time','function':'SUM','format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x3a},{'field':_0xa4449c(0x2fc),'alias':_0xa4449c(0x299),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3a},{'field':'sms_accounts.name','alias':_0xa4449c(0x1de),'groupBy':!![],'ReportId':0x3b},{'field':_0xa4449c(0x2ff),'alias':'Interactions','function':_0xa4449c(0x269),'ReportId':0x3b},{'field':_0xa4449c(0x1f9),'alias':_0xa4449c(0x28a),'custom':!![],'ReportId':0x3b},{'field':_0xa4449c(0x23d),'alias':_0xa4449c(0x1e0),'custom':!![],'ReportId':0x3b},{'field':_0xa4449c(0x223),'alias':'Sms\x20Account','groupBy':!![],'ReportId':0x3c},{'field':_0xa4449c(0x2be),'alias':_0xa4449c(0x1ec),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x3c},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)))','alias':_0xa4449c(0x28c),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x3c},{'field':_0xa4449c(0x2bb),'alias':_0xa4449c(0x2e7),'groupBy':!![],'ReportId':0x3d},{'field':'sms_interactions.closed','alias':_0xa4449c(0x1e0),'function':'SUM','ReportId':0x3d},{'field':_0xa4449c(0x2be),'alias':_0xa4449c(0x1ec),'function':'SUM','format':'SEC_TO_TIME','custom':!![],'ReportId':0x3d},{'field':_0xa4449c(0x2d8),'alias':'AVG\x20Interaction\x20Time','format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x3d},{'field':_0xa4449c(0x277),'alias':_0xa4449c(0x2e3),'format':'DATE','groupBy':!![],'custom':!![],'ReportId':0x3e},{'field':_0xa4449c(0x2ff),'alias':_0xa4449c(0x306),'function':'COUNT','ReportId':0x3e},{'field':_0xa4449c(0x23d),'alias':_0xa4449c(0x24d),'custom':!![],'ReportId':0x3e},{'field':_0xa4449c(0x239),'alias':'Completed\x20(%)','custom':!![],'ReportId':0x3e},{'field':_0xa4449c(0x1f2),'alias':_0xa4449c(0x1ec),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x3e},{'field':_0xa4449c(0x303),'alias':'AVG\x20Interaction\x20Time','format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x3e},{'field':_0xa4449c(0x25f),'alias':_0xa4449c(0x2ea),'groupBy':!![],'ReportId':0x3f},{'field':_0xa4449c(0x234),'alias':_0xa4449c(0x306),'function':_0xa4449c(0x269),'ReportId':0x3f},{'field':_0xa4449c(0x285),'alias':'Accepted','custom':!![],'ReportId':0x3f},{'field':_0xa4449c(0x232),'alias':_0xa4449c(0x1e9),'custom':!![],'ReportId':0x3f},{'field':_0xa4449c(0x22c),'alias':_0xa4449c(0x309),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x3f},{'field':_0xa4449c(0x2fc),'alias':_0xa4449c(0x299),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x3f},{'field':_0xa4449c(0x2f8),'alias':_0xa4449c(0x2ea),'groupBy':!![],'ReportId':0x44},{'field':_0xa4449c(0x304),'alias':_0xa4449c(0x306),'function':_0xa4449c(0x269),'ReportId':0x44},{'field':_0xa4449c(0x285),'alias':_0xa4449c(0x25c),'custom':!![],'ReportId':0x44},{'field':_0xa4449c(0x232),'alias':'Timeout','custom':!![],'ReportId':0x44},{'field':_0xa4449c(0x22c),'alias':_0xa4449c(0x309),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x44},{'field':_0xa4449c(0x2fc),'alias':'AVG\x20Hold\x20Time','format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x44},{'field':_0xa4449c(0x288),'alias':'Date','format':_0xa4449c(0x2d2),'groupBy':!![],'custom':!![],'ReportId':0x43},{'field':_0xa4449c(0x292),'alias':_0xa4449c(0x306),'function':_0xa4449c(0x269),'ReportId':0x43},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0xa4449c(0x24d),'custom':!![],'ReportId':0x43},{'field':_0xa4449c(0x239),'alias':_0xa4449c(0x1d7),'custom':!![],'ReportId':0x43},{'field':_0xa4449c(0x1f2),'alias':_0xa4449c(0x1ec),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x43},{'field':_0xa4449c(0x303),'alias':_0xa4449c(0x28c),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x43},{'field':_0xa4449c(0x2bb),'alias':'Agent','groupBy':!![],'ReportId':0x42},{'field':_0xa4449c(0x216),'alias':'Closed','function':'SUM','ReportId':0x42},{'field':_0xa4449c(0x2d3),'alias':'Interaction\x20Time','function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x42},{'field':_0xa4449c(0x307),'alias':'AVG\x20Interaction\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x42},{'field':_0xa4449c(0x2b6),'alias':_0xa4449c(0x202),'groupBy':!![],'ReportId':0x41},{'field':_0xa4449c(0x2d3),'alias':_0xa4449c(0x1ec),'function':_0xa4449c(0x2e2),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x41},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)))','alias':'AVG\x20Interaction\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x41},{'field':_0xa4449c(0x2b6),'alias':_0xa4449c(0x202),'groupBy':!![],'ReportId':0x40},{'field':_0xa4449c(0x292),'alias':_0xa4449c(0x306),'function':_0xa4449c(0x269),'ReportId':0x40},{'field':_0xa4449c(0x1f9),'alias':_0xa4449c(0x28a),'custom':!![],'ReportId':0x40},{'field':_0xa4449c(0x23d),'alias':_0xa4449c(0x1e0),'custom':!![],'ReportId':0x40},{'field':_0xa4449c(0x2aa),'alias':_0xa4449c(0x2bd),'groupBy':!![],'custom':![],'ReportId':0x4a},{'field':'users.fullname','alias':_0xa4449c(0x22f),'groupBy':![],'custom':![],'ReportId':0x4a},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL))','alias':_0xa4449c(0x233),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL))','alias':_0xa4449c(0x2c6),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0xa4449c(0x2a9),'alias':_0xa4449c(0x1dc),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0xa4449c(0x2e9),'alias':_0xa4449c(0x2ba),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0xa4449c(0x29b),'alias':_0xa4449c(0x29c),'function':_0xa4449c(0x269),'groupBy':![],'custom':![],'ReportId':0x4a},{'field':_0xa4449c(0x2cc),'alias':'Positive(%)','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':'Negative(%)','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0xa4449c(0x1eb),'alias':_0xa4449c(0x2ef),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':'CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','alias':_0xa4449c(0x2e8),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0xa4449c(0x29b),'alias':_0xa4449c(0x2b3),'function':_0xa4449c(0x269),'groupBy':![],'custom':![],'ReportId':0x4b},{'field':_0xa4449c(0x25d),'alias':_0xa4449c(0x233),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0xa4449c(0x2e1),'alias':_0xa4449c(0x2c6),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0xa4449c(0x2a9),'alias':'NEUTRAL','groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0xa4449c(0x2e9),'alias':_0xa4449c(0x2ba),'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':_0xa4449c(0x2da),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0xa4449c(0x2c9),'alias':_0xa4449c(0x264),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0xa4449c(0x1eb),'alias':_0xa4449c(0x2ef),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0xa4449c(0x2f9),'alias':_0xa4449c(0x2e8),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'whatsapp_accounts.name','alias':'Whatsapp\x20Account','groupBy':!![],'ReportId':0x45},{'field':_0xa4449c(0x249),'alias':'Interactions','function':'COUNT','ReportId':0x45},{'field':_0xa4449c(0x1f9),'alias':_0xa4449c(0x28a),'custom':!![],'ReportId':0x45},{'field':_0xa4449c(0x23d),'alias':'Closed','custom':!![],'ReportId':0x45},{'field':_0xa4449c(0x2c5),'alias':'Whatsapp\x20Account','groupBy':!![],'ReportId':0x46},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)','alias':_0xa4449c(0x1ec),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x46},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)))','alias':_0xa4449c(0x28c),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x46},{'field':_0xa4449c(0x2bb),'alias':_0xa4449c(0x2e7),'groupBy':!![],'ReportId':0x47},{'field':_0xa4449c(0x1ff),'alias':'Closed','function':_0xa4449c(0x2e2),'ReportId':0x47},{'field':_0xa4449c(0x2a7),'alias':_0xa4449c(0x1ec),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x47},{'field':_0xa4449c(0x246),'alias':'AVG\x20Interaction\x20Time','format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x47},{'field':_0xa4449c(0x296),'alias':_0xa4449c(0x2e3),'format':_0xa4449c(0x2d2),'groupBy':!![],'custom':!![],'ReportId':0x48},{'field':_0xa4449c(0x249),'alias':_0xa4449c(0x306),'function':_0xa4449c(0x269),'ReportId':0x48},{'field':_0xa4449c(0x23d),'alias':_0xa4449c(0x24d),'custom':!![],'ReportId':0x48},{'field':'ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','alias':_0xa4449c(0x1d7),'custom':!![],'ReportId':0x48},{'field':_0xa4449c(0x1f2),'alias':'Interaction\x20Time','function':_0xa4449c(0x2e2),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x48},{'field':_0xa4449c(0x303),'alias':_0xa4449c(0x28c),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x48},{'field':_0xa4449c(0x21b),'alias':_0xa4449c(0x2ea),'groupBy':!![],'ReportId':0x49},{'field':_0xa4449c(0x24e),'alias':_0xa4449c(0x306),'function':_0xa4449c(0x269),'ReportId':0x49},{'field':'COUNT(IF(reason=\x27accepted\x27,1,NULL))','alias':_0xa4449c(0x25c),'custom':!![],'ReportId':0x49},{'field':_0xa4449c(0x232),'alias':_0xa4449c(0x1e9),'custom':!![],'ReportId':0x49},{'field':_0xa4449c(0x22c),'alias':_0xa4449c(0x309),'function':_0xa4449c(0x2e2),'format':_0xa4449c(0x26e),'custom':!![],'ReportId':0x49},{'field':_0xa4449c(0x2fc),'alias':_0xa4449c(0x299),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x49}];return _['groupBy'](_0x4c721d,'ReportId');}; \ No newline at end of file diff --git a/server/config/seedDB/report/index.js b/server/config/seedDB/report/index.js index 0b5ceb7..1266df7 100644 --- a/server/config/seedDB/report/index.js +++ b/server/config/seedDB/report/index.js @@ -1 +1 @@ -'use strict';module['exports']={'default':require('./default'),'fields':require('./fields')}; \ No newline at end of file +var a1034_0x4be3=['./fields','./default','exports'];(function(_0x166592,_0x588861){var _0x4be31b=function(_0x175c8f){while(--_0x175c8f){_0x166592['push'](_0x166592['shift']());}};_0x4be31b(++_0x588861);}(a1034_0x4be3,0x74));var a1034_0x175c=function(_0x166592,_0x588861){_0x166592=_0x166592-0x189;var _0x4be31b=a1034_0x4be3[_0x166592];return _0x4be31b;};var a1034_0x2f23b3=a1034_0x175c;'use strict';module[a1034_0x2f23b3(0x189)]={'default':require(a1034_0x2f23b3(0x18b)),'fields':require(a1034_0x2f23b3(0x18a))}; \ No newline at end of file diff --git a/server/config/seedDB/sounds.js b/server/config/seedDB/sounds.js index 938d8b5..eee3563 100644 --- a/server/config/seedDB/sounds.js +++ b/server/config/seedDB/sounds.js @@ -1 +1 @@ -const a1035_0xbc1f=['agentmanagement-menu','agentmanagement-logout','Can\x27t\x20create\x20Sounds','Agent\x20Logout','Order\x20Message','welcome-acme','Agent\x20Menu','auto\x20generated\x20sound','info','Agent\x20Login','Order\x20Shipped','Welcome\x20Message','then','agentmanagement-pause','agentmanagement-unpause','bulkCreate','Agent\x20Pause','agentmanagement-login','wav','../../mysqldb','mp3','order-shipped','error','Agent\x20Action\x20Failure','Sounds\x20have\x20been\x20created','Order\x20Elaborated','rate-call','agentmanagement-action-failure','Thank\x20You','Agent\x20End\x20Pause'];(function(_0x1c43da,_0x4c91af){const _0xbc1f9a=function(_0xce7b4c){while(--_0xce7b4c){_0x1c43da['push'](_0x1c43da['shift']());}};_0xbc1f9a(++_0x4c91af);}(a1035_0xbc1f,0x1d1));const a1035_0xce7b=function(_0x1c43da,_0x4c91af){_0x1c43da=_0x1c43da-0x1ba;let _0xbc1f9a=a1035_0xbc1f[_0x1c43da];return _0xbc1f9a;};const a1035_0x5a2e23=a1035_0xce7b;'use strict';const {db}=require(a1035_0x5a2e23(0x1be)),logger=require('../logger')('app'),sounds=[{'id':0x1,'name':a1035_0x5a2e23(0x1d4),'save_name':a1035_0x5a2e23(0x1ce),'display_name':'Welcome\x20Message','original_format':a1035_0x5a2e23(0x1bd),'converted_format':a1035_0x5a2e23(0x1bd),'description':'auto\x20generated\x20sound'},{'id':0x2,'name':a1035_0x5a2e23(0x1cd),'save_name':'order-number','display_name':a1035_0x5a2e23(0x1cd),'original_format':a1035_0x5a2e23(0x1bd),'converted_format':'wav','description':a1035_0x5a2e23(0x1d0)},{'id':0x3,'name':'Order\x20Shipped','save_name':a1035_0x5a2e23(0x1c0),'display_name':a1035_0x5a2e23(0x1d3),'original_format':a1035_0x5a2e23(0x1bd),'converted_format':a1035_0x5a2e23(0x1bd),'description':a1035_0x5a2e23(0x1d0)},{'id':0x4,'name':a1035_0x5a2e23(0x1c4),'save_name':'order-elaborated','display_name':a1035_0x5a2e23(0x1c4),'original_format':'wav','converted_format':a1035_0x5a2e23(0x1bd),'description':a1035_0x5a2e23(0x1d0)},{'id':0x5,'name':'Call\x20Rating\x20Message','save_name':a1035_0x5a2e23(0x1c5),'display_name':'Call\x20Rating\x20Message','original_format':a1035_0x5a2e23(0x1bd),'converted_format':a1035_0x5a2e23(0x1bd),'description':a1035_0x5a2e23(0x1d0)},{'id':0x6,'name':a1035_0x5a2e23(0x1c7),'save_name':'thanx','display_name':'Thank\x20You','original_format':a1035_0x5a2e23(0x1bd),'converted_format':a1035_0x5a2e23(0x1bd),'description':a1035_0x5a2e23(0x1d0)},{'id':0x7,'name':a1035_0x5a2e23(0x1d2),'save_name':a1035_0x5a2e23(0x1bc),'display_name':'Agent\x20Login','original_format':a1035_0x5a2e23(0x1bf),'converted_format':a1035_0x5a2e23(0x1bd),'description':'auto\x20generated\x20sound'},{'id':0x8,'name':a1035_0x5a2e23(0x1cc),'save_name':a1035_0x5a2e23(0x1ca),'display_name':'Agent\x20Logout','original_format':'mp3','converted_format':a1035_0x5a2e23(0x1bd),'description':a1035_0x5a2e23(0x1d0)},{'id':0x9,'name':a1035_0x5a2e23(0x1cf),'save_name':a1035_0x5a2e23(0x1c9),'display_name':'Agent\x20Menu','original_format':'wav','converted_format':a1035_0x5a2e23(0x1bd),'description':a1035_0x5a2e23(0x1d0)},{'id':0xa,'name':a1035_0x5a2e23(0x1bb),'save_name':a1035_0x5a2e23(0x1d6),'display_name':a1035_0x5a2e23(0x1bb),'original_format':'mp3','converted_format':a1035_0x5a2e23(0x1bd),'description':a1035_0x5a2e23(0x1d0)},{'id':0xb,'name':a1035_0x5a2e23(0x1c8),'save_name':a1035_0x5a2e23(0x1d7),'display_name':'Agent\x20End\x20Pause','original_format':a1035_0x5a2e23(0x1bf),'converted_format':a1035_0x5a2e23(0x1bd),'description':a1035_0x5a2e23(0x1d0)},{'id':0xc,'name':'Agent\x20Action\x20Failure','save_name':a1035_0x5a2e23(0x1c6),'display_name':a1035_0x5a2e23(0x1c2),'original_format':a1035_0x5a2e23(0x1bd),'converted_format':a1035_0x5a2e23(0x1bd),'description':a1035_0x5a2e23(0x1d0)}];exports['create']=function(){const _0x1d6397=a1035_0x5a2e23;return db['Sound'][_0x1d6397(0x1ba)](sounds,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1d6397(0x1d5)](function(){const _0x322047=_0x1d6397;logger[_0x322047(0x1d1)](_0x322047(0x1c3));})['catch'](function(){const _0x2ce747=_0x1d6397;logger[_0x2ce747(0x1c1)](_0x2ce747(0x1cb));});}; \ No newline at end of file +const a1035_0x2a47=['Agent\x20Login','wav','Sound','create','Agent\x20Action\x20Failure','Sounds\x20have\x20been\x20created','Agent\x20Menu','agentmanagement-logout','agentmanagement-action-failure','auto\x20generated\x20sound','bulkCreate','welcome-acme','Agent\x20Pause','Can\x27t\x20create\x20Sounds','Order\x20Message','Order\x20Shipped','../../mysqldb','Welcome\x20Message','mp3','Agent\x20Logout','order-shipped','Agent\x20End\x20Pause','agentmanagement-unpause','agentmanagement-menu','../logger','thanx','Order\x20Elaborated','app','info','rate-call','Thank\x20You','order-elaborated','catch'];(function(_0x271123,_0x4fdf55){const _0x2a4781=function(_0x3d7ec3){while(--_0x3d7ec3){_0x271123['push'](_0x271123['shift']());}};_0x2a4781(++_0x4fdf55);}(a1035_0x2a47,0x1cc));const a1035_0x3d7e=function(_0x271123,_0x4fdf55){_0x271123=_0x271123-0x1ef;let _0x2a4781=a1035_0x2a47[_0x271123];return _0x2a4781;};const a1035_0x44756c=a1035_0x3d7e;'use strict';const {db}=require(a1035_0x44756c(0x201)),logger=require(a1035_0x44756c(0x209))(a1035_0x44756c(0x20c)),sounds=[{'id':0x1,'name':a1035_0x44756c(0x202),'save_name':a1035_0x44756c(0x1fc),'display_name':a1035_0x44756c(0x202),'original_format':a1035_0x44756c(0x1f2),'converted_format':a1035_0x44756c(0x1f2),'description':a1035_0x44756c(0x1fa)},{'id':0x2,'name':a1035_0x44756c(0x1ff),'save_name':'order-number','display_name':a1035_0x44756c(0x1ff),'original_format':'wav','converted_format':a1035_0x44756c(0x1f2),'description':'auto\x20generated\x20sound'},{'id':0x3,'name':'Order\x20Shipped','save_name':a1035_0x44756c(0x205),'display_name':a1035_0x44756c(0x200),'original_format':'wav','converted_format':a1035_0x44756c(0x1f2),'description':'auto\x20generated\x20sound'},{'id':0x4,'name':a1035_0x44756c(0x20b),'save_name':a1035_0x44756c(0x1ef),'display_name':'Order\x20Elaborated','original_format':a1035_0x44756c(0x1f2),'converted_format':a1035_0x44756c(0x1f2),'description':a1035_0x44756c(0x1fa)},{'id':0x5,'name':'Call\x20Rating\x20Message','save_name':a1035_0x44756c(0x20e),'display_name':'Call\x20Rating\x20Message','original_format':a1035_0x44756c(0x1f2),'converted_format':a1035_0x44756c(0x1f2),'description':a1035_0x44756c(0x1fa)},{'id':0x6,'name':a1035_0x44756c(0x20f),'save_name':a1035_0x44756c(0x20a),'display_name':a1035_0x44756c(0x20f),'original_format':a1035_0x44756c(0x1f2),'converted_format':a1035_0x44756c(0x1f2),'description':a1035_0x44756c(0x1fa)},{'id':0x7,'name':a1035_0x44756c(0x1f1),'save_name':'agentmanagement-login','display_name':'Agent\x20Login','original_format':a1035_0x44756c(0x203),'converted_format':a1035_0x44756c(0x1f2),'description':a1035_0x44756c(0x1fa)},{'id':0x8,'name':a1035_0x44756c(0x204),'save_name':a1035_0x44756c(0x1f8),'display_name':a1035_0x44756c(0x204),'original_format':a1035_0x44756c(0x203),'converted_format':a1035_0x44756c(0x1f2),'description':a1035_0x44756c(0x1fa)},{'id':0x9,'name':a1035_0x44756c(0x1f7),'save_name':a1035_0x44756c(0x208),'display_name':a1035_0x44756c(0x1f7),'original_format':a1035_0x44756c(0x1f2),'converted_format':a1035_0x44756c(0x1f2),'description':a1035_0x44756c(0x1fa)},{'id':0xa,'name':'Agent\x20Pause','save_name':'agentmanagement-pause','display_name':a1035_0x44756c(0x1fd),'original_format':'mp3','converted_format':a1035_0x44756c(0x1f2),'description':a1035_0x44756c(0x1fa)},{'id':0xb,'name':a1035_0x44756c(0x206),'save_name':a1035_0x44756c(0x207),'display_name':a1035_0x44756c(0x206),'original_format':a1035_0x44756c(0x203),'converted_format':'wav','description':a1035_0x44756c(0x1fa)},{'id':0xc,'name':a1035_0x44756c(0x1f5),'save_name':a1035_0x44756c(0x1f9),'display_name':a1035_0x44756c(0x1f5),'original_format':a1035_0x44756c(0x1f2),'converted_format':'wav','description':a1035_0x44756c(0x1fa)}];exports[a1035_0x44756c(0x1f4)]=function(){const _0x51535f=a1035_0x44756c;return db[_0x51535f(0x1f3)][_0x51535f(0x1fb)](sounds,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x106555=_0x51535f;logger[_0x106555(0x20d)](_0x106555(0x1f6));})[_0x51535f(0x1f0)](function(){const _0x199f37=_0x51535f;logger['error'](_0x199f37(0x1fe));});}; \ No newline at end of file diff --git a/server/config/seedDB/squareOdbc.js b/server/config/seedDB/squareOdbc.js index 5624128..11d2c03 100644 --- a/server/config/seedDB/squareOdbc.js +++ b/server/config/seedDB/squareOdbc.js @@ -1 +1 @@ -const a1036_0x21fe=['../../mysqldb','xcally\x20motion\x20db\x20auto\x20generated','create','bulkCreate','SquareOdbc','ODBC\x20have\x20been\x20created','../logger','Can\x27t\x20create\x20ODBC','xcally-motion-database','info','error','DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=xC@LL1234;DATABASE=motion2'];(function(_0x555f21,_0x191351){const _0x21feec=function(_0x480d4f){while(--_0x480d4f){_0x555f21['push'](_0x555f21['shift']());}};_0x21feec(++_0x191351);}(a1036_0x21fe,0xa9));const a1036_0x480d=function(_0x555f21,_0x191351){_0x555f21=_0x555f21-0xe5;let _0x21feec=a1036_0x21fe[_0x555f21];return _0x21feec;};const a1036_0x3566c7=a1036_0x480d;'use strict';const {db}=require(a1036_0x3566c7(0xf0)),logger=require(a1036_0x3566c7(0xea))('app'),odbc=[{'id':0x1,'name':a1036_0x3566c7(0xec),'dsn':a1036_0x3566c7(0xef),'description':a1036_0x3566c7(0xe5)}];exports[a1036_0x3566c7(0xe6)]=function(){const _0x3d072c=a1036_0x3566c7;return db[_0x3d072c(0xe8)][_0x3d072c(0xe7)](odbc,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x12e8eb=_0x3d072c;logger[_0x12e8eb(0xed)](_0x12e8eb(0xe9));})['catch'](function(){const _0x22a3dc=_0x3d072c;logger[_0x22a3dc(0xee)](_0x22a3dc(0xeb));});}; \ No newline at end of file +const a1036_0x3ed1=['info','../logger','SquareOdbc','create','catch','then','Can\x27t\x20create\x20ODBC','../../mysqldb','ODBC\x20have\x20been\x20created','xcally-motion-database','bulkCreate','DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=xC@LL1234;DATABASE=motion2'];(function(_0x1eeeb2,_0x484f62){const _0x3ed1c2=function(_0x32a5a2){while(--_0x32a5a2){_0x1eeeb2['push'](_0x1eeeb2['shift']());}};_0x3ed1c2(++_0x484f62);}(a1036_0x3ed1,0x19d));const a1036_0x32a5=function(_0x1eeeb2,_0x484f62){_0x1eeeb2=_0x1eeeb2-0x118;let _0x3ed1c2=a1036_0x3ed1[_0x1eeeb2];return _0x3ed1c2;};const a1036_0xb3071=a1036_0x32a5;'use strict';const {db}=require(a1036_0xb3071(0x11a)),logger=require(a1036_0xb3071(0x120))('app'),odbc=[{'id':0x1,'name':a1036_0xb3071(0x11c),'dsn':a1036_0xb3071(0x11e),'description':'xcally\x20motion\x20db\x20auto\x20generated'}];exports[a1036_0xb3071(0x122)]=function(){const _0x1b0236=a1036_0xb3071;return db[_0x1b0236(0x121)][_0x1b0236(0x11d)](odbc,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1b0236(0x118)](function(){const _0x302e8e=_0x1b0236;logger[_0x302e8e(0x11f)](_0x302e8e(0x11b));})[_0x1b0236(0x123)](function(){const _0x5a968b=_0x1b0236;logger['error'](_0x5a968b(0x119));});}; \ No newline at end of file diff --git a/server/config/seedDB/squareProjects.js b/server/config/seedDB/squareProjects.js index 4aae5b4..6d6193b 100644 --- a/server/config/seedDB/squareProjects.js +++ b/server/config/seedDB/squareProjects.js @@ -1 +1 @@ -const a1037_0x152b=['../../mysqldb','Orders','error','AutoAttendant','AgentManagement','Agent\x20Management\x20sample\x20auto\x20generated','xml','CSI','Can\x27t\x20create\x20Square\x20Projects','bulkCreate','Basic\x20IVR\x20sample\x20auto\x20generated','utf-8','Survey','catch','info','Survey\x20IVR\x20sample\x20auto\x20generated','app','.xml','SquareProject','Customer\x20Satisfaction\x20IVR\x20sample\x20auto\x20generated','join'];(function(_0x5dba8c,_0x40eae3){const _0x152b13=function(_0x579018){while(--_0x579018){_0x5dba8c['push'](_0x5dba8c['shift']());}};_0x152b13(++_0x40eae3);}(a1037_0x152b,0x103));const a1037_0x5790=function(_0x5dba8c,_0x40eae3){_0x5dba8c=_0x5dba8c-0x96;let _0x152b13=a1037_0x152b[_0x5dba8c];return _0x152b13;};const a1037_0x647c49=a1037_0x5790;'use strict';const fs=require('fs'),path=require('path'),{db}=require(a1037_0x647c49(0xa4)),logger=require('../logger')(a1037_0x647c49(0x9f)),getXml=function(_0x1a17b8){const _0x2c36aa=a1037_0x647c49;return fs['readFileSync'](path[_0x2c36aa(0xa3)](__dirname,_0x2c36aa(0xaa),_0x1a17b8+_0x2c36aa(0xa0)),{'encoding':_0x2c36aa(0x9a)});},squareProjects=[{'id':0x1,'name':a1037_0x647c49(0xa7),'description':a1037_0x647c49(0x99),'preproduction':getXml(a1037_0x647c49(0xa7)),'production':getXml('AutoAttendant')},{'id':0x2,'name':a1037_0x647c49(0x96),'description':a1037_0x647c49(0xa2),'preproduction':getXml('CSI'),'production':getXml(a1037_0x647c49(0x96))},{'id':0x3,'name':'Orders','description':'Order\x20DB\x20IVR\x20sample\x20auto\x20generated','preproduction':getXml('Orders'),'production':getXml(a1037_0x647c49(0xa5))},{'id':0x4,'name':'Survey','description':a1037_0x647c49(0x9e),'preproduction':getXml(a1037_0x647c49(0x9b)),'production':getXml('Survey')},{'id':0x5,'name':a1037_0x647c49(0xa8),'description':a1037_0x647c49(0xa9),'preproduction':getXml('AgentManagement'),'production':getXml(a1037_0x647c49(0xa8))}];exports['create']=function(){const _0x217dd8=a1037_0x647c49;return db[_0x217dd8(0xa1)][_0x217dd8(0x98)](squareProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x55960d=_0x217dd8;logger[_0x55960d(0x9d)]('Square\x20Projects\x20have\x20been\x20created');})[_0x217dd8(0x9c)](function(){const _0x5c68d0=_0x217dd8;logger[_0x5c68d0(0xa6)](_0x5c68d0(0x97));});}; \ No newline at end of file +const a1037_0x32d2=['utf-8','error','info','xml','../logger','Orders','Survey\x20IVR\x20sample\x20auto\x20generated','bulkCreate','Basic\x20IVR\x20sample\x20auto\x20generated','Can\x27t\x20create\x20Square\x20Projects','Agent\x20Management\x20sample\x20auto\x20generated','AgentManagement','Customer\x20Satisfaction\x20IVR\x20sample\x20auto\x20generated','readFileSync','.xml','Square\x20Projects\x20have\x20been\x20created','SquareProject','create','join','path','Survey','CSI','AutoAttendant','then'];(function(_0x50af30,_0x5d6a50){const _0x32d25e=function(_0x5e673e){while(--_0x5e673e){_0x50af30['push'](_0x50af30['shift']());}};_0x32d25e(++_0x5d6a50);}(a1037_0x32d2,0x1b0));const a1037_0x5e67=function(_0x50af30,_0x5d6a50){_0x50af30=_0x50af30-0x1a4;let _0x32d25e=a1037_0x32d2[_0x50af30];return _0x32d25e;};const a1037_0x3937b7=a1037_0x5e67;'use strict';const fs=require('fs'),path=require(a1037_0x3937b7(0x1b7)),{db}=require('../../mysqldb'),logger=require(a1037_0x3937b7(0x1a8))('app'),getXml=function(_0xb02f95){const _0x248825=a1037_0x3937b7;return fs[_0x248825(0x1b1)](path[_0x248825(0x1b6)](__dirname,_0x248825(0x1a7),_0xb02f95+_0x248825(0x1b2)),{'encoding':_0x248825(0x1a4)});},squareProjects=[{'id':0x1,'name':a1037_0x3937b7(0x1ba),'description':a1037_0x3937b7(0x1ac),'preproduction':getXml(a1037_0x3937b7(0x1ba)),'production':getXml(a1037_0x3937b7(0x1ba))},{'id':0x2,'name':a1037_0x3937b7(0x1b9),'description':a1037_0x3937b7(0x1b0),'preproduction':getXml('CSI'),'production':getXml(a1037_0x3937b7(0x1b9))},{'id':0x3,'name':a1037_0x3937b7(0x1a9),'description':'Order\x20DB\x20IVR\x20sample\x20auto\x20generated','preproduction':getXml(a1037_0x3937b7(0x1a9)),'production':getXml(a1037_0x3937b7(0x1a9))},{'id':0x4,'name':a1037_0x3937b7(0x1b8),'description':a1037_0x3937b7(0x1aa),'preproduction':getXml('Survey'),'production':getXml(a1037_0x3937b7(0x1b8))},{'id':0x5,'name':a1037_0x3937b7(0x1af),'description':a1037_0x3937b7(0x1ae),'preproduction':getXml(a1037_0x3937b7(0x1af)),'production':getXml(a1037_0x3937b7(0x1af))}];exports[a1037_0x3937b7(0x1b5)]=function(){const _0x2b1029=a1037_0x3937b7;return db[_0x2b1029(0x1b4)][_0x2b1029(0x1ab)](squareProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x2b1029(0x1bb)](function(){const _0x25ff53=_0x2b1029;logger[_0x25ff53(0x1a6)](_0x25ff53(0x1b3));})['catch'](function(){const _0xab3283=_0x2b1029;logger[_0xab3283(0x1a5)](_0xab3283(0x1ad));});}; \ No newline at end of file diff --git a/server/config/seedDB/tags.js b/server/config/seedDB/tags.js index 373786f..8562ee3 100644 --- a/server/config/seedDB/tags.js +++ b/server/config/seedDB/tags.js @@ -1 +1 @@ -const a1038_0x52de=['about_sales','map','tag\x20installation\x20auto\x20generated','error','tag\x20forums\x20auto\x20generated','name','Tag','tag\x20defective\x20auto\x20generated','bulkCreate','tag\x20faq\x20auto\x20generated','getNames','../../mysqldb','defective','faq','create','Can\x27t\x20create\x20Tags','catch','app','installation','forums','then','Tags\x20have\x20been\x20created'];(function(_0x398c59,_0x42994c){const _0x52defa=function(_0x37066e){while(--_0x37066e){_0x398c59['push'](_0x398c59['shift']());}};_0x52defa(++_0x42994c);}(a1038_0x52de,0x164));const a1038_0x3706=function(_0x398c59,_0x42994c){_0x398c59=_0x398c59-0x1e3;let _0x52defa=a1038_0x52de[_0x398c59];return _0x52defa;};const a1038_0x338b9d=a1038_0x3706;'use strict';const _=require('lodash'),{db}=require(a1038_0x338b9d(0x1ea)),logger=require('../logger')(a1038_0x338b9d(0x1f0)),tags=[{'id':0x1,'name':a1038_0x338b9d(0x1f2),'description':a1038_0x338b9d(0x1e3)},{'id':0x2,'name':a1038_0x338b9d(0x1eb),'description':a1038_0x338b9d(0x1e6)},{'id':0x3,'name':a1038_0x338b9d(0x1ec),'description':a1038_0x338b9d(0x1e8)},{'id':0x4,'name':a1038_0x338b9d(0x1f1),'description':a1038_0x338b9d(0x1f7)},{'id':0x5,'name':a1038_0x338b9d(0x1f5),'description':'tag\x20about_sales\x20auto\x20generated'}];exports[a1038_0x338b9d(0x1ed)]=function(){const _0x199c6e=a1038_0x338b9d;return db[_0x199c6e(0x1e5)][_0x199c6e(0x1e7)](tags,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x199c6e(0x1f3)](function(){const _0x2a2f05=_0x199c6e;logger['info'](_0x2a2f05(0x1f4));})[_0x199c6e(0x1ef)](function(){const _0x1cd6b9=_0x199c6e;logger[_0x1cd6b9(0x1f8)](_0x1cd6b9(0x1ee));});},exports[a1038_0x338b9d(0x1e9)]=function(){const _0x565ce3=a1038_0x338b9d;return _[_0x565ce3(0x1f6)](tags,_0x565ce3(0x1e4));}; \ No newline at end of file +const a1038_0xba59=['../logger','error','then','catch','defective','Can\x27t\x20create\x20Tags','name','Tags\x20have\x20been\x20created','app','bulkCreate','forums','tag\x20defective\x20auto\x20generated','info','installation','faq','getNames','about_sales','map','tag\x20installation\x20auto\x20generated','../../mysqldb'];(function(_0x3c7d50,_0x487b37){const _0xba5923=function(_0x40a35f){while(--_0x40a35f){_0x3c7d50['push'](_0x3c7d50['shift']());}};_0xba5923(++_0x487b37);}(a1038_0xba59,0x1c2));const a1038_0x40a3=function(_0x3c7d50,_0x487b37){_0x3c7d50=_0x3c7d50-0x189;let _0xba5923=a1038_0xba59[_0x3c7d50];return _0xba5923;};const a1038_0x345d06=a1038_0x40a3;'use strict';const _=require('lodash'),{db}=require(a1038_0x345d06(0x192)),logger=require(a1038_0x345d06(0x193))(a1038_0x345d06(0x19b)),tags=[{'id':0x1,'name':a1038_0x345d06(0x189),'description':'tag\x20forums\x20auto\x20generated'},{'id':0x2,'name':a1038_0x345d06(0x197),'description':a1038_0x345d06(0x18a)},{'id':0x3,'name':a1038_0x345d06(0x18d),'description':'tag\x20faq\x20auto\x20generated'},{'id':0x4,'name':a1038_0x345d06(0x18c),'description':a1038_0x345d06(0x191)},{'id':0x5,'name':a1038_0x345d06(0x18f),'description':'tag\x20about_sales\x20auto\x20generated'}];exports['create']=function(){const _0x2a022f=a1038_0x345d06;return db['Tag'][_0x2a022f(0x19c)](tags,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x2a022f(0x195)](function(){const _0x21a32e=_0x2a022f;logger[_0x21a32e(0x18b)](_0x21a32e(0x19a));})[_0x2a022f(0x196)](function(){const _0x48b9a9=_0x2a022f;logger[_0x48b9a9(0x194)](_0x48b9a9(0x198));});},exports[a1038_0x345d06(0x18e)]=function(){const _0x27c923=a1038_0x345d06;return _[_0x27c923(0x190)](tags,_0x27c923(0x199));}; \ No newline at end of file diff --git a/server/config/seedDB/teams.js b/server/config/seedDB/teams.js index d49e8e0..1605a1d 100644 --- a/server/config/seedDB/teams.js +++ b/server/config/seedDB/teams.js @@ -1 +1 @@ -const a1039_0x2c79=['bulkCreate','create','addAgents','../../mysqldb','app','Team','Demo\x20Team','then','Teams\x20have\x20been\x20created','length','catch'];(function(_0x555212,_0x22cd5e){const _0x2c7939=function(_0x12df5b){while(--_0x12df5b){_0x555212['push'](_0x555212['shift']());}};_0x2c7939(++_0x22cd5e);}(a1039_0x2c79,0xcf));const a1039_0x12df=function(_0x555212,_0x22cd5e){_0x555212=_0x555212-0x92;let _0x2c7939=a1039_0x2c79[_0x555212];return _0x2c7939;};const a1039_0x3ee5bc=a1039_0x12df;'use strict';const {db}=require(a1039_0x3ee5bc(0x97)),logger=require('../logger')(a1039_0x3ee5bc(0x98)),teams=[{'id':0x1,'name':a1039_0x3ee5bc(0x9a),'description':'demo\x20team\x20auto\x20generated'}];exports[a1039_0x3ee5bc(0x95)]=function(){const _0x3616c5=a1039_0x3ee5bc;return db[_0x3616c5(0x99)][_0x3616c5(0x94)](teams,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x3616c5(0x9b)](function(_0x27b7c9){const _0x115a0a=_0x3616c5;for(let _0xb8d088=0x0;_0xb8d088<_0x27b7c9[_0x115a0a(0x92)];_0xb8d088+=0x1){_0x27b7c9[_0xb8d088][_0x115a0a(0x96)]([0x2,0x3]);}})['then'](function(){const _0x322f99=_0x3616c5;logger['info'](_0x322f99(0x9c));})[_0x3616c5(0x93)](function(){logger['error']('Can\x27t\x20create\x20Teams');});}; \ No newline at end of file +const a1039_0x427a=['Demo\x20Team','app','../../mysqldb','demo\x20team\x20auto\x20generated','Can\x27t\x20create\x20Teams','length','catch','info','addAgents','then','Team','bulkCreate','create','../logger'];(function(_0x1b895,_0x708a03){const _0x427a8b=function(_0x505550){while(--_0x505550){_0x1b895['push'](_0x1b895['shift']());}};_0x427a8b(++_0x708a03);}(a1039_0x427a,0xad));const a1039_0x5055=function(_0x1b895,_0x708a03){_0x1b895=_0x1b895-0x196;let _0x427a8b=a1039_0x427a[_0x1b895];return _0x427a8b;};const a1039_0x57cf84=a1039_0x5055;'use strict';const {db}=require(a1039_0x57cf84(0x1a1)),logger=require(a1039_0x57cf84(0x19e))(a1039_0x57cf84(0x1a0)),teams=[{'id':0x1,'name':a1039_0x57cf84(0x19f),'description':a1039_0x57cf84(0x1a2)}];exports[a1039_0x57cf84(0x19d)]=function(){const _0x1c5bbb=a1039_0x57cf84;return db[_0x1c5bbb(0x19b)][_0x1c5bbb(0x19c)](teams,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1c5bbb(0x19a)](function(_0x55a481){const _0x567700=_0x1c5bbb;for(let _0x23a679=0x0;_0x23a679<_0x55a481[_0x567700(0x196)];_0x23a679+=0x1){_0x55a481[_0x23a679][_0x567700(0x199)]([0x2,0x3]);}})['then'](function(){const _0x4bdf08=_0x1c5bbb;logger[_0x4bdf08(0x198)]('Teams\x20have\x20been\x20created');})[_0x1c5bbb(0x197)](function(){const _0x24b62e=_0x1c5bbb;logger['error'](_0x24b62e(0x1a3));});}; \ No newline at end of file diff --git a/server/config/seedDB/tree/index.js b/server/config/seedDB/tree/index.js index ec7b5df..4ff1b56 100644 --- a/server/config/seedDB/tree/index.js +++ b/server/config/seedDB/tree/index.js @@ -1 +1 @@ -var a1040_0x4ee7=['bull','Calls','\x20Reports','Distribution','icon\x20s20\x20icon-stackoverflow','fax','Openchannel','answered','icon\x20s20\x20icon-hangouts','ivr_campaigns','Queues','icon\x20s20\x20icon-fire','icon\x20s20\x20icon-phone-log','agents','Answered','custom','icon-cloud','icon\x20s20\x20icon-phone-dots','Fax','callysquare','icon\x20s20\x20icon-account-multiple','icon\x20s20\x20icon-google-earth','sms','motion','Cally\x20Square','icon\x20s20\x20icon-whatsapp','voice','Motion\x20Bull','calls','icon\x20s20\x20icon-message-text','Email','recordings','Voice','Unanswered','Custom','icon-laptop-chromebook','icon\x20s20\x20icon-deskphone','WhatsApp\x20Connector','distribution','whatsapp','Agents','Queue\x20Campaigns','queues','openchannel','icon\x20s20\x20icon-sitemap','Motion','unanswered','chat'];(function(_0x3ab09e,_0x5b5bdf){var _0x4ee7c9=function(_0x369848){while(--_0x369848){_0x3ab09e['push'](_0x3ab09e['shift']());}};_0x4ee7c9(++_0x5b5bdf);}(a1040_0x4ee7,0x17f));var a1040_0x3698=function(_0x3ab09e,_0x5b5bdf){_0x3ab09e=_0x3ab09e-0x113;var _0x4ee7c9=a1040_0x4ee7[_0x3ab09e];return _0x4ee7c9;};var a1040_0x2f02e7=a1040_0x3698;'use strict';function getQueuesChildren(_0x14511a){var _0x15da35=a1040_0x3698;return _0x14511a+='_',[{'id':_0x14511a+_0x15da35(0x11b),'text':_0x15da35(0x122)},{'id':_0x14511a+_0x15da35(0x142),'text':_0x15da35(0x135)},{'id':_0x14511a+_0x15da35(0x13a),'text':_0x15da35(0x117)}];}function getVoiceChildren(_0xba75c7){var _0x5edae8=a1040_0x3698;return _0xba75c7+='_',[{'id':_0xba75c7+_0x5edae8(0x13e),'text':_0x5edae8(0x11e),'icon':_0x5edae8(0x118),'children':getQueuesChildren(_0xba75c7+_0x5edae8(0x13e))},{'id':_0xba75c7+_0x5edae8(0x130),'text':_0x5edae8(0x115),'icon':_0x5edae8(0x125)},{'id':_0xba75c7+_0x5edae8(0x121),'text':_0x5edae8(0x13c),'icon':'icon\x20s20\x20icon-account-multiple'},{'id':_0xba75c7+_0x5edae8(0x127),'text':_0x5edae8(0x12c),'icon':_0x5edae8(0x140)},{'id':_0xba75c7+_0x5edae8(0x133),'text':'Recordings','icon':'icon\x20s20\x20icon-microphone'}];}function getBullChildren(_0x1cf019){var _0x3ec56f=a1040_0x3698;return _0x1cf019+='_',[{'id':_0x1cf019+'queue_campaigns','text':_0x3ec56f(0x13d),'icon':'icon\x20s20\x20icon-stackoverflow'},{'id':_0x1cf019+_0x3ec56f(0x11d),'text':'IVR\x20Campaigns','icon':_0x3ec56f(0x140)}];}function getMotionChildren(_0x2858fb){var _0x3fd6cc=a1040_0x3698;return _0x2858fb+='_',[{'id':_0x2858fb+_0x3fd6cc(0x12e),'text':_0x3fd6cc(0x134),'icon':_0x3fd6cc(0x120),'children':getVoiceChildren(_0x2858fb+_0x3fd6cc(0x12e))},{'id':_0x2858fb+_0x3fd6cc(0x114),'text':_0x3fd6cc(0x12f),'icon':_0x3fd6cc(0x11f),'children':getBullChildren(_0x2858fb+_0x3fd6cc(0x114))},{'id':_0x2858fb+_0x3fd6cc(0x113),'text':'Chat','icon':_0x3fd6cc(0x11c)},{'id':_0x2858fb+'mail','text':_0x3fd6cc(0x132),'icon':'icon\x20s20\x20icon-email'},{'id':_0x2858fb+_0x3fd6cc(0x13f),'text':_0x3fd6cc(0x11a),'icon':_0x3fd6cc(0x129)},{'id':_0x2858fb+_0x3fd6cc(0x12a),'text':'Sms','icon':_0x3fd6cc(0x131)},{'id':_0x2858fb+_0x3fd6cc(0x119),'text':_0x3fd6cc(0x126),'icon':_0x3fd6cc(0x138)},{'id':_0x2858fb+_0x3fd6cc(0x13b),'text':_0x3fd6cc(0x139),'icon':_0x3fd6cc(0x12d)},{'id':_0x2858fb+'agents','text':_0x3fd6cc(0x13c),'icon':_0x3fd6cc(0x128)}];}function getTree(_0x2fe202){var _0x216659=a1040_0x3698;return[{'id':_0x2fe202?'custom':_0x216659(0x12b),'text':(_0x2fe202?_0x216659(0x136):_0x216659(0x141))+_0x216659(0x116),'icon':'icon\x20s20\x20'+(_0x2fe202?_0x216659(0x137):_0x216659(0x124)),'state':{'opened':!![],'selected':!![]},'children':getMotionChildren(_0x2fe202?_0x216659(0x123):_0x216659(0x12b))}];}exports['motion']=getTree(![]),exports[a1040_0x2f02e7(0x123)]=getTree(!![]); \ No newline at end of file +var a1040_0x5056=['distribution','Chat','Fax','calls','Recordings','WhatsApp\x20Connector','Sms','queues','recordings','Motion\x20Bull','Motion','openchannel','icon\x20s20\x20icon-sitemap','icon\x20s20\x20icon-microphone','mail','icon\x20s20\x20icon-phone-dots','icon\x20s20\x20icon-deskphone','icon\x20s20\x20icon-stackoverflow','Email','icon\x20s20\x20icon-whatsapp','Queues','Answered','Custom','Queue\x20Campaigns','icon\x20s20\x20icon-account-multiple','agents','voice','bull','Voice','Unanswered','ivr_campaigns','icon\x20s20\x20icon-hangouts','Distribution','sms','icon\x20s20\x20icon-google-earth','icon\x20s20\x20icon-message-text','icon\x20s20\x20','whatsapp','queue_campaigns','icon\x20s20\x20icon-email','motion','unanswered','icon\x20s20\x20icon-fire','icon\x20s20\x20icon-phone-log','Agents','custom'];(function(_0x4a6ae6,_0x2209ec){var _0x50560d=function(_0x38aaee){while(--_0x38aaee){_0x4a6ae6['push'](_0x4a6ae6['shift']());}};_0x50560d(++_0x2209ec);}(a1040_0x5056,0x19e));var a1040_0x38aa=function(_0x4a6ae6,_0x2209ec){_0x4a6ae6=_0x4a6ae6-0x15e;var _0x50560d=a1040_0x5056[_0x4a6ae6];return _0x50560d;};var a1040_0x26938e=a1040_0x38aa;'use strict';function getQueuesChildren(_0x2f0017){var _0x35d3e9=a1040_0x38aa;return _0x2f0017+='_',[{'id':_0x2f0017+'answered','text':_0x35d3e9(0x173)},{'id':_0x2f0017+_0x35d3e9(0x187),'text':_0x35d3e9(0x17b)},{'id':_0x2f0017+_0x35d3e9(0x15e),'text':_0x35d3e9(0x17e)}];}function getVoiceChildren(_0x44b8d7){var _0xc3a468=a1040_0x38aa;return _0x44b8d7+='_',[{'id':_0x44b8d7+_0xc3a468(0x165),'text':_0xc3a468(0x172),'icon':_0xc3a468(0x16f),'children':getQueuesChildren(_0x44b8d7+_0xc3a468(0x165))},{'id':_0x44b8d7+_0xc3a468(0x161),'text':'Calls','icon':_0xc3a468(0x16d)},{'id':_0x44b8d7+_0xc3a468(0x177),'text':_0xc3a468(0x18a),'icon':_0xc3a468(0x176)},{'id':_0x44b8d7+'callysquare','text':'Cally\x20Square','icon':_0xc3a468(0x16a)},{'id':_0x44b8d7+_0xc3a468(0x166),'text':_0xc3a468(0x162),'icon':_0xc3a468(0x16b)}];}function getBullChildren(_0x2b838a){var _0x41eb4c=a1040_0x38aa;return _0x2b838a+='_',[{'id':_0x2b838a+_0x41eb4c(0x184),'text':_0x41eb4c(0x175),'icon':_0x41eb4c(0x16f)},{'id':_0x2b838a+_0x41eb4c(0x17c),'text':'IVR\x20Campaigns','icon':_0x41eb4c(0x16a)}];}function getMotionChildren(_0x3f1e9a){var _0x350ae0=a1040_0x38aa;return _0x3f1e9a+='_',[{'id':_0x3f1e9a+_0x350ae0(0x178),'text':_0x350ae0(0x17a),'icon':_0x350ae0(0x189),'children':getVoiceChildren(_0x3f1e9a+_0x350ae0(0x178))},{'id':_0x3f1e9a+_0x350ae0(0x179),'text':_0x350ae0(0x167),'icon':_0x350ae0(0x188),'children':getBullChildren(_0x3f1e9a+_0x350ae0(0x179))},{'id':_0x3f1e9a+'chat','text':_0x350ae0(0x15f),'icon':_0x350ae0(0x17d)},{'id':_0x3f1e9a+_0x350ae0(0x16c),'text':_0x350ae0(0x170),'icon':_0x350ae0(0x185)},{'id':_0x3f1e9a+_0x350ae0(0x169),'text':'Openchannel','icon':_0x350ae0(0x180)},{'id':_0x3f1e9a+_0x350ae0(0x17f),'text':_0x350ae0(0x164),'icon':_0x350ae0(0x181)},{'id':_0x3f1e9a+'fax','text':_0x350ae0(0x160),'icon':_0x350ae0(0x16e)},{'id':_0x3f1e9a+_0x350ae0(0x183),'text':_0x350ae0(0x163),'icon':_0x350ae0(0x171)},{'id':_0x3f1e9a+_0x350ae0(0x177),'text':_0x350ae0(0x18a),'icon':'icon\x20s20\x20icon-account-multiple'}];}function getTree(_0x453e6b){var _0x53c9f2=a1040_0x38aa;return[{'id':_0x453e6b?_0x53c9f2(0x18b):'motion','text':(_0x453e6b?_0x53c9f2(0x174):_0x53c9f2(0x168))+'\x20Reports','icon':_0x53c9f2(0x182)+(_0x453e6b?'icon-laptop-chromebook':'icon-cloud'),'state':{'opened':!![],'selected':!![]},'children':getMotionChildren(_0x453e6b?'custom':_0x53c9f2(0x186))}];}exports['motion']=getTree(![]),exports[a1040_0x26938e(0x18b)]=getTree(!![]); \ No newline at end of file diff --git a/server/config/seedDB/trunks.js b/server/config/seedDB/trunks.js index e733cbb..eaf0880 100644 --- a/server/config/seedDB/trunks.js +++ b/server/config/seedDB/trunks.js @@ -1 +1 @@ -const a1041_0x54d4=['app','55xcally55','trunk\x20demo\x20auto\x20generated','Trunks\x20have\x20been\x20created','catch','create','error','demo','Trunk'];(function(_0x1a69c4,_0x4626ea){const _0x54d4ee=function(_0xa495c4){while(--_0xa495c4){_0x1a69c4['push'](_0x1a69c4['shift']());}};_0x54d4ee(++_0x4626ea);}(a1041_0x54d4,0x17e));const a1041_0xa495=function(_0x1a69c4,_0x4626ea){_0x1a69c4=_0x1a69c4-0x158;let _0x54d4ee=a1041_0x54d4[_0x1a69c4];return _0x54d4ee;};const a1041_0x12250b=a1041_0xa495;'use strict';const {db}=require('../../mysqldb'),logger=require('../logger')(a1041_0x12250b(0x15d)),trunks=[{'id':0x1,'name':a1041_0x12250b(0x15b),'secret':a1041_0x12250b(0x15e),'defaultuser':a1041_0x12250b(0x15b),'description':a1041_0x12250b(0x15f)}];exports[a1041_0x12250b(0x159)]=function(){const _0xdfee7=a1041_0x12250b;return db[_0xdfee7(0x15c)]['bulkCreate'](trunks,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x3eb61e=_0xdfee7;logger['info'](_0x3eb61e(0x160));})[_0xdfee7(0x158)](function(){const _0x29dba2=_0xdfee7;logger[_0x29dba2(0x15a)]('Can\x27t\x20create\x20Trunks');});}; \ No newline at end of file +const a1041_0x4f7f=['Trunk','bulkCreate','55xcally55','Can\x27t\x20create\x20Trunks','../logger','../../mysqldb','error','demo','trunk\x20demo\x20auto\x20generated','Trunks\x20have\x20been\x20created','catch','then','app','info'];(function(_0x2b060e,_0x114a07){const _0x4f7f9d=function(_0x1d89d6){while(--_0x1d89d6){_0x2b060e['push'](_0x2b060e['shift']());}};_0x4f7f9d(++_0x114a07);}(a1041_0x4f7f,0x66));const a1041_0x1d89=function(_0x2b060e,_0x114a07){_0x2b060e=_0x2b060e-0x1e2;let _0x4f7f9d=a1041_0x4f7f[_0x2b060e];return _0x4f7f9d;};const a1041_0x2290dd=a1041_0x1d89;'use strict';const {db}=require(a1041_0x2290dd(0x1e3)),logger=require(a1041_0x2290dd(0x1e2))(a1041_0x2290dd(0x1ea)),trunks=[{'id':0x1,'name':a1041_0x2290dd(0x1e5),'secret':a1041_0x2290dd(0x1ee),'defaultuser':'demo','description':a1041_0x2290dd(0x1e6)}];exports['create']=function(){const _0x872736=a1041_0x2290dd;return db[_0x872736(0x1ec)][_0x872736(0x1ed)](trunks,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x872736(0x1e9)](function(){const _0x4b42b1=_0x872736;logger[_0x4b42b1(0x1eb)](_0x4b42b1(0x1e7));})[_0x872736(0x1e8)](function(){const _0x593179=_0x872736;logger[_0x593179(0x1e4)](_0x593179(0x1ef));});}; \ No newline at end of file diff --git a/server/config/seedDB/userProfiles.js b/server/config/seedDB/userProfiles.js index d77ee92..f193da7 100644 --- a/server/config/seedDB/userProfiles.js +++ b/server/config/seedDB/userProfiles.js @@ -1 +1 @@ -const a1042_0x10f7=['create','User\x20Profiles\x20have\x20been\x20created','info','../../mysqldb','Default','Auto\x20generated\x20User\x20Profile','bulkCreate','error','../logger'];(function(_0x5a4ede,_0x20b510){const _0x10f73f=function(_0x5cc9d6){while(--_0x5cc9d6){_0x5a4ede['push'](_0x5a4ede['shift']());}};_0x10f73f(++_0x20b510);}(a1042_0x10f7,0x1dd));const a1042_0x5cc9=function(_0x5a4ede,_0x20b510){_0x5a4ede=_0x5a4ede-0x1db;let _0x10f73f=a1042_0x10f7[_0x5a4ede];return _0x10f73f;};const a1042_0x3777bc=a1042_0x5cc9;'use strict';const {db}=require(a1042_0x3777bc(0x1de)),logger=require(a1042_0x3777bc(0x1e3))('app'),userProfiles=[{'id':0x1,'name':a1042_0x3777bc(0x1df),'crudPermissions':['r','e','d'],'description':a1042_0x3777bc(0x1e0)}];exports[a1042_0x3777bc(0x1db)]=function(){const _0x480ed3=a1042_0x3777bc;return db['UserProfile'][_0x480ed3(0x1e1)](userProfiles,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x142bb7=_0x480ed3;logger[_0x142bb7(0x1dd)](_0x142bb7(0x1dc));})['catch'](function(){const _0x5bdbb3=_0x480ed3;logger[_0x5bdbb3(0x1e2)]('Can\x27t\x20create\x20User\x20Profiles');});}; \ No newline at end of file +const a1042_0x41c4=['then','../logger','bulkCreate','create','info','app','Auto\x20generated\x20User\x20Profile','Can\x27t\x20create\x20User\x20Profiles','error'];(function(_0x93cf92,_0x1d50eb){const _0x41c484=function(_0x1ad16e){while(--_0x1ad16e){_0x93cf92['push'](_0x93cf92['shift']());}};_0x41c484(++_0x1d50eb);}(a1042_0x41c4,0x170));const a1042_0x1ad1=function(_0x93cf92,_0x1d50eb){_0x93cf92=_0x93cf92-0x14b;let _0x41c484=a1042_0x41c4[_0x93cf92];return _0x41c484;};const a1042_0x569202=a1042_0x1ad1;'use strict';const {db}=require('../../mysqldb'),logger=require(a1042_0x569202(0x14d))(a1042_0x569202(0x151)),userProfiles=[{'id':0x1,'name':'Default','crudPermissions':['r','e','d'],'description':a1042_0x569202(0x152)}];exports[a1042_0x569202(0x14f)]=function(){const _0x2ea9d4=a1042_0x569202;return db['UserProfile'][_0x2ea9d4(0x14e)](userProfiles,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x2ea9d4(0x14c)](function(){const _0x53788b=_0x2ea9d4;logger[_0x53788b(0x150)]('User\x20Profiles\x20have\x20been\x20created');})['catch'](function(){const _0x2a1d40=_0x2ea9d4;logger[_0x2a1d40(0x14b)](_0x2a1d40(0x153));});}; \ No newline at end of file diff --git a/server/config/seedDB/users.js b/server/config/seedDB/users.js index 570e85d..9758580 100644 --- a/server/config/seedDB/users.js +++ b/server/config/seedDB/users.js @@ -1 +1 @@ -const a1043_0x4540=['error','then','app','catch','bulkCreate','John\x20Doe','john.doe@xcally.com','admin@xcally.com','Jane\x20Miller','101,102,103,113,110,104,105,106,107,108,109,100,111,114','shuttle55','admin','user\x20auto\x20generated','split','john.doe','password','jane.miller','Can\x27t\x20create\x20Users','Users\x20have\x20been\x20created','agent\x20auto\x20generated','User','../logger','agent'];(function(_0x27e25c,_0x1a61cc){const _0x454090=function(_0x33237a){while(--_0x33237a){_0x27e25c['push'](_0x27e25c['shift']());}};_0x454090(++_0x1a61cc);}(a1043_0x4540,0x1bc));const a1043_0x3323=function(_0x27e25c,_0x1a61cc){_0x27e25c=_0x27e25c-0x1a4;let _0x454090=a1043_0x4540[_0x27e25c];return _0x454090;};const a1043_0x36866c=a1043_0x3323;'use strict';const {db}=require('../../mysqldb'),logger=require(a1043_0x36866c(0x1b2))(a1043_0x36866c(0x1b6)),users=[{'id':0x1,'role':a1043_0x36866c(0x1a8),'name':a1043_0x36866c(0x1a8),'password':a1043_0x36866c(0x1ac),'fullname':'Administrator','email':a1043_0x36866c(0x1a4),'internal':0x3e8,'description':a1043_0x36866c(0x1a9)},{'id':0x2,'role':a1043_0x36866c(0x1b3),'name':a1043_0x36866c(0x1ab),'email':a1043_0x36866c(0x1ba),'password':'shuttle55','fullname':a1043_0x36866c(0x1b9),'internal':0x3e9,'permissions':a1043_0x36866c(0x1a6)[a1043_0x36866c(0x1aa)](','),'description':'agent\x20auto\x20generated'},{'id':0x3,'role':a1043_0x36866c(0x1b3),'name':a1043_0x36866c(0x1ad),'email':'jane.miller@xcally.com','password':a1043_0x36866c(0x1a7),'fullname':a1043_0x36866c(0x1a5),'internal':0x3ea,'permissions':a1043_0x36866c(0x1a6)[a1043_0x36866c(0x1aa)](','),'description':a1043_0x36866c(0x1b0)}];exports['create']=function(){const _0x1be1b0=a1043_0x36866c;return db[_0x1be1b0(0x1b1)][_0x1be1b0(0x1b8)](users,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1be1b0(0x1b5)](function(){const _0x4967d1=_0x1be1b0;logger['info'](_0x4967d1(0x1af));})[_0x1be1b0(0x1b7)](function(_0xee956c){const _0x4f6e90=_0x1be1b0;logger[_0x4f6e90(0x1b4)](_0x4f6e90(0x1ae),_0xee956c);});}; \ No newline at end of file +const a1043_0x410b=['create','agent\x20auto\x20generated','error','password','101,102,103,113,110,104,105,106,107,108,109,100,111,114','shuttle55','info','Jane\x20Miller','app','../logger','agent','User','split','../../mysqldb','bulkCreate','jane.miller','catch','Users\x20have\x20been\x20created','john.doe@xcally.com','admin','jane.miller@xcally.com','Administrator','Can\x27t\x20create\x20Users'];(function(_0x4cc0c1,_0x58c7bf){const _0x410b42=function(_0x4ce9aa){while(--_0x4ce9aa){_0x4cc0c1['push'](_0x4cc0c1['shift']());}};_0x410b42(++_0x58c7bf);}(a1043_0x410b,0xea));const a1043_0x4ce9=function(_0x4cc0c1,_0x58c7bf){_0x4cc0c1=_0x4cc0c1-0x16d;let _0x410b42=a1043_0x410b[_0x4cc0c1];return _0x410b42;};const a1043_0x5c6856=a1043_0x4ce9;'use strict';const {db}=require(a1043_0x5c6856(0x176)),logger=require(a1043_0x5c6856(0x172))(a1043_0x5c6856(0x171)),users=[{'id':0x1,'role':'admin','name':a1043_0x5c6856(0x17c),'password':a1043_0x5c6856(0x183),'fullname':a1043_0x5c6856(0x17e),'email':'admin@xcally.com','internal':0x3e8,'description':'user\x20auto\x20generated'},{'id':0x2,'role':a1043_0x5c6856(0x173),'name':'john.doe','email':a1043_0x5c6856(0x17b),'password':a1043_0x5c6856(0x16e),'fullname':'John\x20Doe','internal':0x3e9,'permissions':a1043_0x5c6856(0x16d)[a1043_0x5c6856(0x175)](','),'description':'agent\x20auto\x20generated'},{'id':0x3,'role':a1043_0x5c6856(0x173),'name':a1043_0x5c6856(0x178),'email':a1043_0x5c6856(0x17d),'password':a1043_0x5c6856(0x16e),'fullname':a1043_0x5c6856(0x170),'internal':0x3ea,'permissions':'101,102,103,113,110,104,105,106,107,108,109,100,111,114'[a1043_0x5c6856(0x175)](','),'description':a1043_0x5c6856(0x181)}];exports[a1043_0x5c6856(0x180)]=function(){const _0x187f8=a1043_0x5c6856;return db[_0x187f8(0x174)][_0x187f8(0x177)](users,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x2f6848=_0x187f8;logger[_0x2f6848(0x16f)](_0x2f6848(0x17a));})[_0x187f8(0x179)](function(_0x2e6b5f){const _0xf331ed=_0x187f8;logger[_0xf331ed(0x182)](_0xf331ed(0x17f),_0x2e6b5f);});}; \ No newline at end of file diff --git a/server/config/seedDB/variables.js b/server/config/seedDB/variables.js index 87a5df0..f0ec175 100644 --- a/server/config/seedDB/variables.js +++ b/server/config/seedDB/variables.js @@ -1 +1 @@ -const a1044_0x39ff=['CHANNEL(language)','CHOICE','variable\x20for\x20rate\x20call\x20auto\x20generated','EMAIL','../logger','variable\x20number\x20of\x20the\x20caller\x20auto\x20generated','variable\x20useful\x20for\x20agent\x20popup\x20auto\x20generated','LASTNAME','FIRSTNAME','create','variable\x20dialed\x20number\x20identifier\x20auto\x20generated','PHONE','Can\x27t\x20create\x20Variables','info','VAR3','DBRESULT','variable\x20select\x20a\x20natural\x20language\x20file\x20when\x20available\x20auto\x20generated','UNIQUEID','then','../../mysqldb','variable\x20auto\x20generated','CALLERID(dnid)','bulkCreate','CALLERID(name)','RATE','variable\x20current\x20call\x20unique\x20identifier\x20auto\x20generated','generic\x20variable\x20auto\x20generated','EXTRAVAR','ORDER','Variable','INPUT','variable\x20for\x20menu\x20auto\x20generated','app','error','variable\x20for\x20order\x20auto\x20generated','catch','VAR2','variable\x20name\x20of\x20the\x20caller\x20auto\x20generated','variable\x20for\x20db\x20query\x20result\x20auto\x20generated','OPTION','ORDERNUM'];(function(_0x521147,_0x45afbd){const _0x39fff0=function(_0x1e3cbd){while(--_0x1e3cbd){_0x521147['push'](_0x521147['shift']());}};_0x39fff0(++_0x45afbd);}(a1044_0x39ff,0x66));const a1044_0x1e3c=function(_0x521147,_0x45afbd){_0x521147=_0x521147-0x1ab;let _0x39fff0=a1044_0x39ff[_0x521147];return _0x39fff0;};const a1044_0x48459d=a1044_0x1e3c;'use strict';const {db}=require(a1044_0x48459d(0x1d3)),logger=require(a1044_0x48459d(0x1c4))(a1044_0x48459d(0x1b7)),variables=[{'id':0x1,'name':a1044_0x48459d(0x1c1),'description':a1044_0x48459d(0x1b6)},{'id':0x2,'name':a1044_0x48459d(0x1bf),'description':a1044_0x48459d(0x1b9)},{'id':0x3,'name':a1044_0x48459d(0x1cf),'description':a1044_0x48459d(0x1bd)},{'id':0x4,'name':a1044_0x48459d(0x1af),'description':a1044_0x48459d(0x1c2)},{'id':0x5,'name':a1044_0x48459d(0x1ac),'description':a1044_0x48459d(0x1ca)},{'id':0x6,'name':a1044_0x48459d(0x1ae),'description':a1044_0x48459d(0x1bc)},{'id':0x7,'name':'CALLERID(num)','description':a1044_0x48459d(0x1c5)},{'id':0x8,'name':a1044_0x48459d(0x1c0),'description':a1044_0x48459d(0x1d0)},{'id':0x9,'name':'COUNTER','description':a1044_0x48459d(0x1ab)},{'id':0xa,'name':a1044_0x48459d(0x1c3),'description':'variable\x20auto\x20generated'},{'id':0xb,'name':a1044_0x48459d(0x1b2),'description':a1044_0x48459d(0x1c6)},{'id':0xc,'name':a1044_0x48459d(0x1c8),'description':'variable\x20auto\x20generated'},{'id':0xd,'name':a1044_0x48459d(0x1c7),'description':a1044_0x48459d(0x1ab)},{'id':0xe,'name':a1044_0x48459d(0x1b5),'description':a1044_0x48459d(0x1ab)},{'id':0xf,'name':a1044_0x48459d(0x1be),'description':a1044_0x48459d(0x1ab)},{'id':0x10,'name':a1044_0x48459d(0x1b3),'description':a1044_0x48459d(0x1ab)},{'id':0x11,'name':a1044_0x48459d(0x1cb),'description':a1044_0x48459d(0x1ab)},{'id':0x12,'name':'RESULT','description':a1044_0x48459d(0x1ab)},{'id':0x13,'name':a1044_0x48459d(0x1d1),'description':a1044_0x48459d(0x1b0)},{'id':0x14,'name':'VAR1','description':a1044_0x48459d(0x1b1)},{'id':0x15,'name':a1044_0x48459d(0x1bb),'description':a1044_0x48459d(0x1b1)},{'id':0x16,'name':a1044_0x48459d(0x1ce),'description':'generic\x20variable\x20auto\x20generated'}];exports[a1044_0x48459d(0x1c9)]=function(){const _0x5004fd=a1044_0x48459d;return db[_0x5004fd(0x1b4)][_0x5004fd(0x1ad)](variables,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x5004fd(0x1d2)](function(){const _0x568611=_0x5004fd;logger[_0x568611(0x1cd)]('Variables\x20have\x20been\x20created');})[_0x5004fd(0x1ba)](function(){const _0x29ed0f=_0x5004fd;logger[_0x29ed0f(0x1b8)](_0x29ed0f(0x1cc));});}; \ No newline at end of file +const a1044_0x159c=['CALLERID(num)','LASTNAME','error','VAR2','VAR1','DBRESULT','variable\x20for\x20rate\x20call\x20auto\x20generated','Variables\x20have\x20been\x20created','catch','variable\x20current\x20call\x20unique\x20identifier\x20auto\x20generated','ORDERNUM','CALLERID(dnid)','variable\x20useful\x20for\x20agent\x20popup\x20auto\x20generated','CHOICE','generic\x20variable\x20auto\x20generated','variable\x20for\x20order\x20auto\x20generated','variable\x20auto\x20generated','RATE','INPUT','UNIQUEID','EXTRAVAR','variable\x20number\x20of\x20the\x20caller\x20auto\x20generated','variable\x20dialed\x20number\x20identifier\x20auto\x20generated','COUNTER','variable\x20select\x20a\x20natural\x20language\x20file\x20when\x20available\x20auto\x20generated','RESULT','then','PHONE','VAR3','Can\x27t\x20create\x20Variables','variable\x20name\x20of\x20the\x20caller\x20auto\x20generated'];(function(_0x3f6756,_0x5541e1){const _0x159c7b=function(_0x5152c0){while(--_0x5152c0){_0x3f6756['push'](_0x3f6756['shift']());}};_0x159c7b(++_0x5541e1);}(a1044_0x159c,0x1d1));const a1044_0x5152=function(_0x3f6756,_0x5541e1){_0x3f6756=_0x3f6756-0x10d;let _0x159c7b=a1044_0x159c[_0x3f6756];return _0x159c7b;};const a1044_0x5bea68=a1044_0x5152;'use strict';const {db}=require('../../mysqldb'),logger=require('../logger')('app'),variables=[{'id':0x1,'name':a1044_0x5bea68(0x11a),'description':'variable\x20for\x20menu\x20auto\x20generated'},{'id':0x2,'name':a1044_0x5bea68(0x117),'description':a1044_0x5bea68(0x11c)},{'id':0x3,'name':a1044_0x5bea68(0x112),'description':'variable\x20for\x20db\x20query\x20result\x20auto\x20generated'},{'id':0x4,'name':a1044_0x5bea68(0x11e),'description':a1044_0x5bea68(0x113)},{'id':0x5,'name':a1044_0x5bea68(0x118),'description':a1044_0x5bea68(0x123)},{'id':0x6,'name':'CALLERID(name)','description':a1044_0x5bea68(0x12b)},{'id':0x7,'name':a1044_0x5bea68(0x10d),'description':a1044_0x5bea68(0x122)},{'id':0x8,'name':'CHANNEL(language)','description':a1044_0x5bea68(0x125)},{'id':0x9,'name':a1044_0x5bea68(0x124),'description':a1044_0x5bea68(0x11d)},{'id':0xa,'name':'EMAIL','description':a1044_0x5bea68(0x11d)},{'id':0xb,'name':a1044_0x5bea68(0x121),'description':a1044_0x5bea68(0x119)},{'id':0xc,'name':'FIRSTNAME','description':a1044_0x5bea68(0x11d)},{'id':0xd,'name':a1044_0x5bea68(0x10e),'description':a1044_0x5bea68(0x11d)},{'id':0xe,'name':a1044_0x5bea68(0x11f),'description':a1044_0x5bea68(0x11d)},{'id':0xf,'name':'OPTION','description':a1044_0x5bea68(0x11d)},{'id':0x10,'name':'ORDER','description':'variable\x20auto\x20generated'},{'id':0x11,'name':a1044_0x5bea68(0x128),'description':a1044_0x5bea68(0x11d)},{'id':0x12,'name':a1044_0x5bea68(0x126),'description':a1044_0x5bea68(0x11d)},{'id':0x13,'name':a1044_0x5bea68(0x120),'description':a1044_0x5bea68(0x116)},{'id':0x14,'name':a1044_0x5bea68(0x111),'description':'generic\x20variable\x20auto\x20generated'},{'id':0x15,'name':a1044_0x5bea68(0x110),'description':a1044_0x5bea68(0x11b)},{'id':0x16,'name':a1044_0x5bea68(0x129),'description':a1044_0x5bea68(0x11b)}];exports['create']=function(){const _0x4b7f28=a1044_0x5bea68;return db['Variable']['bulkCreate'](variables,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x4b7f28(0x127)](function(){const _0x25626d=_0x4b7f28;logger['info'](_0x25626d(0x114));})[_0x4b7f28(0x115)](function(){const _0x4ade70=_0x4b7f28;logger[_0x4ade70(0x10f)](_0x4ade70(0x12a));});}; \ No newline at end of file diff --git a/server/config/seedDB/voiceContexts.js b/server/config/seedDB/voiceContexts.js index f00415a..06d15de 100644 --- a/server/config/seedDB/voiceContexts.js +++ b/server/config/seedDB/voiceContexts.js @@ -1 +1 @@ -const a1045_0x5934=['from-voicemail','exports','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','\x20context','from-sip','\x20have\x20been\x20created','../logger','xcally-mixmonitor-context','app','error','inbound-fax','findOrCreate','info','name','Can\x27t\x20create\x20','VoiceContext','Context\x20','from-voip-provider','../../mysqldb'];(function(_0x1689de,_0x4dcef0){const _0x5934f9=function(_0x25d8ec){while(--_0x25d8ec){_0x1689de['push'](_0x1689de['shift']());}};_0x5934f9(++_0x4dcef0);}(a1045_0x5934,0x10c));const a1045_0x25d8=function(_0x1689de,_0x4dcef0){_0x1689de=_0x1689de-0x1c7;let _0x5934f9=a1045_0x5934[_0x1689de];return _0x5934f9;};const a1045_0x5e64d8=a1045_0x25d8;'use strict';const {db}=require(a1045_0x5e64d8(0x1d7)),logger=require(a1045_0x5e64d8(0x1cb))(a1045_0x5e64d8(0x1cd)),voiceContexts=[{'name':a1045_0x5e64d8(0x1c9),'description':a1045_0x5e64d8(0x1c7),'defaultEntry':!![]},{'name':a1045_0x5e64d8(0x1d6),'description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]},{'name':a1045_0x5e64d8(0x1cf),'description':a1045_0x5e64d8(0x1c7),'defaultEntry':!![]},{'name':'outbound-fax','description':a1045_0x5e64d8(0x1c7),'defaultEntry':!![]},{'name':a1045_0x5e64d8(0x1d8),'description':a1045_0x5e64d8(0x1c7),'defaultEntry':!![]},{'name':a1045_0x5e64d8(0x1cc),'description':a1045_0x5e64d8(0x1c7),'defaultEntry':!![]}];async function create(){const _0x2c1064=a1045_0x5e64d8;for(const _0x302506 of voiceContexts){try{const [,_0x2b153b]=await db[_0x2c1064(0x1d4)][_0x2c1064(0x1d0)]({'where':{'name':_0x302506['name']},'defaults':_0x302506});_0x2b153b&&logger[_0x2c1064(0x1d1)](_0x2c1064(0x1d5)+_0x302506[_0x2c1064(0x1d2)]+_0x2c1064(0x1ca));}catch(_0x220ec6){logger[_0x2c1064(0x1ce)](_0x2c1064(0x1d3)+_0x302506['name']+_0x2c1064(0x1c8),_0x220ec6);}}}module[a1045_0x5e64d8(0x1d9)]['create']=create; \ No newline at end of file +const a1045_0xd230=['info','from-sip','Context\x20','create','\x20context','app','inbound-fax','exports','name','findOrCreate','VoiceContext','xcally-mixmonitor-context','from-voip-provider','outbound-fax','error','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)'];(function(_0x5a6805,_0x17f936){const _0xd230f3=function(_0x54cfe6){while(--_0x54cfe6){_0x5a6805['push'](_0x5a6805['shift']());}};_0xd230f3(++_0x17f936);}(a1045_0xd230,0x163));const a1045_0x54cf=function(_0x5a6805,_0x17f936){_0x5a6805=_0x5a6805-0x77;let _0xd230f3=a1045_0xd230[_0x5a6805];return _0xd230f3;};const a1045_0x4d82fb=a1045_0x54cf;'use strict';const {db}=require('../../mysqldb'),logger=require('../logger')(a1045_0x4d82fb(0x79)),voiceContexts=[{'name':a1045_0x4d82fb(0x85),'description':a1045_0x4d82fb(0x83),'defaultEntry':!![]},{'name':a1045_0x4d82fb(0x80),'description':a1045_0x4d82fb(0x83),'defaultEntry':!![]},{'name':a1045_0x4d82fb(0x7a),'description':a1045_0x4d82fb(0x83),'defaultEntry':!![]},{'name':a1045_0x4d82fb(0x81),'description':a1045_0x4d82fb(0x83),'defaultEntry':!![]},{'name':'from-voicemail','description':a1045_0x4d82fb(0x83),'defaultEntry':!![]},{'name':a1045_0x4d82fb(0x7f),'description':a1045_0x4d82fb(0x83),'defaultEntry':!![]}];async function create(){const _0x52d577=a1045_0x4d82fb;for(const _0xa1d700 of voiceContexts){try{const [,_0x26d2a2]=await db[_0x52d577(0x7e)][_0x52d577(0x7d)]({'where':{'name':_0xa1d700['name']},'defaults':_0xa1d700});_0x26d2a2&&logger[_0x52d577(0x84)](_0x52d577(0x86)+_0xa1d700[_0x52d577(0x7c)]+'\x20have\x20been\x20created');}catch(_0x3e5463){logger[_0x52d577(0x82)]('Can\x27t\x20create\x20'+_0xa1d700[_0x52d577(0x7c)]+_0x52d577(0x78),_0x3e5463);}}}module[a1045_0x4d82fb(0x7b)][a1045_0x4d82fb(0x77)]=create; \ No newline at end of file diff --git a/server/config/seedDB/voiceExtensions.js b/server/config/seedDB/voiceExtensions.js index 6e70870..3e5cbe0 100644 --- a/server/config/seedDB/voiceExtensions.js +++ b/server/config/seedDB/voiceExtensions.js @@ -1 +1 @@ -const a1046_0xcc85=['agi://127.0.0.1/square,Orders','Queue','info','Execif','FAXOPT(modem)=${XMF-MODEM}','../../mysqldb','context','AGI','$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})','6666','bulkCreate','create','6670','outboundrouteid=','FAXOPT(headerinfo)=${XMF-HEADERINFO}','$[\x22${AMDSTATUS}\x22\x20==\x20\x22MACHINE\x22\x20]?14:11','error','catch\x20hangup\x20event\x20auto\x20generated','CDR(type)=inbound','Voice\x20Extensions\x20have\x20been\x20created','${XMF-PATH},d','outbound','forward\x20to\x20CSI\x20IVR\x20auto\x20generated','Hangup','Playback','catch\x20failed\x20event\x20auto\x20generated','CALLERID(all)=${XMD-CALLERID}','Progress','xcally-motion-preview','${EXTEN:20},xX','agi','agi://127.0.0.1/square,CSI','6668','lodash','agi://127.0.0.1/square,AgentManagement','appdata','xcally-mixmonitor-context','${XMD-AMDINITIALSILENCE},${XMD-AMDGREETING},${XMD-AMDAFTERGREETINGSILENCE},${XMD-AMDTOTALANALYSISTIME},${XMD-AMDMINWORDLENGTH},${XMD-AMDBETWEENWORDSSILENCE},${XMD-AMDMAXIMUMNUMBEROFWORDS},${XMD-AMDSILENCETHRESHOLD},${XMD-AMDMAXIMUMWORDLENGTH}','FAXOPT(maxrate)=${XMF-MAXRATE}','6000','createAlways','SendFax','length','600','../logger','GotoIf','xcally-motion-fax','_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].','destroy','CDR(type)=outbound','priority','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','from-sip','demo-echodone','MixMonitor','_XCALLY_MIXMONITOR_FORMAT=wav','outboundrouteid','Sales,xX,,,300,,,,,','demo\x20outbound\x20calls\x20auto\x20generated','queue','AMD','internal','forward\x20to\x20Auto\x20Attendant\x20IVR\x20auto\x20generated','defaults','Dial','system','Can\x27t\x20create\x20Voice\x20Extensions','forward\x20to\x20Support\x20queue\x20auto\x20generated','agi://127.0.0.1/square,Survey','$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})','type','MONITOR_OPTIONS=ab','catch','custom','Return','silence/1','XCALLY-MOTION-PROGRESS=0','Answer','demo-echotest','$[\x22${AMDSTATUS}\x22\x20==\x20\x22HUMAN\x22\x20]?11:9','agi://127.0.0.1/square,AutoAttendant','$[\x22${XMD-AMD}\x22\x20!=\x20\x22NONE\x22\x20]?5:11','sequelize','FAXOPT(t38timeout)=${XMF-T38TIMEOUT}','$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})','failed','CDR(type)=internal','forward\x20to\x20Sales\x20queue\x20auto\x20generated','${XCALLY_MIXMONITOR_UNIQUEID}.${XCALLY_MIXMONITOR_FORMAT},ab','then','Set','demo-congrats','catch\x20all\x20inbound\x20calls\x20auto\x20generated','exten','_X.','CDR(type)=dialer','dialer\x20extensions\x20auto\x20generated'];(function(_0x1ea2b1,_0x38757c){const _0xcc853e=function(_0x4925c2){while(--_0x4925c2){_0x1ea2b1['push'](_0x1ea2b1['shift']());}};_0xcc853e(++_0x38757c);}(a1046_0xcc85,0x7c));const a1046_0x4925=function(_0x1ea2b1,_0x38757c){_0x1ea2b1=_0x1ea2b1-0x118;let _0xcc853e=a1046_0xcc85[_0x1ea2b1];return _0xcc853e;};const a1046_0x301dc3=a1046_0x4925;'use strict';const _=require(a1046_0x301dc3(0x11e)),{db}=require(a1046_0x301dc3(0x163)),{Op}=require(a1046_0x301dc3(0x14f)),logger=require(a1046_0x301dc3(0x129))('app'),applications={0x258:[{'app':'Set','appdata':a1046_0x301dc3(0x153)},{'app':a1046_0x301dc3(0x14a)},{'app':'Playback','appdata':a1046_0x301dc3(0x14b),'isApp':!![]},{'app':'Echo','isApp':!![]},{'app':a1046_0x301dc3(0x176),'appdata':a1046_0x301dc3(0x132),'isApp':!![]},{'app':'Hangup'}],0x1770:[{'app':'Set','appdata':'CDR(type)=internal'},{'app':a1046_0x301dc3(0x14a)},{'app':a1046_0x301dc3(0x15f),'appdata':'Support,xX,,,300,,,,,','appType':a1046_0x301dc3(0x138),'isApp':!![]},{'app':a1046_0x301dc3(0x175)}],0x1771:[{'app':'Set','appdata':a1046_0x301dc3(0x153)},{'app':'Answer'},{'app':a1046_0x301dc3(0x15f),'appdata':a1046_0x301dc3(0x136),'appType':a1046_0x301dc3(0x138),'isApp':!![]},{'app':a1046_0x301dc3(0x175)}],0x1a0a:[{'app':a1046_0x301dc3(0x157),'appdata':a1046_0x301dc3(0x153)},{'app':'AGI','appdata':a1046_0x301dc3(0x14d),'appType':'agi','isApp':!![]},{'app':'Hangup'}],0x1a0b:[{'app':a1046_0x301dc3(0x157),'appdata':a1046_0x301dc3(0x153)},{'app':a1046_0x301dc3(0x165),'appdata':a1046_0x301dc3(0x15e),'appType':a1046_0x301dc3(0x11b),'isApp':!![]},{'app':a1046_0x301dc3(0x175)}],0x1a0c:[{'app':a1046_0x301dc3(0x157),'appdata':a1046_0x301dc3(0x153)},{'app':a1046_0x301dc3(0x165),'appdata':a1046_0x301dc3(0x11c),'appType':a1046_0x301dc3(0x11b),'isApp':!![]},{'app':'Hangup'}],0x1a0d:[{'app':a1046_0x301dc3(0x157),'appdata':'CDR(type)=internal'},{'app':a1046_0x301dc3(0x165),'appdata':a1046_0x301dc3(0x141),'appType':a1046_0x301dc3(0x11b),'isApp':!![]},{'app':a1046_0x301dc3(0x175)}],0x1a0e:[{'app':a1046_0x301dc3(0x157),'appdata':a1046_0x301dc3(0x153)},{'app':a1046_0x301dc3(0x165),'appdata':a1046_0x301dc3(0x11f),'appType':a1046_0x301dc3(0x11b),'isApp':!![]},{'app':a1046_0x301dc3(0x175)}],'xcally-motion-dialer':[{'app':a1046_0x301dc3(0x157),'appdata':a1046_0x301dc3(0x15c)},{'app':'Set','appdata':'CALLERID(all)=${XMD-CALLERID}'},{'app':a1046_0x301dc3(0x12a),'appdata':a1046_0x301dc3(0x14e)},{'app':a1046_0x301dc3(0x14a),'appdata':''},{'app':'Background','appdata':a1046_0x301dc3(0x148)},{'app':a1046_0x301dc3(0x139),'appdata':a1046_0x301dc3(0x122)},{'app':a1046_0x301dc3(0x12a),'appdata':a1046_0x301dc3(0x14c)},{'app':a1046_0x301dc3(0x12a),'appdata':'$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?11:10'},{'app':a1046_0x301dc3(0x12a),'appdata':a1046_0x301dc3(0x16d)},{'app':a1046_0x301dc3(0x161),'appdata':a1046_0x301dc3(0x151)},{'app':a1046_0x301dc3(0x161),'appdata':a1046_0x301dc3(0x142)},{'app':a1046_0x301dc3(0x161),'appdata':a1046_0x301dc3(0x166)},{'app':a1046_0x301dc3(0x175)}],'xcally-motion-fax':[{'app':'Set','appdata':'CDR(type)=outbound-fax'},{'app':'Wait','appdata':'6'},{'app':a1046_0x301dc3(0x157),'appdata':'FAXOPT(ecm)=${XMF-ECM}'},{'app':a1046_0x301dc3(0x157),'appdata':a1046_0x301dc3(0x16c)},{'app':a1046_0x301dc3(0x157),'appdata':'FAXOPT(localstationid)=${XMF-LOCALSTATIONID}'},{'app':a1046_0x301dc3(0x157),'appdata':a1046_0x301dc3(0x123)},{'app':a1046_0x301dc3(0x157),'appdata':'FAXOPT(minrate)=${XMF-MINRATE}'},{'app':'Set','appdata':a1046_0x301dc3(0x162)},{'app':a1046_0x301dc3(0x157),'appdata':a1046_0x301dc3(0x150)},{'app':a1046_0x301dc3(0x126),'appdata':a1046_0x301dc3(0x172)}],'xcally-motion-preview':[{'app':'Set','appdata':a1046_0x301dc3(0x15c)},{'app':a1046_0x301dc3(0x157),'appdata':a1046_0x301dc3(0x178)},{'app':a1046_0x301dc3(0x161),'appdata':a1046_0x301dc3(0x151)},{'app':a1046_0x301dc3(0x13d),'appdata':'${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}'},{'app':a1046_0x301dc3(0x161),'appdata':'$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})'},{'app':a1046_0x301dc3(0x175)}],'_.':[{'app':a1046_0x301dc3(0x157),'appdata':a1046_0x301dc3(0x12e)},{'app':'Set','appdata':'XCALLY-MOTION-ANSWER=0'},{'app':'Set','appdata':a1046_0x301dc3(0x149)},{'app':a1046_0x301dc3(0x157),'appdata':a1046_0x301dc3(0x144)},{'app':a1046_0x301dc3(0x157),'outboundrouteid':!![]},{'app':a1046_0x301dc3(0x157),'appdata':a1046_0x301dc3(0x130)},{'app':a1046_0x301dc3(0x157),'appdata':a1046_0x301dc3(0x134)},{'app':a1046_0x301dc3(0x176),'appdata':a1046_0x301dc3(0x158),'appType':a1046_0x301dc3(0x146),'isApp':!![]},{'app':'Hangup'}],'_X.':[{'app':a1046_0x301dc3(0x157),'appdata':a1046_0x301dc3(0x170)},{'app':a1046_0x301dc3(0x14a)},{'app':a1046_0x301dc3(0x176),'appdata':a1046_0x301dc3(0x158),'isApp':!![]},{'app':a1046_0x301dc3(0x175)}],'h':[{'app':a1046_0x301dc3(0x175)}],'failed':[{'app':a1046_0x301dc3(0x175)}]},voiceExtensions=[{'type':a1046_0x301dc3(0x13a),'context':'from-sip','exten':a1046_0x301dc3(0x128),'description':'echo\x20test\x20demo\x20auto\x20generated'},{'type':a1046_0x301dc3(0x13a),'context':a1046_0x301dc3(0x131),'exten':a1046_0x301dc3(0x124),'description':a1046_0x301dc3(0x140)},{'type':a1046_0x301dc3(0x13a),'context':a1046_0x301dc3(0x131),'exten':'6001','description':a1046_0x301dc3(0x154)},{'type':a1046_0x301dc3(0x13a),'context':'from-sip','exten':a1046_0x301dc3(0x167),'description':a1046_0x301dc3(0x13b)},{'type':a1046_0x301dc3(0x13a),'context':a1046_0x301dc3(0x131),'exten':'6667','description':'forward\x20to\x20Orders\x20IVR\x20auto\x20generated'},{'type':a1046_0x301dc3(0x13a),'context':a1046_0x301dc3(0x131),'exten':a1046_0x301dc3(0x11d),'description':a1046_0x301dc3(0x174)},{'type':'internal','context':a1046_0x301dc3(0x131),'exten':'6669','description':'forward\x20to\x20Survey\x20IVR\x20auto\x20generated'},{'type':'internal','context':a1046_0x301dc3(0x131),'exten':a1046_0x301dc3(0x16a),'description':'forward\x20to\x20Agent\x20Management\x20IVR\x20auto\x20generated'},{'type':'system','context':a1046_0x301dc3(0x131),'exten':'xcally-motion-dialer','description':a1046_0x301dc3(0x15d)},{'type':a1046_0x301dc3(0x13e),'context':a1046_0x301dc3(0x131),'exten':a1046_0x301dc3(0x12b),'description':'fax\x20extensions\x20auto\x20generated'},{'type':a1046_0x301dc3(0x13e),'context':a1046_0x301dc3(0x131),'exten':a1046_0x301dc3(0x119),'description':a1046_0x301dc3(0x15d)},{'type':a1046_0x301dc3(0x173),'context':a1046_0x301dc3(0x131),'exten':'_.','description':a1046_0x301dc3(0x137)},{'type':'inbound','context':'from-voip-provider','exten':a1046_0x301dc3(0x15b),'description':a1046_0x301dc3(0x159)},{'type':a1046_0x301dc3(0x13e),'context':a1046_0x301dc3(0x131),'exten':'h','description':a1046_0x301dc3(0x16f)},{'type':a1046_0x301dc3(0x13e),'context':a1046_0x301dc3(0x131),'exten':a1046_0x301dc3(0x152),'description':a1046_0x301dc3(0x177)}],applicationsAlways={'s':[{'app':a1046_0x301dc3(0x133),'appdata':a1046_0x301dc3(0x155)},{'app':a1046_0x301dc3(0x147)}],'_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].':[{'app':a1046_0x301dc3(0x118)},{'app':a1046_0x301dc3(0x15f),'appdata':a1046_0x301dc3(0x11a)}]},voiceExtensionsAlways=[{'type':'system','context':a1046_0x301dc3(0x121),'exten':'s'},{'type':'system','context':a1046_0x301dc3(0x131),'exten':a1046_0x301dc3(0x12c)}];function createExtensions(_0x21d79d,_0x1673d9){const _0x292730=a1046_0x301dc3;return db['VoiceExtension'][_0x292730(0x168)](_0x21d79d,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x292730(0x156)](function(_0x5713c5){const _0x337f26=_0x292730;for(let _0x39b558=0x0;_0x39b558<_0x5713c5['length'];_0x39b558+=0x1){if(_0x1673d9[_0x5713c5[_0x39b558][_0x337f26(0x15a)]])for(let _0x1e9aa0=0x0;_0x1e9aa0<_0x1673d9[_0x5713c5[_0x39b558][_0x337f26(0x15a)]][_0x337f26(0x127)];_0x1e9aa0+=0x1){_0x1673d9[_0x5713c5[_0x39b558]['exten']][_0x1e9aa0]['outboundrouteid']&&(_0x1673d9[_0x5713c5[_0x39b558]['exten']][_0x1e9aa0][_0x337f26(0x120)]=_0x337f26(0x16b)+_0x5713c5[_0x39b558]['id'],delete _0x1673d9[_0x5713c5[_0x39b558][_0x337f26(0x15a)]][_0x1e9aa0][_0x337f26(0x135)]),_0x1673d9[_0x5713c5[_0x39b558][_0x337f26(0x15a)]][_0x1e9aa0]=_[_0x337f26(0x13c)](_0x1673d9[_0x5713c5[_0x39b558]['exten']][_0x1e9aa0],{'isApp':![],'appType':_0x337f26(0x146),'type':_0x5713c5[_0x39b558][_0x337f26(0x143)],'context':_0x5713c5[_0x39b558][_0x337f26(0x164)],'exten':_0x5713c5[_0x39b558][_0x337f26(0x15a)],'priority':parseInt(_0x5713c5[_0x39b558][_0x337f26(0x12f)],0xa)+0x1+_0x1e9aa0,'description':_0x5713c5[_0x39b558]['description'],'VoiceExtensionId':_0x5713c5[_0x39b558]['id']}),db['VoiceExtension'][_0x337f26(0x169)](_0x1673d9[_0x5713c5[_0x39b558][_0x337f26(0x15a)]][_0x1e9aa0]);}}})[_0x292730(0x156)](function(){const _0x169e20=_0x292730;logger[_0x169e20(0x160)](_0x169e20(0x171));})[_0x292730(0x145)](function(_0x47aa48){const _0xb02b42=_0x292730;logger[_0xb02b42(0x16e)]('Can\x27t\x20create\x20Voice\x20Extensions',_0x47aa48);});}exports[a1046_0x301dc3(0x169)]=function(){createExtensions(voiceExtensions,applications);},exports[a1046_0x301dc3(0x125)]=function(){const _0x4e0930=a1046_0x301dc3;return db['VoiceExtension'][_0x4e0930(0x12d)]({'where':{[Op['or']]:voiceExtensionsAlways}})[_0x4e0930(0x156)](function(){createExtensions(voiceExtensionsAlways,applicationsAlways);})['catch'](function(_0x459170){const _0x43c3d7=_0x4e0930;logger[_0x43c3d7(0x16e)](_0x43c3d7(0x13f),_0x459170);});}; \ No newline at end of file +const a1046_0x1448=['type','6670','Can\x27t\x20create\x20Voice\x20Extensions','GotoIf','bulkCreate','Background','FAXOPT(minrate)=${XMF-MINRATE}','length','VoiceExtension','dialer\x20extensions\x20auto\x20generated','outbound','outboundrouteid=','AMD','demo-congrats','catch\x20all\x20inbound\x20calls\x20auto\x20generated','_X.','6666','FAXOPT(modem)=${XMF-MODEM}','Playback','6001','MONITOR_OPTIONS=ab','FAXOPT(maxrate)=${XMF-MAXRATE}','forward\x20to\x20Support\x20queue\x20auto\x20generated','internal','Execif','$[\x22${XMD-AMD}\x22\x20!=\x20\x22NONE\x22\x20]?5:11','${EXTEN:20},xX','description','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','echo\x20test\x20demo\x20auto\x20generated','Answer','catch\x20hangup\x20event\x20auto\x20generated','_XCALLY_MIXMONITOR_FORMAT=wav','6669','FAXOPT(t38timeout)=${XMF-T38TIMEOUT}','../logger','create','xcally-motion-dialer','Echo','from-sip','agi','info','CDR(type)=inbound','Hangup','XCALLY-MOTION-PROGRESS=0','${XCALLY_MIXMONITOR_UNIQUEID}.${XCALLY_MIXMONITOR_FORMAT},ab','forward\x20to\x20Agent\x20Management\x20IVR\x20auto\x20generated','6667','FAXOPT(localstationid)=${XMF-LOCALSTATIONID}','FAXOPT(ecm)=${XMF-ECM}','then','forward\x20to\x20Sales\x20queue\x20auto\x20generated','error','MixMonitor','CDR(type)=dialer','600','exten','Voice\x20Extensions\x20have\x20been\x20created','AGI','XCALLY-MOTION-ANSWER=0','agi://127.0.0.1/square,AgentManagement','custom','lodash','FAXOPT(headerinfo)=${XMF-HEADERINFO}','$[\x22${AMDSTATUS}\x22\x20==\x20\x22HUMAN\x22\x20]?11:9','forward\x20to\x20CSI\x20IVR\x20auto\x20generated','Wait','outboundrouteid','Queue','SendFax','$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})','createAlways','demo\x20outbound\x20calls\x20auto\x20generated','forward\x20to\x20Auto\x20Attendant\x20IVR\x20auto\x20generated','defaults','catch','CDR(type)=internal','from-voip-provider','forward\x20to\x20Orders\x20IVR\x20auto\x20generated','xcally-mixmonitor-context','agi://127.0.0.1/square,Survey','CDR(type)=outbound-fax','silence/1','6000','queue','$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})','destroy','$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})','system','CDR(type)=outbound','sequelize','xcally-motion-fax','Set','CALLERID(all)=${XMD-CALLERID}'];(function(_0x1d77b3,_0x18b1c7){const _0x1448c2=function(_0x594c2c){while(--_0x594c2c){_0x1d77b3['push'](_0x1d77b3['shift']());}};_0x1448c2(++_0x18b1c7);}(a1046_0x1448,0x1eb));const a1046_0x594c=function(_0x1d77b3,_0x18b1c7){_0x1d77b3=_0x1d77b3-0x1d0;let _0x1448c2=a1046_0x1448[_0x1d77b3];return _0x1448c2;};const a1046_0x46c911=a1046_0x594c;'use strict';const _=require(a1046_0x46c911(0x1f9)),{db}=require('../../mysqldb'),{Op}=require(a1046_0x46c911(0x215)),logger=require(a1046_0x46c911(0x1de))('app'),applications={0x258:[{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x207)},{'app':a1046_0x46c911(0x1d9)},{'app':'Playback','appdata':'demo-echotest','isApp':!![]},{'app':a1046_0x46c911(0x1e1),'isApp':!![]},{'app':a1046_0x46c911(0x22b),'appdata':'demo-echodone','isApp':!![]},{'app':a1046_0x46c911(0x1e6)}],0x1770:[{'app':a1046_0x46c911(0x217),'appdata':'CDR(type)=internal'},{'app':'Answer'},{'app':a1046_0x46c911(0x1ff),'appdata':'Support,xX,,,300,,,,,','appType':a1046_0x46c911(0x20f),'isApp':!![]},{'app':a1046_0x46c911(0x1e6)}],0x1771:[{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x207)},{'app':a1046_0x46c911(0x1d9)},{'app':'Queue','appdata':'Sales,xX,,,300,,,,,','appType':a1046_0x46c911(0x20f),'isApp':!![]},{'app':'Hangup'}],0x1a0a:[{'app':a1046_0x46c911(0x217),'appdata':'CDR(type)=internal'},{'app':a1046_0x46c911(0x1f5),'appdata':'agi://127.0.0.1/square,AutoAttendant','appType':'agi','isApp':!![]},{'app':a1046_0x46c911(0x1e6)}],0x1a0b:[{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x207)},{'app':a1046_0x46c911(0x1f5),'appdata':'agi://127.0.0.1/square,Orders','appType':a1046_0x46c911(0x1e3),'isApp':!![]},{'app':a1046_0x46c911(0x1e6)}],0x1a0c:[{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x207)},{'app':a1046_0x46c911(0x1f5),'appdata':'agi://127.0.0.1/square,CSI','appType':'agi','isApp':!![]},{'app':a1046_0x46c911(0x1e6)}],0x1a0d:[{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x207)},{'app':a1046_0x46c911(0x1f5),'appdata':a1046_0x46c911(0x20b),'appType':a1046_0x46c911(0x1e3),'isApp':!![]},{'app':a1046_0x46c911(0x1e6)}],0x1a0e:[{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x207)},{'app':'AGI','appdata':a1046_0x46c911(0x1f7),'appType':a1046_0x46c911(0x1e3),'isApp':!![]},{'app':a1046_0x46c911(0x1e6)}],'xcally-motion-dialer':[{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x1f1)},{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x218)},{'app':a1046_0x46c911(0x21c),'appdata':a1046_0x46c911(0x1d4)},{'app':a1046_0x46c911(0x1d9),'appdata':''},{'app':a1046_0x46c911(0x21e),'appdata':a1046_0x46c911(0x20d)},{'app':a1046_0x46c911(0x225),'appdata':'${XMD-AMDINITIALSILENCE},${XMD-AMDGREETING},${XMD-AMDAFTERGREETINGSILENCE},${XMD-AMDTOTALANALYSISTIME},${XMD-AMDMINWORDLENGTH},${XMD-AMDBETWEENWORDSSILENCE},${XMD-AMDMAXIMUMNUMBEROFWORDS},${XMD-AMDSILENCETHRESHOLD},${XMD-AMDMAXIMUMWORDLENGTH}'},{'app':a1046_0x46c911(0x21c),'appdata':a1046_0x46c911(0x1fb)},{'app':'GotoIf','appdata':'$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?11:10'},{'app':a1046_0x46c911(0x21c),'appdata':'$[\x22${AMDSTATUS}\x22\x20==\x20\x22MACHINE\x22\x20]?14:11'},{'app':a1046_0x46c911(0x1d3),'appdata':a1046_0x46c911(0x201)},{'app':a1046_0x46c911(0x1d3),'appdata':a1046_0x46c911(0x210)},{'app':a1046_0x46c911(0x1d3),'appdata':a1046_0x46c911(0x212)},{'app':'Hangup'}],'xcally-motion-fax':[{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x20c)},{'app':a1046_0x46c911(0x1fd),'appdata':'6'},{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x1ec)},{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x1fa)},{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x1eb)},{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x1d0)},{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x21f)},{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x22a)},{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x1dd)},{'app':a1046_0x46c911(0x200),'appdata':'${XMF-PATH},d'}],'xcally-motion-preview':[{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x1f1)},{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x218)},{'app':a1046_0x46c911(0x1d3),'appdata':a1046_0x46c911(0x201)},{'app':'Dial','appdata':'${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}'},{'app':a1046_0x46c911(0x1d3),'appdata':a1046_0x46c911(0x212)},{'app':a1046_0x46c911(0x1e6)}],'_.':[{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x214)},{'app':'Set','appdata':a1046_0x46c911(0x1f6)},{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x1e7)},{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x22d)},{'app':'Set','outboundrouteid':!![]},{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x1d7)},{'app':'Set','appdata':a1046_0x46c911(0x1db)},{'app':'Playback','appdata':a1046_0x46c911(0x226),'appType':a1046_0x46c911(0x1f8),'isApp':!![]},{'app':'Hangup'}],'_X.':[{'app':a1046_0x46c911(0x217),'appdata':a1046_0x46c911(0x1e5)},{'app':'Answer'},{'app':'Playback','appdata':'demo-congrats','isApp':!![]},{'app':a1046_0x46c911(0x1e6)}],'h':[{'app':'Hangup'}],'failed':[{'app':a1046_0x46c911(0x1e6)}]},voiceExtensions=[{'type':'internal','context':'from-sip','exten':a1046_0x46c911(0x1f2),'description':a1046_0x46c911(0x1d8)},{'type':'internal','context':a1046_0x46c911(0x1e2),'exten':a1046_0x46c911(0x20e),'description':a1046_0x46c911(0x1d1)},{'type':a1046_0x46c911(0x1d2),'context':a1046_0x46c911(0x1e2),'exten':a1046_0x46c911(0x22c),'description':a1046_0x46c911(0x1ee)},{'type':a1046_0x46c911(0x1d2),'context':'from-sip','exten':a1046_0x46c911(0x229),'description':a1046_0x46c911(0x204)},{'type':a1046_0x46c911(0x1d2),'context':'from-sip','exten':a1046_0x46c911(0x1ea),'description':a1046_0x46c911(0x209)},{'type':a1046_0x46c911(0x1d2),'context':a1046_0x46c911(0x1e2),'exten':'6668','description':a1046_0x46c911(0x1fc)},{'type':'internal','context':a1046_0x46c911(0x1e2),'exten':a1046_0x46c911(0x1dc),'description':'forward\x20to\x20Survey\x20IVR\x20auto\x20generated'},{'type':a1046_0x46c911(0x1d2),'context':a1046_0x46c911(0x1e2),'exten':a1046_0x46c911(0x21a),'description':a1046_0x46c911(0x1e9)},{'type':a1046_0x46c911(0x213),'context':a1046_0x46c911(0x1e2),'exten':a1046_0x46c911(0x1e0),'description':a1046_0x46c911(0x222)},{'type':'system','context':a1046_0x46c911(0x1e2),'exten':a1046_0x46c911(0x216),'description':'fax\x20extensions\x20auto\x20generated'},{'type':a1046_0x46c911(0x213),'context':a1046_0x46c911(0x1e2),'exten':'xcally-motion-preview','description':a1046_0x46c911(0x222)},{'type':a1046_0x46c911(0x223),'context':'from-sip','exten':'_.','description':a1046_0x46c911(0x203)},{'type':'inbound','context':a1046_0x46c911(0x208),'exten':a1046_0x46c911(0x228),'description':a1046_0x46c911(0x227)},{'type':a1046_0x46c911(0x213),'context':a1046_0x46c911(0x1e2),'exten':'h','description':a1046_0x46c911(0x1da)},{'type':a1046_0x46c911(0x213),'context':a1046_0x46c911(0x1e2),'exten':'failed','description':'catch\x20failed\x20event\x20auto\x20generated'}],applicationsAlways={'s':[{'app':a1046_0x46c911(0x1f0),'appdata':a1046_0x46c911(0x1e8)},{'app':'Return'}],'_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].':[{'app':'Progress'},{'app':a1046_0x46c911(0x1ff),'appdata':a1046_0x46c911(0x1d5)}]},voiceExtensionsAlways=[{'type':a1046_0x46c911(0x213),'context':a1046_0x46c911(0x20a),'exten':'s'},{'type':a1046_0x46c911(0x213),'context':a1046_0x46c911(0x1e2),'exten':'_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].'}];function createExtensions(_0x6032d2,_0x5ce38d){const _0x3d4d05=a1046_0x46c911;return db[_0x3d4d05(0x221)][_0x3d4d05(0x21d)](_0x6032d2,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(_0x1fb2ac){const _0x194bb0=_0x3d4d05;for(let _0x962dcd=0x0;_0x962dcd<_0x1fb2ac[_0x194bb0(0x220)];_0x962dcd+=0x1){if(_0x5ce38d[_0x1fb2ac[_0x962dcd][_0x194bb0(0x1f3)]])for(let _0xa94352=0x0;_0xa94352<_0x5ce38d[_0x1fb2ac[_0x962dcd][_0x194bb0(0x1f3)]][_0x194bb0(0x220)];_0xa94352+=0x1){_0x5ce38d[_0x1fb2ac[_0x962dcd]['exten']][_0xa94352][_0x194bb0(0x1fe)]&&(_0x5ce38d[_0x1fb2ac[_0x962dcd][_0x194bb0(0x1f3)]][_0xa94352]['appdata']=_0x194bb0(0x224)+_0x1fb2ac[_0x962dcd]['id'],delete _0x5ce38d[_0x1fb2ac[_0x962dcd][_0x194bb0(0x1f3)]][_0xa94352][_0x194bb0(0x1fe)]),_0x5ce38d[_0x1fb2ac[_0x962dcd][_0x194bb0(0x1f3)]][_0xa94352]=_[_0x194bb0(0x205)](_0x5ce38d[_0x1fb2ac[_0x962dcd][_0x194bb0(0x1f3)]][_0xa94352],{'isApp':![],'appType':_0x194bb0(0x1f8),'type':_0x1fb2ac[_0x962dcd][_0x194bb0(0x219)],'context':_0x1fb2ac[_0x962dcd]['context'],'exten':_0x1fb2ac[_0x962dcd][_0x194bb0(0x1f3)],'priority':parseInt(_0x1fb2ac[_0x962dcd]['priority'],0xa)+0x1+_0xa94352,'description':_0x1fb2ac[_0x962dcd][_0x194bb0(0x1d6)],'VoiceExtensionId':_0x1fb2ac[_0x962dcd]['id']}),db[_0x194bb0(0x221)][_0x194bb0(0x1df)](_0x5ce38d[_0x1fb2ac[_0x962dcd]['exten']][_0xa94352]);}}})[_0x3d4d05(0x1ed)](function(){const _0x40e07a=_0x3d4d05;logger[_0x40e07a(0x1e4)](_0x40e07a(0x1f4));})[_0x3d4d05(0x206)](function(_0x4999b2){const _0x2e69fc=_0x3d4d05;logger[_0x2e69fc(0x1ef)]('Can\x27t\x20create\x20Voice\x20Extensions',_0x4999b2);});}exports['create']=function(){createExtensions(voiceExtensions,applications);},exports[a1046_0x46c911(0x202)]=function(){const _0x11208f=a1046_0x46c911;return db[_0x11208f(0x221)][_0x11208f(0x211)]({'where':{[Op['or']]:voiceExtensionsAlways}})[_0x11208f(0x1ed)](function(){createExtensions(voiceExtensionsAlways,applicationsAlways);})[_0x11208f(0x206)](function(_0x3cfc3d){const _0xae1dd2=_0x11208f;logger['error'](_0xae1dd2(0x21b),_0x3cfc3d);});}; \ No newline at end of file diff --git a/server/config/seedDB/voiceMusicOnHold.js b/server/config/seedDB/voiceMusicOnHold.js index 0912aba..c1d67bc 100644 --- a/server/config/seedDB/voiceMusicOnHold.js +++ b/server/config/seedDB/voiceMusicOnHold.js @@ -1 +1 @@ -const a1047_0x142a=['wait\x20moh\x20auto\x20generated','then','default','noice\x20moh\x20auto\x20generated','Music\x20on\x20hold\x20have\x20been\x20created','error','app','../../mysqldb','default\x20moh\x20auto\x20generated','wav','/var/opt/motion2/server/files/moh/wait/','Can\x27t\x20create\x20Music\x20on\x20hold','random','VoiceMusicOnHold','wait','noice','bulkCreate','files','/var/lib/asterisk/moh/','info'];(function(_0xedb61b,_0x3dcef3){const _0x142ac0=function(_0x2e5136){while(--_0x2e5136){_0xedb61b['push'](_0xedb61b['shift']());}};_0x142ac0(++_0x3dcef3);}(a1047_0x142a,0x130));const a1047_0x2e51=function(_0xedb61b,_0x3dcef3){_0xedb61b=_0xedb61b-0x10e;let _0x142ac0=a1047_0x142a[_0xedb61b];return _0x142ac0;};const a1047_0x186539=a1047_0x2e51;'use strict';const {db}=require(a1047_0x186539(0x111)),logger=require('../logger')(a1047_0x186539(0x110)),voiceMusicOnHold=[{'id':0x1,'name':a1047_0x186539(0x120),'directory':a1047_0x186539(0x11c),'mode':a1047_0x186539(0x11b),'sort':a1047_0x186539(0x116),'format':'wav','defaultEntry':!![],'description':a1047_0x186539(0x112)},{'id':0x2,'name':a1047_0x186539(0x119),'directory':'/var/opt/motion2/server/files/moh/noice/','mode':'files','sort':a1047_0x186539(0x116),'format':a1047_0x186539(0x113),'defaultEntry':!![],'description':a1047_0x186539(0x121)},{'id':0x3,'name':a1047_0x186539(0x118),'directory':a1047_0x186539(0x114),'mode':a1047_0x186539(0x11b),'sort':a1047_0x186539(0x116),'format':a1047_0x186539(0x113),'defaultEntry':!![],'description':a1047_0x186539(0x11e)}];exports['create']=function(){const _0x56aa7e=a1047_0x186539;return db[_0x56aa7e(0x117)][_0x56aa7e(0x11a)](voiceMusicOnHold,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x56aa7e(0x11f)](function(){const _0x343d0f=_0x56aa7e;logger[_0x343d0f(0x11d)](_0x343d0f(0x10e));})['catch'](function(){const _0x562b3b=_0x56aa7e;logger[_0x562b3b(0x10f)](_0x562b3b(0x115));});}; \ No newline at end of file +const a1047_0x3c59=['wait\x20moh\x20auto\x20generated','info','default','../../mysqldb','bulkCreate','noice','Music\x20on\x20hold\x20have\x20been\x20created','files','/var/opt/motion2/server/files/moh/noice/','random','wait','VoiceMusicOnHold','error','wav','catch','default\x20moh\x20auto\x20generated','../logger'];(function(_0x2f9e0f,_0x701207){const _0x3c5965=function(_0x404650){while(--_0x404650){_0x2f9e0f['push'](_0x2f9e0f['shift']());}};_0x3c5965(++_0x701207);}(a1047_0x3c59,0x10d));const a1047_0x4046=function(_0x2f9e0f,_0x701207){_0x2f9e0f=_0x2f9e0f-0xbd;let _0x3c5965=a1047_0x3c59[_0x2f9e0f];return _0x3c5965;};const a1047_0xcf41ca=a1047_0x4046;'use strict';const {db}=require(a1047_0xcf41ca(0xc3)),logger=require(a1047_0xcf41ca(0xbf))('app'),voiceMusicOnHold=[{'id':0x1,'name':a1047_0xcf41ca(0xc2),'directory':'/var/lib/asterisk/moh/','mode':a1047_0xcf41ca(0xc7),'sort':a1047_0xcf41ca(0xc9),'format':a1047_0xcf41ca(0xcd),'defaultEntry':!![],'description':a1047_0xcf41ca(0xbe)},{'id':0x2,'name':a1047_0xcf41ca(0xc5),'directory':a1047_0xcf41ca(0xc8),'mode':a1047_0xcf41ca(0xc7),'sort':a1047_0xcf41ca(0xc9),'format':'wav','defaultEntry':!![],'description':'noice\x20moh\x20auto\x20generated'},{'id':0x3,'name':a1047_0xcf41ca(0xca),'directory':'/var/opt/motion2/server/files/moh/wait/','mode':a1047_0xcf41ca(0xc7),'sort':a1047_0xcf41ca(0xc9),'format':'wav','defaultEntry':!![],'description':a1047_0xcf41ca(0xc0)}];exports['create']=function(){const _0x3c1961=a1047_0xcf41ca;return db[_0x3c1961(0xcb)][_0x3c1961(0xc4)](voiceMusicOnHold,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x3fe844=_0x3c1961;logger[_0x3fe844(0xc1)](_0x3fe844(0xc6));})[_0x3c1961(0xbd)](function(){const _0x2a09ca=_0x3c1961;logger[_0x2a09ca(0xcc)]('Can\x27t\x20create\x20Music\x20on\x20hold');});}; \ No newline at end of file diff --git a/server/config/seedDB/voiceQueues.js b/server/config/seedDB/voiceQueues.js index 6c034d6..43743fc 100644 --- a/server/config/seedDB/voiceQueues.js +++ b/server/config/seedDB/voiceQueues.js @@ -1 +1 @@ -const a1048_0x5111=['Voice\x20Queues\x20have\x20been\x20created','type','Can\x27t\x20create\x20Voice\x20Queues','Support','app','inbound\x20voice\x20queue\x20auto\x20generated','addBlackLists','../logger','bulkCreate','ringall','addLists','outbound\x20voice\x20queue\x20campaign\x20auto\x20generated','VoiceQueue','inbound','addTeams','findAll','CallbackCampaign','rrmemory','noice','wait','error','Survey','info'];(function(_0x5a7def,_0x2be84b){const _0x5111a3=function(_0x3f8480){while(--_0x3f8480){_0x5a7def['push'](_0x5a7def['shift']());}};_0x5111a3(++_0x2be84b);}(a1048_0x5111,0x74));const a1048_0x3f84=function(_0x5a7def,_0x2be84b){_0x5a7def=_0x5a7def-0x1bf;let _0x5111a3=a1048_0x5111[_0x5a7def];return _0x5111a3;};const a1048_0x255161=a1048_0x3f84;'use strict';const {db}=require('../../mysqldb'),logger=require(a1048_0x255161(0x1c5))(a1048_0x255161(0x1c2)),voiceQueues=[{'id':0x1,'type':a1048_0x255161(0x1cb),'name':a1048_0x255161(0x1c1),'strategy':a1048_0x255161(0x1c7),'musiconhold':a1048_0x255161(0x1d1),'description':a1048_0x255161(0x1c3)},{'id':0x2,'type':'inbound','name':'Sales','strategy':'ringall','musiconhold':'wait','description':'inbound\x20voice\x20queue\x20auto\x20generated'},{'id':0x3,'type':'outbound','name':a1048_0x255161(0x1d3),'strategy':'rrmemory','TrunkId':0x1,'IntervalId':0x1,'musiconhold':a1048_0x255161(0x1d0),'description':a1048_0x255161(0x1c9)},{'id':0x4,'type':'outbound','name':'Telemarketing','strategy':a1048_0x255161(0x1cf),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':a1048_0x255161(0x1d0),'description':'outbound\x20voice\x20queue\x20campaign\x20auto\x20generated'},{'id':0x5,'type':'outbound','name':a1048_0x255161(0x1ce),'strategy':a1048_0x255161(0x1cf),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':'noice','description':a1048_0x255161(0x1c9)}];async function create(){const _0x3864ef=a1048_0x255161;try{await db[_0x3864ef(0x1ca)][_0x3864ef(0x1c6)](voiceQueues,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0x199d28=await db[_0x3864ef(0x1ca)][_0x3864ef(0x1cd)]();for(const _0x2025ee of _0x199d28){await _0x2025ee['addAgents']([0x2,0x3],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x2025ee[_0x3864ef(0x1cc)]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),_0x2025ee[_0x3864ef(0x1bf)]==='outbound'&&_0x2025ee['id']!==0x5&&(await _0x2025ee[_0x3864ef(0x1c8)]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x2025ee[_0x3864ef(0x1c4)]([0x2],{'ignoreDuplicates':!![],'individualHooks':!![]})),_0x2025ee['id']===0x5&&await _0x2025ee[_0x3864ef(0x1c8)]([0x3],{'ignoreDuplicates':!![],'individualHooks':!![]});}logger[_0x3864ef(0x1d4)](_0x3864ef(0x1d5));}catch(_0x422712){logger[_0x3864ef(0x1d2)](_0x3864ef(0x1c0),_0x422712);throw _0x422712;}}module['exports']['create']=create; \ No newline at end of file +const a1048_0x4ea5=['VoiceQueue','noice','addLists','../../mysqldb','addBlackLists','inbound','ringall','wait','Survey','Sales','findAll','error','inbound\x20voice\x20queue\x20auto\x20generated','outbound\x20voice\x20queue\x20campaign\x20auto\x20generated','Can\x27t\x20create\x20Voice\x20Queues','app','bulkCreate','outbound','rrmemory','Support','Voice\x20Queues\x20have\x20been\x20created'];(function(_0x1dc627,_0x1c8657){const _0x4ea5c9=function(_0x2bf2b5){while(--_0x2bf2b5){_0x1dc627['push'](_0x1dc627['shift']());}};_0x4ea5c9(++_0x1c8657);}(a1048_0x4ea5,0x199));const a1048_0x2bf2=function(_0x1dc627,_0x1c8657){_0x1dc627=_0x1dc627-0x14f;let _0x4ea5c9=a1048_0x4ea5[_0x1dc627];return _0x4ea5c9;};const a1048_0x2e40d8=a1048_0x2bf2;'use strict';const {db}=require(a1048_0x2e40d8(0x15d)),logger=require('../logger')(a1048_0x2e40d8(0x154)),voiceQueues=[{'id':0x1,'type':'inbound','name':a1048_0x2e40d8(0x158),'strategy':'ringall','musiconhold':'wait','description':a1048_0x2e40d8(0x151)},{'id':0x2,'type':a1048_0x2e40d8(0x15f),'name':a1048_0x2e40d8(0x163),'strategy':a1048_0x2e40d8(0x160),'musiconhold':a1048_0x2e40d8(0x161),'description':a1048_0x2e40d8(0x151)},{'id':0x3,'type':'outbound','name':a1048_0x2e40d8(0x162),'strategy':a1048_0x2e40d8(0x157),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':a1048_0x2e40d8(0x15b),'description':a1048_0x2e40d8(0x152)},{'id':0x4,'type':a1048_0x2e40d8(0x156),'name':'Telemarketing','strategy':'rrmemory','TrunkId':0x1,'IntervalId':0x1,'musiconhold':a1048_0x2e40d8(0x15b),'description':'outbound\x20voice\x20queue\x20campaign\x20auto\x20generated'},{'id':0x5,'type':a1048_0x2e40d8(0x156),'name':'CallbackCampaign','strategy':a1048_0x2e40d8(0x157),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':a1048_0x2e40d8(0x15b),'description':a1048_0x2e40d8(0x152)}];async function create(){const _0x179625=a1048_0x2e40d8;try{await db['VoiceQueue'][_0x179625(0x155)](voiceQueues,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0xc5e048=await db[_0x179625(0x15a)][_0x179625(0x14f)]();for(const _0x1d8fcf of _0xc5e048){await _0x1d8fcf['addAgents']([0x2,0x3],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x1d8fcf['addTeams']([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),_0x1d8fcf['type']===_0x179625(0x156)&&_0x1d8fcf['id']!==0x5&&(await _0x1d8fcf[_0x179625(0x15c)]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x1d8fcf[_0x179625(0x15e)]([0x2],{'ignoreDuplicates':!![],'individualHooks':!![]})),_0x1d8fcf['id']===0x5&&await _0x1d8fcf[_0x179625(0x15c)]([0x3],{'ignoreDuplicates':!![],'individualHooks':!![]});}logger['info'](_0x179625(0x159));}catch(_0x1e6062){logger[_0x179625(0x150)](_0x179625(0x153),_0x1e6062);throw _0x1e6062;}}module['exports']['create']=create; \ No newline at end of file diff --git a/server/config/seedUsers.js b/server/config/seedUsers.js index 79f97bf..24171c3 100644 --- a/server/config/seedUsers.js +++ b/server/config/seedUsers.js @@ -1 +1 @@ -const a1049_0x2e61=['yes','ulaw','\x22%s\x22\x20<%s>','../mysqldb','format','udp','%s%s','friend','bulkCreate','then','push','util','add\x20user','/etc/pki/tls/certs/motion.crt','/etc/pki/tls/private/motion.key','all','agent','User','log','catch','%s%s@xcally.com'];(function(_0x280cd9,_0x56563a){const _0x2e618b=function(_0x48614e){while(--_0x48614e){_0x280cd9['push'](_0x280cd9['shift']());}};_0x2e618b(++_0x56563a);}(a1049_0x2e61,0x12a));const a1049_0x4861=function(_0x280cd9,_0x56563a){_0x280cd9=_0x280cd9-0x130;let _0x2e618b=a1049_0x2e61[_0x280cd9];return _0x2e618b;};const a1049_0x4e783a=a1049_0x4861;'use strict';const util=require(a1049_0x4e783a(0x137)),{db}=require(a1049_0x4e783a(0x144)),users=[];for(let i=0x1;i<=0xc8;i+=0x1){users[a1049_0x4e783a(0x136)]({'name':util[a1049_0x4e783a(0x130)]('%s%s',a1049_0x4e783a(0x13c),i),'fullname':util['format']('%s%s',a1049_0x4e783a(0x13c),i),'email':util[a1049_0x4e783a(0x130)](a1049_0x4e783a(0x140),a1049_0x4e783a(0x13c),i),'role':'agent','password':'password','internal':0xfa0+i,'type':a1049_0x4e783a(0x133),'transport':[a1049_0x4e783a(0x131),'ws','wss'],'disallow':[a1049_0x4e783a(0x13b)],'allow':[a1049_0x4e783a(0x142)],'defaultuser':util[a1049_0x4e783a(0x130)](a1049_0x4e783a(0x132),'agent',i),'encryption':a1049_0x4e783a(0x141),'avpf':a1049_0x4e783a(0x141),'force_avp':a1049_0x4e783a(0x141),'icesupport':a1049_0x4e783a(0x141),'dtlsenable':a1049_0x4e783a(0x141),'dtlsverify':'no','dtlscertfile':a1049_0x4e783a(0x139),'dtlsprivatekey':a1049_0x4e783a(0x13a),'dtlssetup':'actpass','callerid':util[a1049_0x4e783a(0x130)](a1049_0x4e783a(0x143),util[a1049_0x4e783a(0x130)](a1049_0x4e783a(0x132),a1049_0x4e783a(0x13c),i),0xfa0+i)});}db[a1049_0x4e783a(0x13d)][a1049_0x4e783a(0x134)](users)[a1049_0x4e783a(0x135)](function(){const _0x537758=a1049_0x4e783a;console[_0x537758(0x13e)](_0x537758(0x138));})[a1049_0x4e783a(0x13f)](function(_0x160335){const _0x5df5aa=a1049_0x4e783a;console[_0x5df5aa(0x13e)](_0x160335);}); \ No newline at end of file +const a1049_0x5e8b=['push','%s%s','%s%s@xcally.com','then','log','agent','add\x20user','\x22%s\x22\x20<%s>','../mysqldb','catch','all','wss','password','friend','format','/etc/pki/tls/private/motion.key','util','ulaw','yes','User','udp'];(function(_0x5e49a8,_0x1a184f){const _0x5e8b9b=function(_0x3af695){while(--_0x3af695){_0x5e49a8['push'](_0x5e49a8['shift']());}};_0x5e8b9b(++_0x1a184f);}(a1049_0x5e8b,0x94));const a1049_0x3af6=function(_0x5e49a8,_0x1a184f){_0x5e49a8=_0x5e49a8-0x77;let _0x5e8b9b=a1049_0x5e8b[_0x5e49a8];return _0x5e8b9b;};const a1049_0x4c8a42=a1049_0x3af6;'use strict';const util=require(a1049_0x4c8a42(0x86)),{db}=require(a1049_0x4c8a42(0x7e)),users=[];for(let i=0x1;i<=0xc8;i+=0x1){users[a1049_0x4c8a42(0x8b)]({'name':util[a1049_0x4c8a42(0x84)](a1049_0x4c8a42(0x77),a1049_0x4c8a42(0x7b),i),'fullname':util[a1049_0x4c8a42(0x84)](a1049_0x4c8a42(0x77),a1049_0x4c8a42(0x7b),i),'email':util[a1049_0x4c8a42(0x84)](a1049_0x4c8a42(0x78),'agent',i),'role':a1049_0x4c8a42(0x7b),'password':a1049_0x4c8a42(0x82),'internal':0xfa0+i,'type':a1049_0x4c8a42(0x83),'transport':[a1049_0x4c8a42(0x8a),'ws',a1049_0x4c8a42(0x81)],'disallow':[a1049_0x4c8a42(0x80)],'allow':[a1049_0x4c8a42(0x87)],'defaultuser':util['format']('%s%s',a1049_0x4c8a42(0x7b),i),'encryption':a1049_0x4c8a42(0x88),'avpf':a1049_0x4c8a42(0x88),'force_avp':a1049_0x4c8a42(0x88),'icesupport':a1049_0x4c8a42(0x88),'dtlsenable':a1049_0x4c8a42(0x88),'dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':a1049_0x4c8a42(0x85),'dtlssetup':'actpass','callerid':util[a1049_0x4c8a42(0x84)](a1049_0x4c8a42(0x7d),util['format'](a1049_0x4c8a42(0x77),a1049_0x4c8a42(0x7b),i),0xfa0+i)});}db[a1049_0x4c8a42(0x89)]['bulkCreate'](users)[a1049_0x4c8a42(0x79)](function(){const _0x176bc9=a1049_0x4c8a42;console[_0x176bc9(0x7a)](_0x176bc9(0x7c));})[a1049_0x4c8a42(0x7f)](function(_0x3733f7){const _0x35cc14=a1049_0x4c8a42;console[_0x35cc14(0x7a)](_0x3733f7);}); \ No newline at end of file diff --git a/server/config/socketio.js b/server/config/socketio.js index 5628b7d..868d7d2 100644 --- a/server/config/socketio.js +++ b/server/config/socketio.js @@ -1 +1 @@ -const a1050_0x4a24=['role','name','ChatQueue','resourceId','query','User','user_has_chat_interactions:remove','log','WhatsappInteraction','telephone:%s','removeFaxInteractions','user','user_has_whatsapp_interactions:remove','user_has_sms_interactions:remove','FaxInteractions','address','getWhatsappQueues','MailInteraction','WhatsappQueues','push','openchannel','WhatsappQueue','DISCONNECTED','OpenchannelInteractions','user_has_fax_interactions:remove','undefined','OpenchannelInteraction','connectedAt','default','connection','SmsInteraction','whatsapp','WhatsappInteractions','ChatInteractions','Telephones','SmsQueue','Trunks','%s:queue:%s','fax','lodash','OpenchannelQueues','voice:outbound','length','user:%s','ChatQueues','Campaign','ChatInteraction','getMailQueues','FaxQueue','SocketIO\x20','telephone','format','getChatQueues','voice:inbound','findAll','VoiceQueues','ivr','getOpenchannelQueues','request','agent','Agents','FaxQueues','removeMailInteractions','then','where','userProfileId','MailInteractions','trunk:%s','user_has_openchannel_interactions:remove','catch','MailQueue','IvrCampaigns','findOne','map','removeWhatsappInteractions','mail','handshake','campaign:%s:%s','autoAssociation','OpenchannelQueue','Trunk','voice','getVoiceQueues','all','MailQueues','SmsQueues','emit','nsp','admin','socketIOConfig','sms','../mysqldb','type','util','removeOpenchannelInteractions','UserProfileResource','leave'];(function(_0x1ad105,_0x1b63bd){const _0x4a24d0=function(_0x481ed1){while(--_0x481ed1){_0x1ad105['push'](_0x1ad105['shift']());}};_0x4a24d0(++_0x1b63bd);}(a1050_0x4a24,0x1d5));const a1050_0x481e=function(_0x1ad105,_0x1b63bd){_0x1ad105=_0x1ad105-0x98;let _0x4a24d0=a1050_0x4a24[_0x1ad105];return _0x4a24d0;};const a1050_0x478979=a1050_0x481e;'use strict';const _=require(a1050_0x478979(0xcf)),util=require(a1050_0x478979(0xa4)),{db}=require(a1050_0x478979(0xa2)),queryQueues={'attributes':['id','name'],'include':[{'as':a1050_0x478979(0xe4),'model':db['User'],'attributes':['id',a1050_0x478979(0xa9),a1050_0x478979(0xa8)],'raw':!![],'where':{'role':a1050_0x478979(0xe3)},'required':![]}]},queryTelephones={'raw':!![],'attributes':['id',a1050_0x478979(0xa9)],'where':{'role':a1050_0x478979(0xda)}},queryTrunks={'raw':!![],'attributes':['id','name']},queryAgents={'raw':!![],'attributes':['id',a1050_0x478979(0xa9)],'where':{'role':'agent'}},queryCampaigns={'raw':!![],'attributes':['id',a1050_0x478979(0xa9),a1050_0x478979(0xa3)],'where':{'type':a1050_0x478979(0xe0)}};function getAssociatedResources(_0x1b379c,_0x2ba4f7,_0xb4aad9){const _0x5368f0=a1050_0x478979;return db['UserProfileSection'][_0x5368f0(0xf0)]({'where':{'name':_0x1b379c,'userProfileId':_0x2ba4f7},'raw':!![]})[_0x5368f0(0xe7)](function(_0x5921cd){const _0x483a80=_0x5368f0;if(_0x5921cd){if(_0x5921cd[_0x483a80(0xf6)]){let _0x300208;switch(_0x1b379c){case _0x483a80(0xdf):case _0x483a80(0xd4):case _0x483a80(0xe5):case _0x483a80(0x9c):case _0x483a80(0x9b):case'OpenchannelQueues':case _0x483a80(0xba):_0x300208=queryQueues;break;case _0x483a80(0xca):_0x300208=queryTelephones;break;case _0x483a80(0xcc):_0x300208=queryTrunks;break;case _0x483a80(0xef):_0x300208=queryCampaigns;break;default:break;}return _0x300208?db[_0xb4aad9][_0x483a80(0xde)](_0x300208):_0x300208;}else return db[_0x483a80(0xa6)]['findAll']({'attributes':[_0x483a80(0xab)],'where':{'sectionId':_0x5921cd['id']},'raw':!![]})[_0x483a80(0xe7)](function(_0x59233f){const _0x5ef863=_0x483a80;if(_0x59233f){const _0x226447={'where':{'id':_['map'](_0x59233f,_0x5ef863(0xab))},'raw':!![]};switch(_0xb4aad9){case'User':_0x226447[_0x5ef863(0xe8)][_0x5ef863(0xa8)]=_0x5ef863(0xda);break;case'Campaign':_0x226447[_0x5ef863(0xe8)][_0x5ef863(0xa3)]='ivr';break;}return db[_0xb4aad9][_0x5ef863(0xde)](_0x226447);}else return[];});}else return[];})[_0x5368f0(0xe7)](function(_0x437089){return _0x437089;});}function joinOrLeaveQueues(_0x1644b8,_0x110ff6,_0x1d8682,_0x39d25e){const _0x60d96=a1050_0x478979;_0x1644b8[_0x110ff6](util[_0x60d96(0xdb)](_0x60d96(0xcd),_0x1d8682,_0x39d25e[_0x60d96(0xa9)]));if(_0x39d25e['Agents'])for(let _0x5797b3=0x0;_0x5797b3<_0x39d25e[_0x60d96(0xe4)][_0x60d96(0xd2)];_0x5797b3+=0x1){_0x1644b8[_0x110ff6](util[_0x60d96(0xdb)](_0x60d96(0xd3),_0x39d25e[_0x60d96(0xe4)][_0x5797b3][_0x60d96(0xa9)]));}}function joinOrLeave(_0x4324a8,_0x5f39e0,_0x55cd5c){const _0x2f8401=a1050_0x478979;let _0x3ce357;_0x4324a8[_0x2f8401(0xf4)]['query']['id']&&db[_0x2f8401(0xad)]['findOne']({'attributes':['id',_0x2f8401(0xa9),_0x2f8401(0xa8),'userProfileId'],'where':{'id':_0x4324a8[_0x2f8401(0xf4)][_0x2f8401(0xac)]['id']},'include':[{'model':db[_0x2f8401(0xd6)],'as':_0x2f8401(0xc9),'attributes':['id'],'raw':!![]},{'model':db[_0x2f8401(0xb9)],'as':'MailInteractions','attributes':['id'],'raw':!![]},{'model':db['FaxInteraction'],'as':_0x2f8401(0xb6),'attributes':['id'],'raw':!![]},{'model':db[_0x2f8401(0xc6)],'as':'SmsInteractions','attributes':['id'],'raw':!![]},{'model':db[_0x2f8401(0xc2)],'as':'OpenchannelInteractions','attributes':['id'],'raw':!![]},{'model':db[_0x2f8401(0xb0)],'as':'WhatsappInteractions','attributes':['id'],'raw':!![]}]})[_0x2f8401(0xe7)](function(_0x471c09){const _0x3a5586=_0x2f8401;if(_0x471c09){_0x3ce357=_0x471c09,_0x4324a8[_0x5f39e0](util[_0x3a5586(0xdb)](_0x3a5586(0xd3),_0x471c09[_0x3a5586(0xa9)]));const _0xa50b4e=[];switch(_0x471c09[_0x3a5586(0xa8)]){case _0x3a5586(0x9f):_0x4324a8[_0x5f39e0](_0x3a5586(0xdd)),_0x4324a8[_0x5f39e0](_0x3a5586(0xd1));typeof queryQueues['include']!==_0x3a5586(0xc1)&&delete queryQueues['include'];_0xa50b4e[_0x3a5586(0xbb)](db['VoiceQueue'][_0x3a5586(0xde)](queryQueues)),_0xa50b4e['push'](db['ChatQueue'][_0x3a5586(0xde)](queryQueues)),_0xa50b4e[_0x3a5586(0xbb)](db[_0x3a5586(0xd8)][_0x3a5586(0xde)](queryQueues)),_0xa50b4e['push'](db[_0x3a5586(0xcb)][_0x3a5586(0xde)](queryQueues)),_0xa50b4e[_0x3a5586(0xbb)](db[_0x3a5586(0xee)][_0x3a5586(0xde)](queryQueues)),_0xa50b4e[_0x3a5586(0xbb)](db['OpenchannelQueue']['findAll'](queryQueues)),_0xa50b4e['push'](db[_0x3a5586(0xbd)][_0x3a5586(0xde)](queryQueues)),_0xa50b4e[_0x3a5586(0xbb)](db[_0x3a5586(0xad)]['findAll'](queryTelephones)),_0xa50b4e[_0x3a5586(0xbb)](db['Trunk'][_0x3a5586(0xde)](queryTrunks)),_0xa50b4e[_0x3a5586(0xbb)](db[_0x3a5586(0xd5)][_0x3a5586(0xde)](queryCampaigns)),_0xa50b4e[_0x3a5586(0xbb)](db[_0x3a5586(0xad)][_0x3a5586(0xde)](queryAgents));break;case _0x3a5586(0xb3):_0x4324a8[_0x5f39e0]('voice:inbound'),_0x4324a8[_0x5f39e0](_0x3a5586(0xd1)),_0xa50b4e[_0x3a5586(0xbb)](getAssociatedResources(_0x3a5586(0xdf),_0x471c09[_0x3a5586(0xe9)],'VoiceQueue')),_0xa50b4e[_0x3a5586(0xbb)](getAssociatedResources(_0x3a5586(0xd4),_0x471c09[_0x3a5586(0xe9)],_0x3a5586(0xaa))),_0xa50b4e[_0x3a5586(0xbb)](getAssociatedResources('FaxQueues',_0x471c09[_0x3a5586(0xe9)],_0x3a5586(0xd8))),_0xa50b4e[_0x3a5586(0xbb)](getAssociatedResources(_0x3a5586(0x9c),_0x471c09[_0x3a5586(0xe9)],_0x3a5586(0xcb))),_0xa50b4e['push'](getAssociatedResources(_0x3a5586(0x9b),_0x471c09[_0x3a5586(0xe9)],_0x3a5586(0xee))),_0xa50b4e[_0x3a5586(0xbb)](getAssociatedResources(_0x3a5586(0xd0),_0x471c09[_0x3a5586(0xe9)],_0x3a5586(0xf7))),_0xa50b4e['push'](getAssociatedResources(_0x3a5586(0xba),_0x471c09[_0x3a5586(0xe9)],_0x3a5586(0xbd))),_0xa50b4e[_0x3a5586(0xbb)](getAssociatedResources('Telephones',_0x471c09['userProfileId'],_0x3a5586(0xad))),_0xa50b4e[_0x3a5586(0xbb)](getAssociatedResources(_0x3a5586(0xcc),_0x471c09[_0x3a5586(0xe9)],_0x3a5586(0xf8))),_0xa50b4e[_0x3a5586(0xbb)](getAssociatedResources(_0x3a5586(0xef),_0x471c09[_0x3a5586(0xe9)],'Campaign')),_0xa50b4e[_0x3a5586(0xbb)](db['User']['findAll'](queryAgents));break;case _0x3a5586(0xe3):_0x4324a8[_0x5f39e0](_0x3a5586(0xdd)),_0x4324a8[_0x5f39e0](_0x3a5586(0xd1)),_0xa50b4e[_0x3a5586(0xbb)](_0x471c09[_0x3a5586(0x99)]({'attributes':['id',_0x3a5586(0xa9)]})),_0xa50b4e[_0x3a5586(0xbb)](_0x471c09[_0x3a5586(0xdc)]({'attributes':['id','name']})),_0xa50b4e[_0x3a5586(0xbb)](_0x471c09['getFaxQueues']({'attributes':['id',_0x3a5586(0xa9)]})),_0xa50b4e[_0x3a5586(0xbb)](_0x471c09['getSmsQueues']({'attributes':['id',_0x3a5586(0xa9)]})),_0xa50b4e[_0x3a5586(0xbb)](_0x471c09[_0x3a5586(0xd7)]({'attributes':['id','name']})),_0xa50b4e['push'](_0x471c09[_0x3a5586(0xe1)]({'attributes':['id',_0x3a5586(0xa9)]})),_0xa50b4e[_0x3a5586(0xbb)](_0x471c09[_0x3a5586(0xb8)]({'attributes':['id','name']}));break;}return Promise[_0x3a5586(0x9a)](_0xa50b4e);}})[_0x2f8401(0xe7)](function(_0x25868f){const _0xba4d1d=_0x2f8401;if(_0x25868f&&_0x25868f[_0xba4d1d(0xd2)])for(let _0x242a0c=0x0;_0x242a0c<_0x25868f[_0xba4d1d(0xd2)];_0x242a0c+=0x1){for(let _0x3d4751=0x0;_0x3d4751<_0x25868f[_0x242a0c][_0xba4d1d(0xd2)];_0x3d4751+=0x1){switch(_0x242a0c){case 0x0:joinOrLeaveQueues(_0x4324a8,_0x5f39e0,_0xba4d1d(0x98),_0x25868f[_0x242a0c][_0x3d4751]);break;case 0x1:joinOrLeaveQueues(_0x4324a8,_0x5f39e0,'chat',_0x25868f[_0x242a0c][_0x3d4751]);break;case 0x2:joinOrLeaveQueues(_0x4324a8,_0x5f39e0,_0xba4d1d(0xce),_0x25868f[_0x242a0c][_0x3d4751]);break;case 0x3:joinOrLeaveQueues(_0x4324a8,_0x5f39e0,_0xba4d1d(0xa1),_0x25868f[_0x242a0c][_0x3d4751]);break;case 0x4:joinOrLeaveQueues(_0x4324a8,_0x5f39e0,_0xba4d1d(0xf3),_0x25868f[_0x242a0c][_0x3d4751]);break;case 0x5:joinOrLeaveQueues(_0x4324a8,_0x5f39e0,_0xba4d1d(0xbc),_0x25868f[_0x242a0c][_0x3d4751]);break;case 0x6:joinOrLeaveQueues(_0x4324a8,_0x5f39e0,_0xba4d1d(0xc7),_0x25868f[_0x242a0c][_0x3d4751]);break;case 0x7:_0x4324a8[_0x5f39e0](util[_0xba4d1d(0xdb)](_0xba4d1d(0xb1),_0x25868f[_0x242a0c][_0x3d4751][_0xba4d1d(0xa9)]));break;case 0x8:_0x4324a8[_0x5f39e0](util[_0xba4d1d(0xdb)](_0xba4d1d(0xeb),_0x25868f[_0x242a0c][_0x3d4751][_0xba4d1d(0xa9)]));break;case 0x9:_0x4324a8[_0x5f39e0](util['format'](_0xba4d1d(0xf5),_0x25868f[_0x242a0c][_0x3d4751]['type'],_0x25868f[_0x242a0c][_0x3d4751]['name']));break;case 0xa:_0x4324a8[_0x5f39e0](util[_0xba4d1d(0xdb)](_0xba4d1d(0xd3),_0x25868f[_0x242a0c][_0x3d4751][_0xba4d1d(0xa9)]));break;}}}})[_0x2f8401(0xe7)](function(){const _0x37596a=_0x2f8401;if(_0x5f39e0==='leave'){const _0x3cbc59=_[_0x37596a(0xf1)](_0x3ce357['ChatInteractions'],'id');return _0x3ce357['removeChatInteractions'](_0x3cbc59)[_0x37596a(0xe7)](function(){const _0x49014b=_0x37596a;for(let _0x309c59=0x0;_0x309c59<_0x3cbc59[_0x49014b(0xd2)];_0x309c59+=0x1){_0x55cd5c['emit'](_0x49014b(0xae),{'ChatInteractionId':Number(_0x3cbc59[_0x309c59]),'UserId':Number(_0x3ce357['id'])});}});}})['then'](function(){const _0x40fe71=_0x2f8401;if(_0x5f39e0===_0x40fe71(0xa7)){const _0x5a24e6=_[_0x40fe71(0xf1)](_0x3ce357[_0x40fe71(0xea)],'id');return _0x3ce357[_0x40fe71(0xe6)](_0x5a24e6)[_0x40fe71(0xe7)](function(){const _0x10a276=_0x40fe71;for(let _0x49da0e=0x0;_0x49da0e<_0x5a24e6['length'];_0x49da0e+=0x1){_0x55cd5c[_0x10a276(0x9d)]('user_has_mail_interactions:remove',{'MailInteractionId':Number(_0x5a24e6[_0x49da0e]),'UserId':Number(_0x3ce357['id'])});}});}})[_0x2f8401(0xe7)](function(){const _0x2ca086=_0x2f8401;if(_0x5f39e0==='leave'){const _0x3287cb=_['map'](_0x3ce357[_0x2ca086(0xb6)],'id');return _0x3ce357[_0x2ca086(0xb2)](_0x3287cb)['then'](function(){const _0x295d94=_0x2ca086;for(let _0x16aa43=0x0;_0x16aa43<_0x3287cb[_0x295d94(0xd2)];_0x16aa43+=0x1){_0x55cd5c[_0x295d94(0x9d)](_0x295d94(0xc0),{'FaxInteractionId':Number(_0x3287cb[_0x16aa43]),'UserId':Number(_0x3ce357['id'])});}});}})['then'](function(){const _0x58f083=_0x2f8401;if(_0x5f39e0===_0x58f083(0xa7)){const _0x1905b2=_[_0x58f083(0xf1)](_0x3ce357['SmsInteractions'],'id');return _0x3ce357['removeSmsInteractions'](_0x1905b2)[_0x58f083(0xe7)](function(){const _0x5491b6=_0x58f083;for(let _0x4c61a8=0x0;_0x4c61a8<_0x1905b2[_0x5491b6(0xd2)];_0x4c61a8+=0x1){_0x55cd5c[_0x5491b6(0x9d)](_0x5491b6(0xb5),{'SmsInteractionId':Number(_0x1905b2[_0x4c61a8]),'UserId':Number(_0x3ce357['id'])});}});}})[_0x2f8401(0xe7)](function(){const _0x1e1419=_0x2f8401;if(_0x5f39e0==='leave'){const _0x3ec2f2=_['map'](_0x3ce357[_0x1e1419(0xbf)],'id');return _0x3ce357[_0x1e1419(0xa5)](_0x3ec2f2)[_0x1e1419(0xe7)](function(){const _0x1e5b70=_0x1e1419;for(let _0x3ca3d2=0x0;_0x3ca3d2<_0x3ec2f2['length'];_0x3ca3d2+=0x1){_0x55cd5c[_0x1e5b70(0x9d)](_0x1e5b70(0xec),{'OpenchannelInteractionId':Number(_0x3ec2f2[_0x3ca3d2]),'UserId':Number(_0x3ce357['id'])});}});}})[_0x2f8401(0xe7)](function(){const _0x425d91=_0x2f8401;if(_0x5f39e0==='leave'){const _0x4b4e8b=_[_0x425d91(0xf1)](_0x3ce357[_0x425d91(0xc8)],'id');return _0x3ce357[_0x425d91(0xf2)](_0x4b4e8b)[_0x425d91(0xe7)](function(){const _0x374de9=_0x425d91;for(let _0x1809ce=0x0;_0x1809ce<_0x4b4e8b['length'];_0x1809ce+=0x1){_0x55cd5c[_0x374de9(0x9d)](_0x374de9(0xb4),{'WhatsappInteractionId':Number(_0x4b4e8b[_0x1809ce]),'UserId':Number(_0x3ce357['id'])});}});}})[_0x2f8401(0xed)](function(_0x46d5bd){const _0x192cee=_0x2f8401;_0x4324a8[_0x192cee(0xaf)](_0x46d5bd);});}function onDisconnect(_0x32a835,_0x374360){const _0x466464=a1050_0x478979;joinOrLeave(_0x32a835,_0x466464(0xa7),_0x374360);}function onConnect(_0x5a5721){joinOrLeave(_0x5a5721,'join');}function socketIOConfig(_0x16ebea){const _0x25d771=a1050_0x478979;_0x16ebea['on'](_0x25d771(0xc5),function(_0x927203){const _0x237bd2=_0x25d771;_0x927203['setMaxListeners'](0x0),_0x927203[_0x237bd2(0xb7)]=_0x927203[_0x237bd2(0xe2)][_0x237bd2(0xc5)]['remoteAddress']+':'+_0x927203[_0x237bd2(0xe2)]['connection']['remotePort'],_0x927203[_0x237bd2(0xc3)]=new Date(),_0x927203[_0x237bd2(0xaf)]=function(_0x4ff978){const _0x2d0a0d=_0x237bd2;console['log'](_0x2d0a0d(0xd9)+_0x927203[_0x2d0a0d(0x9e)][_0x2d0a0d(0xa9)]+'['+_0x927203[_0x2d0a0d(0xb7)]+']',_0x4ff978);},_0x927203['on']('disconnect',function(){const _0x4df9cf=_0x237bd2;onDisconnect(_0x927203,_0x16ebea),_0x927203[_0x4df9cf(0xaf)](_0x4df9cf(0xbe));}),onConnect(_0x927203),_0x927203[_0x237bd2(0xaf)]('CONNECTED');});}exports[a1050_0x478979(0xa0)]=socketIOConfig,exports[a1050_0x478979(0xc4)]=socketIOConfig; \ No newline at end of file +const a1050_0x157e=['user_has_sms_interactions:remove','WhatsappInteractions','IvrCampaigns','util','chat','DISCONNECTED','log','voice:outbound','MailQueues','disconnect','format','setMaxListeners','agent','user_has_whatsapp_interactions:remove','SocketIO\x20','FaxInteractions','FaxQueue','leave','address','map','nsp','VoiceQueue','getWhatsappQueues','remotePort','removeOpenchannelInteractions','OpenchannelQueues','ChatQueue','admin','VoiceQueues','removeSmsInteractions','trunk:%s','WhatsappQueues','telephone:%s','user_has_fax_interactions:remove','getSmsQueues','emit','OpenchannelInteraction','OpenchannelInteractions','findOne','mail','removeChatInteractions','MailInteraction','query','findAll','Agents','Telephones','push','type','voice:inbound','user_has_openchannel_interactions:remove','MailInteractions','name','user:%s','request','getVoiceQueues','User','UserProfileSection','Trunks','getFaxQueues','socketIOConfig','ChatInteraction','connection','Trunk','Campaign','getOpenchannelQueues','role','SmsQueues','catch','handshake','ivr','MailQueue','join','telephone','getChatQueues','SmsQueue','userProfileId','length','getMailQueues','SmsInteractions','include','resourceId','where','then','FaxInteraction','user_has_mail_interactions:remove','user','removeWhatsappInteractions','WhatsappQueue','voice','lodash','ChatInteractions','CONNECTED','undefined','removeFaxInteractions'];(function(_0x7e54a7,_0x22e1c9){const _0x157ee5=function(_0x45dd4f){while(--_0x45dd4f){_0x7e54a7['push'](_0x7e54a7['shift']());}};_0x157ee5(++_0x22e1c9);}(a1050_0x157e,0x7d));const a1050_0x45dd=function(_0x7e54a7,_0x22e1c9){_0x7e54a7=_0x7e54a7-0xc1;let _0x157ee5=a1050_0x157e[_0x7e54a7];return _0x157ee5;};const a1050_0x20b143=a1050_0x45dd;'use strict';const _=require(a1050_0x20b143(0xfb)),util=require(a1050_0x20b143(0x103)),{db}=require('../mysqldb'),queryQueues={'attributes':['id',a1050_0x20b143(0xd5)],'include':[{'as':a1050_0x20b143(0xce),'model':db['User'],'attributes':['id',a1050_0x20b143(0xd5),'role'],'raw':!![],'where':{'role':a1050_0x20b143(0x10c)},'required':![]}]},queryTelephones={'raw':!![],'attributes':['id',a1050_0x20b143(0xd5)],'where':{'role':a1050_0x20b143(0xea)}},queryTrunks={'raw':!![],'attributes':['id',a1050_0x20b143(0xd5)]},queryAgents={'raw':!![],'attributes':['id',a1050_0x20b143(0xd5)],'where':{'role':a1050_0x20b143(0x10c)}},queryCampaigns={'raw':!![],'attributes':['id',a1050_0x20b143(0xd5),a1050_0x20b143(0xd1)],'where':{'type':'ivr'}};function getAssociatedResources(_0x2c5002,_0x29c693,_0x3293e4){const _0x57900b=a1050_0x20b143;return db[_0x57900b(0xda)][_0x57900b(0xc8)]({'where':{'name':_0x2c5002,'userProfileId':_0x29c693},'raw':!![]})[_0x57900b(0xf4)](function(_0x2556c9){const _0xe7860b=_0x57900b;if(_0x2556c9){if(_0x2556c9['autoAssociation']){let _0x22d953;switch(_0x2c5002){case _0xe7860b(0x11c):case'ChatQueues':case'FaxQueues':case _0xe7860b(0xe4):case _0xe7860b(0x108):case _0xe7860b(0x119):case _0xe7860b(0xc1):_0x22d953=queryQueues;break;case _0xe7860b(0xcf):_0x22d953=queryTelephones;break;case _0xe7860b(0xdb):_0x22d953=queryTrunks;break;case _0xe7860b(0x102):_0x22d953=queryCampaigns;break;default:break;}return _0x22d953?db[_0x3293e4][_0xe7860b(0xcd)](_0x22d953):_0x22d953;}else return db['UserProfileResource']['findAll']({'attributes':['resourceId'],'where':{'sectionId':_0x2556c9['id']},'raw':!![]})[_0xe7860b(0xf4)](function(_0x4daf24){const _0x5eb607=_0xe7860b;if(_0x4daf24){const _0x496d68={'where':{'id':_[_0x5eb607(0x113)](_0x4daf24,_0x5eb607(0xf2))},'raw':!![]};switch(_0x3293e4){case _0x5eb607(0xd9):_0x496d68[_0x5eb607(0xf3)][_0x5eb607(0xe3)]=_0x5eb607(0xea);break;case _0x5eb607(0xe1):_0x496d68[_0x5eb607(0xf3)]['type']=_0x5eb607(0xe7);break;}return db[_0x3293e4]['findAll'](_0x496d68);}else return[];});}else return[];})['then'](function(_0x5c6ef){return _0x5c6ef;});}function joinOrLeaveQueues(_0x178f67,_0x344cc2,_0x445d35,_0x375caa){const _0x58cd33=a1050_0x20b143;_0x178f67[_0x344cc2](util[_0x58cd33(0x10a)]('%s:queue:%s',_0x445d35,_0x375caa[_0x58cd33(0xd5)]));if(_0x375caa[_0x58cd33(0xce)])for(let _0x15aa24=0x0;_0x15aa24<_0x375caa['Agents'][_0x58cd33(0xee)];_0x15aa24+=0x1){_0x178f67[_0x344cc2](util[_0x58cd33(0x10a)]('user:%s',_0x375caa[_0x58cd33(0xce)][_0x15aa24][_0x58cd33(0xd5)]));}}function joinOrLeave(_0x173c1a,_0x2bddb3,_0x54c7f1){const _0x5029fd=a1050_0x20b143;let _0x340b87;_0x173c1a[_0x5029fd(0xe6)]['query']['id']&&db[_0x5029fd(0xd9)]['findOne']({'attributes':['id','name',_0x5029fd(0xe3),_0x5029fd(0xed)],'where':{'id':_0x173c1a['handshake'][_0x5029fd(0xcc)]['id']},'include':[{'model':db[_0x5029fd(0xde)],'as':_0x5029fd(0xfc),'attributes':['id'],'raw':!![]},{'model':db[_0x5029fd(0xcb)],'as':_0x5029fd(0xd4),'attributes':['id'],'raw':!![]},{'model':db[_0x5029fd(0xf5)],'as':'FaxInteractions','attributes':['id'],'raw':!![]},{'model':db['SmsInteraction'],'as':_0x5029fd(0xf0),'attributes':['id'],'raw':!![]},{'model':db[_0x5029fd(0xc6)],'as':'OpenchannelInteractions','attributes':['id'],'raw':!![]},{'model':db['WhatsappInteraction'],'as':_0x5029fd(0x101),'attributes':['id'],'raw':!![]}]})[_0x5029fd(0xf4)](function(_0x10bca8){const _0x160ca3=_0x5029fd;if(_0x10bca8){_0x340b87=_0x10bca8,_0x173c1a[_0x2bddb3](util['format']('user:%s',_0x10bca8[_0x160ca3(0xd5)]));const _0x35602b=[];switch(_0x10bca8['role']){case _0x160ca3(0x11b):_0x173c1a[_0x2bddb3](_0x160ca3(0xd2)),_0x173c1a[_0x2bddb3](_0x160ca3(0x107));typeof queryQueues[_0x160ca3(0xf1)]!==_0x160ca3(0xfe)&&delete queryQueues[_0x160ca3(0xf1)];_0x35602b[_0x160ca3(0xd0)](db['VoiceQueue'][_0x160ca3(0xcd)](queryQueues)),_0x35602b[_0x160ca3(0xd0)](db[_0x160ca3(0x11a)][_0x160ca3(0xcd)](queryQueues)),_0x35602b[_0x160ca3(0xd0)](db[_0x160ca3(0x110)][_0x160ca3(0xcd)](queryQueues)),_0x35602b[_0x160ca3(0xd0)](db[_0x160ca3(0xec)][_0x160ca3(0xcd)](queryQueues)),_0x35602b[_0x160ca3(0xd0)](db[_0x160ca3(0xe8)][_0x160ca3(0xcd)](queryQueues)),_0x35602b[_0x160ca3(0xd0)](db['OpenchannelQueue'][_0x160ca3(0xcd)](queryQueues)),_0x35602b[_0x160ca3(0xd0)](db[_0x160ca3(0xf9)][_0x160ca3(0xcd)](queryQueues)),_0x35602b['push'](db[_0x160ca3(0xd9)][_0x160ca3(0xcd)](queryTelephones)),_0x35602b[_0x160ca3(0xd0)](db['Trunk'][_0x160ca3(0xcd)](queryTrunks)),_0x35602b[_0x160ca3(0xd0)](db[_0x160ca3(0xe1)][_0x160ca3(0xcd)](queryCampaigns)),_0x35602b[_0x160ca3(0xd0)](db[_0x160ca3(0xd9)]['findAll'](queryAgents));break;case _0x160ca3(0xf7):_0x173c1a[_0x2bddb3](_0x160ca3(0xd2)),_0x173c1a[_0x2bddb3](_0x160ca3(0x107)),_0x35602b[_0x160ca3(0xd0)](getAssociatedResources('VoiceQueues',_0x10bca8['userProfileId'],_0x160ca3(0x115))),_0x35602b['push'](getAssociatedResources('ChatQueues',_0x10bca8['userProfileId'],_0x160ca3(0x11a))),_0x35602b[_0x160ca3(0xd0)](getAssociatedResources('FaxQueues',_0x10bca8['userProfileId'],'FaxQueue')),_0x35602b[_0x160ca3(0xd0)](getAssociatedResources(_0x160ca3(0xe4),_0x10bca8[_0x160ca3(0xed)],_0x160ca3(0xec))),_0x35602b[_0x160ca3(0xd0)](getAssociatedResources(_0x160ca3(0x108),_0x10bca8['userProfileId'],_0x160ca3(0xe8))),_0x35602b['push'](getAssociatedResources(_0x160ca3(0x119),_0x10bca8[_0x160ca3(0xed)],'OpenchannelQueue')),_0x35602b['push'](getAssociatedResources(_0x160ca3(0xc1),_0x10bca8['userProfileId'],_0x160ca3(0xf9))),_0x35602b[_0x160ca3(0xd0)](getAssociatedResources(_0x160ca3(0xcf),_0x10bca8[_0x160ca3(0xed)],'User')),_0x35602b[_0x160ca3(0xd0)](getAssociatedResources('Trunks',_0x10bca8[_0x160ca3(0xed)],_0x160ca3(0xe0))),_0x35602b[_0x160ca3(0xd0)](getAssociatedResources(_0x160ca3(0x102),_0x10bca8['userProfileId'],_0x160ca3(0xe1))),_0x35602b[_0x160ca3(0xd0)](db['User'][_0x160ca3(0xcd)](queryAgents));break;case _0x160ca3(0x10c):_0x173c1a[_0x2bddb3](_0x160ca3(0xd2)),_0x173c1a[_0x2bddb3](_0x160ca3(0x107)),_0x35602b[_0x160ca3(0xd0)](_0x10bca8[_0x160ca3(0xd8)]({'attributes':['id',_0x160ca3(0xd5)]})),_0x35602b['push'](_0x10bca8[_0x160ca3(0xeb)]({'attributes':['id',_0x160ca3(0xd5)]})),_0x35602b[_0x160ca3(0xd0)](_0x10bca8[_0x160ca3(0xdc)]({'attributes':['id',_0x160ca3(0xd5)]})),_0x35602b[_0x160ca3(0xd0)](_0x10bca8[_0x160ca3(0xc4)]({'attributes':['id',_0x160ca3(0xd5)]})),_0x35602b[_0x160ca3(0xd0)](_0x10bca8[_0x160ca3(0xef)]({'attributes':['id','name']})),_0x35602b['push'](_0x10bca8[_0x160ca3(0xe2)]({'attributes':['id',_0x160ca3(0xd5)]})),_0x35602b[_0x160ca3(0xd0)](_0x10bca8[_0x160ca3(0x116)]({'attributes':['id','name']}));break;}return Promise['all'](_0x35602b);}})[_0x5029fd(0xf4)](function(_0xa2cb52){const _0x444550=_0x5029fd;if(_0xa2cb52&&_0xa2cb52[_0x444550(0xee)])for(let _0x2cbe96=0x0;_0x2cbe96<_0xa2cb52[_0x444550(0xee)];_0x2cbe96+=0x1){for(let _0x2a9e07=0x0;_0x2a9e07<_0xa2cb52[_0x2cbe96][_0x444550(0xee)];_0x2a9e07+=0x1){switch(_0x2cbe96){case 0x0:joinOrLeaveQueues(_0x173c1a,_0x2bddb3,_0x444550(0xfa),_0xa2cb52[_0x2cbe96][_0x2a9e07]);break;case 0x1:joinOrLeaveQueues(_0x173c1a,_0x2bddb3,_0x444550(0x104),_0xa2cb52[_0x2cbe96][_0x2a9e07]);break;case 0x2:joinOrLeaveQueues(_0x173c1a,_0x2bddb3,'fax',_0xa2cb52[_0x2cbe96][_0x2a9e07]);break;case 0x3:joinOrLeaveQueues(_0x173c1a,_0x2bddb3,'sms',_0xa2cb52[_0x2cbe96][_0x2a9e07]);break;case 0x4:joinOrLeaveQueues(_0x173c1a,_0x2bddb3,_0x444550(0xc9),_0xa2cb52[_0x2cbe96][_0x2a9e07]);break;case 0x5:joinOrLeaveQueues(_0x173c1a,_0x2bddb3,'openchannel',_0xa2cb52[_0x2cbe96][_0x2a9e07]);break;case 0x6:joinOrLeaveQueues(_0x173c1a,_0x2bddb3,'whatsapp',_0xa2cb52[_0x2cbe96][_0x2a9e07]);break;case 0x7:_0x173c1a[_0x2bddb3](util[_0x444550(0x10a)](_0x444550(0xc2),_0xa2cb52[_0x2cbe96][_0x2a9e07]['name']));break;case 0x8:_0x173c1a[_0x2bddb3](util[_0x444550(0x10a)](_0x444550(0x11e),_0xa2cb52[_0x2cbe96][_0x2a9e07][_0x444550(0xd5)]));break;case 0x9:_0x173c1a[_0x2bddb3](util[_0x444550(0x10a)]('campaign:%s:%s',_0xa2cb52[_0x2cbe96][_0x2a9e07][_0x444550(0xd1)],_0xa2cb52[_0x2cbe96][_0x2a9e07][_0x444550(0xd5)]));break;case 0xa:_0x173c1a[_0x2bddb3](util[_0x444550(0x10a)](_0x444550(0xd6),_0xa2cb52[_0x2cbe96][_0x2a9e07][_0x444550(0xd5)]));break;}}}})[_0x5029fd(0xf4)](function(){const _0x48a147=_0x5029fd;if(_0x2bddb3===_0x48a147(0x111)){const _0x174d9d=_[_0x48a147(0x113)](_0x340b87[_0x48a147(0xfc)],'id');return _0x340b87[_0x48a147(0xca)](_0x174d9d)[_0x48a147(0xf4)](function(){const _0x1345af=_0x48a147;for(let _0x37fb28=0x0;_0x37fb28<_0x174d9d[_0x1345af(0xee)];_0x37fb28+=0x1){_0x54c7f1['emit']('user_has_chat_interactions:remove',{'ChatInteractionId':Number(_0x174d9d[_0x37fb28]),'UserId':Number(_0x340b87['id'])});}});}})[_0x5029fd(0xf4)](function(){const _0x4c3bd8=_0x5029fd;if(_0x2bddb3===_0x4c3bd8(0x111)){const _0x470bd2=_[_0x4c3bd8(0x113)](_0x340b87['MailInteractions'],'id');return _0x340b87['removeMailInteractions'](_0x470bd2)['then'](function(){const _0x5722cd=_0x4c3bd8;for(let _0x288d98=0x0;_0x288d98<_0x470bd2['length'];_0x288d98+=0x1){_0x54c7f1['emit'](_0x5722cd(0xf6),{'MailInteractionId':Number(_0x470bd2[_0x288d98]),'UserId':Number(_0x340b87['id'])});}});}})[_0x5029fd(0xf4)](function(){const _0x54e116=_0x5029fd;if(_0x2bddb3===_0x54e116(0x111)){const _0x39a880=_['map'](_0x340b87[_0x54e116(0x10f)],'id');return _0x340b87[_0x54e116(0xff)](_0x39a880)['then'](function(){const _0x3ea5b5=_0x54e116;for(let _0xfbf9e8=0x0;_0xfbf9e8<_0x39a880[_0x3ea5b5(0xee)];_0xfbf9e8+=0x1){_0x54c7f1[_0x3ea5b5(0xc5)](_0x3ea5b5(0xc3),{'FaxInteractionId':Number(_0x39a880[_0xfbf9e8]),'UserId':Number(_0x340b87['id'])});}});}})[_0x5029fd(0xf4)](function(){const _0xabfe0d=_0x5029fd;if(_0x2bddb3==='leave'){const _0x3ee2d4=_[_0xabfe0d(0x113)](_0x340b87[_0xabfe0d(0xf0)],'id');return _0x340b87[_0xabfe0d(0x11d)](_0x3ee2d4)[_0xabfe0d(0xf4)](function(){const _0x44ac2f=_0xabfe0d;for(let _0x47c9ce=0x0;_0x47c9ce<_0x3ee2d4[_0x44ac2f(0xee)];_0x47c9ce+=0x1){_0x54c7f1[_0x44ac2f(0xc5)](_0x44ac2f(0x100),{'SmsInteractionId':Number(_0x3ee2d4[_0x47c9ce]),'UserId':Number(_0x340b87['id'])});}});}})['then'](function(){const _0x3bcb07=_0x5029fd;if(_0x2bddb3===_0x3bcb07(0x111)){const _0x293517=_[_0x3bcb07(0x113)](_0x340b87[_0x3bcb07(0xc7)],'id');return _0x340b87[_0x3bcb07(0x118)](_0x293517)[_0x3bcb07(0xf4)](function(){const _0x2ec0d4=_0x3bcb07;for(let _0x5b8d72=0x0;_0x5b8d72<_0x293517[_0x2ec0d4(0xee)];_0x5b8d72+=0x1){_0x54c7f1[_0x2ec0d4(0xc5)](_0x2ec0d4(0xd3),{'OpenchannelInteractionId':Number(_0x293517[_0x5b8d72]),'UserId':Number(_0x340b87['id'])});}});}})[_0x5029fd(0xf4)](function(){const _0x120d4d=_0x5029fd;if(_0x2bddb3===_0x120d4d(0x111)){const _0x1f2734=_[_0x120d4d(0x113)](_0x340b87['WhatsappInteractions'],'id');return _0x340b87[_0x120d4d(0xf8)](_0x1f2734)['then'](function(){const _0xd6bb28=_0x120d4d;for(let _0x146382=0x0;_0x146382<_0x1f2734[_0xd6bb28(0xee)];_0x146382+=0x1){_0x54c7f1[_0xd6bb28(0xc5)](_0xd6bb28(0x10d),{'WhatsappInteractionId':Number(_0x1f2734[_0x146382]),'UserId':Number(_0x340b87['id'])});}});}})[_0x5029fd(0xe5)](function(_0x560352){const _0x58d93a=_0x5029fd;_0x173c1a[_0x58d93a(0x106)](_0x560352);});}function onDisconnect(_0x1b1457,_0x390aeb){const _0xac4e82=a1050_0x20b143;joinOrLeave(_0x1b1457,_0xac4e82(0x111),_0x390aeb);}function onConnect(_0xaef14){const _0x262286=a1050_0x20b143;joinOrLeave(_0xaef14,_0x262286(0xe9));}function socketIOConfig(_0x9b1423){_0x9b1423['on']('connection',function(_0x41a260){const _0x714867=a1050_0x45dd;_0x41a260[_0x714867(0x10b)](0x0),_0x41a260[_0x714867(0x112)]=_0x41a260[_0x714867(0xd7)]['connection']['remoteAddress']+':'+_0x41a260[_0x714867(0xd7)][_0x714867(0xdf)][_0x714867(0x117)],_0x41a260['connectedAt']=new Date(),_0x41a260[_0x714867(0x106)]=function(_0x4c06e9){const _0x2790b6=_0x714867;console[_0x2790b6(0x106)](_0x2790b6(0x10e)+_0x41a260[_0x2790b6(0x114)][_0x2790b6(0xd5)]+'['+_0x41a260[_0x2790b6(0x112)]+']',_0x4c06e9);},_0x41a260['on'](_0x714867(0x109),function(){const _0x99fa8b=_0x714867;onDisconnect(_0x41a260,_0x9b1423),_0x41a260[_0x99fa8b(0x106)](_0x99fa8b(0x105));}),onConnect(_0x41a260),_0x41a260[_0x714867(0x106)](_0x714867(0xfd));});}exports[a1050_0x20b143(0xdd)]=socketIOConfig,exports['default']=socketIOConfig; \ No newline at end of file diff --git a/server/config/triggers/index.js b/server/config/triggers/index.js index a3713ad..ed148c9 100644 --- a/server/config/triggers/index.js +++ b/server/config/triggers/index.js @@ -1 +1 @@ -const a1051_0x5aea=['Sms','event','direction','afterUpdate','WhatsappMessage','FaxMessage','default','OpenchannelInteraction','SmsMessage','outgoingmessage','http','opened','newmessage','Openchannel','newinteraction','get','Fax','ChatInteraction','incomingmessage','EventManager','then','UserId','afterCreate','closed','undefined','util','client','Trigger,\x20%s','SIP/%s','WhatsappInteraction','OpenchannelMessage','../logger','interface','code','catch','toLowerCase','SmsInteraction','addHook','findOne','Chat','FaxInteraction','request','changed','model','format','jayson/promise','../../mysqldb','triggers','name','ChatMessage','closedinteraction','callback','User','MailInteraction','Mail','error','channel','Whatsapp'];(function(_0x2883f3,_0x1148da){const _0x5aeaba=function(_0x56c8ed){while(--_0x56c8ed){_0x2883f3['push'](_0x2883f3['shift']());}};_0x5aeaba(++_0x1148da);}(a1051_0x5aea,0xd2));const a1051_0x56c8=function(_0x2883f3,_0x1148da){_0x2883f3=_0x2883f3-0x1b0;let _0x5aeaba=a1051_0x5aea[_0x2883f3];return _0x5aeaba;};const a1051_0x1068f2=a1051_0x56c8;'use strict';const util=require(a1051_0x1068f2(0x1df)),{db}=require(a1051_0x1068f2(0x1ba)),jayson=require(a1051_0x1068f2(0x1b9)),logger=require(a1051_0x1068f2(0x1e5))(a1051_0x1068f2(0x1bb)),client=jayson[a1051_0x1068f2(0x1e0)][a1051_0x1068f2(0x1d0)]({'port':0x232a}),TRIGGERS=[{'channel':a1051_0x1068f2(0x1b3),'model':a1051_0x1068f2(0x1d7),'event':'afterCreate','condition':a1051_0x1068f2(0x1d4),'callback':afterCreate},{'channel':a1051_0x1068f2(0x1b3),'model':a1051_0x1068f2(0x1d7),'event':a1051_0x1068f2(0x1c9),'condition':a1051_0x1068f2(0x1be),'callback':afterUpdate},{'channel':'Chat','model':a1051_0x1068f2(0x1bd),'event':a1051_0x1068f2(0x1dc),'condition':a1051_0x1068f2(0x1d2),'callback':afterCreateMessage},{'channel':a1051_0x1068f2(0x1c6),'model':a1051_0x1068f2(0x1b0),'event':a1051_0x1068f2(0x1dc),'condition':a1051_0x1068f2(0x1d4),'callback':afterCreate},{'channel':'Sms','model':a1051_0x1068f2(0x1b0),'event':'afterUpdate','condition':'closedinteraction','callback':afterUpdate},{'channel':'Sms','model':a1051_0x1068f2(0x1ce),'event':a1051_0x1068f2(0x1dc),'condition':a1051_0x1068f2(0x1d2),'callback':afterCreateMessage},{'channel':a1051_0x1068f2(0x1c5),'model':a1051_0x1068f2(0x1e3),'event':'afterCreate','condition':a1051_0x1068f2(0x1d4),'callback':afterCreate},{'channel':'Whatsapp','model':'WhatsappInteraction','event':a1051_0x1068f2(0x1c9),'condition':a1051_0x1068f2(0x1be),'callback':afterUpdate},{'channel':a1051_0x1068f2(0x1c5),'model':a1051_0x1068f2(0x1ca),'event':'afterCreate','condition':a1051_0x1068f2(0x1d2),'callback':afterCreateMessage},{'channel':a1051_0x1068f2(0x1d6),'model':a1051_0x1068f2(0x1b4),'event':a1051_0x1068f2(0x1dc),'condition':a1051_0x1068f2(0x1d4),'callback':afterCreate},{'channel':a1051_0x1068f2(0x1d6),'model':a1051_0x1068f2(0x1b4),'event':a1051_0x1068f2(0x1c9),'condition':a1051_0x1068f2(0x1be),'callback':afterUpdate},{'channel':a1051_0x1068f2(0x1d6),'model':a1051_0x1068f2(0x1cb),'event':a1051_0x1068f2(0x1dc),'condition':a1051_0x1068f2(0x1d2),'callback':afterCreateMessage},{'channel':'Mail','model':a1051_0x1068f2(0x1c1),'event':a1051_0x1068f2(0x1dc),'condition':a1051_0x1068f2(0x1d4),'callback':afterCreate},{'channel':a1051_0x1068f2(0x1c2),'model':a1051_0x1068f2(0x1c1),'event':a1051_0x1068f2(0x1c9),'condition':a1051_0x1068f2(0x1be),'callback':afterUpdate},{'channel':a1051_0x1068f2(0x1c2),'model':'MailMessage','event':a1051_0x1068f2(0x1dc),'condition':a1051_0x1068f2(0x1d2),'callback':afterCreateMessage},{'channel':a1051_0x1068f2(0x1d3),'model':'OpenchannelInteraction','event':a1051_0x1068f2(0x1dc),'condition':a1051_0x1068f2(0x1d4),'callback':afterCreate},{'channel':a1051_0x1068f2(0x1d3),'model':a1051_0x1068f2(0x1cd),'event':'afterUpdate','condition':a1051_0x1068f2(0x1be),'callback':afterUpdate},{'channel':a1051_0x1068f2(0x1d3),'model':a1051_0x1068f2(0x1e4),'event':a1051_0x1068f2(0x1dc),'condition':'newmessage','callback':afterCreateMessage}];function request(_0xd61d6){const _0x453cc2=a1051_0x1068f2;return client[_0x453cc2(0x1b5)]('EventManager',_0xd61d6)[_0x453cc2(0x1da)](function(_0x33d59f){const _0x39e41c=_0x453cc2;logger['info']('Trigger,\x20%s',_0x39e41c(0x1d9),_0x33d59f),_0x33d59f[_0x39e41c(0x1c3)]&&(_0x33d59f[_0x39e41c(0x1c3)][_0x39e41c(0x1e7)]===0x1f4&&logger[_0x39e41c(0x1c3)](_0x39e41c(0x1e1),_0x39e41c(0x1d9),_0x33d59f[_0x39e41c(0x1c3)]));})[_0x453cc2(0x1e8)](function(_0x319049){const _0x3af508=_0x453cc2;logger[_0x3af508(0x1c3)](_0x3af508(0x1e1),'EventManager',_0x319049);});}function afterCreateMessage(_0x302332){return function(_0x34a995){const _0x21868e=a1051_0x56c8;return _0x34a995=_0x34a995[_0x21868e(0x1d5)]({'plain':!![]}),_0x34a995['channel']=_0x302332,_0x34a995[_0x21868e(0x1c7)]=_0x34a995[_0x21868e(0x1c8)],_0x34a995[_0x21868e(0x1db)]?db[_0x21868e(0x1c0)][_0x21868e(0x1b2)]({'where':{'id':_0x34a995['UserId']},'attributes':['id','name'],'raw':!![]})['then'](function(_0x1b6a6c){const _0x45a19d=_0x21868e;return _0x34a995[_0x45a19d(0x1e6)]=util[_0x45a19d(0x1b8)](_0x45a19d(0x1e2),_0x1b6a6c[_0x45a19d(0x1bc)]),_0x34a995[_0x45a19d(0x1c4)]=_0x302332,request({'event':_0x45a19d(0x1d8),'message':_0x34a995});})[_0x21868e(0x1e8)](function(_0x2ffdb9){const _0x33c17b=_0x21868e;console[_0x33c17b(0x1c3)](_0x2ffdb9);}):request({'event':_0x21868e(0x1cf),'message':_0x34a995});};}function afterCreate(_0x42e742,_0x2e023b){return function(_0x43c731){const _0x2b8763=a1051_0x56c8;return _0x43c731=_0x43c731[_0x2b8763(0x1d5)]({'plain':!![]}),_0x43c731[_0x2b8763(0x1c4)]=_0x42e742,_0x43c731[_0x2b8763(0x1c7)]=_0x2b8763(0x1d1),request({'event':_0x2e023b,'message':_0x43c731});};}function afterUpdate(_0x55f86d,_0x438c0b){return function(_0x1734dd){const _0x8cf8b=a1051_0x56c8;if(_0x1734dd[_0x8cf8b(0x1b6)]('closed')&&_0x1734dd[_0x8cf8b(0x1dd)])return _0x1734dd=_0x1734dd[_0x8cf8b(0x1d5)]({'plain':!![]}),_0x1734dd[_0x8cf8b(0x1c4)]=_0x55f86d,_0x1734dd[_0x8cf8b(0x1c7)]='closed',_0x1734dd[_0x8cf8b(0x1db)]?db[_0x8cf8b(0x1c0)][_0x8cf8b(0x1b2)]({'where':{'id':_0x1734dd['UserId']},'attributes':['id',_0x8cf8b(0x1bc)],'raw':!![]})[_0x8cf8b(0x1da)](function(_0x38f235){const _0x249ffc=_0x8cf8b;return _0x1734dd[_0x249ffc(0x1e6)]=util[_0x249ffc(0x1b8)]('SIP/%s',_0x38f235['name']),request({'event':_0x438c0b,'message':_0x1734dd});})['catch'](function(_0x28c07e){console['error'](_0x28c07e);}):request({'event':_0x438c0b,'message':_0x1734dd});};}function triggers(){const _0x387ade=a1051_0x1068f2;for(let _0xeabd82=0x0;_0xeabd82=_0x44effd[_0x3e9f89(0x87)])throw Error(_0x3e9f89(0x90));_0x526207(_0x40dc4f);})[_0x40cd96(0x8c)](function(_0x5ecf73){_0x410089(_0x5ecf73);});});}; \ No newline at end of file +const a1052_0x14cb=['role','clearBlockUser','includes','agents','./license/util','../mysqldb','getChannels','whatsapp','chat','catch','sequelize','voice','sms','mail','fax','Maximum\x20login\x20has\x20been\x20reached','getLicense','isValidChannel','update','blockedAt','lodash','isUndefined','then','User'];(function(_0x5bee2f,_0x46f08e){const _0x14cb3d=function(_0x111e45){while(--_0x111e45){_0x5bee2f['push'](_0x5bee2f['shift']());}};_0x14cb3d(++_0x46f08e);}(a1052_0x14cb,0xf1));const a1052_0x111e=function(_0x5bee2f,_0x46f08e){_0x5bee2f=_0x5bee2f-0xf6;let _0x14cb3d=a1052_0x14cb[_0x5bee2f];return _0x14cb3d;};const a1052_0x155acf=a1052_0x111e;'use strict';const _=require(a1052_0x155acf(0x109)),{db}=require(a1052_0x155acf(0xfa)),util=require(a1052_0x155acf(0xf9)),{Op}=require(a1052_0x155acf(0xff)),channels=[a1052_0x155acf(0x100),a1052_0x155acf(0x102),a1052_0x155acf(0xfd),a1052_0x155acf(0x103),a1052_0x155acf(0x101),a1052_0x155acf(0xfc),'openchannel'];exports[a1052_0x155acf(0xfb)]=function(){return channels;},exports[a1052_0x155acf(0x106)]=function(_0x240414){const _0x498a81=a1052_0x155acf;return _0x240414=_0x240414['toLowerCase'](),_[_0x498a81(0xf7)](channels,_0x240414);},exports[a1052_0x155acf(0xf6)]=function(_0x3fe689,_0xc19626,_0x274b9c,_0x2d7645){const _0x1d61d7=a1052_0x155acf,_0x5656f0={'loginAttempts':_0xc19626,'blocked':_0x274b9c};return!_[_0x1d61d7(0x10a)](_0x2d7645)&&(_0x5656f0[_0x1d61d7(0x108)]=_0x2d7645),_0x3fe689[_0x1d61d7(0x107)](_0x5656f0);},exports[a1052_0x155acf(0x105)]=function(_0x1c0c8e){return new Promise(function(_0x4d6900,_0x40e53d){const _0xaa0a20=a1052_0x111e;let _0x26c83e=0x0;_0x1c0c8e[_0xaa0a20(0x10d)]!=='agent'&&_0x4d6900(_0x1c0c8e),db[_0xaa0a20(0x10c)]['count']({'where':{'role':'agent','online':!![],'id':{[Op['ne']]:_0x1c0c8e['id']}}})['then'](function(_0x58898b){const _0xa3a521=_0xaa0a20;return _0x26c83e=_0x58898b,util[_0xa3a521(0x105)]();})[_0xaa0a20(0x10b)](function(_0x1c1677){const _0x21ddd0=_0xaa0a20;if(_0x1c1677&&_0x1c1677[_0x21ddd0(0xf8)]&&_0x26c83e>=_0x1c1677[_0x21ddd0(0xf8)])throw Error(_0x21ddd0(0x104));_0x4d6900(_0x1c0c8e);})[_0xaa0a20(0xfe)](function(_0x315453){_0x40e53d(_0x315453);});});}; \ No newline at end of file diff --git a/server/errors/index.js b/server/errors/index.js index a67a588..db80aec 100644 --- a/server/errors/index.js +++ b/server/errors/index.js @@ -1 +1 @@ -const a1053_0x456b=['render','send','status','404','json'];(function(_0x44f4ea,_0x5528b0){const _0x456b38=function(_0x1963eb){while(--_0x1963eb){_0x44f4ea['push'](_0x44f4ea['shift']());}};_0x456b38(++_0x5528b0);}(a1053_0x456b,0x183));const a1053_0x1963=function(_0x44f4ea,_0x5528b0){_0x44f4ea=_0x44f4ea-0x107;let _0x456b38=a1053_0x456b[_0x44f4ea];return _0x456b38;};'use strict';module['exports'][0x194]=function pageNotFound(_0x35f73d,_0x3cc8d9){const _0x26c32a=a1053_0x1963,_0x250d37=_0x26c32a(0x108),_0x505813=0x194,_0x20fa58={'status':_0x505813};_0x3cc8d9[_0x26c32a(0x107)](_0x20fa58[_0x26c32a(0x107)]),_0x3cc8d9[_0x26c32a(0x10a)](_0x250d37,{},function(_0x2825a4,_0x50f437){const _0xd3ba4e=_0x26c32a;if(_0x2825a4)return _0x3cc8d9[_0xd3ba4e(0x107)](_0x20fa58[_0xd3ba4e(0x107)])[_0xd3ba4e(0x109)](_0x20fa58);_0x3cc8d9[_0xd3ba4e(0x10b)](_0x50f437);});}; \ No newline at end of file +const a1053_0x35d8=['status','send','404','exports','json'];(function(_0x3e9fae,_0x8f1658){const _0x35d806=function(_0x53d267){while(--_0x53d267){_0x3e9fae['push'](_0x3e9fae['shift']());}};_0x35d806(++_0x8f1658);}(a1053_0x35d8,0x87));const a1053_0x53d2=function(_0x3e9fae,_0x8f1658){_0x3e9fae=_0x3e9fae-0x179;let _0x35d806=a1053_0x35d8[_0x3e9fae];return _0x35d806;};const a1053_0x9d6ae6=a1053_0x53d2;'use strict';module[a1053_0x9d6ae6(0x17c)][0x194]=function pageNotFound(_0x36c5e7,_0x2fba0b){const _0x23c23c=a1053_0x9d6ae6,_0x144b4c=_0x23c23c(0x17b),_0x1a03fd=0x194,_0x37f115={'status':_0x1a03fd};_0x2fba0b['status'](_0x37f115[_0x23c23c(0x179)]),_0x2fba0b['render'](_0x144b4c,{},function(_0x32fd65,_0x481474){const _0x2c82a0=_0x23c23c;if(_0x32fd65)return _0x2fba0b[_0x2c82a0(0x179)](_0x37f115[_0x2c82a0(0x179)])[_0x2c82a0(0x17d)](_0x37f115);_0x2fba0b[_0x2c82a0(0x17a)](_0x481474);});}; \ No newline at end of file diff --git a/server/globals.js b/server/globals.js index 87ee2f1..a5860a6 100644 --- a/server/globals.js +++ b/server/globals.js @@ -1 +1 @@ -const a1054_0x3e88=['path','appRoot','resolve'];(function(_0x32f3eb,_0x41cd4a){const _0x3e8892=function(_0x2d9c89){while(--_0x2d9c89){_0x32f3eb['push'](_0x32f3eb['shift']());}};_0x3e8892(++_0x41cd4a);}(a1054_0x3e88,0x129));const a1054_0x2d9c=function(_0x32f3eb,_0x41cd4a){_0x32f3eb=_0x32f3eb-0x162;let _0x3e8892=a1054_0x3e88[_0x32f3eb];return _0x3e8892;};const a1054_0x42c867=a1054_0x2d9c,path=require(a1054_0x42c867(0x162));!global[a1054_0x42c867(0x163)]&&(global[a1054_0x42c867(0x163)]=path[a1054_0x42c867(0x164)](__dirname)); \ No newline at end of file +const a1054_0x5c69=['appRoot','resolve'];(function(_0x2d95ea,_0x9f3515){const _0x5c690d=function(_0x382c4f){while(--_0x382c4f){_0x2d95ea['push'](_0x2d95ea['shift']());}};_0x5c690d(++_0x9f3515);}(a1054_0x5c69,0xf0));const a1054_0x382c=function(_0x2d95ea,_0x9f3515){_0x2d95ea=_0x2d95ea-0x123;let _0x5c690d=a1054_0x5c69[_0x2d95ea];return _0x5c690d;};const a1054_0x39a374=a1054_0x382c,path=require('path');!global[a1054_0x39a374(0x123)]&&(global['appRoot']=path[a1054_0x39a374(0x124)](__dirname)); \ No newline at end of file diff --git a/server/migrations/2.0.12.js b/server/migrations/2.0.12.js index 12143c4..a5dbf80 100644 --- a/server/migrations/2.0.12.js +++ b/server/migrations/2.0.12.js @@ -1 +1 @@ -'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file +var a1055_0x3cf4=['exports'];(function(_0x53f4e9,_0x2c159c){var _0x3cf423=function(_0x2ebb29){while(--_0x2ebb29){_0x53f4e9['push'](_0x53f4e9['shift']());}};_0x3cf423(++_0x2c159c);}(a1055_0x3cf4,0x170));var a1055_0x2ebb=function(_0x53f4e9,_0x2c159c){_0x53f4e9=_0x53f4e9-0xfa;var _0x3cf423=a1055_0x3cf4[_0x53f4e9];return _0x3cf423;};var a1055_0x2cb77a=a1055_0x2ebb;'use strict';module[a1055_0x2cb77a(0xfa)]={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.13.js b/server/migrations/2.0.13.js index fd6af61..694af3b 100644 --- a/server/migrations/2.0.13.js +++ b/server/migrations/2.0.13.js @@ -1 +1 @@ -const a1056_0x2ec8=['then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','../config/logger','rescheduled','stringify','info','phoneBarRingInUse','renameColumn','deleted','reschedule','cm_hopper_final','catch','prototype','addColumn','users','deletedat','DATE','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','removeColumn','exports'];(function(_0x219af3,_0x519318){const _0x2ec8f5=function(_0x1e7450){while(--_0x1e7450){_0x219af3['push'](_0x219af3['shift']());}};_0x2ec8f5(++_0x519318);}(a1056_0x2ec8,0x11f));const a1056_0x1e74=function(_0x219af3,_0x519318){_0x219af3=_0x219af3-0x1c0;let _0x2ec8f5=a1056_0x2ec8[_0x219af3];return _0x2ec8f5;};const a1056_0x5c61d2=a1056_0x1e74;'use strict';const logger=require(a1056_0x5c61d2(0x1c2))('migration'),Migration=function(_0x17e01e){this['queryInterface']=_0x17e01e;};Migration[a1056_0x5c61d2(0x1cc)][a1056_0x5c61d2(0x1cd)]=function(_0x495943,_0x1407ca,_0x16271e){const _0x57561c=a1056_0x5c61d2;return this[_0x57561c(0x1c1)][_0x57561c(0x1cd)](_0x495943,_0x1407ca,_0x16271e)[_0x57561c(0x1d5)](function(){const _0x48a996=_0x57561c;logger[_0x48a996(0x1c5)](_0x48a996(0x1d1),_0x1407ca,_0x495943);})['catch'](function(_0x2a4682){logger['info'](JSON['stringify'](_0x2a4682));});},Migration[a1056_0x5c61d2(0x1cc)]['removeColumn']=function(_0x3cd211,_0x48118f){const _0x15692d=a1056_0x5c61d2;return this[_0x15692d(0x1c1)]['removeColumn'](_0x3cd211,_0x48118f)[_0x15692d(0x1d5)](function(){const _0x16db9e=_0x15692d;logger[_0x16db9e(0x1c5)](_0x16db9e(0x1d2),_0x48118f,_0x3cd211);})[_0x15692d(0x1cb)](function(_0x2192d9){const _0x44bcfd=_0x15692d;logger[_0x44bcfd(0x1c5)](JSON[_0x44bcfd(0x1c4)](_0x2192d9));});},Migration[a1056_0x5c61d2(0x1cc)]['renameColumn']=function(_0x1be0cb,_0x4d0f56,_0x444f7a){const _0x311ced=a1056_0x5c61d2;return this[_0x311ced(0x1c1)][_0x311ced(0x1c7)](_0x1be0cb,_0x4d0f56,_0x444f7a)[_0x311ced(0x1d5)](function(){const _0x5c49d5=_0x311ced;logger['info'](_0x5c49d5(0x1c0),_0x4d0f56,_0x444f7a,_0x1be0cb);})[_0x311ced(0x1cb)](function(_0x42bc04){const _0x3f3894=_0x311ced;logger[_0x3f3894(0x1c5)](JSON[_0x3f3894(0x1c4)](_0x42bc04));});},module[a1056_0x5c61d2(0x1d4)]={'up':function(_0x19f65c,_0x19e6ba){const _0x1c48b2=a1056_0x5c61d2,_0x2c6a22=new Migration(_0x19f65c);_0x2c6a22['addColumn'](_0x1c48b2(0x1ca),_0x1c48b2(0x1cf),{'type':_0x19e6ba[_0x1c48b2(0x1d0)]}),_0x2c6a22[_0x1c48b2(0x1cd)](_0x1c48b2(0x1ce),_0x1c48b2(0x1c6),{'type':_0x19e6ba['BOOLEAN'],'defaultValue':![]}),_0x2c6a22[_0x1c48b2(0x1cd)](_0x1c48b2(0x1ca),_0x1c48b2(0x1c8),{'type':_0x19e6ba['STRING'],'defaultValue':null}),_0x2c6a22['renameColumn'](_0x1c48b2(0x1ca),_0x1c48b2(0x1c9),_0x1c48b2(0x1c3));},'down':function(_0x2c9171,_0x36894b){const _0x139342=a1056_0x5c61d2,_0x4099a8=new Migration(_0x2c9171,_0x36894b);_0x4099a8[_0x139342(0x1d3)]('users',_0x139342(0x1c6)),_0x4099a8['removeColumn'](_0x139342(0x1ca),_0x139342(0x1cf)),_0x4099a8[_0x139342(0x1d3)](_0x139342(0x1ca),_0x139342(0x1c8)),_0x4099a8['renameColumn'](_0x139342(0x1ca),_0x139342(0x1c3),_0x139342(0x1c9));}}; \ No newline at end of file +const a1056_0x4ba9=['DATE','reschedule','Added\x20column\x20%s\x20to\x20%s','STRING','removeColumn','deletedat','../config/logger','queryInterface','BOOLEAN','then','cm_hopper_final','prototype','stringify','migration','catch','users','renameColumn','Removed\x20column\x20%s\x20from\x20%s','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','rescheduled'];(function(_0x44d84b,_0x2c4afa){const _0x4ba963=function(_0x5caaee){while(--_0x5caaee){_0x44d84b['push'](_0x44d84b['shift']());}};_0x4ba963(++_0x2c4afa);}(a1056_0x4ba9,0x130));const a1056_0x5caa=function(_0x44d84b,_0x2c4afa){_0x44d84b=_0x44d84b-0x78;let _0x4ba963=a1056_0x4ba9[_0x44d84b];return _0x4ba963;};const a1056_0x189445=a1056_0x5caa;'use strict';const logger=require(a1056_0x189445(0x82))(a1056_0x189445(0x89)),Migration=function(_0x38b824){const _0x54551d=a1056_0x189445;this[_0x54551d(0x83)]=_0x38b824;};Migration[a1056_0x189445(0x87)]['addColumn']=function(_0x2e0719,_0x961632,_0x596761){const _0x20dec5=a1056_0x189445;return this[_0x20dec5(0x83)][_0x20dec5(0x7a)](_0x2e0719,_0x961632,_0x596761)['then'](function(){const _0x14f142=_0x20dec5;logger[_0x14f142(0x78)](_0x14f142(0x7e),_0x961632,_0x2e0719);})[_0x20dec5(0x8a)](function(_0x4b39ff){const _0x3585e8=_0x20dec5;logger[_0x3585e8(0x78)](JSON[_0x3585e8(0x88)](_0x4b39ff));});},Migration['prototype'][a1056_0x189445(0x80)]=function(_0x137c38,_0x38d3c4){const _0xd263cf=a1056_0x189445;return this['queryInterface'][_0xd263cf(0x80)](_0x137c38,_0x38d3c4)[_0xd263cf(0x85)](function(){const _0x442f6c=_0xd263cf;logger[_0x442f6c(0x78)](_0x442f6c(0x8d),_0x38d3c4,_0x137c38);})[_0xd263cf(0x8a)](function(_0xc54d6a){const _0x3f3748=_0xd263cf;logger['info'](JSON[_0x3f3748(0x88)](_0xc54d6a));});},Migration[a1056_0x189445(0x87)]['renameColumn']=function(_0x23a5c5,_0x39b5ef,_0x48007d){const _0x231ce3=a1056_0x189445;return this[_0x231ce3(0x83)][_0x231ce3(0x8c)](_0x23a5c5,_0x39b5ef,_0x48007d)[_0x231ce3(0x85)](function(){const _0x2ed365=_0x231ce3;logger[_0x2ed365(0x78)](_0x2ed365(0x79),_0x39b5ef,_0x48007d,_0x23a5c5);})[_0x231ce3(0x8a)](function(_0x372eff){const _0x55590c=_0x231ce3;logger[_0x55590c(0x78)](JSON['stringify'](_0x372eff));});},module['exports']={'up':function(_0xd56131,_0x156722){const _0x5b8b14=a1056_0x189445,_0x5313b8=new Migration(_0xd56131);_0x5313b8[_0x5b8b14(0x7a)](_0x5b8b14(0x86),_0x5b8b14(0x81),{'type':_0x156722[_0x5b8b14(0x7c)]}),_0x5313b8['addColumn'](_0x5b8b14(0x8b),'phoneBarRingInUse',{'type':_0x156722[_0x5b8b14(0x84)],'defaultValue':![]}),_0x5313b8[_0x5b8b14(0x7a)](_0x5b8b14(0x86),'deleted',{'type':_0x156722[_0x5b8b14(0x7f)],'defaultValue':null}),_0x5313b8['renameColumn'](_0x5b8b14(0x86),_0x5b8b14(0x7d),'rescheduled');},'down':function(_0x14b7f9,_0x534ac7){const _0x35fb62=a1056_0x189445,_0x4d5f43=new Migration(_0x14b7f9,_0x534ac7);_0x4d5f43[_0x35fb62(0x80)](_0x35fb62(0x8b),'phoneBarRingInUse'),_0x4d5f43[_0x35fb62(0x80)]('cm_hopper_final',_0x35fb62(0x81)),_0x4d5f43[_0x35fb62(0x80)](_0x35fb62(0x86),'deleted'),_0x4d5f43[_0x35fb62(0x8c)](_0x35fb62(0x86),_0x35fb62(0x7b),_0x35fb62(0x7d));}}; \ No newline at end of file diff --git a/server/migrations/2.0.14.js b/server/migrations/2.0.14.js index 1d9d9ad..8004152 100644 --- a/server/migrations/2.0.14.js +++ b/server/migrations/2.0.14.js @@ -1 +1 @@ -var a1057_0x8328=['exports'];(function(_0x55f1dc,_0x263635){var _0x8328d7=function(_0xe36c43){while(--_0xe36c43){_0x55f1dc['push'](_0x55f1dc['shift']());}};_0x8328d7(++_0x263635);}(a1057_0x8328,0x1ec));var a1057_0xe36c=function(_0x55f1dc,_0x263635){_0x55f1dc=_0x55f1dc-0x13c;var _0x8328d7=a1057_0x8328[_0x55f1dc];return _0x8328d7;};var a1057_0x513e08=a1057_0xe36c;'use strict';module[a1057_0x513e08(0x13c)]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a1057_0x57ad=['exports'];(function(_0x2991bc,_0x2022fd){var _0x57ad32=function(_0x1558c0){while(--_0x1558c0){_0x2991bc['push'](_0x2991bc['shift']());}};_0x57ad32(++_0x2022fd);}(a1057_0x57ad,0x1ef));var a1057_0x1558=function(_0x2991bc,_0x2022fd){_0x2991bc=_0x2991bc-0xf9;var _0x57ad32=a1057_0x57ad[_0x2991bc];return _0x57ad32;};var a1057_0x4b0e14=a1057_0x1558;'use strict';module[a1057_0x4b0e14(0xf9)]={'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 0400ae5..1e3189b 100644 --- a/server/migrations/2.0.15.js +++ b/server/migrations/2.0.15.js @@ -1 +1 @@ -var a1058_0x1f25=['exports'];(function(_0x6a17,_0x76a03d){var _0x1f258d=function(_0x3fceb6){while(--_0x3fceb6){_0x6a17['push'](_0x6a17['shift']());}};_0x1f258d(++_0x76a03d);}(a1058_0x1f25,0xea));var a1058_0x3fce=function(_0x6a17,_0x76a03d){_0x6a17=_0x6a17-0x14e;var _0x1f258d=a1058_0x1f25[_0x6a17];return _0x1f258d;};var a1058_0x576978=a1058_0x3fce;'use strict';module[a1058_0x576978(0x14e)]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a1058_0x2db4=['exports'];(function(_0x49b9a0,_0x3c8fd8){var _0x2db42c=function(_0x42b380){while(--_0x42b380){_0x49b9a0['push'](_0x49b9a0['shift']());}};_0x2db42c(++_0x3c8fd8);}(a1058_0x2db4,0x117));var a1058_0x42b3=function(_0x49b9a0,_0x3c8fd8){_0x49b9a0=_0x49b9a0-0xc3;var _0x2db42c=a1058_0x2db4[_0x49b9a0];return _0x2db42c;};var a1058_0x361e46=a1058_0x42b3;'use strict';module[a1058_0x361e46(0xc3)]={'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 14aa96b..c1727f0 100644 --- a/server/migrations/2.0.16.js +++ b/server/migrations/2.0.16.js @@ -1 +1 @@ -var a1059_0x5618=['exports'];(function(_0x17a2bc,_0x4da82d){var _0x5618e3=function(_0xc5d429){while(--_0xc5d429){_0x17a2bc['push'](_0x17a2bc['shift']());}};_0x5618e3(++_0x4da82d);}(a1059_0x5618,0x1b0));var a1059_0xc5d4=function(_0x17a2bc,_0x4da82d){_0x17a2bc=_0x17a2bc-0x144;var _0x5618e3=a1059_0x5618[_0x17a2bc];return _0x5618e3;};var a1059_0x3d9d7d=a1059_0xc5d4;'use strict';module[a1059_0x3d9d7d(0x144)]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a1059_0x1f6f=['exports'];(function(_0x10cadf,_0x3e20a1){var _0x1f6f72=function(_0x27c47d){while(--_0x27c47d){_0x10cadf['push'](_0x10cadf['shift']());}};_0x1f6f72(++_0x3e20a1);}(a1059_0x1f6f,0x167));var a1059_0x27c4=function(_0x10cadf,_0x3e20a1){_0x10cadf=_0x10cadf-0xc0;var _0x1f6f72=a1059_0x1f6f[_0x10cadf];return _0x1f6f72;};var a1059_0x5f259f=a1059_0x27c4;'use strict';module[a1059_0x5f259f(0xc0)]={'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 4d9bb35..887423d 100644 --- a/server/migrations/2.0.17.js +++ b/server/migrations/2.0.17.js @@ -1 +1 @@ -var a1060_0x4be9=['exports'];(function(_0x1e8e6b,_0x3363da){var _0x4be9bf=function(_0x2331aa){while(--_0x2331aa){_0x1e8e6b['push'](_0x1e8e6b['shift']());}};_0x4be9bf(++_0x3363da);}(a1060_0x4be9,0xf8));var a1060_0x2331=function(_0x1e8e6b,_0x3363da){_0x1e8e6b=_0x1e8e6b-0x1c8;var _0x4be9bf=a1060_0x4be9[_0x1e8e6b];return _0x4be9bf;};var a1060_0x1de710=a1060_0x2331;'use strict';module[a1060_0x1de710(0x1c8)]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a1060_0x2dc3=['exports'];(function(_0x5b8dd2,_0x2632b8){var _0x2dc3bf=function(_0x167fa1){while(--_0x167fa1){_0x5b8dd2['push'](_0x5b8dd2['shift']());}};_0x2dc3bf(++_0x2632b8);}(a1060_0x2dc3,0xcf));var a1060_0x167f=function(_0x5b8dd2,_0x2632b8){_0x5b8dd2=_0x5b8dd2-0x6c;var _0x2dc3bf=a1060_0x2dc3[_0x5b8dd2];return _0x2dc3bf;};var a1060_0x3a729b=a1060_0x167f;'use strict';module[a1060_0x3a729b(0x6c)]={'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 9d619d6..12143c4 100644 --- a/server/migrations/2.0.18.js +++ b/server/migrations/2.0.18.js @@ -1 +1 @@ -var a1061_0x3c4f=['exports'];(function(_0x154f25,_0x27fac1){var _0x3c4fe7=function(_0x21eeaf){while(--_0x21eeaf){_0x154f25['push'](_0x154f25['shift']());}};_0x3c4fe7(++_0x27fac1);}(a1061_0x3c4f,0x172));var a1061_0x21ee=function(_0x154f25,_0x27fac1){_0x154f25=_0x154f25-0x1a5;var _0x3c4fe7=a1061_0x3c4f[_0x154f25];return _0x3c4fe7;};var a1061_0x2a7b67=a1061_0x21ee;'use strict';module[a1061_0x2a7b67(0x1a5)]={'up':function(){},'down':function(){}}; \ No newline at end of file +'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.19.js b/server/migrations/2.0.19.js index f59d5d1..6ea124f 100644 --- a/server/migrations/2.0.19.js +++ b/server/migrations/2.0.19.js @@ -1 +1 @@ -var a1062_0x18cb=['exports'];(function(_0x187234,_0x2f06ac){var _0x18cb3e=function(_0x445ed2){while(--_0x445ed2){_0x187234['push'](_0x187234['shift']());}};_0x18cb3e(++_0x2f06ac);}(a1062_0x18cb,0xac));var a1062_0x445e=function(_0x187234,_0x2f06ac){_0x187234=_0x187234-0x11a;var _0x18cb3e=a1062_0x18cb[_0x187234];return _0x18cb3e;};var a1062_0x152d91=a1062_0x445e;'use strict';module[a1062_0x152d91(0x11a)]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a1062_0xf18f=['exports'];(function(_0x5c5175,_0x2c6be6){var _0xf18fea=function(_0x1e32fc){while(--_0x1e32fc){_0x5c5175['push'](_0x5c5175['shift']());}};_0xf18fea(++_0x2c6be6);}(a1062_0xf18f,0x1d3));var a1062_0x1e32=function(_0x5c5175,_0x2c6be6){_0x5c5175=_0x5c5175-0xbe;var _0xf18fea=a1062_0xf18f[_0x5c5175];return _0xf18fea;};var a1062_0x38aff9=a1062_0x1e32;'use strict';module[a1062_0x38aff9(0xbe)]={'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 49546d1..6bb4222 100644 --- a/server/migrations/2.0.20.js +++ b/server/migrations/2.0.20.js @@ -1 +1 @@ -const a1063_0x59e4=['catch','Removed\x20column\x20%s\x20from\x20%s','exports','info','report_jscripty_questions','prototype','report_jscripty_inputs','table\x20dropped\x20%s','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','migration','report_jscripty_sessions','stringify','renameColumn','removeColumn','dropTable','jscripty_projects'];(function(_0x41cdb3,_0x5a1af3){const _0x59e4a4=function(_0x5a6348){while(--_0x5a6348){_0x41cdb3['push'](_0x41cdb3['shift']());}};_0x59e4a4(++_0x5a1af3);}(a1063_0x59e4,0xc7));const a1063_0x5a63=function(_0x41cdb3,_0x5a1af3){_0x41cdb3=_0x41cdb3-0x14c;let _0x59e4a4=a1063_0x59e4[_0x41cdb3];return _0x59e4a4;};const a1063_0x372c66=a1063_0x5a63;'use strict';const logger=require('../config/logger')(a1063_0x372c66(0x156)),Migration=function(_0x17c699){this['queryInterface']=_0x17c699;};Migration[a1063_0x372c66(0x150)]['addColumn']=function(_0x1d8289,_0x23fec8,_0x3f919e){const _0x3bddb8=a1063_0x372c66;return this[_0x3bddb8(0x155)]['addColumn'](_0x1d8289,_0x23fec8,_0x3f919e)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x23fec8,_0x1d8289);})['catch'](function(_0x52ec55){const _0x4c50d3=_0x3bddb8;logger[_0x4c50d3(0x14e)](JSON[_0x4c50d3(0x158)](_0x52ec55));});},Migration['prototype'][a1063_0x372c66(0x15a)]=function(_0x4472fa,_0x985dde){const _0x174400=a1063_0x372c66;return this[_0x174400(0x155)]['removeColumn'](_0x4472fa,_0x985dde)['then'](function(){const _0x5d54ae=_0x174400;logger['info'](_0x5d54ae(0x14c),_0x985dde,_0x4472fa);})[_0x174400(0x15d)](function(_0x57ab8c){const _0x13f2bf=_0x174400;logger[_0x13f2bf(0x14e)](JSON[_0x13f2bf(0x158)](_0x57ab8c));});},Migration['prototype'][a1063_0x372c66(0x159)]=function(_0x34f070,_0xc45821,_0x3c4f41){const _0x292b8c=a1063_0x372c66;return this[_0x292b8c(0x155)][_0x292b8c(0x159)](_0x34f070,_0xc45821,_0x3c4f41)[_0x292b8c(0x153)](function(){const _0x32d1b2=_0x292b8c;logger['info'](_0x32d1b2(0x154),_0xc45821,_0x3c4f41,_0x34f070);})[_0x292b8c(0x15d)](function(_0x1aea02){const _0x152b3b=_0x292b8c;logger[_0x152b3b(0x14e)](JSON[_0x152b3b(0x158)](_0x1aea02));});},Migration['prototype']['dropTable']=function(_0x1eae69){const _0xf95905=a1063_0x372c66;return this[_0xf95905(0x155)][_0xf95905(0x15b)](_0x1eae69)[_0xf95905(0x153)](function(){const _0x184b33=_0xf95905;logger[_0x184b33(0x14e)](_0x184b33(0x152),_0x1eae69);})[_0xf95905(0x15d)](function(_0x2c434c){const _0x34996c=_0xf95905;logger['info'](JSON[_0x34996c(0x158)](_0x2c434c));});},module[a1063_0x372c66(0x14d)]={'up':function(_0x3951a8){const _0x57c247=a1063_0x372c66,_0x3b897b=new Migration(_0x3951a8);_0x3b897b[_0x57c247(0x15b)](_0x57c247(0x15c)),_0x3b897b[_0x57c247(0x15b)](_0x57c247(0x151)),_0x3b897b[_0x57c247(0x15b)](_0x57c247(0x14f)),_0x3b897b[_0x57c247(0x15b)](_0x57c247(0x157));},'down':function(){}}; \ No newline at end of file +const a1063_0x35ce=['report_jscripty_questions','../config/logger','exports','report_jscripty_inputs','info','queryInterface','addColumn','prototype','renameColumn','migration','then','stringify','dropTable','report_jscripty_sessions','catch','table\x20dropped\x20%s'];(function(_0xc4f5fa,_0x156f29){const _0x35ce7a=function(_0x4e3ee2){while(--_0x4e3ee2){_0xc4f5fa['push'](_0xc4f5fa['shift']());}};_0x35ce7a(++_0x156f29);}(a1063_0x35ce,0xec));const a1063_0x4e3e=function(_0xc4f5fa,_0x156f29){_0xc4f5fa=_0xc4f5fa-0x122;let _0x35ce7a=a1063_0x35ce[_0xc4f5fa];return _0x35ce7a;};const a1063_0x531a89=a1063_0x4e3e;'use strict';const logger=require(a1063_0x531a89(0x127))(a1063_0x531a89(0x12f)),Migration=function(_0x3dd951){const _0x295ad8=a1063_0x531a89;this[_0x295ad8(0x12b)]=_0x3dd951;};Migration[a1063_0x531a89(0x12d)][a1063_0x531a89(0x12c)]=function(_0x50a75c,_0x4433b9,_0x3ed0dd){const _0x97e6d0=a1063_0x531a89;return this[_0x97e6d0(0x12b)][_0x97e6d0(0x12c)](_0x50a75c,_0x4433b9,_0x3ed0dd)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x4433b9,_0x50a75c);})['catch'](function(_0x5dfc8f){const _0x2064bf=_0x97e6d0;logger['info'](JSON[_0x2064bf(0x131)](_0x5dfc8f));});},Migration[a1063_0x531a89(0x12d)]['removeColumn']=function(_0x3c7d92,_0x490d39){const _0x51515f=a1063_0x531a89;return this['queryInterface']['removeColumn'](_0x3c7d92,_0x490d39)[_0x51515f(0x130)](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x490d39,_0x3c7d92);})[_0x51515f(0x124)](function(_0x421e16){const _0x1f9434=_0x51515f;logger[_0x1f9434(0x12a)](JSON['stringify'](_0x421e16));});},Migration[a1063_0x531a89(0x12d)][a1063_0x531a89(0x12e)]=function(_0x18df4e,_0x134e17,_0x370cd3){const _0x35ad6f=a1063_0x531a89;return this[_0x35ad6f(0x12b)][_0x35ad6f(0x12e)](_0x18df4e,_0x134e17,_0x370cd3)[_0x35ad6f(0x130)](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x134e17,_0x370cd3,_0x18df4e);})[_0x35ad6f(0x124)](function(_0x3e52a2){const _0x1ad6ba=_0x35ad6f;logger[_0x1ad6ba(0x12a)](JSON[_0x1ad6ba(0x131)](_0x3e52a2));});},Migration['prototype']['dropTable']=function(_0x5653d4){const _0x114f77=a1063_0x531a89;return this['queryInterface'][_0x114f77(0x122)](_0x5653d4)[_0x114f77(0x130)](function(){const _0x4ee141=_0x114f77;logger[_0x4ee141(0x12a)](_0x4ee141(0x125),_0x5653d4);})['catch'](function(_0x1912ec){const _0x574fb6=_0x114f77;logger[_0x574fb6(0x12a)](JSON[_0x574fb6(0x131)](_0x1912ec));});},module[a1063_0x531a89(0x128)]={'up':function(_0x26502d){const _0x510295=a1063_0x531a89,_0xe43bd3=new Migration(_0x26502d);_0xe43bd3[_0x510295(0x122)]('jscripty_projects'),_0xe43bd3['dropTable'](_0x510295(0x129)),_0xe43bd3['dropTable'](_0x510295(0x126)),_0xe43bd3[_0x510295(0x122)](_0x510295(0x123));},'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 baa7e50..3cfa9d3 100644 --- a/server/migrations/2.0.21.js +++ b/server/migrations/2.0.21.js @@ -1 +1 @@ -const a1064_0x127f=['prototype','addColumn','exports','migration','report_jscripty_inputs','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','queryInterface','report_jscripty_sessions','jscripty_projects','catch','info','removeColumn','stringify','../config/logger','report_jscripty_questions','then','dropTable'];(function(_0x2e7f21,_0x1982e9){const _0x127fd5=function(_0x584a4f){while(--_0x584a4f){_0x2e7f21['push'](_0x2e7f21['shift']());}};_0x127fd5(++_0x1982e9);}(a1064_0x127f,0x91));const a1064_0x584a=function(_0x2e7f21,_0x1982e9){_0x2e7f21=_0x2e7f21-0xb8;let _0x127fd5=a1064_0x127f[_0x2e7f21];return _0x127fd5;};const a1064_0x3ca5df=a1064_0x584a;'use strict';const logger=require(a1064_0x3ca5df(0xc5))(a1064_0x3ca5df(0xba)),Migration=function(_0x1f0c7c){this['queryInterface']=_0x1f0c7c;};Migration[a1064_0x3ca5df(0xc9)][a1064_0x3ca5df(0xb8)]=function(_0x5ee02f,_0x3156b9,_0x3dbf05){const _0x246fb1=a1064_0x3ca5df;return this[_0x246fb1(0xbe)][_0x246fb1(0xb8)](_0x5ee02f,_0x3156b9,_0x3dbf05)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x3156b9,_0x5ee02f);})[_0x246fb1(0xc1)](function(_0x37882d){const _0x4b60b8=_0x246fb1;logger[_0x4b60b8(0xc2)](JSON['stringify'](_0x37882d));});},Migration['prototype'][a1064_0x3ca5df(0xc3)]=function(_0x393e66,_0x4b9385){const _0x6cbe4d=a1064_0x3ca5df;return this[_0x6cbe4d(0xbe)][_0x6cbe4d(0xc3)](_0x393e66,_0x4b9385)[_0x6cbe4d(0xc7)](function(){const _0x5c9f33=_0x6cbe4d;logger[_0x5c9f33(0xc2)](_0x5c9f33(0xbd),_0x4b9385,_0x393e66);})[_0x6cbe4d(0xc1)](function(_0x1131b8){const _0x225fa0=_0x6cbe4d;logger[_0x225fa0(0xc2)](JSON[_0x225fa0(0xc4)](_0x1131b8));});},Migration[a1064_0x3ca5df(0xc9)]['renameColumn']=function(_0x445c88,_0x37ab33,_0x477e6d){const _0x50f9cb=a1064_0x3ca5df;return this[_0x50f9cb(0xbe)]['renameColumn'](_0x445c88,_0x37ab33,_0x477e6d)[_0x50f9cb(0xc7)](function(){const _0x17bfd7=_0x50f9cb;logger[_0x17bfd7(0xc2)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x37ab33,_0x477e6d,_0x445c88);})[_0x50f9cb(0xc1)](function(_0x22cd36){const _0x456113=_0x50f9cb;logger[_0x456113(0xc2)](JSON[_0x456113(0xc4)](_0x22cd36));});},Migration[a1064_0x3ca5df(0xc9)][a1064_0x3ca5df(0xc8)]=function(_0xe2d602){const _0xd20966=a1064_0x3ca5df;return this[_0xd20966(0xbe)][_0xd20966(0xc8)](_0xe2d602)[_0xd20966(0xc7)](function(){const _0x48f054=_0xd20966;logger['info'](_0x48f054(0xbc),_0xe2d602);})[_0xd20966(0xc1)](function(_0x20f1c4){const _0x3ea9cc=_0xd20966;logger[_0x3ea9cc(0xc2)](JSON[_0x3ea9cc(0xc4)](_0x20f1c4));});},module[a1064_0x3ca5df(0xb9)]={'up':function(_0x5f2499){const _0x12d3eb=a1064_0x3ca5df,_0x16997e=new Migration(_0x5f2499);_0x16997e[_0x12d3eb(0xc8)](_0x12d3eb(0xc0),{'force':!![]}),_0x16997e[_0x12d3eb(0xc8)](_0x12d3eb(0xbb),{'force':!![]}),_0x16997e[_0x12d3eb(0xc8)](_0x12d3eb(0xc6),{'force':!![]}),_0x16997e[_0x12d3eb(0xc8)](_0x12d3eb(0xbf),{'force':!![]});},'down':function(){}}; \ No newline at end of file +const a1064_0x9b53=['then','table\x20dropped\x20%s','report_jscripty_questions','exports','removeColumn','queryInterface','catch','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','report_jscripty_inputs','prototype','migration','jscripty_projects','../config/logger','Added\x20column\x20%s\x20to\x20%s','stringify','addColumn','dropTable'];(function(_0x7c7808,_0xf62dca){const _0x9b5338=function(_0x3b2c88){while(--_0x3b2c88){_0x7c7808['push'](_0x7c7808['shift']());}};_0x9b5338(++_0xf62dca);}(a1064_0x9b53,0x1b5));const a1064_0x3b2c=function(_0x7c7808,_0xf62dca){_0x7c7808=_0x7c7808-0x118;let _0x9b5338=a1064_0x9b53[_0x7c7808];return _0x9b5338;};const a1064_0x4b6e4c=a1064_0x3b2c;'use strict';const logger=require(a1064_0x4b6e4c(0x126))(a1064_0x4b6e4c(0x124)),Migration=function(_0x29b90b){this['queryInterface']=_0x29b90b;};Migration[a1064_0x4b6e4c(0x123)][a1064_0x4b6e4c(0x129)]=function(_0x178fdb,_0x44911b,_0x281ad4){const _0x54f852=a1064_0x4b6e4c;return this[_0x54f852(0x11d)]['addColumn'](_0x178fdb,_0x44911b,_0x281ad4)[_0x54f852(0x118)](function(){const _0x470a91=_0x54f852;logger['info'](_0x470a91(0x127),_0x44911b,_0x178fdb);})[_0x54f852(0x11e)](function(_0x534af9){const _0x124eb7=_0x54f852;logger[_0x124eb7(0x121)](JSON[_0x124eb7(0x128)](_0x534af9));});},Migration[a1064_0x4b6e4c(0x123)][a1064_0x4b6e4c(0x11c)]=function(_0x567d06,_0x390ece){const _0x15a77d=a1064_0x4b6e4c;return this[_0x15a77d(0x11d)]['removeColumn'](_0x567d06,_0x390ece)[_0x15a77d(0x118)](function(){const _0x545f4b=_0x15a77d;logger[_0x545f4b(0x121)]('Removed\x20column\x20%s\x20from\x20%s',_0x390ece,_0x567d06);})[_0x15a77d(0x11e)](function(_0x1349e5){const _0x1de6a8=_0x15a77d;logger['info'](JSON[_0x1de6a8(0x128)](_0x1349e5));});},Migration[a1064_0x4b6e4c(0x123)]['renameColumn']=function(_0x17cbc4,_0x59a808,_0x466eb4){const _0x1ecc73=a1064_0x4b6e4c;return this[_0x1ecc73(0x11d)][_0x1ecc73(0x11f)](_0x17cbc4,_0x59a808,_0x466eb4)[_0x1ecc73(0x118)](function(){const _0x3757fa=_0x1ecc73;logger[_0x3757fa(0x121)](_0x3757fa(0x120),_0x59a808,_0x466eb4,_0x17cbc4);})['catch'](function(_0x587827){const _0x4ee61e=_0x1ecc73;logger[_0x4ee61e(0x121)](JSON[_0x4ee61e(0x128)](_0x587827));});},Migration[a1064_0x4b6e4c(0x123)][a1064_0x4b6e4c(0x12a)]=function(_0x1e5d83){const _0x523c6b=a1064_0x4b6e4c;return this['queryInterface'][_0x523c6b(0x12a)](_0x1e5d83)[_0x523c6b(0x118)](function(){const _0x54f148=_0x523c6b;logger['info'](_0x54f148(0x119),_0x1e5d83);})[_0x523c6b(0x11e)](function(_0x3fecf7){const _0x49a67e=_0x523c6b;logger[_0x49a67e(0x121)](JSON[_0x49a67e(0x128)](_0x3fecf7));});},module[a1064_0x4b6e4c(0x11b)]={'up':function(_0x59f78c){const _0x9ea7db=a1064_0x4b6e4c,_0x249745=new Migration(_0x59f78c);_0x249745[_0x9ea7db(0x12a)](_0x9ea7db(0x125),{'force':!![]}),_0x249745[_0x9ea7db(0x12a)](_0x9ea7db(0x122),{'force':!![]}),_0x249745['dropTable'](_0x9ea7db(0x11a),{'force':!![]}),_0x249745['dropTable']('report_jscripty_sessions',{'force':!![]});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.22.js b/server/migrations/2.0.22.js index 939b62b..ef57e8a 100644 --- a/server/migrations/2.0.22.js +++ b/server/migrations/2.0.22.js @@ -1 +1 @@ -const a1065_0xdf57=['dropTable','exports','prototype','removeColumn','renameColumn','stringify','Removed\x20column\x20%s\x20from\x20%s','queryInterface','report_jscripty_answers','Added\x20column\x20%s\x20to\x20%s','migration','table\x20dropped\x20%s','../config/logger','report_jscripty_questions','report_jscripty_sessions','then','catch','info'];(function(_0x23cd9a,_0x12f8e2){const _0xdf57f6=function(_0x56f5bb){while(--_0x56f5bb){_0x23cd9a['push'](_0x23cd9a['shift']());}};_0xdf57f6(++_0x12f8e2);}(a1065_0xdf57,0x180));const a1065_0x56f5=function(_0x23cd9a,_0x12f8e2){_0x23cd9a=_0x23cd9a-0xf6;let _0xdf57f6=a1065_0xdf57[_0x23cd9a];return _0xdf57f6;};const a1065_0x16f9cb=a1065_0x56f5;'use strict';const logger=require(a1065_0x16f9cb(0xfc))(a1065_0x16f9cb(0xfa)),Migration=function(_0xde8072){const _0x37b2aa=a1065_0x16f9cb;this[_0x37b2aa(0xf7)]=_0xde8072;};Migration[a1065_0x16f9cb(0x104)]['addColumn']=function(_0x4b2118,_0x4acc61,_0x48c626){const _0x335433=a1065_0x16f9cb;return this[_0x335433(0xf7)]['addColumn'](_0x4b2118,_0x4acc61,_0x48c626)[_0x335433(0xff)](function(){const _0xa06aa5=_0x335433;logger[_0xa06aa5(0x101)](_0xa06aa5(0xf9),_0x4acc61,_0x4b2118);})[_0x335433(0x100)](function(_0x241bea){const _0x27ab8f=_0x335433;logger['info'](JSON[_0x27ab8f(0x107)](_0x241bea));});},Migration[a1065_0x16f9cb(0x104)][a1065_0x16f9cb(0x105)]=function(_0x160ff7,_0x14ce81){const _0x5897bd=a1065_0x16f9cb;return this['queryInterface'][_0x5897bd(0x105)](_0x160ff7,_0x14ce81)[_0x5897bd(0xff)](function(){const _0x389e94=_0x5897bd;logger[_0x389e94(0x101)](_0x389e94(0xf6),_0x14ce81,_0x160ff7);})[_0x5897bd(0x100)](function(_0x51b310){const _0x499c31=_0x5897bd;logger[_0x499c31(0x101)](JSON[_0x499c31(0x107)](_0x51b310));});},Migration[a1065_0x16f9cb(0x104)][a1065_0x16f9cb(0x106)]=function(_0xcfa3a,_0x3460a1,_0x3d4a56){const _0x144076=a1065_0x16f9cb;return this[_0x144076(0xf7)][_0x144076(0x106)](_0xcfa3a,_0x3460a1,_0x3d4a56)['then'](function(){const _0x31ab8c=_0x144076;logger[_0x31ab8c(0x101)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3460a1,_0x3d4a56,_0xcfa3a);})['catch'](function(_0x308d55){const _0x50b277=_0x144076;logger[_0x50b277(0x101)](JSON[_0x50b277(0x107)](_0x308d55));});},Migration[a1065_0x16f9cb(0x104)][a1065_0x16f9cb(0x102)]=function(_0x347a11){const _0x6c3551=a1065_0x16f9cb;return this[_0x6c3551(0xf7)][_0x6c3551(0x102)](_0x347a11)[_0x6c3551(0xff)](function(){const _0xaf8ad8=_0x6c3551;logger['info'](_0xaf8ad8(0xfb),_0x347a11);})[_0x6c3551(0x100)](function(_0x1954e1){const _0x5480bc=_0x6c3551;logger['info'](JSON[_0x5480bc(0x107)](_0x1954e1));});},module[a1065_0x16f9cb(0x103)]={'up':function(_0x36f080){const _0x4f71fd=a1065_0x16f9cb,_0x311a68=new Migration(_0x36f080);_0x311a68['dropTable'](_0x4f71fd(0xf8),{'force':!![]}),_0x311a68[_0x4f71fd(0x102)](_0x4f71fd(0xfd),{'force':!![]}),_0x311a68[_0x4f71fd(0x102)](_0x4f71fd(0xfe),{'force':!![]});},'down':function(){}}; \ No newline at end of file +const a1065_0xaf3f=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','report_jscripty_answers','report_jscripty_sessions','addColumn','catch','stringify','report_jscripty_questions','then','renameColumn','Added\x20column\x20%s\x20to\x20%s','removeColumn','info','queryInterface','dropTable','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','prototype'];(function(_0xc4fb71,_0x37507a){const _0xaf3f7e=function(_0x51526f){while(--_0x51526f){_0xc4fb71['push'](_0xc4fb71['shift']());}};_0xaf3f7e(++_0x37507a);}(a1065_0xaf3f,0xeb));const a1065_0x5152=function(_0xc4fb71,_0x37507a){_0xc4fb71=_0xc4fb71-0x112;let _0xaf3f7e=a1065_0xaf3f[_0xc4fb71];return _0xaf3f7e;};const a1065_0x13a788=a1065_0x5152;'use strict';const logger=require('../config/logger')('migration'),Migration=function(_0x42bb9d){const _0xb630a0=a1065_0x5152;this[_0xb630a0(0x11e)]=_0x42bb9d;};Migration[a1065_0x13a788(0x122)]['addColumn']=function(_0x503e46,_0x337761,_0x21ed13){const _0x123a79=a1065_0x13a788;return this[_0x123a79(0x11e)][_0x123a79(0x115)](_0x503e46,_0x337761,_0x21ed13)[_0x123a79(0x119)](function(){const _0x3f3062=_0x123a79;logger[_0x3f3062(0x11d)](_0x3f3062(0x11b),_0x337761,_0x503e46);})[_0x123a79(0x116)](function(_0x22f059){const _0xbe22e4=_0x123a79;logger[_0xbe22e4(0x11d)](JSON['stringify'](_0x22f059));});},Migration['prototype'][a1065_0x13a788(0x11c)]=function(_0xe724c7,_0x5760c2){const _0xc32740=a1065_0x13a788;return this[_0xc32740(0x11e)][_0xc32740(0x11c)](_0xe724c7,_0x5760c2)['then'](function(){const _0xafe49=_0xc32740;logger[_0xafe49(0x11d)](_0xafe49(0x120),_0x5760c2,_0xe724c7);})[_0xc32740(0x116)](function(_0x3efddc){const _0x25c5f9=_0xc32740;logger[_0x25c5f9(0x11d)](JSON['stringify'](_0x3efddc));});},Migration[a1065_0x13a788(0x122)][a1065_0x13a788(0x11a)]=function(_0x592ce1,_0x228f9f,_0x48e45f){const _0x4c9bc3=a1065_0x13a788;return this[_0x4c9bc3(0x11e)]['renameColumn'](_0x592ce1,_0x228f9f,_0x48e45f)[_0x4c9bc3(0x119)](function(){const _0x1717f=_0x4c9bc3;logger[_0x1717f(0x11d)](_0x1717f(0x123),_0x228f9f,_0x48e45f,_0x592ce1);})[_0x4c9bc3(0x116)](function(_0x493498){const _0x3b8f0b=_0x4c9bc3;logger[_0x3b8f0b(0x11d)](JSON[_0x3b8f0b(0x117)](_0x493498));});},Migration['prototype']['dropTable']=function(_0x5f5da3){const _0x1a46af=a1065_0x13a788;return this[_0x1a46af(0x11e)][_0x1a46af(0x11f)](_0x5f5da3)[_0x1a46af(0x119)](function(){const _0x340421=_0x1a46af;logger[_0x340421(0x11d)](_0x340421(0x121),_0x5f5da3);})[_0x1a46af(0x116)](function(_0x2d5bb3){const _0x4418d6=_0x1a46af;logger['info'](JSON[_0x4418d6(0x117)](_0x2d5bb3));});},module[a1065_0x13a788(0x112)]={'up':function(_0x32db5d){const _0x406715=a1065_0x13a788,_0x2d447d=new Migration(_0x32db5d);_0x2d447d[_0x406715(0x11f)](_0x406715(0x113),{'force':!![]}),_0x2d447d['dropTable'](_0x406715(0x118),{'force':!![]}),_0x2d447d[_0x406715(0x11f)](_0x406715(0x114),{'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 ccfcfb0..8f6f5be 100644 --- a/server/migrations/2.0.23.js +++ b/server/migrations/2.0.23.js @@ -1 +1 @@ -const a1066_0x373e=['int_zendesk_accounts','integrationTab','then','info','openchannel_messages','removeColumn','user_has_openchannel_rooms','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','catch','type','openchannel_rooms','newTab','addColumn','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','ENUM','Removed\x20column\x20%s\x20from\x20%s','queryInterface','dropTable','exports','int_salesforce_accounts','openchannel_accounts','stringify','renameColumn','migration','openchannel_applications'];(function(_0x8e59d6,_0x3ac5f2){const _0x373ee7=function(_0x5c3341){while(--_0x5c3341){_0x8e59d6['push'](_0x8e59d6['shift']());}};_0x373ee7(++_0x3ac5f2);}(a1066_0x373e,0x1e3));const a1066_0x5c33=function(_0x8e59d6,_0x3ac5f2){_0x8e59d6=_0x8e59d6-0xe9;let _0x373ee7=a1066_0x373e[_0x8e59d6];return _0x373ee7;};const a1066_0x4154ed=a1066_0x5c33;'use strict';const logger=require('../config/logger')(a1066_0x4154ed(0xea)),Migration=function(_0x226c82){this['queryInterface']=_0x226c82;};Migration[a1066_0x4154ed(0xfa)][a1066_0x4154ed(0xf9)]=function(_0xea31f6,_0x56a68a,_0x538ef4){const _0x5934fb=a1066_0x4154ed;return this[_0x5934fb(0xfe)][_0x5934fb(0xf9)](_0xea31f6,_0x56a68a,_0x538ef4)[_0x5934fb(0xee)](function(){const _0x5213b5=_0x5934fb;logger[_0x5213b5(0xef)](_0x5213b5(0xf4),_0x56a68a,_0xea31f6);})[_0x5934fb(0xf5)](function(_0x560cd1){const _0x3bfc10=_0x5934fb;logger[_0x3bfc10(0xef)](JSON[_0x3bfc10(0x103)](_0x560cd1));});},Migration['prototype'][a1066_0x4154ed(0xf1)]=function(_0x57131a,_0x3d9550){const _0x1c79dd=a1066_0x4154ed;return this[_0x1c79dd(0xfe)][_0x1c79dd(0xf1)](_0x57131a,_0x3d9550)[_0x1c79dd(0xee)](function(){const _0x3fdc98=_0x1c79dd;logger[_0x3fdc98(0xef)](_0x3fdc98(0xfd),_0x3d9550,_0x57131a);})['catch'](function(_0x35857f){const _0x1129e2=_0x1c79dd;logger[_0x1129e2(0xef)](JSON[_0x1129e2(0x103)](_0x35857f));});},Migration['prototype'][a1066_0x4154ed(0xe9)]=function(_0x5ce200,_0x4683b7,_0x1f315c){const _0x1d9fab=a1066_0x4154ed;return this[_0x1d9fab(0xfe)][_0x1d9fab(0xe9)](_0x5ce200,_0x4683b7,_0x1f315c)[_0x1d9fab(0xee)](function(){const _0x48b262=_0x1d9fab;logger[_0x48b262(0xef)](_0x48b262(0xfb),_0x4683b7,_0x1f315c,_0x5ce200);})[_0x1d9fab(0xf5)](function(_0x5a3c00){const _0x295ef3=_0x1d9fab;logger[_0x295ef3(0xef)](JSON[_0x295ef3(0x103)](_0x5a3c00));});},Migration[a1066_0x4154ed(0xfa)][a1066_0x4154ed(0xff)]=function(_0x7db925){const _0x189050=a1066_0x4154ed;return this[_0x189050(0xfe)][_0x189050(0xff)](_0x7db925)['then'](function(){const _0x1fc66e=_0x189050;logger['info'](_0x1fc66e(0xf3),_0x7db925);})['catch'](function(_0x3caff4){const _0x51b7fa=_0x189050;logger['info'](JSON[_0x51b7fa(0x103)](_0x3caff4));});},module[a1066_0x4154ed(0x100)]={'up':function(_0x5f4b32,_0x383a3c){const _0x2785f0=a1066_0x4154ed,_0x4ac18b=new Migration(_0x5f4b32);_0x4ac18b[_0x2785f0(0xf9)](_0x2785f0(0x101),'type',{'type':_0x383a3c['ENUM'](_0x2785f0(0xed),_0x2785f0(0xf8)),'defaultValue':_0x2785f0(0xed)}),_0x4ac18b[_0x2785f0(0xf9)](_0x2785f0(0xec),_0x2785f0(0xf6),{'type':_0x383a3c[_0x2785f0(0xfc)](_0x2785f0(0xed),'newTab'),'defaultValue':'integrationTab'}),_0x4ac18b[_0x2785f0(0xff)](_0x2785f0(0xf2),{'force':!![]}),_0x4ac18b[_0x2785f0(0xff)](_0x2785f0(0xf0),{'force':!![]}),_0x4ac18b[_0x2785f0(0xff)](_0x2785f0(0xf7),{'force':!![]}),_0x4ac18b[_0x2785f0(0xff)](_0x2785f0(0xeb),{'force':!![]}),_0x4ac18b[_0x2785f0(0xff)](_0x2785f0(0x102),{'force':!![]});},'down':function(_0x1fb4b4){const _0x137632=a1066_0x4154ed,_0x39c74e=new Migration(_0x1fb4b4);_0x39c74e[_0x137632(0xf1)](_0x137632(0x101),_0x137632(0xf6)),_0x39c74e['removeColumn']('int_zendesk_accounts',_0x137632(0xf6));}}; \ No newline at end of file +const a1066_0x23b3=['openchannel_applications','queryInterface','user_has_openchannel_rooms','Removed\x20column\x20%s\x20from\x20%s','addColumn','stringify','ENUM','openchannel_messages','removeColumn','type','openchannel_accounts','then','info','integrationTab','int_salesforce_accounts','newTab','dropTable','renameColumn','prototype','exports','int_zendesk_accounts','table\x20dropped\x20%s','catch'];(function(_0x3fd044,_0x185a1f){const _0x23b3c6=function(_0x2c2833){while(--_0x2c2833){_0x3fd044['push'](_0x3fd044['shift']());}};_0x23b3c6(++_0x185a1f);}(a1066_0x23b3,0x18d));const a1066_0x2c28=function(_0x3fd044,_0x185a1f){_0x3fd044=_0x3fd044-0x11b;let _0x23b3c6=a1066_0x23b3[_0x3fd044];return _0x23b3c6;};const a1066_0x323b0f=a1066_0x2c28;'use strict';const logger=require('../config/logger')('migration'),Migration=function(_0x1a5b53){const _0x4acc1f=a1066_0x2c28;this[_0x4acc1f(0x12d)]=_0x1a5b53;};Migration['prototype'][a1066_0x323b0f(0x130)]=function(_0x381e93,_0x4299a7,_0x5f5d2c){const _0x49ddfa=a1066_0x323b0f;return this[_0x49ddfa(0x12d)][_0x49ddfa(0x130)](_0x381e93,_0x4299a7,_0x5f5d2c)['then'](function(){const _0x199590=_0x49ddfa;logger[_0x199590(0x121)]('Added\x20column\x20%s\x20to\x20%s',_0x4299a7,_0x381e93);})[_0x49ddfa(0x12b)](function(_0x2aeb2f){const _0x40dd68=_0x49ddfa;logger['info'](JSON[_0x40dd68(0x131)](_0x2aeb2f));});},Migration[a1066_0x323b0f(0x127)][a1066_0x323b0f(0x11d)]=function(_0x400f4d,_0x2dab46){const _0xd429b6=a1066_0x323b0f;return this['queryInterface'][_0xd429b6(0x11d)](_0x400f4d,_0x2dab46)[_0xd429b6(0x120)](function(){const _0x1368ca=_0xd429b6;logger['info'](_0x1368ca(0x12f),_0x2dab46,_0x400f4d);})[_0xd429b6(0x12b)](function(_0x1fe3e5){logger['info'](JSON['stringify'](_0x1fe3e5));});},Migration[a1066_0x323b0f(0x127)][a1066_0x323b0f(0x126)]=function(_0x189ab0,_0x452086,_0x5de78b){const _0x283074=a1066_0x323b0f;return this[_0x283074(0x12d)][_0x283074(0x126)](_0x189ab0,_0x452086,_0x5de78b)['then'](function(){const _0xb8e11b=_0x283074;logger[_0xb8e11b(0x121)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x452086,_0x5de78b,_0x189ab0);})['catch'](function(_0x39e999){const _0x2bad3b=_0x283074;logger['info'](JSON[_0x2bad3b(0x131)](_0x39e999));});},Migration['prototype'][a1066_0x323b0f(0x125)]=function(_0x457d2d){const _0x3dd982=a1066_0x323b0f;return this['queryInterface'][_0x3dd982(0x125)](_0x457d2d)['then'](function(){const _0x29a30c=_0x3dd982;logger[_0x29a30c(0x121)](_0x29a30c(0x12a),_0x457d2d);})['catch'](function(_0x5bcf11){const _0x4e12ea=_0x3dd982;logger[_0x4e12ea(0x121)](JSON[_0x4e12ea(0x131)](_0x5bcf11));});},module[a1066_0x323b0f(0x128)]={'up':function(_0x54d976,_0x83a3f6){const _0x1c60cd=a1066_0x323b0f,_0x552fb7=new Migration(_0x54d976);_0x552fb7[_0x1c60cd(0x130)](_0x1c60cd(0x123),_0x1c60cd(0x11e),{'type':_0x83a3f6[_0x1c60cd(0x11b)]('integrationTab',_0x1c60cd(0x124)),'defaultValue':_0x1c60cd(0x122)}),_0x552fb7[_0x1c60cd(0x130)](_0x1c60cd(0x129),_0x1c60cd(0x11e),{'type':_0x83a3f6[_0x1c60cd(0x11b)](_0x1c60cd(0x122),'newTab'),'defaultValue':_0x1c60cd(0x122)}),_0x552fb7[_0x1c60cd(0x125)](_0x1c60cd(0x12e),{'force':!![]}),_0x552fb7[_0x1c60cd(0x125)](_0x1c60cd(0x11c),{'force':!![]}),_0x552fb7[_0x1c60cd(0x125)]('openchannel_rooms',{'force':!![]}),_0x552fb7[_0x1c60cd(0x125)](_0x1c60cd(0x12c),{'force':!![]}),_0x552fb7['dropTable'](_0x1c60cd(0x11f),{'force':!![]});},'down':function(_0xbd032d){const _0x9245b8=a1066_0x323b0f,_0x4b0cd=new Migration(_0xbd032d);_0x4b0cd[_0x9245b8(0x11d)](_0x9245b8(0x123),_0x9245b8(0x11e)),_0x4b0cd[_0x9245b8(0x11d)]('int_zendesk_accounts',_0x9245b8(0x11e));}}; \ No newline at end of file diff --git a/server/migrations/2.0.24.js b/server/migrations/2.0.24.js index 1f61bb2..42112e1 100644 --- a/server/migrations/2.0.24.js +++ b/server/migrations/2.0.24.js @@ -1 +1 @@ -const a1067_0x4bb0=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','stringify','renameColumn','removeColumn','then','table\x20dropped\x20%s','queryInterface','tools_schedules','../config/logger','Removed\x20column\x20%s\x20from\x20%s','prototype','info','catch','addColumn','migration'];(function(_0x1112cb,_0x3b09d7){const _0x4bb04d=function(_0x5a4e85){while(--_0x5a4e85){_0x1112cb['push'](_0x1112cb['shift']());}};_0x4bb04d(++_0x3b09d7);}(a1067_0x4bb0,0x156));const a1067_0x5a4e=function(_0x1112cb,_0x3b09d7){_0x1112cb=_0x1112cb-0x110;let _0x4bb04d=a1067_0x4bb0[_0x1112cb];return _0x4bb04d;};const a1067_0x2c709d=a1067_0x5a4e;'use strict';const logger=require(a1067_0x2c709d(0x113))(a1067_0x2c709d(0x119)),Migration=function(_0x188a77){const _0x6ebb68=a1067_0x2c709d;this[_0x6ebb68(0x111)]=_0x188a77;};Migration[a1067_0x2c709d(0x115)]['addColumn']=function(_0x511e18,_0x47fdc0,_0x245a3){const _0x219ed0=a1067_0x2c709d;return this[_0x219ed0(0x111)][_0x219ed0(0x118)](_0x511e18,_0x47fdc0,_0x245a3)[_0x219ed0(0x11f)](function(){const _0x123f97=_0x219ed0;logger[_0x123f97(0x116)]('Added\x20column\x20%s\x20to\x20%s',_0x47fdc0,_0x511e18);})[_0x219ed0(0x117)](function(_0x1eb070){const _0x137be1=_0x219ed0;logger['info'](JSON[_0x137be1(0x11c)](_0x1eb070));});},Migration[a1067_0x2c709d(0x115)]['removeColumn']=function(_0x4f8d18,_0x27c753){const _0x332826=a1067_0x2c709d;return this[_0x332826(0x111)][_0x332826(0x11e)](_0x4f8d18,_0x27c753)[_0x332826(0x11f)](function(){const _0x270edb=_0x332826;logger[_0x270edb(0x116)](_0x270edb(0x114),_0x27c753,_0x4f8d18);})[_0x332826(0x117)](function(_0x7c2d54){const _0x7cb0b1=_0x332826;logger[_0x7cb0b1(0x116)](JSON[_0x7cb0b1(0x11c)](_0x7c2d54));});},Migration[a1067_0x2c709d(0x115)][a1067_0x2c709d(0x11d)]=function(_0x27f601,_0x390d12,_0x4b1606){const _0x5de42a=a1067_0x2c709d;return this[_0x5de42a(0x111)][_0x5de42a(0x11d)](_0x27f601,_0x390d12,_0x4b1606)[_0x5de42a(0x11f)](function(){const _0x38974b=_0x5de42a;logger[_0x38974b(0x116)](_0x38974b(0x11a),_0x390d12,_0x4b1606,_0x27f601);})[_0x5de42a(0x117)](function(_0x33079e){const _0x4cd113=_0x5de42a;logger[_0x4cd113(0x116)](JSON[_0x4cd113(0x11c)](_0x33079e));});},Migration[a1067_0x2c709d(0x115)]['dropTable']=function(_0x6b9d38){const _0x5b4043=a1067_0x2c709d;return this['queryInterface'][_0x5b4043(0x11b)](_0x6b9d38)[_0x5b4043(0x11f)](function(){const _0x9d8e0f=_0x5b4043;logger[_0x9d8e0f(0x116)](_0x9d8e0f(0x110),_0x6b9d38);})[_0x5b4043(0x117)](function(_0x4c3a2d){const _0x2b288f=_0x5b4043;logger[_0x2b288f(0x116)](JSON[_0x2b288f(0x11c)](_0x4c3a2d));});},module['exports']={'up':function(_0x579a37){const _0x170477=a1067_0x2c709d,_0x4c4f69=new Migration(_0x579a37);_0x4c4f69[_0x170477(0x11b)](_0x170477(0x112),{'force':!![]});},'down':function(){}}; \ No newline at end of file +const a1067_0x2c89=['dropTable','prototype','Removed\x20column\x20%s\x20from\x20%s','removeColumn','table\x20dropped\x20%s','tools_schedules','info','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','queryInterface','Added\x20column\x20%s\x20to\x20%s','then','../config/logger','catch','renameColumn'];(function(_0x1ceac4,_0x3d2ecb){const _0x2c8906=function(_0x18d593){while(--_0x18d593){_0x1ceac4['push'](_0x1ceac4['shift']());}};_0x2c8906(++_0x3d2ecb);}(a1067_0x2c89,0x107));const a1067_0x18d5=function(_0x1ceac4,_0x3d2ecb){_0x1ceac4=_0x1ceac4-0x10f;let _0x2c8906=a1067_0x2c89[_0x1ceac4];return _0x2c8906;};const a1067_0xa07ff6=a1067_0x18d5;'use strict';const logger=require(a1067_0xa07ff6(0x115))('migration'),Migration=function(_0x1d3f4e){this['queryInterface']=_0x1d3f4e;};Migration[a1067_0xa07ff6(0x119)]['addColumn']=function(_0x4585e6,_0x3db7f5,_0xe7ff2c){const _0x32cfde=a1067_0xa07ff6;return this[_0x32cfde(0x112)]['addColumn'](_0x4585e6,_0x3db7f5,_0xe7ff2c)[_0x32cfde(0x114)](function(){const _0x202919=_0x32cfde;logger[_0x202919(0x11e)](_0x202919(0x113),_0x3db7f5,_0x4585e6);})[_0x32cfde(0x116)](function(_0x4cc125){logger['info'](JSON['stringify'](_0x4cc125));});},Migration[a1067_0xa07ff6(0x119)][a1067_0xa07ff6(0x11b)]=function(_0x3bf766,_0x22f70f){const _0x2edff2=a1067_0xa07ff6;return this[_0x2edff2(0x112)][_0x2edff2(0x11b)](_0x3bf766,_0x22f70f)[_0x2edff2(0x114)](function(){const _0x58f52e=_0x2edff2;logger[_0x58f52e(0x11e)](_0x58f52e(0x11a),_0x22f70f,_0x3bf766);})['catch'](function(_0x1447db){const _0x5ac5f5=_0x2edff2;logger[_0x5ac5f5(0x11e)](JSON[_0x5ac5f5(0x111)](_0x1447db));});},Migration['prototype'][a1067_0xa07ff6(0x117)]=function(_0x1d9042,_0x2dbe3c,_0x407d6a){const _0x4827cf=a1067_0xa07ff6;return this[_0x4827cf(0x112)][_0x4827cf(0x117)](_0x1d9042,_0x2dbe3c,_0x407d6a)[_0x4827cf(0x114)](function(){const _0x1251f2=_0x4827cf;logger[_0x1251f2(0x11e)](_0x1251f2(0x110),_0x2dbe3c,_0x407d6a,_0x1d9042);})[_0x4827cf(0x116)](function(_0x19cdf9){const _0x204c2a=_0x4827cf;logger[_0x204c2a(0x11e)](JSON['stringify'](_0x19cdf9));});},Migration['prototype'][a1067_0xa07ff6(0x118)]=function(_0x54aa82){const _0x41bcd1=a1067_0xa07ff6;return this[_0x41bcd1(0x112)][_0x41bcd1(0x118)](_0x54aa82)['then'](function(){const _0x2fb3c9=_0x41bcd1;logger[_0x2fb3c9(0x11e)](_0x2fb3c9(0x11c),_0x54aa82);})[_0x41bcd1(0x116)](function(_0x56fc9c){const _0xddf289=_0x41bcd1;logger[_0xddf289(0x11e)](JSON[_0xddf289(0x111)](_0x56fc9c));});},module[a1067_0xa07ff6(0x10f)]={'up':function(_0x5dd482){const _0x52473e=a1067_0xa07ff6,_0x5a8cd6=new Migration(_0x5dd482);_0x5a8cd6[_0x52473e(0x118)](_0x52473e(0x11d),{'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 2196a51..96f4a78 100644 --- a/server/migrations/2.0.25.js +++ b/server/migrations/2.0.25.js @@ -1 +1 @@ -const a1068_0xb7f5=['ulaw;gsm','then','insertExtension','dialPrefix','STRING','allow','Insert\x20new\x20row\x20in\x20voice_extensions','tools_trunks','catch','sequelize','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());','exports','changeColumn','query','ulaw;gsm;alaw','Added\x20column\x20%s\x20to\x20%s','util','queryInterface','info','stringify','prototype','users','migration','../config/logger','addColumn','inspect','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());'];(function(_0x521ea0,_0x56003d){const _0xb7f597=function(_0x628e9c){while(--_0x628e9c){_0x521ea0['push'](_0x521ea0['shift']());}};_0xb7f597(++_0x56003d);}(a1068_0xb7f5,0x156));const a1068_0x628e=function(_0x521ea0,_0x56003d){_0x521ea0=_0x521ea0-0x159;let _0xb7f597=a1068_0xb7f5[_0x521ea0];return _0xb7f597;};const a1068_0x3542e7=a1068_0x628e;'use strict';const logger=require(a1068_0x3542e7(0x15e))(a1068_0x3542e7(0x15d)),util=require(a1068_0x3542e7(0x172)),Migration=function(_0x3b3a7d){const _0x560e77=a1068_0x3542e7;this[_0x560e77(0x173)]=_0x3b3a7d;};Migration['prototype'][a1068_0x3542e7(0x164)]=function(_0xb9ef69){const _0x498b6d=a1068_0x3542e7;return this[_0x498b6d(0x173)][_0x498b6d(0x16b)][_0x498b6d(0x16f)](_0xb9ef69)[_0x498b6d(0x163)](function(){const _0x1eeb9f=_0x498b6d;logger[_0x1eeb9f(0x159)](_0x1eeb9f(0x168));})[_0x498b6d(0x16a)](function(_0x59d278){const _0x411509=_0x498b6d;logger[_0x411509(0x159)](util[_0x411509(0x160)](_0x59d278,{'showHidden':![],'depth':null}));});},Migration[a1068_0x3542e7(0x15b)]['changeColumn']=function(_0x4e4b00,_0x595972,_0xede3ef){const _0x483c0b=a1068_0x3542e7;return this[_0x483c0b(0x173)][_0x483c0b(0x16e)](_0x4e4b00,_0x595972,_0xede3ef)[_0x483c0b(0x163)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x595972,_0x4e4b00);})[_0x483c0b(0x16a)](function(_0x50c791){const _0x5c03b7=_0x483c0b;logger[_0x5c03b7(0x159)](util[_0x5c03b7(0x160)](_0x50c791,{'showHidden':![],'depth':null}));});},Migration[a1068_0x3542e7(0x15b)]['addColumn']=function(_0x2a7898,_0x14f4cd,_0x17a68d){const _0x5b4e3f=a1068_0x3542e7;return this['queryInterface']['addColumn'](_0x2a7898,_0x14f4cd,_0x17a68d)['then'](function(){const _0x4bcf42=a1068_0x628e;logger[_0x4bcf42(0x159)](_0x4bcf42(0x171),_0x14f4cd,_0x2a7898);})[_0x5b4e3f(0x16a)](function(_0x3c8f4e){const _0x30bbd6=_0x5b4e3f;logger['info'](JSON[_0x30bbd6(0x15a)](_0x3c8f4e));});},module[a1068_0x3542e7(0x16d)]={'up':function(_0x360567,_0xe43af3){const _0x2f6124=a1068_0x3542e7,_0x2faad1=new Migration(_0x360567);_0x2faad1[_0x2f6124(0x164)](_0x2f6124(0x161)),_0x2faad1[_0x2f6124(0x164)](_0x2f6124(0x16c)),_0x2faad1[_0x2f6124(0x16e)](_0x2f6124(0x15c),_0x2f6124(0x167),{'type':_0xe43af3[_0x2f6124(0x166)],'defaultValue':_0x2f6124(0x162)}),_0x2faad1[_0x2f6124(0x16e)](_0x2f6124(0x169),_0x2f6124(0x167),{'type':_0xe43af3[_0x2f6124(0x166)],'defaultValue':_0x2f6124(0x170)}),_0x2faad1[_0x2f6124(0x15f)]('voice_queues',_0x2f6124(0x165),{'type':_0xe43af3[_0x2f6124(0x166)],'defaultValue':null});},'down':function(){}}; \ No newline at end of file +const a1068_0x2542=['sequelize','Added\x20column\x20%s\x20to\x20%s','stringify','voice_queues','allow','Insert\x20new\x20row\x20in\x20voice_extensions','info','ulaw;gsm','catch','prototype','util','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','insertExtension','ulaw;gsm;alaw','queryInterface','then','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`appType`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27failed\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27system\x27,\x20\x27catch\x20failed\x20event\x20auto\x20generated\x27,\x20\x27custom\x27,\x20NOW(),\x20NOW());','STRING','addColumn','changeColumn','users','inspect','tools_trunks','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`appType`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27failed\x27,\x20\x272\x27,\x20\x27Hangup\x27,\x20\x27system\x27,\x20\x27catch\x20failed\x20event\x20auto\x20generated\x27,\x20\x27custom\x27,\x20NOW(),\x20NOW());'];(function(_0x1e6c2d,_0x310258){const _0x2542b9=function(_0x578a13){while(--_0x578a13){_0x1e6c2d['push'](_0x1e6c2d['shift']());}};_0x2542b9(++_0x310258);}(a1068_0x2542,0x1a6));const a1068_0x578a=function(_0x1e6c2d,_0x310258){_0x1e6c2d=_0x1e6c2d-0x128;let _0x2542b9=a1068_0x2542[_0x1e6c2d];return _0x2542b9;};const a1068_0x3fe600=a1068_0x578a;'use strict';const logger=require(a1068_0x3fe600(0x137))('migration'),util=require(a1068_0x3fe600(0x135)),Migration=function(_0x2e8fc0){const _0x273e96=a1068_0x3fe600;this[_0x273e96(0x13a)]=_0x2e8fc0;};Migration[a1068_0x3fe600(0x134)][a1068_0x3fe600(0x138)]=function(_0x3665c4){const _0x1d5910=a1068_0x3fe600;return this['queryInterface'][_0x1d5910(0x12b)]['query'](_0x3665c4)[_0x1d5910(0x13b)](function(){const _0x463075=_0x1d5910;logger[_0x463075(0x131)](_0x463075(0x130));})[_0x1d5910(0x133)](function(_0x1237ec){logger['info'](util['inspect'](_0x1237ec,{'showHidden':![],'depth':null}));});},Migration[a1068_0x3fe600(0x134)][a1068_0x3fe600(0x13f)]=function(_0x58b07b,_0xd347a3,_0x19df11){const _0x8443ac=a1068_0x3fe600;return this[_0x8443ac(0x13a)][_0x8443ac(0x13f)](_0x58b07b,_0xd347a3,_0x19df11)[_0x8443ac(0x13b)](function(){const _0x19aeb9=_0x8443ac;logger[_0x19aeb9(0x131)](_0x19aeb9(0x136),_0xd347a3,_0x58b07b);})['catch'](function(_0x442694){const _0x1fbf23=_0x8443ac;logger[_0x1fbf23(0x131)](util[_0x1fbf23(0x128)](_0x442694,{'showHidden':![],'depth':null}));});},Migration[a1068_0x3fe600(0x134)][a1068_0x3fe600(0x13e)]=function(_0x4ad35b,_0xc104b2,_0x5cbe5c){const _0x46dc9a=a1068_0x3fe600;return this[_0x46dc9a(0x13a)][_0x46dc9a(0x13e)](_0x4ad35b,_0xc104b2,_0x5cbe5c)[_0x46dc9a(0x13b)](function(){const _0x5775d5=_0x46dc9a;logger[_0x5775d5(0x131)](_0x5775d5(0x12c),_0xc104b2,_0x4ad35b);})[_0x46dc9a(0x133)](function(_0xd35bdc){const _0x29fd28=_0x46dc9a;logger[_0x29fd28(0x131)](JSON[_0x29fd28(0x12d)](_0xd35bdc));});},module['exports']={'up':function(_0x5d4009,_0x1700c8){const _0x566744=a1068_0x3fe600,_0x5e6064=new Migration(_0x5d4009);_0x5e6064[_0x566744(0x138)](_0x566744(0x13c)),_0x5e6064[_0x566744(0x138)](_0x566744(0x12a)),_0x5e6064[_0x566744(0x13f)](_0x566744(0x140),_0x566744(0x12f),{'type':_0x1700c8[_0x566744(0x13d)],'defaultValue':_0x566744(0x132)}),_0x5e6064[_0x566744(0x13f)](_0x566744(0x129),_0x566744(0x12f),{'type':_0x1700c8['STRING'],'defaultValue':_0x566744(0x139)}),_0x5e6064[_0x566744(0x13e)](_0x566744(0x12e),'dialPrefix',{'type':_0x1700c8[_0x566744(0x13d)],'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 e82a884..1ca1d52 100644 --- a/server/migrations/2.0.26.js +++ b/server/migrations/2.0.26.js @@ -1 +1 @@ -const a1069_0x1a82=['campaigns','dialCheckDuplicateType','stringify','allow','exports','voice_queues','mail_servers_out','timeout','then','STRING','ENUM','users','retry','email','ulaw;alaw;gsm','onlyIfOpen','catch','addColumn','migration','always','Added\x20column\x20%s\x20to\x20%s','pai','queryInterface','changeColumn','info','BOOLEAN','prototype'];(function(_0x2e291a,_0x41df6c){const _0x1a8245=function(_0x38a9d2){while(--_0x38a9d2){_0x2e291a['push'](_0x2e291a['shift']());}};_0x1a8245(++_0x41df6c);}(a1069_0x1a82,0x1ed));const a1069_0x38a9=function(_0x2e291a,_0x41df6c){_0x2e291a=_0x2e291a-0x158;let _0x1a8245=a1069_0x1a82[_0x2e291a];return _0x1a8245;};const a1069_0x65efb4=a1069_0x38a9;'use strict';const logger=require('../config/logger')(a1069_0x65efb4(0x163)),util=require('util'),Migration=function(_0x3a0144){const _0x193fb1=a1069_0x65efb4;this[_0x193fb1(0x167)]=_0x3a0144;};Migration[a1069_0x65efb4(0x16b)][a1069_0x65efb4(0x168)]=function(_0x3aac83,_0x193c4c,_0x5d2391){const _0x2588be=a1069_0x65efb4;return this['queryInterface']['changeColumn'](_0x3aac83,_0x193c4c,_0x5d2391)[_0x2588be(0x159)](function(){const _0x50c279=_0x2588be;logger[_0x50c279(0x169)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x193c4c,_0x3aac83);})['catch'](function(_0x27ca3a){const _0x2ec8fb=_0x2588be;logger[_0x2ec8fb(0x169)](util['inspect'](_0x27ca3a,{'showHidden':![],'depth':null}));});},Migration[a1069_0x65efb4(0x16b)][a1069_0x65efb4(0x162)]=function(_0xb8b9b4,_0x14d6bd,_0x508522){const _0x22a06b=a1069_0x65efb4;return this[_0x22a06b(0x167)]['addColumn'](_0xb8b9b4,_0x14d6bd,_0x508522)['then'](function(){const _0x2e0549=_0x22a06b;logger['info'](_0x2e0549(0x165),_0x14d6bd,_0xb8b9b4);})[_0x22a06b(0x161)](function(_0x74c938){const _0x4b25c5=_0x22a06b;logger['info'](JSON[_0x4b25c5(0x16e)](_0x74c938));});},module[a1069_0x65efb4(0x170)]={'up':function(_0x180336,_0x202f9e){const _0x3f88c8=a1069_0x65efb4,_0x3b0ec2=new Migration(_0x180336);_0x3b0ec2[_0x3f88c8(0x168)]('tools_trunks','sendrpid',{'type':_0x202f9e[_0x3f88c8(0x15b)]('yes','no',_0x3f88c8(0x166)),'defaultValue':'no'}),_0x3b0ec2[_0x3f88c8(0x162)](_0x3f88c8(0x172),'authentication',{'type':_0x202f9e[_0x3f88c8(0x16a)],'defaultValue':!![]}),_0x3b0ec2[_0x3f88c8(0x168)](_0x3f88c8(0x171),_0x3f88c8(0x158),{'type':_0x202f9e['INTEGER'](0xb),'defaultValue':0xf}),_0x3b0ec2['changeColumn'](_0x3f88c8(0x171),_0x3f88c8(0x15d),{'type':_0x202f9e['INTEGER'](0xb),'defaultValue':0x2}),_0x3b0ec2[_0x3f88c8(0x168)](_0x3f88c8(0x15c),_0x3f88c8(0x16f),{'type':_0x202f9e[_0x3f88c8(0x15a)],'allowNull':![],'defaultValue':_0x3f88c8(0x15f)}),_0x3b0ec2[_0x3f88c8(0x168)]('tools_trunks',_0x3f88c8(0x16f),{'type':_0x202f9e[_0x3f88c8(0x15a)],'allowNull':![],'defaultValue':_0x3f88c8(0x15f)}),_0x3b0ec2[_0x3f88c8(0x162)](_0x3f88c8(0x171),'dialCheckDuplicateType',{'type':_0x202f9e[_0x3f88c8(0x15b)](_0x3f88c8(0x164),'never',_0x3f88c8(0x160)),'defaultValue':_0x3f88c8(0x164)}),_0x3b0ec2[_0x3f88c8(0x162)](_0x3f88c8(0x16c),_0x3f88c8(0x16d),{'type':_0x202f9e[_0x3f88c8(0x15b)](_0x3f88c8(0x164),'never',_0x3f88c8(0x160)),'defaultValue':_0x3f88c8(0x164)}),_0x3b0ec2['addColumn']('mail_accounts',_0x3f88c8(0x15e),{'type':_0x202f9e[_0x3f88c8(0x15a)]});},'down':function(){}}; \ No newline at end of file +const a1069_0x29bc=['mail_accounts','addColumn','tools_trunks','util','inspect','pai','changeColumn','info','timeout','ENUM','then','migration','Added\x20column\x20%s\x20to\x20%s','email','INTEGER','users','retry','stringify','STRING','yes','dialCheckDuplicateType','queryInterface','voice_queues','mail_servers_out','ulaw;alaw;gsm','never','authentication','prototype','onlyIfOpen','sendrpid','always','Changed\x20column\x20%s\x20in\x20table\x20%s','catch'];(function(_0x29ab2f,_0x547c55){const _0x29bc17=function(_0x3bb871){while(--_0x3bb871){_0x29ab2f['push'](_0x29ab2f['shift']());}};_0x29bc17(++_0x547c55);}(a1069_0x29bc,0x174));const a1069_0x3bb8=function(_0x29ab2f,_0x547c55){_0x29ab2f=_0x29ab2f-0x1dc;let _0x29bc17=a1069_0x29bc[_0x29ab2f];return _0x29bc17;};const a1069_0x5e687b=a1069_0x3bb8;'use strict';const logger=require('../config/logger')(a1069_0x5e687b(0x1de)),util=require(a1069_0x5e687b(0x1f7)),Migration=function(_0x453b36){const _0x3c22fb=a1069_0x5e687b;this[_0x3c22fb(0x1e8)]=_0x453b36;};Migration[a1069_0x5e687b(0x1ee)]['changeColumn']=function(_0x394d69,_0x8522,_0x65585b){const _0xebdd94=a1069_0x5e687b;return this[_0xebdd94(0x1e8)][_0xebdd94(0x1fa)](_0x394d69,_0x8522,_0x65585b)[_0xebdd94(0x1dd)](function(){const _0x51362d=_0xebdd94;logger[_0x51362d(0x1fb)](_0x51362d(0x1f2),_0x8522,_0x394d69);})[_0xebdd94(0x1f3)](function(_0x49d142){const _0x56ad7d=_0xebdd94;logger[_0x56ad7d(0x1fb)](util[_0x56ad7d(0x1f8)](_0x49d142,{'showHidden':![],'depth':null}));});},Migration[a1069_0x5e687b(0x1ee)]['addColumn']=function(_0x536564,_0x346dea,_0x49c3aa){const _0x41ff43=a1069_0x5e687b;return this[_0x41ff43(0x1e8)][_0x41ff43(0x1f5)](_0x536564,_0x346dea,_0x49c3aa)[_0x41ff43(0x1dd)](function(){const _0x51ca28=_0x41ff43;logger[_0x51ca28(0x1fb)](_0x51ca28(0x1df),_0x346dea,_0x536564);})[_0x41ff43(0x1f3)](function(_0x5dfc2f){const _0x2191c1=_0x41ff43;logger[_0x2191c1(0x1fb)](JSON[_0x2191c1(0x1e4)](_0x5dfc2f));});},module['exports']={'up':function(_0x24ad07,_0x440cb3){const _0x253994=a1069_0x5e687b,_0x32f48d=new Migration(_0x24ad07);_0x32f48d[_0x253994(0x1fa)](_0x253994(0x1f6),_0x253994(0x1f0),{'type':_0x440cb3[_0x253994(0x1dc)](_0x253994(0x1e6),'no',_0x253994(0x1f9)),'defaultValue':'no'}),_0x32f48d['addColumn'](_0x253994(0x1ea),_0x253994(0x1ed),{'type':_0x440cb3['BOOLEAN'],'defaultValue':!![]}),_0x32f48d['changeColumn'](_0x253994(0x1e9),_0x253994(0x1fc),{'type':_0x440cb3['INTEGER'](0xb),'defaultValue':0xf}),_0x32f48d['changeColumn']('voice_queues',_0x253994(0x1e3),{'type':_0x440cb3[_0x253994(0x1e1)](0xb),'defaultValue':0x2}),_0x32f48d[_0x253994(0x1fa)](_0x253994(0x1e2),'allow',{'type':_0x440cb3['STRING'],'allowNull':![],'defaultValue':_0x253994(0x1eb)}),_0x32f48d[_0x253994(0x1fa)](_0x253994(0x1f6),'allow',{'type':_0x440cb3[_0x253994(0x1e5)],'allowNull':![],'defaultValue':_0x253994(0x1eb)}),_0x32f48d[_0x253994(0x1f5)](_0x253994(0x1e9),_0x253994(0x1e7),{'type':_0x440cb3[_0x253994(0x1dc)]('always',_0x253994(0x1ec),_0x253994(0x1ef)),'defaultValue':_0x253994(0x1f1)}),_0x32f48d[_0x253994(0x1f5)]('campaigns',_0x253994(0x1e7),{'type':_0x440cb3['ENUM'](_0x253994(0x1f1),'never',_0x253994(0x1ef)),'defaultValue':_0x253994(0x1f1)}),_0x32f48d[_0x253994(0x1f5)](_0x253994(0x1f4),_0x253994(0x1e0),{'type':_0x440cb3['STRING']});},'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 dc798c2..12143c4 100644 --- a/server/migrations/2.0.27.js +++ b/server/migrations/2.0.27.js @@ -1 +1 @@ -var a1070_0xab62=['exports'];(function(_0x5a306a,_0x511746){var _0xab620a=function(_0x76361f){while(--_0x76361f){_0x5a306a['push'](_0x5a306a['shift']());}};_0xab620a(++_0x511746);}(a1070_0xab62,0x16a));var a1070_0x7636=function(_0x5a306a,_0x511746){_0x5a306a=_0x5a306a-0xc1;var _0xab620a=a1070_0xab62[_0x5a306a];return _0xab620a;};var a1070_0x4df16e=a1070_0x7636;'use strict';module[a1070_0x4df16e(0xc1)]={'up':function(){},'down':function(){}}; \ No newline at end of file +'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.28.js b/server/migrations/2.0.28.js index 96361ee..12143c4 100644 --- a/server/migrations/2.0.28.js +++ b/server/migrations/2.0.28.js @@ -1 +1 @@ -var a1071_0x41e6=['exports'];(function(_0x1d913d,_0x569b95){var _0x41e6e9=function(_0x3f5430){while(--_0x3f5430){_0x1d913d['push'](_0x1d913d['shift']());}};_0x41e6e9(++_0x569b95);}(a1071_0x41e6,0x7c));var a1071_0x3f54=function(_0x1d913d,_0x569b95){_0x1d913d=_0x1d913d-0x128;var _0x41e6e9=a1071_0x41e6[_0x1d913d];return _0x41e6e9;};var a1071_0x531266=a1071_0x3f54;'use strict';module[a1071_0x531266(0x128)]={'up':function(){},'down':function(){}}; \ No newline at end of file +'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.29.js b/server/migrations/2.0.29.js index 2e864d1..b09036d 100644 --- a/server/migrations/2.0.29.js +++ b/server/migrations/2.0.29.js @@ -1 +1 @@ -const a1072_0x6737=['exports','calleridnum','phoneBarUnconditionalNumber','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','dialAMDGreeting','sequelize','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());','#AMD\x20Maximum\x20Number\x20Of\x20Words','changeColumn','dialAMDAfterGreetingSilence','enqueue','BOOLEAN','#AMD\x20Greeting','#AMD\x20Maximum\x20Word\x20Length','user_has_openchannel_interactions','chat_interactions','phoneBarNoReply','table\x20dropped\x20%s','join','dialAMDTotalAnalysisTime','#AMD\x20After\x20Greeting\x20Silence','queryInterface','voice_queues','dialAMDBetweenWordsSilence','Active/Disactive\x20AMD','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','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\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INTEGER','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x276\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22HUMAN\x22\x20]?9:7\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\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());','UNSIGNED','dialAMDSilenceThreshold','info','user_has_chat_rooms','../config/logger','prototype','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x279\x27,\x20\x27execif\x27,\x20\x27$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`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());','addIndex\x20%s\x20%s\x20%s','chat_proactive_actions','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\x273\x27,\x20\x27set\x27,\x20\x27CALLERID(all)=${XMD-CALLERID}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','#AMD\x20Min\x20Word\x20Length','chat_dispositions','then','addIndex','dropTable','#AMD\x20Initial\x20Silence','campaigns','user_has_chat_interactions','finally','chat_messages','tail','phoneBarBusyNumber','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());','chat_queues','stringify','phoneBarDnd','chat_applications','dialAMDMaximumWordLength','dialAMDMaximumNumberOfWords','phoneBarUnconditional','STRING','#AMD\x20Total\x20Analysis\x20Time','Changed\x20column\x20%s\x20in\x20table\x20%s','users','#AMD\x20Between\x20Words\x20Silence','dialAMDInitialSilence','cm_hopper','sequence','catch','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','query','phone','addColumn'];(function(_0x464584,_0x30cbb3){const _0x673785=function(_0x22a883){while(--_0x22a883){_0x464584['push'](_0x464584['shift']());}};_0x673785(++_0x30cbb3);}(a1072_0x6737,0xed));const a1072_0x22a8=function(_0x464584,_0x30cbb3){_0x464584=_0x464584-0x181;let _0x673785=a1072_0x6737[_0x464584];return _0x673785;};const a1072_0x48b703=a1072_0x22a8;'use strict';const logger=require(a1072_0x48b703(0x19b))(a1072_0x48b703(0x1a1)),Sequence=function(){};Sequence['prototype'][a1072_0x48b703(0x182)]=function(_0x2db361){const _0x537698=a1072_0x48b703;this[_0x537698(0x1ad)]=this[_0x537698(0x1ad)]?this[_0x537698(0x1ad)][_0x537698(0x1ab)](_0x2db361):_0x2db361();};const Migration=function(_0x182b0c){const _0x6308ad=a1072_0x48b703;this['queryInterface']=_0x182b0c,this[_0x6308ad(0x1be)]=new Sequence();};Migration[a1072_0x48b703(0x19c)][a1072_0x48b703(0x1cc)]=function(_0x1241b8,_0x22b0db,_0x3dcc33){const _0x573067=a1072_0x48b703,_0x3efb97=this;this[_0x573067(0x1be)][_0x573067(0x182)](function(){const _0x8cab9d=_0x573067;return _0x3efb97[_0x8cab9d(0x18d)]['changeColumn'](_0x1241b8,_0x22b0db,_0x3dcc33)['then'](function(){const _0x1ca52b=_0x8cab9d;logger[_0x1ca52b(0x199)](_0x1ca52b(0x1b9),_0x22b0db,_0x1241b8);})[_0x8cab9d(0x1bf)](function(_0x4490a2){const _0x133a1c=_0x8cab9d;logger[_0x133a1c(0x199)](JSON['stringify'](_0x4490a2));});});},Migration[a1072_0x48b703(0x19c)][a1072_0x48b703(0x1c3)]=function(_0xb7de78,_0x1ea794,_0x1b6b6){const _0x2bbf60=a1072_0x48b703,_0xe245b1=this;this['sequence'][_0x2bbf60(0x182)](function(){const _0x1140c6=_0x2bbf60;return _0xe245b1['queryInterface']['addColumn'](_0xb7de78,_0x1ea794,_0x1b6b6)[_0x1140c6(0x1a5)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x1ea794,_0xb7de78);})[_0x1140c6(0x1bf)](function(_0x2e5be9){const _0x34d0ed=_0x1140c6;logger[_0x34d0ed(0x199)](JSON['stringify'](_0x2e5be9));});});},Migration[a1072_0x48b703(0x19c)][a1072_0x48b703(0x1a7)]=function(_0x54ca36){const _0x5bc141=a1072_0x48b703,_0x43944b=this;this[_0x5bc141(0x1be)][_0x5bc141(0x182)](function(){const _0x30ebb9=_0x5bc141;return _0x43944b[_0x30ebb9(0x18d)][_0x30ebb9(0x1a7)](_0x54ca36,{'force':!![]})[_0x30ebb9(0x1a5)](function(){const _0x3509af=_0x30ebb9;logger[_0x3509af(0x199)](_0x3509af(0x189),_0x54ca36);})['catch'](function(_0x35c387){const _0x521adc=_0x30ebb9;logger[_0x521adc(0x199)](JSON['stringify'](_0x35c387));});});},Migration['prototype']['addIndex']=function(_0x3277d9,_0x50416d,_0x765c9a){const _0x9979a4=a1072_0x48b703,_0x438154=this;this[_0x9979a4(0x1be)][_0x9979a4(0x182)](function(){const _0x1a40e3=_0x9979a4;return _0x438154[_0x1a40e3(0x18d)][_0x1a40e3(0x1a6)](_0x3277d9,_0x50416d,{'indexName':_0x765c9a})[_0x1a40e3(0x1a5)](function(){const _0xf3ace0=_0x1a40e3;logger[_0xf3ace0(0x199)](_0xf3ace0(0x19f),_0x3277d9,_0x50416d[_0xf3ace0(0x18a)](','),_0x765c9a);})[_0x1a40e3(0x1bf)](function(_0x120a7e){const _0x535322=_0x1a40e3;logger[_0x535322(0x199)](JSON['stringify'](_0x120a7e));});});},Migration['prototype'][a1072_0x48b703(0x1c1)]=function(_0x5d199f){const _0x20a07d=a1072_0x48b703,_0x446d90=this;this[_0x20a07d(0x1be)]['enqueue'](function(){const _0x4f2e7d=_0x20a07d;return _0x446d90[_0x4f2e7d(0x18d)][_0x4f2e7d(0x1c9)][_0x4f2e7d(0x1c1)](_0x5d199f)['then'](function(){const _0x252d05=_0x4f2e7d;logger[_0x252d05(0x199)](_0x252d05(0x192),_0x5d199f);})[_0x4f2e7d(0x1bf)](function(_0x50e398){const _0x338779=_0x4f2e7d;logger[_0x338779(0x199)](JSON[_0x338779(0x1b1)](_0x50e398));});});},Migration[a1072_0x48b703(0x19c)]['final']=function(_0xe9ef43){const _0x497f36=a1072_0x48b703;this[_0x497f36(0x1be)][_0x497f36(0x182)](function(){return _0xe9ef43();});},module[a1072_0x48b703(0x1c4)]={'up':function(_0x4e9f2d,_0x32883f){return new Promise(function(_0x165c99){const _0x39b02e=a1072_0x22a8,_0x348548=new Migration(_0x4e9f2d);_0x348548[_0x39b02e(0x1a7)](_0x39b02e(0x19a)),_0x348548['dropTable']('chat_enquiries'),_0x348548['dropTable'](_0x39b02e(0x1ac)),_0x348548['dropTable'](_0x39b02e(0x1a0)),_0x348548[_0x39b02e(0x1a7)](_0x39b02e(0x1a4)),_0x348548[_0x39b02e(0x1a7)](_0x39b02e(0x1b3)),_0x348548[_0x39b02e(0x1a7)](_0x39b02e(0x1aa)),_0x348548[_0x39b02e(0x1a7)](_0x39b02e(0x187)),_0x348548[_0x39b02e(0x1a7)]('team_has_chat_queues'),_0x348548[_0x39b02e(0x1a7)]('user_has_chat_queues'),_0x348548['dropTable'](_0x39b02e(0x1b0)),_0x348548[_0x39b02e(0x1a7)]('chat_websites'),_0x348548[_0x39b02e(0x1a7)]('openchannel_messages'),_0x348548[_0x39b02e(0x1a7)](_0x39b02e(0x186)),_0x348548[_0x39b02e(0x1a7)]('openchannel_interactions'),_0x348548['addIndex'](_0x39b02e(0x1bd),[_0x39b02e(0x1c2)],_0x39b02e(0x1c2)),_0x348548[_0x39b02e(0x1a6)]('cm_hopper_final',[_0x39b02e(0x1c5)],_0x39b02e(0x1c5)),_0x348548[_0x39b02e(0x1c3)](_0x39b02e(0x1ba),_0x39b02e(0x1c6),{'type':_0x32883f['STRING']}),_0x348548[_0x39b02e(0x1c3)](_0x39b02e(0x1ba),'phoneBarNoReplyNumber',{'type':_0x32883f[_0x39b02e(0x1b7)]}),_0x348548['addColumn'](_0x39b02e(0x1ba),_0x39b02e(0x1ae),{'type':_0x32883f[_0x39b02e(0x1b7)]}),_0x348548[_0x39b02e(0x1c3)](_0x39b02e(0x1ba),_0x39b02e(0x1b6),{'type':_0x32883f[_0x39b02e(0x183)],'defaultValue':![]}),_0x348548[_0x39b02e(0x1c3)](_0x39b02e(0x1ba),_0x39b02e(0x188),{'type':_0x32883f['BOOLEAN'],'defaultValue':![]}),_0x348548[_0x39b02e(0x1c3)](_0x39b02e(0x1ba),'phoneBarBusy',{'type':_0x32883f[_0x39b02e(0x183)],'defaultValue':![]}),_0x348548[_0x39b02e(0x1c3)](_0x39b02e(0x1ba),_0x39b02e(0x1b2),{'type':_0x32883f['BOOLEAN'],'defaultValue':!![]}),_0x348548['changeColumn'](_0x39b02e(0x1a9),'dialQueueTimeout',{'type':_0x32883f[_0x39b02e(0x194)](0x3)[_0x39b02e(0x197)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x39b02e(0x1c0)}),_0x348548[_0x39b02e(0x1c3)]('voice_queues','dialAMDActive',{'type':_0x32883f[_0x39b02e(0x183)],'defaultValue':0x0,'comment':_0x39b02e(0x190)}),_0x348548[_0x39b02e(0x1c3)](_0x39b02e(0x18e),_0x39b02e(0x1bc),{'type':_0x32883f[_0x39b02e(0x194)](0x9)[_0x39b02e(0x197)],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':_0x39b02e(0x1a8)}),_0x348548['addColumn'](_0x39b02e(0x18e),_0x39b02e(0x1c8),{'type':_0x32883f['INTEGER'](0x9)[_0x39b02e(0x197)],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':_0x39b02e(0x184)}),_0x348548[_0x39b02e(0x1c3)](_0x39b02e(0x18e),_0x39b02e(0x181),{'type':_0x32883f[_0x39b02e(0x194)](0x9)[_0x39b02e(0x197)],'validate':{'min':0x0},'defaultValue':0x320,'comment':_0x39b02e(0x18c)}),_0x348548[_0x39b02e(0x1c3)]('voice_queues',_0x39b02e(0x18b),{'type':_0x32883f[_0x39b02e(0x194)](0x9)[_0x39b02e(0x197)],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x39b02e(0x1b8)}),_0x348548[_0x39b02e(0x1c3)](_0x39b02e(0x18e),'dialAMDMinWordLength',{'type':_0x32883f[_0x39b02e(0x194)](0x9)[_0x39b02e(0x197)],'validate':{'min':0x0},'defaultValue':0x64,'comment':'#AMD\x20Min\x20Word\x20Length'}),_0x348548[_0x39b02e(0x1c3)]('voice_queues',_0x39b02e(0x18f),{'type':_0x32883f[_0x39b02e(0x194)](0x9)[_0x39b02e(0x197)],'validate':{'min':0x0},'defaultValue':0x32,'comment':_0x39b02e(0x1bb)}),_0x348548[_0x39b02e(0x1c3)]('voice_queues',_0x39b02e(0x1b5),{'type':_0x32883f['INTEGER'](0x9)[_0x39b02e(0x197)],'validate':{'min':0x0},'defaultValue':0x3,'comment':_0x39b02e(0x1cb)}),_0x348548[_0x39b02e(0x1c3)](_0x39b02e(0x18e),'dialAMDSilenceThreshold',{'type':_0x32883f['INTEGER'](0x5)['UNSIGNED'],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x39b02e(0x191)}),_0x348548[_0x39b02e(0x1c3)]('voice_queues',_0x39b02e(0x1b4),{'type':_0x32883f[_0x39b02e(0x194)](0x9)[_0x39b02e(0x197)],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x39b02e(0x185)}),_0x348548[_0x39b02e(0x1c3)](_0x39b02e(0x1a9),'dialAMDActive',{'type':_0x32883f['BOOLEAN'],'defaultValue':0x0,'comment':_0x39b02e(0x190)}),_0x348548['addColumn'](_0x39b02e(0x1a9),_0x39b02e(0x1bc),{'type':_0x32883f[_0x39b02e(0x194)](0x9)[_0x39b02e(0x197)],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':'#AMD\x20Initial\x20Silence'}),_0x348548[_0x39b02e(0x1c3)](_0x39b02e(0x1a9),_0x39b02e(0x1c8),{'type':_0x32883f[_0x39b02e(0x194)](0x9)[_0x39b02e(0x197)],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':'#AMD\x20Greeting'}),_0x348548['addColumn']('campaigns',_0x39b02e(0x181),{'type':_0x32883f['INTEGER'](0x9)[_0x39b02e(0x197)],'validate':{'min':0x0},'defaultValue':0x320,'comment':_0x39b02e(0x18c)}),_0x348548['addColumn'](_0x39b02e(0x1a9),_0x39b02e(0x18b),{'type':_0x32883f['INTEGER'](0x9)[_0x39b02e(0x197)],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x39b02e(0x1b8)}),_0x348548[_0x39b02e(0x1c3)](_0x39b02e(0x1a9),'dialAMDMinWordLength',{'type':_0x32883f['INTEGER'](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x64,'comment':_0x39b02e(0x1a3)}),_0x348548[_0x39b02e(0x1c3)](_0x39b02e(0x1a9),_0x39b02e(0x18f),{'type':_0x32883f['INTEGER'](0x9)[_0x39b02e(0x197)],'validate':{'min':0x0},'defaultValue':0x32,'comment':_0x39b02e(0x1bb)}),_0x348548[_0x39b02e(0x1c3)]('campaigns','dialAMDMaximumNumberOfWords',{'type':_0x32883f[_0x39b02e(0x194)](0x9)[_0x39b02e(0x197)],'validate':{'min':0x0},'defaultValue':0x3,'comment':_0x39b02e(0x1cb)}),_0x348548[_0x39b02e(0x1c3)](_0x39b02e(0x1a9),_0x39b02e(0x198),{'type':_0x32883f[_0x39b02e(0x194)](0x5)[_0x39b02e(0x197)],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':'#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)'}),_0x348548[_0x39b02e(0x1c3)](_0x39b02e(0x1a9),_0x39b02e(0x1b4),{'type':_0x32883f['INTEGER'](0x9)[_0x39b02e(0x197)],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x39b02e(0x185)}),_0x348548['query']('DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;'),_0x348548[_0x39b02e(0x1c1)](_0x39b02e(0x1c7)),_0x348548[_0x39b02e(0x1c1)](_0x39b02e(0x193)),_0x348548[_0x39b02e(0x1c1)](_0x39b02e(0x1a2)),_0x348548[_0x39b02e(0x1c1)](_0x39b02e(0x19e)),_0x348548[_0x39b02e(0x1c1)](_0x39b02e(0x196)),_0x348548['query'](_0x39b02e(0x195)),_0x348548[_0x39b02e(0x1c1)](_0x39b02e(0x1ca)),_0x348548[_0x39b02e(0x1c1)]('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());'),_0x348548[_0x39b02e(0x1c1)](_0x39b02e(0x19d)),_0x348548[_0x39b02e(0x1c1)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x348548[_0x39b02e(0x1c1)](_0x39b02e(0x1af)),_0x348548['final'](_0x165c99);});},'down':function(){}}; \ No newline at end of file +const a1072_0x54f1=['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-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());','user_has_openchannel_interactions','phoneBarNoReply','INTEGER','dialAMDActive','join','UNSIGNED','prototype','#AMD\x20Between\x20Words\x20Silence','chat_enquiries','dropTable','dialAMDInitialSilence','dialAMDMinWordLength','then','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;','#AMD\x20Min\x20Word\x20Length','Active/Disactive\x20AMD','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x279\x27,\x20\x27execif\x27,\x20\x27$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','chat_messages','phoneBarUnconditionalNumber','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','changeColumn','dialAMDMaximumNumberOfWords','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());','chat_websites','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','phoneBarUnconditional','final','finally','#AMD\x20Initial\x20Silence','team_has_chat_queues','voice_queues','info','dialAMDTotalAnalysisTime','#AMD\x20Total\x20Analysis\x20Time','user_has_chat_interactions','dialAMDSilenceThreshold','users','campaigns','phone','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2710\x27,\x20\x27execif\x27,\x20\x27$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','query\x20%s','calleridnum','chat_dispositions','enqueue','sequence','query','tail','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-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());','sequelize','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\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());','catch','dialAMDMaximumWordLength','stringify','dialAMDAfterGreetingSilence','dialAMDGreeting','#AMD\x20Maximum\x20Word\x20Length','STRING','BOOLEAN','openchannel_interactions','exports','table\x20dropped\x20%s','addColumn','dialQueueTimeout','#AMD\x20Greeting','addIndex','#AMD\x20After\x20Greeting\x20Silence','phoneBarBusy','chat_applications'];(function(_0x4be93e,_0x25c01f){const _0x54f1ed=function(_0x2cf766){while(--_0x2cf766){_0x4be93e['push'](_0x4be93e['shift']());}};_0x54f1ed(++_0x25c01f);}(a1072_0x54f1,0xcf));const a1072_0x2cf7=function(_0x4be93e,_0x25c01f){_0x4be93e=_0x4be93e-0x83;let _0x54f1ed=a1072_0x54f1[_0x4be93e];return _0x54f1ed;};const a1072_0x1080e9=a1072_0x2cf7;'use strict';const logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1072_0x1080e9(0x94)][a1072_0x1080e9(0xbb)]=function(_0x153521){const _0x5e3d36=a1072_0x1080e9;this[_0x5e3d36(0xbe)]=this[_0x5e3d36(0xbe)]?this['tail'][_0x5e3d36(0xaa)](_0x153521):_0x153521();};const Migration=function(_0x418e2e){const _0x4bd04f=a1072_0x1080e9;this['queryInterface']=_0x418e2e,this[_0x4bd04f(0xbc)]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x448b63,_0x37fc47,_0xa0ffdc){const _0x3a49ce=a1072_0x1080e9,_0x433971=this;this[_0x3a49ce(0xbc)][_0x3a49ce(0xbb)](function(){const _0x3e10cb=_0x3a49ce;return _0x433971[_0x3e10cb(0x8c)][_0x3e10cb(0xa3)](_0x448b63,_0x37fc47,_0xa0ffdc)[_0x3e10cb(0x9a)](function(){const _0x266294=_0x3e10cb;logger[_0x266294(0xae)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x37fc47,_0x448b63);})[_0x3e10cb(0xc2)](function(_0x4816a1){logger['info'](JSON['stringify'](_0x4816a1));});});},Migration[a1072_0x1080e9(0x94)][a1072_0x1080e9(0x85)]=function(_0x3993fb,_0x391015,_0x4d5a24){const _0x5ebba0=a1072_0x1080e9,_0x559245=this;this[_0x5ebba0(0xbc)][_0x5ebba0(0xbb)](function(){const _0x1417bf=_0x5ebba0;return _0x559245[_0x1417bf(0x8c)][_0x1417bf(0x85)](_0x3993fb,_0x391015,_0x4d5a24)[_0x1417bf(0x9a)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x391015,_0x3993fb);})[_0x1417bf(0xc2)](function(_0x479f71){const _0x542719=_0x1417bf;logger[_0x542719(0xae)](JSON[_0x542719(0xc4)](_0x479f71));});});},Migration['prototype'][a1072_0x1080e9(0x97)]=function(_0x58eec2){const _0x5dadc3=a1072_0x1080e9,_0xdd1622=this;this['sequence'][_0x5dadc3(0xbb)](function(){const _0x112af1=_0x5dadc3;return _0xdd1622[_0x112af1(0x8c)][_0x112af1(0x97)](_0x58eec2,{'force':!![]})[_0x112af1(0x9a)](function(){const _0xe3fe32=_0x112af1;logger['info'](_0xe3fe32(0x84),_0x58eec2);})[_0x112af1(0xc2)](function(_0x2173d2){const _0x23551f=_0x112af1;logger[_0x23551f(0xae)](JSON['stringify'](_0x2173d2));});});},Migration['prototype'][a1072_0x1080e9(0x88)]=function(_0x232a86,_0x5df30d,_0x25567e){const _0x2a607c=a1072_0x1080e9,_0x1c75ff=this;this[_0x2a607c(0xbc)][_0x2a607c(0xbb)](function(){const _0x3b4445=_0x2a607c;return _0x1c75ff[_0x3b4445(0x8c)][_0x3b4445(0x88)](_0x232a86,_0x5df30d,{'indexName':_0x25567e})[_0x3b4445(0x9a)](function(){const _0x41bb62=_0x3b4445;logger[_0x41bb62(0xae)]('addIndex\x20%s\x20%s\x20%s',_0x232a86,_0x5df30d[_0x41bb62(0x92)](','),_0x25567e);})[_0x3b4445(0xc2)](function(_0x2096c2){const _0x5253ce=_0x3b4445;logger[_0x5253ce(0xae)](JSON['stringify'](_0x2096c2));});});},Migration[a1072_0x1080e9(0x94)]['query']=function(_0x1a7c90){const _0x10f2f7=a1072_0x1080e9,_0x29d656=this;this[_0x10f2f7(0xbc)]['enqueue'](function(){const _0xf407fc=_0x10f2f7;return _0x29d656[_0xf407fc(0x8c)][_0xf407fc(0xc0)]['query'](_0x1a7c90)['then'](function(){const _0x55d26e=_0xf407fc;logger[_0x55d26e(0xae)](_0x55d26e(0xb8),_0x1a7c90);})[_0xf407fc(0xc2)](function(_0x1eb6bf){const _0x506200=_0xf407fc;logger['info'](JSON[_0x506200(0xc4)](_0x1eb6bf));});});},Migration[a1072_0x1080e9(0x94)][a1072_0x1080e9(0xa9)]=function(_0x48e701){const _0x143d13=a1072_0x1080e9;this['sequence'][_0x143d13(0xbb)](function(){return _0x48e701();});},module[a1072_0x1080e9(0x83)]={'up':function(_0x4f8f6f,_0x1ac4c2){return new Promise(function(_0x560006){const _0x58a8ae=a1072_0x2cf7,_0x35e888=new Migration(_0x4f8f6f);_0x35e888[_0x58a8ae(0x97)]('user_has_chat_rooms'),_0x35e888[_0x58a8ae(0x97)](_0x58a8ae(0x96)),_0x35e888[_0x58a8ae(0x97)](_0x58a8ae(0xa0)),_0x35e888[_0x58a8ae(0x97)]('chat_proactive_actions'),_0x35e888[_0x58a8ae(0x97)](_0x58a8ae(0xba)),_0x35e888['dropTable'](_0x58a8ae(0x8b)),_0x35e888[_0x58a8ae(0x97)](_0x58a8ae(0xb1)),_0x35e888[_0x58a8ae(0x97)]('chat_interactions'),_0x35e888['dropTable'](_0x58a8ae(0xac)),_0x35e888[_0x58a8ae(0x97)]('user_has_chat_queues'),_0x35e888[_0x58a8ae(0x97)]('chat_queues'),_0x35e888[_0x58a8ae(0x97)](_0x58a8ae(0xa6)),_0x35e888[_0x58a8ae(0x97)]('openchannel_messages'),_0x35e888[_0x58a8ae(0x97)](_0x58a8ae(0x8e)),_0x35e888[_0x58a8ae(0x97)](_0x58a8ae(0xca)),_0x35e888[_0x58a8ae(0x88)]('cm_hopper',['phone'],_0x58a8ae(0xb5)),_0x35e888[_0x58a8ae(0x88)]('cm_hopper_final',[_0x58a8ae(0xb9)],_0x58a8ae(0xb9)),_0x35e888[_0x58a8ae(0x85)](_0x58a8ae(0xb3),_0x58a8ae(0xa1),{'type':_0x1ac4c2[_0x58a8ae(0xc8)]}),_0x35e888[_0x58a8ae(0x85)](_0x58a8ae(0xb3),'phoneBarNoReplyNumber',{'type':_0x1ac4c2[_0x58a8ae(0xc8)]}),_0x35e888[_0x58a8ae(0x85)](_0x58a8ae(0xb3),'phoneBarBusyNumber',{'type':_0x1ac4c2[_0x58a8ae(0xc8)]}),_0x35e888[_0x58a8ae(0x85)](_0x58a8ae(0xb3),_0x58a8ae(0xa8),{'type':_0x1ac4c2[_0x58a8ae(0xc9)],'defaultValue':![]}),_0x35e888[_0x58a8ae(0x85)](_0x58a8ae(0xb3),_0x58a8ae(0x8f),{'type':_0x1ac4c2[_0x58a8ae(0xc9)],'defaultValue':![]}),_0x35e888[_0x58a8ae(0x85)]('users',_0x58a8ae(0x8a),{'type':_0x1ac4c2[_0x58a8ae(0xc9)],'defaultValue':![]}),_0x35e888[_0x58a8ae(0x85)](_0x58a8ae(0xb3),'phoneBarDnd',{'type':_0x1ac4c2[_0x58a8ae(0xc9)],'defaultValue':!![]}),_0x35e888['changeColumn'](_0x58a8ae(0xb4),_0x58a8ae(0x86),{'type':_0x1ac4c2[_0x58a8ae(0x90)](0x3)[_0x58a8ae(0x93)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x58a8ae(0x9e)}),_0x35e888['addColumn'](_0x58a8ae(0xad),_0x58a8ae(0x91),{'type':_0x1ac4c2['BOOLEAN'],'defaultValue':0x0,'comment':_0x58a8ae(0x9d)}),_0x35e888[_0x58a8ae(0x85)](_0x58a8ae(0xad),'dialAMDInitialSilence',{'type':_0x1ac4c2[_0x58a8ae(0x90)](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':_0x58a8ae(0xab)}),_0x35e888[_0x58a8ae(0x85)](_0x58a8ae(0xad),_0x58a8ae(0xc6),{'type':_0x1ac4c2['INTEGER'](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':_0x58a8ae(0x87)}),_0x35e888['addColumn']('voice_queues',_0x58a8ae(0xc5),{'type':_0x1ac4c2[_0x58a8ae(0x90)](0x9)[_0x58a8ae(0x93)],'validate':{'min':0x0},'defaultValue':0x320,'comment':_0x58a8ae(0x89)}),_0x35e888[_0x58a8ae(0x85)](_0x58a8ae(0xad),_0x58a8ae(0xaf),{'type':_0x1ac4c2['INTEGER'](0x9)[_0x58a8ae(0x93)],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x58a8ae(0xb0)}),_0x35e888[_0x58a8ae(0x85)]('voice_queues',_0x58a8ae(0x99),{'type':_0x1ac4c2[_0x58a8ae(0x90)](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x64,'comment':_0x58a8ae(0x9c)}),_0x35e888['addColumn'](_0x58a8ae(0xad),'dialAMDBetweenWordsSilence',{'type':_0x1ac4c2['INTEGER'](0x9)[_0x58a8ae(0x93)],'validate':{'min':0x0},'defaultValue':0x32,'comment':_0x58a8ae(0x95)}),_0x35e888['addColumn'](_0x58a8ae(0xad),_0x58a8ae(0xa4),{'type':_0x1ac4c2[_0x58a8ae(0x90)](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x3,'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'}),_0x35e888['addColumn'](_0x58a8ae(0xad),'dialAMDSilenceThreshold',{'type':_0x1ac4c2[_0x58a8ae(0x90)](0x5)[_0x58a8ae(0x93)],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x58a8ae(0xa7)}),_0x35e888['addColumn']('voice_queues',_0x58a8ae(0xc3),{'type':_0x1ac4c2['INTEGER'](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x58a8ae(0xc7)}),_0x35e888['addColumn'](_0x58a8ae(0xb4),_0x58a8ae(0x91),{'type':_0x1ac4c2[_0x58a8ae(0xc9)],'defaultValue':0x0,'comment':_0x58a8ae(0x9d)}),_0x35e888[_0x58a8ae(0x85)](_0x58a8ae(0xb4),_0x58a8ae(0x98),{'type':_0x1ac4c2[_0x58a8ae(0x90)](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':_0x58a8ae(0xab)}),_0x35e888[_0x58a8ae(0x85)](_0x58a8ae(0xb4),_0x58a8ae(0xc6),{'type':_0x1ac4c2['INTEGER'](0x9)[_0x58a8ae(0x93)],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':_0x58a8ae(0x87)}),_0x35e888[_0x58a8ae(0x85)](_0x58a8ae(0xb4),_0x58a8ae(0xc5),{'type':_0x1ac4c2[_0x58a8ae(0x90)](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x320,'comment':'#AMD\x20After\x20Greeting\x20Silence'}),_0x35e888[_0x58a8ae(0x85)](_0x58a8ae(0xb4),'dialAMDTotalAnalysisTime',{'type':_0x1ac4c2[_0x58a8ae(0x90)](0x9)[_0x58a8ae(0x93)],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x58a8ae(0xb0)}),_0x35e888[_0x58a8ae(0x85)](_0x58a8ae(0xb4),'dialAMDMinWordLength',{'type':_0x1ac4c2[_0x58a8ae(0x90)](0x9)[_0x58a8ae(0x93)],'validate':{'min':0x0},'defaultValue':0x64,'comment':_0x58a8ae(0x9c)}),_0x35e888[_0x58a8ae(0x85)]('campaigns','dialAMDBetweenWordsSilence',{'type':_0x1ac4c2[_0x58a8ae(0x90)](0x9)[_0x58a8ae(0x93)],'validate':{'min':0x0},'defaultValue':0x32,'comment':_0x58a8ae(0x95)}),_0x35e888[_0x58a8ae(0x85)]('campaigns','dialAMDMaximumNumberOfWords',{'type':_0x1ac4c2[_0x58a8ae(0x90)](0x9)[_0x58a8ae(0x93)],'validate':{'min':0x0},'defaultValue':0x3,'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'}),_0x35e888[_0x58a8ae(0x85)](_0x58a8ae(0xb4),_0x58a8ae(0xb2),{'type':_0x1ac4c2[_0x58a8ae(0x90)](0x5)[_0x58a8ae(0x93)],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x58a8ae(0xa7)}),_0x35e888[_0x58a8ae(0x85)](_0x58a8ae(0xb4),_0x58a8ae(0xc3),{'type':_0x1ac4c2[_0x58a8ae(0x90)](0x9)[_0x58a8ae(0x93)],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x58a8ae(0xc7)}),_0x35e888[_0x58a8ae(0xbd)](_0x58a8ae(0x9b)),_0x35e888['query'](_0x58a8ae(0xa2)),_0x35e888['query'](_0x58a8ae(0xb6)),_0x35e888[_0x58a8ae(0xbd)](_0x58a8ae(0x8d)),_0x35e888[_0x58a8ae(0xbd)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x35e888['query'](_0x58a8ae(0xc1)),_0x35e888[_0x58a8ae(0xbd)](_0x58a8ae(0xbf)),_0x35e888[_0x58a8ae(0xbd)]('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());'),_0x35e888[_0x58a8ae(0xbd)]('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());'),_0x35e888[_0x58a8ae(0xbd)](_0x58a8ae(0x9f)),_0x35e888['query'](_0x58a8ae(0xb7)),_0x35e888['query'](_0x58a8ae(0xa5)),_0x35e888[_0x58a8ae(0xa9)](_0x560006);});},'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 5ce0ba5..36159cc 100644 --- a/server/migrations/2.0.30.js +++ b/server/migrations/2.0.30.js @@ -1 +1 @@ -const a1073_0x36b3=['user_has_chat_queues','user_has_chat_interactions','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s','voice_queues','stringify','chat_websites','dialQueueTimeout','exports','Added\x20column\x20%s\x20to\x20%s','team_has_chat_queues','migration','sequence','sequelize','INTEGER','chat_applications','chat_queues','query\x20%s','chat_enquiries','addColumn','chat_dispositions','enqueue','then','tail','query','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','finally','changeColumn','chat_websites_fields','queryInterface','prototype','catch','chat_messages','final','chat_interactions','info','user_has_chat_rooms','dropTable'];(function(_0x2a0320,_0x2b379e){const _0x36b3c2=function(_0x1421ed){while(--_0x1421ed){_0x2a0320['push'](_0x2a0320['shift']());}};_0x36b3c2(++_0x2b379e);}(a1073_0x36b3,0xf2));const a1073_0x1421=function(_0x2a0320,_0x2b379e){_0x2a0320=_0x2a0320-0x72;let _0x36b3c2=a1073_0x36b3[_0x2a0320];return _0x36b3c2;};const a1073_0x43be4d=a1073_0x1421;'use strict';const logger=require('../config/logger')(a1073_0x43be4d(0x95)),Sequence=function(){};Sequence['prototype'][a1073_0x43be4d(0x79)]=function(_0x1b7673){const _0x1dc0cd=a1073_0x43be4d;this['tail']=this[_0x1dc0cd(0x7b)]?this['tail'][_0x1dc0cd(0x7e)](_0x1b7673):_0x1b7673();};const Migration=function(_0x101701){const _0x33dcb3=a1073_0x43be4d;this[_0x33dcb3(0x81)]=_0x101701,this[_0x33dcb3(0x96)]=new Sequence();};Migration[a1073_0x43be4d(0x82)][a1073_0x43be4d(0x7f)]=function(_0x949a4a,_0x4453cc,_0x284f01){const _0x1036ef=a1073_0x43be4d,_0x4befc8=this;this[_0x1036ef(0x96)]['enqueue'](function(){const _0x53a06d=_0x1036ef;return _0x4befc8['queryInterface'][_0x53a06d(0x7f)](_0x949a4a,_0x4453cc,_0x284f01)[_0x53a06d(0x7a)](function(){const _0x2b2fe2=_0x53a06d;logger[_0x2b2fe2(0x87)](_0x2b2fe2(0x8c),_0x4453cc,_0x949a4a);})[_0x53a06d(0x83)](function(_0x59fac5){const _0xdd206e=_0x53a06d;logger[_0xdd206e(0x87)](JSON[_0xdd206e(0x8f)](_0x59fac5));});});},Migration['prototype'][a1073_0x43be4d(0x77)]=function(_0x47359c,_0x3d9f95,_0x39add2){const _0x5300b2=a1073_0x43be4d,_0x3c6396=this;this[_0x5300b2(0x96)][_0x5300b2(0x79)](function(){const _0x3b50d3=_0x5300b2;return _0x3c6396['queryInterface'][_0x3b50d3(0x77)](_0x47359c,_0x3d9f95,_0x39add2)['then'](function(){const _0x1b5885=_0x3b50d3;logger['info'](_0x1b5885(0x93),_0x3d9f95,_0x47359c);})[_0x3b50d3(0x83)](function(_0x20fa5d){const _0x56b1cb=_0x3b50d3;logger[_0x56b1cb(0x87)](JSON[_0x56b1cb(0x8f)](_0x20fa5d));});});},Migration['prototype']['dropTable']=function(_0x3fc1fe){const _0x4c30a7=a1073_0x43be4d,_0x5e16b7=this;this[_0x4c30a7(0x96)]['enqueue'](function(){const _0x40b6c7=_0x4c30a7;return _0x5e16b7[_0x40b6c7(0x81)][_0x40b6c7(0x89)](_0x3fc1fe,{'force':!![]})[_0x40b6c7(0x7a)](function(){logger['info']('table\x20dropped\x20%s',_0x3fc1fe);})[_0x40b6c7(0x83)](function(_0x1811ed){const _0x20700f=_0x40b6c7;logger['info'](JSON[_0x20700f(0x8f)](_0x1811ed));});});},Migration['prototype']['addIndex']=function(_0x500803,_0x562e85,_0x99516a){const _0x2360a7=a1073_0x43be4d,_0x12e855=this;this[_0x2360a7(0x96)][_0x2360a7(0x79)](function(){const _0x42e55b=_0x2360a7;return _0x12e855['queryInterface']['addIndex'](_0x500803,_0x562e85,{'indexName':_0x99516a})[_0x42e55b(0x7a)](function(){const _0x3370e9=_0x42e55b;logger['info'](_0x3370e9(0x8d),_0x500803,_0x562e85['join'](','),_0x99516a);})[_0x42e55b(0x83)](function(_0x1427d7){const _0x21a428=_0x42e55b;logger[_0x21a428(0x87)](JSON[_0x21a428(0x8f)](_0x1427d7));});});},Migration[a1073_0x43be4d(0x82)][a1073_0x43be4d(0x7c)]=function(_0x4c4035){const _0x552232=a1073_0x43be4d,_0x4640df=this;this[_0x552232(0x96)]['enqueue'](function(){const _0x2f9dd0=_0x552232;return _0x4640df[_0x2f9dd0(0x81)][_0x2f9dd0(0x97)][_0x2f9dd0(0x7c)](_0x4c4035)[_0x2f9dd0(0x7a)](function(){const _0x5f1d3f=_0x2f9dd0;logger['info'](_0x5f1d3f(0x75),_0x4c4035);})[_0x2f9dd0(0x83)](function(_0x43b7e0){const _0x3382fa=_0x2f9dd0;logger[_0x3382fa(0x87)](JSON[_0x3382fa(0x8f)](_0x43b7e0));});});},Migration['prototype'][a1073_0x43be4d(0x85)]=function(_0x23b058){const _0x1b11b1=a1073_0x43be4d;this[_0x1b11b1(0x96)][_0x1b11b1(0x79)](function(){return _0x23b058();});},module[a1073_0x43be4d(0x92)]={'up':function(_0x58cd69,_0x29b984){return new Promise(function(_0x35a0b4){const _0x1612ae=a1073_0x1421,_0x293389=new Migration(_0x58cd69);_0x293389[_0x1612ae(0x89)](_0x1612ae(0x88)),_0x293389[_0x1612ae(0x89)](_0x1612ae(0x76)),_0x293389['dropTable'](_0x1612ae(0x84)),_0x293389['dropTable']('chat_proactive_actions'),_0x293389[_0x1612ae(0x89)](_0x1612ae(0x78)),_0x293389['dropTable'](_0x1612ae(0x73)),_0x293389['dropTable'](_0x1612ae(0x8b)),_0x293389[_0x1612ae(0x89)](_0x1612ae(0x86)),_0x293389['dropTable'](_0x1612ae(0x94)),_0x293389[_0x1612ae(0x89)](_0x1612ae(0x8a)),_0x293389[_0x1612ae(0x89)](_0x1612ae(0x74)),_0x293389[_0x1612ae(0x89)]('chat_visitors'),_0x293389['dropTable'](_0x1612ae(0x80)),_0x293389[_0x1612ae(0x89)](_0x1612ae(0x90)),_0x293389[_0x1612ae(0x7f)](_0x1612ae(0x8e),_0x1612ae(0x91),{'type':_0x29b984[_0x1612ae(0x72)](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x1612ae(0x7d)}),_0x293389['final'](_0x35a0b4);});},'down':function(){}}; \ No newline at end of file +const a1073_0xfe48=['../config/logger','UNSIGNED','addIndex\x20%s\x20%s\x20%s','tail','info','chat_websites','query\x20%s','queryInterface','user_has_chat_queues','final','INTEGER','exports','table\x20dropped\x20%s','chat_proactive_actions','sequence','chat_interactions','stringify','query','chat_enquiries','chat_websites_fields','then','dialQueueTimeout','prototype','changeColumn','enqueue','voice_queues','addIndex','addColumn','catch','sequelize','migration','chat_messages','chat_visitors','chat_queues','dropTable','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','chat_applications','Added\x20column\x20%s\x20to\x20%s'];(function(_0x53f155,_0xac0619){const _0xfe48d3=function(_0x206366){while(--_0x206366){_0x53f155['push'](_0x53f155['shift']());}};_0xfe48d3(++_0xac0619);}(a1073_0xfe48,0x1d3));const a1073_0x2063=function(_0x53f155,_0xac0619){_0x53f155=_0x53f155-0x1d5;let _0xfe48d3=a1073_0xfe48[_0x53f155];return _0xfe48d3;};const a1073_0x4f36fd=a1073_0x2063;'use strict';const logger=require(a1073_0x4f36fd(0x1f0))(a1073_0x4f36fd(0x1e8)),Sequence=function(){};Sequence['prototype'][a1073_0x4f36fd(0x1e2)]=function(_0xdae8c8){const _0x342594=a1073_0x4f36fd;this[_0x342594(0x1f3)]=this[_0x342594(0x1f3)]?this[_0x342594(0x1f3)]['finally'](_0xdae8c8):_0xdae8c8();};const Migration=function(_0x426513){const _0x3443c3=a1073_0x4f36fd;this[_0x3443c3(0x1f7)]=_0x426513,this['sequence']=new Sequence();};Migration[a1073_0x4f36fd(0x1e0)][a1073_0x4f36fd(0x1e1)]=function(_0x14c88a,_0x3d3218,_0x5a963a){const _0x1c9406=a1073_0x4f36fd,_0x7eec2a=this;this[_0x1c9406(0x1d8)][_0x1c9406(0x1e2)](function(){const _0x479f47=_0x1c9406;return _0x7eec2a['queryInterface'][_0x479f47(0x1e1)](_0x14c88a,_0x3d3218,_0x5a963a)[_0x479f47(0x1de)](function(){const _0x1cfae7=_0x479f47;logger[_0x1cfae7(0x1f4)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3d3218,_0x14c88a);})[_0x479f47(0x1e6)](function(_0x5d9e8e){const _0x38a3ad=_0x479f47;logger[_0x38a3ad(0x1f4)](JSON[_0x38a3ad(0x1da)](_0x5d9e8e));});});},Migration[a1073_0x4f36fd(0x1e0)][a1073_0x4f36fd(0x1e5)]=function(_0x241d04,_0x436f6,_0x1b3122){const _0x62a637=a1073_0x4f36fd,_0x11efd6=this;this[_0x62a637(0x1d8)][_0x62a637(0x1e2)](function(){const _0xe2eb9b=_0x62a637;return _0x11efd6[_0xe2eb9b(0x1f7)]['addColumn'](_0x241d04,_0x436f6,_0x1b3122)['then'](function(){const _0x412177=_0xe2eb9b;logger[_0x412177(0x1f4)](_0x412177(0x1ef),_0x436f6,_0x241d04);})[_0xe2eb9b(0x1e6)](function(_0x2073e4){const _0x57956d=_0xe2eb9b;logger[_0x57956d(0x1f4)](JSON[_0x57956d(0x1da)](_0x2073e4));});});},Migration[a1073_0x4f36fd(0x1e0)]['dropTable']=function(_0x7b17d2){const _0x169079=a1073_0x4f36fd,_0x3687dc=this;this[_0x169079(0x1d8)][_0x169079(0x1e2)](function(){const _0x242540=_0x169079;return _0x3687dc[_0x242540(0x1f7)][_0x242540(0x1ec)](_0x7b17d2,{'force':!![]})[_0x242540(0x1de)](function(){const _0x56f19b=_0x242540;logger[_0x56f19b(0x1f4)](_0x56f19b(0x1d6),_0x7b17d2);})[_0x242540(0x1e6)](function(_0x551a81){const _0x44b8b2=_0x242540;logger[_0x44b8b2(0x1f4)](JSON[_0x44b8b2(0x1da)](_0x551a81));});});},Migration[a1073_0x4f36fd(0x1e0)]['addIndex']=function(_0x4a2688,_0x29ef31,_0x36660f){const _0x1aa3ce=a1073_0x4f36fd,_0x10eac=this;this[_0x1aa3ce(0x1d8)][_0x1aa3ce(0x1e2)](function(){const _0x4e89c8=_0x1aa3ce;return _0x10eac['queryInterface'][_0x4e89c8(0x1e4)](_0x4a2688,_0x29ef31,{'indexName':_0x36660f})[_0x4e89c8(0x1de)](function(){const _0x5f322e=_0x4e89c8;logger[_0x5f322e(0x1f4)](_0x5f322e(0x1f2),_0x4a2688,_0x29ef31['join'](','),_0x36660f);})[_0x4e89c8(0x1e6)](function(_0x2df49f){const _0x203624=_0x4e89c8;logger['info'](JSON[_0x203624(0x1da)](_0x2df49f));});});},Migration['prototype'][a1073_0x4f36fd(0x1db)]=function(_0x570122){const _0x4e4c06=a1073_0x4f36fd,_0x192d75=this;this[_0x4e4c06(0x1d8)][_0x4e4c06(0x1e2)](function(){const _0x467efc=_0x4e4c06;return _0x192d75[_0x467efc(0x1f7)][_0x467efc(0x1e7)]['query'](_0x570122)[_0x467efc(0x1de)](function(){const _0x44180b=_0x467efc;logger[_0x44180b(0x1f4)](_0x44180b(0x1f6),_0x570122);})[_0x467efc(0x1e6)](function(_0x2aa296){const _0x40940b=_0x467efc;logger['info'](JSON[_0x40940b(0x1da)](_0x2aa296));});});},Migration[a1073_0x4f36fd(0x1e0)][a1073_0x4f36fd(0x1f9)]=function(_0x5dffd8){const _0x1e1482=a1073_0x4f36fd;this[_0x1e1482(0x1d8)]['enqueue'](function(){return _0x5dffd8();});},module[a1073_0x4f36fd(0x1d5)]={'up':function(_0x1ad737,_0x32176e){return new Promise(function(_0x444209){const _0x3e4b24=a1073_0x2063,_0x30f501=new Migration(_0x1ad737);_0x30f501['dropTable']('user_has_chat_rooms'),_0x30f501[_0x3e4b24(0x1ec)](_0x3e4b24(0x1dc)),_0x30f501['dropTable'](_0x3e4b24(0x1e9)),_0x30f501[_0x3e4b24(0x1ec)](_0x3e4b24(0x1d7)),_0x30f501[_0x3e4b24(0x1ec)]('chat_dispositions'),_0x30f501[_0x3e4b24(0x1ec)](_0x3e4b24(0x1ee)),_0x30f501[_0x3e4b24(0x1ec)]('user_has_chat_interactions'),_0x30f501['dropTable'](_0x3e4b24(0x1d9)),_0x30f501['dropTable']('team_has_chat_queues'),_0x30f501[_0x3e4b24(0x1ec)](_0x3e4b24(0x1f8)),_0x30f501[_0x3e4b24(0x1ec)](_0x3e4b24(0x1eb)),_0x30f501[_0x3e4b24(0x1ec)](_0x3e4b24(0x1ea)),_0x30f501[_0x3e4b24(0x1ec)](_0x3e4b24(0x1dd)),_0x30f501['dropTable'](_0x3e4b24(0x1f5)),_0x30f501['changeColumn'](_0x3e4b24(0x1e3),_0x3e4b24(0x1df),{'type':_0x32176e[_0x3e4b24(0x1fa)](0x3)[_0x3e4b24(0x1f1)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x3e4b24(0x1ed)}),_0x30f501[_0x3e4b24(0x1f9)](_0x444209);});},'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 a8c44d9..01c8dda 100644 --- a/server/migrations/2.0.31.js +++ b/server/migrations/2.0.31.js @@ -1 +1 @@ -const a1074_0x2c85=['chat_websites','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','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());','stringify','transferexten','transferuniqueid','team_has_sms_queues','FORWARD,\x20BLIND,\x20ATTENDED','IntervalId','sequence','query','enqueue','report_jscripty_questions','timezone','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','token','user_has_sms_interactions','addIndex\x20%s\x20%s\x20%s','phoneBarUnansweredCallBadge','twitter','INTEGER','sms_interactions','table\x20dropped\x20%s','final','BOOLEAN','queryInterface','cm_contacts','facebook','query\x20%s','sms_accounts','exports','sms_messages','prototype','report_queue','ALTER\x20TABLE\x20chat_websites\x20DROP\x20COLUMN\x20OfflineTemplateId','addColumn','questionId','then','report_jscripty_answers','info','tail','ALTER\x20TABLE\x20chat_websites\x20DROP\x20FOREIGN\x20KEY\x20chat_websites_ibfk_2','transfer','transfertype','changeColumn','catch','sequelize','dropTable','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','sms_applications','sms_queues','STRING'];(function(_0x2c4e11,_0x4187e3){const _0x2c853b=function(_0xff12a8){while(--_0xff12a8){_0x2c4e11['push'](_0x2c4e11['shift']());}};_0x2c853b(++_0x4187e3);}(a1074_0x2c85,0x1a8));const a1074_0xff12=function(_0x2c4e11,_0x4187e3){_0x2c4e11=_0x2c4e11-0x12a;let _0x2c853b=a1074_0x2c85[_0x2c4e11];return _0x2c853b;};const a1074_0x3212d3=a1074_0xff12;'use strict';const logger=require(a1074_0x3212d3(0x12c))(a1074_0x3212d3(0x12e)),Sequence=function(){};Sequence[a1074_0x3212d3(0x152)][a1074_0x3212d3(0x13d)]=function(_0x52d3fc){const _0x75b4d4=a1074_0x3212d3;this['tail']=this[_0x75b4d4(0x15a)]?this[_0x75b4d4(0x15a)]['finally'](_0x52d3fc):_0x52d3fc();};const Migration=function(_0x45d160){const _0x2e6480=a1074_0x3212d3;this[_0x2e6480(0x14b)]=_0x45d160,this['sequence']=new Sequence();};Migration[a1074_0x3212d3(0x152)][a1074_0x3212d3(0x15e)]=function(_0x1ff79e,_0x1a5d02,_0x3915d8){const _0xb4fa41=a1074_0x3212d3,_0x3f6d46=this;this[_0xb4fa41(0x13b)][_0xb4fa41(0x13d)](function(){const _0x518e98=_0xb4fa41;return _0x3f6d46[_0x518e98(0x14b)][_0x518e98(0x15e)](_0x1ff79e,_0x1a5d02,_0x3915d8)[_0x518e98(0x157)](function(){const _0x3ec9de=_0x518e98;logger[_0x3ec9de(0x159)](_0x3ec9de(0x12d),_0x1a5d02,_0x1ff79e);})[_0x518e98(0x15f)](function(_0x245049){const _0x5042d8=_0x518e98;logger[_0x5042d8(0x159)](JSON[_0x5042d8(0x135)](_0x245049));});});},Migration['prototype'][a1074_0x3212d3(0x155)]=function(_0x5f2d4b,_0x2cb573,_0x203505){const _0x366178=a1074_0x3212d3,_0x38447a=this;this[_0x366178(0x13b)][_0x366178(0x13d)](function(){const _0x20f326=_0x366178;return _0x38447a[_0x20f326(0x14b)][_0x20f326(0x155)](_0x5f2d4b,_0x2cb573,_0x203505)[_0x20f326(0x157)](function(){const _0x1dfb34=_0x20f326;logger[_0x1dfb34(0x159)]('Added\x20column\x20%s\x20to\x20%s',_0x2cb573,_0x5f2d4b);})['catch'](function(_0x57e3ca){logger['info'](JSON['stringify'](_0x57e3ca));});});},Migration[a1074_0x3212d3(0x152)]['dropTable']=function(_0x1624a1){const _0x3a90ee=a1074_0x3212d3,_0x5c6bf4=this;this[_0x3a90ee(0x13b)][_0x3a90ee(0x13d)](function(){const _0x298a0f=_0x3a90ee;return _0x5c6bf4['queryInterface'][_0x298a0f(0x12b)](_0x1624a1,{'force':!![]})[_0x298a0f(0x157)](function(){const _0x1a0871=_0x298a0f;logger[_0x1a0871(0x159)](_0x1a0871(0x148),_0x1624a1);})[_0x298a0f(0x15f)](function(_0x558e8d){const _0x10b751=_0x298a0f;logger[_0x10b751(0x159)](JSON[_0x10b751(0x135)](_0x558e8d));});});},Migration['prototype']['addIndex']=function(_0x301b57,_0x494ec2,_0x261fa4){const _0x33ef96=a1074_0x3212d3,_0x4c7bc7=this;this[_0x33ef96(0x13b)]['enqueue'](function(){const _0x55611f=_0x33ef96;return _0x4c7bc7[_0x55611f(0x14b)]['addIndex'](_0x301b57,_0x494ec2,{'indexName':_0x261fa4})[_0x55611f(0x157)](function(){const _0x21928c=_0x55611f;logger[_0x21928c(0x159)](_0x21928c(0x143),_0x301b57,_0x494ec2['join'](','),_0x261fa4);})[_0x55611f(0x15f)](function(_0x3f202c){const _0xe5fc74=_0x55611f;logger[_0xe5fc74(0x159)](JSON[_0xe5fc74(0x135)](_0x3f202c));});});},Migration[a1074_0x3212d3(0x152)][a1074_0x3212d3(0x13c)]=function(_0x47f2bf){const _0xe0b3da=a1074_0x3212d3,_0x14715c=this;this[_0xe0b3da(0x13b)][_0xe0b3da(0x13d)](function(){const _0x28cb10=_0xe0b3da;return _0x14715c['queryInterface'][_0x28cb10(0x12a)][_0x28cb10(0x13c)](_0x47f2bf)[_0x28cb10(0x157)](function(){const _0xc3146a=_0x28cb10;logger[_0xc3146a(0x159)](_0xc3146a(0x14e),_0x47f2bf);})['catch'](function(_0x4c59dd){const _0x24b051=_0x28cb10;logger[_0x24b051(0x159)](JSON[_0x24b051(0x135)](_0x4c59dd));});});},Migration[a1074_0x3212d3(0x152)][a1074_0x3212d3(0x149)]=function(_0x4152b7){const _0x259cd3=a1074_0x3212d3;this[_0x259cd3(0x13b)]['enqueue'](function(){return _0x4152b7();});},module[a1074_0x3212d3(0x150)]={'up':function(_0x3380c5,_0xc2cec8){return new Promise(function(_0x463dd7){const _0x50a720=a1074_0xff12,_0x573e3a=new Migration(_0x3380c5);_0x573e3a[_0x50a720(0x12b)](_0x50a720(0x151)),_0x573e3a[_0x50a720(0x12b)]('sms_dispositions'),_0x573e3a[_0x50a720(0x12b)](_0x50a720(0x12f)),_0x573e3a[_0x50a720(0x12b)](_0x50a720(0x142)),_0x573e3a[_0x50a720(0x12b)](_0x50a720(0x147)),_0x573e3a['dropTable'](_0x50a720(0x138)),_0x573e3a['dropTable']('user_has_sms_queues'),_0x573e3a['dropTable'](_0x50a720(0x130)),_0x573e3a[_0x50a720(0x12b)](_0x50a720(0x14f)),_0x573e3a[_0x50a720(0x155)](_0x50a720(0x14c),_0x50a720(0x14d),{'type':_0xc2cec8[_0x50a720(0x131)]}),_0x573e3a['addColumn'](_0x50a720(0x14c),_0x50a720(0x145),{'type':_0xc2cec8[_0x50a720(0x131)]}),_0x573e3a['query'](_0x50a720(0x15b)),_0x573e3a[_0x50a720(0x13c)](_0x50a720(0x154)),_0x573e3a['addColumn'](_0x50a720(0x132),_0x50a720(0x13f),{'type':_0xc2cec8[_0x50a720(0x131)]}),_0x573e3a[_0x50a720(0x155)]('chat_websites',_0x50a720(0x141),{'type':_0xc2cec8[_0x50a720(0x131)]}),_0x573e3a[_0x50a720(0x155)]('chat_websites',_0x50a720(0x13a),{'type':_0xc2cec8[_0x50a720(0x146)](0xb)}),_0x573e3a['query']('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'),_0x573e3a[_0x50a720(0x155)]('report_queue',_0x50a720(0x15c),{'type':_0xc2cec8[_0x50a720(0x14a)],'defaultValue':![]}),_0x573e3a[_0x50a720(0x155)](_0x50a720(0x153),_0x50a720(0x15d),{'type':_0xc2cec8[_0x50a720(0x131)],'comment':_0x50a720(0x139)}),_0x573e3a['addColumn']('report_queue',_0x50a720(0x136),{'type':_0xc2cec8['STRING']}),_0x573e3a[_0x50a720(0x155)](_0x50a720(0x153),_0x50a720(0x137),{'type':_0xc2cec8['STRING']}),_0x573e3a[_0x50a720(0x155)](_0x50a720(0x158),_0x50a720(0x156),{'type':_0xc2cec8['STRING']}),_0x573e3a[_0x50a720(0x155)](_0x50a720(0x13e),_0x50a720(0x156),{'type':_0xc2cec8[_0x50a720(0x131)]}),_0x573e3a[_0x50a720(0x155)]('users',_0x50a720(0x144),{'type':_0xc2cec8[_0x50a720(0x14a)],'defaultValue':!![]}),_0x573e3a[_0x50a720(0x13c)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x573e3a[_0x50a720(0x13c)](_0x50a720(0x140)),_0x573e3a['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x273\x27,\x20\x27set\x27,\x20\x27CALLERID(all)=${XMD-CALLERID}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x573e3a[_0x50a720(0x13c)](_0x50a720(0x133)),_0x573e3a['query'](_0x50a720(0x134)),_0x573e3a[_0x50a720(0x149)](_0x463dd7);});},'down':function(){}}; \ No newline at end of file +const a1074_0x1d01=['addIndex','catch','exports','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-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());','report_jscripty_questions','transferexten','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());','sequence','ALTER\x20TABLE\x20chat_websites\x20DROP\x20COLUMN\x20OfflineTemplateId','sms_queues','users','sms_interactions','token','query','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','stringify','sms_messages','addColumn','enqueue','transfertype','then','sequelize','sms_dispositions','dropTable','finally','cm_contacts','info','ALTER\x20TABLE\x20chat_websites\x20ADD\x20CONSTRAINT\x20chat_websites_ibfk_2\x20FOREIGN\x20KEY\x20(IntervalId)\x20REFERENCES\x20tools_intervals(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL','transferuniqueid','addIndex\x20%s\x20%s\x20%s','chat_websites','report_jscripty_answers','transfer','Changed\x20column\x20%s\x20in\x20table\x20%s','report_queue','queryInterface','facebook','BOOLEAN','IntervalId','user_has_sms_interactions','Added\x20column\x20%s\x20to\x20%s','twitter','prototype','tail','user_has_sms_queues','final','table\x20dropped\x20%s','INTEGER','questionId','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'];(function(_0x55b80e,_0x2eac42){const _0x1d016c=function(_0x212f39){while(--_0x212f39){_0x55b80e['push'](_0x55b80e['shift']());}};_0x1d016c(++_0x2eac42);}(a1074_0x1d01,0x1ad));const a1074_0x212f=function(_0x55b80e,_0x2eac42){_0x55b80e=_0x55b80e-0x1be;let _0x1d016c=a1074_0x1d01[_0x55b80e];return _0x1d016c;};const a1074_0x3268ce=a1074_0x212f;'use strict';const logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1074_0x3268ce(0x1d4)][a1074_0x3268ce(0x1ef)]=function(_0x38387e){const _0x382ec2=a1074_0x3268ce;this[_0x382ec2(0x1d5)]=this[_0x382ec2(0x1d5)]?this[_0x382ec2(0x1d5)][_0x382ec2(0x1c2)](_0x38387e):_0x38387e();};const Migration=function(_0x138425){const _0x3f61a9=a1074_0x3268ce;this[_0x3f61a9(0x1cd)]=_0x138425,this['sequence']=new Sequence();};Migration[a1074_0x3268ce(0x1d4)]['changeColumn']=function(_0x1734d3,_0x5cfda1,_0x5b05b4){const _0x4716e0=a1074_0x3268ce,_0x27eff3=this;this[_0x4716e0(0x1e4)][_0x4716e0(0x1ef)](function(){const _0x467178=_0x4716e0;return _0x27eff3[_0x467178(0x1cd)]['changeColumn'](_0x1734d3,_0x5cfda1,_0x5b05b4)[_0x467178(0x1be)](function(){const _0x55330e=_0x467178;logger['info'](_0x55330e(0x1cb),_0x5cfda1,_0x1734d3);})['catch'](function(_0x11a974){logger['info'](JSON['stringify'](_0x11a974));});});},Migration[a1074_0x3268ce(0x1d4)][a1074_0x3268ce(0x1ee)]=function(_0x571a96,_0x47d37b,_0x42a984){const _0x544942=a1074_0x3268ce,_0x76ce24=this;this['sequence'][_0x544942(0x1ef)](function(){const _0x3d64b3=_0x544942;return _0x76ce24['queryInterface'][_0x3d64b3(0x1ee)](_0x571a96,_0x47d37b,_0x42a984)[_0x3d64b3(0x1be)](function(){const _0x1c1e1d=_0x3d64b3;logger[_0x1c1e1d(0x1c4)](_0x1c1e1d(0x1d2),_0x47d37b,_0x571a96);})[_0x3d64b3(0x1dd)](function(_0x1676bd){logger['info'](JSON['stringify'](_0x1676bd));});});},Migration[a1074_0x3268ce(0x1d4)][a1074_0x3268ce(0x1c1)]=function(_0x2815b6){const _0x2e813a=a1074_0x3268ce,_0x3795a8=this;this[_0x2e813a(0x1e4)]['enqueue'](function(){const _0x2a6202=_0x2e813a;return _0x3795a8[_0x2a6202(0x1cd)][_0x2a6202(0x1c1)](_0x2815b6,{'force':!![]})[_0x2a6202(0x1be)](function(){const _0x2440e6=_0x2a6202;logger[_0x2440e6(0x1c4)](_0x2440e6(0x1d8),_0x2815b6);})[_0x2a6202(0x1dd)](function(_0x281532){const _0x6b430e=_0x2a6202;logger[_0x6b430e(0x1c4)](JSON[_0x6b430e(0x1ec)](_0x281532));});});},Migration['prototype'][a1074_0x3268ce(0x1dc)]=function(_0x4a4077,_0x348ce2,_0x346eb8){const _0x43d572=a1074_0x3268ce,_0x11fe9d=this;this[_0x43d572(0x1e4)][_0x43d572(0x1ef)](function(){const _0x52f91f=_0x43d572;return _0x11fe9d['queryInterface'][_0x52f91f(0x1dc)](_0x4a4077,_0x348ce2,{'indexName':_0x346eb8})[_0x52f91f(0x1be)](function(){const _0x2a2afd=_0x52f91f;logger['info'](_0x2a2afd(0x1c7),_0x4a4077,_0x348ce2['join'](','),_0x346eb8);})[_0x52f91f(0x1dd)](function(_0x5e8a36){const _0xbf31ea=_0x52f91f;logger['info'](JSON[_0xbf31ea(0x1ec)](_0x5e8a36));});});},Migration[a1074_0x3268ce(0x1d4)]['query']=function(_0x15c82c){const _0x427e7b=a1074_0x3268ce,_0x449ed1=this;this[_0x427e7b(0x1e4)][_0x427e7b(0x1ef)](function(){const _0x2846de=_0x427e7b;return _0x449ed1[_0x2846de(0x1cd)][_0x2846de(0x1bf)]['query'](_0x15c82c)[_0x2846de(0x1be)](function(){const _0x188003=_0x2846de;logger[_0x188003(0x1c4)]('query\x20%s',_0x15c82c);})['catch'](function(_0x46195e){const _0x506f9e=_0x2846de;logger[_0x506f9e(0x1c4)](JSON[_0x506f9e(0x1ec)](_0x46195e));});});},Migration[a1074_0x3268ce(0x1d4)][a1074_0x3268ce(0x1d7)]=function(_0x20f425){const _0x269985=a1074_0x3268ce;this[_0x269985(0x1e4)][_0x269985(0x1ef)](function(){return _0x20f425();});},module[a1074_0x3268ce(0x1de)]={'up':function(_0x5f1c5a,_0x143b82){return new Promise(function(_0x10ae15){const _0x498b5c=a1074_0x212f,_0x4ecb2a=new Migration(_0x5f1c5a);_0x4ecb2a['dropTable'](_0x498b5c(0x1ed)),_0x4ecb2a[_0x498b5c(0x1c1)](_0x498b5c(0x1c0)),_0x4ecb2a['dropTable']('sms_applications'),_0x4ecb2a[_0x498b5c(0x1c1)](_0x498b5c(0x1d1)),_0x4ecb2a[_0x498b5c(0x1c1)](_0x498b5c(0x1e8)),_0x4ecb2a[_0x498b5c(0x1c1)]('team_has_sms_queues'),_0x4ecb2a[_0x498b5c(0x1c1)](_0x498b5c(0x1d6)),_0x4ecb2a['dropTable'](_0x498b5c(0x1e6)),_0x4ecb2a['dropTable']('sms_accounts'),_0x4ecb2a[_0x498b5c(0x1ee)](_0x498b5c(0x1c3),_0x498b5c(0x1ce),{'type':_0x143b82[_0x498b5c(0x1df)]}),_0x4ecb2a['addColumn'](_0x498b5c(0x1c3),_0x498b5c(0x1d3),{'type':_0x143b82['STRING']}),_0x4ecb2a['query']('ALTER\x20TABLE\x20chat_websites\x20DROP\x20FOREIGN\x20KEY\x20chat_websites_ibfk_2'),_0x4ecb2a[_0x498b5c(0x1ea)](_0x498b5c(0x1e5)),_0x4ecb2a[_0x498b5c(0x1ee)](_0x498b5c(0x1c8),'timezone',{'type':_0x143b82[_0x498b5c(0x1df)]}),_0x4ecb2a['addColumn']('chat_websites',_0x498b5c(0x1e9),{'type':_0x143b82[_0x498b5c(0x1df)]}),_0x4ecb2a['addColumn']('chat_websites',_0x498b5c(0x1d0),{'type':_0x143b82[_0x498b5c(0x1d9)](0xb)}),_0x4ecb2a[_0x498b5c(0x1ea)](_0x498b5c(0x1c5)),_0x4ecb2a['addColumn'](_0x498b5c(0x1cc),_0x498b5c(0x1ca),{'type':_0x143b82['BOOLEAN'],'defaultValue':![]}),_0x4ecb2a[_0x498b5c(0x1ee)](_0x498b5c(0x1cc),_0x498b5c(0x1f0),{'type':_0x143b82['STRING'],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'}),_0x4ecb2a['addColumn'](_0x498b5c(0x1cc),_0x498b5c(0x1e2),{'type':_0x143b82[_0x498b5c(0x1df)]}),_0x4ecb2a['addColumn'](_0x498b5c(0x1cc),_0x498b5c(0x1c6),{'type':_0x143b82[_0x498b5c(0x1df)]}),_0x4ecb2a[_0x498b5c(0x1ee)](_0x498b5c(0x1c9),_0x498b5c(0x1da),{'type':_0x143b82[_0x498b5c(0x1df)]}),_0x4ecb2a[_0x498b5c(0x1ee)](_0x498b5c(0x1e1),_0x498b5c(0x1da),{'type':_0x143b82['STRING']}),_0x4ecb2a[_0x498b5c(0x1ee)](_0x498b5c(0x1e7),'phoneBarUnansweredCallBadge',{'type':_0x143b82[_0x498b5c(0x1cf)],'defaultValue':!![]}),_0x4ecb2a[_0x498b5c(0x1ea)](_0x498b5c(0x1eb)),_0x4ecb2a['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x4ecb2a[_0x498b5c(0x1ea)](_0x498b5c(0x1db)),_0x4ecb2a['query'](_0x498b5c(0x1e0)),_0x4ecb2a[_0x498b5c(0x1ea)](_0x498b5c(0x1e3)),_0x4ecb2a[_0x498b5c(0x1d7)](_0x10ae15);});},'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 ff8795a..4c3a397 100644 --- a/server/migrations/2.0.32.js +++ b/server/migrations/2.0.32.js @@ -1 +1 @@ -var a1075_0x383e=['exports'];(function(_0x149ad5,_0x61b9b7){var _0x383ec4=function(_0x24b55a){while(--_0x24b55a){_0x149ad5['push'](_0x149ad5['shift']());}};_0x383ec4(++_0x61b9b7);}(a1075_0x383e,0x95));var a1075_0x24b5=function(_0x149ad5,_0x61b9b7){_0x149ad5=_0x149ad5-0x1bc;var _0x383ec4=a1075_0x383e[_0x149ad5];return _0x383ec4;};var a1075_0x467049=a1075_0x24b5;'use strict';module[a1075_0x467049(0x1bc)]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a1075_0x26a1=['exports'];(function(_0xad0e0f,_0x222a5c){var _0x26a1e0=function(_0x29b23e){while(--_0x29b23e){_0xad0e0f['push'](_0xad0e0f['shift']());}};_0x26a1e0(++_0x222a5c);}(a1075_0x26a1,0x16e));var a1075_0x29b2=function(_0xad0e0f,_0x222a5c){_0xad0e0f=_0xad0e0f-0x181;var _0x26a1e0=a1075_0x26a1[_0xad0e0f];return _0x26a1e0;};var a1075_0x28f7c1=a1075_0x29b2;'use strict';module[a1075_0x28f7c1(0x181)]={'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 25ac4bd..fecc27a 100644 --- a/server/migrations/2.0.33.js +++ b/server/migrations/2.0.33.js @@ -1 +1 @@ -const a1076_0x7c55=['fax_rooms','ratingType','table\x20dropped\x20%s','sms_messages','fax_dispositions','sitepic','sequelize','closingMessage','exports','then','ENUM','pathTranscript','fidelity','fax_attachments','removeColumn','info','fax_accounts','catch','TEXT','chat_websites','util','Removed\x20column\x20%s\x20from\x20%s','color_button','inspect','stringify','user_has_openchannel_queues','mailTranscript','fax_queues','acceptMethod','dropTable','star','addIndex','sequence','closeMethod','user_has_fax_queues','queryInterface','ratingValue','user_has_chat_queues','user_has_fax_rooms','queue','prototype','enableRating','color','fax_messages','Added\x20column\x20%s\x20to\x20%s','team_has_fax_queues','actions','#9f946a','changeColumn','addIndex\x20%s\x20%s\x20%s','addColumn','INTEGER','assigned','BOOLEAN','query','email','STRING','UNSIGNED','cm_hopper','forwardOffline','user_has_fax_interactions','rejectUrl','tail','ratingStarsNumber','enqueue','closingMessageButton','migration','thumb','mapKeyOffline','chat_interactions','priority','final','query\x20%s','finally'];(function(_0x2d00fe,_0x3faacf){const _0x7c55d8=function(_0x5a85e1){while(--_0x5a85e1){_0x2d00fe['push'](_0x2d00fe['shift']());}};_0x7c55d8(++_0x3faacf);}(a1076_0x7c55,0x17f));const a1076_0x5a85=function(_0x2d00fe,_0x3faacf){_0x2d00fe=_0x2d00fe-0xbb;let _0x7c55d8=a1076_0x7c55[_0x2d00fe];return _0x7c55d8;};const a1076_0x892701=a1076_0x5a85;'use strict';const logger=require('../config/logger')(a1076_0x892701(0xf0)),util=require(a1076_0x892701(0xc2)),Sequence=function(){};Sequence[a1076_0x892701(0xd6)][a1076_0x892701(0xee)]=function(_0x51d905){const _0x58daec=a1076_0x892701;this[_0x58daec(0xec)]=this[_0x58daec(0xec)]?this[_0x58daec(0xec)][_0x58daec(0xf7)](_0x51d905):_0x51d905();};const Migration=function(_0x2ff180){const _0x1348d0=a1076_0x892701;this[_0x1348d0(0xd1)]=_0x2ff180,this[_0x1348d0(0xce)]=new Sequence();};Migration[a1076_0x892701(0xd6)][a1076_0x892701(0xde)]=function(_0x1c7a04,_0x376d85,_0x56706f){const _0x280286=a1076_0x892701,_0x46f8d7=this;this['sequence'][_0x280286(0xee)](function(){const _0x31d62b=_0x280286;return _0x46f8d7[_0x31d62b(0xd1)][_0x31d62b(0xde)](_0x1c7a04,_0x376d85,_0x56706f)[_0x31d62b(0x101)](function(){const _0x31ec7b=_0x31d62b;logger[_0x31ec7b(0xbd)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x376d85,_0x1c7a04);})[_0x31d62b(0xbf)](function(_0x45cd4b){const _0x54580a=_0x31d62b;logger['info'](JSON[_0x54580a(0xc6)](_0x45cd4b));});});},Migration[a1076_0x892701(0xd6)][a1076_0x892701(0xe0)]=function(_0x4b8a67,_0x60e215,_0x5e04df){const _0x3abb9e=a1076_0x892701,_0x1a4d1a=this;this[_0x3abb9e(0xce)][_0x3abb9e(0xee)](function(){const _0x15c8fe=_0x3abb9e;return _0x1a4d1a[_0x15c8fe(0xd1)][_0x15c8fe(0xe0)](_0x4b8a67,_0x60e215,_0x5e04df)[_0x15c8fe(0x101)](function(){const _0x29a5f0=_0x15c8fe;logger[_0x29a5f0(0xbd)](_0x29a5f0(0xda),_0x60e215,_0x4b8a67);})[_0x15c8fe(0xbf)](function(_0x1e7382){const _0xf2ec0d=_0x15c8fe;logger[_0xf2ec0d(0xbd)](JSON[_0xf2ec0d(0xc6)](_0x1e7382));});});},Migration[a1076_0x892701(0xd6)][a1076_0x892701(0xcb)]=function(_0x2e9117){const _0x16d380=a1076_0x892701,_0x1ca18e=this;this[_0x16d380(0xce)]['enqueue'](function(){const _0x11ce30=_0x16d380;return _0x1ca18e[_0x11ce30(0xd1)][_0x11ce30(0xcb)](_0x2e9117,{'force':!![]})[_0x11ce30(0x101)](function(){const _0x208d06=_0x11ce30;logger[_0x208d06(0xbd)](_0x208d06(0xfa),_0x2e9117);})[_0x11ce30(0xbf)](function(_0x16988d){const _0x1e8cb6=_0x11ce30;logger[_0x1e8cb6(0xbd)](JSON['stringify'](_0x16988d));});});},Migration['prototype'][a1076_0x892701(0xcd)]=function(_0x51d54e,_0x54f10d,_0x3b1a32){const _0x35b8df=a1076_0x892701,_0x383e3d=this;this[_0x35b8df(0xce)][_0x35b8df(0xee)](function(){const _0x404e9a=_0x35b8df;return _0x383e3d['queryInterface'][_0x404e9a(0xcd)](_0x51d54e,_0x54f10d,{'indexName':_0x3b1a32})[_0x404e9a(0x101)](function(){const _0x1a1d80=_0x404e9a;logger[_0x1a1d80(0xbd)](_0x1a1d80(0xdf),_0x51d54e,_0x54f10d['join'](','),_0x3b1a32);})['catch'](function(_0x56f8bd){const _0x4315d5=_0x404e9a;logger[_0x4315d5(0xbd)](JSON['stringify'](_0x56f8bd));});});},Migration[a1076_0x892701(0xd6)][a1076_0x892701(0xe4)]=function(_0x1372b2){const _0xb2d51f=a1076_0x892701,_0x1e757c=this;this['sequence'][_0xb2d51f(0xee)](function(){const _0x11b973=_0xb2d51f;return _0x1e757c[_0x11b973(0xd1)][_0x11b973(0xfe)][_0x11b973(0xe4)](_0x1372b2)['then'](function(){const _0x45ba5d=_0x11b973;logger[_0x45ba5d(0xbd)](_0x45ba5d(0xf6),_0x1372b2);})[_0x11b973(0xbf)](function(_0x2dfc8e){const _0x489e73=_0x11b973;logger[_0x489e73(0xbd)](JSON['stringify'](_0x2dfc8e));});});},Migration['prototype'][a1076_0x892701(0xbc)]=function(_0x415945,_0x2b949d){const _0x1366af=a1076_0x892701,_0x498a38=this;this[_0x1366af(0xce)][_0x1366af(0xee)](function(){const _0x2e00e1=_0x1366af;return _0x498a38['queryInterface'][_0x2e00e1(0xbc)](_0x415945,_0x2b949d)['then'](function(){const _0x1f1df4=_0x2e00e1;logger[_0x1f1df4(0xbd)](_0x1f1df4(0xc3),_0x2b949d,_0x415945);})['catch'](function(_0x295e95){const _0x207cff=_0x2e00e1;logger[_0x207cff(0xbd)](util[_0x207cff(0xc5)](_0x295e95,{'showHidden':![],'depth':null}));});});},Migration[a1076_0x892701(0xd6)]['final']=function(_0x43caf3){const _0x430b6e=a1076_0x892701;this[_0x430b6e(0xce)]['enqueue'](function(){return _0x43caf3();});},module[a1076_0x892701(0x100)]={'up':function(_0x112fe0,_0x1c2758){return new Promise(function(_0x1611d1){const _0x715072=a1076_0x5a85,_0x1d20c1=new Migration(_0x112fe0);_0x1d20c1['addColumn'](_0x715072(0xc1),'agentAlias',{'type':_0x1c2758[_0x715072(0xe6)],'defaultValue':'Agent'}),_0x1d20c1[_0x715072(0xe0)]('chat_websites',_0x715072(0xf2),{'type':_0x1c2758[_0x715072(0xe6)],'defaultValue':_0x715072(0xe5)}),_0x1d20c1[_0x715072(0xe0)](_0x715072(0xc1),_0x715072(0xfd),{'type':_0x1c2758[_0x715072(0xc0)]}),_0x1d20c1[_0x715072(0xe0)](_0x715072(0xc1),_0x715072(0xff),{'type':_0x1c2758[_0x715072(0xc0)]}),_0x1d20c1[_0x715072(0xe0)](_0x715072(0xc1),_0x715072(0xef),{'type':_0x1c2758[_0x715072(0xe6)],'defaultValue':'Send'}),_0x1d20c1['addColumn'](_0x715072(0xc1),_0x715072(0xd7),{'type':_0x1c2758[_0x715072(0xe3)],'defaultValue':![]}),_0x1d20c1[_0x715072(0xe0)](_0x715072(0xc1),_0x715072(0xf9),{'type':_0x1c2758[_0x715072(0x102)](_0x715072(0xcc),_0x715072(0xf1)),'defaultValue':_0x715072(0xcc)}),_0x1d20c1[_0x715072(0xe0)](_0x715072(0xc1),_0x715072(0xed),{'type':_0x1c2758[_0x715072(0xe1)],'defaultValue':0x5}),_0x1d20c1[_0x715072(0xe0)]('chat_interactions',_0x715072(0xd2),{'type':_0x1c2758[_0x715072(0xe1)]}),_0x1d20c1[_0x715072(0xe0)]('chat_interactions','ratingMessage',{'type':_0x1c2758[_0x715072(0xc0)]}),_0x1d20c1[_0x715072(0xe0)](_0x715072(0xf3),_0x715072(0x103),{'type':_0x1c2758[_0x715072(0xc0)]}),_0x1d20c1[_0x715072(0xe0)]('chat_interactions',_0x715072(0xc8),{'type':_0x1c2758['STRING']}),_0x1d20c1[_0x715072(0xe0)]('chat_websites','forwardTranscript',{'type':_0x1c2758[_0x715072(0xe3)],'defaultValue':![]}),_0x1d20c1[_0x715072(0xe0)](_0x715072(0xc1),_0x715072(0xe9),{'type':_0x1c2758[_0x715072(0xe3)],'defaultValue':![]}),_0x1d20c1['addColumn']('chat_websites','forwardOfflineAddress',{'type':_0x1c2758[_0x715072(0xe6)],'validate':{'isEmail':!![]}}),_0x1d20c1['changeColumn'](_0x715072(0xc1),_0x715072(0xd8),{'type':_0x1c2758[_0x715072(0xe6)],'allowNull':![],'defaultValue':_0x715072(0xdd)}),_0x1d20c1[_0x715072(0xde)]('chat_websites',_0x715072(0xc4),{'type':_0x1c2758[_0x715072(0xe6)],'allowNull':![],'defaultValue':'#9f946a'}),_0x1d20c1['dropTable'](_0x715072(0xbb)),_0x1d20c1[_0x715072(0xcb)](_0x715072(0xd4)),_0x1d20c1[_0x715072(0xcb)](_0x715072(0xf8)),_0x1d20c1['dropTable'](_0x715072(0xd9)),_0x1d20c1[_0x715072(0xcb)](_0x715072(0xfc)),_0x1d20c1[_0x715072(0xcb)]('fax_applications'),_0x1d20c1['dropTable'](_0x715072(0xea)),_0x1d20c1[_0x715072(0xcb)]('fax_interactions'),_0x1d20c1[_0x715072(0xcb)](_0x715072(0xdb)),_0x1d20c1[_0x715072(0xcb)](_0x715072(0xd0)),_0x1d20c1['dropTable'](_0x715072(0xc9)),_0x1d20c1['removeColumn']('fax_accounts',_0x715072(0x104)),_0x1d20c1[_0x715072(0xbc)]('fax_accounts','timeout'),_0x1d20c1[_0x715072(0xbc)]('fax_accounts','acceptUrl'),_0x1d20c1[_0x715072(0xbc)]('fax_accounts',_0x715072(0xeb)),_0x1d20c1[_0x715072(0xbc)](_0x715072(0xbe),_0x715072(0xca)),_0x1d20c1[_0x715072(0xbc)](_0x715072(0xbe),'rejectMethod'),_0x1d20c1[_0x715072(0xbc)](_0x715072(0xbe),_0x715072(0xdc)),_0x1d20c1[_0x715072(0xbc)]('fax_accounts','closeUrl'),_0x1d20c1[_0x715072(0xbc)](_0x715072(0xbe),_0x715072(0xcf)),_0x1d20c1['removeColumn'](_0x715072(0xd3),'assigned'),_0x1d20c1[_0x715072(0xbc)]('user_has_chat_queues',_0x715072(0xd5)),_0x1d20c1[_0x715072(0xbc)](_0x715072(0xc7),_0x715072(0xe2)),_0x1d20c1[_0x715072(0xbc)](_0x715072(0xc7),_0x715072(0xd5)),_0x1d20c1[_0x715072(0xe0)](_0x715072(0xe8),_0x715072(0xf4),{'type':_0x1c2758[_0x715072(0xe1)](0x2)[_0x715072(0xe7)],'defaultValue':0x2}),_0x1d20c1[_0x715072(0xcd)](_0x715072(0xe8),[_0x715072(0xf4)],_0x715072(0xf4)),_0x1d20c1[_0x715072(0xcb)](_0x715072(0xfb)),_0x1d20c1[_0x715072(0xf5)](_0x1611d1);});},'down':function(){}}; \ No newline at end of file +const a1076_0x5100=['user_has_fax_interactions','changeColumn','addIndex','Added\x20column\x20%s\x20to\x20%s','closingMessage','removeColumn','fax_attachments','join','closeMethod','fax_accounts','query\x20%s','cm_hopper','../config/logger','sequence','fax_rooms','ratingValue','fax_applications','forwardOffline','ENUM','email','inspect','team_has_fax_queues','enableRating','enqueue','addIndex\x20%s\x20%s\x20%s','closeUrl','mailTranscript','then','fax_queues','pathTranscript','chat_websites','STRING','agentAlias','sitepic','sequelize','thumb','fax_dispositions','catch','rejectUrl','Agent','Changed\x20column\x20%s\x20in\x20table\x20%s','UNSIGNED','acceptUrl','util','info','TEXT','priority','assigned','query','dropTable','user_has_chat_queues','tail','ratingMessage','final','queryInterface','queue','Removed\x20column\x20%s\x20from\x20%s','forwardTranscript','fax_messages','exports','#9f946a','user_has_fax_queues','BOOLEAN','addColumn','closingMessageButton','prototype','INTEGER','migration','stringify','chat_interactions','ratingType','finally','mapKeyOffline','acceptMethod','ratingStarsNumber','fidelity'];(function(_0x2f1880,_0x31c745){const _0x510074=function(_0x31a167){while(--_0x31a167){_0x2f1880['push'](_0x2f1880['shift']());}};_0x510074(++_0x31c745);}(a1076_0x5100,0x197));const a1076_0x31a1=function(_0x2f1880,_0x31c745){_0x2f1880=_0x2f1880-0x13e;let _0x510074=a1076_0x5100[_0x2f1880];return _0x510074;};const a1076_0x45596e=a1076_0x31a1;'use strict';const logger=require(a1076_0x45596e(0x17b))(a1076_0x45596e(0x166)),util=require(a1076_0x45596e(0x14e)),Sequence=function(){};Sequence[a1076_0x45596e(0x164)][a1076_0x45596e(0x186)]=function(_0x421f2d){const _0x32bcbd=a1076_0x45596e;this[_0x32bcbd(0x156)]=this['tail']?this[_0x32bcbd(0x156)][_0x32bcbd(0x16a)](_0x421f2d):_0x421f2d();};const Migration=function(_0x1f5528){const _0x3a1851=a1076_0x45596e;this[_0x3a1851(0x159)]=_0x1f5528,this[_0x3a1851(0x17c)]=new Sequence();};Migration[a1076_0x45596e(0x164)][a1076_0x45596e(0x170)]=function(_0x51e787,_0x1ba742,_0x41c0a8){const _0x41bfa0=a1076_0x45596e,_0x568ac1=this;this[_0x41bfa0(0x17c)]['enqueue'](function(){const _0x22147f=_0x41bfa0;return _0x568ac1[_0x22147f(0x159)][_0x22147f(0x170)](_0x51e787,_0x1ba742,_0x41c0a8)[_0x22147f(0x13e)](function(){const _0x136244=_0x22147f;logger[_0x136244(0x14f)](_0x136244(0x14b),_0x1ba742,_0x51e787);})[_0x22147f(0x148)](function(_0x111efb){const _0x58245a=_0x22147f;logger[_0x58245a(0x14f)](JSON[_0x58245a(0x167)](_0x111efb));});});},Migration['prototype']['addColumn']=function(_0x565f46,_0x1b095d,_0x3605a8){const _0x2434ab=a1076_0x45596e,_0x1991dd=this;this[_0x2434ab(0x17c)][_0x2434ab(0x186)](function(){const _0x3a98cb=_0x2434ab;return _0x1991dd[_0x3a98cb(0x159)][_0x3a98cb(0x162)](_0x565f46,_0x1b095d,_0x3605a8)[_0x3a98cb(0x13e)](function(){const _0x58b931=_0x3a98cb;logger[_0x58b931(0x14f)](_0x58b931(0x172),_0x1b095d,_0x565f46);})[_0x3a98cb(0x148)](function(_0x4f3a14){const _0x5bf754=_0x3a98cb;logger[_0x5bf754(0x14f)](JSON[_0x5bf754(0x167)](_0x4f3a14));});});},Migration[a1076_0x45596e(0x164)][a1076_0x45596e(0x154)]=function(_0x4420d6){const _0x42be42=a1076_0x45596e,_0x25a9e1=this;this['sequence'][_0x42be42(0x186)](function(){const _0x16134e=_0x42be42;return _0x25a9e1[_0x16134e(0x159)][_0x16134e(0x154)](_0x4420d6,{'force':!![]})[_0x16134e(0x13e)](function(){const _0x246764=_0x16134e;logger[_0x246764(0x14f)]('table\x20dropped\x20%s',_0x4420d6);})[_0x16134e(0x148)](function(_0x532cc1){const _0x4f960d=_0x16134e;logger[_0x4f960d(0x14f)](JSON['stringify'](_0x532cc1));});});},Migration['prototype'][a1076_0x45596e(0x171)]=function(_0x14be06,_0x1c0b77,_0x441f69){const _0x5a8c14=a1076_0x45596e,_0x3d031c=this;this[_0x5a8c14(0x17c)][_0x5a8c14(0x186)](function(){const _0x2ad31c=_0x5a8c14;return _0x3d031c['queryInterface'][_0x2ad31c(0x171)](_0x14be06,_0x1c0b77,{'indexName':_0x441f69})[_0x2ad31c(0x13e)](function(){const _0x2d9903=_0x2ad31c;logger[_0x2d9903(0x14f)](_0x2d9903(0x187),_0x14be06,_0x1c0b77[_0x2d9903(0x176)](','),_0x441f69);})[_0x2ad31c(0x148)](function(_0x444a29){const _0x42f064=_0x2ad31c;logger['info'](JSON[_0x42f064(0x167)](_0x444a29));});});},Migration[a1076_0x45596e(0x164)][a1076_0x45596e(0x153)]=function(_0x26baa4){const _0x289ea7=a1076_0x45596e,_0x2c8f19=this;this['sequence'][_0x289ea7(0x186)](function(){const _0x221efd=_0x289ea7;return _0x2c8f19[_0x221efd(0x159)][_0x221efd(0x145)][_0x221efd(0x153)](_0x26baa4)[_0x221efd(0x13e)](function(){const _0x683e24=_0x221efd;logger[_0x683e24(0x14f)](_0x683e24(0x179),_0x26baa4);})['catch'](function(_0x102c77){const _0x1ee4ae=_0x221efd;logger['info'](JSON[_0x1ee4ae(0x167)](_0x102c77));});});},Migration['prototype'][a1076_0x45596e(0x174)]=function(_0x4a1580,_0x17c5af){const _0x5c43e9=a1076_0x45596e,_0x389d3b=this;this[_0x5c43e9(0x17c)][_0x5c43e9(0x186)](function(){const _0x21fe94=_0x5c43e9;return _0x389d3b['queryInterface']['removeColumn'](_0x4a1580,_0x17c5af)[_0x21fe94(0x13e)](function(){const _0x6f1ed4=_0x21fe94;logger[_0x6f1ed4(0x14f)](_0x6f1ed4(0x15b),_0x17c5af,_0x4a1580);})[_0x21fe94(0x148)](function(_0x5a72c7){const _0x213725=_0x21fe94;logger[_0x213725(0x14f)](util[_0x213725(0x183)](_0x5a72c7,{'showHidden':![],'depth':null}));});});},Migration[a1076_0x45596e(0x164)][a1076_0x45596e(0x158)]=function(_0x356fb2){const _0x26438a=a1076_0x45596e;this[_0x26438a(0x17c)]['enqueue'](function(){return _0x356fb2();});},module[a1076_0x45596e(0x15e)]={'up':function(_0x5dd065,_0x53b3fa){return new Promise(function(_0x4d5fe1){const _0x489b15=a1076_0x31a1,_0x56bdc7=new Migration(_0x5dd065);_0x56bdc7['addColumn'](_0x489b15(0x141),_0x489b15(0x143),{'type':_0x53b3fa[_0x489b15(0x142)],'defaultValue':_0x489b15(0x14a)}),_0x56bdc7[_0x489b15(0x162)]('chat_websites',_0x489b15(0x16b),{'type':_0x53b3fa[_0x489b15(0x142)],'defaultValue':_0x489b15(0x182)}),_0x56bdc7[_0x489b15(0x162)]('chat_websites',_0x489b15(0x144),{'type':_0x53b3fa[_0x489b15(0x150)]}),_0x56bdc7[_0x489b15(0x162)](_0x489b15(0x141),_0x489b15(0x173),{'type':_0x53b3fa[_0x489b15(0x150)]}),_0x56bdc7[_0x489b15(0x162)]('chat_websites',_0x489b15(0x163),{'type':_0x53b3fa[_0x489b15(0x142)],'defaultValue':'Send'}),_0x56bdc7[_0x489b15(0x162)](_0x489b15(0x141),_0x489b15(0x185),{'type':_0x53b3fa['BOOLEAN'],'defaultValue':![]}),_0x56bdc7['addColumn']('chat_websites',_0x489b15(0x169),{'type':_0x53b3fa[_0x489b15(0x181)]('star',_0x489b15(0x146)),'defaultValue':'star'}),_0x56bdc7['addColumn']('chat_websites',_0x489b15(0x16d),{'type':_0x53b3fa[_0x489b15(0x165)],'defaultValue':0x5}),_0x56bdc7[_0x489b15(0x162)](_0x489b15(0x168),_0x489b15(0x17e),{'type':_0x53b3fa[_0x489b15(0x165)]}),_0x56bdc7['addColumn'](_0x489b15(0x168),_0x489b15(0x157),{'type':_0x53b3fa['TEXT']}),_0x56bdc7[_0x489b15(0x162)](_0x489b15(0x168),_0x489b15(0x140),{'type':_0x53b3fa[_0x489b15(0x150)]}),_0x56bdc7[_0x489b15(0x162)](_0x489b15(0x168),_0x489b15(0x189),{'type':_0x53b3fa[_0x489b15(0x142)]}),_0x56bdc7[_0x489b15(0x162)](_0x489b15(0x141),_0x489b15(0x15c),{'type':_0x53b3fa[_0x489b15(0x161)],'defaultValue':![]}),_0x56bdc7[_0x489b15(0x162)](_0x489b15(0x141),_0x489b15(0x180),{'type':_0x53b3fa[_0x489b15(0x161)],'defaultValue':![]}),_0x56bdc7['addColumn'](_0x489b15(0x141),'forwardOfflineAddress',{'type':_0x53b3fa[_0x489b15(0x142)],'validate':{'isEmail':!![]}}),_0x56bdc7[_0x489b15(0x170)](_0x489b15(0x141),'color',{'type':_0x53b3fa[_0x489b15(0x142)],'allowNull':![],'defaultValue':_0x489b15(0x15f)}),_0x56bdc7[_0x489b15(0x170)](_0x489b15(0x141),'color_button',{'type':_0x53b3fa[_0x489b15(0x142)],'allowNull':![],'defaultValue':'#9f946a'}),_0x56bdc7[_0x489b15(0x154)](_0x489b15(0x175)),_0x56bdc7[_0x489b15(0x154)]('user_has_fax_rooms'),_0x56bdc7[_0x489b15(0x154)](_0x489b15(0x17d)),_0x56bdc7[_0x489b15(0x154)](_0x489b15(0x15d)),_0x56bdc7[_0x489b15(0x154)](_0x489b15(0x147)),_0x56bdc7[_0x489b15(0x154)](_0x489b15(0x17f)),_0x56bdc7['dropTable'](_0x489b15(0x16f)),_0x56bdc7[_0x489b15(0x154)]('fax_interactions'),_0x56bdc7[_0x489b15(0x154)](_0x489b15(0x184)),_0x56bdc7[_0x489b15(0x154)](_0x489b15(0x160)),_0x56bdc7[_0x489b15(0x154)](_0x489b15(0x13f)),_0x56bdc7[_0x489b15(0x174)]('fax_accounts',_0x489b15(0x16e)),_0x56bdc7['removeColumn']('fax_accounts','timeout'),_0x56bdc7[_0x489b15(0x174)](_0x489b15(0x178),_0x489b15(0x14d)),_0x56bdc7[_0x489b15(0x174)](_0x489b15(0x178),_0x489b15(0x149)),_0x56bdc7['removeColumn'](_0x489b15(0x178),_0x489b15(0x16c)),_0x56bdc7[_0x489b15(0x174)](_0x489b15(0x178),'rejectMethod'),_0x56bdc7[_0x489b15(0x174)](_0x489b15(0x178),'actions'),_0x56bdc7[_0x489b15(0x174)](_0x489b15(0x178),_0x489b15(0x188)),_0x56bdc7[_0x489b15(0x174)]('fax_accounts',_0x489b15(0x177)),_0x56bdc7[_0x489b15(0x174)](_0x489b15(0x155),'assigned'),_0x56bdc7[_0x489b15(0x174)](_0x489b15(0x155),'queue'),_0x56bdc7['removeColumn']('user_has_openchannel_queues',_0x489b15(0x152)),_0x56bdc7[_0x489b15(0x174)]('user_has_openchannel_queues',_0x489b15(0x15a)),_0x56bdc7[_0x489b15(0x162)](_0x489b15(0x17a),'priority',{'type':_0x53b3fa[_0x489b15(0x165)](0x2)[_0x489b15(0x14c)],'defaultValue':0x2}),_0x56bdc7[_0x489b15(0x171)](_0x489b15(0x17a),[_0x489b15(0x151)],_0x489b15(0x151)),_0x56bdc7['dropTable']('sms_messages'),_0x56bdc7[_0x489b15(0x158)](_0x4d5fe1);});},'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 5b0c715..439567d 100644 --- a/server/migrations/2.0.34.js +++ b/server/migrations/2.0.34.js @@ -1 +1 @@ -const a1077_0x2903=['autoclose','sms_accounts','dialRecallInQueue','INTEGER','sequelize','active','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;','browserVersion','CREATE\x20TABLE\x20`mail_messages`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`body`\x20longtext\x20COLLATE\x20utf8mb4_unicode_ci\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`read`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`direction`\x20enum(\x27in\x27,\x27out\x27)\x20COLLATE\x20utf8mb4_unicode_ci\x20NOT\x20NULL\x20DEFAULT\x20\x27out\x27,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`messageId`\x20varchar(190)\x20COLLATE\x20utf8mb4_unicode_ci\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`from`\x20varchar(255)\x20COLLATE\x20utf8mb4_unicode_ci\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`to`\x20longtext\x20COLLATE\x20utf8mb4_unicode_ci,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`cc`\x20longtext\x20COLLATE\x20utf8mb4_unicode_ci,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`bcc`\x20longtext\x20COLLATE\x20utf8mb4_unicode_ci,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`subject`\x20text\x20COLLATE\x20utf8mb4_unicode_ci,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`sentAt`\x20datetime\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`MailAccountId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`MailInteractionId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`ContactId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`id`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`MailAccountId`\x20(`MailAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`MailInteractionId`\x20(`MailInteractionId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`ContactId`\x20(`ContactId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`messageId`\x20(`messageId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_messages_ibfk_1`\x20FOREIGN\x20KEY\x20(`MailAccountId`)\x20REFERENCES\x20`mail_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_messages_ibfk_2`\x20FOREIGN\x20KEY\x20(`MailInteractionId`)\x20REFERENCES\x20`mail_interactions`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_messages_ibfk_3`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`mail_messages_ibfk_4`\x20FOREIGN\x20KEY\x20(`ContactId`)\x20REFERENCES\x20`cm_contacts`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8mb4\x20COLLATE=utf8mb4_unicode_ci;','info','fax_attachments','cm_hopper','browserName','cm_hopper_final','exports','ALTER\x20TABLE\x20users\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8\x20COLLATE\x20utf8_bin;','ALTER\x20TABLE\x20mail_rooms\x20DROP\x20COLUMN\x20MailAccountId','enqueue','mail_accounts','Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.','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','then','skipMessageButton','sendUnmanaged','userDisposition','osName','addIndex','mail_attachments','key','dialRecallMeTimeout','ALTER\x20TABLE\x20mail_rooms\x20DROP\x20FOREIGN\x20KEY\x20mail_rooms_ibfk_1','openchannel_accounts','whiteLabel','Changed\x20column\x20%s\x20in\x20table\x20%s','user_has_mail_rooms','addColumn','rejectUrl','stringify','BOOLEAN','actions','mail_applications','sequence','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailRoomId','accountSid','addIndex\x20%s\x20%s\x20%s','finally','chat_messages','chat_interactions','queryInterface','Thanks\x20you\x20for\x20your\x20time!','authToken','dropTable','../config/logger','query','removeColumn','Skip','final','deviceModel','custom','enableUnmanagedNote','ALTER\x20TABLE\x20analytics_extracted_reports\x20DROP\x20FOREIGN\x20KEY\x20analytics_extracted_reports_ibfk_1','chat_websites','unmanagedMessage','AttachmentId','phone','tail','mail_queues','mail_interactions','join','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;','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailMessageId','team_has_mail_queues','timeout','catch','ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_2','changeColumn','Removed\x20column\x20%s\x20from\x20%s','voice_queues','user_has_mail_queues','mail_dispositions','util','recallme','deviceVendor','Your\x20request\x20has\x20not\x20been\x20processed.','signature','forwardTranscriptMessage','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20UserId','osVersion','ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_1','closeUrl','state','query\x20%s','conditionAgreement','inspect','prototype','fidelity','STRING','closeMethod','deviceType','skipUnmanaged','voice_recordings'];(function(_0x15e2f2,_0x10340d){const _0x290389=function(_0x9d1df3){while(--_0x9d1df3){_0x15e2f2['push'](_0x15e2f2['shift']());}};_0x290389(++_0x10340d);}(a1077_0x2903,0x131));const a1077_0x9d1d=function(_0x15e2f2,_0x10340d){_0x15e2f2=_0x15e2f2-0x172;let _0x290389=a1077_0x2903[_0x15e2f2];return _0x290389;};const a1077_0x1b9b56=a1077_0x9d1d;'use strict';const logger=require(a1077_0x1b9b56(0x1a4))('migration'),util=require(a1077_0x1b9b56(0x1c0)),Sequence=function(){};Sequence['prototype'][a1077_0x1b9b56(0x181)]=function(_0x5a54bb){const _0x438d91=a1077_0x1b9b56;this['tail']=this[_0x438d91(0x1b1)]?this[_0x438d91(0x1b1)][_0x438d91(0x19d)](_0x5a54bb):_0x5a54bb();};const Migration=function(_0x595812){const _0x5aa7b4=a1077_0x1b9b56;this[_0x5aa7b4(0x1a0)]=_0x595812,this['sequence']=new Sequence();};Migration[a1077_0x1b9b56(0x1ce)][a1077_0x1b9b56(0x1bb)]=function(_0xe868cc,_0x4d34f7,_0x12d6f5){const _0x1e74d0=a1077_0x1b9b56,_0xf26221=this;this[_0x1e74d0(0x199)][_0x1e74d0(0x181)](function(){const _0x587b47=_0x1e74d0;return _0xf26221[_0x587b47(0x1a0)]['changeColumn'](_0xe868cc,_0x4d34f7,_0x12d6f5)[_0x587b47(0x185)](function(){const _0x51a567=_0x587b47;logger['info'](_0x51a567(0x191),_0x4d34f7,_0xe868cc);})[_0x587b47(0x1b9)](function(_0x555bf5){const _0x495188=_0x587b47;logger[_0x495188(0x179)](JSON['stringify'](_0x555bf5));});});},Migration[a1077_0x1b9b56(0x1ce)][a1077_0x1b9b56(0x193)]=function(_0x82276d,_0x3a1bfc,_0x5187e4){const _0x176b2c=a1077_0x1b9b56,_0x2dc563=this;this[_0x176b2c(0x199)][_0x176b2c(0x181)](function(){const _0x17cd65=_0x176b2c;return _0x2dc563[_0x17cd65(0x1a0)][_0x17cd65(0x193)](_0x82276d,_0x3a1bfc,_0x5187e4)[_0x17cd65(0x185)](function(){const _0x26c45d=_0x17cd65;logger[_0x26c45d(0x179)]('Added\x20column\x20%s\x20to\x20%s',_0x3a1bfc,_0x82276d);})[_0x17cd65(0x1b9)](function(_0x31ee87){logger['info'](JSON['stringify'](_0x31ee87));});});},Migration['prototype'][a1077_0x1b9b56(0x1a3)]=function(_0x88be0c){const _0x5d59d9=a1077_0x1b9b56,_0x4daa3d=this;this[_0x5d59d9(0x199)]['enqueue'](function(){const _0x5d6ac6=_0x5d59d9;return _0x4daa3d[_0x5d6ac6(0x1a0)][_0x5d6ac6(0x1a3)](_0x88be0c,{'force':!![]})[_0x5d6ac6(0x185)](function(){const _0x38345a=_0x5d6ac6;logger[_0x38345a(0x179)]('table\x20dropped\x20%s',_0x88be0c);})[_0x5d6ac6(0x1b9)](function(_0x24a0d8){const _0x299fb5=_0x5d6ac6;logger[_0x299fb5(0x179)](JSON[_0x299fb5(0x195)](_0x24a0d8));});});},Migration[a1077_0x1b9b56(0x1ce)]['addIndex']=function(_0x41eb09,_0x22dd93,_0x11c027){const _0x5c9d8c=a1077_0x1b9b56,_0x905289=this;this[_0x5c9d8c(0x199)][_0x5c9d8c(0x181)](function(){const _0x2ed7d3=_0x5c9d8c;return _0x905289[_0x2ed7d3(0x1a0)][_0x2ed7d3(0x18a)](_0x41eb09,_0x22dd93,{'indexName':_0x11c027})[_0x2ed7d3(0x185)](function(){const _0x2d5d2e=_0x2ed7d3;logger[_0x2d5d2e(0x179)](_0x2d5d2e(0x19c),_0x41eb09,_0x22dd93[_0x2d5d2e(0x1b4)](','),_0x11c027);})[_0x2ed7d3(0x1b9)](function(_0x538c79){const _0x3d2770=_0x2ed7d3;logger[_0x3d2770(0x179)](JSON['stringify'](_0x538c79));});});},Migration[a1077_0x1b9b56(0x1ce)][a1077_0x1b9b56(0x1a5)]=function(_0x3807ee){const _0x5e8b23=a1077_0x1b9b56,_0x4c0129=this;this[_0x5e8b23(0x199)]['enqueue'](function(){const _0x52edbe=_0x5e8b23;return _0x4c0129[_0x52edbe(0x1a0)][_0x52edbe(0x174)][_0x52edbe(0x1a5)](_0x3807ee)[_0x52edbe(0x185)](function(){const _0x2b963d=_0x52edbe;logger[_0x2b963d(0x179)](_0x2b963d(0x1cb),_0x3807ee);})['catch'](function(_0x1608d6){const _0x31079d=_0x52edbe;logger[_0x31079d(0x179)](JSON[_0x31079d(0x195)](_0x1608d6));});});},Migration[a1077_0x1b9b56(0x1ce)][a1077_0x1b9b56(0x1a6)]=function(_0xaf40af,_0x7a314){const _0x578774=a1077_0x1b9b56,_0x20e571=this;this['sequence'][_0x578774(0x181)](function(){const _0x441d8b=_0x578774;return _0x20e571[_0x441d8b(0x1a0)][_0x441d8b(0x1a6)](_0xaf40af,_0x7a314)[_0x441d8b(0x185)](function(){const _0x4ccd90=_0x441d8b;logger[_0x4ccd90(0x179)](_0x4ccd90(0x1bc),_0x7a314,_0xaf40af);})['catch'](function(_0x3d111e){const _0xf05d04=_0x441d8b;logger[_0xf05d04(0x179)](util[_0xf05d04(0x1cd)](_0x3d111e,{'showHidden':![],'depth':null}));});});},Migration[a1077_0x1b9b56(0x1ce)][a1077_0x1b9b56(0x1a8)]=function(_0x54bdf0){const _0x369073=a1077_0x1b9b56;this[_0x369073(0x199)][_0x369073(0x181)](function(){return _0x54bdf0();});},module[a1077_0x1b9b56(0x17e)]={'up':function(_0x5c31d8,_0x47cc41){return new Promise(function(_0x19240e){const _0x5a13d5=a1077_0x9d1d,_0x1f4843=new Migration(_0x5c31d8);_0x1f4843['addColumn'](_0x5a13d5(0x1ad),_0x5a13d5(0x18c),{'type':_0x47cc41['STRING'],'allowNull':![]}),_0x1f4843[_0x5a13d5(0x193)]('chat_websites',_0x5a13d5(0x1c5),{'type':_0x47cc41[_0x5a13d5(0x1d0)]}),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x1ad),_0x5a13d5(0x186),{'type':_0x47cc41['STRING'],'defaultValue':_0x5a13d5(0x1a7)}),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x1ad),'enableFeedback',{'type':_0x47cc41[_0x5a13d5(0x196)],'defaultValue':![]}),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x1ad),'enableCustomerWriting',{'type':_0x47cc41[_0x5a13d5(0x196)],'defaultValue':![]}),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x1ad),_0x5a13d5(0x1cc),{'type':_0x47cc41[_0x5a13d5(0x196)],'defaultValue':![]}),_0x1f4843['addColumn'](_0x5a13d5(0x1ad),'waitingTitle',{'type':_0x47cc41['STRING'],'defaultValue':'All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.'}),_0x1f4843['addColumn'](_0x5a13d5(0x1ad),'waitingMessage',{'type':_0x47cc41['STRING'],'defaultValue':_0x5a13d5(0x183)}),_0x1f4843[_0x5a13d5(0x193)]('chat_websites',_0x5a13d5(0x1d5),{'type':_0x47cc41[_0x5a13d5(0x196)],'defaultValue':!![]}),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x1ad),_0x5a13d5(0x1ae),{'type':_0x47cc41['STRING'],'defaultValue':_0x5a13d5(0x1c3)}),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x1ad),_0x5a13d5(0x1ab),{'type':_0x47cc41['BOOLEAN'],'defaultValue':!![]}),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x1ad),_0x5a13d5(0x187),{'type':_0x47cc41['STRING'],'defaultValue':'Send'}),_0x1f4843['addColumn'](_0x5a13d5(0x1ad),_0x5a13d5(0x1d3),{'type':_0x47cc41[_0x5a13d5(0x1d0)],'defaultValue':_0x5a13d5(0x1a7)}),_0x1f4843['changeColumn']('chat_websites','closingMessage',{'type':_0x47cc41[_0x5a13d5(0x1d0)],'defaultValue':_0x5a13d5(0x1a1)}),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x19f),_0x5a13d5(0x17c),{'type':_0x47cc41['STRING']}),_0x1f4843['addColumn'](_0x5a13d5(0x19f),_0x5a13d5(0x177),{'type':_0x47cc41[_0x5a13d5(0x1d0)]}),_0x1f4843['addColumn'](_0x5a13d5(0x19f),_0x5a13d5(0x189),{'type':_0x47cc41['STRING']}),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x19f),_0x5a13d5(0x1c7),{'type':_0x47cc41[_0x5a13d5(0x1d0)]}),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x19f),_0x5a13d5(0x1a9),{'type':_0x47cc41[_0x5a13d5(0x1d0)]}),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x19f),_0x5a13d5(0x1c2),{'type':_0x47cc41['STRING']}),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x19f),_0x5a13d5(0x1d2),{'type':_0x47cc41[_0x5a13d5(0x1d0)]}),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x19e),_0x5a13d5(0x1af),{'type':_0x47cc41[_0x5a13d5(0x173)]}),_0x1f4843[_0x5a13d5(0x1a5)](_0x5a13d5(0x184)),_0x1f4843['addColumn'](_0x5a13d5(0x1bd),_0x5a13d5(0x18d),{'type':_0x47cc41[_0x5a13d5(0x173)](0x5)['UNSIGNED'],'defaultValue':0x1e}),_0x1f4843['addColumn'](_0x5a13d5(0x1bd),_0x5a13d5(0x172),{'type':_0x47cc41[_0x5a13d5(0x196)],'defaultValue':![]}),_0x1f4843['addColumn'](_0x5a13d5(0x17b),_0x5a13d5(0x1c1),{'type':_0x47cc41['BOOLEAN'],'defaultValue':![]}),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x17d),_0x5a13d5(0x1c1),{'type':_0x47cc41['BOOLEAN'],'defaultValue':![]}),_0x1f4843[_0x5a13d5(0x193)]('cm_hopper_history',_0x5a13d5(0x1c1),{'type':_0x47cc41[_0x5a13d5(0x196)],'defaultValue':![]}),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x1d4),_0x5a13d5(0x188),{'type':_0x47cc41['STRING']}),_0x1f4843[_0x5a13d5(0x1a3)](_0x5a13d5(0x192)),_0x1f4843[_0x5a13d5(0x1a5)](_0x5a13d5(0x18e)),_0x1f4843[_0x5a13d5(0x1a5)](_0x5a13d5(0x180)),_0x1f4843[_0x5a13d5(0x1a3)]('mail_rooms'),_0x1f4843[_0x5a13d5(0x1a5)](_0x5a13d5(0x1ac)),_0x1f4843['query'](_0x5a13d5(0x1b6)),_0x1f4843[_0x5a13d5(0x1a5)](_0x5a13d5(0x1c8)),_0x1f4843[_0x5a13d5(0x1a5)](_0x5a13d5(0x19a)),_0x1f4843[_0x5a13d5(0x1a5)](_0x5a13d5(0x1ba)),_0x1f4843[_0x5a13d5(0x1a5)](_0x5a13d5(0x1c6)),_0x1f4843[_0x5a13d5(0x1a3)]('mail_messages'),_0x1f4843[_0x5a13d5(0x1a3)](_0x5a13d5(0x18b)),_0x1f4843[_0x5a13d5(0x1a3)](_0x5a13d5(0x1bf)),_0x1f4843[_0x5a13d5(0x1a3)](_0x5a13d5(0x198)),_0x1f4843[_0x5a13d5(0x1a3)]('user_has_mail_interactions'),_0x1f4843[_0x5a13d5(0x1a3)](_0x5a13d5(0x1b3)),_0x1f4843[_0x5a13d5(0x1a3)](_0x5a13d5(0x1b7)),_0x1f4843['dropTable'](_0x5a13d5(0x1be)),_0x1f4843[_0x5a13d5(0x1a3)](_0x5a13d5(0x1b2)),_0x1f4843[_0x5a13d5(0x1a6)](_0x5a13d5(0x182),_0x5a13d5(0x1cf)),_0x1f4843[_0x5a13d5(0x1a6)](_0x5a13d5(0x182),_0x5a13d5(0x1b8)),_0x1f4843[_0x5a13d5(0x1a6)](_0x5a13d5(0x182),_0x5a13d5(0x190)),_0x1f4843[_0x5a13d5(0x1a6)](_0x5a13d5(0x182),'acceptUrl'),_0x1f4843['removeColumn'](_0x5a13d5(0x182),_0x5a13d5(0x194)),_0x1f4843[_0x5a13d5(0x1a6)](_0x5a13d5(0x182),'acceptMethod'),_0x1f4843[_0x5a13d5(0x1a6)](_0x5a13d5(0x182),'rejectMethod'),_0x1f4843[_0x5a13d5(0x1a6)](_0x5a13d5(0x182),_0x5a13d5(0x197)),_0x1f4843[_0x5a13d5(0x1a6)](_0x5a13d5(0x182),_0x5a13d5(0x1c9)),_0x1f4843['removeColumn'](_0x5a13d5(0x182),_0x5a13d5(0x1d1)),_0x1f4843[_0x5a13d5(0x1a6)](_0x5a13d5(0x182),_0x5a13d5(0x1c4)),_0x1f4843[_0x5a13d5(0x1a6)]('mail_accounts',_0x5a13d5(0x1aa)),_0x1f4843['addColumn']('mail_accounts',_0x5a13d5(0x175),{'type':_0x47cc41[_0x5a13d5(0x196)],'defaultValue':!![]}),_0x1f4843[_0x5a13d5(0x1a6)]('mail_servers_out',_0x5a13d5(0x1ca)),_0x1f4843[_0x5a13d5(0x1a3)]('mail_servers_in'),_0x1f4843[_0x5a13d5(0x1a5)](_0x5a13d5(0x1b5)),_0x1f4843['query'](_0x5a13d5(0x178)),_0x1f4843[_0x5a13d5(0x1a5)](_0x5a13d5(0x176)),_0x1f4843[_0x5a13d5(0x1a3)](_0x5a13d5(0x17a)),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x1d6),_0x5a13d5(0x1b0),{'type':_0x47cc41[_0x5a13d5(0x1d0)]}),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x1d6),_0x5a13d5(0x19b),{'type':_0x47cc41[_0x5a13d5(0x1d0)]}),_0x1f4843['addColumn'](_0x5a13d5(0x1d6),_0x5a13d5(0x1a2),{'type':_0x47cc41[_0x5a13d5(0x1d0)]}),_0x1f4843[_0x5a13d5(0x193)]('sms_accounts','key',{'type':_0x47cc41[_0x5a13d5(0x1d0)],'allowNull':![]}),_0x1f4843['query'](_0x5a13d5(0x17f)),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x18f),_0x5a13d5(0x18c),{'type':_0x47cc41[_0x5a13d5(0x1d0)],'allowNull':![]}),_0x1f4843[_0x5a13d5(0x193)]('fax_accounts',_0x5a13d5(0x18c),{'type':_0x47cc41[_0x5a13d5(0x1d0)],'allowNull':![]}),_0x1f4843[_0x5a13d5(0x193)](_0x5a13d5(0x182),_0x5a13d5(0x18c),{'type':_0x47cc41[_0x5a13d5(0x1d0)],'allowNull':![]}),_0x1f4843[_0x5a13d5(0x1a8)](_0x19240e);});},'down':function(){}}; \ No newline at end of file +const a1077_0x114f=['inspect','AttachmentId','mail_accounts','STRING','closingMessage','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;','recallme','key','mail_queues','browserVersion','forwardTranscriptMessage','waitingTitle','mail_dispositions','INTEGER','user_has_mail_queues','ALTER\x20TABLE\x20mail_rooms\x20DROP\x20COLUMN\x20MailAccountId','unmanagedMessage','removeColumn','userDisposition','exports','fax_accounts','chat_messages','mail_attachments','dialRecallInQueue','query','authToken','chat_interactions','addIndex\x20%s\x20%s\x20%s','stringify','enableFeedback','mail_messages','team_has_mail_queues','mail_rooms','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20UserId','voice_recordings','Changed\x20column\x20%s\x20in\x20table\x20%s','enableUnmanagedNote','join','voice_queues','addColumn','catch','chat_websites','enableCustomerWriting','Send','skipMessageButton','sms_accounts','mail_servers_in','fax_attachments','closeMethod','enqueue','sequence','phone','sendUnmanaged','acceptUrl','deviceVendor','conditionAgreement','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;','active','dropTable','openchannel_accounts','waitingMessage','UNSIGNED','autoclose','sequelize','deviceType','mail_interactions','skipUnmanaged','cm_hopper_history','Your\x20request\x20has\x20not\x20been\x20processed.','user_has_mail_interactions','Thanks\x20you\x20for\x20your\x20time!','Added\x20column\x20%s\x20to\x20%s','util','Skip','rejectUrl','dialRecallMeTimeout','rejectMethod','prototype','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailRoomId','changeColumn','queryInterface','cm_hopper_final','osVersion','info','addIndex','osName','ALTER\x20TABLE\x20analytics_extracted_reports\x20DROP\x20FOREIGN\x20KEY\x20analytics_extracted_reports_ibfk_1','state','then','mail_servers_out','signature','tail','acceptMethod','user_has_mail_rooms','ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_1','whiteLabel','cm_hopper','BOOLEAN','ALTER\x20TABLE\x20mail_rooms\x20DROP\x20FOREIGN\x20KEY\x20mail_rooms_ibfk_1','accountSid','final'];(function(_0x3ec63b,_0x467a72){const _0x114fe5=function(_0x513322){while(--_0x513322){_0x3ec63b['push'](_0x3ec63b['shift']());}};_0x114fe5(++_0x467a72);}(a1077_0x114f,0x183));const a1077_0x5133=function(_0x3ec63b,_0x467a72){_0x3ec63b=_0x3ec63b-0x123;let _0x114fe5=a1077_0x114f[_0x3ec63b];return _0x114fe5;};const a1077_0xd9c2cc=a1077_0x5133;'use strict';const logger=require('../config/logger')('migration'),util=require(a1077_0xd9c2cc(0x17c)),Sequence=function(){};Sequence['prototype'][a1077_0xd9c2cc(0x165)]=function(_0x103981){const _0x39bf35=a1077_0xd9c2cc;this['tail']=this[_0x39bf35(0x12a)]?this[_0x39bf35(0x12a)]['finally'](_0x103981):_0x103981();};const Migration=function(_0x1e5e5d){const _0x47d944=a1077_0xd9c2cc;this[_0x47d944(0x184)]=_0x1e5e5d,this[_0x47d944(0x166)]=new Sequence();};Migration[a1077_0xd9c2cc(0x181)][a1077_0xd9c2cc(0x183)]=function(_0x11fd01,_0x1b2992,_0x14f040){const _0x906009=a1077_0xd9c2cc,_0x409279=this;this['sequence'][_0x906009(0x165)](function(){const _0x304724=_0x906009;return _0x409279[_0x304724(0x184)]['changeColumn'](_0x11fd01,_0x1b2992,_0x14f040)[_0x304724(0x127)](function(){const _0x50cd10=_0x304724;logger[_0x50cd10(0x187)](_0x50cd10(0x157),_0x1b2992,_0x11fd01);})[_0x304724(0x15c)](function(_0x1c3df8){const _0x52df63=_0x304724;logger[_0x52df63(0x187)](JSON[_0x52df63(0x150)](_0x1c3df8));});});},Migration['prototype'][a1077_0xd9c2cc(0x15b)]=function(_0x1fc259,_0xebc680,_0x31b172){const _0xc66af7=a1077_0xd9c2cc,_0x33239a=this;this[_0xc66af7(0x166)][_0xc66af7(0x165)](function(){const _0x4398f5=_0xc66af7;return _0x33239a['queryInterface'][_0x4398f5(0x15b)](_0x1fc259,_0xebc680,_0x31b172)[_0x4398f5(0x127)](function(){const _0x10d047=_0x4398f5;logger[_0x10d047(0x187)](_0x10d047(0x17b),_0xebc680,_0x1fc259);})[_0x4398f5(0x15c)](function(_0x304585){const _0x55e668=_0x4398f5;logger[_0x55e668(0x187)](JSON[_0x55e668(0x150)](_0x304585));});});},Migration[a1077_0xd9c2cc(0x181)][a1077_0xd9c2cc(0x16e)]=function(_0x414a54){const _0x17be80=a1077_0xd9c2cc,_0x2ef8f9=this;this[_0x17be80(0x166)][_0x17be80(0x165)](function(){const _0x3784c8=_0x17be80;return _0x2ef8f9[_0x3784c8(0x184)][_0x3784c8(0x16e)](_0x414a54,{'force':!![]})[_0x3784c8(0x127)](function(){const _0x1e6d03=_0x3784c8;logger[_0x1e6d03(0x187)]('table\x20dropped\x20%s',_0x414a54);})[_0x3784c8(0x15c)](function(_0x281cd8){const _0x204848=_0x3784c8;logger[_0x204848(0x187)](JSON[_0x204848(0x150)](_0x281cd8));});});},Migration[a1077_0xd9c2cc(0x181)][a1077_0xd9c2cc(0x123)]=function(_0x26f8cc,_0x247511,_0x13addc){const _0x10b1b0=a1077_0xd9c2cc,_0x2f6a24=this;this[_0x10b1b0(0x166)][_0x10b1b0(0x165)](function(){const _0xd2d1ec=_0x10b1b0;return _0x2f6a24[_0xd2d1ec(0x184)][_0xd2d1ec(0x123)](_0x26f8cc,_0x247511,{'indexName':_0x13addc})[_0xd2d1ec(0x127)](function(){const _0x5ecd0e=_0xd2d1ec;logger[_0x5ecd0e(0x187)](_0x5ecd0e(0x14f),_0x26f8cc,_0x247511[_0x5ecd0e(0x159)](','),_0x13addc);})[_0xd2d1ec(0x15c)](function(_0x1cb8e0){const _0x3da4af=_0xd2d1ec;logger[_0x3da4af(0x187)](JSON[_0x3da4af(0x150)](_0x1cb8e0));});});},Migration[a1077_0xd9c2cc(0x181)][a1077_0xd9c2cc(0x14c)]=function(_0x24a1f7){const _0x4c9314=this;this['sequence']['enqueue'](function(){const _0x3b2232=a1077_0x5133;return _0x4c9314['queryInterface'][_0x3b2232(0x173)][_0x3b2232(0x14c)](_0x24a1f7)[_0x3b2232(0x127)](function(){const _0x53e4c4=_0x3b2232;logger[_0x53e4c4(0x187)]('query\x20%s',_0x24a1f7);})[_0x3b2232(0x15c)](function(_0x1efbe0){const _0xe59947=_0x3b2232;logger[_0xe59947(0x187)](JSON['stringify'](_0x1efbe0));});});},Migration[a1077_0xd9c2cc(0x181)][a1077_0xd9c2cc(0x145)]=function(_0x4e317e,_0x4b9f94){const _0x39f324=a1077_0xd9c2cc,_0x2bffdc=this;this['sequence'][_0x39f324(0x165)](function(){const _0x455ef8=_0x39f324;return _0x2bffdc[_0x455ef8(0x184)][_0x455ef8(0x145)](_0x4e317e,_0x4b9f94)['then'](function(){const _0x569fb1=_0x455ef8;logger[_0x569fb1(0x187)]('Removed\x20column\x20%s\x20from\x20%s',_0x4b9f94,_0x4e317e);})[_0x455ef8(0x15c)](function(_0x477fbc){const _0xbcdac1=_0x455ef8;logger['info'](util[_0xbcdac1(0x134)](_0x477fbc,{'showHidden':![],'depth':null}));});});},Migration[a1077_0xd9c2cc(0x181)][a1077_0xd9c2cc(0x133)]=function(_0x237d67){const _0x4d7e9e=a1077_0xd9c2cc;this[_0x4d7e9e(0x166)][_0x4d7e9e(0x165)](function(){return _0x237d67();});},module[a1077_0xd9c2cc(0x147)]={'up':function(_0x27627b,_0x11d7dd){return new Promise(function(_0x5d6016){const _0x2e1685=a1077_0x5133,_0xfbbf79=new Migration(_0x27627b);_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x15d),_0x2e1685(0x13b),{'type':_0x11d7dd[_0x2e1685(0x137)],'allowNull':![]}),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x15d),_0x2e1685(0x13e),{'type':_0x11d7dd['STRING']}),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x15d),_0x2e1685(0x160),{'type':_0x11d7dd[_0x2e1685(0x137)],'defaultValue':'Skip'}),_0xfbbf79['addColumn'](_0x2e1685(0x15d),_0x2e1685(0x151),{'type':_0x11d7dd[_0x2e1685(0x130)],'defaultValue':![]}),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x15d),_0x2e1685(0x15e),{'type':_0x11d7dd[_0x2e1685(0x130)],'defaultValue':![]}),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x15d),_0x2e1685(0x16b),{'type':_0x11d7dd[_0x2e1685(0x130)],'defaultValue':![]}),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x15d),_0x2e1685(0x13f),{'type':_0x11d7dd[_0x2e1685(0x137)],'defaultValue':'All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.'}),_0xfbbf79['addColumn'](_0x2e1685(0x15d),_0x2e1685(0x170),{'type':_0x11d7dd[_0x2e1685(0x137)],'defaultValue':'Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.'}),_0xfbbf79['addColumn'](_0x2e1685(0x15d),_0x2e1685(0x172),{'type':_0x11d7dd[_0x2e1685(0x130)],'defaultValue':!![]}),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x15d),_0x2e1685(0x144),{'type':_0x11d7dd[_0x2e1685(0x137)],'defaultValue':_0x2e1685(0x178)}),_0xfbbf79['addColumn']('chat_websites',_0x2e1685(0x158),{'type':_0x11d7dd[_0x2e1685(0x130)],'defaultValue':!![]}),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x15d),_0x2e1685(0x168),{'type':_0x11d7dd[_0x2e1685(0x137)],'defaultValue':_0x2e1685(0x15f)}),_0xfbbf79['addColumn'](_0x2e1685(0x15d),_0x2e1685(0x176),{'type':_0x11d7dd[_0x2e1685(0x137)],'defaultValue':_0x2e1685(0x17d)}),_0xfbbf79[_0x2e1685(0x183)](_0x2e1685(0x15d),_0x2e1685(0x138),{'type':_0x11d7dd[_0x2e1685(0x137)],'defaultValue':_0x2e1685(0x17a)}),_0xfbbf79['addColumn'](_0x2e1685(0x14e),'browserName',{'type':_0x11d7dd['STRING']}),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x14e),_0x2e1685(0x13d),{'type':_0x11d7dd[_0x2e1685(0x137)]}),_0xfbbf79[_0x2e1685(0x15b)]('chat_interactions',_0x2e1685(0x124),{'type':_0x11d7dd[_0x2e1685(0x137)]}),_0xfbbf79['addColumn'](_0x2e1685(0x14e),_0x2e1685(0x186),{'type':_0x11d7dd[_0x2e1685(0x137)]}),_0xfbbf79['addColumn'](_0x2e1685(0x14e),'deviceModel',{'type':_0x11d7dd[_0x2e1685(0x137)]}),_0xfbbf79['addColumn'](_0x2e1685(0x14e),_0x2e1685(0x16a),{'type':_0x11d7dd[_0x2e1685(0x137)]}),_0xfbbf79[_0x2e1685(0x15b)]('chat_interactions',_0x2e1685(0x174),{'type':_0x11d7dd[_0x2e1685(0x137)]}),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x149),_0x2e1685(0x135),{'type':_0x11d7dd[_0x2e1685(0x141)]}),_0xfbbf79[_0x2e1685(0x14c)]('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'),_0xfbbf79[_0x2e1685(0x15b)]('voice_queues',_0x2e1685(0x17f),{'type':_0x11d7dd[_0x2e1685(0x141)](0x5)[_0x2e1685(0x171)],'defaultValue':0x1e}),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x15a),_0x2e1685(0x14b),{'type':_0x11d7dd[_0x2e1685(0x130)],'defaultValue':![]}),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x12f),_0x2e1685(0x13a),{'type':_0x11d7dd['BOOLEAN'],'defaultValue':![]}),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x185),_0x2e1685(0x13a),{'type':_0x11d7dd['BOOLEAN'],'defaultValue':![]}),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x177),_0x2e1685(0x13a),{'type':_0x11d7dd['BOOLEAN'],'defaultValue':![]}),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x156),_0x2e1685(0x146),{'type':_0x11d7dd[_0x2e1685(0x137)]}),_0xfbbf79[_0x2e1685(0x16e)](_0x2e1685(0x12c)),_0xfbbf79[_0x2e1685(0x14c)](_0x2e1685(0x131)),_0xfbbf79[_0x2e1685(0x14c)](_0x2e1685(0x143)),_0xfbbf79[_0x2e1685(0x16e)](_0x2e1685(0x154)),_0xfbbf79[_0x2e1685(0x14c)](_0x2e1685(0x125)),_0xfbbf79[_0x2e1685(0x14c)]('ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailMessageId'),_0xfbbf79['query'](_0x2e1685(0x12d)),_0xfbbf79[_0x2e1685(0x14c)](_0x2e1685(0x182)),_0xfbbf79[_0x2e1685(0x14c)]('ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_2'),_0xfbbf79[_0x2e1685(0x14c)](_0x2e1685(0x155)),_0xfbbf79['dropTable'](_0x2e1685(0x152)),_0xfbbf79['dropTable'](_0x2e1685(0x14a)),_0xfbbf79[_0x2e1685(0x16e)](_0x2e1685(0x140)),_0xfbbf79['dropTable']('mail_applications'),_0xfbbf79[_0x2e1685(0x16e)](_0x2e1685(0x179)),_0xfbbf79[_0x2e1685(0x16e)](_0x2e1685(0x175)),_0xfbbf79[_0x2e1685(0x16e)](_0x2e1685(0x153)),_0xfbbf79[_0x2e1685(0x16e)](_0x2e1685(0x142)),_0xfbbf79[_0x2e1685(0x16e)](_0x2e1685(0x13c)),_0xfbbf79[_0x2e1685(0x145)](_0x2e1685(0x136),'fidelity'),_0xfbbf79[_0x2e1685(0x145)](_0x2e1685(0x136),'timeout'),_0xfbbf79[_0x2e1685(0x145)](_0x2e1685(0x136),_0x2e1685(0x12e)),_0xfbbf79[_0x2e1685(0x145)](_0x2e1685(0x136),_0x2e1685(0x169)),_0xfbbf79['removeColumn'](_0x2e1685(0x136),_0x2e1685(0x17e)),_0xfbbf79[_0x2e1685(0x145)](_0x2e1685(0x136),_0x2e1685(0x12b)),_0xfbbf79[_0x2e1685(0x145)](_0x2e1685(0x136),_0x2e1685(0x180)),_0xfbbf79[_0x2e1685(0x145)](_0x2e1685(0x136),'actions'),_0xfbbf79[_0x2e1685(0x145)](_0x2e1685(0x136),'closeUrl'),_0xfbbf79[_0x2e1685(0x145)](_0x2e1685(0x136),_0x2e1685(0x164)),_0xfbbf79[_0x2e1685(0x145)](_0x2e1685(0x136),_0x2e1685(0x129)),_0xfbbf79[_0x2e1685(0x145)](_0x2e1685(0x136),'custom'),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x136),_0x2e1685(0x16d),{'type':_0x11d7dd[_0x2e1685(0x130)],'defaultValue':!![]}),_0xfbbf79[_0x2e1685(0x145)](_0x2e1685(0x128),_0x2e1685(0x126)),_0xfbbf79[_0x2e1685(0x16e)](_0x2e1685(0x162)),_0xfbbf79[_0x2e1685(0x14c)](_0x2e1685(0x139)),_0xfbbf79['query'](_0x2e1685(0x16c)),_0xfbbf79[_0x2e1685(0x14c)]('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;'),_0xfbbf79['dropTable'](_0x2e1685(0x163)),_0xfbbf79[_0x2e1685(0x15b)]('sms_accounts',_0x2e1685(0x167),{'type':_0x11d7dd[_0x2e1685(0x137)]}),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x161),_0x2e1685(0x132),{'type':_0x11d7dd[_0x2e1685(0x137)]}),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x161),_0x2e1685(0x14d),{'type':_0x11d7dd[_0x2e1685(0x137)]}),_0xfbbf79['addColumn']('sms_accounts','key',{'type':_0x11d7dd['STRING'],'allowNull':![]}),_0xfbbf79['query']('ALTER\x20TABLE\x20users\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8\x20COLLATE\x20utf8_bin;'),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x16f),_0x2e1685(0x13b),{'type':_0x11d7dd[_0x2e1685(0x137)],'allowNull':![]}),_0xfbbf79[_0x2e1685(0x15b)](_0x2e1685(0x148),_0x2e1685(0x13b),{'type':_0x11d7dd[_0x2e1685(0x137)],'allowNull':![]}),_0xfbbf79['addColumn'](_0x2e1685(0x136),'key',{'type':_0x11d7dd['STRING'],'allowNull':![]}),_0xfbbf79[_0x2e1685(0x133)](_0x5d6016);});},'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 b675e83..b2e89a3 100644 --- a/server/migrations/2.0.35.js +++ b/server/migrations/2.0.35.js @@ -1 +1 @@ -const a1078_0x24e4=['query\x20%s','ENUM','MailInteractionId','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','Added\x20column\x20%s\x20to\x20%s','report_fax_session','star','ASC','messageId','mail_accounts','TEXT','cm_hopper_history','bcc','subject','voiceSource','edited','queryInterface','addColumn','catch','direction','exports','inReplyTo','enableCustomerAttachment','Send','report_chat_session','ALTER\x20TABLE\x20chat_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','read','analytics_custom_reports','status','campaigns','mail_messages','report_sms','dropTable','tools_templates','report_mail','customerIp','joins','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','stringify','phoneBarEnableDtmfTone','STRING','addIndex\x20%s\x20%s\x20%s','prototype','attachment','then','mail_interactions','accountId','sequence','INTEGER','query','body','thumb','UserId','addIndex','sequelize','info','html','analytics_default_reports','MailAccountId','text','join','userFullname','report_sms_session','dialOrderByScheduledAt','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','final','long','chat_websites','Removed\x20column\x20%s\x20from\x20%s','accountName','out','voice_queues','table\x20dropped\x20%s','report_openchannel','ContactId','attach','Changed\x20column\x20%s\x20in\x20table\x20%s','fromId','users','ALTER\x20TABLE\x20mail_messages\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','offline_chat_button','removeColumn','inspect','BOOLEAN','signature','report_fax','changeColumn','tail','report_openchannel_session','enqueue','chat_interactions','DATE','userName','DESC'];(function(_0x3e61fc,_0x1e4498){const _0x24e45f=function(_0x102c21){while(--_0x102c21){_0x3e61fc['push'](_0x3e61fc['shift']());}};_0x24e45f(++_0x1e4498);}(a1078_0x24e4,0xdb));const a1078_0x102c=function(_0x3e61fc,_0x1e4498){_0x3e61fc=_0x3e61fc-0x93;let _0x24e45f=a1078_0x24e4[_0x3e61fc];return _0x24e45f;};const a1078_0x233849=a1078_0x102c;'use strict';const logger=require('../config/logger')('migration'),util=require('util'),Sequence=function(){};Sequence[a1078_0x233849(0x9e)][a1078_0x233849(0xcd)]=function(_0x5613a6){const _0x554c66=a1078_0x233849;this['tail']=this[_0x554c66(0xcb)]?this[_0x554c66(0xcb)]['finally'](_0x5613a6):_0x5613a6();};const Migration=function(_0x261fee){const _0x4d1483=a1078_0x233849;this[_0x4d1483(0xe2)]=_0x261fee,this[_0x4d1483(0xa3)]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x3601c0,_0x298d40,_0x381ff0){const _0x26e8e3=a1078_0x233849,_0x82c9b6=this;this[_0x26e8e3(0xa3)][_0x26e8e3(0xcd)](function(){const _0xd53179=_0x26e8e3;return _0x82c9b6['queryInterface'][_0xd53179(0xca)](_0x3601c0,_0x298d40,_0x381ff0)['then'](function(){const _0x13b828=_0xd53179;logger[_0x13b828(0xab)](_0x13b828(0xc0),_0x298d40,_0x3601c0);})[_0xd53179(0xe4)](function(_0x397254){const _0x5131e4=_0xd53179;logger['info'](JSON[_0x5131e4(0x9a)](_0x397254));});});},Migration[a1078_0x233849(0x9e)][a1078_0x233849(0xe3)]=function(_0x1ce1d8,_0x532b2c,_0x3f489d){const _0x4ac66c=a1078_0x233849,_0x396eec=this;this[_0x4ac66c(0xa3)][_0x4ac66c(0xcd)](function(){const _0x25ff92=_0x4ac66c;return _0x396eec[_0x25ff92(0xe2)][_0x25ff92(0xe3)](_0x1ce1d8,_0x532b2c,_0x3f489d)[_0x25ff92(0xa0)](function(){const _0x56d6dd=_0x25ff92;logger[_0x56d6dd(0xab)](_0x56d6dd(0xd6),_0x532b2c,_0x1ce1d8);})[_0x25ff92(0xe4)](function(_0x4adb02){const _0x282450=_0x25ff92;logger['info'](JSON[_0x282450(0x9a)](_0x4adb02));});});},Migration['prototype']['dropTable']=function(_0x258588){const _0x43f31e=a1078_0x233849,_0x25d58a=this;this['sequence'][_0x43f31e(0xcd)](function(){const _0x1cc52c=_0x43f31e;return _0x25d58a['queryInterface']['dropTable'](_0x258588,{'force':!![]})['then'](function(){const _0x4418c4=a1078_0x102c;logger[_0x4418c4(0xab)](_0x4418c4(0xbc),_0x258588);})[_0x1cc52c(0xe4)](function(_0x4b0543){const _0x14ec39=_0x1cc52c;logger['info'](JSON[_0x14ec39(0x9a)](_0x4b0543));});});},Migration['prototype']['addIndex']=function(_0x4eab63,_0x13532f,_0x271356){const _0x44b09c=a1078_0x233849,_0x4a106e=this;this[_0x44b09c(0xa3)][_0x44b09c(0xcd)](function(){const _0x1944c4=_0x44b09c;return _0x4a106e[_0x1944c4(0xe2)][_0x1944c4(0xa9)](_0x4eab63,_0x13532f,{'indexName':_0x271356})['then'](function(){const _0x4dfd6c=_0x1944c4;logger[_0x4dfd6c(0xab)](_0x4dfd6c(0x9d),_0x4eab63,_0x13532f[_0x4dfd6c(0xb0)](','),_0x271356);})['catch'](function(_0x3352e5){const _0x5169a3=_0x1944c4;logger[_0x5169a3(0xab)](JSON[_0x5169a3(0x9a)](_0x3352e5));});});},Migration[a1078_0x233849(0x9e)]['query']=function(_0x262e10){const _0x175ef1=a1078_0x233849,_0x2b88bf=this;this['sequence'][_0x175ef1(0xcd)](function(){const _0x8037c4=_0x175ef1;return _0x2b88bf[_0x8037c4(0xe2)][_0x8037c4(0xaa)][_0x8037c4(0xa5)](_0x262e10)[_0x8037c4(0xa0)](function(){const _0x37a426=_0x8037c4;logger[_0x37a426(0xab)](_0x37a426(0xd2),_0x262e10);})['catch'](function(_0x363c4d){const _0x1fd830=_0x8037c4;logger[_0x1fd830(0xab)](JSON[_0x1fd830(0x9a)](_0x363c4d));});});},Migration[a1078_0x233849(0x9e)][a1078_0x233849(0xc5)]=function(_0x49956f,_0x30fa86){const _0x3f6f2c=a1078_0x233849,_0x4aa6c6=this;this[_0x3f6f2c(0xa3)]['enqueue'](function(){const _0x2e6c11=_0x3f6f2c;return _0x4aa6c6[_0x2e6c11(0xe2)][_0x2e6c11(0xc5)](_0x49956f,_0x30fa86)[_0x2e6c11(0xa0)](function(){const _0xd98708=_0x2e6c11;logger['info'](_0xd98708(0xb8),_0x30fa86,_0x49956f);})[_0x2e6c11(0xe4)](function(_0xccc7c3){const _0x1766c7=_0x2e6c11;logger[_0x1766c7(0xab)](util[_0x1766c7(0xc6)](_0xccc7c3,{'showHidden':![],'depth':null}));});});},Migration[a1078_0x233849(0x9e)]['final']=function(_0x40a032){const _0x436a0d=a1078_0x233849;this[_0x436a0d(0xa3)][_0x436a0d(0xcd)](function(){return _0x40a032();});},module[a1078_0x233849(0xe6)]={'up':function(_0x1e2f55,_0x3d456a){return new Promise(function(_0x21e55c){const _0x3a9335=a1078_0x102c,_0x2540cf=new Migration(_0x1e2f55);_0x2540cf['addColumn'](_0x3a9335(0xed),_0x3a9335(0x98),{'type':_0x3d456a['TEXT']}),_0x2540cf[_0x3a9335(0xe3)](_0x3a9335(0xad),_0x3a9335(0x98),{'type':_0x3d456a[_0x3a9335(0xdc)]}),_0x2540cf[_0x3a9335(0xa5)](_0x3a9335(0xd5)),_0x2540cf[_0x3a9335(0xe3)](_0x3a9335(0xb7),_0x3a9335(0xc4),{'type':_0x3d456a[_0x3a9335(0x9c)],'defaultValue':_0x3a9335(0xe9)}),_0x2540cf[_0x3a9335(0xe3)]('chat_websites',_0x3a9335(0xe8),{'type':_0x3d456a[_0x3a9335(0xc7)],'defaultValue':![]}),_0x2540cf[_0x3a9335(0xe3)](_0x3a9335(0xce),'referer',{'type':_0x3d456a['STRING']}),_0x2540cf['addColumn'](_0x3a9335(0xce),_0x3a9335(0x97),{'type':_0x3d456a[_0x3a9335(0x9c)]}),_0x2540cf[_0x3a9335(0xe3)](_0x3a9335(0xce),'ratingType',{'type':_0x3d456a[_0x3a9335(0xd3)](_0x3a9335(0xd8),_0x3a9335(0xa7)),'defaultValue':_0x3a9335(0xd8)}),_0x2540cf[_0x3a9335(0xa5)](_0x3a9335(0xeb)),_0x2540cf[_0x3a9335(0xe3)]('mail_messages',_0x3a9335(0xa6),{'type':_0x3d456a[_0x3a9335(0xdc)](_0x3a9335(0xb6)),'allowNull':![]}),_0x2540cf[_0x3a9335(0xe3)]('mail_messages',_0x3a9335(0xec),{'type':_0x3d456a[_0x3a9335(0xc7)],'defaultValue':![]}),_0x2540cf[_0x3a9335(0xe3)]('mail_messages',_0x3a9335(0xe5),{'type':_0x3d456a[_0x3a9335(0xd3)]('in',_0x3a9335(0xba)),'defaultValue':_0x3a9335(0xba),'allowNull':![]}),_0x2540cf[_0x3a9335(0xca)]('mail_messages',_0x3a9335(0xda),{'type':_0x3d456a[_0x3a9335(0x9c)](0xbe)}),_0x2540cf[_0x3a9335(0xc5)](_0x3a9335(0xf0),_0x3a9335(0xe7)),_0x2540cf[_0x3a9335(0xca)](_0x3a9335(0xf0),'to',{'type':_0x3d456a[_0x3a9335(0xdc)](_0x3a9335(0xb6))}),_0x2540cf[_0x3a9335(0xca)]('mail_messages','cc',{'type':_0x3d456a[_0x3a9335(0xdc)](_0x3a9335(0xb6))}),_0x2540cf[_0x3a9335(0xca)](_0x3a9335(0xf0),_0x3a9335(0xde),{'type':_0x3d456a['TEXT'](_0x3a9335(0xb6))}),_0x2540cf['changeColumn']('mail_messages',_0x3a9335(0xdf),{'type':_0x3d456a[_0x3a9335(0xdc)]}),_0x2540cf[_0x3a9335(0xe3)](_0x3a9335(0xf0),'sentAt',{'type':_0x3d456a[_0x3a9335(0xcf)]}),_0x2540cf['addColumn']('mail_messages',_0x3a9335(0xbf),{'type':_0x3d456a[_0x3a9335(0xa4)],'defaultValue':0x0}),_0x2540cf[_0x3a9335(0xc5)]('mail_messages',_0x3a9335(0xc1)),_0x2540cf[_0x3a9335(0xc5)](_0x3a9335(0xf0),_0x3a9335(0x9f)),_0x2540cf[_0x3a9335(0xc5)](_0x3a9335(0xf0),_0x3a9335(0xaf)),_0x2540cf['removeColumn']('mail_messages',_0x3a9335(0xac)),_0x2540cf[_0x3a9335(0xc5)]('mail_messages','reason'),_0x2540cf[_0x3a9335(0xc5)](_0x3a9335(0xf0),'auto'),_0x2540cf['removeColumn'](_0x3a9335(0xf0),_0x3a9335(0xee)),_0x2540cf[_0x3a9335(0xc5)](_0x3a9335(0xf0),'retry'),_0x2540cf[_0x3a9335(0xc5)](_0x3a9335(0xf0),_0x3a9335(0xe0)),_0x2540cf['removeColumn'](_0x3a9335(0xf0),_0x3a9335(0xd0)),_0x2540cf['removeColumn']('mail_messages',_0x3a9335(0xb1)),_0x2540cf[_0x3a9335(0xc5)]('mail_messages',_0x3a9335(0xa2)),_0x2540cf[_0x3a9335(0xc5)](_0x3a9335(0xf0),_0x3a9335(0xb9)),_0x2540cf['removeColumn'](_0x3a9335(0xf0),_0x3a9335(0xd4)),_0x2540cf['addColumn'](_0x3a9335(0xf0),_0x3a9335(0xae),{'type':_0x3d456a[_0x3a9335(0xa4)]}),_0x2540cf['query'](_0x3a9335(0x99)),_0x2540cf['addColumn'](_0x3a9335(0xf0),_0x3a9335(0xd4),{'type':_0x3d456a[_0x3a9335(0xa4)]}),_0x2540cf[_0x3a9335(0xa5)](_0x3a9335(0xb4)),_0x2540cf[_0x3a9335(0xe3)](_0x3a9335(0xf0),_0x3a9335(0xa8),{'type':_0x3d456a[_0x3a9335(0xa4)]}),_0x2540cf[_0x3a9335(0xa5)]('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'),_0x2540cf[_0x3a9335(0xe3)](_0x3a9335(0xf0),_0x3a9335(0xbe),{'type':_0x3d456a[_0x3a9335(0xa4)]}),_0x2540cf['query']('ALTER\x20TABLE\x20`mail_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`mail_messages_ibfk_4`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`ContactId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20cm_contacts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE'),_0x2540cf[_0x3a9335(0xa5)](_0x3a9335(0xc3)),_0x2540cf['addColumn'](_0x3a9335(0xa1),'attach',{'type':_0x3d456a[_0x3a9335(0xc7)],'defaultValue':![]}),_0x2540cf[_0x3a9335(0xe3)](_0x3a9335(0xdb),_0x3a9335(0xc8),{'type':_0x3d456a[_0x3a9335(0xdc)]}),_0x2540cf['removeColumn'](_0x3a9335(0x95),_0x3a9335(0xdf)),_0x2540cf[_0x3a9335(0xe3)](_0x3a9335(0xc2),_0x3a9335(0x9b),{'type':_0x3d456a['BOOLEAN'],'defaultValue':![]}),_0x2540cf['addColumn'](_0x3a9335(0xc2),'phoneBarAutoAnswerDelay',{'type':_0x3d456a[_0x3a9335(0xa4)],'defaultValue':0x0}),_0x2540cf[_0x3a9335(0x94)](_0x3a9335(0xbd)),_0x2540cf[_0x3a9335(0x94)](_0x3a9335(0xcc)),_0x2540cf[_0x3a9335(0x94)]('report_chat'),_0x2540cf[_0x3a9335(0x94)](_0x3a9335(0xea)),_0x2540cf[_0x3a9335(0x94)](_0x3a9335(0xc9)),_0x2540cf[_0x3a9335(0x94)](_0x3a9335(0xd7)),_0x2540cf[_0x3a9335(0x94)](_0x3a9335(0x96)),_0x2540cf[_0x3a9335(0x94)]('report_mail_session'),_0x2540cf[_0x3a9335(0x94)](_0x3a9335(0x93)),_0x2540cf[_0x3a9335(0x94)](_0x3a9335(0xb2)),_0x2540cf[_0x3a9335(0xe3)]('cm_hopper_history','editedat',{'type':_0x3d456a[_0x3a9335(0xcf)]}),_0x2540cf[_0x3a9335(0xe3)](_0x3a9335(0xdd),_0x3a9335(0xe1),{'type':_0x3d456a[_0x3a9335(0xc7)],'defaultValue':![]}),_0x2540cf['addColumn'](_0x3a9335(0xbb),_0x3a9335(0xb3),{'type':_0x3d456a[_0x3a9335(0xd3)](_0x3a9335(0xd1),_0x3a9335(0xd9)),'defaultValue':_0x3a9335(0xd1)}),_0x2540cf[_0x3a9335(0xe3)](_0x3a9335(0xef),_0x3a9335(0xb3),{'type':_0x3d456a['ENUM'](_0x3a9335(0xd1),_0x3a9335(0xd9)),'defaultValue':'DESC'}),_0x2540cf[_0x3a9335(0xb5)](_0x21e55c);});},'down':function(){}}; \ No newline at end of file +const a1078_0x22ce=['inReplyTo','Added\x20column\x20%s\x20to\x20%s','BOOLEAN','analytics_default_reports','migration','ENUM','chat_interactions','report_chat','cm_hopper_history','report_openchannel_session','Send','tools_templates','phoneBarEnableDtmfTone','final','query\x20%s','chat_websites','Changed\x20column\x20%s\x20in\x20table\x20%s','ALTER\x20TABLE\x20chat_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','report_mail_session','accountName','sequence','html','signature','voice_queues','body','stringify','text','offline_chat_button','joins','star','queryInterface','../config/logger','enqueue','ALTER\x20TABLE\x20`chat_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`chat_messages_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`AttachmentId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20attachments(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20SET\x20NULL','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','ContactId','report_mail','reason','query','report_sms','finally','userName','attach','bcc','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','dropTable','MailAccountId','fromId','analytics_custom_reports','Removed\x20column\x20%s\x20from\x20%s','out','subject','retry','prototype','referer','ASC','catch','enableCustomerAttachment','INTEGER','campaigns','users','report_sms_session','DATE','changeColumn','TEXT','ALTER\x20TABLE\x20mail_messages\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','addIndex\x20%s\x20%s\x20%s','ALTER\x20TABLE\x20`mail_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`mail_messages_ibfk_2`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`MailInteractionId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20mail_interactions(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','customerIp','report_fax','DESC','report_openchannel','userFullname','mail_messages','report_chat_session','attachment','direction','then','editedat','inspect','long','phoneBarAutoAnswerDelay','read','info','removeColumn','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','sequelize','STRING','tail','addColumn','MailInteractionId'];(function(_0x3730fe,_0x80f348){const _0x22ce3b=function(_0x3e955d){while(--_0x3e955d){_0x3730fe['push'](_0x3730fe['shift']());}};_0x22ce3b(++_0x80f348);}(a1078_0x22ce,0xc1));const a1078_0x3e95=function(_0x3730fe,_0x80f348){_0x3730fe=_0x3730fe-0x16d;let _0x22ce3b=a1078_0x22ce[_0x3730fe];return _0x22ce3b;};const a1078_0x242793=a1078_0x3e95;'use strict';const logger=require(a1078_0x242793(0x181))(a1078_0x242793(0x1c1)),util=require('util'),Sequence=function(){};Sequence[a1078_0x242793(0x197)][a1078_0x242793(0x182)]=function(_0x532948){const _0xe497f=a1078_0x242793;this['tail']=this[_0xe497f(0x1ba)]?this[_0xe497f(0x1ba)][_0xe497f(0x18a)](_0x532948):_0x532948();};const Migration=function(_0x323316){this['queryInterface']=_0x323316,this['sequence']=new Sequence();};Migration[a1078_0x242793(0x197)][a1078_0x242793(0x1a1)]=function(_0x4a9374,_0x14ef40,_0xbbf8f0){const _0x3594af=a1078_0x242793,_0x13f702=this;this[_0x3594af(0x176)]['enqueue'](function(){const _0x17c28a=_0x3594af;return _0x13f702[_0x17c28a(0x180)]['changeColumn'](_0x4a9374,_0x14ef40,_0xbbf8f0)[_0x17c28a(0x1af)](function(){const _0x40b3f3=_0x17c28a;logger[_0x40b3f3(0x1b5)](_0x40b3f3(0x172),_0x14ef40,_0x4a9374);})['catch'](function(_0x2198f0){const _0x2eba52=_0x17c28a;logger['info'](JSON[_0x2eba52(0x17b)](_0x2198f0));});});},Migration['prototype'][a1078_0x242793(0x1bb)]=function(_0x42512c,_0x4b6001,_0x20986e){const _0x28316d=this;this['sequence']['enqueue'](function(){const _0x30719a=a1078_0x3e95;return _0x28316d[_0x30719a(0x180)][_0x30719a(0x1bb)](_0x42512c,_0x4b6001,_0x20986e)['then'](function(){const _0x531f26=_0x30719a;logger['info'](_0x531f26(0x1be),_0x4b6001,_0x42512c);})[_0x30719a(0x19a)](function(_0x1e1c73){const _0x4c6836=_0x30719a;logger[_0x4c6836(0x1b5)](JSON[_0x4c6836(0x17b)](_0x1e1c73));});});},Migration[a1078_0x242793(0x197)][a1078_0x242793(0x18f)]=function(_0x1cb383){const _0x4371a2=a1078_0x242793,_0xe67b89=this;this[_0x4371a2(0x176)]['enqueue'](function(){const _0x55c6e3=_0x4371a2;return _0xe67b89[_0x55c6e3(0x180)][_0x55c6e3(0x18f)](_0x1cb383,{'force':!![]})[_0x55c6e3(0x1af)](function(){const _0x54f90f=_0x55c6e3;logger[_0x54f90f(0x1b5)]('table\x20dropped\x20%s',_0x1cb383);})[_0x55c6e3(0x19a)](function(_0x1c240d){logger['info'](JSON['stringify'](_0x1c240d));});});},Migration[a1078_0x242793(0x197)]['addIndex']=function(_0x532e00,_0x4aa312,_0x24d412){const _0x22651f=a1078_0x242793,_0xb85f1d=this;this[_0x22651f(0x176)]['enqueue'](function(){const _0x539799=_0x22651f;return _0xb85f1d[_0x539799(0x180)]['addIndex'](_0x532e00,_0x4aa312,{'indexName':_0x24d412})[_0x539799(0x1af)](function(){const _0xc61b98=_0x539799;logger['info'](_0xc61b98(0x1a4),_0x532e00,_0x4aa312['join'](','),_0x24d412);})['catch'](function(_0x4d8e3c){const _0xcd2da0=_0x539799;logger[_0xcd2da0(0x1b5)](JSON[_0xcd2da0(0x17b)](_0x4d8e3c));});});},Migration[a1078_0x242793(0x197)]['query']=function(_0x477b9e){const _0x14e9fb=a1078_0x242793,_0x345263=this;this[_0x14e9fb(0x176)]['enqueue'](function(){const _0x51fb15=_0x14e9fb;return _0x345263[_0x51fb15(0x180)][_0x51fb15(0x1b8)][_0x51fb15(0x188)](_0x477b9e)[_0x51fb15(0x1af)](function(){const _0x4d2412=_0x51fb15;logger[_0x4d2412(0x1b5)](_0x4d2412(0x170),_0x477b9e);})[_0x51fb15(0x19a)](function(_0x3b3bb4){const _0x3daf04=_0x51fb15;logger[_0x3daf04(0x1b5)](JSON['stringify'](_0x3b3bb4));});});},Migration[a1078_0x242793(0x197)][a1078_0x242793(0x1b6)]=function(_0x22148b,_0x2ef17b){const _0xcdffe4=a1078_0x242793,_0xf3791c=this;this[_0xcdffe4(0x176)]['enqueue'](function(){const _0x50d8b1=_0xcdffe4;return _0xf3791c[_0x50d8b1(0x180)][_0x50d8b1(0x1b6)](_0x22148b,_0x2ef17b)['then'](function(){const _0x11379e=_0x50d8b1;logger[_0x11379e(0x1b5)](_0x11379e(0x193),_0x2ef17b,_0x22148b);})[_0x50d8b1(0x19a)](function(_0x346c2c){const _0x5c6a8f=_0x50d8b1;logger[_0x5c6a8f(0x1b5)](util[_0x5c6a8f(0x1b1)](_0x346c2c,{'showHidden':![],'depth':null}));});});},Migration[a1078_0x242793(0x197)][a1078_0x242793(0x16f)]=function(_0x51c92a){const _0x2605ae=a1078_0x242793;this['sequence'][_0x2605ae(0x182)](function(){return _0x51c92a();});},module['exports']={'up':function(_0x5bef19,_0x6cc9f4){return new Promise(function(_0x2b542c){const _0x419e6b=a1078_0x3e95,_0x4c0eb0=new Migration(_0x5bef19);_0x4c0eb0['addColumn'](_0x419e6b(0x192),_0x419e6b(0x17e),{'type':_0x6cc9f4[_0x419e6b(0x1a2)]}),_0x4c0eb0[_0x419e6b(0x1bb)](_0x419e6b(0x1c0),_0x419e6b(0x17e),{'type':_0x6cc9f4['TEXT']}),_0x4c0eb0[_0x419e6b(0x188)](_0x419e6b(0x183)),_0x4c0eb0['addColumn'](_0x419e6b(0x171),_0x419e6b(0x17d),{'type':_0x6cc9f4[_0x419e6b(0x1b9)],'defaultValue':_0x419e6b(0x1c7)}),_0x4c0eb0[_0x419e6b(0x1bb)](_0x419e6b(0x171),_0x419e6b(0x19b),{'type':_0x6cc9f4[_0x419e6b(0x1bf)],'defaultValue':![]}),_0x4c0eb0[_0x419e6b(0x1bb)]('chat_interactions',_0x419e6b(0x198),{'type':_0x6cc9f4[_0x419e6b(0x1b9)]}),_0x4c0eb0[_0x419e6b(0x1bb)](_0x419e6b(0x1c3),_0x419e6b(0x1a6),{'type':_0x6cc9f4[_0x419e6b(0x1b9)]}),_0x4c0eb0[_0x419e6b(0x1bb)](_0x419e6b(0x1c3),'ratingType',{'type':_0x6cc9f4[_0x419e6b(0x1c2)](_0x419e6b(0x17f),'thumb'),'defaultValue':_0x419e6b(0x17f)}),_0x4c0eb0[_0x419e6b(0x188)](_0x419e6b(0x173)),_0x4c0eb0['addColumn'](_0x419e6b(0x1ab),_0x419e6b(0x17a),{'type':_0x6cc9f4[_0x419e6b(0x1a2)](_0x419e6b(0x1b2)),'allowNull':![]}),_0x4c0eb0[_0x419e6b(0x1bb)]('mail_messages',_0x419e6b(0x1b4),{'type':_0x6cc9f4[_0x419e6b(0x1bf)],'defaultValue':![]}),_0x4c0eb0['addColumn'](_0x419e6b(0x1ab),_0x419e6b(0x1ae),{'type':_0x6cc9f4['ENUM']('in',_0x419e6b(0x194)),'defaultValue':_0x419e6b(0x194),'allowNull':![]}),_0x4c0eb0[_0x419e6b(0x1a1)](_0x419e6b(0x1ab),'messageId',{'type':_0x6cc9f4[_0x419e6b(0x1b9)](0xbe)}),_0x4c0eb0[_0x419e6b(0x1b6)](_0x419e6b(0x1ab),_0x419e6b(0x1bd)),_0x4c0eb0['changeColumn'](_0x419e6b(0x1ab),'to',{'type':_0x6cc9f4[_0x419e6b(0x1a2)]('long')}),_0x4c0eb0['changeColumn'](_0x419e6b(0x1ab),'cc',{'type':_0x6cc9f4[_0x419e6b(0x1a2)](_0x419e6b(0x1b2))}),_0x4c0eb0[_0x419e6b(0x1a1)](_0x419e6b(0x1ab),_0x419e6b(0x18d),{'type':_0x6cc9f4[_0x419e6b(0x1a2)]('long')}),_0x4c0eb0[_0x419e6b(0x1a1)](_0x419e6b(0x1ab),_0x419e6b(0x195),{'type':_0x6cc9f4[_0x419e6b(0x1a2)]}),_0x4c0eb0[_0x419e6b(0x1bb)](_0x419e6b(0x1ab),'sentAt',{'type':_0x6cc9f4[_0x419e6b(0x1a0)]}),_0x4c0eb0[_0x419e6b(0x1bb)]('mail_messages',_0x419e6b(0x18c),{'type':_0x6cc9f4[_0x419e6b(0x19c)],'defaultValue':0x0}),_0x4c0eb0[_0x419e6b(0x1b6)](_0x419e6b(0x1ab),_0x419e6b(0x191)),_0x4c0eb0[_0x419e6b(0x1b6)](_0x419e6b(0x1ab),_0x419e6b(0x1ad)),_0x4c0eb0[_0x419e6b(0x1b6)](_0x419e6b(0x1ab),_0x419e6b(0x17c)),_0x4c0eb0[_0x419e6b(0x1b6)](_0x419e6b(0x1ab),_0x419e6b(0x177)),_0x4c0eb0[_0x419e6b(0x1b6)](_0x419e6b(0x1ab),_0x419e6b(0x187)),_0x4c0eb0[_0x419e6b(0x1b6)](_0x419e6b(0x1ab),'auto'),_0x4c0eb0['removeColumn']('mail_messages','status'),_0x4c0eb0[_0x419e6b(0x1b6)]('mail_messages',_0x419e6b(0x196)),_0x4c0eb0['removeColumn'](_0x419e6b(0x1ab),'voiceSource'),_0x4c0eb0[_0x419e6b(0x1b6)](_0x419e6b(0x1ab),_0x419e6b(0x18b)),_0x4c0eb0['removeColumn'](_0x419e6b(0x1ab),_0x419e6b(0x1aa)),_0x4c0eb0[_0x419e6b(0x1b6)](_0x419e6b(0x1ab),'accountId'),_0x4c0eb0[_0x419e6b(0x1b6)](_0x419e6b(0x1ab),_0x419e6b(0x175)),_0x4c0eb0[_0x419e6b(0x1b6)](_0x419e6b(0x1ab),_0x419e6b(0x1bc)),_0x4c0eb0['addColumn'](_0x419e6b(0x1ab),_0x419e6b(0x190),{'type':_0x6cc9f4[_0x419e6b(0x19c)]}),_0x4c0eb0[_0x419e6b(0x188)](_0x419e6b(0x18e)),_0x4c0eb0[_0x419e6b(0x1bb)]('mail_messages',_0x419e6b(0x1bc),{'type':_0x6cc9f4[_0x419e6b(0x19c)]}),_0x4c0eb0['query'](_0x419e6b(0x1a5)),_0x4c0eb0['addColumn']('mail_messages','UserId',{'type':_0x6cc9f4[_0x419e6b(0x19c)]}),_0x4c0eb0[_0x419e6b(0x188)](_0x419e6b(0x184)),_0x4c0eb0['addColumn'](_0x419e6b(0x1ab),_0x419e6b(0x185),{'type':_0x6cc9f4[_0x419e6b(0x19c)]}),_0x4c0eb0[_0x419e6b(0x188)](_0x419e6b(0x1b7)),_0x4c0eb0[_0x419e6b(0x188)](_0x419e6b(0x1a3)),_0x4c0eb0[_0x419e6b(0x1bb)]('mail_interactions',_0x419e6b(0x18c),{'type':_0x6cc9f4[_0x419e6b(0x1bf)],'defaultValue':![]}),_0x4c0eb0['addColumn']('mail_accounts',_0x419e6b(0x178),{'type':_0x6cc9f4['TEXT']}),_0x4c0eb0[_0x419e6b(0x1b6)](_0x419e6b(0x16d),_0x419e6b(0x195)),_0x4c0eb0['addColumn'](_0x419e6b(0x19e),_0x419e6b(0x16e),{'type':_0x6cc9f4['BOOLEAN'],'defaultValue':![]}),_0x4c0eb0[_0x419e6b(0x1bb)](_0x419e6b(0x19e),_0x419e6b(0x1b3),{'type':_0x6cc9f4[_0x419e6b(0x19c)],'defaultValue':0x0}),_0x4c0eb0[_0x419e6b(0x18f)](_0x419e6b(0x1a9)),_0x4c0eb0[_0x419e6b(0x18f)](_0x419e6b(0x1c6)),_0x4c0eb0[_0x419e6b(0x18f)](_0x419e6b(0x1c4)),_0x4c0eb0[_0x419e6b(0x18f)](_0x419e6b(0x1ac)),_0x4c0eb0[_0x419e6b(0x18f)](_0x419e6b(0x1a7)),_0x4c0eb0[_0x419e6b(0x18f)]('report_fax_session'),_0x4c0eb0[_0x419e6b(0x18f)](_0x419e6b(0x186)),_0x4c0eb0[_0x419e6b(0x18f)](_0x419e6b(0x174)),_0x4c0eb0[_0x419e6b(0x18f)](_0x419e6b(0x189)),_0x4c0eb0[_0x419e6b(0x18f)](_0x419e6b(0x19f)),_0x4c0eb0[_0x419e6b(0x1bb)](_0x419e6b(0x1c5),_0x419e6b(0x1b0),{'type':_0x6cc9f4[_0x419e6b(0x1a0)]}),_0x4c0eb0[_0x419e6b(0x1bb)](_0x419e6b(0x1c5),'edited',{'type':_0x6cc9f4[_0x419e6b(0x1bf)],'defaultValue':![]}),_0x4c0eb0[_0x419e6b(0x1bb)](_0x419e6b(0x179),'dialOrderByScheduledAt',{'type':_0x6cc9f4[_0x419e6b(0x1c2)](_0x419e6b(0x1a8),'ASC'),'defaultValue':_0x419e6b(0x1a8)}),_0x4c0eb0[_0x419e6b(0x1bb)](_0x419e6b(0x19d),'dialOrderByScheduledAt',{'type':_0x6cc9f4[_0x419e6b(0x1c2)]('DESC',_0x419e6b(0x199)),'defaultValue':_0x419e6b(0x1a8)}),_0x4c0eb0[_0x419e6b(0x16f)](_0x2b542c);});},'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 64535e6..a03c936 100644 --- a/server/migrations/2.0.36.js +++ b/server/migrations/2.0.36.js @@ -1 +1 @@ -const a1079_0x4eed=['util','query\x20%s','sequence','inspect','queryInterface','changeColumn','info','openchannel_messages','table\x20dropped\x20%s','final','query','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','Added\x20column\x20%s\x20to\x20%s','prototype','exports','migration','tail','then','finally','stringify','AttachmentId','addColumn','sequelize','INTEGER','enqueue','dropTable','removeColumn','catch'];(function(_0x3b8dde,_0x477b86){const _0x4eed20=function(_0x475119){while(--_0x475119){_0x3b8dde['push'](_0x3b8dde['shift']());}};_0x4eed20(++_0x477b86);}(a1079_0x4eed,0x1dd));const a1079_0x4751=function(_0x3b8dde,_0x477b86){_0x3b8dde=_0x3b8dde-0x107;let _0x4eed20=a1079_0x4eed[_0x3b8dde];return _0x4eed20;};const a1079_0x304bc0=a1079_0x4751;'use strict';const logger=require('../config/logger')(a1079_0x304bc0(0x115)),util=require(a1079_0x304bc0(0x122)),Sequence=function(){};Sequence[a1079_0x304bc0(0x113)][a1079_0x304bc0(0x11e)]=function(_0x560b31){const _0x4b416b=a1079_0x304bc0;this[_0x4b416b(0x116)]=this[_0x4b416b(0x116)]?this['tail'][_0x4b416b(0x118)](_0x560b31):_0x560b31();};const Migration=function(_0x1bef29){const _0x280277=a1079_0x304bc0;this['queryInterface']=_0x1bef29,this[_0x280277(0x108)]=new Sequence();};Migration[a1079_0x304bc0(0x113)][a1079_0x304bc0(0x10b)]=function(_0x5d1e91,_0x50ad05,_0x5d537b){const _0x4cc438=a1079_0x304bc0,_0x199d80=this;this[_0x4cc438(0x108)]['enqueue'](function(){const _0x244a9e=_0x4cc438;return _0x199d80[_0x244a9e(0x10a)][_0x244a9e(0x10b)](_0x5d1e91,_0x50ad05,_0x5d537b)['then'](function(){const _0x1ee272=_0x244a9e;logger[_0x1ee272(0x10c)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x50ad05,_0x5d1e91);})[_0x244a9e(0x121)](function(_0x104789){const _0x3940b7=_0x244a9e;logger[_0x3940b7(0x10c)](JSON[_0x3940b7(0x119)](_0x104789));});});},Migration[a1079_0x304bc0(0x113)][a1079_0x304bc0(0x11b)]=function(_0x1246fc,_0x147978,_0x1d1c68){const _0x4b468b=a1079_0x304bc0,_0x1c7553=this;this['sequence'][_0x4b468b(0x11e)](function(){const _0x55820=_0x4b468b;return _0x1c7553['queryInterface'][_0x55820(0x11b)](_0x1246fc,_0x147978,_0x1d1c68)['then'](function(){const _0x352136=_0x55820;logger[_0x352136(0x10c)](_0x352136(0x112),_0x147978,_0x1246fc);})[_0x55820(0x121)](function(_0x544be4){const _0x3a5dea=_0x55820;logger['info'](JSON[_0x3a5dea(0x119)](_0x544be4));});});},Migration[a1079_0x304bc0(0x113)][a1079_0x304bc0(0x11f)]=function(_0x52eef3){const _0x26a084=a1079_0x304bc0,_0x4274f9=this;this[_0x26a084(0x108)]['enqueue'](function(){const _0x5ee7fc=_0x26a084;return _0x4274f9[_0x5ee7fc(0x10a)]['dropTable'](_0x52eef3,{'force':!![]})[_0x5ee7fc(0x117)](function(){const _0x5316b7=_0x5ee7fc;logger[_0x5316b7(0x10c)](_0x5316b7(0x10e),_0x52eef3);})['catch'](function(_0x2c4156){const _0x26c1b5=_0x5ee7fc;logger[_0x26c1b5(0x10c)](JSON[_0x26c1b5(0x119)](_0x2c4156));});});},Migration[a1079_0x304bc0(0x113)]['addIndex']=function(_0x354b8d,_0x4b300b,_0x2a2829){const _0x3c583a=a1079_0x304bc0,_0x5c8f9c=this;this['sequence'][_0x3c583a(0x11e)](function(){const _0x3a15c6=_0x3c583a;return _0x5c8f9c[_0x3a15c6(0x10a)]['addIndex'](_0x354b8d,_0x4b300b,{'indexName':_0x2a2829})['then'](function(){const _0x164a00=_0x3a15c6;logger[_0x164a00(0x10c)]('addIndex\x20%s\x20%s\x20%s',_0x354b8d,_0x4b300b['join'](','),_0x2a2829);})[_0x3a15c6(0x121)](function(_0x13c26d){const _0x53bd9d=_0x3a15c6;logger[_0x53bd9d(0x10c)](JSON[_0x53bd9d(0x119)](_0x13c26d));});});},Migration['prototype'][a1079_0x304bc0(0x110)]=function(_0x4c7376){const _0x14099c=a1079_0x304bc0,_0x7a3048=this;this[_0x14099c(0x108)][_0x14099c(0x11e)](function(){const _0x1eaf2f=_0x14099c;return _0x7a3048['queryInterface'][_0x1eaf2f(0x11c)][_0x1eaf2f(0x110)](_0x4c7376)['then'](function(){const _0x4d787b=_0x1eaf2f;logger['info'](_0x4d787b(0x107),_0x4c7376);})[_0x1eaf2f(0x121)](function(_0x2c734f){const _0x3bb7a4=_0x1eaf2f;logger['info'](JSON[_0x3bb7a4(0x119)](_0x2c734f));});});},Migration[a1079_0x304bc0(0x113)]['removeColumn']=function(_0x2a1a76,_0x4b437a){const _0x3247d8=a1079_0x304bc0,_0x3b4d35=this;this[_0x3247d8(0x108)]['enqueue'](function(){const _0x23bc08=_0x3247d8;return _0x3b4d35['queryInterface'][_0x23bc08(0x120)](_0x2a1a76,_0x4b437a)[_0x23bc08(0x117)](function(){const _0x4541b1=_0x23bc08;logger[_0x4541b1(0x10c)]('Removed\x20column\x20%s\x20from\x20%s',_0x4b437a,_0x2a1a76);})[_0x23bc08(0x121)](function(_0x53d0fe){const _0x3b235b=_0x23bc08;logger[_0x3b235b(0x10c)](util[_0x3b235b(0x109)](_0x53d0fe,{'showHidden':![],'depth':null}));});});},Migration[a1079_0x304bc0(0x113)]['final']=function(_0x163417){const _0x3b5678=a1079_0x304bc0;this['sequence'][_0x3b5678(0x11e)](function(){return _0x163417();});},module[a1079_0x304bc0(0x114)]={'up':function(_0x5da077,_0x3f31ab){return new Promise(function(_0x205deb){const _0x56ccf3=a1079_0x4751,_0x572b53=new Migration(_0x5da077);_0x572b53[_0x56ccf3(0x11b)](_0x56ccf3(0x10d),_0x56ccf3(0x11a),{'type':_0x3f31ab[_0x56ccf3(0x11d)]}),_0x572b53[_0x56ccf3(0x110)](_0x56ccf3(0x111)),_0x572b53[_0x56ccf3(0x10f)](_0x205deb);});},'down':function(){}}; \ No newline at end of file +const a1079_0x29f9=['catch','../config/logger','addColumn','changeColumn','util','openchannel_messages','final','inspect','info','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','prototype','INTEGER','query','sequence','then','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','join','sequelize','tail','enqueue','queryInterface','stringify','AttachmentId','finally','addIndex\x20%s\x20%s\x20%s','addIndex'];(function(_0x1f7c4b,_0x21f8c5){const _0x29f961=function(_0x590c22){while(--_0x590c22){_0x1f7c4b['push'](_0x1f7c4b['shift']());}};_0x29f961(++_0x21f8c5);}(a1079_0x29f9,0x137));const a1079_0x590c=function(_0x1f7c4b,_0x21f8c5){_0x1f7c4b=_0x1f7c4b-0x19c;let _0x29f961=a1079_0x29f9[_0x1f7c4b];return _0x29f961;};const a1079_0x5be9a3=a1079_0x590c;'use strict';const logger=require(a1079_0x5be9a3(0x1b6))('migration'),util=require(a1079_0x5be9a3(0x19d)),Sequence=function(){};Sequence[a1079_0x5be9a3(0x1a3)]['enqueue']=function(_0x5a0556){const _0x424a8e=a1079_0x5be9a3;this[_0x424a8e(0x1ad)]=this[_0x424a8e(0x1ad)]?this['tail'][_0x424a8e(0x1b2)](_0x5a0556):_0x5a0556();};const Migration=function(_0x4f9d1f){const _0x14f95f=a1079_0x5be9a3;this['queryInterface']=_0x4f9d1f,this[_0x14f95f(0x1a6)]=new Sequence();};Migration[a1079_0x5be9a3(0x1a3)][a1079_0x5be9a3(0x19c)]=function(_0x1eafe5,_0xe9a671,_0x2d3647){const _0x638b04=this;this['sequence']['enqueue'](function(){const _0xcd99a1=a1079_0x590c;return _0x638b04[_0xcd99a1(0x1af)][_0xcd99a1(0x19c)](_0x1eafe5,_0xe9a671,_0x2d3647)[_0xcd99a1(0x1a7)](function(){const _0x3ae1b=_0xcd99a1;logger['info'](_0x3ae1b(0x1a9),_0xe9a671,_0x1eafe5);})[_0xcd99a1(0x1b5)](function(_0xeae0d9){const _0x296caf=_0xcd99a1;logger['info'](JSON[_0x296caf(0x1b0)](_0xeae0d9));});});},Migration[a1079_0x5be9a3(0x1a3)]['addColumn']=function(_0x2046ee,_0x4a4acb,_0x23692c){const _0xc290ab=a1079_0x5be9a3,_0x593b79=this;this[_0xc290ab(0x1a6)][_0xc290ab(0x1ae)](function(){const _0x351c24=_0xc290ab;return _0x593b79[_0x351c24(0x1af)][_0x351c24(0x1b7)](_0x2046ee,_0x4a4acb,_0x23692c)['then'](function(){const _0x579fc7=_0x351c24;logger[_0x579fc7(0x1a1)]('Added\x20column\x20%s\x20to\x20%s',_0x4a4acb,_0x2046ee);})[_0x351c24(0x1b5)](function(_0x3bf762){const _0x595f45=_0x351c24;logger[_0x595f45(0x1a1)](JSON['stringify'](_0x3bf762));});});},Migration[a1079_0x5be9a3(0x1a3)][a1079_0x5be9a3(0x1aa)]=function(_0x15e9b9){const _0x233134=this;this['sequence']['enqueue'](function(){const _0x447547=a1079_0x590c;return _0x233134[_0x447547(0x1af)]['dropTable'](_0x15e9b9,{'force':!![]})[_0x447547(0x1a7)](function(){logger['info']('table\x20dropped\x20%s',_0x15e9b9);})[_0x447547(0x1b5)](function(_0x55614){logger['info'](JSON['stringify'](_0x55614));});});},Migration[a1079_0x5be9a3(0x1a3)][a1079_0x5be9a3(0x1b4)]=function(_0x47e4ec,_0x5a9a7c,_0xf4ea7d){const _0x568f42=a1079_0x5be9a3,_0x4f69f5=this;this[_0x568f42(0x1a6)][_0x568f42(0x1ae)](function(){const _0x402663=_0x568f42;return _0x4f69f5['queryInterface'][_0x402663(0x1b4)](_0x47e4ec,_0x5a9a7c,{'indexName':_0xf4ea7d})[_0x402663(0x1a7)](function(){const _0x12c4f6=_0x402663;logger['info'](_0x12c4f6(0x1b3),_0x47e4ec,_0x5a9a7c[_0x12c4f6(0x1ab)](','),_0xf4ea7d);})[_0x402663(0x1b5)](function(_0x13733e){const _0x30c4f0=_0x402663;logger[_0x30c4f0(0x1a1)](JSON[_0x30c4f0(0x1b0)](_0x13733e));});});},Migration[a1079_0x5be9a3(0x1a3)][a1079_0x5be9a3(0x1a5)]=function(_0x3476c8){const _0x646539=a1079_0x5be9a3,_0x162d59=this;this[_0x646539(0x1a6)]['enqueue'](function(){const _0x3d99d7=_0x646539;return _0x162d59[_0x3d99d7(0x1af)][_0x3d99d7(0x1ac)]['query'](_0x3476c8)[_0x3d99d7(0x1a7)](function(){logger['info']('query\x20%s',_0x3476c8);})['catch'](function(_0xf3b1e4){const _0x4cd049=_0x3d99d7;logger['info'](JSON[_0x4cd049(0x1b0)](_0xf3b1e4));});});},Migration[a1079_0x5be9a3(0x1a3)]['removeColumn']=function(_0x2c16ad,_0x13e217){const _0x5df473=a1079_0x5be9a3,_0x5bd0ab=this;this[_0x5df473(0x1a6)][_0x5df473(0x1ae)](function(){const _0x15c62b=_0x5df473;return _0x5bd0ab[_0x15c62b(0x1af)][_0x15c62b(0x1a8)](_0x2c16ad,_0x13e217)[_0x15c62b(0x1a7)](function(){const _0x2c3270=_0x15c62b;logger[_0x2c3270(0x1a1)]('Removed\x20column\x20%s\x20from\x20%s',_0x13e217,_0x2c16ad);})[_0x15c62b(0x1b5)](function(_0x1782c0){const _0x3ecc56=_0x15c62b;logger['info'](util[_0x3ecc56(0x1a0)](_0x1782c0,{'showHidden':![],'depth':null}));});});},Migration[a1079_0x5be9a3(0x1a3)]['final']=function(_0x449d45){const _0x5ee106=a1079_0x5be9a3;this['sequence'][_0x5ee106(0x1ae)](function(){return _0x449d45();});},module['exports']={'up':function(_0xb402d7,_0xad5a){return new Promise(function(_0x40c609){const _0x448c73=a1079_0x590c,_0x4d8c0c=new Migration(_0xb402d7);_0x4d8c0c[_0x448c73(0x1b7)](_0x448c73(0x19e),_0x448c73(0x1b1),{'type':_0xad5a[_0x448c73(0x1a4)]}),_0x4d8c0c['query'](_0x448c73(0x1a2)),_0x4d8c0c[_0x448c73(0x19f)](_0x40c609);});},'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 d15e0f9..0002d5c 100644 --- a/server/migrations/2.0.37.js +++ b/server/migrations/2.0.37.js @@ -1 +1 @@ -const a1080_0x3c02=['dropTable','changeColumn','query','prototype','stringify','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','enqueue','catch','addColumn','enableUncompleteSave','then','sms_interactions','sms_messages','finally','query\x20%s','STRING','BOOLEAN','sequence','report_jscripty_sessions','phone','util','migration','jscripty_projects','final','join','Removed\x20column\x20%s\x20from\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','removeColumn','UPDATE\x20report_jscripty_sessions\x20SET\x20completed\x20=\x20true','info','tail'];(function(_0x36ce13,_0x4d39c4){const _0x3c02b2=function(_0xef8fc1){while(--_0xef8fc1){_0x36ce13['push'](_0x36ce13['shift']());}};_0x3c02b2(++_0x4d39c4);}(a1080_0x3c02,0x1a4));const a1080_0xef8f=function(_0x36ce13,_0x4d39c4){_0x36ce13=_0x36ce13-0x191;let _0x3c02b2=a1080_0x3c02[_0x36ce13];return _0x3c02b2;};const a1080_0x8a8d98=a1080_0xef8f;'use strict';const logger=require('../config/logger')(a1080_0x8a8d98(0x1b0)),util=require(a1080_0x8a8d98(0x1af)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x2fe0c4){const _0x21206d=a1080_0x8a8d98;this['tail']=this[_0x21206d(0x199)]?this[_0x21206d(0x199)][_0x21206d(0x1a8)](_0x2fe0c4):_0x2fe0c4();};const Migration=function(_0x557751){const _0x2ab298=a1080_0x8a8d98;this[_0x2ab298(0x195)]=_0x557751,this[_0x2ab298(0x1ac)]=new Sequence();};Migration[a1080_0x8a8d98(0x19d)][a1080_0x8a8d98(0x19b)]=function(_0x3f6661,_0x190dc8,_0x5bdabf){const _0x27b2dd=a1080_0x8a8d98,_0x2192a1=this;this[_0x27b2dd(0x1ac)]['enqueue'](function(){const _0xe02f9c=_0x27b2dd;return _0x2192a1[_0xe02f9c(0x195)]['changeColumn'](_0x3f6661,_0x190dc8,_0x5bdabf)['then'](function(){const _0x3cf30f=_0xe02f9c;logger[_0x3cf30f(0x198)](_0x3cf30f(0x194),_0x190dc8,_0x3f6661);})[_0xe02f9c(0x1a2)](function(_0x554f59){const _0x530c57=_0xe02f9c;logger[_0x530c57(0x198)](JSON[_0x530c57(0x19e)](_0x554f59));});});},Migration[a1080_0x8a8d98(0x19d)][a1080_0x8a8d98(0x1a3)]=function(_0x4243ea,_0x477b9b,_0x1b3a7d){const _0x1b4266=a1080_0x8a8d98,_0x1e17cb=this;this[_0x1b4266(0x1ac)]['enqueue'](function(){const _0x443bdd=_0x1b4266;return _0x1e17cb['queryInterface'][_0x443bdd(0x1a3)](_0x4243ea,_0x477b9b,_0x1b3a7d)[_0x443bdd(0x1a5)](function(){const _0x5b7cb0=_0x443bdd;logger[_0x5b7cb0(0x198)](_0x5b7cb0(0x1a0),_0x477b9b,_0x4243ea);})[_0x443bdd(0x1a2)](function(_0x8b5033){const _0x4dae22=_0x443bdd;logger['info'](JSON[_0x4dae22(0x19e)](_0x8b5033));});});},Migration[a1080_0x8a8d98(0x19d)]['dropTable']=function(_0x361e07){const _0x2b8002=a1080_0x8a8d98,_0x44394f=this;this[_0x2b8002(0x1ac)]['enqueue'](function(){const _0x15a57a=_0x2b8002;return _0x44394f[_0x15a57a(0x195)][_0x15a57a(0x19a)](_0x361e07,{'force':!![]})[_0x15a57a(0x1a5)](function(){const _0x151757=_0x15a57a;logger[_0x151757(0x198)](_0x151757(0x19f),_0x361e07);})['catch'](function(_0x1434d5){const _0x3cf30c=_0x15a57a;logger[_0x3cf30c(0x198)](JSON[_0x3cf30c(0x19e)](_0x1434d5));});});},Migration[a1080_0x8a8d98(0x19d)]['addIndex']=function(_0x34f21d,_0xcc6d8,_0x3353d0){const _0x2b5bd5=a1080_0x8a8d98,_0x572cee=this;this[_0x2b5bd5(0x1ac)][_0x2b5bd5(0x1a1)](function(){const _0x12c057=_0x2b5bd5;return _0x572cee[_0x12c057(0x195)]['addIndex'](_0x34f21d,_0xcc6d8,{'indexName':_0x3353d0})[_0x12c057(0x1a5)](function(){const _0x3c0460=_0x12c057;logger[_0x3c0460(0x198)]('addIndex\x20%s\x20%s\x20%s',_0x34f21d,_0xcc6d8[_0x3c0460(0x192)](','),_0x3353d0);})[_0x12c057(0x1a2)](function(_0x228423){logger['info'](JSON['stringify'](_0x228423));});});},Migration['prototype'][a1080_0x8a8d98(0x19c)]=function(_0x46c8d0){const _0x522194=a1080_0x8a8d98,_0x2e94e9=this;this[_0x522194(0x1ac)][_0x522194(0x1a1)](function(){const _0x392c88=_0x522194;return _0x2e94e9['queryInterface']['sequelize'][_0x392c88(0x19c)](_0x46c8d0)[_0x392c88(0x1a5)](function(){const _0x20d7df=_0x392c88;logger[_0x20d7df(0x198)](_0x20d7df(0x1a9),_0x46c8d0);})[_0x392c88(0x1a2)](function(_0x2d0846){const _0x2b0f42=_0x392c88;logger[_0x2b0f42(0x198)](JSON[_0x2b0f42(0x19e)](_0x2d0846));});});},Migration[a1080_0x8a8d98(0x19d)]['removeColumn']=function(_0x5bc336,_0x56f303){const _0x46f4c1=a1080_0x8a8d98,_0x3e9f58=this;this[_0x46f4c1(0x1ac)]['enqueue'](function(){const _0x3359dd=_0x46f4c1;return _0x3e9f58[_0x3359dd(0x195)][_0x3359dd(0x196)](_0x5bc336,_0x56f303)[_0x3359dd(0x1a5)](function(){const _0x6583cb=_0x3359dd;logger[_0x6583cb(0x198)](_0x6583cb(0x193),_0x56f303,_0x5bc336);})[_0x3359dd(0x1a2)](function(_0x50291c){const _0x26631f=_0x3359dd;logger[_0x26631f(0x198)](util['inspect'](_0x50291c,{'showHidden':![],'depth':null}));});});},Migration[a1080_0x8a8d98(0x19d)][a1080_0x8a8d98(0x191)]=function(_0xdc5c68){const _0x4dabb1=a1080_0x8a8d98;this['sequence'][_0x4dabb1(0x1a1)](function(){return _0xdc5c68();});},module['exports']={'up':function(_0x5e21a7,_0x3315ef){return new Promise(function(_0x42696e){const _0x26a925=a1080_0xef8f,_0x11b21e=new Migration(_0x5e21a7);_0x11b21e['addColumn'](_0x26a925(0x1b1),_0x26a925(0x1a4),{'type':_0x3315ef[_0x26a925(0x1ab)],'defaultValue':!![]}),_0x11b21e[_0x26a925(0x1a3)](_0x26a925(0x1ad),'completed',{'type':_0x3315ef[_0x26a925(0x1ab)],'defaultValue':![]}),_0x11b21e['query'](_0x26a925(0x197)),_0x11b21e[_0x26a925(0x1a3)](_0x26a925(0x1a6),_0x26a925(0x1ae),{'type':_0x3315ef[_0x26a925(0x1aa)]}),_0x11b21e[_0x26a925(0x1a3)](_0x26a925(0x1a7),_0x26a925(0x1ae),{'type':_0x3315ef[_0x26a925(0x1aa)]}),_0x11b21e[_0x26a925(0x191)](_0x42696e);});},'down':function(){}}; \ No newline at end of file +const a1080_0x43ce=['query\x20%s','query','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','enableUncompleteSave','prototype','join','migration','changeColumn','exports','STRING','queryInterface','../config/logger','sequence','addIndex\x20%s\x20%s\x20%s','sms_messages','addIndex','BOOLEAN','completed','sms_interactions','table\x20dropped\x20%s','util','then','phone','UPDATE\x20report_jscripty_sessions\x20SET\x20completed\x20=\x20true','jscripty_projects','dropTable','tail','catch','stringify','removeColumn','addColumn','sequelize','info','enqueue','finally'];(function(_0x5fcf4c,_0x53dcb8){const _0x43ce88=function(_0x2a0181){while(--_0x2a0181){_0x5fcf4c['push'](_0x5fcf4c['shift']());}};_0x43ce88(++_0x53dcb8);}(a1080_0x43ce,0x14c));const a1080_0x2a01=function(_0x5fcf4c,_0x53dcb8){_0x5fcf4c=_0x5fcf4c-0x11d;let _0x43ce88=a1080_0x43ce[_0x5fcf4c];return _0x43ce88;};const a1080_0x48c122=a1080_0x2a01;'use strict';const logger=require(a1080_0x48c122(0x121))(a1080_0x48c122(0x140)),util=require(a1080_0x48c122(0x12a)),Sequence=function(){};Sequence['prototype'][a1080_0x48c122(0x137)]=function(_0x2561a8){const _0x501392=a1080_0x48c122;this['tail']=this[_0x501392(0x130)]?this[_0x501392(0x130)][_0x501392(0x138)](_0x2561a8):_0x2561a8();};const Migration=function(_0x1dc6b8){const _0x522265=a1080_0x48c122;this[_0x522265(0x120)]=_0x1dc6b8,this[_0x522265(0x122)]=new Sequence();};Migration[a1080_0x48c122(0x13e)][a1080_0x48c122(0x11d)]=function(_0x753707,_0x713f75,_0x493e22){const _0x319554=a1080_0x48c122,_0x2a06ff=this;this[_0x319554(0x122)][_0x319554(0x137)](function(){const _0x53224a=_0x319554;return _0x2a06ff['queryInterface'][_0x53224a(0x11d)](_0x753707,_0x713f75,_0x493e22)[_0x53224a(0x12b)](function(){const _0x184881=_0x53224a;logger['info'](_0x184881(0x13b),_0x713f75,_0x753707);})[_0x53224a(0x131)](function(_0x14e622){logger['info'](JSON['stringify'](_0x14e622));});});},Migration[a1080_0x48c122(0x13e)][a1080_0x48c122(0x134)]=function(_0x2c51c5,_0x373325,_0x32e3c0){const _0x4f4a60=a1080_0x48c122,_0x1b0336=this;this[_0x4f4a60(0x122)][_0x4f4a60(0x137)](function(){const _0x57cc7c=_0x4f4a60;return _0x1b0336[_0x57cc7c(0x120)][_0x57cc7c(0x134)](_0x2c51c5,_0x373325,_0x32e3c0)[_0x57cc7c(0x12b)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x373325,_0x2c51c5);})[_0x57cc7c(0x131)](function(_0x16564c){const _0x1272ee=_0x57cc7c;logger[_0x1272ee(0x136)](JSON[_0x1272ee(0x132)](_0x16564c));});});},Migration[a1080_0x48c122(0x13e)][a1080_0x48c122(0x12f)]=function(_0x580c33){const _0x660755=a1080_0x48c122,_0x9595d3=this;this[_0x660755(0x122)][_0x660755(0x137)](function(){const _0x5ba03f=_0x660755;return _0x9595d3[_0x5ba03f(0x120)][_0x5ba03f(0x12f)](_0x580c33,{'force':!![]})[_0x5ba03f(0x12b)](function(){const _0x21bfb4=_0x5ba03f;logger[_0x21bfb4(0x136)](_0x21bfb4(0x129),_0x580c33);})[_0x5ba03f(0x131)](function(_0x239039){const _0x259b8b=_0x5ba03f;logger[_0x259b8b(0x136)](JSON[_0x259b8b(0x132)](_0x239039));});});},Migration[a1080_0x48c122(0x13e)]['addIndex']=function(_0x551b82,_0x5ba350,_0x538e55){const _0x1e1579=a1080_0x48c122,_0x20fe90=this;this[_0x1e1579(0x122)]['enqueue'](function(){const _0x185414=_0x1e1579;return _0x20fe90[_0x185414(0x120)][_0x185414(0x125)](_0x551b82,_0x5ba350,{'indexName':_0x538e55})[_0x185414(0x12b)](function(){const _0x2fb832=_0x185414;logger[_0x2fb832(0x136)](_0x2fb832(0x123),_0x551b82,_0x5ba350[_0x2fb832(0x13f)](','),_0x538e55);})[_0x185414(0x131)](function(_0x1cb430){const _0x44bbc8=_0x185414;logger[_0x44bbc8(0x136)](JSON[_0x44bbc8(0x132)](_0x1cb430));});});},Migration[a1080_0x48c122(0x13e)][a1080_0x48c122(0x13a)]=function(_0x38df0b){const _0x1cd47f=a1080_0x48c122,_0x26e365=this;this[_0x1cd47f(0x122)][_0x1cd47f(0x137)](function(){const _0x2db053=_0x1cd47f;return _0x26e365[_0x2db053(0x120)][_0x2db053(0x135)][_0x2db053(0x13a)](_0x38df0b)[_0x2db053(0x12b)](function(){const _0x4cb16f=_0x2db053;logger[_0x4cb16f(0x136)](_0x4cb16f(0x139),_0x38df0b);})[_0x2db053(0x131)](function(_0x3e5e06){const _0x180ee3=_0x2db053;logger[_0x180ee3(0x136)](JSON[_0x180ee3(0x132)](_0x3e5e06));});});},Migration[a1080_0x48c122(0x13e)][a1080_0x48c122(0x133)]=function(_0x3c0ca2,_0x3bcf03){const _0xcd9794=a1080_0x48c122,_0x1d4807=this;this[_0xcd9794(0x122)]['enqueue'](function(){const _0x2de69c=_0xcd9794;return _0x1d4807['queryInterface'][_0x2de69c(0x133)](_0x3c0ca2,_0x3bcf03)['then'](function(){const _0x23604d=_0x2de69c;logger[_0x23604d(0x136)]('Removed\x20column\x20%s\x20from\x20%s',_0x3bcf03,_0x3c0ca2);})[_0x2de69c(0x131)](function(_0x2a5876){const _0x4c8622=_0x2de69c;logger[_0x4c8622(0x136)](util[_0x4c8622(0x13c)](_0x2a5876,{'showHidden':![],'depth':null}));});});},Migration[a1080_0x48c122(0x13e)]['final']=function(_0x4a2bca){const _0x5794f3=a1080_0x48c122;this[_0x5794f3(0x122)][_0x5794f3(0x137)](function(){return _0x4a2bca();});},module[a1080_0x48c122(0x11e)]={'up':function(_0x5002a0,_0x1b40a2){return new Promise(function(_0x2c2238){const _0x49a682=a1080_0x2a01,_0x383ce9=new Migration(_0x5002a0);_0x383ce9[_0x49a682(0x134)](_0x49a682(0x12e),_0x49a682(0x13d),{'type':_0x1b40a2[_0x49a682(0x126)],'defaultValue':!![]}),_0x383ce9[_0x49a682(0x134)]('report_jscripty_sessions',_0x49a682(0x127),{'type':_0x1b40a2['BOOLEAN'],'defaultValue':![]}),_0x383ce9[_0x49a682(0x13a)](_0x49a682(0x12d)),_0x383ce9[_0x49a682(0x134)](_0x49a682(0x128),'phone',{'type':_0x1b40a2[_0x49a682(0x11f)]}),_0x383ce9[_0x49a682(0x134)](_0x49a682(0x124),_0x49a682(0x12c),{'type':_0x1b40a2[_0x49a682(0x11f)]}),_0x383ce9['final'](_0x2c2238);});},'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 26d036f..b03fe67 100644 --- a/server/migrations/2.0.38.js +++ b/server/migrations/2.0.38.js @@ -1 +1 @@ -const a1081_0x426c=['finally','Removed\x20column\x20%s\x20from\x20%s','AttachmentId','util','then','queryInterface','sms_messages','table\x20dropped\x20%s','info','join','stringify','Ls\x20:','final','fax_applications','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','token','changeColumn','ls\x20-la\x20/var/opt/motion2/server/files','migration','sms_accounts','inspect','STRING','tail','sequence','query\x20%s','chown\x20motion:asterisk\x20/var/opt/motion2/server/files/attachments','t38pt_udptl','dropTable','prototype','exports','catch','query','Added\x20column\x20%s\x20to\x20%s','ALTER\x20TABLE\x20`fax_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`fax_messages_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`AttachmentId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20attachments(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20SET\x20NULL','enqueue','\x20Error\x20:','messageId','addColumn','addIndex\x20%s\x20%s\x20%s'];(function(_0x2ed70b,_0x2112c5){const _0x426c53=function(_0x28d9b4){while(--_0x28d9b4){_0x2ed70b['push'](_0x2ed70b['shift']());}};_0x426c53(++_0x2112c5);}(a1081_0x426c,0x1c3));const a1081_0x28d9=function(_0x2ed70b,_0x2112c5){_0x2ed70b=_0x2ed70b-0x97;let _0x426c53=a1081_0x426c[_0x2ed70b];return _0x426c53;};const a1081_0x48083b=a1081_0x28d9;'use strict';const logger=require('../config/logger')(a1081_0x48083b(0x9f)),util=require(a1081_0x48083b(0xb7)),exec=require('child_process')['exec'],cmd=a1081_0x48083b(0xa6),ls=a1081_0x48083b(0x9e),Sequence=function(){};Sequence[a1081_0x48083b(0xa9)][a1081_0x48083b(0xaf)]=function(_0x565f6b){const _0x37dcba=a1081_0x48083b;this[_0x37dcba(0xa3)]=this[_0x37dcba(0xa3)]?this[_0x37dcba(0xa3)][_0x37dcba(0xb4)](_0x565f6b):_0x565f6b();};const Migration=function(_0x1754dc){const _0x4bf151=a1081_0x48083b;this['queryInterface']=_0x1754dc,this[_0x4bf151(0xa4)]=new Sequence();};Migration[a1081_0x48083b(0xa9)][a1081_0x48083b(0x9d)]=function(_0x1e82f0,_0x10d4c3,_0x3eda85){const _0x17c8aa=a1081_0x48083b,_0x24e034=this;this[_0x17c8aa(0xa4)][_0x17c8aa(0xaf)](function(){const _0x43d33e=_0x17c8aa;return _0x24e034[_0x43d33e(0xb9)][_0x43d33e(0x9d)](_0x1e82f0,_0x10d4c3,_0x3eda85)['then'](function(){const _0x1b7e44=_0x43d33e;logger['info'](_0x1b7e44(0x9b),_0x10d4c3,_0x1e82f0);})[_0x43d33e(0xab)](function(_0x502cf1){const _0x12da52=_0x43d33e;logger[_0x12da52(0xbc)](JSON[_0x12da52(0xbe)](_0x502cf1));});});},Migration['prototype'][a1081_0x48083b(0xb2)]=function(_0x5f3f80,_0x36c096,_0x594673){const _0x485447=a1081_0x48083b,_0x3af56a=this;this['sequence'][_0x485447(0xaf)](function(){const _0x50d2dd=_0x485447;return _0x3af56a[_0x50d2dd(0xb9)][_0x50d2dd(0xb2)](_0x5f3f80,_0x36c096,_0x594673)[_0x50d2dd(0xb8)](function(){const _0xdf1790=_0x50d2dd;logger[_0xdf1790(0xbc)](_0xdf1790(0xad),_0x36c096,_0x5f3f80);})[_0x50d2dd(0xab)](function(_0x2c0616){const _0xfbd8e6=_0x50d2dd;logger[_0xfbd8e6(0xbc)](JSON[_0xfbd8e6(0xbe)](_0x2c0616));});});},Migration['prototype'][a1081_0x48083b(0xa8)]=function(_0x50b7e1){const _0x223fe5=a1081_0x48083b,_0x55da37=this;this[_0x223fe5(0xa4)]['enqueue'](function(){const _0x557d25=_0x223fe5;return _0x55da37['queryInterface'][_0x557d25(0xa8)](_0x50b7e1,{'force':!![]})[_0x557d25(0xb8)](function(){const _0x4711c8=_0x557d25;logger[_0x4711c8(0xbc)](_0x4711c8(0xbb),_0x50b7e1);})[_0x557d25(0xab)](function(_0x2e3b44){const _0x486c3f=_0x557d25;logger[_0x486c3f(0xbc)](JSON[_0x486c3f(0xbe)](_0x2e3b44));});});},Migration[a1081_0x48083b(0xa9)]['addIndex']=function(_0x13a9e6,_0x2faef7,_0x2c51b7){const _0x39f556=a1081_0x48083b,_0xaf3356=this;this[_0x39f556(0xa4)][_0x39f556(0xaf)](function(){const _0x6ed170=_0x39f556;return _0xaf3356['queryInterface']['addIndex'](_0x13a9e6,_0x2faef7,{'indexName':_0x2c51b7})['then'](function(){const _0x5a0238=a1081_0x28d9;logger[_0x5a0238(0xbc)](_0x5a0238(0xb3),_0x13a9e6,_0x2faef7[_0x5a0238(0xbd)](','),_0x2c51b7);})[_0x6ed170(0xab)](function(_0x5438c5){const _0x58f600=_0x6ed170;logger[_0x58f600(0xbc)](JSON[_0x58f600(0xbe)](_0x5438c5));});});},Migration[a1081_0x48083b(0xa9)][a1081_0x48083b(0xac)]=function(_0x2a3d54){const _0x2eb5d5=a1081_0x48083b,_0x32a164=this;this[_0x2eb5d5(0xa4)][_0x2eb5d5(0xaf)](function(){const _0x48262d=_0x2eb5d5;return _0x32a164[_0x48262d(0xb9)][_0x48262d(0x9a)][_0x48262d(0xac)](_0x2a3d54)[_0x48262d(0xb8)](function(){const _0x184baa=_0x48262d;logger[_0x184baa(0xbc)](_0x184baa(0xa5),_0x2a3d54);})[_0x48262d(0xab)](function(_0x1304a9){const _0x4f5eeb=_0x48262d;logger['info'](JSON[_0x4f5eeb(0xbe)](_0x1304a9));});});},Migration[a1081_0x48083b(0xa9)]['removeColumn']=function(_0x22e82a,_0xac27ae){const _0x1fe3a2=a1081_0x48083b,_0x13ca9d=this;this[_0x1fe3a2(0xa4)][_0x1fe3a2(0xaf)](function(){const _0xc27138=_0x1fe3a2;return _0x13ca9d[_0xc27138(0xb9)]['removeColumn'](_0x22e82a,_0xac27ae)[_0xc27138(0xb8)](function(){const _0x4ef288=_0xc27138;logger[_0x4ef288(0xbc)](_0x4ef288(0xb5),_0xac27ae,_0x22e82a);})[_0xc27138(0xab)](function(_0x3bad8c){const _0x373b03=_0xc27138;logger[_0x373b03(0xbc)](util[_0x373b03(0xa1)](_0x3bad8c,{'showHidden':![],'depth':null}));});});},Migration[a1081_0x48083b(0xa9)][a1081_0x48083b(0x98)]=function(_0x193bf6){const _0x549555=a1081_0x48083b;this['sequence'][_0x549555(0xaf)](function(){return _0x193bf6();});},module[a1081_0x48083b(0xaa)]={'up':function(_0x46c1ba,_0x4f3278){return new Promise(function(_0x227ebd){const _0x7c4571=a1081_0x28d9,_0x3f5cf1=new Migration(_0x46c1ba);_0x3f5cf1[_0x7c4571(0xb2)]('sms_accounts','remote',{'type':_0x4f3278[_0x7c4571(0xa2)]}),_0x3f5cf1[_0x7c4571(0xb2)](_0x7c4571(0xa0),_0x7c4571(0x9c),{'type':_0x4f3278[_0x7c4571(0xa2)]}),_0x3f5cf1[_0x7c4571(0xb2)](_0x7c4571(0xba),_0x7c4571(0xb1),{'type':_0x4f3278[_0x7c4571(0xa2)]}),exec(cmd,function(_0x498047,_0x140dc0,_0x3e95e0){const _0x2562a1=_0x7c4571;logger[_0x2562a1(0xbc)]('Exec\x20chmod',_0x2562a1(0xb0),JSON[_0x2562a1(0xbe)](_0x498047),_0x140dc0,_0x3e95e0),exec(ls,function(_0x44fe26,_0x315f0e,_0x43edd6){const _0x21b622=_0x2562a1;logger['info'](_0x21b622(0x97),'\x20Error\x20:',JSON['stringify'](_0x44fe26),_0x315f0e,_0x43edd6);});}),_0x3f5cf1[_0x7c4571(0xa8)](_0x7c4571(0x99)),_0x3f5cf1[_0x7c4571(0xb2)]('fax_messages',_0x7c4571(0xb6),{'type':_0x4f3278['INTEGER']}),_0x3f5cf1[_0x7c4571(0xac)](_0x7c4571(0xae)),_0x3f5cf1[_0x7c4571(0xb2)]('tools_trunks',_0x7c4571(0xa7),{'type':_0x4f3278['STRING'],'defaultValue':'no'}),_0x3f5cf1[_0x7c4571(0x98)](_0x227ebd);});},'down':function(){}}; \ No newline at end of file +const a1081_0x1599=['migration','catch','fax_applications','../config/logger','Added\x20column\x20%s\x20to\x20%s','removeColumn','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','queryInterface','token','then','sequelize','child_process','sms_messages','join','query','changeColumn','sms_accounts','ls\x20-la\x20/var/opt/motion2/server/files','addIndex\x20%s\x20%s\x20%s','t38pt_udptl','chown\x20motion:asterisk\x20/var/opt/motion2/server/files/attachments','Changed\x20column\x20%s\x20in\x20table\x20%s','AttachmentId','enqueue','fax_messages','table\x20dropped\x20%s','info','tail','final','sequence','inspect','remote','dropTable','query\x20%s','Removed\x20column\x20%s\x20from\x20%s','Exec\x20chmod','prototype','Ls\x20:','exports','STRING','messageId','stringify','\x20Error\x20:','util','addColumn','addIndex'];(function(_0x53d092,_0x13fbe0){const _0x1599b3=function(_0x3c5e76){while(--_0x3c5e76){_0x53d092['push'](_0x53d092['shift']());}};_0x1599b3(++_0x13fbe0);}(a1081_0x1599,0x104));const a1081_0x3c5e=function(_0x53d092,_0x13fbe0){_0x53d092=_0x53d092-0xea;let _0x1599b3=a1081_0x1599[_0x53d092];return _0x1599b3;};const a1081_0xe8da97=a1081_0x3c5e;'use strict';const logger=require(a1081_0xe8da97(0xfd))(a1081_0xe8da97(0xfa)),util=require(a1081_0xe8da97(0xf7)),exec=require(a1081_0xe8da97(0x105))['exec'],cmd=a1081_0xe8da97(0x10e),ls=a1081_0xe8da97(0x10b),Sequence=function(){};Sequence[a1081_0xe8da97(0xf0)]['enqueue']=function(_0x1343ea){const _0x150b1d=a1081_0xe8da97;this[_0x150b1d(0x115)]=this['tail']?this['tail']['finally'](_0x1343ea):_0x1343ea();};const Migration=function(_0x219eeb){const _0x473675=a1081_0xe8da97;this[_0x473675(0x101)]=_0x219eeb,this[_0x473675(0x117)]=new Sequence();};Migration[a1081_0xe8da97(0xf0)][a1081_0xe8da97(0x109)]=function(_0xe4e804,_0xa3e85,_0x2b8da8){const _0x5f18c0=a1081_0xe8da97,_0x30e4e7=this;this[_0x5f18c0(0x117)][_0x5f18c0(0x111)](function(){const _0x43547b=_0x5f18c0;return _0x30e4e7[_0x43547b(0x101)][_0x43547b(0x109)](_0xe4e804,_0xa3e85,_0x2b8da8)[_0x43547b(0x103)](function(){const _0x56974f=_0x43547b;logger[_0x56974f(0x114)](_0x56974f(0x10f),_0xa3e85,_0xe4e804);})[_0x43547b(0xfb)](function(_0x27927c){const _0x518f54=_0x43547b;logger[_0x518f54(0x114)](JSON[_0x518f54(0xf5)](_0x27927c));});});},Migration['prototype'][a1081_0xe8da97(0xf8)]=function(_0x321049,_0x2ccb4b,_0x8f0ecb){const _0x189ebc=a1081_0xe8da97,_0x535a6e=this;this[_0x189ebc(0x117)][_0x189ebc(0x111)](function(){const _0x40c90a=_0x189ebc;return _0x535a6e[_0x40c90a(0x101)]['addColumn'](_0x321049,_0x2ccb4b,_0x8f0ecb)[_0x40c90a(0x103)](function(){const _0x153fe9=_0x40c90a;logger['info'](_0x153fe9(0xfe),_0x2ccb4b,_0x321049);})[_0x40c90a(0xfb)](function(_0x532fee){logger['info'](JSON['stringify'](_0x532fee));});});},Migration[a1081_0xe8da97(0xf0)][a1081_0xe8da97(0xec)]=function(_0x2a44d2){const _0x533336=a1081_0xe8da97,_0x35f189=this;this[_0x533336(0x117)]['enqueue'](function(){const _0x5c46e8=_0x533336;return _0x35f189[_0x5c46e8(0x101)][_0x5c46e8(0xec)](_0x2a44d2,{'force':!![]})[_0x5c46e8(0x103)](function(){const _0x220662=_0x5c46e8;logger['info'](_0x220662(0x113),_0x2a44d2);})[_0x5c46e8(0xfb)](function(_0x530f10){const _0x48a888=_0x5c46e8;logger[_0x48a888(0x114)](JSON[_0x48a888(0xf5)](_0x530f10));});});},Migration[a1081_0xe8da97(0xf0)][a1081_0xe8da97(0xf9)]=function(_0x4651e1,_0x3721e2,_0x3d9f2f){const _0x3b2eba=a1081_0xe8da97,_0x258969=this;this['sequence'][_0x3b2eba(0x111)](function(){const _0x37cfd3=_0x3b2eba;return _0x258969[_0x37cfd3(0x101)][_0x37cfd3(0xf9)](_0x4651e1,_0x3721e2,{'indexName':_0x3d9f2f})['then'](function(){const _0x27b366=_0x37cfd3;logger['info'](_0x27b366(0x10c),_0x4651e1,_0x3721e2[_0x27b366(0x107)](','),_0x3d9f2f);})[_0x37cfd3(0xfb)](function(_0x56a246){const _0x10237e=_0x37cfd3;logger[_0x10237e(0x114)](JSON[_0x10237e(0xf5)](_0x56a246));});});},Migration[a1081_0xe8da97(0xf0)][a1081_0xe8da97(0x108)]=function(_0x3a9efc){const _0x33ad59=a1081_0xe8da97,_0x5bdcd3=this;this[_0x33ad59(0x117)][_0x33ad59(0x111)](function(){const _0x3c10f8=_0x33ad59;return _0x5bdcd3['queryInterface'][_0x3c10f8(0x104)][_0x3c10f8(0x108)](_0x3a9efc)[_0x3c10f8(0x103)](function(){const _0x46acac=_0x3c10f8;logger[_0x46acac(0x114)](_0x46acac(0xed),_0x3a9efc);})['catch'](function(_0x34473d){const _0x518894=_0x3c10f8;logger[_0x518894(0x114)](JSON[_0x518894(0xf5)](_0x34473d));});});},Migration[a1081_0xe8da97(0xf0)]['removeColumn']=function(_0x1cc4e5,_0x5ebce7){const _0x2b6bf1=a1081_0xe8da97,_0x546c58=this;this['sequence'][_0x2b6bf1(0x111)](function(){const _0x1cdd67=_0x2b6bf1;return _0x546c58[_0x1cdd67(0x101)][_0x1cdd67(0xff)](_0x1cc4e5,_0x5ebce7)['then'](function(){const _0x14f29c=_0x1cdd67;logger[_0x14f29c(0x114)](_0x14f29c(0xee),_0x5ebce7,_0x1cc4e5);})[_0x1cdd67(0xfb)](function(_0x4d9942){const _0x3a8816=_0x1cdd67;logger[_0x3a8816(0x114)](util[_0x3a8816(0xea)](_0x4d9942,{'showHidden':![],'depth':null}));});});},Migration[a1081_0xe8da97(0xf0)][a1081_0xe8da97(0x116)]=function(_0x293483){const _0x156de9=a1081_0xe8da97;this[_0x156de9(0x117)][_0x156de9(0x111)](function(){return _0x293483();});},module[a1081_0xe8da97(0xf2)]={'up':function(_0x118d0c,_0x106771){return new Promise(function(_0x22ee0b){const _0x17eba8=a1081_0x3c5e,_0x4223cf=new Migration(_0x118d0c);_0x4223cf[_0x17eba8(0xf8)](_0x17eba8(0x10a),_0x17eba8(0xeb),{'type':_0x106771['STRING']}),_0x4223cf[_0x17eba8(0xf8)](_0x17eba8(0x10a),_0x17eba8(0x102),{'type':_0x106771[_0x17eba8(0xf3)]}),_0x4223cf[_0x17eba8(0xf8)](_0x17eba8(0x106),_0x17eba8(0xf4),{'type':_0x106771[_0x17eba8(0xf3)]}),exec(cmd,function(_0x51202a,_0x344636,_0x16d2c5){const _0x449ea4=_0x17eba8;logger[_0x449ea4(0x114)](_0x449ea4(0xef),_0x449ea4(0xf6),JSON['stringify'](_0x51202a),_0x344636,_0x16d2c5),exec(ls,function(_0x53c035,_0x2ce5c9,_0x3d9135){const _0x53c933=_0x449ea4;logger[_0x53c933(0x114)](_0x53c933(0xf1),_0x53c933(0xf6),JSON['stringify'](_0x53c035),_0x2ce5c9,_0x3d9135);});}),_0x4223cf[_0x17eba8(0xec)](_0x17eba8(0xfc)),_0x4223cf['addColumn'](_0x17eba8(0x112),_0x17eba8(0x110),{'type':_0x106771['INTEGER']}),_0x4223cf[_0x17eba8(0x108)](_0x17eba8(0x100)),_0x4223cf[_0x17eba8(0xf8)]('tools_trunks',_0x17eba8(0x10d),{'type':_0x106771[_0x17eba8(0xf3)],'defaultValue':'no'}),_0x4223cf['final'](_0x22ee0b);});},'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 22e24c3..3d9401a 100644 --- a/server/migrations/2.0.39.js +++ b/server/migrations/2.0.39.js @@ -1 +1 @@ -const a1082_0x2e11=['path','nothing','import','query','final','lead','addIndex\x20%s\x20%s\x20%s','dropTable','cm_contacts','info','defaultPageTitle','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x274\x27,\x20\x27Set\x27,\x20\x27FAXOPT(ecm)=${XMF-ECM}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','migration','../config/environment','queryInterface','Ls\x20:','STRING','findAll','exec','removeColumn','settings','xcally-mixmonitor-context','checkVoiceContexts','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','DATE','utf8','\x20Error\x20:','/etc/asterisk/extensions_xcally_contexts.conf','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\x272\x27,\x20\x27Set\x27,\x20\x27CDR(type)=outbound-fax\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','Added\x20column\x20%s\x20to\x20%s','ENUM','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\x277\x27,\x20\x27Set\x27,\x20\x27FAXOPT(maxrate)=${XMF-MAXRATE}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x279\x27,\x20\x27Set\x27,\x20\x27FAXOPT(modem)=${XMF-MODEM}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','contact_lead','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x276\x27,\x20\x27Set\x27,\x20\x27FAXOPT(localstationid)=${XMF-LOCALSTATIONID}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','changeColumn','addIndex','api/voiceContext/voiceContext.model','tail','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\x2710\x27,\x20\x27Set\x27,\x20\x27FAXOPT(t38timeout)=${XMF-T38TIMEOUT}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','child_process','moduleSearch','prototype','int_salesforce_configurations','query\x20%s','then','contact','BOOLEAN','asterisk\x20-rx\x20\x22reload\x20chan_sip.so\x22','root','exports','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','spread','moduleCreate','sequence','inspect','pageTitle','enqueue','sequelize','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x273\x27,\x20\x27Wait\x27,\x20\x276\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','stringify','chmod\x20775\x20/var/opt/motion2/server/files/attachments','addColumn','writeFileSync','catch','finally','join'];(function(_0x5e9892,_0x23ca70){const _0x2e1179=function(_0x5d3a3c){while(--_0x5d3a3c){_0x5e9892['push'](_0x5e9892['shift']());}};_0x2e1179(++_0x23ca70);}(a1082_0x2e11,0x15b));const a1082_0x5d3a=function(_0x5e9892,_0x23ca70){_0x5e9892=_0x5e9892-0x151;let _0x2e1179=a1082_0x2e11[_0x5e9892];return _0x2e1179;};const a1082_0x324f06=a1082_0x5d3a;'use strict';const logger=require('../config/logger')(a1082_0x324f06(0x165)),util=require('util'),ejs=require(a1082_0x324f06(0x176)),fs=require('fs'),path=require(a1082_0x324f06(0x159)),exec=require(a1082_0x324f06(0x185))[a1082_0x324f06(0x16b)],config=require(a1082_0x324f06(0x166)),Sequence=function(){};Sequence[a1082_0x324f06(0x187)][a1082_0x324f06(0x196)]=function(_0x443227){const _0x44f1f6=a1082_0x324f06;this[_0x44f1f6(0x182)]=this['tail']?this[_0x44f1f6(0x182)][_0x44f1f6(0x157)](_0x443227):_0x443227();};const Migration=function(_0x19d7ac){const _0x5d79c2=a1082_0x324f06;this[_0x5d79c2(0x167)]=_0x19d7ac,this['sequence']=new Sequence();};Migration[a1082_0x324f06(0x187)][a1082_0x324f06(0x17f)]=function(_0x247f7e,_0x75e8f2,_0x51d961){const _0xf4558c=a1082_0x324f06,_0x565cd2=this;this[_0xf4558c(0x193)][_0xf4558c(0x196)](function(){const _0x147ddf=_0xf4558c;return _0x565cd2['queryInterface'][_0x147ddf(0x17f)](_0x247f7e,_0x75e8f2,_0x51d961)['then'](function(){const _0x308f40=_0x147ddf;logger[_0x308f40(0x162)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x75e8f2,_0x247f7e);})[_0x147ddf(0x156)](function(_0x189c1f){const _0x2dc5fc=_0x147ddf;logger[_0x2dc5fc(0x162)](JSON['stringify'](_0x189c1f));});});},Migration[a1082_0x324f06(0x187)][a1082_0x324f06(0x154)]=function(_0x1ac5f5,_0x25e883,_0x206f65){const _0x4eefba=a1082_0x324f06,_0xabd563=this;this[_0x4eefba(0x193)][_0x4eefba(0x196)](function(){const _0x5d4ec9=_0x4eefba;return _0xabd563['queryInterface']['addColumn'](_0x1ac5f5,_0x25e883,_0x206f65)[_0x5d4ec9(0x18a)](function(){const _0x559f50=_0x5d4ec9;logger[_0x559f50(0x162)](_0x559f50(0x178),_0x25e883,_0x1ac5f5);})[_0x5d4ec9(0x156)](function(_0x20d111){const _0x14e96a=_0x5d4ec9;logger[_0x14e96a(0x162)](JSON[_0x14e96a(0x152)](_0x20d111));});});},Migration[a1082_0x324f06(0x187)][a1082_0x324f06(0x160)]=function(_0x1a1f9a){const _0x212ba7=a1082_0x324f06,_0x4bd641=this;this[_0x212ba7(0x193)]['enqueue'](function(){const _0x38ff3=_0x212ba7;return _0x4bd641[_0x38ff3(0x167)]['dropTable'](_0x1a1f9a,{'force':!![]})['then'](function(){const _0x448efd=_0x38ff3;logger[_0x448efd(0x162)]('table\x20dropped\x20%s',_0x1a1f9a);})[_0x38ff3(0x156)](function(_0x11b1d2){const _0x410560=_0x38ff3;logger[_0x410560(0x162)](JSON['stringify'](_0x11b1d2));});});},Migration[a1082_0x324f06(0x187)][a1082_0x324f06(0x180)]=function(_0x3fdee7,_0x27319c,_0x104986){const _0x5c22d5=a1082_0x324f06,_0x4de5fb=this;this[_0x5c22d5(0x193)][_0x5c22d5(0x196)](function(){const _0x1b0806=_0x5c22d5;return _0x4de5fb[_0x1b0806(0x167)]['addIndex'](_0x3fdee7,_0x27319c,{'indexName':_0x104986})[_0x1b0806(0x18a)](function(){const _0x343cd7=_0x1b0806;logger[_0x343cd7(0x162)](_0x343cd7(0x15f),_0x3fdee7,_0x27319c[_0x343cd7(0x158)](','),_0x104986);})[_0x1b0806(0x156)](function(_0x224674){const _0x4cc2bc=_0x1b0806;logger[_0x4cc2bc(0x162)](JSON[_0x4cc2bc(0x152)](_0x224674));});});},Migration[a1082_0x324f06(0x187)][a1082_0x324f06(0x15c)]=function(_0x2fa960){const _0x52a794=a1082_0x324f06,_0x4452d0=this;this[_0x52a794(0x193)][_0x52a794(0x196)](function(){const _0x239645=_0x52a794;return _0x4452d0[_0x239645(0x167)]['sequelize'][_0x239645(0x15c)](_0x2fa960)[_0x239645(0x18a)](function(){const _0x509663=_0x239645;logger['info'](_0x509663(0x189),_0x2fa960);})['catch'](function(_0x11956b){const _0x17bf76=_0x239645;logger[_0x17bf76(0x162)](JSON[_0x17bf76(0x152)](_0x11956b));});});},Migration[a1082_0x324f06(0x187)][a1082_0x324f06(0x16c)]=function(_0x509950,_0x310bb1){const _0x32e792=a1082_0x324f06,_0x2343e1=this;this[_0x32e792(0x193)][_0x32e792(0x196)](function(){const _0x36f684=_0x32e792;return _0x2343e1[_0x36f684(0x167)][_0x36f684(0x16c)](_0x509950,_0x310bb1)[_0x36f684(0x18a)](function(){const _0x28b78b=_0x36f684;logger[_0x28b78b(0x162)]('Removed\x20column\x20%s\x20from\x20%s',_0x310bb1,_0x509950);})[_0x36f684(0x156)](function(_0x1e6212){const _0x5d5299=_0x36f684;logger['info'](util[_0x5d5299(0x194)](_0x1e6212,{'showHidden':![],'depth':null}));});});},Migration[a1082_0x324f06(0x187)][a1082_0x324f06(0x16f)]=function(){const _0x3de2a7=a1082_0x324f06,_0x43c013=this,_0x199a82=_0x43c013['queryInterface'][_0x3de2a7(0x197)][_0x3de2a7(0x15b)](path[_0x3de2a7(0x158)](config[_0x3de2a7(0x18e)],_0x3de2a7(0x181)));this['sequence'][_0x3de2a7(0x196)](function(){const _0x5c5f5a=_0x3de2a7;return _0x199a82['findOrCreate']({'where':{'name':'xcally-mixmonitor-context'},'defaults':{'name':_0x5c5f5a(0x16e),'description':_0x5c5f5a(0x190),'defaultEntry':!![]}})[_0x5c5f5a(0x191)](function(){const _0x1d7a27=_0x5c5f5a;return _0x199a82[_0x1d7a27(0x16a)]({'raw':!![]});})['then'](function(_0x45cd31){const _0x2ae638=_0x5c5f5a,_0x253d27=fs[_0x2ae638(0x183)](path[_0x2ae638(0x158)](config[_0x2ae638(0x18e)],'files/templates/context.ejs'),_0x2ae638(0x173)),_0x4ff0ac=ejs['render'](_0x253d27,{'contexts':_0x45cd31||[]});fs[_0x2ae638(0x155)](_0x2ae638(0x175),_0x4ff0ac),exec(_0x2ae638(0x18d),function(_0x284863,_0x4509dc,_0x36279e){const _0x24ced5=_0x2ae638;logger[_0x24ced5(0x162)]('Exec\x20chmod',_0x24ced5(0x174),JSON[_0x24ced5(0x152)](_0x284863),_0x4509dc,_0x36279e);});})['catch'](function(_0x45a71c){const _0xce5d6=_0x5c5f5a;logger['info'](JSON[_0xce5d6(0x152)](_0x45a71c));});});},Migration['prototype'][a1082_0x324f06(0x15d)]=function(_0x41620c){const _0x8a33ad=a1082_0x324f06;this[_0x8a33ad(0x193)][_0x8a33ad(0x196)](function(){return _0x41620c();});},module[a1082_0x324f06(0x18f)]={'up':function(_0x1ee2de,_0x19b82a){return new Promise(function(_0x3ef339){const _0x22fdb9=a1082_0x5d3a,_0x184dbf=new Migration(_0x1ee2de);_0x184dbf[_0x22fdb9(0x154)]('settings',_0x22fdb9(0x163),{'type':_0x19b82a[_0x22fdb9(0x18c)],'defaultValue':!![]}),_0x184dbf[_0x22fdb9(0x154)](_0x22fdb9(0x16d),_0x22fdb9(0x195),{'type':_0x19b82a[_0x22fdb9(0x169)]}),_0x184dbf[_0x22fdb9(0x16f)](),_0x184dbf[_0x22fdb9(0x154)](_0x22fdb9(0x188),_0x22fdb9(0x186),{'type':_0x19b82a[_0x22fdb9(0x179)](_0x22fdb9(0x17d),_0x22fdb9(0x18b),'lead'),'defaultValue':'contact_lead'}),_0x184dbf[_0x22fdb9(0x154)](_0x22fdb9(0x188),_0x22fdb9(0x192),{'type':_0x19b82a[_0x22fdb9(0x179)](_0x22fdb9(0x15a),'contact',_0x22fdb9(0x15e)),'defaultValue':_0x22fdb9(0x15e)}),_0x184dbf[_0x22fdb9(0x15c)](_0x22fdb9(0x170)),_0x184dbf[_0x22fdb9(0x15c)](_0x22fdb9(0x177)),_0x184dbf[_0x22fdb9(0x15c)](_0x22fdb9(0x151)),_0x184dbf[_0x22fdb9(0x15c)](_0x22fdb9(0x164)),_0x184dbf[_0x22fdb9(0x15c)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x184dbf[_0x22fdb9(0x15c)](_0x22fdb9(0x17e)),_0x184dbf['query'](_0x22fdb9(0x17b)),_0x184dbf[_0x22fdb9(0x15c)](_0x22fdb9(0x171)),_0x184dbf[_0x22fdb9(0x15c)](_0x22fdb9(0x17c)),_0x184dbf[_0x22fdb9(0x15c)](_0x22fdb9(0x184)),_0x184dbf[_0x22fdb9(0x15c)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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(_0x22fdb9(0x153),function(_0x3fb1a8,_0x4440ef,_0x271897){const _0xb1096a=_0x22fdb9;logger[_0xb1096a(0x162)](_0xb1096a(0x17a),_0xb1096a(0x174),JSON['stringify'](_0x3fb1a8),_0x4440ef,_0x271897),exec('ls\x20-la\x20/var/opt/motion2/server/files',function(_0x5ee411,_0xcdb97a,_0x462ded){const _0x24efca=_0xb1096a;logger[_0x24efca(0x162)](_0x24efca(0x168),_0x24efca(0x174),JSON[_0x24efca(0x152)](_0x5ee411),_0xcdb97a,_0x462ded);});}),_0x184dbf[_0x22fdb9(0x154)](_0x22fdb9(0x161),'deletedAt',{'type':_0x19b82a[_0x22fdb9(0x172)],'defaultValue':null}),_0x184dbf[_0x22fdb9(0x15d)](_0x3ef339);});},'down':function(){}}; \ No newline at end of file +const a1082_0x14a5=['child_process','query\x20%s','deletedAt','query','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x278\x27,\x20\x27Set\x27,\x20\x27FAXOPT(minrate)=${XMF-MINRATE}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','removeColumn','ENUM','addColumn','BOOLEAN','addIndex','stringify','ls\x20-la\x20/var/opt/motion2/server/files','finally','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x275\x27,\x20\x27Set\x27,\x20\x27FAXOPT(headerinfo)=${XMF-HEADERINFO}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','changeColumn','utf8','findOrCreate','dropTable','int_salesforce_configurations','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','lead','path','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','moduleCreate','catch','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\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\x279\x27,\x20\x27Set\x27,\x20\x27FAXOPT(modem)=${XMF-MODEM}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','join','contact','tail','prototype','import','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x277\x27,\x20\x27Set\x27,\x20\x27FAXOPT(maxrate)=${XMF-MAXRATE}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','util','api/voiceContext/voiceContext.model','enqueue','checkVoiceContexts','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','findAll','addIndex\x20%s\x20%s\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-fax\x27,\x20\x273\x27,\x20\x27Wait\x27,\x20\x276\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','writeFileSync','final','render','root','queryInterface','Exec\x20chmod','contact_lead','asterisk\x20-rx\x20\x22reload\x20chan_sip.so\x22','defaultPageTitle','sequelize','xcally-mixmonitor-context','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-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());','spread','sequence','nothing','moduleSearch','\x20Error\x20:','inspect','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','then','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-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());','DATE'];(function(_0x233510,_0xeebbfe){const _0x14a543=function(_0x1fbd9e){while(--_0x1fbd9e){_0x233510['push'](_0x233510['shift']());}};_0x14a543(++_0xeebbfe);}(a1082_0x14a5,0x157));const a1082_0x1fbd=function(_0x233510,_0xeebbfe){_0x233510=_0x233510-0x1d2;let _0x14a543=a1082_0x14a5[_0x233510];return _0x14a543;};const a1082_0x6b04b3=a1082_0x1fbd;'use strict';const logger=require(a1082_0x6b04b3(0x1e0))(a1082_0x6b04b3(0x20a)),util=require(a1082_0x6b04b3(0x1ec)),ejs=require('ejs'),fs=require('fs'),path=require(a1082_0x6b04b3(0x1df)),exec=require(a1082_0x6b04b3(0x20d))['exec'],config=require('../config/environment'),Sequence=function(){};Sequence[a1082_0x6b04b3(0x1e9)]['enqueue']=function(_0x2c052){const _0x3a186f=a1082_0x6b04b3;this[_0x3a186f(0x1e8)]=this[_0x3a186f(0x1e8)]?this[_0x3a186f(0x1e8)][_0x3a186f(0x1d6)](_0x2c052):_0x2c052();};const Migration=function(_0x85aff3){const _0x1cad62=a1082_0x6b04b3;this['queryInterface']=_0x85aff3,this[_0x1cad62(0x202)]=new Sequence();};Migration[a1082_0x6b04b3(0x1e9)][a1082_0x6b04b3(0x1d8)]=function(_0x565c65,_0x418b09,_0x10024a){const _0x3645fb=a1082_0x6b04b3,_0x144dd0=this;this[_0x3645fb(0x202)][_0x3645fb(0x1ee)](function(){const _0xe7781d=_0x3645fb;return _0x144dd0[_0xe7781d(0x1f8)][_0xe7781d(0x1d8)](_0x565c65,_0x418b09,_0x10024a)[_0xe7781d(0x209)](function(){const _0x8def37=_0xe7781d;logger['info'](_0x8def37(0x1e1),_0x418b09,_0x565c65);})[_0xe7781d(0x1e3)](function(_0x21d03f){const _0x38f681=_0xe7781d;logger[_0x38f681(0x1ff)](JSON['stringify'](_0x21d03f));});});},Migration['prototype']['addColumn']=function(_0x5985e2,_0x51b5ee,_0x5f112a){const _0x4202b3=a1082_0x6b04b3,_0x39dc8c=this;this[_0x4202b3(0x202)][_0x4202b3(0x1ee)](function(){const _0x62c71d=_0x4202b3;return _0x39dc8c[_0x62c71d(0x1f8)][_0x62c71d(0x214)](_0x5985e2,_0x51b5ee,_0x5f112a)[_0x62c71d(0x209)](function(){const _0x2b3d1c=_0x62c71d;logger[_0x2b3d1c(0x1ff)]('Added\x20column\x20%s\x20to\x20%s',_0x51b5ee,_0x5985e2);})[_0x62c71d(0x1e3)](function(_0x29c82b){const _0x4f1a14=_0x62c71d;logger[_0x4f1a14(0x1ff)](JSON[_0x4f1a14(0x1d4)](_0x29c82b));});});},Migration[a1082_0x6b04b3(0x1e9)][a1082_0x6b04b3(0x1db)]=function(_0x396a2f){const _0x19664=a1082_0x6b04b3,_0x476bae=this;this['sequence'][_0x19664(0x1ee)](function(){const _0x438721=_0x19664;return _0x476bae[_0x438721(0x1f8)][_0x438721(0x1db)](_0x396a2f,{'force':!![]})['then'](function(){const _0x42a7eb=_0x438721;logger['info'](_0x42a7eb(0x207),_0x396a2f);})['catch'](function(_0x13d374){const _0x367146=_0x438721;logger[_0x367146(0x1ff)](JSON['stringify'](_0x13d374));});});},Migration[a1082_0x6b04b3(0x1e9)][a1082_0x6b04b3(0x1d3)]=function(_0x1e56a2,_0x2ac6b2,_0x31780c){const _0x2dc9a8=a1082_0x6b04b3,_0x36b671=this;this[_0x2dc9a8(0x202)]['enqueue'](function(){const _0x44e1cd=_0x2dc9a8;return _0x36b671[_0x44e1cd(0x1f8)][_0x44e1cd(0x1d3)](_0x1e56a2,_0x2ac6b2,{'indexName':_0x31780c})[_0x44e1cd(0x209)](function(){const _0x2fcff0=_0x44e1cd;logger[_0x2fcff0(0x1ff)](_0x2fcff0(0x1f2),_0x1e56a2,_0x2ac6b2[_0x2fcff0(0x1e6)](','),_0x31780c);})[_0x44e1cd(0x1e3)](function(_0x55155c){const _0x319fec=_0x44e1cd;logger[_0x319fec(0x1ff)](JSON[_0x319fec(0x1d4)](_0x55155c));});});},Migration[a1082_0x6b04b3(0x1e9)][a1082_0x6b04b3(0x210)]=function(_0xd64261){const _0xba1e40=this;this['sequence']['enqueue'](function(){const _0x2d2466=a1082_0x1fbd;return _0xba1e40[_0x2d2466(0x1f8)][_0x2d2466(0x1fd)][_0x2d2466(0x210)](_0xd64261)[_0x2d2466(0x209)](function(){const _0x21fa04=_0x2d2466;logger[_0x21fa04(0x1ff)](_0x21fa04(0x20e),_0xd64261);})[_0x2d2466(0x1e3)](function(_0x2beadf){const _0x42313f=_0x2d2466;logger['info'](JSON[_0x42313f(0x1d4)](_0x2beadf));});});},Migration[a1082_0x6b04b3(0x1e9)][a1082_0x6b04b3(0x212)]=function(_0x4b44f0,_0x1e0ea6){const _0x30fe36=a1082_0x6b04b3,_0x406050=this;this[_0x30fe36(0x202)][_0x30fe36(0x1ee)](function(){const _0xe157d9=_0x30fe36;return _0x406050[_0xe157d9(0x1f8)][_0xe157d9(0x212)](_0x4b44f0,_0x1e0ea6)[_0xe157d9(0x209)](function(){const _0x32af92=_0xe157d9;logger[_0x32af92(0x1ff)](_0x32af92(0x208),_0x1e0ea6,_0x4b44f0);})[_0xe157d9(0x1e3)](function(_0x56c6a1){const _0x491e39=_0xe157d9;logger[_0x491e39(0x1ff)](util[_0x491e39(0x206)](_0x56c6a1,{'showHidden':![],'depth':null}));});});},Migration[a1082_0x6b04b3(0x1e9)][a1082_0x6b04b3(0x1ef)]=function(){const _0x3dc6d2=a1082_0x6b04b3,_0x40d9c8=this,_0xb2823a=_0x40d9c8['queryInterface'][_0x3dc6d2(0x1fd)][_0x3dc6d2(0x1ea)](path['join'](config[_0x3dc6d2(0x1f7)],_0x3dc6d2(0x1ed)));this['sequence'][_0x3dc6d2(0x1ee)](function(){const _0x40619a=_0x3dc6d2;return _0xb2823a[_0x40619a(0x1da)]({'where':{'name':_0x40619a(0x1fe)},'defaults':{'name':_0x40619a(0x1fe),'description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]}})[_0x40619a(0x201)](function(){const _0x1807ba=_0x40619a;return _0xb2823a[_0x1807ba(0x1f1)]({'raw':!![]});})[_0x40619a(0x209)](function(_0x18896d){const _0x266498=_0x40619a,_0x2bb4c2=fs['readFileSync'](path[_0x266498(0x1e6)](config[_0x266498(0x1f7)],'files/templates/context.ejs'),_0x266498(0x1d9)),_0x278da8=ejs[_0x266498(0x1f6)](_0x2bb4c2,{'contexts':_0x18896d||[]});fs[_0x266498(0x1f4)]('/etc/asterisk/extensions_xcally_contexts.conf',_0x278da8),exec(_0x266498(0x1fb),function(_0x22226d,_0x5099f2,_0x1a0f3f){const _0x9fb3a6=_0x266498;logger[_0x9fb3a6(0x1ff)](_0x9fb3a6(0x1f9),'\x20Error\x20:',JSON[_0x9fb3a6(0x1d4)](_0x22226d),_0x5099f2,_0x1a0f3f);});})['catch'](function(_0x59e118){const _0x148874=_0x40619a;logger[_0x148874(0x1ff)](JSON[_0x148874(0x1d4)](_0x59e118));});});},Migration[a1082_0x6b04b3(0x1e9)][a1082_0x6b04b3(0x1f5)]=function(_0x197a3a){const _0x3c9dd2=a1082_0x6b04b3;this[_0x3c9dd2(0x202)][_0x3c9dd2(0x1ee)](function(){return _0x197a3a();});},module['exports']={'up':function(_0x1dd5da,_0x4b3ab3){return new Promise(function(_0xefeba3){const _0x2bea2a=a1082_0x1fbd,_0x3292f0=new Migration(_0x1dd5da);_0x3292f0[_0x2bea2a(0x214)]('settings',_0x2bea2a(0x1fc),{'type':_0x4b3ab3[_0x2bea2a(0x1d2)],'defaultValue':!![]}),_0x3292f0[_0x2bea2a(0x214)]('settings','pageTitle',{'type':_0x4b3ab3['STRING']}),_0x3292f0[_0x2bea2a(0x1ef)](),_0x3292f0[_0x2bea2a(0x214)](_0x2bea2a(0x1dc),_0x2bea2a(0x204),{'type':_0x4b3ab3[_0x2bea2a(0x213)](_0x2bea2a(0x1fa),_0x2bea2a(0x1e7),'lead'),'defaultValue':_0x2bea2a(0x1fa)}),_0x3292f0[_0x2bea2a(0x214)]('int_salesforce_configurations',_0x2bea2a(0x1e2),{'type':_0x4b3ab3['ENUM'](_0x2bea2a(0x203),'contact',_0x2bea2a(0x1de)),'defaultValue':_0x2bea2a(0x1de)}),_0x3292f0[_0x2bea2a(0x210)](_0x2bea2a(0x1e4)),_0x3292f0[_0x2bea2a(0x210)](_0x2bea2a(0x200)),_0x3292f0[_0x2bea2a(0x210)](_0x2bea2a(0x1f3)),_0x3292f0['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x274\x27,\x20\x27Set\x27,\x20\x27FAXOPT(ecm)=${XMF-ECM}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x3292f0[_0x2bea2a(0x210)](_0x2bea2a(0x1d7)),_0x3292f0['query'](_0x2bea2a(0x1dd)),_0x3292f0[_0x2bea2a(0x210)](_0x2bea2a(0x1eb)),_0x3292f0['query'](_0x2bea2a(0x211)),_0x3292f0[_0x2bea2a(0x210)](_0x2bea2a(0x1e5)),_0x3292f0[_0x2bea2a(0x210)](_0x2bea2a(0x20b)),_0x3292f0[_0x2bea2a(0x210)](_0x2bea2a(0x1f0)),exec('chmod\x20775\x20/var/opt/motion2/server/files/attachments',function(_0x41eed7,_0x325442,_0x535f7b){const _0x67a1b0=_0x2bea2a;logger[_0x67a1b0(0x1ff)](_0x67a1b0(0x1f9),_0x67a1b0(0x205),JSON[_0x67a1b0(0x1d4)](_0x41eed7),_0x325442,_0x535f7b),exec(_0x67a1b0(0x1d5),function(_0x442ec8,_0x5a8556,_0x33238f){const _0x4d1f25=_0x67a1b0;logger[_0x4d1f25(0x1ff)]('Ls\x20:',_0x4d1f25(0x205),JSON[_0x4d1f25(0x1d4)](_0x442ec8),_0x5a8556,_0x33238f);});}),_0x3292f0[_0x2bea2a(0x214)]('cm_contacts',_0x2bea2a(0x20f),{'type':_0x4b3ab3[_0x2bea2a(0x20c)],'defaultValue':null}),_0x3292f0[_0x2bea2a(0x1f5)](_0xefeba3);});},'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 12143c4..cc56dbe 100644 --- a/server/migrations/2.0.40.js +++ b/server/migrations/2.0.40.js @@ -1 +1 @@ -'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file +var a1083_0x30c5=['exports'];(function(_0x3b8240,_0x556239){var _0x30c53b=function(_0x4e3e60){while(--_0x4e3e60){_0x3b8240['push'](_0x3b8240['shift']());}};_0x30c53b(++_0x556239);}(a1083_0x30c5,0x8c));var a1083_0x4e3e=function(_0x3b8240,_0x556239){_0x3b8240=_0x3b8240-0xc3;var _0x30c53b=a1083_0x30c5[_0x3b8240];return _0x30c53b;};var a1083_0x251805=a1083_0x4e3e;'use strict';module[a1083_0x251805(0xc3)]={'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 05bb821..e409938 100644 --- a/server/migrations/2.0.41.js +++ b/server/migrations/2.0.41.js @@ -1 +1 @@ -const a1084_0x172c=['TEXT','query\x20%s','enqueue','sequence','dropTable','serverUrl','removeColumn','catch','addIndex\x20%s\x20%s\x20%s','final','addColumn','exports','queryInterface','sequelize','agentAvatar','then','values','table\x20dropped\x20%s','showAgentAvatar','Added\x20column\x20%s\x20to\x20%s','../config/logger','tail','chat_websites','Removed\x20column\x20%s\x20from\x20%s','info','STRING','util','prototype','migration','formData','addIndex','stringify','int_desk_accounts','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','BOOLEAN','finally','long','secret','query'];(function(_0x246dfb,_0x648bf5){const _0x172c0a=function(_0x30a24e){while(--_0x30a24e){_0x246dfb['push'](_0x246dfb['shift']());}};_0x172c0a(++_0x648bf5);}(a1084_0x172c,0xaf));const a1084_0x30a2=function(_0x246dfb,_0x648bf5){_0x246dfb=_0x246dfb-0x11c;let _0x172c0a=a1084_0x172c[_0x246dfb];return _0x172c0a;};const a1084_0x8807c9=a1084_0x30a2;'use strict';const logger=require(a1084_0x8807c9(0x121))(a1084_0x8807c9(0x129)),util=require(a1084_0x8807c9(0x127)),Sequence=function(){};Sequence[a1084_0x8807c9(0x128)]['enqueue']=function(_0x2e2787){const _0x1ae911=a1084_0x8807c9;this[_0x1ae911(0x122)]=this[_0x1ae911(0x122)]?this[_0x1ae911(0x122)][_0x1ae911(0x131)](_0x2e2787):_0x2e2787();};const Migration=function(_0x5bcba9){const _0x23ad35=a1084_0x8807c9;this[_0x23ad35(0x141)]=_0x5bcba9,this[_0x23ad35(0x138)]=new Sequence();};Migration[a1084_0x8807c9(0x128)][a1084_0x8807c9(0x12e)]=function(_0xd95d03,_0x345545,_0x138ec2){const _0x5030a6=a1084_0x8807c9,_0x22e502=this;this[_0x5030a6(0x138)]['enqueue'](function(){const _0x197bbc=_0x5030a6;return _0x22e502[_0x197bbc(0x141)][_0x197bbc(0x12e)](_0xd95d03,_0x345545,_0x138ec2)['then'](function(){const _0xa35a74=_0x197bbc;logger[_0xa35a74(0x125)](_0xa35a74(0x12f),_0x345545,_0xd95d03);})['catch'](function(_0x4fc38){const _0x2c9b6e=_0x197bbc;logger[_0x2c9b6e(0x125)](JSON[_0x2c9b6e(0x12c)](_0x4fc38));});});},Migration[a1084_0x8807c9(0x128)][a1084_0x8807c9(0x13f)]=function(_0x49613a,_0x343100,_0x4ddfab){const _0x593cf8=a1084_0x8807c9,_0x5dc3e7=this;this['sequence'][_0x593cf8(0x137)](function(){const _0x366e2a=_0x593cf8;return _0x5dc3e7['queryInterface'][_0x366e2a(0x13f)](_0x49613a,_0x343100,_0x4ddfab)[_0x366e2a(0x11c)](function(){const _0x4617b8=_0x366e2a;logger[_0x4617b8(0x125)](_0x4617b8(0x120),_0x343100,_0x49613a);})['catch'](function(_0x58b14b){const _0x40afef=_0x366e2a;logger[_0x40afef(0x125)](JSON[_0x40afef(0x12c)](_0x58b14b));});});},Migration[a1084_0x8807c9(0x128)][a1084_0x8807c9(0x139)]=function(_0x29331d){const _0x5b5547=a1084_0x8807c9,_0x2bd08f=this;this[_0x5b5547(0x138)][_0x5b5547(0x137)](function(){const _0x214c1d=_0x5b5547;return _0x2bd08f[_0x214c1d(0x141)][_0x214c1d(0x139)](_0x29331d,{'force':!![]})[_0x214c1d(0x11c)](function(){const _0x5ddc0a=_0x214c1d;logger[_0x5ddc0a(0x125)](_0x5ddc0a(0x11e),_0x29331d);})[_0x214c1d(0x13c)](function(_0x50b2da){const _0x427dbf=_0x214c1d;logger[_0x427dbf(0x125)](JSON[_0x427dbf(0x12c)](_0x50b2da));});});},Migration[a1084_0x8807c9(0x128)][a1084_0x8807c9(0x12b)]=function(_0x1769b7,_0x1b536c,_0x4fcd31){const _0x2648ed=a1084_0x8807c9,_0x5ccc78=this;this[_0x2648ed(0x138)]['enqueue'](function(){const _0x85bad3=_0x2648ed;return _0x5ccc78['queryInterface'][_0x85bad3(0x12b)](_0x1769b7,_0x1b536c,{'indexName':_0x4fcd31})['then'](function(){const _0x2ee623=_0x85bad3;logger['info'](_0x2ee623(0x13d),_0x1769b7,_0x1b536c['join'](','),_0x4fcd31);})[_0x85bad3(0x13c)](function(_0x232e63){const _0x323820=_0x85bad3;logger[_0x323820(0x125)](JSON[_0x323820(0x12c)](_0x232e63));});});},Migration['prototype']['query']=function(_0x5073ac){const _0x29557a=this;this['sequence']['enqueue'](function(){const _0x4683bc=a1084_0x30a2;return _0x29557a[_0x4683bc(0x141)][_0x4683bc(0x142)][_0x4683bc(0x134)](_0x5073ac)[_0x4683bc(0x11c)](function(){const _0x5be336=_0x4683bc;logger[_0x5be336(0x125)](_0x5be336(0x136),_0x5073ac);})[_0x4683bc(0x13c)](function(_0x305049){const _0x21d120=_0x4683bc;logger[_0x21d120(0x125)](JSON['stringify'](_0x305049));});});},Migration[a1084_0x8807c9(0x128)][a1084_0x8807c9(0x13b)]=function(_0x3ea929,_0x1f1980){const _0x5bb929=a1084_0x8807c9,_0x8f209=this;this[_0x5bb929(0x138)][_0x5bb929(0x137)](function(){const _0x5565aa=_0x5bb929;return _0x8f209[_0x5565aa(0x141)][_0x5565aa(0x13b)](_0x3ea929,_0x1f1980)['then'](function(){const _0x242a69=_0x5565aa;logger[_0x242a69(0x125)](_0x242a69(0x124),_0x1f1980,_0x3ea929);})['catch'](function(_0x5a2ff2){logger['info'](util['inspect'](_0x5a2ff2,{'showHidden':![],'depth':null}));});});},Migration[a1084_0x8807c9(0x128)]['final']=function(_0x210bcf){const _0x191637=a1084_0x8807c9;this[_0x191637(0x138)][_0x191637(0x137)](function(){return _0x210bcf();});},module[a1084_0x8807c9(0x140)]={'up':function(_0x162b04,_0x413400){return new Promise(function(_0x1c9093){const _0xbebe14=a1084_0x30a2,_0x429f31=new Migration(_0x162b04);_0x429f31[_0xbebe14(0x13f)](_0xbebe14(0x12d),_0xbebe14(0x13a),{'type':_0x413400[_0xbebe14(0x126)]}),_0x429f31[_0xbebe14(0x13f)]('chat_interactions',_0xbebe14(0x12a),{'type':_0x413400[_0xbebe14(0x135)]('long')}),_0x429f31[_0xbebe14(0x13f)]('chat_messages',_0xbebe14(0x133),{'type':_0x413400['BOOLEAN'],'defaultValue':![]}),_0x429f31[_0xbebe14(0x13f)](_0xbebe14(0x123),_0xbebe14(0x143),{'type':_0x413400[_0xbebe14(0x135)]}),_0x429f31[_0xbebe14(0x13f)](_0xbebe14(0x123),_0xbebe14(0x11f),{'type':_0x413400[_0xbebe14(0x130)],'defaultValue':![]}),_0x429f31[_0xbebe14(0x12e)]('cm_custom_fields',_0xbebe14(0x11d),{'type':_0x413400[_0xbebe14(0x135)](_0xbebe14(0x132))}),_0x429f31[_0xbebe14(0x13e)](_0x1c9093);});},'down':function(){}}; \ No newline at end of file +const a1084_0x5ad3=['long','../config/logger','table\x20dropped\x20%s','catch','STRING','Removed\x20column\x20%s\x20from\x20%s','int_desk_accounts','info','showAgentAvatar','values','addIndex','dropTable','chat_websites','removeColumn','sequelize','secret','query','exports','prototype','query\x20%s','queryInterface','TEXT','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','agentAvatar','formData','join','chat_interactions','sequence','migration','addColumn','enqueue','addIndex\x20%s\x20%s\x20%s','util','then','serverUrl','BOOLEAN','final','chat_messages','changeColumn','tail','Added\x20column\x20%s\x20to\x20%s'];(function(_0x76f008,_0x4477f5){const _0x5ad3ca=function(_0x126260){while(--_0x126260){_0x76f008['push'](_0x76f008['shift']());}};_0x5ad3ca(++_0x4477f5);}(a1084_0x5ad3,0x120));const a1084_0x1262=function(_0x76f008,_0x4477f5){_0x76f008=_0x76f008-0xd6;let _0x5ad3ca=a1084_0x5ad3[_0x76f008];return _0x5ad3ca;};const a1084_0x45f037=a1084_0x1262;'use strict';const logger=require(a1084_0x45f037(0xdd))(a1084_0x45f037(0xf9)),util=require(a1084_0x45f037(0xfd)),Sequence=function(){};Sequence['prototype'][a1084_0x45f037(0xfb)]=function(_0x434fe5){const _0x519f27=a1084_0x45f037;this[_0x519f27(0xda)]=this[_0x519f27(0xda)]?this['tail']['finally'](_0x434fe5):_0x434fe5();};const Migration=function(_0x541171){const _0x23eab4=a1084_0x45f037;this[_0x23eab4(0xf0)]=_0x541171,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x26f038,_0x42b5a5,_0x2b8bc0){const _0x5b5c00=a1084_0x45f037,_0x56fba8=this;this[_0x5b5c00(0xf8)][_0x5b5c00(0xfb)](function(){const _0x3970b4=_0x5b5c00;return _0x56fba8[_0x3970b4(0xf0)][_0x3970b4(0xd9)](_0x26f038,_0x42b5a5,_0x2b8bc0)[_0x3970b4(0xfe)](function(){const _0x557ccb=_0x3970b4;logger[_0x557ccb(0xe3)](_0x557ccb(0xf3),_0x42b5a5,_0x26f038);})[_0x3970b4(0xdf)](function(_0x33a0dc){const _0x5bd032=_0x3970b4;logger[_0x5bd032(0xe3)](JSON['stringify'](_0x33a0dc));});});},Migration[a1084_0x45f037(0xee)][a1084_0x45f037(0xfa)]=function(_0x324878,_0x4ff85d,_0x5bf037){const _0x168836=a1084_0x45f037,_0x14b096=this;this[_0x168836(0xf8)]['enqueue'](function(){const _0x44c95e=_0x168836;return _0x14b096['queryInterface'][_0x44c95e(0xfa)](_0x324878,_0x4ff85d,_0x5bf037)[_0x44c95e(0xfe)](function(){const _0x106161=_0x44c95e;logger['info'](_0x106161(0xdb),_0x4ff85d,_0x324878);})[_0x44c95e(0xdf)](function(_0x4760d8){const _0x46747b=_0x44c95e;logger[_0x46747b(0xe3)](JSON[_0x46747b(0xf2)](_0x4760d8));});});},Migration[a1084_0x45f037(0xee)][a1084_0x45f037(0xe7)]=function(_0x3be70f){const _0x2fcc5a=a1084_0x45f037,_0x1f462b=this;this[_0x2fcc5a(0xf8)][_0x2fcc5a(0xfb)](function(){const _0x169fc7=_0x2fcc5a;return _0x1f462b[_0x169fc7(0xf0)]['dropTable'](_0x3be70f,{'force':!![]})[_0x169fc7(0xfe)](function(){const _0x3112d8=_0x169fc7;logger['info'](_0x3112d8(0xde),_0x3be70f);})['catch'](function(_0x3e58e2){const _0x1f695c=_0x169fc7;logger[_0x1f695c(0xe3)](JSON['stringify'](_0x3e58e2));});});},Migration[a1084_0x45f037(0xee)][a1084_0x45f037(0xe6)]=function(_0x50b142,_0x33250b,_0x2109ee){const _0x3776f0=a1084_0x45f037,_0x3fff53=this;this[_0x3776f0(0xf8)][_0x3776f0(0xfb)](function(){const _0x17e6a1=_0x3776f0;return _0x3fff53[_0x17e6a1(0xf0)][_0x17e6a1(0xe6)](_0x50b142,_0x33250b,{'indexName':_0x2109ee})[_0x17e6a1(0xfe)](function(){const _0x25cfc0=_0x17e6a1;logger[_0x25cfc0(0xe3)](_0x25cfc0(0xfc),_0x50b142,_0x33250b[_0x25cfc0(0xf6)](','),_0x2109ee);})['catch'](function(_0x4a23d1){const _0x3c9f70=_0x17e6a1;logger[_0x3c9f70(0xe3)](JSON[_0x3c9f70(0xf2)](_0x4a23d1));});});},Migration[a1084_0x45f037(0xee)][a1084_0x45f037(0xec)]=function(_0x1809cf){const _0x5b1de3=a1084_0x45f037,_0x1e1650=this;this[_0x5b1de3(0xf8)][_0x5b1de3(0xfb)](function(){const _0x333bb2=_0x5b1de3;return _0x1e1650['queryInterface'][_0x333bb2(0xea)][_0x333bb2(0xec)](_0x1809cf)[_0x333bb2(0xfe)](function(){const _0x388d77=_0x333bb2;logger['info'](_0x388d77(0xef),_0x1809cf);})['catch'](function(_0x38fa58){const _0x3d8f03=_0x333bb2;logger[_0x3d8f03(0xe3)](JSON[_0x3d8f03(0xf2)](_0x38fa58));});});},Migration[a1084_0x45f037(0xee)][a1084_0x45f037(0xe9)]=function(_0x5dbbe8,_0x40228f){const _0x4234ec=a1084_0x45f037,_0x3090fe=this;this[_0x4234ec(0xf8)][_0x4234ec(0xfb)](function(){const _0x452243=_0x4234ec;return _0x3090fe[_0x452243(0xf0)][_0x452243(0xe9)](_0x5dbbe8,_0x40228f)[_0x452243(0xfe)](function(){const _0x173cb5=_0x452243;logger[_0x173cb5(0xe3)](_0x173cb5(0xe1),_0x40228f,_0x5dbbe8);})['catch'](function(_0x33bf45){const _0x2e4de3=_0x452243;logger[_0x2e4de3(0xe3)](util['inspect'](_0x33bf45,{'showHidden':![],'depth':null}));});});},Migration[a1084_0x45f037(0xee)][a1084_0x45f037(0xd7)]=function(_0x165f7b){const _0x284cf7=a1084_0x45f037;this[_0x284cf7(0xf8)]['enqueue'](function(){return _0x165f7b();});},module[a1084_0x45f037(0xed)]={'up':function(_0x551578,_0x50df18){return new Promise(function(_0x4fdbcd){const _0x4714c0=a1084_0x1262,_0x344e7d=new Migration(_0x551578);_0x344e7d[_0x4714c0(0xfa)](_0x4714c0(0xe2),_0x4714c0(0xff),{'type':_0x50df18[_0x4714c0(0xe0)]}),_0x344e7d[_0x4714c0(0xfa)](_0x4714c0(0xf7),_0x4714c0(0xf5),{'type':_0x50df18[_0x4714c0(0xf1)](_0x4714c0(0xdc))}),_0x344e7d[_0x4714c0(0xfa)](_0x4714c0(0xd8),_0x4714c0(0xeb),{'type':_0x50df18[_0x4714c0(0xd6)],'defaultValue':![]}),_0x344e7d[_0x4714c0(0xfa)](_0x4714c0(0xe8),_0x4714c0(0xf4),{'type':_0x50df18['TEXT']}),_0x344e7d[_0x4714c0(0xfa)](_0x4714c0(0xe8),_0x4714c0(0xe4),{'type':_0x50df18[_0x4714c0(0xd6)],'defaultValue':![]}),_0x344e7d['changeColumn']('cm_custom_fields',_0x4714c0(0xe5),{'type':_0x50df18[_0x4714c0(0xf1)](_0x4714c0(0xdc))}),_0x344e7d[_0x4714c0(0xd7)](_0x4fdbcd);});},'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 aafacdd..2710acb 100644 --- a/server/migrations/2.0.42.js +++ b/server/migrations/2.0.42.js @@ -1 +1 @@ -const a1085_0x162a=['catch','TEXT','tail','color','secret','finally','Removed\x20column\x20%s\x20from\x20%s','../config/environment','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','extensionMonitor','api/cmCustomField/cmCustomField.model','import','switch','openchannel_messages','length','root','query\x20%s','number','query','findAll','info','sequelize','cm_contacts','removeColumn','../config/logger','addIndex\x20%s\x20%s\x20%s','exports','BOOLEAN','sequence','then','getCustomFields','path','final','migration','failMessage','stringify','enqueue','STRING','#0091EA','cf_','inspect','users','addIndex','queryInterface','prototype','fax_messages','changeColumn','addColumn','notIn'];(function(_0x44488c,_0x115343){const _0x162a66=function(_0x83d2e1){while(--_0x83d2e1){_0x44488c['push'](_0x44488c['shift']());}};_0x162a66(++_0x115343);}(a1085_0x162a,0x13d));const a1085_0x83d2=function(_0x44488c,_0x115343){_0x44488c=_0x44488c-0x158;let _0x162a66=a1085_0x162a[_0x44488c];return _0x162a66;};const a1085_0x167e3f=a1085_0x83d2;'use strict';const logger=require(a1085_0x167e3f(0x160))(a1085_0x167e3f(0x169)),util=require('util'),path=require(a1085_0x167e3f(0x167)),config=require(a1085_0x167e3f(0x180)),{Op}=require(a1085_0x167e3f(0x15d)),Sequence=function(){};Sequence[a1085_0x167e3f(0x174)][a1085_0x167e3f(0x16c)]=function(_0x1ad035){const _0xbe43d=a1085_0x167e3f;this[_0xbe43d(0x17b)]=this['tail']?this[_0xbe43d(0x17b)][_0xbe43d(0x17e)](_0x1ad035):_0x1ad035();};const Migration=function(_0x33d57f){const _0x3126fb=a1085_0x167e3f;this[_0x3126fb(0x173)]=_0x33d57f,this[_0x3126fb(0x164)]=new Sequence();};Migration[a1085_0x167e3f(0x174)][a1085_0x167e3f(0x176)]=function(_0x278f32,_0x22c6c1,_0x2f5d35){const _0x209169=a1085_0x167e3f,_0x3180a2=this;this['sequence'][_0x209169(0x16c)](function(){const _0x2f4ad5=_0x209169;return _0x3180a2[_0x2f4ad5(0x173)]['changeColumn'](_0x278f32,_0x22c6c1,_0x2f5d35)[_0x2f4ad5(0x165)](function(){const _0x29b65c=_0x2f4ad5;logger[_0x29b65c(0x15c)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x22c6c1,_0x278f32);})[_0x2f4ad5(0x179)](function(_0x5c3143){const _0x456c7d=_0x2f4ad5;logger[_0x456c7d(0x15c)](JSON['stringify'](_0x5c3143));});});},Migration['prototype'][a1085_0x167e3f(0x177)]=function(_0x5d5b2e,_0x50ace5,_0x359995){const _0x2376b7=a1085_0x167e3f,_0x561f9f=this;this['sequence'][_0x2376b7(0x16c)](function(){const _0x2ecf3f=_0x2376b7;return _0x561f9f[_0x2ecf3f(0x173)]['addColumn'](_0x5d5b2e,_0x50ace5,_0x359995)[_0x2ecf3f(0x165)](function(){const _0x162188=_0x2ecf3f;logger[_0x162188(0x15c)](_0x162188(0x182),_0x50ace5,_0x5d5b2e);})[_0x2ecf3f(0x179)](function(_0x5b7636){const _0x15b58a=_0x2ecf3f;logger[_0x15b58a(0x15c)](JSON[_0x15b58a(0x16b)](_0x5b7636));});});},Migration['prototype']['dropTable']=function(_0x157bbb){const _0x282023=a1085_0x167e3f,_0x1d8457=this;this[_0x282023(0x164)]['enqueue'](function(){const _0x5c0fd1=_0x282023;return _0x1d8457['queryInterface']['dropTable'](_0x157bbb,{'force':!![]})[_0x5c0fd1(0x165)](function(){const _0x2add91=_0x5c0fd1;logger[_0x2add91(0x15c)](_0x2add91(0x181),_0x157bbb);})[_0x5c0fd1(0x179)](function(_0x11ee88){const _0x78a249=_0x5c0fd1;logger[_0x78a249(0x15c)](JSON[_0x78a249(0x16b)](_0x11ee88));});});},Migration['prototype']['addIndex']=function(_0x3cd695,_0x1ca1e9,_0x4699ef){const _0x5949bf=a1085_0x167e3f,_0x5a7d7d=this;this[_0x5949bf(0x164)]['enqueue'](function(){const _0x4ea02f=_0x5949bf;return _0x5a7d7d['queryInterface'][_0x4ea02f(0x172)](_0x3cd695,_0x1ca1e9,{'indexName':_0x4699ef})[_0x4ea02f(0x165)](function(){const _0x252628=_0x4ea02f;logger['info'](_0x252628(0x161),_0x3cd695,_0x1ca1e9['join'](','),_0x4699ef);})[_0x4ea02f(0x179)](function(_0x4686ca){const _0x3946d3=_0x4ea02f;logger[_0x3946d3(0x15c)](JSON[_0x3946d3(0x16b)](_0x4686ca));});});},Migration[a1085_0x167e3f(0x174)]['query']=function(_0x461161){const _0x4847c2=a1085_0x167e3f,_0x1b20ee=this;this[_0x4847c2(0x164)][_0x4847c2(0x16c)](function(){const _0x3e1e16=_0x4847c2;return _0x1b20ee[_0x3e1e16(0x173)][_0x3e1e16(0x15d)][_0x3e1e16(0x15a)](_0x461161)[_0x3e1e16(0x165)](function(){const _0x3171cc=_0x3e1e16;logger['info'](_0x3171cc(0x158),_0x461161);})[_0x3e1e16(0x179)](function(_0x501830){const _0x438935=_0x3e1e16;logger[_0x438935(0x15c)](JSON[_0x438935(0x16b)](_0x501830));});});},Migration[a1085_0x167e3f(0x174)][a1085_0x167e3f(0x15f)]=function(_0x35bc67,_0xda587e){const _0x5806db=a1085_0x167e3f,_0x17aeaf=this;this[_0x5806db(0x164)]['enqueue'](function(){const _0x146f9c=_0x5806db;return _0x17aeaf[_0x146f9c(0x173)][_0x146f9c(0x15f)](_0x35bc67,_0xda587e)[_0x146f9c(0x165)](function(){const _0x51907b=_0x146f9c;logger['info'](_0x51907b(0x17f),_0xda587e,_0x35bc67);})['catch'](function(_0x2cef44){const _0x471d0e=_0x146f9c;logger[_0x471d0e(0x15c)](util[_0x471d0e(0x170)](_0x2cef44,{'showHidden':![],'depth':null}));});});},Migration[a1085_0x167e3f(0x174)][a1085_0x167e3f(0x166)]=function(){const _0x4e7381=a1085_0x167e3f,_0x1be2b7=this,_0x11fe7b=_0x1be2b7['queryInterface'][_0x4e7381(0x15d)][_0x4e7381(0x185)](path['join'](config[_0x4e7381(0x189)],_0x4e7381(0x184)));return _0x11fe7b[_0x4e7381(0x15b)]({'where':{'type':{[Op[_0x4e7381(0x178)]]:[_0x4e7381(0x159),_0x4e7381(0x186)]}},'attributes':['id']})['then'](function(_0x241aa4){return _0x241aa4;})[_0x4e7381(0x179)](function(_0x358824){const _0x394a43=_0x4e7381;logger[_0x394a43(0x15c)](JSON['stringify'](_0x358824));});},Migration[a1085_0x167e3f(0x174)]['final']=function(_0x4a7af7){const _0x4763ea=a1085_0x167e3f;this['sequence'][_0x4763ea(0x16c)](function(){return _0x4a7af7();});},module[a1085_0x167e3f(0x162)]={'up':function(_0x24fe52,_0x73fc70){return new Promise(function(_0x6c2c48){const _0x283eb4=a1085_0x83d2,_0x4aa126=new Migration(_0x24fe52);_0x4aa126['addColumn']('tools_tags',_0x283eb4(0x17c),{'type':_0x73fc70[_0x283eb4(0x16d)],'defaultValue':_0x283eb4(0x16e)}),_0x4aa126[_0x283eb4(0x177)](_0x283eb4(0x187),_0x283eb4(0x17d),{'type':_0x73fc70[_0x283eb4(0x163)],'defaultValue':![]}),_0x4aa126[_0x283eb4(0x166)]()[_0x283eb4(0x165)](function(_0xc7bb4b){const _0x4e582e=_0x283eb4;if(_0xc7bb4b)for(let _0x23e336=0x0,_0x5dd35d=_0xc7bb4b[_0x4e582e(0x188)];_0x23e336<_0x5dd35d;_0x23e336++){_0x4aa126[_0x4e582e(0x176)](_0x4e582e(0x15e),_0x4e582e(0x16f)+_0xc7bb4b[_0x23e336]['id'],{'type':_0x73fc70[_0x4e582e(0x17a)]});}}),_0x4aa126[_0x283eb4(0x177)](_0x283eb4(0x175),_0x283eb4(0x16a),{'type':_0x73fc70['TEXT']}),_0x4aa126[_0x283eb4(0x177)](_0x283eb4(0x171),_0x283eb4(0x183),{'type':_0x73fc70[_0x283eb4(0x16d)],'defaultValue':''}),_0x4aa126[_0x283eb4(0x168)](_0x6c2c48);});},'down':function(){}}; \ No newline at end of file +const a1085_0x48e3=['secret','join','dropTable','extensionMonitor','root','final','queryInterface','length','stringify','TEXT','sequelize','query','util','enqueue','color','number','info','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','cm_contacts','#0091EA','catch','Added\x20column\x20%s\x20to\x20%s','inspect','openchannel_messages','addIndex','changeColumn','addIndex\x20%s\x20%s\x20%s','getCustomFields','tools_tags','sequence','api/cmCustomField/cmCustomField.model','Removed\x20column\x20%s\x20from\x20%s','STRING','exports','tail','prototype','table\x20dropped\x20%s','cf_','notIn','addColumn','failMessage','../config/environment','then'];(function(_0x152a7f,_0x414e56){const _0x48e397=function(_0x22bd33){while(--_0x22bd33){_0x152a7f['push'](_0x152a7f['shift']());}};_0x48e397(++_0x414e56);}(a1085_0x48e3,0x103));const a1085_0x22bd=function(_0x152a7f,_0x414e56){_0x152a7f=_0x152a7f-0xbc;let _0x48e397=a1085_0x48e3[_0x152a7f];return _0x48e397;};const a1085_0x9acd0e=a1085_0x22bd;'use strict';const logger=require(a1085_0x9acd0e(0xd3))('migration'),util=require(a1085_0x9acd0e(0xcd)),path=require('path'),config=require(a1085_0x9acd0e(0xbf)),{Op}=require(a1085_0x9acd0e(0xcb)),Sequence=function(){};Sequence[a1085_0x9acd0e(0xe5)][a1085_0x9acd0e(0xce)]=function(_0x19d380){const _0x145f1f=a1085_0x9acd0e;this[_0x145f1f(0xe4)]=this[_0x145f1f(0xe4)]?this[_0x145f1f(0xe4)]['finally'](_0x19d380):_0x19d380();};const Migration=function(_0x3eac4f){const _0x29a725=a1085_0x9acd0e;this[_0x29a725(0xc7)]=_0x3eac4f,this[_0x29a725(0xdf)]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x251bae,_0x18dd37,_0x4693ee){const _0x4ef4a2=a1085_0x9acd0e,_0x33b9b3=this;this[_0x4ef4a2(0xdf)]['enqueue'](function(){const _0x3734c4=_0x4ef4a2;return _0x33b9b3[_0x3734c4(0xc7)][_0x3734c4(0xdb)](_0x251bae,_0x18dd37,_0x4693ee)[_0x3734c4(0xc0)](function(){const _0x159fcd=_0x3734c4;logger[_0x159fcd(0xd1)](_0x159fcd(0xd2),_0x18dd37,_0x251bae);})['catch'](function(_0x416c37){const _0x3aaaf6=_0x3734c4;logger[_0x3aaaf6(0xd1)](JSON['stringify'](_0x416c37));});});},Migration['prototype'][a1085_0x9acd0e(0xbd)]=function(_0x2f36a9,_0x43a60c,_0x5ae023){const _0x5842e8=a1085_0x9acd0e,_0x568f99=this;this[_0x5842e8(0xdf)][_0x5842e8(0xce)](function(){const _0x12cbaa=_0x5842e8;return _0x568f99[_0x12cbaa(0xc7)]['addColumn'](_0x2f36a9,_0x43a60c,_0x5ae023)[_0x12cbaa(0xc0)](function(){const _0x57376d=_0x12cbaa;logger[_0x57376d(0xd1)](_0x57376d(0xd7),_0x43a60c,_0x2f36a9);})[_0x12cbaa(0xd6)](function(_0x3570c2){logger['info'](JSON['stringify'](_0x3570c2));});});},Migration['prototype'][a1085_0x9acd0e(0xc3)]=function(_0x3ff9c0){const _0x1283c5=a1085_0x9acd0e,_0x569d4e=this;this[_0x1283c5(0xdf)]['enqueue'](function(){const _0x7107a5=_0x1283c5;return _0x569d4e['queryInterface'][_0x7107a5(0xc3)](_0x3ff9c0,{'force':!![]})[_0x7107a5(0xc0)](function(){const _0x1d78f3=_0x7107a5;logger[_0x1d78f3(0xd1)](_0x1d78f3(0xe6),_0x3ff9c0);})[_0x7107a5(0xd6)](function(_0x2ca70b){const _0x3a4061=_0x7107a5;logger[_0x3a4061(0xd1)](JSON[_0x3a4061(0xc9)](_0x2ca70b));});});},Migration[a1085_0x9acd0e(0xe5)][a1085_0x9acd0e(0xda)]=function(_0x2b7a53,_0x569421,_0x5b8333){const _0x54a508=a1085_0x9acd0e,_0x59a98c=this;this[_0x54a508(0xdf)][_0x54a508(0xce)](function(){const _0x121b1b=_0x54a508;return _0x59a98c['queryInterface'][_0x121b1b(0xda)](_0x2b7a53,_0x569421,{'indexName':_0x5b8333})['then'](function(){const _0x40ecf5=_0x121b1b;logger['info'](_0x40ecf5(0xdc),_0x2b7a53,_0x569421['join'](','),_0x5b8333);})[_0x121b1b(0xd6)](function(_0x335c8d){logger['info'](JSON['stringify'](_0x335c8d));});});},Migration['prototype'][a1085_0x9acd0e(0xcc)]=function(_0x17e2f8){const _0x123874=a1085_0x9acd0e,_0x4def13=this;this[_0x123874(0xdf)]['enqueue'](function(){const _0x20d3bd=_0x123874;return _0x4def13[_0x20d3bd(0xc7)][_0x20d3bd(0xcb)]['query'](_0x17e2f8)[_0x20d3bd(0xc0)](function(){const _0x15679e=_0x20d3bd;logger[_0x15679e(0xd1)]('query\x20%s',_0x17e2f8);})['catch'](function(_0x48b00a){const _0x236e24=_0x20d3bd;logger[_0x236e24(0xd1)](JSON[_0x236e24(0xc9)](_0x48b00a));});});},Migration[a1085_0x9acd0e(0xe5)]['removeColumn']=function(_0x40a6b5,_0x582e33){const _0x39e531=a1085_0x9acd0e,_0x316160=this;this[_0x39e531(0xdf)]['enqueue'](function(){const _0x44a88b=_0x39e531;return _0x316160[_0x44a88b(0xc7)]['removeColumn'](_0x40a6b5,_0x582e33)['then'](function(){const _0xbbb231=_0x44a88b;logger['info'](_0xbbb231(0xe1),_0x582e33,_0x40a6b5);})[_0x44a88b(0xd6)](function(_0x51e2c6){const _0x4f6583=_0x44a88b;logger[_0x4f6583(0xd1)](util[_0x4f6583(0xd8)](_0x51e2c6,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1085_0x9acd0e(0xdd)]=function(){const _0x3ce278=a1085_0x9acd0e,_0x96fb32=this,_0x252e15=_0x96fb32['queryInterface'][_0x3ce278(0xcb)]['import'](path[_0x3ce278(0xc2)](config[_0x3ce278(0xc5)],_0x3ce278(0xe0)));return _0x252e15['findAll']({'where':{'type':{[Op[_0x3ce278(0xbc)]]:[_0x3ce278(0xd0),'switch']}},'attributes':['id']})[_0x3ce278(0xc0)](function(_0x1a487f){return _0x1a487f;})['catch'](function(_0xbf4a72){const _0x4d67d7=_0x3ce278;logger[_0x4d67d7(0xd1)](JSON['stringify'](_0xbf4a72));});},Migration[a1085_0x9acd0e(0xe5)][a1085_0x9acd0e(0xc6)]=function(_0x6e1ea1){const _0x493d8d=a1085_0x9acd0e;this[_0x493d8d(0xdf)][_0x493d8d(0xce)](function(){return _0x6e1ea1();});},module[a1085_0x9acd0e(0xe3)]={'up':function(_0x2d5a87,_0x4bfa0f){return new Promise(function(_0x27462a){const _0x17ed0a=a1085_0x22bd,_0x1e2aef=new Migration(_0x2d5a87);_0x1e2aef[_0x17ed0a(0xbd)](_0x17ed0a(0xde),_0x17ed0a(0xcf),{'type':_0x4bfa0f[_0x17ed0a(0xe2)],'defaultValue':_0x17ed0a(0xd5)}),_0x1e2aef[_0x17ed0a(0xbd)](_0x17ed0a(0xd9),_0x17ed0a(0xc1),{'type':_0x4bfa0f['BOOLEAN'],'defaultValue':![]}),_0x1e2aef['getCustomFields']()[_0x17ed0a(0xc0)](function(_0x5e1054){const _0x5d178c=_0x17ed0a;if(_0x5e1054)for(let _0xcfb2a1=0x0,_0x431482=_0x5e1054[_0x5d178c(0xc8)];_0xcfb2a1<_0x431482;_0xcfb2a1++){_0x1e2aef[_0x5d178c(0xdb)](_0x5d178c(0xd4),_0x5d178c(0xe7)+_0x5e1054[_0xcfb2a1]['id'],{'type':_0x4bfa0f[_0x5d178c(0xca)]});}}),_0x1e2aef[_0x17ed0a(0xbd)]('fax_messages',_0x17ed0a(0xbe),{'type':_0x4bfa0f[_0x17ed0a(0xca)]}),_0x1e2aef[_0x17ed0a(0xbd)]('users',_0x17ed0a(0xc4),{'type':_0x4bfa0f['STRING'],'defaultValue':''}),_0x1e2aef[_0x17ed0a(0xc6)](_0x27462a);});},'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 025b267..f70e031 100644 --- a/server/migrations/2.0.43.js +++ b/server/migrations/2.0.43.js @@ -1 +1 @@ -const a1086_0x42a9=['queryInterface','join','table\x20dropped\x20%s','util','finally','exports','inspect','prototype','sequence','final','catch','BOOLEAN','changeColumn','Removed\x20column\x20%s\x20from\x20%s','query','../config/logger','addIndex','info','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','Added\x20column\x20%s\x20to\x20%s','removeColumn','sequelize','then','addIndex\x20%s\x20%s\x20%s','addColumn','enqueue','stringify','tail'];(function(_0x1bca21,_0x47c47d){const _0x42a9a4=function(_0x36b149){while(--_0x36b149){_0x1bca21['push'](_0x1bca21['shift']());}};_0x42a9a4(++_0x47c47d);}(a1086_0x42a9,0x1cc));const a1086_0x36b1=function(_0x1bca21,_0x47c47d){_0x1bca21=_0x1bca21-0x1af;let _0x42a9a4=a1086_0x42a9[_0x1bca21];return _0x42a9a4;};const a1086_0x5ef5bc=a1086_0x36b1;'use strict';const logger=require(a1086_0x5ef5bc(0x1c2))('migration'),util=require(a1086_0x5ef5bc(0x1b6)),Sequence=function(){};Sequence[a1086_0x5ef5bc(0x1ba)][a1086_0x5ef5bc(0x1b0)]=function(_0x38094d){const _0x110a8e=a1086_0x5ef5bc;this['tail']=this[_0x110a8e(0x1b2)]?this[_0x110a8e(0x1b2)][_0x110a8e(0x1b7)](_0x38094d):_0x38094d();};const Migration=function(_0x442d3a){const _0x29858e=a1086_0x5ef5bc;this[_0x29858e(0x1b3)]=_0x442d3a,this['sequence']=new Sequence();};Migration[a1086_0x5ef5bc(0x1ba)][a1086_0x5ef5bc(0x1bf)]=function(_0x8b3522,_0x567246,_0x22eee2){const _0x2949aa=a1086_0x5ef5bc,_0x3811b1=this;this[_0x2949aa(0x1bb)]['enqueue'](function(){const _0x5a3479=_0x2949aa;return _0x3811b1[_0x5a3479(0x1b3)][_0x5a3479(0x1bf)](_0x8b3522,_0x567246,_0x22eee2)[_0x5a3479(0x1ca)](function(){const _0x7cdb65=_0x5a3479;logger[_0x7cdb65(0x1c4)](_0x7cdb65(0x1c5),_0x567246,_0x8b3522);})[_0x5a3479(0x1bd)](function(_0x5891d5){const _0x3a7224=_0x5a3479;logger[_0x3a7224(0x1c4)](JSON[_0x3a7224(0x1b1)](_0x5891d5));});});},Migration[a1086_0x5ef5bc(0x1ba)][a1086_0x5ef5bc(0x1af)]=function(_0x263913,_0x1a194a,_0x203266){const _0x4c4efb=this;this['sequence']['enqueue'](function(){const _0x272084=a1086_0x36b1;return _0x4c4efb[_0x272084(0x1b3)]['addColumn'](_0x263913,_0x1a194a,_0x203266)['then'](function(){const _0x542d2c=_0x272084;logger[_0x542d2c(0x1c4)](_0x542d2c(0x1c7),_0x1a194a,_0x263913);})[_0x272084(0x1bd)](function(_0x513bb3){const _0x2646bc=_0x272084;logger['info'](JSON[_0x2646bc(0x1b1)](_0x513bb3));});});},Migration[a1086_0x5ef5bc(0x1ba)][a1086_0x5ef5bc(0x1c6)]=function(_0x3efb46){const _0x47556b=a1086_0x5ef5bc,_0xd42a06=this;this[_0x47556b(0x1bb)][_0x47556b(0x1b0)](function(){const _0x2a040d=_0x47556b;return _0xd42a06[_0x2a040d(0x1b3)]['dropTable'](_0x3efb46,{'force':!![]})[_0x2a040d(0x1ca)](function(){const _0xe46fa6=_0x2a040d;logger['info'](_0xe46fa6(0x1b5),_0x3efb46);})['catch'](function(_0x4e1421){const _0x1f53bb=_0x2a040d;logger[_0x1f53bb(0x1c4)](JSON['stringify'](_0x4e1421));});});},Migration['prototype']['addIndex']=function(_0x116992,_0xcf1eec,_0x20f041){const _0x1391be=a1086_0x5ef5bc,_0x32f2be=this;this[_0x1391be(0x1bb)]['enqueue'](function(){const _0x57698b=_0x1391be;return _0x32f2be[_0x57698b(0x1b3)][_0x57698b(0x1c3)](_0x116992,_0xcf1eec,{'indexName':_0x20f041})['then'](function(){const _0x2bc441=_0x57698b;logger[_0x2bc441(0x1c4)](_0x2bc441(0x1cb),_0x116992,_0xcf1eec[_0x2bc441(0x1b4)](','),_0x20f041);})[_0x57698b(0x1bd)](function(_0x614ae3){const _0x33eabd=_0x57698b;logger['info'](JSON[_0x33eabd(0x1b1)](_0x614ae3));});});},Migration[a1086_0x5ef5bc(0x1ba)][a1086_0x5ef5bc(0x1c1)]=function(_0x3d2416){const _0x2957e1=a1086_0x5ef5bc,_0x3e56dc=this;this[_0x2957e1(0x1bb)]['enqueue'](function(){const _0x1d6fb9=_0x2957e1;return _0x3e56dc[_0x1d6fb9(0x1b3)][_0x1d6fb9(0x1c9)][_0x1d6fb9(0x1c1)](_0x3d2416)['then'](function(){logger['info']('query\x20%s',_0x3d2416);})[_0x1d6fb9(0x1bd)](function(_0x56b90b){const _0x42c8c5=_0x1d6fb9;logger[_0x42c8c5(0x1c4)](JSON[_0x42c8c5(0x1b1)](_0x56b90b));});});},Migration[a1086_0x5ef5bc(0x1ba)]['removeColumn']=function(_0x2f2930,_0x23bd36){const _0x3152f7=a1086_0x5ef5bc,_0x43681b=this;this[_0x3152f7(0x1bb)][_0x3152f7(0x1b0)](function(){const _0x9126fb=_0x3152f7;return _0x43681b[_0x9126fb(0x1b3)][_0x9126fb(0x1c8)](_0x2f2930,_0x23bd36)['then'](function(){const _0x4d2b3a=_0x9126fb;logger['info'](_0x4d2b3a(0x1c0),_0x23bd36,_0x2f2930);})[_0x9126fb(0x1bd)](function(_0xeb4895){const _0x1eb953=_0x9126fb;logger[_0x1eb953(0x1c4)](util[_0x1eb953(0x1b9)](_0xeb4895,{'showHidden':![],'depth':null}));});});},Migration[a1086_0x5ef5bc(0x1ba)]['final']=function(_0x352dcf){const _0x563ed1=a1086_0x5ef5bc;this['sequence'][_0x563ed1(0x1b0)](function(){return _0x352dcf();});},module[a1086_0x5ef5bc(0x1b8)]={'up':function(_0xacfa9a,_0x48bc53){return new Promise(function(_0x4631b9){const _0x1263ea=a1086_0x36b1,_0x4bd21c=new Migration(_0xacfa9a);_0x4bd21c[_0x1263ea(0x1af)]('mail_messages','secret',{'type':_0x48bc53[_0x1263ea(0x1be)],'defaultValue':![]}),_0x4bd21c[_0x1263ea(0x1bc)](_0x4631b9);});},'down':function(){}}; \ No newline at end of file +const a1086_0x314e=['Changed\x20column\x20%s\x20in\x20table\x20%s','catch','exports','info','sequence','prototype','addIndex','addColumn','query','tail','migration','query\x20%s','mail_messages','then','sequelize','addIndex\x20%s\x20%s\x20%s','removeColumn','dropTable','queryInterface','../config/logger','stringify','secret','finally','util','final','changeColumn','join','table\x20dropped\x20%s','BOOLEAN','enqueue','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x4b3109,_0x1911e4){const _0x314e9c=function(_0x2d8793){while(--_0x2d8793){_0x4b3109['push'](_0x4b3109['shift']());}};_0x314e9c(++_0x1911e4);}(a1086_0x314e,0x80));const a1086_0x2d87=function(_0x4b3109,_0x1911e4){_0x4b3109=_0x4b3109-0x192;let _0x314e9c=a1086_0x314e[_0x4b3109];return _0x314e9c;};const a1086_0x430b74=a1086_0x2d87;'use strict';const logger=require(a1086_0x430b74(0x1a5))(a1086_0x430b74(0x19c)),util=require(a1086_0x430b74(0x1a9)),Sequence=function(){};Sequence[a1086_0x430b74(0x197)][a1086_0x430b74(0x1af)]=function(_0xc3a0d2){const _0x32ae6c=a1086_0x430b74;this[_0x32ae6c(0x19b)]=this[_0x32ae6c(0x19b)]?this[_0x32ae6c(0x19b)][_0x32ae6c(0x1a8)](_0xc3a0d2):_0xc3a0d2();};const Migration=function(_0x239049){const _0x21c2f2=a1086_0x430b74;this['queryInterface']=_0x239049,this[_0x21c2f2(0x196)]=new Sequence();};Migration[a1086_0x430b74(0x197)][a1086_0x430b74(0x1ab)]=function(_0x2d3791,_0x523c4c,_0x349e43){const _0x5c1c73=a1086_0x430b74,_0xdfe422=this;this['sequence'][_0x5c1c73(0x1af)](function(){const _0xac4efa=_0x5c1c73;return _0xdfe422[_0xac4efa(0x1a4)][_0xac4efa(0x1ab)](_0x2d3791,_0x523c4c,_0x349e43)[_0xac4efa(0x19f)](function(){const _0x3ee970=_0xac4efa;logger['info'](_0x3ee970(0x192),_0x523c4c,_0x2d3791);})[_0xac4efa(0x193)](function(_0x413feb){const _0xf5b988=_0xac4efa;logger[_0xf5b988(0x195)](JSON[_0xf5b988(0x1a6)](_0x413feb));});});},Migration[a1086_0x430b74(0x197)][a1086_0x430b74(0x199)]=function(_0x293d1d,_0xea8a9f,_0x37b940){const _0x1d5fb6=a1086_0x430b74,_0x3f4542=this;this[_0x1d5fb6(0x196)][_0x1d5fb6(0x1af)](function(){const _0x48beec=_0x1d5fb6;return _0x3f4542[_0x48beec(0x1a4)][_0x48beec(0x199)](_0x293d1d,_0xea8a9f,_0x37b940)[_0x48beec(0x19f)](function(){const _0x513ed0=_0x48beec;logger[_0x513ed0(0x195)](_0x513ed0(0x1b0),_0xea8a9f,_0x293d1d);})[_0x48beec(0x193)](function(_0x2308be){const _0x4e7c91=_0x48beec;logger['info'](JSON[_0x4e7c91(0x1a6)](_0x2308be));});});},Migration['prototype'][a1086_0x430b74(0x1a3)]=function(_0xbf56e2){const _0x1fd793=a1086_0x430b74,_0x209c3f=this;this[_0x1fd793(0x196)][_0x1fd793(0x1af)](function(){const _0x55a8ce=_0x1fd793;return _0x209c3f[_0x55a8ce(0x1a4)][_0x55a8ce(0x1a3)](_0xbf56e2,{'force':!![]})['then'](function(){const _0xfc53c1=_0x55a8ce;logger[_0xfc53c1(0x195)](_0xfc53c1(0x1ad),_0xbf56e2);})['catch'](function(_0x2bb171){const _0x2b4086=_0x55a8ce;logger[_0x2b4086(0x195)](JSON[_0x2b4086(0x1a6)](_0x2bb171));});});},Migration[a1086_0x430b74(0x197)]['addIndex']=function(_0x4caacb,_0x4baea9,_0x2903db){const _0x568710=a1086_0x430b74,_0x4bbac8=this;this[_0x568710(0x196)][_0x568710(0x1af)](function(){const _0x68f862=_0x568710;return _0x4bbac8['queryInterface'][_0x68f862(0x198)](_0x4caacb,_0x4baea9,{'indexName':_0x2903db})['then'](function(){const _0x376dca=_0x68f862;logger[_0x376dca(0x195)](_0x376dca(0x1a1),_0x4caacb,_0x4baea9[_0x376dca(0x1ac)](','),_0x2903db);})[_0x68f862(0x193)](function(_0x27ae0c){const _0x35f741=_0x68f862;logger[_0x35f741(0x195)](JSON[_0x35f741(0x1a6)](_0x27ae0c));});});},Migration[a1086_0x430b74(0x197)][a1086_0x430b74(0x19a)]=function(_0x337a6d){const _0x38b39c=a1086_0x430b74,_0x177cdb=this;this[_0x38b39c(0x196)][_0x38b39c(0x1af)](function(){const _0x73cdf7=_0x38b39c;return _0x177cdb['queryInterface'][_0x73cdf7(0x1a0)][_0x73cdf7(0x19a)](_0x337a6d)[_0x73cdf7(0x19f)](function(){const _0x3b7d25=_0x73cdf7;logger[_0x3b7d25(0x195)](_0x3b7d25(0x19d),_0x337a6d);})['catch'](function(_0x423410){const _0x437a43=_0x73cdf7;logger['info'](JSON[_0x437a43(0x1a6)](_0x423410));});});},Migration[a1086_0x430b74(0x197)][a1086_0x430b74(0x1a2)]=function(_0x17d704,_0x593ff2){const _0x2ddf26=a1086_0x430b74,_0x315bce=this;this[_0x2ddf26(0x196)]['enqueue'](function(){const _0xe95837=_0x2ddf26;return _0x315bce[_0xe95837(0x1a4)][_0xe95837(0x1a2)](_0x17d704,_0x593ff2)[_0xe95837(0x19f)](function(){const _0xc0d355=_0xe95837;logger[_0xc0d355(0x195)](_0xc0d355(0x1b1),_0x593ff2,_0x17d704);})[_0xe95837(0x193)](function(_0x59a0bf){const _0x4a16f3=_0xe95837;logger[_0x4a16f3(0x195)](util['inspect'](_0x59a0bf,{'showHidden':![],'depth':null}));});});},Migration[a1086_0x430b74(0x197)][a1086_0x430b74(0x1aa)]=function(_0x19279c){const _0x355a44=a1086_0x430b74;this['sequence'][_0x355a44(0x1af)](function(){return _0x19279c();});},module[a1086_0x430b74(0x194)]={'up':function(_0x56c205,_0x2b778c){return new Promise(function(_0xe0dcb4){const _0x25615d=a1086_0x2d87,_0x4f5d2b=new Migration(_0x56c205);_0x4f5d2b[_0x25615d(0x199)](_0x25615d(0x19e),_0x25615d(0x1a7),{'type':_0x2b778c[_0x25615d(0x1ae)],'defaultValue':![]}),_0x4f5d2b[_0x25615d(0x1aa)](_0xe0dcb4);});},'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 3b4b045..ec4d917 100644 --- a/server/migrations/2.0.44.js +++ b/server/migrations/2.0.44.js @@ -1 +1 @@ -const a1087_0x1e00=['stringify','openchannel_interactions','ALTER\x20TABLE\x20fax_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20FaxAccountId)','ALTER\x20TABLE\x20sms_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20SmsAccountId)','chat_websites','exports','prototype','fax_messages','chat_messages','addIndex\x20%s\x20%s\x20%s','then','ALTER\x20TABLE\x20openchannel_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20OpenchannelAccountId)','removeColumn','chat_interactions','../config/logger','sms_dispositions','openchannel_dispositions','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','read1stAt','substatusAt','query\x20%s','fax_dispositions','chat_dispositions','name','ALTER\x20TABLE\x20mail_dispositions\x20DROP\x20INDEX\x20name','info','Removed\x20column\x20%s\x20from\x20%s','addIndex','Added\x20column\x20%s\x20to\x20%s','catch','nameAndAccount','substatus','externalUrl','query','ALTER\x20TABLE\x20voice_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ListId)','finally','final','enqueue','readAt','addColumn','STRING','DATE','queryInterface','inspect','mail_interactions','dropTable','sms_messages','fax_interactions','util','sequence','sms_interactions','closingQuestion'];(function(_0x224bab,_0x2e9fd0){const _0x1e004c=function(_0x4b1750){while(--_0x4b1750){_0x224bab['push'](_0x224bab['shift']());}};_0x1e004c(++_0x2e9fd0);}(a1087_0x1e00,0xfb));const a1087_0x4b17=function(_0x224bab,_0x2e9fd0){_0x224bab=_0x224bab-0x14c;let _0x1e004c=a1087_0x1e00[_0x224bab];return _0x1e004c;};const a1087_0x2adc03=a1087_0x4b17;'use strict';const logger=require(a1087_0x2adc03(0x168))('migration'),util=require(a1087_0x2adc03(0x156)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x29f509){const _0x59edbe=a1087_0x2adc03;this['tail']=this['tail']?this['tail'][_0x59edbe(0x17e)](_0x29f509):_0x29f509();};const Migration=function(_0x34c6f8){const _0x3f1ee4=a1087_0x2adc03;this[_0x3f1ee4(0x150)]=_0x34c6f8,this[_0x3f1ee4(0x157)]=new Sequence();};Migration['prototype'][a1087_0x2adc03(0x16c)]=function(_0x49c952,_0x17799c,_0xbd7161){const _0x118883=a1087_0x2adc03,_0x172cb5=this;this[_0x118883(0x157)]['enqueue'](function(){const _0x4a9020=_0x118883;return _0x172cb5[_0x4a9020(0x150)][_0x4a9020(0x16c)](_0x49c952,_0x17799c,_0xbd7161)[_0x4a9020(0x164)](function(){const _0x1051e3=_0x4a9020;logger[_0x1051e3(0x174)](_0x1051e3(0x16b),_0x17799c,_0x49c952);})[_0x4a9020(0x178)](function(_0x300b0){const _0x130f44=_0x4a9020;logger[_0x130f44(0x174)](JSON['stringify'](_0x300b0));});});},Migration[a1087_0x2adc03(0x160)][a1087_0x2adc03(0x14d)]=function(_0x50834b,_0x15dc9f,_0x64aa3d){const _0x12ff31=a1087_0x2adc03,_0x1ad29c=this;this['sequence'][_0x12ff31(0x180)](function(){const _0x4303d0=_0x12ff31;return _0x1ad29c['queryInterface'][_0x4303d0(0x14d)](_0x50834b,_0x15dc9f,_0x64aa3d)[_0x4303d0(0x164)](function(){const _0x5bdb63=_0x4303d0;logger[_0x5bdb63(0x174)](_0x5bdb63(0x177),_0x15dc9f,_0x50834b);})[_0x4303d0(0x178)](function(_0x2f323c){const _0x82798d=_0x4303d0;logger[_0x82798d(0x174)](JSON['stringify'](_0x2f323c));});});},Migration[a1087_0x2adc03(0x160)][a1087_0x2adc03(0x153)]=function(_0x1e51e5){const _0x63076=a1087_0x2adc03,_0x3a6834=this;this[_0x63076(0x157)][_0x63076(0x180)](function(){const _0x152f6d=_0x63076;return _0x3a6834[_0x152f6d(0x150)][_0x152f6d(0x153)](_0x1e51e5,{'force':!![]})['then'](function(){const _0x31ce62=_0x152f6d;logger[_0x31ce62(0x174)]('table\x20dropped\x20%s',_0x1e51e5);})[_0x152f6d(0x178)](function(_0x3fe086){const _0x11440b=_0x152f6d;logger[_0x11440b(0x174)](JSON[_0x11440b(0x15a)](_0x3fe086));});});},Migration[a1087_0x2adc03(0x160)]['addIndex']=function(_0x4dcbf4,_0xb848ab,_0x2d94ab){const _0x2654f9=a1087_0x2adc03,_0x2a36cd=this;this[_0x2654f9(0x157)]['enqueue'](function(){const _0x3f3116=_0x2654f9;return _0x2a36cd[_0x3f3116(0x150)][_0x3f3116(0x176)](_0x4dcbf4,_0xb848ab,{'indexName':_0x2d94ab})[_0x3f3116(0x164)](function(){const _0x35ca93=_0x3f3116;logger[_0x35ca93(0x174)](_0x35ca93(0x163),_0x4dcbf4,_0xb848ab['join'](','),_0x2d94ab);})[_0x3f3116(0x178)](function(_0x46774d){const _0x484da4=_0x3f3116;logger[_0x484da4(0x174)](JSON[_0x484da4(0x15a)](_0x46774d));});});},Migration['prototype'][a1087_0x2adc03(0x17c)]=function(_0x476e78){const _0x3c22b7=a1087_0x2adc03,_0x1c980e=this;this[_0x3c22b7(0x157)][_0x3c22b7(0x180)](function(){const _0x40e031=_0x3c22b7;return _0x1c980e[_0x40e031(0x150)]['sequelize'][_0x40e031(0x17c)](_0x476e78)[_0x40e031(0x164)](function(){const _0x1db19b=_0x40e031;logger[_0x1db19b(0x174)](_0x1db19b(0x16f),_0x476e78);})['catch'](function(_0xe667e0){const _0x1d2bb8=_0x40e031;logger[_0x1d2bb8(0x174)](JSON['stringify'](_0xe667e0));});});},Migration['prototype'][a1087_0x2adc03(0x166)]=function(_0x309c5c,_0xa022e1){const _0x591136=a1087_0x2adc03,_0x8e45f4=this;this[_0x591136(0x157)][_0x591136(0x180)](function(){const _0x1a88fc=_0x591136;return _0x8e45f4[_0x1a88fc(0x150)][_0x1a88fc(0x166)](_0x309c5c,_0xa022e1)[_0x1a88fc(0x164)](function(){const _0x2d2c28=_0x1a88fc;logger['info'](_0x2d2c28(0x175),_0xa022e1,_0x309c5c);})[_0x1a88fc(0x178)](function(_0x439e26){const _0xf50944=_0x1a88fc;logger[_0xf50944(0x174)](util[_0xf50944(0x151)](_0x439e26,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1087_0x2adc03(0x17f)]=function(_0x2d8d1c){const _0x17dcb9=a1087_0x2adc03;this['sequence'][_0x17dcb9(0x180)](function(){return _0x2d8d1c();});},module[a1087_0x2adc03(0x15f)]={'up':function(_0x423380,_0x21b3ca){return new Promise(function(_0x279e55){const _0x5c1a7e=a1087_0x4b17,_0x2e31ad=new Migration(_0x423380);_0x2e31ad[_0x5c1a7e(0x14d)](_0x5c1a7e(0x15e),_0x5c1a7e(0x159),{'type':_0x21b3ca[_0x5c1a7e(0x14e)],'defaultValue':'Do\x20you\x20want\x20to\x20close\x20the\x20interaction?'}),_0x2e31ad[_0x5c1a7e(0x14d)](_0x5c1a7e(0x167),_0x5c1a7e(0x16d),{'type':_0x21b3ca[_0x5c1a7e(0x14f)]}),_0x2e31ad[_0x5c1a7e(0x14d)](_0x5c1a7e(0x162),_0x5c1a7e(0x14c),{'type':_0x21b3ca[_0x5c1a7e(0x14f)]}),_0x2e31ad[_0x5c1a7e(0x14d)](_0x5c1a7e(0x155),_0x5c1a7e(0x16d),{'type':_0x21b3ca[_0x5c1a7e(0x14f)]}),_0x2e31ad[_0x5c1a7e(0x14d)](_0x5c1a7e(0x161),'readAt',{'type':_0x21b3ca['DATE']}),_0x2e31ad[_0x5c1a7e(0x14d)](_0x5c1a7e(0x15b),_0x5c1a7e(0x16d),{'type':_0x21b3ca[_0x5c1a7e(0x14f)]}),_0x2e31ad[_0x5c1a7e(0x14d)](_0x5c1a7e(0x15b),'threadId',{'type':_0x21b3ca['STRING']}),_0x2e31ad[_0x5c1a7e(0x14d)](_0x5c1a7e(0x15b),_0x5c1a7e(0x17b),{'type':_0x21b3ca[_0x5c1a7e(0x14e)]}),_0x2e31ad[_0x5c1a7e(0x14d)]('openchannel_messages','readAt',{'type':_0x21b3ca[_0x5c1a7e(0x14f)]}),_0x2e31ad[_0x5c1a7e(0x14d)](_0x5c1a7e(0x152),_0x5c1a7e(0x16d),{'type':_0x21b3ca[_0x5c1a7e(0x14f)]}),_0x2e31ad[_0x5c1a7e(0x14d)](_0x5c1a7e(0x152),_0x5c1a7e(0x17a),{'type':_0x21b3ca[_0x5c1a7e(0x14e)](0x3c)}),_0x2e31ad['addColumn'](_0x5c1a7e(0x152),_0x5c1a7e(0x16e),{'type':_0x21b3ca['DATE']}),_0x2e31ad[_0x5c1a7e(0x14d)]('mail_messages',_0x5c1a7e(0x14c),{'type':_0x21b3ca['DATE']}),_0x2e31ad[_0x5c1a7e(0x14d)](_0x5c1a7e(0x158),_0x5c1a7e(0x16d),{'type':_0x21b3ca['DATE']}),_0x2e31ad[_0x5c1a7e(0x14d)](_0x5c1a7e(0x154),_0x5c1a7e(0x14c),{'type':_0x21b3ca[_0x5c1a7e(0x14f)]}),_0x2e31ad[_0x5c1a7e(0x16c)](_0x5c1a7e(0x171),_0x5c1a7e(0x172),{'type':_0x21b3ca[_0x5c1a7e(0x14e)],'unique':_0x5c1a7e(0x179),'allowNull':![]}),_0x2e31ad[_0x5c1a7e(0x16c)](_0x5c1a7e(0x170),_0x5c1a7e(0x172),{'type':_0x21b3ca[_0x5c1a7e(0x14e)],'unique':_0x5c1a7e(0x179),'allowNull':![]}),_0x2e31ad[_0x5c1a7e(0x16c)](_0x5c1a7e(0x16a),_0x5c1a7e(0x172),{'type':_0x21b3ca[_0x5c1a7e(0x14e)],'unique':'nameAndAccount','allowNull':![]}),_0x2e31ad[_0x5c1a7e(0x16c)](_0x5c1a7e(0x169),_0x5c1a7e(0x172),{'type':_0x21b3ca[_0x5c1a7e(0x14e)],'unique':'nameAndAccount','allowNull':![]}),_0x2e31ad[_0x5c1a7e(0x16c)]('voice_dispositions',_0x5c1a7e(0x172),{'type':_0x21b3ca['STRING'],'unique':'nameAndAccount','allowNull':![]}),_0x2e31ad[_0x5c1a7e(0x17c)]('ALTER\x20TABLE\x20chat_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ChatAccountId)'),_0x2e31ad[_0x5c1a7e(0x17c)](_0x5c1a7e(0x15c)),_0x2e31ad['query'](_0x5c1a7e(0x165)),_0x2e31ad[_0x5c1a7e(0x17c)](_0x5c1a7e(0x15d)),_0x2e31ad[_0x5c1a7e(0x17c)](_0x5c1a7e(0x17d)),_0x2e31ad['changeColumn']('mail_dispositions',_0x5c1a7e(0x172),{'type':_0x21b3ca['STRING'],'unique':_0x5c1a7e(0x179),'allowNull':![]}),_0x2e31ad[_0x5c1a7e(0x17c)](_0x5c1a7e(0x173)),_0x2e31ad[_0x5c1a7e(0x17c)]('ALTER\x20TABLE\x20mail_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20MailAccountId)'),_0x2e31ad[_0x5c1a7e(0x17f)](_0x279e55);});},'down':function(){}}; \ No newline at end of file +const a1087_0x2862=['query','addIndex\x20%s\x20%s\x20%s','info','ALTER\x20TABLE\x20sms_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20SmsAccountId)','queryInterface','ALTER\x20TABLE\x20chat_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ChatAccountId)','changeColumn','mail_interactions','addIndex','enqueue','read1stAt','substatus','../config/logger','inspect','chat_messages','tail','addColumn','stringify','fax_messages','nameAndAccount','ALTER\x20TABLE\x20openchannel_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20OpenchannelAccountId)','sequence','substatusAt','sms_messages','Removed\x20column\x20%s\x20from\x20%s','sequelize','DATE','sms_interactions','fax_dispositions','mail_dispositions','threadId','voice_dispositions','ALTER\x20TABLE\x20voice_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ListId)','chat_interactions','openchannel_interactions','final','removeColumn','catch','dropTable','ALTER\x20TABLE\x20mail_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20MailAccountId)','query\x20%s','then','prototype','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','sms_dispositions','readAt','migration','exports','fax_interactions','openchannel_dispositions','STRING','name'];(function(_0x15f540,_0x3130fd){const _0x2862f8=function(_0x37fa7f){while(--_0x37fa7f){_0x15f540['push'](_0x15f540['shift']());}};_0x2862f8(++_0x3130fd);}(a1087_0x2862,0x194));const a1087_0x37fa=function(_0x15f540,_0x3130fd){_0x15f540=_0x15f540-0x1c5;let _0x2862f8=a1087_0x2862[_0x15f540];return _0x2862f8;};const a1087_0x4ba5ad=a1087_0x37fa;'use strict';const logger=require(a1087_0x4ba5ad(0x1dd))(a1087_0x4ba5ad(0x1cb)),util=require('util'),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0xb1bd8c){const _0x40aa4a=a1087_0x4ba5ad;this[_0x40aa4a(0x1e0)]=this['tail']?this['tail']['finally'](_0xb1bd8c):_0xb1bd8c();};const Migration=function(_0xb04c1c){const _0x210173=a1087_0x4ba5ad;this[_0x210173(0x1d5)]=_0xb04c1c,this[_0x210173(0x1e6)]=new Sequence();};Migration[a1087_0x4ba5ad(0x1c7)][a1087_0x4ba5ad(0x1d7)]=function(_0x4d127c,_0x44fce8,_0x1b85fc){const _0x309081=a1087_0x4ba5ad,_0x512751=this;this['sequence'][_0x309081(0x1da)](function(){const _0x49364b=_0x309081;return _0x512751['queryInterface'][_0x49364b(0x1d7)](_0x4d127c,_0x44fce8,_0x1b85fc)[_0x49364b(0x1c6)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x44fce8,_0x4d127c);})[_0x49364b(0x1f6)](function(_0x45e948){const _0x2632d6=_0x49364b;logger[_0x2632d6(0x1d3)](JSON['stringify'](_0x45e948));});});},Migration[a1087_0x4ba5ad(0x1c7)]['addColumn']=function(_0x40cf7e,_0x5b8b84,_0x340dd3){const _0x55b6c8=a1087_0x4ba5ad,_0x241d87=this;this[_0x55b6c8(0x1e6)][_0x55b6c8(0x1da)](function(){const _0x58b82d=_0x55b6c8;return _0x241d87['queryInterface']['addColumn'](_0x40cf7e,_0x5b8b84,_0x340dd3)[_0x58b82d(0x1c6)](function(){const _0x1931a6=_0x58b82d;logger[_0x1931a6(0x1d3)]('Added\x20column\x20%s\x20to\x20%s',_0x5b8b84,_0x40cf7e);})[_0x58b82d(0x1f6)](function(_0x6ff568){const _0x384e67=_0x58b82d;logger[_0x384e67(0x1d3)](JSON[_0x384e67(0x1e2)](_0x6ff568));});});},Migration['prototype']['dropTable']=function(_0x4f6902){const _0x13225c=a1087_0x4ba5ad,_0x10545d=this;this['sequence'][_0x13225c(0x1da)](function(){const _0x577939=_0x13225c;return _0x10545d[_0x577939(0x1d5)][_0x577939(0x1f7)](_0x4f6902,{'force':!![]})[_0x577939(0x1c6)](function(){const _0x261fb3=_0x577939;logger[_0x261fb3(0x1d3)]('table\x20dropped\x20%s',_0x4f6902);})['catch'](function(_0x2fcf3b){const _0x34dc28=_0x577939;logger[_0x34dc28(0x1d3)](JSON['stringify'](_0x2fcf3b));});});},Migration[a1087_0x4ba5ad(0x1c7)]['addIndex']=function(_0x5a79f3,_0x5cbf8b,_0x24aafc){const _0x108bf2=a1087_0x4ba5ad,_0x42ea52=this;this[_0x108bf2(0x1e6)][_0x108bf2(0x1da)](function(){const _0x5784ef=_0x108bf2;return _0x42ea52['queryInterface'][_0x5784ef(0x1d9)](_0x5a79f3,_0x5cbf8b,{'indexName':_0x24aafc})[_0x5784ef(0x1c6)](function(){const _0x1993a2=_0x5784ef;logger['info'](_0x1993a2(0x1d2),_0x5a79f3,_0x5cbf8b['join'](','),_0x24aafc);})[_0x5784ef(0x1f6)](function(_0x5291dc){const _0x1eb53b=_0x5784ef;logger[_0x1eb53b(0x1d3)](JSON['stringify'](_0x5291dc));});});},Migration[a1087_0x4ba5ad(0x1c7)]['query']=function(_0x376e89){const _0x4b6871=a1087_0x4ba5ad,_0x213188=this;this['sequence'][_0x4b6871(0x1da)](function(){const _0x4bf4e6=_0x4b6871;return _0x213188['queryInterface'][_0x4bf4e6(0x1ea)][_0x4bf4e6(0x1d1)](_0x376e89)['then'](function(){const _0x11035d=_0x4bf4e6;logger[_0x11035d(0x1d3)](_0x11035d(0x1c5),_0x376e89);})[_0x4bf4e6(0x1f6)](function(_0x42f3fd){const _0x2ad43d=_0x4bf4e6;logger[_0x2ad43d(0x1d3)](JSON[_0x2ad43d(0x1e2)](_0x42f3fd));});});},Migration[a1087_0x4ba5ad(0x1c7)][a1087_0x4ba5ad(0x1f5)]=function(_0x39c8d8,_0x37dd03){const _0x1892e5=a1087_0x4ba5ad,_0x32996f=this;this[_0x1892e5(0x1e6)]['enqueue'](function(){const _0x55ced8=_0x1892e5;return _0x32996f['queryInterface'][_0x55ced8(0x1f5)](_0x39c8d8,_0x37dd03)['then'](function(){const _0xd3adcb=_0x55ced8;logger['info'](_0xd3adcb(0x1e9),_0x37dd03,_0x39c8d8);})[_0x55ced8(0x1f6)](function(_0x3b8285){const _0x79d221=_0x55ced8;logger[_0x79d221(0x1d3)](util[_0x79d221(0x1de)](_0x3b8285,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1087_0x4ba5ad(0x1f4)]=function(_0x1e95cc){const _0x369093=a1087_0x4ba5ad;this['sequence'][_0x369093(0x1da)](function(){return _0x1e95cc();});},module[a1087_0x4ba5ad(0x1cc)]={'up':function(_0x57853f,_0x563bfe){return new Promise(function(_0x3d7690){const _0x83ea79=a1087_0x37fa,_0x70f6d=new Migration(_0x57853f);_0x70f6d[_0x83ea79(0x1e1)]('chat_websites','closingQuestion',{'type':_0x563bfe[_0x83ea79(0x1cf)],'defaultValue':_0x83ea79(0x1c8)}),_0x70f6d['addColumn'](_0x83ea79(0x1f2),_0x83ea79(0x1db),{'type':_0x563bfe[_0x83ea79(0x1eb)]}),_0x70f6d[_0x83ea79(0x1e1)](_0x83ea79(0x1df),_0x83ea79(0x1ca),{'type':_0x563bfe[_0x83ea79(0x1eb)]}),_0x70f6d[_0x83ea79(0x1e1)](_0x83ea79(0x1cd),_0x83ea79(0x1db),{'type':_0x563bfe[_0x83ea79(0x1eb)]}),_0x70f6d[_0x83ea79(0x1e1)](_0x83ea79(0x1e3),'readAt',{'type':_0x563bfe[_0x83ea79(0x1eb)]}),_0x70f6d[_0x83ea79(0x1e1)](_0x83ea79(0x1f3),_0x83ea79(0x1db),{'type':_0x563bfe[_0x83ea79(0x1eb)]}),_0x70f6d[_0x83ea79(0x1e1)](_0x83ea79(0x1f3),_0x83ea79(0x1ef),{'type':_0x563bfe[_0x83ea79(0x1cf)]}),_0x70f6d['addColumn'](_0x83ea79(0x1f3),'externalUrl',{'type':_0x563bfe[_0x83ea79(0x1cf)]}),_0x70f6d[_0x83ea79(0x1e1)]('openchannel_messages','readAt',{'type':_0x563bfe[_0x83ea79(0x1eb)]}),_0x70f6d[_0x83ea79(0x1e1)](_0x83ea79(0x1d8),_0x83ea79(0x1db),{'type':_0x563bfe['DATE']}),_0x70f6d[_0x83ea79(0x1e1)](_0x83ea79(0x1d8),_0x83ea79(0x1dc),{'type':_0x563bfe[_0x83ea79(0x1cf)](0x3c)}),_0x70f6d[_0x83ea79(0x1e1)](_0x83ea79(0x1d8),_0x83ea79(0x1e7),{'type':_0x563bfe[_0x83ea79(0x1eb)]}),_0x70f6d[_0x83ea79(0x1e1)]('mail_messages',_0x83ea79(0x1ca),{'type':_0x563bfe[_0x83ea79(0x1eb)]}),_0x70f6d[_0x83ea79(0x1e1)](_0x83ea79(0x1ec),'read1stAt',{'type':_0x563bfe[_0x83ea79(0x1eb)]}),_0x70f6d[_0x83ea79(0x1e1)](_0x83ea79(0x1e8),'readAt',{'type':_0x563bfe[_0x83ea79(0x1eb)]}),_0x70f6d[_0x83ea79(0x1d7)]('chat_dispositions','name',{'type':_0x563bfe['STRING'],'unique':_0x83ea79(0x1e4),'allowNull':![]}),_0x70f6d['changeColumn'](_0x83ea79(0x1ed),'name',{'type':_0x563bfe[_0x83ea79(0x1cf)],'unique':_0x83ea79(0x1e4),'allowNull':![]}),_0x70f6d[_0x83ea79(0x1d7)](_0x83ea79(0x1ce),_0x83ea79(0x1d0),{'type':_0x563bfe[_0x83ea79(0x1cf)],'unique':'nameAndAccount','allowNull':![]}),_0x70f6d[_0x83ea79(0x1d7)](_0x83ea79(0x1c9),_0x83ea79(0x1d0),{'type':_0x563bfe[_0x83ea79(0x1cf)],'unique':_0x83ea79(0x1e4),'allowNull':![]}),_0x70f6d[_0x83ea79(0x1d7)](_0x83ea79(0x1f0),'name',{'type':_0x563bfe[_0x83ea79(0x1cf)],'unique':_0x83ea79(0x1e4),'allowNull':![]}),_0x70f6d[_0x83ea79(0x1d1)](_0x83ea79(0x1d6)),_0x70f6d[_0x83ea79(0x1d1)]('ALTER\x20TABLE\x20fax_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20FaxAccountId)'),_0x70f6d[_0x83ea79(0x1d1)](_0x83ea79(0x1e5)),_0x70f6d[_0x83ea79(0x1d1)](_0x83ea79(0x1d4)),_0x70f6d[_0x83ea79(0x1d1)](_0x83ea79(0x1f1)),_0x70f6d[_0x83ea79(0x1d7)](_0x83ea79(0x1ee),'name',{'type':_0x563bfe[_0x83ea79(0x1cf)],'unique':_0x83ea79(0x1e4),'allowNull':![]}),_0x70f6d[_0x83ea79(0x1d1)]('ALTER\x20TABLE\x20mail_dispositions\x20DROP\x20INDEX\x20name'),_0x70f6d[_0x83ea79(0x1d1)](_0x83ea79(0x1f8)),_0x70f6d[_0x83ea79(0x1f4)](_0x3d7690);});},'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 12143c4..cba07c3 100644 --- a/server/migrations/2.0.45.js +++ b/server/migrations/2.0.45.js @@ -1 +1 @@ -'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file +var a1088_0x1d24=['exports'];(function(_0x32ec8f,_0x5e3c97){var _0x1d24d3=function(_0x57ded4){while(--_0x57ded4){_0x32ec8f['push'](_0x32ec8f['shift']());}};_0x1d24d3(++_0x5e3c97);}(a1088_0x1d24,0x15a));var a1088_0x57de=function(_0x32ec8f,_0x5e3c97){_0x32ec8f=_0x32ec8f-0x1e3;var _0x1d24d3=a1088_0x1d24[_0x32ec8f];return _0x1d24d3;};var a1088_0x40a5a3=a1088_0x57de;'use strict';module[a1088_0x40a5a3(0x1e3)]={'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 78dc13a..1a4ecd3 100644 --- a/server/migrations/2.0.46.js +++ b/server/migrations/2.0.46.js @@ -1 +1 @@ -const a1089_0x3b04=['enqueue','removeColumn','info','sequelize','finally','tail','sequence','migration','exports','placeholderMessage','final','changeColumn','Type\x20a\x20message','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)','addColumn','catch','fax','stringify','addIndex','queryInterface','STRING','prototype','join','query','dropTable','then','showWebBar','addIndex\x20%s\x20%s\x20%s','noteTitle','users','Note','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','INTEGER','crudPermissions','chat_websites'];(function(_0x5b9026,_0x26704d){const _0x3b047e=function(_0x552e0b){while(--_0x552e0b){_0x5b9026['push'](_0x5b9026['shift']());}};_0x3b047e(++_0x26704d);}(a1089_0x3b04,0x77));const a1089_0x552e=function(_0x5b9026,_0x26704d){_0x5b9026=_0x5b9026-0xed;let _0x3b047e=a1089_0x3b04[_0x5b9026];return _0x3b047e;};const a1089_0x762ccc=a1089_0x552e;'use strict';const logger=require('../config/logger')(a1089_0x762ccc(0x10d)),util=require('util'),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x14a939){const _0x3474e2=a1089_0x762ccc;this[_0x3474e2(0x10b)]=this['tail']?this[_0x3474e2(0x10b)][_0x3474e2(0x10a)](_0x14a939):_0x14a939();};const Migration=function(_0x406124){const _0x56f6de=a1089_0x762ccc;this['queryInterface']=_0x406124,this[_0x56f6de(0x10c)]=new Sequence();};Migration['prototype'][a1089_0x762ccc(0xed)]=function(_0x989bc5,_0x2b47b4,_0x7ef235){const _0x1ae21e=a1089_0x762ccc,_0x4bf4ae=this;this[_0x1ae21e(0x10c)][_0x1ae21e(0x106)](function(){const _0x3e122b=_0x1ae21e;return _0x4bf4ae[_0x3e122b(0xf5)][_0x3e122b(0xed)](_0x989bc5,_0x2b47b4,_0x7ef235)[_0x3e122b(0xfb)](function(){const _0x4b5b36=_0x3e122b;logger[_0x4b5b36(0x108)](_0x4b5b36(0x101),_0x2b47b4,_0x989bc5);})[_0x3e122b(0xf1)](function(_0x394a38){logger['info'](JSON['stringify'](_0x394a38));});});},Migration[a1089_0x762ccc(0xf7)][a1089_0x762ccc(0xf0)]=function(_0x485a4b,_0x4448a3,_0x5e7705){const _0x3f3b20=a1089_0x762ccc,_0x2e4e51=this;this[_0x3f3b20(0x10c)][_0x3f3b20(0x106)](function(){const _0x2828f6=_0x3f3b20;return _0x2e4e51[_0x2828f6(0xf5)][_0x2828f6(0xf0)](_0x485a4b,_0x4448a3,_0x5e7705)['then'](function(){const _0x500e0c=_0x2828f6;logger[_0x500e0c(0x108)]('Added\x20column\x20%s\x20to\x20%s',_0x4448a3,_0x485a4b);})[_0x2828f6(0xf1)](function(_0x4e78a2){const _0xe44f11=_0x2828f6;logger[_0xe44f11(0x108)](JSON['stringify'](_0x4e78a2));});});},Migration['prototype'][a1089_0x762ccc(0xfa)]=function(_0x2884d2){const _0x397752=a1089_0x762ccc,_0x4a3404=this;this[_0x397752(0x10c)][_0x397752(0x106)](function(){const _0x3934b1=_0x397752;return _0x4a3404[_0x3934b1(0xf5)][_0x3934b1(0xfa)](_0x2884d2,{'force':!![]})[_0x3934b1(0xfb)](function(){const _0x2be0f7=_0x3934b1;logger[_0x2be0f7(0x108)](_0x2be0f7(0x102),_0x2884d2);})[_0x3934b1(0xf1)](function(_0x38bdc7){const _0x209031=_0x3934b1;logger['info'](JSON[_0x209031(0xf3)](_0x38bdc7));});});},Migration[a1089_0x762ccc(0xf7)]['addIndex']=function(_0x440daa,_0x261b78,_0x2ef081){const _0x4e7898=a1089_0x762ccc,_0x4d82d4=this;this[_0x4e7898(0x10c)][_0x4e7898(0x106)](function(){const _0x44b352=_0x4e7898;return _0x4d82d4['queryInterface'][_0x44b352(0xf4)](_0x440daa,_0x261b78,{'indexName':_0x2ef081})[_0x44b352(0xfb)](function(){const _0xd8a8c1=_0x44b352;logger[_0xd8a8c1(0x108)](_0xd8a8c1(0xfd),_0x440daa,_0x261b78[_0xd8a8c1(0xf8)](','),_0x2ef081);})['catch'](function(_0x244de1){logger['info'](JSON['stringify'](_0x244de1));});});},Migration[a1089_0x762ccc(0xf7)][a1089_0x762ccc(0xf9)]=function(_0x54eb33){const _0x20a570=a1089_0x762ccc,_0x74e538=this;this[_0x20a570(0x10c)][_0x20a570(0x106)](function(){const _0x39fc7d=_0x20a570;return _0x74e538[_0x39fc7d(0xf5)][_0x39fc7d(0x109)][_0x39fc7d(0xf9)](_0x54eb33)[_0x39fc7d(0xfb)](function(){const _0x1b1736=_0x39fc7d;logger[_0x1b1736(0x108)]('query\x20%s',_0x54eb33);})[_0x39fc7d(0xf1)](function(_0x354107){const _0x3f86f6=_0x39fc7d;logger['info'](JSON[_0x3f86f6(0xf3)](_0x354107));});});},Migration[a1089_0x762ccc(0xf7)][a1089_0x762ccc(0x107)]=function(_0x2b23c2,_0x480754){const _0x197dcb=this;this['sequence']['enqueue'](function(){const _0x2925bd=a1089_0x552e;return _0x197dcb[_0x2925bd(0xf5)][_0x2925bd(0x107)](_0x2b23c2,_0x480754)[_0x2925bd(0xfb)](function(){const _0x3358df=_0x2925bd;logger[_0x3358df(0x108)]('Removed\x20column\x20%s\x20from\x20%s',_0x480754,_0x2b23c2);})[_0x2925bd(0xf1)](function(_0x335709){const _0x327810=_0x2925bd;logger[_0x327810(0x108)](util['inspect'](_0x335709,{'showHidden':![],'depth':null}));});});},Migration[a1089_0x762ccc(0xf7)][a1089_0x762ccc(0x110)]=function(_0x30a7a2){const _0x141d88=a1089_0x762ccc;this[_0x141d88(0x10c)]['enqueue'](function(){return _0x30a7a2();});},module[a1089_0x762ccc(0x10e)]={'up':function(_0xc1773b,_0x5eaa0a){return new Promise(function(_0x316a10){const _0x147785=a1089_0x552e,_0x12d2d9=new Migration(_0xc1773b);_0x12d2d9[_0x147785(0xed)](_0x147785(0xff),_0x147785(0xfc),{'type':_0x5eaa0a[_0x147785(0x103)],'defaultValue':0x0}),_0x12d2d9['query'](_0x147785(0xef)),_0x12d2d9[_0x147785(0xf0)](_0x147785(0xff),_0x147785(0x104),{'type':_0x5eaa0a[_0x147785(0x103)],'defaultValue':0x0}),_0x12d2d9[_0x147785(0xf0)]('chat_websites',_0x147785(0xfe),{'type':_0x5eaa0a[_0x147785(0xf6)],'defaultValue':_0x147785(0x100)}),_0x12d2d9['addColumn'](_0x147785(0x105),_0x147785(0x10f),{'type':_0x5eaa0a[_0x147785(0xf6)],'defaultValue':_0x147785(0xee)}),_0x12d2d9[_0x147785(0xf0)]('fax_interactions',_0x147785(0xf2),{'type':_0x5eaa0a[_0x147785(0xf6)]}),_0x12d2d9[_0x147785(0xf9)]('UPDATE\x20fax_interactions\x20as\x20t1\x20JOIN\x20cm_contacts\x20AS\x20t2\x20ON\x20t1.ContactId\x20=\x20t2.id\x20SET\x20t1.fax\x20=\x20t2.fax'),_0x12d2d9[_0x147785(0x110)](_0x316a10);});},'down':function(){}}; \ No newline at end of file +const a1089_0x8c46=['addIndex','sequence','addColumn','query','STRING','crudPermissions','join','Note','INTEGER','prototype','addIndex\x20%s\x20%s\x20%s','placeholderMessage','then','Changed\x20column\x20%s\x20in\x20table\x20%s','info','../config/logger','sequelize','enqueue','chat_websites','Type\x20a\x20message','final','fax','removeColumn','tail','stringify','fax_interactions','showWebBar','migration','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)','noteTitle','queryInterface','exports','changeColumn','catch','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','users','query\x20%s'];(function(_0xd17372,_0x2c469a){const _0x8c46fc=function(_0x2a13f8){while(--_0x2a13f8){_0xd17372['push'](_0xd17372['shift']());}};_0x8c46fc(++_0x2c469a);}(a1089_0x8c46,0x90));const a1089_0x2a13=function(_0xd17372,_0x2c469a){_0xd17372=_0xd17372-0x11c;let _0x8c46fc=a1089_0x8c46[_0xd17372];return _0x8c46fc;};const a1089_0x3feacc=a1089_0x2a13;'use strict';const logger=require(a1089_0x3feacc(0x133))(a1089_0x3feacc(0x13f)),util=require('util'),Sequence=function(){};Sequence[a1089_0x3feacc(0x12d)]['enqueue']=function(_0x379f58){const _0x28a0e7=a1089_0x3feacc;this[_0x28a0e7(0x13b)]=this[_0x28a0e7(0x13b)]?this[_0x28a0e7(0x13b)]['finally'](_0x379f58):_0x379f58();};const Migration=function(_0x34b4df){const _0x368948=a1089_0x3feacc;this['queryInterface']=_0x34b4df,this[_0x368948(0x125)]=new Sequence();};Migration[a1089_0x3feacc(0x12d)][a1089_0x3feacc(0x11e)]=function(_0x1f228b,_0x185ff7,_0x571304){const _0x2c1377=a1089_0x3feacc,_0x478b20=this;this[_0x2c1377(0x125)][_0x2c1377(0x135)](function(){const _0x157313=_0x2c1377;return _0x478b20['queryInterface'][_0x157313(0x11e)](_0x1f228b,_0x185ff7,_0x571304)[_0x157313(0x130)](function(){const _0xe3295f=_0x157313;logger[_0xe3295f(0x132)](_0xe3295f(0x131),_0x185ff7,_0x1f228b);})['catch'](function(_0x387242){const _0x159eb3=_0x157313;logger[_0x159eb3(0x132)](JSON[_0x159eb3(0x13c)](_0x387242));});});},Migration[a1089_0x3feacc(0x12d)][a1089_0x3feacc(0x126)]=function(_0x2c2c0a,_0x37a215,_0x1720b9){const _0x522297=a1089_0x3feacc,_0x34cbe4=this;this[_0x522297(0x125)][_0x522297(0x135)](function(){const _0x5c86bf=_0x522297;return _0x34cbe4[_0x5c86bf(0x11c)][_0x5c86bf(0x126)](_0x2c2c0a,_0x37a215,_0x1720b9)[_0x5c86bf(0x130)](function(){const _0xbff5ce=_0x5c86bf;logger[_0xbff5ce(0x132)](_0xbff5ce(0x121),_0x37a215,_0x2c2c0a);})[_0x5c86bf(0x11f)](function(_0x10e6db){const _0xac0880=_0x5c86bf;logger[_0xac0880(0x132)](JSON[_0xac0880(0x13c)](_0x10e6db));});});},Migration[a1089_0x3feacc(0x12d)]['dropTable']=function(_0x3dd7fe){const _0x3748e3=a1089_0x3feacc,_0x2a55fa=this;this[_0x3748e3(0x125)][_0x3748e3(0x135)](function(){const _0x557406=_0x3748e3;return _0x2a55fa[_0x557406(0x11c)]['dropTable'](_0x3dd7fe,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x3dd7fe);})['catch'](function(_0x3d58e3){const _0x91f81a=_0x557406;logger[_0x91f81a(0x132)](JSON[_0x91f81a(0x13c)](_0x3d58e3));});});},Migration[a1089_0x3feacc(0x12d)][a1089_0x3feacc(0x124)]=function(_0xac85ed,_0x4891d8,_0x1c73a2){const _0x4a1fd5=a1089_0x3feacc,_0x3782f4=this;this[_0x4a1fd5(0x125)][_0x4a1fd5(0x135)](function(){const _0x1264cd=_0x4a1fd5;return _0x3782f4[_0x1264cd(0x11c)][_0x1264cd(0x124)](_0xac85ed,_0x4891d8,{'indexName':_0x1c73a2})['then'](function(){const _0x4ae018=_0x1264cd;logger['info'](_0x4ae018(0x12e),_0xac85ed,_0x4891d8[_0x4ae018(0x12a)](','),_0x1c73a2);})[_0x1264cd(0x11f)](function(_0x53f4f1){const _0x12f331=_0x1264cd;logger[_0x12f331(0x132)](JSON[_0x12f331(0x13c)](_0x53f4f1));});});},Migration['prototype'][a1089_0x3feacc(0x127)]=function(_0xfef343){const _0x4a0bec=a1089_0x3feacc,_0x528f96=this;this['sequence'][_0x4a0bec(0x135)](function(){const _0x550262=_0x4a0bec;return _0x528f96[_0x550262(0x11c)][_0x550262(0x134)]['query'](_0xfef343)[_0x550262(0x130)](function(){const _0x8d0c6f=_0x550262;logger[_0x8d0c6f(0x132)](_0x8d0c6f(0x123),_0xfef343);})[_0x550262(0x11f)](function(_0x24ab70){const _0x56b3aa=_0x550262;logger[_0x56b3aa(0x132)](JSON[_0x56b3aa(0x13c)](_0x24ab70));});});},Migration[a1089_0x3feacc(0x12d)][a1089_0x3feacc(0x13a)]=function(_0x766b33,_0x81d3d7){const _0x51aeb7=a1089_0x3feacc,_0x357b3=this;this[_0x51aeb7(0x125)][_0x51aeb7(0x135)](function(){const _0xca7d4d=_0x51aeb7;return _0x357b3[_0xca7d4d(0x11c)][_0xca7d4d(0x13a)](_0x766b33,_0x81d3d7)[_0xca7d4d(0x130)](function(){const _0x142bcb=_0xca7d4d;logger[_0x142bcb(0x132)](_0x142bcb(0x120),_0x81d3d7,_0x766b33);})[_0xca7d4d(0x11f)](function(_0x3df7c3){const _0x407beb=_0xca7d4d;logger[_0x407beb(0x132)](util['inspect'](_0x3df7c3,{'showHidden':![],'depth':null}));});});},Migration[a1089_0x3feacc(0x12d)][a1089_0x3feacc(0x138)]=function(_0x141a90){const _0x89ae4=a1089_0x3feacc;this[_0x89ae4(0x125)]['enqueue'](function(){return _0x141a90();});},module[a1089_0x3feacc(0x11d)]={'up':function(_0x48100f,_0x576c26){return new Promise(function(_0x420215){const _0x4c0fd4=a1089_0x2a13,_0x234f6e=new Migration(_0x48100f);_0x234f6e[_0x4c0fd4(0x11e)](_0x4c0fd4(0x122),_0x4c0fd4(0x13e),{'type':_0x576c26[_0x4c0fd4(0x12c)],'defaultValue':0x0}),_0x234f6e[_0x4c0fd4(0x127)](_0x4c0fd4(0x140)),_0x234f6e[_0x4c0fd4(0x126)](_0x4c0fd4(0x122),_0x4c0fd4(0x129),{'type':_0x576c26[_0x4c0fd4(0x12c)],'defaultValue':0x0}),_0x234f6e['addColumn'](_0x4c0fd4(0x136),_0x4c0fd4(0x141),{'type':_0x576c26['STRING'],'defaultValue':_0x4c0fd4(0x12b)}),_0x234f6e[_0x4c0fd4(0x126)](_0x4c0fd4(0x136),_0x4c0fd4(0x12f),{'type':_0x576c26[_0x4c0fd4(0x128)],'defaultValue':_0x4c0fd4(0x137)}),_0x234f6e['addColumn'](_0x4c0fd4(0x13d),_0x4c0fd4(0x139),{'type':_0x576c26[_0x4c0fd4(0x128)]}),_0x234f6e[_0x4c0fd4(0x127)]('UPDATE\x20fax_interactions\x20as\x20t1\x20JOIN\x20cm_contacts\x20AS\x20t2\x20ON\x20t1.ContactId\x20=\x20t2.id\x20SET\x20t1.fax\x20=\x20t2.fax'),_0x234f6e[_0x4c0fd4(0x138)](_0x420215);});},'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 014d23b..984f2be 100644 --- a/server/migrations/2.0.47.js +++ b/server/migrations/2.0.47.js @@ -1 +1 @@ -const a1090_0xa2e5=['Form\x20properly\x20submitted','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','formSubmitFailureMessage','secret','catch','sequence','dropTable','stringify','Added\x20column\x20%s\x20to\x20%s','STRING','removeColumn','table\x20dropped\x20%s','../config/logger','migration','dashboards','sequelize','long','exports','query','type','final','addColumn','changeColumn','info','title','Form\x20submission\x20error','queryInterface','dashboard_items','DELETE\x20FROM\x20dashboards','finally','enqueue','tail','then','addIndex','TEXT','sms_messages','query\x20%s','chat_websites','data','interval','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x39c535,_0xfb0a04){const _0xa2e52a=function(_0x2ec8ec){while(--_0x2ec8ec){_0x39c535['push'](_0x39c535['shift']());}};_0xa2e52a(++_0xfb0a04);}(a1090_0xa2e5,0x1bc));const a1090_0x2ec8=function(_0x39c535,_0xfb0a04){_0x39c535=_0x39c535-0xc0;let _0xa2e52a=a1090_0xa2e5[_0x39c535];return _0xa2e52a;};const a1090_0xafc6e4=a1090_0x2ec8;'use strict';const logger=require(a1090_0xafc6e4(0xdf))(a1090_0xafc6e4(0xe0)),util=require('util'),Sequence=function(){};Sequence[a1090_0xafc6e4(0xd4)]['enqueue']=function(_0x276c93){const _0x286e5a=a1090_0xafc6e4;this[_0x286e5a(0xc8)]=this['tail']?this[_0x286e5a(0xc8)][_0x286e5a(0xc6)](_0x276c93):_0x276c93();};const Migration=function(_0x377fab){const _0x13db94=a1090_0xafc6e4;this[_0x13db94(0xc3)]=_0x377fab,this[_0x13db94(0xd8)]=new Sequence();};Migration[a1090_0xafc6e4(0xd4)]['changeColumn']=function(_0x2e8bc5,_0x2f0e14,_0x55295b){const _0x60cb80=a1090_0xafc6e4,_0xb076cc=this;this[_0x60cb80(0xd8)][_0x60cb80(0xc7)](function(){const _0x4426bc=_0x60cb80;return _0xb076cc[_0x4426bc(0xc3)]['changeColumn'](_0x2e8bc5,_0x2f0e14,_0x55295b)[_0x4426bc(0xc9)](function(){const _0x2b39db=_0x4426bc;logger[_0x2b39db(0xc0)](_0x2b39db(0xd3),_0x2f0e14,_0x2e8bc5);})['catch'](function(_0x4360d4){const _0x46bbd6=_0x4426bc;logger['info'](JSON[_0x46bbd6(0xda)](_0x4360d4));});});},Migration[a1090_0xafc6e4(0xd4)][a1090_0xafc6e4(0xe8)]=function(_0x1adceb,_0x1ffbfd,_0x308e19){const _0x28f06b=a1090_0xafc6e4,_0x2dd049=this;this['sequence'][_0x28f06b(0xc7)](function(){const _0x9ec634=_0x28f06b;return _0x2dd049[_0x9ec634(0xc3)][_0x9ec634(0xe8)](_0x1adceb,_0x1ffbfd,_0x308e19)[_0x9ec634(0xc9)](function(){const _0x4fd8f6=_0x9ec634;logger[_0x4fd8f6(0xc0)](_0x4fd8f6(0xdb),_0x1ffbfd,_0x1adceb);})[_0x9ec634(0xd7)](function(_0x60bdb5){const _0x96028b=_0x9ec634;logger[_0x96028b(0xc0)](JSON['stringify'](_0x60bdb5));});});},Migration[a1090_0xafc6e4(0xd4)]['dropTable']=function(_0x1adcb6){const _0x856fb0=a1090_0xafc6e4,_0x1bac31=this;this[_0x856fb0(0xd8)][_0x856fb0(0xc7)](function(){const _0x4ebaac=_0x856fb0;return _0x1bac31[_0x4ebaac(0xc3)][_0x4ebaac(0xd9)](_0x1adcb6,{'force':!![]})['then'](function(){const _0x374c37=_0x4ebaac;logger[_0x374c37(0xc0)](_0x374c37(0xde),_0x1adcb6);})['catch'](function(_0x225f82){const _0x57d35a=_0x4ebaac;logger['info'](JSON[_0x57d35a(0xda)](_0x225f82));});});},Migration['prototype'][a1090_0xafc6e4(0xca)]=function(_0x204bc7,_0xf02e26,_0x3fa724){const _0x44626b=a1090_0xafc6e4,_0x511e12=this;this[_0x44626b(0xd8)][_0x44626b(0xc7)](function(){const _0xf2c8f3=_0x44626b;return _0x511e12[_0xf2c8f3(0xc3)][_0xf2c8f3(0xca)](_0x204bc7,_0xf02e26,{'indexName':_0x3fa724})[_0xf2c8f3(0xc9)](function(){const _0x5326a3=_0xf2c8f3;logger[_0x5326a3(0xc0)]('addIndex\x20%s\x20%s\x20%s',_0x204bc7,_0xf02e26['join'](','),_0x3fa724);})[_0xf2c8f3(0xd7)](function(_0x3cf918){const _0xe4481d=_0xf2c8f3;logger[_0xe4481d(0xc0)](JSON['stringify'](_0x3cf918));});});},Migration[a1090_0xafc6e4(0xd4)][a1090_0xafc6e4(0xe5)]=function(_0x2aabbd){const _0xe08fa4=a1090_0xafc6e4,_0x5dc106=this;this[_0xe08fa4(0xd8)]['enqueue'](function(){const _0x11a093=_0xe08fa4;return _0x5dc106[_0x11a093(0xc3)][_0x11a093(0xe2)][_0x11a093(0xe5)](_0x2aabbd)['then'](function(){const _0x900fff=_0x11a093;logger[_0x900fff(0xc0)](_0x900fff(0xcd),_0x2aabbd);})[_0x11a093(0xd7)](function(_0x1e553b){const _0x56c256=_0x11a093;logger['info'](JSON[_0x56c256(0xda)](_0x1e553b));});});},Migration['prototype'][a1090_0xafc6e4(0xdd)]=function(_0x16c0fd,_0x31b423){const _0x30ab42=this;this['sequence']['enqueue'](function(){const _0x3a837c=a1090_0x2ec8;return _0x30ab42[_0x3a837c(0xc3)][_0x3a837c(0xdd)](_0x16c0fd,_0x31b423)[_0x3a837c(0xc9)](function(){const _0x5b3fb4=_0x3a837c;logger[_0x5b3fb4(0xc0)](_0x5b3fb4(0xd1),_0x31b423,_0x16c0fd);})[_0x3a837c(0xd7)](function(_0x4c4921){const _0x549920=_0x3a837c;logger[_0x549920(0xc0)](util['inspect'](_0x4c4921,{'showHidden':![],'depth':null}));});});},Migration[a1090_0xafc6e4(0xd4)]['final']=function(_0xf597ef){this['sequence']['enqueue'](function(){return _0xf597ef();});},module[a1090_0xafc6e4(0xe4)]={'up':function(_0x347912,_0x209ca6){return new Promise(function(_0x5266ba){const _0x2d8eab=a1090_0x2ec8,_0x408b37=new Migration(_0x347912);_0x408b37[_0x2d8eab(0xe5)](_0x2d8eab(0xc5)),_0x408b37[_0x2d8eab(0xdd)](_0x2d8eab(0xe1),_0x2d8eab(0xd0)),_0x408b37[_0x2d8eab(0xe9)](_0x2d8eab(0xc4),_0x2d8eab(0xe6),{'type':_0x209ca6[_0x2d8eab(0xdc)](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}}),_0x408b37[_0x2d8eab(0xdd)]('dashboard_items',_0x2d8eab(0xe5)),_0x408b37['removeColumn'](_0x2d8eab(0xc4),_0x2d8eab(0xcf)),_0x408b37[_0x2d8eab(0xe8)](_0x2d8eab(0xc4),_0x2d8eab(0xc1),{'type':_0x209ca6['STRING'](0x14),'validate':{'len':[0x0,0x14]}}),_0x408b37[_0x2d8eab(0xe8)]('dashboard_items','attrs',{'type':_0x209ca6[_0x2d8eab(0xcb)](_0x2d8eab(0xe3))}),_0x408b37['addColumn'](_0x2d8eab(0xcc),_0x2d8eab(0xd6),{'type':_0x209ca6['BOOLEAN'],'defaultValue':![]}),_0x408b37[_0x2d8eab(0xe8)](_0x2d8eab(0xce),'formSubmitSuccessMessage',{'type':_0x209ca6['STRING'],'defaultValue':_0x2d8eab(0xd2)}),_0x408b37['addColumn'](_0x2d8eab(0xce),_0x2d8eab(0xd5),{'type':_0x209ca6['STRING'],'defaultValue':_0x2d8eab(0xc2)}),_0x408b37[_0x2d8eab(0xe7)](_0x5266ba);});},'down':function(){}}; \ No newline at end of file +const a1090_0x5dfc=['dashboards','Changed\x20column\x20%s\x20in\x20table\x20%s','final','chat_websites','sms_messages','Added\x20column\x20%s\x20to\x20%s','addColumn','sequence','interval','Removed\x20column\x20%s\x20from\x20%s','stringify','tail','Form\x20submission\x20error','removeColumn','attrs','DELETE\x20FROM\x20dashboards','formSubmitFailureMessage','query\x20%s','sequelize','exports','catch','queryInterface','secret','BOOLEAN','addIndex','then','finally','dashboard_items','query','TEXT','addIndex\x20%s\x20%s\x20%s','Form\x20properly\x20submitted','enqueue','formSubmitSuccessMessage','../config/logger','dropTable','info','STRING','title','long','prototype','changeColumn','migration'];(function(_0x16479a,_0x147d6d){const _0x5dfc6a=function(_0x4217ca){while(--_0x4217ca){_0x16479a['push'](_0x16479a['shift']());}};_0x5dfc6a(++_0x147d6d);}(a1090_0x5dfc,0x10d));const a1090_0x4217=function(_0x16479a,_0x147d6d){_0x16479a=_0x16479a-0x1a2;let _0x5dfc6a=a1090_0x5dfc[_0x16479a];return _0x5dfc6a;};const a1090_0x42b6b9=a1090_0x4217;'use strict';const logger=require(a1090_0x42b6b9(0x1b9))(a1090_0x42b6b9(0x1c1)),util=require('util'),Sequence=function(){};Sequence[a1090_0x42b6b9(0x1bf)][a1090_0x42b6b9(0x1b7)]=function(_0x443c48){const _0x59d72c=a1090_0x42b6b9;this[_0x59d72c(0x1a2)]=this[_0x59d72c(0x1a2)]?this[_0x59d72c(0x1a2)][_0x59d72c(0x1b1)](_0x443c48):_0x443c48();};const Migration=function(_0x534140){const _0x16e391=a1090_0x42b6b9;this[_0x16e391(0x1ac)]=_0x534140,this['sequence']=new Sequence();};Migration[a1090_0x42b6b9(0x1bf)][a1090_0x42b6b9(0x1c0)]=function(_0x3e7624,_0x28ac50,_0x3c1965){const _0x422a30=a1090_0x42b6b9,_0x5ad38c=this;this[_0x422a30(0x1c9)]['enqueue'](function(){const _0x24ff89=_0x422a30;return _0x5ad38c['queryInterface']['changeColumn'](_0x3e7624,_0x28ac50,_0x3c1965)[_0x24ff89(0x1b0)](function(){const _0x52c5d1=_0x24ff89;logger[_0x52c5d1(0x1bb)](_0x52c5d1(0x1c3),_0x28ac50,_0x3e7624);})[_0x24ff89(0x1ab)](function(_0x1748b7){const _0x53bd74=_0x24ff89;logger[_0x53bd74(0x1bb)](JSON['stringify'](_0x1748b7));});});},Migration['prototype']['addColumn']=function(_0x6590fd,_0x38489f,_0x30e7fa){const _0x5be693=a1090_0x42b6b9,_0xc24445=this;this[_0x5be693(0x1c9)]['enqueue'](function(){const _0x55bf4a=_0x5be693;return _0xc24445[_0x55bf4a(0x1ac)][_0x55bf4a(0x1c8)](_0x6590fd,_0x38489f,_0x30e7fa)[_0x55bf4a(0x1b0)](function(){const _0x132e6e=_0x55bf4a;logger[_0x132e6e(0x1bb)](_0x132e6e(0x1c7),_0x38489f,_0x6590fd);})[_0x55bf4a(0x1ab)](function(_0x531064){const _0x560601=_0x55bf4a;logger[_0x560601(0x1bb)](JSON[_0x560601(0x1cc)](_0x531064));});});},Migration[a1090_0x42b6b9(0x1bf)][a1090_0x42b6b9(0x1ba)]=function(_0x58499a){const _0x3ebbe2=a1090_0x42b6b9,_0x38b75f=this;this[_0x3ebbe2(0x1c9)][_0x3ebbe2(0x1b7)](function(){const _0x598c31=_0x3ebbe2;return _0x38b75f[_0x598c31(0x1ac)][_0x598c31(0x1ba)](_0x58499a,{'force':!![]})['then'](function(){const _0x17b9c1=_0x598c31;logger[_0x17b9c1(0x1bb)]('table\x20dropped\x20%s',_0x58499a);})[_0x598c31(0x1ab)](function(_0x52048a){const _0x51ab4e=_0x598c31;logger[_0x51ab4e(0x1bb)](JSON[_0x51ab4e(0x1cc)](_0x52048a));});});},Migration[a1090_0x42b6b9(0x1bf)]['addIndex']=function(_0x5b0dd6,_0x5bfb88,_0x468d96){const _0x38c4ad=a1090_0x42b6b9,_0x495615=this;this[_0x38c4ad(0x1c9)][_0x38c4ad(0x1b7)](function(){const _0x4a573f=_0x38c4ad;return _0x495615['queryInterface'][_0x4a573f(0x1af)](_0x5b0dd6,_0x5bfb88,{'indexName':_0x468d96})[_0x4a573f(0x1b0)](function(){const _0x55d61d=_0x4a573f;logger['info'](_0x55d61d(0x1b5),_0x5b0dd6,_0x5bfb88['join'](','),_0x468d96);})['catch'](function(_0x1c3de1){const _0x3d1cb2=_0x4a573f;logger[_0x3d1cb2(0x1bb)](JSON['stringify'](_0x1c3de1));});});},Migration[a1090_0x42b6b9(0x1bf)][a1090_0x42b6b9(0x1b3)]=function(_0x489e5f){const _0x5547cf=a1090_0x42b6b9,_0x35161a=this;this[_0x5547cf(0x1c9)][_0x5547cf(0x1b7)](function(){const _0x171180=_0x5547cf;return _0x35161a['queryInterface'][_0x171180(0x1a9)][_0x171180(0x1b3)](_0x489e5f)['then'](function(){const _0x558ca0=_0x171180;logger[_0x558ca0(0x1bb)](_0x558ca0(0x1a8),_0x489e5f);})[_0x171180(0x1ab)](function(_0x23d488){const _0x3e6172=_0x171180;logger['info'](JSON[_0x3e6172(0x1cc)](_0x23d488));});});},Migration['prototype']['removeColumn']=function(_0xf539ac,_0x13a1a0){const _0x24f98b=a1090_0x42b6b9,_0x11e2e4=this;this[_0x24f98b(0x1c9)][_0x24f98b(0x1b7)](function(){const _0x277551=_0x24f98b;return _0x11e2e4['queryInterface'][_0x277551(0x1a4)](_0xf539ac,_0x13a1a0)[_0x277551(0x1b0)](function(){const _0x5cc4f0=_0x277551;logger['info'](_0x5cc4f0(0x1cb),_0x13a1a0,_0xf539ac);})[_0x277551(0x1ab)](function(_0x26b4ac){const _0x108d58=_0x277551;logger[_0x108d58(0x1bb)](util['inspect'](_0x26b4ac,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1090_0x42b6b9(0x1c4)]=function(_0x1ce971){const _0x19bf82=a1090_0x42b6b9;this['sequence'][_0x19bf82(0x1b7)](function(){return _0x1ce971();});},module[a1090_0x42b6b9(0x1aa)]={'up':function(_0x4b4109,_0x5c1d0e){return new Promise(function(_0x224007){const _0x1b6028=a1090_0x4217,_0x31d3d7=new Migration(_0x4b4109);_0x31d3d7[_0x1b6028(0x1b3)](_0x1b6028(0x1a6)),_0x31d3d7[_0x1b6028(0x1a4)](_0x1b6028(0x1c2),_0x1b6028(0x1ca)),_0x31d3d7[_0x1b6028(0x1c0)]('dashboard_items','type',{'type':_0x5c1d0e[_0x1b6028(0x1bc)](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}}),_0x31d3d7[_0x1b6028(0x1a4)]('dashboard_items',_0x1b6028(0x1b3)),_0x31d3d7['removeColumn']('dashboard_items','data'),_0x31d3d7[_0x1b6028(0x1c8)](_0x1b6028(0x1b2),_0x1b6028(0x1bd),{'type':_0x5c1d0e[_0x1b6028(0x1bc)](0x14),'validate':{'len':[0x0,0x14]}}),_0x31d3d7[_0x1b6028(0x1c8)](_0x1b6028(0x1b2),_0x1b6028(0x1a5),{'type':_0x5c1d0e[_0x1b6028(0x1b4)](_0x1b6028(0x1be))}),_0x31d3d7[_0x1b6028(0x1c8)](_0x1b6028(0x1c6),_0x1b6028(0x1ad),{'type':_0x5c1d0e[_0x1b6028(0x1ae)],'defaultValue':![]}),_0x31d3d7['addColumn'](_0x1b6028(0x1c5),_0x1b6028(0x1b8),{'type':_0x5c1d0e[_0x1b6028(0x1bc)],'defaultValue':_0x1b6028(0x1b6)}),_0x31d3d7[_0x1b6028(0x1c8)](_0x1b6028(0x1c5),_0x1b6028(0x1a7),{'type':_0x5c1d0e[_0x1b6028(0x1bc)],'defaultValue':_0x1b6028(0x1a3)}),_0x31d3d7[_0x1b6028(0x1c4)](_0x224007);});},'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 df85790..08e87a9 100644 --- a/server/migrations/2.0.48.js +++ b/server/migrations/2.0.48.js @@ -1 +1 @@ -const a1091_0x3c76=['stringify','fax_interactions','final','changeColumn','turnaddr','table\x20dropped\x20%s','appendFileSync','turnusername','STRING','out','#include\x20\x22stun_xcally.conf\x22','finally','addColumn',';\x20TURN\x20server\x20list\x0a','UPDATE\x20users\x20SET\x20rtcp_mux=\x27yes\x27\x20WHERE\x20showWebBar=2','writeFileSync','inspect','removeColumn','Added\x20column\x20%s\x20to\x20%s','/etc/asterisk/res_stun_monitor.conf','settings','Changed\x20column\x20%s\x20in\x20table\x20%s','mail_interactions','turnpassword','ENUM','yes','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;','readFileSync','#include\x20\x22stun_xcally.conf\x22\x0a#include\x20\x22turn_xcally.conf\x22\x0a[ice_host_candidates]','join','rtcp_mux','prototype','info','utf8','lodash','firstMsgDirection','../config/logger','enqueue','users','sms_interactions','catch','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;','queryInterface','tail','migration',';\x20STUN\x20server\x20list\x0a','dropTable','Removed\x20column\x20%s\x20from\x20%s','replace','util','sequelize','addIndex','sequence','/etc/asterisk/turn_xcally.conf','/etc/asterisk/stun_xcally.conf','query\x20%s','exports','query','addIndex\x20%s\x20%s\x20%s','then'];(function(_0x1a1272,_0x1a01fa){const _0x3c76d3=function(_0x4379d0){while(--_0x4379d0){_0x1a1272['push'](_0x1a1272['shift']());}};_0x3c76d3(++_0x1a01fa);}(a1091_0x3c76,0xa2));const a1091_0x4379=function(_0x1a1272,_0x1a01fa){_0x1a1272=_0x1a1272-0xa1;let _0x3c76d3=a1091_0x3c76[_0x1a1272];return _0x3c76d3;};const a1091_0x24e698=a1091_0x4379;'use strict';const fs=require('fs'),util=require(a1091_0x24e698(0xa8)),_=require(a1091_0x24e698(0xd5)),logger=require(a1091_0x24e698(0xd7))(a1091_0x24e698(0xa3)),Sequence=function(){};Sequence[a1091_0x24e698(0xd2)]['enqueue']=function(_0x355a42){const _0x5534e0=a1091_0x24e698;this[_0x5534e0(0xa2)]=this[_0x5534e0(0xa2)]?this[_0x5534e0(0xa2)][_0x5534e0(0xbe)](_0x355a42):_0x355a42();};const Migration=function(_0x1ce80e){const _0x2a31fd=a1091_0x24e698;this['queryInterface']=_0x1ce80e,this[_0x2a31fd(0xab)]=new Sequence();};Migration[a1091_0x24e698(0xd2)][a1091_0x24e698(0xb6)]=function(_0x16bd1a,_0x2178c7,_0x3101fc){const _0x5e0ca2=a1091_0x24e698,_0x48d9ec=this;this[_0x5e0ca2(0xab)][_0x5e0ca2(0xd8)](function(){const _0x259fc7=_0x5e0ca2;return _0x48d9ec[_0x259fc7(0xa1)][_0x259fc7(0xb6)](_0x16bd1a,_0x2178c7,_0x3101fc)[_0x259fc7(0xb2)](function(){const _0x3fa6a2=_0x259fc7;logger[_0x3fa6a2(0xd3)](_0x3fa6a2(0xc8),_0x2178c7,_0x16bd1a);})[_0x259fc7(0xdb)](function(_0x56fa8e){const _0x33137e=_0x259fc7;logger['info'](JSON[_0x33137e(0xb3)](_0x56fa8e));});});},Migration[a1091_0x24e698(0xd2)][a1091_0x24e698(0xbf)]=function(_0x2b7d2b,_0x4c43be,_0x21a3fe){const _0x2ded0a=a1091_0x24e698,_0x1a4c38=this;this[_0x2ded0a(0xab)][_0x2ded0a(0xd8)](function(){const _0x1de970=_0x2ded0a;return _0x1a4c38[_0x1de970(0xa1)][_0x1de970(0xbf)](_0x2b7d2b,_0x4c43be,_0x21a3fe)[_0x1de970(0xb2)](function(){const _0x3e78c5=_0x1de970;logger[_0x3e78c5(0xd3)](_0x3e78c5(0xc5),_0x4c43be,_0x2b7d2b);})[_0x1de970(0xdb)](function(_0x40a512){const _0xb230e=_0x1de970;logger[_0xb230e(0xd3)](JSON[_0xb230e(0xb3)](_0x40a512));});});},Migration[a1091_0x24e698(0xd2)][a1091_0x24e698(0xa5)]=function(_0x44302c){const _0x2895a3=a1091_0x24e698,_0x273a09=this;this[_0x2895a3(0xab)][_0x2895a3(0xd8)](function(){const _0x21c4fd=_0x2895a3;return _0x273a09['queryInterface'][_0x21c4fd(0xa5)](_0x44302c,{'force':!![]})[_0x21c4fd(0xb2)](function(){const _0x38a56d=_0x21c4fd;logger[_0x38a56d(0xd3)](_0x38a56d(0xb8),_0x44302c);})[_0x21c4fd(0xdb)](function(_0x384013){const _0x112f17=_0x21c4fd;logger[_0x112f17(0xd3)](JSON[_0x112f17(0xb3)](_0x384013));});});},Migration[a1091_0x24e698(0xd2)]['addIndex']=function(_0x583446,_0x37467d,_0x5cbd38){const _0x164730=a1091_0x24e698,_0x3f9d5d=this;this['sequence'][_0x164730(0xd8)](function(){const _0x171efd=_0x164730;return _0x3f9d5d['queryInterface'][_0x171efd(0xaa)](_0x583446,_0x37467d,{'indexName':_0x5cbd38})[_0x171efd(0xb2)](function(){const _0x403ad6=_0x171efd;logger[_0x403ad6(0xd3)](_0x403ad6(0xb1),_0x583446,_0x37467d[_0x403ad6(0xd0)](','),_0x5cbd38);})[_0x171efd(0xdb)](function(_0x1020b3){logger['info'](JSON['stringify'](_0x1020b3));});});},Migration[a1091_0x24e698(0xd2)][a1091_0x24e698(0xb0)]=function(_0x5ca27f){const _0x15cd02=this;this['sequence']['enqueue'](function(){const _0xc3ce9f=a1091_0x4379;return _0x15cd02['queryInterface'][_0xc3ce9f(0xa9)][_0xc3ce9f(0xb0)](_0x5ca27f)['then'](function(){const _0x5e5fb1=_0xc3ce9f;logger[_0x5e5fb1(0xd3)](_0x5e5fb1(0xae),_0x5ca27f);})['catch'](function(_0x562a44){const _0x2e436d=_0xc3ce9f;logger[_0x2e436d(0xd3)](JSON[_0x2e436d(0xb3)](_0x562a44));});});},Migration[a1091_0x24e698(0xd2)]['removeColumn']=function(_0x2bc795,_0x40a56d){const _0x5ef61=a1091_0x24e698,_0x137aff=this;this[_0x5ef61(0xab)]['enqueue'](function(){const _0x1da1f4=_0x5ef61;return _0x137aff[_0x1da1f4(0xa1)][_0x1da1f4(0xc4)](_0x2bc795,_0x40a56d)[_0x1da1f4(0xb2)](function(){const _0x4a275b=_0x1da1f4;logger['info'](_0x4a275b(0xa6),_0x40a56d,_0x2bc795);})[_0x1da1f4(0xdb)](function(_0x488eae){const _0x47bbed=_0x1da1f4;logger[_0x47bbed(0xd3)](util[_0x47bbed(0xc3)](_0x488eae,{'showHidden':![],'depth':null}));});});},Migration[a1091_0x24e698(0xd2)][a1091_0x24e698(0xb5)]=function(_0x26485a){this['sequence']['enqueue'](function(){return _0x26485a();});},module[a1091_0x24e698(0xaf)]={'up':function(_0x1ac78d,_0x2a037f){return new Promise(function(_0x145dd0){const _0x25e650=a1091_0x4379,_0x3c1018=new Migration(_0x1ac78d);_0x3c1018[_0x25e650(0xbf)](_0x25e650(0xc7),_0x25e650(0xb7),{'type':_0x2a037f[_0x25e650(0xbb)]}),_0x3c1018[_0x25e650(0xbf)](_0x25e650(0xc7),_0x25e650(0xba),{'type':_0x2a037f[_0x25e650(0xbb)]}),_0x3c1018[_0x25e650(0xbf)](_0x25e650(0xc7),_0x25e650(0xca),{'type':_0x2a037f['STRING']}),_0x3c1018[_0x25e650(0xbf)](_0x25e650(0xd9),_0x25e650(0xd1),{'type':_0x2a037f[_0x25e650(0xcb)](_0x25e650(0xcc),'no'),'defaultValue':'no'}),_0x3c1018['query'](_0x25e650(0xc1)),_0x3c1018[_0x25e650(0xbf)](_0x25e650(0xda),'firstMsgDirection',{'type':_0x2a037f[_0x25e650(0xcb)]('in',_0x25e650(0xbc)),'defaultValue':'in','allowNull':![]}),_0x3c1018['query'](_0x25e650(0xdc)),_0x3c1018[_0x25e650(0xbf)](_0x25e650(0xc9),_0x25e650(0xd6),{'type':_0x2a037f[_0x25e650(0xcb)]('in','out'),'defaultValue':'in','allowNull':![]}),_0x3c1018[_0x25e650(0xb0)](_0x25e650(0xcd)),_0x3c1018['addColumn'](_0x25e650(0xb4),_0x25e650(0xd6),{'type':_0x2a037f[_0x25e650(0xcb)]('in',_0x25e650(0xbc)),'defaultValue':'in','allowNull':![]}),_0x3c1018[_0x25e650(0xb0)]('UPDATE\x20fax_interactions\x20t1,\x20(SELECT\x20FaxInteractionId,\x20MIN(id)\x20AS\x20messageid,\x20ANY_VALUE(direction)\x20AS\x20direction\x20FROM\x20fax_messages\x20WHERE\x20FaxInteractionId\x20IS\x20NOT\x20NULL\x20GROUP\x20BY\x20FaxInteractionId)\x20t2\x20SET\x20t1.firstMsgDirection\x20=\x20t2.direction\x20WHERE\x20t1.id\x20=\x20t2.FaxInteractionId;');try{fs[_0x25e650(0xc2)](_0x25e650(0xad),_0x25e650(0xa4),{'encoding':_0x25e650(0xd4)}),fs[_0x25e650(0xc2)](_0x25e650(0xac),_0x25e650(0xc0),{'encoding':_0x25e650(0xd4)});let _0x27bc6d=fs[_0x25e650(0xce)]('/etc/asterisk/rtp.conf',{'encoding':_0x25e650(0xd4)});_0x27bc6d=_[_0x25e650(0xa7)](_0x27bc6d,'[ice_host_candidates]',_0x25e650(0xcf)),fs[_0x25e650(0xc2)]('/etc/asterisk/rtp.conf',_0x27bc6d,{'encoding':_0x25e650(0xd4)}),fs[_0x25e650(0xb9)](_0x25e650(0xc6),_0x25e650(0xbd),{'encoding':'utf8'});}catch(_0x3c634f){logger[_0x25e650(0xd3)](JSON[_0x25e650(0xb3)](_0x3c634f));}_0x3c1018[_0x25e650(0xb5)](_0x145dd0);});},'down':function(){}}; \ No newline at end of file +const a1091_0x43b6=['#include\x20\x22stun_xcally.conf\x22','readFileSync','yes','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;','Added\x20column\x20%s\x20to\x20%s','/etc/asterisk/turn_xcally.conf','sms_interactions','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','final','dropTable','util','[ice_host_candidates]','catch','turnaddr','sequelize','/etc/asterisk/res_stun_monitor.conf','addIndex','firstMsgDirection','then','table\x20dropped\x20%s','query','removeColumn','queryInterface','mail_interactions','prototype','turnusername','enqueue','info','Removed\x20column\x20%s\x20from\x20%s','settings','migration','fax_interactions','inspect','join','sequence','/etc/asterisk/rtp.conf','addColumn','STRING','out','utf8','ENUM','changeColumn','UPDATE\x20users\x20SET\x20rtcp_mux=\x27yes\x27\x20WHERE\x20showWebBar=2','lodash','writeFileSync','finally'];(function(_0x1c2ffe,_0x29522d){const _0x43b654=function(_0x1660ac){while(--_0x1660ac){_0x1c2ffe['push'](_0x1c2ffe['shift']());}};_0x43b654(++_0x29522d);}(a1091_0x43b6,0xa2));const a1091_0x1660=function(_0x1c2ffe,_0x29522d){_0x1c2ffe=_0x1c2ffe-0xea;let _0x43b654=a1091_0x43b6[_0x1c2ffe];return _0x43b654;};const a1091_0x41217a=a1091_0x1660;'use strict';const fs=require('fs'),util=require(a1091_0x41217a(0x10f)),_=require(a1091_0x41217a(0x101)),logger=require('../config/logger')(a1091_0x41217a(0xf4)),Sequence=function(){};Sequence[a1091_0x41217a(0xee)]['enqueue']=function(_0x1e2eba){const _0x1fcb51=a1091_0x41217a;this['tail']=this['tail']?this['tail'][_0x1fcb51(0x103)](_0x1e2eba):_0x1e2eba();};const Migration=function(_0x595e65){const _0x2c35a3=a1091_0x41217a;this[_0x2c35a3(0xec)]=_0x595e65,this['sequence']=new Sequence();};Migration[a1091_0x41217a(0xee)]['changeColumn']=function(_0x523b70,_0xef8a0d,_0x5d88ec){const _0x1364c0=a1091_0x41217a,_0x158188=this;this[_0x1364c0(0xf8)][_0x1364c0(0xf0)](function(){const _0x9e8fc2=_0x1364c0;return _0x158188['queryInterface'][_0x9e8fc2(0xff)](_0x523b70,_0xef8a0d,_0x5d88ec)[_0x9e8fc2(0x117)](function(){const _0x575345=_0x9e8fc2;logger[_0x575345(0xf1)](_0x575345(0x10c),_0xef8a0d,_0x523b70);})[_0x9e8fc2(0x111)](function(_0x156a75){const _0x3e675a=_0x9e8fc2;logger[_0x3e675a(0xf1)](JSON[_0x3e675a(0x10b)](_0x156a75));});});},Migration[a1091_0x41217a(0xee)]['addColumn']=function(_0x3092b8,_0x108d0f,_0x15e37e){const _0x1585e1=a1091_0x41217a,_0x2b31f0=this;this['sequence'][_0x1585e1(0xf0)](function(){const _0x4aac4e=_0x1585e1;return _0x2b31f0[_0x4aac4e(0xec)]['addColumn'](_0x3092b8,_0x108d0f,_0x15e37e)[_0x4aac4e(0x117)](function(){const _0x3ba3af=_0x4aac4e;logger[_0x3ba3af(0xf1)](_0x3ba3af(0x108),_0x108d0f,_0x3092b8);})[_0x4aac4e(0x111)](function(_0x4aac77){const _0x3cd5bb=_0x4aac4e;logger[_0x3cd5bb(0xf1)](JSON[_0x3cd5bb(0x10b)](_0x4aac77));});});},Migration[a1091_0x41217a(0xee)]['dropTable']=function(_0x2c7877){const _0x4b5dd0=a1091_0x41217a,_0x228e1e=this;this[_0x4b5dd0(0xf8)][_0x4b5dd0(0xf0)](function(){const _0x3cf170=_0x4b5dd0;return _0x228e1e['queryInterface'][_0x3cf170(0x10e)](_0x2c7877,{'force':!![]})[_0x3cf170(0x117)](function(){const _0x18aa94=_0x3cf170;logger[_0x18aa94(0xf1)](_0x18aa94(0x118),_0x2c7877);})[_0x3cf170(0x111)](function(_0x509c2e){const _0x125496=_0x3cf170;logger[_0x125496(0xf1)](JSON[_0x125496(0x10b)](_0x509c2e));});});},Migration['prototype'][a1091_0x41217a(0x115)]=function(_0x41a190,_0x25b00,_0xaf59df){const _0x3016c3=a1091_0x41217a,_0x5e25b0=this;this[_0x3016c3(0xf8)][_0x3016c3(0xf0)](function(){const _0x342d17=_0x3016c3;return _0x5e25b0[_0x342d17(0xec)][_0x342d17(0x115)](_0x41a190,_0x25b00,{'indexName':_0xaf59df})['then'](function(){const _0x549327=_0x342d17;logger[_0x549327(0xf1)]('addIndex\x20%s\x20%s\x20%s',_0x41a190,_0x25b00[_0x549327(0xf7)](','),_0xaf59df);})[_0x342d17(0x111)](function(_0x21ef10){logger['info'](JSON['stringify'](_0x21ef10));});});},Migration[a1091_0x41217a(0xee)]['query']=function(_0x801517){const _0xbfa669=a1091_0x41217a,_0x3b73b4=this;this[_0xbfa669(0xf8)][_0xbfa669(0xf0)](function(){const _0xeeeb47=_0xbfa669;return _0x3b73b4['queryInterface'][_0xeeeb47(0x113)][_0xeeeb47(0xea)](_0x801517)[_0xeeeb47(0x117)](function(){const _0x521d00=_0xeeeb47;logger[_0x521d00(0xf1)]('query\x20%s',_0x801517);})[_0xeeeb47(0x111)](function(_0xad5ae6){const _0x40d53f=_0xeeeb47;logger[_0x40d53f(0xf1)](JSON[_0x40d53f(0x10b)](_0xad5ae6));});});},Migration[a1091_0x41217a(0xee)]['removeColumn']=function(_0x5c412b,_0x338923){const _0x3e5335=a1091_0x41217a,_0x14a21f=this;this[_0x3e5335(0xf8)][_0x3e5335(0xf0)](function(){const _0x1463c8=_0x3e5335;return _0x14a21f[_0x1463c8(0xec)][_0x1463c8(0xeb)](_0x5c412b,_0x338923)[_0x1463c8(0x117)](function(){const _0x3182a8=_0x1463c8;logger['info'](_0x3182a8(0xf2),_0x338923,_0x5c412b);})[_0x1463c8(0x111)](function(_0xf83863){const _0x596a53=_0x1463c8;logger['info'](util[_0x596a53(0xf6)](_0xf83863,{'showHidden':![],'depth':null}));});});},Migration[a1091_0x41217a(0xee)][a1091_0x41217a(0x10d)]=function(_0x49fea6){const _0x5df18c=a1091_0x41217a;this[_0x5df18c(0xf8)][_0x5df18c(0xf0)](function(){return _0x49fea6();});},module['exports']={'up':function(_0x574d12,_0x56040e){return new Promise(function(_0x24943b){const _0x33c1a8=a1091_0x1660,_0x146813=new Migration(_0x574d12);_0x146813['addColumn'](_0x33c1a8(0xf3),_0x33c1a8(0x112),{'type':_0x56040e[_0x33c1a8(0xfb)]}),_0x146813['addColumn']('settings',_0x33c1a8(0xef),{'type':_0x56040e['STRING']}),_0x146813[_0x33c1a8(0xfa)](_0x33c1a8(0xf3),'turnpassword',{'type':_0x56040e[_0x33c1a8(0xfb)]}),_0x146813['addColumn']('users','rtcp_mux',{'type':_0x56040e[_0x33c1a8(0xfe)](_0x33c1a8(0x106),'no'),'defaultValue':'no'}),_0x146813[_0x33c1a8(0xea)](_0x33c1a8(0x100)),_0x146813['addColumn'](_0x33c1a8(0x10a),'firstMsgDirection',{'type':_0x56040e[_0x33c1a8(0xfe)]('in',_0x33c1a8(0xfc)),'defaultValue':'in','allowNull':![]}),_0x146813[_0x33c1a8(0xea)]('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;'),_0x146813[_0x33c1a8(0xfa)](_0x33c1a8(0xed),_0x33c1a8(0x116),{'type':_0x56040e['ENUM']('in',_0x33c1a8(0xfc)),'defaultValue':'in','allowNull':![]}),_0x146813[_0x33c1a8(0xea)](_0x33c1a8(0x107)),_0x146813['addColumn'](_0x33c1a8(0xf5),_0x33c1a8(0x116),{'type':_0x56040e[_0x33c1a8(0xfe)]('in',_0x33c1a8(0xfc)),'defaultValue':'in','allowNull':![]}),_0x146813[_0x33c1a8(0xea)]('UPDATE\x20fax_interactions\x20t1,\x20(SELECT\x20FaxInteractionId,\x20MIN(id)\x20AS\x20messageid,\x20ANY_VALUE(direction)\x20AS\x20direction\x20FROM\x20fax_messages\x20WHERE\x20FaxInteractionId\x20IS\x20NOT\x20NULL\x20GROUP\x20BY\x20FaxInteractionId)\x20t2\x20SET\x20t1.firstMsgDirection\x20=\x20t2.direction\x20WHERE\x20t1.id\x20=\x20t2.FaxInteractionId;');try{fs[_0x33c1a8(0x102)]('/etc/asterisk/stun_xcally.conf',';\x20STUN\x20server\x20list\x0a',{'encoding':'utf8'}),fs['writeFileSync'](_0x33c1a8(0x109),';\x20TURN\x20server\x20list\x0a',{'encoding':'utf8'});let _0x286118=fs[_0x33c1a8(0x105)](_0x33c1a8(0xf9),{'encoding':'utf8'});_0x286118=_['replace'](_0x286118,_0x33c1a8(0x110),'#include\x20\x22stun_xcally.conf\x22\x0a#include\x20\x22turn_xcally.conf\x22\x0a[ice_host_candidates]'),fs[_0x33c1a8(0x102)](_0x33c1a8(0xf9),_0x286118,{'encoding':_0x33c1a8(0xfd)}),fs['appendFileSync'](_0x33c1a8(0x114),_0x33c1a8(0x104),{'encoding':_0x33c1a8(0xfd)});}catch(_0x4b1686){logger['info'](JSON[_0x33c1a8(0x10b)](_0x4b1686));}_0x146813[_0x33c1a8(0x10d)](_0x24943b);});},'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 0eb6fed..a8dfcb0 100644 --- a/server/migrations/2.0.49.js +++ b/server/migrations/2.0.49.js @@ -1 +1 @@ -const a1092_0x2999=['tail','cm_hopper_final','addColumn','info','table\x20dropped\x20%s','dialAgiAfterHangupAgent','New\x20offline\x20message\x20from\x20websiteName','basic','query\x20%s','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x204','dialQueueProject2','chat_websites','Removed\x20column\x20%s\x20from\x20%s','../config/logger','phoneBarOutboundProxy','offlineMessageSubject','query','classic+','dropTable','then','addIndex','prototype','offlineMessageBody','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','final','changeColumn','stringify','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());','join','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x276\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','finally','queryInterface','users','senderString','sms_accounts','smsMethod','password','allowmessenger','voice_queues','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','username','sequence','STRING','DATE','deliveryReport','Added\x20column\x20%s\x20to\x20%s','BOOLEAN','catch','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-dialer\x27\x20AND\x20`priority`=\x2011','ENUM','inspect','migration','exports','removeColumn'];(function(_0x141b04,_0x5df3b8){const _0x2999d0=function(_0x5bc8a1){while(--_0x5bc8a1){_0x141b04['push'](_0x141b04['shift']());}};_0x2999d0(++_0x5df3b8);}(a1092_0x2999,0xd3));const a1092_0x5bc8=function(_0x141b04,_0x5df3b8){_0x141b04=_0x141b04-0x8d;let _0x2999d0=a1092_0x2999[_0x141b04];return _0x2999d0;};const a1092_0x5f178d=a1092_0x5bc8;'use strict';const util=require('util'),logger=require(a1092_0x5f178d(0xa3))(a1092_0x5f178d(0x93)),Sequence=function(){};Sequence[a1092_0x5f178d(0xab)]['enqueue']=function(_0x4b13f5){const _0x2a9f5e=a1092_0x5f178d;this[_0x2a9f5e(0x96)]=this[_0x2a9f5e(0x96)]?this[_0x2a9f5e(0x96)][_0x2a9f5e(0xb4)](_0x4b13f5):_0x4b13f5();};const Migration=function(_0x278b9a){const _0x5745e8=a1092_0x5f178d;this[_0x5745e8(0xb5)]=_0x278b9a,this[_0x5745e8(0xc0)]=new Sequence();};Migration[a1092_0x5f178d(0xab)]['changeColumn']=function(_0x10b290,_0x4df5c0,_0x3ed191){const _0x3f77ae=a1092_0x5f178d,_0xfa2c30=this;this['sequence'][_0x3f77ae(0xbe)](function(){const _0x533a18=_0x3f77ae;return _0xfa2c30[_0x533a18(0xb5)][_0x533a18(0xaf)](_0x10b290,_0x4df5c0,_0x3ed191)[_0x533a18(0xa9)](function(){const _0x2f5a00=_0x533a18;logger['info'](_0x2f5a00(0xbd),_0x4df5c0,_0x10b290);})[_0x533a18(0x8f)](function(_0x1926e0){const _0x2f3d99=_0x533a18;logger[_0x2f3d99(0x99)](JSON[_0x2f3d99(0xb0)](_0x1926e0));});});},Migration['prototype']['addColumn']=function(_0x5771f0,_0x5605a7,_0x50a593){const _0x4851e3=a1092_0x5f178d,_0x2ffe71=this;this[_0x4851e3(0xc0)][_0x4851e3(0xbe)](function(){const _0x3307b4=_0x4851e3;return _0x2ffe71['queryInterface'][_0x3307b4(0x98)](_0x5771f0,_0x5605a7,_0x50a593)['then'](function(){const _0x7f90c6=_0x3307b4;logger[_0x7f90c6(0x99)](_0x7f90c6(0x8d),_0x5605a7,_0x5771f0);})[_0x3307b4(0x8f)](function(_0x4f6a03){logger['info'](JSON['stringify'](_0x4f6a03));});});},Migration[a1092_0x5f178d(0xab)][a1092_0x5f178d(0xa8)]=function(_0x25abdd){const _0x9251fa=a1092_0x5f178d,_0x1ade7b=this;this[_0x9251fa(0xc0)]['enqueue'](function(){const _0x1eaa15=_0x9251fa;return _0x1ade7b[_0x1eaa15(0xb5)][_0x1eaa15(0xa8)](_0x25abdd,{'force':!![]})['then'](function(){const _0x2248d5=_0x1eaa15;logger['info'](_0x2248d5(0x9a),_0x25abdd);})[_0x1eaa15(0x8f)](function(_0x5c72b0){const _0x3ad46a=_0x1eaa15;logger[_0x3ad46a(0x99)](JSON[_0x3ad46a(0xb0)](_0x5c72b0));});});},Migration[a1092_0x5f178d(0xab)][a1092_0x5f178d(0xaa)]=function(_0x227478,_0x46c3e4,_0x1cfbca){const _0x796ad5=a1092_0x5f178d,_0x56e74e=this;this[_0x796ad5(0xc0)][_0x796ad5(0xbe)](function(){const _0x590d30=_0x796ad5;return _0x56e74e['queryInterface']['addIndex'](_0x227478,_0x46c3e4,{'indexName':_0x1cfbca})['then'](function(){const _0x1ce9b9=a1092_0x5bc8;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x227478,_0x46c3e4[_0x1ce9b9(0xb2)](','),_0x1cfbca);})[_0x590d30(0x8f)](function(_0x4d87d1){const _0xd40bfb=_0x590d30;logger[_0xd40bfb(0x99)](JSON[_0xd40bfb(0xb0)](_0x4d87d1));});});},Migration['prototype'][a1092_0x5f178d(0xa6)]=function(_0x5d2ec3){const _0x30de57=a1092_0x5f178d,_0x5bce1a=this;this[_0x30de57(0xc0)][_0x30de57(0xbe)](function(){const _0x23cb34=_0x30de57;return _0x5bce1a[_0x23cb34(0xb5)]['sequelize']['query'](_0x5d2ec3)[_0x23cb34(0xa9)](function(){const _0x2a069d=_0x23cb34;logger[_0x2a069d(0x99)](_0x2a069d(0x9e),_0x5d2ec3);})[_0x23cb34(0x8f)](function(_0x50da41){const _0xfd5b2e=_0x23cb34;logger[_0xfd5b2e(0x99)](JSON[_0xfd5b2e(0xb0)](_0x50da41));});});},Migration['prototype'][a1092_0x5f178d(0x95)]=function(_0xb99f67,_0x1626c2){const _0x22a019=a1092_0x5f178d,_0x12ca1d=this;this['sequence'][_0x22a019(0xbe)](function(){const _0x3f0d32=_0x22a019;return _0x12ca1d[_0x3f0d32(0xb5)][_0x3f0d32(0x95)](_0xb99f67,_0x1626c2)[_0x3f0d32(0xa9)](function(){const _0x2363ec=_0x3f0d32;logger['info'](_0x2363ec(0xa2),_0x1626c2,_0xb99f67);})['catch'](function(_0x3a18f5){const _0x3757cf=_0x3f0d32;logger[_0x3757cf(0x99)](util[_0x3757cf(0x92)](_0x3a18f5,{'showHidden':![],'depth':null}));});});},Migration[a1092_0x5f178d(0xab)][a1092_0x5f178d(0xae)]=function(_0x2e9ff4){const _0x4e74aa=a1092_0x5f178d;this['sequence'][_0x4e74aa(0xbe)](function(){return _0x2e9ff4();});},module[a1092_0x5f178d(0x94)]={'up':function(_0x3738af,_0x320874){return new Promise(function(_0x16e7df){const _0x43cc11=a1092_0x5bc8,_0x3a52e4=new Migration(_0x3738af);_0x3a52e4['addColumn'](_0x43cc11(0xb8),_0x43cc11(0xb9),{'type':_0x320874[_0x43cc11(0x91)](_0x43cc11(0x9d),'classic',_0x43cc11(0xa7))}),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0xb8),_0x43cc11(0xbf),{'type':_0x320874['STRING']}),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0xb8),_0x43cc11(0xba),{'type':_0x320874[_0x43cc11(0xc1)]}),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0xb8),_0x43cc11(0xb7),{'type':_0x320874[_0x43cc11(0xc1)]}),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0xb8),_0x43cc11(0xc3),{'type':_0x320874[_0x43cc11(0x8e)],'defaultValue':![]}),_0x3a52e4['addColumn'](_0x43cc11(0xb6),_0x43cc11(0xbb),{'type':_0x320874[_0x43cc11(0x8e)],'defaultValue':!![]}),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0xb6),_0x43cc11(0xa4),{'type':_0x320874[_0x43cc11(0xc1)]}),_0x3a52e4[_0x43cc11(0x98)]('chat_websites',_0x43cc11(0xa5),{'type':_0x320874['STRING'],'defaultValue':_0x43cc11(0x9c)}),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0xa1),_0x43cc11(0xac),{'type':_0x320874[_0x43cc11(0xc1)],'defaultValue':_0x43cc11(0xad)}),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0xbc),_0x43cc11(0xa0),{'type':_0x320874['STRING']}),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0xbc),'dialAgiAfterHangupClient',{'type':_0x320874[_0x43cc11(0x8e)],'defaultValue':![]}),_0x3a52e4['addColumn']('voice_queues',_0x43cc11(0x9b),{'type':_0x320874[_0x43cc11(0x8e)],'defaultValue':![]}),_0x3a52e4[_0x43cc11(0xa6)](_0x43cc11(0x90)),_0x3a52e4[_0x43cc11(0xa6)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x3a52e4['query'](_0x43cc11(0xb1)),_0x3a52e4[_0x43cc11(0xa6)](_0x43cc11(0x9f)),_0x3a52e4[_0x43cc11(0xa6)]('DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x205'),_0x3a52e4[_0x43cc11(0xa6)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x3a52e4[_0x43cc11(0xa6)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x3a52e4['query'](_0x43cc11(0xb3)),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0x97),'agiafterat',{'type':_0x320874[_0x43cc11(0xc2)]}),_0x3a52e4['final'](_0x16e7df);});},'down':function(){}}; \ No newline at end of file +const a1092_0x5471=['addIndex\x20%s\x20%s\x20%s','sequence','migration','inspect','util','prototype','cm_hopper_final','BOOLEAN','then','stringify','tail','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-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','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','agiafterat','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','allowmessenger','STRING','senderString','password','../config/logger','final','info','username','basic','query','deliveryReport','enqueue','queryInterface','voice_queues','phoneBarOutboundProxy','DATE','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','dialAgiAfterHangupClient','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-dialer\x27\x20AND\x20`priority`=\x2011','offlineMessageBody','classic+','dropTable','classic','Added\x20column\x20%s\x20to\x20%s','sms_accounts','changeColumn','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','chat_websites','New\x20offline\x20message\x20from\x20websiteName','ENUM','join','addColumn','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-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());','dialAgiAfterHangupAgent','catch','smsMethod','users','dialQueueProject2','offlineMessageSubject','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x205','sequelize','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-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());','removeColumn','addIndex'];(function(_0x42c673,_0x2203ac){const _0x5471aa=function(_0x1ec977){while(--_0x1ec977){_0x42c673['push'](_0x42c673['shift']());}};_0x5471aa(++_0x2203ac);}(a1092_0x5471,0x13e));const a1092_0x1ec9=function(_0x42c673,_0x2203ac){_0x42c673=_0x42c673-0x1d0;let _0x5471aa=a1092_0x5471[_0x42c673];return _0x5471aa;};const a1092_0x6a516b=a1092_0x1ec9;'use strict';const util=require(a1092_0x6a516b(0x20a)),logger=require(a1092_0x6a516b(0x1dd))(a1092_0x6a516b(0x208)),Sequence=function(){};Sequence[a1092_0x6a516b(0x20b)][a1092_0x6a516b(0x1e4)]=function(_0x4911ea){const _0x44f154=a1092_0x6a516b;this[_0x44f154(0x1d2)]=this[_0x44f154(0x1d2)]?this[_0x44f154(0x1d2)]['finally'](_0x4911ea):_0x4911ea();};const Migration=function(_0x529dd5){this['queryInterface']=_0x529dd5,this['sequence']=new Sequence();};Migration[a1092_0x6a516b(0x20b)][a1092_0x6a516b(0x1f2)]=function(_0x4132ce,_0x265b08,_0x5406f7){const _0x5de1a6=a1092_0x6a516b,_0x1ae8e6=this;this['sequence'][_0x5de1a6(0x1e4)](function(){const _0x4333b4=_0x5de1a6;return _0x1ae8e6['queryInterface'][_0x4333b4(0x1f2)](_0x4132ce,_0x265b08,_0x5406f7)[_0x4333b4(0x1d0)](function(){const _0x5d519f=_0x4333b4;logger[_0x5d519f(0x1df)](_0x5d519f(0x1f4),_0x265b08,_0x4132ce);})[_0x4333b4(0x1fc)](function(_0xa574bb){const _0x156ee9=_0x4333b4;logger[_0x156ee9(0x1df)](JSON['stringify'](_0xa574bb));});});},Migration['prototype']['addColumn']=function(_0x574d95,_0x5c74fe,_0xcb9ebe){const _0x343187=a1092_0x6a516b,_0x4e15a8=this;this[_0x343187(0x207)][_0x343187(0x1e4)](function(){const _0x1b085c=_0x343187;return _0x4e15a8['queryInterface']['addColumn'](_0x574d95,_0x5c74fe,_0xcb9ebe)[_0x1b085c(0x1d0)](function(){const _0x463729=_0x1b085c;logger['info'](_0x463729(0x1f0),_0x5c74fe,_0x574d95);})[_0x1b085c(0x1fc)](function(_0x2b1639){const _0x2a91af=_0x1b085c;logger[_0x2a91af(0x1df)](JSON[_0x2a91af(0x1d1)](_0x2b1639));});});},Migration['prototype'][a1092_0x6a516b(0x1ee)]=function(_0x4884e1){const _0x378c0d=a1092_0x6a516b,_0x19b808=this;this[_0x378c0d(0x207)][_0x378c0d(0x1e4)](function(){const _0x3fdf06=_0x378c0d;return _0x19b808['queryInterface'][_0x3fdf06(0x1ee)](_0x4884e1,{'force':!![]})[_0x3fdf06(0x1d0)](function(){const _0xfabbda=_0x3fdf06;logger[_0xfabbda(0x1df)](_0xfabbda(0x1d8),_0x4884e1);})['catch'](function(_0xc6af5c){const _0x27a28b=_0x3fdf06;logger['info'](JSON[_0x27a28b(0x1d1)](_0xc6af5c));});});},Migration['prototype'][a1092_0x6a516b(0x205)]=function(_0x58d0a1,_0x31d43d,_0xa85c56){const _0x1d23ac=a1092_0x6a516b,_0x2f7d7e=this;this['sequence'][_0x1d23ac(0x1e4)](function(){const _0x1d67e0=_0x1d23ac;return _0x2f7d7e[_0x1d67e0(0x1e5)][_0x1d67e0(0x205)](_0x58d0a1,_0x31d43d,{'indexName':_0xa85c56})['then'](function(){const _0x28ba49=_0x1d67e0;logger['info'](_0x28ba49(0x206),_0x58d0a1,_0x31d43d[_0x28ba49(0x1f8)](','),_0xa85c56);})[_0x1d67e0(0x1fc)](function(_0x546c14){logger['info'](JSON['stringify'](_0x546c14));});});},Migration[a1092_0x6a516b(0x20b)][a1092_0x6a516b(0x1e2)]=function(_0x2a1552){const _0x190b52=a1092_0x6a516b,_0x11fbc6=this;this['sequence'][_0x190b52(0x1e4)](function(){const _0x51e58c=_0x190b52;return _0x11fbc6['queryInterface'][_0x51e58c(0x202)][_0x51e58c(0x1e2)](_0x2a1552)[_0x51e58c(0x1d0)](function(){logger['info']('query\x20%s',_0x2a1552);})['catch'](function(_0x5e30da){const _0x27c59d=_0x51e58c;logger[_0x27c59d(0x1df)](JSON[_0x27c59d(0x1d1)](_0x5e30da));});});},Migration[a1092_0x6a516b(0x20b)]['removeColumn']=function(_0x5bfa71,_0x45cfd4){const _0x305746=a1092_0x6a516b,_0x5d4d76=this;this[_0x305746(0x207)][_0x305746(0x1e4)](function(){const _0x1cc0d1=_0x305746;return _0x5d4d76[_0x1cc0d1(0x1e5)][_0x1cc0d1(0x204)](_0x5bfa71,_0x45cfd4)[_0x1cc0d1(0x1d0)](function(){const _0x498c17=_0x1cc0d1;logger[_0x498c17(0x1df)](_0x498c17(0x1d7),_0x45cfd4,_0x5bfa71);})[_0x1cc0d1(0x1fc)](function(_0x36248c){const _0x4ea551=_0x1cc0d1;logger['info'](util[_0x4ea551(0x209)](_0x36248c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1092_0x6a516b(0x1de)]=function(_0x2a6165){const _0x511877=a1092_0x6a516b;this[_0x511877(0x207)][_0x511877(0x1e4)](function(){return _0x2a6165();});},module[a1092_0x6a516b(0x1f3)]={'up':function(_0x23b6e8,_0x32c11e){return new Promise(function(_0x49b247){const _0x1a14d5=a1092_0x1ec9,_0x3463ce=new Migration(_0x23b6e8);_0x3463ce[_0x1a14d5(0x1f9)](_0x1a14d5(0x1f1),_0x1a14d5(0x1fd),{'type':_0x32c11e[_0x1a14d5(0x1f7)](_0x1a14d5(0x1e1),_0x1a14d5(0x1ef),_0x1a14d5(0x1ed))}),_0x3463ce[_0x1a14d5(0x1f9)](_0x1a14d5(0x1f1),_0x1a14d5(0x1e0),{'type':_0x32c11e[_0x1a14d5(0x1da)]}),_0x3463ce[_0x1a14d5(0x1f9)]('sms_accounts',_0x1a14d5(0x1dc),{'type':_0x32c11e[_0x1a14d5(0x1da)]}),_0x3463ce[_0x1a14d5(0x1f9)](_0x1a14d5(0x1f1),_0x1a14d5(0x1db),{'type':_0x32c11e['STRING']}),_0x3463ce[_0x1a14d5(0x1f9)](_0x1a14d5(0x1f1),_0x1a14d5(0x1e3),{'type':_0x32c11e['BOOLEAN'],'defaultValue':![]}),_0x3463ce['addColumn']('users',_0x1a14d5(0x1d9),{'type':_0x32c11e[_0x1a14d5(0x20d)],'defaultValue':!![]}),_0x3463ce[_0x1a14d5(0x1f9)](_0x1a14d5(0x1fe),_0x1a14d5(0x1e7),{'type':_0x32c11e['STRING']}),_0x3463ce['addColumn'](_0x1a14d5(0x1f5),_0x1a14d5(0x200),{'type':_0x32c11e[_0x1a14d5(0x1da)],'defaultValue':_0x1a14d5(0x1f6)}),_0x3463ce['addColumn']('chat_websites',_0x1a14d5(0x1ec),{'type':_0x32c11e['STRING'],'defaultValue':_0x1a14d5(0x1e9)}),_0x3463ce[_0x1a14d5(0x1f9)](_0x1a14d5(0x1e6),_0x1a14d5(0x1ff),{'type':_0x32c11e[_0x1a14d5(0x1da)]}),_0x3463ce[_0x1a14d5(0x1f9)](_0x1a14d5(0x1e6),_0x1a14d5(0x1ea),{'type':_0x32c11e[_0x1a14d5(0x20d)],'defaultValue':![]}),_0x3463ce['addColumn'](_0x1a14d5(0x1e6),_0x1a14d5(0x1fb),{'type':_0x32c11e['BOOLEAN'],'defaultValue':![]}),_0x3463ce[_0x1a14d5(0x1e2)](_0x1a14d5(0x1eb)),_0x3463ce['query'](_0x1a14d5(0x1fa)),_0x3463ce['query'](_0x1a14d5(0x1d3)),_0x3463ce[_0x1a14d5(0x1e2)](_0x1a14d5(0x1d4)),_0x3463ce[_0x1a14d5(0x1e2)](_0x1a14d5(0x201)),_0x3463ce['query'](_0x1a14d5(0x1d5)),_0x3463ce[_0x1a14d5(0x1e2)](_0x1a14d5(0x203)),_0x3463ce[_0x1a14d5(0x1e2)]('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());'),_0x3463ce[_0x1a14d5(0x1f9)](_0x1a14d5(0x20c),_0x1a14d5(0x1d6),{'type':_0x32c11e[_0x1a14d5(0x1e8)]}),_0x3463ce[_0x1a14d5(0x1de)](_0x49b247);});},'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 98de050..5a5a6f9 100644 --- a/server/migrations/2.0.50.js +++ b/server/migrations/2.0.50.js @@ -1 +1 @@ -const a1093_0x8235=['sequence','sequelize','booked','addColumn','table\x20dropped\x20%s','prototype','exports','ENUM','predictive','tail','inspect','removeColumn','catch','dropTable','info','sms_messages','final','changeColumn','query','addIndex','join','../config/logger','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x277\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','util','voice_queues','preview','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x206','queryInterface','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\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());','finally','then','enqueue','messageId','progressive','query\x20%s','stringify','migration'];(function(_0x18d11d,_0x585dfa){const _0x8235cb=function(_0x228909){while(--_0x228909){_0x18d11d['push'](_0x18d11d['shift']());}};_0x8235cb(++_0x585dfa);}(a1093_0x8235,0x74));const a1093_0x2289=function(_0x18d11d,_0x585dfa){_0x18d11d=_0x18d11d-0x6b;let _0x8235cb=a1093_0x8235[_0x18d11d];return _0x8235cb;};const a1093_0x58c937=a1093_0x2289;'use strict';const util=require(a1093_0x58c937(0x80)),logger=require(a1093_0x58c937(0x7e))(a1093_0x58c937(0x8e)),Sequence=function(){};Sequence[a1093_0x58c937(0x6e)][a1093_0x58c937(0x89)]=function(_0x42b0d3){const _0x8ed9ae=a1093_0x58c937;this[_0x8ed9ae(0x72)]=this['tail']?this[_0x8ed9ae(0x72)][_0x8ed9ae(0x87)](_0x42b0d3):_0x42b0d3();};const Migration=function(_0x2430a8){const _0xc483cb=a1093_0x58c937;this[_0xc483cb(0x84)]=_0x2430a8,this[_0xc483cb(0x8f)]=new Sequence();};Migration[a1093_0x58c937(0x6e)][a1093_0x58c937(0x7a)]=function(_0x1874b0,_0x558d9b,_0x55b7e3){const _0x3e66a7=a1093_0x58c937,_0x42ce6b=this;this[_0x3e66a7(0x8f)][_0x3e66a7(0x89)](function(){const _0x25b7c4=_0x3e66a7;return _0x42ce6b[_0x25b7c4(0x84)][_0x25b7c4(0x7a)](_0x1874b0,_0x558d9b,_0x55b7e3)[_0x25b7c4(0x88)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x558d9b,_0x1874b0);})[_0x25b7c4(0x75)](function(_0x2ef290){const _0x198385=_0x25b7c4;logger['info'](JSON[_0x198385(0x8d)](_0x2ef290));});});},Migration[a1093_0x58c937(0x6e)]['addColumn']=function(_0x217fc5,_0x5edff7,_0x1a88eb){const _0x46984b=a1093_0x58c937,_0x21e8ce=this;this[_0x46984b(0x8f)]['enqueue'](function(){const _0x64be72=_0x46984b;return _0x21e8ce[_0x64be72(0x84)][_0x64be72(0x6c)](_0x217fc5,_0x5edff7,_0x1a88eb)['then'](function(){const _0x5549e9=_0x64be72;logger['info'](_0x5549e9(0x85),_0x5edff7,_0x217fc5);})['catch'](function(_0x276b19){const _0x14c1cf=_0x64be72;logger[_0x14c1cf(0x77)](JSON[_0x14c1cf(0x8d)](_0x276b19));});});},Migration['prototype'][a1093_0x58c937(0x76)]=function(_0x1c2a8b){const _0x1b3457=a1093_0x58c937,_0x596ba5=this;this['sequence'][_0x1b3457(0x89)](function(){const _0x4f9b84=_0x1b3457;return _0x596ba5[_0x4f9b84(0x84)][_0x4f9b84(0x76)](_0x1c2a8b,{'force':!![]})[_0x4f9b84(0x88)](function(){const _0x244417=_0x4f9b84;logger[_0x244417(0x77)](_0x244417(0x6d),_0x1c2a8b);})['catch'](function(_0x38148a){const _0x38aabc=_0x4f9b84;logger[_0x38aabc(0x77)](JSON[_0x38aabc(0x8d)](_0x38148a));});});},Migration['prototype']['addIndex']=function(_0x1c2534,_0x18e804,_0x3e9757){const _0x2de692=a1093_0x58c937,_0x55076=this;this[_0x2de692(0x8f)]['enqueue'](function(){const _0xd184c5=_0x2de692;return _0x55076[_0xd184c5(0x84)]['addIndex'](_0x1c2534,_0x18e804,{'indexName':_0x3e9757})[_0xd184c5(0x88)](function(){const _0x4497f9=_0xd184c5;logger[_0x4497f9(0x77)]('addIndex\x20%s\x20%s\x20%s',_0x1c2534,_0x18e804[_0x4497f9(0x7d)](','),_0x3e9757);})[_0xd184c5(0x75)](function(_0x413e3a){const _0x274a5d=_0xd184c5;logger[_0x274a5d(0x77)](JSON['stringify'](_0x413e3a));});});},Migration[a1093_0x58c937(0x6e)][a1093_0x58c937(0x7b)]=function(_0x15e0b9){const _0x4564a4=a1093_0x58c937,_0xdfe06=this;this[_0x4564a4(0x8f)][_0x4564a4(0x89)](function(){const _0x2ef6b6=_0x4564a4;return _0xdfe06[_0x2ef6b6(0x84)][_0x2ef6b6(0x90)][_0x2ef6b6(0x7b)](_0x15e0b9)['then'](function(){const _0x5f266e=_0x2ef6b6;logger[_0x5f266e(0x77)](_0x5f266e(0x8c),_0x15e0b9);})[_0x2ef6b6(0x75)](function(_0x4fd371){const _0x41d2fd=_0x2ef6b6;logger['info'](JSON[_0x41d2fd(0x8d)](_0x4fd371));});});},Migration['prototype'][a1093_0x58c937(0x74)]=function(_0x4345d2,_0x2fdc48){const _0x3f7737=a1093_0x58c937,_0x226518=this;this['sequence'][_0x3f7737(0x89)](function(){const _0x5c3282=_0x3f7737;return _0x226518['queryInterface'][_0x5c3282(0x74)](_0x4345d2,_0x2fdc48)['then'](function(){const _0x51e8a3=_0x5c3282;logger[_0x51e8a3(0x77)]('Removed\x20column\x20%s\x20from\x20%s',_0x2fdc48,_0x4345d2);})[_0x5c3282(0x75)](function(_0x2a228e){const _0x24d640=_0x5c3282;logger[_0x24d640(0x77)](util[_0x24d640(0x73)](_0x2a228e,{'showHidden':![],'depth':null}));});});},Migration[a1093_0x58c937(0x6e)][a1093_0x58c937(0x79)]=function(_0x26b235){const _0x2c7363=a1093_0x58c937;this[_0x2c7363(0x8f)][_0x2c7363(0x89)](function(){return _0x26b235();});},module[a1093_0x58c937(0x6f)]={'up':function(_0x3993cc,_0x40722a){return new Promise(function(_0xa9857a){const _0x3d8a14=a1093_0x2289,_0x58711f=new Migration(_0x3993cc);_0x58711f[_0x3d8a14(0x7a)](_0x3d8a14(0x78),_0x3d8a14(0x8a),{'type':_0x40722a['STRING'](0xbe)}),_0x58711f[_0x3d8a14(0x7c)](_0x3d8a14(0x78),['messageId'],_0x3d8a14(0x8a)),_0x58711f[_0x3d8a14(0x7a)](_0x3d8a14(0x81),'dialMethod',{'type':_0x40722a[_0x3d8a14(0x70)](_0x3d8a14(0x82),_0x3d8a14(0x8b),'power',_0x3d8a14(0x71),_0x3d8a14(0x6b)),'defaultValue':_0x3d8a14(0x8b)}),_0x58711f[_0x3d8a14(0x7b)](_0x3d8a14(0x83)),_0x58711f['query'](_0x3d8a14(0x86)),_0x58711f[_0x3d8a14(0x7b)](_0x3d8a14(0x7f)),_0x58711f['final'](_0xa9857a);});},'down':function(){}}; \ No newline at end of file +const a1093_0x55d6=['stringify','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x206','messageId','tail','query','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x276\x27,\x20\x27Execif\x27,\x20\x27$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','finally','prototype','info','join','util','dropTable','then','addIndex','sms_messages','preview','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','sequence','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x277\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','addIndex\x20%s\x20%s\x20%s','power','voice_queues','table\x20dropped\x20%s','../config/logger','Added\x20column\x20%s\x20to\x20%s','ENUM','migration','progressive','removeColumn','sequelize','query\x20%s','queryInterface','catch','enqueue','exports','STRING'];(function(_0x27db55,_0x25a6bc){const _0x55d692=function(_0xccd90){while(--_0xccd90){_0x27db55['push'](_0x27db55['shift']());}};_0x55d692(++_0x25a6bc);}(a1093_0x55d6,0x1a8));const a1093_0xccd9=function(_0x27db55,_0x25a6bc){_0x27db55=_0x27db55-0x1de;let _0x55d692=a1093_0x55d6[_0x27db55];return _0x55d692;};const a1093_0x5ed8c0=a1093_0xccd9;'use strict';const util=require(a1093_0x5ed8c0(0x1e2)),logger=require(a1093_0x5ed8c0(0x1f1))(a1093_0x5ed8c0(0x1f4)),Sequence=function(){};Sequence[a1093_0x5ed8c0(0x1df)][a1093_0x5ed8c0(0x1fb)]=function(_0x5cbc96){const _0x4855bf=a1093_0x5ed8c0;this[_0x4855bf(0x201)]=this['tail']?this[_0x4855bf(0x201)][_0x4855bf(0x1de)](_0x5cbc96):_0x5cbc96();};const Migration=function(_0x342565){const _0x4b8838=a1093_0x5ed8c0;this['queryInterface']=_0x342565,this[_0x4b8838(0x1eb)]=new Sequence();};Migration[a1093_0x5ed8c0(0x1df)][a1093_0x5ed8c0(0x1ea)]=function(_0x8a9ab8,_0x1ece4e,_0x449dc0){const _0x227917=a1093_0x5ed8c0,_0x16a75a=this;this['sequence'][_0x227917(0x1fb)](function(){const _0x64cbad=_0x227917;return _0x16a75a['queryInterface']['changeColumn'](_0x8a9ab8,_0x1ece4e,_0x449dc0)[_0x64cbad(0x1e4)](function(){const _0x3f0fca=_0x64cbad;logger['info'](_0x3f0fca(0x1e9),_0x1ece4e,_0x8a9ab8);})[_0x64cbad(0x1fa)](function(_0x3a822c){const _0x37afb0=_0x64cbad;logger[_0x37afb0(0x1e0)](JSON[_0x37afb0(0x1fe)](_0x3a822c));});});},Migration[a1093_0x5ed8c0(0x1df)][a1093_0x5ed8c0(0x1e8)]=function(_0x4d5095,_0x4f1b2f,_0x17e75f){const _0xc39644=a1093_0x5ed8c0,_0x41c804=this;this[_0xc39644(0x1eb)][_0xc39644(0x1fb)](function(){const _0x2c4041=_0xc39644;return _0x41c804[_0x2c4041(0x1f9)][_0x2c4041(0x1e8)](_0x4d5095,_0x4f1b2f,_0x17e75f)[_0x2c4041(0x1e4)](function(){const _0x5c5c06=_0x2c4041;logger[_0x5c5c06(0x1e0)](_0x5c5c06(0x1f2),_0x4f1b2f,_0x4d5095);})[_0x2c4041(0x1fa)](function(_0x151bbd){const _0x2b2b89=_0x2c4041;logger[_0x2b2b89(0x1e0)](JSON[_0x2b2b89(0x1fe)](_0x151bbd));});});},Migration[a1093_0x5ed8c0(0x1df)]['dropTable']=function(_0x29d3ec){const _0x4b25e3=a1093_0x5ed8c0,_0x479ce4=this;this[_0x4b25e3(0x1eb)][_0x4b25e3(0x1fb)](function(){const _0x48e80a=_0x4b25e3;return _0x479ce4[_0x48e80a(0x1f9)][_0x48e80a(0x1e3)](_0x29d3ec,{'force':!![]})['then'](function(){const _0xce057c=_0x48e80a;logger[_0xce057c(0x1e0)](_0xce057c(0x1f0),_0x29d3ec);})[_0x48e80a(0x1fa)](function(_0xb29f35){logger['info'](JSON['stringify'](_0xb29f35));});});},Migration['prototype'][a1093_0x5ed8c0(0x1e5)]=function(_0x2e48d8,_0x554ce3,_0x1a396e){const _0x951ac6=this;this['sequence']['enqueue'](function(){const _0x25863d=a1093_0xccd9;return _0x951ac6['queryInterface'][_0x25863d(0x1e5)](_0x2e48d8,_0x554ce3,{'indexName':_0x1a396e})[_0x25863d(0x1e4)](function(){const _0x8d8bb9=_0x25863d;logger[_0x8d8bb9(0x1e0)](_0x8d8bb9(0x1ed),_0x2e48d8,_0x554ce3[_0x8d8bb9(0x1e1)](','),_0x1a396e);})[_0x25863d(0x1fa)](function(_0x18ccc4){const _0x46b4ee=_0x25863d;logger[_0x46b4ee(0x1e0)](JSON[_0x46b4ee(0x1fe)](_0x18ccc4));});});},Migration[a1093_0x5ed8c0(0x1df)][a1093_0x5ed8c0(0x202)]=function(_0x53fffb){const _0x41f3a8=a1093_0x5ed8c0,_0x54d469=this;this[_0x41f3a8(0x1eb)][_0x41f3a8(0x1fb)](function(){const _0x1effe1=_0x41f3a8;return _0x54d469[_0x1effe1(0x1f9)][_0x1effe1(0x1f7)][_0x1effe1(0x202)](_0x53fffb)['then'](function(){const _0x3c1db3=_0x1effe1;logger[_0x3c1db3(0x1e0)](_0x3c1db3(0x1f8),_0x53fffb);})['catch'](function(_0x384429){const _0x27bbe8=_0x1effe1;logger[_0x27bbe8(0x1e0)](JSON[_0x27bbe8(0x1fe)](_0x384429));});});},Migration['prototype'][a1093_0x5ed8c0(0x1f6)]=function(_0x1209af,_0x30dbe6){const _0x15f7b4=a1093_0x5ed8c0,_0x28cce1=this;this['sequence'][_0x15f7b4(0x1fb)](function(){const _0x256c01=_0x15f7b4;return _0x28cce1['queryInterface'][_0x256c01(0x1f6)](_0x1209af,_0x30dbe6)[_0x256c01(0x1e4)](function(){const _0xdb7276=_0x256c01;logger[_0xdb7276(0x1e0)]('Removed\x20column\x20%s\x20from\x20%s',_0x30dbe6,_0x1209af);})['catch'](function(_0x5b9968){const _0xdbd696=_0x256c01;logger[_0xdbd696(0x1e0)](util['inspect'](_0x5b9968,{'showHidden':![],'depth':null}));});});},Migration[a1093_0x5ed8c0(0x1df)]['final']=function(_0x290d77){const _0x42ddd8=a1093_0x5ed8c0;this['sequence'][_0x42ddd8(0x1fb)](function(){return _0x290d77();});},module[a1093_0x5ed8c0(0x1fc)]={'up':function(_0x39b8f5,_0x280486){return new Promise(function(_0x570212){const _0x2fd18d=a1093_0xccd9,_0x18f7e5=new Migration(_0x39b8f5);_0x18f7e5[_0x2fd18d(0x1ea)](_0x2fd18d(0x1e6),_0x2fd18d(0x200),{'type':_0x280486[_0x2fd18d(0x1fd)](0xbe)}),_0x18f7e5[_0x2fd18d(0x1e5)](_0x2fd18d(0x1e6),[_0x2fd18d(0x200)],_0x2fd18d(0x200)),_0x18f7e5[_0x2fd18d(0x1ea)](_0x2fd18d(0x1ef),'dialMethod',{'type':_0x280486[_0x2fd18d(0x1f3)](_0x2fd18d(0x1e7),'progressive',_0x2fd18d(0x1ee),'predictive','booked'),'defaultValue':_0x2fd18d(0x1f5)}),_0x18f7e5[_0x2fd18d(0x202)](_0x2fd18d(0x1ff)),_0x18f7e5[_0x2fd18d(0x202)](_0x2fd18d(0x203)),_0x18f7e5[_0x2fd18d(0x202)](_0x2fd18d(0x1ec)),_0x18f7e5['final'](_0x570212);});},'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 39e2fe7..a740ba9 100644 --- a/server/migrations/2.0.51.js +++ b/server/migrations/2.0.51.js @@ -1 +1 @@ -const a1094_0x584c=['tail','sms_accounts','info','Chat','Changed\x20column\x20%s\x20in\x20table\x20%s','chat_internal_messages','lastMsgDirection','uniqueid','finally','Removed\x20column\x20%s\x20from\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\x277\x27,\x20\x27amd\x27,\x20\x27${XMD-AMDINITIALSILENCE},${XMD-AMDGREETING},${XMD-AMDAFTERGREETINGSILENCE},${XMD-AMDTOTALANALYSISTIME},${XMD-AMDMINWORDLENGTH},${XMD-AMDBETWEENWORDSSILENCE},${XMD-AMDMAXIMUMNUMBEROFWORDS},${XMD-AMDSILENCETHRESHOLD},${XMD-AMDMAXIMUMWORDLENGTH}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x273\x27,\x20\x27set\x27,\x20\x27CALLERID(all)=${XMD-CALLERID}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','removeColumn','addIndex','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','DATE','ChatInternalMessageId','report_member','_interactions\x20t1,\x20(SELECT\x20','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-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());','report_call','enqueue','Added\x20column\x20%s\x20to\x20%s','prototype','ChatGroupId','changeColumn','catch','mail_interactions','openchannel_interactions','_messages\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20','chat_interactions','final','lastMsgAt','inspect','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','cm_hopper_final','note','InteractionId;','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','query','voice_recordings','length','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;','stringify','connectel','UPDATE\x20','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','queryInterface','query\x20%s','twilio','out','ENUM','sms_interactions','dropTable','type','addIndex\x20%s\x20%s\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\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());','then','Openchannel','INTEGER','util','STRING','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());','exports','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','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;','cm_hopper_history','addColumn','../config/logger','sequence','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\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\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());','toLowerCase','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());','phone'];(function(_0x230f60,_0x97b61){const _0x584c84=function(_0x50df80){while(--_0x50df80){_0x230f60['push'](_0x230f60['shift']());}};_0x584c84(++_0x97b61);}(a1094_0x584c,0x79));const a1094_0x50df=function(_0x230f60,_0x97b61){_0x230f60=_0x230f60-0xef;let _0x584c84=a1094_0x584c[_0x230f60];return _0x584c84;};const a1094_0x287f97=a1094_0x50df;'use strict';const util=require(a1094_0x287f97(0xfd)),logger=require(a1094_0x287f97(0x105))('migration'),Sequence=function(){};Sequence[a1094_0x287f97(0x123)][a1094_0x287f97(0x121)]=function(_0x237a8f){const _0x38125b=a1094_0x287f97;this['tail']=this['tail']?this[_0x38125b(0x10c)][_0x38125b(0x114)](_0x237a8f):_0x237a8f();};const Migration=function(_0x30ed13){const _0x5ba0da=a1094_0x287f97;this[_0x5ba0da(0xf0)]=_0x30ed13,this['sequence']=new Sequence();};Migration[a1094_0x287f97(0x123)][a1094_0x287f97(0x125)]=function(_0xfcd966,_0x1bfc4c,_0x13bcc5){const _0xafa55f=a1094_0x287f97,_0x3376b2=this;this[_0xafa55f(0x106)]['enqueue'](function(){const _0x1cff93=_0xafa55f;return _0x3376b2['queryInterface'][_0x1cff93(0x125)](_0xfcd966,_0x1bfc4c,_0x13bcc5)[_0x1cff93(0xfa)](function(){const _0x27613e=_0x1cff93;logger[_0x27613e(0x10e)](_0x27613e(0x110),_0x1bfc4c,_0xfcd966);})[_0x1cff93(0x126)](function(_0x453ac9){const _0x364585=_0x1cff93;logger[_0x364585(0x10e)](JSON['stringify'](_0x453ac9));});});},Migration[a1094_0x287f97(0x123)][a1094_0x287f97(0x104)]=function(_0x31fcc7,_0x10e192,_0x94b1df){const _0x1e041b=a1094_0x287f97,_0x5998f9=this;this[_0x1e041b(0x106)][_0x1e041b(0x121)](function(){const _0x377204=_0x1e041b;return _0x5998f9[_0x377204(0xf0)]['addColumn'](_0x31fcc7,_0x10e192,_0x94b1df)['then'](function(){const _0x2619fc=_0x377204;logger[_0x2619fc(0x10e)](_0x2619fc(0x122),_0x10e192,_0x31fcc7);})[_0x377204(0x126)](function(_0x112206){const _0x2da6d0=_0x377204;logger[_0x2da6d0(0x10e)](JSON['stringify'](_0x112206));});});},Migration[a1094_0x287f97(0x123)][a1094_0x287f97(0xf6)]=function(_0x18cb55){const _0x1620bc=a1094_0x287f97,_0x3ba3d4=this;this[_0x1620bc(0x106)][_0x1620bc(0x121)](function(){const _0x507bca=_0x1620bc;return _0x3ba3d4[_0x507bca(0xf0)]['dropTable'](_0x18cb55,{'force':!![]})['then'](function(){const _0xc704b8=_0x507bca;logger[_0xc704b8(0x10e)]('table\x20dropped\x20%s',_0x18cb55);})[_0x507bca(0x126)](function(_0x2cf83a){const _0x919373=_0x507bca;logger[_0x919373(0x10e)](JSON['stringify'](_0x2cf83a));});});},Migration['prototype'][a1094_0x287f97(0x119)]=function(_0x14831b,_0x361710,_0x7c4b90){const _0x459a1b=a1094_0x287f97,_0x226b56=this;this[_0x459a1b(0x106)]['enqueue'](function(){const _0x1481e8=_0x459a1b;return _0x226b56[_0x1481e8(0xf0)]['addIndex'](_0x14831b,_0x361710,{'indexName':_0x7c4b90})[_0x1481e8(0xfa)](function(){const _0x594c44=_0x1481e8;logger['info'](_0x594c44(0xf8),_0x14831b,_0x361710['join'](','),_0x7c4b90);})['catch'](function(_0x46efb9){const _0x270f3c=_0x1481e8;logger[_0x270f3c(0x10e)](JSON[_0x270f3c(0x137)](_0x46efb9));});});},Migration['prototype'][a1094_0x287f97(0x133)]=function(_0x562cc2){const _0x14268d=a1094_0x287f97,_0x25cff5=this;this[_0x14268d(0x106)][_0x14268d(0x121)](function(){const _0x23ccaa=_0x14268d;return _0x25cff5[_0x23ccaa(0xf0)]['sequelize'][_0x23ccaa(0x133)](_0x562cc2)['then'](function(){const _0x1458f8=_0x23ccaa;logger['info'](_0x1458f8(0xf1),_0x562cc2);})[_0x23ccaa(0x126)](function(_0x53d4aa){const _0x475120=_0x23ccaa;logger[_0x475120(0x10e)](JSON[_0x475120(0x137)](_0x53d4aa));});});},Migration[a1094_0x287f97(0x123)][a1094_0x287f97(0x118)]=function(_0x16f494,_0x24bb08){const _0x4242ec=a1094_0x287f97,_0x396246=this;this[_0x4242ec(0x106)][_0x4242ec(0x121)](function(){const _0x40426b=_0x4242ec;return _0x396246[_0x40426b(0xf0)][_0x40426b(0x118)](_0x16f494,_0x24bb08)[_0x40426b(0xfa)](function(){const _0x52aaf7=_0x40426b;logger[_0x52aaf7(0x10e)](_0x52aaf7(0x115),_0x24bb08,_0x16f494);})[_0x40426b(0x126)](function(_0x2f1d0b){const _0x1857dd=_0x40426b;logger[_0x1857dd(0x10e)](util[_0x1857dd(0x12d)](_0x2f1d0b,{'showHidden':![],'depth':null}));});});},Migration[a1094_0x287f97(0x123)][a1094_0x287f97(0x12b)]=function(_0x434599){const _0x1887a0=a1094_0x287f97;this[_0x1887a0(0x106)][_0x1887a0(0x121)](function(){return _0x434599();});},module[a1094_0x287f97(0x100)]={'up':function(_0x2b336e,_0x49821d){return new Promise(function(_0x2fd08e){const _0x138047=a1094_0x50df,_0x4f99f4=new Migration(_0x2b336e);_0x4f99f4['addColumn'](_0x138047(0x111),_0x138047(0x11c),{'type':_0x49821d[_0x138047(0xfc)]}),_0x4f99f4['addColumn'](_0x138047(0x111),_0x138047(0x124),{'type':_0x49821d[_0x138047(0xfc)]}),_0x4f99f4[_0x138047(0x133)](_0x138047(0x11a)),_0x4f99f4[_0x138047(0x104)](_0x138047(0x12a),'lastMsgDirection',{'type':_0x49821d[_0x138047(0xf4)]('in',_0x138047(0xf3)),'defaultValue':'in','allowNull':![]}),_0x4f99f4[_0x138047(0x104)](_0x138047(0x12a),_0x138047(0x12c),{'type':_0x49821d[_0x138047(0x11b)]}),_0x4f99f4['addColumn'](_0x138047(0x127),_0x138047(0x112),{'type':_0x49821d[_0x138047(0xf4)]('in',_0x138047(0xf3)),'defaultValue':'in','allowNull':![]}),_0x4f99f4[_0x138047(0x104)](_0x138047(0x127),_0x138047(0x12c),{'type':_0x49821d[_0x138047(0x11b)]}),_0x4f99f4[_0x138047(0x104)]('sms_interactions',_0x138047(0x112),{'type':_0x49821d[_0x138047(0xf4)]('in','out'),'defaultValue':'in','allowNull':![]}),_0x4f99f4[_0x138047(0x104)](_0x138047(0xf5),'lastMsgAt',{'type':_0x49821d[_0x138047(0x11b)]}),_0x4f99f4[_0x138047(0x104)](_0x138047(0x128),_0x138047(0x112),{'type':_0x49821d[_0x138047(0xf4)]('in',_0x138047(0xf3)),'defaultValue':'in','allowNull':![]}),_0x4f99f4[_0x138047(0x104)](_0x138047(0x128),_0x138047(0x12c),{'type':_0x49821d[_0x138047(0x11b)]}),_0x4f99f4[_0x138047(0x104)]('fax_interactions',_0x138047(0x112),{'type':_0x49821d['ENUM']('in','out'),'defaultValue':'in','allowNull':![]}),_0x4f99f4[_0x138047(0x104)]('fax_interactions',_0x138047(0x12c),{'type':_0x49821d[_0x138047(0x11b)]});const _0x284f7d=[_0x138047(0x10f),'Mail','Sms',_0x138047(0xfb)];for(let _0x113222=0x0;_0x113222<_0x284f7d[_0x138047(0x135)];_0x113222++){_0x4f99f4[_0x138047(0x133)](_0x138047(0x139)+_0x284f7d[_0x113222][_0x138047(0x109)]()+_0x138047(0x11e)+_0x284f7d[_0x113222]+_0x138047(0x132)+_0x284f7d[_0x113222][_0x138047(0x109)]()+_0x138047(0x129)+_0x284f7d[_0x113222]+_0x138047(0xef)+_0x284f7d[_0x113222]+'InteractionId)\x20t2\x20SET\x20t1.lastMsgDirection\x20=\x20t2.direction,\x20t1.lastMsgAt\x20=\x20t2.createdAt\x20WHERE\x20t1.id\x20=\x20t2.'+_0x284f7d[_0x113222]+_0x138047(0x131));}_0x4f99f4['query'](_0x138047(0x102)),_0x4f99f4[_0x138047(0x125)](_0x138047(0x10d),_0x138047(0xf7),{'type':_0x49821d[_0x138047(0xf4)](_0x138047(0xf2),'skebby',_0x138047(0x138))}),_0x4f99f4[_0x138047(0x104)](_0x138047(0x120),_0x138047(0x130),{'type':_0x49821d[_0x138047(0xfe)]}),_0x4f99f4['addIndex']('cm_contacts',[_0x138047(0x10b)],'phone'),_0x4f99f4[_0x138047(0x119)](_0x138047(0x12f),[_0x138047(0x113)],_0x138047(0x113)),_0x4f99f4[_0x138047(0x119)](_0x138047(0x103),[_0x138047(0x113)],_0x138047(0x113)),_0x4f99f4[_0x138047(0x119)](_0x138047(0x134),[_0x138047(0x113)],_0x138047(0x113)),_0x4f99f4[_0x138047(0x119)](_0x138047(0x11d),['membername','interface'],'membername_interface'),_0x4f99f4[_0x138047(0x133)](_0x138047(0x12e)),_0x4f99f4[_0x138047(0x133)](_0x138047(0x136)),_0x4f99f4['query'](_0x138047(0x107)),_0x4f99f4['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x4f99f4['query'](_0x138047(0x117)),_0x4f99f4[_0x138047(0x133)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x4f99f4[_0x138047(0x133)](_0x138047(0x10a)),_0x4f99f4[_0x138047(0x133)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x4f99f4['query'](_0x138047(0x116)),_0x4f99f4[_0x138047(0x133)](_0x138047(0x108)),_0x4f99f4['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());'),_0x4f99f4[_0x138047(0x133)]('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());'),_0x4f99f4['query'](_0x138047(0x11f)),_0x4f99f4['query'](_0x138047(0x101)),_0x4f99f4[_0x138047(0x133)](_0x138047(0xf9)),_0x4f99f4[_0x138047(0x133)](_0x138047(0xff)),_0x4f99f4[_0x138047(0x12b)](_0x2fd08e);});},'down':function(){}}; \ No newline at end of file +const a1094_0x3b59=['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());','report_member','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','lastMsgDirection','util','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x273\x27,\x20\x27set\x27,\x20\x27CALLERID(all)=${XMD-CALLERID}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','enqueue','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\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());','lastMsgAt','membername','final','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','join','openchannel_interactions','UPDATE\x20users\x20SET\x20permissions=\x27101,102,103,110,104,105,106,107,108,109,100\x27\x20WHERE\x20permissions=\x27101,102,103,104,105,106,107,108,109,100\x27','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2711\x27,\x20\x27execif\x27,\x20\x27$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','addColumn','dropTable','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x275\x27,\x20\x27answer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','interface','../config/logger','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','uniqueid','sequence','queryInterface','UPDATE\x20','cm_contacts','report_call','toLowerCase','chat_internal_messages','_interactions\x20t1,\x20(SELECT\x20','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x279\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?11:10\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','stringify','Sms','Chat','type','ENUM','removeColumn','out','catch','tail','changeColumn','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;','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','addIndex','sms_accounts','query','DATE','_messages\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20','mail_interactions','prototype','connectel','exports','Removed\x20column\x20%s\x20from\x20%s','ALTER\x20TABLE\x20`chat_internal_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`chat_internal_messages_ibfk_3`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`ChatGroupId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20chat_groups(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','info','query\x20%s','then','sms_interactions','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2712\x27,\x20\x27execif\x27,\x20\x27$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','phone','skebby','table\x20dropped\x20%s','InteractionId;','finally','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x277\x27,\x20\x27amd\x27,\x20\x27${XMD-AMDINITIALSILENCE},${XMD-AMDGREETING},${XMD-AMDAFTERGREETINGSILENCE},${XMD-AMDTOTALANALYSISTIME},${XMD-AMDMINWORDLENGTH},${XMD-AMDBETWEENWORDSSILENCE},${XMD-AMDMAXIMUMNUMBEROFWORDS},${XMD-AMDSILENCETHRESHOLD},${XMD-AMDMAXIMUMWORDLENGTH}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\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());','fax_interactions'];(function(_0x4ca0b6,_0xa7e5a1){const _0x3b598c=function(_0x32e379){while(--_0x32e379){_0x4ca0b6['push'](_0x4ca0b6['shift']());}};_0x3b598c(++_0xa7e5a1);}(a1094_0x3b59,0xfb));const a1094_0x32e3=function(_0x4ca0b6,_0xa7e5a1){_0x4ca0b6=_0x4ca0b6-0x103;let _0x3b598c=a1094_0x3b59[_0x4ca0b6];return _0x3b598c;};const a1094_0x302f6c=a1094_0x32e3;'use strict';const util=require(a1094_0x302f6c(0x124)),logger=require(a1094_0x302f6c(0x136))('migration'),Sequence=function(){};Sequence[a1094_0x302f6c(0x10e)][a1094_0x302f6c(0x126)]=function(_0x4d87e9){const _0x5b9be7=a1094_0x302f6c;this['tail']=this['tail']?this[_0x5b9be7(0x104)][_0x5b9be7(0x11c)](_0x4d87e9):_0x4d87e9();};const Migration=function(_0x1591fe){const _0x5c63a0=a1094_0x302f6c;this[_0x5c63a0(0x13a)]=_0x1591fe,this[_0x5c63a0(0x139)]=new Sequence();};Migration[a1094_0x302f6c(0x10e)][a1094_0x302f6c(0x105)]=function(_0x4c28bb,_0x51f4fb,_0x1cfa47){const _0x1dee4e=a1094_0x302f6c,_0x3a8ade=this;this[_0x1dee4e(0x139)]['enqueue'](function(){const _0x3dcd84=_0x1dee4e;return _0x3a8ade[_0x3dcd84(0x13a)][_0x3dcd84(0x105)](_0x4c28bb,_0x51f4fb,_0x1cfa47)['then'](function(){const _0x434fe9=_0x3dcd84;logger[_0x434fe9(0x113)](_0x434fe9(0x12d),_0x51f4fb,_0x4c28bb);})[_0x3dcd84(0x103)](function(_0x4f99bf){const _0x23f794=_0x3dcd84;logger[_0x23f794(0x113)](JSON[_0x23f794(0x142)](_0x4f99bf));});});},Migration[a1094_0x302f6c(0x10e)]['addColumn']=function(_0x541bfc,_0x379ff4,_0x49e427){const _0x24ec20=a1094_0x302f6c,_0x15f103=this;this['sequence'][_0x24ec20(0x126)](function(){const _0x41d8cb=_0x24ec20;return _0x15f103[_0x41d8cb(0x13a)]['addColumn'](_0x541bfc,_0x379ff4,_0x49e427)['then'](function(){const _0x2824b7=_0x41d8cb;logger[_0x2824b7(0x113)]('Added\x20column\x20%s\x20to\x20%s',_0x379ff4,_0x541bfc);})[_0x41d8cb(0x103)](function(_0x3fd309){const _0xf76dda=_0x41d8cb;logger[_0xf76dda(0x113)](JSON[_0xf76dda(0x142)](_0x3fd309));});});},Migration[a1094_0x302f6c(0x10e)]['dropTable']=function(_0x32c654){const _0x5e2beb=a1094_0x302f6c,_0x3ae366=this;this[_0x5e2beb(0x139)][_0x5e2beb(0x126)](function(){const _0x206aee=_0x5e2beb;return _0x3ae366[_0x206aee(0x13a)][_0x206aee(0x133)](_0x32c654,{'force':!![]})[_0x206aee(0x115)](function(){const _0x1042f9=_0x206aee;logger[_0x1042f9(0x113)](_0x1042f9(0x11a),_0x32c654);})[_0x206aee(0x103)](function(_0x54ac4c){const _0x2613cc=_0x206aee;logger[_0x2613cc(0x113)](JSON[_0x2613cc(0x142)](_0x54ac4c));});});},Migration['prototype'][a1094_0x302f6c(0x108)]=function(_0x5e5e36,_0x15ff3b,_0x4db5af){const _0x1d8e9e=a1094_0x302f6c,_0xec992d=this;this[_0x1d8e9e(0x139)]['enqueue'](function(){const _0x6368b2=_0x1d8e9e;return _0xec992d[_0x6368b2(0x13a)]['addIndex'](_0x5e5e36,_0x15ff3b,{'indexName':_0x4db5af})['then'](function(){const _0x78068f=_0x6368b2;logger[_0x78068f(0x113)]('addIndex\x20%s\x20%s\x20%s',_0x5e5e36,_0x15ff3b[_0x78068f(0x12e)](','),_0x4db5af);})[_0x6368b2(0x103)](function(_0x3a26c2){const _0x456430=_0x6368b2;logger[_0x456430(0x113)](JSON[_0x456430(0x142)](_0x3a26c2));});});},Migration[a1094_0x302f6c(0x10e)][a1094_0x302f6c(0x10a)]=function(_0x306052){const _0x2e492e=a1094_0x302f6c,_0x1da517=this;this[_0x2e492e(0x139)][_0x2e492e(0x126)](function(){const _0x3c4d81=_0x2e492e;return _0x1da517[_0x3c4d81(0x13a)][_0x3c4d81(0x12c)][_0x3c4d81(0x10a)](_0x306052)[_0x3c4d81(0x115)](function(){const _0x3bcebb=_0x3c4d81;logger[_0x3bcebb(0x113)](_0x3bcebb(0x114),_0x306052);})['catch'](function(_0xd9ba4f){const _0x37d6fb=_0x3c4d81;logger[_0x37d6fb(0x113)](JSON['stringify'](_0xd9ba4f));});});},Migration[a1094_0x302f6c(0x10e)][a1094_0x302f6c(0x147)]=function(_0x20898f,_0x17840b){const _0x286eb3=a1094_0x302f6c,_0x2f8496=this;this[_0x286eb3(0x139)][_0x286eb3(0x126)](function(){const _0x423760=_0x286eb3;return _0x2f8496['queryInterface'][_0x423760(0x147)](_0x20898f,_0x17840b)['then'](function(){const _0x330073=_0x423760;logger[_0x330073(0x113)](_0x330073(0x111),_0x17840b,_0x20898f);})[_0x423760(0x103)](function(_0x16008d){const _0x5b6a7d=_0x423760;logger[_0x5b6a7d(0x113)](util['inspect'](_0x16008d,{'showHidden':![],'depth':null}));});});},Migration[a1094_0x302f6c(0x10e)]['final']=function(_0x596ed1){const _0x156d87=a1094_0x302f6c;this[_0x156d87(0x139)][_0x156d87(0x126)](function(){return _0x596ed1();});},module[a1094_0x302f6c(0x110)]={'up':function(_0x43e7cc,_0x191cd0){return new Promise(function(_0x1ce4ac){const _0x3172ab=a1094_0x32e3,_0x56eb34=new Migration(_0x43e7cc);_0x56eb34[_0x3172ab(0x132)](_0x3172ab(0x13f),'ChatInternalMessageId',{'type':_0x191cd0[_0x3172ab(0x127)]}),_0x56eb34[_0x3172ab(0x132)](_0x3172ab(0x13f),'ChatGroupId',{'type':_0x191cd0[_0x3172ab(0x127)]}),_0x56eb34[_0x3172ab(0x10a)](_0x3172ab(0x112)),_0x56eb34[_0x3172ab(0x132)]('chat_interactions',_0x3172ab(0x123),{'type':_0x191cd0['ENUM']('in','out'),'defaultValue':'in','allowNull':![]}),_0x56eb34[_0x3172ab(0x132)]('chat_interactions',_0x3172ab(0x129),{'type':_0x191cd0[_0x3172ab(0x10b)]}),_0x56eb34[_0x3172ab(0x132)]('mail_interactions',_0x3172ab(0x123),{'type':_0x191cd0[_0x3172ab(0x146)]('in',_0x3172ab(0x148)),'defaultValue':'in','allowNull':![]}),_0x56eb34[_0x3172ab(0x132)](_0x3172ab(0x10d),'lastMsgAt',{'type':_0x191cd0[_0x3172ab(0x10b)]}),_0x56eb34[_0x3172ab(0x132)](_0x3172ab(0x116),_0x3172ab(0x123),{'type':_0x191cd0[_0x3172ab(0x146)]('in','out'),'defaultValue':'in','allowNull':![]}),_0x56eb34['addColumn'](_0x3172ab(0x116),'lastMsgAt',{'type':_0x191cd0[_0x3172ab(0x10b)]}),_0x56eb34[_0x3172ab(0x132)](_0x3172ab(0x12f),_0x3172ab(0x123),{'type':_0x191cd0[_0x3172ab(0x146)]('in','out'),'defaultValue':'in','allowNull':![]}),_0x56eb34['addColumn']('openchannel_interactions',_0x3172ab(0x129),{'type':_0x191cd0[_0x3172ab(0x10b)]}),_0x56eb34[_0x3172ab(0x132)](_0x3172ab(0x11f),_0x3172ab(0x123),{'type':_0x191cd0['ENUM']('in',_0x3172ab(0x148)),'defaultValue':'in','allowNull':![]}),_0x56eb34[_0x3172ab(0x132)]('fax_interactions',_0x3172ab(0x129),{'type':_0x191cd0['DATE']});const _0xc7114d=[_0x3172ab(0x144),'Mail',_0x3172ab(0x143),'Openchannel'];for(let _0xb1c678=0x0;_0xb1c678<_0xc7114d['length'];_0xb1c678++){_0x56eb34[_0x3172ab(0x10a)](_0x3172ab(0x13b)+_0xc7114d[_0xb1c678][_0x3172ab(0x13e)]()+_0x3172ab(0x140)+_0xc7114d[_0xb1c678]+_0x3172ab(0x122)+_0xc7114d[_0xb1c678][_0x3172ab(0x13e)]()+_0x3172ab(0x10c)+_0xc7114d[_0xb1c678]+'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'+_0xc7114d[_0xb1c678]+'InteractionId)\x20t2\x20SET\x20t1.lastMsgDirection\x20=\x20t2.direction,\x20t1.lastMsgAt\x20=\x20t2.createdAt\x20WHERE\x20t1.id\x20=\x20t2.'+_0xc7114d[_0xb1c678]+_0x3172ab(0x11b));}_0x56eb34[_0x3172ab(0x10a)](_0x3172ab(0x106)),_0x56eb34[_0x3172ab(0x105)](_0x3172ab(0x109),_0x3172ab(0x145),{'type':_0x191cd0[_0x3172ab(0x146)]('twilio',_0x3172ab(0x119),_0x3172ab(0x10f))}),_0x56eb34['addColumn'](_0x3172ab(0x13d),'note',{'type':_0x191cd0['STRING']}),_0x56eb34[_0x3172ab(0x108)](_0x3172ab(0x13c),[_0x3172ab(0x118)],'phone'),_0x56eb34[_0x3172ab(0x108)]('cm_hopper_final',[_0x3172ab(0x138)],_0x3172ab(0x138)),_0x56eb34[_0x3172ab(0x108)]('cm_hopper_history',[_0x3172ab(0x138)],_0x3172ab(0x138)),_0x56eb34['addIndex']('voice_recordings',[_0x3172ab(0x138)],_0x3172ab(0x138)),_0x56eb34[_0x3172ab(0x108)](_0x3172ab(0x121),[_0x3172ab(0x12a),_0x3172ab(0x135)],'membername_interface'),_0x56eb34[_0x3172ab(0x10a)](_0x3172ab(0x130)),_0x56eb34[_0x3172ab(0x10a)]('DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;'),_0x56eb34['query'](_0x3172ab(0x107)),_0x56eb34[_0x3172ab(0x10a)](_0x3172ab(0x137)),_0x56eb34[_0x3172ab(0x10a)](_0x3172ab(0x125)),_0x56eb34[_0x3172ab(0x10a)](_0x3172ab(0x128)),_0x56eb34[_0x3172ab(0x10a)](_0x3172ab(0x134)),_0x56eb34['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x276\x27,\x20\x27background\x27,\x20\x27silence/1\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x56eb34[_0x3172ab(0x10a)](_0x3172ab(0x11d)),_0x56eb34[_0x3172ab(0x10a)](_0x3172ab(0x11e)),_0x56eb34[_0x3172ab(0x10a)](_0x3172ab(0x141)),_0x56eb34['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\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());'),_0x56eb34[_0x3172ab(0x10a)](_0x3172ab(0x131)),_0x56eb34[_0x3172ab(0x10a)](_0x3172ab(0x117)),_0x56eb34['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2713\x27,\x20\x27Execif\x27,\x20\x27$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x56eb34[_0x3172ab(0x10a)](_0x3172ab(0x120)),_0x56eb34[_0x3172ab(0x12b)](_0x1ce4ac);});},'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 2605726..fb2eb89 100644 --- a/server/migrations/2.0.52.js +++ b/server/migrations/2.0.52.js @@ -1 +1 @@ -const a1095_0x5d4f=['removeColumn','addIndex','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','tools_canned_answers','enqueue','billableseconds','passwordExpiresDays','connectel','DATE','catch','#2196f3','sequence','report_dial','callRecordingEncryption','dropTable','addColumn','query\x20%s','sequelize','STRING','util','duration','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','MailAccountId','INTEGER','finally','inspect','link','info','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','dashboard_items','final','twilio','FaxAccountId','settings','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','OpenchannelAccountId','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','holdtime','Removed\x20column\x20%s\x20from\x20%s','../config/logger','query','changeColumn','migration','queryInterface','sms_accounts','addIndex\x20%s\x20%s\x20%s','skebby','users','passwordResetAt','stringify','type','table\x20dropped\x20%s','UPDATE\x20settings\x20SET\x20securePassword=false\x20WHERE\x20id=1','join','tail','UPDATE\x20users\x20SET\x20passwordResetAt=NOW()','#ffffff','Added\x20column\x20%s\x20to\x20%s','prototype','SmsAccountId','then'];(function(_0x6e8f08,_0x917fe4){const _0x5d4ff6=function(_0xf468ef){while(--_0xf468ef){_0x6e8f08['push'](_0x6e8f08['shift']());}};_0x5d4ff6(++_0x917fe4);}(a1095_0x5d4f,0x114));const a1095_0xf468=function(_0x6e8f08,_0x917fe4){_0x6e8f08=_0x6e8f08-0xb8;let _0x5d4ff6=a1095_0x5d4f[_0x6e8f08];return _0x5d4ff6;};const a1095_0x5b1b4a=a1095_0xf468;'use strict';const util=require(a1095_0x5b1b4a(0xe8)),logger=require(a1095_0x5b1b4a(0xbf))(a1095_0x5b1b4a(0xc2)),Sequence=function(){};Sequence[a1095_0x5b1b4a(0xd2)]['enqueue']=function(_0xa5a975){const _0x4563de=a1095_0x5b1b4a;this[_0x4563de(0xce)]=this['tail']?this[_0x4563de(0xce)][_0x4563de(0xed)](_0xa5a975):_0xa5a975();};const Migration=function(_0xdce643){const _0x5cbba2=a1095_0x5b1b4a;this[_0x5cbba2(0xc3)]=_0xdce643,this[_0x5cbba2(0xe0)]=new Sequence();};Migration[a1095_0x5b1b4a(0xd2)][a1095_0x5b1b4a(0xc1)]=function(_0x3ba44c,_0x29c47d,_0xfa2ca1){const _0x2a1742=a1095_0x5b1b4a,_0x1a7cd7=this;this[_0x2a1742(0xe0)][_0x2a1742(0xd9)](function(){const _0x3d93a5=_0x2a1742;return _0x1a7cd7['queryInterface'][_0x3d93a5(0xc1)](_0x3ba44c,_0x29c47d,_0xfa2ca1)[_0x3d93a5(0xd4)](function(){const _0xd0f49e=_0x3d93a5;logger[_0xd0f49e(0xf0)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x29c47d,_0x3ba44c);})[_0x3d93a5(0xde)](function(_0x52d3e8){const _0x9c0886=_0x3d93a5;logger[_0x9c0886(0xf0)](JSON[_0x9c0886(0xc9)](_0x52d3e8));});});},Migration[a1095_0x5b1b4a(0xd2)][a1095_0x5b1b4a(0xe4)]=function(_0x4ee4e6,_0x295ec5,_0x35217d){const _0x194a4b=a1095_0x5b1b4a,_0x3cbaaa=this;this[_0x194a4b(0xe0)]['enqueue'](function(){const _0x2e2c2d=_0x194a4b;return _0x3cbaaa[_0x2e2c2d(0xc3)]['addColumn'](_0x4ee4e6,_0x295ec5,_0x35217d)[_0x2e2c2d(0xd4)](function(){const _0x1ad302=_0x2e2c2d;logger['info'](_0x1ad302(0xd1),_0x295ec5,_0x4ee4e6);})[_0x2e2c2d(0xde)](function(_0x582589){const _0x2a258d=_0x2e2c2d;logger[_0x2a258d(0xf0)](JSON['stringify'](_0x582589));});});},Migration['prototype']['dropTable']=function(_0x548d87){const _0x2d66bc=a1095_0x5b1b4a,_0x563e69=this;this['sequence'][_0x2d66bc(0xd9)](function(){const _0x1c165d=_0x2d66bc;return _0x563e69[_0x1c165d(0xc3)][_0x1c165d(0xe3)](_0x548d87,{'force':!![]})[_0x1c165d(0xd4)](function(){const _0x13ead4=_0x1c165d;logger[_0x13ead4(0xf0)](_0x13ead4(0xcb),_0x548d87);})[_0x1c165d(0xde)](function(_0x4bc27c){const _0x7ad066=_0x1c165d;logger[_0x7ad066(0xf0)](JSON[_0x7ad066(0xc9)](_0x4bc27c));});});},Migration[a1095_0x5b1b4a(0xd2)][a1095_0x5b1b4a(0xd6)]=function(_0x396ae,_0x37dd47,_0x45b088){const _0x1bec72=a1095_0x5b1b4a,_0x51dd04=this;this['sequence'][_0x1bec72(0xd9)](function(){const _0x5d2aa3=_0x1bec72;return _0x51dd04['queryInterface']['addIndex'](_0x396ae,_0x37dd47,{'indexName':_0x45b088})[_0x5d2aa3(0xd4)](function(){const _0x4ee570=_0x5d2aa3;logger[_0x4ee570(0xf0)](_0x4ee570(0xc5),_0x396ae,_0x37dd47[_0x4ee570(0xcd)](','),_0x45b088);})[_0x5d2aa3(0xde)](function(_0x1fa5cd){const _0x49a6dd=_0x5d2aa3;logger['info'](JSON[_0x49a6dd(0xc9)](_0x1fa5cd));});});},Migration['prototype'][a1095_0x5b1b4a(0xc0)]=function(_0x2f4e7c){const _0x2b9681=a1095_0x5b1b4a,_0x204967=this;this[_0x2b9681(0xe0)]['enqueue'](function(){const _0x24443c=_0x2b9681;return _0x204967[_0x24443c(0xc3)][_0x24443c(0xe6)][_0x24443c(0xc0)](_0x2f4e7c)[_0x24443c(0xd4)](function(){const _0x40c0d8=_0x24443c;logger[_0x40c0d8(0xf0)](_0x40c0d8(0xe5),_0x2f4e7c);})[_0x24443c(0xde)](function(_0x324417){const _0x359fe8=_0x24443c;logger[_0x359fe8(0xf0)](JSON[_0x359fe8(0xc9)](_0x324417));});});},Migration[a1095_0x5b1b4a(0xd2)][a1095_0x5b1b4a(0xd5)]=function(_0xcea1a4,_0x190b82){const _0x43474a=a1095_0x5b1b4a,_0x3a7815=this;this[_0x43474a(0xe0)][_0x43474a(0xd9)](function(){const _0x4595cc=_0x43474a;return _0x3a7815[_0x4595cc(0xc3)]['removeColumn'](_0xcea1a4,_0x190b82)[_0x4595cc(0xd4)](function(){const _0x59b2d3=_0x4595cc;logger['info'](_0x59b2d3(0xbe),_0x190b82,_0xcea1a4);})[_0x4595cc(0xde)](function(_0x426b65){const _0x448589=_0x4595cc;logger[_0x448589(0xf0)](util[_0x448589(0xee)](_0x426b65,{'showHidden':![],'depth':null}));});});},Migration[a1095_0x5b1b4a(0xd2)]['final']=function(_0x59408){const _0xcdbcb4=a1095_0x5b1b4a;this['sequence'][_0xcdbcb4(0xd9)](function(){return _0x59408();});},module['exports']={'up':function(_0x3cf121,_0x498734){return new Promise(function(_0x1fee54){const _0x442284=a1095_0xf468,_0x42c66e=new Migration(_0x3cf121);_0x42c66e[_0x442284(0xe4)](_0x442284(0xb9),_0x442284(0xe2),{'type':_0x498734['BOOLEAN'],'defaultValue':![]}),_0x42c66e[_0x442284(0xe4)](_0x442284(0xb9),_0x442284(0xdb),{'type':_0x498734['INTEGER'](0xb),'defaultValue':0x5a}),_0x42c66e[_0x442284(0xc0)](_0x442284(0xcc)),_0x42c66e['addColumn']('tools_canned_answers',_0x442284(0xeb),{'type':_0x498734[_0x442284(0xec)]}),_0x42c66e[_0x442284(0xe4)]('tools_canned_answers',_0x442284(0xb8),{'type':_0x498734[_0x442284(0xec)]}),_0x42c66e[_0x442284(0xe4)]('tools_canned_answers',_0x442284(0xd3),{'type':_0x498734[_0x442284(0xec)]}),_0x42c66e[_0x442284(0xe4)](_0x442284(0xd8),_0x442284(0xbb),{'type':_0x498734['INTEGER']}),_0x42c66e[_0x442284(0xe4)](_0x442284(0xd8),'ChatWebsiteId',{'type':_0x498734[_0x442284(0xec)]}),_0x42c66e[_0x442284(0xc0)](_0x442284(0xea)),_0x42c66e['query'](_0x442284(0xbc)),_0x42c66e[_0x442284(0xc0)](_0x442284(0xd7)),_0x42c66e[_0x442284(0xc0)](_0x442284(0xba)),_0x42c66e[_0x442284(0xc0)](_0x442284(0xf1)),_0x42c66e['addColumn'](_0x442284(0xc7),_0x442284(0xc8),{'type':_0x498734[_0x442284(0xdd)],'defaultValue':null}),_0x42c66e[_0x442284(0xc0)](_0x442284(0xcf)),_0x42c66e[_0x442284(0xe4)](_0x442284(0xe1),_0x442284(0xe9),{'type':_0x498734[_0x442284(0xec)]}),_0x42c66e[_0x442284(0xe4)](_0x442284(0xe1),_0x442284(0xbd),{'type':_0x498734[_0x442284(0xec)]}),_0x42c66e['addColumn']('report_dial',_0x442284(0xda),{'type':_0x498734[_0x442284(0xec)]}),_0x42c66e[_0x442284(0xc1)](_0x442284(0xc4),_0x442284(0xca),{'type':_0x498734['ENUM'](_0x442284(0xf4),_0x442284(0xc6),_0x442284(0xdc),'clicksend')}),_0x42c66e[_0x442284(0xe4)](_0x442284(0xf2),'background',{'type':_0x498734[_0x442284(0xe7)],'allowNull':![],'defaultValue':_0x442284(0xd0),'validate':{'notEmpty':!![]}}),_0x42c66e[_0x442284(0xe4)]('dashboard_items','foreground',{'type':_0x498734[_0x442284(0xe7)],'allowNull':![],'defaultValue':_0x442284(0xdf),'validate':{'notEmpty':!![]}}),_0x42c66e[_0x442284(0xe4)](_0x442284(0xf2),_0x442284(0xef),{'type':_0x498734[_0x442284(0xe7)]}),_0x42c66e[_0x442284(0xf3)](_0x1fee54);});},'down':function(){}}; \ No newline at end of file +const a1095_0x4cf9=['#ffffff','duration','dropTable','passwordExpiresDays','table\x20dropped\x20%s','report_dial','settings','join','inspect','query\x20%s','then','ENUM','queryInterface','UPDATE\x20settings\x20SET\x20securePassword=false\x20WHERE\x20id=1','sms_accounts','STRING','tools_canned_answers','callRecordingEncryption','INTEGER','info','tail','final','prototype','sequence','SmsAccountId','connectel','../config/logger','ALTER\x20TABLE\x20`tools_canned_answers`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_1`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`MailAccountId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20mail_accounts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','stringify','dashboard_items','util','addIndex\x20%s\x20%s\x20%s','catch','migration','#2196f3','enqueue','twilio','removeColumn','DATE','addIndex','OpenchannelAccountId','passwordResetAt','finally','query','link','addColumn','UPDATE\x20users\x20SET\x20passwordResetAt=NOW()','Changed\x20column\x20%s\x20in\x20table\x20%s','background','exports','skebby','BOOLEAN','ChatWebsiteId','type','holdtime','ALTER\x20TABLE\x20`tools_canned_answers`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_3`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`SmsAccountId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20sms_accounts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','clicksend','Removed\x20column\x20%s\x20from\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','changeColumn','FaxAccountId'];(function(_0x2d229c,_0x4427b9){const _0x4cf994=function(_0x1cb922){while(--_0x1cb922){_0x2d229c['push'](_0x2d229c['shift']());}};_0x4cf994(++_0x4427b9);}(a1095_0x4cf9,0x1eb));const a1095_0x1cb9=function(_0x2d229c,_0x4427b9){_0x2d229c=_0x2d229c-0x1b3;let _0x4cf994=a1095_0x4cf9[_0x2d229c];return _0x4cf994;};const a1095_0x22b13c=a1095_0x1cb9;'use strict';const util=require(a1095_0x22b13c(0x1ce)),logger=require(a1095_0x22b13c(0x1ca))(a1095_0x22b13c(0x1d1)),Sequence=function(){};Sequence[a1095_0x22b13c(0x1c6)][a1095_0x22b13c(0x1d3)]=function(_0x311e69){const _0x253311=a1095_0x22b13c;this[_0x253311(0x1c4)]=this['tail']?this[_0x253311(0x1c4)][_0x253311(0x1da)](_0x311e69):_0x311e69();};const Migration=function(_0x11f061){const _0xbdc4a6=a1095_0x22b13c;this[_0xbdc4a6(0x1bc)]=_0x11f061,this[_0xbdc4a6(0x1c7)]=new Sequence();};Migration[a1095_0x22b13c(0x1c6)][a1095_0x22b13c(0x1eb)]=function(_0x401855,_0x488f76,_0x54e4c4){const _0x36604e=this;this['sequence']['enqueue'](function(){const _0x4f0d97=a1095_0x1cb9;return _0x36604e[_0x4f0d97(0x1bc)]['changeColumn'](_0x401855,_0x488f76,_0x54e4c4)[_0x4f0d97(0x1ba)](function(){const _0x2a9157=_0x4f0d97;logger[_0x2a9157(0x1c3)](_0x2a9157(0x1df),_0x488f76,_0x401855);})[_0x4f0d97(0x1d0)](function(_0x3504a3){const _0x484fe4=_0x4f0d97;logger[_0x484fe4(0x1c3)](JSON[_0x484fe4(0x1cc)](_0x3504a3));});});},Migration['prototype'][a1095_0x22b13c(0x1dd)]=function(_0x53fcaf,_0x46a3c4,_0x4e3d80){const _0x44c28d=a1095_0x22b13c,_0x5639ba=this;this[_0x44c28d(0x1c7)][_0x44c28d(0x1d3)](function(){const _0x30faf8=_0x44c28d;return _0x5639ba[_0x30faf8(0x1bc)][_0x30faf8(0x1dd)](_0x53fcaf,_0x46a3c4,_0x4e3d80)[_0x30faf8(0x1ba)](function(){const _0x304020=_0x30faf8;logger[_0x304020(0x1c3)]('Added\x20column\x20%s\x20to\x20%s',_0x46a3c4,_0x53fcaf);})[_0x30faf8(0x1d0)](function(_0x154716){const _0x315b28=_0x30faf8;logger[_0x315b28(0x1c3)](JSON[_0x315b28(0x1cc)](_0x154716));});});},Migration['prototype'][a1095_0x22b13c(0x1ef)]=function(_0x283b88){const _0x2a1220=a1095_0x22b13c,_0x592295=this;this[_0x2a1220(0x1c7)]['enqueue'](function(){const _0x2dc546=_0x2a1220;return _0x592295['queryInterface'][_0x2dc546(0x1ef)](_0x283b88,{'force':!![]})[_0x2dc546(0x1ba)](function(){const _0x400b9f=_0x2dc546;logger[_0x400b9f(0x1c3)](_0x400b9f(0x1b4),_0x283b88);})[_0x2dc546(0x1d0)](function(_0x4a5629){const _0x2d7e9e=_0x2dc546;logger[_0x2d7e9e(0x1c3)](JSON['stringify'](_0x4a5629));});});},Migration['prototype']['addIndex']=function(_0x418c57,_0x404b4a,_0x2cf719){const _0x4679a8=a1095_0x22b13c,_0x37dd80=this;this[_0x4679a8(0x1c7)][_0x4679a8(0x1d3)](function(){const _0x343c9e=_0x4679a8;return _0x37dd80[_0x343c9e(0x1bc)][_0x343c9e(0x1d7)](_0x418c57,_0x404b4a,{'indexName':_0x2cf719})[_0x343c9e(0x1ba)](function(){const _0x3f949e=_0x343c9e;logger['info'](_0x3f949e(0x1cf),_0x418c57,_0x404b4a[_0x3f949e(0x1b7)](','),_0x2cf719);})['catch'](function(_0x4be052){const _0x3e1e5e=_0x343c9e;logger[_0x3e1e5e(0x1c3)](JSON[_0x3e1e5e(0x1cc)](_0x4be052));});});},Migration[a1095_0x22b13c(0x1c6)][a1095_0x22b13c(0x1db)]=function(_0x5f34aa){const _0xce5c98=a1095_0x22b13c,_0x12fe9b=this;this['sequence'][_0xce5c98(0x1d3)](function(){const _0x277976=_0xce5c98;return _0x12fe9b[_0x277976(0x1bc)]['sequelize'][_0x277976(0x1db)](_0x5f34aa)[_0x277976(0x1ba)](function(){const _0x151afd=_0x277976;logger[_0x151afd(0x1c3)](_0x151afd(0x1b9),_0x5f34aa);})[_0x277976(0x1d0)](function(_0x20f97c){const _0x64c2f8=_0x277976;logger['info'](JSON[_0x64c2f8(0x1cc)](_0x20f97c));});});},Migration[a1095_0x22b13c(0x1c6)][a1095_0x22b13c(0x1d5)]=function(_0x526a4b,_0x23f24c){const _0x29f296=a1095_0x22b13c,_0x278842=this;this['sequence'][_0x29f296(0x1d3)](function(){const _0x221ec0=_0x29f296;return _0x278842[_0x221ec0(0x1bc)]['removeColumn'](_0x526a4b,_0x23f24c)[_0x221ec0(0x1ba)](function(){const _0xfd5ac2=_0x221ec0;logger[_0xfd5ac2(0x1c3)](_0xfd5ac2(0x1e9),_0x23f24c,_0x526a4b);})[_0x221ec0(0x1d0)](function(_0x593c88){const _0x131174=_0x221ec0;logger[_0x131174(0x1c3)](util[_0x131174(0x1b8)](_0x593c88,{'showHidden':![],'depth':null}));});});},Migration[a1095_0x22b13c(0x1c6)][a1095_0x22b13c(0x1c5)]=function(_0x30d10d){const _0x1d5619=a1095_0x22b13c;this[_0x1d5619(0x1c7)][_0x1d5619(0x1d3)](function(){return _0x30d10d();});},module[a1095_0x22b13c(0x1e1)]={'up':function(_0x4cb1b9,_0x544c8a){return new Promise(function(_0x510394){const _0x2b83ee=a1095_0x1cb9,_0x5f1e45=new Migration(_0x4cb1b9);_0x5f1e45['addColumn']('settings',_0x2b83ee(0x1c1),{'type':_0x544c8a[_0x2b83ee(0x1e3)],'defaultValue':![]}),_0x5f1e45['addColumn'](_0x2b83ee(0x1b6),_0x2b83ee(0x1b3),{'type':_0x544c8a[_0x2b83ee(0x1c2)](0xb),'defaultValue':0x5a}),_0x5f1e45[_0x2b83ee(0x1db)](_0x2b83ee(0x1bd)),_0x5f1e45[_0x2b83ee(0x1dd)](_0x2b83ee(0x1c0),'MailAccountId',{'type':_0x544c8a[_0x2b83ee(0x1c2)]}),_0x5f1e45['addColumn']('tools_canned_answers',_0x2b83ee(0x1ec),{'type':_0x544c8a['INTEGER']}),_0x5f1e45[_0x2b83ee(0x1dd)]('tools_canned_answers',_0x2b83ee(0x1c8),{'type':_0x544c8a['INTEGER']}),_0x5f1e45[_0x2b83ee(0x1dd)](_0x2b83ee(0x1c0),_0x2b83ee(0x1d8),{'type':_0x544c8a['INTEGER']}),_0x5f1e45[_0x2b83ee(0x1dd)](_0x2b83ee(0x1c0),_0x2b83ee(0x1e4),{'type':_0x544c8a['INTEGER']}),_0x5f1e45[_0x2b83ee(0x1db)](_0x2b83ee(0x1cb)),_0x5f1e45[_0x2b83ee(0x1db)](_0x2b83ee(0x1ea)),_0x5f1e45[_0x2b83ee(0x1db)](_0x2b83ee(0x1e7)),_0x5f1e45['query']('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'),_0x5f1e45[_0x2b83ee(0x1db)]('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'),_0x5f1e45['addColumn']('users',_0x2b83ee(0x1d9),{'type':_0x544c8a[_0x2b83ee(0x1d6)],'defaultValue':null}),_0x5f1e45['query'](_0x2b83ee(0x1de)),_0x5f1e45[_0x2b83ee(0x1dd)](_0x2b83ee(0x1b5),_0x2b83ee(0x1ee),{'type':_0x544c8a['INTEGER']}),_0x5f1e45['addColumn'](_0x2b83ee(0x1b5),_0x2b83ee(0x1e6),{'type':_0x544c8a[_0x2b83ee(0x1c2)]}),_0x5f1e45[_0x2b83ee(0x1dd)](_0x2b83ee(0x1b5),'billableseconds',{'type':_0x544c8a[_0x2b83ee(0x1c2)]}),_0x5f1e45['changeColumn'](_0x2b83ee(0x1be),_0x2b83ee(0x1e5),{'type':_0x544c8a[_0x2b83ee(0x1bb)](_0x2b83ee(0x1d4),_0x2b83ee(0x1e2),_0x2b83ee(0x1c9),_0x2b83ee(0x1e8))}),_0x5f1e45[_0x2b83ee(0x1dd)](_0x2b83ee(0x1cd),_0x2b83ee(0x1e0),{'type':_0x544c8a[_0x2b83ee(0x1bf)],'allowNull':![],'defaultValue':_0x2b83ee(0x1ed),'validate':{'notEmpty':!![]}}),_0x5f1e45['addColumn'](_0x2b83ee(0x1cd),'foreground',{'type':_0x544c8a[_0x2b83ee(0x1bf)],'allowNull':![],'defaultValue':_0x2b83ee(0x1d2),'validate':{'notEmpty':!![]}}),_0x5f1e45[_0x2b83ee(0x1dd)](_0x2b83ee(0x1cd),_0x2b83ee(0x1dc),{'type':_0x544c8a[_0x2b83ee(0x1bf)]}),_0x5f1e45[_0x2b83ee(0x1c5)](_0x510394);});},'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 b0fb84d..924432f 100644 --- a/server/migrations/2.0.53.js +++ b/server/migrations/2.0.53.js @@ -1 +1 @@ -const a1096_0x83b9=['ENUM','dropTable','migration','STRING','table\x20dropped\x20%s','../config/logger','UPDATE\x20users\x20SET\x20insecure=NULL\x20WHERE\x20insecure=\x27port,invite\x27','info','queryInterface','stringify','csv','removeColumn','skebby','inspect','query','tail','then','final','plivo','Changed\x20column\x20%s\x20in\x20table\x20%s','UPDATE\x20analytics_extracted_reports\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27','cm_contacts','TEXT','join','xls','output','connectel','analytics_extracted_reports','twilio','prototype','sequelize','exports','type','users','enqueue','insecure','changeColumn','sms_accounts','pdf','catch','addIndex','xlsx','sequence','query\x20%s'];(function(_0x17940f,_0x5330b1){const _0x83b978=function(_0x413ca6){while(--_0x413ca6){_0x17940f['push'](_0x17940f['shift']());}};_0x83b978(++_0x5330b1);}(a1096_0x83b9,0x9b));const a1096_0x413c=function(_0x17940f,_0x5330b1){_0x17940f=_0x17940f-0x130;let _0x83b978=a1096_0x83b9[_0x17940f];return _0x83b978;};const a1096_0x4427a8=a1096_0x413c;'use strict';const util=require('util'),logger=require(a1096_0x4427a8(0x14a))(a1096_0x4427a8(0x147)),Sequence=function(){};Sequence['prototype'][a1096_0x4427a8(0x13b)]=function(_0x48dab5){const _0x2a1627=a1096_0x4427a8;this[_0x2a1627(0x154)]=this[_0x2a1627(0x154)]?this[_0x2a1627(0x154)]['finally'](_0x48dab5):_0x48dab5();};const Migration=function(_0x196f07){const _0x21691c=a1096_0x4427a8;this[_0x21691c(0x14d)]=_0x196f07,this[_0x21691c(0x143)]=new Sequence();};Migration[a1096_0x4427a8(0x136)][a1096_0x4427a8(0x13d)]=function(_0x673214,_0x547179,_0x3044c2){const _0x531c32=a1096_0x4427a8,_0x1a66f1=this;this[_0x531c32(0x143)][_0x531c32(0x13b)](function(){const _0x3793e3=_0x531c32;return _0x1a66f1[_0x3793e3(0x14d)][_0x3793e3(0x13d)](_0x673214,_0x547179,_0x3044c2)[_0x3793e3(0x155)](function(){const _0x7a3adf=_0x3793e3;logger[_0x7a3adf(0x14c)](_0x7a3adf(0x158),_0x547179,_0x673214);})['catch'](function(_0x33fac7){const _0x30a1ee=_0x3793e3;logger['info'](JSON[_0x30a1ee(0x14e)](_0x33fac7));});});},Migration[a1096_0x4427a8(0x136)]['addColumn']=function(_0x128669,_0x4956c5,_0x214a8b){const _0x4fd205=a1096_0x4427a8,_0x56e413=this;this['sequence'][_0x4fd205(0x13b)](function(){const _0x3b81b0=_0x4fd205;return _0x56e413['queryInterface']['addColumn'](_0x128669,_0x4956c5,_0x214a8b)[_0x3b81b0(0x155)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x4956c5,_0x128669);})[_0x3b81b0(0x140)](function(_0x5190d2){const _0x15d785=_0x3b81b0;logger[_0x15d785(0x14c)](JSON[_0x15d785(0x14e)](_0x5190d2));});});},Migration[a1096_0x4427a8(0x136)][a1096_0x4427a8(0x146)]=function(_0x4b8d73){const _0x577d18=a1096_0x4427a8,_0x34d63b=this;this[_0x577d18(0x143)]['enqueue'](function(){const _0xb983f3=_0x577d18;return _0x34d63b[_0xb983f3(0x14d)][_0xb983f3(0x146)](_0x4b8d73,{'force':!![]})[_0xb983f3(0x155)](function(){const _0x275f6c=_0xb983f3;logger[_0x275f6c(0x14c)](_0x275f6c(0x149),_0x4b8d73);})['catch'](function(_0x1d1f7d){logger['info'](JSON['stringify'](_0x1d1f7d));});});},Migration['prototype']['addIndex']=function(_0xdfbe7b,_0xee4899,_0x551c46){const _0x3464fb=a1096_0x4427a8,_0x23dd0e=this;this[_0x3464fb(0x143)]['enqueue'](function(){const _0x6d339b=_0x3464fb;return _0x23dd0e[_0x6d339b(0x14d)][_0x6d339b(0x141)](_0xdfbe7b,_0xee4899,{'indexName':_0x551c46})[_0x6d339b(0x155)](function(){const _0x3a3867=_0x6d339b;logger[_0x3a3867(0x14c)]('addIndex\x20%s\x20%s\x20%s',_0xdfbe7b,_0xee4899[_0x3a3867(0x130)](','),_0x551c46);})['catch'](function(_0x251878){const _0x558db9=_0x6d339b;logger[_0x558db9(0x14c)](JSON[_0x558db9(0x14e)](_0x251878));});});},Migration[a1096_0x4427a8(0x136)][a1096_0x4427a8(0x153)]=function(_0x21486a){const _0x2f47ff=a1096_0x4427a8,_0x4b8990=this;this[_0x2f47ff(0x143)][_0x2f47ff(0x13b)](function(){const _0x3285cf=_0x2f47ff;return _0x4b8990[_0x3285cf(0x14d)][_0x3285cf(0x137)]['query'](_0x21486a)[_0x3285cf(0x155)](function(){const _0x432f2b=_0x3285cf;logger['info'](_0x432f2b(0x144),_0x21486a);})[_0x3285cf(0x140)](function(_0xa5add4){logger['info'](JSON['stringify'](_0xa5add4));});});},Migration[a1096_0x4427a8(0x136)][a1096_0x4427a8(0x150)]=function(_0x3a3ec4,_0x5e35fa){const _0x3005f0=this;this['sequence']['enqueue'](function(){const _0x553bc5=a1096_0x413c;return _0x3005f0[_0x553bc5(0x14d)][_0x553bc5(0x150)](_0x3a3ec4,_0x5e35fa)[_0x553bc5(0x155)](function(){const _0x53238e=_0x553bc5;logger[_0x53238e(0x14c)]('Removed\x20column\x20%s\x20from\x20%s',_0x5e35fa,_0x3a3ec4);})[_0x553bc5(0x140)](function(_0x59e02e){const _0x17bd62=_0x553bc5;logger['info'](util[_0x17bd62(0x152)](_0x59e02e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1096_0x4427a8(0x156)]=function(_0x1f65a1){const _0x3032d1=a1096_0x4427a8;this[_0x3032d1(0x143)][_0x3032d1(0x13b)](function(){return _0x1f65a1();});},module[a1096_0x4427a8(0x138)]={'up':function(_0x43eeb5,_0x2d4af2){return new Promise(function(_0x49285d){const _0x442cbc=a1096_0x413c,_0xa3e28f=new Migration(_0x43eeb5);_0xa3e28f[_0x442cbc(0x13d)](_0x442cbc(0x15a),'description',{'type':_0x2d4af2[_0x442cbc(0x15b)]}),_0xa3e28f[_0x442cbc(0x13d)](_0x442cbc(0x13e),_0x442cbc(0x139),{'type':_0x2d4af2['ENUM'](_0x442cbc(0x135),_0x442cbc(0x151),_0x442cbc(0x133),'clicksend',_0x442cbc(0x157))}),_0xa3e28f['changeColumn'](_0x442cbc(0x134),_0x442cbc(0x132),{'type':_0x2d4af2['ENUM']('csv',_0x442cbc(0x13f),_0x442cbc(0x131),_0x442cbc(0x142)),'allowNull':![],'defaultValue':_0x442cbc(0x14f)}),_0xa3e28f[_0x442cbc(0x153)](_0x442cbc(0x159)),_0xa3e28f[_0x442cbc(0x13d)](_0x442cbc(0x134),_0x442cbc(0x132),{'type':_0x2d4af2[_0x442cbc(0x145)](_0x442cbc(0x14f),_0x442cbc(0x13f),_0x442cbc(0x142)),'allowNull':![],'defaultValue':_0x442cbc(0x14f)}),_0xa3e28f[_0x442cbc(0x153)](_0x442cbc(0x14b)),_0xa3e28f[_0x442cbc(0x13d)](_0x442cbc(0x13a),_0x442cbc(0x13c),{'type':_0x2d4af2[_0x442cbc(0x148)],'allowNull':!![]}),_0xa3e28f[_0x442cbc(0x156)](_0x49285d);});},'down':function(){}}; \ No newline at end of file +const a1096_0x38a1=['catch','UPDATE\x20analytics_extracted_reports\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27','output','../config/logger','join','stringify','Added\x20column\x20%s\x20to\x20%s','tail','xls','skebby','STRING','Removed\x20column\x20%s\x20from\x20%s','csv','then','query\x20%s','analytics_extracted_reports','util','pdf','queryInterface','inspect','prototype','type','sequence','removeColumn','UPDATE\x20users\x20SET\x20insecure=NULL\x20WHERE\x20insecure=\x27port,invite\x27','query','changeColumn','enqueue','plivo','migration','table\x20dropped\x20%s','insecure','Changed\x20column\x20%s\x20in\x20table\x20%s','ENUM','description','sequelize','info','clicksend','addColumn','final','connectel','xlsx','addIndex'];(function(_0x264eba,_0x2817dd){const _0x38a1b3=function(_0x48d5d9){while(--_0x48d5d9){_0x264eba['push'](_0x264eba['shift']());}};_0x38a1b3(++_0x2817dd);}(a1096_0x38a1,0xac));const a1096_0x48d5=function(_0x264eba,_0x2817dd){_0x264eba=_0x264eba-0x193;let _0x38a1b3=a1096_0x38a1[_0x264eba];return _0x38a1b3;};const a1096_0x41b790=a1096_0x48d5;'use strict';const util=require(a1096_0x41b790(0x1a3)),logger=require(a1096_0x41b790(0x196))(a1096_0x41b790(0x1b0)),Sequence=function(){};Sequence[a1096_0x41b790(0x1a7)][a1096_0x41b790(0x1ae)]=function(_0x586ac3){const _0x33e059=a1096_0x41b790;this['tail']=this['tail']?this[_0x33e059(0x19a)]['finally'](_0x586ac3):_0x586ac3();};const Migration=function(_0x153e0b){const _0x4e99ea=a1096_0x41b790;this[_0x4e99ea(0x1a5)]=_0x153e0b,this[_0x4e99ea(0x1a9)]=new Sequence();};Migration[a1096_0x41b790(0x1a7)][a1096_0x41b790(0x1ad)]=function(_0x31f183,_0x3e4bc0,_0x11380b){const _0x81e651=a1096_0x41b790,_0x36c10c=this;this[_0x81e651(0x1a9)][_0x81e651(0x1ae)](function(){return _0x36c10c['queryInterface']['changeColumn'](_0x31f183,_0x3e4bc0,_0x11380b)['then'](function(){const _0x5ac62f=a1096_0x48d5;logger['info'](_0x5ac62f(0x1b3),_0x3e4bc0,_0x31f183);})['catch'](function(_0x21ef25){const _0x2cd856=a1096_0x48d5;logger[_0x2cd856(0x1b7)](JSON[_0x2cd856(0x198)](_0x21ef25));});});},Migration['prototype'][a1096_0x41b790(0x1b9)]=function(_0x68fee4,_0x1532a6,_0x123de0){const _0x515c10=this;this['sequence']['enqueue'](function(){const _0x1dd224=a1096_0x48d5;return _0x515c10['queryInterface'][_0x1dd224(0x1b9)](_0x68fee4,_0x1532a6,_0x123de0)[_0x1dd224(0x1a0)](function(){const _0x95bba9=_0x1dd224;logger[_0x95bba9(0x1b7)](_0x95bba9(0x199),_0x1532a6,_0x68fee4);})[_0x1dd224(0x193)](function(_0x4d825f){const _0x169eec=_0x1dd224;logger[_0x169eec(0x1b7)](JSON['stringify'](_0x4d825f));});});},Migration[a1096_0x41b790(0x1a7)]['dropTable']=function(_0x547091){const _0x37dc2a=a1096_0x41b790,_0x2c3b99=this;this['sequence'][_0x37dc2a(0x1ae)](function(){const _0x41a530=_0x37dc2a;return _0x2c3b99['queryInterface']['dropTable'](_0x547091,{'force':!![]})[_0x41a530(0x1a0)](function(){const _0x401bfe=_0x41a530;logger['info'](_0x401bfe(0x1b1),_0x547091);})['catch'](function(_0x3a0ece){const _0x596289=_0x41a530;logger[_0x596289(0x1b7)](JSON[_0x596289(0x198)](_0x3a0ece));});});},Migration['prototype'][a1096_0x41b790(0x1bd)]=function(_0x4340f9,_0x2f1a4b,_0x38ce79){const _0x5673b8=a1096_0x41b790,_0x382d3a=this;this[_0x5673b8(0x1a9)][_0x5673b8(0x1ae)](function(){const _0x3c3745=_0x5673b8;return _0x382d3a['queryInterface'][_0x3c3745(0x1bd)](_0x4340f9,_0x2f1a4b,{'indexName':_0x38ce79})[_0x3c3745(0x1a0)](function(){const _0x309454=_0x3c3745;logger[_0x309454(0x1b7)]('addIndex\x20%s\x20%s\x20%s',_0x4340f9,_0x2f1a4b[_0x309454(0x197)](','),_0x38ce79);})[_0x3c3745(0x193)](function(_0x3988b0){const _0x187e3c=_0x3c3745;logger[_0x187e3c(0x1b7)](JSON[_0x187e3c(0x198)](_0x3988b0));});});},Migration[a1096_0x41b790(0x1a7)]['query']=function(_0x9f60d3){const _0x359fc1=a1096_0x41b790,_0x1ac473=this;this[_0x359fc1(0x1a9)][_0x359fc1(0x1ae)](function(){const _0x117553=_0x359fc1;return _0x1ac473[_0x117553(0x1a5)][_0x117553(0x1b6)][_0x117553(0x1ac)](_0x9f60d3)[_0x117553(0x1a0)](function(){const _0x384db2=_0x117553;logger[_0x384db2(0x1b7)](_0x384db2(0x1a1),_0x9f60d3);})[_0x117553(0x193)](function(_0x4c30bb){logger['info'](JSON['stringify'](_0x4c30bb));});});},Migration[a1096_0x41b790(0x1a7)][a1096_0x41b790(0x1aa)]=function(_0x3f0612,_0x307867){const _0x20fe71=a1096_0x41b790,_0x441e70=this;this['sequence'][_0x20fe71(0x1ae)](function(){const _0x12217f=_0x20fe71;return _0x441e70[_0x12217f(0x1a5)]['removeColumn'](_0x3f0612,_0x307867)[_0x12217f(0x1a0)](function(){const _0x35f125=_0x12217f;logger[_0x35f125(0x1b7)](_0x35f125(0x19e),_0x307867,_0x3f0612);})['catch'](function(_0x454c1b){const _0x12e6d1=_0x12217f;logger[_0x12e6d1(0x1b7)](util[_0x12e6d1(0x1a6)](_0x454c1b,{'showHidden':![],'depth':null}));});});},Migration[a1096_0x41b790(0x1a7)][a1096_0x41b790(0x1ba)]=function(_0x34dab5){const _0x1d5dc6=a1096_0x41b790;this[_0x1d5dc6(0x1a9)][_0x1d5dc6(0x1ae)](function(){return _0x34dab5();});},module['exports']={'up':function(_0x4c5b41,_0x5cdfc9){return new Promise(function(_0x473a9b){const _0x51b602=a1096_0x48d5,_0x1d0076=new Migration(_0x4c5b41);_0x1d0076[_0x51b602(0x1ad)]('cm_contacts',_0x51b602(0x1b5),{'type':_0x5cdfc9['TEXT']}),_0x1d0076[_0x51b602(0x1ad)]('sms_accounts',_0x51b602(0x1a8),{'type':_0x5cdfc9[_0x51b602(0x1b4)]('twilio',_0x51b602(0x19c),_0x51b602(0x1bb),_0x51b602(0x1b8),_0x51b602(0x1af))}),_0x1d0076[_0x51b602(0x1ad)](_0x51b602(0x1a2),_0x51b602(0x195),{'type':_0x5cdfc9[_0x51b602(0x1b4)](_0x51b602(0x19f),_0x51b602(0x1a4),_0x51b602(0x19b),_0x51b602(0x1bc)),'allowNull':![],'defaultValue':_0x51b602(0x19f)}),_0x1d0076[_0x51b602(0x1ac)](_0x51b602(0x194)),_0x1d0076[_0x51b602(0x1ad)]('analytics_extracted_reports','output',{'type':_0x5cdfc9['ENUM']('csv',_0x51b602(0x1a4),_0x51b602(0x1bc)),'allowNull':![],'defaultValue':_0x51b602(0x19f)}),_0x1d0076['query'](_0x51b602(0x1ab)),_0x1d0076[_0x51b602(0x1ad)]('users',_0x51b602(0x1b2),{'type':_0x5cdfc9[_0x51b602(0x19d)],'allowNull':!![]}),_0x1d0076['final'](_0x473a9b);});},'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 09c2c30..9bf4b84 100644 --- a/server/migrations/2.0.54.js +++ b/server/migrations/2.0.54.js @@ -1 +1 @@ -const a1097_0x1816=['STRING','output','join','signature','UPDATE\x20users\x20SET\x20transport=\x27wss\x27\x20WHERE\x20avpf\x20IS\x20NOT\x20NULL','stringify','Added\x20column\x20%s\x20to\x20%s','ENUM','fontSize','../config/logger','addColumn','mail_accounts','changeColumn','xlsx','then','#ffffff','dropTable','sequence','query\x20%s','table\x20dropped\x20%s','queryInterface','sequelize','UPDATE\x20users\x20SET\x20nat=\x27force_rport,comedia\x27\x20WHERE\x20nat\x20IS\x20NULL','query','csv','Arial,Helvetica,sans-serif','INTEGER','prototype','chat_websites','inspect','catch','tail','removeColumn','textColor','timezone','Changed\x20column\x20%s\x20in\x20table\x20%s','UPDATE\x20tools_schedules\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27','renameColumn','final','pdf','exports','BOOLEAN','info','tools_schedules','Removed\x20column\x20%s\x20from\x20%s','UNSIGNED','UPDATE\x20users\x20SET\x20transport=\x27udp\x27\x20WHERE\x20avpf\x20IS\x20NULL\x20AND\x20transport\x20IS\x20NULL','fontFamily','addIndex','enqueue'];(function(_0x3aa2b7,_0x3f8e0e){const _0x181659=function(_0x50b3be){while(--_0x50b3be){_0x3aa2b7['push'](_0x3aa2b7['shift']());}};_0x181659(++_0x3f8e0e);}(a1097_0x1816,0x1b7));const a1097_0x50b3=function(_0x3aa2b7,_0x3f8e0e){_0x3aa2b7=_0x3aa2b7-0xce;let _0x181659=a1097_0x1816[_0x3aa2b7];return _0x181659;};const a1097_0x3b6dae=a1097_0x50b3;'use strict';const util=require('util'),logger=require(a1097_0x3b6dae(0xe2))('migration'),Sequence=function(){};Sequence[a1097_0x3b6dae(0xf4)][a1097_0x3b6dae(0xd8)]=function(_0x556e34){const _0xfac255=a1097_0x3b6dae;this[_0xfac255(0xf8)]=this['tail']?this['tail']['finally'](_0x556e34):_0x556e34();};const Migration=function(_0x2ce706){const _0x3a90b1=a1097_0x3b6dae;this[_0x3a90b1(0xed)]=_0x2ce706,this[_0x3a90b1(0xea)]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x526a0f,_0x189610,_0x4554ca){const _0x5f4c00=a1097_0x3b6dae,_0x484960=this;this['sequence'][_0x5f4c00(0xd8)](function(){const _0x299fa3=_0x5f4c00;return _0x484960[_0x299fa3(0xed)][_0x299fa3(0xe5)](_0x526a0f,_0x189610,_0x4554ca)[_0x299fa3(0xe7)](function(){const _0x16090c=_0x299fa3;logger['info'](_0x16090c(0xfc),_0x189610,_0x526a0f);})[_0x299fa3(0xf7)](function(_0x5a8a43){const _0x2faf1b=_0x299fa3;logger['info'](JSON[_0x2faf1b(0xde)](_0x5a8a43));});});},Migration[a1097_0x3b6dae(0xf4)][a1097_0x3b6dae(0xe3)]=function(_0xbe8256,_0x3c6f1a,_0x46eba4){const _0x12ea04=a1097_0x3b6dae,_0x299b5e=this;this[_0x12ea04(0xea)][_0x12ea04(0xd8)](function(){const _0x382a21=_0x12ea04;return _0x299b5e['queryInterface'][_0x382a21(0xe3)](_0xbe8256,_0x3c6f1a,_0x46eba4)['then'](function(){const _0x19bbb6=_0x382a21;logger[_0x19bbb6(0xd1)](_0x19bbb6(0xdf),_0x3c6f1a,_0xbe8256);})[_0x382a21(0xf7)](function(_0x5151f9){const _0xa12102=_0x382a21;logger[_0xa12102(0xd1)](JSON[_0xa12102(0xde)](_0x5151f9));});});},Migration['prototype'][a1097_0x3b6dae(0xe9)]=function(_0x139562){const _0x5a95f1=a1097_0x3b6dae,_0x2d8038=this;this[_0x5a95f1(0xea)][_0x5a95f1(0xd8)](function(){const _0x29df52=_0x5a95f1;return _0x2d8038[_0x29df52(0xed)][_0x29df52(0xe9)](_0x139562,{'force':!![]})[_0x29df52(0xe7)](function(){const _0x516960=_0x29df52;logger[_0x516960(0xd1)](_0x516960(0xec),_0x139562);})['catch'](function(_0x263411){const _0x3015cb=_0x29df52;logger['info'](JSON[_0x3015cb(0xde)](_0x263411));});});},Migration[a1097_0x3b6dae(0xf4)][a1097_0x3b6dae(0xd7)]=function(_0x1ace02,_0x5c3ddb,_0x5e74f8){const _0x39cc36=a1097_0x3b6dae,_0x5bf32e=this;this[_0x39cc36(0xea)][_0x39cc36(0xd8)](function(){const _0x1de264=_0x39cc36;return _0x5bf32e[_0x1de264(0xed)][_0x1de264(0xd7)](_0x1ace02,_0x5c3ddb,{'indexName':_0x5e74f8})[_0x1de264(0xe7)](function(){const _0x183135=_0x1de264;logger[_0x183135(0xd1)]('addIndex\x20%s\x20%s\x20%s',_0x1ace02,_0x5c3ddb[_0x183135(0xdb)](','),_0x5e74f8);})[_0x1de264(0xf7)](function(_0x270750){const _0x46fee3=_0x1de264;logger[_0x46fee3(0xd1)](JSON[_0x46fee3(0xde)](_0x270750));});});},Migration[a1097_0x3b6dae(0xf4)]['query']=function(_0x2ce691){const _0x392e8f=a1097_0x3b6dae,_0xcb1958=this;this[_0x392e8f(0xea)][_0x392e8f(0xd8)](function(){const _0x4b3b1=_0x392e8f;return _0xcb1958[_0x4b3b1(0xed)][_0x4b3b1(0xee)][_0x4b3b1(0xf0)](_0x2ce691)['then'](function(){const _0x1e3a7e=_0x4b3b1;logger[_0x1e3a7e(0xd1)](_0x1e3a7e(0xeb),_0x2ce691);})[_0x4b3b1(0xf7)](function(_0xdc4f59){logger['info'](JSON['stringify'](_0xdc4f59));});});},Migration[a1097_0x3b6dae(0xf4)][a1097_0x3b6dae(0xf9)]=function(_0x4ca5de,_0x13546e){const _0x4e7132=a1097_0x3b6dae,_0x5b2d1e=this;this['sequence'][_0x4e7132(0xd8)](function(){const _0x5eb5b0=_0x4e7132;return _0x5b2d1e['queryInterface'][_0x5eb5b0(0xf9)](_0x4ca5de,_0x13546e)['then'](function(){const _0x2ace9b=_0x5eb5b0;logger[_0x2ace9b(0xd1)](_0x2ace9b(0xd3),_0x13546e,_0x4ca5de);})[_0x5eb5b0(0xf7)](function(_0x5f4e5b){const _0x53b25b=_0x5eb5b0;logger[_0x53b25b(0xd1)](util[_0x53b25b(0xf6)](_0x5f4e5b,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x5a7396,_0x13083e,_0xab2c86){const _0x1d5e43=a1097_0x3b6dae,_0x66b626=this;this[_0x1d5e43(0xea)]['enqueue'](function(){const _0x1ab420=_0x1d5e43;return _0x66b626['queryInterface'][_0x1ab420(0xfe)](_0x5a7396,_0x13083e,_0xab2c86)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x13083e,_0xab2c86,_0x5a7396);})['catch'](function(_0x33744e){const _0x30c86a=_0x1ab420;logger[_0x30c86a(0xd1)](util[_0x30c86a(0xf6)](_0x33744e,{'showHidden':![],'depth':null}));});});},Migration[a1097_0x3b6dae(0xf4)]['final']=function(_0xc5b2a7){const _0x383505=a1097_0x3b6dae;this[_0x383505(0xea)]['enqueue'](function(){return _0xc5b2a7();});},module[a1097_0x3b6dae(0xcf)]={'up':function(_0x37ed35,_0x415dd2){return new Promise(function(_0x530d4e){const _0x572c27=a1097_0x50b3,_0x1f4e74=new Migration(_0x37ed35);_0x1f4e74[_0x572c27(0xe3)](_0x572c27(0xf5),_0x572c27(0xfa),{'type':_0x415dd2[_0x572c27(0xd9)],'allowNull':![],'defaultValue':_0x572c27(0xe8),'validate':{'notEmpty':!![]}}),_0x1f4e74[_0x572c27(0xe3)](_0x572c27(0xf5),_0x572c27(0xe1),{'type':_0x415dd2[_0x572c27(0xf3)],'defaultValue':0xf}),_0x1f4e74[_0x572c27(0xe3)](_0x572c27(0xf5),_0x572c27(0xfb),{'type':_0x415dd2[_0x572c27(0xd9)]}),_0x1f4e74[_0x572c27(0xf0)](_0x572c27(0xef)),_0x1f4e74['query'](_0x572c27(0xd5)),_0x1f4e74[_0x572c27(0xf0)](_0x572c27(0xdd)),_0x1f4e74[_0x572c27(0xe5)]('tools_schedules',_0x572c27(0xda),{'type':_0x415dd2[_0x572c27(0xe0)](_0x572c27(0xf1),'pdf','xls',_0x572c27(0xe6)),'allowNull':![],'defaultValue':_0x572c27(0xf1)}),_0x1f4e74[_0x572c27(0xf0)](_0x572c27(0xfd)),_0x1f4e74[_0x572c27(0xe5)](_0x572c27(0xd2),_0x572c27(0xda),{'type':_0x415dd2['ENUM'](_0x572c27(0xf1),_0x572c27(0xce),'xlsx'),'allowNull':![],'defaultValue':_0x572c27(0xf1)}),_0x1f4e74[_0x572c27(0xe3)]('mail_accounts','markAsUnread',{'type':_0x415dd2[_0x572c27(0xd0)],'defaultValue':![]}),_0x1f4e74[_0x572c27(0xe3)]('mail_accounts',_0x572c27(0xd6),{'type':_0x415dd2[_0x572c27(0xd9)],'allowNull':![],'defaultValue':_0x572c27(0xf2)}),_0x1f4e74[_0x572c27(0xe3)]('mail_accounts','fontSize',{'type':_0x415dd2[_0x572c27(0xf3)](0x2)[_0x572c27(0xd4)],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}}),_0x1f4e74[_0x572c27(0xfe)](_0x572c27(0xe4),_0x572c27(0xdc),'template'),_0x1f4e74[_0x572c27(0xff)](_0x530d4e);});},'down':function(){}}; \ No newline at end of file +const a1097_0x392e=['queryInterface','ENUM','signature','stringify','table\x20dropped\x20%s','UPDATE\x20users\x20SET\x20nat=\x27force_rport,comedia\x27\x20WHERE\x20nat\x20IS\x20NULL','pdf','INTEGER','dropTable','addColumn','removeColumn','query','tail','UPDATE\x20users\x20SET\x20transport=\x27wss\x27\x20WHERE\x20avpf\x20IS\x20NOT\x20NULL','renameColumn','output','inspect','#ffffff','then','changeColumn','enqueue','chat_websites','query\x20%s','markAsUnread','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','STRING','catch','csv','../config/logger','BOOLEAN','finally','sequence','prototype','mail_accounts','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','fontSize','textColor','tools_schedules','info','sequelize','UPDATE\x20tools_schedules\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27','final','xlsx'];(function(_0x7f77cc,_0x20b417){const _0x392ec6=function(_0x5432cb){while(--_0x5432cb){_0x7f77cc['push'](_0x7f77cc['shift']());}};_0x392ec6(++_0x20b417);}(a1097_0x392e,0xd1));const a1097_0x5432=function(_0x7f77cc,_0x20b417){_0x7f77cc=_0x7f77cc-0x100;let _0x392ec6=a1097_0x392e[_0x7f77cc];return _0x392ec6;};const a1097_0x374994=a1097_0x5432;'use strict';const util=require('util'),logger=require(a1097_0x374994(0x105))('migration'),Sequence=function(){};Sequence[a1097_0x374994(0x109)][a1097_0x374994(0x129)]=function(_0x1f2eb6){const _0x57820e=a1097_0x374994;this['tail']=this[_0x57820e(0x121)]?this['tail'][_0x57820e(0x107)](_0x1f2eb6):_0x1f2eb6();};const Migration=function(_0x233c42){const _0x43a4e6=a1097_0x374994;this[_0x43a4e6(0x115)]=_0x233c42,this[_0x43a4e6(0x108)]=new Sequence();};Migration[a1097_0x374994(0x109)][a1097_0x374994(0x128)]=function(_0x58a2ca,_0x36bb63,_0x47f512){const _0x4518d2=a1097_0x374994,_0x3db2cd=this;this[_0x4518d2(0x108)][_0x4518d2(0x129)](function(){const _0x30b2c2=_0x4518d2;return _0x3db2cd['queryInterface'][_0x30b2c2(0x128)](_0x58a2ca,_0x36bb63,_0x47f512)[_0x30b2c2(0x127)](function(){const _0x48b302=_0x30b2c2;logger['info'](_0x48b302(0x100),_0x36bb63,_0x58a2ca);})[_0x30b2c2(0x103)](function(_0x92ee35){const _0x2606d5=_0x30b2c2;logger[_0x2606d5(0x110)](JSON[_0x2606d5(0x118)](_0x92ee35));});});},Migration[a1097_0x374994(0x109)][a1097_0x374994(0x11e)]=function(_0x1e841f,_0x2139ef,_0x437cc5){const _0x139340=a1097_0x374994,_0xba3115=this;this[_0x139340(0x108)][_0x139340(0x129)](function(){const _0x4735f5=_0x139340;return _0xba3115[_0x4735f5(0x115)][_0x4735f5(0x11e)](_0x1e841f,_0x2139ef,_0x437cc5)[_0x4735f5(0x127)](function(){const _0x4574e6=_0x4735f5;logger[_0x4574e6(0x110)](_0x4574e6(0x10c),_0x2139ef,_0x1e841f);})[_0x4735f5(0x103)](function(_0x3ecb42){const _0x36d308=_0x4735f5;logger[_0x36d308(0x110)](JSON[_0x36d308(0x118)](_0x3ecb42));});});},Migration[a1097_0x374994(0x109)][a1097_0x374994(0x11d)]=function(_0x2a4f00){const _0x85918c=a1097_0x374994,_0x202048=this;this[_0x85918c(0x108)][_0x85918c(0x129)](function(){const _0x37418b=_0x85918c;return _0x202048['queryInterface'][_0x37418b(0x11d)](_0x2a4f00,{'force':!![]})['then'](function(){const _0x45c753=_0x37418b;logger[_0x45c753(0x110)](_0x45c753(0x119),_0x2a4f00);})['catch'](function(_0x3db194){const _0xe4b28d=_0x37418b;logger[_0xe4b28d(0x110)](JSON[_0xe4b28d(0x118)](_0x3db194));});});},Migration[a1097_0x374994(0x109)][a1097_0x374994(0x101)]=function(_0x3534c2,_0x4db58b,_0x1a451d){const _0x28c3d3=a1097_0x374994,_0x8158f7=this;this[_0x28c3d3(0x108)][_0x28c3d3(0x129)](function(){const _0x5cfdf2=_0x28c3d3;return _0x8158f7['queryInterface'][_0x5cfdf2(0x101)](_0x3534c2,_0x4db58b,{'indexName':_0x1a451d})['then'](function(){const _0x320638=_0x5cfdf2;logger[_0x320638(0x110)](_0x320638(0x12d),_0x3534c2,_0x4db58b['join'](','),_0x1a451d);})[_0x5cfdf2(0x103)](function(_0x154a2e){const _0x2581cb=_0x5cfdf2;logger[_0x2581cb(0x110)](JSON['stringify'](_0x154a2e));});});},Migration[a1097_0x374994(0x109)][a1097_0x374994(0x120)]=function(_0x461014){const _0x4d2eb4=a1097_0x374994,_0x148e99=this;this[_0x4d2eb4(0x108)][_0x4d2eb4(0x129)](function(){const _0x282188=_0x4d2eb4;return _0x148e99[_0x282188(0x115)][_0x282188(0x111)][_0x282188(0x120)](_0x461014)[_0x282188(0x127)](function(){const _0xe39974=_0x282188;logger[_0xe39974(0x110)](_0xe39974(0x12b),_0x461014);})['catch'](function(_0x4e3c2e){const _0x39c7f4=_0x282188;logger[_0x39c7f4(0x110)](JSON[_0x39c7f4(0x118)](_0x4e3c2e));});});},Migration[a1097_0x374994(0x109)][a1097_0x374994(0x11f)]=function(_0x3b1ff6,_0x2d5963){const _0x492e65=a1097_0x374994,_0x4f1f17=this;this[_0x492e65(0x108)]['enqueue'](function(){const _0x2fe692=_0x492e65;return _0x4f1f17[_0x2fe692(0x115)][_0x2fe692(0x11f)](_0x3b1ff6,_0x2d5963)['then'](function(){const _0x5d66d7=_0x2fe692;logger['info'](_0x5d66d7(0x10b),_0x2d5963,_0x3b1ff6);})['catch'](function(_0x3f4d56){const _0x221e4a=_0x2fe692;logger[_0x221e4a(0x110)](util[_0x221e4a(0x125)](_0x3f4d56,{'showHidden':![],'depth':null}));});});},Migration[a1097_0x374994(0x109)][a1097_0x374994(0x123)]=function(_0x11c939,_0x248b3b,_0x4f0d8a){const _0x5a1ff8=a1097_0x374994,_0x1c407a=this;this[_0x5a1ff8(0x108)][_0x5a1ff8(0x129)](function(){const _0xbd2f24=_0x5a1ff8;return _0x1c407a['queryInterface'][_0xbd2f24(0x123)](_0x11c939,_0x248b3b,_0x4f0d8a)['then'](function(){const _0xd1e245=_0xbd2f24;logger[_0xd1e245(0x110)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x248b3b,_0x4f0d8a,_0x11c939);})[_0xbd2f24(0x103)](function(_0x5d309a){const _0x5540d8=_0xbd2f24;logger[_0x5540d8(0x110)](util['inspect'](_0x5d309a,{'showHidden':![],'depth':null}));});});},Migration[a1097_0x374994(0x109)][a1097_0x374994(0x113)]=function(_0x334e6d){const _0x10cc18=a1097_0x374994;this[_0x10cc18(0x108)][_0x10cc18(0x129)](function(){return _0x334e6d();});},module['exports']={'up':function(_0x436369,_0x3e3310){return new Promise(function(_0x503f2f){const _0x25ad7b=a1097_0x5432,_0x3f9ad4=new Migration(_0x436369);_0x3f9ad4['addColumn'](_0x25ad7b(0x12a),_0x25ad7b(0x10e),{'type':_0x3e3310[_0x25ad7b(0x102)],'allowNull':![],'defaultValue':_0x25ad7b(0x126),'validate':{'notEmpty':!![]}}),_0x3f9ad4['addColumn'](_0x25ad7b(0x12a),_0x25ad7b(0x10d),{'type':_0x3e3310[_0x25ad7b(0x11c)],'defaultValue':0xf}),_0x3f9ad4[_0x25ad7b(0x11e)]('chat_websites','timezone',{'type':_0x3e3310[_0x25ad7b(0x102)]}),_0x3f9ad4[_0x25ad7b(0x120)](_0x25ad7b(0x11a)),_0x3f9ad4[_0x25ad7b(0x120)]('UPDATE\x20users\x20SET\x20transport=\x27udp\x27\x20WHERE\x20avpf\x20IS\x20NULL\x20AND\x20transport\x20IS\x20NULL'),_0x3f9ad4['query'](_0x25ad7b(0x122)),_0x3f9ad4[_0x25ad7b(0x128)]('tools_schedules',_0x25ad7b(0x124),{'type':_0x3e3310['ENUM']('csv','pdf','xls',_0x25ad7b(0x114)),'allowNull':![],'defaultValue':'csv'}),_0x3f9ad4['query'](_0x25ad7b(0x112)),_0x3f9ad4[_0x25ad7b(0x128)](_0x25ad7b(0x10f),_0x25ad7b(0x124),{'type':_0x3e3310[_0x25ad7b(0x116)](_0x25ad7b(0x104),_0x25ad7b(0x11b),_0x25ad7b(0x114)),'allowNull':![],'defaultValue':_0x25ad7b(0x104)}),_0x3f9ad4[_0x25ad7b(0x11e)]('mail_accounts',_0x25ad7b(0x12c),{'type':_0x3e3310[_0x25ad7b(0x106)],'defaultValue':![]}),_0x3f9ad4[_0x25ad7b(0x11e)]('mail_accounts','fontFamily',{'type':_0x3e3310[_0x25ad7b(0x102)],'allowNull':![],'defaultValue':'Arial,Helvetica,sans-serif'}),_0x3f9ad4[_0x25ad7b(0x11e)](_0x25ad7b(0x10a),_0x25ad7b(0x10d),{'type':_0x3e3310[_0x25ad7b(0x11c)](0x2)['UNSIGNED'],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}}),_0x3f9ad4[_0x25ad7b(0x123)](_0x25ad7b(0x10a),_0x25ad7b(0x117),'template'),_0x3f9ad4[_0x25ad7b(0x113)](_0x503f2f);});},'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 c6f9bee..fd000c7 100644 --- a/server/migrations/2.0.55.js +++ b/server/migrations/2.0.55.js @@ -1 +1 @@ -const a1098_0x1eee=['then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','changeColumn','renameColumn','../config/logger','catch','queryInterface','query\x20%s','exports','addColumn','prototype','Removed\x20column\x20%s\x20from\x20%s','addIndex','join','Added\x20column\x20%s\x20to\x20%s','final','util','tail','removeColumn','table\x20dropped\x20%s','dropTable','STRING','inspect','stringify','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','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;','sequence','query'];(function(_0xa92fbc,_0x242d73){const _0x1eee63=function(_0x110dc5){while(--_0x110dc5){_0xa92fbc['push'](_0xa92fbc['shift']());}};_0x1eee63(++_0x242d73);}(a1098_0x1eee,0xdc));const a1098_0x110d=function(_0xa92fbc,_0x242d73){_0xa92fbc=_0xa92fbc-0xd7;let _0x1eee63=a1098_0x1eee[_0xa92fbc];return _0x1eee63;};const a1098_0x45b1b6=a1098_0x110d;'use strict';const util=require(a1098_0x45b1b6(0xde)),logger=require(a1098_0x45b1b6(0xf0))('migration'),Sequence=function(){};Sequence['prototype'][a1098_0x45b1b6(0xe6)]=function(_0x208811){const _0x59bb02=a1098_0x45b1b6;this[_0x59bb02(0xdf)]=this[_0x59bb02(0xdf)]?this[_0x59bb02(0xdf)]['finally'](_0x208811):_0x208811();};const Migration=function(_0x3248dc){const _0x5a0c54=a1098_0x45b1b6;this[_0x5a0c54(0xf2)]=_0x3248dc,this[_0x5a0c54(0xe9)]=new Sequence();};Migration[a1098_0x45b1b6(0xd8)][a1098_0x45b1b6(0xee)]=function(_0x13031f,_0x59018a,_0x9d1864){const _0x171355=a1098_0x45b1b6,_0x5df263=this;this['sequence'][_0x171355(0xe6)](function(){const _0x153bbc=_0x171355;return _0x5df263['queryInterface'][_0x153bbc(0xee)](_0x13031f,_0x59018a,_0x9d1864)['then'](function(){const _0x5bef26=_0x153bbc;logger['info'](_0x5bef26(0xe7),_0x59018a,_0x13031f);})[_0x153bbc(0xf1)](function(_0x4986b7){const _0x1a2f05=_0x153bbc;logger[_0x1a2f05(0xed)](JSON[_0x1a2f05(0xe5)](_0x4986b7));});});},Migration[a1098_0x45b1b6(0xd8)][a1098_0x45b1b6(0xd7)]=function(_0xf8a788,_0x3dcb44,_0x5a4073){const _0x401ff3=a1098_0x45b1b6,_0x2fa660=this;this[_0x401ff3(0xe9)][_0x401ff3(0xe6)](function(){const _0x119247=_0x401ff3;return _0x2fa660[_0x119247(0xf2)][_0x119247(0xd7)](_0xf8a788,_0x3dcb44,_0x5a4073)[_0x119247(0xeb)](function(){const _0x56d4a4=_0x119247;logger[_0x56d4a4(0xed)](_0x56d4a4(0xdc),_0x3dcb44,_0xf8a788);})[_0x119247(0xf1)](function(_0x52ea9c){const _0x2ab6b8=_0x119247;logger[_0x2ab6b8(0xed)](JSON[_0x2ab6b8(0xe5)](_0x52ea9c));});});},Migration[a1098_0x45b1b6(0xd8)][a1098_0x45b1b6(0xe2)]=function(_0x1cd894){const _0x292b7d=a1098_0x45b1b6,_0x2d4920=this;this[_0x292b7d(0xe9)]['enqueue'](function(){const _0x3f9beb=_0x292b7d;return _0x2d4920['queryInterface'][_0x3f9beb(0xe2)](_0x1cd894,{'force':!![]})[_0x3f9beb(0xeb)](function(){const _0x1dcd61=_0x3f9beb;logger[_0x1dcd61(0xed)](_0x1dcd61(0xe1),_0x1cd894);})['catch'](function(_0x209cee){const _0x143a56=_0x3f9beb;logger[_0x143a56(0xed)](JSON[_0x143a56(0xe5)](_0x209cee));});});},Migration['prototype'][a1098_0x45b1b6(0xda)]=function(_0x377c53,_0x107412,_0x57cf85){const _0x478568=a1098_0x45b1b6,_0x1f88f9=this;this[_0x478568(0xe9)][_0x478568(0xe6)](function(){const _0x423d75=_0x478568;return _0x1f88f9[_0x423d75(0xf2)][_0x423d75(0xda)](_0x377c53,_0x107412,{'indexName':_0x57cf85})[_0x423d75(0xeb)](function(){const _0x50d6e4=_0x423d75;logger[_0x50d6e4(0xed)]('addIndex\x20%s\x20%s\x20%s',_0x377c53,_0x107412[_0x50d6e4(0xdb)](','),_0x57cf85);})['catch'](function(_0x530367){const _0x59f11e=_0x423d75;logger[_0x59f11e(0xed)](JSON[_0x59f11e(0xe5)](_0x530367));});});},Migration['prototype']['query']=function(_0x10993d){const _0x47d1f1=a1098_0x45b1b6,_0x48fede=this;this[_0x47d1f1(0xe9)][_0x47d1f1(0xe6)](function(){const _0x40f17b=_0x47d1f1;return _0x48fede[_0x40f17b(0xf2)]['sequelize'][_0x40f17b(0xea)](_0x10993d)[_0x40f17b(0xeb)](function(){const _0x2bbd57=_0x40f17b;logger[_0x2bbd57(0xed)](_0x2bbd57(0xf3),_0x10993d);})['catch'](function(_0x40ff87){const _0x5699a6=_0x40f17b;logger[_0x5699a6(0xed)](JSON[_0x5699a6(0xe5)](_0x40ff87));});});},Migration[a1098_0x45b1b6(0xd8)][a1098_0x45b1b6(0xe0)]=function(_0x4367de,_0x40698f){const _0x305a68=a1098_0x45b1b6,_0x455c03=this;this['sequence'][_0x305a68(0xe6)](function(){const _0x5f2642=_0x305a68;return _0x455c03[_0x5f2642(0xf2)][_0x5f2642(0xe0)](_0x4367de,_0x40698f)[_0x5f2642(0xeb)](function(){const _0x1fccb6=_0x5f2642;logger[_0x1fccb6(0xed)](_0x1fccb6(0xd9),_0x40698f,_0x4367de);})['catch'](function(_0x4a411b){const _0x3bb4d5=_0x5f2642;logger[_0x3bb4d5(0xed)](util['inspect'](_0x4a411b,{'showHidden':![],'depth':null}));});});},Migration[a1098_0x45b1b6(0xd8)][a1098_0x45b1b6(0xef)]=function(_0x45479d,_0x21d58f,_0x43a8b7){const _0xd455a4=a1098_0x45b1b6,_0x19c9fa=this;this[_0xd455a4(0xe9)][_0xd455a4(0xe6)](function(){const _0x32d362=_0xd455a4;return _0x19c9fa[_0x32d362(0xf2)][_0x32d362(0xef)](_0x45479d,_0x21d58f,_0x43a8b7)[_0x32d362(0xeb)](function(){const _0x148a9a=_0x32d362;logger[_0x148a9a(0xed)](_0x148a9a(0xec),_0x21d58f,_0x43a8b7,_0x45479d);})[_0x32d362(0xf1)](function(_0x5dd19c){const _0x56f56c=_0x32d362;logger['info'](util[_0x56f56c(0xe4)](_0x5dd19c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1098_0x45b1b6(0xdd)]=function(_0x4e5883){const _0x306523=a1098_0x45b1b6;this[_0x306523(0xe9)][_0x306523(0xe6)](function(){return _0x4e5883();});},module[a1098_0x45b1b6(0xf4)]={'up':function(_0x2d0fd5,_0x37c8b2){return new Promise(function(_0x4608a2){const _0x194ea9=a1098_0x110d,_0x279b09=new Migration(_0x2d0fd5);_0x279b09[_0x194ea9(0xd7)]('sms_accounts','authId',{'type':_0x37c8b2[_0x194ea9(0xe3)]}),_0x279b09[_0x194ea9(0xea)](_0x194ea9(0xe8)),_0x279b09[_0x194ea9(0xea)]('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());'),_0x279b09['final'](_0x4608a2);});},'down':function(){}}; \ No newline at end of file +const a1098_0x2bd2=['authId','then','finally','sequence','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','info','query','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());','Removed\x20column\x20%s\x20from\x20%s','queryInterface','tail','addIndex\x20%s\x20%s\x20%s','table\x20dropped\x20%s','STRING','removeColumn','migration','prototype','../config/logger','enqueue','inspect','dropTable','addIndex','stringify','catch','sequelize','addColumn','changeColumn','join','Added\x20column\x20%s\x20to\x20%s','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;','final'];(function(_0x59d9be,_0x3a1b30){const _0x2bd23b=function(_0x1bf3c0){while(--_0x1bf3c0){_0x59d9be['push'](_0x59d9be['shift']());}};_0x2bd23b(++_0x3a1b30);}(a1098_0x2bd2,0x1ed));const a1098_0x1bf3=function(_0x59d9be,_0x3a1b30){_0x59d9be=_0x59d9be-0x173;let _0x2bd23b=a1098_0x2bd2[_0x59d9be];return _0x2bd23b;};const a1098_0x17bdc0=a1098_0x1bf3;'use strict';const util=require('util'),logger=require(a1098_0x17bdc0(0x178))(a1098_0x17bdc0(0x176)),Sequence=function(){};Sequence[a1098_0x17bdc0(0x177)][a1098_0x17bdc0(0x179)]=function(_0x566610){const _0x691a7a=a1098_0x17bdc0;this[_0x691a7a(0x191)]=this['tail']?this[_0x691a7a(0x191)][_0x691a7a(0x188)](_0x566610):_0x566610();};const Migration=function(_0x5dd269){const _0xd9c8a8=a1098_0x17bdc0;this[_0xd9c8a8(0x190)]=_0x5dd269,this[_0xd9c8a8(0x189)]=new Sequence();};Migration['prototype'][a1098_0x17bdc0(0x181)]=function(_0x5b84ec,_0x13c96a,_0x3beefe){const _0x15abd1=a1098_0x17bdc0,_0x455c34=this;this[_0x15abd1(0x189)][_0x15abd1(0x179)](function(){const _0x5dfcfc=_0x15abd1;return _0x455c34[_0x5dfcfc(0x190)][_0x5dfcfc(0x181)](_0x5b84ec,_0x13c96a,_0x3beefe)[_0x5dfcfc(0x187)](function(){const _0x2d44a5=_0x5dfcfc;logger['info'](_0x2d44a5(0x18b),_0x13c96a,_0x5b84ec);})[_0x5dfcfc(0x17e)](function(_0x538259){const _0x426268=_0x5dfcfc;logger[_0x426268(0x18c)](JSON[_0x426268(0x17d)](_0x538259));});});},Migration['prototype'][a1098_0x17bdc0(0x180)]=function(_0x10d7b4,_0x1e70ea,_0x1645b5){const _0x3d2349=a1098_0x17bdc0,_0x53bfd0=this;this[_0x3d2349(0x189)][_0x3d2349(0x179)](function(){const _0x205c09=_0x3d2349;return _0x53bfd0[_0x205c09(0x190)][_0x205c09(0x180)](_0x10d7b4,_0x1e70ea,_0x1645b5)[_0x205c09(0x187)](function(){const _0x2503b8=_0x205c09;logger['info'](_0x2503b8(0x183),_0x1e70ea,_0x10d7b4);})[_0x205c09(0x17e)](function(_0x2c2c18){const _0x4aeaa0=_0x205c09;logger[_0x4aeaa0(0x18c)](JSON[_0x4aeaa0(0x17d)](_0x2c2c18));});});},Migration[a1098_0x17bdc0(0x177)]['dropTable']=function(_0x282f9f){const _0x511e61=a1098_0x17bdc0,_0x5bbd04=this;this[_0x511e61(0x189)][_0x511e61(0x179)](function(){const _0x3a729a=_0x511e61;return _0x5bbd04[_0x3a729a(0x190)][_0x3a729a(0x17b)](_0x282f9f,{'force':!![]})['then'](function(){const _0x2d1c87=_0x3a729a;logger[_0x2d1c87(0x18c)](_0x2d1c87(0x173),_0x282f9f);})[_0x3a729a(0x17e)](function(_0x44355d){const _0x53f039=_0x3a729a;logger[_0x53f039(0x18c)](JSON['stringify'](_0x44355d));});});},Migration[a1098_0x17bdc0(0x177)]['addIndex']=function(_0x2845a8,_0x55639b,_0x4c2339){const _0x3917e4=a1098_0x17bdc0,_0x1c045d=this;this[_0x3917e4(0x189)][_0x3917e4(0x179)](function(){const _0x33a839=_0x3917e4;return _0x1c045d[_0x33a839(0x190)][_0x33a839(0x17c)](_0x2845a8,_0x55639b,{'indexName':_0x4c2339})[_0x33a839(0x187)](function(){const _0x54e4b3=_0x33a839;logger[_0x54e4b3(0x18c)](_0x54e4b3(0x192),_0x2845a8,_0x55639b[_0x54e4b3(0x182)](','),_0x4c2339);})[_0x33a839(0x17e)](function(_0x2b5ed3){const _0x41bda1=_0x33a839;logger[_0x41bda1(0x18c)](JSON[_0x41bda1(0x17d)](_0x2b5ed3));});});},Migration[a1098_0x17bdc0(0x177)][a1098_0x17bdc0(0x18d)]=function(_0x838f65){const _0x2c6318=a1098_0x17bdc0,_0x39f856=this;this[_0x2c6318(0x189)][_0x2c6318(0x179)](function(){const _0x203952=_0x2c6318;return _0x39f856['queryInterface'][_0x203952(0x17f)]['query'](_0x838f65)[_0x203952(0x187)](function(){logger['info']('query\x20%s',_0x838f65);})[_0x203952(0x17e)](function(_0x2effab){const _0x391ddf=_0x203952;logger[_0x391ddf(0x18c)](JSON[_0x391ddf(0x17d)](_0x2effab));});});},Migration[a1098_0x17bdc0(0x177)][a1098_0x17bdc0(0x175)]=function(_0x452e7d,_0x2eb4dd){const _0x6c5201=a1098_0x17bdc0,_0x52e04f=this;this[_0x6c5201(0x189)][_0x6c5201(0x179)](function(){const _0x5808a5=_0x6c5201;return _0x52e04f[_0x5808a5(0x190)][_0x5808a5(0x175)](_0x452e7d,_0x2eb4dd)[_0x5808a5(0x187)](function(){const _0x1606c7=_0x5808a5;logger[_0x1606c7(0x18c)](_0x1606c7(0x18f),_0x2eb4dd,_0x452e7d);})['catch'](function(_0x40a504){const _0x1c5ef4=_0x5808a5;logger[_0x1c5ef4(0x18c)](util[_0x1c5ef4(0x17a)](_0x40a504,{'showHidden':![],'depth':null}));});});},Migration[a1098_0x17bdc0(0x177)][a1098_0x17bdc0(0x18a)]=function(_0x25acd9,_0x274c4d,_0x460d82){const _0x3cd0fe=a1098_0x17bdc0,_0x1ad380=this;this[_0x3cd0fe(0x189)][_0x3cd0fe(0x179)](function(){const _0x4e53fb=_0x3cd0fe;return _0x1ad380[_0x4e53fb(0x190)][_0x4e53fb(0x18a)](_0x25acd9,_0x274c4d,_0x460d82)['then'](function(){const _0x4ffb53=_0x4e53fb;logger[_0x4ffb53(0x18c)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x274c4d,_0x460d82,_0x25acd9);})[_0x4e53fb(0x17e)](function(_0x31ca40){const _0x4f704b=_0x4e53fb;logger[_0x4f704b(0x18c)](util[_0x4f704b(0x17a)](_0x31ca40,{'showHidden':![],'depth':null}));});});},Migration[a1098_0x17bdc0(0x177)][a1098_0x17bdc0(0x185)]=function(_0x4c1d03){const _0x5bcaf6=a1098_0x17bdc0;this[_0x5bcaf6(0x189)][_0x5bcaf6(0x179)](function(){return _0x4c1d03();});},module['exports']={'up':function(_0x288d3d,_0x26b7ad){return new Promise(function(_0x50a24f){const _0x2a5b4a=a1098_0x1bf3,_0x5a90e9=new Migration(_0x288d3d);_0x5a90e9[_0x2a5b4a(0x180)]('sms_accounts',_0x2a5b4a(0x186),{'type':_0x26b7ad[_0x2a5b4a(0x174)]}),_0x5a90e9['query'](_0x2a5b4a(0x184)),_0x5a90e9[_0x2a5b4a(0x18d)](_0x2a5b4a(0x18e)),_0x5a90e9[_0x2a5b4a(0x185)](_0x50a24f);});},'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 b52c986..ca17230 100644 --- a/server/migrations/2.0.56.js +++ b/server/migrations/2.0.56.js @@ -1 +1 @@ -const a1099_0x38d8=['analytics_extracted_reports','Added\x20column\x20%s\x20to\x20%s','BOOLEAN','rrordered','UPDATE\x20fax_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','join','queryInterface','sms_accounts','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','info','changeColumn','ENUM','fewestcalls','TEXT','then','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','voice_queues','inspect','removeColumn','sequelize','notificationShake','UPDATE\x20sms_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','notificationTemplate','enqueue','tail','strategy','sequence','table\x20dropped\x20%s','catch','query\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','linear','random','mail_accounts','openchannel_accounts','rrmemory','stringify','leastrecent','renameColumn','addIndex','fax_accounts','final','basename','util','addColumn','dropTable','exports','STRING','notificationSound','ringall','query'];(function(_0x236929,_0x392ed3){const _0x38d888=function(_0x49cc6a){while(--_0x49cc6a){_0x236929['push'](_0x236929['shift']());}};_0x38d888(++_0x392ed3);}(a1099_0x38d8,0xc3));const a1099_0x49cc=function(_0x236929,_0x392ed3){_0x236929=_0x236929-0x1de;let _0x38d888=a1099_0x38d8[_0x236929];return _0x38d888;};const a1099_0x36299c=a1099_0x49cc;'use strict';const util=require(a1099_0x36299c(0x1e7)),logger=require(a1099_0x36299c(0x1f8))('migration'),Sequence=function(){};Sequence[a1099_0x36299c(0x20f)][a1099_0x36299c(0x207)]=function(_0x418988){const _0x351ad4=a1099_0x36299c;this[_0x351ad4(0x208)]=this[_0x351ad4(0x208)]?this[_0x351ad4(0x208)]['finally'](_0x418988):_0x418988();};const Migration=function(_0xcbb39){this['queryInterface']=_0xcbb39,this['sequence']=new Sequence();};Migration[a1099_0x36299c(0x20f)]['changeColumn']=function(_0x57000f,_0x35fe9c,_0x4ada09){const _0x397e03=a1099_0x36299c,_0x3faed2=this;this[_0x397e03(0x20a)][_0x397e03(0x207)](function(){const _0x2856c6=_0x397e03;return _0x3faed2[_0x2856c6(0x1f5)][_0x2856c6(0x1fa)](_0x57000f,_0x35fe9c,_0x4ada09)[_0x2856c6(0x1fe)](function(){const _0x48bc6b=_0x2856c6;logger['info'](_0x48bc6b(0x1f7),_0x35fe9c,_0x57000f);})[_0x2856c6(0x20c)](function(_0x41cc){const _0x3b9fca=_0x2856c6;logger[_0x3b9fca(0x1f9)](JSON[_0x3b9fca(0x1e0)](_0x41cc));});});},Migration['prototype']['addColumn']=function(_0x2a6c8d,_0x48bc39,_0xac0e38){const _0x511633=a1099_0x36299c,_0x10e627=this;this[_0x511633(0x20a)][_0x511633(0x207)](function(){const _0x5075b1=_0x511633;return _0x10e627[_0x5075b1(0x1f5)][_0x5075b1(0x1e8)](_0x2a6c8d,_0x48bc39,_0xac0e38)[_0x5075b1(0x1fe)](function(){const _0x5c825f=_0x5075b1;logger[_0x5c825f(0x1f9)](_0x5c825f(0x1f0),_0x48bc39,_0x2a6c8d);})[_0x5075b1(0x20c)](function(_0x1d7d73){const _0x4d023b=_0x5075b1;logger[_0x4d023b(0x1f9)](JSON[_0x4d023b(0x1e0)](_0x1d7d73));});});},Migration[a1099_0x36299c(0x20f)][a1099_0x36299c(0x1e9)]=function(_0x174831){const _0x2e85ad=a1099_0x36299c,_0x593bf8=this;this[_0x2e85ad(0x20a)][_0x2e85ad(0x207)](function(){const _0x5f52a8=_0x2e85ad;return _0x593bf8[_0x5f52a8(0x1f5)][_0x5f52a8(0x1e9)](_0x174831,{'force':!![]})['then'](function(){const _0x562724=_0x5f52a8;logger['info'](_0x562724(0x20b),_0x174831);})[_0x5f52a8(0x20c)](function(_0x2fe948){logger['info'](JSON['stringify'](_0x2fe948));});});},Migration['prototype']['addIndex']=function(_0x5d67a7,_0x242784,_0x360bb3){const _0x328643=a1099_0x36299c,_0x17572e=this;this[_0x328643(0x20a)][_0x328643(0x207)](function(){const _0x39932e=_0x328643;return _0x17572e['queryInterface'][_0x39932e(0x1e3)](_0x5d67a7,_0x242784,{'indexName':_0x360bb3})['then'](function(){const _0x3950e5=_0x39932e;logger[_0x3950e5(0x1f9)]('addIndex\x20%s\x20%s\x20%s',_0x5d67a7,_0x242784[_0x3950e5(0x1f4)](','),_0x360bb3);})[_0x39932e(0x20c)](function(_0x14f2b0){const _0x442439=_0x39932e;logger[_0x442439(0x1f9)](JSON['stringify'](_0x14f2b0));});});},Migration[a1099_0x36299c(0x20f)][a1099_0x36299c(0x1ee)]=function(_0x4d501b){const _0x5e5cd0=a1099_0x36299c,_0x36e6c1=this;this[_0x5e5cd0(0x20a)]['enqueue'](function(){const _0x461682=_0x5e5cd0;return _0x36e6c1[_0x461682(0x1f5)][_0x461682(0x203)]['query'](_0x4d501b)['then'](function(){const _0x8b32e3=_0x461682;logger[_0x8b32e3(0x1f9)](_0x8b32e3(0x20d),_0x4d501b);})['catch'](function(_0x138e8f){const _0x3908ae=_0x461682;logger['info'](JSON[_0x3908ae(0x1e0)](_0x138e8f));});});},Migration[a1099_0x36299c(0x20f)][a1099_0x36299c(0x202)]=function(_0x3011c2,_0x3ad8b0){const _0x2373be=a1099_0x36299c,_0x480934=this;this[_0x2373be(0x20a)][_0x2373be(0x207)](function(){const _0x4dd532=_0x2373be;return _0x480934[_0x4dd532(0x1f5)][_0x4dd532(0x202)](_0x3011c2,_0x3ad8b0)[_0x4dd532(0x1fe)](function(){const _0x83eae6=_0x4dd532;logger[_0x83eae6(0x1f9)]('Removed\x20column\x20%s\x20from\x20%s',_0x3ad8b0,_0x3011c2);})[_0x4dd532(0x20c)](function(_0x409fbd){const _0x596a04=_0x4dd532;logger[_0x596a04(0x1f9)](util[_0x596a04(0x201)](_0x409fbd,{'showHidden':![],'depth':null}));});});},Migration[a1099_0x36299c(0x20f)]['renameColumn']=function(_0x152e47,_0x2d382d,_0x3a5ba6){const _0x38f01f=a1099_0x36299c,_0x93beaa=this;this['sequence'][_0x38f01f(0x207)](function(){const _0x5f06d3=_0x38f01f;return _0x93beaa['queryInterface'][_0x5f06d3(0x1e2)](_0x152e47,_0x2d382d,_0x3a5ba6)['then'](function(){const _0x523cd5=_0x5f06d3;logger['info'](_0x523cd5(0x20e),_0x2d382d,_0x3a5ba6,_0x152e47);})[_0x5f06d3(0x20c)](function(_0x10762f){const _0x4ecfd1=_0x5f06d3;logger[_0x4ecfd1(0x1f9)](util['inspect'](_0x10762f,{'showHidden':![],'depth':null}));});});},Migration[a1099_0x36299c(0x20f)][a1099_0x36299c(0x1e5)]=function(_0x1232b0){const _0x4a1835=a1099_0x36299c;this[_0x4a1835(0x20a)]['enqueue'](function(){return _0x1232b0();});},module[a1099_0x36299c(0x1ea)]={'up':function(_0x3c8b30,_0xe1ce8a){return new Promise(function(_0x3fccb8){const _0xe7269a=a1099_0x49cc,_0x1ec8d9=new Migration(_0x3c8b30);_0x1ec8d9[_0xe7269a(0x1fa)](_0xe7269a(0x200),_0xe7269a(0x209),{'type':_0xe1ce8a[_0xe7269a(0x1fb)]('roundrobin',_0xe7269a(0x1ed),_0xe7269a(0x1e1),_0xe7269a(0x1fc),_0xe7269a(0x211),_0xe7269a(0x1df),_0xe7269a(0x210),'wrandom',_0xe7269a(0x1f2)),'allowNull':![],'defaultValue':_0xe7269a(0x1ed)}),_0x1ec8d9[_0xe7269a(0x1e8)](_0xe7269a(0x1ef),_0xe7269a(0x1e6),{'type':_0xe1ce8a[_0xe7269a(0x1eb)],'allowNull':![]}),_0x1ec8d9[_0xe7269a(0x1e8)](_0xe7269a(0x212),'notificationTemplate',{'type':_0xe1ce8a['TEXT']}),_0x1ec8d9['addColumn'](_0xe7269a(0x212),_0xe7269a(0x1ec),{'type':_0xe1ce8a['BOOLEAN'],'defaultValue':!![]}),_0x1ec8d9[_0xe7269a(0x1e8)](_0xe7269a(0x212),_0xe7269a(0x204),{'type':_0xe1ce8a[_0xe7269a(0x1f1)],'defaultValue':![]}),_0x1ec8d9['addColumn']('chat_websites',_0xe7269a(0x206),{'type':_0xe1ce8a[_0xe7269a(0x1fd)]}),_0x1ec8d9[_0xe7269a(0x1e8)]('chat_websites',_0xe7269a(0x1ec),{'type':_0xe1ce8a[_0xe7269a(0x1f1)],'defaultValue':!![]}),_0x1ec8d9[_0xe7269a(0x1e8)]('chat_websites',_0xe7269a(0x204),{'type':_0xe1ce8a['BOOLEAN'],'defaultValue':![]}),_0x1ec8d9[_0xe7269a(0x1e8)]('fax_accounts','notificationTemplate',{'type':_0xe1ce8a['TEXT']}),_0x1ec8d9['addColumn'](_0xe7269a(0x1e4),_0xe7269a(0x1ec),{'type':_0xe1ce8a['BOOLEAN'],'defaultValue':!![]}),_0x1ec8d9[_0xe7269a(0x1e8)]('fax_accounts','notificationShake',{'type':_0xe1ce8a[_0xe7269a(0x1f1)],'defaultValue':![]}),_0x1ec8d9[_0xe7269a(0x1e8)](_0xe7269a(0x1f6),_0xe7269a(0x206),{'type':_0xe1ce8a[_0xe7269a(0x1fd)]}),_0x1ec8d9[_0xe7269a(0x1e8)](_0xe7269a(0x1f6),_0xe7269a(0x1ec),{'type':_0xe1ce8a[_0xe7269a(0x1f1)],'defaultValue':!![]}),_0x1ec8d9['addColumn'](_0xe7269a(0x1f6),_0xe7269a(0x204),{'type':_0xe1ce8a[_0xe7269a(0x1f1)],'defaultValue':![]}),_0x1ec8d9[_0xe7269a(0x1e8)](_0xe7269a(0x1de),'notificationTemplate',{'type':_0xe1ce8a[_0xe7269a(0x1fd)]}),_0x1ec8d9[_0xe7269a(0x1e8)]('openchannel_accounts',_0xe7269a(0x1ec),{'type':_0xe1ce8a[_0xe7269a(0x1f1)],'defaultValue':!![]}),_0x1ec8d9[_0xe7269a(0x1e8)](_0xe7269a(0x1de),_0xe7269a(0x204),{'type':_0xe1ce8a[_0xe7269a(0x1f1)],'defaultValue':![]}),_0x1ec8d9[_0xe7269a(0x1ee)]('UPDATE\x20chat_websites\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27'),_0x1ec8d9[_0xe7269a(0x1ee)](_0xe7269a(0x1ff)),_0x1ec8d9['query'](_0xe7269a(0x205)),_0x1ec8d9['query'](_0xe7269a(0x1f3)),_0x1ec8d9['query']('UPDATE\x20openchannel_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27'),_0x1ec8d9['final'](_0x3fccb8);});},'down':function(){}}; \ No newline at end of file +const a1099_0x2e48=['random','strategy','info','linear','../config/logger','stringify','leastrecent','mail_accounts','analytics_extracted_reports','fewestcalls','UPDATE\x20chat_websites\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','catch','ringall','notificationSound','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','UPDATE\x20mail_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}
Subject\x20:\x20{{message.subject}}\x27','addColumn','addIndex','BOOLEAN','openchannel_accounts','removeColumn','sequence','finally','notificationTemplate','prototype','ENUM','notificationShake','sequelize','roundrobin','STRING','inspect','query\x20%s','fax_accounts','util','tail','UPDATE\x20openchannel_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','exports','query','rrordered','then','sms_accounts','chat_websites','join','wrandom','dropTable','final','Added\x20column\x20%s\x20to\x20%s','TEXT','renameColumn','changeColumn','queryInterface','enqueue'];(function(_0x218541,_0x28cc7d){const _0x2e485f=function(_0x577a8d){while(--_0x577a8d){_0x218541['push'](_0x218541['shift']());}};_0x2e485f(++_0x28cc7d);}(a1099_0x2e48,0xf7));const a1099_0x577a=function(_0x218541,_0x28cc7d){_0x218541=_0x218541-0x1e3;let _0x2e485f=a1099_0x2e48[_0x218541];return _0x2e485f;};const a1099_0x396634=a1099_0x577a;'use strict';const util=require(a1099_0x396634(0x217)),logger=require(a1099_0x396634(0x1f9))('migration'),Sequence=function(){};Sequence[a1099_0x396634(0x20e)][a1099_0x396634(0x1f4)]=function(_0x2bf9f8){const _0x49228c=a1099_0x396634;this[_0x49228c(0x1e3)]=this[_0x49228c(0x1e3)]?this['tail'][_0x49228c(0x20c)](_0x2bf9f8):_0x2bf9f8();};const Migration=function(_0x4c5a5e){const _0x272035=a1099_0x396634;this[_0x272035(0x1f3)]=_0x4c5a5e,this[_0x272035(0x20b)]=new Sequence();};Migration[a1099_0x396634(0x20e)][a1099_0x396634(0x1f2)]=function(_0x4fbb5f,_0x3bdbfc,_0x242348){const _0x10f566=a1099_0x396634,_0x4f821b=this;this[_0x10f566(0x20b)][_0x10f566(0x1f4)](function(){const _0xc4e6fd=_0x10f566;return _0x4f821b[_0xc4e6fd(0x1f3)][_0xc4e6fd(0x1f2)](_0x4fbb5f,_0x3bdbfc,_0x242348)['then'](function(){const _0x559edb=_0xc4e6fd;logger[_0x559edb(0x1f7)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3bdbfc,_0x4fbb5f);})[_0xc4e6fd(0x200)](function(_0x5641ef){const _0x27d82e=_0xc4e6fd;logger[_0x27d82e(0x1f7)](JSON['stringify'](_0x5641ef));});});},Migration[a1099_0x396634(0x20e)]['addColumn']=function(_0x5dacbc,_0x4af3b1,_0x4ff54b){const _0x10b8f4=a1099_0x396634,_0x34a7b=this;this['sequence'][_0x10b8f4(0x1f4)](function(){const _0x1f62a7=_0x10b8f4;return _0x34a7b['queryInterface'][_0x1f62a7(0x206)](_0x5dacbc,_0x4af3b1,_0x4ff54b)[_0x1f62a7(0x1e8)](function(){const _0x3743d3=_0x1f62a7;logger[_0x3743d3(0x1f7)](_0x3743d3(0x1ef),_0x4af3b1,_0x5dacbc);})[_0x1f62a7(0x200)](function(_0x14ec8a){const _0x26d67e=_0x1f62a7;logger[_0x26d67e(0x1f7)](JSON[_0x26d67e(0x1fa)](_0x14ec8a));});});},Migration[a1099_0x396634(0x20e)][a1099_0x396634(0x1ed)]=function(_0x5a332e){const _0x125554=a1099_0x396634,_0x34f0d6=this;this[_0x125554(0x20b)]['enqueue'](function(){const _0x310aac=_0x125554;return _0x34f0d6[_0x310aac(0x1f3)][_0x310aac(0x1ed)](_0x5a332e,{'force':!![]})[_0x310aac(0x1e8)](function(){const _0x4b14a6=_0x310aac;logger['info'](_0x4b14a6(0x204),_0x5a332e);})[_0x310aac(0x200)](function(_0x4512a5){logger['info'](JSON['stringify'](_0x4512a5));});});},Migration[a1099_0x396634(0x20e)][a1099_0x396634(0x207)]=function(_0x333827,_0xc8e069,_0x170d8f){const _0x7f261d=a1099_0x396634,_0x57aed0=this;this[_0x7f261d(0x20b)]['enqueue'](function(){const _0x5ed30b=_0x7f261d;return _0x57aed0[_0x5ed30b(0x1f3)][_0x5ed30b(0x207)](_0x333827,_0xc8e069,{'indexName':_0x170d8f})[_0x5ed30b(0x1e8)](function(){const _0x4add79=_0x5ed30b;logger[_0x4add79(0x1f7)]('addIndex\x20%s\x20%s\x20%s',_0x333827,_0xc8e069[_0x4add79(0x1eb)](','),_0x170d8f);})['catch'](function(_0x4a8947){const _0x2ae18e=_0x5ed30b;logger[_0x2ae18e(0x1f7)](JSON['stringify'](_0x4a8947));});});},Migration[a1099_0x396634(0x20e)]['query']=function(_0x46c3d0){const _0x7328a5=a1099_0x396634,_0x520562=this;this['sequence'][_0x7328a5(0x1f4)](function(){const _0x3dafe1=_0x7328a5;return _0x520562[_0x3dafe1(0x1f3)][_0x3dafe1(0x211)][_0x3dafe1(0x1e6)](_0x46c3d0)[_0x3dafe1(0x1e8)](function(){const _0x2956ad=_0x3dafe1;logger[_0x2956ad(0x1f7)](_0x2956ad(0x215),_0x46c3d0);})['catch'](function(_0x11ecfa){const _0x333b3b=_0x3dafe1;logger[_0x333b3b(0x1f7)](JSON[_0x333b3b(0x1fa)](_0x11ecfa));});});},Migration[a1099_0x396634(0x20e)][a1099_0x396634(0x20a)]=function(_0x12cca1,_0x5629d0){const _0x54b42c=a1099_0x396634,_0x465b5e=this;this[_0x54b42c(0x20b)][_0x54b42c(0x1f4)](function(){const _0x35d1aa=_0x54b42c;return _0x465b5e['queryInterface'][_0x35d1aa(0x20a)](_0x12cca1,_0x5629d0)[_0x35d1aa(0x1e8)](function(){const _0x1626c8=_0x35d1aa;logger[_0x1626c8(0x1f7)]('Removed\x20column\x20%s\x20from\x20%s',_0x5629d0,_0x12cca1);})[_0x35d1aa(0x200)](function(_0x5f5b83){const _0x3237a0=_0x35d1aa;logger[_0x3237a0(0x1f7)](util[_0x3237a0(0x214)](_0x5f5b83,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x337029,_0x4a5a10,_0x50d361){const _0x4386db=a1099_0x396634,_0x2dbc60=this;this[_0x4386db(0x20b)][_0x4386db(0x1f4)](function(){const _0x55687c=_0x4386db;return _0x2dbc60[_0x55687c(0x1f3)][_0x55687c(0x1f1)](_0x337029,_0x4a5a10,_0x50d361)['then'](function(){const _0x48bc97=_0x55687c;logger[_0x48bc97(0x1f7)](_0x48bc97(0x203),_0x4a5a10,_0x50d361,_0x337029);})[_0x55687c(0x200)](function(_0x15b446){const _0x454fea=_0x55687c;logger['info'](util[_0x454fea(0x214)](_0x15b446,{'showHidden':![],'depth':null}));});});},Migration[a1099_0x396634(0x20e)][a1099_0x396634(0x1ee)]=function(_0x39f700){const _0x5bca1c=a1099_0x396634;this[_0x5bca1c(0x20b)]['enqueue'](function(){return _0x39f700();});},module[a1099_0x396634(0x1e5)]={'up':function(_0x2cccda,_0x2fbc38){return new Promise(function(_0x5e02a0){const _0x8d92e1=a1099_0x577a,_0xe8b5ab=new Migration(_0x2cccda);_0xe8b5ab[_0x8d92e1(0x1f2)]('voice_queues',_0x8d92e1(0x1f6),{'type':_0x2fbc38[_0x8d92e1(0x20f)](_0x8d92e1(0x212),_0x8d92e1(0x201),_0x8d92e1(0x1fb),_0x8d92e1(0x1fe),_0x8d92e1(0x1f5),'rrmemory',_0x8d92e1(0x1f8),_0x8d92e1(0x1ec),_0x8d92e1(0x1e7)),'allowNull':![],'defaultValue':_0x8d92e1(0x201)}),_0xe8b5ab['addColumn'](_0x8d92e1(0x1fd),'basename',{'type':_0x2fbc38[_0x8d92e1(0x213)],'allowNull':![]}),_0xe8b5ab['addColumn'](_0x8d92e1(0x1fc),'notificationTemplate',{'type':_0x2fbc38[_0x8d92e1(0x1f0)]}),_0xe8b5ab['addColumn']('mail_accounts',_0x8d92e1(0x202),{'type':_0x2fbc38[_0x8d92e1(0x208)],'defaultValue':!![]}),_0xe8b5ab[_0x8d92e1(0x206)](_0x8d92e1(0x1fc),_0x8d92e1(0x210),{'type':_0x2fbc38[_0x8d92e1(0x208)],'defaultValue':![]}),_0xe8b5ab[_0x8d92e1(0x206)](_0x8d92e1(0x1ea),_0x8d92e1(0x20d),{'type':_0x2fbc38['TEXT']}),_0xe8b5ab['addColumn']('chat_websites','notificationSound',{'type':_0x2fbc38['BOOLEAN'],'defaultValue':!![]}),_0xe8b5ab[_0x8d92e1(0x206)](_0x8d92e1(0x1ea),_0x8d92e1(0x210),{'type':_0x2fbc38['BOOLEAN'],'defaultValue':![]}),_0xe8b5ab['addColumn'](_0x8d92e1(0x216),_0x8d92e1(0x20d),{'type':_0x2fbc38[_0x8d92e1(0x1f0)]}),_0xe8b5ab[_0x8d92e1(0x206)](_0x8d92e1(0x216),_0x8d92e1(0x202),{'type':_0x2fbc38[_0x8d92e1(0x208)],'defaultValue':!![]}),_0xe8b5ab[_0x8d92e1(0x206)]('fax_accounts',_0x8d92e1(0x210),{'type':_0x2fbc38[_0x8d92e1(0x208)],'defaultValue':![]}),_0xe8b5ab[_0x8d92e1(0x206)](_0x8d92e1(0x1e9),_0x8d92e1(0x20d),{'type':_0x2fbc38[_0x8d92e1(0x1f0)]}),_0xe8b5ab['addColumn'](_0x8d92e1(0x1e9),_0x8d92e1(0x202),{'type':_0x2fbc38[_0x8d92e1(0x208)],'defaultValue':!![]}),_0xe8b5ab[_0x8d92e1(0x206)](_0x8d92e1(0x1e9),'notificationShake',{'type':_0x2fbc38['BOOLEAN'],'defaultValue':![]}),_0xe8b5ab[_0x8d92e1(0x206)](_0x8d92e1(0x209),_0x8d92e1(0x20d),{'type':_0x2fbc38[_0x8d92e1(0x1f0)]}),_0xe8b5ab['addColumn'](_0x8d92e1(0x209),'notificationSound',{'type':_0x2fbc38['BOOLEAN'],'defaultValue':!![]}),_0xe8b5ab[_0x8d92e1(0x206)](_0x8d92e1(0x209),'notificationShake',{'type':_0x2fbc38[_0x8d92e1(0x208)],'defaultValue':![]}),_0xe8b5ab['query'](_0x8d92e1(0x1ff)),_0xe8b5ab[_0x8d92e1(0x1e6)](_0x8d92e1(0x205)),_0xe8b5ab[_0x8d92e1(0x1e6)]('UPDATE\x20sms_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27'),_0xe8b5ab[_0x8d92e1(0x1e6)]('UPDATE\x20fax_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27'),_0xe8b5ab['query'](_0x8d92e1(0x1e4)),_0xe8b5ab[_0x8d92e1(0x1ee)](_0x5e02a0);});},'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 f1246b2..173a952 100644 --- a/server/migrations/2.0.57.js +++ b/server/migrations/2.0.57.js @@ -1 +1 @@ -const a1100_0x2a79=['renameColumn','periodic_announce','info','chat_websites','catch','BOOLEAN','queryInterface','removeColumn','query','sequelize','addIndex','query\x20%s','Removed\x20column\x20%s\x20from\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','inspect','then','addIndex\x20%s\x20%s\x20%s','table\x20dropped\x20%s','final','changeColumn','stringify','finally','voice_queues','Added\x20column\x20%s\x20to\x20%s','hideWhenOffline','enqueue','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','dropTable','../config/logger','sequence','addColumn'];(function(_0x3aca52,_0x2d0a14){const _0x2a79dd=function(_0x4a9ddc){while(--_0x4a9ddc){_0x3aca52['push'](_0x3aca52['shift']());}};_0x2a79dd(++_0x2d0a14);}(a1100_0x2a79,0x67));const a1100_0x4a9d=function(_0x3aca52,_0x2d0a14){_0x3aca52=_0x3aca52-0xd0;let _0x2a79dd=a1100_0x2a79[_0x3aca52];return _0x2a79dd;};const a1100_0x5a8a09=a1100_0x4a9d;'use strict';const util=require(a1100_0x5a8a09(0xec)),logger=require(a1100_0x5a8a09(0xee))('migration'),Sequence=function(){};Sequence[a1100_0x5a8a09(0xea)]['enqueue']=function(_0x46b200){const _0xff3bc7=a1100_0x5a8a09;this['tail']=this['tail']?this[_0xff3bc7(0xdd)][_0xff3bc7(0xe5)](_0x46b200):_0x46b200();};const Migration=function(_0x1b1271){const _0x47efe5=a1100_0x5a8a09;this[_0x47efe5(0xd5)]=_0x1b1271,this[_0x47efe5(0xef)]=new Sequence();};Migration[a1100_0x5a8a09(0xea)][a1100_0x5a8a09(0xe3)]=function(_0x388e6b,_0x2ade93,_0x52fbf4){const _0x24e629=a1100_0x5a8a09,_0xa66438=this;this[_0x24e629(0xef)][_0x24e629(0xe9)](function(){const _0x183628=_0x24e629;return _0xa66438[_0x183628(0xd5)][_0x183628(0xe3)](_0x388e6b,_0x2ade93,_0x52fbf4)[_0x183628(0xdf)](function(){const _0x1e59a3=_0x183628;logger[_0x1e59a3(0xd1)](_0x1e59a3(0xdc),_0x2ade93,_0x388e6b);})[_0x183628(0xd3)](function(_0x225cec){const _0x1218dd=_0x183628;logger[_0x1218dd(0xd1)](JSON['stringify'](_0x225cec));});});},Migration[a1100_0x5a8a09(0xea)]['addColumn']=function(_0x378a3e,_0x28dd7d,_0x215ed3){const _0x4e84f1=a1100_0x5a8a09,_0x2e4f5d=this;this['sequence'][_0x4e84f1(0xe9)](function(){const _0x5b59cc=_0x4e84f1;return _0x2e4f5d[_0x5b59cc(0xd5)][_0x5b59cc(0xf0)](_0x378a3e,_0x28dd7d,_0x215ed3)['then'](function(){const _0x2148a5=_0x5b59cc;logger[_0x2148a5(0xd1)](_0x2148a5(0xe7),_0x28dd7d,_0x378a3e);})[_0x5b59cc(0xd3)](function(_0x3868f6){const _0x1c5f35=_0x5b59cc;logger[_0x1c5f35(0xd1)](JSON[_0x1c5f35(0xe4)](_0x3868f6));});});},Migration[a1100_0x5a8a09(0xea)][a1100_0x5a8a09(0xed)]=function(_0x31879d){const _0x3236ff=a1100_0x5a8a09,_0x5449ee=this;this[_0x3236ff(0xef)][_0x3236ff(0xe9)](function(){const _0x38cd21=_0x3236ff;return _0x5449ee[_0x38cd21(0xd5)][_0x38cd21(0xed)](_0x31879d,{'force':!![]})['then'](function(){const _0x561772=_0x38cd21;logger[_0x561772(0xd1)](_0x561772(0xe1),_0x31879d);})[_0x38cd21(0xd3)](function(_0x2b5005){const _0x3fa6b0=_0x38cd21;logger[_0x3fa6b0(0xd1)](JSON[_0x3fa6b0(0xe4)](_0x2b5005));});});},Migration[a1100_0x5a8a09(0xea)][a1100_0x5a8a09(0xd9)]=function(_0x6cebf6,_0xcd1078,_0x2bc9b5){const _0x70372f=a1100_0x5a8a09,_0x611e40=this;this[_0x70372f(0xef)][_0x70372f(0xe9)](function(){const _0xf45429=_0x70372f;return _0x611e40[_0xf45429(0xd5)][_0xf45429(0xd9)](_0x6cebf6,_0xcd1078,{'indexName':_0x2bc9b5})[_0xf45429(0xdf)](function(){const _0x417e83=_0xf45429;logger[_0x417e83(0xd1)](_0x417e83(0xe0),_0x6cebf6,_0xcd1078['join'](','),_0x2bc9b5);})[_0xf45429(0xd3)](function(_0x101710){const _0x27fae6=_0xf45429;logger[_0x27fae6(0xd1)](JSON[_0x27fae6(0xe4)](_0x101710));});});},Migration[a1100_0x5a8a09(0xea)][a1100_0x5a8a09(0xd7)]=function(_0x30d88e){const _0x26cf6d=a1100_0x5a8a09,_0x54c4b7=this;this[_0x26cf6d(0xef)][_0x26cf6d(0xe9)](function(){const _0x5f310c=_0x26cf6d;return _0x54c4b7['queryInterface'][_0x5f310c(0xd8)][_0x5f310c(0xd7)](_0x30d88e)[_0x5f310c(0xdf)](function(){const _0x47d035=_0x5f310c;logger[_0x47d035(0xd1)](_0x47d035(0xda),_0x30d88e);})[_0x5f310c(0xd3)](function(_0x5cd145){const _0x7097d3=_0x5f310c;logger[_0x7097d3(0xd1)](JSON[_0x7097d3(0xe4)](_0x5cd145));});});},Migration[a1100_0x5a8a09(0xea)][a1100_0x5a8a09(0xd6)]=function(_0x55675f,_0x17c69c){const _0x503b2c=a1100_0x5a8a09,_0x58a500=this;this[_0x503b2c(0xef)]['enqueue'](function(){const _0x16a081=_0x503b2c;return _0x58a500[_0x16a081(0xd5)][_0x16a081(0xd6)](_0x55675f,_0x17c69c)[_0x16a081(0xdf)](function(){const _0x4ae80f=_0x16a081;logger['info'](_0x4ae80f(0xdb),_0x17c69c,_0x55675f);})[_0x16a081(0xd3)](function(_0x99a315){const _0x5dc529=_0x16a081;logger[_0x5dc529(0xd1)](util['inspect'](_0x99a315,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x2ab3bf,_0x3edef0,_0x4dd13f){const _0x3cac09=a1100_0x5a8a09,_0x3d6cb2=this;this[_0x3cac09(0xef)][_0x3cac09(0xe9)](function(){const _0x54029b=_0x3cac09;return _0x3d6cb2[_0x54029b(0xd5)][_0x54029b(0xf1)](_0x2ab3bf,_0x3edef0,_0x4dd13f)['then'](function(){const _0x1290e0=_0x54029b;logger[_0x1290e0(0xd1)](_0x1290e0(0xeb),_0x3edef0,_0x4dd13f,_0x2ab3bf);})[_0x54029b(0xd3)](function(_0x43ec16){const _0x567823=_0x54029b;logger[_0x567823(0xd1)](util[_0x567823(0xde)](_0x43ec16,{'showHidden':![],'depth':null}));});});},Migration[a1100_0x5a8a09(0xea)][a1100_0x5a8a09(0xe2)]=function(_0x21f391){const _0xf3bfaf=a1100_0x5a8a09;this[_0xf3bfaf(0xef)][_0xf3bfaf(0xe9)](function(){return _0x21f391();});},module['exports']={'up':function(_0x29a40b,_0x5b9e59){return new Promise(function(_0x3347d6){const _0x252fda=a1100_0x4a9d,_0x11b75d=new Migration(_0x29a40b);_0x11b75d['addColumn'](_0x252fda(0xd2),_0x252fda(0xe8),{'type':_0x5b9e59[_0x252fda(0xd4)],'defaultValue':![]}),_0x11b75d[_0x252fda(0xe3)](_0x252fda(0xe6),_0x252fda(0xd0),{'type':_0x5b9e59['TEXT']}),_0x11b75d[_0x252fda(0xd7)]('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'),_0x11b75d[_0x252fda(0xd7)]('UPDATE\x20report_queue\x20SET\x20lastAssignedTo=NULL\x20\x20WHERE\x20lastAssignedTo=\x22\x22'),_0x11b75d[_0x252fda(0xe2)](_0x3347d6);});},'down':function(){}}; \ No newline at end of file +const a1100_0x30fb=['inspect','stringify','util','query','changeColumn','exports','final','join','tail','periodic_announce','hideWhenOffline','renameColumn','BOOLEAN','table\x20dropped\x20%s','voice_queues','prototype','queryInterface','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','dropTable','Added\x20column\x20%s\x20to\x20%s','migration','info','TEXT','Removed\x20column\x20%s\x20from\x20%s','addIndex','catch','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','enqueue','then','removeColumn','addIndex\x20%s\x20%s\x20%s','sequence','addColumn'];(function(_0x271837,_0x1a520a){const _0x30fb8f=function(_0x23cf88){while(--_0x23cf88){_0x271837['push'](_0x271837['shift']());}};_0x30fb8f(++_0x1a520a);}(a1100_0x30fb,0x1b2));const a1100_0x23cf=function(_0x271837,_0x1a520a){_0x271837=_0x271837-0xb8;let _0x30fb8f=a1100_0x30fb[_0x271837];return _0x30fb8f;};const a1100_0x1652a8=a1100_0x23cf;'use strict';const util=require(a1100_0x1652a8(0xcf)),logger=require('../config/logger')(a1100_0x1652a8(0xbe)),Sequence=function(){};Sequence[a1100_0x1652a8(0xb9)]['enqueue']=function(_0x2fa786){const _0x250903=a1100_0x1652a8;this[_0x250903(0xd5)]=this[_0x250903(0xd5)]?this['tail'][_0x250903(0xc6)](_0x2fa786):_0x2fa786();};const Migration=function(_0x3995d9){const _0x3dcfa7=a1100_0x1652a8;this[_0x3dcfa7(0xba)]=_0x3995d9,this['sequence']=new Sequence();};Migration[a1100_0x1652a8(0xb9)][a1100_0x1652a8(0xd1)]=function(_0x34b577,_0x40f990,_0x3c5c8b){const _0x4d47f7=a1100_0x1652a8,_0x184e34=this;this['sequence'][_0x4d47f7(0xc7)](function(){const _0x4bdcfe=_0x4d47f7;return _0x184e34[_0x4bdcfe(0xba)][_0x4bdcfe(0xd1)](_0x34b577,_0x40f990,_0x3c5c8b)[_0x4bdcfe(0xc8)](function(){const _0x289c51=_0x4bdcfe;logger[_0x289c51(0xbf)](_0x289c51(0xc5),_0x40f990,_0x34b577);})[_0x4bdcfe(0xc3)](function(_0x4da309){const _0x385d65=_0x4bdcfe;logger[_0x385d65(0xbf)](JSON[_0x385d65(0xce)](_0x4da309));});});},Migration['prototype'][a1100_0x1652a8(0xcc)]=function(_0x559109,_0x2df657,_0x90441){const _0x56176e=a1100_0x1652a8,_0x23c20e=this;this[_0x56176e(0xcb)][_0x56176e(0xc7)](function(){const _0x7fc2d7=_0x56176e;return _0x23c20e[_0x7fc2d7(0xba)][_0x7fc2d7(0xcc)](_0x559109,_0x2df657,_0x90441)[_0x7fc2d7(0xc8)](function(){const _0x45165c=_0x7fc2d7;logger[_0x45165c(0xbf)](_0x45165c(0xbd),_0x2df657,_0x559109);})[_0x7fc2d7(0xc3)](function(_0x3aafd7){const _0x159d5d=_0x7fc2d7;logger['info'](JSON[_0x159d5d(0xce)](_0x3aafd7));});});},Migration[a1100_0x1652a8(0xb9)][a1100_0x1652a8(0xbc)]=function(_0x2c4aed){const _0x2c1dda=a1100_0x1652a8,_0x4134b0=this;this[_0x2c1dda(0xcb)][_0x2c1dda(0xc7)](function(){const _0x48bc57=_0x2c1dda;return _0x4134b0[_0x48bc57(0xba)][_0x48bc57(0xbc)](_0x2c4aed,{'force':!![]})['then'](function(){const _0x195ed0=_0x48bc57;logger[_0x195ed0(0xbf)](_0x195ed0(0xda),_0x2c4aed);})[_0x48bc57(0xc3)](function(_0x1c4cb0){const _0x30aad7=_0x48bc57;logger[_0x30aad7(0xbf)](JSON['stringify'](_0x1c4cb0));});});},Migration[a1100_0x1652a8(0xb9)][a1100_0x1652a8(0xc2)]=function(_0x4be62a,_0x4c9e7e,_0x40dbc5){const _0x5417c7=a1100_0x1652a8,_0x183652=this;this['sequence'][_0x5417c7(0xc7)](function(){const _0x1d41d0=_0x5417c7;return _0x183652[_0x1d41d0(0xba)][_0x1d41d0(0xc2)](_0x4be62a,_0x4c9e7e,{'indexName':_0x40dbc5})['then'](function(){const _0x28d5a9=_0x1d41d0;logger[_0x28d5a9(0xbf)](_0x28d5a9(0xca),_0x4be62a,_0x4c9e7e[_0x28d5a9(0xd4)](','),_0x40dbc5);})[_0x1d41d0(0xc3)](function(_0x405c98){const _0xcb53ae=_0x1d41d0;logger[_0xcb53ae(0xbf)](JSON[_0xcb53ae(0xce)](_0x405c98));});});},Migration[a1100_0x1652a8(0xb9)][a1100_0x1652a8(0xd0)]=function(_0xc1575f){const _0xb5b4b=a1100_0x1652a8,_0x5c1ae8=this;this[_0xb5b4b(0xcb)][_0xb5b4b(0xc7)](function(){const _0x3bdef7=_0xb5b4b;return _0x5c1ae8[_0x3bdef7(0xba)]['sequelize']['query'](_0xc1575f)[_0x3bdef7(0xc8)](function(){const _0x332843=_0x3bdef7;logger[_0x332843(0xbf)](_0x332843(0xc4),_0xc1575f);})['catch'](function(_0x556f51){const _0x4654cc=_0x3bdef7;logger['info'](JSON[_0x4654cc(0xce)](_0x556f51));});});},Migration[a1100_0x1652a8(0xb9)]['removeColumn']=function(_0x1161e4,_0x2f785c){const _0x5ed7e6=a1100_0x1652a8,_0x3d8d97=this;this[_0x5ed7e6(0xcb)]['enqueue'](function(){const _0xc5c139=_0x5ed7e6;return _0x3d8d97[_0xc5c139(0xba)][_0xc5c139(0xc9)](_0x1161e4,_0x2f785c)[_0xc5c139(0xc8)](function(){const _0x58b458=_0xc5c139;logger[_0x58b458(0xbf)](_0x58b458(0xc1),_0x2f785c,_0x1161e4);})[_0xc5c139(0xc3)](function(_0x3e9770){const _0x463eef=_0xc5c139;logger[_0x463eef(0xbf)](util[_0x463eef(0xcd)](_0x3e9770,{'showHidden':![],'depth':null}));});});},Migration[a1100_0x1652a8(0xb9)][a1100_0x1652a8(0xd8)]=function(_0x22ebea,_0x29ae1e,_0xc85735){const _0x475280=a1100_0x1652a8,_0x3a26d8=this;this[_0x475280(0xcb)][_0x475280(0xc7)](function(){const _0x4d052a=_0x475280;return _0x3a26d8['queryInterface']['renameColumn'](_0x22ebea,_0x29ae1e,_0xc85735)[_0x4d052a(0xc8)](function(){const _0x217a8f=_0x4d052a;logger[_0x217a8f(0xbf)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x29ae1e,_0xc85735,_0x22ebea);})[_0x4d052a(0xc3)](function(_0x324281){const _0x1f63f=_0x4d052a;logger[_0x1f63f(0xbf)](util['inspect'](_0x324281,{'showHidden':![],'depth':null}));});});},Migration[a1100_0x1652a8(0xb9)][a1100_0x1652a8(0xd3)]=function(_0x274ca6){const _0x23bbe0=a1100_0x1652a8;this[_0x23bbe0(0xcb)][_0x23bbe0(0xc7)](function(){return _0x274ca6();});},module[a1100_0x1652a8(0xd2)]={'up':function(_0x153313,_0x1c07db){return new Promise(function(_0x53aec1){const _0x5caa5b=a1100_0x23cf,_0x2b47c5=new Migration(_0x153313);_0x2b47c5[_0x5caa5b(0xcc)]('chat_websites',_0x5caa5b(0xd7),{'type':_0x1c07db[_0x5caa5b(0xd9)],'defaultValue':![]}),_0x2b47c5[_0x5caa5b(0xd1)](_0x5caa5b(0xb8),_0x5caa5b(0xd6),{'type':_0x1c07db[_0x5caa5b(0xc0)]}),_0x2b47c5['query'](_0x5caa5b(0xbb)),_0x2b47c5[_0x5caa5b(0xd0)]('UPDATE\x20report_queue\x20SET\x20lastAssignedTo=NULL\x20\x20WHERE\x20lastAssignedTo=\x22\x22'),_0x2b47c5[_0x5caa5b(0xd3)](_0x53aec1);});},'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 b6efbd6..0a8c778 100644 --- a/server/migrations/2.0.58.js +++ b/server/migrations/2.0.58.js @@ -1 +1 @@ -const a1101_0x1679=['ALTER\x20TABLE\x20`voice_voicemail_messages`\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`voice_voicemail_messages_ibfk_1`\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`mailboxuser`)\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20voice_voicemail(`mailbox`)\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','removeColumn','addColumn','disposition','exports','Added\x20column\x20%s\x20to\x20%s','join','queryInterface','finally','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);','prototype','query','sequelize','addIndex\x20%s\x20%s\x20%s','../config/logger','then','tail','final','sequence','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','stringify','addIndex','info','util','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);','inspect','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\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);','enqueue','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\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);','renameColumn','report_queue','STRING','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);','changeColumn'];(function(_0x4ad59d,_0x807736){const _0x1679f3=function(_0x2b120f){while(--_0x2b120f){_0x4ad59d['push'](_0x4ad59d['shift']());}};_0x1679f3(++_0x807736);}(a1101_0x1679,0x156));const a1101_0x2b12=function(_0x4ad59d,_0x807736){_0x4ad59d=_0x4ad59d-0x8e;let _0x1679f3=a1101_0x1679[_0x4ad59d];return _0x1679f3;};const a1101_0x3e7870=a1101_0x2b12;'use strict';const util=require(a1101_0x3e7870(0xb0)),logger=require(a1101_0x3e7870(0xa5))(a1101_0x3e7870(0x90)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x519ff8){const _0x180b6e=a1101_0x3e7870;this[_0x180b6e(0xa7)]=this[_0x180b6e(0xa7)]?this[_0x180b6e(0xa7)][_0x180b6e(0x9f)](_0x519ff8):_0x519ff8();};const Migration=function(_0x329f15){const _0x174871=a1101_0x3e7870;this[_0x174871(0x9e)]=_0x329f15,this[_0x174871(0xa9)]=new Sequence();};Migration[a1101_0x3e7870(0xa1)][a1101_0x3e7870(0x96)]=function(_0x2cb1db,_0x5e01dd,_0x5447c7){const _0x1788a6=a1101_0x3e7870,_0x37ddcc=this;this[_0x1788a6(0xa9)][_0x1788a6(0x8f)](function(){const _0x3a4afc=_0x1788a6;return _0x37ddcc[_0x3a4afc(0x9e)]['changeColumn'](_0x2cb1db,_0x5e01dd,_0x5447c7)[_0x3a4afc(0xa6)](function(){const _0x25a6db=_0x3a4afc;logger['info'](_0x25a6db(0xab),_0x5e01dd,_0x2cb1db);})[_0x3a4afc(0xb3)](function(_0x4a94ae){const _0x98a8cb=_0x3a4afc;logger[_0x98a8cb(0xaf)](JSON[_0x98a8cb(0xad)](_0x4a94ae));});});},Migration['prototype'][a1101_0x3e7870(0x99)]=function(_0x271a62,_0x4400e8,_0x3ebd2a){const _0x1b8d24=a1101_0x3e7870,_0x1eb66c=this;this[_0x1b8d24(0xa9)][_0x1b8d24(0x8f)](function(){const _0x23fb06=_0x1b8d24;return _0x1eb66c[_0x23fb06(0x9e)][_0x23fb06(0x99)](_0x271a62,_0x4400e8,_0x3ebd2a)[_0x23fb06(0xa6)](function(){const _0x4aeba7=_0x23fb06;logger[_0x4aeba7(0xaf)](_0x4aeba7(0x9c),_0x4400e8,_0x271a62);})[_0x23fb06(0xb3)](function(_0x57d476){const _0x2866a9=_0x23fb06;logger[_0x2866a9(0xaf)](JSON['stringify'](_0x57d476));});});},Migration[a1101_0x3e7870(0xa1)][a1101_0x3e7870(0xac)]=function(_0x48017e){const _0xc06760=a1101_0x3e7870,_0x4a9c46=this;this[_0xc06760(0xa9)][_0xc06760(0x8f)](function(){const _0x24ce0a=_0xc06760;return _0x4a9c46[_0x24ce0a(0x9e)][_0x24ce0a(0xac)](_0x48017e,{'force':!![]})[_0x24ce0a(0xa6)](function(){const _0x546627=_0x24ce0a;logger['info'](_0x546627(0xaa),_0x48017e);})[_0x24ce0a(0xb3)](function(_0x34e97d){const _0x4c9dc7=_0x24ce0a;logger['info'](JSON[_0x4c9dc7(0xad)](_0x34e97d));});});},Migration[a1101_0x3e7870(0xa1)]['addIndex']=function(_0x37aef0,_0x45b942,_0x5d1b91){const _0x38faed=a1101_0x3e7870,_0x25e58c=this;this[_0x38faed(0xa9)]['enqueue'](function(){const _0x2de8b6=_0x38faed;return _0x25e58c[_0x2de8b6(0x9e)][_0x2de8b6(0xae)](_0x37aef0,_0x45b942,{'indexName':_0x5d1b91})[_0x2de8b6(0xa6)](function(){const _0x3d3ce1=_0x2de8b6;logger[_0x3d3ce1(0xaf)](_0x3d3ce1(0xa4),_0x37aef0,_0x45b942[_0x3d3ce1(0x9d)](','),_0x5d1b91);})[_0x2de8b6(0xb3)](function(_0x367824){const _0x27babc=_0x2de8b6;logger[_0x27babc(0xaf)](JSON[_0x27babc(0xad)](_0x367824));});});},Migration[a1101_0x3e7870(0xa1)][a1101_0x3e7870(0xa2)]=function(_0x4f2259){const _0x206412=a1101_0x3e7870,_0x63509b=this;this[_0x206412(0xa9)][_0x206412(0x8f)](function(){const _0x4a188b=_0x206412;return _0x63509b[_0x4a188b(0x9e)][_0x4a188b(0xa3)]['query'](_0x4f2259)[_0x4a188b(0xa6)](function(){const _0x427eca=_0x4a188b;logger[_0x427eca(0xaf)]('query\x20%s',_0x4f2259);})[_0x4a188b(0xb3)](function(_0x354e5c){const _0x49c88f=_0x4a188b;logger[_0x49c88f(0xaf)](JSON[_0x49c88f(0xad)](_0x354e5c));});});},Migration[a1101_0x3e7870(0xa1)][a1101_0x3e7870(0x98)]=function(_0x22a78f,_0x2c6c0c){const _0x29a478=a1101_0x3e7870,_0x29c30d=this;this[_0x29a478(0xa9)][_0x29a478(0x8f)](function(){const _0x12e4ad=_0x29a478;return _0x29c30d[_0x12e4ad(0x9e)][_0x12e4ad(0x98)](_0x22a78f,_0x2c6c0c)['then'](function(){const _0x57c35b=_0x12e4ad;logger[_0x57c35b(0xaf)]('Removed\x20column\x20%s\x20from\x20%s',_0x2c6c0c,_0x22a78f);})[_0x12e4ad(0xb3)](function(_0x1f6044){const _0xbf0f0f=_0x12e4ad;logger[_0xbf0f0f(0xaf)](util[_0xbf0f0f(0xb2)](_0x1f6044,{'showHidden':![],'depth':null}));});});},Migration[a1101_0x3e7870(0xa1)][a1101_0x3e7870(0x92)]=function(_0xcc5604,_0x349cdd,_0x244854){const _0x358893=a1101_0x3e7870,_0x519a3e=this;this[_0x358893(0xa9)][_0x358893(0x8f)](function(){const _0x44b12b=_0x358893;return _0x519a3e[_0x44b12b(0x9e)][_0x44b12b(0x92)](_0xcc5604,_0x349cdd,_0x244854)[_0x44b12b(0xa6)](function(){const _0x424e4f=_0x44b12b;logger[_0x424e4f(0xaf)](_0x424e4f(0xb4),_0x349cdd,_0x244854,_0xcc5604);})[_0x44b12b(0xb3)](function(_0x6ed1af){const _0x3cfaa8=_0x44b12b;logger[_0x3cfaa8(0xaf)](util[_0x3cfaa8(0xb2)](_0x6ed1af,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x27e44c){this['sequence']['enqueue'](function(){return _0x27e44c();});},module[a1101_0x3e7870(0x9b)]={'up':function(_0x320847,_0x2f1c20){return new Promise(function(_0x235a8b){const _0x390735=a1101_0x2b12,_0x3800a4=new Migration(_0x320847);_0x3800a4[_0x390735(0xa2)](_0x390735(0x97)),_0x3800a4[_0x390735(0xae)](_0x390735(0x93),['queue'],'queue'),_0x3800a4[_0x390735(0xae)]('report_queue',['queuecallerexitreason'],'queuecallerexitreason'),_0x3800a4[_0x390735(0x99)](_0x390735(0x93),_0x390735(0x9a),{'type':_0x2f1c20[_0x390735(0x94)]}),_0x3800a4[_0x390735(0xa2)]('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);'),_0x3800a4[_0x390735(0xa2)](_0x390735(0x95)),_0x3800a4[_0x390735(0xa2)](_0x390735(0x91)),_0x3800a4[_0x390735(0xa2)](_0x390735(0x8e)),_0x3800a4['query'](_0x390735(0xb1)),_0x3800a4[_0x390735(0xa2)](_0x390735(0xa0)),_0x3800a4[_0x390735(0xa2)]('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);'),_0x3800a4[_0x390735(0xa8)](_0x235a8b);});},'down':function(){}}; \ No newline at end of file +const a1101_0x3eb6=['enqueue','sequelize','catch','report_queue','tail','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);','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','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);','STRING','renameColumn','final','changeColumn','addColumn','info','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','Removed\x20column\x20%s\x20from\x20%s','stringify','addIndex','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','queue','util','join','migration','addIndex\x20%s\x20%s\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);','inspect','then','sequence','disposition','INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\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\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);','exports','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\x20Pause\x27,\x20\x27agentmanagement-pause\x27,\x20\x27Agent\x20Pause\x27,\x20\x27auto\x20generated\x20sound\x27,\x20\x27mp3\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);','prototype','queuecallerexitreason'];(function(_0x43e5e6,_0x586648){const _0x3eb6f8=function(_0x2f3497){while(--_0x2f3497){_0x43e5e6['push'](_0x43e5e6['shift']());}};_0x3eb6f8(++_0x586648);}(a1101_0x3eb6,0x1e6));const a1101_0x2f34=function(_0x43e5e6,_0x586648){_0x43e5e6=_0x43e5e6-0x143;let _0x3eb6f8=a1101_0x3eb6[_0x43e5e6];return _0x3eb6f8;};const a1101_0x5a1d2c=a1101_0x2f34;'use strict';const util=require(a1101_0x5a1d2c(0x155)),logger=require('../config/logger')(a1101_0x5a1d2c(0x157)),Sequence=function(){};Sequence[a1101_0x5a1d2c(0x163)][a1101_0x5a1d2c(0x165)]=function(_0x1f4a55){const _0x411a92=a1101_0x5a1d2c;this[_0x411a92(0x169)]=this[_0x411a92(0x169)]?this[_0x411a92(0x169)]['finally'](_0x1f4a55):_0x1f4a55();};const Migration=function(_0x15a744){const _0x24bc63=a1101_0x5a1d2c;this[_0x24bc63(0x145)]=_0x15a744,this['sequence']=new Sequence();};Migration[a1101_0x5a1d2c(0x163)][a1101_0x5a1d2c(0x14a)]=function(_0x82e564,_0xddb8d7,_0x199565){const _0x5bc5c2=a1101_0x5a1d2c,_0xa786d0=this;this[_0x5bc5c2(0x15c)]['enqueue'](function(){const _0x363644=_0x5bc5c2;return _0xa786d0['queryInterface'][_0x363644(0x14a)](_0x82e564,_0xddb8d7,_0x199565)[_0x363644(0x15b)](function(){const _0x5c016b=_0x363644;logger[_0x5c016b(0x14c)](_0x5c016b(0x152),_0xddb8d7,_0x82e564);})[_0x363644(0x167)](function(_0x8a87e8){const _0x2a3ec4=_0x363644;logger[_0x2a3ec4(0x14c)](JSON[_0x2a3ec4(0x14f)](_0x8a87e8));});});},Migration[a1101_0x5a1d2c(0x163)][a1101_0x5a1d2c(0x14b)]=function(_0x3dda2e,_0x2aabfe,_0x2ec92a){const _0x8be154=a1101_0x5a1d2c,_0x4042a9=this;this[_0x8be154(0x15c)][_0x8be154(0x165)](function(){const _0x36a56b=_0x8be154;return _0x4042a9[_0x36a56b(0x145)][_0x36a56b(0x14b)](_0x3dda2e,_0x2aabfe,_0x2ec92a)[_0x36a56b(0x15b)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x2aabfe,_0x3dda2e);})['catch'](function(_0x295731){const _0x1aace3=_0x36a56b;logger[_0x1aace3(0x14c)](JSON[_0x1aace3(0x14f)](_0x295731));});});},Migration[a1101_0x5a1d2c(0x163)][a1101_0x5a1d2c(0x153)]=function(_0x372bb4){const _0x39d7ab=a1101_0x5a1d2c,_0x200e5b=this;this[_0x39d7ab(0x15c)][_0x39d7ab(0x165)](function(){const _0x8c07ad=_0x39d7ab;return _0x200e5b[_0x8c07ad(0x145)][_0x8c07ad(0x153)](_0x372bb4,{'force':!![]})[_0x8c07ad(0x15b)](function(){const _0x5ca608=_0x8c07ad;logger[_0x5ca608(0x14c)](_0x5ca608(0x143),_0x372bb4);})['catch'](function(_0x1a2a95){const _0x1412cb=_0x8c07ad;logger[_0x1412cb(0x14c)](JSON[_0x1412cb(0x14f)](_0x1a2a95));});});},Migration['prototype']['addIndex']=function(_0x21b5fb,_0x52cdbc,_0x1b8c72){const _0x28b485=a1101_0x5a1d2c,_0x898d9c=this;this[_0x28b485(0x15c)]['enqueue'](function(){const _0x314aa2=_0x28b485;return _0x898d9c[_0x314aa2(0x145)][_0x314aa2(0x150)](_0x21b5fb,_0x52cdbc,{'indexName':_0x1b8c72})[_0x314aa2(0x15b)](function(){const _0x2d7897=_0x314aa2;logger['info'](_0x2d7897(0x158),_0x21b5fb,_0x52cdbc[_0x2d7897(0x156)](','),_0x1b8c72);})[_0x314aa2(0x167)](function(_0x35de2b){const _0x2408b4=_0x314aa2;logger['info'](JSON[_0x2408b4(0x14f)](_0x35de2b));});});},Migration[a1101_0x5a1d2c(0x163)][a1101_0x5a1d2c(0x161)]=function(_0x5cea51){const _0x3e85f4=a1101_0x5a1d2c,_0x9939ca=this;this[_0x3e85f4(0x15c)][_0x3e85f4(0x165)](function(){const _0x189902=_0x3e85f4;return _0x9939ca[_0x189902(0x145)][_0x189902(0x166)][_0x189902(0x161)](_0x5cea51)[_0x189902(0x15b)](function(){logger['info']('query\x20%s',_0x5cea51);})[_0x189902(0x167)](function(_0x4f1341){const _0x20a031=_0x189902;logger['info'](JSON[_0x20a031(0x14f)](_0x4f1341));});});},Migration['prototype'][a1101_0x5a1d2c(0x151)]=function(_0x18b51a,_0x2dac2d){const _0x41ec57=a1101_0x5a1d2c,_0x142949=this;this['sequence'][_0x41ec57(0x165)](function(){const _0x1dc029=_0x41ec57;return _0x142949['queryInterface']['removeColumn'](_0x18b51a,_0x2dac2d)[_0x1dc029(0x15b)](function(){const _0x203c62=_0x1dc029;logger[_0x203c62(0x14c)](_0x203c62(0x14e),_0x2dac2d,_0x18b51a);})[_0x1dc029(0x167)](function(_0x3b92d1){logger['info'](util['inspect'](_0x3b92d1,{'showHidden':![],'depth':null}));});});},Migration[a1101_0x5a1d2c(0x163)][a1101_0x5a1d2c(0x148)]=function(_0x4d48d3,_0x165c9b,_0x2dde6){const _0x4c3196=a1101_0x5a1d2c,_0x1b7a0f=this;this[_0x4c3196(0x15c)]['enqueue'](function(){const _0x331fe4=_0x4c3196;return _0x1b7a0f['queryInterface']['renameColumn'](_0x4d48d3,_0x165c9b,_0x2dde6)[_0x331fe4(0x15b)](function(){const _0x556a1c=_0x331fe4;logger['info'](_0x556a1c(0x144),_0x165c9b,_0x2dde6,_0x4d48d3);})['catch'](function(_0xbf550f){const _0x1f4221=_0x331fe4;logger[_0x1f4221(0x14c)](util[_0x1f4221(0x15a)](_0xbf550f,{'showHidden':![],'depth':null}));});});},Migration[a1101_0x5a1d2c(0x163)][a1101_0x5a1d2c(0x149)]=function(_0x145838){const _0x41edd7=a1101_0x5a1d2c;this[_0x41edd7(0x15c)]['enqueue'](function(){return _0x145838();});},module[a1101_0x5a1d2c(0x160)]={'up':function(_0x34a407,_0x5a8530){return new Promise(function(_0x134aac){const _0x5c90ec=a1101_0x2f34,_0x3f1200=new Migration(_0x34a407);_0x3f1200[_0x5c90ec(0x161)](_0x5c90ec(0x14d)),_0x3f1200['addIndex'](_0x5c90ec(0x168),[_0x5c90ec(0x154)],_0x5c90ec(0x154)),_0x3f1200[_0x5c90ec(0x150)](_0x5c90ec(0x168),[_0x5c90ec(0x164)],_0x5c90ec(0x164)),_0x3f1200[_0x5c90ec(0x14b)](_0x5c90ec(0x168),_0x5c90ec(0x15d),{'type':_0x5a8530[_0x5c90ec(0x147)]}),_0x3f1200[_0x5c90ec(0x161)](_0x5c90ec(0x159)),_0x3f1200[_0x5c90ec(0x161)](_0x5c90ec(0x146)),_0x3f1200['query'](_0x5c90ec(0x15f)),_0x3f1200[_0x5c90ec(0x161)](_0x5c90ec(0x15e)),_0x3f1200['query'](_0x5c90ec(0x162)),_0x3f1200[_0x5c90ec(0x161)]('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);'),_0x3f1200['query'](_0x5c90ec(0x16a)),_0x3f1200['final'](_0x134aac);});},'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 799e426..2b67f8b 100644 --- a/server/migrations/2.0.59.js +++ b/server/migrations/2.0.59.js @@ -1 +1 @@ -const a1102_0x38d2=['renameColumn','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','util','enqueue','changeColumn','queryInterface','query','inspect','skype','openedBy','catch','finally','settings','final','Removed\x20column\x20%s\x20from\x20%s','chat_interactions','addIndex','Added\x20column\x20%s\x20to\x20%s','prototype','https://www.xcally.com/bar/phonebar/autoupdater.xml','INTEGER','DATE','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','cm_lists','campaigns','join','BOOLEAN','cm_contacts','sequelize','dialPrefix','info','UserId','NOW','priority','STRING','addColumn','scheduledat','dropTable','alias','phoneBarAutoUpdaterUrl','DELETE\x20FROM\x20`voice_voicemail_messages`\x20WHERE\x20`mailboxuser`\x20NOT\x20IN\x20(SELECT\x20`mailbox`\x20FROM\x20`voice_voicemail`)','sequence','stringify','exports','UNSIGNED','addIndex\x20%s\x20%s\x20%s'];(function(_0x237338,_0x431667){const _0x38d24a=function(_0x4ad3dc){while(--_0x4ad3dc){_0x237338['push'](_0x237338['shift']());}};_0x38d24a(++_0x431667);}(a1102_0x38d2,0x13a));const a1102_0x4ad3=function(_0x237338,_0x431667){_0x237338=_0x237338-0x1de;let _0x38d24a=a1102_0x38d2[_0x237338];return _0x38d24a;};const a1102_0xb9a361=a1102_0x4ad3;'use strict';const util=require(a1102_0xb9a361(0x1ff)),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][a1102_0xb9a361(0x200)]=function(_0x45e92e){const _0x3965b2=a1102_0xb9a361;this['tail']=this[_0x3965b2(0x1fc)]?this[_0x3965b2(0x1fc)][_0x3965b2(0x208)](_0x45e92e):_0x45e92e();};const Migration=function(_0x17dcee){const _0xb90013=a1102_0xb9a361;this['queryInterface']=_0x17dcee,this[_0xb90013(0x1f6)]=new Sequence();};Migration['prototype'][a1102_0xb9a361(0x201)]=function(_0x5ab9ff,_0x113dc4,_0x2e1cad){const _0x233a18=a1102_0xb9a361,_0x1dff49=this;this[_0x233a18(0x1f6)]['enqueue'](function(){const _0x567a45=_0x233a18;return _0x1dff49[_0x567a45(0x202)][_0x567a45(0x201)](_0x5ab9ff,_0x113dc4,_0x2e1cad)['then'](function(){const _0x4b0c37=_0x567a45;logger['info'](_0x4b0c37(0x1e2),_0x113dc4,_0x5ab9ff);})['catch'](function(_0x2b21c5){const _0x5e785e=_0x567a45;logger['info'](JSON[_0x5e785e(0x1f7)](_0x2b21c5));});});},Migration[a1102_0xb9a361(0x1de)][a1102_0xb9a361(0x1f0)]=function(_0x2b1402,_0x8723e2,_0x3b598d){const _0x6d0cee=a1102_0xb9a361,_0x69c2b3=this;this[_0x6d0cee(0x1f6)][_0x6d0cee(0x200)](function(){const _0xb12a1d=_0x6d0cee;return _0x69c2b3['queryInterface'][_0xb12a1d(0x1f0)](_0x2b1402,_0x8723e2,_0x3b598d)[_0xb12a1d(0x1fe)](function(){const _0x9d262f=_0xb12a1d;logger[_0x9d262f(0x1eb)](_0x9d262f(0x20e),_0x8723e2,_0x2b1402);})[_0xb12a1d(0x207)](function(_0x430fc9){const _0x5f4005=_0xb12a1d;logger['info'](JSON[_0x5f4005(0x1f7)](_0x430fc9));});});},Migration[a1102_0xb9a361(0x1de)][a1102_0xb9a361(0x1f2)]=function(_0x4da392){const _0x45d6ad=a1102_0xb9a361,_0x9e474c=this;this[_0x45d6ad(0x1f6)]['enqueue'](function(){const _0x4eb48b=_0x45d6ad;return _0x9e474c[_0x4eb48b(0x202)][_0x4eb48b(0x1f2)](_0x4da392,{'force':!![]})[_0x4eb48b(0x1fe)](function(){const _0x51be42=_0x4eb48b;logger[_0x51be42(0x1eb)]('table\x20dropped\x20%s',_0x4da392);})['catch'](function(_0x1369db){const _0x1a58a1=_0x4eb48b;logger[_0x1a58a1(0x1eb)](JSON['stringify'](_0x1369db));});});},Migration[a1102_0xb9a361(0x1de)]['addIndex']=function(_0x11c7c8,_0x4c369f,_0x5e1d6e){const _0xacfa56=a1102_0xb9a361,_0xfa152b=this;this[_0xacfa56(0x1f6)]['enqueue'](function(){const _0x4ef4ee=_0xacfa56;return _0xfa152b[_0x4ef4ee(0x202)][_0x4ef4ee(0x20d)](_0x11c7c8,_0x4c369f,{'indexName':_0x5e1d6e})['then'](function(){const _0x3c6221=_0x4ef4ee;logger[_0x3c6221(0x1eb)](_0x3c6221(0x1fa),_0x11c7c8,_0x4c369f[_0x3c6221(0x1e6)](','),_0x5e1d6e);})[_0x4ef4ee(0x207)](function(_0x46b0a1){const _0x19e81d=_0x4ef4ee;logger[_0x19e81d(0x1eb)](JSON[_0x19e81d(0x1f7)](_0x46b0a1));});});},Migration['prototype'][a1102_0xb9a361(0x203)]=function(_0x3c0af3){const _0x5820c9=a1102_0xb9a361,_0x15355e=this;this[_0x5820c9(0x1f6)]['enqueue'](function(){const _0x52e684=_0x5820c9;return _0x15355e[_0x52e684(0x202)][_0x52e684(0x1e9)][_0x52e684(0x203)](_0x3c0af3)[_0x52e684(0x1fe)](function(){const _0x20fa28=_0x52e684;logger[_0x20fa28(0x1eb)]('query\x20%s',_0x3c0af3);})[_0x52e684(0x207)](function(_0x3f7bc5){const _0x4e8871=_0x52e684;logger['info'](JSON[_0x4e8871(0x1f7)](_0x3f7bc5));});});},Migration[a1102_0xb9a361(0x1de)][a1102_0xb9a361(0x1e3)]=function(_0x440a87,_0x163686){const _0x990903=a1102_0xb9a361,_0x1507fe=this;this[_0x990903(0x1f6)]['enqueue'](function(){const _0x1f0f0a=_0x990903;return _0x1507fe[_0x1f0f0a(0x202)]['removeColumn'](_0x440a87,_0x163686)[_0x1f0f0a(0x1fe)](function(){const _0x3823af=_0x1f0f0a;logger[_0x3823af(0x1eb)](_0x3823af(0x20b),_0x163686,_0x440a87);})['catch'](function(_0x33760a){const _0xab8065=_0x1f0f0a;logger[_0xab8065(0x1eb)](util[_0xab8065(0x204)](_0x33760a,{'showHidden':![],'depth':null}));});});},Migration[a1102_0xb9a361(0x1de)][a1102_0xb9a361(0x1fb)]=function(_0x209b2a,_0x41848d,_0x390c6c){const _0x134e62=a1102_0xb9a361,_0x183aea=this;this[_0x134e62(0x1f6)][_0x134e62(0x200)](function(){const _0x2fdc2b=_0x134e62;return _0x183aea[_0x2fdc2b(0x202)][_0x2fdc2b(0x1fb)](_0x209b2a,_0x41848d,_0x390c6c)[_0x2fdc2b(0x1fe)](function(){const _0x31ee31=_0x2fdc2b;logger[_0x31ee31(0x1eb)](_0x31ee31(0x1fd),_0x41848d,_0x390c6c,_0x209b2a);})[_0x2fdc2b(0x207)](function(_0xdc89f7){const _0x32b12d=_0x2fdc2b;logger[_0x32b12d(0x1eb)](util[_0x32b12d(0x204)](_0xdc89f7,{'showHidden':![],'depth':null}));});});},Migration[a1102_0xb9a361(0x1de)][a1102_0xb9a361(0x20a)]=function(_0x1d2e27){const _0x5f4a3b=a1102_0xb9a361;this[_0x5f4a3b(0x1f6)][_0x5f4a3b(0x200)](function(){return _0x1d2e27();});},module[a1102_0xb9a361(0x1f8)]={'up':function(_0x2c9257,_0x8c5ec){return new Promise(function(_0x33ee36){const _0x46f431=a1102_0x4ad3,_0x305a22=new Migration(_0x2c9257);_0x305a22['addColumn']('settings','phoneBarAutoUpdater',{'type':_0x8c5ec[_0x46f431(0x1e7)],'defaultValue':!![]}),_0x305a22[_0x46f431(0x1f0)](_0x46f431(0x209),_0x46f431(0x1f4),{'type':_0x8c5ec[_0x46f431(0x1ef)],'defaultValue':_0x46f431(0x1df)}),_0x305a22['addColumn'](_0x46f431(0x1e5),_0x46f431(0x1ea),{'type':_0x8c5ec[_0x46f431(0x1ef)]}),_0x305a22['addColumn'](_0x46f431(0x1e4),_0x46f431(0x1ea),{'type':_0x8c5ec[_0x46f431(0x1ef)]}),_0x305a22['addColumn']('users',_0x46f431(0x1f3),{'type':_0x8c5ec['STRING']}),_0x305a22['addColumn'](_0x46f431(0x1e8),_0x46f431(0x205),{'type':_0x8c5ec[_0x46f431(0x1ef)]}),_0x305a22[_0x46f431(0x1f0)]('cm_contacts',_0x46f431(0x1ec),{'type':_0x8c5ec[_0x46f431(0x1e0)]}),_0x305a22['addColumn']('cm_contacts',_0x46f431(0x1ee),{'type':_0x8c5ec['INTEGER'](0x2)[_0x46f431(0x1f9)],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}}),_0x305a22[_0x46f431(0x1f0)]('cm_contacts',_0x46f431(0x1f1),{'type':_0x8c5ec[_0x46f431(0x1e1)],'defaultValue':_0x8c5ec[_0x46f431(0x1ed)]}),_0x305a22['addColumn']('mail_interactions',_0x46f431(0x206),{'type':_0x8c5ec[_0x46f431(0x1ef)],'defaultValue':''}),_0x305a22[_0x46f431(0x1f0)](_0x46f431(0x20c),_0x46f431(0x206),{'type':_0x8c5ec[_0x46f431(0x1ef)],'defaultValue':''}),_0x305a22[_0x46f431(0x1f0)]('sms_interactions','openedBy',{'type':_0x8c5ec[_0x46f431(0x1ef)],'defaultValue':''}),_0x305a22['addColumn']('openchannel_interactions',_0x46f431(0x206),{'type':_0x8c5ec[_0x46f431(0x1ef)],'defaultValue':''}),_0x305a22[_0x46f431(0x1f0)]('fax_interactions',_0x46f431(0x206),{'type':_0x8c5ec['STRING'],'defaultValue':''}),_0x305a22[_0x46f431(0x203)](_0x46f431(0x1f5)),_0x305a22[_0x46f431(0x203)]('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'),_0x305a22['final'](_0x33ee36);});},'down':function(){}}; \ No newline at end of file +const a1102_0x589f=['INTEGER','https://www.xcally.com/bar/phonebar/autoupdater.xml','sequelize','stringify','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','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','settings','enqueue','catch','Removed\x20column\x20%s\x20from\x20%s','STRING','chat_interactions','DATE','addColumn','alias','openchannel_interactions','dialPrefix','changeColumn','then','addIndex\x20%s\x20%s\x20%s','phoneBarAutoUpdaterUrl','fax_interactions','util','cm_lists','sequence','../config/logger','addIndex','tail','mail_interactions','finally','phoneBarAutoUpdater','info','UNSIGNED','queryInterface','prototype','cm_contacts','join','openedBy','query\x20%s','inspect','sms_interactions','campaigns','DELETE\x20FROM\x20`voice_voicemail_messages`\x20WHERE\x20`mailboxuser`\x20NOT\x20IN\x20(SELECT\x20`mailbox`\x20FROM\x20`voice_voicemail`)','scheduledat','Added\x20column\x20%s\x20to\x20%s','query','renameColumn','BOOLEAN','NOW','dropTable'];(function(_0xb4e8b3,_0x466ad1){const _0x589fdb=function(_0x5250c1){while(--_0x5250c1){_0xb4e8b3['push'](_0xb4e8b3['shift']());}};_0x589fdb(++_0x466ad1);}(a1102_0x589f,0x19f));const a1102_0x5250=function(_0xb4e8b3,_0x466ad1){_0xb4e8b3=_0xb4e8b3-0x1a6;let _0x589fdb=a1102_0x589f[_0xb4e8b3];return _0x589fdb;};const a1102_0x2f66ef=a1102_0x5250;'use strict';const util=require(a1102_0x2f66ef(0x1b6)),logger=require(a1102_0x2f66ef(0x1b9))('migration'),Sequence=function(){};Sequence[a1102_0x2f66ef(0x1c2)]['enqueue']=function(_0x30f233){const _0x3284c0=a1102_0x2f66ef;this[_0x3284c0(0x1bb)]=this['tail']?this[_0x3284c0(0x1bb)][_0x3284c0(0x1bd)](_0x30f233):_0x30f233();};const Migration=function(_0x4ac36a){const _0x10203a=a1102_0x2f66ef;this['queryInterface']=_0x4ac36a,this[_0x10203a(0x1b8)]=new Sequence();};Migration['prototype'][a1102_0x2f66ef(0x1b1)]=function(_0x375935,_0x41a653,_0x36dbf2){const _0x302177=this;this['sequence']['enqueue'](function(){const _0x4b35df=a1102_0x5250;return _0x302177[_0x4b35df(0x1c1)][_0x4b35df(0x1b1)](_0x375935,_0x41a653,_0x36dbf2)['then'](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x41a653,_0x375935);})[_0x4b35df(0x1a8)](function(_0x16d4ce){const _0x2bb053=_0x4b35df;logger[_0x2bb053(0x1bf)](JSON[_0x2bb053(0x1d5)](_0x16d4ce));});});},Migration[a1102_0x2f66ef(0x1c2)][a1102_0x2f66ef(0x1ad)]=function(_0x56da23,_0x2c1b60,_0xfc5fef){const _0x58ce2a=a1102_0x2f66ef,_0x39820d=this;this[_0x58ce2a(0x1b8)][_0x58ce2a(0x1a7)](function(){const _0x1ca9a4=_0x58ce2a;return _0x39820d[_0x1ca9a4(0x1c1)][_0x1ca9a4(0x1ad)](_0x56da23,_0x2c1b60,_0xfc5fef)[_0x1ca9a4(0x1b2)](function(){const _0x170155=_0x1ca9a4;logger[_0x170155(0x1bf)](_0x170155(0x1cc),_0x2c1b60,_0x56da23);})['catch'](function(_0x182a86){const _0x404d08=_0x1ca9a4;logger[_0x404d08(0x1bf)](JSON[_0x404d08(0x1d5)](_0x182a86));});});},Migration['prototype'][a1102_0x2f66ef(0x1d1)]=function(_0x25ff8c){const _0x20e501=a1102_0x2f66ef,_0x262960=this;this[_0x20e501(0x1b8)][_0x20e501(0x1a7)](function(){const _0x5affad=_0x20e501;return _0x262960[_0x5affad(0x1c1)][_0x5affad(0x1d1)](_0x25ff8c,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x25ff8c);})[_0x5affad(0x1a8)](function(_0x22a2b4){const _0x56eac6=_0x5affad;logger[_0x56eac6(0x1bf)](JSON[_0x56eac6(0x1d5)](_0x22a2b4));});});},Migration[a1102_0x2f66ef(0x1c2)]['addIndex']=function(_0x3aa0d0,_0x40ef47,_0x26c427){const _0x4b6b07=a1102_0x2f66ef,_0x40b335=this;this[_0x4b6b07(0x1b8)][_0x4b6b07(0x1a7)](function(){const _0x121c8f=_0x4b6b07;return _0x40b335[_0x121c8f(0x1c1)][_0x121c8f(0x1ba)](_0x3aa0d0,_0x40ef47,{'indexName':_0x26c427})[_0x121c8f(0x1b2)](function(){const _0x20cd3f=_0x121c8f;logger[_0x20cd3f(0x1bf)](_0x20cd3f(0x1b3),_0x3aa0d0,_0x40ef47[_0x20cd3f(0x1c4)](','),_0x26c427);})[_0x121c8f(0x1a8)](function(_0x1ff605){const _0x89ca64=_0x121c8f;logger[_0x89ca64(0x1bf)](JSON[_0x89ca64(0x1d5)](_0x1ff605));});});},Migration['prototype'][a1102_0x2f66ef(0x1cd)]=function(_0x215d7c){const _0x18fc6e=a1102_0x2f66ef,_0x4f9878=this;this[_0x18fc6e(0x1b8)]['enqueue'](function(){const _0x39c512=_0x18fc6e;return _0x4f9878[_0x39c512(0x1c1)][_0x39c512(0x1d4)][_0x39c512(0x1cd)](_0x215d7c)[_0x39c512(0x1b2)](function(){const _0x11dc0d=_0x39c512;logger['info'](_0x11dc0d(0x1c6),_0x215d7c);})[_0x39c512(0x1a8)](function(_0x32d5ed){const _0x23774c=_0x39c512;logger[_0x23774c(0x1bf)](JSON['stringify'](_0x32d5ed));});});},Migration[a1102_0x2f66ef(0x1c2)]['removeColumn']=function(_0x8b0e70,_0x2e9a6f){const _0x5f0125=a1102_0x2f66ef,_0x22ee01=this;this[_0x5f0125(0x1b8)][_0x5f0125(0x1a7)](function(){const _0x17e844=_0x5f0125;return _0x22ee01[_0x17e844(0x1c1)]['removeColumn'](_0x8b0e70,_0x2e9a6f)[_0x17e844(0x1b2)](function(){const _0xc8f358=_0x17e844;logger[_0xc8f358(0x1bf)](_0xc8f358(0x1a9),_0x2e9a6f,_0x8b0e70);})[_0x17e844(0x1a8)](function(_0x2d82f1){const _0x489e4d=_0x17e844;logger[_0x489e4d(0x1bf)](util[_0x489e4d(0x1c7)](_0x2d82f1,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1102_0x2f66ef(0x1ce)]=function(_0x4c759c,_0x50a9e2,_0x499119){const _0x5e99db=this;this['sequence']['enqueue'](function(){const _0xe66345=a1102_0x5250;return _0x5e99db[_0xe66345(0x1c1)][_0xe66345(0x1ce)](_0x4c759c,_0x50a9e2,_0x499119)[_0xe66345(0x1b2)](function(){const _0x3cbe31=_0xe66345;logger[_0x3cbe31(0x1bf)](_0x3cbe31(0x1d8),_0x50a9e2,_0x499119,_0x4c759c);})[_0xe66345(0x1a8)](function(_0x58aa80){const _0x160309=_0xe66345;logger['info'](util[_0x160309(0x1c7)](_0x58aa80,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x41502c){const _0x368661=a1102_0x2f66ef;this[_0x368661(0x1b8)]['enqueue'](function(){return _0x41502c();});},module['exports']={'up':function(_0x5c66cb,_0x3e5a4a){return new Promise(function(_0x3d0e56){const _0x422195=a1102_0x5250,_0xfcc194=new Migration(_0x5c66cb);_0xfcc194[_0x422195(0x1ad)](_0x422195(0x1a6),_0x422195(0x1be),{'type':_0x3e5a4a[_0x422195(0x1cf)],'defaultValue':!![]}),_0xfcc194[_0x422195(0x1ad)]('settings',_0x422195(0x1b4),{'type':_0x3e5a4a[_0x422195(0x1aa)],'defaultValue':_0x422195(0x1d3)}),_0xfcc194[_0x422195(0x1ad)](_0x422195(0x1c9),'dialPrefix',{'type':_0x3e5a4a[_0x422195(0x1aa)]}),_0xfcc194[_0x422195(0x1ad)](_0x422195(0x1b7),_0x422195(0x1b0),{'type':_0x3e5a4a[_0x422195(0x1aa)]}),_0xfcc194[_0x422195(0x1ad)]('users',_0x422195(0x1ae),{'type':_0x3e5a4a[_0x422195(0x1aa)]}),_0xfcc194['addColumn'](_0x422195(0x1c3),'skype',{'type':_0x3e5a4a[_0x422195(0x1aa)]}),_0xfcc194[_0x422195(0x1ad)](_0x422195(0x1c3),'UserId',{'type':_0x3e5a4a[_0x422195(0x1d2)]}),_0xfcc194[_0x422195(0x1ad)](_0x422195(0x1c3),_0x422195(0x1d7),{'type':_0x3e5a4a[_0x422195(0x1d2)](0x2)[_0x422195(0x1c0)],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}}),_0xfcc194[_0x422195(0x1ad)]('cm_contacts',_0x422195(0x1cb),{'type':_0x3e5a4a[_0x422195(0x1ac)],'defaultValue':_0x3e5a4a[_0x422195(0x1d0)]}),_0xfcc194[_0x422195(0x1ad)](_0x422195(0x1bc),_0x422195(0x1c5),{'type':_0x3e5a4a[_0x422195(0x1aa)],'defaultValue':''}),_0xfcc194['addColumn'](_0x422195(0x1ab),_0x422195(0x1c5),{'type':_0x3e5a4a[_0x422195(0x1aa)],'defaultValue':''}),_0xfcc194[_0x422195(0x1ad)](_0x422195(0x1c8),_0x422195(0x1c5),{'type':_0x3e5a4a[_0x422195(0x1aa)],'defaultValue':''}),_0xfcc194[_0x422195(0x1ad)](_0x422195(0x1af),'openedBy',{'type':_0x3e5a4a[_0x422195(0x1aa)],'defaultValue':''}),_0xfcc194[_0x422195(0x1ad)](_0x422195(0x1b5),_0x422195(0x1c5),{'type':_0x3e5a4a[_0x422195(0x1aa)],'defaultValue':''}),_0xfcc194[_0x422195(0x1cd)](_0x422195(0x1ca)),_0xfcc194[_0x422195(0x1cd)](_0x422195(0x1d6)),_0xfcc194['final'](_0x3d0e56);});},'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 57c2a18..93f6873 100644 --- a/server/migrations/2.0.60.js +++ b/server/migrations/2.0.60.js @@ -1 +1 @@ -const a1103_0x1f57=['removeColumn','addColumn','dropTable','waitForTheAssignedAgent','STRING','inspect','long','finally','util','fax_interactions','then','stringify','Removed\x20column\x20%s\x20from\x20%s','info','exports','catch','final','prototype','addIndex','sequelize','TEXT','addIndex\x20%s\x20%s\x20%s','tail','phoneBarEnableJaws','from','agentIdentifier','queryInterface','sms_interactions','Added\x20column\x20%s\x20to\x20%s','fax_accounts','openchannel_interactions','chat_websites','changeColumn','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','users','sms_accounts','sequence','query','INTEGER','renameColumn','enqueue','query\x20%s','openchannel_accounts','website_alias','mail_interactions','openedBy'];(function(_0x1fc64d,_0x2b1e76){const _0x1f5784=function(_0x82e19e){while(--_0x82e19e){_0x1fc64d['push'](_0x1fc64d['shift']());}};_0x1f5784(++_0x2b1e76);}(a1103_0x1f57,0x1be));const a1103_0x82e1=function(_0x1fc64d,_0x2b1e76){_0x1fc64d=_0x1fc64d-0x1de;let _0x1f5784=a1103_0x1f57[_0x1fc64d];return _0x1f5784;};const a1103_0x21b45d=a1103_0x82e1;'use strict';const util=require(a1103_0x21b45d(0x1fe)),logger=require(a1103_0x21b45d(0x1e8))('migration'),Sequence=function(){};Sequence[a1103_0x21b45d(0x207)][a1103_0x21b45d(0x1f0)]=function(_0xfed1ae){const _0x13d489=a1103_0x21b45d;this[_0x13d489(0x20c)]=this[_0x13d489(0x20c)]?this['tail'][_0x13d489(0x1fd)](_0xfed1ae):_0xfed1ae();};const Migration=function(_0x9b1743){const _0x338da7=a1103_0x21b45d;this[_0x338da7(0x1e1)]=_0x9b1743,this['sequence']=new Sequence();};Migration[a1103_0x21b45d(0x207)][a1103_0x21b45d(0x1e7)]=function(_0x52a55b,_0x4a0957,_0x30a004){const _0x527dad=a1103_0x21b45d,_0x404e0c=this;this[_0x527dad(0x1ec)][_0x527dad(0x1f0)](function(){const _0x5e8123=_0x527dad;return _0x404e0c[_0x5e8123(0x1e1)][_0x5e8123(0x1e7)](_0x52a55b,_0x4a0957,_0x30a004)[_0x5e8123(0x200)](function(){const _0x1414ba=_0x5e8123;logger[_0x1414ba(0x203)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4a0957,_0x52a55b);})[_0x5e8123(0x205)](function(_0x5f9313){const _0x20d018=_0x5e8123;logger[_0x20d018(0x203)](JSON[_0x20d018(0x201)](_0x5f9313));});});},Migration['prototype'][a1103_0x21b45d(0x1f7)]=function(_0x59e145,_0x292e86,_0x1b8142){const _0x2cf090=a1103_0x21b45d,_0x2e58d6=this;this[_0x2cf090(0x1ec)][_0x2cf090(0x1f0)](function(){const _0x5d0514=_0x2cf090;return _0x2e58d6[_0x5d0514(0x1e1)][_0x5d0514(0x1f7)](_0x59e145,_0x292e86,_0x1b8142)['then'](function(){const _0x105e3d=_0x5d0514;logger[_0x105e3d(0x203)](_0x105e3d(0x1e3),_0x292e86,_0x59e145);})[_0x5d0514(0x205)](function(_0x50a9f7){const _0x12fb79=_0x5d0514;logger[_0x12fb79(0x203)](JSON['stringify'](_0x50a9f7));});});},Migration[a1103_0x21b45d(0x207)][a1103_0x21b45d(0x1f8)]=function(_0x109458){const _0x2f02b6=a1103_0x21b45d,_0x4b5094=this;this[_0x2f02b6(0x1ec)][_0x2f02b6(0x1f0)](function(){const _0x213f48=_0x2f02b6;return _0x4b5094[_0x213f48(0x1e1)]['dropTable'](_0x109458,{'force':!![]})[_0x213f48(0x200)](function(){const _0x3b74e8=_0x213f48;logger[_0x3b74e8(0x203)]('table\x20dropped\x20%s',_0x109458);})[_0x213f48(0x205)](function(_0x2992ce){const _0x23aab6=_0x213f48;logger[_0x23aab6(0x203)](JSON[_0x23aab6(0x201)](_0x2992ce));});});},Migration[a1103_0x21b45d(0x207)][a1103_0x21b45d(0x208)]=function(_0x20e160,_0x4c36d1,_0x4b1721){const _0x2b5b83=a1103_0x21b45d,_0x2e6d13=this;this[_0x2b5b83(0x1ec)][_0x2b5b83(0x1f0)](function(){const _0x1deba5=_0x2b5b83;return _0x2e6d13[_0x1deba5(0x1e1)][_0x1deba5(0x208)](_0x20e160,_0x4c36d1,{'indexName':_0x4b1721})[_0x1deba5(0x200)](function(){const _0x15b2f5=_0x1deba5;logger[_0x15b2f5(0x203)](_0x15b2f5(0x20b),_0x20e160,_0x4c36d1['join'](','),_0x4b1721);})[_0x1deba5(0x205)](function(_0x456834){const _0x2871c7=_0x1deba5;logger[_0x2871c7(0x203)](JSON['stringify'](_0x456834));});});},Migration['prototype'][a1103_0x21b45d(0x1ed)]=function(_0x3d5c64){const _0x120288=a1103_0x21b45d,_0x312574=this;this[_0x120288(0x1ec)][_0x120288(0x1f0)](function(){const _0xa1e9cc=_0x120288;return _0x312574['queryInterface'][_0xa1e9cc(0x209)][_0xa1e9cc(0x1ed)](_0x3d5c64)[_0xa1e9cc(0x200)](function(){const _0x27913a=_0xa1e9cc;logger['info'](_0x27913a(0x1f1),_0x3d5c64);})['catch'](function(_0x2f1827){const _0x315594=_0xa1e9cc;logger[_0x315594(0x203)](JSON[_0x315594(0x201)](_0x2f1827));});});},Migration['prototype'][a1103_0x21b45d(0x1f6)]=function(_0x573f2a,_0x64a98b){const _0x1bfa49=a1103_0x21b45d,_0x2f3449=this;this['sequence'][_0x1bfa49(0x1f0)](function(){const _0x4cc12c=_0x1bfa49;return _0x2f3449[_0x4cc12c(0x1e1)][_0x4cc12c(0x1f6)](_0x573f2a,_0x64a98b)[_0x4cc12c(0x200)](function(){const _0x459d29=_0x4cc12c;logger[_0x459d29(0x203)](_0x459d29(0x202),_0x64a98b,_0x573f2a);})['catch'](function(_0x4a1852){logger['info'](util['inspect'](_0x4a1852,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1103_0x21b45d(0x1ef)]=function(_0x26cf4a,_0x59252f,_0x4b8013){const _0x2fe934=a1103_0x21b45d,_0xb564e1=this;this[_0x2fe934(0x1ec)][_0x2fe934(0x1f0)](function(){const _0xcf1c8=_0x2fe934;return _0xb564e1[_0xcf1c8(0x1e1)][_0xcf1c8(0x1ef)](_0x26cf4a,_0x59252f,_0x4b8013)[_0xcf1c8(0x200)](function(){const _0x475e4d=_0xcf1c8;logger[_0x475e4d(0x203)](_0x475e4d(0x1e9),_0x59252f,_0x4b8013,_0x26cf4a);})[_0xcf1c8(0x205)](function(_0x3552ff){const _0x39434e=_0xcf1c8;logger[_0x39434e(0x203)](util[_0x39434e(0x1fb)](_0x3552ff,{'showHidden':![],'depth':null}));});});},Migration[a1103_0x21b45d(0x207)][a1103_0x21b45d(0x206)]=function(_0x9118f8){const _0x1a95bc=a1103_0x21b45d;this[_0x1a95bc(0x1ec)][_0x1a95bc(0x1f0)](function(){return _0x9118f8();});},module[a1103_0x21b45d(0x204)]={'up':function(_0x312cd8,_0xe42cc3){return new Promise(function(_0x31abaf){const _0x5da7f1=a1103_0x82e1,_0x560b1e=new Migration(_0x312cd8);_0x560b1e[_0x5da7f1(0x1f7)](_0x5da7f1(0x1e6),_0x5da7f1(0x1e0),{'type':_0xe42cc3[_0x5da7f1(0x1fa)],'defaultValue':_0x5da7f1(0x1f3)}),_0x560b1e[_0x5da7f1(0x1f7)](_0x5da7f1(0x1e6),_0x5da7f1(0x1f9),{'type':_0xe42cc3['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x560b1e[_0x5da7f1(0x1f6)]('chat_interactions',_0x5da7f1(0x1f5)),_0x560b1e[_0x5da7f1(0x1f6)](_0x5da7f1(0x1f4),_0x5da7f1(0x1f5)),_0x560b1e[_0x5da7f1(0x1f7)](_0x5da7f1(0x1f4),'lastMsgBody',{'type':_0xe42cc3[_0x5da7f1(0x20a)](_0x5da7f1(0x1fc))}),_0x560b1e['removeColumn'](_0x5da7f1(0x1e2),_0x5da7f1(0x1f5)),_0x560b1e[_0x5da7f1(0x1f6)](_0x5da7f1(0x1ff),_0x5da7f1(0x1f5)),_0x560b1e[_0x5da7f1(0x1f6)]('openchannel_interactions','openedBy'),_0x560b1e[_0x5da7f1(0x1f7)](_0x5da7f1(0x1e5),_0x5da7f1(0x1df),{'type':_0xe42cc3[_0x5da7f1(0x1fa)]}),_0x560b1e[_0x5da7f1(0x1f7)]('mail_accounts',_0x5da7f1(0x1f9),{'type':_0xe42cc3[_0x5da7f1(0x1ee)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x560b1e[_0x5da7f1(0x1f7)](_0x5da7f1(0x1f2),_0x5da7f1(0x1f9),{'type':_0xe42cc3[_0x5da7f1(0x1ee)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x560b1e['addColumn'](_0x5da7f1(0x1e4),'waitForTheAssignedAgent',{'type':_0xe42cc3[_0x5da7f1(0x1ee)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x560b1e[_0x5da7f1(0x1f7)](_0x5da7f1(0x1eb),_0x5da7f1(0x1f9),{'type':_0xe42cc3[_0x5da7f1(0x1ee)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x560b1e['addColumn'](_0x5da7f1(0x1ea),_0x5da7f1(0x1de),{'type':_0xe42cc3['BOOLEAN'],'defaultValue':![]}),_0x560b1e[_0x5da7f1(0x206)](_0x31abaf);});},'down':function(){}}; \ No newline at end of file +const a1103_0x1681=['final','catch','queryInterface','util','INTEGER','long','TEXT','openedBy','then','addIndex\x20%s\x20%s\x20%s','waitForTheAssignedAgent','Removed\x20column\x20%s\x20from\x20%s','openchannel_interactions','users','mail_accounts','stringify','query\x20%s','mail_interactions','enqueue','migration','prototype','sms_accounts','inspect','tail','BOOLEAN','addColumn','join','Added\x20column\x20%s\x20to\x20%s','website_alias','info','table\x20dropped\x20%s','from','renameColumn','sequence','dropTable','agentIdentifier','changeColumn','sequelize','exports','addIndex','fax_accounts','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','chat_interactions','STRING','removeColumn','lastMsgBody','chat_websites'];(function(_0x391e7b,_0x1fd69e){const _0x168151=function(_0x3f4a09){while(--_0x3f4a09){_0x391e7b['push'](_0x391e7b['shift']());}};_0x168151(++_0x1fd69e);}(a1103_0x1681,0x95));const a1103_0x3f4a=function(_0x391e7b,_0x1fd69e){_0x391e7b=_0x391e7b-0x7d;let _0x168151=a1103_0x1681[_0x391e7b];return _0x168151;};const a1103_0x3371ca=a1103_0x3f4a;'use strict';const util=require(a1103_0x3371ca(0xa7)),logger=require('../config/logger')(a1103_0x3371ca(0x88)),Sequence=function(){};Sequence[a1103_0x3371ca(0x89)][a1103_0x3371ca(0x87)]=function(_0x520ab0){const _0x470b2a=a1103_0x3371ca;this[_0x470b2a(0x8c)]=this[_0x470b2a(0x8c)]?this[_0x470b2a(0x8c)]['finally'](_0x520ab0):_0x520ab0();};const Migration=function(_0x3dcccd){const _0x285022=a1103_0x3371ca;this[_0x285022(0xa6)]=_0x3dcccd,this[_0x285022(0x96)]=new Sequence();};Migration[a1103_0x3371ca(0x89)][a1103_0x3371ca(0x99)]=function(_0x57dcaf,_0x5d7f2b,_0x577e03){const _0x4a7a2e=a1103_0x3371ca,_0x5dabe6=this;this[_0x4a7a2e(0x96)][_0x4a7a2e(0x87)](function(){const _0x3ab168=_0x4a7a2e;return _0x5dabe6[_0x3ab168(0xa6)][_0x3ab168(0x99)](_0x57dcaf,_0x5d7f2b,_0x577e03)[_0x3ab168(0x7d)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5d7f2b,_0x57dcaf);})[_0x3ab168(0xa5)](function(_0x3b3913){const _0x500093=_0x3ab168;logger[_0x500093(0x92)](JSON['stringify'](_0x3b3913));});});},Migration['prototype'][a1103_0x3371ca(0x8e)]=function(_0x32ab1c,_0x5378c3,_0xd05a89){const _0x3be99e=a1103_0x3371ca,_0x37681c=this;this[_0x3be99e(0x96)]['enqueue'](function(){const _0x5b4eec=_0x3be99e;return _0x37681c[_0x5b4eec(0xa6)]['addColumn'](_0x32ab1c,_0x5378c3,_0xd05a89)['then'](function(){const _0x28b8cf=_0x5b4eec;logger['info'](_0x28b8cf(0x90),_0x5378c3,_0x32ab1c);})['catch'](function(_0x203eb8){const _0x42c48f=_0x5b4eec;logger[_0x42c48f(0x92)](JSON[_0x42c48f(0x84)](_0x203eb8));});});},Migration[a1103_0x3371ca(0x89)][a1103_0x3371ca(0x97)]=function(_0x42f15f){const _0x3cc3be=a1103_0x3371ca,_0x3a0d8b=this;this[_0x3cc3be(0x96)][_0x3cc3be(0x87)](function(){const _0x55530e=_0x3cc3be;return _0x3a0d8b['queryInterface'][_0x55530e(0x97)](_0x42f15f,{'force':!![]})[_0x55530e(0x7d)](function(){const _0x47b54f=_0x55530e;logger[_0x47b54f(0x92)](_0x47b54f(0x93),_0x42f15f);})[_0x55530e(0xa5)](function(_0x38e796){const _0x547a2c=_0x55530e;logger[_0x547a2c(0x92)](JSON['stringify'](_0x38e796));});});},Migration[a1103_0x3371ca(0x89)][a1103_0x3371ca(0x9c)]=function(_0x376d8f,_0x5e5877,_0x1eeba1){const _0x2ea772=a1103_0x3371ca,_0x3fe5ec=this;this[_0x2ea772(0x96)][_0x2ea772(0x87)](function(){const _0x28d363=_0x2ea772;return _0x3fe5ec['queryInterface'][_0x28d363(0x9c)](_0x376d8f,_0x5e5877,{'indexName':_0x1eeba1})[_0x28d363(0x7d)](function(){const _0x303cb9=_0x28d363;logger[_0x303cb9(0x92)](_0x303cb9(0x7e),_0x376d8f,_0x5e5877[_0x303cb9(0x8f)](','),_0x1eeba1);})[_0x28d363(0xa5)](function(_0x3bee8c){const _0x9f2580=_0x28d363;logger[_0x9f2580(0x92)](JSON['stringify'](_0x3bee8c));});});},Migration['prototype']['query']=function(_0x2e3c61){const _0xee49bd=a1103_0x3371ca,_0x466473=this;this[_0xee49bd(0x96)][_0xee49bd(0x87)](function(){const _0x3b3e32=_0xee49bd;return _0x466473[_0x3b3e32(0xa6)][_0x3b3e32(0x9a)]['query'](_0x2e3c61)['then'](function(){const _0x31d7bf=_0x3b3e32;logger[_0x31d7bf(0x92)](_0x31d7bf(0x85),_0x2e3c61);})['catch'](function(_0x5ba84c){const _0x431b6a=_0x3b3e32;logger[_0x431b6a(0x92)](JSON[_0x431b6a(0x84)](_0x5ba84c));});});},Migration[a1103_0x3371ca(0x89)][a1103_0x3371ca(0xa1)]=function(_0x37587b,_0x50ff36){const _0x32154a=a1103_0x3371ca,_0x7a5c75=this;this['sequence'][_0x32154a(0x87)](function(){const _0x392d43=_0x32154a;return _0x7a5c75['queryInterface']['removeColumn'](_0x37587b,_0x50ff36)[_0x392d43(0x7d)](function(){const _0x577178=_0x392d43;logger[_0x577178(0x92)](_0x577178(0x80),_0x50ff36,_0x37587b);})[_0x392d43(0xa5)](function(_0x15cd16){const _0x33bcb9=_0x392d43;logger[_0x33bcb9(0x92)](util[_0x33bcb9(0x8b)](_0x15cd16,{'showHidden':![],'depth':null}));});});},Migration[a1103_0x3371ca(0x89)][a1103_0x3371ca(0x95)]=function(_0x2eca01,_0x4c46ff,_0x3ea345){const _0x42c0c7=this;this['sequence']['enqueue'](function(){const _0x37386d=a1103_0x3f4a;return _0x42c0c7[_0x37386d(0xa6)][_0x37386d(0x95)](_0x2eca01,_0x4c46ff,_0x3ea345)[_0x37386d(0x7d)](function(){const _0x1f654c=_0x37386d;logger[_0x1f654c(0x92)](_0x1f654c(0x9e),_0x4c46ff,_0x3ea345,_0x2eca01);})['catch'](function(_0x34f8ac){const _0x234352=_0x37386d;logger[_0x234352(0x92)](util[_0x234352(0x8b)](_0x34f8ac,{'showHidden':![],'depth':null}));});});},Migration[a1103_0x3371ca(0x89)][a1103_0x3371ca(0xa4)]=function(_0x358312){const _0x17a28b=a1103_0x3371ca;this['sequence'][_0x17a28b(0x87)](function(){return _0x358312();});},module[a1103_0x3371ca(0x9b)]={'up':function(_0x467aa0,_0x2bf082){return new Promise(function(_0x17016a){const _0x4c38b1=a1103_0x3f4a,_0x44aa22=new Migration(_0x467aa0);_0x44aa22['addColumn'](_0x4c38b1(0xa3),_0x4c38b1(0x98),{'type':_0x2bf082[_0x4c38b1(0xa0)],'defaultValue':_0x4c38b1(0x91)}),_0x44aa22[_0x4c38b1(0x8e)](_0x4c38b1(0xa3),'waitForTheAssignedAgent',{'type':_0x2bf082[_0x4c38b1(0xa8)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x44aa22[_0x4c38b1(0xa1)](_0x4c38b1(0x9f),_0x4c38b1(0xab)),_0x44aa22[_0x4c38b1(0xa1)](_0x4c38b1(0x86),_0x4c38b1(0xab)),_0x44aa22[_0x4c38b1(0x8e)](_0x4c38b1(0x86),_0x4c38b1(0xa2),{'type':_0x2bf082[_0x4c38b1(0xaa)](_0x4c38b1(0xa9))}),_0x44aa22['removeColumn']('sms_interactions',_0x4c38b1(0xab)),_0x44aa22[_0x4c38b1(0xa1)]('fax_interactions',_0x4c38b1(0xab)),_0x44aa22[_0x4c38b1(0xa1)]('openchannel_interactions',_0x4c38b1(0xab)),_0x44aa22[_0x4c38b1(0x8e)](_0x4c38b1(0x81),_0x4c38b1(0x94),{'type':_0x2bf082[_0x4c38b1(0xa0)]}),_0x44aa22[_0x4c38b1(0x8e)](_0x4c38b1(0x83),_0x4c38b1(0x7f),{'type':_0x2bf082['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x44aa22[_0x4c38b1(0x8e)]('openchannel_accounts',_0x4c38b1(0x7f),{'type':_0x2bf082[_0x4c38b1(0xa8)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x44aa22[_0x4c38b1(0x8e)](_0x4c38b1(0x9d),_0x4c38b1(0x7f),{'type':_0x2bf082['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x44aa22[_0x4c38b1(0x8e)](_0x4c38b1(0x8a),_0x4c38b1(0x7f),{'type':_0x2bf082['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x44aa22['addColumn'](_0x4c38b1(0x82),'phoneBarEnableJaws',{'type':_0x2bf082[_0x4c38b1(0x8d)],'defaultValue':![]}),_0x44aa22[_0x4c38b1(0xa4)](_0x17016a);});},'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 04e57aa..3a07b51 100644 --- a/server/migrations/2.0.61.js +++ b/server/migrations/2.0.61.js @@ -1 +1 @@ -const a1104_0x51be=['sequence','info','final','query','prototype','inspect','addIndex\x20%s\x20%s\x20%s','migration','addColumn','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','catch','changeColumn','util','exports','renameColumn','enqueue','dropTable','stringify','sequelize','then','addIndex','tail','removeColumn'];(function(_0x25b25d,_0x11847b){const _0x51be88=function(_0x4df752){while(--_0x4df752){_0x25b25d['push'](_0x25b25d['shift']());}};_0x51be88(++_0x11847b);}(a1104_0x51be,0x1bf));const a1104_0x4df7=function(_0x25b25d,_0x11847b){_0x25b25d=_0x25b25d-0x191;let _0x51be88=a1104_0x51be[_0x25b25d];return _0x51be88;};const a1104_0x462eb4=a1104_0x4df7;'use strict';const util=require(a1104_0x462eb4(0x192)),logger=require('../config/logger')(a1104_0x462eb4(0x1a4)),Sequence=function(){};Sequence[a1104_0x462eb4(0x1a1)][a1104_0x462eb4(0x195)]=function(_0x594d3b){const _0x1f76f0=a1104_0x462eb4;this[_0x1f76f0(0x19b)]=this[_0x1f76f0(0x19b)]?this[_0x1f76f0(0x19b)][_0x1f76f0(0x1a8)](_0x594d3b):_0x594d3b();};const Migration=function(_0x455894){const _0x45cec1=a1104_0x462eb4;this[_0x45cec1(0x1a6)]=_0x455894,this['sequence']=new Sequence();};Migration['prototype'][a1104_0x462eb4(0x191)]=function(_0x24fc8d,_0x56dd19,_0x5e2cb2){const _0x567217=a1104_0x462eb4,_0x241727=this;this['sequence'][_0x567217(0x195)](function(){const _0x505a86=_0x567217;return _0x241727[_0x505a86(0x1a6)][_0x505a86(0x191)](_0x24fc8d,_0x56dd19,_0x5e2cb2)['then'](function(){const _0x60c018=_0x505a86;logger['info'](_0x60c018(0x1a9),_0x56dd19,_0x24fc8d);})[_0x505a86(0x1ab)](function(_0x572e3d){const _0x50fa25=_0x505a86;logger[_0x50fa25(0x19e)](JSON['stringify'](_0x572e3d));});});},Migration[a1104_0x462eb4(0x1a1)][a1104_0x462eb4(0x1a5)]=function(_0x12a8dc,_0x4e2b9b,_0x30087f){const _0xcdb88f=a1104_0x462eb4,_0x267a75=this;this[_0xcdb88f(0x19d)][_0xcdb88f(0x195)](function(){const _0x153d81=_0xcdb88f;return _0x267a75['queryInterface']['addColumn'](_0x12a8dc,_0x4e2b9b,_0x30087f)[_0x153d81(0x199)](function(){const _0xd96acd=_0x153d81;logger[_0xd96acd(0x19e)]('Added\x20column\x20%s\x20to\x20%s',_0x4e2b9b,_0x12a8dc);})[_0x153d81(0x1ab)](function(_0x4a9be3){const _0x277550=_0x153d81;logger[_0x277550(0x19e)](JSON[_0x277550(0x197)](_0x4a9be3));});});},Migration['prototype'][a1104_0x462eb4(0x196)]=function(_0x28c37d){const _0x19ce4d=a1104_0x462eb4,_0x24cf65=this;this[_0x19ce4d(0x19d)]['enqueue'](function(){const _0xf1bf77=_0x19ce4d;return _0x24cf65[_0xf1bf77(0x1a6)]['dropTable'](_0x28c37d,{'force':!![]})[_0xf1bf77(0x199)](function(){logger['info']('table\x20dropped\x20%s',_0x28c37d);})['catch'](function(_0x4d203e){const _0x450e68=_0xf1bf77;logger[_0x450e68(0x19e)](JSON[_0x450e68(0x197)](_0x4d203e));});});},Migration[a1104_0x462eb4(0x1a1)][a1104_0x462eb4(0x19a)]=function(_0x4e30a6,_0x5eea81,_0x4a55aa){const _0x38906f=a1104_0x462eb4,_0x174290=this;this[_0x38906f(0x19d)][_0x38906f(0x195)](function(){const _0x163e46=_0x38906f;return _0x174290['queryInterface'][_0x163e46(0x19a)](_0x4e30a6,_0x5eea81,{'indexName':_0x4a55aa})[_0x163e46(0x199)](function(){const _0x5741af=_0x163e46;logger['info'](_0x5741af(0x1a3),_0x4e30a6,_0x5eea81['join'](','),_0x4a55aa);})['catch'](function(_0x5631cb){const _0x880ce1=_0x163e46;logger[_0x880ce1(0x19e)](JSON[_0x880ce1(0x197)](_0x5631cb));});});},Migration[a1104_0x462eb4(0x1a1)][a1104_0x462eb4(0x1a0)]=function(_0x412559){const _0x4eb051=a1104_0x462eb4,_0x447dca=this;this[_0x4eb051(0x19d)][_0x4eb051(0x195)](function(){const _0x41e154=_0x4eb051;return _0x447dca[_0x41e154(0x1a6)][_0x41e154(0x198)]['query'](_0x412559)[_0x41e154(0x199)](function(){const _0xef1a9=_0x41e154;logger['info'](_0xef1a9(0x1aa),_0x412559);})[_0x41e154(0x1ab)](function(_0x258a0b){const _0x5c36ba=_0x41e154;logger[_0x5c36ba(0x19e)](JSON['stringify'](_0x258a0b));});});},Migration[a1104_0x462eb4(0x1a1)][a1104_0x462eb4(0x19c)]=function(_0x16ba45,_0x54cb93){const _0x2d1147=this;this['sequence']['enqueue'](function(){const _0x5f0ee8=a1104_0x4df7;return _0x2d1147[_0x5f0ee8(0x1a6)][_0x5f0ee8(0x19c)](_0x16ba45,_0x54cb93)['then'](function(){const _0x23f0be=_0x5f0ee8;logger[_0x23f0be(0x19e)]('Removed\x20column\x20%s\x20from\x20%s',_0x54cb93,_0x16ba45);})[_0x5f0ee8(0x1ab)](function(_0x5e7be9){const _0x136f58=_0x5f0ee8;logger[_0x136f58(0x19e)](util[_0x136f58(0x1a2)](_0x5e7be9,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1104_0x462eb4(0x194)]=function(_0x5866e8,_0x1f5f48,_0x3f0e1e){const _0x38d257=a1104_0x462eb4,_0x1b6ad8=this;this['sequence'][_0x38d257(0x195)](function(){const _0x2f1805=_0x38d257;return _0x1b6ad8[_0x2f1805(0x1a6)][_0x2f1805(0x194)](_0x5866e8,_0x1f5f48,_0x3f0e1e)[_0x2f1805(0x199)](function(){const _0x4e7f42=_0x2f1805;logger[_0x4e7f42(0x19e)](_0x4e7f42(0x1a7),_0x1f5f48,_0x3f0e1e,_0x5866e8);})['catch'](function(_0x70aa6b){const _0x3208e9=_0x2f1805;logger[_0x3208e9(0x19e)](util[_0x3208e9(0x1a2)](_0x70aa6b,{'showHidden':![],'depth':null}));});});},Migration[a1104_0x462eb4(0x1a1)][a1104_0x462eb4(0x19f)]=function(_0x358af1){const _0x589d80=a1104_0x462eb4;this[_0x589d80(0x19d)][_0x589d80(0x195)](function(){return _0x358af1();});},module[a1104_0x462eb4(0x193)]={'up':function(_0xb51a7d){return new Promise(function(_0x28bd3f){const _0x8f51e5=a1104_0x4df7,_0x2dd26c=new Migration(_0xb51a7d);_0x2dd26c[_0x8f51e5(0x19f)](_0x28bd3f);});},'down':function(){}}; \ No newline at end of file +const a1104_0x54d5=['query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','Removed\x20column\x20%s\x20from\x20%s','sequelize','then','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','query','tail','enqueue','stringify','table\x20dropped\x20%s','addIndex\x20%s\x20%s\x20%s','inspect','dropTable','info','removeColumn','addColumn','sequence','addIndex','util','queryInterface'];(function(_0x5c14a7,_0x197d28){const _0x54d523=function(_0x1bc705){while(--_0x1bc705){_0x5c14a7['push'](_0x5c14a7['shift']());}};_0x54d523(++_0x197d28);}(a1104_0x54d5,0x14e));const a1104_0x1bc7=function(_0x5c14a7,_0x197d28){_0x5c14a7=_0x5c14a7-0x156;let _0x54d523=a1104_0x54d5[_0x5c14a7];return _0x54d523;};const a1104_0x504cae=a1104_0x1bc7;'use strict';const util=require(a1104_0x504cae(0x156)),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][a1104_0x504cae(0x163)]=function(_0x2f1ca1){const _0x33ea67=a1104_0x504cae;this[_0x33ea67(0x162)]=this[_0x33ea67(0x162)]?this[_0x33ea67(0x162)]['finally'](_0x2f1ca1):_0x2f1ca1();};const Migration=function(_0x489821){const _0x1f3837=a1104_0x504cae;this[_0x1f3837(0x157)]=_0x489821,this[_0x1f3837(0x16c)]=new Sequence();};Migration[a1104_0x504cae(0x15e)]['changeColumn']=function(_0x219028,_0x2a9c7f,_0x58ef89){const _0x231a62=this;this['sequence']['enqueue'](function(){const _0x5ac87d=a1104_0x1bc7;return _0x231a62[_0x5ac87d(0x157)]['changeColumn'](_0x219028,_0x2a9c7f,_0x58ef89)[_0x5ac87d(0x15d)](function(){const _0x84a5c7=_0x5ac87d;logger['info'](_0x84a5c7(0x159),_0x2a9c7f,_0x219028);})[_0x5ac87d(0x15a)](function(_0x4398f8){const _0x557bc8=_0x5ac87d;logger[_0x557bc8(0x169)](JSON[_0x557bc8(0x164)](_0x4398f8));});});},Migration['prototype'][a1104_0x504cae(0x16b)]=function(_0x357025,_0xefae6a,_0x1ef62f){const _0x573769=this;this['sequence']['enqueue'](function(){const _0x54662a=a1104_0x1bc7;return _0x573769[_0x54662a(0x157)]['addColumn'](_0x357025,_0xefae6a,_0x1ef62f)[_0x54662a(0x15d)](function(){const _0xd5ea2e=_0x54662a;logger[_0xd5ea2e(0x169)]('Added\x20column\x20%s\x20to\x20%s',_0xefae6a,_0x357025);})[_0x54662a(0x15a)](function(_0x39b6bf){const _0x56a491=_0x54662a;logger[_0x56a491(0x169)](JSON[_0x56a491(0x164)](_0x39b6bf));});});},Migration[a1104_0x504cae(0x15e)][a1104_0x504cae(0x168)]=function(_0x341911){const _0x2d89c2=a1104_0x504cae,_0x358629=this;this[_0x2d89c2(0x16c)][_0x2d89c2(0x163)](function(){const _0x2197ca=_0x2d89c2;return _0x358629[_0x2197ca(0x157)][_0x2197ca(0x168)](_0x341911,{'force':!![]})['then'](function(){const _0x1b420a=_0x2197ca;logger['info'](_0x1b420a(0x165),_0x341911);})[_0x2197ca(0x15a)](function(_0x3d7c90){const _0x393011=_0x2197ca;logger[_0x393011(0x169)](JSON['stringify'](_0x3d7c90));});});},Migration[a1104_0x504cae(0x15e)][a1104_0x504cae(0x16d)]=function(_0x3d9d8b,_0x5d515e,_0x52b8fd){const _0x3397c7=a1104_0x504cae,_0x36c6c4=this;this['sequence'][_0x3397c7(0x163)](function(){const _0xd5edc6=_0x3397c7;return _0x36c6c4['queryInterface']['addIndex'](_0x3d9d8b,_0x5d515e,{'indexName':_0x52b8fd})[_0xd5edc6(0x15d)](function(){const _0xd431cb=_0xd5edc6;logger[_0xd431cb(0x169)](_0xd431cb(0x166),_0x3d9d8b,_0x5d515e[_0xd431cb(0x160)](','),_0x52b8fd);})[_0xd5edc6(0x15a)](function(_0x3998ca){const _0x5c80c7=_0xd5edc6;logger[_0x5c80c7(0x169)](JSON[_0x5c80c7(0x164)](_0x3998ca));});});},Migration[a1104_0x504cae(0x15e)][a1104_0x504cae(0x161)]=function(_0xe90b6d){const _0x1dd930=a1104_0x504cae,_0x1a1b47=this;this[_0x1dd930(0x16c)]['enqueue'](function(){const _0x4ce7c8=_0x1dd930;return _0x1a1b47[_0x4ce7c8(0x157)][_0x4ce7c8(0x15c)][_0x4ce7c8(0x161)](_0xe90b6d)['then'](function(){const _0x4823b4=_0x4ce7c8;logger[_0x4823b4(0x169)](_0x4823b4(0x158),_0xe90b6d);})[_0x4ce7c8(0x15a)](function(_0x59963f){const _0x1a1d92=_0x4ce7c8;logger[_0x1a1d92(0x169)](JSON['stringify'](_0x59963f));});});},Migration['prototype'][a1104_0x504cae(0x16a)]=function(_0x5efb3e,_0x4df783){const _0x45f7f0=a1104_0x504cae,_0x1b98d6=this;this[_0x45f7f0(0x16c)][_0x45f7f0(0x163)](function(){const _0x105220=_0x45f7f0;return _0x1b98d6[_0x105220(0x157)][_0x105220(0x16a)](_0x5efb3e,_0x4df783)[_0x105220(0x15d)](function(){const _0x31ab57=_0x105220;logger[_0x31ab57(0x169)](_0x31ab57(0x15b),_0x4df783,_0x5efb3e);})['catch'](function(_0x3ad0d2){const _0x16158f=_0x105220;logger[_0x16158f(0x169)](util['inspect'](_0x3ad0d2,{'showHidden':![],'depth':null}));});});},Migration[a1104_0x504cae(0x15e)]['renameColumn']=function(_0x53413f,_0x4857d1,_0x235312){const _0x295302=a1104_0x504cae,_0x37ec03=this;this[_0x295302(0x16c)][_0x295302(0x163)](function(){const _0x5b1e83=_0x295302;return _0x37ec03[_0x5b1e83(0x157)]['renameColumn'](_0x53413f,_0x4857d1,_0x235312)['then'](function(){const _0x933722=_0x5b1e83;logger['info'](_0x933722(0x15f),_0x4857d1,_0x235312,_0x53413f);})[_0x5b1e83(0x15a)](function(_0x16a4d8){const _0x2cb395=_0x5b1e83;logger[_0x2cb395(0x169)](util[_0x2cb395(0x167)](_0x16a4d8,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x1b63e6){const _0x33de20=a1104_0x504cae;this[_0x33de20(0x16c)][_0x33de20(0x163)](function(){return _0x1b63e6();});},module['exports']={'up':function(_0x2d761d){return new Promise(function(_0x3af558){const _0x3b84f3=new Migration(_0x2d761d);_0x3b84f3['final'](_0x3af558);});},'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 a7d8c88..c0da1fa 100644 --- a/server/migrations/2.0.62.js +++ b/server/migrations/2.0.62.js @@ -1 +1 @@ -const a1105_0x166c=['settings','sequelize','table\x20dropped\x20%s','STRING','bottom_right','catch','enableEmailPreview','final','INTEGER','sequence','dropTable','changeColumn','queryInterface','stringify','phone','addIndex','exports','Removed\x20column\x20%s\x20from\x20%s','then','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','chat_websites','tail','alignment','BOOLEAN','sendIfEmpty','renameColumn','verticalAlignment','addColumn','join','cm_contacts','info','migration','enqueue','removeColumn','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x300f3d,_0x195088){const _0x166c0f=function(_0x394952){while(--_0x394952){_0x300f3d['push'](_0x300f3d['shift']());}};_0x166c0f(++_0x195088);}(a1105_0x166c,0x8b));const a1105_0x3949=function(_0x300f3d,_0x195088){_0x300f3d=_0x300f3d-0x113;let _0x166c0f=a1105_0x166c[_0x300f3d];return _0x166c0f;};const a1105_0x267fc7=a1105_0x3949;'use strict';const util=require('util'),logger=require(a1105_0x267fc7(0x133))(a1105_0x267fc7(0x11b)),Sequence=function(){};Sequence[a1105_0x267fc7(0x11e)][a1105_0x267fc7(0x11c)]=function(_0x2b7adf){const _0x2e3d79=a1105_0x267fc7;this[_0x2e3d79(0x137)]=this[_0x2e3d79(0x137)]?this[_0x2e3d79(0x137)]['finally'](_0x2b7adf):_0x2b7adf();};const Migration=function(_0x9a4909){const _0x13bb0c=a1105_0x267fc7;this['queryInterface']=_0x9a4909,this[_0x13bb0c(0x129)]=new Sequence();};Migration[a1105_0x267fc7(0x11e)][a1105_0x267fc7(0x12b)]=function(_0x1be78b,_0x3ed9e8,_0x2f4ded){const _0x43f003=a1105_0x267fc7,_0x2772ec=this;this[_0x43f003(0x129)][_0x43f003(0x11c)](function(){const _0x33ee2c=_0x43f003;return _0x2772ec[_0x33ee2c(0x12c)][_0x33ee2c(0x12b)](_0x1be78b,_0x3ed9e8,_0x2f4ded)[_0x33ee2c(0x132)](function(){const _0x27331c=_0x33ee2c;logger[_0x27331c(0x11a)](_0x27331c(0x11f),_0x3ed9e8,_0x1be78b);})['catch'](function(_0x280d9f){const _0x18276a=_0x33ee2c;logger[_0x18276a(0x11a)](JSON['stringify'](_0x280d9f));});});},Migration[a1105_0x267fc7(0x11e)]['addColumn']=function(_0x562ec7,_0x22ff4c,_0x33973e){const _0x27d359=a1105_0x267fc7,_0x56ce5d=this;this['sequence'][_0x27d359(0x11c)](function(){const _0x2959b2=_0x27d359;return _0x56ce5d[_0x2959b2(0x12c)][_0x2959b2(0x117)](_0x562ec7,_0x22ff4c,_0x33973e)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x22ff4c,_0x562ec7);})[_0x2959b2(0x125)](function(_0x567316){const _0x25d1ae=_0x2959b2;logger[_0x25d1ae(0x11a)](JSON[_0x25d1ae(0x12d)](_0x567316));});});},Migration[a1105_0x267fc7(0x11e)][a1105_0x267fc7(0x12a)]=function(_0x396bd3){const _0x5ae141=a1105_0x267fc7,_0x160c3a=this;this['sequence'][_0x5ae141(0x11c)](function(){const _0x16c669=_0x5ae141;return _0x160c3a[_0x16c669(0x12c)][_0x16c669(0x12a)](_0x396bd3,{'force':!![]})[_0x16c669(0x132)](function(){const _0x1d59e5=_0x16c669;logger['info'](_0x1d59e5(0x122),_0x396bd3);})[_0x16c669(0x125)](function(_0x2bc1d4){const _0x1f82cc=_0x16c669;logger[_0x1f82cc(0x11a)](JSON[_0x1f82cc(0x12d)](_0x2bc1d4));});});},Migration[a1105_0x267fc7(0x11e)][a1105_0x267fc7(0x12f)]=function(_0x1079bc,_0x210f87,_0x439afd){const _0x384aec=this;this['sequence']['enqueue'](function(){const _0xc6519a=a1105_0x3949;return _0x384aec[_0xc6519a(0x12c)][_0xc6519a(0x12f)](_0x1079bc,_0x210f87,{'indexName':_0x439afd})[_0xc6519a(0x132)](function(){const _0x4ddcaa=_0xc6519a;logger[_0x4ddcaa(0x11a)]('addIndex\x20%s\x20%s\x20%s',_0x1079bc,_0x210f87[_0x4ddcaa(0x118)](','),_0x439afd);})[_0xc6519a(0x125)](function(_0x3a132b){const _0x40a52e=_0xc6519a;logger[_0x40a52e(0x11a)](JSON[_0x40a52e(0x12d)](_0x3a132b));});});},Migration[a1105_0x267fc7(0x11e)]['query']=function(_0x6276a){const _0x1436f1=a1105_0x267fc7,_0x1b7516=this;this[_0x1436f1(0x129)][_0x1436f1(0x11c)](function(){const _0x406932=_0x1436f1;return _0x1b7516[_0x406932(0x12c)][_0x406932(0x121)]['query'](_0x6276a)[_0x406932(0x132)](function(){const _0x4f97b5=_0x406932;logger[_0x4f97b5(0x11a)]('query\x20%s',_0x6276a);})['catch'](function(_0x168c34){const _0x3136ee=_0x406932;logger[_0x3136ee(0x11a)](JSON[_0x3136ee(0x12d)](_0x168c34));});});},Migration[a1105_0x267fc7(0x11e)][a1105_0x267fc7(0x11d)]=function(_0x5bcd9e,_0x2c8497){const _0x4bfba2=a1105_0x267fc7,_0x3c5232=this;this[_0x4bfba2(0x129)][_0x4bfba2(0x11c)](function(){const _0x4552f3=_0x4bfba2;return _0x3c5232[_0x4552f3(0x12c)][_0x4552f3(0x11d)](_0x5bcd9e,_0x2c8497)['then'](function(){const _0x52c465=_0x4552f3;logger[_0x52c465(0x11a)](_0x52c465(0x131),_0x2c8497,_0x5bcd9e);})[_0x4552f3(0x125)](function(_0x38b94f){const _0x40e0f7=_0x4552f3;logger[_0x40e0f7(0x11a)](util[_0x40e0f7(0x135)](_0x38b94f,{'showHidden':![],'depth':null}));});});},Migration[a1105_0x267fc7(0x11e)]['renameColumn']=function(_0x4eb19a,_0x1c2c3d,_0x162139){const _0x43044f=a1105_0x267fc7,_0xc8fd68=this;this[_0x43044f(0x129)]['enqueue'](function(){const _0x4721b3=_0x43044f;return _0xc8fd68['queryInterface'][_0x4721b3(0x115)](_0x4eb19a,_0x1c2c3d,_0x162139)[_0x4721b3(0x132)](function(){const _0x2eb5c5=_0x4721b3;logger[_0x2eb5c5(0x11a)](_0x2eb5c5(0x134),_0x1c2c3d,_0x162139,_0x4eb19a);})[_0x4721b3(0x125)](function(_0x484598){const _0x3a678e=_0x4721b3;logger[_0x3a678e(0x11a)](util[_0x3a678e(0x135)](_0x484598,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1105_0x267fc7(0x127)]=function(_0x242e44){const _0x4ae8db=a1105_0x267fc7;this[_0x4ae8db(0x129)][_0x4ae8db(0x11c)](function(){return _0x242e44();});},module[a1105_0x267fc7(0x130)]={'up':function(_0x4d554b,_0x221636){return new Promise(function(_0x808ef0){const _0x35ba21=a1105_0x3949,_0xb6c75d=new Migration(_0x4d554b);_0xb6c75d[_0x35ba21(0x117)]('tools_schedules',_0x35ba21(0x114),{'type':_0x221636[_0x35ba21(0x113)],'defaultValue':!![]}),_0xb6c75d[_0x35ba21(0x12b)](_0x35ba21(0x119),_0x35ba21(0x12e),{'type':_0x221636[_0x35ba21(0x123)],'allowNull':!![]}),_0xb6c75d['addColumn'](_0x35ba21(0x120),_0x35ba21(0x126),{'type':_0x221636[_0x35ba21(0x113)],'defaultValue':![]}),_0xb6c75d['addColumn'](_0x35ba21(0x136),_0x35ba21(0x138),{'type':_0x221636[_0x35ba21(0x123)],'defaultValue':_0x35ba21(0x124)}),_0xb6c75d[_0x35ba21(0x117)](_0x35ba21(0x136),_0x35ba21(0x116),{'type':_0x221636[_0x35ba21(0x128)],'defaultValue':0x1e}),_0xb6c75d[_0x35ba21(0x127)](_0x808ef0);});},'down':function(){}}; \ No newline at end of file +const a1105_0x34c7=['settings','migration','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','query','bottom_right','sequence','table\x20dropped\x20%s','prototype','then','alignment','verticalAlignment','sendIfEmpty','stringify','inspect','chat_websites','query\x20%s','removeColumn','changeColumn','../config/logger','addIndex\x20%s\x20%s\x20%s','addColumn','tail','info','INTEGER','sequelize','queryInterface','BOOLEAN','exports','tools_schedules','dropTable','phone','util','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','final','catch','renameColumn','cm_contacts','STRING'];(function(_0x47b87c,_0x3bbdb2){const _0x34c7b1=function(_0x2eb7de){while(--_0x2eb7de){_0x47b87c['push'](_0x47b87c['shift']());}};_0x34c7b1(++_0x3bbdb2);}(a1105_0x34c7,0xa8));const a1105_0x2eb7=function(_0x47b87c,_0x3bbdb2){_0x47b87c=_0x47b87c-0x140;let _0x34c7b1=a1105_0x34c7[_0x47b87c];return _0x34c7b1;};const a1105_0x4a9c22=a1105_0x2eb7;'use strict';const util=require(a1105_0x4a9c22(0x158)),logger=require(a1105_0x4a9c22(0x14b))(a1105_0x4a9c22(0x161)),Sequence=function(){};Sequence[a1105_0x4a9c22(0x140)][a1105_0x4a9c22(0x162)]=function(_0x57ad5f){const _0x11247f=a1105_0x4a9c22;this['tail']=this[_0x11247f(0x14e)]?this[_0x11247f(0x14e)]['finally'](_0x57ad5f):_0x57ad5f();};const Migration=function(_0x191294){const _0x395bdb=a1105_0x4a9c22;this['queryInterface']=_0x191294,this[_0x395bdb(0x166)]=new Sequence();};Migration['prototype'][a1105_0x4a9c22(0x14a)]=function(_0x4e9699,_0x12ddd2,_0x314d72){const _0x5343e3=a1105_0x4a9c22,_0xedf647=this;this[_0x5343e3(0x166)][_0x5343e3(0x162)](function(){const _0x3b3d0d=_0x5343e3;return _0xedf647[_0x3b3d0d(0x152)][_0x3b3d0d(0x14a)](_0x4e9699,_0x12ddd2,_0x314d72)['then'](function(){const _0x277e95=_0x3b3d0d;logger[_0x277e95(0x14f)](_0x277e95(0x163),_0x12ddd2,_0x4e9699);})['catch'](function(_0x2a664b){const _0x342162=_0x3b3d0d;logger['info'](JSON[_0x342162(0x145)](_0x2a664b));});});},Migration['prototype'][a1105_0x4a9c22(0x14d)]=function(_0x5aa9d0,_0x215563,_0x40a544){const _0x5619c5=a1105_0x4a9c22,_0xca202=this;this['sequence'][_0x5619c5(0x162)](function(){const _0x284458=_0x5619c5;return _0xca202[_0x284458(0x152)][_0x284458(0x14d)](_0x5aa9d0,_0x215563,_0x40a544)[_0x284458(0x141)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x215563,_0x5aa9d0);})[_0x284458(0x15c)](function(_0x418d5d){const _0x50b705=_0x284458;logger[_0x50b705(0x14f)](JSON[_0x50b705(0x145)](_0x418d5d));});});},Migration[a1105_0x4a9c22(0x140)][a1105_0x4a9c22(0x156)]=function(_0x185d0b){const _0x14dfac=a1105_0x4a9c22,_0x5521ab=this;this[_0x14dfac(0x166)][_0x14dfac(0x162)](function(){const _0x53cac9=_0x14dfac;return _0x5521ab[_0x53cac9(0x152)]['dropTable'](_0x185d0b,{'force':!![]})[_0x53cac9(0x141)](function(){const _0x373fc7=_0x53cac9;logger[_0x373fc7(0x14f)](_0x373fc7(0x167),_0x185d0b);})[_0x53cac9(0x15c)](function(_0x9f9be4){const _0x5b88ba=_0x53cac9;logger['info'](JSON[_0x5b88ba(0x145)](_0x9f9be4));});});},Migration['prototype'][a1105_0x4a9c22(0x15a)]=function(_0x2766b5,_0x1320ed,_0x247292){const _0xe4d801=a1105_0x4a9c22,_0x51c4d1=this;this[_0xe4d801(0x166)]['enqueue'](function(){const _0x3b26c6=_0xe4d801;return _0x51c4d1[_0x3b26c6(0x152)][_0x3b26c6(0x15a)](_0x2766b5,_0x1320ed,{'indexName':_0x247292})[_0x3b26c6(0x141)](function(){const _0xc7af17=_0x3b26c6;logger[_0xc7af17(0x14f)](_0xc7af17(0x14c),_0x2766b5,_0x1320ed['join'](','),_0x247292);})[_0x3b26c6(0x15c)](function(_0x1de7d3){const _0x39a567=_0x3b26c6;logger[_0x39a567(0x14f)](JSON[_0x39a567(0x145)](_0x1de7d3));});});},Migration['prototype'][a1105_0x4a9c22(0x164)]=function(_0x592890){const _0xb04f8c=a1105_0x4a9c22,_0x179ef3=this;this[_0xb04f8c(0x166)][_0xb04f8c(0x162)](function(){const _0x2636a0=_0xb04f8c;return _0x179ef3[_0x2636a0(0x152)][_0x2636a0(0x151)][_0x2636a0(0x164)](_0x592890)['then'](function(){const _0x16e438=_0x2636a0;logger['info'](_0x16e438(0x148),_0x592890);})[_0x2636a0(0x15c)](function(_0x1beeed){const _0x338df7=_0x2636a0;logger[_0x338df7(0x14f)](JSON[_0x338df7(0x145)](_0x1beeed));});});},Migration[a1105_0x4a9c22(0x140)][a1105_0x4a9c22(0x149)]=function(_0xc7d10a,_0x219ed6){const _0x269b3e=a1105_0x4a9c22,_0x39a679=this;this[_0x269b3e(0x166)]['enqueue'](function(){const _0x427b2d=_0x269b3e;return _0x39a679[_0x427b2d(0x152)][_0x427b2d(0x149)](_0xc7d10a,_0x219ed6)[_0x427b2d(0x141)](function(){const _0x1e74ed=_0x427b2d;logger[_0x1e74ed(0x14f)]('Removed\x20column\x20%s\x20from\x20%s',_0x219ed6,_0xc7d10a);})[_0x427b2d(0x15c)](function(_0x3789a9){const _0x3ed627=_0x427b2d;logger[_0x3ed627(0x14f)](util['inspect'](_0x3789a9,{'showHidden':![],'depth':null}));});});},Migration[a1105_0x4a9c22(0x140)][a1105_0x4a9c22(0x15d)]=function(_0x20a683,_0x3f58fd,_0x16d34f){const _0x502fc9=a1105_0x4a9c22,_0x505c28=this;this['sequence'][_0x502fc9(0x162)](function(){const _0x40c099=_0x502fc9;return _0x505c28['queryInterface'][_0x40c099(0x15d)](_0x20a683,_0x3f58fd,_0x16d34f)[_0x40c099(0x141)](function(){const _0x1234a0=_0x40c099;logger[_0x1234a0(0x14f)](_0x1234a0(0x159),_0x3f58fd,_0x16d34f,_0x20a683);})[_0x40c099(0x15c)](function(_0x508a9d){const _0x20b624=_0x40c099;logger[_0x20b624(0x14f)](util[_0x20b624(0x146)](_0x508a9d,{'showHidden':![],'depth':null}));});});},Migration[a1105_0x4a9c22(0x140)][a1105_0x4a9c22(0x15b)]=function(_0x168e06){const _0x1303eb=a1105_0x4a9c22;this[_0x1303eb(0x166)][_0x1303eb(0x162)](function(){return _0x168e06();});},module[a1105_0x4a9c22(0x154)]={'up':function(_0x5cf4a4,_0x4ad4e4){return new Promise(function(_0x3f5520){const _0x3c0636=a1105_0x2eb7,_0x1ffc51=new Migration(_0x5cf4a4);_0x1ffc51['addColumn'](_0x3c0636(0x155),_0x3c0636(0x144),{'type':_0x4ad4e4[_0x3c0636(0x153)],'defaultValue':!![]}),_0x1ffc51[_0x3c0636(0x14a)](_0x3c0636(0x15e),_0x3c0636(0x157),{'type':_0x4ad4e4[_0x3c0636(0x15f)],'allowNull':!![]}),_0x1ffc51['addColumn'](_0x3c0636(0x160),'enableEmailPreview',{'type':_0x4ad4e4[_0x3c0636(0x153)],'defaultValue':![]}),_0x1ffc51['addColumn'](_0x3c0636(0x147),_0x3c0636(0x142),{'type':_0x4ad4e4[_0x3c0636(0x15f)],'defaultValue':_0x3c0636(0x165)}),_0x1ffc51['addColumn'](_0x3c0636(0x147),_0x3c0636(0x143),{'type':_0x4ad4e4[_0x3c0636(0x150)],'defaultValue':0x1e}),_0x1ffc51[_0x3c0636(0x15b)](_0x3f5520);});},'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 c3ae107..206b177 100644 --- a/server/migrations/2.0.63.js +++ b/server/migrations/2.0.63.js @@ -1 +1 @@ -const a1106_0x2c46=['STRING','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','exports','messagesAlignment','Added\x20column\x20%s\x20to\x20%s','sequence','showCustomerAvatar','enqueue','migration','ALTER\x20TABLE\x20`chat_applications`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`chat_applications_ibfk_5`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`TagId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20tools_tags(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE','defaultTitle','changeColumn','chat_websites','TEXT','token','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','BOOLEAN','TagId','chat_applications','query','customerAvatar','openchannel_applications','prototype','addIndex','catch','final','sms_applications','query\x20%s','INTEGER','stringify','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','queryInterface','renameColumn','util','then','openchannel_accounts','sequelize','table\x20dropped\x20%s','removeColumn','join','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','title','addColumn','tail','mail_applications','data','dropTable','inspect'];(function(_0xaa2eb4,_0xdbab83){const _0x2c4616=function(_0x52e3fe){while(--_0x52e3fe){_0xaa2eb4['push'](_0xaa2eb4['shift']());}};_0x2c4616(++_0xdbab83);}(a1106_0x2c46,0x17d));const a1106_0x52e3=function(_0xaa2eb4,_0xdbab83){_0xaa2eb4=_0xaa2eb4-0x18b;let _0x2c4616=a1106_0x2c46[_0xaa2eb4];return _0x2c4616;};const a1106_0x8c2a83=a1106_0x52e3;'use strict';const util=require(a1106_0x8c2a83(0x196)),logger=require(a1106_0x8c2a83(0x191))(a1106_0x8c2a83(0x1ae)),Sequence=function(){};Sequence['prototype'][a1106_0x8c2a83(0x1ad)]=function(_0x507c50){const _0x4fe125=a1106_0x8c2a83;this['tail']=this['tail']?this[_0x4fe125(0x1a1)]['finally'](_0x507c50):_0x507c50();};const Migration=function(_0x320bae){const _0x3838f3=a1106_0x8c2a83;this[_0x3838f3(0x194)]=_0x320bae,this['sequence']=new Sequence();};Migration[a1106_0x8c2a83(0x1bc)][a1106_0x8c2a83(0x1b1)]=function(_0x24ed93,_0xd2dccb,_0x1f591a){const _0x4d7535=a1106_0x8c2a83,_0x2210de=this;this[_0x4d7535(0x1ab)][_0x4d7535(0x1ad)](function(){const _0x483554=_0x4d7535;return _0x2210de['queryInterface'][_0x483554(0x1b1)](_0x24ed93,_0xd2dccb,_0x1f591a)[_0x483554(0x197)](function(){const _0x27fdde=_0x483554;logger[_0x27fdde(0x193)](_0x27fdde(0x19e),_0xd2dccb,_0x24ed93);})[_0x483554(0x18b)](function(_0x43c4f9){const _0x31cf25=_0x483554;logger['info'](JSON[_0x31cf25(0x190)](_0x43c4f9));});});},Migration[a1106_0x8c2a83(0x1bc)]['addColumn']=function(_0x26716d,_0x1c8db5,_0x2a1089){const _0x2f6dcd=a1106_0x8c2a83,_0x1747d0=this;this['sequence'][_0x2f6dcd(0x1ad)](function(){const _0x5628fa=_0x2f6dcd;return _0x1747d0['queryInterface'][_0x5628fa(0x1a0)](_0x26716d,_0x1c8db5,_0x2a1089)[_0x5628fa(0x197)](function(){const _0x5e97c1=_0x5628fa;logger['info'](_0x5e97c1(0x1aa),_0x1c8db5,_0x26716d);})[_0x5628fa(0x18b)](function(_0x202329){const _0x397192=_0x5628fa;logger[_0x397192(0x193)](JSON['stringify'](_0x202329));});});},Migration[a1106_0x8c2a83(0x1bc)][a1106_0x8c2a83(0x1a4)]=function(_0xfd92de){const _0x351985=a1106_0x8c2a83,_0x1e2750=this;this[_0x351985(0x1ab)][_0x351985(0x1ad)](function(){const _0x315e2c=_0x351985;return _0x1e2750['queryInterface']['dropTable'](_0xfd92de,{'force':!![]})[_0x315e2c(0x197)](function(){const _0x38eadf=_0x315e2c;logger[_0x38eadf(0x193)](_0x38eadf(0x19a),_0xfd92de);})['catch'](function(_0x5b18ef){const _0x753aeb=_0x315e2c;logger['info'](JSON[_0x753aeb(0x190)](_0x5b18ef));});});},Migration[a1106_0x8c2a83(0x1bc)]['addIndex']=function(_0x19e042,_0x403ef3,_0x5f2cfb){const _0x3e95b8=a1106_0x8c2a83,_0x5754d0=this;this[_0x3e95b8(0x1ab)][_0x3e95b8(0x1ad)](function(){const _0x454a89=_0x3e95b8;return _0x5754d0[_0x454a89(0x194)][_0x454a89(0x1bd)](_0x19e042,_0x403ef3,{'indexName':_0x5f2cfb})[_0x454a89(0x197)](function(){const _0x4cdecf=_0x454a89;logger['info'](_0x4cdecf(0x19d),_0x19e042,_0x403ef3[_0x4cdecf(0x19c)](','),_0x5f2cfb);})['catch'](function(_0x235fdb){const _0x5c44cf=_0x454a89;logger[_0x5c44cf(0x193)](JSON['stringify'](_0x235fdb));});});},Migration[a1106_0x8c2a83(0x1bc)][a1106_0x8c2a83(0x1b9)]=function(_0x2be6f2){const _0x394890=a1106_0x8c2a83,_0x252029=this;this['sequence'][_0x394890(0x1ad)](function(){const _0x5f40ae=_0x394890;return _0x252029[_0x5f40ae(0x194)][_0x5f40ae(0x199)]['query'](_0x2be6f2)[_0x5f40ae(0x197)](function(){const _0x493150=_0x5f40ae;logger['info'](_0x493150(0x18e),_0x2be6f2);})[_0x5f40ae(0x18b)](function(_0x55e53c){const _0x4c59c3=_0x5f40ae;logger[_0x4c59c3(0x193)](JSON[_0x4c59c3(0x190)](_0x55e53c));});});},Migration[a1106_0x8c2a83(0x1bc)][a1106_0x8c2a83(0x19b)]=function(_0x1f8ffc,_0x32854a){const _0x29cc2d=a1106_0x8c2a83,_0x21b8a2=this;this[_0x29cc2d(0x1ab)][_0x29cc2d(0x1ad)](function(){const _0x18ed31=_0x29cc2d;return _0x21b8a2[_0x18ed31(0x194)]['removeColumn'](_0x1f8ffc,_0x32854a)['then'](function(){const _0x38a7bb=_0x18ed31;logger[_0x38a7bb(0x193)]('Removed\x20column\x20%s\x20from\x20%s',_0x32854a,_0x1f8ffc);})[_0x18ed31(0x18b)](function(_0x2f83db){const _0x2018f5=_0x18ed31;logger[_0x2018f5(0x193)](util[_0x2018f5(0x1a5)](_0x2f83db,{'showHidden':![],'depth':null}));});});},Migration[a1106_0x8c2a83(0x1bc)][a1106_0x8c2a83(0x195)]=function(_0x2694fc,_0x269c31,_0x455a63){const _0x51de2a=a1106_0x8c2a83,_0x54e3a9=this;this[_0x51de2a(0x1ab)][_0x51de2a(0x1ad)](function(){const _0x1e9ff7=_0x51de2a;return _0x54e3a9['queryInterface'][_0x1e9ff7(0x195)](_0x2694fc,_0x269c31,_0x455a63)[_0x1e9ff7(0x197)](function(){const _0x4b5ba0=_0x1e9ff7;logger[_0x4b5ba0(0x193)](_0x4b5ba0(0x192),_0x269c31,_0x455a63,_0x2694fc);})['catch'](function(_0x4410f5){const _0x445c9e=_0x1e9ff7;logger['info'](util[_0x445c9e(0x1a5)](_0x4410f5,{'showHidden':![],'depth':null}));});});},Migration[a1106_0x8c2a83(0x1bc)][a1106_0x8c2a83(0x18c)]=function(_0x6d116){const _0x543d0a=a1106_0x8c2a83;this[_0x543d0a(0x1ab)][_0x543d0a(0x1ad)](function(){return _0x6d116();});},module[a1106_0x8c2a83(0x1a8)]={'up':function(_0x3e48e7,_0x44fb82){return new Promise(function(_0x1de9e4){const _0x48f2ea=a1106_0x52e3,_0x327ced=new Migration(_0x3e48e7);_0x327ced[_0x48f2ea(0x1a0)]('chat_websites',_0x48f2ea(0x1a9),{'type':_0x44fb82['STRING'],'defaultValue':'alternate'}),_0x327ced[_0x48f2ea(0x1a0)]('chat_websites',_0x48f2ea(0x1b0),{'type':_0x44fb82['STRING']}),_0x327ced[_0x48f2ea(0x1a0)]('chat_websites',_0x48f2ea(0x1ba),{'type':_0x44fb82[_0x48f2ea(0x1b3)]}),_0x327ced[_0x48f2ea(0x1a0)](_0x48f2ea(0x1b2),_0x48f2ea(0x1ac),{'type':_0x44fb82[_0x48f2ea(0x1b6)],'defaultValue':![]}),_0x327ced['addColumn'](_0x48f2ea(0x1b8),_0x48f2ea(0x1b7),{'type':_0x44fb82[_0x48f2ea(0x18f)]}),_0x327ced[_0x48f2ea(0x1b9)](_0x48f2ea(0x1af)),_0x327ced[_0x48f2ea(0x1a0)]('fax_applications',_0x48f2ea(0x1b7),{'type':_0x44fb82[_0x48f2ea(0x18f)]}),_0x327ced['query']('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'),_0x327ced[_0x48f2ea(0x1a0)](_0x48f2ea(0x1a2),'TagId',{'type':_0x44fb82[_0x48f2ea(0x18f)]}),_0x327ced['query'](_0x48f2ea(0x1b5)),_0x327ced['addColumn'](_0x48f2ea(0x1bb),_0x48f2ea(0x1b7),{'type':_0x44fb82['INTEGER']}),_0x327ced[_0x48f2ea(0x1b9)]('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'),_0x327ced[_0x48f2ea(0x1a0)](_0x48f2ea(0x18d),_0x48f2ea(0x1b7),{'type':_0x44fb82[_0x48f2ea(0x18f)]}),_0x327ced[_0x48f2ea(0x1b9)](_0x48f2ea(0x1a7)),_0x327ced[_0x48f2ea(0x1b9)]('ALTER\x20TABLE\x20report_dial\x20CHANGE\x20`hodltime`\x20`holdtime`\x20INT(11)\x20DEFAULT\x20NULL'),_0x327ced[_0x48f2ea(0x1a0)](_0x48f2ea(0x198),_0x48f2ea(0x1b4),{'type':_0x44fb82['STRING']}),_0x327ced[_0x48f2ea(0x1a0)]('voice_queues_log',_0x48f2ea(0x1a3),{'type':_0x44fb82[_0x48f2ea(0x1a6)],'allowNull':![],'defaultValue':''}),_0x327ced[_0x48f2ea(0x1b1)]('dashboard_items',_0x48f2ea(0x19f),{'type':_0x44fb82[_0x48f2ea(0x1a6)],'allowNull':![]}),_0x327ced[_0x48f2ea(0x18c)](_0x1de9e4);});},'down':function(){}}; \ No newline at end of file +const a1106_0x3058=['query\x20%s','removeColumn','TagId','Added\x20column\x20%s\x20to\x20%s','chat_websites','data','addColumn','inspect','TEXT','changeColumn','chat_applications','fax_applications','STRING','table\x20dropped\x20%s','queryInterface','title','sequelize','addIndex','renameColumn','showCustomerAvatar','final','Removed\x20column\x20%s\x20from\x20%s','migration','openchannel_applications','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','messagesAlignment','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','sequence','query','join','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','defaultTitle','../config/logger','sms_applications','tail','dashboard_items','catch','info','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','util','BOOLEAN','stringify','dropTable','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','alternate','then','ALTER\x20TABLE\x20report_dial\x20CHANGE\x20`hodltime`\x20`holdtime`\x20INT(11)\x20DEFAULT\x20NULL','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','openchannel_accounts','INTEGER','enqueue'];(function(_0x3af21c,_0x419ce6){const _0x305818=function(_0x569e57){while(--_0x569e57){_0x3af21c['push'](_0x3af21c['shift']());}};_0x305818(++_0x419ce6);}(a1106_0x3058,0xe6));const a1106_0x569e=function(_0x3af21c,_0x419ce6){_0x3af21c=_0x3af21c-0x7b;let _0x305818=a1106_0x3058[_0x3af21c];return _0x305818;};const a1106_0x4917f9=a1106_0x569e;'use strict';const util=require(a1106_0x4917f9(0x8d)),logger=require(a1106_0x4917f9(0x86))(a1106_0x4917f9(0x7b)),Sequence=function(){};Sequence[a1106_0x4917f9(0x7e)][a1106_0x4917f9(0x98)]=function(_0x443060){const _0x25a2a8=a1106_0x4917f9;this[_0x25a2a8(0x88)]=this['tail']?this['tail']['finally'](_0x443060):_0x443060();};const Migration=function(_0x59f1b6){const _0x227333=a1106_0x4917f9;this[_0x227333(0xa7)]=_0x59f1b6,this[_0x227333(0x81)]=new Sequence();};Migration[a1106_0x4917f9(0x7e)][a1106_0x4917f9(0xa2)]=function(_0x9a6e2d,_0x3b4325,_0xf8cdb5){const _0xc95a14=this;this['sequence']['enqueue'](function(){const _0x22a9c8=a1106_0x569e;return _0xc95a14['queryInterface']['changeColumn'](_0x9a6e2d,_0x3b4325,_0xf8cdb5)['then'](function(){const _0xf50a2d=a1106_0x569e;logger[_0xf50a2d(0x8b)](_0xf50a2d(0x7d),_0x3b4325,_0x9a6e2d);})[_0x22a9c8(0x8a)](function(_0x326438){const _0x5851d5=_0x22a9c8;logger[_0x5851d5(0x8b)](JSON['stringify'](_0x326438));});});},Migration[a1106_0x4917f9(0x7e)][a1106_0x4917f9(0x9f)]=function(_0x3462b6,_0xb65058,_0x3e2e95){const _0x5cec01=a1106_0x4917f9,_0x3f953a=this;this[_0x5cec01(0x81)][_0x5cec01(0x98)](function(){const _0x1162b1=_0x5cec01;return _0x3f953a['queryInterface']['addColumn'](_0x3462b6,_0xb65058,_0x3e2e95)[_0x1162b1(0x93)](function(){const _0x1c890d=_0x1162b1;logger[_0x1c890d(0x8b)](_0x1c890d(0x9c),_0xb65058,_0x3462b6);})[_0x1162b1(0x8a)](function(_0x5bd341){logger['info'](JSON['stringify'](_0x5bd341));});});},Migration['prototype'][a1106_0x4917f9(0x90)]=function(_0x5227cd){const _0x5c16a7=a1106_0x4917f9,_0x4655f8=this;this[_0x5c16a7(0x81)][_0x5c16a7(0x98)](function(){const _0x5178ae=_0x5c16a7;return _0x4655f8[_0x5178ae(0xa7)][_0x5178ae(0x90)](_0x5227cd,{'force':!![]})[_0x5178ae(0x93)](function(){const _0x239ff1=_0x5178ae;logger[_0x239ff1(0x8b)](_0x239ff1(0xa6),_0x5227cd);})[_0x5178ae(0x8a)](function(_0x43e206){const _0x20e31c=_0x5178ae;logger[_0x20e31c(0x8b)](JSON[_0x20e31c(0x8f)](_0x43e206));});});},Migration[a1106_0x4917f9(0x7e)][a1106_0x4917f9(0xaa)]=function(_0x3e4088,_0x5f2d25,_0x23bf47){const _0x1a63b4=a1106_0x4917f9,_0x472fed=this;this[_0x1a63b4(0x81)][_0x1a63b4(0x98)](function(){const _0x4cbdbe=_0x1a63b4;return _0x472fed[_0x4cbdbe(0xa7)][_0x4cbdbe(0xaa)](_0x3e4088,_0x5f2d25,{'indexName':_0x23bf47})[_0x4cbdbe(0x93)](function(){const _0x2d54e8=_0x4cbdbe;logger[_0x2d54e8(0x8b)]('addIndex\x20%s\x20%s\x20%s',_0x3e4088,_0x5f2d25[_0x2d54e8(0x83)](','),_0x23bf47);})['catch'](function(_0x507ec3){const _0x372326=_0x4cbdbe;logger[_0x372326(0x8b)](JSON[_0x372326(0x8f)](_0x507ec3));});});},Migration['prototype'][a1106_0x4917f9(0x82)]=function(_0x2c4ecb){const _0x53dfac=a1106_0x4917f9,_0x4e6d99=this;this[_0x53dfac(0x81)][_0x53dfac(0x98)](function(){const _0x503132=_0x53dfac;return _0x4e6d99['queryInterface'][_0x503132(0xa9)]['query'](_0x2c4ecb)[_0x503132(0x93)](function(){const _0x1c3866=_0x503132;logger[_0x1c3866(0x8b)](_0x1c3866(0x99),_0x2c4ecb);})[_0x503132(0x8a)](function(_0x32447a){const _0x450f2b=_0x503132;logger[_0x450f2b(0x8b)](JSON[_0x450f2b(0x8f)](_0x32447a));});});},Migration[a1106_0x4917f9(0x7e)][a1106_0x4917f9(0x9a)]=function(_0x87b8b8,_0x499930){const _0x5d349d=a1106_0x4917f9,_0x492a88=this;this[_0x5d349d(0x81)][_0x5d349d(0x98)](function(){const _0x1dc3d0=_0x5d349d;return _0x492a88['queryInterface'][_0x1dc3d0(0x9a)](_0x87b8b8,_0x499930)[_0x1dc3d0(0x93)](function(){const _0x3bd958=_0x1dc3d0;logger[_0x3bd958(0x8b)](_0x3bd958(0xae),_0x499930,_0x87b8b8);})[_0x1dc3d0(0x8a)](function(_0x3ed374){const _0x5765b4=_0x1dc3d0;logger[_0x5765b4(0x8b)](util['inspect'](_0x3ed374,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x5dba5c,_0xc81f6b,_0x4fb4a1){const _0x86abda=a1106_0x4917f9,_0x1c7b74=this;this['sequence'][_0x86abda(0x98)](function(){const _0x5dd28f=_0x86abda;return _0x1c7b74[_0x5dd28f(0xa7)][_0x5dd28f(0xab)](_0x5dba5c,_0xc81f6b,_0x4fb4a1)[_0x5dd28f(0x93)](function(){const _0x4908a9=_0x5dd28f;logger[_0x4908a9(0x8b)](_0x4908a9(0x95),_0xc81f6b,_0x4fb4a1,_0x5dba5c);})[_0x5dd28f(0x8a)](function(_0x418634){const _0x3b9a96=_0x5dd28f;logger[_0x3b9a96(0x8b)](util[_0x3b9a96(0xa0)](_0x418634,{'showHidden':![],'depth':null}));});});},Migration[a1106_0x4917f9(0x7e)][a1106_0x4917f9(0xad)]=function(_0x4f643e){const _0x298235=a1106_0x4917f9;this[_0x298235(0x81)][_0x298235(0x98)](function(){return _0x4f643e();});},module['exports']={'up':function(_0x4a3b18,_0x40b07b){return new Promise(function(_0x14cd5b){const _0x5da7e5=a1106_0x569e,_0x147d0f=new Migration(_0x4a3b18);_0x147d0f[_0x5da7e5(0x9f)](_0x5da7e5(0x9d),_0x5da7e5(0x7f),{'type':_0x40b07b[_0x5da7e5(0xa5)],'defaultValue':_0x5da7e5(0x92)}),_0x147d0f[_0x5da7e5(0x9f)](_0x5da7e5(0x9d),_0x5da7e5(0x85),{'type':_0x40b07b[_0x5da7e5(0xa5)]}),_0x147d0f[_0x5da7e5(0x9f)](_0x5da7e5(0x9d),'customerAvatar',{'type':_0x40b07b[_0x5da7e5(0xa1)]}),_0x147d0f[_0x5da7e5(0x9f)]('chat_websites',_0x5da7e5(0xac),{'type':_0x40b07b[_0x5da7e5(0x8e)],'defaultValue':![]}),_0x147d0f['addColumn'](_0x5da7e5(0xa3),_0x5da7e5(0x9b),{'type':_0x40b07b['INTEGER']}),_0x147d0f['query'](_0x5da7e5(0x91)),_0x147d0f[_0x5da7e5(0x9f)](_0x5da7e5(0xa4),_0x5da7e5(0x9b),{'type':_0x40b07b[_0x5da7e5(0x97)]}),_0x147d0f['query'](_0x5da7e5(0x8c)),_0x147d0f[_0x5da7e5(0x9f)]('mail_applications',_0x5da7e5(0x9b),{'type':_0x40b07b[_0x5da7e5(0x97)]}),_0x147d0f[_0x5da7e5(0x82)]('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'),_0x147d0f[_0x5da7e5(0x9f)](_0x5da7e5(0x7c),_0x5da7e5(0x9b),{'type':_0x40b07b[_0x5da7e5(0x97)]}),_0x147d0f[_0x5da7e5(0x82)](_0x5da7e5(0x80)),_0x147d0f[_0x5da7e5(0x9f)](_0x5da7e5(0x87),_0x5da7e5(0x9b),{'type':_0x40b07b['INTEGER']}),_0x147d0f['query'](_0x5da7e5(0x84)),_0x147d0f['query'](_0x5da7e5(0x94)),_0x147d0f[_0x5da7e5(0x9f)](_0x5da7e5(0x96),'token',{'type':_0x40b07b['STRING']}),_0x147d0f[_0x5da7e5(0x9f)]('voice_queues_log',_0x5da7e5(0x9e),{'type':_0x40b07b['STRING'],'allowNull':![],'defaultValue':''}),_0x147d0f[_0x5da7e5(0xa2)](_0x5da7e5(0x89),_0x5da7e5(0xa8),{'type':_0x40b07b['STRING'],'allowNull':![]}),_0x147d0f[_0x5da7e5(0xad)](_0x14cd5b);});},'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 2227620..5dbd03d 100644 --- a/server/migrations/2.0.64.js +++ b/server/migrations/2.0.64.js @@ -1 +1 @@ -const a1107_0x4011=['addIndex\x20%s\x20%s\x20%s','report_call','addIndex','removeIndex','tail','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','util','addColumn','sequelize','prototype','phoneBarEnableVideoRecording','Removed\x20column\x20%s\x20from\x20%s','migration','renameColumn','finally','removeIndex\x20%s\x20%s','field','changeColumn','BOOLEAN','join','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','info','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','sequence','users','removeColumn','../config/logger','final','customerAlias','inspect','then','TEXT','query','STRING','chat_websites','queryInterface','enqueue','stringify','exports'];(function(_0x4831dc,_0x1fd333){const _0x40115d=function(_0x5a11e3){while(--_0x5a11e3){_0x4831dc['push'](_0x4831dc['shift']());}};_0x40115d(++_0x1fd333);}(a1107_0x4011,0x135));const a1107_0x5a11=function(_0x4831dc,_0x1fd333){_0x4831dc=_0x4831dc-0x92;let _0x40115d=a1107_0x4011[_0x4831dc];return _0x40115d;};const a1107_0x2cbc98=a1107_0x5a11;'use strict';const util=require(a1107_0x2cbc98(0x92)),logger=require(a1107_0x2cbc98(0xa8))(a1107_0x2cbc98(0x98)),Sequence=function(){};Sequence['prototype'][a1107_0x2cbc98(0xb2)]=function(_0x41d229){const _0x2462c5=a1107_0x2cbc98;this[_0x2462c5(0xb9)]=this[_0x2462c5(0xb9)]?this[_0x2462c5(0xb9)][_0x2462c5(0x9a)](_0x41d229):_0x41d229();};const Migration=function(_0x5cbe23){this['queryInterface']=_0x5cbe23,this['sequence']=new Sequence();};Migration['prototype'][a1107_0x2cbc98(0x9d)]=function(_0x313a99,_0x4cb80d,_0x28e984){const _0x5a6760=a1107_0x2cbc98,_0x91da0e=this;this[_0x5a6760(0xa5)][_0x5a6760(0xb2)](function(){const _0x2bb473=_0x5a6760;return _0x91da0e['queryInterface'][_0x2bb473(0x9d)](_0x313a99,_0x4cb80d,_0x28e984)[_0x2bb473(0xac)](function(){const _0xabe554=_0x2bb473;logger[_0xabe554(0xa2)](_0xabe554(0xa0),_0x4cb80d,_0x313a99);})[_0x2bb473(0xa1)](function(_0x7a1fe){const _0x39154=_0x2bb473;logger['info'](JSON[_0x39154(0xb3)](_0x7a1fe));});});},Migration[a1107_0x2cbc98(0x95)]['addColumn']=function(_0xcde85e,_0x1bd3e4,_0x38c5d5){const _0xd33bc3=a1107_0x2cbc98,_0x5a5a67=this;this['sequence'][_0xd33bc3(0xb2)](function(){const _0x549ff9=_0xd33bc3;return _0x5a5a67[_0x549ff9(0xb1)]['addColumn'](_0xcde85e,_0x1bd3e4,_0x38c5d5)[_0x549ff9(0xac)](function(){const _0x2e6057=_0x549ff9;logger[_0x2e6057(0xa2)](_0x2e6057(0xa4),_0x1bd3e4,_0xcde85e);})[_0x549ff9(0xa1)](function(_0x4e32f0){const _0x77ed4a=_0x549ff9;logger[_0x77ed4a(0xa2)](JSON[_0x77ed4a(0xb3)](_0x4e32f0));});});},Migration[a1107_0x2cbc98(0x95)][a1107_0x2cbc98(0xba)]=function(_0x45ddec){const _0x22bb36=a1107_0x2cbc98,_0x1140d2=this;this[_0x22bb36(0xa5)][_0x22bb36(0xb2)](function(){const _0x1ce5b9=_0x22bb36;return _0x1140d2['queryInterface'][_0x1ce5b9(0xba)](_0x45ddec,{'force':!![]})[_0x1ce5b9(0xac)](function(){const _0xef0355=_0x1ce5b9;logger[_0xef0355(0xa2)](_0xef0355(0xa3),_0x45ddec);})['catch'](function(_0x150696){const _0x1b3c27=_0x1ce5b9;logger[_0x1b3c27(0xa2)](JSON['stringify'](_0x150696));});});},Migration[a1107_0x2cbc98(0x95)][a1107_0x2cbc98(0xb7)]=function(_0x8eea23,_0x240da9,_0x299f94){const _0x81b60d=a1107_0x2cbc98,_0x57421c=this;this[_0x81b60d(0xa5)][_0x81b60d(0xb2)](function(){const _0x49eda5=_0x81b60d;return _0x57421c['queryInterface']['addIndex'](_0x8eea23,_0x240da9,{'indexName':_0x299f94})[_0x49eda5(0xac)](function(){const _0x42c6ed=_0x49eda5;logger[_0x42c6ed(0xa2)](_0x42c6ed(0xb5),_0x8eea23,_0x240da9[_0x42c6ed(0x9f)](','),_0x299f94);})[_0x49eda5(0xa1)](function(_0x115ecd){const _0x3eda33=_0x49eda5;logger[_0x3eda33(0xa2)](JSON[_0x3eda33(0xb3)](_0x115ecd));});});},Migration[a1107_0x2cbc98(0x95)]['removeIndex']=function(_0x1f35f8,_0x27b4bc){const _0xf6e64c=this;this['sequence']['enqueue'](function(){const _0x440e8a=a1107_0x5a11;return _0xf6e64c[_0x440e8a(0xb1)]['removeIndex'](_0x1f35f8,_0x27b4bc)[_0x440e8a(0xac)](function(){const _0x95bf0c=_0x440e8a;logger[_0x95bf0c(0xa2)](_0x95bf0c(0x9b),_0x1f35f8,_0x27b4bc);})[_0x440e8a(0xa1)](function(_0x1692a9){const _0x4346ba=_0x440e8a;logger[_0x4346ba(0xa2)](JSON[_0x4346ba(0xb3)](_0x1692a9));});});},Migration[a1107_0x2cbc98(0x95)][a1107_0x2cbc98(0xae)]=function(_0x482385){const _0x457270=a1107_0x2cbc98,_0x4d6708=this;this['sequence'][_0x457270(0xb2)](function(){const _0x19589e=_0x457270;return _0x4d6708[_0x19589e(0xb1)][_0x19589e(0x94)][_0x19589e(0xae)](_0x482385)['then'](function(){const _0x365665=_0x19589e;logger['info'](_0x365665(0xbc),_0x482385);})[_0x19589e(0xa1)](function(_0x412765){const _0x423a8d=_0x19589e;logger[_0x423a8d(0xa2)](JSON[_0x423a8d(0xb3)](_0x412765));});});},Migration['prototype']['removeColumn']=function(_0x5aee30,_0x566939){const _0x45a1aa=a1107_0x2cbc98,_0x5eab4=this;this[_0x45a1aa(0xa5)]['enqueue'](function(){const _0xb8424f=_0x45a1aa;return _0x5eab4[_0xb8424f(0xb1)][_0xb8424f(0xa7)](_0x5aee30,_0x566939)[_0xb8424f(0xac)](function(){const _0x9cd505=_0xb8424f;logger['info'](_0x9cd505(0x97),_0x566939,_0x5aee30);})[_0xb8424f(0xa1)](function(_0x2280d3){const _0xe6a12=_0xb8424f;logger[_0xe6a12(0xa2)](util[_0xe6a12(0xab)](_0x2280d3,{'showHidden':![],'depth':null}));});});},Migration[a1107_0x2cbc98(0x95)][a1107_0x2cbc98(0x99)]=function(_0x527bd5,_0xff29e4,_0x5557b0){const _0x57fb9c=a1107_0x2cbc98,_0x5a5e54=this;this[_0x57fb9c(0xa5)][_0x57fb9c(0xb2)](function(){const _0x5a5ca2=_0x57fb9c;return _0x5a5e54['queryInterface'][_0x5a5ca2(0x99)](_0x527bd5,_0xff29e4,_0x5557b0)[_0x5a5ca2(0xac)](function(){const _0x270f54=_0x5a5ca2;logger[_0x270f54(0xa2)](_0x270f54(0xbb),_0xff29e4,_0x5557b0,_0x527bd5);})[_0x5a5ca2(0xa1)](function(_0x2a6a11){const _0x46fd7c=_0x5a5ca2;logger['info'](util[_0x46fd7c(0xab)](_0x2a6a11,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1107_0x2cbc98(0xa9)]=function(_0x4a0cff){const _0x2feb73=a1107_0x2cbc98;this[_0x2feb73(0xa5)][_0x2feb73(0xb2)](function(){return _0x4a0cff();});},module[a1107_0x2cbc98(0xb4)]={'up':function(_0x34bdd5,_0x5421b5){return new Promise(function(_0x14c269){const _0x355373=a1107_0x5a11,_0x5561dd=new Migration(_0x34bdd5);_0x5561dd['addColumn'](_0x355373(0xa6),_0x355373(0x96),{'type':_0x5421b5[_0x355373(0x9e)],'defaultValue':![]}),_0x5561dd[_0x355373(0x9d)](_0x355373(0xb6),'lastdata',{'type':_0x5421b5[_0x355373(0xad)]}),_0x5561dd[_0x355373(0x93)](_0x355373(0xb0),_0x355373(0xaa),{'type':_0x5421b5[_0x355373(0xaf)],'defaultValue':'Me'}),_0x5561dd['changeColumn']('analytics_report_fields',_0x355373(0x9c),{'type':_0x5421b5['TEXT'],'allowNull':![]}),_0x5561dd[_0x355373(0xb8)](_0x355373(0xb6),'uniqueid'),_0x5561dd['final'](_0x14c269);});},'down':function(){}}; \ No newline at end of file +const a1107_0x106f=['Removed\x20column\x20%s\x20from\x20%s','addColumn','phoneBarEnableVideoRecording','addIndex','users','addIndex\x20%s\x20%s\x20%s','uniqueid','removeIndex\x20%s\x20%s','../config/logger','removeIndex','prototype','join','TEXT','field','queryInterface','renameColumn','removeColumn','tail','sequence','catch','info','stringify','migration','Changed\x20column\x20%s\x20in\x20table\x20%s','then','changeColumn','query\x20%s','BOOLEAN','STRING','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','report_call','Added\x20column\x20%s\x20to\x20%s','final','enqueue','inspect'];(function(_0x164930,_0x442be5){const _0x106ff0=function(_0x182fed){while(--_0x182fed){_0x164930['push'](_0x164930['shift']());}};_0x106ff0(++_0x442be5);}(a1107_0x106f,0x168));const a1107_0x182f=function(_0x164930,_0x442be5){_0x164930=_0x164930-0x1af;let _0x106ff0=a1107_0x106f[_0x164930];return _0x106ff0;};const a1107_0x2565ef=a1107_0x182f;'use strict';const util=require('util'),logger=require(a1107_0x2565ef(0x1d0))(a1107_0x2565ef(0x1bb)),Sequence=function(){};Sequence[a1107_0x2565ef(0x1af)]['enqueue']=function(_0x41527a){const _0x1479ce=a1107_0x2565ef;this[_0x1479ce(0x1b6)]=this[_0x1479ce(0x1b6)]?this[_0x1479ce(0x1b6)]['finally'](_0x41527a):_0x41527a();};const Migration=function(_0x47be1e){const _0x23e533=a1107_0x2565ef;this[_0x23e533(0x1b3)]=_0x47be1e,this[_0x23e533(0x1b7)]=new Sequence();};Migration[a1107_0x2565ef(0x1af)][a1107_0x2565ef(0x1be)]=function(_0x50c493,_0xcb371,_0x98edbc){const _0x1d177c=a1107_0x2565ef,_0x22edf5=this;this[_0x1d177c(0x1b7)][_0x1d177c(0x1c6)](function(){const _0xc3bde5=_0x1d177c;return _0x22edf5['queryInterface']['changeColumn'](_0x50c493,_0xcb371,_0x98edbc)[_0xc3bde5(0x1bd)](function(){const _0x130e12=_0xc3bde5;logger['info'](_0x130e12(0x1bc),_0xcb371,_0x50c493);})[_0xc3bde5(0x1b8)](function(_0x277b3d){const _0x3c4478=_0xc3bde5;logger[_0x3c4478(0x1b9)](JSON['stringify'](_0x277b3d));});});},Migration[a1107_0x2565ef(0x1af)][a1107_0x2565ef(0x1c9)]=function(_0x52a217,_0x484042,_0x157386){const _0xe15c2c=a1107_0x2565ef,_0x3efd9=this;this[_0xe15c2c(0x1b7)][_0xe15c2c(0x1c6)](function(){const _0x3dd39e=_0xe15c2c;return _0x3efd9['queryInterface']['addColumn'](_0x52a217,_0x484042,_0x157386)[_0x3dd39e(0x1bd)](function(){const _0x35618d=_0x3dd39e;logger[_0x35618d(0x1b9)](_0x35618d(0x1c4),_0x484042,_0x52a217);})[_0x3dd39e(0x1b8)](function(_0x5a04b6){const _0x34322b=_0x3dd39e;logger[_0x34322b(0x1b9)](JSON[_0x34322b(0x1ba)](_0x5a04b6));});});},Migration['prototype']['dropTable']=function(_0x19d8fb){const _0x47879e=a1107_0x2565ef,_0xf80e27=this;this['sequence'][_0x47879e(0x1c6)](function(){const _0x4c43a4=_0x47879e;return _0xf80e27[_0x4c43a4(0x1b3)]['dropTable'](_0x19d8fb,{'force':!![]})[_0x4c43a4(0x1bd)](function(){logger['info']('table\x20dropped\x20%s',_0x19d8fb);})[_0x4c43a4(0x1b8)](function(_0x26e368){const _0x5a59a4=_0x4c43a4;logger[_0x5a59a4(0x1b9)](JSON[_0x5a59a4(0x1ba)](_0x26e368));});});},Migration[a1107_0x2565ef(0x1af)][a1107_0x2565ef(0x1cb)]=function(_0x4acaf0,_0x538c45,_0x520f2c){const _0xab3af5=a1107_0x2565ef,_0x189b22=this;this[_0xab3af5(0x1b7)][_0xab3af5(0x1c6)](function(){const _0x419357=_0xab3af5;return _0x189b22[_0x419357(0x1b3)][_0x419357(0x1cb)](_0x4acaf0,_0x538c45,{'indexName':_0x520f2c})[_0x419357(0x1bd)](function(){const _0x3f3afc=_0x419357;logger[_0x3f3afc(0x1b9)](_0x3f3afc(0x1cd),_0x4acaf0,_0x538c45[_0x3f3afc(0x1b0)](','),_0x520f2c);})['catch'](function(_0x47fdc0){const _0x493bf3=_0x419357;logger[_0x493bf3(0x1b9)](JSON[_0x493bf3(0x1ba)](_0x47fdc0));});});},Migration[a1107_0x2565ef(0x1af)][a1107_0x2565ef(0x1d1)]=function(_0x20c4a1,_0x59dd99){const _0x4ea469=a1107_0x2565ef,_0x4dcb3e=this;this[_0x4ea469(0x1b7)][_0x4ea469(0x1c6)](function(){const _0x1a6bba=_0x4ea469;return _0x4dcb3e[_0x1a6bba(0x1b3)][_0x1a6bba(0x1d1)](_0x20c4a1,_0x59dd99)['then'](function(){const _0x16eb3e=_0x1a6bba;logger[_0x16eb3e(0x1b9)](_0x16eb3e(0x1cf),_0x20c4a1,_0x59dd99);})[_0x1a6bba(0x1b8)](function(_0x54fd72){const _0x34d0ca=_0x1a6bba;logger['info'](JSON[_0x34d0ca(0x1ba)](_0x54fd72));});});},Migration[a1107_0x2565ef(0x1af)]['query']=function(_0x4866a2){const _0x308da2=a1107_0x2565ef,_0x53fbe1=this;this[_0x308da2(0x1b7)][_0x308da2(0x1c6)](function(){const _0x4befcc=_0x308da2;return _0x53fbe1[_0x4befcc(0x1b3)]['sequelize']['query'](_0x4866a2)[_0x4befcc(0x1bd)](function(){const _0x48b758=_0x4befcc;logger[_0x48b758(0x1b9)](_0x48b758(0x1bf),_0x4866a2);})[_0x4befcc(0x1b8)](function(_0xbd075d){const _0x167d1d=_0x4befcc;logger['info'](JSON[_0x167d1d(0x1ba)](_0xbd075d));});});},Migration['prototype'][a1107_0x2565ef(0x1b5)]=function(_0x1c972b,_0x52d89f){const _0x6b8cce=a1107_0x2565ef,_0x1becb9=this;this[_0x6b8cce(0x1b7)]['enqueue'](function(){const _0x5e4f6a=_0x6b8cce;return _0x1becb9[_0x5e4f6a(0x1b3)][_0x5e4f6a(0x1b5)](_0x1c972b,_0x52d89f)[_0x5e4f6a(0x1bd)](function(){const _0x15a587=_0x5e4f6a;logger[_0x15a587(0x1b9)](_0x15a587(0x1c8),_0x52d89f,_0x1c972b);})[_0x5e4f6a(0x1b8)](function(_0x3d42bb){const _0x2ecf26=_0x5e4f6a;logger[_0x2ecf26(0x1b9)](util['inspect'](_0x3d42bb,{'showHidden':![],'depth':null}));});});},Migration[a1107_0x2565ef(0x1af)][a1107_0x2565ef(0x1b4)]=function(_0x411aeb,_0x366879,_0x3f655c){const _0xee07cc=a1107_0x2565ef,_0x86f94c=this;this['sequence'][_0xee07cc(0x1c6)](function(){const _0x511c41=_0xee07cc;return _0x86f94c[_0x511c41(0x1b3)][_0x511c41(0x1b4)](_0x411aeb,_0x366879,_0x3f655c)[_0x511c41(0x1bd)](function(){const _0xbca735=_0x511c41;logger[_0xbca735(0x1b9)](_0xbca735(0x1c2),_0x366879,_0x3f655c,_0x411aeb);})['catch'](function(_0x5e0411){const _0x2052d0=_0x511c41;logger[_0x2052d0(0x1b9)](util[_0x2052d0(0x1c7)](_0x5e0411,{'showHidden':![],'depth':null}));});});},Migration[a1107_0x2565ef(0x1af)][a1107_0x2565ef(0x1c5)]=function(_0x27d535){const _0x567e35=a1107_0x2565ef;this[_0x567e35(0x1b7)][_0x567e35(0x1c6)](function(){return _0x27d535();});},module['exports']={'up':function(_0x285da1,_0x5b663b){return new Promise(function(_0x3404ae){const _0x7e88b4=a1107_0x182f,_0x5479fd=new Migration(_0x285da1);_0x5479fd[_0x7e88b4(0x1c9)](_0x7e88b4(0x1cc),_0x7e88b4(0x1ca),{'type':_0x5b663b[_0x7e88b4(0x1c0)],'defaultValue':![]}),_0x5479fd[_0x7e88b4(0x1be)]('report_call','lastdata',{'type':_0x5b663b['TEXT']}),_0x5479fd['addColumn']('chat_websites','customerAlias',{'type':_0x5b663b[_0x7e88b4(0x1c1)],'defaultValue':'Me'}),_0x5479fd[_0x7e88b4(0x1be)]('analytics_report_fields',_0x7e88b4(0x1b2),{'type':_0x5b663b[_0x7e88b4(0x1b1)],'allowNull':![]}),_0x5479fd['removeIndex'](_0x7e88b4(0x1c3),_0x7e88b4(0x1ce)),_0x5479fd[_0x7e88b4(0x1c5)](_0x3404ae);});},'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 4ed304e..8919971 100644 --- a/server/migrations/2.0.65.js +++ b/server/migrations/2.0.65.js @@ -1 +1 @@ -const a1108_0x12e5=['INSERT\x20INTO\x20ints(i)\x20VALUES\x20(1)','then','addIndex','prototype','sequence','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','dialCutDigit','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','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;','tail','removeIndex\x20%s\x20%s','query','migration','voice_queues','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(4)','queryInterface','addIndex\x20%s\x20%s\x20%s','finally','query\x20%s','join','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(7)','dialRandomLastDigitCallerIdNumber','STRING','exports','addColumn','../config/logger','catch','Removed\x20column\x20%s\x20from\x20%s','inspect','util','Added\x20column\x20%s\x20to\x20%s','ALTER\x20TABLE\x20tmp_tools_tags\x20ADD\x20COLUMN\x20contact_id\x20INT\x20NULL','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(6)','final','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;','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(0)','cm_contacts','renameColumn','UNSIGNED','removeIndex','INSERT\x20INTO\x20tmp_tools_tags(\x20name,\x20createdAt,\x20updatedAt,\x20contact_id)\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20splitted_tags,\x20CURRENT_TIMESTAMP(),\x20CURRENT_TIMESTAMP()\x20,\x20id\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20DISTINCT\x20cm.id,\x20cm.tags,\x20TRIM(SUBSTRING_INDEX(SUBSTRING_INDEX(cm.tags,\x20\x27;\x27,\x20i+1),\x27;\x27,-1))\x20splitted_tags\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20ints\x20i,\x20cm_contacts\x20cm\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20cm.tags\x20REGEXP\x20\x27(.*;){1}\x27\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20id)\x20a\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20a.tags\x20IS\x20NOT\x20NULL\x20and\x20splitted_tags\x20<>\x20\x27\x27;','campaigns','stringify','removeColumn','dropTable','enqueue','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(9)','table\x20dropped\x20%s','INTEGER','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(3)','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(8)'];(function(_0x4ba331,_0x49c2ea){const _0x12e5de=function(_0x38b017){while(--_0x38b017){_0x4ba331['push'](_0x4ba331['shift']());}};_0x12e5de(++_0x49c2ea);}(a1108_0x12e5,0x70));const a1108_0x38b0=function(_0x4ba331,_0x49c2ea){_0x4ba331=_0x4ba331-0xbd;let _0x12e5de=a1108_0x12e5[_0x4ba331];return _0x12e5de;};const a1108_0x14701f=a1108_0x38b0;'use strict';const util=require(a1108_0x14701f(0xd8)),logger=require(a1108_0x14701f(0xd4))(a1108_0x14701f(0xc7)),Sequence=function(){};Sequence[a1108_0x14701f(0xf2)][a1108_0x14701f(0xe9)]=function(_0x32b2d9){const _0x5b7e43=a1108_0x14701f;this[_0x5b7e43(0xc4)]=this[_0x5b7e43(0xc4)]?this[_0x5b7e43(0xc4)][_0x5b7e43(0xcc)](_0x32b2d9):_0x32b2d9();};const Migration=function(_0x164db9){const _0xca71ea=a1108_0x14701f;this['queryInterface']=_0x164db9,this[_0xca71ea(0xbd)]=new Sequence();};Migration[a1108_0x14701f(0xf2)]['changeColumn']=function(_0xffca3e,_0x8bdf9b,_0x5500f9){const _0x1df4d3=a1108_0x14701f,_0x1d6e6b=this;this[_0x1df4d3(0xbd)][_0x1df4d3(0xe9)](function(){const _0x5e463f=_0x1df4d3;return _0x1d6e6b[_0x5e463f(0xca)]['changeColumn'](_0xffca3e,_0x8bdf9b,_0x5500f9)[_0x5e463f(0xf0)](function(){const _0x91bc60=_0x5e463f;logger['info'](_0x91bc60(0xbf),_0x8bdf9b,_0xffca3e);})[_0x5e463f(0xd5)](function(_0x18ec2e){const _0x5804a4=_0x5e463f;logger[_0x5804a4(0xc2)](JSON[_0x5804a4(0xe6)](_0x18ec2e));});});},Migration[a1108_0x14701f(0xf2)]['addColumn']=function(_0x11db92,_0x19a233,_0x3a0616){const _0x2e0105=a1108_0x14701f,_0x1356ce=this;this['sequence'][_0x2e0105(0xe9)](function(){const _0x20f14b=_0x2e0105;return _0x1356ce['queryInterface']['addColumn'](_0x11db92,_0x19a233,_0x3a0616)['then'](function(){const _0x257872=a1108_0x38b0;logger['info'](_0x257872(0xd9),_0x19a233,_0x11db92);})[_0x20f14b(0xd5)](function(_0x178016){const _0x2664a2=_0x20f14b;logger['info'](JSON[_0x2664a2(0xe6)](_0x178016));});});},Migration[a1108_0x14701f(0xf2)][a1108_0x14701f(0xe8)]=function(_0x29cfaf){const _0x56a299=a1108_0x14701f,_0x365138=this;this[_0x56a299(0xbd)][_0x56a299(0xe9)](function(){const _0x157f50=_0x56a299;return _0x365138['queryInterface'][_0x157f50(0xe8)](_0x29cfaf,{'force':!![]})[_0x157f50(0xf0)](function(){const _0x73dfc7=_0x157f50;logger['info'](_0x73dfc7(0xeb),_0x29cfaf);})['catch'](function(_0x5dd002){const _0x3e6f13=_0x157f50;logger[_0x3e6f13(0xc2)](JSON['stringify'](_0x5dd002));});});},Migration['prototype'][a1108_0x14701f(0xf1)]=function(_0x55c446,_0x44c91b,_0x2f5f8a){const _0x2b93af=a1108_0x14701f,_0x2b8991=this;this['sequence'][_0x2b93af(0xe9)](function(){const _0x36d7b4=_0x2b93af;return _0x2b8991[_0x36d7b4(0xca)][_0x36d7b4(0xf1)](_0x55c446,_0x44c91b,{'indexName':_0x2f5f8a})['then'](function(){const _0xd5e3d9=_0x36d7b4;logger[_0xd5e3d9(0xc2)](_0xd5e3d9(0xcb),_0x55c446,_0x44c91b[_0xd5e3d9(0xce)](','),_0x2f5f8a);})[_0x36d7b4(0xd5)](function(_0x4ce627){const _0xb09a01=_0x36d7b4;logger[_0xb09a01(0xc2)](JSON[_0xb09a01(0xe6)](_0x4ce627));});});},Migration['prototype'][a1108_0x14701f(0xe3)]=function(_0x20ade0,_0x3146a8){const _0x45ddb0=a1108_0x14701f,_0x2c96fe=this;this[_0x45ddb0(0xbd)][_0x45ddb0(0xe9)](function(){const _0x3ddd26=_0x45ddb0;return _0x2c96fe[_0x3ddd26(0xca)][_0x3ddd26(0xe3)](_0x20ade0,_0x3146a8)[_0x3ddd26(0xf0)](function(){const _0x2bb985=_0x3ddd26;logger[_0x2bb985(0xc2)](_0x2bb985(0xc5),_0x20ade0,_0x3146a8);})[_0x3ddd26(0xd5)](function(_0x57c900){const _0x318e80=_0x3ddd26;logger[_0x318e80(0xc2)](JSON[_0x318e80(0xe6)](_0x57c900));});});},Migration[a1108_0x14701f(0xf2)][a1108_0x14701f(0xc6)]=function(_0x43dcb1){const _0x5f4773=a1108_0x14701f,_0x59b8c6=this;this[_0x5f4773(0xbd)][_0x5f4773(0xe9)](function(){const _0x5982ab=_0x5f4773;return _0x59b8c6[_0x5982ab(0xca)][_0x5982ab(0xbe)][_0x5982ab(0xc6)](_0x43dcb1)[_0x5982ab(0xf0)](function(){const _0x4c041e=_0x5982ab;logger['info'](_0x4c041e(0xcd),_0x43dcb1);})[_0x5982ab(0xd5)](function(_0x8be2c2){const _0x58e7fb=_0x5982ab;logger[_0x58e7fb(0xc2)](JSON[_0x58e7fb(0xe6)](_0x8be2c2));});});},Migration['prototype']['removeColumn']=function(_0x19d6f5,_0x32b19b){const _0x2a5833=a1108_0x14701f,_0x369eff=this;this[_0x2a5833(0xbd)][_0x2a5833(0xe9)](function(){const _0x59b605=_0x2a5833;return _0x369eff[_0x59b605(0xca)][_0x59b605(0xe7)](_0x19d6f5,_0x32b19b)['then'](function(){const _0x454bfb=_0x59b605;logger['info'](_0x454bfb(0xd6),_0x32b19b,_0x19d6f5);})[_0x59b605(0xd5)](function(_0x17b107){const _0xbce291=_0x59b605;logger['info'](util[_0xbce291(0xd7)](_0x17b107,{'showHidden':![],'depth':null}));});});},Migration[a1108_0x14701f(0xf2)][a1108_0x14701f(0xe1)]=function(_0x429368,_0x4f3b7b,_0x23ef82){const _0x415f19=a1108_0x14701f,_0x4513ea=this;this[_0x415f19(0xbd)][_0x415f19(0xe9)](function(){const _0x104571=_0x415f19;return _0x4513ea[_0x104571(0xca)][_0x104571(0xe1)](_0x429368,_0x4f3b7b,_0x23ef82)[_0x104571(0xf0)](function(){const _0x176e44=_0x104571;logger['info'](_0x176e44(0xc1),_0x4f3b7b,_0x23ef82,_0x429368);})[_0x104571(0xd5)](function(_0x295a76){const _0x25adb6=_0x104571;logger['info'](util[_0x25adb6(0xd7)](_0x295a76,{'showHidden':![],'depth':null}));});});},Migration[a1108_0x14701f(0xf2)][a1108_0x14701f(0xdc)]=function(_0x296595){const _0x356843=a1108_0x14701f;this[_0x356843(0xbd)][_0x356843(0xe9)](function(){return _0x296595();});},module[a1108_0x14701f(0xd2)]={'up':function(_0xbaa1a0,_0x43b698){return new Promise(function(_0x10c39e){const _0x24ad40=a1108_0x38b0,_0x10c12b=new Migration(_0xbaa1a0);_0x10c12b[_0x24ad40(0xd3)](_0x24ad40(0xc8),_0x24ad40(0xd0),{'type':_0x43b698[_0x24ad40(0xec)](0x3)[_0x24ad40(0xe2)],'defaultValue':0x0}),_0x10c12b[_0x24ad40(0xd3)](_0x24ad40(0xc8),_0x24ad40(0xc0),{'type':_0x43b698[_0x24ad40(0xec)](0x3)[_0x24ad40(0xe2)],'defaultValue':0x0}),_0x10c12b[_0x24ad40(0xd3)](_0x24ad40(0xe5),_0x24ad40(0xd0),{'type':_0x43b698[_0x24ad40(0xec)](0x3)[_0x24ad40(0xe2)],'defaultValue':0x0}),_0x10c12b[_0x24ad40(0xd3)](_0x24ad40(0xe5),_0x24ad40(0xc0),{'type':_0x43b698[_0x24ad40(0xec)](0x3)[_0x24ad40(0xe2)],'defaultValue':0x0}),_0x10c12b['addColumn'](_0x24ad40(0xe0),'teams',{'type':_0x43b698[_0x24ad40(0xd1)]}),_0x10c12b['query'](_0x24ad40(0xde)),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xdd)),_0x10c12b[_0x24ad40(0xc6)]('CREATE\x20TABLE\x20ints(i\x20int(11)\x20DEFAULT\x20NULL,UNIQUE\x20KEY\x20i_UNIQUE\x20(i))\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8'),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xdf)),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xef)),_0x10c12b[_0x24ad40(0xc6)]('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(2)'),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xed)),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xc9)),_0x10c12b['query']('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(5)'),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xdb)),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xcf)),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xee)),_0x10c12b['query'](_0x24ad40(0xea)),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xda)),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xe4)),_0x10c12b[_0x24ad40(0xc6)](_0x24ad40(0xc3)),_0x10c12b['final'](_0x10c39e);});},'down':function(){}}; \ No newline at end of file +const a1108_0x200f=['UNSIGNED','removeIndex\x20%s\x20%s','teams','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(7)','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(4)','Added\x20column\x20%s\x20to\x20%s','then','tail','changeColumn','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(9)','query\x20%s','sequelize','INSERT\x20INTO\x20tmp_tools_tags(\x20name,\x20createdAt,\x20updatedAt,\x20contact_id)\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20splitted_tags,\x20CURRENT_TIMESTAMP(),\x20CURRENT_TIMESTAMP()\x20,\x20id\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20DISTINCT\x20cm.id,\x20cm.tags,\x20TRIM(SUBSTRING_INDEX(SUBSTRING_INDEX(cm.tags,\x20\x27;\x27,\x20i+1),\x27;\x27,-1))\x20splitted_tags\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20ints\x20i,\x20cm_contacts\x20cm\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20cm.tags\x20REGEXP\x20\x27(.*;){1}\x27\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20id)\x20a\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20a.tags\x20IS\x20NOT\x20NULL\x20and\x20splitted_tags\x20<>\x20\x27\x27;','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(3)','voice_queues','catch','enqueue','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(8)','dialRandomLastDigitCallerIdNumber','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;','removeIndex','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(1)','INTEGER','prototype','join','dropTable','CREATE\x20TABLE\x20ints(i\x20int(11)\x20DEFAULT\x20NULL,UNIQUE\x20KEY\x20i_UNIQUE\x20(i))\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8','removeColumn','migration','stringify','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(5)','util','final','sequence','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(2)','finally','../config/logger','renameColumn','addIndex','exports','table\x20dropped\x20%s','campaigns','cm_contacts','inspect','ALTER\x20TABLE\x20tmp_tools_tags\x20ADD\x20COLUMN\x20contact_id\x20INT\x20NULL','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(0)','dialCutDigit','STRING','Removed\x20column\x20%s\x20from\x20%s','query','queryInterface','info'];(function(_0x352e77,_0x30bf08){const _0x200fc0=function(_0x3bdcd7){while(--_0x3bdcd7){_0x352e77['push'](_0x352e77['shift']());}};_0x200fc0(++_0x30bf08);}(a1108_0x200f,0x172));const a1108_0x3bdc=function(_0x352e77,_0x30bf08){_0x352e77=_0x352e77-0x1a2;let _0x200fc0=a1108_0x200f[_0x352e77];return _0x200fc0;};const a1108_0x445080=a1108_0x3bdc;'use strict';const util=require(a1108_0x445080(0x1c9)),logger=require(a1108_0x445080(0x1ce))(a1108_0x445080(0x1c6)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0xb0b67c){const _0x19549a=a1108_0x445080;this[_0x19549a(0x1b1)]=this[_0x19549a(0x1b1)]?this['tail'][_0x19549a(0x1cd)](_0xb0b67c):_0xb0b67c();};const Migration=function(_0x463da6){this['queryInterface']=_0x463da6,this['sequence']=new Sequence();};Migration[a1108_0x445080(0x1c1)][a1108_0x445080(0x1b2)]=function(_0x193732,_0x3b2660,_0x3164d0){const _0x53ffcf=a1108_0x445080,_0xa04522=this;this[_0x53ffcf(0x1cb)]['enqueue'](function(){const _0x4d3ea3=_0x53ffcf;return _0xa04522['queryInterface'][_0x4d3ea3(0x1b2)](_0x193732,_0x3b2660,_0x3164d0)[_0x4d3ea3(0x1b0)](function(){const _0x1f4fa0=_0x4d3ea3;logger[_0x1f4fa0(0x1a9)](_0x1f4fa0(0x1d7),_0x3b2660,_0x193732);})[_0x4d3ea3(0x1b9)](function(_0x429d3d){logger['info'](JSON['stringify'](_0x429d3d));});});},Migration[a1108_0x445080(0x1c1)][a1108_0x445080(0x1a2)]=function(_0x5c3af0,_0x33d13e,_0x4a1e89){const _0x3f4ec2=a1108_0x445080,_0x3072b6=this;this[_0x3f4ec2(0x1cb)][_0x3f4ec2(0x1ba)](function(){const _0x204c2e=_0x3f4ec2;return _0x3072b6[_0x204c2e(0x1a8)][_0x204c2e(0x1a2)](_0x5c3af0,_0x33d13e,_0x4a1e89)[_0x204c2e(0x1b0)](function(){const _0x14821f=_0x204c2e;logger['info'](_0x14821f(0x1af),_0x33d13e,_0x5c3af0);})['catch'](function(_0x408fe2){const _0x5c0d84=_0x204c2e;logger[_0x5c0d84(0x1a9)](JSON['stringify'](_0x408fe2));});});},Migration['prototype'][a1108_0x445080(0x1c3)]=function(_0x7d1803){const _0x4f19eb=a1108_0x445080,_0x6ad008=this;this[_0x4f19eb(0x1cb)][_0x4f19eb(0x1ba)](function(){const _0x5b4b71=_0x4f19eb;return _0x6ad008['queryInterface'][_0x5b4b71(0x1c3)](_0x7d1803,{'force':!![]})[_0x5b4b71(0x1b0)](function(){const _0x5dd99d=_0x5b4b71;logger[_0x5dd99d(0x1a9)](_0x5dd99d(0x1d2),_0x7d1803);})[_0x5b4b71(0x1b9)](function(_0x3436bc){const _0x4bc55d=_0x5b4b71;logger[_0x4bc55d(0x1a9)](JSON['stringify'](_0x3436bc));});});},Migration[a1108_0x445080(0x1c1)]['addIndex']=function(_0x49106b,_0xbaac78,_0x177fcd){const _0x1d751a=a1108_0x445080,_0x55d669=this;this[_0x1d751a(0x1cb)][_0x1d751a(0x1ba)](function(){const _0x255e6c=_0x1d751a;return _0x55d669['queryInterface'][_0x255e6c(0x1d0)](_0x49106b,_0xbaac78,{'indexName':_0x177fcd})['then'](function(){const _0x540b99=_0x255e6c;logger[_0x540b99(0x1a9)]('addIndex\x20%s\x20%s\x20%s',_0x49106b,_0xbaac78[_0x540b99(0x1c2)](','),_0x177fcd);})['catch'](function(_0x2a2371){const _0x836e07=_0x255e6c;logger[_0x836e07(0x1a9)](JSON[_0x836e07(0x1c7)](_0x2a2371));});});},Migration[a1108_0x445080(0x1c1)]['removeIndex']=function(_0x37e7e7,_0x4c7673){const _0x456105=this;this['sequence']['enqueue'](function(){const _0x37c757=a1108_0x3bdc;return _0x456105['queryInterface'][_0x37c757(0x1be)](_0x37e7e7,_0x4c7673)[_0x37c757(0x1b0)](function(){const _0x5a3206=_0x37c757;logger[_0x5a3206(0x1a9)](_0x5a3206(0x1ab),_0x37e7e7,_0x4c7673);})['catch'](function(_0x48535e){const _0x618275=_0x37c757;logger[_0x618275(0x1a9)](JSON[_0x618275(0x1c7)](_0x48535e));});});},Migration['prototype'][a1108_0x445080(0x1a7)]=function(_0x33596e){const _0x58a9cd=a1108_0x445080,_0x25146b=this;this[_0x58a9cd(0x1cb)]['enqueue'](function(){const _0x2407bc=_0x58a9cd;return _0x25146b[_0x2407bc(0x1a8)][_0x2407bc(0x1b5)][_0x2407bc(0x1a7)](_0x33596e)[_0x2407bc(0x1b0)](function(){const _0x246ada=_0x2407bc;logger['info'](_0x246ada(0x1b4),_0x33596e);})[_0x2407bc(0x1b9)](function(_0x402215){const _0x3ba6b4=_0x2407bc;logger[_0x3ba6b4(0x1a9)](JSON[_0x3ba6b4(0x1c7)](_0x402215));});});},Migration['prototype']['removeColumn']=function(_0x1a06e7,_0x141054){const _0x143c69=a1108_0x445080,_0x4d4654=this;this[_0x143c69(0x1cb)][_0x143c69(0x1ba)](function(){const _0x52c91f=_0x143c69;return _0x4d4654[_0x52c91f(0x1a8)][_0x52c91f(0x1c5)](_0x1a06e7,_0x141054)['then'](function(){const _0x3ccdba=_0x52c91f;logger[_0x3ccdba(0x1a9)](_0x3ccdba(0x1a6),_0x141054,_0x1a06e7);})['catch'](function(_0xea1291){const _0x1ed40b=_0x52c91f;logger[_0x1ed40b(0x1a9)](util[_0x1ed40b(0x1d5)](_0xea1291,{'showHidden':![],'depth':null}));});});},Migration[a1108_0x445080(0x1c1)][a1108_0x445080(0x1cf)]=function(_0x57b3ca,_0x554f31,_0x4ae490){const _0xce8458=a1108_0x445080,_0x23f6ab=this;this['sequence'][_0xce8458(0x1ba)](function(){const _0x88ba61=_0xce8458;return _0x23f6ab[_0x88ba61(0x1a8)][_0x88ba61(0x1cf)](_0x57b3ca,_0x554f31,_0x4ae490)['then'](function(){const _0x1a8979=_0x88ba61;logger[_0x1a8979(0x1a9)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x554f31,_0x4ae490,_0x57b3ca);})[_0x88ba61(0x1b9)](function(_0x1d055f){const _0x1985af=_0x88ba61;logger[_0x1985af(0x1a9)](util[_0x1985af(0x1d5)](_0x1d055f,{'showHidden':![],'depth':null}));});});},Migration[a1108_0x445080(0x1c1)][a1108_0x445080(0x1ca)]=function(_0x3464f4){const _0x31225c=a1108_0x445080;this[_0x31225c(0x1cb)][_0x31225c(0x1ba)](function(){return _0x3464f4();});},module[a1108_0x445080(0x1d1)]={'up':function(_0x2643bd,_0x5f5c5e){return new Promise(function(_0x213262){const _0x511e27=a1108_0x3bdc,_0xf09e0=new Migration(_0x2643bd);_0xf09e0['addColumn'](_0x511e27(0x1b8),_0x511e27(0x1bc),{'type':_0x5f5c5e['INTEGER'](0x3)[_0x511e27(0x1aa)],'defaultValue':0x0}),_0xf09e0[_0x511e27(0x1a2)](_0x511e27(0x1b8),_0x511e27(0x1a4),{'type':_0x5f5c5e[_0x511e27(0x1c0)](0x3)[_0x511e27(0x1aa)],'defaultValue':0x0}),_0xf09e0[_0x511e27(0x1a2)](_0x511e27(0x1d3),_0x511e27(0x1bc),{'type':_0x5f5c5e[_0x511e27(0x1c0)](0x3)['UNSIGNED'],'defaultValue':0x0}),_0xf09e0[_0x511e27(0x1a2)]('campaigns','dialCutDigit',{'type':_0x5f5c5e[_0x511e27(0x1c0)](0x3)[_0x511e27(0x1aa)],'defaultValue':0x0}),_0xf09e0[_0x511e27(0x1a2)](_0x511e27(0x1d4),_0x511e27(0x1ac),{'type':_0x5f5c5e[_0x511e27(0x1a5)]}),_0xf09e0[_0x511e27(0x1a7)]('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;'),_0xf09e0[_0x511e27(0x1a7)](_0x511e27(0x1bd)),_0xf09e0[_0x511e27(0x1a7)](_0x511e27(0x1c4)),_0xf09e0['query'](_0x511e27(0x1a3)),_0xf09e0[_0x511e27(0x1a7)](_0x511e27(0x1bf)),_0xf09e0[_0x511e27(0x1a7)](_0x511e27(0x1cc)),_0xf09e0[_0x511e27(0x1a7)](_0x511e27(0x1b7)),_0xf09e0[_0x511e27(0x1a7)](_0x511e27(0x1ae)),_0xf09e0[_0x511e27(0x1a7)](_0x511e27(0x1c8)),_0xf09e0[_0x511e27(0x1a7)]('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(6)'),_0xf09e0[_0x511e27(0x1a7)](_0x511e27(0x1ad)),_0xf09e0[_0x511e27(0x1a7)](_0x511e27(0x1bb)),_0xf09e0[_0x511e27(0x1a7)](_0x511e27(0x1b3)),_0xf09e0[_0x511e27(0x1a7)](_0x511e27(0x1d6)),_0xf09e0[_0x511e27(0x1a7)](_0x511e27(0x1b6)),_0xf09e0['query']('INSERT\x20INTO\x20cm_contact_has_tags(createdAt,\x20updatedAt,\x20`CmContactId`,\x20`TagId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20SELECT\x20\x20NOW(),\x20NOW(),\x20tmt.contact_id,\x20tt.id\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tmp_tools_tags\x20tmt\x20\x20\x20\x20\x20\x20\x20\x20\x20JOIN\x20tools_tags\x20tt\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20tmt.name\x20=\x20tt.name;'),_0xf09e0[_0x511e27(0x1ca)](_0x213262);});},'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 9d057a5..15c1c4b 100644 --- a/server/migrations/2.0.66.js +++ b/server/migrations/2.0.66.js @@ -1 +1 @@ -const a1109_0x100a=['TEXT','sequelize','final','users','catch','queryInterface','settings','Added\x20column\x20%s\x20to\x20%s','query','removeColumn','../config/logger','prototype','queueTransferTimeout','queueTransfer','addColumn','stringify','finally','mail_interactions','sequence','removeIndex','INTEGER','exports','agentTransfer','long','lastMsgBody','BOOLEAN','dropTable','\x20CHARSET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','enqueue','then','field','util','viber','tail','mail_accounts','renameColumn','inspect','info','splitSizeXlsx','cm_contacts','table\x20dropped\x20%s','addIndex','tools_schedules','bcc','migration','changeColumn','query\x20%s'];(function(_0x540d6b,_0x4ad13c){const _0x100af4=function(_0x4c3cdb){while(--_0x4c3cdb){_0x540d6b['push'](_0x540d6b['shift']());}};_0x100af4(++_0x4ad13c);}(a1109_0x100a,0xa6));const a1109_0x4c3c=function(_0x540d6b,_0x4ad13c){_0x540d6b=_0x540d6b-0xbc;let _0x100af4=a1109_0x100a[_0x540d6b];return _0x100af4;};const a1109_0x11e365=a1109_0x4c3c;'use strict';const util=require(a1109_0x11e365(0xc2)),logger=require(a1109_0x11e365(0xdc))(a1109_0x11e365(0xcf)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x3f1023){const _0x490767=a1109_0x11e365;this[_0x490767(0xc4)]=this[_0x490767(0xc4)]?this['tail'][_0x490767(0xe2)](_0x3f1023):_0x3f1023();};const Migration=function(_0x37a493){const _0x9377f2=a1109_0x11e365;this[_0x9377f2(0xd7)]=_0x37a493,this[_0x9377f2(0xe4)]=new Sequence();};Migration[a1109_0x11e365(0xdd)][a1109_0x11e365(0xd0)]=function(_0x10b57c,_0x5e65c3,_0x15cbb0){const _0x1dfb5b=a1109_0x11e365,_0x3e3b21=this;this['sequence'][_0x1dfb5b(0xbf)](function(){const _0x56ab6a=_0x1dfb5b;return _0x3e3b21[_0x56ab6a(0xd7)]['changeColumn'](_0x10b57c,_0x5e65c3,_0x15cbb0)[_0x56ab6a(0xc0)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5e65c3,_0x10b57c);})['catch'](function(_0xc730f8){const _0x1681b9=_0x56ab6a;logger[_0x1681b9(0xc8)](JSON['stringify'](_0xc730f8));});});},Migration['prototype'][a1109_0x11e365(0xe0)]=function(_0x41e169,_0x3eba93,_0x408ea3){const _0x3cc104=a1109_0x11e365,_0x33824f=this;this[_0x3cc104(0xe4)]['enqueue'](function(){const _0xb1369=_0x3cc104;return _0x33824f[_0xb1369(0xd7)]['addColumn'](_0x41e169,_0x3eba93,_0x408ea3)[_0xb1369(0xc0)](function(){const _0x4d45f4=_0xb1369;logger[_0x4d45f4(0xc8)](_0x4d45f4(0xd9),_0x3eba93,_0x41e169);})[_0xb1369(0xd6)](function(_0x41b460){const _0x3cc173=_0xb1369;logger[_0x3cc173(0xc8)](JSON[_0x3cc173(0xe1)](_0x41b460));});});},Migration[a1109_0x11e365(0xdd)][a1109_0x11e365(0xbd)]=function(_0x162fee){const _0x3ebd4c=a1109_0x11e365,_0x11ccc4=this;this[_0x3ebd4c(0xe4)][_0x3ebd4c(0xbf)](function(){const _0xb332a5=_0x3ebd4c;return _0x11ccc4[_0xb332a5(0xd7)]['dropTable'](_0x162fee,{'force':!![]})[_0xb332a5(0xc0)](function(){const _0x46d2ae=_0xb332a5;logger[_0x46d2ae(0xc8)](_0x46d2ae(0xcb),_0x162fee);})[_0xb332a5(0xd6)](function(_0x430bf3){const _0x322e57=_0xb332a5;logger[_0x322e57(0xc8)](JSON[_0x322e57(0xe1)](_0x430bf3));});});},Migration[a1109_0x11e365(0xdd)][a1109_0x11e365(0xcc)]=function(_0x56ca0f,_0x1f6c9b,_0x26e05e){const _0xe4587a=a1109_0x11e365,_0x9964ef=this;this['sequence'][_0xe4587a(0xbf)](function(){const _0x157f81=_0xe4587a;return _0x9964ef['queryInterface'][_0x157f81(0xcc)](_0x56ca0f,_0x1f6c9b,{'indexName':_0x26e05e})[_0x157f81(0xc0)](function(){const _0x13a67b=_0x157f81;logger[_0x13a67b(0xc8)]('addIndex\x20%s\x20%s\x20%s',_0x56ca0f,_0x1f6c9b['join'](','),_0x26e05e);})[_0x157f81(0xd6)](function(_0x281c28){const _0x4b69bb=_0x157f81;logger[_0x4b69bb(0xc8)](JSON['stringify'](_0x281c28));});});},Migration[a1109_0x11e365(0xdd)][a1109_0x11e365(0xe5)]=function(_0x1f4130,_0xeb2e6d){const _0x3bda83=a1109_0x11e365,_0xab3980=this;this[_0x3bda83(0xe4)][_0x3bda83(0xbf)](function(){const _0x4d26ac=_0x3bda83;return _0xab3980['queryInterface']['removeIndex'](_0x1f4130,_0xeb2e6d)[_0x4d26ac(0xc0)](function(){const _0x5f0e38=_0x4d26ac;logger[_0x5f0e38(0xc8)]('removeIndex\x20%s\x20%s',_0x1f4130,_0xeb2e6d);})[_0x4d26ac(0xd6)](function(_0x1151d9){const _0x4a461d=_0x4d26ac;logger[_0x4a461d(0xc8)](JSON[_0x4a461d(0xe1)](_0x1151d9));});});},Migration[a1109_0x11e365(0xdd)][a1109_0x11e365(0xda)]=function(_0x394cdd){const _0x14c7cf=a1109_0x11e365,_0xaadccc=this;this[_0x14c7cf(0xe4)][_0x14c7cf(0xbf)](function(){const _0x489294=_0x14c7cf;return _0xaadccc[_0x489294(0xd7)][_0x489294(0xd3)][_0x489294(0xda)](_0x394cdd)[_0x489294(0xc0)](function(){const _0x48809a=_0x489294;logger['info'](_0x48809a(0xd1),_0x394cdd);})[_0x489294(0xd6)](function(_0x4ff531){const _0x576940=_0x489294;logger['info'](JSON[_0x576940(0xe1)](_0x4ff531));});});},Migration['prototype'][a1109_0x11e365(0xdb)]=function(_0x31bac7,_0xd000f9){const _0x4c7290=a1109_0x11e365,_0xc7f08b=this;this[_0x4c7290(0xe4)][_0x4c7290(0xbf)](function(){const _0x41784e=_0x4c7290;return _0xc7f08b['queryInterface'][_0x41784e(0xdb)](_0x31bac7,_0xd000f9)['then'](function(){const _0x4983d0=_0x41784e;logger[_0x4983d0(0xc8)]('Removed\x20column\x20%s\x20from\x20%s',_0xd000f9,_0x31bac7);})[_0x41784e(0xd6)](function(_0x3abd20){const _0x341b96=_0x41784e;logger['info'](util[_0x341b96(0xc7)](_0x3abd20,{'showHidden':![],'depth':null}));});});},Migration[a1109_0x11e365(0xdd)][a1109_0x11e365(0xc6)]=function(_0xb81d04,_0x4e386c,_0x3267ed){const _0x54ab9d=this;this['sequence']['enqueue'](function(){const _0x79af7b=a1109_0x4c3c;return _0x54ab9d[_0x79af7b(0xd7)]['renameColumn'](_0xb81d04,_0x4e386c,_0x3267ed)[_0x79af7b(0xc0)](function(){const _0x2840ee=_0x79af7b;logger[_0x2840ee(0xc8)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4e386c,_0x3267ed,_0xb81d04);})[_0x79af7b(0xd6)](function(_0x43f4){const _0x4ac3d8=_0x79af7b;logger[_0x4ac3d8(0xc8)](util[_0x4ac3d8(0xc7)](_0x43f4,{'showHidden':![],'depth':null}));});});},Migration[a1109_0x11e365(0xdd)]['final']=function(_0x31767e){this['sequence']['enqueue'](function(){return _0x31767e();});},module[a1109_0x11e365(0xe7)]={'up':function(_0x4a2045,_0x4c99cd){return new Promise(function(_0x17dd78){const _0x3715ea=a1109_0x4c3c,_0x1fc42b=new Migration(_0x4a2045);_0x1fc42b['changeColumn']('analytics_report_fields',_0x3715ea(0xc1),{'type':_0x4c99cd[_0x3715ea(0xd2)]}),_0x1fc42b['addColumn'](_0x3715ea(0xcd),'cc',{'type':_0x4c99cd[_0x3715ea(0xd2)]}),_0x1fc42b[_0x3715ea(0xe0)]('tools_schedules',_0x3715ea(0xce),{'type':_0x4c99cd[_0x3715ea(0xd2)]}),_0x1fc42b['addColumn']('settings','split',{'type':_0x4c99cd[_0x3715ea(0xbc)],'defaultValue':!![]}),_0x1fc42b[_0x3715ea(0xe0)](_0x3715ea(0xd8),'splitSizeCsv',{'type':_0x4c99cd[_0x3715ea(0xe6)],'defaultValue':0x1388}),_0x1fc42b['addColumn'](_0x3715ea(0xd8),'splitSizePdf',{'type':_0x4c99cd[_0x3715ea(0xe6)],'defaultValue':0x3e8}),_0x1fc42b[_0x3715ea(0xe0)](_0x3715ea(0xd8),_0x3715ea(0xc9),{'type':_0x4c99cd[_0x3715ea(0xe6)],'defaultValue':0x1388}),_0x1fc42b[_0x3715ea(0xe0)](_0x3715ea(0xc5),_0x3715ea(0xdf),{'type':_0x4c99cd[_0x3715ea(0xbc)],'defaultValue':![]}),_0x1fc42b[_0x3715ea(0xe0)](_0x3715ea(0xc5),_0x3715ea(0xde),{'type':_0x4c99cd[_0x3715ea(0xe6)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x1fc42b[_0x3715ea(0xe0)]('mail_accounts',_0x3715ea(0xe8),{'type':_0x4c99cd['BOOLEAN'],'defaultValue':![]}),_0x1fc42b[_0x3715ea(0xe0)]('mail_accounts','agentTransferTimeout',{'type':_0x4c99cd[_0x3715ea(0xe6)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x1fc42b[_0x3715ea(0xe0)](_0x3715ea(0xd5),'phoneBarPrefixRequired',{'type':_0x4c99cd['BOOLEAN'],'defaultValue':![]}),_0x1fc42b['changeColumn'](_0x3715ea(0xe3),'subject',{'type':_0x4c99cd[_0x3715ea(0xd2)]('')+'\x20CHARSET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci'}),_0x1fc42b['changeColumn'](_0x3715ea(0xe3),_0x3715ea(0xea),{'type':_0x4c99cd['TEXT'](_0x3715ea(0xe9))+_0x3715ea(0xbe)}),_0x1fc42b['addColumn'](_0x3715ea(0xca),_0x3715ea(0xc3),{'type':_0x4c99cd['STRING']}),_0x1fc42b[_0x3715ea(0xd4)](_0x17dd78);});},'down':function(){}}; \ No newline at end of file +const a1109_0x29ec=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','field','agentTransfer','util','splitSizeXlsx','Removed\x20column\x20%s\x20from\x20%s','prototype','queueTransferTimeout','stringify','migration','mail_interactions','removeIndex\x20%s\x20%s','../config/logger','splitSizePdf','splitSizeCsv','viber','tail','lastMsgBody','queryInterface','inspect','agentTransferTimeout','info','\x20CHARSET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','settings','analytics_report_fields','addColumn','query\x20%s','users','BOOLEAN','join','mail_accounts','then','sequence','cm_contacts','removeIndex','renameColumn','subject','exports','sequelize','Added\x20column\x20%s\x20to\x20%s','catch','table\x20dropped\x20%s','tools_schedules','final','enqueue','removeColumn','changeColumn','bcc','INTEGER','long','query','addIndex','TEXT','phoneBarPrefixRequired','dropTable'];(function(_0x1c6d84,_0x33ca3d){const _0x29eccb=function(_0x35ce37){while(--_0x35ce37){_0x1c6d84['push'](_0x1c6d84['shift']());}};_0x29eccb(++_0x33ca3d);}(a1109_0x29ec,0xd8));const a1109_0x35ce=function(_0x1c6d84,_0x33ca3d){_0x1c6d84=_0x1c6d84-0x18f;let _0x29eccb=a1109_0x29ec[_0x1c6d84];return _0x29eccb;};const a1109_0x1d3d84=a1109_0x35ce;'use strict';const util=require(a1109_0x1d3d84(0x196)),logger=require(a1109_0x1d3d84(0x19f))(a1109_0x1d3d84(0x19c)),Sequence=function(){};Sequence[a1109_0x1d3d84(0x199)]['enqueue']=function(_0x3b46e0){const _0x575c36=a1109_0x1d3d84;this[_0x575c36(0x1a3)]=this[_0x575c36(0x1a3)]?this[_0x575c36(0x1a3)]['finally'](_0x3b46e0):_0x3b46e0();};const Migration=function(_0x587202){const _0x212172=a1109_0x1d3d84;this[_0x212172(0x1a5)]=_0x587202,this[_0x212172(0x1b3)]=new Sequence();};Migration[a1109_0x1d3d84(0x199)][a1109_0x1d3d84(0x1c1)]=function(_0x3bfe71,_0xdca18e,_0x46be17){const _0x890e25=a1109_0x1d3d84,_0x5404c5=this;this[_0x890e25(0x1b3)]['enqueue'](function(){const _0x329dd1=_0x890e25;return _0x5404c5[_0x329dd1(0x1a5)]['changeColumn'](_0x3bfe71,_0xdca18e,_0x46be17)[_0x329dd1(0x1b2)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xdca18e,_0x3bfe71);})[_0x329dd1(0x1bb)](function(_0x1c9876){const _0x33fdf1=_0x329dd1;logger[_0x33fdf1(0x1a8)](JSON[_0x33fdf1(0x19b)](_0x1c9876));});});},Migration[a1109_0x1d3d84(0x199)][a1109_0x1d3d84(0x1ac)]=function(_0x822965,_0x23ae7d,_0xc5171f){const _0x4212af=a1109_0x1d3d84,_0x4c2709=this;this['sequence'][_0x4212af(0x1bf)](function(){const _0x40a202=_0x4212af;return _0x4c2709[_0x40a202(0x1a5)][_0x40a202(0x1ac)](_0x822965,_0x23ae7d,_0xc5171f)[_0x40a202(0x1b2)](function(){const _0x10e07b=_0x40a202;logger[_0x10e07b(0x1a8)](_0x10e07b(0x1ba),_0x23ae7d,_0x822965);})[_0x40a202(0x1bb)](function(_0x2fc07a){const _0xaf0e3=_0x40a202;logger[_0xaf0e3(0x1a8)](JSON['stringify'](_0x2fc07a));});});},Migration['prototype'][a1109_0x1d3d84(0x192)]=function(_0x58e300){const _0x2f01c8=a1109_0x1d3d84,_0x2c999e=this;this[_0x2f01c8(0x1b3)][_0x2f01c8(0x1bf)](function(){const _0x15f905=_0x2f01c8;return _0x2c999e['queryInterface']['dropTable'](_0x58e300,{'force':!![]})['then'](function(){const _0x15b804=a1109_0x35ce;logger[_0x15b804(0x1a8)](_0x15b804(0x1bc),_0x58e300);})[_0x15f905(0x1bb)](function(_0x597da9){const _0x11c1de=_0x15f905;logger[_0x11c1de(0x1a8)](JSON[_0x11c1de(0x19b)](_0x597da9));});});},Migration[a1109_0x1d3d84(0x199)]['addIndex']=function(_0x4623d5,_0x22f70d,_0x273511){const _0x1585f6=a1109_0x1d3d84,_0x4911f1=this;this[_0x1585f6(0x1b3)][_0x1585f6(0x1bf)](function(){const _0x356694=_0x1585f6;return _0x4911f1[_0x356694(0x1a5)][_0x356694(0x18f)](_0x4623d5,_0x22f70d,{'indexName':_0x273511})['then'](function(){const _0x86627d=_0x356694;logger[_0x86627d(0x1a8)]('addIndex\x20%s\x20%s\x20%s',_0x4623d5,_0x22f70d[_0x86627d(0x1b0)](','),_0x273511);})[_0x356694(0x1bb)](function(_0x3dad15){const _0x9be772=_0x356694;logger[_0x9be772(0x1a8)](JSON[_0x9be772(0x19b)](_0x3dad15));});});},Migration[a1109_0x1d3d84(0x199)][a1109_0x1d3d84(0x1b5)]=function(_0xc80ab9,_0x3ca2c9){const _0x5389f6=a1109_0x1d3d84,_0x192f93=this;this[_0x5389f6(0x1b3)][_0x5389f6(0x1bf)](function(){const _0x12adb2=_0x5389f6;return _0x192f93[_0x12adb2(0x1a5)][_0x12adb2(0x1b5)](_0xc80ab9,_0x3ca2c9)[_0x12adb2(0x1b2)](function(){const _0x32cd4c=_0x12adb2;logger['info'](_0x32cd4c(0x19e),_0xc80ab9,_0x3ca2c9);})[_0x12adb2(0x1bb)](function(_0x26466e){logger['info'](JSON['stringify'](_0x26466e));});});},Migration[a1109_0x1d3d84(0x199)][a1109_0x1d3d84(0x1c5)]=function(_0x2f2a50){const _0x1640c0=a1109_0x1d3d84,_0x1aacec=this;this['sequence'][_0x1640c0(0x1bf)](function(){const _0x2da2b2=_0x1640c0;return _0x1aacec[_0x2da2b2(0x1a5)][_0x2da2b2(0x1b9)][_0x2da2b2(0x1c5)](_0x2f2a50)[_0x2da2b2(0x1b2)](function(){const _0x5d390f=_0x2da2b2;logger[_0x5d390f(0x1a8)](_0x5d390f(0x1ad),_0x2f2a50);})[_0x2da2b2(0x1bb)](function(_0x48193f){const _0x3f1df2=_0x2da2b2;logger[_0x3f1df2(0x1a8)](JSON['stringify'](_0x48193f));});});},Migration[a1109_0x1d3d84(0x199)][a1109_0x1d3d84(0x1c0)]=function(_0x129c4e,_0x25a9ff){const _0x1ef206=a1109_0x1d3d84,_0x5bf5cc=this;this[_0x1ef206(0x1b3)]['enqueue'](function(){const _0x34085f=_0x1ef206;return _0x5bf5cc[_0x34085f(0x1a5)][_0x34085f(0x1c0)](_0x129c4e,_0x25a9ff)[_0x34085f(0x1b2)](function(){const _0x3a2a83=_0x34085f;logger[_0x3a2a83(0x1a8)](_0x3a2a83(0x198),_0x25a9ff,_0x129c4e);})[_0x34085f(0x1bb)](function(_0x3dab84){const _0x47fb7d=_0x34085f;logger[_0x47fb7d(0x1a8)](util['inspect'](_0x3dab84,{'showHidden':![],'depth':null}));});});},Migration[a1109_0x1d3d84(0x199)]['renameColumn']=function(_0x54b798,_0x1dd6fa,_0x28a0c4){const _0x51b4c5=a1109_0x1d3d84,_0x3b645c=this;this[_0x51b4c5(0x1b3)][_0x51b4c5(0x1bf)](function(){const _0x5663d2=_0x51b4c5;return _0x3b645c[_0x5663d2(0x1a5)][_0x5663d2(0x1b6)](_0x54b798,_0x1dd6fa,_0x28a0c4)[_0x5663d2(0x1b2)](function(){const _0xb791cf=_0x5663d2;logger[_0xb791cf(0x1a8)](_0xb791cf(0x193),_0x1dd6fa,_0x28a0c4,_0x54b798);})[_0x5663d2(0x1bb)](function(_0x1da483){const _0x40f45e=_0x5663d2;logger[_0x40f45e(0x1a8)](util[_0x40f45e(0x1a6)](_0x1da483,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x542e4c){const _0x117aaa=a1109_0x1d3d84;this[_0x117aaa(0x1b3)][_0x117aaa(0x1bf)](function(){return _0x542e4c();});},module[a1109_0x1d3d84(0x1b8)]={'up':function(_0x2d6d70,_0x21485b){return new Promise(function(_0x1a2b7e){const _0x255f40=a1109_0x35ce,_0xe9967e=new Migration(_0x2d6d70);_0xe9967e['changeColumn'](_0x255f40(0x1ab),_0x255f40(0x194),{'type':_0x21485b[_0x255f40(0x190)]}),_0xe9967e[_0x255f40(0x1ac)](_0x255f40(0x1bd),'cc',{'type':_0x21485b[_0x255f40(0x190)]}),_0xe9967e[_0x255f40(0x1ac)]('tools_schedules',_0x255f40(0x1c2),{'type':_0x21485b['TEXT']}),_0xe9967e['addColumn'](_0x255f40(0x1aa),'split',{'type':_0x21485b[_0x255f40(0x1af)],'defaultValue':!![]}),_0xe9967e[_0x255f40(0x1ac)](_0x255f40(0x1aa),_0x255f40(0x1a1),{'type':_0x21485b[_0x255f40(0x1c3)],'defaultValue':0x1388}),_0xe9967e['addColumn']('settings',_0x255f40(0x1a0),{'type':_0x21485b[_0x255f40(0x1c3)],'defaultValue':0x3e8}),_0xe9967e[_0x255f40(0x1ac)]('settings',_0x255f40(0x197),{'type':_0x21485b[_0x255f40(0x1c3)],'defaultValue':0x1388}),_0xe9967e[_0x255f40(0x1ac)](_0x255f40(0x1b1),'queueTransfer',{'type':_0x21485b[_0x255f40(0x1af)],'defaultValue':![]}),_0xe9967e[_0x255f40(0x1ac)](_0x255f40(0x1b1),_0x255f40(0x19a),{'type':_0x21485b[_0x255f40(0x1c3)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0xe9967e['addColumn'](_0x255f40(0x1b1),_0x255f40(0x195),{'type':_0x21485b[_0x255f40(0x1af)],'defaultValue':![]}),_0xe9967e['addColumn'](_0x255f40(0x1b1),_0x255f40(0x1a7),{'type':_0x21485b[_0x255f40(0x1c3)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0xe9967e['addColumn'](_0x255f40(0x1ae),_0x255f40(0x191),{'type':_0x21485b[_0x255f40(0x1af)],'defaultValue':![]}),_0xe9967e[_0x255f40(0x1c1)](_0x255f40(0x19d),_0x255f40(0x1b7),{'type':_0x21485b[_0x255f40(0x190)]('')+_0x255f40(0x1a9)}),_0xe9967e[_0x255f40(0x1c1)](_0x255f40(0x19d),_0x255f40(0x1a4),{'type':_0x21485b['TEXT'](_0x255f40(0x1c4))+_0x255f40(0x1a9)}),_0xe9967e[_0x255f40(0x1ac)](_0x255f40(0x1b4),_0x255f40(0x1a2),{'type':_0x21485b['STRING']}),_0xe9967e[_0x255f40(0x1be)](_0x1a2b7e);});},'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 5b95323..4c30387 100644 --- a/server/migrations/2.0.67.js +++ b/server/migrations/2.0.67.js @@ -1 +1 @@ -const a1110_0x1bab=['util','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;','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','info','query','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;','sequelize','catch','removeIndex\x20%s\x20%s','long','finally','queryInterface','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;','query\x20%s','INSERT\x20INTO\x20user_has_chat_websites\x20(`UserId`,\x20`ChatWebsiteId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`ChatWebsiteId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20chat_websites\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;','tail','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','enqueue','then','TEXT','addColumn','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;','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;','inspect','originTo','prototype','migration','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','removeColumn','changeColumn','stringify','addIndex\x20%s\x20%s\x20%s','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;','exports','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;','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;','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;','../config/logger','addIndex','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;','dropTable','renameColumn','final'];(function(_0xb299f5,_0x362c07){const _0x1bab8d=function(_0x1b290f){while(--_0x1b290f){_0xb299f5['push'](_0xb299f5['shift']());}};_0x1bab8d(++_0x362c07);}(a1110_0x1bab,0x111));const a1110_0x1b29=function(_0xb299f5,_0x362c07){_0xb299f5=_0xb299f5-0x6a;let _0x1bab8d=a1110_0x1bab[_0xb299f5];return _0x1bab8d;};const a1110_0x378a7c=a1110_0x1b29;'use strict';const util=require(a1110_0x378a7c(0x73)),logger=require(a1110_0x378a7c(0x6d))(a1110_0x378a7c(0x8f)),Sequence=function(){};Sequence[a1110_0x378a7c(0x8e)]['enqueue']=function(_0x33e6ab){const _0x1c10e2=a1110_0x378a7c;this[_0x1c10e2(0x83)]=this[_0x1c10e2(0x83)]?this[_0x1c10e2(0x83)][_0x1c10e2(0x7e)](_0x33e6ab):_0x33e6ab();};const Migration=function(_0x2ecbfb){const _0x14dc67=a1110_0x378a7c;this[_0x14dc67(0x7f)]=_0x2ecbfb,this['sequence']=new Sequence();};Migration[a1110_0x378a7c(0x8e)][a1110_0x378a7c(0x93)]=function(_0xe69a70,_0x35809d,_0x4b6f67){const _0x332a6e=a1110_0x378a7c,_0x13f14e=this;this[_0x332a6e(0x91)][_0x332a6e(0x86)](function(){const _0x575fe5=_0x332a6e;return _0x13f14e[_0x575fe5(0x7f)]['changeColumn'](_0xe69a70,_0x35809d,_0x4b6f67)[_0x575fe5(0x87)](function(){const _0x358fb2=_0x575fe5;logger[_0x358fb2(0x77)](_0x358fb2(0x90),_0x35809d,_0xe69a70);})['catch'](function(_0x322582){const _0x30960c=_0x575fe5;logger[_0x30960c(0x77)](JSON['stringify'](_0x322582));});});},Migration[a1110_0x378a7c(0x8e)][a1110_0x378a7c(0x89)]=function(_0x5c0e21,_0x2d7bf3,_0x26083b){const _0x1afc4d=a1110_0x378a7c,_0x32e22b=this;this[_0x1afc4d(0x91)]['enqueue'](function(){const _0x25126=_0x1afc4d;return _0x32e22b[_0x25126(0x7f)][_0x25126(0x89)](_0x5c0e21,_0x2d7bf3,_0x26083b)[_0x25126(0x87)](function(){const _0x3cc74d=_0x25126;logger[_0x3cc74d(0x77)]('Added\x20column\x20%s\x20to\x20%s',_0x2d7bf3,_0x5c0e21);})['catch'](function(_0x40e40e){logger['info'](JSON['stringify'](_0x40e40e));});});},Migration['prototype'][a1110_0x378a7c(0x70)]=function(_0x45a57a){const _0x34d65a=a1110_0x378a7c,_0x3e2d11=this;this[_0x34d65a(0x91)][_0x34d65a(0x86)](function(){const _0xe01aa4=_0x34d65a;return _0x3e2d11[_0xe01aa4(0x7f)][_0xe01aa4(0x70)](_0x45a57a,{'force':!![]})[_0xe01aa4(0x87)](function(){const _0x1c0801=_0xe01aa4;logger[_0x1c0801(0x77)](_0x1c0801(0x85),_0x45a57a);})[_0xe01aa4(0x7b)](function(_0x43acf1){const _0x5c7162=_0xe01aa4;logger[_0x5c7162(0x77)](JSON['stringify'](_0x43acf1));});});},Migration[a1110_0x378a7c(0x8e)]['addIndex']=function(_0x1e7e54,_0x21f82d,_0x1c34a3){const _0x679de9=a1110_0x378a7c,_0x1c6979=this;this[_0x679de9(0x91)][_0x679de9(0x86)](function(){const _0x1040dc=_0x679de9;return _0x1c6979[_0x1040dc(0x7f)][_0x1040dc(0x6e)](_0x1e7e54,_0x21f82d,{'indexName':_0x1c34a3})[_0x1040dc(0x87)](function(){const _0x18a80a=_0x1040dc;logger['info'](_0x18a80a(0x95),_0x1e7e54,_0x21f82d[_0x18a80a(0x76)](','),_0x1c34a3);})[_0x1040dc(0x7b)](function(_0x41394c){const _0x5cda42=_0x1040dc;logger['info'](JSON[_0x5cda42(0x94)](_0x41394c));});});},Migration[a1110_0x378a7c(0x8e)]['removeIndex']=function(_0x39079c,_0x106b84){const _0x10a232=a1110_0x378a7c,_0x1a22cf=this;this['sequence'][_0x10a232(0x86)](function(){const _0x56dc36=_0x10a232;return _0x1a22cf['queryInterface']['removeIndex'](_0x39079c,_0x106b84)[_0x56dc36(0x87)](function(){const _0x2c80d3=_0x56dc36;logger[_0x2c80d3(0x77)](_0x2c80d3(0x7c),_0x39079c,_0x106b84);})[_0x56dc36(0x7b)](function(_0x28e42c){const _0x1dbea1=_0x56dc36;logger[_0x1dbea1(0x77)](JSON[_0x1dbea1(0x94)](_0x28e42c));});});},Migration[a1110_0x378a7c(0x8e)][a1110_0x378a7c(0x78)]=function(_0x3bc414){const _0x430419=a1110_0x378a7c,_0x50b2f8=this;this[_0x430419(0x91)][_0x430419(0x86)](function(){const _0x2119f1=_0x430419;return _0x50b2f8[_0x2119f1(0x7f)][_0x2119f1(0x7a)][_0x2119f1(0x78)](_0x3bc414)['then'](function(){const _0x2693d0=_0x2119f1;logger[_0x2693d0(0x77)](_0x2693d0(0x81),_0x3bc414);})[_0x2119f1(0x7b)](function(_0x2c95b0){const _0xfe056b=_0x2119f1;logger['info'](JSON[_0xfe056b(0x94)](_0x2c95b0));});});},Migration[a1110_0x378a7c(0x8e)][a1110_0x378a7c(0x92)]=function(_0x33efad,_0xc69e30){const _0x34378b=a1110_0x378a7c,_0x1b57fb=this;this[_0x34378b(0x91)]['enqueue'](function(){const _0x206553=_0x34378b;return _0x1b57fb[_0x206553(0x7f)][_0x206553(0x92)](_0x33efad,_0xc69e30)[_0x206553(0x87)](function(){const _0x46955d=_0x206553;logger[_0x46955d(0x77)](_0x46955d(0x84),_0xc69e30,_0x33efad);})['catch'](function(_0x4eaa39){const _0x37d5e1=_0x206553;logger[_0x37d5e1(0x77)](util[_0x37d5e1(0x8c)](_0x4eaa39,{'showHidden':![],'depth':null}));});});},Migration[a1110_0x378a7c(0x8e)][a1110_0x378a7c(0x71)]=function(_0x40add0,_0xcfade8,_0x539243){const _0x3fc2e1=a1110_0x378a7c,_0x5a97d7=this;this['sequence'][_0x3fc2e1(0x86)](function(){const _0x6290de=_0x3fc2e1;return _0x5a97d7[_0x6290de(0x7f)]['renameColumn'](_0x40add0,_0xcfade8,_0x539243)['then'](function(){const _0x20ac1b=_0x6290de;logger[_0x20ac1b(0x77)](_0x20ac1b(0x75),_0xcfade8,_0x539243,_0x40add0);})['catch'](function(_0x453227){const _0x2d8c05=_0x6290de;logger[_0x2d8c05(0x77)](util[_0x2d8c05(0x8c)](_0x453227,{'showHidden':![],'depth':null}));});});},Migration[a1110_0x378a7c(0x8e)][a1110_0x378a7c(0x72)]=function(_0x1956bb){const _0x35bc66=a1110_0x378a7c;this[_0x35bc66(0x91)][_0x35bc66(0x86)](function(){return _0x1956bb();});},module[a1110_0x378a7c(0x97)]={'up':function(_0x3a354a,_0x2fb363){return new Promise(function(_0x37b506){const _0x303a8b=a1110_0x1b29,_0x3fc064=new Migration(_0x3a354a),_0x16413a='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;';_0x3fc064[_0x303a8b(0x78)](_0x16413a),_0x3fc064[_0x303a8b(0x78)](_0x303a8b(0x6b)),_0x3fc064[_0x303a8b(0x78)]('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;'),_0x3fc064['query'](_0x303a8b(0x6f)),_0x3fc064[_0x303a8b(0x78)](_0x303a8b(0x8b)),_0x3fc064[_0x303a8b(0x78)](_0x303a8b(0x96)),_0x3fc064[_0x303a8b(0x78)](_0x303a8b(0x6a)),_0x3fc064[_0x303a8b(0x78)](_0x303a8b(0x74)),_0x3fc064[_0x303a8b(0x78)](_0x303a8b(0x82)),_0x3fc064[_0x303a8b(0x78)](_0x303a8b(0x98)),_0x3fc064[_0x303a8b(0x78)](_0x303a8b(0x79)),_0x3fc064[_0x303a8b(0x78)](_0x303a8b(0x6c)),_0x3fc064[_0x303a8b(0x78)](_0x303a8b(0x8a)),_0x3fc064[_0x303a8b(0x78)](_0x303a8b(0x80)),_0x3fc064[_0x303a8b(0x78)]('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;'),_0x3fc064[_0x303a8b(0x78)]('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;'),_0x3fc064[_0x303a8b(0x78)]('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;'),_0x3fc064[_0x303a8b(0x89)]('mail_messages',_0x303a8b(0x8d),{'type':_0x2fb363[_0x303a8b(0x88)](_0x303a8b(0x7d))}),_0x3fc064[_0x303a8b(0x89)]('mail_messages','originCc',{'type':_0x2fb363[_0x303a8b(0x88)]('long')}),_0x3fc064[_0x303a8b(0x72)](_0x37b506);});},'down':function(){}}; \ No newline at end of file +const a1110_0x9356=['CREATE\x20TABLE\x20`user_has_chat_websites`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`ChatWebsiteId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`ChatWebsiteId`,`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_chat_websites_ibfk_1`\x20FOREIGN\x20KEY\x20(`ChatWebsiteId`)\x20REFERENCES\x20`chat_websites`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_chat_websites_ibfk_2`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`,\x20`ListId`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20`name`,\x20`createdAt`,\x20`updatedAt`,\x20`ListId`\x20FROM\x20voice_dispositions;','table\x20dropped\x20%s','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;','mail_messages','tail','join','changeColumn','removeIndex\x20%s\x20%s','queryInterface','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;','removeIndex','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;','stringify','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;','Changed\x20column\x20%s\x20in\x20table\x20%s','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;','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;','catch','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;','originCc','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;','originTo','util','prototype','addColumn','TEXT','INSERT\x20INTO\x20user_has_mail_accounts\x20(`UserId`,\x20`MailAccountId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`MailAccountId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20mail_accounts\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;','INSERT\x20INTO\x20user_has_chat_websites\x20(`UserId`,\x20`ChatWebsiteId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`ChatWebsiteId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20chat_websites\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;','CREATE\x20TABLE\x20`user_has_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;','sequence','then','dropTable','inspect','finally','removeColumn','Added\x20column\x20%s\x20to\x20%s','addIndex','long','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;','renameColumn','query','final','enqueue','info','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;','addIndex\x20%s\x20%s\x20%s'];(function(_0x410806,_0x53d442){const _0x93561c=function(_0x26f56c){while(--_0x26f56c){_0x410806['push'](_0x410806['shift']());}};_0x93561c(++_0x53d442);}(a1110_0x9356,0xd1));const a1110_0x26f5=function(_0x410806,_0x53d442){_0x410806=_0x410806-0x1a7;let _0x93561c=a1110_0x9356[_0x410806];return _0x93561c;};const a1110_0x29dc52=a1110_0x26f5;'use strict';const util=require(a1110_0x29dc52(0x1a9)),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1110_0x29dc52(0x1aa)][a1110_0x29dc52(0x1bd)]=function(_0x59aacc){const _0x100c9e=a1110_0x29dc52;this[_0x100c9e(0x1c6)]=this[_0x100c9e(0x1c6)]?this['tail'][_0x100c9e(0x1b4)](_0x59aacc):_0x59aacc();};const Migration=function(_0x51f9f6){this['queryInterface']=_0x51f9f6,this['sequence']=new Sequence();};Migration['prototype'][a1110_0x29dc52(0x1c8)]=function(_0x4688ce,_0x4c37c0,_0x51c8e3){const _0x183e44=this;this['sequence']['enqueue'](function(){const _0x146952=a1110_0x26f5;return _0x183e44[_0x146952(0x1ca)][_0x146952(0x1c8)](_0x4688ce,_0x4c37c0,_0x51c8e3)[_0x146952(0x1b1)](function(){const _0x3bdab9=_0x146952;logger['info'](_0x3bdab9(0x1d0),_0x4c37c0,_0x4688ce);})[_0x146952(0x1d3)](function(_0x388d3a){const _0x3382db=_0x146952;logger[_0x3382db(0x1be)](JSON[_0x3382db(0x1ce)](_0x388d3a));});});},Migration[a1110_0x29dc52(0x1aa)]['addColumn']=function(_0x32a56a,_0x62ea52,_0x511e33){const _0x1bcf8d=a1110_0x29dc52,_0x509fa7=this;this['sequence'][_0x1bcf8d(0x1bd)](function(){const _0x513290=_0x1bcf8d;return _0x509fa7[_0x513290(0x1ca)][_0x513290(0x1ab)](_0x32a56a,_0x62ea52,_0x511e33)[_0x513290(0x1b1)](function(){const _0x2c6d5b=_0x513290;logger[_0x2c6d5b(0x1be)](_0x2c6d5b(0x1b6),_0x62ea52,_0x32a56a);})[_0x513290(0x1d3)](function(_0x309778){const _0x14c038=_0x513290;logger[_0x14c038(0x1be)](JSON[_0x14c038(0x1ce)](_0x309778));});});},Migration[a1110_0x29dc52(0x1aa)][a1110_0x29dc52(0x1b2)]=function(_0x18983d){const _0x4de82e=a1110_0x29dc52,_0x116f6e=this;this[_0x4de82e(0x1b0)][_0x4de82e(0x1bd)](function(){const _0x15825d=_0x4de82e;return _0x116f6e[_0x15825d(0x1ca)][_0x15825d(0x1b2)](_0x18983d,{'force':!![]})['then'](function(){const _0x34edce=_0x15825d;logger[_0x34edce(0x1be)](_0x34edce(0x1c3),_0x18983d);})[_0x15825d(0x1d3)](function(_0x5da9aa){const _0x229e2a=_0x15825d;logger[_0x229e2a(0x1be)](JSON[_0x229e2a(0x1ce)](_0x5da9aa));});});},Migration['prototype'][a1110_0x29dc52(0x1b7)]=function(_0x27fa34,_0xa5ea93,_0x58f10){const _0x25def2=this;this['sequence']['enqueue'](function(){const _0x25bc11=a1110_0x26f5;return _0x25def2['queryInterface'][_0x25bc11(0x1b7)](_0x27fa34,_0xa5ea93,{'indexName':_0x58f10})[_0x25bc11(0x1b1)](function(){const _0x45b8ef=_0x25bc11;logger['info'](_0x45b8ef(0x1c0),_0x27fa34,_0xa5ea93[_0x45b8ef(0x1c7)](','),_0x58f10);})[_0x25bc11(0x1d3)](function(_0x2a70d1){const _0x51512f=_0x25bc11;logger['info'](JSON[_0x51512f(0x1ce)](_0x2a70d1));});});},Migration[a1110_0x29dc52(0x1aa)][a1110_0x29dc52(0x1cc)]=function(_0x2b3854,_0x171574){const _0x1f560a=a1110_0x29dc52,_0x5d23c5=this;this[_0x1f560a(0x1b0)]['enqueue'](function(){const _0xfcd37c=_0x1f560a;return _0x5d23c5['queryInterface'][_0xfcd37c(0x1cc)](_0x2b3854,_0x171574)['then'](function(){const _0x52434b=_0xfcd37c;logger[_0x52434b(0x1be)](_0x52434b(0x1c9),_0x2b3854,_0x171574);})['catch'](function(_0x3b42d0){const _0xc1192e=_0xfcd37c;logger[_0xc1192e(0x1be)](JSON[_0xc1192e(0x1ce)](_0x3b42d0));});});},Migration[a1110_0x29dc52(0x1aa)][a1110_0x29dc52(0x1bb)]=function(_0x475d17){const _0x4ab14d=a1110_0x29dc52,_0x9ef302=this;this[_0x4ab14d(0x1b0)]['enqueue'](function(){const _0x2dcfac=_0x4ab14d;return _0x9ef302[_0x2dcfac(0x1ca)]['sequelize']['query'](_0x475d17)['then'](function(){logger['info']('query\x20%s',_0x475d17);})[_0x2dcfac(0x1d3)](function(_0x553c52){const _0x3bd2ca=_0x2dcfac;logger['info'](JSON[_0x3bd2ca(0x1ce)](_0x553c52));});});},Migration[a1110_0x29dc52(0x1aa)][a1110_0x29dc52(0x1b5)]=function(_0x58fa73,_0x446dde){const _0x2862d8=a1110_0x29dc52,_0x3d5042=this;this[_0x2862d8(0x1b0)][_0x2862d8(0x1bd)](function(){const _0x4b1cdc=_0x2862d8;return _0x3d5042['queryInterface']['removeColumn'](_0x58fa73,_0x446dde)['then'](function(){const _0x4052f5=a1110_0x26f5;logger[_0x4052f5(0x1be)]('Removed\x20column\x20%s\x20from\x20%s',_0x446dde,_0x58fa73);})[_0x4b1cdc(0x1d3)](function(_0x4f8975){const _0x28d993=_0x4b1cdc;logger[_0x28d993(0x1be)](util[_0x28d993(0x1b3)](_0x4f8975,{'showHidden':![],'depth':null}));});});},Migration[a1110_0x29dc52(0x1aa)][a1110_0x29dc52(0x1ba)]=function(_0x577614,_0x2ac160,_0x10930b){const _0x410df4=a1110_0x29dc52,_0xabfd06=this;this['sequence'][_0x410df4(0x1bd)](function(){const _0x5d9092=_0x410df4;return _0xabfd06[_0x5d9092(0x1ca)]['renameColumn'](_0x577614,_0x2ac160,_0x10930b)[_0x5d9092(0x1b1)](function(){const _0x8b217=_0x5d9092;logger[_0x8b217(0x1be)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2ac160,_0x10930b,_0x577614);})['catch'](function(_0x2d7f1f){const _0x41978b=_0x5d9092;logger['info'](util[_0x41978b(0x1b3)](_0x2d7f1f,{'showHidden':![],'depth':null}));});});},Migration[a1110_0x29dc52(0x1aa)][a1110_0x29dc52(0x1bc)]=function(_0x1a882e){const _0x4b4406=a1110_0x29dc52;this[_0x4b4406(0x1b0)][_0x4b4406(0x1bd)](function(){return _0x1a882e();});},module['exports']={'up':function(_0x578895,_0x9591f2){return new Promise(function(_0x807f51){const _0x31dc90=a1110_0x26f5,_0xf0da96=new Migration(_0x578895),_0x1d537e='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;';_0xf0da96[_0x31dc90(0x1bb)](_0x1d537e),_0xf0da96[_0x31dc90(0x1bb)](_0x31dc90(0x1d2)),_0xf0da96['query']('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;'),_0xf0da96[_0x31dc90(0x1bb)](_0x31dc90(0x1c4)),_0xf0da96[_0x31dc90(0x1bb)](_0x31dc90(0x1d4)),_0xf0da96[_0x31dc90(0x1bb)](_0x31dc90(0x1d1)),_0xf0da96[_0x31dc90(0x1bb)](_0x31dc90(0x1c2)),_0xf0da96[_0x31dc90(0x1bb)](_0x31dc90(0x1c1)),_0xf0da96[_0x31dc90(0x1bb)](_0x31dc90(0x1ae)),_0xf0da96[_0x31dc90(0x1bb)](_0x31dc90(0x1af)),_0xf0da96[_0x31dc90(0x1bb)](_0x31dc90(0x1ad)),_0xf0da96[_0x31dc90(0x1bb)](_0x31dc90(0x1b9)),_0xf0da96[_0x31dc90(0x1bb)](_0x31dc90(0x1bf)),_0xf0da96[_0x31dc90(0x1bb)](_0x31dc90(0x1cb)),_0xf0da96[_0x31dc90(0x1bb)](_0x31dc90(0x1cd)),_0xf0da96[_0x31dc90(0x1bb)](_0x31dc90(0x1a7)),_0xf0da96[_0x31dc90(0x1bb)](_0x31dc90(0x1cf)),_0xf0da96[_0x31dc90(0x1ab)](_0x31dc90(0x1c5),_0x31dc90(0x1a8),{'type':_0x9591f2[_0x31dc90(0x1ac)]('long')}),_0xf0da96[_0x31dc90(0x1ab)](_0x31dc90(0x1c5),_0x31dc90(0x1d5),{'type':_0x9591f2[_0x31dc90(0x1ac)](_0x31dc90(0x1b8))}),_0xf0da96[_0x31dc90(0x1bc)](_0x807f51);});},'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 ba7b0f7..2553652 100644 --- a/server/migrations/2.0.68.js +++ b/server/migrations/2.0.68.js @@ -1 +1 @@ -const a1111_0x194b=['sequence','enqueue','Removed\x20column\x20%s\x20from\x20%s','renameColumn','addIndex','info','finally','settings','tail','addIndex\x20%s\x20%s\x20%s','then','stringify','query','mapKey','inspect','final','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Sold\x27,\x20NOW(),\x20NOW())','STRING','catch','messagesAlignment','table\x20dropped\x20%s','queryInterface','addColumn','prototype','changeColumn','query\x20%s','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Not\x20Interested\x27,\x20NOW(),\x20NOW())','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','UPDATE\x20settings\x20SET\x20messagesAlignment=\x27alternate\x27','removeColumn','removeIndex','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Answer\x20Machine\x27,\x20NOW(),\x20NOW())','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Special\x27,\x20NOW(),\x20NOW())'];(function(_0x17c934,_0x6ff627){const _0x194b5d=function(_0x5b7055){while(--_0x5b7055){_0x17c934['push'](_0x17c934['shift']());}};_0x194b5d(++_0x6ff627);}(a1111_0x194b,0x131));const a1111_0x5b70=function(_0x17c934,_0x6ff627){_0x17c934=_0x17c934-0xb2;let _0x194b5d=a1111_0x194b[_0x17c934];return _0x194b5d;};const a1111_0x1f121b=a1111_0x5b70;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1111_0x1f121b(0xc1)]['enqueue']=function(_0x3f626d){const _0x4287fe=a1111_0x1f121b;this[_0x4287fe(0xb2)]=this[_0x4287fe(0xb2)]?this['tail'][_0x4287fe(0xd1)](_0x3f626d):_0x3f626d();};const Migration=function(_0x438e44){const _0x208819=a1111_0x1f121b;this[_0x208819(0xbf)]=_0x438e44,this['sequence']=new Sequence();};Migration[a1111_0x1f121b(0xc1)]['changeColumn']=function(_0x4e64c9,_0x1321b0,_0x39d590){const _0x22a769=this;this['sequence']['enqueue'](function(){const _0x2525c6=a1111_0x5b70;return _0x22a769[_0x2525c6(0xbf)][_0x2525c6(0xc2)](_0x4e64c9,_0x1321b0,_0x39d590)[_0x2525c6(0xb4)](function(){const _0x13ac3c=_0x2525c6;logger[_0x13ac3c(0xd0)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1321b0,_0x4e64c9);})[_0x2525c6(0xbc)](function(_0x2f9a9d){const _0x484520=_0x2525c6;logger[_0x484520(0xd0)](JSON[_0x484520(0xb5)](_0x2f9a9d));});});},Migration['prototype'][a1111_0x1f121b(0xc0)]=function(_0x59d87c,_0x94243,_0x3d3d2c){const _0x543fd5=a1111_0x1f121b,_0x3f0d7e=this;this[_0x543fd5(0xcb)]['enqueue'](function(){const _0x1f4de8=_0x543fd5;return _0x3f0d7e[_0x1f4de8(0xbf)][_0x1f4de8(0xc0)](_0x59d87c,_0x94243,_0x3d3d2c)[_0x1f4de8(0xb4)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x94243,_0x59d87c);})[_0x1f4de8(0xbc)](function(_0x235e9a){const _0x2d7ab0=_0x1f4de8;logger[_0x2d7ab0(0xd0)](JSON[_0x2d7ab0(0xb5)](_0x235e9a));});});},Migration[a1111_0x1f121b(0xc1)]['dropTable']=function(_0x5a1c8b){const _0x418910=a1111_0x1f121b,_0x2833e8=this;this[_0x418910(0xcb)]['enqueue'](function(){const _0x194586=_0x418910;return _0x2833e8[_0x194586(0xbf)]['dropTable'](_0x5a1c8b,{'force':!![]})[_0x194586(0xb4)](function(){const _0x506a9c=_0x194586;logger[_0x506a9c(0xd0)](_0x506a9c(0xbe),_0x5a1c8b);})[_0x194586(0xbc)](function(_0x58b8d8){const _0x2a7a93=_0x194586;logger[_0x2a7a93(0xd0)](JSON[_0x2a7a93(0xb5)](_0x58b8d8));});});},Migration[a1111_0x1f121b(0xc1)][a1111_0x1f121b(0xcf)]=function(_0x454a20,_0x50fbaa,_0x4b7746){const _0x5981e6=a1111_0x1f121b,_0x32287a=this;this['sequence'][_0x5981e6(0xcc)](function(){const _0x4dd607=_0x5981e6;return _0x32287a[_0x4dd607(0xbf)][_0x4dd607(0xcf)](_0x454a20,_0x50fbaa,{'indexName':_0x4b7746})[_0x4dd607(0xb4)](function(){const _0x2dc162=_0x4dd607;logger[_0x2dc162(0xd0)](_0x2dc162(0xb3),_0x454a20,_0x50fbaa['join'](','),_0x4b7746);})[_0x4dd607(0xbc)](function(_0xb57a5d){const _0x4cab38=_0x4dd607;logger[_0x4cab38(0xd0)](JSON[_0x4cab38(0xb5)](_0xb57a5d));});});},Migration[a1111_0x1f121b(0xc1)][a1111_0x1f121b(0xc8)]=function(_0xf230e9,_0x2b3a4e){const _0x9aa523=a1111_0x1f121b,_0x4c6829=this;this[_0x9aa523(0xcb)][_0x9aa523(0xcc)](function(){const _0x3be698=_0x9aa523;return _0x4c6829['queryInterface']['removeIndex'](_0xf230e9,_0x2b3a4e)[_0x3be698(0xb4)](function(){const _0x3e9285=_0x3be698;logger[_0x3e9285(0xd0)]('removeIndex\x20%s\x20%s',_0xf230e9,_0x2b3a4e);})[_0x3be698(0xbc)](function(_0x46bdb5){const _0x5a0e28=_0x3be698;logger['info'](JSON[_0x5a0e28(0xb5)](_0x46bdb5));});});},Migration['prototype']['query']=function(_0x31f940){const _0xb0d2c6=a1111_0x1f121b,_0x56114d=this;this[_0xb0d2c6(0xcb)]['enqueue'](function(){const _0x4b0040=_0xb0d2c6;return _0x56114d[_0x4b0040(0xbf)]['sequelize']['query'](_0x31f940)['then'](function(){const _0x160606=_0x4b0040;logger['info'](_0x160606(0xc3),_0x31f940);})[_0x4b0040(0xbc)](function(_0x49df04){const _0x419530=_0x4b0040;logger[_0x419530(0xd0)](JSON[_0x419530(0xb5)](_0x49df04));});});},Migration[a1111_0x1f121b(0xc1)][a1111_0x1f121b(0xc7)]=function(_0x3f19c7,_0x45298d){const _0x6cc1ad=a1111_0x1f121b,_0x1fe9a3=this;this[_0x6cc1ad(0xcb)]['enqueue'](function(){const _0x304734=_0x6cc1ad;return _0x1fe9a3[_0x304734(0xbf)][_0x304734(0xc7)](_0x3f19c7,_0x45298d)[_0x304734(0xb4)](function(){const _0x1cee7f=_0x304734;logger[_0x1cee7f(0xd0)](_0x1cee7f(0xcd),_0x45298d,_0x3f19c7);})[_0x304734(0xbc)](function(_0x49fcb3){const _0x37b08d=_0x304734;logger[_0x37b08d(0xd0)](util[_0x37b08d(0xb8)](_0x49fcb3,{'showHidden':![],'depth':null}));});});},Migration[a1111_0x1f121b(0xc1)]['renameColumn']=function(_0x40b13b,_0x4b6ff1,_0x273227){const _0x22eee2=a1111_0x1f121b,_0x545bf0=this;this[_0x22eee2(0xcb)][_0x22eee2(0xcc)](function(){const _0x3b2035=_0x22eee2;return _0x545bf0[_0x3b2035(0xbf)][_0x3b2035(0xce)](_0x40b13b,_0x4b6ff1,_0x273227)['then'](function(){const _0xd2c341=_0x3b2035;logger[_0xd2c341(0xd0)](_0xd2c341(0xc5),_0x4b6ff1,_0x273227,_0x40b13b);})[_0x3b2035(0xbc)](function(_0xe0b72e){const _0x17aafd=_0x3b2035;logger[_0x17aafd(0xd0)](util[_0x17aafd(0xb8)](_0xe0b72e,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x5601ce){const _0x305836=a1111_0x1f121b;this[_0x305836(0xcb)][_0x305836(0xcc)](function(){return _0x5601ce();});},module['exports']={'up':function(_0x3e4193,_0x5b46b){return new Promise(function(_0x564f2c){const _0x2263a9=a1111_0x5b70,_0xb2cc15=new Migration(_0x3e4193);_0xb2cc15['query']('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Fax\x27,\x20NOW(),\x20NOW())'),_0xb2cc15['query'](_0x2263a9(0xc9)),_0xb2cc15[_0x2263a9(0xb6)]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Interested\x27,\x20NOW(),\x20NOW())'),_0xb2cc15[_0x2263a9(0xb6)](_0x2263a9(0xc4)),_0xb2cc15[_0x2263a9(0xb6)](_0x2263a9(0xba)),_0xb2cc15[_0x2263a9(0xb6)](_0x2263a9(0xca)),_0xb2cc15[_0x2263a9(0xc0)]('openchannel_accounts',_0x2263a9(0xb7),{'type':_0x5b46b['STRING']}),_0xb2cc15[_0x2263a9(0xc0)]('chat_interactions','closeReason',{'type':_0x5b46b[_0x2263a9(0xbb)]}),_0xb2cc15['addColumn'](_0x2263a9(0xd2),_0x2263a9(0xbd),{'type':_0x5b46b['STRING']}),_0xb2cc15[_0x2263a9(0xb6)](_0x2263a9(0xc6)),_0xb2cc15[_0x2263a9(0xb9)](_0x564f2c);});},'down':function(){}}; \ No newline at end of file +const a1111_0x5568=['dropTable','catch','inspect','sequence','exports','then','finally','removeIndex\x20%s\x20%s','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Answer\x20Machine\x27,\x20NOW(),\x20NOW())','closeReason','prototype','messagesAlignment','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','sequelize','settings','changeColumn','removeIndex','chat_interactions','queryInterface','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Sold\x27,\x20NOW(),\x20NOW())','addIndex','renameColumn','util','info','enqueue','removeColumn','join','STRING','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Special\x27,\x20NOW(),\x20NOW())','../config/logger','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Not\x20Interested\x27,\x20NOW(),\x20NOW())','final','tail','query','UPDATE\x20settings\x20SET\x20messagesAlignment=\x27alternate\x27'];(function(_0x26c9fb,_0x5b6e69){const _0x55688c=function(_0x3e8b2c){while(--_0x3e8b2c){_0x26c9fb['push'](_0x26c9fb['shift']());}};_0x55688c(++_0x5b6e69);}(a1111_0x5568,0xde));const a1111_0x3e8b=function(_0x26c9fb,_0x5b6e69){_0x26c9fb=_0x26c9fb-0x1f3;let _0x55688c=a1111_0x5568[_0x26c9fb];return _0x55688c;};const a1111_0x335e49=a1111_0x3e8b;'use strict';const util=require(a1111_0x335e49(0x219)),logger=require(a1111_0x335e49(0x1f9))('migration'),Sequence=function(){};Sequence[a1111_0x335e49(0x20b)][a1111_0x335e49(0x1f4)]=function(_0x15e2ec){const _0x11a0fc=a1111_0x335e49;this[_0x11a0fc(0x1fc)]=this['tail']?this['tail'][_0x11a0fc(0x205)](_0x15e2ec):_0x15e2ec();};const Migration=function(_0x2c0e79){const _0x2650cc=a1111_0x335e49;this['queryInterface']=_0x2c0e79,this[_0x2650cc(0x202)]=new Sequence();};Migration[a1111_0x335e49(0x20b)][a1111_0x335e49(0x212)]=function(_0x46ce7f,_0x11414c,_0x5910a7){const _0x4afe2c=a1111_0x335e49,_0x2b617e=this;this['sequence'][_0x4afe2c(0x1f4)](function(){const _0x17fc2c=_0x4afe2c;return _0x2b617e['queryInterface'][_0x17fc2c(0x212)](_0x46ce7f,_0x11414c,_0x5910a7)[_0x17fc2c(0x204)](function(){const _0x21759d=_0x17fc2c;logger[_0x21759d(0x1f3)](_0x21759d(0x208),_0x11414c,_0x46ce7f);})[_0x17fc2c(0x200)](function(_0x558375){const _0x1be103=_0x17fc2c;logger['info'](JSON[_0x1be103(0x207)](_0x558375));});});},Migration['prototype']['addColumn']=function(_0x4f5b5a,_0x2eb8e1,_0x4fc5f4){const _0x4b184d=a1111_0x335e49,_0x3750b9=this;this[_0x4b184d(0x202)][_0x4b184d(0x1f4)](function(){const _0x1c811e=_0x4b184d;return _0x3750b9['queryInterface'][_0x1c811e(0x20f)](_0x4f5b5a,_0x2eb8e1,_0x4fc5f4)[_0x1c811e(0x204)](function(){const _0x113a67=_0x1c811e;logger[_0x113a67(0x1f3)](_0x113a67(0x20d),_0x2eb8e1,_0x4f5b5a);})[_0x1c811e(0x200)](function(_0x3e72d1){const _0x5a3b01=_0x1c811e;logger[_0x5a3b01(0x1f3)](JSON['stringify'](_0x3e72d1));});});},Migration[a1111_0x335e49(0x20b)][a1111_0x335e49(0x1ff)]=function(_0x3b77e5){const _0x14eea1=a1111_0x335e49,_0x504df2=this;this['sequence'][_0x14eea1(0x1f4)](function(){const _0x3d3555=_0x14eea1;return _0x504df2[_0x3d3555(0x215)]['dropTable'](_0x3b77e5,{'force':!![]})['then'](function(){const _0x19cd33=_0x3d3555;logger[_0x19cd33(0x1f3)]('table\x20dropped\x20%s',_0x3b77e5);})[_0x3d3555(0x200)](function(_0x488d9f){const _0x22d614=_0x3d3555;logger[_0x22d614(0x1f3)](JSON[_0x22d614(0x207)](_0x488d9f));});});},Migration[a1111_0x335e49(0x20b)][a1111_0x335e49(0x217)]=function(_0x56b8b0,_0x27ad77,_0x3786a5){const _0x173b92=a1111_0x335e49,_0x2545f7=this;this[_0x173b92(0x202)][_0x173b92(0x1f4)](function(){const _0x2a271b=_0x173b92;return _0x2545f7[_0x2a271b(0x215)][_0x2a271b(0x217)](_0x56b8b0,_0x27ad77,{'indexName':_0x3786a5})['then'](function(){const _0x5f1daa=_0x2a271b;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x56b8b0,_0x27ad77[_0x5f1daa(0x1f6)](','),_0x3786a5);})[_0x2a271b(0x200)](function(_0x367df2){const _0x13e673=_0x2a271b;logger[_0x13e673(0x1f3)](JSON[_0x13e673(0x207)](_0x367df2));});});},Migration[a1111_0x335e49(0x20b)][a1111_0x335e49(0x213)]=function(_0x572b4f,_0x50e3a8){const _0x413691=a1111_0x335e49,_0x24c344=this;this[_0x413691(0x202)][_0x413691(0x1f4)](function(){const _0x1bea21=_0x413691;return _0x24c344['queryInterface'][_0x1bea21(0x213)](_0x572b4f,_0x50e3a8)['then'](function(){const _0x4fd239=_0x1bea21;logger[_0x4fd239(0x1f3)](_0x4fd239(0x206),_0x572b4f,_0x50e3a8);})[_0x1bea21(0x200)](function(_0x3771ff){const _0x4625a7=_0x1bea21;logger['info'](JSON[_0x4625a7(0x207)](_0x3771ff));});});},Migration[a1111_0x335e49(0x20b)][a1111_0x335e49(0x1fd)]=function(_0x144b2a){const _0x6545a7=a1111_0x335e49,_0x3d1d1c=this;this[_0x6545a7(0x202)][_0x6545a7(0x1f4)](function(){const _0x585a39=_0x6545a7;return _0x3d1d1c[_0x585a39(0x215)][_0x585a39(0x210)]['query'](_0x144b2a)[_0x585a39(0x204)](function(){const _0x6690e5=_0x585a39;logger[_0x6690e5(0x1f3)]('query\x20%s',_0x144b2a);})[_0x585a39(0x200)](function(_0x934486){const _0xc14c80=_0x585a39;logger['info'](JSON[_0xc14c80(0x207)](_0x934486));});});},Migration[a1111_0x335e49(0x20b)][a1111_0x335e49(0x1f5)]=function(_0x45398b,_0x3e8dc9){const _0x206e2f=a1111_0x335e49,_0x4494b2=this;this[_0x206e2f(0x202)][_0x206e2f(0x1f4)](function(){const _0x122e46=_0x206e2f;return _0x4494b2[_0x122e46(0x215)]['removeColumn'](_0x45398b,_0x3e8dc9)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x3e8dc9,_0x45398b);})[_0x122e46(0x200)](function(_0x404c1f){const _0x1cd460=_0x122e46;logger['info'](util[_0x1cd460(0x201)](_0x404c1f,{'showHidden':![],'depth':null}));});});},Migration[a1111_0x335e49(0x20b)][a1111_0x335e49(0x218)]=function(_0x33417e,_0x52f261,_0x477341){const _0x20c4bc=a1111_0x335e49,_0x2bcccd=this;this['sequence'][_0x20c4bc(0x1f4)](function(){const _0x3fc6bb=_0x20c4bc;return _0x2bcccd[_0x3fc6bb(0x215)][_0x3fc6bb(0x218)](_0x33417e,_0x52f261,_0x477341)[_0x3fc6bb(0x204)](function(){const _0x2e3803=_0x3fc6bb;logger[_0x2e3803(0x1f3)](_0x2e3803(0x20e),_0x52f261,_0x477341,_0x33417e);})[_0x3fc6bb(0x200)](function(_0x28bd2d){const _0x3b1bf8=_0x3fc6bb;logger[_0x3b1bf8(0x1f3)](util[_0x3b1bf8(0x201)](_0x28bd2d,{'showHidden':![],'depth':null}));});});},Migration[a1111_0x335e49(0x20b)][a1111_0x335e49(0x1fb)]=function(_0x35ad7e){const _0x444e31=a1111_0x335e49;this[_0x444e31(0x202)][_0x444e31(0x1f4)](function(){return _0x35ad7e();});},module[a1111_0x335e49(0x203)]={'up':function(_0xf29f7f,_0x66e67e){return new Promise(function(_0x47c333){const _0x1f819e=a1111_0x3e8b,_0x40989b=new Migration(_0xf29f7f);_0x40989b['query']('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Fax\x27,\x20NOW(),\x20NOW())'),_0x40989b['query'](_0x1f819e(0x209)),_0x40989b[_0x1f819e(0x1fd)]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Interested\x27,\x20NOW(),\x20NOW())'),_0x40989b[_0x1f819e(0x1fd)](_0x1f819e(0x1fa)),_0x40989b[_0x1f819e(0x1fd)](_0x1f819e(0x216)),_0x40989b['query'](_0x1f819e(0x1f8)),_0x40989b['addColumn']('openchannel_accounts','mapKey',{'type':_0x66e67e['STRING']}),_0x40989b[_0x1f819e(0x20f)](_0x1f819e(0x214),_0x1f819e(0x20a),{'type':_0x66e67e[_0x1f819e(0x1f7)]}),_0x40989b[_0x1f819e(0x20f)](_0x1f819e(0x211),_0x1f819e(0x20c),{'type':_0x66e67e[_0x1f819e(0x1f7)]}),_0x40989b[_0x1f819e(0x1fd)](_0x1f819e(0x1fe)),_0x40989b['final'](_0x47c333);});},'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 4acacaf..f5e3383 100644 --- a/server/migrations/2.0.69.js +++ b/server/migrations/2.0.69.js @@ -1 +1 @@ -const a1112_0x54ff=['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','then','addIndex\x20%s\x20%s\x20%s','enqueue','changeColumn','prototype','catch','sequelize','renameColumn','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)))','prefix','tools_sounds','sequence','query','report_jscripty_questions','tail','INTEGER','Removed\x20column\x20%s\x20from\x20%s','dropTable','queryInterface','info','#fafafa','chat_websites','stringify','voice_prefixes','removeColumn','cm_contacts','final','removeIndex','STRING','query\x20%s','DELETE\x20FROM\x20`user_has_voice_prefixes`','exports','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','addIndex','migration','report_jscripty_answers','addColumn','../config/logger','VoicePrefixId','answer','finally','messageFontSize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','VoiceExtensionId','inspect','TEXT','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'];(function(_0x45f804,_0x420269){const _0x54ff2d=function(_0x9d664f){while(--_0x9d664f){_0x45f804['push'](_0x45f804['shift']());}};_0x54ff2d(++_0x420269);}(a1112_0x54ff,0x108));const a1112_0x9d66=function(_0x45f804,_0x420269){_0x45f804=_0x45f804-0x14d;let _0x54ff2d=a1112_0x54ff[_0x45f804];return _0x54ff2d;};const a1112_0x2d0bbd=a1112_0x9d66;'use strict';const util=require('util'),logger=require(a1112_0x2d0bbd(0x161))(a1112_0x2d0bbd(0x15e)),Sequence=function(){};Sequence[a1112_0x2d0bbd(0x170)][a1112_0x2d0bbd(0x16e)]=function(_0x2c6b95){const _0x414911=a1112_0x2d0bbd;this[_0x414911(0x17a)]=this[_0x414911(0x17a)]?this[_0x414911(0x17a)][_0x414911(0x164)](_0x2c6b95):_0x2c6b95();};const Migration=function(_0x17e271){const _0x5d8f09=a1112_0x2d0bbd;this['queryInterface']=_0x17e271,this[_0x5d8f09(0x177)]=new Sequence();};Migration['prototype'][a1112_0x2d0bbd(0x16f)]=function(_0x826163,_0xf6ead5,_0x43830d){const _0x270e10=a1112_0x2d0bbd,_0x5404a6=this;this['sequence'][_0x270e10(0x16e)](function(){const _0xb8d1bf=_0x270e10;return _0x5404a6[_0xb8d1bf(0x14d)][_0xb8d1bf(0x16f)](_0x826163,_0xf6ead5,_0x43830d)[_0xb8d1bf(0x16c)](function(){const _0x336504=_0xb8d1bf;logger[_0x336504(0x14e)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xf6ead5,_0x826163);})[_0xb8d1bf(0x171)](function(_0x2bd454){const _0x30fb7e=_0xb8d1bf;logger['info'](JSON[_0x30fb7e(0x151)](_0x2bd454));});});},Migration[a1112_0x2d0bbd(0x170)][a1112_0x2d0bbd(0x160)]=function(_0x45f54f,_0xfdf431,_0x427ad2){const _0x16b106=a1112_0x2d0bbd,_0x32b820=this;this[_0x16b106(0x177)][_0x16b106(0x16e)](function(){const _0x438092=_0x16b106;return _0x32b820[_0x438092(0x14d)]['addColumn'](_0x45f54f,_0xfdf431,_0x427ad2)[_0x438092(0x16c)](function(){const _0x1dbebe=_0x438092;logger[_0x1dbebe(0x14e)](_0x1dbebe(0x15b),_0xfdf431,_0x45f54f);})[_0x438092(0x171)](function(_0x132ea6){const _0x5a27c6=_0x438092;logger['info'](JSON[_0x5a27c6(0x151)](_0x132ea6));});});},Migration[a1112_0x2d0bbd(0x170)][a1112_0x2d0bbd(0x17d)]=function(_0x1f62e5){const _0x302968=a1112_0x2d0bbd,_0x3cfb18=this;this[_0x302968(0x177)]['enqueue'](function(){const _0x97d2bc=_0x302968;return _0x3cfb18['queryInterface'][_0x97d2bc(0x17d)](_0x1f62e5,{'force':!![]})[_0x97d2bc(0x16c)](function(){const _0x2683d=_0x97d2bc;logger['info'](_0x2683d(0x15c),_0x1f62e5);})[_0x97d2bc(0x171)](function(_0x2468f0){const _0x2111d2=_0x97d2bc;logger[_0x2111d2(0x14e)](JSON[_0x2111d2(0x151)](_0x2468f0));});});},Migration[a1112_0x2d0bbd(0x170)][a1112_0x2d0bbd(0x15d)]=function(_0x17a107,_0x5292bb,_0x365416){const _0x26b526=a1112_0x2d0bbd,_0x542bf0=this;this[_0x26b526(0x177)][_0x26b526(0x16e)](function(){const _0x350328=_0x26b526;return _0x542bf0[_0x350328(0x14d)][_0x350328(0x15d)](_0x17a107,_0x5292bb,{'indexName':_0x365416})['then'](function(){const _0x3238a5=_0x350328;logger[_0x3238a5(0x14e)](_0x3238a5(0x16d),_0x17a107,_0x5292bb['join'](','),_0x365416);})[_0x350328(0x171)](function(_0x1e3d12){const _0x9852eb=_0x350328;logger['info'](JSON[_0x9852eb(0x151)](_0x1e3d12));});});},Migration[a1112_0x2d0bbd(0x170)][a1112_0x2d0bbd(0x156)]=function(_0x31ac82,_0x26049e){const _0x3ebac4=a1112_0x2d0bbd,_0x42f069=this;this[_0x3ebac4(0x177)][_0x3ebac4(0x16e)](function(){const _0x7890e6=_0x3ebac4;return _0x42f069[_0x7890e6(0x14d)][_0x7890e6(0x156)](_0x31ac82,_0x26049e)[_0x7890e6(0x16c)](function(){const _0x31fffe=_0x7890e6;logger[_0x31fffe(0x14e)]('removeIndex\x20%s\x20%s',_0x31ac82,_0x26049e);})[_0x7890e6(0x171)](function(_0x4e8791){const _0x1c45d3=_0x7890e6;logger[_0x1c45d3(0x14e)](JSON[_0x1c45d3(0x151)](_0x4e8791));});});},Migration['prototype'][a1112_0x2d0bbd(0x178)]=function(_0x1175da){const _0x266c5a=a1112_0x2d0bbd,_0x11cc80=this;this[_0x266c5a(0x177)][_0x266c5a(0x16e)](function(){const _0x1c132c=_0x266c5a;return _0x11cc80[_0x1c132c(0x14d)][_0x1c132c(0x172)][_0x1c132c(0x178)](_0x1175da)['then'](function(){const _0x31db0b=_0x1c132c;logger[_0x31db0b(0x14e)](_0x31db0b(0x158),_0x1175da);})['catch'](function(_0x4b6807){const _0x3e9e27=_0x1c132c;logger[_0x3e9e27(0x14e)](JSON[_0x3e9e27(0x151)](_0x4b6807));});});},Migration[a1112_0x2d0bbd(0x170)][a1112_0x2d0bbd(0x153)]=function(_0x3c7cc0,_0x987a07){const _0x39e383=a1112_0x2d0bbd,_0x28780d=this;this[_0x39e383(0x177)][_0x39e383(0x16e)](function(){const _0x46cbd7=_0x39e383;return _0x28780d[_0x46cbd7(0x14d)]['removeColumn'](_0x3c7cc0,_0x987a07)[_0x46cbd7(0x16c)](function(){const _0x335542=_0x46cbd7;logger[_0x335542(0x14e)](_0x335542(0x17c),_0x987a07,_0x3c7cc0);})['catch'](function(_0x5f0b68){const _0x1cc6fe=_0x46cbd7;logger['info'](util[_0x1cc6fe(0x168)](_0x5f0b68,{'showHidden':![],'depth':null}));});});},Migration[a1112_0x2d0bbd(0x170)][a1112_0x2d0bbd(0x173)]=function(_0x102827,_0x301487,_0x4f563b){const _0x9f1a2e=a1112_0x2d0bbd,_0x38d2cd=this;this[_0x9f1a2e(0x177)]['enqueue'](function(){const _0x30eb9c=_0x9f1a2e;return _0x38d2cd[_0x30eb9c(0x14d)][_0x30eb9c(0x173)](_0x102827,_0x301487,_0x4f563b)[_0x30eb9c(0x16c)](function(){const _0x2a40e=_0x30eb9c;logger[_0x2a40e(0x14e)](_0x2a40e(0x166),_0x301487,_0x4f563b,_0x102827);})[_0x30eb9c(0x171)](function(_0x26b3e8){const _0x5aaa09=_0x30eb9c;logger[_0x5aaa09(0x14e)](util[_0x5aaa09(0x168)](_0x26b3e8,{'showHidden':![],'depth':null}));});});},Migration[a1112_0x2d0bbd(0x170)][a1112_0x2d0bbd(0x155)]=function(_0x53fc91){const _0x3d26bf=a1112_0x2d0bbd;this[_0x3d26bf(0x177)][_0x3d26bf(0x16e)](function(){return _0x53fc91();});},module[a1112_0x2d0bbd(0x15a)]={'up':function(_0x1985bc,_0x1c2aa2){return new Promise(function(_0x570f4e){const _0x253d0c=a1112_0x9d66,_0x3df649=new Migration(_0x1985bc);_0x3df649[_0x253d0c(0x16f)](_0x253d0c(0x15f),'answer',{'type':_0x1c2aa2[_0x253d0c(0x169)]('long')}),_0x3df649['changeColumn'](_0x253d0c(0x179),_0x253d0c(0x163),{'type':_0x1c2aa2['TEXT']('long')}),_0x3df649[_0x253d0c(0x178)](_0x253d0c(0x174)),_0x3df649[_0x253d0c(0x16f)](_0x253d0c(0x176),'name',{'type':_0x1c2aa2[_0x253d0c(0x157)],'unique':!![],'allowNull':![]}),_0x3df649[_0x253d0c(0x160)]('chat_websites',_0x253d0c(0x165),{'type':_0x1c2aa2[_0x253d0c(0x17b)],'defaultValue':0xc}),_0x3df649[_0x253d0c(0x160)](_0x253d0c(0x150),'backgroundColor',{'type':_0x1c2aa2[_0x253d0c(0x157)],'allowNull':![],'defaultValue':_0x253d0c(0x14f),'validate':{'notEmpty':!![]}}),_0x3df649[_0x253d0c(0x160)](_0x253d0c(0x154),'line',{'type':_0x1c2aa2[_0x253d0c(0x157)]}),_0x3df649[_0x253d0c(0x178)]('DELETE\x20FROM\x20`voice_prefixes`'),_0x3df649[_0x253d0c(0x178)](_0x253d0c(0x159)),_0x3df649['removeIndex'](_0x253d0c(0x152),_0x253d0c(0x175)),_0x3df649[_0x253d0c(0x153)](_0x253d0c(0x152),_0x253d0c(0x175)),_0x3df649[_0x253d0c(0x160)](_0x253d0c(0x152),'callerIdAll',{'type':_0x1c2aa2[_0x253d0c(0x157)]}),_0x3df649[_0x253d0c(0x160)]('voice_prefixes',_0x253d0c(0x167),{'type':_0x1c2aa2[_0x253d0c(0x17b)]}),_0x3df649['addColumn']('voice_extensions',_0x253d0c(0x162),{'type':_0x1c2aa2[_0x253d0c(0x17b)]}),_0x3df649['query'](_0x253d0c(0x16a)),_0x3df649['query'](_0x253d0c(0x16b)),_0x3df649[_0x253d0c(0x160)]('report_call',_0x253d0c(0x175),{'type':_0x1c2aa2[_0x253d0c(0x157)]}),_0x3df649[_0x253d0c(0x155)](_0x570f4e);});},'down':function(){}}; \ No newline at end of file +const a1112_0x4d0b=['info','chat_websites','queryInterface','sequelize','tail','VoiceExtensionId','changeColumn','then','addColumn','line','answer','migration','voice_prefixes','util','finally','STRING','name','query','messageFontSize','#fafafa','inspect','enqueue','report_jscripty_questions','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','removeIndex','../config/logger','prototype','TEXT','long','report_call','renameColumn','addIndex','INTEGER','removeIndex\x20%s\x20%s','stringify','dropTable','removeColumn','voice_extensions','backgroundColor','catch','prefix','sequence','VoicePrefixId'];(function(_0x2221a0,_0x57e05f){const _0x4d0b04=function(_0x36bde8){while(--_0x36bde8){_0x2221a0['push'](_0x2221a0['shift']());}};_0x4d0b04(++_0x57e05f);}(a1112_0x4d0b,0x1b7));const a1112_0x36bd=function(_0x2221a0,_0x57e05f){_0x2221a0=_0x2221a0-0x17b;let _0x4d0b04=a1112_0x4d0b[_0x2221a0];return _0x4d0b04;};const a1112_0x3a8b97=a1112_0x36bd;'use strict';const util=require(a1112_0x3a8b97(0x193)),logger=require(a1112_0x3a8b97(0x1a1))(a1112_0x3a8b97(0x191)),Sequence=function(){};Sequence[a1112_0x3a8b97(0x1a2)]['enqueue']=function(_0x50ba42){const _0x2fa2f2=a1112_0x3a8b97;this[_0x2fa2f2(0x18a)]=this['tail']?this[_0x2fa2f2(0x18a)][_0x2fa2f2(0x194)](_0x50ba42):_0x50ba42();};const Migration=function(_0x3bf5a0){this['queryInterface']=_0x3bf5a0,this['sequence']=new Sequence();};Migration['prototype'][a1112_0x3a8b97(0x18c)]=function(_0x29b69e,_0x1fad0c,_0x55cff8){const _0x1a76f2=a1112_0x3a8b97,_0x12222b=this;this[_0x1a76f2(0x184)][_0x1a76f2(0x19b)](function(){const _0x4ad0b4=_0x1a76f2;return _0x12222b[_0x4ad0b4(0x188)]['changeColumn'](_0x29b69e,_0x1fad0c,_0x55cff8)[_0x4ad0b4(0x18d)](function(){const _0x50516a=_0x4ad0b4;logger['info'](_0x50516a(0x19e),_0x1fad0c,_0x29b69e);})[_0x4ad0b4(0x182)](function(_0x4005da){const _0x1054ad=_0x4ad0b4;logger[_0x1054ad(0x186)](JSON[_0x1054ad(0x17d)](_0x4005da));});});},Migration[a1112_0x3a8b97(0x1a2)][a1112_0x3a8b97(0x18e)]=function(_0x16e383,_0x43e0b4,_0x28497d){const _0x5af160=a1112_0x3a8b97,_0x2ae87b=this;this[_0x5af160(0x184)][_0x5af160(0x19b)](function(){const _0x46ff3a=_0x5af160;return _0x2ae87b[_0x46ff3a(0x188)][_0x46ff3a(0x18e)](_0x16e383,_0x43e0b4,_0x28497d)['then'](function(){const _0x5f3841=_0x46ff3a;logger[_0x5f3841(0x186)](_0x5f3841(0x19f),_0x43e0b4,_0x16e383);})['catch'](function(_0x32f8b5){const _0x363a9a=_0x46ff3a;logger[_0x363a9a(0x186)](JSON['stringify'](_0x32f8b5));});});},Migration[a1112_0x3a8b97(0x1a2)][a1112_0x3a8b97(0x17e)]=function(_0x25d055){const _0x209c6b=a1112_0x3a8b97,_0x51f1d7=this;this[_0x209c6b(0x184)][_0x209c6b(0x19b)](function(){const _0x360ac3=_0x209c6b;return _0x51f1d7[_0x360ac3(0x188)][_0x360ac3(0x17e)](_0x25d055,{'force':!![]})['then'](function(){const _0x7ce40f=_0x360ac3;logger[_0x7ce40f(0x186)]('table\x20dropped\x20%s',_0x25d055);})[_0x360ac3(0x182)](function(_0x1cc96d){logger['info'](JSON['stringify'](_0x1cc96d));});});},Migration[a1112_0x3a8b97(0x1a2)][a1112_0x3a8b97(0x1a7)]=function(_0x252357,_0xea7519,_0x4fd6bb){const _0x2c17e7=a1112_0x3a8b97,_0x5c4d63=this;this[_0x2c17e7(0x184)][_0x2c17e7(0x19b)](function(){const _0x23d309=_0x2c17e7;return _0x5c4d63['queryInterface'][_0x23d309(0x1a7)](_0x252357,_0xea7519,{'indexName':_0x4fd6bb})[_0x23d309(0x18d)](function(){const _0x3d3a95=_0x23d309;logger['info'](_0x3d3a95(0x19d),_0x252357,_0xea7519['join'](','),_0x4fd6bb);})[_0x23d309(0x182)](function(_0x58ce5d){const _0x28a6cd=_0x23d309;logger[_0x28a6cd(0x186)](JSON[_0x28a6cd(0x17d)](_0x58ce5d));});});},Migration[a1112_0x3a8b97(0x1a2)]['removeIndex']=function(_0xe9a072,_0x462623){const _0x29ac62=this;this['sequence']['enqueue'](function(){const _0x546464=a1112_0x36bd;return _0x29ac62[_0x546464(0x188)]['removeIndex'](_0xe9a072,_0x462623)[_0x546464(0x18d)](function(){const _0x42bd5b=_0x546464;logger['info'](_0x42bd5b(0x17c),_0xe9a072,_0x462623);})['catch'](function(_0x3ace9d){const _0x16bc0a=_0x546464;logger['info'](JSON[_0x16bc0a(0x17d)](_0x3ace9d));});});},Migration['prototype'][a1112_0x3a8b97(0x197)]=function(_0x58df33){const _0x13d1d5=a1112_0x3a8b97,_0x4fba89=this;this['sequence'][_0x13d1d5(0x19b)](function(){const _0x1fab54=_0x13d1d5;return _0x4fba89[_0x1fab54(0x188)][_0x1fab54(0x189)][_0x1fab54(0x197)](_0x58df33)[_0x1fab54(0x18d)](function(){const _0x212333=_0x1fab54;logger[_0x212333(0x186)]('query\x20%s',_0x58df33);})[_0x1fab54(0x182)](function(_0x37e226){const _0x4a7c17=_0x1fab54;logger[_0x4a7c17(0x186)](JSON[_0x4a7c17(0x17d)](_0x37e226));});});},Migration['prototype'][a1112_0x3a8b97(0x17f)]=function(_0x575f37,_0x599d78){const _0x53fcf7=a1112_0x3a8b97,_0x3ca4eb=this;this['sequence'][_0x53fcf7(0x19b)](function(){const _0x30f3c1=_0x53fcf7;return _0x3ca4eb[_0x30f3c1(0x188)][_0x30f3c1(0x17f)](_0x575f37,_0x599d78)[_0x30f3c1(0x18d)](function(){const _0x21d7e4=_0x30f3c1;logger[_0x21d7e4(0x186)]('Removed\x20column\x20%s\x20from\x20%s',_0x599d78,_0x575f37);})['catch'](function(_0x86ce5e){const _0x2d6de0=_0x30f3c1;logger[_0x2d6de0(0x186)](util[_0x2d6de0(0x19a)](_0x86ce5e,{'showHidden':![],'depth':null}));});});},Migration[a1112_0x3a8b97(0x1a2)][a1112_0x3a8b97(0x1a6)]=function(_0x8648ad,_0x5b010a,_0x3f63b3){const _0x52110c=a1112_0x3a8b97,_0x418148=this;this['sequence'][_0x52110c(0x19b)](function(){const _0x5d50fb=_0x52110c;return _0x418148[_0x5d50fb(0x188)][_0x5d50fb(0x1a6)](_0x8648ad,_0x5b010a,_0x3f63b3)[_0x5d50fb(0x18d)](function(){const _0x24adb0=_0x5d50fb;logger[_0x24adb0(0x186)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5b010a,_0x3f63b3,_0x8648ad);})[_0x5d50fb(0x182)](function(_0x3af43b){const _0x33b21d=_0x5d50fb;logger[_0x33b21d(0x186)](util[_0x33b21d(0x19a)](_0x3af43b,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x487a27){const _0x4eabb1=a1112_0x3a8b97;this[_0x4eabb1(0x184)][_0x4eabb1(0x19b)](function(){return _0x487a27();});},module['exports']={'up':function(_0x5a19c0,_0x175471){return new Promise(function(_0x5820bc){const _0x260409=a1112_0x36bd,_0x49db5f=new Migration(_0x5a19c0);_0x49db5f[_0x260409(0x18c)]('report_jscripty_answers',_0x260409(0x190),{'type':_0x175471[_0x260409(0x1a3)](_0x260409(0x1a4))}),_0x49db5f['changeColumn'](_0x260409(0x19c),_0x260409(0x190),{'type':_0x175471[_0x260409(0x1a3)]('long')}),_0x49db5f[_0x260409(0x197)]('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)))'),_0x49db5f['changeColumn']('tools_sounds',_0x260409(0x196),{'type':_0x175471[_0x260409(0x195)],'unique':!![],'allowNull':![]}),_0x49db5f[_0x260409(0x18e)](_0x260409(0x187),_0x260409(0x198),{'type':_0x175471[_0x260409(0x17b)],'defaultValue':0xc}),_0x49db5f[_0x260409(0x18e)](_0x260409(0x187),_0x260409(0x181),{'type':_0x175471['STRING'],'allowNull':![],'defaultValue':_0x260409(0x199),'validate':{'notEmpty':!![]}}),_0x49db5f[_0x260409(0x18e)]('cm_contacts',_0x260409(0x18f),{'type':_0x175471[_0x260409(0x195)]}),_0x49db5f[_0x260409(0x197)]('DELETE\x20FROM\x20`voice_prefixes`'),_0x49db5f[_0x260409(0x197)]('DELETE\x20FROM\x20`user_has_voice_prefixes`'),_0x49db5f[_0x260409(0x1a0)](_0x260409(0x192),_0x260409(0x183)),_0x49db5f[_0x260409(0x17f)](_0x260409(0x192),_0x260409(0x183)),_0x49db5f[_0x260409(0x18e)](_0x260409(0x192),'callerIdAll',{'type':_0x175471[_0x260409(0x195)]}),_0x49db5f[_0x260409(0x18e)]('voice_prefixes',_0x260409(0x18b),{'type':_0x175471[_0x260409(0x17b)]}),_0x49db5f['addColumn'](_0x260409(0x180),_0x260409(0x185),{'type':_0x175471[_0x260409(0x17b)]}),_0x49db5f['query']('ALTER\x20TABLE\x20`voice_extensions`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`voice_extensions_ibfk_7`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`VoicePrefixId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20voice_prefixes(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE'),_0x49db5f[_0x260409(0x197)]('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'),_0x49db5f[_0x260409(0x18e)](_0x260409(0x1a5),_0x260409(0x183),{'type':_0x175471['STRING']}),_0x49db5f['final'](_0x5820bc);});},'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 af869d7..cef5dbf 100644 --- a/server/migrations/2.0.70.js +++ b/server/migrations/2.0.70.js @@ -1 +1 @@ -const a1113_0x38dd=['Removed\x20column\x20%s\x20from\x20%s','migration','enqueue','table\x20dropped\x20%s','then','finally','prototype','sequelize','addIndex','final','info','queryInterface','catch','report_queue','ALTER\x20TABLE\x20int_vtiger_accounts\x20ENCRYPTION=\x27Y\x27;','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','dropTable','query\x20%s','util','renameColumn','../config/logger','addIndex\x20%s\x20%s\x20%s','sequence','changeColumn','removeIndex\x20%s\x20%s','inspect','removeColumn','INTEGER','query','mohtime','addColumn'];(function(_0x3664c6,_0x451cbb){const _0x38dd24=function(_0x4f5f07){while(--_0x4f5f07){_0x3664c6['push'](_0x3664c6['shift']());}};_0x38dd24(++_0x451cbb);}(a1113_0x38dd,0x105));const a1113_0x4f5f=function(_0x3664c6,_0x451cbb){_0x3664c6=_0x3664c6-0xeb;let _0x38dd24=a1113_0x38dd[_0x3664c6];return _0x38dd24;};const a1113_0x73a34d=a1113_0x4f5f;'use strict';const util=require(a1113_0x73a34d(0xf9)),logger=require(a1113_0x73a34d(0xfb))(a1113_0x73a34d(0x107)),Sequence=function(){};Sequence[a1113_0x73a34d(0xec)]['enqueue']=function(_0x4a5fc3){const _0x29f90d=a1113_0x73a34d;this['tail']=this['tail']?this['tail'][_0x29f90d(0xeb)](_0x4a5fc3):_0x4a5fc3();};const Migration=function(_0x1cd282){const _0x5de17d=a1113_0x73a34d;this['queryInterface']=_0x1cd282,this[_0x5de17d(0xfd)]=new Sequence();};Migration[a1113_0x73a34d(0xec)][a1113_0x73a34d(0xfe)]=function(_0x5aba4e,_0x2f0732,_0x31968){const _0x3bd334=a1113_0x73a34d,_0x132271=this;this[_0x3bd334(0xfd)]['enqueue'](function(){const _0x331ec1=_0x3bd334;return _0x132271[_0x331ec1(0xf1)][_0x331ec1(0xfe)](_0x5aba4e,_0x2f0732,_0x31968)[_0x331ec1(0x10a)](function(){const _0x9c18c=_0x331ec1;logger[_0x9c18c(0xf0)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2f0732,_0x5aba4e);})['catch'](function(_0x3635a0){const _0x42e6d2=_0x331ec1;logger[_0x42e6d2(0xf0)](JSON[_0x42e6d2(0xf6)](_0x3635a0));});});},Migration[a1113_0x73a34d(0xec)][a1113_0x73a34d(0x105)]=function(_0x5715ed,_0x15a89a,_0xa95728){const _0x209c37=a1113_0x73a34d,_0xcd4b10=this;this[_0x209c37(0xfd)][_0x209c37(0x108)](function(){const _0x4bbed3=_0x209c37;return _0xcd4b10[_0x4bbed3(0xf1)]['addColumn'](_0x5715ed,_0x15a89a,_0xa95728)[_0x4bbed3(0x10a)](function(){const _0x166883=_0x4bbed3;logger[_0x166883(0xf0)]('Added\x20column\x20%s\x20to\x20%s',_0x15a89a,_0x5715ed);})[_0x4bbed3(0xf2)](function(_0x3da61a){const _0xb29be1=_0x4bbed3;logger['info'](JSON[_0xb29be1(0xf6)](_0x3da61a));});});},Migration[a1113_0x73a34d(0xec)][a1113_0x73a34d(0xf7)]=function(_0x1cfd0f){const _0x3689ea=a1113_0x73a34d,_0x2c40ec=this;this[_0x3689ea(0xfd)][_0x3689ea(0x108)](function(){const _0x54c16c=_0x3689ea;return _0x2c40ec[_0x54c16c(0xf1)][_0x54c16c(0xf7)](_0x1cfd0f,{'force':!![]})[_0x54c16c(0x10a)](function(){const _0x382bf9=_0x54c16c;logger[_0x382bf9(0xf0)](_0x382bf9(0x109),_0x1cfd0f);})[_0x54c16c(0xf2)](function(_0xee0a58){const _0x57e7ef=_0x54c16c;logger[_0x57e7ef(0xf0)](JSON[_0x57e7ef(0xf6)](_0xee0a58));});});},Migration[a1113_0x73a34d(0xec)][a1113_0x73a34d(0xee)]=function(_0x3dafd6,_0x264a25,_0xc7e32c){const _0x99d5d2=a1113_0x73a34d,_0x34a509=this;this['sequence'][_0x99d5d2(0x108)](function(){const _0x3d813a=_0x99d5d2;return _0x34a509[_0x3d813a(0xf1)][_0x3d813a(0xee)](_0x3dafd6,_0x264a25,{'indexName':_0xc7e32c})[_0x3d813a(0x10a)](function(){const _0x48771c=_0x3d813a;logger[_0x48771c(0xf0)](_0x48771c(0xfc),_0x3dafd6,_0x264a25['join'](','),_0xc7e32c);})[_0x3d813a(0xf2)](function(_0x4ca81b){const _0x5e4893=_0x3d813a;logger['info'](JSON[_0x5e4893(0xf6)](_0x4ca81b));});});},Migration['prototype']['removeIndex']=function(_0x4f7b3a,_0x56d5f0){const _0x2f2f6b=a1113_0x73a34d,_0x3397f9=this;this[_0x2f2f6b(0xfd)][_0x2f2f6b(0x108)](function(){const _0xdd4c75=_0x2f2f6b;return _0x3397f9[_0xdd4c75(0xf1)]['removeIndex'](_0x4f7b3a,_0x56d5f0)[_0xdd4c75(0x10a)](function(){const _0x4c7038=_0xdd4c75;logger[_0x4c7038(0xf0)](_0x4c7038(0xff),_0x4f7b3a,_0x56d5f0);})[_0xdd4c75(0xf2)](function(_0x23002e){const _0x51efb5=_0xdd4c75;logger[_0x51efb5(0xf0)](JSON[_0x51efb5(0xf6)](_0x23002e));});});},Migration[a1113_0x73a34d(0xec)][a1113_0x73a34d(0x103)]=function(_0x23b14b){const _0x2e16f9=a1113_0x73a34d,_0x59f9bd=this;this[_0x2e16f9(0xfd)][_0x2e16f9(0x108)](function(){const _0x3612bf=_0x2e16f9;return _0x59f9bd['queryInterface'][_0x3612bf(0xed)][_0x3612bf(0x103)](_0x23b14b)[_0x3612bf(0x10a)](function(){const _0x344e2e=_0x3612bf;logger[_0x344e2e(0xf0)](_0x344e2e(0xf8),_0x23b14b);})[_0x3612bf(0xf2)](function(_0x47c40e){const _0x17507a=_0x3612bf;logger[_0x17507a(0xf0)](JSON[_0x17507a(0xf6)](_0x47c40e));});});},Migration[a1113_0x73a34d(0xec)][a1113_0x73a34d(0x101)]=function(_0x4ca806,_0xca2196){const _0x540fce=a1113_0x73a34d,_0x22ae6b=this;this['sequence'][_0x540fce(0x108)](function(){const _0x2ef0b1=_0x540fce;return _0x22ae6b[_0x2ef0b1(0xf1)]['removeColumn'](_0x4ca806,_0xca2196)['then'](function(){const _0x3abfd6=_0x2ef0b1;logger[_0x3abfd6(0xf0)](_0x3abfd6(0x106),_0xca2196,_0x4ca806);})[_0x2ef0b1(0xf2)](function(_0x1b91bd){const _0x59fc99=_0x2ef0b1;logger[_0x59fc99(0xf0)](util[_0x59fc99(0x100)](_0x1b91bd,{'showHidden':![],'depth':null}));});});},Migration[a1113_0x73a34d(0xec)][a1113_0x73a34d(0xfa)]=function(_0x217ccf,_0x1da3dc,_0x161a63){const _0x47a9c2=a1113_0x73a34d,_0x9fe116=this;this[_0x47a9c2(0xfd)][_0x47a9c2(0x108)](function(){const _0xca1871=_0x47a9c2;return _0x9fe116[_0xca1871(0xf1)][_0xca1871(0xfa)](_0x217ccf,_0x1da3dc,_0x161a63)[_0xca1871(0x10a)](function(){const _0x5443a1=_0xca1871;logger['info'](_0x5443a1(0xf5),_0x1da3dc,_0x161a63,_0x217ccf);})[_0xca1871(0xf2)](function(_0x33b5a1){const _0x18b27b=_0xca1871;logger[_0x18b27b(0xf0)](util['inspect'](_0x33b5a1,{'showHidden':![],'depth':null}));});});},Migration[a1113_0x73a34d(0xec)][a1113_0x73a34d(0xef)]=function(_0x2300fe){const _0xe40204=a1113_0x73a34d;this['sequence'][_0xe40204(0x108)](function(){return _0x2300fe();});},module['exports']={'up':function(_0x7ec3b9,_0x2bd88e){return new Promise(function(_0x31198b){const _0x58cb5c=a1113_0x4f5f,_0x467f37=new Migration(_0x7ec3b9);_0x467f37[_0x58cb5c(0x105)](_0x58cb5c(0xf3),_0x58cb5c(0x104),{'type':_0x2bd88e[_0x58cb5c(0x102)],'defaultValue':0x0}),_0x467f37[_0x58cb5c(0x105)]('report_call',_0x58cb5c(0x104),{'type':_0x2bd88e[_0x58cb5c(0x102)],'defaultValue':0x0}),_0x467f37[_0x58cb5c(0x103)](_0x58cb5c(0xf4)),_0x467f37[_0x58cb5c(0xef)](_0x31198b);});},'down':function(){}}; \ No newline at end of file +const a1113_0x57b0=['prototype','stringify','sequence','exports','table\x20dropped\x20%s','dropTable','finally','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','INTEGER','addIndex\x20%s\x20%s\x20%s','final','enqueue','info','removeIndex','sequelize','query\x20%s','mohtime','Removed\x20column\x20%s\x20from\x20%s','removeColumn','then','changeColumn','join','removeIndex\x20%s\x20%s','ALTER\x20TABLE\x20int_vtiger_accounts\x20ENCRYPTION=\x27Y\x27;','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','queryInterface','addColumn','Added\x20column\x20%s\x20to\x20%s','util','../config/logger','report_queue','query','inspect'];(function(_0x5c5299,_0x3a8bc8){const _0x57b0d5=function(_0x4c3006){while(--_0x4c3006){_0x5c5299['push'](_0x5c5299['shift']());}};_0x57b0d5(++_0x3a8bc8);}(a1113_0x57b0,0x1a0));const a1113_0x4c30=function(_0x5c5299,_0x3a8bc8){_0x5c5299=_0x5c5299-0xeb;let _0x57b0d5=a1113_0x57b0[_0x5c5299];return _0x57b0d5;};const a1113_0x2c1494=a1113_0x4c30;'use strict';const util=require(a1113_0x2c1494(0x10d)),logger=require(a1113_0x2c1494(0xeb))('migration'),Sequence=function(){};Sequence[a1113_0x2c1494(0xef)][a1113_0x2c1494(0xfb)]=function(_0x3ae159){const _0x48e2f4=a1113_0x2c1494;this[_0x48e2f4(0xf6)]=this[_0x48e2f4(0xf6)]?this[_0x48e2f4(0xf6)][_0x48e2f4(0xf5)](_0x3ae159):_0x3ae159();};const Migration=function(_0x1eaef6){const _0x363fd1=a1113_0x2c1494;this[_0x363fd1(0x10a)]=_0x1eaef6,this['sequence']=new Sequence();};Migration[a1113_0x2c1494(0xef)][a1113_0x2c1494(0x104)]=function(_0x5a0504,_0x11031e,_0x161844){const _0x421777=a1113_0x2c1494,_0x5c2680=this;this[_0x421777(0xf1)]['enqueue'](function(){const _0x5d9d01=_0x421777;return _0x5c2680[_0x5d9d01(0x10a)]['changeColumn'](_0x5a0504,_0x11031e,_0x161844)[_0x5d9d01(0x103)](function(){const _0x50ef45=_0x5d9d01;logger[_0x50ef45(0xfc)](_0x50ef45(0xf7),_0x11031e,_0x5a0504);})['catch'](function(_0x40a884){logger['info'](JSON['stringify'](_0x40a884));});});},Migration[a1113_0x2c1494(0xef)]['addColumn']=function(_0x11ca6f,_0x487891,_0x157e56){const _0x543cb7=a1113_0x2c1494,_0x5ae712=this;this[_0x543cb7(0xf1)][_0x543cb7(0xfb)](function(){const _0xee89b7=_0x543cb7;return _0x5ae712['queryInterface'][_0xee89b7(0x10b)](_0x11ca6f,_0x487891,_0x157e56)[_0xee89b7(0x103)](function(){const _0x4d4777=_0xee89b7;logger[_0x4d4777(0xfc)](_0x4d4777(0x10c),_0x487891,_0x11ca6f);})[_0xee89b7(0x109)](function(_0x598a5e){const _0x1e9903=_0xee89b7;logger['info'](JSON[_0x1e9903(0xf0)](_0x598a5e));});});},Migration['prototype'][a1113_0x2c1494(0xf4)]=function(_0x3d3b7c){const _0x1da82a=a1113_0x2c1494,_0x2b2f14=this;this[_0x1da82a(0xf1)][_0x1da82a(0xfb)](function(){const _0x158d0b=_0x1da82a;return _0x2b2f14['queryInterface'][_0x158d0b(0xf4)](_0x3d3b7c,{'force':!![]})['then'](function(){const _0x599ae7=_0x158d0b;logger['info'](_0x599ae7(0xf3),_0x3d3b7c);})[_0x158d0b(0x109)](function(_0x13c0cd){const _0x9fa954=_0x158d0b;logger[_0x9fa954(0xfc)](JSON[_0x9fa954(0xf0)](_0x13c0cd));});});},Migration[a1113_0x2c1494(0xef)]['addIndex']=function(_0x301420,_0x143fed,_0x1616ad){const _0xfd9f82=a1113_0x2c1494,_0x27947b=this;this['sequence'][_0xfd9f82(0xfb)](function(){const _0x54e43a=_0xfd9f82;return _0x27947b[_0x54e43a(0x10a)]['addIndex'](_0x301420,_0x143fed,{'indexName':_0x1616ad})['then'](function(){const _0x58e0f0=_0x54e43a;logger[_0x58e0f0(0xfc)](_0x58e0f0(0xf9),_0x301420,_0x143fed[_0x58e0f0(0x105)](','),_0x1616ad);})['catch'](function(_0x3e84e7){const _0x3602cb=_0x54e43a;logger['info'](JSON[_0x3602cb(0xf0)](_0x3e84e7));});});},Migration[a1113_0x2c1494(0xef)][a1113_0x2c1494(0xfd)]=function(_0x3319b2,_0x54dfae){const _0x4c983c=a1113_0x2c1494,_0x199b33=this;this['sequence'][_0x4c983c(0xfb)](function(){const _0x1f7b5d=_0x4c983c;return _0x199b33[_0x1f7b5d(0x10a)][_0x1f7b5d(0xfd)](_0x3319b2,_0x54dfae)[_0x1f7b5d(0x103)](function(){const _0x3bc23f=_0x1f7b5d;logger[_0x3bc23f(0xfc)](_0x3bc23f(0x106),_0x3319b2,_0x54dfae);})[_0x1f7b5d(0x109)](function(_0x8ddfb5){const _0x135416=_0x1f7b5d;logger[_0x135416(0xfc)](JSON[_0x135416(0xf0)](_0x8ddfb5));});});},Migration[a1113_0x2c1494(0xef)][a1113_0x2c1494(0xed)]=function(_0x3a5ece){const _0x3d5adb=this;this['sequence']['enqueue'](function(){const _0x3c5e92=a1113_0x4c30;return _0x3d5adb[_0x3c5e92(0x10a)][_0x3c5e92(0xfe)]['query'](_0x3a5ece)[_0x3c5e92(0x103)](function(){const _0x4cc7bb=_0x3c5e92;logger['info'](_0x4cc7bb(0xff),_0x3a5ece);})[_0x3c5e92(0x109)](function(_0x4621d0){const _0x212a07=_0x3c5e92;logger[_0x212a07(0xfc)](JSON[_0x212a07(0xf0)](_0x4621d0));});});},Migration[a1113_0x2c1494(0xef)][a1113_0x2c1494(0x102)]=function(_0x152c93,_0x54d5c1){const _0x1ab9e3=a1113_0x2c1494,_0x3007fc=this;this[_0x1ab9e3(0xf1)][_0x1ab9e3(0xfb)](function(){const _0x49a1dd=_0x1ab9e3;return _0x3007fc[_0x49a1dd(0x10a)][_0x49a1dd(0x102)](_0x152c93,_0x54d5c1)[_0x49a1dd(0x103)](function(){const _0x3f7dd3=_0x49a1dd;logger['info'](_0x3f7dd3(0x101),_0x54d5c1,_0x152c93);})[_0x49a1dd(0x109)](function(_0x2f3da3){const _0x26d956=_0x49a1dd;logger[_0x26d956(0xfc)](util[_0x26d956(0xee)](_0x2f3da3,{'showHidden':![],'depth':null}));});});},Migration[a1113_0x2c1494(0xef)]['renameColumn']=function(_0x101bb8,_0x2a5285,_0x55378b){const _0x118bb2=a1113_0x2c1494,_0x46ae1f=this;this[_0x118bb2(0xf1)][_0x118bb2(0xfb)](function(){const _0x2af8dc=_0x118bb2;return _0x46ae1f[_0x2af8dc(0x10a)]['renameColumn'](_0x101bb8,_0x2a5285,_0x55378b)[_0x2af8dc(0x103)](function(){const _0x170f56=_0x2af8dc;logger[_0x170f56(0xfc)](_0x170f56(0x108),_0x2a5285,_0x55378b,_0x101bb8);})[_0x2af8dc(0x109)](function(_0x5d4f2b){const _0x4a3e09=_0x2af8dc;logger[_0x4a3e09(0xfc)](util[_0x4a3e09(0xee)](_0x5d4f2b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1113_0x2c1494(0xfa)]=function(_0x5ea453){const _0x310e1a=a1113_0x2c1494;this[_0x310e1a(0xf1)][_0x310e1a(0xfb)](function(){return _0x5ea453();});},module[a1113_0x2c1494(0xf2)]={'up':function(_0x303cb2,_0x354858){return new Promise(function(_0x449a24){const _0x260e43=a1113_0x4c30,_0x1d1e06=new Migration(_0x303cb2);_0x1d1e06[_0x260e43(0x10b)](_0x260e43(0xec),_0x260e43(0x100),{'type':_0x354858[_0x260e43(0xf8)],'defaultValue':0x0}),_0x1d1e06['addColumn']('report_call',_0x260e43(0x100),{'type':_0x354858[_0x260e43(0xf8)],'defaultValue':0x0}),_0x1d1e06[_0x260e43(0xed)](_0x260e43(0x107)),_0x1d1e06['final'](_0x449a24);});},'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 665d4f7..1691a6c 100644 --- a/server/migrations/2.0.71.js +++ b/server/migrations/2.0.71.js @@ -1 +1 @@ -const a1114_0x3bdb=['exports','final','queueTransferTimeout','sequelize','agentTransfer','prototype','util','catch','removeIndex','Removed\x20column\x20%s\x20from\x20%s','join','chat_websites','tail','settings','BOOLEAN','INTEGER','sequence','removeIndex\x20%s\x20%s','migration','table\x20dropped\x20%s','changeColumn','then','license','phoneBarRememberMeEnabled','finally','enqueue','query','data7','fax_accounts','removeColumn','addIndex','chatLicenseExceeded','addColumn','openchannel_accounts','../config/logger','queryInterface','inspect','queueTransfer','chatTimeout','System','systemAvatar','Added\x20column\x20%s\x20to\x20%s','systemAlias','renameColumn','dropTable','agentTransferTimeout','stringify','STRING','info','addIndex\x20%s\x20%s\x20%s','sms_accounts','enableCustomerCheckmarks','TEXT'];(function(_0x1f8ef3,_0x20d776){const _0x3bdb91=function(_0xcfc417){while(--_0xcfc417){_0x1f8ef3['push'](_0x1f8ef3['shift']());}};_0x3bdb91(++_0x20d776);}(a1114_0x3bdb,0x70));const a1114_0xcfc4=function(_0x1f8ef3,_0x20d776){_0x1f8ef3=_0x1f8ef3-0x1aa;let _0x3bdb91=a1114_0x3bdb[_0x1f8ef3];return _0x3bdb91;};const a1114_0x17f2c2=a1114_0xcfc4;'use strict';const util=require(a1114_0x17f2c2(0x1aa)),logger=require(a1114_0x17f2c2(0x1c6))(a1114_0x17f2c2(0x1b6)),Sequence=function(){};Sequence[a1114_0x17f2c2(0x1de)][a1114_0x17f2c2(0x1bd)]=function(_0x2e1dee){const _0x46ef27=a1114_0x17f2c2;this[_0x46ef27(0x1b0)]=this['tail']?this['tail'][_0x46ef27(0x1bc)](_0x2e1dee):_0x2e1dee();};const Migration=function(_0x1131b1){this['queryInterface']=_0x1131b1,this['sequence']=new Sequence();};Migration[a1114_0x17f2c2(0x1de)][a1114_0x17f2c2(0x1b8)]=function(_0x90c02c,_0x4c1bc3,_0x7b16e4){const _0x5d21e3=a1114_0x17f2c2,_0x2f704e=this;this[_0x5d21e3(0x1b4)][_0x5d21e3(0x1bd)](function(){const _0x1ba221=_0x5d21e3;return _0x2f704e[_0x1ba221(0x1c7)][_0x1ba221(0x1b8)](_0x90c02c,_0x4c1bc3,_0x7b16e4)[_0x1ba221(0x1b9)](function(){const _0x1a7f98=_0x1ba221;logger[_0x1a7f98(0x1d4)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4c1bc3,_0x90c02c);})['catch'](function(_0x565d10){const _0x3d7ebe=_0x1ba221;logger[_0x3d7ebe(0x1d4)](JSON[_0x3d7ebe(0x1d2)](_0x565d10));});});},Migration['prototype'][a1114_0x17f2c2(0x1c4)]=function(_0x284811,_0x98dc86,_0x14db7a){const _0x41b063=a1114_0x17f2c2,_0x22e709=this;this[_0x41b063(0x1b4)][_0x41b063(0x1bd)](function(){const _0x3b2dc0=_0x41b063;return _0x22e709[_0x3b2dc0(0x1c7)][_0x3b2dc0(0x1c4)](_0x284811,_0x98dc86,_0x14db7a)[_0x3b2dc0(0x1b9)](function(){const _0x3a8c08=_0x3b2dc0;logger[_0x3a8c08(0x1d4)](_0x3a8c08(0x1cd),_0x98dc86,_0x284811);})[_0x3b2dc0(0x1ab)](function(_0x3ee760){const _0x5571ca=_0x3b2dc0;logger[_0x5571ca(0x1d4)](JSON[_0x5571ca(0x1d2)](_0x3ee760));});});},Migration[a1114_0x17f2c2(0x1de)]['dropTable']=function(_0x5ec5a5){const _0x50cb3c=a1114_0x17f2c2,_0x26b70f=this;this[_0x50cb3c(0x1b4)]['enqueue'](function(){const _0x43a2dd=_0x50cb3c;return _0x26b70f[_0x43a2dd(0x1c7)][_0x43a2dd(0x1d0)](_0x5ec5a5,{'force':!![]})[_0x43a2dd(0x1b9)](function(){const _0x5561ce=_0x43a2dd;logger['info'](_0x5561ce(0x1b7),_0x5ec5a5);})[_0x43a2dd(0x1ab)](function(_0x28ee5c){const _0x7e44e=_0x43a2dd;logger[_0x7e44e(0x1d4)](JSON['stringify'](_0x28ee5c));});});},Migration['prototype']['addIndex']=function(_0xe0a627,_0x51b844,_0x576b57){const _0x23765a=a1114_0x17f2c2,_0x569e9b=this;this[_0x23765a(0x1b4)][_0x23765a(0x1bd)](function(){const _0x517412=_0x23765a;return _0x569e9b[_0x517412(0x1c7)][_0x517412(0x1c2)](_0xe0a627,_0x51b844,{'indexName':_0x576b57})['then'](function(){const _0x299a54=_0x517412;logger[_0x299a54(0x1d4)](_0x299a54(0x1d5),_0xe0a627,_0x51b844[_0x299a54(0x1ae)](','),_0x576b57);})[_0x517412(0x1ab)](function(_0x28f6ca){const _0x336c8=_0x517412;logger[_0x336c8(0x1d4)](JSON[_0x336c8(0x1d2)](_0x28f6ca));});});},Migration[a1114_0x17f2c2(0x1de)]['removeIndex']=function(_0x240bce,_0x467005){const _0x2a9af3=a1114_0x17f2c2,_0xf0be5f=this;this[_0x2a9af3(0x1b4)]['enqueue'](function(){const _0x36e8d5=_0x2a9af3;return _0xf0be5f[_0x36e8d5(0x1c7)][_0x36e8d5(0x1ac)](_0x240bce,_0x467005)[_0x36e8d5(0x1b9)](function(){const _0xa12553=_0x36e8d5;logger['info'](_0xa12553(0x1b5),_0x240bce,_0x467005);})[_0x36e8d5(0x1ab)](function(_0x3053b6){const _0x37f7fb=_0x36e8d5;logger['info'](JSON[_0x37f7fb(0x1d2)](_0x3053b6));});});},Migration[a1114_0x17f2c2(0x1de)]['query']=function(_0x44bd2e){const _0x475aca=a1114_0x17f2c2,_0x3317c9=this;this[_0x475aca(0x1b4)]['enqueue'](function(){const _0x2a52ef=_0x475aca;return _0x3317c9[_0x2a52ef(0x1c7)][_0x2a52ef(0x1dc)][_0x2a52ef(0x1be)](_0x44bd2e)[_0x2a52ef(0x1b9)](function(){logger['info']('query\x20%s',_0x44bd2e);})['catch'](function(_0x6fff40){const _0x38f0ca=_0x2a52ef;logger['info'](JSON[_0x38f0ca(0x1d2)](_0x6fff40));});});},Migration[a1114_0x17f2c2(0x1de)][a1114_0x17f2c2(0x1c1)]=function(_0x1e9e19,_0x3d6a71){const _0x457adb=this;this['sequence']['enqueue'](function(){const _0x2f6136=a1114_0xcfc4;return _0x457adb[_0x2f6136(0x1c7)][_0x2f6136(0x1c1)](_0x1e9e19,_0x3d6a71)[_0x2f6136(0x1b9)](function(){const _0x48246c=_0x2f6136;logger[_0x48246c(0x1d4)](_0x48246c(0x1ad),_0x3d6a71,_0x1e9e19);})[_0x2f6136(0x1ab)](function(_0x3fe1bd){const _0xc6c911=_0x2f6136;logger[_0xc6c911(0x1d4)](util['inspect'](_0x3fe1bd,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1114_0x17f2c2(0x1cf)]=function(_0x354141,_0x3f1a7b,_0x1390af){const _0x39e42e=a1114_0x17f2c2,_0x55f427=this;this[_0x39e42e(0x1b4)][_0x39e42e(0x1bd)](function(){const _0x18bcfa=_0x39e42e;return _0x55f427[_0x18bcfa(0x1c7)][_0x18bcfa(0x1cf)](_0x354141,_0x3f1a7b,_0x1390af)[_0x18bcfa(0x1b9)](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3f1a7b,_0x1390af,_0x354141);})[_0x18bcfa(0x1ab)](function(_0x58a1ab){const _0x2026c3=_0x18bcfa;logger['info'](util[_0x2026c3(0x1c8)](_0x58a1ab,{'showHidden':![],'depth':null}));});});},Migration[a1114_0x17f2c2(0x1de)]['final']=function(_0x55c80d){const _0x23ea44=a1114_0x17f2c2;this[_0x23ea44(0x1b4)][_0x23ea44(0x1bd)](function(){return _0x55c80d();});},module[a1114_0x17f2c2(0x1d9)]={'up':function(_0x234ef6,_0x11504a){return new Promise(function(_0xe9b34d){const _0x4221e7=a1114_0xcfc4,_0x190bc9=new Migration(_0x234ef6);_0x190bc9[_0x4221e7(0x1c4)](_0x4221e7(0x1af),'queueTransfer',{'type':_0x11504a['BOOLEAN'],'defaultValue':![]}),_0x190bc9['addColumn'](_0x4221e7(0x1af),_0x4221e7(0x1d7),{'type':_0x11504a[_0x4221e7(0x1b2)],'defaultValue':![]}),_0x190bc9[_0x4221e7(0x1c4)](_0x4221e7(0x1af),_0x4221e7(0x1db),{'type':_0x11504a[_0x4221e7(0x1b3)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x190bc9['addColumn'](_0x4221e7(0x1af),_0x4221e7(0x1dd),{'type':_0x11504a[_0x4221e7(0x1b2)],'defaultValue':![]}),_0x190bc9[_0x4221e7(0x1c4)](_0x4221e7(0x1af),_0x4221e7(0x1d1),{'type':_0x11504a[_0x4221e7(0x1b3)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x190bc9[_0x4221e7(0x1c4)]('chat_websites',_0x4221e7(0x1ce),{'type':_0x11504a[_0x4221e7(0x1d3)],'defaultValue':_0x4221e7(0x1cb)}),_0x190bc9['addColumn'](_0x4221e7(0x1af),_0x4221e7(0x1cc),{'type':_0x11504a[_0x4221e7(0x1d8)]}),_0x190bc9[_0x4221e7(0x1c4)](_0x4221e7(0x1c0),'queueTransfer',{'type':_0x11504a[_0x4221e7(0x1b2)],'defaultValue':![]}),_0x190bc9[_0x4221e7(0x1c4)](_0x4221e7(0x1c0),'queueTransferTimeout',{'type':_0x11504a[_0x4221e7(0x1b3)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x190bc9['addColumn'](_0x4221e7(0x1c0),_0x4221e7(0x1dd),{'type':_0x11504a['BOOLEAN'],'defaultValue':![]}),_0x190bc9[_0x4221e7(0x1c4)]('fax_accounts',_0x4221e7(0x1d1),{'type':_0x11504a[_0x4221e7(0x1b3)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x190bc9[_0x4221e7(0x1c4)](_0x4221e7(0x1c5),_0x4221e7(0x1c9),{'type':_0x11504a[_0x4221e7(0x1b2)],'defaultValue':![]}),_0x190bc9[_0x4221e7(0x1c4)](_0x4221e7(0x1c5),'queueTransferTimeout',{'type':_0x11504a['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x190bc9[_0x4221e7(0x1c4)](_0x4221e7(0x1c5),_0x4221e7(0x1dd),{'type':_0x11504a[_0x4221e7(0x1b2)],'defaultValue':![]}),_0x190bc9[_0x4221e7(0x1c4)]('openchannel_accounts','agentTransferTimeout',{'type':_0x11504a[_0x4221e7(0x1b3)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x190bc9['addColumn'](_0x4221e7(0x1d6),'queueTransfer',{'type':_0x11504a[_0x4221e7(0x1b2)],'defaultValue':![]}),_0x190bc9[_0x4221e7(0x1c4)](_0x4221e7(0x1d6),_0x4221e7(0x1db),{'type':_0x11504a[_0x4221e7(0x1b3)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x190bc9[_0x4221e7(0x1c4)](_0x4221e7(0x1d6),_0x4221e7(0x1dd),{'type':_0x11504a[_0x4221e7(0x1b2)],'defaultValue':![]}),_0x190bc9[_0x4221e7(0x1c4)]('sms_accounts','agentTransferTimeout',{'type':_0x11504a['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x190bc9['addColumn'](_0x4221e7(0x1b1),_0x4221e7(0x1ca),{'type':_0x11504a['INTEGER'],'defaultValue':0x1e}),_0x190bc9[_0x4221e7(0x1be)]('UPDATE\x20settings\x20SET\x20chatTimeout\x20=\x200;'),_0x190bc9[_0x4221e7(0x1c4)](_0x4221e7(0x1b1),_0x4221e7(0x1bb),{'type':_0x11504a[_0x4221e7(0x1b2)],'defaultValue':!![]}),_0x190bc9[_0x4221e7(0x1c4)](_0x4221e7(0x1ba),_0x4221e7(0x1c3),{'type':_0x11504a[_0x4221e7(0x1b3)],'defaultValue':0x0}),_0x190bc9[_0x4221e7(0x1c4)]('tools_actions',_0x4221e7(0x1bf),{'type':_0x11504a['TEXT']}),_0x190bc9[_0x4221e7(0x1da)](_0xe9b34d);});},'down':function(){}}; \ No newline at end of file +const a1114_0x38c6=['info','sms_accounts','query\x20%s','enableCustomerCheckmarks','settings','Added\x20column\x20%s\x20to\x20%s','openchannel_accounts','data7','BOOLEAN','changeColumn','systemAvatar','queueTransfer','finally','then','STRING','removeIndex\x20%s\x20%s','queueTransferTimeout','../config/logger','tail','query','agentTransfer','sequelize','phoneBarRememberMeEnabled','addIndex','catch','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','dropTable','renameColumn','fax_accounts','UPDATE\x20settings\x20SET\x20chatTimeout\x20=\x200;','license','TEXT','INTEGER','migration','chat_websites','util','agentTransferTimeout','queryInterface','sequence','addColumn','final','addIndex\x20%s\x20%s\x20%s','enqueue','prototype','removeIndex','join','tools_actions','inspect','removeColumn','stringify','System'];(function(_0x1a2acf,_0x3ae802){const _0x38c641=function(_0x5711cd){while(--_0x5711cd){_0x1a2acf['push'](_0x1a2acf['shift']());}};_0x38c641(++_0x3ae802);}(a1114_0x38c6,0x10f));const a1114_0x5711=function(_0x1a2acf,_0x3ae802){_0x1a2acf=_0x1a2acf-0x1e6;let _0x38c641=a1114_0x38c6[_0x1a2acf];return _0x38c641;};const a1114_0x1d5534=a1114_0x5711;'use strict';const util=require(a1114_0x1d5534(0x205)),logger=require(a1114_0x1d5534(0x1f1))(a1114_0x1d5534(0x203)),Sequence=function(){};Sequence['prototype'][a1114_0x1d5534(0x20c)]=function(_0x1caac0){const _0x1c40e1=a1114_0x1d5534;this['tail']=this['tail']?this[_0x1c40e1(0x1f2)][_0x1c40e1(0x1ec)](_0x1caac0):_0x1caac0();};const Migration=function(_0x3b9892){const _0x4c06f8=a1114_0x1d5534;this['queryInterface']=_0x3b9892,this[_0x4c06f8(0x208)]=new Sequence();};Migration[a1114_0x1d5534(0x20d)][a1114_0x1d5534(0x1e9)]=function(_0x2b9a03,_0x36083,_0x2e076c){const _0x4712a9=a1114_0x1d5534,_0x1bfe88=this;this['sequence'][_0x4712a9(0x20c)](function(){const _0x749284=_0x4712a9;return _0x1bfe88[_0x749284(0x207)]['changeColumn'](_0x2b9a03,_0x36083,_0x2e076c)[_0x749284(0x1ed)](function(){const _0x552f38=_0x749284;logger[_0x552f38(0x215)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x36083,_0x2b9a03);})[_0x749284(0x1f8)](function(_0x286525){const _0x40569f=_0x749284;logger[_0x40569f(0x215)](JSON['stringify'](_0x286525));});});},Migration['prototype'][a1114_0x1d5534(0x209)]=function(_0x285742,_0x2d99a8,_0x28519b){const _0x863f7e=a1114_0x1d5534,_0x4ac135=this;this[_0x863f7e(0x208)][_0x863f7e(0x20c)](function(){const _0x4c3537=_0x863f7e;return _0x4ac135[_0x4c3537(0x207)][_0x4c3537(0x209)](_0x285742,_0x2d99a8,_0x28519b)[_0x4c3537(0x1ed)](function(){const _0x5eca95=_0x4c3537;logger[_0x5eca95(0x215)](_0x5eca95(0x21a),_0x2d99a8,_0x285742);})[_0x4c3537(0x1f8)](function(_0x2ba520){const _0x5d2385=_0x4c3537;logger['info'](JSON[_0x5d2385(0x213)](_0x2ba520));});});},Migration[a1114_0x1d5534(0x20d)][a1114_0x1d5534(0x1fc)]=function(_0x10e804){const _0x4565c0=a1114_0x1d5534,_0x24d613=this;this[_0x4565c0(0x208)][_0x4565c0(0x20c)](function(){const _0x1e6a58=_0x4565c0;return _0x24d613[_0x1e6a58(0x207)][_0x1e6a58(0x1fc)](_0x10e804,{'force':!![]})[_0x1e6a58(0x1ed)](function(){const _0x440d47=_0x1e6a58;logger['info'](_0x440d47(0x1f9),_0x10e804);})[_0x1e6a58(0x1f8)](function(_0x4f6c2a){const _0x54ab26=_0x1e6a58;logger[_0x54ab26(0x215)](JSON[_0x54ab26(0x213)](_0x4f6c2a));});});},Migration['prototype'][a1114_0x1d5534(0x1f7)]=function(_0x5e7d50,_0x3b5452,_0x462e2a){const _0x1027ea=a1114_0x1d5534,_0x1b0db3=this;this[_0x1027ea(0x208)]['enqueue'](function(){const _0x2c8f55=_0x1027ea;return _0x1b0db3['queryInterface'][_0x2c8f55(0x1f7)](_0x5e7d50,_0x3b5452,{'indexName':_0x462e2a})[_0x2c8f55(0x1ed)](function(){const _0x12ad4a=_0x2c8f55;logger['info'](_0x12ad4a(0x20b),_0x5e7d50,_0x3b5452[_0x12ad4a(0x20f)](','),_0x462e2a);})[_0x2c8f55(0x1f8)](function(_0x5c8903){const _0x521fd2=_0x2c8f55;logger[_0x521fd2(0x215)](JSON['stringify'](_0x5c8903));});});},Migration['prototype'][a1114_0x1d5534(0x20e)]=function(_0x314515,_0x1583ec){const _0x241a0e=a1114_0x1d5534,_0x6f4ac1=this;this[_0x241a0e(0x208)]['enqueue'](function(){const _0x1e6776=_0x241a0e;return _0x6f4ac1[_0x1e6776(0x207)][_0x1e6776(0x20e)](_0x314515,_0x1583ec)[_0x1e6776(0x1ed)](function(){const _0x5ea1cf=_0x1e6776;logger[_0x5ea1cf(0x215)](_0x5ea1cf(0x1ef),_0x314515,_0x1583ec);})['catch'](function(_0x34710c){const _0x4c9882=_0x1e6776;logger[_0x4c9882(0x215)](JSON[_0x4c9882(0x213)](_0x34710c));});});},Migration[a1114_0x1d5534(0x20d)][a1114_0x1d5534(0x1f3)]=function(_0x20fb6b){const _0x6b21c2=a1114_0x1d5534,_0x45d20f=this;this[_0x6b21c2(0x208)][_0x6b21c2(0x20c)](function(){const _0x46136f=_0x6b21c2;return _0x45d20f['queryInterface'][_0x46136f(0x1f5)][_0x46136f(0x1f3)](_0x20fb6b)[_0x46136f(0x1ed)](function(){const _0x1147b2=_0x46136f;logger[_0x1147b2(0x215)](_0x1147b2(0x217),_0x20fb6b);})[_0x46136f(0x1f8)](function(_0x262790){const _0x385efc=_0x46136f;logger[_0x385efc(0x215)](JSON['stringify'](_0x262790));});});},Migration['prototype'][a1114_0x1d5534(0x212)]=function(_0x4f977b,_0x20387b){const _0x4440ab=this;this['sequence']['enqueue'](function(){const _0x4f2928=a1114_0x5711;return _0x4440ab[_0x4f2928(0x207)][_0x4f2928(0x212)](_0x4f977b,_0x20387b)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x20387b,_0x4f977b);})[_0x4f2928(0x1f8)](function(_0x2145e2){const _0x15248f=_0x4f2928;logger[_0x15248f(0x215)](util[_0x15248f(0x211)](_0x2145e2,{'showHidden':![],'depth':null}));});});},Migration[a1114_0x1d5534(0x20d)][a1114_0x1d5534(0x1fd)]=function(_0x29b3a4,_0xb33c48,_0x4b7d88){const _0x3a8d1e=a1114_0x1d5534,_0x3e2d59=this;this['sequence'][_0x3a8d1e(0x20c)](function(){const _0x476c06=_0x3a8d1e;return _0x3e2d59[_0x476c06(0x207)][_0x476c06(0x1fd)](_0x29b3a4,_0xb33c48,_0x4b7d88)['then'](function(){const _0x546447=_0x476c06;logger[_0x546447(0x215)](_0x546447(0x1fa),_0xb33c48,_0x4b7d88,_0x29b3a4);})[_0x476c06(0x1f8)](function(_0x11bd89){const _0x207e78=_0x476c06;logger[_0x207e78(0x215)](util[_0x207e78(0x211)](_0x11bd89,{'showHidden':![],'depth':null}));});});},Migration[a1114_0x1d5534(0x20d)][a1114_0x1d5534(0x20a)]=function(_0x2f5759){const _0x5514fe=a1114_0x1d5534;this[_0x5514fe(0x208)]['enqueue'](function(){return _0x2f5759();});},module[a1114_0x1d5534(0x1fb)]={'up':function(_0x30d8e3,_0x95df4b){return new Promise(function(_0x191408){const _0x4c60a2=a1114_0x5711,_0x5aa1c5=new Migration(_0x30d8e3);_0x5aa1c5[_0x4c60a2(0x209)](_0x4c60a2(0x204),_0x4c60a2(0x1eb),{'type':_0x95df4b[_0x4c60a2(0x1e8)],'defaultValue':![]}),_0x5aa1c5[_0x4c60a2(0x209)](_0x4c60a2(0x204),_0x4c60a2(0x218),{'type':_0x95df4b[_0x4c60a2(0x1e8)],'defaultValue':![]}),_0x5aa1c5[_0x4c60a2(0x209)](_0x4c60a2(0x204),_0x4c60a2(0x1f0),{'type':_0x95df4b[_0x4c60a2(0x202)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5aa1c5['addColumn'](_0x4c60a2(0x204),'agentTransfer',{'type':_0x95df4b[_0x4c60a2(0x1e8)],'defaultValue':![]}),_0x5aa1c5['addColumn'](_0x4c60a2(0x204),'agentTransferTimeout',{'type':_0x95df4b[_0x4c60a2(0x202)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5aa1c5['addColumn'](_0x4c60a2(0x204),'systemAlias',{'type':_0x95df4b[_0x4c60a2(0x1ee)],'defaultValue':_0x4c60a2(0x214)}),_0x5aa1c5[_0x4c60a2(0x209)]('chat_websites',_0x4c60a2(0x1ea),{'type':_0x95df4b['TEXT']}),_0x5aa1c5[_0x4c60a2(0x209)](_0x4c60a2(0x1fe),'queueTransfer',{'type':_0x95df4b['BOOLEAN'],'defaultValue':![]}),_0x5aa1c5[_0x4c60a2(0x209)](_0x4c60a2(0x1fe),_0x4c60a2(0x1f0),{'type':_0x95df4b['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5aa1c5['addColumn'](_0x4c60a2(0x1fe),_0x4c60a2(0x1f4),{'type':_0x95df4b[_0x4c60a2(0x1e8)],'defaultValue':![]}),_0x5aa1c5['addColumn'](_0x4c60a2(0x1fe),_0x4c60a2(0x206),{'type':_0x95df4b[_0x4c60a2(0x202)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5aa1c5['addColumn'](_0x4c60a2(0x1e6),_0x4c60a2(0x1eb),{'type':_0x95df4b[_0x4c60a2(0x1e8)],'defaultValue':![]}),_0x5aa1c5[_0x4c60a2(0x209)](_0x4c60a2(0x1e6),_0x4c60a2(0x1f0),{'type':_0x95df4b[_0x4c60a2(0x202)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5aa1c5[_0x4c60a2(0x209)](_0x4c60a2(0x1e6),_0x4c60a2(0x1f4),{'type':_0x95df4b[_0x4c60a2(0x1e8)],'defaultValue':![]}),_0x5aa1c5['addColumn'](_0x4c60a2(0x1e6),_0x4c60a2(0x206),{'type':_0x95df4b[_0x4c60a2(0x202)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5aa1c5[_0x4c60a2(0x209)](_0x4c60a2(0x216),_0x4c60a2(0x1eb),{'type':_0x95df4b[_0x4c60a2(0x1e8)],'defaultValue':![]}),_0x5aa1c5['addColumn']('sms_accounts',_0x4c60a2(0x1f0),{'type':_0x95df4b[_0x4c60a2(0x202)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5aa1c5[_0x4c60a2(0x209)](_0x4c60a2(0x216),_0x4c60a2(0x1f4),{'type':_0x95df4b[_0x4c60a2(0x1e8)],'defaultValue':![]}),_0x5aa1c5['addColumn'](_0x4c60a2(0x216),_0x4c60a2(0x206),{'type':_0x95df4b[_0x4c60a2(0x202)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5aa1c5['addColumn'](_0x4c60a2(0x219),'chatTimeout',{'type':_0x95df4b[_0x4c60a2(0x202)],'defaultValue':0x1e}),_0x5aa1c5[_0x4c60a2(0x1f3)](_0x4c60a2(0x1ff)),_0x5aa1c5[_0x4c60a2(0x209)]('settings',_0x4c60a2(0x1f6),{'type':_0x95df4b['BOOLEAN'],'defaultValue':!![]}),_0x5aa1c5[_0x4c60a2(0x209)](_0x4c60a2(0x200),'chatLicenseExceeded',{'type':_0x95df4b['INTEGER'],'defaultValue':0x0}),_0x5aa1c5[_0x4c60a2(0x209)](_0x4c60a2(0x210),_0x4c60a2(0x1e7),{'type':_0x95df4b[_0x4c60a2(0x201)]}),_0x5aa1c5[_0x4c60a2(0x20a)](_0x191408);});},'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 a5ec721..946c683 100644 --- a/server/migrations/2.0.72.js +++ b/server/migrations/2.0.72.js @@ -1 +1 @@ -const a1115_0x4db6=['addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','report_square','DELETE\x20FROM\x20user_has_voice_queues_rt\x20WHERE\x20UserId\x20NOT\x20IN\x20(SELECT\x20id\x20FROM\x20users\x20WHERE\x20role\x20=\x20\x27agent\x27)','sequelize','removeColumn','prototype','stringify','addIndex','removeIndex\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','renameColumn','changeColumn','sequence','then','query','tail','uniqueid','../config/logger','dropTable','table\x20dropped\x20%s','enqueue','Added\x20column\x20%s\x20to\x20%s','queryInterface','info','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex','migration','addIndex\x20%s\x20%s\x20%s','final','project_name','join','leaveAt'];(function(_0x375bbd,_0x4cb413){const _0x4db6d8=function(_0x26c3b5){while(--_0x26c3b5){_0x375bbd['push'](_0x375bbd['shift']());}};_0x4db6d8(++_0x4cb413);}(a1115_0x4db6,0x1a4));const a1115_0x26c3=function(_0x375bbd,_0x4cb413){_0x375bbd=_0x375bbd-0x181;let _0x4db6d8=a1115_0x4db6[_0x375bbd];return _0x4db6d8;};const a1115_0xab57a9=a1115_0x26c3;'use strict';const util=require('util'),logger=require(a1115_0xab57a9(0x187))(a1115_0xab57a9(0x191)),Sequence=function(){};Sequence['prototype'][a1115_0xab57a9(0x18a)]=function(_0x114175){const _0x172e8d=a1115_0xab57a9;this[_0x172e8d(0x185)]=this['tail']?this[_0x172e8d(0x185)]['finally'](_0x114175):_0x114175();};const Migration=function(_0x279646){const _0x44a65b=a1115_0xab57a9;this[_0x44a65b(0x18c)]=_0x279646,this[_0x44a65b(0x182)]=new Sequence();};Migration[a1115_0xab57a9(0x19d)]['changeColumn']=function(_0x22eaed,_0x1368b1,_0x2d7333){const _0x139bd7=a1115_0xab57a9,_0x44e497=this;this[_0x139bd7(0x182)][_0x139bd7(0x18a)](function(){const _0x4558f6=_0x139bd7;return _0x44e497['queryInterface'][_0x4558f6(0x181)](_0x22eaed,_0x1368b1,_0x2d7333)[_0x4558f6(0x183)](function(){const _0x37be76=_0x4558f6;logger[_0x37be76(0x18d)](_0x37be76(0x18f),_0x1368b1,_0x22eaed);})['catch'](function(_0xfd02cd){const _0x14a762=_0x4558f6;logger['info'](JSON[_0x14a762(0x19e)](_0xfd02cd));});});},Migration['prototype'][a1115_0xab57a9(0x197)]=function(_0x238000,_0x34905d,_0x13a7b7){const _0x405b1e=a1115_0xab57a9,_0x2722ae=this;this[_0x405b1e(0x182)][_0x405b1e(0x18a)](function(){const _0x337a61=_0x405b1e;return _0x2722ae[_0x337a61(0x18c)][_0x337a61(0x197)](_0x238000,_0x34905d,_0x13a7b7)[_0x337a61(0x183)](function(){const _0x4ada2d=_0x337a61;logger[_0x4ada2d(0x18d)](_0x4ada2d(0x18b),_0x34905d,_0x238000);})[_0x337a61(0x18e)](function(_0x8ee7a2){const _0x4ba8c2=_0x337a61;logger[_0x4ba8c2(0x18d)](JSON[_0x4ba8c2(0x19e)](_0x8ee7a2));});});},Migration[a1115_0xab57a9(0x19d)]['dropTable']=function(_0x43287f){const _0x27ce00=a1115_0xab57a9,_0x2ac156=this;this[_0x27ce00(0x182)][_0x27ce00(0x18a)](function(){const _0x10daa9=_0x27ce00;return _0x2ac156[_0x10daa9(0x18c)][_0x10daa9(0x188)](_0x43287f,{'force':!![]})[_0x10daa9(0x183)](function(){const _0x3c3a0a=_0x10daa9;logger[_0x3c3a0a(0x18d)](_0x3c3a0a(0x189),_0x43287f);})[_0x10daa9(0x18e)](function(_0x1d8a03){const _0x3c177b=_0x10daa9;logger['info'](JSON[_0x3c177b(0x19e)](_0x1d8a03));});});},Migration['prototype']['addIndex']=function(_0x2a0709,_0x1f817f,_0x159e2d){const _0x2c5bc4=a1115_0xab57a9,_0x11ec97=this;this[_0x2c5bc4(0x182)][_0x2c5bc4(0x18a)](function(){const _0x2e611a=_0x2c5bc4;return _0x11ec97[_0x2e611a(0x18c)]['addIndex'](_0x2a0709,_0x1f817f,{'indexName':_0x159e2d})[_0x2e611a(0x183)](function(){const _0x100a71=_0x2e611a;logger['info'](_0x100a71(0x192),_0x2a0709,_0x1f817f[_0x100a71(0x195)](','),_0x159e2d);})[_0x2e611a(0x18e)](function(_0x397fa6){const _0x37a750=_0x2e611a;logger['info'](JSON[_0x37a750(0x19e)](_0x397fa6));});});},Migration[a1115_0xab57a9(0x19d)][a1115_0xab57a9(0x190)]=function(_0x1053f0,_0x30680c){const _0xd64990=a1115_0xab57a9,_0x12f35b=this;this['sequence'][_0xd64990(0x18a)](function(){const _0x4e6426=_0xd64990;return _0x12f35b['queryInterface']['removeIndex'](_0x1053f0,_0x30680c)[_0x4e6426(0x183)](function(){const _0x3527d1=_0x4e6426;logger['info'](_0x3527d1(0x1a0),_0x1053f0,_0x30680c);})[_0x4e6426(0x18e)](function(_0x7e735e){const _0x5028ab=_0x4e6426;logger['info'](JSON[_0x5028ab(0x19e)](_0x7e735e));});});},Migration['prototype'][a1115_0xab57a9(0x184)]=function(_0x5a1321){const _0x5055d5=a1115_0xab57a9,_0x4c53d0=this;this[_0x5055d5(0x182)][_0x5055d5(0x18a)](function(){const _0x35f339=_0x5055d5;return _0x4c53d0[_0x35f339(0x18c)][_0x35f339(0x19b)]['query'](_0x5a1321)[_0x35f339(0x183)](function(){const _0x1a1fa3=_0x35f339;logger[_0x1a1fa3(0x18d)]('query\x20%s',_0x5a1321);})['catch'](function(_0x1c1a76){logger['info'](JSON['stringify'](_0x1c1a76));});});},Migration[a1115_0xab57a9(0x19d)][a1115_0xab57a9(0x19c)]=function(_0x1d444e,_0x46528c){const _0x3127d9=a1115_0xab57a9,_0x1c9972=this;this[_0x3127d9(0x182)][_0x3127d9(0x18a)](function(){const _0x29acac=_0x3127d9;return _0x1c9972[_0x29acac(0x18c)][_0x29acac(0x19c)](_0x1d444e,_0x46528c)[_0x29acac(0x183)](function(){const _0xc7b5c8=_0x29acac;logger[_0xc7b5c8(0x18d)](_0xc7b5c8(0x1a1),_0x46528c,_0x1d444e);})[_0x29acac(0x18e)](function(_0x1cbb44){const _0xccb82a=_0x29acac;logger[_0xccb82a(0x18d)](util['inspect'](_0x1cbb44,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1115_0xab57a9(0x1a2)]=function(_0x3216ed,_0x350e58,_0x50110b){const _0x3b6ef7=a1115_0xab57a9,_0x5946eb=this;this['sequence'][_0x3b6ef7(0x18a)](function(){const _0x1a6451=_0x3b6ef7;return _0x5946eb[_0x1a6451(0x18c)][_0x1a6451(0x1a2)](_0x3216ed,_0x350e58,_0x50110b)[_0x1a6451(0x183)](function(){const _0x5756c9=_0x1a6451;logger['info'](_0x5756c9(0x198),_0x350e58,_0x50110b,_0x3216ed);})['catch'](function(_0x4ef55c){const _0x2f5bf6=_0x1a6451;logger[_0x2f5bf6(0x18d)](util['inspect'](_0x4ef55c,{'showHidden':![],'depth':null}));});});},Migration[a1115_0xab57a9(0x19d)][a1115_0xab57a9(0x193)]=function(_0x500a04){const _0x1b1319=a1115_0xab57a9;this['sequence'][_0x1b1319(0x18a)](function(){return _0x500a04();});},module['exports']={'up':function(_0x28f66f){return new Promise(function(_0x2cbe9c){const _0x293214=a1115_0x26c3,_0x1d7e42=new Migration(_0x28f66f);_0x1d7e42[_0x293214(0x184)](_0x293214(0x19a)),_0x1d7e42[_0x293214(0x19f)](_0x293214(0x199),[_0x293214(0x186),_0x293214(0x194)],'uid_pname'),_0x1d7e42['addIndex'](_0x293214(0x199),[_0x293214(0x196)],_0x293214(0x196)),_0x1d7e42[_0x293214(0x193)](_0x2cbe9c);});},'down':function(){}}; \ No newline at end of file +const a1115_0x3870=['project_name','removeIndex','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','migration','finally','Removed\x20column\x20%s\x20from\x20%s','leaveAt','enqueue','final','DELETE\x20FROM\x20user_has_voice_queues_rt\x20WHERE\x20UserId\x20NOT\x20IN\x20(SELECT\x20id\x20FROM\x20users\x20WHERE\x20role\x20=\x20\x27agent\x27)','join','addColumn','sequelize','then','sequence','removeColumn','query','prototype','info','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s','stringify','tail','uniqueid','addIndex','inspect','../config/logger','report_square','removeIndex\x20%s\x20%s','dropTable','queryInterface','renameColumn','changeColumn'];(function(_0x78f200,_0x18b49d){const _0x3870c0=function(_0x4a6825){while(--_0x4a6825){_0x78f200['push'](_0x78f200['shift']());}};_0x3870c0(++_0x18b49d);}(a1115_0x3870,0xfb));const a1115_0x4a68=function(_0x78f200,_0x18b49d){_0x78f200=_0x78f200-0x1e1;let _0x3870c0=a1115_0x3870[_0x78f200];return _0x3870c0;};const a1115_0x45da2e=a1115_0x4a68;'use strict';const util=require('util'),logger=require(a1115_0x45da2e(0x1f7))(a1115_0x45da2e(0x202)),Sequence=function(){};Sequence[a1115_0x45da2e(0x1ed)]['enqueue']=function(_0x431ad1){const _0x3cdf95=a1115_0x45da2e;this[_0x3cdf95(0x1f3)]=this[_0x3cdf95(0x1f3)]?this[_0x3cdf95(0x1f3)][_0x3cdf95(0x203)](_0x431ad1):_0x431ad1();};const Migration=function(_0x1e74c1){const _0x5e8031=a1115_0x45da2e;this[_0x5e8031(0x1fb)]=_0x1e74c1,this[_0x5e8031(0x1ea)]=new Sequence();};Migration['prototype'][a1115_0x45da2e(0x1fd)]=function(_0x924f4b,_0x3a75ab,_0x2955d3){const _0x5db986=a1115_0x45da2e,_0x5e25a7=this;this[_0x5db986(0x1ea)][_0x5db986(0x1e3)](function(){const _0x39e15a=_0x5db986;return _0x5e25a7[_0x39e15a(0x1fb)][_0x39e15a(0x1fd)](_0x924f4b,_0x3a75ab,_0x2955d3)[_0x39e15a(0x1e9)](function(){const _0x3eabda=_0x39e15a;logger[_0x3eabda(0x1ee)](_0x3eabda(0x1f0),_0x3a75ab,_0x924f4b);})['catch'](function(_0x347a63){const _0x34976c=_0x39e15a;logger[_0x34976c(0x1ee)](JSON[_0x34976c(0x1f2)](_0x347a63));});});},Migration[a1115_0x45da2e(0x1ed)][a1115_0x45da2e(0x1e7)]=function(_0x27204d,_0x30e1d7,_0x2d4a28){const _0x40e3ff=a1115_0x45da2e,_0x2542fd=this;this[_0x40e3ff(0x1ea)][_0x40e3ff(0x1e3)](function(){const _0x20015e=_0x40e3ff;return _0x2542fd[_0x20015e(0x1fb)]['addColumn'](_0x27204d,_0x30e1d7,_0x2d4a28)['then'](function(){const _0x58d5a2=_0x20015e;logger['info'](_0x58d5a2(0x201),_0x30e1d7,_0x27204d);})[_0x20015e(0x1ef)](function(_0xe47d42){const _0x5219eb=_0x20015e;logger['info'](JSON[_0x5219eb(0x1f2)](_0xe47d42));});});},Migration['prototype'][a1115_0x45da2e(0x1fa)]=function(_0x5b1f68){const _0x5f3dba=this;this['sequence']['enqueue'](function(){const _0x55f44a=a1115_0x4a68;return _0x5f3dba[_0x55f44a(0x1fb)][_0x55f44a(0x1fa)](_0x5b1f68,{'force':!![]})[_0x55f44a(0x1e9)](function(){const _0x14dd52=_0x55f44a;logger[_0x14dd52(0x1ee)](_0x14dd52(0x200),_0x5b1f68);})[_0x55f44a(0x1ef)](function(_0x38318d){const _0x157a7b=_0x55f44a;logger[_0x157a7b(0x1ee)](JSON['stringify'](_0x38318d));});});},Migration['prototype'][a1115_0x45da2e(0x1f5)]=function(_0x129964,_0x1b445c,_0x2cfac4){const _0x26a8e8=a1115_0x45da2e,_0x1a790e=this;this[_0x26a8e8(0x1ea)][_0x26a8e8(0x1e3)](function(){const _0x18a940=_0x26a8e8;return _0x1a790e[_0x18a940(0x1fb)][_0x18a940(0x1f5)](_0x129964,_0x1b445c,{'indexName':_0x2cfac4})[_0x18a940(0x1e9)](function(){const _0x171082=_0x18a940;logger['info'](_0x171082(0x1f1),_0x129964,_0x1b445c[_0x171082(0x1e6)](','),_0x2cfac4);})[_0x18a940(0x1ef)](function(_0x46992b){const _0x359bb3=_0x18a940;logger['info'](JSON[_0x359bb3(0x1f2)](_0x46992b));});});},Migration[a1115_0x45da2e(0x1ed)][a1115_0x45da2e(0x1ff)]=function(_0x50098c,_0x2bfd1b){const _0x29a628=a1115_0x45da2e,_0x37f086=this;this[_0x29a628(0x1ea)][_0x29a628(0x1e3)](function(){const _0x313f33=_0x29a628;return _0x37f086['queryInterface'][_0x313f33(0x1ff)](_0x50098c,_0x2bfd1b)['then'](function(){const _0x3b3fa7=_0x313f33;logger[_0x3b3fa7(0x1ee)](_0x3b3fa7(0x1f9),_0x50098c,_0x2bfd1b);})[_0x313f33(0x1ef)](function(_0x20f8e5){const _0x11debc=_0x313f33;logger[_0x11debc(0x1ee)](JSON['stringify'](_0x20f8e5));});});},Migration[a1115_0x45da2e(0x1ed)][a1115_0x45da2e(0x1ec)]=function(_0x5969b5){const _0x534f7d=a1115_0x45da2e,_0x2b041b=this;this[_0x534f7d(0x1ea)]['enqueue'](function(){const _0x5bded5=_0x534f7d;return _0x2b041b[_0x5bded5(0x1fb)][_0x5bded5(0x1e8)][_0x5bded5(0x1ec)](_0x5969b5)[_0x5bded5(0x1e9)](function(){const _0x5afd08=_0x5bded5;logger[_0x5afd08(0x1ee)]('query\x20%s',_0x5969b5);})[_0x5bded5(0x1ef)](function(_0x271078){const _0x2a69bf=_0x5bded5;logger[_0x2a69bf(0x1ee)](JSON['stringify'](_0x271078));});});},Migration['prototype'][a1115_0x45da2e(0x1eb)]=function(_0x30ed67,_0x2ac1c8){const _0x3edfbb=a1115_0x45da2e,_0xbdd683=this;this[_0x3edfbb(0x1ea)][_0x3edfbb(0x1e3)](function(){const _0x3af53a=_0x3edfbb;return _0xbdd683[_0x3af53a(0x1fb)][_0x3af53a(0x1eb)](_0x30ed67,_0x2ac1c8)['then'](function(){const _0xcf2899=_0x3af53a;logger['info'](_0xcf2899(0x1e1),_0x2ac1c8,_0x30ed67);})[_0x3af53a(0x1ef)](function(_0x1a35df){const _0x5cd8c5=_0x3af53a;logger[_0x5cd8c5(0x1ee)](util[_0x5cd8c5(0x1f6)](_0x1a35df,{'showHidden':![],'depth':null}));});});},Migration[a1115_0x45da2e(0x1ed)][a1115_0x45da2e(0x1fc)]=function(_0x40ea74,_0x59a59d,_0x2115d7){const _0x1cb6b3=a1115_0x45da2e,_0x494868=this;this[_0x1cb6b3(0x1ea)]['enqueue'](function(){const _0x39917f=_0x1cb6b3;return _0x494868[_0x39917f(0x1fb)][_0x39917f(0x1fc)](_0x40ea74,_0x59a59d,_0x2115d7)[_0x39917f(0x1e9)](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x59a59d,_0x2115d7,_0x40ea74);})[_0x39917f(0x1ef)](function(_0x2b6065){const _0x517153=_0x39917f;logger[_0x517153(0x1ee)](util[_0x517153(0x1f6)](_0x2b6065,{'showHidden':![],'depth':null}));});});},Migration[a1115_0x45da2e(0x1ed)]['final']=function(_0x1a0046){const _0x18ac00=a1115_0x45da2e;this[_0x18ac00(0x1ea)][_0x18ac00(0x1e3)](function(){return _0x1a0046();});},module['exports']={'up':function(_0x182874){return new Promise(function(_0x28749d){const _0x524cd2=a1115_0x4a68,_0x3ac5df=new Migration(_0x182874);_0x3ac5df['query'](_0x524cd2(0x1e5)),_0x3ac5df[_0x524cd2(0x1f5)](_0x524cd2(0x1f8),[_0x524cd2(0x1f4),_0x524cd2(0x1fe)],'uid_pname'),_0x3ac5df[_0x524cd2(0x1f5)](_0x524cd2(0x1f8),[_0x524cd2(0x1e2)],'leaveAt'),_0x3ac5df[_0x524cd2(0x1e4)](_0x28749d);});},'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 fea2a5a..2ece50c 100644 --- a/server/migrations/2.0.73.js +++ b/server/migrations/2.0.73.js @@ -1 +1 @@ -const a1116_0x63d3=['enqueue','final','renameColumn','originatecalleridname','queryInterface','Added\x20column\x20%s\x20to\x20%s','INTEGER','finally','STRING','table\x20dropped\x20%s','cm_hopper_final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','cm_hopper_history','info','../config/logger','removeColumn','addColumn','originatecalleridnum','changeColumn','routeid','Changed\x20column\x20%s\x20in\x20table\x20%s','wechat','Removed\x20column\x20%s\x20from\x20%s','inspect','removeIndex','catch','cm_contacts','tail','stringify','sequence','join','fb_data','addIndex\x20%s\x20%s\x20%s','then','removeIndex\x20%s\x20%s','prototype','addIndex','dropTable'];(function(_0x234505,_0x58494e){const _0x63d3ff=function(_0x590da0){while(--_0x590da0){_0x234505['push'](_0x234505['shift']());}};_0x63d3ff(++_0x58494e);}(a1116_0x63d3,0x9e));const a1116_0x590d=function(_0x234505,_0x58494e){_0x234505=_0x234505-0x1ac;let _0x63d3ff=a1116_0x63d3[_0x234505];return _0x63d3ff;};const a1116_0x4856f0=a1116_0x590d;'use strict';const util=require('util'),logger=require(a1116_0x4856f0(0x1b9))('migration'),Sequence=function(){};Sequence[a1116_0x4856f0(0x1ce)][a1116_0x4856f0(0x1d1)]=function(_0x27d4bb){const _0x12dd42=a1116_0x4856f0;this[_0x12dd42(0x1c6)]=this[_0x12dd42(0x1c6)]?this[_0x12dd42(0x1c6)][_0x12dd42(0x1b1)](_0x27d4bb):_0x27d4bb();};const Migration=function(_0x10f008){const _0x595ee7=a1116_0x4856f0;this[_0x595ee7(0x1ae)]=_0x10f008,this[_0x595ee7(0x1c8)]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x4144ce,_0x48408f,_0x2e8752){const _0x3b9055=a1116_0x4856f0,_0x2ceaad=this;this[_0x3b9055(0x1c8)][_0x3b9055(0x1d1)](function(){const _0x573d18=_0x3b9055;return _0x2ceaad[_0x573d18(0x1ae)][_0x573d18(0x1bd)](_0x4144ce,_0x48408f,_0x2e8752)[_0x573d18(0x1cc)](function(){const _0x1b46df=_0x573d18;logger[_0x1b46df(0x1b8)](_0x1b46df(0x1bf),_0x48408f,_0x4144ce);})[_0x573d18(0x1c4)](function(_0x55e0b6){const _0x536b38=_0x573d18;logger[_0x536b38(0x1b8)](JSON[_0x536b38(0x1c7)](_0x55e0b6));});});},Migration[a1116_0x4856f0(0x1ce)][a1116_0x4856f0(0x1bb)]=function(_0x84b27f,_0x364712,_0x8f1a06){const _0x4f736d=a1116_0x4856f0,_0x29883d=this;this['sequence'][_0x4f736d(0x1d1)](function(){const _0x41ad47=_0x4f736d;return _0x29883d[_0x41ad47(0x1ae)][_0x41ad47(0x1bb)](_0x84b27f,_0x364712,_0x8f1a06)[_0x41ad47(0x1cc)](function(){const _0x4ff5e9=_0x41ad47;logger[_0x4ff5e9(0x1b8)](_0x4ff5e9(0x1af),_0x364712,_0x84b27f);})[_0x41ad47(0x1c4)](function(_0x513e17){const _0x68f0f9=_0x41ad47;logger[_0x68f0f9(0x1b8)](JSON[_0x68f0f9(0x1c7)](_0x513e17));});});},Migration[a1116_0x4856f0(0x1ce)]['dropTable']=function(_0x3aeafa){const _0x4b3806=a1116_0x4856f0,_0x2a45b5=this;this[_0x4b3806(0x1c8)][_0x4b3806(0x1d1)](function(){const _0x3602ca=_0x4b3806;return _0x2a45b5[_0x3602ca(0x1ae)][_0x3602ca(0x1d0)](_0x3aeafa,{'force':!![]})['then'](function(){const _0x5d8bad=_0x3602ca;logger[_0x5d8bad(0x1b8)](_0x5d8bad(0x1b3),_0x3aeafa);})[_0x3602ca(0x1c4)](function(_0xcea22e){const _0x2dc036=_0x3602ca;logger[_0x2dc036(0x1b8)](JSON[_0x2dc036(0x1c7)](_0xcea22e));});});},Migration[a1116_0x4856f0(0x1ce)]['addIndex']=function(_0x5ac2f1,_0x3b39fa,_0x5ed4a9){const _0x52da2d=a1116_0x4856f0,_0x202b8e=this;this[_0x52da2d(0x1c8)][_0x52da2d(0x1d1)](function(){const _0x57b47c=_0x52da2d;return _0x202b8e[_0x57b47c(0x1ae)][_0x57b47c(0x1cf)](_0x5ac2f1,_0x3b39fa,{'indexName':_0x5ed4a9})[_0x57b47c(0x1cc)](function(){const _0x14c9f2=_0x57b47c;logger[_0x14c9f2(0x1b8)](_0x14c9f2(0x1cb),_0x5ac2f1,_0x3b39fa[_0x14c9f2(0x1c9)](','),_0x5ed4a9);})[_0x57b47c(0x1c4)](function(_0x21b839){const _0x54bacb=_0x57b47c;logger[_0x54bacb(0x1b8)](JSON['stringify'](_0x21b839));});});},Migration[a1116_0x4856f0(0x1ce)][a1116_0x4856f0(0x1c3)]=function(_0x132950,_0x42ce9c){const _0x98c7a7=a1116_0x4856f0,_0x2e83b1=this;this[_0x98c7a7(0x1c8)]['enqueue'](function(){const _0x5d127e=_0x98c7a7;return _0x2e83b1[_0x5d127e(0x1ae)][_0x5d127e(0x1c3)](_0x132950,_0x42ce9c)[_0x5d127e(0x1cc)](function(){const _0x180132=_0x5d127e;logger[_0x180132(0x1b8)](_0x180132(0x1cd),_0x132950,_0x42ce9c);})[_0x5d127e(0x1c4)](function(_0x5e7b86){const _0x522d5c=_0x5d127e;logger[_0x522d5c(0x1b8)](JSON['stringify'](_0x5e7b86));});});},Migration[a1116_0x4856f0(0x1ce)]['query']=function(_0x317fb5){const _0x4e6e71=a1116_0x4856f0,_0x344308=this;this[_0x4e6e71(0x1c8)][_0x4e6e71(0x1d1)](function(){const _0x10c051=_0x4e6e71;return _0x344308['queryInterface']['sequelize'][_0x10c051(0x1b6)](_0x317fb5)['then'](function(){logger['info']('query\x20%s',_0x317fb5);})[_0x10c051(0x1c4)](function(_0x5c29a9){const _0x76007e=_0x10c051;logger[_0x76007e(0x1b8)](JSON[_0x76007e(0x1c7)](_0x5c29a9));});});},Migration[a1116_0x4856f0(0x1ce)][a1116_0x4856f0(0x1ba)]=function(_0x4a2ecb,_0x4fb670){const _0x48514d=a1116_0x4856f0,_0x4409ba=this;this[_0x48514d(0x1c8)][_0x48514d(0x1d1)](function(){const _0x12900d=_0x48514d;return _0x4409ba[_0x12900d(0x1ae)][_0x12900d(0x1ba)](_0x4a2ecb,_0x4fb670)[_0x12900d(0x1cc)](function(){const _0x318ad3=_0x12900d;logger['info'](_0x318ad3(0x1c1),_0x4fb670,_0x4a2ecb);})[_0x12900d(0x1c4)](function(_0x354baf){const _0x331ab0=_0x12900d;logger[_0x331ab0(0x1b8)](util['inspect'](_0x354baf,{'showHidden':![],'depth':null}));});});},Migration[a1116_0x4856f0(0x1ce)]['renameColumn']=function(_0x43fd4e,_0x22ba95,_0x33eb5b){const _0x5446f8=a1116_0x4856f0,_0x212939=this;this[_0x5446f8(0x1c8)][_0x5446f8(0x1d1)](function(){const _0x28dcdc=_0x5446f8;return _0x212939[_0x28dcdc(0x1ae)][_0x28dcdc(0x1ac)](_0x43fd4e,_0x22ba95,_0x33eb5b)[_0x28dcdc(0x1cc)](function(){const _0x86ca96=_0x28dcdc;logger['info'](_0x86ca96(0x1b5),_0x22ba95,_0x33eb5b,_0x43fd4e);})[_0x28dcdc(0x1c4)](function(_0x36cebf){const _0x18d70c=_0x28dcdc;logger[_0x18d70c(0x1b8)](util[_0x18d70c(0x1c2)](_0x36cebf,{'showHidden':![],'depth':null}));});});},Migration[a1116_0x4856f0(0x1ce)][a1116_0x4856f0(0x1d2)]=function(_0x5e2653){this['sequence']['enqueue'](function(){return _0x5e2653();});},module['exports']={'up':function(_0x17a873,_0x1a9cc1){return new Promise(function(_0x2f38de){const _0x2354d6=a1116_0x590d,_0x5b5ddd=new Migration(_0x17a873);_0x5b5ddd[_0x2354d6(0x1bb)]('report_call',_0x2354d6(0x1be),{'type':_0x1a9cc1[_0x2354d6(0x1b0)]}),_0x5b5ddd[_0x2354d6(0x1bb)](_0x2354d6(0x1b4),'originatecalleridnum',{'type':_0x1a9cc1[_0x2354d6(0x1b2)]}),_0x5b5ddd[_0x2354d6(0x1bb)](_0x2354d6(0x1b4),_0x2354d6(0x1ad),{'type':_0x1a9cc1[_0x2354d6(0x1b2)]}),_0x5b5ddd[_0x2354d6(0x1bb)](_0x2354d6(0x1b7),_0x2354d6(0x1bc),{'type':_0x1a9cc1[_0x2354d6(0x1b2)]}),_0x5b5ddd[_0x2354d6(0x1bb)](_0x2354d6(0x1b7),'originatecalleridname',{'type':_0x1a9cc1[_0x2354d6(0x1b2)]}),_0x5b5ddd[_0x2354d6(0x1bb)](_0x2354d6(0x1c5),_0x2354d6(0x1c0),{'type':_0x1a9cc1[_0x2354d6(0x1b2)]}),_0x5b5ddd[_0x2354d6(0x1bb)](_0x2354d6(0x1c5),_0x2354d6(0x1ca),{'type':_0x1a9cc1[_0x2354d6(0x1b2)]}),_0x5b5ddd[_0x2354d6(0x1d2)](_0x2f38de);});},'down':function(){}}; \ No newline at end of file +const a1116_0x4742=['addColumn','STRING','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','util','info','removeIndex','sequence','changeColumn','prototype','cm_contacts','cm_hopper_final','query','fb_data','addIndex\x20%s\x20%s\x20%s','cm_hopper_history','originatecalleridnum','stringify','Added\x20column\x20%s\x20to\x20%s','then','removeColumn','exports','originatecalleridname','finally','queryInterface','final','tail','table\x20dropped\x20%s','query\x20%s','catch','Removed\x20column\x20%s\x20from\x20%s','enqueue','addIndex','inspect','renameColumn','INTEGER','report_call','removeIndex\x20%s\x20%s'];(function(_0x30ac45,_0x210e1a){const _0x4742bd=function(_0x1e19f8){while(--_0x1e19f8){_0x30ac45['push'](_0x30ac45['shift']());}};_0x4742bd(++_0x210e1a);}(a1116_0x4742,0x14c));const a1116_0x1e19=function(_0x30ac45,_0x210e1a){_0x30ac45=_0x30ac45-0xd2;let _0x4742bd=a1116_0x4742[_0x30ac45];return _0x4742bd;};const a1116_0x46e065=a1116_0x1e19;'use strict';const util=require(a1116_0x46e065(0xd5)),logger=require(a1116_0x46e065(0xf9))(a1116_0x46e065(0xd4)),Sequence=function(){};Sequence[a1116_0x46e065(0xda)][a1116_0x46e065(0xf0)]=function(_0x36ca91){const _0x3061dc=a1116_0x46e065;this[_0x3061dc(0xeb)]=this['tail']?this['tail'][_0x3061dc(0xe8)](_0x36ca91):_0x36ca91();};const Migration=function(_0x46caf1){const _0x54972a=a1116_0x46e065;this[_0x54972a(0xe9)]=_0x46caf1,this[_0x54972a(0xd8)]=new Sequence();};Migration[a1116_0x46e065(0xda)][a1116_0x46e065(0xd9)]=function(_0x512aa7,_0x2bbec6,_0x43370f){const _0x4f868e=a1116_0x46e065,_0x81e9b4=this;this['sequence'][_0x4f868e(0xf0)](function(){const _0x2e84f2=_0x4f868e;return _0x81e9b4[_0x2e84f2(0xe9)][_0x2e84f2(0xd9)](_0x512aa7,_0x2bbec6,_0x43370f)['then'](function(){const _0x387b35=_0x2e84f2;logger['info'](_0x387b35(0xd3),_0x2bbec6,_0x512aa7);})[_0x2e84f2(0xee)](function(_0x47b869){const _0x147648=_0x2e84f2;logger['info'](JSON[_0x147648(0xe2)](_0x47b869));});});},Migration[a1116_0x46e065(0xda)]['addColumn']=function(_0x33c3ef,_0x48c7f8,_0x1d3dbc){const _0x39bfe4=a1116_0x46e065,_0x1e31ee=this;this[_0x39bfe4(0xd8)][_0x39bfe4(0xf0)](function(){const _0x8a9834=_0x39bfe4;return _0x1e31ee[_0x8a9834(0xe9)][_0x8a9834(0xf7)](_0x33c3ef,_0x48c7f8,_0x1d3dbc)['then'](function(){const _0x242cb8=_0x8a9834;logger[_0x242cb8(0xd6)](_0x242cb8(0xe3),_0x48c7f8,_0x33c3ef);})[_0x8a9834(0xee)](function(_0x49c13a){const _0x3a3d94=_0x8a9834;logger[_0x3a3d94(0xd6)](JSON[_0x3a3d94(0xe2)](_0x49c13a));});});},Migration[a1116_0x46e065(0xda)][a1116_0x46e065(0xd2)]=function(_0x51b5e9){const _0x12acdd=a1116_0x46e065,_0x2e8d46=this;this[_0x12acdd(0xd8)][_0x12acdd(0xf0)](function(){const _0x1403ff=_0x12acdd;return _0x2e8d46[_0x1403ff(0xe9)][_0x1403ff(0xd2)](_0x51b5e9,{'force':!![]})[_0x1403ff(0xe4)](function(){const _0x46d86c=_0x1403ff;logger[_0x46d86c(0xd6)](_0x46d86c(0xec),_0x51b5e9);})[_0x1403ff(0xee)](function(_0x143179){const _0x42ad94=_0x1403ff;logger[_0x42ad94(0xd6)](JSON[_0x42ad94(0xe2)](_0x143179));});});},Migration[a1116_0x46e065(0xda)][a1116_0x46e065(0xf1)]=function(_0x3641da,_0x3da45d,_0x563512){const _0x283a64=a1116_0x46e065,_0xd6b2f3=this;this[_0x283a64(0xd8)]['enqueue'](function(){const _0x345416=_0x283a64;return _0xd6b2f3['queryInterface'][_0x345416(0xf1)](_0x3641da,_0x3da45d,{'indexName':_0x563512})[_0x345416(0xe4)](function(){const _0x5b5d7d=_0x345416;logger[_0x5b5d7d(0xd6)](_0x5b5d7d(0xdf),_0x3641da,_0x3da45d['join'](','),_0x563512);})[_0x345416(0xee)](function(_0x54dd4c){const _0x4c4189=_0x345416;logger[_0x4c4189(0xd6)](JSON[_0x4c4189(0xe2)](_0x54dd4c));});});},Migration['prototype'][a1116_0x46e065(0xd7)]=function(_0x32755e,_0x10af8f){const _0x12533b=this;this['sequence']['enqueue'](function(){const _0x45428e=a1116_0x1e19;return _0x12533b[_0x45428e(0xe9)][_0x45428e(0xd7)](_0x32755e,_0x10af8f)[_0x45428e(0xe4)](function(){const _0x460755=_0x45428e;logger[_0x460755(0xd6)](_0x460755(0xf6),_0x32755e,_0x10af8f);})['catch'](function(_0x5220c4){const _0x441206=_0x45428e;logger['info'](JSON[_0x441206(0xe2)](_0x5220c4));});});},Migration[a1116_0x46e065(0xda)][a1116_0x46e065(0xdd)]=function(_0x6527d6){const _0xff63e4=this;this['sequence']['enqueue'](function(){const _0xe3a392=a1116_0x1e19;return _0xff63e4['queryInterface']['sequelize'][_0xe3a392(0xdd)](_0x6527d6)[_0xe3a392(0xe4)](function(){const _0x2df612=_0xe3a392;logger[_0x2df612(0xd6)](_0x2df612(0xed),_0x6527d6);})[_0xe3a392(0xee)](function(_0xcc6a03){const _0xf1e2b7=_0xe3a392;logger[_0xf1e2b7(0xd6)](JSON[_0xf1e2b7(0xe2)](_0xcc6a03));});});},Migration[a1116_0x46e065(0xda)]['removeColumn']=function(_0x1a7b67,_0x1bd92a){const _0x5a1b87=a1116_0x46e065,_0x340eb0=this;this[_0x5a1b87(0xd8)]['enqueue'](function(){const _0x3c0fc8=_0x5a1b87;return _0x340eb0[_0x3c0fc8(0xe9)][_0x3c0fc8(0xe5)](_0x1a7b67,_0x1bd92a)['then'](function(){const _0x467d72=_0x3c0fc8;logger[_0x467d72(0xd6)](_0x467d72(0xef),_0x1bd92a,_0x1a7b67);})[_0x3c0fc8(0xee)](function(_0x18bcb3){const _0x2b0d37=_0x3c0fc8;logger[_0x2b0d37(0xd6)](util[_0x2b0d37(0xf2)](_0x18bcb3,{'showHidden':![],'depth':null}));});});},Migration[a1116_0x46e065(0xda)][a1116_0x46e065(0xf3)]=function(_0x4b573c,_0x1f4b02,_0x556681){const _0x54b181=this;this['sequence']['enqueue'](function(){const _0x195409=a1116_0x1e19;return _0x54b181[_0x195409(0xe9)][_0x195409(0xf3)](_0x4b573c,_0x1f4b02,_0x556681)[_0x195409(0xe4)](function(){const _0x5e5ccc=_0x195409;logger[_0x5e5ccc(0xd6)](_0x5e5ccc(0xfa),_0x1f4b02,_0x556681,_0x4b573c);})[_0x195409(0xee)](function(_0xb60ee8){const _0x382bf1=_0x195409;logger[_0x382bf1(0xd6)](util[_0x382bf1(0xf2)](_0xb60ee8,{'showHidden':![],'depth':null}));});});},Migration[a1116_0x46e065(0xda)]['final']=function(_0x10c687){const _0x448e3c=a1116_0x46e065;this[_0x448e3c(0xd8)][_0x448e3c(0xf0)](function(){return _0x10c687();});},module[a1116_0x46e065(0xe6)]={'up':function(_0x3e5e21,_0x3447d0){return new Promise(function(_0x5b4f72){const _0x46bad7=a1116_0x1e19,_0x2d04d7=new Migration(_0x3e5e21);_0x2d04d7['addColumn'](_0x46bad7(0xf5),'routeid',{'type':_0x3447d0[_0x46bad7(0xf4)]}),_0x2d04d7[_0x46bad7(0xf7)](_0x46bad7(0xdc),_0x46bad7(0xe1),{'type':_0x3447d0[_0x46bad7(0xf8)]}),_0x2d04d7[_0x46bad7(0xf7)](_0x46bad7(0xdc),_0x46bad7(0xe7),{'type':_0x3447d0['STRING']}),_0x2d04d7['addColumn'](_0x46bad7(0xe0),_0x46bad7(0xe1),{'type':_0x3447d0['STRING']}),_0x2d04d7[_0x46bad7(0xf7)](_0x46bad7(0xe0),'originatecalleridname',{'type':_0x3447d0[_0x46bad7(0xf8)]}),_0x2d04d7[_0x46bad7(0xf7)](_0x46bad7(0xdb),'wechat',{'type':_0x3447d0['STRING']}),_0x2d04d7[_0x46bad7(0xf7)](_0x46bad7(0xdb),_0x46bad7(0xde),{'type':_0x3447d0[_0x46bad7(0xf8)]}),_0x2d04d7[_0x46bad7(0xea)](_0x5b4f72);});},'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 c7579ed..091141f 100644 --- a/server/migrations/2.0.74.js +++ b/server/migrations/2.0.74.js @@ -1 +1 @@ -const a1117_0x1577=['../config/logger','join','query','dropTable','queryInterface','removeColumn','addIndex','inspect','catch','enqueue','finally','prototype','sequelize','tail','then','renameColumn','info','sequence','changeColumn','util','Added\x20column\x20%s\x20to\x20%s','stringify','final','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','removeIndex','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s'];(function(_0x535120,_0x226b2a){const _0x157778=function(_0x366d05){while(--_0x366d05){_0x535120['push'](_0x535120['shift']());}};_0x157778(++_0x226b2a);}(a1117_0x1577,0x116));const a1117_0x366d=function(_0x535120,_0x226b2a){_0x535120=_0x535120-0x1cb;let _0x157778=a1117_0x1577[_0x535120];return _0x157778;};const a1117_0x2ac040=a1117_0x366d;'use strict';const util=require(a1117_0x2ac040(0x1cd)),logger=require(a1117_0x2ac040(0x1d7))('migration'),Sequence=function(){};Sequence[a1117_0x2ac040(0x1e2)][a1117_0x2ac040(0x1e0)]=function(_0x5efdeb){const _0x4c2a29=a1117_0x2ac040;this[_0x4c2a29(0x1e4)]=this['tail']?this[_0x4c2a29(0x1e4)][_0x4c2a29(0x1e1)](_0x5efdeb):_0x5efdeb();};const Migration=function(_0x16379e){const _0x5688bd=a1117_0x2ac040;this[_0x5688bd(0x1db)]=_0x16379e,this[_0x5688bd(0x1cb)]=new Sequence();};Migration[a1117_0x2ac040(0x1e2)][a1117_0x2ac040(0x1cc)]=function(_0x568508,_0xd1b9fd,_0xb62398){const _0x13ae9c=a1117_0x2ac040,_0x5d72b4=this;this[_0x13ae9c(0x1cb)][_0x13ae9c(0x1e0)](function(){return _0x5d72b4['queryInterface']['changeColumn'](_0x568508,_0xd1b9fd,_0xb62398)['then'](function(){const _0xb219f4=a1117_0x366d;logger[_0xb219f4(0x1e7)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xd1b9fd,_0x568508);})['catch'](function(_0xcfe902){const _0x3ac11a=a1117_0x366d;logger[_0x3ac11a(0x1e7)](JSON[_0x3ac11a(0x1cf)](_0xcfe902));});});},Migration[a1117_0x2ac040(0x1e2)]['addColumn']=function(_0x421e06,_0x3b0263,_0x502b24){const _0x177b44=a1117_0x2ac040,_0x1ee992=this;this[_0x177b44(0x1cb)][_0x177b44(0x1e0)](function(){const _0x31cc17=_0x177b44;return _0x1ee992[_0x31cc17(0x1db)]['addColumn'](_0x421e06,_0x3b0263,_0x502b24)[_0x31cc17(0x1e5)](function(){const _0x4fa988=_0x31cc17;logger[_0x4fa988(0x1e7)](_0x4fa988(0x1ce),_0x3b0263,_0x421e06);})[_0x31cc17(0x1df)](function(_0x178e15){const _0x212738=_0x31cc17;logger[_0x212738(0x1e7)](JSON[_0x212738(0x1cf)](_0x178e15));});});},Migration[a1117_0x2ac040(0x1e2)][a1117_0x2ac040(0x1da)]=function(_0x44eda6){const _0x59535c=a1117_0x2ac040,_0xe067e8=this;this[_0x59535c(0x1cb)][_0x59535c(0x1e0)](function(){const _0x101e36=_0x59535c;return _0xe067e8[_0x101e36(0x1db)][_0x101e36(0x1da)](_0x44eda6,{'force':!![]})['then'](function(){const _0x526f26=_0x101e36;logger[_0x526f26(0x1e7)](_0x526f26(0x1d1),_0x44eda6);})[_0x101e36(0x1df)](function(_0x44735f){const _0x5f3147=_0x101e36;logger[_0x5f3147(0x1e7)](JSON[_0x5f3147(0x1cf)](_0x44735f));});});},Migration[a1117_0x2ac040(0x1e2)]['addIndex']=function(_0x3fefb1,_0x2f4192,_0x59dfe9){const _0x13046b=a1117_0x2ac040,_0x373763=this;this['sequence'][_0x13046b(0x1e0)](function(){const _0x4c97d2=_0x13046b;return _0x373763[_0x4c97d2(0x1db)][_0x4c97d2(0x1dd)](_0x3fefb1,_0x2f4192,{'indexName':_0x59dfe9})[_0x4c97d2(0x1e5)](function(){const _0x15bf1a=_0x4c97d2;logger[_0x15bf1a(0x1e7)]('addIndex\x20%s\x20%s\x20%s',_0x3fefb1,_0x2f4192[_0x15bf1a(0x1d8)](','),_0x59dfe9);})[_0x4c97d2(0x1df)](function(_0x86d2f4){const _0x44d408=_0x4c97d2;logger['info'](JSON[_0x44d408(0x1cf)](_0x86d2f4));});});},Migration[a1117_0x2ac040(0x1e2)]['removeIndex']=function(_0x9591e,_0x1ed69d){const _0x443225=a1117_0x2ac040,_0x48e470=this;this['sequence'][_0x443225(0x1e0)](function(){const _0x30789a=_0x443225;return _0x48e470[_0x30789a(0x1db)][_0x30789a(0x1d4)](_0x9591e,_0x1ed69d)[_0x30789a(0x1e5)](function(){const _0xbaec3=_0x30789a;logger[_0xbaec3(0x1e7)](_0xbaec3(0x1d6),_0x9591e,_0x1ed69d);})[_0x30789a(0x1df)](function(_0x1fb16a){const _0x34611e=_0x30789a;logger[_0x34611e(0x1e7)](JSON[_0x34611e(0x1cf)](_0x1fb16a));});});},Migration[a1117_0x2ac040(0x1e2)]['query']=function(_0x56ae48){const _0x345a4e=a1117_0x2ac040,_0x3f71ac=this;this[_0x345a4e(0x1cb)]['enqueue'](function(){const _0x1633a6=_0x345a4e;return _0x3f71ac[_0x1633a6(0x1db)][_0x1633a6(0x1e3)][_0x1633a6(0x1d9)](_0x56ae48)['then'](function(){const _0x1cd9a4=_0x1633a6;logger[_0x1cd9a4(0x1e7)]('query\x20%s',_0x56ae48);})[_0x1633a6(0x1df)](function(_0x32422f){const _0xb5de43=_0x1633a6;logger[_0xb5de43(0x1e7)](JSON['stringify'](_0x32422f));});});},Migration[a1117_0x2ac040(0x1e2)][a1117_0x2ac040(0x1dc)]=function(_0x263f18,_0x32faee){const _0x2f9340=this;this['sequence']['enqueue'](function(){const _0x4742f1=a1117_0x366d;return _0x2f9340['queryInterface'][_0x4742f1(0x1dc)](_0x263f18,_0x32faee)[_0x4742f1(0x1e5)](function(){const _0x404325=_0x4742f1;logger[_0x404325(0x1e7)](_0x404325(0x1d5),_0x32faee,_0x263f18);})['catch'](function(_0x408d13){const _0x5b5bb3=_0x4742f1;logger[_0x5b5bb3(0x1e7)](util[_0x5b5bb3(0x1de)](_0x408d13,{'showHidden':![],'depth':null}));});});},Migration[a1117_0x2ac040(0x1e2)][a1117_0x2ac040(0x1e6)]=function(_0x1292cf,_0x40f4f3,_0x44048b){const _0xe89ad3=a1117_0x2ac040,_0x3bbc66=this;this[_0xe89ad3(0x1cb)][_0xe89ad3(0x1e0)](function(){const _0x4d88e1=_0xe89ad3;return _0x3bbc66[_0x4d88e1(0x1db)][_0x4d88e1(0x1e6)](_0x1292cf,_0x40f4f3,_0x44048b)[_0x4d88e1(0x1e5)](function(){const _0x3b9509=_0x4d88e1;logger[_0x3b9509(0x1e7)](_0x3b9509(0x1d2),_0x40f4f3,_0x44048b,_0x1292cf);})[_0x4d88e1(0x1df)](function(_0xc116d6){const _0xe6898b=_0x4d88e1;logger[_0xe6898b(0x1e7)](util[_0xe6898b(0x1de)](_0xc116d6,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1117_0x2ac040(0x1d0)]=function(_0x355f22){const _0x2218a5=a1117_0x2ac040;this[_0x2218a5(0x1cb)]['enqueue'](function(){return _0x355f22();});},module[a1117_0x2ac040(0x1d3)]={'up':function(_0x321f8f){return new Promise(function(_0x26d22a){const _0x34c0ff=new Migration(_0x321f8f);_0x34c0ff['final'](_0x26d22a);});},'down':function(){}}; \ No newline at end of file +const a1117_0x3b95=['Added\x20column\x20%s\x20to\x20%s','dropTable','sequelize','query\x20%s','then','queryInterface','sequence','prototype','join','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex\x20%s\x20%s\x20%s','finally','changeColumn','renameColumn','../config/logger','removeIndex\x20%s\x20%s','info','catch','stringify','exports','tail','query','util','addColumn','addIndex','final','inspect','removeColumn','table\x20dropped\x20%s','migration'];(function(_0xe7ac17,_0x58c0a6){const _0x3b95de=function(_0x528dde){while(--_0x528dde){_0xe7ac17['push'](_0xe7ac17['shift']());}};_0x3b95de(++_0x58c0a6);}(a1117_0x3b95,0x150));const a1117_0x528d=function(_0xe7ac17,_0x58c0a6){_0xe7ac17=_0xe7ac17-0x12d;let _0x3b95de=a1117_0x3b95[_0xe7ac17];return _0x3b95de;};const a1117_0x5d31a3=a1117_0x528d;'use strict';const util=require(a1117_0x5d31a3(0x149)),logger=require(a1117_0x5d31a3(0x141))(a1117_0x5d31a3(0x131)),Sequence=function(){};Sequence[a1117_0x5d31a3(0x139)][a1117_0x5d31a3(0x13b)]=function(_0x43158a){const _0x3a8bf6=a1117_0x5d31a3;this[_0x3a8bf6(0x147)]=this[_0x3a8bf6(0x147)]?this['tail'][_0x3a8bf6(0x13e)](_0x43158a):_0x43158a();};const Migration=function(_0x4e9925){const _0x2c96cb=a1117_0x5d31a3;this[_0x2c96cb(0x137)]=_0x4e9925,this[_0x2c96cb(0x138)]=new Sequence();};Migration['prototype'][a1117_0x5d31a3(0x13f)]=function(_0x118e84,_0x3bcf03,_0x540473){const _0x3db579=a1117_0x5d31a3,_0x326d33=this;this[_0x3db579(0x138)][_0x3db579(0x13b)](function(){const _0x20921f=_0x3db579;return _0x326d33[_0x20921f(0x137)]['changeColumn'](_0x118e84,_0x3bcf03,_0x540473)[_0x20921f(0x136)](function(){const _0x4313b=_0x20921f;logger[_0x4313b(0x143)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3bcf03,_0x118e84);})['catch'](function(_0x3a3347){const _0x1c6c3c=_0x20921f;logger[_0x1c6c3c(0x143)](JSON[_0x1c6c3c(0x145)](_0x3a3347));});});},Migration[a1117_0x5d31a3(0x139)][a1117_0x5d31a3(0x14a)]=function(_0x5a39a8,_0x35280e,_0x1bf001){const _0x26818b=a1117_0x5d31a3,_0x9ed808=this;this[_0x26818b(0x138)][_0x26818b(0x13b)](function(){const _0x1564b4=_0x26818b;return _0x9ed808[_0x1564b4(0x137)][_0x1564b4(0x14a)](_0x5a39a8,_0x35280e,_0x1bf001)[_0x1564b4(0x136)](function(){const _0x56d21e=_0x1564b4;logger[_0x56d21e(0x143)](_0x56d21e(0x132),_0x35280e,_0x5a39a8);})[_0x1564b4(0x144)](function(_0x10f453){logger['info'](JSON['stringify'](_0x10f453));});});},Migration[a1117_0x5d31a3(0x139)][a1117_0x5d31a3(0x133)]=function(_0xe89fd7){const _0x4117c8=a1117_0x5d31a3,_0x5ab8d9=this;this[_0x4117c8(0x138)][_0x4117c8(0x13b)](function(){const _0x59c778=_0x4117c8;return _0x5ab8d9[_0x59c778(0x137)]['dropTable'](_0xe89fd7,{'force':!![]})[_0x59c778(0x136)](function(){const _0x24e903=_0x59c778;logger[_0x24e903(0x143)](_0x24e903(0x130),_0xe89fd7);})['catch'](function(_0x3828e6){const _0xd1cbf=_0x59c778;logger[_0xd1cbf(0x143)](JSON[_0xd1cbf(0x145)](_0x3828e6));});});},Migration[a1117_0x5d31a3(0x139)][a1117_0x5d31a3(0x14b)]=function(_0x401198,_0x26a6c1,_0x3b3ae1){const _0x22c141=a1117_0x5d31a3,_0x40bc6b=this;this[_0x22c141(0x138)][_0x22c141(0x13b)](function(){const _0xcbae23=_0x22c141;return _0x40bc6b[_0xcbae23(0x137)][_0xcbae23(0x14b)](_0x401198,_0x26a6c1,{'indexName':_0x3b3ae1})[_0xcbae23(0x136)](function(){const _0x212220=_0xcbae23;logger[_0x212220(0x143)](_0x212220(0x13d),_0x401198,_0x26a6c1[_0x212220(0x13a)](','),_0x3b3ae1);})[_0xcbae23(0x144)](function(_0x68b38b){const _0x1b0b3f=_0xcbae23;logger[_0x1b0b3f(0x143)](JSON[_0x1b0b3f(0x145)](_0x68b38b));});});},Migration[a1117_0x5d31a3(0x139)]['removeIndex']=function(_0x418317,_0x2b2556){const _0x33e9de=a1117_0x5d31a3,_0x51eeb6=this;this[_0x33e9de(0x138)][_0x33e9de(0x13b)](function(){const _0x1a0ecf=_0x33e9de;return _0x51eeb6[_0x1a0ecf(0x137)]['removeIndex'](_0x418317,_0x2b2556)[_0x1a0ecf(0x136)](function(){const _0x564215=_0x1a0ecf;logger[_0x564215(0x143)](_0x564215(0x142),_0x418317,_0x2b2556);})[_0x1a0ecf(0x144)](function(_0x5d965b){const _0x583c64=_0x1a0ecf;logger[_0x583c64(0x143)](JSON[_0x583c64(0x145)](_0x5d965b));});});},Migration[a1117_0x5d31a3(0x139)]['query']=function(_0x548a4c){const _0x17a4f5=a1117_0x5d31a3,_0x36e911=this;this['sequence'][_0x17a4f5(0x13b)](function(){const _0x2ef75e=_0x17a4f5;return _0x36e911[_0x2ef75e(0x137)][_0x2ef75e(0x134)][_0x2ef75e(0x148)](_0x548a4c)[_0x2ef75e(0x136)](function(){const _0x4ed68c=_0x2ef75e;logger['info'](_0x4ed68c(0x135),_0x548a4c);})['catch'](function(_0x1b898a){const _0x7e748b=_0x2ef75e;logger[_0x7e748b(0x143)](JSON['stringify'](_0x1b898a));});});},Migration[a1117_0x5d31a3(0x139)][a1117_0x5d31a3(0x12f)]=function(_0x169ece,_0x25e42a){const _0x290d87=a1117_0x5d31a3,_0x1dd8c7=this;this['sequence'][_0x290d87(0x13b)](function(){const _0x2cfe42=_0x290d87;return _0x1dd8c7['queryInterface'][_0x2cfe42(0x12f)](_0x169ece,_0x25e42a)[_0x2cfe42(0x136)](function(){const _0xbed1eb=_0x2cfe42;logger[_0xbed1eb(0x143)]('Removed\x20column\x20%s\x20from\x20%s',_0x25e42a,_0x169ece);})['catch'](function(_0x13ea4d){const _0x453b03=_0x2cfe42;logger[_0x453b03(0x143)](util[_0x453b03(0x12e)](_0x13ea4d,{'showHidden':![],'depth':null}));});});},Migration[a1117_0x5d31a3(0x139)][a1117_0x5d31a3(0x140)]=function(_0x364e8e,_0x3353f6,_0x1fa88f){const _0x15dc21=a1117_0x5d31a3,_0x5aba57=this;this[_0x15dc21(0x138)][_0x15dc21(0x13b)](function(){const _0x2ea673=_0x15dc21;return _0x5aba57[_0x2ea673(0x137)]['renameColumn'](_0x364e8e,_0x3353f6,_0x1fa88f)[_0x2ea673(0x136)](function(){const _0x3d1e9d=_0x2ea673;logger[_0x3d1e9d(0x143)](_0x3d1e9d(0x13c),_0x3353f6,_0x1fa88f,_0x364e8e);})[_0x2ea673(0x144)](function(_0xa4111c){const _0x29f352=_0x2ea673;logger['info'](util[_0x29f352(0x12e)](_0xa4111c,{'showHidden':![],'depth':null}));});});},Migration[a1117_0x5d31a3(0x139)][a1117_0x5d31a3(0x12d)]=function(_0x4135e4){this['sequence']['enqueue'](function(){return _0x4135e4();});},module[a1117_0x5d31a3(0x146)]={'up':function(_0x55a160){return new Promise(function(_0x3a7379){const _0x2f704f=a1117_0x528d,_0x2df40c=new Migration(_0x55a160);_0x2df40c[_0x2f704f(0x12d)](_0x3a7379);});},'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 a4dbd70..ab1e4fe 100644 --- a/server/migrations/2.0.75.js +++ b/server/migrations/2.0.75.js @@ -1 +1 @@ -const a1118_0x30f7=['renameColumn','sequelize','Added\x20column\x20%s\x20to\x20%s','inspect','addIndex\x20%s\x20%s\x20%s','queryInterface','prototype','query','table\x20dropped\x20%s','stringify','removeColumn','final','exports','../config/logger','removeIndex','Removed\x20column\x20%s\x20from\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','then','addColumn','changeColumn','finally','sequence','enqueue','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','info','tail','catch','addIndex'];(function(_0x4fb31a,_0x4853e2){const _0x30f7dd=function(_0x1f767b){while(--_0x1f767b){_0x4fb31a['push'](_0x4fb31a['shift']());}};_0x30f7dd(++_0x4853e2);}(a1118_0x30f7,0x1ef));const a1118_0x1f76=function(_0x4fb31a,_0x4853e2){_0x4fb31a=_0x4fb31a-0xf1;let _0x30f7dd=a1118_0x30f7[_0x4fb31a];return _0x30f7dd;};const a1118_0x12d286=a1118_0x1f76;'use strict';const util=require('util'),logger=require(a1118_0x12d286(0x10d))('migration'),Sequence=function(){};Sequence[a1118_0x12d286(0x106)]['enqueue']=function(_0x15dd85){const _0x362245=a1118_0x12d286;this[_0x362245(0xfd)]=this[_0x362245(0xfd)]?this[_0x362245(0xfd)][_0x362245(0xf6)](_0x15dd85):_0x15dd85();};const Migration=function(_0x1ab48c){const _0xbf4c1a=a1118_0x12d286;this['queryInterface']=_0x1ab48c,this[_0xbf4c1a(0xf7)]=new Sequence();};Migration[a1118_0x12d286(0x106)][a1118_0x12d286(0xf5)]=function(_0x2a8008,_0x661328,_0x12a4e8){const _0x4a2a75=a1118_0x12d286,_0x42a682=this;this[_0x4a2a75(0xf7)]['enqueue'](function(){const _0x2eeba4=_0x4a2a75;return _0x42a682[_0x2eeba4(0x105)][_0x2eeba4(0xf5)](_0x2a8008,_0x661328,_0x12a4e8)[_0x2eeba4(0xf3)](function(){const _0x156a43=_0x2eeba4;logger['info'](_0x156a43(0xf2),_0x661328,_0x2a8008);})['catch'](function(_0x1091ee){const _0x3618ed=_0x2eeba4;logger[_0x3618ed(0xfc)](JSON['stringify'](_0x1091ee));});});},Migration[a1118_0x12d286(0x106)][a1118_0x12d286(0xf4)]=function(_0x4f06eb,_0xefd8c8,_0x1ed3c8){const _0x2ceef3=a1118_0x12d286,_0x28faf5=this;this[_0x2ceef3(0xf7)]['enqueue'](function(){const _0x219b1e=_0x2ceef3;return _0x28faf5['queryInterface'][_0x219b1e(0xf4)](_0x4f06eb,_0xefd8c8,_0x1ed3c8)['then'](function(){const _0x44b44a=_0x219b1e;logger[_0x44b44a(0xfc)](_0x44b44a(0x102),_0xefd8c8,_0x4f06eb);})[_0x219b1e(0xfe)](function(_0x45e31e){const _0x5100ce=_0x219b1e;logger[_0x5100ce(0xfc)](JSON[_0x5100ce(0x109)](_0x45e31e));});});},Migration[a1118_0x12d286(0x106)]['dropTable']=function(_0x45ff90){const _0x46da2d=a1118_0x12d286,_0x40795a=this;this[_0x46da2d(0xf7)][_0x46da2d(0xf8)](function(){const _0x449572=_0x46da2d;return _0x40795a[_0x449572(0x105)][_0x449572(0xfb)](_0x45ff90,{'force':!![]})['then'](function(){const _0x2f49be=_0x449572;logger['info'](_0x2f49be(0x108),_0x45ff90);})[_0x449572(0xfe)](function(_0x41f5be){const _0xece0e0=_0x449572;logger[_0xece0e0(0xfc)](JSON[_0xece0e0(0x109)](_0x41f5be));});});},Migration['prototype']['addIndex']=function(_0x1a21f2,_0x3b687f,_0x854b72){const _0x3d6eb4=this;this['sequence']['enqueue'](function(){const _0x3bb740=a1118_0x1f76;return _0x3d6eb4[_0x3bb740(0x105)][_0x3bb740(0xff)](_0x1a21f2,_0x3b687f,{'indexName':_0x854b72})[_0x3bb740(0xf3)](function(){const _0xf0dc05=_0x3bb740;logger[_0xf0dc05(0xfc)](_0xf0dc05(0x104),_0x1a21f2,_0x3b687f[_0xf0dc05(0xf9)](','),_0x854b72);})['catch'](function(_0x40a695){const _0x2ecdb2=_0x3bb740;logger[_0x2ecdb2(0xfc)](JSON[_0x2ecdb2(0x109)](_0x40a695));});});},Migration[a1118_0x12d286(0x106)][a1118_0x12d286(0x10e)]=function(_0x2f2507,_0x10a3ab){const _0x533965=a1118_0x12d286,_0x19771c=this;this[_0x533965(0xf7)][_0x533965(0xf8)](function(){const _0x5a62fb=_0x533965;return _0x19771c['queryInterface']['removeIndex'](_0x2f2507,_0x10a3ab)[_0x5a62fb(0xf3)](function(){logger['info']('removeIndex\x20%s\x20%s',_0x2f2507,_0x10a3ab);})[_0x5a62fb(0xfe)](function(_0x73d771){const _0x3e9f68=_0x5a62fb;logger[_0x3e9f68(0xfc)](JSON[_0x3e9f68(0x109)](_0x73d771));});});},Migration[a1118_0x12d286(0x106)][a1118_0x12d286(0x107)]=function(_0x46bb5d){const _0x66bc6e=a1118_0x12d286,_0x282779=this;this['sequence'][_0x66bc6e(0xf8)](function(){const _0x32db88=_0x66bc6e;return _0x282779[_0x32db88(0x105)][_0x32db88(0x101)]['query'](_0x46bb5d)[_0x32db88(0xf3)](function(){logger['info']('query\x20%s',_0x46bb5d);})[_0x32db88(0xfe)](function(_0x77cc69){const _0x2db51=_0x32db88;logger['info'](JSON[_0x2db51(0x109)](_0x77cc69));});});},Migration[a1118_0x12d286(0x106)][a1118_0x12d286(0x10a)]=function(_0x43ff5f,_0x3bf384){const _0x5d0c23=a1118_0x12d286,_0x188438=this;this[_0x5d0c23(0xf7)][_0x5d0c23(0xf8)](function(){const _0x584fbe=_0x5d0c23;return _0x188438[_0x584fbe(0x105)][_0x584fbe(0x10a)](_0x43ff5f,_0x3bf384)[_0x584fbe(0xf3)](function(){const _0x449d4c=_0x584fbe;logger[_0x449d4c(0xfc)](_0x449d4c(0xf1),_0x3bf384,_0x43ff5f);})[_0x584fbe(0xfe)](function(_0x411cac){const _0x30804b=_0x584fbe;logger[_0x30804b(0xfc)](util['inspect'](_0x411cac,{'showHidden':![],'depth':null}));});});},Migration[a1118_0x12d286(0x106)][a1118_0x12d286(0x100)]=function(_0x2a457e,_0x17b851,_0x435186){const _0x3a3615=a1118_0x12d286,_0x45749b=this;this[_0x3a3615(0xf7)][_0x3a3615(0xf8)](function(){const _0x5c9862=_0x3a3615;return _0x45749b['queryInterface']['renameColumn'](_0x2a457e,_0x17b851,_0x435186)[_0x5c9862(0xf3)](function(){const _0x4c1e54=_0x5c9862;logger[_0x4c1e54(0xfc)](_0x4c1e54(0xfa),_0x17b851,_0x435186,_0x2a457e);})['catch'](function(_0x2244b3){const _0x205b96=_0x5c9862;logger['info'](util[_0x205b96(0x103)](_0x2244b3,{'showHidden':![],'depth':null}));});});},Migration[a1118_0x12d286(0x106)][a1118_0x12d286(0x10b)]=function(_0xad7caf){const _0xb7980=a1118_0x12d286;this[_0xb7980(0xf7)][_0xb7980(0xf8)](function(){return _0xad7caf();});},module[a1118_0x12d286(0x10c)]={'up':function(_0x41bab3){return new Promise(function(_0x48c781){const _0xebdfbd=a1118_0x1f76,_0x398099=new Migration(_0x41bab3);_0x398099[_0xebdfbd(0x10b)](_0x48c781);});},'down':function(){}}; \ No newline at end of file +const a1118_0x444f=['addColumn','addIndex','queryInterface','util','exports','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','join','removeColumn','Removed\x20column\x20%s\x20from\x20%s','query','then','inspect','table\x20dropped\x20%s','prototype','stringify','renameColumn','info','sequelize','migration','../config/logger','enqueue','sequence','catch','tail','query\x20%s','changeColumn','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x31af28,_0x2c00dd){const _0x444ff0=function(_0x700af8){while(--_0x700af8){_0x31af28['push'](_0x31af28['shift']());}};_0x444ff0(++_0x2c00dd);}(a1118_0x444f,0x139));const a1118_0x700a=function(_0x31af28,_0x2c00dd){_0x31af28=_0x31af28-0x1ae;let _0x444ff0=a1118_0x444f[_0x31af28];return _0x444ff0;};const a1118_0x548f67=a1118_0x700a;'use strict';const util=require(a1118_0x548f67(0x1c2)),logger=require(a1118_0x548f67(0x1b6))(a1118_0x548f67(0x1b5)),Sequence=function(){};Sequence[a1118_0x548f67(0x1b0)][a1118_0x548f67(0x1b7)]=function(_0x7da043){const _0x379c2e=a1118_0x548f67;this[_0x379c2e(0x1ba)]=this['tail']?this['tail'][_0x379c2e(0x1c4)](_0x7da043):_0x7da043();};const Migration=function(_0x58eb46){const _0x404a1b=a1118_0x548f67;this[_0x404a1b(0x1c1)]=_0x58eb46,this[_0x404a1b(0x1b8)]=new Sequence();};Migration[a1118_0x548f67(0x1b0)][a1118_0x548f67(0x1bc)]=function(_0x523c16,_0x4b2d1e,_0x2c8361){const _0x2d1886=a1118_0x548f67,_0x2f3509=this;this['sequence'][_0x2d1886(0x1b7)](function(){const _0x110888=_0x2d1886;return _0x2f3509['queryInterface'][_0x110888(0x1bc)](_0x523c16,_0x4b2d1e,_0x2c8361)[_0x110888(0x1cb)](function(){const _0x5c6215=_0x110888;logger['info'](_0x5c6215(0x1c5),_0x4b2d1e,_0x523c16);})[_0x110888(0x1b9)](function(_0x1b7f19){const _0xc5db09=_0x110888;logger[_0xc5db09(0x1b3)](JSON['stringify'](_0x1b7f19));});});},Migration[a1118_0x548f67(0x1b0)][a1118_0x548f67(0x1bf)]=function(_0x3f6d63,_0x2691cd,_0x478982){const _0x558e97=a1118_0x548f67,_0x126dbe=this;this[_0x558e97(0x1b8)][_0x558e97(0x1b7)](function(){const _0x482ad6=_0x558e97;return _0x126dbe[_0x482ad6(0x1c1)][_0x482ad6(0x1bf)](_0x3f6d63,_0x2691cd,_0x478982)[_0x482ad6(0x1cb)](function(){const _0x5cf10f=_0x482ad6;logger[_0x5cf10f(0x1b3)](_0x5cf10f(0x1c6),_0x2691cd,_0x3f6d63);})['catch'](function(_0x58fda4){logger['info'](JSON['stringify'](_0x58fda4));});});},Migration['prototype']['dropTable']=function(_0x124946){const _0xb42112=a1118_0x548f67,_0x3a6b4f=this;this[_0xb42112(0x1b8)][_0xb42112(0x1b7)](function(){const _0x4647b2=_0xb42112;return _0x3a6b4f['queryInterface']['dropTable'](_0x124946,{'force':!![]})[_0x4647b2(0x1cb)](function(){const _0xc16a4a=_0x4647b2;logger[_0xc16a4a(0x1b3)](_0xc16a4a(0x1af),_0x124946);})[_0x4647b2(0x1b9)](function(_0x32d3b7){const _0x3db094=_0x4647b2;logger[_0x3db094(0x1b3)](JSON[_0x3db094(0x1b1)](_0x32d3b7));});});},Migration[a1118_0x548f67(0x1b0)][a1118_0x548f67(0x1c0)]=function(_0x1ef3bd,_0x322b86,_0x59f17e){const _0x25d2fb=a1118_0x548f67,_0x3d6f34=this;this[_0x25d2fb(0x1b8)][_0x25d2fb(0x1b7)](function(){const _0x2dd96b=_0x25d2fb;return _0x3d6f34['queryInterface'][_0x2dd96b(0x1c0)](_0x1ef3bd,_0x322b86,{'indexName':_0x59f17e})[_0x2dd96b(0x1cb)](function(){const _0x2286b3=_0x2dd96b;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x1ef3bd,_0x322b86[_0x2286b3(0x1c7)](','),_0x59f17e);})[_0x2dd96b(0x1b9)](function(_0x394ff5){const _0x79db9b=_0x2dd96b;logger[_0x79db9b(0x1b3)](JSON['stringify'](_0x394ff5));});});},Migration[a1118_0x548f67(0x1b0)][a1118_0x548f67(0x1bd)]=function(_0x2e28e6,_0x31cc09){const _0x37a3f6=a1118_0x548f67,_0x563bcd=this;this[_0x37a3f6(0x1b8)][_0x37a3f6(0x1b7)](function(){const _0x584db3=_0x37a3f6;return _0x563bcd['queryInterface'][_0x584db3(0x1bd)](_0x2e28e6,_0x31cc09)[_0x584db3(0x1cb)](function(){const _0x5e5374=_0x584db3;logger[_0x5e5374(0x1b3)]('removeIndex\x20%s\x20%s',_0x2e28e6,_0x31cc09);})[_0x584db3(0x1b9)](function(_0x11a1c5){const _0x4aa6fe=_0x584db3;logger[_0x4aa6fe(0x1b3)](JSON['stringify'](_0x11a1c5));});});},Migration[a1118_0x548f67(0x1b0)]['query']=function(_0x5e43ab){const _0x4f551a=a1118_0x548f67,_0x3de2fa=this;this['sequence'][_0x4f551a(0x1b7)](function(){const _0xa1a664=_0x4f551a;return _0x3de2fa['queryInterface'][_0xa1a664(0x1b4)][_0xa1a664(0x1ca)](_0x5e43ab)[_0xa1a664(0x1cb)](function(){const _0x319ffa=_0xa1a664;logger['info'](_0x319ffa(0x1bb),_0x5e43ab);})[_0xa1a664(0x1b9)](function(_0x195fd0){const _0xb22354=_0xa1a664;logger[_0xb22354(0x1b3)](JSON[_0xb22354(0x1b1)](_0x195fd0));});});},Migration[a1118_0x548f67(0x1b0)]['removeColumn']=function(_0x310219,_0x585140){const _0x518931=a1118_0x548f67,_0x405e37=this;this[_0x518931(0x1b8)][_0x518931(0x1b7)](function(){const _0x1a56bf=_0x518931;return _0x405e37[_0x1a56bf(0x1c1)][_0x1a56bf(0x1c8)](_0x310219,_0x585140)[_0x1a56bf(0x1cb)](function(){const _0x2a31e8=_0x1a56bf;logger[_0x2a31e8(0x1b3)](_0x2a31e8(0x1c9),_0x585140,_0x310219);})[_0x1a56bf(0x1b9)](function(_0x2cbda1){const _0x8a11aa=_0x1a56bf;logger[_0x8a11aa(0x1b3)](util[_0x8a11aa(0x1ae)](_0x2cbda1,{'showHidden':![],'depth':null}));});});},Migration[a1118_0x548f67(0x1b0)][a1118_0x548f67(0x1b2)]=function(_0x149ad4,_0x2cb9b7,_0x33e643){const _0x27edd4=a1118_0x548f67,_0x210742=this;this[_0x27edd4(0x1b8)][_0x27edd4(0x1b7)](function(){const _0x2862bb=_0x27edd4;return _0x210742[_0x2862bb(0x1c1)][_0x2862bb(0x1b2)](_0x149ad4,_0x2cb9b7,_0x33e643)[_0x2862bb(0x1cb)](function(){const _0x5c69a7=_0x2862bb;logger[_0x5c69a7(0x1b3)](_0x5c69a7(0x1be),_0x2cb9b7,_0x33e643,_0x149ad4);})[_0x2862bb(0x1b9)](function(_0x3d317b){const _0x304199=_0x2862bb;logger[_0x304199(0x1b3)](util[_0x304199(0x1ae)](_0x3d317b,{'showHidden':![],'depth':null}));});});},Migration[a1118_0x548f67(0x1b0)]['final']=function(_0x4efa9a){const _0x936c90=a1118_0x548f67;this[_0x936c90(0x1b8)][_0x936c90(0x1b7)](function(){return _0x4efa9a();});},module[a1118_0x548f67(0x1c3)]={'up':function(_0x2095de){return new Promise(function(_0xa2ed9e){const _0x27406a=new Migration(_0x2095de);_0x27406a['final'](_0xa2ed9e);});},'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 27efae1..82e4ccc 100644 --- a/server/migrations/2.0.76.js +++ b/server/migrations/2.0.76.js @@ -1 +1 @@ -const a1119_0x2567=['../config/logger','info','sequence','then','query','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','catch','ALTER\x20TABLE\x20report_chat_transfer\x20ENCRYPTION=\x27Y\x27;','stringify','users','exports','prototype','migration','Removed\x20column\x20%s\x20from\x20%s','dropTable','removeColumn','tail','TRUNCATE\x20sessions','ALTER\x20TABLE\x20report_openchannel_transfer\x20ENCRYPTION=\x27Y\x27;','util','addColumn','query\x20%s','changeColumn','inspect','sequelize','removeIndex\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex','hotdesk','ALTER\x20TABLE\x20report_fax_transfer\x20ENCRYPTION=\x27Y\x27;','addIndex\x20%s\x20%s\x20%s','addIndex','finally','renameColumn','enqueue'];(function(_0x4d0e65,_0x1685f1){const _0x2567e7=function(_0x4a333a){while(--_0x4a333a){_0x4d0e65['push'](_0x4d0e65['shift']());}};_0x2567e7(++_0x1685f1);}(a1119_0x2567,0x14f));const a1119_0x4a33=function(_0x4d0e65,_0x1685f1){_0x4d0e65=_0x4d0e65-0x11d;let _0x2567e7=a1119_0x2567[_0x4d0e65];return _0x2567e7;};const a1119_0x1c935b=a1119_0x4a33;'use strict';const util=require(a1119_0x1c935b(0x130)),logger=require(a1119_0x1c935b(0x140))(a1119_0x1c935b(0x129)),Sequence=function(){};Sequence[a1119_0x1c935b(0x128)][a1119_0x1c935b(0x13f)]=function(_0x5eec21){const _0x5a97b1=a1119_0x1c935b;this[_0x5a97b1(0x12d)]=this[_0x5a97b1(0x12d)]?this[_0x5a97b1(0x12d)][_0x5a97b1(0x13d)](_0x5eec21):_0x5eec21();};const Migration=function(_0x3f84d5){const _0x20d26a=a1119_0x1c935b;this[_0x20d26a(0x120)]=_0x3f84d5,this['sequence']=new Sequence();};Migration[a1119_0x1c935b(0x128)]['changeColumn']=function(_0x4d356d,_0x15c287,_0x24b9a8){const _0x51edd1=a1119_0x1c935b,_0x2f9f67=this;this['sequence'][_0x51edd1(0x13f)](function(){const _0x5b83d0=_0x51edd1;return _0x2f9f67[_0x5b83d0(0x120)][_0x5b83d0(0x133)](_0x4d356d,_0x15c287,_0x24b9a8)['then'](function(){const _0x3b0889=_0x5b83d0;logger[_0x3b0889(0x141)](_0x3b0889(0x137),_0x15c287,_0x4d356d);})[_0x5b83d0(0x123)](function(_0x665f27){logger['info'](JSON['stringify'](_0x665f27));});});},Migration[a1119_0x1c935b(0x128)]['addColumn']=function(_0x44f245,_0x4b75c0,_0x376a6b){const _0x191038=this;this['sequence']['enqueue'](function(){const _0x4c3b9c=a1119_0x4a33;return _0x191038['queryInterface'][_0x4c3b9c(0x131)](_0x44f245,_0x4b75c0,_0x376a6b)[_0x4c3b9c(0x11e)](function(){const _0x119745=_0x4c3b9c;logger[_0x119745(0x141)]('Added\x20column\x20%s\x20to\x20%s',_0x4b75c0,_0x44f245);})[_0x4c3b9c(0x123)](function(_0x520531){const _0x22c743=_0x4c3b9c;logger[_0x22c743(0x141)](JSON[_0x22c743(0x125)](_0x520531));});});},Migration['prototype'][a1119_0x1c935b(0x12b)]=function(_0x5ded27){const _0x3892de=a1119_0x1c935b,_0x39aed3=this;this[_0x3892de(0x11d)]['enqueue'](function(){const _0x110c5b=_0x3892de;return _0x39aed3[_0x110c5b(0x120)][_0x110c5b(0x12b)](_0x5ded27,{'force':!![]})[_0x110c5b(0x11e)](function(){const _0xfefc99=_0x110c5b;logger[_0xfefc99(0x141)](_0xfefc99(0x122),_0x5ded27);})[_0x110c5b(0x123)](function(_0x37c063){const _0x52d0f5=_0x110c5b;logger['info'](JSON[_0x52d0f5(0x125)](_0x37c063));});});},Migration[a1119_0x1c935b(0x128)][a1119_0x1c935b(0x13c)]=function(_0x2f9210,_0x4a3a4b,_0x23a3e3){const _0x4edf97=a1119_0x1c935b,_0x516e91=this;this[_0x4edf97(0x11d)][_0x4edf97(0x13f)](function(){const _0x571d07=_0x4edf97;return _0x516e91[_0x571d07(0x120)][_0x571d07(0x13c)](_0x2f9210,_0x4a3a4b,{'indexName':_0x23a3e3})[_0x571d07(0x11e)](function(){const _0x38b578=_0x571d07;logger['info'](_0x38b578(0x13b),_0x2f9210,_0x4a3a4b['join'](','),_0x23a3e3);})['catch'](function(_0x5e3b57){const _0x1d8e22=_0x571d07;logger[_0x1d8e22(0x141)](JSON[_0x1d8e22(0x125)](_0x5e3b57));});});},Migration['prototype'][a1119_0x1c935b(0x138)]=function(_0x54321b,_0x279ec5){const _0x38bf2a=a1119_0x1c935b,_0x18f9e1=this;this[_0x38bf2a(0x11d)][_0x38bf2a(0x13f)](function(){const _0x2cf83d=_0x38bf2a;return _0x18f9e1[_0x2cf83d(0x120)][_0x2cf83d(0x138)](_0x54321b,_0x279ec5)[_0x2cf83d(0x11e)](function(){const _0x47bed7=_0x2cf83d;logger[_0x47bed7(0x141)](_0x47bed7(0x136),_0x54321b,_0x279ec5);})[_0x2cf83d(0x123)](function(_0xd1824b){const _0x12a67e=_0x2cf83d;logger[_0x12a67e(0x141)](JSON[_0x12a67e(0x125)](_0xd1824b));});});},Migration[a1119_0x1c935b(0x128)][a1119_0x1c935b(0x11f)]=function(_0x52d2a4){const _0x3ddcc7=a1119_0x1c935b,_0x3d4834=this;this[_0x3ddcc7(0x11d)][_0x3ddcc7(0x13f)](function(){const _0x4b2283=_0x3ddcc7;return _0x3d4834['queryInterface'][_0x4b2283(0x135)][_0x4b2283(0x11f)](_0x52d2a4)[_0x4b2283(0x11e)](function(){const _0x226304=_0x4b2283;logger[_0x226304(0x141)](_0x226304(0x132),_0x52d2a4);})[_0x4b2283(0x123)](function(_0x24edfd){const _0x3746a2=_0x4b2283;logger['info'](JSON[_0x3746a2(0x125)](_0x24edfd));});});},Migration[a1119_0x1c935b(0x128)][a1119_0x1c935b(0x12c)]=function(_0x2fed1a,_0x1db17c){const _0x16fd81=a1119_0x1c935b,_0x463132=this;this['sequence'][_0x16fd81(0x13f)](function(){const _0x437cdd=_0x16fd81;return _0x463132[_0x437cdd(0x120)][_0x437cdd(0x12c)](_0x2fed1a,_0x1db17c)[_0x437cdd(0x11e)](function(){const _0x56d97a=_0x437cdd;logger[_0x56d97a(0x141)](_0x56d97a(0x12a),_0x1db17c,_0x2fed1a);})[_0x437cdd(0x123)](function(_0x40df83){const _0x2b1971=_0x437cdd;logger[_0x2b1971(0x141)](util['inspect'](_0x40df83,{'showHidden':![],'depth':null}));});});},Migration[a1119_0x1c935b(0x128)][a1119_0x1c935b(0x13e)]=function(_0x2855d0,_0x5689ed,_0x22a740){const _0x31d979=a1119_0x1c935b,_0x4de18d=this;this[_0x31d979(0x11d)][_0x31d979(0x13f)](function(){const _0x4d8055=_0x31d979;return _0x4de18d['queryInterface']['renameColumn'](_0x2855d0,_0x5689ed,_0x22a740)['then'](function(){const _0x418150=a1119_0x4a33;logger[_0x418150(0x141)](_0x418150(0x121),_0x5689ed,_0x22a740,_0x2855d0);})[_0x4d8055(0x123)](function(_0x1e09e9){const _0x1aee7b=_0x4d8055;logger[_0x1aee7b(0x141)](util[_0x1aee7b(0x134)](_0x1e09e9,{'showHidden':![],'depth':null}));});});},Migration[a1119_0x1c935b(0x128)]['final']=function(_0x4095f2){const _0x161f57=a1119_0x1c935b;this[_0x161f57(0x11d)][_0x161f57(0x13f)](function(){return _0x4095f2();});},module[a1119_0x1c935b(0x127)]={'up':function(_0xdf1c4d,_0x480b33){return new Promise(function(_0x1e3d2b){const _0x43550d=a1119_0x4a33,_0x1ade67=new Migration(_0xdf1c4d);_0x1ade67[_0x43550d(0x11f)](_0x43550d(0x12e)),_0x1ade67['query'](_0x43550d(0x124)),_0x1ade67[_0x43550d(0x11f)]('ALTER\x20TABLE\x20report_mail_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x1ade67['query'](_0x43550d(0x13a)),_0x1ade67[_0x43550d(0x11f)](_0x43550d(0x12f)),_0x1ade67[_0x43550d(0x11f)]('ALTER\x20TABLE\x20report_sms_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x1ade67[_0x43550d(0x131)](_0x43550d(0x126),_0x43550d(0x139),{'type':_0x480b33['BOOLEAN'],'defaultValue':![]}),_0x1ade67['final'](_0x1e3d2b);});},'down':function(){}}; \ No newline at end of file +const a1119_0x4514=['TRUNCATE\x20sessions','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','ALTER\x20TABLE\x20report_chat_transfer\x20ENCRYPTION=\x27Y\x27;','addColumn','prototype','info','removeColumn','then','addIndex\x20%s\x20%s\x20%s','renameColumn','finally','query','Added\x20column\x20%s\x20to\x20%s','join','util','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','tail','stringify','ALTER\x20TABLE\x20report_mail_transfer\x20ENCRYPTION=\x27Y\x27;','ALTER\x20TABLE\x20report_sms_transfer\x20ENCRYPTION=\x27Y\x27;','hotdesk','BOOLEAN','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','changeColumn','exports','sequelize','sequence','queryInterface','enqueue','users','catch','migration','final','addIndex'];(function(_0x218266,_0x32d79a){const _0x451480=function(_0x32c320){while(--_0x32c320){_0x218266['push'](_0x218266['shift']());}};_0x451480(++_0x32d79a);}(a1119_0x4514,0x151));const a1119_0x32c3=function(_0x218266,_0x32d79a){_0x218266=_0x218266-0x120;let _0x451480=a1119_0x4514[_0x218266];return _0x451480;};const a1119_0x25ce7b=a1119_0x32c3;'use strict';const util=require(a1119_0x25ce7b(0x135)),logger=require('../config/logger')(a1119_0x25ce7b(0x122)),Sequence=function(){};Sequence[a1119_0x25ce7b(0x12b)]['enqueue']=function(_0x295503){const _0x1817de=a1119_0x25ce7b;this[_0x1817de(0x138)]=this[_0x1817de(0x138)]?this[_0x1817de(0x138)][_0x1817de(0x131)](_0x295503):_0x295503();};const Migration=function(_0x24c93b){const _0x70178c=a1119_0x25ce7b;this[_0x70178c(0x144)]=_0x24c93b,this[_0x70178c(0x143)]=new Sequence();};Migration[a1119_0x25ce7b(0x12b)][a1119_0x25ce7b(0x140)]=function(_0x4e5d41,_0xff9bef,_0x150db6){const _0x3cc950=a1119_0x25ce7b,_0x39efcf=this;this[_0x3cc950(0x143)][_0x3cc950(0x145)](function(){const _0x537fcf=_0x3cc950;return _0x39efcf[_0x537fcf(0x144)][_0x537fcf(0x140)](_0x4e5d41,_0xff9bef,_0x150db6)[_0x537fcf(0x12e)](function(){const _0x46d704=_0x537fcf;logger[_0x46d704(0x12c)](_0x46d704(0x136),_0xff9bef,_0x4e5d41);})['catch'](function(_0xd4f5f3){logger['info'](JSON['stringify'](_0xd4f5f3));});});},Migration[a1119_0x25ce7b(0x12b)][a1119_0x25ce7b(0x12a)]=function(_0x53a9b4,_0x5ac9b2,_0x2dd560){const _0x4360d9=a1119_0x25ce7b,_0x461623=this;this[_0x4360d9(0x143)]['enqueue'](function(){const _0x58b403=_0x4360d9;return _0x461623['queryInterface'][_0x58b403(0x12a)](_0x53a9b4,_0x5ac9b2,_0x2dd560)[_0x58b403(0x12e)](function(){const _0x1397ab=_0x58b403;logger[_0x1397ab(0x12c)](_0x1397ab(0x133),_0x5ac9b2,_0x53a9b4);})[_0x58b403(0x121)](function(_0x991986){const _0x30e0c7=_0x58b403;logger[_0x30e0c7(0x12c)](JSON[_0x30e0c7(0x139)](_0x991986));});});},Migration[a1119_0x25ce7b(0x12b)][a1119_0x25ce7b(0x126)]=function(_0x40086f){const _0x525de2=a1119_0x25ce7b,_0x25edc0=this;this[_0x525de2(0x143)][_0x525de2(0x145)](function(){const _0x558a75=_0x525de2;return _0x25edc0['queryInterface']['dropTable'](_0x40086f,{'force':!![]})['then'](function(){const _0x196dc6=a1119_0x32c3;logger['info'](_0x196dc6(0x13e),_0x40086f);})[_0x558a75(0x121)](function(_0x3b4c41){const _0x125ef4=_0x558a75;logger[_0x125ef4(0x12c)](JSON['stringify'](_0x3b4c41));});});},Migration[a1119_0x25ce7b(0x12b)][a1119_0x25ce7b(0x124)]=function(_0x5aca82,_0x2e4644,_0x138661){const _0x2afdea=a1119_0x25ce7b,_0x2fc771=this;this[_0x2afdea(0x143)][_0x2afdea(0x145)](function(){const _0x506a4c=_0x2afdea;return _0x2fc771[_0x506a4c(0x144)][_0x506a4c(0x124)](_0x5aca82,_0x2e4644,{'indexName':_0x138661})[_0x506a4c(0x12e)](function(){const _0xb4f91c=_0x506a4c;logger['info'](_0xb4f91c(0x12f),_0x5aca82,_0x2e4644[_0xb4f91c(0x134)](','),_0x138661);})[_0x506a4c(0x121)](function(_0x24c097){const _0x21ef01=_0x506a4c;logger['info'](JSON[_0x21ef01(0x139)](_0x24c097));});});},Migration[a1119_0x25ce7b(0x12b)][a1119_0x25ce7b(0x128)]=function(_0x453db8,_0x228c81){const _0x5720b2=this;this['sequence']['enqueue'](function(){const _0x1752ce=a1119_0x32c3;return _0x5720b2[_0x1752ce(0x144)][_0x1752ce(0x128)](_0x453db8,_0x228c81)['then'](function(){const _0x5ab42e=_0x1752ce;logger[_0x5ab42e(0x12c)](_0x5ab42e(0x13f),_0x453db8,_0x228c81);})[_0x1752ce(0x121)](function(_0x5ad590){const _0x1847b2=_0x1752ce;logger[_0x1847b2(0x12c)](JSON[_0x1847b2(0x139)](_0x5ad590));});});},Migration[a1119_0x25ce7b(0x12b)]['query']=function(_0x46ceee){const _0x48d461=a1119_0x25ce7b,_0x3eac81=this;this['sequence'][_0x48d461(0x145)](function(){const _0x21eea8=_0x48d461;return _0x3eac81[_0x21eea8(0x144)][_0x21eea8(0x142)][_0x21eea8(0x132)](_0x46ceee)[_0x21eea8(0x12e)](function(){const _0x50a0d2=_0x21eea8;logger[_0x50a0d2(0x12c)]('query\x20%s',_0x46ceee);})[_0x21eea8(0x121)](function(_0x1beec6){const _0xddd7fc=_0x21eea8;logger[_0xddd7fc(0x12c)](JSON[_0xddd7fc(0x139)](_0x1beec6));});});},Migration[a1119_0x25ce7b(0x12b)][a1119_0x25ce7b(0x12d)]=function(_0x3c999c,_0x16b61e){const _0x159db8=a1119_0x25ce7b,_0x2bd9cc=this;this[_0x159db8(0x143)][_0x159db8(0x145)](function(){const _0xfc1b8b=_0x159db8;return _0x2bd9cc[_0xfc1b8b(0x144)][_0xfc1b8b(0x12d)](_0x3c999c,_0x16b61e)[_0xfc1b8b(0x12e)](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x16b61e,_0x3c999c);})[_0xfc1b8b(0x121)](function(_0x4db411){const _0x254335=_0xfc1b8b;logger['info'](util[_0x254335(0x137)](_0x4db411,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1119_0x25ce7b(0x130)]=function(_0x51d37d,_0x3e2352,_0x4c89b2){const _0x273ac8=a1119_0x25ce7b,_0x20f393=this;this['sequence'][_0x273ac8(0x145)](function(){const _0x5392c3=_0x273ac8;return _0x20f393[_0x5392c3(0x144)][_0x5392c3(0x130)](_0x51d37d,_0x3e2352,_0x4c89b2)[_0x5392c3(0x12e)](function(){const _0x5c09c2=_0x5392c3;logger[_0x5c09c2(0x12c)](_0x5c09c2(0x127),_0x3e2352,_0x4c89b2,_0x51d37d);})['catch'](function(_0x1a77b3){logger['info'](util['inspect'](_0x1a77b3,{'showHidden':![],'depth':null}));});});},Migration[a1119_0x25ce7b(0x12b)]['final']=function(_0x75e916){const _0x55f3b7=a1119_0x25ce7b;this[_0x55f3b7(0x143)]['enqueue'](function(){return _0x75e916();});},module[a1119_0x25ce7b(0x141)]={'up':function(_0x2fef0d,_0x177201){return new Promise(function(_0x1af8f9){const _0x1bbb8a=a1119_0x32c3,_0x2baeb7=new Migration(_0x2fef0d);_0x2baeb7[_0x1bbb8a(0x132)](_0x1bbb8a(0x125)),_0x2baeb7[_0x1bbb8a(0x132)](_0x1bbb8a(0x129)),_0x2baeb7[_0x1bbb8a(0x132)](_0x1bbb8a(0x13a)),_0x2baeb7['query']('ALTER\x20TABLE\x20report_fax_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x2baeb7['query']('ALTER\x20TABLE\x20report_openchannel_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x2baeb7['query'](_0x1bbb8a(0x13b)),_0x2baeb7[_0x1bbb8a(0x12a)](_0x1bbb8a(0x120),_0x1bbb8a(0x13c),{'type':_0x177201[_0x1bbb8a(0x13d)],'defaultValue':![]}),_0x2baeb7[_0x1bbb8a(0x123)](_0x1af8f9);});},'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 f73b6fa..9e41a70 100644 --- a/server/migrations/2.0.77.js +++ b/server/migrations/2.0.77.js @@ -1 +1 @@ -const a1120_0x365b=['enqueue','util','addIndex','interface','final','catch','tail','STRING','users','removeIndex\x20%s\x20%s','BOOLEAN','exports','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','privacyEnabled','removeColumn','stringify','addColumn','removeIndex','table\x20dropped\x20%s','inspect','finally','sequence','dropTable','then','query\x20%s','Added\x20column\x20%s\x20to\x20%s','info','../config/logger','query','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s','report_square','sequelize','migration','changeColumn','renameColumn','queryInterface','bot'];(function(_0x530309,_0x22cd4d){const _0x365bfd=function(_0x3efe0b){while(--_0x3efe0b){_0x530309['push'](_0x530309['shift']());}};_0x365bfd(++_0x22cd4d);}(a1120_0x365b,0xee));const a1120_0x3efe=function(_0x530309,_0x22cd4d){_0x530309=_0x530309-0xe9;let _0x365bfd=a1120_0x365b[_0x530309];return _0x365bfd;};const a1120_0x511b7e=a1120_0x3efe;'use strict';const util=require(a1120_0x511b7e(0x10d)),logger=require(a1120_0x511b7e(0x101))(a1120_0x511b7e(0x107)),Sequence=function(){};Sequence[a1120_0x511b7e(0xf1)][a1120_0x511b7e(0x10c)]=function(_0x55abd9){const _0x3a3798=a1120_0x511b7e;this[_0x3a3798(0xeb)]=this[_0x3a3798(0xeb)]?this[_0x3a3798(0xeb)][_0x3a3798(0xfa)](_0x55abd9):_0x55abd9();};const Migration=function(_0x4c05ee){const _0x348361=a1120_0x511b7e;this[_0x348361(0x10a)]=_0x4c05ee,this['sequence']=new Sequence();};Migration[a1120_0x511b7e(0xf1)]['changeColumn']=function(_0x168997,_0x51fd8b,_0x572f76){const _0x2c7c2f=a1120_0x511b7e,_0x327cdd=this;this[_0x2c7c2f(0xfb)][_0x2c7c2f(0x10c)](function(){const _0xc1bbbd=_0x2c7c2f;return _0x327cdd[_0xc1bbbd(0x10a)][_0xc1bbbd(0x108)](_0x168997,_0x51fd8b,_0x572f76)[_0xc1bbbd(0xfd)](function(){const _0xfd8bd6=_0xc1bbbd;logger['info'](_0xfd8bd6(0xf2),_0x51fd8b,_0x168997);})[_0xc1bbbd(0xea)](function(_0xccd9ab){const _0x8c44ee=_0xc1bbbd;logger[_0x8c44ee(0x100)](JSON[_0x8c44ee(0xf5)](_0xccd9ab));});});},Migration[a1120_0x511b7e(0xf1)]['addColumn']=function(_0x41500,_0x4210e7,_0x51fd76){const _0x172317=a1120_0x511b7e,_0x16c268=this;this[_0x172317(0xfb)][_0x172317(0x10c)](function(){const _0xc6ece9=_0x172317;return _0x16c268['queryInterface'][_0xc6ece9(0xf6)](_0x41500,_0x4210e7,_0x51fd76)['then'](function(){const _0x4efad8=_0xc6ece9;logger[_0x4efad8(0x100)](_0x4efad8(0xff),_0x4210e7,_0x41500);})[_0xc6ece9(0xea)](function(_0x3bd1ae){const _0x138798=_0xc6ece9;logger[_0x138798(0x100)](JSON[_0x138798(0xf5)](_0x3bd1ae));});});},Migration['prototype']['dropTable']=function(_0xa942a3){const _0x39187a=a1120_0x511b7e,_0x5d98b3=this;this[_0x39187a(0xfb)][_0x39187a(0x10c)](function(){const _0x1aa343=_0x39187a;return _0x5d98b3[_0x1aa343(0x10a)][_0x1aa343(0xfc)](_0xa942a3,{'force':!![]})['then'](function(){const _0x57a927=_0x1aa343;logger['info'](_0x57a927(0xf8),_0xa942a3);})[_0x1aa343(0xea)](function(_0x3c8c6a){const _0x3baf29=_0x1aa343;logger[_0x3baf29(0x100)](JSON[_0x3baf29(0xf5)](_0x3c8c6a));});});},Migration['prototype'][a1120_0x511b7e(0x10e)]=function(_0x4a9bfe,_0x48aa15,_0x229520){const _0x183011=a1120_0x511b7e,_0x5256a5=this;this['sequence'][_0x183011(0x10c)](function(){const _0xe86655=_0x183011;return _0x5256a5['queryInterface'][_0xe86655(0x10e)](_0x4a9bfe,_0x48aa15,{'indexName':_0x229520})[_0xe86655(0xfd)](function(){const _0x1c3b67=_0xe86655;logger[_0x1c3b67(0x100)](_0x1c3b67(0x104),_0x4a9bfe,_0x48aa15['join'](','),_0x229520);})[_0xe86655(0xea)](function(_0xee96ab){const _0x4dd214=_0xe86655;logger[_0x4dd214(0x100)](JSON[_0x4dd214(0xf5)](_0xee96ab));});});},Migration[a1120_0x511b7e(0xf1)][a1120_0x511b7e(0xf7)]=function(_0xe44c22,_0x49e2ff){const _0x554181=a1120_0x511b7e,_0x2a3311=this;this[_0x554181(0xfb)][_0x554181(0x10c)](function(){const _0x11120c=_0x554181;return _0x2a3311[_0x11120c(0x10a)][_0x11120c(0xf7)](_0xe44c22,_0x49e2ff)[_0x11120c(0xfd)](function(){const _0x54589c=_0x11120c;logger['info'](_0x54589c(0xee),_0xe44c22,_0x49e2ff);})[_0x11120c(0xea)](function(_0x317597){const _0x382563=_0x11120c;logger[_0x382563(0x100)](JSON['stringify'](_0x317597));});});},Migration[a1120_0x511b7e(0xf1)]['query']=function(_0x2e4969){const _0x599522=a1120_0x511b7e,_0x2bf7c4=this;this[_0x599522(0xfb)]['enqueue'](function(){const _0x2e77a8=_0x599522;return _0x2bf7c4['queryInterface'][_0x2e77a8(0x106)][_0x2e77a8(0x102)](_0x2e4969)[_0x2e77a8(0xfd)](function(){const _0x30b275=_0x2e77a8;logger[_0x30b275(0x100)](_0x30b275(0xfe),_0x2e4969);})[_0x2e77a8(0xea)](function(_0x278dde){const _0xeef313=_0x2e77a8;logger[_0xeef313(0x100)](JSON[_0xeef313(0xf5)](_0x278dde));});});},Migration[a1120_0x511b7e(0xf1)][a1120_0x511b7e(0xf4)]=function(_0x4ff4bb,_0x3faf06){const _0x1cc478=a1120_0x511b7e,_0xec383=this;this['sequence'][_0x1cc478(0x10c)](function(){const _0x4b197a=_0x1cc478;return _0xec383[_0x4b197a(0x10a)][_0x4b197a(0xf4)](_0x4ff4bb,_0x3faf06)[_0x4b197a(0xfd)](function(){const _0x4a1693=_0x4b197a;logger['info'](_0x4a1693(0x103),_0x3faf06,_0x4ff4bb);})[_0x4b197a(0xea)](function(_0x293780){const _0x319b6a=_0x4b197a;logger[_0x319b6a(0x100)](util[_0x319b6a(0xf9)](_0x293780,{'showHidden':![],'depth':null}));});});},Migration[a1120_0x511b7e(0xf1)][a1120_0x511b7e(0x109)]=function(_0xa7a283,_0x114930,_0x1455b3){const _0x245d0f=a1120_0x511b7e,_0x405406=this;this['sequence'][_0x245d0f(0x10c)](function(){const _0x3a7c07=_0x245d0f;return _0x405406['queryInterface'][_0x3a7c07(0x109)](_0xa7a283,_0x114930,_0x1455b3)[_0x3a7c07(0xfd)](function(){const _0x508408=_0x3a7c07;logger[_0x508408(0x100)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x114930,_0x1455b3,_0xa7a283);})[_0x3a7c07(0xea)](function(_0x5c3727){const _0x9c05f=_0x3a7c07;logger[_0x9c05f(0x100)](util[_0x9c05f(0xf9)](_0x5c3727,{'showHidden':![],'depth':null}));});});},Migration[a1120_0x511b7e(0xf1)][a1120_0x511b7e(0xe9)]=function(_0x3a75b3){const _0x54a301=a1120_0x511b7e;this['sequence'][_0x54a301(0x10c)](function(){return _0x3a75b3();});},module[a1120_0x511b7e(0xf0)]={'up':function(_0x2d722e,_0x4c2295){return new Promise(function(_0x105201){const _0x448948=a1120_0x3efe,_0x151fdb=new Migration(_0x2d722e);_0x151fdb['addColumn'](_0x448948(0x105),_0x448948(0x10b),{'type':_0x4c2295[_0x448948(0xef)],'defaultValue':![]}),_0x151fdb[_0x448948(0xf6)](_0x448948(0xed),_0x448948(0x10f),{'type':_0x4c2295[_0x448948(0xec)],'defaultValue':null}),_0x151fdb['addColumn'](_0x448948(0xed),_0x448948(0xf3),{'type':_0x4c2295[_0x448948(0xef)],'defaultValue':![]}),_0x151fdb['final'](_0x105201);});},'down':function(){}}; \ No newline at end of file +const a1120_0x36e3=['tail','report_square','sequence','addIndex\x20%s\x20%s\x20%s','addIndex','prototype','util','addColumn','removeColumn','catch','info','sequelize','bot','stringify','query\x20%s','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex','query','enqueue','exports','then','interface','../config/logger','queryInterface','renameColumn','inspect','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','removeIndex\x20%s\x20%s','users','dropTable','BOOLEAN','privacyEnabled','final','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x2bda7e,_0x40dab9){const _0x36e39e=function(_0x20e61e){while(--_0x20e61e){_0x2bda7e['push'](_0x2bda7e['shift']());}};_0x36e39e(++_0x40dab9);}(a1120_0x36e3,0xf9));const a1120_0x20e6=function(_0x2bda7e,_0x40dab9){_0x2bda7e=_0x2bda7e-0x11f;let _0x36e39e=a1120_0x36e3[_0x2bda7e];return _0x36e39e;};const a1120_0x2e46dd=a1120_0x20e6;'use strict';const util=require(a1120_0x2e46dd(0x128)),logger=require(a1120_0x2e46dd(0x139))('migration'),Sequence=function(){};Sequence[a1120_0x2e46dd(0x127)][a1120_0x2e46dd(0x135)]=function(_0x27fbfe){const _0x259ea0=a1120_0x2e46dd;this[_0x259ea0(0x122)]=this['tail']?this[_0x259ea0(0x122)]['finally'](_0x27fbfe):_0x27fbfe();};const Migration=function(_0x4c28cf){const _0x36e002=a1120_0x2e46dd;this['queryInterface']=_0x4c28cf,this[_0x36e002(0x124)]=new Sequence();};Migration['prototype'][a1120_0x2e46dd(0x13e)]=function(_0x320114,_0x3553cb,_0x5aadff){const _0x47c59e=a1120_0x2e46dd,_0x254c33=this;this['sequence'][_0x47c59e(0x135)](function(){const _0x58694a=_0x47c59e;return _0x254c33[_0x58694a(0x13a)][_0x58694a(0x13e)](_0x320114,_0x3553cb,_0x5aadff)[_0x58694a(0x137)](function(){const _0x28f0f5=_0x58694a;logger[_0x28f0f5(0x12c)](_0x28f0f5(0x132),_0x3553cb,_0x320114);})[_0x58694a(0x12b)](function(_0x1edff1){const _0x1d68f7=_0x58694a;logger[_0x1d68f7(0x12c)](JSON['stringify'](_0x1edff1));});});},Migration[a1120_0x2e46dd(0x127)][a1120_0x2e46dd(0x129)]=function(_0x15831c,_0xdbf99,_0x40b47d){const _0x29a2e6=a1120_0x2e46dd,_0xdcfecb=this;this[_0x29a2e6(0x124)][_0x29a2e6(0x135)](function(){const _0x3e2705=_0x29a2e6;return _0xdcfecb[_0x3e2705(0x13a)][_0x3e2705(0x129)](_0x15831c,_0xdbf99,_0x40b47d)[_0x3e2705(0x137)](function(){const _0x4541d7=_0x3e2705;logger['info'](_0x4541d7(0x131),_0xdbf99,_0x15831c);})[_0x3e2705(0x12b)](function(_0x3f9348){const _0x583a5a=_0x3e2705;logger[_0x583a5a(0x12c)](JSON[_0x583a5a(0x12f)](_0x3f9348));});});},Migration['prototype'][a1120_0x2e46dd(0x141)]=function(_0x26c083){const _0x16e2ae=a1120_0x2e46dd,_0x278867=this;this[_0x16e2ae(0x124)][_0x16e2ae(0x135)](function(){const _0x3a9423=_0x16e2ae;return _0x278867['queryInterface'][_0x3a9423(0x141)](_0x26c083,{'force':!![]})[_0x3a9423(0x137)](function(){const _0xb8703a=_0x3a9423;logger[_0xb8703a(0x12c)]('table\x20dropped\x20%s',_0x26c083);})[_0x3a9423(0x12b)](function(_0x2e3ffd){const _0x55158d=_0x3a9423;logger[_0x55158d(0x12c)](JSON[_0x55158d(0x12f)](_0x2e3ffd));});});},Migration['prototype']['addIndex']=function(_0x2f1132,_0x4456cd,_0x1edd27){const _0xd95c51=a1120_0x2e46dd,_0x21c8f2=this;this[_0xd95c51(0x124)][_0xd95c51(0x135)](function(){const _0x2ca6eb=_0xd95c51;return _0x21c8f2[_0x2ca6eb(0x13a)][_0x2ca6eb(0x126)](_0x2f1132,_0x4456cd,{'indexName':_0x1edd27})[_0x2ca6eb(0x137)](function(){const _0x5be421=_0x2ca6eb;logger['info'](_0x5be421(0x125),_0x2f1132,_0x4456cd['join'](','),_0x1edd27);})[_0x2ca6eb(0x12b)](function(_0x163230){const _0x1c7f08=_0x2ca6eb;logger[_0x1c7f08(0x12c)](JSON[_0x1c7f08(0x12f)](_0x163230));});});},Migration[a1120_0x2e46dd(0x127)][a1120_0x2e46dd(0x133)]=function(_0x1171ea,_0x58b6d3){const _0x57c954=a1120_0x2e46dd,_0x467442=this;this['sequence'][_0x57c954(0x135)](function(){const _0x492148=_0x57c954;return _0x467442['queryInterface'][_0x492148(0x133)](_0x1171ea,_0x58b6d3)['then'](function(){const _0x4f74c6=_0x492148;logger[_0x4f74c6(0x12c)](_0x4f74c6(0x13f),_0x1171ea,_0x58b6d3);})[_0x492148(0x12b)](function(_0x185cb2){const _0x2c61e1=_0x492148;logger['info'](JSON[_0x2c61e1(0x12f)](_0x185cb2));});});},Migration[a1120_0x2e46dd(0x127)]['query']=function(_0x1957d5){const _0x3ad30e=a1120_0x2e46dd,_0x440ec1=this;this[_0x3ad30e(0x124)]['enqueue'](function(){const _0x40bce8=_0x3ad30e;return _0x440ec1['queryInterface'][_0x40bce8(0x12d)][_0x40bce8(0x134)](_0x1957d5)[_0x40bce8(0x137)](function(){const _0x951a21=_0x40bce8;logger[_0x951a21(0x12c)](_0x951a21(0x130),_0x1957d5);})['catch'](function(_0xf7de84){const _0x5677d5=_0x40bce8;logger[_0x5677d5(0x12c)](JSON[_0x5677d5(0x12f)](_0xf7de84));});});},Migration[a1120_0x2e46dd(0x127)]['removeColumn']=function(_0x58b732,_0x1236de){const _0x107039=a1120_0x2e46dd,_0x217ad3=this;this[_0x107039(0x124)][_0x107039(0x135)](function(){const _0x41b805=_0x107039;return _0x217ad3[_0x41b805(0x13a)][_0x41b805(0x12a)](_0x58b732,_0x1236de)['then'](function(){const _0x49db0a=_0x41b805;logger[_0x49db0a(0x12c)](_0x49db0a(0x121),_0x1236de,_0x58b732);})[_0x41b805(0x12b)](function(_0x3a8ab4){const _0x3a1c4f=_0x41b805;logger[_0x3a1c4f(0x12c)](util[_0x3a1c4f(0x13c)](_0x3a8ab4,{'showHidden':![],'depth':null}));});});},Migration[a1120_0x2e46dd(0x127)]['renameColumn']=function(_0x2a2a72,_0x5127ec,_0x27a031){const _0x290402=a1120_0x2e46dd,_0x1aa07e=this;this[_0x290402(0x124)]['enqueue'](function(){const _0x2dbae3=_0x290402;return _0x1aa07e[_0x2dbae3(0x13a)][_0x2dbae3(0x13b)](_0x2a2a72,_0x5127ec,_0x27a031)[_0x2dbae3(0x137)](function(){const _0xc8892c=_0x2dbae3;logger[_0xc8892c(0x12c)](_0xc8892c(0x13d),_0x5127ec,_0x27a031,_0x2a2a72);})[_0x2dbae3(0x12b)](function(_0x3a3636){const _0x14432e=_0x2dbae3;logger[_0x14432e(0x12c)](util[_0x14432e(0x13c)](_0x3a3636,{'showHidden':![],'depth':null}));});});},Migration[a1120_0x2e46dd(0x127)][a1120_0x2e46dd(0x120)]=function(_0x313795){const _0x5cb1ac=a1120_0x2e46dd;this[_0x5cb1ac(0x124)][_0x5cb1ac(0x135)](function(){return _0x313795();});},module[a1120_0x2e46dd(0x136)]={'up':function(_0x87e62a,_0x276dd2){return new Promise(function(_0x2bd1ca){const _0x4ad02c=a1120_0x20e6,_0x4ccacd=new Migration(_0x87e62a);_0x4ccacd['addColumn'](_0x4ad02c(0x123),_0x4ad02c(0x12e),{'type':_0x276dd2[_0x4ad02c(0x142)],'defaultValue':![]}),_0x4ccacd[_0x4ad02c(0x129)](_0x4ad02c(0x140),_0x4ad02c(0x138),{'type':_0x276dd2['STRING'],'defaultValue':null}),_0x4ccacd[_0x4ad02c(0x129)]('users',_0x4ad02c(0x11f),{'type':_0x276dd2[_0x4ad02c(0x142)],'defaultValue':![]}),_0x4ccacd[_0x4ad02c(0x120)](_0x2bd1ca);});},'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 04fd607..0abca7f 100644 --- a/server/migrations/2.0.78.js +++ b/server/migrations/2.0.78.js @@ -1 +1 @@ -const a1121_0x371a=['removeIndex','dropTable','queryInterface','ALTER\x20TABLE\x20square_messages\x20ENCRYPTION=\x27Y\x27;','sequence','changeColumn','Removed\x20column\x20%s\x20from\x20%s','then','info','sequelize','exports','addIndex\x20%s\x20%s\x20%s','prototype','catch','addColumn','query','util','addIndex','stringify','query\x20%s','renameColumn','final','finally','../config/logger','migration','join','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','table\x20dropped\x20%s','enqueue','tail'];(function(_0xa462a1,_0x2fdb55){const _0x371a47=function(_0xfe0d5e){while(--_0xfe0d5e){_0xa462a1['push'](_0xa462a1['shift']());}};_0x371a47(++_0x2fdb55);}(a1121_0x371a,0x185));const a1121_0xfe0d=function(_0xa462a1,_0x2fdb55){_0xa462a1=_0xa462a1-0x1d5;let _0x371a47=a1121_0x371a[_0xa462a1];return _0x371a47;};const a1121_0x20c3a2=a1121_0xfe0d;'use strict';const util=require(a1121_0x20c3a2(0x1e0)),logger=require(a1121_0x20c3a2(0x1e7))(a1121_0x20c3a2(0x1e8)),Sequence=function(){};Sequence['prototype'][a1121_0x20c3a2(0x1ee)]=function(_0x45341){const _0x38d6d2=a1121_0x20c3a2;this[_0x38d6d2(0x1ef)]=this['tail']?this[_0x38d6d2(0x1ef)][_0x38d6d2(0x1e6)](_0x45341):_0x45341();};const Migration=function(_0xb79127){const _0x575f90=a1121_0x20c3a2;this[_0x575f90(0x1f2)]=_0xb79127,this[_0x575f90(0x1f4)]=new Sequence();};Migration['prototype'][a1121_0x20c3a2(0x1d5)]=function(_0x33c93c,_0x30b6d3,_0x4017f3){const _0x3d2ca8=a1121_0x20c3a2,_0x21f84b=this;this[_0x3d2ca8(0x1f4)][_0x3d2ca8(0x1ee)](function(){const _0x3e0dff=_0x3d2ca8;return _0x21f84b[_0x3e0dff(0x1f2)]['changeColumn'](_0x33c93c,_0x30b6d3,_0x4017f3)[_0x3e0dff(0x1d7)](function(){const _0x1ec5de=_0x3e0dff;logger[_0x1ec5de(0x1d8)](_0x1ec5de(0x1eb),_0x30b6d3,_0x33c93c);})[_0x3e0dff(0x1dd)](function(_0x5ed0c8){const _0x36b748=_0x3e0dff;logger[_0x36b748(0x1d8)](JSON[_0x36b748(0x1e2)](_0x5ed0c8));});});},Migration[a1121_0x20c3a2(0x1dc)][a1121_0x20c3a2(0x1de)]=function(_0x45ac37,_0x58db68,_0x5b1b60){const _0x53c5b6=a1121_0x20c3a2,_0x2752f1=this;this[_0x53c5b6(0x1f4)]['enqueue'](function(){const _0x56806a=_0x53c5b6;return _0x2752f1[_0x56806a(0x1f2)]['addColumn'](_0x45ac37,_0x58db68,_0x5b1b60)[_0x56806a(0x1d7)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x58db68,_0x45ac37);})[_0x56806a(0x1dd)](function(_0x1f6f95){const _0x48976e=_0x56806a;logger[_0x48976e(0x1d8)](JSON[_0x48976e(0x1e2)](_0x1f6f95));});});},Migration['prototype'][a1121_0x20c3a2(0x1f1)]=function(_0x21b5d7){const _0x431e98=this;this['sequence']['enqueue'](function(){const _0x6e1a9=a1121_0xfe0d;return _0x431e98['queryInterface'][_0x6e1a9(0x1f1)](_0x21b5d7,{'force':!![]})[_0x6e1a9(0x1d7)](function(){const _0x70ddb=_0x6e1a9;logger[_0x70ddb(0x1d8)](_0x70ddb(0x1ed),_0x21b5d7);})[_0x6e1a9(0x1dd)](function(_0x46179c){const _0x311a82=_0x6e1a9;logger[_0x311a82(0x1d8)](JSON[_0x311a82(0x1e2)](_0x46179c));});});},Migration[a1121_0x20c3a2(0x1dc)]['addIndex']=function(_0x30ccc2,_0xfc6b06,_0x39160a){const _0x2eed2a=a1121_0x20c3a2,_0x4b41ce=this;this[_0x2eed2a(0x1f4)][_0x2eed2a(0x1ee)](function(){const _0x43761b=_0x2eed2a;return _0x4b41ce[_0x43761b(0x1f2)][_0x43761b(0x1e1)](_0x30ccc2,_0xfc6b06,{'indexName':_0x39160a})['then'](function(){const _0x15b98a=_0x43761b;logger[_0x15b98a(0x1d8)](_0x15b98a(0x1db),_0x30ccc2,_0xfc6b06[_0x15b98a(0x1e9)](','),_0x39160a);})[_0x43761b(0x1dd)](function(_0x48804b){const _0x38abb2=_0x43761b;logger[_0x38abb2(0x1d8)](JSON[_0x38abb2(0x1e2)](_0x48804b));});});},Migration[a1121_0x20c3a2(0x1dc)][a1121_0x20c3a2(0x1f0)]=function(_0x2b5a0c,_0x1b0497){const _0x13e561=a1121_0x20c3a2,_0x59c599=this;this['sequence'][_0x13e561(0x1ee)](function(){const _0x69c65=_0x13e561;return _0x59c599[_0x69c65(0x1f2)][_0x69c65(0x1f0)](_0x2b5a0c,_0x1b0497)[_0x69c65(0x1d7)](function(){const _0x17b23a=_0x69c65;logger[_0x17b23a(0x1d8)]('removeIndex\x20%s\x20%s',_0x2b5a0c,_0x1b0497);})[_0x69c65(0x1dd)](function(_0x375f58){const _0x2d1c30=_0x69c65;logger['info'](JSON[_0x2d1c30(0x1e2)](_0x375f58));});});},Migration['prototype'][a1121_0x20c3a2(0x1df)]=function(_0x39ecbc){const _0xeef9f7=a1121_0x20c3a2,_0x2c9ca8=this;this[_0xeef9f7(0x1f4)][_0xeef9f7(0x1ee)](function(){const _0x964435=_0xeef9f7;return _0x2c9ca8[_0x964435(0x1f2)][_0x964435(0x1d9)][_0x964435(0x1df)](_0x39ecbc)[_0x964435(0x1d7)](function(){const _0x4ff2f7=_0x964435;logger['info'](_0x4ff2f7(0x1e3),_0x39ecbc);})[_0x964435(0x1dd)](function(_0x58cfa1){const _0xb222fb=_0x964435;logger[_0xb222fb(0x1d8)](JSON['stringify'](_0x58cfa1));});});},Migration[a1121_0x20c3a2(0x1dc)][a1121_0x20c3a2(0x1ea)]=function(_0x5035a0,_0xe4f699){const _0x45132f=a1121_0x20c3a2,_0x4526d0=this;this['sequence'][_0x45132f(0x1ee)](function(){const _0x47b34e=_0x45132f;return _0x4526d0['queryInterface'][_0x47b34e(0x1ea)](_0x5035a0,_0xe4f699)[_0x47b34e(0x1d7)](function(){const _0x9ca95f=_0x47b34e;logger[_0x9ca95f(0x1d8)](_0x9ca95f(0x1d6),_0xe4f699,_0x5035a0);})[_0x47b34e(0x1dd)](function(_0x2bb277){const _0x4c4dc4=_0x47b34e;logger[_0x4c4dc4(0x1d8)](util[_0x4c4dc4(0x1ec)](_0x2bb277,{'showHidden':![],'depth':null}));});});},Migration[a1121_0x20c3a2(0x1dc)][a1121_0x20c3a2(0x1e4)]=function(_0x2d4743,_0xffe290,_0x2be996){const _0x4e2519=a1121_0x20c3a2,_0x348179=this;this[_0x4e2519(0x1f4)][_0x4e2519(0x1ee)](function(){const _0x5eb479=_0x4e2519;return _0x348179[_0x5eb479(0x1f2)]['renameColumn'](_0x2d4743,_0xffe290,_0x2be996)[_0x5eb479(0x1d7)](function(){const _0x5b54fc=_0x5eb479;logger[_0x5b54fc(0x1d8)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xffe290,_0x2be996,_0x2d4743);})[_0x5eb479(0x1dd)](function(_0xb4fb92){const _0x30535d=_0x5eb479;logger[_0x30535d(0x1d8)](util[_0x30535d(0x1ec)](_0xb4fb92,{'showHidden':![],'depth':null}));});});},Migration[a1121_0x20c3a2(0x1dc)][a1121_0x20c3a2(0x1e5)]=function(_0x50ee6c){const _0x255e84=a1121_0x20c3a2;this[_0x255e84(0x1f4)][_0x255e84(0x1ee)](function(){return _0x50ee6c();});},module[a1121_0x20c3a2(0x1da)]={'up':function(_0x598fa6){return new Promise(function(_0x408e38){const _0x27efc7=a1121_0xfe0d,_0x3a0cd2=new Migration(_0x598fa6);_0x3a0cd2[_0x27efc7(0x1df)](_0x27efc7(0x1f3)),_0x3a0cd2[_0x27efc7(0x1e5)](_0x408e38);});},'down':function(){}}; \ No newline at end of file +const a1121_0xd3b6=['ALTER\x20TABLE\x20square_messages\x20ENCRYPTION=\x27Y\x27;','addColumn','sequelize','tail','then','removeColumn','prototype','migration','dropTable','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger','catch','stringify','queryInterface','inspect','enqueue','info','table\x20dropped\x20%s','exports','addIndex\x20%s\x20%s\x20%s','query','sequence','renameColumn','Removed\x20column\x20%s\x20from\x20%s','removeIndex','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex\x20%s\x20%s','join','Added\x20column\x20%s\x20to\x20%s'];(function(_0x56b9d4,_0x206dfc){const _0xd3b6c=function(_0x4d883d){while(--_0x4d883d){_0x56b9d4['push'](_0x56b9d4['shift']());}};_0xd3b6c(++_0x206dfc);}(a1121_0xd3b6,0x66));const a1121_0x4d88=function(_0x56b9d4,_0x206dfc){_0x56b9d4=_0x56b9d4-0x160;let _0xd3b6c=a1121_0xd3b6[_0x56b9d4];return _0xd3b6c;};const a1121_0x3bc7c0=a1121_0x4d88;'use strict';const util=require('util'),logger=require(a1121_0x3bc7c0(0x162))(a1121_0x3bc7c0(0x17d)),Sequence=function(){};Sequence[a1121_0x3bc7c0(0x17c)][a1121_0x3bc7c0(0x167)]=function(_0x15530d){const _0x3b40dd=a1121_0x3bc7c0;this['tail']=this[_0x3b40dd(0x179)]?this[_0x3b40dd(0x179)]['finally'](_0x15530d):_0x15530d();};const Migration=function(_0x3b0576){const _0x59bf9c=a1121_0x3bc7c0;this[_0x59bf9c(0x165)]=_0x3b0576,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x112df3,_0x4f7c0a,_0x5ce1be){const _0x2dfd76=a1121_0x3bc7c0,_0x2bf198=this;this[_0x2dfd76(0x16d)]['enqueue'](function(){const _0x4076fc=_0x2dfd76;return _0x2bf198[_0x4076fc(0x165)][_0x4076fc(0x171)](_0x112df3,_0x4f7c0a,_0x5ce1be)[_0x4076fc(0x17a)](function(){const _0x1ea36c=_0x4076fc;logger[_0x1ea36c(0x168)](_0x1ea36c(0x172),_0x4f7c0a,_0x112df3);})['catch'](function(_0x30d7ab){logger['info'](JSON['stringify'](_0x30d7ab));});});},Migration['prototype'][a1121_0x3bc7c0(0x177)]=function(_0x45c034,_0x151a17,_0x14f570){const _0x451f81=a1121_0x3bc7c0,_0x35c973=this;this['sequence'][_0x451f81(0x167)](function(){const _0x5c87ef=_0x451f81;return _0x35c973['queryInterface'][_0x5c87ef(0x177)](_0x45c034,_0x151a17,_0x14f570)[_0x5c87ef(0x17a)](function(){const _0x42b196=_0x5c87ef;logger['info'](_0x42b196(0x175),_0x151a17,_0x45c034);})[_0x5c87ef(0x163)](function(_0x554681){const _0x271955=_0x5c87ef;logger['info'](JSON[_0x271955(0x164)](_0x554681));});});},Migration['prototype'][a1121_0x3bc7c0(0x17e)]=function(_0x1bbbfe){const _0x572bf3=a1121_0x3bc7c0,_0x3d48bc=this;this['sequence'][_0x572bf3(0x167)](function(){const _0x24786a=_0x572bf3;return _0x3d48bc[_0x24786a(0x165)][_0x24786a(0x17e)](_0x1bbbfe,{'force':!![]})[_0x24786a(0x17a)](function(){const _0x2f7946=_0x24786a;logger[_0x2f7946(0x168)](_0x2f7946(0x169),_0x1bbbfe);})[_0x24786a(0x163)](function(_0x38d2e2){const _0x4ef5a3=_0x24786a;logger[_0x4ef5a3(0x168)](JSON['stringify'](_0x38d2e2));});});},Migration[a1121_0x3bc7c0(0x17c)][a1121_0x3bc7c0(0x160)]=function(_0x5d73b1,_0x588bc6,_0xddb7b6){const _0x3ff8e4=a1121_0x3bc7c0,_0x34fa13=this;this[_0x3ff8e4(0x16d)][_0x3ff8e4(0x167)](function(){const _0x5a5c97=_0x3ff8e4;return _0x34fa13[_0x5a5c97(0x165)][_0x5a5c97(0x160)](_0x5d73b1,_0x588bc6,{'indexName':_0xddb7b6})['then'](function(){const _0x221c7d=_0x5a5c97;logger['info'](_0x221c7d(0x16b),_0x5d73b1,_0x588bc6[_0x221c7d(0x174)](','),_0xddb7b6);})[_0x5a5c97(0x163)](function(_0x55eb16){const _0x36f7e4=_0x5a5c97;logger[_0x36f7e4(0x168)](JSON[_0x36f7e4(0x164)](_0x55eb16));});});},Migration['prototype']['removeIndex']=function(_0x5dc85b,_0x54adaa){const _0x111f6f=this;this['sequence']['enqueue'](function(){const _0x10720d=a1121_0x4d88;return _0x111f6f[_0x10720d(0x165)][_0x10720d(0x170)](_0x5dc85b,_0x54adaa)[_0x10720d(0x17a)](function(){const _0x3dc205=_0x10720d;logger[_0x3dc205(0x168)](_0x3dc205(0x173),_0x5dc85b,_0x54adaa);})['catch'](function(_0x1c33d9){const _0x2309a5=_0x10720d;logger[_0x2309a5(0x168)](JSON[_0x2309a5(0x164)](_0x1c33d9));});});},Migration['prototype'][a1121_0x3bc7c0(0x16c)]=function(_0x3a1740){const _0x5123db=a1121_0x3bc7c0,_0x5bf90c=this;this['sequence'][_0x5123db(0x167)](function(){const _0x4fc633=_0x5123db;return _0x5bf90c[_0x4fc633(0x165)][_0x4fc633(0x178)][_0x4fc633(0x16c)](_0x3a1740)['then'](function(){const _0x256140=_0x4fc633;logger[_0x256140(0x168)]('query\x20%s',_0x3a1740);})[_0x4fc633(0x163)](function(_0x9e3526){const _0x53d513=_0x4fc633;logger['info'](JSON[_0x53d513(0x164)](_0x9e3526));});});},Migration[a1121_0x3bc7c0(0x17c)][a1121_0x3bc7c0(0x17b)]=function(_0x24f14c,_0x4a633a){const _0x53cd21=a1121_0x3bc7c0,_0x12fb9b=this;this[_0x53cd21(0x16d)][_0x53cd21(0x167)](function(){const _0x4af45d=_0x53cd21;return _0x12fb9b['queryInterface'][_0x4af45d(0x17b)](_0x24f14c,_0x4a633a)[_0x4af45d(0x17a)](function(){const _0x54443d=_0x4af45d;logger[_0x54443d(0x168)](_0x54443d(0x16f),_0x4a633a,_0x24f14c);})[_0x4af45d(0x163)](function(_0x5ddadb){const _0x51ac8c=_0x4af45d;logger['info'](util[_0x51ac8c(0x166)](_0x5ddadb,{'showHidden':![],'depth':null}));});});},Migration[a1121_0x3bc7c0(0x17c)][a1121_0x3bc7c0(0x16e)]=function(_0x7438cf,_0x42e55f,_0x40a9d5){const _0x5e8f54=a1121_0x3bc7c0,_0x5542d5=this;this[_0x5e8f54(0x16d)][_0x5e8f54(0x167)](function(){const _0x26eb7c=_0x5e8f54;return _0x5542d5[_0x26eb7c(0x165)][_0x26eb7c(0x16e)](_0x7438cf,_0x42e55f,_0x40a9d5)[_0x26eb7c(0x17a)](function(){const _0x10db2a=_0x26eb7c;logger[_0x10db2a(0x168)](_0x10db2a(0x161),_0x42e55f,_0x40a9d5,_0x7438cf);})['catch'](function(_0x5671a5){const _0x58d624=_0x26eb7c;logger[_0x58d624(0x168)](util[_0x58d624(0x166)](_0x5671a5,{'showHidden':![],'depth':null}));});});},Migration[a1121_0x3bc7c0(0x17c)]['final']=function(_0x261265){this['sequence']['enqueue'](function(){return _0x261265();});},module[a1121_0x3bc7c0(0x16a)]={'up':function(_0x26040e){return new Promise(function(_0x3796f6){const _0x2a074c=a1121_0x4d88,_0x180561=new Migration(_0x26040e);_0x180561['query'](_0x2a074c(0x176)),_0x180561['final'](_0x3796f6);});},'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 c44e3c5..039c9e3 100644 --- a/server/migrations/2.0.79.js +++ b/server/migrations/2.0.79.js @@ -1 +1 @@ -const a1122_0x4bf5=['then','table\x20dropped\x20%s','prototype','finally','addColumn','renameColumn','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','sequelize','addIndex\x20%s\x20%s\x20%s','final','query\x20%s','removeIndex\x20%s\x20%s','sequence','catch','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','info','changeColumn','Added\x20column\x20%s\x20to\x20%s','queryInterface','removeIndex','query','Removed\x20column\x20%s\x20from\x20%s','enqueue','inspect','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','dropTable','stringify'];(function(_0x124c70,_0x5cf565){const _0x4bf58b=function(_0x2ef731){while(--_0x2ef731){_0x124c70['push'](_0x124c70['shift']());}};_0x4bf58b(++_0x5cf565);}(a1122_0x4bf5,0x120));const a1122_0x2ef7=function(_0x124c70,_0x5cf565){_0x124c70=_0x124c70-0x9a;let _0x4bf58b=a1122_0x4bf5[_0x124c70];return _0x4bf58b;};const a1122_0x1fcf31=a1122_0x2ef7;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1122_0x1fcf31(0xb2)][a1122_0x1fcf31(0xa9)]=function(_0x2bd8e2){const _0x1389b3=a1122_0x1fcf31;this[_0x1389b3(0xad)]=this['tail']?this[_0x1389b3(0xad)][_0x1389b3(0xb3)](_0x2bd8e2):_0x2bd8e2();};const Migration=function(_0x4cc9b9){const _0x1908dc=a1122_0x1fcf31;this[_0x1908dc(0xa5)]=_0x4cc9b9,this[_0x1908dc(0x9f)]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x1bc631,_0x48c4cf,_0x330581){const _0x4eafea=a1122_0x1fcf31,_0x210c0d=this;this[_0x4eafea(0x9f)][_0x4eafea(0xa9)](function(){const _0x1c6374=_0x4eafea;return _0x210c0d[_0x1c6374(0xa5)][_0x1c6374(0xa3)](_0x1bc631,_0x48c4cf,_0x330581)[_0x1c6374(0xb0)](function(){const _0x32ff58=_0x1c6374;logger['info'](_0x32ff58(0xac),_0x48c4cf,_0x1bc631);})['catch'](function(_0x3908b5){const _0x309c12=_0x1c6374;logger[_0x309c12(0xa2)](JSON[_0x309c12(0xaf)](_0x3908b5));});});},Migration[a1122_0x1fcf31(0xb2)][a1122_0x1fcf31(0xb4)]=function(_0x41250a,_0x207b83,_0x2ca50e){const _0xc88379=a1122_0x1fcf31,_0x280b1b=this;this[_0xc88379(0x9f)][_0xc88379(0xa9)](function(){const _0x520114=_0xc88379;return _0x280b1b[_0x520114(0xa5)][_0x520114(0xb4)](_0x41250a,_0x207b83,_0x2ca50e)[_0x520114(0xb0)](function(){const _0x5be305=_0x520114;logger[_0x5be305(0xa2)](_0x5be305(0xa4),_0x207b83,_0x41250a);})[_0x520114(0xa0)](function(_0x2c0bac){const _0x3bd042=_0x520114;logger[_0x3bd042(0xa2)](JSON[_0x3bd042(0xaf)](_0x2c0bac));});});},Migration['prototype'][a1122_0x1fcf31(0xae)]=function(_0x2db290){const _0x3cf036=a1122_0x1fcf31,_0x1f2f60=this;this[_0x3cf036(0x9f)]['enqueue'](function(){const _0x4d266a=_0x3cf036;return _0x1f2f60[_0x4d266a(0xa5)][_0x4d266a(0xae)](_0x2db290,{'force':!![]})[_0x4d266a(0xb0)](function(){const _0x2c0332=_0x4d266a;logger['info'](_0x2c0332(0xb1),_0x2db290);})['catch'](function(_0x4bbafe){const _0x3d65af=_0x4d266a;logger[_0x3d65af(0xa2)](JSON[_0x3d65af(0xaf)](_0x4bbafe));});});},Migration[a1122_0x1fcf31(0xb2)][a1122_0x1fcf31(0xab)]=function(_0x52ece6,_0x5cd111,_0xbf641d){const _0x2f7ab0=a1122_0x1fcf31,_0x1addba=this;this['sequence'][_0x2f7ab0(0xa9)](function(){const _0x352b5b=_0x2f7ab0;return _0x1addba['queryInterface']['addIndex'](_0x52ece6,_0x5cd111,{'indexName':_0xbf641d})['then'](function(){const _0x2adfbc=a1122_0x2ef7;logger['info'](_0x2adfbc(0x9b),_0x52ece6,_0x5cd111[_0x2adfbc(0xb8)](','),_0xbf641d);})[_0x352b5b(0xa0)](function(_0x2f7c5c){const _0x4c4a2f=_0x352b5b;logger[_0x4c4a2f(0xa2)](JSON[_0x4c4a2f(0xaf)](_0x2f7c5c));});});},Migration[a1122_0x1fcf31(0xb2)][a1122_0x1fcf31(0xa6)]=function(_0x53a995,_0x2e65d2){const _0x244ae7=a1122_0x1fcf31,_0x58ccf8=this;this['sequence'][_0x244ae7(0xa9)](function(){const _0x542020=_0x244ae7;return _0x58ccf8['queryInterface']['removeIndex'](_0x53a995,_0x2e65d2)[_0x542020(0xb0)](function(){const _0x3bce69=_0x542020;logger[_0x3bce69(0xa2)](_0x3bce69(0x9e),_0x53a995,_0x2e65d2);})['catch'](function(_0x46fee7){const _0x30b3b4=_0x542020;logger[_0x30b3b4(0xa2)](JSON['stringify'](_0x46fee7));});});},Migration[a1122_0x1fcf31(0xb2)][a1122_0x1fcf31(0xa7)]=function(_0x4c770b){const _0xb6b711=a1122_0x1fcf31,_0x1787cf=this;this[_0xb6b711(0x9f)][_0xb6b711(0xa9)](function(){const _0x17952d=_0xb6b711;return _0x1787cf[_0x17952d(0xa5)][_0x17952d(0x9a)][_0x17952d(0xa7)](_0x4c770b)[_0x17952d(0xb0)](function(){const _0x54b7ba=_0x17952d;logger[_0x54b7ba(0xa2)](_0x54b7ba(0x9d),_0x4c770b);})[_0x17952d(0xa0)](function(_0x487ac2){logger['info'](JSON['stringify'](_0x487ac2));});});},Migration['prototype'][a1122_0x1fcf31(0xb6)]=function(_0x1f45b3,_0x23f0d7){const _0x15698a=a1122_0x1fcf31,_0x1ab66a=this;this[_0x15698a(0x9f)][_0x15698a(0xa9)](function(){const _0x4b4d25=_0x15698a;return _0x1ab66a[_0x4b4d25(0xa5)][_0x4b4d25(0xb6)](_0x1f45b3,_0x23f0d7)[_0x4b4d25(0xb0)](function(){const _0x4f1b4e=_0x4b4d25;logger[_0x4f1b4e(0xa2)](_0x4f1b4e(0xa8),_0x23f0d7,_0x1f45b3);})[_0x4b4d25(0xa0)](function(_0x1e5ea2){const _0x37a72f=_0x4b4d25;logger[_0x37a72f(0xa2)](util['inspect'](_0x1e5ea2,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x72c5c,_0x50f2fb,_0x2f135b){const _0x418436=a1122_0x1fcf31,_0x36ca4c=this;this['sequence'][_0x418436(0xa9)](function(){const _0x518c33=_0x418436;return _0x36ca4c['queryInterface'][_0x518c33(0xb5)](_0x72c5c,_0x50f2fb,_0x2f135b)[_0x518c33(0xb0)](function(){const _0x34482a=_0x518c33;logger[_0x34482a(0xa2)](_0x34482a(0xb7),_0x50f2fb,_0x2f135b,_0x72c5c);})[_0x518c33(0xa0)](function(_0x3b7dc1){const _0xfea632=_0x518c33;logger['info'](util[_0xfea632(0xaa)](_0x3b7dc1,{'showHidden':![],'depth':null}));});});},Migration[a1122_0x1fcf31(0xb2)]['final']=function(_0x584b62){const _0x575e3d=a1122_0x1fcf31;this['sequence'][_0x575e3d(0xa9)](function(){return _0x584b62();});},module['exports']={'up':function(_0x4032d5){return new Promise(function(_0x1f0865){const _0xacec18=a1122_0x2ef7,_0x2976fa=new Migration(_0x4032d5);_0x2976fa[_0xacec18(0xa7)](_0xacec18(0xa1)),_0x2976fa[_0xacec18(0x9c)](_0x1f0865);});},'down':function(){}}; \ No newline at end of file +const a1122_0x95e0=['Removed\x20column\x20%s\x20from\x20%s','prototype','sequence','dropTable','query','renameColumn','then','inspect','query\x20%s','enqueue','util','UPDATE\x20dashboard_items\x20SET\x20attrs\x20=\x20REPLACE(attrs,\x27[{\x22name\x22:\x22attrReport\x22\x27,\x27[{\x22name\x22:\x22attrReport\x22,\x22type\x22:\x22custom\x22\x27)\x20WHERE\x20type\x20=\x20\x27web-report\x27\x20AND\x20attrs\x20NOT\x20LIKE\x20\x27%type%\x27','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','queryInterface','changeColumn','info','removeIndex','tail','catch','join','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','exports','addColumn','removeColumn','addIndex\x20%s\x20%s\x20%s','../config/logger','migration','finally','addIndex'];(function(_0x129266,_0x380e51){const _0x95e0d8=function(_0x2bcf5f){while(--_0x2bcf5f){_0x129266['push'](_0x129266['shift']());}};_0x95e0d8(++_0x380e51);}(a1122_0x95e0,0xbb));const a1122_0x2bcf=function(_0x129266,_0x380e51){_0x129266=_0x129266-0x1cc;let _0x95e0d8=a1122_0x95e0[_0x129266];return _0x95e0d8;};const a1122_0x13a940=a1122_0x2bcf;'use strict';const util=require(a1122_0x13a940(0x1d5)),logger=require(a1122_0x13a940(0x1e6))(a1122_0x13a940(0x1e7)),Sequence=function(){};Sequence['prototype'][a1122_0x13a940(0x1d4)]=function(_0xeb16f3){const _0x174c47=a1122_0x13a940;this[_0x174c47(0x1dd)]=this[_0x174c47(0x1dd)]?this[_0x174c47(0x1dd)][_0x174c47(0x1e8)](_0xeb16f3):_0xeb16f3();};const Migration=function(_0x197ba3){const _0x211c6c=a1122_0x13a940;this[_0x211c6c(0x1d9)]=_0x197ba3,this[_0x211c6c(0x1cd)]=new Sequence();};Migration[a1122_0x13a940(0x1cc)][a1122_0x13a940(0x1da)]=function(_0x1a30a9,_0x165de4,_0x1c7fce){const _0x5bc1e6=a1122_0x13a940,_0x36639a=this;this[_0x5bc1e6(0x1cd)][_0x5bc1e6(0x1d4)](function(){const _0x3b4ea4=_0x5bc1e6;return _0x36639a[_0x3b4ea4(0x1d9)][_0x3b4ea4(0x1da)](_0x1a30a9,_0x165de4,_0x1c7fce)[_0x3b4ea4(0x1d1)](function(){const _0x10a123=_0x3b4ea4;logger[_0x10a123(0x1db)](_0x10a123(0x1e0),_0x165de4,_0x1a30a9);})[_0x3b4ea4(0x1de)](function(_0xb65753){const _0x2d80a4=_0x3b4ea4;logger[_0x2d80a4(0x1db)](JSON[_0x2d80a4(0x1e1)](_0xb65753));});});},Migration[a1122_0x13a940(0x1cc)]['addColumn']=function(_0x23a4c0,_0x300aed,_0x176013){const _0x88c61f=a1122_0x13a940,_0x4c3a66=this;this['sequence'][_0x88c61f(0x1d4)](function(){const _0x1e7ffe=_0x88c61f;return _0x4c3a66[_0x1e7ffe(0x1d9)][_0x1e7ffe(0x1e3)](_0x23a4c0,_0x300aed,_0x176013)[_0x1e7ffe(0x1d1)](function(){const _0x5852a7=_0x1e7ffe;logger[_0x5852a7(0x1db)]('Added\x20column\x20%s\x20to\x20%s',_0x300aed,_0x23a4c0);})[_0x1e7ffe(0x1de)](function(_0xfa8471){const _0x1a7065=_0x1e7ffe;logger[_0x1a7065(0x1db)](JSON['stringify'](_0xfa8471));});});},Migration[a1122_0x13a940(0x1cc)]['dropTable']=function(_0x585e17){const _0x492343=a1122_0x13a940,_0x1037c5=this;this[_0x492343(0x1cd)][_0x492343(0x1d4)](function(){const _0x3e3d54=_0x492343;return _0x1037c5[_0x3e3d54(0x1d9)][_0x3e3d54(0x1ce)](_0x585e17,{'force':!![]})[_0x3e3d54(0x1d1)](function(){const _0x5138fa=_0x3e3d54;logger[_0x5138fa(0x1db)]('table\x20dropped\x20%s',_0x585e17);})[_0x3e3d54(0x1de)](function(_0x4a4175){const _0x2bbdd0=_0x3e3d54;logger[_0x2bbdd0(0x1db)](JSON['stringify'](_0x4a4175));});});},Migration['prototype'][a1122_0x13a940(0x1e9)]=function(_0x3e1c66,_0x13c9b1,_0x4c71c8){const _0x2f442d=a1122_0x13a940,_0x555fa0=this;this[_0x2f442d(0x1cd)][_0x2f442d(0x1d4)](function(){const _0x512030=_0x2f442d;return _0x555fa0[_0x512030(0x1d9)][_0x512030(0x1e9)](_0x3e1c66,_0x13c9b1,{'indexName':_0x4c71c8})['then'](function(){const _0x3d84a2=_0x512030;logger[_0x3d84a2(0x1db)](_0x3d84a2(0x1e5),_0x3e1c66,_0x13c9b1[_0x3d84a2(0x1df)](','),_0x4c71c8);})['catch'](function(_0x4fd3e4){const _0x47a4da=_0x512030;logger['info'](JSON[_0x47a4da(0x1e1)](_0x4fd3e4));});});},Migration[a1122_0x13a940(0x1cc)]['removeIndex']=function(_0xaceb92,_0x1c0b7d){const _0x5bd8de=a1122_0x13a940,_0x1042f1=this;this[_0x5bd8de(0x1cd)][_0x5bd8de(0x1d4)](function(){const _0x2685f3=_0x5bd8de;return _0x1042f1[_0x2685f3(0x1d9)][_0x2685f3(0x1dc)](_0xaceb92,_0x1c0b7d)[_0x2685f3(0x1d1)](function(){const _0x57555a=_0x2685f3;logger[_0x57555a(0x1db)]('removeIndex\x20%s\x20%s',_0xaceb92,_0x1c0b7d);})[_0x2685f3(0x1de)](function(_0x13bcf8){const _0x1eda79=_0x2685f3;logger[_0x1eda79(0x1db)](JSON['stringify'](_0x13bcf8));});});},Migration[a1122_0x13a940(0x1cc)][a1122_0x13a940(0x1cf)]=function(_0x5b65e5){const _0x5f3fbc=a1122_0x13a940,_0x3b962d=this;this[_0x5f3fbc(0x1cd)]['enqueue'](function(){const _0x2dd9e9=_0x5f3fbc;return _0x3b962d['queryInterface']['sequelize']['query'](_0x5b65e5)[_0x2dd9e9(0x1d1)](function(){const _0x2270ce=_0x2dd9e9;logger[_0x2270ce(0x1db)](_0x2270ce(0x1d3),_0x5b65e5);})['catch'](function(_0x1b73a9){const _0x3c6f46=_0x2dd9e9;logger[_0x3c6f46(0x1db)](JSON[_0x3c6f46(0x1e1)](_0x1b73a9));});});},Migration[a1122_0x13a940(0x1cc)][a1122_0x13a940(0x1e4)]=function(_0x10044a,_0x43a367){const _0xfabe49=a1122_0x13a940,_0x353f74=this;this[_0xfabe49(0x1cd)][_0xfabe49(0x1d4)](function(){const _0x46097e=_0xfabe49;return _0x353f74['queryInterface'][_0x46097e(0x1e4)](_0x10044a,_0x43a367)['then'](function(){const _0x235138=_0x46097e;logger[_0x235138(0x1db)](_0x235138(0x1ea),_0x43a367,_0x10044a);})[_0x46097e(0x1de)](function(_0x7d72e){const _0x2f5d8f=_0x46097e;logger[_0x2f5d8f(0x1db)](util['inspect'](_0x7d72e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1122_0x13a940(0x1d0)]=function(_0x5a292a,_0x5946a2,_0x49b0c3){const _0x1f97e0=a1122_0x13a940,_0x4c66fb=this;this[_0x1f97e0(0x1cd)]['enqueue'](function(){const _0x451281=_0x1f97e0;return _0x4c66fb[_0x451281(0x1d9)]['renameColumn'](_0x5a292a,_0x5946a2,_0x49b0c3)[_0x451281(0x1d1)](function(){const _0x56d886=_0x451281;logger['info'](_0x56d886(0x1d7),_0x5946a2,_0x49b0c3,_0x5a292a);})['catch'](function(_0x2090c2){const _0x443b46=_0x451281;logger['info'](util[_0x443b46(0x1d2)](_0x2090c2,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1122_0x13a940(0x1d8)]=function(_0xb1d1d2){const _0x19aa01=a1122_0x13a940;this[_0x19aa01(0x1cd)]['enqueue'](function(){return _0xb1d1d2();});},module[a1122_0x13a940(0x1e2)]={'up':function(_0x418b0e){return new Promise(function(_0x59fc8d){const _0x3be7d9=a1122_0x2bcf,_0x3c5f51=new Migration(_0x418b0e);_0x3c5f51['query'](_0x3be7d9(0x1d6)),_0x3c5f51[_0x3be7d9(0x1d8)](_0x59fc8d);});},'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 3ce40cc..555ebc7 100644 --- a/server/migrations/2.0.80.js +++ b/server/migrations/2.0.80.js @@ -1 +1 @@ -const a1123_0x4a6e=['Added\x20column\x20%s\x20to\x20%s','enqueue','final','catch','renameColumn','then','settings','join','STRING','queryInterface','query\x20%s','info','sequelize','inspect','sequence','util','changeColumn','finally','dropTable','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','stringify','../config/logger','addColumn','addIndex','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','defaultPreferred','migration','tail','exports','removeColumn','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s'];(function(_0x519f81,_0x4b7e79){const _0x4a6ea2=function(_0xd0ce1b){while(--_0xd0ce1b){_0x519f81['push'](_0x519f81['shift']());}};_0x4a6ea2(++_0x4b7e79);}(a1123_0x4a6e,0xc6));const a1123_0xd0ce=function(_0x519f81,_0x4b7e79){_0x519f81=_0x519f81-0x103;let _0x4a6ea2=a1123_0x4a6e[_0x519f81];return _0x4a6ea2;};const a1123_0x30c3d8=a1123_0xd0ce;'use strict';const util=require(a1123_0x30c3d8(0x124)),logger=require(a1123_0x30c3d8(0x107))(a1123_0x30c3d8(0x10e)),Sequence=function(){};Sequence[a1123_0x30c3d8(0x112)][a1123_0x30c3d8(0x116)]=function(_0x295294){const _0x5dea72=a1123_0x30c3d8;this['tail']=this['tail']?this[_0x5dea72(0x10f)][_0x5dea72(0x126)](_0x295294):_0x295294();};const Migration=function(_0x2c6a5a){const _0x5e2ccf=a1123_0x30c3d8;this['queryInterface']=_0x2c6a5a,this[_0x5e2ccf(0x123)]=new Sequence();};Migration[a1123_0x30c3d8(0x112)][a1123_0x30c3d8(0x125)]=function(_0x11e788,_0x58b415,_0x73ac79){const _0x2b4c7b=this;this['sequence']['enqueue'](function(){const _0x5ec2a5=a1123_0xd0ce;return _0x2b4c7b[_0x5ec2a5(0x11e)]['changeColumn'](_0x11e788,_0x58b415,_0x73ac79)[_0x5ec2a5(0x11a)](function(){const _0x4c4096=_0x5ec2a5;logger['info'](_0x4c4096(0x113),_0x58b415,_0x11e788);})['catch'](function(_0x145f6d){const _0x1d8331=_0x5ec2a5;logger[_0x1d8331(0x120)](JSON['stringify'](_0x145f6d));});});},Migration['prototype'][a1123_0x30c3d8(0x108)]=function(_0x413d18,_0x1d9478,_0x118c4d){const _0x2ccbec=a1123_0x30c3d8,_0x31d6de=this;this[_0x2ccbec(0x123)][_0x2ccbec(0x116)](function(){const _0x54f592=_0x2ccbec;return _0x31d6de[_0x54f592(0x11e)][_0x54f592(0x108)](_0x413d18,_0x1d9478,_0x118c4d)[_0x54f592(0x11a)](function(){const _0xaf7c24=_0x54f592;logger[_0xaf7c24(0x120)](_0xaf7c24(0x115),_0x1d9478,_0x413d18);})[_0x54f592(0x118)](function(_0x4f028f){const _0x357a49=_0x54f592;logger[_0x357a49(0x120)](JSON['stringify'](_0x4f028f));});});},Migration['prototype'][a1123_0x30c3d8(0x103)]=function(_0x301e6e){const _0x1661ec=a1123_0x30c3d8,_0x250a90=this;this[_0x1661ec(0x123)][_0x1661ec(0x116)](function(){const _0x25516e=_0x1661ec;return _0x250a90[_0x25516e(0x11e)][_0x25516e(0x103)](_0x301e6e,{'force':!![]})['then'](function(){const _0x1660bb=_0x25516e;logger[_0x1660bb(0x120)](_0x1660bb(0x114),_0x301e6e);})[_0x25516e(0x118)](function(_0x52f50b){const _0x58cddc=_0x25516e;logger[_0x58cddc(0x120)](JSON[_0x58cddc(0x106)](_0x52f50b));});});},Migration[a1123_0x30c3d8(0x112)][a1123_0x30c3d8(0x109)]=function(_0x39c95b,_0x5036c1,_0x553eeb){const _0x362437=a1123_0x30c3d8,_0x4c4f83=this;this['sequence'][_0x362437(0x116)](function(){const _0x76e109=_0x362437;return _0x4c4f83['queryInterface'][_0x76e109(0x109)](_0x39c95b,_0x5036c1,{'indexName':_0x553eeb})[_0x76e109(0x11a)](function(){const _0x476eac=_0x76e109;logger[_0x476eac(0x120)]('addIndex\x20%s\x20%s\x20%s',_0x39c95b,_0x5036c1[_0x476eac(0x11c)](','),_0x553eeb);})[_0x76e109(0x118)](function(_0x551d06){const _0x423018=_0x76e109;logger[_0x423018(0x120)](JSON[_0x423018(0x106)](_0x551d06));});});},Migration[a1123_0x30c3d8(0x112)][a1123_0x30c3d8(0x10c)]=function(_0x319a2f,_0x42c3e9){const _0x1f3303=a1123_0x30c3d8,_0x1fd2b2=this;this[_0x1f3303(0x123)][_0x1f3303(0x116)](function(){const _0x478070=_0x1f3303;return _0x1fd2b2['queryInterface'][_0x478070(0x10c)](_0x319a2f,_0x42c3e9)[_0x478070(0x11a)](function(){const _0x15ebfa=_0x478070;logger[_0x15ebfa(0x120)](_0x15ebfa(0x105),_0x319a2f,_0x42c3e9);})[_0x478070(0x118)](function(_0x1f2867){const _0x300b10=_0x478070;logger[_0x300b10(0x120)](JSON['stringify'](_0x1f2867));});});},Migration['prototype'][a1123_0x30c3d8(0x10a)]=function(_0xb11784){const _0x48caf4=a1123_0x30c3d8,_0x55d2df=this;this[_0x48caf4(0x123)]['enqueue'](function(){const _0x17b761=_0x48caf4;return _0x55d2df[_0x17b761(0x11e)][_0x17b761(0x121)][_0x17b761(0x10a)](_0xb11784)[_0x17b761(0x11a)](function(){const _0x6421f2=_0x17b761;logger[_0x6421f2(0x120)](_0x6421f2(0x11f),_0xb11784);})[_0x17b761(0x118)](function(_0x4d80af){const _0x9b2d3c=_0x17b761;logger[_0x9b2d3c(0x120)](JSON['stringify'](_0x4d80af));});});},Migration[a1123_0x30c3d8(0x112)][a1123_0x30c3d8(0x111)]=function(_0x252f57,_0x5332ca){const _0x6889b9=a1123_0x30c3d8,_0x5a5b32=this;this[_0x6889b9(0x123)][_0x6889b9(0x116)](function(){const _0x59d8d7=_0x6889b9;return _0x5a5b32[_0x59d8d7(0x11e)]['removeColumn'](_0x252f57,_0x5332ca)[_0x59d8d7(0x11a)](function(){const _0x504b9d=_0x59d8d7;logger[_0x504b9d(0x120)](_0x504b9d(0x104),_0x5332ca,_0x252f57);})['catch'](function(_0x1e2a15){const _0x123ec8=_0x59d8d7;logger[_0x123ec8(0x120)](util[_0x123ec8(0x122)](_0x1e2a15,{'showHidden':![],'depth':null}));});});},Migration[a1123_0x30c3d8(0x112)]['renameColumn']=function(_0x3a99e3,_0x14b161,_0x17559d){const _0x398071=a1123_0x30c3d8,_0x519f31=this;this['sequence'][_0x398071(0x116)](function(){const _0x5904db=_0x398071;return _0x519f31[_0x5904db(0x11e)][_0x5904db(0x119)](_0x3a99e3,_0x14b161,_0x17559d)[_0x5904db(0x11a)](function(){const _0x48ef4e=_0x5904db;logger[_0x48ef4e(0x120)](_0x48ef4e(0x10b),_0x14b161,_0x17559d,_0x3a99e3);})['catch'](function(_0x316270){const _0x278e59=_0x5904db;logger[_0x278e59(0x120)](util['inspect'](_0x316270,{'showHidden':![],'depth':null}));});});},Migration[a1123_0x30c3d8(0x112)][a1123_0x30c3d8(0x117)]=function(_0x20ccb7){const _0x938a85=a1123_0x30c3d8;this[_0x938a85(0x123)]['enqueue'](function(){return _0x20ccb7();});},module[a1123_0x30c3d8(0x110)]={'up':function(_0x3bb405,_0x5343e3){return new Promise(function(_0x23a594){const _0x191f9b=a1123_0xd0ce,_0x282735=new Migration(_0x3bb405);_0x282735[_0x191f9b(0x108)]('settings','preferred',{'type':_0x5343e3[_0x191f9b(0x11d)]}),_0x282735[_0x191f9b(0x108)](_0x191f9b(0x11b),_0x191f9b(0x10d),{'type':_0x5343e3['BOOLEAN'],'defaultValue':!![]}),_0x282735[_0x191f9b(0x117)](_0x23a594);});},'down':function(){}}; \ No newline at end of file +const a1123_0x378b=['preferred','exports','info','BOOLEAN','renameColumn','removeIndex','catch','addIndex','tail','query','addColumn','removeIndex\x20%s\x20%s','sequence','Removed\x20column\x20%s\x20from\x20%s','util','query\x20%s','settings','dropTable','then','stringify','addIndex\x20%s\x20%s\x20%s','sequelize','inspect','queryInterface','finally','Added\x20column\x20%s\x20to\x20%s','changeColumn','final','defaultPreferred','migration','removeColumn','enqueue','prototype'];(function(_0x2801e8,_0x55541a){const _0x378bb7=function(_0x115324){while(--_0x115324){_0x2801e8['push'](_0x2801e8['shift']());}};_0x378bb7(++_0x55541a);}(a1123_0x378b,0x17c));const a1123_0x1153=function(_0x2801e8,_0x55541a){_0x2801e8=_0x2801e8-0x18e;let _0x378bb7=a1123_0x378b[_0x2801e8];return _0x378bb7;};const a1123_0x34ea52=a1123_0x1153;'use strict';const util=require(a1123_0x34ea52(0x1ac)),logger=require('../config/logger')(a1123_0x34ea52(0x19a)),Sequence=function(){};Sequence['prototype'][a1123_0x34ea52(0x19c)]=function(_0xd81fa1){const _0x36e98f=a1123_0x34ea52;this[_0x36e98f(0x1a6)]=this[_0x36e98f(0x1a6)]?this['tail'][_0x36e98f(0x195)](_0xd81fa1):_0xd81fa1();};const Migration=function(_0x16bd3a){const _0x106dcf=a1123_0x34ea52;this[_0x106dcf(0x194)]=_0x16bd3a,this[_0x106dcf(0x1aa)]=new Sequence();};Migration[a1123_0x34ea52(0x19d)][a1123_0x34ea52(0x197)]=function(_0x48e644,_0x4c73e3,_0x4dc2d6){const _0x1e014c=a1123_0x34ea52,_0x219a51=this;this['sequence'][_0x1e014c(0x19c)](function(){const _0x58b128=_0x1e014c;return _0x219a51[_0x58b128(0x194)][_0x58b128(0x197)](_0x48e644,_0x4c73e3,_0x4dc2d6)[_0x58b128(0x18f)](function(){const _0x2d6162=_0x58b128;logger[_0x2d6162(0x1a0)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4c73e3,_0x48e644);})[_0x58b128(0x1a4)](function(_0x36a732){const _0x408898=_0x58b128;logger[_0x408898(0x1a0)](JSON[_0x408898(0x190)](_0x36a732));});});},Migration['prototype'][a1123_0x34ea52(0x1a8)]=function(_0x16b3f6,_0x78758a,_0x4a52ae){const _0x5908b7=a1123_0x34ea52,_0x14e53f=this;this[_0x5908b7(0x1aa)][_0x5908b7(0x19c)](function(){const _0x551cfc=_0x5908b7;return _0x14e53f[_0x551cfc(0x194)][_0x551cfc(0x1a8)](_0x16b3f6,_0x78758a,_0x4a52ae)[_0x551cfc(0x18f)](function(){const _0xa58d2e=_0x551cfc;logger[_0xa58d2e(0x1a0)](_0xa58d2e(0x196),_0x78758a,_0x16b3f6);})['catch'](function(_0x19b1a7){const _0x252548=_0x551cfc;logger[_0x252548(0x1a0)](JSON[_0x252548(0x190)](_0x19b1a7));});});},Migration[a1123_0x34ea52(0x19d)]['dropTable']=function(_0x3a50de){const _0x29c653=a1123_0x34ea52,_0x3656ea=this;this[_0x29c653(0x1aa)][_0x29c653(0x19c)](function(){const _0x44bcb3=_0x29c653;return _0x3656ea[_0x44bcb3(0x194)][_0x44bcb3(0x18e)](_0x3a50de,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x3a50de);})['catch'](function(_0x60dcd2){const _0x8f0c8b=_0x44bcb3;logger[_0x8f0c8b(0x1a0)](JSON['stringify'](_0x60dcd2));});});},Migration[a1123_0x34ea52(0x19d)][a1123_0x34ea52(0x1a5)]=function(_0x36c427,_0x574d2a,_0x3dc291){const _0x365dff=a1123_0x34ea52,_0x362d71=this;this[_0x365dff(0x1aa)][_0x365dff(0x19c)](function(){const _0x5df507=_0x365dff;return _0x362d71['queryInterface'][_0x5df507(0x1a5)](_0x36c427,_0x574d2a,{'indexName':_0x3dc291})[_0x5df507(0x18f)](function(){const _0x4f5fbc=_0x5df507;logger[_0x4f5fbc(0x1a0)](_0x4f5fbc(0x191),_0x36c427,_0x574d2a['join'](','),_0x3dc291);})[_0x5df507(0x1a4)](function(_0x51e9e6){const _0x58fd03=_0x5df507;logger[_0x58fd03(0x1a0)](JSON[_0x58fd03(0x190)](_0x51e9e6));});});},Migration[a1123_0x34ea52(0x19d)][a1123_0x34ea52(0x1a3)]=function(_0x17d3cc,_0x1f6c8c){const _0x2aa0df=a1123_0x34ea52,_0x17bdf8=this;this['sequence'][_0x2aa0df(0x19c)](function(){const _0x1ce995=_0x2aa0df;return _0x17bdf8['queryInterface'][_0x1ce995(0x1a3)](_0x17d3cc,_0x1f6c8c)['then'](function(){const _0x45dd31=_0x1ce995;logger[_0x45dd31(0x1a0)](_0x45dd31(0x1a9),_0x17d3cc,_0x1f6c8c);})[_0x1ce995(0x1a4)](function(_0x390f10){const _0xd7d593=_0x1ce995;logger['info'](JSON[_0xd7d593(0x190)](_0x390f10));});});},Migration['prototype']['query']=function(_0x2b3896){const _0x3deac1=a1123_0x34ea52,_0x799f64=this;this[_0x3deac1(0x1aa)][_0x3deac1(0x19c)](function(){const _0x36cfc7=_0x3deac1;return _0x799f64[_0x36cfc7(0x194)][_0x36cfc7(0x192)][_0x36cfc7(0x1a7)](_0x2b3896)['then'](function(){const _0x45fafa=_0x36cfc7;logger[_0x45fafa(0x1a0)](_0x45fafa(0x1ad),_0x2b3896);})[_0x36cfc7(0x1a4)](function(_0x12782b){const _0x457437=_0x36cfc7;logger[_0x457437(0x1a0)](JSON[_0x457437(0x190)](_0x12782b));});});},Migration[a1123_0x34ea52(0x19d)]['removeColumn']=function(_0x344b65,_0xa433ab){const _0x3fe077=a1123_0x34ea52,_0x1e15b4=this;this[_0x3fe077(0x1aa)][_0x3fe077(0x19c)](function(){const _0x3badea=_0x3fe077;return _0x1e15b4[_0x3badea(0x194)][_0x3badea(0x19b)](_0x344b65,_0xa433ab)[_0x3badea(0x18f)](function(){const _0x4884b9=_0x3badea;logger[_0x4884b9(0x1a0)](_0x4884b9(0x1ab),_0xa433ab,_0x344b65);})[_0x3badea(0x1a4)](function(_0x307b02){logger['info'](util['inspect'](_0x307b02,{'showHidden':![],'depth':null}));});});},Migration[a1123_0x34ea52(0x19d)][a1123_0x34ea52(0x1a2)]=function(_0x4c3c3c,_0x4ed5ef,_0xf10003){const _0x444779=a1123_0x34ea52,_0x5bb3f1=this;this[_0x444779(0x1aa)][_0x444779(0x19c)](function(){const _0x2f759f=_0x444779;return _0x5bb3f1[_0x2f759f(0x194)][_0x2f759f(0x1a2)](_0x4c3c3c,_0x4ed5ef,_0xf10003)['then'](function(){const _0x5e7d7f=_0x2f759f;logger[_0x5e7d7f(0x1a0)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4ed5ef,_0xf10003,_0x4c3c3c);})['catch'](function(_0x2e402c){const _0x578d74=_0x2f759f;logger['info'](util[_0x578d74(0x193)](_0x2e402c,{'showHidden':![],'depth':null}));});});},Migration[a1123_0x34ea52(0x19d)][a1123_0x34ea52(0x198)]=function(_0x395d82){const _0x1b69cf=a1123_0x34ea52;this[_0x1b69cf(0x1aa)]['enqueue'](function(){return _0x395d82();});},module[a1123_0x34ea52(0x19f)]={'up':function(_0x4d4a4a,_0x442c94){return new Promise(function(_0x1fd16c){const _0x11ac5f=a1123_0x1153,_0x158bb3=new Migration(_0x4d4a4a);_0x158bb3[_0x11ac5f(0x1a8)](_0x11ac5f(0x1ae),_0x11ac5f(0x19e),{'type':_0x442c94['STRING']}),_0x158bb3[_0x11ac5f(0x1a8)](_0x11ac5f(0x1ae),_0x11ac5f(0x199),{'type':_0x442c94[_0x11ac5f(0x1a1)],'defaultValue':!![]}),_0x158bb3[_0x11ac5f(0x198)](_0x1fd16c);});},'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 6f8154d..74db609 100644 --- a/server/migrations/2.0.81.js +++ b/server/migrations/2.0.81.js @@ -1 +1 @@ -const a1124_0x2384=['table\x20dropped\x20%s','removeIndex','inspect','removeIndex\x20%s\x20%s','removeColumn','info','cm_contacts','basic','addIndex\x20%s\x20%s\x20%s','../config/logger','Added\x20column\x20%s\x20to\x20%s','queryInterface','ENUM','enqueue','renameColumn','finally','final','prototype','exports','catch','Removed\x20column\x20%s\x20from\x20%s','query','tail','smsMethod','classic+','sequence','migration','sequelize','then','stringify','addIndex','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','STRING','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','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','telegram','changeColumn','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x373935,_0x23fbcc){const _0x23846a=function(_0x4a14e6){while(--_0x4a14e6){_0x373935['push'](_0x373935['shift']());}};_0x23846a(++_0x23fbcc);}(a1124_0x2384,0xd6));const a1124_0x4a14=function(_0x373935,_0x23fbcc){_0x373935=_0x373935-0x117;let _0x23846a=a1124_0x2384[_0x373935];return _0x23846a;};const a1124_0x33e3e3=a1124_0x4a14;'use strict';const util=require('util'),logger=require(a1124_0x33e3e3(0x13a))(a1124_0x33e3e3(0x123)),Sequence=function(){};Sequence[a1124_0x33e3e3(0x11a)][a1124_0x33e3e3(0x13e)]=function(_0x5f02ff){const _0x394220=a1124_0x33e3e3;this[_0x394220(0x11f)]=this[_0x394220(0x11f)]?this[_0x394220(0x11f)][_0x394220(0x118)](_0x5f02ff):_0x5f02ff();};const Migration=function(_0x2f0b19){const _0x58bf2f=a1124_0x33e3e3;this[_0x58bf2f(0x13c)]=_0x2f0b19,this[_0x58bf2f(0x122)]=new Sequence();};Migration['prototype'][a1124_0x33e3e3(0x12e)]=function(_0x2c7f29,_0x4df354,_0x535d4d){const _0x940846=a1124_0x33e3e3,_0x481b85=this;this[_0x940846(0x122)][_0x940846(0x13e)](function(){const _0x22d59b=_0x940846;return _0x481b85[_0x22d59b(0x13c)][_0x22d59b(0x12e)](_0x2c7f29,_0x4df354,_0x535d4d)[_0x22d59b(0x125)](function(){const _0x1c8282=_0x22d59b;logger[_0x1c8282(0x136)](_0x1c8282(0x130),_0x4df354,_0x2c7f29);})[_0x22d59b(0x11c)](function(_0x41024d){logger['info'](JSON['stringify'](_0x41024d));});});},Migration['prototype']['addColumn']=function(_0x681919,_0x219ff2,_0x2607f8){const _0x176b67=a1124_0x33e3e3,_0x4451f8=this;this['sequence'][_0x176b67(0x13e)](function(){const _0x89190e=_0x176b67;return _0x4451f8[_0x89190e(0x13c)]['addColumn'](_0x681919,_0x219ff2,_0x2607f8)['then'](function(){const _0xb8af1b=_0x89190e;logger[_0xb8af1b(0x136)](_0xb8af1b(0x13b),_0x219ff2,_0x681919);})[_0x89190e(0x11c)](function(_0x389004){const _0x3bd3dd=_0x89190e;logger[_0x3bd3dd(0x136)](JSON[_0x3bd3dd(0x126)](_0x389004));});});},Migration['prototype']['dropTable']=function(_0x40f1ec){const _0x1eedda=a1124_0x33e3e3,_0x4f7450=this;this['sequence'][_0x1eedda(0x13e)](function(){const _0x55fc19=_0x1eedda;return _0x4f7450['queryInterface'][_0x55fc19(0x12f)](_0x40f1ec,{'force':!![]})[_0x55fc19(0x125)](function(){const _0x48a1fc=_0x55fc19;logger[_0x48a1fc(0x136)](_0x48a1fc(0x131),_0x40f1ec);})['catch'](function(_0x577566){const _0x28429a=_0x55fc19;logger[_0x28429a(0x136)](JSON[_0x28429a(0x126)](_0x577566));});});},Migration[a1124_0x33e3e3(0x11a)][a1124_0x33e3e3(0x127)]=function(_0x582133,_0x54d7f7,_0xc7e0a1){const _0x36664d=a1124_0x33e3e3,_0x15cc80=this;this[_0x36664d(0x122)][_0x36664d(0x13e)](function(){const _0x108769=_0x36664d;return _0x15cc80['queryInterface'][_0x108769(0x127)](_0x582133,_0x54d7f7,{'indexName':_0xc7e0a1})[_0x108769(0x125)](function(){const _0x549a83=_0x108769;logger[_0x549a83(0x136)](_0x549a83(0x139),_0x582133,_0x54d7f7['join'](','),_0xc7e0a1);})[_0x108769(0x11c)](function(_0xdc0b30){const _0x388f44=_0x108769;logger['info'](JSON[_0x388f44(0x126)](_0xdc0b30));});});},Migration[a1124_0x33e3e3(0x11a)][a1124_0x33e3e3(0x132)]=function(_0x579be7,_0x56cacb){const _0x4770d1=a1124_0x33e3e3,_0x4e71ed=this;this['sequence'][_0x4770d1(0x13e)](function(){const _0x27bf1f=_0x4770d1;return _0x4e71ed[_0x27bf1f(0x13c)]['removeIndex'](_0x579be7,_0x56cacb)[_0x27bf1f(0x125)](function(){const _0x3d2667=_0x27bf1f;logger[_0x3d2667(0x136)](_0x3d2667(0x134),_0x579be7,_0x56cacb);})[_0x27bf1f(0x11c)](function(_0x5917e4){const _0x56fa62=_0x27bf1f;logger[_0x56fa62(0x136)](JSON[_0x56fa62(0x126)](_0x5917e4));});});},Migration[a1124_0x33e3e3(0x11a)][a1124_0x33e3e3(0x11e)]=function(_0x36672e){const _0x25ecd6=a1124_0x33e3e3,_0x4b227c=this;this[_0x25ecd6(0x122)][_0x25ecd6(0x13e)](function(){const _0x3f7cde=_0x25ecd6;return _0x4b227c[_0x3f7cde(0x13c)][_0x3f7cde(0x124)][_0x3f7cde(0x11e)](_0x36672e)[_0x3f7cde(0x125)](function(){const _0xa0eaf7=_0x3f7cde;logger[_0xa0eaf7(0x136)]('query\x20%s',_0x36672e);})[_0x3f7cde(0x11c)](function(_0x595b3f){const _0x52dc07=_0x3f7cde;logger['info'](JSON[_0x52dc07(0x126)](_0x595b3f));});});},Migration[a1124_0x33e3e3(0x11a)][a1124_0x33e3e3(0x135)]=function(_0x281d5d,_0x46ecce){const _0x36d544=a1124_0x33e3e3,_0x3cabd8=this;this[_0x36d544(0x122)]['enqueue'](function(){const _0x2915dd=_0x36d544;return _0x3cabd8[_0x2915dd(0x13c)][_0x2915dd(0x135)](_0x281d5d,_0x46ecce)[_0x2915dd(0x125)](function(){const _0xc9d782=_0x2915dd;logger[_0xc9d782(0x136)](_0xc9d782(0x11d),_0x46ecce,_0x281d5d);})[_0x2915dd(0x11c)](function(_0x120c69){const _0x196fdc=_0x2915dd;logger['info'](util[_0x196fdc(0x133)](_0x120c69,{'showHidden':![],'depth':null}));});});},Migration[a1124_0x33e3e3(0x11a)][a1124_0x33e3e3(0x117)]=function(_0x4333c3,_0x363d2e,_0x1542d3){const _0x24493f=a1124_0x33e3e3,_0x34a0bb=this;this[_0x24493f(0x122)]['enqueue'](function(){const _0x575918=_0x24493f;return _0x34a0bb[_0x575918(0x13c)][_0x575918(0x117)](_0x4333c3,_0x363d2e,_0x1542d3)[_0x575918(0x125)](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x363d2e,_0x1542d3,_0x4333c3);})[_0x575918(0x11c)](function(_0x444e6b){const _0x175803=_0x575918;logger[_0x175803(0x136)](util[_0x175803(0x133)](_0x444e6b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1124_0x33e3e3(0x119)]=function(_0x2406ff){const _0x440796=a1124_0x33e3e3;this[_0x440796(0x122)][_0x440796(0x13e)](function(){return _0x2406ff();});},module[a1124_0x33e3e3(0x11b)]={'up':function(_0x51232a,_0x45c77a){return new Promise(function(_0x4f92bb){const _0x27aad5=a1124_0x4a14,_0x5bc871=new Migration(_0x51232a);_0x5bc871[_0x27aad5(0x12e)](_0x27aad5(0x12a),_0x27aad5(0x120),{'type':_0x45c77a[_0x27aad5(0x13d)](_0x27aad5(0x138),'classic',_0x27aad5(0x121),'SI','TI','GP')}),_0x5bc871[_0x27aad5(0x11e)](_0x27aad5(0x12c)),_0x5bc871[_0x27aad5(0x11e)](_0x27aad5(0x128)),_0x5bc871['query'](_0x27aad5(0x12b)),_0x5bc871['changeColumn'](_0x27aad5(0x12a),_0x27aad5(0x120),{'type':_0x45c77a[_0x27aad5(0x13d)]('SI','TI','GP')}),_0x5bc871['addColumn'](_0x27aad5(0x137),_0x27aad5(0x12d),{'type':_0x45c77a[_0x27aad5(0x129)]}),_0x5bc871[_0x27aad5(0x119)](_0x4f92bb);});},'down':function(){}}; \ No newline at end of file +const a1124_0x4672=['table\x20dropped\x20%s','stringify','addIndex\x20%s\x20%s\x20%s','UPDATE\x20sms_accounts\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SET\x20smsMethod\x20=\x20\x27TI\x27\x20WHERE\x20smsMethod\x20=\x20\x27classic\x27','enqueue','STRING','sequence','info','query','classic+','finally','smsMethod','dropTable','basic','removeColumn','inspect','then','ENUM','Removed\x20column\x20%s\x20from\x20%s','sequelize','changeColumn','catch','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','join','telegram','tail','util','addIndex','queryInterface','removeIndex','prototype','exports','../config/logger','sms_accounts','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','final'];(function(_0x53b1eb,_0x2d42c7){const _0x467238=function(_0x541331){while(--_0x541331){_0x53b1eb['push'](_0x53b1eb['shift']());}};_0x467238(++_0x2d42c7);}(a1124_0x4672,0xd2));const a1124_0x5413=function(_0x53b1eb,_0x2d42c7){_0x53b1eb=_0x53b1eb-0x139;let _0x467238=a1124_0x4672[_0x53b1eb];return _0x467238;};const a1124_0xaac09a=a1124_0x5413;'use strict';const util=require(a1124_0xaac09a(0x146)),logger=require(a1124_0xaac09a(0x14c))('migration'),Sequence=function(){};Sequence[a1124_0xaac09a(0x14a)]['enqueue']=function(_0x3fe536){const _0x36567a=a1124_0xaac09a;this[_0x36567a(0x145)]=this[_0x36567a(0x145)]?this[_0x36567a(0x145)][_0x36567a(0x15b)](_0x3fe536):_0x3fe536();};const Migration=function(_0x5124fd){const _0x422561=a1124_0xaac09a;this[_0x422561(0x148)]=_0x5124fd,this[_0x422561(0x157)]=new Sequence();};Migration[a1124_0xaac09a(0x14a)]['changeColumn']=function(_0x54f3b6,_0x4d6932,_0x133552){const _0x2b4c9f=a1124_0xaac09a,_0x1f4151=this;this[_0x2b4c9f(0x157)]['enqueue'](function(){const _0x385c26=_0x2b4c9f;return _0x1f4151[_0x385c26(0x148)]['changeColumn'](_0x54f3b6,_0x4d6932,_0x133552)[_0x385c26(0x13a)](function(){const _0x248968=_0x385c26;logger[_0x248968(0x158)](_0x248968(0x14f),_0x4d6932,_0x54f3b6);})[_0x385c26(0x13f)](function(_0x58dcbc){const _0x290b46=_0x385c26;logger[_0x290b46(0x158)](JSON[_0x290b46(0x152)](_0x58dcbc));});});},Migration[a1124_0xaac09a(0x14a)][a1124_0xaac09a(0x140)]=function(_0x52bec7,_0x28a388,_0x2ccc5f){const _0x4da5ec=a1124_0xaac09a,_0x2b5f41=this;this[_0x4da5ec(0x157)][_0x4da5ec(0x155)](function(){const _0x3a4131=_0x4da5ec;return _0x2b5f41['queryInterface'][_0x3a4131(0x140)](_0x52bec7,_0x28a388,_0x2ccc5f)[_0x3a4131(0x13a)](function(){const _0x59fec3=_0x3a4131;logger[_0x59fec3(0x158)](_0x59fec3(0x142),_0x28a388,_0x52bec7);})[_0x3a4131(0x13f)](function(_0x63bb48){const _0x4f20be=_0x3a4131;logger[_0x4f20be(0x158)](JSON[_0x4f20be(0x152)](_0x63bb48));});});},Migration['prototype'][a1124_0xaac09a(0x15d)]=function(_0x562c8b){const _0x2971e2=a1124_0xaac09a,_0x4bf50a=this;this[_0x2971e2(0x157)]['enqueue'](function(){const _0xaefa4d=_0x2971e2;return _0x4bf50a[_0xaefa4d(0x148)]['dropTable'](_0x562c8b,{'force':!![]})['then'](function(){const _0x5a9879=_0xaefa4d;logger['info'](_0x5a9879(0x151),_0x562c8b);})[_0xaefa4d(0x13f)](function(_0x1467cc){logger['info'](JSON['stringify'](_0x1467cc));});});},Migration[a1124_0xaac09a(0x14a)][a1124_0xaac09a(0x147)]=function(_0x18d538,_0x4169e2,_0x37ce13){const _0x2b5bbc=a1124_0xaac09a,_0x95beff=this;this[_0x2b5bbc(0x157)][_0x2b5bbc(0x155)](function(){const _0x252228=_0x2b5bbc;return _0x95beff['queryInterface'][_0x252228(0x147)](_0x18d538,_0x4169e2,{'indexName':_0x37ce13})[_0x252228(0x13a)](function(){const _0x16845f=_0x252228;logger[_0x16845f(0x158)](_0x16845f(0x153),_0x18d538,_0x4169e2[_0x16845f(0x143)](','),_0x37ce13);})['catch'](function(_0x15c105){const _0x43fd9b=_0x252228;logger['info'](JSON[_0x43fd9b(0x152)](_0x15c105));});});},Migration[a1124_0xaac09a(0x14a)][a1124_0xaac09a(0x149)]=function(_0x56e3fc,_0x2dc55a){const _0xf5a079=a1124_0xaac09a,_0x1e5f16=this;this['sequence'][_0xf5a079(0x155)](function(){const _0x4941d2=_0xf5a079;return _0x1e5f16[_0x4941d2(0x148)][_0x4941d2(0x149)](_0x56e3fc,_0x2dc55a)['then'](function(){const _0x5793af=_0x4941d2;logger[_0x5793af(0x158)]('removeIndex\x20%s\x20%s',_0x56e3fc,_0x2dc55a);})['catch'](function(_0x4ee320){const _0x209417=_0x4941d2;logger[_0x209417(0x158)](JSON[_0x209417(0x152)](_0x4ee320));});});},Migration['prototype']['query']=function(_0x2b90ef){const _0x438788=a1124_0xaac09a,_0x328506=this;this[_0x438788(0x157)]['enqueue'](function(){const _0x1c030e=_0x438788;return _0x328506[_0x1c030e(0x148)][_0x1c030e(0x13d)][_0x1c030e(0x159)](_0x2b90ef)[_0x1c030e(0x13a)](function(){const _0x3fb6b0=_0x1c030e;logger[_0x3fb6b0(0x158)]('query\x20%s',_0x2b90ef);})[_0x1c030e(0x13f)](function(_0x5745e2){const _0x3331d3=_0x1c030e;logger[_0x3331d3(0x158)](JSON[_0x3331d3(0x152)](_0x5745e2));});});},Migration[a1124_0xaac09a(0x14a)][a1124_0xaac09a(0x15f)]=function(_0x5ee6bd,_0x217e38){const _0x278994=a1124_0xaac09a,_0x1410cf=this;this[_0x278994(0x157)][_0x278994(0x155)](function(){const _0xa5fc5f=_0x278994;return _0x1410cf[_0xa5fc5f(0x148)][_0xa5fc5f(0x15f)](_0x5ee6bd,_0x217e38)[_0xa5fc5f(0x13a)](function(){const _0x2a200f=_0xa5fc5f;logger[_0x2a200f(0x158)](_0x2a200f(0x13c),_0x217e38,_0x5ee6bd);})[_0xa5fc5f(0x13f)](function(_0x44e864){const _0xa93762=_0xa5fc5f;logger['info'](util[_0xa93762(0x139)](_0x44e864,{'showHidden':![],'depth':null}));});});},Migration[a1124_0xaac09a(0x14a)][a1124_0xaac09a(0x14e)]=function(_0xfd34df,_0xb2fc90,_0xb8261a){const _0x4e17ff=a1124_0xaac09a,_0x5b7314=this;this[_0x4e17ff(0x157)][_0x4e17ff(0x155)](function(){const _0x34e6d5=_0x4e17ff;return _0x5b7314[_0x34e6d5(0x148)][_0x34e6d5(0x14e)](_0xfd34df,_0xb2fc90,_0xb8261a)[_0x34e6d5(0x13a)](function(){const _0x3d378a=_0x34e6d5;logger[_0x3d378a(0x158)](_0x3d378a(0x141),_0xb2fc90,_0xb8261a,_0xfd34df);})[_0x34e6d5(0x13f)](function(_0x54b57f){const _0x29253a=_0x34e6d5;logger[_0x29253a(0x158)](util[_0x29253a(0x139)](_0x54b57f,{'showHidden':![],'depth':null}));});});},Migration[a1124_0xaac09a(0x14a)][a1124_0xaac09a(0x150)]=function(_0x212592){const _0x2a8c67=a1124_0xaac09a;this[_0x2a8c67(0x157)][_0x2a8c67(0x155)](function(){return _0x212592();});},module[a1124_0xaac09a(0x14b)]={'up':function(_0x879ef9,_0x10beb5){return new Promise(function(_0x502c6c){const _0x552999=a1124_0x5413,_0x5f073e=new Migration(_0x879ef9);_0x5f073e[_0x552999(0x13e)](_0x552999(0x14d),_0x552999(0x15c),{'type':_0x10beb5['ENUM'](_0x552999(0x15e),'classic',_0x552999(0x15a),'SI','TI','GP')}),_0x5f073e[_0x552999(0x159)]('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'),_0x5f073e[_0x552999(0x159)](_0x552999(0x154)),_0x5f073e[_0x552999(0x159)]('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'),_0x5f073e[_0x552999(0x13e)]('sms_accounts','smsMethod',{'type':_0x10beb5[_0x552999(0x13b)]('SI','TI','GP')}),_0x5f073e[_0x552999(0x140)]('cm_contacts',_0x552999(0x144),{'type':_0x10beb5[_0x552999(0x156)]}),_0x5f073e[_0x552999(0x150)](_0x502c6c);});},'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 914be91..14e45d0 100644 --- a/server/migrations/2.0.82.js +++ b/server/migrations/2.0.82.js @@ -1 +1 @@ -const a1125_0x22ce=['clickatell','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','util','connectel','finally','removeColumn','apiKey','table\x20dropped\x20%s','changeColumn','sms_accounts','Removed\x20column\x20%s\x20from\x20%s','twilio','stringify','catch','clicksend','enqueue','sequelize','tail','../config/logger','Added\x20column\x20%s\x20to\x20%s','addIndex\x20%s\x20%s\x20%s','then','addColumn','ENUM','STRING','prototype','info','query\x20%s','queryInterface','renameColumn','sequence','final','inspect','addIndex','removeIndex','query'];(function(_0x184934,_0x589ed2){const _0x22cee1=function(_0x4ad436){while(--_0x4ad436){_0x184934['push'](_0x184934['shift']());}};_0x22cee1(++_0x589ed2);}(a1125_0x22ce,0x6e));const a1125_0x4ad4=function(_0x184934,_0x589ed2){_0x184934=_0x184934-0x65;let _0x22cee1=a1125_0x22ce[_0x184934];return _0x22cee1;};const a1125_0x17b968=a1125_0x4ad4;'use strict';const util=require(a1125_0x17b968(0x6d)),logger=require(a1125_0x17b968(0x7d))('migration'),Sequence=function(){};Sequence[a1125_0x17b968(0x84)][a1125_0x17b968(0x7a)]=function(_0x4b122d){const _0x3db373=a1125_0x17b968;this[_0x3db373(0x7c)]=this[_0x3db373(0x7c)]?this[_0x3db373(0x7c)][_0x3db373(0x6f)](_0x4b122d):_0x4b122d();};const Migration=function(_0x3dda23){const _0x54f969=a1125_0x17b968;this[_0x54f969(0x87)]=_0x3dda23,this[_0x54f969(0x89)]=new Sequence();};Migration[a1125_0x17b968(0x84)][a1125_0x17b968(0x73)]=function(_0x15eaf3,_0x25a3fb,_0x498255){const _0x559110=a1125_0x17b968,_0x3531fc=this;this[_0x559110(0x89)]['enqueue'](function(){const _0x452eeb=_0x559110;return _0x3531fc[_0x452eeb(0x87)][_0x452eeb(0x73)](_0x15eaf3,_0x25a3fb,_0x498255)['then'](function(){const _0x204890=_0x452eeb;logger[_0x204890(0x85)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x25a3fb,_0x15eaf3);})[_0x452eeb(0x78)](function(_0x3c2013){const _0x13d48c=_0x452eeb;logger[_0x13d48c(0x85)](JSON[_0x13d48c(0x77)](_0x3c2013));});});},Migration[a1125_0x17b968(0x84)][a1125_0x17b968(0x81)]=function(_0x25c4fa,_0x5a23a5,_0x42f48b){const _0x1d65f1=a1125_0x17b968,_0x142e5c=this;this[_0x1d65f1(0x89)][_0x1d65f1(0x7a)](function(){const _0xc9fae9=_0x1d65f1;return _0x142e5c[_0xc9fae9(0x87)]['addColumn'](_0x25c4fa,_0x5a23a5,_0x42f48b)[_0xc9fae9(0x80)](function(){const _0x268a60=_0xc9fae9;logger['info'](_0x268a60(0x7e),_0x5a23a5,_0x25c4fa);})[_0xc9fae9(0x78)](function(_0x5d418d){const _0x3526d2=_0xc9fae9;logger[_0x3526d2(0x85)](JSON['stringify'](_0x5d418d));});});},Migration[a1125_0x17b968(0x84)]['dropTable']=function(_0x33ebb1){const _0x1d3b00=a1125_0x17b968,_0x52cb73=this;this[_0x1d3b00(0x89)][_0x1d3b00(0x7a)](function(){const _0x1f04cb=_0x1d3b00;return _0x52cb73['queryInterface'][_0x1f04cb(0x6c)](_0x33ebb1,{'force':!![]})[_0x1f04cb(0x80)](function(){const _0x38ed05=_0x1f04cb;logger['info'](_0x38ed05(0x72),_0x33ebb1);})[_0x1f04cb(0x78)](function(_0x174f40){const _0xfa7259=_0x1f04cb;logger[_0xfa7259(0x85)](JSON[_0xfa7259(0x77)](_0x174f40));});});},Migration[a1125_0x17b968(0x84)][a1125_0x17b968(0x66)]=function(_0x12e993,_0x3c2140,_0x5a61d2){const _0x1ff622=a1125_0x17b968,_0x2b1acb=this;this[_0x1ff622(0x89)][_0x1ff622(0x7a)](function(){const _0x1f3ffd=_0x1ff622;return _0x2b1acb[_0x1f3ffd(0x87)][_0x1f3ffd(0x66)](_0x12e993,_0x3c2140,{'indexName':_0x5a61d2})[_0x1f3ffd(0x80)](function(){const _0x20a9d5=_0x1f3ffd;logger[_0x20a9d5(0x85)](_0x20a9d5(0x7f),_0x12e993,_0x3c2140['join'](','),_0x5a61d2);})[_0x1f3ffd(0x78)](function(_0x58a1f0){const _0x3fc0d7=_0x1f3ffd;logger['info'](JSON[_0x3fc0d7(0x77)](_0x58a1f0));});});},Migration[a1125_0x17b968(0x84)][a1125_0x17b968(0x67)]=function(_0x1ccde6,_0x5ba4fa){const _0x45a225=a1125_0x17b968,_0x58bc13=this;this[_0x45a225(0x89)][_0x45a225(0x7a)](function(){const _0x5b1180=_0x45a225;return _0x58bc13[_0x5b1180(0x87)][_0x5b1180(0x67)](_0x1ccde6,_0x5ba4fa)[_0x5b1180(0x80)](function(){const _0x57fc3a=_0x5b1180;logger[_0x57fc3a(0x85)](_0x57fc3a(0x6a),_0x1ccde6,_0x5ba4fa);})[_0x5b1180(0x78)](function(_0x68f49b){const _0x5e38b9=_0x5b1180;logger[_0x5e38b9(0x85)](JSON[_0x5e38b9(0x77)](_0x68f49b));});});},Migration[a1125_0x17b968(0x84)][a1125_0x17b968(0x68)]=function(_0x501e38){const _0x383ce8=a1125_0x17b968,_0x426f14=this;this[_0x383ce8(0x89)]['enqueue'](function(){const _0x4af866=_0x383ce8;return _0x426f14['queryInterface'][_0x4af866(0x7b)]['query'](_0x501e38)[_0x4af866(0x80)](function(){const _0x5cbfea=_0x4af866;logger[_0x5cbfea(0x85)](_0x5cbfea(0x86),_0x501e38);})[_0x4af866(0x78)](function(_0x3072d8){const _0x19ddda=_0x4af866;logger[_0x19ddda(0x85)](JSON[_0x19ddda(0x77)](_0x3072d8));});});},Migration[a1125_0x17b968(0x84)]['removeColumn']=function(_0x5dcf59,_0x5cef3d){const _0x4ea764=a1125_0x17b968,_0x385a94=this;this[_0x4ea764(0x89)][_0x4ea764(0x7a)](function(){const _0x5ed336=_0x4ea764;return _0x385a94['queryInterface'][_0x5ed336(0x70)](_0x5dcf59,_0x5cef3d)[_0x5ed336(0x80)](function(){const _0x4e26e0=_0x5ed336;logger[_0x4e26e0(0x85)](_0x4e26e0(0x75),_0x5cef3d,_0x5dcf59);})['catch'](function(_0x23a274){const _0x6a0af2=_0x5ed336;logger[_0x6a0af2(0x85)](util[_0x6a0af2(0x65)](_0x23a274,{'showHidden':![],'depth':null}));});});},Migration[a1125_0x17b968(0x84)][a1125_0x17b968(0x88)]=function(_0x2797a6,_0x31c57c,_0x2de095){const _0x3cd8d1=a1125_0x17b968,_0x21053b=this;this[_0x3cd8d1(0x89)]['enqueue'](function(){const _0x3226fa=_0x3cd8d1;return _0x21053b[_0x3226fa(0x87)][_0x3226fa(0x88)](_0x2797a6,_0x31c57c,_0x2de095)['then'](function(){const _0x1e327=_0x3226fa;logger[_0x1e327(0x85)](_0x1e327(0x6b),_0x31c57c,_0x2de095,_0x2797a6);})[_0x3226fa(0x78)](function(_0x3f09ea){const _0x33a1ff=_0x3226fa;logger[_0x33a1ff(0x85)](util['inspect'](_0x3f09ea,{'showHidden':![],'depth':null}));});});},Migration[a1125_0x17b968(0x84)][a1125_0x17b968(0x8a)]=function(_0x360210){const _0x512ba6=a1125_0x17b968;this[_0x512ba6(0x89)][_0x512ba6(0x7a)](function(){return _0x360210();});},module['exports']={'up':function(_0x213ec0,_0x5e95d9){return new Promise(function(_0xb5036d){const _0x21b9f9=a1125_0x4ad4,_0x2c9c80=new Migration(_0x213ec0);_0x2c9c80[_0x21b9f9(0x81)](_0x21b9f9(0x74),_0x21b9f9(0x71),{'type':_0x5e95d9[_0x21b9f9(0x83)]}),_0x2c9c80[_0x21b9f9(0x73)]('sms_accounts','type',{'type':_0x5e95d9[_0x21b9f9(0x82)](_0x21b9f9(0x76),'skebby',_0x21b9f9(0x6e),_0x21b9f9(0x79),'plivo',_0x21b9f9(0x69),'csc')}),_0x2c9c80[_0x21b9f9(0x8a)](_0xb5036d);});},'down':function(){}}; \ No newline at end of file +const a1125_0x50ff=['catch','then','addColumn','query','tail','migration','changeColumn','sms_accounts','enqueue','query\x20%s','../config/logger','ENUM','finally','csc','plivo','queryInterface','Removed\x20column\x20%s\x20from\x20%s','join','removeColumn','Added\x20column\x20%s\x20to\x20%s','sequence','table\x20dropped\x20%s','stringify','twilio','addIndex\x20%s\x20%s\x20%s','removeIndex','connectel','prototype','renameColumn','util','dropTable','info','skebby','STRING','type','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex'];(function(_0x3eadc7,_0x21bbf0){const _0x50ffc2=function(_0x349b82){while(--_0x349b82){_0x3eadc7['push'](_0x3eadc7['shift']());}};_0x50ffc2(++_0x21bbf0);}(a1125_0x50ff,0x1b5));const a1125_0x349b=function(_0x3eadc7,_0x21bbf0){_0x3eadc7=_0x3eadc7-0x126;let _0x50ffc2=a1125_0x50ff[_0x3eadc7];return _0x50ffc2;};const a1125_0xf60fd2=a1125_0x349b;'use strict';const util=require(a1125_0xf60fd2(0x14a)),logger=require(a1125_0xf60fd2(0x137))(a1125_0xf60fd2(0x132)),Sequence=function(){};Sequence[a1125_0xf60fd2(0x148)][a1125_0xf60fd2(0x135)]=function(_0x3507f9){const _0x220c14=a1125_0xf60fd2;this[_0x220c14(0x131)]=this[_0x220c14(0x131)]?this['tail'][_0x220c14(0x139)](_0x3507f9):_0x3507f9();};const Migration=function(_0x147d12){const _0x3a4b7d=a1125_0xf60fd2;this[_0x3a4b7d(0x13c)]=_0x147d12,this['sequence']=new Sequence();};Migration[a1125_0xf60fd2(0x148)][a1125_0xf60fd2(0x133)]=function(_0x4f93d5,_0x48d065,_0x1bb105){const _0x53f211=a1125_0xf60fd2,_0x1eca10=this;this['sequence'][_0x53f211(0x135)](function(){const _0x2449e0=_0x53f211;return _0x1eca10[_0x2449e0(0x13c)][_0x2449e0(0x133)](_0x4f93d5,_0x48d065,_0x1bb105)[_0x2449e0(0x12e)](function(){const _0x5977d=_0x2449e0;logger[_0x5977d(0x127)](_0x5977d(0x12b),_0x48d065,_0x4f93d5);})[_0x2449e0(0x12d)](function(_0x2aa82f){const _0xb57e97=_0x2449e0;logger[_0xb57e97(0x127)](JSON[_0xb57e97(0x143)](_0x2aa82f));});});},Migration[a1125_0xf60fd2(0x148)]['addColumn']=function(_0x43a1d2,_0x228a5e,_0x384690){const _0x43f6be=a1125_0xf60fd2,_0x49d5d4=this;this[_0x43f6be(0x141)][_0x43f6be(0x135)](function(){const _0x3e5ed6=_0x43f6be;return _0x49d5d4[_0x3e5ed6(0x13c)][_0x3e5ed6(0x12f)](_0x43a1d2,_0x228a5e,_0x384690)[_0x3e5ed6(0x12e)](function(){const _0x4bbd6e=_0x3e5ed6;logger[_0x4bbd6e(0x127)](_0x4bbd6e(0x140),_0x228a5e,_0x43a1d2);})['catch'](function(_0x4505b4){const _0x2dde19=_0x3e5ed6;logger['info'](JSON[_0x2dde19(0x143)](_0x4505b4));});});},Migration['prototype'][a1125_0xf60fd2(0x126)]=function(_0x479ed4){const _0xbe2e9d=a1125_0xf60fd2,_0xbc0ca2=this;this[_0xbe2e9d(0x141)][_0xbe2e9d(0x135)](function(){const _0x2c2de6=_0xbe2e9d;return _0xbc0ca2['queryInterface'][_0x2c2de6(0x126)](_0x479ed4,{'force':!![]})[_0x2c2de6(0x12e)](function(){const _0x152aac=_0x2c2de6;logger['info'](_0x152aac(0x142),_0x479ed4);})[_0x2c2de6(0x12d)](function(_0x2fe253){const _0x4adb57=_0x2c2de6;logger[_0x4adb57(0x127)](JSON[_0x4adb57(0x143)](_0x2fe253));});});},Migration[a1125_0xf60fd2(0x148)][a1125_0xf60fd2(0x12c)]=function(_0x13e190,_0x207f41,_0x40f957){const _0x3bd6db=a1125_0xf60fd2,_0x3a2a6f=this;this[_0x3bd6db(0x141)][_0x3bd6db(0x135)](function(){const _0x438546=_0x3bd6db;return _0x3a2a6f[_0x438546(0x13c)][_0x438546(0x12c)](_0x13e190,_0x207f41,{'indexName':_0x40f957})[_0x438546(0x12e)](function(){const _0x5cd0af=_0x438546;logger[_0x5cd0af(0x127)](_0x5cd0af(0x145),_0x13e190,_0x207f41[_0x5cd0af(0x13e)](','),_0x40f957);})['catch'](function(_0x34ef7d){const _0x1113f0=_0x438546;logger[_0x1113f0(0x127)](JSON[_0x1113f0(0x143)](_0x34ef7d));});});},Migration[a1125_0xf60fd2(0x148)][a1125_0xf60fd2(0x146)]=function(_0x46f282,_0x326af8){const _0x3c36b2=a1125_0xf60fd2,_0x4f5451=this;this[_0x3c36b2(0x141)][_0x3c36b2(0x135)](function(){const _0x1d962f=_0x3c36b2;return _0x4f5451[_0x1d962f(0x13c)][_0x1d962f(0x146)](_0x46f282,_0x326af8)[_0x1d962f(0x12e)](function(){const _0xee9686=_0x1d962f;logger[_0xee9686(0x127)]('removeIndex\x20%s\x20%s',_0x46f282,_0x326af8);})['catch'](function(_0x1e7dc0){const _0x131504=_0x1d962f;logger['info'](JSON[_0x131504(0x143)](_0x1e7dc0));});});},Migration[a1125_0xf60fd2(0x148)][a1125_0xf60fd2(0x130)]=function(_0x40f753){const _0xc09ded=a1125_0xf60fd2,_0x1c83e8=this;this[_0xc09ded(0x141)][_0xc09ded(0x135)](function(){const _0x3ff93a=_0xc09ded;return _0x1c83e8[_0x3ff93a(0x13c)]['sequelize'][_0x3ff93a(0x130)](_0x40f753)['then'](function(){const _0xd49545=_0x3ff93a;logger[_0xd49545(0x127)](_0xd49545(0x136),_0x40f753);})[_0x3ff93a(0x12d)](function(_0x58186a){const _0x1685c1=_0x3ff93a;logger[_0x1685c1(0x127)](JSON[_0x1685c1(0x143)](_0x58186a));});});},Migration[a1125_0xf60fd2(0x148)][a1125_0xf60fd2(0x13f)]=function(_0x104cc1,_0x57fbb9){const _0x3e53fd=a1125_0xf60fd2,_0x476a9e=this;this[_0x3e53fd(0x141)][_0x3e53fd(0x135)](function(){const _0x28b681=_0x3e53fd;return _0x476a9e[_0x28b681(0x13c)]['removeColumn'](_0x104cc1,_0x57fbb9)[_0x28b681(0x12e)](function(){const _0x2fe1f6=_0x28b681;logger[_0x2fe1f6(0x127)](_0x2fe1f6(0x13d),_0x57fbb9,_0x104cc1);})[_0x28b681(0x12d)](function(_0x1ea10c){logger['info'](util['inspect'](_0x1ea10c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1125_0xf60fd2(0x149)]=function(_0x58aa89,_0x40b4c5,_0xccb6c2){const _0x4df7d1=a1125_0xf60fd2,_0x59c2c9=this;this['sequence'][_0x4df7d1(0x135)](function(){const _0x3c5873=_0x4df7d1;return _0x59c2c9['queryInterface'][_0x3c5873(0x149)](_0x58aa89,_0x40b4c5,_0xccb6c2)[_0x3c5873(0x12e)](function(){const _0x46780e=_0x3c5873;logger[_0x46780e(0x127)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x40b4c5,_0xccb6c2,_0x58aa89);})[_0x3c5873(0x12d)](function(_0x44b98b){const _0x441c5f=_0x3c5873;logger[_0x441c5f(0x127)](util['inspect'](_0x44b98b,{'showHidden':![],'depth':null}));});});},Migration[a1125_0xf60fd2(0x148)]['final']=function(_0x1526a2){const _0x3eac0b=a1125_0xf60fd2;this[_0x3eac0b(0x141)][_0x3eac0b(0x135)](function(){return _0x1526a2();});},module['exports']={'up':function(_0x295dc7,_0x289989){return new Promise(function(_0x49a26e){const _0x5250fc=a1125_0x349b,_0x15716e=new Migration(_0x295dc7);_0x15716e[_0x5250fc(0x12f)](_0x5250fc(0x134),'apiKey',{'type':_0x289989[_0x5250fc(0x129)]}),_0x15716e[_0x5250fc(0x133)](_0x5250fc(0x134),_0x5250fc(0x12a),{'type':_0x289989[_0x5250fc(0x138)](_0x5250fc(0x144),_0x5250fc(0x128),_0x5250fc(0x147),'clicksend',_0x5250fc(0x13b),'clickatell',_0x5250fc(0x13a))}),_0x15716e['final'](_0x49a26e);});},'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 89688c1..4b00a24 100644 --- a/server/migrations/2.0.83.js +++ b/server/migrations/2.0.83.js @@ -1 +1 @@ -const a1126_0x20e4=['finally','STRING','catch','addColumn','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','../config/logger','exports','report_queue','tail','queuecallerenterreason','inspect','skebby','final','migration','cm_contacts','cm_hopper','infobip','fb_data','clickatell','ALTER\x20TABLE\x20cm_hopper\x20ADD\x20CONSTRAINT\x20cm_hopper_ibfk_6\x20FOREIGN\x20KEY\x20(OwnerId)\x20REFERENCES\x20users(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL','queryInterface','query\x20%s','then','join','addIndex','sms_accounts','baseUrl','sequelize','stringify','dropTable','twilio','enqueue','removeColumn','connectel','changeColumn','query','renameColumn','util','removeIndex','INTEGER','Added\x20column\x20%s\x20to\x20%s','sequence','prototype','Removed\x20column\x20%s\x20from\x20%s','info'];(function(_0x4d2bc6,_0x354a89){const _0x20e47f=function(_0x5e6d1a){while(--_0x5e6d1a){_0x4d2bc6['push'](_0x4d2bc6['shift']());}};_0x20e47f(++_0x354a89);}(a1126_0x20e4,0x8a));const a1126_0x5e6d=function(_0x4d2bc6,_0x354a89){_0x4d2bc6=_0x4d2bc6-0x74;let _0x20e47f=a1126_0x20e4[_0x4d2bc6];return _0x20e47f;};const a1126_0x16675c=a1126_0x5e6d;'use strict';const util=require(a1126_0x16675c(0x9a)),logger=require(a1126_0x16675c(0x7a))(a1126_0x16675c(0x82)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x50fd85){const _0x55f38d=a1126_0x16675c;this[_0x55f38d(0x7d)]=this[_0x55f38d(0x7d)]?this[_0x55f38d(0x7d)][_0x55f38d(0x74)](_0x50fd85):_0x50fd85();};const Migration=function(_0x241632){const _0x1a6328=a1126_0x16675c;this[_0x1a6328(0x89)]=_0x241632,this[_0x1a6328(0x9e)]=new Sequence();};Migration[a1126_0x16675c(0x9f)][a1126_0x16675c(0x97)]=function(_0x30f897,_0x17f7c0,_0x25df1a){const _0x3bded9=a1126_0x16675c,_0xc82e57=this;this[_0x3bded9(0x9e)][_0x3bded9(0x94)](function(){const _0x48c0bf=_0x3bded9;return _0xc82e57[_0x48c0bf(0x89)][_0x48c0bf(0x97)](_0x30f897,_0x17f7c0,_0x25df1a)[_0x48c0bf(0x8b)](function(){const _0x313f1f=_0x48c0bf;logger[_0x313f1f(0xa1)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x17f7c0,_0x30f897);})['catch'](function(_0x706f1b){const _0x290c8a=_0x48c0bf;logger[_0x290c8a(0xa1)](JSON[_0x290c8a(0x91)](_0x706f1b));});});},Migration[a1126_0x16675c(0x9f)][a1126_0x16675c(0x77)]=function(_0x4df500,_0x45dddd,_0x300a70){const _0x1e08c3=a1126_0x16675c,_0x1ef0b8=this;this[_0x1e08c3(0x9e)][_0x1e08c3(0x94)](function(){const _0x1074ce=_0x1e08c3;return _0x1ef0b8[_0x1074ce(0x89)][_0x1074ce(0x77)](_0x4df500,_0x45dddd,_0x300a70)['then'](function(){const _0x12e28d=_0x1074ce;logger[_0x12e28d(0xa1)](_0x12e28d(0x9d),_0x45dddd,_0x4df500);})[_0x1074ce(0x76)](function(_0x295429){const _0x2da2c4=_0x1074ce;logger['info'](JSON[_0x2da2c4(0x91)](_0x295429));});});},Migration['prototype']['dropTable']=function(_0x4a4966){const _0xebf996=a1126_0x16675c,_0x3440c5=this;this['sequence'][_0xebf996(0x94)](function(){const _0x160626=_0xebf996;return _0x3440c5[_0x160626(0x89)][_0x160626(0x92)](_0x4a4966,{'force':!![]})[_0x160626(0x8b)](function(){const _0x4f5fd5=_0x160626;logger[_0x4f5fd5(0xa1)](_0x4f5fd5(0x78),_0x4a4966);})[_0x160626(0x76)](function(_0x365c6d){const _0x2dfaa7=_0x160626;logger[_0x2dfaa7(0xa1)](JSON[_0x2dfaa7(0x91)](_0x365c6d));});});},Migration[a1126_0x16675c(0x9f)]['addIndex']=function(_0x4eed98,_0x45a6df,_0x22e3cc){const _0x45c9d0=a1126_0x16675c,_0xe7e1a1=this;this[_0x45c9d0(0x9e)][_0x45c9d0(0x94)](function(){const _0x1f8364=_0x45c9d0;return _0xe7e1a1[_0x1f8364(0x89)][_0x1f8364(0x8d)](_0x4eed98,_0x45a6df,{'indexName':_0x22e3cc})[_0x1f8364(0x8b)](function(){const _0x562163=_0x1f8364;logger[_0x562163(0xa1)]('addIndex\x20%s\x20%s\x20%s',_0x4eed98,_0x45a6df[_0x562163(0x8c)](','),_0x22e3cc);})[_0x1f8364(0x76)](function(_0x293896){const _0x1dc8dc=_0x1f8364;logger['info'](JSON[_0x1dc8dc(0x91)](_0x293896));});});},Migration[a1126_0x16675c(0x9f)][a1126_0x16675c(0x9b)]=function(_0x24de72,_0x1a157b){const _0x223ecf=a1126_0x16675c,_0x31ff44=this;this[_0x223ecf(0x9e)][_0x223ecf(0x94)](function(){const _0x35c4c1=_0x223ecf;return _0x31ff44[_0x35c4c1(0x89)][_0x35c4c1(0x9b)](_0x24de72,_0x1a157b)[_0x35c4c1(0x8b)](function(){const _0x3a5989=_0x35c4c1;logger['info'](_0x3a5989(0x79),_0x24de72,_0x1a157b);})['catch'](function(_0x4e8f15){const _0x221663=_0x35c4c1;logger[_0x221663(0xa1)](JSON['stringify'](_0x4e8f15));});});},Migration[a1126_0x16675c(0x9f)]['query']=function(_0x518748){const _0x460f7e=a1126_0x16675c,_0x59f738=this;this[_0x460f7e(0x9e)]['enqueue'](function(){const _0x8a0823=_0x460f7e;return _0x59f738[_0x8a0823(0x89)][_0x8a0823(0x90)][_0x8a0823(0x98)](_0x518748)['then'](function(){const _0x34d19f=_0x8a0823;logger['info'](_0x34d19f(0x8a),_0x518748);})[_0x8a0823(0x76)](function(_0x4f1278){const _0x11ad62=_0x8a0823;logger[_0x11ad62(0xa1)](JSON[_0x11ad62(0x91)](_0x4f1278));});});},Migration[a1126_0x16675c(0x9f)]['removeColumn']=function(_0xc1bc88,_0x456049){const _0x4ff0b5=a1126_0x16675c,_0xb45762=this;this[_0x4ff0b5(0x9e)][_0x4ff0b5(0x94)](function(){const _0x2cdc69=_0x4ff0b5;return _0xb45762[_0x2cdc69(0x89)][_0x2cdc69(0x95)](_0xc1bc88,_0x456049)[_0x2cdc69(0x8b)](function(){const _0x101832=_0x2cdc69;logger['info'](_0x101832(0xa0),_0x456049,_0xc1bc88);})['catch'](function(_0x2d9250){const _0x2c203b=_0x2cdc69;logger[_0x2c203b(0xa1)](util[_0x2c203b(0x7f)](_0x2d9250,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1126_0x16675c(0x99)]=function(_0x14b3e0,_0x3c5262,_0x4b2552){const _0x2556e4=a1126_0x16675c,_0x231333=this;this[_0x2556e4(0x9e)][_0x2556e4(0x94)](function(){const _0x21621a=_0x2556e4;return _0x231333['queryInterface'][_0x21621a(0x99)](_0x14b3e0,_0x3c5262,_0x4b2552)[_0x21621a(0x8b)](function(){const _0x24e92c=_0x21621a;logger[_0x24e92c(0xa1)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3c5262,_0x4b2552,_0x14b3e0);})[_0x21621a(0x76)](function(_0x413ea5){const _0x372157=_0x21621a;logger[_0x372157(0xa1)](util['inspect'](_0x413ea5,{'showHidden':![],'depth':null}));});});},Migration[a1126_0x16675c(0x9f)][a1126_0x16675c(0x81)]=function(_0x1f872b){const _0x748897=a1126_0x16675c;this[_0x748897(0x9e)][_0x748897(0x94)](function(){return _0x1f872b();});},module[a1126_0x16675c(0x7b)]={'up':function(_0xfa61ec,_0x4a0d93){return new Promise(function(_0x127928){const _0xd20d39=a1126_0x5e6d,_0x47eceb=new Migration(_0xfa61ec);_0x47eceb[_0xd20d39(0x77)](_0xd20d39(0x84),'OwnerId',{'type':_0x4a0d93['INTEGER'](0xb)}),_0x47eceb['query'](_0xd20d39(0x88)),_0x47eceb[_0xd20d39(0x77)](_0xd20d39(0x83),_0xd20d39(0x86),{'type':_0x4a0d93[_0xd20d39(0x75)]}),_0x47eceb[_0xd20d39(0x97)](_0xd20d39(0x8e),'type',{'type':_0x4a0d93['ENUM'](_0xd20d39(0x93),_0xd20d39(0x80),_0xd20d39(0x96),'clicksend','plivo',_0xd20d39(0x87),'csc',_0xd20d39(0x85))}),_0x47eceb[_0xd20d39(0x77)](_0xd20d39(0x8e),_0xd20d39(0x8f),{'type':_0x4a0d93[_0xd20d39(0x75)]}),_0x47eceb['addColumn'](_0xd20d39(0x7c),_0xd20d39(0x7e),{'type':_0x4a0d93[_0xd20d39(0x9c)],'defaultValue':0x0}),_0x47eceb[_0xd20d39(0x81)](_0x127928);});},'down':function(){}}; \ No newline at end of file +const a1126_0x4c30=['tail','ENUM','infobip','table\x20dropped\x20%s','finally','skebby','stringify','join','clickatell','queryInterface','renameColumn','inspect','then','addIndex','final','type','query','dropTable','addIndex\x20%s\x20%s\x20%s','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','changeColumn','removeIndex','removeIndex\x20%s\x20%s','queuecallerenterreason','catch','STRING','fb_data','ALTER\x20TABLE\x20cm_hopper\x20ADD\x20CONSTRAINT\x20cm_hopper_ibfk_6\x20FOREIGN\x20KEY\x20(OwnerId)\x20REFERENCES\x20users(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL','INTEGER','connectel','sequence','OwnerId','prototype','twilio','enqueue','clicksend','sms_accounts','info','removeColumn','Removed\x20column\x20%s\x20from\x20%s','cm_hopper','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','Added\x20column\x20%s\x20to\x20%s'];(function(_0xf9ec50,_0x1661f2){const _0x4c3044=function(_0xb7e4fe){while(--_0xb7e4fe){_0xf9ec50['push'](_0xf9ec50['shift']());}};_0x4c3044(++_0x1661f2);}(a1126_0x4c30,0x67));const a1126_0xb7e4=function(_0xf9ec50,_0x1661f2){_0xf9ec50=_0xf9ec50-0xc5;let _0x4c3044=a1126_0x4c30[_0xf9ec50];return _0x4c3044;};const a1126_0x1432b4=a1126_0xb7e4;'use strict';const util=require('util'),logger=require(a1126_0x1432b4(0xcf))('migration'),Sequence=function(){};Sequence[a1126_0x1432b4(0xdc)][a1126_0x1432b4(0xde)]=function(_0x353b20){const _0x86314f=a1126_0x1432b4;this['tail']=this[_0x86314f(0xe8)]?this[_0x86314f(0xe8)][_0x86314f(0xec)](_0x353b20):_0x353b20();};const Migration=function(_0x264eb7){const _0x19a787=a1126_0x1432b4;this[_0x19a787(0xf1)]=_0x264eb7,this[_0x19a787(0xda)]=new Sequence();};Migration['prototype'][a1126_0x1432b4(0xd0)]=function(_0x3cce1a,_0x1bbaba,_0x4ca555){const _0x169df6=a1126_0x1432b4,_0x299f23=this;this[_0x169df6(0xda)]['enqueue'](function(){const _0x4e58b2=_0x169df6;return _0x299f23[_0x4e58b2(0xf1)][_0x4e58b2(0xd0)](_0x3cce1a,_0x1bbaba,_0x4ca555)[_0x4e58b2(0xc6)](function(){const _0xbd2720=_0x4e58b2;logger[_0xbd2720(0xe1)](_0xbd2720(0xce),_0x1bbaba,_0x3cce1a);})[_0x4e58b2(0xd4)](function(_0x3e5307){const _0x34dee9=_0x4e58b2;logger['info'](JSON[_0x34dee9(0xee)](_0x3e5307));});});},Migration[a1126_0x1432b4(0xdc)][a1126_0x1432b4(0xcd)]=function(_0x295c29,_0x226c9e,_0x223186){const _0x2ddeec=a1126_0x1432b4,_0x1cb945=this;this[_0x2ddeec(0xda)][_0x2ddeec(0xde)](function(){const _0x4bb6ea=_0x2ddeec;return _0x1cb945[_0x4bb6ea(0xf1)][_0x4bb6ea(0xcd)](_0x295c29,_0x226c9e,_0x223186)[_0x4bb6ea(0xc6)](function(){const _0x38c710=_0x4bb6ea;logger[_0x38c710(0xe1)](_0x38c710(0xe7),_0x226c9e,_0x295c29);})['catch'](function(_0x16c2f3){logger['info'](JSON['stringify'](_0x16c2f3));});});},Migration[a1126_0x1432b4(0xdc)][a1126_0x1432b4(0xcb)]=function(_0x603061){const _0x45858d=a1126_0x1432b4,_0x1cf5f1=this;this[_0x45858d(0xda)]['enqueue'](function(){const _0x1d41cc=_0x45858d;return _0x1cf5f1[_0x1d41cc(0xf1)][_0x1d41cc(0xcb)](_0x603061,{'force':!![]})[_0x1d41cc(0xc6)](function(){const _0x1516a4=_0x1d41cc;logger[_0x1516a4(0xe1)](_0x1516a4(0xeb),_0x603061);})[_0x1d41cc(0xd4)](function(_0x3e988d){const _0x37cb89=_0x1d41cc;logger[_0x37cb89(0xe1)](JSON[_0x37cb89(0xee)](_0x3e988d));});});},Migration[a1126_0x1432b4(0xdc)][a1126_0x1432b4(0xc7)]=function(_0x4cb8df,_0x52868c,_0x4f3fdc){const _0x1dc51e=a1126_0x1432b4,_0x34770d=this;this[_0x1dc51e(0xda)][_0x1dc51e(0xde)](function(){const _0x19e5e8=_0x1dc51e;return _0x34770d[_0x19e5e8(0xf1)][_0x19e5e8(0xc7)](_0x4cb8df,_0x52868c,{'indexName':_0x4f3fdc})[_0x19e5e8(0xc6)](function(){const _0x37b7c6=_0x19e5e8;logger[_0x37b7c6(0xe1)](_0x37b7c6(0xcc),_0x4cb8df,_0x52868c[_0x37b7c6(0xef)](','),_0x4f3fdc);})[_0x19e5e8(0xd4)](function(_0x2cd2f2){const _0x11ebe5=_0x19e5e8;logger[_0x11ebe5(0xe1)](JSON['stringify'](_0x2cd2f2));});});},Migration[a1126_0x1432b4(0xdc)][a1126_0x1432b4(0xd1)]=function(_0x58f315,_0x46b78b){const _0x372988=a1126_0x1432b4,_0xaff770=this;this[_0x372988(0xda)][_0x372988(0xde)](function(){const _0x3a2a36=_0x372988;return _0xaff770[_0x3a2a36(0xf1)][_0x3a2a36(0xd1)](_0x58f315,_0x46b78b)[_0x3a2a36(0xc6)](function(){const _0x2c9054=_0x3a2a36;logger[_0x2c9054(0xe1)](_0x2c9054(0xd2),_0x58f315,_0x46b78b);})[_0x3a2a36(0xd4)](function(_0x16a02a){logger['info'](JSON['stringify'](_0x16a02a));});});},Migration['prototype'][a1126_0x1432b4(0xca)]=function(_0x599ad7){const _0x6c1a6=a1126_0x1432b4,_0x4d2a14=this;this[_0x6c1a6(0xda)][_0x6c1a6(0xde)](function(){const _0x3da28b=_0x6c1a6;return _0x4d2a14[_0x3da28b(0xf1)]['sequelize']['query'](_0x599ad7)[_0x3da28b(0xc6)](function(){const _0x49b5f9=_0x3da28b;logger['info'](_0x49b5f9(0xe6),_0x599ad7);})[_0x3da28b(0xd4)](function(_0x54d428){const _0x4609ab=_0x3da28b;logger['info'](JSON[_0x4609ab(0xee)](_0x54d428));});});},Migration[a1126_0x1432b4(0xdc)][a1126_0x1432b4(0xe2)]=function(_0x5f2fc9,_0x1a9832){const _0x12f49c=a1126_0x1432b4,_0x57e9e9=this;this[_0x12f49c(0xda)][_0x12f49c(0xde)](function(){const _0x421bac=_0x12f49c;return _0x57e9e9['queryInterface'][_0x421bac(0xe2)](_0x5f2fc9,_0x1a9832)[_0x421bac(0xc6)](function(){const _0x52054b=_0x421bac;logger[_0x52054b(0xe1)](_0x52054b(0xe3),_0x1a9832,_0x5f2fc9);})[_0x421bac(0xd4)](function(_0x56f7f3){const _0x47c937=_0x421bac;logger[_0x47c937(0xe1)](util[_0x47c937(0xc5)](_0x56f7f3,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1126_0x1432b4(0xf2)]=function(_0x1e84fb,_0x513c6c,_0x2b8463){const _0x17edf0=a1126_0x1432b4,_0x241e59=this;this[_0x17edf0(0xda)][_0x17edf0(0xde)](function(){const _0x5cb1e0=_0x17edf0;return _0x241e59[_0x5cb1e0(0xf1)][_0x5cb1e0(0xf2)](_0x1e84fb,_0x513c6c,_0x2b8463)[_0x5cb1e0(0xc6)](function(){const _0x7aa7c=_0x5cb1e0;logger[_0x7aa7c(0xe1)](_0x7aa7c(0xe5),_0x513c6c,_0x2b8463,_0x1e84fb);})[_0x5cb1e0(0xd4)](function(_0x1e18d2){const _0x28b29f=_0x5cb1e0;logger[_0x28b29f(0xe1)](util[_0x28b29f(0xc5)](_0x1e18d2,{'showHidden':![],'depth':null}));});});},Migration[a1126_0x1432b4(0xdc)][a1126_0x1432b4(0xc8)]=function(_0x179dd1){const _0x324727=a1126_0x1432b4;this[_0x324727(0xda)]['enqueue'](function(){return _0x179dd1();});},module['exports']={'up':function(_0x2e2113,_0x245e3a){return new Promise(function(_0x8244f6){const _0xe1c67f=a1126_0xb7e4,_0x3aaa1a=new Migration(_0x2e2113);_0x3aaa1a['addColumn'](_0xe1c67f(0xe4),_0xe1c67f(0xdb),{'type':_0x245e3a[_0xe1c67f(0xd8)](0xb)}),_0x3aaa1a[_0xe1c67f(0xca)](_0xe1c67f(0xd7)),_0x3aaa1a[_0xe1c67f(0xcd)]('cm_contacts',_0xe1c67f(0xd6),{'type':_0x245e3a[_0xe1c67f(0xd5)]}),_0x3aaa1a[_0xe1c67f(0xd0)]('sms_accounts',_0xe1c67f(0xc9),{'type':_0x245e3a[_0xe1c67f(0xe9)](_0xe1c67f(0xdd),_0xe1c67f(0xed),_0xe1c67f(0xd9),_0xe1c67f(0xdf),'plivo',_0xe1c67f(0xf0),'csc',_0xe1c67f(0xea))}),_0x3aaa1a[_0xe1c67f(0xcd)](_0xe1c67f(0xe0),'baseUrl',{'type':_0x245e3a[_0xe1c67f(0xd5)]}),_0x3aaa1a[_0xe1c67f(0xcd)]('report_queue',_0xe1c67f(0xd3),{'type':_0x245e3a[_0xe1c67f(0xd8)],'defaultValue':0x0}),_0x3aaa1a[_0xe1c67f(0xc8)](_0x8244f6);});},'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 22f44d5..fabbb56 100644 --- a/server/migrations/2.0.84.js +++ b/server/migrations/2.0.84.js @@ -1 +1 @@ -const a1127_0x55fd=['queryInterface','then','changeColumn','table\x20dropped\x20%s','renameColumn','enqueue','../config/logger','addIndex\x20%s\x20%s\x20%s','addIndex','final','exports','query\x20%s','addColumn','query','dropTable','removeColumn','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','prototype','catch','removeIndex\x20%s\x20%s','util','removeIndex','tail','stringify','inspect','info'];(function(_0x18011c,_0x5552e9){const _0x55fd40=function(_0x48db94){while(--_0x48db94){_0x18011c['push'](_0x18011c['shift']());}};_0x55fd40(++_0x5552e9);}(a1127_0x55fd,0x181));const a1127_0x48db=function(_0x18011c,_0x5552e9){_0x18011c=_0x18011c-0x73;let _0x55fd40=a1127_0x55fd[_0x18011c];return _0x55fd40;};const a1127_0x3e98f9=a1127_0x48db;'use strict';const util=require(a1127_0x3e98f9(0x74)),logger=require(a1127_0x3e98f9(0x80))(a1127_0x3e98f9(0x8a)),Sequence=function(){};Sequence[a1127_0x3e98f9(0x8d)][a1127_0x3e98f9(0x7f)]=function(_0x475382){const _0x52bb5a=a1127_0x3e98f9;this[_0x52bb5a(0x76)]=this[_0x52bb5a(0x76)]?this[_0x52bb5a(0x76)]['finally'](_0x475382):_0x475382();};const Migration=function(_0x4c0439){const _0x4036ff=a1127_0x3e98f9;this[_0x4036ff(0x7a)]=_0x4c0439,this['sequence']=new Sequence();};Migration[a1127_0x3e98f9(0x8d)][a1127_0x3e98f9(0x7c)]=function(_0x4e170b,_0x42ebe8,_0x41a30b){const _0x3a26db=a1127_0x3e98f9,_0x23375f=this;this[_0x3a26db(0x8c)]['enqueue'](function(){const _0x5d50ab=_0x3a26db;return _0x23375f[_0x5d50ab(0x7a)][_0x5d50ab(0x7c)](_0x4e170b,_0x42ebe8,_0x41a30b)['then'](function(){const _0x5d1e96=_0x5d50ab;logger[_0x5d1e96(0x79)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x42ebe8,_0x4e170b);})[_0x5d50ab(0x8e)](function(_0x7410f1){const _0x350058=_0x5d50ab;logger[_0x350058(0x79)](JSON[_0x350058(0x77)](_0x7410f1));});});},Migration[a1127_0x3e98f9(0x8d)][a1127_0x3e98f9(0x86)]=function(_0x1f867d,_0x3a0782,_0x36aa42){const _0x3cb12c=a1127_0x3e98f9,_0x3539ea=this;this['sequence'][_0x3cb12c(0x7f)](function(){const _0x372ed7=_0x3cb12c;return _0x3539ea[_0x372ed7(0x7a)][_0x372ed7(0x86)](_0x1f867d,_0x3a0782,_0x36aa42)[_0x372ed7(0x7b)](function(){const _0x2be5e7=_0x372ed7;logger[_0x2be5e7(0x79)]('Added\x20column\x20%s\x20to\x20%s',_0x3a0782,_0x1f867d);})[_0x372ed7(0x8e)](function(_0x37baea){const _0x1afdc3=_0x372ed7;logger[_0x1afdc3(0x79)](JSON['stringify'](_0x37baea));});});},Migration['prototype']['dropTable']=function(_0x3016fa){const _0x11e0e5=a1127_0x3e98f9,_0x4e19db=this;this[_0x11e0e5(0x8c)]['enqueue'](function(){const _0x2777ea=_0x11e0e5;return _0x4e19db[_0x2777ea(0x7a)][_0x2777ea(0x88)](_0x3016fa,{'force':!![]})[_0x2777ea(0x7b)](function(){const _0x50c05a=_0x2777ea;logger[_0x50c05a(0x79)](_0x50c05a(0x7d),_0x3016fa);})[_0x2777ea(0x8e)](function(_0x3f239a){const _0x327193=_0x2777ea;logger[_0x327193(0x79)](JSON['stringify'](_0x3f239a));});});},Migration[a1127_0x3e98f9(0x8d)][a1127_0x3e98f9(0x82)]=function(_0x4404dc,_0x2c7af1,_0x303a21){const _0x277f58=a1127_0x3e98f9,_0x4c7721=this;this[_0x277f58(0x8c)][_0x277f58(0x7f)](function(){const _0x4854e7=_0x277f58;return _0x4c7721[_0x4854e7(0x7a)][_0x4854e7(0x82)](_0x4404dc,_0x2c7af1,{'indexName':_0x303a21})[_0x4854e7(0x7b)](function(){const _0xf2574a=_0x4854e7;logger[_0xf2574a(0x79)](_0xf2574a(0x81),_0x4404dc,_0x2c7af1['join'](','),_0x303a21);})[_0x4854e7(0x8e)](function(_0x1934ab){const _0x2334d6=_0x4854e7;logger[_0x2334d6(0x79)](JSON[_0x2334d6(0x77)](_0x1934ab));});});},Migration['prototype']['removeIndex']=function(_0x17c115,_0x1329b9){const _0x2819e9=a1127_0x3e98f9,_0x58a6fa=this;this[_0x2819e9(0x8c)][_0x2819e9(0x7f)](function(){const _0x1cd28c=_0x2819e9;return _0x58a6fa[_0x1cd28c(0x7a)][_0x1cd28c(0x75)](_0x17c115,_0x1329b9)[_0x1cd28c(0x7b)](function(){const _0x47c321=_0x1cd28c;logger[_0x47c321(0x79)](_0x47c321(0x73),_0x17c115,_0x1329b9);})[_0x1cd28c(0x8e)](function(_0x51cfc0){const _0x493de6=_0x1cd28c;logger[_0x493de6(0x79)](JSON[_0x493de6(0x77)](_0x51cfc0));});});},Migration[a1127_0x3e98f9(0x8d)][a1127_0x3e98f9(0x87)]=function(_0x53180d){const _0x2f9b99=a1127_0x3e98f9,_0x1e8014=this;this['sequence'][_0x2f9b99(0x7f)](function(){const _0x414ad1=_0x2f9b99;return _0x1e8014[_0x414ad1(0x7a)]['sequelize'][_0x414ad1(0x87)](_0x53180d)[_0x414ad1(0x7b)](function(){const _0x416b1f=_0x414ad1;logger['info'](_0x416b1f(0x85),_0x53180d);})['catch'](function(_0x13b4b8){const _0x3eeea4=_0x414ad1;logger[_0x3eeea4(0x79)](JSON['stringify'](_0x13b4b8));});});},Migration[a1127_0x3e98f9(0x8d)][a1127_0x3e98f9(0x89)]=function(_0x2ec361,_0x268826){const _0x1a7e4d=a1127_0x3e98f9,_0x32efe7=this;this['sequence'][_0x1a7e4d(0x7f)](function(){const _0x2b6fd2=_0x1a7e4d;return _0x32efe7[_0x2b6fd2(0x7a)][_0x2b6fd2(0x89)](_0x2ec361,_0x268826)[_0x2b6fd2(0x7b)](function(){const _0xda917d=_0x2b6fd2;logger[_0xda917d(0x79)]('Removed\x20column\x20%s\x20from\x20%s',_0x268826,_0x2ec361);})[_0x2b6fd2(0x8e)](function(_0x361169){const _0x139d66=_0x2b6fd2;logger['info'](util[_0x139d66(0x78)](_0x361169,{'showHidden':![],'depth':null}));});});},Migration[a1127_0x3e98f9(0x8d)][a1127_0x3e98f9(0x7e)]=function(_0x39ff64,_0x596fdb,_0x5328fc){const _0x593013=a1127_0x3e98f9,_0x23b508=this;this['sequence'][_0x593013(0x7f)](function(){const _0x5db701=_0x593013;return _0x23b508[_0x5db701(0x7a)][_0x5db701(0x7e)](_0x39ff64,_0x596fdb,_0x5328fc)[_0x5db701(0x7b)](function(){const _0x5c251b=_0x5db701;logger[_0x5c251b(0x79)](_0x5c251b(0x8b),_0x596fdb,_0x5328fc,_0x39ff64);})[_0x5db701(0x8e)](function(_0x708968){const _0x4e8324=_0x5db701;logger['info'](util[_0x4e8324(0x78)](_0x708968,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1127_0x3e98f9(0x83)]=function(_0x1ad283){const _0x56ab36=a1127_0x3e98f9;this[_0x56ab36(0x8c)][_0x56ab36(0x7f)](function(){return _0x1ad283();});},module[a1127_0x3e98f9(0x84)]={'up':function(_0x1d2dfd){return new Promise(function(_0x343183){const _0x2ecf14=new Migration(_0x1d2dfd);_0x2ecf14['final'](_0x343183);});},'down':function(){}}; \ No newline at end of file +const a1127_0x4e15=['addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','Added\x20column\x20%s\x20to\x20%s','prototype','query','removeIndex','finally','join','info','catch','sequence','sequelize','renameColumn','util','queryInterface','stringify','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','then','exports','inspect','migration','enqueue','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s','final','dropTable'];(function(_0x558dad,_0xd64c96){const _0x4e150e=function(_0x188724){while(--_0x188724){_0x558dad['push'](_0x558dad['shift']());}};_0x4e150e(++_0xd64c96);}(a1127_0x4e15,0x1dd));const a1127_0x1887=function(_0x558dad,_0xd64c96){_0x558dad=_0x558dad-0x1c8;let _0x4e150e=a1127_0x4e15[_0x558dad];return _0x4e150e;};const a1127_0x30507f=a1127_0x1887;'use strict';const util=require(a1127_0x30507f(0x1c9)),logger=require('../config/logger')(a1127_0x30507f(0x1d2)),Sequence=function(){};Sequence[a1127_0x30507f(0x1dc)][a1127_0x30507f(0x1d3)]=function(_0xe7631b){const _0xcd345f=a1127_0x30507f;this['tail']=this[_0xcd345f(0x1ce)]?this['tail'][_0xcd345f(0x1df)](_0xe7631b):_0xe7631b();};const Migration=function(_0x39fbc7){const _0x2d80db=a1127_0x30507f;this['queryInterface']=_0x39fbc7,this[_0x2d80db(0x1e3)]=new Sequence();};Migration[a1127_0x30507f(0x1dc)][a1127_0x30507f(0x1da)]=function(_0x371844,_0x248f30,_0x5aa417){const _0x10894e=a1127_0x30507f,_0x15fd26=this;this[_0x10894e(0x1e3)][_0x10894e(0x1d3)](function(){const _0x37c8f2=_0x10894e;return _0x15fd26[_0x37c8f2(0x1ca)][_0x37c8f2(0x1da)](_0x371844,_0x248f30,_0x5aa417)['then'](function(){const _0x53e50c=_0x37c8f2;logger[_0x53e50c(0x1e1)](_0x53e50c(0x1cd),_0x248f30,_0x371844);})[_0x37c8f2(0x1e2)](function(_0x3f44fd){logger['info'](JSON['stringify'](_0x3f44fd));});});},Migration[a1127_0x30507f(0x1dc)]['addColumn']=function(_0x1170b2,_0x2c17db,_0x51c3bc){const _0x3afd04=a1127_0x30507f,_0x4b3389=this;this[_0x3afd04(0x1e3)][_0x3afd04(0x1d3)](function(){const _0x4140b0=_0x3afd04;return _0x4b3389[_0x4140b0(0x1ca)]['addColumn'](_0x1170b2,_0x2c17db,_0x51c3bc)[_0x4140b0(0x1cf)](function(){const _0x18d687=_0x4140b0;logger[_0x18d687(0x1e1)](_0x18d687(0x1db),_0x2c17db,_0x1170b2);})[_0x4140b0(0x1e2)](function(_0x5ecd4e){const _0x33dfc7=_0x4140b0;logger[_0x33dfc7(0x1e1)](JSON[_0x33dfc7(0x1cb)](_0x5ecd4e));});});},Migration[a1127_0x30507f(0x1dc)]['dropTable']=function(_0x5915ea){const _0x4cb7f5=a1127_0x30507f,_0x249a19=this;this[_0x4cb7f5(0x1e3)][_0x4cb7f5(0x1d3)](function(){const _0x4b86f5=_0x4cb7f5;return _0x249a19[_0x4b86f5(0x1ca)][_0x4b86f5(0x1d7)](_0x5915ea,{'force':!![]})[_0x4b86f5(0x1cf)](function(){const _0x5728a9=_0x4b86f5;logger[_0x5728a9(0x1e1)]('table\x20dropped\x20%s',_0x5915ea);})[_0x4b86f5(0x1e2)](function(_0x5413b2){const _0xddbbab=_0x4b86f5;logger[_0xddbbab(0x1e1)](JSON[_0xddbbab(0x1cb)](_0x5413b2));});});},Migration[a1127_0x30507f(0x1dc)][a1127_0x30507f(0x1d8)]=function(_0x4f8942,_0x1c6feb,_0x49174d){const _0x2c609a=a1127_0x30507f,_0xe7a8d7=this;this[_0x2c609a(0x1e3)][_0x2c609a(0x1d3)](function(){const _0x19c532=_0x2c609a;return _0xe7a8d7[_0x19c532(0x1ca)][_0x19c532(0x1d8)](_0x4f8942,_0x1c6feb,{'indexName':_0x49174d})[_0x19c532(0x1cf)](function(){const _0x23f483=_0x19c532;logger[_0x23f483(0x1e1)](_0x23f483(0x1d5),_0x4f8942,_0x1c6feb[_0x23f483(0x1e0)](','),_0x49174d);})[_0x19c532(0x1e2)](function(_0x53699c){const _0x2e80df=_0x19c532;logger['info'](JSON[_0x2e80df(0x1cb)](_0x53699c));});});},Migration['prototype'][a1127_0x30507f(0x1de)]=function(_0x417b91,_0x2b72ec){const _0x53c309=a1127_0x30507f,_0x588a88=this;this[_0x53c309(0x1e3)][_0x53c309(0x1d3)](function(){const _0xeb9759=_0x53c309;return _0x588a88[_0xeb9759(0x1ca)][_0xeb9759(0x1de)](_0x417b91,_0x2b72ec)['then'](function(){const _0x32450e=_0xeb9759;logger[_0x32450e(0x1e1)]('removeIndex\x20%s\x20%s',_0x417b91,_0x2b72ec);})[_0xeb9759(0x1e2)](function(_0x2bdc6a){const _0x4e2d34=_0xeb9759;logger[_0x4e2d34(0x1e1)](JSON['stringify'](_0x2bdc6a));});});},Migration[a1127_0x30507f(0x1dc)][a1127_0x30507f(0x1dd)]=function(_0xcaf7cb){const _0x314561=a1127_0x30507f,_0x2af67b=this;this[_0x314561(0x1e3)][_0x314561(0x1d3)](function(){const _0x1f7a97=_0x314561;return _0x2af67b[_0x1f7a97(0x1ca)][_0x1f7a97(0x1e4)][_0x1f7a97(0x1dd)](_0xcaf7cb)[_0x1f7a97(0x1cf)](function(){logger['info']('query\x20%s',_0xcaf7cb);})[_0x1f7a97(0x1e2)](function(_0x453786){const _0x1727d6=_0x1f7a97;logger[_0x1727d6(0x1e1)](JSON['stringify'](_0x453786));});});},Migration[a1127_0x30507f(0x1dc)][a1127_0x30507f(0x1cc)]=function(_0x78e2fe,_0x3979a9){const _0x491482=a1127_0x30507f,_0x35f3a2=this;this[_0x491482(0x1e3)][_0x491482(0x1d3)](function(){const _0x1a4d26=_0x491482;return _0x35f3a2['queryInterface'][_0x1a4d26(0x1cc)](_0x78e2fe,_0x3979a9)['then'](function(){const _0x58fe64=_0x1a4d26;logger[_0x58fe64(0x1e1)](_0x58fe64(0x1d4),_0x3979a9,_0x78e2fe);})[_0x1a4d26(0x1e2)](function(_0x28cd7e){const _0x3e6e75=_0x1a4d26;logger[_0x3e6e75(0x1e1)](util['inspect'](_0x28cd7e,{'showHidden':![],'depth':null}));});});},Migration[a1127_0x30507f(0x1dc)][a1127_0x30507f(0x1c8)]=function(_0x3e009e,_0x5a8400,_0x4884a7){const _0x2f95ba=a1127_0x30507f,_0x3ad485=this;this[_0x2f95ba(0x1e3)][_0x2f95ba(0x1d3)](function(){return _0x3ad485['queryInterface']['renameColumn'](_0x3e009e,_0x5a8400,_0x4884a7)['then'](function(){const _0x3d96cc=a1127_0x1887;logger[_0x3d96cc(0x1e1)](_0x3d96cc(0x1d9),_0x5a8400,_0x4884a7,_0x3e009e);})['catch'](function(_0x596bf3){const _0x5a1591=a1127_0x1887;logger['info'](util[_0x5a1591(0x1d1)](_0x596bf3,{'showHidden':![],'depth':null}));});});},Migration[a1127_0x30507f(0x1dc)][a1127_0x30507f(0x1d6)]=function(_0x50fad8){const _0x5839ca=a1127_0x30507f;this[_0x5839ca(0x1e3)][_0x5839ca(0x1d3)](function(){return _0x50fad8();});},module[a1127_0x30507f(0x1d0)]={'up':function(_0x228cff){return new Promise(function(_0x525f5e){const _0x16361d=a1127_0x1887,_0x168e8c=new Migration(_0x228cff);_0x168e8c[_0x16361d(0x1d6)](_0x525f5e);});},'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 370be8a..25e4e68 100644 --- a/server/migrations/2.1.0.js +++ b/server/migrations/2.1.0.js @@ -1 +1 @@ -const a1128_0x11f3=['\x20\x20\x20\x20\x20\x20type\x20varchar(255)\x20not\x20null,','\x20\x20ORDER\x20BY\x20GROUP_CONCAT(id);','\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=\x201303\x20THEN\x20\x27FreshdeskAccounts\x27','\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\x20FROM\x20tally\x20t\x20INNER\x20JOIN\x20tmpPermissions\x20r\x20ON\x20CHAR_LENGTH(r.userIds)\x20-\x20CHAR_LENGTH(REPLACE(r.userIds,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20t.n-1','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20100\x20THEN\x20\x27Dashboards\x27','sequence','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201002\x20THEN\x20\x27Dispositions\x27','\x20\x20\x20\x20userId\x20text,','\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\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=\x201601\x20THEN\x20\x27DELETE\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20501;','addIndex\x20%s\x20%s\x20%s','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201006\x20THEN\x20\x27Scheduler\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201201\x20THEN\x20\x27Metrics\x27','\x20\x20\x20\x20insertedId\x20int(11),','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tmpNormalizedUsers','\x20\x20INNER\x20JOIN\x20user_has_fax_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20304\x20THEN\x20\x27GlobalCustomFields\x27','query','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(601,\x20602,\x20603,\x20610)\x20THEN\x20\x27Mail\x27','../config/logger','\x20\x20\x20\x20userProfileId\x20int(11)\x20not\x20null,','removeColumn','\x20\x20WHERE\x20x.sectionId\x20=\x201103;','\x20\x20\x20\x20userId\x20int(11)\x20not\x20null','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201701\x20THEN\x20\x27jscripty\x27','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedUsers;','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpGroupedPermissions;','INSERT\x20INTO\x20tmpNormalizedPermissions','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(401,\x20402,\x20403,\x20404,\x20405,\x20406,\x20407,\x20408,\x20409,\x20410,\x20411)\x20THEN\x20\x27Voice\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201203\x20THEN\x20\x27Reports\x27','\x20\x20WHERE\x20name\x20=\x20\x27DELETE\x27;','\x20\x20\x20\x20resourceId\x20int(11)\x20not\x20null,','\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=\x201306\x20THEN\x20\x27DeskAccounts\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20POSITION(\x27,\x27\x20in\x20r.userIds)\x20>\x200','\x20\x20SELECT\x20x.sectionId,\x20u.FaxAccountId,\x20x.userId','CREATE\x20TABLE\x20tmpNormalizedResources','\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\x20WHERE\x20x.sectionId\x20=\x20601;','\x20\x20SELECT\x20\x27\x27,\x20\x27\x27,\x20permission,\x201,\x200,\x20profileId,\x20null,\x20userId','users','\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\x20PRIMARY\x20KEY\x20(`id`),','\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\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=\x201305\x20THEN\x20\x27SugarcrmAccounts\x27','\x20\x20\x20\x20resourceId\x20text','\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\x20SUBSTRING_INDEX(SUBSTRING_INDEX(r.userIds,\x20\x27,\x27,\x20t.n),\x20\x27,\x27,\x20-1)\x20userId','\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(s.userId,\x20\x27,\x27,\x20t.n),\x20\x27,\x27,\x20-1)\x20userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20901\x20THEN\x20\x27FaxQueues\x27','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpFinalProfiles;','\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\x20resourceId\x20int(11),','\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','INSERT\x20INTO\x20tmpExtractedResources','\x20\x20INNER\x20JOIN\x20user_has_voice_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20userId\x20text\x20not\x20null,','CREATE\x20TABLE\x20tmpSingleProfiles','\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=\x20401\x20THEN\x20\x27VoiceQueues\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)\x20c','\x20\x20INNER\x20JOIN\x20user_has_openchannel_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=\x20502\x20THEN\x20\x27ChatWebsites\x27','\x20\x20`name`\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=\x20810\x20THEN\x20\x27Realtime\x27','\x20\x20WHERE\x20name\x20in\x20(\x27Plugins\x27,\x20\x27CustomDashboards\x27);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20204\x20THEN\x20\x27Teams\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20as\x20split','CREATE\x20TABLE\x20tmpExtractedResources\x20(','\x20\x20SET\x20u.userProfileId\x20=\x201','addColumn','\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)','addIndex','\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(t.userIds,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20userId,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201500\x20THEN\x20\x27DELETE\x27','\x20\x20INNER\x20JOIN\x20user_has_chat_websites\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,','\x20\x20UNIQUE\x20KEY\x20`name`\x20(`name`)','INSERT\x20INTO\x20user_profile_has_sections\x20(name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20crudPermissions,\x20createdAt,\x20updatedAt,\x20userProfileId)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\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=\x20610\x20THEN\x20\x27Realtime\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(801,\x20802,\x20810)\x20THEN\x20\x27Openchannel\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20801\x20THEN\x20\x27OpenchannelQueues\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\x20fp.profileId\x20profileId,','catch','DELETE\x20FROM\x20tmpNormalizedResources','\x20\x20SELECT\x20*\x20FROM\x20tmpSharedProfiles','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally\x20t','CREATE\x20TABLE\x20tmpPermissions','\x20\x20FROM\x20user_profiles\x20u','ALTER\x20TABLE\x20`users`\x20','INSERT\x20INTO\x20tmpSections','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20701\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20sms_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20sectionId\x20int(11)\x20not\x20null,','join','inspect','changeColumn','\x20\x20WHERE\x20x.sectionId\x20=\x20902;','\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\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=\x20603\x20THEN\x20\x27MailSubstatuses\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201400\x20THEN\x20\x27Settings\x27','\x20\x20\x20\x20sectionId\x20int(11)\x20not\x20null,','VALUES\x20(\x27Default\x27,\x20\x27red\x27,\x20NULL,\x20NOW(),\x20NOW());','enqueue','FOREIGN\x20KEY\x20(`userProfileId`)\x20','INSERT\x20INTO\x20`user_profiles`\x20(`name`,\x20`crudPermissions`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201302\x20THEN\x20\x27SalesforceAccounts\x27','\x20\x20SELECT\x20permission,\x20userId,\x200','\x20\x20SELECT\x20x.sectionId,\x20u.VoiceQueueId,\x20x.userId','ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20','\x20\x20SELECT\x20x.sectionId,\x20u.FaxQueueId,\x20x.userId','\x20\x20INNER\x20JOIN\x20user_has_mail_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20SELECT\x20x.sectionId,\x20u.ChatWebsiteId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;','CREATE\x20TABLE\x20tmpGroupedPermissions','\x20\x20INNER\x20JOIN\x20tmpExtractedResources\x20cr\x20ON\x20cr.userId\x20=\x20s.userId\x20AND\x20cr.sectionId\x20=\x20s.sectionId\x20AND\x20cr.resourceId\x20IS\x20NOT\x20NULL;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20800\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x201103\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20square_projects\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20FROM\x20tmpSections','\x20\x20\x20\x20name\x20varchar(255)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tmpNormalizedUsers','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201501\x20THEN\x20\x27QueueCampaigns\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20resourceId,\x20sectionId','\x20\x20\x20\x20userId\x20text','\x20\x20SELECT\x20x.sectionId,\x20u.SquareProjectId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(select\x20SUBSTRING_INDEX(SUBSTRING_INDEX(r.userIds,\x20\x27,\x27,\x20t.n),\x20\x27,\x27,\x20-1)\x20userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20),',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','\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','STRING','dropTable','\x20\x20SELECT\x20*','CREATE\x20TABLE\x20tmpNormalizedUsers','\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=\x20405\x20THEN\x20\x27Contexts\x27','INSERT\x20INTO\x20tmpGroupedPermissions','CREATE\x20TABLE\x20tmpCustomResources','finally','\x20\x20\x20\x20\x20\x20sectionId\x20int(11)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20END','(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20a','\x20\x20WHERE\x20u.id\x20=\x20f.userId;','\x20\x20\x20\x20\x20\x20\x20\x20r.sectionId\x20sectionId','\x20\x20SET\x20name\x20=\x20(SELECT','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(501,\x20502,\x20510)\x20THEN\x20\x27Chat\x27','\x20\x20userId\x20int(11)','\x20\x20SELECT\x20name,\x20resourceId,\x20type,\x20now(),\x20now(),\x20insertedSectionId','\x20\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`sectionId`\x20int(11)\x20NOT\x20NULL,','\x20\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x201)\x20as\x20dummy\x20LIMIT\x201)','\x20\x20SELECT\x20x.sectionId,\x20u.MailQueueId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE','\x20\x20FROM\x20tmpSections;','\x20\x20\x20\x20\x20\x20profileId\x20int(11)','UPDATE\x20tmpSections','ON\x20UPDATE\x20CASCADE','INSERT\x20INTO\x20tmpNormalizedSections','Removed\x20column\x20%s\x20from\x20%s','reportType','\x20\x20\x20\x20\x20\x20\x20\x20ELSE\x20\x27\x27','\x20\x20SELECT\x20x.sectionId,\x20u.OpenchannelQueueId,\x20x.userId','\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\x20FROM\x20users','\x20\x20s.sectionId\x20permission,','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x201501\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20voice_queues\x20WHERE\x20id\x20=\x20x.resourceId\x20AND\x20type\x20=\x20\x27outbound\x27),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201700\x20THEN\x20\x27DELETE\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20901;','\x20\x20`sectionId`\x20int(11)\x20DEFAULT\x20NULL,','\x20\x20\x20\x20\x20\x20WHEN\x20x.type\x20=\x20\x27CustomDashboards\x27\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20dashboards\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','CREATE\x20TABLE\x20tmpFinalProfiles','\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=\x201202\x20THEN\x20\x27ExtractedReports\x27','\x20\x20WHERE\x20split.userId\x20IN\x20(SELECT\x20*\x20FROM','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20>=\x20100000\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=\x20902\x20THEN\x20\x27FaxAccounts\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20801;','\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\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=\x20303\x20THEN\x20\x27Contacts\x27','CREATE\x20TABLE\x20`user_profile_has_sections`\x20(','SELECT\x20NULL\x20FROM','info','\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null,','then','\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally','queryInterface','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ELSE\x20\x27\x27','\x20\x20GROUP\x20BY\x20permissions','userProfileId','\x20\x20WHERE\x20x.sectionId\x20=\x20401\x20AND\x20q.type\x20=\x20\x27inbound\x27;','\x20\x20INNER\x20JOIN\x20user_has_sms_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201007\x20THEN\x20\x27Sounds\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20502;','\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\x20SELECT\x20\x27\x27,\x20resourceId,\x20type,\x20insertedSectionId,\x20sectionId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20101\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);','\x20\x20KEY\x20`userProfileId`\x20(`userProfileId`),','\x20\x20WHERE\x20x.sectionId\x20=\x20701;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201510\x20THEN\x20\x27Realtime\x27','\x20\x20\x20\x20category\x20varchar(255)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20302\x20THEN\x20\x27Companies\x27','\x20\x20\x20\x20\x20\x20WHEN\x20x.type\x20=\x20\x27Plugins\x27\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20plugins\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,','\x20\x20SET\x20insertedId\x20=\x20(SELECT\x20id','\x20\x20FROM\x20tmpNormalizedUsers\x20x','\x20\x20SELECT\x20x.sectionId,\x20u.MailAccountId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201308\x20THEN\x20\x27VtigerAccounts\x27','prototype','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20501\x20THEN\x20\x27ChatQueues\x27','\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20403\x20THEN\x20\x27OutboundRoutes\x27','migration','\x20\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x200)\x20as\x20dummy\x20LIMIT\x201)),\x20\x27red\x27,\x20now(),\x20now()','\x20\x20\x20\x20\x20\x20\x20\x20r.insertedSectionId\x20insertedSectionId,','\x20\x20\x20\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`enabled`\x20tinyint(1)\x20DEFAULT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(SELECT\x20GROUP_CONCAT(userId\x20ORDER\x20BY\x20userId\x20ASC)\x20as\x20users','\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;','\x20\x20SELECT\x20\x27\x27,\x20insertedId,\x20name,\x20sectionId,\x20null','\x20\x20SELECT\x20x.sectionId,\x20u.OpenchannelAccountId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20900\x20THEN\x20\x27DELETE\x27','\x20\x20FROM\x20tmpCustomResources;','\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\x20END','\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','sequelize','\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','renameColumn','\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`autoAssociation`\x20tinyint(1)\x20DEFAULT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20411\x20THEN\x20\x27Realtime\x27','\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\x20autoAssociation\x20tinyint\x20not\x20null,','\x20\x20);','\x20\x20ORDER\x20BY\x20userId;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20s.userProfileId\x20=\x20x.userProfileId\x20AND\x20s.sectionId\x20=\x20x.sectionId);','\x20\x20WHERE\x20x.sectionId\x20=\x20802;','\x20\x20SET\x20autoAssociation\x20=\x201\x20WHERE\x20sectionId\x20=\x20100;','\x20\x20WHERE\x20x.sectionId\x20=\x201501\x20AND\x20q.type\x20=\x20\x27outbound\x27;','\x20\x20FROM\x20tmpNormalizedSections','\x20\x20SELECT\x20id,\x20permissions,\x20null','\x20\x20WHERE\x20x.sectionId\x20=\x20702;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201200\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\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=\x201012\x20THEN\x20\x27Variables\x27','util','\x20\x20INNER\x20JOIN\x20user_has_chat_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','CREATE\x20TABLE\x20`user_profile_has_resources`\x20(','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20407\x20THEN\x20\x27MusicOnHolds\x27','removeIndex','\x20\x20SELECT\x20GROUP_CONCAT(id),\x20permissions,\x20null','\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=\x20510\x20THEN\x20\x27Realtime\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20406\x20THEN\x20\x27Voicemails\x27','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=\x201301\x20THEN\x20\x27ZendeskAccounts\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20>=\x20100000\x20THEN\x20\x27Tools\x27','\x20\x20ORDER\x20BY\x20GROUP_CONCAT(userId);','\x20\x20SELECT\x20x.sectionId,\x20u.ChatQueueId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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\x20between\x2088889\x20AND\x2099999\x20THEN\x20\x27Plugins\x27','\x20\x20INNER\x20JOIN\x20user_has_mail_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','TRUNCATE\x20TABLE\x20tmpPermissions;','tail',',(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\x20WHEN\x20x.sectionId\x20=\x20601\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20mail_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','removeIndex\x20%s\x20%s','CREATE\x20TABLE\x20tally\x20(','\x20\x20CONSTRAINT\x20`user_profile_has_sections_ibfk_1`\x20FOREIGN\x20KEY\x20(`userProfileId`)\x20REFERENCES\x20`user_profiles`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE','\x20\x20SET\x20profileId\x20=\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber','\x20\x20FROM\x20(SELECT','\x20\x20WHERE\x20userProfileId\x20is\x20null\x20AND\x20role\x20=\x20\x27user\x27;','\x20\x20FROM\x20tmpFinalProfiles;','INSERT\x20INTO\x20user_profiles\x20(name,\x20crudPermissions,\x20createdAt,\x20updatedAt)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201103\x20THEN\x20\x27SquareProjects\x27','\x20\x20KEY\x20`compositeIndex`\x20(`sectionId`,`userProfileId`),','INSERT\x20INTO\x20tmpResources','\x20\x20\x20\x20sectionId\x20int(11)','UPDATE\x20tmpNormalizedResources\x20x','\x20\x20SELECT\x20DISTINCT\x20permission,\x20userId,\x200','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201005\x20THEN\x20\x27Pauses\x27','\x20\x20`userProfileId`\x20int(11)\x20DEFAULT\x20NULL,','stringify','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1201,\x201202,\x201203)\x20THEN\x20\x27Analytics\x27','\x20\x20FROM\x20tmpSections\x20s','final','\x20\x20INNER\x20JOIN\x20user_has_openchannel_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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\x20\x20WHEN\x20sectionId\x20=\x201100\x20THEN\x20\x27DELETE\x27','\x20\x20UNION','INSERT\x20INTO\x20tmpSingleProfiles','\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','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpPermissions;','\x20\x20(','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpExtractedResources;','INSERT\x20INTO\x20tmpFinalProfiles','\x20\x20FROM\x20tmpGroupedPermissions','\x20\x20`category`\x20varchar(255)\x20NOT\x20NULL,','\x20\x20SELECT\x20x.sectionId,\x20u.SmsQueueId,\x20x.userId','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedResources;','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(fp.userId,\x20\x27,\x27,\x201)\x20userId','CREATE\x20TABLE\x20tmpResources','\x20\x20KEY\x20`sectionId`\x20(`sectionId`),','\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\x20resourceId\x20text,','\x20\x20\x20\x20enabled\x20tinyint\x20not\x20null,','\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\x20GROUP\x20BY\x20userId;','\x20\x20\x20\x20\x20\x20userIds\x20varchar(255)\x20not\x20null,','\x20\x20SET\x20sectionId\x20=\x201801\x20WHERE\x20sectionId\x20between\x2088889\x20AND\x2099999;','\x20\x20FROM\x20tally\x20INNER\x20JOIN\x20tmpPermissions\x20p\x20ON\x20CHAR_LENGTH(p.permissions)\x20-\x20CHAR_LENGTH(REPLACE(p.permissions,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20tally.n-1','\x20\x20ORDER\x20BY\x20id;','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedSections;','INTEGER','\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','INSERT\x20INTO\x20tmpNormalizedResources','\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=\x201011\x20THEN\x20\x27Trunks\x27','name','\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\x20FROM\x20tally\x20t\x20INNER\x20JOIN\x20tmpNormalizedSections\x20s\x20ON\x20CHAR_LENGTH(s.userId)\x20-\x20CHAR_LENGTH(REPLACE(s.userId,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20t.n-1','\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(fp.permissions,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20permission,','\x20\x20SELECT\x20name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20\x27red\x27,\x20now(),\x20now(),\x20userProfileId','REFERENCES\x20user_profiles(`id`)\x20','\x20\x20INNER\x20JOIN\x20user_has_square_projects\x20u\x20ON\x20u.UserId\x20=\x20x.userId','UPDATE\x20tmpCustomResources','\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=\x201101\x20THEN\x20\x27ODBC\x27','query\x20%s','\x20\x20\x20\x20\x20\x20WHEN\x20name\x20=\x20\x27Plugins\x27\x20THEN\x20(sectionId\x20-\x2088888)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20200\x20THEN\x20\x27DELETE\x27','\x20\x20SELECT\x20GROUP_CONCAT(sectionId\x20ORDER\x20BY\x20sectionId),\x20userId','\x20\x20WHERE\x20userId\x20IN\x20(SELECT\x20split.userId','INSERT\x20INTO\x20tmpPermissions'];(function(_0x100279,_0x78819e){const _0x11f381=function(_0x3ddaf3){while(--_0x3ddaf3){_0x100279['push'](_0x100279['shift']());}};_0x11f381(++_0x78819e);}(a1128_0x11f3,0x150));const a1128_0x3dda=function(_0x100279,_0x78819e){_0x100279=_0x100279-0x6b;let _0x11f381=a1128_0x11f3[_0x100279];return _0x11f381;};const a1128_0x3ba380=a1128_0x3dda;'use strict';const util=require(a1128_0x3ba380(0x175)),logger=require(a1128_0x3ba380(0x8e))(a1128_0x3ba380(0x152)),Sequence=function(){};Sequence[a1128_0x3ba380(0x14e)]['enqueue']=function(_0x631349){const _0x1f37fa=a1128_0x3ba380;this['tail']=this[_0x1f37fa(0x187)]?this[_0x1f37fa(0x187)][_0x1f37fa(0x107)](_0x631349):_0x631349();};const Migration=function(_0xbd752){this['queryInterface']=_0xbd752,this['sequence']=new Sequence();};Migration[a1128_0x3ba380(0x14e)][a1128_0x3ba380(0xdd)]=function(_0x346a05,_0x39eb57,_0x5bfd18){const _0x1b4e56=a1128_0x3ba380,_0x57bc13=this;this[_0x1b4e56(0x7d)][_0x1b4e56(0xe5)](function(){const _0x3728d9=_0x1b4e56;return _0x57bc13['queryInterface']['changeColumn'](_0x346a05,_0x39eb57,_0x5bfd18)[_0x3728d9(0x135)](function(){const _0x37f9fa=_0x3728d9;logger[_0x37f9fa(0x133)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x39eb57,_0x346a05);})[_0x3728d9(0xd1)](function(_0x50ed3d){const _0xd6a8be=_0x3728d9;logger['info'](JSON[_0xd6a8be(0x19a)](_0x50ed3d));});});},Migration[a1128_0x3ba380(0x14e)][a1128_0x3ba380(0xc2)]=function(_0x107f96,_0x27aa28,_0x596516){const _0xf6701e=a1128_0x3ba380,_0x92048e=this;this[_0xf6701e(0x7d)][_0xf6701e(0xe5)](function(){const _0x57faef=_0xf6701e;return _0x92048e[_0x57faef(0x137)][_0x57faef(0xc2)](_0x107f96,_0x27aa28,_0x596516)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x27aa28,_0x107f96);})[_0x57faef(0xd1)](function(_0x65c2ba){const _0xc229d=_0x57faef;logger['info'](JSON[_0xc229d(0x19a)](_0x65c2ba));});});},Migration[a1128_0x3ba380(0x14e)][a1128_0x3ba380(0x100)]=function(_0x2593cc){const _0x14e683=a1128_0x3ba380,_0x54ad12=this;this[_0x14e683(0x7d)][_0x14e683(0xe5)](function(){const _0x831736=_0x14e683;return _0x54ad12[_0x831736(0x137)][_0x831736(0x100)](_0x2593cc,{'force':!![]})[_0x831736(0x135)](function(){const _0x303ea1=_0x831736;logger[_0x303ea1(0x133)]('table\x20dropped\x20%s',_0x2593cc);})['catch'](function(_0x5d5fe9){const _0x475812=_0x831736;logger[_0x475812(0x133)](JSON['stringify'](_0x5d5fe9));});});},Migration[a1128_0x3ba380(0x14e)][a1128_0x3ba380(0xc4)]=function(_0x4b4520,_0x1a3634,_0x584939){const _0x118dd9=a1128_0x3ba380,_0x42dbf7=this;this[_0x118dd9(0x7d)][_0x118dd9(0xe5)](function(){const _0x4fc939=_0x118dd9;return _0x42dbf7[_0x4fc939(0x137)][_0x4fc939(0xc4)](_0x4b4520,_0x1a3634,{'indexName':_0x584939})['then'](function(){const _0x1e67ce=_0x4fc939;logger[_0x1e67ce(0x133)](_0x1e67ce(0x84),_0x4b4520,_0x1a3634[_0x1e67ce(0xdb)](','),_0x584939);})[_0x4fc939(0xd1)](function(_0x5bf085){const _0x3e1d75=_0x4fc939;logger[_0x3e1d75(0x133)](JSON['stringify'](_0x5bf085));});});},Migration['prototype'][a1128_0x3ba380(0x179)]=function(_0x32367d,_0x5267e9){const _0x52b1ec=a1128_0x3ba380,_0x30611d=this;this[_0x52b1ec(0x7d)][_0x52b1ec(0xe5)](function(){const _0xcba663=_0x52b1ec;return _0x30611d[_0xcba663(0x137)][_0xcba663(0x179)](_0x32367d,_0x5267e9)[_0xcba663(0x135)](function(){const _0x39886e=_0xcba663;logger['info'](_0x39886e(0x18a),_0x32367d,_0x5267e9);})[_0xcba663(0xd1)](function(_0x15baf4){const _0x4616b=_0xcba663;logger[_0x4616b(0x133)](JSON['stringify'](_0x15baf4));});});},Migration[a1128_0x3ba380(0x14e)]['query']=function(_0x3218c1){const _0x1b8f88=a1128_0x3ba380,_0x3df612=this;this[_0x1b8f88(0x7d)]['enqueue'](function(){const _0x509680=_0x1b8f88;return _0x3df612[_0x509680(0x137)][_0x509680(0x160)][_0x509680(0x8c)](_0x3218c1)['then'](function(){const _0x228069=_0x509680;logger[_0x228069(0x133)](_0x228069(0x70),_0x3218c1);})['catch'](function(_0xcbe574){const _0x3ef0a3=_0x509680;logger['info'](JSON[_0x3ef0a3(0x19a)](_0xcbe574));});});},Migration['prototype'][a1128_0x3ba380(0x90)]=function(_0x3b4325,_0x4fac9b){const _0x221e28=a1128_0x3ba380,_0x17e9ef=this;this[_0x221e28(0x7d)]['enqueue'](function(){const _0xe000e0=_0x221e28;return _0x17e9ef[_0xe000e0(0x137)][_0xe000e0(0x90)](_0x3b4325,_0x4fac9b)[_0xe000e0(0x135)](function(){const _0x48cf04=_0xe000e0;logger[_0x48cf04(0x133)](_0x48cf04(0x11b),_0x4fac9b,_0x3b4325);})[_0xe000e0(0xd1)](function(_0xedf1f0){const _0x3143be=_0xe000e0;logger[_0x3143be(0x133)](util[_0x3143be(0xdc)](_0xedf1f0,{'showHidden':![],'depth':null}));});});},Migration[a1128_0x3ba380(0x14e)]['renameColumn']=function(_0x44dc6d,_0x2d5712,_0xba715b){const _0x5ae664=a1128_0x3ba380,_0x29f149=this;this[_0x5ae664(0x7d)][_0x5ae664(0xe5)](function(){const _0x489c91=_0x5ae664;return _0x29f149['queryInterface'][_0x489c91(0x162)](_0x44dc6d,_0x2d5712,_0xba715b)[_0x489c91(0x135)](function(){const _0x47418f=_0x489c91;logger[_0x47418f(0x133)](_0x47418f(0x1ae),_0x2d5712,_0xba715b,_0x44dc6d);})[_0x489c91(0xd1)](function(_0x457fa2){const _0x1d3111=_0x489c91;logger['info'](util[_0x1d3111(0xdc)](_0x457fa2,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1128_0x3ba380(0x19d)]=function(_0x4bb174){const _0x58f938=a1128_0x3ba380;this[_0x58f938(0x7d)][_0x58f938(0xe5)](function(){return _0x4bb174();});},module['exports']={'up':function(_0x52c6a3,_0x196ef6){return new Promise(function(_0x15be51){const _0x2bba5f=a1128_0x3dda,_0x5482c7=new Migration(_0x52c6a3);_0x5482c7[_0x2bba5f(0xc2)]('analytics_extracted_reports','reportId',{'type':_0x196ef6[_0x2bba5f(0x1bc)]}),_0x5482c7[_0x2bba5f(0xc2)]('analytics_extracted_reports',_0x2bba5f(0x11c),{'type':_0x196ef6[_0x2bba5f(0xff)]}),_0x5482c7['addColumn'](_0x2bba5f(0xa3),_0x2bba5f(0x13a),{'type':_0x196ef6[_0x2bba5f(0x1bc)]}),_0x5482c7[_0x2bba5f(0x90)]('voice_voicemail',_0x2bba5f(0x1c1)),_0x5482c7[_0x2bba5f(0x8c)]('CREATE\x20TABLE\x20`user_profiles`\x20('+'\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,'+'\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,'+'\x20\x20`crudPermissions`\x20varchar(255)\x20NOT\x20NULL\x20DEFAULT\x20\x27r\x27,'+'\x20\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,'+_0x2bba5f(0x149)+_0x2bba5f(0x150)+_0x2bba5f(0xa5)+_0x2bba5f(0xc9)+_0x2bba5f(0xfd)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0xe7)+_0x2bba5f(0xe4)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0xd7)+_0x2bba5f(0xeb)+_0x2bba5f(0xe6)+_0x2bba5f(0x6b)+_0x2bba5f(0x119)),_0x5482c7['query'](_0x2bba5f(0x131)+'\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,'+_0x2bba5f(0xbb)+_0x2bba5f(0x1ab)+_0x2bba5f(0x112)+_0x2bba5f(0x156)+_0x2bba5f(0x164)+'\x20\x20`crudPermissions`\x20varchar(255)\x20DEFAULT\x20NULL,'+'\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,'+_0x2bba5f(0x150)+_0x2bba5f(0x199)+_0x2bba5f(0xa5)+_0x2bba5f(0x143)+_0x2bba5f(0x193)+_0x2bba5f(0x18c)+_0x2bba5f(0xfd)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x177)+_0x2bba5f(0xc8)+'\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,'+_0x2bba5f(0x1bf)+_0x2bba5f(0x166)+'\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,'+_0x2bba5f(0x150)+_0x2bba5f(0x125)+_0x2bba5f(0xa5)+_0x2bba5f(0x1b1)+'\x20\x20KEY\x20`compositeIndex`\x20(`resourceId`,`sectionId`),'+'\x20\x20CONSTRAINT\x20`user_profile_has_resources_ibfk_1`\x20FOREIGN\x20KEY\x20(`sectionId`)\x20REFERENCES\x20`user_profile_has_sections`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE'+_0x2bba5f(0xfd)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x18b)+'\x20\x20n\x20INT\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY'+');'),_0x5482c7['query']('INSERT\x20INTO\x20tally\x20(n)'+_0x2bba5f(0x132)+_0x2bba5f(0x10a)+',(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'+_0x2bba5f(0xb8)+',(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'+_0x2bba5f(0x188)+';'),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0xd5)+_0x2bba5f(0x1a6)+_0x2bba5f(0x1b7)+_0x2bba5f(0x134)+_0x2bba5f(0x117)+'\x20\x20);'),_0x5482c7['query'](_0x2bba5f(0x75)+_0x2bba5f(0x170)+_0x2bba5f(0x120)+_0x2bba5f(0xa7)+_0x2bba5f(0x1ba)),_0x5482c7[_0x2bba5f(0x8c)]('CREATE\x20TABLE\x20tmpNormalizedSections'+'\x20\x20('+_0x2bba5f(0xe3)+_0x2bba5f(0x7f)+_0x2bba5f(0xa9)+_0x2bba5f(0x169)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x11a)+_0x2bba5f(0x197)+_0x2bba5f(0x18e)+'\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(p.permissions,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20permission,'+'\x20\x20\x20\x20p.userIds\x20userId'+_0x2bba5f(0x1b9)+_0x2bba5f(0x158)),_0x5482c7[_0x2bba5f(0x8c)]('CREATE\x20TABLE\x20tmpNormalizedPermissions'+'\x20\x20('+'\x20\x20\x20\x20permissions\x20text\x20not\x20null,'+_0x2bba5f(0x92)+'\x20\x20);'),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x96)+_0x2bba5f(0x73)+_0x2bba5f(0x16f)+_0x2bba5f(0x1b6)),_0x5482c7[_0x2bba5f(0x8c)]('UPDATE\x20users\x20u,\x20tmpNormalizedPermissions\x20t'+'\x20\x20SET\x20u.permissions\x20=\x20t.permissions'+'\x20\x20WHERE\x20u.id\x20=\x20t.userId;'),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x186)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x75)+_0x2bba5f(0x17a)+_0x2bba5f(0x120)+_0x2bba5f(0xa7)+'\x20\x20GROUP\x20BY\x20permissions'+_0x2bba5f(0x77)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x102)+'\x20\x20('+_0x2bba5f(0xe3)+_0x2bba5f(0x7f)+'\x20\x20\x20\x20resourceId\x20text'+_0x2bba5f(0x169)),_0x5482c7[_0x2bba5f(0x8c)]('INSERT\x20INTO\x20tmpNormalizedUsers'+_0x2bba5f(0xe9)+'\x20\x20FROM\x20(SELECT'+_0x2bba5f(0x121)+_0x2bba5f(0xac)+_0x2bba5f(0x1c3)+'\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;'),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0xc0)+_0x2bba5f(0xda)+_0x2bba5f(0xb0)+_0x2bba5f(0x10f)+_0x2bba5f(0x169)),_0x5482c7['query'](_0x2bba5f(0xb2)+_0x2bba5f(0xea)+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x2bba5f(0xb3)+'\x20\x20INNER\x20JOIN\x20voice_queues\x20q\x20ON\x20u.VoiceQueueId\x20=\x20q.id'+_0x2bba5f(0x13b)),_0x5482c7['query']('INSERT\x20INTO\x20tmpExtractedResources'+_0x2bba5f(0x182)+_0x2bba5f(0x14b)+_0x2bba5f(0x176)+_0x2bba5f(0x83)),_0x5482c7[_0x2bba5f(0x8c)]('INSERT\x20INTO\x20tmpExtractedResources'+_0x2bba5f(0xee)+_0x2bba5f(0x14b)+_0x2bba5f(0xc7)+_0x2bba5f(0x13e)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0xb2)+_0x2bba5f(0x114)+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x2bba5f(0x185)+_0x2bba5f(0xa1)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0xb2)+_0x2bba5f(0x14c)+_0x2bba5f(0x14b)+_0x2bba5f(0xed)+'\x20\x20WHERE\x20x.sectionId\x20=\x20602;'),_0x5482c7['query'](_0x2bba5f(0xb2)+_0x2bba5f(0x1ac)+_0x2bba5f(0x14b)+_0x2bba5f(0x13c)+_0x2bba5f(0x144)),_0x5482c7['query'](_0x2bba5f(0xb2)+_0x2bba5f(0x7a)+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+'\x20\x20INNER\x20JOIN\x20user_has_sms_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x2bba5f(0x171)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0xb2)+_0x2bba5f(0x11e)+_0x2bba5f(0x14b)+_0x2bba5f(0x19e)+_0x2bba5f(0x12d)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0xb2)+_0x2bba5f(0x15a)+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x2bba5f(0xb9)+_0x2bba5f(0x16c)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0xb2)+_0x2bba5f(0xec)+_0x2bba5f(0x14b)+_0x2bba5f(0x8a)+_0x2bba5f(0x124)),_0x5482c7[_0x2bba5f(0x8c)]('INSERT\x20INTO\x20tmpExtractedResources'+_0x2bba5f(0x9e)+_0x2bba5f(0x14b)+'\x20\x20INNER\x20JOIN\x20user_has_fax_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x2bba5f(0xde)),_0x5482c7['query']('INSERT\x20INTO\x20tmpExtractedResources'+_0x2bba5f(0xfa)+_0x2bba5f(0x14b)+_0x2bba5f(0x6c)+_0x2bba5f(0x91)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0xb2)+'\x20\x20SELECT\x20x.sectionId,\x20u.VoiceQueueId,\x20x.userId'+_0x2bba5f(0x14b)+_0x2bba5f(0xb3)+_0x2bba5f(0x9b)+_0x2bba5f(0x16e)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0xf0)+'\x20\x20('+'\x20\x20\x20\x20\x20\x20userId\x20text\x20not\x20null,'+_0x2bba5f(0x12f)+_0x2bba5f(0x169)),_0x5482c7['query'](_0x2bba5f(0x105)+'\x20\x20SELECT\x20userId,\x20permissions'+_0x2bba5f(0x18e)+_0x2bba5f(0xc5)+'\x20\x20\x20\x20t.permissions\x20permissions'+'\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'+_0x2bba5f(0x158)),_0x5482c7[_0x2bba5f(0x8c)]('CREATE\x20TABLE\x20tmpSharedProfiles'+_0x2bba5f(0x1a6)+_0x2bba5f(0x1b7)+_0x2bba5f(0x134)+_0x2bba5f(0x117)+'\x20\x20);'),_0x5482c7[_0x2bba5f(0x8c)]('INSERT\x20INTO\x20tmpSharedProfiles'+'\x20\x20SELECT\x20GROUP_CONCAT(userId),\x20permissions,\x20null'+_0x2bba5f(0x1aa)+'\x20\x20WHERE\x20userId\x20NOT\x20IN\x20(SELECT\x20split.userId'+_0x2bba5f(0x15d)+_0x2bba5f(0xab)+_0x2bba5f(0xd4)+'\x20\x20\x20\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'+_0x2bba5f(0x9d)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20AS\x20split'+'\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(SELECT\x20GROUP_CONCAT(userId\x20ORDER\x20BY\x20userId\x20ASC)\x20AS\x20users'+_0x2bba5f(0x89)+_0x2bba5f(0x19f)+_0x2bba5f(0x111)+'\x20\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))'+_0x2bba5f(0x139)+_0x2bba5f(0x181)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0xb5)+_0x2bba5f(0x1a6)+_0x2bba5f(0xb4)+_0x2bba5f(0x134)+'\x20\x20\x20\x20\x20\x20profileId\x20int(11)'+'\x20\x20);'),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x1a3)+_0x2bba5f(0xaa)+_0x2bba5f(0x1aa)+_0x2bba5f(0x74)+_0x2bba5f(0xfb)+_0x2bba5f(0x7b)+_0x2bba5f(0xfe)+_0x2bba5f(0xbf)+_0x2bba5f(0x12a)+_0x2bba5f(0x157)+_0x2bba5f(0xf6)+_0x2bba5f(0xf8)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20users)\x20b'+_0x2bba5f(0x155)+_0x2bba5f(0x16a)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x127)+'\x20\x20('+'\x20\x20\x20\x20\x20\x20userId\x20text\x20not\x20null,'+_0x2bba5f(0x134)+'\x20\x20\x20\x20\x20\x20profileId\x20int(11)'+_0x2bba5f(0x169)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x1a9)+_0x2bba5f(0xd3)+_0x2bba5f(0x1a2)+'\x20\x20SELECT\x20*\x20FROM\x20tmpSingleProfiles;'),_0x5482c7['query'](_0x2bba5f(0x191)+'\x20\x20SELECT\x20CONCAT(\x27Profile_\x27,\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber'+'\x20\x20FROM\x20tmpFinalProfiles\x20t'+_0x2bba5f(0x153)+_0x2bba5f(0x190)),_0x5482c7[_0x2bba5f(0x8c)]('UPDATE\x20tmpFinalProfiles'+_0x2bba5f(0x18d)+_0x2bba5f(0xd6)+_0x2bba5f(0x113)),_0x5482c7['query']('CREATE\x20TABLE\x20tmpSections'+_0x2bba5f(0x1a6)+'\x20\x20\x20\x20name\x20varchar(255)\x20not\x20null,'+_0x2bba5f(0x146)+'\x20\x20\x20\x20sectionId\x20int(11)\x20not\x20null,'+_0x2bba5f(0x1b4)+_0x2bba5f(0x168)+_0x2bba5f(0x8f)+'\x20\x20\x20\x20insertedId\x20int(11),'+_0x2bba5f(0xf9)+_0x2bba5f(0x169)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0xd8)+_0x2bba5f(0xa2)+'\x20\x20FROM\x20(SELECT'+_0x2bba5f(0xd0)+_0x2bba5f(0x1c4)+_0x2bba5f(0x1af)+_0x2bba5f(0x136)+_0x2bba5f(0x11f)+'\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;'),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x118)+'\x20\x20SET'+'\x20\x20\x20\x20\x20\x20name\x20=\x20(SELECT'+_0x2bba5f(0x1a7)+_0x2bba5f(0x7c)+_0x2bba5f(0x141)+_0x2bba5f(0x72)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20201\x20THEN\x20\x27DELETE\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20202\x20THEN\x20\x27Agents\x27'+'\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'+_0x2bba5f(0xbe)+_0x2bba5f(0xb1)+_0x2bba5f(0x161)+_0x2bba5f(0x147)+_0x2bba5f(0x130)+_0x2bba5f(0x8b)+'\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'+_0x2bba5f(0xb7)+'\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'+_0x2bba5f(0x151)+'\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'+_0x2bba5f(0x104)+_0x2bba5f(0x17d)+_0x2bba5f(0x178)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20408\x20THEN\x20\x27VoiceRecordings\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20409\x20THEN\x20\x27ChanSpies\x27'+_0x2bba5f(0x1bd)+_0x2bba5f(0x165)+'\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'+_0x2bba5f(0x14f)+_0x2bba5f(0xba)+_0x2bba5f(0x17c)+'\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'+_0x2bba5f(0xa4)+'\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'+_0x2bba5f(0xe1)+_0x2bba5f(0xcc)+'\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'+_0x2bba5f(0xcb)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20702\x20THEN\x20\x27SmsAccounts\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20710\x20THEN\x20\x27Realtime\x27'+_0x2bba5f(0xf2)+_0x2bba5f(0xce)+_0x2bba5f(0x163)+_0x2bba5f(0xbc)+_0x2bba5f(0x15b)+_0x2bba5f(0xad)+_0x2bba5f(0x12c)+_0x2bba5f(0x1a4)+_0x2bba5f(0xa0)+_0x2bba5f(0x1b2)+_0x2bba5f(0x7e)+'\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=\x201004\x20THEN\x20\x27Intervals\x27'+_0x2bba5f(0x198)+_0x2bba5f(0x86)+_0x2bba5f(0x13d)+_0x2bba5f(0x173)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201009\x20THEN\x20\x27Templates\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201010\x20THEN\x20\x27Triggers\x27'+_0x2bba5f(0x1c0)+_0x2bba5f(0x174)+_0x2bba5f(0x1a1)+_0x2bba5f(0x6f)+'\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'+_0x2bba5f(0x192)+_0x2bba5f(0x172)+_0x2bba5f(0x87)+_0x2bba5f(0x129)+_0x2bba5f(0x98)+_0x2bba5f(0x15f)+_0x2bba5f(0x17f)+_0x2bba5f(0xe8)+_0x2bba5f(0x79)+_0x2bba5f(0xa8)+_0x2bba5f(0x9c)+_0x2bba5f(0x1c2)+_0x2bba5f(0x14d)+'\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'+_0x2bba5f(0x103)+_0x2bba5f(0xc6)+_0x2bba5f(0xf7)+'\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'+_0x2bba5f(0x145)+_0x2bba5f(0x183)+_0x2bba5f(0x82)+_0x2bba5f(0x123)+'\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'+_0x2bba5f(0x184)+_0x2bba5f(0x12b)+_0x2bba5f(0x138)+_0x2bba5f(0x15e)+_0x2bba5f(0xfc)+'\x20\x20category\x20=\x20(SELECT'+_0x2bba5f(0x128)+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20100\x20THEN\x20\x27Dashboards\x27'+_0x2bba5f(0x180)+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(202,\x20203,\x20204)\x20THEN\x20\x27Staff\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(301,\x20302,\x20303,\x20304)\x20THEN\x20\x27ContactManager\x27'+_0x2bba5f(0x97)+_0x2bba5f(0x10e)+_0x2bba5f(0x8d)+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(701,\x20702,\x20710)\x20THEN\x20\x27Sms\x27'+_0x2bba5f(0xcd)+_0x2bba5f(0xcf)+_0x2bba5f(0xdf)+_0x2bba5f(0x167)+_0x2bba5f(0x19b)+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1301,\x201302,\x201303,\x201305,\x201306,\x201307,\x201308)\x20THEN\x20\x27Integrations\x27'+_0x2bba5f(0xe2)+_0x2bba5f(0x17b)+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201600\x20THEN\x20\x27Help\x27'+_0x2bba5f(0x93)+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20between\x2088889\x20AND\x2099999\x20THEN\x20\x27AppZone\x27'+_0x2bba5f(0x11d)+'\x20\x20\x20\x20\x20\x20END'+_0x2bba5f(0x169)),_0x5482c7[_0x2bba5f(0x8c)]('DELETE\x20FROM\x20tmpSections'+_0x2bba5f(0x99)),_0x5482c7['query'](_0x2bba5f(0x106)+'\x20\x20('+_0x2bba5f(0xf5)+_0x2bba5f(0x146)+'\x20\x20\x20\x20sectionId\x20int(11)\x20not\x20null,'+_0x2bba5f(0x1b4)+_0x2bba5f(0x168)+_0x2bba5f(0x8f)+_0x2bba5f(0x88)+_0x2bba5f(0xf9)+'\x20\x20);'),_0x5482c7[_0x2bba5f(0x8c)]('INSERT\x20INTO\x20tmpCustomResources'+_0x2bba5f(0x101)+_0x2bba5f(0xf4)+_0x2bba5f(0xbd)),_0x5482c7[_0x2bba5f(0x8c)]('DELETE\x20t1\x20FROM\x20tmpSections\x20t1,\x20tmpCustomResources\x20t2'+_0x2bba5f(0xb6)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x118)+_0x2bba5f(0x1b8)),_0x5482c7[_0x2bba5f(0x8c)]('UPDATE\x20tmpSections'+'\x20\x20SET\x20sectionId\x20=\x201003\x20WHERE\x20sectionId\x20>=\x20100000;'),_0x5482c7[_0x2bba5f(0x8c)]('UPDATE\x20tmpSections'+_0x2bba5f(0x16d)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x6d)+_0x2bba5f(0xe0)+_0x2bba5f(0x115)+_0x2bba5f(0x71)+'\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)'+_0x2bba5f(0x109)+_0x2bba5f(0x1a0)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0xca)+_0x2bba5f(0x1c5)+_0x2bba5f(0x116)),_0x5482c7[_0x2bba5f(0x8c)]('UPDATE\x20tmpSections\x20s'+_0x2bba5f(0x14a)+'\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'+_0x2bba5f(0x16b)),_0x5482c7[_0x2bba5f(0x8c)]('UPDATE\x20tmpCustomResources\x20r,\x20tmpSections\x20s'+'\x20\x20SET\x20r.sectionId\x20=\x20s.insertedId'+'\x20\x20WHERE\x20r.name\x20=\x20s.name\x20AND\x20r.userProfileId\x20=\x20s.userProfileId;'),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x1b0)+'\x20\x20('+_0x2bba5f(0x1b3)+_0x2bba5f(0x76)+_0x2bba5f(0x78)+_0x2bba5f(0x108)+_0x2bba5f(0x169)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x194)+'\x20\x20SELECT\x20cr.resourceId,\x20name,\x20s.insertedId,\x20s.sectionId'+_0x2bba5f(0x19c)+_0x2bba5f(0xf1)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x9f)+_0x2bba5f(0x1a6)+_0x2bba5f(0xf5)+_0x2bba5f(0x9a)+'\x20\x20\x20\x20type\x20varchar(255)\x20not\x20null,'+'\x20\x20\x20\x20insertedSectionId\x20int(11)\x20not\x20null,'+_0x2bba5f(0x195)+_0x2bba5f(0x169)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x1be)+_0x2bba5f(0x140)+_0x2bba5f(0x18e)+_0x2bba5f(0x13f)+'\x20\x20\x20\x20\x20\x20\x20\x20r.type\x20type,'+_0x2bba5f(0x154)+_0x2bba5f(0x10c)+_0x2bba5f(0x136)+_0x2bba5f(0x1b5)+_0x2bba5f(0xef)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x1be)+_0x2bba5f(0x159)+_0x2bba5f(0x15c)),_0x5482c7['query'](_0x2bba5f(0x196)+_0x2bba5f(0x10d)+_0x2bba5f(0x85)+_0x2bba5f(0xaf)+_0x2bba5f(0x80)+_0x2bba5f(0x12e)+_0x2bba5f(0x189)+_0x2bba5f(0xc3)+_0x2bba5f(0xd9)+_0x2bba5f(0xa6)+'\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20801\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20openchannel_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)'+'\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20802\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20openchannel_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)'+_0x2bba5f(0x6e)+'\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)'+_0x2bba5f(0xf3)+_0x2bba5f(0x122)+_0x2bba5f(0x148)+_0x2bba5f(0x126)+'\x20\x20END'+_0x2bba5f(0x142)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0xd2)+'\x20\x20WHERE\x20name\x20=\x20\x27DELETE_MIGRATION\x27;'),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x17e)+_0x2bba5f(0x110)+'\x20\x20FROM\x20tmpNormalizedResources;'),_0x5482c7['query']('UPDATE\x20users\x20u,\x20tmpFinalProfiles\x20f'+_0x2bba5f(0x81)+_0x2bba5f(0x10b)),_0x5482c7[_0x2bba5f(0x8c)]('UPDATE\x20users\x20u'+_0x2bba5f(0xc1)+_0x2bba5f(0x18f)),_0x5482c7['query']('\x20DROP\x20TABLE\x20IF\x20EXISTS\x20tally;'),_0x5482c7['query'](_0x2bba5f(0x1a5)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x1bb)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x94)),_0x5482c7['query'](_0x2bba5f(0x1a8)),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0x95)),_0x5482c7[_0x2bba5f(0x8c)]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSharedProfiles;'),_0x5482c7[_0x2bba5f(0x8c)]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSingleProfiles;'),_0x5482c7[_0x2bba5f(0x8c)](_0x2bba5f(0xae)),_0x5482c7['query']('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSections;'),_0x5482c7[_0x2bba5f(0x8c)]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpCustomResources;'),_0x5482c7[_0x2bba5f(0x8c)]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpResources;'),_0x5482c7['query'](_0x2bba5f(0x1ad)),_0x5482c7['final'](_0x15be51);});},'down':function(){}}; \ No newline at end of file +const a1128_0x3684=['DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedUsers;','removeIndex','\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;','\x20\x20userId\x20int(11)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20402\x20THEN\x20\x27InboundRoutes\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20401\x20THEN\x20\x27VoiceQueues\x27','INSERT\x20INTO\x20tmpNormalizedPermissions','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20>=\x20100000\x20THEN\x20\x27Tools\x27','\x20\x20PRIMARY\x20KEY\x20(`id`),','\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)','userProfileId','ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20','\x20\x20\x20\x20userId\x20text','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20602\x20THEN\x20\x27MailAccounts\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\x20SET\x20profileId\x20=\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber','UPDATE\x20tmpFinalProfiles','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201010\x20THEN\x20\x27Triggers\x27','\x20\x20\x20\x20\x20\x20CASE','\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=\x201200\x20THEN\x20\x27DELETE\x27','changeColumn','\x20\x20SELECT\x20x.sectionId,\x20u.ChatQueueId,\x20x.userId','\x20\x20(','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20610\x20THEN\x20\x27Realtime\x27','Added\x20column\x20%s\x20to\x20%s','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201102\x20THEN\x20\x27SquareRecordings\x27','stringify',',(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\x20tmpGroupedPermissions','\x20\x20INNER\x20JOIN\x20voice_queues\x20q\x20ON\x20u.VoiceQueueId\x20=\x20q.id','\x20\x20INNER\x20JOIN\x20user_has_mail_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE','\x20\x20\x20\x20userId\x20int(11)\x20not\x20null','CREATE\x20TABLE\x20tmpExtractedResources\x20(','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=\x201510\x20THEN\x20\x27Realtime\x27','\x20\x20KEY\x20`compositeIndex`\x20(`sectionId`,`userProfileId`),','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20900\x20THEN\x20\x27DELETE\x27','UPDATE\x20users\x20u,\x20tmpNormalizedPermissions\x20t','\x20\x20KEY\x20`userProfileId`\x20(`userProfileId`),','users','\x20\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\x20CONSTRAINT\x20`user_profile_has_resources_ibfk_1`\x20FOREIGN\x20KEY\x20(`sectionId`)\x20REFERENCES\x20`user_profile_has_sections`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE','\x20\x20\x20\x20\x20\x20\x20\x20fp.profileId\x20profileId,','\x20\x20`resourceId`\x20int(11)\x20NOT\x20NULL,','\x20\x20WHERE\x20x.sectionId\x20=\x20802;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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=\x201500\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20sectionId\x20int(11)','query\x20%s','\x20\x20INNER\x20JOIN\x20user_has_mail_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(501,\x20502,\x20510)\x20THEN\x20\x27Chat\x27','\x20\x20SET\x20u.userProfileId\x20=\x20f.profileId','INSERT\x20INTO\x20tmpSections','\x20\x20WHERE\x20u.id\x20=\x20t.userId;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20303\x20THEN\x20\x27Contacts\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20s.userProfileId\x20=\x20x.userProfileId\x20AND\x20s.sectionId\x20=\x20x.sectionId);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201011\x20THEN\x20\x27Trunks\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201701\x20THEN\x20\x27jscripty\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20403\x20THEN\x20\x27OutboundRoutes\x27','\x20\x20n\x20INT\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY','addIndex','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20END','\x20\x20FROM\x20tmpFinalProfiles;','\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,','\x20\x20);','removeColumn',',(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\x20WHEN\x20x.sectionId\x20=\x201103\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20square_projects\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20WHERE\x20name\x20=\x20\x27DELETE\x27;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20810\x20THEN\x20\x27Realtime\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20401\x20AND\x20q.type\x20=\x20\x27inbound\x27;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201501\x20THEN\x20\x27QueueCampaigns\x27','\x20\x20SELECT\x20x.sectionId,\x20u.SmsQueueId,\x20x.userId','\x20\x20WHERE\x20x.sectionId\x20=\x20502;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(202,\x20203,\x20204)\x20THEN\x20\x27Staff\x27','ON\x20UPDATE\x20CASCADE','\x20\x20INNER\x20JOIN\x20user_has_fax_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20`type`\x20varchar(255)\x20NOT\x20NULL,','\x20\x20FROM\x20tmpNormalizedResources;','DELETE\x20FROM\x20tmpNormalizedResources','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201306\x20THEN\x20\x27DeskAccounts\x27','INSERT\x20INTO\x20tmpGroupedPermissions','INSERT\x20INTO\x20tmpResources','\x20\x20FROM\x20tmpSections;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20between\x2088889\x20AND\x2099999\x20THEN\x20\x27Plugins\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20901\x20THEN\x20\x27FaxQueues\x27','\x20\x20sectionId\x20int(11)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20800\x20THEN\x20\x27DELETE\x27','addColumn','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20INNER\x20JOIN\x20tmpPermissions\x20r\x20on\x20CHAR_LENGTH(r.userIds)\x20-\x20CHAR_LENGTH(REPLACE(r.userIds,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20t.n-1','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20702\x20THEN\x20\x27SmsAccounts\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)','INSERT\x20INTO\x20tmpSingleProfiles','\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\x20FROM\x20users','\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\x20\x20\x20\x20\x20WHEN\x20name\x20=\x20\x27Plugins\x27\x20THEN\x20(sectionId\x20-\x2088888)','\x20\x20WHERE\x20split.userId\x20IN\x20(SELECT\x20*\x20FROM','CREATE\x20TABLE\x20tmpResources','\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\x20name\x20varchar(255)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally','UPDATE\x20tmpCustomResources','\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','ALTER\x20TABLE\x20`users`\x20','\x20\x20SELECT\x20userId,\x20permissions,\x20null','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201700\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=\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)','\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=\x201307\x20THEN\x20\x27ZohoAccounts\x27','\x20\x20INNER\x20JOIN\x20user_has_chat_websites\x20u\x20ON\x20u.UserId\x20=\x20x.userId','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpFinalProfiles;','\x20\x20SELECT\x20x.sectionId,\x20u.ChatWebsiteId,\x20x.userId','\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null,','\x20\x20WHERE\x20x.sectionId\x20=\x201501\x20AND\x20q.type\x20=\x20\x27outbound\x27;','\x20\x20WHERE\x20name\x20in\x20(\x27Plugins\x27,\x20\x27CustomDashboards\x27);','\x20\x20`enabled`\x20tinyint(1)\x20DEFAULT\x20NULL,','\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','DELETE\x20FROM\x20tmpSections','\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','finally','exports','\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=\x201001\x20THEN\x20\x27CannedAnswers\x27','\x20\x20\x20\x20userProfileId\x20int(11)\x20not\x20null,','\x20DROP\x20TABLE\x20IF\x20EXISTS\x20tally;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201003\x20THEN\x20\x27CustomDashboards\x27','STRING','\x20\x20FROM\x20(SELECT','name','\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','migration',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201600\x20THEN\x20\x27Help\x27','\x20\x20\x20\x20userId\x20text,','CREATE\x20TABLE\x20tmpSingleProfiles','INSERT\x20INTO\x20tmpPermissions','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20603\x20THEN\x20\x27MailSubstatuses\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201502\x20THEN\x20\x27IvrCampaigns\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20resourceId,\x20sectionId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201308\x20THEN\x20\x27VtigerAccounts\x27','\x20\x20INNER\x20JOIN\x20user_has_fax_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20`sectionId`\x20int(11)\x20DEFAULT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20INNER\x20JOIN\x20tmpFinalProfiles\x20fp\x20ON\x20CHAR_LENGTH(fp.permissions)\x20-\x20CHAR_LENGTH(REPLACE(fp.permissions,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20tally.n-1','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(401,\x20402,\x20403,\x20404,\x20405,\x20406,\x20407,\x20408,\x20409,\x20410,\x20411)\x20THEN\x20\x27Voice\x27','INSERT\x20INTO\x20tmpFinalProfiles','\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`sectionId`\x20int(11)\x20NOT\x20NULL,','\x20\x20\x20\x20category\x20varchar(255)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20),','INTEGER','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpPermissions;','Changed\x20column\x20%s\x20in\x20table\x20%s','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpExtractedResources;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201202\x20THEN\x20\x27ExtractedReports\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20409\x20THEN\x20\x27ChanSpies\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\x20ELSE\x20\x27\x27','\x20\x20\x20\x20\x20\x20\x20\x20r.type\x20type,','INSERT\x20INTO\x20user_profiles\x20(name,\x20crudPermissions,\x20createdAt,\x20updatedAt)','\x20\x20SET\x20insertedId\x20=\x20(SELECT\x20id','../config/logger','\x20\x20\x20\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\x20GROUP\x20BY\x20permissions','info','\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\x20WHERE\x20x.sectionId\x20=\x20801;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpGroupedPermissions;','\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=\x201101\x20THEN\x20\x27ODBC\x27','\x20\x20SELECT\x20permission,\x20userId,\x200','\x20\x20SELECT\x20cr.resourceId,\x20name,\x20s.insertedId,\x20s.sectionId','\x20\x20\x20\x20\x20\x20WHEN\x20x.type\x20=\x20\x27Plugins\x27\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20plugins\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1401,\x201402,\x201403,\x201404,\x201405,\x201406,\x201407)\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20t.permissions\x20permissions','UPDATE\x20tmpNormalizedResources\x20x','renameColumn','\x20\x20WHERE\x20role\x20=\x20\x27user\x27\x20and\x20permissions\x20is\x20not\x20null\x20and\x20permissions\x20<>\x20\x27\x27','\x20\x20ORDER\x20BY\x20id;','\x20\x20SET\x20u.userProfileId\x20=\x201','\x20\x20ORDER\x20BY\x20GROUP_CONCAT(userId);','\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)','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedResources;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201305\x20THEN\x20\x27SugarcrmAccounts\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally\x20t\x20INNER\x20JOIN\x20tmpPermissions\x20r\x20ON\x20CHAR_LENGTH(r.userIds)\x20-\x20CHAR_LENGTH(REPLACE(r.userIds,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20t.n-1','\x20\x20\x20\x20sectionId\x20int(11)\x20not\x20null,','\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=\x20406\x20THEN\x20\x27Voicemails\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\x20ORDER\x20BY\x20n)\x20AS\x20split;','\x20\x20WHERE\x20userId\x20NOT\x20IN\x20(SELECT\x20split.userId','\x20\x20SELECT\x20x.sectionId,\x20u.FaxAccountId,\x20x.userId','\x20\x20`name`\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=\x20304\x20THEN\x20\x27GlobalCustomFields\x27','CREATE\x20TABLE\x20tmpPermissions','CREATE\x20TABLE\x20tmpFinalProfiles','queryInterface','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20302\x20THEN\x20\x27Companies\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20502\x20THEN\x20\x27ChatWebsites\x27','\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','\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\x20WHERE\x20u.id\x20=\x20f.userId;','\x20\x20\x20\x20resourceId\x20int(11)\x20not\x20null,','\x20\x20KEY\x20`sectionId`\x20(`sectionId`),','\x20\x20INNER\x20JOIN\x20user_has_sms_queues\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\x20userId\x20text\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201000\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20resourceId\x20text,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20POSITION(\x27,\x27\x20in\x20r.userIds)\x20>\x200','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20as\x20split','addIndex\x20%s\x20%s\x20%s','\x20\x20\x20\x20resourceId\x20text','\x20\x20FROM\x20tmpCustomResources;','\x20\x20SELECT\x20x.sectionId,\x20u.MailQueueId,\x20x.userId','REFERENCES\x20user_profiles(`id`)\x20','\x20\x20WHERE\x20x.sectionId\x20=\x201103;','\x20\x20\x20\x20autoAssociation\x20tinyint\x20not\x20null,','INSERT\x20INTO\x20tmpNormalizedResources','UPDATE\x20users\x20u','\x20\x20FROM\x20tmpFinalProfiles\x20t','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201005\x20THEN\x20\x27Pauses\x27','\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(fp.permissions,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20permission,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201400\x20THEN\x20\x27Settings\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201100\x20THEN\x20\x27DELETE\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=\x20410\x20THEN\x20\x27VoicePrefixes\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201201\x20THEN\x20\x27Metrics\x27','\x20\x20`autoAssociation`\x20tinyint(1)\x20DEFAULT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(601,\x20602,\x20603,\x20610)\x20THEN\x20\x27Mail\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20601;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20END','\x20\x20\x20\x20\x20\x20userIds\x20varchar(255)\x20not\x20null,','sequelize','\x20\x20INNER\x20JOIN\x20user_has_chat_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20404\x20THEN\x20\x27InternalRoutes\x27','\x20\x20WHERE\x20userProfileId\x20is\x20null\x20AND\x20role\x20=\x20\x27user\x27;','\x20\x20SELECT\x20\x27\x27,\x20resourceId,\x20type,\x20insertedSectionId,\x20sectionId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20204\x20THEN\x20\x27Teams\x27','sequence','INSERT\x20INTO\x20tmpExtractedResources','\x20\x20SELECT\x20x.sectionId,\x20u.VoiceQueueId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20300\x20THEN\x20\x27DELETE\x27','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpResources;','\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\x20name\x20=\x20(SELECT','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpCustomResources;','\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=\x201007\x20THEN\x20\x27Sounds\x27','then','\x20\x20\x20\x20\x20\x20profileId\x20int(11)','catch','\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\x20SELECT\x20id,\x20permissions,\x20null','\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(fp.userId,\x20\x27,\x27,\x201)\x20userId','\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\x20userId\x20IN\x20(SELECT\x20split.userId','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20802\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20openchannel_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(t.userIds,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20userId,','TRUNCATE\x20TABLE\x20tmpPermissions;','\x20\x20SELECT\x20*\x20FROM\x20tmpSharedProfiles','tail','prototype','\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','CREATE\x20TABLE\x20tally\x20(','analytics_extracted_reports','CREATE\x20TABLE\x20tmpCustomResources','\x20\x20SELECT\x20x.sectionId,\x20u.MailAccountId,\x20x.userId',',(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20e','dropTable','\x20\x20`crudPermissions`\x20varchar(255)\x20DEFAULT\x20NULL,','SELECT\x20NULL\x20FROM','\x20\x20SELECT\x20GROUP_CONCAT(userId),\x20permissions,\x20null','inspect','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20801\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20openchannel_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(p.permissions,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20permission,','\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,','\x20\x20\x20\x20\x20\x20sectionId\x20int(11)','CREATE\x20TABLE\x20tmpNormalizedResources','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20601\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20mail_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20WHERE\x20x.sectionId\x20=\x20902;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE','\x20\x20FROM\x20tmpNormalizedSections','\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\x20in\x20(1301,\x201302,\x201303,\x201305,\x201306,\x201307,\x201308)\x20THEN\x20\x27Integrations\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(select\x20SUBSTRING_INDEX(SUBSTRING_INDEX(r.userIds,\x20\x27,\x27,\x20t.n),\x20\x27,\x27,\x20-1)\x20userId','\x20\x20SELECT\x20*\x20FROM\x20tmpSingleProfiles;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally\x20t','\x20\x20UNIQUE\x20KEY\x20`name`\x20(`name`)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201303\x20THEN\x20\x27FreshdeskAccounts\x27','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','\x20\x20SET\x20sectionId\x20=\x201003\x20WHERE\x20sectionId\x20>=\x20100000;','\x20\x20SELECT\x20DISTINCT\x20permission,\x20userId,\x200','INSERT\x20INTO\x20tally\x20(n)','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201400\x20THEN\x20\x27Settings\x27','\x20\x20`crudPermissions`\x20varchar(255)\x20NOT\x20NULL\x20DEFAULT\x20\x27r\x27,','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(301,\x20302,\x20303,\x20304)\x20THEN\x20\x27ContactManager\x27','\x20\x20\x20\x20insertedId\x20int(11),','INSERT\x20INTO\x20user_profile_has_sections\x20(name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20crudPermissions,\x20createdAt,\x20updatedAt,\x20userProfileId)','DELETE\x20t1\x20FROM\x20tmpSections\x20t1,\x20tmpCustomResources\x20t2','VALUES\x20(\x27Default\x27,\x20\x27red\x27,\x20NULL,\x20NOW(),\x20NOW());','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20100\x20THEN\x20\x27Dashboards\x27','\x20\x20INNER\x20JOIN\x20user_has_square_projects\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20WHERE\x20r.name\x20=\x20s.name\x20AND\x20r.userProfileId\x20=\x20s.userProfileId;','CREATE\x20TABLE\x20`user_profile_has_sections`\x20(','\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\x20INNER\x20JOIN\x20user_has_voice_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20s.sectionId\x20permission,','UPDATE\x20tmpSections','query','\x20\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x200)\x20as\x20dummy\x20LIMIT\x201)),\x20\x27red\x27,\x20now(),\x20now()','\x20\x20SET\x20u.permissions\x20=\x20t.permissions','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(701,\x20702,\x20710)\x20THEN\x20\x27Sms\x27','\x20\x20SET','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ELSE\x20\x27\x27','INSERT\x20INTO\x20tmpSharedProfiles','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1501,\x201502,\x201510)\x20THEN\x20\x27MotionDialer\x27','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20902\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20fax_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20\x20\x20\x20\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=\x20501\x20THEN\x20\x27ChatQueues\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20users)\x20b','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(801,\x20802,\x20810)\x20THEN\x20\x27Openchannel\x27','\x20\x20FROM\x20tmpNormalizedUsers\x20x','INSERT\x20INTO\x20tmpNormalizedSections','join','\x20\x20SELECT\x20\x27\x27,\x20insertedId,\x20name,\x20sectionId,\x20null','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201006\x20THEN\x20\x27Scheduler\x27','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSingleProfiles;','UPDATE\x20tmpSections\x20s','\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','enqueue','(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20a','\x20\x20SET\x20insertedId\x20=\x20(SELECT','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(SELECT\x20GROUP_CONCAT(userId\x20ORDER\x20BY\x20userId\x20ASC)\x20AS\x20users','\x20\x20category\x20=\x20(SELECT','\x20\x20SELECT\x20GROUP_CONCAT(sectionId\x20ORDER\x20BY\x20sectionId),\x20userId','\x20\x20ORDER\x20BY\x20GROUP_CONCAT(id);','\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=\x20200\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1201,\x201202,\x201203)\x20THEN\x20\x27Analytics\x27','util','\x20\x20ORDER\x20BY\x20userId;'];(function(_0x29bdcb,_0x247127){const _0x3684bc=function(_0x30bff7){while(--_0x30bff7){_0x29bdcb['push'](_0x29bdcb['shift']());}};_0x3684bc(++_0x247127);}(a1128_0x3684,0x71));const a1128_0x30bf=function(_0x29bdcb,_0x247127){_0x29bdcb=_0x29bdcb-0xad;let _0x3684bc=a1128_0x3684[_0x29bdcb];return _0x3684bc;};const a1128_0x6c7d16=a1128_0x30bf;'use strict';const util=require(a1128_0x6c7d16(0x199)),logger=require(a1128_0x6c7d16(0xe4))(a1128_0x6c7d16(0xc6)),Sequence=function(){};Sequence['prototype'][a1128_0x6c7d16(0x18f)]=function(_0x139542){const _0xafc50a=a1128_0x6c7d16;this[_0xafc50a(0x149)]=this[_0xafc50a(0x149)]?this[_0xafc50a(0x149)][_0xafc50a(0xbb)](_0x139542):_0x139542();};const Migration=function(_0x1e96fb){const _0x123b61=a1128_0x6c7d16;this[_0x123b61(0x108)]=_0x1e96fb,this[_0x123b61(0x133)]=new Sequence();};Migration[a1128_0x6c7d16(0x14a)][a1128_0x6c7d16(0x1b0)]=function(_0x308623,_0x3b48b9,_0x7d02eb){const _0x3bbac8=a1128_0x6c7d16,_0x448d7e=this;this[_0x3bbac8(0x133)][_0x3bbac8(0x18f)](function(){const _0x65822d=_0x3bbac8;return _0x448d7e[_0x65822d(0x108)][_0x65822d(0x1b0)](_0x308623,_0x3b48b9,_0x7d02eb)[_0x65822d(0x13d)](function(){const _0x2f7ef0=_0x65822d;logger[_0x2f7ef0(0xe7)](_0x2f7ef0(0xdb),_0x3b48b9,_0x308623);})[_0x65822d(0x13f)](function(_0x4587fa){const _0x385a12=_0x65822d;logger['info'](JSON[_0x385a12(0x1b6)](_0x4587fa));});});},Migration[a1128_0x6c7d16(0x14a)][a1128_0x6c7d16(0x1f6)]=function(_0x5d76e0,_0x471acd,_0x1376be){const _0x12c548=a1128_0x6c7d16,_0x4c2f61=this;this[_0x12c548(0x133)]['enqueue'](function(){const _0x576d02=_0x12c548;return _0x4c2f61[_0x576d02(0x108)][_0x576d02(0x1f6)](_0x5d76e0,_0x471acd,_0x1376be)[_0x576d02(0x13d)](function(){const _0x213085=_0x576d02;logger['info'](_0x213085(0x1b4),_0x471acd,_0x5d76e0);})['catch'](function(_0x584cbf){const _0x28cb31=_0x576d02;logger['info'](JSON[_0x28cb31(0x1b6)](_0x584cbf));});});},Migration[a1128_0x6c7d16(0x14a)][a1128_0x6c7d16(0x151)]=function(_0x5aa615){const _0x4eb7f8=a1128_0x6c7d16,_0x564f69=this;this[_0x4eb7f8(0x133)][_0x4eb7f8(0x18f)](function(){const _0x3f160b=_0x4eb7f8;return _0x564f69[_0x3f160b(0x108)][_0x3f160b(0x151)](_0x5aa615,{'force':!![]})[_0x3f160b(0x13d)](function(){const _0x2bd498=_0x3f160b;logger[_0x2bd498(0xe7)](_0x2bd498(0xb1),_0x5aa615);})[_0x3f160b(0x13f)](function(_0xb1d80f){const _0x4b37ae=_0x3f160b;logger[_0x4b37ae(0xe7)](JSON[_0x4b37ae(0x1b6)](_0xb1d80f));});});},Migration[a1128_0x6c7d16(0x14a)][a1128_0x6c7d16(0x1d9)]=function(_0x3938c2,_0xbedab0,_0x1fadac){const _0x4330bb=a1128_0x6c7d16,_0x392ff9=this;this['sequence'][_0x4330bb(0x18f)](function(){const _0x2eadce=_0x4330bb;return _0x392ff9[_0x2eadce(0x108)][_0x2eadce(0x1d9)](_0x3938c2,_0xbedab0,{'indexName':_0x1fadac})[_0x2eadce(0x13d)](function(){const _0x236d4e=_0x2eadce;logger[_0x236d4e(0xe7)](_0x236d4e(0x117),_0x3938c2,_0xbedab0[_0x236d4e(0x189)](','),_0x1fadac);})[_0x2eadce(0x13f)](function(_0x1bb458){const _0x402eb7=_0x2eadce;logger[_0x402eb7(0xe7)](JSON[_0x402eb7(0x1b6)](_0x1bb458));});});},Migration['prototype'][a1128_0x6c7d16(0x19c)]=function(_0x150114,_0x17aa2b){const _0x2e7fcb=a1128_0x6c7d16,_0x2e9e5a=this;this[_0x2e7fcb(0x133)][_0x2e7fcb(0x18f)](function(){const _0x54aafc=_0x2e7fcb;return _0x2e9e5a[_0x54aafc(0x108)][_0x54aafc(0x19c)](_0x150114,_0x17aa2b)[_0x54aafc(0x13d)](function(){const _0xdfc7c7=_0x54aafc;logger[_0xdfc7c7(0xe7)]('removeIndex\x20%s\x20%s',_0x150114,_0x17aa2b);})[_0x54aafc(0x13f)](function(_0x1c73d2){const _0x443df0=_0x54aafc;logger['info'](JSON[_0x443df0(0x1b6)](_0x1c73d2));});});},Migration['prototype']['query']=function(_0x2f9b4d){const _0x186e54=a1128_0x6c7d16,_0x13a662=this;this['sequence'][_0x186e54(0x18f)](function(){const _0x2b214c=_0x186e54;return _0x13a662[_0x2b214c(0x108)][_0x2b214c(0x12d)][_0x2b214c(0x179)](_0x2f9b4d)['then'](function(){const _0x3375aa=_0x2b214c;logger[_0x3375aa(0xe7)](_0x3375aa(0x1cd),_0x2f9b4d);})[_0x2b214c(0x13f)](function(_0x4fc1a1){const _0x325a6f=_0x2b214c;logger['info'](JSON[_0x325a6f(0x1b6)](_0x4fc1a1));});});},Migration[a1128_0x6c7d16(0x14a)][a1128_0x6c7d16(0x1de)]=function(_0x283253,_0xb2c314){const _0x2ee606=a1128_0x6c7d16,_0x48b86c=this;this[_0x2ee606(0x133)][_0x2ee606(0x18f)](function(){const _0x21e1c5=_0x2ee606;return _0x48b86c[_0x21e1c5(0x108)]['removeColumn'](_0x283253,_0xb2c314)[_0x21e1c5(0x13d)](function(){const _0x53fa3c=_0x21e1c5;logger[_0x53fa3c(0xe7)](_0x53fa3c(0xb0),_0xb2c314,_0x283253);})[_0x21e1c5(0x13f)](function(_0x504d1e){const _0x2c65de=_0x21e1c5;logger[_0x2c65de(0xe7)](util[_0x2c65de(0x155)](_0x504d1e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1128_0x6c7d16(0xf4)]=function(_0x555085,_0x3a9706,_0x1fa7cf){const _0x256638=this;this['sequence']['enqueue'](function(){const _0x37b900=a1128_0x30bf;return _0x256638['queryInterface'][_0x37b900(0xf4)](_0x555085,_0x3a9706,_0x1fa7cf)[_0x37b900(0x13d)](function(){const _0x36db07=_0x37b900;logger[_0x36db07(0xe7)](_0x36db07(0x166),_0x3a9706,_0x1fa7cf,_0x555085);})[_0x37b900(0x13f)](function(_0x3b0583){const _0x2ef8f1=_0x37b900;logger[_0x2ef8f1(0xe7)](util['inspect'](_0x3b0583,{'showHidden':![],'depth':null}));});});},Migration[a1128_0x6c7d16(0x14a)]['final']=function(_0x4ab826){const _0x41bfbe=a1128_0x6c7d16;this[_0x41bfbe(0x133)][_0x41bfbe(0x18f)](function(){return _0x4ab826();});},module[a1128_0x6c7d16(0xbc)]={'up':function(_0xcd0b18,_0x5b9ac1){return new Promise(function(_0x15e361){const _0x25f607=a1128_0x30bf,_0x52f612=new Migration(_0xcd0b18);_0x52f612['addColumn'](_0x25f607(0x14d),'reportId',{'type':_0x5b9ac1[_0x25f607(0xd9)]}),_0x52f612['addColumn']('analytics_extracted_reports','reportType',{'type':_0x5b9ac1[_0x25f607(0xc2)]}),_0x52f612[_0x25f607(0x1f6)](_0x25f607(0x1c4),_0x25f607(0x1a5),{'type':_0x5b9ac1[_0x25f607(0xd9)]}),_0x52f612[_0x25f607(0x1de)]('voice_voicemail',_0x25f607(0xc4)),_0x52f612['query']('CREATE\x20TABLE\x20`user_profiles`\x20('+_0x25f607(0x1dc)+_0x25f607(0x104)+_0x25f607(0x16b)+'\x20\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,'+_0x25f607(0x158)+_0x25f607(0x10b)+_0x25f607(0x1a3)+_0x25f607(0x164)+_0x25f607(0xc7)),_0x52f612[_0x25f607(0x179)]('INSERT\x20INTO\x20`user_profiles`\x20(`name`,\x20`crudPermissions`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)'+_0x25f607(0x170)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x207)+_0x25f607(0x1a6)+'FOREIGN\x20KEY\x20(`userProfileId`)\x20'+_0x25f607(0x11b)+_0x25f607(0x1e8)),_0x52f612['query'](_0x25f607(0x174)+'\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,'+_0x25f607(0x104)+'\x20\x20`category`\x20varchar(255)\x20NOT\x20NULL,'+_0x25f607(0xd6)+_0x25f607(0xb7)+_0x25f607(0x128)+_0x25f607(0x152)+_0x25f607(0x158)+'\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,'+'\x20\x20`userProfileId`\x20int(11)\x20DEFAULT\x20NULL,'+_0x25f607(0x1a3)+_0x25f607(0x1c3)+_0x25f607(0x1c0)+_0x25f607(0xb8)+')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;'),_0x52f612[_0x25f607(0x179)]('CREATE\x20TABLE\x20`user_profile_has_resources`\x20('+_0x25f607(0x1dc)+_0x25f607(0x104)+_0x25f607(0x1c8)+_0x25f607(0x1ea)+_0x25f607(0x158)+_0x25f607(0x10b)+_0x25f607(0xd1)+_0x25f607(0x1a3)+_0x25f607(0x10f)+'\x20\x20KEY\x20`compositeIndex`\x20(`resourceId`,`sectionId`),'+_0x25f607(0x1c6)+_0x25f607(0xc7)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x14c)+_0x25f607(0x1d8)+');'),_0x52f612['query'](_0x25f607(0x169)+_0x25f607(0x153)+_0x25f607(0x190)+_0x25f607(0x1b7)+',(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'+_0x25f607(0x1df)+_0x25f607(0x150)+';'),_0x52f612[_0x25f607(0x179)](_0x25f607(0x106)+'\x20\x20('+_0x25f607(0x12c)+_0x25f607(0xb4)+_0x25f607(0x13e)+'\x20\x20);'),_0x52f612[_0x25f607(0x179)](_0x25f607(0xcb)+_0x25f607(0x141)+_0x25f607(0x1fc)+_0x25f607(0xf5)+_0x25f607(0xf6)),_0x52f612[_0x25f607(0x179)]('CREATE\x20TABLE\x20tmpNormalizedSections'+_0x25f607(0x1b2)+_0x25f607(0xfd)+'\x20\x20\x20\x20userId\x20text,'+'\x20\x20\x20\x20resourceId\x20text'+_0x25f607(0x1dd)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x188)+_0x25f607(0x168)+'\x20\x20FROM\x20(SELECT'+_0x25f607(0x157)+'\x20\x20\x20\x20p.userIds\x20userId'+_0x25f607(0xc5)+_0x25f607(0x101)),_0x52f612[_0x25f607(0x179)]('CREATE\x20TABLE\x20tmpNormalizedPermissions'+'\x20\x20('+'\x20\x20\x20\x20permissions\x20text\x20not\x20null,'+_0x25f607(0x1bc)+_0x25f607(0x1dd)),_0x52f612['query'](_0x25f607(0x1a1)+_0x25f607(0x194)+_0x25f607(0x15e)+'\x20\x20GROUP\x20BY\x20userId;'),_0x52f612['query'](_0x25f607(0x1c2)+_0x25f607(0x17b)+_0x25f607(0x1d2)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x147)),_0x52f612[_0x25f607(0x179)](_0x25f607(0xcb)+'\x20\x20SELECT\x20GROUP_CONCAT(id),\x20permissions,\x20null'+_0x25f607(0x1fc)+_0x25f607(0xf5)+_0x25f607(0xe6)+_0x25f607(0x195)),_0x52f612['query']('CREATE\x20TABLE\x20tmpNormalizedUsers'+_0x25f607(0x1b2)+_0x25f607(0xfd)+_0x25f607(0xc9)+_0x25f607(0x118)+_0x25f607(0x1dd)),_0x52f612['query']('INSERT\x20INTO\x20tmpNormalizedUsers'+_0x25f607(0xee)+_0x25f607(0xc3)+_0x25f607(0x177)+'\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(s.userId,\x20\x27,\x27,\x20t.n),\x20\x27,\x27,\x20-1)\x20userId'+_0x25f607(0x140)+_0x25f607(0x101)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x1bd)+_0x25f607(0x1f3)+'\x20\x20resourceId\x20int(11),'+_0x25f607(0x19e)+_0x25f607(0x1dd)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x134)+'\x20\x20SELECT\x20x.sectionId,\x20u.VoiceQueueId,\x20x.userId'+_0x25f607(0x187)+_0x25f607(0x176)+_0x25f607(0x1b9)+_0x25f607(0x1e3)),_0x52f612['query'](_0x25f607(0x134)+_0x25f607(0x1b1)+_0x25f607(0x187)+_0x25f607(0x12e)+_0x25f607(0x196)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x134)+_0x25f607(0xb3)+_0x25f607(0x187)+_0x25f607(0xaf)+_0x25f607(0x1e6)),_0x52f612['query'](_0x25f607(0x134)+_0x25f607(0x11a)+_0x25f607(0x187)+_0x25f607(0x1ba)+_0x25f607(0x12a)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x134)+_0x25f607(0x14f)+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x25f607(0x1ce)+'\x20\x20WHERE\x20x.sectionId\x20=\x20602;'),_0x52f612[_0x25f607(0x179)](_0x25f607(0x134)+_0x25f607(0x1e5)+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x25f607(0x110)+'\x20\x20WHERE\x20x.sectionId\x20=\x20701;'),_0x52f612[_0x25f607(0x179)](_0x25f607(0x134)+'\x20\x20SELECT\x20x.sectionId,\x20u.SmsAccountId,\x20x.userId'+_0x25f607(0x187)+'\x20\x20INNER\x20JOIN\x20user_has_sms_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+'\x20\x20WHERE\x20x.sectionId\x20=\x20702;'),_0x52f612[_0x25f607(0x179)](_0x25f607(0x134)+'\x20\x20SELECT\x20x.sectionId,\x20u.OpenchannelQueueId,\x20x.userId'+_0x25f607(0x187)+'\x20\x20INNER\x20JOIN\x20user_has_openchannel_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x25f607(0xe9)),_0x52f612['query'](_0x25f607(0x134)+'\x20\x20SELECT\x20x.sectionId,\x20u.OpenchannelAccountId,\x20x.userId'+_0x25f607(0x187)+'\x20\x20INNER\x20JOIN\x20user_has_openchannel_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x25f607(0x1c9)),_0x52f612['query'](_0x25f607(0x134)+'\x20\x20SELECT\x20x.sectionId,\x20u.FaxQueueId,\x20x.userId'+_0x25f607(0x187)+_0x25f607(0xd0)+'\x20\x20WHERE\x20x.sectionId\x20=\x20901;'),_0x52f612[_0x25f607(0x179)](_0x25f607(0x134)+_0x25f607(0x103)+_0x25f607(0x187)+_0x25f607(0x1e9)+_0x25f607(0x15c)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x134)+'\x20\x20SELECT\x20x.sectionId,\x20u.SquareProjectId,\x20x.userId'+_0x25f607(0x187)+_0x25f607(0x172)+_0x25f607(0x11c)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x134)+_0x25f607(0x135)+_0x25f607(0x187)+_0x25f607(0x176)+_0x25f607(0x1b9)+_0x25f607(0xb5)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x1b8)+_0x25f607(0x1b2)+'\x20\x20\x20\x20\x20\x20userId\x20text\x20not\x20null,'+'\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null'+'\x20\x20);'),_0x52f612[_0x25f607(0x179)](_0x25f607(0x1ee)+'\x20\x20SELECT\x20userId,\x20permissions'+_0x25f607(0xc3)+_0x25f607(0x146)+_0x25f607(0xf2)+_0x25f607(0x100)+'\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;'),_0x52f612[_0x25f607(0x179)]('CREATE\x20TABLE\x20tmpSharedProfiles'+_0x25f607(0x1b2)+_0x25f607(0x12c)+_0x25f607(0xb4)+_0x25f607(0x13e)+_0x25f607(0x1dd)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x180)+_0x25f607(0x154)+'\x20\x20FROM\x20tmpGroupedPermissions'+_0x25f607(0x102)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(SELECT'+_0x25f607(0xe5)+_0x25f607(0x163)+_0x25f607(0x1f7)+_0x25f607(0x115)+_0x25f607(0x1ca)+'\x20\x20WHERE\x20split.userId\x20IN\x20(SELECT\x20*\x20FROM'+_0x25f607(0x192)+'\x20\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'+_0x25f607(0x185)+_0x25f607(0x1c5)+_0x25f607(0xe6)+_0x25f607(0xf8)),_0x52f612[_0x25f607(0x179)](_0x25f607(0xca)+_0x25f607(0x1b2)+_0x25f607(0x112)+_0x25f607(0xb4)+_0x25f607(0x13e)+_0x25f607(0x1dd)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x1fa)+_0x25f607(0x208)+'\x20\x20FROM\x20tmpGroupedPermissions'+_0x25f607(0x144)+_0x25f607(0x161)+_0x25f607(0xfc)+_0x25f607(0x202)+_0x25f607(0x116)+_0x25f607(0x200)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(SELECT\x20GROUP_CONCAT(userId\x20ORDER\x20BY\x20userId\x20ASC)\x20as\x20users'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tmpNormalizedUsers'+_0x25f607(0xce)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20users)\x20b'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20position(\x27,\x27\x20in\x20b.users)\x20=\x200))'+_0x25f607(0x19a)),_0x52f612['query'](_0x25f607(0x107)+_0x25f607(0x1b2)+_0x25f607(0x112)+_0x25f607(0xb4)+_0x25f607(0x13e)+_0x25f607(0x1dd)),_0x52f612['query'](_0x25f607(0xd4)+_0x25f607(0x148)+'\x20\x20UNION'+_0x25f607(0x162)),_0x52f612[_0x25f607(0x179)](_0x25f607(0xe2)+_0x25f607(0xad)+_0x25f607(0x120)+_0x25f607(0x17a)+_0x25f607(0x1db)),_0x52f612['query'](_0x25f607(0x1ab)+_0x25f607(0x1aa)+'\x20\x20FROM\x20user_profiles\x20u'+'\x20\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x201)\x20as\x20dummy\x20LIMIT\x201)'),_0x52f612['query']('CREATE\x20TABLE\x20tmpSections'+_0x25f607(0x1b2)+_0x25f607(0x203)+'\x20\x20\x20\x20category\x20varchar(255)\x20not\x20null,'+_0x25f607(0xfd)+_0x25f607(0xec)+_0x25f607(0x11d)+_0x25f607(0xbf)+_0x25f607(0x16d)+_0x25f607(0x1a7)+_0x25f607(0x1dd)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x1d1)+'\x20\x20SELECT\x20\x27\x27,\x20\x27\x27,\x20permission,\x201,\x200,\x20profileId,\x20null,\x20userId'+_0x25f607(0xc3)+_0x25f607(0x1c7)+_0x25f607(0x122)+_0x25f607(0x142)+_0x25f607(0x204)+_0x25f607(0xd2)+_0x25f607(0x19d)),_0x52f612['query'](_0x25f607(0x178)+_0x25f607(0x17d)+_0x25f607(0x139)+_0x25f607(0x1bb)+_0x25f607(0x171)+_0x25f607(0xe8)+_0x25f607(0x197)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20201\x20THEN\x20\x27DELETE\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20202\x20THEN\x20\x27Agents\x27'+'\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'+_0x25f607(0x132)+_0x25f607(0x136)+_0x25f607(0x143)+_0x25f607(0x109)+_0x25f607(0x1d3)+_0x25f607(0x105)+'\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'+_0x25f607(0x1a0)+_0x25f607(0x19f)+_0x25f607(0x1d7)+_0x25f607(0x12f)+'\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'+_0x25f607(0xff)+'\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'+_0x25f607(0x1fb)+_0x25f607(0xde)+_0x25f607(0x126)+_0x25f607(0x183)+'\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'+_0x25f607(0x184)+_0x25f607(0x10a)+_0x25f607(0x138)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20600\x20THEN\x20\x27DELETE\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20601\x20THEN\x20\x27MailQueues\x27'+_0x25f607(0x1a8)+_0x25f607(0xcc)+_0x25f607(0x1b3)+'\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'+_0x25f607(0xd5)+_0x25f607(0x1f8)+'\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'+_0x25f607(0x1f5)+_0x25f607(0x20a)+_0x25f607(0x18e)+_0x25f607(0x1e2)+_0x25f607(0x1c1)+_0x25f607(0x1f2)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20902\x20THEN\x20\x27FaxAccounts\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20910\x20THEN\x20\x27Realtime\x27'+_0x25f607(0x113)+_0x25f607(0xbe)+'\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'+_0x25f607(0xc1)+'\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'+_0x25f607(0x121)+_0x25f607(0x18b)+_0x25f607(0x13c)+'\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=\x201009\x20THEN\x20\x27Templates\x27'+_0x25f607(0x1ac)+_0x25f607(0x1d5)+'\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'+_0x25f607(0x124)+_0x25f607(0xed)+_0x25f607(0x1b5)+_0x25f607(0x14b)+_0x25f607(0x1af)+_0x25f607(0x127)+_0x25f607(0xdd)+'\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'+_0x25f607(0x206)+_0x25f607(0x13b)+'\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'+_0x25f607(0x165)+_0x25f607(0xfb)+_0x25f607(0x1ed)+_0x25f607(0xae)+_0x25f607(0xcf)+_0x25f607(0x123)+_0x25f607(0xf1)+_0x25f607(0x1cb)+_0x25f607(0x1e4)+_0x25f607(0xcd)+_0x25f607(0x1bf)+_0x25f607(0xc8)+_0x25f607(0x1fe)+_0x25f607(0x209)+'\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'+_0x25f607(0x1f1)+_0x25f607(0xba)+_0x25f607(0x17f)+_0x25f607(0x1da)+_0x25f607(0xd8)+_0x25f607(0x193)+_0x25f607(0x1ad)+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20100\x20THEN\x20\x27Dashboards\x27'+_0x25f607(0x1a2)+_0x25f607(0x1e7)+_0x25f607(0x16c)+_0x25f607(0xd3)+_0x25f607(0x1cf)+_0x25f607(0x129)+_0x25f607(0x17c)+_0x25f607(0x186)+_0x25f607(0xdf)+'\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(1101,\x201102,\x201103)\x20THEN\x20\x27CallySquare\x27'+_0x25f607(0x198)+_0x25f607(0x160)+_0x25f607(0x16a)+_0x25f607(0x181)+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201600\x20THEN\x20\x27Help\x27'+_0x25f607(0x1d6)+_0x25f607(0x15f)+_0x25f607(0xe0)+'\x20\x20\x20\x20\x20\x20END'+'\x20\x20);'),_0x52f612[_0x25f607(0x179)](_0x25f607(0xb9)+_0x25f607(0x1e1)),_0x52f612['query'](_0x25f607(0x14e)+'\x20\x20('+_0x25f607(0x203)+_0x25f607(0xd7)+_0x25f607(0xfd)+_0x25f607(0xec)+'\x20\x20\x20\x20autoAssociation\x20tinyint\x20not\x20null,'+'\x20\x20\x20\x20userProfileId\x20int(11)\x20not\x20null,'+'\x20\x20\x20\x20insertedId\x20int(11),'+_0x25f607(0x1a7)+_0x25f607(0x1dd)),_0x52f612[_0x25f607(0x179)]('INSERT\x20INTO\x20tmpCustomResources'+'\x20\x20SELECT\x20*'+'\x20\x20FROM\x20tmpSections'+_0x25f607(0xb6)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x16f)+'\x20\x20WHERE\x20t1.name\x20=\x20t2.name\x20AND\x20t1.userProfileId\x20=\x20t2.userProfileId\x20AND\x20t1.sectionId\x20>\x20t2.sectionId;'),_0x52f612[_0x25f607(0x179)](_0x25f607(0x178)+'\x20\x20SET\x20sectionId\x20=\x201801\x20WHERE\x20sectionId\x20between\x2088889\x20AND\x2099999;'),_0x52f612[_0x25f607(0x179)]('UPDATE\x20tmpSections'+_0x25f607(0x167)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x178)+'\x20\x20SET\x20autoAssociation\x20=\x201\x20WHERE\x20sectionId\x20=\x20100;'),_0x52f612['query'](_0x25f607(0x205)+_0x25f607(0x191)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE'+_0x25f607(0x1ff)+'\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)'+_0x25f607(0x12b)+_0x25f607(0x1f4)),_0x52f612['query'](_0x25f607(0x16e)+'\x20\x20SELECT\x20name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20\x27red\x27,\x20now(),\x20now(),\x20userProfileId'+_0x25f607(0x1f0)),_0x52f612['query'](_0x25f607(0x18d)+_0x25f607(0xe3)+_0x25f607(0x1fd)+_0x25f607(0x1d4)),_0x52f612[_0x25f607(0x179)]('UPDATE\x20tmpCustomResources\x20r,\x20tmpSections\x20s'+'\x20\x20SET\x20r.sectionId\x20=\x20s.insertedId'+_0x25f607(0x173)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x201)+'\x20\x20('+_0x25f607(0x114)+'\x20\x20\x20\x20\x20\x20type\x20varchar(255)\x20not\x20null,'+'\x20\x20\x20\x20\x20\x20insertedSectionId\x20int(11)\x20not\x20null,'+_0x25f607(0x159)+'\x20\x20);'),_0x52f612[_0x25f607(0x179)](_0x25f607(0x1ef)+_0x25f607(0xef)+'\x20\x20FROM\x20tmpSections\x20s'+'\x20\x20INNER\x20JOIN\x20tmpExtractedResources\x20cr\x20ON\x20cr.userId\x20=\x20s.userId\x20AND\x20cr.sectionId\x20=\x20s.sectionId\x20AND\x20cr.resourceId\x20IS\x20NOT\x20NULL;'),_0x52f612[_0x25f607(0x179)](_0x25f607(0x15a)+_0x25f607(0x1b2)+'\x20\x20\x20\x20name\x20varchar(255)\x20not\x20null,'+_0x25f607(0x10e)+'\x20\x20\x20\x20type\x20varchar(255)\x20not\x20null,'+_0x25f607(0xbd)+_0x25f607(0x1cc)+_0x25f607(0x1dd)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x11e)+_0x25f607(0x131)+_0x25f607(0xc3)+_0x25f607(0x1a9)+_0x25f607(0xe1)+'\x20\x20\x20\x20\x20\x20\x20\x20r.insertedSectionId\x20insertedSectionId,'+'\x20\x20\x20\x20\x20\x20\x20\x20r.sectionId\x20sectionId'+'\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally'+'\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'+_0x25f607(0x19d)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x11e)+_0x25f607(0x18a)+_0x25f607(0x119)),_0x52f612[_0x25f607(0x179)](_0x25f607(0xf3)+_0x25f607(0x1ae)+_0x25f607(0x15d)+_0x25f607(0x1f9)+_0x25f607(0x1a4)+_0x25f607(0x17e)+_0x25f607(0x15b)+'\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)'+_0x25f607(0x20b)+_0x25f607(0x10c)+_0x25f607(0x156)+_0x25f607(0x145)+_0x25f607(0xf9)+_0x25f607(0x182)+_0x25f607(0x1e0)+_0x25f607(0x175)+_0x25f607(0xf0)+_0x25f607(0x111)+'\x20\x20END'+_0x25f607(0xea)),_0x52f612['query'](_0x25f607(0x1ec)+_0x25f607(0xfe)),_0x52f612[_0x25f607(0x179)]('INSERT\x20INTO\x20user_profile_has_resources\x20(name,\x20resourceId,\x20type,\x20createdAt,\x20updatedAt,\x20sectionId)'+'\x20\x20SELECT\x20name,\x20resourceId,\x20type,\x20now(),\x20now(),\x20insertedSectionId'+_0x25f607(0x1eb)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x125)+_0x25f607(0x1d0)+_0x25f607(0x10d)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x11f)+_0x25f607(0xf7)+_0x25f607(0x130)),_0x52f612[_0x25f607(0x179)](_0x25f607(0xc0)),_0x52f612[_0x25f607(0x179)](_0x25f607(0xda)),_0x52f612['query']('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedSections;'),_0x52f612[_0x25f607(0x179)](_0x25f607(0x19b)),_0x52f612[_0x25f607(0x179)](_0x25f607(0xdc)),_0x52f612[_0x25f607(0x179)](_0x25f607(0xeb)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x1be)),_0x52f612[_0x25f607(0x179)](_0x25f607(0x18c)),_0x52f612[_0x25f607(0x179)](_0x25f607(0xb2)),_0x52f612[_0x25f607(0x179)]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSections;'),_0x52f612[_0x25f607(0x179)](_0x25f607(0x13a)),_0x52f612['query'](_0x25f607(0x137)),_0x52f612[_0x25f607(0x179)](_0x25f607(0xfa)),_0x52f612['final'](_0x15e361);});},'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 a563037..d5b97cf 100644 --- a/server/migrations/2.2.0.js +++ b/server/migrations/2.2.0.js @@ -1 +1 @@ -const a1129_0x5f21=['changeColumn','clickatell','intelepeer','migration','infobip','users','Removed\x20column\x20%s\x20from\x20%s','stringify','then','info','addColumn','exports','dropTable','renameColumn','enqueue','sms_accounts','Added\x20column\x20%s\x20to\x20%s','sequelize','phoneBarListenPort','removeColumn','ENUM','addIndex','addIndex\x20%s\x20%s\x20%s','tail','../config/logger','table\x20dropped\x20%s','prototype','type','twilio','query','queryInterface','catch','inspect','csc','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','removeIndex','sequence'];(function(_0x5b6b2c,_0x5c370f){const _0x5f2133=function(_0x544fda){while(--_0x544fda){_0x5b6b2c['push'](_0x5b6b2c['shift']());}};_0x5f2133(++_0x5c370f);}(a1129_0x5f21,0x146));const a1129_0x544f=function(_0x5b6b2c,_0x5c370f){_0x5b6b2c=_0x5b6b2c-0xaf;let _0x5f2133=a1129_0x5f21[_0x5b6b2c];return _0x5f2133;};const a1129_0x504ad5=a1129_0x544f;'use strict';const util=require('util'),logger=require(a1129_0x504ad5(0xb9))(a1129_0x504ad5(0xcb)),Sequence=function(){};Sequence['prototype'][a1129_0x504ad5(0xaf)]=function(_0x3a2cd1){const _0x1a9bc5=a1129_0x504ad5;this[_0x1a9bc5(0xb8)]=this[_0x1a9bc5(0xb8)]?this[_0x1a9bc5(0xb8)]['finally'](_0x3a2cd1):_0x3a2cd1();};const Migration=function(_0x55dbe2){const _0xaeeb00=a1129_0x504ad5;this[_0xaeeb00(0xbf)]=_0x55dbe2,this[_0xaeeb00(0xc7)]=new Sequence();};Migration[a1129_0x504ad5(0xbb)][a1129_0x504ad5(0xc8)]=function(_0x21539b,_0x51c6a4,_0x2d5314){const _0x243420=a1129_0x504ad5,_0x39ae8e=this;this[_0x243420(0xc7)][_0x243420(0xaf)](function(){const _0x132ec5=_0x243420;return _0x39ae8e[_0x132ec5(0xbf)][_0x132ec5(0xc8)](_0x21539b,_0x51c6a4,_0x2d5314)['then'](function(){const _0x58d0b6=_0x132ec5;logger[_0x58d0b6(0xd1)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x51c6a4,_0x21539b);})[_0x132ec5(0xc0)](function(_0x5bfa2c){const _0x538a87=_0x132ec5;logger[_0x538a87(0xd1)](JSON[_0x538a87(0xcf)](_0x5bfa2c));});});},Migration[a1129_0x504ad5(0xbb)][a1129_0x504ad5(0xd2)]=function(_0x571138,_0x1b19d2,_0x5a8657){const _0x238d40=a1129_0x504ad5,_0x2136ce=this;this[_0x238d40(0xc7)][_0x238d40(0xaf)](function(){const _0x3c6eb1=_0x238d40;return _0x2136ce[_0x3c6eb1(0xbf)][_0x3c6eb1(0xd2)](_0x571138,_0x1b19d2,_0x5a8657)['then'](function(){const _0x5bb69c=_0x3c6eb1;logger['info'](_0x5bb69c(0xb1),_0x1b19d2,_0x571138);})['catch'](function(_0x3471b7){const _0x2e3940=_0x3c6eb1;logger[_0x2e3940(0xd1)](JSON[_0x2e3940(0xcf)](_0x3471b7));});});},Migration['prototype']['dropTable']=function(_0x48fcb8){const _0x22b1f5=a1129_0x504ad5,_0x3e2969=this;this[_0x22b1f5(0xc7)][_0x22b1f5(0xaf)](function(){const _0x581769=_0x22b1f5;return _0x3e2969[_0x581769(0xbf)][_0x581769(0xd4)](_0x48fcb8,{'force':!![]})[_0x581769(0xd0)](function(){const _0x317682=_0x581769;logger[_0x317682(0xd1)](_0x317682(0xba),_0x48fcb8);})[_0x581769(0xc0)](function(_0x5792c4){const _0x291735=_0x581769;logger[_0x291735(0xd1)](JSON['stringify'](_0x5792c4));});});},Migration[a1129_0x504ad5(0xbb)][a1129_0x504ad5(0xb6)]=function(_0x19a429,_0x54f260,_0x55c1aa){const _0x5e1212=a1129_0x504ad5,_0x454929=this;this['sequence'][_0x5e1212(0xaf)](function(){const _0x1e329a=_0x5e1212;return _0x454929[_0x1e329a(0xbf)][_0x1e329a(0xb6)](_0x19a429,_0x54f260,{'indexName':_0x55c1aa})[_0x1e329a(0xd0)](function(){const _0x5f4cf8=_0x1e329a;logger['info'](_0x5f4cf8(0xb7),_0x19a429,_0x54f260[_0x5f4cf8(0xc3)](','),_0x55c1aa);})['catch'](function(_0x216f4a){const _0x12c869=_0x1e329a;logger[_0x12c869(0xd1)](JSON['stringify'](_0x216f4a));});});},Migration[a1129_0x504ad5(0xbb)][a1129_0x504ad5(0xc6)]=function(_0x4b385b,_0x5adc2f){const _0x5885e0=a1129_0x504ad5,_0x5c4368=this;this[_0x5885e0(0xc7)]['enqueue'](function(){const _0x26fd87=_0x5885e0;return _0x5c4368[_0x26fd87(0xbf)][_0x26fd87(0xc6)](_0x4b385b,_0x5adc2f)['then'](function(){const _0x178826=_0x26fd87;logger[_0x178826(0xd1)]('removeIndex\x20%s\x20%s',_0x4b385b,_0x5adc2f);})[_0x26fd87(0xc0)](function(_0x28df11){const _0x59d369=_0x26fd87;logger[_0x59d369(0xd1)](JSON['stringify'](_0x28df11));});});},Migration[a1129_0x504ad5(0xbb)]['query']=function(_0x4eecf0){const _0x5e32fa=a1129_0x504ad5,_0x9d3106=this;this[_0x5e32fa(0xc7)][_0x5e32fa(0xaf)](function(){const _0x280123=_0x5e32fa;return _0x9d3106['queryInterface'][_0x280123(0xb2)][_0x280123(0xbe)](_0x4eecf0)[_0x280123(0xd0)](function(){const _0x5eb429=_0x280123;logger[_0x5eb429(0xd1)]('query\x20%s',_0x4eecf0);})[_0x280123(0xc0)](function(_0xec9448){const _0x23e0f0=_0x280123;logger[_0x23e0f0(0xd1)](JSON[_0x23e0f0(0xcf)](_0xec9448));});});},Migration['prototype']['removeColumn']=function(_0x5d0f3c,_0x5794fa){const _0x25460e=a1129_0x504ad5,_0x341d27=this;this[_0x25460e(0xc7)][_0x25460e(0xaf)](function(){const _0x176c11=_0x25460e;return _0x341d27['queryInterface'][_0x176c11(0xb4)](_0x5d0f3c,_0x5794fa)[_0x176c11(0xd0)](function(){const _0x45670b=_0x176c11;logger[_0x45670b(0xd1)](_0x45670b(0xce),_0x5794fa,_0x5d0f3c);})['catch'](function(_0x46382a){const _0x287e4e=_0x176c11;logger[_0x287e4e(0xd1)](util[_0x287e4e(0xc1)](_0x46382a,{'showHidden':![],'depth':null}));});});},Migration[a1129_0x504ad5(0xbb)][a1129_0x504ad5(0xd5)]=function(_0x16ceab,_0x5e1996,_0x572216){const _0x1eedb2=a1129_0x504ad5,_0x20c9f5=this;this['sequence'][_0x1eedb2(0xaf)](function(){const _0x46ab97=_0x1eedb2;return _0x20c9f5['queryInterface'][_0x46ab97(0xd5)](_0x16ceab,_0x5e1996,_0x572216)[_0x46ab97(0xd0)](function(){const _0x29f663=_0x46ab97;logger[_0x29f663(0xd1)](_0x29f663(0xc4),_0x5e1996,_0x572216,_0x16ceab);})[_0x46ab97(0xc0)](function(_0x248f38){const _0x5cb056=_0x46ab97;logger['info'](util[_0x5cb056(0xc1)](_0x248f38,{'showHidden':![],'depth':null}));});});},Migration[a1129_0x504ad5(0xbb)][a1129_0x504ad5(0xc5)]=function(_0x124695){const _0x4e3ace=a1129_0x504ad5;this[_0x4e3ace(0xc7)]['enqueue'](function(){return _0x124695();});},module[a1129_0x504ad5(0xd3)]={'up':function(_0x4398b0,_0x3b0486){return new Promise(function(_0x50a44a){const _0x2a4c46=a1129_0x544f,_0x4a0093=new Migration(_0x4398b0);_0x4a0093[_0x2a4c46(0xc8)](_0x2a4c46(0xb0),_0x2a4c46(0xbc),{'type':_0x3b0486[_0x2a4c46(0xb5)](_0x2a4c46(0xbd),'skebby','connectel','clicksend','plivo',_0x2a4c46(0xc9),_0x2a4c46(0xc2),_0x2a4c46(0xcc),_0x2a4c46(0xca))}),_0x4a0093[_0x2a4c46(0xc8)](_0x2a4c46(0xcd),_0x2a4c46(0xb3),{'type':_0x3b0486['INTEGER'](0x5),'defaultValue':0x1428}),_0x4a0093[_0x2a4c46(0xc5)](_0x50a44a);});},'down':function(){}}; \ No newline at end of file +const a1129_0x703e=['changeColumn','skebby','tail','twilio','csc','stringify','connectel','queryInterface','dropTable','addIndex','query\x20%s','info','type','then','catch','sequelize','ENUM','util','INTEGER','removeIndex\x20%s\x20%s','addIndex\x20%s\x20%s\x20%s','renameColumn','query','removeIndex','sequence','inspect','plivo','clickatell','enqueue','Added\x20column\x20%s\x20to\x20%s','clicksend','intelepeer','sms_accounts','users','final','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','join','prototype','phoneBarListenPort','addColumn','finally','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x1678f0,_0x2cbd91){const _0x703edc=function(_0x15874e){while(--_0x15874e){_0x1678f0['push'](_0x1678f0['shift']());}};_0x703edc(++_0x2cbd91);}(a1129_0x703e,0x116));const a1129_0x1587=function(_0x1678f0,_0x2cbd91){_0x1678f0=_0x1678f0-0x78;let _0x703edc=a1129_0x703e[_0x1678f0];return _0x703edc;};const a1129_0x1e6228=a1129_0x1587;'use strict';const util=require(a1129_0x1e6228(0x7b)),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][a1129_0x1e6228(0x86)]=function(_0x161eef){const _0x127d95=a1129_0x1e6228;this[_0x127d95(0x98)]=this[_0x127d95(0x98)]?this['tail'][_0x127d95(0x94)](_0x161eef):_0x161eef();};const Migration=function(_0x1965f9){const _0x5b5d51=a1129_0x1e6228;this[_0x5b5d51(0x9d)]=_0x1965f9,this['sequence']=new Sequence();};Migration[a1129_0x1e6228(0x91)][a1129_0x1e6228(0x96)]=function(_0x376013,_0x13f81f,_0x494051){const _0x35592a=a1129_0x1e6228,_0xb96896=this;this[_0x35592a(0x82)]['enqueue'](function(){const _0x25fb64=_0x35592a;return _0xb96896['queryInterface'][_0x25fb64(0x96)](_0x376013,_0x13f81f,_0x494051)[_0x25fb64(0xa3)](function(){const _0x37987c=_0x25fb64;logger[_0x37987c(0xa1)](_0x37987c(0x8e),_0x13f81f,_0x376013);})[_0x25fb64(0x78)](function(_0x3d8da4){const _0x3e7d33=_0x25fb64;logger[_0x3e7d33(0xa1)](JSON['stringify'](_0x3d8da4));});});},Migration['prototype'][a1129_0x1e6228(0x93)]=function(_0x492858,_0x4caedb,_0x543de6){const _0x40cb0c=a1129_0x1e6228,_0x26643c=this;this['sequence'][_0x40cb0c(0x86)](function(){const _0x142f2d=_0x40cb0c;return _0x26643c[_0x142f2d(0x9d)][_0x142f2d(0x93)](_0x492858,_0x4caedb,_0x543de6)['then'](function(){const _0x4d9a57=_0x142f2d;logger[_0x4d9a57(0xa1)](_0x4d9a57(0x87),_0x4caedb,_0x492858);})[_0x142f2d(0x78)](function(_0x12a81e){const _0x5e3ec8=_0x142f2d;logger['info'](JSON[_0x5e3ec8(0x9b)](_0x12a81e));});});},Migration[a1129_0x1e6228(0x91)][a1129_0x1e6228(0x9e)]=function(_0x177f25){const _0x141b4b=a1129_0x1e6228,_0x3df684=this;this[_0x141b4b(0x82)][_0x141b4b(0x86)](function(){const _0x37c2f1=_0x141b4b;return _0x3df684[_0x37c2f1(0x9d)][_0x37c2f1(0x9e)](_0x177f25,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x177f25);})['catch'](function(_0x693de7){const _0x30133f=_0x37c2f1;logger[_0x30133f(0xa1)](JSON[_0x30133f(0x9b)](_0x693de7));});});},Migration[a1129_0x1e6228(0x91)][a1129_0x1e6228(0x9f)]=function(_0x4ac084,_0x1c2bea,_0x2568ca){const _0x52c653=a1129_0x1e6228,_0x3e96fe=this;this[_0x52c653(0x82)][_0x52c653(0x86)](function(){const _0x54b88a=_0x52c653;return _0x3e96fe[_0x54b88a(0x9d)]['addIndex'](_0x4ac084,_0x1c2bea,{'indexName':_0x2568ca})['then'](function(){const _0x27709f=_0x54b88a;logger[_0x27709f(0xa1)](_0x27709f(0x7e),_0x4ac084,_0x1c2bea[_0x27709f(0x90)](','),_0x2568ca);})[_0x54b88a(0x78)](function(_0x3bf48d){const _0x1a65aa=_0x54b88a;logger[_0x1a65aa(0xa1)](JSON[_0x1a65aa(0x9b)](_0x3bf48d));});});},Migration['prototype'][a1129_0x1e6228(0x81)]=function(_0x33650e,_0x54f63b){const _0x390ab5=a1129_0x1e6228,_0xcebc79=this;this[_0x390ab5(0x82)]['enqueue'](function(){const _0x4a1209=_0x390ab5;return _0xcebc79[_0x4a1209(0x9d)][_0x4a1209(0x81)](_0x33650e,_0x54f63b)[_0x4a1209(0xa3)](function(){const _0x5bbf43=_0x4a1209;logger[_0x5bbf43(0xa1)](_0x5bbf43(0x7d),_0x33650e,_0x54f63b);})[_0x4a1209(0x78)](function(_0x33fbff){const _0x2b5218=_0x4a1209;logger[_0x2b5218(0xa1)](JSON['stringify'](_0x33fbff));});});},Migration[a1129_0x1e6228(0x91)]['query']=function(_0x208723){const _0xf20623=a1129_0x1e6228,_0x1131f3=this;this['sequence'][_0xf20623(0x86)](function(){const _0x2888b0=_0xf20623;return _0x1131f3[_0x2888b0(0x9d)][_0x2888b0(0x79)][_0x2888b0(0x80)](_0x208723)[_0x2888b0(0xa3)](function(){const _0x507156=_0x2888b0;logger['info'](_0x507156(0xa0),_0x208723);})[_0x2888b0(0x78)](function(_0x492108){const _0x401ffe=_0x2888b0;logger[_0x401ffe(0xa1)](JSON[_0x401ffe(0x9b)](_0x492108));});});},Migration[a1129_0x1e6228(0x91)][a1129_0x1e6228(0x8d)]=function(_0x1dbe0e,_0x1391e6){const _0xe37d8a=a1129_0x1e6228,_0x594ea7=this;this[_0xe37d8a(0x82)][_0xe37d8a(0x86)](function(){const _0x3e725b=_0xe37d8a;return _0x594ea7[_0x3e725b(0x9d)][_0x3e725b(0x8d)](_0x1dbe0e,_0x1391e6)[_0x3e725b(0xa3)](function(){const _0x2e2dcb=_0x3e725b;logger[_0x2e2dcb(0xa1)](_0x2e2dcb(0x95),_0x1391e6,_0x1dbe0e);})[_0x3e725b(0x78)](function(_0x28c62c){const _0x5b4d45=_0x3e725b;logger[_0x5b4d45(0xa1)](util['inspect'](_0x28c62c,{'showHidden':![],'depth':null}));});});},Migration[a1129_0x1e6228(0x91)][a1129_0x1e6228(0x7f)]=function(_0x1ba550,_0x14be90,_0x494357){const _0x42093d=a1129_0x1e6228,_0x3b0bb6=this;this['sequence'][_0x42093d(0x86)](function(){const _0x239b45=_0x42093d;return _0x3b0bb6[_0x239b45(0x9d)]['renameColumn'](_0x1ba550,_0x14be90,_0x494357)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x14be90,_0x494357,_0x1ba550);})[_0x239b45(0x78)](function(_0x13a5ee){const _0x28b8d4=_0x239b45;logger[_0x28b8d4(0xa1)](util[_0x28b8d4(0x83)](_0x13a5ee,{'showHidden':![],'depth':null}));});});},Migration[a1129_0x1e6228(0x91)][a1129_0x1e6228(0x8c)]=function(_0x3a4433){const _0x8c54b0=a1129_0x1e6228;this['sequence'][_0x8c54b0(0x86)](function(){return _0x3a4433();});},module[a1129_0x1e6228(0x8f)]={'up':function(_0x35929b,_0x182854){return new Promise(function(_0x5818ed){const _0x52a858=a1129_0x1587,_0x38c9eb=new Migration(_0x35929b);_0x38c9eb[_0x52a858(0x96)](_0x52a858(0x8a),_0x52a858(0xa2),{'type':_0x182854[_0x52a858(0x7a)](_0x52a858(0x99),_0x52a858(0x97),_0x52a858(0x9c),_0x52a858(0x88),_0x52a858(0x84),_0x52a858(0x85),_0x52a858(0x9a),'infobip',_0x52a858(0x89))}),_0x38c9eb[_0x52a858(0x96)](_0x52a858(0x8b),_0x52a858(0x92),{'type':_0x182854[_0x52a858(0x7c)](0x5),'defaultValue':0x1428}),_0x38c9eb['final'](_0x5818ed);});},'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 b4594b6..17d80cc 100644 --- a/server/migrations/2.2.1.js +++ b/server/migrations/2.2.1.js @@ -1 +1 @@ -const a1130_0x118f=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','exports','addColumn','removeIndex','query\x20%s','enqueue','queryInterface','info','stringify','sequence','Removed\x20column\x20%s\x20from\x20%s','../config/logger','then','inspect','prototype','dropTable','addIndex\x20%s\x20%s\x20%s','final','addIndex','migration','query','removeColumn','join','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','renameColumn','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','changeColumn','sequelize'];(function(_0x5bc33d,_0x3e32d3){const _0x118f20=function(_0x5c4367){while(--_0x5c4367){_0x5bc33d['push'](_0x5bc33d['shift']());}};_0x118f20(++_0x3e32d3);}(a1130_0x118f,0x72));const a1130_0x5c43=function(_0x5bc33d,_0x3e32d3){_0x5bc33d=_0x5bc33d-0x165;let _0x118f20=a1130_0x118f[_0x5bc33d];return _0x118f20;};const a1130_0x4f567d=a1130_0x5c43;'use strict';const util=require('util'),logger=require(a1130_0x4f567d(0x17f))(a1130_0x4f567d(0x167)),Sequence=function(){};Sequence['prototype'][a1130_0x4f567d(0x179)]=function(_0x21a645){const _0x5a610e=a1130_0x4f567d;this[_0x5a610e(0x174)]=this[_0x5a610e(0x174)]?this['tail'][_0x5a610e(0x170)](_0x21a645):_0x21a645();};const Migration=function(_0x45c028){this['queryInterface']=_0x45c028,this['sequence']=new Sequence();};Migration[a1130_0x4f567d(0x182)][a1130_0x4f567d(0x171)]=function(_0xf0f96f,_0x58f0fd,_0x5ab8c9){const _0x430e64=this;this['sequence']['enqueue'](function(){const _0x1c73d3=a1130_0x5c43;return _0x430e64[_0x1c73d3(0x17a)][_0x1c73d3(0x171)](_0xf0f96f,_0x58f0fd,_0x5ab8c9)['then'](function(){const _0x332758=_0x1c73d3;logger[_0x332758(0x17b)](_0x332758(0x16f),_0x58f0fd,_0xf0f96f);})['catch'](function(_0x16d2dd){const _0x31439a=_0x1c73d3;logger['info'](JSON[_0x31439a(0x17c)](_0x16d2dd));});});},Migration[a1130_0x4f567d(0x182)][a1130_0x4f567d(0x176)]=function(_0x38bbd7,_0x4de7b2,_0x4bdee0){const _0x24c49d=a1130_0x4f567d,_0x2f0e2d=this;this['sequence'][_0x24c49d(0x179)](function(){const _0x462730=_0x24c49d;return _0x2f0e2d[_0x462730(0x17a)][_0x462730(0x176)](_0x38bbd7,_0x4de7b2,_0x4bdee0)[_0x462730(0x180)](function(){const _0x4bd8af=_0x462730;logger[_0x4bd8af(0x17b)](_0x4bd8af(0x16b),_0x4de7b2,_0x38bbd7);})['catch'](function(_0x160fc3){const _0x2f2fb8=_0x462730;logger[_0x2f2fb8(0x17b)](JSON['stringify'](_0x160fc3));});});},Migration[a1130_0x4f567d(0x182)]['dropTable']=function(_0x4adb27){const _0x358fbf=a1130_0x4f567d,_0x5c5c0e=this;this[_0x358fbf(0x17d)][_0x358fbf(0x179)](function(){const _0x429ce9=_0x358fbf;return _0x5c5c0e['queryInterface'][_0x429ce9(0x183)](_0x4adb27,{'force':!![]})['then'](function(){const _0xa38be8=_0x429ce9;logger[_0xa38be8(0x17b)](_0xa38be8(0x16c),_0x4adb27);})['catch'](function(_0x3765e7){const _0x49632b=_0x429ce9;logger[_0x49632b(0x17b)](JSON['stringify'](_0x3765e7));});});},Migration[a1130_0x4f567d(0x182)][a1130_0x4f567d(0x166)]=function(_0x1f31e9,_0x4e8813,_0x41b1b1){const _0x11e8f4=a1130_0x4f567d,_0x27fe0b=this;this[_0x11e8f4(0x17d)]['enqueue'](function(){const _0x5c1243=_0x11e8f4;return _0x27fe0b['queryInterface']['addIndex'](_0x1f31e9,_0x4e8813,{'indexName':_0x41b1b1})[_0x5c1243(0x180)](function(){const _0x5720ee=_0x5c1243;logger['info'](_0x5720ee(0x184),_0x1f31e9,_0x4e8813[_0x5720ee(0x16a)](','),_0x41b1b1);})[_0x5c1243(0x16e)](function(_0x1b310a){const _0x4b1daa=_0x5c1243;logger[_0x4b1daa(0x17b)](JSON[_0x4b1daa(0x17c)](_0x1b310a));});});},Migration[a1130_0x4f567d(0x182)]['removeIndex']=function(_0x548180,_0x4f5c1d){const _0x8e9d40=a1130_0x4f567d,_0x2bb24e=this;this[_0x8e9d40(0x17d)][_0x8e9d40(0x179)](function(){const _0x205ef8=_0x8e9d40;return _0x2bb24e[_0x205ef8(0x17a)][_0x205ef8(0x177)](_0x548180,_0x4f5c1d)[_0x205ef8(0x180)](function(){const _0x5c4e68=_0x205ef8;logger[_0x5c4e68(0x17b)]('removeIndex\x20%s\x20%s',_0x548180,_0x4f5c1d);})[_0x205ef8(0x16e)](function(_0x54514f){logger['info'](JSON['stringify'](_0x54514f));});});},Migration['prototype'][a1130_0x4f567d(0x168)]=function(_0x5714cb){const _0x48a806=a1130_0x4f567d,_0x259c41=this;this[_0x48a806(0x17d)][_0x48a806(0x179)](function(){const _0xc4cb3b=_0x48a806;return _0x259c41[_0xc4cb3b(0x17a)][_0xc4cb3b(0x172)]['query'](_0x5714cb)[_0xc4cb3b(0x180)](function(){const _0x4d3c3e=_0xc4cb3b;logger[_0x4d3c3e(0x17b)](_0x4d3c3e(0x178),_0x5714cb);})['catch'](function(_0x3e0644){const _0x153949=_0xc4cb3b;logger[_0x153949(0x17b)](JSON[_0x153949(0x17c)](_0x3e0644));});});},Migration['prototype'][a1130_0x4f567d(0x169)]=function(_0x4116f6,_0x39f906){const _0x4a7a73=a1130_0x4f567d,_0x15d120=this;this[_0x4a7a73(0x17d)][_0x4a7a73(0x179)](function(){const _0x4674bd=_0x4a7a73;return _0x15d120['queryInterface'][_0x4674bd(0x169)](_0x4116f6,_0x39f906)[_0x4674bd(0x180)](function(){const _0x26131b=_0x4674bd;logger['info'](_0x26131b(0x17e),_0x39f906,_0x4116f6);})['catch'](function(_0xfdc6bc){const _0x5f5387=_0x4674bd;logger[_0x5f5387(0x17b)](util['inspect'](_0xfdc6bc,{'showHidden':![],'depth':null}));});});},Migration[a1130_0x4f567d(0x182)][a1130_0x4f567d(0x16d)]=function(_0x53bcec,_0x40c70c,_0x4dfc63){const _0x3369da=a1130_0x4f567d,_0x490c0e=this;this['sequence'][_0x3369da(0x179)](function(){const _0x2c3ca8=_0x3369da;return _0x490c0e[_0x2c3ca8(0x17a)][_0x2c3ca8(0x16d)](_0x53bcec,_0x40c70c,_0x4dfc63)[_0x2c3ca8(0x180)](function(){const _0x5d11b5=_0x2c3ca8;logger[_0x5d11b5(0x17b)](_0x5d11b5(0x173),_0x40c70c,_0x4dfc63,_0x53bcec);})[_0x2c3ca8(0x16e)](function(_0xb22cc0){const _0x59bb6f=_0x2c3ca8;logger[_0x59bb6f(0x17b)](util[_0x59bb6f(0x181)](_0xb22cc0,{'showHidden':![],'depth':null}));});});},Migration[a1130_0x4f567d(0x182)][a1130_0x4f567d(0x165)]=function(_0x394523){const _0x593932=a1130_0x4f567d;this[_0x593932(0x17d)][_0x593932(0x179)](function(){return _0x394523();});},module[a1130_0x4f567d(0x175)]={'up':function(_0x239955){return new Promise(function(_0x3ec297){const _0x45f316=new Migration(_0x239955);_0x45f316['final'](_0x3ec297);});},'down':function(){}}; \ No newline at end of file +const a1130_0x33c4=['inspect','join','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex','final','info','enqueue','query','migration','removeColumn','then','sequence','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','finally','prototype','query\x20%s','stringify','catch','changeColumn','queryInterface','exports','renameColumn'];(function(_0xf8bcb8,_0x45f253){const _0x33c426=function(_0x4f5e82){while(--_0x4f5e82){_0xf8bcb8['push'](_0xf8bcb8['shift']());}};_0x33c426(++_0x45f253);}(a1130_0x33c4,0x19a));const a1130_0x4f5e=function(_0xf8bcb8,_0x45f253){_0xf8bcb8=_0xf8bcb8-0x1cb;let _0x33c426=a1130_0x33c4[_0xf8bcb8];return _0x33c426;};const a1130_0x18f5a6=a1130_0x4f5e;'use strict';const util=require('util'),logger=require('../config/logger')(a1130_0x18f5a6(0x1e3)),Sequence=function(){};Sequence[a1130_0x18f5a6(0x1d2)][a1130_0x18f5a6(0x1e1)]=function(_0x22a7f2){const _0x3b505e=a1130_0x18f5a6;this['tail']=this[_0x3b505e(0x1ce)]?this[_0x3b505e(0x1ce)][_0x3b505e(0x1d1)](_0x22a7f2):_0x22a7f2();};const Migration=function(_0x515fbd){const _0x3f9367=a1130_0x18f5a6;this[_0x3f9367(0x1d7)]=_0x515fbd,this['sequence']=new Sequence();};Migration[a1130_0x18f5a6(0x1d2)][a1130_0x18f5a6(0x1d6)]=function(_0x5120ed,_0x1925c9,_0x1161b2){const _0x560407=a1130_0x18f5a6,_0xfae58f=this;this[_0x560407(0x1cd)]['enqueue'](function(){const _0x2efb88=_0x560407;return _0xfae58f[_0x2efb88(0x1d7)]['changeColumn'](_0x5120ed,_0x1925c9,_0x1161b2)['then'](function(){const _0x2f686d=_0x2efb88;logger[_0x2f686d(0x1e0)](_0x2f686d(0x1dd),_0x1925c9,_0x5120ed);})[_0x2efb88(0x1d5)](function(_0x1f027d){const _0x27ac72=_0x2efb88;logger[_0x27ac72(0x1e0)](JSON[_0x27ac72(0x1d4)](_0x1f027d));});});},Migration[a1130_0x18f5a6(0x1d2)]['addColumn']=function(_0xac6bce,_0x2b65bf,_0x23f096){const _0x177417=this;this['sequence']['enqueue'](function(){const _0x22045e=a1130_0x4f5e;return _0x177417['queryInterface']['addColumn'](_0xac6bce,_0x2b65bf,_0x23f096)[_0x22045e(0x1cc)](function(){const _0x5cedd6=_0x22045e;logger[_0x5cedd6(0x1e0)]('Added\x20column\x20%s\x20to\x20%s',_0x2b65bf,_0xac6bce);})[_0x22045e(0x1d5)](function(_0x5a1c64){const _0x92f104=_0x22045e;logger['info'](JSON[_0x92f104(0x1d4)](_0x5a1c64));});});},Migration[a1130_0x18f5a6(0x1d2)]['dropTable']=function(_0x26e47f){const _0x43fbd4=a1130_0x18f5a6,_0x1bb1cd=this;this[_0x43fbd4(0x1cd)][_0x43fbd4(0x1e1)](function(){const _0x7714ae=_0x43fbd4;return _0x1bb1cd[_0x7714ae(0x1d7)][_0x7714ae(0x1d0)](_0x26e47f,{'force':!![]})[_0x7714ae(0x1cc)](function(){logger['info']('table\x20dropped\x20%s',_0x26e47f);})[_0x7714ae(0x1d5)](function(_0x489b75){logger['info'](JSON['stringify'](_0x489b75));});});},Migration[a1130_0x18f5a6(0x1d2)]['addIndex']=function(_0x1520a0,_0x53c0dd,_0x352c71){const _0x28e412=a1130_0x18f5a6,_0x5ad5e8=this;this[_0x28e412(0x1cd)]['enqueue'](function(){const _0x9a3e25=_0x28e412;return _0x5ad5e8[_0x9a3e25(0x1d7)][_0x9a3e25(0x1dc)](_0x1520a0,_0x53c0dd,{'indexName':_0x352c71})[_0x9a3e25(0x1cc)](function(){const _0x54130f=_0x9a3e25;logger[_0x54130f(0x1e0)]('addIndex\x20%s\x20%s\x20%s',_0x1520a0,_0x53c0dd[_0x54130f(0x1db)](','),_0x352c71);})[_0x9a3e25(0x1d5)](function(_0x2dc26f){const _0x5d45de=_0x9a3e25;logger[_0x5d45de(0x1e0)](JSON[_0x5d45de(0x1d4)](_0x2dc26f));});});},Migration[a1130_0x18f5a6(0x1d2)][a1130_0x18f5a6(0x1de)]=function(_0x239a22,_0x2f2110){const _0xc56e19=a1130_0x18f5a6,_0x240896=this;this[_0xc56e19(0x1cd)][_0xc56e19(0x1e1)](function(){const _0xfa61f4=_0xc56e19;return _0x240896['queryInterface']['removeIndex'](_0x239a22,_0x2f2110)[_0xfa61f4(0x1cc)](function(){const _0x1641b3=_0xfa61f4;logger[_0x1641b3(0x1e0)]('removeIndex\x20%s\x20%s',_0x239a22,_0x2f2110);})[_0xfa61f4(0x1d5)](function(_0x4855ec){const _0x378d1c=_0xfa61f4;logger[_0x378d1c(0x1e0)](JSON[_0x378d1c(0x1d4)](_0x4855ec));});});},Migration[a1130_0x18f5a6(0x1d2)][a1130_0x18f5a6(0x1e2)]=function(_0x39c1a3){const _0x405616=a1130_0x18f5a6,_0x1f55dd=this;this[_0x405616(0x1cd)][_0x405616(0x1e1)](function(){return _0x1f55dd['queryInterface']['sequelize']['query'](_0x39c1a3)['then'](function(){const _0x2be133=a1130_0x4f5e;logger[_0x2be133(0x1e0)](_0x2be133(0x1d3),_0x39c1a3);})['catch'](function(_0x5890fb){const _0x5dc14d=a1130_0x4f5e;logger[_0x5dc14d(0x1e0)](JSON[_0x5dc14d(0x1d4)](_0x5890fb));});});},Migration['prototype'][a1130_0x18f5a6(0x1cb)]=function(_0x578f31,_0xeb72f4){const _0x359e90=a1130_0x18f5a6,_0x4c32c6=this;this['sequence'][_0x359e90(0x1e1)](function(){const _0x1d356c=_0x359e90;return _0x4c32c6[_0x1d356c(0x1d7)][_0x1d356c(0x1cb)](_0x578f31,_0xeb72f4)[_0x1d356c(0x1cc)](function(){const _0x15fa42=_0x1d356c;logger[_0x15fa42(0x1e0)]('Removed\x20column\x20%s\x20from\x20%s',_0xeb72f4,_0x578f31);})[_0x1d356c(0x1d5)](function(_0x4d51b7){const _0xf10424=_0x1d356c;logger[_0xf10424(0x1e0)](util[_0xf10424(0x1da)](_0x4d51b7,{'showHidden':![],'depth':null}));});});},Migration[a1130_0x18f5a6(0x1d2)][a1130_0x18f5a6(0x1d9)]=function(_0xd69c75,_0x1144eb,_0x1d846f){const _0x4bca28=a1130_0x18f5a6,_0x40a01c=this;this['sequence'][_0x4bca28(0x1e1)](function(){const _0x6d84f1=_0x4bca28;return _0x40a01c[_0x6d84f1(0x1d7)][_0x6d84f1(0x1d9)](_0xd69c75,_0x1144eb,_0x1d846f)['then'](function(){const _0x17fca2=_0x6d84f1;logger[_0x17fca2(0x1e0)](_0x17fca2(0x1cf),_0x1144eb,_0x1d846f,_0xd69c75);})['catch'](function(_0x28dbb8){const _0x20ad65=_0x6d84f1;logger[_0x20ad65(0x1e0)](util[_0x20ad65(0x1da)](_0x28dbb8,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1130_0x18f5a6(0x1df)]=function(_0x5e8091){const _0x20c149=a1130_0x18f5a6;this[_0x20c149(0x1cd)][_0x20c149(0x1e1)](function(){return _0x5e8091();});},module[a1130_0x18f5a6(0x1d8)]={'up':function(_0x5022d5){return new Promise(function(_0x1dad81){const _0x3f5acc=a1130_0x4f5e,_0x7ea63c=new Migration(_0x5022d5);_0x7ea63c[_0x3f5acc(0x1df)](_0x1dad81);});},'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 ff17834..35deda2 100644 --- a/server/migrations/2.2.2.js +++ b/server/migrations/2.2.2.js @@ -1 +1 @@ -const a1131_0x1269=['catch','addIndex','final','exports','prototype','removeColumn','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','finally','join','then','addIndex\x20%s\x20%s\x20%s','addColumn','renameColumn','queryInterface','changeColumn','sequence','enqueue','info','removeIndex','Added\x20column\x20%s\x20to\x20%s','sequelize','query','Removed\x20column\x20%s\x20from\x20%s','stringify','table\x20dropped\x20%s','inspect','util','../config/logger'];(function(_0x29559e,_0x1bf603){const _0x126915=function(_0x199b58){while(--_0x199b58){_0x29559e['push'](_0x29559e['shift']());}};_0x126915(++_0x1bf603);}(a1131_0x1269,0x15d));const a1131_0x199b=function(_0x29559e,_0x1bf603){_0x29559e=_0x29559e-0x133;let _0x126915=a1131_0x1269[_0x29559e];return _0x126915;};const a1131_0x15a98c=a1131_0x199b;'use strict';const util=require(a1131_0x15a98c(0x13c)),logger=require(a1131_0x15a98c(0x13d))('migration'),Sequence=function(){};Sequence[a1131_0x15a98c(0x142)][a1131_0x15a98c(0x150)]=function(_0xeb11b6){const _0x35f37e=a1131_0x15a98c;this['tail']=this['tail']?this['tail'][_0x35f37e(0x147)](_0xeb11b6):_0xeb11b6();};const Migration=function(_0xae0ce8){const _0x20a6b7=a1131_0x15a98c;this[_0x20a6b7(0x14d)]=_0xae0ce8,this[_0x20a6b7(0x14f)]=new Sequence();};Migration[a1131_0x15a98c(0x142)]['changeColumn']=function(_0x4c87a5,_0x434370,_0x22da0c){const _0x2b27eb=a1131_0x15a98c,_0x2d8628=this;this['sequence'][_0x2b27eb(0x150)](function(){const _0x5f2fe9=_0x2b27eb;return _0x2d8628['queryInterface'][_0x5f2fe9(0x14e)](_0x4c87a5,_0x434370,_0x22da0c)['then'](function(){const _0x2192e4=_0x5f2fe9;logger[_0x2192e4(0x133)](_0x2192e4(0x145),_0x434370,_0x4c87a5);})[_0x5f2fe9(0x13e)](function(_0x4b8afb){const _0x41e1ef=_0x5f2fe9;logger['info'](JSON[_0x41e1ef(0x139)](_0x4b8afb));});});},Migration['prototype'][a1131_0x15a98c(0x14b)]=function(_0x466a43,_0x69fb2b,_0x27d052){const _0x395cc3=a1131_0x15a98c,_0x1b7f48=this;this[_0x395cc3(0x14f)]['enqueue'](function(){const _0x1945ed=_0x395cc3;return _0x1b7f48[_0x1945ed(0x14d)][_0x1945ed(0x14b)](_0x466a43,_0x69fb2b,_0x27d052)[_0x1945ed(0x149)](function(){const _0x35ca64=_0x1945ed;logger[_0x35ca64(0x133)](_0x35ca64(0x135),_0x69fb2b,_0x466a43);})[_0x1945ed(0x13e)](function(_0x3ac96b){const _0xd5cfc6=_0x1945ed;logger['info'](JSON[_0xd5cfc6(0x139)](_0x3ac96b));});});},Migration[a1131_0x15a98c(0x142)]['dropTable']=function(_0x2e9d0e){const _0x47f5ce=a1131_0x15a98c,_0x2c6758=this;this['sequence'][_0x47f5ce(0x150)](function(){const _0x1bb38c=_0x47f5ce;return _0x2c6758[_0x1bb38c(0x14d)][_0x1bb38c(0x144)](_0x2e9d0e,{'force':!![]})[_0x1bb38c(0x149)](function(){const _0x28114e=_0x1bb38c;logger[_0x28114e(0x133)](_0x28114e(0x13a),_0x2e9d0e);})[_0x1bb38c(0x13e)](function(_0x2a8407){const _0x31263d=_0x1bb38c;logger[_0x31263d(0x133)](JSON[_0x31263d(0x139)](_0x2a8407));});});},Migration[a1131_0x15a98c(0x142)][a1131_0x15a98c(0x13f)]=function(_0x5d7574,_0x201250,_0x3e505b){const _0x374b5e=a1131_0x15a98c,_0x1e4f5b=this;this[_0x374b5e(0x14f)][_0x374b5e(0x150)](function(){const _0x2b5e13=_0x374b5e;return _0x1e4f5b[_0x2b5e13(0x14d)][_0x2b5e13(0x13f)](_0x5d7574,_0x201250,{'indexName':_0x3e505b})[_0x2b5e13(0x149)](function(){const _0x3e4953=_0x2b5e13;logger[_0x3e4953(0x133)](_0x3e4953(0x14a),_0x5d7574,_0x201250[_0x3e4953(0x148)](','),_0x3e505b);})[_0x2b5e13(0x13e)](function(_0x4d10db){const _0x4f0879=_0x2b5e13;logger[_0x4f0879(0x133)](JSON['stringify'](_0x4d10db));});});},Migration[a1131_0x15a98c(0x142)][a1131_0x15a98c(0x134)]=function(_0x59e26b,_0x58752a){const _0x11e249=a1131_0x15a98c,_0x1fbea=this;this[_0x11e249(0x14f)]['enqueue'](function(){const _0x4db134=_0x11e249;return _0x1fbea['queryInterface'][_0x4db134(0x134)](_0x59e26b,_0x58752a)[_0x4db134(0x149)](function(){logger['info']('removeIndex\x20%s\x20%s',_0x59e26b,_0x58752a);})[_0x4db134(0x13e)](function(_0x2a0bcf){const _0x4dd42c=_0x4db134;logger[_0x4dd42c(0x133)](JSON[_0x4dd42c(0x139)](_0x2a0bcf));});});},Migration['prototype'][a1131_0x15a98c(0x137)]=function(_0x361b2a){const _0x44d4c5=a1131_0x15a98c,_0xa404a8=this;this[_0x44d4c5(0x14f)][_0x44d4c5(0x150)](function(){const _0x263075=_0x44d4c5;return _0xa404a8[_0x263075(0x14d)][_0x263075(0x136)][_0x263075(0x137)](_0x361b2a)[_0x263075(0x149)](function(){const _0x2d20d5=_0x263075;logger[_0x2d20d5(0x133)]('query\x20%s',_0x361b2a);})[_0x263075(0x13e)](function(_0x4a6498){logger['info'](JSON['stringify'](_0x4a6498));});});},Migration[a1131_0x15a98c(0x142)][a1131_0x15a98c(0x143)]=function(_0x2633dd,_0xb738ec){const _0x9e93fe=a1131_0x15a98c,_0x4cab08=this;this[_0x9e93fe(0x14f)][_0x9e93fe(0x150)](function(){const _0x17dbf7=_0x9e93fe;return _0x4cab08[_0x17dbf7(0x14d)][_0x17dbf7(0x143)](_0x2633dd,_0xb738ec)[_0x17dbf7(0x149)](function(){const _0x417429=_0x17dbf7;logger[_0x417429(0x133)](_0x417429(0x138),_0xb738ec,_0x2633dd);})[_0x17dbf7(0x13e)](function(_0x31fd8e){const _0x2fd209=_0x17dbf7;logger[_0x2fd209(0x133)](util[_0x2fd209(0x13b)](_0x31fd8e,{'showHidden':![],'depth':null}));});});},Migration[a1131_0x15a98c(0x142)][a1131_0x15a98c(0x14c)]=function(_0x2e4974,_0x38dff8,_0x808354){const _0x1b9d87=a1131_0x15a98c,_0x57426e=this;this[_0x1b9d87(0x14f)][_0x1b9d87(0x150)](function(){const _0x3861ab=_0x1b9d87;return _0x57426e[_0x3861ab(0x14d)]['renameColumn'](_0x2e4974,_0x38dff8,_0x808354)[_0x3861ab(0x149)](function(){const _0x589661=_0x3861ab;logger[_0x589661(0x133)](_0x589661(0x146),_0x38dff8,_0x808354,_0x2e4974);})[_0x3861ab(0x13e)](function(_0x24758d){const _0x30b315=_0x3861ab;logger['info'](util[_0x30b315(0x13b)](_0x24758d,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1131_0x15a98c(0x140)]=function(_0x3431af){const _0x2f38ab=a1131_0x15a98c;this[_0x2f38ab(0x14f)][_0x2f38ab(0x150)](function(){return _0x3431af();});},module[a1131_0x15a98c(0x141)]={'up':function(_0x304f88){return new Promise(function(_0xa1ef98){const _0xdbe096=a1131_0x199b,_0x40f15b=new Migration(_0x304f88);_0x40f15b[_0xdbe096(0x140)](_0xa1ef98);});},'down':function(){}}; \ No newline at end of file +const a1131_0x1acf=['dropTable','query\x20%s','../config/logger','stringify','prototype','util','enqueue','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','finally','Added\x20column\x20%s\x20to\x20%s','catch','renameColumn','query','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','addIndex','then','queryInterface','tail','sequence','exports','addIndex\x20%s\x20%s\x20%s','info','migration','changeColumn','inspect','final'];(function(_0x33e60e,_0x4c12cb){const _0x1acf8c=function(_0x13f784){while(--_0x13f784){_0x33e60e['push'](_0x33e60e['shift']());}};_0x1acf8c(++_0x4c12cb);}(a1131_0x1acf,0x1e8));const a1131_0x13f7=function(_0x33e60e,_0x4c12cb){_0x33e60e=_0x33e60e-0x7a;let _0x1acf8c=a1131_0x1acf[_0x33e60e];return _0x1acf8c;};const a1131_0x5cfb34=a1131_0x13f7;'use strict';const util=require(a1131_0x5cfb34(0x84)),logger=require(a1131_0x5cfb34(0x81))(a1131_0x5cfb34(0x7b)),Sequence=function(){};Sequence[a1131_0x5cfb34(0x83)][a1131_0x5cfb34(0x85)]=function(_0x517671){const _0x172f73=a1131_0x5cfb34;this['tail']=this[_0x172f73(0x93)]?this[_0x172f73(0x93)][_0x172f73(0x89)](_0x517671):_0x517671();};const Migration=function(_0xa7bf76){const _0x4e4ef7=a1131_0x5cfb34;this[_0x4e4ef7(0x92)]=_0xa7bf76,this['sequence']=new Sequence();};Migration[a1131_0x5cfb34(0x83)][a1131_0x5cfb34(0x7c)]=function(_0x52de4d,_0x2ba159,_0x436440){const _0x2b34dd=a1131_0x5cfb34,_0xbd61ee=this;this[_0x2b34dd(0x94)][_0x2b34dd(0x85)](function(){const _0x4a8f4b=_0x2b34dd;return _0xbd61ee['queryInterface'][_0x4a8f4b(0x7c)](_0x52de4d,_0x2ba159,_0x436440)[_0x4a8f4b(0x91)](function(){const _0x2a9deb=_0x4a8f4b;logger['info'](_0x2a9deb(0x87),_0x2ba159,_0x52de4d);})['catch'](function(_0x346386){const _0x50559f=_0x4a8f4b;logger['info'](JSON[_0x50559f(0x82)](_0x346386));});});},Migration[a1131_0x5cfb34(0x83)][a1131_0x5cfb34(0x86)]=function(_0x403ddc,_0x227504,_0x25ea8d){const _0x3b97f4=this;this['sequence']['enqueue'](function(){const _0x1912fb=a1131_0x13f7;return _0x3b97f4[_0x1912fb(0x92)][_0x1912fb(0x86)](_0x403ddc,_0x227504,_0x25ea8d)[_0x1912fb(0x91)](function(){const _0x2acea2=_0x1912fb;logger[_0x2acea2(0x7a)](_0x2acea2(0x8a),_0x227504,_0x403ddc);})['catch'](function(_0x1ebd5e){const _0x38e051=_0x1912fb;logger[_0x38e051(0x7a)](JSON['stringify'](_0x1ebd5e));});});},Migration['prototype']['dropTable']=function(_0x5c4700){const _0x1cc052=a1131_0x5cfb34,_0x39a4dd=this;this[_0x1cc052(0x94)]['enqueue'](function(){const _0x3f00c4=_0x1cc052;return _0x39a4dd['queryInterface'][_0x3f00c4(0x7f)](_0x5c4700,{'force':!![]})[_0x3f00c4(0x91)](function(){const _0x58d28f=_0x3f00c4;logger[_0x58d28f(0x7a)](_0x58d28f(0x8e),_0x5c4700);})[_0x3f00c4(0x8b)](function(_0x1a7aba){const _0x32ef95=_0x3f00c4;logger[_0x32ef95(0x7a)](JSON[_0x32ef95(0x82)](_0x1a7aba));});});},Migration[a1131_0x5cfb34(0x83)][a1131_0x5cfb34(0x90)]=function(_0xdc3b35,_0x26c7d0,_0x151425){const _0x55320a=a1131_0x5cfb34,_0x2de5a9=this;this[_0x55320a(0x94)][_0x55320a(0x85)](function(){const _0x463803=_0x55320a;return _0x2de5a9['queryInterface'][_0x463803(0x90)](_0xdc3b35,_0x26c7d0,{'indexName':_0x151425})[_0x463803(0x91)](function(){const _0x191226=_0x463803;logger[_0x191226(0x7a)](_0x191226(0x96),_0xdc3b35,_0x26c7d0['join'](','),_0x151425);})[_0x463803(0x8b)](function(_0x1cad67){const _0x2741da=_0x463803;logger['info'](JSON[_0x2741da(0x82)](_0x1cad67));});});},Migration[a1131_0x5cfb34(0x83)]['removeIndex']=function(_0x143dfc,_0x3b1ebb){const _0x25cf86=a1131_0x5cfb34,_0x4de4c8=this;this['sequence'][_0x25cf86(0x85)](function(){const _0x3a636f=_0x25cf86;return _0x4de4c8[_0x3a636f(0x92)]['removeIndex'](_0x143dfc,_0x3b1ebb)[_0x3a636f(0x91)](function(){const _0x335158=_0x3a636f;logger[_0x335158(0x7a)](_0x335158(0x8f),_0x143dfc,_0x3b1ebb);})[_0x3a636f(0x8b)](function(_0x17e236){const _0x21b22b=_0x3a636f;logger[_0x21b22b(0x7a)](JSON[_0x21b22b(0x82)](_0x17e236));});});},Migration['prototype'][a1131_0x5cfb34(0x8d)]=function(_0x1a8ecc){const _0x2ab99a=a1131_0x5cfb34,_0x604a11=this;this['sequence'][_0x2ab99a(0x85)](function(){const _0x2c8dea=_0x2ab99a;return _0x604a11[_0x2c8dea(0x92)]['sequelize'][_0x2c8dea(0x8d)](_0x1a8ecc)[_0x2c8dea(0x91)](function(){const _0x2d1169=_0x2c8dea;logger[_0x2d1169(0x7a)](_0x2d1169(0x80),_0x1a8ecc);})[_0x2c8dea(0x8b)](function(_0x5490e1){const _0x2470d4=_0x2c8dea;logger[_0x2470d4(0x7a)](JSON[_0x2470d4(0x82)](_0x5490e1));});});},Migration[a1131_0x5cfb34(0x83)]['removeColumn']=function(_0x14ab72,_0xeddf5){const _0x14ed96=a1131_0x5cfb34,_0x4ad8e0=this;this['sequence'][_0x14ed96(0x85)](function(){const _0x16b00d=_0x14ed96;return _0x4ad8e0[_0x16b00d(0x92)]['removeColumn'](_0x14ab72,_0xeddf5)[_0x16b00d(0x91)](function(){const _0x5835f9=_0x16b00d;logger[_0x5835f9(0x7a)](_0x5835f9(0x88),_0xeddf5,_0x14ab72);})[_0x16b00d(0x8b)](function(_0x360b14){const _0x2f29ff=_0x16b00d;logger[_0x2f29ff(0x7a)](util[_0x2f29ff(0x7d)](_0x360b14,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1131_0x5cfb34(0x8c)]=function(_0x2637e7,_0x13cb08,_0x4f458e){const _0x34f650=a1131_0x5cfb34,_0xbede94=this;this['sequence'][_0x34f650(0x85)](function(){const _0x5702d3=_0x34f650;return _0xbede94['queryInterface'][_0x5702d3(0x8c)](_0x2637e7,_0x13cb08,_0x4f458e)[_0x5702d3(0x91)](function(){const _0x37d7b3=_0x5702d3;logger[_0x37d7b3(0x7a)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x13cb08,_0x4f458e,_0x2637e7);})['catch'](function(_0xaba7b6){const _0x5d8ed1=_0x5702d3;logger[_0x5d8ed1(0x7a)](util['inspect'](_0xaba7b6,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1131_0x5cfb34(0x7e)]=function(_0x48e0b5){const _0xddf7f=a1131_0x5cfb34;this[_0xddf7f(0x94)][_0xddf7f(0x85)](function(){return _0x48e0b5();});},module[a1131_0x5cfb34(0x95)]={'up':function(_0x27b142){return new Promise(function(_0x1e9cc6){const _0x45e4c8=a1131_0x13f7,_0x51db2c=new Migration(_0x27b142);_0x51db2c[_0x45e4c8(0x7e)](_0x1e9cc6);});},'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 0380d20..7f58dea 100644 --- a/server/migrations/2.2.3.js +++ b/server/migrations/2.2.3.js @@ -1 +1 @@ -const a1132_0x4782=['query','removeIndex','renameColumn','addIndex','queryInterface','mail_messages','migration','table\x20dropped\x20%s','catch','STRING','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','changeColumn','info','enqueue','removeColumn','final','sequelize','stringify','messageId','addColumn','sequence','tail','then','join','prototype','util','inspect','query\x20%s','inReplyTo','exports','Added\x20column\x20%s\x20to\x20%s'];(function(_0x103c1d,_0x5b0100){const _0x4782c9=function(_0x556023){while(--_0x556023){_0x103c1d['push'](_0x103c1d['shift']());}};_0x4782c9(++_0x5b0100);}(a1132_0x4782,0x189));const a1132_0x5560=function(_0x103c1d,_0x5b0100){_0x103c1d=_0x103c1d-0x178;let _0x4782c9=a1132_0x4782[_0x103c1d];return _0x4782c9;};const a1132_0x41b011=a1132_0x5560;'use strict';const util=require(a1132_0x41b011(0x189)),logger=require('../config/logger')(a1132_0x41b011(0x195)),Sequence=function(){};Sequence['prototype'][a1132_0x41b011(0x17d)]=function(_0x4e89e6){const _0x352bd6=a1132_0x41b011;this[_0x352bd6(0x185)]=this[_0x352bd6(0x185)]?this[_0x352bd6(0x185)]['finally'](_0x4e89e6):_0x4e89e6();};const Migration=function(_0x497d6f){const _0x3b2fcc=a1132_0x41b011;this[_0x3b2fcc(0x193)]=_0x497d6f,this[_0x3b2fcc(0x184)]=new Sequence();};Migration[a1132_0x41b011(0x188)][a1132_0x41b011(0x17b)]=function(_0x309983,_0x353bae,_0x3bb6a9){const _0x431ca1=this;this['sequence']['enqueue'](function(){const _0x59ad90=a1132_0x5560;return _0x431ca1[_0x59ad90(0x193)][_0x59ad90(0x17b)](_0x309983,_0x353bae,_0x3bb6a9)[_0x59ad90(0x186)](function(){const _0x6d2dd4=_0x59ad90;logger[_0x6d2dd4(0x17c)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x353bae,_0x309983);})[_0x59ad90(0x197)](function(_0x4ee1ce){const _0x42cbb5=_0x59ad90;logger[_0x42cbb5(0x17c)](JSON['stringify'](_0x4ee1ce));});});},Migration[a1132_0x41b011(0x188)][a1132_0x41b011(0x183)]=function(_0x300864,_0x291a7a,_0x1e016d){const _0x233b50=a1132_0x41b011,_0x2c84a6=this;this['sequence'][_0x233b50(0x17d)](function(){const _0x201a72=_0x233b50;return _0x2c84a6['queryInterface'][_0x201a72(0x183)](_0x300864,_0x291a7a,_0x1e016d)[_0x201a72(0x186)](function(){const _0x65174c=_0x201a72;logger[_0x65174c(0x17c)](_0x65174c(0x18e),_0x291a7a,_0x300864);})[_0x201a72(0x197)](function(_0xb494a1){const _0x30428f=_0x201a72;logger[_0x30428f(0x17c)](JSON[_0x30428f(0x181)](_0xb494a1));});});},Migration['prototype'][a1132_0x41b011(0x17a)]=function(_0x5cec89){const _0x4ac1ed=a1132_0x41b011,_0x4feaf4=this;this[_0x4ac1ed(0x184)]['enqueue'](function(){const _0x54458b=_0x4ac1ed;return _0x4feaf4[_0x54458b(0x193)]['dropTable'](_0x5cec89,{'force':!![]})[_0x54458b(0x186)](function(){const _0x4efcb9=_0x54458b;logger[_0x4efcb9(0x17c)](_0x4efcb9(0x196),_0x5cec89);})[_0x54458b(0x197)](function(_0x52be28){const _0x3c986b=_0x54458b;logger['info'](JSON[_0x3c986b(0x181)](_0x52be28));});});},Migration[a1132_0x41b011(0x188)][a1132_0x41b011(0x192)]=function(_0x3d0b8d,_0x5649c7,_0x198dc5){const _0x4a8bbe=a1132_0x41b011,_0x11769d=this;this[_0x4a8bbe(0x184)]['enqueue'](function(){const _0x4863b0=_0x4a8bbe;return _0x11769d[_0x4863b0(0x193)]['addIndex'](_0x3d0b8d,_0x5649c7,{'indexName':_0x198dc5})[_0x4863b0(0x186)](function(){const _0x4f46a3=_0x4863b0;logger[_0x4f46a3(0x17c)]('addIndex\x20%s\x20%s\x20%s',_0x3d0b8d,_0x5649c7[_0x4f46a3(0x187)](','),_0x198dc5);})['catch'](function(_0x371116){const _0x3985b2=_0x4863b0;logger[_0x3985b2(0x17c)](JSON[_0x3985b2(0x181)](_0x371116));});});},Migration[a1132_0x41b011(0x188)][a1132_0x41b011(0x190)]=function(_0x237c8f,_0x4e881a){const _0x1e5071=this;this['sequence']['enqueue'](function(){const _0x394d61=a1132_0x5560;return _0x1e5071['queryInterface']['removeIndex'](_0x237c8f,_0x4e881a)[_0x394d61(0x186)](function(){logger['info']('removeIndex\x20%s\x20%s',_0x237c8f,_0x4e881a);})[_0x394d61(0x197)](function(_0x5c99f3){const _0x4b4efa=_0x394d61;logger[_0x4b4efa(0x17c)](JSON['stringify'](_0x5c99f3));});});},Migration[a1132_0x41b011(0x188)][a1132_0x41b011(0x18f)]=function(_0x27a8ea){const _0x555c25=a1132_0x41b011,_0x4c0d81=this;this[_0x555c25(0x184)][_0x555c25(0x17d)](function(){const _0x2ca59d=_0x555c25;return _0x4c0d81[_0x2ca59d(0x193)][_0x2ca59d(0x180)][_0x2ca59d(0x18f)](_0x27a8ea)[_0x2ca59d(0x186)](function(){const _0xf784c8=_0x2ca59d;logger[_0xf784c8(0x17c)](_0xf784c8(0x18b),_0x27a8ea);})[_0x2ca59d(0x197)](function(_0x109575){const _0x4dd92e=_0x2ca59d;logger[_0x4dd92e(0x17c)](JSON[_0x4dd92e(0x181)](_0x109575));});});},Migration['prototype'][a1132_0x41b011(0x17e)]=function(_0x2a0109,_0x1b8759){const _0x27d76f=a1132_0x41b011,_0xe79073=this;this[_0x27d76f(0x184)][_0x27d76f(0x17d)](function(){const _0x12e91d=_0x27d76f;return _0xe79073[_0x12e91d(0x193)]['removeColumn'](_0x2a0109,_0x1b8759)[_0x12e91d(0x186)](function(){const _0x7ecf6a=_0x12e91d;logger[_0x7ecf6a(0x17c)]('Removed\x20column\x20%s\x20from\x20%s',_0x1b8759,_0x2a0109);})[_0x12e91d(0x197)](function(_0x58199a){const _0x3030d8=_0x12e91d;logger['info'](util[_0x3030d8(0x18a)](_0x58199a,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1132_0x41b011(0x191)]=function(_0x5aa707,_0xf18578,_0x3e41dd){const _0x3f53cc=a1132_0x41b011,_0x230057=this;this[_0x3f53cc(0x184)][_0x3f53cc(0x17d)](function(){const _0x39fa7b=_0x3f53cc;return _0x230057[_0x39fa7b(0x193)][_0x39fa7b(0x191)](_0x5aa707,_0xf18578,_0x3e41dd)[_0x39fa7b(0x186)](function(){const _0x1efd23=_0x39fa7b;logger[_0x1efd23(0x17c)](_0x1efd23(0x179),_0xf18578,_0x3e41dd,_0x5aa707);})['catch'](function(_0x523741){const _0x23a19e=_0x39fa7b;logger[_0x23a19e(0x17c)](util[_0x23a19e(0x18a)](_0x523741,{'showHidden':![],'depth':null}));});});},Migration[a1132_0x41b011(0x188)][a1132_0x41b011(0x17f)]=function(_0x3384de){const _0x2c0a1f=a1132_0x41b011;this[_0x2c0a1f(0x184)][_0x2c0a1f(0x17d)](function(){return _0x3384de();});},module[a1132_0x41b011(0x18d)]={'up':function(_0xfa16a9,_0x3cef90){return new Promise(function(_0x46c1d8){const _0x309b9e=a1132_0x5560,_0x680ff6=new Migration(_0xfa16a9);_0x680ff6[_0x309b9e(0x17b)]('mail_interactions',_0x309b9e(0x18c),{'type':_0x3cef90[_0x309b9e(0x178)](0x1fe)}),_0x680ff6['changeColumn'](_0x309b9e(0x194),_0x309b9e(0x182),{'type':_0x3cef90['STRING'](0x1fe)}),_0x680ff6[_0x309b9e(0x17f)](_0x46c1d8);});},'down':function(){}}; \ No newline at end of file +const a1132_0x4904=['util','removeIndex\x20%s\x20%s','then','../config/logger','catch','addIndex\x20%s\x20%s\x20%s','final','inspect','join','dropTable','mail_messages','inReplyTo','migration','messageId','changeColumn','tail','addIndex','exports','sequence','renameColumn','enqueue','finally','prototype','Added\x20column\x20%s\x20to\x20%s','info','sequelize','addColumn','removeIndex','STRING','stringify','query','removeColumn','queryInterface'];(function(_0x56dbb2,_0x265de5){const _0x490498=function(_0xfdec2e){while(--_0xfdec2e){_0x56dbb2['push'](_0x56dbb2['shift']());}};_0x490498(++_0x265de5);}(a1132_0x4904,0x1bf));const a1132_0xfdec=function(_0x56dbb2,_0x265de5){_0x56dbb2=_0x56dbb2-0x158;let _0x490498=a1132_0x4904[_0x56dbb2];return _0x490498;};const a1132_0x556ea5=a1132_0xfdec;'use strict';const util=require(a1132_0x556ea5(0x167)),logger=require(a1132_0x556ea5(0x16a))(a1132_0x556ea5(0x173)),Sequence=function(){};Sequence[a1132_0x556ea5(0x15c)][a1132_0x556ea5(0x15a)]=function(_0x9d7cd1){const _0x306c95=a1132_0x556ea5;this[_0x306c95(0x176)]=this[_0x306c95(0x176)]?this['tail'][_0x306c95(0x15b)](_0x9d7cd1):_0x9d7cd1();};const Migration=function(_0x4a94da){const _0x1f5d01=a1132_0x556ea5;this[_0x1f5d01(0x166)]=_0x4a94da,this[_0x1f5d01(0x158)]=new Sequence();};Migration['prototype'][a1132_0x556ea5(0x175)]=function(_0x17af7d,_0x23c7a8,_0x1bf4b3){const _0x1fae07=a1132_0x556ea5,_0x5d46e0=this;this[_0x1fae07(0x158)][_0x1fae07(0x15a)](function(){const _0x1849e8=_0x1fae07;return _0x5d46e0['queryInterface'][_0x1849e8(0x175)](_0x17af7d,_0x23c7a8,_0x1bf4b3)[_0x1849e8(0x169)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x23c7a8,_0x17af7d);})[_0x1849e8(0x16b)](function(_0x574321){const _0x447bc8=_0x1849e8;logger[_0x447bc8(0x15e)](JSON[_0x447bc8(0x163)](_0x574321));});});},Migration['prototype']['addColumn']=function(_0x3f2df9,_0x4cdb9c,_0x11fe6b){const _0x4d7ba2=a1132_0x556ea5,_0x5ed6ea=this;this[_0x4d7ba2(0x158)][_0x4d7ba2(0x15a)](function(){const _0x19ffe2=_0x4d7ba2;return _0x5ed6ea[_0x19ffe2(0x166)][_0x19ffe2(0x160)](_0x3f2df9,_0x4cdb9c,_0x11fe6b)[_0x19ffe2(0x169)](function(){const _0x47e2bf=_0x19ffe2;logger[_0x47e2bf(0x15e)](_0x47e2bf(0x15d),_0x4cdb9c,_0x3f2df9);})['catch'](function(_0xd32d31){const _0x44d5f0=_0x19ffe2;logger[_0x44d5f0(0x15e)](JSON[_0x44d5f0(0x163)](_0xd32d31));});});},Migration[a1132_0x556ea5(0x15c)][a1132_0x556ea5(0x170)]=function(_0x1d4212){const _0x19e2dd=a1132_0x556ea5,_0x1f3d74=this;this[_0x19e2dd(0x158)][_0x19e2dd(0x15a)](function(){const _0x4feb3e=_0x19e2dd;return _0x1f3d74[_0x4feb3e(0x166)][_0x4feb3e(0x170)](_0x1d4212,{'force':!![]})[_0x4feb3e(0x169)](function(){const _0x1293d5=_0x4feb3e;logger[_0x1293d5(0x15e)]('table\x20dropped\x20%s',_0x1d4212);})[_0x4feb3e(0x16b)](function(_0xf3c380){const _0x78d3bd=_0x4feb3e;logger[_0x78d3bd(0x15e)](JSON[_0x78d3bd(0x163)](_0xf3c380));});});},Migration[a1132_0x556ea5(0x15c)][a1132_0x556ea5(0x177)]=function(_0x317705,_0x23370d,_0x27b44b){const _0x20a185=a1132_0x556ea5,_0x176e31=this;this[_0x20a185(0x158)]['enqueue'](function(){const _0x4e1ed2=_0x20a185;return _0x176e31[_0x4e1ed2(0x166)][_0x4e1ed2(0x177)](_0x317705,_0x23370d,{'indexName':_0x27b44b})[_0x4e1ed2(0x169)](function(){const _0x19e2de=_0x4e1ed2;logger['info'](_0x19e2de(0x16c),_0x317705,_0x23370d[_0x19e2de(0x16f)](','),_0x27b44b);})['catch'](function(_0x54e94b){const _0x983c7=_0x4e1ed2;logger[_0x983c7(0x15e)](JSON[_0x983c7(0x163)](_0x54e94b));});});},Migration[a1132_0x556ea5(0x15c)][a1132_0x556ea5(0x161)]=function(_0x1e1ead,_0x472f91){const _0x2dda91=a1132_0x556ea5,_0xa1fc07=this;this[_0x2dda91(0x158)][_0x2dda91(0x15a)](function(){const _0x3d7cac=_0x2dda91;return _0xa1fc07[_0x3d7cac(0x166)]['removeIndex'](_0x1e1ead,_0x472f91)[_0x3d7cac(0x169)](function(){const _0xee279a=_0x3d7cac;logger[_0xee279a(0x15e)](_0xee279a(0x168),_0x1e1ead,_0x472f91);})[_0x3d7cac(0x16b)](function(_0x3f0faf){const _0x5482b7=_0x3d7cac;logger[_0x5482b7(0x15e)](JSON[_0x5482b7(0x163)](_0x3f0faf));});});},Migration[a1132_0x556ea5(0x15c)]['query']=function(_0x1adf5a){const _0x330567=a1132_0x556ea5,_0x21e11d=this;this[_0x330567(0x158)][_0x330567(0x15a)](function(){const _0x5da92c=_0x330567;return _0x21e11d[_0x5da92c(0x166)][_0x5da92c(0x15f)][_0x5da92c(0x164)](_0x1adf5a)[_0x5da92c(0x169)](function(){const _0x1a2bd0=_0x5da92c;logger[_0x1a2bd0(0x15e)]('query\x20%s',_0x1adf5a);})[_0x5da92c(0x16b)](function(_0xf4b235){const _0x3cf05d=_0x5da92c;logger['info'](JSON[_0x3cf05d(0x163)](_0xf4b235));});});},Migration['prototype'][a1132_0x556ea5(0x165)]=function(_0xc5f658,_0x380940){const _0x55ef57=this;this['sequence']['enqueue'](function(){const _0x3d2198=a1132_0xfdec;return _0x55ef57[_0x3d2198(0x166)][_0x3d2198(0x165)](_0xc5f658,_0x380940)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x380940,_0xc5f658);})[_0x3d2198(0x16b)](function(_0x57c897){logger['info'](util['inspect'](_0x57c897,{'showHidden':![],'depth':null}));});});},Migration[a1132_0x556ea5(0x15c)][a1132_0x556ea5(0x159)]=function(_0x4fcc7a,_0x13e48c,_0x1b2ba8){const _0x3d2f53=a1132_0x556ea5,_0x599f7a=this;this[_0x3d2f53(0x158)][_0x3d2f53(0x15a)](function(){const _0x28a927=_0x3d2f53;return _0x599f7a[_0x28a927(0x166)]['renameColumn'](_0x4fcc7a,_0x13e48c,_0x1b2ba8)[_0x28a927(0x169)](function(){const _0x3b422d=_0x28a927;logger[_0x3b422d(0x15e)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x13e48c,_0x1b2ba8,_0x4fcc7a);})[_0x28a927(0x16b)](function(_0x2fcd79){const _0x4056d4=_0x28a927;logger[_0x4056d4(0x15e)](util[_0x4056d4(0x16e)](_0x2fcd79,{'showHidden':![],'depth':null}));});});},Migration[a1132_0x556ea5(0x15c)][a1132_0x556ea5(0x16d)]=function(_0xcc2027){const _0x1a2b91=a1132_0x556ea5;this[_0x1a2b91(0x158)][_0x1a2b91(0x15a)](function(){return _0xcc2027();});},module[a1132_0x556ea5(0x178)]={'up':function(_0x18e9b1,_0x4c4df3){return new Promise(function(_0xb97e8a){const _0x3d50a2=a1132_0xfdec,_0x55979a=new Migration(_0x18e9b1);_0x55979a[_0x3d50a2(0x175)]('mail_interactions',_0x3d50a2(0x172),{'type':_0x4c4df3[_0x3d50a2(0x162)](0x1fe)}),_0x55979a['changeColumn'](_0x3d50a2(0x171),_0x3d50a2(0x174),{'type':_0x4c4df3[_0x3d50a2(0x162)](0x1fe)}),_0x55979a['final'](_0xb97e8a);});},'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 b3763e3..8650f2e 100644 --- a/server/migrations/2.2.4.js +++ b/server/migrations/2.2.4.js @@ -1 +1 @@ -const a1133_0x3e59=['addColumn','removeIndex','dropTable','util','sequelize','ALTER\x20TABLE\x20int_sugarcrm_fields\x20add\x20UNIQUE\x20INDEX\x20sugarcrm_unique_index\x20(idField,\x20FieldId)','ALTER\x20TABLE\x20int_vtiger_fields\x20add\x20UNIQUE\x20INDEX\x20vtiger_unique_index\x20(idField,\x20FieldId)','stringify','sequence','query\x20%s','renameColumn','addIndex','catch','ALTER\x20TABLE\x20int_zendesk_fields\x20add\x20UNIQUE\x20INDEX\x20zendesk_unique_index\x20(idField,\x20FieldId)','ALTER\x20TABLE\x20int_zoho_fields\x20add\x20UNIQUE\x20INDEX\x20zoho_unique_index\x20(idField,\x20FieldId)','ALTER\x20TABLE\x20int_freshdesk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','Changed\x20column\x20%s\x20in\x20table\x20%s','info','ALTER\x20TABLE\x20int_salesforce_fields\x20add\x20UNIQUE\x20INDEX\x20salesforce_unique_index\x20(idField,\x20FieldId)','removeColumn','inspect','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger','tail','ALTER\x20TABLE\x20int_desk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','enqueue','Added\x20column\x20%s\x20to\x20%s','exports','prototype','removeIndex\x20%s\x20%s','finally','queryInterface','final','then','query'];(function(_0x6bbab2,_0x5e942a){const _0x3e5940=function(_0x13dcb2){while(--_0x13dcb2){_0x6bbab2['push'](_0x6bbab2['shift']());}};_0x3e5940(++_0x5e942a);}(a1133_0x3e59,0x1a8));const a1133_0x13dc=function(_0x6bbab2,_0x5e942a){_0x6bbab2=_0x6bbab2-0xa3;let _0x3e5940=a1133_0x3e59[_0x6bbab2];return _0x3e5940;};const a1133_0x1d81d9=a1133_0x13dc;'use strict';const util=require(a1133_0x1d81d9(0xc5)),logger=require(a1133_0x1d81d9(0xb5))('migration'),Sequence=function(){};Sequence[a1133_0x1d81d9(0xbb)][a1133_0x1d81d9(0xb8)]=function(_0x4efb81){const _0x36ad26=a1133_0x1d81d9;this[_0x36ad26(0xb6)]=this['tail']?this['tail'][_0x36ad26(0xbd)](_0x4efb81):_0x4efb81();};const Migration=function(_0x1cc686){const _0x34e5ea=a1133_0x1d81d9;this[_0x34e5ea(0xbe)]=_0x1cc686,this[_0x34e5ea(0xa7)]=new Sequence();};Migration[a1133_0x1d81d9(0xbb)]['changeColumn']=function(_0x1ad608,_0x36597a,_0x3b4f00){const _0x272a02=a1133_0x1d81d9,_0x323225=this;this[_0x272a02(0xa7)][_0x272a02(0xb8)](function(){const _0x3bc2d1=_0x272a02;return _0x323225[_0x3bc2d1(0xbe)]['changeColumn'](_0x1ad608,_0x36597a,_0x3b4f00)['then'](function(){const _0x84fcbf=_0x3bc2d1;logger[_0x84fcbf(0xb0)](_0x84fcbf(0xaf),_0x36597a,_0x1ad608);})[_0x3bc2d1(0xab)](function(_0x4bb43e){const _0x31150c=_0x3bc2d1;logger[_0x31150c(0xb0)](JSON[_0x31150c(0xa6)](_0x4bb43e));});});},Migration['prototype'][a1133_0x1d81d9(0xc2)]=function(_0x251283,_0x40deda,_0x468290){const _0x278bdc=a1133_0x1d81d9,_0x24cea7=this;this[_0x278bdc(0xa7)][_0x278bdc(0xb8)](function(){const _0x1ca811=_0x278bdc;return _0x24cea7[_0x1ca811(0xbe)]['addColumn'](_0x251283,_0x40deda,_0x468290)['then'](function(){const _0x19a44a=_0x1ca811;logger['info'](_0x19a44a(0xb9),_0x40deda,_0x251283);})[_0x1ca811(0xab)](function(_0x4f9536){const _0x4e4a46=_0x1ca811;logger[_0x4e4a46(0xb0)](JSON[_0x4e4a46(0xa6)](_0x4f9536));});});},Migration[a1133_0x1d81d9(0xbb)]['dropTable']=function(_0x26724b){const _0x4d64c8=a1133_0x1d81d9,_0x348ac8=this;this[_0x4d64c8(0xa7)][_0x4d64c8(0xb8)](function(){const _0x5e4858=_0x4d64c8;return _0x348ac8['queryInterface'][_0x5e4858(0xc4)](_0x26724b,{'force':!![]})['then'](function(){const _0x361316=_0x5e4858;logger[_0x361316(0xb0)]('table\x20dropped\x20%s',_0x26724b);})[_0x5e4858(0xab)](function(_0x76cd05){logger['info'](JSON['stringify'](_0x76cd05));});});},Migration[a1133_0x1d81d9(0xbb)][a1133_0x1d81d9(0xaa)]=function(_0xbb1889,_0x407024,_0x1891df){const _0xefee84=a1133_0x1d81d9,_0x4b0997=this;this[_0xefee84(0xa7)][_0xefee84(0xb8)](function(){const _0x55292c=_0xefee84;return _0x4b0997[_0x55292c(0xbe)]['addIndex'](_0xbb1889,_0x407024,{'indexName':_0x1891df})[_0x55292c(0xc0)](function(){const _0x1b7365=_0x55292c;logger[_0x1b7365(0xb0)]('addIndex\x20%s\x20%s\x20%s',_0xbb1889,_0x407024['join'](','),_0x1891df);})[_0x55292c(0xab)](function(_0x14a351){const _0x35a842=_0x55292c;logger[_0x35a842(0xb0)](JSON[_0x35a842(0xa6)](_0x14a351));});});},Migration[a1133_0x1d81d9(0xbb)][a1133_0x1d81d9(0xc3)]=function(_0x57880a,_0x74ab61){const _0x3552d0=a1133_0x1d81d9,_0x1c5721=this;this[_0x3552d0(0xa7)][_0x3552d0(0xb8)](function(){const _0x7fd88a=_0x3552d0;return _0x1c5721[_0x7fd88a(0xbe)][_0x7fd88a(0xc3)](_0x57880a,_0x74ab61)['then'](function(){const _0x1a52d3=_0x7fd88a;logger[_0x1a52d3(0xb0)](_0x1a52d3(0xbc),_0x57880a,_0x74ab61);})[_0x7fd88a(0xab)](function(_0x1a1d10){const _0x378f88=_0x7fd88a;logger[_0x378f88(0xb0)](JSON[_0x378f88(0xa6)](_0x1a1d10));});});},Migration[a1133_0x1d81d9(0xbb)]['query']=function(_0x37f878){const _0x4edf8c=a1133_0x1d81d9,_0x5d0910=this;this[_0x4edf8c(0xa7)][_0x4edf8c(0xb8)](function(){const _0x11157a=_0x4edf8c;return _0x5d0910[_0x11157a(0xbe)][_0x11157a(0xa3)]['query'](_0x37f878)[_0x11157a(0xc0)](function(){const _0x17a5dc=_0x11157a;logger[_0x17a5dc(0xb0)](_0x17a5dc(0xa8),_0x37f878);})[_0x11157a(0xab)](function(_0x259394){const _0x1a83cc=_0x11157a;logger[_0x1a83cc(0xb0)](JSON[_0x1a83cc(0xa6)](_0x259394));});});},Migration['prototype'][a1133_0x1d81d9(0xb2)]=function(_0x2066a5,_0x535ba0){const _0x52c65f=a1133_0x1d81d9,_0x4f1ae0=this;this[_0x52c65f(0xa7)]['enqueue'](function(){const _0x355ca6=_0x52c65f;return _0x4f1ae0[_0x355ca6(0xbe)][_0x355ca6(0xb2)](_0x2066a5,_0x535ba0)[_0x355ca6(0xc0)](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x535ba0,_0x2066a5);})[_0x355ca6(0xab)](function(_0x1f6a6c){const _0x2d5da3=_0x355ca6;logger[_0x2d5da3(0xb0)](util[_0x2d5da3(0xb3)](_0x1f6a6c,{'showHidden':![],'depth':null}));});});},Migration[a1133_0x1d81d9(0xbb)][a1133_0x1d81d9(0xa9)]=function(_0x19dd5c,_0x135b19,_0x24df25){const _0x52a5c8=a1133_0x1d81d9,_0x2a1f17=this;this[_0x52a5c8(0xa7)]['enqueue'](function(){const _0xc6b97c=_0x52a5c8;return _0x2a1f17[_0xc6b97c(0xbe)][_0xc6b97c(0xa9)](_0x19dd5c,_0x135b19,_0x24df25)[_0xc6b97c(0xc0)](function(){const _0x260dc4=_0xc6b97c;logger[_0x260dc4(0xb0)](_0x260dc4(0xb4),_0x135b19,_0x24df25,_0x19dd5c);})[_0xc6b97c(0xab)](function(_0x2ed97b){const _0x616073=_0xc6b97c;logger[_0x616073(0xb0)](util[_0x616073(0xb3)](_0x2ed97b,{'showHidden':![],'depth':null}));});});},Migration[a1133_0x1d81d9(0xbb)][a1133_0x1d81d9(0xbf)]=function(_0x45cac0){const _0x2e6396=a1133_0x1d81d9;this[_0x2e6396(0xa7)][_0x2e6396(0xb8)](function(){return _0x45cac0();});},module[a1133_0x1d81d9(0xba)]={'up':function(_0x18b54e){return new Promise(function(_0x2b8c60){const _0x5e2559=a1133_0x13dc,_0x77ccca=new Migration(_0x18b54e);_0x77ccca[_0x5e2559(0xc1)](_0x5e2559(0xb7)),_0x77ccca[_0x5e2559(0xc1)](_0x5e2559(0xae)),_0x77ccca[_0x5e2559(0xc1)](_0x5e2559(0xb1)),_0x77ccca[_0x5e2559(0xc1)](_0x5e2559(0xa4)),_0x77ccca['query'](_0x5e2559(0xa5)),_0x77ccca[_0x5e2559(0xc1)](_0x5e2559(0xac)),_0x77ccca[_0x5e2559(0xc1)](_0x5e2559(0xad)),_0x77ccca[_0x5e2559(0xbf)](_0x2b8c60);});},'down':function(){}}; \ No newline at end of file +const a1133_0x344e=['Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','tail','util','query','prototype','../config/logger','finally','addColumn','catch','exports','queryInterface','then','stringify','ALTER\x20TABLE\x20int_zendesk_fields\x20add\x20UNIQUE\x20INDEX\x20zendesk_unique_index\x20(idField,\x20FieldId)','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','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)','removeColumn','sequence','query\x20%s','removeIndex','ALTER\x20TABLE\x20int_zoho_fields\x20add\x20UNIQUE\x20INDEX\x20zoho_unique_index\x20(idField,\x20FieldId)','info','removeIndex\x20%s\x20%s','enqueue','ALTER\x20TABLE\x20int_desk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','table\x20dropped\x20%s','inspect','dropTable'];(function(_0x4b5fe4,_0x35ab2d){const _0x344e9f=function(_0x2a13a9){while(--_0x2a13a9){_0x4b5fe4['push'](_0x4b5fe4['shift']());}};_0x344e9f(++_0x35ab2d);}(a1133_0x344e,0x87));const a1133_0x2a13=function(_0x4b5fe4,_0x35ab2d){_0x4b5fe4=_0x4b5fe4-0x17d;let _0x344e9f=a1133_0x344e[_0x4b5fe4];return _0x344e9f;};const a1133_0x4824ca=a1133_0x2a13;'use strict';const util=require(a1133_0x4824ca(0x18f)),logger=require(a1133_0x4824ca(0x192))('migration'),Sequence=function(){};Sequence[a1133_0x4824ca(0x191)][a1133_0x4824ca(0x187)]=function(_0x212627){const _0xe3f62e=a1133_0x4824ca;this[_0xe3f62e(0x18e)]=this[_0xe3f62e(0x18e)]?this['tail'][_0xe3f62e(0x193)](_0x212627):_0x212627();};const Migration=function(_0x24f6d1){const _0x232805=a1133_0x4824ca;this[_0x232805(0x197)]=_0x24f6d1,this[_0x232805(0x181)]=new Sequence();};Migration[a1133_0x4824ca(0x191)]['changeColumn']=function(_0x4ff6bd,_0x285f98,_0x260085){const _0x256c3c=a1133_0x4824ca,_0x5a5f46=this;this[_0x256c3c(0x181)]['enqueue'](function(){const _0x3d6859=_0x256c3c;return _0x5a5f46[_0x3d6859(0x197)]['changeColumn'](_0x4ff6bd,_0x285f98,_0x260085)[_0x3d6859(0x198)](function(){const _0x2083c2=_0x3d6859;logger['info'](_0x2083c2(0x18c),_0x285f98,_0x4ff6bd);})['catch'](function(_0x5b1fe8){const _0x977ef8=_0x3d6859;logger[_0x977ef8(0x185)](JSON[_0x977ef8(0x199)](_0x5b1fe8));});});},Migration[a1133_0x4824ca(0x191)][a1133_0x4824ca(0x194)]=function(_0x2f77f7,_0x140361,_0x1f47ee){const _0x16baf2=a1133_0x4824ca,_0x23493c=this;this[_0x16baf2(0x181)]['enqueue'](function(){const _0x58c416=_0x16baf2;return _0x23493c[_0x58c416(0x197)][_0x58c416(0x194)](_0x2f77f7,_0x140361,_0x1f47ee)[_0x58c416(0x198)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x140361,_0x2f77f7);})[_0x58c416(0x195)](function(_0x4f12ad){const _0x1345db=_0x58c416;logger[_0x1345db(0x185)](JSON['stringify'](_0x4f12ad));});});},Migration[a1133_0x4824ca(0x191)][a1133_0x4824ca(0x18b)]=function(_0x78df46){const _0x1fa319=a1133_0x4824ca,_0x3e69e0=this;this[_0x1fa319(0x181)][_0x1fa319(0x187)](function(){const _0x3e1d64=_0x1fa319;return _0x3e69e0[_0x3e1d64(0x197)][_0x3e1d64(0x18b)](_0x78df46,{'force':!![]})[_0x3e1d64(0x198)](function(){const _0x436a96=_0x3e1d64;logger[_0x436a96(0x185)](_0x436a96(0x189),_0x78df46);})[_0x3e1d64(0x195)](function(_0xe6b9fa){const _0x1dc475=_0x3e1d64;logger[_0x1dc475(0x185)](JSON['stringify'](_0xe6b9fa));});});},Migration[a1133_0x4824ca(0x191)]['addIndex']=function(_0x2e58df,_0x1b26e7,_0x1911b8){const _0x67082=a1133_0x4824ca,_0x338dd8=this;this[_0x67082(0x181)][_0x67082(0x187)](function(){const _0x54f8f4=_0x67082;return _0x338dd8[_0x54f8f4(0x197)]['addIndex'](_0x2e58df,_0x1b26e7,{'indexName':_0x1911b8})[_0x54f8f4(0x198)](function(){logger['info']('addIndex\x20%s\x20%s\x20%s',_0x2e58df,_0x1b26e7['join'](','),_0x1911b8);})[_0x54f8f4(0x195)](function(_0x5bf0be){const _0x2ca0b4=_0x54f8f4;logger['info'](JSON[_0x2ca0b4(0x199)](_0x5bf0be));});});},Migration[a1133_0x4824ca(0x191)][a1133_0x4824ca(0x183)]=function(_0x5dca86,_0x5a4fbc){const _0x19d3ab=a1133_0x4824ca,_0x3e4b4b=this;this[_0x19d3ab(0x181)]['enqueue'](function(){const _0x233434=_0x19d3ab;return _0x3e4b4b[_0x233434(0x197)][_0x233434(0x183)](_0x5dca86,_0x5a4fbc)[_0x233434(0x198)](function(){const _0x20342c=_0x233434;logger[_0x20342c(0x185)](_0x20342c(0x186),_0x5dca86,_0x5a4fbc);})['catch'](function(_0x22704e){const _0x683e41=_0x233434;logger[_0x683e41(0x185)](JSON[_0x683e41(0x199)](_0x22704e));});});},Migration[a1133_0x4824ca(0x191)][a1133_0x4824ca(0x190)]=function(_0x5c9333){const _0x531c47=a1133_0x4824ca,_0x20e924=this;this[_0x531c47(0x181)][_0x531c47(0x187)](function(){const _0xe8e11b=_0x531c47;return _0x20e924[_0xe8e11b(0x197)][_0xe8e11b(0x18d)][_0xe8e11b(0x190)](_0x5c9333)['then'](function(){const _0x415441=_0xe8e11b;logger[_0x415441(0x185)](_0x415441(0x182),_0x5c9333);})['catch'](function(_0x3fc49e){const _0x561489=_0xe8e11b;logger['info'](JSON[_0x561489(0x199)](_0x3fc49e));});});},Migration[a1133_0x4824ca(0x191)]['removeColumn']=function(_0x25db0d,_0x1b89a0){const _0x1bc8e3=a1133_0x4824ca,_0x415939=this;this[_0x1bc8e3(0x181)][_0x1bc8e3(0x187)](function(){const _0x3ec1ef=_0x1bc8e3;return _0x415939['queryInterface'][_0x3ec1ef(0x180)](_0x25db0d,_0x1b89a0)[_0x3ec1ef(0x198)](function(){const _0x802a23=_0x3ec1ef;logger[_0x802a23(0x185)]('Removed\x20column\x20%s\x20from\x20%s',_0x1b89a0,_0x25db0d);})['catch'](function(_0x5d76a7){const _0x38b409=_0x3ec1ef;logger['info'](util[_0x38b409(0x18a)](_0x5d76a7,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x5302c9,_0x33e71a,_0x5f4bfb){const _0x6246b3=a1133_0x4824ca,_0x5d6a8f=this;this[_0x6246b3(0x181)][_0x6246b3(0x187)](function(){const _0x4a2cca=_0x6246b3;return _0x5d6a8f[_0x4a2cca(0x197)]['renameColumn'](_0x5302c9,_0x33e71a,_0x5f4bfb)['then'](function(){const _0x45daff=_0x4a2cca;logger[_0x45daff(0x185)](_0x45daff(0x17d),_0x33e71a,_0x5f4bfb,_0x5302c9);})[_0x4a2cca(0x195)](function(_0x285b19){logger['info'](util['inspect'](_0x285b19,{'showHidden':![],'depth':null}));});});},Migration[a1133_0x4824ca(0x191)]['final']=function(_0x43f43a){const _0x1f0e10=a1133_0x4824ca;this[_0x1f0e10(0x181)]['enqueue'](function(){return _0x43f43a();});},module[a1133_0x4824ca(0x196)]={'up':function(_0x1e2840){return new Promise(function(_0x193845){const _0x475d4b=a1133_0x2a13,_0x17aac6=new Migration(_0x1e2840);_0x17aac6[_0x475d4b(0x190)](_0x475d4b(0x188)),_0x17aac6[_0x475d4b(0x190)]('ALTER\x20TABLE\x20int_freshdesk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)'),_0x17aac6[_0x475d4b(0x190)](_0x475d4b(0x17f)),_0x17aac6[_0x475d4b(0x190)]('ALTER\x20TABLE\x20int_sugarcrm_fields\x20add\x20UNIQUE\x20INDEX\x20sugarcrm_unique_index\x20(idField,\x20FieldId)'),_0x17aac6[_0x475d4b(0x190)](_0x475d4b(0x17e)),_0x17aac6['query'](_0x475d4b(0x19a)),_0x17aac6[_0x475d4b(0x190)](_0x475d4b(0x184)),_0x17aac6['final'](_0x193845);});},'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 24ddbad..ebd3d69 100644 --- a/server/migrations/2.2.5.js +++ b/server/migrations/2.2.5.js @@ -1 +1 @@ -const a1134_0x1892=['table\x20dropped\x20%s','util','tail','catch','final','Removed\x20column\x20%s\x20from\x20%s','stringify','exports','join','renameColumn','enqueue','query','query\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','dropTable','finally','inspect','info','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','addIndex','sequence','removeColumn','../config/logger','changeColumn','then','queryInterface'];(function(_0x242d44,_0x42332d){const _0x189271=function(_0x52f148){while(--_0x52f148){_0x242d44['push'](_0x242d44['shift']());}};_0x189271(++_0x42332d);}(a1134_0x1892,0xe4));const a1134_0x52f1=function(_0x242d44,_0x42332d){_0x242d44=_0x242d44-0x67;let _0x189271=a1134_0x1892[_0x242d44];return _0x189271;};const a1134_0x21ddba=a1134_0x52f1;'use strict';const util=require(a1134_0x21ddba(0x6c)),logger=require(a1134_0x21ddba(0x67))('migration'),Sequence=function(){};Sequence[a1134_0x21ddba(0x80)][a1134_0x21ddba(0x75)]=function(_0x46b8f9){const _0x3e6e7b=a1134_0x21ddba;this['tail']=this['tail']?this[_0x3e6e7b(0x6d)][_0x3e6e7b(0x7b)](_0x46b8f9):_0x46b8f9();};const Migration=function(_0x4bca47){const _0x53b3a3=a1134_0x21ddba;this[_0x53b3a3(0x6a)]=_0x4bca47,this[_0x53b3a3(0x82)]=new Sequence();};Migration[a1134_0x21ddba(0x80)][a1134_0x21ddba(0x68)]=function(_0x2da918,_0x4876f3,_0x21b322){const _0x1365b8=a1134_0x21ddba,_0x3b85b3=this;this['sequence'][_0x1365b8(0x75)](function(){const _0x345a25=_0x1365b8;return _0x3b85b3[_0x345a25(0x6a)][_0x345a25(0x68)](_0x2da918,_0x4876f3,_0x21b322)['then'](function(){const _0x2e7b2b=_0x345a25;logger['info'](_0x2e7b2b(0x7f),_0x4876f3,_0x2da918);})['catch'](function(_0x1e7104){logger['info'](JSON['stringify'](_0x1e7104));});});},Migration[a1134_0x21ddba(0x80)][a1134_0x21ddba(0x7e)]=function(_0x887bc,_0x468ad0,_0x1e26df){const _0x12d97a=a1134_0x21ddba,_0x3cb9bc=this;this[_0x12d97a(0x82)][_0x12d97a(0x75)](function(){const _0x1ebc41=_0x12d97a;return _0x3cb9bc[_0x1ebc41(0x6a)][_0x1ebc41(0x7e)](_0x887bc,_0x468ad0,_0x1e26df)['then'](function(){const _0x121a20=_0x1ebc41;logger[_0x121a20(0x7d)]('Added\x20column\x20%s\x20to\x20%s',_0x468ad0,_0x887bc);})['catch'](function(_0x24ef51){logger['info'](JSON['stringify'](_0x24ef51));});});},Migration[a1134_0x21ddba(0x80)][a1134_0x21ddba(0x7a)]=function(_0x43f866){const _0x4b8d92=a1134_0x21ddba,_0x17babc=this;this[_0x4b8d92(0x82)][_0x4b8d92(0x75)](function(){const _0x146dd3=_0x4b8d92;return _0x17babc[_0x146dd3(0x6a)]['dropTable'](_0x43f866,{'force':!![]})[_0x146dd3(0x69)](function(){const _0x4c7465=_0x146dd3;logger[_0x4c7465(0x7d)](_0x4c7465(0x6b),_0x43f866);})[_0x146dd3(0x6e)](function(_0x186d37){const _0x1993fc=_0x146dd3;logger[_0x1993fc(0x7d)](JSON[_0x1993fc(0x71)](_0x186d37));});});},Migration[a1134_0x21ddba(0x80)][a1134_0x21ddba(0x81)]=function(_0x2695fb,_0x43e1d1,_0x528b23){const _0x4c8c1f=a1134_0x21ddba,_0x44a49a=this;this['sequence'][_0x4c8c1f(0x75)](function(){const _0x21ffeb=_0x4c8c1f;return _0x44a49a['queryInterface'][_0x21ffeb(0x81)](_0x2695fb,_0x43e1d1,{'indexName':_0x528b23})[_0x21ffeb(0x69)](function(){const _0x49d6f2=_0x21ffeb;logger[_0x49d6f2(0x7d)]('addIndex\x20%s\x20%s\x20%s',_0x2695fb,_0x43e1d1[_0x49d6f2(0x73)](','),_0x528b23);})['catch'](function(_0x43958f){const _0x20f0a9=_0x21ffeb;logger[_0x20f0a9(0x7d)](JSON[_0x20f0a9(0x71)](_0x43958f));});});},Migration[a1134_0x21ddba(0x80)][a1134_0x21ddba(0x79)]=function(_0x40334b,_0x31b96d){const _0x1f62a7=a1134_0x21ddba,_0x1ebcd3=this;this[_0x1f62a7(0x82)][_0x1f62a7(0x75)](function(){const _0x548aa6=_0x1f62a7;return _0x1ebcd3[_0x548aa6(0x6a)][_0x548aa6(0x79)](_0x40334b,_0x31b96d)[_0x548aa6(0x69)](function(){logger['info']('removeIndex\x20%s\x20%s',_0x40334b,_0x31b96d);})[_0x548aa6(0x6e)](function(_0x55c408){const _0x4e5377=_0x548aa6;logger[_0x4e5377(0x7d)](JSON[_0x4e5377(0x71)](_0x55c408));});});},Migration[a1134_0x21ddba(0x80)]['query']=function(_0x2e98c8){const _0x4d5719=a1134_0x21ddba,_0x506dce=this;this[_0x4d5719(0x82)][_0x4d5719(0x75)](function(){const _0x4a979c=_0x4d5719;return _0x506dce[_0x4a979c(0x6a)]['sequelize'][_0x4a979c(0x76)](_0x2e98c8)[_0x4a979c(0x69)](function(){const _0x5cac92=_0x4a979c;logger['info'](_0x5cac92(0x77),_0x2e98c8);})[_0x4a979c(0x6e)](function(_0x25ad87){const _0x469088=_0x4a979c;logger[_0x469088(0x7d)](JSON['stringify'](_0x25ad87));});});},Migration[a1134_0x21ddba(0x80)][a1134_0x21ddba(0x83)]=function(_0x3e25b3,_0x5c382a){const _0x37e535=a1134_0x21ddba,_0x3b69e5=this;this[_0x37e535(0x82)][_0x37e535(0x75)](function(){const _0x210944=_0x37e535;return _0x3b69e5['queryInterface'][_0x210944(0x83)](_0x3e25b3,_0x5c382a)[_0x210944(0x69)](function(){const _0x216b89=_0x210944;logger['info'](_0x216b89(0x70),_0x5c382a,_0x3e25b3);})['catch'](function(_0x346d05){const _0x31a5ca=_0x210944;logger[_0x31a5ca(0x7d)](util[_0x31a5ca(0x7c)](_0x346d05,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1134_0x21ddba(0x74)]=function(_0x87b4a,_0x4cc1ac,_0x25b2b2){const _0x5bf1cd=a1134_0x21ddba,_0x57eb45=this;this[_0x5bf1cd(0x82)][_0x5bf1cd(0x75)](function(){const _0x6ac13e=_0x5bf1cd;return _0x57eb45[_0x6ac13e(0x6a)][_0x6ac13e(0x74)](_0x87b4a,_0x4cc1ac,_0x25b2b2)[_0x6ac13e(0x69)](function(){const _0x1f3ddf=_0x6ac13e;logger['info'](_0x1f3ddf(0x78),_0x4cc1ac,_0x25b2b2,_0x87b4a);})[_0x6ac13e(0x6e)](function(_0x1493fd){const _0x2353c6=_0x6ac13e;logger[_0x2353c6(0x7d)](util[_0x2353c6(0x7c)](_0x1493fd,{'showHidden':![],'depth':null}));});});},Migration[a1134_0x21ddba(0x80)][a1134_0x21ddba(0x6f)]=function(_0xb097f6){const _0x351bc7=a1134_0x21ddba;this['sequence'][_0x351bc7(0x75)](function(){return _0xb097f6();});},module[a1134_0x21ddba(0x72)]={'up':function(_0x32d5f3){return new Promise(function(_0x2f62a6){const _0x4e9127=a1134_0x52f1,_0x4d785f=new Migration(_0x32d5f3);_0x4d785f[_0x4e9127(0x6f)](_0x2f62a6);});},'down':function(){}}; \ No newline at end of file +const a1134_0x2d6c=['table\x20dropped\x20%s','query','catch','sequelize','prototype','tail','inspect','then','queryInterface','renameColumn','changeColumn','util','finally','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','final','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','info','removeIndex\x20%s\x20%s','dropTable','removeIndex','addColumn','stringify','../config/logger','removeColumn','sequence','join','query\x20%s'];(function(_0x2f21a7,_0x5e80e6){const _0x2d6c3e=function(_0x353d73){while(--_0x353d73){_0x2f21a7['push'](_0x2f21a7['shift']());}};_0x2d6c3e(++_0x5e80e6);}(a1134_0x2d6c,0xb9));const a1134_0x353d=function(_0x2f21a7,_0x5e80e6){_0x2f21a7=_0x2f21a7-0x1dc;let _0x2d6c3e=a1134_0x2d6c[_0x2f21a7];return _0x2d6c3e;};const a1134_0x5153b0=a1134_0x353d;'use strict';const util=require(a1134_0x5153b0(0x1e2)),logger=require(a1134_0x5153b0(0x1f0))(a1134_0x5153b0(0x1e4)),Sequence=function(){};Sequence[a1134_0x5153b0(0x1f9)][a1134_0x5153b0(0x1e6)]=function(_0x360c84){const _0x176214=a1134_0x5153b0;this[_0x176214(0x1dc)]=this[_0x176214(0x1dc)]?this[_0x176214(0x1dc)][_0x176214(0x1e3)](_0x360c84):_0x360c84();};const Migration=function(_0x3a6cfb){const _0x2faf3e=a1134_0x5153b0;this[_0x2faf3e(0x1df)]=_0x3a6cfb,this[_0x2faf3e(0x1f2)]=new Sequence();};Migration[a1134_0x5153b0(0x1f9)]['changeColumn']=function(_0x5454ff,_0x3e9bcb,_0xf261ca){const _0x552ad7=a1134_0x5153b0,_0x3bdc3c=this;this[_0x552ad7(0x1f2)][_0x552ad7(0x1e6)](function(){const _0x3abddd=_0x552ad7;return _0x3bdc3c['queryInterface'][_0x3abddd(0x1e1)](_0x5454ff,_0x3e9bcb,_0xf261ca)[_0x3abddd(0x1de)](function(){const _0x590dee=_0x3abddd;logger[_0x590dee(0x1ea)](_0x590dee(0x1e8),_0x3e9bcb,_0x5454ff);})[_0x3abddd(0x1f7)](function(_0x424077){const _0x24589a=_0x3abddd;logger[_0x24589a(0x1ea)](JSON['stringify'](_0x424077));});});},Migration[a1134_0x5153b0(0x1f9)][a1134_0x5153b0(0x1ee)]=function(_0x4101cb,_0xfcdfd9,_0x15acb8){const _0x1a0958=a1134_0x5153b0,_0xe999d9=this;this[_0x1a0958(0x1f2)][_0x1a0958(0x1e6)](function(){const _0x4e1d3f=_0x1a0958;return _0xe999d9[_0x4e1d3f(0x1df)]['addColumn'](_0x4101cb,_0xfcdfd9,_0x15acb8)[_0x4e1d3f(0x1de)](function(){const _0x1e99c7=_0x4e1d3f;logger[_0x1e99c7(0x1ea)]('Added\x20column\x20%s\x20to\x20%s',_0xfcdfd9,_0x4101cb);})[_0x4e1d3f(0x1f7)](function(_0x4aeec8){const _0x2c795=_0x4e1d3f;logger['info'](JSON[_0x2c795(0x1ef)](_0x4aeec8));});});},Migration[a1134_0x5153b0(0x1f9)][a1134_0x5153b0(0x1ec)]=function(_0x46af89){const _0x4738a2=a1134_0x5153b0,_0x63da70=this;this[_0x4738a2(0x1f2)]['enqueue'](function(){const _0x17807d=_0x4738a2;return _0x63da70['queryInterface'][_0x17807d(0x1ec)](_0x46af89,{'force':!![]})[_0x17807d(0x1de)](function(){const _0x141af0=_0x17807d;logger[_0x141af0(0x1ea)](_0x141af0(0x1f5),_0x46af89);})[_0x17807d(0x1f7)](function(_0x5542b0){const _0x58a877=_0x17807d;logger[_0x58a877(0x1ea)](JSON[_0x58a877(0x1ef)](_0x5542b0));});});},Migration[a1134_0x5153b0(0x1f9)][a1134_0x5153b0(0x1e9)]=function(_0x26d4b4,_0x3028ba,_0x29ac09){const _0x4b2ae6=a1134_0x5153b0,_0x67bf7e=this;this[_0x4b2ae6(0x1f2)][_0x4b2ae6(0x1e6)](function(){const _0x5e7275=_0x4b2ae6;return _0x67bf7e[_0x5e7275(0x1df)][_0x5e7275(0x1e9)](_0x26d4b4,_0x3028ba,{'indexName':_0x29ac09})[_0x5e7275(0x1de)](function(){const _0x3a0305=_0x5e7275;logger[_0x3a0305(0x1ea)]('addIndex\x20%s\x20%s\x20%s',_0x26d4b4,_0x3028ba[_0x3a0305(0x1f3)](','),_0x29ac09);})[_0x5e7275(0x1f7)](function(_0x442e26){const _0x462b42=_0x5e7275;logger[_0x462b42(0x1ea)](JSON[_0x462b42(0x1ef)](_0x442e26));});});},Migration[a1134_0x5153b0(0x1f9)][a1134_0x5153b0(0x1ed)]=function(_0x47dcf9,_0x270743){const _0x227e21=a1134_0x5153b0,_0x24c9ab=this;this[_0x227e21(0x1f2)][_0x227e21(0x1e6)](function(){const _0x38c7e3=_0x227e21;return _0x24c9ab[_0x38c7e3(0x1df)][_0x38c7e3(0x1ed)](_0x47dcf9,_0x270743)[_0x38c7e3(0x1de)](function(){const _0x4bea9b=_0x38c7e3;logger[_0x4bea9b(0x1ea)](_0x4bea9b(0x1eb),_0x47dcf9,_0x270743);})['catch'](function(_0x1da9e2){const _0x477486=_0x38c7e3;logger['info'](JSON[_0x477486(0x1ef)](_0x1da9e2));});});},Migration['prototype'][a1134_0x5153b0(0x1f6)]=function(_0x33fe2e){const _0x3ec6c=this;this['sequence']['enqueue'](function(){const _0x198d2b=a1134_0x353d;return _0x3ec6c[_0x198d2b(0x1df)][_0x198d2b(0x1f8)][_0x198d2b(0x1f6)](_0x33fe2e)[_0x198d2b(0x1de)](function(){const _0x1bc197=_0x198d2b;logger[_0x1bc197(0x1ea)](_0x1bc197(0x1f4),_0x33fe2e);})[_0x198d2b(0x1f7)](function(_0x33d39a){const _0x54256c=_0x198d2b;logger[_0x54256c(0x1ea)](JSON[_0x54256c(0x1ef)](_0x33d39a));});});},Migration[a1134_0x5153b0(0x1f9)][a1134_0x5153b0(0x1f1)]=function(_0x1bd98e,_0x30fc2e){const _0x1423eb=a1134_0x5153b0,_0x1615e9=this;this[_0x1423eb(0x1f2)][_0x1423eb(0x1e6)](function(){const _0x3e31e8=_0x1423eb;return _0x1615e9[_0x3e31e8(0x1df)][_0x3e31e8(0x1f1)](_0x1bd98e,_0x30fc2e)[_0x3e31e8(0x1de)](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x30fc2e,_0x1bd98e);})['catch'](function(_0x38bf95){const _0x190f4b=_0x3e31e8;logger['info'](util[_0x190f4b(0x1dd)](_0x38bf95,{'showHidden':![],'depth':null}));});});},Migration[a1134_0x5153b0(0x1f9)][a1134_0x5153b0(0x1e0)]=function(_0x126ca5,_0xeebd9f,_0x296c87){const _0x4d07c1=a1134_0x5153b0,_0x99273f=this;this['sequence'][_0x4d07c1(0x1e6)](function(){const _0x334989=_0x4d07c1;return _0x99273f[_0x334989(0x1df)]['renameColumn'](_0x126ca5,_0xeebd9f,_0x296c87)['then'](function(){const _0xc06809=_0x334989;logger[_0xc06809(0x1ea)](_0xc06809(0x1e5),_0xeebd9f,_0x296c87,_0x126ca5);})[_0x334989(0x1f7)](function(_0x535c53){const _0x796b14=_0x334989;logger[_0x796b14(0x1ea)](util[_0x796b14(0x1dd)](_0x535c53,{'showHidden':![],'depth':null}));});});},Migration[a1134_0x5153b0(0x1f9)][a1134_0x5153b0(0x1e7)]=function(_0x106bc8){const _0x32d82a=a1134_0x5153b0;this[_0x32d82a(0x1f2)][_0x32d82a(0x1e6)](function(){return _0x106bc8();});},module['exports']={'up':function(_0x34a707){return new Promise(function(_0x1413a0){const _0x5b96c4=a1134_0x353d,_0x3e19b7=new Migration(_0x34a707);_0x3e19b7[_0x5b96c4(0x1e7)](_0x1413a0);});},'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 3aed6cd..881384e 100644 --- a/server/migrations/2.2.6.js +++ b/server/migrations/2.2.6.js @@ -1 +1 @@ -const a1135_0x3977=['mandatoryDisposition','mail_accounts','stringify','fax_accounts','table\x20dropped\x20%s','ALTER\x20TABLE\x20voice_queues\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`voice_queues_ibfk_4`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE','ALTER\x20TABLE\x20fax_accounts\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`fax_accounts_ibfk_3`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE','enqueue','chat_websites','addIndex\x20%s\x20%s\x20%s','addIndex','util','UPDATE\x20square_projects\x20SET\x20preproduction\x20=\x20REPLACE(preproduction,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)','info','dropTable','mandatoryDispositionPauseId','queryInterface','finally','sequence','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','addColumn','removeColumn','sms_accounts','Changed\x20column\x20%s\x20in\x20table\x20%s','join','sequelize','openchannel_accounts','query\x20%s','exports','removeIndex','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','INTEGER','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','BOOLEAN','tail','renameColumn','query','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','voice_queues','inspect','final','Removed\x20column\x20%s\x20from\x20%s','UPDATE\x20square_projects\x20SET\x20production\x20=\x20REPLACE(production,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)','catch','then','prototype'];(function(_0x587ff8,_0x24c716){const _0x39776b=function(_0x12fabc){while(--_0x12fabc){_0x587ff8['push'](_0x587ff8['shift']());}};_0x39776b(++_0x24c716);}(a1135_0x3977,0x183));const a1135_0x12fa=function(_0x587ff8,_0x24c716){_0x587ff8=_0x587ff8-0x1a4;let _0x39776b=a1135_0x3977[_0x587ff8];return _0x39776b;};const a1135_0x5c9365=a1135_0x12fa;'use strict';const util=require(a1135_0x5c9365(0x1ac)),logger=require('../config/logger')(a1135_0x5c9365(0x1c1)),Sequence=function(){};Sequence[a1135_0x5c9365(0x1d0)][a1135_0x5c9365(0x1a8)]=function(_0xb3ddf3){const _0x91f4da=a1135_0x5c9365;this[_0x91f4da(0x1c4)]=this['tail']?this[_0x91f4da(0x1c4)][_0x91f4da(0x1b2)](_0xb3ddf3):_0xb3ddf3();};const Migration=function(_0x29a6dc){const _0x459e12=a1135_0x5c9365;this[_0x459e12(0x1b1)]=_0x29a6dc,this[_0x459e12(0x1b3)]=new Sequence();};Migration[a1135_0x5c9365(0x1d0)]['changeColumn']=function(_0x31aecd,_0x7d5cbc,_0x173737){const _0x2f3e1c=a1135_0x5c9365,_0x4ea43c=this;this[_0x2f3e1c(0x1b3)]['enqueue'](function(){const _0xac2f2d=_0x2f3e1c;return _0x4ea43c[_0xac2f2d(0x1b1)][_0xac2f2d(0x1c7)](_0x31aecd,_0x7d5cbc,_0x173737)[_0xac2f2d(0x1cf)](function(){const _0x49095e=_0xac2f2d;logger[_0x49095e(0x1ae)](_0x49095e(0x1b8),_0x7d5cbc,_0x31aecd);})[_0xac2f2d(0x1ce)](function(_0x528cb3){const _0x2f0971=_0xac2f2d;logger[_0x2f0971(0x1ae)](JSON[_0x2f0971(0x1d3)](_0x528cb3));});});},Migration[a1135_0x5c9365(0x1d0)][a1135_0x5c9365(0x1b5)]=function(_0x121fa6,_0x4366f9,_0x33e71c){const _0x14c141=a1135_0x5c9365,_0x580f9b=this;this['sequence'][_0x14c141(0x1a8)](function(){const _0x3c580a=_0x14c141;return _0x580f9b[_0x3c580a(0x1b1)][_0x3c580a(0x1b5)](_0x121fa6,_0x4366f9,_0x33e71c)[_0x3c580a(0x1cf)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x4366f9,_0x121fa6);})[_0x3c580a(0x1ce)](function(_0x176688){const _0x43af73=_0x3c580a;logger[_0x43af73(0x1ae)](JSON['stringify'](_0x176688));});});},Migration[a1135_0x5c9365(0x1d0)][a1135_0x5c9365(0x1af)]=function(_0x75be4a){const _0x3ff8df=a1135_0x5c9365,_0x31126c=this;this[_0x3ff8df(0x1b3)][_0x3ff8df(0x1a8)](function(){const _0x1d1eae=_0x3ff8df;return _0x31126c[_0x1d1eae(0x1b1)][_0x1d1eae(0x1af)](_0x75be4a,{'force':!![]})['then'](function(){const _0x4b9ca6=_0x1d1eae;logger[_0x4b9ca6(0x1ae)](_0x4b9ca6(0x1a5),_0x75be4a);})['catch'](function(_0x3a69f3){const _0x559485=_0x1d1eae;logger['info'](JSON[_0x559485(0x1d3)](_0x3a69f3));});});},Migration[a1135_0x5c9365(0x1d0)]['addIndex']=function(_0x3ca410,_0x17cb24,_0x44b27e){const _0x42d2cf=a1135_0x5c9365,_0x185645=this;this[_0x42d2cf(0x1b3)][_0x42d2cf(0x1a8)](function(){const _0x537ec1=_0x42d2cf;return _0x185645['queryInterface'][_0x537ec1(0x1ab)](_0x3ca410,_0x17cb24,{'indexName':_0x44b27e})[_0x537ec1(0x1cf)](function(){const _0x53d1c3=_0x537ec1;logger[_0x53d1c3(0x1ae)](_0x53d1c3(0x1aa),_0x3ca410,_0x17cb24[_0x53d1c3(0x1b9)](','),_0x44b27e);})[_0x537ec1(0x1ce)](function(_0x4d471c){const _0x3d2e22=_0x537ec1;logger[_0x3d2e22(0x1ae)](JSON[_0x3d2e22(0x1d3)](_0x4d471c));});});},Migration[a1135_0x5c9365(0x1d0)][a1135_0x5c9365(0x1be)]=function(_0x29bc83,_0x4b22c7){const _0x211192=a1135_0x5c9365,_0x4ba58d=this;this[_0x211192(0x1b3)]['enqueue'](function(){const _0x546332=_0x211192;return _0x4ba58d['queryInterface'][_0x546332(0x1be)](_0x29bc83,_0x4b22c7)[_0x546332(0x1cf)](function(){const _0x504967=_0x546332;logger[_0x504967(0x1ae)]('removeIndex\x20%s\x20%s',_0x29bc83,_0x4b22c7);})['catch'](function(_0x182754){const _0x1272d3=_0x546332;logger[_0x1272d3(0x1ae)](JSON[_0x1272d3(0x1d3)](_0x182754));});});},Migration['prototype'][a1135_0x5c9365(0x1c6)]=function(_0x114821){const _0x1b5a8f=a1135_0x5c9365,_0x58be5d=this;this[_0x1b5a8f(0x1b3)][_0x1b5a8f(0x1a8)](function(){const _0x1284f9=_0x1b5a8f;return _0x58be5d[_0x1284f9(0x1b1)][_0x1284f9(0x1ba)][_0x1284f9(0x1c6)](_0x114821)[_0x1284f9(0x1cf)](function(){const _0x531343=_0x1284f9;logger[_0x531343(0x1ae)](_0x531343(0x1bc),_0x114821);})[_0x1284f9(0x1ce)](function(_0x2ab0d1){const _0x5a33f3=_0x1284f9;logger[_0x5a33f3(0x1ae)](JSON[_0x5a33f3(0x1d3)](_0x2ab0d1));});});},Migration['prototype'][a1135_0x5c9365(0x1b6)]=function(_0x54defb,_0x44091b){const _0x327b72=a1135_0x5c9365,_0x6a8dfb=this;this[_0x327b72(0x1b3)][_0x327b72(0x1a8)](function(){const _0x36895d=_0x327b72;return _0x6a8dfb[_0x36895d(0x1b1)][_0x36895d(0x1b6)](_0x54defb,_0x44091b)['then'](function(){const _0x2d5f36=_0x36895d;logger[_0x2d5f36(0x1ae)](_0x2d5f36(0x1cc),_0x44091b,_0x54defb);})[_0x36895d(0x1ce)](function(_0x240ee7){const _0x39eb19=_0x36895d;logger[_0x39eb19(0x1ae)](util[_0x39eb19(0x1ca)](_0x240ee7,{'showHidden':![],'depth':null}));});});},Migration[a1135_0x5c9365(0x1d0)]['renameColumn']=function(_0x4292a,_0x3965e0,_0x47de02){const _0x44bcf1=a1135_0x5c9365,_0x5b62a5=this;this[_0x44bcf1(0x1b3)][_0x44bcf1(0x1a8)](function(){const _0x523e01=_0x44bcf1;return _0x5b62a5[_0x523e01(0x1b1)][_0x523e01(0x1c5)](_0x4292a,_0x3965e0,_0x47de02)['then'](function(){const _0x54b90a=_0x523e01;logger['info'](_0x54b90a(0x1c8),_0x3965e0,_0x47de02,_0x4292a);})[_0x523e01(0x1ce)](function(_0x3a5815){const _0x3dd6bd=_0x523e01;logger[_0x3dd6bd(0x1ae)](util[_0x3dd6bd(0x1ca)](_0x3a5815,{'showHidden':![],'depth':null}));});});},Migration[a1135_0x5c9365(0x1d0)][a1135_0x5c9365(0x1cb)]=function(_0x4d7efe){this['sequence']['enqueue'](function(){return _0x4d7efe();});},module[a1135_0x5c9365(0x1bd)]={'up':function(_0x52e682,_0x1f9495){return new Promise(function(_0x10c6cd){const _0x3b8170=a1135_0x12fa,_0x19c27c=new Migration(_0x52e682);_0x19c27c[_0x3b8170(0x1c6)]('ALTER\x20TABLE\x20mail_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;'),_0x19c27c['query'](_0x3b8170(0x1b4)),_0x19c27c[_0x3b8170(0x1c6)](_0x3b8170(0x1ad)),_0x19c27c['query'](_0x3b8170(0x1cd)),_0x19c27c[_0x3b8170(0x1b5)](_0x3b8170(0x1c9),_0x3b8170(0x1d1),{'type':_0x1f9495[_0x3b8170(0x1c3)],'defaultValue':![]}),_0x19c27c[_0x3b8170(0x1b5)](_0x3b8170(0x1c9),'mandatoryDispositionPauseId',{'type':_0x1f9495[_0x3b8170(0x1c0)]}),_0x19c27c[_0x3b8170(0x1c6)](_0x3b8170(0x1a6)),_0x19c27c['addColumn'](_0x3b8170(0x1a9),_0x3b8170(0x1d1),{'type':_0x1f9495['BOOLEAN'],'defaultValue':![]}),_0x19c27c[_0x3b8170(0x1b5)](_0x3b8170(0x1a9),_0x3b8170(0x1b0),{'type':_0x1f9495[_0x3b8170(0x1c0)]}),_0x19c27c[_0x3b8170(0x1c6)](_0x3b8170(0x1bf)),_0x19c27c[_0x3b8170(0x1b5)](_0x3b8170(0x1a4),'mandatoryDisposition',{'type':_0x1f9495[_0x3b8170(0x1c3)],'defaultValue':![]}),_0x19c27c[_0x3b8170(0x1b5)]('fax_accounts','mandatoryDispositionPauseId',{'type':_0x1f9495[_0x3b8170(0x1c0)]}),_0x19c27c['query'](_0x3b8170(0x1a7)),_0x19c27c[_0x3b8170(0x1b5)]('mail_accounts',_0x3b8170(0x1d1),{'type':_0x1f9495['BOOLEAN'],'defaultValue':![]}),_0x19c27c['addColumn'](_0x3b8170(0x1d2),_0x3b8170(0x1b0),{'type':_0x1f9495['INTEGER']}),_0x19c27c[_0x3b8170(0x1c6)]('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'),_0x19c27c[_0x3b8170(0x1b5)]('openchannel_accounts',_0x3b8170(0x1d1),{'type':_0x1f9495[_0x3b8170(0x1c3)],'defaultValue':![]}),_0x19c27c[_0x3b8170(0x1b5)](_0x3b8170(0x1bb),'mandatoryDispositionPauseId',{'type':_0x1f9495[_0x3b8170(0x1c0)]}),_0x19c27c['query']('ALTER\x20TABLE\x20openchannel_accounts\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`openchannel_accounts_ibfk_2`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE'),_0x19c27c[_0x3b8170(0x1b5)](_0x3b8170(0x1b7),_0x3b8170(0x1d1),{'type':_0x1f9495[_0x3b8170(0x1c3)],'defaultValue':![]}),_0x19c27c['addColumn']('sms_accounts','mandatoryDispositionPauseId',{'type':_0x1f9495['INTEGER']}),_0x19c27c[_0x3b8170(0x1c6)](_0x3b8170(0x1c2)),_0x19c27c[_0x3b8170(0x1cb)](_0x10c6cd);});},'down':function(){}}; \ No newline at end of file +const a1135_0x1c11=['chat_websites','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','dropTable','removeIndex','fax_accounts','join','addIndex','finally','query','BOOLEAN','exports','removeColumn','query\x20%s','mandatoryDispositionPauseId','openchannel_accounts','final','then','info','queryInterface','catch','stringify','util','sequence','removeIndex\x20%s\x20%s','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_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','renameColumn','migration','table\x20dropped\x20%s','enqueue','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','prototype','sequelize','../config/logger','mandatoryDisposition','inspect','UPDATE\x20square_projects\x20SET\x20preproduction\x20=\x20REPLACE(preproduction,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)','UPDATE\x20square_projects\x20SET\x20production\x20=\x20REPLACE(production,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)','Removed\x20column\x20%s\x20from\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','mail_accounts','changeColumn','voice_queues','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','INTEGER','Added\x20column\x20%s\x20to\x20%s','tail','ALTER\x20TABLE\x20sms_accounts\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`sms_accounts_ibfk_2`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE','ALTER\x20TABLE\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','addColumn'];(function(_0x34fa5a,_0xd4300e){const _0x1c1126=function(_0x1dd6af){while(--_0x1dd6af){_0x34fa5a['push'](_0x34fa5a['shift']());}};_0x1c1126(++_0xd4300e);}(a1135_0x1c11,0x149));const a1135_0x1dd6=function(_0x34fa5a,_0xd4300e){_0x34fa5a=_0x34fa5a-0x11d;let _0x1c1126=a1135_0x1c11[_0x34fa5a];return _0x1c1126;};const a1135_0x4a706e=a1135_0x1dd6;'use strict';const util=require(a1135_0x4a706e(0x147)),logger=require(a1135_0x4a706e(0x121))(a1135_0x4a706e(0x14d)),Sequence=function(){};Sequence[a1135_0x4a706e(0x11f)][a1135_0x4a706e(0x11d)]=function(_0x5d19a4){const _0x56aee2=a1135_0x4a706e;this['tail']=this[_0x56aee2(0x12e)]?this[_0x56aee2(0x12e)][_0x56aee2(0x139)](_0x5d19a4):_0x5d19a4();};const Migration=function(_0x36839c){const _0x3b16e6=a1135_0x4a706e;this[_0x3b16e6(0x144)]=_0x36839c,this['sequence']=new Sequence();};Migration[a1135_0x4a706e(0x11f)]['changeColumn']=function(_0x454b50,_0x394251,_0x979406){const _0x35f426=a1135_0x4a706e,_0x5725a7=this;this[_0x35f426(0x148)][_0x35f426(0x11d)](function(){const _0x278ac3=_0x35f426;return _0x5725a7[_0x278ac3(0x144)][_0x278ac3(0x129)](_0x454b50,_0x394251,_0x979406)[_0x278ac3(0x142)](function(){const _0x5da269=_0x278ac3;logger[_0x5da269(0x143)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x394251,_0x454b50);})[_0x278ac3(0x145)](function(_0x914d1e){const _0x228597=_0x278ac3;logger[_0x228597(0x143)](JSON['stringify'](_0x914d1e));});});},Migration[a1135_0x4a706e(0x11f)][a1135_0x4a706e(0x131)]=function(_0x35ace1,_0x26205c,_0x693210){const _0x782d1=a1135_0x4a706e,_0x1c36ca=this;this[_0x782d1(0x148)][_0x782d1(0x11d)](function(){const _0x39760c=_0x782d1;return _0x1c36ca[_0x39760c(0x144)][_0x39760c(0x131)](_0x35ace1,_0x26205c,_0x693210)['then'](function(){const _0x6480cf=_0x39760c;logger['info'](_0x6480cf(0x12d),_0x26205c,_0x35ace1);})[_0x39760c(0x145)](function(_0x7b387e){const _0x51e337=_0x39760c;logger[_0x51e337(0x143)](JSON['stringify'](_0x7b387e));});});},Migration[a1135_0x4a706e(0x11f)][a1135_0x4a706e(0x134)]=function(_0x457e8e){const _0x11f599=a1135_0x4a706e,_0x5a3f7c=this;this['sequence'][_0x11f599(0x11d)](function(){const _0x504887=_0x11f599;return _0x5a3f7c[_0x504887(0x144)][_0x504887(0x134)](_0x457e8e,{'force':!![]})[_0x504887(0x142)](function(){const _0x380323=_0x504887;logger[_0x380323(0x143)](_0x380323(0x14e),_0x457e8e);})[_0x504887(0x145)](function(_0x596b9b){const _0x5304b9=_0x504887;logger[_0x5304b9(0x143)](JSON[_0x5304b9(0x146)](_0x596b9b));});});},Migration[a1135_0x4a706e(0x11f)][a1135_0x4a706e(0x138)]=function(_0x51274f,_0x5a9712,_0x4da64d){const _0x5e9a90=a1135_0x4a706e,_0x23204e=this;this[_0x5e9a90(0x148)][_0x5e9a90(0x11d)](function(){const _0x24a71a=_0x5e9a90;return _0x23204e[_0x24a71a(0x144)][_0x24a71a(0x138)](_0x51274f,_0x5a9712,{'indexName':_0x4da64d})[_0x24a71a(0x142)](function(){const _0x425c12=_0x24a71a;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x51274f,_0x5a9712[_0x425c12(0x137)](','),_0x4da64d);})[_0x24a71a(0x145)](function(_0x3c5a86){logger['info'](JSON['stringify'](_0x3c5a86));});});},Migration['prototype'][a1135_0x4a706e(0x135)]=function(_0x1ad05e,_0x220cf5){const _0x16e803=a1135_0x4a706e,_0xf09a55=this;this['sequence'][_0x16e803(0x11d)](function(){const _0x57ce99=_0x16e803;return _0xf09a55['queryInterface'][_0x57ce99(0x135)](_0x1ad05e,_0x220cf5)['then'](function(){const _0x5076a9=_0x57ce99;logger[_0x5076a9(0x143)](_0x5076a9(0x149),_0x1ad05e,_0x220cf5);})['catch'](function(_0x19f653){const _0x326db2=_0x57ce99;logger[_0x326db2(0x143)](JSON[_0x326db2(0x146)](_0x19f653));});});},Migration[a1135_0x4a706e(0x11f)][a1135_0x4a706e(0x13a)]=function(_0x425600){const _0x1e7498=a1135_0x4a706e,_0x39806e=this;this['sequence'][_0x1e7498(0x11d)](function(){const _0x204611=_0x1e7498;return _0x39806e[_0x204611(0x144)][_0x204611(0x120)]['query'](_0x425600)['then'](function(){const _0x3bc78a=_0x204611;logger[_0x3bc78a(0x143)](_0x3bc78a(0x13e),_0x425600);})[_0x204611(0x145)](function(_0x522a2a){const _0x170c2c=_0x204611;logger[_0x170c2c(0x143)](JSON[_0x170c2c(0x146)](_0x522a2a));});});},Migration[a1135_0x4a706e(0x11f)][a1135_0x4a706e(0x13d)]=function(_0x1e8c95,_0xbb404b){const _0x59c80b=a1135_0x4a706e,_0x13230c=this;this[_0x59c80b(0x148)][_0x59c80b(0x11d)](function(){const _0x32c1de=_0x59c80b;return _0x13230c['queryInterface']['removeColumn'](_0x1e8c95,_0xbb404b)[_0x32c1de(0x142)](function(){const _0x3b823b=_0x32c1de;logger['info'](_0x3b823b(0x126),_0xbb404b,_0x1e8c95);})['catch'](function(_0x23bfdb){const _0x1b929b=_0x32c1de;logger[_0x1b929b(0x143)](util[_0x1b929b(0x123)](_0x23bfdb,{'showHidden':![],'depth':null}));});});},Migration[a1135_0x4a706e(0x11f)][a1135_0x4a706e(0x14c)]=function(_0x4cb515,_0x214a18,_0xf790f){const _0x19dbf7=a1135_0x4a706e,_0x177cb1=this;this[_0x19dbf7(0x148)][_0x19dbf7(0x11d)](function(){const _0x242ab6=_0x19dbf7;return _0x177cb1[_0x242ab6(0x144)][_0x242ab6(0x14c)](_0x4cb515,_0x214a18,_0xf790f)[_0x242ab6(0x142)](function(){const _0x5d5a21=_0x242ab6;logger[_0x5d5a21(0x143)](_0x5d5a21(0x127),_0x214a18,_0xf790f,_0x4cb515);})[_0x242ab6(0x145)](function(_0x37caf2){const _0x32064e=_0x242ab6;logger[_0x32064e(0x143)](util[_0x32064e(0x123)](_0x37caf2,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1135_0x4a706e(0x141)]=function(_0x59d52c){const _0x162be8=a1135_0x4a706e;this['sequence'][_0x162be8(0x11d)](function(){return _0x59d52c();});},module[a1135_0x4a706e(0x13c)]={'up':function(_0x2e232a,_0x410360){return new Promise(function(_0x52f354){const _0x557495=a1135_0x1dd6,_0xf27856=new Migration(_0x2e232a);_0xf27856[_0x557495(0x13a)](_0x557495(0x14b)),_0xf27856[_0x557495(0x13a)](_0x557495(0x14a)),_0xf27856[_0x557495(0x13a)](_0x557495(0x124)),_0xf27856['query'](_0x557495(0x125)),_0xf27856[_0x557495(0x131)](_0x557495(0x12a),_0x557495(0x122),{'type':_0x410360[_0x557495(0x13b)],'defaultValue':![]}),_0xf27856[_0x557495(0x131)](_0x557495(0x12a),'mandatoryDispositionPauseId',{'type':_0x410360[_0x557495(0x12c)]}),_0xf27856['query'](_0x557495(0x133)),_0xf27856[_0x557495(0x131)](_0x557495(0x132),_0x557495(0x122),{'type':_0x410360['BOOLEAN'],'defaultValue':![]}),_0xf27856[_0x557495(0x131)](_0x557495(0x132),'mandatoryDispositionPauseId',{'type':_0x410360[_0x557495(0x12c)]}),_0xf27856['query'](_0x557495(0x12b)),_0xf27856[_0x557495(0x131)](_0x557495(0x136),_0x557495(0x122),{'type':_0x410360[_0x557495(0x13b)],'defaultValue':![]}),_0xf27856[_0x557495(0x131)](_0x557495(0x136),'mandatoryDispositionPauseId',{'type':_0x410360['INTEGER']}),_0xf27856[_0x557495(0x13a)]('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'),_0xf27856[_0x557495(0x131)](_0x557495(0x128),'mandatoryDisposition',{'type':_0x410360[_0x557495(0x13b)],'defaultValue':![]}),_0xf27856[_0x557495(0x131)](_0x557495(0x128),_0x557495(0x13f),{'type':_0x410360[_0x557495(0x12c)]}),_0xf27856['query'](_0x557495(0x11e)),_0xf27856[_0x557495(0x131)](_0x557495(0x140),'mandatoryDisposition',{'type':_0x410360['BOOLEAN'],'defaultValue':![]}),_0xf27856[_0x557495(0x131)](_0x557495(0x140),_0x557495(0x13f),{'type':_0x410360[_0x557495(0x12c)]}),_0xf27856[_0x557495(0x13a)](_0x557495(0x130)),_0xf27856['addColumn']('sms_accounts',_0x557495(0x122),{'type':_0x410360[_0x557495(0x13b)],'defaultValue':![]}),_0xf27856[_0x557495(0x131)]('sms_accounts',_0x557495(0x13f),{'type':_0x410360[_0x557495(0x12c)]}),_0xf27856[_0x557495(0x13a)](_0x557495(0x12f)),_0xf27856[_0x557495(0x141)](_0x52f354);});},'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 1942cc1..b19adb4 100644 --- a/server/migrations/2.3.0.js +++ b/server/migrations/2.3.0.js @@ -1 +1 @@ -const a1136_0x276a=['STRING','enqueue','renameColumn','sequelize','apiKeyNonce','addIndex','removeColumn','removeIndex','tail','uniqueid','util','apiKeyIat','addColumn','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','changeColumn','exports','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','users','query\x20%s','addIndex\x20%s\x20%s\x20%s','migration','Added\x20column\x20%s\x20to\x20%s','report_call','catch','sequence','queryInterface','info','stringify','then','final','inspect','query'];(function(_0x250bd2,_0xdcc17c){const _0x276aaa=function(_0x139a93){while(--_0x139a93){_0x250bd2['push'](_0x250bd2['shift']());}};_0x276aaa(++_0xdcc17c);}(a1136_0x276a,0xc2));const a1136_0x139a=function(_0x250bd2,_0xdcc17c){_0x250bd2=_0x250bd2-0x197;let _0x276aaa=a1136_0x276a[_0x250bd2];return _0x276aaa;};const a1136_0x4414b7=a1136_0x139a;'use strict';const util=require(a1136_0x4414b7(0x1ab)),logger=require('../config/logger')(a1136_0x4414b7(0x1b7)),Sequence=function(){};Sequence[a1136_0x4414b7(0x1b2)][a1136_0x4414b7(0x1a2)]=function(_0x4991d1){const _0x1c7b14=a1136_0x4414b7;this[_0x1c7b14(0x1a9)]=this[_0x1c7b14(0x1a9)]?this[_0x1c7b14(0x1a9)]['finally'](_0x4991d1):_0x4991d1();};const Migration=function(_0x5d3f93){const _0x24e95c=a1136_0x4414b7;this[_0x24e95c(0x19a)]=_0x5d3f93,this[_0x24e95c(0x199)]=new Sequence();};Migration[a1136_0x4414b7(0x1b2)][a1136_0x4414b7(0x1b0)]=function(_0x3dafd4,_0x4df3fe,_0x143ab7){const _0x453967=a1136_0x4414b7,_0x113fba=this;this[_0x453967(0x199)][_0x453967(0x1a2)](function(){const _0x439c3a=_0x453967;return _0x113fba[_0x439c3a(0x19a)]['changeColumn'](_0x3dafd4,_0x4df3fe,_0x143ab7)[_0x439c3a(0x19d)](function(){const _0x5672f6=_0x439c3a;logger[_0x5672f6(0x19b)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4df3fe,_0x3dafd4);})['catch'](function(_0x3440b8){const _0x18334c=_0x439c3a;logger['info'](JSON[_0x18334c(0x19c)](_0x3440b8));});});},Migration[a1136_0x4414b7(0x1b2)][a1136_0x4414b7(0x1ad)]=function(_0x254fa3,_0x1f2d09,_0x3ec057){const _0x49cc5a=a1136_0x4414b7,_0x32a31a=this;this[_0x49cc5a(0x199)][_0x49cc5a(0x1a2)](function(){const _0x43bb3b=_0x49cc5a;return _0x32a31a[_0x43bb3b(0x19a)][_0x43bb3b(0x1ad)](_0x254fa3,_0x1f2d09,_0x3ec057)[_0x43bb3b(0x19d)](function(){const _0x4e0ee5=_0x43bb3b;logger[_0x4e0ee5(0x19b)](_0x4e0ee5(0x1b8),_0x1f2d09,_0x254fa3);})[_0x43bb3b(0x198)](function(_0x3a9e19){const _0x364033=_0x43bb3b;logger[_0x364033(0x19b)](JSON[_0x364033(0x19c)](_0x3a9e19));});});},Migration[a1136_0x4414b7(0x1b2)]['dropTable']=function(_0x2c30fe){const _0x345806=a1136_0x4414b7,_0x5ae3b2=this;this[_0x345806(0x199)][_0x345806(0x1a2)](function(){const _0x510dea=_0x345806;return _0x5ae3b2[_0x510dea(0x19a)]['dropTable'](_0x2c30fe,{'force':!![]})[_0x510dea(0x19d)](function(){const _0x43efa1=_0x510dea;logger[_0x43efa1(0x19b)](_0x43efa1(0x1ae),_0x2c30fe);})[_0x510dea(0x198)](function(_0x7a6e29){const _0x550b52=_0x510dea;logger[_0x550b52(0x19b)](JSON['stringify'](_0x7a6e29));});});},Migration['prototype'][a1136_0x4414b7(0x1a6)]=function(_0x1d005e,_0x16e06c,_0x1bdad0){const _0x1ba689=a1136_0x4414b7,_0x54d77f=this;this[_0x1ba689(0x199)][_0x1ba689(0x1a2)](function(){const _0x4c4b67=_0x1ba689;return _0x54d77f['queryInterface'][_0x4c4b67(0x1a6)](_0x1d005e,_0x16e06c,{'indexName':_0x1bdad0})[_0x4c4b67(0x19d)](function(){const _0x312e0f=_0x4c4b67;logger['info'](_0x312e0f(0x1b6),_0x1d005e,_0x16e06c['join'](','),_0x1bdad0);})[_0x4c4b67(0x198)](function(_0xe2dbdf){const _0x826667=_0x4c4b67;logger[_0x826667(0x19b)](JSON['stringify'](_0xe2dbdf));});});},Migration['prototype'][a1136_0x4414b7(0x1a8)]=function(_0x228559,_0x29e41f){const _0x43f580=a1136_0x4414b7,_0xe5f76f=this;this['sequence'][_0x43f580(0x1a2)](function(){const _0x3d24d5=_0x43f580;return _0xe5f76f['queryInterface']['removeIndex'](_0x228559,_0x29e41f)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x228559,_0x29e41f);})[_0x3d24d5(0x198)](function(_0x511390){const _0x220c0d=_0x3d24d5;logger['info'](JSON[_0x220c0d(0x19c)](_0x511390));});});},Migration['prototype'][a1136_0x4414b7(0x1a0)]=function(_0x25a6f4){const _0x4397b4=a1136_0x4414b7,_0x5aa8cb=this;this['sequence'][_0x4397b4(0x1a2)](function(){const _0x2801ed=_0x4397b4;return _0x5aa8cb[_0x2801ed(0x19a)][_0x2801ed(0x1a4)]['query'](_0x25a6f4)[_0x2801ed(0x19d)](function(){const _0x515028=_0x2801ed;logger['info'](_0x515028(0x1b5),_0x25a6f4);})[_0x2801ed(0x198)](function(_0xb3033b){const _0x1dfbc4=_0x2801ed;logger[_0x1dfbc4(0x19b)](JSON[_0x1dfbc4(0x19c)](_0xb3033b));});});},Migration['prototype'][a1136_0x4414b7(0x1a7)]=function(_0x5ddd17,_0x386696){const _0x4d71da=a1136_0x4414b7,_0x1ca505=this;this[_0x4d71da(0x199)]['enqueue'](function(){const _0x24d5e0=_0x4d71da;return _0x1ca505[_0x24d5e0(0x19a)][_0x24d5e0(0x1a7)](_0x5ddd17,_0x386696)[_0x24d5e0(0x19d)](function(){const _0x4d7683=_0x24d5e0;logger[_0x4d7683(0x19b)](_0x4d7683(0x1af),_0x386696,_0x5ddd17);})['catch'](function(_0x4afbeb){const _0x1e3593=_0x24d5e0;logger[_0x1e3593(0x19b)](util[_0x1e3593(0x19f)](_0x4afbeb,{'showHidden':![],'depth':null}));});});},Migration[a1136_0x4414b7(0x1b2)][a1136_0x4414b7(0x1a3)]=function(_0x44c148,_0x411275,_0x325927){const _0x2db52a=a1136_0x4414b7,_0x32f8bd=this;this[_0x2db52a(0x199)]['enqueue'](function(){const _0x56205c=_0x2db52a;return _0x32f8bd[_0x56205c(0x19a)][_0x56205c(0x1a3)](_0x44c148,_0x411275,_0x325927)[_0x56205c(0x19d)](function(){const _0xcdf8a6=_0x56205c;logger[_0xcdf8a6(0x19b)](_0xcdf8a6(0x1b3),_0x411275,_0x325927,_0x44c148);})['catch'](function(_0x409fda){const _0x5d2dcb=_0x56205c;logger[_0x5d2dcb(0x19b)](util[_0x5d2dcb(0x19f)](_0x409fda,{'showHidden':![],'depth':null}));});});},Migration[a1136_0x4414b7(0x1b2)][a1136_0x4414b7(0x19e)]=function(_0x481c12){const _0x8ebf07=a1136_0x4414b7;this[_0x8ebf07(0x199)][_0x8ebf07(0x1a2)](function(){return _0x481c12();});},module[a1136_0x4414b7(0x1b1)]={'up':function(_0x13e4bb,_0x399f57){return new Promise(function(_0x5003e6){const _0x741329=a1136_0x139a,_0x5aa277=new Migration(_0x13e4bb);_0x5aa277['addColumn']('users',_0x741329(0x1a5),{'type':_0x399f57[_0x741329(0x1a1)]}),_0x5aa277['addColumn'](_0x741329(0x1b4),_0x741329(0x1ac),{'type':_0x399f57[_0x741329(0x1a1)]}),_0x5aa277[_0x741329(0x1a6)](_0x741329(0x197),[_0x741329(0x1aa)],_0x741329(0x1aa)),_0x5aa277[_0x741329(0x19e)](_0x5003e6);});},'down':function(){}}; \ No newline at end of file +const a1136_0x4c56=['changeColumn','then','final','table\x20dropped\x20%s','info','migration','users','removeIndex','catch','util','queryInterface','inspect','stringify','../config/logger','enqueue','uniqueid','prototype','addIndex\x20%s\x20%s\x20%s','STRING','dropTable','query\x20%s','apiKeyIat','Added\x20column\x20%s\x20to\x20%s','join','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','exports','apiKeyNonce','addIndex','query','addColumn','sequence','finally','renameColumn','report_call'];(function(_0x38fddb,_0x35e26e){const _0x4c560b=function(_0x331dac){while(--_0x331dac){_0x38fddb['push'](_0x38fddb['shift']());}};_0x4c560b(++_0x35e26e);}(a1136_0x4c56,0x181));const a1136_0x331d=function(_0x38fddb,_0x35e26e){_0x38fddb=_0x38fddb-0x9b;let _0x4c560b=a1136_0x4c56[_0x38fddb];return _0x4c560b;};const a1136_0x936433=a1136_0x331d;'use strict';const util=require(a1136_0x936433(0xaf)),logger=require(a1136_0x936433(0xb3))(a1136_0x936433(0xab)),Sequence=function(){};Sequence[a1136_0x936433(0xb6)][a1136_0x936433(0xb4)]=function(_0x28b217){const _0x3ae2f2=a1136_0x936433;this[_0x3ae2f2(0xbe)]=this[_0x3ae2f2(0xbe)]?this[_0x3ae2f2(0xbe)][_0x3ae2f2(0xa3)](_0x28b217):_0x28b217();};const Migration=function(_0x1d08f2){const _0x1bb49a=a1136_0x936433;this[_0x1bb49a(0xb0)]=_0x1d08f2,this[_0x1bb49a(0xa2)]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x39ce99,_0x1359a8,_0x5a6c73){const _0x15c590=a1136_0x936433,_0x94bec7=this;this[_0x15c590(0xa2)]['enqueue'](function(){const _0x46f823=_0x15c590;return _0x94bec7[_0x46f823(0xb0)][_0x46f823(0xa6)](_0x39ce99,_0x1359a8,_0x5a6c73)['then'](function(){const _0x14a19a=_0x46f823;logger[_0x14a19a(0xaa)](_0x14a19a(0x9b),_0x1359a8,_0x39ce99);})[_0x46f823(0xae)](function(_0x288fde){const _0x6519f8=_0x46f823;logger['info'](JSON[_0x6519f8(0xb2)](_0x288fde));});});},Migration[a1136_0x936433(0xb6)][a1136_0x936433(0xa1)]=function(_0x2d9d11,_0x12acc7,_0x308a37){const _0x2210d0=a1136_0x936433,_0x226620=this;this[_0x2210d0(0xa2)]['enqueue'](function(){const _0x36bd7e=_0x2210d0;return _0x226620['queryInterface'][_0x36bd7e(0xa1)](_0x2d9d11,_0x12acc7,_0x308a37)[_0x36bd7e(0xa7)](function(){const _0x55e7d1=_0x36bd7e;logger[_0x55e7d1(0xaa)](_0x55e7d1(0xbc),_0x12acc7,_0x2d9d11);})[_0x36bd7e(0xae)](function(_0x6f7cf2){const _0x31cdba=_0x36bd7e;logger['info'](JSON[_0x31cdba(0xb2)](_0x6f7cf2));});});},Migration['prototype']['dropTable']=function(_0x532ea5){const _0x2437be=a1136_0x936433,_0x1dedc9=this;this['sequence'][_0x2437be(0xb4)](function(){const _0x2e0faf=_0x2437be;return _0x1dedc9['queryInterface'][_0x2e0faf(0xb9)](_0x532ea5,{'force':!![]})[_0x2e0faf(0xa7)](function(){const _0x2386c=_0x2e0faf;logger[_0x2386c(0xaa)](_0x2386c(0xa9),_0x532ea5);})[_0x2e0faf(0xae)](function(_0x43626d){const _0x248cfa=_0x2e0faf;logger[_0x248cfa(0xaa)](JSON[_0x248cfa(0xb2)](_0x43626d));});});},Migration['prototype'][a1136_0x936433(0x9f)]=function(_0x40aa7e,_0x1dee61,_0x31cebe){const _0x41a2da=a1136_0x936433,_0x4d957f=this;this[_0x41a2da(0xa2)][_0x41a2da(0xb4)](function(){const _0xc90986=_0x41a2da;return _0x4d957f[_0xc90986(0xb0)][_0xc90986(0x9f)](_0x40aa7e,_0x1dee61,{'indexName':_0x31cebe})['then'](function(){const _0x48699d=_0xc90986;logger[_0x48699d(0xaa)](_0x48699d(0xb7),_0x40aa7e,_0x1dee61[_0x48699d(0xbd)](','),_0x31cebe);})[_0xc90986(0xae)](function(_0x284a80){const _0x54900c=_0xc90986;logger[_0x54900c(0xaa)](JSON[_0x54900c(0xb2)](_0x284a80));});});},Migration[a1136_0x936433(0xb6)][a1136_0x936433(0xad)]=function(_0x5864a1,_0x5ef7fa){const _0x7a8f6c=a1136_0x936433,_0x6e66ac=this;this[_0x7a8f6c(0xa2)]['enqueue'](function(){const _0x125a31=_0x7a8f6c;return _0x6e66ac[_0x125a31(0xb0)][_0x125a31(0xad)](_0x5864a1,_0x5ef7fa)[_0x125a31(0xa7)](function(){const _0x26ddd7=_0x125a31;logger[_0x26ddd7(0xaa)]('removeIndex\x20%s\x20%s',_0x5864a1,_0x5ef7fa);})['catch'](function(_0x400403){const _0xeec030=_0x125a31;logger['info'](JSON[_0xeec030(0xb2)](_0x400403));});});},Migration[a1136_0x936433(0xb6)][a1136_0x936433(0xa0)]=function(_0x55d2a3){const _0x10970e=a1136_0x936433,_0x2ea4a8=this;this[_0x10970e(0xa2)][_0x10970e(0xb4)](function(){const _0x3040b7=_0x10970e;return _0x2ea4a8[_0x3040b7(0xb0)]['sequelize']['query'](_0x55d2a3)[_0x3040b7(0xa7)](function(){const _0x5b9fb7=_0x3040b7;logger['info'](_0x5b9fb7(0xba),_0x55d2a3);})[_0x3040b7(0xae)](function(_0x3e32a7){const _0x550f3c=_0x3040b7;logger[_0x550f3c(0xaa)](JSON[_0x550f3c(0xb2)](_0x3e32a7));});});},Migration[a1136_0x936433(0xb6)]['removeColumn']=function(_0x250337,_0x1a6e60){const _0x417cef=a1136_0x936433,_0x5914f7=this;this[_0x417cef(0xa2)][_0x417cef(0xb4)](function(){const _0x21b638=_0x417cef;return _0x5914f7[_0x21b638(0xb0)][_0x21b638(0x9c)](_0x250337,_0x1a6e60)[_0x21b638(0xa7)](function(){const _0x39dacc=_0x21b638;logger[_0x39dacc(0xaa)]('Removed\x20column\x20%s\x20from\x20%s',_0x1a6e60,_0x250337);})[_0x21b638(0xae)](function(_0x589887){const _0xee1c36=_0x21b638;logger[_0xee1c36(0xaa)](util[_0xee1c36(0xb1)](_0x589887,{'showHidden':![],'depth':null}));});});},Migration[a1136_0x936433(0xb6)][a1136_0x936433(0xa4)]=function(_0x38566b,_0x3c8eef,_0x5e7a38){const _0x364636=a1136_0x936433,_0x1f212e=this;this[_0x364636(0xa2)][_0x364636(0xb4)](function(){const _0x17c3fa=_0x364636;return _0x1f212e[_0x17c3fa(0xb0)]['renameColumn'](_0x38566b,_0x3c8eef,_0x5e7a38)['then'](function(){const _0x453919=_0x17c3fa;logger[_0x453919(0xaa)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3c8eef,_0x5e7a38,_0x38566b);})[_0x17c3fa(0xae)](function(_0x4c418f){const _0x37cdef=_0x17c3fa;logger[_0x37cdef(0xaa)](util['inspect'](_0x4c418f,{'showHidden':![],'depth':null}));});});},Migration[a1136_0x936433(0xb6)][a1136_0x936433(0xa8)]=function(_0x47b557){const _0x4dfad7=a1136_0x936433;this['sequence'][_0x4dfad7(0xb4)](function(){return _0x47b557();});},module[a1136_0x936433(0x9d)]={'up':function(_0x1e7aba,_0x2c494e){return new Promise(function(_0x307246){const _0x37500e=a1136_0x331d,_0x5281bb=new Migration(_0x1e7aba);_0x5281bb['addColumn']('users',_0x37500e(0x9e),{'type':_0x2c494e[_0x37500e(0xb8)]}),_0x5281bb[_0x37500e(0xa1)](_0x37500e(0xac),_0x37500e(0xbb),{'type':_0x2c494e[_0x37500e(0xb8)]}),_0x5281bb[_0x37500e(0x9f)](_0x37500e(0xa5),[_0x37500e(0xb5)],'uniqueid'),_0x5281bb[_0x37500e(0xa8)](_0x307246);});},'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 ea3af31..c6b8b87 100644 --- a/server/migrations/2.3.1.js +++ b/server/migrations/2.3.1.js @@ -1 +1 @@ -const a1137_0x5470=['addIndex\x20%s\x20%s\x20%s','query\x20%s','addColumn','query','info','catch','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','then','removeIndex\x20%s\x20%s','inspect','changeColumn','tail','addIndex','table\x20dropped\x20%s','finally','enqueue','dropTable','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','renameColumn','join','final','migration','removeIndex','stringify','Removed\x20column\x20%s\x20from\x20%s','../config/logger','util','removeColumn','prototype'];(function(_0x20550c,_0x8dbdda){const _0x547035=function(_0x10540d){while(--_0x10540d){_0x20550c['push'](_0x20550c['shift']());}};_0x547035(++_0x8dbdda);}(a1137_0x5470,0x79));const a1137_0x1054=function(_0x20550c,_0x8dbdda){_0x20550c=_0x20550c-0x1e1;let _0x547035=a1137_0x5470[_0x20550c];return _0x547035;};const a1137_0x2a86d7=a1137_0x1054;'use strict';const util=require(a1137_0x2a86d7(0x1e9)),logger=require(a1137_0x2a86d7(0x1e8))(a1137_0x2a86d7(0x1e4)),Sequence=function(){};Sequence['prototype'][a1137_0x2a86d7(0x1fd)]=function(_0x2d298a){const _0x583d4b=a1137_0x2a86d7;this['tail']=this['tail']?this[_0x583d4b(0x1f9)][_0x583d4b(0x1fc)](_0x2d298a):_0x2d298a();};const Migration=function(_0x51afb8){const _0x45b9b5=a1137_0x2a86d7;this[_0x45b9b5(0x1f4)]=_0x51afb8,this['sequence']=new Sequence();};Migration[a1137_0x2a86d7(0x1eb)][a1137_0x2a86d7(0x1f8)]=function(_0x59ef05,_0x163c98,_0x109903){const _0x237484=a1137_0x2a86d7,_0x15ffc5=this;this[_0x237484(0x1f2)][_0x237484(0x1fd)](function(){const _0x19944d=_0x237484;return _0x15ffc5[_0x19944d(0x1f4)][_0x19944d(0x1f8)](_0x59ef05,_0x163c98,_0x109903)['then'](function(){const _0xadd6f1=_0x19944d;logger[_0xadd6f1(0x1f0)](_0xadd6f1(0x1f3),_0x163c98,_0x59ef05);})[_0x19944d(0x1f1)](function(_0x48ac17){const _0x1a2f6c=_0x19944d;logger[_0x1a2f6c(0x1f0)](JSON['stringify'](_0x48ac17));});});},Migration[a1137_0x2a86d7(0x1eb)]['addColumn']=function(_0x3a6549,_0x2235e9,_0x458e13){const _0x41ffc3=a1137_0x2a86d7,_0xfe3af8=this;this['sequence'][_0x41ffc3(0x1fd)](function(){const _0x374b98=_0x41ffc3;return _0xfe3af8['queryInterface'][_0x374b98(0x1ee)](_0x3a6549,_0x2235e9,_0x458e13)[_0x374b98(0x1f5)](function(){const _0x1930c9=_0x374b98;logger[_0x1930c9(0x1f0)](_0x1930c9(0x201),_0x2235e9,_0x3a6549);})[_0x374b98(0x1f1)](function(_0x2b0072){const _0xc99136=_0x374b98;logger[_0xc99136(0x1f0)](JSON['stringify'](_0x2b0072));});});},Migration[a1137_0x2a86d7(0x1eb)][a1137_0x2a86d7(0x1fe)]=function(_0x3443d3){const _0x467178=a1137_0x2a86d7,_0x308517=this;this[_0x467178(0x1f2)]['enqueue'](function(){const _0x516984=_0x467178;return _0x308517[_0x516984(0x1f4)][_0x516984(0x1fe)](_0x3443d3,{'force':!![]})[_0x516984(0x1f5)](function(){const _0x19bf64=_0x516984;logger[_0x19bf64(0x1f0)](_0x19bf64(0x1fb),_0x3443d3);})[_0x516984(0x1f1)](function(_0x4ba37b){const _0x578946=_0x516984;logger[_0x578946(0x1f0)](JSON[_0x578946(0x1e6)](_0x4ba37b));});});},Migration['prototype'][a1137_0x2a86d7(0x1fa)]=function(_0x444f5f,_0x3a5722,_0x1bb8e2){const _0x5c6e97=this;this['sequence']['enqueue'](function(){const _0x5ccb51=a1137_0x1054;return _0x5c6e97['queryInterface'][_0x5ccb51(0x1fa)](_0x444f5f,_0x3a5722,{'indexName':_0x1bb8e2})['then'](function(){const _0x53962f=_0x5ccb51;logger[_0x53962f(0x1f0)](_0x53962f(0x1ec),_0x444f5f,_0x3a5722[_0x53962f(0x1e2)](','),_0x1bb8e2);})[_0x5ccb51(0x1f1)](function(_0xb01218){const _0x275ab7=_0x5ccb51;logger[_0x275ab7(0x1f0)](JSON[_0x275ab7(0x1e6)](_0xb01218));});});},Migration[a1137_0x2a86d7(0x1eb)][a1137_0x2a86d7(0x1e5)]=function(_0x54253c,_0x826c89){const _0x5c9fb0=a1137_0x2a86d7,_0x3a9986=this;this[_0x5c9fb0(0x1f2)]['enqueue'](function(){const _0x367e8d=_0x5c9fb0;return _0x3a9986[_0x367e8d(0x1f4)]['removeIndex'](_0x54253c,_0x826c89)['then'](function(){const _0x2cb1b3=_0x367e8d;logger[_0x2cb1b3(0x1f0)](_0x2cb1b3(0x1f6),_0x54253c,_0x826c89);})[_0x367e8d(0x1f1)](function(_0x1de632){const _0x42c82a=_0x367e8d;logger[_0x42c82a(0x1f0)](JSON['stringify'](_0x1de632));});});},Migration[a1137_0x2a86d7(0x1eb)]['query']=function(_0x5b3ebe){const _0x319813=a1137_0x2a86d7,_0x2fe0ef=this;this[_0x319813(0x1f2)][_0x319813(0x1fd)](function(){const _0x156100=_0x319813;return _0x2fe0ef[_0x156100(0x1f4)]['sequelize'][_0x156100(0x1ef)](_0x5b3ebe)['then'](function(){const _0x440c0f=_0x156100;logger[_0x440c0f(0x1f0)](_0x440c0f(0x1ed),_0x5b3ebe);})['catch'](function(_0x69e576){const _0x5f3280=_0x156100;logger[_0x5f3280(0x1f0)](JSON[_0x5f3280(0x1e6)](_0x69e576));});});},Migration['prototype'][a1137_0x2a86d7(0x1ea)]=function(_0xb5bbcd,_0x14b63d){const _0xc08176=a1137_0x2a86d7,_0x4bf90e=this;this[_0xc08176(0x1f2)][_0xc08176(0x1fd)](function(){const _0x52a539=_0xc08176;return _0x4bf90e['queryInterface'][_0x52a539(0x1ea)](_0xb5bbcd,_0x14b63d)[_0x52a539(0x1f5)](function(){const _0x223605=_0x52a539;logger[_0x223605(0x1f0)](_0x223605(0x1e7),_0x14b63d,_0xb5bbcd);})[_0x52a539(0x1f1)](function(_0x388fe5){const _0x4dde24=_0x52a539;logger[_0x4dde24(0x1f0)](util[_0x4dde24(0x1f7)](_0x388fe5,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1137_0x2a86d7(0x1e1)]=function(_0x4e89c4,_0x1306a4,_0x136080){const _0x1b597f=a1137_0x2a86d7,_0x2c0d1c=this;this[_0x1b597f(0x1f2)][_0x1b597f(0x1fd)](function(){const _0x104154=_0x1b597f;return _0x2c0d1c[_0x104154(0x1f4)][_0x104154(0x1e1)](_0x4e89c4,_0x1306a4,_0x136080)[_0x104154(0x1f5)](function(){const _0x42ec1b=_0x104154;logger[_0x42ec1b(0x1f0)](_0x42ec1b(0x200),_0x1306a4,_0x136080,_0x4e89c4);})['catch'](function(_0x9e9f31){const _0x31a947=_0x104154;logger[_0x31a947(0x1f0)](util[_0x31a947(0x1f7)](_0x9e9f31,{'showHidden':![],'depth':null}));});});},Migration[a1137_0x2a86d7(0x1eb)][a1137_0x2a86d7(0x1e3)]=function(_0x1d286d){const _0x35791d=a1137_0x2a86d7;this[_0x35791d(0x1f2)]['enqueue'](function(){return _0x1d286d();});},module[a1137_0x2a86d7(0x1ff)]={'up':function(_0x2a27aa){return new Promise(function(_0x2ac1ec){const _0x25a42f=new Migration(_0x2a27aa);_0x25a42f['final'](_0x2ac1ec);});},'down':function(){}}; \ No newline at end of file +const a1137_0x5ed6=['Changed\x20column\x20%s\x20in\x20table\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','final','finally','removeColumn','sequelize','stringify','query\x20%s','changeColumn','addIndex','tail','info','../config/logger','renameColumn','prototype','exports','Removed\x20column\x20%s\x20from\x20%s','removeIndex','join','enqueue','addColumn','then','util','migration','inspect','dropTable','query','queryInterface'];(function(_0x29c537,_0x1afdf2){const _0x5ed609=function(_0x314720){while(--_0x314720){_0x29c537['push'](_0x29c537['shift']());}};_0x5ed609(++_0x1afdf2);}(a1137_0x5ed6,0xa1));const a1137_0x3147=function(_0x29c537,_0x1afdf2){_0x29c537=_0x29c537-0x144;let _0x5ed609=a1137_0x5ed6[_0x29c537];return _0x5ed609;};const a1137_0x56cb6c=a1137_0x3147;'use strict';const util=require(a1137_0x56cb6c(0x15d)),logger=require(a1137_0x56cb6c(0x153))(a1137_0x56cb6c(0x15e)),Sequence=function(){};Sequence[a1137_0x56cb6c(0x155)][a1137_0x56cb6c(0x15a)]=function(_0x416769){const _0x3ff7ba=a1137_0x56cb6c;this[_0x3ff7ba(0x151)]=this[_0x3ff7ba(0x151)]?this[_0x3ff7ba(0x151)][_0x3ff7ba(0x14a)](_0x416769):_0x416769();};const Migration=function(_0x493bd2){const _0xce3549=a1137_0x56cb6c;this[_0xce3549(0x162)]=_0x493bd2,this['sequence']=new Sequence();};Migration['prototype'][a1137_0x56cb6c(0x14f)]=function(_0x38ed4c,_0xa3e866,_0x5ce6fb){const _0x55bbf1=a1137_0x56cb6c,_0x34cfd2=this;this[_0x55bbf1(0x144)][_0x55bbf1(0x15a)](function(){const _0x4556b7=_0x55bbf1;return _0x34cfd2['queryInterface'][_0x4556b7(0x14f)](_0x38ed4c,_0xa3e866,_0x5ce6fb)[_0x4556b7(0x15c)](function(){const _0x51f907=_0x4556b7;logger['info'](_0x51f907(0x163),_0xa3e866,_0x38ed4c);})[_0x4556b7(0x145)](function(_0x32ce55){const _0x28ea22=_0x4556b7;logger[_0x28ea22(0x152)](JSON[_0x28ea22(0x14d)](_0x32ce55));});});},Migration[a1137_0x56cb6c(0x155)][a1137_0x56cb6c(0x15b)]=function(_0x4fa1d9,_0xb28ed1,_0x1b53e3){const _0x41305b=a1137_0x56cb6c,_0x2a7fb2=this;this[_0x41305b(0x144)][_0x41305b(0x15a)](function(){const _0x52bc35=_0x41305b;return _0x2a7fb2[_0x52bc35(0x162)]['addColumn'](_0x4fa1d9,_0xb28ed1,_0x1b53e3)[_0x52bc35(0x15c)](function(){const _0xf81ea7=_0x52bc35;logger[_0xf81ea7(0x152)]('Added\x20column\x20%s\x20to\x20%s',_0xb28ed1,_0x4fa1d9);})[_0x52bc35(0x145)](function(_0x126d9d){const _0x3a4114=_0x52bc35;logger[_0x3a4114(0x152)](JSON[_0x3a4114(0x14d)](_0x126d9d));});});},Migration[a1137_0x56cb6c(0x155)][a1137_0x56cb6c(0x160)]=function(_0x1a15f9){const _0x1bd63c=a1137_0x56cb6c,_0x44179a=this;this[_0x1bd63c(0x144)][_0x1bd63c(0x15a)](function(){const _0x2ede47=_0x1bd63c;return _0x44179a[_0x2ede47(0x162)][_0x2ede47(0x160)](_0x1a15f9,{'force':!![]})[_0x2ede47(0x15c)](function(){const _0x580b86=_0x2ede47;logger[_0x580b86(0x152)](_0x580b86(0x146),_0x1a15f9);})[_0x2ede47(0x145)](function(_0x1c50a5){const _0x178693=_0x2ede47;logger['info'](JSON[_0x178693(0x14d)](_0x1c50a5));});});},Migration[a1137_0x56cb6c(0x155)][a1137_0x56cb6c(0x150)]=function(_0x1e2cfc,_0x26bde6,_0x503bde){const _0x468ca8=a1137_0x56cb6c,_0xba49c0=this;this[_0x468ca8(0x144)][_0x468ca8(0x15a)](function(){const _0x42f02e=_0x468ca8;return _0xba49c0[_0x42f02e(0x162)][_0x42f02e(0x150)](_0x1e2cfc,_0x26bde6,{'indexName':_0x503bde})['then'](function(){const _0x47c1e0=_0x42f02e;logger['info'](_0x47c1e0(0x147),_0x1e2cfc,_0x26bde6[_0x47c1e0(0x159)](','),_0x503bde);})['catch'](function(_0x1908cc){const _0xde783c=_0x42f02e;logger[_0xde783c(0x152)](JSON['stringify'](_0x1908cc));});});},Migration[a1137_0x56cb6c(0x155)][a1137_0x56cb6c(0x158)]=function(_0x4b11e2,_0x3fd531){const _0x16fb95=a1137_0x56cb6c,_0x3c09af=this;this[_0x16fb95(0x144)][_0x16fb95(0x15a)](function(){const _0x31ae79=_0x16fb95;return _0x3c09af[_0x31ae79(0x162)]['removeIndex'](_0x4b11e2,_0x3fd531)[_0x31ae79(0x15c)](function(){const _0x5563b9=_0x31ae79;logger[_0x5563b9(0x152)]('removeIndex\x20%s\x20%s',_0x4b11e2,_0x3fd531);})[_0x31ae79(0x145)](function(_0x162b88){const _0x1e8085=_0x31ae79;logger[_0x1e8085(0x152)](JSON[_0x1e8085(0x14d)](_0x162b88));});});},Migration[a1137_0x56cb6c(0x155)][a1137_0x56cb6c(0x161)]=function(_0x14f0d9){const _0x4b3a3d=this;this['sequence']['enqueue'](function(){const _0xe59a1a=a1137_0x3147;return _0x4b3a3d['queryInterface'][_0xe59a1a(0x14c)][_0xe59a1a(0x161)](_0x14f0d9)[_0xe59a1a(0x15c)](function(){const _0x591fe6=_0xe59a1a;logger['info'](_0x591fe6(0x14e),_0x14f0d9);})[_0xe59a1a(0x145)](function(_0x3180cf){const _0x8daf0c=_0xe59a1a;logger['info'](JSON[_0x8daf0c(0x14d)](_0x3180cf));});});},Migration[a1137_0x56cb6c(0x155)][a1137_0x56cb6c(0x14b)]=function(_0x6129cc,_0x328278){const _0x2a745f=a1137_0x56cb6c,_0x3cbffd=this;this[_0x2a745f(0x144)][_0x2a745f(0x15a)](function(){const _0x2ca0af=_0x2a745f;return _0x3cbffd['queryInterface'][_0x2ca0af(0x14b)](_0x6129cc,_0x328278)[_0x2ca0af(0x15c)](function(){const _0x1ed062=_0x2ca0af;logger['info'](_0x1ed062(0x157),_0x328278,_0x6129cc);})[_0x2ca0af(0x145)](function(_0x3464ef){const _0x21f9ad=_0x2ca0af;logger['info'](util[_0x21f9ad(0x15f)](_0x3464ef,{'showHidden':![],'depth':null}));});});},Migration[a1137_0x56cb6c(0x155)][a1137_0x56cb6c(0x154)]=function(_0x2e6dc0,_0x1e3865,_0x358d80){const _0x1c9517=a1137_0x56cb6c,_0x2be4d8=this;this['sequence'][_0x1c9517(0x15a)](function(){const _0x52a639=_0x1c9517;return _0x2be4d8[_0x52a639(0x162)]['renameColumn'](_0x2e6dc0,_0x1e3865,_0x358d80)[_0x52a639(0x15c)](function(){const _0x3a114c=_0x52a639;logger[_0x3a114c(0x152)](_0x3a114c(0x148),_0x1e3865,_0x358d80,_0x2e6dc0);})['catch'](function(_0x35caf1){const _0x2304af=_0x52a639;logger[_0x2304af(0x152)](util[_0x2304af(0x15f)](_0x35caf1,{'showHidden':![],'depth':null}));});});},Migration[a1137_0x56cb6c(0x155)][a1137_0x56cb6c(0x149)]=function(_0x2e8452){const _0x8b8ac9=a1137_0x56cb6c;this[_0x8b8ac9(0x144)]['enqueue'](function(){return _0x2e8452();});},module[a1137_0x56cb6c(0x156)]={'up':function(_0x5c61e8){return new Promise(function(_0x3a1e24){const _0x44db37=new Migration(_0x5c61e8);_0x44db37['final'](_0x3a1e24);});},'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 a4ae60f..e4d803d 100644 --- a/server/migrations/2.3.10.js +++ b/server/migrations/2.3.10.js @@ -1 +1 @@ -const a1138_0x3b84=['inspect','enqueue','finally','catch','sequence','removeIndex','info','query','addIndex','STRING','then','prototype','query\x20%s','report_call','addIndex\x20%s\x20%s\x20%s','addColumn','../config/logger','stringify','renameColumn','exports','tail','queryInterface','changeColumn','Removed\x20column\x20%s\x20from\x20%s','sequelize','final','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','dropTable','removeIndex\x20%s\x20%s'];(function(_0x12c216,_0x1ec160){const _0x3b848e=function(_0x5673b3){while(--_0x5673b3){_0x12c216['push'](_0x12c216['shift']());}};_0x3b848e(++_0x1ec160);}(a1138_0x3b84,0x129));const a1138_0x5673=function(_0x12c216,_0x1ec160){_0x12c216=_0x12c216-0xdd;let _0x3b848e=a1138_0x3b84[_0x12c216];return _0x3b848e;};const a1138_0x6e1f63=a1138_0x5673;'use strict';const util=require('util'),logger=require(a1138_0x6e1f63(0xfa))(a1138_0x6e1f63(0xe5)),Sequence=function(){};Sequence[a1138_0x6e1f63(0xf5)]['enqueue']=function(_0x557ac0){const _0x53cd64=a1138_0x6e1f63;this['tail']=this[_0x53cd64(0xdf)]?this['tail'][_0x53cd64(0xec)](_0x557ac0):_0x557ac0();};const Migration=function(_0x560b8e){const _0x48a240=a1138_0x6e1f63;this['queryInterface']=_0x560b8e,this[_0x48a240(0xee)]=new Sequence();};Migration['prototype'][a1138_0x6e1f63(0xe1)]=function(_0x2b48fb,_0x58619f,_0x3efcbf){const _0xeadd4b=a1138_0x6e1f63,_0x4027aa=this;this['sequence'][_0xeadd4b(0xeb)](function(){const _0x3d56e7=_0xeadd4b;return _0x4027aa[_0x3d56e7(0xe0)][_0x3d56e7(0xe1)](_0x2b48fb,_0x58619f,_0x3efcbf)[_0x3d56e7(0xf4)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x58619f,_0x2b48fb);})[_0x3d56e7(0xed)](function(_0x4330e4){const _0x29d1c7=_0x3d56e7;logger[_0x29d1c7(0xf0)](JSON['stringify'](_0x4330e4));});});},Migration['prototype'][a1138_0x6e1f63(0xf9)]=function(_0xadaffa,_0x49dcb1,_0x34cb6f){const _0x5ce15c=this;this['sequence']['enqueue'](function(){const _0x261b0a=a1138_0x5673;return _0x5ce15c[_0x261b0a(0xe0)]['addColumn'](_0xadaffa,_0x49dcb1,_0x34cb6f)[_0x261b0a(0xf4)](function(){const _0x31d2b1=_0x261b0a;logger[_0x31d2b1(0xf0)]('Added\x20column\x20%s\x20to\x20%s',_0x49dcb1,_0xadaffa);})[_0x261b0a(0xed)](function(_0x30f583){const _0x500be4=_0x261b0a;logger[_0x500be4(0xf0)](JSON[_0x500be4(0xfb)](_0x30f583));});});},Migration[a1138_0x6e1f63(0xf5)]['dropTable']=function(_0x13e5e8){const _0x54101b=a1138_0x6e1f63,_0x2a65cf=this;this['sequence'][_0x54101b(0xeb)](function(){const _0x27e0cb=_0x54101b;return _0x2a65cf['queryInterface'][_0x27e0cb(0xe8)](_0x13e5e8,{'force':!![]})[_0x27e0cb(0xf4)](function(){const _0x5d9407=_0x27e0cb;logger[_0x5d9407(0xf0)]('table\x20dropped\x20%s',_0x13e5e8);})[_0x27e0cb(0xed)](function(_0x475597){const _0x21356e=_0x27e0cb;logger[_0x21356e(0xf0)](JSON[_0x21356e(0xfb)](_0x475597));});});},Migration[a1138_0x6e1f63(0xf5)][a1138_0x6e1f63(0xf2)]=function(_0x4a3f09,_0x57d0f8,_0x26496a){const _0x39487c=a1138_0x6e1f63,_0x52b152=this;this[_0x39487c(0xee)]['enqueue'](function(){const _0x3e4d16=_0x39487c;return _0x52b152[_0x3e4d16(0xe0)][_0x3e4d16(0xf2)](_0x4a3f09,_0x57d0f8,{'indexName':_0x26496a})[_0x3e4d16(0xf4)](function(){const _0x13f1bb=_0x3e4d16;logger[_0x13f1bb(0xf0)](_0x13f1bb(0xf8),_0x4a3f09,_0x57d0f8['join'](','),_0x26496a);})[_0x3e4d16(0xed)](function(_0x50d979){const _0x4b28c6=_0x3e4d16;logger['info'](JSON[_0x4b28c6(0xfb)](_0x50d979));});});},Migration['prototype']['removeIndex']=function(_0x402e48,_0x559948){const _0x1dda4d=a1138_0x6e1f63,_0x4ec23d=this;this[_0x1dda4d(0xee)][_0x1dda4d(0xeb)](function(){const _0x3ba9de=_0x1dda4d;return _0x4ec23d[_0x3ba9de(0xe0)][_0x3ba9de(0xef)](_0x402e48,_0x559948)['then'](function(){const _0x46b477=_0x3ba9de;logger[_0x46b477(0xf0)](_0x46b477(0xe9),_0x402e48,_0x559948);})['catch'](function(_0x2e361b){const _0x4f9013=_0x3ba9de;logger[_0x4f9013(0xf0)](JSON['stringify'](_0x2e361b));});});},Migration[a1138_0x6e1f63(0xf5)][a1138_0x6e1f63(0xf1)]=function(_0x209786){const _0x400b9b=a1138_0x6e1f63,_0x1a80be=this;this[_0x400b9b(0xee)][_0x400b9b(0xeb)](function(){const _0x3d35f0=_0x400b9b;return _0x1a80be['queryInterface'][_0x3d35f0(0xe3)]['query'](_0x209786)[_0x3d35f0(0xf4)](function(){const _0x22d3aa=_0x3d35f0;logger[_0x22d3aa(0xf0)](_0x22d3aa(0xf6),_0x209786);})['catch'](function(_0x160f68){const _0x47f0bc=_0x3d35f0;logger[_0x47f0bc(0xf0)](JSON[_0x47f0bc(0xfb)](_0x160f68));});});},Migration['prototype'][a1138_0x6e1f63(0xe7)]=function(_0x1e403e,_0x56116c){const _0x52659c=a1138_0x6e1f63,_0x54b61c=this;this[_0x52659c(0xee)][_0x52659c(0xeb)](function(){const _0x42e0fb=_0x52659c;return _0x54b61c[_0x42e0fb(0xe0)][_0x42e0fb(0xe7)](_0x1e403e,_0x56116c)['then'](function(){const _0x554c4f=_0x42e0fb;logger[_0x554c4f(0xf0)](_0x554c4f(0xe2),_0x56116c,_0x1e403e);})[_0x42e0fb(0xed)](function(_0x45d877){const _0x37b266=_0x42e0fb;logger[_0x37b266(0xf0)](util['inspect'](_0x45d877,{'showHidden':![],'depth':null}));});});},Migration[a1138_0x6e1f63(0xf5)][a1138_0x6e1f63(0xdd)]=function(_0x4ef6b3,_0x41c7b0,_0x5b9f53){const _0x3ee768=a1138_0x6e1f63,_0xb8da2=this;this[_0x3ee768(0xee)][_0x3ee768(0xeb)](function(){const _0x5926b8=_0x3ee768;return _0xb8da2[_0x5926b8(0xe0)][_0x5926b8(0xdd)](_0x4ef6b3,_0x41c7b0,_0x5b9f53)[_0x5926b8(0xf4)](function(){const _0x4ed380=_0x5926b8;logger[_0x4ed380(0xf0)](_0x4ed380(0xe6),_0x41c7b0,_0x5b9f53,_0x4ef6b3);})[_0x5926b8(0xed)](function(_0x3ffd96){const _0xcdb23a=_0x5926b8;logger['info'](util[_0xcdb23a(0xea)](_0x3ffd96,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1138_0x6e1f63(0xe4)]=function(_0x17abd3){const _0x34e92b=a1138_0x6e1f63;this[_0x34e92b(0xee)]['enqueue'](function(){return _0x17abd3();});},module[a1138_0x6e1f63(0xde)]={'up':function(_0x8ae9df,_0x1aef4b){return new Promise(function(_0x270b4b){const _0x3103ee=a1138_0x5673,_0x1c0621=new Migration(_0x8ae9df);_0x1c0621[_0x3103ee(0xf9)](_0x3103ee(0xf7),'sipcallid',{'type':_0x1aef4b[_0x3103ee(0xf3)]}),_0x1c0621['final'](_0x270b4b);});},'down':function(){}}; \ No newline at end of file +const a1138_0x10d5=['addColumn','exports','changeColumn','then','migration','sequelize','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','sipcallid','addIndex','catch','info','removeColumn','Added\x20column\x20%s\x20to\x20%s','sequence','enqueue','query\x20%s','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','query','queryInterface','finally','join','prototype','dropTable','stringify','removeIndex','util','inspect'];(function(_0x57002d,_0x4a69be){const _0x10d5ac=function(_0x44e05a){while(--_0x44e05a){_0x57002d['push'](_0x57002d['shift']());}};_0x10d5ac(++_0x4a69be);}(a1138_0x10d5,0x181));const a1138_0x44e0=function(_0x57002d,_0x4a69be){_0x57002d=_0x57002d-0x1f4;let _0x10d5ac=a1138_0x10d5[_0x57002d];return _0x10d5ac;};const a1138_0x4f5831=a1138_0x44e0;'use strict';const util=require(a1138_0x4f5831(0x1f7)),logger=require('../config/logger')(a1138_0x4f5831(0x1fd)),Sequence=function(){};Sequence[a1138_0x4f5831(0x211)][a1138_0x4f5831(0x208)]=function(_0x3499b0){const _0x13acac=a1138_0x4f5831;this[_0x13acac(0x20c)]=this[_0x13acac(0x20c)]?this['tail'][_0x13acac(0x20f)](_0x3499b0):_0x3499b0();};const Migration=function(_0x15adb8){const _0x258e32=a1138_0x4f5831;this['queryInterface']=_0x15adb8,this[_0x258e32(0x207)]=new Sequence();};Migration[a1138_0x4f5831(0x211)][a1138_0x4f5831(0x1fb)]=function(_0x36e503,_0x22f043,_0x590e18){const _0x154c89=a1138_0x4f5831,_0x307131=this;this[_0x154c89(0x207)][_0x154c89(0x208)](function(){const _0x32de64=_0x154c89;return _0x307131['queryInterface'][_0x32de64(0x1fb)](_0x36e503,_0x22f043,_0x590e18)['then'](function(){const _0x503724=_0x32de64;logger['info'](_0x503724(0x200),_0x22f043,_0x36e503);})[_0x32de64(0x203)](function(_0x268f91){const _0x34bc90=_0x32de64;logger['info'](JSON[_0x34bc90(0x1f5)](_0x268f91));});});},Migration['prototype'][a1138_0x4f5831(0x1f9)]=function(_0x68ecb3,_0x1dfd75,_0x3c92d4){const _0x323664=a1138_0x4f5831,_0x382744=this;this[_0x323664(0x207)][_0x323664(0x208)](function(){const _0x3125c6=_0x323664;return _0x382744[_0x3125c6(0x20e)][_0x3125c6(0x1f9)](_0x68ecb3,_0x1dfd75,_0x3c92d4)[_0x3125c6(0x1fc)](function(){const _0x3d8c79=_0x3125c6;logger[_0x3d8c79(0x204)](_0x3d8c79(0x206),_0x1dfd75,_0x68ecb3);})['catch'](function(_0x5528f9){const _0x33449e=_0x3125c6;logger[_0x33449e(0x204)](JSON['stringify'](_0x5528f9));});});},Migration['prototype'][a1138_0x4f5831(0x1f4)]=function(_0x2d17e5){const _0x4c4d08=a1138_0x4f5831,_0x42d6d3=this;this['sequence'][_0x4c4d08(0x208)](function(){const _0x4989cf=_0x4c4d08;return _0x42d6d3[_0x4989cf(0x20e)]['dropTable'](_0x2d17e5,{'force':!![]})[_0x4989cf(0x1fc)](function(){logger['info']('table\x20dropped\x20%s',_0x2d17e5);})[_0x4989cf(0x203)](function(_0x5207cc){const _0x49ede2=_0x4989cf;logger[_0x49ede2(0x204)](JSON[_0x49ede2(0x1f5)](_0x5207cc));});});},Migration[a1138_0x4f5831(0x211)][a1138_0x4f5831(0x202)]=function(_0x30f54d,_0x5795a5,_0x3575d9){const _0x364019=a1138_0x4f5831,_0xd9731a=this;this['sequence'][_0x364019(0x208)](function(){const _0x3808a7=_0x364019;return _0xd9731a[_0x3808a7(0x20e)][_0x3808a7(0x202)](_0x30f54d,_0x5795a5,{'indexName':_0x3575d9})[_0x3808a7(0x1fc)](function(){const _0x575a4b=_0x3808a7;logger[_0x575a4b(0x204)]('addIndex\x20%s\x20%s\x20%s',_0x30f54d,_0x5795a5[_0x575a4b(0x210)](','),_0x3575d9);})[_0x3808a7(0x203)](function(_0x3de196){const _0x134b47=_0x3808a7;logger['info'](JSON[_0x134b47(0x1f5)](_0x3de196));});});},Migration[a1138_0x4f5831(0x211)][a1138_0x4f5831(0x1f6)]=function(_0x44efe2,_0x2e667f){const _0x58b9ab=a1138_0x4f5831,_0x402884=this;this[_0x58b9ab(0x207)][_0x58b9ab(0x208)](function(){const _0x252118=_0x58b9ab;return _0x402884[_0x252118(0x20e)][_0x252118(0x1f6)](_0x44efe2,_0x2e667f)[_0x252118(0x1fc)](function(){const _0x14c1e5=_0x252118;logger[_0x14c1e5(0x204)]('removeIndex\x20%s\x20%s',_0x44efe2,_0x2e667f);})[_0x252118(0x203)](function(_0x354b90){const _0xc1c2f1=_0x252118;logger[_0xc1c2f1(0x204)](JSON['stringify'](_0x354b90));});});},Migration[a1138_0x4f5831(0x211)][a1138_0x4f5831(0x20d)]=function(_0x3519fe){const _0x4060f5=a1138_0x4f5831,_0x142b04=this;this[_0x4060f5(0x207)][_0x4060f5(0x208)](function(){const _0x42ab19=_0x4060f5;return _0x142b04[_0x42ab19(0x20e)][_0x42ab19(0x1fe)][_0x42ab19(0x20d)](_0x3519fe)[_0x42ab19(0x1fc)](function(){const _0x17ddb2=_0x42ab19;logger['info'](_0x17ddb2(0x209),_0x3519fe);})[_0x42ab19(0x203)](function(_0x367779){const _0x55bb42=_0x42ab19;logger['info'](JSON[_0x55bb42(0x1f5)](_0x367779));});});},Migration[a1138_0x4f5831(0x211)][a1138_0x4f5831(0x205)]=function(_0x349254,_0x378d7f){const _0x604b56=a1138_0x4f5831,_0x1ae3b1=this;this[_0x604b56(0x207)][_0x604b56(0x208)](function(){const _0x319325=_0x604b56;return _0x1ae3b1['queryInterface'][_0x319325(0x205)](_0x349254,_0x378d7f)[_0x319325(0x1fc)](function(){const _0x20abb2=_0x319325;logger[_0x20abb2(0x204)]('Removed\x20column\x20%s\x20from\x20%s',_0x378d7f,_0x349254);})[_0x319325(0x203)](function(_0x18aae5){const _0x5ec0c3=_0x319325;logger[_0x5ec0c3(0x204)](util['inspect'](_0x18aae5,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x3502e4,_0x5c0f52,_0x5c9945){const _0x5c0f82=a1138_0x4f5831,_0x49b72f=this;this[_0x5c0f82(0x207)][_0x5c0f82(0x208)](function(){const _0x32ad11=_0x5c0f82;return _0x49b72f[_0x32ad11(0x20e)][_0x32ad11(0x1ff)](_0x3502e4,_0x5c0f52,_0x5c9945)[_0x32ad11(0x1fc)](function(){const _0xb96f2f=_0x32ad11;logger['info'](_0xb96f2f(0x20b),_0x5c0f52,_0x5c9945,_0x3502e4);})[_0x32ad11(0x203)](function(_0x9bd4cb){const _0x5db50d=_0x32ad11;logger[_0x5db50d(0x204)](util[_0x5db50d(0x1f8)](_0x9bd4cb,{'showHidden':![],'depth':null}));});});},Migration[a1138_0x4f5831(0x211)][a1138_0x4f5831(0x20a)]=function(_0x2122b1){const _0x52357f=a1138_0x4f5831;this['sequence'][_0x52357f(0x208)](function(){return _0x2122b1();});},module[a1138_0x4f5831(0x1fa)]={'up':function(_0x5e900d,_0x448cf7){return new Promise(function(_0x15281c){const _0x4b4533=a1138_0x44e0,_0x171b7b=new Migration(_0x5e900d);_0x171b7b[_0x4b4533(0x1f9)]('report_call',_0x4b4533(0x201),{'type':_0x448cf7['STRING']}),_0x171b7b[_0x4b4533(0x20a)](_0x15281c);});},'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 3719996..8c0a629 100644 --- a/server/migrations/2.3.2.js +++ b/server/migrations/2.3.2.js @@ -1 +1 @@ -const a1139_0xac3e=['query\x20%s','Removed\x20column\x20%s\x20from\x20%s','catch','finally','dropTable','sequence','rtlSupport','join','addIndex\x20%s\x20%s\x20%s','final','Changed\x20column\x20%s\x20in\x20table\x20%s','BOOLEAN','queryInterface','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','table\x20dropped\x20%s','../config/logger','ALTER\x20TABLE\x20int_dynamics365_accounts\x20ENCRYPTION=\x27Y\x27;','exports','addColumn','stringify','migration','renameColumn','removeColumn','changeColumn','enqueue','addIndex','util','sequelize','inspect','prototype','tail','info','then'];(function(_0x107a54,_0x1c165d){const _0xac3e74=function(_0x4e5fea){while(--_0x4e5fea){_0x107a54['push'](_0x107a54['shift']());}};_0xac3e74(++_0x1c165d);}(a1139_0xac3e,0x13b));const a1139_0x4e5f=function(_0x107a54,_0x1c165d){_0x107a54=_0x107a54-0xfe;let _0xac3e74=a1139_0xac3e[_0x107a54];return _0xac3e74;};const a1139_0x29ece3=a1139_0x4e5f;'use strict';const util=require(a1139_0x29ece3(0x11a)),logger=require(a1139_0x29ece3(0x10f))(a1139_0x29ece3(0x114)),Sequence=function(){};Sequence[a1139_0x29ece3(0x11d)][a1139_0x29ece3(0x118)]=function(_0x282ea5){const _0x39fa6a=a1139_0x29ece3;this['tail']=this[_0x39fa6a(0x11e)]?this['tail'][_0x39fa6a(0x101)](_0x282ea5):_0x282ea5();};const Migration=function(_0xa89be3){const _0x5ad078=a1139_0x29ece3;this['queryInterface']=_0xa89be3,this[_0x5ad078(0x103)]=new Sequence();};Migration[a1139_0x29ece3(0x11d)][a1139_0x29ece3(0x117)]=function(_0x649bca,_0x4cc1d8,_0x175877){const _0x4fe870=this;this['sequence']['enqueue'](function(){const _0x4e2e04=a1139_0x4e5f;return _0x4fe870[_0x4e2e04(0x10a)][_0x4e2e04(0x117)](_0x649bca,_0x4cc1d8,_0x175877)[_0x4e2e04(0x120)](function(){const _0x265d47=_0x4e2e04;logger['info'](_0x265d47(0x108),_0x4cc1d8,_0x649bca);})[_0x4e2e04(0x100)](function(_0x3f81f3){logger['info'](JSON['stringify'](_0x3f81f3));});});},Migration[a1139_0x29ece3(0x11d)]['addColumn']=function(_0x408545,_0x17e17f,_0x5b137a){const _0x347339=a1139_0x29ece3,_0x50c71c=this;this[_0x347339(0x103)][_0x347339(0x118)](function(){const _0x30c1cd=_0x347339;return _0x50c71c[_0x30c1cd(0x10a)][_0x30c1cd(0x112)](_0x408545,_0x17e17f,_0x5b137a)[_0x30c1cd(0x120)](function(){const _0x27d44a=_0x30c1cd;logger[_0x27d44a(0x11f)]('Added\x20column\x20%s\x20to\x20%s',_0x17e17f,_0x408545);})[_0x30c1cd(0x100)](function(_0x56e514){const _0x2f488e=_0x30c1cd;logger[_0x2f488e(0x11f)](JSON[_0x2f488e(0x113)](_0x56e514));});});},Migration['prototype'][a1139_0x29ece3(0x102)]=function(_0x1eb0fb){const _0x1bd9e1=a1139_0x29ece3,_0x397b75=this;this[_0x1bd9e1(0x103)][_0x1bd9e1(0x118)](function(){const _0x357a28=_0x1bd9e1;return _0x397b75[_0x357a28(0x10a)][_0x357a28(0x102)](_0x1eb0fb,{'force':!![]})[_0x357a28(0x120)](function(){const _0x4e92cd=_0x357a28;logger[_0x4e92cd(0x11f)](_0x4e92cd(0x10e),_0x1eb0fb);})[_0x357a28(0x100)](function(_0x5bfec5){const _0x43b093=_0x357a28;logger[_0x43b093(0x11f)](JSON['stringify'](_0x5bfec5));});});},Migration[a1139_0x29ece3(0x11d)][a1139_0x29ece3(0x119)]=function(_0x52db9a,_0x538365,_0x275202){const _0x51967d=a1139_0x29ece3,_0x43b976=this;this['sequence'][_0x51967d(0x118)](function(){const _0x153336=_0x51967d;return _0x43b976[_0x153336(0x10a)]['addIndex'](_0x52db9a,_0x538365,{'indexName':_0x275202})[_0x153336(0x120)](function(){const _0x5e07bb=_0x153336;logger[_0x5e07bb(0x11f)](_0x5e07bb(0x106),_0x52db9a,_0x538365[_0x5e07bb(0x105)](','),_0x275202);})['catch'](function(_0x2fbdc6){const _0x5c068e=_0x153336;logger[_0x5c068e(0x11f)](JSON[_0x5c068e(0x113)](_0x2fbdc6));});});},Migration[a1139_0x29ece3(0x11d)]['removeIndex']=function(_0x49951a,_0x37e0a7){const _0x21c2fb=a1139_0x29ece3,_0x26d670=this;this[_0x21c2fb(0x103)][_0x21c2fb(0x118)](function(){const _0x38eccc=_0x21c2fb;return _0x26d670[_0x38eccc(0x10a)]['removeIndex'](_0x49951a,_0x37e0a7)[_0x38eccc(0x120)](function(){const _0x9cd32d=_0x38eccc;logger[_0x9cd32d(0x11f)](_0x9cd32d(0x10b),_0x49951a,_0x37e0a7);})[_0x38eccc(0x100)](function(_0x5953bb){const _0x121a5b=_0x38eccc;logger[_0x121a5b(0x11f)](JSON[_0x121a5b(0x113)](_0x5953bb));});});},Migration['prototype']['query']=function(_0x31256f){const _0x553311=a1139_0x29ece3,_0x2ed4c5=this;this[_0x553311(0x103)][_0x553311(0x118)](function(){const _0x2e23fe=_0x553311;return _0x2ed4c5[_0x2e23fe(0x10a)][_0x2e23fe(0x11b)][_0x2e23fe(0x10d)](_0x31256f)[_0x2e23fe(0x120)](function(){const _0x28fdf5=_0x2e23fe;logger['info'](_0x28fdf5(0xfe),_0x31256f);})['catch'](function(_0x2d8a26){const _0x5ea8d5=_0x2e23fe;logger[_0x5ea8d5(0x11f)](JSON[_0x5ea8d5(0x113)](_0x2d8a26));});});},Migration[a1139_0x29ece3(0x11d)][a1139_0x29ece3(0x116)]=function(_0x4a6c15,_0x542041){const _0x131043=a1139_0x29ece3,_0x3656d2=this;this[_0x131043(0x103)][_0x131043(0x118)](function(){const _0x70d425=_0x131043;return _0x3656d2['queryInterface'][_0x70d425(0x116)](_0x4a6c15,_0x542041)['then'](function(){const _0x534deb=_0x70d425;logger[_0x534deb(0x11f)](_0x534deb(0xff),_0x542041,_0x4a6c15);})[_0x70d425(0x100)](function(_0x58eaad){const _0x21056e=_0x70d425;logger[_0x21056e(0x11f)](util[_0x21056e(0x11c)](_0x58eaad,{'showHidden':![],'depth':null}));});});},Migration[a1139_0x29ece3(0x11d)][a1139_0x29ece3(0x115)]=function(_0x1efc30,_0x1c7395,_0x30c67c){const _0x28e537=a1139_0x29ece3,_0x42d045=this;this[_0x28e537(0x103)]['enqueue'](function(){const _0x2b2b1c=_0x28e537;return _0x42d045[_0x2b2b1c(0x10a)]['renameColumn'](_0x1efc30,_0x1c7395,_0x30c67c)[_0x2b2b1c(0x120)](function(){const _0xeb0b9d=_0x2b2b1c;logger[_0xeb0b9d(0x11f)](_0xeb0b9d(0x10c),_0x1c7395,_0x30c67c,_0x1efc30);})[_0x2b2b1c(0x100)](function(_0x48ab2d){const _0x4dc905=_0x2b2b1c;logger[_0x4dc905(0x11f)](util[_0x4dc905(0x11c)](_0x48ab2d,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1139_0x29ece3(0x107)]=function(_0x12eefe){const _0x448814=a1139_0x29ece3;this[_0x448814(0x103)][_0x448814(0x118)](function(){return _0x12eefe();});},module[a1139_0x29ece3(0x111)]={'up':function(_0x48be6a,_0x3e4581){return new Promise(function(_0x2c98a3){const _0x534bf1=a1139_0x4e5f,_0x4082a7=new Migration(_0x48be6a);_0x4082a7[_0x534bf1(0x10d)](_0x534bf1(0x110)),_0x4082a7[_0x534bf1(0x10d)]('ALTER\x20TABLE\x20int_servicenow_accounts\x20ENCRYPTION=\x27Y\x27;'),_0x4082a7[_0x534bf1(0x112)]('settings',_0x534bf1(0x104),{'type':_0x3e4581[_0x534bf1(0x109)],'defaultValue':![]}),_0x4082a7[_0x534bf1(0x107)](_0x2c98a3);});},'down':function(){}}; \ No newline at end of file +const a1139_0x351a=['info','rtlSupport','query\x20%s','sequence','BOOLEAN','enqueue','Added\x20column\x20%s\x20to\x20%s','../config/logger','table\x20dropped\x20%s','stringify','changeColumn','ALTER\x20TABLE\x20int_dynamics365_accounts\x20ENCRYPTION=\x27Y\x27;','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s','migration','removeIndex','inspect','catch','then','prototype','dropTable','util','renameColumn','addIndex','ALTER\x20TABLE\x20int_servicenow_accounts\x20ENCRYPTION=\x27Y\x27;','removeColumn','final','queryInterface','query','sequelize','join','addColumn'];(function(_0x393b4d,_0x1d7680){const _0x351afc=function(_0x4fca07){while(--_0x4fca07){_0x393b4d['push'](_0x393b4d['shift']());}};_0x351afc(++_0x1d7680);}(a1139_0x351a,0x12e));const a1139_0x4fca=function(_0x393b4d,_0x1d7680){_0x393b4d=_0x393b4d-0x131;let _0x351afc=a1139_0x351a[_0x393b4d];return _0x351afc;};const a1139_0x56fa46=a1139_0x4fca;'use strict';const util=require(a1139_0x56fa46(0x138)),logger=require(a1139_0x56fa46(0x14a))(a1139_0x56fa46(0x131)),Sequence=function(){};Sequence[a1139_0x56fa46(0x136)][a1139_0x56fa46(0x148)]=function(_0x1a4edd){this['tail']=this['tail']?this['tail']['finally'](_0x1a4edd):_0x1a4edd();};const Migration=function(_0x9c2189){const _0x3c024d=a1139_0x56fa46;this[_0x3c024d(0x13e)]=_0x9c2189,this['sequence']=new Sequence();};Migration[a1139_0x56fa46(0x136)][a1139_0x56fa46(0x14d)]=function(_0x5f07f6,_0x51b74a,_0x34f6bb){const _0x1353c7=a1139_0x56fa46,_0x559195=this;this['sequence'][_0x1353c7(0x148)](function(){const _0x23d641=_0x1353c7;return _0x559195[_0x23d641(0x13e)][_0x23d641(0x14d)](_0x5f07f6,_0x51b74a,_0x34f6bb)[_0x23d641(0x135)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x51b74a,_0x5f07f6);})[_0x23d641(0x134)](function(_0x572a40){const _0x105f52=_0x23d641;logger[_0x105f52(0x143)](JSON['stringify'](_0x572a40));});});},Migration['prototype']['addColumn']=function(_0x34492a,_0x5a80ae,_0x422688){const _0x2e8877=a1139_0x56fa46,_0x84259e=this;this[_0x2e8877(0x146)][_0x2e8877(0x148)](function(){const _0x19c110=_0x2e8877;return _0x84259e['queryInterface'][_0x19c110(0x142)](_0x34492a,_0x5a80ae,_0x422688)[_0x19c110(0x135)](function(){const _0x2ce2fa=_0x19c110;logger[_0x2ce2fa(0x143)](_0x2ce2fa(0x149),_0x5a80ae,_0x34492a);})[_0x19c110(0x134)](function(_0x2ebe63){const _0x1a46d7=_0x19c110;logger[_0x1a46d7(0x143)](JSON[_0x1a46d7(0x14c)](_0x2ebe63));});});},Migration[a1139_0x56fa46(0x136)][a1139_0x56fa46(0x137)]=function(_0x2c3083){const _0xc7b35=a1139_0x56fa46,_0x1e90ae=this;this[_0xc7b35(0x146)][_0xc7b35(0x148)](function(){const _0x24ed76=_0xc7b35;return _0x1e90ae[_0x24ed76(0x13e)][_0x24ed76(0x137)](_0x2c3083,{'force':!![]})['then'](function(){const _0x4e7e02=_0x24ed76;logger[_0x4e7e02(0x143)](_0x4e7e02(0x14b),_0x2c3083);})[_0x24ed76(0x134)](function(_0x45d986){const _0x401abc=_0x24ed76;logger[_0x401abc(0x143)](JSON['stringify'](_0x45d986));});});},Migration[a1139_0x56fa46(0x136)][a1139_0x56fa46(0x13a)]=function(_0x9404b6,_0x47a325,_0x455b5b){const _0x505003=a1139_0x56fa46,_0x194ee6=this;this[_0x505003(0x146)]['enqueue'](function(){const _0x2ef65d=_0x505003;return _0x194ee6[_0x2ef65d(0x13e)]['addIndex'](_0x9404b6,_0x47a325,{'indexName':_0x455b5b})[_0x2ef65d(0x135)](function(){const _0x183b02=_0x2ef65d;logger[_0x183b02(0x143)](_0x183b02(0x150),_0x9404b6,_0x47a325[_0x183b02(0x141)](','),_0x455b5b);})[_0x2ef65d(0x134)](function(_0x910cf1){const _0x42bd69=_0x2ef65d;logger[_0x42bd69(0x143)](JSON['stringify'](_0x910cf1));});});},Migration[a1139_0x56fa46(0x136)][a1139_0x56fa46(0x132)]=function(_0x373e80,_0x11fa19){const _0x32957f=a1139_0x56fa46,_0x43ca2b=this;this[_0x32957f(0x146)][_0x32957f(0x148)](function(){const _0x490b68=_0x32957f;return _0x43ca2b[_0x490b68(0x13e)]['removeIndex'](_0x373e80,_0x11fa19)[_0x490b68(0x135)](function(){const _0x2164e3=_0x490b68;logger[_0x2164e3(0x143)]('removeIndex\x20%s\x20%s',_0x373e80,_0x11fa19);})['catch'](function(_0x2aab78){const _0x51301f=_0x490b68;logger[_0x51301f(0x143)](JSON[_0x51301f(0x14c)](_0x2aab78));});});},Migration[a1139_0x56fa46(0x136)]['query']=function(_0x421f59){const _0x5072a0=a1139_0x56fa46,_0x10d291=this;this[_0x5072a0(0x146)][_0x5072a0(0x148)](function(){const _0x6d2f61=_0x5072a0;return _0x10d291[_0x6d2f61(0x13e)][_0x6d2f61(0x140)][_0x6d2f61(0x13f)](_0x421f59)[_0x6d2f61(0x135)](function(){const _0x55144e=_0x6d2f61;logger[_0x55144e(0x143)](_0x55144e(0x145),_0x421f59);})[_0x6d2f61(0x134)](function(_0x2e1818){const _0x332bd3=_0x6d2f61;logger[_0x332bd3(0x143)](JSON['stringify'](_0x2e1818));});});},Migration['prototype'][a1139_0x56fa46(0x13c)]=function(_0x2bc6e1,_0xfa3965){const _0x26d604=a1139_0x56fa46,_0x21da4d=this;this['sequence'][_0x26d604(0x148)](function(){const _0x103c83=_0x26d604;return _0x21da4d[_0x103c83(0x13e)][_0x103c83(0x13c)](_0x2bc6e1,_0xfa3965)[_0x103c83(0x135)](function(){const _0x37543f=_0x103c83;logger[_0x37543f(0x143)](_0x37543f(0x14f),_0xfa3965,_0x2bc6e1);})[_0x103c83(0x134)](function(_0x3de3f){const _0x748465=_0x103c83;logger[_0x748465(0x143)](util[_0x748465(0x133)](_0x3de3f,{'showHidden':![],'depth':null}));});});},Migration[a1139_0x56fa46(0x136)][a1139_0x56fa46(0x139)]=function(_0x544be6,_0x3ba933,_0x323477){const _0x4ab8da=a1139_0x56fa46,_0x424c8e=this;this[_0x4ab8da(0x146)]['enqueue'](function(){const _0x273e0c=_0x4ab8da;return _0x424c8e[_0x273e0c(0x13e)][_0x273e0c(0x139)](_0x544be6,_0x3ba933,_0x323477)[_0x273e0c(0x135)](function(){const _0x5634fd=_0x273e0c;logger[_0x5634fd(0x143)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3ba933,_0x323477,_0x544be6);})['catch'](function(_0x35a196){const _0xee69de=_0x273e0c;logger[_0xee69de(0x143)](util[_0xee69de(0x133)](_0x35a196,{'showHidden':![],'depth':null}));});});},Migration[a1139_0x56fa46(0x136)][a1139_0x56fa46(0x13d)]=function(_0x2a5eee){this['sequence']['enqueue'](function(){return _0x2a5eee();});},module['exports']={'up':function(_0x392c0f,_0x2dfb7b){return new Promise(function(_0x3f9d5b){const _0xd2148b=a1139_0x4fca,_0x38ebf3=new Migration(_0x392c0f);_0x38ebf3['query'](_0xd2148b(0x14e)),_0x38ebf3[_0xd2148b(0x13f)](_0xd2148b(0x13b)),_0x38ebf3['addColumn']('settings',_0xd2148b(0x144),{'type':_0x2dfb7b[_0xd2148b(0x147)],'defaultValue':![]}),_0x38ebf3[_0xd2148b(0x13d)](_0x3f9d5b);});},'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 93c4ea5..9664996 100644 --- a/server/migrations/2.3.3.js +++ b/server/migrations/2.3.3.js @@ -1 +1 @@ -const a1140_0x5dff=['util','removeIndex','catch','chat_applications','renameColumn','sequelize','prototype','query','query\x20%s','Removed\x20column\x20%s\x20from\x20%s','openchannel_applications','ALTER\x20TABLE\x20tools_canned_answers\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','tail','info','TEXT','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','final','Added\x20column\x20%s\x20to\x20%s','dropTable','removeColumn','table\x20dropped\x20%s','mail_applications','appdata','stringify','sequence','then','enqueue','inspect','addColumn','queryInterface','migration','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x338eb2,_0x5a5f9c){const _0x5dff3e=function(_0x2aa6d4){while(--_0x2aa6d4){_0x338eb2['push'](_0x338eb2['shift']());}};_0x5dff3e(++_0x5a5f9c);}(a1140_0x5dff,0x1d8));const a1140_0x2aa6=function(_0x338eb2,_0x5a5f9c){_0x338eb2=_0x338eb2-0xb8;let _0x5dff3e=a1140_0x5dff[_0x338eb2];return _0x5dff3e;};const a1140_0x15b369=a1140_0x2aa6;'use strict';const util=require(a1140_0x15b369(0xca)),logger=require('../config/logger')(a1140_0x15b369(0xc7)),Sequence=function(){};Sequence[a1140_0x15b369(0xd0)][a1140_0x15b369(0xc3)]=function(_0x4f226f){const _0x320679=a1140_0x15b369;this[_0x320679(0xd6)]=this[_0x320679(0xd6)]?this[_0x320679(0xd6)]['finally'](_0x4f226f):_0x4f226f();};const Migration=function(_0xa51593){const _0x150910=a1140_0x15b369;this[_0x150910(0xc6)]=_0xa51593,this[_0x150910(0xc1)]=new Sequence();};Migration[a1140_0x15b369(0xd0)][a1140_0x15b369(0xc8)]=function(_0x1f2ff8,_0x31145d,_0x3e20d6){const _0xf0cb7e=a1140_0x15b369,_0x2321b1=this;this['sequence'][_0xf0cb7e(0xc3)](function(){const _0x37d68b=_0xf0cb7e;return _0x2321b1[_0x37d68b(0xc6)][_0x37d68b(0xc8)](_0x1f2ff8,_0x31145d,_0x3e20d6)[_0x37d68b(0xc2)](function(){const _0x1aa34b=_0x37d68b;logger[_0x1aa34b(0xd7)](_0x1aa34b(0xc9),_0x31145d,_0x1f2ff8);})[_0x37d68b(0xcc)](function(_0x7a8b9c){logger['info'](JSON['stringify'](_0x7a8b9c));});});},Migration[a1140_0x15b369(0xd0)][a1140_0x15b369(0xc5)]=function(_0x292e48,_0x4ba4db,_0x1593ad){const _0xbf0776=a1140_0x15b369,_0x1f3bcd=this;this[_0xbf0776(0xc1)][_0xbf0776(0xc3)](function(){const _0x394461=_0xbf0776;return _0x1f3bcd[_0x394461(0xc6)]['addColumn'](_0x292e48,_0x4ba4db,_0x1593ad)[_0x394461(0xc2)](function(){const _0x34fa65=_0x394461;logger[_0x34fa65(0xd7)](_0x34fa65(0xba),_0x4ba4db,_0x292e48);})[_0x394461(0xcc)](function(_0x516f92){const _0x9d383d=_0x394461;logger[_0x9d383d(0xd7)](JSON[_0x9d383d(0xc0)](_0x516f92));});});},Migration[a1140_0x15b369(0xd0)][a1140_0x15b369(0xbb)]=function(_0x1b4783){const _0x2b0294=a1140_0x15b369,_0x61a0bd=this;this[_0x2b0294(0xc1)][_0x2b0294(0xc3)](function(){const _0x4c5753=_0x2b0294;return _0x61a0bd[_0x4c5753(0xc6)][_0x4c5753(0xbb)](_0x1b4783,{'force':!![]})[_0x4c5753(0xc2)](function(){const _0x223269=_0x4c5753;logger['info'](_0x223269(0xbd),_0x1b4783);})[_0x4c5753(0xcc)](function(_0x401f66){const _0xf71fef=_0x4c5753;logger[_0xf71fef(0xd7)](JSON[_0xf71fef(0xc0)](_0x401f66));});});},Migration['prototype']['addIndex']=function(_0x3848aa,_0x3070f6,_0x422a4f){const _0x6034de=this;this['sequence']['enqueue'](function(){const _0x33a014=a1140_0x2aa6;return _0x6034de['queryInterface'][_0x33a014(0xd9)](_0x3848aa,_0x3070f6,{'indexName':_0x422a4f})['then'](function(){const _0x4a1db8=_0x33a014;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x3848aa,_0x3070f6[_0x4a1db8(0xb8)](','),_0x422a4f);})[_0x33a014(0xcc)](function(_0x40a66c){const _0x2a58a2=_0x33a014;logger[_0x2a58a2(0xd7)](JSON[_0x2a58a2(0xc0)](_0x40a66c));});});},Migration['prototype'][a1140_0x15b369(0xcb)]=function(_0x1200b6,_0x56fcb8){const _0x4bce15=a1140_0x15b369,_0x3ff9a1=this;this[_0x4bce15(0xc1)]['enqueue'](function(){const _0x9a7a98=_0x4bce15;return _0x3ff9a1[_0x9a7a98(0xc6)][_0x9a7a98(0xcb)](_0x1200b6,_0x56fcb8)[_0x9a7a98(0xc2)](function(){const _0x23e54e=_0x9a7a98;logger[_0x23e54e(0xd7)]('removeIndex\x20%s\x20%s',_0x1200b6,_0x56fcb8);})[_0x9a7a98(0xcc)](function(_0x6e3553){const _0x2db903=_0x9a7a98;logger['info'](JSON[_0x2db903(0xc0)](_0x6e3553));});});},Migration[a1140_0x15b369(0xd0)][a1140_0x15b369(0xd1)]=function(_0x200dac){const _0x2fc154=a1140_0x15b369,_0x181058=this;this[_0x2fc154(0xc1)]['enqueue'](function(){const _0x136b0a=_0x2fc154;return _0x181058[_0x136b0a(0xc6)][_0x136b0a(0xcf)][_0x136b0a(0xd1)](_0x200dac)[_0x136b0a(0xc2)](function(){const _0x3d34ec=_0x136b0a;logger[_0x3d34ec(0xd7)](_0x3d34ec(0xd2),_0x200dac);})[_0x136b0a(0xcc)](function(_0x25cdf8){const _0x52cf07=_0x136b0a;logger[_0x52cf07(0xd7)](JSON['stringify'](_0x25cdf8));});});},Migration[a1140_0x15b369(0xd0)][a1140_0x15b369(0xbc)]=function(_0xabe5ab,_0x18ec2e){const _0x3d5135=a1140_0x15b369,_0x570f2f=this;this['sequence'][_0x3d5135(0xc3)](function(){const _0x522517=_0x3d5135;return _0x570f2f[_0x522517(0xc6)][_0x522517(0xbc)](_0xabe5ab,_0x18ec2e)[_0x522517(0xc2)](function(){const _0x5c317b=_0x522517;logger['info'](_0x5c317b(0xd3),_0x18ec2e,_0xabe5ab);})[_0x522517(0xcc)](function(_0x3ac514){const _0x3e4718=_0x522517;logger[_0x3e4718(0xd7)](util[_0x3e4718(0xc4)](_0x3ac514,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1140_0x15b369(0xce)]=function(_0xffd2f3,_0xda9416,_0x62425){const _0x11ac92=a1140_0x15b369,_0x383c00=this;this[_0x11ac92(0xc1)][_0x11ac92(0xc3)](function(){const _0x3d0440=_0x11ac92;return _0x383c00[_0x3d0440(0xc6)][_0x3d0440(0xce)](_0xffd2f3,_0xda9416,_0x62425)[_0x3d0440(0xc2)](function(){const _0x1c661a=_0x3d0440;logger[_0x1c661a(0xd7)](_0x1c661a(0xda),_0xda9416,_0x62425,_0xffd2f3);})[_0x3d0440(0xcc)](function(_0x3dd6c6){const _0xaa94ea=_0x3d0440;logger[_0xaa94ea(0xd7)](util[_0xaa94ea(0xc4)](_0x3dd6c6,{'showHidden':![],'depth':null}));});});},Migration[a1140_0x15b369(0xd0)][a1140_0x15b369(0xb9)]=function(_0x1e1030){const _0x1a93bf=a1140_0x15b369;this[_0x1a93bf(0xc1)][_0x1a93bf(0xc3)](function(){return _0x1e1030();});},module['exports']={'up':function(_0x37bbd4,_0x287800){return new Promise(function(_0x20cc4e){const _0x18052e=a1140_0x2aa6,_0x15eee1=new Migration(_0x37bbd4);_0x15eee1[_0x18052e(0xd1)](_0x18052e(0xd5)),_0x15eee1['changeColumn'](_0x18052e(0xcd),'appdata',{'type':_0x287800[_0x18052e(0xd8)]()}),_0x15eee1[_0x18052e(0xc8)]('fax_applications',_0x18052e(0xbf),{'type':_0x287800[_0x18052e(0xd8)]()}),_0x15eee1[_0x18052e(0xc8)](_0x18052e(0xbe),_0x18052e(0xbf),{'type':_0x287800[_0x18052e(0xd8)]()}),_0x15eee1[_0x18052e(0xc8)](_0x18052e(0xd4),_0x18052e(0xbf),{'type':_0x287800['TEXT']()}),_0x15eee1[_0x18052e(0xc8)]('sms_applications','appdata',{'type':_0x287800['TEXT']()}),_0x15eee1[_0x18052e(0xb9)](_0x20cc4e);});},'down':function(){}}; \ No newline at end of file +const a1140_0x21ad=['enqueue','stringify','mail_applications','renameColumn','appdata','addColumn','ALTER\x20TABLE\x20tools_canned_answers\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','catch','queryInterface','inspect','sequence','final','info','query','tail','join','addIndex','query\x20%s','then','TEXT','chat_applications','table\x20dropped\x20%s','util','Removed\x20column\x20%s\x20from\x20%s','../config/logger','exports','migration','prototype','dropTable','sequelize','changeColumn','Added\x20column\x20%s\x20to\x20%s'];(function(_0x3b8f0d,_0x3aece7){const _0x21ad78=function(_0x618bc){while(--_0x618bc){_0x3b8f0d['push'](_0x3b8f0d['shift']());}};_0x21ad78(++_0x3aece7);}(a1140_0x21ad,0xc5));const a1140_0x618b=function(_0x3b8f0d,_0x3aece7){_0x3b8f0d=_0x3b8f0d-0x1e3;let _0x21ad78=a1140_0x21ad[_0x3b8f0d];return _0x21ad78;};const a1140_0x14c6d4=a1140_0x618b;'use strict';const util=require(a1140_0x14c6d4(0x1f4)),logger=require(a1140_0x14c6d4(0x1f6))(a1140_0x14c6d4(0x1f8)),Sequence=function(){};Sequence[a1140_0x14c6d4(0x1f9)][a1140_0x14c6d4(0x1fe)]=function(_0x51d002){const _0x5e362b=a1140_0x14c6d4;this[_0x5e362b(0x1ec)]=this[_0x5e362b(0x1ec)]?this[_0x5e362b(0x1ec)]['finally'](_0x51d002):_0x51d002();};const Migration=function(_0x1d4f88){const _0x41ed03=a1140_0x14c6d4;this[_0x41ed03(0x1e6)]=_0x1d4f88,this[_0x41ed03(0x1e8)]=new Sequence();};Migration['prototype'][a1140_0x14c6d4(0x1fc)]=function(_0xba48bd,_0xdea263,_0x314535){const _0x46bba7=a1140_0x14c6d4,_0x18d011=this;this[_0x46bba7(0x1e8)][_0x46bba7(0x1fe)](function(){const _0x5f0c15=_0x46bba7;return _0x18d011['queryInterface'][_0x5f0c15(0x1fc)](_0xba48bd,_0xdea263,_0x314535)[_0x5f0c15(0x1f0)](function(){const _0x1b59b4=_0x5f0c15;logger[_0x1b59b4(0x1ea)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xdea263,_0xba48bd);})['catch'](function(_0x1b2a79){const _0x2cb436=_0x5f0c15;logger[_0x2cb436(0x1ea)](JSON['stringify'](_0x1b2a79));});});},Migration[a1140_0x14c6d4(0x1f9)][a1140_0x14c6d4(0x1e3)]=function(_0x42b3d9,_0x98fa3e,_0x37ccf4){const _0x3102be=a1140_0x14c6d4,_0x15d45a=this;this[_0x3102be(0x1e8)]['enqueue'](function(){const _0x44eac3=_0x3102be;return _0x15d45a['queryInterface'][_0x44eac3(0x1e3)](_0x42b3d9,_0x98fa3e,_0x37ccf4)[_0x44eac3(0x1f0)](function(){const _0x477035=_0x44eac3;logger[_0x477035(0x1ea)](_0x477035(0x1fd),_0x98fa3e,_0x42b3d9);})[_0x44eac3(0x1e5)](function(_0x52e099){const _0x2511c6=_0x44eac3;logger[_0x2511c6(0x1ea)](JSON['stringify'](_0x52e099));});});},Migration[a1140_0x14c6d4(0x1f9)][a1140_0x14c6d4(0x1fa)]=function(_0xbab826){const _0x362e0d=a1140_0x14c6d4,_0x5ce6f9=this;this['sequence'][_0x362e0d(0x1fe)](function(){const _0x48a1ca=_0x362e0d;return _0x5ce6f9['queryInterface'][_0x48a1ca(0x1fa)](_0xbab826,{'force':!![]})[_0x48a1ca(0x1f0)](function(){const _0x52a1e8=_0x48a1ca;logger[_0x52a1e8(0x1ea)](_0x52a1e8(0x1f3),_0xbab826);})[_0x48a1ca(0x1e5)](function(_0x34d506){const _0x319b04=_0x48a1ca;logger[_0x319b04(0x1ea)](JSON[_0x319b04(0x1ff)](_0x34d506));});});},Migration[a1140_0x14c6d4(0x1f9)][a1140_0x14c6d4(0x1ee)]=function(_0x16f631,_0x2b2300,_0x59e589){const _0x7a0820=this;this['sequence']['enqueue'](function(){const _0x424553=a1140_0x618b;return _0x7a0820[_0x424553(0x1e6)][_0x424553(0x1ee)](_0x16f631,_0x2b2300,{'indexName':_0x59e589})['then'](function(){const _0x2875b0=_0x424553;logger[_0x2875b0(0x1ea)]('addIndex\x20%s\x20%s\x20%s',_0x16f631,_0x2b2300[_0x2875b0(0x1ed)](','),_0x59e589);})['catch'](function(_0x4f8e25){const _0x8e8c0e=_0x424553;logger[_0x8e8c0e(0x1ea)](JSON[_0x8e8c0e(0x1ff)](_0x4f8e25));});});},Migration[a1140_0x14c6d4(0x1f9)]['removeIndex']=function(_0x3c6bd9,_0x4a4eff){const _0x5d8120=a1140_0x14c6d4,_0x3619e6=this;this['sequence'][_0x5d8120(0x1fe)](function(){return _0x3619e6['queryInterface']['removeIndex'](_0x3c6bd9,_0x4a4eff)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x3c6bd9,_0x4a4eff);})['catch'](function(_0x11f549){const _0xf4f554=a1140_0x618b;logger[_0xf4f554(0x1ea)](JSON[_0xf4f554(0x1ff)](_0x11f549));});});},Migration['prototype'][a1140_0x14c6d4(0x1eb)]=function(_0x35ab92){const _0x40159f=a1140_0x14c6d4,_0x1a752b=this;this[_0x40159f(0x1e8)][_0x40159f(0x1fe)](function(){const _0xc51405=_0x40159f;return _0x1a752b['queryInterface'][_0xc51405(0x1fb)][_0xc51405(0x1eb)](_0x35ab92)[_0xc51405(0x1f0)](function(){const _0x1c33f2=_0xc51405;logger['info'](_0x1c33f2(0x1ef),_0x35ab92);})[_0xc51405(0x1e5)](function(_0x52dffb){const _0x4f5d78=_0xc51405;logger['info'](JSON[_0x4f5d78(0x1ff)](_0x52dffb));});});},Migration['prototype']['removeColumn']=function(_0x459407,_0x3aaae7){const _0x2055c4=a1140_0x14c6d4,_0x4a0f94=this;this[_0x2055c4(0x1e8)][_0x2055c4(0x1fe)](function(){const _0x2205b5=_0x2055c4;return _0x4a0f94[_0x2205b5(0x1e6)]['removeColumn'](_0x459407,_0x3aaae7)['then'](function(){const _0x483bbb=_0x2205b5;logger[_0x483bbb(0x1ea)](_0x483bbb(0x1f5),_0x3aaae7,_0x459407);})[_0x2205b5(0x1e5)](function(_0xc391ef){const _0x593de2=_0x2205b5;logger[_0x593de2(0x1ea)](util[_0x593de2(0x1e7)](_0xc391ef,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1140_0x14c6d4(0x201)]=function(_0x400639,_0x4d2a97,_0xf184d8){const _0x54da45=a1140_0x14c6d4,_0x1338f3=this;this[_0x54da45(0x1e8)]['enqueue'](function(){const _0x216b68=_0x54da45;return _0x1338f3['queryInterface'][_0x216b68(0x201)](_0x400639,_0x4d2a97,_0xf184d8)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4d2a97,_0xf184d8,_0x400639);})[_0x216b68(0x1e5)](function(_0x27f9b9){const _0x333a=_0x216b68;logger[_0x333a(0x1ea)](util[_0x333a(0x1e7)](_0x27f9b9,{'showHidden':![],'depth':null}));});});},Migration[a1140_0x14c6d4(0x1f9)][a1140_0x14c6d4(0x1e9)]=function(_0xb0a0dd){const _0xf609bf=a1140_0x14c6d4;this[_0xf609bf(0x1e8)][_0xf609bf(0x1fe)](function(){return _0xb0a0dd();});},module[a1140_0x14c6d4(0x1f7)]={'up':function(_0x426ea9,_0x3bc697){return new Promise(function(_0x46bd27){const _0x45cb33=a1140_0x618b,_0x1da756=new Migration(_0x426ea9);_0x1da756[_0x45cb33(0x1eb)](_0x45cb33(0x1e4)),_0x1da756['changeColumn'](_0x45cb33(0x1f2),_0x45cb33(0x202),{'type':_0x3bc697[_0x45cb33(0x1f1)]()}),_0x1da756['changeColumn']('fax_applications',_0x45cb33(0x202),{'type':_0x3bc697['TEXT']()}),_0x1da756[_0x45cb33(0x1fc)](_0x45cb33(0x200),_0x45cb33(0x202),{'type':_0x3bc697[_0x45cb33(0x1f1)]()}),_0x1da756[_0x45cb33(0x1fc)]('openchannel_applications',_0x45cb33(0x202),{'type':_0x3bc697['TEXT']()}),_0x1da756[_0x45cb33(0x1fc)]('sms_applications',_0x45cb33(0x202),{'type':_0x3bc697['TEXT']()}),_0x1da756['final'](_0x46bd27);});},'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 58d7a60..2068bf5 100644 --- a/server/migrations/2.3.4.js +++ b/server/migrations/2.3.4.js @@ -1 +1 @@ -const a1141_0x3c9b=['removeIndex','sequence','final','removeColumn','then','info','Changed\x20column\x20%s\x20in\x20table\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','finally','addIndex','dropTable','enqueue','../config/logger','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','renameColumn','catch','tail','join','changeColumn','addIndex\x20%s\x20%s\x20%s','inspect','stringify','prototype','query','exports','migration','addColumn','query\x20%s','queryInterface'];(function(_0x26d3bf,_0x4d08b6){const _0x3c9be8=function(_0x3cb192){while(--_0x3cb192){_0x26d3bf['push'](_0x26d3bf['shift']());}};_0x3c9be8(++_0x4d08b6);}(a1141_0x3c9b,0x1ee));const a1141_0x3cb1=function(_0x26d3bf,_0x4d08b6){_0x26d3bf=_0x26d3bf-0x16c;let _0x3c9be8=a1141_0x3c9b[_0x26d3bf];return _0x3c9be8;};const a1141_0x588ed9=a1141_0x3cb1;'use strict';const util=require(a1141_0x588ed9(0x176)),logger=require(a1141_0x588ed9(0x17b))(a1141_0x588ed9(0x189)),Sequence=function(){};Sequence[a1141_0x588ed9(0x186)][a1141_0x588ed9(0x17a)]=function(_0x1f6d4f){const _0x2f000a=a1141_0x588ed9;this[_0x2f000a(0x180)]=this[_0x2f000a(0x180)]?this[_0x2f000a(0x180)][_0x2f000a(0x177)](_0x1f6d4f):_0x1f6d4f();};const Migration=function(_0x7e343d){this['queryInterface']=_0x7e343d,this['sequence']=new Sequence();};Migration[a1141_0x588ed9(0x186)][a1141_0x588ed9(0x182)]=function(_0x5e423c,_0x144664,_0x3b57be){const _0x44aaa5=a1141_0x588ed9,_0x3b1254=this;this[_0x44aaa5(0x16f)][_0x44aaa5(0x17a)](function(){const _0x3f5fa5=_0x44aaa5;return _0x3b1254[_0x3f5fa5(0x16d)]['changeColumn'](_0x5e423c,_0x144664,_0x3b57be)[_0x3f5fa5(0x172)](function(){const _0x519aa8=_0x3f5fa5;logger[_0x519aa8(0x173)](_0x519aa8(0x174),_0x144664,_0x5e423c);})['catch'](function(_0x27f4ce){const _0x328874=_0x3f5fa5;logger[_0x328874(0x173)](JSON[_0x328874(0x185)](_0x27f4ce));});});},Migration[a1141_0x588ed9(0x186)][a1141_0x588ed9(0x18a)]=function(_0x328429,_0x4d4325,_0x5631aa){const _0x392528=a1141_0x588ed9,_0xf39ce1=this;this[_0x392528(0x16f)][_0x392528(0x17a)](function(){const _0x509959=_0x392528;return _0xf39ce1[_0x509959(0x16d)][_0x509959(0x18a)](_0x328429,_0x4d4325,_0x5631aa)[_0x509959(0x172)](function(){const _0xcb3aaa=_0x509959;logger['info'](_0xcb3aaa(0x17c),_0x4d4325,_0x328429);})[_0x509959(0x17f)](function(_0x5042af){const _0x32b65a=_0x509959;logger[_0x32b65a(0x173)](JSON[_0x32b65a(0x185)](_0x5042af));});});},Migration[a1141_0x588ed9(0x186)][a1141_0x588ed9(0x179)]=function(_0x5c5a9b){const _0x1bffbc=a1141_0x588ed9,_0x261eee=this;this['sequence'][_0x1bffbc(0x17a)](function(){const _0x4a956d=_0x1bffbc;return _0x261eee['queryInterface'][_0x4a956d(0x179)](_0x5c5a9b,{'force':!![]})[_0x4a956d(0x172)](function(){const _0xaf7b=_0x4a956d;logger[_0xaf7b(0x173)]('table\x20dropped\x20%s',_0x5c5a9b);})[_0x4a956d(0x17f)](function(_0x54fa2a){const _0x33d223=_0x4a956d;logger[_0x33d223(0x173)](JSON[_0x33d223(0x185)](_0x54fa2a));});});},Migration[a1141_0x588ed9(0x186)][a1141_0x588ed9(0x178)]=function(_0x3bb780,_0x297d94,_0x553ad4){const _0x1f2b8d=a1141_0x588ed9,_0x3c6e39=this;this['sequence'][_0x1f2b8d(0x17a)](function(){const _0x3ed576=_0x1f2b8d;return _0x3c6e39[_0x3ed576(0x16d)][_0x3ed576(0x178)](_0x3bb780,_0x297d94,{'indexName':_0x553ad4})['then'](function(){const _0x376be9=_0x3ed576;logger[_0x376be9(0x173)](_0x376be9(0x183),_0x3bb780,_0x297d94[_0x376be9(0x181)](','),_0x553ad4);})[_0x3ed576(0x17f)](function(_0x2c6a4e){const _0x127204=_0x3ed576;logger[_0x127204(0x173)](JSON[_0x127204(0x185)](_0x2c6a4e));});});},Migration[a1141_0x588ed9(0x186)][a1141_0x588ed9(0x16e)]=function(_0x3aae7b,_0x13ae3d){const _0x61391c=a1141_0x588ed9,_0x4aa0c8=this;this[_0x61391c(0x16f)][_0x61391c(0x17a)](function(){const _0x22ceff=_0x61391c;return _0x4aa0c8[_0x22ceff(0x16d)][_0x22ceff(0x16e)](_0x3aae7b,_0x13ae3d)[_0x22ceff(0x172)](function(){logger['info']('removeIndex\x20%s\x20%s',_0x3aae7b,_0x13ae3d);})[_0x22ceff(0x17f)](function(_0x3a655c){const _0x4b679a=_0x22ceff;logger['info'](JSON[_0x4b679a(0x185)](_0x3a655c));});});},Migration[a1141_0x588ed9(0x186)][a1141_0x588ed9(0x187)]=function(_0x34e77e){const _0x39d26b=a1141_0x588ed9,_0x2b808c=this;this[_0x39d26b(0x16f)][_0x39d26b(0x17a)](function(){const _0xb3e8f9=_0x39d26b;return _0x2b808c[_0xb3e8f9(0x16d)]['sequelize'][_0xb3e8f9(0x187)](_0x34e77e)['then'](function(){const _0x482e6c=_0xb3e8f9;logger[_0x482e6c(0x173)](_0x482e6c(0x16c),_0x34e77e);})['catch'](function(_0x427068){const _0x35f618=_0xb3e8f9;logger['info'](JSON[_0x35f618(0x185)](_0x427068));});});},Migration['prototype'][a1141_0x588ed9(0x171)]=function(_0x42cf25,_0x20e883){const _0x53ae38=a1141_0x588ed9,_0x22bc5c=this;this[_0x53ae38(0x16f)][_0x53ae38(0x17a)](function(){const _0x3a3418=_0x53ae38;return _0x22bc5c[_0x3a3418(0x16d)][_0x3a3418(0x171)](_0x42cf25,_0x20e883)[_0x3a3418(0x172)](function(){const _0x180131=_0x3a3418;logger[_0x180131(0x173)](_0x180131(0x17d),_0x20e883,_0x42cf25);})[_0x3a3418(0x17f)](function(_0x29a549){const _0x9a9436=_0x3a3418;logger['info'](util[_0x9a9436(0x184)](_0x29a549,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1141_0x588ed9(0x17e)]=function(_0x215094,_0x3f5049,_0x35ac42){const _0x58a12b=a1141_0x588ed9,_0x38773a=this;this['sequence'][_0x58a12b(0x17a)](function(){const _0x1a134b=_0x58a12b;return _0x38773a[_0x1a134b(0x16d)][_0x1a134b(0x17e)](_0x215094,_0x3f5049,_0x35ac42)[_0x1a134b(0x172)](function(){const _0x3da757=_0x1a134b;logger['info'](_0x3da757(0x175),_0x3f5049,_0x35ac42,_0x215094);})[_0x1a134b(0x17f)](function(_0x216182){const _0x2b8619=_0x1a134b;logger[_0x2b8619(0x173)](util[_0x2b8619(0x184)](_0x216182,{'showHidden':![],'depth':null}));});});},Migration[a1141_0x588ed9(0x186)][a1141_0x588ed9(0x170)]=function(_0x23343f){const _0x578fa5=a1141_0x588ed9;this[_0x578fa5(0x16f)][_0x578fa5(0x17a)](function(){return _0x23343f();});},module[a1141_0x588ed9(0x188)]={'up':function(_0x38016a){return new Promise(function(_0x560935){const _0x2a0ea3=new Migration(_0x38016a);_0x2a0ea3['final'](_0x560935);});},'down':function(){}}; \ No newline at end of file +const a1141_0x3e64=['join','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','dropTable','addColumn','sequence','removeColumn','queryInterface','changeColumn','then','table\x20dropped\x20%s','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s','migration','query\x20%s','addIndex','enqueue','stringify','removeIndex','finally','../config/logger','prototype','util','info','renameColumn','query','final','inspect','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x3d3182,_0x152781){const _0x3e6410=function(_0x5e5a58){while(--_0x5e5a58){_0x3d3182['push'](_0x3d3182['shift']());}};_0x3e6410(++_0x152781);}(a1141_0x3e64,0xe7));const a1141_0x5e5a=function(_0x3d3182,_0x152781){_0x3d3182=_0x3d3182-0x1a2;let _0x3e6410=a1141_0x3e64[_0x3d3182];return _0x3e6410;};const a1141_0x3cc2b1=a1141_0x5e5a;'use strict';const util=require(a1141_0x3cc2b1(0x1ab)),logger=require(a1141_0x3cc2b1(0x1a9))(a1141_0x3cc2b1(0x1a2)),Sequence=function(){};Sequence['prototype'][a1141_0x3cc2b1(0x1a5)]=function(_0xc821a){const _0x340ef5=a1141_0x3cc2b1;this['tail']=this[_0x340ef5(0x1be)]?this[_0x340ef5(0x1be)][_0x340ef5(0x1a8)](_0xc821a):_0xc821a();};const Migration=function(_0x537b55){const _0xa80ed9=a1141_0x3cc2b1;this[_0xa80ed9(0x1ba)]=_0x537b55,this['sequence']=new Sequence();};Migration[a1141_0x3cc2b1(0x1aa)]['changeColumn']=function(_0x27bd65,_0x28ebf8,_0x46ac94){const _0x5eb66e=a1141_0x3cc2b1,_0x1143ec=this;this[_0x5eb66e(0x1b8)]['enqueue'](function(){const _0x4eefc5=_0x5eb66e;return _0x1143ec[_0x4eefc5(0x1ba)][_0x4eefc5(0x1bb)](_0x27bd65,_0x28ebf8,_0x46ac94)[_0x4eefc5(0x1bc)](function(){const _0x13223f=_0x4eefc5;logger[_0x13223f(0x1ac)](_0x13223f(0x1bf),_0x28ebf8,_0x27bd65);})[_0x4eefc5(0x1b1)](function(_0x440cfe){const _0x41c40f=_0x4eefc5;logger[_0x41c40f(0x1ac)](JSON['stringify'](_0x440cfe));});});},Migration[a1141_0x3cc2b1(0x1aa)][a1141_0x3cc2b1(0x1b7)]=function(_0x5e11e5,_0x3dbb90,_0x2d44ab){const _0x299a5c=a1141_0x3cc2b1,_0x17cb39=this;this[_0x299a5c(0x1b8)]['enqueue'](function(){const _0x27631c=_0x299a5c;return _0x17cb39[_0x27631c(0x1ba)]['addColumn'](_0x5e11e5,_0x3dbb90,_0x2d44ab)[_0x27631c(0x1bc)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x3dbb90,_0x5e11e5);})['catch'](function(_0x31fa10){const _0x3d492f=_0x27631c;logger[_0x3d492f(0x1ac)](JSON[_0x3d492f(0x1a6)](_0x31fa10));});});},Migration[a1141_0x3cc2b1(0x1aa)]['dropTable']=function(_0x4a88f0){const _0x94f4d=a1141_0x3cc2b1,_0x4b6cf9=this;this[_0x94f4d(0x1b8)]['enqueue'](function(){const _0x9a3d71=_0x94f4d;return _0x4b6cf9[_0x9a3d71(0x1ba)][_0x9a3d71(0x1b6)](_0x4a88f0,{'force':!![]})[_0x9a3d71(0x1bc)](function(){const _0x3d390b=_0x9a3d71;logger[_0x3d390b(0x1ac)](_0x3d390b(0x1bd),_0x4a88f0);})[_0x9a3d71(0x1b1)](function(_0x322723){const _0x190a89=_0x9a3d71;logger[_0x190a89(0x1ac)](JSON[_0x190a89(0x1a6)](_0x322723));});});},Migration[a1141_0x3cc2b1(0x1aa)][a1141_0x3cc2b1(0x1a4)]=function(_0x5d8128,_0x48b577,_0x3b48bf){const _0x176c69=this;this['sequence']['enqueue'](function(){const _0x3d1f78=a1141_0x5e5a;return _0x176c69[_0x3d1f78(0x1ba)][_0x3d1f78(0x1a4)](_0x5d8128,_0x48b577,{'indexName':_0x3b48bf})[_0x3d1f78(0x1bc)](function(){const _0x4e7529=_0x3d1f78;logger[_0x4e7529(0x1ac)](_0x4e7529(0x1c0),_0x5d8128,_0x48b577[_0x4e7529(0x1b3)](','),_0x3b48bf);})[_0x3d1f78(0x1b1)](function(_0x5a01ed){const _0x493d00=_0x3d1f78;logger[_0x493d00(0x1ac)](JSON[_0x493d00(0x1a6)](_0x5a01ed));});});},Migration[a1141_0x3cc2b1(0x1aa)][a1141_0x3cc2b1(0x1a7)]=function(_0x2a3246,_0x310769){const _0x2d0649=a1141_0x3cc2b1,_0x2155e1=this;this[_0x2d0649(0x1b8)][_0x2d0649(0x1a5)](function(){const _0x3b2d7b=_0x2d0649;return _0x2155e1[_0x3b2d7b(0x1ba)][_0x3b2d7b(0x1a7)](_0x2a3246,_0x310769)[_0x3b2d7b(0x1bc)](function(){const _0x1aa73e=_0x3b2d7b;logger[_0x1aa73e(0x1ac)](_0x1aa73e(0x1b5),_0x2a3246,_0x310769);})[_0x3b2d7b(0x1b1)](function(_0x49be9f){const _0x2a1f91=_0x3b2d7b;logger[_0x2a1f91(0x1ac)](JSON[_0x2a1f91(0x1a6)](_0x49be9f));});});},Migration['prototype'][a1141_0x3cc2b1(0x1ae)]=function(_0x48e41f){const _0x1a55f7=a1141_0x3cc2b1,_0x5057d1=this;this[_0x1a55f7(0x1b8)]['enqueue'](function(){const _0x63e48a=_0x1a55f7;return _0x5057d1[_0x63e48a(0x1ba)]['sequelize'][_0x63e48a(0x1ae)](_0x48e41f)[_0x63e48a(0x1bc)](function(){const _0x53fb45=_0x63e48a;logger['info'](_0x53fb45(0x1a3),_0x48e41f);})[_0x63e48a(0x1b1)](function(_0x33a7ae){const _0x3e25ce=_0x63e48a;logger[_0x3e25ce(0x1ac)](JSON[_0x3e25ce(0x1a6)](_0x33a7ae));});});},Migration[a1141_0x3cc2b1(0x1aa)]['removeColumn']=function(_0x4b2139,_0x5f1707){const _0x579466=a1141_0x3cc2b1,_0x7eb022=this;this[_0x579466(0x1b8)][_0x579466(0x1a5)](function(){const _0x3172af=_0x579466;return _0x7eb022['queryInterface'][_0x3172af(0x1b9)](_0x4b2139,_0x5f1707)[_0x3172af(0x1bc)](function(){const _0x194e8a=_0x3172af;logger[_0x194e8a(0x1ac)](_0x194e8a(0x1b4),_0x5f1707,_0x4b2139);})['catch'](function(_0x36ebc0){const _0x24f051=_0x3172af;logger[_0x24f051(0x1ac)](util[_0x24f051(0x1b0)](_0x36ebc0,{'showHidden':![],'depth':null}));});});},Migration[a1141_0x3cc2b1(0x1aa)][a1141_0x3cc2b1(0x1ad)]=function(_0x2439f5,_0x5e946d,_0x2d1ebd){const _0x13fd9d=a1141_0x3cc2b1,_0x112975=this;this[_0x13fd9d(0x1b8)][_0x13fd9d(0x1a5)](function(){const _0xed6d4=_0x13fd9d;return _0x112975[_0xed6d4(0x1ba)][_0xed6d4(0x1ad)](_0x2439f5,_0x5e946d,_0x2d1ebd)[_0xed6d4(0x1bc)](function(){const _0x3698e5=_0xed6d4;logger[_0x3698e5(0x1ac)](_0x3698e5(0x1b2),_0x5e946d,_0x2d1ebd,_0x2439f5);})[_0xed6d4(0x1b1)](function(_0x333fc4){const _0x2ef877=_0xed6d4;logger[_0x2ef877(0x1ac)](util[_0x2ef877(0x1b0)](_0x333fc4,{'showHidden':![],'depth':null}));});});},Migration[a1141_0x3cc2b1(0x1aa)][a1141_0x3cc2b1(0x1af)]=function(_0x1178fa){const _0x569745=a1141_0x3cc2b1;this[_0x569745(0x1b8)][_0x569745(0x1a5)](function(){return _0x1178fa();});},module['exports']={'up':function(_0x43d3e4){return new Promise(function(_0x9502d6){const _0x25fc26=a1141_0x5e5a,_0x52c5e1=new Migration(_0x43d3e4);_0x52c5e1[_0x25fc26(0x1af)](_0x9502d6);});},'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 57539fe..f20ab05 100644 --- a/server/migrations/2.3.5.js +++ b/server/migrations/2.3.5.js @@ -1 +1 @@ -const a1142_0x5ac5=['sequelize','tail','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','then','sequence','changeColumn','queryInterface','stringify','inspect','indexName','removeColumn','query\x20%s','table\x20dropped\x20%s','dropTable','prototype','info','util','final','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','addColumn','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','migration','query','exports','renameColumn','Added\x20column\x20%s\x20to\x20%s','join','removeIndex\x20%s\x20%s','catch','indicesType'];(function(_0x586099,_0x403822){const _0x5ac5a3=function(_0x65131e){while(--_0x65131e){_0x586099['push'](_0x586099['shift']());}};_0x5ac5a3(++_0x403822);}(a1142_0x5ac5,0x8c));const a1142_0x6513=function(_0x586099,_0x403822){_0x586099=_0x586099-0x111;let _0x5ac5a3=a1142_0x5ac5[_0x586099];return _0x5ac5a3;};const a1142_0x34b7d5=a1142_0x6513;'use strict';const util=require(a1142_0x34b7d5(0x123)),logger=require('../config/logger')(a1142_0x34b7d5(0x12b)),Sequence=function(){};Sequence['prototype'][a1142_0x34b7d5(0x127)]=function(_0x54b1ee){const _0x5022db=a1142_0x34b7d5;this[_0x5022db(0x112)]=this[_0x5022db(0x112)]?this[_0x5022db(0x112)][_0x5022db(0x125)](_0x54b1ee):_0x54b1ee();};const Migration=function(_0x2a979f){const _0x12b6f1=a1142_0x34b7d5;this['queryInterface']=_0x2a979f,this[_0x12b6f1(0x117)]=new Sequence();};Migration[a1142_0x34b7d5(0x121)]['changeColumn']=function(_0xae4754,_0x2683d1,_0x3268ff){const _0x2f8232=a1142_0x34b7d5,_0x19d454=this;this[_0x2f8232(0x117)][_0x2f8232(0x127)](function(){const _0x1d4c85=_0x2f8232;return _0x19d454['queryInterface'][_0x1d4c85(0x118)](_0xae4754,_0x2683d1,_0x3268ff)[_0x1d4c85(0x116)](function(){const _0x9faf3a=_0x1d4c85;logger[_0x9faf3a(0x122)](_0x9faf3a(0x126),_0x2683d1,_0xae4754);})[_0x1d4c85(0x132)](function(_0x1416ef){const _0x55bf84=_0x1d4c85;logger[_0x55bf84(0x122)](JSON[_0x55bf84(0x11a)](_0x1416ef));});});},Migration[a1142_0x34b7d5(0x121)]['addColumn']=function(_0x17b5c4,_0xf4c025,_0x3fdd9f){const _0x6e40c7=a1142_0x34b7d5,_0x53c9a0=this;this[_0x6e40c7(0x117)][_0x6e40c7(0x127)](function(){const _0x38a67e=_0x6e40c7;return _0x53c9a0[_0x38a67e(0x119)][_0x38a67e(0x128)](_0x17b5c4,_0xf4c025,_0x3fdd9f)['then'](function(){const _0x2bf9f7=_0x38a67e;logger[_0x2bf9f7(0x122)](_0x2bf9f7(0x12f),_0xf4c025,_0x17b5c4);})[_0x38a67e(0x132)](function(_0x46e9d2){const _0x5784e0=_0x38a67e;logger['info'](JSON[_0x5784e0(0x11a)](_0x46e9d2));});});},Migration[a1142_0x34b7d5(0x121)][a1142_0x34b7d5(0x120)]=function(_0x41cf69){const _0x149238=a1142_0x34b7d5,_0x2fb4ef=this;this[_0x149238(0x117)][_0x149238(0x127)](function(){const _0xfa4332=_0x149238;return _0x2fb4ef[_0xfa4332(0x119)][_0xfa4332(0x120)](_0x41cf69,{'force':!![]})[_0xfa4332(0x116)](function(){const _0x228b4e=_0xfa4332;logger['info'](_0x228b4e(0x11f),_0x41cf69);})['catch'](function(_0x5a81f0){const _0x87ecaa=_0xfa4332;logger[_0x87ecaa(0x122)](JSON[_0x87ecaa(0x11a)](_0x5a81f0));});});},Migration['prototype'][a1142_0x34b7d5(0x113)]=function(_0x203e98,_0x5c0fa0,_0x31163a){const _0x2a935d=a1142_0x34b7d5,_0x256b31=this;this['sequence'][_0x2a935d(0x127)](function(){const _0x19a7d8=_0x2a935d;return _0x256b31[_0x19a7d8(0x119)][_0x19a7d8(0x113)](_0x203e98,_0x5c0fa0,{'indexName':_0x31163a['indexName'],'indicesType':_0x31163a['indicesType']})[_0x19a7d8(0x116)](function(){const _0x5d8f9e=_0x19a7d8;logger[_0x5d8f9e(0x122)](_0x5d8f9e(0x12a),_0x203e98,_0x5c0fa0[_0x5d8f9e(0x130)](','),_0x31163a[_0x5d8f9e(0x11c)],_0x31163a[_0x5d8f9e(0x133)]);})[_0x19a7d8(0x132)](function(_0x575ffd){const _0x4172f2=_0x19a7d8;logger['info'](JSON[_0x4172f2(0x11a)](_0x575ffd));});});},Migration[a1142_0x34b7d5(0x121)][a1142_0x34b7d5(0x115)]=function(_0x27669f,_0xd56ba9){const _0x7b778a=a1142_0x34b7d5,_0x5a3bed=this;this[_0x7b778a(0x117)][_0x7b778a(0x127)](function(){const _0x1a0205=_0x7b778a;return _0x5a3bed['queryInterface']['removeIndex'](_0x27669f,_0xd56ba9)[_0x1a0205(0x116)](function(){const _0x5aa83e=_0x1a0205;logger[_0x5aa83e(0x122)](_0x5aa83e(0x131),_0x27669f,_0xd56ba9);})['catch'](function(_0x25c21c){const _0x26ef71=_0x1a0205;logger[_0x26ef71(0x122)](JSON['stringify'](_0x25c21c));});});},Migration['prototype'][a1142_0x34b7d5(0x12c)]=function(_0x4ec71b){const _0x19d8c4=a1142_0x34b7d5,_0x10255c=this;this[_0x19d8c4(0x117)]['enqueue'](function(){const _0x10b359=_0x19d8c4;return _0x10255c['queryInterface'][_0x10b359(0x111)]['query'](_0x4ec71b)['then'](function(){const _0x530bad=_0x10b359;logger[_0x530bad(0x122)](_0x530bad(0x11e),_0x4ec71b);})[_0x10b359(0x132)](function(_0x2d9a6f){const _0x3a7edb=_0x10b359;logger[_0x3a7edb(0x122)](JSON[_0x3a7edb(0x11a)](_0x2d9a6f));});});},Migration[a1142_0x34b7d5(0x121)][a1142_0x34b7d5(0x11d)]=function(_0x2c93cb,_0xa56c87){const _0x2389a3=a1142_0x34b7d5,_0x5bd666=this;this[_0x2389a3(0x117)][_0x2389a3(0x127)](function(){const _0x2e295d=_0x2389a3;return _0x5bd666[_0x2e295d(0x119)]['removeColumn'](_0x2c93cb,_0xa56c87)['then'](function(){const _0x3f6d37=_0x2e295d;logger[_0x3f6d37(0x122)](_0x3f6d37(0x129),_0xa56c87,_0x2c93cb);})['catch'](function(_0x25f73a){const _0x51b910=_0x2e295d;logger[_0x51b910(0x122)](util['inspect'](_0x25f73a,{'showHidden':![],'depth':null}));});});},Migration[a1142_0x34b7d5(0x121)][a1142_0x34b7d5(0x12e)]=function(_0x73eced,_0x55df3a,_0x43be98){const _0x2bc3cc=a1142_0x34b7d5,_0x2b9ff3=this;this['sequence'][_0x2bc3cc(0x127)](function(){const _0x32ebc5=_0x2bc3cc;return _0x2b9ff3['queryInterface'][_0x32ebc5(0x12e)](_0x73eced,_0x55df3a,_0x43be98)[_0x32ebc5(0x116)](function(){const _0x11f2c1=_0x32ebc5;logger[_0x11f2c1(0x122)](_0x11f2c1(0x114),_0x55df3a,_0x43be98,_0x73eced);})[_0x32ebc5(0x132)](function(_0x3833ce){const _0x1d9117=_0x32ebc5;logger[_0x1d9117(0x122)](util[_0x1d9117(0x11b)](_0x3833ce,{'showHidden':![],'depth':null}));});});},Migration[a1142_0x34b7d5(0x121)][a1142_0x34b7d5(0x124)]=function(_0x42310c){const _0x1719dc=a1142_0x34b7d5;this[_0x1719dc(0x117)][_0x1719dc(0x127)](function(){return _0x42310c();});},module[a1142_0x34b7d5(0x12d)]={'up':function(_0x5a9420){return new Promise(function(_0x20ac5f){const _0x327aaf=new Migration(_0x5a9420);_0x327aaf['final'](_0x20ac5f);});},'down':function(){}}; \ No newline at end of file +const a1142_0x1c5a=['indexName','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','renameColumn','sequelize','then','final','dropTable','Added\x20column\x20%s\x20to\x20%s','../config/logger','join','migration','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','indicesType','info','query','sequence','addIndex','exports','query\x20%s','removeIndex','tail','removeColumn','catch','util','queryInterface','inspect','addColumn','enqueue'];(function(_0x87f68a,_0x131db5){const _0x1c5a09=function(_0x2c22b5){while(--_0x2c22b5){_0x87f68a['push'](_0x87f68a['shift']());}};_0x1c5a09(++_0x131db5);}(a1142_0x1c5a,0x112));const a1142_0x2c22=function(_0x87f68a,_0x131db5){_0x87f68a=_0x87f68a-0x17e;let _0x1c5a09=a1142_0x1c5a[_0x87f68a];return _0x1c5a09;};const a1142_0x268a29=a1142_0x2c22;'use strict';const util=require(a1142_0x268a29(0x17e)),logger=require(a1142_0x268a29(0x18c))(a1142_0x268a29(0x18e)),Sequence=function(){};Sequence['prototype'][a1142_0x268a29(0x182)]=function(_0x5eb0a6){const _0x54752f=a1142_0x268a29;this['tail']=this[_0x54752f(0x19a)]?this[_0x54752f(0x19a)]['finally'](_0x5eb0a6):_0x5eb0a6();};const Migration=function(_0x244572){const _0x5e57b4=a1142_0x268a29;this[_0x5e57b4(0x17f)]=_0x244572,this[_0x5e57b4(0x195)]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x1b9aad,_0x522109,_0x14d6fc){const _0xf0f869=a1142_0x268a29,_0x4e7393=this;this[_0xf0f869(0x195)][_0xf0f869(0x182)](function(){const _0x5d5879=_0xf0f869;return _0x4e7393['queryInterface']['changeColumn'](_0x1b9aad,_0x522109,_0x14d6fc)[_0x5d5879(0x188)](function(){const _0x343273=_0x5d5879;logger[_0x343273(0x193)](_0x343273(0x184),_0x522109,_0x1b9aad);})[_0x5d5879(0x19c)](function(_0x1c8909){const _0x24b9db=_0x5d5879;logger['info'](JSON[_0x24b9db(0x191)](_0x1c8909));});});},Migration[a1142_0x268a29(0x185)][a1142_0x268a29(0x181)]=function(_0x4f2a63,_0x14485d,_0x22734a){const _0x9c09f9=a1142_0x268a29,_0x33a02d=this;this[_0x9c09f9(0x195)][_0x9c09f9(0x182)](function(){const _0x5c0c4e=_0x9c09f9;return _0x33a02d[_0x5c0c4e(0x17f)][_0x5c0c4e(0x181)](_0x4f2a63,_0x14485d,_0x22734a)[_0x5c0c4e(0x188)](function(){const _0x58549c=_0x5c0c4e;logger['info'](_0x58549c(0x18b),_0x14485d,_0x4f2a63);})[_0x5c0c4e(0x19c)](function(_0x24804f){const _0x2d4cb7=_0x5c0c4e;logger[_0x2d4cb7(0x193)](JSON[_0x2d4cb7(0x191)](_0x24804f));});});},Migration['prototype'][a1142_0x268a29(0x18a)]=function(_0x5e5c2d){const _0xa73b55=a1142_0x268a29,_0x41b946=this;this[_0xa73b55(0x195)]['enqueue'](function(){const _0x205da2=_0xa73b55;return _0x41b946[_0x205da2(0x17f)]['dropTable'](_0x5e5c2d,{'force':!![]})[_0x205da2(0x188)](function(){const _0x419608=_0x205da2;logger[_0x419608(0x193)]('table\x20dropped\x20%s',_0x5e5c2d);})[_0x205da2(0x19c)](function(_0x5e0b9e){const _0x195c89=_0x205da2;logger[_0x195c89(0x193)](JSON[_0x195c89(0x191)](_0x5e0b9e));});});},Migration[a1142_0x268a29(0x185)][a1142_0x268a29(0x196)]=function(_0x6d9869,_0x3bb16a,_0x3d5047){const _0x18ede2=a1142_0x268a29,_0x3af1a3=this;this['sequence'][_0x18ede2(0x182)](function(){const _0x40ca43=_0x18ede2;return _0x3af1a3[_0x40ca43(0x17f)][_0x40ca43(0x196)](_0x6d9869,_0x3bb16a,{'indexName':_0x3d5047['indexName'],'indicesType':_0x3d5047[_0x40ca43(0x192)]})[_0x40ca43(0x188)](function(){const _0x145c70=_0x40ca43;logger[_0x145c70(0x193)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x6d9869,_0x3bb16a[_0x145c70(0x18d)](','),_0x3d5047[_0x145c70(0x183)],_0x3d5047[_0x145c70(0x192)]);})[_0x40ca43(0x19c)](function(_0x28f6c7){const _0x1dd8f6=_0x40ca43;logger[_0x1dd8f6(0x193)](JSON['stringify'](_0x28f6c7));});});},Migration[a1142_0x268a29(0x185)][a1142_0x268a29(0x199)]=function(_0x32b13c,_0x3ddea3){const _0x3f1a9a=a1142_0x268a29,_0x2ef0d9=this;this['sequence'][_0x3f1a9a(0x182)](function(){const _0x1a23c3=_0x3f1a9a;return _0x2ef0d9[_0x1a23c3(0x17f)][_0x1a23c3(0x199)](_0x32b13c,_0x3ddea3)[_0x1a23c3(0x188)](function(){const _0x2c10b8=_0x1a23c3;logger[_0x2c10b8(0x193)](_0x2c10b8(0x18f),_0x32b13c,_0x3ddea3);})[_0x1a23c3(0x19c)](function(_0x3dba10){const _0x477fd4=_0x1a23c3;logger[_0x477fd4(0x193)](JSON[_0x477fd4(0x191)](_0x3dba10));});});},Migration[a1142_0x268a29(0x185)][a1142_0x268a29(0x194)]=function(_0x3b0061){const _0xefaceb=a1142_0x268a29,_0xd80e20=this;this[_0xefaceb(0x195)][_0xefaceb(0x182)](function(){const _0x3a655d=_0xefaceb;return _0xd80e20[_0x3a655d(0x17f)][_0x3a655d(0x187)]['query'](_0x3b0061)[_0x3a655d(0x188)](function(){const _0x2cd81b=_0x3a655d;logger[_0x2cd81b(0x193)](_0x2cd81b(0x198),_0x3b0061);})[_0x3a655d(0x19c)](function(_0x1fb0ef){const _0x392592=_0x3a655d;logger[_0x392592(0x193)](JSON[_0x392592(0x191)](_0x1fb0ef));});});},Migration['prototype'][a1142_0x268a29(0x19b)]=function(_0x39ae27,_0x520f56){const _0x3993da=a1142_0x268a29,_0x2b6d82=this;this[_0x3993da(0x195)]['enqueue'](function(){const _0x49e939=_0x3993da;return _0x2b6d82['queryInterface'][_0x49e939(0x19b)](_0x39ae27,_0x520f56)[_0x49e939(0x188)](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x520f56,_0x39ae27);})[_0x49e939(0x19c)](function(_0x287478){const _0x59fbf8=_0x49e939;logger[_0x59fbf8(0x193)](util[_0x59fbf8(0x180)](_0x287478,{'showHidden':![],'depth':null}));});});},Migration[a1142_0x268a29(0x185)][a1142_0x268a29(0x186)]=function(_0x59c152,_0x985e9c,_0x21b9e3){const _0x4e4527=a1142_0x268a29,_0x342d27=this;this[_0x4e4527(0x195)]['enqueue'](function(){const _0x1d344c=_0x4e4527;return _0x342d27[_0x1d344c(0x17f)]['renameColumn'](_0x59c152,_0x985e9c,_0x21b9e3)[_0x1d344c(0x188)](function(){const _0x5d3a71=_0x1d344c;logger[_0x5d3a71(0x193)](_0x5d3a71(0x190),_0x985e9c,_0x21b9e3,_0x59c152);})[_0x1d344c(0x19c)](function(_0x1a4361){const _0x455c2b=_0x1d344c;logger[_0x455c2b(0x193)](util[_0x455c2b(0x180)](_0x1a4361,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1142_0x268a29(0x189)]=function(_0x292abc){const _0x77c15d=a1142_0x268a29;this[_0x77c15d(0x195)][_0x77c15d(0x182)](function(){return _0x292abc();});},module[a1142_0x268a29(0x197)]={'up':function(_0x2aa0bb){return new Promise(function(_0x2b41c9){const _0x89205c=new Migration(_0x2aa0bb);_0x89205c['final'](_0x2b41c9);});},'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 d0dd56d..3da4123 100644 --- a/server/migrations/2.3.6.js +++ b/server/migrations/2.3.6.js @@ -1 +1 @@ -const a1143_0x54ff=['dropTable','inspect','removeColumn','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex','final','addIndex\x20%s\x20%s\x20%s\x20[%s]','tail','exports','Removed\x20column\x20%s\x20from\x20%s','queryInterface','query','renameColumn','stringify','finally','sequence','query\x20%s','addIndex','Added\x20column\x20%s\x20to\x20%s','enqueue','indicesType','util','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','catch','info','join','indexName','prototype','changeColumn'];(function(_0xd2633a,_0x1e74cd){const _0x54ff29=function(_0x211ce9){while(--_0x211ce9){_0xd2633a['push'](_0xd2633a['shift']());}};_0x54ff29(++_0x1e74cd);}(a1143_0x54ff,0xe8));const a1143_0x211c=function(_0xd2633a,_0x1e74cd){_0xd2633a=_0xd2633a-0x102;let _0x54ff29=a1143_0x54ff[_0xd2633a];return _0x54ff29;};const a1143_0x7f1d06=a1143_0x211c;'use strict';const util=require(a1143_0x7f1d06(0x110)),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][a1143_0x7f1d06(0x10e)]=function(_0x2a4691){const _0x459180=a1143_0x7f1d06;this['tail']=this[_0x459180(0x102)]?this['tail'][_0x459180(0x109)](_0x2a4691):_0x2a4691();};const Migration=function(_0x15d261){const _0x45f565=a1143_0x7f1d06;this[_0x45f565(0x105)]=_0x15d261,this[_0x45f565(0x10a)]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x3c5bc2,_0x689cae,_0x3f5199){const _0x2acd8c=a1143_0x7f1d06,_0x218601=this;this[_0x2acd8c(0x10a)][_0x2acd8c(0x10e)](function(){const _0xbb6145=_0x2acd8c;return _0x218601[_0xbb6145(0x105)][_0xbb6145(0x119)](_0x3c5bc2,_0x689cae,_0x3f5199)['then'](function(){const _0x44cb29=_0xbb6145;logger[_0x44cb29(0x115)](_0x44cb29(0x11e),_0x689cae,_0x3c5bc2);})[_0xbb6145(0x114)](function(_0xfe4bae){const _0x501c54=_0xbb6145;logger[_0x501c54(0x115)](JSON['stringify'](_0xfe4bae));});});},Migration[a1143_0x7f1d06(0x118)][a1143_0x7f1d06(0x11d)]=function(_0x1ec395,_0x35d6d0,_0x172527){const _0x306943=a1143_0x7f1d06,_0x59e507=this;this[_0x306943(0x10a)][_0x306943(0x10e)](function(){const _0x304aaa=_0x306943;return _0x59e507[_0x304aaa(0x105)]['addColumn'](_0x1ec395,_0x35d6d0,_0x172527)[_0x304aaa(0x111)](function(){const _0x22b75f=_0x304aaa;logger['info'](_0x22b75f(0x10d),_0x35d6d0,_0x1ec395);})[_0x304aaa(0x114)](function(_0x2cb18d){logger['info'](JSON['stringify'](_0x2cb18d));});});},Migration['prototype']['dropTable']=function(_0x93b9ce){const _0xf5c58a=a1143_0x7f1d06,_0x4df2f3=this;this[_0xf5c58a(0x10a)][_0xf5c58a(0x10e)](function(){const _0xe8069b=_0xf5c58a;return _0x4df2f3[_0xe8069b(0x105)][_0xe8069b(0x11a)](_0x93b9ce,{'force':!![]})['then'](function(){const _0x5092ed=_0xe8069b;logger['info'](_0x5092ed(0x113),_0x93b9ce);})['catch'](function(_0x255301){logger['info'](JSON['stringify'](_0x255301));});});},Migration[a1143_0x7f1d06(0x118)]['addIndex']=function(_0x3a4044,_0x3425c0,_0x4a6cc9){const _0x60d811=this;this['sequence']['enqueue'](function(){const _0x49a9e6=a1143_0x211c;return _0x60d811[_0x49a9e6(0x105)][_0x49a9e6(0x10c)](_0x3a4044,_0x3425c0,{'indexName':_0x4a6cc9[_0x49a9e6(0x117)],'indicesType':_0x4a6cc9[_0x49a9e6(0x10f)]})[_0x49a9e6(0x111)](function(){const _0x11e273=_0x49a9e6;logger[_0x11e273(0x115)](_0x11e273(0x121),_0x3a4044,_0x3425c0[_0x11e273(0x116)](','),_0x4a6cc9[_0x11e273(0x117)],_0x4a6cc9['indicesType']);})[_0x49a9e6(0x114)](function(_0x42479b){const _0x18b891=_0x49a9e6;logger[_0x18b891(0x115)](JSON[_0x18b891(0x108)](_0x42479b));});});},Migration[a1143_0x7f1d06(0x118)][a1143_0x7f1d06(0x11f)]=function(_0x532c6b,_0x45faf8){const _0x190279=a1143_0x7f1d06,_0xe81006=this;this[_0x190279(0x10a)][_0x190279(0x10e)](function(){const _0x11cded=_0x190279;return _0xe81006[_0x11cded(0x105)][_0x11cded(0x11f)](_0x532c6b,_0x45faf8)['then'](function(){const _0xf6f571=_0x11cded;logger[_0xf6f571(0x115)]('removeIndex\x20%s\x20%s',_0x532c6b,_0x45faf8);})[_0x11cded(0x114)](function(_0x56d752){const _0x307e4f=_0x11cded;logger[_0x307e4f(0x115)](JSON[_0x307e4f(0x108)](_0x56d752));});});},Migration[a1143_0x7f1d06(0x118)][a1143_0x7f1d06(0x106)]=function(_0x32808c){const _0x35bcf2=a1143_0x7f1d06,_0x519785=this;this[_0x35bcf2(0x10a)]['enqueue'](function(){const _0x43014e=_0x35bcf2;return _0x519785[_0x43014e(0x105)]['sequelize'][_0x43014e(0x106)](_0x32808c)[_0x43014e(0x111)](function(){const _0x11dfa9=_0x43014e;logger['info'](_0x11dfa9(0x10b),_0x32808c);})['catch'](function(_0x1ecdd4){const _0x328380=_0x43014e;logger[_0x328380(0x115)](JSON[_0x328380(0x108)](_0x1ecdd4));});});},Migration['prototype'][a1143_0x7f1d06(0x11c)]=function(_0xc1c292,_0x19f417){const _0x3297cc=a1143_0x7f1d06,_0x371556=this;this[_0x3297cc(0x10a)][_0x3297cc(0x10e)](function(){const _0x1a69b2=_0x3297cc;return _0x371556[_0x1a69b2(0x105)][_0x1a69b2(0x11c)](_0xc1c292,_0x19f417)[_0x1a69b2(0x111)](function(){const _0x3c8061=_0x1a69b2;logger[_0x3c8061(0x115)](_0x3c8061(0x104),_0x19f417,_0xc1c292);})[_0x1a69b2(0x114)](function(_0x4d1de6){const _0x13940b=_0x1a69b2;logger[_0x13940b(0x115)](util[_0x13940b(0x11b)](_0x4d1de6,{'showHidden':![],'depth':null}));});});},Migration[a1143_0x7f1d06(0x118)][a1143_0x7f1d06(0x107)]=function(_0x2b0ee4,_0x3d4a95,_0x3aed5e){const _0x319605=a1143_0x7f1d06,_0x156cd1=this;this[_0x319605(0x10a)]['enqueue'](function(){const _0x1e660c=_0x319605;return _0x156cd1['queryInterface']['renameColumn'](_0x2b0ee4,_0x3d4a95,_0x3aed5e)[_0x1e660c(0x111)](function(){const _0x3f2c99=_0x1e660c;logger[_0x3f2c99(0x115)](_0x3f2c99(0x112),_0x3d4a95,_0x3aed5e,_0x2b0ee4);})[_0x1e660c(0x114)](function(_0x1afd37){const _0x2360be=_0x1e660c;logger['info'](util[_0x2360be(0x11b)](_0x1afd37,{'showHidden':![],'depth':null}));});});},Migration[a1143_0x7f1d06(0x118)][a1143_0x7f1d06(0x120)]=function(_0x562cb0){const _0x54df44=a1143_0x7f1d06;this[_0x54df44(0x10a)][_0x54df44(0x10e)](function(){return _0x562cb0();});},module[a1143_0x7f1d06(0x103)]={'up':function(_0x4d15ae){return new Promise(function(_0x400f00){const _0x24696a=a1143_0x211c,_0x20b787=new Migration(_0x4d15ae);_0x20b787[_0x24696a(0x120)](_0x400f00);});},'down':function(){}}; \ No newline at end of file +const a1143_0x366e=['query','util','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','../config/logger','addColumn','renameColumn','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','tail','info','enqueue','stringify','Added\x20column\x20%s\x20to\x20%s','sequence','indicesType','exports','migration','indexName','addIndex','queryInterface','finally','catch','dropTable','removeColumn','then','removeIndex\x20%s\x20%s','removeIndex','inspect','prototype','changeColumn'];(function(_0x40c671,_0x2d9793){const _0x366e3d=function(_0x34f6bf){while(--_0x34f6bf){_0x40c671['push'](_0x40c671['shift']());}};_0x366e3d(++_0x2d9793);}(a1143_0x366e,0x1c9));const a1143_0x34f6=function(_0x40c671,_0x2d9793){_0x40c671=_0x40c671-0x123;let _0x366e3d=a1143_0x366e[_0x40c671];return _0x366e3d;};const a1143_0x118ca4=a1143_0x34f6;'use strict';const util=require(a1143_0x118ca4(0x12c)),logger=require(a1143_0x118ca4(0x12f))(a1143_0x118ca4(0x13c)),Sequence=function(){};Sequence[a1143_0x118ca4(0x129)][a1143_0x118ca4(0x136)]=function(_0x41e7cc){const _0x1d6b01=a1143_0x118ca4;this[_0x1d6b01(0x134)]=this[_0x1d6b01(0x134)]?this[_0x1d6b01(0x134)][_0x1d6b01(0x140)](_0x41e7cc):_0x41e7cc();};const Migration=function(_0x427916){this['queryInterface']=_0x427916,this['sequence']=new Sequence();};Migration[a1143_0x118ca4(0x129)]['changeColumn']=function(_0x2d056e,_0x29d137,_0x41905e){const _0x34659b=a1143_0x118ca4,_0x453ae0=this;this[_0x34659b(0x139)][_0x34659b(0x136)](function(){const _0x5e7b91=_0x34659b;return _0x453ae0[_0x5e7b91(0x13f)][_0x5e7b91(0x12a)](_0x2d056e,_0x29d137,_0x41905e)[_0x5e7b91(0x125)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x29d137,_0x2d056e);})[_0x5e7b91(0x141)](function(_0x3b1a89){const _0x565da6=_0x5e7b91;logger['info'](JSON[_0x565da6(0x137)](_0x3b1a89));});});},Migration[a1143_0x118ca4(0x129)]['addColumn']=function(_0x49e3d1,_0x41c247,_0x1a51c8){const _0x233178=a1143_0x118ca4,_0x50d136=this;this[_0x233178(0x139)]['enqueue'](function(){const _0x23474b=_0x233178;return _0x50d136[_0x23474b(0x13f)][_0x23474b(0x130)](_0x49e3d1,_0x41c247,_0x1a51c8)[_0x23474b(0x125)](function(){const _0x1a205d=_0x23474b;logger[_0x1a205d(0x135)](_0x1a205d(0x138),_0x41c247,_0x49e3d1);})[_0x23474b(0x141)](function(_0x26ba3b){const _0x39548c=_0x23474b;logger[_0x39548c(0x135)](JSON[_0x39548c(0x137)](_0x26ba3b));});});},Migration[a1143_0x118ca4(0x129)][a1143_0x118ca4(0x123)]=function(_0x174caa){const _0x3798f2=this;this['sequence']['enqueue'](function(){const _0x491a1e=a1143_0x34f6;return _0x3798f2[_0x491a1e(0x13f)][_0x491a1e(0x123)](_0x174caa,{'force':!![]})[_0x491a1e(0x125)](function(){logger['info']('table\x20dropped\x20%s',_0x174caa);})[_0x491a1e(0x141)](function(_0x26ef5c){const _0x45b6d8=_0x491a1e;logger['info'](JSON[_0x45b6d8(0x137)](_0x26ef5c));});});},Migration[a1143_0x118ca4(0x129)][a1143_0x118ca4(0x13e)]=function(_0x21688a,_0x187b62,_0x541cb5){const _0x2bd663=a1143_0x118ca4,_0x3cd0e0=this;this['sequence'][_0x2bd663(0x136)](function(){const _0x7d6ee=_0x2bd663;return _0x3cd0e0[_0x7d6ee(0x13f)][_0x7d6ee(0x13e)](_0x21688a,_0x187b62,{'indexName':_0x541cb5['indexName'],'indicesType':_0x541cb5['indicesType']})[_0x7d6ee(0x125)](function(){const _0x273ffe=_0x7d6ee;logger[_0x273ffe(0x135)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x21688a,_0x187b62['join'](','),_0x541cb5[_0x273ffe(0x13d)],_0x541cb5[_0x273ffe(0x13a)]);})[_0x7d6ee(0x141)](function(_0x8b204e){const _0x54d5a4=_0x7d6ee;logger[_0x54d5a4(0x135)](JSON['stringify'](_0x8b204e));});});},Migration[a1143_0x118ca4(0x129)][a1143_0x118ca4(0x127)]=function(_0x30987a,_0x8e9f8b){const _0x2d2ea6=this;this['sequence']['enqueue'](function(){const _0x451725=a1143_0x34f6;return _0x2d2ea6[_0x451725(0x13f)][_0x451725(0x127)](_0x30987a,_0x8e9f8b)['then'](function(){const _0x3c985a=_0x451725;logger['info'](_0x3c985a(0x126),_0x30987a,_0x8e9f8b);})[_0x451725(0x141)](function(_0x1639cb){const _0x4800c9=_0x451725;logger[_0x4800c9(0x135)](JSON[_0x4800c9(0x137)](_0x1639cb));});});},Migration[a1143_0x118ca4(0x129)]['query']=function(_0xb25de0){const _0x5826eb=a1143_0x118ca4,_0x4180e5=this;this[_0x5826eb(0x139)]['enqueue'](function(){const _0x475bac=_0x5826eb;return _0x4180e5['queryInterface']['sequelize'][_0x475bac(0x12b)](_0xb25de0)[_0x475bac(0x125)](function(){const _0x3ab4ad=_0x475bac;logger[_0x3ab4ad(0x135)](_0x3ab4ad(0x133),_0xb25de0);})[_0x475bac(0x141)](function(_0x372f14){const _0x538f7d=_0x475bac;logger[_0x538f7d(0x135)](JSON[_0x538f7d(0x137)](_0x372f14));});});},Migration['prototype']['removeColumn']=function(_0x50d2f2,_0x87bb01){const _0x20fa84=a1143_0x118ca4,_0x360c0a=this;this[_0x20fa84(0x139)][_0x20fa84(0x136)](function(){const _0x2c81fd=_0x20fa84;return _0x360c0a[_0x2c81fd(0x13f)][_0x2c81fd(0x124)](_0x50d2f2,_0x87bb01)[_0x2c81fd(0x125)](function(){const _0x363d48=_0x2c81fd;logger[_0x363d48(0x135)](_0x363d48(0x132),_0x87bb01,_0x50d2f2);})[_0x2c81fd(0x141)](function(_0xed8f2e){const _0x53fe92=_0x2c81fd;logger[_0x53fe92(0x135)](util[_0x53fe92(0x128)](_0xed8f2e,{'showHidden':![],'depth':null}));});});},Migration[a1143_0x118ca4(0x129)]['renameColumn']=function(_0x46bee9,_0x551d67,_0x5dc293){const _0x5e31bf=a1143_0x118ca4,_0x4da9e0=this;this[_0x5e31bf(0x139)][_0x5e31bf(0x136)](function(){const _0x5b109e=_0x5e31bf;return _0x4da9e0['queryInterface'][_0x5b109e(0x131)](_0x46bee9,_0x551d67,_0x5dc293)[_0x5b109e(0x125)](function(){const _0x55011e=_0x5b109e;logger['info'](_0x55011e(0x12d),_0x551d67,_0x5dc293,_0x46bee9);})[_0x5b109e(0x141)](function(_0x507fa0){const _0x1158ba=_0x5b109e;logger['info'](util[_0x1158ba(0x128)](_0x507fa0,{'showHidden':![],'depth':null}));});});},Migration[a1143_0x118ca4(0x129)][a1143_0x118ca4(0x12e)]=function(_0x1b853c){const _0x19bb48=a1143_0x118ca4;this[_0x19bb48(0x139)]['enqueue'](function(){return _0x1b853c();});},module[a1143_0x118ca4(0x13b)]={'up':function(_0x436432){return new Promise(function(_0x1db6dd){const _0x1c48b6=a1143_0x34f6,_0x46fca4=new Migration(_0x436432);_0x46fca4[_0x1c48b6(0x12e)](_0x1db6dd);});},'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 2f7f940..d1ea35c 100644 --- a/server/migrations/2.3.7.js +++ b/server/migrations/2.3.7.js @@ -1 +1 @@ -const a1144_0xc2ad=['renameColumn','util','ticketType','STRING','report_call','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','removeColumn','changeColumn','info','enqueue','systemanswertime','report_agent','Case','join','migration','addIndex\x20%s\x20%s\x20%s','int_salesforce_configurations','sequence','queryInterface','prototype','tail','removeIndex','catch','INTEGER','finally','sequelize','ENUM','final','query\x20%s','transfer','DATE','dropTable','agententerreason','FORWARD,\x20BLIND,\x20ATTENDED','then','BOOLEAN','addColumn','query','stringify','inspect','Added\x20column\x20%s\x20to\x20%s','removeIndex\x20%s\x20%s','addIndex','Task'];(function(_0x4d1641,_0x575df3){const _0xc2adb4=function(_0x90b3c2){while(--_0x90b3c2){_0x4d1641['push'](_0x4d1641['shift']());}};_0xc2adb4(++_0x575df3);}(a1144_0xc2ad,0x141));const a1144_0x90b3=function(_0x4d1641,_0x575df3){_0x4d1641=_0x4d1641-0xa9;let _0xc2adb4=a1144_0xc2ad[_0x4d1641];return _0xc2adb4;};const a1144_0x4c0c5f=a1144_0x90b3;'use strict';const util=require(a1144_0x4c0c5f(0xd1)),logger=require('../config/logger')(a1144_0x4c0c5f(0xb2)),Sequence=function(){};Sequence[a1144_0x4c0c5f(0xb7)][a1144_0x4c0c5f(0xad)]=function(_0x4c0e5e){const _0x5e78c4=a1144_0x4c0c5f;this['tail']=this[_0x5e78c4(0xb8)]?this[_0x5e78c4(0xb8)][_0x5e78c4(0xbc)](_0x4c0e5e):_0x4c0e5e();};const Migration=function(_0x445366){const _0x23551e=a1144_0x4c0c5f;this['queryInterface']=_0x445366,this[_0x23551e(0xb5)]=new Sequence();};Migration[a1144_0x4c0c5f(0xb7)]['changeColumn']=function(_0x2950ea,_0x55cf76,_0x2bb3f1){const _0x2cb327=a1144_0x4c0c5f,_0x548e4e=this;this[_0x2cb327(0xb5)][_0x2cb327(0xad)](function(){const _0x863aa5=_0x2cb327;return _0x548e4e['queryInterface'][_0x863aa5(0xab)](_0x2950ea,_0x55cf76,_0x2bb3f1)[_0x863aa5(0xc6)](function(){const _0x4dbf57=_0x863aa5;logger[_0x4dbf57(0xac)](_0x4dbf57(0xd5),_0x55cf76,_0x2950ea);})['catch'](function(_0x46ad9c){const _0x2ebddf=_0x863aa5;logger[_0x2ebddf(0xac)](JSON[_0x2ebddf(0xca)](_0x46ad9c));});});},Migration[a1144_0x4c0c5f(0xb7)][a1144_0x4c0c5f(0xc8)]=function(_0x1712ae,_0x4ce0db,_0x1bbd7e){const _0x450080=a1144_0x4c0c5f,_0x17b01e=this;this['sequence'][_0x450080(0xad)](function(){const _0x52863b=_0x450080;return _0x17b01e[_0x52863b(0xb6)][_0x52863b(0xc8)](_0x1712ae,_0x4ce0db,_0x1bbd7e)[_0x52863b(0xc6)](function(){const _0x89adda=_0x52863b;logger[_0x89adda(0xac)](_0x89adda(0xcc),_0x4ce0db,_0x1712ae);})['catch'](function(_0x1f430f){const _0x32bfd2=_0x52863b;logger[_0x32bfd2(0xac)](JSON[_0x32bfd2(0xca)](_0x1f430f));});});},Migration[a1144_0x4c0c5f(0xb7)][a1144_0x4c0c5f(0xc3)]=function(_0x431c79){const _0x56beb9=a1144_0x4c0c5f,_0x145cf7=this;this[_0x56beb9(0xb5)]['enqueue'](function(){const _0xfecd2b=_0x56beb9;return _0x145cf7[_0xfecd2b(0xb6)][_0xfecd2b(0xc3)](_0x431c79,{'force':!![]})[_0xfecd2b(0xc6)](function(){logger['info']('table\x20dropped\x20%s',_0x431c79);})[_0xfecd2b(0xba)](function(_0x10f344){const _0x68f422=_0xfecd2b;logger[_0x68f422(0xac)](JSON[_0x68f422(0xca)](_0x10f344));});});},Migration['prototype'][a1144_0x4c0c5f(0xce)]=function(_0x1a2a98,_0xe675c9,_0x5ca027){const _0x31ceeb=a1144_0x4c0c5f,_0x51fae2=this;this[_0x31ceeb(0xb5)]['enqueue'](function(){const _0x5277e9=_0x31ceeb;return _0x51fae2[_0x5277e9(0xb6)]['addIndex'](_0x1a2a98,_0xe675c9,{'indexName':_0x5ca027})[_0x5277e9(0xc6)](function(){const _0x30bb18=_0x5277e9;logger[_0x30bb18(0xac)](_0x30bb18(0xb3),_0x1a2a98,_0xe675c9[_0x30bb18(0xb1)](','),_0x5ca027);})[_0x5277e9(0xba)](function(_0x42f233){const _0xc1db01=_0x5277e9;logger[_0xc1db01(0xac)](JSON[_0xc1db01(0xca)](_0x42f233));});});},Migration[a1144_0x4c0c5f(0xb7)][a1144_0x4c0c5f(0xb9)]=function(_0x2a19b8,_0xa23955){const _0x14707b=a1144_0x4c0c5f,_0x5b5aa4=this;this['sequence'][_0x14707b(0xad)](function(){const _0x51ebc7=_0x14707b;return _0x5b5aa4[_0x51ebc7(0xb6)][_0x51ebc7(0xb9)](_0x2a19b8,_0xa23955)[_0x51ebc7(0xc6)](function(){const _0x3942a7=_0x51ebc7;logger[_0x3942a7(0xac)](_0x3942a7(0xcd),_0x2a19b8,_0xa23955);})['catch'](function(_0x21052e){const _0x165fba=_0x51ebc7;logger['info'](JSON[_0x165fba(0xca)](_0x21052e));});});},Migration[a1144_0x4c0c5f(0xb7)][a1144_0x4c0c5f(0xc9)]=function(_0x3129cf){const _0x3d5c7e=a1144_0x4c0c5f,_0xc38bfa=this;this[_0x3d5c7e(0xb5)][_0x3d5c7e(0xad)](function(){const _0x4087c4=_0x3d5c7e;return _0xc38bfa[_0x4087c4(0xb6)][_0x4087c4(0xbd)][_0x4087c4(0xc9)](_0x3129cf)[_0x4087c4(0xc6)](function(){const _0xb38e7d=_0x4087c4;logger[_0xb38e7d(0xac)](_0xb38e7d(0xc0),_0x3129cf);})[_0x4087c4(0xba)](function(_0x218b4b){const _0x378631=_0x4087c4;logger[_0x378631(0xac)](JSON[_0x378631(0xca)](_0x218b4b));});});},Migration[a1144_0x4c0c5f(0xb7)][a1144_0x4c0c5f(0xaa)]=function(_0x3f2f01,_0x1b988c){const _0x2c5ff0=a1144_0x4c0c5f,_0x205203=this;this[_0x2c5ff0(0xb5)]['enqueue'](function(){const _0x4dfa7c=_0x2c5ff0;return _0x205203[_0x4dfa7c(0xb6)][_0x4dfa7c(0xaa)](_0x3f2f01,_0x1b988c)['then'](function(){const _0x2be7bd=_0x4dfa7c;logger[_0x2be7bd(0xac)](_0x2be7bd(0xa9),_0x1b988c,_0x3f2f01);})['catch'](function(_0x5e6aba){const _0x3454ab=_0x4dfa7c;logger[_0x3454ab(0xac)](util[_0x3454ab(0xcb)](_0x5e6aba,{'showHidden':![],'depth':null}));});});},Migration[a1144_0x4c0c5f(0xb7)]['renameColumn']=function(_0x2b6c94,_0x408999,_0x5b6f63){const _0x5bb50b=a1144_0x4c0c5f,_0x1a68df=this;this[_0x5bb50b(0xb5)][_0x5bb50b(0xad)](function(){const _0x127d05=_0x5bb50b;return _0x1a68df[_0x127d05(0xb6)][_0x127d05(0xd0)](_0x2b6c94,_0x408999,_0x5b6f63)[_0x127d05(0xc6)](function(){const _0x4cb0ce=_0x127d05;logger[_0x4cb0ce(0xac)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x408999,_0x5b6f63,_0x2b6c94);})[_0x127d05(0xba)](function(_0xce5e1d){const _0x33ea2c=_0x127d05;logger[_0x33ea2c(0xac)](util[_0x33ea2c(0xcb)](_0xce5e1d,{'showHidden':![],'depth':null}));});});},Migration[a1144_0x4c0c5f(0xb7)][a1144_0x4c0c5f(0xbf)]=function(_0x36f05a){const _0x27873e=a1144_0x4c0c5f;this[_0x27873e(0xb5)][_0x27873e(0xad)](function(){return _0x36f05a();});},module['exports']={'up':function(_0x397955,_0x5253ba){return new Promise(function(_0x50b1c9){const _0x180884=a1144_0x90b3,_0xebfd3c=new Migration(_0x397955);_0xebfd3c[_0x180884(0xc8)](_0x180884(0xaf),_0x180884(0xc1),{'type':_0x5253ba[_0x180884(0xc7)],'defaultValue':![]}),_0xebfd3c[_0x180884(0xc8)](_0x180884(0xaf),'transfertype',{'type':_0x5253ba[_0x180884(0xd3)],'comment':_0x180884(0xc5)}),_0xebfd3c[_0x180884(0xc8)](_0x180884(0xaf),'transferexten',{'type':_0x5253ba[_0x180884(0xd3)]}),_0xebfd3c['addColumn'](_0x180884(0xaf),'transferuniqueid',{'type':_0x5253ba[_0x180884(0xd3)]}),_0xebfd3c[_0x180884(0xc8)]('report_agent',_0x180884(0xc4),{'type':_0x5253ba[_0x180884(0xbb)],'defaultValue':0x0}),_0xebfd3c['addColumn'](_0x180884(0xd4),_0x180884(0xae),{'type':_0x5253ba[_0x180884(0xc2)]}),_0xebfd3c[_0x180884(0xc8)](_0x180884(0xb4),_0x180884(0xd2),{'type':_0x5253ba[_0x180884(0xbe)](_0x180884(0xcf),_0x180884(0xb0)),'defaultValue':_0x180884(0xcf)}),_0xebfd3c['final'](_0x50b1c9);});},'down':function(){}}; \ No newline at end of file +const a1144_0x1b87=['addIndex','query','DATE','BOOLEAN','int_salesforce_configurations','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','inspect','changeColumn','tail','addColumn','transferexten','transfer','renameColumn','addIndex\x20%s\x20%s\x20%s','query\x20%s','finally','removeIndex','catch','stringify','systemanswertime','join','exports','queryInterface','ticketType','table\x20dropped\x20%s','Task','transfertype','Removed\x20column\x20%s\x20from\x20%s','STRING','sequence','enqueue','removeIndex\x20%s\x20%s','then','info','prototype','Case','report_agent'];(function(_0x5b442b,_0x3e3702){const _0x1b87c7=function(_0xfa5648){while(--_0xfa5648){_0x5b442b['push'](_0x5b442b['shift']());}};_0x1b87c7(++_0x3e3702);}(a1144_0x1b87,0xb7));const a1144_0xfa56=function(_0x5b442b,_0x3e3702){_0x5b442b=_0x5b442b-0xfe;let _0x1b87c7=a1144_0x1b87[_0x5b442b];return _0x1b87c7;};const a1144_0x5b1df1=a1144_0xfa56;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][a1144_0x5b1df1(0xfe)]=function(_0x301189){const _0x1152a9=a1144_0x5b1df1;this[_0x1152a9(0x10e)]=this['tail']?this[_0x1152a9(0x10e)][_0x1152a9(0x115)](_0x301189):_0x301189();};const Migration=function(_0xfe9208){const _0x2fedba=a1144_0x5b1df1;this[_0x2fedba(0x11c)]=_0xfe9208,this[_0x2fedba(0x123)]=new Sequence();};Migration[a1144_0x5b1df1(0x102)][a1144_0x5b1df1(0x10d)]=function(_0x344229,_0x3f1c48,_0x2a2c04){const _0xa30cf1=a1144_0x5b1df1,_0x2cae51=this;this['sequence'][_0xa30cf1(0xfe)](function(){const _0x464db4=_0xa30cf1;return _0x2cae51[_0x464db4(0x11c)][_0x464db4(0x10d)](_0x344229,_0x3f1c48,_0x2a2c04)[_0x464db4(0x100)](function(){const _0x37c81f=_0x464db4;logger[_0x37c81f(0x101)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3f1c48,_0x344229);})['catch'](function(_0x3f7344){const _0x1628dc=_0x464db4;logger['info'](JSON[_0x1628dc(0x118)](_0x3f7344));});});},Migration[a1144_0x5b1df1(0x102)][a1144_0x5b1df1(0x10f)]=function(_0x18121b,_0x2b3b4f,_0x1a537b){const _0x1c521e=a1144_0x5b1df1,_0xdedd39=this;this[_0x1c521e(0x123)][_0x1c521e(0xfe)](function(){const _0x48125d=_0x1c521e;return _0xdedd39[_0x48125d(0x11c)][_0x48125d(0x10f)](_0x18121b,_0x2b3b4f,_0x1a537b)[_0x48125d(0x100)](function(){const _0x55f28c=_0x48125d;logger[_0x55f28c(0x101)]('Added\x20column\x20%s\x20to\x20%s',_0x2b3b4f,_0x18121b);})[_0x48125d(0x117)](function(_0x512c2a){const _0x3fa2ae=_0x48125d;logger[_0x3fa2ae(0x101)](JSON[_0x3fa2ae(0x118)](_0x512c2a));});});},Migration['prototype']['dropTable']=function(_0x1f4f9d){const _0xe81571=a1144_0x5b1df1,_0x5068b9=this;this[_0xe81571(0x123)]['enqueue'](function(){const _0x19a648=_0xe81571;return _0x5068b9[_0x19a648(0x11c)]['dropTable'](_0x1f4f9d,{'force':!![]})[_0x19a648(0x100)](function(){const _0x305eaa=_0x19a648;logger[_0x305eaa(0x101)](_0x305eaa(0x11e),_0x1f4f9d);})[_0x19a648(0x117)](function(_0x132fc2){const _0x7f0c31=_0x19a648;logger['info'](JSON[_0x7f0c31(0x118)](_0x132fc2));});});},Migration[a1144_0x5b1df1(0x102)][a1144_0x5b1df1(0x105)]=function(_0x8638cd,_0x4757bb,_0x3886de){const _0x51a407=a1144_0x5b1df1,_0x2e1a83=this;this[_0x51a407(0x123)]['enqueue'](function(){const _0x4c50be=_0x51a407;return _0x2e1a83[_0x4c50be(0x11c)][_0x4c50be(0x105)](_0x8638cd,_0x4757bb,{'indexName':_0x3886de})[_0x4c50be(0x100)](function(){const _0x1ea2e6=_0x4c50be;logger[_0x1ea2e6(0x101)](_0x1ea2e6(0x113),_0x8638cd,_0x4757bb[_0x1ea2e6(0x11a)](','),_0x3886de);})[_0x4c50be(0x117)](function(_0x288fe3){const _0x198f4f=_0x4c50be;logger[_0x198f4f(0x101)](JSON[_0x198f4f(0x118)](_0x288fe3));});});},Migration[a1144_0x5b1df1(0x102)][a1144_0x5b1df1(0x116)]=function(_0x192c9f,_0x1ea39b){const _0x1a73da=a1144_0x5b1df1,_0x58c3a0=this;this[_0x1a73da(0x123)][_0x1a73da(0xfe)](function(){const _0xd2ba97=_0x1a73da;return _0x58c3a0[_0xd2ba97(0x11c)][_0xd2ba97(0x116)](_0x192c9f,_0x1ea39b)[_0xd2ba97(0x100)](function(){const _0x2dd299=_0xd2ba97;logger[_0x2dd299(0x101)](_0x2dd299(0xff),_0x192c9f,_0x1ea39b);})[_0xd2ba97(0x117)](function(_0x32d207){const _0x1a3631=_0xd2ba97;logger['info'](JSON[_0x1a3631(0x118)](_0x32d207));});});},Migration['prototype'][a1144_0x5b1df1(0x106)]=function(_0x4df02a){const _0x4d65d0=this;this['sequence']['enqueue'](function(){const _0x373d87=a1144_0xfa56;return _0x4d65d0[_0x373d87(0x11c)]['sequelize']['query'](_0x4df02a)['then'](function(){const _0x2db775=_0x373d87;logger[_0x2db775(0x101)](_0x2db775(0x114),_0x4df02a);})[_0x373d87(0x117)](function(_0x4f6619){const _0x240ec1=_0x373d87;logger[_0x240ec1(0x101)](JSON['stringify'](_0x4f6619));});});},Migration['prototype']['removeColumn']=function(_0x4aed86,_0x55e4aa){const _0x4bd7dd=a1144_0x5b1df1,_0xb682d6=this;this[_0x4bd7dd(0x123)][_0x4bd7dd(0xfe)](function(){const _0x58afe1=_0x4bd7dd;return _0xb682d6[_0x58afe1(0x11c)]['removeColumn'](_0x4aed86,_0x55e4aa)[_0x58afe1(0x100)](function(){const _0x2de69a=_0x58afe1;logger[_0x2de69a(0x101)](_0x2de69a(0x121),_0x55e4aa,_0x4aed86);})['catch'](function(_0x35c594){const _0x1dee29=_0x58afe1;logger['info'](util[_0x1dee29(0x10c)](_0x35c594,{'showHidden':![],'depth':null}));});});},Migration[a1144_0x5b1df1(0x102)]['renameColumn']=function(_0x74052a,_0x1af12e,_0x174cae){const _0x3401f0=a1144_0x5b1df1,_0x1760a9=this;this[_0x3401f0(0x123)][_0x3401f0(0xfe)](function(){const _0x42da57=_0x3401f0;return _0x1760a9[_0x42da57(0x11c)][_0x42da57(0x112)](_0x74052a,_0x1af12e,_0x174cae)[_0x42da57(0x100)](function(){const _0x3f57b3=_0x42da57;logger[_0x3f57b3(0x101)](_0x3f57b3(0x10a),_0x1af12e,_0x174cae,_0x74052a);})[_0x42da57(0x117)](function(_0x4f6cc0){const _0x243d5a=_0x42da57;logger[_0x243d5a(0x101)](util[_0x243d5a(0x10c)](_0x4f6cc0,{'showHidden':![],'depth':null}));});});},Migration[a1144_0x5b1df1(0x102)][a1144_0x5b1df1(0x10b)]=function(_0x518343){const _0x4dba84=a1144_0x5b1df1;this[_0x4dba84(0x123)][_0x4dba84(0xfe)](function(){return _0x518343();});},module[a1144_0x5b1df1(0x11b)]={'up':function(_0x303454,_0x2c7e8c){return new Promise(function(_0x228f2c){const _0x465fe7=a1144_0xfa56,_0x3b4775=new Migration(_0x303454);_0x3b4775[_0x465fe7(0x10f)](_0x465fe7(0x104),_0x465fe7(0x111),{'type':_0x2c7e8c[_0x465fe7(0x108)],'defaultValue':![]}),_0x3b4775[_0x465fe7(0x10f)](_0x465fe7(0x104),_0x465fe7(0x120),{'type':_0x2c7e8c[_0x465fe7(0x122)],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'}),_0x3b4775[_0x465fe7(0x10f)]('report_agent',_0x465fe7(0x110),{'type':_0x2c7e8c[_0x465fe7(0x122)]}),_0x3b4775[_0x465fe7(0x10f)](_0x465fe7(0x104),'transferuniqueid',{'type':_0x2c7e8c['STRING']}),_0x3b4775[_0x465fe7(0x10f)](_0x465fe7(0x104),'agententerreason',{'type':_0x2c7e8c['INTEGER'],'defaultValue':0x0}),_0x3b4775[_0x465fe7(0x10f)]('report_call',_0x465fe7(0x119),{'type':_0x2c7e8c[_0x465fe7(0x107)]}),_0x3b4775['addColumn'](_0x465fe7(0x109),_0x465fe7(0x11d),{'type':_0x2c7e8c['ENUM']('Task',_0x465fe7(0x103)),'defaultValue':_0x465fe7(0x11f)}),_0x3b4775[_0x465fe7(0x10b)](_0x228f2c);});},'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 7bab741..f54d3e1 100644 --- a/server/migrations/2.3.8.js +++ b/server/migrations/2.3.8.js @@ -1 +1 @@ -const a1145_0x1a76=['migration','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','removeIndex\x20%s\x20%s','addColumn','inspect','sequence','tail','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','dropTable','then','addIndex\x20%s\x20%s\x20%s','finally','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','util','catch','addIndex','final','stringify','exports','join','sequelize','prototype','queryInterface','renameColumn','info','enqueue','query\x20%s'];(function(_0x2379d6,_0x1585ac){const _0x1a7667=function(_0x306605){while(--_0x306605){_0x2379d6['push'](_0x2379d6['shift']());}};_0x1a7667(++_0x1585ac);}(a1145_0x1a76,0x12a));const a1145_0x3066=function(_0x2379d6,_0x1585ac){_0x2379d6=_0x2379d6-0x1a3;let _0x1a7667=a1145_0x1a76[_0x2379d6];return _0x1a7667;};const a1145_0x1efdd9=a1145_0x3066;'use strict';const util=require(a1145_0x1efdd9(0x1ab)),logger=require(a1145_0x1efdd9(0x1a8))(a1145_0x1efdd9(0x1b9)),Sequence=function(){};Sequence[a1145_0x1efdd9(0x1b3)][a1145_0x1efdd9(0x1b7)]=function(_0x155cc5){const _0x47693c=a1145_0x1efdd9;this[_0x47693c(0x1c1)]=this['tail']?this[_0x47693c(0x1c1)][_0x47693c(0x1a7)](_0x155cc5):_0x155cc5();};const Migration=function(_0x5079e9){const _0x3ae3eb=a1145_0x1efdd9;this['queryInterface']=_0x5079e9,this[_0x3ae3eb(0x1c0)]=new Sequence();};Migration[a1145_0x1efdd9(0x1b3)]['changeColumn']=function(_0x2faf7f,_0x47a067,_0x27892b){const _0x588642=a1145_0x1efdd9,_0xde1b35=this;this[_0x588642(0x1c0)][_0x588642(0x1b7)](function(){const _0x20cbfb=_0x588642;return _0xde1b35['queryInterface']['changeColumn'](_0x2faf7f,_0x47a067,_0x27892b)[_0x20cbfb(0x1a5)](function(){const _0x5d44d0=_0x20cbfb;logger[_0x5d44d0(0x1b6)](_0x5d44d0(0x1bb),_0x47a067,_0x2faf7f);})[_0x20cbfb(0x1ac)](function(_0x33757f){const _0x5eb113=_0x20cbfb;logger[_0x5eb113(0x1b6)](JSON[_0x5eb113(0x1af)](_0x33757f));});});},Migration[a1145_0x1efdd9(0x1b3)][a1145_0x1efdd9(0x1be)]=function(_0x31a07a,_0x3386a0,_0x5d8c78){const _0x4f00d2=a1145_0x1efdd9,_0x284e7d=this;this[_0x4f00d2(0x1c0)][_0x4f00d2(0x1b7)](function(){const _0x10a0db=_0x4f00d2;return _0x284e7d[_0x10a0db(0x1b4)]['addColumn'](_0x31a07a,_0x3386a0,_0x5d8c78)[_0x10a0db(0x1a5)](function(){const _0x2c12ca=_0x10a0db;logger[_0x2c12ca(0x1b6)]('Added\x20column\x20%s\x20to\x20%s',_0x3386a0,_0x31a07a);})[_0x10a0db(0x1ac)](function(_0x7579){const _0xc785e9=_0x10a0db;logger[_0xc785e9(0x1b6)](JSON[_0xc785e9(0x1af)](_0x7579));});});},Migration[a1145_0x1efdd9(0x1b3)][a1145_0x1efdd9(0x1a4)]=function(_0x40b813){const _0x5625a8=a1145_0x1efdd9,_0x2bfd29=this;this[_0x5625a8(0x1c0)][_0x5625a8(0x1b7)](function(){const _0x2a353e=_0x5625a8;return _0x2bfd29[_0x2a353e(0x1b4)][_0x2a353e(0x1a4)](_0x40b813,{'force':!![]})[_0x2a353e(0x1a5)](function(){const _0x723d16=_0x2a353e;logger[_0x723d16(0x1b6)](_0x723d16(0x1a3),_0x40b813);})[_0x2a353e(0x1ac)](function(_0x29d6c4){const _0x378d61=_0x2a353e;logger[_0x378d61(0x1b6)](JSON[_0x378d61(0x1af)](_0x29d6c4));});});},Migration[a1145_0x1efdd9(0x1b3)][a1145_0x1efdd9(0x1ad)]=function(_0x3d0d4b,_0x3483fe,_0x1e28b3){const _0x22fa64=a1145_0x1efdd9,_0x4a2287=this;this[_0x22fa64(0x1c0)][_0x22fa64(0x1b7)](function(){const _0x404896=_0x22fa64;return _0x4a2287[_0x404896(0x1b4)][_0x404896(0x1ad)](_0x3d0d4b,_0x3483fe,{'indexName':_0x1e28b3})[_0x404896(0x1a5)](function(){const _0x1dbf23=_0x404896;logger[_0x1dbf23(0x1b6)](_0x1dbf23(0x1a6),_0x3d0d4b,_0x3483fe[_0x1dbf23(0x1b1)](','),_0x1e28b3);})[_0x404896(0x1ac)](function(_0x43b3c3){const _0x528ff5=_0x404896;logger[_0x528ff5(0x1b6)](JSON[_0x528ff5(0x1af)](_0x43b3c3));});});},Migration['prototype'][a1145_0x1efdd9(0x1ba)]=function(_0x1a5136,_0x5e4ef1){const _0x2e15d8=a1145_0x1efdd9,_0x5ccd9a=this;this[_0x2e15d8(0x1c0)][_0x2e15d8(0x1b7)](function(){const _0x29c407=_0x2e15d8;return _0x5ccd9a[_0x29c407(0x1b4)][_0x29c407(0x1ba)](_0x1a5136,_0x5e4ef1)[_0x29c407(0x1a5)](function(){const _0x2bea7f=_0x29c407;logger[_0x2bea7f(0x1b6)](_0x2bea7f(0x1bd),_0x1a5136,_0x5e4ef1);})[_0x29c407(0x1ac)](function(_0x54cb9a){const _0x5555d8=_0x29c407;logger[_0x5555d8(0x1b6)](JSON[_0x5555d8(0x1af)](_0x54cb9a));});});},Migration['prototype'][a1145_0x1efdd9(0x1aa)]=function(_0x5deb1d){const _0x5298e2=a1145_0x1efdd9,_0x4c420b=this;this[_0x5298e2(0x1c0)]['enqueue'](function(){const _0x51e0e2=_0x5298e2;return _0x4c420b[_0x51e0e2(0x1b4)][_0x51e0e2(0x1b2)][_0x51e0e2(0x1aa)](_0x5deb1d)[_0x51e0e2(0x1a5)](function(){const _0x5ccadf=_0x51e0e2;logger[_0x5ccadf(0x1b6)](_0x5ccadf(0x1b8),_0x5deb1d);})[_0x51e0e2(0x1ac)](function(_0x15977d){const _0x1fa190=_0x51e0e2;logger['info'](JSON[_0x1fa190(0x1af)](_0x15977d));});});},Migration[a1145_0x1efdd9(0x1b3)]['removeColumn']=function(_0x5d4582,_0x58fd55){const _0x1ea637=this;this['sequence']['enqueue'](function(){const _0x4c207f=a1145_0x3066;return _0x1ea637[_0x4c207f(0x1b4)][_0x4c207f(0x1bc)](_0x5d4582,_0x58fd55)[_0x4c207f(0x1a5)](function(){const _0x9b3f39=_0x4c207f;logger[_0x9b3f39(0x1b6)](_0x9b3f39(0x1c2),_0x58fd55,_0x5d4582);})[_0x4c207f(0x1ac)](function(_0x1e2439){const _0x3256da=_0x4c207f;logger[_0x3256da(0x1b6)](util['inspect'](_0x1e2439,{'showHidden':![],'depth':null}));});});},Migration[a1145_0x1efdd9(0x1b3)]['renameColumn']=function(_0x20a3ef,_0x4c1137,_0x5ce555){const _0x2dfcda=a1145_0x1efdd9,_0x54a1ee=this;this[_0x2dfcda(0x1c0)]['enqueue'](function(){const _0x5ad06e=_0x2dfcda;return _0x54a1ee[_0x5ad06e(0x1b4)][_0x5ad06e(0x1b5)](_0x20a3ef,_0x4c1137,_0x5ce555)[_0x5ad06e(0x1a5)](function(){const _0x426797=_0x5ad06e;logger[_0x426797(0x1b6)](_0x426797(0x1a9),_0x4c1137,_0x5ce555,_0x20a3ef);})[_0x5ad06e(0x1ac)](function(_0x507ee8){const _0x1ea3b1=_0x5ad06e;logger[_0x1ea3b1(0x1b6)](util[_0x1ea3b1(0x1bf)](_0x507ee8,{'showHidden':![],'depth':null}));});});},Migration[a1145_0x1efdd9(0x1b3)][a1145_0x1efdd9(0x1ae)]=function(_0x5aaaca){const _0x5f30c1=a1145_0x1efdd9;this[_0x5f30c1(0x1c0)][_0x5f30c1(0x1b7)](function(){return _0x5aaaca();});},module[a1145_0x1efdd9(0x1b0)]={'up':function(_0x2413b0){return new Promise(function(_0x414128){const _0x194740=a1145_0x3066,_0x570eab=new Migration(_0x2413b0);_0x570eab[_0x194740(0x1ae)](_0x414128);});},'down':function(){}}; \ No newline at end of file +const a1145_0x35e9=['dropTable','info','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','finally','stringify','exports','addIndex','Removed\x20column\x20%s\x20from\x20%s','inspect','renameColumn','queryInterface','table\x20dropped\x20%s','catch','enqueue','sequence','util','query\x20%s','removeColumn','removeIndex','final','query','addIndex\x20%s\x20%s\x20%s','tail','../config/logger','migration','removeIndex\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','prototype','addColumn','then'];(function(_0x1d677b,_0x2bfcf4){const _0x35e91d=function(_0xd0d19){while(--_0xd0d19){_0x1d677b['push'](_0x1d677b['shift']());}};_0x35e91d(++_0x2bfcf4);}(a1145_0x35e9,0x136));const a1145_0xd0d1=function(_0x1d677b,_0x2bfcf4){_0x1d677b=_0x1d677b-0xd9;let _0x35e91d=a1145_0x35e9[_0x1d677b];return _0x35e91d;};const a1145_0x5b9a29=a1145_0xd0d1;'use strict';const util=require(a1145_0x5b9a29(0xe9)),logger=require(a1145_0x5b9a29(0xf1))(a1145_0x5b9a29(0xf2)),Sequence=function(){};Sequence[a1145_0x5b9a29(0xf5)][a1145_0x5b9a29(0xe7)]=function(_0x3f1a12){const _0x27f7f2=a1145_0x5b9a29;this[_0x27f7f2(0xf0)]=this[_0x27f7f2(0xf0)]?this[_0x27f7f2(0xf0)][_0x27f7f2(0xdd)](_0x3f1a12):_0x3f1a12();};const Migration=function(_0x7ce113){const _0x902876=a1145_0x5b9a29;this[_0x902876(0xe4)]=_0x7ce113,this['sequence']=new Sequence();};Migration[a1145_0x5b9a29(0xf5)][a1145_0x5b9a29(0xdc)]=function(_0x558780,_0x433785,_0x31006b){const _0x397ebb=a1145_0x5b9a29,_0x33116a=this;this[_0x397ebb(0xe8)]['enqueue'](function(){const _0xeb221a=_0x397ebb;return _0x33116a['queryInterface'][_0xeb221a(0xdc)](_0x558780,_0x433785,_0x31006b)[_0xeb221a(0xf7)](function(){const _0xa48074=_0xeb221a;logger[_0xa48074(0xda)](_0xa48074(0xdb),_0x433785,_0x558780);})[_0xeb221a(0xe6)](function(_0xbccb32){logger['info'](JSON['stringify'](_0xbccb32));});});},Migration[a1145_0x5b9a29(0xf5)][a1145_0x5b9a29(0xf6)]=function(_0x19b67a,_0x2d06d5,_0x3cd9d3){const _0x49cb4a=a1145_0x5b9a29,_0x505924=this;this[_0x49cb4a(0xe8)]['enqueue'](function(){const _0x3e7df3=_0x49cb4a;return _0x505924[_0x3e7df3(0xe4)][_0x3e7df3(0xf6)](_0x19b67a,_0x2d06d5,_0x3cd9d3)[_0x3e7df3(0xf7)](function(){const _0x856e9d=_0x3e7df3;logger['info'](_0x856e9d(0xf4),_0x2d06d5,_0x19b67a);})['catch'](function(_0x41245c){const _0x2d436e=_0x3e7df3;logger[_0x2d436e(0xda)](JSON[_0x2d436e(0xde)](_0x41245c));});});},Migration[a1145_0x5b9a29(0xf5)][a1145_0x5b9a29(0xd9)]=function(_0x168f21){const _0x1e0b93=a1145_0x5b9a29,_0x346e3a=this;this['sequence'][_0x1e0b93(0xe7)](function(){const _0x22959c=_0x1e0b93;return _0x346e3a[_0x22959c(0xe4)]['dropTable'](_0x168f21,{'force':!![]})['then'](function(){const _0x17e6e4=_0x22959c;logger[_0x17e6e4(0xda)](_0x17e6e4(0xe5),_0x168f21);})[_0x22959c(0xe6)](function(_0x2d7179){const _0x41ebf4=_0x22959c;logger[_0x41ebf4(0xda)](JSON[_0x41ebf4(0xde)](_0x2d7179));});});},Migration['prototype'][a1145_0x5b9a29(0xe0)]=function(_0x2f89c6,_0x598991,_0x16278c){const _0x162a34=a1145_0x5b9a29,_0x53d04c=this;this['sequence'][_0x162a34(0xe7)](function(){const _0x1ed838=_0x162a34;return _0x53d04c[_0x1ed838(0xe4)]['addIndex'](_0x2f89c6,_0x598991,{'indexName':_0x16278c})[_0x1ed838(0xf7)](function(){const _0x2a2f23=_0x1ed838;logger[_0x2a2f23(0xda)](_0x2a2f23(0xef),_0x2f89c6,_0x598991['join'](','),_0x16278c);})[_0x1ed838(0xe6)](function(_0x4be27a){const _0x538ee6=_0x1ed838;logger[_0x538ee6(0xda)](JSON[_0x538ee6(0xde)](_0x4be27a));});});},Migration[a1145_0x5b9a29(0xf5)][a1145_0x5b9a29(0xec)]=function(_0x123cb7,_0x3e9ced){const _0x341699=a1145_0x5b9a29,_0x29156e=this;this[_0x341699(0xe8)][_0x341699(0xe7)](function(){const _0x2196ef=_0x341699;return _0x29156e[_0x2196ef(0xe4)][_0x2196ef(0xec)](_0x123cb7,_0x3e9ced)['then'](function(){const _0x1b9c79=_0x2196ef;logger[_0x1b9c79(0xda)](_0x1b9c79(0xf3),_0x123cb7,_0x3e9ced);})[_0x2196ef(0xe6)](function(_0x66f45f){const _0x240adf=_0x2196ef;logger['info'](JSON[_0x240adf(0xde)](_0x66f45f));});});},Migration['prototype'][a1145_0x5b9a29(0xee)]=function(_0x31ef3f){const _0x52240a=a1145_0x5b9a29,_0x20a96d=this;this[_0x52240a(0xe8)]['enqueue'](function(){const _0x4491c0=_0x52240a;return _0x20a96d[_0x4491c0(0xe4)]['sequelize']['query'](_0x31ef3f)['then'](function(){const _0x131ef0=_0x4491c0;logger[_0x131ef0(0xda)](_0x131ef0(0xea),_0x31ef3f);})[_0x4491c0(0xe6)](function(_0x202703){const _0x2475cf=_0x4491c0;logger['info'](JSON[_0x2475cf(0xde)](_0x202703));});});},Migration[a1145_0x5b9a29(0xf5)][a1145_0x5b9a29(0xeb)]=function(_0x2492fb,_0x2dda77){const _0x2b2e2c=a1145_0x5b9a29,_0x520d83=this;this[_0x2b2e2c(0xe8)][_0x2b2e2c(0xe7)](function(){const _0x12ec6a=_0x2b2e2c;return _0x520d83[_0x12ec6a(0xe4)][_0x12ec6a(0xeb)](_0x2492fb,_0x2dda77)[_0x12ec6a(0xf7)](function(){const _0x4f1dd9=_0x12ec6a;logger[_0x4f1dd9(0xda)](_0x4f1dd9(0xe1),_0x2dda77,_0x2492fb);})[_0x12ec6a(0xe6)](function(_0x3c576a){const _0xa302a7=_0x12ec6a;logger[_0xa302a7(0xda)](util['inspect'](_0x3c576a,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x5cfef2,_0x58de30,_0x20918e){const _0x48b110=a1145_0x5b9a29,_0x4a7016=this;this['sequence'][_0x48b110(0xe7)](function(){const _0x43bec8=_0x48b110;return _0x4a7016[_0x43bec8(0xe4)][_0x43bec8(0xe3)](_0x5cfef2,_0x58de30,_0x20918e)[_0x43bec8(0xf7)](function(){const _0x3e3ba2=_0x43bec8;logger[_0x3e3ba2(0xda)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x58de30,_0x20918e,_0x5cfef2);})[_0x43bec8(0xe6)](function(_0x3dd4a4){const _0x84322d=_0x43bec8;logger[_0x84322d(0xda)](util[_0x84322d(0xe2)](_0x3dd4a4,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1145_0x5b9a29(0xed)]=function(_0x290881){const _0x5dc597=a1145_0x5b9a29;this[_0x5dc597(0xe8)][_0x5dc597(0xe7)](function(){return _0x290881();});},module[a1145_0x5b9a29(0xdf)]={'up':function(_0x1fd100){return new Promise(function(_0x542ea2){const _0x42be5d=a1145_0xd0d1,_0x3282e0=new Migration(_0x1fd100);_0x3282e0[_0x42be5d(0xed)](_0x542ea2);});},'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 90a02b1..7bf98d5 100644 --- a/server/migrations/2.3.9.js +++ b/server/migrations/2.3.9.js @@ -1 +1 @@ -const a1146_0x2a8a=['enqueue','queryInterface','util','table\x20dropped\x20%s','indicesType','then','sequence','addIndex\x20%s\x20%s\x20%s\x20[%s]','Removed\x20column\x20%s\x20from\x20%s','catch','finally','tail','removeColumn','addColumn','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indexName','exports','dropTable','prototype','removeIndex','../config/logger','removeIndex\x20%s\x20%s','query','stringify','sequelize','addIndex','inspect','join','renameColumn','info'];(function(_0x5162e2,_0x5187c6){const _0x2a8a5a=function(_0x4ba617){while(--_0x4ba617){_0x5162e2['push'](_0x5162e2['shift']());}};_0x2a8a5a(++_0x5187c6);}(a1146_0x2a8a,0x98));const a1146_0x4ba6=function(_0x5162e2,_0x5187c6){_0x5162e2=_0x5162e2-0xa0;let _0x2a8a5a=a1146_0x2a8a[_0x5162e2];return _0x2a8a5a;};const a1146_0x45416e=a1146_0x4ba6;'use strict';const util=require(a1146_0x45416e(0xa5)),logger=require(a1146_0x45416e(0xb8))('migration'),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x287fb7){const _0x2663e8=a1146_0x45416e;this['tail']=this[_0x2663e8(0xae)]?this[_0x2663e8(0xae)][_0x2663e8(0xad)](_0x287fb7):_0x287fb7();};const Migration=function(_0xe34926){const _0x2c93bd=a1146_0x45416e;this[_0x2c93bd(0xa4)]=_0xe34926,this[_0x2c93bd(0xa9)]=new Sequence();};Migration[a1146_0x45416e(0xb6)]['changeColumn']=function(_0x52dd3c,_0x4a17cd,_0x2ef37a){const _0x53fb72=a1146_0x45416e,_0x5bb809=this;this[_0x53fb72(0xa9)][_0x53fb72(0xa3)](function(){const _0x468e4c=_0x53fb72;return _0x5bb809[_0x468e4c(0xa4)]['changeColumn'](_0x52dd3c,_0x4a17cd,_0x2ef37a)[_0x468e4c(0xa8)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4a17cd,_0x52dd3c);})['catch'](function(_0x50484b){const _0x49da0e=_0x468e4c;logger[_0x49da0e(0xa2)](JSON[_0x49da0e(0xbb)](_0x50484b));});});},Migration['prototype'][a1146_0x45416e(0xb0)]=function(_0x33a763,_0x26f266,_0x50ff33){const _0x2b6c2b=a1146_0x45416e,_0x1fa2a3=this;this['sequence'][_0x2b6c2b(0xa3)](function(){const _0x311c18=_0x2b6c2b;return _0x1fa2a3[_0x311c18(0xa4)][_0x311c18(0xb0)](_0x33a763,_0x26f266,_0x50ff33)[_0x311c18(0xa8)](function(){const _0x4ec969=_0x311c18;logger[_0x4ec969(0xa2)]('Added\x20column\x20%s\x20to\x20%s',_0x26f266,_0x33a763);})[_0x311c18(0xac)](function(_0x190067){const _0x143635=_0x311c18;logger['info'](JSON[_0x143635(0xbb)](_0x190067));});});},Migration[a1146_0x45416e(0xb6)]['dropTable']=function(_0x1c11fc){const _0x37c57d=a1146_0x45416e,_0x4998e4=this;this['sequence'][_0x37c57d(0xa3)](function(){const _0x3e5158=_0x37c57d;return _0x4998e4[_0x3e5158(0xa4)][_0x3e5158(0xb5)](_0x1c11fc,{'force':!![]})[_0x3e5158(0xa8)](function(){const _0x171c8b=_0x3e5158;logger[_0x171c8b(0xa2)](_0x171c8b(0xa6),_0x1c11fc);})['catch'](function(_0x48e413){const _0x216dd6=_0x3e5158;logger[_0x216dd6(0xa2)](JSON[_0x216dd6(0xbb)](_0x48e413));});});},Migration[a1146_0x45416e(0xb6)][a1146_0x45416e(0xbd)]=function(_0x44d9f4,_0x1f2652,_0x3ac3cf){const _0x2d6c6c=a1146_0x45416e,_0x2ae8ba=this;this[_0x2d6c6c(0xa9)][_0x2d6c6c(0xa3)](function(){const _0xeb6dd=_0x2d6c6c;return _0x2ae8ba[_0xeb6dd(0xa4)][_0xeb6dd(0xbd)](_0x44d9f4,_0x1f2652,{'indexName':_0x3ac3cf[_0xeb6dd(0xb3)],'indicesType':_0x3ac3cf[_0xeb6dd(0xa7)]})[_0xeb6dd(0xa8)](function(){const _0x3da940=_0xeb6dd;logger['info'](_0x3da940(0xaa),_0x44d9f4,_0x1f2652[_0x3da940(0xa0)](','),_0x3ac3cf[_0x3da940(0xb3)],_0x3ac3cf['indicesType']);})['catch'](function(_0x2df4a8){const _0x33c699=_0xeb6dd;logger['info'](JSON[_0x33c699(0xbb)](_0x2df4a8));});});},Migration[a1146_0x45416e(0xb6)][a1146_0x45416e(0xb7)]=function(_0xa1f497,_0x32eeaf){const _0xe1835c=a1146_0x45416e,_0x4c75e0=this;this[_0xe1835c(0xa9)][_0xe1835c(0xa3)](function(){const _0x4e056b=_0xe1835c;return _0x4c75e0[_0x4e056b(0xa4)][_0x4e056b(0xb7)](_0xa1f497,_0x32eeaf)[_0x4e056b(0xa8)](function(){const _0x5ba680=_0x4e056b;logger[_0x5ba680(0xa2)](_0x5ba680(0xb9),_0xa1f497,_0x32eeaf);})['catch'](function(_0x4b81a4){const _0x593444=_0x4e056b;logger[_0x593444(0xa2)](JSON[_0x593444(0xbb)](_0x4b81a4));});});},Migration[a1146_0x45416e(0xb6)][a1146_0x45416e(0xba)]=function(_0x1b0fce){const _0x5abba1=a1146_0x45416e,_0x3b514e=this;this[_0x5abba1(0xa9)][_0x5abba1(0xa3)](function(){const _0x4c915e=_0x5abba1;return _0x3b514e[_0x4c915e(0xa4)][_0x4c915e(0xbc)]['query'](_0x1b0fce)['then'](function(){const _0x408d3d=_0x4c915e;logger[_0x408d3d(0xa2)]('query\x20%s',_0x1b0fce);})['catch'](function(_0x34db86){const _0x5155f4=_0x4c915e;logger['info'](JSON[_0x5155f4(0xbb)](_0x34db86));});});},Migration['prototype'][a1146_0x45416e(0xaf)]=function(_0x189cf5,_0x4a6608){const _0x126c71=a1146_0x45416e,_0xee6534=this;this[_0x126c71(0xa9)]['enqueue'](function(){const _0xf7bb91=_0x126c71;return _0xee6534[_0xf7bb91(0xa4)][_0xf7bb91(0xaf)](_0x189cf5,_0x4a6608)[_0xf7bb91(0xa8)](function(){const _0x39847b=_0xf7bb91;logger[_0x39847b(0xa2)](_0x39847b(0xab),_0x4a6608,_0x189cf5);})[_0xf7bb91(0xac)](function(_0x593a3c){const _0x43d591=_0xf7bb91;logger['info'](util[_0x43d591(0xbe)](_0x593a3c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1146_0x45416e(0xa1)]=function(_0x2af082,_0xb0b6f4,_0x44de6c){const _0x525b8a=a1146_0x45416e,_0x441ab8=this;this['sequence'][_0x525b8a(0xa3)](function(){const _0xa34cfd=_0x525b8a;return _0x441ab8[_0xa34cfd(0xa4)]['renameColumn'](_0x2af082,_0xb0b6f4,_0x44de6c)['then'](function(){const _0x54bfcc=_0xa34cfd;logger['info'](_0x54bfcc(0xb2),_0xb0b6f4,_0x44de6c,_0x2af082);})['catch'](function(_0x476733){const _0x508f3c=_0xa34cfd;logger['info'](util[_0x508f3c(0xbe)](_0x476733,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1146_0x45416e(0xb1)]=function(_0x1e1560){const _0x529deb=a1146_0x45416e;this[_0x529deb(0xa9)]['enqueue'](function(){return _0x1e1560();});},module[a1146_0x45416e(0xb4)]={'up':function(_0x28338a){return new Promise(function(_0x1eb2b5){const _0x4bd8d0=a1146_0x4ba6,_0x1120f8=new Migration(_0x28338a);_0x1120f8[_0x4bd8d0(0xb1)](_0x1eb2b5);});},'down':function(){}}; \ No newline at end of file +const a1146_0x5ddd=['query','join','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','util','info','then','final','query\x20%s','table\x20dropped\x20%s','indicesType','enqueue','tail','renameColumn','prototype','queryInterface','changeColumn','finally','catch','exports','sequence','sequelize','dropTable','addIndex','removeIndex\x20%s\x20%s','removeIndex','Added\x20column\x20%s\x20to\x20%s','removeColumn','inspect'];(function(_0x2234fa,_0x4c4913){const _0x5ddda6=function(_0x5c889d){while(--_0x5c889d){_0x2234fa['push'](_0x2234fa['shift']());}};_0x5ddda6(++_0x4c4913);}(a1146_0x5ddd,0x137));const a1146_0x5c88=function(_0x2234fa,_0x4c4913){_0x2234fa=_0x2234fa-0xe7;let _0x5ddda6=a1146_0x5ddd[_0x2234fa];return _0x5ddda6;};const a1146_0x59198a=a1146_0x5c88;'use strict';const util=require(a1146_0x59198a(0xf3)),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x209c8a){const _0x3d5c06=a1146_0x59198a;this[_0x3d5c06(0xfb)]=this[_0x3d5c06(0xfb)]?this[_0x3d5c06(0xfb)][_0x3d5c06(0x100)](_0x209c8a):_0x209c8a();};const Migration=function(_0x8e4758){const _0x35975b=a1146_0x59198a;this[_0x35975b(0xfe)]=_0x8e4758,this[_0x35975b(0x103)]=new Sequence();};Migration[a1146_0x59198a(0xfd)]['changeColumn']=function(_0x3a6458,_0x4be370,_0x212eb3){const _0x24b632=a1146_0x59198a,_0x3ca2bd=this;this['sequence'][_0x24b632(0xfa)](function(){const _0x5db9ed=_0x24b632;return _0x3ca2bd[_0x5db9ed(0xfe)][_0x5db9ed(0xff)](_0x3a6458,_0x4be370,_0x212eb3)[_0x5db9ed(0xf5)](function(){const _0x34e4c5=_0x5db9ed;logger[_0x34e4c5(0xf4)](_0x34e4c5(0xf1),_0x4be370,_0x3a6458);})[_0x5db9ed(0x101)](function(_0x3ddded){const _0x1aebae=_0x5db9ed;logger[_0x1aebae(0xf4)](JSON['stringify'](_0x3ddded));});});},Migration[a1146_0x59198a(0xfd)]['addColumn']=function(_0x4ccdee,_0x32c0d2,_0xd504ab){const _0x547fee=a1146_0x59198a,_0x4ac399=this;this[_0x547fee(0x103)][_0x547fee(0xfa)](function(){const _0x36bdec=_0x547fee;return _0x4ac399[_0x36bdec(0xfe)]['addColumn'](_0x4ccdee,_0x32c0d2,_0xd504ab)[_0x36bdec(0xf5)](function(){const _0xb4a308=_0x36bdec;logger[_0xb4a308(0xf4)](_0xb4a308(0xec),_0x32c0d2,_0x4ccdee);})[_0x36bdec(0x101)](function(_0x3e9b2d){const _0x2f9830=_0x36bdec;logger[_0x2f9830(0xf4)](JSON[_0x2f9830(0xf2)](_0x3e9b2d));});});},Migration[a1146_0x59198a(0xfd)][a1146_0x59198a(0xe8)]=function(_0xbd7369){const _0x50872a=a1146_0x59198a,_0x93fcfd=this;this[_0x50872a(0x103)][_0x50872a(0xfa)](function(){const _0x1d64fe=_0x50872a;return _0x93fcfd[_0x1d64fe(0xfe)][_0x1d64fe(0xe8)](_0xbd7369,{'force':!![]})[_0x1d64fe(0xf5)](function(){const _0x24122d=_0x1d64fe;logger[_0x24122d(0xf4)](_0x24122d(0xf8),_0xbd7369);})[_0x1d64fe(0x101)](function(_0x4e5468){const _0x1f933e=_0x1d64fe;logger[_0x1f933e(0xf4)](JSON[_0x1f933e(0xf2)](_0x4e5468));});});},Migration[a1146_0x59198a(0xfd)][a1146_0x59198a(0xe9)]=function(_0x53635c,_0x5ed5c9,_0x4aa47c){const _0x1f1f2f=a1146_0x59198a,_0x30ba59=this;this[_0x1f1f2f(0x103)][_0x1f1f2f(0xfa)](function(){const _0x2fea25=_0x1f1f2f;return _0x30ba59[_0x2fea25(0xfe)][_0x2fea25(0xe9)](_0x53635c,_0x5ed5c9,{'indexName':_0x4aa47c['indexName'],'indicesType':_0x4aa47c[_0x2fea25(0xf9)]})[_0x2fea25(0xf5)](function(){const _0x3da32d=_0x2fea25;logger[_0x3da32d(0xf4)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x53635c,_0x5ed5c9[_0x3da32d(0xf0)](','),_0x4aa47c['indexName'],_0x4aa47c['indicesType']);})[_0x2fea25(0x101)](function(_0x565865){const _0x340373=_0x2fea25;logger[_0x340373(0xf4)](JSON[_0x340373(0xf2)](_0x565865));});});},Migration[a1146_0x59198a(0xfd)][a1146_0x59198a(0xeb)]=function(_0x3a2073,_0x3f19da){const _0x2c7596=this;this['sequence']['enqueue'](function(){const _0x3e79a6=a1146_0x5c88;return _0x2c7596[_0x3e79a6(0xfe)][_0x3e79a6(0xeb)](_0x3a2073,_0x3f19da)[_0x3e79a6(0xf5)](function(){const _0x4f518f=_0x3e79a6;logger[_0x4f518f(0xf4)](_0x4f518f(0xea),_0x3a2073,_0x3f19da);})[_0x3e79a6(0x101)](function(_0x15d5a8){const _0x231e28=_0x3e79a6;logger[_0x231e28(0xf4)](JSON[_0x231e28(0xf2)](_0x15d5a8));});});},Migration[a1146_0x59198a(0xfd)][a1146_0x59198a(0xef)]=function(_0x1f35df){const _0x77b094=a1146_0x59198a,_0x1faed7=this;this[_0x77b094(0x103)][_0x77b094(0xfa)](function(){const _0x58e9eb=_0x77b094;return _0x1faed7[_0x58e9eb(0xfe)][_0x58e9eb(0xe7)]['query'](_0x1f35df)[_0x58e9eb(0xf5)](function(){const _0x2bbc07=_0x58e9eb;logger[_0x2bbc07(0xf4)](_0x2bbc07(0xf7),_0x1f35df);})[_0x58e9eb(0x101)](function(_0x34036e){const _0x2120f9=_0x58e9eb;logger[_0x2120f9(0xf4)](JSON[_0x2120f9(0xf2)](_0x34036e));});});},Migration[a1146_0x59198a(0xfd)][a1146_0x59198a(0xed)]=function(_0x42a54b,_0x21a03f){const _0x31e9ab=a1146_0x59198a,_0x879a8f=this;this[_0x31e9ab(0x103)][_0x31e9ab(0xfa)](function(){const _0x525fda=_0x31e9ab;return _0x879a8f['queryInterface'][_0x525fda(0xed)](_0x42a54b,_0x21a03f)[_0x525fda(0xf5)](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x21a03f,_0x42a54b);})[_0x525fda(0x101)](function(_0x4f850d){const _0x5ceebc=_0x525fda;logger[_0x5ceebc(0xf4)](util[_0x5ceebc(0xee)](_0x4f850d,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1146_0x59198a(0xfc)]=function(_0x30757d,_0x32f23a,_0x5c82cb){const _0x3c47f1=a1146_0x59198a,_0x4cbd09=this;this['sequence'][_0x3c47f1(0xfa)](function(){const _0x47442c=_0x3c47f1;return _0x4cbd09['queryInterface'][_0x47442c(0xfc)](_0x30757d,_0x32f23a,_0x5c82cb)[_0x47442c(0xf5)](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x32f23a,_0x5c82cb,_0x30757d);})[_0x47442c(0x101)](function(_0x555369){const _0x59c810=_0x47442c;logger['info'](util[_0x59c810(0xee)](_0x555369,{'showHidden':![],'depth':null}));});});},Migration[a1146_0x59198a(0xfd)]['final']=function(_0x28bbe9){const _0x486203=a1146_0x59198a;this[_0x486203(0x103)][_0x486203(0xfa)](function(){return _0x28bbe9();});},module[a1146_0x59198a(0x102)]={'up':function(_0x57bed1){return new Promise(function(_0x5b3b46){const _0x232734=a1146_0x5c88,_0x59628=new Migration(_0x57bed1);_0x59628[_0x232734(0xf6)](_0x5b3b46);});},'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 9b74d37..52d39c6 100644 --- a/server/migrations/2.3.91.js +++ b/server/migrations/2.3.91.js @@ -1 +1 @@ -const a1147_0x111c=['../config/logger','STRING','sequelize','then','addIndex','sequence','stringify','Removed\x20column\x20%s\x20from\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','tail','table\x20dropped\x20%s','addIndex\x20%s\x20%s\x20%s','query','enqueue','queryInterface','info','exports','removeColumn','changeColumn','catch','query\x20%s','join','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','inspect','Added\x20column\x20%s\x20to\x20%s','finally','final','addColumn','removeIndex','renameColumn'];(function(_0x16f30b,_0x6fcfea){const _0x111cbb=function(_0x24cce5){while(--_0x24cce5){_0x16f30b['push'](_0x16f30b['shift']());}};_0x111cbb(++_0x6fcfea);}(a1147_0x111c,0x132));const a1147_0x24cc=function(_0x16f30b,_0x6fcfea){_0x16f30b=_0x16f30b-0x1c4;let _0x111cbb=a1147_0x111c[_0x16f30b];return _0x111cbb;};const a1147_0x6f9d05=a1147_0x24cc;'use strict';const util=require(a1147_0x6f9d05(0x1db)),logger=require(a1147_0x6f9d05(0x1d2))('migration'),Sequence=function(){};Sequence['prototype'][a1147_0x6f9d05(0x1e0)]=function(_0x1aa460){const _0x4ba4d5=a1147_0x6f9d05;this['tail']=this[_0x4ba4d5(0x1dc)]?this[_0x4ba4d5(0x1dc)][_0x4ba4d5(0x1cd)](_0x1aa460):_0x1aa460();};const Migration=function(_0x511bb4){const _0x5e0cdb=a1147_0x6f9d05;this[_0x5e0cdb(0x1e1)]=_0x511bb4,this[_0x5e0cdb(0x1d7)]=new Sequence();};Migration[a1147_0x6f9d05(0x1ca)][a1147_0x6f9d05(0x1c5)]=function(_0x53ee23,_0x41f814,_0x22b329){const _0x5e4bad=a1147_0x6f9d05,_0x8158c0=this;this[_0x5e4bad(0x1d7)][_0x5e4bad(0x1e0)](function(){const _0x56ae07=_0x5e4bad;return _0x8158c0[_0x56ae07(0x1e1)]['changeColumn'](_0x53ee23,_0x41f814,_0x22b329)[_0x56ae07(0x1d5)](function(){const _0x5be714=_0x56ae07;logger[_0x5be714(0x1e2)](_0x5be714(0x1c9),_0x41f814,_0x53ee23);})['catch'](function(_0x512227){const _0x14a035=_0x56ae07;logger[_0x14a035(0x1e2)](JSON[_0x14a035(0x1d8)](_0x512227));});});},Migration[a1147_0x6f9d05(0x1ca)][a1147_0x6f9d05(0x1cf)]=function(_0x2e6f12,_0x19cd1a,_0xd23432){const _0x17c772=a1147_0x6f9d05,_0x1a2f73=this;this[_0x17c772(0x1d7)]['enqueue'](function(){const _0x266528=_0x17c772;return _0x1a2f73[_0x266528(0x1e1)][_0x266528(0x1cf)](_0x2e6f12,_0x19cd1a,_0xd23432)[_0x266528(0x1d5)](function(){const _0x31ffdb=_0x266528;logger[_0x31ffdb(0x1e2)](_0x31ffdb(0x1cc),_0x19cd1a,_0x2e6f12);})[_0x266528(0x1c6)](function(_0x576c2e){const _0x19109d=_0x266528;logger[_0x19109d(0x1e2)](JSON[_0x19109d(0x1d8)](_0x576c2e));});});},Migration[a1147_0x6f9d05(0x1ca)]['dropTable']=function(_0x465980){const _0x463080=a1147_0x6f9d05,_0x4bb647=this;this[_0x463080(0x1d7)][_0x463080(0x1e0)](function(){const _0x5d9e97=_0x463080;return _0x4bb647[_0x5d9e97(0x1e1)]['dropTable'](_0x465980,{'force':!![]})[_0x5d9e97(0x1d5)](function(){const _0x273124=_0x5d9e97;logger[_0x273124(0x1e2)](_0x273124(0x1dd),_0x465980);})[_0x5d9e97(0x1c6)](function(_0x115846){const _0x3e881d=_0x5d9e97;logger[_0x3e881d(0x1e2)](JSON[_0x3e881d(0x1d8)](_0x115846));});});},Migration['prototype'][a1147_0x6f9d05(0x1d6)]=function(_0x57c990,_0x12e3d0,_0x19755f){const _0x3470e0=a1147_0x6f9d05,_0x1ef3bf=this;this[_0x3470e0(0x1d7)][_0x3470e0(0x1e0)](function(){const _0x2eb073=_0x3470e0;return _0x1ef3bf[_0x2eb073(0x1e1)][_0x2eb073(0x1d6)](_0x57c990,_0x12e3d0,{'indexName':_0x19755f})[_0x2eb073(0x1d5)](function(){const _0x14a303=_0x2eb073;logger['info'](_0x14a303(0x1de),_0x57c990,_0x12e3d0[_0x14a303(0x1c8)](','),_0x19755f);})[_0x2eb073(0x1c6)](function(_0x404219){const _0x4b33b1=_0x2eb073;logger[_0x4b33b1(0x1e2)](JSON[_0x4b33b1(0x1d8)](_0x404219));});});},Migration[a1147_0x6f9d05(0x1ca)]['removeIndex']=function(_0x4e74ab,_0x4689b2){const _0x38baa9=a1147_0x6f9d05,_0x39df00=this;this[_0x38baa9(0x1d7)]['enqueue'](function(){const _0x99be3a=_0x38baa9;return _0x39df00[_0x99be3a(0x1e1)][_0x99be3a(0x1d0)](_0x4e74ab,_0x4689b2)[_0x99be3a(0x1d5)](function(){const _0x5708e9=_0x99be3a;logger[_0x5708e9(0x1e2)]('removeIndex\x20%s\x20%s',_0x4e74ab,_0x4689b2);})[_0x99be3a(0x1c6)](function(_0x49cfea){const _0x3a0d19=_0x99be3a;logger['info'](JSON[_0x3a0d19(0x1d8)](_0x49cfea));});});},Migration[a1147_0x6f9d05(0x1ca)][a1147_0x6f9d05(0x1df)]=function(_0x2edc8d){const _0x5103ff=a1147_0x6f9d05,_0x11a5f9=this;this[_0x5103ff(0x1d7)][_0x5103ff(0x1e0)](function(){const _0x2529ae=_0x5103ff;return _0x11a5f9[_0x2529ae(0x1e1)][_0x2529ae(0x1d4)]['query'](_0x2edc8d)[_0x2529ae(0x1d5)](function(){const _0x4910f4=_0x2529ae;logger[_0x4910f4(0x1e2)](_0x4910f4(0x1c7),_0x2edc8d);})['catch'](function(_0x48fcdd){const _0x54df16=_0x2529ae;logger[_0x54df16(0x1e2)](JSON[_0x54df16(0x1d8)](_0x48fcdd));});});},Migration['prototype'][a1147_0x6f9d05(0x1c4)]=function(_0x3d80c2,_0x3bf7ab){const _0x1304ef=this;this['sequence']['enqueue'](function(){const _0x26370f=a1147_0x24cc;return _0x1304ef['queryInterface'][_0x26370f(0x1c4)](_0x3d80c2,_0x3bf7ab)[_0x26370f(0x1d5)](function(){const _0x40d690=_0x26370f;logger[_0x40d690(0x1e2)](_0x40d690(0x1d9),_0x3bf7ab,_0x3d80c2);})['catch'](function(_0x204d51){const _0x7537ef=_0x26370f;logger['info'](util[_0x7537ef(0x1cb)](_0x204d51,{'showHidden':![],'depth':null}));});});},Migration[a1147_0x6f9d05(0x1ca)]['renameColumn']=function(_0x374c8e,_0x5b900e,_0x3a4c12){const _0x5548d0=a1147_0x6f9d05,_0x149a2e=this;this['sequence'][_0x5548d0(0x1e0)](function(){const _0x499173=_0x5548d0;return _0x149a2e[_0x499173(0x1e1)][_0x499173(0x1d1)](_0x374c8e,_0x5b900e,_0x3a4c12)[_0x499173(0x1d5)](function(){const _0x2eb8ec=_0x499173;logger[_0x2eb8ec(0x1e2)](_0x2eb8ec(0x1da),_0x5b900e,_0x3a4c12,_0x374c8e);})['catch'](function(_0x2c40f0){const _0x2b97a1=_0x499173;logger['info'](util[_0x2b97a1(0x1cb)](_0x2c40f0,{'showHidden':![],'depth':null}));});});},Migration[a1147_0x6f9d05(0x1ca)][a1147_0x6f9d05(0x1ce)]=function(_0x592a60){const _0x34d482=a1147_0x6f9d05;this['sequence'][_0x34d482(0x1e0)](function(){return _0x592a60();});},module[a1147_0x6f9d05(0x1e3)]={'up':function(_0x5c8ea7,_0x653ec8){return new Promise(function(_0x5ca0c0){const _0x5d6361=a1147_0x24cc,_0x118647=new Migration(_0x5c8ea7);_0x118647[_0x5d6361(0x1cf)]('report_call','sipcallid',{'type':_0x653ec8[_0x5d6361(0x1d3)]}),_0x118647[_0x5d6361(0x1ce)](_0x5ca0c0);});},'down':function(){}}; \ No newline at end of file +const a1147_0x272d=['info','inspect','removeIndex\x20%s\x20%s','table\x20dropped\x20%s','then','removeIndex','addColumn','exports','prototype','STRING','catch','addIndex','tail','queryInterface','query','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','Removed\x20column\x20%s\x20from\x20%s','renameColumn','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','sipcallid','join','enqueue','migration','stringify','finally','util'];(function(_0x51f989,_0x3e2b9f){const _0x272d34=function(_0xb30573){while(--_0xb30573){_0x51f989['push'](_0x51f989['shift']());}};_0x272d34(++_0x3e2b9f);}(a1147_0x272d,0x16a));const a1147_0xb305=function(_0x51f989,_0x3e2b9f){_0x51f989=_0x51f989-0x13b;let _0x272d34=a1147_0x272d[_0x51f989];return _0x272d34;};const a1147_0x245cc3=a1147_0xb305;'use strict';const util=require(a1147_0x245cc3(0x149)),logger=require('../config/logger')(a1147_0x245cc3(0x146)),Sequence=function(){};Sequence[a1147_0x245cc3(0x152)][a1147_0x245cc3(0x145)]=function(_0x5347ce){const _0x4fed5d=a1147_0x245cc3;this[_0x4fed5d(0x156)]=this[_0x4fed5d(0x156)]?this[_0x4fed5d(0x156)][_0x4fed5d(0x148)](_0x5347ce):_0x5347ce();};const Migration=function(_0x3f69c6){const _0x10828c=a1147_0x245cc3;this[_0x10828c(0x157)]=_0x3f69c6,this[_0x10828c(0x13e)]=new Sequence();};Migration[a1147_0x245cc3(0x152)]['changeColumn']=function(_0x31c671,_0x3ec092,_0x434eac){const _0x46f30b=a1147_0x245cc3,_0x2056f6=this;this[_0x46f30b(0x13e)][_0x46f30b(0x145)](function(){const _0x27244b=_0x46f30b;return _0x2056f6['queryInterface']['changeColumn'](_0x31c671,_0x3ec092,_0x434eac)[_0x27244b(0x14e)](function(){const _0x34cd02=_0x27244b;logger[_0x34cd02(0x14a)](_0x34cd02(0x142),_0x3ec092,_0x31c671);})[_0x27244b(0x154)](function(_0x1b7680){logger['info'](JSON['stringify'](_0x1b7680));});});},Migration['prototype']['addColumn']=function(_0x3d312f,_0x476015,_0x153cfa){const _0x136f17=a1147_0x245cc3,_0x1db92c=this;this[_0x136f17(0x13e)][_0x136f17(0x145)](function(){const _0x23b88c=_0x136f17;return _0x1db92c[_0x23b88c(0x157)][_0x23b88c(0x150)](_0x3d312f,_0x476015,_0x153cfa)[_0x23b88c(0x14e)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x476015,_0x3d312f);})[_0x23b88c(0x154)](function(_0x58b995){const _0x378c48=_0x23b88c;logger[_0x378c48(0x14a)](JSON[_0x378c48(0x147)](_0x58b995));});});},Migration['prototype']['dropTable']=function(_0x208c50){const _0x4b15f4=a1147_0x245cc3,_0xa7da8e=this;this[_0x4b15f4(0x13e)][_0x4b15f4(0x145)](function(){const _0xb66007=_0x4b15f4;return _0xa7da8e['queryInterface'][_0xb66007(0x13c)](_0x208c50,{'force':!![]})['then'](function(){const _0x515cdf=_0xb66007;logger[_0x515cdf(0x14a)](_0x515cdf(0x14d),_0x208c50);})[_0xb66007(0x154)](function(_0x1848a2){const _0x276fcf=_0xb66007;logger[_0x276fcf(0x14a)](JSON[_0x276fcf(0x147)](_0x1848a2));});});},Migration[a1147_0x245cc3(0x152)][a1147_0x245cc3(0x155)]=function(_0xd46fe8,_0x5ea82b,_0x568bc9){const _0x102416=a1147_0x245cc3,_0x2969a1=this;this[_0x102416(0x13e)][_0x102416(0x145)](function(){const _0x3066cb=_0x102416;return _0x2969a1[_0x3066cb(0x157)][_0x3066cb(0x155)](_0xd46fe8,_0x5ea82b,{'indexName':_0x568bc9})['then'](function(){const _0x1ca26a=_0x3066cb;logger[_0x1ca26a(0x14a)]('addIndex\x20%s\x20%s\x20%s',_0xd46fe8,_0x5ea82b[_0x1ca26a(0x144)](','),_0x568bc9);})[_0x3066cb(0x154)](function(_0x30dfdf){const _0x2140bf=_0x3066cb;logger[_0x2140bf(0x14a)](JSON['stringify'](_0x30dfdf));});});},Migration['prototype'][a1147_0x245cc3(0x14f)]=function(_0x4d7bfa,_0x2ac7e5){const _0x13b57d=a1147_0x245cc3,_0x22c8e1=this;this[_0x13b57d(0x13e)]['enqueue'](function(){const _0x3c4cad=_0x13b57d;return _0x22c8e1[_0x3c4cad(0x157)]['removeIndex'](_0x4d7bfa,_0x2ac7e5)[_0x3c4cad(0x14e)](function(){const _0x2feba2=_0x3c4cad;logger[_0x2feba2(0x14a)](_0x2feba2(0x14c),_0x4d7bfa,_0x2ac7e5);})[_0x3c4cad(0x154)](function(_0x58a485){const _0x2a6d86=_0x3c4cad;logger[_0x2a6d86(0x14a)](JSON['stringify'](_0x58a485));});});},Migration[a1147_0x245cc3(0x152)][a1147_0x245cc3(0x13b)]=function(_0x498d99){const _0x42e5cd=a1147_0x245cc3,_0x1ed896=this;this[_0x42e5cd(0x13e)][_0x42e5cd(0x145)](function(){const _0x466b6f=_0x42e5cd;return _0x1ed896[_0x466b6f(0x157)]['sequelize'][_0x466b6f(0x13b)](_0x498d99)[_0x466b6f(0x14e)](function(){const _0x53a129=_0x466b6f;logger[_0x53a129(0x14a)]('query\x20%s',_0x498d99);})['catch'](function(_0x33d48b){const _0x31fafa=_0x466b6f;logger['info'](JSON[_0x31fafa(0x147)](_0x33d48b));});});},Migration[a1147_0x245cc3(0x152)][a1147_0x245cc3(0x141)]=function(_0x33158b,_0x4bfc1f){const _0x3fb733=a1147_0x245cc3,_0x5a17c6=this;this[_0x3fb733(0x13e)]['enqueue'](function(){const _0x428ed2=_0x3fb733;return _0x5a17c6[_0x428ed2(0x157)][_0x428ed2(0x141)](_0x33158b,_0x4bfc1f)[_0x428ed2(0x14e)](function(){const _0x2c5709=_0x428ed2;logger['info'](_0x2c5709(0x13f),_0x4bfc1f,_0x33158b);})[_0x428ed2(0x154)](function(_0x596ebf){const _0x4ee3f2=_0x428ed2;logger[_0x4ee3f2(0x14a)](util[_0x4ee3f2(0x14b)](_0x596ebf,{'showHidden':![],'depth':null}));});});},Migration[a1147_0x245cc3(0x152)][a1147_0x245cc3(0x140)]=function(_0x27b42b,_0x550479,_0x487453){const _0x25db41=a1147_0x245cc3,_0x34bde6=this;this['sequence'][_0x25db41(0x145)](function(){const _0x4e0025=_0x25db41;return _0x34bde6[_0x4e0025(0x157)][_0x4e0025(0x140)](_0x27b42b,_0x550479,_0x487453)[_0x4e0025(0x14e)](function(){const _0x41146f=_0x4e0025;logger[_0x41146f(0x14a)](_0x41146f(0x13d),_0x550479,_0x487453,_0x27b42b);})[_0x4e0025(0x154)](function(_0x506c62){const _0x42826f=_0x4e0025;logger[_0x42826f(0x14a)](util[_0x42826f(0x14b)](_0x506c62,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x1f0743){const _0x25ffff=a1147_0x245cc3;this['sequence'][_0x25ffff(0x145)](function(){return _0x1f0743();});},module[a1147_0x245cc3(0x151)]={'up':function(_0x2a051e,_0x2f5ec9){return new Promise(function(_0x7fbd0f){const _0x45751e=a1147_0xb305,_0x5a4952=new Migration(_0x2a051e);_0x5a4952[_0x45751e(0x150)]('report_call',_0x45751e(0x143),{'type':_0x2f5ec9[_0x45751e(0x153)]}),_0x5a4952['final'](_0x7fbd0f);});},'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 e1ff4a9..b33211b 100644 --- a/server/migrations/2.3.92.js +++ b/server/migrations/2.3.92.js @@ -1 +1 @@ -const a1148_0x260c=['dropTable','queryInterface','table\x20dropped\x20%s','removeIndex','removeColumn','stringify','renameColumn','addIndex','sequence','finally','tail','addColumn','query','changeColumn','migration','../config/logger','enqueue','inspect','final','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','removeIndex\x20%s\x20%s','catch','prototype','info','sequelize','then'];(function(_0x474ac6,_0x2c5ecd){const _0x260cf0=function(_0x4c30af){while(--_0x4c30af){_0x474ac6['push'](_0x474ac6['shift']());}};_0x260cf0(++_0x2c5ecd);}(a1148_0x260c,0x107));const a1148_0x4c30=function(_0x474ac6,_0x2c5ecd){_0x474ac6=_0x474ac6-0x188;let _0x260cf0=a1148_0x260c[_0x474ac6];return _0x260cf0;};const a1148_0x3bb1dd=a1148_0x4c30;'use strict';const util=require('util'),logger=require(a1148_0x3bb1dd(0x19e))(a1148_0x3bb1dd(0x19d)),Sequence=function(){};Sequence[a1148_0x3bb1dd(0x18b)]['enqueue']=function(_0x399726){const _0x46f59e=a1148_0x3bb1dd;this[_0x46f59e(0x199)]=this[_0x46f59e(0x199)]?this['tail'][_0x46f59e(0x198)](_0x399726):_0x399726();};const Migration=function(_0x382dfd){const _0x90f95f=a1148_0x3bb1dd;this[_0x90f95f(0x190)]=_0x382dfd,this[_0x90f95f(0x197)]=new Sequence();};Migration[a1148_0x3bb1dd(0x18b)][a1148_0x3bb1dd(0x19c)]=function(_0x531b85,_0x174771,_0x208e39){const _0xe2c540=a1148_0x3bb1dd,_0x520495=this;this[_0xe2c540(0x197)][_0xe2c540(0x19f)](function(){const _0x2e9cd1=_0xe2c540;return _0x520495[_0x2e9cd1(0x190)][_0x2e9cd1(0x19c)](_0x531b85,_0x174771,_0x208e39)[_0x2e9cd1(0x18e)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x174771,_0x531b85);})[_0x2e9cd1(0x18a)](function(_0x5bce61){const _0x191880=_0x2e9cd1;logger[_0x191880(0x18c)](JSON[_0x191880(0x194)](_0x5bce61));});});},Migration['prototype'][a1148_0x3bb1dd(0x19a)]=function(_0x310623,_0x4054f2,_0xd09fbb){const _0x4c8469=a1148_0x3bb1dd,_0x50a3ae=this;this[_0x4c8469(0x197)][_0x4c8469(0x19f)](function(){const _0x2a5f24=_0x4c8469;return _0x50a3ae[_0x2a5f24(0x190)][_0x2a5f24(0x19a)](_0x310623,_0x4054f2,_0xd09fbb)['then'](function(){const _0x4a8e3d=_0x2a5f24;logger[_0x4a8e3d(0x18c)](_0x4a8e3d(0x188),_0x4054f2,_0x310623);})['catch'](function(_0x46ea72){const _0x4c6a21=_0x2a5f24;logger['info'](JSON[_0x4c6a21(0x194)](_0x46ea72));});});},Migration['prototype']['dropTable']=function(_0x43bec3){const _0x4c3c89=a1148_0x3bb1dd,_0x202878=this;this[_0x4c3c89(0x197)][_0x4c3c89(0x19f)](function(){const _0x28d19c=_0x4c3c89;return _0x202878[_0x28d19c(0x190)][_0x28d19c(0x18f)](_0x43bec3,{'force':!![]})[_0x28d19c(0x18e)](function(){const _0x4aaece=_0x28d19c;logger['info'](_0x4aaece(0x191),_0x43bec3);})['catch'](function(_0x5c1024){logger['info'](JSON['stringify'](_0x5c1024));});});},Migration['prototype'][a1148_0x3bb1dd(0x196)]=function(_0x42a66f,_0x33022c,_0x31449c){const _0x8a36b3=a1148_0x3bb1dd,_0x28a187=this;this[_0x8a36b3(0x197)]['enqueue'](function(){const _0x5c2653=_0x8a36b3;return _0x28a187[_0x5c2653(0x190)][_0x5c2653(0x196)](_0x42a66f,_0x33022c,{'indexName':_0x31449c})[_0x5c2653(0x18e)](function(){logger['info']('addIndex\x20%s\x20%s\x20%s',_0x42a66f,_0x33022c['join'](','),_0x31449c);})[_0x5c2653(0x18a)](function(_0x20753b){const _0x9f2ab7=_0x5c2653;logger[_0x9f2ab7(0x18c)](JSON[_0x9f2ab7(0x194)](_0x20753b));});});},Migration[a1148_0x3bb1dd(0x18b)][a1148_0x3bb1dd(0x192)]=function(_0x5a3822,_0x298103){const _0x1d45e3=a1148_0x3bb1dd,_0x3a872b=this;this[_0x1d45e3(0x197)][_0x1d45e3(0x19f)](function(){const _0x231957=_0x1d45e3;return _0x3a872b[_0x231957(0x190)][_0x231957(0x192)](_0x5a3822,_0x298103)[_0x231957(0x18e)](function(){const _0x37c66e=_0x231957;logger[_0x37c66e(0x18c)](_0x37c66e(0x189),_0x5a3822,_0x298103);})[_0x231957(0x18a)](function(_0x33f228){const _0x5c16f0=_0x231957;logger[_0x5c16f0(0x18c)](JSON[_0x5c16f0(0x194)](_0x33f228));});});},Migration['prototype'][a1148_0x3bb1dd(0x19b)]=function(_0x541deb){const _0x545bea=a1148_0x3bb1dd,_0xfacd7d=this;this[_0x545bea(0x197)][_0x545bea(0x19f)](function(){const _0x346b7=_0x545bea;return _0xfacd7d[_0x346b7(0x190)][_0x346b7(0x18d)]['query'](_0x541deb)['then'](function(){const _0x512889=_0x346b7;logger[_0x512889(0x18c)]('query\x20%s',_0x541deb);})[_0x346b7(0x18a)](function(_0x5ba08f){const _0x10e248=_0x346b7;logger[_0x10e248(0x18c)](JSON[_0x10e248(0x194)](_0x5ba08f));});});},Migration[a1148_0x3bb1dd(0x18b)][a1148_0x3bb1dd(0x193)]=function(_0x482b9d,_0x4d75ae){const _0x55ac6a=a1148_0x3bb1dd,_0x1590e7=this;this[_0x55ac6a(0x197)][_0x55ac6a(0x19f)](function(){const _0x3528aa=_0x55ac6a;return _0x1590e7['queryInterface'][_0x3528aa(0x193)](_0x482b9d,_0x4d75ae)[_0x3528aa(0x18e)](function(){const _0x546ff1=_0x3528aa;logger['info'](_0x546ff1(0x1a2),_0x4d75ae,_0x482b9d);})[_0x3528aa(0x18a)](function(_0x24bf81){const _0x5e40a0=_0x3528aa;logger[_0x5e40a0(0x18c)](util[_0x5e40a0(0x1a0)](_0x24bf81,{'showHidden':![],'depth':null}));});});},Migration[a1148_0x3bb1dd(0x18b)][a1148_0x3bb1dd(0x195)]=function(_0x59fce7,_0x4e5ce0,_0x2b131f){const _0x4ad41a=a1148_0x3bb1dd,_0x4abe04=this;this['sequence'][_0x4ad41a(0x19f)](function(){const _0x43087c=_0x4ad41a;return _0x4abe04['queryInterface']['renameColumn'](_0x59fce7,_0x4e5ce0,_0x2b131f)[_0x43087c(0x18e)](function(){const _0x28829c=_0x43087c;logger[_0x28829c(0x18c)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4e5ce0,_0x2b131f,_0x59fce7);})[_0x43087c(0x18a)](function(_0x4976cb){const _0x3b11ef=_0x43087c;logger[_0x3b11ef(0x18c)](util[_0x3b11ef(0x1a0)](_0x4976cb,{'showHidden':![],'depth':null}));});});},Migration[a1148_0x3bb1dd(0x18b)][a1148_0x3bb1dd(0x1a1)]=function(_0x44b15b){const _0x2b2cac=a1148_0x3bb1dd;this[_0x2b2cac(0x197)][_0x2b2cac(0x19f)](function(){return _0x44b15b();});},module['exports']={'up':function(_0x45d324){return new Promise(function(_0x4de8c1){const _0xbee8bd=a1148_0x4c30,_0x31b78a=new Migration(_0x45d324);_0x31b78a[_0xbee8bd(0x1a1)](_0x4de8c1);});},'down':function(){}}; \ No newline at end of file +const a1148_0xfa8d=['query','enqueue','changeColumn','Added\x20column\x20%s\x20to\x20%s','stringify','inspect','finally','removeColumn','addIndex\x20%s\x20%s\x20%s','addIndex','info','addColumn','renameColumn','then','tail','migration','removeIndex','sequence','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','removeIndex\x20%s\x20%s','queryInterface','Removed\x20column\x20%s\x20from\x20%s','util','exports','final','catch','table\x20dropped\x20%s'];(function(_0x41acc8,_0x176d97){const _0xfa8d77=function(_0x295939){while(--_0x295939){_0x41acc8['push'](_0x41acc8['shift']());}};_0xfa8d77(++_0x176d97);}(a1148_0xfa8d,0xc7));const a1148_0x2959=function(_0x41acc8,_0x176d97){_0x41acc8=_0x41acc8-0x14b;let _0xfa8d77=a1148_0xfa8d[_0x41acc8];return _0xfa8d77;};const a1148_0xc228f0=a1148_0x2959;'use strict';const util=require(a1148_0xc228f0(0x167)),logger=require('../config/logger')(a1148_0xc228f0(0x15e)),Sequence=function(){};Sequence[a1148_0xc228f0(0x163)]['enqueue']=function(_0x892c1c){const _0x20dbe7=a1148_0xc228f0;this[_0x20dbe7(0x15d)]=this[_0x20dbe7(0x15d)]?this['tail'][_0x20dbe7(0x155)](_0x892c1c):_0x892c1c();};const Migration=function(_0x580b44){const _0x1e2a04=a1148_0xc228f0;this[_0x1e2a04(0x165)]=_0x580b44,this[_0x1e2a04(0x160)]=new Sequence();};Migration['prototype'][a1148_0xc228f0(0x151)]=function(_0x35b712,_0x59e9fc,_0x5224b9){const _0x2618c6=a1148_0xc228f0,_0x17aa08=this;this[_0x2618c6(0x160)]['enqueue'](function(){const _0x2be621=_0x2618c6;return _0x17aa08[_0x2be621(0x165)]['changeColumn'](_0x35b712,_0x59e9fc,_0x5224b9)['then'](function(){const _0x56f8eb=_0x2be621;logger[_0x56f8eb(0x159)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x59e9fc,_0x35b712);})[_0x2be621(0x14d)](function(_0xb132fe){const _0x32acf4=_0x2be621;logger[_0x32acf4(0x159)](JSON['stringify'](_0xb132fe));});});},Migration['prototype'][a1148_0xc228f0(0x15a)]=function(_0x5b3be1,_0x2c8b45,_0x480e6b){const _0x28965c=a1148_0xc228f0,_0x49ecb0=this;this[_0x28965c(0x160)][_0x28965c(0x150)](function(){const _0x331b3d=_0x28965c;return _0x49ecb0[_0x331b3d(0x165)]['addColumn'](_0x5b3be1,_0x2c8b45,_0x480e6b)['then'](function(){const _0x2c7a09=_0x331b3d;logger[_0x2c7a09(0x159)](_0x2c7a09(0x152),_0x2c8b45,_0x5b3be1);})['catch'](function(_0x5ca22b){const _0x56d4b0=_0x331b3d;logger[_0x56d4b0(0x159)](JSON[_0x56d4b0(0x153)](_0x5ca22b));});});},Migration['prototype'][a1148_0xc228f0(0x161)]=function(_0xcaad53){const _0xa72cf=a1148_0xc228f0,_0x3c85ca=this;this[_0xa72cf(0x160)]['enqueue'](function(){const _0xbf5110=_0xa72cf;return _0x3c85ca[_0xbf5110(0x165)][_0xbf5110(0x161)](_0xcaad53,{'force':!![]})['then'](function(){const _0x2cbe30=_0xbf5110;logger['info'](_0x2cbe30(0x14e),_0xcaad53);})[_0xbf5110(0x14d)](function(_0x58c50b){const _0x415925=_0xbf5110;logger[_0x415925(0x159)](JSON[_0x415925(0x153)](_0x58c50b));});});},Migration[a1148_0xc228f0(0x163)][a1148_0xc228f0(0x158)]=function(_0x46af0b,_0x3ae3a8,_0x17de5d){const _0x2221d4=this;this['sequence']['enqueue'](function(){const _0x581e94=a1148_0x2959;return _0x2221d4[_0x581e94(0x165)][_0x581e94(0x158)](_0x46af0b,_0x3ae3a8,{'indexName':_0x17de5d})[_0x581e94(0x15c)](function(){const _0x317730=_0x581e94;logger[_0x317730(0x159)](_0x317730(0x157),_0x46af0b,_0x3ae3a8['join'](','),_0x17de5d);})['catch'](function(_0x4ffc2c){const _0xa65f0a=_0x581e94;logger[_0xa65f0a(0x159)](JSON[_0xa65f0a(0x153)](_0x4ffc2c));});});},Migration['prototype'][a1148_0xc228f0(0x15f)]=function(_0x59a67e,_0x15900e){const _0x27bc09=a1148_0xc228f0,_0x4ac191=this;this[_0x27bc09(0x160)][_0x27bc09(0x150)](function(){const _0x320b12=_0x27bc09;return _0x4ac191[_0x320b12(0x165)][_0x320b12(0x15f)](_0x59a67e,_0x15900e)[_0x320b12(0x15c)](function(){const _0x27d25a=_0x320b12;logger[_0x27d25a(0x159)](_0x27d25a(0x164),_0x59a67e,_0x15900e);})[_0x320b12(0x14d)](function(_0x3ec298){const _0x58ffc9=_0x320b12;logger[_0x58ffc9(0x159)](JSON[_0x58ffc9(0x153)](_0x3ec298));});});},Migration[a1148_0xc228f0(0x163)][a1148_0xc228f0(0x14f)]=function(_0x2d0ba2){const _0xca6155=a1148_0xc228f0,_0x3b7eee=this;this[_0xca6155(0x160)][_0xca6155(0x150)](function(){const _0x3ca1bb=_0xca6155;return _0x3b7eee[_0x3ca1bb(0x165)]['sequelize'][_0x3ca1bb(0x14f)](_0x2d0ba2)[_0x3ca1bb(0x15c)](function(){const _0x430946=_0x3ca1bb;logger[_0x430946(0x159)]('query\x20%s',_0x2d0ba2);})['catch'](function(_0x25ea87){const _0x649b77=_0x3ca1bb;logger[_0x649b77(0x159)](JSON[_0x649b77(0x153)](_0x25ea87));});});},Migration['prototype'][a1148_0xc228f0(0x156)]=function(_0x25715e,_0x553148){const _0x175976=a1148_0xc228f0,_0x36ed92=this;this[_0x175976(0x160)][_0x175976(0x150)](function(){const _0x47782d=_0x175976;return _0x36ed92['queryInterface'][_0x47782d(0x156)](_0x25715e,_0x553148)[_0x47782d(0x15c)](function(){const _0x275be5=_0x47782d;logger[_0x275be5(0x159)](_0x275be5(0x166),_0x553148,_0x25715e);})[_0x47782d(0x14d)](function(_0x48ff25){const _0x6ab283=_0x47782d;logger[_0x6ab283(0x159)](util['inspect'](_0x48ff25,{'showHidden':![],'depth':null}));});});},Migration[a1148_0xc228f0(0x163)][a1148_0xc228f0(0x15b)]=function(_0x52cd52,_0x241b24,_0x33bacb){const _0x46d4f2=a1148_0xc228f0,_0x1b59f1=this;this[_0x46d4f2(0x160)][_0x46d4f2(0x150)](function(){const _0x3e3ae9=_0x46d4f2;return _0x1b59f1[_0x3e3ae9(0x165)]['renameColumn'](_0x52cd52,_0x241b24,_0x33bacb)[_0x3e3ae9(0x15c)](function(){const _0x5dd066=_0x3e3ae9;logger['info'](_0x5dd066(0x162),_0x241b24,_0x33bacb,_0x52cd52);})[_0x3e3ae9(0x14d)](function(_0xa61e52){const _0x2dc01f=_0x3e3ae9;logger[_0x2dc01f(0x159)](util[_0x2dc01f(0x154)](_0xa61e52,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1148_0xc228f0(0x14c)]=function(_0x57f70a){const _0x4556b3=a1148_0xc228f0;this[_0x4556b3(0x160)][_0x4556b3(0x150)](function(){return _0x57f70a();});},module[a1148_0xc228f0(0x14b)]={'up':function(_0x1e6682){return new Promise(function(_0x29822d){const _0x128f63=a1148_0x2959,_0x25647f=new Migration(_0x1e6682);_0x25647f[_0x128f63(0x14c)](_0x29822d);});},'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 a8d827e..df152f3 100644 --- a/server/migrations/2.3.93.js +++ b/server/migrations/2.3.93.js @@ -1 +1 @@ -const a1149_0x581b=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Removed\x20column\x20%s\x20from\x20%s','prototype','migration','removeIndex\x20%s\x20%s','removeIndex','table\x20dropped\x20%s','then','addIndex','../config/logger','sequelize','finally','enqueue','queryInterface','join','dropTable','addColumn','sequence','query','stringify','info','catch','exports','removeColumn','tail','inspect','query\x20%s','final','renameColumn','changeColumn'];(function(_0x4c5768,_0x8f93e0){const _0x581b04=function(_0x12dc7e){while(--_0x12dc7e){_0x4c5768['push'](_0x4c5768['shift']());}};_0x581b04(++_0x8f93e0);}(a1149_0x581b,0x9c));const a1149_0x12dc=function(_0x4c5768,_0x8f93e0){_0x4c5768=_0x4c5768-0x149;let _0x581b04=a1149_0x581b[_0x4c5768];return _0x581b04;};const a1149_0x474834=a1149_0x12dc;'use strict';const util=require('util'),logger=require(a1149_0x474834(0x14c))(a1149_0x474834(0x164)),Sequence=function(){};Sequence['prototype'][a1149_0x474834(0x14f)]=function(_0x1887f5){const _0xe844e9=a1149_0x474834;this[_0xe844e9(0x15b)]=this['tail']?this[_0xe844e9(0x15b)][_0xe844e9(0x14e)](_0x1887f5):_0x1887f5();};const Migration=function(_0x4d31bf){const _0x278c77=a1149_0x474834;this['queryInterface']=_0x4d31bf,this[_0x278c77(0x154)]=new Sequence();};Migration[a1149_0x474834(0x163)][a1149_0x474834(0x160)]=function(_0xd4ac84,_0x4fa491,_0x5ea525){const _0x42f4aa=a1149_0x474834,_0x517dbd=this;this[_0x42f4aa(0x154)][_0x42f4aa(0x14f)](function(){const _0x54a3e4=_0x42f4aa;return _0x517dbd[_0x54a3e4(0x150)][_0x54a3e4(0x160)](_0xd4ac84,_0x4fa491,_0x5ea525)[_0x54a3e4(0x14a)](function(){const _0x4d8f6f=_0x54a3e4;logger[_0x4d8f6f(0x157)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4fa491,_0xd4ac84);})[_0x54a3e4(0x158)](function(_0x40487c){const _0x45df69=_0x54a3e4;logger[_0x45df69(0x157)](JSON[_0x45df69(0x156)](_0x40487c));});});},Migration[a1149_0x474834(0x163)]['addColumn']=function(_0x596461,_0x1f8649,_0x52d889){const _0x3c7313=a1149_0x474834,_0x193964=this;this[_0x3c7313(0x154)][_0x3c7313(0x14f)](function(){const _0x36598f=_0x3c7313;return _0x193964[_0x36598f(0x150)][_0x36598f(0x153)](_0x596461,_0x1f8649,_0x52d889)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x1f8649,_0x596461);})[_0x36598f(0x158)](function(_0x3dea09){const _0x2b0367=_0x36598f;logger['info'](JSON[_0x2b0367(0x156)](_0x3dea09));});});},Migration[a1149_0x474834(0x163)][a1149_0x474834(0x152)]=function(_0x217618){const _0x3ddd99=a1149_0x474834,_0x3314ad=this;this[_0x3ddd99(0x154)][_0x3ddd99(0x14f)](function(){const _0x4b4316=_0x3ddd99;return _0x3314ad[_0x4b4316(0x150)][_0x4b4316(0x152)](_0x217618,{'force':!![]})['then'](function(){const _0x15b249=_0x4b4316;logger['info'](_0x15b249(0x149),_0x217618);})[_0x4b4316(0x158)](function(_0x472405){const _0x5ed630=_0x4b4316;logger[_0x5ed630(0x157)](JSON[_0x5ed630(0x156)](_0x472405));});});},Migration['prototype'][a1149_0x474834(0x14b)]=function(_0x3eaa61,_0xff3597,_0x5eebe9){const _0x568af6=a1149_0x474834,_0x51fb88=this;this[_0x568af6(0x154)][_0x568af6(0x14f)](function(){const _0x5d272e=_0x568af6;return _0x51fb88['queryInterface'][_0x5d272e(0x14b)](_0x3eaa61,_0xff3597,{'indexName':_0x5eebe9})[_0x5d272e(0x14a)](function(){const _0x3c1501=_0x5d272e;logger[_0x3c1501(0x157)]('addIndex\x20%s\x20%s\x20%s',_0x3eaa61,_0xff3597[_0x3c1501(0x151)](','),_0x5eebe9);})[_0x5d272e(0x158)](function(_0x27c735){const _0x12876f=_0x5d272e;logger[_0x12876f(0x157)](JSON[_0x12876f(0x156)](_0x27c735));});});},Migration[a1149_0x474834(0x163)][a1149_0x474834(0x166)]=function(_0x1f9f85,_0x3433d2){const _0x34c961=a1149_0x474834,_0x495f75=this;this[_0x34c961(0x154)][_0x34c961(0x14f)](function(){const _0x3a6370=_0x34c961;return _0x495f75[_0x3a6370(0x150)][_0x3a6370(0x166)](_0x1f9f85,_0x3433d2)[_0x3a6370(0x14a)](function(){const _0x4abb1e=_0x3a6370;logger[_0x4abb1e(0x157)](_0x4abb1e(0x165),_0x1f9f85,_0x3433d2);})['catch'](function(_0x19dca9){const _0x437bc5=_0x3a6370;logger[_0x437bc5(0x157)](JSON[_0x437bc5(0x156)](_0x19dca9));});});},Migration[a1149_0x474834(0x163)][a1149_0x474834(0x155)]=function(_0xe6a518){const _0x3e8075=a1149_0x474834,_0x3fcc09=this;this[_0x3e8075(0x154)][_0x3e8075(0x14f)](function(){const _0x30bdb9=_0x3e8075;return _0x3fcc09[_0x30bdb9(0x150)][_0x30bdb9(0x14d)]['query'](_0xe6a518)[_0x30bdb9(0x14a)](function(){const _0x288cb5=_0x30bdb9;logger[_0x288cb5(0x157)](_0x288cb5(0x15d),_0xe6a518);})[_0x30bdb9(0x158)](function(_0x8376e6){const _0x45b04c=_0x30bdb9;logger[_0x45b04c(0x157)](JSON['stringify'](_0x8376e6));});});},Migration[a1149_0x474834(0x163)][a1149_0x474834(0x15a)]=function(_0x4e68b9,_0x11a5f1){const _0x4266f5=this;this['sequence']['enqueue'](function(){const _0x4699a9=a1149_0x12dc;return _0x4266f5[_0x4699a9(0x150)]['removeColumn'](_0x4e68b9,_0x11a5f1)[_0x4699a9(0x14a)](function(){const _0xb70f21=_0x4699a9;logger['info'](_0xb70f21(0x162),_0x11a5f1,_0x4e68b9);})[_0x4699a9(0x158)](function(_0x527f67){const _0x4d72c9=_0x4699a9;logger['info'](util[_0x4d72c9(0x15c)](_0x527f67,{'showHidden':![],'depth':null}));});});},Migration[a1149_0x474834(0x163)][a1149_0x474834(0x15f)]=function(_0x2b4da3,_0x46ebc6,_0x5219b1){const _0x1322fb=a1149_0x474834,_0x3c13fc=this;this[_0x1322fb(0x154)][_0x1322fb(0x14f)](function(){const _0x172b56=_0x1322fb;return _0x3c13fc[_0x172b56(0x150)][_0x172b56(0x15f)](_0x2b4da3,_0x46ebc6,_0x5219b1)[_0x172b56(0x14a)](function(){const _0x5afd27=_0x172b56;logger[_0x5afd27(0x157)](_0x5afd27(0x161),_0x46ebc6,_0x5219b1,_0x2b4da3);})[_0x172b56(0x158)](function(_0x121629){const _0x281b6b=_0x172b56;logger[_0x281b6b(0x157)](util[_0x281b6b(0x15c)](_0x121629,{'showHidden':![],'depth':null}));});});},Migration[a1149_0x474834(0x163)][a1149_0x474834(0x15e)]=function(_0xfc7791){this['sequence']['enqueue'](function(){return _0xfc7791();});},module[a1149_0x474834(0x159)]={'up':function(_0x390876){return new Promise(function(_0x45e0ad){const _0x1255c1=a1149_0x12dc,_0x15a312=new Migration(_0x390876);_0x15a312[_0x1255c1(0x15e)](_0x45e0ad);});},'down':function(){}}; \ No newline at end of file +const a1149_0x5975=['queryInterface','query\x20%s','removeColumn','migration','addIndex\x20%s\x20%s\x20%s','then','Removed\x20column\x20%s\x20from\x20%s','enqueue','inspect','prototype','addIndex','final','sequelize','query','changeColumn','addColumn','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','catch','removeIndex','info','renameColumn','stringify','dropTable','sequence','../config/logger','tail'];(function(_0x4b0194,_0x4f45a7){const _0x597581=function(_0x2a81e2){while(--_0x2a81e2){_0x4b0194['push'](_0x4b0194['shift']());}};_0x597581(++_0x4f45a7);}(a1149_0x5975,0x7f));const a1149_0x2a81=function(_0x4b0194,_0x4f45a7){_0x4b0194=_0x4b0194-0x82;let _0x597581=a1149_0x5975[_0x4b0194];return _0x597581;};const a1149_0x1a64a7=a1149_0x2a81;'use strict';const util=require('util'),logger=require(a1149_0x1a64a7(0x92))(a1149_0x1a64a7(0x97)),Sequence=function(){};Sequence[a1149_0x1a64a7(0x9d)][a1149_0x1a64a7(0x9b)]=function(_0x1aa548){const _0x336796=a1149_0x1a64a7;this[_0x336796(0x93)]=this[_0x336796(0x93)]?this[_0x336796(0x93)]['finally'](_0x1aa548):_0x1aa548();};const Migration=function(_0x7748a1){const _0x178dec=a1149_0x1a64a7;this[_0x178dec(0x94)]=_0x7748a1,this[_0x178dec(0x91)]=new Sequence();};Migration['prototype'][a1149_0x1a64a7(0x85)]=function(_0x29a917,_0x45d5a3,_0x122e3d){const _0x1d235b=a1149_0x1a64a7,_0x5bff66=this;this[_0x1d235b(0x91)][_0x1d235b(0x9b)](function(){const _0x1f8f23=_0x1d235b;return _0x5bff66[_0x1f8f23(0x94)][_0x1f8f23(0x85)](_0x29a917,_0x45d5a3,_0x122e3d)['then'](function(){const _0x1a4593=_0x1f8f23;logger['info'](_0x1a4593(0x88),_0x45d5a3,_0x29a917);})[_0x1f8f23(0x8b)](function(_0x4fd9e6){const _0x5ecf41=_0x1f8f23;logger[_0x5ecf41(0x8d)](JSON[_0x5ecf41(0x8f)](_0x4fd9e6));});});},Migration[a1149_0x1a64a7(0x9d)][a1149_0x1a64a7(0x86)]=function(_0x2d2ec5,_0x368614,_0xe4ac3a){const _0x1fdcc2=a1149_0x1a64a7,_0x435a44=this;this[_0x1fdcc2(0x91)][_0x1fdcc2(0x9b)](function(){const _0x50148f=_0x1fdcc2;return _0x435a44[_0x50148f(0x94)]['addColumn'](_0x2d2ec5,_0x368614,_0xe4ac3a)[_0x50148f(0x99)](function(){const _0x3e96d3=_0x50148f;logger[_0x3e96d3(0x8d)](_0x3e96d3(0x87),_0x368614,_0x2d2ec5);})['catch'](function(_0x46949d){const _0x592b70=_0x50148f;logger[_0x592b70(0x8d)](JSON[_0x592b70(0x8f)](_0x46949d));});});},Migration[a1149_0x1a64a7(0x9d)][a1149_0x1a64a7(0x90)]=function(_0x563e0f){const _0x15ed20=a1149_0x1a64a7,_0x349261=this;this['sequence'][_0x15ed20(0x9b)](function(){const _0x47c252=_0x15ed20;return _0x349261['queryInterface'][_0x47c252(0x90)](_0x563e0f,{'force':!![]})[_0x47c252(0x99)](function(){const _0x533a27=_0x47c252;logger['info'](_0x533a27(0x89),_0x563e0f);})['catch'](function(_0x4e1713){const _0x471dae=_0x47c252;logger[_0x471dae(0x8d)](JSON[_0x471dae(0x8f)](_0x4e1713));});});},Migration[a1149_0x1a64a7(0x9d)][a1149_0x1a64a7(0x9e)]=function(_0x56427d,_0x2eeb6c,_0x432e19){const _0x1e19ef=a1149_0x1a64a7,_0xae8ec0=this;this[_0x1e19ef(0x91)][_0x1e19ef(0x9b)](function(){const _0x41d1ad=_0x1e19ef;return _0xae8ec0[_0x41d1ad(0x94)]['addIndex'](_0x56427d,_0x2eeb6c,{'indexName':_0x432e19})[_0x41d1ad(0x99)](function(){const _0x2f87a3=_0x41d1ad;logger[_0x2f87a3(0x8d)](_0x2f87a3(0x98),_0x56427d,_0x2eeb6c['join'](','),_0x432e19);})[_0x41d1ad(0x8b)](function(_0x1ce66a){const _0x51d40a=_0x41d1ad;logger[_0x51d40a(0x8d)](JSON['stringify'](_0x1ce66a));});});},Migration[a1149_0x1a64a7(0x9d)][a1149_0x1a64a7(0x8c)]=function(_0x4d1060,_0x536ad4){const _0x627ef6=a1149_0x1a64a7,_0x75cc82=this;this[_0x627ef6(0x91)][_0x627ef6(0x9b)](function(){const _0x33236f=_0x627ef6;return _0x75cc82[_0x33236f(0x94)][_0x33236f(0x8c)](_0x4d1060,_0x536ad4)[_0x33236f(0x99)](function(){const _0x4e30ee=_0x33236f;logger[_0x4e30ee(0x8d)](_0x4e30ee(0x8a),_0x4d1060,_0x536ad4);})[_0x33236f(0x8b)](function(_0x2e9317){const _0x5adb3c=_0x33236f;logger['info'](JSON[_0x5adb3c(0x8f)](_0x2e9317));});});},Migration[a1149_0x1a64a7(0x9d)][a1149_0x1a64a7(0x84)]=function(_0x1281f4){const _0x13698d=a1149_0x1a64a7,_0x2ece55=this;this[_0x13698d(0x91)]['enqueue'](function(){const _0x29c039=_0x13698d;return _0x2ece55[_0x29c039(0x94)][_0x29c039(0x83)]['query'](_0x1281f4)['then'](function(){const _0x270ea4=_0x29c039;logger[_0x270ea4(0x8d)](_0x270ea4(0x95),_0x1281f4);})[_0x29c039(0x8b)](function(_0x2e36d7){const _0x5b0e39=_0x29c039;logger['info'](JSON[_0x5b0e39(0x8f)](_0x2e36d7));});});},Migration[a1149_0x1a64a7(0x9d)]['removeColumn']=function(_0x30e7d2,_0x31a12b){const _0x35b6cc=a1149_0x1a64a7,_0x535945=this;this[_0x35b6cc(0x91)][_0x35b6cc(0x9b)](function(){const _0x2ac5e5=_0x35b6cc;return _0x535945[_0x2ac5e5(0x94)][_0x2ac5e5(0x96)](_0x30e7d2,_0x31a12b)[_0x2ac5e5(0x99)](function(){const _0x3ec9f9=_0x2ac5e5;logger['info'](_0x3ec9f9(0x9a),_0x31a12b,_0x30e7d2);})[_0x2ac5e5(0x8b)](function(_0x59d682){const _0x164708=_0x2ac5e5;logger[_0x164708(0x8d)](util[_0x164708(0x9c)](_0x59d682,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1149_0x1a64a7(0x8e)]=function(_0x2b2073,_0x20eb4f,_0xe3a390){const _0x9319a2=a1149_0x1a64a7,_0x574ef6=this;this[_0x9319a2(0x91)][_0x9319a2(0x9b)](function(){const _0x409aec=_0x9319a2;return _0x574ef6['queryInterface'][_0x409aec(0x8e)](_0x2b2073,_0x20eb4f,_0xe3a390)['then'](function(){const _0x20e178=_0x409aec;logger[_0x20e178(0x8d)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x20eb4f,_0xe3a390,_0x2b2073);})[_0x409aec(0x8b)](function(_0x1b2d32){const _0x268501=_0x409aec;logger[_0x268501(0x8d)](util[_0x268501(0x9c)](_0x1b2d32,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1149_0x1a64a7(0x82)]=function(_0x443f96){const _0x1f3c32=a1149_0x1a64a7;this[_0x1f3c32(0x91)]['enqueue'](function(){return _0x443f96();});},module['exports']={'up':function(_0x1ae3d9){return new Promise(function(_0x56d815){const _0x14bf3e=a1149_0x2a81,_0x6b3274=new Migration(_0x1ae3d9);_0x6b3274[_0x14bf3e(0x82)](_0x56d815);});},'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 2711b1b..64c2b14 100644 --- a/server/migrations/2.3.94.js +++ b/server/migrations/2.3.94.js @@ -1 +1 @@ -const a1150_0x23d1=['dropTable','util','addColumn','addIndex\x20%s\x20%s\x20%s','addIndex','Removed\x20column\x20%s\x20from\x20%s','query','changeColumn','migration','inspect','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','sequence','removeIndex\x20%s\x20%s','removeIndex','enqueue','table\x20dropped\x20%s','then','info','prototype','../config/logger','join','Added\x20column\x20%s\x20to\x20%s','renameColumn','stringify','catch','query\x20%s'];(function(_0x6bf73b,_0x50ca37){const _0x23d1dd=function(_0x42ea47){while(--_0x42ea47){_0x6bf73b['push'](_0x6bf73b['shift']());}};_0x23d1dd(++_0x50ca37);}(a1150_0x23d1,0xee));const a1150_0x42ea=function(_0x6bf73b,_0x50ca37){_0x6bf73b=_0x6bf73b-0x1bf;let _0x23d1dd=a1150_0x23d1[_0x6bf73b];return _0x23d1dd;};const a1150_0x43e08c=a1150_0x42ea;'use strict';const util=require(a1150_0x43e08c(0x1c2)),logger=require(a1150_0x43e08c(0x1d8))(a1150_0x43e08c(0x1c9)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x308341){const _0xebe5ca=a1150_0x43e08c;this[_0xebe5ca(0x1cb)]=this['tail']?this[_0xebe5ca(0x1cb)]['finally'](_0x308341):_0x308341();};const Migration=function(_0x268187){const _0x8b21cf=a1150_0x43e08c;this[_0x8b21cf(0x1cf)]=_0x268187,this[_0x8b21cf(0x1d0)]=new Sequence();};Migration['prototype'][a1150_0x43e08c(0x1c8)]=function(_0x391b0d,_0x4b699a,_0x5d3f52){const _0x5a4f0d=a1150_0x43e08c,_0xd8a77e=this;this[_0x5a4f0d(0x1d0)][_0x5a4f0d(0x1d3)](function(){const _0x3da753=_0x5a4f0d;return _0xd8a77e[_0x3da753(0x1cf)][_0x3da753(0x1c8)](_0x391b0d,_0x4b699a,_0x5d3f52)[_0x3da753(0x1d5)](function(){const _0x9b9987=_0x3da753;logger['info'](_0x9b9987(0x1cc),_0x4b699a,_0x391b0d);})[_0x3da753(0x1bf)](function(_0xa71aa0){const _0x192f29=_0x3da753;logger[_0x192f29(0x1d6)](JSON[_0x192f29(0x1dc)](_0xa71aa0));});});},Migration[a1150_0x43e08c(0x1d7)][a1150_0x43e08c(0x1c3)]=function(_0x2a4fa2,_0x101ea3,_0x4a79dd){const _0x249288=a1150_0x43e08c,_0x1acff3=this;this[_0x249288(0x1d0)][_0x249288(0x1d3)](function(){const _0x1d87ae=_0x249288;return _0x1acff3['queryInterface'][_0x1d87ae(0x1c3)](_0x2a4fa2,_0x101ea3,_0x4a79dd)['then'](function(){const _0xe83eaf=_0x1d87ae;logger[_0xe83eaf(0x1d6)](_0xe83eaf(0x1da),_0x101ea3,_0x2a4fa2);})[_0x1d87ae(0x1bf)](function(_0x5165bd){const _0x56b192=_0x1d87ae;logger[_0x56b192(0x1d6)](JSON[_0x56b192(0x1dc)](_0x5165bd));});});},Migration[a1150_0x43e08c(0x1d7)]['dropTable']=function(_0x244eeb){const _0x2b65eb=a1150_0x43e08c,_0x462d5b=this;this[_0x2b65eb(0x1d0)][_0x2b65eb(0x1d3)](function(){const _0xb25da8=_0x2b65eb;return _0x462d5b[_0xb25da8(0x1cf)][_0xb25da8(0x1c1)](_0x244eeb,{'force':!![]})['then'](function(){const _0x2e8668=_0xb25da8;logger[_0x2e8668(0x1d6)](_0x2e8668(0x1d4),_0x244eeb);})[_0xb25da8(0x1bf)](function(_0x2f6255){const _0x1d824d=_0xb25da8;logger[_0x1d824d(0x1d6)](JSON[_0x1d824d(0x1dc)](_0x2f6255));});});},Migration[a1150_0x43e08c(0x1d7)][a1150_0x43e08c(0x1c5)]=function(_0x52eb9e,_0x246080,_0x1dc727){const _0x5b28af=a1150_0x43e08c,_0x401dba=this;this[_0x5b28af(0x1d0)][_0x5b28af(0x1d3)](function(){const _0x5805d0=_0x5b28af;return _0x401dba[_0x5805d0(0x1cf)][_0x5805d0(0x1c5)](_0x52eb9e,_0x246080,{'indexName':_0x1dc727})['then'](function(){const _0x47aca9=_0x5805d0;logger[_0x47aca9(0x1d6)](_0x47aca9(0x1c4),_0x52eb9e,_0x246080[_0x47aca9(0x1d9)](','),_0x1dc727);})[_0x5805d0(0x1bf)](function(_0x3da2ef){const _0x4b82f8=_0x5805d0;logger[_0x4b82f8(0x1d6)](JSON['stringify'](_0x3da2ef));});});},Migration['prototype'][a1150_0x43e08c(0x1d2)]=function(_0x200f22,_0x3cf0f9){const _0x50d658=a1150_0x43e08c,_0x3ad81b=this;this[_0x50d658(0x1d0)][_0x50d658(0x1d3)](function(){const _0x2647cf=_0x50d658;return _0x3ad81b[_0x2647cf(0x1cf)][_0x2647cf(0x1d2)](_0x200f22,_0x3cf0f9)[_0x2647cf(0x1d5)](function(){const _0x11ac60=_0x2647cf;logger['info'](_0x11ac60(0x1d1),_0x200f22,_0x3cf0f9);})[_0x2647cf(0x1bf)](function(_0x1aa2e9){const _0x2a5156=_0x2647cf;logger[_0x2a5156(0x1d6)](JSON[_0x2a5156(0x1dc)](_0x1aa2e9));});});},Migration[a1150_0x43e08c(0x1d7)][a1150_0x43e08c(0x1c7)]=function(_0x36042e){const _0x57bf0d=a1150_0x43e08c,_0x1362f3=this;this[_0x57bf0d(0x1d0)][_0x57bf0d(0x1d3)](function(){const _0x5a91f8=_0x57bf0d;return _0x1362f3[_0x5a91f8(0x1cf)]['sequelize'][_0x5a91f8(0x1c7)](_0x36042e)['then'](function(){const _0xa2e666=_0x5a91f8;logger['info'](_0xa2e666(0x1c0),_0x36042e);})[_0x5a91f8(0x1bf)](function(_0x29d5a6){const _0x36e1b8=_0x5a91f8;logger[_0x36e1b8(0x1d6)](JSON[_0x36e1b8(0x1dc)](_0x29d5a6));});});},Migration['prototype'][a1150_0x43e08c(0x1cd)]=function(_0x2b387e,_0xb6829d){const _0x3f64e3=a1150_0x43e08c,_0x20a7fd=this;this[_0x3f64e3(0x1d0)][_0x3f64e3(0x1d3)](function(){const _0x5b6681=_0x3f64e3;return _0x20a7fd[_0x5b6681(0x1cf)][_0x5b6681(0x1cd)](_0x2b387e,_0xb6829d)[_0x5b6681(0x1d5)](function(){const _0x40370c=_0x5b6681;logger[_0x40370c(0x1d6)](_0x40370c(0x1c6),_0xb6829d,_0x2b387e);})['catch'](function(_0x5d8b3f){const _0x40d19b=_0x5b6681;logger[_0x40d19b(0x1d6)](util[_0x40d19b(0x1ca)](_0x5d8b3f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1150_0x43e08c(0x1db)]=function(_0x523775,_0x5a8d0d,_0x32ec66){const _0x3f70b8=a1150_0x43e08c,_0x41cc7d=this;this[_0x3f70b8(0x1d0)][_0x3f70b8(0x1d3)](function(){const _0xfc19c3=_0x3f70b8;return _0x41cc7d['queryInterface'][_0xfc19c3(0x1db)](_0x523775,_0x5a8d0d,_0x32ec66)['then'](function(){const _0xee46c0=_0xfc19c3;logger[_0xee46c0(0x1d6)](_0xee46c0(0x1ce),_0x5a8d0d,_0x32ec66,_0x523775);})[_0xfc19c3(0x1bf)](function(_0x131aca){const _0x4431b9=_0xfc19c3;logger[_0x4431b9(0x1d6)](util['inspect'](_0x131aca,{'showHidden':![],'depth':null}));});});},Migration[a1150_0x43e08c(0x1d7)]['final']=function(_0x3090ce){const _0xb5ad55=a1150_0x43e08c;this[_0xb5ad55(0x1d0)][_0xb5ad55(0x1d3)](function(){return _0x3090ce();});},module['exports']={'up':function(_0x413101){return new Promise(function(_0x4dc67b){const _0x30565b=new Migration(_0x413101);_0x30565b['final'](_0x4dc67b);});},'down':function(){}}; \ No newline at end of file +const a1150_0x1930=['removeColumn','catch','addIndex\x20%s\x20%s\x20%s','then','finally','renameColumn','query\x20%s','addIndex','tail','util','removeIndex','exports','changeColumn','dropTable','sequence','inspect','join','stringify','../config/logger','Removed\x20column\x20%s\x20from\x20%s','queryInterface','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','final','info','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','addColumn','query','enqueue'];(function(_0x2dff2e,_0x5ac536){const _0x193093=function(_0x4bf0ac){while(--_0x4bf0ac){_0x2dff2e['push'](_0x2dff2e['shift']());}};_0x193093(++_0x5ac536);}(a1150_0x1930,0x1e1));const a1150_0x4bf0=function(_0x2dff2e,_0x5ac536){_0x2dff2e=_0x2dff2e-0x1b7;let _0x193093=a1150_0x1930[_0x2dff2e];return _0x193093;};const a1150_0x5ee2f8=a1150_0x4bf0;'use strict';const util=require(a1150_0x5ee2f8(0x1cf)),logger=require(a1150_0x5ee2f8(0x1b9))('migration'),Sequence=function(){};Sequence[a1150_0x5ee2f8(0x1bc)][a1150_0x5ee2f8(0x1c5)]=function(_0x110f58){const _0xa07477=a1150_0x5ee2f8;this[_0xa07477(0x1ce)]=this['tail']?this['tail'][_0xa07477(0x1ca)](_0x110f58):_0x110f58();};const Migration=function(_0x522b9d){const _0xb90225=a1150_0x5ee2f8;this[_0xb90225(0x1bb)]=_0x522b9d,this['sequence']=new Sequence();};Migration['prototype'][a1150_0x5ee2f8(0x1d2)]=function(_0x445aed,_0x1374ce,_0x4d30eb){const _0x524573=a1150_0x5ee2f8,_0x1bc8ec=this;this[_0x524573(0x1d4)][_0x524573(0x1c5)](function(){const _0x257ae4=_0x524573;return _0x1bc8ec['queryInterface'][_0x257ae4(0x1d2)](_0x445aed,_0x1374ce,_0x4d30eb)[_0x257ae4(0x1c9)](function(){const _0x1973d4=_0x257ae4;logger['info'](_0x1973d4(0x1bd),_0x1374ce,_0x445aed);})[_0x257ae4(0x1c7)](function(_0x386cb3){const _0x3b1214=_0x257ae4;logger[_0x3b1214(0x1bf)](JSON[_0x3b1214(0x1b8)](_0x386cb3));});});},Migration[a1150_0x5ee2f8(0x1bc)][a1150_0x5ee2f8(0x1c3)]=function(_0x44c557,_0xcbdfba,_0x1694e5){const _0x5ed089=a1150_0x5ee2f8,_0x40d875=this;this[_0x5ed089(0x1d4)][_0x5ed089(0x1c5)](function(){const _0x40a742=_0x5ed089;return _0x40d875[_0x40a742(0x1bb)][_0x40a742(0x1c3)](_0x44c557,_0xcbdfba,_0x1694e5)['then'](function(){const _0x1bc757=_0x40a742;logger[_0x1bc757(0x1bf)](_0x1bc757(0x1c2),_0xcbdfba,_0x44c557);})[_0x40a742(0x1c7)](function(_0x2ce2d1){const _0x1ae3ea=_0x40a742;logger[_0x1ae3ea(0x1bf)](JSON[_0x1ae3ea(0x1b8)](_0x2ce2d1));});});},Migration[a1150_0x5ee2f8(0x1bc)][a1150_0x5ee2f8(0x1d3)]=function(_0x777b2b){const _0xff89a3=a1150_0x5ee2f8,_0x16c1f8=this;this['sequence'][_0xff89a3(0x1c5)](function(){const _0x3b03ff=_0xff89a3;return _0x16c1f8['queryInterface']['dropTable'](_0x777b2b,{'force':!![]})[_0x3b03ff(0x1c9)](function(){const _0x57c1fd=_0x3b03ff;logger[_0x57c1fd(0x1bf)]('table\x20dropped\x20%s',_0x777b2b);})[_0x3b03ff(0x1c7)](function(_0x4144b3){const _0x277394=_0x3b03ff;logger[_0x277394(0x1bf)](JSON[_0x277394(0x1b8)](_0x4144b3));});});},Migration[a1150_0x5ee2f8(0x1bc)]['addIndex']=function(_0x444b0c,_0x1bdcc2,_0x1bb5df){const _0x3339f0=this;this['sequence']['enqueue'](function(){const _0x135f00=a1150_0x4bf0;return _0x3339f0[_0x135f00(0x1bb)][_0x135f00(0x1cd)](_0x444b0c,_0x1bdcc2,{'indexName':_0x1bb5df})[_0x135f00(0x1c9)](function(){const _0x530863=_0x135f00;logger[_0x530863(0x1bf)](_0x530863(0x1c8),_0x444b0c,_0x1bdcc2[_0x530863(0x1b7)](','),_0x1bb5df);})['catch'](function(_0x4cef17){const _0x597e6c=_0x135f00;logger[_0x597e6c(0x1bf)](JSON[_0x597e6c(0x1b8)](_0x4cef17));});});},Migration[a1150_0x5ee2f8(0x1bc)]['removeIndex']=function(_0x545f22,_0x2e6ab7){const _0x3f5b52=a1150_0x5ee2f8,_0x36b5a4=this;this[_0x3f5b52(0x1d4)][_0x3f5b52(0x1c5)](function(){const _0x5486b2=_0x3f5b52;return _0x36b5a4[_0x5486b2(0x1bb)][_0x5486b2(0x1d0)](_0x545f22,_0x2e6ab7)[_0x5486b2(0x1c9)](function(){const _0x39027e=_0x5486b2;logger['info'](_0x39027e(0x1c0),_0x545f22,_0x2e6ab7);})[_0x5486b2(0x1c7)](function(_0x1af225){const _0x3b04b5=_0x5486b2;logger['info'](JSON[_0x3b04b5(0x1b8)](_0x1af225));});});},Migration[a1150_0x5ee2f8(0x1bc)]['query']=function(_0x1fa33b){const _0x229db0=this;this['sequence']['enqueue'](function(){const _0x2de6ff=a1150_0x4bf0;return _0x229db0[_0x2de6ff(0x1bb)]['sequelize'][_0x2de6ff(0x1c4)](_0x1fa33b)[_0x2de6ff(0x1c9)](function(){const _0xe8695c=_0x2de6ff;logger[_0xe8695c(0x1bf)](_0xe8695c(0x1cc),_0x1fa33b);})[_0x2de6ff(0x1c7)](function(_0x396d81){const _0x31ef5d=_0x2de6ff;logger[_0x31ef5d(0x1bf)](JSON[_0x31ef5d(0x1b8)](_0x396d81));});});},Migration[a1150_0x5ee2f8(0x1bc)][a1150_0x5ee2f8(0x1c6)]=function(_0x10604e,_0x526621){const _0x319ad5=this;this['sequence']['enqueue'](function(){const _0x32110b=a1150_0x4bf0;return _0x319ad5[_0x32110b(0x1bb)][_0x32110b(0x1c6)](_0x10604e,_0x526621)[_0x32110b(0x1c9)](function(){const _0x3e2da9=_0x32110b;logger[_0x3e2da9(0x1bf)](_0x3e2da9(0x1ba),_0x526621,_0x10604e);})[_0x32110b(0x1c7)](function(_0x7caaf2){const _0xb2e730=_0x32110b;logger[_0xb2e730(0x1bf)](util['inspect'](_0x7caaf2,{'showHidden':![],'depth':null}));});});},Migration[a1150_0x5ee2f8(0x1bc)][a1150_0x5ee2f8(0x1cb)]=function(_0x4834a3,_0x8bdf42,_0x23889){const _0x4a6c1c=a1150_0x5ee2f8,_0xdea410=this;this[_0x4a6c1c(0x1d4)][_0x4a6c1c(0x1c5)](function(){const _0x48e026=_0x4a6c1c;return _0xdea410[_0x48e026(0x1bb)][_0x48e026(0x1cb)](_0x4834a3,_0x8bdf42,_0x23889)[_0x48e026(0x1c9)](function(){const _0x2c12ab=_0x48e026;logger[_0x2c12ab(0x1bf)](_0x2c12ab(0x1c1),_0x8bdf42,_0x23889,_0x4834a3);})[_0x48e026(0x1c7)](function(_0x3087cd){const _0x266c19=_0x48e026;logger[_0x266c19(0x1bf)](util[_0x266c19(0x1d5)](_0x3087cd,{'showHidden':![],'depth':null}));});});},Migration[a1150_0x5ee2f8(0x1bc)][a1150_0x5ee2f8(0x1be)]=function(_0x62242b){const _0x4052a3=a1150_0x5ee2f8;this[_0x4052a3(0x1d4)][_0x4052a3(0x1c5)](function(){return _0x62242b();});},module[a1150_0x5ee2f8(0x1d1)]={'up':function(_0x4b6887){return new Promise(function(_0x27c683){const _0x3d4237=a1150_0x4bf0,_0x32be3b=new Migration(_0x4b6887);_0x32be3b[_0x3d4237(0x1be)](_0x27c683);});},'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 d86737e..19e980f 100644 --- a/server/migrations/2.3.95.js +++ b/server/migrations/2.3.95.js @@ -1 +1 @@ -const a1151_0x2bc5=['catch','queryInterface','inspect','tail','removeIndex','removeColumn','addIndex\x20%s\x20%s\x20%s','info','addIndex','sequelize','renameColumn','final','exports','join','addColumn','stringify','table\x20dropped\x20%s','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','../config/logger','util','then','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','Removed\x20column\x20%s\x20from\x20%s','migration','prototype','enqueue','removeIndex\x20%s\x20%s','finally'];(function(_0x4242b9,_0x34c39b){const _0x2bc520=function(_0x19fa76){while(--_0x19fa76){_0x4242b9['push'](_0x4242b9['shift']());}};_0x2bc520(++_0x34c39b);}(a1151_0x2bc5,0x71));const a1151_0x19fa=function(_0x4242b9,_0x34c39b){_0x4242b9=_0x4242b9-0x18f;let _0x2bc520=a1151_0x2bc5[_0x4242b9];return _0x2bc520;};const a1151_0x2c5edf=a1151_0x19fa;'use strict';const util=require(a1151_0x2c5edf(0x190)),logger=require(a1151_0x2c5edf(0x18f))(a1151_0x2c5edf(0x195)),Sequence=function(){};Sequence[a1151_0x2c5edf(0x196)][a1151_0x2c5edf(0x197)]=function(_0x48f937){const _0x5e408d=a1151_0x2c5edf;this[_0x5e408d(0x19d)]=this[_0x5e408d(0x19d)]?this['tail'][_0x5e408d(0x199)](_0x48f937):_0x48f937();};const Migration=function(_0x98778){const _0x42d98e=a1151_0x2c5edf;this[_0x42d98e(0x19b)]=_0x98778,this[_0x42d98e(0x1ab)]=new Sequence();};Migration[a1151_0x2c5edf(0x196)]['changeColumn']=function(_0x335a0b,_0x5db1e8,_0x3e610c){const _0x49dbb4=a1151_0x2c5edf,_0x8ac961=this;this[_0x49dbb4(0x1ab)][_0x49dbb4(0x197)](function(){const _0x2ab2ec=_0x49dbb4;return _0x8ac961[_0x2ab2ec(0x19b)][_0x2ab2ec(0x193)](_0x335a0b,_0x5db1e8,_0x3e610c)[_0x2ab2ec(0x191)](function(){const _0x16bfaa=_0x2ab2ec;logger[_0x16bfaa(0x1a1)](_0x16bfaa(0x192),_0x5db1e8,_0x335a0b);})[_0x2ab2ec(0x19a)](function(_0x4eeb54){const _0x138217=_0x2ab2ec;logger[_0x138217(0x1a1)](JSON['stringify'](_0x4eeb54));});});},Migration[a1151_0x2c5edf(0x196)][a1151_0x2c5edf(0x1a8)]=function(_0x230cee,_0x2acd83,_0x15faa6){const _0x18ca4d=a1151_0x2c5edf,_0x7999a7=this;this['sequence'][_0x18ca4d(0x197)](function(){const _0x32b8f2=_0x18ca4d;return _0x7999a7[_0x32b8f2(0x19b)][_0x32b8f2(0x1a8)](_0x230cee,_0x2acd83,_0x15faa6)[_0x32b8f2(0x191)](function(){const _0x2c479b=_0x32b8f2;logger[_0x2c479b(0x1a1)]('Added\x20column\x20%s\x20to\x20%s',_0x2acd83,_0x230cee);})[_0x32b8f2(0x19a)](function(_0x2ff741){const _0x599eb5=_0x32b8f2;logger[_0x599eb5(0x1a1)](JSON['stringify'](_0x2ff741));});});},Migration[a1151_0x2c5edf(0x196)]['dropTable']=function(_0x23e4fd){const _0x39fdfb=a1151_0x2c5edf,_0x131cb1=this;this[_0x39fdfb(0x1ab)][_0x39fdfb(0x197)](function(){const _0x29554b=_0x39fdfb;return _0x131cb1['queryInterface'][_0x29554b(0x1ad)](_0x23e4fd,{'force':!![]})['then'](function(){const _0x5802c2=_0x29554b;logger[_0x5802c2(0x1a1)](_0x5802c2(0x1aa),_0x23e4fd);})['catch'](function(_0x5e360b){const _0x8e7e2d=_0x29554b;logger[_0x8e7e2d(0x1a1)](JSON['stringify'](_0x5e360b));});});},Migration[a1151_0x2c5edf(0x196)][a1151_0x2c5edf(0x1a2)]=function(_0xbf156c,_0x10e1c8,_0x5d24e8){const _0x1e13a7=a1151_0x2c5edf,_0x40f6d4=this;this[_0x1e13a7(0x1ab)][_0x1e13a7(0x197)](function(){const _0x31b2a1=_0x1e13a7;return _0x40f6d4[_0x31b2a1(0x19b)][_0x31b2a1(0x1a2)](_0xbf156c,_0x10e1c8,{'indexName':_0x5d24e8})['then'](function(){const _0x380a94=_0x31b2a1;logger[_0x380a94(0x1a1)](_0x380a94(0x1a0),_0xbf156c,_0x10e1c8[_0x380a94(0x1a7)](','),_0x5d24e8);})[_0x31b2a1(0x19a)](function(_0x18a5fe){const _0x77ce5f=_0x31b2a1;logger[_0x77ce5f(0x1a1)](JSON[_0x77ce5f(0x1a9)](_0x18a5fe));});});},Migration[a1151_0x2c5edf(0x196)][a1151_0x2c5edf(0x19e)]=function(_0x1b9f39,_0x5c0d88){const _0x548dc7=a1151_0x2c5edf,_0x1fd541=this;this['sequence'][_0x548dc7(0x197)](function(){const _0x4db829=_0x548dc7;return _0x1fd541[_0x4db829(0x19b)][_0x4db829(0x19e)](_0x1b9f39,_0x5c0d88)[_0x4db829(0x191)](function(){const _0x3419f3=_0x4db829;logger['info'](_0x3419f3(0x198),_0x1b9f39,_0x5c0d88);})[_0x4db829(0x19a)](function(_0x50db7b){const _0x38f1ec=_0x4db829;logger[_0x38f1ec(0x1a1)](JSON[_0x38f1ec(0x1a9)](_0x50db7b));});});},Migration[a1151_0x2c5edf(0x196)]['query']=function(_0x6e946f){const _0x30507f=a1151_0x2c5edf,_0x5eccaf=this;this['sequence'][_0x30507f(0x197)](function(){const _0x5aacad=_0x30507f;return _0x5eccaf[_0x5aacad(0x19b)][_0x5aacad(0x1a3)]['query'](_0x6e946f)[_0x5aacad(0x191)](function(){const _0x403ce5=_0x5aacad;logger[_0x403ce5(0x1a1)]('query\x20%s',_0x6e946f);})[_0x5aacad(0x19a)](function(_0x39e80c){const _0x41a656=_0x5aacad;logger[_0x41a656(0x1a1)](JSON[_0x41a656(0x1a9)](_0x39e80c));});});},Migration[a1151_0x2c5edf(0x196)][a1151_0x2c5edf(0x19f)]=function(_0x46f8e8,_0x16b45b){const _0x47d8cb=a1151_0x2c5edf,_0x5517b2=this;this[_0x47d8cb(0x1ab)][_0x47d8cb(0x197)](function(){const _0x139317=_0x47d8cb;return _0x5517b2[_0x139317(0x19b)][_0x139317(0x19f)](_0x46f8e8,_0x16b45b)[_0x139317(0x191)](function(){const _0x5476d0=_0x139317;logger[_0x5476d0(0x1a1)](_0x5476d0(0x194),_0x16b45b,_0x46f8e8);})[_0x139317(0x19a)](function(_0x133532){const _0x1eebd9=_0x139317;logger[_0x1eebd9(0x1a1)](util[_0x1eebd9(0x19c)](_0x133532,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x1b8b93,_0x2c1cbd,_0x49686a){const _0x57e0cf=this;this['sequence']['enqueue'](function(){const _0x52742e=a1151_0x19fa;return _0x57e0cf[_0x52742e(0x19b)][_0x52742e(0x1a4)](_0x1b8b93,_0x2c1cbd,_0x49686a)[_0x52742e(0x191)](function(){const _0x180a2b=_0x52742e;logger[_0x180a2b(0x1a1)](_0x180a2b(0x1ac),_0x2c1cbd,_0x49686a,_0x1b8b93);})[_0x52742e(0x19a)](function(_0x50ad56){const _0x280146=_0x52742e;logger[_0x280146(0x1a1)](util[_0x280146(0x19c)](_0x50ad56,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1151_0x2c5edf(0x1a5)]=function(_0x51fb47){const _0x3136b7=a1151_0x2c5edf;this[_0x3136b7(0x1ab)][_0x3136b7(0x197)](function(){return _0x51fb47();});},module[a1151_0x2c5edf(0x1a6)]={'up':function(_0x7f5730){return new Promise(function(_0x429f32){const _0x70e4cd=a1151_0x19fa,_0x398be0=new Migration(_0x7f5730);_0x398be0[_0x70e4cd(0x1a5)](_0x429f32);});},'down':function(){}}; \ No newline at end of file +const a1151_0xa7a5=['inspect','Removed\x20column\x20%s\x20from\x20%s','prototype','addColumn','../config/logger','addIndex','removeIndex\x20%s\x20%s','removeColumn','table\x20dropped\x20%s','finally','stringify','join','renameColumn','then','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','tail','migration','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','sequelize','exports','info','removeIndex','query','sequence','enqueue','changeColumn','catch','queryInterface'];(function(_0x24c8bd,_0x4031d7){const _0xa7a567=function(_0x4e8886){while(--_0x4e8886){_0x24c8bd['push'](_0x24c8bd['shift']());}};_0xa7a567(++_0x4031d7);}(a1151_0xa7a5,0x1ba));const a1151_0x4e88=function(_0x24c8bd,_0x4031d7){_0x24c8bd=_0x24c8bd-0xb4;let _0xa7a567=a1151_0xa7a5[_0x24c8bd];return _0xa7a567;};const a1151_0x3f8415=a1151_0x4e88;'use strict';const util=require('util'),logger=require(a1151_0x3f8415(0xcf))(a1151_0x3f8415(0xbe)),Sequence=function(){};Sequence[a1151_0x3f8415(0xcd)]['enqueue']=function(_0x28c9b2){const _0x4bfa6f=a1151_0x3f8415;this[_0x4bfa6f(0xbd)]=this[_0x4bfa6f(0xbd)]?this['tail'][_0x4bfa6f(0xb5)](_0x28c9b2):_0x28c9b2();};const Migration=function(_0x57f6fd){const _0x23a708=a1151_0x3f8415;this['queryInterface']=_0x57f6fd,this[_0x23a708(0xc6)]=new Sequence();};Migration[a1151_0x3f8415(0xcd)]['changeColumn']=function(_0x2e995e,_0x79c080,_0xbe314f){const _0x415305=a1151_0x3f8415,_0x241987=this;this[_0x415305(0xc6)][_0x415305(0xc7)](function(){const _0x2b5fab=_0x415305;return _0x241987[_0x2b5fab(0xca)][_0x2b5fab(0xc8)](_0x2e995e,_0x79c080,_0xbe314f)['then'](function(){const _0x2070bf=_0x2b5fab;logger[_0x2070bf(0xc3)](_0x2070bf(0xbf),_0x79c080,_0x2e995e);})[_0x2b5fab(0xc9)](function(_0x952719){const _0x139078=_0x2b5fab;logger[_0x139078(0xc3)](JSON[_0x139078(0xb6)](_0x952719));});});},Migration[a1151_0x3f8415(0xcd)][a1151_0x3f8415(0xce)]=function(_0x484c57,_0x14a16d,_0x4613c7){const _0x30e6a4=a1151_0x3f8415,_0x431624=this;this[_0x30e6a4(0xc6)][_0x30e6a4(0xc7)](function(){const _0x132576=_0x30e6a4;return _0x431624[_0x132576(0xca)][_0x132576(0xce)](_0x484c57,_0x14a16d,_0x4613c7)[_0x132576(0xb9)](function(){const _0x4b279c=_0x132576;logger[_0x4b279c(0xc3)](_0x4b279c(0xbc),_0x14a16d,_0x484c57);})[_0x132576(0xc9)](function(_0x342438){const _0x553510=_0x132576;logger[_0x553510(0xc3)](JSON[_0x553510(0xb6)](_0x342438));});});},Migration[a1151_0x3f8415(0xcd)]['dropTable']=function(_0x56161c){const _0x517d1b=a1151_0x3f8415,_0x4dfb39=this;this[_0x517d1b(0xc6)][_0x517d1b(0xc7)](function(){const _0xdc102a=_0x517d1b;return _0x4dfb39[_0xdc102a(0xca)]['dropTable'](_0x56161c,{'force':!![]})[_0xdc102a(0xb9)](function(){const _0x26e1a1=_0xdc102a;logger[_0x26e1a1(0xc3)](_0x26e1a1(0xb4),_0x56161c);})[_0xdc102a(0xc9)](function(_0x55a4a0){const _0x3061a7=_0xdc102a;logger[_0x3061a7(0xc3)](JSON[_0x3061a7(0xb6)](_0x55a4a0));});});},Migration[a1151_0x3f8415(0xcd)][a1151_0x3f8415(0xd0)]=function(_0x5ed88b,_0x36251f,_0x1c4b5c){const _0x5eab55=a1151_0x3f8415,_0x52b5d7=this;this[_0x5eab55(0xc6)][_0x5eab55(0xc7)](function(){const _0x35f9ab=_0x5eab55;return _0x52b5d7[_0x35f9ab(0xca)][_0x35f9ab(0xd0)](_0x5ed88b,_0x36251f,{'indexName':_0x1c4b5c})['then'](function(){const _0x515597=_0x35f9ab;logger[_0x515597(0xc3)]('addIndex\x20%s\x20%s\x20%s',_0x5ed88b,_0x36251f[_0x515597(0xb7)](','),_0x1c4b5c);})[_0x35f9ab(0xc9)](function(_0x1b8369){const _0x5270de=_0x35f9ab;logger['info'](JSON[_0x5270de(0xb6)](_0x1b8369));});});},Migration[a1151_0x3f8415(0xcd)][a1151_0x3f8415(0xc4)]=function(_0x592229,_0x5e6872){const _0x144476=a1151_0x3f8415,_0x1d556e=this;this[_0x144476(0xc6)][_0x144476(0xc7)](function(){const _0x1edff9=_0x144476;return _0x1d556e['queryInterface'][_0x1edff9(0xc4)](_0x592229,_0x5e6872)[_0x1edff9(0xb9)](function(){const _0x4fd888=_0x1edff9;logger[_0x4fd888(0xc3)](_0x4fd888(0xd1),_0x592229,_0x5e6872);})[_0x1edff9(0xc9)](function(_0xdd252){const _0x4088a8=_0x1edff9;logger[_0x4088a8(0xc3)](JSON[_0x4088a8(0xb6)](_0xdd252));});});},Migration[a1151_0x3f8415(0xcd)][a1151_0x3f8415(0xc5)]=function(_0x2c6c22){const _0x51a8ba=a1151_0x3f8415,_0x583fb6=this;this[_0x51a8ba(0xc6)][_0x51a8ba(0xc7)](function(){const _0x51642a=_0x51a8ba;return _0x583fb6[_0x51642a(0xca)][_0x51642a(0xc1)]['query'](_0x2c6c22)[_0x51642a(0xb9)](function(){const _0x3df08a=_0x51642a;logger['info'](_0x3df08a(0xc0),_0x2c6c22);})[_0x51642a(0xc9)](function(_0x47a834){const _0x3642b8=_0x51642a;logger['info'](JSON[_0x3642b8(0xb6)](_0x47a834));});});},Migration[a1151_0x3f8415(0xcd)][a1151_0x3f8415(0xd2)]=function(_0x135f89,_0x10476c){const _0x5ad3bc=a1151_0x3f8415,_0x379bca=this;this[_0x5ad3bc(0xc6)][_0x5ad3bc(0xc7)](function(){const _0x50bb60=_0x5ad3bc;return _0x379bca['queryInterface']['removeColumn'](_0x135f89,_0x10476c)['then'](function(){const _0x58dc58=a1151_0x4e88;logger[_0x58dc58(0xc3)](_0x58dc58(0xcc),_0x10476c,_0x135f89);})[_0x50bb60(0xc9)](function(_0x341a11){const _0x28fc7c=_0x50bb60;logger[_0x28fc7c(0xc3)](util[_0x28fc7c(0xcb)](_0x341a11,{'showHidden':![],'depth':null}));});});},Migration[a1151_0x3f8415(0xcd)][a1151_0x3f8415(0xb8)]=function(_0x3cc671,_0xc08987,_0x1dd65e){const _0x163d8e=a1151_0x3f8415,_0x5ef774=this;this[_0x163d8e(0xc6)][_0x163d8e(0xc7)](function(){const _0x47ce3e=_0x163d8e;return _0x5ef774[_0x47ce3e(0xca)]['renameColumn'](_0x3cc671,_0xc08987,_0x1dd65e)['then'](function(){const _0x5402cb=_0x47ce3e;logger['info'](_0x5402cb(0xbb),_0xc08987,_0x1dd65e,_0x3cc671);})['catch'](function(_0x356bd4){const _0xfc7d04=_0x47ce3e;logger['info'](util[_0xfc7d04(0xcb)](_0x356bd4,{'showHidden':![],'depth':null}));});});},Migration[a1151_0x3f8415(0xcd)][a1151_0x3f8415(0xba)]=function(_0x52faef){const _0xe45bd3=a1151_0x3f8415;this[_0xe45bd3(0xc6)]['enqueue'](function(){return _0x52faef();});},module[a1151_0x3f8415(0xc2)]={'up':function(_0x174e8d){return new Promise(function(_0x561e5a){const _0x1f3c41=a1151_0x4e88,_0x17e99c=new Migration(_0x174e8d);_0x17e99c[_0x1f3c41(0xba)](_0x561e5a);});},'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 6f62375..f1c3fad 100644 --- a/server/migrations/2.3.96.js +++ b/server/migrations/2.3.96.js @@ -1 +1 @@ -const a1152_0x3ce0=['query\x20%s','sequence','query','../config/logger','stringify','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex','changeColumn','STRING','removeIndex\x20%s\x20%s','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','removeColumn','tail','info','enqueue','then','exports','final','renameColumn','queryInterface','catch','finally','prototype','settings','Removed\x20column\x20%s\x20from\x20%s','dropTable','join','inspect','addIndex\x20%s\x20%s\x20%s'];(function(_0x3f8e42,_0x3a15ab){const _0x3ce0e3=function(_0x5dc437){while(--_0x5dc437){_0x3f8e42['push'](_0x3f8e42['shift']());}};_0x3ce0e3(++_0x3a15ab);}(a1152_0x3ce0,0xbd));const a1152_0x5dc4=function(_0x3f8e42,_0x3a15ab){_0x3f8e42=_0x3f8e42-0x117;let _0x3ce0e3=a1152_0x3ce0[_0x3f8e42];return _0x3ce0e3;};const a1152_0x100bd3=a1152_0x5dc4;'use strict';const util=require('util'),logger=require(a1152_0x100bd3(0x11d))('migration'),Sequence=function(){};Sequence[a1152_0x100bd3(0x133)][a1152_0x100bd3(0x12b)]=function(_0x3f5e54){const _0x38a272=a1152_0x100bd3;this[_0x38a272(0x129)]=this[_0x38a272(0x129)]?this[_0x38a272(0x129)][_0x38a272(0x132)](_0x3f5e54):_0x3f5e54();};const Migration=function(_0x398569){this['queryInterface']=_0x398569,this['sequence']=new Sequence();};Migration[a1152_0x100bd3(0x133)]['changeColumn']=function(_0x1d209d,_0x72223e,_0x4755ee){const _0x17217a=a1152_0x100bd3,_0x278105=this;this[_0x17217a(0x11b)]['enqueue'](function(){const _0x2c8bb1=_0x17217a;return _0x278105['queryInterface'][_0x2c8bb1(0x122)](_0x1d209d,_0x72223e,_0x4755ee)[_0x2c8bb1(0x12c)](function(){const _0x303bd3=_0x2c8bb1;logger[_0x303bd3(0x12a)](_0x303bd3(0x120),_0x72223e,_0x1d209d);})[_0x2c8bb1(0x131)](function(_0x5188f){const _0x2c0c67=_0x2c8bb1;logger['info'](JSON[_0x2c0c67(0x11e)](_0x5188f));});});},Migration[a1152_0x100bd3(0x133)][a1152_0x100bd3(0x11f)]=function(_0x3b66d3,_0x394722,_0x143d1d){const _0x52695e=a1152_0x100bd3,_0x32f649=this;this['sequence'][_0x52695e(0x12b)](function(){const _0x588353=_0x52695e;return _0x32f649[_0x588353(0x130)][_0x588353(0x11f)](_0x3b66d3,_0x394722,_0x143d1d)[_0x588353(0x12c)](function(){const _0x3532c8=_0x588353;logger[_0x3532c8(0x12a)]('Added\x20column\x20%s\x20to\x20%s',_0x394722,_0x3b66d3);})['catch'](function(_0x14837c){const _0xd2c369=_0x588353;logger[_0xd2c369(0x12a)](JSON[_0xd2c369(0x11e)](_0x14837c));});});},Migration[a1152_0x100bd3(0x133)][a1152_0x100bd3(0x136)]=function(_0x42be82){const _0x2c586a=a1152_0x100bd3,_0x4e3c71=this;this[_0x2c586a(0x11b)][_0x2c586a(0x12b)](function(){const _0x44c9f2=_0x2c586a;return _0x4e3c71[_0x44c9f2(0x130)][_0x44c9f2(0x136)](_0x42be82,{'force':!![]})[_0x44c9f2(0x12c)](function(){logger['info']('table\x20dropped\x20%s',_0x42be82);})[_0x44c9f2(0x131)](function(_0x36b573){const _0x18e5b6=_0x44c9f2;logger[_0x18e5b6(0x12a)](JSON['stringify'](_0x36b573));});});},Migration[a1152_0x100bd3(0x133)][a1152_0x100bd3(0x127)]=function(_0x2c1e7c,_0x2e900c,_0x119477){const _0x17f0c1=a1152_0x100bd3,_0x2fad95=this;this[_0x17f0c1(0x11b)]['enqueue'](function(){const _0x494518=_0x17f0c1;return _0x2fad95['queryInterface'][_0x494518(0x127)](_0x2c1e7c,_0x2e900c,{'indexName':_0x119477})[_0x494518(0x12c)](function(){const _0x4a6f25=_0x494518;logger[_0x4a6f25(0x12a)](_0x4a6f25(0x119),_0x2c1e7c,_0x2e900c[_0x4a6f25(0x117)](','),_0x119477);})[_0x494518(0x131)](function(_0x560c1c){const _0x1ec909=_0x494518;logger[_0x1ec909(0x12a)](JSON[_0x1ec909(0x11e)](_0x560c1c));});});},Migration[a1152_0x100bd3(0x133)][a1152_0x100bd3(0x121)]=function(_0x24bcf1,_0x1e10a6){const _0x159319=a1152_0x100bd3,_0x3205cf=this;this[_0x159319(0x11b)][_0x159319(0x12b)](function(){const _0x6a24d2=_0x159319;return _0x3205cf['queryInterface'][_0x6a24d2(0x121)](_0x24bcf1,_0x1e10a6)[_0x6a24d2(0x12c)](function(){const _0x237b6a=_0x6a24d2;logger[_0x237b6a(0x12a)](_0x237b6a(0x124),_0x24bcf1,_0x1e10a6);})['catch'](function(_0x4733c5){const _0x450601=_0x6a24d2;logger['info'](JSON[_0x450601(0x11e)](_0x4733c5));});});},Migration[a1152_0x100bd3(0x133)][a1152_0x100bd3(0x11c)]=function(_0x2d93f4){const _0x738f98=a1152_0x100bd3,_0x257fc2=this;this[_0x738f98(0x11b)][_0x738f98(0x12b)](function(){const _0x38a064=_0x738f98;return _0x257fc2[_0x38a064(0x130)][_0x38a064(0x125)]['query'](_0x2d93f4)[_0x38a064(0x12c)](function(){const _0x5cbc31=_0x38a064;logger[_0x5cbc31(0x12a)](_0x5cbc31(0x11a),_0x2d93f4);})['catch'](function(_0x43e95c){const _0x136f27=_0x38a064;logger[_0x136f27(0x12a)](JSON[_0x136f27(0x11e)](_0x43e95c));});});},Migration[a1152_0x100bd3(0x133)][a1152_0x100bd3(0x128)]=function(_0x3a8fd4,_0x62891f){const _0x2bd16f=a1152_0x100bd3,_0x39a464=this;this[_0x2bd16f(0x11b)]['enqueue'](function(){const _0x39b3b0=_0x2bd16f;return _0x39a464[_0x39b3b0(0x130)][_0x39b3b0(0x128)](_0x3a8fd4,_0x62891f)[_0x39b3b0(0x12c)](function(){const _0x4fe68e=_0x39b3b0;logger[_0x4fe68e(0x12a)](_0x4fe68e(0x135),_0x62891f,_0x3a8fd4);})['catch'](function(_0x312b0d){const _0x5e623a=_0x39b3b0;logger[_0x5e623a(0x12a)](util[_0x5e623a(0x118)](_0x312b0d,{'showHidden':![],'depth':null}));});});},Migration[a1152_0x100bd3(0x133)][a1152_0x100bd3(0x12f)]=function(_0x2475c1,_0x1b53dc,_0x46ef87){const _0x241688=a1152_0x100bd3,_0xd828f3=this;this[_0x241688(0x11b)][_0x241688(0x12b)](function(){const _0x455ac3=_0x241688;return _0xd828f3[_0x455ac3(0x130)][_0x455ac3(0x12f)](_0x2475c1,_0x1b53dc,_0x46ef87)[_0x455ac3(0x12c)](function(){const _0x24f953=_0x455ac3;logger[_0x24f953(0x12a)](_0x24f953(0x126),_0x1b53dc,_0x46ef87,_0x2475c1);})[_0x455ac3(0x131)](function(_0x4cfae9){const _0x53ec3e=_0x455ac3;logger['info'](util[_0x53ec3e(0x118)](_0x4cfae9,{'showHidden':![],'depth':null}));});});},Migration[a1152_0x100bd3(0x133)][a1152_0x100bd3(0x12e)]=function(_0x2082f5){const _0x2f33ae=a1152_0x100bd3;this[_0x2f33ae(0x11b)]['enqueue'](function(){return _0x2082f5();});},module[a1152_0x100bd3(0x12d)]={'up':function(_0x43b4a4,_0x2871a0){return new Promise(function(_0x49ef0a){const _0x4b842c=a1152_0x5dc4,_0x3d3e19=new Migration(_0x43b4a4);_0x3d3e19['addColumn'](_0x4b842c(0x134),'defaultScreenRecordingPath',{'type':_0x2871a0[_0x4b842c(0x123)]}),_0x3d3e19['final'](_0x49ef0a);});},'down':function(){}}; \ No newline at end of file +const a1152_0x328a=['Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','Added\x20column\x20%s\x20to\x20%s','finally','info','removeIndex\x20%s\x20%s','query\x20%s','inspect','removeColumn','then','../config/logger','queryInterface','addColumn','Removed\x20column\x20%s\x20from\x20%s','util','exports','enqueue','catch','settings','addIndex\x20%s\x20%s\x20%s','sequence','final','tail','migration','removeIndex','changeColumn','STRING','prototype','stringify','join','query'];(function(_0x42afd2,_0x55720e){const _0x328a47=function(_0x1d3b5b){while(--_0x1d3b5b){_0x42afd2['push'](_0x42afd2['shift']());}};_0x328a47(++_0x55720e);}(a1152_0x328a,0x125));const a1152_0x1d3b=function(_0x42afd2,_0x55720e){_0x42afd2=_0x42afd2-0x1a4;let _0x328a47=a1152_0x328a[_0x42afd2];return _0x328a47;};const a1152_0x34b215=a1152_0x1d3b;'use strict';const util=require(a1152_0x34b215(0x1b8)),logger=require(a1152_0x34b215(0x1b4))(a1152_0x34b215(0x1c1)),Sequence=function(){};Sequence['prototype'][a1152_0x34b215(0x1ba)]=function(_0x1f7789){const _0xd89ff7=a1152_0x34b215;this[_0xd89ff7(0x1c0)]=this[_0xd89ff7(0x1c0)]?this[_0xd89ff7(0x1c0)][_0xd89ff7(0x1ad)](_0x1f7789):_0x1f7789();};const Migration=function(_0x18ba45){const _0x1e9056=a1152_0x34b215;this['queryInterface']=_0x18ba45,this[_0x1e9056(0x1be)]=new Sequence();};Migration[a1152_0x34b215(0x1a4)]['changeColumn']=function(_0x272335,_0x469053,_0xe012b1){const _0x37662b=a1152_0x34b215,_0x2b0097=this;this[_0x37662b(0x1be)]['enqueue'](function(){const _0x4b44f8=_0x37662b;return _0x2b0097[_0x4b44f8(0x1b5)][_0x4b44f8(0x1c3)](_0x272335,_0x469053,_0xe012b1)[_0x4b44f8(0x1b3)](function(){const _0x9c351=_0x4b44f8;logger[_0x9c351(0x1ae)](_0x9c351(0x1a8),_0x469053,_0x272335);})[_0x4b44f8(0x1bb)](function(_0x26b450){const _0x39977a=_0x4b44f8;logger[_0x39977a(0x1ae)](JSON['stringify'](_0x26b450));});});},Migration[a1152_0x34b215(0x1a4)]['addColumn']=function(_0x180f22,_0x26a275,_0x40bb09){const _0x5cd8f2=a1152_0x34b215,_0x10d897=this;this[_0x5cd8f2(0x1be)][_0x5cd8f2(0x1ba)](function(){const _0x3292d8=_0x5cd8f2;return _0x10d897[_0x3292d8(0x1b5)][_0x3292d8(0x1b6)](_0x180f22,_0x26a275,_0x40bb09)[_0x3292d8(0x1b3)](function(){const _0x257aaf=_0x3292d8;logger[_0x257aaf(0x1ae)](_0x257aaf(0x1ac),_0x26a275,_0x180f22);})[_0x3292d8(0x1bb)](function(_0x395e77){const _0x77c0f0=_0x3292d8;logger[_0x77c0f0(0x1ae)](JSON['stringify'](_0x395e77));});});},Migration[a1152_0x34b215(0x1a4)]['dropTable']=function(_0x4bf2d3){const _0x10a874=a1152_0x34b215,_0x3cba9e=this;this[_0x10a874(0x1be)][_0x10a874(0x1ba)](function(){const _0x3a267e=_0x10a874;return _0x3cba9e[_0x3a267e(0x1b5)]['dropTable'](_0x4bf2d3,{'force':!![]})[_0x3a267e(0x1b3)](function(){logger['info']('table\x20dropped\x20%s',_0x4bf2d3);})['catch'](function(_0x54a981){const _0xa391cc=_0x3a267e;logger['info'](JSON[_0xa391cc(0x1a5)](_0x54a981));});});},Migration['prototype'][a1152_0x34b215(0x1a9)]=function(_0x19156f,_0x4605ca,_0x255a02){const _0x129208=a1152_0x34b215,_0x4d1801=this;this[_0x129208(0x1be)]['enqueue'](function(){const _0x62d930=_0x129208;return _0x4d1801['queryInterface'][_0x62d930(0x1a9)](_0x19156f,_0x4605ca,{'indexName':_0x255a02})[_0x62d930(0x1b3)](function(){const _0x2e67c0=_0x62d930;logger[_0x2e67c0(0x1ae)](_0x2e67c0(0x1bd),_0x19156f,_0x4605ca[_0x2e67c0(0x1a6)](','),_0x255a02);})['catch'](function(_0x5b9828){const _0x2fa720=_0x62d930;logger[_0x2fa720(0x1ae)](JSON[_0x2fa720(0x1a5)](_0x5b9828));});});},Migration['prototype'][a1152_0x34b215(0x1c2)]=function(_0x2bde7c,_0x59cbab){const _0x49505a=a1152_0x34b215,_0x4120d6=this;this['sequence'][_0x49505a(0x1ba)](function(){const _0x3e61c8=_0x49505a;return _0x4120d6[_0x3e61c8(0x1b5)][_0x3e61c8(0x1c2)](_0x2bde7c,_0x59cbab)[_0x3e61c8(0x1b3)](function(){const _0x163d55=_0x3e61c8;logger[_0x163d55(0x1ae)](_0x163d55(0x1af),_0x2bde7c,_0x59cbab);})[_0x3e61c8(0x1bb)](function(_0x2ce265){const _0x237a91=_0x3e61c8;logger[_0x237a91(0x1ae)](JSON[_0x237a91(0x1a5)](_0x2ce265));});});},Migration['prototype'][a1152_0x34b215(0x1a7)]=function(_0x1350be){const _0x592a77=a1152_0x34b215,_0x53e81f=this;this[_0x592a77(0x1be)][_0x592a77(0x1ba)](function(){const _0x388dcc=_0x592a77;return _0x53e81f[_0x388dcc(0x1b5)]['sequelize'][_0x388dcc(0x1a7)](_0x1350be)[_0x388dcc(0x1b3)](function(){const _0x3d8cbf=_0x388dcc;logger[_0x3d8cbf(0x1ae)](_0x3d8cbf(0x1b0),_0x1350be);})[_0x388dcc(0x1bb)](function(_0x2dc49e){const _0x20aabb=_0x388dcc;logger[_0x20aabb(0x1ae)](JSON[_0x20aabb(0x1a5)](_0x2dc49e));});});},Migration['prototype'][a1152_0x34b215(0x1b2)]=function(_0x30c2a4,_0x2dc042){const _0x5c542c=a1152_0x34b215,_0x1c1896=this;this[_0x5c542c(0x1be)][_0x5c542c(0x1ba)](function(){const _0x844d3f=_0x5c542c;return _0x1c1896[_0x844d3f(0x1b5)]['removeColumn'](_0x30c2a4,_0x2dc042)[_0x844d3f(0x1b3)](function(){const _0x46435f=_0x844d3f;logger[_0x46435f(0x1ae)](_0x46435f(0x1b7),_0x2dc042,_0x30c2a4);})['catch'](function(_0xbda21e){const _0x519d50=_0x844d3f;logger['info'](util[_0x519d50(0x1b1)](_0xbda21e,{'showHidden':![],'depth':null}));});});},Migration[a1152_0x34b215(0x1a4)]['renameColumn']=function(_0x512920,_0x27fb0b,_0x127d36){const _0x4155da=a1152_0x34b215,_0x5a0fb9=this;this[_0x4155da(0x1be)][_0x4155da(0x1ba)](function(){const _0x5c6917=_0x4155da;return _0x5a0fb9[_0x5c6917(0x1b5)][_0x5c6917(0x1ab)](_0x512920,_0x27fb0b,_0x127d36)['then'](function(){const _0x563ff5=_0x5c6917;logger[_0x563ff5(0x1ae)](_0x563ff5(0x1aa),_0x27fb0b,_0x127d36,_0x512920);})[_0x5c6917(0x1bb)](function(_0x303fda){const _0x38881f=_0x5c6917;logger[_0x38881f(0x1ae)](util[_0x38881f(0x1b1)](_0x303fda,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x31fd2e){const _0x432897=a1152_0x34b215;this['sequence'][_0x432897(0x1ba)](function(){return _0x31fd2e();});},module[a1152_0x34b215(0x1b9)]={'up':function(_0x43f1f5,_0x2a7ee4){return new Promise(function(_0x3f9b61){const _0x53d8ae=a1152_0x1d3b,_0x54ab07=new Migration(_0x43f1f5);_0x54ab07['addColumn'](_0x53d8ae(0x1bc),'defaultScreenRecordingPath',{'type':_0x2a7ee4[_0x53d8ae(0x1c4)]}),_0x54ab07[_0x53d8ae(0x1bf)](_0x3f9b61);});},'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 d5288d1..49d1f79 100644 --- a/server/migrations/2.3.97.js +++ b/server/migrations/2.3.97.js @@ -1 +1 @@ -const a1153_0x31f1=['changeColumn','inspect','removeIndex','util','then','migration','prototype','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20createdAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20version','catch','queryInterface','removeIndex\x20%s\x20%s','removeColumn','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20updatedAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20createdAt','query','enqueue','addIndex\x20%s\x20%s\x20%s','dropTable','dialPredictiveIntervalMinThreshold','Added\x20column\x20%s\x20to\x20%s','stringify','tail','voice_queues','exports','UNSIGNED','sequence','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','ALTER\x20TABLE\x20migrations\x20MODIFY\x20COLUMN\x20version\x20varchar(255)\x20NOT\x20NULL\x20UNIQUE','addIndex','finally','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','final','info','renameColumn'];(function(_0x26f458,_0x2edd97){const _0x31f126=function(_0x112d15){while(--_0x112d15){_0x26f458['push'](_0x26f458['shift']());}};_0x31f126(++_0x2edd97);}(a1153_0x31f1,0x69));const a1153_0x112d=function(_0x26f458,_0x2edd97){_0x26f458=_0x26f458-0x16d;let _0x31f126=a1153_0x31f1[_0x26f458];return _0x31f126;};const a1153_0x52329d=a1153_0x112d;'use strict';const util=require(a1153_0x52329d(0x170)),logger=require('../config/logger')(a1153_0x52329d(0x172)),Sequence=function(){};Sequence['prototype'][a1153_0x52329d(0x17b)]=function(_0x993a32){const _0x5e78e9=a1153_0x52329d;this[_0x5e78e9(0x181)]=this['tail']?this['tail'][_0x5e78e9(0x18a)](_0x993a32):_0x993a32();};const Migration=function(_0x48051d){const _0xb302e=a1153_0x52329d;this[_0xb302e(0x176)]=_0x48051d,this[_0xb302e(0x185)]=new Sequence();};Migration[a1153_0x52329d(0x173)][a1153_0x52329d(0x16d)]=function(_0x4fe959,_0x48b0f3,_0x44162b){const _0x11f286=a1153_0x52329d,_0x24621b=this;this[_0x11f286(0x185)][_0x11f286(0x17b)](function(){const _0xa64695=_0x11f286;return _0x24621b[_0xa64695(0x176)][_0xa64695(0x16d)](_0x4fe959,_0x48b0f3,_0x44162b)[_0xa64695(0x171)](function(){const _0x1cf3df=_0xa64695;logger[_0x1cf3df(0x18e)](_0x1cf3df(0x18c),_0x48b0f3,_0x4fe959);})[_0xa64695(0x175)](function(_0x169a71){const _0x5f3b2c=_0xa64695;logger[_0x5f3b2c(0x18e)](JSON[_0x5f3b2c(0x180)](_0x169a71));});});},Migration[a1153_0x52329d(0x173)][a1153_0x52329d(0x186)]=function(_0x1bfb0d,_0x4d593a,_0x2065af){const _0x3cd68f=a1153_0x52329d,_0x5e1c7b=this;this[_0x3cd68f(0x185)][_0x3cd68f(0x17b)](function(){const _0x5ba157=_0x3cd68f;return _0x5e1c7b[_0x5ba157(0x176)][_0x5ba157(0x186)](_0x1bfb0d,_0x4d593a,_0x2065af)[_0x5ba157(0x171)](function(){const _0x297575=_0x5ba157;logger[_0x297575(0x18e)](_0x297575(0x17f),_0x4d593a,_0x1bfb0d);})['catch'](function(_0x40cccb){const _0x6dc13a=_0x5ba157;logger[_0x6dc13a(0x18e)](JSON[_0x6dc13a(0x180)](_0x40cccb));});});},Migration[a1153_0x52329d(0x173)][a1153_0x52329d(0x17d)]=function(_0x480a7b){const _0x1583a2=a1153_0x52329d,_0x3dfbbb=this;this[_0x1583a2(0x185)][_0x1583a2(0x17b)](function(){const _0x52bd87=_0x1583a2;return _0x3dfbbb[_0x52bd87(0x176)]['dropTable'](_0x480a7b,{'force':!![]})[_0x52bd87(0x171)](function(){const _0x143593=_0x52bd87;logger[_0x143593(0x18e)]('table\x20dropped\x20%s',_0x480a7b);})[_0x52bd87(0x175)](function(_0x59ccf9){const _0x27efbc=_0x52bd87;logger[_0x27efbc(0x18e)](JSON[_0x27efbc(0x180)](_0x59ccf9));});});},Migration[a1153_0x52329d(0x173)]['addIndex']=function(_0x8df5e0,_0x48ef10,_0x945380){const _0x43b458=a1153_0x52329d,_0x4e61e7=this;this['sequence'][_0x43b458(0x17b)](function(){const _0x19bbd6=_0x43b458;return _0x4e61e7[_0x19bbd6(0x176)][_0x19bbd6(0x189)](_0x8df5e0,_0x48ef10,{'indexName':_0x945380})[_0x19bbd6(0x171)](function(){const _0x620c0c=_0x19bbd6;logger[_0x620c0c(0x18e)](_0x620c0c(0x17c),_0x8df5e0,_0x48ef10['join'](','),_0x945380);})['catch'](function(_0x2c1856){const _0x4071a7=_0x19bbd6;logger[_0x4071a7(0x18e)](JSON[_0x4071a7(0x180)](_0x2c1856));});});},Migration[a1153_0x52329d(0x173)]['removeIndex']=function(_0x23395d,_0x1e1234){const _0x585704=a1153_0x52329d,_0x24d1f6=this;this[_0x585704(0x185)][_0x585704(0x17b)](function(){const _0x751868=_0x585704;return _0x24d1f6[_0x751868(0x176)][_0x751868(0x16f)](_0x23395d,_0x1e1234)[_0x751868(0x171)](function(){const _0x47d770=_0x751868;logger['info'](_0x47d770(0x177),_0x23395d,_0x1e1234);})[_0x751868(0x175)](function(_0x2882a0){const _0x7d71ac=_0x751868;logger[_0x7d71ac(0x18e)](JSON[_0x7d71ac(0x180)](_0x2882a0));});});},Migration[a1153_0x52329d(0x173)]['query']=function(_0x51d12d){const _0x2f209c=a1153_0x52329d,_0x53b47f=this;this[_0x2f209c(0x185)]['enqueue'](function(){const _0x366dfd=_0x2f209c;return _0x53b47f['queryInterface'][_0x366dfd(0x18b)][_0x366dfd(0x17a)](_0x51d12d)[_0x366dfd(0x171)](function(){const _0x57733a=_0x366dfd;logger[_0x57733a(0x18e)]('query\x20%s',_0x51d12d);})[_0x366dfd(0x175)](function(_0x3ab868){const _0x524bbf=_0x366dfd;logger[_0x524bbf(0x18e)](JSON['stringify'](_0x3ab868));});});},Migration[a1153_0x52329d(0x173)][a1153_0x52329d(0x178)]=function(_0x180ba7,_0x181724){const _0x15675f=a1153_0x52329d,_0x592fe1=this;this[_0x15675f(0x185)][_0x15675f(0x17b)](function(){const _0x479b9a=_0x15675f;return _0x592fe1[_0x479b9a(0x176)]['removeColumn'](_0x180ba7,_0x181724)[_0x479b9a(0x171)](function(){const _0x42ece0=_0x479b9a;logger[_0x42ece0(0x18e)]('Removed\x20column\x20%s\x20from\x20%s',_0x181724,_0x180ba7);})[_0x479b9a(0x175)](function(_0x21f9f4){const _0x281254=_0x479b9a;logger[_0x281254(0x18e)](util[_0x281254(0x16e)](_0x21f9f4,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1153_0x52329d(0x18f)]=function(_0x1cb93e,_0x194f58,_0xa699e7){const _0x3db5b3=a1153_0x52329d,_0x4fd987=this;this[_0x3db5b3(0x185)][_0x3db5b3(0x17b)](function(){const _0x5a36f8=_0x3db5b3;return _0x4fd987[_0x5a36f8(0x176)]['renameColumn'](_0x1cb93e,_0x194f58,_0xa699e7)[_0x5a36f8(0x171)](function(){const _0x4c7b80=_0x5a36f8;logger[_0x4c7b80(0x18e)](_0x4c7b80(0x187),_0x194f58,_0xa699e7,_0x1cb93e);})[_0x5a36f8(0x175)](function(_0x1a623f){const _0x42ac13=_0x5a36f8;logger[_0x42ac13(0x18e)](util['inspect'](_0x1a623f,{'showHidden':![],'depth':null}));});});},Migration[a1153_0x52329d(0x173)]['final']=function(_0xf35aff){const _0x2529b3=a1153_0x52329d;this['sequence'][_0x2529b3(0x17b)](function(){return _0xf35aff();});},module[a1153_0x52329d(0x183)]={'up':function(_0x5c5ff8,_0x3855ef){return new Promise(function(_0x44f722){const _0x298d27=a1153_0x112d,_0x2b9a58=new Migration(_0x5c5ff8);_0x2b9a58['addColumn']('voice_queues','dialPredictiveIntervalMaxThreshold',{'type':_0x3855ef['INTEGER'](0x3)[_0x298d27(0x184)],'defaultValue':0x14}),_0x2b9a58[_0x298d27(0x186)](_0x298d27(0x182),_0x298d27(0x17e),{'type':_0x3855ef['INTEGER'](0x3)[_0x298d27(0x184)],'defaultValue':0xa}),_0x2b9a58[_0x298d27(0x17a)]('ALTER\x20TABLE\x20migrations\x20DROP\x20PRIMARY\x20KEY'),_0x2b9a58[_0x298d27(0x17a)](_0x298d27(0x188)),_0x2b9a58[_0x298d27(0x17a)]('ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20id\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY\x20FIRST'),_0x2b9a58[_0x298d27(0x17a)](_0x298d27(0x174)),_0x2b9a58[_0x298d27(0x17a)](_0x298d27(0x179)),_0x2b9a58[_0x298d27(0x18d)](_0x44f722);});},'down':function(){}}; \ No newline at end of file +const a1153_0x1d6d=['final','migration','inspect','Added\x20column\x20%s\x20to\x20%s','util','removeIndex\x20%s\x20%s','tail','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20id\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY\x20FIRST','then','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','enqueue','query','query\x20%s','stringify','queryInterface','sequence','voice_queues','join','removeIndex','addIndex','../config/logger','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','ALTER\x20TABLE\x20migrations\x20MODIFY\x20COLUMN\x20version\x20varchar(255)\x20NOT\x20NULL\x20UNIQUE','finally','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20updatedAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20createdAt','prototype','info','changeColumn','ALTER\x20TABLE\x20migrations\x20DROP\x20PRIMARY\x20KEY','INTEGER','dropTable','UNSIGNED','renameColumn','catch'];(function(_0x3f07c5,_0x107db0){const _0x1d6dd3=function(_0x4f4398){while(--_0x4f4398){_0x3f07c5['push'](_0x3f07c5['shift']());}};_0x1d6dd3(++_0x107db0);}(a1153_0x1d6d,0xdd));const a1153_0x4f43=function(_0x3f07c5,_0x107db0){_0x3f07c5=_0x3f07c5-0x16a;let _0x1d6dd3=a1153_0x1d6d[_0x3f07c5];return _0x1d6dd3;};const a1153_0x3e07b4=a1153_0x4f43;'use strict';const util=require(a1153_0x3e07b4(0x16f)),logger=require(a1153_0x3e07b4(0x180))(a1153_0x3e07b4(0x16c)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x157393){const _0x4b0695=a1153_0x3e07b4;this['tail']=this['tail']?this[_0x4b0695(0x171)][_0x4b0695(0x185)](_0x157393):_0x157393();};const Migration=function(_0x4b69ef){const _0x1c9e4d=a1153_0x3e07b4;this[_0x1c9e4d(0x17a)]=_0x4b69ef,this[_0x1c9e4d(0x17b)]=new Sequence();};Migration[a1153_0x3e07b4(0x187)]['changeColumn']=function(_0x44759d,_0x6ade32,_0x9a09a5){const _0x4ee515=a1153_0x3e07b4,_0x7eab27=this;this[_0x4ee515(0x17b)][_0x4ee515(0x176)](function(){const _0x43ffbe=_0x4ee515;return _0x7eab27['queryInterface'][_0x43ffbe(0x189)](_0x44759d,_0x6ade32,_0x9a09a5)[_0x43ffbe(0x173)](function(){const _0x430528=_0x43ffbe;logger['info'](_0x430528(0x174),_0x6ade32,_0x44759d);})[_0x43ffbe(0x16a)](function(_0x36ee0b){const _0x175d89=_0x43ffbe;logger[_0x175d89(0x188)](JSON[_0x175d89(0x179)](_0x36ee0b));});});},Migration['prototype'][a1153_0x3e07b4(0x181)]=function(_0x3188a9,_0x3f6211,_0x16313f){const _0x4971a1=this;this['sequence']['enqueue'](function(){const _0x4f9cfa=a1153_0x4f43;return _0x4971a1['queryInterface']['addColumn'](_0x3188a9,_0x3f6211,_0x16313f)[_0x4f9cfa(0x173)](function(){const _0x105031=_0x4f9cfa;logger[_0x105031(0x188)](_0x105031(0x16e),_0x3f6211,_0x3188a9);})['catch'](function(_0x145efb){const _0x399072=_0x4f9cfa;logger[_0x399072(0x188)](JSON[_0x399072(0x179)](_0x145efb));});});},Migration[a1153_0x3e07b4(0x187)][a1153_0x3e07b4(0x18c)]=function(_0x183cd9){const _0x479d7d=a1153_0x3e07b4,_0x356759=this;this[_0x479d7d(0x17b)]['enqueue'](function(){const _0x49d1dd=_0x479d7d;return _0x356759[_0x49d1dd(0x17a)]['dropTable'](_0x183cd9,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x183cd9);})['catch'](function(_0x4444a1){const _0x1d4a3f=_0x49d1dd;logger[_0x1d4a3f(0x188)](JSON['stringify'](_0x4444a1));});});},Migration[a1153_0x3e07b4(0x187)][a1153_0x3e07b4(0x17f)]=function(_0x2972d1,_0x202fdd,_0x2cb76e){const _0x295cf9=a1153_0x3e07b4,_0x732373=this;this[_0x295cf9(0x17b)][_0x295cf9(0x176)](function(){const _0x4be9fd=_0x295cf9;return _0x732373[_0x4be9fd(0x17a)]['addIndex'](_0x2972d1,_0x202fdd,{'indexName':_0x2cb76e})[_0x4be9fd(0x173)](function(){const _0x5915f6=_0x4be9fd;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x2972d1,_0x202fdd[_0x5915f6(0x17d)](','),_0x2cb76e);})[_0x4be9fd(0x16a)](function(_0x4ba02d){const _0x41b7b1=_0x4be9fd;logger[_0x41b7b1(0x188)](JSON[_0x41b7b1(0x179)](_0x4ba02d));});});},Migration[a1153_0x3e07b4(0x187)][a1153_0x3e07b4(0x17e)]=function(_0x30e493,_0x1ce664){const _0x3aef5e=a1153_0x3e07b4,_0x7c41a8=this;this[_0x3aef5e(0x17b)][_0x3aef5e(0x176)](function(){const _0x538005=_0x3aef5e;return _0x7c41a8[_0x538005(0x17a)][_0x538005(0x17e)](_0x30e493,_0x1ce664)[_0x538005(0x173)](function(){const _0x4144f9=_0x538005;logger[_0x4144f9(0x188)](_0x4144f9(0x170),_0x30e493,_0x1ce664);})['catch'](function(_0x495040){const _0x3d19f5=_0x538005;logger[_0x3d19f5(0x188)](JSON['stringify'](_0x495040));});});},Migration[a1153_0x3e07b4(0x187)][a1153_0x3e07b4(0x177)]=function(_0x39e6e5){const _0x23043f=a1153_0x3e07b4,_0x298f9f=this;this[_0x23043f(0x17b)][_0x23043f(0x176)](function(){const _0x1c7f56=_0x23043f;return _0x298f9f[_0x1c7f56(0x17a)]['sequelize']['query'](_0x39e6e5)['then'](function(){const _0x4b7bec=_0x1c7f56;logger[_0x4b7bec(0x188)](_0x4b7bec(0x178),_0x39e6e5);})[_0x1c7f56(0x16a)](function(_0x25b074){const _0x3e0deb=_0x1c7f56;logger[_0x3e0deb(0x188)](JSON[_0x3e0deb(0x179)](_0x25b074));});});},Migration[a1153_0x3e07b4(0x187)][a1153_0x3e07b4(0x183)]=function(_0x2a5fd2,_0x3931ee){const _0xee5d40=a1153_0x3e07b4,_0x1e1d62=this;this[_0xee5d40(0x17b)][_0xee5d40(0x176)](function(){const _0x595649=_0xee5d40;return _0x1e1d62['queryInterface']['removeColumn'](_0x2a5fd2,_0x3931ee)[_0x595649(0x173)](function(){const _0x4894ce=_0x595649;logger[_0x4894ce(0x188)]('Removed\x20column\x20%s\x20from\x20%s',_0x3931ee,_0x2a5fd2);})[_0x595649(0x16a)](function(_0x263d91){const _0x481533=_0x595649;logger[_0x481533(0x188)](util[_0x481533(0x16d)](_0x263d91,{'showHidden':![],'depth':null}));});});},Migration[a1153_0x3e07b4(0x187)][a1153_0x3e07b4(0x18e)]=function(_0x1db29b,_0x1dcc8d,_0x590927){const _0x2b4eb9=a1153_0x3e07b4,_0x4ed76a=this;this[_0x2b4eb9(0x17b)]['enqueue'](function(){const _0x25eed0=_0x2b4eb9;return _0x4ed76a[_0x25eed0(0x17a)]['renameColumn'](_0x1db29b,_0x1dcc8d,_0x590927)[_0x25eed0(0x173)](function(){const _0x2cd06b=_0x25eed0;logger['info'](_0x2cd06b(0x182),_0x1dcc8d,_0x590927,_0x1db29b);})['catch'](function(_0x5c0b80){logger['info'](util['inspect'](_0x5c0b80,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1153_0x3e07b4(0x16b)]=function(_0x23b568){const _0x48cff0=a1153_0x3e07b4;this[_0x48cff0(0x17b)][_0x48cff0(0x176)](function(){return _0x23b568();});},module[a1153_0x3e07b4(0x175)]={'up':function(_0x11e65b,_0x4fbd47){return new Promise(function(_0x3f3610){const _0x48c951=a1153_0x4f43,_0x2e219b=new Migration(_0x11e65b);_0x2e219b[_0x48c951(0x181)]('voice_queues','dialPredictiveIntervalMaxThreshold',{'type':_0x4fbd47[_0x48c951(0x18b)](0x3)['UNSIGNED'],'defaultValue':0x14}),_0x2e219b['addColumn'](_0x48c951(0x17c),'dialPredictiveIntervalMinThreshold',{'type':_0x4fbd47['INTEGER'](0x3)[_0x48c951(0x18d)],'defaultValue':0xa}),_0x2e219b[_0x48c951(0x177)](_0x48c951(0x18a)),_0x2e219b[_0x48c951(0x177)](_0x48c951(0x184)),_0x2e219b['query'](_0x48c951(0x172)),_0x2e219b[_0x48c951(0x177)]('ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20createdAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20version'),_0x2e219b[_0x48c951(0x177)](_0x48c951(0x186)),_0x2e219b[_0x48c951(0x16b)](_0x3f3610);});},'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 7eb23c7..afb55d0 100644 --- a/server/migrations/2.3.98.js +++ b/server/migrations/2.3.98.js @@ -1 +1 @@ -const a1154_0x4857=['inspect','final','sequelize','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','table\x20dropped\x20%s','queryInterface','migration','changeColumn','info','then','query\x20%s','prototype','renameColumn','Removed\x20column\x20%s\x20from\x20%s','enqueue','removeIndex','util','addIndex\x20%s\x20%s\x20%s','sequence','catch','addColumn','tail','stringify'];(function(_0x37abf2,_0x38ded){const _0x4857b1=function(_0x4a69d4){while(--_0x4a69d4){_0x37abf2['push'](_0x37abf2['shift']());}};_0x4857b1(++_0x38ded);}(a1154_0x4857,0xa9));const a1154_0x4a69=function(_0x37abf2,_0x38ded){_0x37abf2=_0x37abf2-0x171;let _0x4857b1=a1154_0x4857[_0x37abf2];return _0x4857b1;};const a1154_0x1ee0f8=a1154_0x4a69;'use strict';const util=require(a1154_0x1ee0f8(0x189)),logger=require('../config/logger')(a1154_0x1ee0f8(0x17f)),Sequence=function(){};Sequence[a1154_0x1ee0f8(0x184)]['enqueue']=function(_0x1466fa){const _0x35825c=a1154_0x1ee0f8;this[_0x35825c(0x175)]=this[_0x35825c(0x175)]?this['tail']['finally'](_0x1466fa):_0x1466fa();};const Migration=function(_0x459951){const _0x864b9=a1154_0x1ee0f8;this[_0x864b9(0x17e)]=_0x459951,this[_0x864b9(0x172)]=new Sequence();};Migration[a1154_0x1ee0f8(0x184)][a1154_0x1ee0f8(0x180)]=function(_0x5332e5,_0x504909,_0x126955){const _0x528803=a1154_0x1ee0f8,_0xdb8c1d=this;this[_0x528803(0x172)][_0x528803(0x187)](function(){const _0x23d19a=_0x528803;return _0xdb8c1d[_0x23d19a(0x17e)][_0x23d19a(0x180)](_0x5332e5,_0x504909,_0x126955)[_0x23d19a(0x182)](function(){const _0xf6d7d7=_0x23d19a;logger[_0xf6d7d7(0x181)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x504909,_0x5332e5);})[_0x23d19a(0x173)](function(_0x2a652a){const _0x1e873e=_0x23d19a;logger[_0x1e873e(0x181)](JSON[_0x1e873e(0x176)](_0x2a652a));});});},Migration[a1154_0x1ee0f8(0x184)][a1154_0x1ee0f8(0x174)]=function(_0x540dac,_0x36f140,_0x3654fd){const _0x2e4ca2=a1154_0x1ee0f8,_0x30e7e6=this;this[_0x2e4ca2(0x172)][_0x2e4ca2(0x187)](function(){const _0x411939=_0x2e4ca2;return _0x30e7e6[_0x411939(0x17e)]['addColumn'](_0x540dac,_0x36f140,_0x3654fd)[_0x411939(0x182)](function(){const _0x2d40d3=_0x411939;logger[_0x2d40d3(0x181)]('Added\x20column\x20%s\x20to\x20%s',_0x36f140,_0x540dac);})['catch'](function(_0x12c744){const _0x4007f8=_0x411939;logger['info'](JSON[_0x4007f8(0x176)](_0x12c744));});});},Migration[a1154_0x1ee0f8(0x184)][a1154_0x1ee0f8(0x17a)]=function(_0x23eb27){const _0x1ed407=a1154_0x1ee0f8,_0x4a34f3=this;this[_0x1ed407(0x172)][_0x1ed407(0x187)](function(){return _0x4a34f3['queryInterface']['dropTable'](_0x23eb27,{'force':!![]})['then'](function(){const _0x39656e=a1154_0x4a69;logger[_0x39656e(0x181)](_0x39656e(0x17d),_0x23eb27);})['catch'](function(_0x482875){const _0x3f86d5=a1154_0x4a69;logger['info'](JSON[_0x3f86d5(0x176)](_0x482875));});});},Migration[a1154_0x1ee0f8(0x184)]['addIndex']=function(_0x21348f,_0x12d200,_0xf18ca6){const _0x25a78d=a1154_0x1ee0f8,_0xf524c7=this;this[_0x25a78d(0x172)][_0x25a78d(0x187)](function(){return _0xf524c7['queryInterface']['addIndex'](_0x21348f,_0x12d200,{'indexName':_0xf18ca6})['then'](function(){const _0xa4aac7=a1154_0x4a69;logger[_0xa4aac7(0x181)](_0xa4aac7(0x171),_0x21348f,_0x12d200['join'](','),_0xf18ca6);})['catch'](function(_0x96104c){const _0x358934=a1154_0x4a69;logger['info'](JSON[_0x358934(0x176)](_0x96104c));});});},Migration[a1154_0x1ee0f8(0x184)][a1154_0x1ee0f8(0x188)]=function(_0x508862,_0x306746){const _0x360613=a1154_0x1ee0f8,_0x5b9441=this;this['sequence'][_0x360613(0x187)](function(){const _0x1fdc3b=_0x360613;return _0x5b9441['queryInterface']['removeIndex'](_0x508862,_0x306746)[_0x1fdc3b(0x182)](function(){const _0x44292a=_0x1fdc3b;logger[_0x44292a(0x181)]('removeIndex\x20%s\x20%s',_0x508862,_0x306746);})[_0x1fdc3b(0x173)](function(_0x37ceec){const _0xed0606=_0x1fdc3b;logger[_0xed0606(0x181)](JSON[_0xed0606(0x176)](_0x37ceec));});});},Migration[a1154_0x1ee0f8(0x184)]['query']=function(_0x7e6278){const _0x49038f=a1154_0x1ee0f8,_0x37890e=this;this['sequence'][_0x49038f(0x187)](function(){const _0x49fe30=_0x49038f;return _0x37890e[_0x49fe30(0x17e)][_0x49fe30(0x179)]['query'](_0x7e6278)[_0x49fe30(0x182)](function(){const _0x2ea3e1=_0x49fe30;logger[_0x2ea3e1(0x181)](_0x2ea3e1(0x183),_0x7e6278);})[_0x49fe30(0x173)](function(_0x78e15f){const _0x4f41dd=_0x49fe30;logger[_0x4f41dd(0x181)](JSON[_0x4f41dd(0x176)](_0x78e15f));});});},Migration[a1154_0x1ee0f8(0x184)][a1154_0x1ee0f8(0x17c)]=function(_0x891987,_0x5bf3df){const _0x1e92e8=a1154_0x1ee0f8,_0x16aa63=this;this['sequence'][_0x1e92e8(0x187)](function(){const _0x5e9be1=_0x1e92e8;return _0x16aa63[_0x5e9be1(0x17e)][_0x5e9be1(0x17c)](_0x891987,_0x5bf3df)[_0x5e9be1(0x182)](function(){const _0x14be35=_0x5e9be1;logger[_0x14be35(0x181)](_0x14be35(0x186),_0x5bf3df,_0x891987);})[_0x5e9be1(0x173)](function(_0x47ed83){logger['info'](util['inspect'](_0x47ed83,{'showHidden':![],'depth':null}));});});},Migration[a1154_0x1ee0f8(0x184)][a1154_0x1ee0f8(0x185)]=function(_0x517e71,_0x501a52,_0x2cdd9a){const _0x58e625=a1154_0x1ee0f8,_0x4cfe10=this;this[_0x58e625(0x172)][_0x58e625(0x187)](function(){const _0x2f363a=_0x58e625;return _0x4cfe10['queryInterface'][_0x2f363a(0x185)](_0x517e71,_0x501a52,_0x2cdd9a)[_0x2f363a(0x182)](function(){const _0x221735=_0x2f363a;logger['info'](_0x221735(0x17b),_0x501a52,_0x2cdd9a,_0x517e71);})[_0x2f363a(0x173)](function(_0x37a8ec){const _0x111f9a=_0x2f363a;logger[_0x111f9a(0x181)](util[_0x111f9a(0x177)](_0x37a8ec,{'showHidden':![],'depth':null}));});});},Migration[a1154_0x1ee0f8(0x184)][a1154_0x1ee0f8(0x178)]=function(_0x38963e){const _0x115fe4=a1154_0x1ee0f8;this[_0x115fe4(0x172)][_0x115fe4(0x187)](function(){return _0x38963e();});},module['exports']={'up':function(_0x1c20d7){return new Promise(function(_0x437403){const _0x4a11b8=new Migration(_0x1c20d7);_0x4a11b8['final'](_0x437403);});},'down':function(){}}; \ No newline at end of file +const a1154_0x3d0a=['../config/logger','info','removeColumn','finally','inspect','removeIndex','prototype','addIndex','dropTable','queryInterface','then','sequence','final','addIndex\x20%s\x20%s\x20%s','changeColumn','stringify','Removed\x20column\x20%s\x20from\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','tail','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','join','migration','renameColumn','catch','Added\x20column\x20%s\x20to\x20%s','util','enqueue','query\x20%s'];(function(_0x7b22d9,_0x156ec1){const _0x3d0a8d=function(_0x245862){while(--_0x245862){_0x7b22d9['push'](_0x7b22d9['shift']());}};_0x3d0a8d(++_0x156ec1);}(a1154_0x3d0a,0xf9));const a1154_0x2458=function(_0x7b22d9,_0x156ec1){_0x7b22d9=_0x7b22d9-0x18b;let _0x3d0a8d=a1154_0x3d0a[_0x7b22d9];return _0x3d0a8d;};const a1154_0x1d31a0=a1154_0x2458;'use strict';const util=require(a1154_0x1d31a0(0x1a6)),logger=require(a1154_0x1d31a0(0x1a9))(a1154_0x1d31a0(0x1a2)),Sequence=function(){};Sequence[a1154_0x1d31a0(0x190)][a1154_0x1d31a0(0x1a7)]=function(_0x302759){const _0x326f06=a1154_0x1d31a0;this[_0x326f06(0x19d)]=this[_0x326f06(0x19d)]?this[_0x326f06(0x19d)][_0x326f06(0x18d)](_0x302759):_0x302759();};const Migration=function(_0x2015fa){const _0x1370bf=a1154_0x1d31a0;this[_0x1370bf(0x193)]=_0x2015fa,this[_0x1370bf(0x195)]=new Sequence();};Migration[a1154_0x1d31a0(0x190)][a1154_0x1d31a0(0x198)]=function(_0x41a0a7,_0x1cd555,_0x2edceb){const _0x4c2767=a1154_0x1d31a0,_0x367f83=this;this['sequence'][_0x4c2767(0x1a7)](function(){const _0x2d017a=_0x4c2767;return _0x367f83[_0x2d017a(0x193)][_0x2d017a(0x198)](_0x41a0a7,_0x1cd555,_0x2edceb)[_0x2d017a(0x194)](function(){const _0x3cd847=_0x2d017a;logger[_0x3cd847(0x18b)](_0x3cd847(0x19b),_0x1cd555,_0x41a0a7);})[_0x2d017a(0x1a4)](function(_0x38ea90){const _0x20a0c1=_0x2d017a;logger[_0x20a0c1(0x18b)](JSON['stringify'](_0x38ea90));});});},Migration[a1154_0x1d31a0(0x190)]['addColumn']=function(_0x41fc65,_0x23f1ef,_0x3c7313){const _0x3a7e8a=a1154_0x1d31a0,_0x14ca9b=this;this[_0x3a7e8a(0x195)][_0x3a7e8a(0x1a7)](function(){const _0x2b7435=_0x3a7e8a;return _0x14ca9b[_0x2b7435(0x193)]['addColumn'](_0x41fc65,_0x23f1ef,_0x3c7313)[_0x2b7435(0x194)](function(){const _0x9e4376=_0x2b7435;logger[_0x9e4376(0x18b)](_0x9e4376(0x1a5),_0x23f1ef,_0x41fc65);})[_0x2b7435(0x1a4)](function(_0x13d024){const _0x153c55=_0x2b7435;logger[_0x153c55(0x18b)](JSON[_0x153c55(0x199)](_0x13d024));});});},Migration[a1154_0x1d31a0(0x190)][a1154_0x1d31a0(0x192)]=function(_0xfe437f){const _0x178ef3=a1154_0x1d31a0,_0x1d69b0=this;this[_0x178ef3(0x195)][_0x178ef3(0x1a7)](function(){const _0x297bb6=_0x178ef3;return _0x1d69b0[_0x297bb6(0x193)][_0x297bb6(0x192)](_0xfe437f,{'force':!![]})[_0x297bb6(0x194)](function(){const _0x352cd5=_0x297bb6;logger[_0x352cd5(0x18b)](_0x352cd5(0x19e),_0xfe437f);})['catch'](function(_0x24c954){const _0x32b367=_0x297bb6;logger[_0x32b367(0x18b)](JSON[_0x32b367(0x199)](_0x24c954));});});},Migration[a1154_0x1d31a0(0x190)][a1154_0x1d31a0(0x191)]=function(_0x520f7e,_0x1a0623,_0x4f3292){const _0x222b94=a1154_0x1d31a0,_0x545a80=this;this[_0x222b94(0x195)][_0x222b94(0x1a7)](function(){const _0x5add34=_0x222b94;return _0x545a80['queryInterface'][_0x5add34(0x191)](_0x520f7e,_0x1a0623,{'indexName':_0x4f3292})[_0x5add34(0x194)](function(){const _0x6e16f7=_0x5add34;logger[_0x6e16f7(0x18b)](_0x6e16f7(0x197),_0x520f7e,_0x1a0623[_0x6e16f7(0x1a1)](','),_0x4f3292);})[_0x5add34(0x1a4)](function(_0x4cf7ee){const _0x12f14a=_0x5add34;logger[_0x12f14a(0x18b)](JSON[_0x12f14a(0x199)](_0x4cf7ee));});});},Migration['prototype']['removeIndex']=function(_0x364e61,_0x2ec533){const _0x53d897=a1154_0x1d31a0,_0x4bae61=this;this['sequence'][_0x53d897(0x1a7)](function(){const _0x506aaa=_0x53d897;return _0x4bae61[_0x506aaa(0x193)][_0x506aaa(0x18f)](_0x364e61,_0x2ec533)[_0x506aaa(0x194)](function(){const _0x103f8b=_0x506aaa;logger[_0x103f8b(0x18b)]('removeIndex\x20%s\x20%s',_0x364e61,_0x2ec533);})[_0x506aaa(0x1a4)](function(_0x1a2d6d){const _0x3f02fc=_0x506aaa;logger[_0x3f02fc(0x18b)](JSON['stringify'](_0x1a2d6d));});});},Migration[a1154_0x1d31a0(0x190)][a1154_0x1d31a0(0x1a0)]=function(_0x37a608){const _0x53d8b7=a1154_0x1d31a0,_0x451da0=this;this[_0x53d8b7(0x195)][_0x53d8b7(0x1a7)](function(){const _0x49dab4=_0x53d8b7;return _0x451da0[_0x49dab4(0x193)][_0x49dab4(0x19c)][_0x49dab4(0x1a0)](_0x37a608)[_0x49dab4(0x194)](function(){const _0xa6c0cc=_0x49dab4;logger[_0xa6c0cc(0x18b)](_0xa6c0cc(0x1a8),_0x37a608);})['catch'](function(_0x59e8bd){const _0x56618d=_0x49dab4;logger[_0x56618d(0x18b)](JSON['stringify'](_0x59e8bd));});});},Migration[a1154_0x1d31a0(0x190)]['removeColumn']=function(_0x58f3fc,_0x4c1c58){const _0xa8bf16=a1154_0x1d31a0,_0x3b5e29=this;this[_0xa8bf16(0x195)][_0xa8bf16(0x1a7)](function(){const _0xf568a=_0xa8bf16;return _0x3b5e29[_0xf568a(0x193)][_0xf568a(0x18c)](_0x58f3fc,_0x4c1c58)[_0xf568a(0x194)](function(){const _0x3cc6f3=_0xf568a;logger[_0x3cc6f3(0x18b)](_0x3cc6f3(0x19a),_0x4c1c58,_0x58f3fc);})[_0xf568a(0x1a4)](function(_0x264cdf){const _0x29e0a9=_0xf568a;logger[_0x29e0a9(0x18b)](util[_0x29e0a9(0x18e)](_0x264cdf,{'showHidden':![],'depth':null}));});});},Migration[a1154_0x1d31a0(0x190)][a1154_0x1d31a0(0x1a3)]=function(_0x4fa08e,_0x4b035f,_0x3c2a08){const _0x4d58b1=a1154_0x1d31a0,_0x39df0e=this;this[_0x4d58b1(0x195)][_0x4d58b1(0x1a7)](function(){const _0x4228d4=_0x4d58b1;return _0x39df0e[_0x4228d4(0x193)][_0x4228d4(0x1a3)](_0x4fa08e,_0x4b035f,_0x3c2a08)[_0x4228d4(0x194)](function(){const _0x35f809=_0x4228d4;logger[_0x35f809(0x18b)](_0x35f809(0x19f),_0x4b035f,_0x3c2a08,_0x4fa08e);})[_0x4228d4(0x1a4)](function(_0x1e5d7a){const _0x5c8911=_0x4228d4;logger[_0x5c8911(0x18b)](util[_0x5c8911(0x18e)](_0x1e5d7a,{'showHidden':![],'depth':null}));});});},Migration[a1154_0x1d31a0(0x190)][a1154_0x1d31a0(0x196)]=function(_0x14c0a8){const _0x31c88c=a1154_0x1d31a0;this[_0x31c88c(0x195)]['enqueue'](function(){return _0x14c0a8();});},module['exports']={'up':function(_0x4b5f9f){return new Promise(function(_0x338d12){const _0x2b7a95=a1154_0x2458,_0x268794=new Migration(_0x4b5f9f);_0x268794[_0x2b7a95(0x196)](_0x338d12);});},'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 fd9f8c4..7863fbd 100644 --- a/server/migrations/2.4.0.js +++ b/server/migrations/2.4.0.js @@ -1 +1 @@ -const a1155_0x5442=['dropTable','finally','chat_messages','util','query','addIndex','body','renameColumn','stringify','catch','fti_mail_messages','phoneBarEnableVideoRecording','Changed\x20column\x20%s\x20in\x20table\x20%s','sms_messages','indicesType','addColumn','indexName','phoneBarEnableScreenRecordingByAgent','mail_interactions','subject','TEXT','prototype','ALTER\x20TABLE\x20sms_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','ALTER\x20TABLE\x20chat_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','users','changeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','tiny','query\x20%s','ALTER\x20TABLE\x20fax_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','inspect','tail','BOOLEAN','then','FULLTEXT','medium','mail_messages','enqueue','plainBody','fti_chat_messages','removeIndex','info','removeColumn','table\x20dropped\x20%s','migration','final','ALTER\x20TABLE\x20mail_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','sequence','queryInterface','join','fti_mail_interactions'];(function(_0xa54d4d,_0x2e854f){const _0x544252=function(_0xc7be8a){while(--_0xc7be8a){_0xa54d4d['push'](_0xa54d4d['shift']());}};_0x544252(++_0x2e854f);}(a1155_0x5442,0x134));const a1155_0xc7be=function(_0xa54d4d,_0x2e854f){_0xa54d4d=_0xa54d4d-0x1b5;let _0x544252=a1155_0x5442[_0xa54d4d];return _0x544252;};const a1155_0x412c1e=a1155_0xc7be;'use strict';const util=require(a1155_0x412c1e(0x1b6)),logger=require('../config/logger')(a1155_0x412c1e(0x1df)),Sequence=function(){};Sequence[a1155_0x412c1e(0x1c8)][a1155_0x412c1e(0x1d8)]=function(_0x43538e){const _0x495fbc=a1155_0x412c1e;this[_0x495fbc(0x1d2)]=this[_0x495fbc(0x1d2)]?this[_0x495fbc(0x1d2)][_0x495fbc(0x1e7)](_0x43538e):_0x43538e();};const Migration=function(_0x5f4c12){const _0x1f21c1=a1155_0x412c1e;this[_0x1f21c1(0x1e3)]=_0x5f4c12,this[_0x1f21c1(0x1e2)]=new Sequence();};Migration['prototype'][a1155_0x412c1e(0x1cc)]=function(_0x4b1242,_0x319419,_0x3e597c){const _0x367859=a1155_0x412c1e,_0x533369=this;this[_0x367859(0x1e2)][_0x367859(0x1d8)](function(){const _0x46c1bd=_0x367859;return _0x533369[_0x46c1bd(0x1e3)][_0x46c1bd(0x1cc)](_0x4b1242,_0x319419,_0x3e597c)['then'](function(){const _0x4ffbe8=_0x46c1bd;logger['info'](_0x4ffbe8(0x1bf),_0x319419,_0x4b1242);})[_0x46c1bd(0x1bc)](function(_0x5c982c){const _0x46ba24=_0x46c1bd;logger[_0x46ba24(0x1dc)](JSON[_0x46ba24(0x1bb)](_0x5c982c));});});},Migration['prototype'][a1155_0x412c1e(0x1c2)]=function(_0x5c4751,_0x175376,_0x7ed434){const _0x567e6c=a1155_0x412c1e,_0x521f41=this;this['sequence'][_0x567e6c(0x1d8)](function(){const _0x21803a=_0x567e6c;return _0x521f41[_0x21803a(0x1e3)][_0x21803a(0x1c2)](_0x5c4751,_0x175376,_0x7ed434)[_0x21803a(0x1d4)](function(){const _0x3e966b=_0x21803a;logger[_0x3e966b(0x1dc)]('Added\x20column\x20%s\x20to\x20%s',_0x175376,_0x5c4751);})['catch'](function(_0x56320d){const _0x2314b8=_0x21803a;logger[_0x2314b8(0x1dc)](JSON[_0x2314b8(0x1bb)](_0x56320d));});});},Migration[a1155_0x412c1e(0x1c8)][a1155_0x412c1e(0x1e6)]=function(_0x31223f){const _0x587a41=a1155_0x412c1e,_0x23d9a3=this;this[_0x587a41(0x1e2)][_0x587a41(0x1d8)](function(){const _0xce5564=_0x587a41;return _0x23d9a3[_0xce5564(0x1e3)][_0xce5564(0x1e6)](_0x31223f,{'force':!![]})[_0xce5564(0x1d4)](function(){const _0x582f97=_0xce5564;logger[_0x582f97(0x1dc)](_0x582f97(0x1de),_0x31223f);})['catch'](function(_0x5319b1){const _0x5af6dc=_0xce5564;logger[_0x5af6dc(0x1dc)](JSON[_0x5af6dc(0x1bb)](_0x5319b1));});});},Migration[a1155_0x412c1e(0x1c8)][a1155_0x412c1e(0x1b8)]=function(_0x23f3f9,_0x586ef9,_0xfd53ce){const _0x328bc1=a1155_0x412c1e,_0x4ad0e9=this;this[_0x328bc1(0x1e2)][_0x328bc1(0x1d8)](function(){const _0x2edcb9=_0x328bc1;return _0x4ad0e9[_0x2edcb9(0x1e3)][_0x2edcb9(0x1b8)](_0x23f3f9,_0x586ef9,{'indexName':_0xfd53ce[_0x2edcb9(0x1c3)],'indicesType':_0xfd53ce[_0x2edcb9(0x1c1)]})['then'](function(){const _0x5176e6=_0x2edcb9;logger[_0x5176e6(0x1dc)](_0x5176e6(0x1cd),_0x23f3f9,_0x586ef9[_0x5176e6(0x1e4)](','),_0xfd53ce[_0x5176e6(0x1c3)],_0xfd53ce[_0x5176e6(0x1c1)]);})[_0x2edcb9(0x1bc)](function(_0x38b75d){const _0x4bc8b6=_0x2edcb9;logger[_0x4bc8b6(0x1dc)](JSON[_0x4bc8b6(0x1bb)](_0x38b75d));});});},Migration[a1155_0x412c1e(0x1c8)][a1155_0x412c1e(0x1db)]=function(_0x31bd26,_0x4e5221){const _0x2d757d=a1155_0x412c1e,_0x3e3bfa=this;this['sequence'][_0x2d757d(0x1d8)](function(){const _0x535b76=_0x2d757d;return _0x3e3bfa[_0x535b76(0x1e3)][_0x535b76(0x1db)](_0x31bd26,_0x4e5221)[_0x535b76(0x1d4)](function(){const _0x15ed33=_0x535b76;logger[_0x15ed33(0x1dc)]('removeIndex\x20%s\x20%s',_0x31bd26,_0x4e5221);})[_0x535b76(0x1bc)](function(_0x24ae04){const _0x40ccb0=_0x535b76;logger[_0x40ccb0(0x1dc)](JSON[_0x40ccb0(0x1bb)](_0x24ae04));});});},Migration[a1155_0x412c1e(0x1c8)][a1155_0x412c1e(0x1b7)]=function(_0x1681f3){const _0x7d2e89=a1155_0x412c1e,_0x268616=this;this[_0x7d2e89(0x1e2)][_0x7d2e89(0x1d8)](function(){const _0x5e7b9e=_0x7d2e89;return _0x268616[_0x5e7b9e(0x1e3)]['sequelize']['query'](_0x1681f3)[_0x5e7b9e(0x1d4)](function(){const _0x1d70da=_0x5e7b9e;logger[_0x1d70da(0x1dc)](_0x1d70da(0x1cf),_0x1681f3);})['catch'](function(_0x1ee230){const _0x1f816b=_0x5e7b9e;logger[_0x1f816b(0x1dc)](JSON[_0x1f816b(0x1bb)](_0x1ee230));});});},Migration[a1155_0x412c1e(0x1c8)][a1155_0x412c1e(0x1dd)]=function(_0x294823,_0x1c24bc){const _0x1f9927=a1155_0x412c1e,_0x32f44f=this;this['sequence'][_0x1f9927(0x1d8)](function(){const _0x3748ac=_0x1f9927;return _0x32f44f[_0x3748ac(0x1e3)]['removeColumn'](_0x294823,_0x1c24bc)[_0x3748ac(0x1d4)](function(){const _0x3d27a0=_0x3748ac;logger[_0x3d27a0(0x1dc)]('Removed\x20column\x20%s\x20from\x20%s',_0x1c24bc,_0x294823);})[_0x3748ac(0x1bc)](function(_0x1624cf){const _0x4e5f0c=_0x3748ac;logger[_0x4e5f0c(0x1dc)](util[_0x4e5f0c(0x1d1)](_0x1624cf,{'showHidden':![],'depth':null}));});});},Migration[a1155_0x412c1e(0x1c8)][a1155_0x412c1e(0x1ba)]=function(_0x2355e3,_0x3bf14d,_0x58fc90){const _0x2b2ac5=a1155_0x412c1e,_0x46764e=this;this[_0x2b2ac5(0x1e2)][_0x2b2ac5(0x1d8)](function(){const _0x111099=_0x2b2ac5;return _0x46764e[_0x111099(0x1e3)][_0x111099(0x1ba)](_0x2355e3,_0x3bf14d,_0x58fc90)['then'](function(){const _0x347b48=_0x111099;logger[_0x347b48(0x1dc)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3bf14d,_0x58fc90,_0x2355e3);})[_0x111099(0x1bc)](function(_0x16ff8e){const _0x43c9bb=_0x111099;logger[_0x43c9bb(0x1dc)](util[_0x43c9bb(0x1d1)](_0x16ff8e,{'showHidden':![],'depth':null}));});});},Migration[a1155_0x412c1e(0x1c8)][a1155_0x412c1e(0x1e0)]=function(_0xe79179){const _0x550a9d=a1155_0x412c1e;this[_0x550a9d(0x1e2)][_0x550a9d(0x1d8)](function(){return _0xe79179();});},module['exports']={'up':function(_0x48d0db,_0x32c507){return new Promise(function(_0x28fc7e){const _0x3761c0=a1155_0xc7be,_0x6271a=new Migration(_0x48d0db);_0x6271a[_0x3761c0(0x1ba)](_0x3761c0(0x1cb),_0x3761c0(0x1be),_0x3761c0(0x1c4)),_0x6271a['addColumn'](_0x3761c0(0x1cb),'phoneBarEnableAutomaticScreenRecording',{'type':_0x32c507[_0x3761c0(0x1d3)],'defaultValue':![]}),_0x6271a[_0x3761c0(0x1c2)](_0x3761c0(0x1cb),'screenrecording',{'type':_0x32c507[_0x3761c0(0x1d3)],'defaultValue':![]}),_0x6271a[_0x3761c0(0x1b8)](_0x3761c0(0x1b5),['body'],{'indexName':_0x3761c0(0x1da),'indicesType':_0x3761c0(0x1d5)}),_0x6271a['addIndex'](_0x3761c0(0x1c5),[_0x3761c0(0x1c6),'to'],{'indexName':_0x3761c0(0x1e5),'indicesType':_0x3761c0(0x1d5)}),_0x6271a[_0x3761c0(0x1c2)](_0x3761c0(0x1c5),'lastMsgText',{'type':_0x32c507[_0x3761c0(0x1c7)](_0x3761c0(0x1ce)),'after':'lastMsgBody'}),_0x6271a[_0x3761c0(0x1c2)](_0x3761c0(0x1d7),_0x3761c0(0x1d9),{'type':_0x32c507['TEXT'](_0x3761c0(0x1d6)),'after':_0x3761c0(0x1b9)}),_0x6271a['addIndex'](_0x3761c0(0x1d7),[_0x3761c0(0x1d9),'subject'],{'indexName':_0x3761c0(0x1bd),'indicesType':'FULLTEXT'}),_0x6271a[_0x3761c0(0x1b8)]('openchannel_messages',[_0x3761c0(0x1b9)],{'indexName':'fti_openchannel_messages','indicesType':'FULLTEXT'}),_0x6271a['addIndex'](_0x3761c0(0x1c0),[_0x3761c0(0x1b9)],{'indexName':'fti_sms_messages','indicesType':_0x3761c0(0x1d5)}),_0x6271a[_0x3761c0(0x1b7)](_0x3761c0(0x1ca)),_0x6271a['query'](_0x3761c0(0x1d0)),_0x6271a[_0x3761c0(0x1b7)](_0x3761c0(0x1e1)),_0x6271a['query']('ALTER\x20TABLE\x20openchannel_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci'),_0x6271a[_0x3761c0(0x1b7)](_0x3761c0(0x1c9)),_0x6271a[_0x3761c0(0x1e0)](_0x28fc7e);});},'down':function(){}}; \ No newline at end of file +const a1155_0x5afa=['queryInterface','util','tail','indexName','prototype','FULLTEXT','addIndex','lastMsgBody','screenrecording','info','lastMsgText','body','removeIndex','users','sequelize','fti_mail_messages','table\x20dropped\x20%s','fti_openchannel_messages','exports','fti_mail_interactions','Removed\x20column\x20%s\x20from\x20%s','stringify','migration','mail_interactions','then','removeColumn','ALTER\x20TABLE\x20sms_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','ALTER\x20TABLE\x20openchannel_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','fti_chat_messages','finally','TEXT','addColumn','medium','catch','chat_messages','inspect','sms_messages','Added\x20column\x20%s\x20to\x20%s','BOOLEAN','indicesType','query','phoneBarEnableScreenRecordingByAgent','subject','openchannel_messages','ALTER\x20TABLE\x20fax_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','sequence','query\x20%s','changeColumn','removeIndex\x20%s\x20%s','plainBody','tiny','phoneBarEnableAutomaticScreenRecording','final','dropTable','mail_messages','renameColumn','enqueue'];(function(_0x35f8be,_0x1b996d){const _0x5afa89=function(_0x16c722){while(--_0x16c722){_0x35f8be['push'](_0x35f8be['shift']());}};_0x5afa89(++_0x1b996d);}(a1155_0x5afa,0x18a));const a1155_0x16c7=function(_0x35f8be,_0x1b996d){_0x35f8be=_0x35f8be-0x11f;let _0x5afa89=a1155_0x5afa[_0x35f8be];return _0x5afa89;};const a1155_0x4199f1=a1155_0x16c7;'use strict';const util=require(a1155_0x4199f1(0x125)),logger=require('../config/logger')(a1155_0x4199f1(0x13a)),Sequence=function(){};Sequence[a1155_0x4199f1(0x128)][a1155_0x4199f1(0x123)]=function(_0x5f23fe){const _0xca417c=a1155_0x4199f1;this['tail']=this[_0xca417c(0x126)]?this[_0xca417c(0x126)][_0xca417c(0x141)](_0x5f23fe):_0x5f23fe();};const Migration=function(_0x4a45b0){const _0xebd859=a1155_0x4199f1;this[_0xebd859(0x124)]=_0x4a45b0,this[_0xebd859(0x151)]=new Sequence();};Migration[a1155_0x4199f1(0x128)][a1155_0x4199f1(0x153)]=function(_0x48a51f,_0x35f3ca,_0x14f26a){const _0x109ede=a1155_0x4199f1,_0x179fc7=this;this[_0x109ede(0x151)][_0x109ede(0x123)](function(){const _0xa77068=_0x109ede;return _0x179fc7[_0xa77068(0x124)]['changeColumn'](_0x48a51f,_0x35f3ca,_0x14f26a)[_0xa77068(0x13c)](function(){const _0xdb07b2=_0xa77068;logger[_0xdb07b2(0x12d)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x35f3ca,_0x48a51f);})['catch'](function(_0x4d16d6){const _0x3111c1=_0xa77068;logger[_0x3111c1(0x12d)](JSON[_0x3111c1(0x139)](_0x4d16d6));});});},Migration[a1155_0x4199f1(0x128)][a1155_0x4199f1(0x143)]=function(_0x5bb868,_0x4b3e46,_0x3b0f74){const _0x406ee9=a1155_0x4199f1,_0x448612=this;this['sequence'][_0x406ee9(0x123)](function(){const _0x483ace=_0x406ee9;return _0x448612['queryInterface'][_0x483ace(0x143)](_0x5bb868,_0x4b3e46,_0x3b0f74)[_0x483ace(0x13c)](function(){const _0x588ae5=_0x483ace;logger[_0x588ae5(0x12d)](_0x588ae5(0x149),_0x4b3e46,_0x5bb868);})[_0x483ace(0x145)](function(_0x2597be){const _0x55b50b=_0x483ace;logger[_0x55b50b(0x12d)](JSON[_0x55b50b(0x139)](_0x2597be));});});},Migration['prototype']['dropTable']=function(_0x5336a4){const _0xf47f11=a1155_0x4199f1,_0x17d6ef=this;this[_0xf47f11(0x151)][_0xf47f11(0x123)](function(){const _0x2c2fa0=_0xf47f11;return _0x17d6ef[_0x2c2fa0(0x124)][_0x2c2fa0(0x120)](_0x5336a4,{'force':!![]})[_0x2c2fa0(0x13c)](function(){const _0x4d9292=_0x2c2fa0;logger[_0x4d9292(0x12d)](_0x4d9292(0x134),_0x5336a4);})['catch'](function(_0x43169f){logger['info'](JSON['stringify'](_0x43169f));});});},Migration[a1155_0x4199f1(0x128)][a1155_0x4199f1(0x12a)]=function(_0x419960,_0x25b67f,_0x3c00a2){const _0x478318=a1155_0x4199f1,_0x37d0fb=this;this[_0x478318(0x151)][_0x478318(0x123)](function(){const _0x15186e=_0x478318;return _0x37d0fb[_0x15186e(0x124)][_0x15186e(0x12a)](_0x419960,_0x25b67f,{'indexName':_0x3c00a2[_0x15186e(0x127)],'indicesType':_0x3c00a2[_0x15186e(0x14b)]})[_0x15186e(0x13c)](function(){const _0x4f9940=_0x15186e;logger[_0x4f9940(0x12d)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x419960,_0x25b67f['join'](','),_0x3c00a2[_0x4f9940(0x127)],_0x3c00a2[_0x4f9940(0x14b)]);})[_0x15186e(0x145)](function(_0x900727){const _0x5dfd2f=_0x15186e;logger['info'](JSON[_0x5dfd2f(0x139)](_0x900727));});});},Migration['prototype'][a1155_0x4199f1(0x130)]=function(_0x32ea1e,_0x21dcae){const _0x18098a=a1155_0x4199f1,_0x1b67b1=this;this['sequence'][_0x18098a(0x123)](function(){const _0x3ee4c1=_0x18098a;return _0x1b67b1['queryInterface']['removeIndex'](_0x32ea1e,_0x21dcae)[_0x3ee4c1(0x13c)](function(){const _0x28606a=_0x3ee4c1;logger[_0x28606a(0x12d)](_0x28606a(0x154),_0x32ea1e,_0x21dcae);})['catch'](function(_0x47011a){const _0x5d2f23=_0x3ee4c1;logger[_0x5d2f23(0x12d)](JSON[_0x5d2f23(0x139)](_0x47011a));});});},Migration[a1155_0x4199f1(0x128)]['query']=function(_0x21ecd9){const _0x6ccd12=a1155_0x4199f1,_0x1d71c9=this;this[_0x6ccd12(0x151)][_0x6ccd12(0x123)](function(){const _0x551d8b=_0x6ccd12;return _0x1d71c9[_0x551d8b(0x124)][_0x551d8b(0x132)]['query'](_0x21ecd9)['then'](function(){const _0xc158e3=_0x551d8b;logger[_0xc158e3(0x12d)](_0xc158e3(0x152),_0x21ecd9);})[_0x551d8b(0x145)](function(_0x54864f){const _0x57fd06=_0x551d8b;logger[_0x57fd06(0x12d)](JSON[_0x57fd06(0x139)](_0x54864f));});});},Migration[a1155_0x4199f1(0x128)][a1155_0x4199f1(0x13d)]=function(_0x2e5450,_0x48aa48){const _0x6e4223=a1155_0x4199f1,_0x54151e=this;this[_0x6e4223(0x151)]['enqueue'](function(){const _0x15526b=_0x6e4223;return _0x54151e[_0x15526b(0x124)][_0x15526b(0x13d)](_0x2e5450,_0x48aa48)[_0x15526b(0x13c)](function(){const _0x1933be=_0x15526b;logger['info'](_0x1933be(0x138),_0x48aa48,_0x2e5450);})[_0x15526b(0x145)](function(_0x4f1094){const _0xe0b4d9=_0x15526b;logger[_0xe0b4d9(0x12d)](util[_0xe0b4d9(0x147)](_0x4f1094,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x265603,_0x4e3e6d,_0x3aa382){const _0x320343=a1155_0x4199f1,_0xf86fa5=this;this[_0x320343(0x151)][_0x320343(0x123)](function(){const _0x4a6ce2=_0x320343;return _0xf86fa5[_0x4a6ce2(0x124)][_0x4a6ce2(0x122)](_0x265603,_0x4e3e6d,_0x3aa382)['then'](function(){const _0x3a4ce7=_0x4a6ce2;logger[_0x3a4ce7(0x12d)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4e3e6d,_0x3aa382,_0x265603);})['catch'](function(_0xdd35de){const _0x33f922=_0x4a6ce2;logger['info'](util[_0x33f922(0x147)](_0xdd35de,{'showHidden':![],'depth':null}));});});},Migration[a1155_0x4199f1(0x128)][a1155_0x4199f1(0x11f)]=function(_0x4f41b7){const _0x13460c=a1155_0x4199f1;this[_0x13460c(0x151)]['enqueue'](function(){return _0x4f41b7();});},module[a1155_0x4199f1(0x136)]={'up':function(_0x712005,_0x376d32){return new Promise(function(_0x2c3141){const _0x890057=a1155_0x16c7,_0x350713=new Migration(_0x712005);_0x350713['renameColumn'](_0x890057(0x131),'phoneBarEnableVideoRecording',_0x890057(0x14d)),_0x350713['addColumn'](_0x890057(0x131),_0x890057(0x157),{'type':_0x376d32[_0x890057(0x14a)],'defaultValue':![]}),_0x350713[_0x890057(0x143)]('users',_0x890057(0x12c),{'type':_0x376d32[_0x890057(0x14a)],'defaultValue':![]}),_0x350713[_0x890057(0x12a)](_0x890057(0x146),[_0x890057(0x12f)],{'indexName':_0x890057(0x140),'indicesType':'FULLTEXT'}),_0x350713[_0x890057(0x12a)](_0x890057(0x13b),[_0x890057(0x14e),'to'],{'indexName':_0x890057(0x137),'indicesType':'FULLTEXT'}),_0x350713[_0x890057(0x143)](_0x890057(0x13b),_0x890057(0x12e),{'type':_0x376d32[_0x890057(0x142)](_0x890057(0x156)),'after':_0x890057(0x12b)}),_0x350713[_0x890057(0x143)](_0x890057(0x121),_0x890057(0x155),{'type':_0x376d32[_0x890057(0x142)](_0x890057(0x144)),'after':_0x890057(0x12f)}),_0x350713[_0x890057(0x12a)](_0x890057(0x121),[_0x890057(0x155),'subject'],{'indexName':_0x890057(0x133),'indicesType':_0x890057(0x129)}),_0x350713[_0x890057(0x12a)](_0x890057(0x14f),[_0x890057(0x12f)],{'indexName':_0x890057(0x135),'indicesType':_0x890057(0x129)}),_0x350713[_0x890057(0x12a)](_0x890057(0x148),[_0x890057(0x12f)],{'indexName':'fti_sms_messages','indicesType':_0x890057(0x129)}),_0x350713[_0x890057(0x14c)]('ALTER\x20TABLE\x20chat_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci'),_0x350713[_0x890057(0x14c)](_0x890057(0x150)),_0x350713[_0x890057(0x14c)]('ALTER\x20TABLE\x20mail_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci'),_0x350713[_0x890057(0x14c)](_0x890057(0x13f)),_0x350713[_0x890057(0x14c)](_0x890057(0x13e)),_0x350713[_0x890057(0x11f)](_0x2c3141);});},'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 9faa99e..c5666ac 100644 --- a/server/migrations/2.4.1.js +++ b/server/migrations/2.4.1.js @@ -1 +1 @@ -const a1156_0x3916=['addColumn','removeColumn','renameColumn','util','addIndex','indexName','then','dropTable','final','sequence','changeColumn','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','removeIndex\x20%s\x20%s','removeIndex','info','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','Removed\x20column\x20%s\x20from\x20%s','query','indicesType','enqueue','addIndex\x20%s\x20%s\x20%s\x20[%s]','query\x20%s','finally','inspect','../config/logger','table\x20dropped\x20%s','tail','prototype'];(function(_0x4f092c,_0x550733){const _0x391678=function(_0x58e0ae){while(--_0x58e0ae){_0x4f092c['push'](_0x4f092c['shift']());}};_0x391678(++_0x550733);}(a1156_0x3916,0xc2));const a1156_0x58e0=function(_0x4f092c,_0x550733){_0x4f092c=_0x4f092c-0x192;let _0x391678=a1156_0x3916[_0x4f092c];return _0x391678;};const a1156_0x4b8ea2=a1156_0x58e0;'use strict';const util=require(a1156_0x4b8ea2(0x1ac)),logger=require(a1156_0x4b8ea2(0x1a5))('migration'),Sequence=function(){};Sequence[a1156_0x4b8ea2(0x1a8)][a1156_0x4b8ea2(0x1a0)]=function(_0x384582){const _0x5b19fc=a1156_0x4b8ea2;this[_0x5b19fc(0x1a7)]=this['tail']?this[_0x5b19fc(0x1a7)][_0x5b19fc(0x1a3)](_0x384582):_0x384582();};const Migration=function(_0xddc77){const _0x367b18=a1156_0x4b8ea2;this['queryInterface']=_0xddc77,this[_0x367b18(0x193)]=new Sequence();};Migration[a1156_0x4b8ea2(0x1a8)][a1156_0x4b8ea2(0x194)]=function(_0x6b8662,_0x28837e,_0x44cb05){const _0x37fe91=a1156_0x4b8ea2,_0x5a9afe=this;this[_0x37fe91(0x193)][_0x37fe91(0x1a0)](function(){const _0x15f38a=_0x37fe91;return _0x5a9afe[_0x15f38a(0x197)][_0x15f38a(0x194)](_0x6b8662,_0x28837e,_0x44cb05)[_0x15f38a(0x1af)](function(){const _0x52ef70=_0x15f38a;logger[_0x52ef70(0x19a)](_0x52ef70(0x19b),_0x28837e,_0x6b8662);})[_0x15f38a(0x19c)](function(_0x10f63d){const _0x47f3d0=_0x15f38a;logger[_0x47f3d0(0x19a)](JSON['stringify'](_0x10f63d));});});},Migration[a1156_0x4b8ea2(0x1a8)][a1156_0x4b8ea2(0x1a9)]=function(_0x29c167,_0x203378,_0x399170){const _0x23db8a=a1156_0x4b8ea2,_0x44ae34=this;this[_0x23db8a(0x193)][_0x23db8a(0x1a0)](function(){const _0x54033b=_0x23db8a;return _0x44ae34['queryInterface'][_0x54033b(0x1a9)](_0x29c167,_0x203378,_0x399170)['then'](function(){const _0x403925=_0x54033b;logger[_0x403925(0x19a)]('Added\x20column\x20%s\x20to\x20%s',_0x203378,_0x29c167);})['catch'](function(_0x1250fb){const _0x39f248=_0x54033b;logger[_0x39f248(0x19a)](JSON[_0x39f248(0x195)](_0x1250fb));});});},Migration['prototype'][a1156_0x4b8ea2(0x1b0)]=function(_0x5514ab){const _0x17511d=a1156_0x4b8ea2,_0x3e5b86=this;this[_0x17511d(0x193)][_0x17511d(0x1a0)](function(){const _0x3bf955=_0x17511d;return _0x3e5b86[_0x3bf955(0x197)][_0x3bf955(0x1b0)](_0x5514ab,{'force':!![]})[_0x3bf955(0x1af)](function(){const _0x1b72a7=_0x3bf955;logger['info'](_0x1b72a7(0x1a6),_0x5514ab);})[_0x3bf955(0x19c)](function(_0x2e46aa){const _0x5d0380=_0x3bf955;logger[_0x5d0380(0x19a)](JSON[_0x5d0380(0x195)](_0x2e46aa));});});},Migration[a1156_0x4b8ea2(0x1a8)][a1156_0x4b8ea2(0x1ad)]=function(_0x4850fe,_0x5084fd,_0x531316){const _0xf3201e=a1156_0x4b8ea2,_0x58d944=this;this[_0xf3201e(0x193)][_0xf3201e(0x1a0)](function(){const _0x59d043=_0xf3201e;return _0x58d944[_0x59d043(0x197)][_0x59d043(0x1ad)](_0x4850fe,_0x5084fd,{'indexName':_0x531316[_0x59d043(0x1ae)],'indicesType':_0x531316[_0x59d043(0x19f)]})[_0x59d043(0x1af)](function(){const _0x169079=_0x59d043;logger[_0x169079(0x19a)](_0x169079(0x1a1),_0x4850fe,_0x5084fd['join'](','),_0x531316[_0x169079(0x1ae)],_0x531316[_0x169079(0x19f)]);})[_0x59d043(0x19c)](function(_0x4927da){const _0x1f4253=_0x59d043;logger[_0x1f4253(0x19a)](JSON['stringify'](_0x4927da));});});},Migration['prototype'][a1156_0x4b8ea2(0x199)]=function(_0x5a97e3,_0x434961){const _0x3d15f5=a1156_0x4b8ea2,_0xbc43bd=this;this[_0x3d15f5(0x193)][_0x3d15f5(0x1a0)](function(){const _0x1b3c14=_0x3d15f5;return _0xbc43bd[_0x1b3c14(0x197)]['removeIndex'](_0x5a97e3,_0x434961)[_0x1b3c14(0x1af)](function(){const _0x15bc88=_0x1b3c14;logger[_0x15bc88(0x19a)](_0x15bc88(0x198),_0x5a97e3,_0x434961);})[_0x1b3c14(0x19c)](function(_0x210fb8){const _0x2fd154=_0x1b3c14;logger['info'](JSON[_0x2fd154(0x195)](_0x210fb8));});});},Migration[a1156_0x4b8ea2(0x1a8)][a1156_0x4b8ea2(0x19e)]=function(_0x34f826){const _0x23130f=a1156_0x4b8ea2,_0x332207=this;this[_0x23130f(0x193)][_0x23130f(0x1a0)](function(){const _0x4a1c15=_0x23130f;return _0x332207[_0x4a1c15(0x197)]['sequelize'][_0x4a1c15(0x19e)](_0x34f826)['then'](function(){const _0x787fd3=_0x4a1c15;logger['info'](_0x787fd3(0x1a2),_0x34f826);})[_0x4a1c15(0x19c)](function(_0x10e142){const _0x96ba7b=_0x4a1c15;logger[_0x96ba7b(0x19a)](JSON[_0x96ba7b(0x195)](_0x10e142));});});},Migration['prototype'][a1156_0x4b8ea2(0x1aa)]=function(_0x29773e,_0x2f6d34){const _0x49c376=this;this['sequence']['enqueue'](function(){const _0x499846=a1156_0x58e0;return _0x49c376['queryInterface']['removeColumn'](_0x29773e,_0x2f6d34)[_0x499846(0x1af)](function(){const _0x1fac4d=_0x499846;logger[_0x1fac4d(0x19a)](_0x1fac4d(0x19d),_0x2f6d34,_0x29773e);})[_0x499846(0x19c)](function(_0xe4b4c5){const _0x5cbf8c=_0x499846;logger[_0x5cbf8c(0x19a)](util[_0x5cbf8c(0x1a4)](_0xe4b4c5,{'showHidden':![],'depth':null}));});});},Migration[a1156_0x4b8ea2(0x1a8)][a1156_0x4b8ea2(0x1ab)]=function(_0x367d85,_0x260a10,_0x3a907b){const _0x4e89b5=a1156_0x4b8ea2,_0x552307=this;this['sequence'][_0x4e89b5(0x1a0)](function(){const _0x17aeb8=_0x4e89b5;return _0x552307['queryInterface'][_0x17aeb8(0x1ab)](_0x367d85,_0x260a10,_0x3a907b)[_0x17aeb8(0x1af)](function(){const _0x4094d3=_0x17aeb8;logger[_0x4094d3(0x19a)](_0x4094d3(0x196),_0x260a10,_0x3a907b,_0x367d85);})[_0x17aeb8(0x19c)](function(_0xdd6f37){const _0x2de7a5=_0x17aeb8;logger[_0x2de7a5(0x19a)](util[_0x2de7a5(0x1a4)](_0xdd6f37,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1156_0x4b8ea2(0x192)]=function(_0x1a435a){const _0x3ea2d3=a1156_0x4b8ea2;this[_0x3ea2d3(0x193)][_0x3ea2d3(0x1a0)](function(){return _0x1a435a();});},module['exports']={'up':function(_0x1984c8){return new Promise(function(_0x52060e){const _0x50049a=new Migration(_0x1984c8);_0x50049a['final'](_0x52060e);});},'down':function(){}}; \ No newline at end of file +const a1156_0x28f6=['removeColumn','changeColumn','stringify','info','removeIndex\x20%s\x20%s','addIndex','finally','prototype','addColumn','query','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','then','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','indicesType','exports','query\x20%s','../config/logger','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','join','dropTable','tail','queryInterface','removeIndex','indexName','catch','enqueue'];(function(_0x53eb05,_0x18df8f){const _0x28f61b=function(_0x45292c){while(--_0x45292c){_0x53eb05['push'](_0x53eb05['shift']());}};_0x28f61b(++_0x18df8f);}(a1156_0x28f6,0x66));const a1156_0x4529=function(_0x53eb05,_0x18df8f){_0x53eb05=_0x53eb05-0x143;let _0x28f61b=a1156_0x28f6[_0x53eb05];return _0x28f61b;};const a1156_0xc05755=a1156_0x4529;'use strict';const util=require('util'),logger=require(a1156_0xc05755(0x149))('migration'),Sequence=function(){};Sequence['prototype'][a1156_0xc05755(0x154)]=function(_0x300744){const _0x478baf=a1156_0xc05755;this[_0x478baf(0x14f)]=this['tail']?this[_0x478baf(0x14f)][_0x478baf(0x15b)](_0x300744):_0x300744();};const Migration=function(_0x32e12d){const _0x459cb5=a1156_0xc05755;this[_0x459cb5(0x150)]=_0x32e12d,this[_0x459cb5(0x145)]=new Sequence();};Migration['prototype'][a1156_0xc05755(0x156)]=function(_0x43241d,_0x13edab,_0x4ec87b){const _0x23ca3d=a1156_0xc05755,_0x4537e4=this;this[_0x23ca3d(0x145)][_0x23ca3d(0x154)](function(){const _0x3b12aa=_0x23ca3d;return _0x4537e4['queryInterface']['changeColumn'](_0x43241d,_0x13edab,_0x4ec87b)[_0x3b12aa(0x143)](function(){const _0x2f67af=_0x3b12aa;logger['info'](_0x2f67af(0x14b),_0x13edab,_0x43241d);})[_0x3b12aa(0x153)](function(_0x53e67b){const _0x4eba03=_0x3b12aa;logger[_0x4eba03(0x158)](JSON[_0x4eba03(0x157)](_0x53e67b));});});},Migration['prototype'][a1156_0xc05755(0x15d)]=function(_0x52687a,_0x16d172,_0xf9f0e6){const _0x1aef79=a1156_0xc05755,_0x40ab52=this;this[_0x1aef79(0x145)][_0x1aef79(0x154)](function(){const _0x2de886=_0x1aef79;return _0x40ab52[_0x2de886(0x150)][_0x2de886(0x15d)](_0x52687a,_0x16d172,_0xf9f0e6)[_0x2de886(0x143)](function(){const _0x3f89e7=_0x2de886;logger['info'](_0x3f89e7(0x15f),_0x16d172,_0x52687a);})[_0x2de886(0x153)](function(_0x33b363){const _0xb895=_0x2de886;logger[_0xb895(0x158)](JSON[_0xb895(0x157)](_0x33b363));});});},Migration[a1156_0xc05755(0x15c)][a1156_0xc05755(0x14e)]=function(_0x7dbb0d){const _0x2db107=a1156_0xc05755,_0x36e341=this;this[_0x2db107(0x145)][_0x2db107(0x154)](function(){const _0x16352d=_0x2db107;return _0x36e341[_0x16352d(0x150)][_0x16352d(0x14e)](_0x7dbb0d,{'force':!![]})[_0x16352d(0x143)](function(){const _0x51c29b=_0x16352d;logger[_0x51c29b(0x158)]('table\x20dropped\x20%s',_0x7dbb0d);})[_0x16352d(0x153)](function(_0x3fd453){const _0x1d4e65=_0x16352d;logger[_0x1d4e65(0x158)](JSON[_0x1d4e65(0x157)](_0x3fd453));});});},Migration['prototype'][a1156_0xc05755(0x15a)]=function(_0x1f521f,_0x2a64ef,_0x3c60e9){const _0x22cffa=a1156_0xc05755,_0x3081c0=this;this[_0x22cffa(0x145)]['enqueue'](function(){const _0x44ec4d=_0x22cffa;return _0x3081c0[_0x44ec4d(0x150)][_0x44ec4d(0x15a)](_0x1f521f,_0x2a64ef,{'indexName':_0x3c60e9[_0x44ec4d(0x152)],'indicesType':_0x3c60e9['indicesType']})[_0x44ec4d(0x143)](function(){const _0x3cb751=_0x44ec4d;logger[_0x3cb751(0x158)](_0x3cb751(0x144),_0x1f521f,_0x2a64ef[_0x3cb751(0x14d)](','),_0x3c60e9['indexName'],_0x3c60e9[_0x3cb751(0x146)]);})[_0x44ec4d(0x153)](function(_0x2985a0){const _0x5c50a8=_0x44ec4d;logger[_0x5c50a8(0x158)](JSON[_0x5c50a8(0x157)](_0x2985a0));});});},Migration['prototype'][a1156_0xc05755(0x151)]=function(_0x126ea6,_0x45cb4f){const _0x2ac3bf=a1156_0xc05755,_0x5c4685=this;this[_0x2ac3bf(0x145)][_0x2ac3bf(0x154)](function(){const _0x2176c7=_0x2ac3bf;return _0x5c4685['queryInterface'][_0x2176c7(0x151)](_0x126ea6,_0x45cb4f)['then'](function(){const _0xad6c3e=_0x2176c7;logger['info'](_0xad6c3e(0x159),_0x126ea6,_0x45cb4f);})['catch'](function(_0x1fbe8e){const _0x2aab1c=_0x2176c7;logger[_0x2aab1c(0x158)](JSON['stringify'](_0x1fbe8e));});});},Migration[a1156_0xc05755(0x15c)][a1156_0xc05755(0x15e)]=function(_0x4bc344){const _0x53ddc5=a1156_0xc05755,_0x28b126=this;this[_0x53ddc5(0x145)]['enqueue'](function(){const _0x18f4f2=_0x53ddc5;return _0x28b126[_0x18f4f2(0x150)]['sequelize'][_0x18f4f2(0x15e)](_0x4bc344)[_0x18f4f2(0x143)](function(){const _0x290bb3=_0x18f4f2;logger[_0x290bb3(0x158)](_0x290bb3(0x148),_0x4bc344);})['catch'](function(_0x2f5346){const _0x934a0b=_0x18f4f2;logger[_0x934a0b(0x158)](JSON[_0x934a0b(0x157)](_0x2f5346));});});},Migration[a1156_0xc05755(0x15c)][a1156_0xc05755(0x155)]=function(_0xf2723c,_0x4d76f7){const _0x2bbf81=a1156_0xc05755,_0x11583c=this;this[_0x2bbf81(0x145)][_0x2bbf81(0x154)](function(){const _0x52b8ca=_0x2bbf81;return _0x11583c[_0x52b8ca(0x150)][_0x52b8ca(0x155)](_0xf2723c,_0x4d76f7)['then'](function(){const _0x159efa=_0x52b8ca;logger[_0x159efa(0x158)](_0x159efa(0x160),_0x4d76f7,_0xf2723c);})[_0x52b8ca(0x153)](function(_0x1058d5){const _0x2e8312=_0x52b8ca;logger['info'](util[_0x2e8312(0x14a)](_0x1058d5,{'showHidden':![],'depth':null}));});});},Migration[a1156_0xc05755(0x15c)][a1156_0xc05755(0x14c)]=function(_0x15e727,_0x5c7e86,_0x3a8f8a){const _0xa2e6de=this;this['sequence']['enqueue'](function(){const _0x9984e7=a1156_0x4529;return _0xa2e6de[_0x9984e7(0x150)][_0x9984e7(0x14c)](_0x15e727,_0x5c7e86,_0x3a8f8a)[_0x9984e7(0x143)](function(){const _0x1e2458=_0x9984e7;logger[_0x1e2458(0x158)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5c7e86,_0x3a8f8a,_0x15e727);})['catch'](function(_0x504de0){const _0xf16ff3=_0x9984e7;logger['info'](util[_0xf16ff3(0x14a)](_0x504de0,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x8ecd01){const _0x2a87cf=a1156_0xc05755;this[_0x2a87cf(0x145)][_0x2a87cf(0x154)](function(){return _0x8ecd01();});},module[a1156_0xc05755(0x147)]={'up':function(_0xc82785){return new Promise(function(_0x9b68e4){const _0x275d87=new Migration(_0xc82785);_0x275d87['final'](_0x9b68e4);});},'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 b99d856..94d62af 100644 --- a/server/migrations/2.4.10.js +++ b/server/migrations/2.4.10.js @@ -1 +1 @@ -const a1157_0x16fa=['addIndex','queryInterface','renameColumn','stringify','addColumn','info','removeIndex','chat_interactions','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','prototype','dropTable','query','Removed\x20column\x20%s\x20from\x20%s','final','changeColumn','indicesType','referer','favicon','removeColumn','Added\x20column\x20%s\x20to\x20%s','catch','migration','enqueue','table\x20dropped\x20%s','query\x20%s','sequelize','removeIndex\x20%s\x20%s','tail','join','then','TEXT','settings','sequence','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','defaultFavicon'];(function(_0x26cd3c,_0xb77905){const _0x16faf7=function(_0x336b23){while(--_0x336b23){_0x26cd3c['push'](_0x26cd3c['shift']());}};_0x16faf7(++_0xb77905);}(a1157_0x16fa,0x16e));const a1157_0x336b=function(_0x26cd3c,_0xb77905){_0x26cd3c=_0x26cd3c-0x158;let _0x16faf7=a1157_0x16fa[_0x26cd3c];return _0x16faf7;};const a1157_0x3c95de=a1157_0x336b;'use strict';const util=require('util'),logger=require(a1157_0x3c95de(0x159))(a1157_0x3c95de(0x172)),Sequence=function(){};Sequence['prototype'][a1157_0x3c95de(0x173)]=function(_0x5335fb){const _0x243246=a1157_0x3c95de;this[_0x243246(0x178)]=this[_0x243246(0x178)]?this[_0x243246(0x178)]['finally'](_0x5335fb):_0x5335fb();};const Migration=function(_0xb3ff08){const _0x810f97=a1157_0x3c95de;this['queryInterface']=_0xb3ff08,this[_0x810f97(0x158)]=new Sequence();};Migration[a1157_0x3c95de(0x166)][a1157_0x3c95de(0x16b)]=function(_0x2c2bc7,_0x57e4a6,_0x2a1585){const _0x2b5815=a1157_0x3c95de,_0x22975d=this;this[_0x2b5815(0x158)][_0x2b5815(0x173)](function(){const _0x4e89c4=_0x2b5815;return _0x22975d[_0x4e89c4(0x15d)][_0x4e89c4(0x16b)](_0x2c2bc7,_0x57e4a6,_0x2a1585)['then'](function(){const _0x1df892=_0x4e89c4;logger[_0x1df892(0x161)](_0x1df892(0x15a),_0x57e4a6,_0x2c2bc7);})[_0x4e89c4(0x171)](function(_0x9394cf){const _0x801c04=_0x4e89c4;logger[_0x801c04(0x161)](JSON[_0x801c04(0x15f)](_0x9394cf));});});},Migration[a1157_0x3c95de(0x166)]['addColumn']=function(_0x4d93d1,_0xf01ec8,_0x1bf58b){const _0x5007ed=a1157_0x3c95de,_0x59c3e0=this;this[_0x5007ed(0x158)][_0x5007ed(0x173)](function(){const _0x14855e=_0x5007ed;return _0x59c3e0[_0x14855e(0x15d)]['addColumn'](_0x4d93d1,_0xf01ec8,_0x1bf58b)[_0x14855e(0x17a)](function(){const _0x424f1b=_0x14855e;logger[_0x424f1b(0x161)](_0x424f1b(0x170),_0xf01ec8,_0x4d93d1);})[_0x14855e(0x171)](function(_0xf69898){const _0x2a2a63=_0x14855e;logger[_0x2a2a63(0x161)](JSON[_0x2a2a63(0x15f)](_0xf69898));});});},Migration[a1157_0x3c95de(0x166)][a1157_0x3c95de(0x167)]=function(_0x5f463b){const _0x183126=a1157_0x3c95de,_0x3747b9=this;this[_0x183126(0x158)][_0x183126(0x173)](function(){const _0x5cf041=_0x183126;return _0x3747b9['queryInterface'][_0x5cf041(0x167)](_0x5f463b,{'force':!![]})[_0x5cf041(0x17a)](function(){const _0x112dfe=_0x5cf041;logger[_0x112dfe(0x161)](_0x112dfe(0x174),_0x5f463b);})[_0x5cf041(0x171)](function(_0x499770){logger['info'](JSON['stringify'](_0x499770));});});},Migration['prototype'][a1157_0x3c95de(0x15c)]=function(_0x181bd4,_0x3e2ffe,_0x15e5ab){const _0x3397d8=a1157_0x3c95de,_0x5a73ae=this;this[_0x3397d8(0x158)][_0x3397d8(0x173)](function(){const _0x9f7ead=_0x3397d8;return _0x5a73ae[_0x9f7ead(0x15d)][_0x9f7ead(0x15c)](_0x181bd4,_0x3e2ffe,{'indexName':_0x15e5ab['indexName'],'indicesType':_0x15e5ab['indicesType']})[_0x9f7ead(0x17a)](function(){const _0x35aa36=_0x9f7ead;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x181bd4,_0x3e2ffe[_0x35aa36(0x179)](','),_0x15e5ab['indexName'],_0x15e5ab[_0x35aa36(0x16c)]);})[_0x9f7ead(0x171)](function(_0x2bf813){const _0x52c572=_0x9f7ead;logger[_0x52c572(0x161)](JSON[_0x52c572(0x15f)](_0x2bf813));});});},Migration[a1157_0x3c95de(0x166)][a1157_0x3c95de(0x162)]=function(_0x1a04cd,_0xe158f1){const _0x519868=a1157_0x3c95de,_0x6c8422=this;this[_0x519868(0x158)][_0x519868(0x173)](function(){const _0x1365c9=_0x519868;return _0x6c8422[_0x1365c9(0x15d)][_0x1365c9(0x162)](_0x1a04cd,_0xe158f1)[_0x1365c9(0x17a)](function(){const _0x40e74e=_0x1365c9;logger[_0x40e74e(0x161)](_0x40e74e(0x177),_0x1a04cd,_0xe158f1);})[_0x1365c9(0x171)](function(_0x1c0078){const _0x862a90=_0x1365c9;logger[_0x862a90(0x161)](JSON['stringify'](_0x1c0078));});});},Migration[a1157_0x3c95de(0x166)][a1157_0x3c95de(0x168)]=function(_0x3ea278){const _0x581baf=a1157_0x3c95de,_0x24a485=this;this[_0x581baf(0x158)]['enqueue'](function(){const _0x33a1b1=_0x581baf;return _0x24a485[_0x33a1b1(0x15d)][_0x33a1b1(0x176)][_0x33a1b1(0x168)](_0x3ea278)[_0x33a1b1(0x17a)](function(){const _0x34857a=_0x33a1b1;logger['info'](_0x34857a(0x175),_0x3ea278);})[_0x33a1b1(0x171)](function(_0x57a589){const _0x670d10=_0x33a1b1;logger[_0x670d10(0x161)](JSON['stringify'](_0x57a589));});});},Migration[a1157_0x3c95de(0x166)]['removeColumn']=function(_0x1362b3,_0x132f36){const _0x41eec3=this;this['sequence']['enqueue'](function(){const _0x165a4f=a1157_0x336b;return _0x41eec3[_0x165a4f(0x15d)][_0x165a4f(0x16f)](_0x1362b3,_0x132f36)[_0x165a4f(0x17a)](function(){const _0x41df45=_0x165a4f;logger[_0x41df45(0x161)](_0x41df45(0x169),_0x132f36,_0x1362b3);})[_0x165a4f(0x171)](function(_0x310e8a){const _0x32824c=_0x165a4f;logger[_0x32824c(0x161)](util[_0x32824c(0x165)](_0x310e8a,{'showHidden':![],'depth':null}));});});},Migration[a1157_0x3c95de(0x166)][a1157_0x3c95de(0x15e)]=function(_0x1eb470,_0x43e378,_0x1c007a){const _0x45339e=a1157_0x3c95de,_0x563848=this;this[_0x45339e(0x158)]['enqueue'](function(){const _0x14db71=_0x45339e;return _0x563848[_0x14db71(0x15d)][_0x14db71(0x15e)](_0x1eb470,_0x43e378,_0x1c007a)[_0x14db71(0x17a)](function(){const _0x1b91d3=_0x14db71;logger['info'](_0x1b91d3(0x164),_0x43e378,_0x1c007a,_0x1eb470);})[_0x14db71(0x171)](function(_0x53da06){const _0xb384a2=_0x14db71;logger[_0xb384a2(0x161)](util['inspect'](_0x53da06,{'showHidden':![],'depth':null}));});});},Migration[a1157_0x3c95de(0x166)]['final']=function(_0x2df600){const _0x4240e5=a1157_0x3c95de;this[_0x4240e5(0x158)]['enqueue'](function(){return _0x2df600();});},module['exports']={'up':function(_0x2efce9,_0x519e25){return new Promise(function(_0x519636){const _0x1eb6a9=a1157_0x336b,_0x14279a=new Migration(_0x2efce9);_0x14279a['changeColumn'](_0x1eb6a9(0x163),_0x1eb6a9(0x16d),{'type':_0x519e25[_0x1eb6a9(0x17b)]}),_0x14279a[_0x1eb6a9(0x160)](_0x1eb6a9(0x17c),_0x1eb6a9(0x16e),{'type':_0x519e25['STRING']}),_0x14279a[_0x1eb6a9(0x160)](_0x1eb6a9(0x17c),_0x1eb6a9(0x15b),{'type':_0x519e25['BOOLEAN'],'defaultValue':!![]}),_0x14279a[_0x1eb6a9(0x16a)](_0x519636);});},'down':function(){}}; \ No newline at end of file +const a1157_0x19ed=['removeIndex','prototype','then','catch','tail','util','favicon','dropTable','addColumn','defaultFavicon','settings','enqueue','query','indicesType','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','removeIndex\x20%s\x20%s','TEXT','addIndex','BOOLEAN','referer','inspect','../config/logger','Added\x20column\x20%s\x20to\x20%s','stringify','migration','addIndex\x20%s\x20%s\x20%s\x20[%s]','queryInterface','finally','changeColumn','info','final','renameColumn','removeColumn','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Removed\x20column\x20%s\x20from\x20%s','join'];(function(_0x210c56,_0x459ea2){const _0x19ed28=function(_0x5c09e6){while(--_0x5c09e6){_0x210c56['push'](_0x210c56['shift']());}};_0x19ed28(++_0x459ea2);}(a1157_0x19ed,0x197));const a1157_0x5c09=function(_0x210c56,_0x459ea2){_0x210c56=_0x210c56-0xa9;let _0x19ed28=a1157_0x19ed[_0x210c56];return _0x19ed28;};const a1157_0x15820c=a1157_0x5c09;'use strict';const util=require(a1157_0x15820c(0xc4)),logger=require(a1157_0x15820c(0xaf))(a1157_0x15820c(0xb2)),Sequence=function(){};Sequence[a1157_0x15820c(0xc0)][a1157_0x15820c(0xca)]=function(_0x47fc46){const _0xaa0ce9=a1157_0x15820c;this[_0xaa0ce9(0xc3)]=this[_0xaa0ce9(0xc3)]?this[_0xaa0ce9(0xc3)][_0xaa0ce9(0xb5)](_0x47fc46):_0x47fc46();};const Migration=function(_0x325814){const _0x2e216a=a1157_0x15820c;this['queryInterface']=_0x325814,this[_0x2e216a(0xcf)]=new Sequence();};Migration[a1157_0x15820c(0xc0)][a1157_0x15820c(0xb6)]=function(_0x434533,_0x3eb7a1,_0x11a739){const _0x107e14=a1157_0x15820c,_0x2857d3=this;this['sequence'][_0x107e14(0xca)](function(){const _0x27a5f7=_0x107e14;return _0x2857d3['queryInterface']['changeColumn'](_0x434533,_0x3eb7a1,_0x11a739)[_0x27a5f7(0xc1)](function(){const _0x1cec4c=_0x27a5f7;logger['info'](_0x1cec4c(0xce),_0x3eb7a1,_0x434533);})[_0x27a5f7(0xc2)](function(_0x49e892){const _0x635a1d=_0x27a5f7;logger['info'](JSON[_0x635a1d(0xb1)](_0x49e892));});});},Migration[a1157_0x15820c(0xc0)]['addColumn']=function(_0x5b6f88,_0x170e73,_0x3d5fa5){const _0x44d902=a1157_0x15820c,_0x592757=this;this['sequence'][_0x44d902(0xca)](function(){const _0x551f3=_0x44d902;return _0x592757[_0x551f3(0xb4)]['addColumn'](_0x5b6f88,_0x170e73,_0x3d5fa5)[_0x551f3(0xc1)](function(){const _0x573e23=_0x551f3;logger[_0x573e23(0xb7)](_0x573e23(0xb0),_0x170e73,_0x5b6f88);})[_0x551f3(0xc2)](function(_0x4a5ad5){const _0x1470fd=_0x551f3;logger['info'](JSON[_0x1470fd(0xb1)](_0x4a5ad5));});});},Migration[a1157_0x15820c(0xc0)]['dropTable']=function(_0x587b98){const _0x4e6b73=this;this['sequence']['enqueue'](function(){const _0x7a9094=a1157_0x5c09;return _0x4e6b73[_0x7a9094(0xb4)][_0x7a9094(0xc6)](_0x587b98,{'force':!![]})[_0x7a9094(0xc1)](function(){logger['info']('table\x20dropped\x20%s',_0x587b98);})[_0x7a9094(0xc2)](function(_0x591339){const _0x4e6f51=_0x7a9094;logger[_0x4e6f51(0xb7)](JSON[_0x4e6f51(0xb1)](_0x591339));});});},Migration['prototype'][a1157_0x15820c(0xab)]=function(_0xa64b9c,_0x5b5d75,_0x2fdc1d){const _0x5c9931=a1157_0x15820c,_0x165e80=this;this[_0x5c9931(0xcf)][_0x5c9931(0xca)](function(){const _0x2ab87e=_0x5c9931;return _0x165e80[_0x2ab87e(0xb4)][_0x2ab87e(0xab)](_0xa64b9c,_0x5b5d75,{'indexName':_0x2fdc1d['indexName'],'indicesType':_0x2fdc1d[_0x2ab87e(0xcc)]})[_0x2ab87e(0xc1)](function(){const _0x5471c4=_0x2ab87e;logger[_0x5471c4(0xb7)](_0x5471c4(0xb3),_0xa64b9c,_0x5b5d75[_0x5471c4(0xbe)](','),_0x2fdc1d['indexName'],_0x2fdc1d[_0x5471c4(0xcc)]);})[_0x2ab87e(0xc2)](function(_0x19920a){const _0x306e01=_0x2ab87e;logger['info'](JSON[_0x306e01(0xb1)](_0x19920a));});});},Migration[a1157_0x15820c(0xc0)][a1157_0x15820c(0xbf)]=function(_0x1c7f5c,_0x450b1f){const _0x5e03f3=a1157_0x15820c,_0x1376a4=this;this[_0x5e03f3(0xcf)][_0x5e03f3(0xca)](function(){const _0x213f31=_0x5e03f3;return _0x1376a4[_0x213f31(0xb4)][_0x213f31(0xbf)](_0x1c7f5c,_0x450b1f)[_0x213f31(0xc1)](function(){const _0x25fb53=_0x213f31;logger[_0x25fb53(0xb7)](_0x25fb53(0xa9),_0x1c7f5c,_0x450b1f);})[_0x213f31(0xc2)](function(_0x14d423){const _0x5b695c=_0x213f31;logger[_0x5b695c(0xb7)](JSON[_0x5b695c(0xb1)](_0x14d423));});});},Migration['prototype'][a1157_0x15820c(0xcb)]=function(_0x2620ca){const _0x5d6acb=a1157_0x15820c,_0x511c97=this;this[_0x5d6acb(0xcf)][_0x5d6acb(0xca)](function(){const _0x27643d=_0x5d6acb;return _0x511c97[_0x27643d(0xb4)][_0x27643d(0xbb)]['query'](_0x2620ca)[_0x27643d(0xc1)](function(){const _0x531714=_0x27643d;logger[_0x531714(0xb7)]('query\x20%s',_0x2620ca);})[_0x27643d(0xc2)](function(_0x4fce89){const _0x232bc1=_0x27643d;logger[_0x232bc1(0xb7)](JSON[_0x232bc1(0xb1)](_0x4fce89));});});},Migration[a1157_0x15820c(0xc0)]['removeColumn']=function(_0x1b4278,_0x379d2f){const _0x291671=a1157_0x15820c,_0x27d7f2=this;this[_0x291671(0xcf)]['enqueue'](function(){const _0x47d62f=_0x291671;return _0x27d7f2[_0x47d62f(0xb4)][_0x47d62f(0xba)](_0x1b4278,_0x379d2f)[_0x47d62f(0xc1)](function(){const _0x2b9213=_0x47d62f;logger[_0x2b9213(0xb7)](_0x2b9213(0xbd),_0x379d2f,_0x1b4278);})[_0x47d62f(0xc2)](function(_0x273e40){const _0x5592fe=_0x47d62f;logger[_0x5592fe(0xb7)](util[_0x5592fe(0xae)](_0x273e40,{'showHidden':![],'depth':null}));});});},Migration[a1157_0x15820c(0xc0)][a1157_0x15820c(0xb9)]=function(_0x461abe,_0x39823b,_0x2259b8){const _0x34f18b=a1157_0x15820c,_0x45e0a3=this;this['sequence'][_0x34f18b(0xca)](function(){const _0x36620c=_0x34f18b;return _0x45e0a3[_0x36620c(0xb4)]['renameColumn'](_0x461abe,_0x39823b,_0x2259b8)[_0x36620c(0xc1)](function(){const _0x4f209e=_0x36620c;logger[_0x4f209e(0xb7)](_0x4f209e(0xbc),_0x39823b,_0x2259b8,_0x461abe);})[_0x36620c(0xc2)](function(_0x4b7c64){const _0x434086=_0x36620c;logger['info'](util[_0x434086(0xae)](_0x4b7c64,{'showHidden':![],'depth':null}));});});},Migration[a1157_0x15820c(0xc0)][a1157_0x15820c(0xb8)]=function(_0x11f803){const _0x1b908c=a1157_0x15820c;this[_0x1b908c(0xcf)][_0x1b908c(0xca)](function(){return _0x11f803();});},module[a1157_0x15820c(0xcd)]={'up':function(_0x5224d1,_0xebce6e){return new Promise(function(_0xaee186){const _0x537d8f=a1157_0x5c09,_0x1ba7f3=new Migration(_0x5224d1);_0x1ba7f3[_0x537d8f(0xb6)]('chat_interactions',_0x537d8f(0xad),{'type':_0xebce6e[_0x537d8f(0xaa)]}),_0x1ba7f3['addColumn'](_0x537d8f(0xc9),_0x537d8f(0xc5),{'type':_0xebce6e['STRING']}),_0x1ba7f3[_0x537d8f(0xc7)]('settings',_0x537d8f(0xc8),{'type':_0xebce6e[_0x537d8f(0xac)],'defaultValue':!![]}),_0x1ba7f3['final'](_0xaee186);});},'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 6280925..ebc0dcd 100644 --- a/server/migrations/2.4.11.js +++ b/server/migrations/2.4.11.js @@ -1 +1 @@ -const a1158_0x139f=['renameColumn','join','changeColumn','info','queryInterface','query\x20%s','prototype','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','finally','removeIndex\x20%s\x20%s','final','catch','tail','sequence','sequelize','addIndex','then','migration','Added\x20column\x20%s\x20to\x20%s','util','removeIndex','addColumn','exports','indicesType','inspect','enqueue','addIndex\x20%s\x20%s\x20%s\x20[%s]','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','query','removeColumn'];(function(_0x194390,_0x3673b3){const _0x139f6f=function(_0x1198e9){while(--_0x1198e9){_0x194390['push'](_0x194390['shift']());}};_0x139f6f(++_0x3673b3);}(a1158_0x139f,0xee));const a1158_0x1198=function(_0x194390,_0x3673b3){_0x194390=_0x194390-0x1ca;let _0x139f6f=a1158_0x139f[_0x194390];return _0x139f6f;};const a1158_0xc55b7a=a1158_0x1198;'use strict';const util=require(a1158_0xc55b7a(0x1d8)),logger=require(a1158_0xc55b7a(0x1ca))(a1158_0xc55b7a(0x1d6)),Sequence=function(){};Sequence[a1158_0xc55b7a(0x1ea)][a1158_0xc55b7a(0x1de)]=function(_0x27cc72){const _0x3f76d2=a1158_0xc55b7a;this[_0x3f76d2(0x1d1)]=this[_0x3f76d2(0x1d1)]?this[_0x3f76d2(0x1d1)][_0x3f76d2(0x1cd)](_0x27cc72):_0x27cc72();};const Migration=function(_0x92627d){const _0x3dc674=a1158_0xc55b7a;this[_0x3dc674(0x1e8)]=_0x92627d,this[_0x3dc674(0x1d2)]=new Sequence();};Migration[a1158_0xc55b7a(0x1ea)]['changeColumn']=function(_0xa48639,_0x548182,_0xe9e15b){const _0xaec963=a1158_0xc55b7a,_0x583eb6=this;this[_0xaec963(0x1d2)][_0xaec963(0x1de)](function(){const _0x10f1d4=_0xaec963;return _0x583eb6['queryInterface'][_0x10f1d4(0x1e6)](_0xa48639,_0x548182,_0xe9e15b)['then'](function(){const _0x11febe=_0x10f1d4;logger[_0x11febe(0x1e7)](_0x11febe(0x1cb),_0x548182,_0xa48639);})[_0x10f1d4(0x1d0)](function(_0x57a78a){const _0x53f0c3=_0x10f1d4;logger[_0x53f0c3(0x1e7)](JSON[_0x53f0c3(0x1cc)](_0x57a78a));});});},Migration[a1158_0xc55b7a(0x1ea)]['addColumn']=function(_0x421d2f,_0x4f3eba,_0x51bf90){const _0x4a7491=a1158_0xc55b7a,_0x10bc7b=this;this['sequence'][_0x4a7491(0x1de)](function(){const _0x22d593=_0x4a7491;return _0x10bc7b[_0x22d593(0x1e8)][_0x22d593(0x1da)](_0x421d2f,_0x4f3eba,_0x51bf90)['then'](function(){const _0x475b66=_0x22d593;logger[_0x475b66(0x1e7)](_0x475b66(0x1d7),_0x4f3eba,_0x421d2f);})['catch'](function(_0x1d8cb2){logger['info'](JSON['stringify'](_0x1d8cb2));});});},Migration[a1158_0xc55b7a(0x1ea)][a1158_0xc55b7a(0x1e1)]=function(_0x2de6cd){const _0x5960e3=a1158_0xc55b7a,_0x1b9a1=this;this[_0x5960e3(0x1d2)][_0x5960e3(0x1de)](function(){const _0x5f2e47=_0x5960e3;return _0x1b9a1['queryInterface'][_0x5f2e47(0x1e1)](_0x2de6cd,{'force':!![]})[_0x5f2e47(0x1d5)](function(){logger['info']('table\x20dropped\x20%s',_0x2de6cd);})['catch'](function(_0x766783){const _0x2bd0f0=_0x5f2e47;logger[_0x2bd0f0(0x1e7)](JSON[_0x2bd0f0(0x1cc)](_0x766783));});});},Migration[a1158_0xc55b7a(0x1ea)]['addIndex']=function(_0x1d42f8,_0x21c6c5,_0x312488){const _0x43eb62=this;this['sequence']['enqueue'](function(){const _0x582989=a1158_0x1198;return _0x43eb62['queryInterface'][_0x582989(0x1d4)](_0x1d42f8,_0x21c6c5,{'indexName':_0x312488['indexName'],'indicesType':_0x312488[_0x582989(0x1dc)]})[_0x582989(0x1d5)](function(){const _0xd4c974=_0x582989;logger[_0xd4c974(0x1e7)](_0xd4c974(0x1df),_0x1d42f8,_0x21c6c5[_0xd4c974(0x1e5)](','),_0x312488['indexName'],_0x312488[_0xd4c974(0x1dc)]);})[_0x582989(0x1d0)](function(_0x13bfd8){const _0xc5596b=_0x582989;logger['info'](JSON[_0xc5596b(0x1cc)](_0x13bfd8));});});},Migration[a1158_0xc55b7a(0x1ea)][a1158_0xc55b7a(0x1d9)]=function(_0x438ad2,_0x41f52f){const _0x56bf0a=a1158_0xc55b7a,_0x41004e=this;this[_0x56bf0a(0x1d2)][_0x56bf0a(0x1de)](function(){const _0x4cfb2e=_0x56bf0a;return _0x41004e[_0x4cfb2e(0x1e8)][_0x4cfb2e(0x1d9)](_0x438ad2,_0x41f52f)[_0x4cfb2e(0x1d5)](function(){const _0x26ca3d=_0x4cfb2e;logger['info'](_0x26ca3d(0x1ce),_0x438ad2,_0x41f52f);})[_0x4cfb2e(0x1d0)](function(_0x3413c0){const _0x2d9cb2=_0x4cfb2e;logger[_0x2d9cb2(0x1e7)](JSON['stringify'](_0x3413c0));});});},Migration[a1158_0xc55b7a(0x1ea)][a1158_0xc55b7a(0x1e2)]=function(_0x2b983e){const _0x17d214=a1158_0xc55b7a,_0x5a9e7e=this;this[_0x17d214(0x1d2)][_0x17d214(0x1de)](function(){const _0x2f7ea2=_0x17d214;return _0x5a9e7e[_0x2f7ea2(0x1e8)][_0x2f7ea2(0x1d3)][_0x2f7ea2(0x1e2)](_0x2b983e)[_0x2f7ea2(0x1d5)](function(){const _0x53839c=_0x2f7ea2;logger[_0x53839c(0x1e7)](_0x53839c(0x1e9),_0x2b983e);})['catch'](function(_0x53a4a8){const _0x36fc25=_0x2f7ea2;logger[_0x36fc25(0x1e7)](JSON['stringify'](_0x53a4a8));});});},Migration[a1158_0xc55b7a(0x1ea)]['removeColumn']=function(_0x15bb84,_0x259591){const _0x2630b6=a1158_0xc55b7a,_0x494d96=this;this[_0x2630b6(0x1d2)][_0x2630b6(0x1de)](function(){const _0x4c572c=_0x2630b6;return _0x494d96[_0x4c572c(0x1e8)][_0x4c572c(0x1e3)](_0x15bb84,_0x259591)[_0x4c572c(0x1d5)](function(){const _0x4397ad=_0x4c572c;logger[_0x4397ad(0x1e7)]('Removed\x20column\x20%s\x20from\x20%s',_0x259591,_0x15bb84);})[_0x4c572c(0x1d0)](function(_0x485793){const _0x583201=_0x4c572c;logger['info'](util[_0x583201(0x1dd)](_0x485793,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1158_0xc55b7a(0x1e4)]=function(_0x1c4cf5,_0x116a4e,_0x56d934){const _0x3c6b95=a1158_0xc55b7a,_0x5181c2=this;this[_0x3c6b95(0x1d2)]['enqueue'](function(){const _0x42c306=_0x3c6b95;return _0x5181c2[_0x42c306(0x1e8)][_0x42c306(0x1e4)](_0x1c4cf5,_0x116a4e,_0x56d934)[_0x42c306(0x1d5)](function(){const _0x83d882=_0x42c306;logger['info'](_0x83d882(0x1e0),_0x116a4e,_0x56d934,_0x1c4cf5);})[_0x42c306(0x1d0)](function(_0xf43066){const _0x2d54b9=_0x42c306;logger[_0x2d54b9(0x1e7)](util[_0x2d54b9(0x1dd)](_0xf43066,{'showHidden':![],'depth':null}));});});},Migration[a1158_0xc55b7a(0x1ea)]['final']=function(_0x2cd2fe){const _0x509cce=a1158_0xc55b7a;this[_0x509cce(0x1d2)]['enqueue'](function(){return _0x2cd2fe();});},module[a1158_0xc55b7a(0x1db)]={'up':function(_0x42d32d){return new Promise(function(_0x380fd3){const _0x33d1f3=a1158_0x1198,_0x5a2b8c=new Migration(_0x42d32d);_0x5a2b8c[_0x33d1f3(0x1cf)](_0x380fd3);});},'down':function(){}}; \ No newline at end of file +const a1158_0x36b2=['then','final','stringify','util','finally','inspect','sequence','renameColumn','../config/logger','enqueue','join','indicesType','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','dropTable','changeColumn','removeIndex\x20%s\x20%s','exports','info','prototype','addColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequelize','catch','queryInterface','removeColumn','query\x20%s','Added\x20column\x20%s\x20to\x20%s','query','addIndex'];(function(_0x25d622,_0x2aa80c){const _0x36b236=function(_0x4a442e){while(--_0x4a442e){_0x25d622['push'](_0x25d622['shift']());}};_0x36b236(++_0x2aa80c);}(a1158_0x36b2,0xea));const a1158_0x4a44=function(_0x25d622,_0x2aa80c){_0x25d622=_0x25d622-0x194;let _0x36b236=a1158_0x36b2[_0x25d622];return _0x36b236;};const a1158_0x4c158a=a1158_0x4a44;'use strict';const util=require(a1158_0x4c158a(0x1ad)),logger=require(a1158_0x4c158a(0x1b2))('migration'),Sequence=function(){};Sequence[a1158_0x4c158a(0x19f)][a1158_0x4c158a(0x1b3)]=function(_0x2272a2){const _0x101bb6=a1158_0x4c158a;this[_0x101bb6(0x197)]=this[_0x101bb6(0x197)]?this[_0x101bb6(0x197)][_0x101bb6(0x1ae)](_0x2272a2):_0x2272a2();};const Migration=function(_0x32c49e){const _0x338959=a1158_0x4c158a;this[_0x338959(0x1a4)]=_0x32c49e,this[_0x338959(0x1b0)]=new Sequence();};Migration['prototype'][a1158_0x4c158a(0x19b)]=function(_0x2215b1,_0x2541ed,_0x58f262){const _0x4939fd=a1158_0x4c158a,_0x50dea4=this;this[_0x4939fd(0x1b0)][_0x4939fd(0x1b3)](function(){const _0x31c758=_0x4939fd;return _0x50dea4[_0x31c758(0x1a4)][_0x31c758(0x19b)](_0x2215b1,_0x2541ed,_0x58f262)[_0x31c758(0x1aa)](function(){const _0x37c21e=_0x31c758;logger['info'](_0x37c21e(0x198),_0x2541ed,_0x2215b1);})['catch'](function(_0x4683d1){const _0xdefbdd=_0x31c758;logger[_0xdefbdd(0x19e)](JSON['stringify'](_0x4683d1));});});},Migration[a1158_0x4c158a(0x19f)][a1158_0x4c158a(0x1a0)]=function(_0x30e517,_0x22ad1f,_0x55ff74){const _0x420ad1=a1158_0x4c158a,_0x2cb54f=this;this[_0x420ad1(0x1b0)][_0x420ad1(0x1b3)](function(){const _0x43ece4=_0x420ad1;return _0x2cb54f[_0x43ece4(0x1a4)][_0x43ece4(0x1a0)](_0x30e517,_0x22ad1f,_0x55ff74)['then'](function(){const _0x4c8a68=_0x43ece4;logger[_0x4c8a68(0x19e)](_0x4c8a68(0x1a7),_0x22ad1f,_0x30e517);})[_0x43ece4(0x1a3)](function(_0x4f0a2d){const _0x15f27f=_0x43ece4;logger[_0x15f27f(0x19e)](JSON['stringify'](_0x4f0a2d));});});},Migration['prototype'][a1158_0x4c158a(0x19a)]=function(_0x67ea44){const _0x40ce70=a1158_0x4c158a,_0x23481c=this;this[_0x40ce70(0x1b0)][_0x40ce70(0x1b3)](function(){const _0x7aaa49=_0x40ce70;return _0x23481c['queryInterface']['dropTable'](_0x67ea44,{'force':!![]})[_0x7aaa49(0x1aa)](function(){const _0x5ca81d=_0x7aaa49;logger[_0x5ca81d(0x19e)]('table\x20dropped\x20%s',_0x67ea44);})[_0x7aaa49(0x1a3)](function(_0x590dfd){const _0x4068ed=_0x7aaa49;logger[_0x4068ed(0x19e)](JSON['stringify'](_0x590dfd));});});},Migration[a1158_0x4c158a(0x19f)]['addIndex']=function(_0x5293ad,_0x193e22,_0x4efe97){const _0x16eee0=a1158_0x4c158a,_0x54d09d=this;this[_0x16eee0(0x1b0)][_0x16eee0(0x1b3)](function(){const _0x2f9fc7=_0x16eee0;return _0x54d09d[_0x2f9fc7(0x1a4)][_0x2f9fc7(0x1a9)](_0x5293ad,_0x193e22,{'indexName':_0x4efe97['indexName'],'indicesType':_0x4efe97[_0x2f9fc7(0x195)]})[_0x2f9fc7(0x1aa)](function(){const _0x153302=_0x2f9fc7;logger[_0x153302(0x19e)](_0x153302(0x1a1),_0x5293ad,_0x193e22[_0x153302(0x194)](','),_0x4efe97['indexName'],_0x4efe97[_0x153302(0x195)]);})[_0x2f9fc7(0x1a3)](function(_0x2b5e30){const _0x55c930=_0x2f9fc7;logger[_0x55c930(0x19e)](JSON[_0x55c930(0x1ac)](_0x2b5e30));});});},Migration[a1158_0x4c158a(0x19f)]['removeIndex']=function(_0xaac763,_0x5b2c65){const _0x14f58e=a1158_0x4c158a,_0x248ffd=this;this[_0x14f58e(0x1b0)]['enqueue'](function(){const _0x4f341c=_0x14f58e;return _0x248ffd['queryInterface']['removeIndex'](_0xaac763,_0x5b2c65)[_0x4f341c(0x1aa)](function(){const _0x631215=_0x4f341c;logger[_0x631215(0x19e)](_0x631215(0x19c),_0xaac763,_0x5b2c65);})[_0x4f341c(0x1a3)](function(_0x41672e){const _0x339b7c=_0x4f341c;logger[_0x339b7c(0x19e)](JSON[_0x339b7c(0x1ac)](_0x41672e));});});},Migration[a1158_0x4c158a(0x19f)][a1158_0x4c158a(0x1a8)]=function(_0x2fcfcd){const _0x46ac1c=a1158_0x4c158a,_0x5a1f93=this;this['sequence'][_0x46ac1c(0x1b3)](function(){const _0x15d561=_0x46ac1c;return _0x5a1f93['queryInterface'][_0x15d561(0x1a2)]['query'](_0x2fcfcd)['then'](function(){const _0x387eeb=_0x15d561;logger[_0x387eeb(0x19e)](_0x387eeb(0x1a6),_0x2fcfcd);})['catch'](function(_0xecd7e0){const _0x34a6a9=_0x15d561;logger[_0x34a6a9(0x19e)](JSON[_0x34a6a9(0x1ac)](_0xecd7e0));});});},Migration[a1158_0x4c158a(0x19f)]['removeColumn']=function(_0x4eea88,_0x53e6d3){const _0x34b7a8=a1158_0x4c158a,_0x4e5420=this;this[_0x34b7a8(0x1b0)][_0x34b7a8(0x1b3)](function(){const _0x10ffb0=_0x34b7a8;return _0x4e5420[_0x10ffb0(0x1a4)][_0x10ffb0(0x1a5)](_0x4eea88,_0x53e6d3)[_0x10ffb0(0x1aa)](function(){const _0x2a6b89=_0x10ffb0;logger[_0x2a6b89(0x19e)](_0x2a6b89(0x199),_0x53e6d3,_0x4eea88);})[_0x10ffb0(0x1a3)](function(_0x16ebf4){const _0xd904f9=_0x10ffb0;logger['info'](util[_0xd904f9(0x1af)](_0x16ebf4,{'showHidden':![],'depth':null}));});});},Migration[a1158_0x4c158a(0x19f)]['renameColumn']=function(_0x5211fe,_0x5b6b7b,_0xdaa930){const _0x26a3c4=a1158_0x4c158a,_0x265ddc=this;this[_0x26a3c4(0x1b0)]['enqueue'](function(){const _0x4eee71=_0x26a3c4;return _0x265ddc['queryInterface'][_0x4eee71(0x1b1)](_0x5211fe,_0x5b6b7b,_0xdaa930)[_0x4eee71(0x1aa)](function(){const _0x4fceee=_0x4eee71;logger[_0x4fceee(0x19e)](_0x4fceee(0x196),_0x5b6b7b,_0xdaa930,_0x5211fe);})['catch'](function(_0x45a2b8){const _0x2bc63c=_0x4eee71;logger[_0x2bc63c(0x19e)](util[_0x2bc63c(0x1af)](_0x45a2b8,{'showHidden':![],'depth':null}));});});},Migration[a1158_0x4c158a(0x19f)][a1158_0x4c158a(0x1ab)]=function(_0x174dce){const _0x527704=a1158_0x4c158a;this[_0x527704(0x1b0)][_0x527704(0x1b3)](function(){return _0x174dce();});},module[a1158_0x4c158a(0x19d)]={'up':function(_0x1c55dd){return new Promise(function(_0x406e00){const _0x400945=new Migration(_0x1c55dd);_0x400945['final'](_0x406e00);});},'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 e523f99..d00c46a 100644 --- a/server/migrations/2.4.12.js +++ b/server/migrations/2.4.12.js @@ -1 +1 @@ -const a1159_0x5e21=['prototype','query\x20%s','addColumn','query','sequelize','Removed\x20column\x20%s\x20from\x20%s','exports','tail','final','dropTable','renameColumn','enqueue','../config/logger','removeIndex\x20%s\x20%s','sequence','inspect','removeIndex','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','info','Changed\x20column\x20%s\x20in\x20table\x20%s','indicesType','addIndex','changeColumn','removeColumn','join','stringify','UPDATE\x20tools_actions\x20SET\x20tools_actions.data5\x20=\x20\x225\x22\x20WHERE\x20tools_actions.action\x20=\x20\x22urlForward\x22','addIndex\x20%s\x20%s\x20%s\x20[%s]','indexName','util','settings','queryInterface','INTEGER','catch'];(function(_0x527414,_0x5af71a){const _0x5e218a=function(_0x54085d){while(--_0x54085d){_0x527414['push'](_0x527414['shift']());}};_0x5e218a(++_0x5af71a);}(a1159_0x5e21,0x6a));const a1159_0x5408=function(_0x527414,_0x5af71a){_0x527414=_0x527414-0x1a9;let _0x5e218a=a1159_0x5e21[_0x527414];return _0x5e218a;};const a1159_0x2bea56=a1159_0x5408;'use strict';const util=require(a1159_0x2bea56(0x1a9)),logger=require(a1159_0x2bea56(0x1ba))('migration'),Sequence=function(){};Sequence[a1159_0x2bea56(0x1ae)][a1159_0x2bea56(0x1b9)]=function(_0x41d0ca){const _0x53a766=a1159_0x2bea56;this[_0x53a766(0x1b5)]=this[_0x53a766(0x1b5)]?this['tail']['finally'](_0x41d0ca):_0x41d0ca();};const Migration=function(_0x568e15){this['queryInterface']=_0x568e15,this['sequence']=new Sequence();};Migration[a1159_0x2bea56(0x1ae)][a1159_0x2bea56(0x1c7)]=function(_0x215b20,_0x456132,_0x1a0850){const _0x27e604=a1159_0x2bea56,_0x59e6f9=this;this[_0x27e604(0x1bc)][_0x27e604(0x1b9)](function(){const _0x501cb4=_0x27e604;return _0x59e6f9[_0x501cb4(0x1ab)][_0x501cb4(0x1c7)](_0x215b20,_0x456132,_0x1a0850)['then'](function(){const _0x3d649f=_0x501cb4;logger[_0x3d649f(0x1c3)](_0x3d649f(0x1c4),_0x456132,_0x215b20);})['catch'](function(_0x378196){const _0x8db596=_0x501cb4;logger[_0x8db596(0x1c3)](JSON[_0x8db596(0x1ca)](_0x378196));});});},Migration['prototype']['addColumn']=function(_0x41d3e9,_0xb22155,_0x7d5ee5){const _0x3b4f01=a1159_0x2bea56,_0x135b39=this;this[_0x3b4f01(0x1bc)][_0x3b4f01(0x1b9)](function(){const _0xaf651=_0x3b4f01;return _0x135b39[_0xaf651(0x1ab)]['addColumn'](_0x41d3e9,_0xb22155,_0x7d5ee5)[_0xaf651(0x1bf)](function(){const _0x16acb8=_0xaf651;logger[_0x16acb8(0x1c3)](_0x16acb8(0x1c2),_0xb22155,_0x41d3e9);})[_0xaf651(0x1ad)](function(_0x1089a1){const _0x4444e5=_0xaf651;logger[_0x4444e5(0x1c3)](JSON[_0x4444e5(0x1ca)](_0x1089a1));});});},Migration[a1159_0x2bea56(0x1ae)]['dropTable']=function(_0x82a609){const _0x175917=a1159_0x2bea56,_0x48f3af=this;this[_0x175917(0x1bc)]['enqueue'](function(){const _0x2ff8c0=_0x175917;return _0x48f3af['queryInterface'][_0x2ff8c0(0x1b7)](_0x82a609,{'force':!![]})[_0x2ff8c0(0x1bf)](function(){const _0x3016b9=_0x2ff8c0;logger['info'](_0x3016b9(0x1c1),_0x82a609);})[_0x2ff8c0(0x1ad)](function(_0x5b3f9f){const _0xafd53d=_0x2ff8c0;logger[_0xafd53d(0x1c3)](JSON[_0xafd53d(0x1ca)](_0x5b3f9f));});});},Migration[a1159_0x2bea56(0x1ae)][a1159_0x2bea56(0x1c6)]=function(_0xa766fb,_0x3d0042,_0x29805b){const _0xe373f5=a1159_0x2bea56,_0x28204f=this;this[_0xe373f5(0x1bc)]['enqueue'](function(){const _0x519742=_0xe373f5;return _0x28204f[_0x519742(0x1ab)][_0x519742(0x1c6)](_0xa766fb,_0x3d0042,{'indexName':_0x29805b[_0x519742(0x1cd)],'indicesType':_0x29805b[_0x519742(0x1c5)]})[_0x519742(0x1bf)](function(){const _0xad7c06=_0x519742;logger[_0xad7c06(0x1c3)](_0xad7c06(0x1cc),_0xa766fb,_0x3d0042[_0xad7c06(0x1c9)](','),_0x29805b[_0xad7c06(0x1cd)],_0x29805b[_0xad7c06(0x1c5)]);})[_0x519742(0x1ad)](function(_0x13d009){const _0x305bec=_0x519742;logger[_0x305bec(0x1c3)](JSON[_0x305bec(0x1ca)](_0x13d009));});});},Migration[a1159_0x2bea56(0x1ae)][a1159_0x2bea56(0x1be)]=function(_0x5e3a83,_0x1bc8fa){const _0x5ef7a3=a1159_0x2bea56,_0xd4e705=this;this[_0x5ef7a3(0x1bc)][_0x5ef7a3(0x1b9)](function(){const _0x3558cc=_0x5ef7a3;return _0xd4e705[_0x3558cc(0x1ab)][_0x3558cc(0x1be)](_0x5e3a83,_0x1bc8fa)[_0x3558cc(0x1bf)](function(){const _0x2ebc8e=_0x3558cc;logger[_0x2ebc8e(0x1c3)](_0x2ebc8e(0x1bb),_0x5e3a83,_0x1bc8fa);})[_0x3558cc(0x1ad)](function(_0x3d3c10){const _0x4287fa=_0x3558cc;logger[_0x4287fa(0x1c3)](JSON['stringify'](_0x3d3c10));});});},Migration[a1159_0x2bea56(0x1ae)][a1159_0x2bea56(0x1b1)]=function(_0x42b79e){const _0x4d520f=a1159_0x2bea56,_0x525575=this;this[_0x4d520f(0x1bc)]['enqueue'](function(){const _0x23d8e7=_0x4d520f;return _0x525575['queryInterface'][_0x23d8e7(0x1b2)][_0x23d8e7(0x1b1)](_0x42b79e)[_0x23d8e7(0x1bf)](function(){const _0x401bec=_0x23d8e7;logger[_0x401bec(0x1c3)](_0x401bec(0x1af),_0x42b79e);})[_0x23d8e7(0x1ad)](function(_0x3315fa){const _0x520eea=_0x23d8e7;logger[_0x520eea(0x1c3)](JSON[_0x520eea(0x1ca)](_0x3315fa));});});},Migration['prototype'][a1159_0x2bea56(0x1c8)]=function(_0x12c8af,_0x1e2f29){const _0x53c4ee=a1159_0x2bea56,_0x4d3bb9=this;this[_0x53c4ee(0x1bc)][_0x53c4ee(0x1b9)](function(){const _0x5aec88=_0x53c4ee;return _0x4d3bb9[_0x5aec88(0x1ab)]['removeColumn'](_0x12c8af,_0x1e2f29)[_0x5aec88(0x1bf)](function(){const _0x4bbb11=_0x5aec88;logger[_0x4bbb11(0x1c3)](_0x4bbb11(0x1b3),_0x1e2f29,_0x12c8af);})['catch'](function(_0x26ca0c){const _0x42af96=_0x5aec88;logger[_0x42af96(0x1c3)](util[_0x42af96(0x1bd)](_0x26ca0c,{'showHidden':![],'depth':null}));});});},Migration[a1159_0x2bea56(0x1ae)]['renameColumn']=function(_0x21d784,_0x242de8,_0x291ef4){const _0x5b3ef1=a1159_0x2bea56,_0x4039b5=this;this['sequence'][_0x5b3ef1(0x1b9)](function(){const _0x17415c=_0x5b3ef1;return _0x4039b5['queryInterface'][_0x17415c(0x1b8)](_0x21d784,_0x242de8,_0x291ef4)['then'](function(){const _0x50ed8e=_0x17415c;logger[_0x50ed8e(0x1c3)](_0x50ed8e(0x1c0),_0x242de8,_0x291ef4,_0x21d784);})[_0x17415c(0x1ad)](function(_0x1ccafe){const _0x2a98de=_0x17415c;logger[_0x2a98de(0x1c3)](util[_0x2a98de(0x1bd)](_0x1ccafe,{'showHidden':![],'depth':null}));});});},Migration[a1159_0x2bea56(0x1ae)][a1159_0x2bea56(0x1b6)]=function(_0x360c4b){this['sequence']['enqueue'](function(){return _0x360c4b();});},module[a1159_0x2bea56(0x1b4)]={'up':function(_0x1309c6,_0x288f74){return new Promise(function(_0x3a5bec){const _0x218190=a1159_0x5408,_0x50531c=new Migration(_0x1309c6);_0x50531c[_0x218190(0x1b0)](_0x218190(0x1aa),'loginMailFrequency',{'type':_0x288f74[_0x218190(0x1ac)],'defaultValue':0xa}),_0x50531c[_0x218190(0x1b1)](_0x218190(0x1cb)),_0x50531c['final'](_0x3a5bec);});},'down':function(){}}; \ No newline at end of file +const a1159_0x46ff=['util','removeIndex','indicesType','renameColumn','finally','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','prototype','inspect','exports','indexName','queryInterface','INTEGER','addIndex','catch','dropTable','addColumn','table\x20dropped\x20%s','settings','Added\x20column\x20%s\x20to\x20%s','query','Removed\x20column\x20%s\x20from\x20%s','final','info','sequence','tail','then','removeColumn','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','UPDATE\x20tools_actions\x20SET\x20tools_actions.data5\x20=\x20\x225\x22\x20WHERE\x20tools_actions.action\x20=\x20\x22urlForward\x22','migration','join'];(function(_0x38b3e0,_0x3a60de){const _0x46ffa0=function(_0xecbb39){while(--_0xecbb39){_0x38b3e0['push'](_0x38b3e0['shift']());}};_0x46ffa0(++_0x3a60de);}(a1159_0x46ff,0xd3));const a1159_0xecbb=function(_0x38b3e0,_0x3a60de){_0x38b3e0=_0x38b3e0-0xdd;let _0x46ffa0=a1159_0x46ff[_0x38b3e0];return _0x46ffa0;};const a1159_0x55fa4b=a1159_0xecbb;'use strict';const util=require(a1159_0x55fa4b(0xf8)),logger=require('../config/logger')(a1159_0x55fa4b(0xf6)),Sequence=function(){};Sequence[a1159_0x55fa4b(0xde)][a1159_0x55fa4b(0xdd)]=function(_0x38fe0c){const _0x4b68b7=a1159_0x55fa4b;this['tail']=this[_0x4b68b7(0xf0)]?this[_0x4b68b7(0xf0)][_0x4b68b7(0xfc)](_0x38fe0c):_0x38fe0c();};const Migration=function(_0x23e606){const _0x5ab3cd=a1159_0x55fa4b;this[_0x5ab3cd(0xe2)]=_0x23e606,this[_0x5ab3cd(0xef)]=new Sequence();};Migration[a1159_0x55fa4b(0xde)][a1159_0x55fa4b(0xfd)]=function(_0x5813e9,_0xb49d3c,_0x11ee38){const _0x54dcd4=a1159_0x55fa4b,_0x471377=this;this[_0x54dcd4(0xef)][_0x54dcd4(0xdd)](function(){const _0x389b50=_0x54dcd4;return _0x471377[_0x389b50(0xe2)][_0x389b50(0xfd)](_0x5813e9,_0xb49d3c,_0x11ee38)[_0x389b50(0xf1)](function(){const _0x49acd6=_0x389b50;logger['info'](_0x49acd6(0xf4),_0xb49d3c,_0x5813e9);})[_0x389b50(0xe5)](function(_0x27bbac){const _0x3ce51a=_0x389b50;logger['info'](JSON[_0x3ce51a(0xf3)](_0x27bbac));});});},Migration[a1159_0x55fa4b(0xde)][a1159_0x55fa4b(0xe7)]=function(_0x30a01e,_0x23177b,_0x399bb3){const _0x420ac3=a1159_0x55fa4b,_0x256f1b=this;this['sequence'][_0x420ac3(0xdd)](function(){const _0x3a35a3=_0x420ac3;return _0x256f1b[_0x3a35a3(0xe2)][_0x3a35a3(0xe7)](_0x30a01e,_0x23177b,_0x399bb3)['then'](function(){const _0x319e36=_0x3a35a3;logger['info'](_0x319e36(0xea),_0x23177b,_0x30a01e);})['catch'](function(_0x326b9b){const _0x30d5b6=_0x3a35a3;logger['info'](JSON[_0x30d5b6(0xf3)](_0x326b9b));});});},Migration[a1159_0x55fa4b(0xde)][a1159_0x55fa4b(0xe6)]=function(_0x469dbb){const _0x133f73=a1159_0x55fa4b,_0x1da31c=this;this[_0x133f73(0xef)][_0x133f73(0xdd)](function(){const _0x5301b0=_0x133f73;return _0x1da31c[_0x5301b0(0xe2)][_0x5301b0(0xe6)](_0x469dbb,{'force':!![]})['then'](function(){const _0x4be74c=_0x5301b0;logger[_0x4be74c(0xee)](_0x4be74c(0xe8),_0x469dbb);})[_0x5301b0(0xe5)](function(_0x1d25d1){logger['info'](JSON['stringify'](_0x1d25d1));});});},Migration['prototype'][a1159_0x55fa4b(0xe4)]=function(_0x4b75f9,_0x16b16a,_0xd2b9f5){const _0x452149=a1159_0x55fa4b,_0x251d40=this;this[_0x452149(0xef)][_0x452149(0xdd)](function(){const _0x1a31e3=_0x452149;return _0x251d40[_0x1a31e3(0xe2)][_0x1a31e3(0xe4)](_0x4b75f9,_0x16b16a,{'indexName':_0xd2b9f5[_0x1a31e3(0xe1)],'indicesType':_0xd2b9f5['indicesType']})[_0x1a31e3(0xf1)](function(){const _0x4bce21=_0x1a31e3;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x4b75f9,_0x16b16a[_0x4bce21(0xf7)](','),_0xd2b9f5['indexName'],_0xd2b9f5[_0x4bce21(0xfa)]);})['catch'](function(_0x346e08){const _0x5bf2a4=_0x1a31e3;logger[_0x5bf2a4(0xee)](JSON[_0x5bf2a4(0xf3)](_0x346e08));});});},Migration[a1159_0x55fa4b(0xde)][a1159_0x55fa4b(0xf9)]=function(_0x2207ba,_0x311305){const _0x2171a9=a1159_0x55fa4b,_0x39690f=this;this[_0x2171a9(0xef)][_0x2171a9(0xdd)](function(){const _0x279197=_0x2171a9;return _0x39690f['queryInterface'][_0x279197(0xf9)](_0x2207ba,_0x311305)[_0x279197(0xf1)](function(){const _0x5b87e7=_0x279197;logger[_0x5b87e7(0xee)]('removeIndex\x20%s\x20%s',_0x2207ba,_0x311305);})[_0x279197(0xe5)](function(_0x1fd0de){const _0x26ed19=_0x279197;logger['info'](JSON[_0x26ed19(0xf3)](_0x1fd0de));});});},Migration[a1159_0x55fa4b(0xde)][a1159_0x55fa4b(0xeb)]=function(_0x42cea9){const _0x139419=a1159_0x55fa4b,_0x559ba3=this;this['sequence'][_0x139419(0xdd)](function(){const _0x28e994=_0x139419;return _0x559ba3['queryInterface']['sequelize'][_0x28e994(0xeb)](_0x42cea9)[_0x28e994(0xf1)](function(){const _0x122690=_0x28e994;logger[_0x122690(0xee)]('query\x20%s',_0x42cea9);})[_0x28e994(0xe5)](function(_0x307716){const _0x316981=_0x28e994;logger[_0x316981(0xee)](JSON[_0x316981(0xf3)](_0x307716));});});},Migration[a1159_0x55fa4b(0xde)][a1159_0x55fa4b(0xf2)]=function(_0x4b6ac4,_0x404825){const _0x67e3e8=a1159_0x55fa4b,_0x2697fb=this;this[_0x67e3e8(0xef)][_0x67e3e8(0xdd)](function(){const _0x508b99=_0x67e3e8;return _0x2697fb[_0x508b99(0xe2)][_0x508b99(0xf2)](_0x4b6ac4,_0x404825)[_0x508b99(0xf1)](function(){const _0x58c75f=_0x508b99;logger[_0x58c75f(0xee)](_0x58c75f(0xec),_0x404825,_0x4b6ac4);})[_0x508b99(0xe5)](function(_0x422dab){const _0x47b34e=_0x508b99;logger['info'](util[_0x47b34e(0xdf)](_0x422dab,{'showHidden':![],'depth':null}));});});},Migration[a1159_0x55fa4b(0xde)][a1159_0x55fa4b(0xfb)]=function(_0x44564a,_0xcaaf1f,_0x30c74a){const _0x95d4d5=a1159_0x55fa4b,_0x34c969=this;this[_0x95d4d5(0xef)]['enqueue'](function(){const _0x459785=_0x95d4d5;return _0x34c969[_0x459785(0xe2)][_0x459785(0xfb)](_0x44564a,_0xcaaf1f,_0x30c74a)['then'](function(){const _0x1fb95c=_0x459785;logger['info'](_0x1fb95c(0xfe),_0xcaaf1f,_0x30c74a,_0x44564a);})[_0x459785(0xe5)](function(_0x547e03){const _0x129ce7=_0x459785;logger[_0x129ce7(0xee)](util[_0x129ce7(0xdf)](_0x547e03,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x13a250){const _0x4f4c49=a1159_0x55fa4b;this[_0x4f4c49(0xef)][_0x4f4c49(0xdd)](function(){return _0x13a250();});},module[a1159_0x55fa4b(0xe0)]={'up':function(_0x281e9d,_0x50406d){return new Promise(function(_0x1c12ab){const _0x4f338c=a1159_0xecbb,_0x3c5da7=new Migration(_0x281e9d);_0x3c5da7[_0x4f338c(0xe7)](_0x4f338c(0xe9),'loginMailFrequency',{'type':_0x50406d[_0x4f338c(0xe3)],'defaultValue':0xa}),_0x3c5da7[_0x4f338c(0xeb)](_0x4f338c(0xf5)),_0x3c5da7[_0x4f338c(0xed)](_0x1c12ab);});},'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 bf1a395..a26fad5 100644 --- a/server/migrations/2.4.13.js +++ b/server/migrations/2.4.13.js @@ -1 +1 @@ -const a1160_0x367f=['join','final','queryInterface','catch','info','addColumn','indexName','../config/logger','renameColumn','enqueue','inspect','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','sendUnpauseOnSubmit','Changed\x20column\x20%s\x20in\x20table\x20%s','BOOLEAN','query','removeIndex','jscripty_projects','prototype','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','util','changeColumn','dropTable','then','indicesType','addIndex','sequence','tail','sequelize','stringify','exports'];(function(_0xf760ea,_0x28522b){const _0x367fea=function(_0x4f296d){while(--_0x4f296d){_0xf760ea['push'](_0xf760ea['shift']());}};_0x367fea(++_0x28522b);}(a1160_0x367f,0x143));const a1160_0x4f29=function(_0xf760ea,_0x28522b){_0xf760ea=_0xf760ea-0x92;let _0x367fea=a1160_0x367f[_0xf760ea];return _0x367fea;};const a1160_0x28261d=a1160_0x4f29;'use strict';const util=require(a1160_0x28261d(0xaf)),logger=require(a1160_0x28261d(0xa0))('migration'),Sequence=function(){};Sequence[a1160_0x28261d(0xac)][a1160_0x28261d(0xa2)]=function(_0x56a77f){const _0x294e52=a1160_0x28261d;this[_0x294e52(0x95)]=this[_0x294e52(0x95)]?this['tail']['finally'](_0x56a77f):_0x56a77f();};const Migration=function(_0x5a96f3){const _0x5aaa0e=a1160_0x28261d;this[_0x5aaa0e(0x9b)]=_0x5a96f3,this[_0x5aaa0e(0x94)]=new Sequence();};Migration[a1160_0x28261d(0xac)][a1160_0x28261d(0xb0)]=function(_0x34e67d,_0x79a45,_0x26e91a){const _0x4b2fa6=a1160_0x28261d,_0x4000d8=this;this[_0x4b2fa6(0x94)][_0x4b2fa6(0xa2)](function(){const _0x222d76=_0x4b2fa6;return _0x4000d8[_0x222d76(0x9b)]['changeColumn'](_0x34e67d,_0x79a45,_0x26e91a)['then'](function(){const _0x579574=_0x222d76;logger['info'](_0x579574(0xa7),_0x79a45,_0x34e67d);})[_0x222d76(0x9c)](function(_0x1bf26a){const _0x11e5ad=_0x222d76;logger[_0x11e5ad(0x9d)](JSON[_0x11e5ad(0x97)](_0x1bf26a));});});},Migration[a1160_0x28261d(0xac)]['addColumn']=function(_0x43c469,_0x472397,_0x2d2a05){const _0x6980ad=a1160_0x28261d,_0x1b42cb=this;this[_0x6980ad(0x94)][_0x6980ad(0xa2)](function(){const _0x1da4bc=_0x6980ad;return _0x1b42cb[_0x1da4bc(0x9b)][_0x1da4bc(0x9e)](_0x43c469,_0x472397,_0x2d2a05)[_0x1da4bc(0xb2)](function(){const _0x315189=_0x1da4bc;logger[_0x315189(0x9d)](_0x315189(0xad),_0x472397,_0x43c469);})[_0x1da4bc(0x9c)](function(_0x231ea1){const _0x4dfd93=_0x1da4bc;logger['info'](JSON[_0x4dfd93(0x97)](_0x231ea1));});});},Migration[a1160_0x28261d(0xac)][a1160_0x28261d(0xb1)]=function(_0x53c02e){const _0x2c4a07=a1160_0x28261d,_0x18632a=this;this[_0x2c4a07(0x94)]['enqueue'](function(){const _0x37ed3f=_0x2c4a07;return _0x18632a[_0x37ed3f(0x9b)][_0x37ed3f(0xb1)](_0x53c02e,{'force':!![]})[_0x37ed3f(0xb2)](function(){logger['info']('table\x20dropped\x20%s',_0x53c02e);})[_0x37ed3f(0x9c)](function(_0x24fe56){const _0x13a96d=_0x37ed3f;logger[_0x13a96d(0x9d)](JSON[_0x13a96d(0x97)](_0x24fe56));});});},Migration[a1160_0x28261d(0xac)][a1160_0x28261d(0x93)]=function(_0x3d52fa,_0x2f2979,_0x2f616b){const _0x4da891=a1160_0x28261d,_0x3614f9=this;this[_0x4da891(0x94)]['enqueue'](function(){const _0x2c4d35=_0x4da891;return _0x3614f9[_0x2c4d35(0x9b)][_0x2c4d35(0x93)](_0x3d52fa,_0x2f2979,{'indexName':_0x2f616b[_0x2c4d35(0x9f)],'indicesType':_0x2f616b[_0x2c4d35(0x92)]})[_0x2c4d35(0xb2)](function(){const _0x325286=_0x2c4d35;logger[_0x325286(0x9d)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x3d52fa,_0x2f2979[_0x325286(0x99)](','),_0x2f616b[_0x325286(0x9f)],_0x2f616b[_0x325286(0x92)]);})['catch'](function(_0x2c60ee){const _0x41ef41=_0x2c4d35;logger[_0x41ef41(0x9d)](JSON[_0x41ef41(0x97)](_0x2c60ee));});});},Migration[a1160_0x28261d(0xac)][a1160_0x28261d(0xaa)]=function(_0x4f9366,_0x219568){const _0x4d617a=a1160_0x28261d,_0xb62015=this;this[_0x4d617a(0x94)][_0x4d617a(0xa2)](function(){const _0xa9f5fd=_0x4d617a;return _0xb62015['queryInterface'][_0xa9f5fd(0xaa)](_0x4f9366,_0x219568)[_0xa9f5fd(0xb2)](function(){const _0x10cf80=_0xa9f5fd;logger[_0x10cf80(0x9d)]('removeIndex\x20%s\x20%s',_0x4f9366,_0x219568);})[_0xa9f5fd(0x9c)](function(_0x3227ac){const _0x96bed=_0xa9f5fd;logger[_0x96bed(0x9d)](JSON[_0x96bed(0x97)](_0x3227ac));});});},Migration['prototype'][a1160_0x28261d(0xa9)]=function(_0xb2d408){const _0x2d5fe8=a1160_0x28261d,_0x4c0c1c=this;this[_0x2d5fe8(0x94)][_0x2d5fe8(0xa2)](function(){const _0x2c1e1=_0x2d5fe8;return _0x4c0c1c[_0x2c1e1(0x9b)][_0x2c1e1(0x96)][_0x2c1e1(0xa9)](_0xb2d408)[_0x2c1e1(0xb2)](function(){const _0xfd517a=_0x2c1e1;logger['info'](_0xfd517a(0xa5),_0xb2d408);})[_0x2c1e1(0x9c)](function(_0x552517){const _0x58d43c=_0x2c1e1;logger[_0x58d43c(0x9d)](JSON[_0x58d43c(0x97)](_0x552517));});});},Migration[a1160_0x28261d(0xac)]['removeColumn']=function(_0x1eae28,_0x506826){const _0xa53664=a1160_0x28261d,_0xd58114=this;this[_0xa53664(0x94)][_0xa53664(0xa2)](function(){const _0x9bd8c=_0xa53664;return _0xd58114[_0x9bd8c(0x9b)]['removeColumn'](_0x1eae28,_0x506826)[_0x9bd8c(0xb2)](function(){const _0x4d7539=_0x9bd8c;logger['info'](_0x4d7539(0xae),_0x506826,_0x1eae28);})[_0x9bd8c(0x9c)](function(_0x33118e){const _0x2a338b=_0x9bd8c;logger['info'](util[_0x2a338b(0xa3)](_0x33118e,{'showHidden':![],'depth':null}));});});},Migration[a1160_0x28261d(0xac)][a1160_0x28261d(0xa1)]=function(_0x1b3320,_0x3bde3c,_0xddbc6e){const _0x507e23=this;this['sequence']['enqueue'](function(){const _0x49ed64=a1160_0x4f29;return _0x507e23[_0x49ed64(0x9b)][_0x49ed64(0xa1)](_0x1b3320,_0x3bde3c,_0xddbc6e)[_0x49ed64(0xb2)](function(){const _0x152fb3=_0x49ed64;logger[_0x152fb3(0x9d)](_0x152fb3(0xa4),_0x3bde3c,_0xddbc6e,_0x1b3320);})[_0x49ed64(0x9c)](function(_0x176940){const _0x4c1bbc=_0x49ed64;logger[_0x4c1bbc(0x9d)](util['inspect'](_0x176940,{'showHidden':![],'depth':null}));});});},Migration[a1160_0x28261d(0xac)]['final']=function(_0x12dc8e){const _0x535455=a1160_0x28261d;this[_0x535455(0x94)][_0x535455(0xa2)](function(){return _0x12dc8e();});},module[a1160_0x28261d(0x98)]={'up':function(_0x5602e5,_0x47466e){return new Promise(function(_0x50c39c){const _0x5d303e=a1160_0x4f29,_0x436e22=new Migration(_0x5602e5);_0x436e22[_0x5d303e(0x9e)](_0x5d303e(0xab),_0x5d303e(0xa6),{'type':_0x47466e[_0x5d303e(0xa8)],'defaultValue':![]}),_0x436e22[_0x5d303e(0x9a)](_0x50c39c);});},'down':function(){}}; \ No newline at end of file +const a1160_0x5850=['query','inspect','addIndex','Added\x20column\x20%s\x20to\x20%s','util','info','migration','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','final','table\x20dropped\x20%s','then','sequelize','jscripty_projects','indexName','changeColumn','tail','finally','stringify','renameColumn','catch','queryInterface','indicesType','removeIndex','sendUnpauseOnSubmit','dropTable','enqueue','Removed\x20column\x20%s\x20from\x20%s','prototype','BOOLEAN','addColumn'];(function(_0x32c9fc,_0x419ab6){const _0x585039=function(_0x5af8fa){while(--_0x5af8fa){_0x32c9fc['push'](_0x32c9fc['shift']());}};_0x585039(++_0x419ab6);}(a1160_0x5850,0x101));const a1160_0x5af8=function(_0x32c9fc,_0x419ab6){_0x32c9fc=_0x32c9fc-0x1d6;let _0x585039=a1160_0x5850[_0x32c9fc];return _0x585039;};const a1160_0x5446c6=a1160_0x5af8;'use strict';const util=require(a1160_0x5446c6(0x1d9)),logger=require('../config/logger')(a1160_0x5446c6(0x1db)),Sequence=function(){};Sequence[a1160_0x5446c6(0x1f2)][a1160_0x5446c6(0x1f0)]=function(_0x3d1785){const _0x4deee8=a1160_0x5446c6;this[_0x4deee8(0x1e6)]=this[_0x4deee8(0x1e6)]?this[_0x4deee8(0x1e6)][_0x4deee8(0x1e7)](_0x3d1785):_0x3d1785();};const Migration=function(_0xfcce0){const _0x2d49d5=a1160_0x5446c6;this[_0x2d49d5(0x1eb)]=_0xfcce0,this['sequence']=new Sequence();};Migration[a1160_0x5446c6(0x1f2)][a1160_0x5446c6(0x1e5)]=function(_0x47e232,_0x380b11,_0x5f427d){const _0x51e9aa=a1160_0x5446c6,_0x286e9c=this;this[_0x51e9aa(0x1de)][_0x51e9aa(0x1f0)](function(){const _0x465974=_0x51e9aa;return _0x286e9c[_0x465974(0x1eb)][_0x465974(0x1e5)](_0x47e232,_0x380b11,_0x5f427d)[_0x465974(0x1e1)](function(){const _0x1c00bd=_0x465974;logger[_0x1c00bd(0x1da)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x380b11,_0x47e232);})[_0x465974(0x1ea)](function(_0x272303){const _0x3335fe=_0x465974;logger[_0x3335fe(0x1da)](JSON[_0x3335fe(0x1e8)](_0x272303));});});},Migration[a1160_0x5446c6(0x1f2)][a1160_0x5446c6(0x1f4)]=function(_0x4f6cbb,_0x48cbda,_0x23bd61){const _0xd9e847=a1160_0x5446c6,_0x2cd0e8=this;this[_0xd9e847(0x1de)][_0xd9e847(0x1f0)](function(){const _0xa0eb72=_0xd9e847;return _0x2cd0e8[_0xa0eb72(0x1eb)][_0xa0eb72(0x1f4)](_0x4f6cbb,_0x48cbda,_0x23bd61)['then'](function(){const _0x4297bc=_0xa0eb72;logger['info'](_0x4297bc(0x1d8),_0x48cbda,_0x4f6cbb);})['catch'](function(_0x494ba4){const _0x266d10=_0xa0eb72;logger[_0x266d10(0x1da)](JSON[_0x266d10(0x1e8)](_0x494ba4));});});},Migration[a1160_0x5446c6(0x1f2)][a1160_0x5446c6(0x1ef)]=function(_0x129b41){const _0x338d4c=a1160_0x5446c6,_0x5706cb=this;this[_0x338d4c(0x1de)][_0x338d4c(0x1f0)](function(){const _0x1402d3=_0x338d4c;return _0x5706cb[_0x1402d3(0x1eb)]['dropTable'](_0x129b41,{'force':!![]})['then'](function(){const _0x571bdd=_0x1402d3;logger['info'](_0x571bdd(0x1e0),_0x129b41);})[_0x1402d3(0x1ea)](function(_0x25903a){const _0x4a39c1=_0x1402d3;logger[_0x4a39c1(0x1da)](JSON[_0x4a39c1(0x1e8)](_0x25903a));});});},Migration[a1160_0x5446c6(0x1f2)]['addIndex']=function(_0x45c81f,_0x119280,_0x15df1b){const _0x5a5fac=a1160_0x5446c6,_0x4b6f34=this;this[_0x5a5fac(0x1de)][_0x5a5fac(0x1f0)](function(){const _0xb55210=_0x5a5fac;return _0x4b6f34[_0xb55210(0x1eb)][_0xb55210(0x1d7)](_0x45c81f,_0x119280,{'indexName':_0x15df1b[_0xb55210(0x1e4)],'indicesType':_0x15df1b[_0xb55210(0x1ec)]})['then'](function(){const _0x227ae1=_0xb55210;logger[_0x227ae1(0x1da)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x45c81f,_0x119280['join'](','),_0x15df1b['indexName'],_0x15df1b[_0x227ae1(0x1ec)]);})[_0xb55210(0x1ea)](function(_0x36b733){const _0x512bcf=_0xb55210;logger[_0x512bcf(0x1da)](JSON['stringify'](_0x36b733));});});},Migration[a1160_0x5446c6(0x1f2)][a1160_0x5446c6(0x1ed)]=function(_0x151d3d,_0x384053){const _0x155fed=a1160_0x5446c6,_0x51a3d2=this;this[_0x155fed(0x1de)][_0x155fed(0x1f0)](function(){const _0x2ce515=_0x155fed;return _0x51a3d2[_0x2ce515(0x1eb)][_0x2ce515(0x1ed)](_0x151d3d,_0x384053)[_0x2ce515(0x1e1)](function(){logger['info']('removeIndex\x20%s\x20%s',_0x151d3d,_0x384053);})[_0x2ce515(0x1ea)](function(_0x13dde9){logger['info'](JSON['stringify'](_0x13dde9));});});},Migration[a1160_0x5446c6(0x1f2)][a1160_0x5446c6(0x1f5)]=function(_0x3e357f){const _0x313ced=a1160_0x5446c6,_0xcf9b92=this;this[_0x313ced(0x1de)]['enqueue'](function(){const _0x1273cd=_0x313ced;return _0xcf9b92['queryInterface'][_0x1273cd(0x1e2)][_0x1273cd(0x1f5)](_0x3e357f)[_0x1273cd(0x1e1)](function(){const _0x388c30=_0x1273cd;logger[_0x388c30(0x1da)]('query\x20%s',_0x3e357f);})[_0x1273cd(0x1ea)](function(_0x6f7676){const _0x300047=_0x1273cd;logger[_0x300047(0x1da)](JSON[_0x300047(0x1e8)](_0x6f7676));});});},Migration[a1160_0x5446c6(0x1f2)][a1160_0x5446c6(0x1dc)]=function(_0x4468b9,_0x1c5bce){const _0x230108=this;this['sequence']['enqueue'](function(){const _0x382bb0=a1160_0x5af8;return _0x230108[_0x382bb0(0x1eb)][_0x382bb0(0x1dc)](_0x4468b9,_0x1c5bce)[_0x382bb0(0x1e1)](function(){const _0x4c7c6a=_0x382bb0;logger[_0x4c7c6a(0x1da)](_0x4c7c6a(0x1f1),_0x1c5bce,_0x4468b9);})[_0x382bb0(0x1ea)](function(_0x46c5f3){const _0x5d8c42=_0x382bb0;logger['info'](util[_0x5d8c42(0x1d6)](_0x46c5f3,{'showHidden':![],'depth':null}));});});},Migration[a1160_0x5446c6(0x1f2)]['renameColumn']=function(_0x3725b1,_0x2cf5d2,_0x2c0f15){const _0x4513ac=a1160_0x5446c6,_0x228e46=this;this[_0x4513ac(0x1de)][_0x4513ac(0x1f0)](function(){const _0x55f8a3=_0x4513ac;return _0x228e46[_0x55f8a3(0x1eb)][_0x55f8a3(0x1e9)](_0x3725b1,_0x2cf5d2,_0x2c0f15)[_0x55f8a3(0x1e1)](function(){const _0x243453=_0x55f8a3;logger[_0x243453(0x1da)](_0x243453(0x1dd),_0x2cf5d2,_0x2c0f15,_0x3725b1);})[_0x55f8a3(0x1ea)](function(_0x3d6670){const _0x526a97=_0x55f8a3;logger['info'](util[_0x526a97(0x1d6)](_0x3d6670,{'showHidden':![],'depth':null}));});});},Migration[a1160_0x5446c6(0x1f2)][a1160_0x5446c6(0x1df)]=function(_0x247d43){const _0x1dd269=a1160_0x5446c6;this[_0x1dd269(0x1de)]['enqueue'](function(){return _0x247d43();});},module['exports']={'up':function(_0x4913c1,_0x1324eb){return new Promise(function(_0x255100){const _0x1840b3=a1160_0x5af8,_0x363922=new Migration(_0x4913c1);_0x363922['addColumn'](_0x1840b3(0x1e3),_0x1840b3(0x1ee),{'type':_0x1324eb[_0x1840b3(0x1f3)],'defaultValue':![]}),_0x363922[_0x1840b3(0x1df)](_0x255100);});},'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 134fdf8..7adebaf 100644 --- a/server/migrations/2.4.14.js +++ b/server/migrations/2.4.14.js @@ -1 +1 @@ -const a1161_0x10b5=['removeColumn','final','prototype','table\x20dropped\x20%s','util','sequelize','../config/logger','sequence','dropTable','finally','query\x20%s','inspect','addIndex','Removed\x20column\x20%s\x20from\x20%s','info','indicesType','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','join','renameColumn','then','addColumn','migration','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','queryInterface','stringify','removeIndex','changeColumn','catch','tail'];(function(_0x3d7c83,_0x137f0e){const _0x10b578=function(_0x286486){while(--_0x286486){_0x3d7c83['push'](_0x3d7c83['shift']());}};_0x10b578(++_0x137f0e);}(a1161_0x10b5,0x124));const a1161_0x2864=function(_0x3d7c83,_0x137f0e){_0x3d7c83=_0x3d7c83-0x75;let _0x10b578=a1161_0x10b5[_0x3d7c83];return _0x10b578;};const a1161_0x480188=a1161_0x2864;'use strict';const util=require(a1161_0x480188(0x75)),logger=require(a1161_0x480188(0x77))(a1161_0x480188(0x87)),Sequence=function(){};Sequence[a1161_0x480188(0x93)][a1161_0x480188(0x81)]=function(_0x4e3cad){const _0x3cbde1=a1161_0x480188;this['tail']=this['tail']?this[_0x3cbde1(0x90)][_0x3cbde1(0x7a)](_0x4e3cad):_0x4e3cad();};const Migration=function(_0x394e98){const _0x1398d1=a1161_0x480188;this[_0x1398d1(0x8b)]=_0x394e98,this[_0x1398d1(0x78)]=new Sequence();};Migration[a1161_0x480188(0x93)][a1161_0x480188(0x8e)]=function(_0x55cc69,_0x5c187f,_0x247678){const _0x320350=a1161_0x480188,_0x26d9c6=this;this[_0x320350(0x78)]['enqueue'](function(){const _0x4c4d20=_0x320350;return _0x26d9c6[_0x4c4d20(0x8b)][_0x4c4d20(0x8e)](_0x55cc69,_0x5c187f,_0x247678)[_0x4c4d20(0x85)](function(){const _0x2374f3=_0x4c4d20;logger[_0x2374f3(0x7f)](_0x2374f3(0x82),_0x5c187f,_0x55cc69);})[_0x4c4d20(0x8f)](function(_0x275e45){const _0x13a883=_0x4c4d20;logger[_0x13a883(0x7f)](JSON[_0x13a883(0x8c)](_0x275e45));});});},Migration[a1161_0x480188(0x93)][a1161_0x480188(0x86)]=function(_0x4ca882,_0x5becbf,_0x3a9dfc){const _0x4477ce=a1161_0x480188,_0xc33ea3=this;this['sequence'][_0x4477ce(0x81)](function(){const _0x4edbc6=_0x4477ce;return _0xc33ea3[_0x4edbc6(0x8b)][_0x4edbc6(0x86)](_0x4ca882,_0x5becbf,_0x3a9dfc)[_0x4edbc6(0x85)](function(){const _0x3fe21d=_0x4edbc6;logger[_0x3fe21d(0x7f)]('Added\x20column\x20%s\x20to\x20%s',_0x5becbf,_0x4ca882);})[_0x4edbc6(0x8f)](function(_0x115da6){const _0xd045b5=_0x4edbc6;logger['info'](JSON[_0xd045b5(0x8c)](_0x115da6));});});},Migration[a1161_0x480188(0x93)]['dropTable']=function(_0x4908f2){const _0x40f8c1=a1161_0x480188,_0xc2df38=this;this[_0x40f8c1(0x78)][_0x40f8c1(0x81)](function(){const _0x7fa050=_0x40f8c1;return _0xc2df38[_0x7fa050(0x8b)][_0x7fa050(0x79)](_0x4908f2,{'force':!![]})[_0x7fa050(0x85)](function(){const _0x474c30=_0x7fa050;logger[_0x474c30(0x7f)](_0x474c30(0x94),_0x4908f2);})[_0x7fa050(0x8f)](function(_0x512054){const _0xc17c77=_0x7fa050;logger[_0xc17c77(0x7f)](JSON[_0xc17c77(0x8c)](_0x512054));});});},Migration[a1161_0x480188(0x93)][a1161_0x480188(0x7d)]=function(_0x43014d,_0x41d8e7,_0x614322){const _0x656490=a1161_0x480188,_0x529605=this;this[_0x656490(0x78)][_0x656490(0x81)](function(){const _0x33ac38=_0x656490;return _0x529605[_0x33ac38(0x8b)][_0x33ac38(0x7d)](_0x43014d,_0x41d8e7,{'indexName':_0x614322['indexName'],'indicesType':_0x614322[_0x33ac38(0x80)]})['then'](function(){const _0x553d73=_0x33ac38;logger[_0x553d73(0x7f)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x43014d,_0x41d8e7[_0x553d73(0x83)](','),_0x614322['indexName'],_0x614322['indicesType']);})['catch'](function(_0x316e11){const _0x5b1ce9=_0x33ac38;logger['info'](JSON[_0x5b1ce9(0x8c)](_0x316e11));});});},Migration['prototype'][a1161_0x480188(0x8d)]=function(_0x82ff4a,_0x2c2761){const _0x2a7c3e=a1161_0x480188,_0x4ec8cf=this;this[_0x2a7c3e(0x78)][_0x2a7c3e(0x81)](function(){const _0x52d9b7=_0x2a7c3e;return _0x4ec8cf[_0x52d9b7(0x8b)][_0x52d9b7(0x8d)](_0x82ff4a,_0x2c2761)[_0x52d9b7(0x85)](function(){const _0x2514dd=_0x52d9b7;logger[_0x2514dd(0x7f)]('removeIndex\x20%s\x20%s',_0x82ff4a,_0x2c2761);})[_0x52d9b7(0x8f)](function(_0x2c7951){const _0x5f5da5=_0x52d9b7;logger['info'](JSON[_0x5f5da5(0x8c)](_0x2c7951));});});},Migration[a1161_0x480188(0x93)][a1161_0x480188(0x8a)]=function(_0x1b2441){const _0x2790ad=a1161_0x480188,_0x35b380=this;this[_0x2790ad(0x78)][_0x2790ad(0x81)](function(){const _0x11ba87=_0x2790ad;return _0x35b380[_0x11ba87(0x8b)][_0x11ba87(0x76)][_0x11ba87(0x8a)](_0x1b2441)[_0x11ba87(0x85)](function(){const _0xcd303b=_0x11ba87;logger['info'](_0xcd303b(0x7b),_0x1b2441);})[_0x11ba87(0x8f)](function(_0x395e0f){const _0x2e7d7c=_0x11ba87;logger[_0x2e7d7c(0x7f)](JSON[_0x2e7d7c(0x8c)](_0x395e0f));});});},Migration[a1161_0x480188(0x93)][a1161_0x480188(0x91)]=function(_0x215739,_0xbb97a3){const _0xf3285c=a1161_0x480188,_0x131a22=this;this[_0xf3285c(0x78)][_0xf3285c(0x81)](function(){const _0x4124cd=_0xf3285c;return _0x131a22['queryInterface'][_0x4124cd(0x91)](_0x215739,_0xbb97a3)[_0x4124cd(0x85)](function(){const _0x30a889=_0x4124cd;logger[_0x30a889(0x7f)](_0x30a889(0x7e),_0xbb97a3,_0x215739);})[_0x4124cd(0x8f)](function(_0x5bb768){const _0x45990e=_0x4124cd;logger[_0x45990e(0x7f)](util['inspect'](_0x5bb768,{'showHidden':![],'depth':null}));});});},Migration[a1161_0x480188(0x93)][a1161_0x480188(0x84)]=function(_0x35d846,_0x191bb1,_0x3df8f5){const _0x321b37=a1161_0x480188,_0x18a3f5=this;this['sequence'][_0x321b37(0x81)](function(){const _0x20b717=_0x321b37;return _0x18a3f5[_0x20b717(0x8b)][_0x20b717(0x84)](_0x35d846,_0x191bb1,_0x3df8f5)[_0x20b717(0x85)](function(){const _0x475ef1=_0x20b717;logger[_0x475ef1(0x7f)](_0x475ef1(0x89),_0x191bb1,_0x3df8f5,_0x35d846);})[_0x20b717(0x8f)](function(_0x131ff5){const _0x385ca0=_0x20b717;logger[_0x385ca0(0x7f)](util[_0x385ca0(0x7c)](_0x131ff5,{'showHidden':![],'depth':null}));});});},Migration[a1161_0x480188(0x93)][a1161_0x480188(0x92)]=function(_0x140af0){const _0x805bae=a1161_0x480188;this[_0x805bae(0x78)][_0x805bae(0x81)](function(){return _0x140af0();});},module[a1161_0x480188(0x88)]={'up':function(_0x217414){return new Promise(function(_0x462a1b){const _0x490169=new Migration(_0x217414);_0x490169['final'](_0x462a1b);});},'down':function(){}}; \ No newline at end of file +const a1161_0x27f3=['addIndex\x20%s\x20%s\x20%s\x20[%s]','stringify','tail','removeIndex','migration','info','addColumn','indicesType','changeColumn','catch','util','query\x20%s','dropTable','queryInterface','removeIndex\x20%s\x20%s','indexName','enqueue','removeColumn','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger','inspect','prototype','final','exports','query','addIndex','table\x20dropped\x20%s','finally','sequence','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','then','join'];(function(_0x422377,_0x1789c8){const _0x27f32c=function(_0x4f2f74){while(--_0x4f2f74){_0x422377['push'](_0x422377['shift']());}};_0x27f32c(++_0x1789c8);}(a1161_0x27f3,0xf2));const a1161_0x4f2f=function(_0x422377,_0x1789c8){_0x422377=_0x422377-0x13c;let _0x27f32c=a1161_0x27f3[_0x422377];return _0x27f32c;};const a1161_0x1a0dc4=a1161_0x4f2f;'use strict';const util=require(a1161_0x1a0dc4(0x142)),logger=require(a1161_0x1a0dc4(0x14c))(a1161_0x1a0dc4(0x13c)),Sequence=function(){};Sequence[a1161_0x1a0dc4(0x14e)][a1161_0x1a0dc4(0x148)]=function(_0x24a531){const _0x35d086=a1161_0x1a0dc4;this[_0x35d086(0x15c)]=this[_0x35d086(0x15c)]?this[_0x35d086(0x15c)][_0x35d086(0x154)](_0x24a531):_0x24a531();};const Migration=function(_0x266c24){const _0x58dd6f=a1161_0x1a0dc4;this['queryInterface']=_0x266c24,this[_0x58dd6f(0x155)]=new Sequence();};Migration['prototype'][a1161_0x1a0dc4(0x140)]=function(_0x185afb,_0x5e857d,_0x5b4e8c){const _0x106927=a1161_0x1a0dc4,_0x17a07d=this;this[_0x106927(0x155)][_0x106927(0x148)](function(){const _0x50f8de=_0x106927;return _0x17a07d['queryInterface'][_0x50f8de(0x140)](_0x185afb,_0x5e857d,_0x5b4e8c)['then'](function(){const _0x2b548a=_0x50f8de;logger[_0x2b548a(0x13d)](_0x2b548a(0x157),_0x5e857d,_0x185afb);})[_0x50f8de(0x141)](function(_0x580ab7){const _0x345f0a=_0x50f8de;logger[_0x345f0a(0x13d)](JSON[_0x345f0a(0x15b)](_0x580ab7));});});},Migration['prototype'][a1161_0x1a0dc4(0x13e)]=function(_0x14c57f,_0x180634,_0x143d5d){const _0x412f94=a1161_0x1a0dc4,_0x23b7e2=this;this[_0x412f94(0x155)]['enqueue'](function(){const _0x54adeb=_0x412f94;return _0x23b7e2[_0x54adeb(0x145)]['addColumn'](_0x14c57f,_0x180634,_0x143d5d)[_0x54adeb(0x158)](function(){const _0x45c75b=_0x54adeb;logger[_0x45c75b(0x13d)](_0x45c75b(0x14a),_0x180634,_0x14c57f);})[_0x54adeb(0x141)](function(_0x59f7ca){logger['info'](JSON['stringify'](_0x59f7ca));});});},Migration['prototype'][a1161_0x1a0dc4(0x144)]=function(_0x5d5471){const _0x135c8a=a1161_0x1a0dc4,_0x5df982=this;this['sequence'][_0x135c8a(0x148)](function(){const _0x2af255=_0x135c8a;return _0x5df982['queryInterface']['dropTable'](_0x5d5471,{'force':!![]})[_0x2af255(0x158)](function(){const _0x2f01f2=_0x2af255;logger['info'](_0x2f01f2(0x153),_0x5d5471);})[_0x2af255(0x141)](function(_0x5b60e2){const _0x2d88a0=_0x2af255;logger['info'](JSON[_0x2d88a0(0x15b)](_0x5b60e2));});});},Migration['prototype'][a1161_0x1a0dc4(0x152)]=function(_0x499791,_0x47d2fc,_0x5351d9){const _0x97d947=a1161_0x1a0dc4,_0x3392dd=this;this[_0x97d947(0x155)][_0x97d947(0x148)](function(){const _0x255589=_0x97d947;return _0x3392dd['queryInterface'][_0x255589(0x152)](_0x499791,_0x47d2fc,{'indexName':_0x5351d9[_0x255589(0x147)],'indicesType':_0x5351d9[_0x255589(0x13f)]})[_0x255589(0x158)](function(){const _0xe579c5=_0x255589;logger['info'](_0xe579c5(0x15a),_0x499791,_0x47d2fc[_0xe579c5(0x159)](','),_0x5351d9[_0xe579c5(0x147)],_0x5351d9[_0xe579c5(0x13f)]);})[_0x255589(0x141)](function(_0x7a1166){const _0x5681f5=_0x255589;logger[_0x5681f5(0x13d)](JSON[_0x5681f5(0x15b)](_0x7a1166));});});},Migration['prototype']['removeIndex']=function(_0x2766aa,_0x512c16){const _0x39a55b=this;this['sequence']['enqueue'](function(){const _0x409e91=a1161_0x4f2f;return _0x39a55b[_0x409e91(0x145)][_0x409e91(0x15d)](_0x2766aa,_0x512c16)[_0x409e91(0x158)](function(){const _0x20af96=_0x409e91;logger[_0x20af96(0x13d)](_0x20af96(0x146),_0x2766aa,_0x512c16);})[_0x409e91(0x141)](function(_0x5714af){const _0x455053=_0x409e91;logger[_0x455053(0x13d)](JSON[_0x455053(0x15b)](_0x5714af));});});},Migration[a1161_0x1a0dc4(0x14e)]['query']=function(_0x8ebe07){const _0x21bf08=a1161_0x1a0dc4,_0x10f435=this;this[_0x21bf08(0x155)][_0x21bf08(0x148)](function(){const _0x1213da=_0x21bf08;return _0x10f435[_0x1213da(0x145)]['sequelize'][_0x1213da(0x151)](_0x8ebe07)['then'](function(){const _0x38847c=_0x1213da;logger[_0x38847c(0x13d)](_0x38847c(0x143),_0x8ebe07);})['catch'](function(_0x40f0cd){const _0x4dd6ba=_0x1213da;logger['info'](JSON[_0x4dd6ba(0x15b)](_0x40f0cd));});});},Migration[a1161_0x1a0dc4(0x14e)]['removeColumn']=function(_0x47003f,_0x5d0bcf){const _0x23d004=a1161_0x1a0dc4,_0x4a0da1=this;this[_0x23d004(0x155)][_0x23d004(0x148)](function(){const _0x40da4a=_0x23d004;return _0x4a0da1[_0x40da4a(0x145)][_0x40da4a(0x149)](_0x47003f,_0x5d0bcf)[_0x40da4a(0x158)](function(){const _0x1e239f=_0x40da4a;logger[_0x1e239f(0x13d)]('Removed\x20column\x20%s\x20from\x20%s',_0x5d0bcf,_0x47003f);})[_0x40da4a(0x141)](function(_0xb4409d){const _0x4bb18d=_0x40da4a;logger['info'](util[_0x4bb18d(0x14d)](_0xb4409d,{'showHidden':![],'depth':null}));});});},Migration[a1161_0x1a0dc4(0x14e)][a1161_0x1a0dc4(0x156)]=function(_0x12b0aa,_0x91468,_0x9f5c){const _0x2ab838=a1161_0x1a0dc4,_0x4c9354=this;this[_0x2ab838(0x155)][_0x2ab838(0x148)](function(){const _0x456953=_0x2ab838;return _0x4c9354[_0x456953(0x145)]['renameColumn'](_0x12b0aa,_0x91468,_0x9f5c)[_0x456953(0x158)](function(){const _0x5ced47=_0x456953;logger[_0x5ced47(0x13d)](_0x5ced47(0x14b),_0x91468,_0x9f5c,_0x12b0aa);})[_0x456953(0x141)](function(_0x19cfc4){const _0x13dd24=_0x456953;logger[_0x13dd24(0x13d)](util[_0x13dd24(0x14d)](_0x19cfc4,{'showHidden':![],'depth':null}));});});},Migration[a1161_0x1a0dc4(0x14e)]['final']=function(_0x5cf6c0){const _0x536b61=a1161_0x1a0dc4;this['sequence'][_0x536b61(0x148)](function(){return _0x5cf6c0();});},module[a1161_0x1a0dc4(0x150)]={'up':function(_0x790214){return new Promise(function(_0xbabce3){const _0xfc1033=a1161_0x4f2f,_0xeb5059=new Migration(_0x790214);_0xeb5059[_0xfc1033(0x14f)](_0xbabce3);});},'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 64608c8..c1f034c 100644 --- a/server/migrations/2.4.15.js +++ b/server/migrations/2.4.15.js @@ -1 +1 @@ -const a1162_0x4bbf=['inspect','table\x20dropped\x20%s','dropTable','queryInterface','query\x20%s','catch','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','migration','sequence','addIndex\x20%s\x20%s\x20%s\x20[%s]','util','indicesType','removeColumn','info','removeIndex','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','then','addColumn','enqueue','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','query','../config/logger','final','changeColumn','sequelize','Removed\x20column\x20%s\x20from\x20%s','stringify','indexName','Added\x20column\x20%s\x20to\x20%s','renameColumn','tail'];(function(_0x82e270,_0x36e653){const _0x4bbfd=function(_0x586619){while(--_0x586619){_0x82e270['push'](_0x82e270['shift']());}};_0x4bbfd(++_0x36e653);}(a1162_0x4bbf,0xc9));const a1162_0x5866=function(_0x82e270,_0x36e653){_0x82e270=_0x82e270-0xa0;let _0x4bbfd=a1162_0x4bbf[_0x82e270];return _0x4bbfd;};const a1162_0x136067=a1162_0x5866;'use strict';const util=require(a1162_0x136067(0xaf)),logger=require(a1162_0x136067(0xbb))(a1162_0x136067(0xac)),Sequence=function(){};Sequence[a1162_0x136067(0xab)][a1162_0x136067(0xb7)]=function(_0x556730){const _0x47a82b=a1162_0x136067;this[_0x47a82b(0xa2)]=this[_0x47a82b(0xa2)]?this['tail']['finally'](_0x556730):_0x556730();};const Migration=function(_0x589be9){const _0x294028=a1162_0x136067;this[_0x294028(0xa6)]=_0x589be9,this[_0x294028(0xad)]=new Sequence();};Migration[a1162_0x136067(0xab)][a1162_0x136067(0xbd)]=function(_0x507ff8,_0x549438,_0x355d9c){const _0x4c24ee=a1162_0x136067,_0x1c1233=this;this['sequence'][_0x4c24ee(0xb7)](function(){const _0x57e376=_0x4c24ee;return _0x1c1233['queryInterface'][_0x57e376(0xbd)](_0x507ff8,_0x549438,_0x355d9c)[_0x57e376(0xb5)](function(){const _0xf6a2c0=_0x57e376;logger[_0xf6a2c0(0xb2)](_0xf6a2c0(0xb9),_0x549438,_0x507ff8);})['catch'](function(_0x45e872){const _0x58ef3f=_0x57e376;logger[_0x58ef3f(0xb2)](JSON['stringify'](_0x45e872));});});},Migration[a1162_0x136067(0xab)][a1162_0x136067(0xb6)]=function(_0x2e13c2,_0x2127ce,_0x301c22){const _0x5f474e=a1162_0x136067,_0x4d1704=this;this[_0x5f474e(0xad)][_0x5f474e(0xb7)](function(){const _0x56c782=_0x5f474e;return _0x4d1704[_0x56c782(0xa6)][_0x56c782(0xb6)](_0x2e13c2,_0x2127ce,_0x301c22)[_0x56c782(0xb5)](function(){const _0x120f1f=_0x56c782;logger[_0x120f1f(0xb2)](_0x120f1f(0xa0),_0x2127ce,_0x2e13c2);})[_0x56c782(0xa8)](function(_0x284ad2){const _0x474076=_0x56c782;logger[_0x474076(0xb2)](JSON[_0x474076(0xc0)](_0x284ad2));});});},Migration['prototype'][a1162_0x136067(0xa5)]=function(_0x120944){const _0x4daace=a1162_0x136067,_0x2aef29=this;this[_0x4daace(0xad)][_0x4daace(0xb7)](function(){const _0x52d2d1=_0x4daace;return _0x2aef29['queryInterface']['dropTable'](_0x120944,{'force':!![]})[_0x52d2d1(0xb5)](function(){const _0x1a2028=_0x52d2d1;logger['info'](_0x1a2028(0xa4),_0x120944);})[_0x52d2d1(0xa8)](function(_0x546de8){const _0x1d053f=_0x52d2d1;logger['info'](JSON[_0x1d053f(0xc0)](_0x546de8));});});},Migration['prototype'][a1162_0x136067(0xb8)]=function(_0x46a7f3,_0x219a24,_0x2d8c89){const _0x564b31=a1162_0x136067,_0x34227f=this;this[_0x564b31(0xad)][_0x564b31(0xb7)](function(){const _0x4f186b=_0x564b31;return _0x34227f['queryInterface'][_0x4f186b(0xb8)](_0x46a7f3,_0x219a24,{'indexName':_0x2d8c89['indexName'],'indicesType':_0x2d8c89['indicesType']})[_0x4f186b(0xb5)](function(){const _0x1ba5d3=_0x4f186b;logger[_0x1ba5d3(0xb2)](_0x1ba5d3(0xae),_0x46a7f3,_0x219a24[_0x1ba5d3(0xa9)](','),_0x2d8c89[_0x1ba5d3(0xc1)],_0x2d8c89[_0x1ba5d3(0xb0)]);})[_0x4f186b(0xa8)](function(_0x404d59){const _0x25f1e6=_0x4f186b;logger['info'](JSON[_0x25f1e6(0xc0)](_0x404d59));});});},Migration[a1162_0x136067(0xab)][a1162_0x136067(0xb3)]=function(_0x50d5d0,_0x3e4a05){const _0x5b2d09=this;this['sequence']['enqueue'](function(){const _0x1913c0=a1162_0x5866;return _0x5b2d09[_0x1913c0(0xa6)][_0x1913c0(0xb3)](_0x50d5d0,_0x3e4a05)['then'](function(){const _0x243597=_0x1913c0;logger[_0x243597(0xb2)]('removeIndex\x20%s\x20%s',_0x50d5d0,_0x3e4a05);})[_0x1913c0(0xa8)](function(_0x2b1575){const _0x431010=_0x1913c0;logger[_0x431010(0xb2)](JSON['stringify'](_0x2b1575));});});},Migration[a1162_0x136067(0xab)][a1162_0x136067(0xba)]=function(_0x53d4fb){const _0x131767=a1162_0x136067,_0x584a44=this;this[_0x131767(0xad)][_0x131767(0xb7)](function(){const _0x43c84f=_0x131767;return _0x584a44['queryInterface'][_0x43c84f(0xbe)][_0x43c84f(0xba)](_0x53d4fb)[_0x43c84f(0xb5)](function(){const _0xaa0b97=_0x43c84f;logger[_0xaa0b97(0xb2)](_0xaa0b97(0xa7),_0x53d4fb);})[_0x43c84f(0xa8)](function(_0xd02636){const _0x542ae7=_0x43c84f;logger['info'](JSON[_0x542ae7(0xc0)](_0xd02636));});});},Migration['prototype']['removeColumn']=function(_0x1a17ec,_0x195fd7){const _0x1d7c98=a1162_0x136067,_0x3500cc=this;this[_0x1d7c98(0xad)][_0x1d7c98(0xb7)](function(){const _0x3e32e0=_0x1d7c98;return _0x3500cc[_0x3e32e0(0xa6)][_0x3e32e0(0xb1)](_0x1a17ec,_0x195fd7)[_0x3e32e0(0xb5)](function(){const _0x212d19=_0x3e32e0;logger[_0x212d19(0xb2)](_0x212d19(0xbf),_0x195fd7,_0x1a17ec);})[_0x3e32e0(0xa8)](function(_0x31081b){const _0x39773d=_0x3e32e0;logger['info'](util[_0x39773d(0xa3)](_0x31081b,{'showHidden':![],'depth':null}));});});},Migration[a1162_0x136067(0xab)][a1162_0x136067(0xa1)]=function(_0x149491,_0x1a8424,_0xfd947){const _0x442b8a=a1162_0x136067,_0x51df6e=this;this['sequence'][_0x442b8a(0xb7)](function(){const _0x442f8b=_0x442b8a;return _0x51df6e[_0x442f8b(0xa6)][_0x442f8b(0xa1)](_0x149491,_0x1a8424,_0xfd947)[_0x442f8b(0xb5)](function(){const _0x107c13=_0x442f8b;logger[_0x107c13(0xb2)](_0x107c13(0xaa),_0x1a8424,_0xfd947,_0x149491);})[_0x442f8b(0xa8)](function(_0x102c92){const _0x135506=_0x442f8b;logger[_0x135506(0xb2)](util['inspect'](_0x102c92,{'showHidden':![],'depth':null}));});});},Migration[a1162_0x136067(0xab)][a1162_0x136067(0xbc)]=function(_0x5d0efd){const _0x178b01=a1162_0x136067;this[_0x178b01(0xad)][_0x178b01(0xb7)](function(){return _0x5d0efd();});},module['exports']={'up':function(_0x43a61d){return new Promise(function(_0x2f6469){const _0x363ea1=a1162_0x5866,_0x247783=new Migration(_0x43a61d);_0x247783[_0x363ea1(0xba)](_0x363ea1(0xb4)),_0x247783[_0x363ea1(0xbc)](_0x2f6469);});},'down':function(){}}; \ No newline at end of file +const a1162_0xa5f6=['Removed\x20column\x20%s\x20from\x20%s','prototype','removeColumn','stringify','tail','dropTable','inspect','indexName','final','removeIndex','indicesType','removeIndex\x20%s\x20%s','addIndex','then','info','join','catch','util','changeColumn','table\x20dropped\x20%s','renameColumn','sequelize','sequence','query','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','addColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x405321,_0x4866cf){const _0xa5f69d=function(_0x20893d){while(--_0x20893d){_0x405321['push'](_0x405321['shift']());}};_0xa5f69d(++_0x4866cf);}(a1162_0xa5f6,0x1cd));const a1162_0x2089=function(_0x405321,_0x4866cf){_0x405321=_0x405321-0x15f;let _0xa5f69d=a1162_0xa5f6[_0x405321];return _0xa5f69d;};const a1162_0x4c30ca=a1162_0x2089;'use strict';const util=require(a1162_0x4c30ca(0x174)),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1162_0x4c30ca(0x164)]['enqueue']=function(_0x42020f){const _0x441a87=a1162_0x4c30ca;this['tail']=this['tail']?this[_0x441a87(0x167)]['finally'](_0x42020f):_0x42020f();};const Migration=function(_0x2a663b){const _0x1f18cd=a1162_0x4c30ca;this[_0x1f18cd(0x17c)]=_0x2a663b,this[_0x1f18cd(0x179)]=new Sequence();};Migration[a1162_0x4c30ca(0x164)][a1162_0x4c30ca(0x175)]=function(_0x230d96,_0x51f891,_0x433039){const _0x4ec022=this;this['sequence']['enqueue'](function(){const _0x2f21c3=a1162_0x2089;return _0x4ec022[_0x2f21c3(0x17c)][_0x2f21c3(0x175)](_0x230d96,_0x51f891,_0x433039)[_0x2f21c3(0x170)](function(){const _0x3f7413=_0x2f21c3;logger['info'](_0x3f7413(0x162),_0x51f891,_0x230d96);})[_0x2f21c3(0x173)](function(_0x1a63a1){const _0x2c8301=_0x2f21c3;logger[_0x2c8301(0x171)](JSON[_0x2c8301(0x166)](_0x1a63a1));});});},Migration[a1162_0x4c30ca(0x164)][a1162_0x4c30ca(0x160)]=function(_0x1bb417,_0x60910,_0xa37ea9){const _0x829f01=a1162_0x4c30ca,_0x43fcf6=this;this['sequence'][_0x829f01(0x15f)](function(){const _0xee47b6=_0x829f01;return _0x43fcf6[_0xee47b6(0x17c)][_0xee47b6(0x160)](_0x1bb417,_0x60910,_0xa37ea9)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x60910,_0x1bb417);})[_0xee47b6(0x173)](function(_0x47831a){const _0x86d29c=_0xee47b6;logger[_0x86d29c(0x171)](JSON[_0x86d29c(0x166)](_0x47831a));});});},Migration['prototype'][a1162_0x4c30ca(0x168)]=function(_0x388a6c){const _0x297cae=a1162_0x4c30ca,_0x4e5749=this;this[_0x297cae(0x179)]['enqueue'](function(){const _0x478814=_0x297cae;return _0x4e5749[_0x478814(0x17c)][_0x478814(0x168)](_0x388a6c,{'force':!![]})[_0x478814(0x170)](function(){const _0x403787=_0x478814;logger['info'](_0x403787(0x176),_0x388a6c);})[_0x478814(0x173)](function(_0xc62467){const _0x5ca058=_0x478814;logger[_0x5ca058(0x171)](JSON[_0x5ca058(0x166)](_0xc62467));});});},Migration['prototype'][a1162_0x4c30ca(0x16f)]=function(_0x1883d3,_0x2cf139,_0x33f8e4){const _0x3c1b86=a1162_0x4c30ca,_0x3403eb=this;this[_0x3c1b86(0x179)][_0x3c1b86(0x15f)](function(){const _0x26484f=_0x3c1b86;return _0x3403eb['queryInterface'][_0x26484f(0x16f)](_0x1883d3,_0x2cf139,{'indexName':_0x33f8e4[_0x26484f(0x16a)],'indicesType':_0x33f8e4[_0x26484f(0x16d)]})['then'](function(){const _0x467451=_0x26484f;logger[_0x467451(0x171)](_0x467451(0x161),_0x1883d3,_0x2cf139[_0x467451(0x172)](','),_0x33f8e4['indexName'],_0x33f8e4[_0x467451(0x16d)]);})[_0x26484f(0x173)](function(_0x1747fe){logger['info'](JSON['stringify'](_0x1747fe));});});},Migration['prototype'][a1162_0x4c30ca(0x16c)]=function(_0x516839,_0x246bbf){const _0x3553e1=a1162_0x4c30ca,_0x755364=this;this[_0x3553e1(0x179)][_0x3553e1(0x15f)](function(){const _0x38d3d8=_0x3553e1;return _0x755364[_0x38d3d8(0x17c)]['removeIndex'](_0x516839,_0x246bbf)[_0x38d3d8(0x170)](function(){const _0x5c1637=_0x38d3d8;logger[_0x5c1637(0x171)](_0x5c1637(0x16e),_0x516839,_0x246bbf);})[_0x38d3d8(0x173)](function(_0x28f6d5){const _0x419172=_0x38d3d8;logger[_0x419172(0x171)](JSON[_0x419172(0x166)](_0x28f6d5));});});},Migration[a1162_0x4c30ca(0x164)][a1162_0x4c30ca(0x17a)]=function(_0x2c9da7){const _0x37fb7a=a1162_0x4c30ca,_0x456d97=this;this[_0x37fb7a(0x179)][_0x37fb7a(0x15f)](function(){const _0x284def=_0x37fb7a;return _0x456d97[_0x284def(0x17c)][_0x284def(0x178)][_0x284def(0x17a)](_0x2c9da7)[_0x284def(0x170)](function(){logger['info']('query\x20%s',_0x2c9da7);})[_0x284def(0x173)](function(_0x348692){logger['info'](JSON['stringify'](_0x348692));});});},Migration[a1162_0x4c30ca(0x164)][a1162_0x4c30ca(0x165)]=function(_0x5a2731,_0x9d23f){const _0x2b944c=a1162_0x4c30ca,_0x4b9d3b=this;this[_0x2b944c(0x179)][_0x2b944c(0x15f)](function(){const _0x184966=_0x2b944c;return _0x4b9d3b['queryInterface']['removeColumn'](_0x5a2731,_0x9d23f)[_0x184966(0x170)](function(){const _0x3c0ce1=_0x184966;logger[_0x3c0ce1(0x171)](_0x3c0ce1(0x163),_0x9d23f,_0x5a2731);})['catch'](function(_0x427de0){const _0x128065=_0x184966;logger[_0x128065(0x171)](util[_0x128065(0x169)](_0x427de0,{'showHidden':![],'depth':null}));});});},Migration[a1162_0x4c30ca(0x164)][a1162_0x4c30ca(0x177)]=function(_0x4a7362,_0x4b18f8,_0x19419f){const _0x52e85d=a1162_0x4c30ca,_0xaa007e=this;this[_0x52e85d(0x179)]['enqueue'](function(){const _0x232c01=_0x52e85d;return _0xaa007e[_0x232c01(0x17c)][_0x232c01(0x177)](_0x4a7362,_0x4b18f8,_0x19419f)[_0x232c01(0x170)](function(){const _0x3c60d7=_0x232c01;logger['info'](_0x3c60d7(0x17d),_0x4b18f8,_0x19419f,_0x4a7362);})[_0x232c01(0x173)](function(_0x5f533e){const _0x41b178=_0x232c01;logger[_0x41b178(0x171)](util['inspect'](_0x5f533e,{'showHidden':![],'depth':null}));});});},Migration[a1162_0x4c30ca(0x164)][a1162_0x4c30ca(0x16b)]=function(_0x5541b3){const _0x12adc4=a1162_0x4c30ca;this[_0x12adc4(0x179)][_0x12adc4(0x15f)](function(){return _0x5541b3();});},module['exports']={'up':function(_0x5632bd){return new Promise(function(_0x410f5c){const _0x448496=a1162_0x2089,_0x380994=new Migration(_0x5632bd);_0x380994['query'](_0x448496(0x17b)),_0x380994[_0x448496(0x16b)](_0x410f5c);});},'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 a63f5fa..aaba328 100644 --- a/server/migrations/2.4.16.js +++ b/server/migrations/2.4.16.js @@ -1 +1 @@ -const a1163_0x4b33=['fax','renameColumn','removeIndex','phone','stringify','finally','addIndex','changeColumn','indicesType','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','info','Removed\x20column\x20%s\x20from\x20%s','catch','query','mobile','email','enqueue','indexName','prototype','sequence','then','addColumn','table\x20dropped\x20%s','inspect','removeColumn','util','queryInterface','dropTable','final','tail','addIndex\x20%s\x20%s\x20%s\x20[%s]','query\x20%s','Added\x20column\x20%s\x20to\x20%s','cm_contacts','FULLTEXT'];(function(_0x31c8d4,_0x34dfed){const _0x4b33d6=function(_0x894525){while(--_0x894525){_0x31c8d4['push'](_0x31c8d4['shift']());}};_0x4b33d6(++_0x34dfed);}(a1163_0x4b33,0x83));const a1163_0x8945=function(_0x31c8d4,_0x34dfed){_0x31c8d4=_0x31c8d4-0x10f;let _0x4b33d6=a1163_0x4b33[_0x31c8d4];return _0x4b33d6;};const a1163_0x9e78f=a1163_0x8945;'use strict';const util=require(a1163_0x9e78f(0x112)),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1163_0x9e78f(0x12f)][a1163_0x9e78f(0x12d)]=function(_0x2ab372){const _0x46d681=a1163_0x9e78f;this[_0x46d681(0x116)]=this[_0x46d681(0x116)]?this[_0x46d681(0x116)][_0x46d681(0x121)](_0x2ab372):_0x2ab372();};const Migration=function(_0x359ec6){const _0x5929e7=a1163_0x9e78f;this[_0x5929e7(0x113)]=_0x359ec6,this[_0x5929e7(0x130)]=new Sequence();};Migration[a1163_0x9e78f(0x12f)][a1163_0x9e78f(0x123)]=function(_0x4e841f,_0x22bb73,_0x4f6999){const _0x5b323b=a1163_0x9e78f,_0x3e3d0a=this;this[_0x5b323b(0x130)][_0x5b323b(0x12d)](function(){const _0x7e8a17=_0x5b323b;return _0x3e3d0a[_0x7e8a17(0x113)]['changeColumn'](_0x4e841f,_0x22bb73,_0x4f6999)[_0x7e8a17(0x131)](function(){const _0x50c7f0=_0x7e8a17;logger['info'](_0x50c7f0(0x125),_0x22bb73,_0x4e841f);})['catch'](function(_0x2a0734){const _0xdca5ed=_0x7e8a17;logger[_0xdca5ed(0x127)](JSON[_0xdca5ed(0x120)](_0x2a0734));});});},Migration[a1163_0x9e78f(0x12f)][a1163_0x9e78f(0x132)]=function(_0x14a7a2,_0x59f1fb,_0x426c18){const _0x3a027d=a1163_0x9e78f,_0x5547d1=this;this[_0x3a027d(0x130)][_0x3a027d(0x12d)](function(){const _0x1d86a5=_0x3a027d;return _0x5547d1['queryInterface'][_0x1d86a5(0x132)](_0x14a7a2,_0x59f1fb,_0x426c18)[_0x1d86a5(0x131)](function(){const _0x285173=_0x1d86a5;logger[_0x285173(0x127)](_0x285173(0x119),_0x59f1fb,_0x14a7a2);})['catch'](function(_0x4be9d9){const _0x2d8763=_0x1d86a5;logger['info'](JSON[_0x2d8763(0x120)](_0x4be9d9));});});},Migration[a1163_0x9e78f(0x12f)][a1163_0x9e78f(0x114)]=function(_0x2074d8){const _0x42af6a=a1163_0x9e78f,_0xd5ee18=this;this[_0x42af6a(0x130)][_0x42af6a(0x12d)](function(){const _0x1fc16c=_0x42af6a;return _0xd5ee18[_0x1fc16c(0x113)][_0x1fc16c(0x114)](_0x2074d8,{'force':!![]})['then'](function(){const _0x2c9bc3=_0x1fc16c;logger['info'](_0x2c9bc3(0x10f),_0x2074d8);})[_0x1fc16c(0x129)](function(_0x1bf87c){logger['info'](JSON['stringify'](_0x1bf87c));});});},Migration['prototype'][a1163_0x9e78f(0x122)]=function(_0x3807f0,_0x425c10,_0x1d0066){const _0x3ef623=a1163_0x9e78f,_0x3d61fd=this;this[_0x3ef623(0x130)][_0x3ef623(0x12d)](function(){const _0x450f3a=_0x3ef623;return _0x3d61fd['queryInterface'][_0x450f3a(0x122)](_0x3807f0,_0x425c10,{'indexName':_0x1d0066[_0x450f3a(0x12e)],'indicesType':_0x1d0066['indicesType']})['then'](function(){const _0x1fd782=_0x450f3a;logger[_0x1fd782(0x127)](_0x1fd782(0x117),_0x3807f0,_0x425c10['join'](','),_0x1d0066[_0x1fd782(0x12e)],_0x1d0066[_0x1fd782(0x124)]);})[_0x450f3a(0x129)](function(_0x59aef1){const _0x1b7a14=_0x450f3a;logger[_0x1b7a14(0x127)](JSON['stringify'](_0x59aef1));});});},Migration[a1163_0x9e78f(0x12f)][a1163_0x9e78f(0x11e)]=function(_0x23e9ef,_0x32ec19){const _0x2dbbb1=a1163_0x9e78f,_0x11b0e6=this;this[_0x2dbbb1(0x130)][_0x2dbbb1(0x12d)](function(){const _0x328b7b=_0x2dbbb1;return _0x11b0e6[_0x328b7b(0x113)][_0x328b7b(0x11e)](_0x23e9ef,_0x32ec19)[_0x328b7b(0x131)](function(){const _0x1ea16e=_0x328b7b;logger[_0x1ea16e(0x127)]('removeIndex\x20%s\x20%s',_0x23e9ef,_0x32ec19);})[_0x328b7b(0x129)](function(_0x2f934a){const _0x4c4136=_0x328b7b;logger[_0x4c4136(0x127)](JSON['stringify'](_0x2f934a));});});},Migration['prototype']['query']=function(_0x3d339e){const _0x6b01f8=a1163_0x9e78f,_0x82eebe=this;this[_0x6b01f8(0x130)][_0x6b01f8(0x12d)](function(){const _0x324c5d=_0x6b01f8;return _0x82eebe['queryInterface']['sequelize'][_0x324c5d(0x12a)](_0x3d339e)['then'](function(){const _0x182d45=_0x324c5d;logger[_0x182d45(0x127)](_0x182d45(0x118),_0x3d339e);})[_0x324c5d(0x129)](function(_0x12c981){const _0x3a37ce=_0x324c5d;logger[_0x3a37ce(0x127)](JSON[_0x3a37ce(0x120)](_0x12c981));});});},Migration[a1163_0x9e78f(0x12f)][a1163_0x9e78f(0x111)]=function(_0x5ac482,_0x3cdd65){const _0x47e770=a1163_0x9e78f,_0x24962e=this;this['sequence'][_0x47e770(0x12d)](function(){const _0x5dc89f=_0x47e770;return _0x24962e[_0x5dc89f(0x113)][_0x5dc89f(0x111)](_0x5ac482,_0x3cdd65)[_0x5dc89f(0x131)](function(){const _0x8ea2ae=_0x5dc89f;logger[_0x8ea2ae(0x127)](_0x8ea2ae(0x128),_0x3cdd65,_0x5ac482);})[_0x5dc89f(0x129)](function(_0x36fca2){const _0x1a3221=_0x5dc89f;logger['info'](util[_0x1a3221(0x110)](_0x36fca2,{'showHidden':![],'depth':null}));});});},Migration[a1163_0x9e78f(0x12f)][a1163_0x9e78f(0x11d)]=function(_0x32e46d,_0x199ba8,_0x55bb6a){const _0x1dc8e9=a1163_0x9e78f,_0x4b620d=this;this[_0x1dc8e9(0x130)][_0x1dc8e9(0x12d)](function(){const _0x35f831=_0x1dc8e9;return _0x4b620d[_0x35f831(0x113)][_0x35f831(0x11d)](_0x32e46d,_0x199ba8,_0x55bb6a)[_0x35f831(0x131)](function(){const _0x3c1899=_0x35f831;logger[_0x3c1899(0x127)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x199ba8,_0x55bb6a,_0x32e46d);})[_0x35f831(0x129)](function(_0x3bf730){const _0x33e1ac=_0x35f831;logger[_0x33e1ac(0x127)](util[_0x33e1ac(0x110)](_0x3bf730,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1163_0x9e78f(0x115)]=function(_0x18a6d0){const _0x429f0d=a1163_0x9e78f;this[_0x429f0d(0x130)][_0x429f0d(0x12d)](function(){return _0x18a6d0();});},module[a1163_0x9e78f(0x126)]={'up':function(_0x96fe42){return new Promise(function(_0x2c85d2){const _0x6e71e=a1163_0x8945,_0x275de5=new Migration(_0x96fe42);_0x275de5[_0x6e71e(0x122)](_0x6e71e(0x11a),['firstName','lastName',_0x6e71e(0x11f),_0x6e71e(0x12b),_0x6e71e(0x11c),_0x6e71e(0x12c)],{'indexName':'fti_cm_contacts','indicesType':_0x6e71e(0x11b)}),_0x275de5[_0x6e71e(0x115)](_0x2c85d2);});},'down':function(){}}; \ No newline at end of file +const a1163_0xcfe3=['dropTable','email','lastName','tail','sequelize','Added\x20column\x20%s\x20to\x20%s','fax','prototype','indicesType','then','mobile','migration','query\x20%s','indexName','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','table\x20dropped\x20%s','queryInterface','util','removeColumn','final','addIndex\x20%s\x20%s\x20%s\x20[%s]','cm_contacts','changeColumn','renameColumn','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','firstName','query','enqueue','removeIndex\x20%s\x20%s','phone','stringify','sequence','removeIndex','join','info','FULLTEXT','catch'];(function(_0x246300,_0x2a7008){const _0xcfe35c=function(_0x35e517){while(--_0x35e517){_0x246300['push'](_0x246300['shift']());}};_0xcfe35c(++_0x2a7008);}(a1163_0xcfe3,0x100));const a1163_0x35e5=function(_0x246300,_0x2a7008){_0x246300=_0x246300-0x11e;let _0xcfe35c=a1163_0xcfe3[_0x246300];return _0xcfe35c;};const a1163_0x14c015=a1163_0x35e5;'use strict';const util=require(a1163_0x14c015(0x121)),logger=require('../config/logger')(a1163_0x14c015(0x141)),Sequence=function(){};Sequence[a1163_0x14c015(0x13d)][a1163_0x14c015(0x12c)]=function(_0x2d3dce){const _0x26968d=a1163_0x14c015;this['tail']=this[_0x26968d(0x139)]?this[_0x26968d(0x139)][_0x26968d(0x144)](_0x2d3dce):_0x2d3dce();};const Migration=function(_0x1cf48d){const _0x1d9bd1=a1163_0x14c015;this[_0x1d9bd1(0x120)]=_0x1cf48d,this['sequence']=new Sequence();};Migration[a1163_0x14c015(0x13d)][a1163_0x14c015(0x126)]=function(_0x4cc2e7,_0x1168bd,_0x81e7a6){const _0xf3654d=a1163_0x14c015,_0x24e00a=this;this[_0xf3654d(0x130)][_0xf3654d(0x12c)](function(){const _0x1b680c=_0xf3654d;return _0x24e00a['queryInterface'][_0x1b680c(0x126)](_0x4cc2e7,_0x1168bd,_0x81e7a6)[_0x1b680c(0x13f)](function(){const _0x55d85a=_0x1b680c;logger[_0x55d85a(0x133)](_0x55d85a(0x145),_0x1168bd,_0x4cc2e7);})[_0x1b680c(0x135)](function(_0x3dbe36){const _0x3e17bc=_0x1b680c;logger[_0x3e17bc(0x133)](JSON[_0x3e17bc(0x12f)](_0x3dbe36));});});},Migration[a1163_0x14c015(0x13d)][a1163_0x14c015(0x11e)]=function(_0x52ab4f,_0x17381a,_0x59d810){const _0x4b035f=this;this['sequence']['enqueue'](function(){const _0x534c17=a1163_0x35e5;return _0x4b035f[_0x534c17(0x120)][_0x534c17(0x11e)](_0x52ab4f,_0x17381a,_0x59d810)[_0x534c17(0x13f)](function(){const _0x37250c=_0x534c17;logger['info'](_0x37250c(0x13b),_0x17381a,_0x52ab4f);})['catch'](function(_0x2d2227){const _0x4948cb=_0x534c17;logger[_0x4948cb(0x133)](JSON[_0x4948cb(0x12f)](_0x2d2227));});});},Migration['prototype'][a1163_0x14c015(0x136)]=function(_0x4c26f7){const _0x182282=a1163_0x14c015,_0x1f6981=this;this[_0x182282(0x130)][_0x182282(0x12c)](function(){const _0x5dabb0=_0x182282;return _0x1f6981[_0x5dabb0(0x120)][_0x5dabb0(0x136)](_0x4c26f7,{'force':!![]})[_0x5dabb0(0x13f)](function(){const _0x40e6f6=_0x5dabb0;logger['info'](_0x40e6f6(0x11f),_0x4c26f7);})[_0x5dabb0(0x135)](function(_0x3ec0e0){const _0x3cfcce=_0x5dabb0;logger[_0x3cfcce(0x133)](JSON['stringify'](_0x3ec0e0));});});},Migration[a1163_0x14c015(0x13d)][a1163_0x14c015(0x128)]=function(_0x374899,_0x472312,_0x17f85e){const _0x92c1bf=a1163_0x14c015,_0x4d1f81=this;this['sequence'][_0x92c1bf(0x12c)](function(){const _0x11bb88=_0x92c1bf;return _0x4d1f81[_0x11bb88(0x120)]['addIndex'](_0x374899,_0x472312,{'indexName':_0x17f85e[_0x11bb88(0x143)],'indicesType':_0x17f85e[_0x11bb88(0x13e)]})[_0x11bb88(0x13f)](function(){const _0x16c8d0=_0x11bb88;logger['info'](_0x16c8d0(0x124),_0x374899,_0x472312[_0x16c8d0(0x132)](','),_0x17f85e[_0x16c8d0(0x143)],_0x17f85e[_0x16c8d0(0x13e)]);})['catch'](function(_0x1d662f){const _0x20ac9e=_0x11bb88;logger[_0x20ac9e(0x133)](JSON[_0x20ac9e(0x12f)](_0x1d662f));});});},Migration[a1163_0x14c015(0x13d)][a1163_0x14c015(0x131)]=function(_0x45d1b2,_0x268f52){const _0xfc2bec=a1163_0x14c015,_0x4bbe0c=this;this[_0xfc2bec(0x130)][_0xfc2bec(0x12c)](function(){const _0x95a9ec=_0xfc2bec;return _0x4bbe0c[_0x95a9ec(0x120)][_0x95a9ec(0x131)](_0x45d1b2,_0x268f52)[_0x95a9ec(0x13f)](function(){const _0x5dee27=_0x95a9ec;logger[_0x5dee27(0x133)](_0x5dee27(0x12d),_0x45d1b2,_0x268f52);})[_0x95a9ec(0x135)](function(_0x5bca51){const _0x4d6c1f=_0x95a9ec;logger[_0x4d6c1f(0x133)](JSON[_0x4d6c1f(0x12f)](_0x5bca51));});});},Migration[a1163_0x14c015(0x13d)][a1163_0x14c015(0x12b)]=function(_0x268316){const _0x5139c8=a1163_0x14c015,_0x55f2b3=this;this[_0x5139c8(0x130)]['enqueue'](function(){const _0x3e2e68=_0x5139c8;return _0x55f2b3[_0x3e2e68(0x120)][_0x3e2e68(0x13a)][_0x3e2e68(0x12b)](_0x268316)['then'](function(){const _0x8f3450=_0x3e2e68;logger[_0x8f3450(0x133)](_0x8f3450(0x142),_0x268316);})['catch'](function(_0x32713a){const _0xc4e5a8=_0x3e2e68;logger[_0xc4e5a8(0x133)](JSON[_0xc4e5a8(0x12f)](_0x32713a));});});},Migration[a1163_0x14c015(0x13d)][a1163_0x14c015(0x122)]=function(_0x4c0a91,_0x14fc64){const _0x4fd1c8=a1163_0x14c015,_0x3c58a8=this;this[_0x4fd1c8(0x130)][_0x4fd1c8(0x12c)](function(){const _0x51447f=_0x4fd1c8;return _0x3c58a8['queryInterface'][_0x51447f(0x122)](_0x4c0a91,_0x14fc64)['then'](function(){const _0x3b5701=_0x51447f;logger[_0x3b5701(0x133)]('Removed\x20column\x20%s\x20from\x20%s',_0x14fc64,_0x4c0a91);})['catch'](function(_0x4c4f6a){const _0x319925=_0x51447f;logger[_0x319925(0x133)](util['inspect'](_0x4c4f6a,{'showHidden':![],'depth':null}));});});},Migration[a1163_0x14c015(0x13d)]['renameColumn']=function(_0x3f54cd,_0xcd3a11,_0x57bf11){const _0x3b250d=this;this['sequence']['enqueue'](function(){const _0x5c7907=a1163_0x35e5;return _0x3b250d['queryInterface'][_0x5c7907(0x127)](_0x3f54cd,_0xcd3a11,_0x57bf11)[_0x5c7907(0x13f)](function(){const _0xd3fcb7=_0x5c7907;logger[_0xd3fcb7(0x133)](_0xd3fcb7(0x129),_0xcd3a11,_0x57bf11,_0x3f54cd);})['catch'](function(_0x5776e6){const _0x1e8acb=_0x5c7907;logger[_0x1e8acb(0x133)](util['inspect'](_0x5776e6,{'showHidden':![],'depth':null}));});});},Migration[a1163_0x14c015(0x13d)][a1163_0x14c015(0x123)]=function(_0x14748e){const _0xd7058b=a1163_0x14c015;this[_0xd7058b(0x130)][_0xd7058b(0x12c)](function(){return _0x14748e();});},module['exports']={'up':function(_0x3eb597){return new Promise(function(_0x2201ef){const _0x471ce6=a1163_0x35e5,_0x2601a0=new Migration(_0x3eb597);_0x2601a0[_0x471ce6(0x128)](_0x471ce6(0x125),[_0x471ce6(0x12a),_0x471ce6(0x138),_0x471ce6(0x12e),_0x471ce6(0x140),_0x471ce6(0x13c),_0x471ce6(0x137)],{'indexName':'fti_cm_contacts','indicesType':_0x471ce6(0x134)}),_0x2601a0[_0x471ce6(0x123)](_0x2201ef);});},'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 81c8d19..7487b21 100644 --- a/server/migrations/2.4.17.js +++ b/server/migrations/2.4.17.js @@ -1 +1 @@ -const a1164_0x597a=['removeIndex\x20%s\x20%s','removeIndex','catch','info','prototype','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','enqueue','removeColumn','exports','then','changeColumn','renameColumn','indexName','util','inspect','indicesType','Added\x20column\x20%s\x20to\x20%s','stringify','final','sequence','addColumn','tail','queryInterface','query','join','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable'];(function(_0x28ec45,_0x222fe3){const _0x597ac0=function(_0x498212){while(--_0x498212){_0x28ec45['push'](_0x28ec45['shift']());}};_0x597ac0(++_0x222fe3);}(a1164_0x597a,0x114));const a1164_0x4982=function(_0x28ec45,_0x222fe3){_0x28ec45=_0x28ec45-0x1a5;let _0x597ac0=a1164_0x597a[_0x28ec45];return _0x597ac0;};const a1164_0x13afa4=a1164_0x4982;'use strict';const util=require(a1164_0x13afa4(0x1ae)),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1164_0x13afa4(0x1c1)][a1164_0x13afa4(0x1a7)]=function(_0x26a6ea){const _0x3d382d=a1164_0x13afa4;this[_0x3d382d(0x1b6)]=this[_0x3d382d(0x1b6)]?this[_0x3d382d(0x1b6)]['finally'](_0x26a6ea):_0x26a6ea();};const Migration=function(_0x271c3d){const _0x120240=a1164_0x13afa4;this[_0x120240(0x1b7)]=_0x271c3d,this[_0x120240(0x1b4)]=new Sequence();};Migration[a1164_0x13afa4(0x1c1)][a1164_0x13afa4(0x1ab)]=function(_0x4800a1,_0x49c5f6,_0x3b4fd4){const _0x4c9924=a1164_0x13afa4,_0x2eb320=this;this[_0x4c9924(0x1b4)][_0x4c9924(0x1a7)](function(){const _0x3031ad=_0x4c9924;return _0x2eb320[_0x3031ad(0x1b7)][_0x3031ad(0x1ab)](_0x4800a1,_0x49c5f6,_0x3b4fd4)[_0x3031ad(0x1aa)](function(){const _0x160b96=_0x3031ad;logger[_0x160b96(0x1c0)](_0x160b96(0x1a5),_0x49c5f6,_0x4800a1);})[_0x3031ad(0x1bf)](function(_0x463f20){const _0x31b3a5=_0x3031ad;logger[_0x31b3a5(0x1c0)](JSON[_0x31b3a5(0x1b2)](_0x463f20));});});},Migration[a1164_0x13afa4(0x1c1)][a1164_0x13afa4(0x1b5)]=function(_0x93c16a,_0x2a36ce,_0x178796){const _0x5517d2=a1164_0x13afa4,_0x37f0fc=this;this[_0x5517d2(0x1b4)][_0x5517d2(0x1a7)](function(){const _0x327fb7=_0x5517d2;return _0x37f0fc['queryInterface'][_0x327fb7(0x1b5)](_0x93c16a,_0x2a36ce,_0x178796)['then'](function(){const _0x57b74d=_0x327fb7;logger['info'](_0x57b74d(0x1b1),_0x2a36ce,_0x93c16a);})[_0x327fb7(0x1bf)](function(_0x3d2176){const _0x44be2a=_0x327fb7;logger[_0x44be2a(0x1c0)](JSON[_0x44be2a(0x1b2)](_0x3d2176));});});},Migration['prototype']['dropTable']=function(_0x3a6e36){const _0x4d27e5=a1164_0x13afa4,_0x5aa481=this;this['sequence'][_0x4d27e5(0x1a7)](function(){const _0x32cbd5=_0x4d27e5;return _0x5aa481[_0x32cbd5(0x1b7)][_0x32cbd5(0x1bc)](_0x3a6e36,{'force':!![]})[_0x32cbd5(0x1aa)](function(){const _0x4a80e0=_0x32cbd5;logger[_0x4a80e0(0x1c0)]('table\x20dropped\x20%s',_0x3a6e36);})['catch'](function(_0x57b468){const _0x252a00=_0x32cbd5;logger[_0x252a00(0x1c0)](JSON['stringify'](_0x57b468));});});},Migration[a1164_0x13afa4(0x1c1)][a1164_0x13afa4(0x1ba)]=function(_0x40ccf7,_0x4eaea3,_0x398d55){const _0x610444=a1164_0x13afa4,_0x19d855=this;this[_0x610444(0x1b4)][_0x610444(0x1a7)](function(){const _0x40fe49=_0x610444;return _0x19d855[_0x40fe49(0x1b7)]['addIndex'](_0x40ccf7,_0x4eaea3,{'indexName':_0x398d55[_0x40fe49(0x1ad)],'indicesType':_0x398d55['indicesType']})[_0x40fe49(0x1aa)](function(){const _0x2cc02a=_0x40fe49;logger[_0x2cc02a(0x1c0)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x40ccf7,_0x4eaea3[_0x2cc02a(0x1b9)](','),_0x398d55[_0x2cc02a(0x1ad)],_0x398d55[_0x2cc02a(0x1b0)]);})[_0x40fe49(0x1bf)](function(_0xcfed4f){const _0x24933c=_0x40fe49;logger[_0x24933c(0x1c0)](JSON[_0x24933c(0x1b2)](_0xcfed4f));});});},Migration[a1164_0x13afa4(0x1c1)][a1164_0x13afa4(0x1be)]=function(_0x19f865,_0x2fd142){const _0x4037a1=a1164_0x13afa4,_0x3fc1a5=this;this['sequence'][_0x4037a1(0x1a7)](function(){const _0xe8d93f=_0x4037a1;return _0x3fc1a5[_0xe8d93f(0x1b7)][_0xe8d93f(0x1be)](_0x19f865,_0x2fd142)[_0xe8d93f(0x1aa)](function(){const _0x51b9f2=_0xe8d93f;logger[_0x51b9f2(0x1c0)](_0x51b9f2(0x1bd),_0x19f865,_0x2fd142);})[_0xe8d93f(0x1bf)](function(_0x2a8eb0){const _0x3a0d97=_0xe8d93f;logger[_0x3a0d97(0x1c0)](JSON[_0x3a0d97(0x1b2)](_0x2a8eb0));});});},Migration[a1164_0x13afa4(0x1c1)][a1164_0x13afa4(0x1b8)]=function(_0x231f88){const _0x33f90f=a1164_0x13afa4,_0x665d33=this;this[_0x33f90f(0x1b4)]['enqueue'](function(){const _0x5c5963=_0x33f90f;return _0x665d33['queryInterface'][_0x5c5963(0x1a6)][_0x5c5963(0x1b8)](_0x231f88)[_0x5c5963(0x1aa)](function(){const _0x814347=_0x5c5963;logger[_0x814347(0x1c0)](_0x814347(0x1c2),_0x231f88);})[_0x5c5963(0x1bf)](function(_0x561419){const _0x2200d1=_0x5c5963;logger[_0x2200d1(0x1c0)](JSON['stringify'](_0x561419));});});},Migration[a1164_0x13afa4(0x1c1)][a1164_0x13afa4(0x1a8)]=function(_0x2d9468,_0x3e032f){const _0x201a22=a1164_0x13afa4,_0x3d7baa=this;this[_0x201a22(0x1b4)][_0x201a22(0x1a7)](function(){const _0x1972a3=_0x201a22;return _0x3d7baa[_0x1972a3(0x1b7)][_0x1972a3(0x1a8)](_0x2d9468,_0x3e032f)[_0x1972a3(0x1aa)](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x3e032f,_0x2d9468);})[_0x1972a3(0x1bf)](function(_0xa8909b){const _0x27bfed=_0x1972a3;logger[_0x27bfed(0x1c0)](util['inspect'](_0xa8909b,{'showHidden':![],'depth':null}));});});},Migration[a1164_0x13afa4(0x1c1)][a1164_0x13afa4(0x1ac)]=function(_0x3015c7,_0x367898,_0x347162){const _0x365665=a1164_0x13afa4,_0x23ddb0=this;this[_0x365665(0x1b4)][_0x365665(0x1a7)](function(){const _0x14743a=_0x365665;return _0x23ddb0['queryInterface'][_0x14743a(0x1ac)](_0x3015c7,_0x367898,_0x347162)[_0x14743a(0x1aa)](function(){const _0x5c9cd0=_0x14743a;logger['info'](_0x5c9cd0(0x1bb),_0x367898,_0x347162,_0x3015c7);})['catch'](function(_0x37b63e){const _0x474110=_0x14743a;logger[_0x474110(0x1c0)](util[_0x474110(0x1af)](_0x37b63e,{'showHidden':![],'depth':null}));});});},Migration[a1164_0x13afa4(0x1c1)][a1164_0x13afa4(0x1b3)]=function(_0x6f63a0){const _0x3cce7e=a1164_0x13afa4;this[_0x3cce7e(0x1b4)]['enqueue'](function(){return _0x6f63a0();});},module[a1164_0x13afa4(0x1a9)]={'up':function(_0x3c488c){return new Promise(function(_0x3f3d4e){const _0x2a4570=a1164_0x4982,_0x30b34b=new Migration(_0x3c488c);_0x30b34b[_0x2a4570(0x1b3)](_0x3f3d4e);});},'down':function(){}}; \ No newline at end of file +const a1164_0x445d=['Added\x20column\x20%s\x20to\x20%s','renameColumn','removeIndex\x20%s\x20%s','indexName','addIndex\x20%s\x20%s\x20%s\x20[%s]','indicesType','tail','query','info','addIndex','sequence','migration','../config/logger','prototype','removeColumn','enqueue','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','final','Removed\x20column\x20%s\x20from\x20%s','catch','dropTable','exports','then','queryInterface','join','addColumn','removeIndex','inspect','query\x20%s'];(function(_0x59e126,_0x40d562){const _0x445d90=function(_0x549e13){while(--_0x549e13){_0x59e126['push'](_0x59e126['shift']());}};_0x445d90(++_0x40d562);}(a1164_0x445d,0xc0));const a1164_0x549e=function(_0x59e126,_0x40d562){_0x59e126=_0x59e126-0x167;let _0x445d90=a1164_0x445d[_0x59e126];return _0x445d90;};const a1164_0x368288=a1164_0x549e;'use strict';const util=require('util'),logger=require(a1164_0x368288(0x179))(a1164_0x368288(0x178)),Sequence=function(){};Sequence[a1164_0x368288(0x17a)][a1164_0x368288(0x17c)]=function(_0x3909c7){const _0x5b970c=a1164_0x368288;this[_0x5b970c(0x173)]=this['tail']?this[_0x5b970c(0x173)]['finally'](_0x3909c7):_0x3909c7();};const Migration=function(_0x46e9e1){const _0x34d259=a1164_0x368288;this[_0x34d259(0x167)]=_0x46e9e1,this[_0x34d259(0x177)]=new Sequence();};Migration[a1164_0x368288(0x17a)][a1164_0x368288(0x181)]=function(_0x2d4649,_0x32c883,_0x434227){const _0x500830=a1164_0x368288,_0x440e63=this;this[_0x500830(0x177)][_0x500830(0x17c)](function(){const _0x169cc8=_0x500830;return _0x440e63['queryInterface'][_0x169cc8(0x181)](_0x2d4649,_0x32c883,_0x434227)[_0x169cc8(0x187)](function(){const _0x41f79d=_0x169cc8;logger[_0x41f79d(0x175)](_0x41f79d(0x17e),_0x32c883,_0x2d4649);})[_0x169cc8(0x184)](function(_0x2561ca){const _0x5bb695=_0x169cc8;logger[_0x5bb695(0x175)](JSON['stringify'](_0x2561ca));});});},Migration['prototype']['addColumn']=function(_0x2b3013,_0x43339c,_0x5b6587){const _0x1c0503=a1164_0x368288,_0x4e6af1=this;this['sequence'][_0x1c0503(0x17c)](function(){const _0x1e95e0=_0x1c0503;return _0x4e6af1[_0x1e95e0(0x167)][_0x1e95e0(0x169)](_0x2b3013,_0x43339c,_0x5b6587)[_0x1e95e0(0x187)](function(){const _0x47a991=_0x1e95e0;logger[_0x47a991(0x175)](_0x47a991(0x16d),_0x43339c,_0x2b3013);})[_0x1e95e0(0x184)](function(_0x43d22a){const _0x55c8e1=_0x1e95e0;logger[_0x55c8e1(0x175)](JSON[_0x55c8e1(0x17f)](_0x43d22a));});});},Migration[a1164_0x368288(0x17a)][a1164_0x368288(0x185)]=function(_0x2aed9f){const _0x4ec219=a1164_0x368288,_0x16a36a=this;this[_0x4ec219(0x177)][_0x4ec219(0x17c)](function(){const _0x388afb=_0x4ec219;return _0x16a36a[_0x388afb(0x167)][_0x388afb(0x185)](_0x2aed9f,{'force':!![]})[_0x388afb(0x187)](function(){const _0xa8599c=_0x388afb;logger[_0xa8599c(0x175)]('table\x20dropped\x20%s',_0x2aed9f);})[_0x388afb(0x184)](function(_0x8756ed){const _0x9bb4a9=_0x388afb;logger[_0x9bb4a9(0x175)](JSON[_0x9bb4a9(0x17f)](_0x8756ed));});});},Migration[a1164_0x368288(0x17a)][a1164_0x368288(0x176)]=function(_0x1f78ac,_0x5cdf2d,_0x3eaba1){const _0x5a8595=a1164_0x368288,_0x1cd80d=this;this[_0x5a8595(0x177)]['enqueue'](function(){const _0x21c90a=_0x5a8595;return _0x1cd80d[_0x21c90a(0x167)][_0x21c90a(0x176)](_0x1f78ac,_0x5cdf2d,{'indexName':_0x3eaba1[_0x21c90a(0x170)],'indicesType':_0x3eaba1[_0x21c90a(0x172)]})['then'](function(){const _0xf2b9e8=_0x21c90a;logger['info'](_0xf2b9e8(0x171),_0x1f78ac,_0x5cdf2d[_0xf2b9e8(0x168)](','),_0x3eaba1['indexName'],_0x3eaba1[_0xf2b9e8(0x172)]);})['catch'](function(_0x199236){const _0x540211=_0x21c90a;logger['info'](JSON[_0x540211(0x17f)](_0x199236));});});},Migration[a1164_0x368288(0x17a)][a1164_0x368288(0x16a)]=function(_0x33eb65,_0x2017cb){const _0x2091b8=a1164_0x368288,_0x2e0937=this;this[_0x2091b8(0x177)][_0x2091b8(0x17c)](function(){const _0x586ee3=_0x2091b8;return _0x2e0937[_0x586ee3(0x167)][_0x586ee3(0x16a)](_0x33eb65,_0x2017cb)[_0x586ee3(0x187)](function(){const _0x3633a4=_0x586ee3;logger[_0x3633a4(0x175)](_0x3633a4(0x16f),_0x33eb65,_0x2017cb);})['catch'](function(_0x40a8fb){const _0x3b4f60=_0x586ee3;logger[_0x3b4f60(0x175)](JSON[_0x3b4f60(0x17f)](_0x40a8fb));});});},Migration['prototype']['query']=function(_0xaeb7){const _0x28a0bd=a1164_0x368288,_0x5d59cf=this;this[_0x28a0bd(0x177)]['enqueue'](function(){const _0x5d6a73=_0x28a0bd;return _0x5d59cf[_0x5d6a73(0x167)][_0x5d6a73(0x17d)][_0x5d6a73(0x174)](_0xaeb7)[_0x5d6a73(0x187)](function(){const _0x45102=_0x5d6a73;logger[_0x45102(0x175)](_0x45102(0x16c),_0xaeb7);})[_0x5d6a73(0x184)](function(_0x473daa){const _0x459272=_0x5d6a73;logger[_0x459272(0x175)](JSON[_0x459272(0x17f)](_0x473daa));});});},Migration['prototype'][a1164_0x368288(0x17b)]=function(_0x5b4e38,_0x52de7f){const _0x1e6b73=a1164_0x368288,_0x54b956=this;this[_0x1e6b73(0x177)][_0x1e6b73(0x17c)](function(){const _0x471ac8=_0x1e6b73;return _0x54b956[_0x471ac8(0x167)]['removeColumn'](_0x5b4e38,_0x52de7f)[_0x471ac8(0x187)](function(){const _0x1dff90=_0x471ac8;logger['info'](_0x1dff90(0x183),_0x52de7f,_0x5b4e38);})[_0x471ac8(0x184)](function(_0x162a00){const _0xcf58f=_0x471ac8;logger[_0xcf58f(0x175)](util[_0xcf58f(0x16b)](_0x162a00,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1164_0x368288(0x16e)]=function(_0x473121,_0x427eab,_0x46c008){const _0x3b4660=a1164_0x368288,_0x3f99a3=this;this[_0x3b4660(0x177)]['enqueue'](function(){const _0x5635ac=_0x3b4660;return _0x3f99a3[_0x5635ac(0x167)]['renameColumn'](_0x473121,_0x427eab,_0x46c008)[_0x5635ac(0x187)](function(){const _0x412074=_0x5635ac;logger[_0x412074(0x175)](_0x412074(0x180),_0x427eab,_0x46c008,_0x473121);})[_0x5635ac(0x184)](function(_0x385239){const _0x251033=_0x5635ac;logger[_0x251033(0x175)](util[_0x251033(0x16b)](_0x385239,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1164_0x368288(0x182)]=function(_0x30fc33){const _0x160470=a1164_0x368288;this[_0x160470(0x177)][_0x160470(0x17c)](function(){return _0x30fc33();});},module[a1164_0x368288(0x186)]={'up':function(_0x2801be){return new Promise(function(_0x18cf86){const _0x4362bf=a1164_0x549e,_0x145f71=new Migration(_0x2801be);_0x145f71[_0x4362bf(0x182)](_0x18cf86);});},'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 7a4f04c..57655ca 100644 --- a/server/migrations/2.4.18.js +++ b/server/migrations/2.4.18.js @@ -1 +1 @@ -const a1165_0x1659=['indicesType','addColumn','final','changeColumn','table\x20dropped\x20%s','inspect','info','queryInterface','addIndex','catch','dropTable','prototype','sequence','Removed\x20column\x20%s\x20from\x20%s','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','removeIndex\x20%s\x20%s','enqueue','addIndex\x20%s\x20%s\x20%s\x20[%s]','UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL','UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL','tail','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','indexName','stringify','removeIndex','Added\x20column\x20%s\x20to\x20%s','query'];(function(_0xe2c09f,_0x5660a6){const _0x165969=function(_0x494167){while(--_0x494167){_0xe2c09f['push'](_0xe2c09f['shift']());}};_0x165969(++_0x5660a6);}(a1165_0x1659,0x1f3));const a1165_0x4941=function(_0xe2c09f,_0x5660a6){_0xe2c09f=_0xe2c09f-0xf6;let _0x165969=a1165_0x1659[_0xe2c09f];return _0x165969;};const a1165_0x107d6a=a1165_0x4941;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1165_0x107d6a(0xfe)][a1165_0x107d6a(0x105)]=function(_0x5b1d16){const _0x474ab8=a1165_0x107d6a;this[_0x474ab8(0x109)]=this[_0x474ab8(0x109)]?this[_0x474ab8(0x109)]['finally'](_0x5b1d16):_0x5b1d16();};const Migration=function(_0xd35a7a){const _0x11c3dd=a1165_0x107d6a;this[_0x11c3dd(0xfa)]=_0xd35a7a,this[_0x11c3dd(0xff)]=new Sequence();};Migration['prototype'][a1165_0x107d6a(0xf6)]=function(_0x7b4605,_0x5ea0c6,_0x2de62a){const _0x3ec3eb=a1165_0x107d6a,_0x32e996=this;this[_0x3ec3eb(0xff)][_0x3ec3eb(0x105)](function(){const _0x2fd941=_0x3ec3eb;return _0x32e996['queryInterface'][_0x2fd941(0xf6)](_0x7b4605,_0x5ea0c6,_0x2de62a)[_0x2fd941(0x103)](function(){const _0x1782bc=_0x2fd941;logger[_0x1782bc(0xf9)](_0x1782bc(0x10b),_0x5ea0c6,_0x7b4605);})[_0x2fd941(0xfc)](function(_0x6b7799){const _0x2c84cc=_0x2fd941;logger['info'](JSON[_0x2c84cc(0x10e)](_0x6b7799));});});},Migration['prototype'][a1165_0x107d6a(0x113)]=function(_0x25bb57,_0x349928,_0x38fb1b){const _0x29ee1b=a1165_0x107d6a,_0x347b47=this;this[_0x29ee1b(0xff)]['enqueue'](function(){const _0x17963d=_0x29ee1b;return _0x347b47[_0x17963d(0xfa)]['addColumn'](_0x25bb57,_0x349928,_0x38fb1b)['then'](function(){const _0x1f5b21=_0x17963d;logger[_0x1f5b21(0xf9)](_0x1f5b21(0x110),_0x349928,_0x25bb57);})[_0x17963d(0xfc)](function(_0x2ed6f0){const _0x2df647=_0x17963d;logger[_0x2df647(0xf9)](JSON[_0x2df647(0x10e)](_0x2ed6f0));});});},Migration[a1165_0x107d6a(0xfe)][a1165_0x107d6a(0xfd)]=function(_0x90f264){const _0x592cc3=this;this['sequence']['enqueue'](function(){const _0x51dfd0=a1165_0x4941;return _0x592cc3[_0x51dfd0(0xfa)]['dropTable'](_0x90f264,{'force':!![]})[_0x51dfd0(0x103)](function(){const _0x57d5c7=_0x51dfd0;logger[_0x57d5c7(0xf9)](_0x57d5c7(0xf7),_0x90f264);})[_0x51dfd0(0xfc)](function(_0x3d18df){const _0x51a5e3=_0x51dfd0;logger['info'](JSON[_0x51a5e3(0x10e)](_0x3d18df));});});},Migration['prototype'][a1165_0x107d6a(0xfb)]=function(_0x17ec70,_0x226b65,_0x3fb5e2){const _0x404d96=a1165_0x107d6a,_0x578dc8=this;this['sequence'][_0x404d96(0x105)](function(){const _0xd2b852=_0x404d96;return _0x578dc8[_0xd2b852(0xfa)][_0xd2b852(0xfb)](_0x17ec70,_0x226b65,{'indexName':_0x3fb5e2['indexName'],'indicesType':_0x3fb5e2[_0xd2b852(0x112)]})[_0xd2b852(0x103)](function(){const _0x798567=_0xd2b852;logger[_0x798567(0xf9)](_0x798567(0x106),_0x17ec70,_0x226b65['join'](','),_0x3fb5e2[_0x798567(0x10d)],_0x3fb5e2[_0x798567(0x112)]);})[_0xd2b852(0xfc)](function(_0x4198d0){const _0x2749a7=_0xd2b852;logger[_0x2749a7(0xf9)](JSON[_0x2749a7(0x10e)](_0x4198d0));});});},Migration[a1165_0x107d6a(0xfe)]['removeIndex']=function(_0x395894,_0x2615a6){const _0x1d8874=a1165_0x107d6a,_0x4e1e6d=this;this[_0x1d8874(0xff)]['enqueue'](function(){const _0x23d8b9=_0x1d8874;return _0x4e1e6d[_0x23d8b9(0xfa)][_0x23d8b9(0x10f)](_0x395894,_0x2615a6)['then'](function(){const _0x300fac=_0x23d8b9;logger[_0x300fac(0xf9)](_0x300fac(0x104),_0x395894,_0x2615a6);})['catch'](function(_0x201759){const _0x225e4c=_0x23d8b9;logger[_0x225e4c(0xf9)](JSON['stringify'](_0x201759));});});},Migration['prototype'][a1165_0x107d6a(0x111)]=function(_0x5933f9){const _0xb49273=a1165_0x107d6a,_0x2693f0=this;this[_0xb49273(0xff)][_0xb49273(0x105)](function(){const _0x57d966=_0xb49273;return _0x2693f0['queryInterface'][_0x57d966(0x10c)][_0x57d966(0x111)](_0x5933f9)[_0x57d966(0x103)](function(){const _0x34a806=_0x57d966;logger[_0x34a806(0xf9)]('query\x20%s',_0x5933f9);})[_0x57d966(0xfc)](function(_0x5cb149){const _0x50834f=_0x57d966;logger[_0x50834f(0xf9)](JSON[_0x50834f(0x10e)](_0x5cb149));});});},Migration[a1165_0x107d6a(0xfe)]['removeColumn']=function(_0x49e816,_0x419a8a){const _0x3179f6=a1165_0x107d6a,_0xf7c676=this;this[_0x3179f6(0xff)][_0x3179f6(0x105)](function(){const _0xbe5f06=_0x3179f6;return _0xf7c676[_0xbe5f06(0xfa)][_0xbe5f06(0x10a)](_0x49e816,_0x419a8a)['then'](function(){const _0x185ebf=_0xbe5f06;logger[_0x185ebf(0xf9)](_0x185ebf(0x100),_0x419a8a,_0x49e816);})['catch'](function(_0xf33f02){const _0x682e6f=_0xbe5f06;logger['info'](util[_0x682e6f(0xf8)](_0xf33f02,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1165_0x107d6a(0x101)]=function(_0x2d1553,_0xc10aa5,_0x26ee0a){const _0x5d4e33=a1165_0x107d6a,_0xbb0764=this;this[_0x5d4e33(0xff)]['enqueue'](function(){const _0x4577e7=_0x5d4e33;return _0xbb0764['queryInterface'][_0x4577e7(0x101)](_0x2d1553,_0xc10aa5,_0x26ee0a)['then'](function(){const _0x2af04b=_0x4577e7;logger['info'](_0x2af04b(0x102),_0xc10aa5,_0x26ee0a,_0x2d1553);})[_0x4577e7(0xfc)](function(_0x244e42){const _0x2aa6eb=_0x4577e7;logger['info'](util[_0x2aa6eb(0xf8)](_0x244e42,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1165_0x107d6a(0x114)]=function(_0x6b81b8){const _0x21894a=a1165_0x107d6a;this[_0x21894a(0xff)]['enqueue'](function(){return _0x6b81b8();});},module['exports']={'up':function(_0x5e8863){return new Promise(function(_0x2696c8){const _0x3df50c=a1165_0x4941,_0x7a007d=new Migration(_0x5e8863);_0x7a007d[_0x3df50c(0x111)](_0x3df50c(0x108)),_0x7a007d[_0x3df50c(0x111)](_0x3df50c(0x107)),_0x7a007d['final'](_0x2696c8);});},'down':function(){}}; \ No newline at end of file +const a1165_0x2c47=['UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL','migration','join','table\x20dropped\x20%s','dropTable','indicesType','catch','Added\x20column\x20%s\x20to\x20%s','query\x20%s','enqueue','removeIndex','finally','removeColumn','../config/logger','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','renameColumn','changeColumn','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL','util','addColumn','final','queryInterface','stringify','info','indexName','addIndex\x20%s\x20%s\x20%s\x20[%s]','then','sequence','Removed\x20column\x20%s\x20from\x20%s','addIndex','exports'];(function(_0xb2f1cf,_0x54db16){const _0x2c4720=function(_0x4c76f0){while(--_0x4c76f0){_0xb2f1cf['push'](_0xb2f1cf['shift']());}};_0x2c4720(++_0x54db16);}(a1165_0x2c47,0x108));const a1165_0x4c76=function(_0xb2f1cf,_0x54db16){_0xb2f1cf=_0xb2f1cf-0x1cc;let _0x2c4720=a1165_0x2c47[_0xb2f1cf];return _0x2c4720;};const a1165_0x912b73=a1165_0x4c76;'use strict';const util=require(a1165_0x912b73(0x1cf)),logger=require(a1165_0x912b73(0x1e9))(a1165_0x912b73(0x1dd)),Sequence=function(){};Sequence[a1165_0x912b73(0x1cc)][a1165_0x912b73(0x1e5)]=function(_0x35515c){const _0x43eea6=a1165_0x912b73;this[_0x43eea6(0x1ec)]=this['tail']?this[_0x43eea6(0x1ec)][_0x43eea6(0x1e7)](_0x35515c):_0x35515c();};const Migration=function(_0x135d92){const _0x110132=a1165_0x912b73;this[_0x110132(0x1d2)]=_0x135d92,this[_0x110132(0x1d8)]=new Sequence();};Migration[a1165_0x912b73(0x1cc)][a1165_0x912b73(0x1ee)]=function(_0x572099,_0x20abbf,_0x377bb0){const _0x2a3508=a1165_0x912b73,_0xd7a716=this;this[_0x2a3508(0x1d8)][_0x2a3508(0x1e5)](function(){const _0x2f0586=_0x2a3508;return _0xd7a716['queryInterface']['changeColumn'](_0x572099,_0x20abbf,_0x377bb0)[_0x2f0586(0x1d7)](function(){const _0x2076d8=_0x2f0586;logger['info'](_0x2076d8(0x1cd),_0x20abbf,_0x572099);})['catch'](function(_0x5f0e2a){const _0x3cc4c3=_0x2f0586;logger['info'](JSON[_0x3cc4c3(0x1d3)](_0x5f0e2a));});});},Migration[a1165_0x912b73(0x1cc)][a1165_0x912b73(0x1d0)]=function(_0x71db0a,_0x576f56,_0x34a7cd){const _0x578d74=a1165_0x912b73,_0xf07eb1=this;this['sequence'][_0x578d74(0x1e5)](function(){const _0x1d7006=_0x578d74;return _0xf07eb1[_0x1d7006(0x1d2)][_0x1d7006(0x1d0)](_0x71db0a,_0x576f56,_0x34a7cd)['then'](function(){const _0x4812e1=_0x1d7006;logger[_0x4812e1(0x1d4)](_0x4812e1(0x1e3),_0x576f56,_0x71db0a);})[_0x1d7006(0x1e2)](function(_0x3c7d46){logger['info'](JSON['stringify'](_0x3c7d46));});});},Migration[a1165_0x912b73(0x1cc)][a1165_0x912b73(0x1e0)]=function(_0x33992e){const _0x4ea173=a1165_0x912b73,_0x25a228=this;this['sequence'][_0x4ea173(0x1e5)](function(){const _0xc0715=_0x4ea173;return _0x25a228[_0xc0715(0x1d2)][_0xc0715(0x1e0)](_0x33992e,{'force':!![]})[_0xc0715(0x1d7)](function(){const _0x5a0dc2=_0xc0715;logger[_0x5a0dc2(0x1d4)](_0x5a0dc2(0x1df),_0x33992e);})[_0xc0715(0x1e2)](function(_0x18e27e){const _0xccd690=_0xc0715;logger[_0xccd690(0x1d4)](JSON['stringify'](_0x18e27e));});});},Migration['prototype'][a1165_0x912b73(0x1da)]=function(_0x4a47d5,_0x1c6482,_0x5543f2){const _0x568c97=a1165_0x912b73,_0x1a1652=this;this[_0x568c97(0x1d8)][_0x568c97(0x1e5)](function(){const _0x16f700=_0x568c97;return _0x1a1652[_0x16f700(0x1d2)][_0x16f700(0x1da)](_0x4a47d5,_0x1c6482,{'indexName':_0x5543f2['indexName'],'indicesType':_0x5543f2['indicesType']})[_0x16f700(0x1d7)](function(){const _0x17fc11=_0x16f700;logger['info'](_0x17fc11(0x1d6),_0x4a47d5,_0x1c6482[_0x17fc11(0x1de)](','),_0x5543f2[_0x17fc11(0x1d5)],_0x5543f2[_0x17fc11(0x1e1)]);})[_0x16f700(0x1e2)](function(_0x71adb0){const _0x4c05ef=_0x16f700;logger['info'](JSON[_0x4c05ef(0x1d3)](_0x71adb0));});});},Migration[a1165_0x912b73(0x1cc)]['removeIndex']=function(_0x191e78,_0x3957c5){const _0x4de828=a1165_0x912b73,_0x174512=this;this[_0x4de828(0x1d8)][_0x4de828(0x1e5)](function(){const _0x1e0b83=_0x4de828;return _0x174512[_0x1e0b83(0x1d2)][_0x1e0b83(0x1e6)](_0x191e78,_0x3957c5)[_0x1e0b83(0x1d7)](function(){const _0x482740=_0x1e0b83;logger[_0x482740(0x1d4)]('removeIndex\x20%s\x20%s',_0x191e78,_0x3957c5);})[_0x1e0b83(0x1e2)](function(_0x2e1341){const _0x3ea5c1=_0x1e0b83;logger[_0x3ea5c1(0x1d4)](JSON[_0x3ea5c1(0x1d3)](_0x2e1341));});});},Migration[a1165_0x912b73(0x1cc)]['query']=function(_0x208c37){const _0x446376=a1165_0x912b73,_0x37a6a6=this;this[_0x446376(0x1d8)]['enqueue'](function(){const _0x3a723a=_0x446376;return _0x37a6a6[_0x3a723a(0x1d2)][_0x3a723a(0x1ea)]['query'](_0x208c37)[_0x3a723a(0x1d7)](function(){const _0x1dc97e=_0x3a723a;logger['info'](_0x1dc97e(0x1e4),_0x208c37);})[_0x3a723a(0x1e2)](function(_0x2b8cbe){const _0x2b8654=_0x3a723a;logger[_0x2b8654(0x1d4)](JSON[_0x2b8654(0x1d3)](_0x2b8cbe));});});},Migration[a1165_0x912b73(0x1cc)][a1165_0x912b73(0x1e8)]=function(_0x43f4a1,_0x227be2){const _0x473293=a1165_0x912b73,_0x4cda4c=this;this[_0x473293(0x1d8)]['enqueue'](function(){const _0x388578=_0x473293;return _0x4cda4c[_0x388578(0x1d2)][_0x388578(0x1e8)](_0x43f4a1,_0x227be2)['then'](function(){const _0xa47a0a=_0x388578;logger[_0xa47a0a(0x1d4)](_0xa47a0a(0x1d9),_0x227be2,_0x43f4a1);})[_0x388578(0x1e2)](function(_0x40638f){logger['info'](util['inspect'](_0x40638f,{'showHidden':![],'depth':null}));});});},Migration[a1165_0x912b73(0x1cc)][a1165_0x912b73(0x1ed)]=function(_0x3e9be8,_0x1db4a8,_0x387865){const _0x4037ad=a1165_0x912b73,_0x2782d1=this;this[_0x4037ad(0x1d8)][_0x4037ad(0x1e5)](function(){const _0x4fa5b0=_0x4037ad;return _0x2782d1[_0x4fa5b0(0x1d2)][_0x4fa5b0(0x1ed)](_0x3e9be8,_0x1db4a8,_0x387865)[_0x4fa5b0(0x1d7)](function(){const _0x1d3626=_0x4fa5b0;logger[_0x1d3626(0x1d4)](_0x1d3626(0x1eb),_0x1db4a8,_0x387865,_0x3e9be8);})[_0x4fa5b0(0x1e2)](function(_0x4f231a){logger['info'](util['inspect'](_0x4f231a,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1165_0x912b73(0x1d1)]=function(_0x21dfc1){const _0x5ef9f5=a1165_0x912b73;this[_0x5ef9f5(0x1d8)][_0x5ef9f5(0x1e5)](function(){return _0x21dfc1();});},module[a1165_0x912b73(0x1db)]={'up':function(_0x4e946c){return new Promise(function(_0x36943c){const _0x292c27=a1165_0x4c76,_0x17d3bc=new Migration(_0x4e946c);_0x17d3bc['query'](_0x292c27(0x1dc)),_0x17d3bc['query'](_0x292c27(0x1ce)),_0x17d3bc[_0x292c27(0x1d1)](_0x36943c);});},'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 1cf6455..5ef3ab6 100644 --- a/server/migrations/2.4.19.js +++ b/server/migrations/2.4.19.js @@ -1 +1 @@ -const a1166_0x21db=['inspect','util','removeIndex\x20%s\x20%s','enqueue','indicesType','username','join','final','exports','prototype','query','STRING','info','addIndex\x20%s\x20%s\x20%s\x20[%s]','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','Added\x20column\x20%s\x20to\x20%s','addColumn','lead','queryInterface','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','Removed\x20column\x20%s\x20from\x20%s','finally','localnet','contact','moduleCreate','sequence','addIndex','turn','renameColumn','Contacts','indexName','nothing','changeColumn','stun','then','sequelize','ENUM','removeColumn','dropTable','int_zoho_configurations','migration','type','tail','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27lead\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Leads\x27','password','table\x20dropped\x20%s','network'];(function(_0x4b3485,_0x4c5a8a){const _0x21dbb0=function(_0x2f8e94){while(--_0x2f8e94){_0x4b3485['push'](_0x4b3485['shift']());}};_0x21dbb0(++_0x4c5a8a);}(a1166_0x21db,0x66));const a1166_0x2f8e=function(_0x4b3485,_0x4c5a8a){_0x4b3485=_0x4b3485-0x92;let _0x21dbb0=a1166_0x21db[_0x4b3485];return _0x21dbb0;};const a1166_0xe31ccd=a1166_0x2f8e;'use strict';const util=require(a1166_0xe31ccd(0xc0)),logger=require('../config/logger')(a1166_0xe31ccd(0xb8)),Sequence=function(){};Sequence[a1166_0xe31ccd(0x97)][a1166_0xe31ccd(0xc2)]=function(_0x4ccb1d){const _0x495244=a1166_0xe31ccd;this['tail']=this['tail']?this[_0x495244(0xba)][_0x495244(0xa5)](_0x4ccb1d):_0x4ccb1d();};const Migration=function(_0x5e5af1){const _0x16787e=a1166_0xe31ccd;this['queryInterface']=_0x5e5af1,this[_0x16787e(0xa9)]=new Sequence();};Migration[a1166_0xe31ccd(0x97)]['changeColumn']=function(_0x4853f2,_0xca8750,_0x3e08e2){const _0x36696a=a1166_0xe31ccd,_0x2ccb70=this;this['sequence'][_0x36696a(0xc2)](function(){const _0x95cecb=_0x36696a;return _0x2ccb70['queryInterface'][_0x95cecb(0xb0)](_0x4853f2,_0xca8750,_0x3e08e2)[_0x95cecb(0xb2)](function(){const _0x521461=_0x95cecb;logger[_0x521461(0x9a)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xca8750,_0x4853f2);})[_0x95cecb(0x9e)](function(_0x26e942){const _0x35d5db=_0x95cecb;logger[_0x35d5db(0x9a)](JSON['stringify'](_0x26e942));});});},Migration[a1166_0xe31ccd(0x97)][a1166_0xe31ccd(0xa0)]=function(_0x288ce5,_0x1e87f9,_0x5df5e1){const _0x463e4b=a1166_0xe31ccd,_0x183cfe=this;this[_0x463e4b(0xa9)]['enqueue'](function(){const _0x2a34ab=_0x463e4b;return _0x183cfe[_0x2a34ab(0xa2)][_0x2a34ab(0xa0)](_0x288ce5,_0x1e87f9,_0x5df5e1)[_0x2a34ab(0xb2)](function(){const _0x4908c4=_0x2a34ab;logger[_0x4908c4(0x9a)](_0x4908c4(0x9f),_0x1e87f9,_0x288ce5);})[_0x2a34ab(0x9e)](function(_0x544ae6){const _0x2e2f1d=_0x2a34ab;logger[_0x2e2f1d(0x9a)](JSON[_0x2e2f1d(0x9c)](_0x544ae6));});});},Migration[a1166_0xe31ccd(0x97)]['dropTable']=function(_0x2c3a42){const _0x1671ed=a1166_0xe31ccd,_0x5d2fda=this;this[_0x1671ed(0xa9)][_0x1671ed(0xc2)](function(){const _0x303bf8=_0x1671ed;return _0x5d2fda[_0x303bf8(0xa2)][_0x303bf8(0xb6)](_0x2c3a42,{'force':!![]})[_0x303bf8(0xb2)](function(){const _0x4bdb17=_0x303bf8;logger[_0x4bdb17(0x9a)](_0x4bdb17(0xbd),_0x2c3a42);})[_0x303bf8(0x9e)](function(_0xaa3b42){const _0x44ad0a=_0x303bf8;logger[_0x44ad0a(0x9a)](JSON[_0x44ad0a(0x9c)](_0xaa3b42));});});},Migration[a1166_0xe31ccd(0x97)]['addIndex']=function(_0x593511,_0x3119f5,_0x1ceb32){const _0x5e7e24=a1166_0xe31ccd,_0x2c5826=this;this[_0x5e7e24(0xa9)][_0x5e7e24(0xc2)](function(){const _0x1e733a=_0x5e7e24;return _0x2c5826[_0x1e733a(0xa2)][_0x1e733a(0xaa)](_0x593511,_0x3119f5,{'indexName':_0x1ceb32[_0x1e733a(0xae)],'indicesType':_0x1ceb32[_0x1e733a(0x92)]})['then'](function(){const _0x2c5a65=_0x1e733a;logger['info'](_0x2c5a65(0x9b),_0x593511,_0x3119f5[_0x2c5a65(0x94)](','),_0x1ceb32['indexName'],_0x1ceb32['indicesType']);})[_0x1e733a(0x9e)](function(_0x42ccb8){const _0x12e35b=_0x1e733a;logger['info'](JSON[_0x12e35b(0x9c)](_0x42ccb8));});});},Migration[a1166_0xe31ccd(0x97)]['removeIndex']=function(_0x3760ca,_0x13efff){const _0x57d968=a1166_0xe31ccd,_0xa7d886=this;this[_0x57d968(0xa9)][_0x57d968(0xc2)](function(){const _0x169538=_0x57d968;return _0xa7d886['queryInterface']['removeIndex'](_0x3760ca,_0x13efff)[_0x169538(0xb2)](function(){const _0x326f9b=_0x169538;logger[_0x326f9b(0x9a)](_0x326f9b(0xc1),_0x3760ca,_0x13efff);})[_0x169538(0x9e)](function(_0x586831){const _0x27101f=_0x169538;logger[_0x27101f(0x9a)](JSON[_0x27101f(0x9c)](_0x586831));});});},Migration[a1166_0xe31ccd(0x97)][a1166_0xe31ccd(0x98)]=function(_0x51823c){const _0x4762d8=a1166_0xe31ccd,_0x102352=this;this[_0x4762d8(0xa9)]['enqueue'](function(){const _0x416fb0=_0x4762d8;return _0x102352[_0x416fb0(0xa2)][_0x416fb0(0xb3)]['query'](_0x51823c)[_0x416fb0(0xb2)](function(){const _0x20e692=_0x416fb0;logger[_0x20e692(0x9a)]('query\x20%s',_0x51823c);})[_0x416fb0(0x9e)](function(_0x43ad07){const _0x3a4f2f=_0x416fb0;logger[_0x3a4f2f(0x9a)](JSON[_0x3a4f2f(0x9c)](_0x43ad07));});});},Migration['prototype'][a1166_0xe31ccd(0xb5)]=function(_0x2bf520,_0x1a7381){const _0xaf7dd9=a1166_0xe31ccd,_0x2f7ef1=this;this[_0xaf7dd9(0xa9)][_0xaf7dd9(0xc2)](function(){const _0x52d67d=_0xaf7dd9;return _0x2f7ef1[_0x52d67d(0xa2)][_0x52d67d(0xb5)](_0x2bf520,_0x1a7381)[_0x52d67d(0xb2)](function(){const _0x4126a5=_0x52d67d;logger[_0x4126a5(0x9a)](_0x4126a5(0xa4),_0x1a7381,_0x2bf520);})[_0x52d67d(0x9e)](function(_0x32f30b){const _0x1795e2=_0x52d67d;logger['info'](util[_0x1795e2(0xbf)](_0x32f30b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1166_0xe31ccd(0xac)]=function(_0x39aae9,_0x287835,_0x265070){const _0x5eb760=a1166_0xe31ccd,_0x463194=this;this[_0x5eb760(0xa9)]['enqueue'](function(){const _0x5c9c5a=_0x5eb760;return _0x463194['queryInterface'][_0x5c9c5a(0xac)](_0x39aae9,_0x287835,_0x265070)[_0x5c9c5a(0xb2)](function(){const _0x57ec86=_0x5c9c5a;logger[_0x57ec86(0x9a)](_0x57ec86(0x9d),_0x287835,_0x265070,_0x39aae9);})[_0x5c9c5a(0x9e)](function(_0x471292){const _0x4acf3c=_0x5c9c5a;logger[_0x4acf3c(0x9a)](util[_0x4acf3c(0xbf)](_0x471292,{'showHidden':![],'depth':null}));});});},Migration[a1166_0xe31ccd(0x97)][a1166_0xe31ccd(0x95)]=function(_0xe857d5){const _0x91095f=a1166_0xe31ccd;this[_0x91095f(0xa9)]['enqueue'](function(){return _0xe857d5();});},module[a1166_0xe31ccd(0x96)]={'up':function(_0x52907e,_0x406cbc){return new Promise(function(_0x1eefb8){const _0x9a71ed=a1166_0x2f8e,_0x3dcb0c=new Migration(_0x52907e);_0x3dcb0c[_0x9a71ed(0xa0)](_0x9a71ed(0xb7),'moduleSearch',{'type':_0x406cbc[_0x9a71ed(0xb4)]('contact_lead',_0x9a71ed(0xa7),_0x9a71ed(0xa1)),'defaultValue':'contact_lead'}),_0x3dcb0c['changeColumn'](_0x9a71ed(0xb7),'moduleCreate',{'type':_0x406cbc[_0x9a71ed(0xb4)]('Leads',_0x9a71ed(0xad),_0x9a71ed(0xaf),_0x9a71ed(0xa7),_0x9a71ed(0xa1))}),_0x3dcb0c[_0x9a71ed(0x98)]('UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27contact\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Contacts\x27'),_0x3dcb0c[_0x9a71ed(0x98)](_0x9a71ed(0xbb)),_0x3dcb0c[_0x9a71ed(0xb0)](_0x9a71ed(0xb7),_0x9a71ed(0xa8),{'type':_0x406cbc[_0x9a71ed(0xb4)](_0x9a71ed(0xaf),_0x9a71ed(0xa7),_0x9a71ed(0xa1)),'defaultValue':_0x9a71ed(0xa1)}),_0x3dcb0c['addColumn']('network',_0x9a71ed(0x93),{'type':_0x406cbc[_0x9a71ed(0x99)]}),_0x3dcb0c[_0x9a71ed(0xa0)](_0x9a71ed(0xbe),_0x9a71ed(0xbc),{'type':_0x406cbc['STRING']}),_0x3dcb0c[_0x9a71ed(0xb0)](_0x9a71ed(0xbe),_0x9a71ed(0xb9),{'type':_0x406cbc[_0x9a71ed(0xb4)](_0x9a71ed(0xa6),'externip',_0x9a71ed(0xb1),_0x9a71ed(0xab))}),_0x3dcb0c[_0x9a71ed(0x98)]('INSERT\x20INTO\x20network\x20(type,value,\x20createdAt,\x20updatedAt)\x20SELECT\x20\x27stun\x27,\x20stunaddr,\x20current_timestamp(),\x20current_timestamp()\x20from\x20settings\x20WHERE\x20stunaddr<>\x27\x27'),_0x3dcb0c['query'](_0x9a71ed(0xa3)),_0x3dcb0c[_0x9a71ed(0x95)](_0x1eefb8);});},'down':function(){}}; \ No newline at end of file +const a1166_0x40b6=['indexName','then','contact_lead','join','changeColumn','enqueue','password','STRING','Contacts','ENUM','indicesType','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Removed\x20column\x20%s\x20from\x20%s','renameColumn','removeIndex','table\x20dropped\x20%s','lead','tail','finally','sequence','addColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','query\x20%s','externip','query','prototype','network','moduleCreate','stringify','int_zoho_configurations','localnet','nothing','migration','contact','addIndex','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','catch','type','INSERT\x20INTO\x20network\x20(type,value,\x20createdAt,\x20updatedAt)\x20SELECT\x20\x27stun\x27,\x20stunaddr,\x20current_timestamp(),\x20current_timestamp()\x20from\x20settings\x20WHERE\x20stunaddr<>\x27\x27','inspect','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27contact\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Contacts\x27','Added\x20column\x20%s\x20to\x20%s','queryInterface','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27lead\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Leads\x27','final','dropTable','info','Leads','../config/logger'];(function(_0x3fa1db,_0x63454f){const _0x40b6a4=function(_0x41bc68){while(--_0x41bc68){_0x3fa1db['push'](_0x3fa1db['shift']());}};_0x40b6a4(++_0x63454f);}(a1166_0x40b6,0x173));const a1166_0x41bc=function(_0x3fa1db,_0x63454f){_0x3fa1db=_0x3fa1db-0x162;let _0x40b6a4=a1166_0x40b6[_0x3fa1db];return _0x40b6a4;};const a1166_0x24d2a4=a1166_0x41bc;'use strict';const util=require('util'),logger=require(a1166_0x24d2a4(0x176))(a1166_0x24d2a4(0x166)),Sequence=function(){};Sequence[a1166_0x24d2a4(0x190)][a1166_0x24d2a4(0x17c)]=function(_0x4989b3){const _0x314acf=a1166_0x24d2a4;this[_0x314acf(0x188)]=this['tail']?this[_0x314acf(0x188)][_0x314acf(0x189)](_0x4989b3):_0x4989b3();};const Migration=function(_0x3b1f20){const _0x56b8b4=a1166_0x24d2a4;this['queryInterface']=_0x3b1f20,this[_0x56b8b4(0x18a)]=new Sequence();};Migration['prototype'][a1166_0x24d2a4(0x17b)]=function(_0x5270b4,_0x44c3bd,_0x423984){const _0x21b31b=a1166_0x24d2a4,_0x3d257d=this;this['sequence'][_0x21b31b(0x17c)](function(){const _0x24e371=_0x21b31b;return _0x3d257d[_0x24e371(0x170)]['changeColumn'](_0x5270b4,_0x44c3bd,_0x423984)[_0x24e371(0x178)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x44c3bd,_0x5270b4);})['catch'](function(_0x26f6c0){const _0x3c2ac6=_0x24e371;logger[_0x3c2ac6(0x174)](JSON[_0x3c2ac6(0x162)](_0x26f6c0));});});},Migration[a1166_0x24d2a4(0x190)]['addColumn']=function(_0x23feb5,_0x305239,_0x1c7a44){const _0x295b8b=this;this['sequence']['enqueue'](function(){const _0x1e42ed=a1166_0x41bc;return _0x295b8b[_0x1e42ed(0x170)]['addColumn'](_0x23feb5,_0x305239,_0x1c7a44)[_0x1e42ed(0x178)](function(){const _0x38c986=_0x1e42ed;logger[_0x38c986(0x174)](_0x38c986(0x16f),_0x305239,_0x23feb5);})['catch'](function(_0x588b18){const _0x23fd44=_0x1e42ed;logger[_0x23fd44(0x174)](JSON['stringify'](_0x588b18));});});},Migration[a1166_0x24d2a4(0x190)][a1166_0x24d2a4(0x173)]=function(_0x21f020){const _0x1beac9=a1166_0x24d2a4,_0x35586e=this;this[_0x1beac9(0x18a)][_0x1beac9(0x17c)](function(){const _0x1f8147=_0x1beac9;return _0x35586e[_0x1f8147(0x170)][_0x1f8147(0x173)](_0x21f020,{'force':!![]})[_0x1f8147(0x178)](function(){const _0x408f23=_0x1f8147;logger[_0x408f23(0x174)](_0x408f23(0x186),_0x21f020);})[_0x1f8147(0x16a)](function(_0x5b6228){const _0x5a987c=_0x1f8147;logger[_0x5a987c(0x174)](JSON[_0x5a987c(0x162)](_0x5b6228));});});},Migration[a1166_0x24d2a4(0x190)][a1166_0x24d2a4(0x168)]=function(_0xfe4d96,_0x5cd5c6,_0x4e7182){const _0x4d5fc0=a1166_0x24d2a4,_0x4a7e00=this;this['sequence'][_0x4d5fc0(0x17c)](function(){const _0x37572c=_0x4d5fc0;return _0x4a7e00[_0x37572c(0x170)][_0x37572c(0x168)](_0xfe4d96,_0x5cd5c6,{'indexName':_0x4e7182[_0x37572c(0x177)],'indicesType':_0x4e7182[_0x37572c(0x181)]})[_0x37572c(0x178)](function(){const _0x491b64=_0x37572c;logger[_0x491b64(0x174)](_0x491b64(0x18c),_0xfe4d96,_0x5cd5c6[_0x491b64(0x17a)](','),_0x4e7182[_0x491b64(0x177)],_0x4e7182['indicesType']);})[_0x37572c(0x16a)](function(_0x2c717a){const _0xc1103b=_0x37572c;logger[_0xc1103b(0x174)](JSON[_0xc1103b(0x162)](_0x2c717a));});});},Migration[a1166_0x24d2a4(0x190)][a1166_0x24d2a4(0x185)]=function(_0x287048,_0x2d9a41){const _0x784a2a=a1166_0x24d2a4,_0x1da995=this;this[_0x784a2a(0x18a)][_0x784a2a(0x17c)](function(){const _0xdf2f6f=_0x784a2a;return _0x1da995[_0xdf2f6f(0x170)][_0xdf2f6f(0x185)](_0x287048,_0x2d9a41)[_0xdf2f6f(0x178)](function(){logger['info']('removeIndex\x20%s\x20%s',_0x287048,_0x2d9a41);})['catch'](function(_0x38eeb4){const _0x1ec2d0=_0xdf2f6f;logger[_0x1ec2d0(0x174)](JSON['stringify'](_0x38eeb4));});});},Migration['prototype'][a1166_0x24d2a4(0x18f)]=function(_0x292aa5){const _0xf94012=a1166_0x24d2a4,_0x40fb8b=this;this[_0xf94012(0x18a)][_0xf94012(0x17c)](function(){const _0x281123=_0xf94012;return _0x40fb8b[_0x281123(0x170)]['sequelize'][_0x281123(0x18f)](_0x292aa5)[_0x281123(0x178)](function(){const _0x26e643=_0x281123;logger['info'](_0x26e643(0x18d),_0x292aa5);})[_0x281123(0x16a)](function(_0x1db5b5){const _0x548563=_0x281123;logger[_0x548563(0x174)](JSON['stringify'](_0x1db5b5));});});},Migration[a1166_0x24d2a4(0x190)]['removeColumn']=function(_0x13af21,_0x5b5116){const _0x1d9ee3=this;this['sequence']['enqueue'](function(){const _0xda0795=a1166_0x41bc;return _0x1d9ee3['queryInterface']['removeColumn'](_0x13af21,_0x5b5116)[_0xda0795(0x178)](function(){const _0x14b696=_0xda0795;logger['info'](_0x14b696(0x183),_0x5b5116,_0x13af21);})['catch'](function(_0x53b616){const _0x57a47c=_0xda0795;logger[_0x57a47c(0x174)](util[_0x57a47c(0x16d)](_0x53b616,{'showHidden':![],'depth':null}));});});},Migration[a1166_0x24d2a4(0x190)]['renameColumn']=function(_0x1a86b2,_0x36771c,_0x472f6d){const _0x26efbf=a1166_0x24d2a4,_0x7526c=this;this[_0x26efbf(0x18a)][_0x26efbf(0x17c)](function(){const _0x18bebe=_0x26efbf;return _0x7526c['queryInterface'][_0x18bebe(0x184)](_0x1a86b2,_0x36771c,_0x472f6d)[_0x18bebe(0x178)](function(){const _0x3f29bc=_0x18bebe;logger[_0x3f29bc(0x174)](_0x3f29bc(0x182),_0x36771c,_0x472f6d,_0x1a86b2);})[_0x18bebe(0x16a)](function(_0x56925a){const _0x96aee5=_0x18bebe;logger[_0x96aee5(0x174)](util[_0x96aee5(0x16d)](_0x56925a,{'showHidden':![],'depth':null}));});});},Migration[a1166_0x24d2a4(0x190)][a1166_0x24d2a4(0x172)]=function(_0x764da2){const _0x275ade=a1166_0x24d2a4;this[_0x275ade(0x18a)][_0x275ade(0x17c)](function(){return _0x764da2();});},module['exports']={'up':function(_0x48f40d,_0x3f99b1){return new Promise(function(_0x3d501a){const _0x346c0e=a1166_0x41bc,_0x157414=new Migration(_0x48f40d);_0x157414['addColumn'](_0x346c0e(0x163),'moduleSearch',{'type':_0x3f99b1[_0x346c0e(0x180)](_0x346c0e(0x179),'contact',_0x346c0e(0x187)),'defaultValue':'contact_lead'}),_0x157414[_0x346c0e(0x17b)](_0x346c0e(0x163),_0x346c0e(0x192),{'type':_0x3f99b1[_0x346c0e(0x180)](_0x346c0e(0x175),_0x346c0e(0x17f),_0x346c0e(0x165),'contact',_0x346c0e(0x187))}),_0x157414[_0x346c0e(0x18f)](_0x346c0e(0x16e)),_0x157414[_0x346c0e(0x18f)](_0x346c0e(0x171)),_0x157414[_0x346c0e(0x17b)](_0x346c0e(0x163),_0x346c0e(0x192),{'type':_0x3f99b1[_0x346c0e(0x180)](_0x346c0e(0x165),_0x346c0e(0x167),_0x346c0e(0x187)),'defaultValue':_0x346c0e(0x187)}),_0x157414[_0x346c0e(0x18b)](_0x346c0e(0x191),'username',{'type':_0x3f99b1[_0x346c0e(0x17e)]}),_0x157414[_0x346c0e(0x18b)](_0x346c0e(0x191),_0x346c0e(0x17d),{'type':_0x3f99b1[_0x346c0e(0x17e)]}),_0x157414[_0x346c0e(0x17b)](_0x346c0e(0x191),_0x346c0e(0x16b),{'type':_0x3f99b1[_0x346c0e(0x180)](_0x346c0e(0x164),_0x346c0e(0x18e),'stun','turn')}),_0x157414[_0x346c0e(0x18f)](_0x346c0e(0x16c)),_0x157414[_0x346c0e(0x18f)](_0x346c0e(0x169)),_0x157414[_0x346c0e(0x172)](_0x3d501a);});},'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 65d91bd..2d24bdc 100644 --- a/server/migrations/2.4.2.js +++ b/server/migrations/2.4.2.js @@ -1 +1 @@ -const a1167_0x1c66=['renameColumn','BOOLEAN','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','info','query','prototype','then','removeIndex\x20%s\x20%s','settings','exports','blockDuration','stringify','catch','loginAttempts','../config/logger','inspect','sequence','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','INTEGER','removeColumn','indicesType','finally','final','enqueue','users','UPDATE\x20settings\x20SET\x20allowedLoginAttempts\x20=\x200,\x20blockDuration\x20=\x200;','removeIndex','blockedAt','addColumn','join','ALTER\x20TABLE\x20screen_recordings\x20ENCRYPTION=\x27Y\x27;','util','queryInterface','DATE','indexName','addIndex','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x2926b3,_0x5783fb){const _0x1c66d9=function(_0x5980f2){while(--_0x5980f2){_0x2926b3['push'](_0x2926b3['shift']());}};_0x1c66d9(++_0x5783fb);}(a1167_0x1c66,0x67));const a1167_0x5980=function(_0x2926b3,_0x5783fb){_0x2926b3=_0x2926b3-0x140;let _0x1c66d9=a1167_0x1c66[_0x2926b3];return _0x1c66d9;};const a1167_0x469773=a1167_0x5980;'use strict';const util=require(a1167_0x469773(0x14b)),logger=require(a1167_0x469773(0x161))('migration'),Sequence=function(){};Sequence['prototype'][a1167_0x469773(0x143)]=function(_0x524c73){const _0x175707=a1167_0x469773;this[_0x175707(0x155)]=this['tail']?this[_0x175707(0x155)][_0x175707(0x141)](_0x524c73):_0x524c73();};const Migration=function(_0x4b94da){const _0x2bf0ab=a1167_0x469773;this['queryInterface']=_0x4b94da,this[_0x2bf0ab(0x163)]=new Sequence();};Migration[a1167_0x469773(0x158)]['changeColumn']=function(_0x5dd96e,_0x5b7c04,_0x45c425){const _0x359ca2=a1167_0x469773,_0x588a7d=this;this[_0x359ca2(0x163)][_0x359ca2(0x143)](function(){const _0x2bee72=_0x359ca2;return _0x588a7d[_0x2bee72(0x14c)]['changeColumn'](_0x5dd96e,_0x5b7c04,_0x45c425)[_0x2bee72(0x159)](function(){const _0xbe80b5=_0x2bee72;logger['info'](_0xbe80b5(0x154),_0x5b7c04,_0x5dd96e);})[_0x2bee72(0x15f)](function(_0x2ed1db){const _0x2d977d=_0x2bee72;logger[_0x2d977d(0x156)](JSON[_0x2d977d(0x15e)](_0x2ed1db));});});},Migration['prototype'][a1167_0x469773(0x148)]=function(_0x2e223,_0x584d45,_0x1c74b9){const _0x5dd4f7=a1167_0x469773,_0x1946eb=this;this['sequence'][_0x5dd4f7(0x143)](function(){const _0xc05f59=_0x5dd4f7;return _0x1946eb['queryInterface']['addColumn'](_0x2e223,_0x584d45,_0x1c74b9)['then'](function(){const _0x4c9c7f=a1167_0x5980;logger[_0x4c9c7f(0x156)](_0x4c9c7f(0x164),_0x584d45,_0x2e223);})[_0xc05f59(0x15f)](function(_0x1e5100){const _0x4dec33=_0xc05f59;logger[_0x4dec33(0x156)](JSON[_0x4dec33(0x15e)](_0x1e5100));});});},Migration[a1167_0x469773(0x158)]['dropTable']=function(_0x525cd4){const _0x59a6d5=a1167_0x469773,_0x3c4d6c=this;this[_0x59a6d5(0x163)][_0x59a6d5(0x143)](function(){const _0x1da47c=_0x59a6d5;return _0x3c4d6c[_0x1da47c(0x14c)][_0x1da47c(0x153)](_0x525cd4,{'force':!![]})[_0x1da47c(0x159)](function(){const _0x17b507=_0x1da47c;logger[_0x17b507(0x156)](_0x17b507(0x165),_0x525cd4);})[_0x1da47c(0x15f)](function(_0x1915c2){logger['info'](JSON['stringify'](_0x1915c2));});});},Migration['prototype'][a1167_0x469773(0x14f)]=function(_0x28610c,_0x291929,_0x222423){const _0x2f403b=this;this['sequence']['enqueue'](function(){const _0x3a1d0b=a1167_0x5980;return _0x2f403b[_0x3a1d0b(0x14c)]['addIndex'](_0x28610c,_0x291929,{'indexName':_0x222423[_0x3a1d0b(0x14e)],'indicesType':_0x222423[_0x3a1d0b(0x140)]})[_0x3a1d0b(0x159)](function(){const _0x30784d=_0x3a1d0b;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x28610c,_0x291929[_0x30784d(0x149)](','),_0x222423[_0x30784d(0x14e)],_0x222423[_0x30784d(0x140)]);})['catch'](function(_0x2d310c){const _0x16524f=_0x3a1d0b;logger[_0x16524f(0x156)](JSON['stringify'](_0x2d310c));});});},Migration[a1167_0x469773(0x158)]['removeIndex']=function(_0x8205fd,_0x44ea44){const _0x2f407e=a1167_0x469773,_0x16f5b1=this;this[_0x2f407e(0x163)][_0x2f407e(0x143)](function(){const _0x4c6982=_0x2f407e;return _0x16f5b1[_0x4c6982(0x14c)][_0x4c6982(0x146)](_0x8205fd,_0x44ea44)[_0x4c6982(0x159)](function(){const _0x17e683=_0x4c6982;logger[_0x17e683(0x156)](_0x17e683(0x15a),_0x8205fd,_0x44ea44);})['catch'](function(_0x546d30){const _0x4fb0ce=_0x4c6982;logger[_0x4fb0ce(0x156)](JSON[_0x4fb0ce(0x15e)](_0x546d30));});});},Migration['prototype'][a1167_0x469773(0x157)]=function(_0x1fc58a){const _0x19ac67=a1167_0x469773,_0x578aff=this;this[_0x19ac67(0x163)][_0x19ac67(0x143)](function(){const _0x64236e=_0x19ac67;return _0x578aff['queryInterface']['sequelize'][_0x64236e(0x157)](_0x1fc58a)[_0x64236e(0x159)](function(){const _0x3b9836=_0x64236e;logger[_0x3b9836(0x156)]('query\x20%s',_0x1fc58a);})[_0x64236e(0x15f)](function(_0x44b2c5){const _0x580dc3=_0x64236e;logger[_0x580dc3(0x156)](JSON[_0x580dc3(0x15e)](_0x44b2c5));});});},Migration[a1167_0x469773(0x158)][a1167_0x469773(0x167)]=function(_0x57b16d,_0x190eae){const _0x2810de=this;this['sequence']['enqueue'](function(){const _0x8cf8cf=a1167_0x5980;return _0x2810de['queryInterface'][_0x8cf8cf(0x167)](_0x57b16d,_0x190eae)[_0x8cf8cf(0x159)](function(){const _0x3cfcb8=_0x8cf8cf;logger[_0x3cfcb8(0x156)](_0x3cfcb8(0x150),_0x190eae,_0x57b16d);})[_0x8cf8cf(0x15f)](function(_0xb27a1e){const _0xbc86c4=_0x8cf8cf;logger['info'](util[_0xbc86c4(0x162)](_0xb27a1e,{'showHidden':![],'depth':null}));});});},Migration[a1167_0x469773(0x158)][a1167_0x469773(0x151)]=function(_0x399ca6,_0x1d7783,_0x45d629){const _0x5e8aee=a1167_0x469773,_0x5148f2=this;this['sequence'][_0x5e8aee(0x143)](function(){const _0x9e7f2a=_0x5e8aee;return _0x5148f2[_0x9e7f2a(0x14c)][_0x9e7f2a(0x151)](_0x399ca6,_0x1d7783,_0x45d629)[_0x9e7f2a(0x159)](function(){const _0x39be2f=_0x9e7f2a;logger[_0x39be2f(0x156)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1d7783,_0x45d629,_0x399ca6);})[_0x9e7f2a(0x15f)](function(_0x14fba8){const _0x59f471=_0x9e7f2a;logger['info'](util[_0x59f471(0x162)](_0x14fba8,{'showHidden':![],'depth':null}));});});},Migration[a1167_0x469773(0x158)][a1167_0x469773(0x142)]=function(_0x39c007){const _0x6a9d0=a1167_0x469773;this[_0x6a9d0(0x163)]['enqueue'](function(){return _0x39c007();});},module[a1167_0x469773(0x15c)]={'up':function(_0x5423d5,_0x17b86b){return new Promise(function(_0x4ee65a){const _0x4c2596=a1167_0x5980,_0x2954bc=new Migration(_0x5423d5);_0x2954bc['addColumn']('settings','allowedLoginAttempts',{'type':_0x17b86b['INTEGER'],'defaultValue':0x5}),_0x2954bc[_0x4c2596(0x148)](_0x4c2596(0x15b),_0x4c2596(0x15d),{'type':_0x17b86b['INTEGER'],'defaultValue':0xa}),_0x2954bc[_0x4c2596(0x157)](_0x4c2596(0x145)),_0x2954bc['addColumn']('users','blocked',{'type':_0x17b86b[_0x4c2596(0x152)],'defaultValue':![]}),_0x2954bc[_0x4c2596(0x148)](_0x4c2596(0x144),_0x4c2596(0x160),{'type':_0x17b86b[_0x4c2596(0x166)],'defaultValue':0x0}),_0x2954bc['addColumn'](_0x4c2596(0x144),_0x4c2596(0x147),{'type':_0x17b86b[_0x4c2596(0x14d)],'defaultValue':null}),_0x2954bc['addColumn'](_0x4c2596(0x144),'disabled',{'type':_0x17b86b[_0x4c2596(0x152)],'defaultValue':![]}),_0x2954bc[_0x4c2596(0x157)](_0x4c2596(0x14a)),_0x2954bc['final'](_0x4ee65a);});},'down':function(){}}; \ No newline at end of file +const a1167_0x4c1d=['indicesType','then','exports','migration','indexName','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','renameColumn','changeColumn','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','users','BOOLEAN','prototype','settings','final','DATE','catch','Added\x20column\x20%s\x20to\x20%s','ALTER\x20TABLE\x20screen_recordings\x20ENCRYPTION=\x27Y\x27;','removeIndex','tail','enqueue','blockDuration','sequence','table\x20dropped\x20%s','query\x20%s','queryInterface','query','Removed\x20column\x20%s\x20from\x20%s','info','removeColumn','util','inspect','INTEGER','addIndex','stringify','loginAttempts','addColumn'];(function(_0x4acebf,_0xbb40a7){const _0x4c1d05=function(_0x478247){while(--_0x478247){_0x4acebf['push'](_0x4acebf['shift']());}};_0x4c1d05(++_0xbb40a7);}(a1167_0x4c1d,0x1b2));const a1167_0x4782=function(_0x4acebf,_0xbb40a7){_0x4acebf=_0x4acebf-0x1e8;let _0x4c1d05=a1167_0x4c1d[_0x4acebf];return _0x4c1d05;};const a1167_0xabebd2=a1167_0x4782;'use strict';const util=require(a1167_0xabebd2(0x203)),logger=require(a1167_0xabebd2(0x1ec))(a1167_0xabebd2(0x20d)),Sequence=function(){};Sequence[a1167_0xabebd2(0x1f0)][a1167_0xabebd2(0x1f9)]=function(_0x1721ec){const _0xb4ac52=a1167_0xabebd2;this[_0xb4ac52(0x1f8)]=this[_0xb4ac52(0x1f8)]?this[_0xb4ac52(0x1f8)]['finally'](_0x1721ec):_0x1721ec();};const Migration=function(_0xa8fc84){const _0x1b8b04=a1167_0xabebd2;this[_0x1b8b04(0x1fe)]=_0xa8fc84,this['sequence']=new Sequence();};Migration[a1167_0xabebd2(0x1f0)][a1167_0xabebd2(0x1eb)]=function(_0x4f2f4b,_0x5d5b82,_0x4c4b54){const _0x47c7a1=a1167_0xabebd2,_0x303a14=this;this['sequence'][_0x47c7a1(0x1f9)](function(){const _0x2c2823=_0x47c7a1;return _0x303a14['queryInterface'][_0x2c2823(0x1eb)](_0x4f2f4b,_0x5d5b82,_0x4c4b54)['then'](function(){const _0x4d87ce=_0x2c2823;logger['info'](_0x4d87ce(0x1ed),_0x5d5b82,_0x4f2f4b);})[_0x2c2823(0x1f4)](function(_0x5dd752){const _0x1d95e3=_0x2c2823;logger['info'](JSON[_0x1d95e3(0x207)](_0x5dd752));});});},Migration[a1167_0xabebd2(0x1f0)][a1167_0xabebd2(0x209)]=function(_0x262f04,_0x139760,_0x3003ec){const _0x1b2002=a1167_0xabebd2,_0x1899d4=this;this['sequence'][_0x1b2002(0x1f9)](function(){const _0x10e54e=_0x1b2002;return _0x1899d4[_0x10e54e(0x1fe)][_0x10e54e(0x209)](_0x262f04,_0x139760,_0x3003ec)[_0x10e54e(0x20b)](function(){const _0x354bde=_0x10e54e;logger[_0x354bde(0x201)](_0x354bde(0x1f5),_0x139760,_0x262f04);})[_0x10e54e(0x1f4)](function(_0x588707){const _0x2aaf22=_0x10e54e;logger[_0x2aaf22(0x201)](JSON[_0x2aaf22(0x207)](_0x588707));});});},Migration[a1167_0xabebd2(0x1f0)]['dropTable']=function(_0x47898d){const _0x1b1a12=a1167_0xabebd2,_0xbb88aa=this;this['sequence'][_0x1b1a12(0x1f9)](function(){const _0x8334ec=_0x1b1a12;return _0xbb88aa['queryInterface']['dropTable'](_0x47898d,{'force':!![]})['then'](function(){const _0x248205=a1167_0x4782;logger[_0x248205(0x201)](_0x248205(0x1fc),_0x47898d);})[_0x8334ec(0x1f4)](function(_0x4bdd67){const _0x4b8e38=_0x8334ec;logger[_0x4b8e38(0x201)](JSON['stringify'](_0x4bdd67));});});},Migration[a1167_0xabebd2(0x1f0)][a1167_0xabebd2(0x206)]=function(_0x9d8c0e,_0x4fdbae,_0xfb371d){const _0x1d1322=a1167_0xabebd2,_0x3c0ef2=this;this['sequence'][_0x1d1322(0x1f9)](function(){const _0x177aa7=_0x1d1322;return _0x3c0ef2[_0x177aa7(0x1fe)]['addIndex'](_0x9d8c0e,_0x4fdbae,{'indexName':_0xfb371d[_0x177aa7(0x20e)],'indicesType':_0xfb371d[_0x177aa7(0x20a)]})[_0x177aa7(0x20b)](function(){const _0x3bd296=_0x177aa7;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x9d8c0e,_0x4fdbae['join'](','),_0xfb371d[_0x3bd296(0x20e)],_0xfb371d['indicesType']);})[_0x177aa7(0x1f4)](function(_0xd6e38c){const _0x477e07=_0x177aa7;logger[_0x477e07(0x201)](JSON[_0x477e07(0x207)](_0xd6e38c));});});},Migration[a1167_0xabebd2(0x1f0)][a1167_0xabebd2(0x1f7)]=function(_0x2c5467,_0x19367f){const _0xd7e1bc=a1167_0xabebd2,_0x59de08=this;this[_0xd7e1bc(0x1fb)][_0xd7e1bc(0x1f9)](function(){const _0x179026=_0xd7e1bc;return _0x59de08[_0x179026(0x1fe)][_0x179026(0x1f7)](_0x2c5467,_0x19367f)[_0x179026(0x20b)](function(){logger['info']('removeIndex\x20%s\x20%s',_0x2c5467,_0x19367f);})['catch'](function(_0x320d49){const _0x1ea006=_0x179026;logger[_0x1ea006(0x201)](JSON[_0x1ea006(0x207)](_0x320d49));});});},Migration[a1167_0xabebd2(0x1f0)][a1167_0xabebd2(0x1ff)]=function(_0x4a8dc1){const _0x4825d6=a1167_0xabebd2,_0x6507de=this;this[_0x4825d6(0x1fb)][_0x4825d6(0x1f9)](function(){const _0x439939=_0x4825d6;return _0x6507de[_0x439939(0x1fe)][_0x439939(0x1e9)]['query'](_0x4a8dc1)[_0x439939(0x20b)](function(){const _0xcde2d=_0x439939;logger[_0xcde2d(0x201)](_0xcde2d(0x1fd),_0x4a8dc1);})[_0x439939(0x1f4)](function(_0x23a3f9){logger['info'](JSON['stringify'](_0x23a3f9));});});},Migration['prototype'][a1167_0xabebd2(0x202)]=function(_0x40b89a,_0x504d71){const _0x1e1a93=a1167_0xabebd2,_0x4a7901=this;this[_0x1e1a93(0x1fb)][_0x1e1a93(0x1f9)](function(){const _0x4877c1=_0x1e1a93;return _0x4a7901[_0x4877c1(0x1fe)][_0x4877c1(0x202)](_0x40b89a,_0x504d71)[_0x4877c1(0x20b)](function(){const _0x33e7fb=_0x4877c1;logger['info'](_0x33e7fb(0x200),_0x504d71,_0x40b89a);})['catch'](function(_0x8508ac){const _0x41ae65=_0x4877c1;logger[_0x41ae65(0x201)](util[_0x41ae65(0x204)](_0x8508ac,{'showHidden':![],'depth':null}));});});},Migration[a1167_0xabebd2(0x1f0)][a1167_0xabebd2(0x1ea)]=function(_0x57c62b,_0x51e14d,_0x5722df){const _0x449c86=a1167_0xabebd2,_0x3e6cd6=this;this[_0x449c86(0x1fb)][_0x449c86(0x1f9)](function(){const _0x3edd77=_0x449c86;return _0x3e6cd6[_0x3edd77(0x1fe)]['renameColumn'](_0x57c62b,_0x51e14d,_0x5722df)[_0x3edd77(0x20b)](function(){const _0x2f51f1=_0x3edd77;logger[_0x2f51f1(0x201)](_0x2f51f1(0x1e8),_0x51e14d,_0x5722df,_0x57c62b);})[_0x3edd77(0x1f4)](function(_0x276a0b){const _0x363866=_0x3edd77;logger[_0x363866(0x201)](util[_0x363866(0x204)](_0x276a0b,{'showHidden':![],'depth':null}));});});},Migration[a1167_0xabebd2(0x1f0)]['final']=function(_0x3d949a){const _0xb00143=a1167_0xabebd2;this[_0xb00143(0x1fb)][_0xb00143(0x1f9)](function(){return _0x3d949a();});},module[a1167_0xabebd2(0x20c)]={'up':function(_0x389e45,_0x594030){return new Promise(function(_0x5a17c5){const _0x259ee7=a1167_0x4782,_0x7a806f=new Migration(_0x389e45);_0x7a806f[_0x259ee7(0x209)](_0x259ee7(0x1f1),'allowedLoginAttempts',{'type':_0x594030['INTEGER'],'defaultValue':0x5}),_0x7a806f['addColumn'](_0x259ee7(0x1f1),_0x259ee7(0x1fa),{'type':_0x594030[_0x259ee7(0x205)],'defaultValue':0xa}),_0x7a806f[_0x259ee7(0x1ff)]('UPDATE\x20settings\x20SET\x20allowedLoginAttempts\x20=\x200,\x20blockDuration\x20=\x200;'),_0x7a806f[_0x259ee7(0x209)]('users','blocked',{'type':_0x594030['BOOLEAN'],'defaultValue':![]}),_0x7a806f[_0x259ee7(0x209)](_0x259ee7(0x1ee),_0x259ee7(0x208),{'type':_0x594030[_0x259ee7(0x205)],'defaultValue':0x0}),_0x7a806f['addColumn']('users','blockedAt',{'type':_0x594030[_0x259ee7(0x1f3)],'defaultValue':null}),_0x7a806f[_0x259ee7(0x209)](_0x259ee7(0x1ee),'disabled',{'type':_0x594030[_0x259ee7(0x1ef)],'defaultValue':![]}),_0x7a806f['query'](_0x259ee7(0x1f6)),_0x7a806f[_0x259ee7(0x1f2)](_0x5a17c5);});},'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 233b238..73fa5cb 100644 --- a/server/migrations/2.4.20.js +++ b/server/migrations/2.4.20.js @@ -1 +1 @@ -const a1168_0x3868=['table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','dropTable','query\x20%s','final','addColumn','catch','sequence','removeColumn','indexName','queryInterface','sequelize','stringify','join','addIndex','indicesType','tail','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','BOOLEAN','util','changeColumn','Added\x20column\x20%s\x20to\x20%s','inspect','settings','info','../config/logger','addIndex\x20%s\x20%s\x20%s\x20[%s]','exports','removeIndex\x20%s\x20%s','then','query'];(function(_0x34a5c1,_0x2d950e){const _0x38684e=function(_0x569361){while(--_0x569361){_0x34a5c1['push'](_0x34a5c1['shift']());}};_0x38684e(++_0x2d950e);}(a1168_0x3868,0x140));const a1168_0x5693=function(_0x34a5c1,_0x2d950e){_0x34a5c1=_0x34a5c1-0x1de;let _0x38684e=a1168_0x3868[_0x34a5c1];return _0x38684e;};const a1168_0x553f7f=a1168_0x5693;'use strict';const util=require(a1168_0x553f7f(0x1f0)),logger=require(a1168_0x553f7f(0x1f6))('migration'),Sequence=function(){};Sequence[a1168_0x553f7f(0x1fe)]['enqueue']=function(_0x1306d8){const _0x1e528c=a1168_0x553f7f;this[_0x1e528c(0x1ec)]=this['tail']?this[_0x1e528c(0x1ec)]['finally'](_0x1306d8):_0x1306d8();};const Migration=function(_0x77f158){const _0x68c442=a1168_0x553f7f;this[_0x68c442(0x1e6)]=_0x77f158,this['sequence']=new Sequence();};Migration['prototype'][a1168_0x553f7f(0x1f1)]=function(_0x4f85f3,_0x16ddf1,_0x1bdd5b){const _0x3556e3=a1168_0x553f7f,_0x56382c=this;this[_0x3556e3(0x1e3)]['enqueue'](function(){const _0xdbfb75=_0x3556e3;return _0x56382c[_0xdbfb75(0x1e6)]['changeColumn'](_0x4f85f3,_0x16ddf1,_0x1bdd5b)[_0xdbfb75(0x1fa)](function(){const _0x4dd9fc=_0xdbfb75;logger[_0x4dd9fc(0x1f5)](_0x4dd9fc(0x1ee),_0x16ddf1,_0x4f85f3);})[_0xdbfb75(0x1e2)](function(_0x136a3b){const _0xee92dd=_0xdbfb75;logger[_0xee92dd(0x1f5)](JSON[_0xee92dd(0x1e8)](_0x136a3b));});});},Migration[a1168_0x553f7f(0x1fe)]['addColumn']=function(_0x96fe9b,_0xd51159,_0x6299b4){const _0x2ac0b6=a1168_0x553f7f,_0x5d06ad=this;this['sequence'][_0x2ac0b6(0x200)](function(){const _0x557229=_0x2ac0b6;return _0x5d06ad[_0x557229(0x1e6)][_0x557229(0x1e1)](_0x96fe9b,_0xd51159,_0x6299b4)[_0x557229(0x1fa)](function(){const _0xacaf5e=_0x557229;logger['info'](_0xacaf5e(0x1f2),_0xd51159,_0x96fe9b);})['catch'](function(_0x3eccaa){const _0x467aa3=_0x557229;logger['info'](JSON[_0x467aa3(0x1e8)](_0x3eccaa));});});},Migration[a1168_0x553f7f(0x1fe)][a1168_0x553f7f(0x1de)]=function(_0x355b43){const _0x1754dd=a1168_0x553f7f,_0x4e8a1d=this;this[_0x1754dd(0x1e3)][_0x1754dd(0x200)](function(){const _0x4db31c=_0x1754dd;return _0x4e8a1d[_0x4db31c(0x1e6)][_0x4db31c(0x1de)](_0x355b43,{'force':!![]})[_0x4db31c(0x1fa)](function(){const _0x1be9ee=_0x4db31c;logger['info'](_0x1be9ee(0x1fc),_0x355b43);})['catch'](function(_0x5dc211){const _0x4d9cc5=_0x4db31c;logger[_0x4d9cc5(0x1f5)](JSON[_0x4d9cc5(0x1e8)](_0x5dc211));});});},Migration[a1168_0x553f7f(0x1fe)]['addIndex']=function(_0x1428ea,_0x3c5d70,_0x3d32d9){const _0x1972e8=a1168_0x553f7f,_0x2065b=this;this[_0x1972e8(0x1e3)][_0x1972e8(0x200)](function(){const _0x2ea5b3=_0x1972e8;return _0x2065b[_0x2ea5b3(0x1e6)][_0x2ea5b3(0x1ea)](_0x1428ea,_0x3c5d70,{'indexName':_0x3d32d9[_0x2ea5b3(0x1e5)],'indicesType':_0x3d32d9[_0x2ea5b3(0x1eb)]})[_0x2ea5b3(0x1fa)](function(){const _0x2b355e=_0x2ea5b3;logger[_0x2b355e(0x1f5)](_0x2b355e(0x1f7),_0x1428ea,_0x3c5d70[_0x2b355e(0x1e9)](','),_0x3d32d9[_0x2b355e(0x1e5)],_0x3d32d9[_0x2b355e(0x1eb)]);})[_0x2ea5b3(0x1e2)](function(_0x2d1374){const _0x5374f8=_0x2ea5b3;logger[_0x5374f8(0x1f5)](JSON[_0x5374f8(0x1e8)](_0x2d1374));});});},Migration[a1168_0x553f7f(0x1fe)]['removeIndex']=function(_0x3dfda0,_0xbad7c9){const _0x359e8e=a1168_0x553f7f,_0x4aaea3=this;this['sequence'][_0x359e8e(0x200)](function(){const _0x41836a=_0x359e8e;return _0x4aaea3[_0x41836a(0x1e6)]['removeIndex'](_0x3dfda0,_0xbad7c9)['then'](function(){const _0x48dce7=_0x41836a;logger['info'](_0x48dce7(0x1f9),_0x3dfda0,_0xbad7c9);})['catch'](function(_0x4ecee8){const _0x2cd7e0=_0x41836a;logger['info'](JSON[_0x2cd7e0(0x1e8)](_0x4ecee8));});});},Migration['prototype'][a1168_0x553f7f(0x1fb)]=function(_0x491484){const _0x30d602=a1168_0x553f7f,_0xf754d1=this;this[_0x30d602(0x1e3)][_0x30d602(0x200)](function(){const _0x24b465=_0x30d602;return _0xf754d1[_0x24b465(0x1e6)][_0x24b465(0x1e7)][_0x24b465(0x1fb)](_0x491484)[_0x24b465(0x1fa)](function(){const _0x3d8cc3=_0x24b465;logger['info'](_0x3d8cc3(0x1df),_0x491484);})[_0x24b465(0x1e2)](function(_0x4c6881){const _0x38344d=_0x24b465;logger['info'](JSON[_0x38344d(0x1e8)](_0x4c6881));});});},Migration[a1168_0x553f7f(0x1fe)][a1168_0x553f7f(0x1e4)]=function(_0x237c80,_0x28a6cb){const _0x5bbd1a=this;this['sequence']['enqueue'](function(){const _0x46ef89=a1168_0x5693;return _0x5bbd1a[_0x46ef89(0x1e6)][_0x46ef89(0x1e4)](_0x237c80,_0x28a6cb)[_0x46ef89(0x1fa)](function(){const _0x3ae298=_0x46ef89;logger['info'](_0x3ae298(0x1fd),_0x28a6cb,_0x237c80);})['catch'](function(_0x390534){const _0x4bbb24=_0x46ef89;logger[_0x4bbb24(0x1f5)](util[_0x4bbb24(0x1f3)](_0x390534,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1168_0x553f7f(0x1ed)]=function(_0x1ad3a6,_0x96213b,_0x467a6b){const _0x5c4381=a1168_0x553f7f,_0x3fdd9f=this;this['sequence'][_0x5c4381(0x200)](function(){const _0x14ac20=_0x5c4381;return _0x3fdd9f[_0x14ac20(0x1e6)][_0x14ac20(0x1ed)](_0x1ad3a6,_0x96213b,_0x467a6b)[_0x14ac20(0x1fa)](function(){const _0x5af7fc=_0x14ac20;logger[_0x5af7fc(0x1f5)](_0x5af7fc(0x1ff),_0x96213b,_0x467a6b,_0x1ad3a6);})[_0x14ac20(0x1e2)](function(_0x37ef00){const _0x2b8533=_0x14ac20;logger[_0x2b8533(0x1f5)](util[_0x2b8533(0x1f3)](_0x37ef00,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1168_0x553f7f(0x1e0)]=function(_0x11a498){const _0x3b7b22=a1168_0x553f7f;this[_0x3b7b22(0x1e3)]['enqueue'](function(){return _0x11a498();});},module[a1168_0x553f7f(0x1f8)]={'up':function(_0x326fd3,_0x2739bc){return new Promise(function(_0x4f0ad5){const _0x459fd1=a1168_0x5693,_0x163899=new Migration(_0x326fd3);_0x163899[_0x459fd1(0x1e1)](_0x459fd1(0x1f4),'googleSsoEnabled',{'type':_0x2739bc[_0x459fd1(0x1ef)],'defaultValue':![]}),_0x163899[_0x459fd1(0x1fb)]('UPDATE\x20settings\x20SET\x20googleSsoEnabled\x20=\x201'),_0x163899[_0x459fd1(0x1e0)](_0x4f0ad5);});},'down':function(){}}; \ No newline at end of file +const a1168_0x1488=['join','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','finally','then','indexName','removeColumn','table\x20dropped\x20%s','settings','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','sequelize','indicesType','catch','removeIndex','util','prototype','changeColumn','stringify','enqueue','final','BOOLEAN','query\x20%s','info','tail','renameColumn','addColumn','addIndex','../config/logger','query','exports','queryInterface','removeIndex\x20%s\x20%s'];(function(_0x49066f,_0x210248){const _0x148827=function(_0x24f32){while(--_0x24f32){_0x49066f['push'](_0x49066f['shift']());}};_0x148827(++_0x210248);}(a1168_0x1488,0xbe));const a1168_0x24f3=function(_0x49066f,_0x210248){_0x49066f=_0x49066f-0x8e;let _0x148827=a1168_0x1488[_0x49066f];return _0x148827;};const a1168_0x53f6e5=a1168_0x24f3;'use strict';const util=require(a1168_0x53f6e5(0x9c)),logger=require(a1168_0x53f6e5(0xa9))(a1168_0x53f6e5(0x97)),Sequence=function(){};Sequence['prototype'][a1168_0x53f6e5(0xa0)]=function(_0x33b2f7){const _0x39cc54=a1168_0x53f6e5;this[_0x39cc54(0xa5)]=this[_0x39cc54(0xa5)]?this[_0x39cc54(0xa5)][_0x39cc54(0x90)](_0x33b2f7):_0x33b2f7();};const Migration=function(_0x509d62){const _0x2e20c2=a1168_0x53f6e5;this[_0x2e20c2(0xac)]=_0x509d62,this[_0x2e20c2(0xb0)]=new Sequence();};Migration[a1168_0x53f6e5(0x9d)][a1168_0x53f6e5(0x9e)]=function(_0x2cd69e,_0x59bd72,_0x2da01a){const _0x2f63eb=a1168_0x53f6e5,_0x576039=this;this['sequence'][_0x2f63eb(0xa0)](function(){const _0x1c5b17=_0x2f63eb;return _0x576039[_0x1c5b17(0xac)][_0x1c5b17(0x9e)](_0x2cd69e,_0x59bd72,_0x2da01a)[_0x1c5b17(0x91)](function(){const _0x1587ba=_0x1c5b17;logger[_0x1587ba(0xa4)](_0x1587ba(0x96),_0x59bd72,_0x2cd69e);})[_0x1c5b17(0x9a)](function(_0x2ebf59){const _0x32d96e=_0x1c5b17;logger[_0x32d96e(0xa4)](JSON[_0x32d96e(0x9f)](_0x2ebf59));});});},Migration[a1168_0x53f6e5(0x9d)][a1168_0x53f6e5(0xa7)]=function(_0x30353d,_0x1d7468,_0x40f6a0){const _0x2d62e9=a1168_0x53f6e5,_0xfae59b=this;this['sequence'][_0x2d62e9(0xa0)](function(){const _0x1654c8=_0x2d62e9;return _0xfae59b['queryInterface']['addColumn'](_0x30353d,_0x1d7468,_0x40f6a0)[_0x1654c8(0x91)](function(){const _0x5a022=_0x1654c8;logger[_0x5a022(0xa4)](_0x5a022(0x8f),_0x1d7468,_0x30353d);})['catch'](function(_0x162db3){const _0x16c19a=_0x1654c8;logger[_0x16c19a(0xa4)](JSON['stringify'](_0x162db3));});});},Migration[a1168_0x53f6e5(0x9d)][a1168_0x53f6e5(0xb2)]=function(_0x15a8ba){const _0x214fca=a1168_0x53f6e5,_0x56c5d6=this;this[_0x214fca(0xb0)][_0x214fca(0xa0)](function(){const _0x345015=_0x214fca;return _0x56c5d6[_0x345015(0xac)][_0x345015(0xb2)](_0x15a8ba,{'force':!![]})[_0x345015(0x91)](function(){const _0x1cf8b0=_0x345015;logger[_0x1cf8b0(0xa4)](_0x1cf8b0(0x94),_0x15a8ba);})['catch'](function(_0x354784){const _0x38f32d=_0x345015;logger[_0x38f32d(0xa4)](JSON[_0x38f32d(0x9f)](_0x354784));});});},Migration[a1168_0x53f6e5(0x9d)]['addIndex']=function(_0x120e09,_0x46d8cd,_0x42d94a){const _0x1f1a27=a1168_0x53f6e5,_0x180426=this;this[_0x1f1a27(0xb0)][_0x1f1a27(0xa0)](function(){const _0x42688b=_0x1f1a27;return _0x180426[_0x42688b(0xac)][_0x42688b(0xa8)](_0x120e09,_0x46d8cd,{'indexName':_0x42d94a[_0x42688b(0x92)],'indicesType':_0x42d94a[_0x42688b(0x99)]})[_0x42688b(0x91)](function(){const _0x37fa66=_0x42688b;logger[_0x37fa66(0xa4)](_0x37fa66(0xaf),_0x120e09,_0x46d8cd[_0x37fa66(0xae)](','),_0x42d94a[_0x37fa66(0x92)],_0x42d94a['indicesType']);})['catch'](function(_0xdfd2c0){const _0x196835=_0x42688b;logger[_0x196835(0xa4)](JSON[_0x196835(0x9f)](_0xdfd2c0));});});},Migration[a1168_0x53f6e5(0x9d)][a1168_0x53f6e5(0x9b)]=function(_0x51e5ef,_0x8d03db){const _0x514ee2=a1168_0x53f6e5,_0x1458e8=this;this[_0x514ee2(0xb0)]['enqueue'](function(){const _0x1be673=_0x514ee2;return _0x1458e8[_0x1be673(0xac)][_0x1be673(0x9b)](_0x51e5ef,_0x8d03db)['then'](function(){const _0x307a6a=_0x1be673;logger[_0x307a6a(0xa4)](_0x307a6a(0xad),_0x51e5ef,_0x8d03db);})[_0x1be673(0x9a)](function(_0x2144ae){const _0x5014aa=_0x1be673;logger[_0x5014aa(0xa4)](JSON[_0x5014aa(0x9f)](_0x2144ae));});});},Migration['prototype']['query']=function(_0x5a1f83){const _0x38194e=a1168_0x53f6e5,_0x4b5609=this;this[_0x38194e(0xb0)][_0x38194e(0xa0)](function(){const _0x18620a=_0x38194e;return _0x4b5609[_0x18620a(0xac)][_0x18620a(0x98)][_0x18620a(0xaa)](_0x5a1f83)['then'](function(){const _0x2dcbb3=_0x18620a;logger['info'](_0x2dcbb3(0xa3),_0x5a1f83);})['catch'](function(_0x19d83f){const _0x6de0aa=_0x18620a;logger['info'](JSON[_0x6de0aa(0x9f)](_0x19d83f));});});},Migration[a1168_0x53f6e5(0x9d)][a1168_0x53f6e5(0x93)]=function(_0x3acb12,_0x5a0f3c){const _0x3ae18a=a1168_0x53f6e5,_0x24b3f4=this;this[_0x3ae18a(0xb0)]['enqueue'](function(){const _0x4be2a3=_0x3ae18a;return _0x24b3f4[_0x4be2a3(0xac)][_0x4be2a3(0x93)](_0x3acb12,_0x5a0f3c)[_0x4be2a3(0x91)](function(){const _0x2d0b39=_0x4be2a3;logger[_0x2d0b39(0xa4)](_0x2d0b39(0x8e),_0x5a0f3c,_0x3acb12);})['catch'](function(_0x4e8e8d){const _0xa28430=_0x4be2a3;logger[_0xa28430(0xa4)](util['inspect'](_0x4e8e8d,{'showHidden':![],'depth':null}));});});},Migration[a1168_0x53f6e5(0x9d)][a1168_0x53f6e5(0xa6)]=function(_0x475620,_0x340b81,_0x5e59dc){const _0x29e798=a1168_0x53f6e5,_0x34b9d5=this;this[_0x29e798(0xb0)][_0x29e798(0xa0)](function(){const _0x249cbc=_0x29e798;return _0x34b9d5[_0x249cbc(0xac)][_0x249cbc(0xa6)](_0x475620,_0x340b81,_0x5e59dc)['then'](function(){const _0x5e8258=_0x249cbc;logger['info'](_0x5e8258(0xb1),_0x340b81,_0x5e59dc,_0x475620);})[_0x249cbc(0x9a)](function(_0x19164b){logger['info'](util['inspect'](_0x19164b,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x22daf1){const _0x501294=a1168_0x53f6e5;this[_0x501294(0xb0)][_0x501294(0xa0)](function(){return _0x22daf1();});},module[a1168_0x53f6e5(0xab)]={'up':function(_0x16dda9,_0xf22069){return new Promise(function(_0x50ee66){const _0x5f1669=a1168_0x24f3,_0x41d851=new Migration(_0x16dda9);_0x41d851['addColumn'](_0x5f1669(0x95),'googleSsoEnabled',{'type':_0xf22069[_0x5f1669(0xa2)],'defaultValue':![]}),_0x41d851['query']('UPDATE\x20settings\x20SET\x20googleSsoEnabled\x20=\x201'),_0x41d851[_0x5f1669(0xa1)](_0x50ee66);});},'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 8136af4..a06cb98 100644 --- a/server/migrations/2.4.21.js +++ b/server/migrations/2.4.21.js @@ -1 +1 @@ -const a1169_0x105f=['addIndex','final','table\x20dropped\x20%s','renameColumn','indicesType','query\x20%s','removeColumn','stringify','tail','inspect','info','then','enqueue','query','Changed\x20column\x20%s\x20in\x20table\x20%s','join','exports','finally','addColumn','Added\x20column\x20%s\x20to\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','queryInterface','catch','indexName','dropTable','prototype','sequence'];(function(_0x12ed2c,_0x440a6a){const _0x105f3e=function(_0x379541){while(--_0x379541){_0x12ed2c['push'](_0x12ed2c['shift']());}};_0x105f3e(++_0x440a6a);}(a1169_0x105f,0x1b8));const a1169_0x3795=function(_0x12ed2c,_0x440a6a){_0x12ed2c=_0x12ed2c-0x86;let _0x105f3e=a1169_0x105f[_0x12ed2c];return _0x105f3e;};const a1169_0x293c9d=a1169_0x3795;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1169_0x293c9d(0x97)]['enqueue']=function(_0x8e1893){const _0x2919c1=a1169_0x293c9d;this[_0x2919c1(0x86)]=this['tail']?this[_0x2919c1(0x86)][_0x2919c1(0x8f)](_0x8e1893):_0x8e1893();};const Migration=function(_0x3f1e39){const _0x3ef4c8=a1169_0x293c9d;this[_0x3ef4c8(0x93)]=_0x3f1e39,this['sequence']=new Sequence();};Migration[a1169_0x293c9d(0x97)]['changeColumn']=function(_0x4b5d38,_0x48200c,_0x2cce01){const _0x2dca13=this;this['sequence']['enqueue'](function(){const _0xfd7ab7=a1169_0x3795;return _0x2dca13[_0xfd7ab7(0x93)]['changeColumn'](_0x4b5d38,_0x48200c,_0x2cce01)[_0xfd7ab7(0x89)](function(){const _0x120065=_0xfd7ab7;logger[_0x120065(0x88)](_0x120065(0x8c),_0x48200c,_0x4b5d38);})[_0xfd7ab7(0x94)](function(_0x4f5876){const _0x2b7c73=_0xfd7ab7;logger['info'](JSON[_0x2b7c73(0xa0)](_0x4f5876));});});},Migration[a1169_0x293c9d(0x97)][a1169_0x293c9d(0x90)]=function(_0x4d10ef,_0x47efff,_0x352a2b){const _0x2ae80b=a1169_0x293c9d,_0x394da2=this;this['sequence'][_0x2ae80b(0x8a)](function(){const _0x416247=_0x2ae80b;return _0x394da2[_0x416247(0x93)][_0x416247(0x90)](_0x4d10ef,_0x47efff,_0x352a2b)[_0x416247(0x89)](function(){const _0x25543c=_0x416247;logger[_0x25543c(0x88)](_0x25543c(0x91),_0x47efff,_0x4d10ef);})['catch'](function(_0x2b30f1){const _0x13912e=_0x416247;logger[_0x13912e(0x88)](JSON[_0x13912e(0xa0)](_0x2b30f1));});});},Migration[a1169_0x293c9d(0x97)]['dropTable']=function(_0x49036d){const _0x268a8d=a1169_0x293c9d,_0x1c7022=this;this[_0x268a8d(0x98)]['enqueue'](function(){const _0x547c6e=_0x268a8d;return _0x1c7022[_0x547c6e(0x93)][_0x547c6e(0x96)](_0x49036d,{'force':!![]})[_0x547c6e(0x89)](function(){const _0x913d8e=_0x547c6e;logger['info'](_0x913d8e(0x9b),_0x49036d);})[_0x547c6e(0x94)](function(_0x37d05a){const _0x58df3c=_0x547c6e;logger[_0x58df3c(0x88)](JSON['stringify'](_0x37d05a));});});},Migration['prototype'][a1169_0x293c9d(0x99)]=function(_0x6ab716,_0xfe352e,_0xb6049a){const _0x2cd896=a1169_0x293c9d,_0x4ebc23=this;this[_0x2cd896(0x98)]['enqueue'](function(){const _0x599e7d=_0x2cd896;return _0x4ebc23[_0x599e7d(0x93)]['addIndex'](_0x6ab716,_0xfe352e,{'indexName':_0xb6049a[_0x599e7d(0x95)],'indicesType':_0xb6049a['indicesType']})['then'](function(){const _0x271f3e=_0x599e7d;logger['info'](_0x271f3e(0x92),_0x6ab716,_0xfe352e[_0x271f3e(0x8d)](','),_0xb6049a[_0x271f3e(0x95)],_0xb6049a[_0x271f3e(0x9d)]);})[_0x599e7d(0x94)](function(_0x4c4b1f){const _0x1e1c0e=_0x599e7d;logger[_0x1e1c0e(0x88)](JSON[_0x1e1c0e(0xa0)](_0x4c4b1f));});});},Migration[a1169_0x293c9d(0x97)]['removeIndex']=function(_0x57d1cf,_0x6b844c){const _0x278aa6=a1169_0x293c9d,_0x5cab28=this;this[_0x278aa6(0x98)]['enqueue'](function(){const _0x525bf5=_0x278aa6;return _0x5cab28[_0x525bf5(0x93)]['removeIndex'](_0x57d1cf,_0x6b844c)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x57d1cf,_0x6b844c);})[_0x525bf5(0x94)](function(_0x62b481){const _0x127551=_0x525bf5;logger[_0x127551(0x88)](JSON['stringify'](_0x62b481));});});},Migration['prototype'][a1169_0x293c9d(0x8b)]=function(_0x42912e){const _0x43deee=a1169_0x293c9d,_0x13c3bf=this;this['sequence'][_0x43deee(0x8a)](function(){const _0x55cd62=_0x43deee;return _0x13c3bf['queryInterface']['sequelize'][_0x55cd62(0x8b)](_0x42912e)[_0x55cd62(0x89)](function(){const _0x4c1924=_0x55cd62;logger[_0x4c1924(0x88)](_0x4c1924(0x9e),_0x42912e);})[_0x55cd62(0x94)](function(_0xed0498){const _0x53993e=_0x55cd62;logger['info'](JSON[_0x53993e(0xa0)](_0xed0498));});});},Migration['prototype'][a1169_0x293c9d(0x9f)]=function(_0x122d19,_0x17ba56){const _0x16ffb3=a1169_0x293c9d,_0x206897=this;this[_0x16ffb3(0x98)]['enqueue'](function(){const _0x10450f=_0x16ffb3;return _0x206897[_0x10450f(0x93)][_0x10450f(0x9f)](_0x122d19,_0x17ba56)[_0x10450f(0x89)](function(){const _0x2ddd40=_0x10450f;logger[_0x2ddd40(0x88)]('Removed\x20column\x20%s\x20from\x20%s',_0x17ba56,_0x122d19);})[_0x10450f(0x94)](function(_0x5bc5cd){const _0xcfa86e=_0x10450f;logger[_0xcfa86e(0x88)](util[_0xcfa86e(0x87)](_0x5bc5cd,{'showHidden':![],'depth':null}));});});},Migration[a1169_0x293c9d(0x97)][a1169_0x293c9d(0x9c)]=function(_0x5ddb52,_0x5434c0,_0x9daf3b){const _0x3ba28=a1169_0x293c9d,_0x4d3cfe=this;this['sequence'][_0x3ba28(0x8a)](function(){const _0x1adf98=_0x3ba28;return _0x4d3cfe['queryInterface'][_0x1adf98(0x9c)](_0x5ddb52,_0x5434c0,_0x9daf3b)[_0x1adf98(0x89)](function(){const _0x5a2eaf=_0x1adf98;logger[_0x5a2eaf(0x88)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5434c0,_0x9daf3b,_0x5ddb52);})['catch'](function(_0x55c020){const _0x298150=_0x1adf98;logger[_0x298150(0x88)](util['inspect'](_0x55c020,{'showHidden':![],'depth':null}));});});},Migration[a1169_0x293c9d(0x97)][a1169_0x293c9d(0x9a)]=function(_0x57cb3f){const _0x35a469=a1169_0x293c9d;this[_0x35a469(0x98)][_0x35a469(0x8a)](function(){return _0x57cb3f();});},module[a1169_0x293c9d(0x8e)]={'up':function(_0x566219){return new Promise(function(_0x5be9d5){const _0x3eb83f=a1169_0x3795,_0x23ed84=new Migration(_0x566219);_0x23ed84[_0x3eb83f(0x9a)](_0x5be9d5);});},'down':function(){}}; \ No newline at end of file +const a1169_0x26a2=['join','info','indexName','removeColumn','finally','sequence','Removed\x20column\x20%s\x20from\x20%s','enqueue','removeIndex','Added\x20column\x20%s\x20to\x20%s','changeColumn','addColumn','addIndex','tail','util','catch','renameColumn','removeIndex\x20%s\x20%s','migration','inspect','final','addIndex\x20%s\x20%s\x20%s\x20[%s]','queryInterface','indicesType','then','query','query\x20%s','stringify','prototype','sequelize','dropTable'];(function(_0xd6f80b,_0x465e09){const _0x26a2c4=function(_0x4dd223){while(--_0x4dd223){_0xd6f80b['push'](_0xd6f80b['shift']());}};_0x26a2c4(++_0x465e09);}(a1169_0x26a2,0x1c0));const a1169_0x4dd2=function(_0xd6f80b,_0x465e09){_0xd6f80b=_0xd6f80b-0x1c6;let _0x26a2c4=a1169_0x26a2[_0xd6f80b];return _0x26a2c4;};const a1169_0x48e7ff=a1169_0x4dd2;'use strict';const util=require(a1169_0x48e7ff(0x1c6)),logger=require('../config/logger')(a1169_0x48e7ff(0x1ca)),Sequence=function(){};Sequence[a1169_0x48e7ff(0x1d4)][a1169_0x48e7ff(0x1de)]=function(_0x5a7155){const _0x9a1a7c=a1169_0x48e7ff;this[_0x9a1a7c(0x1e4)]=this[_0x9a1a7c(0x1e4)]?this[_0x9a1a7c(0x1e4)][_0x9a1a7c(0x1db)](_0x5a7155):_0x5a7155();};const Migration=function(_0x806c29){const _0x1c674e=a1169_0x48e7ff;this[_0x1c674e(0x1ce)]=_0x806c29,this[_0x1c674e(0x1dc)]=new Sequence();};Migration['prototype'][a1169_0x48e7ff(0x1e1)]=function(_0x469588,_0x559dcd,_0x3db739){const _0x412a45=a1169_0x48e7ff,_0x331677=this;this[_0x412a45(0x1dc)][_0x412a45(0x1de)](function(){const _0x18fdb0=_0x412a45;return _0x331677['queryInterface'][_0x18fdb0(0x1e1)](_0x469588,_0x559dcd,_0x3db739)['then'](function(){const _0x32d54e=_0x18fdb0;logger[_0x32d54e(0x1d8)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x559dcd,_0x469588);})[_0x18fdb0(0x1c7)](function(_0x338271){const _0x4a2461=_0x18fdb0;logger[_0x4a2461(0x1d8)](JSON[_0x4a2461(0x1d3)](_0x338271));});});},Migration['prototype'][a1169_0x48e7ff(0x1e2)]=function(_0x3d3b74,_0x29bf1e,_0xf0e791){const _0x26e6e0=a1169_0x48e7ff,_0x21093f=this;this[_0x26e6e0(0x1dc)][_0x26e6e0(0x1de)](function(){const _0x2a0a1f=_0x26e6e0;return _0x21093f[_0x2a0a1f(0x1ce)][_0x2a0a1f(0x1e2)](_0x3d3b74,_0x29bf1e,_0xf0e791)[_0x2a0a1f(0x1d0)](function(){const _0x105b05=_0x2a0a1f;logger[_0x105b05(0x1d8)](_0x105b05(0x1e0),_0x29bf1e,_0x3d3b74);})[_0x2a0a1f(0x1c7)](function(_0x129553){const _0x4a6067=_0x2a0a1f;logger[_0x4a6067(0x1d8)](JSON['stringify'](_0x129553));});});},Migration[a1169_0x48e7ff(0x1d4)][a1169_0x48e7ff(0x1d6)]=function(_0x52e301){const _0x9fabf=a1169_0x48e7ff,_0x2d8502=this;this['sequence'][_0x9fabf(0x1de)](function(){const _0x51443f=_0x9fabf;return _0x2d8502[_0x51443f(0x1ce)][_0x51443f(0x1d6)](_0x52e301,{'force':!![]})[_0x51443f(0x1d0)](function(){const _0x38bc43=_0x51443f;logger[_0x38bc43(0x1d8)]('table\x20dropped\x20%s',_0x52e301);})[_0x51443f(0x1c7)](function(_0x455eb7){const _0x312684=_0x51443f;logger[_0x312684(0x1d8)](JSON[_0x312684(0x1d3)](_0x455eb7));});});},Migration[a1169_0x48e7ff(0x1d4)][a1169_0x48e7ff(0x1e3)]=function(_0x557f19,_0x1d6f7e,_0xef14ac){const _0x25a063=this;this['sequence']['enqueue'](function(){const _0x32511c=a1169_0x4dd2;return _0x25a063['queryInterface']['addIndex'](_0x557f19,_0x1d6f7e,{'indexName':_0xef14ac[_0x32511c(0x1d9)],'indicesType':_0xef14ac[_0x32511c(0x1cf)]})['then'](function(){const _0x54df3e=_0x32511c;logger['info'](_0x54df3e(0x1cd),_0x557f19,_0x1d6f7e[_0x54df3e(0x1d7)](','),_0xef14ac[_0x54df3e(0x1d9)],_0xef14ac[_0x54df3e(0x1cf)]);})['catch'](function(_0x29cd61){const _0x34b6f5=_0x32511c;logger[_0x34b6f5(0x1d8)](JSON[_0x34b6f5(0x1d3)](_0x29cd61));});});},Migration[a1169_0x48e7ff(0x1d4)]['removeIndex']=function(_0x4a5a16,_0xf9595f){const _0x5175fd=a1169_0x48e7ff,_0x358a4c=this;this[_0x5175fd(0x1dc)][_0x5175fd(0x1de)](function(){const _0x2a061e=_0x5175fd;return _0x358a4c[_0x2a061e(0x1ce)][_0x2a061e(0x1df)](_0x4a5a16,_0xf9595f)[_0x2a061e(0x1d0)](function(){const _0x4b8802=_0x2a061e;logger[_0x4b8802(0x1d8)](_0x4b8802(0x1c9),_0x4a5a16,_0xf9595f);})[_0x2a061e(0x1c7)](function(_0x398ab3){const _0x5abe78=_0x2a061e;logger['info'](JSON[_0x5abe78(0x1d3)](_0x398ab3));});});},Migration['prototype'][a1169_0x48e7ff(0x1d1)]=function(_0x47ba0e){const _0x459d5c=a1169_0x48e7ff,_0x2d7d9d=this;this[_0x459d5c(0x1dc)]['enqueue'](function(){const _0x4bee3f=_0x459d5c;return _0x2d7d9d['queryInterface'][_0x4bee3f(0x1d5)][_0x4bee3f(0x1d1)](_0x47ba0e)[_0x4bee3f(0x1d0)](function(){const _0x5452db=_0x4bee3f;logger[_0x5452db(0x1d8)](_0x5452db(0x1d2),_0x47ba0e);})[_0x4bee3f(0x1c7)](function(_0x114597){const _0x51aaa4=_0x4bee3f;logger[_0x51aaa4(0x1d8)](JSON[_0x51aaa4(0x1d3)](_0x114597));});});},Migration['prototype']['removeColumn']=function(_0x581fef,_0x34bb2e){const _0x5d6d78=a1169_0x48e7ff,_0x41dffa=this;this['sequence'][_0x5d6d78(0x1de)](function(){const _0x22726f=_0x5d6d78;return _0x41dffa[_0x22726f(0x1ce)][_0x22726f(0x1da)](_0x581fef,_0x34bb2e)[_0x22726f(0x1d0)](function(){const _0x314315=_0x22726f;logger[_0x314315(0x1d8)](_0x314315(0x1dd),_0x34bb2e,_0x581fef);})[_0x22726f(0x1c7)](function(_0xb8b906){const _0x345af2=_0x22726f;logger[_0x345af2(0x1d8)](util[_0x345af2(0x1cb)](_0xb8b906,{'showHidden':![],'depth':null}));});});},Migration[a1169_0x48e7ff(0x1d4)][a1169_0x48e7ff(0x1c8)]=function(_0x1cb9b9,_0x1a5c5c,_0x299b19){const _0x1effc4=a1169_0x48e7ff,_0x177aac=this;this[_0x1effc4(0x1dc)][_0x1effc4(0x1de)](function(){const _0x4f6ab3=_0x1effc4;return _0x177aac[_0x4f6ab3(0x1ce)]['renameColumn'](_0x1cb9b9,_0x1a5c5c,_0x299b19)[_0x4f6ab3(0x1d0)](function(){const _0x47216a=_0x4f6ab3;logger[_0x47216a(0x1d8)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1a5c5c,_0x299b19,_0x1cb9b9);})[_0x4f6ab3(0x1c7)](function(_0x26ef5b){const _0x238eb3=_0x4f6ab3;logger[_0x238eb3(0x1d8)](util['inspect'](_0x26ef5b,{'showHidden':![],'depth':null}));});});},Migration[a1169_0x48e7ff(0x1d4)][a1169_0x48e7ff(0x1cc)]=function(_0x2c41a2){const _0x5cca64=a1169_0x48e7ff;this[_0x5cca64(0x1dc)]['enqueue'](function(){return _0x2c41a2();});},module['exports']={'up':function(_0x26788f){return new Promise(function(_0x4bb1bc){const _0x5c09af=a1169_0x4dd2,_0x1b17de=new Migration(_0x26788f);_0x1b17de[_0x5c09af(0x1cc)](_0x4bb1bc);});},'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 1b2b1a2..c71b5e7 100644 --- a/server/migrations/2.4.3.js +++ b/server/migrations/2.4.3.js @@ -1 +1 @@ -const a1170_0x21c1=['table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','final','prototype','addIndex','removeIndex\x20%s\x20%s','queryInterface','tail','../config/logger','indexName','info','Removed\x20column\x20%s\x20from\x20%s','catch','exports','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','sequence','indicesType','sequelize','inspect','addColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','stringify','renameColumn','then','migration','changeColumn','removeIndex','enqueue'];(function(_0x17ef53,_0x260a4a){const _0x21c14f=function(_0x1d6dc5){while(--_0x1d6dc5){_0x17ef53['push'](_0x17ef53['shift']());}};_0x21c14f(++_0x260a4a);}(a1170_0x21c1,0x17b));const a1170_0x1d6d=function(_0x17ef53,_0x260a4a){_0x17ef53=_0x17ef53-0x1bd;let _0x21c14f=a1170_0x21c1[_0x17ef53];return _0x21c14f;};const a1170_0xa1072f=a1170_0x1d6d;'use strict';const util=require('util'),logger=require(a1170_0xa1072f(0x1bf))(a1170_0xa1072f(0x1d1)),Sequence=function(){};Sequence[a1170_0xa1072f(0x1d9)][a1170_0xa1072f(0x1d4)]=function(_0x2ab5e3){const _0x4a5369=a1170_0xa1072f;this[_0x4a5369(0x1be)]=this[_0x4a5369(0x1be)]?this[_0x4a5369(0x1be)][_0x4a5369(0x1d7)](_0x2ab5e3):_0x2ab5e3();};const Migration=function(_0x2e6dc5){const _0x552715=a1170_0xa1072f;this[_0x552715(0x1bd)]=_0x2e6dc5,this[_0x552715(0x1c8)]=new Sequence();};Migration['prototype'][a1170_0xa1072f(0x1d2)]=function(_0x194b92,_0x2942e0,_0x37cb57){const _0x47b4dd=a1170_0xa1072f,_0x5bd80f=this;this[_0x47b4dd(0x1c8)]['enqueue'](function(){const _0x24a6de=_0x47b4dd;return _0x5bd80f[_0x24a6de(0x1bd)][_0x24a6de(0x1d2)](_0x194b92,_0x2942e0,_0x37cb57)[_0x24a6de(0x1d0)](function(){const _0xc3c072=_0x24a6de;logger[_0xc3c072(0x1c1)](_0xc3c072(0x1d6),_0x2942e0,_0x194b92);})[_0x24a6de(0x1c3)](function(_0x153a26){const _0x4d77f6=_0x24a6de;logger[_0x4d77f6(0x1c1)](JSON[_0x4d77f6(0x1ce)](_0x153a26));});});},Migration[a1170_0xa1072f(0x1d9)][a1170_0xa1072f(0x1cc)]=function(_0x318b46,_0x4d0875,_0x775500){const _0x28a62f=a1170_0xa1072f,_0x5dbd76=this;this[_0x28a62f(0x1c8)]['enqueue'](function(){const _0x280664=_0x28a62f;return _0x5dbd76['queryInterface'][_0x280664(0x1cc)](_0x318b46,_0x4d0875,_0x775500)[_0x280664(0x1d0)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x4d0875,_0x318b46);})[_0x280664(0x1c3)](function(_0x494cdf){const _0x1e4979=_0x280664;logger[_0x1e4979(0x1c1)](JSON['stringify'](_0x494cdf));});});},Migration['prototype']['dropTable']=function(_0x226a69){const _0xfebd69=a1170_0xa1072f,_0x41b11d=this;this['sequence'][_0xfebd69(0x1d4)](function(){const _0x3b8f50=_0xfebd69;return _0x41b11d[_0x3b8f50(0x1bd)]['dropTable'](_0x226a69,{'force':!![]})[_0x3b8f50(0x1d0)](function(){const _0x28f1d2=_0x3b8f50;logger[_0x28f1d2(0x1c1)](_0x28f1d2(0x1d5),_0x226a69);})['catch'](function(_0x418cb2){const _0x1d3524=_0x3b8f50;logger['info'](JSON[_0x1d3524(0x1ce)](_0x418cb2));});});},Migration[a1170_0xa1072f(0x1d9)][a1170_0xa1072f(0x1da)]=function(_0x275312,_0x215d85,_0x2ccae5){const _0x3acfcb=a1170_0xa1072f,_0x3bc74c=this;this[_0x3acfcb(0x1c8)]['enqueue'](function(){const _0x1e08c7=_0x3acfcb;return _0x3bc74c[_0x1e08c7(0x1bd)][_0x1e08c7(0x1da)](_0x275312,_0x215d85,{'indexName':_0x2ccae5[_0x1e08c7(0x1c0)],'indicesType':_0x2ccae5[_0x1e08c7(0x1c9)]})[_0x1e08c7(0x1d0)](function(){const _0x1d705a=_0x1e08c7;logger[_0x1d705a(0x1c1)](_0x1d705a(0x1cd),_0x275312,_0x215d85[_0x1d705a(0x1c7)](','),_0x2ccae5[_0x1d705a(0x1c0)],_0x2ccae5[_0x1d705a(0x1c9)]);})[_0x1e08c7(0x1c3)](function(_0x5f3384){const _0x5c4503=_0x1e08c7;logger[_0x5c4503(0x1c1)](JSON[_0x5c4503(0x1ce)](_0x5f3384));});});},Migration[a1170_0xa1072f(0x1d9)][a1170_0xa1072f(0x1d3)]=function(_0x563182,_0x36081c){const _0x1bc4db=a1170_0xa1072f,_0x17ffae=this;this[_0x1bc4db(0x1c8)][_0x1bc4db(0x1d4)](function(){const _0x75b2c7=_0x1bc4db;return _0x17ffae[_0x75b2c7(0x1bd)][_0x75b2c7(0x1d3)](_0x563182,_0x36081c)[_0x75b2c7(0x1d0)](function(){const _0x265b74=_0x75b2c7;logger['info'](_0x265b74(0x1db),_0x563182,_0x36081c);})[_0x75b2c7(0x1c3)](function(_0x55a328){const _0x2efe56=_0x75b2c7;logger[_0x2efe56(0x1c1)](JSON[_0x2efe56(0x1ce)](_0x55a328));});});},Migration[a1170_0xa1072f(0x1d9)]['query']=function(_0xa6559a){const _0x50b97d=a1170_0xa1072f,_0x35533e=this;this['sequence'][_0x50b97d(0x1d4)](function(){const _0x942b9=_0x50b97d;return _0x35533e[_0x942b9(0x1bd)][_0x942b9(0x1ca)]['query'](_0xa6559a)[_0x942b9(0x1d0)](function(){const _0x5d2ece=_0x942b9;logger[_0x5d2ece(0x1c1)]('query\x20%s',_0xa6559a);})[_0x942b9(0x1c3)](function(_0x3bc219){const _0x5e7946=_0x942b9;logger['info'](JSON[_0x5e7946(0x1ce)](_0x3bc219));});});},Migration[a1170_0xa1072f(0x1d9)]['removeColumn']=function(_0x5af1fa,_0x1f5be8){const _0x38574d=a1170_0xa1072f,_0x5472f3=this;this[_0x38574d(0x1c8)][_0x38574d(0x1d4)](function(){const _0x19c697=_0x38574d;return _0x5472f3[_0x19c697(0x1bd)][_0x19c697(0x1c5)](_0x5af1fa,_0x1f5be8)[_0x19c697(0x1d0)](function(){const _0x935722=_0x19c697;logger[_0x935722(0x1c1)](_0x935722(0x1c2),_0x1f5be8,_0x5af1fa);})[_0x19c697(0x1c3)](function(_0x5d621d){const _0x3bf475=_0x19c697;logger[_0x3bf475(0x1c1)](util[_0x3bf475(0x1cb)](_0x5d621d,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1170_0xa1072f(0x1cf)]=function(_0x276d65,_0x23ff4f,_0x229dc5){const _0x4f758b=a1170_0xa1072f,_0x537987=this;this[_0x4f758b(0x1c8)][_0x4f758b(0x1d4)](function(){const _0x55ba6a=_0x4f758b;return _0x537987[_0x55ba6a(0x1bd)][_0x55ba6a(0x1cf)](_0x276d65,_0x23ff4f,_0x229dc5)[_0x55ba6a(0x1d0)](function(){const _0x2c84f6=_0x55ba6a;logger['info'](_0x2c84f6(0x1c6),_0x23ff4f,_0x229dc5,_0x276d65);})[_0x55ba6a(0x1c3)](function(_0x188178){const _0x392070=_0x55ba6a;logger[_0x392070(0x1c1)](util[_0x392070(0x1cb)](_0x188178,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1170_0xa1072f(0x1d8)]=function(_0x4cad7e){const _0x48911b=a1170_0xa1072f;this[_0x48911b(0x1c8)][_0x48911b(0x1d4)](function(){return _0x4cad7e();});},module[a1170_0xa1072f(0x1c4)]={'up':function(_0x42ac44){return new Promise(function(_0x213c3d){const _0x1b0782=a1170_0x1d6d,_0x29ac84=new Migration(_0x42ac44);_0x29ac84[_0x1b0782(0x1d8)](_0x213c3d);});},'down':function(){}}; \ No newline at end of file +const a1170_0x2665=['addIndex','tail','sequence','indexName','exports','util','../config/logger','dropTable','Removed\x20column\x20%s\x20from\x20%s','info','prototype','indicesType','addIndex\x20%s\x20%s\x20%s\x20[%s]','Added\x20column\x20%s\x20to\x20%s','renameColumn','query','finally','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','inspect','removeColumn','queryInterface','final','changeColumn','join','stringify','sequelize','then','query\x20%s','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn'];(function(_0x32f8ed,_0x147fcb){const _0x2665ce=function(_0x4a0f01){while(--_0x4a0f01){_0x32f8ed['push'](_0x32f8ed['shift']());}};_0x2665ce(++_0x147fcb);}(a1170_0x2665,0x18c));const a1170_0x4a0f=function(_0x32f8ed,_0x147fcb){_0x32f8ed=_0x32f8ed-0xb5;let _0x2665ce=a1170_0x2665[_0x32f8ed];return _0x2665ce;};const a1170_0x21d920=a1170_0x4a0f;'use strict';const util=require(a1170_0x21d920(0xba)),logger=require(a1170_0x21d920(0xbb))('migration'),Sequence=function(){};Sequence[a1170_0x21d920(0xbf)]['enqueue']=function(_0x3f246e){const _0x3a633e=a1170_0x21d920;this['tail']=this['tail']?this[_0x3a633e(0xb6)][_0x3a633e(0xc5)](_0x3f246e):_0x3f246e();};const Migration=function(_0x2d457b){const _0x69ed26=a1170_0x21d920;this[_0x69ed26(0xcb)]=_0x2d457b,this['sequence']=new Sequence();};Migration[a1170_0x21d920(0xbf)][a1170_0x21d920(0xcd)]=function(_0x3a47d8,_0x51b8c2,_0x16285a){const _0x749923=a1170_0x21d920,_0x2cf5f1=this;this['sequence'][_0x749923(0xc8)](function(){const _0x1a7f23=_0x749923;return _0x2cf5f1['queryInterface'][_0x1a7f23(0xcd)](_0x3a47d8,_0x51b8c2,_0x16285a)[_0x1a7f23(0xd1)](function(){const _0x3a9081=_0x1a7f23;logger[_0x3a9081(0xbe)](_0x3a9081(0xc7),_0x51b8c2,_0x3a47d8);})['catch'](function(_0x3d05a8){const _0x55bbc4=_0x1a7f23;logger['info'](JSON[_0x55bbc4(0xcf)](_0x3d05a8));});});},Migration[a1170_0x21d920(0xbf)][a1170_0x21d920(0xd5)]=function(_0x3f71dc,_0x10ca71,_0xdaf0fc){const _0x300eff=a1170_0x21d920,_0x5c0666=this;this[_0x300eff(0xb7)][_0x300eff(0xc8)](function(){const _0x360f84=_0x300eff;return _0x5c0666['queryInterface'][_0x360f84(0xd5)](_0x3f71dc,_0x10ca71,_0xdaf0fc)['then'](function(){const _0x227922=_0x360f84;logger[_0x227922(0xbe)](_0x227922(0xc2),_0x10ca71,_0x3f71dc);})[_0x360f84(0xc6)](function(_0x3b6113){const _0x503709=_0x360f84;logger['info'](JSON[_0x503709(0xcf)](_0x3b6113));});});},Migration['prototype']['dropTable']=function(_0x3d418b){const _0x5e5e6=a1170_0x21d920,_0x311418=this;this[_0x5e5e6(0xb7)]['enqueue'](function(){const _0x343283=_0x5e5e6;return _0x311418[_0x343283(0xcb)][_0x343283(0xbc)](_0x3d418b,{'force':!![]})[_0x343283(0xd1)](function(){const _0x5954df=_0x343283;logger[_0x5954df(0xbe)]('table\x20dropped\x20%s',_0x3d418b);})[_0x343283(0xc6)](function(_0x36dc8e){const _0xe5e565=_0x343283;logger[_0xe5e565(0xbe)](JSON[_0xe5e565(0xcf)](_0x36dc8e));});});},Migration[a1170_0x21d920(0xbf)][a1170_0x21d920(0xb5)]=function(_0x44d17d,_0x59a639,_0x32c638){const _0x4af206=a1170_0x21d920,_0x17944e=this;this['sequence'][_0x4af206(0xc8)](function(){const _0x49bfd6=_0x4af206;return _0x17944e[_0x49bfd6(0xcb)]['addIndex'](_0x44d17d,_0x59a639,{'indexName':_0x32c638[_0x49bfd6(0xb8)],'indicesType':_0x32c638[_0x49bfd6(0xc0)]})[_0x49bfd6(0xd1)](function(){const _0xe1c060=_0x49bfd6;logger[_0xe1c060(0xbe)](_0xe1c060(0xc1),_0x44d17d,_0x59a639[_0xe1c060(0xce)](','),_0x32c638[_0xe1c060(0xb8)],_0x32c638['indicesType']);})[_0x49bfd6(0xc6)](function(_0x4446c7){const _0x23bcb4=_0x49bfd6;logger['info'](JSON[_0x23bcb4(0xcf)](_0x4446c7));});});},Migration['prototype'][a1170_0x21d920(0xd3)]=function(_0x191cd4,_0x36b4c9){const _0x1836cc=a1170_0x21d920,_0x100036=this;this[_0x1836cc(0xb7)][_0x1836cc(0xc8)](function(){const _0x5bd7db=_0x1836cc;return _0x100036[_0x5bd7db(0xcb)][_0x5bd7db(0xd3)](_0x191cd4,_0x36b4c9)['then'](function(){const _0xf727ee=_0x5bd7db;logger[_0xf727ee(0xbe)]('removeIndex\x20%s\x20%s',_0x191cd4,_0x36b4c9);})[_0x5bd7db(0xc6)](function(_0x1e604c){const _0x2d5977=_0x5bd7db;logger[_0x2d5977(0xbe)](JSON[_0x2d5977(0xcf)](_0x1e604c));});});},Migration[a1170_0x21d920(0xbf)][a1170_0x21d920(0xc4)]=function(_0x3e6161){const _0x205b22=a1170_0x21d920,_0x18c86b=this;this[_0x205b22(0xb7)][_0x205b22(0xc8)](function(){const _0x2bee4f=_0x205b22;return _0x18c86b[_0x2bee4f(0xcb)][_0x2bee4f(0xd0)][_0x2bee4f(0xc4)](_0x3e6161)['then'](function(){const _0x130077=_0x2bee4f;logger[_0x130077(0xbe)](_0x130077(0xd2),_0x3e6161);})['catch'](function(_0x776dea){const _0x286be8=_0x2bee4f;logger[_0x286be8(0xbe)](JSON[_0x286be8(0xcf)](_0x776dea));});});},Migration[a1170_0x21d920(0xbf)]['removeColumn']=function(_0x21c13d,_0x376546){const _0x420807=a1170_0x21d920,_0x445bdd=this;this['sequence'][_0x420807(0xc8)](function(){const _0x1a3908=_0x420807;return _0x445bdd[_0x1a3908(0xcb)][_0x1a3908(0xca)](_0x21c13d,_0x376546)[_0x1a3908(0xd1)](function(){const _0x5e4cff=_0x1a3908;logger[_0x5e4cff(0xbe)](_0x5e4cff(0xbd),_0x376546,_0x21c13d);})[_0x1a3908(0xc6)](function(_0x315749){const _0x24260b=_0x1a3908;logger[_0x24260b(0xbe)](util[_0x24260b(0xc9)](_0x315749,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1170_0x21d920(0xc3)]=function(_0x4acaf0,_0x928a36,_0x326755){const _0x30b072=a1170_0x21d920,_0x3ebfe1=this;this[_0x30b072(0xb7)][_0x30b072(0xc8)](function(){const _0x356976=_0x30b072;return _0x3ebfe1[_0x356976(0xcb)][_0x356976(0xc3)](_0x4acaf0,_0x928a36,_0x326755)[_0x356976(0xd1)](function(){const _0x25f519=_0x356976;logger['info'](_0x25f519(0xd4),_0x928a36,_0x326755,_0x4acaf0);})[_0x356976(0xc6)](function(_0x742e7c){const _0x4ed7a7=_0x356976;logger[_0x4ed7a7(0xbe)](util[_0x4ed7a7(0xc9)](_0x742e7c,{'showHidden':![],'depth':null}));});});},Migration[a1170_0x21d920(0xbf)][a1170_0x21d920(0xcc)]=function(_0x249158){const _0x439c64=a1170_0x21d920;this[_0x439c64(0xb7)]['enqueue'](function(){return _0x249158();});},module[a1170_0x21d920(0xb9)]={'up':function(_0x2fd9cd){return new Promise(function(_0x115f1d){const _0x17761b=a1170_0x4a0f,_0x202e59=new Migration(_0x2fd9cd);_0x202e59[_0x17761b(0xcc)](_0x115f1d);});},'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 6c768ea..b2f3d81 100644 --- a/server/migrations/2.4.4.js +++ b/server/migrations/2.4.4.js @@ -1 +1 @@ -const a1171_0x4aa6=['addColumn','refreshToken','tail','info','renameColumn','prototype','queryInterface','finally','sequence','migration','then','removeIndex','zone','STRING','clientId','catch','indexName','final','changeColumn','inspect','dropTable','Removed\x20column\x20%s\x20from\x20%s','addIndex','removeColumn','util','stringify','sequelize','query\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','../config/logger','join','query','indicesType','exports','enqueue','int_zoho_accounts','authToken','code','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x169659,_0x15f39b){const _0x4aa6e0=function(_0x332327){while(--_0x332327){_0x169659['push'](_0x169659['shift']());}};_0x4aa6e0(++_0x15f39b);}(a1171_0x4aa6,0x81));const a1171_0x3323=function(_0x169659,_0x15f39b){_0x169659=_0x169659-0x112;let _0x4aa6e0=a1171_0x4aa6[_0x169659];return _0x4aa6e0;};const a1171_0x5511cb=a1171_0x3323;'use strict';const util=require(a1171_0x5511cb(0x11e)),logger=require(a1171_0x5511cb(0x123))(a1171_0x5511cb(0x136)),Sequence=function(){};Sequence[a1171_0x5511cb(0x132)][a1171_0x5511cb(0x128)]=function(_0x3cf951){const _0x51cf29=a1171_0x5511cb;this[_0x51cf29(0x12f)]=this['tail']?this[_0x51cf29(0x12f)][_0x51cf29(0x134)](_0x3cf951):_0x3cf951();};const Migration=function(_0x4dc61b){const _0x2b6151=a1171_0x5511cb;this[_0x2b6151(0x133)]=_0x4dc61b,this['sequence']=new Sequence();};Migration[a1171_0x5511cb(0x132)][a1171_0x5511cb(0x118)]=function(_0x1a4bb0,_0x363ae7,_0x59d4f4){const _0x178722=a1171_0x5511cb,_0x5a4ca8=this;this[_0x178722(0x135)][_0x178722(0x128)](function(){const _0x234826=_0x178722;return _0x5a4ca8[_0x234826(0x133)]['changeColumn'](_0x1a4bb0,_0x363ae7,_0x59d4f4)[_0x234826(0x137)](function(){const _0x141b18=_0x234826;logger[_0x141b18(0x130)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x363ae7,_0x1a4bb0);})[_0x234826(0x115)](function(_0x110b5f){const _0x4b9e29=_0x234826;logger[_0x4b9e29(0x130)](JSON[_0x4b9e29(0x11f)](_0x110b5f));});});},Migration[a1171_0x5511cb(0x132)]['addColumn']=function(_0x455241,_0x71dea4,_0x1b0148){const _0x57bcd8=a1171_0x5511cb,_0x373963=this;this[_0x57bcd8(0x135)][_0x57bcd8(0x128)](function(){const _0x46c51a=_0x57bcd8;return _0x373963[_0x46c51a(0x133)][_0x46c51a(0x12d)](_0x455241,_0x71dea4,_0x1b0148)[_0x46c51a(0x137)](function(){const _0x10fabf=_0x46c51a;logger[_0x10fabf(0x130)]('Added\x20column\x20%s\x20to\x20%s',_0x71dea4,_0x455241);})[_0x46c51a(0x115)](function(_0x599dd4){const _0x528113=_0x46c51a;logger[_0x528113(0x130)](JSON[_0x528113(0x11f)](_0x599dd4));});});},Migration[a1171_0x5511cb(0x132)]['dropTable']=function(_0x5c57e5){const _0x5ded26=a1171_0x5511cb,_0x5cc46f=this;this['sequence'][_0x5ded26(0x128)](function(){const _0x34e4f4=_0x5ded26;return _0x5cc46f[_0x34e4f4(0x133)][_0x34e4f4(0x11a)](_0x5c57e5,{'force':!![]})[_0x34e4f4(0x137)](function(){const _0x278ff3=_0x34e4f4;logger[_0x278ff3(0x130)]('table\x20dropped\x20%s',_0x5c57e5);})[_0x34e4f4(0x115)](function(_0x5a4b9c){const _0x1162c4=_0x34e4f4;logger[_0x1162c4(0x130)](JSON[_0x1162c4(0x11f)](_0x5a4b9c));});});},Migration[a1171_0x5511cb(0x132)][a1171_0x5511cb(0x11c)]=function(_0x2d4d5f,_0x5a3b9a,_0x3ec5ce){const _0x23fc3c=a1171_0x5511cb,_0x46d716=this;this['sequence'][_0x23fc3c(0x128)](function(){const _0x9b5ca3=_0x23fc3c;return _0x46d716[_0x9b5ca3(0x133)][_0x9b5ca3(0x11c)](_0x2d4d5f,_0x5a3b9a,{'indexName':_0x3ec5ce['indexName'],'indicesType':_0x3ec5ce[_0x9b5ca3(0x126)]})[_0x9b5ca3(0x137)](function(){const _0x494778=_0x9b5ca3;logger['info'](_0x494778(0x122),_0x2d4d5f,_0x5a3b9a[_0x494778(0x124)](','),_0x3ec5ce[_0x494778(0x116)],_0x3ec5ce[_0x494778(0x126)]);})[_0x9b5ca3(0x115)](function(_0x300174){const _0x516a51=_0x9b5ca3;logger[_0x516a51(0x130)](JSON[_0x516a51(0x11f)](_0x300174));});});},Migration['prototype']['removeIndex']=function(_0x402335,_0x3b961a){const _0xa1b142=a1171_0x5511cb,_0x58079d=this;this[_0xa1b142(0x135)][_0xa1b142(0x128)](function(){const _0x5d284b=_0xa1b142;return _0x58079d[_0x5d284b(0x133)][_0x5d284b(0x138)](_0x402335,_0x3b961a)[_0x5d284b(0x137)](function(){const _0x4e2a84=_0x5d284b;logger[_0x4e2a84(0x130)]('removeIndex\x20%s\x20%s',_0x402335,_0x3b961a);})[_0x5d284b(0x115)](function(_0x1d1288){const _0x242898=_0x5d284b;logger[_0x242898(0x130)](JSON[_0x242898(0x11f)](_0x1d1288));});});},Migration['prototype'][a1171_0x5511cb(0x125)]=function(_0x59c9fb){const _0x400897=a1171_0x5511cb,_0x189def=this;this[_0x400897(0x135)][_0x400897(0x128)](function(){const _0x21e1c0=_0x400897;return _0x189def[_0x21e1c0(0x133)][_0x21e1c0(0x120)][_0x21e1c0(0x125)](_0x59c9fb)[_0x21e1c0(0x137)](function(){const _0x33425a=_0x21e1c0;logger[_0x33425a(0x130)](_0x33425a(0x121),_0x59c9fb);})[_0x21e1c0(0x115)](function(_0xdb1bea){const _0x42cd88=_0x21e1c0;logger[_0x42cd88(0x130)](JSON[_0x42cd88(0x11f)](_0xdb1bea));});});},Migration[a1171_0x5511cb(0x132)][a1171_0x5511cb(0x11d)]=function(_0x3f9348,_0x266ba6){const _0x653d5d=a1171_0x5511cb,_0x700cf1=this;this['sequence'][_0x653d5d(0x128)](function(){const _0x4b1441=_0x653d5d;return _0x700cf1[_0x4b1441(0x133)][_0x4b1441(0x11d)](_0x3f9348,_0x266ba6)[_0x4b1441(0x137)](function(){const _0x516eb1=_0x4b1441;logger[_0x516eb1(0x130)](_0x516eb1(0x11b),_0x266ba6,_0x3f9348);})[_0x4b1441(0x115)](function(_0x124180){const _0x4dd678=_0x4b1441;logger[_0x4dd678(0x130)](util[_0x4dd678(0x119)](_0x124180,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1171_0x5511cb(0x131)]=function(_0x1ef772,_0x2c1c03,_0x2f4968){const _0x234250=a1171_0x5511cb,_0x25d735=this;this[_0x234250(0x135)][_0x234250(0x128)](function(){const _0x192ad4=_0x234250;return _0x25d735['queryInterface']['renameColumn'](_0x1ef772,_0x2c1c03,_0x2f4968)[_0x192ad4(0x137)](function(){const _0x198442=_0x192ad4;logger[_0x198442(0x130)](_0x198442(0x12c),_0x2c1c03,_0x2f4968,_0x1ef772);})[_0x192ad4(0x115)](function(_0x122a7d){const _0x271e5d=_0x192ad4;logger[_0x271e5d(0x130)](util[_0x271e5d(0x119)](_0x122a7d,{'showHidden':![],'depth':null}));});});},Migration[a1171_0x5511cb(0x132)][a1171_0x5511cb(0x117)]=function(_0x538c95){const _0x26f1bc=a1171_0x5511cb;this[_0x26f1bc(0x135)][_0x26f1bc(0x128)](function(){return _0x538c95();});},module[a1171_0x5511cb(0x127)]={'up':function(_0x1e7c87,_0xe59209){return new Promise(function(_0x3ce3cc){const _0x25f0de=a1171_0x3323,_0x2c696b=new Migration(_0x1e7c87);_0x2c696b[_0x25f0de(0x11d)](_0x25f0de(0x129),_0x25f0de(0x12a)),_0x2c696b[_0x25f0de(0x12d)](_0x25f0de(0x129),_0x25f0de(0x112),{'type':_0xe59209[_0x25f0de(0x113)],'defaultValue':'EU'}),_0x2c696b[_0x25f0de(0x12d)]('int_zoho_accounts',_0x25f0de(0x114),{'type':_0xe59209[_0x25f0de(0x113)]}),_0x2c696b[_0x25f0de(0x12d)]('int_zoho_accounts','clientSecret',{'type':_0xe59209[_0x25f0de(0x113)]}),_0x2c696b[_0x25f0de(0x12d)](_0x25f0de(0x129),_0x25f0de(0x12b),{'type':_0xe59209[_0x25f0de(0x113)]}),_0x2c696b[_0x25f0de(0x12d)](_0x25f0de(0x129),_0x25f0de(0x12e),{'type':_0xe59209[_0x25f0de(0x113)]}),_0x2c696b[_0x25f0de(0x117)](_0x3ce3cc);});},'down':function(){}}; \ No newline at end of file +const a1171_0xc76a=['indexName','addColumn','tail','../config/logger','renameColumn','then','prototype','Added\x20column\x20%s\x20to\x20%s','catch','inspect','stringify','removeIndex','removeIndex\x20%s\x20%s','final','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','removeColumn','queryInterface','int_zoho_accounts','table\x20dropped\x20%s','addIndex','enqueue','sequence','clientSecret','authToken','indicesType','util','STRING','changeColumn','Removed\x20column\x20%s\x20from\x20%s','refreshToken','info','query'];(function(_0x49bfd3,_0x18a32d){const _0xc76afc=function(_0x336154){while(--_0x336154){_0x49bfd3['push'](_0x49bfd3['shift']());}};_0xc76afc(++_0x18a32d);}(a1171_0xc76a,0x183));const a1171_0x3361=function(_0x49bfd3,_0x18a32d){_0x49bfd3=_0x49bfd3-0x12c;let _0xc76afc=a1171_0xc76a[_0x49bfd3];return _0xc76afc;};const a1171_0x4d844c=a1171_0x3361;'use strict';const util=require(a1171_0x4d844c(0x13a)),logger=require(a1171_0x4d844c(0x144))('migration'),Sequence=function(){};Sequence[a1171_0x4d844c(0x147)][a1171_0x4d844c(0x135)]=function(_0x3a764f){const _0x3176b4=a1171_0x4d844c;this['tail']=this['tail']?this[_0x3176b4(0x143)]['finally'](_0x3a764f):_0x3a764f();};const Migration=function(_0x46c180){const _0x306f4a=a1171_0x4d844c;this[_0x306f4a(0x131)]=_0x46c180,this['sequence']=new Sequence();};Migration[a1171_0x4d844c(0x147)][a1171_0x4d844c(0x13c)]=function(_0x180954,_0x50808c,_0x3873b0){const _0x30c3b8=a1171_0x4d844c,_0x4436bd=this;this['sequence'][_0x30c3b8(0x135)](function(){const _0x4e2595=_0x30c3b8;return _0x4436bd[_0x4e2595(0x131)]['changeColumn'](_0x180954,_0x50808c,_0x3873b0)[_0x4e2595(0x146)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x50808c,_0x180954);})['catch'](function(_0x340003){const _0x2b30b9=_0x4e2595;logger[_0x2b30b9(0x13f)](JSON[_0x2b30b9(0x14b)](_0x340003));});});},Migration[a1171_0x4d844c(0x147)][a1171_0x4d844c(0x142)]=function(_0x3f83d8,_0x2c7aee,_0x7aaff0){const _0x17039a=a1171_0x4d844c,_0xb102a2=this;this[_0x17039a(0x136)][_0x17039a(0x135)](function(){const _0x3c0ec0=_0x17039a;return _0xb102a2[_0x3c0ec0(0x131)][_0x3c0ec0(0x142)](_0x3f83d8,_0x2c7aee,_0x7aaff0)[_0x3c0ec0(0x146)](function(){const _0x235aa6=_0x3c0ec0;logger['info'](_0x235aa6(0x148),_0x2c7aee,_0x3f83d8);})[_0x3c0ec0(0x149)](function(_0x510ccf){const _0x40fefe=_0x3c0ec0;logger[_0x40fefe(0x13f)](JSON[_0x40fefe(0x14b)](_0x510ccf));});});},Migration[a1171_0x4d844c(0x147)][a1171_0x4d844c(0x12d)]=function(_0x4bcf08){const _0x3c2aec=a1171_0x4d844c,_0x5484d9=this;this[_0x3c2aec(0x136)][_0x3c2aec(0x135)](function(){const _0x55141d=_0x3c2aec;return _0x5484d9[_0x55141d(0x131)]['dropTable'](_0x4bcf08,{'force':!![]})[_0x55141d(0x146)](function(){const _0xcf4cc5=_0x55141d;logger[_0xcf4cc5(0x13f)](_0xcf4cc5(0x133),_0x4bcf08);})[_0x55141d(0x149)](function(_0x30d799){const _0x4614b9=_0x55141d;logger[_0x4614b9(0x13f)](JSON[_0x4614b9(0x14b)](_0x30d799));});});},Migration[a1171_0x4d844c(0x147)][a1171_0x4d844c(0x134)]=function(_0x211c4f,_0x2b2f99,_0x581d30){const _0x310a22=a1171_0x4d844c,_0x47a5e1=this;this[_0x310a22(0x136)][_0x310a22(0x135)](function(){const _0x2b7545=_0x310a22;return _0x47a5e1[_0x2b7545(0x131)][_0x2b7545(0x134)](_0x211c4f,_0x2b2f99,{'indexName':_0x581d30[_0x2b7545(0x141)],'indicesType':_0x581d30[_0x2b7545(0x139)]})['then'](function(){const _0x23b818=_0x2b7545;logger[_0x23b818(0x13f)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x211c4f,_0x2b2f99[_0x23b818(0x12f)](','),_0x581d30[_0x23b818(0x141)],_0x581d30[_0x23b818(0x139)]);})[_0x2b7545(0x149)](function(_0x3bf7d9){const _0x3b08ab=_0x2b7545;logger['info'](JSON[_0x3b08ab(0x14b)](_0x3bf7d9));});});},Migration[a1171_0x4d844c(0x147)][a1171_0x4d844c(0x14c)]=function(_0x4f56cb,_0x2d43fa){const _0x5121fa=a1171_0x4d844c,_0x3ab6d7=this;this[_0x5121fa(0x136)][_0x5121fa(0x135)](function(){const _0x63a167=_0x5121fa;return _0x3ab6d7[_0x63a167(0x131)]['removeIndex'](_0x4f56cb,_0x2d43fa)['then'](function(){const _0x3b30ce=_0x63a167;logger['info'](_0x3b30ce(0x14d),_0x4f56cb,_0x2d43fa);})[_0x63a167(0x149)](function(_0x6a29de){logger['info'](JSON['stringify'](_0x6a29de));});});},Migration[a1171_0x4d844c(0x147)][a1171_0x4d844c(0x140)]=function(_0x154ba5){const _0x124e75=a1171_0x4d844c,_0x26a5c7=this;this[_0x124e75(0x136)]['enqueue'](function(){const _0x2e156a=_0x124e75;return _0x26a5c7[_0x2e156a(0x131)]['sequelize']['query'](_0x154ba5)[_0x2e156a(0x146)](function(){const _0x2e3caa=_0x2e156a;logger[_0x2e3caa(0x13f)]('query\x20%s',_0x154ba5);})[_0x2e156a(0x149)](function(_0x52986f){const _0x3c9e31=_0x2e156a;logger[_0x3c9e31(0x13f)](JSON[_0x3c9e31(0x14b)](_0x52986f));});});},Migration['prototype'][a1171_0x4d844c(0x130)]=function(_0x4e4d25,_0x353336){const _0x362865=a1171_0x4d844c,_0x55a7d2=this;this[_0x362865(0x136)]['enqueue'](function(){const _0x24e44c=_0x362865;return _0x55a7d2['queryInterface'][_0x24e44c(0x130)](_0x4e4d25,_0x353336)[_0x24e44c(0x146)](function(){const _0x1a9980=_0x24e44c;logger[_0x1a9980(0x13f)](_0x1a9980(0x13d),_0x353336,_0x4e4d25);})['catch'](function(_0x2b7e4e){const _0xf83f89=_0x24e44c;logger['info'](util[_0xf83f89(0x14a)](_0x2b7e4e,{'showHidden':![],'depth':null}));});});},Migration[a1171_0x4d844c(0x147)]['renameColumn']=function(_0x5456c7,_0x2941f3,_0x2c85c4){const _0x5afd80=a1171_0x4d844c,_0x4f9342=this;this[_0x5afd80(0x136)]['enqueue'](function(){const _0x26a6e6=_0x5afd80;return _0x4f9342[_0x26a6e6(0x131)][_0x26a6e6(0x145)](_0x5456c7,_0x2941f3,_0x2c85c4)[_0x26a6e6(0x146)](function(){const _0x32f533=_0x26a6e6;logger[_0x32f533(0x13f)](_0x32f533(0x12e),_0x2941f3,_0x2c85c4,_0x5456c7);})[_0x26a6e6(0x149)](function(_0x16df83){const _0x310140=_0x26a6e6;logger[_0x310140(0x13f)](util['inspect'](_0x16df83,{'showHidden':![],'depth':null}));});});},Migration[a1171_0x4d844c(0x147)][a1171_0x4d844c(0x12c)]=function(_0x5ac3bb){const _0x64c1ad=a1171_0x4d844c;this[_0x64c1ad(0x136)]['enqueue'](function(){return _0x5ac3bb();});},module['exports']={'up':function(_0x332adb,_0x1c7aa9){return new Promise(function(_0x4068c5){const _0x1eafc2=a1171_0x3361,_0x7cccf5=new Migration(_0x332adb);_0x7cccf5[_0x1eafc2(0x130)](_0x1eafc2(0x132),_0x1eafc2(0x138)),_0x7cccf5[_0x1eafc2(0x142)](_0x1eafc2(0x132),'zone',{'type':_0x1c7aa9['STRING'],'defaultValue':'EU'}),_0x7cccf5[_0x1eafc2(0x142)]('int_zoho_accounts','clientId',{'type':_0x1c7aa9[_0x1eafc2(0x13b)]}),_0x7cccf5['addColumn'](_0x1eafc2(0x132),_0x1eafc2(0x137),{'type':_0x1c7aa9[_0x1eafc2(0x13b)]}),_0x7cccf5['addColumn'](_0x1eafc2(0x132),'code',{'type':_0x1c7aa9[_0x1eafc2(0x13b)]}),_0x7cccf5[_0x1eafc2(0x142)]('int_zoho_accounts',_0x1eafc2(0x13e),{'type':_0x1c7aa9[_0x1eafc2(0x13b)]}),_0x7cccf5['final'](_0x4068c5);});},'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 8e0a305..a151ef2 100644 --- a/server/migrations/2.4.5.js +++ b/server/migrations/2.4.5.js @@ -1 +1 @@ -const a1172_0xa532=['prototype','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','stringify','indexName','changeColumn','info','addColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','final','finally','tail','then','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','dropTable','indicesType','join','queryInterface','../config/logger','Removed\x20column\x20%s\x20from\x20%s','query','inspect','enqueue','migration','Added\x20column\x20%s\x20to\x20%s','removeColumn','catch','renameColumn','exports'];(function(_0x545908,_0x56edb9){const _0xa532d0=function(_0x4cb3b7){while(--_0x4cb3b7){_0x545908['push'](_0x545908['shift']());}};_0xa532d0(++_0x56edb9);}(a1172_0xa532,0x98));const a1172_0x4cb3=function(_0x545908,_0x56edb9){_0x545908=_0x545908-0x69;let _0xa532d0=a1172_0xa532[_0x545908];return _0xa532d0;};const a1172_0x7e2c57=a1172_0x4cb3;'use strict';const util=require('util'),logger=require(a1172_0x7e2c57(0x80))(a1172_0x7e2c57(0x85)),Sequence=function(){};Sequence['prototype'][a1172_0x7e2c57(0x84)]=function(_0x2e5b54){const _0x475d4c=a1172_0x7e2c57;this[_0x475d4c(0x78)]=this[_0x475d4c(0x78)]?this[_0x475d4c(0x78)][_0x475d4c(0x77)](_0x2e5b54):_0x2e5b54();};const Migration=function(_0x159d03){const _0x5f2bb6=a1172_0x7e2c57;this[_0x5f2bb6(0x7f)]=_0x159d03,this[_0x5f2bb6(0x6d)]=new Sequence();};Migration[a1172_0x7e2c57(0x6c)][a1172_0x7e2c57(0x72)]=function(_0x44b6be,_0x56d129,_0xc3ab04){const _0x21fa54=a1172_0x7e2c57,_0x2f4dd2=this;this[_0x21fa54(0x6d)][_0x21fa54(0x84)](function(){const _0xf15f93=_0x21fa54;return _0x2f4dd2[_0xf15f93(0x7f)][_0xf15f93(0x72)](_0x44b6be,_0x56d129,_0xc3ab04)[_0xf15f93(0x79)](function(){const _0x14a3e2=_0xf15f93;logger['info'](_0x14a3e2(0x7a),_0x56d129,_0x44b6be);})[_0xf15f93(0x69)](function(_0x127ccb){const _0x3dba70=_0xf15f93;logger[_0x3dba70(0x73)](JSON[_0x3dba70(0x70)](_0x127ccb));});});},Migration[a1172_0x7e2c57(0x6c)][a1172_0x7e2c57(0x74)]=function(_0x433d0f,_0x180547,_0x1ca075){const _0x3a4313=a1172_0x7e2c57,_0x27997d=this;this[_0x3a4313(0x6d)][_0x3a4313(0x84)](function(){const _0xf29f97=_0x3a4313;return _0x27997d[_0xf29f97(0x7f)][_0xf29f97(0x74)](_0x433d0f,_0x180547,_0x1ca075)[_0xf29f97(0x79)](function(){const _0x24ecb9=_0xf29f97;logger[_0x24ecb9(0x73)](_0x24ecb9(0x86),_0x180547,_0x433d0f);})[_0xf29f97(0x69)](function(_0x405d33){const _0xf5b52b=_0xf29f97;logger[_0xf5b52b(0x73)](JSON['stringify'](_0x405d33));});});},Migration[a1172_0x7e2c57(0x6c)][a1172_0x7e2c57(0x7c)]=function(_0x192b7b){const _0x4a19da=a1172_0x7e2c57,_0x268ff7=this;this[_0x4a19da(0x6d)][_0x4a19da(0x84)](function(){const _0x4f80dc=_0x4a19da;return _0x268ff7[_0x4f80dc(0x7f)][_0x4f80dc(0x7c)](_0x192b7b,{'force':!![]})[_0x4f80dc(0x79)](function(){const _0x8dfadf=_0x4f80dc;logger[_0x8dfadf(0x73)](_0x8dfadf(0x6f),_0x192b7b);})['catch'](function(_0x3a8aed){const _0x1327ec=_0x4f80dc;logger[_0x1327ec(0x73)](JSON[_0x1327ec(0x70)](_0x3a8aed));});});},Migration[a1172_0x7e2c57(0x6c)][a1172_0x7e2c57(0x7b)]=function(_0x52bf1d,_0x1fce6d,_0xd7571a){const _0x1e33cf=a1172_0x7e2c57,_0x2f61b2=this;this[_0x1e33cf(0x6d)][_0x1e33cf(0x84)](function(){const _0x28484d=_0x1e33cf;return _0x2f61b2[_0x28484d(0x7f)][_0x28484d(0x7b)](_0x52bf1d,_0x1fce6d,{'indexName':_0xd7571a[_0x28484d(0x71)],'indicesType':_0xd7571a['indicesType']})[_0x28484d(0x79)](function(){const _0xc6e993=_0x28484d;logger[_0xc6e993(0x73)](_0xc6e993(0x75),_0x52bf1d,_0x1fce6d[_0xc6e993(0x7e)](','),_0xd7571a[_0xc6e993(0x71)],_0xd7571a[_0xc6e993(0x7d)]);})[_0x28484d(0x69)](function(_0x1a316a){const _0x25389c=_0x28484d;logger[_0x25389c(0x73)](JSON[_0x25389c(0x70)](_0x1a316a));});});},Migration[a1172_0x7e2c57(0x6c)]['removeIndex']=function(_0x443159,_0xb0d28d){const _0x40f5d2=a1172_0x7e2c57,_0x159233=this;this[_0x40f5d2(0x6d)][_0x40f5d2(0x84)](function(){const _0x340164=_0x40f5d2;return _0x159233[_0x340164(0x7f)]['removeIndex'](_0x443159,_0xb0d28d)[_0x340164(0x79)](function(){const _0x4055b8=_0x340164;logger[_0x4055b8(0x73)]('removeIndex\x20%s\x20%s',_0x443159,_0xb0d28d);})[_0x340164(0x69)](function(_0xf7313e){const _0x27252b=_0x340164;logger[_0x27252b(0x73)](JSON['stringify'](_0xf7313e));});});},Migration[a1172_0x7e2c57(0x6c)][a1172_0x7e2c57(0x82)]=function(_0x43f65d){const _0x211204=a1172_0x7e2c57,_0x5ae03e=this;this[_0x211204(0x6d)][_0x211204(0x84)](function(){const _0x29dbed=_0x211204;return _0x5ae03e[_0x29dbed(0x7f)]['sequelize'][_0x29dbed(0x82)](_0x43f65d)['then'](function(){const _0x9083ce=_0x29dbed;logger[_0x9083ce(0x73)]('query\x20%s',_0x43f65d);})['catch'](function(_0x58ad96){const _0x58de04=_0x29dbed;logger[_0x58de04(0x73)](JSON['stringify'](_0x58ad96));});});},Migration[a1172_0x7e2c57(0x6c)][a1172_0x7e2c57(0x87)]=function(_0x292240,_0x4df79a){const _0x56016f=a1172_0x7e2c57,_0x4bab28=this;this[_0x56016f(0x6d)][_0x56016f(0x84)](function(){const _0x156d85=_0x56016f;return _0x4bab28[_0x156d85(0x7f)][_0x156d85(0x87)](_0x292240,_0x4df79a)[_0x156d85(0x79)](function(){const _0x370d65=_0x156d85;logger[_0x370d65(0x73)](_0x370d65(0x81),_0x4df79a,_0x292240);})['catch'](function(_0xf3d631){const _0x5c7efe=_0x156d85;logger[_0x5c7efe(0x73)](util[_0x5c7efe(0x83)](_0xf3d631,{'showHidden':![],'depth':null}));});});},Migration[a1172_0x7e2c57(0x6c)][a1172_0x7e2c57(0x6a)]=function(_0xf13620,_0xa8a9e9,_0x61e778){const _0x32777c=a1172_0x7e2c57,_0x592e17=this;this[_0x32777c(0x6d)]['enqueue'](function(){const _0x48c9e8=_0x32777c;return _0x592e17[_0x48c9e8(0x7f)][_0x48c9e8(0x6a)](_0xf13620,_0xa8a9e9,_0x61e778)[_0x48c9e8(0x79)](function(){const _0x229670=_0x48c9e8;logger[_0x229670(0x73)](_0x229670(0x6e),_0xa8a9e9,_0x61e778,_0xf13620);})[_0x48c9e8(0x69)](function(_0x36742e){const _0x26f419=_0x48c9e8;logger[_0x26f419(0x73)](util[_0x26f419(0x83)](_0x36742e,{'showHidden':![],'depth':null}));});});},Migration[a1172_0x7e2c57(0x6c)]['final']=function(_0x232539){const _0x5f5a1f=a1172_0x7e2c57;this[_0x5f5a1f(0x6d)][_0x5f5a1f(0x84)](function(){return _0x232539();});},module[a1172_0x7e2c57(0x6b)]={'up':function(_0x2ffe00){return new Promise(function(_0x4d29c6){const _0x3afd73=a1172_0x4cb3,_0x54038b=new Migration(_0x2ffe00);_0x54038b[_0x3afd73(0x76)](_0x4d29c6);});},'down':function(){}}; \ No newline at end of file +const a1172_0x373b=['catch','table\x20dropped\x20%s','inspect','changeColumn','indicesType','final','join','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','renameColumn','Removed\x20column\x20%s\x20from\x20%s','removeColumn','removeIndex','prototype','addIndex','finally','addColumn','stringify','query','addIndex\x20%s\x20%s\x20%s\x20[%s]','tail','../config/logger','then','enqueue','indexName','queryInterface','dropTable','info'];(function(_0x9e7629,_0x3399b5){const _0x373bf4=function(_0x2631ab){while(--_0x2631ab){_0x9e7629['push'](_0x9e7629['shift']());}};_0x373bf4(++_0x3399b5);}(a1172_0x373b,0x1d9));const a1172_0x2631=function(_0x9e7629,_0x3399b5){_0x9e7629=_0x9e7629-0x8f;let _0x373bf4=a1172_0x373b[_0x9e7629];return _0x373bf4;};const a1172_0x321fc1=a1172_0x2631;'use strict';const util=require('util'),logger=require(a1172_0x321fc1(0x8f))('migration'),Sequence=function(){};Sequence[a1172_0x321fc1(0xa5)]['enqueue']=function(_0x733898){const _0x38ff24=a1172_0x321fc1;this['tail']=this[_0x38ff24(0xac)]?this[_0x38ff24(0xac)][_0x38ff24(0xa7)](_0x733898):_0x733898();};const Migration=function(_0x2273cb){const _0x57779e=a1172_0x321fc1;this[_0x57779e(0x93)]=_0x2273cb,this['sequence']=new Sequence();};Migration[a1172_0x321fc1(0xa5)][a1172_0x321fc1(0x99)]=function(_0x5a56a6,_0x2d79c5,_0x3531f0){const _0x334dee=a1172_0x321fc1,_0x5c8ece=this;this[_0x334dee(0xa0)]['enqueue'](function(){const _0x2ba70c=_0x334dee;return _0x5c8ece[_0x2ba70c(0x93)][_0x2ba70c(0x99)](_0x5a56a6,_0x2d79c5,_0x3531f0)[_0x2ba70c(0x90)](function(){const _0x2753e6=_0x2ba70c;logger[_0x2753e6(0x95)](_0x2753e6(0x9e),_0x2d79c5,_0x5a56a6);})['catch'](function(_0x5db7d1){const _0x273fe3=_0x2ba70c;logger[_0x273fe3(0x95)](JSON[_0x273fe3(0xa9)](_0x5db7d1));});});},Migration['prototype']['addColumn']=function(_0x7b494d,_0x5be32,_0x3fa3e3){const _0x55adad=a1172_0x321fc1,_0x5b2c9d=this;this['sequence'][_0x55adad(0x91)](function(){const _0x3212f3=_0x55adad;return _0x5b2c9d[_0x3212f3(0x93)][_0x3212f3(0xa8)](_0x7b494d,_0x5be32,_0x3fa3e3)[_0x3212f3(0x90)](function(){const _0x50683d=_0x3212f3;logger[_0x50683d(0x95)](_0x50683d(0x9d),_0x5be32,_0x7b494d);})['catch'](function(_0x7b4ec1){const _0x19f58c=_0x3212f3;logger[_0x19f58c(0x95)](JSON[_0x19f58c(0xa9)](_0x7b4ec1));});});},Migration[a1172_0x321fc1(0xa5)]['dropTable']=function(_0xfd8bcd){const _0x3c9f02=a1172_0x321fc1,_0x2acbd4=this;this['sequence'][_0x3c9f02(0x91)](function(){const _0x27fef2=_0x3c9f02;return _0x2acbd4[_0x27fef2(0x93)][_0x27fef2(0x94)](_0xfd8bcd,{'force':!![]})['then'](function(){const _0x2154a7=_0x27fef2;logger[_0x2154a7(0x95)](_0x2154a7(0x97),_0xfd8bcd);})['catch'](function(_0x56e18a){const _0x38175e=_0x27fef2;logger[_0x38175e(0x95)](JSON['stringify'](_0x56e18a));});});},Migration[a1172_0x321fc1(0xa5)][a1172_0x321fc1(0xa6)]=function(_0x342272,_0x4ae6fa,_0x5321f2){const _0x443613=a1172_0x321fc1,_0x5c77a5=this;this[_0x443613(0xa0)][_0x443613(0x91)](function(){const _0x366474=_0x443613;return _0x5c77a5[_0x366474(0x93)][_0x366474(0xa6)](_0x342272,_0x4ae6fa,{'indexName':_0x5321f2[_0x366474(0x92)],'indicesType':_0x5321f2[_0x366474(0x9a)]})[_0x366474(0x90)](function(){const _0x60dca2=_0x366474;logger[_0x60dca2(0x95)](_0x60dca2(0xab),_0x342272,_0x4ae6fa[_0x60dca2(0x9c)](','),_0x5321f2[_0x60dca2(0x92)],_0x5321f2[_0x60dca2(0x9a)]);})[_0x366474(0x96)](function(_0x9bb5fd){const _0x1dc4bd=_0x366474;logger[_0x1dc4bd(0x95)](JSON['stringify'](_0x9bb5fd));});});},Migration[a1172_0x321fc1(0xa5)][a1172_0x321fc1(0xa4)]=function(_0x2c84b4,_0x1de78f){const _0x540104=a1172_0x321fc1,_0x5358f0=this;this[_0x540104(0xa0)]['enqueue'](function(){const _0x8c8791=_0x540104;return _0x5358f0[_0x8c8791(0x93)][_0x8c8791(0xa4)](_0x2c84b4,_0x1de78f)['then'](function(){const _0x359be3=_0x8c8791;logger[_0x359be3(0x95)]('removeIndex\x20%s\x20%s',_0x2c84b4,_0x1de78f);})['catch'](function(_0x76239c){const _0x52988b=_0x8c8791;logger['info'](JSON[_0x52988b(0xa9)](_0x76239c));});});},Migration['prototype'][a1172_0x321fc1(0xaa)]=function(_0x19b944){const _0x19044b=a1172_0x321fc1,_0x4d3194=this;this[_0x19044b(0xa0)]['enqueue'](function(){const _0x335f9e=_0x19044b;return _0x4d3194[_0x335f9e(0x93)]['sequelize'][_0x335f9e(0xaa)](_0x19b944)[_0x335f9e(0x90)](function(){const _0x5d77de=_0x335f9e;logger[_0x5d77de(0x95)]('query\x20%s',_0x19b944);})[_0x335f9e(0x96)](function(_0x1824a7){const _0x4c0900=_0x335f9e;logger['info'](JSON[_0x4c0900(0xa9)](_0x1824a7));});});},Migration[a1172_0x321fc1(0xa5)][a1172_0x321fc1(0xa3)]=function(_0x5602ec,_0xcccb76){const _0x289d0a=a1172_0x321fc1,_0x3168cd=this;this[_0x289d0a(0xa0)]['enqueue'](function(){const _0x471283=_0x289d0a;return _0x3168cd[_0x471283(0x93)][_0x471283(0xa3)](_0x5602ec,_0xcccb76)[_0x471283(0x90)](function(){const _0x16117e=_0x471283;logger[_0x16117e(0x95)](_0x16117e(0xa2),_0xcccb76,_0x5602ec);})[_0x471283(0x96)](function(_0x27dfae){const _0x19be47=_0x471283;logger[_0x19be47(0x95)](util[_0x19be47(0x98)](_0x27dfae,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x4314ca,_0x27103f,_0x5d0ac4){const _0x492ff8=a1172_0x321fc1,_0x373113=this;this[_0x492ff8(0xa0)][_0x492ff8(0x91)](function(){const _0x387e88=_0x492ff8;return _0x373113[_0x387e88(0x93)][_0x387e88(0xa1)](_0x4314ca,_0x27103f,_0x5d0ac4)[_0x387e88(0x90)](function(){const _0x89426d=_0x387e88;logger[_0x89426d(0x95)](_0x89426d(0x9f),_0x27103f,_0x5d0ac4,_0x4314ca);})[_0x387e88(0x96)](function(_0x1ff08f){const _0x40fbcc=_0x387e88;logger[_0x40fbcc(0x95)](util[_0x40fbcc(0x98)](_0x1ff08f,{'showHidden':![],'depth':null}));});});},Migration[a1172_0x321fc1(0xa5)][a1172_0x321fc1(0x9b)]=function(_0x283e42){const _0x271d7f=a1172_0x321fc1;this[_0x271d7f(0xa0)]['enqueue'](function(){return _0x283e42();});},module['exports']={'up':function(_0x32f566){return new Promise(function(_0x4be565){const _0x47c02d=a1172_0x2631,_0x5e92bb=new Migration(_0x32f566);_0x5e92bb[_0x47c02d(0x9b)](_0x4be565);});},'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 ff6f75f..21eb3ed 100644 --- a/server/migrations/2.4.6.js +++ b/server/migrations/2.4.6.js @@ -1 +1 @@ -const a1173_0x4227=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','finally','sequence','removeIndex','addIndex\x20%s\x20%s\x20%s\x20[%s]','query','query\x20%s','tail','removeIndex\x20%s\x20%s','final','indicesType','enqueue','renameColumn','../config/logger','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','util','table\x20dropped\x20%s','indexName','exports','catch','prototype','dropTable','inspect','changeColumn','Added\x20column\x20%s\x20to\x20%s','stringify','then','queryInterface','removeColumn','info','sequelize','join','addColumn','migration'];(function(_0x288261,_0xd96703){const _0x4227fc=function(_0x40ccca){while(--_0x40ccca){_0x288261['push'](_0x288261['shift']());}};_0x4227fc(++_0xd96703);}(a1173_0x4227,0x1bc));const a1173_0x40cc=function(_0x288261,_0xd96703){_0x288261=_0x288261-0x75;let _0x4227fc=a1173_0x4227[_0x288261];return _0x4227fc;};const a1173_0x557c14=a1173_0x40cc;'use strict';const util=require(a1173_0x557c14(0x90)),logger=require(a1173_0x557c14(0x8d))(a1173_0x557c14(0x7f)),Sequence=function(){};Sequence['prototype'][a1173_0x557c14(0x8b)]=function(_0x5bc9a2){const _0x417631=a1173_0x557c14;this[_0x417631(0x87)]=this['tail']?this[_0x417631(0x87)][_0x417631(0x81)](_0x5bc9a2):_0x5bc9a2();};const Migration=function(_0x18560b){const _0x1754bf=a1173_0x557c14;this[_0x1754bf(0x79)]=_0x18560b,this[_0x1754bf(0x82)]=new Sequence();};Migration['prototype'][a1173_0x557c14(0x75)]=function(_0x449a29,_0x2d2b43,_0x3f61f2){const _0x3a4177=a1173_0x557c14,_0x9a9c83=this;this[_0x3a4177(0x82)][_0x3a4177(0x8b)](function(){const _0x85336=_0x3a4177;return _0x9a9c83['queryInterface'][_0x85336(0x75)](_0x449a29,_0x2d2b43,_0x3f61f2)[_0x85336(0x78)](function(){const _0x42d787=_0x85336;logger[_0x42d787(0x7b)](_0x42d787(0x8f),_0x2d2b43,_0x449a29);})[_0x85336(0x94)](function(_0x1d3ab8){const _0x36a394=_0x85336;logger['info'](JSON[_0x36a394(0x77)](_0x1d3ab8));});});},Migration['prototype'][a1173_0x557c14(0x7e)]=function(_0x5c830c,_0x18f429,_0x3d0ce7){const _0x2ad910=a1173_0x557c14,_0x10a130=this;this['sequence'][_0x2ad910(0x8b)](function(){const _0x31cfc0=_0x2ad910;return _0x10a130['queryInterface']['addColumn'](_0x5c830c,_0x18f429,_0x3d0ce7)[_0x31cfc0(0x78)](function(){const _0x58266f=_0x31cfc0;logger[_0x58266f(0x7b)](_0x58266f(0x76),_0x18f429,_0x5c830c);})[_0x31cfc0(0x94)](function(_0x11431f){const _0x3b9aa0=_0x31cfc0;logger[_0x3b9aa0(0x7b)](JSON[_0x3b9aa0(0x77)](_0x11431f));});});},Migration['prototype'][a1173_0x557c14(0x96)]=function(_0x7154ec){const _0x4c2ee0=a1173_0x557c14,_0x5dac26=this;this[_0x4c2ee0(0x82)][_0x4c2ee0(0x8b)](function(){const _0x1e31cd=_0x4c2ee0;return _0x5dac26[_0x1e31cd(0x79)][_0x1e31cd(0x96)](_0x7154ec,{'force':!![]})[_0x1e31cd(0x78)](function(){const _0x1c4814=_0x1e31cd;logger['info'](_0x1c4814(0x91),_0x7154ec);})[_0x1e31cd(0x94)](function(_0x275309){const _0x32710d=_0x1e31cd;logger[_0x32710d(0x7b)](JSON[_0x32710d(0x77)](_0x275309));});});},Migration['prototype'][a1173_0x557c14(0x8e)]=function(_0x4c1be3,_0x248b6f,_0x4c6473){const _0x21c8be=a1173_0x557c14,_0x1ffe0e=this;this[_0x21c8be(0x82)]['enqueue'](function(){const _0x7d61a3=_0x21c8be;return _0x1ffe0e[_0x7d61a3(0x79)][_0x7d61a3(0x8e)](_0x4c1be3,_0x248b6f,{'indexName':_0x4c6473['indexName'],'indicesType':_0x4c6473[_0x7d61a3(0x8a)]})[_0x7d61a3(0x78)](function(){const _0x191d9f=_0x7d61a3;logger[_0x191d9f(0x7b)](_0x191d9f(0x84),_0x4c1be3,_0x248b6f[_0x191d9f(0x7d)](','),_0x4c6473[_0x191d9f(0x92)],_0x4c6473[_0x191d9f(0x8a)]);})[_0x7d61a3(0x94)](function(_0x5c7851){const _0x59878b=_0x7d61a3;logger[_0x59878b(0x7b)](JSON[_0x59878b(0x77)](_0x5c7851));});});},Migration[a1173_0x557c14(0x95)][a1173_0x557c14(0x83)]=function(_0x44769b,_0xd0bc8e){const _0x16dc4a=a1173_0x557c14,_0x593d9e=this;this[_0x16dc4a(0x82)]['enqueue'](function(){const _0x155950=_0x16dc4a;return _0x593d9e['queryInterface'][_0x155950(0x83)](_0x44769b,_0xd0bc8e)[_0x155950(0x78)](function(){const _0x2c122a=_0x155950;logger[_0x2c122a(0x7b)](_0x2c122a(0x88),_0x44769b,_0xd0bc8e);})[_0x155950(0x94)](function(_0x41ebd4){const _0x2e7419=_0x155950;logger[_0x2e7419(0x7b)](JSON[_0x2e7419(0x77)](_0x41ebd4));});});},Migration[a1173_0x557c14(0x95)][a1173_0x557c14(0x85)]=function(_0x1936b4){const _0x312fb7=a1173_0x557c14,_0x5d9231=this;this[_0x312fb7(0x82)][_0x312fb7(0x8b)](function(){const _0x182aee=_0x312fb7;return _0x5d9231[_0x182aee(0x79)][_0x182aee(0x7c)][_0x182aee(0x85)](_0x1936b4)[_0x182aee(0x78)](function(){const _0x576125=_0x182aee;logger[_0x576125(0x7b)](_0x576125(0x86),_0x1936b4);})[_0x182aee(0x94)](function(_0x24fe92){const _0x22a30f=_0x182aee;logger[_0x22a30f(0x7b)](JSON[_0x22a30f(0x77)](_0x24fe92));});});},Migration[a1173_0x557c14(0x95)]['removeColumn']=function(_0x928100,_0x3c620e){const _0x37e4b9=this;this['sequence']['enqueue'](function(){const _0x5bf8d0=a1173_0x40cc;return _0x37e4b9[_0x5bf8d0(0x79)][_0x5bf8d0(0x7a)](_0x928100,_0x3c620e)['then'](function(){const _0x563946=_0x5bf8d0;logger[_0x563946(0x7b)]('Removed\x20column\x20%s\x20from\x20%s',_0x3c620e,_0x928100);})[_0x5bf8d0(0x94)](function(_0x50b6f1){const _0x3b5162=_0x5bf8d0;logger[_0x3b5162(0x7b)](util[_0x3b5162(0x97)](_0x50b6f1,{'showHidden':![],'depth':null}));});});},Migration[a1173_0x557c14(0x95)][a1173_0x557c14(0x8c)]=function(_0x223030,_0x7fa1bf,_0x2270cb){const _0x336c7c=a1173_0x557c14,_0x24ba96=this;this['sequence'][_0x336c7c(0x8b)](function(){const _0x1919d0=_0x336c7c;return _0x24ba96['queryInterface']['renameColumn'](_0x223030,_0x7fa1bf,_0x2270cb)[_0x1919d0(0x78)](function(){const _0x17c495=_0x1919d0;logger[_0x17c495(0x7b)](_0x17c495(0x80),_0x7fa1bf,_0x2270cb,_0x223030);})['catch'](function(_0x4d7cc4){const _0x40d679=_0x1919d0;logger['info'](util[_0x40d679(0x97)](_0x4d7cc4,{'showHidden':![],'depth':null}));});});},Migration[a1173_0x557c14(0x95)][a1173_0x557c14(0x89)]=function(_0x214cc7){const _0x372a67=a1173_0x557c14;this[_0x372a67(0x82)]['enqueue'](function(){return _0x214cc7();});},module[a1173_0x557c14(0x93)]={'up':function(_0x10a10f){return new Promise(function(_0x569d61){const _0x354a59=new Migration(_0x10a10f);_0x354a59['final'](_0x569d61);});},'down':function(){}}; \ No newline at end of file +const a1173_0x1493=['final','inspect','migration','renameColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','addIndex','table\x20dropped\x20%s','join','removeColumn','sequelize','removeIndex','dropTable','addColumn','indicesType','prototype','then','query\x20%s','../config/logger','sequence','changeColumn','queryInterface','info','catch','stringify','util','tail','enqueue','query'];(function(_0x1d3c44,_0x3ac9ae){const _0x149380=function(_0x2db949){while(--_0x2db949){_0x1d3c44['push'](_0x1d3c44['shift']());}};_0x149380(++_0x3ac9ae);}(a1173_0x1493,0xfa));const a1173_0x2db9=function(_0x1d3c44,_0x3ac9ae){_0x1d3c44=_0x1d3c44-0x126;let _0x149380=a1173_0x1493[_0x1d3c44];return _0x149380;};const a1173_0x39c4ed=a1173_0x2db9;'use strict';const util=require(a1173_0x39c4ed(0x140)),logger=require(a1173_0x39c4ed(0x139))(a1173_0x39c4ed(0x12a)),Sequence=function(){};Sequence[a1173_0x39c4ed(0x136)][a1173_0x39c4ed(0x126)]=function(_0x50a603){const _0x2d66d2=a1173_0x39c4ed;this[_0x2d66d2(0x141)]=this['tail']?this['tail']['finally'](_0x50a603):_0x50a603();};const Migration=function(_0x38bae6){const _0x41d761=a1173_0x39c4ed;this[_0x41d761(0x13c)]=_0x38bae6,this[_0x41d761(0x13a)]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x40a5d4,_0x5f2e76,_0x5c585c){const _0x4265d5=a1173_0x39c4ed,_0x1f8425=this;this[_0x4265d5(0x13a)][_0x4265d5(0x126)](function(){const _0x444e59=_0x4265d5;return _0x1f8425[_0x444e59(0x13c)][_0x444e59(0x13b)](_0x40a5d4,_0x5f2e76,_0x5c585c)[_0x444e59(0x137)](function(){const _0xa92e90=_0x444e59;logger[_0xa92e90(0x13d)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5f2e76,_0x40a5d4);})[_0x444e59(0x13e)](function(_0x117f8b){const _0x2d6384=_0x444e59;logger[_0x2d6384(0x13d)](JSON[_0x2d6384(0x13f)](_0x117f8b));});});},Migration[a1173_0x39c4ed(0x136)]['addColumn']=function(_0x35cf42,_0x4ca7c2,_0x5dfe0f){const _0x1201dd=this;this['sequence']['enqueue'](function(){const _0x42c2d6=a1173_0x2db9;return _0x1201dd['queryInterface'][_0x42c2d6(0x134)](_0x35cf42,_0x4ca7c2,_0x5dfe0f)['then'](function(){const _0x328a5c=_0x42c2d6;logger[_0x328a5c(0x13d)]('Added\x20column\x20%s\x20to\x20%s',_0x4ca7c2,_0x35cf42);})[_0x42c2d6(0x13e)](function(_0x5b628f){const _0x2c5e53=_0x42c2d6;logger[_0x2c5e53(0x13d)](JSON[_0x2c5e53(0x13f)](_0x5b628f));});});},Migration[a1173_0x39c4ed(0x136)]['dropTable']=function(_0x189858){const _0x3bca1c=a1173_0x39c4ed,_0x4e4010=this;this[_0x3bca1c(0x13a)][_0x3bca1c(0x126)](function(){const _0x255ce6=_0x3bca1c;return _0x4e4010[_0x255ce6(0x13c)][_0x255ce6(0x133)](_0x189858,{'force':!![]})[_0x255ce6(0x137)](function(){const _0x5d5e43=_0x255ce6;logger['info'](_0x5d5e43(0x12e),_0x189858);})[_0x255ce6(0x13e)](function(_0x30361d){const _0x42bf2d=_0x255ce6;logger[_0x42bf2d(0x13d)](JSON[_0x42bf2d(0x13f)](_0x30361d));});});},Migration[a1173_0x39c4ed(0x136)][a1173_0x39c4ed(0x12d)]=function(_0xeee726,_0x3193b0,_0x34d7b4){const _0x6c4871=a1173_0x39c4ed,_0x205b34=this;this[_0x6c4871(0x13a)][_0x6c4871(0x126)](function(){const _0x53e9b3=_0x6c4871;return _0x205b34[_0x53e9b3(0x13c)]['addIndex'](_0xeee726,_0x3193b0,{'indexName':_0x34d7b4['indexName'],'indicesType':_0x34d7b4['indicesType']})[_0x53e9b3(0x137)](function(){const _0x108a4e=_0x53e9b3;logger[_0x108a4e(0x13d)](_0x108a4e(0x12c),_0xeee726,_0x3193b0[_0x108a4e(0x12f)](','),_0x34d7b4['indexName'],_0x34d7b4[_0x108a4e(0x135)]);})[_0x53e9b3(0x13e)](function(_0x5185d0){const _0x52bde8=_0x53e9b3;logger[_0x52bde8(0x13d)](JSON[_0x52bde8(0x13f)](_0x5185d0));});});},Migration['prototype'][a1173_0x39c4ed(0x132)]=function(_0x404b83,_0x198812){const _0x2af962=a1173_0x39c4ed,_0x1b4f6d=this;this['sequence'][_0x2af962(0x126)](function(){const _0x101299=_0x2af962;return _0x1b4f6d['queryInterface'][_0x101299(0x132)](_0x404b83,_0x198812)[_0x101299(0x137)](function(){const _0x4d9fa3=_0x101299;logger[_0x4d9fa3(0x13d)]('removeIndex\x20%s\x20%s',_0x404b83,_0x198812);})[_0x101299(0x13e)](function(_0x4867cb){const _0x234de8=_0x101299;logger[_0x234de8(0x13d)](JSON[_0x234de8(0x13f)](_0x4867cb));});});},Migration[a1173_0x39c4ed(0x136)][a1173_0x39c4ed(0x127)]=function(_0x5c9d89){const _0x40cfc6=a1173_0x39c4ed,_0x2fadf9=this;this[_0x40cfc6(0x13a)][_0x40cfc6(0x126)](function(){const _0x57140c=_0x40cfc6;return _0x2fadf9[_0x57140c(0x13c)][_0x57140c(0x131)][_0x57140c(0x127)](_0x5c9d89)[_0x57140c(0x137)](function(){const _0x419f33=_0x57140c;logger[_0x419f33(0x13d)](_0x419f33(0x138),_0x5c9d89);})[_0x57140c(0x13e)](function(_0x4559c6){const _0x1d7452=_0x57140c;logger[_0x1d7452(0x13d)](JSON['stringify'](_0x4559c6));});});},Migration[a1173_0x39c4ed(0x136)]['removeColumn']=function(_0x2a027b,_0x283bee){const _0x41475a=a1173_0x39c4ed,_0x5b0ce9=this;this[_0x41475a(0x13a)][_0x41475a(0x126)](function(){const _0x4c23ef=_0x41475a;return _0x5b0ce9[_0x4c23ef(0x13c)][_0x4c23ef(0x130)](_0x2a027b,_0x283bee)[_0x4c23ef(0x137)](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x283bee,_0x2a027b);})[_0x4c23ef(0x13e)](function(_0x4a155b){const _0xa892ee=_0x4c23ef;logger[_0xa892ee(0x13d)](util[_0xa892ee(0x129)](_0x4a155b,{'showHidden':![],'depth':null}));});});},Migration[a1173_0x39c4ed(0x136)][a1173_0x39c4ed(0x12b)]=function(_0x533cac,_0x79fd44,_0x15755a){const _0x5af2ad=a1173_0x39c4ed,_0x88ba18=this;this[_0x5af2ad(0x13a)]['enqueue'](function(){const _0x2e24f8=_0x5af2ad;return _0x88ba18['queryInterface']['renameColumn'](_0x533cac,_0x79fd44,_0x15755a)[_0x2e24f8(0x137)](function(){const _0x4cfdf6=_0x2e24f8;logger[_0x4cfdf6(0x13d)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x79fd44,_0x15755a,_0x533cac);})[_0x2e24f8(0x13e)](function(_0x4fcccb){const _0x3dcc9f=_0x2e24f8;logger[_0x3dcc9f(0x13d)](util[_0x3dcc9f(0x129)](_0x4fcccb,{'showHidden':![],'depth':null}));});});},Migration[a1173_0x39c4ed(0x136)][a1173_0x39c4ed(0x128)]=function(_0x226581){const _0x38b86f=a1173_0x39c4ed;this[_0x38b86f(0x13a)][_0x38b86f(0x126)](function(){return _0x226581();});},module['exports']={'up':function(_0x22dabe){return new Promise(function(_0x1ff47e){const _0x16dc80=a1173_0x2db9,_0x46334d=new Migration(_0x22dabe);_0x46334d[_0x16dc80(0x128)](_0x1ff47e);});},'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 657f5c6..7947526 100644 --- a/server/migrations/2.4.7.js +++ b/server/migrations/2.4.7.js @@ -1 +1 @@ -const a1174_0x32c9=['indexName','stringify','catch','Added\x20column\x20%s\x20to\x20%s','inspect','dropTable','util','removeColumn','migration','Feedback','query\x20%s','removeIndex\x20%s\x20%s','Leads','Changed\x20column\x20%s\x20in\x20table\x20%s','chat_websites','indicesType','renameColumn','info','feedbackTitle','tail','changeColumn','addIndex','removeIndex','BOOLEAN','STRING','finally','prototype','Removed\x20column\x20%s\x20from\x20%s','exports','then','enableSendButton','query','../config/logger','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','enqueue','final','sequence'];(function(_0x276703,_0x37b966){const _0x32c9a9=function(_0x1af711){while(--_0x1af711){_0x276703['push'](_0x276703['shift']());}};_0x32c9a9(++_0x37b966);}(a1174_0x32c9,0x124));const a1174_0x1af7=function(_0x276703,_0x37b966){_0x276703=_0x276703-0xd4;let _0x32c9a9=a1174_0x32c9[_0x276703];return _0x32c9a9;};const a1174_0x2bdbd0=a1174_0x1af7;'use strict';const util=require(a1174_0x2bdbd0(0xee)),logger=require(a1174_0x2bdbd0(0xe1))(a1174_0x2bdbd0(0xf0)),Sequence=function(){};Sequence[a1174_0x2bdbd0(0xdb)][a1174_0x2bdbd0(0xe5)]=function(_0x552754){const _0x5a7214=a1174_0x2bdbd0;this[_0x5a7214(0xd4)]=this['tail']?this[_0x5a7214(0xd4)][_0x5a7214(0xda)](_0x552754):_0x552754();};const Migration=function(_0x3e227a){const _0x254a07=a1174_0x2bdbd0;this[_0x254a07(0xe4)]=_0x3e227a,this[_0x254a07(0xe7)]=new Sequence();};Migration['prototype'][a1174_0x2bdbd0(0xd5)]=function(_0xd6f3f0,_0x20446b,_0x3fcea4){const _0x7b3255=this;this['sequence']['enqueue'](function(){const _0x13b0ec=a1174_0x1af7;return _0x7b3255[_0x13b0ec(0xe4)][_0x13b0ec(0xd5)](_0xd6f3f0,_0x20446b,_0x3fcea4)[_0x13b0ec(0xde)](function(){const _0x10dac0=_0x13b0ec;logger[_0x10dac0(0xf9)](_0x10dac0(0xf5),_0x20446b,_0xd6f3f0);})[_0x13b0ec(0xea)](function(_0x3012f6){const _0x48164e=_0x13b0ec;logger[_0x48164e(0xf9)](JSON['stringify'](_0x3012f6));});});},Migration[a1174_0x2bdbd0(0xdb)][a1174_0x2bdbd0(0xe2)]=function(_0x2febdb,_0xe33401,_0x14acfb){const _0x1be8fa=a1174_0x2bdbd0,_0x3169f9=this;this['sequence'][_0x1be8fa(0xe5)](function(){const _0x52deff=_0x1be8fa;return _0x3169f9[_0x52deff(0xe4)][_0x52deff(0xe2)](_0x2febdb,_0xe33401,_0x14acfb)['then'](function(){const _0x21412d=_0x52deff;logger[_0x21412d(0xf9)](_0x21412d(0xeb),_0xe33401,_0x2febdb);})[_0x52deff(0xea)](function(_0x1debde){const _0x20171e=_0x52deff;logger[_0x20171e(0xf9)](JSON[_0x20171e(0xe9)](_0x1debde));});});},Migration[a1174_0x2bdbd0(0xdb)][a1174_0x2bdbd0(0xed)]=function(_0xaa0df4){const _0x2f71c8=a1174_0x2bdbd0,_0x4917ba=this;this[_0x2f71c8(0xe7)][_0x2f71c8(0xe5)](function(){const _0x2a0e9b=_0x2f71c8;return _0x4917ba['queryInterface'][_0x2a0e9b(0xed)](_0xaa0df4,{'force':!![]})[_0x2a0e9b(0xde)](function(){const _0x4b2ef8=_0x2a0e9b;logger[_0x4b2ef8(0xf9)]('table\x20dropped\x20%s',_0xaa0df4);})[_0x2a0e9b(0xea)](function(_0x2bf656){const _0x5c26e2=_0x2a0e9b;logger[_0x5c26e2(0xf9)](JSON['stringify'](_0x2bf656));});});},Migration[a1174_0x2bdbd0(0xdb)][a1174_0x2bdbd0(0xd6)]=function(_0x4d2a68,_0x498a7a,_0x2e550e){const _0x3eec43=a1174_0x2bdbd0,_0x65e7ce=this;this[_0x3eec43(0xe7)]['enqueue'](function(){const _0x38d324=_0x3eec43;return _0x65e7ce['queryInterface'][_0x38d324(0xd6)](_0x4d2a68,_0x498a7a,{'indexName':_0x2e550e['indexName'],'indicesType':_0x2e550e['indicesType']})[_0x38d324(0xde)](function(){const _0x219797=_0x38d324;logger[_0x219797(0xf9)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x4d2a68,_0x498a7a['join'](','),_0x2e550e[_0x219797(0xe8)],_0x2e550e[_0x219797(0xf7)]);})[_0x38d324(0xea)](function(_0x54a2df){logger['info'](JSON['stringify'](_0x54a2df));});});},Migration[a1174_0x2bdbd0(0xdb)][a1174_0x2bdbd0(0xd7)]=function(_0x2c0588,_0x2c2ae3){const _0x2c289b=a1174_0x2bdbd0,_0x55df72=this;this[_0x2c289b(0xe7)][_0x2c289b(0xe5)](function(){const _0x2c4f4d=_0x2c289b;return _0x55df72[_0x2c4f4d(0xe4)]['removeIndex'](_0x2c0588,_0x2c2ae3)[_0x2c4f4d(0xde)](function(){const _0x4361b4=_0x2c4f4d;logger['info'](_0x4361b4(0xf3),_0x2c0588,_0x2c2ae3);})['catch'](function(_0x3d6308){const _0x1ba815=_0x2c4f4d;logger[_0x1ba815(0xf9)](JSON[_0x1ba815(0xe9)](_0x3d6308));});});},Migration[a1174_0x2bdbd0(0xdb)][a1174_0x2bdbd0(0xe0)]=function(_0xe3fd44){const _0x4167cd=a1174_0x2bdbd0,_0x4be05c=this;this[_0x4167cd(0xe7)][_0x4167cd(0xe5)](function(){const _0x5072a0=_0x4167cd;return _0x4be05c[_0x5072a0(0xe4)]['sequelize'][_0x5072a0(0xe0)](_0xe3fd44)[_0x5072a0(0xde)](function(){const _0x569a69=_0x5072a0;logger[_0x569a69(0xf9)](_0x569a69(0xf2),_0xe3fd44);})[_0x5072a0(0xea)](function(_0x1eb4bd){const _0x198d66=_0x5072a0;logger[_0x198d66(0xf9)](JSON[_0x198d66(0xe9)](_0x1eb4bd));});});},Migration[a1174_0x2bdbd0(0xdb)][a1174_0x2bdbd0(0xef)]=function(_0x486b5d,_0x546e4f){const _0x38ebc9=a1174_0x2bdbd0,_0x16469c=this;this[_0x38ebc9(0xe7)][_0x38ebc9(0xe5)](function(){const _0x219793=_0x38ebc9;return _0x16469c[_0x219793(0xe4)][_0x219793(0xef)](_0x486b5d,_0x546e4f)['then'](function(){const _0x531b90=_0x219793;logger[_0x531b90(0xf9)](_0x531b90(0xdc),_0x546e4f,_0x486b5d);})['catch'](function(_0x26b9e2){const _0xd903db=_0x219793;logger[_0xd903db(0xf9)](util[_0xd903db(0xec)](_0x26b9e2,{'showHidden':![],'depth':null}));});});},Migration[a1174_0x2bdbd0(0xdb)]['renameColumn']=function(_0x35081b,_0x2c112d,_0x30e1d8){const _0x1988e4=a1174_0x2bdbd0,_0x138630=this;this[_0x1988e4(0xe7)][_0x1988e4(0xe5)](function(){const _0x4e40c1=_0x1988e4;return _0x138630[_0x4e40c1(0xe4)][_0x4e40c1(0xf8)](_0x35081b,_0x2c112d,_0x30e1d8)['then'](function(){const _0x1f1bc6=_0x4e40c1;logger[_0x1f1bc6(0xf9)](_0x1f1bc6(0xe3),_0x2c112d,_0x30e1d8,_0x35081b);})[_0x4e40c1(0xea)](function(_0x5e4a55){const _0x3bc2a7=_0x4e40c1;logger[_0x3bc2a7(0xf9)](util[_0x3bc2a7(0xec)](_0x5e4a55,{'showHidden':![],'depth':null}));});});},Migration[a1174_0x2bdbd0(0xdb)][a1174_0x2bdbd0(0xe6)]=function(_0x4ed210){this['sequence']['enqueue'](function(){return _0x4ed210();});},module[a1174_0x2bdbd0(0xdd)]={'up':function(_0x36e68c,_0x43822a){return new Promise(function(_0x26fb5a){const _0x2742ad=a1174_0x1af7,_0x36d1aa=new Migration(_0x36e68c);_0x36d1aa[_0x2742ad(0xe2)]('int_zoho_configurations','moduleCreate',{'type':_0x43822a['ENUM'](_0x2742ad(0xf4),'Contacts'),'defaultValue':'Leads'}),_0x36d1aa[_0x2742ad(0xe2)]('chat_interactions','customerPort',{'type':_0x43822a[_0x2742ad(0xd9)]}),_0x36d1aa[_0x2742ad(0xe2)](_0x2742ad(0xf6),_0x2742ad(0xdf),{'type':_0x43822a[_0x2742ad(0xd8)],'defaultValue':![]}),_0x36d1aa[_0x2742ad(0xe2)](_0x2742ad(0xf6),_0x2742ad(0xfa),{'type':_0x43822a['STRING'],'defaultValue':_0x2742ad(0xf1)}),_0x36d1aa[_0x2742ad(0xe6)](_0x26fb5a);});},'down':function(){}}; \ No newline at end of file +const a1174_0x25c7=['STRING','stringify','final','query','addIndex','sequelize','tail','customerPort','../config/logger','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','ENUM','BOOLEAN','indicesType','util','Leads','join','Added\x20column\x20%s\x20to\x20%s','indexName','finally','moduleCreate','removeColumn','prototype','chat_websites','migration','Feedback','addColumn','queryInterface','chat_interactions','catch','enableSendButton','enqueue','then','info','sequence','dropTable','exports','removeIndex'];(function(_0x2dfb18,_0x379f27){const _0x25c7c7=function(_0x1d5eac){while(--_0x1d5eac){_0x2dfb18['push'](_0x2dfb18['shift']());}};_0x25c7c7(++_0x379f27);}(a1174_0x25c7,0x77));const a1174_0x1d5e=function(_0x2dfb18,_0x379f27){_0x2dfb18=_0x2dfb18-0x14d;let _0x25c7c7=a1174_0x25c7[_0x2dfb18];return _0x25c7c7;};const a1174_0x4f6acd=a1174_0x1d5e;'use strict';const util=require(a1174_0x4f6acd(0x15a)),logger=require(a1174_0x4f6acd(0x153))(a1174_0x4f6acd(0x164)),Sequence=function(){};Sequence[a1174_0x4f6acd(0x162)][a1174_0x4f6acd(0x16b)]=function(_0x129e47){const _0xcbbd78=a1174_0x4f6acd;this[_0xcbbd78(0x151)]=this[_0xcbbd78(0x151)]?this[_0xcbbd78(0x151)][_0xcbbd78(0x15f)](_0x129e47):_0x129e47();};const Migration=function(_0xe25b10){const _0x32aa3d=a1174_0x4f6acd;this[_0x32aa3d(0x167)]=_0xe25b10,this[_0x32aa3d(0x16e)]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x3bb39d,_0x282a2b,_0x5529b7){const _0x1adf4b=a1174_0x4f6acd,_0xe44170=this;this[_0x1adf4b(0x16e)][_0x1adf4b(0x16b)](function(){const _0x47117b=_0x1adf4b;return _0xe44170['queryInterface']['changeColumn'](_0x3bb39d,_0x282a2b,_0x5529b7)[_0x47117b(0x16c)](function(){const _0x21afad=_0x47117b;logger[_0x21afad(0x16d)](_0x21afad(0x155),_0x282a2b,_0x3bb39d);})[_0x47117b(0x169)](function(_0x4c58d3){const _0x18464b=_0x47117b;logger[_0x18464b(0x16d)](JSON[_0x18464b(0x173)](_0x4c58d3));});});},Migration[a1174_0x4f6acd(0x162)][a1174_0x4f6acd(0x166)]=function(_0x580505,_0xf76dbe,_0x5d38bb){const _0x1b445b=a1174_0x4f6acd,_0x3604a0=this;this[_0x1b445b(0x16e)][_0x1b445b(0x16b)](function(){const _0x2b73e8=_0x1b445b;return _0x3604a0['queryInterface'][_0x2b73e8(0x166)](_0x580505,_0xf76dbe,_0x5d38bb)[_0x2b73e8(0x16c)](function(){const _0x25b493=_0x2b73e8;logger[_0x25b493(0x16d)](_0x25b493(0x15d),_0xf76dbe,_0x580505);})[_0x2b73e8(0x169)](function(_0x40c67d){const _0x3fd53a=_0x2b73e8;logger[_0x3fd53a(0x16d)](JSON[_0x3fd53a(0x173)](_0x40c67d));});});},Migration[a1174_0x4f6acd(0x162)]['dropTable']=function(_0x5321ac){const _0x1ca0b5=a1174_0x4f6acd,_0x442ab5=this;this['sequence'][_0x1ca0b5(0x16b)](function(){const _0x126931=_0x1ca0b5;return _0x442ab5['queryInterface'][_0x126931(0x16f)](_0x5321ac,{'force':!![]})[_0x126931(0x16c)](function(){logger['info']('table\x20dropped\x20%s',_0x5321ac);})[_0x126931(0x169)](function(_0x5a3c85){const _0x42d3ee=_0x126931;logger[_0x42d3ee(0x16d)](JSON[_0x42d3ee(0x173)](_0x5a3c85));});});},Migration[a1174_0x4f6acd(0x162)]['addIndex']=function(_0x3595c4,_0x3f9dbc,_0x426cac){const _0x7fa7bf=a1174_0x4f6acd,_0x279d6e=this;this[_0x7fa7bf(0x16e)][_0x7fa7bf(0x16b)](function(){const _0xb180fd=_0x7fa7bf;return _0x279d6e[_0xb180fd(0x167)][_0xb180fd(0x14f)](_0x3595c4,_0x3f9dbc,{'indexName':_0x426cac[_0xb180fd(0x15e)],'indicesType':_0x426cac['indicesType']})[_0xb180fd(0x16c)](function(){const _0x4dbe0f=_0xb180fd;logger[_0x4dbe0f(0x16d)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x3595c4,_0x3f9dbc[_0x4dbe0f(0x15c)](','),_0x426cac['indexName'],_0x426cac[_0x4dbe0f(0x159)]);})['catch'](function(_0x1c25f8){const _0x23aeef=_0xb180fd;logger[_0x23aeef(0x16d)](JSON[_0x23aeef(0x173)](_0x1c25f8));});});},Migration['prototype']['removeIndex']=function(_0x58cc02,_0x54a0b6){const _0x523043=this;this['sequence']['enqueue'](function(){const _0x56ae01=a1174_0x1d5e;return _0x523043[_0x56ae01(0x167)][_0x56ae01(0x171)](_0x58cc02,_0x54a0b6)[_0x56ae01(0x16c)](function(){logger['info']('removeIndex\x20%s\x20%s',_0x58cc02,_0x54a0b6);})['catch'](function(_0x1709d2){const _0x3956c7=_0x56ae01;logger[_0x3956c7(0x16d)](JSON[_0x3956c7(0x173)](_0x1709d2));});});},Migration[a1174_0x4f6acd(0x162)]['query']=function(_0x7e876d){const _0x16a335=a1174_0x4f6acd,_0x316422=this;this[_0x16a335(0x16e)][_0x16a335(0x16b)](function(){const _0x5836a0=_0x16a335;return _0x316422['queryInterface'][_0x5836a0(0x150)][_0x5836a0(0x14e)](_0x7e876d)['then'](function(){const _0x42c6b3=_0x5836a0;logger[_0x42c6b3(0x16d)]('query\x20%s',_0x7e876d);})[_0x5836a0(0x169)](function(_0x2c4d72){const _0x25489f=_0x5836a0;logger[_0x25489f(0x16d)](JSON[_0x25489f(0x173)](_0x2c4d72));});});},Migration[a1174_0x4f6acd(0x162)][a1174_0x4f6acd(0x161)]=function(_0x51fcab,_0x5a9b65){const _0x7307ad=a1174_0x4f6acd,_0x46e315=this;this['sequence'][_0x7307ad(0x16b)](function(){const _0x134a45=_0x7307ad;return _0x46e315[_0x134a45(0x167)][_0x134a45(0x161)](_0x51fcab,_0x5a9b65)[_0x134a45(0x16c)](function(){const _0xdfb45d=_0x134a45;logger[_0xdfb45d(0x16d)]('Removed\x20column\x20%s\x20from\x20%s',_0x5a9b65,_0x51fcab);})[_0x134a45(0x169)](function(_0x24c431){const _0x3ed6d9=_0x134a45;logger[_0x3ed6d9(0x16d)](util['inspect'](_0x24c431,{'showHidden':![],'depth':null}));});});},Migration[a1174_0x4f6acd(0x162)][a1174_0x4f6acd(0x154)]=function(_0x4ce104,_0x1c32d1,_0x52fae5){const _0x265090=a1174_0x4f6acd,_0x2e214d=this;this[_0x265090(0x16e)][_0x265090(0x16b)](function(){const _0xb25b5=_0x265090;return _0x2e214d[_0xb25b5(0x167)][_0xb25b5(0x154)](_0x4ce104,_0x1c32d1,_0x52fae5)[_0xb25b5(0x16c)](function(){const _0x52d29a=_0xb25b5;logger[_0x52d29a(0x16d)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1c32d1,_0x52fae5,_0x4ce104);})[_0xb25b5(0x169)](function(_0x2921a1){const _0x2c1cdf=_0xb25b5;logger[_0x2c1cdf(0x16d)](util[_0x2c1cdf(0x156)](_0x2921a1,{'showHidden':![],'depth':null}));});});},Migration[a1174_0x4f6acd(0x162)][a1174_0x4f6acd(0x14d)]=function(_0x4445ad){const _0x311b7e=a1174_0x4f6acd;this[_0x311b7e(0x16e)][_0x311b7e(0x16b)](function(){return _0x4445ad();});},module[a1174_0x4f6acd(0x170)]={'up':function(_0x4e2c35,_0x5b80e2){return new Promise(function(_0x127249){const _0x4df702=a1174_0x1d5e,_0x47855a=new Migration(_0x4e2c35);_0x47855a['addColumn']('int_zoho_configurations',_0x4df702(0x160),{'type':_0x5b80e2[_0x4df702(0x157)](_0x4df702(0x15b),'Contacts'),'defaultValue':'Leads'}),_0x47855a[_0x4df702(0x166)](_0x4df702(0x168),_0x4df702(0x152),{'type':_0x5b80e2[_0x4df702(0x172)]}),_0x47855a['addColumn'](_0x4df702(0x163),_0x4df702(0x16a),{'type':_0x5b80e2[_0x4df702(0x158)],'defaultValue':![]}),_0x47855a[_0x4df702(0x166)](_0x4df702(0x163),'feedbackTitle',{'type':_0x5b80e2[_0x4df702(0x172)],'defaultValue':_0x4df702(0x165)}),_0x47855a[_0x4df702(0x14d)](_0x127249);});},'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 0a82e00..d01bf12 100644 --- a/server/migrations/2.4.8.js +++ b/server/migrations/2.4.8.js @@ -1 +1 @@ -const a1175_0x1786=['Removed\x20column\x20%s\x20from\x20%s','catch','queryInterface','finally','Added\x20column\x20%s\x20to\x20%s','removeIndex','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','util','addColumn','dropTable','enqueue','prototype','stringify','info','final','inspect','join','table\x20dropped\x20%s','changeColumn','query','removeColumn','then','tail','migration','indicesType','renameColumn','sequence','indexName'];(function(_0x227ec5,_0x2856f4){const _0x178682=function(_0x3fa1f){while(--_0x3fa1f){_0x227ec5['push'](_0x227ec5['shift']());}};_0x178682(++_0x2856f4);}(a1175_0x1786,0x184));const a1175_0x3fa1=function(_0x227ec5,_0x2856f4){_0x227ec5=_0x227ec5-0x1bb;let _0x178682=a1175_0x1786[_0x227ec5];return _0x178682;};const a1175_0x2ab762=a1175_0x3fa1;'use strict';const util=require(a1175_0x2ab762(0x1d5)),logger=require('../config/logger')(a1175_0x2ab762(0x1c8)),Sequence=function(){};Sequence['prototype'][a1175_0x2ab762(0x1bb)]=function(_0x390ecd){const _0x105e4a=a1175_0x2ab762;this['tail']=this[_0x105e4a(0x1c7)]?this[_0x105e4a(0x1c7)][_0x105e4a(0x1d0)](_0x390ecd):_0x390ecd();};const Migration=function(_0x2d3aab){const _0xee6f1e=a1175_0x2ab762;this[_0xee6f1e(0x1cf)]=_0x2d3aab,this[_0xee6f1e(0x1cb)]=new Sequence();};Migration[a1175_0x2ab762(0x1bc)]['changeColumn']=function(_0xbb9ac0,_0x5a18ca,_0x1c8947){const _0x1b596c=a1175_0x2ab762,_0x1b6ab2=this;this[_0x1b596c(0x1cb)][_0x1b596c(0x1bb)](function(){const _0x3a4796=_0x1b596c;return _0x1b6ab2[_0x3a4796(0x1cf)][_0x3a4796(0x1c3)](_0xbb9ac0,_0x5a18ca,_0x1c8947)['then'](function(){const _0x415d36=_0x3a4796;logger[_0x415d36(0x1be)](_0x415d36(0x1d4),_0x5a18ca,_0xbb9ac0);})[_0x3a4796(0x1ce)](function(_0x564880){logger['info'](JSON['stringify'](_0x564880));});});},Migration[a1175_0x2ab762(0x1bc)][a1175_0x2ab762(0x1d6)]=function(_0x4413f2,_0x2adafd,_0x452271){const _0x141feb=a1175_0x2ab762,_0x2dcfe5=this;this[_0x141feb(0x1cb)][_0x141feb(0x1bb)](function(){const _0x4bd61c=_0x141feb;return _0x2dcfe5[_0x4bd61c(0x1cf)][_0x4bd61c(0x1d6)](_0x4413f2,_0x2adafd,_0x452271)['then'](function(){const _0x1a9a0c=_0x4bd61c;logger[_0x1a9a0c(0x1be)](_0x1a9a0c(0x1d1),_0x2adafd,_0x4413f2);})[_0x4bd61c(0x1ce)](function(_0x15316a){const _0x189907=_0x4bd61c;logger[_0x189907(0x1be)](JSON[_0x189907(0x1bd)](_0x15316a));});});},Migration['prototype'][a1175_0x2ab762(0x1d7)]=function(_0x3d0733){const _0x182f62=a1175_0x2ab762,_0x4caa38=this;this[_0x182f62(0x1cb)][_0x182f62(0x1bb)](function(){const _0x297798=_0x182f62;return _0x4caa38[_0x297798(0x1cf)][_0x297798(0x1d7)](_0x3d0733,{'force':!![]})[_0x297798(0x1c6)](function(){const _0xaa51a8=_0x297798;logger[_0xaa51a8(0x1be)](_0xaa51a8(0x1c2),_0x3d0733);})[_0x297798(0x1ce)](function(_0x4fa0fd){const _0x231cac=_0x297798;logger[_0x231cac(0x1be)](JSON[_0x231cac(0x1bd)](_0x4fa0fd));});});},Migration[a1175_0x2ab762(0x1bc)]['addIndex']=function(_0x28af02,_0x4d4fd2,_0x13e136){const _0x404de2=a1175_0x2ab762,_0x2b22f8=this;this[_0x404de2(0x1cb)]['enqueue'](function(){const _0x51dc33=_0x404de2;return _0x2b22f8[_0x51dc33(0x1cf)]['addIndex'](_0x28af02,_0x4d4fd2,{'indexName':_0x13e136[_0x51dc33(0x1cc)],'indicesType':_0x13e136[_0x51dc33(0x1c9)]})[_0x51dc33(0x1c6)](function(){const _0x5a8adc=_0x51dc33;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x28af02,_0x4d4fd2[_0x5a8adc(0x1c1)](','),_0x13e136[_0x5a8adc(0x1cc)],_0x13e136[_0x5a8adc(0x1c9)]);})['catch'](function(_0x36eb02){const _0x5d391b=_0x51dc33;logger[_0x5d391b(0x1be)](JSON['stringify'](_0x36eb02));});});},Migration['prototype'][a1175_0x2ab762(0x1d2)]=function(_0x306a8b,_0x1b81ac){const _0x105d5d=a1175_0x2ab762,_0x2e8d23=this;this['sequence'][_0x105d5d(0x1bb)](function(){const _0x1b1b04=_0x105d5d;return _0x2e8d23[_0x1b1b04(0x1cf)][_0x1b1b04(0x1d2)](_0x306a8b,_0x1b81ac)['then'](function(){const _0x14842a=_0x1b1b04;logger[_0x14842a(0x1be)]('removeIndex\x20%s\x20%s',_0x306a8b,_0x1b81ac);})[_0x1b1b04(0x1ce)](function(_0x26559f){const _0x2371cf=_0x1b1b04;logger[_0x2371cf(0x1be)](JSON[_0x2371cf(0x1bd)](_0x26559f));});});},Migration[a1175_0x2ab762(0x1bc)][a1175_0x2ab762(0x1c4)]=function(_0x5092be){const _0x5bed1e=a1175_0x2ab762,_0x3d82ac=this;this[_0x5bed1e(0x1cb)]['enqueue'](function(){const _0x349ead=_0x5bed1e;return _0x3d82ac[_0x349ead(0x1cf)][_0x349ead(0x1d3)][_0x349ead(0x1c4)](_0x5092be)[_0x349ead(0x1c6)](function(){logger['info']('query\x20%s',_0x5092be);})[_0x349ead(0x1ce)](function(_0x1a87a5){const _0x77d6e3=_0x349ead;logger[_0x77d6e3(0x1be)](JSON['stringify'](_0x1a87a5));});});},Migration[a1175_0x2ab762(0x1bc)][a1175_0x2ab762(0x1c5)]=function(_0x4899c3,_0x7fc214){const _0xcd09=a1175_0x2ab762,_0x1dc60d=this;this['sequence'][_0xcd09(0x1bb)](function(){const _0x507a6e=_0xcd09;return _0x1dc60d['queryInterface'][_0x507a6e(0x1c5)](_0x4899c3,_0x7fc214)[_0x507a6e(0x1c6)](function(){const _0x5794a1=_0x507a6e;logger[_0x5794a1(0x1be)](_0x5794a1(0x1cd),_0x7fc214,_0x4899c3);})[_0x507a6e(0x1ce)](function(_0x5f1db3){const _0x7dd4a0=_0x507a6e;logger['info'](util[_0x7dd4a0(0x1c0)](_0x5f1db3,{'showHidden':![],'depth':null}));});});},Migration[a1175_0x2ab762(0x1bc)][a1175_0x2ab762(0x1ca)]=function(_0x17a44c,_0xb46642,_0x43a860){const _0x592115=a1175_0x2ab762,_0x2c7159=this;this[_0x592115(0x1cb)][_0x592115(0x1bb)](function(){const _0x122508=_0x592115;return _0x2c7159[_0x122508(0x1cf)][_0x122508(0x1ca)](_0x17a44c,_0xb46642,_0x43a860)[_0x122508(0x1c6)](function(){const _0xac6a9a=_0x122508;logger[_0xac6a9a(0x1be)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xb46642,_0x43a860,_0x17a44c);})['catch'](function(_0xe85ad2){logger['info'](util['inspect'](_0xe85ad2,{'showHidden':![],'depth':null}));});});},Migration[a1175_0x2ab762(0x1bc)][a1175_0x2ab762(0x1bf)]=function(_0x794e82){const _0x1604d3=a1175_0x2ab762;this[_0x1604d3(0x1cb)][_0x1604d3(0x1bb)](function(){return _0x794e82();});},module['exports']={'up':function(_0x1f794a){return new Promise(function(_0x21f280){const _0x204a9b=a1175_0x3fa1,_0x119f59=new Migration(_0x1f794a);_0x119f59[_0x204a9b(0x1bf)](_0x21f280);});},'down':function(){}}; \ No newline at end of file +const a1175_0x2cc0=['enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','catch','then','indexName','indicesType','query','addIndex\x20%s\x20%s\x20%s\x20[%s]','addColumn','Added\x20column\x20%s\x20to\x20%s','../config/logger','join','sequelize','dropTable','sequence','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','inspect','queryInterface','addIndex','table\x20dropped\x20%s','exports','removeIndex','final','removeIndex\x20%s\x20%s','changeColumn','query\x20%s','finally','stringify','migration','Removed\x20column\x20%s\x20from\x20%s','info'];(function(_0x3d1f56,_0x5a7996){const _0x2cc0e2=function(_0x1cbaa8){while(--_0x1cbaa8){_0x3d1f56['push'](_0x3d1f56['shift']());}};_0x2cc0e2(++_0x5a7996);}(a1175_0x2cc0,0x14c));const a1175_0x1cba=function(_0x3d1f56,_0x5a7996){_0x3d1f56=_0x3d1f56-0x1d7;let _0x2cc0e2=a1175_0x2cc0[_0x3d1f56];return _0x2cc0e2;};const a1175_0x3e4b40=a1175_0x1cba;'use strict';const util=require('util'),logger=require(a1175_0x3e4b40(0x1ea))(a1175_0x3e4b40(0x1dc)),Sequence=function(){};Sequence[a1175_0x3e4b40(0x1f1)]['enqueue']=function(_0x2545c0){const _0x126b94=a1175_0x3e4b40;this['tail']=this[_0x126b94(0x1ef)]?this[_0x126b94(0x1ef)][_0x126b94(0x1da)](_0x2545c0):_0x2545c0();};const Migration=function(_0x499cfd){const _0x1f234c=a1175_0x3e4b40;this[_0x1f234c(0x1f3)]=_0x499cfd,this['sequence']=new Sequence();};Migration[a1175_0x3e4b40(0x1f1)][a1175_0x3e4b40(0x1d8)]=function(_0x3d3eeb,_0x3c5473,_0xbd10d2){const _0x417733=a1175_0x3e4b40,_0x18d9e9=this;this[_0x417733(0x1ee)][_0x417733(0x1df)](function(){const _0x36de89=_0x417733;return _0x18d9e9[_0x36de89(0x1f3)]['changeColumn'](_0x3d3eeb,_0x3c5473,_0xbd10d2)[_0x36de89(0x1e3)](function(){const _0xc83f9d=_0x36de89;logger[_0xc83f9d(0x1de)](_0xc83f9d(0x1f0),_0x3c5473,_0x3d3eeb);})[_0x36de89(0x1e2)](function(_0x37d29){const _0x3cbb45=_0x36de89;logger[_0x3cbb45(0x1de)](JSON['stringify'](_0x37d29));});});},Migration[a1175_0x3e4b40(0x1f1)][a1175_0x3e4b40(0x1e8)]=function(_0x236a33,_0x5af0c6,_0x2a653b){const _0x419282=a1175_0x3e4b40,_0x25c35a=this;this[_0x419282(0x1ee)]['enqueue'](function(){const _0x386aaa=_0x419282;return _0x25c35a[_0x386aaa(0x1f3)][_0x386aaa(0x1e8)](_0x236a33,_0x5af0c6,_0x2a653b)['then'](function(){const _0x4e7778=_0x386aaa;logger['info'](_0x4e7778(0x1e9),_0x5af0c6,_0x236a33);})[_0x386aaa(0x1e2)](function(_0x4607cd){const _0x101ff1=_0x386aaa;logger['info'](JSON[_0x101ff1(0x1db)](_0x4607cd));});});},Migration[a1175_0x3e4b40(0x1f1)][a1175_0x3e4b40(0x1ed)]=function(_0x5d7c8b){const _0x209834=a1175_0x3e4b40,_0x203f61=this;this[_0x209834(0x1ee)]['enqueue'](function(){const _0x1c9d05=_0x209834;return _0x203f61[_0x1c9d05(0x1f3)][_0x1c9d05(0x1ed)](_0x5d7c8b,{'force':!![]})[_0x1c9d05(0x1e3)](function(){const _0x15e76e=_0x1c9d05;logger['info'](_0x15e76e(0x1f5),_0x5d7c8b);})[_0x1c9d05(0x1e2)](function(_0x35a829){const _0x4d4dd0=_0x1c9d05;logger[_0x4d4dd0(0x1de)](JSON[_0x4d4dd0(0x1db)](_0x35a829));});});},Migration['prototype']['addIndex']=function(_0x3465cb,_0x4a834e,_0x217e3f){const _0x1ef972=a1175_0x3e4b40,_0x2d6ef8=this;this[_0x1ef972(0x1ee)][_0x1ef972(0x1df)](function(){const _0x389548=_0x1ef972;return _0x2d6ef8[_0x389548(0x1f3)][_0x389548(0x1f4)](_0x3465cb,_0x4a834e,{'indexName':_0x217e3f[_0x389548(0x1e4)],'indicesType':_0x217e3f[_0x389548(0x1e5)]})[_0x389548(0x1e3)](function(){const _0x3d6a7d=_0x389548;logger['info'](_0x3d6a7d(0x1e7),_0x3465cb,_0x4a834e[_0x3d6a7d(0x1eb)](','),_0x217e3f[_0x3d6a7d(0x1e4)],_0x217e3f[_0x3d6a7d(0x1e5)]);})['catch'](function(_0x4947a1){const _0x3d56bd=_0x389548;logger[_0x3d56bd(0x1de)](JSON[_0x3d56bd(0x1db)](_0x4947a1));});});},Migration[a1175_0x3e4b40(0x1f1)][a1175_0x3e4b40(0x1f7)]=function(_0x1777c3,_0x4d2326){const _0x31021d=a1175_0x3e4b40,_0x5bc5fe=this;this[_0x31021d(0x1ee)][_0x31021d(0x1df)](function(){const _0x385bc1=_0x31021d;return _0x5bc5fe[_0x385bc1(0x1f3)]['removeIndex'](_0x1777c3,_0x4d2326)[_0x385bc1(0x1e3)](function(){const _0xe10843=_0x385bc1;logger[_0xe10843(0x1de)](_0xe10843(0x1d7),_0x1777c3,_0x4d2326);})[_0x385bc1(0x1e2)](function(_0x1b3999){const _0x58408e=_0x385bc1;logger[_0x58408e(0x1de)](JSON[_0x58408e(0x1db)](_0x1b3999));});});},Migration[a1175_0x3e4b40(0x1f1)][a1175_0x3e4b40(0x1e6)]=function(_0x2e765a){const _0x5eb2d8=a1175_0x3e4b40,_0x1d6c0e=this;this['sequence'][_0x5eb2d8(0x1df)](function(){const _0x300fa8=_0x5eb2d8;return _0x1d6c0e[_0x300fa8(0x1f3)][_0x300fa8(0x1ec)][_0x300fa8(0x1e6)](_0x2e765a)[_0x300fa8(0x1e3)](function(){const _0xcae6f1=_0x300fa8;logger[_0xcae6f1(0x1de)](_0xcae6f1(0x1d9),_0x2e765a);})['catch'](function(_0x1910d5){const _0x549521=_0x300fa8;logger[_0x549521(0x1de)](JSON['stringify'](_0x1910d5));});});},Migration[a1175_0x3e4b40(0x1f1)]['removeColumn']=function(_0x7a1218,_0x13e7f9){const _0x5d742a=a1175_0x3e4b40,_0x40f9b0=this;this[_0x5d742a(0x1ee)][_0x5d742a(0x1df)](function(){const _0x13db6a=_0x5d742a;return _0x40f9b0[_0x13db6a(0x1f3)][_0x13db6a(0x1e1)](_0x7a1218,_0x13e7f9)['then'](function(){const _0xcf98d0=_0x13db6a;logger['info'](_0xcf98d0(0x1dd),_0x13e7f9,_0x7a1218);})[_0x13db6a(0x1e2)](function(_0x264e18){const _0x360ee1=_0x13db6a;logger['info'](util[_0x360ee1(0x1f2)](_0x264e18,{'showHidden':![],'depth':null}));});});},Migration[a1175_0x3e4b40(0x1f1)]['renameColumn']=function(_0x9da4dd,_0x2fb66f,_0x3b5708){const _0x4b6d1b=a1175_0x3e4b40,_0x1116c3=this;this[_0x4b6d1b(0x1ee)][_0x4b6d1b(0x1df)](function(){const _0x22e832=_0x4b6d1b;return _0x1116c3[_0x22e832(0x1f3)]['renameColumn'](_0x9da4dd,_0x2fb66f,_0x3b5708)[_0x22e832(0x1e3)](function(){const _0x4e857a=_0x22e832;logger[_0x4e857a(0x1de)](_0x4e857a(0x1e0),_0x2fb66f,_0x3b5708,_0x9da4dd);})[_0x22e832(0x1e2)](function(_0x46115f){const _0x22b9a4=_0x22e832;logger[_0x22b9a4(0x1de)](util[_0x22b9a4(0x1f2)](_0x46115f,{'showHidden':![],'depth':null}));});});},Migration[a1175_0x3e4b40(0x1f1)][a1175_0x3e4b40(0x1f8)]=function(_0xd95cd3){const _0x2e7833=a1175_0x3e4b40;this[_0x2e7833(0x1ee)]['enqueue'](function(){return _0xd95cd3();});},module[a1175_0x3e4b40(0x1f6)]={'up':function(_0x1963dd){return new Promise(function(_0x36bcaf){const _0x26a220=a1175_0x1cba,_0x55b96b=new Migration(_0x1963dd);_0x55b96b[_0x26a220(0x1f8)](_0x36bcaf);});},'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 9d6ecb7..ad05024 100644 --- a/server/migrations/2.4.9.js +++ b/server/migrations/2.4.9.js @@ -1 +1 @@ -const a1176_0xe797=['join','../config/logger','removeIndex','query','sequence','removeColumn','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','finally','info','Removed\x20column\x20%s\x20from\x20%s','prototype','then','addIndex\x20%s\x20%s\x20%s\x20[%s]','addColumn','catch','inspect','removeIndex\x20%s\x20%s','changeColumn','renameColumn','indicesType','final','query\x20%s','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','indexName','addIndex','dropTable','stringify','migration','exports','enqueue'];(function(_0x269688,_0x5afa45){const _0xe79703=function(_0x385958){while(--_0x385958){_0x269688['push'](_0x269688['shift']());}};_0xe79703(++_0x5afa45);}(a1176_0xe797,0x193));const a1176_0x3859=function(_0x269688,_0x5afa45){_0x269688=_0x269688-0x1d8;let _0xe79703=a1176_0xe797[_0x269688];return _0xe79703;};const a1176_0x5bbe12=a1176_0x3859;'use strict';const util=require(a1176_0x5bbe12(0x1d9)),logger=require(a1176_0x5bbe12(0x1f3))(a1176_0x5bbe12(0x1ef)),Sequence=function(){};Sequence[a1176_0x5bbe12(0x1dd)]['enqueue']=function(_0x2ee976){const _0x35ed8a=a1176_0x5bbe12;this['tail']=this['tail']?this[_0x35ed8a(0x1f8)][_0x35ed8a(0x1da)](_0x2ee976):_0x2ee976();};const Migration=function(_0x3bc298){const _0x1995ad=a1176_0x5bbe12;this[_0x1995ad(0x1e9)]=_0x3bc298,this['sequence']=new Sequence();};Migration[a1176_0x5bbe12(0x1dd)][a1176_0x5bbe12(0x1e4)]=function(_0x28dc2e,_0x5567b0,_0x1f4d44){const _0x34de3d=a1176_0x5bbe12,_0x602aba=this;this[_0x34de3d(0x1f6)][_0x34de3d(0x1f1)](function(){const _0x1ef4ba=_0x34de3d;return _0x602aba['queryInterface']['changeColumn'](_0x28dc2e,_0x5567b0,_0x1f4d44)[_0x1ef4ba(0x1de)](function(){const _0x803a93=_0x1ef4ba;logger[_0x803a93(0x1db)](_0x803a93(0x1ea),_0x5567b0,_0x28dc2e);})[_0x1ef4ba(0x1e1)](function(_0x1f5686){const _0x2a7920=_0x1ef4ba;logger[_0x2a7920(0x1db)](JSON[_0x2a7920(0x1ee)](_0x1f5686));});});},Migration[a1176_0x5bbe12(0x1dd)][a1176_0x5bbe12(0x1e0)]=function(_0x102152,_0x2d8120,_0x20d2c4){const _0xaa2717=a1176_0x5bbe12,_0x4530af=this;this[_0xaa2717(0x1f6)][_0xaa2717(0x1f1)](function(){const _0x1ee8b9=_0xaa2717;return _0x4530af['queryInterface'][_0x1ee8b9(0x1e0)](_0x102152,_0x2d8120,_0x20d2c4)[_0x1ee8b9(0x1de)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x2d8120,_0x102152);})['catch'](function(_0x4871d1){const _0x534096=_0x1ee8b9;logger[_0x534096(0x1db)](JSON[_0x534096(0x1ee)](_0x4871d1));});});},Migration[a1176_0x5bbe12(0x1dd)][a1176_0x5bbe12(0x1ed)]=function(_0x668d1f){const _0x3559a4=a1176_0x5bbe12,_0x349610=this;this[_0x3559a4(0x1f6)][_0x3559a4(0x1f1)](function(){const _0x4a48ec=_0x3559a4;return _0x349610['queryInterface'][_0x4a48ec(0x1ed)](_0x668d1f,{'force':!![]})['then'](function(){const _0x19fe4f=_0x4a48ec;logger[_0x19fe4f(0x1db)]('table\x20dropped\x20%s',_0x668d1f);})['catch'](function(_0x99282){const _0x254a6b=_0x4a48ec;logger[_0x254a6b(0x1db)](JSON[_0x254a6b(0x1ee)](_0x99282));});});},Migration[a1176_0x5bbe12(0x1dd)][a1176_0x5bbe12(0x1ec)]=function(_0x1490d1,_0x5c2aec,_0x206da7){const _0x54af2c=a1176_0x5bbe12,_0xa33af=this;this[_0x54af2c(0x1f6)][_0x54af2c(0x1f1)](function(){const _0x38ffd5=_0x54af2c;return _0xa33af[_0x38ffd5(0x1e9)][_0x38ffd5(0x1ec)](_0x1490d1,_0x5c2aec,{'indexName':_0x206da7[_0x38ffd5(0x1eb)],'indicesType':_0x206da7[_0x38ffd5(0x1e6)]})[_0x38ffd5(0x1de)](function(){const _0x3eee3f=_0x38ffd5;logger[_0x3eee3f(0x1db)](_0x3eee3f(0x1df),_0x1490d1,_0x5c2aec[_0x3eee3f(0x1f2)](','),_0x206da7[_0x3eee3f(0x1eb)],_0x206da7[_0x3eee3f(0x1e6)]);})[_0x38ffd5(0x1e1)](function(_0x292306){const _0x1427ad=_0x38ffd5;logger[_0x1427ad(0x1db)](JSON[_0x1427ad(0x1ee)](_0x292306));});});},Migration['prototype'][a1176_0x5bbe12(0x1f4)]=function(_0x5a9cbe,_0x2fbe57){const _0x3812b1=a1176_0x5bbe12,_0x19da96=this;this[_0x3812b1(0x1f6)][_0x3812b1(0x1f1)](function(){const _0x266730=_0x3812b1;return _0x19da96['queryInterface']['removeIndex'](_0x5a9cbe,_0x2fbe57)[_0x266730(0x1de)](function(){const _0x1eec5a=_0x266730;logger[_0x1eec5a(0x1db)](_0x1eec5a(0x1e3),_0x5a9cbe,_0x2fbe57);})[_0x266730(0x1e1)](function(_0x39aa88){const _0x9547b5=_0x266730;logger[_0x9547b5(0x1db)](JSON[_0x9547b5(0x1ee)](_0x39aa88));});});},Migration['prototype'][a1176_0x5bbe12(0x1f5)]=function(_0x2cb5c3){const _0x1a6afd=a1176_0x5bbe12,_0x29d136=this;this[_0x1a6afd(0x1f6)][_0x1a6afd(0x1f1)](function(){const _0x3419d8=_0x1a6afd;return _0x29d136[_0x3419d8(0x1e9)]['sequelize'][_0x3419d8(0x1f5)](_0x2cb5c3)[_0x3419d8(0x1de)](function(){const _0x5b0df7=_0x3419d8;logger['info'](_0x5b0df7(0x1e8),_0x2cb5c3);})[_0x3419d8(0x1e1)](function(_0x1332f3){const _0x280071=_0x3419d8;logger['info'](JSON[_0x280071(0x1ee)](_0x1332f3));});});},Migration['prototype']['removeColumn']=function(_0x3d0f37,_0x47d543){const _0x56a305=a1176_0x5bbe12,_0x5f12d4=this;this[_0x56a305(0x1f6)][_0x56a305(0x1f1)](function(){const _0x4b6a78=_0x56a305;return _0x5f12d4[_0x4b6a78(0x1e9)][_0x4b6a78(0x1f7)](_0x3d0f37,_0x47d543)[_0x4b6a78(0x1de)](function(){const _0x3094ca=_0x4b6a78;logger[_0x3094ca(0x1db)](_0x3094ca(0x1dc),_0x47d543,_0x3d0f37);})[_0x4b6a78(0x1e1)](function(_0x3b551b){const _0x298141=_0x4b6a78;logger['info'](util[_0x298141(0x1e2)](_0x3b551b,{'showHidden':![],'depth':null}));});});},Migration[a1176_0x5bbe12(0x1dd)][a1176_0x5bbe12(0x1e5)]=function(_0x426b8d,_0x3248d7,_0x1d9f9c){const _0x702ea5=a1176_0x5bbe12,_0x11b5b8=this;this[_0x702ea5(0x1f6)]['enqueue'](function(){const _0x5adbd0=_0x702ea5;return _0x11b5b8['queryInterface'][_0x5adbd0(0x1e5)](_0x426b8d,_0x3248d7,_0x1d9f9c)[_0x5adbd0(0x1de)](function(){const _0x4407ce=_0x5adbd0;logger[_0x4407ce(0x1db)](_0x4407ce(0x1d8),_0x3248d7,_0x1d9f9c,_0x426b8d);})[_0x5adbd0(0x1e1)](function(_0x2f9797){const _0x4bc852=_0x5adbd0;logger[_0x4bc852(0x1db)](util[_0x4bc852(0x1e2)](_0x2f9797,{'showHidden':![],'depth':null}));});});},Migration[a1176_0x5bbe12(0x1dd)][a1176_0x5bbe12(0x1e7)]=function(_0x2ea5c9){const _0x1a2f70=a1176_0x5bbe12;this[_0x1a2f70(0x1f6)][_0x1a2f70(0x1f1)](function(){return _0x2ea5c9();});},module[a1176_0x5bbe12(0x1f0)]={'up':function(_0x43bf98){return new Promise(function(_0x56c334){const _0x45b57d=a1176_0x3859,_0x49e0b1=new Migration(_0x43bf98);_0x49e0b1[_0x45b57d(0x1e7)](_0x56c334);});},'down':function(){}}; \ No newline at end of file +const a1176_0x44b2=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','removeColumn','removeIndex\x20%s\x20%s','join','removeIndex','Removed\x20column\x20%s\x20from\x20%s','query','tail','prototype','dropTable','inspect','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','catch','Added\x20column\x20%s\x20to\x20%s','addIndex','then','renameColumn','final','indicesType','sequence','query\x20%s','finally','queryInterface','changeColumn','indexName','enqueue','stringify','addColumn','sequelize'];(function(_0x4ecf3a,_0x3f4a61){const _0x44b28b=function(_0x59e353){while(--_0x59e353){_0x4ecf3a['push'](_0x4ecf3a['shift']());}};_0x44b28b(++_0x3f4a61);}(a1176_0x44b2,0xe9));const a1176_0x59e3=function(_0x4ecf3a,_0x3f4a61){_0x4ecf3a=_0x4ecf3a-0xa4;let _0x44b28b=a1176_0x44b2[_0x4ecf3a];return _0x44b28b;};const a1176_0x164b15=a1176_0x59e3;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1176_0x164b15(0xa4)][a1176_0x164b15(0xb7)]=function(_0x3bff0c){const _0x4fa20b=a1176_0x164b15;this[_0x4fa20b(0xc3)]=this['tail']?this[_0x4fa20b(0xc3)][_0x4fa20b(0xb3)](_0x3bff0c):_0x3bff0c();};const Migration=function(_0x279f96){const _0x1545ff=a1176_0x164b15;this['queryInterface']=_0x279f96,this[_0x1545ff(0xb1)]=new Sequence();};Migration[a1176_0x164b15(0xa4)][a1176_0x164b15(0xb5)]=function(_0x3435dc,_0x2a41af,_0x1cab30){const _0x3aac86=a1176_0x164b15,_0x416c92=this;this[_0x3aac86(0xb1)][_0x3aac86(0xb7)](function(){const _0x21c239=_0x3aac86;return _0x416c92[_0x21c239(0xb4)][_0x21c239(0xb5)](_0x3435dc,_0x2a41af,_0x1cab30)[_0x21c239(0xad)](function(){const _0x8ea094=_0x21c239;logger['info'](_0x8ea094(0xa8),_0x2a41af,_0x3435dc);})[_0x21c239(0xaa)](function(_0x2360cd){const _0x2e8927=_0x21c239;logger[_0x2e8927(0xbc)](JSON[_0x2e8927(0xb8)](_0x2360cd));});});},Migration['prototype'][a1176_0x164b15(0xb9)]=function(_0x93042d,_0xbc5d72,_0x3d9f0e){const _0x5e618e=a1176_0x164b15,_0x540d7a=this;this['sequence'][_0x5e618e(0xb7)](function(){const _0x4c187e=_0x5e618e;return _0x540d7a['queryInterface'][_0x4c187e(0xb9)](_0x93042d,_0xbc5d72,_0x3d9f0e)[_0x4c187e(0xad)](function(){const _0xe10db9=_0x4c187e;logger[_0xe10db9(0xbc)](_0xe10db9(0xab),_0xbc5d72,_0x93042d);})[_0x4c187e(0xaa)](function(_0x1eae19){const _0x55ce18=_0x4c187e;logger[_0x55ce18(0xbc)](JSON[_0x55ce18(0xb8)](_0x1eae19));});});},Migration['prototype'][a1176_0x164b15(0xa5)]=function(_0x5a2f7f){const _0x38617e=a1176_0x164b15,_0x41098d=this;this['sequence'][_0x38617e(0xb7)](function(){const _0x2e4330=_0x38617e;return _0x41098d[_0x2e4330(0xb4)][_0x2e4330(0xa5)](_0x5a2f7f,{'force':!![]})[_0x2e4330(0xad)](function(){const _0x216f75=_0x2e4330;logger[_0x216f75(0xbc)](_0x216f75(0xa7),_0x5a2f7f);})[_0x2e4330(0xaa)](function(_0x381bdc){const _0x123f09=_0x2e4330;logger[_0x123f09(0xbc)](JSON[_0x123f09(0xb8)](_0x381bdc));});});},Migration[a1176_0x164b15(0xa4)][a1176_0x164b15(0xac)]=function(_0x2b8bad,_0x4d54fd,_0x3df089){const _0x173c82=a1176_0x164b15,_0x580ffa=this;this[_0x173c82(0xb1)][_0x173c82(0xb7)](function(){const _0x1c6f5e=_0x173c82;return _0x580ffa['queryInterface']['addIndex'](_0x2b8bad,_0x4d54fd,{'indexName':_0x3df089[_0x1c6f5e(0xb6)],'indicesType':_0x3df089[_0x1c6f5e(0xb0)]})[_0x1c6f5e(0xad)](function(){const _0x209322=_0x1c6f5e;logger['info'](_0x209322(0xa9),_0x2b8bad,_0x4d54fd[_0x209322(0xbf)](','),_0x3df089[_0x209322(0xb6)],_0x3df089[_0x209322(0xb0)]);})[_0x1c6f5e(0xaa)](function(_0x578ef7){const _0x252afd=_0x1c6f5e;logger[_0x252afd(0xbc)](JSON[_0x252afd(0xb8)](_0x578ef7));});});},Migration[a1176_0x164b15(0xa4)][a1176_0x164b15(0xc0)]=function(_0x462964,_0x173c00){const _0x22970a=a1176_0x164b15,_0x5c349c=this;this[_0x22970a(0xb1)][_0x22970a(0xb7)](function(){const _0x303969=_0x22970a;return _0x5c349c[_0x303969(0xb4)][_0x303969(0xc0)](_0x462964,_0x173c00)[_0x303969(0xad)](function(){const _0x157def=_0x303969;logger[_0x157def(0xbc)](_0x157def(0xbe),_0x462964,_0x173c00);})[_0x303969(0xaa)](function(_0x27ced4){const _0x2c6895=_0x303969;logger[_0x2c6895(0xbc)](JSON[_0x2c6895(0xb8)](_0x27ced4));});});},Migration[a1176_0x164b15(0xa4)][a1176_0x164b15(0xc2)]=function(_0x40acbc){const _0xaafb0d=a1176_0x164b15,_0x57ff95=this;this['sequence'][_0xaafb0d(0xb7)](function(){const _0x560745=_0xaafb0d;return _0x57ff95[_0x560745(0xb4)][_0x560745(0xba)][_0x560745(0xc2)](_0x40acbc)[_0x560745(0xad)](function(){const _0x315eb1=_0x560745;logger[_0x315eb1(0xbc)](_0x315eb1(0xb2),_0x40acbc);})[_0x560745(0xaa)](function(_0x84a14b){const _0x182b16=_0x560745;logger['info'](JSON[_0x182b16(0xb8)](_0x84a14b));});});},Migration['prototype'][a1176_0x164b15(0xbd)]=function(_0x11e148,_0x55879e){const _0x5df26b=a1176_0x164b15,_0x130255=this;this[_0x5df26b(0xb1)][_0x5df26b(0xb7)](function(){const _0x8df861=_0x5df26b;return _0x130255[_0x8df861(0xb4)]['removeColumn'](_0x11e148,_0x55879e)[_0x8df861(0xad)](function(){const _0x54e30d=_0x8df861;logger[_0x54e30d(0xbc)](_0x54e30d(0xc1),_0x55879e,_0x11e148);})[_0x8df861(0xaa)](function(_0x347690){const _0x3cae95=_0x8df861;logger[_0x3cae95(0xbc)](util[_0x3cae95(0xa6)](_0x347690,{'showHidden':![],'depth':null}));});});},Migration[a1176_0x164b15(0xa4)][a1176_0x164b15(0xae)]=function(_0x43c129,_0x1b7d58,_0xad3361){const _0x3ff234=a1176_0x164b15,_0x438dcd=this;this[_0x3ff234(0xb1)][_0x3ff234(0xb7)](function(){const _0x3e6b70=_0x3ff234;return _0x438dcd[_0x3e6b70(0xb4)][_0x3e6b70(0xae)](_0x43c129,_0x1b7d58,_0xad3361)[_0x3e6b70(0xad)](function(){const _0x2ff85b=_0x3e6b70;logger['info'](_0x2ff85b(0xbb),_0x1b7d58,_0xad3361,_0x43c129);})[_0x3e6b70(0xaa)](function(_0x4ba5de){const _0x270344=_0x3e6b70;logger[_0x270344(0xbc)](util[_0x270344(0xa6)](_0x4ba5de,{'showHidden':![],'depth':null}));});});},Migration[a1176_0x164b15(0xa4)][a1176_0x164b15(0xaf)]=function(_0x274d85){const _0x176a71=a1176_0x164b15;this[_0x176a71(0xb1)][_0x176a71(0xb7)](function(){return _0x274d85();});},module['exports']={'up':function(_0x347578){return new Promise(function(_0x42d22e){const _0x38abd2=a1176_0x59e3,_0x2d79df=new Migration(_0x347578);_0x2d79df[_0x38abd2(0xaf)](_0x42d22e);});},'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 5feb257..dd6f0e6 100644 --- a/server/migrations/2.5.0.js +++ b/server/migrations/2.5.0.js @@ -1 +1 @@ -const a1177_0x18a5=['\x20`agentTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','addColumn','sequelize','\x20`key`\x20varchar(255)\x20NOT\x20NULL,','inspect','\x20`mandatoryDisposition`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','ALTER\x20TABLE\x20tools_canned_answers\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_6`\x20FOREIGN\x20KEY\x20(`WhatsappAccountId`)\x20REFERENCES\x20`whatsapp_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','stringify','vidaooApiKey','\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,','automaticSentiment','sequence','dropTable','WhatsappAccountId','finally','\x20`remote`\x20varchar(255)\x20NOT\x20NULL,','renameColumn','whatsappCapacity','tools_dispositions','\x20`waitForTheAssignedAgent`\x20int(11)\x20DEFAULT\x20\x2710\x27,','bucket','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','vidaooEscalation','\x20`accountSid`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20`name`\x20varchar(255)\x20NOT\x20NULL,','then','whatsappPause','removeColumn','sentiment','catch','sPositive','FLOAT','TEXT','addIndex',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','removeIndex','migration','\x20`notificationTemplate`\x20text,','query','Changed\x20column\x20%s\x20in\x20table\x20%s','\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20`ListId`\x20int(11)\x20DEFAULT\x20NULL,','chat_interactions','Added\x20column\x20%s\x20to\x20%s','STRING','sMixed','automaticTranscribe','util','language','sentimentAccountId','BOOLEAN','\x20`token`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20`notificationShake`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','enqueue','changeColumn','sentimentRegion','\x20UNIQUE\x20KEY\x20`name`\x20(`name`),','settings','\x20`mandatoryDispositionPauseId`\x20int(11)\x20DEFAULT\x20NULL,','info','\x20`type`\x20enum(\x27twilio\x27)\x20DEFAULT\x20NULL,','transcribeStatus','sNegative','fileText','users','\x20`phone`\x20varchar(255)\x20DEFAULT\x20NULL,','location','tools_canned_answers','Removed\x20column\x20%s\x20from\x20%s','failureReason','chat_websites','final','\x20KEY\x20`ListId`\x20(`ListId`),','voice_recordings','\x20`notificationSound`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','join','\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','CREATE\x20TABLE\x20`whatsapp_accounts`\x20(','tail','\x20`agentTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','\x20`queueTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','\x20KEY\x20`mandatoryDispositionPauseId`\x20(`mandatoryDispositionPauseId`),','\x20PRIMARY\x20KEY\x20(`id`),','indexName','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sNeutral','prototype','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','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`name_whatsapp`\x20UNIQUE\x20KEY\x20(`name`,`WhatsappAccountId`)','INTEGER'];(function(_0x4ae4f4,_0x3ac47c){const _0x18a57a=function(_0x302add){while(--_0x302add){_0x4ae4f4['push'](_0x4ae4f4['shift']());}};_0x18a57a(++_0x3ac47c);}(a1177_0x18a5,0x1f2));const a1177_0x302a=function(_0x4ae4f4,_0x3ac47c){_0x4ae4f4=_0x4ae4f4-0x13c;let _0x18a57a=a1177_0x18a5[_0x4ae4f4];return _0x18a57a;};const a1177_0x5c63fb=a1177_0x302a;'use strict';const util=require(a1177_0x5c63fb(0x140)),logger=require('../config/logger')(a1177_0x5c63fb(0x190)),Sequence=function(){};Sequence['prototype'][a1177_0x5c63fb(0x146)]=function(_0x1281a8){const _0x17fc50=a1177_0x5c63fb;this['tail']=this['tail']?this[_0x17fc50(0x15f)][_0x17fc50(0x17a)](_0x1281a8):_0x1281a8();};const Migration=function(_0x348be5){const _0x40de67=a1177_0x5c63fb;this[_0x40de67(0x165)]=_0x348be5,this['sequence']=new Sequence();};Migration[a1177_0x5c63fb(0x168)][a1177_0x5c63fb(0x147)]=function(_0x135829,_0xcbdddb,_0x407ca3){const _0x38914d=a1177_0x5c63fb,_0x5bd891=this;this[_0x38914d(0x177)][_0x38914d(0x146)](function(){const _0x3bfede=_0x38914d;return _0x5bd891[_0x3bfede(0x165)][_0x3bfede(0x147)](_0x135829,_0xcbdddb,_0x407ca3)[_0x3bfede(0x185)](function(){const _0x235610=_0x3bfede;logger[_0x235610(0x14c)](_0x235610(0x193),_0xcbdddb,_0x135829);})[_0x3bfede(0x189)](function(_0xbf64cc){const _0x250b2a=_0x3bfede;logger[_0x250b2a(0x14c)](JSON[_0x250b2a(0x173)](_0xbf64cc));});});},Migration[a1177_0x5c63fb(0x168)][a1177_0x5c63fb(0x16d)]=function(_0xdeb9c5,_0x10be46,_0x20483f){const _0x4e9792=a1177_0x5c63fb,_0x6887fb=this;this['sequence'][_0x4e9792(0x146)](function(){const _0xdec18a=_0x4e9792;return _0x6887fb[_0xdec18a(0x165)]['addColumn'](_0xdeb9c5,_0x10be46,_0x20483f)['then'](function(){const _0x420ad4=_0xdec18a;logger[_0x420ad4(0x14c)](_0x420ad4(0x13c),_0x10be46,_0xdeb9c5);})[_0xdec18a(0x189)](function(_0x52df94){const _0x5646b7=_0xdec18a;logger[_0x5646b7(0x14c)](JSON[_0x5646b7(0x173)](_0x52df94));});});},Migration[a1177_0x5c63fb(0x168)][a1177_0x5c63fb(0x178)]=function(_0x2304b8){const _0x961c18=a1177_0x5c63fb,_0x1651bf=this;this[_0x961c18(0x177)][_0x961c18(0x146)](function(){const _0x454551=_0x961c18;return _0x1651bf[_0x454551(0x165)][_0x454551(0x178)](_0x2304b8,{'force':!![]})[_0x454551(0x185)](function(){const _0x146c3f=_0x454551;logger[_0x146c3f(0x14c)]('table\x20dropped\x20%s',_0x2304b8);})[_0x454551(0x189)](function(_0x46f30c){const _0x308a99=_0x454551;logger[_0x308a99(0x14c)](JSON[_0x308a99(0x173)](_0x46f30c));});});},Migration[a1177_0x5c63fb(0x168)][a1177_0x5c63fb(0x18d)]=function(_0x2266db,_0x31e6ed,_0x283d1b){const _0x368adb=a1177_0x5c63fb,_0x2d8d4d=this;this[_0x368adb(0x177)][_0x368adb(0x146)](function(){const _0x36a1d7=_0x368adb;return _0x2d8d4d[_0x36a1d7(0x165)][_0x36a1d7(0x18d)](_0x2266db,_0x31e6ed,{'indexName':_0x283d1b[_0x36a1d7(0x164)],'indicesType':_0x283d1b['indicesType']})[_0x36a1d7(0x185)](function(){const _0x2e9638=_0x36a1d7;logger[_0x2e9638(0x14c)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x2266db,_0x31e6ed[_0x2e9638(0x15c)](','),_0x283d1b[_0x2e9638(0x164)],_0x283d1b['indicesType']);})['catch'](function(_0x1816e9){const _0x499c76=_0x36a1d7;logger[_0x499c76(0x14c)](JSON[_0x499c76(0x173)](_0x1816e9));});});},Migration[a1177_0x5c63fb(0x168)]['removeIndex']=function(_0x2934ed,_0x348a66){const _0x1ebc44=a1177_0x5c63fb,_0x59b59d=this;this[_0x1ebc44(0x177)][_0x1ebc44(0x146)](function(){const _0xfdf500=_0x1ebc44;return _0x59b59d[_0xfdf500(0x165)][_0xfdf500(0x18f)](_0x2934ed,_0x348a66)['then'](function(){const _0x347ac7=_0xfdf500;logger[_0x347ac7(0x14c)]('removeIndex\x20%s\x20%s',_0x2934ed,_0x348a66);})[_0xfdf500(0x189)](function(_0x19b1b9){const _0x2f8d51=_0xfdf500;logger[_0x2f8d51(0x14c)](JSON['stringify'](_0x19b1b9));});});},Migration[a1177_0x5c63fb(0x168)][a1177_0x5c63fb(0x192)]=function(_0x182540){const _0x5dbb08=a1177_0x5c63fb,_0x3d3124=this;this[_0x5dbb08(0x177)][_0x5dbb08(0x146)](function(){const _0xbc7719=_0x5dbb08;return _0x3d3124[_0xbc7719(0x165)][_0xbc7719(0x16e)][_0xbc7719(0x192)](_0x182540)[_0xbc7719(0x185)](function(){const _0xcd8d79=_0xbc7719;logger[_0xcd8d79(0x14c)]('query\x20%s',_0x182540);})[_0xbc7719(0x189)](function(_0x1fa4ba){const _0x4723f2=_0xbc7719;logger[_0x4723f2(0x14c)](JSON[_0x4723f2(0x173)](_0x1fa4ba));});});},Migration[a1177_0x5c63fb(0x168)][a1177_0x5c63fb(0x187)]=function(_0x18c8a2,_0x35f5cd){const _0x166d62=this;this['sequence']['enqueue'](function(){const _0x380fea=a1177_0x302a;return _0x166d62[_0x380fea(0x165)][_0x380fea(0x187)](_0x18c8a2,_0x35f5cd)[_0x380fea(0x185)](function(){const _0x1bf8c5=_0x380fea;logger[_0x1bf8c5(0x14c)](_0x1bf8c5(0x155),_0x35f5cd,_0x18c8a2);})['catch'](function(_0x3a4405){const _0x1e217b=_0x380fea;logger['info'](util[_0x1e217b(0x170)](_0x3a4405,{'showHidden':![],'depth':null}));});});},Migration[a1177_0x5c63fb(0x168)][a1177_0x5c63fb(0x17c)]=function(_0x118a87,_0x3bd092,_0x2f63cb){const _0x179f18=a1177_0x5c63fb,_0x286e59=this;this['sequence'][_0x179f18(0x146)](function(){const _0x3a119f=_0x179f18;return _0x286e59['queryInterface'][_0x3a119f(0x17c)](_0x118a87,_0x3bd092,_0x2f63cb)[_0x3a119f(0x185)](function(){const _0x5e01fd=_0x3a119f;logger[_0x5e01fd(0x14c)](_0x5e01fd(0x166),_0x3bd092,_0x2f63cb,_0x118a87);})[_0x3a119f(0x189)](function(_0x57fe02){logger['info'](util['inspect'](_0x57fe02,{'showHidden':![],'depth':null}));});});},Migration[a1177_0x5c63fb(0x168)]['final']=function(_0x13a9c9){const _0x19318d=a1177_0x5c63fb;this[_0x19318d(0x177)][_0x19318d(0x146)](function(){return _0x13a9c9();});},module['exports']={'up':function(_0xcaea99,_0xf4c7f0){return new Promise(function(_0x554aff){const _0x595edf=a1177_0x302a,_0x1054ab=new Migration(_0xcaea99);_0x1054ab['query'](_0x595edf(0x15e)+_0x595edf(0x175)+_0x595edf(0x184)+_0x595edf(0x16f)+_0x595edf(0x17b)+_0x595edf(0x144)+_0x595edf(0x152)+_0x595edf(0x14d)+_0x595edf(0x183)+'\x20`authToken`\x20varchar(255)\x20DEFAULT\x20NULL,'+_0x595edf(0x191)+_0x595edf(0x15b)+_0x595edf(0x145)+_0x595edf(0x17f)+_0x595edf(0x161)+'\x20`queueTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,'+_0x595edf(0x160)+_0x595edf(0x16c)+_0x595edf(0x14b)+_0x595edf(0x171)+_0x595edf(0x194)+'\x20`createdAt`\x20datetime\x20NOT\x20NULL,'+_0x595edf(0x15d)+_0x595edf(0x195)+_0x595edf(0x163)+_0x595edf(0x149)+_0x595edf(0x162)+_0x595edf(0x159)+'\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20REFERENCES\x20`tools_pauses`\x20(`id`)\x20ON\x20DELETE\x20NO\x20ACTION\x20ON\x20UPDATE\x20CASCADE,'+'\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`ListId`)\x20REFERENCES\x20`cm_lists`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE'+_0x595edf(0x18e)),_0x1054ab[_0x595edf(0x16d)](_0x595edf(0x17e),_0x595edf(0x179),{'type':_0xf4c7f0[_0x595edf(0x16b)]}),_0x1054ab[_0x595edf(0x16d)](_0x595edf(0x154),'WhatsappAccountId',{'type':_0xf4c7f0[_0x595edf(0x16b)]}),_0x1054ab[_0x595edf(0x16d)](_0x595edf(0x151),_0x595edf(0x186),{'type':_0xf4c7f0[_0x595edf(0x143)],'defaultValue':![]}),_0x1054ab[_0x595edf(0x16d)](_0x595edf(0x151),_0x595edf(0x17d),{'type':_0xf4c7f0['BOOLEAN'],'defaultValue':![]}),_0x1054ab['query'](_0x595edf(0x169)),_0x1054ab[_0x595edf(0x192)](_0x595edf(0x16a)),_0x1054ab[_0x595edf(0x192)](_0x595edf(0x172)),_0x1054ab[_0x595edf(0x192)](_0x595edf(0x181)),_0x1054ab[_0x595edf(0x16d)](_0x595edf(0x196),'vidaooSessionId',{'type':_0xf4c7f0[_0x595edf(0x18c)]}),_0x1054ab[_0x595edf(0x16d)]('chat_websites',_0x595edf(0x182),{'type':_0xf4c7f0[_0x595edf(0x143)],'defaultValue':![]}),_0x1054ab[_0x595edf(0x16d)](_0x595edf(0x157),_0x595edf(0x174),{'type':_0xf4c7f0['STRING']}),_0x1054ab[_0x595edf(0x16d)](_0x595edf(0x15a),_0x595edf(0x153),{'type':_0xf4c7f0['TEXT']}),_0x1054ab['addColumn'](_0x595edf(0x15a),'transcribeName',{'type':_0xf4c7f0[_0x595edf(0x13d)]}),_0x1054ab[_0x595edf(0x16d)](_0x595edf(0x15a),_0x595edf(0x14e),{'type':_0xf4c7f0[_0x595edf(0x13d)],'defaultValue':'NEW'}),_0x1054ab['addColumn'](_0x595edf(0x15a),'fileUri',{'type':_0xf4c7f0[_0x595edf(0x18c)]}),_0x1054ab[_0x595edf(0x16d)]('voice_recordings',_0x595edf(0x150),{'type':_0xf4c7f0[_0x595edf(0x18c)]}),_0x1054ab[_0x595edf(0x16d)](_0x595edf(0x15a),_0x595edf(0x156),{'type':_0xf4c7f0[_0x595edf(0x18c)]}),_0x1054ab[_0x595edf(0x16d)](_0x595edf(0x15a),_0x595edf(0x188),{'type':_0xf4c7f0[_0x595edf(0x13d)]}),_0x1054ab['addColumn'](_0x595edf(0x15a),_0x595edf(0x18a),{'type':_0xf4c7f0[_0x595edf(0x18b)]}),_0x1054ab[_0x595edf(0x16d)](_0x595edf(0x15a),_0x595edf(0x14f),{'type':_0xf4c7f0[_0x595edf(0x18b)]}),_0x1054ab[_0x595edf(0x16d)](_0x595edf(0x15a),_0x595edf(0x167),{'type':_0xf4c7f0[_0x595edf(0x18b)]}),_0x1054ab[_0x595edf(0x16d)](_0x595edf(0x15a),_0x595edf(0x13e),{'type':_0xf4c7f0[_0x595edf(0x18b)]}),_0x1054ab[_0x595edf(0x16d)](_0x595edf(0x15a),'tempSentiment',{'type':_0xf4c7f0[_0x595edf(0x143)]}),_0x1054ab[_0x595edf(0x16d)]('settings','transcribe',{'type':_0xf4c7f0['BOOLEAN']}),_0x1054ab[_0x595edf(0x16d)](_0x595edf(0x14a),_0x595edf(0x13f),{'type':_0xf4c7f0[_0x595edf(0x143)]}),_0x1054ab[_0x595edf(0x16d)](_0x595edf(0x14a),'transcribeAccountId',{'type':_0xf4c7f0[_0x595edf(0x16b)]}),_0x1054ab[_0x595edf(0x16d)]('settings','transcribeRegion',{'type':_0xf4c7f0[_0x595edf(0x13d)]}),_0x1054ab[_0x595edf(0x16d)]('settings',_0x595edf(0x188),{'type':_0xf4c7f0[_0x595edf(0x143)]}),_0x1054ab['addColumn'](_0x595edf(0x14a),_0x595edf(0x176),{'type':_0xf4c7f0[_0x595edf(0x143)]}),_0x1054ab[_0x595edf(0x16d)](_0x595edf(0x14a),_0x595edf(0x142),{'type':_0xf4c7f0[_0x595edf(0x16b)]}),_0x1054ab[_0x595edf(0x16d)]('settings',_0x595edf(0x148),{'type':_0xf4c7f0[_0x595edf(0x13d)]}),_0x1054ab['addColumn'](_0x595edf(0x14a),_0x595edf(0x141),{'type':_0xf4c7f0[_0x595edf(0x13d)]}),_0x1054ab[_0x595edf(0x16d)]('settings',_0x595edf(0x180),{'type':_0xf4c7f0[_0x595edf(0x13d)]}),_0x1054ab[_0x595edf(0x158)](_0x554aff);});},'down':function(){}}; \ No newline at end of file +const a1177_0x265d=['INTEGER','\x20`mandatoryDisposition`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','util','query\x20%s','UPDATE\x20users\x20SET\x20permissions=\x27101,102,103,113,110,104,105,106,107,108,109,100,111,114\x27\x20WHERE\x20role=\x27agent\x27\x20AND\x20permissions=\x27101,102,103,110,104,105,106,107,108,109,100,111\x27','automaticTranscribe','tempSentiment','FLOAT','sNeutral','\x20`agentTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','sentiment','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20REFERENCES\x20`tools_pauses`\x20(`id`)\x20ON\x20DELETE\x20NO\x20ACTION\x20ON\x20UPDATE\x20CASCADE,','exports','dropTable','whatsappPause','CREATE\x20TABLE\x20`whatsapp_accounts`\x20(','removeIndex\x20%s\x20%s','\x20`queueTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','language','transcribeAccountId','NEW','tools_dispositions','tail','stringify','Added\x20column\x20%s\x20to\x20%s','query','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`name_whatsapp`\x20UNIQUE\x20KEY\x20(`name`,`WhatsappAccountId`)','finally','transcribeRegion','tools_canned_answers','\x20`phone`\x20varchar(255)\x20DEFAULT\x20NULL,','../config/logger','fileText','\x20`notificationSound`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','\x20`ListId`\x20int(11)\x20DEFAULT\x20NULL,','join','users','sMixed','migration','\x20`remote`\x20varchar(255)\x20NOT\x20NULL,','then','\x20`agentTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','indexName','\x20`createdAt`\x20datetime\x20NOT\x20NULL,','removeIndex','failureReason','chat_websites','chat_interactions','sNegative','catch','sentimentRegion','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`tools_dispositions_ibfk_7`\x20FOREIGN\x20KEY\x20(`WhatsappAccountId`)\x20REFERENCES\x20`whatsapp_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','inspect','WhatsappAccountId','sequence','info','settings','changeColumn','indicesType','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','transcribeStatus','\x20`type`\x20enum(\x27twilio\x27)\x20DEFAULT\x20NULL,','\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','addIndex','addIndex\x20%s\x20%s\x20%s\x20[%s]','fileUri','renameColumn','\x20`waitForTheAssignedAgent`\x20int(11)\x20DEFAULT\x20\x2710\x27,','TEXT','addColumn',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','\x20`token`\x20varchar(255)\x20DEFAULT\x20NULL,','Changed\x20column\x20%s\x20in\x20table\x20%s','vidaooEscalation','queryInterface','enqueue','voice_recordings','prototype','BOOLEAN','vidaooSessionId','STRING','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`ListId`)\x20REFERENCES\x20`cm_lists`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','\x20`accountSid`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20`authToken`\x20varchar(255)\x20DEFAULT\x20NULL,'];(function(_0x5aff41,_0x2415fb){const _0x265de2=function(_0x1aabe6){while(--_0x1aabe6){_0x5aff41['push'](_0x5aff41['shift']());}};_0x265de2(++_0x2415fb);}(a1177_0x265d,0x7b));const a1177_0x1aab=function(_0x5aff41,_0x2415fb){_0x5aff41=_0x5aff41-0xc9;let _0x265de2=a1177_0x265d[_0x5aff41];return _0x265de2;};const a1177_0x2aaad8=a1177_0x1aab;'use strict';const util=require(a1177_0x2aaad8(0xf8)),logger=require(a1177_0x2aaad8(0x115))(a1177_0x2aaad8(0x11c)),Sequence=function(){};Sequence['prototype'][a1177_0x2aaad8(0xed)]=function(_0x2110fa){const _0x17ea7e=a1177_0x2aaad8;this[_0x17ea7e(0x10c)]=this[_0x17ea7e(0x10c)]?this[_0x17ea7e(0x10c)][_0x17ea7e(0x111)](_0x2110fa):_0x2110fa();};const Migration=function(_0x1eadf1){const _0x1a3a5=a1177_0x2aaad8;this['queryInterface']=_0x1eadf1,this[_0x1a3a5(0xd8)]=new Sequence();};Migration[a1177_0x2aaad8(0xef)][a1177_0x2aaad8(0xdb)]=function(_0x2aa6c8,_0x504bd3,_0x46d93a){const _0x46a5c4=a1177_0x2aaad8,_0x34b384=this;this[_0x46a5c4(0xd8)][_0x46a5c4(0xed)](function(){const _0x38b52d=_0x46a5c4;return _0x34b384[_0x38b52d(0xec)][_0x38b52d(0xdb)](_0x2aa6c8,_0x504bd3,_0x46d93a)[_0x38b52d(0xca)](function(){const _0x345165=_0x38b52d;logger[_0x345165(0xd9)](_0x345165(0xea),_0x504bd3,_0x2aa6c8);})[_0x38b52d(0xd3)](function(_0x21e2f9){const _0x386455=_0x38b52d;logger[_0x386455(0xd9)](JSON[_0x386455(0x10d)](_0x21e2f9));});});},Migration[a1177_0x2aaad8(0xef)][a1177_0x2aaad8(0xe7)]=function(_0x2396e9,_0x35cc37,_0x554ef9){const _0x5ee371=a1177_0x2aaad8,_0x487c91=this;this[_0x5ee371(0xd8)]['enqueue'](function(){const _0x5ad29e=_0x5ee371;return _0x487c91[_0x5ad29e(0xec)][_0x5ad29e(0xe7)](_0x2396e9,_0x35cc37,_0x554ef9)[_0x5ad29e(0xca)](function(){const _0x3d2315=_0x5ad29e;logger[_0x3d2315(0xd9)](_0x3d2315(0x10e),_0x35cc37,_0x2396e9);})['catch'](function(_0x4ad989){const _0x59e3ef=_0x5ad29e;logger['info'](JSON[_0x59e3ef(0x10d)](_0x4ad989));});});},Migration['prototype'][a1177_0x2aaad8(0x103)]=function(_0x1f09ea){const _0x5a15cd=this;this['sequence']['enqueue'](function(){const _0x2c01c2=a1177_0x1aab;return _0x5a15cd[_0x2c01c2(0xec)][_0x2c01c2(0x103)](_0x1f09ea,{'force':!![]})[_0x2c01c2(0xca)](function(){const _0x20d991=_0x2c01c2;logger[_0x20d991(0xd9)]('table\x20dropped\x20%s',_0x1f09ea);})[_0x2c01c2(0xd3)](function(_0x18e6db){const _0x4c2fec=_0x2c01c2;logger[_0x4c2fec(0xd9)](JSON[_0x4c2fec(0x10d)](_0x18e6db));});});},Migration[a1177_0x2aaad8(0xef)][a1177_0x2aaad8(0xe1)]=function(_0x3d2f3c,_0x53ca9d,_0x230feb){const _0x5c82b0=a1177_0x2aaad8,_0x300bc4=this;this[_0x5c82b0(0xd8)]['enqueue'](function(){const _0x2805f5=_0x5c82b0;return _0x300bc4[_0x2805f5(0xec)][_0x2805f5(0xe1)](_0x3d2f3c,_0x53ca9d,{'indexName':_0x230feb[_0x2805f5(0xcc)],'indicesType':_0x230feb['indicesType']})[_0x2805f5(0xca)](function(){const _0x4fbda6=_0x2805f5;logger[_0x4fbda6(0xd9)](_0x4fbda6(0xe2),_0x3d2f3c,_0x53ca9d[_0x4fbda6(0x119)](','),_0x230feb[_0x4fbda6(0xcc)],_0x230feb[_0x4fbda6(0xdc)]);})[_0x2805f5(0xd3)](function(_0x2a9ed3){const _0x4629f5=_0x2805f5;logger[_0x4629f5(0xd9)](JSON[_0x4629f5(0x10d)](_0x2a9ed3));});});},Migration['prototype'][a1177_0x2aaad8(0xce)]=function(_0x1b43fa,_0x5ef5df){const _0x207581=a1177_0x2aaad8,_0x45b0f8=this;this[_0x207581(0xd8)][_0x207581(0xed)](function(){const _0x15799f=_0x207581;return _0x45b0f8['queryInterface'][_0x15799f(0xce)](_0x1b43fa,_0x5ef5df)[_0x15799f(0xca)](function(){const _0x2c57af=_0x15799f;logger[_0x2c57af(0xd9)](_0x2c57af(0x106),_0x1b43fa,_0x5ef5df);})[_0x15799f(0xd3)](function(_0x394293){const _0x160002=_0x15799f;logger[_0x160002(0xd9)](JSON[_0x160002(0x10d)](_0x394293));});});},Migration[a1177_0x2aaad8(0xef)][a1177_0x2aaad8(0x10f)]=function(_0x241883){const _0x592f3b=a1177_0x2aaad8,_0x5e9acd=this;this[_0x592f3b(0xd8)][_0x592f3b(0xed)](function(){const _0x3c69c0=_0x592f3b;return _0x5e9acd[_0x3c69c0(0xec)]['sequelize'][_0x3c69c0(0x10f)](_0x241883)['then'](function(){const _0x462e5d=_0x3c69c0;logger['info'](_0x462e5d(0xf9),_0x241883);})[_0x3c69c0(0xd3)](function(_0x40a004){logger['info'](JSON['stringify'](_0x40a004));});});},Migration[a1177_0x2aaad8(0xef)]['removeColumn']=function(_0x26fb1e,_0x304855){const _0x17bcc6=a1177_0x2aaad8,_0x5e4ffe=this;this['sequence'][_0x17bcc6(0xed)](function(){const _0x177472=_0x17bcc6;return _0x5e4ffe[_0x177472(0xec)]['removeColumn'](_0x26fb1e,_0x304855)[_0x177472(0xca)](function(){const _0x460717=_0x177472;logger[_0x460717(0xd9)]('Removed\x20column\x20%s\x20from\x20%s',_0x304855,_0x26fb1e);})[_0x177472(0xd3)](function(_0x1bec5f){const _0x22958c=_0x177472;logger[_0x22958c(0xd9)](util[_0x22958c(0xd6)](_0x1bec5f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1177_0x2aaad8(0xe4)]=function(_0x70cb1f,_0x4dbdab,_0x15a9d0){const _0x401c9e=a1177_0x2aaad8,_0x32875e=this;this[_0x401c9e(0xd8)][_0x401c9e(0xed)](function(){const _0x1c5cc9=_0x401c9e;return _0x32875e['queryInterface'][_0x1c5cc9(0xe4)](_0x70cb1f,_0x4dbdab,_0x15a9d0)[_0x1c5cc9(0xca)](function(){const _0x2c1792=_0x1c5cc9;logger[_0x2c1792(0xd9)](_0x2c1792(0xdd),_0x4dbdab,_0x15a9d0,_0x70cb1f);})[_0x1c5cc9(0xd3)](function(_0xd36f88){const _0x21e41d=_0x1c5cc9;logger[_0x21e41d(0xd9)](util[_0x21e41d(0xd6)](_0xd36f88,{'showHidden':![],'depth':null}));});});},Migration[a1177_0x2aaad8(0xef)]['final']=function(_0x132078){const _0x102fcd=a1177_0x2aaad8;this[_0x102fcd(0xd8)][_0x102fcd(0xed)](function(){return _0x132078();});},module[a1177_0x2aaad8(0x102)]={'up':function(_0x1f0ea6,_0x5c41ab){return new Promise(function(_0x4616a2){const _0x277c2e=a1177_0x1aab,_0x38a474=new Migration(_0x1f0ea6);_0x38a474[_0x277c2e(0x10f)](_0x277c2e(0x105)+'\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,'+'\x20`name`\x20varchar(255)\x20NOT\x20NULL,'+'\x20`key`\x20varchar(255)\x20NOT\x20NULL,'+_0x277c2e(0xc9)+_0x277c2e(0xe9)+_0x277c2e(0x114)+_0x277c2e(0xdf)+_0x277c2e(0xf4)+_0x277c2e(0xf5)+'\x20`notificationTemplate`\x20text,'+_0x277c2e(0x117)+'\x20`notificationShake`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,'+_0x277c2e(0xe5)+_0x277c2e(0x107)+'\x20`queueTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,'+_0x277c2e(0xcb)+_0x277c2e(0xff)+'\x20`mandatoryDispositionPauseId`\x20int(11)\x20DEFAULT\x20NULL,'+_0x277c2e(0xf7)+_0x277c2e(0xe0)+_0x277c2e(0xcd)+'\x20`updatedAt`\x20datetime\x20NOT\x20NULL,'+_0x277c2e(0x118)+'\x20PRIMARY\x20KEY\x20(`id`),'+'\x20UNIQUE\x20KEY\x20`name`\x20(`name`),'+'\x20KEY\x20`mandatoryDispositionPauseId`\x20(`mandatoryDispositionPauseId`),'+'\x20KEY\x20`ListId`\x20(`ListId`),'+_0x277c2e(0x101)+_0x277c2e(0xf3)+_0x277c2e(0xe8)),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0x10b),_0x277c2e(0xd7),{'type':_0x5c41ab[_0x277c2e(0xf6)]}),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0x113),_0x277c2e(0xd7),{'type':_0x5c41ab[_0x277c2e(0xf6)]}),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0x11a),_0x277c2e(0x104),{'type':_0x5c41ab[_0x277c2e(0xf0)],'defaultValue':![]}),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0x11a),'whatsappCapacity',{'type':_0x5c41ab[_0x277c2e(0xf0)],'defaultValue':![]}),_0x38a474[_0x277c2e(0x10f)](_0x277c2e(0xd5)),_0x38a474['query'](_0x277c2e(0x110)),_0x38a474[_0x277c2e(0x10f)]('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'),_0x38a474[_0x277c2e(0x10f)](_0x277c2e(0xfa)),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0xd1),_0x277c2e(0xf1),{'type':_0x5c41ab['TEXT']}),_0x38a474['addColumn']('chat_websites',_0x277c2e(0xeb),{'type':_0x5c41ab[_0x277c2e(0xf0)],'defaultValue':![]}),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0xd0),'vidaooApiKey',{'type':_0x5c41ab[_0x277c2e(0xf2)]}),_0x38a474['addColumn'](_0x277c2e(0xee),'location',{'type':_0x5c41ab[_0x277c2e(0xe6)]}),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0xee),'transcribeName',{'type':_0x5c41ab[_0x277c2e(0xf2)]}),_0x38a474[_0x277c2e(0xe7)]('voice_recordings',_0x277c2e(0xde),{'type':_0x5c41ab[_0x277c2e(0xf2)],'defaultValue':_0x277c2e(0x10a)}),_0x38a474[_0x277c2e(0xe7)]('voice_recordings',_0x277c2e(0xe3),{'type':_0x5c41ab[_0x277c2e(0xe6)]}),_0x38a474['addColumn'](_0x277c2e(0xee),_0x277c2e(0x116),{'type':_0x5c41ab[_0x277c2e(0xe6)]}),_0x38a474[_0x277c2e(0xe7)]('voice_recordings',_0x277c2e(0xcf),{'type':_0x5c41ab[_0x277c2e(0xe6)]}),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0xee),_0x277c2e(0x100),{'type':_0x5c41ab['STRING']}),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0xee),'sPositive',{'type':_0x5c41ab[_0x277c2e(0xfd)]}),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0xee),_0x277c2e(0xd2),{'type':_0x5c41ab['FLOAT']}),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0xee),_0x277c2e(0xfe),{'type':_0x5c41ab['FLOAT']}),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0xee),_0x277c2e(0x11b),{'type':_0x5c41ab[_0x277c2e(0xfd)]}),_0x38a474[_0x277c2e(0xe7)]('voice_recordings',_0x277c2e(0xfc),{'type':_0x5c41ab['BOOLEAN']}),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0xda),'transcribe',{'type':_0x5c41ab[_0x277c2e(0xf0)]}),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0xda),_0x277c2e(0xfb),{'type':_0x5c41ab['BOOLEAN']}),_0x38a474[_0x277c2e(0xe7)]('settings',_0x277c2e(0x109),{'type':_0x5c41ab['INTEGER']}),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0xda),_0x277c2e(0x112),{'type':_0x5c41ab['STRING']}),_0x38a474[_0x277c2e(0xe7)]('settings',_0x277c2e(0x100),{'type':_0x5c41ab[_0x277c2e(0xf0)]}),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0xda),'automaticSentiment',{'type':_0x5c41ab[_0x277c2e(0xf0)]}),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0xda),'sentimentAccountId',{'type':_0x5c41ab['INTEGER']}),_0x38a474[_0x277c2e(0xe7)](_0x277c2e(0xda),_0x277c2e(0xd4),{'type':_0x5c41ab[_0x277c2e(0xf2)]}),_0x38a474[_0x277c2e(0xe7)]('settings',_0x277c2e(0x108),{'type':_0x5c41ab[_0x277c2e(0xf2)]}),_0x38a474[_0x277c2e(0xe7)]('settings','bucket',{'type':_0x5c41ab[_0x277c2e(0xf2)]}),_0x38a474['final'](_0x4616a2);});},'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 268eb6e..e86c3a0 100644 --- a/server/migrations/2.5.1.js +++ b/server/migrations/2.5.1.js @@ -1 +1 @@ -const a1178_0x4933=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','indexName','then','renameColumn','table\x20dropped\x20%s','queryInterface','final','removeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','finally','util','tail','prototype','catch','indicesType','query\x20%s','changeColumn','sequelize','stringify','enqueue','removeIndex\x20%s\x20%s','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','addColumn','removeIndex','Removed\x20column\x20%s\x20from\x20%s','dropTable','query','addIndex','Added\x20column\x20%s\x20to\x20%s'];(function(_0x5154f1,_0x13d271){const _0x4933ec=function(_0x2499a8){while(--_0x2499a8){_0x5154f1['push'](_0x5154f1['shift']());}};_0x4933ec(++_0x13d271);}(a1178_0x4933,0x11d));const a1178_0x2499=function(_0x5154f1,_0x13d271){_0x5154f1=_0x5154f1-0x136;let _0x4933ec=a1178_0x4933[_0x5154f1];return _0x4933ec;};const a1178_0x5a2229=a1178_0x2499;'use strict';const util=require(a1178_0x5a2229(0x14e)),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1178_0x5a2229(0x150)][a1178_0x5a2229(0x136)]=function(_0x2e9b10){const _0x4d0996=a1178_0x5a2229;this['tail']=this[_0x4d0996(0x14f)]?this[_0x4d0996(0x14f)][_0x4d0996(0x14d)](_0x2e9b10):_0x2e9b10();};const Migration=function(_0x1a22e8){const _0x1e1300=a1178_0x5a2229;this[_0x1e1300(0x148)]=_0x1a22e8,this[_0x1e1300(0x14c)]=new Sequence();};Migration[a1178_0x5a2229(0x150)][a1178_0x5a2229(0x154)]=function(_0x5ce933,_0x484284,_0x50fee5){const _0x693711=a1178_0x5a2229,_0x22c061=this;this[_0x693711(0x14c)][_0x693711(0x136)](function(){const _0x526d50=_0x693711;return _0x22c061['queryInterface'][_0x526d50(0x154)](_0x5ce933,_0x484284,_0x50fee5)['then'](function(){const _0x239052=_0x526d50;logger[_0x239052(0x143)](_0x239052(0x139),_0x484284,_0x5ce933);})[_0x526d50(0x151)](function(_0x25959a){const _0x4d2c78=_0x526d50;logger[_0x4d2c78(0x143)](JSON[_0x4d2c78(0x156)](_0x25959a));});});},Migration[a1178_0x5a2229(0x150)][a1178_0x5a2229(0x13b)]=function(_0x31e4df,_0x3511e8,_0x383203){const _0x5b12d9=a1178_0x5a2229,_0x2873fc=this;this['sequence'][_0x5b12d9(0x136)](function(){const _0x44ae27=_0x5b12d9;return _0x2873fc['queryInterface'][_0x44ae27(0x13b)](_0x31e4df,_0x3511e8,_0x383203)[_0x44ae27(0x145)](function(){const _0xac63c8=_0x44ae27;logger[_0xac63c8(0x143)](_0xac63c8(0x141),_0x3511e8,_0x31e4df);})['catch'](function(_0x7f3e77){logger['info'](JSON['stringify'](_0x7f3e77));});});},Migration[a1178_0x5a2229(0x150)]['dropTable']=function(_0xfa9551){const _0x4bd1b2=a1178_0x5a2229,_0x55812d=this;this['sequence'][_0x4bd1b2(0x136)](function(){const _0x1b7a9b=_0x4bd1b2;return _0x55812d[_0x1b7a9b(0x148)][_0x1b7a9b(0x13e)](_0xfa9551,{'force':!![]})['then'](function(){const _0x28b756=_0x1b7a9b;logger[_0x28b756(0x143)](_0x28b756(0x147),_0xfa9551);})[_0x1b7a9b(0x151)](function(_0x2ae833){const _0x4562f6=_0x1b7a9b;logger['info'](JSON[_0x4562f6(0x156)](_0x2ae833));});});},Migration[a1178_0x5a2229(0x150)][a1178_0x5a2229(0x140)]=function(_0x26fc32,_0xcf22cb,_0x6646b3){const _0x4f0574=a1178_0x5a2229,_0x86fe7=this;this[_0x4f0574(0x14c)][_0x4f0574(0x136)](function(){const _0x2ac700=_0x4f0574;return _0x86fe7[_0x2ac700(0x148)][_0x2ac700(0x140)](_0x26fc32,_0xcf22cb,{'indexName':_0x6646b3[_0x2ac700(0x144)],'indicesType':_0x6646b3[_0x2ac700(0x152)]})['then'](function(){const _0x1565e9=_0x2ac700;logger[_0x1565e9(0x143)](_0x1565e9(0x14b),_0x26fc32,_0xcf22cb['join'](','),_0x6646b3[_0x1565e9(0x144)],_0x6646b3[_0x1565e9(0x152)]);})[_0x2ac700(0x151)](function(_0x570b10){const _0x315d29=_0x2ac700;logger[_0x315d29(0x143)](JSON['stringify'](_0x570b10));});});},Migration[a1178_0x5a2229(0x150)][a1178_0x5a2229(0x13c)]=function(_0x5dc5cf,_0x3e3985){const _0x58dead=a1178_0x5a2229,_0x4da21a=this;this[_0x58dead(0x14c)]['enqueue'](function(){const _0x4953b7=_0x58dead;return _0x4da21a[_0x4953b7(0x148)][_0x4953b7(0x13c)](_0x5dc5cf,_0x3e3985)[_0x4953b7(0x145)](function(){const _0x2d08aa=_0x4953b7;logger[_0x2d08aa(0x143)](_0x2d08aa(0x137),_0x5dc5cf,_0x3e3985);})[_0x4953b7(0x151)](function(_0x105e38){logger['info'](JSON['stringify'](_0x105e38));});});},Migration[a1178_0x5a2229(0x150)][a1178_0x5a2229(0x13f)]=function(_0x3f08f4){const _0x3cf097=a1178_0x5a2229,_0x1169d6=this;this[_0x3cf097(0x14c)]['enqueue'](function(){const _0x32b600=_0x3cf097;return _0x1169d6[_0x32b600(0x148)][_0x32b600(0x155)][_0x32b600(0x13f)](_0x3f08f4)[_0x32b600(0x145)](function(){const _0x21ac22=_0x32b600;logger[_0x21ac22(0x143)](_0x21ac22(0x153),_0x3f08f4);})[_0x32b600(0x151)](function(_0x3adf52){const _0x38bde8=_0x32b600;logger['info'](JSON[_0x38bde8(0x156)](_0x3adf52));});});},Migration[a1178_0x5a2229(0x150)]['removeColumn']=function(_0x17c96a,_0x52a184){const _0x1d96dd=a1178_0x5a2229,_0x2fb344=this;this[_0x1d96dd(0x14c)][_0x1d96dd(0x136)](function(){const _0x3786f8=_0x1d96dd;return _0x2fb344[_0x3786f8(0x148)][_0x3786f8(0x14a)](_0x17c96a,_0x52a184)[_0x3786f8(0x145)](function(){const _0x51d463=_0x3786f8;logger[_0x51d463(0x143)](_0x51d463(0x13d),_0x52a184,_0x17c96a);})['catch'](function(_0x448399){const _0x2d50e8=_0x3786f8;logger[_0x2d50e8(0x143)](util['inspect'](_0x448399,{'showHidden':![],'depth':null}));});});},Migration[a1178_0x5a2229(0x150)]['renameColumn']=function(_0x330ad4,_0x146e38,_0x501efe){const _0x169450=a1178_0x5a2229,_0x244fa1=this;this['sequence'][_0x169450(0x136)](function(){const _0x23ec50=_0x169450;return _0x244fa1[_0x23ec50(0x148)][_0x23ec50(0x146)](_0x330ad4,_0x146e38,_0x501efe)[_0x23ec50(0x145)](function(){const _0x53daac=_0x23ec50;logger[_0x53daac(0x143)](_0x53daac(0x142),_0x146e38,_0x501efe,_0x330ad4);})['catch'](function(_0x1fe8e1){const _0x27ca8e=_0x23ec50;logger[_0x27ca8e(0x143)](util[_0x27ca8e(0x138)](_0x1fe8e1,{'showHidden':![],'depth':null}));});});},Migration[a1178_0x5a2229(0x150)]['final']=function(_0x1b2dce){this['sequence']['enqueue'](function(){return _0x1b2dce();});},module[a1178_0x5a2229(0x13a)]={'up':function(_0x3ff985){return new Promise(function(_0x18e0eb){const _0x1113ff=a1178_0x2499,_0x190d34=new Migration(_0x3ff985);_0x190d34[_0x1113ff(0x149)](_0x18e0eb);});},'down':function(){}}; \ No newline at end of file +const a1178_0x1f0f=['sequelize','stringify','finally','indexName','renameColumn','dropTable','changeColumn','exports','then','query','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','sequence','final','table\x20dropped\x20%s','prototype','Added\x20column\x20%s\x20to\x20%s','indicesType','Removed\x20column\x20%s\x20from\x20%s','removeColumn','inspect','addIndex\x20%s\x20%s\x20%s\x20[%s]','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','tail','migration','queryInterface','query\x20%s','removeIndex\x20%s\x20%s','info','removeIndex','addIndex'];(function(_0x1345dd,_0x54963e){const _0x1f0fc7=function(_0xa5ffcf){while(--_0xa5ffcf){_0x1345dd['push'](_0x1345dd['shift']());}};_0x1f0fc7(++_0x54963e);}(a1178_0x1f0f,0x193));const a1178_0xa5ff=function(_0x1345dd,_0x54963e){_0x1345dd=_0x1345dd-0x1bc;let _0x1f0fc7=a1178_0x1f0f[_0x1345dd];return _0x1f0fc7;};const a1178_0x2c8593=a1178_0xa5ff;'use strict';const util=require('util'),logger=require('../config/logger')(a1178_0x2c8593(0x1cf)),Sequence=function(){};Sequence[a1178_0x2c8593(0x1c5)]['enqueue']=function(_0xa24467){const _0x341ed2=a1178_0x2c8593;this[_0x341ed2(0x1ce)]=this['tail']?this['tail'][_0x341ed2(0x1d8)](_0xa24467):_0xa24467();};const Migration=function(_0x2b1d71){const _0x2e6942=a1178_0x2c8593;this[_0x2e6942(0x1d0)]=_0x2b1d71,this[_0x2e6942(0x1c2)]=new Sequence();};Migration[a1178_0x2c8593(0x1c5)][a1178_0x2c8593(0x1dc)]=function(_0x406a2a,_0x46058a,_0x581844){const _0x4efd36=this;this['sequence']['enqueue'](function(){const _0x2e59c2=a1178_0xa5ff;return _0x4efd36['queryInterface']['changeColumn'](_0x406a2a,_0x46058a,_0x581844)['then'](function(){const _0x581262=a1178_0xa5ff;logger[_0x581262(0x1d3)](_0x581262(0x1c0),_0x46058a,_0x406a2a);})[_0x2e59c2(0x1bf)](function(_0xb6ae88){const _0x1fc04b=_0x2e59c2;logger[_0x1fc04b(0x1d3)](JSON['stringify'](_0xb6ae88));});});},Migration[a1178_0x2c8593(0x1c5)][a1178_0x2c8593(0x1c1)]=function(_0x13e3e4,_0x174bf8,_0x48b898){const _0x5f560b=a1178_0x2c8593,_0x5dd33a=this;this[_0x5f560b(0x1c2)]['enqueue'](function(){const _0x3473a6=_0x5f560b;return _0x5dd33a[_0x3473a6(0x1d0)][_0x3473a6(0x1c1)](_0x13e3e4,_0x174bf8,_0x48b898)['then'](function(){const _0x53e602=_0x3473a6;logger[_0x53e602(0x1d3)](_0x53e602(0x1c6),_0x174bf8,_0x13e3e4);})[_0x3473a6(0x1bf)](function(_0x588c15){const _0x421981=_0x3473a6;logger[_0x421981(0x1d3)](JSON['stringify'](_0x588c15));});});},Migration[a1178_0x2c8593(0x1c5)][a1178_0x2c8593(0x1db)]=function(_0x4fc43d){const _0x1e4223=a1178_0x2c8593,_0xb638f8=this;this[_0x1e4223(0x1c2)][_0x1e4223(0x1cd)](function(){const _0x565411=_0x1e4223;return _0xb638f8[_0x565411(0x1d0)][_0x565411(0x1db)](_0x4fc43d,{'force':!![]})[_0x565411(0x1bd)](function(){const _0x5b321f=_0x565411;logger[_0x5b321f(0x1d3)](_0x5b321f(0x1c4),_0x4fc43d);})['catch'](function(_0xf24ec2){const _0x2db8d2=_0x565411;logger[_0x2db8d2(0x1d3)](JSON[_0x2db8d2(0x1d7)](_0xf24ec2));});});},Migration['prototype'][a1178_0x2c8593(0x1d5)]=function(_0x29e684,_0x12102a,_0x2ea36a){const _0x442e86=a1178_0x2c8593,_0x1e6f8a=this;this[_0x442e86(0x1c2)][_0x442e86(0x1cd)](function(){const _0x158a8c=_0x442e86;return _0x1e6f8a['queryInterface'][_0x158a8c(0x1d5)](_0x29e684,_0x12102a,{'indexName':_0x2ea36a['indexName'],'indicesType':_0x2ea36a[_0x158a8c(0x1c7)]})[_0x158a8c(0x1bd)](function(){const _0x4d21b7=_0x158a8c;logger[_0x4d21b7(0x1d3)](_0x4d21b7(0x1cb),_0x29e684,_0x12102a['join'](','),_0x2ea36a[_0x4d21b7(0x1d9)],_0x2ea36a[_0x4d21b7(0x1c7)]);})[_0x158a8c(0x1bf)](function(_0x49ab61){const _0x253d7=_0x158a8c;logger[_0x253d7(0x1d3)](JSON['stringify'](_0x49ab61));});});},Migration['prototype'][a1178_0x2c8593(0x1d4)]=function(_0x5eedc9,_0x242b90){const _0x4b31ae=a1178_0x2c8593,_0xca5770=this;this[_0x4b31ae(0x1c2)]['enqueue'](function(){const _0x101163=_0x4b31ae;return _0xca5770[_0x101163(0x1d0)][_0x101163(0x1d4)](_0x5eedc9,_0x242b90)['then'](function(){const _0x3fa25f=_0x101163;logger[_0x3fa25f(0x1d3)](_0x3fa25f(0x1d2),_0x5eedc9,_0x242b90);})['catch'](function(_0xa1620c){const _0xa6358e=_0x101163;logger[_0xa6358e(0x1d3)](JSON[_0xa6358e(0x1d7)](_0xa1620c));});});},Migration[a1178_0x2c8593(0x1c5)][a1178_0x2c8593(0x1be)]=function(_0xb3789e){const _0x172c9b=a1178_0x2c8593,_0x1ed97b=this;this[_0x172c9b(0x1c2)][_0x172c9b(0x1cd)](function(){const _0x36b1fd=_0x172c9b;return _0x1ed97b[_0x36b1fd(0x1d0)][_0x36b1fd(0x1d6)]['query'](_0xb3789e)[_0x36b1fd(0x1bd)](function(){const _0x3d0fdb=_0x36b1fd;logger[_0x3d0fdb(0x1d3)](_0x3d0fdb(0x1d1),_0xb3789e);})[_0x36b1fd(0x1bf)](function(_0x202713){const _0x196475=_0x36b1fd;logger['info'](JSON[_0x196475(0x1d7)](_0x202713));});});},Migration[a1178_0x2c8593(0x1c5)][a1178_0x2c8593(0x1c9)]=function(_0x4738f6,_0x506730){const _0x2c48ff=a1178_0x2c8593,_0x4be5a8=this;this[_0x2c48ff(0x1c2)][_0x2c48ff(0x1cd)](function(){const _0x598c5b=_0x2c48ff;return _0x4be5a8[_0x598c5b(0x1d0)][_0x598c5b(0x1c9)](_0x4738f6,_0x506730)[_0x598c5b(0x1bd)](function(){const _0x2b492e=_0x598c5b;logger['info'](_0x2b492e(0x1c8),_0x506730,_0x4738f6);})[_0x598c5b(0x1bf)](function(_0x30d8ed){const _0x2b4739=_0x598c5b;logger[_0x2b4739(0x1d3)](util[_0x2b4739(0x1ca)](_0x30d8ed,{'showHidden':![],'depth':null}));});});},Migration[a1178_0x2c8593(0x1c5)][a1178_0x2c8593(0x1da)]=function(_0x481ee2,_0x193edc,_0x536c31){const _0x28d916=a1178_0x2c8593,_0x1146d1=this;this[_0x28d916(0x1c2)]['enqueue'](function(){const _0x375524=_0x28d916;return _0x1146d1[_0x375524(0x1d0)][_0x375524(0x1da)](_0x481ee2,_0x193edc,_0x536c31)[_0x375524(0x1bd)](function(){const _0x5872bb=_0x375524;logger[_0x5872bb(0x1d3)](_0x5872bb(0x1cc),_0x193edc,_0x536c31,_0x481ee2);})['catch'](function(_0x4409d5){const _0x893156=_0x375524;logger['info'](util[_0x893156(0x1ca)](_0x4409d5,{'showHidden':![],'depth':null}));});});},Migration[a1178_0x2c8593(0x1c5)]['final']=function(_0x2240c1){this['sequence']['enqueue'](function(){return _0x2240c1();});},module[a1178_0x2c8593(0x1bc)]={'up':function(_0x55d136){return new Promise(function(_0x830989){const _0x482d8a=a1178_0xa5ff,_0x4157e4=new Migration(_0x55d136);_0x4157e4[_0x482d8a(0x1c3)](_0x830989);});},'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 8817b7f..77cec83 100644 --- a/server/migrations/2.5.2.js +++ b/server/migrations/2.5.2.js @@ -1 +1 @@ -const a1179_0x4855=['dropTable','finally','query','dialNoSuchNumberMaxRetry','removeIndex\x20%s\x20%s','sequelize','catch','stringify','dialNoSuchNumberRetryFrequency','countnosuchnumberretry','dialAgentRejectMaxRetry','ALTER\x20TABLE\x20voice_extensions\x20DROP\x20FOREIGN\x20KEY\x20voice_extensions_ibfk_7','countagentrejectretry','cm_hopper_history','removeColumn','dialDropRetryFrequency','prototype','info','countmachineretry','sequence','voice_queues','countdropretry','cm_hopper','dialMachineRetryFrequency','dialAbandonedRetryFrequency','final','changeColumn','ALTER\x20TABLE\x20whatsapp_messages\x20ENCRYPTION=\x27Y\x27;','exports','countabandonedretry','enqueue','addIndex','ALTER\x20TABLE\x20whatsapp_accounts\x20ENCRYPTION=\x27Y\x27;','ALTER\x20TABLE\x20voice_extensions\x20DROP\x20INDEX\x20voice_extensions_ibfk_7','indicesType','ALTER\x20TABLE\x20report_whatsapp_queue\x20ENCRYPTION=\x27Y\x27;','dialDropMaxRetry','query\x20%s','queryInterface','addIndex\x20%s\x20%s\x20%s\x20[%s]','join','util','ALTER\x20TABLE\x20voice_extensions\x20ADD\x20CONSTRAINT\x20voice_extensions_ibfk_7\x20FOREIGN\x20KEY\x20(VoicePrefixId)\x20REFERENCES\x20voice_prefixes(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20CASCADE','Removed\x20column\x20%s\x20from\x20%s','cm_hopper_final','renameColumn','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indexName','addColumn','dialAbandonedMaxRetry','then','campaigns','tail','INTEGER','ALTER\x20TABLE\x20cloud_providers\x20ENCRYPTION=\x27Y\x27;'];(function(_0x4ad14a,_0x4f5222){const _0x4855be=function(_0xb1ec96){while(--_0xb1ec96){_0x4ad14a['push'](_0x4ad14a['shift']());}};_0x4855be(++_0x4f5222);}(a1179_0x4855,0x145));const a1179_0xb1ec=function(_0x4ad14a,_0x4f5222){_0x4ad14a=_0x4ad14a-0xa5;let _0x4855be=a1179_0x4855[_0x4ad14a];return _0x4855be;};const a1179_0x543719=a1179_0xb1ec;'use strict';const util=require(a1179_0x543719(0xd9)),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1179_0x543719(0xc0)][a1179_0x543719(0xce)]=function(_0x2525de){const _0x5f2eb6=a1179_0x543719;this[_0x5f2eb6(0xad)]=this[_0x5f2eb6(0xad)]?this[_0x5f2eb6(0xad)][_0x5f2eb6(0xb1)](_0x2525de):_0x2525de();};const Migration=function(_0x15839c){const _0x4da14b=a1179_0x543719;this['queryInterface']=_0x15839c,this[_0x4da14b(0xc3)]=new Sequence();};Migration[a1179_0x543719(0xc0)][a1179_0x543719(0xca)]=function(_0xb7f993,_0x4bcc95,_0x819492){const _0x5e58d2=a1179_0x543719,_0x4d8780=this;this[_0x5e58d2(0xc3)][_0x5e58d2(0xce)](function(){const _0x4013c9=_0x5e58d2;return _0x4d8780[_0x4013c9(0xd6)][_0x4013c9(0xca)](_0xb7f993,_0x4bcc95,_0x819492)['then'](function(){const _0x2a5dc4=_0x4013c9;logger[_0x2a5dc4(0xc1)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4bcc95,_0xb7f993);})[_0x4013c9(0xb6)](function(_0x51f5c9){const _0x189cf5=_0x4013c9;logger[_0x189cf5(0xc1)](JSON[_0x189cf5(0xb7)](_0x51f5c9));});});},Migration[a1179_0x543719(0xc0)][a1179_0x543719(0xa9)]=function(_0x515446,_0x2ca0a2,_0x1bb4de){const _0x3803a8=a1179_0x543719,_0x18f289=this;this[_0x3803a8(0xc3)]['enqueue'](function(){const _0x3f0d49=_0x3803a8;return _0x18f289['queryInterface'][_0x3f0d49(0xa9)](_0x515446,_0x2ca0a2,_0x1bb4de)[_0x3f0d49(0xab)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x2ca0a2,_0x515446);})[_0x3f0d49(0xb6)](function(_0x41c0aa){const _0x4e0c8c=_0x3f0d49;logger[_0x4e0c8c(0xc1)](JSON[_0x4e0c8c(0xb7)](_0x41c0aa));});});},Migration[a1179_0x543719(0xc0)][a1179_0x543719(0xb0)]=function(_0x218584){const _0x456f31=a1179_0x543719,_0x5a3742=this;this['sequence'][_0x456f31(0xce)](function(){const _0x5e5276=_0x456f31;return _0x5a3742[_0x5e5276(0xd6)][_0x5e5276(0xb0)](_0x218584,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x218584);})['catch'](function(_0x47b943){const _0x7e1c56=_0x5e5276;logger[_0x7e1c56(0xc1)](JSON['stringify'](_0x47b943));});});},Migration['prototype'][a1179_0x543719(0xcf)]=function(_0x4b092a,_0x53a5ad,_0x33bfaf){const _0x121505=this;this['sequence']['enqueue'](function(){const _0x3c2796=a1179_0xb1ec;return _0x121505[_0x3c2796(0xd6)][_0x3c2796(0xcf)](_0x4b092a,_0x53a5ad,{'indexName':_0x33bfaf[_0x3c2796(0xa8)],'indicesType':_0x33bfaf[_0x3c2796(0xd2)]})[_0x3c2796(0xab)](function(){const _0x288d6b=_0x3c2796;logger[_0x288d6b(0xc1)](_0x288d6b(0xd7),_0x4b092a,_0x53a5ad[_0x288d6b(0xd8)](','),_0x33bfaf['indexName'],_0x33bfaf[_0x288d6b(0xd2)]);})['catch'](function(_0x545327){const _0x27cf57=_0x3c2796;logger['info'](JSON[_0x27cf57(0xb7)](_0x545327));});});},Migration[a1179_0x543719(0xc0)][a1179_0x543719(0xa6)]=function(_0xda2624,_0x157705){const _0x514267=a1179_0x543719,_0x17883f=this;this[_0x514267(0xc3)][_0x514267(0xce)](function(){const _0x3b2a1c=_0x514267;return _0x17883f['queryInterface']['removeIndex'](_0xda2624,_0x157705)[_0x3b2a1c(0xab)](function(){const _0x4603f4=_0x3b2a1c;logger['info'](_0x4603f4(0xb4),_0xda2624,_0x157705);})[_0x3b2a1c(0xb6)](function(_0x2a9053){const _0x4c6368=_0x3b2a1c;logger[_0x4c6368(0xc1)](JSON[_0x4c6368(0xb7)](_0x2a9053));});});},Migration[a1179_0x543719(0xc0)][a1179_0x543719(0xb2)]=function(_0x2420c1){const _0x898058=a1179_0x543719,_0xd66830=this;this[_0x898058(0xc3)]['enqueue'](function(){const _0x16bedd=_0x898058;return _0xd66830[_0x16bedd(0xd6)][_0x16bedd(0xb5)][_0x16bedd(0xb2)](_0x2420c1)[_0x16bedd(0xab)](function(){const _0x501564=_0x16bedd;logger[_0x501564(0xc1)](_0x501564(0xd5),_0x2420c1);})[_0x16bedd(0xb6)](function(_0x10d91e){const _0x1c0f96=_0x16bedd;logger[_0x1c0f96(0xc1)](JSON[_0x1c0f96(0xb7)](_0x10d91e));});});},Migration['prototype']['removeColumn']=function(_0x3f615d,_0x2d464d){const _0x37ca25=a1179_0x543719,_0x26cea0=this;this[_0x37ca25(0xc3)]['enqueue'](function(){const _0x809888=_0x37ca25;return _0x26cea0[_0x809888(0xd6)][_0x809888(0xbe)](_0x3f615d,_0x2d464d)['then'](function(){const _0x4f8630=_0x809888;logger[_0x4f8630(0xc1)](_0x4f8630(0xdb),_0x2d464d,_0x3f615d);})[_0x809888(0xb6)](function(_0x113419){logger['info'](util['inspect'](_0x113419,{'showHidden':![],'depth':null}));});});},Migration[a1179_0x543719(0xc0)][a1179_0x543719(0xa5)]=function(_0x501292,_0x4a4727,_0x2df9d4){const _0x222cfc=a1179_0x543719,_0x3ee423=this;this[_0x222cfc(0xc3)][_0x222cfc(0xce)](function(){const _0x381e77=_0x222cfc;return _0x3ee423['queryInterface'][_0x381e77(0xa5)](_0x501292,_0x4a4727,_0x2df9d4)[_0x381e77(0xab)](function(){const _0x5eab20=_0x381e77;logger[_0x5eab20(0xc1)](_0x5eab20(0xa7),_0x4a4727,_0x2df9d4,_0x501292);})[_0x381e77(0xb6)](function(_0x489e0f){logger['info'](util['inspect'](_0x489e0f,{'showHidden':![],'depth':null}));});});},Migration[a1179_0x543719(0xc0)][a1179_0x543719(0xc9)]=function(_0x1fc12e){const _0x50714b=a1179_0x543719;this[_0x50714b(0xc3)][_0x50714b(0xce)](function(){return _0x1fc12e();});},module[a1179_0x543719(0xcc)]={'up':function(_0x49198e,_0x2fda37){return new Promise(function(_0x4bf78c){const _0x49c280=a1179_0xb1ec,_0x5cd1dc=new Migration(_0x49198e);_0x5cd1dc['query'](_0x49c280(0xd0)),_0x5cd1dc['query']('ALTER\x20TABLE\x20whatsapp_interactions\x20ENCRYPTION=\x27Y\x27;'),_0x5cd1dc[_0x49c280(0xb2)](_0x49c280(0xcb)),_0x5cd1dc[_0x49c280(0xb2)](_0x49c280(0xd3)),_0x5cd1dc[_0x49c280(0xb2)](_0x49c280(0xaf)),_0x5cd1dc[_0x49c280(0xb2)](_0x49c280(0xbb)),_0x5cd1dc['query'](_0x49c280(0xd1)),_0x5cd1dc[_0x49c280(0xb2)](_0x49c280(0xda)),_0x5cd1dc[_0x49c280(0xa9)]('voice_queues',_0x49c280(0xb3),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x3}),_0x5cd1dc['addColumn'](_0x49c280(0xc4),_0x49c280(0xb8),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x96}),_0x5cd1dc['addColumn'](_0x49c280(0xc4),_0x49c280(0xd4),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x3}),_0x5cd1dc[_0x49c280(0xa9)]('voice_queues','dialDropRetryFrequency',{'type':_0x2fda37['INTEGER'],'defaultValue':0x96}),_0x5cd1dc[_0x49c280(0xa9)]('voice_queues',_0x49c280(0xaa),{'type':_0x2fda37['INTEGER'],'defaultValue':0x3}),_0x5cd1dc[_0x49c280(0xa9)](_0x49c280(0xc4),_0x49c280(0xc8),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x96}),_0x5cd1dc['addColumn'](_0x49c280(0xc4),'dialMachineMaxRetry',{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x3}),_0x5cd1dc[_0x49c280(0xa9)](_0x49c280(0xc4),'dialMachineRetryFrequency',{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x96}),_0x5cd1dc['addColumn'](_0x49c280(0xc4),_0x49c280(0xba),{'type':_0x2fda37['INTEGER'],'defaultValue':0x3}),_0x5cd1dc[_0x49c280(0xa9)](_0x49c280(0xc4),'dialAgentRejectRetryFrequency',{'type':_0x2fda37['INTEGER'],'defaultValue':0x96}),_0x5cd1dc[_0x49c280(0xa9)](_0x49c280(0xac),_0x49c280(0xb3),{'type':_0x2fda37['INTEGER'],'defaultValue':0x3}),_0x5cd1dc[_0x49c280(0xa9)]('campaigns','dialNoSuchNumberRetryFrequency',{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x96}),_0x5cd1dc[_0x49c280(0xa9)](_0x49c280(0xac),_0x49c280(0xd4),{'type':_0x2fda37['INTEGER'],'defaultValue':0x3}),_0x5cd1dc[_0x49c280(0xa9)]('campaigns',_0x49c280(0xbf),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x96}),_0x5cd1dc[_0x49c280(0xa9)](_0x49c280(0xac),'dialAbandonedMaxRetry',{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x3}),_0x5cd1dc[_0x49c280(0xa9)]('campaigns',_0x49c280(0xc8),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x96}),_0x5cd1dc[_0x49c280(0xa9)]('campaigns','dialMachineMaxRetry',{'type':_0x2fda37['INTEGER'],'defaultValue':0x3}),_0x5cd1dc[_0x49c280(0xa9)](_0x49c280(0xac),_0x49c280(0xc7),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x96}),_0x5cd1dc['addColumn'](_0x49c280(0xac),_0x49c280(0xba),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x3}),_0x5cd1dc[_0x49c280(0xa9)](_0x49c280(0xac),'dialAgentRejectRetryFrequency',{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x96}),_0x5cd1dc[_0x49c280(0xa9)](_0x49c280(0xc6),_0x49c280(0xb9),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x0}),_0x5cd1dc[_0x49c280(0xa9)]('cm_hopper',_0x49c280(0xc5),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x0}),_0x5cd1dc['addColumn']('cm_hopper','countabandonedretry',{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x0}),_0x5cd1dc[_0x49c280(0xa9)](_0x49c280(0xc6),_0x49c280(0xc2),{'type':_0x2fda37['INTEGER'],'defaultValue':0x0}),_0x5cd1dc[_0x49c280(0xa9)](_0x49c280(0xc6),_0x49c280(0xbc),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x0}),_0x5cd1dc[_0x49c280(0xa9)]('cm_hopper_final',_0x49c280(0xb9),{'type':_0x2fda37['INTEGER'],'defaultValue':0x0}),_0x5cd1dc[_0x49c280(0xa9)]('cm_hopper_final','countdropretry',{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x0}),_0x5cd1dc[_0x49c280(0xa9)]('cm_hopper_final',_0x49c280(0xcd),{'type':_0x2fda37['INTEGER'],'defaultValue':0x0}),_0x5cd1dc[_0x49c280(0xa9)](_0x49c280(0xdc),_0x49c280(0xc2),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x0}),_0x5cd1dc[_0x49c280(0xa9)](_0x49c280(0xdc),_0x49c280(0xbc),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x0}),_0x5cd1dc[_0x49c280(0xa9)](_0x49c280(0xbd),_0x49c280(0xb9),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x0}),_0x5cd1dc[_0x49c280(0xa9)](_0x49c280(0xbd),_0x49c280(0xc5),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x0}),_0x5cd1dc[_0x49c280(0xa9)]('cm_hopper_history',_0x49c280(0xcd),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x0}),_0x5cd1dc[_0x49c280(0xa9)]('cm_hopper_history',_0x49c280(0xc2),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x0}),_0x5cd1dc[_0x49c280(0xa9)](_0x49c280(0xbd),_0x49c280(0xbc),{'type':_0x2fda37[_0x49c280(0xae)],'defaultValue':0x0}),_0x5cd1dc[_0x49c280(0xc9)](_0x4bf78c);});},'down':function(){}}; \ No newline at end of file +const a1179_0x445b=['util','info','dialMachineMaxRetry','dialNoSuchNumberMaxRetry','then','inspect','changeColumn','sequelize','removeColumn','ALTER\x20TABLE\x20voice_extensions\x20ADD\x20CONSTRAINT\x20voice_extensions_ibfk_7\x20FOREIGN\x20KEY\x20(VoicePrefixId)\x20REFERENCES\x20voice_prefixes(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20CASCADE','join','../config/logger','addIndex','dialDropRetryFrequency','dialAgentRejectMaxRetry','dialAgentRejectRetryFrequency','campaigns','migration','dialNoSuchNumberRetryFrequency','addColumn','dialAbandonedMaxRetry','tail','countagentrejectretry','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeIndex','cm_hopper_history','countdropretry','cm_hopper_final','Added\x20column\x20%s\x20to\x20%s','indexName','countabandonedretry','removeIndex\x20%s\x20%s','sequence','query\x20%s','countnosuchnumberretry','query','dialAbandonedRetryFrequency','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','INTEGER','voice_queues','exports','ALTER\x20TABLE\x20whatsapp_interactions\x20ENCRYPTION=\x27Y\x27;','dropTable','prototype','dialMachineRetryFrequency','ALTER\x20TABLE\x20voice_extensions\x20DROP\x20INDEX\x20voice_extensions_ibfk_7','dialDropMaxRetry','indicesType','ALTER\x20TABLE\x20voice_extensions\x20DROP\x20FOREIGN\x20KEY\x20voice_extensions_ibfk_7','cm_hopper','ALTER\x20TABLE\x20cloud_providers\x20ENCRYPTION=\x27Y\x27;','enqueue','countmachineretry','renameColumn','catch','queryInterface','ALTER\x20TABLE\x20report_whatsapp_queue\x20ENCRYPTION=\x27Y\x27;','stringify','final'];(function(_0x2251e1,_0x382465){const _0x445bea=function(_0x11d6f6){while(--_0x11d6f6){_0x2251e1['push'](_0x2251e1['shift']());}};_0x445bea(++_0x382465);}(a1179_0x445b,0x12b));const a1179_0x11d6=function(_0x2251e1,_0x382465){_0x2251e1=_0x2251e1-0x1dc;let _0x445bea=a1179_0x445b[_0x2251e1];return _0x445bea;};const a1179_0xbe3441=a1179_0x11d6;'use strict';const util=require(a1179_0xbe3441(0x1dd)),logger=require(a1179_0xbe3441(0x1e8))(a1179_0xbe3441(0x1ee)),Sequence=function(){};Sequence[a1179_0xbe3441(0x209)][a1179_0xbe3441(0x211)]=function(_0x169aa3){const _0x54a528=a1179_0xbe3441;this[_0x54a528(0x1f2)]=this[_0x54a528(0x1f2)]?this['tail']['finally'](_0x169aa3):_0x169aa3();};const Migration=function(_0x119471){const _0x3ba04d=a1179_0xbe3441;this[_0x3ba04d(0x215)]=_0x119471,this[_0x3ba04d(0x1fd)]=new Sequence();};Migration[a1179_0xbe3441(0x209)][a1179_0xbe3441(0x1e3)]=function(_0x2c8608,_0x475990,_0x331760){const _0x89a2e9=a1179_0xbe3441,_0x297eb6=this;this[_0x89a2e9(0x1fd)][_0x89a2e9(0x211)](function(){const _0x482935=_0x89a2e9;return _0x297eb6[_0x482935(0x215)][_0x482935(0x1e3)](_0x2c8608,_0x475990,_0x331760)['then'](function(){const _0x22d16=_0x482935;logger[_0x22d16(0x1de)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x475990,_0x2c8608);})[_0x482935(0x214)](function(_0x16394e){const _0x29ba38=_0x482935;logger[_0x29ba38(0x1de)](JSON[_0x29ba38(0x217)](_0x16394e));});});},Migration[a1179_0xbe3441(0x209)]['addColumn']=function(_0x111145,_0x134081,_0x444553){const _0x4021e1=a1179_0xbe3441,_0x467d5e=this;this[_0x4021e1(0x1fd)]['enqueue'](function(){const _0x3a447f=_0x4021e1;return _0x467d5e['queryInterface'][_0x3a447f(0x1f0)](_0x111145,_0x134081,_0x444553)['then'](function(){const _0x48a654=_0x3a447f;logger['info'](_0x48a654(0x1f9),_0x134081,_0x111145);})[_0x3a447f(0x214)](function(_0x309f19){const _0x3de534=_0x3a447f;logger[_0x3de534(0x1de)](JSON[_0x3de534(0x217)](_0x309f19));});});},Migration[a1179_0xbe3441(0x209)]['dropTable']=function(_0x20aa05){const _0x38a1a9=a1179_0xbe3441,_0x288b8b=this;this[_0x38a1a9(0x1fd)]['enqueue'](function(){const _0x25d4c9=_0x38a1a9;return _0x288b8b[_0x25d4c9(0x215)][_0x25d4c9(0x208)](_0x20aa05,{'force':!![]})[_0x25d4c9(0x1e1)](function(){const _0x3dd672=_0x25d4c9;logger[_0x3dd672(0x1de)](_0x3dd672(0x203),_0x20aa05);})[_0x25d4c9(0x214)](function(_0x566a15){const _0x1723f9=_0x25d4c9;logger[_0x1723f9(0x1de)](JSON[_0x1723f9(0x217)](_0x566a15));});});},Migration[a1179_0xbe3441(0x209)][a1179_0xbe3441(0x1e9)]=function(_0x58f8fd,_0x62729,_0x7112a0){const _0x4d7585=a1179_0xbe3441,_0x25f090=this;this[_0x4d7585(0x1fd)][_0x4d7585(0x211)](function(){const _0x4188ec=_0x4d7585;return _0x25f090[_0x4188ec(0x215)][_0x4188ec(0x1e9)](_0x58f8fd,_0x62729,{'indexName':_0x7112a0[_0x4188ec(0x1fa)],'indicesType':_0x7112a0[_0x4188ec(0x20d)]})['then'](function(){const _0x5e72f8=_0x4188ec;logger[_0x5e72f8(0x1de)](_0x5e72f8(0x1f4),_0x58f8fd,_0x62729[_0x5e72f8(0x1e7)](','),_0x7112a0[_0x5e72f8(0x1fa)],_0x7112a0[_0x5e72f8(0x20d)]);})[_0x4188ec(0x214)](function(_0x5981c4){const _0x5577da=_0x4188ec;logger[_0x5577da(0x1de)](JSON['stringify'](_0x5981c4));});});},Migration['prototype'][a1179_0xbe3441(0x1f5)]=function(_0x3c8e67,_0x11c522){const _0x5e5f1b=a1179_0xbe3441,_0x5eec30=this;this[_0x5e5f1b(0x1fd)][_0x5e5f1b(0x211)](function(){const _0x51f6de=_0x5e5f1b;return _0x5eec30[_0x51f6de(0x215)][_0x51f6de(0x1f5)](_0x3c8e67,_0x11c522)[_0x51f6de(0x1e1)](function(){const _0x1e230e=_0x51f6de;logger[_0x1e230e(0x1de)](_0x1e230e(0x1fc),_0x3c8e67,_0x11c522);})[_0x51f6de(0x214)](function(_0x2a8347){const _0x1a618b=_0x51f6de;logger[_0x1a618b(0x1de)](JSON[_0x1a618b(0x217)](_0x2a8347));});});},Migration[a1179_0xbe3441(0x209)][a1179_0xbe3441(0x200)]=function(_0x446181){const _0x500150=a1179_0xbe3441,_0x46cdd4=this;this[_0x500150(0x1fd)]['enqueue'](function(){const _0x22dd0f=_0x500150;return _0x46cdd4['queryInterface'][_0x22dd0f(0x1e4)][_0x22dd0f(0x200)](_0x446181)[_0x22dd0f(0x1e1)](function(){const _0x17ae8f=_0x22dd0f;logger[_0x17ae8f(0x1de)](_0x17ae8f(0x1fe),_0x446181);})[_0x22dd0f(0x214)](function(_0x3afb95){const _0x4bec0e=_0x22dd0f;logger[_0x4bec0e(0x1de)](JSON['stringify'](_0x3afb95));});});},Migration[a1179_0xbe3441(0x209)][a1179_0xbe3441(0x1e5)]=function(_0x1d647a,_0x3dd105){const _0x241efe=a1179_0xbe3441,_0x14b1c1=this;this[_0x241efe(0x1fd)]['enqueue'](function(){const _0x1d53bb=_0x241efe;return _0x14b1c1['queryInterface']['removeColumn'](_0x1d647a,_0x3dd105)[_0x1d53bb(0x1e1)](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x3dd105,_0x1d647a);})['catch'](function(_0x4d35f3){const _0x1d4fcf=_0x1d53bb;logger[_0x1d4fcf(0x1de)](util[_0x1d4fcf(0x1e2)](_0x4d35f3,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x32d35d,_0x1bf672,_0x4da1cc){const _0x599491=a1179_0xbe3441,_0x24ec3a=this;this[_0x599491(0x1fd)][_0x599491(0x211)](function(){const _0x245d71=_0x599491;return _0x24ec3a['queryInterface'][_0x245d71(0x213)](_0x32d35d,_0x1bf672,_0x4da1cc)['then'](function(){const _0x5a2b00=_0x245d71;logger[_0x5a2b00(0x1de)](_0x5a2b00(0x202),_0x1bf672,_0x4da1cc,_0x32d35d);})['catch'](function(_0x2b6c5b){const _0x28a1ef=_0x245d71;logger['info'](util[_0x28a1ef(0x1e2)](_0x2b6c5b,{'showHidden':![],'depth':null}));});});},Migration[a1179_0xbe3441(0x209)][a1179_0xbe3441(0x1dc)]=function(_0x1d21af){const _0x18f994=a1179_0xbe3441;this[_0x18f994(0x1fd)][_0x18f994(0x211)](function(){return _0x1d21af();});},module[a1179_0xbe3441(0x206)]={'up':function(_0x4a0b49,_0x41f817){return new Promise(function(_0x4974e5){const _0xcc8712=a1179_0x11d6,_0x1c7ad5=new Migration(_0x4a0b49);_0x1c7ad5[_0xcc8712(0x200)]('ALTER\x20TABLE\x20whatsapp_accounts\x20ENCRYPTION=\x27Y\x27;'),_0x1c7ad5[_0xcc8712(0x200)](_0xcc8712(0x207)),_0x1c7ad5['query']('ALTER\x20TABLE\x20whatsapp_messages\x20ENCRYPTION=\x27Y\x27;'),_0x1c7ad5[_0xcc8712(0x200)](_0xcc8712(0x216)),_0x1c7ad5[_0xcc8712(0x200)](_0xcc8712(0x210)),_0x1c7ad5['query'](_0xcc8712(0x20e)),_0x1c7ad5[_0xcc8712(0x200)](_0xcc8712(0x20b)),_0x1c7ad5['query'](_0xcc8712(0x1e6)),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x205),_0xcc8712(0x1e0),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x3}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x205),_0xcc8712(0x1ef),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x96}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x205),_0xcc8712(0x20c),{'type':_0x41f817['INTEGER'],'defaultValue':0x3}),_0x1c7ad5['addColumn']('voice_queues',_0xcc8712(0x1ea),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x96}),_0x1c7ad5[_0xcc8712(0x1f0)]('voice_queues','dialAbandonedMaxRetry',{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x3}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x205),_0xcc8712(0x201),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x96}),_0x1c7ad5['addColumn'](_0xcc8712(0x205),_0xcc8712(0x1df),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x3}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x205),_0xcc8712(0x20a),{'type':_0x41f817['INTEGER'],'defaultValue':0x96}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x205),'dialAgentRejectMaxRetry',{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x3}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x205),_0xcc8712(0x1ec),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x96}),_0x1c7ad5[_0xcc8712(0x1f0)]('campaigns',_0xcc8712(0x1e0),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x3}),_0x1c7ad5['addColumn']('campaigns',_0xcc8712(0x1ef),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x96}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x1ed),_0xcc8712(0x20c),{'type':_0x41f817['INTEGER'],'defaultValue':0x3}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x1ed),'dialDropRetryFrequency',{'type':_0x41f817['INTEGER'],'defaultValue':0x96}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x1ed),_0xcc8712(0x1f1),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x3}),_0x1c7ad5['addColumn'](_0xcc8712(0x1ed),_0xcc8712(0x201),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x96}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x1ed),_0xcc8712(0x1df),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x3}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x1ed),_0xcc8712(0x20a),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x96}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x1ed),_0xcc8712(0x1eb),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x3}),_0x1c7ad5['addColumn'](_0xcc8712(0x1ed),_0xcc8712(0x1ec),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x96}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x20f),_0xcc8712(0x1ff),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x0}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x20f),_0xcc8712(0x1f7),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x0}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x20f),_0xcc8712(0x1fb),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x0}),_0x1c7ad5[_0xcc8712(0x1f0)]('cm_hopper','countmachineretry',{'type':_0x41f817['INTEGER'],'defaultValue':0x0}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x20f),_0xcc8712(0x1f3),{'type':_0x41f817['INTEGER'],'defaultValue':0x0}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x1f8),_0xcc8712(0x1ff),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x0}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x1f8),_0xcc8712(0x1f7),{'type':_0x41f817['INTEGER'],'defaultValue':0x0}),_0x1c7ad5['addColumn']('cm_hopper_final',_0xcc8712(0x1fb),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x0}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x1f8),_0xcc8712(0x212),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x0}),_0x1c7ad5[_0xcc8712(0x1f0)]('cm_hopper_final',_0xcc8712(0x1f3),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x0}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x1f6),_0xcc8712(0x1ff),{'type':_0x41f817['INTEGER'],'defaultValue':0x0}),_0x1c7ad5['addColumn'](_0xcc8712(0x1f6),_0xcc8712(0x1f7),{'type':_0x41f817['INTEGER'],'defaultValue':0x0}),_0x1c7ad5[_0xcc8712(0x1f0)]('cm_hopper_history',_0xcc8712(0x1fb),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x0}),_0x1c7ad5['addColumn'](_0xcc8712(0x1f6),_0xcc8712(0x212),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x0}),_0x1c7ad5[_0xcc8712(0x1f0)](_0xcc8712(0x1f6),_0xcc8712(0x1f3),{'type':_0x41f817[_0xcc8712(0x204)],'defaultValue':0x0}),_0x1c7ad5[_0xcc8712(0x1dc)](_0x4974e5);});},'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 b994039..3b5d4f2 100644 --- a/server/migrations/2.5.3.js +++ b/server/migrations/2.5.3.js @@ -1 +1 @@ -const a1180_0x55a8=['join','removeIndex\x20%s\x20%s','changeColumn','finally','removeIndex','dropTable','Removed\x20column\x20%s\x20from\x20%s','addColumn','chat_websites','query','inspect','catch','addIndex','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','enqueue','renameColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','migration','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','table\x20dropped\x20%s','sequence','removeColumn','query\x20%s','final','queryInterface','indexName','exports','sequelize','then','STRING','prototype','info'];(function(_0x3f126c,_0x533fd1){const _0x55a8bb=function(_0x5b7888){while(--_0x5b7888){_0x3f126c['push'](_0x3f126c['shift']());}};_0x55a8bb(++_0x533fd1);}(a1180_0x55a8,0x1cd));const a1180_0x5b78=function(_0x3f126c,_0x533fd1){_0x3f126c=_0x3f126c-0x1ec;let _0x55a8bb=a1180_0x55a8[_0x3f126c];return _0x55a8bb;};const a1180_0x2e8441=a1180_0x5b78;'use strict';const util=require('util'),logger=require('../config/logger')(a1180_0x2e8441(0x1f9)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x33ad3d){const _0x32ad5a=a1180_0x2e8441;this[_0x32ad5a(0x1f3)]=this['tail']?this[_0x32ad5a(0x1f3)][_0x32ad5a(0x20c)](_0x33ad3d):_0x33ad3d();};const Migration=function(_0x38268c){const _0x364db3=a1180_0x2e8441;this[_0x364db3(0x201)]=_0x38268c,this[_0x364db3(0x1fd)]=new Sequence();};Migration[a1180_0x2e8441(0x207)][a1180_0x2e8441(0x20b)]=function(_0x396bdb,_0x247ddd,_0x388083){const _0x3686d2=a1180_0x2e8441,_0x5e20c0=this;this[_0x3686d2(0x1fd)][_0x3686d2(0x1f6)](function(){const _0x37e561=_0x3686d2;return _0x5e20c0['queryInterface'][_0x37e561(0x20b)](_0x396bdb,_0x247ddd,_0x388083)[_0x37e561(0x205)](function(){const _0x30c5d0=_0x37e561;logger[_0x30c5d0(0x208)](_0x30c5d0(0x1fa),_0x247ddd,_0x396bdb);})[_0x37e561(0x1f1)](function(_0x311161){const _0x44e781=_0x37e561;logger[_0x44e781(0x208)](JSON[_0x44e781(0x1fb)](_0x311161));});});},Migration['prototype'][a1180_0x2e8441(0x1ed)]=function(_0x13bfe4,_0x46c7ba,_0x26bc60){const _0x277116=a1180_0x2e8441,_0x542526=this;this[_0x277116(0x1fd)][_0x277116(0x1f6)](function(){const _0x37393f=_0x277116;return _0x542526[_0x37393f(0x201)][_0x37393f(0x1ed)](_0x13bfe4,_0x46c7ba,_0x26bc60)[_0x37393f(0x205)](function(){const _0x304b7b=_0x37393f;logger['info'](_0x304b7b(0x1f5),_0x46c7ba,_0x13bfe4);})[_0x37393f(0x1f1)](function(_0x123147){const _0x6251e4=_0x37393f;logger[_0x6251e4(0x208)](JSON['stringify'](_0x123147));});});},Migration[a1180_0x2e8441(0x207)][a1180_0x2e8441(0x20e)]=function(_0x2b7e16){const _0x321faf=this;this['sequence']['enqueue'](function(){const _0x5ccd18=a1180_0x5b78;return _0x321faf[_0x5ccd18(0x201)][_0x5ccd18(0x20e)](_0x2b7e16,{'force':!![]})[_0x5ccd18(0x205)](function(){const _0x298314=_0x5ccd18;logger['info'](_0x298314(0x1fc),_0x2b7e16);})[_0x5ccd18(0x1f1)](function(_0x89a4fc){const _0x405561=_0x5ccd18;logger[_0x405561(0x208)](JSON[_0x405561(0x1fb)](_0x89a4fc));});});},Migration[a1180_0x2e8441(0x207)][a1180_0x2e8441(0x1f2)]=function(_0x328a8c,_0x1632b2,_0x43196d){const _0x30dff5=this;this['sequence']['enqueue'](function(){const _0x2da003=a1180_0x5b78;return _0x30dff5[_0x2da003(0x201)]['addIndex'](_0x328a8c,_0x1632b2,{'indexName':_0x43196d[_0x2da003(0x202)],'indicesType':_0x43196d['indicesType']})[_0x2da003(0x205)](function(){const _0x51e0e8=_0x2da003;logger[_0x51e0e8(0x208)](_0x51e0e8(0x1f8),_0x328a8c,_0x1632b2[_0x51e0e8(0x209)](','),_0x43196d['indexName'],_0x43196d['indicesType']);})['catch'](function(_0x259616){const _0x11d957=_0x2da003;logger[_0x11d957(0x208)](JSON[_0x11d957(0x1fb)](_0x259616));});});},Migration[a1180_0x2e8441(0x207)]['removeIndex']=function(_0x5c2c31,_0xfb1ac1){const _0x19529f=a1180_0x2e8441,_0x128b4b=this;this['sequence'][_0x19529f(0x1f6)](function(){const _0x66b747=_0x19529f;return _0x128b4b[_0x66b747(0x201)][_0x66b747(0x20d)](_0x5c2c31,_0xfb1ac1)[_0x66b747(0x205)](function(){const _0x1b45bc=_0x66b747;logger[_0x1b45bc(0x208)](_0x1b45bc(0x20a),_0x5c2c31,_0xfb1ac1);})['catch'](function(_0x561832){const _0x2b51a7=_0x66b747;logger[_0x2b51a7(0x208)](JSON[_0x2b51a7(0x1fb)](_0x561832));});});},Migration['prototype'][a1180_0x2e8441(0x1ef)]=function(_0x2f371a){const _0x32475d=a1180_0x2e8441,_0x209982=this;this[_0x32475d(0x1fd)]['enqueue'](function(){const _0x44d0fc=_0x32475d;return _0x209982['queryInterface'][_0x44d0fc(0x204)]['query'](_0x2f371a)[_0x44d0fc(0x205)](function(){const _0x2c86ba=_0x44d0fc;logger[_0x2c86ba(0x208)](_0x2c86ba(0x1ff),_0x2f371a);})['catch'](function(_0x3ec8c0){const _0x3dce84=_0x44d0fc;logger[_0x3dce84(0x208)](JSON[_0x3dce84(0x1fb)](_0x3ec8c0));});});},Migration[a1180_0x2e8441(0x207)]['removeColumn']=function(_0x4869b0,_0x434437){const _0x40a570=a1180_0x2e8441,_0x2f8da1=this;this['sequence'][_0x40a570(0x1f6)](function(){const _0x49cd82=_0x40a570;return _0x2f8da1[_0x49cd82(0x201)][_0x49cd82(0x1fe)](_0x4869b0,_0x434437)[_0x49cd82(0x205)](function(){const _0x5abdcf=_0x49cd82;logger[_0x5abdcf(0x208)](_0x5abdcf(0x1ec),_0x434437,_0x4869b0);})[_0x49cd82(0x1f1)](function(_0x284d50){const _0x45300a=_0x49cd82;logger[_0x45300a(0x208)](util[_0x45300a(0x1f0)](_0x284d50,{'showHidden':![],'depth':null}));});});},Migration[a1180_0x2e8441(0x207)][a1180_0x2e8441(0x1f7)]=function(_0x2ca38f,_0xdb700b,_0x35f57d){const _0x45990b=a1180_0x2e8441,_0x325a4e=this;this[_0x45990b(0x1fd)][_0x45990b(0x1f6)](function(){const _0x2e6ec7=_0x45990b;return _0x325a4e[_0x2e6ec7(0x201)][_0x2e6ec7(0x1f7)](_0x2ca38f,_0xdb700b,_0x35f57d)[_0x2e6ec7(0x205)](function(){const _0xef0cb3=_0x2e6ec7;logger['info'](_0xef0cb3(0x1f4),_0xdb700b,_0x35f57d,_0x2ca38f);})[_0x2e6ec7(0x1f1)](function(_0x178e9b){const _0xc12e43=_0x2e6ec7;logger[_0xc12e43(0x208)](util[_0xc12e43(0x1f0)](_0x178e9b,{'showHidden':![],'depth':null}));});});},Migration[a1180_0x2e8441(0x207)][a1180_0x2e8441(0x200)]=function(_0x37439b){const _0x43f525=a1180_0x2e8441;this[_0x43f525(0x1fd)][_0x43f525(0x1f6)](function(){return _0x37439b();});},module[a1180_0x2e8441(0x203)]={'up':function(_0x50b4f8,_0x3d8b0a){return new Promise(function(_0x21bd8e){const _0x4ce678=a1180_0x5b78,_0x2368fb=new Migration(_0x50b4f8);_0x2368fb['changeColumn'](_0x4ce678(0x1ee),'color',{'type':_0x3d8b0a['STRING'],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}}),_0x2368fb[_0x4ce678(0x20b)](_0x4ce678(0x1ee),'color_button',{'type':_0x3d8b0a[_0x4ce678(0x206)],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}}),_0x2368fb[_0x4ce678(0x200)](_0x21bd8e);});},'down':function(){}}; \ No newline at end of file +const a1180_0x49f4=['final','catch','prototype','then','color_button','chat_websites','stringify','STRING','removeIndex','renameColumn','indicesType','Removed\x20column\x20%s\x20from\x20%s','enqueue','query','removeIndex\x20%s\x20%s','inspect','changeColumn','dropTable','tail','indexName','util','info','addIndex','join','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeColumn','queryInterface','migration','color','sequence','#011F6A','sequelize','table\x20dropped\x20%s'];(function(_0x59326b,_0x5d3cf1){const _0x49f4ab=function(_0x5bebe5){while(--_0x5bebe5){_0x59326b['push'](_0x59326b['shift']());}};_0x49f4ab(++_0x5d3cf1);}(a1180_0x49f4,0xcb));const a1180_0x5beb=function(_0x59326b,_0x5d3cf1){_0x59326b=_0x59326b-0x1e8;let _0x49f4ab=a1180_0x49f4[_0x59326b];return _0x49f4ab;};const a1180_0x1c21bc=a1180_0x5beb;'use strict';const util=require(a1180_0x1c21bc(0x1f7)),logger=require('../config/logger')(a1180_0x1c21bc(0x1fe)),Sequence=function(){};Sequence[a1180_0x1c21bc(0x206)]['enqueue']=function(_0x9bdb7c){const _0x6e0b77=a1180_0x1c21bc;this['tail']=this[_0x6e0b77(0x1f5)]?this[_0x6e0b77(0x1f5)]['finally'](_0x9bdb7c):_0x9bdb7c();};const Migration=function(_0x590fd2){const _0xc06775=a1180_0x1c21bc;this[_0xc06775(0x1fd)]=_0x590fd2,this[_0xc06775(0x200)]=new Sequence();};Migration[a1180_0x1c21bc(0x206)][a1180_0x1c21bc(0x1f3)]=function(_0x4c6902,_0x61cf87,_0x1bdc96){const _0x3be5f7=a1180_0x1c21bc,_0x5c5f61=this;this[_0x3be5f7(0x200)][_0x3be5f7(0x1ef)](function(){const _0x3f95e6=_0x3be5f7;return _0x5c5f61[_0x3f95e6(0x1fd)][_0x3f95e6(0x1f3)](_0x4c6902,_0x61cf87,_0x1bdc96)[_0x3f95e6(0x207)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x61cf87,_0x4c6902);})['catch'](function(_0x4ca74a){const _0x2256d5=_0x3f95e6;logger[_0x2256d5(0x1f8)](JSON[_0x2256d5(0x1e9)](_0x4ca74a));});});},Migration[a1180_0x1c21bc(0x206)]['addColumn']=function(_0x2a2b81,_0x2ed648,_0x47ef93){const _0x492f82=a1180_0x1c21bc,_0x4dea4f=this;this['sequence'][_0x492f82(0x1ef)](function(){const _0x427218=_0x492f82;return _0x4dea4f[_0x427218(0x1fd)]['addColumn'](_0x2a2b81,_0x2ed648,_0x47ef93)[_0x427218(0x207)](function(){const _0x374cde=_0x427218;logger[_0x374cde(0x1f8)]('Added\x20column\x20%s\x20to\x20%s',_0x2ed648,_0x2a2b81);})['catch'](function(_0x4406d2){const _0x10a7ee=_0x427218;logger[_0x10a7ee(0x1f8)](JSON[_0x10a7ee(0x1e9)](_0x4406d2));});});},Migration[a1180_0x1c21bc(0x206)][a1180_0x1c21bc(0x1f4)]=function(_0xc168c7){const _0x4833ba=a1180_0x1c21bc,_0x1015eb=this;this[_0x4833ba(0x200)][_0x4833ba(0x1ef)](function(){const _0x2ce8e4=_0x4833ba;return _0x1015eb[_0x2ce8e4(0x1fd)]['dropTable'](_0xc168c7,{'force':!![]})[_0x2ce8e4(0x207)](function(){const _0x489350=_0x2ce8e4;logger[_0x489350(0x1f8)](_0x489350(0x203),_0xc168c7);})[_0x2ce8e4(0x205)](function(_0x18db6d){logger['info'](JSON['stringify'](_0x18db6d));});});},Migration[a1180_0x1c21bc(0x206)][a1180_0x1c21bc(0x1f9)]=function(_0x4c197f,_0x5e7371,_0x3b4198){const _0x107eb5=a1180_0x1c21bc,_0x40e08d=this;this[_0x107eb5(0x200)]['enqueue'](function(){const _0x4fea3e=_0x107eb5;return _0x40e08d[_0x4fea3e(0x1fd)]['addIndex'](_0x4c197f,_0x5e7371,{'indexName':_0x3b4198[_0x4fea3e(0x1f6)],'indicesType':_0x3b4198[_0x4fea3e(0x1ed)]})[_0x4fea3e(0x207)](function(){const _0x269bd3=_0x4fea3e;logger[_0x269bd3(0x1f8)](_0x269bd3(0x1fb),_0x4c197f,_0x5e7371[_0x269bd3(0x1fa)](','),_0x3b4198[_0x269bd3(0x1f6)],_0x3b4198[_0x269bd3(0x1ed)]);})[_0x4fea3e(0x205)](function(_0x2c947b){const _0x5905ce=_0x4fea3e;logger[_0x5905ce(0x1f8)](JSON[_0x5905ce(0x1e9)](_0x2c947b));});});},Migration[a1180_0x1c21bc(0x206)]['removeIndex']=function(_0x853deb,_0x49f20d){const _0x4aafa0=a1180_0x1c21bc,_0x3c173f=this;this['sequence'][_0x4aafa0(0x1ef)](function(){const _0x2ada8f=_0x4aafa0;return _0x3c173f[_0x2ada8f(0x1fd)][_0x2ada8f(0x1eb)](_0x853deb,_0x49f20d)[_0x2ada8f(0x207)](function(){const _0x1d6f02=_0x2ada8f;logger[_0x1d6f02(0x1f8)](_0x1d6f02(0x1f1),_0x853deb,_0x49f20d);})[_0x2ada8f(0x205)](function(_0x4f45c3){const _0x201637=_0x2ada8f;logger[_0x201637(0x1f8)](JSON[_0x201637(0x1e9)](_0x4f45c3));});});},Migration['prototype'][a1180_0x1c21bc(0x1f0)]=function(_0x444980){const _0xb1e480=a1180_0x1c21bc,_0x21b021=this;this['sequence'][_0xb1e480(0x1ef)](function(){const _0x9b6452=_0xb1e480;return _0x21b021[_0x9b6452(0x1fd)][_0x9b6452(0x202)][_0x9b6452(0x1f0)](_0x444980)[_0x9b6452(0x207)](function(){const _0xcadc90=_0x9b6452;logger[_0xcadc90(0x1f8)]('query\x20%s',_0x444980);})[_0x9b6452(0x205)](function(_0x3064b8){const _0x3f5294=_0x9b6452;logger[_0x3f5294(0x1f8)](JSON[_0x3f5294(0x1e9)](_0x3064b8));});});},Migration[a1180_0x1c21bc(0x206)][a1180_0x1c21bc(0x1fc)]=function(_0x358399,_0x357289){const _0x3250e5=a1180_0x1c21bc,_0x1ce783=this;this[_0x3250e5(0x200)][_0x3250e5(0x1ef)](function(){const _0x6692a4=_0x3250e5;return _0x1ce783[_0x6692a4(0x1fd)][_0x6692a4(0x1fc)](_0x358399,_0x357289)[_0x6692a4(0x207)](function(){const _0x1909d1=_0x6692a4;logger[_0x1909d1(0x1f8)](_0x1909d1(0x1ee),_0x357289,_0x358399);})[_0x6692a4(0x205)](function(_0x4e7341){const _0x58eed8=_0x6692a4;logger[_0x58eed8(0x1f8)](util[_0x58eed8(0x1f2)](_0x4e7341,{'showHidden':![],'depth':null}));});});},Migration[a1180_0x1c21bc(0x206)][a1180_0x1c21bc(0x1ec)]=function(_0x374acd,_0xa7fe7d,_0x93151c){const _0x4a5385=a1180_0x1c21bc,_0x78c03c=this;this['sequence'][_0x4a5385(0x1ef)](function(){const _0x58c970=_0x4a5385;return _0x78c03c['queryInterface']['renameColumn'](_0x374acd,_0xa7fe7d,_0x93151c)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xa7fe7d,_0x93151c,_0x374acd);})[_0x58c970(0x205)](function(_0xb0a9){const _0x30fc7d=_0x58c970;logger['info'](util[_0x30fc7d(0x1f2)](_0xb0a9,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1180_0x1c21bc(0x204)]=function(_0x59305d){const _0x298c30=a1180_0x1c21bc;this[_0x298c30(0x200)][_0x298c30(0x1ef)](function(){return _0x59305d();});},module['exports']={'up':function(_0x264269,_0x377903){return new Promise(function(_0x41290f){const _0x3998fc=a1180_0x5beb,_0x4081c8=new Migration(_0x264269);_0x4081c8[_0x3998fc(0x1f3)](_0x3998fc(0x1e8),_0x3998fc(0x1ff),{'type':_0x377903[_0x3998fc(0x1ea)],'allowNull':![],'defaultValue':_0x3998fc(0x201),'validate':{'notEmpty':!![]}}),_0x4081c8[_0x3998fc(0x1f3)](_0x3998fc(0x1e8),_0x3998fc(0x208),{'type':_0x377903[_0x3998fc(0x1ea)],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}}),_0x4081c8[_0x3998fc(0x204)](_0x41290f);});},'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 9ea47da..a2d2af6 100644 --- a/server/migrations/2.5.4.js +++ b/server/migrations/2.5.4.js @@ -1 +1 @@ -const a1181_0x292e=['changeColumn','tail','../config/logger','dropTable','finally','catch','indicesType','prototype','final','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','inspect','enqueue','renameColumn','info','queryInterface','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','stringify','exports','addColumn','util','migration','removeIndex','query','then','join','sequence','table\x20dropped\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','query\x20%s'];(function(_0x33fce3,_0x4e6a13){const _0x292e91=function(_0x4ab92e){while(--_0x4ab92e){_0x33fce3['push'](_0x33fce3['shift']());}};_0x292e91(++_0x4e6a13);}(a1181_0x292e,0x65));const a1181_0x4ab9=function(_0x33fce3,_0x4e6a13){_0x33fce3=_0x33fce3-0xbb;let _0x292e91=a1181_0x292e[_0x33fce3];return _0x292e91;};const a1181_0x5a9679=a1181_0x4ab9;'use strict';const util=require(a1181_0x5a9679(0xcc)),logger=require(a1181_0x5a9679(0xd8))(a1181_0x5a9679(0xcd)),Sequence=function(){};Sequence[a1181_0x5a9679(0xbd)][a1181_0x5a9679(0xc3)]=function(_0xb7dc05){const _0x548a49=a1181_0x5a9679;this[_0x548a49(0xd7)]=this[_0x548a49(0xd7)]?this[_0x548a49(0xd7)][_0x548a49(0xda)](_0xb7dc05):_0xb7dc05();};const Migration=function(_0x28e47d){this['queryInterface']=_0x28e47d,this['sequence']=new Sequence();};Migration[a1181_0x5a9679(0xbd)][a1181_0x5a9679(0xd6)]=function(_0x12e612,_0x81187,_0xfcf938){const _0x1ceea3=a1181_0x5a9679,_0x2b9c77=this;this[_0x1ceea3(0xd2)][_0x1ceea3(0xc3)](function(){const _0x1c2c11=_0x1ceea3;return _0x2b9c77[_0x1c2c11(0xc6)]['changeColumn'](_0x12e612,_0x81187,_0xfcf938)['then'](function(){const _0x51f3b4=_0x1c2c11;logger[_0x51f3b4(0xc5)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x81187,_0x12e612);})[_0x1c2c11(0xbb)](function(_0x804bd5){const _0xdca1dd=_0x1c2c11;logger[_0xdca1dd(0xc5)](JSON[_0xdca1dd(0xc9)](_0x804bd5));});});},Migration[a1181_0x5a9679(0xbd)]['addColumn']=function(_0x484c93,_0x56effe,_0x37e87b){const _0x2a1838=a1181_0x5a9679,_0x3980df=this;this[_0x2a1838(0xd2)]['enqueue'](function(){const _0x439cf3=_0x2a1838;return _0x3980df[_0x439cf3(0xc6)][_0x439cf3(0xcb)](_0x484c93,_0x56effe,_0x37e87b)['then'](function(){const _0x47e2ba=_0x439cf3;logger['info'](_0x47e2ba(0xbf),_0x56effe,_0x484c93);})[_0x439cf3(0xbb)](function(_0x429669){const _0x359b54=_0x439cf3;logger[_0x359b54(0xc5)](JSON[_0x359b54(0xc9)](_0x429669));});});},Migration[a1181_0x5a9679(0xbd)][a1181_0x5a9679(0xd9)]=function(_0x4838fd){const _0x197535=a1181_0x5a9679,_0x51ebdd=this;this[_0x197535(0xd2)][_0x197535(0xc3)](function(){const _0x6b2116=_0x197535;return _0x51ebdd[_0x6b2116(0xc6)]['dropTable'](_0x4838fd,{'force':!![]})[_0x6b2116(0xd0)](function(){const _0x2c92ee=_0x6b2116;logger[_0x2c92ee(0xc5)](_0x2c92ee(0xd3),_0x4838fd);})[_0x6b2116(0xbb)](function(_0x1bbae2){const _0x68963=_0x6b2116;logger[_0x68963(0xc5)](JSON[_0x68963(0xc9)](_0x1bbae2));});});},Migration['prototype']['addIndex']=function(_0xcd1daf,_0x5f4b6d,_0x4fc930){const _0x5833f6=a1181_0x5a9679,_0x22f6b8=this;this['sequence'][_0x5833f6(0xc3)](function(){const _0x5b22c5=_0x5833f6;return _0x22f6b8[_0x5b22c5(0xc6)]['addIndex'](_0xcd1daf,_0x5f4b6d,{'indexName':_0x4fc930['indexName'],'indicesType':_0x4fc930[_0x5b22c5(0xbc)]})['then'](function(){const _0x57d7ad=_0x5b22c5;logger[_0x57d7ad(0xc5)](_0x57d7ad(0xd4),_0xcd1daf,_0x5f4b6d[_0x57d7ad(0xd1)](','),_0x4fc930['indexName'],_0x4fc930[_0x57d7ad(0xbc)]);})[_0x5b22c5(0xbb)](function(_0x37f7d9){const _0x2d7b31=_0x5b22c5;logger[_0x2d7b31(0xc5)](JSON[_0x2d7b31(0xc9)](_0x37f7d9));});});},Migration['prototype'][a1181_0x5a9679(0xce)]=function(_0x4c3d5e,_0x143094){const _0x52d073=a1181_0x5a9679,_0x46d36b=this;this['sequence'][_0x52d073(0xc3)](function(){const _0x4b9df3=_0x52d073;return _0x46d36b[_0x4b9df3(0xc6)]['removeIndex'](_0x4c3d5e,_0x143094)[_0x4b9df3(0xd0)](function(){const _0xe40677=_0x4b9df3;logger[_0xe40677(0xc5)](_0xe40677(0xc8),_0x4c3d5e,_0x143094);})[_0x4b9df3(0xbb)](function(_0x27bd55){const _0x1056c1=_0x4b9df3;logger[_0x1056c1(0xc5)](JSON['stringify'](_0x27bd55));});});},Migration[a1181_0x5a9679(0xbd)][a1181_0x5a9679(0xcf)]=function(_0x10d7f5){const _0x31342d=a1181_0x5a9679,_0x5a23de=this;this[_0x31342d(0xd2)][_0x31342d(0xc3)](function(){const _0x43e374=_0x31342d;return _0x5a23de[_0x43e374(0xc6)]['sequelize']['query'](_0x10d7f5)[_0x43e374(0xd0)](function(){const _0x55acc7=_0x43e374;logger[_0x55acc7(0xc5)](_0x55acc7(0xd5),_0x10d7f5);})['catch'](function(_0x299a69){const _0x55f93e=_0x43e374;logger['info'](JSON[_0x55f93e(0xc9)](_0x299a69));});});},Migration[a1181_0x5a9679(0xbd)][a1181_0x5a9679(0xc1)]=function(_0x51d4a7,_0x293de3){const _0x4082d6=a1181_0x5a9679,_0x5211ca=this;this[_0x4082d6(0xd2)][_0x4082d6(0xc3)](function(){const _0x575ff7=_0x4082d6;return _0x5211ca[_0x575ff7(0xc6)][_0x575ff7(0xc1)](_0x51d4a7,_0x293de3)[_0x575ff7(0xd0)](function(){const _0x3f58ff=_0x575ff7;logger[_0x3f58ff(0xc5)](_0x3f58ff(0xc7),_0x293de3,_0x51d4a7);})[_0x575ff7(0xbb)](function(_0x4af2f3){const _0x574821=_0x575ff7;logger[_0x574821(0xc5)](util[_0x574821(0xc2)](_0x4af2f3,{'showHidden':![],'depth':null}));});});},Migration[a1181_0x5a9679(0xbd)][a1181_0x5a9679(0xc4)]=function(_0x9677e,_0x38b6bd,_0x56b533){const _0x56ef88=a1181_0x5a9679,_0x5333c7=this;this[_0x56ef88(0xd2)][_0x56ef88(0xc3)](function(){const _0x46c67f=_0x56ef88;return _0x5333c7[_0x46c67f(0xc6)]['renameColumn'](_0x9677e,_0x38b6bd,_0x56b533)['then'](function(){const _0x1410be=_0x46c67f;logger[_0x1410be(0xc5)](_0x1410be(0xc0),_0x38b6bd,_0x56b533,_0x9677e);})[_0x46c67f(0xbb)](function(_0x120a4e){const _0x57e784=_0x46c67f;logger[_0x57e784(0xc5)](util[_0x57e784(0xc2)](_0x120a4e,{'showHidden':![],'depth':null}));});});},Migration[a1181_0x5a9679(0xbd)][a1181_0x5a9679(0xbe)]=function(_0x5c0bcf){this['sequence']['enqueue'](function(){return _0x5c0bcf();});},module[a1181_0x5a9679(0xca)]={'up':function(_0x534eed){return new Promise(function(_0x333492){const _0x3b72fb=a1181_0x4ab9,_0x569870=new Migration(_0x534eed);_0x569870[_0x3b72fb(0xbe)](_0x333492);});},'down':function(){}}; \ No newline at end of file +const a1181_0x1b1f=['table\x20dropped\x20%s','addColumn','removeColumn','stringify','queryInterface','Added\x20column\x20%s\x20to\x20%s','enqueue','addIndex\x20%s\x20%s\x20%s\x20[%s]','join','then','query','indexName','prototype','renameColumn','sequence','sequelize','catch','inspect','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','removeIndex','changeColumn','info','removeIndex\x20%s\x20%s','indicesType','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','finally','tail','addIndex','migration','final'];(function(_0x2fd234,_0x29b1f6){const _0x1b1f1b=function(_0x2671c8){while(--_0x2671c8){_0x2fd234['push'](_0x2fd234['shift']());}};_0x1b1f1b(++_0x29b1f6);}(a1181_0x1b1f,0xce));const a1181_0x2671=function(_0x2fd234,_0x29b1f6){_0x2fd234=_0x2fd234-0xb2;let _0x1b1f1b=a1181_0x1b1f[_0x2fd234];return _0x1b1f1b;};const a1181_0x5a7ee8=a1181_0x2671;'use strict';const util=require(a1181_0x5a7ee8(0xb7)),logger=require('../config/logger')(a1181_0x5a7ee8(0xc2)),Sequence=function(){};Sequence[a1181_0x5a7ee8(0xd0)][a1181_0x5a7ee8(0xca)]=function(_0x57a908){const _0x1e290c=a1181_0x5a7ee8;this[_0x1e290c(0xc0)]=this[_0x1e290c(0xc0)]?this['tail'][_0x1e290c(0xbf)](_0x57a908):_0x57a908();};const Migration=function(_0x5d0910){const _0x16021b=a1181_0x5a7ee8;this[_0x16021b(0xc8)]=_0x5d0910,this[_0x16021b(0xb2)]=new Sequence();};Migration[a1181_0x5a7ee8(0xd0)][a1181_0x5a7ee8(0xb9)]=function(_0x79cf18,_0x5072b0,_0x2e51fb){const _0xf46a75=a1181_0x5a7ee8,_0x2ed548=this;this[_0xf46a75(0xb2)][_0xf46a75(0xca)](function(){const _0x5230e1=_0xf46a75;return _0x2ed548[_0x5230e1(0xc8)][_0x5230e1(0xb9)](_0x79cf18,_0x5072b0,_0x2e51fb)['then'](function(){const _0x18d2e3=_0x5230e1;logger[_0x18d2e3(0xba)](_0x18d2e3(0xbd),_0x5072b0,_0x79cf18);})[_0x5230e1(0xb4)](function(_0x356d1d){const _0x423c06=_0x5230e1;logger[_0x423c06(0xba)](JSON['stringify'](_0x356d1d));});});},Migration[a1181_0x5a7ee8(0xd0)][a1181_0x5a7ee8(0xc5)]=function(_0x22573a,_0xf7a634,_0x4bce6f){const _0x5057b3=a1181_0x5a7ee8,_0x5d7789=this;this['sequence'][_0x5057b3(0xca)](function(){const _0x41e632=_0x5057b3;return _0x5d7789['queryInterface'][_0x41e632(0xc5)](_0x22573a,_0xf7a634,_0x4bce6f)['then'](function(){const _0x2e98b3=_0x41e632;logger[_0x2e98b3(0xba)](_0x2e98b3(0xc9),_0xf7a634,_0x22573a);})[_0x41e632(0xb4)](function(_0x46f32d){const _0x39c99b=_0x41e632;logger[_0x39c99b(0xba)](JSON[_0x39c99b(0xc7)](_0x46f32d));});});},Migration[a1181_0x5a7ee8(0xd0)]['dropTable']=function(_0x489fe3){const _0xe7a3d6=a1181_0x5a7ee8,_0x4a881a=this;this['sequence'][_0xe7a3d6(0xca)](function(){const _0x525c3b=_0xe7a3d6;return _0x4a881a[_0x525c3b(0xc8)]['dropTable'](_0x489fe3,{'force':!![]})[_0x525c3b(0xcd)](function(){const _0x26d8ce=_0x525c3b;logger['info'](_0x26d8ce(0xc4),_0x489fe3);})[_0x525c3b(0xb4)](function(_0x3f4ee1){const _0x35fea8=_0x525c3b;logger['info'](JSON[_0x35fea8(0xc7)](_0x3f4ee1));});});},Migration[a1181_0x5a7ee8(0xd0)]['addIndex']=function(_0x174a2a,_0x19d9a0,_0x2fdb8e){const _0x2d7da3=a1181_0x5a7ee8,_0x13ac91=this;this[_0x2d7da3(0xb2)]['enqueue'](function(){const _0x531cf1=_0x2d7da3;return _0x13ac91[_0x531cf1(0xc8)][_0x531cf1(0xc1)](_0x174a2a,_0x19d9a0,{'indexName':_0x2fdb8e[_0x531cf1(0xcf)],'indicesType':_0x2fdb8e['indicesType']})[_0x531cf1(0xcd)](function(){const _0x19b442=_0x531cf1;logger['info'](_0x19b442(0xcb),_0x174a2a,_0x19d9a0[_0x19b442(0xcc)](','),_0x2fdb8e['indexName'],_0x2fdb8e[_0x19b442(0xbc)]);})[_0x531cf1(0xb4)](function(_0xa61254){const _0x526f6c=_0x531cf1;logger['info'](JSON[_0x526f6c(0xc7)](_0xa61254));});});},Migration[a1181_0x5a7ee8(0xd0)][a1181_0x5a7ee8(0xb8)]=function(_0x4ccc24,_0x3d0c3c){const _0x1a2ea1=a1181_0x5a7ee8,_0x2282f9=this;this[_0x1a2ea1(0xb2)][_0x1a2ea1(0xca)](function(){const _0xe3864d=_0x1a2ea1;return _0x2282f9[_0xe3864d(0xc8)][_0xe3864d(0xb8)](_0x4ccc24,_0x3d0c3c)[_0xe3864d(0xcd)](function(){const _0x51188d=_0xe3864d;logger[_0x51188d(0xba)](_0x51188d(0xbb),_0x4ccc24,_0x3d0c3c);})['catch'](function(_0x576be1){const _0x17e587=_0xe3864d;logger[_0x17e587(0xba)](JSON['stringify'](_0x576be1));});});},Migration[a1181_0x5a7ee8(0xd0)][a1181_0x5a7ee8(0xce)]=function(_0x5f26c2){const _0x398a1a=a1181_0x5a7ee8,_0x73b7f4=this;this[_0x398a1a(0xb2)]['enqueue'](function(){const _0x142b28=_0x398a1a;return _0x73b7f4[_0x142b28(0xc8)][_0x142b28(0xb3)][_0x142b28(0xce)](_0x5f26c2)[_0x142b28(0xcd)](function(){const _0x4b9f11=_0x142b28;logger[_0x4b9f11(0xba)]('query\x20%s',_0x5f26c2);})[_0x142b28(0xb4)](function(_0x19678b){const _0x37824c=_0x142b28;logger[_0x37824c(0xba)](JSON['stringify'](_0x19678b));});});},Migration['prototype'][a1181_0x5a7ee8(0xc6)]=function(_0x7ea9d,_0x278f8a){const _0x364eea=a1181_0x5a7ee8,_0x8d50b1=this;this['sequence'][_0x364eea(0xca)](function(){const _0xbe2f0d=_0x364eea;return _0x8d50b1['queryInterface'][_0xbe2f0d(0xc6)](_0x7ea9d,_0x278f8a)[_0xbe2f0d(0xcd)](function(){const _0x5a3253=_0xbe2f0d;logger[_0x5a3253(0xba)](_0x5a3253(0xbe),_0x278f8a,_0x7ea9d);})[_0xbe2f0d(0xb4)](function(_0x53b7d8){const _0x11db1e=_0xbe2f0d;logger[_0x11db1e(0xba)](util[_0x11db1e(0xb5)](_0x53b7d8,{'showHidden':![],'depth':null}));});});},Migration[a1181_0x5a7ee8(0xd0)][a1181_0x5a7ee8(0xd1)]=function(_0x4f5385,_0x13271e,_0x30f6e0){const _0x280bf7=a1181_0x5a7ee8,_0x40d337=this;this['sequence'][_0x280bf7(0xca)](function(){const _0x183b13=_0x280bf7;return _0x40d337['queryInterface'][_0x183b13(0xd1)](_0x4f5385,_0x13271e,_0x30f6e0)['then'](function(){const _0xdc5e21=_0x183b13;logger[_0xdc5e21(0xba)](_0xdc5e21(0xb6),_0x13271e,_0x30f6e0,_0x4f5385);})[_0x183b13(0xb4)](function(_0x2a03e2){const _0x32a029=_0x183b13;logger[_0x32a029(0xba)](util['inspect'](_0x2a03e2,{'showHidden':![],'depth':null}));});});},Migration[a1181_0x5a7ee8(0xd0)][a1181_0x5a7ee8(0xc3)]=function(_0x150224){const _0x392968=a1181_0x5a7ee8;this[_0x392968(0xb2)][_0x392968(0xca)](function(){return _0x150224();});},module['exports']={'up':function(_0x5490df){return new Promise(function(_0xf3bc87){const _0x1ff525=a1181_0x2671,_0x11bc0e=new Migration(_0x5490df);_0x11bc0e[_0x1ff525(0xc3)](_0xf3bc87);});},'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 7722554..daad47f 100644 --- a/server/migrations/2.5.5.js +++ b/server/migrations/2.5.5.js @@ -1 +1 @@ -const a1182_0x49e6=['prototype','fax_interactions','INTEGER','indexName','ParentId','addColumn','final','secondDisposition','updatedAt','renameColumn','users','passwordResetAt','voice','sequence','disposition','level','changeColumn','catch','first','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tools_dispositions','Removed\x20column\x20%s\x20from\x20%s','settings','openchannel_interactions','description','finally','sms_interactions','userDisposition','voice_recordings','join','cm_hopper_final','thirdDisposition','passwordHistoryLimit','report_call','info','UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data4\x20=\x20\x270\x27','tail','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeColumn','enqueue','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','query\x20%s','removeIndex','whatsapp_interactions','then','dropTable','cm_custom_fields','STRING','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','mail_interactions','chat_interactions','second','report_queue','enforcePasswordHistory','stringify','queryInterface','../config/logger','indicesType','inspect','BOOLEAN','table\x20dropped\x20%s','ENUM','UPDATE\x20tools_actions\x20SET\x20data3\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data3\x20=\x20\x270\x27','userSecondDisposition','settingsEnabled','removeIndex\x20%s\x20%s','userThirdDisposition','addIndex'];(function(_0x1d58d8,_0x1c20a0){const _0x49e66c=function(_0x571df6){while(--_0x571df6){_0x1d58d8['push'](_0x1d58d8['shift']());}};_0x49e66c(++_0x1c20a0);}(a1182_0x49e6,0x196));const a1182_0x571d=function(_0x1d58d8,_0x1c20a0){_0x1d58d8=_0x1d58d8-0x14e;let _0x49e66c=a1182_0x49e6[_0x1d58d8];return _0x49e66c;};const a1182_0x45f936=a1182_0x571d;'use strict';const util=require('util'),logger=require(a1182_0x45f936(0x18f))('migration'),Sequence=function(){};Sequence[a1182_0x45f936(0x156)][a1182_0x45f936(0x17e)]=function(_0x502303){const _0x4fafea=a1182_0x45f936;this[_0x4fafea(0x17b)]=this['tail']?this[_0x4fafea(0x17b)][_0x4fafea(0x170)](_0x502303):_0x502303();};const Migration=function(_0x2b8d99){const _0xd958ab=a1182_0x45f936;this[_0xd958ab(0x18e)]=_0x2b8d99,this['sequence']=new Sequence();};Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x166)]=function(_0x1be43f,_0x4efa2f,_0x3e0033){const _0x1b366c=a1182_0x45f936,_0x5215d2=this;this[_0x1b366c(0x163)][_0x1b366c(0x17e)](function(){const _0xa59aac=_0x1b366c;return _0x5215d2['queryInterface'][_0xa59aac(0x166)](_0x1be43f,_0x4efa2f,_0x3e0033)[_0xa59aac(0x183)](function(){const _0x25a07e=_0xa59aac;logger[_0x25a07e(0x179)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4efa2f,_0x1be43f);})['catch'](function(_0x2b0e9c){const _0x3a2c9d=_0xa59aac;logger[_0x3a2c9d(0x179)](JSON[_0x3a2c9d(0x18d)](_0x2b0e9c));});});},Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x15b)]=function(_0x221296,_0x35f527,_0x54c9ac){const _0x43b9fa=a1182_0x45f936,_0xc153df=this;this[_0x43b9fa(0x163)]['enqueue'](function(){const _0x350901=_0x43b9fa;return _0xc153df[_0x350901(0x18e)][_0x350901(0x15b)](_0x221296,_0x35f527,_0x54c9ac)[_0x350901(0x183)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x35f527,_0x221296);})[_0x350901(0x167)](function(_0x328edc){const _0x4d433e=_0x350901;logger[_0x4d433e(0x179)](JSON[_0x4d433e(0x18d)](_0x328edc));});});},Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x184)]=function(_0x492662){const _0x2bc136=this;this['sequence']['enqueue'](function(){const _0x445d11=a1182_0x571d;return _0x2bc136[_0x445d11(0x18e)]['dropTable'](_0x492662,{'force':!![]})[_0x445d11(0x183)](function(){const _0x399e49=_0x445d11;logger['info'](_0x399e49(0x14e),_0x492662);})[_0x445d11(0x167)](function(_0x21613f){const _0x363d79=_0x445d11;logger[_0x363d79(0x179)](JSON[_0x363d79(0x18d)](_0x21613f));});});},Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x155)]=function(_0x4351ae,_0x3166a3,_0x34c181){const _0x54b7ec=a1182_0x45f936,_0x374240=this;this[_0x54b7ec(0x163)]['enqueue'](function(){const _0x43fd1d=_0x54b7ec;return _0x374240[_0x43fd1d(0x18e)][_0x43fd1d(0x155)](_0x4351ae,_0x3166a3,{'indexName':_0x34c181[_0x43fd1d(0x159)],'indicesType':_0x34c181[_0x43fd1d(0x190)]})[_0x43fd1d(0x183)](function(){const _0x437f1a=_0x43fd1d;logger[_0x437f1a(0x179)](_0x437f1a(0x17c),_0x4351ae,_0x3166a3[_0x437f1a(0x174)](','),_0x34c181['indexName'],_0x34c181[_0x437f1a(0x190)]);})[_0x43fd1d(0x167)](function(_0xf47262){const _0x3181b6=_0x43fd1d;logger[_0x3181b6(0x179)](JSON[_0x3181b6(0x18d)](_0xf47262));});});},Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x181)]=function(_0x2bcc0a,_0x5d227d){const _0x281d0e=a1182_0x45f936,_0x39eb11=this;this[_0x281d0e(0x163)][_0x281d0e(0x17e)](function(){const _0x4f89c7=_0x281d0e;return _0x39eb11[_0x4f89c7(0x18e)][_0x4f89c7(0x181)](_0x2bcc0a,_0x5d227d)[_0x4f89c7(0x183)](function(){const _0x83461e=_0x4f89c7;logger[_0x83461e(0x179)](_0x83461e(0x153),_0x2bcc0a,_0x5d227d);})[_0x4f89c7(0x167)](function(_0x51fdf8){const _0x100361=_0x4f89c7;logger[_0x100361(0x179)](JSON[_0x100361(0x18d)](_0x51fdf8));});});},Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x169)]=function(_0x265fde){const _0x27f813=this;this['sequence']['enqueue'](function(){const _0x30460d=a1182_0x571d;return _0x27f813[_0x30460d(0x18e)]['sequelize'][_0x30460d(0x169)](_0x265fde)[_0x30460d(0x183)](function(){const _0x13c62e=_0x30460d;logger[_0x13c62e(0x179)](_0x13c62e(0x180),_0x265fde);})['catch'](function(_0x99d36){const _0x5caf4d=_0x30460d;logger[_0x5caf4d(0x179)](JSON['stringify'](_0x99d36));});});},Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x17d)]=function(_0x51d6bc,_0x2107ce){const _0x524eec=a1182_0x45f936,_0x186718=this;this[_0x524eec(0x163)][_0x524eec(0x17e)](function(){const _0x520278=_0x524eec;return _0x186718[_0x520278(0x18e)][_0x520278(0x17d)](_0x51d6bc,_0x2107ce)[_0x520278(0x183)](function(){const _0x58687a=_0x520278;logger['info'](_0x58687a(0x16c),_0x2107ce,_0x51d6bc);})[_0x520278(0x167)](function(_0x6e9b54){const _0x225414=_0x520278;logger[_0x225414(0x179)](util[_0x225414(0x191)](_0x6e9b54,{'showHidden':![],'depth':null}));});});},Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x15f)]=function(_0x3c3807,_0xa78c82,_0x1f264b){const _0x1746a2=a1182_0x45f936,_0x25d38d=this;this[_0x1746a2(0x163)][_0x1746a2(0x17e)](function(){const _0x411a38=_0x1746a2;return _0x25d38d['queryInterface'][_0x411a38(0x15f)](_0x3c3807,_0xa78c82,_0x1f264b)[_0x411a38(0x183)](function(){const _0x1356bd=_0x411a38;logger[_0x1356bd(0x179)](_0x1356bd(0x16a),_0xa78c82,_0x1f264b,_0x3c3807);})[_0x411a38(0x167)](function(_0x38d5da){const _0x1c153f=_0x411a38;logger['info'](util[_0x1c153f(0x191)](_0x38d5da,{'showHidden':![],'depth':null}));});});},Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x15c)]=function(_0x3f43ac){this['sequence']['enqueue'](function(){return _0x3f43ac();});},module['exports']={'up':function(_0x2ac9c2,_0x3d86a7){return new Promise(function(_0x4234e0){const _0x48eb38=a1182_0x571d,_0x45b3e2=new Migration(_0x2ac9c2);_0x45b3e2[_0x48eb38(0x169)](_0x48eb38(0x150)),_0x45b3e2[_0x48eb38(0x169)](_0x48eb38(0x187)),_0x45b3e2[_0x48eb38(0x169)](_0x48eb38(0x17a)),_0x45b3e2['addColumn'](_0x48eb38(0x16d),_0x48eb38(0x18c),{'type':_0x3d86a7[_0x48eb38(0x192)],'defaultValue':!![]}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x16d),_0x48eb38(0x177),{'type':_0x3d86a7[_0x48eb38(0x158)](0x2)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}),_0x45b3e2[_0x48eb38(0x15b)]('users','previousPasswords',{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x161)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x160),_0x48eb38(0x152),{'type':_0x3d86a7[_0x48eb38(0x192)],'defaultValue':!![]}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x185),'clickToAction',{'type':_0x3d86a7[_0x48eb38(0x192)],'defaultValue':![]}),_0x45b3e2['addColumn'](_0x48eb38(0x185),'actionType',{'type':_0x3d86a7[_0x48eb38(0x14f)]('voice'),'allowNull':![],'defaultValue':_0x48eb38(0x162)}),_0x45b3e2[_0x48eb38(0x15b)]('tools_dispositions',_0x48eb38(0x165),{'type':_0x3d86a7[_0x48eb38(0x14f)](_0x48eb38(0x168),_0x48eb38(0x18a),'third'),'allowNull':![],'defaultValue':_0x48eb38(0x168),'after':'name'}),_0x45b3e2['addColumn'](_0x48eb38(0x16b),_0x48eb38(0x16f),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':'level'}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x16b),_0x48eb38(0x15a),{'type':_0x3d86a7[_0x48eb38(0x158)],'after':_0x48eb38(0x15e)}),_0x45b3e2[_0x48eb38(0x169)](_0x48eb38(0x17f)),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x178),_0x48eb38(0x151),{'type':_0x3d86a7['STRING'],'after':_0x48eb38(0x172)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x178),_0x48eb38(0x154),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x151)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x18b),_0x48eb38(0x15d),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x164)}),_0x45b3e2['addColumn'](_0x48eb38(0x18b),_0x48eb38(0x176),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x15d)}),_0x45b3e2['addColumn']('voice_recordings',_0x48eb38(0x151),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x172)}),_0x45b3e2['addColumn'](_0x48eb38(0x173),_0x48eb38(0x154),{'type':_0x3d86a7['STRING'],'after':_0x48eb38(0x151)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x189),'secondDisposition',{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x164)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x189),'thirdDisposition',{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x15d)}),_0x45b3e2[_0x48eb38(0x15b)]('fax_interactions',_0x48eb38(0x15d),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x164)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x157),_0x48eb38(0x176),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x15d)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x188),_0x48eb38(0x15d),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x164)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x188),_0x48eb38(0x176),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x15d)}),_0x45b3e2['addColumn'](_0x48eb38(0x16e),'secondDisposition',{'type':_0x3d86a7[_0x48eb38(0x186)],'after':'disposition'}),_0x45b3e2['addColumn'](_0x48eb38(0x16e),'thirdDisposition',{'type':_0x3d86a7['STRING'],'after':_0x48eb38(0x15d)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x171),_0x48eb38(0x15d),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x164)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x171),_0x48eb38(0x176),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':'secondDisposition'}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x182),_0x48eb38(0x15d),{'type':_0x3d86a7['STRING'],'after':'disposition'}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x182),_0x48eb38(0x176),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':'secondDisposition'}),_0x45b3e2['addColumn'](_0x48eb38(0x175),_0x48eb38(0x15d),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x164)}),_0x45b3e2['addColumn'](_0x48eb38(0x175),_0x48eb38(0x176),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x15d)}),_0x45b3e2[_0x48eb38(0x15c)](_0x4234e0);});},'down':function(){}}; \ No newline at end of file +const a1182_0x526a=['Changed\x20column\x20%s\x20in\x20table\x20%s','disposition','fax_interactions','finally','cm_custom_fields','settingsEnabled','final','removeColumn','ParentId','removeIndex\x20%s\x20%s','query','first','join','settings','mail_interactions','addIndex','previousPasswords','info','report_queue','sequelize','actionType','removeIndex','INTEGER','BOOLEAN','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indicesType','description','level','tools_dispositions','tail','openchannel_interactions','query\x20%s','dropTable','UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data4\x20=\x20\x270\x27','second','thirdDisposition','voice_recordings','prototype','inspect','table\x20dropped\x20%s','queryInterface','ENUM','userDisposition','sms_interactions','clickToAction','indexName','stringify','sequence','../config/logger','users','catch','then','addColumn','renameColumn','userThirdDisposition','Added\x20column\x20%s\x20to\x20%s','cm_hopper_final','secondDisposition','STRING','migration','userSecondDisposition','name','chat_interactions','util','enqueue','report_call','whatsapp_interactions'];(function(_0x40da3a,_0x3ce993){const _0x526a3c=function(_0x51a80f){while(--_0x51a80f){_0x40da3a['push'](_0x40da3a['shift']());}};_0x526a3c(++_0x3ce993);}(a1182_0x526a,0xe2));const a1182_0x51a8=function(_0x40da3a,_0x3ce993){_0x40da3a=_0x40da3a-0x7d;let _0x526a3c=a1182_0x526a[_0x40da3a];return _0x526a3c;};const a1182_0x105f58=a1182_0x51a8;'use strict';const util=require(a1182_0x105f58(0xa3)),logger=require(a1182_0x105f58(0x94))(a1182_0x105f58(0x9f)),Sequence=function(){};Sequence[a1182_0x105f58(0x89)]['enqueue']=function(_0x2d0165){const _0x3439c1=a1182_0x105f58;this[_0x3439c1(0x81)]=this[_0x3439c1(0x81)]?this[_0x3439c1(0x81)][_0x3439c1(0xaa)](_0x2d0165):_0x2d0165();};const Migration=function(_0x35358a){const _0x4ccebb=a1182_0x105f58;this[_0x4ccebb(0x8c)]=_0x35358a,this[_0x4ccebb(0x93)]=new Sequence();};Migration[a1182_0x105f58(0x89)]['changeColumn']=function(_0x40324b,_0x4f2760,_0x24ecea){const _0x576ac8=a1182_0x105f58,_0xb8cb43=this;this[_0x576ac8(0x93)]['enqueue'](function(){const _0x35e4e8=_0x576ac8;return _0xb8cb43[_0x35e4e8(0x8c)]['changeColumn'](_0x40324b,_0x4f2760,_0x24ecea)['then'](function(){const _0x9fe21=_0x35e4e8;logger[_0x9fe21(0xb8)](_0x9fe21(0xa7),_0x4f2760,_0x40324b);})[_0x35e4e8(0x96)](function(_0x1dfb77){const _0x54541f=_0x35e4e8;logger['info'](JSON[_0x54541f(0x92)](_0x1dfb77));});});},Migration[a1182_0x105f58(0x89)][a1182_0x105f58(0x98)]=function(_0x17f879,_0x25b551,_0x35fb95){const _0x4f4bb4=a1182_0x105f58,_0x54b6e6=this;this[_0x4f4bb4(0x93)][_0x4f4bb4(0xa4)](function(){const _0x4c05c9=_0x4f4bb4;return _0x54b6e6[_0x4c05c9(0x8c)][_0x4c05c9(0x98)](_0x17f879,_0x25b551,_0x35fb95)[_0x4c05c9(0x97)](function(){const _0x399256=_0x4c05c9;logger[_0x399256(0xb8)](_0x399256(0x9b),_0x25b551,_0x17f879);})[_0x4c05c9(0x96)](function(_0x3b1542){const _0x28a334=_0x4c05c9;logger[_0x28a334(0xb8)](JSON['stringify'](_0x3b1542));});});},Migration[a1182_0x105f58(0x89)][a1182_0x105f58(0x84)]=function(_0xa02a74){const _0x356d84=a1182_0x105f58,_0xf58087=this;this[_0x356d84(0x93)][_0x356d84(0xa4)](function(){const _0x131484=_0x356d84;return _0xf58087[_0x131484(0x8c)][_0x131484(0x84)](_0xa02a74,{'force':!![]})['then'](function(){const _0xdbd7ad=_0x131484;logger[_0xdbd7ad(0xb8)](_0xdbd7ad(0x8b),_0xa02a74);})['catch'](function(_0x4c2794){logger['info'](JSON['stringify'](_0x4c2794));});});},Migration['prototype']['addIndex']=function(_0x1e4803,_0x2557af,_0x2b60c1){const _0x3a5912=a1182_0x105f58,_0x18aa8c=this;this[_0x3a5912(0x93)][_0x3a5912(0xa4)](function(){const _0x36b63d=_0x3a5912;return _0x18aa8c[_0x36b63d(0x8c)][_0x36b63d(0xb6)](_0x1e4803,_0x2557af,{'indexName':_0x2b60c1['indexName'],'indicesType':_0x2b60c1[_0x36b63d(0x7d)]})['then'](function(){const _0x306626=_0x36b63d;logger[_0x306626(0xb8)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x1e4803,_0x2557af[_0x306626(0xb3)](','),_0x2b60c1[_0x306626(0x91)],_0x2b60c1[_0x306626(0x7d)]);})['catch'](function(_0x5e4346){const _0x35bd61=_0x36b63d;logger[_0x35bd61(0xb8)](JSON[_0x35bd61(0x92)](_0x5e4346));});});},Migration['prototype']['removeIndex']=function(_0x23e962,_0x2d3331){const _0x2c6963=a1182_0x105f58,_0x239114=this;this[_0x2c6963(0x93)][_0x2c6963(0xa4)](function(){const _0x2271f9=_0x2c6963;return _0x239114[_0x2271f9(0x8c)][_0x2271f9(0xbc)](_0x23e962,_0x2d3331)['then'](function(){const _0x104dd6=_0x2271f9;logger['info'](_0x104dd6(0xb0),_0x23e962,_0x2d3331);})[_0x2271f9(0x96)](function(_0x14d01c){const _0x3f6af2=_0x2271f9;logger[_0x3f6af2(0xb8)](JSON['stringify'](_0x14d01c));});});},Migration[a1182_0x105f58(0x89)][a1182_0x105f58(0xb1)]=function(_0x2a03d7){const _0x202d16=a1182_0x105f58,_0x435e2a=this;this['sequence'][_0x202d16(0xa4)](function(){const _0x388b08=_0x202d16;return _0x435e2a[_0x388b08(0x8c)][_0x388b08(0xba)]['query'](_0x2a03d7)[_0x388b08(0x97)](function(){const _0x8db819=_0x388b08;logger[_0x8db819(0xb8)](_0x8db819(0x83),_0x2a03d7);})[_0x388b08(0x96)](function(_0x28db2a){const _0x1a8f15=_0x388b08;logger[_0x1a8f15(0xb8)](JSON[_0x1a8f15(0x92)](_0x28db2a));});});},Migration[a1182_0x105f58(0x89)][a1182_0x105f58(0xae)]=function(_0x255cfe,_0x57fd4f){const _0x23928a=a1182_0x105f58,_0x3e7e0d=this;this[_0x23928a(0x93)][_0x23928a(0xa4)](function(){const _0x288c5a=_0x23928a;return _0x3e7e0d[_0x288c5a(0x8c)]['removeColumn'](_0x255cfe,_0x57fd4f)[_0x288c5a(0x97)](function(){const _0x501889=_0x288c5a;logger[_0x501889(0xb8)]('Removed\x20column\x20%s\x20from\x20%s',_0x57fd4f,_0x255cfe);})[_0x288c5a(0x96)](function(_0x1e2221){const _0x22da8d=_0x288c5a;logger[_0x22da8d(0xb8)](util[_0x22da8d(0x8a)](_0x1e2221,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1182_0x105f58(0x99)]=function(_0x40c9f3,_0x2e91f5,_0x52684d){const _0x3ab18d=a1182_0x105f58,_0x36ac44=this;this[_0x3ab18d(0x93)][_0x3ab18d(0xa4)](function(){const _0x19d97c=_0x3ab18d;return _0x36ac44[_0x19d97c(0x8c)][_0x19d97c(0x99)](_0x40c9f3,_0x2e91f5,_0x52684d)[_0x19d97c(0x97)](function(){const _0x37156d=_0x19d97c;logger[_0x37156d(0xb8)](_0x37156d(0xbf),_0x2e91f5,_0x52684d,_0x40c9f3);})[_0x19d97c(0x96)](function(_0x589ab5){const _0x43dbf1=_0x19d97c;logger[_0x43dbf1(0xb8)](util['inspect'](_0x589ab5,{'showHidden':![],'depth':null}));});});},Migration[a1182_0x105f58(0x89)][a1182_0x105f58(0xad)]=function(_0x3df764){const _0x54c658=a1182_0x105f58;this[_0x54c658(0x93)][_0x54c658(0xa4)](function(){return _0x3df764();});},module['exports']={'up':function(_0x5e619e,_0x163521){return new Promise(function(_0x584c8a){const _0x33866b=a1182_0x51a8,_0x346613=new Migration(_0x5e619e);_0x346613[_0x33866b(0xb1)]('UPDATE\x20tools_actions\x20SET\x20data3\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data3\x20=\x20\x270\x27'),_0x346613[_0x33866b(0xb1)]('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'),_0x346613[_0x33866b(0xb1)](_0x33866b(0x85)),_0x346613['addColumn'](_0x33866b(0xb4),'enforcePasswordHistory',{'type':_0x163521[_0x33866b(0xbe)],'defaultValue':!![]}),_0x346613[_0x33866b(0x98)](_0x33866b(0xb4),'passwordHistoryLimit',{'type':_0x163521['INTEGER'](0x2)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}),_0x346613[_0x33866b(0x98)](_0x33866b(0x95),_0x33866b(0xb7),{'type':_0x163521[_0x33866b(0x9e)],'after':'passwordResetAt'}),_0x346613['addColumn'](_0x33866b(0x95),_0x33866b(0xac),{'type':_0x163521[_0x33866b(0xbe)],'defaultValue':!![]}),_0x346613[_0x33866b(0x98)](_0x33866b(0xab),_0x33866b(0x90),{'type':_0x163521['BOOLEAN'],'defaultValue':![]}),_0x346613[_0x33866b(0x98)](_0x33866b(0xab),_0x33866b(0xbb),{'type':_0x163521['ENUM']('voice'),'allowNull':![],'defaultValue':'voice'}),_0x346613[_0x33866b(0x98)](_0x33866b(0x80),_0x33866b(0x7f),{'type':_0x163521[_0x33866b(0x8d)](_0x33866b(0xb2),_0x33866b(0x86),'third'),'allowNull':![],'defaultValue':'first','after':_0x33866b(0xa1)}),_0x346613[_0x33866b(0x98)](_0x33866b(0x80),_0x33866b(0x7e),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0x7f)}),_0x346613[_0x33866b(0x98)](_0x33866b(0x80),_0x33866b(0xaf),{'type':_0x163521[_0x33866b(0xbd)],'after':'updatedAt'}),_0x346613[_0x33866b(0xb1)]('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'),_0x346613[_0x33866b(0x98)]('report_call','userSecondDisposition',{'type':_0x163521[_0x33866b(0x9e)],'after':'userDisposition'}),_0x346613[_0x33866b(0x98)](_0x33866b(0xa5),_0x33866b(0x9a),{'type':_0x163521['STRING'],'after':_0x33866b(0xa0)}),_0x346613['addColumn'](_0x33866b(0xb9),_0x33866b(0x9d),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0xa8)}),_0x346613[_0x33866b(0x98)](_0x33866b(0xb9),_0x33866b(0x87),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0x9d)}),_0x346613[_0x33866b(0x98)]('voice_recordings',_0x33866b(0xa0),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0x8e)}),_0x346613['addColumn'](_0x33866b(0x88),_0x33866b(0x9a),{'type':_0x163521[_0x33866b(0x9e)],'after':'userSecondDisposition'}),_0x346613[_0x33866b(0x98)](_0x33866b(0xa2),_0x33866b(0x9d),{'type':_0x163521[_0x33866b(0x9e)],'after':'disposition'}),_0x346613['addColumn']('chat_interactions',_0x33866b(0x87),{'type':_0x163521['STRING'],'after':_0x33866b(0x9d)}),_0x346613['addColumn'](_0x33866b(0xa9),_0x33866b(0x9d),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0xa8)}),_0x346613[_0x33866b(0x98)]('fax_interactions',_0x33866b(0x87),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0x9d)}),_0x346613['addColumn']('mail_interactions',_0x33866b(0x9d),{'type':_0x163521['STRING'],'after':'disposition'}),_0x346613['addColumn'](_0x33866b(0xb5),'thirdDisposition',{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0x9d)}),_0x346613[_0x33866b(0x98)](_0x33866b(0x82),'secondDisposition',{'type':_0x163521[_0x33866b(0x9e)],'after':'disposition'}),_0x346613[_0x33866b(0x98)](_0x33866b(0x82),'thirdDisposition',{'type':_0x163521['STRING'],'after':_0x33866b(0x9d)}),_0x346613['addColumn'](_0x33866b(0x8f),_0x33866b(0x9d),{'type':_0x163521['STRING'],'after':_0x33866b(0xa8)}),_0x346613[_0x33866b(0x98)]('sms_interactions','thirdDisposition',{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0x9d)}),_0x346613[_0x33866b(0x98)](_0x33866b(0xa6),_0x33866b(0x9d),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0xa8)}),_0x346613['addColumn']('whatsapp_interactions',_0x33866b(0x87),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0x9d)}),_0x346613[_0x33866b(0x98)](_0x33866b(0x9c),_0x33866b(0x9d),{'type':_0x163521[_0x33866b(0x9e)],'after':'disposition'}),_0x346613[_0x33866b(0x98)](_0x33866b(0x9c),_0x33866b(0x87),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0x9d)}),_0x346613['final'](_0x584c8a);});},'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 a727217..d0fe911 100644 --- a/server/migrations/2.5.6.js +++ b/server/migrations/2.5.6.js @@ -1 +1 @@ -const a1183_0x640f=['renameColumn','lastName','prototype','addColumn','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','mobile','FULLTEXT','stringify','email','finally','tail','final','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','phone','addIndex','query\x20%s','query','dropTable','util','catch','sequence','sequelize','indicesType','inspect','Removed\x20column\x20%s\x20from\x20%s','enqueue','then','removeColumn','Added\x20column\x20%s\x20to\x20%s','fti_cm_contacts','info','removeIndex','indexName','cm_contacts','changeColumn','../config/logger','firstName'];(function(_0x591aca,_0xe7988){const _0x640f78=function(_0x5cc285){while(--_0x5cc285){_0x591aca['push'](_0x591aca['shift']());}};_0x640f78(++_0xe7988);}(a1183_0x640f,0xec));const a1183_0x5cc2=function(_0x591aca,_0xe7988){_0x591aca=_0x591aca-0x173;let _0x640f78=a1183_0x640f[_0x591aca];return _0x640f78;};const a1183_0x1598cc=a1183_0x5cc2;'use strict';const util=require(a1183_0x1598cc(0x18c)),logger=require(a1183_0x1598cc(0x175))(a1183_0x1598cc(0x17d)),Sequence=function(){};Sequence[a1183_0x1598cc(0x179)]['enqueue']=function(_0x214eef){const _0x4ca6b2=a1183_0x1598cc;this[_0x4ca6b2(0x183)]=this[_0x4ca6b2(0x183)]?this['tail'][_0x4ca6b2(0x182)](_0x214eef):_0x214eef();};const Migration=function(_0x1cb439){const _0x58912e=a1183_0x1598cc;this[_0x58912e(0x186)]=_0x1cb439,this[_0x58912e(0x18e)]=new Sequence();};Migration[a1183_0x1598cc(0x179)][a1183_0x1598cc(0x174)]=function(_0x7666c6,_0x55287d,_0x34e1d6){const _0x4b567d=a1183_0x1598cc,_0x12d904=this;this[_0x4b567d(0x18e)][_0x4b567d(0x193)](function(){const _0x5c1dd5=_0x4b567d;return _0x12d904['queryInterface']['changeColumn'](_0x7666c6,_0x55287d,_0x34e1d6)[_0x5c1dd5(0x194)](function(){const _0x14ebb7=_0x5c1dd5;logger[_0x14ebb7(0x198)](_0x14ebb7(0x185),_0x55287d,_0x7666c6);})['catch'](function(_0x3ba43e){const _0xe576c2=_0x5c1dd5;logger[_0xe576c2(0x198)](JSON[_0xe576c2(0x180)](_0x3ba43e));});});},Migration[a1183_0x1598cc(0x179)][a1183_0x1598cc(0x17a)]=function(_0x9a9561,_0x5632f3,_0x5e8773){const _0x35a7da=a1183_0x1598cc,_0x50b1c1=this;this[_0x35a7da(0x18e)][_0x35a7da(0x193)](function(){const _0x2a51d2=_0x35a7da;return _0x50b1c1[_0x2a51d2(0x186)][_0x2a51d2(0x17a)](_0x9a9561,_0x5632f3,_0x5e8773)[_0x2a51d2(0x194)](function(){const _0x518a57=_0x2a51d2;logger['info'](_0x518a57(0x196),_0x5632f3,_0x9a9561);})['catch'](function(_0x2aaa3b){const _0x525335=_0x2a51d2;logger[_0x525335(0x198)](JSON[_0x525335(0x180)](_0x2aaa3b));});});},Migration[a1183_0x1598cc(0x179)][a1183_0x1598cc(0x18b)]=function(_0x85ae6a){const _0x3a60bd=a1183_0x1598cc,_0x2280e3=this;this[_0x3a60bd(0x18e)]['enqueue'](function(){const _0x212d6b=_0x3a60bd;return _0x2280e3[_0x212d6b(0x186)][_0x212d6b(0x18b)](_0x85ae6a,{'force':!![]})[_0x212d6b(0x194)](function(){const _0x189bf0=_0x212d6b;logger[_0x189bf0(0x198)]('table\x20dropped\x20%s',_0x85ae6a);})[_0x212d6b(0x18d)](function(_0x8fd68e){const _0x25e707=_0x212d6b;logger[_0x25e707(0x198)](JSON[_0x25e707(0x180)](_0x8fd68e));});});},Migration['prototype'][a1183_0x1598cc(0x188)]=function(_0x71014f,_0x3f3989,_0x1a2e51){const _0x130dca=a1183_0x1598cc,_0x524776=this;this[_0x130dca(0x18e)]['enqueue'](function(){const _0x4a3921=_0x130dca;return _0x524776[_0x4a3921(0x186)][_0x4a3921(0x188)](_0x71014f,_0x3f3989,{'indexName':_0x1a2e51[_0x4a3921(0x19a)],'indicesType':_0x1a2e51[_0x4a3921(0x190)]})[_0x4a3921(0x194)](function(){const _0x44d061=_0x4a3921;logger[_0x44d061(0x198)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x71014f,_0x3f3989[_0x44d061(0x17b)](','),_0x1a2e51['indexName'],_0x1a2e51[_0x44d061(0x190)]);})['catch'](function(_0x5af6d2){const _0x2e9efa=_0x4a3921;logger[_0x2e9efa(0x198)](JSON[_0x2e9efa(0x180)](_0x5af6d2));});});},Migration[a1183_0x1598cc(0x179)][a1183_0x1598cc(0x199)]=function(_0x1ed4e5,_0x4fe1b7){const _0x37e5a1=a1183_0x1598cc,_0x4f1c28=this;this[_0x37e5a1(0x18e)]['enqueue'](function(){const _0x5a5e2c=_0x37e5a1;return _0x4f1c28[_0x5a5e2c(0x186)]['removeIndex'](_0x1ed4e5,_0x4fe1b7)[_0x5a5e2c(0x194)](function(){const _0x5c5a00=_0x5a5e2c;logger[_0x5c5a00(0x198)]('removeIndex\x20%s\x20%s',_0x1ed4e5,_0x4fe1b7);})['catch'](function(_0x58252f){const _0x48d5d7=_0x5a5e2c;logger[_0x48d5d7(0x198)](JSON[_0x48d5d7(0x180)](_0x58252f));});});},Migration[a1183_0x1598cc(0x179)][a1183_0x1598cc(0x18a)]=function(_0x5046bb){const _0x320335=a1183_0x1598cc,_0x7c9d15=this;this['sequence'][_0x320335(0x193)](function(){const _0xbee256=_0x320335;return _0x7c9d15[_0xbee256(0x186)][_0xbee256(0x18f)][_0xbee256(0x18a)](_0x5046bb)[_0xbee256(0x194)](function(){const _0x5720f3=_0xbee256;logger['info'](_0x5720f3(0x189),_0x5046bb);})[_0xbee256(0x18d)](function(_0x4eaa88){const _0x545151=_0xbee256;logger['info'](JSON[_0x545151(0x180)](_0x4eaa88));});});},Migration[a1183_0x1598cc(0x179)][a1183_0x1598cc(0x195)]=function(_0x350108,_0x13f788){const _0x4df8bd=a1183_0x1598cc,_0x5ce3db=this;this[_0x4df8bd(0x18e)][_0x4df8bd(0x193)](function(){const _0x59bec7=_0x4df8bd;return _0x5ce3db[_0x59bec7(0x186)][_0x59bec7(0x195)](_0x350108,_0x13f788)[_0x59bec7(0x194)](function(){const _0x4f01f4=_0x59bec7;logger['info'](_0x4f01f4(0x192),_0x13f788,_0x350108);})[_0x59bec7(0x18d)](function(_0x2117f6){const _0x506f20=_0x59bec7;logger[_0x506f20(0x198)](util[_0x506f20(0x191)](_0x2117f6,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1183_0x1598cc(0x177)]=function(_0x9fb486,_0x46e94b,_0x5032a3){const _0x34daea=a1183_0x1598cc,_0x42aa83=this;this[_0x34daea(0x18e)]['enqueue'](function(){const _0x52b6bb=_0x34daea;return _0x42aa83[_0x52b6bb(0x186)][_0x52b6bb(0x177)](_0x9fb486,_0x46e94b,_0x5032a3)[_0x52b6bb(0x194)](function(){const _0x144104=_0x52b6bb;logger[_0x144104(0x198)](_0x144104(0x17c),_0x46e94b,_0x5032a3,_0x9fb486);})[_0x52b6bb(0x18d)](function(_0x11302f){const _0x1b61c6=_0x52b6bb;logger['info'](util[_0x1b61c6(0x191)](_0x11302f,{'showHidden':![],'depth':null}));});});},Migration[a1183_0x1598cc(0x179)][a1183_0x1598cc(0x184)]=function(_0x1895a8){const _0x3c0a21=a1183_0x1598cc;this['sequence'][_0x3c0a21(0x193)](function(){return _0x1895a8();});},module['exports']={'up':function(_0x1902da){return new Promise(function(_0x20222a){const _0x5afcf9=a1183_0x5cc2,_0x56fe2a=new Migration(_0x1902da);_0x56fe2a[_0x5afcf9(0x188)](_0x5afcf9(0x173),[_0x5afcf9(0x176),_0x5afcf9(0x178),_0x5afcf9(0x187),_0x5afcf9(0x17e),'fax',_0x5afcf9(0x181)],{'indexName':_0x5afcf9(0x197),'indicesType':_0x5afcf9(0x17f)}),_0x56fe2a[_0x5afcf9(0x184)](_0x20222a);});},'down':function(){}}; \ No newline at end of file +const a1183_0x4c79=['removeIndex\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','FULLTEXT','migration','indexName','query','email','final','finally','util','info','sequence','queryInterface','fti_cm_contacts','renameColumn','fax','firstName','addColumn','../config/logger','then','table\x20dropped\x20%s','addIndex','enqueue','stringify','catch','indicesType','removeColumn','tail','dropTable','prototype','removeIndex','sequelize','lastName','phone','cm_contacts','Removed\x20column\x20%s\x20from\x20%s','inspect'];(function(_0xba9c09,_0x419524){const _0x4c7902=function(_0x5adfcc){while(--_0x5adfcc){_0xba9c09['push'](_0xba9c09['shift']());}};_0x4c7902(++_0x419524);}(a1183_0x4c79,0xc6));const a1183_0x5adf=function(_0xba9c09,_0x419524){_0xba9c09=_0xba9c09-0x169;let _0x4c7902=a1183_0x4c79[_0xba9c09];return _0x4c7902;};const a1183_0x38dc70=a1183_0x5adf;'use strict';const util=require(a1183_0x38dc70(0x18a)),logger=require(a1183_0x38dc70(0x16e))(a1183_0x38dc70(0x184)),Sequence=function(){};Sequence['prototype'][a1183_0x38dc70(0x172)]=function(_0x383f74){const _0x35f3b8=a1183_0x38dc70;this[_0x35f3b8(0x177)]=this[_0x35f3b8(0x177)]?this[_0x35f3b8(0x177)][_0x35f3b8(0x189)](_0x383f74):_0x383f74();};const Migration=function(_0xce6b1c){const _0x52cfca=a1183_0x38dc70;this[_0x52cfca(0x18d)]=_0xce6b1c,this['sequence']=new Sequence();};Migration[a1183_0x38dc70(0x179)]['changeColumn']=function(_0x2f8b74,_0x114776,_0x2dddb0){const _0x5309ff=this;this['sequence']['enqueue'](function(){const _0xeb7280=a1183_0x5adf;return _0x5309ff['queryInterface']['changeColumn'](_0x2f8b74,_0x114776,_0x2dddb0)[_0xeb7280(0x16f)](function(){const _0x1a2532=_0xeb7280;logger['info'](_0x1a2532(0x182),_0x114776,_0x2f8b74);})[_0xeb7280(0x174)](function(_0x31d632){logger['info'](JSON['stringify'](_0x31d632));});});},Migration[a1183_0x38dc70(0x179)][a1183_0x38dc70(0x16d)]=function(_0x514cd5,_0x45dbdf,_0x213eda){const _0x58af9f=a1183_0x38dc70,_0x595a3b=this;this[_0x58af9f(0x18c)][_0x58af9f(0x172)](function(){const _0x78ae69=_0x58af9f;return _0x595a3b[_0x78ae69(0x18d)][_0x78ae69(0x16d)](_0x514cd5,_0x45dbdf,_0x213eda)[_0x78ae69(0x16f)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x45dbdf,_0x514cd5);})[_0x78ae69(0x174)](function(_0xa7e477){const _0x315544=_0x78ae69;logger['info'](JSON[_0x315544(0x173)](_0xa7e477));});});},Migration[a1183_0x38dc70(0x179)][a1183_0x38dc70(0x178)]=function(_0x24fb9b){const _0x19634b=a1183_0x38dc70,_0x542e8f=this;this[_0x19634b(0x18c)]['enqueue'](function(){const _0x2e60bb=_0x19634b;return _0x542e8f[_0x2e60bb(0x18d)][_0x2e60bb(0x178)](_0x24fb9b,{'force':!![]})['then'](function(){const _0x3160e4=_0x2e60bb;logger[_0x3160e4(0x18b)](_0x3160e4(0x170),_0x24fb9b);})['catch'](function(_0x182f93){const _0x423b61=_0x2e60bb;logger['info'](JSON[_0x423b61(0x173)](_0x182f93));});});},Migration[a1183_0x38dc70(0x179)]['addIndex']=function(_0x4b90db,_0x5129a3,_0x38b19b){const _0x139ae8=a1183_0x38dc70,_0x2908bb=this;this['sequence'][_0x139ae8(0x172)](function(){const _0x436556=_0x139ae8;return _0x2908bb[_0x436556(0x18d)][_0x436556(0x171)](_0x4b90db,_0x5129a3,{'indexName':_0x38b19b['indexName'],'indicesType':_0x38b19b[_0x436556(0x175)]})[_0x436556(0x16f)](function(){const _0x28f7de=_0x436556;logger[_0x28f7de(0x18b)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x4b90db,_0x5129a3['join'](','),_0x38b19b[_0x28f7de(0x185)],_0x38b19b[_0x28f7de(0x175)]);})[_0x436556(0x174)](function(_0x3678c0){const _0x2d63e6=_0x436556;logger[_0x2d63e6(0x18b)](JSON[_0x2d63e6(0x173)](_0x3678c0));});});},Migration[a1183_0x38dc70(0x179)][a1183_0x38dc70(0x17a)]=function(_0x5d7ddf,_0x55df99){const _0x55da32=a1183_0x38dc70,_0x367474=this;this[_0x55da32(0x18c)][_0x55da32(0x172)](function(){const _0x8e850b=_0x55da32;return _0x367474[_0x8e850b(0x18d)][_0x8e850b(0x17a)](_0x5d7ddf,_0x55df99)[_0x8e850b(0x16f)](function(){const _0x5d0ecf=_0x8e850b;logger[_0x5d0ecf(0x18b)](_0x5d0ecf(0x181),_0x5d7ddf,_0x55df99);})[_0x8e850b(0x174)](function(_0xbd932a){const _0x3b8783=_0x8e850b;logger[_0x3b8783(0x18b)](JSON['stringify'](_0xbd932a));});});},Migration[a1183_0x38dc70(0x179)][a1183_0x38dc70(0x186)]=function(_0x5bed39){const _0x4df841=a1183_0x38dc70,_0x5bf8da=this;this[_0x4df841(0x18c)][_0x4df841(0x172)](function(){const _0x1afa14=_0x4df841;return _0x5bf8da[_0x1afa14(0x18d)][_0x1afa14(0x17b)][_0x1afa14(0x186)](_0x5bed39)['then'](function(){logger['info']('query\x20%s',_0x5bed39);})['catch'](function(_0x3b63c1){const _0x5244d3=_0x1afa14;logger[_0x5244d3(0x18b)](JSON['stringify'](_0x3b63c1));});});},Migration[a1183_0x38dc70(0x179)][a1183_0x38dc70(0x176)]=function(_0x8eaf5e,_0xeeb860){const _0x33287b=a1183_0x38dc70,_0x3d81ad=this;this[_0x33287b(0x18c)]['enqueue'](function(){const _0x53db6a=_0x33287b;return _0x3d81ad[_0x53db6a(0x18d)]['removeColumn'](_0x8eaf5e,_0xeeb860)['then'](function(){const _0x483d91=_0x53db6a;logger['info'](_0x483d91(0x17f),_0xeeb860,_0x8eaf5e);})[_0x53db6a(0x174)](function(_0x106a3a){const _0x3dfd2e=_0x53db6a;logger[_0x3dfd2e(0x18b)](util[_0x3dfd2e(0x180)](_0x106a3a,{'showHidden':![],'depth':null}));});});},Migration[a1183_0x38dc70(0x179)][a1183_0x38dc70(0x16a)]=function(_0x95505f,_0x20d0da,_0x3364ab){const _0x24384b=this;this['sequence']['enqueue'](function(){const _0xb6f111=a1183_0x5adf;return _0x24384b['queryInterface'][_0xb6f111(0x16a)](_0x95505f,_0x20d0da,_0x3364ab)[_0xb6f111(0x16f)](function(){const _0x53b6d0=_0xb6f111;logger[_0x53b6d0(0x18b)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x20d0da,_0x3364ab,_0x95505f);})[_0xb6f111(0x174)](function(_0x5b20ed){const _0x88469f=_0xb6f111;logger[_0x88469f(0x18b)](util['inspect'](_0x5b20ed,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1183_0x38dc70(0x188)]=function(_0x5b3817){const _0x20cdcb=a1183_0x38dc70;this['sequence'][_0x20cdcb(0x172)](function(){return _0x5b3817();});},module['exports']={'up':function(_0x52d983){return new Promise(function(_0x3adef4){const _0x5ed702=a1183_0x5adf,_0x3cc066=new Migration(_0x52d983);_0x3cc066[_0x5ed702(0x171)](_0x5ed702(0x17e),[_0x5ed702(0x16c),_0x5ed702(0x17c),_0x5ed702(0x17d),'mobile',_0x5ed702(0x16b),_0x5ed702(0x187)],{'indexName':_0x5ed702(0x169),'indicesType':_0x5ed702(0x183)}),_0x3cc066['final'](_0x3adef4);});},'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 af53ecf..73a6930 100644 --- a/server/migrations/2.5.7.js +++ b/server/migrations/2.5.7.js @@ -1 +1 @@ -const a1184_0xc8c8=['util','sequelize','join','addColumn','catch','exports','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','sequence','query\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','prototype','removeColumn','providerName','removeIndex','inspect','../config/logger','STRING','query','then','whatsapp_messages','indexName','migration','info','renameColumn','openchannel_messages','changeColumn','Added\x20column\x20%s\x20to\x20%s','providerResponse','tail','TEXT','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','square_messages','indicesType','dropTable','chat_messages','addIndex','stringify','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x47cf69,_0x25ad27){const _0xc8c890=function(_0x4eadda){while(--_0x4eadda){_0x47cf69['push'](_0x47cf69['shift']());}};_0xc8c890(++_0x25ad27);}(a1184_0xc8c8,0x90));const a1184_0x4ead=function(_0x47cf69,_0x25ad27){_0x47cf69=_0x47cf69-0x97;let _0xc8c890=a1184_0xc8c8[_0x47cf69];return _0xc8c890;};const a1184_0x175c81=a1184_0x4ead;'use strict';const util=require(a1184_0x175c81(0xa7)),logger=require(a1184_0x175c81(0xb8))(a1184_0x175c81(0xbe)),Sequence=function(){};Sequence[a1184_0x175c81(0xb3)][a1184_0x175c81(0xad)]=function(_0x42325b){const _0x3aa653=a1184_0x175c81;this[_0x3aa653(0x9d)]=this[_0x3aa653(0x9d)]?this['tail']['finally'](_0x42325b):_0x42325b();};const Migration=function(_0x4e0555){this['queryInterface']=_0x4e0555,this['sequence']=new Sequence();};Migration[a1184_0x175c81(0xb3)][a1184_0x175c81(0x9a)]=function(_0xe9b7ef,_0x50a6f1,_0x16570d){const _0x1cb1a7=this;this['sequence']['enqueue'](function(){const _0x1f28d7=a1184_0x4ead;return _0x1cb1a7[_0x1f28d7(0xaf)][_0x1f28d7(0x9a)](_0xe9b7ef,_0x50a6f1,_0x16570d)[_0x1f28d7(0xbb)](function(){const _0x4f100b=_0x1f28d7;logger[_0x4f100b(0x97)](_0x4f100b(0xae),_0x50a6f1,_0xe9b7ef);})[_0x1f28d7(0xab)](function(_0x51abf4){const _0x469fb9=_0x1f28d7;logger[_0x469fb9(0x97)](JSON[_0x469fb9(0xa5)](_0x51abf4));});});},Migration['prototype'][a1184_0x175c81(0xaa)]=function(_0x277330,_0x184050,_0x39cdee){const _0x37c223=this;this['sequence']['enqueue'](function(){const _0x509206=a1184_0x4ead;return _0x37c223['queryInterface'][_0x509206(0xaa)](_0x277330,_0x184050,_0x39cdee)['then'](function(){const _0x211d9d=_0x509206;logger['info'](_0x211d9d(0x9b),_0x184050,_0x277330);})[_0x509206(0xab)](function(_0x327795){const _0x4fe794=_0x509206;logger[_0x4fe794(0x97)](JSON[_0x4fe794(0xa5)](_0x327795));});});},Migration[a1184_0x175c81(0xb3)][a1184_0x175c81(0xa2)]=function(_0x2ae9c3){const _0x597eb9=a1184_0x175c81,_0x500c8b=this;this[_0x597eb9(0xb0)]['enqueue'](function(){const _0x5e5a68=_0x597eb9;return _0x500c8b[_0x5e5a68(0xaf)]['dropTable'](_0x2ae9c3,{'force':!![]})[_0x5e5a68(0xbb)](function(){logger['info']('table\x20dropped\x20%s',_0x2ae9c3);})['catch'](function(_0x102f14){const _0x30e34b=_0x5e5a68;logger[_0x30e34b(0x97)](JSON[_0x30e34b(0xa5)](_0x102f14));});});},Migration['prototype'][a1184_0x175c81(0xa4)]=function(_0x4ffae5,_0x433ba8,_0x3c93bc){const _0x3c14f4=a1184_0x175c81,_0x4930fe=this;this['sequence'][_0x3c14f4(0xad)](function(){const _0x18b205=_0x3c14f4;return _0x4930fe[_0x18b205(0xaf)][_0x18b205(0xa4)](_0x4ffae5,_0x433ba8,{'indexName':_0x3c93bc[_0x18b205(0xbd)],'indicesType':_0x3c93bc[_0x18b205(0xa1)]})[_0x18b205(0xbb)](function(){const _0x5e34fb=_0x18b205;logger[_0x5e34fb(0x97)](_0x5e34fb(0xb2),_0x4ffae5,_0x433ba8[_0x5e34fb(0xa9)](','),_0x3c93bc[_0x5e34fb(0xbd)],_0x3c93bc[_0x5e34fb(0xa1)]);})[_0x18b205(0xab)](function(_0x260253){const _0x491d2a=_0x18b205;logger[_0x491d2a(0x97)](JSON['stringify'](_0x260253));});});},Migration[a1184_0x175c81(0xb3)][a1184_0x175c81(0xb6)]=function(_0x56e208,_0xae83ca){const _0x3a1b99=a1184_0x175c81,_0x5629f0=this;this[_0x3a1b99(0xb0)][_0x3a1b99(0xad)](function(){const _0x48ad4c=_0x3a1b99;return _0x5629f0[_0x48ad4c(0xaf)][_0x48ad4c(0xb6)](_0x56e208,_0xae83ca)[_0x48ad4c(0xbb)](function(){const _0x2f2818=_0x48ad4c;logger[_0x2f2818(0x97)]('removeIndex\x20%s\x20%s',_0x56e208,_0xae83ca);})[_0x48ad4c(0xab)](function(_0x29862e){const _0x1e45a4=_0x48ad4c;logger[_0x1e45a4(0x97)](JSON[_0x1e45a4(0xa5)](_0x29862e));});});},Migration['prototype']['query']=function(_0x552769){const _0x57bafd=a1184_0x175c81,_0x47ef11=this;this[_0x57bafd(0xb0)][_0x57bafd(0xad)](function(){const _0x24711a=_0x57bafd;return _0x47ef11['queryInterface'][_0x24711a(0xa8)][_0x24711a(0xba)](_0x552769)[_0x24711a(0xbb)](function(){const _0x5456f7=_0x24711a;logger[_0x5456f7(0x97)](_0x5456f7(0xb1),_0x552769);})[_0x24711a(0xab)](function(_0x49332b){const _0x1dcdbd=_0x24711a;logger[_0x1dcdbd(0x97)](JSON[_0x1dcdbd(0xa5)](_0x49332b));});});},Migration['prototype'][a1184_0x175c81(0xb4)]=function(_0x4a16a2,_0x567f9e){const _0x31ef24=a1184_0x175c81,_0x6903f5=this;this['sequence'][_0x31ef24(0xad)](function(){const _0x540224=_0x31ef24;return _0x6903f5[_0x540224(0xaf)][_0x540224(0xb4)](_0x4a16a2,_0x567f9e)[_0x540224(0xbb)](function(){const _0x14c593=_0x540224;logger['info'](_0x14c593(0xa6),_0x567f9e,_0x4a16a2);})[_0x540224(0xab)](function(_0x444b5c){const _0x34e184=_0x540224;logger[_0x34e184(0x97)](util[_0x34e184(0xb7)](_0x444b5c,{'showHidden':![],'depth':null}));});});},Migration[a1184_0x175c81(0xb3)][a1184_0x175c81(0x98)]=function(_0xcee058,_0x192de5,_0x55eb15){const _0x2bfd8c=a1184_0x175c81,_0x18b111=this;this[_0x2bfd8c(0xb0)][_0x2bfd8c(0xad)](function(){const _0x17daf7=_0x2bfd8c;return _0x18b111[_0x17daf7(0xaf)][_0x17daf7(0x98)](_0xcee058,_0x192de5,_0x55eb15)['then'](function(){const _0x826acf=_0x17daf7;logger[_0x826acf(0x97)](_0x826acf(0x9f),_0x192de5,_0x55eb15,_0xcee058);})['catch'](function(_0x2a7ccf){const _0x373ee4=_0x17daf7;logger[_0x373ee4(0x97)](util[_0x373ee4(0xb7)](_0x2a7ccf,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x58f86f){this['sequence']['enqueue'](function(){return _0x58f86f();});},module[a1184_0x175c81(0xac)]={'up':function(_0x4dbd8e,_0x17e65f){return new Promise(function(_0x54d880){const _0x28ca6f=a1184_0x4ead,_0xd36c4f=new Migration(_0x4dbd8e);_0xd36c4f[_0x28ca6f(0xaa)](_0x28ca6f(0xa3),_0x28ca6f(0xb5),{'type':_0x17e65f[_0x28ca6f(0xb9)]}),_0xd36c4f[_0x28ca6f(0xaa)]('chat_messages',_0x28ca6f(0x9c),{'type':_0x17e65f['TEXT']}),_0xd36c4f['addColumn'](_0x28ca6f(0x99),_0x28ca6f(0xb5),{'type':_0x17e65f[_0x28ca6f(0xb9)]}),_0xd36c4f[_0x28ca6f(0xaa)](_0x28ca6f(0x99),_0x28ca6f(0x9c),{'type':_0x17e65f[_0x28ca6f(0x9e)]}),_0xd36c4f[_0x28ca6f(0xaa)]('sms_messages',_0x28ca6f(0xb5),{'type':_0x17e65f[_0x28ca6f(0xb9)]}),_0xd36c4f[_0x28ca6f(0xaa)]('sms_messages','providerResponse',{'type':_0x17e65f['TEXT']}),_0xd36c4f[_0x28ca6f(0xaa)](_0x28ca6f(0xbc),_0x28ca6f(0xb5),{'type':_0x17e65f[_0x28ca6f(0xb9)]}),_0xd36c4f[_0x28ca6f(0xaa)]('whatsapp_messages',_0x28ca6f(0x9c),{'type':_0x17e65f[_0x28ca6f(0x9e)]}),_0xd36c4f[_0x28ca6f(0xaa)](_0x28ca6f(0xa0),_0x28ca6f(0xb5),{'type':_0x17e65f[_0x28ca6f(0xb9)]}),_0xd36c4f[_0x28ca6f(0xaa)](_0x28ca6f(0xa0),_0x28ca6f(0x9c),{'type':_0x17e65f['TEXT']}),_0xd36c4f['final'](_0x54d880);});},'down':function(){}}; \ No newline at end of file +const a1184_0x591a=['addColumn','STRING','migration','Added\x20column\x20%s\x20to\x20%s','whatsapp_messages','enqueue','util','sms_messages','tail','indicesType','exports','openchannel_messages','query','removeColumn','join','changeColumn','providerResponse','dropTable','then','addIndex','../config/logger','sequence','providerName','TEXT','square_messages','stringify','queryInterface','chat_messages','table\x20dropped\x20%s','catch','query\x20%s','info','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','inspect','final','renameColumn','indexName','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x24495c,_0x26d7d7){const _0x591a6d=function(_0x474a09){while(--_0x474a09){_0x24495c['push'](_0x24495c['shift']());}};_0x591a6d(++_0x26d7d7);}(a1184_0x591a,0xac));const a1184_0x474a=function(_0x24495c,_0x26d7d7){_0x24495c=_0x24495c-0x159;let _0x591a6d=a1184_0x591a[_0x24495c];return _0x591a6d;};const a1184_0xd57523=a1184_0x474a;'use strict';const util=require(a1184_0xd57523(0x17b)),logger=require(a1184_0xd57523(0x161))(a1184_0xd57523(0x177)),Sequence=function(){};Sequence[a1184_0xd57523(0x16f)][a1184_0xd57523(0x17a)]=function(_0x1b0747){const _0x2a1581=a1184_0xd57523;this['tail']=this[_0x2a1581(0x17d)]?this[_0x2a1581(0x17d)]['finally'](_0x1b0747):_0x1b0747();};const Migration=function(_0x341eb0){const _0x529c9a=a1184_0xd57523;this[_0x529c9a(0x167)]=_0x341eb0,this[_0x529c9a(0x162)]=new Sequence();};Migration[a1184_0xd57523(0x16f)]['changeColumn']=function(_0x276d2f,_0x1ff0b2,_0xc7e4e4){const _0xfa4ced=a1184_0xd57523,_0x184262=this;this['sequence'][_0xfa4ced(0x17a)](function(){const _0x10d721=_0xfa4ced;return _0x184262[_0x10d721(0x167)][_0x10d721(0x15c)](_0x276d2f,_0x1ff0b2,_0xc7e4e4)[_0x10d721(0x15f)](function(){const _0x4515df=_0x10d721;logger['info'](_0x4515df(0x16e),_0x1ff0b2,_0x276d2f);})[_0x10d721(0x16a)](function(_0xa55f6e){logger['info'](JSON['stringify'](_0xa55f6e));});});},Migration[a1184_0xd57523(0x16f)][a1184_0xd57523(0x175)]=function(_0x137842,_0x237d39,_0x4d7c23){const _0x284267=a1184_0xd57523,_0x1595af=this;this[_0x284267(0x162)]['enqueue'](function(){const _0x4ad650=_0x284267;return _0x1595af[_0x4ad650(0x167)][_0x4ad650(0x175)](_0x137842,_0x237d39,_0x4d7c23)['then'](function(){const _0x3a9287=_0x4ad650;logger[_0x3a9287(0x16c)](_0x3a9287(0x178),_0x237d39,_0x137842);})[_0x4ad650(0x16a)](function(_0x27e5f0){const _0x754187=_0x4ad650;logger['info'](JSON[_0x754187(0x166)](_0x27e5f0));});});},Migration[a1184_0xd57523(0x16f)][a1184_0xd57523(0x15e)]=function(_0x58bc8c){const _0x562674=a1184_0xd57523,_0x3f3b33=this;this[_0x562674(0x162)][_0x562674(0x17a)](function(){const _0x26dc98=_0x562674;return _0x3f3b33['queryInterface'][_0x26dc98(0x15e)](_0x58bc8c,{'force':!![]})[_0x26dc98(0x15f)](function(){const _0x394a36=_0x26dc98;logger['info'](_0x394a36(0x169),_0x58bc8c);})['catch'](function(_0x4bb4ac){const _0x52ff01=_0x26dc98;logger[_0x52ff01(0x16c)](JSON[_0x52ff01(0x166)](_0x4bb4ac));});});},Migration[a1184_0xd57523(0x16f)][a1184_0xd57523(0x160)]=function(_0x122f77,_0x5b1765,_0x51509b){const _0x22a4c0=a1184_0xd57523,_0x3e117b=this;this['sequence'][_0x22a4c0(0x17a)](function(){const _0x54b5f8=_0x22a4c0;return _0x3e117b['queryInterface']['addIndex'](_0x122f77,_0x5b1765,{'indexName':_0x51509b[_0x54b5f8(0x173)],'indicesType':_0x51509b['indicesType']})[_0x54b5f8(0x15f)](function(){const _0x140516=_0x54b5f8;logger[_0x140516(0x16c)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x122f77,_0x5b1765[_0x140516(0x15b)](','),_0x51509b[_0x140516(0x173)],_0x51509b[_0x140516(0x17e)]);})[_0x54b5f8(0x16a)](function(_0x583e68){const _0x3795bc=_0x54b5f8;logger['info'](JSON[_0x3795bc(0x166)](_0x583e68));});});},Migration[a1184_0xd57523(0x16f)][a1184_0xd57523(0x16d)]=function(_0x2203bf,_0x5784ed){const _0xc432cf=a1184_0xd57523,_0x5bc9a7=this;this[_0xc432cf(0x162)][_0xc432cf(0x17a)](function(){const _0x82319e=_0xc432cf;return _0x5bc9a7[_0x82319e(0x167)][_0x82319e(0x16d)](_0x2203bf,_0x5784ed)[_0x82319e(0x15f)](function(){logger['info']('removeIndex\x20%s\x20%s',_0x2203bf,_0x5784ed);})[_0x82319e(0x16a)](function(_0xac6c3f){const _0x346b83=_0x82319e;logger[_0x346b83(0x16c)](JSON['stringify'](_0xac6c3f));});});},Migration[a1184_0xd57523(0x16f)][a1184_0xd57523(0x159)]=function(_0x6d9a85){const _0xcec2e8=a1184_0xd57523,_0x22d856=this;this['sequence'][_0xcec2e8(0x17a)](function(){const _0x4f670c=_0xcec2e8;return _0x22d856['queryInterface']['sequelize']['query'](_0x6d9a85)[_0x4f670c(0x15f)](function(){const _0xaf8abd=_0x4f670c;logger[_0xaf8abd(0x16c)](_0xaf8abd(0x16b),_0x6d9a85);})['catch'](function(_0x48619a){const _0x30b0a3=_0x4f670c;logger['info'](JSON[_0x30b0a3(0x166)](_0x48619a));});});},Migration['prototype'][a1184_0xd57523(0x15a)]=function(_0x45238c,_0x166971){const _0x5538cf=a1184_0xd57523,_0x504d80=this;this[_0x5538cf(0x162)][_0x5538cf(0x17a)](function(){const _0x582be8=_0x5538cf;return _0x504d80[_0x582be8(0x167)][_0x582be8(0x15a)](_0x45238c,_0x166971)['then'](function(){const _0xfaa70f=_0x582be8;logger['info'](_0xfaa70f(0x174),_0x166971,_0x45238c);})['catch'](function(_0x300ada){const _0x30bd87=_0x582be8;logger[_0x30bd87(0x16c)](util[_0x30bd87(0x170)](_0x300ada,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1184_0xd57523(0x172)]=function(_0x556b02,_0x434cd9,_0x4f8c3c){const _0x253d03=this;this['sequence']['enqueue'](function(){const _0x5dee63=a1184_0x474a;return _0x253d03['queryInterface']['renameColumn'](_0x556b02,_0x434cd9,_0x4f8c3c)[_0x5dee63(0x15f)](function(){const _0x4aeec4=_0x5dee63;logger[_0x4aeec4(0x16c)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x434cd9,_0x4f8c3c,_0x556b02);})['catch'](function(_0x5c5d2c){const _0x535aab=_0x5dee63;logger[_0x535aab(0x16c)](util[_0x535aab(0x170)](_0x5c5d2c,{'showHidden':![],'depth':null}));});});},Migration[a1184_0xd57523(0x16f)][a1184_0xd57523(0x171)]=function(_0x778f56){const _0x9f257c=a1184_0xd57523;this[_0x9f257c(0x162)]['enqueue'](function(){return _0x778f56();});},module[a1184_0xd57523(0x17f)]={'up':function(_0x5ec9a9,_0x3b43ed){return new Promise(function(_0x36075b){const _0x2060c3=a1184_0x474a,_0x4b3d8e=new Migration(_0x5ec9a9);_0x4b3d8e[_0x2060c3(0x175)]('chat_messages',_0x2060c3(0x163),{'type':_0x3b43ed['STRING']}),_0x4b3d8e[_0x2060c3(0x175)](_0x2060c3(0x168),'providerResponse',{'type':_0x3b43ed[_0x2060c3(0x164)]}),_0x4b3d8e[_0x2060c3(0x175)](_0x2060c3(0x180),_0x2060c3(0x163),{'type':_0x3b43ed[_0x2060c3(0x176)]}),_0x4b3d8e[_0x2060c3(0x175)](_0x2060c3(0x180),_0x2060c3(0x15d),{'type':_0x3b43ed[_0x2060c3(0x164)]}),_0x4b3d8e[_0x2060c3(0x175)](_0x2060c3(0x17c),'providerName',{'type':_0x3b43ed[_0x2060c3(0x176)]}),_0x4b3d8e[_0x2060c3(0x175)](_0x2060c3(0x17c),'providerResponse',{'type':_0x3b43ed[_0x2060c3(0x164)]}),_0x4b3d8e['addColumn'](_0x2060c3(0x179),_0x2060c3(0x163),{'type':_0x3b43ed[_0x2060c3(0x176)]}),_0x4b3d8e[_0x2060c3(0x175)](_0x2060c3(0x179),_0x2060c3(0x15d),{'type':_0x3b43ed[_0x2060c3(0x164)]}),_0x4b3d8e[_0x2060c3(0x175)](_0x2060c3(0x165),'providerName',{'type':_0x3b43ed[_0x2060c3(0x176)]}),_0x4b3d8e['addColumn'](_0x2060c3(0x165),'providerResponse',{'type':_0x3b43ed[_0x2060c3(0x164)]}),_0x4b3d8e[_0x2060c3(0x171)](_0x36075b);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.5.8.js b/server/migrations/2.5.8.js index 213a63b..23c2871 100644 --- a/server/migrations/2.5.8.js +++ b/server/migrations/2.5.8.js @@ -1 +1 @@ -const a1185_0x3fb9=['indicesType','stringify','table\x20dropped\x20%s','migration','query','renameColumn','enqueue','util','addColumn','catch','final','sequelize','dropTable','changeColumn','removeColumn','prototype','exports','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','../config/logger','Removed\x20column\x20%s\x20from\x20%s','indexName','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','join','addIndex','queryInterface','info','then','inspect'];(function(_0x5467a9,_0x7f2d9a){const _0x3fb9d6=function(_0x360ab2){while(--_0x360ab2){_0x5467a9['push'](_0x5467a9['shift']());}};_0x3fb9d6(++_0x7f2d9a);}(a1185_0x3fb9,0x1c8));const a1185_0x360a=function(_0x5467a9,_0x7f2d9a){_0x5467a9=_0x5467a9-0x1bd;let _0x3fb9d6=a1185_0x3fb9[_0x5467a9];return _0x3fb9d6;};const a1185_0x214fa4=a1185_0x360a;'use strict';const util=require(a1185_0x214fa4(0x1cd)),logger=require(a1185_0x214fa4(0x1da))(a1185_0x214fa4(0x1c9)),Sequence=function(){};Sequence[a1185_0x214fa4(0x1d5)][a1185_0x214fa4(0x1cc)]=function(_0x1d8569){const _0x51b3a6=a1185_0x214fa4;this[_0x51b3a6(0x1d9)]=this[_0x51b3a6(0x1d9)]?this[_0x51b3a6(0x1d9)]['finally'](_0x1d8569):_0x1d8569();};const Migration=function(_0x4a5a1c){const _0x2ec599=a1185_0x214fa4;this[_0x2ec599(0x1c2)]=_0x4a5a1c,this['sequence']=new Sequence();};Migration[a1185_0x214fa4(0x1d5)]['changeColumn']=function(_0x5de73d,_0x471f92,_0x50580b){const _0x4a9edf=a1185_0x214fa4,_0x56f7a5=this;this[_0x4a9edf(0x1bf)][_0x4a9edf(0x1cc)](function(){const _0x513d9a=_0x4a9edf;return _0x56f7a5[_0x513d9a(0x1c2)][_0x513d9a(0x1d3)](_0x5de73d,_0x471f92,_0x50580b)[_0x513d9a(0x1c4)](function(){const _0x31bf4c=_0x513d9a;logger[_0x31bf4c(0x1c3)](_0x31bf4c(0x1d8),_0x471f92,_0x5de73d);})[_0x513d9a(0x1cf)](function(_0x57f4f7){const _0xffca5d=_0x513d9a;logger[_0xffca5d(0x1c3)](JSON[_0xffca5d(0x1c7)](_0x57f4f7));});});},Migration['prototype'][a1185_0x214fa4(0x1ce)]=function(_0x42ddc5,_0x97fee8,_0xa41a90){const _0x2de174=a1185_0x214fa4,_0x304a6d=this;this[_0x2de174(0x1bf)][_0x2de174(0x1cc)](function(){const _0x5e407e=_0x2de174;return _0x304a6d['queryInterface']['addColumn'](_0x42ddc5,_0x97fee8,_0xa41a90)[_0x5e407e(0x1c4)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x97fee8,_0x42ddc5);})[_0x5e407e(0x1cf)](function(_0x3bd47d){const _0x58aa35=_0x5e407e;logger[_0x58aa35(0x1c3)](JSON['stringify'](_0x3bd47d));});});},Migration[a1185_0x214fa4(0x1d5)][a1185_0x214fa4(0x1d2)]=function(_0x181c3){const _0x3197e8=a1185_0x214fa4,_0x46bafe=this;this[_0x3197e8(0x1bf)][_0x3197e8(0x1cc)](function(){const _0x46d94b=_0x3197e8;return _0x46bafe[_0x46d94b(0x1c2)]['dropTable'](_0x181c3,{'force':!![]})[_0x46d94b(0x1c4)](function(){const _0x4891c0=_0x46d94b;logger['info'](_0x4891c0(0x1c8),_0x181c3);})[_0x46d94b(0x1cf)](function(_0x1015d1){const _0x2f58c=_0x46d94b;logger['info'](JSON[_0x2f58c(0x1c7)](_0x1015d1));});});},Migration['prototype'][a1185_0x214fa4(0x1c1)]=function(_0x669b53,_0x548943,_0x5d9196){const _0x4cbe24=this;this['sequence']['enqueue'](function(){const _0x415616=a1185_0x360a;return _0x4cbe24[_0x415616(0x1c2)][_0x415616(0x1c1)](_0x669b53,_0x548943,{'indexName':_0x5d9196[_0x415616(0x1bd)],'indicesType':_0x5d9196[_0x415616(0x1c6)]})[_0x415616(0x1c4)](function(){const _0x416196=_0x415616;logger[_0x416196(0x1c3)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x669b53,_0x548943[_0x416196(0x1c0)](','),_0x5d9196['indexName'],_0x5d9196[_0x416196(0x1c6)]);})[_0x415616(0x1cf)](function(_0x2bce51){const _0x4b4d72=_0x415616;logger[_0x4b4d72(0x1c3)](JSON[_0x4b4d72(0x1c7)](_0x2bce51));});});},Migration[a1185_0x214fa4(0x1d5)][a1185_0x214fa4(0x1d7)]=function(_0x5ad932,_0x10d6f7){const _0x351ed4=a1185_0x214fa4,_0x308684=this;this[_0x351ed4(0x1bf)][_0x351ed4(0x1cc)](function(){const _0x1b719b=_0x351ed4;return _0x308684['queryInterface']['removeIndex'](_0x5ad932,_0x10d6f7)[_0x1b719b(0x1c4)](function(){const _0x1b6526=_0x1b719b;logger[_0x1b6526(0x1c3)]('removeIndex\x20%s\x20%s',_0x5ad932,_0x10d6f7);})[_0x1b719b(0x1cf)](function(_0xe1cd76){const _0x17143f=_0x1b719b;logger[_0x17143f(0x1c3)](JSON['stringify'](_0xe1cd76));});});},Migration[a1185_0x214fa4(0x1d5)][a1185_0x214fa4(0x1ca)]=function(_0x5f2cdf){const _0x49988f=a1185_0x214fa4,_0x4fd988=this;this[_0x49988f(0x1bf)][_0x49988f(0x1cc)](function(){const _0x59ce21=_0x49988f;return _0x4fd988[_0x59ce21(0x1c2)][_0x59ce21(0x1d1)][_0x59ce21(0x1ca)](_0x5f2cdf)['then'](function(){const _0x44419f=_0x59ce21;logger[_0x44419f(0x1c3)]('query\x20%s',_0x5f2cdf);})['catch'](function(_0x5e945b){const _0x2eb395=_0x59ce21;logger[_0x2eb395(0x1c3)](JSON[_0x2eb395(0x1c7)](_0x5e945b));});});},Migration[a1185_0x214fa4(0x1d5)]['removeColumn']=function(_0x19f404,_0x1849ba){const _0x526456=a1185_0x214fa4,_0x3fa61f=this;this[_0x526456(0x1bf)][_0x526456(0x1cc)](function(){const _0x253364=_0x526456;return _0x3fa61f['queryInterface'][_0x253364(0x1d4)](_0x19f404,_0x1849ba)['then'](function(){const _0x211e97=_0x253364;logger['info'](_0x211e97(0x1db),_0x1849ba,_0x19f404);})[_0x253364(0x1cf)](function(_0x4c1864){const _0x4bdc60=_0x253364;logger[_0x4bdc60(0x1c3)](util['inspect'](_0x4c1864,{'showHidden':![],'depth':null}));});});},Migration[a1185_0x214fa4(0x1d5)]['renameColumn']=function(_0x1efc4f,_0x588612,_0x3af1fa){const _0x214652=a1185_0x214fa4,_0x2692a2=this;this[_0x214652(0x1bf)][_0x214652(0x1cc)](function(){const _0x25f555=_0x214652;return _0x2692a2['queryInterface'][_0x25f555(0x1cb)](_0x1efc4f,_0x588612,_0x3af1fa)[_0x25f555(0x1c4)](function(){const _0x540ffe=_0x25f555;logger[_0x540ffe(0x1c3)](_0x540ffe(0x1be),_0x588612,_0x3af1fa,_0x1efc4f);})[_0x25f555(0x1cf)](function(_0x20d729){const _0x1d1ca1=_0x25f555;logger[_0x1d1ca1(0x1c3)](util[_0x1d1ca1(0x1c5)](_0x20d729,{'showHidden':![],'depth':null}));});});},Migration[a1185_0x214fa4(0x1d5)]['final']=function(_0x4ac8ff){const _0x17daff=a1185_0x214fa4;this[_0x17daff(0x1bf)][_0x17daff(0x1cc)](function(){return _0x4ac8ff();});},module[a1185_0x214fa4(0x1d6)]={'up':function(_0x3aaff6){return new Promise(function(_0x26e727){const _0x5f3de7=a1185_0x360a,_0x57f0ee=new Migration(_0x3aaff6);_0x57f0ee[_0x5f3de7(0x1d0)](_0x26e727);});},'down':function(){}}; \ No newline at end of file +const a1185_0x2654=['join','Added\x20column\x20%s\x20to\x20%s','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indicesType','queryInterface','stringify','migration','../config/logger','addIndex','inspect','removeColumn','query','catch','dropTable','renameColumn','removeIndex','removeIndex\x20%s\x20%s','changeColumn','Removed\x20column\x20%s\x20from\x20%s','exports','addColumn','util','then','sequelize','indexName','addIndex\x20%s\x20%s\x20%s\x20[%s]','enqueue','sequence','prototype','tail'];(function(_0x356d34,_0x5bfbef){const _0x2654e7=function(_0x3a5d59){while(--_0x3a5d59){_0x356d34['push'](_0x356d34['shift']());}};_0x2654e7(++_0x5bfbef);}(a1185_0x2654,0x125));const a1185_0x3a5d=function(_0x356d34,_0x5bfbef){_0x356d34=_0x356d34-0xdc;let _0x2654e7=a1185_0x2654[_0x356d34];return _0x2654e7;};const a1185_0x5e1984=a1185_0x3a5d;'use strict';const util=require(a1185_0x5e1984(0xe4)),logger=require(a1185_0x5e1984(0xf5))(a1185_0x5e1984(0xf4)),Sequence=function(){};Sequence[a1185_0x5e1984(0xeb)]['enqueue']=function(_0x2c15e8){const _0x136194=a1185_0x5e1984;this[_0x136194(0xec)]=this[_0x136194(0xec)]?this['tail']['finally'](_0x2c15e8):_0x2c15e8();};const Migration=function(_0x54aa8a){const _0x219cfa=a1185_0x5e1984;this['queryInterface']=_0x54aa8a,this[_0x219cfa(0xea)]=new Sequence();};Migration[a1185_0x5e1984(0xeb)]['changeColumn']=function(_0x5e7ed8,_0x3bac13,_0x1a5851){const _0x4a861b=a1185_0x5e1984,_0x3838b9=this;this[_0x4a861b(0xea)][_0x4a861b(0xe9)](function(){const _0x1d0956=_0x4a861b;return _0x3838b9[_0x1d0956(0xf2)][_0x1d0956(0xe0)](_0x5e7ed8,_0x3bac13,_0x1a5851)[_0x1d0956(0xe5)](function(){const _0x2dc6ba=_0x1d0956;logger[_0x2dc6ba(0xef)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3bac13,_0x5e7ed8);})['catch'](function(_0x2fc9b2){const _0x1878ea=_0x1d0956;logger[_0x1878ea(0xef)](JSON['stringify'](_0x2fc9b2));});});},Migration[a1185_0x5e1984(0xeb)][a1185_0x5e1984(0xe3)]=function(_0x510b00,_0x56181a,_0x37c49d){const _0x45beeb=a1185_0x5e1984,_0x283195=this;this[_0x45beeb(0xea)]['enqueue'](function(){const _0x5a56c6=_0x45beeb;return _0x283195[_0x5a56c6(0xf2)][_0x5a56c6(0xe3)](_0x510b00,_0x56181a,_0x37c49d)[_0x5a56c6(0xe5)](function(){const _0x4b2d80=_0x5a56c6;logger[_0x4b2d80(0xef)](_0x4b2d80(0xee),_0x56181a,_0x510b00);})[_0x5a56c6(0xfa)](function(_0x24bc0d){const _0x45707b=_0x5a56c6;logger['info'](JSON[_0x45707b(0xf3)](_0x24bc0d));});});},Migration[a1185_0x5e1984(0xeb)][a1185_0x5e1984(0xdc)]=function(_0x123470){const _0x580c46=a1185_0x5e1984,_0x33fa5a=this;this['sequence'][_0x580c46(0xe9)](function(){const _0x3557de=_0x580c46;return _0x33fa5a[_0x3557de(0xf2)][_0x3557de(0xdc)](_0x123470,{'force':!![]})[_0x3557de(0xe5)](function(){const _0x20e2f0=_0x3557de;logger[_0x20e2f0(0xef)]('table\x20dropped\x20%s',_0x123470);})[_0x3557de(0xfa)](function(_0x241903){const _0x2b9807=_0x3557de;logger[_0x2b9807(0xef)](JSON['stringify'](_0x241903));});});},Migration[a1185_0x5e1984(0xeb)][a1185_0x5e1984(0xf6)]=function(_0x474dc9,_0x4ac776,_0x45e5b0){const _0x43c90a=a1185_0x5e1984,_0x26b1bd=this;this[_0x43c90a(0xea)]['enqueue'](function(){const _0x2ab3e9=_0x43c90a;return _0x26b1bd['queryInterface']['addIndex'](_0x474dc9,_0x4ac776,{'indexName':_0x45e5b0[_0x2ab3e9(0xe7)],'indicesType':_0x45e5b0[_0x2ab3e9(0xf1)]})[_0x2ab3e9(0xe5)](function(){const _0x159bd5=_0x2ab3e9;logger[_0x159bd5(0xef)](_0x159bd5(0xe8),_0x474dc9,_0x4ac776[_0x159bd5(0xed)](','),_0x45e5b0[_0x159bd5(0xe7)],_0x45e5b0[_0x159bd5(0xf1)]);})[_0x2ab3e9(0xfa)](function(_0x468aed){const _0x4a69bc=_0x2ab3e9;logger[_0x4a69bc(0xef)](JSON[_0x4a69bc(0xf3)](_0x468aed));});});},Migration[a1185_0x5e1984(0xeb)][a1185_0x5e1984(0xde)]=function(_0x4d7fb9,_0x2dfece){const _0x261993=a1185_0x5e1984,_0x221c07=this;this[_0x261993(0xea)]['enqueue'](function(){const _0x39d410=_0x261993;return _0x221c07[_0x39d410(0xf2)][_0x39d410(0xde)](_0x4d7fb9,_0x2dfece)[_0x39d410(0xe5)](function(){const _0x5df652=_0x39d410;logger[_0x5df652(0xef)](_0x5df652(0xdf),_0x4d7fb9,_0x2dfece);})['catch'](function(_0x2c6f49){const _0x559566=_0x39d410;logger[_0x559566(0xef)](JSON[_0x559566(0xf3)](_0x2c6f49));});});},Migration[a1185_0x5e1984(0xeb)][a1185_0x5e1984(0xf9)]=function(_0x50b7e6){const _0x233966=a1185_0x5e1984,_0x2e9dc8=this;this[_0x233966(0xea)][_0x233966(0xe9)](function(){const _0x34a81d=_0x233966;return _0x2e9dc8[_0x34a81d(0xf2)][_0x34a81d(0xe6)][_0x34a81d(0xf9)](_0x50b7e6)[_0x34a81d(0xe5)](function(){const _0x26f637=_0x34a81d;logger[_0x26f637(0xef)]('query\x20%s',_0x50b7e6);})[_0x34a81d(0xfa)](function(_0x51b563){const _0x3ac3cf=_0x34a81d;logger[_0x3ac3cf(0xef)](JSON[_0x3ac3cf(0xf3)](_0x51b563));});});},Migration[a1185_0x5e1984(0xeb)][a1185_0x5e1984(0xf8)]=function(_0x244477,_0x28558c){const _0x2c0c01=this;this['sequence']['enqueue'](function(){const _0x1cbc68=a1185_0x3a5d;return _0x2c0c01[_0x1cbc68(0xf2)]['removeColumn'](_0x244477,_0x28558c)['then'](function(){const _0x43a840=_0x1cbc68;logger[_0x43a840(0xef)](_0x43a840(0xe1),_0x28558c,_0x244477);})[_0x1cbc68(0xfa)](function(_0x419144){const _0x3b1391=_0x1cbc68;logger[_0x3b1391(0xef)](util[_0x3b1391(0xf7)](_0x419144,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x435b95,_0x2191b3,_0x192fed){const _0x4873a3=a1185_0x5e1984,_0x305259=this;this[_0x4873a3(0xea)][_0x4873a3(0xe9)](function(){const _0x6ed304=_0x4873a3;return _0x305259[_0x6ed304(0xf2)][_0x6ed304(0xdd)](_0x435b95,_0x2191b3,_0x192fed)[_0x6ed304(0xe5)](function(){const _0x1ac632=_0x6ed304;logger[_0x1ac632(0xef)](_0x1ac632(0xf0),_0x2191b3,_0x192fed,_0x435b95);})[_0x6ed304(0xfa)](function(_0x51c211){const _0x2eefeb=_0x6ed304;logger[_0x2eefeb(0xef)](util[_0x2eefeb(0xf7)](_0x51c211,{'showHidden':![],'depth':null}));});});},Migration[a1185_0x5e1984(0xeb)]['final']=function(_0x49ebe7){const _0x390542=a1185_0x5e1984;this[_0x390542(0xea)][_0x390542(0xe9)](function(){return _0x49ebe7();});},module[a1185_0x5e1984(0xe2)]={'up':function(_0x32966b){return new Promise(function(_0xb0cbf3){const _0x5383a8=new Migration(_0x32966b);_0x5383a8['final'](_0xb0cbf3);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.5.9.js b/server/migrations/2.5.9.js index 789d374..8eb16ab 100644 --- a/server/migrations/2.5.9.js +++ b/server/migrations/2.5.9.js @@ -1 +1 @@ -const a1186_0x4b97=['query\x20%s','removeColumn','stringify','dropTable','addIndex','tail','exports','query','Changed\x20column\x20%s\x20in\x20table\x20%s','final','addIndex\x20%s\x20%s\x20%s\x20[%s]','then','indicesType','util','removeIndex','sequence','prototype','table\x20dropped\x20%s','sequelize','removeIndex\x20%s\x20%s','renameColumn','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','catch','../config/logger','migration','info','addColumn','enqueue','indexName','inspect','join'];(function(_0x3a2f0a,_0x4e286a){const _0x4b97e8=function(_0x48315f){while(--_0x48315f){_0x3a2f0a['push'](_0x3a2f0a['shift']());}};_0x4b97e8(++_0x4e286a);}(a1186_0x4b97,0xdd));const a1186_0x4831=function(_0x3a2f0a,_0x4e286a){_0x3a2f0a=_0x3a2f0a-0x1d0;let _0x4b97e8=a1186_0x4b97[_0x3a2f0a];return _0x4b97e8;};const a1186_0x35d43b=a1186_0x4831;'use strict';const util=require(a1186_0x35d43b(0x1e7)),logger=require(a1186_0x35d43b(0x1d2))(a1186_0x35d43b(0x1d3)),Sequence=function(){};Sequence[a1186_0x35d43b(0x1ea)]['enqueue']=function(_0x89cbac){const _0x4c5635=a1186_0x35d43b;this[_0x4c5635(0x1df)]=this['tail']?this['tail']['finally'](_0x89cbac):_0x89cbac();};const Migration=function(_0x1dd3ed){const _0x442225=a1186_0x35d43b;this[_0x442225(0x1ef)]=_0x1dd3ed,this[_0x442225(0x1e9)]=new Sequence();};Migration[a1186_0x35d43b(0x1ea)]['changeColumn']=function(_0x542499,_0x50e82e,_0x17c524){const _0x11a90=a1186_0x35d43b,_0x4dda79=this;this[_0x11a90(0x1e9)][_0x11a90(0x1d6)](function(){const _0xe587b7=_0x11a90;return _0x4dda79[_0xe587b7(0x1ef)][_0xe587b7(0x1d0)](_0x542499,_0x50e82e,_0x17c524)[_0xe587b7(0x1e5)](function(){const _0x1e3d95=_0xe587b7;logger[_0x1e3d95(0x1d4)](_0x1e3d95(0x1e2),_0x50e82e,_0x542499);})[_0xe587b7(0x1d1)](function(_0x479488){const _0x362f2f=_0xe587b7;logger[_0x362f2f(0x1d4)](JSON['stringify'](_0x479488));});});},Migration['prototype'][a1186_0x35d43b(0x1d5)]=function(_0x15c2ee,_0x29e98a,_0x27cd0c){const _0x160dea=a1186_0x35d43b,_0x5e9827=this;this[_0x160dea(0x1e9)][_0x160dea(0x1d6)](function(){const _0x4aced4=_0x160dea;return _0x5e9827['queryInterface'][_0x4aced4(0x1d5)](_0x15c2ee,_0x29e98a,_0x27cd0c)['then'](function(){const _0x54a092=_0x4aced4;logger[_0x54a092(0x1d4)]('Added\x20column\x20%s\x20to\x20%s',_0x29e98a,_0x15c2ee);})[_0x4aced4(0x1d1)](function(_0x39e2a4){const _0x28c8f8=_0x4aced4;logger[_0x28c8f8(0x1d4)](JSON['stringify'](_0x39e2a4));});});},Migration[a1186_0x35d43b(0x1ea)][a1186_0x35d43b(0x1dd)]=function(_0x3b4055){const _0x2c472d=a1186_0x35d43b,_0x4aef08=this;this['sequence'][_0x2c472d(0x1d6)](function(){const _0x1ee94a=_0x2c472d;return _0x4aef08[_0x1ee94a(0x1ef)][_0x1ee94a(0x1dd)](_0x3b4055,{'force':!![]})['then'](function(){const _0x47dc72=_0x1ee94a;logger['info'](_0x47dc72(0x1eb),_0x3b4055);})['catch'](function(_0x593de5){const _0x45a095=_0x1ee94a;logger[_0x45a095(0x1d4)](JSON[_0x45a095(0x1dc)](_0x593de5));});});},Migration[a1186_0x35d43b(0x1ea)]['addIndex']=function(_0x2c9cf4,_0x14daee,_0x18b37a){const _0x4057c5=a1186_0x35d43b,_0x3f2187=this;this[_0x4057c5(0x1e9)][_0x4057c5(0x1d6)](function(){const _0x1a6a64=_0x4057c5;return _0x3f2187['queryInterface'][_0x1a6a64(0x1de)](_0x2c9cf4,_0x14daee,{'indexName':_0x18b37a[_0x1a6a64(0x1d7)],'indicesType':_0x18b37a[_0x1a6a64(0x1e6)]})['then'](function(){const _0xf21b5e=_0x1a6a64;logger[_0xf21b5e(0x1d4)](_0xf21b5e(0x1e4),_0x2c9cf4,_0x14daee[_0xf21b5e(0x1d9)](','),_0x18b37a[_0xf21b5e(0x1d7)],_0x18b37a[_0xf21b5e(0x1e6)]);})[_0x1a6a64(0x1d1)](function(_0x4e012a){const _0x61dc75=_0x1a6a64;logger[_0x61dc75(0x1d4)](JSON['stringify'](_0x4e012a));});});},Migration[a1186_0x35d43b(0x1ea)][a1186_0x35d43b(0x1e8)]=function(_0x285c99,_0x3dae6b){const _0x34138a=a1186_0x35d43b,_0x49bdac=this;this[_0x34138a(0x1e9)]['enqueue'](function(){const _0x1b6219=_0x34138a;return _0x49bdac[_0x1b6219(0x1ef)]['removeIndex'](_0x285c99,_0x3dae6b)[_0x1b6219(0x1e5)](function(){const _0x4684ce=_0x1b6219;logger[_0x4684ce(0x1d4)](_0x4684ce(0x1ed),_0x285c99,_0x3dae6b);})[_0x1b6219(0x1d1)](function(_0x5f1232){const _0x397b51=_0x1b6219;logger[_0x397b51(0x1d4)](JSON[_0x397b51(0x1dc)](_0x5f1232));});});},Migration['prototype'][a1186_0x35d43b(0x1e1)]=function(_0x374fab){const _0x33229a=a1186_0x35d43b,_0x6d686e=this;this[_0x33229a(0x1e9)][_0x33229a(0x1d6)](function(){const _0x5e7b3b=_0x33229a;return _0x6d686e[_0x5e7b3b(0x1ef)][_0x5e7b3b(0x1ec)][_0x5e7b3b(0x1e1)](_0x374fab)[_0x5e7b3b(0x1e5)](function(){const _0x5ab7e6=_0x5e7b3b;logger[_0x5ab7e6(0x1d4)](_0x5ab7e6(0x1da),_0x374fab);})['catch'](function(_0x41c6b6){const _0x4cbeb4=_0x5e7b3b;logger[_0x4cbeb4(0x1d4)](JSON[_0x4cbeb4(0x1dc)](_0x41c6b6));});});},Migration[a1186_0x35d43b(0x1ea)]['removeColumn']=function(_0x4fe9f3,_0x1acbd6){const _0xdc7a44=a1186_0x35d43b,_0x372ae9=this;this['sequence'][_0xdc7a44(0x1d6)](function(){const _0x367b26=_0xdc7a44;return _0x372ae9[_0x367b26(0x1ef)][_0x367b26(0x1db)](_0x4fe9f3,_0x1acbd6)[_0x367b26(0x1e5)](function(){const _0x38d753=_0x367b26;logger[_0x38d753(0x1d4)]('Removed\x20column\x20%s\x20from\x20%s',_0x1acbd6,_0x4fe9f3);})[_0x367b26(0x1d1)](function(_0x4d7986){const _0x2b865d=_0x367b26;logger['info'](util[_0x2b865d(0x1d8)](_0x4d7986,{'showHidden':![],'depth':null}));});});},Migration[a1186_0x35d43b(0x1ea)][a1186_0x35d43b(0x1ee)]=function(_0x1a0396,_0x163af8,_0x4a917c){const _0x2a9610=a1186_0x35d43b,_0x33ca4a=this;this[_0x2a9610(0x1e9)][_0x2a9610(0x1d6)](function(){const _0x3c9871=_0x2a9610;return _0x33ca4a[_0x3c9871(0x1ef)]['renameColumn'](_0x1a0396,_0x163af8,_0x4a917c)['then'](function(){const _0x2cccef=_0x3c9871;logger[_0x2cccef(0x1d4)](_0x2cccef(0x1f0),_0x163af8,_0x4a917c,_0x1a0396);})[_0x3c9871(0x1d1)](function(_0x130329){const _0x579b2a=_0x3c9871;logger['info'](util[_0x579b2a(0x1d8)](_0x130329,{'showHidden':![],'depth':null}));});});},Migration[a1186_0x35d43b(0x1ea)][a1186_0x35d43b(0x1e3)]=function(_0x4e5ca2){const _0x13150b=a1186_0x35d43b;this[_0x13150b(0x1e9)][_0x13150b(0x1d6)](function(){return _0x4e5ca2();});},module[a1186_0x35d43b(0x1e0)]={'up':function(_0x519dea){return new Promise(function(_0x2052a5){const _0x214053=a1186_0x4831,_0x409ec7=new Migration(_0x519dea);_0x409ec7[_0x214053(0x1e3)](_0x2052a5);});},'down':function(){}}; \ No newline at end of file +const a1186_0x2d68=['indexName','dropTable','indicesType','join','tail','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','enqueue','removeIndex','renameColumn','util','query\x20%s','table\x20dropped\x20%s','catch','sequelize','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','exports','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeIndex\x20%s\x20%s','removeColumn','finally','prototype','info','addIndex','queryInterface','addColumn','Added\x20column\x20%s\x20to\x20%s','sequence','changeColumn','query'];(function(_0x5c3790,_0x7b3bdb){const _0x2d68ac=function(_0x1d3a2a){while(--_0x1d3a2a){_0x5c3790['push'](_0x5c3790['shift']());}};_0x2d68ac(++_0x7b3bdb);}(a1186_0x2d68,0xae));const a1186_0x1d3a=function(_0x5c3790,_0x7b3bdb){_0x5c3790=_0x5c3790-0x1cd;let _0x2d68ac=a1186_0x2d68[_0x5c3790];return _0x2d68ac;};const a1186_0x1a00e0=a1186_0x1d3a;'use strict';const util=require(a1186_0x1a00e0(0x1cf)),logger=require('../config/logger')(a1186_0x1a00e0(0x1d4)),Sequence=function(){};Sequence[a1186_0x1a00e0(0x1dc)][a1186_0x1a00e0(0x1ed)]=function(_0xd34cf){const _0x523954=a1186_0x1a00e0;this[_0x523954(0x1e9)]=this[_0x523954(0x1e9)]?this[_0x523954(0x1e9)][_0x523954(0x1db)](_0xd34cf):_0xd34cf();};const Migration=function(_0x43afe2){const _0x4b0e02=a1186_0x1a00e0;this[_0x4b0e02(0x1df)]=_0x43afe2,this[_0x4b0e02(0x1e2)]=new Sequence();};Migration['prototype'][a1186_0x1a00e0(0x1e3)]=function(_0x17b5da,_0x39a8de,_0x40f897){const _0x46b308=a1186_0x1a00e0,_0x3f53f7=this;this[_0x46b308(0x1e2)][_0x46b308(0x1ed)](function(){const _0x5ee5f9=_0x46b308;return _0x3f53f7[_0x5ee5f9(0x1df)][_0x5ee5f9(0x1e3)](_0x17b5da,_0x39a8de,_0x40f897)[_0x5ee5f9(0x1d6)](function(){const _0x626f29=_0x5ee5f9;logger['info'](_0x626f29(0x1eb),_0x39a8de,_0x17b5da);})[_0x5ee5f9(0x1d2)](function(_0x522c74){const _0x47b4c9=_0x5ee5f9;logger[_0x47b4c9(0x1dd)](JSON[_0x47b4c9(0x1ec)](_0x522c74));});});},Migration[a1186_0x1a00e0(0x1dc)][a1186_0x1a00e0(0x1e0)]=function(_0x56cfbc,_0x27e937,_0x4a81b4){const _0x5ea7d1=a1186_0x1a00e0,_0x3b1cd5=this;this[_0x5ea7d1(0x1e2)][_0x5ea7d1(0x1ed)](function(){const _0x3f598b=_0x5ea7d1;return _0x3b1cd5[_0x3f598b(0x1df)][_0x3f598b(0x1e0)](_0x56cfbc,_0x27e937,_0x4a81b4)['then'](function(){const _0x4a39a9=_0x3f598b;logger[_0x4a39a9(0x1dd)](_0x4a39a9(0x1e1),_0x27e937,_0x56cfbc);})[_0x3f598b(0x1d2)](function(_0x11f7b8){const _0x143f66=_0x3f598b;logger[_0x143f66(0x1dd)](JSON['stringify'](_0x11f7b8));});});},Migration[a1186_0x1a00e0(0x1dc)][a1186_0x1a00e0(0x1e6)]=function(_0x47d228){const _0x9515cd=a1186_0x1a00e0,_0x39f103=this;this[_0x9515cd(0x1e2)][_0x9515cd(0x1ed)](function(){const _0x119d35=_0x9515cd;return _0x39f103['queryInterface'][_0x119d35(0x1e6)](_0x47d228,{'force':!![]})[_0x119d35(0x1d6)](function(){const _0x53a9ac=_0x119d35;logger[_0x53a9ac(0x1dd)](_0x53a9ac(0x1d1),_0x47d228);})[_0x119d35(0x1d2)](function(_0x2123c1){const _0x1fa835=_0x119d35;logger[_0x1fa835(0x1dd)](JSON[_0x1fa835(0x1ec)](_0x2123c1));});});},Migration[a1186_0x1a00e0(0x1dc)][a1186_0x1a00e0(0x1de)]=function(_0x4e9ab7,_0x13eb27,_0x4c2cb6){const _0x1efa49=a1186_0x1a00e0,_0x5cf406=this;this[_0x1efa49(0x1e2)][_0x1efa49(0x1ed)](function(){const _0x1e7b7d=_0x1efa49;return _0x5cf406[_0x1e7b7d(0x1df)]['addIndex'](_0x4e9ab7,_0x13eb27,{'indexName':_0x4c2cb6[_0x1e7b7d(0x1e5)],'indicesType':_0x4c2cb6['indicesType']})[_0x1e7b7d(0x1d6)](function(){const _0x3055d7=_0x1e7b7d;logger[_0x3055d7(0x1dd)](_0x3055d7(0x1d8),_0x4e9ab7,_0x13eb27[_0x3055d7(0x1e8)](','),_0x4c2cb6['indexName'],_0x4c2cb6[_0x3055d7(0x1e7)]);})['catch'](function(_0xf3a6aa){const _0xc8856b=_0x1e7b7d;logger[_0xc8856b(0x1dd)](JSON[_0xc8856b(0x1ec)](_0xf3a6aa));});});},Migration['prototype'][a1186_0x1a00e0(0x1cd)]=function(_0xef91e4,_0x3b7007){const _0xe8b8fe=a1186_0x1a00e0,_0x4a9704=this;this[_0xe8b8fe(0x1e2)][_0xe8b8fe(0x1ed)](function(){const _0x272efe=_0xe8b8fe;return _0x4a9704[_0x272efe(0x1df)][_0x272efe(0x1cd)](_0xef91e4,_0x3b7007)[_0x272efe(0x1d6)](function(){const _0x42299e=_0x272efe;logger[_0x42299e(0x1dd)](_0x42299e(0x1d9),_0xef91e4,_0x3b7007);})[_0x272efe(0x1d2)](function(_0x3d95d1){const _0x5a53de=_0x272efe;logger[_0x5a53de(0x1dd)](JSON[_0x5a53de(0x1ec)](_0x3d95d1));});});},Migration['prototype'][a1186_0x1a00e0(0x1e4)]=function(_0x54ee79){const _0x111914=a1186_0x1a00e0,_0x5c18bc=this;this['sequence'][_0x111914(0x1ed)](function(){const _0x2c144f=_0x111914;return _0x5c18bc[_0x2c144f(0x1df)][_0x2c144f(0x1d3)][_0x2c144f(0x1e4)](_0x54ee79)[_0x2c144f(0x1d6)](function(){const _0xfe20a4=_0x2c144f;logger[_0xfe20a4(0x1dd)](_0xfe20a4(0x1d0),_0x54ee79);})[_0x2c144f(0x1d2)](function(_0x90f027){const _0x1ea981=_0x2c144f;logger[_0x1ea981(0x1dd)](JSON[_0x1ea981(0x1ec)](_0x90f027));});});},Migration[a1186_0x1a00e0(0x1dc)]['removeColumn']=function(_0x2c1ad5,_0x5e0d88){const _0x27f01f=a1186_0x1a00e0,_0x35cd8d=this;this['sequence'][_0x27f01f(0x1ed)](function(){const _0x457d1e=_0x27f01f;return _0x35cd8d['queryInterface'][_0x457d1e(0x1da)](_0x2c1ad5,_0x5e0d88)[_0x457d1e(0x1d6)](function(){const _0x2e5e70=_0x457d1e;logger[_0x2e5e70(0x1dd)]('Removed\x20column\x20%s\x20from\x20%s',_0x5e0d88,_0x2c1ad5);})[_0x457d1e(0x1d2)](function(_0x892ca9){const _0xdb39d9=_0x457d1e;logger['info'](util[_0xdb39d9(0x1ea)](_0x892ca9,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x3a0df2,_0x59259f,_0xa108a7){const _0x1e7fe1=a1186_0x1a00e0,_0x113e34=this;this[_0x1e7fe1(0x1e2)][_0x1e7fe1(0x1ed)](function(){const _0x1c9c67=_0x1e7fe1;return _0x113e34[_0x1c9c67(0x1df)][_0x1c9c67(0x1ce)](_0x3a0df2,_0x59259f,_0xa108a7)['then'](function(){const _0x364630=_0x1c9c67;logger[_0x364630(0x1dd)](_0x364630(0x1d5),_0x59259f,_0xa108a7,_0x3a0df2);})[_0x1c9c67(0x1d2)](function(_0x304d8e){const _0x2920bb=_0x1c9c67;logger['info'](util[_0x2920bb(0x1ea)](_0x304d8e,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x40c3b7){const _0x2694f4=a1186_0x1a00e0;this[_0x2694f4(0x1e2)][_0x2694f4(0x1ed)](function(){return _0x40c3b7();});},module[a1186_0x1a00e0(0x1d7)]={'up':function(_0x17db35){return new Promise(function(_0x380f25){const _0xc87c2a=new Migration(_0x17db35);_0xc87c2a['final'](_0x380f25);});},'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 a5d0d7b..0b37425 100644 --- a/server/migrations/3.0.0-alpha.js +++ b/server/migrations/3.0.0-alpha.js @@ -1 +1 @@ -const a1187_0xdfe3=['migration','enqueue','table\x20dropped\x20%s','renameColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','catch','changeColumn','DROP\x20INDEX\x20`users_ibfk_1`\x20ON\x20users','indicesType','query','queryInterface','then','tail','indexName','ALTER\x20TABLE\x20users\x20DROP\x20FOREIGN\x20KEY\x20`users_ibfk_1`','ALTER\x20TABLE\x20users\x20ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20FOREIGN\x20KEY\x20(userProfileId)\x20REFERENCES\x20user_profiles(id)\x20ON\x20DELETE\x20RESTRICT','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','stringify','info','inspect','finally','removeIndex\x20%s\x20%s','sequelize','final','dropTable','sequence','prototype','addColumn'];(function(_0x4f1549,_0xc978fc){const _0xdfe354=function(_0x2a7119){while(--_0x2a7119){_0x4f1549['push'](_0x4f1549['shift']());}};_0xdfe354(++_0xc978fc);}(a1187_0xdfe3,0x10b));const a1187_0x2a71=function(_0x4f1549,_0xc978fc){_0x4f1549=_0x4f1549-0x110;let _0xdfe354=a1187_0xdfe3[_0x4f1549];return _0xdfe354;};const a1187_0x4d8c64=a1187_0x2a71;'use strict';const util=require('util'),logger=require('../config/logger')(a1187_0x4d8c64(0x11c)),Sequence=function(){};Sequence[a1187_0x4d8c64(0x11a)][a1187_0x4d8c64(0x11d)]=function(_0x1c3336){const _0x8b485=a1187_0x4d8c64;this[_0x8b485(0x128)]=this[_0x8b485(0x128)]?this['tail'][_0x8b485(0x114)](_0x1c3336):_0x1c3336();};const Migration=function(_0x32098f){const _0x7a3056=a1187_0x4d8c64;this['queryInterface']=_0x32098f,this[_0x7a3056(0x119)]=new Sequence();};Migration[a1187_0x4d8c64(0x11a)][a1187_0x4d8c64(0x122)]=function(_0x147578,_0x161547,_0x482e93){const _0x5d95de=a1187_0x4d8c64,_0x66e1c2=this;this['sequence'][_0x5d95de(0x11d)](function(){const _0x13ce8c=_0x5d95de;return _0x66e1c2[_0x13ce8c(0x126)][_0x13ce8c(0x122)](_0x147578,_0x161547,_0x482e93)[_0x13ce8c(0x127)](function(){const _0x255c94=_0x13ce8c;logger[_0x255c94(0x112)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x161547,_0x147578);})['catch'](function(_0x363172){const _0x1cb5fc=_0x13ce8c;logger['info'](JSON[_0x1cb5fc(0x111)](_0x363172));});});},Migration[a1187_0x4d8c64(0x11a)][a1187_0x4d8c64(0x11b)]=function(_0xdde38b,_0x4f01e8,_0x34a2cb){const _0x5cc9db=a1187_0x4d8c64,_0x43a172=this;this[_0x5cc9db(0x119)][_0x5cc9db(0x11d)](function(){const _0x225bbd=_0x5cc9db;return _0x43a172['queryInterface']['addColumn'](_0xdde38b,_0x4f01e8,_0x34a2cb)[_0x225bbd(0x127)](function(){const _0x341c97=_0x225bbd;logger['info'](_0x341c97(0x12c),_0x4f01e8,_0xdde38b);})['catch'](function(_0x32aaed){const _0x184313=_0x225bbd;logger[_0x184313(0x112)](JSON['stringify'](_0x32aaed));});});},Migration[a1187_0x4d8c64(0x11a)][a1187_0x4d8c64(0x118)]=function(_0x28da47){const _0x515f30=a1187_0x4d8c64,_0x1bce08=this;this[_0x515f30(0x119)][_0x515f30(0x11d)](function(){const _0x16ec2c=_0x515f30;return _0x1bce08[_0x16ec2c(0x126)][_0x16ec2c(0x118)](_0x28da47,{'force':!![]})[_0x16ec2c(0x127)](function(){const _0x296b4f=_0x16ec2c;logger[_0x296b4f(0x112)](_0x296b4f(0x11e),_0x28da47);})[_0x16ec2c(0x121)](function(_0x120215){const _0x3b8459=_0x16ec2c;logger[_0x3b8459(0x112)](JSON[_0x3b8459(0x111)](_0x120215));});});},Migration['prototype']['addIndex']=function(_0x4a8583,_0x4cf2f8,_0x14b3ba){const _0x5f5790=a1187_0x4d8c64,_0x59d9a3=this;this[_0x5f5790(0x119)][_0x5f5790(0x11d)](function(){const _0xc21736=_0x5f5790;return _0x59d9a3[_0xc21736(0x126)]['addIndex'](_0x4a8583,_0x4cf2f8,{'indexName':_0x14b3ba['indexName'],'indicesType':_0x14b3ba[_0xc21736(0x124)]})[_0xc21736(0x127)](function(){const _0x48a5e1=_0xc21736;logger[_0x48a5e1(0x112)](_0x48a5e1(0x120),_0x4a8583,_0x4cf2f8['join'](','),_0x14b3ba[_0x48a5e1(0x129)],_0x14b3ba[_0x48a5e1(0x124)]);})[_0xc21736(0x121)](function(_0x174392){const _0x50acb0=_0xc21736;logger[_0x50acb0(0x112)](JSON[_0x50acb0(0x111)](_0x174392));});});},Migration[a1187_0x4d8c64(0x11a)][a1187_0x4d8c64(0x110)]=function(_0x22662b,_0xd4ce34){const _0x2b93a5=a1187_0x4d8c64,_0x2a7352=this;this[_0x2b93a5(0x119)][_0x2b93a5(0x11d)](function(){const _0x5d928f=_0x2b93a5;return _0x2a7352[_0x5d928f(0x126)][_0x5d928f(0x110)](_0x22662b,_0xd4ce34)[_0x5d928f(0x127)](function(){const _0xa038ab=_0x5d928f;logger['info'](_0xa038ab(0x115),_0x22662b,_0xd4ce34);})['catch'](function(_0x70872a){const _0x34b7ef=_0x5d928f;logger[_0x34b7ef(0x112)](JSON[_0x34b7ef(0x111)](_0x70872a));});});},Migration['prototype'][a1187_0x4d8c64(0x125)]=function(_0x58834b){const _0x1054d8=a1187_0x4d8c64,_0x246abb=this;this['sequence'][_0x1054d8(0x11d)](function(){const _0x16503a=_0x1054d8;return _0x246abb['queryInterface'][_0x16503a(0x116)][_0x16503a(0x125)](_0x58834b)[_0x16503a(0x127)](function(){logger['info']('query\x20%s',_0x58834b);})[_0x16503a(0x121)](function(_0x4b3322){const _0x42e973=_0x16503a;logger[_0x42e973(0x112)](JSON['stringify'](_0x4b3322));});});},Migration[a1187_0x4d8c64(0x11a)]['removeColumn']=function(_0x308feb,_0x4fb83d){const _0x71c4c0=a1187_0x4d8c64,_0x12fd0d=this;this[_0x71c4c0(0x119)][_0x71c4c0(0x11d)](function(){return _0x12fd0d['queryInterface']['removeColumn'](_0x308feb,_0x4fb83d)['then'](function(){const _0x438502=a1187_0x2a71;logger[_0x438502(0x112)](_0x438502(0x12d),_0x4fb83d,_0x308feb);})['catch'](function(_0x31676e){const _0x4c2cee=a1187_0x2a71;logger[_0x4c2cee(0x112)](util[_0x4c2cee(0x113)](_0x31676e,{'showHidden':![],'depth':null}));});});},Migration[a1187_0x4d8c64(0x11a)]['renameColumn']=function(_0x258b8e,_0x217e29,_0x4bf299){const _0x21477a=a1187_0x4d8c64,_0x44f74c=this;this[_0x21477a(0x119)][_0x21477a(0x11d)](function(){const _0xec4404=_0x21477a;return _0x44f74c[_0xec4404(0x126)][_0xec4404(0x11f)](_0x258b8e,_0x217e29,_0x4bf299)[_0xec4404(0x127)](function(){const _0x51b392=_0xec4404;logger['info'](_0x51b392(0x12e),_0x217e29,_0x4bf299,_0x258b8e);})[_0xec4404(0x121)](function(_0xc2ee5c){logger['info'](util['inspect'](_0xc2ee5c,{'showHidden':![],'depth':null}));});});},Migration[a1187_0x4d8c64(0x11a)][a1187_0x4d8c64(0x117)]=function(_0x4e2c86){const _0x19c4f9=a1187_0x4d8c64;this[_0x19c4f9(0x119)][_0x19c4f9(0x11d)](function(){return _0x4e2c86();});},module['exports']={'up':function(_0x28f22c){return new Promise(function(_0x37aabe){const _0x445265=a1187_0x2a71,_0x3eacb7=new Migration(_0x28f22c);_0x3eacb7[_0x445265(0x125)](_0x445265(0x12a)),_0x3eacb7[_0x445265(0x125)](_0x445265(0x123)),_0x3eacb7[_0x445265(0x125)](_0x445265(0x12b)),_0x3eacb7['final'](_0x37aabe);});},'down':function(){}}; \ No newline at end of file +const a1187_0x4f51=['table\x20dropped\x20%s','final','indexName','removeIndex','DROP\x20INDEX\x20`users_ibfk_1`\x20ON\x20users','Added\x20column\x20%s\x20to\x20%s','catch','changeColumn','inspect','indicesType','tail','query\x20%s','query','queryInterface','info','util','stringify','ALTER\x20TABLE\x20users\x20DROP\x20FOREIGN\x20KEY\x20`users_ibfk_1`','dropTable','sequelize','addIndex','../config/logger','then','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','removeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','addColumn','renameColumn','enqueue','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','ALTER\x20TABLE\x20users\x20ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20FOREIGN\x20KEY\x20(userProfileId)\x20REFERENCES\x20user_profiles(id)\x20ON\x20DELETE\x20RESTRICT'];(function(_0x4a1866,_0xbb9178){const _0x4f512b=function(_0x4f23c9){while(--_0x4f23c9){_0x4a1866['push'](_0x4a1866['shift']());}};_0x4f512b(++_0xbb9178);}(a1187_0x4f51,0xd4));const a1187_0x4f23=function(_0x4a1866,_0xbb9178){_0x4a1866=_0x4a1866-0xef;let _0x4f512b=a1187_0x4f51[_0x4a1866];return _0x4f512b;};const a1187_0x523e86=a1187_0x4f23;'use strict';const util=require(a1187_0x523e86(0xf6)),logger=require(a1187_0x523e86(0xfc))('migration'),Sequence=function(){};Sequence['prototype'][a1187_0x523e86(0x105)]=function(_0x4d29a7){const _0x3110ca=a1187_0x523e86;this[_0x3110ca(0xf1)]=this[_0x3110ca(0xf1)]?this['tail']['finally'](_0x4d29a7):_0x4d29a7();};const Migration=function(_0xdba6bb){const _0x4ad2bb=a1187_0x523e86;this[_0x4ad2bb(0xf4)]=_0xdba6bb,this[_0x4ad2bb(0x102)]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x4d7476,_0x508bc6,_0x4dbaef){const _0x1362df=a1187_0x523e86,_0x41cb0d=this;this[_0x1362df(0x102)]['enqueue'](function(){const _0x2be945=_0x1362df;return _0x41cb0d[_0x2be945(0xf4)][_0x2be945(0x110)](_0x4d7476,_0x508bc6,_0x4dbaef)[_0x2be945(0xfd)](function(){const _0x2e50c0=_0x2be945;logger[_0x2e50c0(0xf5)](_0x2e50c0(0xfe),_0x508bc6,_0x4d7476);})[_0x2be945(0x10f)](function(_0x4be2fe){const _0x476a07=_0x2be945;logger[_0x476a07(0xf5)](JSON[_0x476a07(0xf7)](_0x4be2fe));});});},Migration[a1187_0x523e86(0xff)][a1187_0x523e86(0x103)]=function(_0x59e3b2,_0x25dfdf,_0x487bf7){const _0x1581af=a1187_0x523e86,_0x231daa=this;this[_0x1581af(0x102)][_0x1581af(0x105)](function(){const _0x677613=_0x1581af;return _0x231daa[_0x677613(0xf4)][_0x677613(0x103)](_0x59e3b2,_0x25dfdf,_0x487bf7)['then'](function(){const _0x5807ac=_0x677613;logger[_0x5807ac(0xf5)](_0x5807ac(0x10e),_0x25dfdf,_0x59e3b2);})[_0x677613(0x10f)](function(_0x2870a4){const _0x4f0bc3=_0x677613;logger[_0x4f0bc3(0xf5)](JSON[_0x4f0bc3(0xf7)](_0x2870a4));});});},Migration[a1187_0x523e86(0xff)][a1187_0x523e86(0xf9)]=function(_0xac7a9c){const _0x3a025c=a1187_0x523e86,_0x11c181=this;this[_0x3a025c(0x102)][_0x3a025c(0x105)](function(){const _0x521262=_0x3a025c;return _0x11c181[_0x521262(0xf4)]['dropTable'](_0xac7a9c,{'force':!![]})[_0x521262(0xfd)](function(){const _0xaa9b78=_0x521262;logger[_0xaa9b78(0xf5)](_0xaa9b78(0x109),_0xac7a9c);})[_0x521262(0x10f)](function(_0x14be69){const _0x53c845=_0x521262;logger[_0x53c845(0xf5)](JSON[_0x53c845(0xf7)](_0x14be69));});});},Migration[a1187_0x523e86(0xff)][a1187_0x523e86(0xfb)]=function(_0x4e6704,_0x36059a,_0x271f8a){const _0x533b20=this;this['sequence']['enqueue'](function(){const _0xf800e7=a1187_0x4f23;return _0x533b20[_0xf800e7(0xf4)][_0xf800e7(0xfb)](_0x4e6704,_0x36059a,{'indexName':_0x271f8a[_0xf800e7(0x10b)],'indicesType':_0x271f8a[_0xf800e7(0xf0)]})[_0xf800e7(0xfd)](function(){const _0x48e434=_0xf800e7;logger[_0x48e434(0xf5)](_0x48e434(0x101),_0x4e6704,_0x36059a['join'](','),_0x271f8a[_0x48e434(0x10b)],_0x271f8a['indicesType']);})[_0xf800e7(0x10f)](function(_0x146d47){const _0x5e8bea=_0xf800e7;logger[_0x5e8bea(0xf5)](JSON[_0x5e8bea(0xf7)](_0x146d47));});});},Migration[a1187_0x523e86(0xff)][a1187_0x523e86(0x10c)]=function(_0x2c2f9b,_0x384595){const _0x6de84f=a1187_0x523e86,_0x4ac150=this;this['sequence'][_0x6de84f(0x105)](function(){const _0x2b4258=_0x6de84f;return _0x4ac150[_0x2b4258(0xf4)][_0x2b4258(0x10c)](_0x2c2f9b,_0x384595)[_0x2b4258(0xfd)](function(){const _0x1eae0a=_0x2b4258;logger[_0x1eae0a(0xf5)](_0x1eae0a(0x107),_0x2c2f9b,_0x384595);})[_0x2b4258(0x10f)](function(_0x1aa5d0){const _0x1a5196=_0x2b4258;logger[_0x1a5196(0xf5)](JSON['stringify'](_0x1aa5d0));});});},Migration[a1187_0x523e86(0xff)][a1187_0x523e86(0xf3)]=function(_0xe724a5){const _0x19672d=a1187_0x523e86,_0x11959b=this;this[_0x19672d(0x102)][_0x19672d(0x105)](function(){const _0x5cbf89=_0x19672d;return _0x11959b[_0x5cbf89(0xf4)][_0x5cbf89(0xfa)][_0x5cbf89(0xf3)](_0xe724a5)[_0x5cbf89(0xfd)](function(){const _0x9af983=_0x5cbf89;logger[_0x9af983(0xf5)](_0x9af983(0xf2),_0xe724a5);})['catch'](function(_0x1572fa){const _0x30fb87=_0x5cbf89;logger[_0x30fb87(0xf5)](JSON[_0x30fb87(0xf7)](_0x1572fa));});});},Migration['prototype'][a1187_0x523e86(0x100)]=function(_0x194e1e,_0x1938a9){const _0x404068=a1187_0x523e86,_0x5acb77=this;this[_0x404068(0x102)][_0x404068(0x105)](function(){const _0x3082a=_0x404068;return _0x5acb77[_0x3082a(0xf4)][_0x3082a(0x100)](_0x194e1e,_0x1938a9)[_0x3082a(0xfd)](function(){const _0x1b4382=_0x3082a;logger['info'](_0x1b4382(0x106),_0x1938a9,_0x194e1e);})[_0x3082a(0x10f)](function(_0x3868f3){const _0x56ab96=_0x3082a;logger['info'](util[_0x56ab96(0xef)](_0x3868f3,{'showHidden':![],'depth':null}));});});},Migration[a1187_0x523e86(0xff)][a1187_0x523e86(0x104)]=function(_0x2badd3,_0x18edc5,_0x106f2d){const _0x32d64c=a1187_0x523e86,_0x524ca7=this;this[_0x32d64c(0x102)][_0x32d64c(0x105)](function(){const _0x4d1bd1=_0x32d64c;return _0x524ca7['queryInterface'][_0x4d1bd1(0x104)](_0x2badd3,_0x18edc5,_0x106f2d)[_0x4d1bd1(0xfd)](function(){const _0x2fb9c1=_0x4d1bd1;logger[_0x2fb9c1(0xf5)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x18edc5,_0x106f2d,_0x2badd3);})[_0x4d1bd1(0x10f)](function(_0xea8b7f){const _0x13dd06=_0x4d1bd1;logger[_0x13dd06(0xf5)](util[_0x13dd06(0xef)](_0xea8b7f,{'showHidden':![],'depth':null}));});});},Migration[a1187_0x523e86(0xff)][a1187_0x523e86(0x10a)]=function(_0x4ed567){const _0x56acbe=a1187_0x523e86;this[_0x56acbe(0x102)][_0x56acbe(0x105)](function(){return _0x4ed567();});},module['exports']={'up':function(_0x571718){return new Promise(function(_0x40f596){const _0x1297ea=a1187_0x4f23,_0x39dc5c=new Migration(_0x571718);_0x39dc5c[_0x1297ea(0xf3)](_0x1297ea(0xf8)),_0x39dc5c[_0x1297ea(0xf3)](_0x1297ea(0x10d)),_0x39dc5c[_0x1297ea(0xf3)](_0x1297ea(0x108)),_0x39dc5c[_0x1297ea(0x10a)](_0x40f596);});},'down':function(){}}; \ No newline at end of file diff --git a/server/mysqldb/index.js b/server/mysqldb/index.js index e945c79..3d3c17e 100644 --- a/server/mysqldb/index.js +++ b/server/mysqldb/index.js @@ -1 +1 @@ -const a1188_0x15c2=['database','mysqlUser','determine','lodash','password','mysql','defaultsDeep','username','-FOUND_ROWS','db-query','sequelizeHistory','exports','dbH','LOCAL_FILES','dialectOptions','../config/environment','../config/config.service','sequelize','dbPort','utf8_general_ci','-LOCAL_FILES','mysqlDatabase','options','name','jstz'];(function(_0x4bd05c,_0x55d4f7){const _0x15c284=function(_0x82d12e){while(--_0x82d12e){_0x4bd05c['push'](_0x4bd05c['shift']());}};_0x15c284(++_0x55d4f7);}(a1188_0x15c2,0x142));const a1188_0x82d1=function(_0x4bd05c,_0x55d4f7){_0x4bd05c=_0x4bd05c-0x76;let _0x15c284=a1188_0x15c2[_0x4bd05c];return _0x15c284;};const a1188_0x254e39=a1188_0x82d1;'use strict';const config=require(a1188_0x254e39(0x88)),cs=require(a1188_0x254e39(0x89))['getConfigService'](),{Sequelize}=require(a1188_0x254e39(0x8a)),logger=require('../config/logger'),_=require(a1188_0x254e39(0x7c)),jstz=require(a1188_0x254e39(0x78)),timezone=jstz[a1188_0x254e39(0x7b)](),queryLogger=logger(a1188_0x254e39(0x82)),{initializeAllModels}=require('./sequelize-initialization'),DEFAULTS={'database':cs[a1188_0x254e39(0x8e)],'username':cs[a1188_0x254e39(0x7a)],'password':cs['mysqlPassword'],'options':{'host':cs['dbHost'],'port':cs[a1188_0x254e39(0x8b)],'dialect':a1188_0x254e39(0x7e),'dialectOptions':{'charset':'utf8mb4'},'logging':cs['isProduction']?![]:_0x22b047=>queryLogger['info'](_0x22b047),'timezone':timezone[a1188_0x254e39(0x77)](),'define':{'charset':'utf8','collate':a1188_0x254e39(0x8c)}}};config[a1188_0x254e39(0x8a)]=_[a1188_0x254e39(0x7f)](config[a1188_0x254e39(0x8a)],DEFAULTS),config[a1188_0x254e39(0x83)]=_[a1188_0x254e39(0x7f)](config[a1188_0x254e39(0x83)],DEFAULTS);const db=initializeAllModels({'sequelize':new Sequelize(config['sequelize'][a1188_0x254e39(0x79)],config['sequelize'][a1188_0x254e39(0x80)],config[a1188_0x254e39(0x8a)][a1188_0x254e39(0x7d)],{...config['sequelize'][a1188_0x254e39(0x76)],'dialectOptions':{...config['sequelize'][a1188_0x254e39(0x76)]['dialectOptions'],'flags':['-FOUND_ROWS',a1188_0x254e39(0x86)]}})}),dbH={'sequelize':new Sequelize(config['sequelizeHistory'][a1188_0x254e39(0x79)],config[a1188_0x254e39(0x83)]['username'],config[a1188_0x254e39(0x83)][a1188_0x254e39(0x7d)],{...config[a1188_0x254e39(0x83)]['options'],'dialectOptions':{...config[a1188_0x254e39(0x83)][a1188_0x254e39(0x76)][a1188_0x254e39(0x87)],'flags':[a1188_0x254e39(0x81),a1188_0x254e39(0x8d)]}})};module[a1188_0x254e39(0x84)]['db']=db,module[a1188_0x254e39(0x84)][a1188_0x254e39(0x85)]=dbH; \ No newline at end of file +const a1188_0x51b7=['utf8mb4','LOCAL_FILES','dialectOptions','mysqlUser','defaultsDeep','-FOUND_ROWS','../config/config.service','sequelize','exports','options','../config/environment','utf8','mysql','username','-LOCAL_FILES','name','dbPort','sequelizeHistory','password','dbH','jstz','database'];(function(_0x2f4a65,_0x2817ad){const _0x51b770=function(_0x108c5a){while(--_0x108c5a){_0x2f4a65['push'](_0x2f4a65['shift']());}};_0x51b770(++_0x2817ad);}(a1188_0x51b7,0x17d));const a1188_0x108c=function(_0x2f4a65,_0x2817ad){_0x2f4a65=_0x2f4a65-0x6f;let _0x51b770=a1188_0x51b7[_0x2f4a65];return _0x51b770;};const a1188_0x268817=a1188_0x108c;'use strict';const config=require(a1188_0x268817(0x72)),cs=require(a1188_0x268817(0x84))['getConfigService'](),{Sequelize}=require(a1188_0x268817(0x6f)),logger=require('../config/logger'),_=require('lodash'),jstz=require(a1188_0x268817(0x7c)),timezone=jstz['determine'](),queryLogger=logger('db-query'),{initializeAllModels}=require('./sequelize-initialization'),DEFAULTS={'database':cs['mysqlDatabase'],'username':cs[a1188_0x268817(0x81)],'password':cs['mysqlPassword'],'options':{'host':cs['dbHost'],'port':cs[a1188_0x268817(0x78)],'dialect':a1188_0x268817(0x74),'dialectOptions':{'charset':a1188_0x268817(0x7e)},'logging':cs['isProduction']?![]:_0x6b4f96=>queryLogger['info'](_0x6b4f96),'timezone':timezone[a1188_0x268817(0x77)](),'define':{'charset':a1188_0x268817(0x73),'collate':'utf8_general_ci'}}};config[a1188_0x268817(0x6f)]=_[a1188_0x268817(0x82)](config[a1188_0x268817(0x6f)],DEFAULTS),config[a1188_0x268817(0x79)]=_[a1188_0x268817(0x82)](config[a1188_0x268817(0x79)],DEFAULTS);const db=initializeAllModels({'sequelize':new Sequelize(config[a1188_0x268817(0x6f)][a1188_0x268817(0x7d)],config['sequelize'][a1188_0x268817(0x75)],config['sequelize'][a1188_0x268817(0x7a)],{...config[a1188_0x268817(0x6f)][a1188_0x268817(0x71)],'dialectOptions':{...config[a1188_0x268817(0x6f)][a1188_0x268817(0x71)][a1188_0x268817(0x80)],'flags':[a1188_0x268817(0x83),a1188_0x268817(0x7f)]}})}),dbH={'sequelize':new Sequelize(config['sequelizeHistory'][a1188_0x268817(0x7d)],config['sequelizeHistory'][a1188_0x268817(0x75)],config[a1188_0x268817(0x79)][a1188_0x268817(0x7a)],{...config['sequelizeHistory'][a1188_0x268817(0x71)],'dialectOptions':{...config[a1188_0x268817(0x79)][a1188_0x268817(0x71)][a1188_0x268817(0x80)],'flags':[a1188_0x268817(0x83),a1188_0x268817(0x76)]}})};module[a1188_0x268817(0x70)]['db']=db,module[a1188_0x268817(0x70)][a1188_0x268817(0x7b)]=dbH; \ No newline at end of file diff --git a/server/mysqldb/infile-stream-factory.js b/server/mysqldb/infile-stream-factory.js index f628858..dfd03bd 100644 --- a/server/mysqldb/infile-stream-factory.js +++ b/server/mysqldb/infile-stream-factory.js @@ -1 +1 @@ -const a1189_0x3ca9=['end','../config/environment','path','createReadStream','_read','files','root','dirname','emit','stream','includes','join','resolve'];(function(_0x5ac3cf,_0x1db50c){const _0x3ca926=function(_0x40e1fd){while(--_0x40e1fd){_0x5ac3cf['push'](_0x5ac3cf['shift']());}};_0x3ca926(++_0x1db50c);}(a1189_0x3ca9,0xa9));const a1189_0x40e1=function(_0x5ac3cf,_0x1db50c){_0x5ac3cf=_0x5ac3cf-0xf3;let _0x3ca926=a1189_0x3ca9[_0x5ac3cf];return _0x3ca926;};const a1189_0x5ed161=a1189_0x40e1,fs=require('fs'),path=require(a1189_0x5ed161(0xf5)),config=require(a1189_0x5ed161(0xf4)),{Readable}=require(a1189_0x5ed161(0xfc));class EmptyStream extends Readable{[a1189_0x5ed161(0xf7)](){const _0x4f03a8=a1189_0x5ed161;this[_0x4f03a8(0xfb)](_0x4f03a8(0xf3));}}const ALLOWED_FOLDERS=[path[a1189_0x5ed161(0xfe)](config[a1189_0x5ed161(0xf9)],a1189_0x5ed161(0xf8),'tmp')];function infileStreamFactory(_0x12be37){const _0x158661=a1189_0x5ed161;return ALLOWED_FOLDERS[_0x158661(0xfd)](path[_0x158661(0xff)](path[_0x158661(0xfa)](_0x12be37)))?fs[_0x158661(0xf6)](path[_0x158661(0xff)](_0x12be37)):new EmptyStream();}module['exports']['infileStreamFactory']=infileStreamFactory; \ No newline at end of file +const a1189_0x3e56=['tmp','createReadStream','resolve','../config/environment','root','exports','end','path'];(function(_0x5aec1d,_0xac498d){const _0x3e566f=function(_0x4cad0b){while(--_0x4cad0b){_0x5aec1d['push'](_0x5aec1d['shift']());}};_0x3e566f(++_0xac498d);}(a1189_0x3e56,0x164));const a1189_0x4cad=function(_0x5aec1d,_0xac498d){_0x5aec1d=_0x5aec1d-0x185;let _0x3e566f=a1189_0x3e56[_0x5aec1d];return _0x3e566f;};const a1189_0x1c1d87=a1189_0x4cad,fs=require('fs'),path=require(a1189_0x1c1d87(0x188)),config=require(a1189_0x1c1d87(0x18c)),{Readable}=require('stream');class EmptyStream extends Readable{['_read'](){const _0x557eb0=a1189_0x1c1d87;this['emit'](_0x557eb0(0x187));}}const ALLOWED_FOLDERS=[path['join'](config[a1189_0x1c1d87(0x185)],'files',a1189_0x1c1d87(0x189))];function infileStreamFactory(_0x481d87){const _0x3c181f=a1189_0x1c1d87;return ALLOWED_FOLDERS['includes'](path[_0x3c181f(0x18b)](path['dirname'](_0x481d87)))?fs[_0x3c181f(0x18a)](path[_0x3c181f(0x18b)](_0x481d87)):new EmptyStream();}module[a1189_0x1c1d87(0x186)]['infileStreamFactory']=infileStreamFactory; \ No newline at end of file diff --git a/server/mysqldb/sequelize-initialization.js b/server/mysqldb/sequelize-initialization.js index f5a3edb..6c0720b 100644 --- a/server/mysqldb/sequelize-initialization.js +++ b/server/mysqldb/sequelize-initialization.js @@ -1 +1 @@ -const a1190_0x42af=['Trunk','JscriptySessions','Interaction','Members','ChatOfflineMessage','FaxQueues','OpenchannelQueueId','ChatTransferReport','MailInteractions','Imap','../api/dashboard/dashboard.model','team_has_sms_queues','uniqueid','Actions','user_has_sms_accounts','Agents','Agent','mandatoryDispositionPause','ThroughTags','SmsTransferReport','../api/tag/tag.model','Queue','../api/squareRecording/squareRecording.model','ChatInteractionId','sms_interaction_has_tags','Condition','FaxInteractionId','CampaignId','user_has_sms_interactions','Interactions','ToFaxQueueId','../api/faxAccount/faxAccount.model','ZendeskConfiguration','Any','WhatsappQueueReport','MailAccountId','VoiceCallReport','AutomationAllId','SmsAccount','VoiceChanSpy','../api/screenRecording/screenRecording.model','CmList','Interval','../api/trigger/trigger.model','FreshsalesConfiguration','SmsAccountId','MailMessage','../api/faxInteraction/faxInteraction.model','ProactiveActions','ServicenowAccount','UserVoiceQueue','user_has_chat_interactions','../api/jscriptyQuestionReport/jscriptyQuestionReport.model','../api/intSalesforceConfiguration/intSalesforceConfiguration.model','OpenchannelInteraction','user_has_whatsapp_accounts','SmsQueues','MailServerOut','Dynamics365Configuration','Notification','../api/jscriptySessionReport/jscriptySessionReport.model','Contacts','Pause','../api/userWhatsappQueue/userWhatsappQueue.model','UserSmsQueue','../api/mailInteraction/mailInteraction.model','ToQueue','OpenchannelQueue','Variable','ChatProactiveAction','UserId','SalesforceAccount','VoiceQueues','../api/squareMessage/squareMessage.model','SmsInteractionId','UserSmsInteractions','../api/intZendeskField/intZendeskField.model','UserWhatsappQueue','MailServerIn','../api/mailQueue/mailQueue.model','../api/smsAccount/smsAccount.model','user_has_teams','ChatWebsite','../api/trunk/trunk.model','Exntensions','MailApplications','UserProfileSection','TrunkId','Template','ChatWebsiteId','ToSmsQueueId','../api/cmHopperHistory/cmHopperHistory.model','../api/intVtigerAccount/intVtigerAccount.model','AutomationAnyId','MailInteraction','OpenchannelMessage','openchannel_interaction_has_tags','OpenchannelInteractionId','DashboardId','../api/automation/automation.model','SquareProjects','List','../api/chatOfflineMessage/chatOfflineMessage.model','WhatsappAccount','../api/userMailQueue/userMailQueue.model','User','../api/squareReport/squareReport.model','HopperHistory','ListId','../api/intVtigerConfiguration/intVtigerConfiguration.model','../api/faxMessage/faxMessage.model','FromMailAccountId','TrunkBackupId','AccountId','ChatQueues','../api/userVoiceQueueRt/userVoiceQueueRt.model','FaxTransferReport','../api/sound/sound.model','hasMany','VoicePrefix','../api/intDynamics365Field/intDynamics365Field.model','userProfileId','VariableId','UserChatQueue','CmHopper','WhatsappInteraction','../api/mailApplication/mailApplication.model','SmsQueueId','../api/cmCustomField/cmCustomField.model','UserChatInteractions','UserMailQueue','../api/intSugarcrmAccount/intSugarcrmAccount.model','FaxApplication','CmHopperFinal','UserOpenchannelQueue','ChatMessage','../api/variable/variable.model','../api/analyticCustomReport/analyticCustomReport.model','FromAccount','FromFaxAccountId','FaxInteractions','user_has_mail_accounts','FromUserId','user_has_voice_prefixes','Website','CustomReportId','WhatsappInteractionId','../api/intFreshsalesField/intFreshsalesField.model','../api/openchannelApplication/openchannelApplication.model','UserOpenchannelInteractions','WhatsappQueueId','sectionId','WhatsappTransferReport','user_has_fax_accounts','VoiceContext','ChatInteraction','../api/chatProactiveAction/chatProactiveAction.model','ToChatWebsiteId','../api/mailServerOut/mailServerOut.model','MailApplication','ScreenRecording','../api/intZohoField/intZohoField.model','../api/cloudProvider/cloudProvider.model','MailQueueReport','../api/template/template.model','../api/analyticExtractedReport/analyticExtractedReport.model','../api/chatQueue/chatQueue.model','HopperHistories','JscriptySessionReport','../api/faxApplication/faxApplication.model','ChatGroupId','UserWhatsappInteractions','SmsInteractions','OneAny','CmCompany','cascade','HopperBlacks','ToSmsAccountId','initializeAllModels','FaxAccountId','ServicenowConfiguration','ToMailQueueId','SmsAccounts','campaigns_has_cm_lists','../api/intZendeskConfiguration/intZendeskConfiguration.model','FromOpenchannelAccountId','SessionId','../api/team/team.model','SpiedAgents','../api/userProfileSection/userProfileSection.model','../api/cmList/cmList.model','../api/jscriptyProject/jscriptyProject.model','SmsQueueReport','hasOne','../api/analyticTreeReport/analyticTreeReport.model','../api/voiceQueueReport/voiceQueueReport.model','Owner','Description','../api/voiceAgentReport/voiceAgentReport.model','AutomationId','../api/cmContact/cmContact.model','Notifications','FaxQueue','DeskAccount','Action','OpenchannelTransferReport','ChatQueueId','Subject','CmCustomField','Tag','AnalyticFieldReport','DashboardItem','BlackLists','../api/voiceMail/voiceMail.model','TrunkBackup','SmsQueue','ToAccount','ChatInteractions','Dynamics365Account','Fields','FromAgent','WhatsappAccountId','../api/mailTransferReport/mailTransferReport.model','DescriptionId','WhatsappMessageId','ToQueueId','../api/smsInteraction/smsInteraction.model','SmsInteraction','../api/whatsappInteraction/whatsappInteraction.model','voice_queues_has_cm_blacklists','CmHopperHistory','../api/cmHopperBlack/cmHopperBlack.model','WhatsappQueue','Resources','Dynamics365Field','CmHopperBlack','../api/chatTransferReport/chatTransferReport.model','MailAccounts','cm_contact_has_tags','SugarcrmField','belongsToMany','HopperFinals','TemplateId','Dashboard','../api/jscriptyAnswerReport/jscriptyAnswerReport.model','ChatApplication','ToFaxAccountId','DefaultReportId','chat_interaction_has_tags','../api/campaign/campaign.model','../api/mailServerIn/mailServerIn.model','../api/whatsappMessage/whatsappMessage.model','Trigger','MailMessageId','OwnerId','../api/intServicenowField/intServicenowField.model','../api/openchannelQueue/openchannelQueue.model','../api/dashboardItem/dashboardItem.model','mandatoryDispositionPauseId','WhatsappApplication','Hoppers','../api/chatInteraction/chatInteraction.model','../api/cdr/cdr.model','FaxQueueId','OpenchannelQueues','../api/chatGroup/chatGroup.model','MailTransferReport','../api/migration/migration.model','ZendeskField','Schedule','SenderId','Attachments','SalesforceConfiguration','TagId','../api/voicePrefix/voicePrefix.model','team_has_chat_queues','OpenchannelInteractions','MailQueue','SugarcrmAccount','SubjectId','SugarcrmConfiguration','JscriptyProject','../api/mailQueueReport/mailQueueReport.model','WhatsappMessage','CompanyId','../api/reportAgentPreview/reportAgentPreview.model','../api/chatWebsite/chatWebsite.model','user_has_openchannel_accounts','UserVoiceQueueRt','TriggerAllId','UserFaxQueue','FreshsalesField','cm_user_has_lists','../api/intSugarcrmConfiguration/intSugarcrmConfiguration.model','VoiceQueue','fax_interaction_has_tags','../api/analyticFieldReport/analyticFieldReport.model','int_freshdesk_configuration_has_tags','OpenchannelApplication','cm_user_has_contacts','int_zendesk_configuration_has_tags','Answers','CannedAnswer','FreshdeskField','../api/intFreshdeskConfiguration/intFreshdeskConfiguration.model','../api/chatInternalMessage/chatInternalMessage.model','team_has_openchannel_queues','../api/setting/setting.model','FaxAccounts','UserFaxInteractions','FromWhatsappAccountId','VoiceQueueId','Company','ChatWebsites','../api/intZendeskAccount/intZendeskAccount.model','ChatGroup','VtigerAccount','../api/pause/pause.model','ZohoAccount','../api/interval/interval.model','belongsTo','CmContact','team_has_whatsapp_queues','../api/voiceMusicOnHold/voiceMusicOnHold.model','../api/plugin/plugin.model','TriggerId','../api/intZohoAccount/intZohoAccount.model','../api/schedule/schedule.model','Subjects','Tags','Attachment','../api/voiceChanSpy/voiceChanSpy.model','MailQueueId','VoiceExtension','ZendeskAccount','Contact','user_has_fax_interactions','Campaign','Teams','Queues','../api/intZohoConfiguration/intZohoConfiguration.model','OpenchannelAccounts','SmsMessageId','../api/smsQueueReport/smsQueueReport.model','Recordings','WhatsappInteractions','ChatMessageId','ProjectId','../api/mailAccount/mailAccount.model','../api/intServicenowAccount/intServicenowAccount.model','Mohs','ReportAgentPreview','VoiceMusicOnHold','OpenchannelQueueReport','UserProfile','OpenchannelMessageId','voice_queues_has_cm_lists','user_has_chat_websites','ToWhatsappAccountId','Sound','MailQueues','restrict','Dispositions','../api/whatsappTransferReport/whatsappTransferReport.model','../api/intDynamics365Account/intDynamics365Account.model','team_has_fax_queues','ZohoConfiguration','ToUserId','AnalyticMetric','ToId','SmsMessage','ChatQueueReport','FreshsalesAccount','../api/faxTransferReport/faxTransferReport.model','../api/userProfile/userProfile.model','SmsApplication','chat_group_has_users','Extensions','../api/intDynamics365Configuration/intDynamics365Configuration.model','VoiceAgentReport','../api/whatsappAccount/whatsappAccount.model','Configurations','../api/voiceQueuesLog/voiceQueuesLog.model','AnalyticDefaultReport','MailAccount','FaxQueueReport','Disposition','OpenchannelAccountId','VoicePrefixes','SquareProjectId','../api/smsMessage/smsMessage.model','FreshdeskConfiguration','FaxMessage','team_has_voice_queues','OpenchannelAccount','user_has_whatsapp_interactions','Lists','ToAgent','MetricId','../api/analyticMetric/analyticMetric.model','Account','JscriptyAnswerReport','VtigerConfiguration','IntervalId','../api/cmHopper/cmHopper.model','../api/whatsappQueue/whatsappQueue.model','int_desk_configuration_has_tags','ChatInternalMessage','Applications','../api/chatQueueReport/chatQueueReport.model','SalesforceField','moh_has_sounds','../api/intFreshsalesAccount/intFreshsalesAccount.model','Intervals','DeskConfiguration','Field','ContactId','../api/chatMessage/chatMessage.model','../api/intVtigerField/intVtigerField.model','AllConditions','UserProfileResource','whatsapp_interaction_has_tags','team_has_mail_queues','Users','VoiceRecording','FieldId','../api/disposition/disposition.model','../api/voiceRecording/voiceRecording.model','user_has_mail_interactions','Descriptions','Team','SmsApplications','VoiceMailMessage','Messages','FromId','../api/openchannelQueueReport/openchannelQueueReport.model','../api/openchannelMessage/openchannelMessage.model','FaxInteraction','AttachmentId','../api/squareOdbc/squareOdbc.model','VoiceMail','../api/voiceTransferReport/voiceTransferReport.model','mail_interaction_has_tags','user_has_openchannel_interactions','FromSmsAccountId','MailInteractionId','VtigerField','DeskField','../api/voiceQueue/voiceQueue.model','ZohoField','../api/chatApplication/chatApplication.model','Automation','AnyCondition','mailbox','ServicenowField','ChatQueue','../api/userFaxQueue/userFaxQueue.model','../api/openchannelInteraction/openchannelInteraction.model','sequelize','../api/smsQueue/smsQueue.model','SquareProject','ToMailAccountId','../api/squareReportDetail/squareReportDetail.model','FreshdeskAccount','AnyConditions','JscriptyQuestionReport','FaxAccount','ParentId','../api/openchannelTransferReport/openchannelTransferReport.model','../api/mailMessage/mailMessage.model','OneAll'];(function(_0x1dcd69,_0x5d4053){const _0x42af8c=function(_0x2db1d2){while(--_0x2db1d2){_0x1dcd69['push'](_0x1dcd69['shift']());}};_0x42af8c(++_0x5d4053);}(a1190_0x42af,0x170));const a1190_0x2db1=function(_0x1dcd69,_0x5d4053){_0x1dcd69=_0x1dcd69-0xd8;let _0x42af8c=a1190_0x42af[_0x1dcd69];return _0x42af8c;};const a1190_0x4594be=a1190_0x2db1;'use strict';const {init:initUser}=require('../api/user/user.model'),{init:initVoiceChanSpy}=require(a1190_0x4594be(0x28a)),{init:initVoiceContext}=require('../api/voiceContext/voiceContext.model'),{init:initVoiceExtension}=require('../api/voiceExtension/voiceExtension.model'),{init:initVoiceMusicOnHold}=require(a1190_0x4594be(0x282)),{init:initVoiceQueue}=require(a1190_0x4594be(0x128)),{init:initVoiceRecording}=require(a1190_0x4594be(0x113)),{init:initScreenRecording}=require(a1190_0x4594be(0x167)),{init:initVoiceMail}=require(a1190_0x4594be(0x214)),{init:initVoiceMailMessage}=require('../api/voiceMailMessage/voiceMailMessage.model'),{init:initVoiceCallReport}=require('../api/voiceCallReport/voiceCallReport.model'),{init:initVoiceDialReport}=require('../api/voiceDialReport/voiceDialReport.model'),{init:initVoiceAgentReport}=require(a1190_0x4594be(0x205)),{init:initVoiceQueueReport}=require(a1190_0x4594be(0x202)),{init:initMemberReport}=require('../api/memberReport/memberReport.model'),{init:initTrunk}=require(a1190_0x4594be(0x192)),{init:initVoiceTransferReport}=require(a1190_0x4594be(0x121)),{init:initUserVoiceQueueRt}=require(a1190_0x4594be(0x1b2)),{init:initUserVoiceQueue}=require('../api/userVoiceQueue/userVoiceQueue.model'),{init:initUserChatQueue}=require('../api/userChatQueue/userChatQueue.model'),{init:initUserMailQueue}=require(a1190_0x4594be(0x1a7)),{init:initUserFaxQueue}=require(a1190_0x4594be(0x130)),{init:initUserSmsQueue}=require('../api/userSmsQueue/userSmsQueue.model'),{init:initUserOpenchannelQueue}=require('../api/userOpenchannelQueue/userOpenchannelQueue.model'),{init:initUserWhatsappQueue}=require(a1190_0x4594be(0x17e)),{init:initMailServerIn}=require(a1190_0x4594be(0x239)),{init:initMailServerOut}=require(a1190_0x4594be(0x1dd)),{init:initMailAccount}=require(a1190_0x4594be(0x29b)),{init:initMailQueue}=require(a1190_0x4594be(0x18e)),{init:initMailSubstatus}=require('../api/mailSubstatus/mailSubstatus.model'),{init:initMailInteraction}=require(a1190_0x4594be(0x180)),{init:initMailMessage}=require(a1190_0x4594be(0x13d)),{init:initMailApplication}=require(a1190_0x4594be(0x1bd)),{init:initMailQueueReport}=require(a1190_0x4594be(0x259)),{init:initDashboard}=require(a1190_0x4594be(0x149)),{init:initDashboardItem}=require(a1190_0x4594be(0x240)),{init:initFaxAccount}=require(a1190_0x4594be(0x15e)),{init:initFaxApplication}=require(a1190_0x4594be(0x1e8)),{init:initFaxInteraction}=require(a1190_0x4594be(0x16e)),{init:initFaxMessage}=require(a1190_0x4594be(0x1ad)),{init:initFaxQueue}=require('../api/faxQueue/faxQueue.model'),{init:initFaxQueueReport}=require('../api/faxQueueReport/faxQueueReport.model'),{init:initSmsAccount}=require(a1190_0x4594be(0x18f)),{init:initSmsApplication}=require('../api/smsApplication/smsApplication.model'),{init:initSmsInteraction}=require(a1190_0x4594be(0x221)),{init:initSmsMessage}=require(a1190_0x4594be(0xee)),{init:initSmsQueue}=require(a1190_0x4594be(0x133)),{init:initOpenchannelAccount}=require('../api/openchannelAccount/openchannelAccount.model'),{init:initOpenchannelApplication}=require(a1190_0x4594be(0x1d3)),{init:initOpenchannelInteraction}=require(a1190_0x4594be(0x131)),{init:initOpenchannelMessage}=require(a1190_0x4594be(0x11c)),{init:initOpenchannelQueue}=require(a1190_0x4594be(0x23f)),{init:initChatWebsite}=require(a1190_0x4594be(0x25d)),{init:initOpenchannelQueueReport}=require(a1190_0x4594be(0x11b)),{init:initChatApplication}=require(a1190_0x4594be(0x12a)),{init:initChatInteraction}=require(a1190_0x4594be(0x244)),{init:initChatMessage}=require(a1190_0x4594be(0x109)),{init:initChatOfflineMessage}=require(a1190_0x4594be(0x1a5)),{init:initChatQueue}=require(a1190_0x4594be(0x1e5)),{init:initChatGroup}=require(a1190_0x4594be(0x248)),{init:initChatProactiveAction}=require(a1190_0x4594be(0x1db)),{init:initCmCompany}=require('../api/cmCompany/cmCompany.model'),{init:initCmContact}=require(a1190_0x4594be(0x207)),{init:initCmHopper}=require(a1190_0x4594be(0xfc)),{init:initCmHopperBlack}=require(a1190_0x4594be(0x226)),{init:initCmHopperFinal}=require('../api/cmHopperFinal/cmHopperFinal.model'),{init:initCmHopperHistory}=require(a1190_0x4594be(0x19a)),{init:initReportAgentPreview}=require(a1190_0x4594be(0x25c)),{init:initCmCustomField}=require(a1190_0x4594be(0x1bf)),{init:initAction}=require('../api/action/action.model'),{init:initAutomation}=require(a1190_0x4594be(0x1a2)),{init:initCannedAnswer}=require('../api/cannedAnswer/cannedAnswer.model'),{init:initDisposition}=require(a1190_0x4594be(0x112)),{init:initCondition}=require('../api/condition/condition.model'),{init:initInterval}=require(a1190_0x4594be(0x27e)),{init:initPause}=require(a1190_0x4594be(0x27c)),{init:initCdr}=require(a1190_0x4594be(0x245)),{init:initVoiceQueuesLog}=require(a1190_0x4594be(0xe6)),{init:initSchedule}=require(a1190_0x4594be(0x286)),{init:initSound}=require(a1190_0x4594be(0x1b4)),{init:initTag}=require(a1190_0x4594be(0x153)),{init:initTemplate}=require(a1190_0x4594be(0x1e3)),{init:initTrigger}=require(a1190_0x4594be(0x16a)),{init:initVariable}=require(a1190_0x4594be(0x1c7)),{init:initIntegration}=require('../api/integration/integration.model'),{init:initIntegrationReport}=require('../api/integrationReport/integrationReport.model'),{init:initAnalyticCustomReport}=require(a1190_0x4594be(0x1c8)),{init:initAnalyticDefaultReport}=require('../api/analyticDefaultReport/analyticDefaultReport.model'),{init:initAnalyticExtractedReport}=require(a1190_0x4594be(0x1e4)),{init:initAnalyticMetric}=require(a1190_0x4594be(0xf7)),{init:initAnalyticFieldReport}=require(a1190_0x4594be(0x267)),{init:initAnalyticTreeReport}=require(a1190_0x4594be(0x201)),{init:initSalesforceAccount}=require('../api/intSalesforceAccount/intSalesforceAccount.model'),{init:initSalesforceConfiguration}=require(a1190_0x4594be(0x174)),{init:initSalesforceField}=require('../api/intSalesforceField/intSalesforceField.model'),{init:initSugarcrmAccount}=require(a1190_0x4594be(0x1c2)),{init:initSugarcrmConfiguration}=require(a1190_0x4594be(0x264)),{init:initSugarcrmField}=require('../api/intSugarcrmField/intSugarcrmField.model'),{init:initDeskAccount}=require('../api/intDeskAccount/intDeskAccount.model'),{init:initDeskConfiguration}=require('../api/intDeskConfiguration/intDeskConfiguration.model'),{init:initDeskField}=require('../api/intDeskField/intDeskField.model'),{init:initZohoAccount}=require(a1190_0x4594be(0x285)),{init:initZohoConfiguration}=require(a1190_0x4594be(0x293)),{init:initZohoField}=require(a1190_0x4594be(0x1e0)),{init:initZendeskAccount}=require(a1190_0x4594be(0x279)),{init:initZendeskConfiguration}=require(a1190_0x4594be(0x1f7)),{init:initZendeskField}=require(a1190_0x4594be(0x18b)),{init:initFreshdeskAccount}=require('../api/intFreshdeskAccount/intFreshdeskAccount.model'),{init:initFreshdeskConfiguration}=require(a1190_0x4594be(0x26f)),{init:initFreshdeskField}=require('../api/intFreshdeskField/intFreshdeskField.model'),{init:initVtigerAccount}=require(a1190_0x4594be(0x19b)),{init:initVtigerConfiguration}=require(a1190_0x4594be(0x1ac)),{init:initVtigerField}=require(a1190_0x4594be(0x10a)),{init:initServicenowAccount}=require(a1190_0x4594be(0x29c)),{init:initServicenowConfiguration}=require('../api/intServicenowConfiguration/intServicenowConfiguration.model'),{init:initServicenowField}=require(a1190_0x4594be(0x23e)),{init:initDynamics365Account}=require(a1190_0x4594be(0x2ab)),{init:initDynamics365Configuration}=require(a1190_0x4594be(0xe2)),{init:initDynamics365Field}=require(a1190_0x4594be(0x1b7)),{init:initFreshsalesAccount}=require(a1190_0x4594be(0x104)),{init:initFreshsalesConfiguration}=require('../api/intFreshsalesConfiguration/intFreshsalesConfiguration.model'),{init:initFreshsalesField}=require(a1190_0x4594be(0x1d2)),{init:initNetwork}=require('../api/network/network.model'),{init:initChatQueueReport}=require(a1190_0x4594be(0x101)),{init:initChatInternalMessage}=require(a1190_0x4594be(0x270)),{init:initJscriptyAnswerReport}=require(a1190_0x4594be(0x233)),{init:initJscriptyQuestionReport}=require(a1190_0x4594be(0x173)),{init:initJscriptySessionReport}=require(a1190_0x4594be(0x17b)),{init:initSmsQueueReport}=require(a1190_0x4594be(0x296)),{init:initSquareReport}=require(a1190_0x4594be(0x1a9)),{init:initSquareDetailsReport}=require(a1190_0x4594be(0x136)),{init:initJscriptyProject}=require(a1190_0x4594be(0x1fe)),{init:initSetting}=require(a1190_0x4594be(0x272)),{init:initSquareOdbc}=require(a1190_0x4594be(0x11f)),{init:initSquareProject}=require('../api/squareProject/squareProject.model'),{init:initSquareRecording}=require(a1190_0x4594be(0x155)),{init:initSquareMessage}=require(a1190_0x4594be(0x188)),{init:initTeam}=require(a1190_0x4594be(0x1fa)),{init:initLicense}=require('../api/license/license.model'),{init:initCampaign}=require(a1190_0x4594be(0x238)),{init:initMigration}=require(a1190_0x4594be(0x24a)),{init:initAttachment}=require('../api/attachment/attachment.model'),{init:initPlugin}=require(a1190_0x4594be(0x283)),{init:initMailTransferReport}=require(a1190_0x4594be(0x21d)),{init:initChatTransferReport}=require(a1190_0x4594be(0x22b)),{init:initFaxTransferReport}=require(a1190_0x4594be(0xdd)),{init:initOpenchannelTransferReport}=require(a1190_0x4594be(0x13c)),{init:initSmsTransferReport}=require('../api/smsTransferReport/smsTransferReport.model'),{init:initCmList}=require(a1190_0x4594be(0x1fd)),{init:initVoicePrefix}=require(a1190_0x4594be(0x251)),{init:initUserProfile}=require(a1190_0x4594be(0xde)),{init:initUserProfileSection}=require(a1190_0x4594be(0x1fc)),{init:initUserProfileResource}=require('../api/userProfileResource/userProfileResource.model'),{init:initNotification}=require('../api/notification/notification.model'),{init:initWhatsappAccount}=require(a1190_0x4594be(0xe4)),{init:initWhatsappApplication}=require('../api/whatsappApplication/whatsappApplication.model'),{init:initWhatsappInteraction}=require(a1190_0x4594be(0x223)),{init:initWhatsappMessage}=require(a1190_0x4594be(0x23a)),{init:initWhatsappQueueReport}=require('../api/whatsappQueueReport/whatsappQueueReport.model'),{init:initWhatsappTransferReport}=require(a1190_0x4594be(0x2aa)),{init:initWhatsappQueue}=require(a1190_0x4594be(0xfd)),{init:initCloudProvider}=require(a1190_0x4594be(0x1e1));function initializeAllModels(_0xd172e,_0x33a50a){const _0x25ad01=a1190_0x4594be,_0x36ab12={'sequelize':_0xd172e[_0x25ad01(0x132)],'User':initUser(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'VoiceChanSpy':initVoiceChanSpy(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'VoiceContext':initVoiceContext(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'VoiceExtension':initVoiceExtension(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'VoiceMusicOnHold':initVoiceMusicOnHold(_0xd172e['sequelize'],_0x33a50a),'VoiceQueue':initVoiceQueue(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'VoiceRecording':initVoiceRecording(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'ScreenRecording':initScreenRecording(_0xd172e['sequelize'],_0x33a50a),'VoiceMail':initVoiceMail(_0xd172e['sequelize'],_0x33a50a),'VoiceMailMessage':initVoiceMailMessage(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'VoiceCallReport':initVoiceCallReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'VoiceDialReport':initVoiceDialReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'VoiceAgentReport':initVoiceAgentReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'VoiceQueueReport':initVoiceQueueReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'MemberReport':initMemberReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'Trunk':initTrunk(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'VoiceTransferReport':initVoiceTransferReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'UserVoiceQueueRt':initUserVoiceQueueRt(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'UserVoiceQueue':initUserVoiceQueue(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'UserChatQueue':initUserChatQueue(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'UserMailQueue':initUserMailQueue(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'UserFaxQueue':initUserFaxQueue(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'UserSmsQueue':initUserSmsQueue(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'UserOpenchannelQueue':initUserOpenchannelQueue(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'UserWhatsappQueue':initUserWhatsappQueue(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'MailServerIn':initMailServerIn(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'MailServerOut':initMailServerOut(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'MailAccount':initMailAccount(_0xd172e['sequelize'],_0x33a50a),'MailQueue':initMailQueue(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'MailSubstatus':initMailSubstatus(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'MailInteraction':initMailInteraction(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'MailMessage':initMailMessage(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'MailApplication':initMailApplication(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'MailQueueReport':initMailQueueReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'Dashboard':initDashboard(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'DashboardItem':initDashboardItem(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'FaxAccount':initFaxAccount(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'FaxApplication':initFaxApplication(_0xd172e['sequelize'],_0x33a50a),'FaxInteraction':initFaxInteraction(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'FaxMessage':initFaxMessage(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'FaxQueue':initFaxQueue(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'FaxQueueReport':initFaxQueueReport(_0xd172e['sequelize'],_0x33a50a),'SmsAccount':initSmsAccount(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'SmsApplication':initSmsApplication(_0xd172e['sequelize'],_0x33a50a),'SmsInteraction':initSmsInteraction(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'SmsMessage':initSmsMessage(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'SmsQueue':initSmsQueue(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'OpenchannelAccount':initOpenchannelAccount(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'OpenchannelApplication':initOpenchannelApplication(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'OpenchannelInteraction':initOpenchannelInteraction(_0xd172e['sequelize'],_0x33a50a),'OpenchannelMessage':initOpenchannelMessage(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'OpenchannelQueue':initOpenchannelQueue(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'ChatWebsite':initChatWebsite(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'OpenchannelQueueReport':initOpenchannelQueueReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'ChatApplication':initChatApplication(_0xd172e['sequelize'],_0x33a50a),'ChatInteraction':initChatInteraction(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'ChatMessage':initChatMessage(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'ChatOfflineMessage':initChatOfflineMessage(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'ChatQueue':initChatQueue(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'ChatGroup':initChatGroup(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'ChatProactiveAction':initChatProactiveAction(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'CmCompany':initCmCompany(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'CmContact':initCmContact(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'CmHopper':initCmHopper(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'CmHopperBlack':initCmHopperBlack(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'CmHopperFinal':initCmHopperFinal(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'CmHopperHistory':initCmHopperHistory(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'ReportAgentPreview':initReportAgentPreview(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'CmCustomField':initCmCustomField(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'Action':initAction(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'Automation':initAutomation(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'CannedAnswer':initCannedAnswer(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'Disposition':initDisposition(_0xd172e['sequelize'],_0x33a50a),'Condition':initCondition(_0xd172e['sequelize'],_0x33a50a),'Interval':initInterval(_0xd172e['sequelize'],_0x33a50a),'Pause':initPause(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'Cdr':initCdr(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'VoiceQueuesLog':initVoiceQueuesLog(_0xd172e['sequelize'],_0x33a50a),'Schedule':initSchedule(_0xd172e['sequelize'],_0x33a50a),'Sound':initSound(_0xd172e['sequelize'],_0x33a50a),'Tag':initTag(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'Template':initTemplate(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'Trigger':initTrigger(_0xd172e['sequelize'],_0x33a50a),'Variable':initVariable(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'Integration':initIntegration(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'IntegrationReport':initIntegrationReport(_0xd172e['sequelize'],_0x33a50a),'AnalyticCustomReport':initAnalyticCustomReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'AnalyticDefaultReport':initAnalyticDefaultReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'AnalyticExtractedReport':initAnalyticExtractedReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'AnalyticMetric':initAnalyticMetric(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'AnalyticFieldReport':initAnalyticFieldReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'AnalyticTreeReport':initAnalyticTreeReport(_0xd172e['sequelize'],_0x33a50a),'SalesforceAccount':initSalesforceAccount(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'SalesforceConfiguration':initSalesforceConfiguration(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'SalesforceField':initSalesforceField(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'SugarcrmAccount':initSugarcrmAccount(_0xd172e['sequelize'],_0x33a50a),'SugarcrmConfiguration':initSugarcrmConfiguration(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'SugarcrmField':initSugarcrmField(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'DeskAccount':initDeskAccount(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'DeskConfiguration':initDeskConfiguration(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'DeskField':initDeskField(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'ZohoAccount':initZohoAccount(_0xd172e['sequelize'],_0x33a50a),'ZohoConfiguration':initZohoConfiguration(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'ZohoField':initZohoField(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'ZendeskAccount':initZendeskAccount(_0xd172e['sequelize'],_0x33a50a),'ZendeskConfiguration':initZendeskConfiguration(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'ZendeskField':initZendeskField(_0xd172e['sequelize'],_0x33a50a),'FreshdeskAccount':initFreshdeskAccount(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'FreshdeskConfiguration':initFreshdeskConfiguration(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'FreshdeskField':initFreshdeskField(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'VtigerAccount':initVtigerAccount(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'VtigerConfiguration':initVtigerConfiguration(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'VtigerField':initVtigerField(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'ServicenowAccount':initServicenowAccount(_0xd172e['sequelize'],_0x33a50a),'ServicenowConfiguration':initServicenowConfiguration(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'ServicenowField':initServicenowField(_0xd172e['sequelize'],_0x33a50a),'Dynamics365Account':initDynamics365Account(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'Dynamics365Configuration':initDynamics365Configuration(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'Dynamics365Field':initDynamics365Field(_0xd172e['sequelize'],_0x33a50a),'FreshsalesAccount':initFreshsalesAccount(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'FreshsalesConfiguration':initFreshsalesConfiguration(_0xd172e['sequelize'],_0x33a50a),'FreshsalesField':initFreshsalesField(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'Network':initNetwork(_0xd172e['sequelize'],_0x33a50a),'ChatQueueReport':initChatQueueReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'ChatInternalMessage':initChatInternalMessage(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'JscriptyAnswerReport':initJscriptyAnswerReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'JscriptyQuestionReport':initJscriptyQuestionReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'JscriptySessionReport':initJscriptySessionReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'SmsQueueReport':initSmsQueueReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'SquareReport':initSquareReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'SquareDetailsReport':initSquareDetailsReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'JscriptyProject':initJscriptyProject(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'Setting':initSetting(_0xd172e['sequelize'],_0x33a50a),'SquareOdbc':initSquareOdbc(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'SquareProject':initSquareProject(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'SquareRecording':initSquareRecording(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'SquareMessage':initSquareMessage(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'Team':initTeam(_0xd172e['sequelize'],_0x33a50a),'License':initLicense(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'Campaign':initCampaign(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'Migration':initMigration(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'Attachment':initAttachment(_0xd172e['sequelize'],_0x33a50a),'Plugin':initPlugin(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'MailTransferReport':initMailTransferReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'ChatTransferReport':initChatTransferReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'FaxTransferReport':initFaxTransferReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'OpenchannelTransferReport':initOpenchannelTransferReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'SmsTransferReport':initSmsTransferReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'CmList':initCmList(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'VoicePrefix':initVoicePrefix(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'UserProfile':initUserProfile(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'UserProfileSection':initUserProfileSection(_0xd172e['sequelize'],_0x33a50a),'UserProfileResource':initUserProfileResource(_0xd172e['sequelize'],_0x33a50a),'Notification':initNotification(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'WhatsappAccount':initWhatsappAccount(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'WhatsappApplication':initWhatsappApplication(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'WhatsappInteraction':initWhatsappInteraction(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'WhatsappMessage':initWhatsappMessage(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'WhatsappQueueReport':initWhatsappQueueReport(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'WhatsappTransferReport':initWhatsappTransferReport(_0xd172e['sequelize'],_0x33a50a),'WhatsappQueue':initWhatsappQueue(_0xd172e[_0x25ad01(0x132)],_0x33a50a),'CloudProvider':initCloudProvider(_0xd172e[_0x25ad01(0x132)],_0x33a50a)};return _0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x200)](_0x36ab12[_0x25ad01(0x120)],{'as':_0x25ad01(0x120),'onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x110)],{'as':_0x25ad01(0x297),'foreignKey':_0x25ad01(0x185)}),_0x36ab12['User'][_0x25ad01(0x1b5)](_0x36ab12['UserVoiceQueueRt'],{'as':'VoiceQueuesRt','foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x1a8)]['hasMany'](_0x36ab12[_0x25ad01(0x28c)],{'as':'Extensions','onDelete':_0x25ad01(0x1ee),'hooks':!![]}),_0x36ab12[_0x25ad01(0x1a8)]['hasMany'](_0x36ab12['CmHopperFinal'],{'as':_0x25ad01(0x230),'foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x1b5)](_0x36ab12['CmHopperHistory'],{'as':_0x25ad01(0x1aa),'foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x29e)],{'as':_0x25ad01(0x29e),'foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x1a8)]['hasMany'](_0x36ab12[_0x25ad01(0x175)],{'as':_0x25ad01(0x253),'foreignKey':'UserId'}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x1b5)](_0x36ab12['ChatInteraction'],{'as':_0x25ad01(0x218),'foreignKey':'UserId'}),_0x36ab12['User']['hasMany'](_0x36ab12['SmsInteraction'],{'as':_0x25ad01(0x1eb),'foreignKey':'UserId'}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x11d)],{'as':_0x25ad01(0x1cb),'foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x1b5)](_0x36ab12['MailInteraction'],{'as':_0x25ad01(0x147),'foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x1bc)],{'as':_0x25ad01(0x298),'foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x1a8)]['hasMany'](_0x36ab12[_0x25ad01(0x17a)],{'as':_0x25ad01(0x208),'foreignKey':_0x25ad01(0x24d)}),_0x36ab12['User']['belongsTo'](_0x36ab12['UserProfile'],{'as':_0x25ad01(0x2a1),'foreignKey':_0x25ad01(0x1b8)}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x27a)],{'as':'Groups','through':'chat_group_has_users'}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x280)],{'as':_0x25ad01(0x17c),'through':_0x25ad01(0x26a)}),_0x36ab12[_0x25ad01(0x1a8)]['belongsToMany'](_0x36ab12['CmList'],{'as':_0x25ad01(0xf4),'through':'cm_user_has_lists'}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x116)],{'through':'user_has_teams'}),_0x36ab12[_0x25ad01(0x1a8)]['belongsToMany'](_0x36ab12[_0x25ad01(0x19d)],{'as':'UserMailInteractions','through':_0x25ad01(0x114)}),_0x36ab12['User']['belongsToMany'](_0x36ab12[_0x25ad01(0x1da)],{'as':_0x25ad01(0x1c0),'through':_0x25ad01(0x172)}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x22f)](_0x36ab12['FaxInteraction'],{'as':_0x25ad01(0x274),'through':_0x25ad01(0x28f)}),_0x36ab12['User'][_0x25ad01(0x22f)](_0x36ab12['SmsInteraction'],{'as':_0x25ad01(0x18a),'through':_0x25ad01(0x15b)}),_0x36ab12['User'][_0x25ad01(0x22f)](_0x36ab12['OpenchannelInteraction'],{'as':_0x25ad01(0x1d4),'through':_0x25ad01(0x123)}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1bc)],{'as':_0x25ad01(0x1ea),'through':_0x25ad01(0xf3)}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x265)],{'as':_0x25ad01(0x187),'through':'UserVoiceQueue'}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x254)],{'as':'MailQueues','through':_0x25ad01(0x1c1)}),_0x36ab12['User'][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x12f)],{'as':_0x25ad01(0x1b1),'through':_0x25ad01(0x1ba),'hooks':!![]}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x22f)](_0x36ab12['FaxQueue'],{'as':'FaxQueues','through':_0x25ad01(0x261)}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x216)],{'as':_0x25ad01(0x177),'through':_0x25ad01(0x17f)}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x182)],{'as':_0x25ad01(0x247),'through':_0x25ad01(0x1c5)}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x227)],{'as':'WhatsappQueues','through':_0x25ad01(0x18c)}),_0x36ab12['User'][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x168)],{'through':'cm_user_has_lists'}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1b6)],{'as':_0x25ad01(0xec),'through':_0x25ad01(0x1ce)}),_0x36ab12['User'][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x191)],{'as':_0x25ad01(0x278),'through':'user_has_chat_websites'}),_0x36ab12['User'][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x13a)],{'as':_0x25ad01(0x273),'through':_0x25ad01(0x1d8)}),_0x36ab12[_0x25ad01(0x1a8)]['belongsToMany'](_0x36ab12['MailAccount'],{'as':_0x25ad01(0x22c),'through':_0x25ad01(0x1cc)}),_0x36ab12['User']['belongsToMany'](_0x36ab12[_0x25ad01(0xf2)],{'as':_0x25ad01(0x294),'through':_0x25ad01(0x25e)}),_0x36ab12[_0x25ad01(0x1a8)]['belongsToMany'](_0x36ab12[_0x25ad01(0x165)],{'as':_0x25ad01(0x1f5),'through':_0x25ad01(0x14d)}),_0x36ab12[_0x25ad01(0x1a8)][_0x25ad01(0x22f)](_0x36ab12['WhatsappAccount'],{'as':'WhatsappAccounts','through':'user_has_whatsapp_accounts'}),_0x36ab12[_0x25ad01(0x1a8)]['belongsToMany'](_0x36ab12[_0x25ad01(0x134)],{'as':_0x25ad01(0x1a3),'through':'user_has_square_projects'}),_0x36ab12[_0x25ad01(0x166)]['hasMany'](_0x36ab12[_0x25ad01(0x28c)],{'as':_0x25ad01(0x1fb),'onDelete':'cascade','foreignKey':'ChanSpyId'}),_0x36ab12[_0x25ad01(0x1d9)]['hasMany'](_0x36ab12['VoiceExtension'],{'onDelete':_0x25ad01(0x1ee)}),_0x36ab12[_0x25ad01(0x28c)][_0x25ad01(0x1b5)](_0x36ab12['VoiceExtension'],{'as':_0x25ad01(0x100),'onDelete':_0x25ad01(0x1ee)}),_0x36ab12['VoiceMusicOnHold'][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x2a6)],{'as':'Sounds','through':_0x25ad01(0x103)}),_0x36ab12[_0x25ad01(0x265)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x25f)],{'as':_0x25ad01(0x142),'foreignKey':_0x25ad01(0x276)}),_0x36ab12[_0x25ad01(0x265)][_0x25ad01(0x1b5)](_0x36ab12['CmHopper'],{'as':_0x25ad01(0x243),'foreignKey':_0x25ad01(0x276)}),_0x36ab12[_0x25ad01(0x265)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x1c4)],{'as':_0x25ad01(0x230),'foreignKey':'VoiceQueueId'}),_0x36ab12[_0x25ad01(0x265)]['hasMany'](_0x36ab12[_0x25ad01(0x225)],{'as':'HopperHistories','foreignKey':_0x25ad01(0x276)}),_0x36ab12[_0x25ad01(0x265)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x29e)],{'as':_0x25ad01(0x29e),'foreignKey':_0x25ad01(0x276)}),_0x36ab12[_0x25ad01(0x265)]['hasMany'](_0x36ab12[_0x25ad01(0x22a)],{'as':_0x25ad01(0x1ef),'foreignKey':_0x25ad01(0x276)}),_0x36ab12[_0x25ad01(0x265)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x1e7)],{'as':_0x25ad01(0x140),'foreignKey':_0x25ad01(0x276)}),_0x36ab12[_0x25ad01(0x265)]['belongsTo'](_0x36ab12[_0x25ad01(0x13f)],{'as':_0x25ad01(0x13f),'foreignKey':_0x25ad01(0x196)}),_0x36ab12[_0x25ad01(0x265)]['belongsTo'](_0x36ab12[_0x25ad01(0x13f)],{'as':_0x25ad01(0x215),'foreignKey':_0x25ad01(0x1af)}),_0x36ab12[_0x25ad01(0x265)][_0x25ad01(0x27f)](_0x36ab12['Interval'],{'as':'Interval','foreignKey':'IntervalId'}),_0x36ab12[_0x25ad01(0x265)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x17d)],{'as':_0x25ad01(0x150),'foreignKey':_0x25ad01(0x241)}),_0x36ab12[_0x25ad01(0x265)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x168)],{'as':_0x25ad01(0xf4),'through':'voice_queues_has_cm_lists'}),_0x36ab12[_0x25ad01(0x265)]['belongsToMany'](_0x36ab12[_0x25ad01(0x1a8)],{'as':'Agents','through':_0x25ad01(0x171)}),_0x36ab12[_0x25ad01(0x265)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x116)],{'as':_0x25ad01(0x291),'through':'team_has_voice_queues'}),_0x36ab12[_0x25ad01(0x265)]['belongsToMany'](_0x36ab12[_0x25ad01(0x168)],{'as':_0x25ad01(0x213),'through':_0x25ad01(0x224)}),_0x36ab12['VoiceRecording'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x1a8),'foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x1df)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x1a8),'foreignKey':_0x25ad01(0x185)}),_0x36ab12['VoiceMail'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x118)],{'as':_0x25ad01(0x119),'onDelete':_0x25ad01(0x1ee),'foreignKey':'mailboxuser','sourceKey':_0x25ad01(0x12d)}),_0x36ab12[_0x25ad01(0x118)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x120)],{'foreignKey':'mailboxuser','targetKey':_0x25ad01(0x12d)}),_0x36ab12[_0x25ad01(0x163)][_0x25ad01(0x1b5)](_0x36ab12['VoiceQueueReport'],{'as':'QueueCalls','foreignKey':_0x25ad01(0x14b),'constraints':![]}),_0x36ab12[_0x25ad01(0x163)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0xe3)],{'as':'AgentReports','foreignKey':_0x25ad01(0x14b),'constraints':![]}),_0x36ab12[_0x25ad01(0x163)]['belongsTo'](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x1a8),'foreignKey':_0x25ad01(0x185)}),_0x36ab12['VoiceCallReport'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x280)],{'as':_0x25ad01(0x28e),'foreignKey':_0x25ad01(0x108)}),_0x36ab12[_0x25ad01(0x18d)]['belongsTo'](_0x36ab12['MailAccount'],{'as':_0x25ad01(0xe8),'foreignKey':'MailAccountId'}),_0x36ab12[_0x25ad01(0x178)][_0x25ad01(0x27f)](_0x36ab12['MailAccount'],{'as':_0x25ad01(0xe8),'foreignKey':_0x25ad01(0x162)}),_0x36ab12['MailAccount'][_0x25ad01(0x200)](_0x36ab12['MailServerIn'],{'as':_0x25ad01(0x148),'foreignKey':_0x25ad01(0x162),'onDelete':_0x25ad01(0x1ee)}),_0x36ab12[_0x25ad01(0xe8)][_0x25ad01(0x200)](_0x36ab12[_0x25ad01(0x178)],{'as':'Smtp','foreignKey':_0x25ad01(0x162),'onDelete':_0x25ad01(0x1ee)}),_0x36ab12[_0x25ad01(0xe8)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0xea)],{'as':_0x25ad01(0x2a9),'foreignKey':'MailAccountId'}),_0x36ab12[_0x25ad01(0xe8)]['hasMany'](_0x36ab12[_0x25ad01(0x26d)],{'as':_0x25ad01(0x26c),'foreignKey':_0x25ad01(0x162)}),_0x36ab12[_0x25ad01(0xe8)]['hasMany'](_0x36ab12[_0x25ad01(0x16d)],{'as':_0x25ad01(0x119),'foreignKey':_0x25ad01(0x162)}),_0x36ab12[_0x25ad01(0xe8)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x19d)],{'as':_0x25ad01(0x15c)}),_0x36ab12['MailAccount'][_0x25ad01(0x1b5)](_0x36ab12['MailApplication'],{'as':_0x25ad01(0x100)}),_0x36ab12[_0x25ad01(0xe8)]['belongsTo'](_0x36ab12[_0x25ad01(0x168)],{'as':_0x25ad01(0x1a4),'foreignKey':_0x25ad01(0x1ab)}),_0x36ab12[_0x25ad01(0xe8)]['belongsTo'](_0x36ab12[_0x25ad01(0x197)],{'as':'Template','foreignKey':_0x25ad01(0x231)}),_0x36ab12[_0x25ad01(0xe8)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x17d)],{'as':_0x25ad01(0x150),'foreignKey':_0x25ad01(0x241)}),_0x36ab12[_0x25ad01(0xe8)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':'Agents','through':_0x25ad01(0x1cc)}),_0x36ab12['MailQueue']['belongsToMany'](_0x36ab12['User'],{'as':_0x25ad01(0x14e),'through':_0x25ad01(0x1c1)}),_0x36ab12[_0x25ad01(0x254)]['belongsToMany'](_0x36ab12['Team'],{'through':_0x25ad01(0x10e),'as':_0x25ad01(0x291)}),_0x36ab12['MailInteraction'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x16d)],{'as':_0x25ad01(0x119),'onDelete':'cascade','foreignKey':_0x25ad01(0x125)}),_0x36ab12[_0x25ad01(0x19d)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0xe8)],{'as':_0x25ad01(0xf8),'foreignKey':_0x25ad01(0x162)}),_0x36ab12['MailInteraction'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x280)],{'as':_0x25ad01(0x28e),'foreignKey':_0x25ad01(0x108)}),_0x36ab12[_0x25ad01(0x19d)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x203),'foreignKey':'UserId'}),_0x36ab12[_0x25ad01(0x19d)]['belongsToMany'](_0x36ab12[_0x25ad01(0x210)],{'through':_0x25ad01(0x122),'as':_0x25ad01(0x288)}),_0x36ab12[_0x25ad01(0x19d)][_0x25ad01(0x22f)](_0x36ab12['Tag'],{'through':_0x25ad01(0x122),'as':'ThroughTags'}),_0x36ab12[_0x25ad01(0x19d)][_0x25ad01(0x22f)](_0x36ab12['User'],{'as':_0x25ad01(0x10f),'through':_0x25ad01(0x114),'foreignKey':_0x25ad01(0x125)}),_0x36ab12[_0x25ad01(0x16d)]['hasMany'](_0x36ab12[_0x25ad01(0x289)],{'as':_0x25ad01(0x24e),'onDelete':_0x25ad01(0x1ee)}),_0x36ab12[_0x25ad01(0x16d)]['belongsTo'](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x1a8),'foreignKey':'UserId'}),_0x36ab12[_0x25ad01(0x16d)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x280)],{'onDelete':'cascade','as':_0x25ad01(0x28e),'foreignKey':'ContactId'}),_0x36ab12[_0x25ad01(0x16d)][_0x25ad01(0x27f)](_0x36ab12['MailInteraction'],{'as':_0x25ad01(0x141),'foreignKey':_0x25ad01(0x125)}),_0x36ab12[_0x25ad01(0x16d)][_0x25ad01(0x27f)](_0x36ab12['MailAccount'],{'as':'Account','foreignKey':_0x25ad01(0x162)}),_0x36ab12[_0x25ad01(0x1de)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'onDelete':'restrict','foreignKey':_0x25ad01(0x185)}),_0x36ab12['MailApplication'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x254)],{'onDelete':_0x25ad01(0x2a8),'foreignKey':_0x25ad01(0x28b)}),_0x36ab12[_0x25ad01(0x1de)]['belongsTo'](_0x36ab12[_0x25ad01(0xe8)],{'onDelete':'restrict','foreignKey':'MailAccountId'}),_0x36ab12[_0x25ad01(0x1de)]['belongsTo'](_0x36ab12[_0x25ad01(0x169)],{'onDelete':_0x25ad01(0x2a8),'foreignKey':_0x25ad01(0xfb)}),_0x36ab12[_0x25ad01(0x1de)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x210)],{'onDelete':_0x25ad01(0x2a8),'foreignKey':_0x25ad01(0x250)}),_0x36ab12['MailQueueReport'][_0x25ad01(0x27f)](_0x36ab12['MailAccount'],{'foreignKey':'MailAccountId'}),_0x36ab12['MailQueueReport'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x168)],{'as':_0x25ad01(0x1a4),'foreignKey':_0x25ad01(0x1ab)}),_0x36ab12[_0x25ad01(0x1e2)]['belongsTo'](_0x36ab12[_0x25ad01(0x280)],{'as':_0x25ad01(0x28e),'foreignKey':'ContactId'}),_0x36ab12[_0x25ad01(0x1e2)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x19d)],{'foreignKey':_0x25ad01(0x125)}),_0x36ab12[_0x25ad01(0x1e2)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x16d)],{'foreignKey':_0x25ad01(0x23c)}),_0x36ab12[_0x25ad01(0x1e2)][_0x25ad01(0x27f)](_0x36ab12['User'],{'foreignKey':_0x25ad01(0x185)}),_0x36ab12['MailQueueReport'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x254)],{'foreignKey':_0x25ad01(0x28b)}),_0x36ab12[_0x25ad01(0x232)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x212)],{'as':'Items','onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x1a1)}),_0x36ab12[_0x25ad01(0x13a)][_0x25ad01(0x1b5)](_0x36ab12['Disposition'],{'as':_0x25ad01(0x2a9),'foreignKey':_0x25ad01(0x1f2)}),_0x36ab12[_0x25ad01(0x13a)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x26d)],{'as':_0x25ad01(0x26c),'foreignKey':_0x25ad01(0x1f2)}),_0x36ab12['FaxAccount']['hasMany'](_0x36ab12[_0x25ad01(0x11d)],{'as':'Interactions'}),_0x36ab12[_0x25ad01(0x13a)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x1c3)],{'as':_0x25ad01(0x100)}),_0x36ab12['FaxAccount']['hasMany'](_0x36ab12[_0x25ad01(0x28c)],{'as':_0x25ad01(0x193),'onDelete':'cascade'}),_0x36ab12[_0x25ad01(0x13a)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0xf0)],{'as':_0x25ad01(0x119)}),_0x36ab12[_0x25ad01(0x13a)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x13f)],{'as':'Trunk','foreignKey':_0x25ad01(0x196)}),_0x36ab12[_0x25ad01(0x13a)]['belongsTo'](_0x36ab12[_0x25ad01(0x168)],{'as':_0x25ad01(0x1a4),'foreignKey':_0x25ad01(0x1ab)}),_0x36ab12[_0x25ad01(0x13a)]['belongsTo'](_0x36ab12[_0x25ad01(0x17d)],{'as':_0x25ad01(0x150),'foreignKey':'mandatoryDispositionPauseId'}),_0x36ab12[_0x25ad01(0x13a)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x14e),'through':_0x25ad01(0x1d8)}),_0x36ab12[_0x25ad01(0x1c3)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'onDelete':'restrict','foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x1c3)]['belongsTo'](_0x36ab12[_0x25ad01(0x209)],{'onDelete':'restrict','foreignKey':_0x25ad01(0x246)}),_0x36ab12[_0x25ad01(0x1c3)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x13a)],{'onDelete':_0x25ad01(0x2a8),'foreignKey':_0x25ad01(0x1f2)}),_0x36ab12[_0x25ad01(0x1c3)]['belongsTo'](_0x36ab12['Tag'],{'onDelete':_0x25ad01(0x2a8),'foreignKey':'TagId'}),_0x36ab12['FaxInteraction'][_0x25ad01(0x1b5)](_0x36ab12['FaxMessage'],{'as':_0x25ad01(0x119),'onDelete':'cascade','foreignKey':_0x25ad01(0x159)}),_0x36ab12['FaxInteraction'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x13a)],{'as':_0x25ad01(0xf8),'foreignKey':'FaxAccountId'}),_0x36ab12[_0x25ad01(0x11d)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x280)],{'as':_0x25ad01(0x28e),'foreignKey':_0x25ad01(0x108)}),_0x36ab12[_0x25ad01(0x11d)]['belongsTo'](_0x36ab12[_0x25ad01(0x1a8)],{'as':'Owner','foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x11d)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x210)],{'through':_0x25ad01(0x266),'as':_0x25ad01(0x288)}),_0x36ab12[_0x25ad01(0x11d)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x210)],{'through':'fax_interaction_has_tags','as':_0x25ad01(0x151)}),_0x36ab12[_0x25ad01(0x11d)][_0x25ad01(0x22f)](_0x36ab12['User'],{'as':_0x25ad01(0x10f),'through':_0x25ad01(0x28f),'foreignKey':_0x25ad01(0x159)}),_0x36ab12['FaxMessage']['belongsTo'](_0x36ab12['User'],{'onDelete':_0x25ad01(0x1ee),'as':'User','foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0xf0)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x11d)],{'as':_0x25ad01(0x141),'foreignKey':_0x25ad01(0x159)}),_0x36ab12[_0x25ad01(0xf0)][_0x25ad01(0x27f)](_0x36ab12['CmContact'],{'onDelete':_0x25ad01(0x1ee),'as':'Contact','foreignKey':_0x25ad01(0x108)}),_0x36ab12[_0x25ad01(0xf0)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x289)],{'as':_0x25ad01(0x289),'foreignKey':_0x25ad01(0x11e)}),_0x36ab12['FaxMessage'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x13a)],{'as':'Account','foreignKey':_0x25ad01(0x1f2)}),_0x36ab12[_0x25ad01(0x209)]['belongsToMany'](_0x36ab12['User'],{'as':_0x25ad01(0x14e),'through':_0x25ad01(0x261)}),_0x36ab12[_0x25ad01(0x209)]['belongsToMany'](_0x36ab12['Team'],{'through':'team_has_fax_queues','as':'Teams'}),_0x36ab12['FaxQueueReport']['belongsTo'](_0x36ab12[_0x25ad01(0x13a)],{'foreignKey':_0x25ad01(0x1f2)}),_0x36ab12[_0x25ad01(0xe9)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x168)],{'as':_0x25ad01(0x1a4),'foreignKey':'ListId'}),_0x36ab12['FaxQueueReport'][_0x25ad01(0x27f)](_0x36ab12['CmContact'],{'as':_0x25ad01(0x28e),'foreignKey':_0x25ad01(0x108)}),_0x36ab12[_0x25ad01(0xe9)]['belongsTo'](_0x36ab12[_0x25ad01(0x11d)],{'foreignKey':_0x25ad01(0x159)}),_0x36ab12[_0x25ad01(0xe9)]['belongsTo'](_0x36ab12[_0x25ad01(0xf0)],{'foreignKey':'FaxMessageId'}),_0x36ab12['FaxQueueReport'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0xe9)][_0x25ad01(0x27f)](_0x36ab12['FaxQueue'],{'foreignKey':_0x25ad01(0x246)}),_0x36ab12[_0x25ad01(0x165)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0xea)],{'as':_0x25ad01(0x2a9),'foreignKey':_0x25ad01(0x16c)}),_0x36ab12['SmsAccount'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x26d)],{'as':'Answers','foreignKey':_0x25ad01(0x16c)}),_0x36ab12[_0x25ad01(0x165)]['hasMany'](_0x36ab12[_0x25ad01(0xda)],{'as':_0x25ad01(0x119),'foreignKey':_0x25ad01(0x16c)}),_0x36ab12[_0x25ad01(0x165)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x222)],{'as':_0x25ad01(0x15c)}),_0x36ab12[_0x25ad01(0x165)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0xdf)],{'as':_0x25ad01(0x100)}),_0x36ab12[_0x25ad01(0x165)][_0x25ad01(0x27f)](_0x36ab12['CmList'],{'as':_0x25ad01(0x1a4),'foreignKey':_0x25ad01(0x1ab)}),_0x36ab12['SmsAccount']['belongsTo'](_0x36ab12[_0x25ad01(0x17d)],{'as':_0x25ad01(0x150),'foreignKey':'mandatoryDispositionPauseId'}),_0x36ab12[_0x25ad01(0x165)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x14e),'through':_0x25ad01(0x14d)}),_0x36ab12[_0x25ad01(0xdf)]['belongsTo'](_0x36ab12[_0x25ad01(0x1a8)],{'onDelete':_0x25ad01(0x2a8),'foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0xdf)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x216)],{'onDelete':_0x25ad01(0x2a8),'foreignKey':_0x25ad01(0x1be)}),_0x36ab12[_0x25ad01(0xdf)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x165)],{'onDelete':_0x25ad01(0x2a8),'foreignKey':_0x25ad01(0x16c)}),_0x36ab12[_0x25ad01(0xdf)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x169)],{'onDelete':_0x25ad01(0x2a8),'foreignKey':_0x25ad01(0xfb)}),_0x36ab12[_0x25ad01(0xdf)][_0x25ad01(0x27f)](_0x36ab12['Tag'],{'onDelete':_0x25ad01(0x2a8),'foreignKey':_0x25ad01(0x250)}),_0x36ab12[_0x25ad01(0x222)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0xda)],{'as':_0x25ad01(0x119),'onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x189)}),_0x36ab12[_0x25ad01(0x222)][_0x25ad01(0x27f)](_0x36ab12['SmsAccount'],{'as':_0x25ad01(0xf8),'foreignKey':'SmsAccountId'}),_0x36ab12[_0x25ad01(0x222)]['belongsTo'](_0x36ab12[_0x25ad01(0x280)],{'as':_0x25ad01(0x28e),'foreignKey':_0x25ad01(0x108)}),_0x36ab12[_0x25ad01(0x222)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x203),'foreignKey':_0x25ad01(0x185)}),_0x36ab12['SmsInteraction']['belongsToMany'](_0x36ab12[_0x25ad01(0x210)],{'through':_0x25ad01(0x157),'as':_0x25ad01(0x288)}),_0x36ab12[_0x25ad01(0x222)]['belongsToMany'](_0x36ab12[_0x25ad01(0x210)],{'through':'sms_interaction_has_tags','as':_0x25ad01(0x151)}),_0x36ab12[_0x25ad01(0x222)]['belongsToMany'](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x10f),'through':_0x25ad01(0x15b),'foreignKey':_0x25ad01(0x189)}),_0x36ab12[_0x25ad01(0xda)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x1a8),'foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0xda)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x280)],{'onDelete':_0x25ad01(0x1ee),'as':_0x25ad01(0x28e)}),_0x36ab12[_0x25ad01(0xda)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x222)],{'onDelete':_0x25ad01(0x1ee),'as':_0x25ad01(0x141),'foreignKey':_0x25ad01(0x189)}),_0x36ab12[_0x25ad01(0xda)][_0x25ad01(0x27f)](_0x36ab12['SmsAccount'],{'as':_0x25ad01(0xf8),'foreignKey':'SmsAccountId'}),_0x36ab12[_0x25ad01(0x216)]['belongsToMany'](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x14e),'through':'UserSmsQueue','foreignKey':_0x25ad01(0x1be)}),_0x36ab12[_0x25ad01(0x216)]['belongsToMany'](_0x36ab12[_0x25ad01(0x116)],{'through':'team_has_sms_queues','as':'Teams'}),_0x36ab12[_0x25ad01(0xf2)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0xea)],{'as':_0x25ad01(0x2a9),'foreignKey':_0x25ad01(0xeb)}),_0x36ab12['OpenchannelAccount'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x26d)],{'as':_0x25ad01(0x26c),'foreignKey':_0x25ad01(0xeb)}),_0x36ab12['OpenchannelAccount'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x175)],{'as':_0x25ad01(0x15c),'foreignKey':'OpenchannelAccountId'}),_0x36ab12[_0x25ad01(0xf2)][_0x25ad01(0x1b5)](_0x36ab12['OpenchannelMessage'],{'as':'Messages','foreignKey':_0x25ad01(0xeb)}),_0x36ab12['OpenchannelAccount'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x269)],{'as':_0x25ad01(0x100),'foreignKey':_0x25ad01(0xeb)}),_0x36ab12[_0x25ad01(0xf2)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x168)],{'as':_0x25ad01(0x1a4),'foreignKey':_0x25ad01(0x1ab)}),_0x36ab12[_0x25ad01(0xf2)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x17d)],{'as':_0x25ad01(0x150),'foreignKey':_0x25ad01(0x241)}),_0x36ab12[_0x25ad01(0xf2)]['belongsToMany'](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x14e),'through':'user_has_openchannel_accounts'}),_0x36ab12[_0x25ad01(0x269)][_0x25ad01(0x27f)](_0x36ab12['User'],{'onDelete':_0x25ad01(0x2a8),'foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x269)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x182)],{'onDelete':_0x25ad01(0x2a8),'foreignKey':'OpenchannelQueueId'}),_0x36ab12[_0x25ad01(0x269)]['belongsTo'](_0x36ab12[_0x25ad01(0xf2)],{'onDelete':_0x25ad01(0x2a8),'foreignKey':_0x25ad01(0xeb)}),_0x36ab12['OpenchannelApplication'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x169)],{'onDelete':_0x25ad01(0x2a8),'foreignKey':_0x25ad01(0xfb)}),_0x36ab12[_0x25ad01(0x269)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x210)],{'onDelete':_0x25ad01(0x2a8),'foreignKey':_0x25ad01(0x250)}),_0x36ab12[_0x25ad01(0x175)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x19e)],{'as':'Messages','onDelete':'cascade','foreignKey':_0x25ad01(0x1a0)}),_0x36ab12['OpenchannelInteraction']['belongsTo'](_0x36ab12[_0x25ad01(0xf2)],{'as':'Account','foreignKey':_0x25ad01(0xeb)}),_0x36ab12['OpenchannelInteraction'][_0x25ad01(0x27f)](_0x36ab12['CmContact'],{'as':'Contact','foreignKey':_0x25ad01(0x108)}),_0x36ab12[_0x25ad01(0x175)]['belongsTo'](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x203),'foreignKey':'UserId'}),_0x36ab12[_0x25ad01(0x175)][_0x25ad01(0x22f)](_0x36ab12['Tag'],{'through':_0x25ad01(0x19f),'as':_0x25ad01(0x288)}),_0x36ab12[_0x25ad01(0x175)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x210)],{'through':_0x25ad01(0x19f),'as':_0x25ad01(0x151)}),_0x36ab12[_0x25ad01(0x175)]['belongsToMany'](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x10f),'through':_0x25ad01(0x123),'foreignKey':_0x25ad01(0x1a0)}),_0x36ab12[_0x25ad01(0x19e)]['belongsTo'](_0x36ab12['User'],{'onDelete':_0x25ad01(0x1ee),'as':_0x25ad01(0x1a8),'foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x19e)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x280)],{'onDelete':_0x25ad01(0x1ee),'as':_0x25ad01(0x28e),'foreignKey':_0x25ad01(0x108)}),_0x36ab12[_0x25ad01(0x19e)]['belongsTo'](_0x36ab12[_0x25ad01(0x175)],{'onDelete':_0x25ad01(0x1ee),'as':_0x25ad01(0x141),'foreignKey':_0x25ad01(0x1a0)}),_0x36ab12[_0x25ad01(0x19e)]['belongsTo'](_0x36ab12[_0x25ad01(0x289)],{'as':_0x25ad01(0x289),'foreignKey':_0x25ad01(0x11e)}),_0x36ab12[_0x25ad01(0x19e)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0xf2)],{'as':_0x25ad01(0xf8),'foreignKey':_0x25ad01(0xeb)}),_0x36ab12[_0x25ad01(0x182)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':'Agents','through':_0x25ad01(0x1c5),'foreignKey':_0x25ad01(0x145)}),_0x36ab12[_0x25ad01(0x182)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x116)],{'through':_0x25ad01(0x271),'as':_0x25ad01(0x291)}),_0x36ab12[_0x25ad01(0x191)]['hasMany'](_0x36ab12['Disposition'],{'as':'Dispositions','foreignKey':_0x25ad01(0x198)}),_0x36ab12[_0x25ad01(0x191)]['hasMany'](_0x36ab12['CannedAnswer'],{'as':_0x25ad01(0x26c),'foreignKey':_0x25ad01(0x198)}),_0x36ab12[_0x25ad01(0x191)][_0x25ad01(0x1b5)](_0x36ab12['ChatProactiveAction'],{'as':_0x25ad01(0x16f)}),_0x36ab12[_0x25ad01(0x191)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x1da)],{'as':_0x25ad01(0x15c)}),_0x36ab12[_0x25ad01(0x191)]['hasMany'](_0x36ab12[_0x25ad01(0x234)],{'as':_0x25ad01(0x100)}),_0x36ab12[_0x25ad01(0x191)][_0x25ad01(0x1b5)](_0x36ab12['ChatMessage'],{'as':_0x25ad01(0x119)}),_0x36ab12['ChatWebsite'][_0x25ad01(0x27f)](_0x36ab12['CmList'],{'as':_0x25ad01(0x1a4),'foreignKey':_0x25ad01(0x1ab)}),_0x36ab12[_0x25ad01(0x191)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x169)],{'as':_0x25ad01(0x169),'foreignKey':'IntervalId'}),_0x36ab12[_0x25ad01(0x191)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x17d)],{'as':'mandatoryDispositionPause','foreignKey':'mandatoryDispositionPauseId'}),_0x36ab12[_0x25ad01(0x191)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x14e),'through':_0x25ad01(0x2a4)}),_0x36ab12[_0x25ad01(0x2a0)]['belongsTo'](_0x36ab12[_0x25ad01(0xf2)],{'foreignKey':_0x25ad01(0xeb)}),_0x36ab12[_0x25ad01(0x2a0)]['belongsTo'](_0x36ab12['CmList'],{'as':_0x25ad01(0x1a4),'foreignKey':_0x25ad01(0x1ab)}),_0x36ab12['OpenchannelQueueReport'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x280)],{'as':_0x25ad01(0x28e),'foreignKey':'ContactId'}),_0x36ab12[_0x25ad01(0x2a0)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x175)],{'foreignKey':_0x25ad01(0x1a0)}),_0x36ab12[_0x25ad01(0x2a0)][_0x25ad01(0x27f)](_0x36ab12['OpenchannelMessage'],{'foreignKey':_0x25ad01(0x2a2)}),_0x36ab12[_0x25ad01(0x2a0)][_0x25ad01(0x27f)](_0x36ab12['User'],{'foreignKey':'UserId'}),_0x36ab12[_0x25ad01(0x2a0)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x182)],{'foreignKey':_0x25ad01(0x145)}),_0x36ab12['ChatApplication'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':'Agent','foreignKey':_0x25ad01(0x185),'onDelete':_0x25ad01(0x2a8)}),_0x36ab12[_0x25ad01(0x234)][_0x25ad01(0x27f)](_0x36ab12['ChatQueue'],{'as':_0x25ad01(0x154),'foreignKey':_0x25ad01(0x20d),'onDelete':_0x25ad01(0x2a8)}),_0x36ab12[_0x25ad01(0x234)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x191)],{'as':_0x25ad01(0x1cf),'foreignKey':_0x25ad01(0x198),'onDelete':_0x25ad01(0x2a8)}),_0x36ab12['ChatApplication'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x210)],{'onDelete':_0x25ad01(0x2a8),'foreignKey':'TagId'}),_0x36ab12['ChatInteraction'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x1c6)],{'as':'Messages','onDelete':'cascade','foreignKey':_0x25ad01(0x156)}),_0x36ab12['ChatInteraction'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x191)],{'as':_0x25ad01(0xf8),'foreignKey':'ChatWebsiteId'}),_0x36ab12[_0x25ad01(0x1da)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x280)],{'as':_0x25ad01(0x28e),'foreignKey':_0x25ad01(0x108)}),_0x36ab12[_0x25ad01(0x1da)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x203),'foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x1da)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x210)],{'through':'chat_interaction_has_tags','as':_0x25ad01(0x288)}),_0x36ab12[_0x25ad01(0x1da)]['belongsToMany'](_0x36ab12[_0x25ad01(0x210)],{'through':'chat_interaction_has_tags','as':_0x25ad01(0x151)}),_0x36ab12['ChatInteraction']['belongsToMany'](_0x36ab12[_0x25ad01(0x1a8)],{'as':'Users','through':'user_has_chat_interactions','foreignKey':'ChatInteractionId'}),_0x36ab12[_0x25ad01(0x1c6)]['belongsTo'](_0x36ab12[_0x25ad01(0x1a8)],{'onDelete':_0x25ad01(0x1ee),'as':_0x25ad01(0x1a8),'foreignKey':_0x25ad01(0x185)}),_0x36ab12['ChatMessage'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x280)],{'onDelete':_0x25ad01(0x1ee),'as':'Contact','foreignKey':_0x25ad01(0x108)}),_0x36ab12[_0x25ad01(0x1c6)][_0x25ad01(0x27f)](_0x36ab12['ChatInteraction'],{'onDelete':_0x25ad01(0x1ee),'as':_0x25ad01(0x141),'foreignKey':'ChatInteractionId'}),_0x36ab12[_0x25ad01(0x1c6)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x289)],{'as':'Attachment','foreignKey':_0x25ad01(0x11e)}),_0x36ab12[_0x25ad01(0x1c6)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x191)],{'as':_0x25ad01(0xf8),'foreignKey':'ChatWebsiteId'}),_0x36ab12[_0x25ad01(0x143)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x280)],{'onDelete':_0x25ad01(0x1ee),'as':_0x25ad01(0x28e),'foreignKey':'ContactId'}),_0x36ab12[_0x25ad01(0x143)]['belongsTo'](_0x36ab12[_0x25ad01(0x191)],{'as':'Account','foreignKey':_0x25ad01(0x198)}),_0x36ab12['ChatQueue'][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':'Agents','through':'UserChatQueue','hooks':!![]}),_0x36ab12[_0x25ad01(0x12f)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x116)],{'through':_0x25ad01(0x252),'as':_0x25ad01(0x291)}),_0x36ab12[_0x25ad01(0x27a)][_0x25ad01(0x1b5)](_0x36ab12['ChatInternalMessage'],{'as':'Messages','foreignKey':_0x25ad01(0x1e9),'onDelete':_0x25ad01(0x1ee)}),_0x36ab12['ChatGroup'][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x142),'through':_0x25ad01(0xe0)}),_0x36ab12[_0x25ad01(0x184)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x191)],{'as':'Website','foreignKey':_0x25ad01(0x198)}),_0x36ab12[_0x25ad01(0x1ed)][_0x25ad01(0x1b5)](_0x36ab12['CmContact'],{'as':_0x25ad01(0x17c),'foreignKey':'CompanyId'}),_0x36ab12[_0x25ad01(0x280)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x1bb)],{'as':_0x25ad01(0x243),'foreignKey':_0x25ad01(0x108)}),_0x36ab12[_0x25ad01(0x280)][_0x25ad01(0x1b5)](_0x36ab12['CmHopperFinal'],{'as':_0x25ad01(0x230),'foreignKey':'ContactId'}),_0x36ab12[_0x25ad01(0x280)]['hasMany'](_0x36ab12['CmHopperHistory'],{'as':_0x25ad01(0x1e6),'foreignKey':_0x25ad01(0x108)}),_0x36ab12['CmContact']['hasMany'](_0x36ab12[_0x25ad01(0x29e)],{'as':_0x25ad01(0x29e),'foreignKey':_0x25ad01(0x108)}),_0x36ab12['CmContact']['hasMany'](_0x36ab12[_0x25ad01(0x1e7)],{'as':_0x25ad01(0x140),'foreignKey':_0x25ad01(0x108)}),_0x36ab12['CmContact']['hasMany'](_0x36ab12[_0x25ad01(0x175)],{'as':_0x25ad01(0x253),'foreignKey':'ContactId','onDelete':_0x25ad01(0x2a8)}),_0x36ab12[_0x25ad01(0x280)]['hasMany'](_0x36ab12[_0x25ad01(0x1da)],{'as':_0x25ad01(0x218),'foreignKey':_0x25ad01(0x108),'onDelete':'restrict'}),_0x36ab12['CmContact'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x222)],{'as':'SmsInteractions','foreignKey':_0x25ad01(0x108),'onDelete':_0x25ad01(0x2a8)}),_0x36ab12['CmContact'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x11d)],{'as':'FaxInteractions','foreignKey':_0x25ad01(0x108),'onDelete':'restrict'}),_0x36ab12[_0x25ad01(0x280)]['hasMany'](_0x36ab12['MailInteraction'],{'as':_0x25ad01(0x147),'foreignKey':_0x25ad01(0x108),'onDelete':_0x25ad01(0x2a8)}),_0x36ab12[_0x25ad01(0x280)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1ed)],{'as':_0x25ad01(0x277),'foreignKey':_0x25ad01(0x25b)}),_0x36ab12['CmContact'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x168)],{'as':_0x25ad01(0x1a4),'foreignKey':'ListId','onDelete':'cascade'}),_0x36ab12[_0x25ad01(0x280)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x10f),'through':_0x25ad01(0x26a)}),_0x36ab12[_0x25ad01(0x280)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x210)],{'as':_0x25ad01(0x288),'through':_0x25ad01(0x22d)}),_0x36ab12[_0x25ad01(0x280)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x210)],{'through':_0x25ad01(0x22d),'as':_0x25ad01(0x151)}),_0x36ab12[_0x25ad01(0x1bb)]['belongsTo'](_0x36ab12[_0x25ad01(0x280)],{'as':_0x25ad01(0x28e),'foreignKey':'ContactId','onDelete':_0x25ad01(0x1ee)}),_0x36ab12[_0x25ad01(0x1bb)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x168)],{'as':'List','foreignKey':_0x25ad01(0x1ab),'onDelete':_0x25ad01(0x1ee)}),_0x36ab12[_0x25ad01(0x1bb)]['belongsTo'](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x14f),'foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x1bb)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x265)],{'as':_0x25ad01(0x154),'foreignKey':_0x25ad01(0x276),'onDelete':'cascade'}),_0x36ab12[_0x25ad01(0x1bb)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x290)],{'as':'Campaign','foreignKey':_0x25ad01(0x15a),'onDelete':_0x25ad01(0x1ee)}),_0x36ab12[_0x25ad01(0x1bb)]['belongsTo'](_0x36ab12['User'],{'as':_0x25ad01(0x203),'foreignKey':_0x25ad01(0x23d)}),_0x36ab12['CmHopperBlack'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x280)],{'as':_0x25ad01(0x28e),'foreignKey':_0x25ad01(0x108),'onDelete':_0x25ad01(0x1ee)}),_0x36ab12[_0x25ad01(0x22a)]['belongsTo'](_0x36ab12[_0x25ad01(0x168)],{'as':_0x25ad01(0x1a4),'foreignKey':'ListId','onDelete':_0x25ad01(0x1ee)}),_0x36ab12[_0x25ad01(0x22a)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x265)],{'as':'Queue','foreignKey':_0x25ad01(0x276),'onDelete':_0x25ad01(0x1ee)}),_0x36ab12['CmHopperBlack'][_0x25ad01(0x27f)](_0x36ab12['Campaign'],{'as':_0x25ad01(0x290),'foreignKey':_0x25ad01(0x15a),'onDelete':'cascade'}),_0x36ab12[_0x25ad01(0x12b)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x158)],{'as':{'plural':'All','singular':_0x25ad01(0x13e)},'foreignKey':_0x25ad01(0x164),'onDelete':_0x25ad01(0x1ee),'hooks':!![]}),_0x36ab12[_0x25ad01(0x12b)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x158)],{'as':{'plural':_0x25ad01(0x160),'singular':_0x25ad01(0x1ec)},'foreignKey':_0x25ad01(0x19c),'onDelete':_0x25ad01(0x1ee),'hooks':!![]}),_0x36ab12[_0x25ad01(0x12b)]['hasMany'](_0x36ab12[_0x25ad01(0x20b)],{'as':_0x25ad01(0x14c),'foreignKey':_0x25ad01(0x206),'onDelete':_0x25ad01(0x1ee),'hooks':!![]}),_0x36ab12[_0x25ad01(0xea)]['hasMany'](_0x36ab12[_0x25ad01(0xea)],{'as':_0x25ad01(0x2a9),'foreignKey':_0x25ad01(0x13b),'onDelete':_0x25ad01(0x1ee)}),_0x36ab12[_0x25ad01(0x169)][_0x25ad01(0x1b5)](_0x36ab12['Interval'],{'as':_0x25ad01(0x105),'foreignKey':_0x25ad01(0xfb),'onDelete':_0x25ad01(0x1ee),'hooks':!![]}),_0x36ab12[_0x25ad01(0x169)][_0x25ad01(0x1b5)](_0x36ab12['VoiceExtension'],{'as':_0x25ad01(0xe1),'foreignKey':_0x25ad01(0xfb),'onDelete':_0x25ad01(0x2a8)}),_0x36ab12[_0x25ad01(0x169)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x1de)],{'as':_0x25ad01(0x194),'foreignKey':_0x25ad01(0xfb)}),_0x36ab12[_0x25ad01(0x169)]['hasMany'](_0x36ab12[_0x25ad01(0x234)],{'as':'ChatApplications','foreignKey':_0x25ad01(0xfb)}),_0x36ab12['Interval'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x1c3)],{'as':'FaxApplications','foreignKey':_0x25ad01(0xfb)}),_0x36ab12['Interval'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0xdf)],{'as':_0x25ad01(0x117),'foreignKey':_0x25ad01(0xfb)}),_0x36ab12[_0x25ad01(0x24c)]['belongsTo'](_0x36ab12[_0x25ad01(0xe8)],{'foreignKey':'MailAccountId'}),_0x36ab12['Schedule'][_0x25ad01(0x27f)](_0x36ab12['AnalyticDefaultReport'],{'foreignKey':_0x25ad01(0x236)}),_0x36ab12['Schedule'][_0x25ad01(0x27f)](_0x36ab12['AnalyticCustomReport'],{'foreignKey':_0x25ad01(0x1d0)}),_0x36ab12[_0x25ad01(0x2a6)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x29f)],{'as':_0x25ad01(0x29d),'through':_0x25ad01(0x103),'onDelete':_0x25ad01(0x2a8)}),_0x36ab12[_0x25ad01(0x210)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x280)],{'through':_0x25ad01(0x22d)}),_0x36ab12['Tag'][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1da)],{'through':_0x25ad01(0x237)}),_0x36ab12[_0x25ad01(0x210)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x19d)],{'through':_0x25ad01(0x122)}),_0x36ab12[_0x25ad01(0x210)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x222)],{'through':'sms_interaction_has_tags'}),_0x36ab12[_0x25ad01(0x210)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x11d)],{'through':_0x25ad01(0x266)}),_0x36ab12[_0x25ad01(0x210)]['belongsToMany'](_0x36ab12[_0x25ad01(0x175)],{'through':'openchannel_interaction_has_tags'}),_0x36ab12['Tag'][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1bc)],{'through':_0x25ad01(0x10d)}),_0x36ab12[_0x25ad01(0x23b)]['hasMany'](_0x36ab12[_0x25ad01(0x158)],{'as':{'plural':_0x25ad01(0x10b),'singular':'AllCondition'},'foreignKey':_0x25ad01(0x260),'onDelete':_0x25ad01(0x1ee),'hooks':!![]}),_0x36ab12[_0x25ad01(0x23b)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x158)],{'as':{'plural':_0x25ad01(0x138),'singular':_0x25ad01(0x12c)},'foreignKey':'TriggerAnyId','onDelete':'cascade','hooks':!![]}),_0x36ab12[_0x25ad01(0x23b)]['hasMany'](_0x36ab12[_0x25ad01(0x20b)],{'as':_0x25ad01(0x14c),'foreignKey':_0x25ad01(0x284),'onDelete':_0x25ad01(0x1ee),'hooks':!![]}),_0x36ab12['AnalyticCustomReport'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x211)],{'as':_0x25ad01(0x21a),'onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x1d0),'hooks':!![]}),_0x36ab12[_0x25ad01(0xe7)][_0x25ad01(0x1b5)](_0x36ab12['AnalyticFieldReport'],{'as':'Fields','onDelete':_0x25ad01(0x1ee),'foreignKey':'DefaultReportId'}),_0x36ab12[_0x25ad01(0xd8)]['hasMany'](_0x36ab12[_0x25ad01(0x211)],{'as':_0x25ad01(0x21a),'onDelete':'cascade','foreignKey':_0x25ad01(0xf6)}),_0x36ab12['AnalyticFieldReport'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0xd8)],{'foreignKey':_0x25ad01(0xf6)}),_0x36ab12[_0x25ad01(0x186)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x24f)],{'as':_0x25ad01(0xe5),'onDelete':_0x25ad01(0x1ee),'foreignKey':'AccountId'}),_0x36ab12[_0x25ad01(0x24f)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x102)],{'as':'Subjects','onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x256)}),_0x36ab12[_0x25ad01(0x24f)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x102)],{'as':'Descriptions','onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x21e)}),_0x36ab12['SalesforceConfiguration'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x102)],{'as':_0x25ad01(0x21a),'onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x111)}),_0x36ab12[_0x25ad01(0x24f)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x186)],{'as':_0x25ad01(0xf8),'foreignKey':_0x25ad01(0x1b0)}),_0x36ab12['SalesforceField']['hasMany'](_0x36ab12[_0x25ad01(0x102)],{'as':_0x25ad01(0x20e),'foreignKey':_0x25ad01(0x256)}),_0x36ab12[_0x25ad01(0x102)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x102)],{'as':_0x25ad01(0x204),'foreignKey':'DescriptionId'}),_0x36ab12[_0x25ad01(0x102)]['hasMany'](_0x36ab12[_0x25ad01(0x102)],{'as':_0x25ad01(0x107),'foreignKey':_0x25ad01(0x111)}),_0x36ab12['SalesforceField'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x183)],{'as':_0x25ad01(0x183),'foreignKey':'VariableId'}),_0x36ab12['SugarcrmAccount'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x257)],{'as':'Configurations','onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x1b0)}),_0x36ab12['SugarcrmConfiguration'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x22e)],{'as':_0x25ad01(0x287),'onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x256)}),_0x36ab12[_0x25ad01(0x257)]['hasMany'](_0x36ab12[_0x25ad01(0x22e)],{'as':_0x25ad01(0x115),'onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x21e)}),_0x36ab12[_0x25ad01(0x257)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x22e)],{'as':_0x25ad01(0x21a),'onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x111)}),_0x36ab12[_0x25ad01(0x257)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x255)],{'as':_0x25ad01(0xf8),'foreignKey':'AccountId'}),_0x36ab12['SugarcrmField']['hasMany'](_0x36ab12[_0x25ad01(0x22e)],{'as':_0x25ad01(0x20e),'foreignKey':_0x25ad01(0x256)}),_0x36ab12[_0x25ad01(0x22e)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x22e)],{'as':_0x25ad01(0x204),'foreignKey':_0x25ad01(0x21e)}),_0x36ab12['SugarcrmField'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x22e)],{'as':_0x25ad01(0x107),'foreignKey':_0x25ad01(0x111)}),_0x36ab12[_0x25ad01(0x22e)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x183)],{'as':_0x25ad01(0x183),'foreignKey':_0x25ad01(0x1b9)}),_0x36ab12[_0x25ad01(0x20a)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x106)],{'as':_0x25ad01(0xe5),'onDelete':'cascade','foreignKey':'AccountId'}),_0x36ab12[_0x25ad01(0x106)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x127)],{'as':'Subjects','onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x256)}),_0x36ab12[_0x25ad01(0x106)]['hasMany'](_0x36ab12[_0x25ad01(0x127)],{'as':_0x25ad01(0x115),'onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x21e)}),_0x36ab12[_0x25ad01(0x106)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x127)],{'as':_0x25ad01(0x21a),'onDelete':_0x25ad01(0x1ee),'foreignKey':'FieldId'}),_0x36ab12[_0x25ad01(0x106)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x20a)],{'as':_0x25ad01(0xf8),'foreignKey':_0x25ad01(0x1b0)}),_0x36ab12[_0x25ad01(0x106)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x210)],{'through':_0x25ad01(0xfe)}),_0x36ab12[_0x25ad01(0x127)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x127)],{'as':_0x25ad01(0x20e),'foreignKey':_0x25ad01(0x256)}),_0x36ab12[_0x25ad01(0x127)][_0x25ad01(0x1b5)](_0x36ab12['DeskField'],{'as':_0x25ad01(0x204),'foreignKey':_0x25ad01(0x21e)}),_0x36ab12[_0x25ad01(0x127)][_0x25ad01(0x1b5)](_0x36ab12['DeskField'],{'as':_0x25ad01(0x107),'foreignKey':_0x25ad01(0x111)}),_0x36ab12[_0x25ad01(0x127)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x183)],{'as':_0x25ad01(0x183),'foreignKey':_0x25ad01(0x1b9)}),_0x36ab12['ZohoAccount'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x2ad)],{'as':_0x25ad01(0xe5),'onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x1b0)}),_0x36ab12[_0x25ad01(0x2ad)][_0x25ad01(0x1b5)](_0x36ab12['ZohoField'],{'as':_0x25ad01(0x287),'onDelete':'cascade','foreignKey':_0x25ad01(0x256)}),_0x36ab12[_0x25ad01(0x2ad)]['hasMany'](_0x36ab12[_0x25ad01(0x129)],{'as':_0x25ad01(0x115),'onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x21e)}),_0x36ab12['ZohoConfiguration'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x129)],{'as':_0x25ad01(0x21a),'onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x111)}),_0x36ab12[_0x25ad01(0x2ad)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x27d)],{'as':'Account','foreignKey':_0x25ad01(0x1b0)}),_0x36ab12[_0x25ad01(0x129)][_0x25ad01(0x1b5)](_0x36ab12['ZohoField'],{'as':_0x25ad01(0x20e),'foreignKey':_0x25ad01(0x256)}),_0x36ab12['ZohoField'][_0x25ad01(0x1b5)](_0x36ab12['ZohoField'],{'as':_0x25ad01(0x204),'foreignKey':_0x25ad01(0x21e)}),_0x36ab12['ZohoField'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x129)],{'as':_0x25ad01(0x107),'foreignKey':_0x25ad01(0x111)}),_0x36ab12['ZohoField']['belongsTo'](_0x36ab12[_0x25ad01(0x183)],{'as':_0x25ad01(0x183),'foreignKey':_0x25ad01(0x1b9)}),_0x36ab12[_0x25ad01(0x28d)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x15f)],{'as':_0x25ad01(0xe5),'onDelete':'cascade','foreignKey':_0x25ad01(0x1b0)}),_0x36ab12[_0x25ad01(0x15f)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x24b)],{'as':_0x25ad01(0x287),'foreignKey':'SubjectId'}),_0x36ab12[_0x25ad01(0x15f)]['hasMany'](_0x36ab12[_0x25ad01(0x24b)],{'as':'Descriptions','foreignKey':_0x25ad01(0x21e)}),_0x36ab12[_0x25ad01(0x15f)]['hasMany'](_0x36ab12[_0x25ad01(0x24b)],{'as':_0x25ad01(0x21a),'foreignKey':_0x25ad01(0x111)}),_0x36ab12[_0x25ad01(0x15f)]['belongsTo'](_0x36ab12[_0x25ad01(0x28d)],{'as':_0x25ad01(0xf8),'foreignKey':_0x25ad01(0x1b0)}),_0x36ab12[_0x25ad01(0x15f)]['belongsToMany'](_0x36ab12['Tag'],{'through':_0x25ad01(0x26b)}),_0x36ab12['ZendeskField'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x24b)],{'as':_0x25ad01(0x20e),'foreignKey':_0x25ad01(0x256)}),_0x36ab12[_0x25ad01(0x24b)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x24b)],{'as':_0x25ad01(0x204),'foreignKey':_0x25ad01(0x21e)}),_0x36ab12['ZendeskField'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x24b)],{'as':'Field','foreignKey':'FieldId'}),_0x36ab12['ZendeskField'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x183)],{'as':_0x25ad01(0x183),'foreignKey':_0x25ad01(0x1b9)}),_0x36ab12['FreshdeskAccount']['hasMany'](_0x36ab12['FreshdeskConfiguration'],{'as':_0x25ad01(0xe5),'onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x1b0)}),_0x36ab12[_0x25ad01(0xef)][_0x25ad01(0x1b5)](_0x36ab12['FreshdeskField'],{'as':'Subjects','onDelete':'cascade','foreignKey':_0x25ad01(0x256)}),_0x36ab12[_0x25ad01(0xef)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x26e)],{'as':_0x25ad01(0x115),'onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x21e)}),_0x36ab12[_0x25ad01(0xef)][_0x25ad01(0x1b5)](_0x36ab12['FreshdeskField'],{'as':'Fields','onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x111)}),_0x36ab12[_0x25ad01(0xef)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x137)],{'as':_0x25ad01(0xf8),'foreignKey':'AccountId'}),_0x36ab12['FreshdeskConfiguration']['belongsToMany'](_0x36ab12['Tag'],{'through':_0x25ad01(0x268)}),_0x36ab12['FreshdeskField'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x26e)],{'as':_0x25ad01(0x20e),'foreignKey':_0x25ad01(0x256)}),_0x36ab12['FreshdeskField'][_0x25ad01(0x1b5)](_0x36ab12['FreshdeskField'],{'as':_0x25ad01(0x204),'foreignKey':'DescriptionId'}),_0x36ab12[_0x25ad01(0x26e)][_0x25ad01(0x1b5)](_0x36ab12['FreshdeskField'],{'as':_0x25ad01(0x107),'foreignKey':_0x25ad01(0x111)}),_0x36ab12[_0x25ad01(0x26e)][_0x25ad01(0x27f)](_0x36ab12['Variable'],{'as':_0x25ad01(0x183),'foreignKey':'VariableId'}),_0x36ab12[_0x25ad01(0x27b)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0xfa)],{'as':'Configurations','onDelete':_0x25ad01(0x1ee),'foreignKey':'AccountId'}),_0x36ab12[_0x25ad01(0xfa)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x126)],{'as':_0x25ad01(0x287),'foreignKey':'SubjectId'}),_0x36ab12['VtigerConfiguration'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x126)],{'as':_0x25ad01(0x115),'foreignKey':_0x25ad01(0x21e)}),_0x36ab12[_0x25ad01(0xfa)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x126)],{'as':_0x25ad01(0x21a),'foreignKey':_0x25ad01(0x111)}),_0x36ab12[_0x25ad01(0xfa)]['belongsTo'](_0x36ab12[_0x25ad01(0x27b)],{'as':'Account','foreignKey':_0x25ad01(0x1b0)}),_0x36ab12[_0x25ad01(0x126)][_0x25ad01(0x1b5)](_0x36ab12['VtigerField'],{'as':_0x25ad01(0x20e),'foreignKey':_0x25ad01(0x256)}),_0x36ab12['VtigerField'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x126)],{'as':'Description','foreignKey':_0x25ad01(0x21e)}),_0x36ab12[_0x25ad01(0x126)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x126)],{'as':_0x25ad01(0x107),'foreignKey':'FieldId'}),_0x36ab12[_0x25ad01(0x126)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x183)],{'as':'Variable','foreignKey':'VariableId'}),_0x36ab12[_0x25ad01(0x170)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x1f3)],{'as':'Configurations','onDelete':_0x25ad01(0x1ee),'foreignKey':'AccountId'}),_0x36ab12[_0x25ad01(0x1f3)][_0x25ad01(0x1b5)](_0x36ab12['ServicenowField'],{'as':_0x25ad01(0x287),'foreignKey':_0x25ad01(0x256)}),_0x36ab12[_0x25ad01(0x1f3)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x12e)],{'as':_0x25ad01(0x115),'foreignKey':_0x25ad01(0x21e)}),_0x36ab12[_0x25ad01(0x1f3)][_0x25ad01(0x1b5)](_0x36ab12['ServicenowField'],{'as':_0x25ad01(0x21a),'foreignKey':_0x25ad01(0x111)}),_0x36ab12[_0x25ad01(0x1f3)]['belongsTo'](_0x36ab12['ServicenowAccount'],{'as':_0x25ad01(0xf8),'foreignKey':_0x25ad01(0x1b0)}),_0x36ab12[_0x25ad01(0x12e)][_0x25ad01(0x1b5)](_0x36ab12['ServicenowField'],{'as':_0x25ad01(0x20e),'foreignKey':_0x25ad01(0x256)}),_0x36ab12[_0x25ad01(0x12e)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x12e)],{'as':_0x25ad01(0x204),'foreignKey':_0x25ad01(0x21e)}),_0x36ab12[_0x25ad01(0x12e)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x12e)],{'as':'Field','foreignKey':_0x25ad01(0x111)}),_0x36ab12[_0x25ad01(0x12e)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x183)],{'as':_0x25ad01(0x183),'foreignKey':_0x25ad01(0x1b9)}),_0x36ab12[_0x25ad01(0x219)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x179)],{'as':_0x25ad01(0xe5),'onDelete':'cascade','foreignKey':'AccountId'}),_0x36ab12[_0x25ad01(0x179)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x229)],{'as':_0x25ad01(0x287),'onDelete':'cascade','foreignKey':_0x25ad01(0x256)}),_0x36ab12[_0x25ad01(0x179)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x229)],{'as':_0x25ad01(0x115),'onDelete':_0x25ad01(0x1ee),'foreignKey':'DescriptionId'}),_0x36ab12[_0x25ad01(0x179)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x229)],{'as':'Fields','onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x111)}),_0x36ab12['Dynamics365Configuration']['belongsTo'](_0x36ab12[_0x25ad01(0x219)],{'as':'Account','foreignKey':'AccountId'}),_0x36ab12['Dynamics365Field'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x229)],{'as':'Subject','foreignKey':_0x25ad01(0x256)}),_0x36ab12['Dynamics365Field'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x229)],{'as':_0x25ad01(0x204),'foreignKey':'DescriptionId'}),_0x36ab12[_0x25ad01(0x229)]['hasMany'](_0x36ab12['Dynamics365Field'],{'as':_0x25ad01(0x107),'foreignKey':'FieldId'}),_0x36ab12[_0x25ad01(0x229)][_0x25ad01(0x27f)](_0x36ab12['Variable'],{'as':_0x25ad01(0x183),'foreignKey':_0x25ad01(0x1b9)}),_0x36ab12[_0x25ad01(0xdc)]['hasMany'](_0x36ab12[_0x25ad01(0x16b)],{'as':_0x25ad01(0xe5),'onDelete':'cascade','foreignKey':_0x25ad01(0x1b0)}),_0x36ab12['FreshsalesConfiguration'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x262)],{'as':_0x25ad01(0x287),'foreignKey':_0x25ad01(0x256)}),_0x36ab12['FreshsalesConfiguration']['hasMany'](_0x36ab12[_0x25ad01(0x262)],{'as':'Descriptions','foreignKey':'DescriptionId'}),_0x36ab12['FreshsalesConfiguration']['hasMany'](_0x36ab12[_0x25ad01(0x262)],{'as':_0x25ad01(0x21a),'foreignKey':'FieldId'}),_0x36ab12['FreshsalesConfiguration'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0xdc)],{'as':_0x25ad01(0xf8),'foreignKey':_0x25ad01(0x1b0)}),_0x36ab12[_0x25ad01(0x262)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x262)],{'as':'Subject','foreignKey':'SubjectId'}),_0x36ab12[_0x25ad01(0x262)][_0x25ad01(0x1b5)](_0x36ab12['FreshsalesField'],{'as':_0x25ad01(0x204),'foreignKey':'DescriptionId'}),_0x36ab12[_0x25ad01(0x262)]['hasMany'](_0x36ab12[_0x25ad01(0x262)],{'as':_0x25ad01(0x107),'foreignKey':_0x25ad01(0x111)}),_0x36ab12['FreshsalesField'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x183)],{'as':_0x25ad01(0x183),'foreignKey':_0x25ad01(0x1b9)}),_0x36ab12['ChatQueueReport'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x191)],{}),_0x36ab12['ChatQueueReport'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x168)],{'as':_0x25ad01(0x1a4),'foreignKey':_0x25ad01(0x1ab)}),_0x36ab12[_0x25ad01(0xdb)]['belongsTo'](_0x36ab12[_0x25ad01(0x280)],{'as':'Contact','foreignKey':_0x25ad01(0x108)}),_0x36ab12[_0x25ad01(0xdb)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1da)],{'foreignKey':'ChatInteractionId'}),_0x36ab12[_0x25ad01(0xdb)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1c6)],{'foreignKey':_0x25ad01(0x299)}),_0x36ab12['ChatQueueReport'][_0x25ad01(0x27f)](_0x36ab12['User'],{'foreignKey':_0x25ad01(0x185)}),_0x36ab12['ChatQueueReport']['belongsTo'](_0x36ab12[_0x25ad01(0x12f)],{'foreignKey':'ChatQueueId'}),_0x36ab12[_0x25ad01(0xff)]['belongsTo'](_0x36ab12['User'],{'onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x11a)}),_0x36ab12[_0x25ad01(0xff)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0xd9)}),_0x36ab12[_0x25ad01(0x1e7)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x139)],{'foreignKey':_0x25ad01(0x1f9),'onDelete':'cascade'}),_0x36ab12['JscriptySessionReport'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0xf9)],{'foreignKey':_0x25ad01(0x1f9),'onDelete':_0x25ad01(0x1ee)}),_0x36ab12[_0x25ad01(0x1ff)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x165)],{'foreignKey':'SmsAccountId'}),_0x36ab12[_0x25ad01(0x1ff)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x168)],{'as':_0x25ad01(0x1a4),'foreignKey':_0x25ad01(0x1ab)}),_0x36ab12['SmsQueueReport'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x280)],{'as':_0x25ad01(0x28e),'foreignKey':_0x25ad01(0x108)}),_0x36ab12[_0x25ad01(0x1ff)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x222)],{'foreignKey':_0x25ad01(0x189)}),_0x36ab12['SmsQueueReport'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0xda)],{'foreignKey':'SmsMessageId'}),_0x36ab12['SmsQueueReport'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x1ff)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x216)],{'foreignKey':_0x25ad01(0x1be)}),_0x36ab12['JscriptyProject'][_0x25ad01(0x1b5)](_0x36ab12['JscriptySessionReport'],{'foreignKey':'ProjectId'}),_0x36ab12[_0x25ad01(0x258)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x139)],{'foreignKey':'ProjectId'}),_0x36ab12[_0x25ad01(0x258)][_0x25ad01(0x1b5)](_0x36ab12['JscriptyAnswerReport'],{'foreignKey':_0x25ad01(0x29a)}),_0x36ab12[_0x25ad01(0x134)][_0x25ad01(0x22f)](_0x36ab12['User'],{'as':_0x25ad01(0x10f),'through':'user_has_square_projects'}),_0x36ab12['Team'][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x14e),'through':_0x25ad01(0x190)}),_0x36ab12[_0x25ad01(0x116)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x265)],{'through':_0x25ad01(0xf1),'as':_0x25ad01(0x187)}),_0x36ab12['Team'][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x254)],{'through':_0x25ad01(0x10e),'as':_0x25ad01(0x2a7)}),_0x36ab12[_0x25ad01(0x116)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x12f)],{'through':_0x25ad01(0x252),'as':_0x25ad01(0x1b1)}),_0x36ab12[_0x25ad01(0x116)]['belongsToMany'](_0x36ab12[_0x25ad01(0x209)],{'through':_0x25ad01(0x2ac),'as':_0x25ad01(0x144)}),_0x36ab12[_0x25ad01(0x116)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x216)],{'through':_0x25ad01(0x14a),'as':_0x25ad01(0x177)}),_0x36ab12[_0x25ad01(0x116)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x182)],{'through':_0x25ad01(0x271),'as':'OpenchannelQueues'}),_0x36ab12['Team'][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x227)],{'through':_0x25ad01(0x281),'as':'WhatsappQueues'}),_0x36ab12[_0x25ad01(0x290)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x1bb)],{'as':_0x25ad01(0x243),'foreignKey':_0x25ad01(0x15a)}),_0x36ab12['Campaign']['hasMany'](_0x36ab12[_0x25ad01(0x1c4)],{'as':_0x25ad01(0x230),'foreignKey':_0x25ad01(0x15a)}),_0x36ab12['Campaign'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x225)],{'as':_0x25ad01(0x1e6),'foreignKey':_0x25ad01(0x15a)}),_0x36ab12[_0x25ad01(0x290)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x22a)],{'as':'HopperBlacks','foreignKey':_0x25ad01(0x15a)}),_0x36ab12['Campaign'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x13f)],{'as':'Trunk','foreignKey':_0x25ad01(0x196)}),_0x36ab12['Campaign'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x13f)],{'as':_0x25ad01(0x215),'foreignKey':_0x25ad01(0x1af)}),_0x36ab12[_0x25ad01(0x290)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x169)],{'as':_0x25ad01(0x169),'foreignKey':_0x25ad01(0xfb)}),_0x36ab12[_0x25ad01(0x290)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x134)],{'as':_0x25ad01(0x134),'foreignKey':_0x25ad01(0xed)}),_0x36ab12[_0x25ad01(0x290)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x168)],{'as':_0x25ad01(0xf4),'through':_0x25ad01(0x1f6)}),_0x36ab12['Campaign']['belongsToMany'](_0x36ab12[_0x25ad01(0x168)],{'as':_0x25ad01(0x213),'through':'campaigns_has_cm_blacklists'}),_0x36ab12[_0x25ad01(0x249)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x16d)],{'foreignKey':_0x25ad01(0x23c)}),_0x36ab12[_0x25ad01(0x249)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x19d)],{'foreignKey':_0x25ad01(0x125)}),_0x36ab12['MailTransferReport'][_0x25ad01(0x27f)](_0x36ab12['MailAccount'],{'foreignKey':_0x25ad01(0x1ae),'as':_0x25ad01(0x1c9)}),_0x36ab12[_0x25ad01(0x249)][_0x25ad01(0x27f)](_0x36ab12['User'],{'foreignKey':_0x25ad01(0x1cd),'as':_0x25ad01(0x21b)}),_0x36ab12[_0x25ad01(0x249)]['belongsTo'](_0x36ab12[_0x25ad01(0x1a8)],{'foreignKey':_0x25ad01(0x2ae),'as':_0x25ad01(0xf5)}),_0x36ab12['MailTransferReport']['belongsTo'](_0x36ab12[_0x25ad01(0x254)],{'foreignKey':_0x25ad01(0x1f4),'as':_0x25ad01(0x181)}),_0x36ab12[_0x25ad01(0x249)][_0x25ad01(0x27f)](_0x36ab12['MailAccount'],{'foreignKey':_0x25ad01(0x135),'as':_0x25ad01(0x217)}),_0x36ab12['ChatTransferReport']['belongsTo'](_0x36ab12[_0x25ad01(0x1c6)],{'foreignKey':_0x25ad01(0x299)}),_0x36ab12[_0x25ad01(0x146)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1da)],{'foreignKey':'ChatInteractionId'}),_0x36ab12[_0x25ad01(0x146)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x191)],{'foreignKey':'FromChatWebsiteId','as':_0x25ad01(0x1c9)}),_0x36ab12[_0x25ad01(0x146)][_0x25ad01(0x27f)](_0x36ab12['User'],{'foreignKey':_0x25ad01(0x1cd),'as':_0x25ad01(0x21b)}),_0x36ab12['ChatTransferReport'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'foreignKey':_0x25ad01(0x2ae),'as':_0x25ad01(0xf5)}),_0x36ab12[_0x25ad01(0x146)]['belongsTo'](_0x36ab12['ChatQueue'],{'foreignKey':'ToChatQueueId','as':_0x25ad01(0x181)}),_0x36ab12['ChatTransferReport'][_0x25ad01(0x27f)](_0x36ab12['ChatWebsite'],{'foreignKey':_0x25ad01(0x1dc),'as':_0x25ad01(0x217)}),_0x36ab12[_0x25ad01(0x1b3)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0xf0)],{'foreignKey':'FaxMessageId'}),_0x36ab12[_0x25ad01(0x1b3)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x11d)],{'foreignKey':'FaxInteractionId'}),_0x36ab12[_0x25ad01(0x1b3)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x13a)],{'foreignKey':_0x25ad01(0x1ca),'as':'FromAccount'}),_0x36ab12[_0x25ad01(0x1b3)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'foreignKey':_0x25ad01(0x1cd),'as':_0x25ad01(0x21b)}),_0x36ab12[_0x25ad01(0x1b3)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'foreignKey':_0x25ad01(0x2ae),'as':_0x25ad01(0xf5)}),_0x36ab12['FaxTransferReport'][_0x25ad01(0x27f)](_0x36ab12['FaxQueue'],{'foreignKey':_0x25ad01(0x15d),'as':'ToQueue'}),_0x36ab12[_0x25ad01(0x1b3)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x13a)],{'foreignKey':_0x25ad01(0x235),'as':_0x25ad01(0x217)}),_0x36ab12[_0x25ad01(0x20c)]['belongsTo'](_0x36ab12[_0x25ad01(0x19e)],{'foreignKey':_0x25ad01(0x2a2)}),_0x36ab12[_0x25ad01(0x20c)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x175)],{'foreignKey':_0x25ad01(0x1a0)}),_0x36ab12[_0x25ad01(0x20c)][_0x25ad01(0x27f)](_0x36ab12['OpenchannelAccount'],{'foreignKey':_0x25ad01(0x1f8),'as':_0x25ad01(0x1c9)}),_0x36ab12[_0x25ad01(0x20c)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'foreignKey':_0x25ad01(0x1cd),'as':_0x25ad01(0x21b)}),_0x36ab12[_0x25ad01(0x20c)]['belongsTo'](_0x36ab12['User'],{'foreignKey':'ToUserId','as':_0x25ad01(0xf5)}),_0x36ab12['OpenchannelTransferReport']['belongsTo'](_0x36ab12[_0x25ad01(0x182)],{'foreignKey':'ToOpenchannelQueueId','as':'ToQueue'}),_0x36ab12[_0x25ad01(0x20c)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0xf2)],{'foreignKey':'ToOpenchannelAccountId','as':_0x25ad01(0x217)}),_0x36ab12['SmsTransferReport'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0xda)],{'foreignKey':_0x25ad01(0x295)}),_0x36ab12['SmsTransferReport']['belongsTo'](_0x36ab12[_0x25ad01(0x222)],{'foreignKey':_0x25ad01(0x189)}),_0x36ab12[_0x25ad01(0x152)]['belongsTo'](_0x36ab12[_0x25ad01(0x165)],{'foreignKey':_0x25ad01(0x124),'as':_0x25ad01(0x1c9)}),_0x36ab12[_0x25ad01(0x152)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'foreignKey':_0x25ad01(0x1cd),'as':_0x25ad01(0x21b)}),_0x36ab12[_0x25ad01(0x152)]['belongsTo'](_0x36ab12[_0x25ad01(0x1a8)],{'foreignKey':_0x25ad01(0x2ae),'as':'ToAgent'}),_0x36ab12['SmsTransferReport'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x216)],{'foreignKey':_0x25ad01(0x199),'as':'ToQueue'}),_0x36ab12[_0x25ad01(0x152)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x165)],{'foreignKey':_0x25ad01(0x1f0),'as':_0x25ad01(0x217)}),_0x36ab12[_0x25ad01(0x168)]['hasMany'](_0x36ab12[_0x25ad01(0xea)],{'as':'Dispositions','foreignKey':_0x25ad01(0x1ab)}),_0x36ab12[_0x25ad01(0x168)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x20f)],{'as':'CustomFields','foreignKey':_0x25ad01(0x1ab)}),_0x36ab12['CmList'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x280)],{'as':'Contacts','onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x1ab)}),_0x36ab12[_0x25ad01(0x168)][_0x25ad01(0x1b5)](_0x36ab12['CmHopperFinal'],{'as':_0x25ad01(0x230),'foreignKey':_0x25ad01(0x1ab)}),_0x36ab12[_0x25ad01(0x168)]['hasMany'](_0x36ab12[_0x25ad01(0x225)],{'as':_0x25ad01(0x1aa),'foreignKey':'ListId'}),_0x36ab12[_0x25ad01(0x168)]['hasMany'](_0x36ab12[_0x25ad01(0x29e)],{'as':_0x25ad01(0x29e),'foreignKey':_0x25ad01(0x1ab)}),_0x36ab12['CmList']['belongsToMany'](_0x36ab12['VoiceQueue'],{'as':_0x25ad01(0x292),'through':_0x25ad01(0x2a3)}),_0x36ab12[_0x25ad01(0x168)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x14e),'through':_0x25ad01(0x263)}),_0x36ab12[_0x25ad01(0x1b6)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x28c)],{'as':_0x25ad01(0xe1),'onDelete':'cascade'}),_0x36ab12[_0x25ad01(0x1b6)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x14e),'through':'user_has_voice_prefixes'}),_0x36ab12[_0x25ad01(0x2a1)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x10f),'foreignKey':_0x25ad01(0x1b8)}),_0x36ab12[_0x25ad01(0x2a1)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x195)],{'as':'UserProfileSections','foreignKey':'userProfileId','onDelete':'cascade'}),_0x36ab12[_0x25ad01(0x195)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x10c)],{'as':_0x25ad01(0x228),'foreignKey':_0x25ad01(0x1d6),'onDelete':_0x25ad01(0x1ee)}),_0x36ab12[_0x25ad01(0x1a6)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0xea)],{'as':_0x25ad01(0x2a9),'foreignKey':_0x25ad01(0x21c)}),_0x36ab12['WhatsappAccount'][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x26d)],{'as':_0x25ad01(0x26c),'foreignKey':_0x25ad01(0x21c)}),_0x36ab12[_0x25ad01(0x1a6)][_0x25ad01(0x1b5)](_0x36ab12[_0x25ad01(0x25a)],{'as':'Messages','foreignKey':_0x25ad01(0x21c)}),_0x36ab12[_0x25ad01(0x1a6)][_0x25ad01(0x1b5)](_0x36ab12['WhatsappInteraction'],{'as':_0x25ad01(0x15c)}),_0x36ab12['WhatsappAccount']['hasMany'](_0x36ab12[_0x25ad01(0x242)],{'as':_0x25ad01(0x100)}),_0x36ab12[_0x25ad01(0x1a6)]['belongsTo'](_0x36ab12[_0x25ad01(0x168)],{'as':'List','foreignKey':_0x25ad01(0x1ab)}),_0x36ab12[_0x25ad01(0x1a6)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x17d)],{'as':_0x25ad01(0x150),'foreignKey':_0x25ad01(0x241)}),_0x36ab12[_0x25ad01(0x1a6)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x14e),'through':_0x25ad01(0x176)}),_0x36ab12[_0x25ad01(0x242)]['belongsTo'](_0x36ab12['User'],{'onDelete':_0x25ad01(0x2a8),'foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x242)]['belongsTo'](_0x36ab12['WhatsappQueue'],{'onDelete':_0x25ad01(0x2a8),'foreignKey':_0x25ad01(0x1d5)}),_0x36ab12[_0x25ad01(0x242)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a6)],{'onDelete':'restrict','foreignKey':_0x25ad01(0x21c)}),_0x36ab12['WhatsappApplication'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x169)],{'onDelete':'restrict','foreignKey':_0x25ad01(0xfb)}),_0x36ab12[_0x25ad01(0x242)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x210)],{'onDelete':_0x25ad01(0x2a8),'foreignKey':_0x25ad01(0x250)}),_0x36ab12[_0x25ad01(0x1bc)]['hasMany'](_0x36ab12[_0x25ad01(0x25a)],{'as':_0x25ad01(0x119),'onDelete':_0x25ad01(0x1ee),'foreignKey':_0x25ad01(0x1d1)}),_0x36ab12['WhatsappInteraction'][_0x25ad01(0x27f)](_0x36ab12['WhatsappAccount'],{'as':_0x25ad01(0xf8),'foreignKey':_0x25ad01(0x21c)}),_0x36ab12[_0x25ad01(0x1bc)][_0x25ad01(0x27f)](_0x36ab12['CmContact'],{'as':_0x25ad01(0x28e),'foreignKey':_0x25ad01(0x108)}),_0x36ab12['WhatsappInteraction'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':'Owner','foreignKey':_0x25ad01(0x185)}),_0x36ab12[_0x25ad01(0x1bc)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x210)],{'through':'whatsapp_interaction_has_tags','as':_0x25ad01(0x288)}),_0x36ab12['WhatsappInteraction']['belongsToMany'](_0x36ab12[_0x25ad01(0x210)],{'through':_0x25ad01(0x10d),'as':_0x25ad01(0x151)}),_0x36ab12[_0x25ad01(0x1bc)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x10f),'through':_0x25ad01(0xf3),'foreignKey':'WhatsappInteractionId'}),_0x36ab12[_0x25ad01(0x25a)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':'User','foreignKey':'UserId'}),_0x36ab12[_0x25ad01(0x25a)][_0x25ad01(0x27f)](_0x36ab12['CmContact'],{'onDelete':_0x25ad01(0x1ee),'as':_0x25ad01(0x28e),'foreignKey':'ContactId'}),_0x36ab12[_0x25ad01(0x25a)]['belongsTo'](_0x36ab12[_0x25ad01(0x1bc)],{'onDelete':_0x25ad01(0x1ee),'as':_0x25ad01(0x141),'foreignKey':'WhatsappInteractionId'}),_0x36ab12[_0x25ad01(0x25a)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a6)],{'as':'Account','foreignKey':_0x25ad01(0x21c)}),_0x36ab12[_0x25ad01(0x161)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a6)],{'foreignKey':_0x25ad01(0x21c)}),_0x36ab12['WhatsappQueueReport'][_0x25ad01(0x27f)](_0x36ab12['CmList'],{'as':_0x25ad01(0x1a4),'foreignKey':_0x25ad01(0x1ab)}),_0x36ab12[_0x25ad01(0x161)][_0x25ad01(0x27f)](_0x36ab12['CmContact'],{'as':_0x25ad01(0x28e),'foreignKey':_0x25ad01(0x108)}),_0x36ab12[_0x25ad01(0x161)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1bc)],{'foreignKey':_0x25ad01(0x1d1)}),_0x36ab12[_0x25ad01(0x161)][_0x25ad01(0x27f)](_0x36ab12['WhatsappQueue'],{'foreignKey':_0x25ad01(0x1d5)}),_0x36ab12[_0x25ad01(0x161)]['belongsTo'](_0x36ab12['WhatsappMessage'],{'foreignKey':_0x25ad01(0x21f)}),_0x36ab12[_0x25ad01(0x161)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'foreignKey':_0x25ad01(0x185)}),_0x36ab12['WhatsappTransferReport'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x25a)],{'foreignKey':_0x25ad01(0x21f)}),_0x36ab12['WhatsappTransferReport'][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1bc)],{'foreignKey':_0x25ad01(0x1d1)}),_0x36ab12[_0x25ad01(0x1d7)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a6)],{'foreignKey':_0x25ad01(0x275),'as':_0x25ad01(0x1c9)}),_0x36ab12[_0x25ad01(0x1d7)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a6)],{'foreignKey':_0x25ad01(0x2a5),'as':_0x25ad01(0x217)}),_0x36ab12[_0x25ad01(0x1d7)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x227)],{'foreignKey':_0x25ad01(0x220),'as':_0x25ad01(0x181)}),_0x36ab12[_0x25ad01(0x1d7)]['belongsTo'](_0x36ab12[_0x25ad01(0x1a8)],{'foreignKey':_0x25ad01(0x1cd),'as':_0x25ad01(0x21b)}),_0x36ab12[_0x25ad01(0x1d7)][_0x25ad01(0x27f)](_0x36ab12[_0x25ad01(0x1a8)],{'foreignKey':_0x25ad01(0x2ae),'as':_0x25ad01(0xf5)}),_0x36ab12['WhatsappQueue'][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x1a8)],{'as':_0x25ad01(0x14e),'through':_0x25ad01(0x18c),'foreignKey':_0x25ad01(0x1d5)}),_0x36ab12[_0x25ad01(0x227)][_0x25ad01(0x22f)](_0x36ab12[_0x25ad01(0x116)],{'through':'team_has_whatsapp_queues','as':_0x25ad01(0x291)}),_0x36ab12;}module['exports'][a1190_0x4594be(0x1f1)]=initializeAllModels; \ No newline at end of file +const a1190_0x55e6=['FromAccount','../api/squareReport/squareReport.model','SpiedAgents','user_has_mail_interactions','Contacts','Field','../api/voiceExtension/voiceExtension.model','AgentReports','../api/userProfileResource/userProfileResource.model','FaxInteractions','Fields','../api/squareRecording/squareRecording.model','VoicePrefix','../api/voiceAgentReport/voiceAgentReport.model','ChatMessage','Trunk','Users','Resources','OpenchannelQueueId','ToOpenchannelQueueId','Extensions','../api/intZohoConfiguration/intZohoConfiguration.model','belongsTo','BlackLists','MailQueue','ChatOfflineMessage','../api/intFreshsalesAccount/intFreshsalesAccount.model','Account','IntervalId','ZohoField','team_has_sms_queues','../api/intSugarcrmField/intSugarcrmField.model','../api/userVoiceQueueRt/userVoiceQueueRt.model','UserProfileResource','../api/intFreshdeskAccount/intFreshdeskAccount.model','MailApplications','ZendeskConfiguration','../api/intZendeskField/intZendeskField.model','AllConditions','CmHopperFinal','../api/jscriptySessionReport/jscriptySessionReport.model','ToAccount','CannedAnswer','AutomationId','ChatWebsite','FaxInteraction','Members','Interaction','VoiceQueueReport','ReportAgentPreview','team_has_mail_queues','ChatMessageId','sequelize','OpenchannelQueues','Team','mailboxuser','MailServerOut','CmCompany','Queue','../api/mailQueueReport/mailQueueReport.model','../api/intVtigerField/intVtigerField.model','ChatGroupId','SugarcrmField','ProactiveActions','TrunkBackupId','CmCustomField','Descriptions','UserMailInteractions','Imap','ChatInteractions','WhatsappAccounts','Campaign','OpenchannelMessageId','../api/mailSubstatus/mailSubstatus.model','WhatsappMessage','DashboardId','FaxQueue','../api/chatProactiveAction/chatProactiveAction.model','CmContact','CmList','Company','../api/cannedAnswer/cannedAnswer.model','VoiceQueues','ToSmsQueueId','Schedule','Notification','../api/template/template.model','belongsToMany','OpenchannelAccounts','user_has_whatsapp_accounts','user_has_sms_interactions','Template','team_has_chat_queues','../api/voicePrefix/voicePrefix.model','user_has_whatsapp_interactions','chat_interaction_has_tags','Description','user_has_chat_websites','Mohs','AttachmentId','ToOpenchannelAccountId','WhatsappInteraction','../api/pause/pause.model','../api/faxQueue/faxQueue.model','Condition','../api/intDynamics365Account/intDynamics365Account.model','VariableId','ChanSpyId','../api/faxMessage/faxMessage.model','SquareProjectId','MailAccount','restrict','FaxAccounts','openchannel_interaction_has_tags','moh_has_sounds','../api/faxApplication/faxApplication.model','VoiceExtension','ChatQueues','WhatsappAccount','ZohoAccount','../api/cmHopperFinal/cmHopperFinal.model','../api/chatApplication/chatApplication.model','mandatoryDispositionPauseId','../api/chatGroup/chatGroup.model','../api/analyticDefaultReport/analyticDefaultReport.model','../api/analyticExtractedReport/analyticExtractedReport.model','../api/voiceQueue/voiceQueue.model','CmHopper','../api/voiceMusicOnHold/voiceMusicOnHold.model','whatsapp_interaction_has_tags','FromAgent','Configurations','Lists','CmHopperBlack','VoiceQueueId','../api/analyticFieldReport/analyticFieldReport.model','Attachment','../api/openchannelTransferReport/openchannelTransferReport.model','UserChatQueue','DefaultReportId','Disposition','MetricId','Website','VtigerConfiguration','../api/voiceChanSpy/voiceChanSpy.model','../api/cmHopperHistory/cmHopperHistory.model','../api/intFreshdeskConfiguration/intFreshdeskConfiguration.model','../api/setting/setting.model','FaxAccount','Items','../api/voiceDialReport/voiceDialReport.model','ToMailAccountId','../api/intZendeskConfiguration/intZendeskConfiguration.model','CustomReportId','../api/intDynamics365Configuration/intDynamics365Configuration.model','../api/screenRecording/screenRecording.model','ToFaxQueueId','AllCondition','MailTransferReport','chat_group_has_users','AutomationAllId','../api/smsMessage/smsMessage.model','TemplateId','../api/openchannelMessage/openchannelMessage.model','team_has_fax_queues','Dashboard','../api/userWhatsappQueue/userWhatsappQueue.model','FromOpenchannelAccountId','VtigerAccount','../api/openchannelQueue/openchannelQueue.model','../api/memberReport/memberReport.model','Recordings','FreshsalesAccount','../api/team/team.model','AnyCondition','WhatsappTransferReport','../api/chatMessage/chatMessage.model','../api/openchannelAccount/openchannelAccount.model','DeskAccount','MailInteractions','../api/mailApplication/mailApplication.model','mail_interaction_has_tags','int_zendesk_configuration_has_tags','../api/sound/sound.model','Dynamics365Configuration','Dynamics365Field','OneAny','MailQueues','FaxQueueId','ChatInternalMessage','ContactId','Interval','../api/userChatQueue/userChatQueue.model','ChatApplications','../api/mailServerIn/mailServerIn.model','ServicenowAccount','FreshsalesConfiguration','FreshsalesField','SalesforceField','../api/smsApplication/smsApplication.model','ToId','FromUserId','DeskConfiguration','TriggerAllId','../api/user/user.model','SmsInteractions','../api/campaign/campaign.model','user_has_fax_interactions','MailInteraction','SmsInteraction','user_has_chat_interactions','DescriptionId','OpenchannelInteraction','SmsQueue','VoiceQueue','OwnerId','../api/faxTransferReport/faxTransferReport.model','voice_queues_has_cm_lists','FieldId','AnyConditions','Dynamics365Account','VoiceQueuesRt','../api/mailAccount/mailAccount.model','WhatsappApplication','WhatsappQueues','SubjectId','AccountId','Exntensions','ChatQueueId','WhatsappAccountId','../api/openchannelQueueReport/openchannelQueueReport.model','Action','../api/userSmsQueue/userSmsQueue.model','FaxTransferReport','ToUserId','../api/analyticCustomReport/analyticCustomReport.model','ZendeskField','User','../api/voiceQueueReport/voiceQueueReport.model','Tag','VoiceCallReport','../api/integrationReport/integrationReport.model','Contact','ToQueue','ToChatWebsiteId','sectionId','SugarcrmConfiguration','UserFaxQueue','OneAll','hasMany','VoicePrefixes','SmsApplication','MailMessage','user_has_teams','FreshdeskField','../api/voiceMailMessage/voiceMailMessage.model','../api/intSalesforceAccount/intSalesforceAccount.model','FaxApplication','JscriptyProject','../api/voiceCallReport/voiceCallReport.model','../api/userVoiceQueue/userVoiceQueue.model','MailQueueReport','VtigerField','ChatWebsiteId','SmsTransferReport','../api/cdr/cdr.model','../api/jscriptyQuestionReport/jscriptyQuestionReport.model','FromWhatsappAccountId','../api/cmHopperBlack/cmHopperBlack.model','MailQueueId','fax_interaction_has_tags','FreshdeskAccount','FromChatWebsiteId','../api/whatsappInteraction/whatsappInteraction.model','ServicenowConfiguration','Subject','../api/intServicenowConfiguration/intServicenowConfiguration.model','ChatApplication','VoiceMail','FaxInteractionId','ToSmsAccountId','DeskField','../api/smsQueue/smsQueue.model','../api/squareOdbc/squareOdbc.model','TrunkBackup','QueueCalls','ChatQueueReport','List','MailMessageId','Applications','../api/userProfile/userProfile.model','SmsAccountId','Agents','ZendeskAccount','TagId','cm_user_has_contacts','UserProfileSection','WhatsappInteractions','CompanyId','JscriptySessions','ChatProactiveAction','cm_user_has_lists','UserMailQueue','../api/userProfileSection/userProfileSection.model','WhatsappQueueId','UserOpenchannelQueue','campaigns_has_cm_lists','user_has_fax_accounts','voice_queues_has_cm_blacklists','CampaignId','ZohoConfiguration','FromId','user_has_sms_accounts','../api/mailServerOut/mailServerOut.model','../api/intDeskField/intDeskField.model','ChatInteractionId','UserOpenchannelInteractions','../api/dashboard/dashboard.model','SalesforceConfiguration','UserId','../api/intFreshdeskField/intFreshdeskField.model','../api/mailInteraction/mailInteraction.model','initializeAllModels','user_has_square_projects','MailAccountId','Automation','uniqueid','Smtp','../api/tag/tag.model','OpenchannelTransferReport','FaxQueueReport','OpenchannelInteractions','OpenchannelQueueReport','ChatWebsites','ListId','FreshdeskConfiguration','../api/analyticTreeReport/analyticTreeReport.model','../api/intDynamics365Field/intDynamics365Field.model','OpenchannelAccount','ServicenowField','SmsInteractionId','ChatQueue','../api/chatTransferReport/chatTransferReport.model','UserWhatsappQueue','Dispositions','../api/variable/variable.model','CustomFields','hasOne','UserChatInteractions','Answers','../api/faxAccount/faxAccount.model','FaxApplications','Agent','ToFaxAccountId','../api/whatsappQueue/whatsappQueue.model','HopperHistories','JscriptyAnswerReport','int_desk_configuration_has_tags','UserVoiceQueue','SmsQueues','Teams','../api/whatsappTransferReport/whatsappTransferReport.model','UserWhatsappInteractions','ToAgent','Trigger','../api/notification/notification.model','../api/disposition/disposition.model','ProjectId','AnalyticCustomReport','Owner','VoiceRecording','FaxMessage','../api/reportAgentPreview/reportAgentPreview.model','../api/intServicenowAccount/intServicenowAccount.model','Interactions','team_has_openchannel_queues','team_has_voice_queues','SmsQueueId','Tags','MailServerIn','MailInteractionId','OpenchannelApplication','ChatGroup','Attachments','Sound','SquareProject','OpenchannelInteractionId','WhatsappMessageId','HopperBlacks','mailbox','ThroughTags','CmHopperHistory','VoiceMailMessage','../api/cmCompany/cmCompany.model','../api/integration/integration.model','ToChatQueueId','SugarcrmAccount','team_has_whatsapp_queues','Variable','../api/voiceRecording/voiceRecording.model','userProfileId','cm_contact_has_tags','user_has_openchannel_interactions','UserVoiceQueueRt','SmsApplications','OpenchannelAccountId','mandatoryDispositionPause','../api/interval/interval.model','../api/smsQueueReport/smsQueueReport.model','OpenchannelQueue','MailApplication','../api/whatsappApplication/whatsappApplication.model','Pause','TrunkId','TriggerId','Hoppers','user_has_openchannel_accounts','../api/mailQueue/mailQueue.model','Messages','Sounds','user_has_voice_prefixes','user_has_mail_accounts','HopperHistory','SmsQueueReport','../api/chatOfflineMessage/chatOfflineMessage.model','Subjects','JscriptyQuestionReport','sms_interaction_has_tags','WhatsappInteractionId','AnalyticFieldReport','UserProfile','../api/network/network.model','OpenchannelMessage','../api/mailTransferReport/mailTransferReport.model','VoiceMusicOnHold','SenderId','WhatsappQueueReport','ChatInteraction','../api/mailMessage/mailMessage.model','../api/smsAccount/smsAccount.model','WhatsappQueue','AnalyticDefaultReport','../api/intSalesforceField/intSalesforceField.model','SessionId','UserSmsQueue','../api/voiceTransferReport/voiceTransferReport.model','FaxQueues','FaxAccountId','SmsMessageId','AnalyticMetric','HopperFinals','ChatTransferReport','SmsMessage','SmsAccount','../api/plugin/plugin.model','../api/cmCustomField/cmCustomField.model','JscriptySessionReport','../api/squareMessage/squareMessage.model','FaxMessageId','cascade','../api/trunk/trunk.model'];(function(_0x21bdc6,_0x19f1a5){const _0x55e6ba=function(_0xd92112){while(--_0xd92112){_0x21bdc6['push'](_0x21bdc6['shift']());}};_0x55e6ba(++_0x19f1a5);}(a1190_0x55e6,0x187));const a1190_0xd921=function(_0x21bdc6,_0x19f1a5){_0x21bdc6=_0x21bdc6-0x1a1;let _0x55e6ba=a1190_0x55e6[_0x21bdc6];return _0x55e6ba;};const a1190_0x1be44a=a1190_0xd921;'use strict';const {init:initUser}=require(a1190_0x1be44a(0x2b3)),{init:initVoiceChanSpy}=require(a1190_0x1be44a(0x277)),{init:initVoiceContext}=require('../api/voiceContext/voiceContext.model'),{init:initVoiceExtension}=require(a1190_0x1be44a(0x1ed)),{init:initVoiceMusicOnHold}=require(a1190_0x1be44a(0x267)),{init:initVoiceQueue}=require(a1190_0x1be44a(0x265)),{init:initVoiceRecording}=require(a1190_0x1be44a(0x1a9)),{init:initScreenRecording}=require(a1190_0x1be44a(0x282)),{init:initVoiceMail}=require('../api/voiceMail/voiceMail.model'),{init:initVoiceMailMessage}=require(a1190_0x1be44a(0x2e6)),{init:initVoiceCallReport}=require(a1190_0x1be44a(0x2ea)),{init:initVoiceDialReport}=require(a1190_0x1be44a(0x27d)),{init:initVoiceAgentReport}=require(a1190_0x1be44a(0x1f4)),{init:initVoiceQueueReport}=require(a1190_0x1be44a(0x2d5)),{init:initMemberReport}=require(a1190_0x1be44a(0x291)),{init:initTrunk}=require(a1190_0x1be44a(0x1e6)),{init:initVoiceTransferReport}=require(a1190_0x1be44a(0x1d7)),{init:initUserVoiceQueueRt}=require(a1190_0x1be44a(0x207)),{init:initUserVoiceQueue}=require(a1190_0x1be44a(0x2eb)),{init:initUserChatQueue}=require(a1190_0x1be44a(0x2a7)),{init:initUserMailQueue}=require('../api/userMailQueue/userMailQueue.model'),{init:initUserFaxQueue}=require('../api/userFaxQueue/userFaxQueue.model'),{init:initUserSmsQueue}=require(a1190_0x1be44a(0x2cf)),{init:initUserOpenchannelQueue}=require('../api/userOpenchannelQueue/userOpenchannelQueue.model'),{init:initUserWhatsappQueue}=require(a1190_0x1be44a(0x28d)),{init:initMailServerIn}=require(a1190_0x1be44a(0x2a9)),{init:initMailServerOut}=require(a1190_0x1be44a(0x320)),{init:initMailAccount}=require(a1190_0x1be44a(0x2c5)),{init:initMailQueue}=require(a1190_0x1be44a(0x1bb)),{init:initMailSubstatus}=require(a1190_0x1be44a(0x230)),{init:initMailInteraction}=require(a1190_0x1be44a(0x328)),{init:initMailMessage}=require(a1190_0x1be44a(0x1d0)),{init:initMailApplication}=require(a1190_0x1be44a(0x29b)),{init:initMailQueueReport}=require(a1190_0x1be44a(0x222)),{init:initDashboard}=require(a1190_0x1be44a(0x324)),{init:initDashboardItem}=require('../api/dashboardItem/dashboardItem.model'),{init:initFaxAccount}=require(a1190_0x1be44a(0x345)),{init:initFaxApplication}=require(a1190_0x1be44a(0x25a)),{init:initFaxInteraction}=require('../api/faxInteraction/faxInteraction.model'),{init:initFaxMessage}=require(a1190_0x1be44a(0x253)),{init:initFaxQueue}=require(a1190_0x1be44a(0x24e)),{init:initFaxQueueReport}=require('../api/faxQueueReport/faxQueueReport.model'),{init:initSmsAccount}=require(a1190_0x1be44a(0x1d1)),{init:initSmsApplication}=require(a1190_0x1be44a(0x2ae)),{init:initSmsInteraction}=require('../api/smsInteraction/smsInteraction.model'),{init:initSmsMessage}=require(a1190_0x1be44a(0x288)),{init:initSmsQueue}=require(a1190_0x1be44a(0x301)),{init:initOpenchannelAccount}=require(a1190_0x1be44a(0x298)),{init:initOpenchannelApplication}=require('../api/openchannelApplication/openchannelApplication.model'),{init:initOpenchannelInteraction}=require('../api/openchannelInteraction/openchannelInteraction.model'),{init:initOpenchannelMessage}=require(a1190_0x1be44a(0x28a)),{init:initOpenchannelQueue}=require(a1190_0x1be44a(0x290)),{init:initChatWebsite}=require('../api/chatWebsite/chatWebsite.model'),{init:initOpenchannelQueueReport}=require(a1190_0x1be44a(0x2cd)),{init:initChatApplication}=require(a1190_0x1be44a(0x260)),{init:initChatInteraction}=require('../api/chatInteraction/chatInteraction.model'),{init:initChatMessage}=require(a1190_0x1be44a(0x297)),{init:initChatOfflineMessage}=require(a1190_0x1be44a(0x1c2)),{init:initChatQueue}=require('../api/chatQueue/chatQueue.model'),{init:initChatGroup}=require(a1190_0x1be44a(0x262)),{init:initChatProactiveAction}=require(a1190_0x1be44a(0x234)),{init:initCmCompany}=require(a1190_0x1be44a(0x1a3)),{init:initCmContact}=require('../api/cmContact/cmContact.model'),{init:initCmHopper}=require('../api/cmHopper/cmHopper.model'),{init:initCmHopperBlack}=require(a1190_0x1be44a(0x2f3)),{init:initCmHopperFinal}=require(a1190_0x1be44a(0x25f)),{init:initCmHopperHistory}=require(a1190_0x1be44a(0x278)),{init:initReportAgentPreview}=require(a1190_0x1be44a(0x35b)),{init:initCmCustomField}=require(a1190_0x1be44a(0x1e1)),{init:initAction}=require('../api/action/action.model'),{init:initAutomation}=require('../api/automation/automation.model'),{init:initCannedAnswer}=require(a1190_0x1be44a(0x238)),{init:initDisposition}=require(a1190_0x1be44a(0x355)),{init:initCondition}=require('../api/condition/condition.model'),{init:initInterval}=require(a1190_0x1be44a(0x1b1)),{init:initPause}=require(a1190_0x1be44a(0x24d)),{init:initCdr}=require(a1190_0x1be44a(0x2f0)),{init:initVoiceQueuesLog}=require('../api/voiceQueuesLog/voiceQueuesLog.model'),{init:initSchedule}=require('../api/schedule/schedule.model'),{init:initSound}=require(a1190_0x1be44a(0x29e)),{init:initTag}=require(a1190_0x1be44a(0x32f)),{init:initTemplate}=require(a1190_0x1be44a(0x23d)),{init:initTrigger}=require('../api/trigger/trigger.model'),{init:initVariable}=require(a1190_0x1be44a(0x340)),{init:initIntegration}=require(a1190_0x1be44a(0x1a4)),{init:initIntegrationReport}=require(a1190_0x1be44a(0x2d8)),{init:initAnalyticCustomReport}=require(a1190_0x1be44a(0x2d2)),{init:initAnalyticDefaultReport}=require(a1190_0x1be44a(0x263)),{init:initAnalyticExtractedReport}=require(a1190_0x1be44a(0x264)),{init:initAnalyticMetric}=require('../api/analyticMetric/analyticMetric.model'),{init:initAnalyticFieldReport}=require(a1190_0x1be44a(0x26e)),{init:initAnalyticTreeReport}=require(a1190_0x1be44a(0x337)),{init:initSalesforceAccount}=require(a1190_0x1be44a(0x2e7)),{init:initSalesforceConfiguration}=require('../api/intSalesforceConfiguration/intSalesforceConfiguration.model'),{init:initSalesforceField}=require(a1190_0x1be44a(0x1d4)),{init:initSugarcrmAccount}=require('../api/intSugarcrmAccount/intSugarcrmAccount.model'),{init:initSugarcrmConfiguration}=require('../api/intSugarcrmConfiguration/intSugarcrmConfiguration.model'),{init:initSugarcrmField}=require(a1190_0x1be44a(0x206)),{init:initDeskAccount}=require('../api/intDeskAccount/intDeskAccount.model'),{init:initDeskConfiguration}=require('../api/intDeskConfiguration/intDeskConfiguration.model'),{init:initDeskField}=require(a1190_0x1be44a(0x321)),{init:initZohoAccount}=require('../api/intZohoAccount/intZohoAccount.model'),{init:initZohoConfiguration}=require(a1190_0x1be44a(0x1fc)),{init:initZohoField}=require('../api/intZohoField/intZohoField.model'),{init:initZendeskAccount}=require('../api/intZendeskAccount/intZendeskAccount.model'),{init:initZendeskConfiguration}=require(a1190_0x1be44a(0x27f)),{init:initZendeskField}=require(a1190_0x1be44a(0x20c)),{init:initFreshdeskAccount}=require(a1190_0x1be44a(0x209)),{init:initFreshdeskConfiguration}=require(a1190_0x1be44a(0x279)),{init:initFreshdeskField}=require(a1190_0x1be44a(0x327)),{init:initVtigerAccount}=require('../api/intVtigerAccount/intVtigerAccount.model'),{init:initVtigerConfiguration}=require('../api/intVtigerConfiguration/intVtigerConfiguration.model'),{init:initVtigerField}=require(a1190_0x1be44a(0x223)),{init:initServicenowAccount}=require(a1190_0x1be44a(0x35c)),{init:initServicenowConfiguration}=require(a1190_0x1be44a(0x2fb)),{init:initServicenowField}=require('../api/intServicenowField/intServicenowField.model'),{init:initDynamics365Account}=require(a1190_0x1be44a(0x250)),{init:initDynamics365Configuration}=require(a1190_0x1be44a(0x281)),{init:initDynamics365Field}=require(a1190_0x1be44a(0x338)),{init:initFreshsalesAccount}=require(a1190_0x1be44a(0x201)),{init:initFreshsalesConfiguration}=require('../api/intFreshsalesConfiguration/intFreshsalesConfiguration.model'),{init:initFreshsalesField}=require('../api/intFreshsalesField/intFreshsalesField.model'),{init:initNetwork}=require(a1190_0x1be44a(0x1c9)),{init:initChatQueueReport}=require('../api/chatQueueReport/chatQueueReport.model'),{init:initChatInternalMessage}=require('../api/chatInternalMessage/chatInternalMessage.model'),{init:initJscriptyAnswerReport}=require('../api/jscriptyAnswerReport/jscriptyAnswerReport.model'),{init:initJscriptyQuestionReport}=require(a1190_0x1be44a(0x2f1)),{init:initJscriptySessionReport}=require(a1190_0x1be44a(0x20f)),{init:initSmsQueueReport}=require(a1190_0x1be44a(0x1b2)),{init:initSquareReport}=require(a1190_0x1be44a(0x1e8)),{init:initSquareDetailsReport}=require('../api/squareReportDetail/squareReportDetail.model'),{init:initJscriptyProject}=require('../api/jscriptyProject/jscriptyProject.model'),{init:initSetting}=require(a1190_0x1be44a(0x27a)),{init:initSquareOdbc}=require(a1190_0x1be44a(0x302)),{init:initSquareProject}=require('../api/squareProject/squareProject.model'),{init:initSquareRecording}=require(a1190_0x1be44a(0x1f2)),{init:initSquareMessage}=require(a1190_0x1be44a(0x1e3)),{init:initTeam}=require(a1190_0x1be44a(0x294)),{init:initLicense}=require('../api/license/license.model'),{init:initCampaign}=require(a1190_0x1be44a(0x2b5)),{init:initMigration}=require('../api/migration/migration.model'),{init:initAttachment}=require('../api/attachment/attachment.model'),{init:initPlugin}=require(a1190_0x1be44a(0x1e0)),{init:initMailTransferReport}=require(a1190_0x1be44a(0x1cb)),{init:initChatTransferReport}=require(a1190_0x1be44a(0x33d)),{init:initFaxTransferReport}=require(a1190_0x1be44a(0x2bf)),{init:initOpenchannelTransferReport}=require(a1190_0x1be44a(0x270)),{init:initSmsTransferReport}=require('../api/smsTransferReport/smsTransferReport.model'),{init:initCmList}=require('../api/cmList/cmList.model'),{init:initVoicePrefix}=require(a1190_0x1be44a(0x244)),{init:initUserProfile}=require(a1190_0x1be44a(0x309)),{init:initUserProfileSection}=require(a1190_0x1be44a(0x316)),{init:initUserProfileResource}=require(a1190_0x1be44a(0x1ef)),{init:initNotification}=require(a1190_0x1be44a(0x354)),{init:initWhatsappAccount}=require('../api/whatsappAccount/whatsappAccount.model'),{init:initWhatsappApplication}=require(a1190_0x1be44a(0x1b5)),{init:initWhatsappInteraction}=require(a1190_0x1be44a(0x2f8)),{init:initWhatsappMessage}=require('../api/whatsappMessage/whatsappMessage.model'),{init:initWhatsappQueueReport}=require('../api/whatsappQueueReport/whatsappQueueReport.model'),{init:initWhatsappTransferReport}=require(a1190_0x1be44a(0x350)),{init:initWhatsappQueue}=require(a1190_0x1be44a(0x349)),{init:initCloudProvider}=require('../api/cloudProvider/cloudProvider.model');function initializeAllModels(_0x4813b3,_0x393ef7){const _0x369b8d=a1190_0x1be44a,_0x3733d7={'sequelize':_0x4813b3['sequelize'],'User':initUser(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'VoiceChanSpy':initVoiceChanSpy(_0x4813b3['sequelize'],_0x393ef7),'VoiceContext':initVoiceContext(_0x4813b3['sequelize'],_0x393ef7),'VoiceExtension':initVoiceExtension(_0x4813b3['sequelize'],_0x393ef7),'VoiceMusicOnHold':initVoiceMusicOnHold(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'VoiceQueue':initVoiceQueue(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'VoiceRecording':initVoiceRecording(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'ScreenRecording':initScreenRecording(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'VoiceMail':initVoiceMail(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'VoiceMailMessage':initVoiceMailMessage(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'VoiceCallReport':initVoiceCallReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'VoiceDialReport':initVoiceDialReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'VoiceAgentReport':initVoiceAgentReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'VoiceQueueReport':initVoiceQueueReport(_0x4813b3['sequelize'],_0x393ef7),'MemberReport':initMemberReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Trunk':initTrunk(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'VoiceTransferReport':initVoiceTransferReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'UserVoiceQueueRt':initUserVoiceQueueRt(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'UserVoiceQueue':initUserVoiceQueue(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'UserChatQueue':initUserChatQueue(_0x4813b3['sequelize'],_0x393ef7),'UserMailQueue':initUserMailQueue(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'UserFaxQueue':initUserFaxQueue(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'UserSmsQueue':initUserSmsQueue(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'UserOpenchannelQueue':initUserOpenchannelQueue(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'UserWhatsappQueue':initUserWhatsappQueue(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'MailServerIn':initMailServerIn(_0x4813b3['sequelize'],_0x393ef7),'MailServerOut':initMailServerOut(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'MailAccount':initMailAccount(_0x4813b3['sequelize'],_0x393ef7),'MailQueue':initMailQueue(_0x4813b3['sequelize'],_0x393ef7),'MailSubstatus':initMailSubstatus(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'MailInteraction':initMailInteraction(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'MailMessage':initMailMessage(_0x4813b3['sequelize'],_0x393ef7),'MailApplication':initMailApplication(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'MailQueueReport':initMailQueueReport(_0x4813b3['sequelize'],_0x393ef7),'Dashboard':initDashboard(_0x4813b3['sequelize'],_0x393ef7),'DashboardItem':initDashboardItem(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'FaxAccount':initFaxAccount(_0x4813b3['sequelize'],_0x393ef7),'FaxApplication':initFaxApplication(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'FaxInteraction':initFaxInteraction(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'FaxMessage':initFaxMessage(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'FaxQueue':initFaxQueue(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'FaxQueueReport':initFaxQueueReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'SmsAccount':initSmsAccount(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'SmsApplication':initSmsApplication(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'SmsInteraction':initSmsInteraction(_0x4813b3['sequelize'],_0x393ef7),'SmsMessage':initSmsMessage(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'SmsQueue':initSmsQueue(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'OpenchannelAccount':initOpenchannelAccount(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'OpenchannelApplication':initOpenchannelApplication(_0x4813b3['sequelize'],_0x393ef7),'OpenchannelInteraction':initOpenchannelInteraction(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'OpenchannelMessage':initOpenchannelMessage(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'OpenchannelQueue':initOpenchannelQueue(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'ChatWebsite':initChatWebsite(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'OpenchannelQueueReport':initOpenchannelQueueReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'ChatApplication':initChatApplication(_0x4813b3['sequelize'],_0x393ef7),'ChatInteraction':initChatInteraction(_0x4813b3['sequelize'],_0x393ef7),'ChatMessage':initChatMessage(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'ChatOfflineMessage':initChatOfflineMessage(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'ChatQueue':initChatQueue(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'ChatGroup':initChatGroup(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'ChatProactiveAction':initChatProactiveAction(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'CmCompany':initCmCompany(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'CmContact':initCmContact(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'CmHopper':initCmHopper(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'CmHopperBlack':initCmHopperBlack(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'CmHopperFinal':initCmHopperFinal(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'CmHopperHistory':initCmHopperHistory(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'ReportAgentPreview':initReportAgentPreview(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'CmCustomField':initCmCustomField(_0x4813b3['sequelize'],_0x393ef7),'Action':initAction(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Automation':initAutomation(_0x4813b3['sequelize'],_0x393ef7),'CannedAnswer':initCannedAnswer(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Disposition':initDisposition(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Condition':initCondition(_0x4813b3['sequelize'],_0x393ef7),'Interval':initInterval(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Pause':initPause(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Cdr':initCdr(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'VoiceQueuesLog':initVoiceQueuesLog(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Schedule':initSchedule(_0x4813b3['sequelize'],_0x393ef7),'Sound':initSound(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Tag':initTag(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Template':initTemplate(_0x4813b3['sequelize'],_0x393ef7),'Trigger':initTrigger(_0x4813b3['sequelize'],_0x393ef7),'Variable':initVariable(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Integration':initIntegration(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'IntegrationReport':initIntegrationReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'AnalyticCustomReport':initAnalyticCustomReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'AnalyticDefaultReport':initAnalyticDefaultReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'AnalyticExtractedReport':initAnalyticExtractedReport(_0x4813b3['sequelize'],_0x393ef7),'AnalyticMetric':initAnalyticMetric(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'AnalyticFieldReport':initAnalyticFieldReport(_0x4813b3['sequelize'],_0x393ef7),'AnalyticTreeReport':initAnalyticTreeReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'SalesforceAccount':initSalesforceAccount(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'SalesforceConfiguration':initSalesforceConfiguration(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'SalesforceField':initSalesforceField(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'SugarcrmAccount':initSugarcrmAccount(_0x4813b3['sequelize'],_0x393ef7),'SugarcrmConfiguration':initSugarcrmConfiguration(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'SugarcrmField':initSugarcrmField(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'DeskAccount':initDeskAccount(_0x4813b3['sequelize'],_0x393ef7),'DeskConfiguration':initDeskConfiguration(_0x4813b3['sequelize'],_0x393ef7),'DeskField':initDeskField(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'ZohoAccount':initZohoAccount(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'ZohoConfiguration':initZohoConfiguration(_0x4813b3['sequelize'],_0x393ef7),'ZohoField':initZohoField(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'ZendeskAccount':initZendeskAccount(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'ZendeskConfiguration':initZendeskConfiguration(_0x4813b3['sequelize'],_0x393ef7),'ZendeskField':initZendeskField(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'FreshdeskAccount':initFreshdeskAccount(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'FreshdeskConfiguration':initFreshdeskConfiguration(_0x4813b3['sequelize'],_0x393ef7),'FreshdeskField':initFreshdeskField(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'VtigerAccount':initVtigerAccount(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'VtigerConfiguration':initVtigerConfiguration(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'VtigerField':initVtigerField(_0x4813b3['sequelize'],_0x393ef7),'ServicenowAccount':initServicenowAccount(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'ServicenowConfiguration':initServicenowConfiguration(_0x4813b3['sequelize'],_0x393ef7),'ServicenowField':initServicenowField(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Dynamics365Account':initDynamics365Account(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Dynamics365Configuration':initDynamics365Configuration(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Dynamics365Field':initDynamics365Field(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'FreshsalesAccount':initFreshsalesAccount(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'FreshsalesConfiguration':initFreshsalesConfiguration(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'FreshsalesField':initFreshsalesField(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Network':initNetwork(_0x4813b3['sequelize'],_0x393ef7),'ChatQueueReport':initChatQueueReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'ChatInternalMessage':initChatInternalMessage(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'JscriptyAnswerReport':initJscriptyAnswerReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'JscriptyQuestionReport':initJscriptyQuestionReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'JscriptySessionReport':initJscriptySessionReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'SmsQueueReport':initSmsQueueReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'SquareReport':initSquareReport(_0x4813b3['sequelize'],_0x393ef7),'SquareDetailsReport':initSquareDetailsReport(_0x4813b3['sequelize'],_0x393ef7),'JscriptyProject':initJscriptyProject(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Setting':initSetting(_0x4813b3['sequelize'],_0x393ef7),'SquareOdbc':initSquareOdbc(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'SquareProject':initSquareProject(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'SquareRecording':initSquareRecording(_0x4813b3['sequelize'],_0x393ef7),'SquareMessage':initSquareMessage(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Team':initTeam(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'License':initLicense(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Campaign':initCampaign(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Migration':initMigration(_0x4813b3['sequelize'],_0x393ef7),'Attachment':initAttachment(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Plugin':initPlugin(_0x4813b3['sequelize'],_0x393ef7),'MailTransferReport':initMailTransferReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'ChatTransferReport':initChatTransferReport(_0x4813b3['sequelize'],_0x393ef7),'FaxTransferReport':initFaxTransferReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'OpenchannelTransferReport':initOpenchannelTransferReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'SmsTransferReport':initSmsTransferReport(_0x4813b3['sequelize'],_0x393ef7),'CmList':initCmList(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'VoicePrefix':initVoicePrefix(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'UserProfile':initUserProfile(_0x4813b3['sequelize'],_0x393ef7),'UserProfileSection':initUserProfileSection(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'UserProfileResource':initUserProfileResource(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'Notification':initNotification(_0x4813b3['sequelize'],_0x393ef7),'WhatsappAccount':initWhatsappAccount(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'WhatsappApplication':initWhatsappApplication(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'WhatsappInteraction':initWhatsappInteraction(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'WhatsappMessage':initWhatsappMessage(_0x4813b3['sequelize'],_0x393ef7),'WhatsappQueueReport':initWhatsappQueueReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'WhatsappTransferReport':initWhatsappTransferReport(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'WhatsappQueue':initWhatsappQueue(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7),'CloudProvider':initCloudProvider(_0x4813b3[_0x369b8d(0x21b)],_0x393ef7)};return _0x3733d7['User'][_0x369b8d(0x342)](_0x3733d7[_0x369b8d(0x2fd)],{'as':_0x369b8d(0x2fd),'onDelete':_0x369b8d(0x1e5),'foreignKey':'UserId'}),_0x3733d7['User']['hasMany'](_0x3733d7[_0x369b8d(0x359)],{'as':_0x369b8d(0x292),'foreignKey':_0x369b8d(0x326)}),_0x3733d7['User'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x1ad)],{'as':_0x369b8d(0x2c4),'foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x2e0)](_0x3733d7['VoiceExtension'],{'as':_0x369b8d(0x1fb),'onDelete':'cascade','hooks':!![]}),_0x3733d7['User'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x20e)],{'as':_0x369b8d(0x1dc),'foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x1a1)],{'as':'HopperHistory','foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x2e0)](_0x3733d7['ReportAgentPreview'],{'as':_0x369b8d(0x218),'foreignKey':'UserId'}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x2e0)](_0x3733d7['OpenchannelInteraction'],{'as':_0x369b8d(0x332),'foreignKey':_0x369b8d(0x326)}),_0x3733d7['User'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x1cf)],{'as':_0x369b8d(0x22c),'foreignKey':'UserId'}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2b8)],{'as':'SmsInteractions','foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x214)],{'as':_0x369b8d(0x1f0),'foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x2d4)]['hasMany'](_0x3733d7['MailInteraction'],{'as':_0x369b8d(0x29a),'foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x2e0)](_0x3733d7['WhatsappInteraction'],{'as':_0x369b8d(0x310),'foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x23c)],{'as':'Notifications','foreignKey':_0x369b8d(0x1cd)}),_0x3733d7['User'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1c8)],{'as':_0x369b8d(0x1c8),'foreignKey':_0x369b8d(0x1aa)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x23e)](_0x3733d7['ChatGroup'],{'as':'Groups','through':_0x369b8d(0x286)}),_0x3733d7[_0x369b8d(0x2d4)]['belongsToMany'](_0x3733d7[_0x369b8d(0x235)],{'as':_0x369b8d(0x1eb),'through':_0x369b8d(0x30e)}),_0x3733d7['User']['belongsToMany'](_0x3733d7[_0x369b8d(0x236)],{'as':_0x369b8d(0x26b),'through':_0x369b8d(0x314)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x21d)],{'through':_0x369b8d(0x2e4)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2b7)],{'as':_0x369b8d(0x22a),'through':_0x369b8d(0x1ea)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x1cf)],{'as':_0x369b8d(0x343),'through':_0x369b8d(0x2b9)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x214)],{'as':'UserFaxInteractions','through':_0x369b8d(0x2b6)}),_0x3733d7[_0x369b8d(0x2d4)]['belongsToMany'](_0x3733d7[_0x369b8d(0x2b8)],{'as':'UserSmsInteractions','through':_0x369b8d(0x241)}),_0x3733d7['User'][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2bb)],{'as':_0x369b8d(0x323),'through':_0x369b8d(0x1ac)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x23e)](_0x3733d7['WhatsappInteraction'],{'as':_0x369b8d(0x351),'through':_0x369b8d(0x245)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2bd)],{'as':_0x369b8d(0x239),'through':'UserVoiceQueue'}),_0x3733d7[_0x369b8d(0x2d4)]['belongsToMany'](_0x3733d7[_0x369b8d(0x1ff)],{'as':_0x369b8d(0x2a2),'through':_0x369b8d(0x315)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x33c)],{'as':_0x369b8d(0x25c),'through':'UserChatQueue','hooks':!![]}),_0x3733d7['User'][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x233)],{'as':_0x369b8d(0x1d8),'through':_0x369b8d(0x2de)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2bc)],{'as':_0x369b8d(0x34e),'through':'UserSmsQueue'}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x23e)](_0x3733d7['OpenchannelQueue'],{'as':'OpenchannelQueues','through':_0x369b8d(0x318)}),_0x3733d7[_0x369b8d(0x2d4)]['belongsToMany'](_0x3733d7['WhatsappQueue'],{'as':_0x369b8d(0x2c7),'through':_0x369b8d(0x33e)}),_0x3733d7[_0x369b8d(0x2d4)]['belongsToMany'](_0x3733d7[_0x369b8d(0x236)],{'through':_0x369b8d(0x314)}),_0x3733d7[_0x369b8d(0x2d4)]['belongsToMany'](_0x3733d7['VoicePrefix'],{'as':_0x369b8d(0x2e1),'through':_0x369b8d(0x1be)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x23e)](_0x3733d7['ChatWebsite'],{'as':_0x369b8d(0x334),'through':_0x369b8d(0x248)}),_0x3733d7[_0x369b8d(0x2d4)]['belongsToMany'](_0x3733d7['FaxAccount'],{'as':_0x369b8d(0x257),'through':_0x369b8d(0x31a)}),_0x3733d7[_0x369b8d(0x2d4)]['belongsToMany'](_0x3733d7[_0x369b8d(0x255)],{'as':'MailAccounts','through':_0x369b8d(0x1bf)}),_0x3733d7[_0x369b8d(0x2d4)]['belongsToMany'](_0x3733d7[_0x369b8d(0x339)],{'as':_0x369b8d(0x23f),'through':_0x369b8d(0x1ba)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x23e)](_0x3733d7['SmsAccount'],{'as':'SmsAccounts','through':_0x369b8d(0x31f)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x25d)],{'as':_0x369b8d(0x22d),'through':_0x369b8d(0x240)}),_0x3733d7[_0x369b8d(0x2d4)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x368)],{'as':'SquareProjects','through':_0x369b8d(0x32a)}),_0x3733d7['VoiceChanSpy'][_0x369b8d(0x2e0)](_0x3733d7['VoiceExtension'],{'as':_0x369b8d(0x1e9),'onDelete':'cascade','foreignKey':_0x369b8d(0x252)}),_0x3733d7['VoiceContext']['hasMany'](_0x3733d7[_0x369b8d(0x25b)],{'onDelete':_0x369b8d(0x1e5)}),_0x3733d7['VoiceExtension'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x25b)],{'as':_0x369b8d(0x308),'onDelete':_0x369b8d(0x1e5)}),_0x3733d7[_0x369b8d(0x1cc)][_0x369b8d(0x23e)](_0x3733d7['Sound'],{'as':_0x369b8d(0x1bd),'through':_0x369b8d(0x259)}),_0x3733d7[_0x369b8d(0x2bd)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x1ad)],{'as':_0x369b8d(0x215),'foreignKey':_0x369b8d(0x26d)}),_0x3733d7[_0x369b8d(0x2bd)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x266)],{'as':_0x369b8d(0x1b9),'foreignKey':_0x369b8d(0x26d)}),_0x3733d7[_0x369b8d(0x2bd)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x20e)],{'as':_0x369b8d(0x1dc),'foreignKey':_0x369b8d(0x26d)}),_0x3733d7['VoiceQueue']['hasMany'](_0x3733d7['CmHopperHistory'],{'as':_0x369b8d(0x34a),'foreignKey':_0x369b8d(0x26d)}),_0x3733d7['VoiceQueue']['hasMany'](_0x3733d7[_0x369b8d(0x218)],{'as':_0x369b8d(0x218),'foreignKey':_0x369b8d(0x26d)}),_0x3733d7[_0x369b8d(0x2bd)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x26c)],{'as':_0x369b8d(0x36b),'foreignKey':_0x369b8d(0x26d)}),_0x3733d7[_0x369b8d(0x2bd)]['hasMany'](_0x3733d7[_0x369b8d(0x1e2)],{'as':'JscriptySessions','foreignKey':_0x369b8d(0x26d)}),_0x3733d7[_0x369b8d(0x2bd)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1f6)],{'as':_0x369b8d(0x1f6),'foreignKey':_0x369b8d(0x1b7)}),_0x3733d7[_0x369b8d(0x2bd)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1f6)],{'as':_0x369b8d(0x303),'foreignKey':'TrunkBackupId'}),_0x3733d7[_0x369b8d(0x2bd)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2a6)],{'as':_0x369b8d(0x2a6),'foreignKey':_0x369b8d(0x203)}),_0x3733d7['VoiceQueue'][_0x369b8d(0x1fd)](_0x3733d7['Pause'],{'as':_0x369b8d(0x1b0),'foreignKey':_0x369b8d(0x261)}),_0x3733d7[_0x369b8d(0x2bd)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x236)],{'as':_0x369b8d(0x26b),'through':_0x369b8d(0x2c0)}),_0x3733d7[_0x369b8d(0x2bd)]['belongsToMany'](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x30b),'through':_0x369b8d(0x34d)}),_0x3733d7[_0x369b8d(0x2bd)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x21d)],{'as':'Teams','through':_0x369b8d(0x35f)}),_0x3733d7['VoiceQueue'][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x236)],{'as':_0x369b8d(0x1fe),'through':_0x369b8d(0x31b)}),_0x3733d7[_0x369b8d(0x359)]['belongsTo'](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x2d4),'foreignKey':_0x369b8d(0x326)}),_0x3733d7['ScreenRecording']['belongsTo'](_0x3733d7[_0x369b8d(0x2d4)],{'as':'User','foreignKey':_0x369b8d(0x326)}),_0x3733d7['VoiceMail'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x1a2)],{'as':_0x369b8d(0x1bc),'onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x21e),'sourceKey':_0x369b8d(0x36c)}),_0x3733d7[_0x369b8d(0x1a2)]['belongsTo'](_0x3733d7[_0x369b8d(0x2fd)],{'foreignKey':_0x369b8d(0x21e),'targetKey':'mailbox'}),_0x3733d7[_0x369b8d(0x2d7)]['hasMany'](_0x3733d7[_0x369b8d(0x217)],{'as':_0x369b8d(0x304),'foreignKey':_0x369b8d(0x32d),'constraints':![]}),_0x3733d7[_0x369b8d(0x2d7)][_0x369b8d(0x2e0)](_0x3733d7['VoiceAgentReport'],{'as':_0x369b8d(0x1ee),'foreignKey':_0x369b8d(0x32d),'constraints':![]}),_0x3733d7['VoiceCallReport'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2d4)],{'as':'User','foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x2d7)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x235)],{'as':_0x369b8d(0x2d9),'foreignKey':_0x369b8d(0x2a5)}),_0x3733d7[_0x369b8d(0x362)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x255)],{'as':_0x369b8d(0x255),'foreignKey':_0x369b8d(0x32b)}),_0x3733d7[_0x369b8d(0x21f)]['belongsTo'](_0x3733d7[_0x369b8d(0x255)],{'as':_0x369b8d(0x255),'foreignKey':'MailAccountId'}),_0x3733d7[_0x369b8d(0x255)][_0x369b8d(0x342)](_0x3733d7[_0x369b8d(0x362)],{'as':_0x369b8d(0x22b),'foreignKey':'MailAccountId','onDelete':_0x369b8d(0x1e5)}),_0x3733d7[_0x369b8d(0x255)][_0x369b8d(0x342)](_0x3733d7[_0x369b8d(0x21f)],{'as':_0x369b8d(0x32e),'foreignKey':_0x369b8d(0x32b),'onDelete':_0x369b8d(0x1e5)}),_0x3733d7['MailAccount'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x273)],{'as':'Dispositions','foreignKey':'MailAccountId'}),_0x3733d7[_0x369b8d(0x255)][_0x369b8d(0x2e0)](_0x3733d7['CannedAnswer'],{'as':_0x369b8d(0x344),'foreignKey':_0x369b8d(0x32b)}),_0x3733d7[_0x369b8d(0x255)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2e3)],{'as':'Messages','foreignKey':_0x369b8d(0x32b)}),_0x3733d7[_0x369b8d(0x255)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2b7)],{'as':_0x369b8d(0x35d)}),_0x3733d7['MailAccount'][_0x369b8d(0x2e0)](_0x3733d7['MailApplication'],{'as':_0x369b8d(0x308)}),_0x3733d7['MailAccount'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x236)],{'as':_0x369b8d(0x306),'foreignKey':_0x369b8d(0x335)}),_0x3733d7[_0x369b8d(0x255)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x242)],{'as':_0x369b8d(0x242),'foreignKey':_0x369b8d(0x289)}),_0x3733d7[_0x369b8d(0x255)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1b6)],{'as':_0x369b8d(0x1b0),'foreignKey':_0x369b8d(0x261)}),_0x3733d7['MailAccount']['belongsToMany'](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x30b),'through':_0x369b8d(0x1bf)}),_0x3733d7[_0x369b8d(0x1ff)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x30b),'through':_0x369b8d(0x315)}),_0x3733d7[_0x369b8d(0x1ff)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x21d)],{'through':_0x369b8d(0x219),'as':_0x369b8d(0x34f)}),_0x3733d7[_0x369b8d(0x2b7)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2e3)],{'as':'Messages','onDelete':'cascade','foreignKey':_0x369b8d(0x363)}),_0x3733d7[_0x369b8d(0x2b7)][_0x369b8d(0x1fd)](_0x3733d7['MailAccount'],{'as':_0x369b8d(0x202),'foreignKey':_0x369b8d(0x32b)}),_0x3733d7[_0x369b8d(0x2b7)][_0x369b8d(0x1fd)](_0x3733d7['CmContact'],{'as':_0x369b8d(0x2d9),'foreignKey':_0x369b8d(0x2a5)}),_0x3733d7[_0x369b8d(0x2b7)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x358),'foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x2b7)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d6)],{'through':_0x369b8d(0x29c),'as':_0x369b8d(0x361)}),_0x3733d7[_0x369b8d(0x2b7)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d6)],{'through':'mail_interaction_has_tags','as':'ThroughTags'}),_0x3733d7[_0x369b8d(0x2b7)]['belongsToMany'](_0x3733d7['User'],{'as':'Users','through':_0x369b8d(0x1ea),'foreignKey':_0x369b8d(0x363)}),_0x3733d7[_0x369b8d(0x2e3)][_0x369b8d(0x2e0)](_0x3733d7['Attachment'],{'as':_0x369b8d(0x366),'onDelete':'cascade'}),_0x3733d7[_0x369b8d(0x2e3)]['belongsTo'](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x2d4),'foreignKey':'UserId'}),_0x3733d7['MailMessage'][_0x369b8d(0x1fd)](_0x3733d7['CmContact'],{'onDelete':'cascade','as':'Contact','foreignKey':'ContactId'}),_0x3733d7['MailMessage'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2b7)],{'as':_0x369b8d(0x216),'foreignKey':_0x369b8d(0x363)}),_0x3733d7['MailMessage'][_0x369b8d(0x1fd)](_0x3733d7['MailAccount'],{'as':_0x369b8d(0x202),'foreignKey':_0x369b8d(0x32b)}),_0x3733d7['MailApplication'][_0x369b8d(0x1fd)](_0x3733d7['User'],{'onDelete':'restrict','foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x1b4)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1ff)],{'onDelete':_0x369b8d(0x256),'foreignKey':_0x369b8d(0x2f4)}),_0x3733d7[_0x369b8d(0x1b4)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x255)],{'onDelete':_0x369b8d(0x256),'foreignKey':_0x369b8d(0x32b)}),_0x3733d7['MailApplication'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2a6)],{'onDelete':_0x369b8d(0x256),'foreignKey':_0x369b8d(0x203)}),_0x3733d7[_0x369b8d(0x1b4)][_0x369b8d(0x1fd)](_0x3733d7['Tag'],{'onDelete':_0x369b8d(0x256),'foreignKey':_0x369b8d(0x30d)}),_0x3733d7[_0x369b8d(0x2ec)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x255)],{'foreignKey':_0x369b8d(0x32b)}),_0x3733d7[_0x369b8d(0x2ec)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x236)],{'as':_0x369b8d(0x306),'foreignKey':_0x369b8d(0x335)}),_0x3733d7['MailQueueReport']['belongsTo'](_0x3733d7[_0x369b8d(0x235)],{'as':_0x369b8d(0x2d9),'foreignKey':'ContactId'}),_0x3733d7[_0x369b8d(0x2ec)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2b7)],{'foreignKey':_0x369b8d(0x363)}),_0x3733d7[_0x369b8d(0x2ec)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2e3)],{'foreignKey':_0x369b8d(0x307)}),_0x3733d7[_0x369b8d(0x2ec)]['belongsTo'](_0x3733d7[_0x369b8d(0x2d4)],{'foreignKey':_0x369b8d(0x326)}),_0x3733d7['MailQueueReport'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1ff)],{'foreignKey':'MailQueueId'}),_0x3733d7[_0x369b8d(0x28c)][_0x369b8d(0x2e0)](_0x3733d7['DashboardItem'],{'as':_0x369b8d(0x27c),'onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x232)}),_0x3733d7[_0x369b8d(0x27b)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x273)],{'as':_0x369b8d(0x33f),'foreignKey':'FaxAccountId'}),_0x3733d7['FaxAccount'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x211)],{'as':'Answers','foreignKey':_0x369b8d(0x1d9)}),_0x3733d7[_0x369b8d(0x27b)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x214)],{'as':_0x369b8d(0x35d)}),_0x3733d7[_0x369b8d(0x27b)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2e8)],{'as':_0x369b8d(0x308)}),_0x3733d7[_0x369b8d(0x27b)]['hasMany'](_0x3733d7[_0x369b8d(0x25b)],{'as':_0x369b8d(0x2ca),'onDelete':'cascade'}),_0x3733d7[_0x369b8d(0x27b)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x35a)],{'as':_0x369b8d(0x1bc)}),_0x3733d7[_0x369b8d(0x27b)][_0x369b8d(0x1fd)](_0x3733d7['Trunk'],{'as':_0x369b8d(0x1f6),'foreignKey':'TrunkId'}),_0x3733d7['FaxAccount'][_0x369b8d(0x1fd)](_0x3733d7['CmList'],{'as':_0x369b8d(0x306),'foreignKey':_0x369b8d(0x335)}),_0x3733d7[_0x369b8d(0x27b)][_0x369b8d(0x1fd)](_0x3733d7['Pause'],{'as':_0x369b8d(0x1b0),'foreignKey':'mandatoryDispositionPauseId'}),_0x3733d7[_0x369b8d(0x27b)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d4)],{'as':'Agents','through':'user_has_fax_accounts'}),_0x3733d7[_0x369b8d(0x2e8)][_0x369b8d(0x1fd)](_0x3733d7['User'],{'onDelete':_0x369b8d(0x256),'foreignKey':'UserId'}),_0x3733d7[_0x369b8d(0x2e8)]['belongsTo'](_0x3733d7[_0x369b8d(0x233)],{'onDelete':_0x369b8d(0x256),'foreignKey':_0x369b8d(0x2a3)}),_0x3733d7[_0x369b8d(0x2e8)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x27b)],{'onDelete':'restrict','foreignKey':_0x369b8d(0x1d9)}),_0x3733d7[_0x369b8d(0x2e8)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2d6)],{'onDelete':_0x369b8d(0x256),'foreignKey':_0x369b8d(0x30d)}),_0x3733d7[_0x369b8d(0x214)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x35a)],{'as':_0x369b8d(0x1bc),'onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x2fe)}),_0x3733d7[_0x369b8d(0x214)]['belongsTo'](_0x3733d7[_0x369b8d(0x27b)],{'as':_0x369b8d(0x202),'foreignKey':'FaxAccountId'}),_0x3733d7[_0x369b8d(0x214)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x235)],{'as':'Contact','foreignKey':_0x369b8d(0x2a5)}),_0x3733d7[_0x369b8d(0x214)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x358),'foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x214)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d6)],{'through':'fax_interaction_has_tags','as':_0x369b8d(0x361)}),_0x3733d7[_0x369b8d(0x214)]['belongsToMany'](_0x3733d7[_0x369b8d(0x2d6)],{'through':_0x369b8d(0x2f5),'as':_0x369b8d(0x36d)}),_0x3733d7[_0x369b8d(0x214)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d4)],{'as':'Users','through':_0x369b8d(0x2b6),'foreignKey':_0x369b8d(0x2fe)}),_0x3733d7['FaxMessage']['belongsTo'](_0x3733d7[_0x369b8d(0x2d4)],{'onDelete':_0x369b8d(0x1e5),'as':_0x369b8d(0x2d4),'foreignKey':'UserId'}),_0x3733d7[_0x369b8d(0x35a)][_0x369b8d(0x1fd)](_0x3733d7['FaxInteraction'],{'as':'Interaction','foreignKey':_0x369b8d(0x2fe)}),_0x3733d7['FaxMessage']['belongsTo'](_0x3733d7[_0x369b8d(0x235)],{'onDelete':_0x369b8d(0x1e5),'as':_0x369b8d(0x2d9),'foreignKey':_0x369b8d(0x2a5)}),_0x3733d7['FaxMessage'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x26f)],{'as':'Attachment','foreignKey':'AttachmentId'}),_0x3733d7[_0x369b8d(0x35a)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x27b)],{'as':_0x369b8d(0x202),'foreignKey':_0x369b8d(0x1d9)}),_0x3733d7[_0x369b8d(0x233)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d4)],{'as':'Agents','through':_0x369b8d(0x2de)}),_0x3733d7[_0x369b8d(0x233)]['belongsToMany'](_0x3733d7[_0x369b8d(0x21d)],{'through':_0x369b8d(0x28b),'as':'Teams'}),_0x3733d7[_0x369b8d(0x331)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x27b)],{'foreignKey':'FaxAccountId'}),_0x3733d7['FaxQueueReport'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x236)],{'as':_0x369b8d(0x306),'foreignKey':_0x369b8d(0x335)}),_0x3733d7[_0x369b8d(0x331)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x235)],{'as':_0x369b8d(0x2d9),'foreignKey':'ContactId'}),_0x3733d7['FaxQueueReport']['belongsTo'](_0x3733d7[_0x369b8d(0x214)],{'foreignKey':'FaxInteractionId'}),_0x3733d7[_0x369b8d(0x331)][_0x369b8d(0x1fd)](_0x3733d7['FaxMessage'],{'foreignKey':_0x369b8d(0x1e4)}),_0x3733d7[_0x369b8d(0x331)][_0x369b8d(0x1fd)](_0x3733d7['User'],{'foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x331)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x233)],{'foreignKey':_0x369b8d(0x2a3)}),_0x3733d7['SmsAccount'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x273)],{'as':_0x369b8d(0x33f),'foreignKey':_0x369b8d(0x30a)}),_0x3733d7[_0x369b8d(0x1df)][_0x369b8d(0x2e0)](_0x3733d7['CannedAnswer'],{'as':_0x369b8d(0x344),'foreignKey':_0x369b8d(0x30a)}),_0x3733d7[_0x369b8d(0x1df)]['hasMany'](_0x3733d7['SmsMessage'],{'as':'Messages','foreignKey':_0x369b8d(0x30a)}),_0x3733d7[_0x369b8d(0x1df)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2b8)],{'as':_0x369b8d(0x35d)}),_0x3733d7[_0x369b8d(0x1df)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2e2)],{'as':_0x369b8d(0x308)}),_0x3733d7[_0x369b8d(0x1df)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x236)],{'as':_0x369b8d(0x306),'foreignKey':_0x369b8d(0x335)}),_0x3733d7[_0x369b8d(0x1df)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1b6)],{'as':_0x369b8d(0x1b0),'foreignKey':_0x369b8d(0x261)}),_0x3733d7[_0x369b8d(0x1df)][_0x369b8d(0x23e)](_0x3733d7['User'],{'as':'Agents','through':_0x369b8d(0x31f)}),_0x3733d7['SmsApplication'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2d4)],{'onDelete':'restrict','foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x2e2)]['belongsTo'](_0x3733d7['SmsQueue'],{'onDelete':_0x369b8d(0x256),'foreignKey':_0x369b8d(0x360)}),_0x3733d7[_0x369b8d(0x2e2)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1df)],{'onDelete':_0x369b8d(0x256),'foreignKey':_0x369b8d(0x30a)}),_0x3733d7[_0x369b8d(0x2e2)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2a6)],{'onDelete':_0x369b8d(0x256),'foreignKey':_0x369b8d(0x203)}),_0x3733d7[_0x369b8d(0x2e2)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2d6)],{'onDelete':_0x369b8d(0x256),'foreignKey':_0x369b8d(0x30d)}),_0x3733d7[_0x369b8d(0x2b8)][_0x369b8d(0x2e0)](_0x3733d7['SmsMessage'],{'as':_0x369b8d(0x1bc),'onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x33b)}),_0x3733d7[_0x369b8d(0x2b8)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1df)],{'as':_0x369b8d(0x202),'foreignKey':_0x369b8d(0x30a)}),_0x3733d7[_0x369b8d(0x2b8)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x235)],{'as':'Contact','foreignKey':'ContactId'}),_0x3733d7['SmsInteraction'][_0x369b8d(0x1fd)](_0x3733d7['User'],{'as':_0x369b8d(0x358),'foreignKey':'UserId'}),_0x3733d7['SmsInteraction'][_0x369b8d(0x23e)](_0x3733d7['Tag'],{'through':_0x369b8d(0x1c5),'as':'Tags'}),_0x3733d7[_0x369b8d(0x2b8)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d6)],{'through':_0x369b8d(0x1c5),'as':'ThroughTags'}),_0x3733d7[_0x369b8d(0x2b8)][_0x369b8d(0x23e)](_0x3733d7['User'],{'as':_0x369b8d(0x1f7),'through':_0x369b8d(0x241),'foreignKey':_0x369b8d(0x33b)}),_0x3733d7[_0x369b8d(0x1de)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x2d4),'foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x1de)]['belongsTo'](_0x3733d7[_0x369b8d(0x235)],{'onDelete':_0x369b8d(0x1e5),'as':_0x369b8d(0x2d9)}),_0x3733d7['SmsMessage'][_0x369b8d(0x1fd)](_0x3733d7['SmsInteraction'],{'onDelete':_0x369b8d(0x1e5),'as':_0x369b8d(0x216),'foreignKey':'SmsInteractionId'}),_0x3733d7[_0x369b8d(0x1de)][_0x369b8d(0x1fd)](_0x3733d7['SmsAccount'],{'as':_0x369b8d(0x202),'foreignKey':_0x369b8d(0x30a)}),_0x3733d7[_0x369b8d(0x2bc)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d4)],{'as':'Agents','through':_0x369b8d(0x1d6),'foreignKey':_0x369b8d(0x360)}),_0x3733d7[_0x369b8d(0x2bc)][_0x369b8d(0x23e)](_0x3733d7['Team'],{'through':_0x369b8d(0x205),'as':_0x369b8d(0x34f)}),_0x3733d7['OpenchannelAccount'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x273)],{'as':_0x369b8d(0x33f),'foreignKey':'OpenchannelAccountId'}),_0x3733d7[_0x369b8d(0x339)][_0x369b8d(0x2e0)](_0x3733d7['CannedAnswer'],{'as':_0x369b8d(0x344),'foreignKey':'OpenchannelAccountId'}),_0x3733d7['OpenchannelAccount']['hasMany'](_0x3733d7[_0x369b8d(0x2bb)],{'as':_0x369b8d(0x35d),'foreignKey':'OpenchannelAccountId'}),_0x3733d7['OpenchannelAccount']['hasMany'](_0x3733d7[_0x369b8d(0x1ca)],{'as':_0x369b8d(0x1bc),'foreignKey':'OpenchannelAccountId'}),_0x3733d7[_0x369b8d(0x339)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x364)],{'as':_0x369b8d(0x308),'foreignKey':_0x369b8d(0x1af)}),_0x3733d7['OpenchannelAccount'][_0x369b8d(0x1fd)](_0x3733d7['CmList'],{'as':_0x369b8d(0x306),'foreignKey':'ListId'}),_0x3733d7['OpenchannelAccount'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1b6)],{'as':_0x369b8d(0x1b0),'foreignKey':_0x369b8d(0x261)}),_0x3733d7[_0x369b8d(0x339)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d4)],{'as':'Agents','through':_0x369b8d(0x1ba)}),_0x3733d7[_0x369b8d(0x364)]['belongsTo'](_0x3733d7['User'],{'onDelete':_0x369b8d(0x256),'foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x364)][_0x369b8d(0x1fd)](_0x3733d7['OpenchannelQueue'],{'onDelete':_0x369b8d(0x256),'foreignKey':_0x369b8d(0x1f9)}),_0x3733d7['OpenchannelApplication'][_0x369b8d(0x1fd)](_0x3733d7['OpenchannelAccount'],{'onDelete':_0x369b8d(0x256),'foreignKey':'OpenchannelAccountId'}),_0x3733d7['OpenchannelApplication'][_0x369b8d(0x1fd)](_0x3733d7['Interval'],{'onDelete':'restrict','foreignKey':'IntervalId'}),_0x3733d7['OpenchannelApplication'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2d6)],{'onDelete':_0x369b8d(0x256),'foreignKey':'TagId'}),_0x3733d7[_0x369b8d(0x2bb)]['hasMany'](_0x3733d7[_0x369b8d(0x1ca)],{'as':_0x369b8d(0x1bc),'onDelete':_0x369b8d(0x1e5),'foreignKey':'OpenchannelInteractionId'}),_0x3733d7[_0x369b8d(0x2bb)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x339)],{'as':_0x369b8d(0x202),'foreignKey':_0x369b8d(0x1af)}),_0x3733d7[_0x369b8d(0x2bb)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x235)],{'as':_0x369b8d(0x2d9),'foreignKey':_0x369b8d(0x2a5)}),_0x3733d7[_0x369b8d(0x2bb)][_0x369b8d(0x1fd)](_0x3733d7['User'],{'as':'Owner','foreignKey':_0x369b8d(0x326)}),_0x3733d7['OpenchannelInteraction'][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d6)],{'through':_0x369b8d(0x258),'as':_0x369b8d(0x361)}),_0x3733d7[_0x369b8d(0x2bb)][_0x369b8d(0x23e)](_0x3733d7['Tag'],{'through':_0x369b8d(0x258),'as':_0x369b8d(0x36d)}),_0x3733d7[_0x369b8d(0x2bb)]['belongsToMany'](_0x3733d7['User'],{'as':_0x369b8d(0x1f7),'through':_0x369b8d(0x1ac),'foreignKey':'OpenchannelInteractionId'}),_0x3733d7[_0x369b8d(0x1ca)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2d4)],{'onDelete':_0x369b8d(0x1e5),'as':_0x369b8d(0x2d4),'foreignKey':_0x369b8d(0x326)}),_0x3733d7['OpenchannelMessage']['belongsTo'](_0x3733d7['CmContact'],{'onDelete':_0x369b8d(0x1e5),'as':'Contact','foreignKey':_0x369b8d(0x2a5)}),_0x3733d7[_0x369b8d(0x1ca)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2bb)],{'onDelete':'cascade','as':_0x369b8d(0x216),'foreignKey':_0x369b8d(0x369)}),_0x3733d7[_0x369b8d(0x1ca)]['belongsTo'](_0x3733d7[_0x369b8d(0x26f)],{'as':'Attachment','foreignKey':'AttachmentId'}),_0x3733d7[_0x369b8d(0x1ca)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x339)],{'as':_0x369b8d(0x202),'foreignKey':_0x369b8d(0x1af)}),_0x3733d7[_0x369b8d(0x1b3)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x30b),'through':_0x369b8d(0x318),'foreignKey':'OpenchannelQueueId'}),_0x3733d7[_0x369b8d(0x1b3)][_0x369b8d(0x23e)](_0x3733d7['Team'],{'through':_0x369b8d(0x35e),'as':_0x369b8d(0x34f)}),_0x3733d7['ChatWebsite'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x273)],{'as':_0x369b8d(0x33f),'foreignKey':'ChatWebsiteId'}),_0x3733d7[_0x369b8d(0x213)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x211)],{'as':_0x369b8d(0x344),'foreignKey':'ChatWebsiteId'}),_0x3733d7[_0x369b8d(0x213)][_0x369b8d(0x2e0)](_0x3733d7['ChatProactiveAction'],{'as':_0x369b8d(0x226)}),_0x3733d7['ChatWebsite']['hasMany'](_0x3733d7['ChatInteraction'],{'as':_0x369b8d(0x35d)}),_0x3733d7[_0x369b8d(0x213)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2fc)],{'as':_0x369b8d(0x308)}),_0x3733d7[_0x369b8d(0x213)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x1f5)],{'as':'Messages'}),_0x3733d7[_0x369b8d(0x213)][_0x369b8d(0x1fd)](_0x3733d7['CmList'],{'as':'List','foreignKey':_0x369b8d(0x335)}),_0x3733d7['ChatWebsite'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2a6)],{'as':_0x369b8d(0x2a6),'foreignKey':'IntervalId'}),_0x3733d7[_0x369b8d(0x213)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1b6)],{'as':_0x369b8d(0x1b0),'foreignKey':_0x369b8d(0x261)}),_0x3733d7[_0x369b8d(0x213)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d4)],{'as':'Agents','through':'user_has_chat_websites'}),_0x3733d7[_0x369b8d(0x333)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x339)],{'foreignKey':_0x369b8d(0x1af)}),_0x3733d7[_0x369b8d(0x333)][_0x369b8d(0x1fd)](_0x3733d7['CmList'],{'as':_0x369b8d(0x306),'foreignKey':_0x369b8d(0x335)}),_0x3733d7[_0x369b8d(0x333)]['belongsTo'](_0x3733d7[_0x369b8d(0x235)],{'as':_0x369b8d(0x2d9),'foreignKey':_0x369b8d(0x2a5)}),_0x3733d7['OpenchannelQueueReport'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2bb)],{'foreignKey':_0x369b8d(0x369)}),_0x3733d7[_0x369b8d(0x333)][_0x369b8d(0x1fd)](_0x3733d7['OpenchannelMessage'],{'foreignKey':'OpenchannelMessageId'}),_0x3733d7[_0x369b8d(0x333)]['belongsTo'](_0x3733d7[_0x369b8d(0x2d4)],{'foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x333)]['belongsTo'](_0x3733d7[_0x369b8d(0x1b3)],{'foreignKey':_0x369b8d(0x1f9)}),_0x3733d7[_0x369b8d(0x2fc)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x347),'foreignKey':_0x369b8d(0x326),'onDelete':_0x369b8d(0x256)}),_0x3733d7[_0x369b8d(0x2fc)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x33c)],{'as':'Queue','foreignKey':_0x369b8d(0x2cb),'onDelete':_0x369b8d(0x256)}),_0x3733d7['ChatApplication']['belongsTo'](_0x3733d7['ChatWebsite'],{'as':_0x369b8d(0x275),'foreignKey':_0x369b8d(0x2ee),'onDelete':_0x369b8d(0x256)}),_0x3733d7[_0x369b8d(0x2fc)]['belongsTo'](_0x3733d7[_0x369b8d(0x2d6)],{'onDelete':_0x369b8d(0x256),'foreignKey':'TagId'}),_0x3733d7['ChatInteraction']['hasMany'](_0x3733d7[_0x369b8d(0x1f5)],{'as':'Messages','onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x322)}),_0x3733d7[_0x369b8d(0x1cf)]['belongsTo'](_0x3733d7['ChatWebsite'],{'as':_0x369b8d(0x202),'foreignKey':_0x369b8d(0x2ee)}),_0x3733d7[_0x369b8d(0x1cf)]['belongsTo'](_0x3733d7[_0x369b8d(0x235)],{'as':_0x369b8d(0x2d9),'foreignKey':'ContactId'}),_0x3733d7[_0x369b8d(0x1cf)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x358),'foreignKey':'UserId'}),_0x3733d7[_0x369b8d(0x1cf)][_0x369b8d(0x23e)](_0x3733d7['Tag'],{'through':'chat_interaction_has_tags','as':_0x369b8d(0x361)}),_0x3733d7[_0x369b8d(0x1cf)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d6)],{'through':_0x369b8d(0x246),'as':_0x369b8d(0x36d)}),_0x3733d7['ChatInteraction'][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d4)],{'as':'Users','through':_0x369b8d(0x2b9),'foreignKey':_0x369b8d(0x322)}),_0x3733d7[_0x369b8d(0x1f5)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2d4)],{'onDelete':_0x369b8d(0x1e5),'as':'User','foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x1f5)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x235)],{'onDelete':_0x369b8d(0x1e5),'as':_0x369b8d(0x2d9),'foreignKey':_0x369b8d(0x2a5)}),_0x3733d7[_0x369b8d(0x1f5)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1cf)],{'onDelete':_0x369b8d(0x1e5),'as':'Interaction','foreignKey':'ChatInteractionId'}),_0x3733d7['ChatMessage'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x26f)],{'as':_0x369b8d(0x26f),'foreignKey':_0x369b8d(0x24a)}),_0x3733d7[_0x369b8d(0x1f5)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x213)],{'as':'Account','foreignKey':_0x369b8d(0x2ee)}),_0x3733d7[_0x369b8d(0x200)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x235)],{'onDelete':_0x369b8d(0x1e5),'as':'Contact','foreignKey':'ContactId'}),_0x3733d7[_0x369b8d(0x200)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x213)],{'as':'Account','foreignKey':'ChatWebsiteId'}),_0x3733d7[_0x369b8d(0x33c)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x30b),'through':_0x369b8d(0x271),'hooks':!![]}),_0x3733d7[_0x369b8d(0x33c)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x21d)],{'through':_0x369b8d(0x243),'as':_0x369b8d(0x34f)}),_0x3733d7[_0x369b8d(0x365)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2a4)],{'as':_0x369b8d(0x1bc),'foreignKey':_0x369b8d(0x224),'onDelete':_0x369b8d(0x1e5)}),_0x3733d7[_0x369b8d(0x365)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x215),'through':_0x369b8d(0x286)}),_0x3733d7[_0x369b8d(0x313)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x213)],{'as':'Website','foreignKey':_0x369b8d(0x2ee)}),_0x3733d7[_0x369b8d(0x220)][_0x369b8d(0x2e0)](_0x3733d7['CmContact'],{'as':_0x369b8d(0x1eb),'foreignKey':'CompanyId'}),_0x3733d7[_0x369b8d(0x235)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x266)],{'as':_0x369b8d(0x1b9),'foreignKey':'ContactId'}),_0x3733d7['CmContact'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x20e)],{'as':_0x369b8d(0x1dc),'foreignKey':_0x369b8d(0x2a5)}),_0x3733d7['CmContact']['hasMany'](_0x3733d7[_0x369b8d(0x1a1)],{'as':_0x369b8d(0x34a),'foreignKey':'ContactId'}),_0x3733d7[_0x369b8d(0x235)]['hasMany'](_0x3733d7[_0x369b8d(0x218)],{'as':_0x369b8d(0x218),'foreignKey':'ContactId'}),_0x3733d7[_0x369b8d(0x235)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x1e2)],{'as':_0x369b8d(0x312),'foreignKey':'ContactId'}),_0x3733d7[_0x369b8d(0x235)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2bb)],{'as':'OpenchannelInteractions','foreignKey':_0x369b8d(0x2a5),'onDelete':'restrict'}),_0x3733d7['CmContact'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x1cf)],{'as':'ChatInteractions','foreignKey':_0x369b8d(0x2a5),'onDelete':'restrict'}),_0x3733d7[_0x369b8d(0x235)]['hasMany'](_0x3733d7['SmsInteraction'],{'as':_0x369b8d(0x2b4),'foreignKey':_0x369b8d(0x2a5),'onDelete':'restrict'}),_0x3733d7[_0x369b8d(0x235)][_0x369b8d(0x2e0)](_0x3733d7['FaxInteraction'],{'as':_0x369b8d(0x1f0),'foreignKey':_0x369b8d(0x2a5),'onDelete':_0x369b8d(0x256)}),_0x3733d7['CmContact'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2b7)],{'as':'MailInteractions','foreignKey':'ContactId','onDelete':_0x369b8d(0x256)}),_0x3733d7[_0x369b8d(0x235)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x220)],{'as':_0x369b8d(0x237),'foreignKey':_0x369b8d(0x311)}),_0x3733d7[_0x369b8d(0x235)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x236)],{'as':_0x369b8d(0x306),'foreignKey':_0x369b8d(0x335),'onDelete':_0x369b8d(0x1e5)}),_0x3733d7['CmContact'][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x1f7),'through':'cm_user_has_contacts'}),_0x3733d7['CmContact']['belongsToMany'](_0x3733d7[_0x369b8d(0x2d6)],{'as':_0x369b8d(0x361),'through':'cm_contact_has_tags'}),_0x3733d7[_0x369b8d(0x235)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d6)],{'through':_0x369b8d(0x1ab),'as':_0x369b8d(0x36d)}),_0x3733d7['CmHopper'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x235)],{'as':'Contact','foreignKey':_0x369b8d(0x2a5),'onDelete':_0x369b8d(0x1e5)}),_0x3733d7[_0x369b8d(0x266)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x236)],{'as':_0x369b8d(0x306),'foreignKey':_0x369b8d(0x335),'onDelete':_0x369b8d(0x1e5)}),_0x3733d7[_0x369b8d(0x266)]['belongsTo'](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x347),'foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x266)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2bd)],{'as':_0x369b8d(0x221),'foreignKey':_0x369b8d(0x26d),'onDelete':_0x369b8d(0x1e5)}),_0x3733d7[_0x369b8d(0x266)]['belongsTo'](_0x3733d7[_0x369b8d(0x22e)],{'as':_0x369b8d(0x22e),'foreignKey':_0x369b8d(0x31c),'onDelete':_0x369b8d(0x1e5)}),_0x3733d7[_0x369b8d(0x266)][_0x369b8d(0x1fd)](_0x3733d7['User'],{'as':_0x369b8d(0x358),'foreignKey':_0x369b8d(0x2be)}),_0x3733d7['CmHopperBlack'][_0x369b8d(0x1fd)](_0x3733d7['CmContact'],{'as':_0x369b8d(0x2d9),'foreignKey':_0x369b8d(0x2a5),'onDelete':_0x369b8d(0x1e5)}),_0x3733d7[_0x369b8d(0x26c)][_0x369b8d(0x1fd)](_0x3733d7['CmList'],{'as':_0x369b8d(0x306),'foreignKey':'ListId','onDelete':_0x369b8d(0x1e5)}),_0x3733d7[_0x369b8d(0x26c)][_0x369b8d(0x1fd)](_0x3733d7['VoiceQueue'],{'as':_0x369b8d(0x221),'foreignKey':_0x369b8d(0x26d),'onDelete':'cascade'}),_0x3733d7['CmHopperBlack'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x22e)],{'as':'Campaign','foreignKey':_0x369b8d(0x31c),'onDelete':_0x369b8d(0x1e5)}),_0x3733d7[_0x369b8d(0x32c)]['hasMany'](_0x3733d7[_0x369b8d(0x24f)],{'as':{'plural':'All','singular':_0x369b8d(0x2df)},'foreignKey':_0x369b8d(0x287),'onDelete':_0x369b8d(0x1e5),'hooks':!![]}),_0x3733d7[_0x369b8d(0x32c)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x24f)],{'as':{'plural':'Any','singular':_0x369b8d(0x2a1)},'foreignKey':'AutomationAnyId','onDelete':'cascade','hooks':!![]}),_0x3733d7[_0x369b8d(0x32c)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2ce)],{'as':'Actions','foreignKey':_0x369b8d(0x212),'onDelete':_0x369b8d(0x1e5),'hooks':!![]}),_0x3733d7[_0x369b8d(0x273)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x273)],{'as':'Dispositions','foreignKey':'ParentId','onDelete':'cascade'}),_0x3733d7['Interval']['hasMany'](_0x3733d7[_0x369b8d(0x2a6)],{'as':'Intervals','foreignKey':_0x369b8d(0x203),'onDelete':_0x369b8d(0x1e5),'hooks':!![]}),_0x3733d7['Interval']['hasMany'](_0x3733d7[_0x369b8d(0x25b)],{'as':'Extensions','foreignKey':_0x369b8d(0x203),'onDelete':_0x369b8d(0x256)}),_0x3733d7[_0x369b8d(0x2a6)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x1b4)],{'as':_0x369b8d(0x20a),'foreignKey':_0x369b8d(0x203)}),_0x3733d7['Interval'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2fc)],{'as':_0x369b8d(0x2a8),'foreignKey':_0x369b8d(0x203)}),_0x3733d7['Interval']['hasMany'](_0x3733d7[_0x369b8d(0x2e8)],{'as':_0x369b8d(0x346),'foreignKey':_0x369b8d(0x203)}),_0x3733d7[_0x369b8d(0x2a6)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2e2)],{'as':_0x369b8d(0x1ae),'foreignKey':_0x369b8d(0x203)}),_0x3733d7[_0x369b8d(0x23b)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x255)],{'foreignKey':'MailAccountId'}),_0x3733d7[_0x369b8d(0x23b)]['belongsTo'](_0x3733d7[_0x369b8d(0x1d3)],{'foreignKey':_0x369b8d(0x272)}),_0x3733d7[_0x369b8d(0x23b)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x357)],{'foreignKey':'CustomReportId'}),_0x3733d7[_0x369b8d(0x367)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x1cc)],{'as':_0x369b8d(0x249),'through':_0x369b8d(0x259),'onDelete':'restrict'}),_0x3733d7['Tag'][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x235)],{'through':_0x369b8d(0x1ab)}),_0x3733d7[_0x369b8d(0x2d6)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x1cf)],{'through':'chat_interaction_has_tags'}),_0x3733d7[_0x369b8d(0x2d6)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2b7)],{'through':_0x369b8d(0x29c)}),_0x3733d7[_0x369b8d(0x2d6)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2b8)],{'through':_0x369b8d(0x1c5)}),_0x3733d7[_0x369b8d(0x2d6)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x214)],{'through':_0x369b8d(0x2f5)}),_0x3733d7[_0x369b8d(0x2d6)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2bb)],{'through':'openchannel_interaction_has_tags'}),_0x3733d7['Tag'][_0x369b8d(0x23e)](_0x3733d7['WhatsappInteraction'],{'through':_0x369b8d(0x268)}),_0x3733d7[_0x369b8d(0x353)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x24f)],{'as':{'plural':_0x369b8d(0x20d),'singular':_0x369b8d(0x284)},'foreignKey':_0x369b8d(0x2b2),'onDelete':_0x369b8d(0x1e5),'hooks':!![]}),_0x3733d7[_0x369b8d(0x353)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x24f)],{'as':{'plural':_0x369b8d(0x2c2),'singular':_0x369b8d(0x295)},'foreignKey':'TriggerAnyId','onDelete':'cascade','hooks':!![]}),_0x3733d7[_0x369b8d(0x353)]['hasMany'](_0x3733d7[_0x369b8d(0x2ce)],{'as':'Actions','foreignKey':_0x369b8d(0x1b8),'onDelete':_0x369b8d(0x1e5),'hooks':!![]}),_0x3733d7['AnalyticCustomReport'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x1c7)],{'as':_0x369b8d(0x1f1),'onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x280),'hooks':!![]}),_0x3733d7[_0x369b8d(0x1d3)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x1c7)],{'as':_0x369b8d(0x1f1),'onDelete':_0x369b8d(0x1e5),'foreignKey':'DefaultReportId'}),_0x3733d7[_0x369b8d(0x1db)][_0x369b8d(0x2e0)](_0x3733d7['AnalyticFieldReport'],{'as':'Fields','onDelete':_0x369b8d(0x1e5),'foreignKey':'MetricId'}),_0x3733d7['AnalyticFieldReport']['belongsTo'](_0x3733d7[_0x369b8d(0x1db)],{'foreignKey':_0x369b8d(0x274)}),_0x3733d7['SalesforceAccount'][_0x369b8d(0x2e0)](_0x3733d7['SalesforceConfiguration'],{'as':_0x369b8d(0x26a),'onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x2c9)}),_0x3733d7[_0x369b8d(0x325)][_0x369b8d(0x2e0)](_0x3733d7['SalesforceField'],{'as':_0x369b8d(0x1c3),'onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x2c8)}),_0x3733d7[_0x369b8d(0x325)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2ad)],{'as':_0x369b8d(0x229),'onDelete':'cascade','foreignKey':_0x369b8d(0x2ba)}),_0x3733d7[_0x369b8d(0x325)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2ad)],{'as':_0x369b8d(0x1f1),'onDelete':_0x369b8d(0x1e5),'foreignKey':'FieldId'}),_0x3733d7[_0x369b8d(0x325)][_0x369b8d(0x1fd)](_0x3733d7['SalesforceAccount'],{'as':_0x369b8d(0x202),'foreignKey':'AccountId'}),_0x3733d7[_0x369b8d(0x2ad)]['hasMany'](_0x3733d7['SalesforceField'],{'as':_0x369b8d(0x2fa),'foreignKey':'SubjectId'}),_0x3733d7[_0x369b8d(0x2ad)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2ad)],{'as':_0x369b8d(0x247),'foreignKey':_0x369b8d(0x2ba)}),_0x3733d7[_0x369b8d(0x2ad)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2ad)],{'as':_0x369b8d(0x1ec),'foreignKey':_0x369b8d(0x2c1)}),_0x3733d7[_0x369b8d(0x2ad)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1a8)],{'as':_0x369b8d(0x1a8),'foreignKey':'VariableId'}),_0x3733d7[_0x369b8d(0x1a6)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2dd)],{'as':_0x369b8d(0x26a),'onDelete':'cascade','foreignKey':_0x369b8d(0x2c9)}),_0x3733d7[_0x369b8d(0x2dd)][_0x369b8d(0x2e0)](_0x3733d7['SugarcrmField'],{'as':_0x369b8d(0x1c3),'onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x2c8)}),_0x3733d7[_0x369b8d(0x2dd)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x225)],{'as':'Descriptions','onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x2ba)}),_0x3733d7[_0x369b8d(0x2dd)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x225)],{'as':_0x369b8d(0x1f1),'onDelete':_0x369b8d(0x1e5),'foreignKey':'FieldId'}),_0x3733d7[_0x369b8d(0x2dd)]['belongsTo'](_0x3733d7['SugarcrmAccount'],{'as':'Account','foreignKey':_0x369b8d(0x2c9)}),_0x3733d7[_0x369b8d(0x225)]['hasMany'](_0x3733d7[_0x369b8d(0x225)],{'as':_0x369b8d(0x2fa),'foreignKey':_0x369b8d(0x2c8)}),_0x3733d7['SugarcrmField'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x225)],{'as':_0x369b8d(0x247),'foreignKey':_0x369b8d(0x2ba)}),_0x3733d7[_0x369b8d(0x225)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x225)],{'as':'Field','foreignKey':_0x369b8d(0x2c1)}),_0x3733d7[_0x369b8d(0x225)]['belongsTo'](_0x3733d7['Variable'],{'as':_0x369b8d(0x1a8),'foreignKey':'VariableId'}),_0x3733d7[_0x369b8d(0x299)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2b1)],{'as':'Configurations','onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x2c9)}),_0x3733d7['DeskConfiguration']['hasMany'](_0x3733d7['DeskField'],{'as':_0x369b8d(0x1c3),'onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x2c8)}),_0x3733d7[_0x369b8d(0x2b1)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x300)],{'as':_0x369b8d(0x229),'onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x2ba)}),_0x3733d7['DeskConfiguration'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x300)],{'as':_0x369b8d(0x1f1),'onDelete':'cascade','foreignKey':'FieldId'}),_0x3733d7[_0x369b8d(0x2b1)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x299)],{'as':'Account','foreignKey':'AccountId'}),_0x3733d7['DeskConfiguration'][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d6)],{'through':_0x369b8d(0x34c)}),_0x3733d7[_0x369b8d(0x300)]['hasMany'](_0x3733d7[_0x369b8d(0x300)],{'as':_0x369b8d(0x2fa),'foreignKey':_0x369b8d(0x2c8)}),_0x3733d7[_0x369b8d(0x300)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x300)],{'as':_0x369b8d(0x247),'foreignKey':_0x369b8d(0x2ba)}),_0x3733d7[_0x369b8d(0x300)][_0x369b8d(0x2e0)](_0x3733d7['DeskField'],{'as':_0x369b8d(0x1ec),'foreignKey':_0x369b8d(0x2c1)}),_0x3733d7[_0x369b8d(0x300)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1a8)],{'as':_0x369b8d(0x1a8),'foreignKey':_0x369b8d(0x251)}),_0x3733d7[_0x369b8d(0x25e)][_0x369b8d(0x2e0)](_0x3733d7['ZohoConfiguration'],{'as':_0x369b8d(0x26a),'onDelete':'cascade','foreignKey':'AccountId'}),_0x3733d7[_0x369b8d(0x31d)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x204)],{'as':_0x369b8d(0x1c3),'onDelete':'cascade','foreignKey':'SubjectId'}),_0x3733d7[_0x369b8d(0x31d)][_0x369b8d(0x2e0)](_0x3733d7['ZohoField'],{'as':_0x369b8d(0x229),'onDelete':_0x369b8d(0x1e5),'foreignKey':'DescriptionId'}),_0x3733d7[_0x369b8d(0x31d)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x204)],{'as':_0x369b8d(0x1f1),'onDelete':'cascade','foreignKey':_0x369b8d(0x2c1)}),_0x3733d7[_0x369b8d(0x31d)]['belongsTo'](_0x3733d7[_0x369b8d(0x25e)],{'as':_0x369b8d(0x202),'foreignKey':_0x369b8d(0x2c9)}),_0x3733d7[_0x369b8d(0x204)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x204)],{'as':_0x369b8d(0x2fa),'foreignKey':_0x369b8d(0x2c8)}),_0x3733d7[_0x369b8d(0x204)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x204)],{'as':'Description','foreignKey':_0x369b8d(0x2ba)}),_0x3733d7[_0x369b8d(0x204)][_0x369b8d(0x2e0)](_0x3733d7['ZohoField'],{'as':_0x369b8d(0x1ec),'foreignKey':_0x369b8d(0x2c1)}),_0x3733d7[_0x369b8d(0x204)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1a8)],{'as':_0x369b8d(0x1a8),'foreignKey':'VariableId'}),_0x3733d7[_0x369b8d(0x30c)]['hasMany'](_0x3733d7[_0x369b8d(0x20b)],{'as':'Configurations','onDelete':_0x369b8d(0x1e5),'foreignKey':'AccountId'}),_0x3733d7[_0x369b8d(0x20b)]['hasMany'](_0x3733d7[_0x369b8d(0x2d3)],{'as':_0x369b8d(0x1c3),'foreignKey':_0x369b8d(0x2c8)}),_0x3733d7[_0x369b8d(0x20b)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2d3)],{'as':_0x369b8d(0x229),'foreignKey':_0x369b8d(0x2ba)}),_0x3733d7[_0x369b8d(0x20b)][_0x369b8d(0x2e0)](_0x3733d7['ZendeskField'],{'as':_0x369b8d(0x1f1),'foreignKey':_0x369b8d(0x2c1)}),_0x3733d7[_0x369b8d(0x20b)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x30c)],{'as':_0x369b8d(0x202),'foreignKey':_0x369b8d(0x2c9)}),_0x3733d7['ZendeskConfiguration'][_0x369b8d(0x23e)](_0x3733d7['Tag'],{'through':_0x369b8d(0x29d)}),_0x3733d7[_0x369b8d(0x2d3)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2d3)],{'as':_0x369b8d(0x2fa),'foreignKey':'SubjectId'}),_0x3733d7['ZendeskField'][_0x369b8d(0x2e0)](_0x3733d7['ZendeskField'],{'as':'Description','foreignKey':'DescriptionId'}),_0x3733d7[_0x369b8d(0x2d3)]['hasMany'](_0x3733d7['ZendeskField'],{'as':_0x369b8d(0x1ec),'foreignKey':_0x369b8d(0x2c1)}),_0x3733d7['ZendeskField'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1a8)],{'as':_0x369b8d(0x1a8),'foreignKey':_0x369b8d(0x251)}),_0x3733d7[_0x369b8d(0x2f6)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x336)],{'as':'Configurations','onDelete':'cascade','foreignKey':_0x369b8d(0x2c9)}),_0x3733d7['FreshdeskConfiguration'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2e5)],{'as':'Subjects','onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x2c8)}),_0x3733d7['FreshdeskConfiguration']['hasMany'](_0x3733d7[_0x369b8d(0x2e5)],{'as':_0x369b8d(0x229),'onDelete':_0x369b8d(0x1e5),'foreignKey':'DescriptionId'}),_0x3733d7[_0x369b8d(0x336)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2e5)],{'as':_0x369b8d(0x1f1),'onDelete':_0x369b8d(0x1e5),'foreignKey':'FieldId'}),_0x3733d7[_0x369b8d(0x336)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2f6)],{'as':_0x369b8d(0x202),'foreignKey':_0x369b8d(0x2c9)}),_0x3733d7[_0x369b8d(0x336)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d6)],{'through':'int_freshdesk_configuration_has_tags'}),_0x3733d7[_0x369b8d(0x2e5)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2e5)],{'as':'Subject','foreignKey':_0x369b8d(0x2c8)}),_0x3733d7['FreshdeskField'][_0x369b8d(0x2e0)](_0x3733d7['FreshdeskField'],{'as':_0x369b8d(0x247),'foreignKey':'DescriptionId'}),_0x3733d7[_0x369b8d(0x2e5)][_0x369b8d(0x2e0)](_0x3733d7['FreshdeskField'],{'as':_0x369b8d(0x1ec),'foreignKey':_0x369b8d(0x2c1)}),_0x3733d7[_0x369b8d(0x2e5)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1a8)],{'as':_0x369b8d(0x1a8),'foreignKey':_0x369b8d(0x251)}),_0x3733d7['VtigerAccount'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x276)],{'as':_0x369b8d(0x26a),'onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x2c9)}),_0x3733d7['VtigerConfiguration'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2ed)],{'as':_0x369b8d(0x1c3),'foreignKey':_0x369b8d(0x2c8)}),_0x3733d7[_0x369b8d(0x276)]['hasMany'](_0x3733d7[_0x369b8d(0x2ed)],{'as':_0x369b8d(0x229),'foreignKey':'DescriptionId'}),_0x3733d7[_0x369b8d(0x276)]['hasMany'](_0x3733d7['VtigerField'],{'as':'Fields','foreignKey':_0x369b8d(0x2c1)}),_0x3733d7[_0x369b8d(0x276)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x28f)],{'as':_0x369b8d(0x202),'foreignKey':_0x369b8d(0x2c9)}),_0x3733d7[_0x369b8d(0x2ed)]['hasMany'](_0x3733d7[_0x369b8d(0x2ed)],{'as':'Subject','foreignKey':_0x369b8d(0x2c8)}),_0x3733d7['VtigerField'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2ed)],{'as':'Description','foreignKey':'DescriptionId'}),_0x3733d7[_0x369b8d(0x2ed)]['hasMany'](_0x3733d7[_0x369b8d(0x2ed)],{'as':_0x369b8d(0x1ec),'foreignKey':_0x369b8d(0x2c1)}),_0x3733d7['VtigerField'][_0x369b8d(0x1fd)](_0x3733d7['Variable'],{'as':'Variable','foreignKey':_0x369b8d(0x251)}),_0x3733d7[_0x369b8d(0x2aa)][_0x369b8d(0x2e0)](_0x3733d7['ServicenowConfiguration'],{'as':_0x369b8d(0x26a),'onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x2c9)}),_0x3733d7[_0x369b8d(0x2f9)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x33a)],{'as':_0x369b8d(0x1c3),'foreignKey':_0x369b8d(0x2c8)}),_0x3733d7[_0x369b8d(0x2f9)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x33a)],{'as':_0x369b8d(0x229),'foreignKey':_0x369b8d(0x2ba)}),_0x3733d7[_0x369b8d(0x2f9)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x33a)],{'as':_0x369b8d(0x1f1),'foreignKey':_0x369b8d(0x2c1)}),_0x3733d7[_0x369b8d(0x2f9)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2aa)],{'as':_0x369b8d(0x202),'foreignKey':_0x369b8d(0x2c9)}),_0x3733d7['ServicenowField'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x33a)],{'as':_0x369b8d(0x2fa),'foreignKey':_0x369b8d(0x2c8)}),_0x3733d7[_0x369b8d(0x33a)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x33a)],{'as':_0x369b8d(0x247),'foreignKey':_0x369b8d(0x2ba)}),_0x3733d7[_0x369b8d(0x33a)]['hasMany'](_0x3733d7[_0x369b8d(0x33a)],{'as':_0x369b8d(0x1ec),'foreignKey':_0x369b8d(0x2c1)}),_0x3733d7[_0x369b8d(0x33a)][_0x369b8d(0x1fd)](_0x3733d7['Variable'],{'as':'Variable','foreignKey':_0x369b8d(0x251)}),_0x3733d7[_0x369b8d(0x2c3)]['hasMany'](_0x3733d7[_0x369b8d(0x29f)],{'as':_0x369b8d(0x26a),'onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x2c9)}),_0x3733d7[_0x369b8d(0x29f)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2a0)],{'as':_0x369b8d(0x1c3),'onDelete':'cascade','foreignKey':_0x369b8d(0x2c8)}),_0x3733d7[_0x369b8d(0x29f)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2a0)],{'as':_0x369b8d(0x229),'onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x2ba)}),_0x3733d7[_0x369b8d(0x29f)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2a0)],{'as':_0x369b8d(0x1f1),'onDelete':_0x369b8d(0x1e5),'foreignKey':'FieldId'}),_0x3733d7['Dynamics365Configuration'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2c3)],{'as':_0x369b8d(0x202),'foreignKey':_0x369b8d(0x2c9)}),_0x3733d7[_0x369b8d(0x2a0)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2a0)],{'as':_0x369b8d(0x2fa),'foreignKey':_0x369b8d(0x2c8)}),_0x3733d7[_0x369b8d(0x2a0)][_0x369b8d(0x2e0)](_0x3733d7['Dynamics365Field'],{'as':'Description','foreignKey':_0x369b8d(0x2ba)}),_0x3733d7['Dynamics365Field']['hasMany'](_0x3733d7['Dynamics365Field'],{'as':_0x369b8d(0x1ec),'foreignKey':_0x369b8d(0x2c1)}),_0x3733d7['Dynamics365Field'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1a8)],{'as':_0x369b8d(0x1a8),'foreignKey':_0x369b8d(0x251)}),_0x3733d7[_0x369b8d(0x293)]['hasMany'](_0x3733d7[_0x369b8d(0x2ab)],{'as':_0x369b8d(0x26a),'onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x2c9)}),_0x3733d7[_0x369b8d(0x2ab)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2ac)],{'as':_0x369b8d(0x1c3),'foreignKey':_0x369b8d(0x2c8)}),_0x3733d7[_0x369b8d(0x2ab)][_0x369b8d(0x2e0)](_0x3733d7['FreshsalesField'],{'as':_0x369b8d(0x229),'foreignKey':_0x369b8d(0x2ba)}),_0x3733d7[_0x369b8d(0x2ab)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2ac)],{'as':_0x369b8d(0x1f1),'foreignKey':_0x369b8d(0x2c1)}),_0x3733d7['FreshsalesConfiguration'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x293)],{'as':'Account','foreignKey':_0x369b8d(0x2c9)}),_0x3733d7[_0x369b8d(0x2ac)]['hasMany'](_0x3733d7[_0x369b8d(0x2ac)],{'as':_0x369b8d(0x2fa),'foreignKey':_0x369b8d(0x2c8)}),_0x3733d7[_0x369b8d(0x2ac)][_0x369b8d(0x2e0)](_0x3733d7['FreshsalesField'],{'as':_0x369b8d(0x247),'foreignKey':'DescriptionId'}),_0x3733d7[_0x369b8d(0x2ac)][_0x369b8d(0x2e0)](_0x3733d7['FreshsalesField'],{'as':_0x369b8d(0x1ec),'foreignKey':'FieldId'}),_0x3733d7['FreshsalesField'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1a8)],{'as':_0x369b8d(0x1a8),'foreignKey':_0x369b8d(0x251)}),_0x3733d7['ChatQueueReport'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x213)],{}),_0x3733d7['ChatQueueReport'][_0x369b8d(0x1fd)](_0x3733d7['CmList'],{'as':_0x369b8d(0x306),'foreignKey':_0x369b8d(0x335)}),_0x3733d7[_0x369b8d(0x305)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x235)],{'as':'Contact','foreignKey':_0x369b8d(0x2a5)}),_0x3733d7[_0x369b8d(0x305)]['belongsTo'](_0x3733d7[_0x369b8d(0x1cf)],{'foreignKey':_0x369b8d(0x322)}),_0x3733d7[_0x369b8d(0x305)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1f5)],{'foreignKey':'ChatMessageId'}),_0x3733d7[_0x369b8d(0x305)][_0x369b8d(0x1fd)](_0x3733d7['User'],{'foreignKey':_0x369b8d(0x326)}),_0x3733d7['ChatQueueReport'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x33c)],{'foreignKey':_0x369b8d(0x2cb)}),_0x3733d7[_0x369b8d(0x2a4)][_0x369b8d(0x1fd)](_0x3733d7['User'],{'onDelete':'cascade','foreignKey':_0x369b8d(0x31e)}),_0x3733d7['ChatInternalMessage'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2d4)],{'onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x2af)}),_0x3733d7[_0x369b8d(0x1e2)]['hasMany'](_0x3733d7[_0x369b8d(0x1c4)],{'foreignKey':_0x369b8d(0x1d5),'onDelete':_0x369b8d(0x1e5)}),_0x3733d7['JscriptySessionReport'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x34b)],{'foreignKey':_0x369b8d(0x1d5),'onDelete':_0x369b8d(0x1e5)}),_0x3733d7[_0x369b8d(0x1c1)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1df)],{'foreignKey':_0x369b8d(0x30a)}),_0x3733d7[_0x369b8d(0x1c1)]['belongsTo'](_0x3733d7['CmList'],{'as':_0x369b8d(0x306),'foreignKey':'ListId'}),_0x3733d7[_0x369b8d(0x1c1)][_0x369b8d(0x1fd)](_0x3733d7['CmContact'],{'as':_0x369b8d(0x2d9),'foreignKey':'ContactId'}),_0x3733d7['SmsQueueReport']['belongsTo'](_0x3733d7[_0x369b8d(0x2b8)],{'foreignKey':_0x369b8d(0x33b)}),_0x3733d7[_0x369b8d(0x1c1)]['belongsTo'](_0x3733d7[_0x369b8d(0x1de)],{'foreignKey':_0x369b8d(0x1da)}),_0x3733d7['SmsQueueReport'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2d4)],{'foreignKey':'UserId'}),_0x3733d7[_0x369b8d(0x1c1)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2bc)],{'foreignKey':_0x369b8d(0x360)}),_0x3733d7['JscriptyProject'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x1e2)],{'foreignKey':_0x369b8d(0x356)}),_0x3733d7['JscriptyProject'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x1c4)],{'foreignKey':_0x369b8d(0x356)}),_0x3733d7[_0x369b8d(0x2e9)]['hasMany'](_0x3733d7[_0x369b8d(0x34b)],{'foreignKey':_0x369b8d(0x356)}),_0x3733d7[_0x369b8d(0x368)][_0x369b8d(0x23e)](_0x3733d7['User'],{'as':'Users','through':'user_has_square_projects'}),_0x3733d7['Team'][_0x369b8d(0x23e)](_0x3733d7['User'],{'as':_0x369b8d(0x30b),'through':_0x369b8d(0x2e4)}),_0x3733d7['Team'][_0x369b8d(0x23e)](_0x3733d7['VoiceQueue'],{'through':_0x369b8d(0x35f),'as':'VoiceQueues'}),_0x3733d7[_0x369b8d(0x21d)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x1ff)],{'through':'team_has_mail_queues','as':_0x369b8d(0x2a2)}),_0x3733d7[_0x369b8d(0x21d)][_0x369b8d(0x23e)](_0x3733d7['ChatQueue'],{'through':_0x369b8d(0x243),'as':_0x369b8d(0x25c)}),_0x3733d7[_0x369b8d(0x21d)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x233)],{'through':_0x369b8d(0x28b),'as':_0x369b8d(0x1d8)}),_0x3733d7[_0x369b8d(0x21d)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2bc)],{'through':_0x369b8d(0x205),'as':_0x369b8d(0x34e)}),_0x3733d7['Team'][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x1b3)],{'through':'team_has_openchannel_queues','as':_0x369b8d(0x21c)}),_0x3733d7['Team'][_0x369b8d(0x23e)](_0x3733d7['WhatsappQueue'],{'through':_0x369b8d(0x1a7),'as':_0x369b8d(0x2c7)}),_0x3733d7[_0x369b8d(0x22e)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x266)],{'as':_0x369b8d(0x1b9),'foreignKey':_0x369b8d(0x31c)}),_0x3733d7[_0x369b8d(0x22e)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x20e)],{'as':'HopperFinals','foreignKey':_0x369b8d(0x31c)}),_0x3733d7[_0x369b8d(0x22e)][_0x369b8d(0x2e0)](_0x3733d7['CmHopperHistory'],{'as':_0x369b8d(0x34a),'foreignKey':_0x369b8d(0x31c)}),_0x3733d7[_0x369b8d(0x22e)]['hasMany'](_0x3733d7[_0x369b8d(0x26c)],{'as':'HopperBlacks','foreignKey':_0x369b8d(0x31c)}),_0x3733d7[_0x369b8d(0x22e)][_0x369b8d(0x1fd)](_0x3733d7['Trunk'],{'as':_0x369b8d(0x1f6),'foreignKey':'TrunkId'}),_0x3733d7[_0x369b8d(0x22e)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1f6)],{'as':_0x369b8d(0x303),'foreignKey':_0x369b8d(0x227)}),_0x3733d7[_0x369b8d(0x22e)][_0x369b8d(0x1fd)](_0x3733d7['Interval'],{'as':_0x369b8d(0x2a6),'foreignKey':'IntervalId'}),_0x3733d7[_0x369b8d(0x22e)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x368)],{'as':_0x369b8d(0x368),'foreignKey':_0x369b8d(0x254)}),_0x3733d7[_0x369b8d(0x22e)]['belongsToMany'](_0x3733d7[_0x369b8d(0x236)],{'as':_0x369b8d(0x26b),'through':_0x369b8d(0x319)}),_0x3733d7['Campaign'][_0x369b8d(0x23e)](_0x3733d7['CmList'],{'as':_0x369b8d(0x1fe),'through':'campaigns_has_cm_blacklists'}),_0x3733d7[_0x369b8d(0x285)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2e3)],{'foreignKey':'MailMessageId'}),_0x3733d7[_0x369b8d(0x285)]['belongsTo'](_0x3733d7[_0x369b8d(0x2b7)],{'foreignKey':'MailInteractionId'}),_0x3733d7['MailTransferReport'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x255)],{'foreignKey':'FromMailAccountId','as':_0x369b8d(0x1e7)}),_0x3733d7[_0x369b8d(0x285)][_0x369b8d(0x1fd)](_0x3733d7['User'],{'foreignKey':_0x369b8d(0x2b0),'as':_0x369b8d(0x269)}),_0x3733d7['MailTransferReport']['belongsTo'](_0x3733d7['User'],{'foreignKey':'ToUserId','as':'ToAgent'}),_0x3733d7[_0x369b8d(0x285)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1ff)],{'foreignKey':'ToMailQueueId','as':_0x369b8d(0x2da)}),_0x3733d7['MailTransferReport'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x255)],{'foreignKey':_0x369b8d(0x27e),'as':_0x369b8d(0x210)}),_0x3733d7[_0x369b8d(0x1dd)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1f5)],{'foreignKey':_0x369b8d(0x21a)}),_0x3733d7[_0x369b8d(0x1dd)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1cf)],{'foreignKey':_0x369b8d(0x322)}),_0x3733d7[_0x369b8d(0x1dd)][_0x369b8d(0x1fd)](_0x3733d7['ChatWebsite'],{'foreignKey':_0x369b8d(0x2f7),'as':'FromAccount'}),_0x3733d7['ChatTransferReport'][_0x369b8d(0x1fd)](_0x3733d7['User'],{'foreignKey':_0x369b8d(0x2b0),'as':_0x369b8d(0x269)}),_0x3733d7[_0x369b8d(0x1dd)][_0x369b8d(0x1fd)](_0x3733d7['User'],{'foreignKey':_0x369b8d(0x2d1),'as':_0x369b8d(0x352)}),_0x3733d7['ChatTransferReport'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x33c)],{'foreignKey':_0x369b8d(0x1a5),'as':'ToQueue'}),_0x3733d7[_0x369b8d(0x1dd)]['belongsTo'](_0x3733d7[_0x369b8d(0x213)],{'foreignKey':_0x369b8d(0x2db),'as':_0x369b8d(0x210)}),_0x3733d7[_0x369b8d(0x2d0)]['belongsTo'](_0x3733d7['FaxMessage'],{'foreignKey':'FaxMessageId'}),_0x3733d7[_0x369b8d(0x2d0)]['belongsTo'](_0x3733d7[_0x369b8d(0x214)],{'foreignKey':'FaxInteractionId'}),_0x3733d7[_0x369b8d(0x2d0)]['belongsTo'](_0x3733d7[_0x369b8d(0x27b)],{'foreignKey':'FromFaxAccountId','as':'FromAccount'}),_0x3733d7[_0x369b8d(0x2d0)]['belongsTo'](_0x3733d7[_0x369b8d(0x2d4)],{'foreignKey':'FromUserId','as':_0x369b8d(0x269)}),_0x3733d7[_0x369b8d(0x2d0)]['belongsTo'](_0x3733d7[_0x369b8d(0x2d4)],{'foreignKey':_0x369b8d(0x2d1),'as':_0x369b8d(0x352)}),_0x3733d7[_0x369b8d(0x2d0)][_0x369b8d(0x1fd)](_0x3733d7['FaxQueue'],{'foreignKey':_0x369b8d(0x283),'as':'ToQueue'}),_0x3733d7[_0x369b8d(0x2d0)]['belongsTo'](_0x3733d7[_0x369b8d(0x27b)],{'foreignKey':_0x369b8d(0x348),'as':_0x369b8d(0x210)}),_0x3733d7['OpenchannelTransferReport'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1ca)],{'foreignKey':_0x369b8d(0x22f)}),_0x3733d7[_0x369b8d(0x330)]['belongsTo'](_0x3733d7[_0x369b8d(0x2bb)],{'foreignKey':_0x369b8d(0x369)}),_0x3733d7['OpenchannelTransferReport']['belongsTo'](_0x3733d7[_0x369b8d(0x339)],{'foreignKey':_0x369b8d(0x28e),'as':_0x369b8d(0x1e7)}),_0x3733d7[_0x369b8d(0x330)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2d4)],{'foreignKey':_0x369b8d(0x2b0),'as':'FromAgent'}),_0x3733d7[_0x369b8d(0x330)][_0x369b8d(0x1fd)](_0x3733d7['User'],{'foreignKey':_0x369b8d(0x2d1),'as':_0x369b8d(0x352)}),_0x3733d7[_0x369b8d(0x330)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1b3)],{'foreignKey':_0x369b8d(0x1fa),'as':_0x369b8d(0x2da)}),_0x3733d7['OpenchannelTransferReport']['belongsTo'](_0x3733d7[_0x369b8d(0x339)],{'foreignKey':_0x369b8d(0x24b),'as':_0x369b8d(0x210)}),_0x3733d7[_0x369b8d(0x2ef)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1de)],{'foreignKey':_0x369b8d(0x1da)}),_0x3733d7[_0x369b8d(0x2ef)]['belongsTo'](_0x3733d7['SmsInteraction'],{'foreignKey':'SmsInteractionId'}),_0x3733d7[_0x369b8d(0x2ef)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1df)],{'foreignKey':'FromSmsAccountId','as':'FromAccount'}),_0x3733d7[_0x369b8d(0x2ef)]['belongsTo'](_0x3733d7[_0x369b8d(0x2d4)],{'foreignKey':_0x369b8d(0x2b0),'as':_0x369b8d(0x269)}),_0x3733d7[_0x369b8d(0x2ef)][_0x369b8d(0x1fd)](_0x3733d7['User'],{'foreignKey':_0x369b8d(0x2d1),'as':_0x369b8d(0x352)}),_0x3733d7[_0x369b8d(0x2ef)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2bc)],{'foreignKey':_0x369b8d(0x23a),'as':_0x369b8d(0x2da)}),_0x3733d7['SmsTransferReport']['belongsTo'](_0x3733d7[_0x369b8d(0x1df)],{'foreignKey':_0x369b8d(0x2ff),'as':_0x369b8d(0x210)}),_0x3733d7[_0x369b8d(0x236)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x273)],{'as':_0x369b8d(0x33f),'foreignKey':_0x369b8d(0x335)}),_0x3733d7[_0x369b8d(0x236)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x228)],{'as':_0x369b8d(0x341),'foreignKey':_0x369b8d(0x335)}),_0x3733d7[_0x369b8d(0x236)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x235)],{'as':_0x369b8d(0x1eb),'onDelete':'cascade','foreignKey':_0x369b8d(0x335)}),_0x3733d7[_0x369b8d(0x236)][_0x369b8d(0x2e0)](_0x3733d7['CmHopperFinal'],{'as':'HopperFinals','foreignKey':_0x369b8d(0x335)}),_0x3733d7[_0x369b8d(0x236)][_0x369b8d(0x2e0)](_0x3733d7['CmHopperHistory'],{'as':_0x369b8d(0x1c0),'foreignKey':'ListId'}),_0x3733d7[_0x369b8d(0x236)]['hasMany'](_0x3733d7[_0x369b8d(0x218)],{'as':_0x369b8d(0x218),'foreignKey':'ListId'}),_0x3733d7[_0x369b8d(0x236)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2bd)],{'as':'Queues','through':_0x369b8d(0x2c0)}),_0x3733d7[_0x369b8d(0x236)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d4)],{'as':'Agents','through':'cm_user_has_lists'}),_0x3733d7['VoicePrefix'][_0x369b8d(0x2e0)](_0x3733d7['VoiceExtension'],{'as':_0x369b8d(0x1fb),'onDelete':'cascade'}),_0x3733d7[_0x369b8d(0x1f3)]['belongsToMany'](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x30b),'through':_0x369b8d(0x1be)}),_0x3733d7['UserProfile'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x2d4)],{'as':'Users','foreignKey':'userProfileId'}),_0x3733d7[_0x369b8d(0x1c8)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x30f)],{'as':'UserProfileSections','foreignKey':_0x369b8d(0x1aa),'onDelete':_0x369b8d(0x1e5)}),_0x3733d7['UserProfileSection'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x208)],{'as':_0x369b8d(0x1f8),'foreignKey':_0x369b8d(0x2dc),'onDelete':_0x369b8d(0x1e5)}),_0x3733d7['WhatsappAccount']['hasMany'](_0x3733d7[_0x369b8d(0x273)],{'as':'Dispositions','foreignKey':_0x369b8d(0x2cc)}),_0x3733d7['WhatsappAccount'][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x211)],{'as':_0x369b8d(0x344),'foreignKey':_0x369b8d(0x2cc)}),_0x3733d7['WhatsappAccount']['hasMany'](_0x3733d7[_0x369b8d(0x231)],{'as':_0x369b8d(0x1bc),'foreignKey':_0x369b8d(0x2cc)}),_0x3733d7[_0x369b8d(0x25d)][_0x369b8d(0x2e0)](_0x3733d7[_0x369b8d(0x24c)],{'as':_0x369b8d(0x35d)}),_0x3733d7['WhatsappAccount']['hasMany'](_0x3733d7[_0x369b8d(0x2c6)],{'as':'Applications'}),_0x3733d7['WhatsappAccount'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x236)],{'as':'List','foreignKey':_0x369b8d(0x335)}),_0x3733d7[_0x369b8d(0x25d)][_0x369b8d(0x1fd)](_0x3733d7['Pause'],{'as':'mandatoryDispositionPause','foreignKey':_0x369b8d(0x261)}),_0x3733d7[_0x369b8d(0x25d)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x30b),'through':_0x369b8d(0x240)}),_0x3733d7[_0x369b8d(0x2c6)]['belongsTo'](_0x3733d7[_0x369b8d(0x2d4)],{'onDelete':_0x369b8d(0x256),'foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x2c6)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1d2)],{'onDelete':_0x369b8d(0x256),'foreignKey':'WhatsappQueueId'}),_0x3733d7[_0x369b8d(0x2c6)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x25d)],{'onDelete':_0x369b8d(0x256),'foreignKey':_0x369b8d(0x2cc)}),_0x3733d7[_0x369b8d(0x2c6)]['belongsTo'](_0x3733d7[_0x369b8d(0x2a6)],{'onDelete':_0x369b8d(0x256),'foreignKey':_0x369b8d(0x203)}),_0x3733d7[_0x369b8d(0x2c6)][_0x369b8d(0x1fd)](_0x3733d7['Tag'],{'onDelete':_0x369b8d(0x256),'foreignKey':_0x369b8d(0x30d)}),_0x3733d7[_0x369b8d(0x24c)][_0x369b8d(0x2e0)](_0x3733d7['WhatsappMessage'],{'as':_0x369b8d(0x1bc),'onDelete':_0x369b8d(0x1e5),'foreignKey':_0x369b8d(0x1c6)}),_0x3733d7['WhatsappInteraction'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x25d)],{'as':'Account','foreignKey':_0x369b8d(0x2cc)}),_0x3733d7[_0x369b8d(0x24c)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x235)],{'as':'Contact','foreignKey':_0x369b8d(0x2a5)}),_0x3733d7[_0x369b8d(0x24c)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2d4)],{'as':'Owner','foreignKey':'UserId'}),_0x3733d7[_0x369b8d(0x24c)][_0x369b8d(0x23e)](_0x3733d7['Tag'],{'through':'whatsapp_interaction_has_tags','as':_0x369b8d(0x361)}),_0x3733d7[_0x369b8d(0x24c)]['belongsToMany'](_0x3733d7['Tag'],{'through':_0x369b8d(0x268),'as':_0x369b8d(0x36d)}),_0x3733d7[_0x369b8d(0x24c)]['belongsToMany'](_0x3733d7['User'],{'as':_0x369b8d(0x1f7),'through':_0x369b8d(0x245),'foreignKey':_0x369b8d(0x1c6)}),_0x3733d7[_0x369b8d(0x231)][_0x369b8d(0x1fd)](_0x3733d7['User'],{'as':_0x369b8d(0x2d4),'foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x231)][_0x369b8d(0x1fd)](_0x3733d7['CmContact'],{'onDelete':_0x369b8d(0x1e5),'as':_0x369b8d(0x2d9),'foreignKey':_0x369b8d(0x2a5)}),_0x3733d7['WhatsappMessage'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x24c)],{'onDelete':_0x369b8d(0x1e5),'as':_0x369b8d(0x216),'foreignKey':_0x369b8d(0x1c6)}),_0x3733d7['WhatsappMessage'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x25d)],{'as':'Account','foreignKey':_0x369b8d(0x2cc)}),_0x3733d7[_0x369b8d(0x1ce)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x25d)],{'foreignKey':_0x369b8d(0x2cc)}),_0x3733d7[_0x369b8d(0x1ce)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x236)],{'as':_0x369b8d(0x306),'foreignKey':_0x369b8d(0x335)}),_0x3733d7[_0x369b8d(0x1ce)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x235)],{'as':_0x369b8d(0x2d9),'foreignKey':'ContactId'}),_0x3733d7[_0x369b8d(0x1ce)][_0x369b8d(0x1fd)](_0x3733d7['WhatsappInteraction'],{'foreignKey':'WhatsappInteractionId'}),_0x3733d7[_0x369b8d(0x1ce)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1d2)],{'foreignKey':_0x369b8d(0x317)}),_0x3733d7[_0x369b8d(0x1ce)][_0x369b8d(0x1fd)](_0x3733d7['WhatsappMessage'],{'foreignKey':'WhatsappMessageId'}),_0x3733d7[_0x369b8d(0x1ce)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x2d4)],{'foreignKey':_0x369b8d(0x326)}),_0x3733d7[_0x369b8d(0x296)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x231)],{'foreignKey':_0x369b8d(0x36a)}),_0x3733d7['WhatsappTransferReport'][_0x369b8d(0x1fd)](_0x3733d7['WhatsappInteraction'],{'foreignKey':_0x369b8d(0x1c6)}),_0x3733d7[_0x369b8d(0x296)][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x25d)],{'foreignKey':_0x369b8d(0x2f2),'as':_0x369b8d(0x1e7)}),_0x3733d7[_0x369b8d(0x296)]['belongsTo'](_0x3733d7['WhatsappAccount'],{'foreignKey':'ToWhatsappAccountId','as':_0x369b8d(0x210)}),_0x3733d7['WhatsappTransferReport'][_0x369b8d(0x1fd)](_0x3733d7[_0x369b8d(0x1d2)],{'foreignKey':'ToQueueId','as':_0x369b8d(0x2da)}),_0x3733d7[_0x369b8d(0x296)]['belongsTo'](_0x3733d7[_0x369b8d(0x2d4)],{'foreignKey':'FromUserId','as':'FromAgent'}),_0x3733d7['WhatsappTransferReport']['belongsTo'](_0x3733d7[_0x369b8d(0x2d4)],{'foreignKey':_0x369b8d(0x2d1),'as':_0x369b8d(0x352)}),_0x3733d7[_0x369b8d(0x1d2)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x2d4)],{'as':_0x369b8d(0x30b),'through':_0x369b8d(0x33e),'foreignKey':_0x369b8d(0x317)}),_0x3733d7[_0x369b8d(0x1d2)][_0x369b8d(0x23e)](_0x3733d7[_0x369b8d(0x21d)],{'through':_0x369b8d(0x1a7),'as':'Teams'}),_0x3733d7;}module['exports'][a1190_0x1be44a(0x329)]=initializeAllModels; \ No newline at end of file diff --git a/server/rediscache/index.js b/server/rediscache/index.js index 2384686..514ee7e 100644 --- a/server/rediscache/index.js +++ b/server/rediscache/index.js @@ -1 +1 @@ -const a1191_0x44cb=['getRedis','getSocket','ioredis','exports','redis','../config/config.service'];(function(_0x1d738d,_0x39f819){const _0x44cb05=function(_0x46fc30){while(--_0x46fc30){_0x1d738d['push'](_0x1d738d['shift']());}};_0x44cb05(++_0x39f819);}(a1191_0x44cb,0xa4));const a1191_0x46fc=function(_0x1d738d,_0x39f819){_0x1d738d=_0x1d738d-0x1d9;let _0x44cb05=a1191_0x44cb[_0x1d738d];return _0x44cb05;};const a1191_0xa8e6c6=a1191_0x46fc,Redis=require(a1191_0xa8e6c6(0x1d9)),socketEmitter=require('socket.io-emitter'),config=require('../config/environment'),cs=require(a1191_0xa8e6c6(0x1dc))['getConfigService'](),MAX_RETRIES=0xa,REDIS_CONFIG={'host':cs['redisHost'],'port':cs['redisPort'],'retryStrategy':function(_0x4329d2){if(_0x4329d2_0x5456d4[_0x33908c(0xe4)](/^chat_v/,''))[_0x33908c(0x121)](compareVersions)[_0x33908c(0x16c)]();_0x192d9c=_0x4391f8[0x0],_0x5bc8ff=path[_0x33908c(0x169)](_0x1e7510,_0x33908c(0x197)+_0x192d9c);}}catch(_0x15a490){console[_0x33908c(0x136)](_0x33908c(0x1dd),_0x15a490);}return{'chatVersion':_0x192d9c,'chatPath':_0x5bc8ff};}async function routes(_0x2e368e){const _0x4cdb54=a1192_0x180757;_0x2e368e[_0x4cdb54(0x183)](ewinston[_0x4cdb54(0x19b)]({'winstonInstance':logger,'meta':![],'metaField':null,'statusLevels':!![],'msg':function(_0x48ba20,_0x192861){const _0xa25b=_0x4cdb54;let _0x245839=_0x48ba20[_0xa25b(0x123)],_0x562f33=_0xa25b(0x1c7);return!_[_0xa25b(0xdf)](_0x245839)?(_0x562f33+=_0xa25b(0x134),maskSensitiveData(_0x245839)):_0x245839=null,util[_0xa25b(0x13d)](_0x562f33,_0x48ba20[_0xa25b(0xf9)],_0x48ba20[_0xa25b(0x11b)]['x-forwarded-for']?_0x48ba20[_0xa25b(0x11b)]['x-forwarded-for']:_0x48ba20[_0xa25b(0x1d9)][_0xa25b(0x191)]||_0x48ba20['ip'],_0x48ba20['url'],_0x192861['statusCode'],_0x192861['responseTime'],_0x48ba20[_0xa25b(0xdc)]?_0x48ba20[_0xa25b(0xdc)]['id']:null,_0x48ba20[_0xa25b(0xdc)]?_0x48ba20[_0xa25b(0xdc)][_0xa25b(0x188)]:null,_0x48ba20[_0xa25b(0xdc)]?_0x48ba20[_0xa25b(0xdc)]['role']:null,_0x245839?util[_0xa25b(0xb7)](_0x245839,![],null):'');}})),_0x2e368e[_0x4cdb54(0x183)](ewinston['logger']({'winstonInstance':authLogger,'meta':![],'metaField':null,'statusLevels':!![],'msg':function(_0x51d6b7,_0x4e9308){const _0x4d8c15=_0x4cdb54;let _0x6562e2=_0x4d8c15(0x124);return _0x51d6b7[_0x4d8c15(0x123)]&&_0x51d6b7[_0x4d8c15(0x123)][_0x4d8c15(0xcc)]&&_0x51d6b7[_0x4d8c15(0x123)][_0x4d8c15(0x1c3)]&&(_0x6562e2=_0x4d8c15(0x1a1)),util[_0x4d8c15(0x13d)](_0x6562e2,_0x51d6b7[_0x4d8c15(0xf9)],_0x51d6b7[_0x4d8c15(0x11b)]['x-forwarded-for']?_0x51d6b7['headers'][_0x4d8c15(0xd4)]:_0x51d6b7[_0x4d8c15(0x1d9)][_0x4d8c15(0x191)]||_0x51d6b7['ip'],_0x51d6b7[_0x4d8c15(0x1bd)],_0x4e9308['statusCode'],_0x4e9308['responseTime'],_0x51d6b7[_0x4d8c15(0xdc)]?_0x51d6b7['user']['id']:null,_0x51d6b7[_0x4d8c15(0xdc)]?_0x51d6b7['user'][_0x4d8c15(0x188)]:null,_0x51d6b7['user']?_0x51d6b7[_0x4d8c15(0xdc)][_0x4d8c15(0xf0)]:null,_0x51d6b7['body']&&_0x51d6b7[_0x4d8c15(0x123)][_0x4d8c15(0xcc)]?_0x51d6b7[_0x4d8c15(0x123)][_0x4d8c15(0xcc)]:_0x4d8c15(0x1d8),_0x51d6b7[_0x4d8c15(0x123)]&&_0x51d6b7[_0x4d8c15(0x123)]['agent_id']?_0x51d6b7[_0x4d8c15(0x123)]['agent_id']:'',_0x51d6b7['body']&&_0x51d6b7[_0x4d8c15(0x123)][_0x4d8c15(0xd7)]?_0x51d6b7['body']['agent_name']:'');},'ignoreRoute':function(_0x439402){const _0x42a97f=_0x4cdb54,_0x133696=/\/api\/users\/[0-9]+\/(login|logout)/gi;return!_0x133696[_0x42a97f(0x1d2)](_0x439402[_0x42a97f(0x1bd)]);}})),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1d7),require(_0x4cdb54(0xd1))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x179),require(_0x4cdb54(0x159))),_0x2e368e['use'](_0x4cdb54(0x1de),require(_0x4cdb54(0x106))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x13b),require(_0x4cdb54(0x142))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1a2),require(_0x4cdb54(0x176))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x125),require(_0x4cdb54(0x18d))),_0x2e368e[_0x4cdb54(0x183)]('/api/voice/recordings',require(_0x4cdb54(0x13f))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1d6),require(_0x4cdb54(0x1b1))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xeb),require('./api/voiceMail')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1bf),require(_0x4cdb54(0x1c1))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xd2),require(_0x4cdb54(0x18f))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x161),require(_0x4cdb54(0x175))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x122),require('./api/voiceAgentReport')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1e5),require('./api/voiceQueueReport')),_0x2e368e['use'](_0x4cdb54(0x1a6),require('./api/memberReport')),_0x2e368e[_0x4cdb54(0x183)]('/api/trunks',require('./api/trunk')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x167),require(_0x4cdb54(0x111))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x158),require('./api/mailServerOut')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x12d),require(_0x4cdb54(0x1e1))),_0x2e368e['use'](_0x4cdb54(0x16d),require(_0x4cdb54(0x119))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x172),require(_0x4cdb54(0x154))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1f1),require(_0x4cdb54(0x1d4))),_0x2e368e[_0x4cdb54(0x183)]('/api/mail/messages',require(_0x4cdb54(0x1ce))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x151),require(_0x4cdb54(0x129))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1ca),require('./api/mailQueueReport')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1f4),require(_0x4cdb54(0x1a3))),_0x2e368e['use'](_0x4cdb54(0x18c),require(_0x4cdb54(0x1b5))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x199),require(_0x4cdb54(0x198))),_0x2e368e['use']('/api/fax/applications',require('./api/faxApplication')),_0x2e368e['use'](_0x4cdb54(0x162),require(_0x4cdb54(0x165))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xbd),require(_0x4cdb54(0xf3))),_0x2e368e['use']('/api/fax/queues',require(_0x4cdb54(0x193))),_0x2e368e[_0x4cdb54(0x183)]('/api/fax/reports/queue',require(_0x4cdb54(0x156))),_0x2e368e['use'](_0x4cdb54(0x16b),require(_0x4cdb54(0x17c))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1d1),require(_0x4cdb54(0xfa))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xe5),require(_0x4cdb54(0xe9))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1cb),require('./api/smsMessage')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xe1),require(_0x4cdb54(0x1a7))),_0x2e368e['use']('/api/openchannel/accounts',require(_0x4cdb54(0x1e7))),_0x2e368e[_0x4cdb54(0x183)]('/api/openchannel/applications',require(_0x4cdb54(0x107))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xfd),require(_0x4cdb54(0x195))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1d3),require(_0x4cdb54(0x11f))),_0x2e368e[_0x4cdb54(0x183)]('/api/openchannel/queues',require('./api/openchannelQueue')),_0x2e368e[_0x4cdb54(0x183)]('/api/chat/websites',require('./api/chatWebsite')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1e3),require(_0x4cdb54(0xbe))),_0x2e368e['use'](_0x4cdb54(0x1eb),require(_0x4cdb54(0xc0))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x13c),require(_0x4cdb54(0x139))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x10d),require(_0x4cdb54(0x16f))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xe2),require('./api/chatOfflineMessage')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xce),require(_0x4cdb54(0x180))),_0x2e368e[_0x4cdb54(0x183)]('/api/chat/groups',require(_0x4cdb54(0x128))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xfc),require(_0x4cdb54(0x1ee))),_0x2e368e[_0x4cdb54(0x183)]('/api/cm/companies',require(_0x4cdb54(0xe6))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1d5),require(_0x4cdb54(0x10f))),_0x2e368e[_0x4cdb54(0x183)]('/api/cm/hopper',require('./api/cmHopper')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1ae),require(_0x4cdb54(0x196))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x184),require('./api/cmHopperFinal')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x11d),require(_0x4cdb54(0x102))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x12b),require(_0x4cdb54(0x13a))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xd6),require('./api/action')),_0x2e368e[_0x4cdb54(0x183)]('/api/automations',require(_0x4cdb54(0x1e6))),_0x2e368e['use'](_0x4cdb54(0x1ef),require(_0x4cdb54(0x115))),_0x2e368e['use'](_0x4cdb54(0xf5),require('./api/disposition')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x150),require('./api/condition')),_0x2e368e[_0x4cdb54(0x183)]('/api/intervals',require(_0x4cdb54(0xbf))),_0x2e368e['use']('/api/pauses',require(_0x4cdb54(0x1e9))),_0x2e368e[_0x4cdb54(0x183)]('/api/cdr',require(_0x4cdb54(0x141))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x163),require(_0x4cdb54(0x1c6))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x174),require(_0x4cdb54(0x114))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x170),require('./api/sound')),_0x2e368e['use'](_0x4cdb54(0xcb),require('./api/tag')),_0x2e368e['use'](_0x4cdb54(0x1b6),require(_0x4cdb54(0xc5))),_0x2e368e['use'](_0x4cdb54(0x11c),require(_0x4cdb54(0x153))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x108),require(_0x4cdb54(0x1e8))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x117),require(_0x4cdb54(0x173))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1ec),require(_0x4cdb54(0x1a0))),_0x2e368e[_0x4cdb54(0x183)]('/api/analytics/custom_reports',require(_0x4cdb54(0x19d))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x113),require(_0x4cdb54(0x15d))),_0x2e368e['use'](_0x4cdb54(0x131),require(_0x4cdb54(0x1a4))),_0x2e368e[_0x4cdb54(0x183)]('/api/analytics/metrics',require('./api/analyticMetric')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xb9),require(_0x4cdb54(0x14a))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1ba),require(_0x4cdb54(0x12a))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x17b),require(_0x4cdb54(0xc7))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xd8),require(_0x4cdb54(0xe0))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x130),require('./api/intSalesforceField')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x109),require(_0x4cdb54(0xc8))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x17a),require('./api/intSugarcrmConfiguration')),_0x2e368e[_0x4cdb54(0x183)]('/api/integrations/sugarcrm/fields',require(_0x4cdb54(0x12e))),_0x2e368e[_0x4cdb54(0x183)]('/api/integrations/desk/accounts',require(_0x4cdb54(0x171))),_0x2e368e[_0x4cdb54(0x183)]('/api/integrations/desk/configurations',require('./api/intDeskConfiguration')),_0x2e368e[_0x4cdb54(0x183)]('/api/integrations/desk/fields',require('./api/intDeskField')),_0x2e368e[_0x4cdb54(0x183)]('/api/integrations/zoho/accounts',require(_0x4cdb54(0x14e))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x15c),require(_0x4cdb54(0x1e4))),_0x2e368e[_0x4cdb54(0x183)]('/api/integrations/zoho/fields',require(_0x4cdb54(0x147))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x10e),require(_0x4cdb54(0x17f))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xba),require(_0x4cdb54(0x12c))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xee),require(_0x4cdb54(0xff))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x104),require(_0x4cdb54(0x19e))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x189),require('./api/intFreshdeskConfiguration')),_0x2e368e['use'](_0x4cdb54(0x100),require('./api/intFreshdeskField')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x11a),require(_0x4cdb54(0x1a5))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1b2),require(_0x4cdb54(0x181))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1a8),require(_0x4cdb54(0x140))),_0x2e368e['use'](_0x4cdb54(0x146),require(_0x4cdb54(0x13e))),_0x2e368e[_0x4cdb54(0x183)]('/api/integrations/servicenow/configurations',require(_0x4cdb54(0x168))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x14f),require(_0x4cdb54(0xc3))),_0x2e368e['use'](_0x4cdb54(0x112),require(_0x4cdb54(0x177))),_0x2e368e['use'](_0x4cdb54(0x10c),require(_0x4cdb54(0x110))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1b3),require(_0x4cdb54(0xd3))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x138),require('./api/intFreshsalesAccount')),_0x2e368e['use'](_0x4cdb54(0x17d),require(_0x4cdb54(0x145))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xef),require(_0x4cdb54(0x103))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x101),require(_0x4cdb54(0xd5))),_0x2e368e[_0x4cdb54(0x183)]('/api/chat/reports/queue',require(_0x4cdb54(0xbc))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1e2),require('./api/chatInternalMessage')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xfe),require('./api/jscriptyAnswerReport')),_0x2e368e['use']('/api/jscripty/questions/reports',require(_0x4cdb54(0x157))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1df),require('./api/jscriptySessionReport')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xca),require(_0x4cdb54(0x1c5))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x15e),require(_0x4cdb54(0xfb))),_0x2e368e[_0x4cdb54(0x183)]('/api/square/details/reports',require(_0x4cdb54(0xf6))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x182),require('./api/jscriptyProject')),_0x2e368e['use'](_0x4cdb54(0x1da),require(_0x4cdb54(0x1c8))),_0x2e368e['use'](_0x4cdb54(0x192),require('./api/squareOdbc')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x137),require(_0x4cdb54(0x15a))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1d0),require(_0x4cdb54(0x18e))),_0x2e368e['use'](_0x4cdb54(0x1b9),require('./api/squareMessage')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xea),require(_0x4cdb54(0x1e0))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x132),require(_0x4cdb54(0x116))),_0x2e368e['use'](_0x4cdb54(0x1b7),require(_0x4cdb54(0xc2))),_0x2e368e[_0x4cdb54(0x183)]('/api/migrations',require('./api/migration')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1ed),require('./api/attachment')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xd0),require(_0x4cdb54(0x18b))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x143),require('./api/mailTransferReport')),_0x2e368e[_0x4cdb54(0x183)]('/api/chat/reports/transfer',require(_0x4cdb54(0x1c0))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xda),require(_0x4cdb54(0x10b))),_0x2e368e['use']('/api/openchannel/reports/transfer',require(_0x4cdb54(0xc4))),_0x2e368e[_0x4cdb54(0x183)]('/api/sms/reports/transfer',require(_0x4cdb54(0x1bb))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1be),require(_0x4cdb54(0xcd))),_0x2e368e[_0x4cdb54(0x183)]('/api/voice/prefixes',require(_0x4cdb54(0x1ad))),_0x2e368e['use'](_0x4cdb54(0xed),require(_0x4cdb54(0xcf))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x194),require(_0x4cdb54(0x16e))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xf2),require('./api/userProfileResource')),_0x2e368e['use'](_0x4cdb54(0xd9),require('./api/notification')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xe7),require(_0x4cdb54(0xc6))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1b0),require('./api/whatsappApplication')),_0x2e368e[_0x4cdb54(0x183)]('/api/whatsapp/interactions',require(_0x4cdb54(0x166))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xdd),require(_0x4cdb54(0x1af))),_0x2e368e['use'](_0x4cdb54(0x185),require(_0x4cdb54(0xdb))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x19a),require(_0x4cdb54(0x1c9))),_0x2e368e['use'](_0x4cdb54(0x118),require(_0x4cdb54(0x1cd))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xb8),require(_0x4cdb54(0x144))),_0x2e368e['use'](_0x4cdb54(0x178),require(_0x4cdb54(0x10a))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x120),require('./api/authGoogle')),_0x2e368e['use'](_0x4cdb54(0xe8),require(_0x4cdb54(0xf1))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x127),require(_0x4cdb54(0x152))),_0x2e368e['use']('/api/version',require('./api/version')),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x15f),require(_0x4cdb54(0x1f2))),_0x2e368e[_0x4cdb54(0x183)]('/api/pm2',require(_0x4cdb54(0x133))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1f0),require(_0x4cdb54(0x187))),_0x2e368e[_0x4cdb54(0x183)]('/apidoc',express[_0x4cdb54(0x16a)](path[_0x4cdb54(0xec)](config[_0x4cdb54(0xc9)],'..',_0x4cdb54(0xf4)))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0xbb),express[_0x4cdb54(0x16a)](path['resolve'](config[_0x4cdb54(0xc9)],'..','www'))),_0x2e368e[_0x4cdb54(0x183)](_0x4cdb54(0x1dc),express[_0x4cdb54(0x16a)](path[_0x4cdb54(0xec)](config[_0x4cdb54(0xc9)],'..',_0x4cdb54(0x160)))),_0x2e368e[_0x4cdb54(0x183)]('/plugins',express[_0x4cdb54(0x16a)](path[_0x4cdb54(0xec)](config[_0x4cdb54(0xc9)],'files/plugins')));const {chatPath:_0x592dd0,chatVersion:_0xdf2961}=await getInstalledChatVersion(),_0x117bea=getConfigService();return!(_0x117bea[_0x4cdb54(0x1c2)]||_0x117bea[_0x4cdb54(0x1b8)])&&console[_0x4cdb54(0xc1)](_0x4cdb54(0xe3),_0x592dd0,_0xdf2961),_0x592dd0&&_0xdf2961&&(_0x2e368e[_0x4cdb54(0x148)](_0x4cdb54(0x155),_0xdf2961),_0x2e368e[_0x4cdb54(0x183)]('/snippet',express[_0x4cdb54(0x16a)](_0x592dd0))),_0x2e368e=apiDocumentation(_0x2e368e),_0x2e368e[_0x4cdb54(0x1cc)](_0x4cdb54(0x11e))[_0x4cdb54(0x1b4)](errors[0x194]),_0x2e368e[_0x4cdb54(0x1b4)]('*',function(_0x465b4c,_0x160193){const _0x537b83=_0x4cdb54;_0x160193[_0x537b83(0x1f3)](path['resolve'](_0x2e368e[_0x537b83(0x1b4)](_0x537b83(0xf7))+_0x537b83(0x105)));}),_0x2e368e;}exports[a1192_0x180757(0x14b)]=routes,exports['default']=routes; \ No newline at end of file +const a1192_0x63d3=['./api/dashboardItem','/api/integrations/zoho/accounts','url','./api/intSugarcrmAccount','express-winston','/api/integrations/desk/accounts','./api/voiceQueue','routes','./api/voiceExtension','/api/analytics/field_reports','warn','/api/system','./api/voiceRecording','./api/campaign','./api/network','/api/mail/substatuses','/api/integrations/vtiger/fields','./api/setting','./api/squareRecording','body','/api/trunks','/api/mail/accounts','format','/api/sms/interactions','path','agent_name','/api/conditions','./api/intZohoAccount','responseTime','./api/intFreshdeskConfiguration','./api/intFreshsalesField','/api/sms/reports/queue','/api/migrations','/api/schedules','utf-8','/api/integrations/reports','/api/integrations/freshdesk/fields','/api/chat/interactions','%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s','/api/fax/reports/queue','name','./api/mailServerOut','connection','headers','/api/chat/queues','/api/analytics/extracted_reports','./api/userProfileResource','/api/integrations/zendesk/configurations','/api/sms/accounts','/api/automations','/api/square/odbc','/api/chat/websites','/api/integrations/sugarcrm/fields','/api/userProfile/resources','./api/migration','./api/intServicenowField','/api/jira','./api/memberReport','./api/mailInteraction','/api/openchannel/queues','./api/whatsappQueue','/api/openchannel/interactions','/api/jscripty/questions/reports','/api/integrations/sugarcrm/configurations','./api/jscriptySessionReport','/api/whatsapp/reports/queue','./api/mailTransferReport','chatPath,\x20chatVersion','./api/cdr','/api/cm/hopper_history','./api/voiceChanSpy','./api/chatMessage','/api/whatsapp/reports/transfer','/api/rpc','/api/pauses','static','/api/voice/prefixes','resolve','replace','./api/openchannelQueue','error','./api/pause','./api/voiceCallReport','route','/api/chat/applications','/api/integrations/vtiger/configurations','/api/integrations/freshdesk/accounts','chatVersion','./api/intZohoField','./errors','./api/voiceMail','./api/smsQueue','/api/integrations/desk/configurations','./api/voiceMailMessage','promises','./api/chatQueue','default','./api/integration','/api/cm/hopper_final','/api/openchannel/reports/transfer','./api/intFreshsalesAccount','./api/pm2','./api/whatsappAccount','./api/openchannelApplication','/api/sms/reports/transfer','/api/integrations/freshsales/fields','./api/cmCompany','./api/notification','./api/intServicenowAccount','reverse','/api/mail/reports/queue','sort','isTest','x-forwarded-for','/api/mail/messages','./api/disposition','sendFile','/api/intervals','/api/voice/queues/reports','/plugins','/api/analytics/default_reports','/api/integrations/salesforce/accounts','/api/integrations/zendesk/fields','/api/screen/recordings','/api/chat/offline_messages','/demo','/api/integrations/vtiger/accounts','/api/sounds','/api/chat/groups','./api/intVtigerConfiguration','/index.html','./api/intDeskConfiguration','/api/attachments','./api/chatOfflineMessage','./api/interval','/api/fax/reports/transfer','/api/license','getInstalledChatVersion','./api/faxInteraction','includes','./api/cmHopperHistory','./api/dashboard','util','/api/fax/messages','existsSync','./api/voiceTransferReport','./api/cloudProvider','/api/integrations/salesforce/configurations','./api/mailAccount','./api/squareReport','./api/squareProject','./api/openchannelInteraction','map','/api/sms/queues','/api/networks','./api/cmHopperFinal','/api/voice/chanspy','method','/api/fax/accounts','readdir','/www','./api/intVtigerField','/api/triggers','/api/square/reports','./api/jscriptyAnswerReport','/api/openchannel/reports/queue','./api/chatTransferReport','/api/voice/mohs','user','/api/fax/queues','./api/analyticExtractedReport','/api/whatsapp/accounts','/api/integrations/servicenow/fields','./api/analyticFieldReport','./api/mailQueueReport','./api/faxApplication','/api/auth/local','./api/jscriptyProject','./api/voiceAgentReport','get','/api/chat/reports/queue','./api/smsAccount','/api/dispositions','./api/chatQueueReport','/api/webbar','/api/voiceQueuesLog','/api/analytics/custom_reports','/api/voice/mails','./api/intDynamics365Field','./api/cmContact','/api/mail/reports/transfer','/api/integrations/desk/fields','./api/cmList','./api/intZendeskField','./api/userProfileSection','./api/intSalesforceField','appPath','./api/mailApplication','./api/smsMessage','./api/whatsappQueueReport','/api/cm/custom_fields','./api/chatInternalMessage','/api/integrations/zendesk/accounts','/api/userProfile/sections','./api/faxAccount','/api/actions','/api/tags','/api/variables','/api/chat/reports/transfer','./api/license','/api/integrations/servicenow/configurations','./api/intServicenowConfiguration','%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s\x20device=%s\x20(id=%s\x20name=%s)','/api/voice/queues','/api/fax/applications','./api/integrationReport','lodash','/api/mail/queues','/api/teams','/api/sms/messages','./api/intZendeskConfiguration','./api/cannedAnswer','join','/api/cm/hopper_black','/api/chat/internal/messages','./api/webbar','./api/whatsappMessage','./api/system','./api/chatProactiveAction','device','./api/jscriptyQuestionReport','logger','files/plugins','/api/integrations/zoho/fields','./api/chatApplication','./config/config.service','/api/integrations/dynamics365/fields','/api/integrations/zoho/configurations','./api/plugin','/api/mail/applications','/api/auth/google','/api/cloudProviders','/api/openchannel/applications','/api/campaigns','./api/tag','agent_id','./api/faxTransferReport','statusCode','/api/integrations','/snippet','./api/intVtigerAccount','/api/jscripty/sessions/reports','./api/squareReportDetail','./api/analyticCustomReport','/api/mail/interactions','./api/intFreshdeskField','./api/team','./config/api-documentation','/api/integrations/freshsales/configurations','/api/mail/out_servers','snippets','/api/openchannel/messages','./api/cmHopperBlack','/api/voice/recordings','/api/integrations/servicenow/accounts','./api/voiceDialReport','/api/version','\x20body=%s','/api/integrations/salesforce/fields','/api/userProfiles','/api/analytics/metrics','/api/integrations/sugarcrm/accounts','/api/plugins','/api/whatsapp/messages','./api/mailMessage','/api/square/recordings','./api/faxQueue','inspect','./api/intDynamics365Account','express','/api/integrations/freshsales/accounts','test','./api/cmCustomField','/api/jscripty/answers/reports','production','/api/users','other','./api/smsApplication','No\x20chat\x20module\x20found\x20at\x20','root','remoteAddress','/api/integrations/dynamics365/configurations','/api/voice/mails/messages','/api/voice/dials/reports','/api/pm2','./api/intDeskField','use','./api/cmHopper','./api/whatsappInteraction','./api/rpc','/api/square/details/reports','isEmpty','./api/jira','log','./api/screenRecording','/api/square/projects','./config/logger','./api/openchannelQueueReport','./api/intSalesforceConfiguration','role','package.json','parse','Unable\x20to\x20solve\x20chat\x20version','./api/intFreshdeskAccount'];(function(_0xab8227,_0x374801){const _0x63d3e7=function(_0x36e3c2){while(--_0x36e3c2){_0xab8227['push'](_0xab8227['shift']());}};_0x63d3e7(++_0x374801);}(a1192_0x63d3,0x17f));const a1192_0x36e3=function(_0xab8227,_0x374801){_0xab8227=_0xab8227-0x1a8;let _0x63d3e7=a1192_0x63d3[_0xab8227];return _0x63d3e7;};const a1192_0x3e4e78=a1192_0x36e3;'use strict';const path=require(a1192_0x3e4e78(0x2b5)),fs=require('fs'),express=require(a1192_0x3e4e78(0x27a)),ewinston=require(a1192_0x3e4e78(0x2a1)),util=require(a1192_0x3e4e78(0x1f1)),errors=require(a1192_0x3e4e78(0x1bc)),config=require('./config/environment'),logger=require('./config/logger')('api'),authLogger=require(a1192_0x3e4e78(0x295))('auth'),{getConfigService}=require(a1192_0x3e4e78(0x24e)),compareVersions=require('compare-versions'),_=require(a1192_0x3e4e78(0x23b)),{maskSensitiveData}=require('./utils/mask-sensistive-data'),{apiDocumentation}=require(a1192_0x3e4e78(0x264));async function getInstalledChatVersion(){const _0x1bd42f=a1192_0x3e4e78,_0xdcf417=getConfigService();let _0x3883f1='',_0x33e2be='';try{if(![_0x1bd42f(0x27f),'build'][_0x1bd42f(0x1ee)](_0xdcf417['environment'])){const _0x5c19bd=path[_0x1bd42f(0x1b0)](config['root'],'..','motion-chat'),_0x3b5f71=fs[_0x1bd42f(0x1f3)](_0x5c19bd);if(_0x3b5f71)try{const _0xdf4549=await fs['promises']['readFile'](path[_0x1bd42f(0x241)](_0x5c19bd,_0x1bd42f(0x299)),_0x1bd42f(0x2bf)),_0x4fe1e1=JSON[_0x1bd42f(0x29a)](_0xdf4549);_0x3883f1=_0x4fe1e1['version'],_0x33e2be=path[_0x1bd42f(0x241)](_0x5c19bd,'dist');}catch(_0x515ec7){console['error'](_0x1bd42f(0x1ec),_0x515ec7);}else console[_0x1bd42f(0x2a7)](_0x1bd42f(0x283)+_0x5c19bd);}else{const _0x289f2f=path[_0x1bd42f(0x241)](config[_0x1bd42f(0x284)],'..',_0x1bd42f(0x267)),_0x5aa6e5=await fs[_0x1bd42f(0x1c1)][_0x1bd42f(0x202)](_0x289f2f),_0x56ea51=_0x5aa6e5[_0x1bd42f(0x1fb)](_0xa52fd3=>_0xa52fd3[_0x1bd42f(0x1b1)](/^chat_v/,''))[_0x1bd42f(0x1d2)](compareVersions)[_0x1bd42f(0x1d0)]();_0x3883f1=_0x56ea51[0x0],_0x33e2be=path[_0x1bd42f(0x241)](_0x289f2f,'chat_v'+_0x3883f1);}}catch(_0x4e74ba){console[_0x1bd42f(0x1b3)](_0x1bd42f(0x29b),_0x4e74ba);}return{'chatVersion':_0x3883f1,'chatPath':_0x33e2be};}async function routes(_0x20555d){const _0x1a3d34=a1192_0x3e4e78;_0x20555d[_0x1a3d34(0x28b)](ewinston[_0x1a3d34(0x24a)]({'winstonInstance':logger,'meta':![],'metaField':null,'statusLevels':!![],'msg':function(_0x349fe0,_0x335713){const _0x2c7c07=_0x1a3d34;let _0x3e7733=_0x349fe0[_0x2c7c07(0x2b0)],_0xc6fd8=_0x2c7c07(0x2c3);return!_[_0x2c7c07(0x290)](_0x3e7733)?(_0xc6fd8+=_0x2c7c07(0x26e),maskSensitiveData(_0x3e7733)):_0x3e7733=null,util['format'](_0xc6fd8,_0x349fe0[_0x2c7c07(0x200)],_0x349fe0[_0x2c7c07(0x2c8)][_0x2c7c07(0x1d4)]?_0x349fe0[_0x2c7c07(0x2c8)]['x-forwarded-for']:_0x349fe0[_0x2c7c07(0x2c7)]['remoteAddress']||_0x349fe0['ip'],_0x349fe0['url'],_0x335713[_0x2c7c07(0x25a)],_0x335713[_0x2c7c07(0x2b9)],_0x349fe0[_0x2c7c07(0x20b)]?_0x349fe0['user']['id']:null,_0x349fe0[_0x2c7c07(0x20b)]?_0x349fe0[_0x2c7c07(0x20b)][_0x2c7c07(0x2c5)]:null,_0x349fe0[_0x2c7c07(0x20b)]?_0x349fe0['user'][_0x2c7c07(0x298)]:null,_0x3e7733?util[_0x2c7c07(0x278)](_0x3e7733,![],null):'');}})),_0x20555d[_0x1a3d34(0x28b)](ewinston[_0x1a3d34(0x24a)]({'winstonInstance':authLogger,'meta':![],'metaField':null,'statusLevels':!![],'msg':function(_0x1298b3,_0x12e7eb){const _0x594e5b=_0x1a3d34;let _0x4fb9b4='%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s\x20device=%s';return _0x1298b3[_0x594e5b(0x2b0)]&&_0x1298b3['body'][_0x594e5b(0x248)]&&_0x1298b3[_0x594e5b(0x2b0)][_0x594e5b(0x258)]&&(_0x4fb9b4=_0x594e5b(0x237)),util[_0x594e5b(0x2b3)](_0x4fb9b4,_0x1298b3[_0x594e5b(0x200)],_0x1298b3['headers'][_0x594e5b(0x1d4)]?_0x1298b3[_0x594e5b(0x2c8)][_0x594e5b(0x1d4)]:_0x1298b3[_0x594e5b(0x2c7)][_0x594e5b(0x285)]||_0x1298b3['ip'],_0x1298b3[_0x594e5b(0x29f)],_0x12e7eb[_0x594e5b(0x25a)],_0x12e7eb['responseTime'],_0x1298b3[_0x594e5b(0x20b)]?_0x1298b3[_0x594e5b(0x20b)]['id']:null,_0x1298b3[_0x594e5b(0x20b)]?_0x1298b3[_0x594e5b(0x20b)][_0x594e5b(0x2c5)]:null,_0x1298b3['user']?_0x1298b3['user'][_0x594e5b(0x298)]:null,_0x1298b3[_0x594e5b(0x2b0)]&&_0x1298b3[_0x594e5b(0x2b0)]['device']?_0x1298b3['body']['device']:_0x594e5b(0x281),_0x1298b3[_0x594e5b(0x2b0)]&&_0x1298b3[_0x594e5b(0x2b0)][_0x594e5b(0x258)]?_0x1298b3['body'][_0x594e5b(0x258)]:'',_0x1298b3[_0x594e5b(0x2b0)]&&_0x1298b3[_0x594e5b(0x2b0)][_0x594e5b(0x2b6)]?_0x1298b3[_0x594e5b(0x2b0)][_0x594e5b(0x2b6)]:'');},'ignoreRoute':function(_0x499416){const _0x2a3e99=_0x1a3d34,_0x183970=/\/api\/users\/[0-9]+\/(login|logout)/gi;return!_0x183970[_0x2a3e99(0x27c)](_0x499416[_0x2a3e99(0x29f)]);}})),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x280),require('./api/user')),_0x20555d['use'](_0x1a3d34(0x1ff),require(_0x1a3d34(0x1a9))),_0x20555d[_0x1a3d34(0x28b)]('/api/voice/contexts',require('./api/voiceContext')),_0x20555d[_0x1a3d34(0x28b)]('/api/voice/extensions',require(_0x1a3d34(0x2a5))),_0x20555d['use'](_0x1a3d34(0x20a),require('./api/voiceMusicOnHold')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x238),require(_0x1a3d34(0x2a3))),_0x20555d['use'](_0x1a3d34(0x26a),require(_0x1a3d34(0x2a9))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1de),require(_0x1a3d34(0x293))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x21e),require(_0x1a3d34(0x1bd))),_0x20555d['use'](_0x1a3d34(0x287),require(_0x1a3d34(0x1c0))),_0x20555d[_0x1a3d34(0x28b)]('/api/voice/calls/reports',require(_0x1a3d34(0x1b5))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x288),require(_0x1a3d34(0x26c))),_0x20555d[_0x1a3d34(0x28b)]('/api/voice/agents/reports',require(_0x1a3d34(0x215))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1d9),require('./api/voiceQueueReport')),_0x20555d[_0x1a3d34(0x28b)]('/api/members/reports',require(_0x1a3d34(0x2d6))),_0x20555d['use'](_0x1a3d34(0x2b1),require('./api/trunk')),_0x20555d[_0x1a3d34(0x28b)]('/api/voice/transfers/reports',require(_0x1a3d34(0x1f4))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x266),require(_0x1a3d34(0x2c6))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2b2),require(_0x1a3d34(0x1f7))),_0x20555d['use'](_0x1a3d34(0x23c),require('./api/mailQueue')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2ac),require('./api/mailSubstatus')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x261),require(_0x1a3d34(0x2d7))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1d5),require(_0x1a3d34(0x275))),_0x20555d['use'](_0x1a3d34(0x252),require(_0x1a3d34(0x228))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1d1),require(_0x1a3d34(0x211))),_0x20555d[_0x1a3d34(0x28b)]('/api/dashboards',require(_0x1a3d34(0x1f0))),_0x20555d[_0x1a3d34(0x28b)]('/api/dashboards/items',require(_0x1a3d34(0x29d))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x201),require(_0x1a3d34(0x22f))),_0x20555d['use'](_0x1a3d34(0x239),require(_0x1a3d34(0x212))),_0x20555d['use']('/api/fax/interactions',require(_0x1a3d34(0x1ed))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1f2),require('./api/faxMessage')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x20c),require(_0x1a3d34(0x277))),_0x20555d['use'](_0x1a3d34(0x2c4),require('./api/faxQueueReport')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2cd),require(_0x1a3d34(0x218))),_0x20555d[_0x1a3d34(0x28b)]('/api/sms/applications',require(_0x1a3d34(0x282))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2b4),require('./api/smsInteraction')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x23e),require(_0x1a3d34(0x229))),_0x20555d['use'](_0x1a3d34(0x1fc),require(_0x1a3d34(0x1be))),_0x20555d[_0x1a3d34(0x28b)]('/api/openchannel/accounts',require('./api/openchannelAccount')),_0x20555d['use'](_0x1a3d34(0x255),require(_0x1a3d34(0x1ca))),_0x20555d['use'](_0x1a3d34(0x2da),require(_0x1a3d34(0x1fa))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x268),require('./api/openchannelMessage')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2d8),require(_0x1a3d34(0x1b2))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2d0),require('./api/chatWebsite')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x208),require(_0x1a3d34(0x296))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1b7),require(_0x1a3d34(0x24d))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2c2),require('./api/chatInteraction')),_0x20555d[_0x1a3d34(0x28b)]('/api/chat/messages',require(_0x1a3d34(0x1aa))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1df),require(_0x1a3d34(0x1e8))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2c9),require(_0x1a3d34(0x1c2))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1e3),require('./api/chatGroup')),_0x20555d[_0x1a3d34(0x28b)]('/api/chat/proactive_actions',require(_0x1a3d34(0x247))),_0x20555d[_0x1a3d34(0x28b)]('/api/cm/companies',require(_0x1a3d34(0x1cd))),_0x20555d['use']('/api/cm/contacts',require(_0x1a3d34(0x220))),_0x20555d[_0x1a3d34(0x28b)]('/api/cm/hopper',require(_0x1a3d34(0x28c))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x242),require(_0x1a3d34(0x269))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1c5),require(_0x1a3d34(0x1fe))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1a8),require(_0x1a3d34(0x1ef))),_0x20555d['use'](_0x1a3d34(0x22b),require(_0x1a3d34(0x27d))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x230),require('./api/action')),_0x20555d['use'](_0x1a3d34(0x2ce),require('./api/automation')),_0x20555d[_0x1a3d34(0x28b)]('/api/canned_answers',require(_0x1a3d34(0x240))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x219),require(_0x1a3d34(0x1d6))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2b7),require('./api/condition')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1d8),require(_0x1a3d34(0x1e9))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1ad),require(_0x1a3d34(0x1b4))),_0x20555d[_0x1a3d34(0x28b)]('/api/cdr',require(_0x1a3d34(0x2e1))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x21c),require('./api/voiceQueuesLog')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2be),require('./api/schedule')),_0x20555d['use'](_0x1a3d34(0x1e2),require('./api/sound')),_0x20555d['use'](_0x1a3d34(0x231),require(_0x1a3d34(0x257))),_0x20555d[_0x1a3d34(0x28b)]('/api/templates',require('./api/template')),_0x20555d['use'](_0x1a3d34(0x205),require('./api/trigger')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x232),require('./api/variable')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x25b),require(_0x1a3d34(0x1c4))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2c0),require(_0x1a3d34(0x23a))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x21d),require(_0x1a3d34(0x260))),_0x20555d['use'](_0x1a3d34(0x1db),require('./api/analyticDefaultReport')),_0x20555d['use'](_0x1a3d34(0x2ca),require(_0x1a3d34(0x20d))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x271),require('./api/analyticMetric')),_0x20555d['use'](_0x1a3d34(0x2a6),require(_0x1a3d34(0x210))),_0x20555d['use']('/api/analytics/tree_reports',require('./api/analyticTreeReport')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1dc),require('./api/intSalesforceAccount')),_0x20555d['use'](_0x1a3d34(0x1f6),require(_0x1a3d34(0x297))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x26f),require(_0x1a3d34(0x226))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x272),require(_0x1a3d34(0x2a0))),_0x20555d['use'](_0x1a3d34(0x2dc),require('./api/intSugarcrmConfiguration')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2d1),require('./api/intSugarcrmField')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2a2),require('./api/intDeskAccount')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1bf),require(_0x1a3d34(0x1e6))),_0x20555d['use'](_0x1a3d34(0x222),require(_0x1a3d34(0x28a))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x29e),require(_0x1a3d34(0x2b8))),_0x20555d['use'](_0x1a3d34(0x250),require('./api/intZohoConfiguration')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x24c),require(_0x1a3d34(0x1bb))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x22d),require('./api/intZendeskAccount')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2cc),require(_0x1a3d34(0x23f))),_0x20555d['use'](_0x1a3d34(0x1dd),require(_0x1a3d34(0x224))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1b9),require(_0x1a3d34(0x29c))),_0x20555d[_0x1a3d34(0x28b)]('/api/integrations/freshdesk/configurations',require(_0x1a3d34(0x2ba))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2c1),require(_0x1a3d34(0x262))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1e1),require(_0x1a3d34(0x25d))),_0x20555d['use'](_0x1a3d34(0x1b8),require(_0x1a3d34(0x1e4))),_0x20555d['use'](_0x1a3d34(0x2ad),require(_0x1a3d34(0x204))),_0x20555d['use'](_0x1a3d34(0x26b),require(_0x1a3d34(0x1cf))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x235),require(_0x1a3d34(0x236))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x20f),require(_0x1a3d34(0x2d4))),_0x20555d[_0x1a3d34(0x28b)]('/api/integrations/dynamics365/accounts',require(_0x1a3d34(0x279))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x286),require('./api/intDynamics365Configuration')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x24f),require(_0x1a3d34(0x21f))),_0x20555d['use'](_0x1a3d34(0x27b),require(_0x1a3d34(0x1c7))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x265),require('./api/intFreshsalesConfiguration')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1cc),require(_0x1a3d34(0x2bb))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1fd),require(_0x1a3d34(0x2ab))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x217),require(_0x1a3d34(0x21a))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x243),require(_0x1a3d34(0x22c))),_0x20555d['use'](_0x1a3d34(0x27e),require(_0x1a3d34(0x207))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2db),require(_0x1a3d34(0x249))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x25e),require(_0x1a3d34(0x2dd))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2bc),require('./api/smsQueueReport')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x206),require(_0x1a3d34(0x1f8))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x28f),require(_0x1a3d34(0x25f))),_0x20555d[_0x1a3d34(0x28b)]('/api/jscripty/projects',require(_0x1a3d34(0x214))),_0x20555d[_0x1a3d34(0x28b)]('/api/settings',require(_0x1a3d34(0x2ae))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2cf),require('./api/squareOdbc')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x294),require(_0x1a3d34(0x1f9))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x276),require(_0x1a3d34(0x2af))),_0x20555d['use']('/api/square/messages',require('./api/squareMessage')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x23d),require(_0x1a3d34(0x263))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1eb),require(_0x1a3d34(0x234))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x256),require(_0x1a3d34(0x2aa))),_0x20555d['use'](_0x1a3d34(0x2bd),require(_0x1a3d34(0x2d3))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1e7),require('./api/attachment')),_0x20555d['use'](_0x1a3d34(0x273),require(_0x1a3d34(0x251))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x221),require(_0x1a3d34(0x2df))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x233),require(_0x1a3d34(0x209))),_0x20555d['use'](_0x1a3d34(0x1ea),require(_0x1a3d34(0x259))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1c6),require('./api/openchannelTransferReport')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1cb),require('./api/smsTransferReport')),_0x20555d[_0x1a3d34(0x28b)]('/api/cm/lists',require(_0x1a3d34(0x223))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1af),require('./api/voicePrefix')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x270),require('./api/userProfile')),_0x20555d['use'](_0x1a3d34(0x22e),require(_0x1a3d34(0x225))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2d2),require(_0x1a3d34(0x2cb))),_0x20555d[_0x1a3d34(0x28b)]('/api/notifications',require(_0x1a3d34(0x1ce))),_0x20555d['use'](_0x1a3d34(0x20e),require(_0x1a3d34(0x1c9))),_0x20555d[_0x1a3d34(0x28b)]('/api/whatsapp/applications',require('./api/whatsappApplication')),_0x20555d[_0x1a3d34(0x28b)]('/api/whatsapp/interactions',require(_0x1a3d34(0x28d))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x274),require(_0x1a3d34(0x245))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x2de),require(_0x1a3d34(0x22a))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1ab),require('./api/whatsappTransferReport')),_0x20555d[_0x1a3d34(0x28b)]('/api/whatsapp/queues',require(_0x1a3d34(0x2d9))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x254),require(_0x1a3d34(0x1f5))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x213),require('./api/authLocal')),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x253),require('./api/authGoogle')),_0x20555d['use'](_0x1a3d34(0x2d5),require(_0x1a3d34(0x291))),_0x20555d['use'](_0x1a3d34(0x1ac),require(_0x1a3d34(0x28e))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x26d),require('./api/version')),_0x20555d['use'](_0x1a3d34(0x2a8),require(_0x1a3d34(0x246))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x289),require(_0x1a3d34(0x1c8))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x21b),require(_0x1a3d34(0x244))),_0x20555d['use']('/apidoc',express['static'](path[_0x1a3d34(0x1b0)](config[_0x1a3d34(0x284)],'..','apidoc'))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x203),express[_0x1a3d34(0x1ae)](path['resolve'](config[_0x1a3d34(0x284)],'..','www'))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1e0),express['static'](path[_0x1a3d34(0x1b0)](config[_0x1a3d34(0x284)],'..','demo'))),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x1da),express[_0x1a3d34(0x1ae)](path['resolve'](config[_0x1a3d34(0x284)],_0x1a3d34(0x24b))));const {chatPath:_0xd45766,chatVersion:_0x7e329a}=await getInstalledChatVersion(),_0x37af07=getConfigService();return!(_0x37af07['isProduction']||_0x37af07[_0x1a3d34(0x1d3)])&&console[_0x1a3d34(0x292)](_0x1a3d34(0x2e0),_0xd45766,_0x7e329a),_0xd45766&&_0x7e329a&&(_0x20555d['set'](_0x1a3d34(0x1ba),_0x7e329a),_0x20555d[_0x1a3d34(0x28b)](_0x1a3d34(0x25c),express['static'](_0xd45766))),_0x20555d=apiDocumentation(_0x20555d),_0x20555d[_0x1a3d34(0x1b6)]('/:url(api|auth|components|app|bower_components|assets)/*')[_0x1a3d34(0x216)](errors[0x194]),_0x20555d[_0x1a3d34(0x216)]('*',function(_0x303388,_0x161121){const _0x13b707=_0x1a3d34;_0x161121[_0x13b707(0x1d7)](path[_0x13b707(0x1b0)](_0x20555d[_0x13b707(0x216)](_0x13b707(0x227))+_0x13b707(0x1e5)));}),_0x20555d;}exports[a1192_0x3e4e78(0x2a4)]=routes,exports[a1192_0x3e4e78(0x1c3)]=routes; \ No newline at end of file diff --git a/server/rpc/index.js b/server/rpc/index.js index 009277c..97a043f 100644 --- a/server/rpc/index.js +++ b/server/rpc/index.js @@ -1 +1 @@ -const a1193_0x20d0=['../api/voiceRecording/voiceRecording.rpc','../api/intFreshdeskAccount/intFreshdeskAccount.rpc','../api/intDynamics365Account/intDynamics365Account.rpc','../api/mailServerIn/mailServerIn.rpc','../api/intZohoAccount/intZohoAccount.rpc','Express\x20RPC\x20server\x20closed','../api/whatsappInteraction/whatsappInteraction.rpc','../api/attachment/attachment.rpc','../api/openchannelMessage/openchannelMessage.rpc','merge','../api/cmHopper/cmHopper.rpc','../api/userVoiceQueueRt/userVoiceQueueRt.rpc','default','log','../api/voiceAgentReport/voiceAgentReport.rpc','../api/squareRecording/squareRecording.rpc','../api/mailQueue/mailQueue.rpc','../api/trunk/trunk.rpc','../api/cmHopperHistory/cmHopperHistory.rpc','RPC\x20listening\x20on\x20','../api/whatsappMessage/whatsappMessage.rpc','../api/intZendeskAccount/intZendeskAccount.rpc','../api/intVtigerAccount/intVtigerAccount.rpc','../api/squareProject/squareProject.rpc','../api/chatQueue/chatQueue.rpc','../api/intServicenowAccount/intServicenowAccount.rpc','../api/chatQueueReport/chatQueueReport.rpc','../api/mailInteraction/mailInteraction.rpc','error','Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!','../api/faxApplication/faxApplication.rpc','../api/smsMessage/smsMessage.rpc','../api/chatInteraction/chatInteraction.rpc','../api/cmHopperFinal/cmHopperFinal.rpc','listen','../api/interval/interval.rpc','../api/plugin/plugin.rpc','localhost','../api/openchannelInteraction/openchannelInteraction.rpc','jayson/promise','../api/campaign/campaign.rpc','../api/squareOdbc/squareOdbc.rpc','function','../api/voiceCallReport/voiceCallReport.rpc','exports','lodash','../api/faxAccount/faxAccount.rpc','close','../api/cmHopperBlack/cmHopperBlack.rpc','../api/pause/pause.rpc','rpc','../api/openchannelApplication/openchannelApplication.rpc','../api/voiceExtension/voiceExtension.rpc','../api/intFreshsalesAccount/intFreshsalesAccount.rpc','port','../config/triggers','../api/voiceTransferReport/voiceTransferReport.rpc','server','../api/trigger/trigger.rpc','../config/environment','../api/intDeskAccount/intDeskAccount.rpc','../api/mailMessage/mailMessage.rpc','../api/whatsappQueueReport/whatsappQueueReport.rpc','../api/squareMessage/squareMessage.rpc','../api/smsInteraction/smsInteraction.rpc','../api/smsAccount/smsAccount.rpc','../api/whatsappAccount/whatsappAccount.rpc','../api/faxInteraction/faxInteraction.rpc','../api/faxQueueReport/faxQueueReport.rpc','../api/smsQueueReport/smsQueueReport.rpc','../api/memberReport/memberReport.rpc','../api/faxMessage/faxMessage.rpc','../api/variable/variable.rpc','../api/faxQueue/faxQueue.rpc','RPC','../api/sound/sound.rpc'];(function(_0x26397e,_0x1a5304){const _0x20d0a2=function(_0x391cfd){while(--_0x391cfd){_0x26397e['push'](_0x26397e['shift']());}};_0x20d0a2(++_0x1a5304);}(a1193_0x20d0,0xf8));const a1193_0x391c=function(_0x26397e,_0x1a5304){_0x26397e=_0x26397e-0x199;let _0x20d0a2=a1193_0x20d0[_0x26397e];return _0x20d0a2;};const a1193_0x1fc5d3=a1193_0x391c;'use strict';const jayson=require(a1193_0x1fc5d3(0x1ac)),_=require(a1193_0x1fc5d3(0x1b2)),config=require(a1193_0x1fc5d3(0x1c0));function init(){const _0x426024=a1193_0x1fc5d3;let _0x2d46ce={};return _0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require('../api/user/user.rpc')),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1b9))),_0x2d46ce=_['merge'](_0x2d46ce,require('../api/voiceQueue/voiceQueue.rpc')),_0x2d46ce=_['merge'](_0x2d46ce,require(_0x426024(0x1d1))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1b0))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require('../api/voiceDialReport/voiceDialReport.rpc')),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1df))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require('../api/voiceQueueReport/voiceQueueReport.rpc')),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1cb))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1e2))),_0x2d46ce=_['merge'](_0x2d46ce,require(_0x426024(0x1bd))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1dc))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1d4))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require('../api/mailAccount/mailAccount.rpc')),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1e1))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1a0))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1c2))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require('../api/mailApplication/mailApplication.rpc')),_0x2d46ce=_['merge'](_0x2d46ce,require('../api/mailQueueReport/mailQueueReport.rpc')),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1b3))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1a3))),_0x2d46ce=_['merge'](_0x2d46ce,require(_0x426024(0x1c8))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1cc))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1ce))),_0x2d46ce=_['merge'](_0x2d46ce,require(_0x426024(0x1c9))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1c6))),_0x2d46ce=_['merge'](_0x2d46ce,require(_0x426024(0x1c5))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1a4))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require('../api/smsQueue/smsQueue.rpc')),_0x2d46ce=_['merge'](_0x2d46ce,require(_0x426024(0x1b8))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1ab))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1d9))),_0x2d46ce=_['merge'](_0x2d46ce,require('../api/openchannelQueue/openchannelQueue.rpc')),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require('../api/openchannelQueueReport/openchannelQueueReport.rpc')),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1a5))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require('../api/chatMessage/chatMessage.rpc')),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x19d))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require('../api/cmContact/cmContact.rpc')),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1db))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1b5))),_0x2d46ce=_['merge'](_0x2d46ce,require(_0x426024(0x1a6))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1e3))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require('../api/reportAgentPreview/reportAgentPreview.rpc')),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1a8))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1b6))),_0x2d46ce=_['merge'](_0x2d46ce,require(_0x426024(0x1d0))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require('../api/template/template.rpc')),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1bf))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1cd))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require('../api/intSalesforceAccount/intSalesforceAccount.rpc')),_0x2d46ce=_['merge'](_0x2d46ce,require('../api/intSugarcrmAccount/intSugarcrmAccount.rpc')),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1c1))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1d5))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x19a))),_0x2d46ce=_['merge'](_0x2d46ce,require(_0x426024(0x1d2))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x19b))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x19e))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1d3))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1ba))),_0x2d46ce=_['merge'](_0x2d46ce,require(_0x426024(0x19f))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1ca))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require('../api/squareReport/squareReport.rpc')),_0x2d46ce=_['merge'](_0x2d46ce,require('../api/squareReportDetail/squareReportDetail.rpc')),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1ae))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x19c))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1e0))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1c4))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1ad))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1d8))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1a9))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1c7))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1d7))),_0x2d46ce=_['merge'](_0x2d46ce,require(_0x426024(0x199))),_0x2d46ce=_[_0x426024(0x1da)](_0x2d46ce,require(_0x426024(0x1c3))),_0x2d46ce=_['merge'](_0x2d46ce,require('../api/whatsappQueue/whatsappQueue.rpc')),_0x2d46ce;}class RPC{constructor(_0x5e91e9){const _0x3f3054=a1193_0x1fc5d3;this[_0x3f3054(0x1bb)]=config[_0x3f3054(0x1b7)][_0x3f3054(0x1bb)]||config[_0x3f3054(0x1bb)]+0x1,this['host']=config['rpc']['ip']||_0x3f3054(0x1aa);const _0x6a4258=init();this['server']=jayson['server'](_0x6a4258)['http'](),typeof _0x5e91e9===_0x3f3054(0x1af)&&this['server']['on'](_0x3f3054(0x1a1),_0x5e91e9);}[a1193_0x1fc5d3(0x1a7)](){const {port:_0x332e6d,host:_0x4abdb7}=this;return new Promise(_0x89f4=>{const _0x597f67=a1193_0x391c;this[_0x597f67(0x1be)]['listen'](_0x332e6d,_0x4abdb7,function(){const _0x3d5061=_0x597f67;console['log'](_0x3d5061(0x1a2),_0x4abdb7,_0x332e6d),require(_0x3d5061(0x1bc))[_0x3d5061(0x1dd)](),_0x89f4(_0x3d5061(0x1e4)+_0x4abdb7+':'+_0x332e6d);});});}['close'](){return new Promise(_0x35353e=>{const _0x5d0fc0=a1193_0x391c;this[_0x5d0fc0(0x1be)][_0x5d0fc0(0x1b4)](()=>{const _0x2ee8f0=_0x5d0fc0;console[_0x2ee8f0(0x1de)](_0x2ee8f0(0x1d6)),_0x35353e();});});}}module[a1193_0x1fc5d3(0x1b1)][a1193_0x1fc5d3(0x1cf)]=RPC; \ No newline at end of file +const a1193_0x6c5f=['../api/squareRecording/squareRecording.rpc','RPC','../api/interval/interval.rpc','http','../api/memberReport/memberReport.rpc','lodash','../api/smsQueue/smsQueue.rpc','../api/userVoiceQueueRt/userVoiceQueueRt.rpc','../api/trunk/trunk.rpc','../api/mailQueueReport/mailQueueReport.rpc','../api/pause/pause.rpc','host','Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!','../api/chatMessage/chatMessage.rpc','../api/mailServerIn/mailServerIn.rpc','../api/intServicenowAccount/intServicenowAccount.rpc','../api/template/template.rpc','../api/squareProject/squareProject.rpc','../api/cmHopper/cmHopper.rpc','localhost','../api/faxInteraction/faxInteraction.rpc','../api/faxQueueReport/faxQueueReport.rpc','port','../api/voiceDialReport/voiceDialReport.rpc','../api/voiceCallReport/voiceCallReport.rpc','../config/environment','default','function','../api/trigger/trigger.rpc','../api/squareReportDetail/squareReportDetail.rpc','../api/smsAccount/smsAccount.rpc','../api/openchannelApplication/openchannelApplication.rpc','../api/campaign/campaign.rpc','../api/squareReport/squareReport.rpc','../api/chatInteraction/chatInteraction.rpc','../api/squareMessage/squareMessage.rpc','log','../api/cmHopperFinal/cmHopperFinal.rpc','../api/smsInteraction/smsInteraction.rpc','close','server','../api/intZohoAccount/intZohoAccount.rpc','../api/intFreshsalesAccount/intFreshsalesAccount.rpc','../api/cmHopperHistory/cmHopperHistory.rpc','../api/intDeskAccount/intDeskAccount.rpc','../api/faxQueue/faxQueue.rpc','listen','../api/whatsappQueue/whatsappQueue.rpc','rpc','../api/openchannelQueueReport/openchannelQueueReport.rpc','../api/intSalesforceAccount/intSalesforceAccount.rpc','jayson/promise','../api/openchannelMessage/openchannelMessage.rpc','../api/squareOdbc/squareOdbc.rpc','Express\x20RPC\x20server\x20closed','../api/intVtigerAccount/intVtigerAccount.rpc','../api/attachment/attachment.rpc','../api/voiceTransferReport/voiceTransferReport.rpc','../api/mailInteraction/mailInteraction.rpc','../api/mailMessage/mailMessage.rpc','merge','../api/faxAccount/faxAccount.rpc','../api/intFreshdeskAccount/intFreshdeskAccount.rpc','../api/voiceQueueReport/voiceQueueReport.rpc','../api/intSugarcrmAccount/intSugarcrmAccount.rpc','../api/whatsappMessage/whatsappMessage.rpc','../api/whatsappInteraction/whatsappInteraction.rpc','../api/cmContact/cmContact.rpc','exports','RPC\x20listening\x20on\x20','../api/user/user.rpc','../api/smsMessage/smsMessage.rpc','../api/mailQueue/mailQueue.rpc','../config/triggers','error','../api/reportAgentPreview/reportAgentPreview.rpc'];(function(_0x2c1512,_0x5b8e2e){const _0x6c5fb0=function(_0x2e3fbb){while(--_0x2e3fbb){_0x2c1512['push'](_0x2c1512['shift']());}};_0x6c5fb0(++_0x5b8e2e);}(a1193_0x6c5f,0x12c));const a1193_0x2e3f=function(_0x2c1512,_0x5b8e2e){_0x2c1512=_0x2c1512-0x1b3;let _0x6c5fb0=a1193_0x6c5f[_0x2c1512];return _0x6c5fb0;};const a1193_0x5c46ed=a1193_0x2e3f;'use strict';const jayson=require(a1193_0x5c46ed(0x1ea)),_=require(a1193_0x5c46ed(0x1bc)),config=require(a1193_0x5c46ed(0x1d0));function init(){const _0x3e6c21=a1193_0x5c46ed;let _0x4c7a92={};return _0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1fd))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/voiceExtension/voiceExtension.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/voiceQueue/voiceQueue.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/voiceRecording/voiceRecording.rpc')),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1cf))),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1ce))),_0x4c7a92=_['merge'](_0x4c7a92,require('../api/voiceAgentReport/voiceAgentReport.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1f6))),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1bb))),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1bf))),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1f0))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1be))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1c5))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/mailAccount/mailAccount.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1b3))),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1f1))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1f2))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/mailApplication/mailApplication.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1c0))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1f4))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/faxApplication/faxApplication.rpc')),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1cb))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/faxMessage/faxMessage.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1e4))),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1cc))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1d5))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1dd))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1fe))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1bd))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1d6))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/openchannelInteraction/openchannelInteraction.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1eb))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/openchannelQueue/openchannelQueue.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1e8))),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1d9))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1c4))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/chatQueue/chatQueue.rpc')),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1fa))),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1c9))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/cmHopperBlack/cmHopperBlack.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1dc))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1e2))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1b6))),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1b9))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1c1))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/sound/sound.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1c7))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1d3))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/variable/variable.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1e9))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1f7))),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1e3))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1e0))),_0x4c7a92=_['merge'](_0x4c7a92,require('../api/intZendeskAccount/intZendeskAccount.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1f5))),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1ee))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1c6))),_0x4c7a92=_['merge'](_0x4c7a92,require('../api/intDynamics365Account/intDynamics365Account.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1e1))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/chatQueueReport/chatQueueReport.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/smsQueueReport/smsQueueReport.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1d8))),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1d4))),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1ec))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1c8))),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1b7))),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1da))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1d7))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1ef))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/plugin/plugin.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/whatsappAccount/whatsappAccount.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1f9))),_0x4c7a92=_['merge'](_0x4c7a92,require(_0x3e6c21(0x1f8))),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require('../api/whatsappQueueReport/whatsappQueueReport.rpc')),_0x4c7a92=_[_0x3e6c21(0x1f3)](_0x4c7a92,require(_0x3e6c21(0x1e6))),_0x4c7a92;}class RPC{constructor(_0x17de2d){const _0x4594e=a1193_0x5c46ed;this[_0x4594e(0x1cd)]=config[_0x4594e(0x1e7)][_0x4594e(0x1cd)]||config[_0x4594e(0x1cd)]+0x1,this[_0x4594e(0x1c2)]=config[_0x4594e(0x1e7)]['ip']||_0x4594e(0x1ca);const _0x28bc4d=init();this[_0x4594e(0x1df)]=jayson['server'](_0x28bc4d)[_0x4594e(0x1ba)](),typeof _0x17de2d===_0x4594e(0x1d2)&&this['server']['on'](_0x4594e(0x1b5),_0x17de2d);}[a1193_0x5c46ed(0x1e5)](){const {port:_0x4537ea,host:_0x186274}=this;return new Promise(_0x1a1338=>{const _0x559ff1=a1193_0x2e3f;this[_0x559ff1(0x1df)][_0x559ff1(0x1e5)](_0x4537ea,_0x186274,function(){const _0x4b1760=_0x559ff1;console['log'](_0x4b1760(0x1c3),_0x186274,_0x4537ea),require(_0x4b1760(0x1b4))[_0x4b1760(0x1d1)](),_0x1a1338(_0x4b1760(0x1fc)+_0x186274+':'+_0x4537ea);});});}['close'](){return new Promise(_0x40bf5d=>{const _0x127188=a1193_0x2e3f;this[_0x127188(0x1df)][_0x127188(0x1de)](()=>{const _0x366b2b=_0x127188;console[_0x366b2b(0x1db)](_0x366b2b(0x1ed)),_0x40bf5d();});});}}module[a1193_0x5c46ed(0x1fb)][a1193_0x5c46ed(0x1b8)]=RPC; \ No newline at end of file diff --git a/server/services/agi/channel.js b/server/services/agi/channel.js index fe8002d..02289ac 100644 --- a/server/services/agi/channel.js +++ b/server/services/agi/channel.js @@ -1 +1 @@ -const a1194_0x1c4f=['E_AGI_SOCKET_TIMEOUT','./error','exports','WAIT','sayDigits','length','timeout','lodash','setExtension','line','startsWith','substr','SET\x20PRIORITY\x20%s','ANSWER','substring','SET\x20EXTENSION\x20%s','prototype','format','continueAt','emit','setContext','streamFile','inherits','close','RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s','recordFile','isArray','setVariable','getData','label','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','match','E_AGI_SOCKET_CLOSE','error','beep','E_AGI_SOCKET_ERROR','isNumber','no\x20code','toString','destroy','sayPhonetic','call','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','sync','result=','noop','STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','events','SET\x20VARIABLE\x20%s\x20\x22%s\x22','520-Invalid','sendRequest','code','./reply','hangup','EXEC\x20%s\x20%s','utf8','getVariable','setTimeout','split','indexOf','setPriority','command','agi','GET\x20VARIABLE\x20\x22%s\x22','HANGUP','function','setEncoding','SET\x20CONTEXT\x20%s','520\x20End\x20of\x20proper','exec','NO\x20MESSAGE'];(function(_0x2c6da8,_0x3de2ca){const _0x1c4fff=function(_0x11c09e){while(--_0x11c09e){_0x2c6da8['push'](_0x2c6da8['shift']());}};_0x1c4fff(++_0x3de2ca);}(a1194_0x1c4f,0x1ce));const a1194_0x11c0=function(_0x2c6da8,_0x3de2ca){_0x2c6da8=_0x2c6da8-0x1b0;let _0x1c4fff=a1194_0x1c4f[_0x2c6da8];return _0x1c4fff;};const a1194_0x477b7c=a1194_0x11c0;'use strict';const util=require('util'),_=require(a1194_0x477b7c(0x1da)),EventEmitter=require(a1194_0x477b7c(0x1bb))['EventEmitter'],AGIReply=require(a1194_0x477b7c(0x1c0)),AGIError=require(a1194_0x477b7c(0x1d4));function AGIChannel(_0xd8cc03){const _0x416f26=a1194_0x477b7c,_0x1ab292=this,_0x5a7593=new AGIReply();let _0x3b174e=![],_0x170f47={};EventEmitter[_0x416f26(0x1b5)](_0x1ab292),_0xd8cc03[_0x416f26(0x1ce)](_0x416f26(0x1c3)),_0xd8cc03[_0x416f26(0x1c5)](0x8*0x3c*0x3c*0x3e8),_0x5a7593['setEncoding'](_0x416f26(0x1c3)),_0x5a7593['on']('headers',function(_0x3546c7){const _0x15022a=_0x416f26;for(const _0x4cf30d in _0x3546c7){_0x1ab292[_0x4cf30d]=_0x3546c7[_0x4cf30d];}_0x1ab292[_0x15022a(0x1e6)]('ready');}),_0x5a7593['on'](_0x416f26(0x1dc),function(_0x307885){const _0x210716=_0x416f26;if(_0x307885['toLowerCase']()==_0x210716(0x1c1)){_0x1ab292[_0x210716(0x1e6)](_0x210716(0x1c1));return;}_0x307885[_0x210716(0x1e1)](0x0,0xb)==_0x210716(0x1bd)&&(_0x3b174e=!![]);_0x3b174e?(_0x170f47['rx']+=_0x307885+'\x0a',_0x307885['search'](_0x210716(0x1d0))!=-0x1&&(_0x3b174e=![])):_0x170f47['rx']=_0x307885;if(_0x3b174e)return;if(typeof _0x170f47['cb']==_0x210716(0x1cd)){let _0x49cd77=_0x170f47['rx'][_0x210716(0x1e1)](0x0,0x3),_0x3234b6=null,_0xd06315=null;_0x49cd77=parseInt(_0x49cd77);if(isNaN(_0x49cd77)){_0x170f47['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0x210716(0x1b1)});return;}if(_0x49cd77!=0xc8){_0x170f47['cb'](null,{'code':_0x49cd77,'result':-0x1,'extra':'KO'});return;}_0x3234b6=_0x170f47['rx'][_0x210716(0x1e1)](0x4)['replace'](_0x210716(0x1b8),'');_0x3234b6['indexOf']('\x20')!=-0x1&&(_0x3234b6=_0x3234b6[_0x210716(0x1de)](0x0,_0x3234b6[_0x210716(0x1c7)]('\x20')));_[_0x210716(0x1dd)](_0x3234b6,'-1')&&(_0x3234b6=parseInt(_0x3234b6));_0xd06315=_0x170f47['rx'][_0x210716(0x1c6)]('\x20');if(_0xd06315['length']==0x3)_0xd06315=_0xd06315[0x2][_0x210716(0x1e1)](0x1,_0xd06315[0x2][_0x210716(0x1d8)]-0x1);else{if(_0xd06315[_0x210716(0x1d8)]>0x3){const _0x245881=/\((.+)\)/,_0x59270b=_0x170f47['rx'][_0x210716(0x1f2)](_0x245881);_0x59270b?_0xd06315=_0x59270b[0x1]:_0xd06315=null;}else _0xd06315=null;}_0x170f47['cb'](null,{'code':_0x49cd77,'result':_0x3234b6,'extra':_0xd06315});}}),_0xd8cc03['on'](_0x416f26(0x1f4),function(_0xca5c9e){const _0x418b9c=_0x416f26;_0x1ab292['emit'](_0x418b9c(0x1f4),new AGIError(_0x418b9c(0x1f6),_0xca5c9e[_0x418b9c(0x1bf)]));}),_0xd8cc03['on'](_0x416f26(0x1ea),function(){const _0x16fdf1=_0x416f26;_0x1ab292[_0x16fdf1(0x1e6)](_0x16fdf1(0x1ea),new AGIError(_0x16fdf1(0x1f3)));}),_0xd8cc03['on'](_0x416f26(0x1d9),function(){const _0x297fe3=_0x416f26;_0x1ab292['emit'](_0x297fe3(0x1d9),new AGIError(_0x297fe3(0x1d3))),_0xd8cc03[_0x297fe3(0x1b3)]();}),_0xd8cc03['pipe'](_0x5a7593),(this[_0x416f26(0x1c9)]=function(_0x1723a2,_0x5166b0){_0x1723a2=_0x1723a2||'',_0x5166b0=typeof _0x5166b0=='function'?_0x5166b0:new Function(),_0x170f47={'tx':_0x1723a2,'rx':'','cb':_0x5166b0},_0xd8cc03['write'](_0x1723a2+'\x0a');},this[_0x416f26(0x1ea)]=function(){_0xd8cc03['destroy']();});}util[a1194_0x477b7c(0x1e9)](AGIChannel,EventEmitter),AGIChannel[a1194_0x477b7c(0x1e3)]['sendRequest']=function(_0x218882){const _0x1a84b0=a1194_0x477b7c;return this['command'][_0x1a84b0(0x1b7)](this,_0x218882);},AGIChannel[a1194_0x477b7c(0x1e3)]['answer']=function(){const _0x326a82=a1194_0x477b7c;return this[_0x326a82(0x1be)](_0x326a82(0x1e0));},AGIChannel[a1194_0x477b7c(0x1e3)][a1194_0x477b7c(0x1ef)]=function(_0x42323d,_0x5dba8b,_0x40b195){const _0x58e96d=a1194_0x477b7c;return _0x42323d=_0x42323d===undefined?_0x58e96d(0x1f5):_0x42323d,_0x5dba8b=_0x5dba8b===undefined?'5':_0x5dba8b,_0x40b195=_0x40b195===undefined?'1':_0x40b195,this[_0x58e96d(0x1be)](util['format']('GET\x20DATA\x20\x22%s\x22\x20%s\x20%s',_0x42323d,_0x5dba8b*0x3e8,_0x40b195));},AGIChannel[a1194_0x477b7c(0x1e3)]['noop']=function(_0x1f028a){const _0x1548e0=a1194_0x477b7c;return _0x1f028a=_0x1f028a||_0x1548e0(0x1d2),this[_0x1548e0(0x1be)](util['format']('VERBOSE\x20\x22%s\x22',_0x1f028a));},AGIChannel['prototype']['exec']=function(_0xedceb9,_0x18e334){const _0x13fd03=a1194_0x477b7c;if(_[_0x13fd03(0x1ed)](_0x18e334))return this['sendRequest'](util[_0x13fd03(0x1e4)](_0x13fd03(0x1c2),_0xedceb9,_0x18e334['join'](',')));return this[_0x13fd03(0x1be)](util[_0x13fd03(0x1e4)](_0x13fd03(0x1c2),_0xedceb9,_0x18e334));},AGIChannel['prototype'][a1194_0x477b7c(0x1e7)]=function(_0x584f9f){const _0x2bf428=a1194_0x477b7c;return this[_0x2bf428(0x1be)](util[_0x2bf428(0x1e4)](_0x2bf428(0x1cf),_0x584f9f));},AGIChannel[a1194_0x477b7c(0x1e3)]['setExtension']=function(_0x5dded7){const _0x36b3b8=a1194_0x477b7c;return this[_0x36b3b8(0x1be)](util[_0x36b3b8(0x1e4)](_0x36b3b8(0x1e2),_0x5dded7));},AGIChannel[a1194_0x477b7c(0x1e3)][a1194_0x477b7c(0x1c8)]=function(_0x46c036){const _0x3db125=a1194_0x477b7c;return this[_0x3db125(0x1be)](util[_0x3db125(0x1e4)](_0x3db125(0x1df),_0x46c036));},AGIChannel[a1194_0x477b7c(0x1e3)][a1194_0x477b7c(0x1c1)]=function(){const _0x18343f=a1194_0x477b7c;return this[_0x18343f(0x1be)](_0x18343f(0x1cc));},AGIChannel['prototype'][a1194_0x477b7c(0x1ee)]=function(_0x127a8b,_0xc73ac7){const _0x587496=a1194_0x477b7c,_0x36b274=_['isBoolean'](_0xc73ac7)||_[_0x587496(0x1b0)](_0xc73ac7)?_0xc73ac7[_0x587496(0x1b2)]():_0xc73ac7;return this[_0x587496(0x1be)](util[_0x587496(0x1e4)](_0x587496(0x1bc),_0x127a8b,_0x36b274?_0x36b274[_0x587496(0x1b2)]()['replace'](/(\r\n|\n|\r)/gm,'\x20'):''));},AGIChannel[a1194_0x477b7c(0x1e3)]['sayNumber']=function(_0x15c30b,_0x45c6e5){const _0x5089e1=a1194_0x477b7c;return this[_0x5089e1(0x1be)](util['format']('SAY\x20NUMBER\x20%s\x20%s',_0x15c30b,_0x45c6e5));},AGIChannel['prototype'][a1194_0x477b7c(0x1d7)]=function(_0x5c0daa,_0x574a03){const _0x5403bc=a1194_0x477b7c;return this[_0x5403bc(0x1be)](util['format']('SAY\x20DIGITS\x20%s\x20%s',_0x5c0daa,_0x574a03));},AGIChannel[a1194_0x477b7c(0x1e3)][a1194_0x477b7c(0x1b4)]=function(_0x4f1163,_0x31c6ae){const _0x4a0264=a1194_0x477b7c;return this[_0x4a0264(0x1be)](util['format'](_0x4a0264(0x1b6),_0x4f1163,_0x31c6ae));},AGIChannel[a1194_0x477b7c(0x1e3)][a1194_0x477b7c(0x1e5)]=function(_0x499087,_0x36372c,_0x3f48a0){const _0x40f161=a1194_0x477b7c;return _0x36372c=_0x36372c||this['extension'],_0x3f48a0=_0x3f48a0||0x1,this['setContext'](_0x499087),this[_0x40f161(0x1db)](_0x36372c),this[_0x40f161(0x1c8)](_0x3f48a0),this[_0x40f161(0x1b9)](util[_0x40f161(0x1e4)]('GOTO\x20%s\x20%s\x20%s',_0x499087,_0x36372c,_0x3f48a0));},AGIChannel[a1194_0x477b7c(0x1e3)][a1194_0x477b7c(0x1c4)]=function(_0x275779){const _0x180108=a1194_0x477b7c;return this[_0x180108(0x1be)](util[_0x180108(0x1e4)](_0x180108(0x1cb),_0x275779));},AGIChannel['prototype'][a1194_0x477b7c(0x1ec)]=function(_0xa66bfe,_0x229300,_0x4c394f,_0x111f48,_0x77c2de,_0x138555){const _0xba3218=a1194_0x477b7c;return _0x229300=_0x229300||'wav',_0x4c394f=_0x4c394f||'',_0x111f48=_0x111f48===undefined?-0x1:_0x111f48==='-1'?-0x1:_0x111f48*0x3e8,_0x77c2de=_0x77c2de===undefined?'':'s='+_0x77c2de,_0x138555=_0x138555?'BEEP':'',this[_0xba3218(0x1be)](util['format'](_0xba3218(0x1eb),_0xa66bfe,_0x229300,_0x4c394f,_0x111f48,_0x138555,_0x77c2de));},AGIChannel[a1194_0x477b7c(0x1e3)][a1194_0x477b7c(0x1e8)]=function(_0x5d2adc,_0x54b29e){const _0x38f9df=a1194_0x477b7c;return _0x54b29e=_0x54b29e||'',this[_0x38f9df(0x1be)](util[_0x38f9df(0x1e4)](_0x38f9df(0x1ba),_0x5d2adc,_0x54b29e));},AGIChannel[a1194_0x477b7c(0x1e3)][a1194_0x477b7c(0x1ca)]=function(_0x1e9444){const _0x651411=a1194_0x477b7c;return this[_0x651411(0x1d1)]('AGI',_0x1e9444);},AGIChannel['prototype']['wait']=function(_0x2cb192){const _0x28a5b2=a1194_0x477b7c;return this[_0x28a5b2(0x1d1)](_0x28a5b2(0x1d6),_0x2cb192);},AGIChannel[a1194_0x477b7c(0x1e3)][a1194_0x477b7c(0x1f4)]=function(_0x1063ae,_0x87e56a){const _0x409d7a=a1194_0x477b7c;return this[_0x409d7a(0x1b9)](util['format'](_0x409d7a(0x1f1),_0x1063ae['id'],_0x1063ae[_0x409d7a(0x1f0)],_0x87e56a)),{'code':0x1f4,'result':'-1','extra':''};},module[a1194_0x477b7c(0x1d5)]=AGIChannel; \ No newline at end of file +const a1194_0x5a0d=['no\x20code','function','sayDigits','write','isArray','isNumber','pipe','sync','EXEC\x20%s\x20%s','SAY\x20NUMBER\x20%s\x20%s','emit','NO\x20MESSAGE','util','join','HANGUP','length','indexOf','split','wav','inherits','getVariable','close','setVariable','./error','ready','setExtension','E_AGI_SOCKET_ERROR','toLowerCase','lodash','command','GOTO\x20%s\x20%s\x20%s','sayPhonetic','replace','EventEmitter','SET\x20VARIABLE\x20%s\x20\x22%s\x22','BEEP','hangup','destroy','STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','error','extension','noop','result=','RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','line','SET\x20PRIORITY\x20%s','toString','E_AGI_SOCKET_TIMEOUT','agi','SET\x20EXTENSION\x20%s','streamFile','isBoolean','code','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','sayNumber','sendRequest','substring','answer','prototype','wait','timeout','setPriority','520\x20End\x20of\x20proper','ANSWER','substr','setEncoding','headers','exec','format','startsWith','520-Invalid','recordFile','call','E_AGI_SOCKET_CLOSE','label','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','utf8'];(function(_0x2be639,_0x48e317){const _0x5a0d0f=function(_0x321f3c){while(--_0x321f3c){_0x2be639['push'](_0x2be639['shift']());}};_0x5a0d0f(++_0x48e317);}(a1194_0x5a0d,0x86));const a1194_0x321f=function(_0x2be639,_0x48e317){_0x2be639=_0x2be639-0xbb;let _0x5a0d0f=a1194_0x5a0d[_0x2be639];return _0x5a0d0f;};const a1194_0x4eefa8=a1194_0x321f;'use strict';const util=require(a1194_0x4eefa8(0xdd)),_=require(a1194_0x4eefa8(0xed)),EventEmitter=require('events')[a1194_0x4eefa8(0xf2)],AGIReply=require('./reply'),AGIError=require(a1194_0x4eefa8(0xe8));function AGIChannel(_0x4affd8){const _0xd078c3=a1194_0x4eefa8,_0x525e4a=this,_0x598687=new AGIReply();let _0x16caf7=![],_0x2fb2f9={};EventEmitter[_0xd078c3(0xcc)](_0x525e4a),_0x4affd8[_0xd078c3(0xc5)](_0xd078c3(0xd0)),_0x4affd8['setTimeout'](0x8*0x3c*0x3c*0x3e8),_0x598687[_0xd078c3(0xc5)](_0xd078c3(0xd0)),_0x598687['on'](_0xd078c3(0xc6),function(_0x3c62b9){const _0x2e728c=_0xd078c3;for(const _0x443c66 in _0x3c62b9){_0x525e4a[_0x443c66]=_0x3c62b9[_0x443c66];}_0x525e4a[_0x2e728c(0xdb)](_0x2e728c(0xe9));}),_0x598687['on'](_0xd078c3(0xfe),function(_0x1a06df){const _0x5cd6f8=_0xd078c3;if(_0x1a06df[_0x5cd6f8(0xec)]()=='hangup'){_0x525e4a[_0x5cd6f8(0xdb)](_0x5cd6f8(0xf5));return;}_0x1a06df[_0x5cd6f8(0xbc)](0x0,0xb)==_0x5cd6f8(0xca)&&(_0x16caf7=!![]);_0x16caf7?(_0x2fb2f9['rx']+=_0x1a06df+'\x0a',_0x1a06df['search'](_0x5cd6f8(0xc2))!=-0x1&&(_0x16caf7=![])):_0x2fb2f9['rx']=_0x1a06df;if(_0x16caf7)return;if(typeof _0x2fb2f9['cb']==_0x5cd6f8(0xd2)){let _0x4d43ee=_0x2fb2f9['rx'][_0x5cd6f8(0xbc)](0x0,0x3),_0x410296=null,_0x3389bb=null;_0x4d43ee=parseInt(_0x4d43ee);if(isNaN(_0x4d43ee)){_0x2fb2f9['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0x5cd6f8(0xd1)});return;}if(_0x4d43ee!=0xc8){_0x2fb2f9['cb'](null,{'code':_0x4d43ee,'result':-0x1,'extra':'KO'});return;}_0x410296=_0x2fb2f9['rx'][_0x5cd6f8(0xbc)](0x4)[_0x5cd6f8(0xf1)](_0x5cd6f8(0xfb),'');_0x410296[_0x5cd6f8(0xe1)]('\x20')!=-0x1&&(_0x410296=_0x410296[_0x5cd6f8(0xc4)](0x0,_0x410296[_0x5cd6f8(0xe1)]('\x20')));_[_0x5cd6f8(0xc9)](_0x410296,'-1')&&(_0x410296=parseInt(_0x410296));_0x3389bb=_0x2fb2f9['rx'][_0x5cd6f8(0xe2)]('\x20');if(_0x3389bb['length']==0x3)_0x3389bb=_0x3389bb[0x2][_0x5cd6f8(0xbc)](0x1,_0x3389bb[0x2][_0x5cd6f8(0xe0)]-0x1);else{if(_0x3389bb[_0x5cd6f8(0xe0)]>0x3){const _0x51aaa5=/\((.+)\)/,_0x43402a=_0x2fb2f9['rx']['match'](_0x51aaa5);_0x43402a?_0x3389bb=_0x43402a[0x1]:_0x3389bb=null;}else _0x3389bb=null;}_0x2fb2f9['cb'](null,{'code':_0x4d43ee,'result':_0x410296,'extra':_0x3389bb});}}),_0x4affd8['on'](_0xd078c3(0xf8),function(_0x20c130){const _0x399b24=_0xd078c3;_0x525e4a[_0x399b24(0xdb)]('error',new AGIError(_0x399b24(0xeb),_0x20c130[_0x399b24(0x106)]));}),_0x4affd8['on'](_0xd078c3(0xe6),function(){const _0x2a3bad=_0xd078c3;_0x525e4a[_0x2a3bad(0xdb)](_0x2a3bad(0xe6),new AGIError(_0x2a3bad(0xcd)));}),_0x4affd8['on'](_0xd078c3(0xc0),function(){const _0x1cf50e=_0xd078c3;_0x525e4a[_0x1cf50e(0xdb)]('timeout',new AGIError(_0x1cf50e(0x101))),_0x4affd8['destroy']();}),_0x4affd8[_0xd078c3(0xd7)](_0x598687),(this[_0xd078c3(0xee)]=function(_0x62dce0,_0xa7bc8b){const _0x4694ce=_0xd078c3;_0x62dce0=_0x62dce0||'',_0xa7bc8b=typeof _0xa7bc8b==_0x4694ce(0xd2)?_0xa7bc8b:new Function(),_0x2fb2f9={'tx':_0x62dce0,'rx':'','cb':_0xa7bc8b},_0x4affd8[_0x4694ce(0xd4)](_0x62dce0+'\x0a');},this[_0xd078c3(0xe6)]=function(){const _0x3c09e9=_0xd078c3;_0x4affd8[_0x3c09e9(0xf6)]();});}util[a1194_0x4eefa8(0xe4)](AGIChannel,EventEmitter),AGIChannel['prototype'][a1194_0x4eefa8(0xbb)]=function(_0x385e6f){const _0x3dbd28=a1194_0x4eefa8;return this[_0x3dbd28(0xee)][_0x3dbd28(0xd8)](this,_0x385e6f);},AGIChannel[a1194_0x4eefa8(0xbe)][a1194_0x4eefa8(0xbd)]=function(){const _0x108c84=a1194_0x4eefa8;return this[_0x108c84(0xbb)](_0x108c84(0xc3));},AGIChannel[a1194_0x4eefa8(0xbe)]['getData']=function(_0x476e64,_0x332f49,_0x267af9){const _0x14a204=a1194_0x4eefa8;return _0x476e64=_0x476e64===undefined?'beep':_0x476e64,_0x332f49=_0x332f49===undefined?'5':_0x332f49,_0x267af9=_0x267af9===undefined?'1':_0x267af9,this[_0x14a204(0xbb)](util[_0x14a204(0xc8)](_0x14a204(0xfd),_0x476e64,_0x332f49*0x3e8,_0x267af9));},AGIChannel['prototype'][a1194_0x4eefa8(0xfa)]=function(_0x47b1cd){const _0x52fa66=a1194_0x4eefa8;return _0x47b1cd=_0x47b1cd||_0x52fa66(0xdc),this[_0x52fa66(0xbb)](util['format']('VERBOSE\x20\x22%s\x22',_0x47b1cd));},AGIChannel[a1194_0x4eefa8(0xbe)][a1194_0x4eefa8(0xc7)]=function(_0xc69f2f,_0x37f8b0){const _0x2233d0=a1194_0x4eefa8;if(_[_0x2233d0(0xd5)](_0x37f8b0))return this['sendRequest'](util[_0x2233d0(0xc8)](_0x2233d0(0xd9),_0xc69f2f,_0x37f8b0[_0x2233d0(0xde)](',')));return this['sendRequest'](util[_0x2233d0(0xc8)](_0x2233d0(0xd9),_0xc69f2f,_0x37f8b0));},AGIChannel[a1194_0x4eefa8(0xbe)]['setContext']=function(_0xd48973){return this['sendRequest'](util['format']('SET\x20CONTEXT\x20%s',_0xd48973));},AGIChannel[a1194_0x4eefa8(0xbe)][a1194_0x4eefa8(0xea)]=function(_0x191fe5){const _0x51c688=a1194_0x4eefa8;return this[_0x51c688(0xbb)](util[_0x51c688(0xc8)](_0x51c688(0x103),_0x191fe5));},AGIChannel[a1194_0x4eefa8(0xbe)][a1194_0x4eefa8(0xc1)]=function(_0x51e634){const _0x155823=a1194_0x4eefa8;return this[_0x155823(0xbb)](util[_0x155823(0xc8)](_0x155823(0xff),_0x51e634));},AGIChannel[a1194_0x4eefa8(0xbe)][a1194_0x4eefa8(0xf5)]=function(){const _0x382836=a1194_0x4eefa8;return this[_0x382836(0xbb)](_0x382836(0xdf));},AGIChannel[a1194_0x4eefa8(0xbe)][a1194_0x4eefa8(0xe7)]=function(_0x5a0878,_0x3c55a1){const _0x43564a=a1194_0x4eefa8,_0x303226=_[_0x43564a(0x105)](_0x3c55a1)||_[_0x43564a(0xd6)](_0x3c55a1)?_0x3c55a1['toString']():_0x3c55a1;return this['sendRequest'](util[_0x43564a(0xc8)](_0x43564a(0xf3),_0x5a0878,_0x303226?_0x303226[_0x43564a(0x100)]()[_0x43564a(0xf1)](/(\r\n|\n|\r)/gm,'\x20'):''));},AGIChannel[a1194_0x4eefa8(0xbe)][a1194_0x4eefa8(0x108)]=function(_0x230040,_0x5b4d03){const _0x2c52ba=a1194_0x4eefa8;return this[_0x2c52ba(0xbb)](util[_0x2c52ba(0xc8)](_0x2c52ba(0xda),_0x230040,_0x5b4d03));},AGIChannel[a1194_0x4eefa8(0xbe)][a1194_0x4eefa8(0xd3)]=function(_0x382058,_0x4bd881){return this['sendRequest'](util['format']('SAY\x20DIGITS\x20%s\x20%s',_0x382058,_0x4bd881));},AGIChannel[a1194_0x4eefa8(0xbe)][a1194_0x4eefa8(0xf0)]=function(_0x5ba345,_0x514e66){const _0x49fdec=a1194_0x4eefa8;return this[_0x49fdec(0xbb)](util[_0x49fdec(0xc8)](_0x49fdec(0xcf),_0x5ba345,_0x514e66));},AGIChannel['prototype']['continueAt']=function(_0x54869d,_0x592c38,_0x4375a5){const _0x248235=a1194_0x4eefa8;return _0x592c38=_0x592c38||this[_0x248235(0xf9)],_0x4375a5=_0x4375a5||0x1,this['setContext'](_0x54869d),this[_0x248235(0xea)](_0x592c38),this['setPriority'](_0x4375a5),this[_0x248235(0xfa)](util[_0x248235(0xc8)](_0x248235(0xef),_0x54869d,_0x592c38,_0x4375a5));},AGIChannel[a1194_0x4eefa8(0xbe)][a1194_0x4eefa8(0xe5)]=function(_0x14e0c9){const _0x18169c=a1194_0x4eefa8;return this[_0x18169c(0xbb)](util[_0x18169c(0xc8)]('GET\x20VARIABLE\x20\x22%s\x22',_0x14e0c9));},AGIChannel[a1194_0x4eefa8(0xbe)][a1194_0x4eefa8(0xcb)]=function(_0x21bdc0,_0x515066,_0x14c17c,_0x41067f,_0x471991,_0x434b8d){const _0x335948=a1194_0x4eefa8;return _0x515066=_0x515066||_0x335948(0xe3),_0x14c17c=_0x14c17c||'',_0x41067f=_0x41067f===undefined?-0x1:_0x41067f==='-1'?-0x1:_0x41067f*0x3e8,_0x471991=_0x471991===undefined?'':'s='+_0x471991,_0x434b8d=_0x434b8d?_0x335948(0xf4):'',this[_0x335948(0xbb)](util['format'](_0x335948(0xfc),_0x21bdc0,_0x515066,_0x14c17c,_0x41067f,_0x434b8d,_0x471991));},AGIChannel[a1194_0x4eefa8(0xbe)][a1194_0x4eefa8(0x104)]=function(_0x3bc33d,_0x3e9247){const _0x38a50a=a1194_0x4eefa8;return _0x3e9247=_0x3e9247||'',this[_0x38a50a(0xbb)](util['format'](_0x38a50a(0xf7),_0x3bc33d,_0x3e9247));},AGIChannel[a1194_0x4eefa8(0xbe)][a1194_0x4eefa8(0x102)]=function(_0x36e13f){return this['exec']('AGI',_0x36e13f);},AGIChannel['prototype'][a1194_0x4eefa8(0xbf)]=function(_0x218ae7){const _0x36d6de=a1194_0x4eefa8;return this[_0x36d6de(0xc7)]('WAIT',_0x218ae7);},AGIChannel[a1194_0x4eefa8(0xbe)][a1194_0x4eefa8(0xf8)]=function(_0x381bdf,_0x2463aa){const _0x8675eb=a1194_0x4eefa8;return this[_0x8675eb(0xfa)](util[_0x8675eb(0xc8)](_0x8675eb(0x107),_0x381bdf['id'],_0x381bdf[_0x8675eb(0xce)],_0x2463aa)),{'code':0x1f4,'result':'-1','extra':''};},module['exports']=AGIChannel; \ No newline at end of file diff --git a/server/services/agi/error.js b/server/services/agi/error.js index 7f9d67b..2084614 100644 --- a/server/services/agi/error.js +++ b/server/services/agi/error.js @@ -1 +1 @@ -const a1195_0x4a3a=['apply','Socket\x20error.\x20Code:\x20%s.','name','format','Server\x20error.\x20Code:\x20%s.','[LICENSE]\x20Server\x20max\x20connection.\x20Count:\x20%s.','Missing\x20\x27ivr.agi_network_script\x27.','Argument\x20\x27port\x27\x20missing\x20in\x20function\x20call.','E_AGI_UNDEFINED','message','Undefined\x20error.','Server\x20closed.','util','Empty\x20command.','[LICENSE\x20VOICE]\x20Server\x20license\x20voice\x20disabled.','push','Socket\x20closed.','Socket\x20timeout.'];(function(_0x1cf589,_0x382576){const _0x4a3abb=function(_0xaea62a){while(--_0xaea62a){_0x1cf589['push'](_0x1cf589['shift']());}};_0x4a3abb(++_0x382576);}(a1195_0x4a3a,0x85));const a1195_0xaea6=function(_0x1cf589,_0x382576){_0x1cf589=_0x1cf589-0x1a7;let _0x4a3abb=a1195_0x4a3a[_0x1cf589];return _0x4a3abb;};const a1195_0x45cb7a=a1195_0xaea6;'use strict';const util=require(a1195_0x45cb7a(0x1ac)),error={'E_AGI_UNDEFINED':a1195_0x45cb7a(0x1aa),'E_AGI_ARGUMENT_PORT':a1195_0x45cb7a(0x1a7),'E_AGI_SERVER_ERROR':a1195_0x45cb7a(0x1b6),'E_AGI_SERVER_CLOSE':a1195_0x45cb7a(0x1ab),'E_AGI_SERVER_MAXCONNECTION':a1195_0x45cb7a(0x1b7),'E_AGI_SERVER_VOICE_DISABLED':a1195_0x45cb7a(0x1ae),'E_AGI_SOCKET_ERROR':a1195_0x45cb7a(0x1b3),'E_AGI_SOCKET_CLOSE':a1195_0x45cb7a(0x1b0),'E_AGI_SOCKET_TIMEOUT':a1195_0x45cb7a(0x1b1),'E_AGI_COMMAND_EMPTY':a1195_0x45cb7a(0x1ad),'E_AGI_IVR_AGI_NETWORK_SCRIPT':a1195_0x45cb7a(0x1b8),'E_AGI_IVR_ENTRY':'Missing\x20\x27ivr.entry\x27\x20menu.'};function AGIError(_0x2f863c){const _0xeb7cc5=a1195_0x45cb7a;_0x2f863c=_0x2f863c||null;const _0x1d2e4f=_0x1d2e4f||[];let _0x434de1=0x1,_0x2d1de8='';!error[_0x2f863c]&&(_0x2f863c=_0xeb7cc5(0x1a8));_0x1d2e4f[_0xeb7cc5(0x1af)](error[_0x2f863c]);while(arguments[_0x434de1]){_0x1d2e4f[_0xeb7cc5(0x1af)](arguments[_0x434de1]),_0x434de1++;}_0x2d1de8=util[_0xeb7cc5(0x1b5)][_0xeb7cc5(0x1b2)](util,_0x1d2e4f),this[_0xeb7cc5(0x1a9)]=_0x2d1de8,this[_0xeb7cc5(0x1b4)]=_0x2f863c;}module['exports']=AGIError; \ No newline at end of file +const a1195_0x1679=['Socket\x20error.\x20Code:\x20%s.','Undefined\x20error.','[LICENSE\x20VOICE]\x20Server\x20license\x20voice\x20disabled.','apply','Empty\x20command.','format','util','Argument\x20\x27port\x27\x20missing\x20in\x20function\x20call.','Socket\x20timeout.','Server\x20closed.','Missing\x20\x27ivr.entry\x27\x20menu.','E_AGI_UNDEFINED','Server\x20error.\x20Code:\x20%s.','push','Missing\x20\x27ivr.agi_network_script\x27.'];(function(_0x7564f2,_0x2fa40c){const _0x167905=function(_0x40d622){while(--_0x40d622){_0x7564f2['push'](_0x7564f2['shift']());}};_0x167905(++_0x2fa40c);}(a1195_0x1679,0x7c));const a1195_0x40d6=function(_0x7564f2,_0x2fa40c){_0x7564f2=_0x7564f2-0x19a;let _0x167905=a1195_0x1679[_0x7564f2];return _0x167905;};const a1195_0x452d69=a1195_0x40d6;'use strict';const util=require(a1195_0x452d69(0x19c)),error={'E_AGI_UNDEFINED':a1195_0x452d69(0x1a6),'E_AGI_ARGUMENT_PORT':a1195_0x452d69(0x19d),'E_AGI_SERVER_ERROR':a1195_0x452d69(0x1a2),'E_AGI_SERVER_CLOSE':a1195_0x452d69(0x19f),'E_AGI_SERVER_MAXCONNECTION':'[LICENSE]\x20Server\x20max\x20connection.\x20Count:\x20%s.','E_AGI_SERVER_VOICE_DISABLED':a1195_0x452d69(0x1a7),'E_AGI_SOCKET_ERROR':a1195_0x452d69(0x1a5),'E_AGI_SOCKET_CLOSE':'Socket\x20closed.','E_AGI_SOCKET_TIMEOUT':a1195_0x452d69(0x19e),'E_AGI_COMMAND_EMPTY':a1195_0x452d69(0x19a),'E_AGI_IVR_AGI_NETWORK_SCRIPT':a1195_0x452d69(0x1a4),'E_AGI_IVR_ENTRY':a1195_0x452d69(0x1a0)};function AGIError(_0x3ee707){const _0x10ec57=a1195_0x452d69;_0x3ee707=_0x3ee707||null;const _0x47b5c3=_0x47b5c3||[];let _0x5d3f33=0x1,_0x4b1a55='';!error[_0x3ee707]&&(_0x3ee707=_0x10ec57(0x1a1));_0x47b5c3[_0x10ec57(0x1a3)](error[_0x3ee707]);while(arguments[_0x5d3f33]){_0x47b5c3[_0x10ec57(0x1a3)](arguments[_0x5d3f33]),_0x5d3f33++;}_0x4b1a55=util[_0x10ec57(0x19b)][_0x10ec57(0x1a8)](util,_0x47b5c3),this['message']=_0x4b1a55,this['name']=_0x3ee707;}module['exports']=AGIError; \ No newline at end of file diff --git a/server/services/agi/graph/index.js b/server/services/agi/graph/index.js index 291f355..8834981 100644 --- a/server/services/agi/graph/index.js +++ b/server/services/agi/graph/index.js @@ -1 +1 @@ -const a1196_0x21c0=['condition\x20not\x20found','default\x20on\x20switch\x20not\x20found','invalid','lodash','split','traverseBFS','prototype','addEdge','max\x20retry\x20reach','exports','condition','numberOfEdges','target','vertices','stop\x20traverse','agicommand','length','size','no\x20vertex\x20found','default','relations','vswitch','getVertex','info','addVertex','includes','getdigits','edges','push','agi','getsecretdigits','no\x20edge/s\x20available'];(function(_0x115432,_0x47bfa8){const _0x21c070=function(_0x7a856c){while(--_0x7a856c){_0x115432['push'](_0x115432['shift']());}};_0x21c070(++_0x47bfa8);}(a1196_0x21c0,0x1ae));const a1196_0x7a85=function(_0x115432,_0x47bfa8){_0x115432=_0x115432-0xd2;let _0x21c070=a1196_0x21c0[_0x115432];return _0x21c070;};const a1196_0x210f5c=a1196_0x7a85;'use strict';const _=require(a1196_0x210f5c(0xe7)),logger=require('../../../config/logger')(a1196_0x210f5c(0xe1)),verticesWithRetry=['menu',a1196_0x210f5c(0xde),a1196_0x210f5c(0xe2)],Graph=function(){const _0x38c574=a1196_0x210f5c;this[_0x38c574(0xf1)]={},this[_0x38c574(0xdf)]={},this[_0x38c574(0xef)]=0x0;};Graph[a1196_0x210f5c(0xea)][a1196_0x210f5c(0xdc)]=function(_0x346710){this['vertices'][_0x346710['id']]=_0x346710,this['edges'][_0x346710['id']]=[];},Graph[a1196_0x210f5c(0xea)][a1196_0x210f5c(0xeb)]=function(_0x131598,_0x2a335a,_0x4debdd){const _0x58993e=a1196_0x210f5c;this[_0x58993e(0xdf)][_0x131598][_0x58993e(0xe0)]({'target':_0x2a335a,'condition':_0x4debdd}),this['numberOfEdges']+=0x1;},Graph['prototype'][a1196_0x210f5c(0xd5)]=function(){const _0x5ad4ff=a1196_0x210f5c;return _[_0x5ad4ff(0xd5)](this['vertices']);},Graph[a1196_0x210f5c(0xea)][a1196_0x210f5c(0xd8)]=function(){return this['numberOfEdges'];},Graph[a1196_0x210f5c(0xea)][a1196_0x210f5c(0xda)]=function(_0x3ed26f){const _0x33b4e0=a1196_0x210f5c;return this[_0x33b4e0(0xf1)][_0x3ed26f];},Graph[a1196_0x210f5c(0xea)][a1196_0x210f5c(0xe9)]=function(_0xea58af,_0x52d15f){const _0x491166=a1196_0x210f5c;if(!this[_0x491166(0xf1)][_0xea58af])return logger[_0x491166(0xdb)](_0x491166(0xd6));const _0x41eb38=_0x52d15f(this['vertices'][_0xea58af]);if(!_0x41eb38)return logger[_0x491166(0xdb)](_0x491166(0xd2));if(this[_0x491166(0xdf)][_0xea58af][_0x491166(0xd4)]===0x0)return logger[_0x491166(0xdb)](_0x491166(0xe3));const _0x11b21c=![],_0x3bbe8f=[];for(let _0x5af8de=0x0,_0x1a8e9d=[],_0x4439cb=![];_0x5af8de\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','hangup','callysquare','[GOTO]\x20context:\x20%s\x20extension:\x20%s\x20priority:\x20%s','context','maxRetry','priority','mxCell','[ERROR]\x20%s','[FINALLY\x20TRAVERSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','../../config/license/util','error','sync','target','info','code','listening','./mailRpc','length','inspect','start','getLicense','createSquareReport','variables','moment','close','clear','isUndefined','result','uniqueid','substring','[LISTENING]\x20Cally\x20Square\x20listening\x20%s:%d','[TIMEOUT]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','gotoc\x20block\x20stop\x20traverse\x20BFS','voice','../../config/environment','callerid','agi','finally','catch','production','getSquareProject','log','format','defaults','agicommand','Cally\x20Square\x20server\x20listening\x20on\x20port\x20%d!','calleridname','[HANGUP]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','vertex','./vertices','source','undefined','continueAt','dnid','omit','mxGraphModel','Project\x20%s\x20not\x20found','../../globals','util','lodash','debug','agicommand\x20not\x20found','[LICENSE]\x20CHANNELS:\x20UNLIMITED','127.0.0.1','xml2json','stack','[CLOSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','evtHangup','[START]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','resolve','root','./rpc'];(function(_0x1a7205,_0x4c9950){const _0x47ea62=function(_0x40c661){while(--_0x40c661){_0x1a7205['push'](_0x1a7205['shift']());}};_0x47ea62(++_0x4c9950);}(a1197_0x47ea,0x161));const a1197_0x40c6=function(_0x1a7205,_0x4c9950){_0x1a7205=_0x1a7205-0x88;let _0x47ea62=a1197_0x47ea[_0x1a7205];return _0x47ea62;};const a1197_0x194cea=a1197_0x40c6;'use strict';require(a1197_0x194cea(0xdf));const parser=require(a1197_0x194cea(0x8b)),_=require(a1197_0x194cea(0xe1)),util=require(a1197_0x194cea(0xe0)),moment=require(a1197_0x194cea(0xbd)),config=require(a1197_0x194cea(0xc8)),logger=require('../../config/logger')('agi'),utilLicense=require(a1197_0x194cea(0xaf)),rpc=require(a1197_0x194cea(0x92)),mailRpc=require(a1197_0x194cea(0xb6)),Graph=require('./graph'),Vertices=require(a1197_0x194cea(0xd7)),AGI_CODE_SUCCESS=0xc8,AGI_RESULT_ERROR=-0x1;config[a1197_0x194cea(0xca)]=_[a1197_0x194cea(0xd1)](config['agi'],{'ip':a1197_0x194cea(0x8a),'port':0x11dd});async function connectionHandler(_0x14d8d3){const _0x29b22b=a1197_0x194cea;try{await setChannelVariables(_0x14d8d3),await agiHandler(_0x14d8d3);}catch(_0x14f7c4){logger[_0x29b22b(0xb0)](_0x14f7c4[_0x29b22b(0x8c)]);}}function listeningHandler(){const _0x1f50fd=a1197_0x194cea;console[_0x1f50fd(0xcf)](_0x1f50fd(0xd3),config[_0x1f50fd(0xca)][_0x1f50fd(0x94)]),logger[_0x1f50fd(0xb3)](util[_0x1f50fd(0xd0)](_0x1f50fd(0xc4),config[_0x1f50fd(0xca)]['ip'],config[_0x1f50fd(0xca)][_0x1f50fd(0x94)]));}function errorHandler(_0xc0a8cd){const _0x36828b=a1197_0x194cea;_0xc0a8cd&&_0xc0a8cd[_0x36828b(0x99)]&&_0xc0a8cd[_0x36828b(0x9f)]?logger['error'](util[_0x36828b(0xd0)]('[%s]\x20%s',_0xc0a8cd[_0x36828b(0x99)],_0xc0a8cd[_0x36828b(0x9f)])):logger[_0x36828b(0xb0)](util[_0x36828b(0xd0)](_0x36828b(0xad),_0xc0a8cd['stack']));}function closeHandler(){const _0x195be7=a1197_0x194cea;logger[_0x195be7(0xb3)](util[_0x195be7(0xd0)](_0x195be7(0x8d),this[_0x195be7(0x98)],this[_0x195be7(0xd4)],this[_0x195be7(0xc9)],this[_0x195be7(0xdb)],this['uniqueid']));try{createSquareReport(this);}catch(_0x2daa95){logger[_0x195be7(0xb0)](_0x2daa95[_0x195be7(0x8c)]);}}function timeoutHandler(){const _0x503316=a1197_0x194cea;logger[_0x503316(0xb3)](util['format'](_0x503316(0xc5),this[_0x503316(0x98)],this[_0x503316(0xd4)],this[_0x503316(0xc9)],this[_0x503316(0xdb)],this[_0x503316(0xc2)]));}function hangupHandler(){const _0x3930f9=a1197_0x194cea;logger['info'](util[_0x3930f9(0xd0)](_0x3930f9(0xd5),this['arg_1'],this[_0x3930f9(0xd4)],this[_0x3930f9(0xc9)],this['dnid'],this['uniqueid'])),this[_0x3930f9(0x8e)]=!![];}function getRoot(_0x678d67){const _0x5aeb55=a1197_0x194cea;return parser[_0x5aeb55(0x9c)](_0x678d67,{'object':!![]})[_0x5aeb55(0xdd)][_0x5aeb55(0x91)];}function addVertex(_0x9bb8aa,_0x1c3d5c,_0x237d5a){const _0x51a2c4=a1197_0x194cea;_0x1c3d5c[_0x51a2c4(0xd2)]=_0x237d5a,typeof _0x1c3d5c['retry']!==_0x51a2c4(0xd9)&&(_0x1c3d5c[_0x51a2c4(0xaa)]=parseInt(_0x1c3d5c[_0x51a2c4(0x97)],0xa)),_0x9bb8aa['addVertex'](_['omit'](_0x1c3d5c,'mxCell'));}function initGraph(_0x11d688,_0x3eeb0c){const _0x2cba92=a1197_0x194cea,_0x145cf6=new Graph();for(const _0x12e410 in _0x11d688){if(typeof _0x11d688[_0x12e410]!==_0x2cba92(0xd9)){if(_[_0x2cba92(0xa2)](_0x11d688[_0x12e410]))for(let _0x29b5ab=0x0;_0x29b5ab<_0x11d688[_0x12e410][_0x2cba92(0xb7)];_0x29b5ab+=0x1){addVertex(_0x145cf6,_0x11d688[_0x12e410][_0x29b5ab],_0x12e410);}else addVertex(_0x145cf6,_0x11d688[_0x12e410],_0x12e410);}}for(let _0x56377a=0x0;_0x56377a<_0x3eeb0c[_0x2cba92(0xb7)];_0x56377a+=0x1){_0x3eeb0c[_0x56377a][_0x2cba92(0xd8)]&&_0x3eeb0c[_0x56377a][_0x2cba92(0xb2)]&&_0x145cf6[_0x2cba92(0xa3)](_0x3eeb0c[_0x56377a][_0x2cba92(0xd8)],_0x3eeb0c[_0x56377a]['target'],_0x3eeb0c[_0x56377a][_0x2cba92(0x9a)]);}return _0x145cf6;}function getSquareProject(_0x55e16b,_0x4af86c){const _0x325f8c=a1197_0x194cea;rpc[_0x325f8c(0xce)](_0x55e16b)[_0x325f8c(0x9d)](function(_0xc503c5){_0x4af86c(null,_0xc503c5);})[_0x325f8c(0xcc)](function(_0x361370){_0x4af86c(null,_0x361370);});}function createSquareReport(_0x279758,_0x4a668b){const _0x2f03ef=a1197_0x194cea;rpc[_0x2f03ef(0xbb)](_0x279758)[_0x2f03ef(0x9d)](function(_0x377393){_0x4a668b&&_0x4a668b(null,_0x377393);})[_0x2f03ef(0xcc)](function(_0xae7402){_0x4a668b&&_0x4a668b(null,_0xae7402);});}async function setChannelVariables(_0x145968){const _0x184981=a1197_0x194cea;for(const _0xdcc2ab in _0x145968){typeof _0x145968[_0xdcc2ab]!=='undefined'&&(_0xdcc2ab[_0x184981(0xa0)](_0x184981(0x95))===0x0&&(_0x145968[_0xdcc2ab[_0x184981(0xc3)](0x4)]=_0x145968[_0xdcc2ab],delete _0x145968[_0xdcc2ab]));}return Promise['resolve'](_0x145968);}function getLogFromObject(_0xc68c30){const _0x111a50=a1197_0x194cea;return util[_0x111a50(0xb8)](_0xc68c30,{'showHidden':![],'depth':null});}async function agiHandler(_0x3a517){const _0x63b0ef=a1197_0x194cea;let _0x289b4d,_0x289d28,_0x3431dd,_0x20cdbb;logger['debug'](_0x63b0ef(0xbc),JSON['stringify'](_0x3a517,null,0x2)),logger['info'](util[_0x63b0ef(0xd0)](_0x63b0ef(0x8f),_0x3a517[_0x63b0ef(0x98)],_0x3a517['calleridname'],_0x3a517['callerid'],_0x3a517[_0x63b0ef(0xdb)],_0x3a517[_0x63b0ef(0xc2)])),_0x3a517['on'](_0x63b0ef(0xb0),errorHandler),_0x3a517['on']('close',closeHandler),_0x3a517['on'](_0x63b0ef(0x96),timeoutHandler),_0x3a517[_0x63b0ef(0x8e)]=![],_0x3a517['on'](_0x63b0ef(0xa6),hangupHandler);const _0x391b35=getSquareProject[_0x63b0ef(0xb1)](null,_0x3a517['arg_1']);return _0x391b35?_0x391b35[_0x63b0ef(0xcd)]?(_0x289b4d=getRoot(_0x391b35[_0x63b0ef(0xcd)]),_0x289b4d&&_0x289b4d[_0x63b0ef(0xb9)]&&(logger['debug'](_0x63b0ef(0x91),JSON[_0x63b0ef(0xa1)](_0x289b4d,null,0x2)),_0x3a517['joinAt']=moment()[_0x63b0ef(0xd0)]('YYYY-MM-DD\x20HH:mm:ss'),_0x289d28=initGraph(_[_0x63b0ef(0xdc)](_0x289b4d,_0x63b0ef(0xac)),_0x289b4d[_0x63b0ef(0xac)]),_0x3431dd=new Vertices(_0x3a517,rpc,mailRpc),logger[_0x63b0ef(0xb3)](util[_0x63b0ef(0xd0)](_0x63b0ef(0xa5),_0x3a517['arg_1'],_0x3a517['calleridname'],_0x3a517['callerid'],_0x3a517['dnid'],_0x3a517[_0x63b0ef(0xc2)])),_0x289d28['traverseBFS'](_0x289b4d[_0x63b0ef(0xb9)]['id'],function(_0xc2f045){const _0x44e3e7=_0x63b0ef;try{_0xc2f045=_0x3431dd[_0x44e3e7(0xbf)](_0xc2f045),logger[_0x44e3e7(0xe2)](_0x44e3e7(0xd6),JSON['stringify'](_0xc2f045,null,0x2));if(_0xc2f045[_0x44e3e7(0xd2)]===_0x44e3e7(0xa4))return logger[_0x44e3e7(0xb3)](_0x44e3e7(0xc6)),_0x3a517['context']=_0xc2f045[_0x44e3e7(0xa9)]||_0x3a517[_0x44e3e7(0xa9)],_0x3a517['extension']=_0xc2f045[_0x44e3e7(0x9e)],_0x3a517['priority']=_0xc2f045[_0x44e3e7(0xab)]?_0xc2f045['priority']-0x1:0x1,null;else return _0xc2f045&&_0x3431dd[_0xc2f045['agicommand']]?(_0x20cdbb=_0x3431dd[_0xc2f045[_0x44e3e7(0xd2)]](_0xc2f045),logger[_0x44e3e7(0xb3)]('response',JSON[_0x44e3e7(0xa1)](_0x20cdbb,null,0x2)),_0x20cdbb&&_0x20cdbb[_0x44e3e7(0xb4)]===AGI_CODE_SUCCESS&&_0x20cdbb[_0x44e3e7(0xc1)]!==AGI_RESULT_ERROR&&!_0x3a517['evtHangup']?(logger[_0x44e3e7(0xe2)](_0x44e3e7(0x9b),getLogFromObject(_0x20cdbb)),_[_0x44e3e7(0xc0)](_0x20cdbb['result'])?null:_0x20cdbb[_0x44e3e7(0xc1)]['toString']()):(logger[_0x44e3e7(0xb0)]('response',getLogFromObject(_0x20cdbb)),null)):(logger[_0x44e3e7(0xb0)](_0x44e3e7(0x88)),null);}catch(_0x1f8853){return logger['error'](_0x1f8853[_0x44e3e7(0x8c)]),null;}}),_0x289b4d['finally']&&(logger[_0x63b0ef(0xb3)](util[_0x63b0ef(0xd0)](_0x63b0ef(0xae),_0x3a517['arg_1'],_0x3a517[_0x63b0ef(0xd4)],_0x3a517[_0x63b0ef(0xc9)],_0x3a517[_0x63b0ef(0xdb)],_0x3a517[_0x63b0ef(0xc2)])),_0x289d28['traverseBFS'](_0x289b4d[_0x63b0ef(0xcb)]['id'],function(_0x2bffb1){const _0x2b6424=_0x63b0ef;try{return _0x2bffb1=_0x3431dd[_0x2b6424(0xbf)](_0x2bffb1),logger['debug'](_0x2b6424(0xd6),JSON[_0x2b6424(0xa1)](_0x2bffb1,null,0x2)),_0x2bffb1&&_0x3431dd[_0x2bffb1[_0x2b6424(0xd2)]]?(_0x20cdbb=_0x3431dd[_0x2bffb1[_0x2b6424(0xd2)]](_0x2bffb1),_0x20cdbb?(logger[_0x2b6424(0xe2)](_0x2b6424(0x9b),getLogFromObject(_0x20cdbb)),_[_0x2b6424(0xc0)](_0x20cdbb[_0x2b6424(0xc1)])?null:_0x20cdbb[_0x2b6424(0xc1)]['toString']()):(logger[_0x2b6424(0xb0)](_0x2b6424(0x9b),getLogFromObject(_0x20cdbb)),null)):(logger[_0x2b6424(0xb0)]('agicommand\x20not\x20found'),null);}catch(_0x77577){return logger[_0x2b6424(0xb0)](_0x77577['stack']),null;}})),logger[_0x63b0ef(0xb3)](util[_0x63b0ef(0xd0)]('[END]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',_0x3a517[_0x63b0ef(0x98)],_0x3a517[_0x63b0ef(0xd4)],_0x3a517[_0x63b0ef(0xc9)],_0x3a517[_0x63b0ef(0xdb)],_0x3a517['uniqueid'])),logger['info'](util['format'](_0x63b0ef(0xa8),_0x3a517[_0x63b0ef(0xa9)],_0x3a517['extension'],parseInt(_0x3a517[_0x63b0ef(0xab)],0xa)+0x1)),_0x3a517[_0x63b0ef(0xda)](_0x3a517[_0x63b0ef(0xa9)],_0x3a517[_0x63b0ef(0x9e)],parseInt(_0x3a517[_0x63b0ef(0xab)],0xa)+0x1),_0x3a517[_0x63b0ef(0xbe)]())):(logger[_0x63b0ef(0xb0)](util[_0x63b0ef(0xd0)]('Project\x20%s\x20not\x20published',_0x3a517[_0x63b0ef(0x98)])),_0x3a517['continueAt'](_0x3a517[_0x63b0ef(0xa9)],_0x3a517['extension'],parseInt(_0x3a517[_0x63b0ef(0xab)],0xa)+0x1),_0x3a517[_0x63b0ef(0xbe)]()):(logger[_0x63b0ef(0xb0)](util[_0x63b0ef(0xd0)](_0x63b0ef(0xde),_0x3a517['arg_1'])),_0x3a517[_0x63b0ef(0xda)](_0x3a517['context'],_0x3a517['extension'],parseInt(_0x3a517[_0x63b0ef(0xab)],0xa)+0x1),_0x3a517[_0x63b0ef(0xbe)]()),Promise[_0x63b0ef(0x90)]();}function main(){const _0xb13772=a1197_0x194cea;let _0x1593bf;return utilLicense[_0xb13772(0xba)]()[_0xb13772(0x9d)](function(_0x5236a1){const _0x5167d8=_0xb13772;_0x5236a1&&(_0x5236a1[_0x5167d8(0xc7)]?_0x5236a1[_0x5167d8(0xa7)]&&_0x5236a1[_0x5167d8(0xa7)]>0x0?(logger[_0x5167d8(0xb3)](util['format']('[LICENSE]\x20CHANNELS:\x20%s',_0x5236a1[_0x5167d8(0xa7)])),_0x1593bf=_0x5236a1[_0x5167d8(0xa7)]):logger[_0x5167d8(0xb3)](_0x5167d8(0x89)):(logger['info']('[LICENSE]\x20VOICE\x20IS\x20DISABLED'),_0x1593bf=-0x1));})[_0xb13772(0xcc)](function(_0x415f65){const _0x2e199e=_0xb13772;logger[_0x2e199e(0xb0)]('[LICENSE]',_0x415f65[_0x2e199e(0x8c)]);})[_0xb13772(0xcb)](function(){const _0x4a4012=_0xb13772,_0x2d3c6a=require('./server')(config['agi'][_0x4a4012(0x94)],config['agi']['ip'],_0x1593bf);_0x2d3c6a['on'](_0x4a4012(0xb0),errorHandler),_0x2d3c6a['on'](_0x4a4012(0xb5),listeningHandler),_0x2d3c6a['on'](_0x4a4012(0x93),connectionHandler),_0x2d3c6a['on'](_0x4a4012(0xbe),closeHandler);});}main(); \ No newline at end of file +const a1197_0x567a=['result','maxRetry','error','format','defaults','isUndefined','Project\x20%s\x20not\x20published','substring','connection','addEdge','log','isArray','priority','timeout','omit','[LICENSE]\x20CHANNELS:\x20%s','start','hangup','gotoc\x20block\x20stop\x20traverse\x20BFS','stringify','code','source','stack','context','callysquare','toString','debug','mxGraphModel','../../globals','Cally\x20Square\x20server\x20listening\x20on\x20port\x20%d!','[TIMEOUT]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','port','response','[HANGUP]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','[LICENSE]\x20VOICE\x20IS\x20DISABLED','./rpc','continueAt','[LISTENING]\x20Cally\x20Square\x20listening\x20%s:%d','./graph','calleridname','arg_1','./vertices','traverseBFS','retry','callerid','then','clear','Project\x20%s\x20not\x20found','root','value','indexOf','[START]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','agicommand\x20not\x20found','close','mxCell','[FINALLY\x20TRAVERSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','voice','resolve','finally','variables','[%s]\x20%s','lodash','production','../../config/environment','catch','[END]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','evtHangup','[ERROR]\x20%s','message','undefined','listening','getSquareProject','vertex','agicommand','toJson','dnid','YYYY-MM-DD\x20HH:mm:ss','inspect','uniqueid','[LICENSE]','../../config/license/util','name','target','agi','length','extension','info','agi_'];(function(_0x5748c4,_0x46c6d5){const _0x567a6b=function(_0x29fd26){while(--_0x29fd26){_0x5748c4['push'](_0x5748c4['shift']());}};_0x567a6b(++_0x46c6d5);}(a1197_0x567a,0x1d5));const a1197_0x29fd=function(_0x5748c4,_0x46c6d5){_0x5748c4=_0x5748c4-0x95;let _0x567a6b=a1197_0x567a[_0x5748c4];return _0x567a6b;};const a1197_0x335380=a1197_0x29fd;'use strict';require(a1197_0x335380(0xec));const parser=require('xml2json'),_=require(a1197_0x335380(0xb5)),util=require('util'),moment=require('moment'),config=require(a1197_0x335380(0xb7)),logger=require('../../config/logger')('agi'),utilLicense=require(a1197_0x335380(0xc8)),rpc=require(a1197_0x335380(0x9b)),mailRpc=require('./mailRpc'),Graph=require(a1197_0x335380(0x9e)),Vertices=require(a1197_0x335380(0xa1)),AGI_CODE_SUCCESS=0xc8,AGI_RESULT_ERROR=-0x1;config[a1197_0x335380(0xcb)]=_[a1197_0x335380(0xd4)](config[a1197_0x335380(0xcb)],{'ip':'127.0.0.1','port':0x11dd});async function connectionHandler(_0x4337ea){try{await setChannelVariables(_0x4337ea),await agiHandler(_0x4337ea);}catch(_0x4cb4f9){logger['error'](_0x4cb4f9['stack']);}}function listeningHandler(){const _0x31fadf=a1197_0x335380;console[_0x31fadf(0xda)](_0x31fadf(0x95),config[_0x31fadf(0xcb)][_0x31fadf(0x97)]),logger[_0x31fadf(0xce)](util[_0x31fadf(0xd3)](_0x31fadf(0x9d),config[_0x31fadf(0xcb)]['ip'],config[_0x31fadf(0xcb)][_0x31fadf(0x97)]));}function errorHandler(_0x1414c9){const _0x3f7277=a1197_0x335380;_0x1414c9&&_0x1414c9[_0x3f7277(0xc9)]&&_0x1414c9['message']?logger['error'](util[_0x3f7277(0xd3)](_0x3f7277(0xb4),_0x1414c9[_0x3f7277(0xc9)],_0x1414c9[_0x3f7277(0xbc)])):logger[_0x3f7277(0xd2)](util['format'](_0x3f7277(0xbb),_0x1414c9[_0x3f7277(0xe6)]));}function closeHandler(){const _0x52ae5f=a1197_0x335380;logger[_0x52ae5f(0xce)](util[_0x52ae5f(0xd3)]('[CLOSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',this['arg_1'],this[_0x52ae5f(0x9f)],this[_0x52ae5f(0xa4)],this[_0x52ae5f(0xc3)],this['uniqueid']));try{createSquareReport(this);}catch(_0x4bdcff){logger[_0x52ae5f(0xd2)](_0x4bdcff[_0x52ae5f(0xe6)]);}}function timeoutHandler(){const _0x49d865=a1197_0x335380;logger[_0x49d865(0xce)](util[_0x49d865(0xd3)](_0x49d865(0x96),this[_0x49d865(0xa0)],this[_0x49d865(0x9f)],this[_0x49d865(0xa4)],this[_0x49d865(0xc3)],this[_0x49d865(0xc6)]));}function hangupHandler(){const _0x2ecb95=a1197_0x335380;logger[_0x2ecb95(0xce)](util[_0x2ecb95(0xd3)](_0x2ecb95(0x99),this[_0x2ecb95(0xa0)],this[_0x2ecb95(0x9f)],this[_0x2ecb95(0xa4)],this[_0x2ecb95(0xc3)],this[_0x2ecb95(0xc6)])),this[_0x2ecb95(0xba)]=!![];}function getRoot(_0x54e978){const _0x2ceb9b=a1197_0x335380;return parser[_0x2ceb9b(0xc2)](_0x54e978,{'object':!![]})[_0x2ceb9b(0xeb)][_0x2ceb9b(0xa8)];}function addVertex(_0x409fe8,_0x4baebc,_0x3cf12b){const _0x565473=a1197_0x335380;_0x4baebc[_0x565473(0xc1)]=_0x3cf12b,typeof _0x4baebc[_0x565473(0xa3)]!==_0x565473(0xbd)&&(_0x4baebc[_0x565473(0xd1)]=parseInt(_0x4baebc[_0x565473(0xa3)],0xa)),_0x409fe8['addVertex'](_[_0x565473(0xde)](_0x4baebc,_0x565473(0xae)));}function initGraph(_0x133f54,_0x5059cf){const _0x1918e1=a1197_0x335380,_0x237be9=new Graph();for(const _0x991289 in _0x133f54){if(typeof _0x133f54[_0x991289]!==_0x1918e1(0xbd)){if(_[_0x1918e1(0xdb)](_0x133f54[_0x991289]))for(let _0x2c21bf=0x0;_0x2c21bf<_0x133f54[_0x991289][_0x1918e1(0xcc)];_0x2c21bf+=0x1){addVertex(_0x237be9,_0x133f54[_0x991289][_0x2c21bf],_0x991289);}else addVertex(_0x237be9,_0x133f54[_0x991289],_0x991289);}}for(let _0x3d753f=0x0;_0x3d753f<_0x5059cf[_0x1918e1(0xcc)];_0x3d753f+=0x1){_0x5059cf[_0x3d753f]['source']&&_0x5059cf[_0x3d753f][_0x1918e1(0xca)]&&_0x237be9[_0x1918e1(0xd9)](_0x5059cf[_0x3d753f][_0x1918e1(0xe5)],_0x5059cf[_0x3d753f][_0x1918e1(0xca)],_0x5059cf[_0x3d753f][_0x1918e1(0xa9)]);}return _0x237be9;}function getSquareProject(_0x332ff9,_0x235bd7){const _0x390004=a1197_0x335380;rpc[_0x390004(0xbf)](_0x332ff9)[_0x390004(0xa5)](function(_0x377d06){_0x235bd7(null,_0x377d06);})[_0x390004(0xb8)](function(_0x258aaf){_0x235bd7(null,_0x258aaf);});}function createSquareReport(_0x1f448f,_0x32146c){const _0x1eb9f9=a1197_0x335380;rpc['createSquareReport'](_0x1f448f)[_0x1eb9f9(0xa5)](function(_0x4210f5){_0x32146c&&_0x32146c(null,_0x4210f5);})['catch'](function(_0x488c6d){_0x32146c&&_0x32146c(null,_0x488c6d);});}async function setChannelVariables(_0x2b1ae5){const _0x360327=a1197_0x335380;for(const _0x10ee3f in _0x2b1ae5){typeof _0x2b1ae5[_0x10ee3f]!=='undefined'&&(_0x10ee3f[_0x360327(0xaa)](_0x360327(0xcf))===0x0&&(_0x2b1ae5[_0x10ee3f[_0x360327(0xd7)](0x4)]=_0x2b1ae5[_0x10ee3f],delete _0x2b1ae5[_0x10ee3f]));}return Promise[_0x360327(0xb1)](_0x2b1ae5);}function getLogFromObject(_0x408807){const _0x3ed085=a1197_0x335380;return util[_0x3ed085(0xc5)](_0x408807,{'showHidden':![],'depth':null});}async function agiHandler(_0x19aafb){const _0x793561=a1197_0x335380;let _0xba659d,_0x2c5aad,_0x599584,_0xb90527;logger[_0x793561(0xea)](_0x793561(0xb3),JSON[_0x793561(0xe3)](_0x19aafb,null,0x2)),logger[_0x793561(0xce)](util[_0x793561(0xd3)](_0x793561(0xab),_0x19aafb[_0x793561(0xa0)],_0x19aafb[_0x793561(0x9f)],_0x19aafb['callerid'],_0x19aafb['dnid'],_0x19aafb[_0x793561(0xc6)])),_0x19aafb['on'](_0x793561(0xd2),errorHandler),_0x19aafb['on'](_0x793561(0xad),closeHandler),_0x19aafb['on'](_0x793561(0xdd),timeoutHandler),_0x19aafb[_0x793561(0xba)]=![],_0x19aafb['on'](_0x793561(0xe1),hangupHandler);const _0x33a356=getSquareProject['sync'](null,_0x19aafb[_0x793561(0xa0)]);return _0x33a356?_0x33a356[_0x793561(0xb6)]?(_0xba659d=getRoot(_0x33a356[_0x793561(0xb6)]),_0xba659d&&_0xba659d[_0x793561(0xe0)]&&(logger[_0x793561(0xea)](_0x793561(0xa8),JSON[_0x793561(0xe3)](_0xba659d,null,0x2)),_0x19aafb['joinAt']=moment()[_0x793561(0xd3)](_0x793561(0xc4)),_0x2c5aad=initGraph(_[_0x793561(0xde)](_0xba659d,_0x793561(0xae)),_0xba659d['mxCell']),_0x599584=new Vertices(_0x19aafb,rpc,mailRpc),logger[_0x793561(0xce)](util['format']('[START\x20TRAVERSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',_0x19aafb['arg_1'],_0x19aafb[_0x793561(0x9f)],_0x19aafb[_0x793561(0xa4)],_0x19aafb['dnid'],_0x19aafb[_0x793561(0xc6)])),_0x2c5aad['traverseBFS'](_0xba659d[_0x793561(0xe0)]['id'],function(_0x4f2fa2){const _0x3c2f49=_0x793561;try{_0x4f2fa2=_0x599584[_0x3c2f49(0xa6)](_0x4f2fa2),logger[_0x3c2f49(0xea)](_0x3c2f49(0xc0),JSON[_0x3c2f49(0xe3)](_0x4f2fa2,null,0x2));if(_0x4f2fa2['agicommand']==='gotoc')return logger['info'](_0x3c2f49(0xe2)),_0x19aafb['context']=_0x4f2fa2[_0x3c2f49(0xe7)]||_0x19aafb[_0x3c2f49(0xe7)],_0x19aafb[_0x3c2f49(0xcd)]=_0x4f2fa2[_0x3c2f49(0xcd)],_0x19aafb[_0x3c2f49(0xdc)]=_0x4f2fa2[_0x3c2f49(0xdc)]?_0x4f2fa2[_0x3c2f49(0xdc)]-0x1:0x1,null;else return _0x4f2fa2&&_0x599584[_0x4f2fa2[_0x3c2f49(0xc1)]]?(_0xb90527=_0x599584[_0x4f2fa2[_0x3c2f49(0xc1)]](_0x4f2fa2),logger['info'](_0x3c2f49(0x98),JSON[_0x3c2f49(0xe3)](_0xb90527,null,0x2)),_0xb90527&&_0xb90527[_0x3c2f49(0xe4)]===AGI_CODE_SUCCESS&&_0xb90527[_0x3c2f49(0xd0)]!==AGI_RESULT_ERROR&&!_0x19aafb[_0x3c2f49(0xba)]?(logger[_0x3c2f49(0xea)](_0x3c2f49(0x98),getLogFromObject(_0xb90527)),_[_0x3c2f49(0xd5)](_0xb90527['result'])?null:_0xb90527[_0x3c2f49(0xd0)]['toString']()):(logger[_0x3c2f49(0xd2)]('response',getLogFromObject(_0xb90527)),null)):(logger['error'](_0x3c2f49(0xac)),null);}catch(_0x416688){return logger[_0x3c2f49(0xd2)](_0x416688['stack']),null;}}),_0xba659d[_0x793561(0xb2)]&&(logger[_0x793561(0xce)](util[_0x793561(0xd3)](_0x793561(0xaf),_0x19aafb[_0x793561(0xa0)],_0x19aafb['calleridname'],_0x19aafb[_0x793561(0xa4)],_0x19aafb[_0x793561(0xc3)],_0x19aafb['uniqueid'])),_0x2c5aad[_0x793561(0xa2)](_0xba659d[_0x793561(0xb2)]['id'],function(_0xe2ec40){const _0x46f927=_0x793561;try{return _0xe2ec40=_0x599584[_0x46f927(0xa6)](_0xe2ec40),logger[_0x46f927(0xea)](_0x46f927(0xc0),JSON[_0x46f927(0xe3)](_0xe2ec40,null,0x2)),_0xe2ec40&&_0x599584[_0xe2ec40[_0x46f927(0xc1)]]?(_0xb90527=_0x599584[_0xe2ec40[_0x46f927(0xc1)]](_0xe2ec40),_0xb90527?(logger['debug'](_0x46f927(0x98),getLogFromObject(_0xb90527)),_['isUndefined'](_0xb90527[_0x46f927(0xd0)])?null:_0xb90527[_0x46f927(0xd0)][_0x46f927(0xe9)]()):(logger[_0x46f927(0xd2)](_0x46f927(0x98),getLogFromObject(_0xb90527)),null)):(logger[_0x46f927(0xd2)]('agicommand\x20not\x20found'),null);}catch(_0x25575b){return logger[_0x46f927(0xd2)](_0x25575b[_0x46f927(0xe6)]),null;}})),logger[_0x793561(0xce)](util[_0x793561(0xd3)](_0x793561(0xb9),_0x19aafb[_0x793561(0xa0)],_0x19aafb[_0x793561(0x9f)],_0x19aafb['callerid'],_0x19aafb[_0x793561(0xc3)],_0x19aafb[_0x793561(0xc6)])),logger[_0x793561(0xce)](util[_0x793561(0xd3)]('[GOTO]\x20context:\x20%s\x20extension:\x20%s\x20priority:\x20%s',_0x19aafb['context'],_0x19aafb['extension'],parseInt(_0x19aafb[_0x793561(0xdc)],0xa)+0x1)),_0x19aafb[_0x793561(0x9c)](_0x19aafb[_0x793561(0xe7)],_0x19aafb[_0x793561(0xcd)],parseInt(_0x19aafb[_0x793561(0xdc)],0xa)+0x1),_0x19aafb[_0x793561(0xad)]())):(logger[_0x793561(0xd2)](util[_0x793561(0xd3)](_0x793561(0xd6),_0x19aafb[_0x793561(0xa0)])),_0x19aafb['continueAt'](_0x19aafb[_0x793561(0xe7)],_0x19aafb[_0x793561(0xcd)],parseInt(_0x19aafb[_0x793561(0xdc)],0xa)+0x1),_0x19aafb[_0x793561(0xad)]()):(logger['error'](util[_0x793561(0xd3)](_0x793561(0xa7),_0x19aafb[_0x793561(0xa0)])),_0x19aafb[_0x793561(0x9c)](_0x19aafb[_0x793561(0xe7)],_0x19aafb[_0x793561(0xcd)],parseInt(_0x19aafb['priority'],0xa)+0x1),_0x19aafb[_0x793561(0xad)]()),Promise[_0x793561(0xb1)]();}function main(){const _0x5a8d6c=a1197_0x335380;let _0x3d2d69;return utilLicense['getLicense']()[_0x5a8d6c(0xa5)](function(_0x23ef76){const _0x5560de=_0x5a8d6c;_0x23ef76&&(_0x23ef76[_0x5560de(0xb0)]?_0x23ef76[_0x5560de(0xe8)]&&_0x23ef76[_0x5560de(0xe8)]>0x0?(logger['info'](util[_0x5560de(0xd3)](_0x5560de(0xdf),_0x23ef76[_0x5560de(0xe8)])),_0x3d2d69=_0x23ef76['callysquare']):logger['info']('[LICENSE]\x20CHANNELS:\x20UNLIMITED'):(logger['info'](_0x5560de(0x9a)),_0x3d2d69=-0x1));})[_0x5a8d6c(0xb8)](function(_0x5d1b06){const _0x49b20a=_0x5a8d6c;logger[_0x49b20a(0xd2)](_0x49b20a(0xc7),_0x5d1b06[_0x49b20a(0xe6)]);})[_0x5a8d6c(0xb2)](function(){const _0x343ef6=_0x5a8d6c,_0x456f4f=require('./server')(config[_0x343ef6(0xcb)][_0x343ef6(0x97)],config[_0x343ef6(0xcb)]['ip'],_0x3d2d69);_0x456f4f['on'](_0x343ef6(0xd2),errorHandler),_0x456f4f['on'](_0x343ef6(0xbe),listeningHandler),_0x456f4f['on'](_0x343ef6(0xd8),connectionHandler),_0x456f4f['on'](_0x343ef6(0xad),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 2cff1df..88c0f5c 100644 --- a/server/services/agi/mailRpc/index.js +++ b/server/services/agi/mailRpc/index.js @@ -1 +1 @@ -const a1198_0x1801=['request','then','message','jayson/promise','sendMailMessage','error'];(function(_0x1c08a5,_0x5927f6){const _0x180152=function(_0x554d6b){while(--_0x554d6b){_0x1c08a5['push'](_0x1c08a5['shift']());}};_0x180152(++_0x5927f6);}(a1198_0x1801,0x194));const a1198_0x554d=function(_0x1c08a5,_0x5927f6){_0x1c08a5=_0x1c08a5-0xfa;let _0x180152=a1198_0x1801[_0x1c08a5];return _0x180152;};const a1198_0x15aa4a=a1198_0x554d;'use strict';const jayson=require(a1198_0x15aa4a(0xfb)),client=jayson['client']['http']({'port':0x232b});function request(_0x2d6085,_0x1d19c5){return new Promise(function(_0x22b6d8,_0x583b30){const _0x4e74f5=a1198_0x554d;return client[_0x4e74f5(0xfe)](_0x2d6085,_0x1d19c5)[_0x4e74f5(0xff)](function(_0x4a586c){const _0x28e8c9=_0x4e74f5;return _0x4a586c['error']?_0x583b30(_0x4a586c[_0x28e8c9(0xfd)][_0x28e8c9(0xfa)]):_0x22b6d8(_0x4a586c['result']);})['catch'](function(_0x2e4ba4){return _0x583b30(_0x2e4ba4);});});}exports[a1198_0x15aa4a(0xfc)]=function(_0xb32d6b,_0x578c7e){return request('SendMail',{'account':_0xb32d6b,'message':_0x578c7e});}; \ No newline at end of file +const a1198_0xfdba=['error','jayson/promise','http','SendMail','catch','client','sendMailMessage','message','request'];(function(_0x52d227,_0x16aac8){const _0xfdba54=function(_0x3771ae){while(--_0x3771ae){_0x52d227['push'](_0x52d227['shift']());}};_0xfdba54(++_0x16aac8);}(a1198_0xfdba,0x182));const a1198_0x3771=function(_0x52d227,_0x16aac8){_0x52d227=_0x52d227-0xd7;let _0xfdba54=a1198_0xfdba[_0x52d227];return _0xfdba54;};const a1198_0xbd1c72=a1198_0x3771;'use strict';const jayson=require(a1198_0xbd1c72(0xd9)),client=jayson[a1198_0xbd1c72(0xdd)][a1198_0xbd1c72(0xda)]({'port':0x232b});function request(_0x477e4d,_0x3d9638){return new Promise(function(_0x109113,_0x201403){const _0x37c017=a1198_0x3771;return client[_0x37c017(0xd7)](_0x477e4d,_0x3d9638)['then'](function(_0x524aef){const _0x19d104=_0x37c017;return _0x524aef[_0x19d104(0xd8)]?_0x201403(_0x524aef[_0x19d104(0xd8)][_0x19d104(0xdf)]):_0x109113(_0x524aef['result']);})[_0x37c017(0xdc)](function(_0x27e5e3){return _0x201403(_0x27e5e3);});});}exports[a1198_0xbd1c72(0xde)]=function(_0x398bb3,_0x2e21c8){const _0x5e4350=a1198_0xbd1c72;return request(_0x5e4350(0xdb),{'account':_0x398bb3,'message':_0x2e21c8});}; \ No newline at end of file diff --git a/server/services/agi/reply.js b/server/services/agi/reply.js index f7eaf15..027618a 100644 --- a/server/services/agi/reply.js +++ b/server/services/agi/reply.js @@ -1 +1 @@ -const a1199_0x264a=['trim','emit','slice','stream','prototype','call','line','exports','indexOf','_localBuffer','substring','headers','util','inherits','toString','length','_inBody','Transform','_transform'];(function(_0x149379,_0x1ae2ce){const _0x264a25=function(_0x232dc3){while(--_0x232dc3){_0x149379['push'](_0x149379['shift']());}};_0x264a25(++_0x1ae2ce);}(a1199_0x264a,0x10e));const a1199_0x232d=function(_0x149379,_0x1ae2ce){_0x149379=_0x149379-0xaa;let _0x264a25=a1199_0x264a[_0x149379];return _0x264a25;};const a1199_0x5b6087=a1199_0x232d;'use strict';const util=require(a1199_0x5b6087(0xb2)),Transform=require(a1199_0x5b6087(0xbc))[a1199_0x5b6087(0xb7)];function AGIReply(_0x2c4d91){const _0x40cfc3=a1199_0x5b6087;Transform[_0x40cfc3(0xab)](this,_0x2c4d91),this[_0x40cfc3(0xaf)]='',this[_0x40cfc3(0xb6)]=![];}util[a1199_0x5b6087(0xb3)](AGIReply,Transform),AGIReply[a1199_0x5b6087(0xaa)][a1199_0x5b6087(0xb8)]=function(_0x1c6f9a,_0x1400aa,_0x56e159){const _0x33f514=a1199_0x5b6087,_0x4c2492='\x0a',_0x172ec6=['\x0a\x0a','\x0d\x0a\x0d\x0a'];let _0x57dc98=-0x1,_0x2c0051=-0x1,_0x55e0cf='',_0x469068=0x0,_0xbefb8f='',_0x52f135='';this[_0x33f514(0xaf)]+=_0x1c6f9a[_0x33f514(0xb4)](),_0xbefb8f=this[_0x33f514(0xaf)];if(!this[_0x33f514(0xb6)]){_0x469068=0x0;while(_0x172ec6[_0x469068]){while((_0x2c0051=_0xbefb8f[_0x33f514(0xae)](_0x172ec6[_0x469068]))!=-0x1){_0x55e0cf=_0x172ec6[_0x469068],_0x52f135=_0xbefb8f['substring'](0x0,_0x2c0051),_0xbefb8f=_0xbefb8f['substring'](_0x2c0051+_0x55e0cf[_0x33f514(0xb5)]);const _0x432f7f=_0x52f135['split'](_0x4c2492);let _0x518c28=0x0;const _0x560a02={};let _0xc17999='',_0x31fe10='',_0x49fbe3=-0x1;while(_0x432f7f[_0x518c28]){_0x49fbe3=_0x432f7f[_0x518c28][_0x33f514(0xae)](':');if(_0x49fbe3!=-0x1)_0xc17999=_0x432f7f[_0x518c28][_0x33f514(0xbb)](0x0,_0x49fbe3)[_0x33f514(0xb9)](),_0x31fe10=_0x432f7f[_0x518c28][_0x33f514(0xbb)](_0x49fbe3+0x1)[_0x33f514(0xb9)](),_0xc17999[_0x33f514(0xb5)]>0x0&&(_0x560a02[_0xc17999]=_0x31fe10);else{}_0x518c28++;}this['emit'](_0x33f514(0xb1),_0x560a02),this[_0x33f514(0xb6)]=!![];}_0x469068++;}this[_0x33f514(0xaf)]=_0xbefb8f;}else{while((_0x57dc98=_0xbefb8f[_0x33f514(0xae)](_0x4c2492))!=-0x1){_0x52f135=_0xbefb8f[_0x33f514(0xb0)](0x0,_0x57dc98),this[_0x33f514(0xba)](_0x33f514(0xac),_0x52f135),_0xbefb8f=_0xbefb8f['substring'](_0x57dc98+_0x4c2492[_0x33f514(0xb5)]);}this[_0x33f514(0xaf)]=_0xbefb8f;}_0x56e159();},module[a1199_0x5b6087(0xad)]=AGIReply; \ No newline at end of file +const a1199_0x2c96=['trim','call','slice','substring','stream','length','exports','line','split','_localBuffer','\x0d\x0a\x0d\x0a','indexOf','toString','prototype','headers','_inBody','util','emit'];(function(_0x5b6068,_0x3754c6){const _0x2c96c4=function(_0x324fc0){while(--_0x324fc0){_0x5b6068['push'](_0x5b6068['shift']());}};_0x2c96c4(++_0x3754c6);}(a1199_0x2c96,0x8c));const a1199_0x324f=function(_0x5b6068,_0x3754c6){_0x5b6068=_0x5b6068-0x11e;let _0x2c96c4=a1199_0x2c96[_0x5b6068];return _0x2c96c4;};const a1199_0x2ad0f9=a1199_0x324f;'use strict';const util=require(a1199_0x2ad0f9(0x120)),Transform=require(a1199_0x2ad0f9(0x126))['Transform'];function AGIReply(_0x25d305){const _0x3e2c6c=a1199_0x2ad0f9;Transform[_0x3e2c6c(0x123)](this,_0x25d305),this[_0x3e2c6c(0x12b)]='',this[_0x3e2c6c(0x11f)]=![];}util['inherits'](AGIReply,Transform),AGIReply[a1199_0x2ad0f9(0x12f)]['_transform']=function(_0x50bdeb,_0x2fe63a,_0x5bd30f){const _0x913ed8=a1199_0x2ad0f9,_0x541cee='\x0a',_0x43e21c=['\x0a\x0a',_0x913ed8(0x12c)];let _0x2f95b5=-0x1,_0x20abc9=-0x1,_0x446bf4='',_0x127ca9=0x0,_0x5c1316='',_0x4a60b6='';this['_localBuffer']+=_0x50bdeb[_0x913ed8(0x12e)](),_0x5c1316=this[_0x913ed8(0x12b)];if(!this[_0x913ed8(0x11f)]){_0x127ca9=0x0;while(_0x43e21c[_0x127ca9]){while((_0x20abc9=_0x5c1316[_0x913ed8(0x12d)](_0x43e21c[_0x127ca9]))!=-0x1){_0x446bf4=_0x43e21c[_0x127ca9],_0x4a60b6=_0x5c1316[_0x913ed8(0x125)](0x0,_0x20abc9),_0x5c1316=_0x5c1316[_0x913ed8(0x125)](_0x20abc9+_0x446bf4[_0x913ed8(0x127)]);const _0x15e19b=_0x4a60b6[_0x913ed8(0x12a)](_0x541cee);let _0x246f67=0x0;const _0x4d3b18={};let _0x12dedd='',_0x228aa8='',_0x380376=-0x1;while(_0x15e19b[_0x246f67]){_0x380376=_0x15e19b[_0x246f67][_0x913ed8(0x12d)](':');if(_0x380376!=-0x1)_0x12dedd=_0x15e19b[_0x246f67][_0x913ed8(0x124)](0x0,_0x380376)[_0x913ed8(0x122)](),_0x228aa8=_0x15e19b[_0x246f67]['slice'](_0x380376+0x1)[_0x913ed8(0x122)](),_0x12dedd[_0x913ed8(0x127)]>0x0&&(_0x4d3b18[_0x12dedd]=_0x228aa8);else{}_0x246f67++;}this[_0x913ed8(0x121)](_0x913ed8(0x11e),_0x4d3b18),this['_inBody']=!![];}_0x127ca9++;}this[_0x913ed8(0x12b)]=_0x5c1316;}else{while((_0x2f95b5=_0x5c1316[_0x913ed8(0x12d)](_0x541cee))!=-0x1){_0x4a60b6=_0x5c1316['substring'](0x0,_0x2f95b5),this['emit'](_0x913ed8(0x129),_0x4a60b6),_0x5c1316=_0x5c1316[_0x913ed8(0x125)](_0x2f95b5+_0x541cee[_0x913ed8(0x127)]);}this[_0x913ed8(0x12b)]=_0x5c1316;}_0x5bd30f();},module[a1199_0x2ad0f9(0x128)]=AGIReply; \ No newline at end of file diff --git a/server/services/agi/rpc/index.js b/server/services/agi/rpc/index.js index 80c37e8..d7a3676 100644 --- a/server/services/agi/rpc/index.js +++ b/server/services/agi/rpc/index.js @@ -1 +1 @@ -const a1200_0x42d7=['ShowVariable','message','getSmsAccountById','ShowSmsAccount','CreateSquareDetailsReport','agentUnpause','createSquareReport','LogoutUser','ShowVoiceQueue','ListId','error','arg_2','getUserById','YYYY-MM-DD\x20HH:mm:ss','merge','moment','ShowSquareOdbc','CreateSquareRecording','ShowMailAccount','createSquareDetailsReport','agentLogout','LoginUser','Intervals','lodash','Interval','getTrunkById','getPauseById','getVoiceQueueById','ShowCmHopper','production','then','ShowPause','getVariableById','createCmContact','createSquareMessage','http','ShowSound','name','agentLogin','ShowTrunk','CreateSquareMessage','PauseUser','UnpauseUser','CreateCmContact','dsn','email','agentPause','getIntervalById','CreateSquareReport','catch','getSquareProject','jayson/promise','getSquareOdbcById','ShowSquareProject','getSquareProjectById'];(function(_0x1536c8,_0x56acce){const _0x42d707=function(_0x14d7f6){while(--_0x14d7f6){_0x1536c8['push'](_0x1536c8['shift']());}};_0x42d707(++_0x56acce);}(a1200_0x42d7,0xe2));const a1200_0x14d7=function(_0x1536c8,_0x56acce){_0x1536c8=_0x1536c8-0x1c0;let _0x42d707=a1200_0x42d7[_0x1536c8];return _0x42d707;};const a1200_0x5084c5=a1200_0x14d7;'use strict';const moment=require(a1200_0x5084c5(0x1c9)),_=require(a1200_0x5084c5(0x1d1)),jayson=require(a1200_0x5084c5(0x1ed)),client=jayson['client'][a1200_0x5084c5(0x1dd)]({'port':0x2329});function request(_0xc9a0ed,_0x385a74){return new Promise(function(_0x1a846b,_0x17e3a1){const _0x128463=a1200_0x14d7;return client['request'](_0xc9a0ed,_0x385a74)[_0x128463(0x1d8)](function(_0x4d23f8){const _0x2144cc=_0x128463;return _0x4d23f8[_0x2144cc(0x1c4)]?_0x17e3a1(_0x4d23f8['error'][_0x2144cc(0x1f2)]):_0x1a846b(_0x4d23f8['result']);})[_0x128463(0x1eb)](function(_0x5006a8){return _0x17e3a1(_0x5006a8);});});}exports[a1200_0x5084c5(0x1ec)]=function(_0x474daf){const _0x24e799=a1200_0x5084c5;return request('ShowSquareProject',{'options':{'raw':![],'where':{'name':_0x474daf},'attributes':[_0x24e799(0x1d7)]}});},exports['getMailAccountById']=function(_0x42b343){const _0x340b37=a1200_0x5084c5;return request(_0x340b37(0x1cc),{'options':{'raw':![],'where':{'id':_0x42b343},'include':[{'model':'MailServerOut','as':'Smtp'}],'attributes':['id',_0x340b37(0x1df),_0x340b37(0x1e7)]}});},exports[a1200_0x5084c5(0x1f0)]=function(_0x4646c3){const _0x528eae=a1200_0x5084c5;return request(_0x528eae(0x1ef),{'options':{'where':{'id':_0x4646c3},'attributes':[_0x528eae(0x1df)]}});},exports[a1200_0x5084c5(0x1d5)]=function(_0x5887af){const _0x1864f9=a1200_0x5084c5;return request(_0x1864f9(0x1c2),{'options':{'where':{'id':_0x5887af},'attributes':[_0x1864f9(0x1df)]}});},exports[a1200_0x5084c5(0x1da)]=function(_0x58fcbc){const _0x6c7c62=a1200_0x5084c5;return request(_0x6c7c62(0x1f1),{'options':{'where':{'id':_0x58fcbc},'attributes':[_0x6c7c62(0x1df)]}});},exports[a1200_0x5084c5(0x1ee)]=function(_0xaf1053){const _0x21c9cc=a1200_0x5084c5;return request(_0x21c9cc(0x1ca),{'options':{'where':{'id':_0xaf1053},'attributes':[_0x21c9cc(0x1e6)]}});},exports[a1200_0x5084c5(0x1c6)]=function(_0xe3eeff){const _0x7f4b6a=a1200_0x5084c5;return request('ShowUser',{'options':{'where':{'id':_0xe3eeff},'attributes':[_0x7f4b6a(0x1df)]}});},exports[a1200_0x5084c5(0x1d3)]=function(_0x5a6b1c){const _0x2ab9ce=a1200_0x5084c5;return request(_0x2ab9ce(0x1e1),{'options':{'where':{'id':_0x5a6b1c},'attributes':[_0x2ab9ce(0x1df)]}});},exports['getSoundById']=function(_0x11bca4){const _0x157462=a1200_0x5084c5;return request(_0x157462(0x1de),{'options':{'where':{'id':_0x11bca4},'attributes':['save_name']}});},exports[a1200_0x5084c5(0x1e9)]=function(_0x315d16){const _0x4ef002=a1200_0x5084c5;return request('ShowInterval',{'options':{'raw':![],'where':{'id':_0x315d16},'include':[{'model':_0x4ef002(0x1d2),'as':_0x4ef002(0x1d0)}]}});},exports[a1200_0x5084c5(0x1f3)]=function(_0x37908e){const _0x1f5ab9=a1200_0x5084c5;return request(_0x1f5ab9(0x1f4),{'options':{'where':{'id':_0x37908e},'attributes':['id',_0x1f5ab9(0x1df)]}});},exports['createSmsMessage']=function(_0x23fc55){return request('CreateSmsMessage',{'body':_0x23fc55});},exports[a1200_0x5084c5(0x1cd)]=function(_0x205402){const _0x3fefc3=a1200_0x5084c5;return request(_0x3fefc3(0x1f5),{'body':_0x205402});},exports[a1200_0x5084c5(0x1c0)]=function(_0x547cb2){const _0x25ed13=a1200_0x5084c5;return request(_0x25ed13(0x1ea),{'body':_[_0x25ed13(0x1c8)](_0x547cb2,{'project_name':_0x547cb2['arg_1'],'prev_project_name':_0x547cb2[_0x25ed13(0x1c5)]||'','is_subproject':_0x547cb2[_0x25ed13(0x1c5)]?!![]:![],'leaveAt':moment()['format'](_0x25ed13(0x1c7))})});},exports['createSquareRecording']=function(_0x55f3ed){const _0x8dec9=a1200_0x5084c5;return request(_0x8dec9(0x1cb),{'body':_0x55f3ed});},exports[a1200_0x5084c5(0x1dc)]=function(_0x159368){const _0x5486a0=a1200_0x5084c5;return request(_0x5486a0(0x1e2),{'body':_0x159368});},exports[a1200_0x5084c5(0x1db)]=function(_0x1db136){const _0x6cc9ab=a1200_0x5084c5;return request(_0x6cc9ab(0x1d6),{'options':{'raw':![],'where':{'phone':_0x1db136['phone'],'ListId':_0x1db136[_0x6cc9ab(0x1c3)]}}})[_0x6cc9ab(0x1d8)](function(_0xd8d90e){const _0x214cd4=_0x6cc9ab;if(_0xd8d90e)return _0xd8d90e;return request(_0x214cd4(0x1e5),{'body':_0x1db136});});},exports[a1200_0x5084c5(0x1d4)]=function(_0x24c57e){const _0x2f8134=a1200_0x5084c5;return request(_0x2f8134(0x1d9),{'options':{'where':{'id':_0x24c57e},'attributes':[_0x2f8134(0x1df)]}});},exports[a1200_0x5084c5(0x1e0)]=function(_0x351e6b,_0x1e99d0){const _0x439098=a1200_0x5084c5;return request(_0x439098(0x1cf),{'body':{'interface':_0x1e99d0},'options':{'where':_0x351e6b}});},exports[a1200_0x5084c5(0x1e8)]=function(_0x304963,_0x49c2c7,_0x4cc7a3){const _0x552373=a1200_0x5084c5;return request(_0x552373(0x1e3),{'body':{'type':_0x49c2c7,'uniqueid':_0x4cc7a3},'options':{'where':_0x304963}});},exports[a1200_0x5084c5(0x1f6)]=function(_0x3c947e){const _0x42e546=a1200_0x5084c5;return request(_0x42e546(0x1e4),{'body':{},'options':{'where':_0x3c947e}});},exports[a1200_0x5084c5(0x1ce)]=function(_0xfab477){const _0x4c9a38=a1200_0x5084c5;return request(_0x4c9a38(0x1c1),{'body':{},'options':{'where':_0xfab477}});}; \ No newline at end of file +const a1200_0x1c6f=['getMailAccountById','CreateSquareRecording','format','agentLogin','createSquareMessage','moment','YYYY-MM-DD\x20HH:mm:ss','createSmsMessage','LoginUser','ListId','LogoutUser','agentLogout','getPauseById','getSoundById','ShowMailAccount','phone','arg_2','createSquareRecording','getTrunkById','message','getSquareOdbcById','createSquareDetailsReport','PauseUser','production','jayson/promise','getSquareProjectById','Intervals','ShowVoiceQueue','ShowSquareOdbc','ShowSquareProject','result','agentUnpause','email','ShowVariable','CreateCmContact','save_name','client','MailServerOut','lodash','agentPause','http','ShowTrunk','CreateSmsMessage','getSquareProject','merge','error','getUserById','getSmsAccountById','ShowCmHopper','name','getVariableById','getIntervalById'];(function(_0x23975a,_0x157978){const _0x1c6ff0=function(_0x298fb8){while(--_0x298fb8){_0x23975a['push'](_0x23975a['shift']());}};_0x1c6ff0(++_0x157978);}(a1200_0x1c6f,0x138));const a1200_0x298f=function(_0x23975a,_0x157978){_0x23975a=_0x23975a-0xcd;let _0x1c6ff0=a1200_0x1c6f[_0x23975a];return _0x1c6ff0;};const a1200_0x40f7b7=a1200_0x298f;'use strict';const moment=require(a1200_0x40f7b7(0xd2)),_=require(a1200_0x40f7b7(0xf3)),jayson=require(a1200_0x40f7b7(0xe5)),client=jayson[a1200_0x40f7b7(0xf1)][a1200_0x40f7b7(0xf5)]({'port':0x2329});function request(_0x4caa2a,_0x5d61ad){return new Promise(function(_0x4e614c,_0x1b33ad){return client['request'](_0x4caa2a,_0x5d61ad)['then'](function(_0x1ef3cd){const _0x5e4d1c=a1200_0x298f;return _0x1ef3cd['error']?_0x1b33ad(_0x1ef3cd[_0x5e4d1c(0xfa)][_0x5e4d1c(0xe0)]):_0x4e614c(_0x1ef3cd[_0x5e4d1c(0xeb)]);})['catch'](function(_0x37d2bd){return _0x1b33ad(_0x37d2bd);});});}exports[a1200_0x40f7b7(0xf8)]=function(_0x4bcb0c){const _0x4af221=a1200_0x40f7b7;return request(_0x4af221(0xea),{'options':{'raw':![],'where':{'name':_0x4bcb0c},'attributes':[_0x4af221(0xe4)]}});},exports[a1200_0x40f7b7(0xcd)]=function(_0x3c07d2){const _0x36d4ed=a1200_0x40f7b7;return request(_0x36d4ed(0xdb),{'options':{'raw':![],'where':{'id':_0x3c07d2},'include':[{'model':_0x36d4ed(0xf2),'as':'Smtp'}],'attributes':['id',_0x36d4ed(0xfe),_0x36d4ed(0xed)]}});},exports[a1200_0x40f7b7(0xe6)]=function(_0xb1f4bf){const _0x26a9d3=a1200_0x40f7b7;return request('ShowSquareProject',{'options':{'where':{'id':_0xb1f4bf},'attributes':[_0x26a9d3(0xfe)]}});},exports['getVoiceQueueById']=function(_0x4a7a6a){const _0x40ec01=a1200_0x40f7b7;return request(_0x40ec01(0xe8),{'options':{'where':{'id':_0x4a7a6a},'attributes':[_0x40ec01(0xfe)]}});},exports[a1200_0x40f7b7(0xff)]=function(_0x23a7be){const _0x4de513=a1200_0x40f7b7;return request(_0x4de513(0xee),{'options':{'where':{'id':_0x23a7be},'attributes':['name']}});},exports[a1200_0x40f7b7(0xe1)]=function(_0x4cc444){const _0x40a987=a1200_0x40f7b7;return request(_0x40a987(0xe9),{'options':{'where':{'id':_0x4cc444},'attributes':['dsn']}});},exports[a1200_0x40f7b7(0xfb)]=function(_0x1a2760){return request('ShowUser',{'options':{'where':{'id':_0x1a2760},'attributes':['name']}});},exports[a1200_0x40f7b7(0xdf)]=function(_0x1637cf){const _0x3ec97d=a1200_0x40f7b7;return request(_0x3ec97d(0xf6),{'options':{'where':{'id':_0x1637cf},'attributes':['name']}});},exports[a1200_0x40f7b7(0xda)]=function(_0x3b6418){const _0xfd0a07=a1200_0x40f7b7;return request('ShowSound',{'options':{'where':{'id':_0x3b6418},'attributes':[_0xfd0a07(0xf0)]}});},exports[a1200_0x40f7b7(0x100)]=function(_0x4b55a0){const _0x509297=a1200_0x40f7b7;return request('ShowInterval',{'options':{'raw':![],'where':{'id':_0x4b55a0},'include':[{'model':'Interval','as':_0x509297(0xe7)}]}});},exports[a1200_0x40f7b7(0xfc)]=function(_0x2de091){const _0x5839db=a1200_0x40f7b7;return request('ShowSmsAccount',{'options':{'where':{'id':_0x2de091},'attributes':['id',_0x5839db(0xfe)]}});},exports[a1200_0x40f7b7(0xd4)]=function(_0x17e41d){const _0x40c338=a1200_0x40f7b7;return request(_0x40c338(0xf7),{'body':_0x17e41d});},exports[a1200_0x40f7b7(0xe2)]=function(_0x39824){return request('CreateSquareDetailsReport',{'body':_0x39824});},exports['createSquareReport']=function(_0x578ebf){const _0x146a44=a1200_0x40f7b7;return request('CreateSquareReport',{'body':_[_0x146a44(0xf9)](_0x578ebf,{'project_name':_0x578ebf['arg_1'],'prev_project_name':_0x578ebf[_0x146a44(0xdd)]||'','is_subproject':_0x578ebf[_0x146a44(0xdd)]?!![]:![],'leaveAt':moment()[_0x146a44(0xcf)](_0x146a44(0xd3))})});},exports[a1200_0x40f7b7(0xde)]=function(_0x2a9373){const _0x3021c1=a1200_0x40f7b7;return request(_0x3021c1(0xce),{'body':_0x2a9373});},exports[a1200_0x40f7b7(0xd1)]=function(_0x4e6877){return request('CreateSquareMessage',{'body':_0x4e6877});},exports['createCmContact']=function(_0x14a20a){const _0x54e158=a1200_0x40f7b7;return request(_0x54e158(0xfd),{'options':{'raw':![],'where':{'phone':_0x14a20a[_0x54e158(0xdc)],'ListId':_0x14a20a[_0x54e158(0xd6)]}}})['then'](function(_0x3440d7){const _0x125887=_0x54e158;if(_0x3440d7)return _0x3440d7;return request(_0x125887(0xef),{'body':_0x14a20a});});},exports[a1200_0x40f7b7(0xd9)]=function(_0x592e9a){return request('ShowPause',{'options':{'where':{'id':_0x592e9a},'attributes':['name']}});},exports[a1200_0x40f7b7(0xd0)]=function(_0x1d593e,_0x65f736){const _0x53daef=a1200_0x40f7b7;return request(_0x53daef(0xd5),{'body':{'interface':_0x65f736},'options':{'where':_0x1d593e}});},exports[a1200_0x40f7b7(0xf4)]=function(_0x5cc095,_0x5af492,_0x2f0769){const _0x321410=a1200_0x40f7b7;return request(_0x321410(0xe3),{'body':{'type':_0x5af492,'uniqueid':_0x2f0769},'options':{'where':_0x5cc095}});},exports[a1200_0x40f7b7(0xec)]=function(_0x471e23){return request('UnpauseUser',{'body':{},'options':{'where':_0x471e23}});},exports[a1200_0x40f7b7(0xd8)]=function(_0x53ade5){const _0x51e3f0=a1200_0x40f7b7;return request(_0x51e3f0(0xd7),{'body':{},'options':{'where':_0x53ade5}});}; \ 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 0d8652e..8277e3a 100644 --- a/server/services/agi/scripts/aws/index.js +++ b/server/services/agi/scripts/aws/index.js @@ -1 +1 @@ -const a1201_0x533b=['./polly','exports','./lex','polly'];(function(_0x500c74,_0x49e5ea){const _0x533bb3=function(_0x3da15b){while(--_0x3da15b){_0x500c74['push'](_0x500c74['shift']());}};_0x533bb3(++_0x49e5ea);}(a1201_0x533b,0x1a7));const a1201_0x3da1=function(_0x500c74,_0x49e5ea){_0x500c74=_0x500c74-0x142;let _0x533bb3=a1201_0x533b[_0x500c74];return _0x533bb3;};const a1201_0x1ad264=a1201_0x3da1,polly=require(a1201_0x1ad264(0x143)),lex=require(a1201_0x1ad264(0x145));module[a1201_0x1ad264(0x144)][a1201_0x1ad264(0x142)]=polly,module[a1201_0x1ad264(0x144)]['lex']=lex; \ No newline at end of file +const a1201_0x236d=['lex','exports','polly','./lex'];(function(_0x296373,_0x37a465){const _0x236d92=function(_0x23a7b2){while(--_0x23a7b2){_0x296373['push'](_0x296373['shift']());}};_0x236d92(++_0x37a465);}(a1201_0x236d,0x1d0));const a1201_0x23a7=function(_0x296373,_0x37a465){_0x296373=_0x296373-0x1e6;let _0x236d92=a1201_0x236d[_0x296373];return _0x236d92;};const a1201_0x5226a2=a1201_0x23a7,polly=require('./polly'),lex=require(a1201_0x5226a2(0x1e9));module['exports'][a1201_0x5226a2(0x1e8)]=polly,module[a1201_0x5226a2(0x1e7)][a1201_0x5226a2(0x1e6)]=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 e271fe6..c48f085 100644 --- a/server/services/agi/scripts/aws/lex/index.js +++ b/server/services/agi/scripts/aws/lex/index.js @@ -1 +1 @@ -const a1202_0x18bb=['./lib/api','exports'];(function(_0x3343bb,_0x2140f8){const _0x18bba8=function(_0x48f9b7){while(--_0x48f9b7){_0x3343bb['push'](_0x3343bb['shift']());}};_0x18bba8(++_0x2140f8);}(a1202_0x18bb,0x182));const a1202_0x48f9=function(_0x3343bb,_0x2140f8){_0x3343bb=_0x3343bb-0x70;let _0x18bba8=a1202_0x18bb[_0x3343bb];return _0x18bba8;};const a1202_0x1a228f=a1202_0x48f9;'use strict';const lex=require(a1202_0x1a228f(0x70));module[a1202_0x1a228f(0x71)]=function(_0x94beef,_0x24c8f3,_0x137c36,_0x2954d9,_0x22a779,_0x4ffddd){return lex(_0x94beef,_0x24c8f3,_0x137c36,_0x2954d9,_0x22a779,_0x4ffddd);}; \ No newline at end of file +const a1202_0x50ce=['./lib/api','exports'];(function(_0x10f43f,_0x382ebd){const _0x50cec2=function(_0x390183){while(--_0x390183){_0x10f43f['push'](_0x10f43f['shift']());}};_0x50cec2(++_0x382ebd);}(a1202_0x50ce,0x141));const a1202_0x3901=function(_0x10f43f,_0x382ebd){_0x10f43f=_0x10f43f-0xbc;let _0x50cec2=a1202_0x50ce[_0x10f43f];return _0x50cec2;};const a1202_0x2b4311=a1202_0x3901;'use strict';const lex=require(a1202_0x2b4311(0xbd));module[a1202_0x2b4311(0xbc)]=function(_0x33e182,_0x5d9f92,_0x2968a6,_0x46942e,_0x5491c7,_0x5e752f){return lex(_0x33e182,_0x5d9f92,_0x2968a6,_0x46942e,_0x5491c7,_0x5e752f);}; \ 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 0d42160..f678bc0 100644 --- a/server/services/agi/scripts/aws/lex/lib/api.js +++ b/server/services/agi/scripts/aws/lex/lib/api.js @@ -1 +1 @@ -const a1203_0x1465=['slot_','exports','postText','LexRuntime','slots'];(function(_0xccc13a,_0x81482e){const _0x146541=function(_0x1beb86){while(--_0x1beb86){_0xccc13a['push'](_0xccc13a['shift']());}};_0x146541(++_0x81482e);}(a1203_0x1465,0x1a1));const a1203_0x1beb=function(_0xccc13a,_0x81482e){_0xccc13a=_0xccc13a-0xbf;let _0x146541=a1203_0x1465[_0xccc13a];return _0x146541;};const a1203_0x52b1eb=a1203_0x1beb;'use strict';const AWS=require('aws-sdk');function lexResult(_0x17c344,_0x28982c){return new Promise(function(_0x431f50,_0x39e56f){const _0x1f61cb=a1203_0x1beb;_0x17c344[_0x1f61cb(0xbf)](_0x28982c,function(_0x32f4d3,_0x57befe){const _0x346d2d=_0x1f61cb;_0x32f4d3&&_0x39e56f(_0x32f4d3);if(_0x57befe[_0x346d2d(0xc1)])for(const _0x1e7633 in _0x57befe['slots']){if(typeof _0x57befe[_0x346d2d(0xc1)][_0x1e7633]!=='undefined'){const _0x48b4ba=_0x57befe[_0x346d2d(0xc1)][_0x1e7633];_0x57befe[_0x346d2d(0xc2)+_0x1e7633]=_0x48b4ba;}}_0x431f50(_0x57befe);});});}module[a1203_0x52b1eb(0xc3)]=function(_0x5441d2,_0x45bd4a,_0x22136d,_0x7a294,_0x1811b6,_0x4f922d){const _0x18e23f=a1203_0x52b1eb,_0x48cc6e=new AWS[(_0x18e23f(0xc0))]({'accessKeyId':_0x45bd4a,'secretAccessKey':_0x22136d,'region':_0x7a294}),_0x17a1f1={'botAlias':'$LATEST','botName':_0x4f922d,'inputText':_0x1811b6,'userId':_0x5441d2};return lexResult(_0x48cc6e,_0x17a1f1);}; \ No newline at end of file +const a1203_0x5015=['LexRuntime','undefined','slots','exports','$LATEST','slot_'];(function(_0xa9d88c,_0x263aa7){const _0x5015d5=function(_0x14828f){while(--_0x14828f){_0xa9d88c['push'](_0xa9d88c['shift']());}};_0x5015d5(++_0x263aa7);}(a1203_0x5015,0xcb));const a1203_0x1482=function(_0xa9d88c,_0x263aa7){_0xa9d88c=_0xa9d88c-0x192;let _0x5015d5=a1203_0x5015[_0xa9d88c];return _0x5015d5;};const a1203_0x3a1b98=a1203_0x1482;'use strict';const AWS=require('aws-sdk');function lexResult(_0x37b2ef,_0x4c4259){return new Promise(function(_0x2bbaed,_0x140f3b){_0x37b2ef['postText'](_0x4c4259,function(_0x18c16c,_0x258906){const _0x50e5d0=a1203_0x1482;_0x18c16c&&_0x140f3b(_0x18c16c);if(_0x258906['slots'])for(const _0x130288 in _0x258906['slots']){if(typeof _0x258906[_0x50e5d0(0x195)][_0x130288]!==_0x50e5d0(0x194)){const _0x50b9c8=_0x258906[_0x50e5d0(0x195)][_0x130288];_0x258906[_0x50e5d0(0x192)+_0x130288]=_0x50b9c8;}}_0x2bbaed(_0x258906);});});}module[a1203_0x3a1b98(0x196)]=function(_0x21cef9,_0x1200bb,_0x19f55f,_0x1fa48f,_0x33fed1,_0x1459a9){const _0x539e43=a1203_0x3a1b98,_0x373424=new AWS[(_0x539e43(0x193))]({'accessKeyId':_0x1200bb,'secretAccessKey':_0x19f55f,'region':_0x1fa48f}),_0x208414={'botAlias':_0x539e43(0x197),'botName':_0x1459a9,'inputText':_0x33fed1,'userId':_0x21cef9};return lexResult(_0x373424,_0x208414);}; \ 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 13fd547..4154061 100644 --- a/server/services/agi/scripts/aws/polly/index.js +++ b/server/services/agi/scripts/aws/polly/index.js @@ -1 +1 @@ -const a1204_0x11a4=['exports'];(function(_0x24b76d,_0x591587){const _0x11a4fa=function(_0x579b5a){while(--_0x579b5a){_0x24b76d['push'](_0x24b76d['shift']());}};_0x11a4fa(++_0x591587);}(a1204_0x11a4,0x11c));const a1204_0x579b=function(_0x24b76d,_0x591587){_0x24b76d=_0x24b76d-0x17e;let _0x11a4fa=a1204_0x11a4[_0x24b76d];return _0x11a4fa;};const a1204_0x150b1d=a1204_0x579b;'use strict';const polly=require('./lib/api');module[a1204_0x150b1d(0x17e)]=function(_0x3c8b88,_0x2d6126,_0x4bf3dc,_0x2c2a04,_0x2c2367,_0x35f066,_0x5eeafc){return polly(_0x3c8b88,_0x2d6126,_0x4bf3dc,_0x2c2a04,_0x2c2367,_0x35f066,_0x5eeafc);}; \ No newline at end of file +const a1204_0x11d7=['exports','./lib/api'];(function(_0x511402,_0x4584c4){const _0x11d758=function(_0x17630f){while(--_0x17630f){_0x511402['push'](_0x511402['shift']());}};_0x11d758(++_0x4584c4);}(a1204_0x11d7,0x9b));const a1204_0x1763=function(_0x511402,_0x4584c4){_0x511402=_0x511402-0x1c2;let _0x11d758=a1204_0x11d7[_0x511402];return _0x11d758;};const a1204_0x5d0f5b=a1204_0x1763;'use strict';const polly=require(a1204_0x5d0f5b(0x1c2));module[a1204_0x5d0f5b(0x1c3)]=function(_0x77332,_0x2981b2,_0x3a47ed,_0x46c3d,_0x570927,_0x5b684e,_0x11073b){return polly(_0x77332,_0x2981b2,_0x3a47ed,_0x46c3d,_0x570927,_0x5b684e,_0x11073b);}; \ 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 5ed3a22..6d22325 100644 --- a/server/services/agi/scripts/aws/polly/lib/api.js +++ b/server/services/agi/scripts/aws/polly/lib/api.js @@ -1 +1 @@ -const a1205_0x41ad=['mp3','text','aws-sdk','synthesizeSpeech','Polly'];(function(_0x2d629f,_0x84ef27){const _0x41adc2=function(_0xb6f8b7){while(--_0xb6f8b7){_0x2d629f['push'](_0x2d629f['shift']());}};_0x41adc2(++_0x84ef27);}(a1205_0x41ad,0x1c3));const a1205_0xb6f8=function(_0x2d629f,_0x84ef27){_0x2d629f=_0x2d629f-0x113;let _0x41adc2=a1205_0x41ad[_0x2d629f];return _0x41adc2;};const a1205_0x3245df=a1205_0xb6f8;'use strict';const fs=require('fs'),AWS=require(a1205_0x3245df(0x114));function pollyResult(_0x59e576,_0x1d6725,_0x1e75e3){return new Promise(function(_0x20a2dd,_0xcdd6a4){const _0x216c10=a1205_0xb6f8;_0x59e576[_0x216c10(0x115)](_0x1d6725,function(_0x1e1c88,_0x26903a){if(_0x1e1c88)_0xcdd6a4(_0x1e1c88);else _0x26903a?_0x26903a['AudioStream']instanceof Buffer?fs['writeFile'](_0x1e75e3,_0x26903a['AudioStream'],function(_0x1425c6){_0x1425c6?_0xcdd6a4(_0x1425c6):_0x20a2dd();}):_0xcdd6a4(new Error('Invalid\x20data\x20response\x20from\x20aws\x20Polly!')):_0xcdd6a4(new Error('No\x20data\x20response\x20from\x20aws\x20Polly!'));});});}module['exports']=function(_0x268740,_0x40dcb3,_0x307b06,_0xc609d0,_0x3736a1,_0x4ab425,_0x474d48){const _0x3b6a9a=a1205_0x3245df,_0x4e86ec=new AWS[(_0x3b6a9a(0x116))]({'accessKeyId':_0x268740,'secretAccessKey':_0x40dcb3,'region':_0x307b06}),_0x1d1b12={'Text':_0x3736a1,'TextType':_0x4ab425||_0x3b6a9a(0x113),'OutputFormat':_0x3b6a9a(0x117),'VoiceId':_0xc609d0};return pollyResult(_0x4e86ec,_0x1d1b12,_0x474d48);}; \ No newline at end of file +const a1205_0x31d0=['mp3','aws-sdk','writeFile','Polly','No\x20data\x20response\x20from\x20aws\x20Polly!','Invalid\x20data\x20response\x20from\x20aws\x20Polly!','AudioStream','text'];(function(_0x4c03ae,_0x4b3aba){const _0x31d0b8=function(_0x26e173){while(--_0x26e173){_0x4c03ae['push'](_0x4c03ae['shift']());}};_0x31d0b8(++_0x4b3aba);}(a1205_0x31d0,0x11a));const a1205_0x26e1=function(_0x4c03ae,_0x4b3aba){_0x4c03ae=_0x4c03ae-0xa2;let _0x31d0b8=a1205_0x31d0[_0x4c03ae];return _0x31d0b8;};const a1205_0x1b9b5f=a1205_0x26e1;'use strict';const fs=require('fs'),AWS=require(a1205_0x1b9b5f(0xa9));function pollyResult(_0x433d75,_0x32c140,_0x274bff){return new Promise(function(_0x40eeca,_0xb8fe7a){_0x433d75['synthesizeSpeech'](_0x32c140,function(_0x287ad6,_0x50c92f){const _0x427120=a1205_0x26e1;if(_0x287ad6)_0xb8fe7a(_0x287ad6);else _0x50c92f?_0x50c92f[_0x427120(0xa6)]instanceof Buffer?fs[_0x427120(0xa2)](_0x274bff,_0x50c92f[_0x427120(0xa6)],function(_0x310ded){_0x310ded?_0xb8fe7a(_0x310ded):_0x40eeca();}):_0xb8fe7a(new Error(_0x427120(0xa5))):_0xb8fe7a(new Error(_0x427120(0xa4)));});});}module['exports']=function(_0x3479f5,_0x48deb0,_0x11aa84,_0x1d3030,_0x356381,_0x3c7f11,_0x1fa8c8){const _0x1e038b=a1205_0x1b9b5f,_0x3d7643=new AWS[(_0x1e038b(0xa3))]({'accessKeyId':_0x3479f5,'secretAccessKey':_0x48deb0,'region':_0x11aa84}),_0x284578={'Text':_0x356381,'TextType':_0x3c7f11||_0x1e038b(0xa7),'OutputFormat':_0x1e038b(0xa8),'VoiceId':_0x1d3030};return pollyResult(_0x3d7643,_0x284578,_0x1fa8c8);}; \ 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 3a11481..704f5a5 100644 --- a/server/services/agi/scripts/google/asr/index.js +++ b/server/services/agi/scripts/google/asr/index.js @@ -1 +1 @@ -const a1206_0x24fc=['exports','./lib/api'];(function(_0x24e2c9,_0x1e1539){const _0x24fcc8=function(_0x5d1ea9){while(--_0x5d1ea9){_0x24e2c9['push'](_0x24e2c9['shift']());}};_0x24fcc8(++_0x1e1539);}(a1206_0x24fc,0x155));const a1206_0x5d1e=function(_0x24e2c9,_0x1e1539){_0x24e2c9=_0x24e2c9-0x17b;let _0x24fcc8=a1206_0x24fc[_0x24e2c9];return _0x24fcc8;};const a1206_0x4acbc2=a1206_0x5d1e;'use strict';const asr=require(a1206_0x4acbc2(0x17b));module[a1206_0x4acbc2(0x17c)]=function(_0x4a1305,_0x1caff9,_0x3cebca){return asr(_0x4a1305,_0x1caff9,_0x3cebca);}; \ No newline at end of file +const a1206_0x5d0c=['exports','./lib/api'];(function(_0xe5d29d,_0x5d612b){const _0x5d0c40=function(_0x1ebeb6){while(--_0x1ebeb6){_0xe5d29d['push'](_0xe5d29d['shift']());}};_0x5d0c40(++_0x5d612b);}(a1206_0x5d0c,0x177));const a1206_0x1ebe=function(_0xe5d29d,_0x5d612b){_0xe5d29d=_0xe5d29d-0x127;let _0x5d0c40=a1206_0x5d0c[_0xe5d29d];return _0x5d0c40;};const a1206_0x5b7d7b=a1206_0x1ebe;'use strict';const asr=require(a1206_0x5b7d7b(0x127));module[a1206_0x5b7d7b(0x128)]=function(_0x63d018,_0xa87d7b,_0x4af534){return asr(_0x63d018,_0xa87d7b,_0x4af534);}; \ 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 94b8f23..4b97811 100644 --- a/server/services/agi/scripts/google/asr/lib/api.js +++ b/server/services/agi/scripts/google/asr/lib/api.js @@ -1 +1 @@ -const a1207_0x5571=['exports','base64','string','length','filepath\x20should\x20be\x20a\x20string','toString','key\x20should\x20be\x20a\x20string','https://speech.googleapis.com','POST','8000','lang\x20should\x20be\x20a\x20string','LINEAR16'];(function(_0x14b314,_0x2ab509){const _0x55713c=function(_0x5759fb){while(--_0x5759fb){_0x14b314['push'](_0x14b314['shift']());}};_0x55713c(++_0x2ab509);}(a1207_0x5571,0xa8));const a1207_0x5759=function(_0x14b314,_0x2ab509){_0x14b314=_0x14b314-0x65;let _0x55713c=a1207_0x5571[_0x14b314];return _0x55713c;};const a1207_0x31b331=a1207_0x5759;'use strict';const fs=require('fs'),host=a1207_0x31b331(0x6c);module[a1207_0x31b331(0x65)]=function(_0xc6d7f1,_0x33ef21,_0x3c303a){return new Promise(function(_0x2a1653,_0x12a693){const _0x2115d6=a1207_0x5759;let _0x405e01;if(typeof _0xc6d7f1!==_0x2115d6(0x67)||_0xc6d7f1[_0x2115d6(0x68)]===0x0)return _0x12a693(_0x2115d6(0x69));if(typeof _0x33ef21!=='string'||_0x33ef21['length']===0x0)return _0x12a693(_0x2115d6(0x6b));if(typeof _0x3c303a!=='undefined'&&(typeof _0x3c303a!==_0x2115d6(0x67)||_0x3c303a[_0x2115d6(0x68)]===0x0))return _0x12a693(_0x2115d6(0x6f));try{_0x405e01=fs['readFileSync'](_0xc6d7f1)[_0x2115d6(0x6a)](_0x2115d6(0x66));}catch(_0x26b649){return _0x12a693(_0x26b649);}return _0x2a1653({'method':_0x2115d6(0x6d),'uri':host+'/v1/speech:recognize?key='+_0x33ef21,'body':{'config':{'encoding':_0x2115d6(0x70),'sampleRateHertz':_0x2115d6(0x6e),'languageCode':_0x3c303a},'audio':{'content':_0x405e01}},'json':!![]});});}; \ No newline at end of file +const a1207_0xcac5=['length','toString','undefined','exports','8000','string','readFileSync','lang\x20should\x20be\x20a\x20string','POST'];(function(_0x4e44d6,_0x331397){const _0xcac50d=function(_0x813317){while(--_0x813317){_0x4e44d6['push'](_0x4e44d6['shift']());}};_0xcac50d(++_0x331397);}(a1207_0xcac5,0x1cb));const a1207_0x8133=function(_0x4e44d6,_0x331397){_0x4e44d6=_0x4e44d6-0x116;let _0xcac50d=a1207_0xcac5[_0x4e44d6];return _0xcac50d;};const a1207_0x3e8d21=a1207_0x8133;'use strict';const fs=require('fs'),host='https://speech.googleapis.com';module[a1207_0x3e8d21(0x119)]=function(_0x1a739c,_0x37ad07,_0x1aec65){return new Promise(function(_0x29a08d,_0x186ab0){const _0x2011ef=a1207_0x8133;let _0x58631f;if(typeof _0x1a739c!==_0x2011ef(0x11b)||_0x1a739c[_0x2011ef(0x116)]===0x0)return _0x186ab0('filepath\x20should\x20be\x20a\x20string');if(typeof _0x37ad07!=='string'||_0x37ad07[_0x2011ef(0x116)]===0x0)return _0x186ab0('key\x20should\x20be\x20a\x20string');if(typeof _0x1aec65!==_0x2011ef(0x118)&&(typeof _0x1aec65!==_0x2011ef(0x11b)||_0x1aec65['length']===0x0))return _0x186ab0(_0x2011ef(0x11d));try{_0x58631f=fs[_0x2011ef(0x11c)](_0x1a739c)[_0x2011ef(0x117)]('base64');}catch(_0x3125b8){return _0x186ab0(_0x3125b8);}return _0x29a08d({'method':_0x2011ef(0x11e),'uri':host+'/v1/speech:recognize?key='+_0x37ad07,'body':{'config':{'encoding':'LINEAR16','sampleRateHertz':_0x2011ef(0x11a),'languageCode':_0x1aec65},'audio':{'content':_0x58631f}},'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 d97b550..66d3787 100644 --- a/server/services/agi/scripts/google/index.js +++ b/server/services/agi/scripts/google/index.js @@ -1 +1 @@ -const a1208_0x376d=['asr','exports','./asr'];(function(_0x206243,_0x21364a){const _0x376df0=function(_0x472c39){while(--_0x472c39){_0x206243['push'](_0x206243['shift']());}};_0x376df0(++_0x21364a);}(a1208_0x376d,0x1d3));const a1208_0x472c=function(_0x206243,_0x21364a){_0x206243=_0x206243-0x158;let _0x376df0=a1208_0x376d[_0x206243];return _0x376df0;};const a1208_0x15c0e4=a1208_0x472c,asr=require(a1208_0x15c0e4(0x158));module[a1208_0x15c0e4(0x15a)][a1208_0x15c0e4(0x159)]=asr; \ No newline at end of file +const a1208_0x3116=['./asr'];(function(_0x24dbad,_0x121c81){const _0x31165b=function(_0x1cd076){while(--_0x1cd076){_0x24dbad['push'](_0x24dbad['shift']());}};_0x31165b(++_0x121c81);}(a1208_0x3116,0x79));const a1208_0x1cd0=function(_0x24dbad,_0x121c81){_0x24dbad=_0x24dbad-0x156;let _0x31165b=a1208_0x3116[_0x24dbad];return _0x31165b;};const a1208_0x38a0a9=a1208_0x1cd0,asr=require(a1208_0x38a0a9(0x156));module['exports']['asr']=asr; \ No newline at end of file diff --git a/server/services/agi/scripts/index.js b/server/services/agi/scripts/index.js index 439fb3c..bc83b01 100644 --- a/server/services/agi/scripts/index.js +++ b/server/services/agi/scripts/index.js @@ -1 +1 @@ -const a1209_0x424d=['sestekNDA','writeFileSync','end','resolvedQuery','unlink','speech','from','toString','stringify','@google-cloud/dialogflow','voice','Dialogflow\x20V2\x20response\x20error:','ispeechASR','get','sox','https:','dirName','alternatives','pathname','status','finish\x20to\x20convert','code','intent','languageCode','error','error\x20convert','?key=','./aws','fulfillment','ispeechTTS','chmodSync','777','metadata','start','MP3','googleDialogflowV2','googleASR','./sestek','md5','model=%s','transcript','freeform=3','Dialogflow\x20V2\x20response:','audiofile','fields','.wav','randomstring','%s?apikey=%s&action=convert&text=%s&voice=%s&speed=%s&format=mp3','google-tts-api','wav','asr','allRequiredParamsPresent','request\x20to\x20','uri','googleCloudTTS\x20path','readFileSync','join','parse','statusMessage','nda','format','SessionsClient','source','createWriteStream','score','WHAT_EVER','generate','audioConfig','endConversation','input','awsLex','fulfillmentText','googleASR\x20transcription','base64','boolValue','Tilde\x20ASR\x20transcription','textRequest','lex','tmp','isFallback','action','end_conversation','displayName','isFallbackIntent','statusCode','ssml','.mp3','agi','split','result','actionIncomplete','\x20failed,\x20status\x20code\x20=\x20','resolve','http','protocol','confidence','projectAgentSessionPath','AudioFromTts','catch','https://api.ispeech.org/api/rest','info','queryResult','https','./google','host','then','transcode','map','POST','finish','download\x20error','queryText','querystring','request-promise-native','channelData','writeFile','audioContent','util','googleASR\x20confidence','goggleTTS\x20path','finish\x20download\x20file','polly','results','length','./tilde'];(function(_0x1c5f5e,_0x386ff9){const _0x424d9e=function(_0x4e84e1){while(--_0x4e84e1){_0x1c5f5e['push'](_0x1c5f5e['shift']());}};_0x424d9e(++_0x386ff9);}(a1209_0x424d,0x1e2));const a1209_0x4e84=function(_0x1c5f5e,_0x386ff9){_0x1c5f5e=_0x1c5f5e-0x192;let _0x424d9e=a1209_0x424d[_0x1c5f5e];return _0x424d9e;};const a1209_0x500eb9=a1209_0x4e84;'use strict';const fs=require('fs'),path=require('path'),http=require(a1209_0x500eb9(0x201)),https=require(a1209_0x500eb9(0x20a)),{URL}=require('url'),rs=require(a1209_0x500eb9(0x1d2)),sox=require(a1209_0x500eb9(0x1b2)),rp=require(a1209_0x500eb9(0x198)),util=require(a1209_0x500eb9(0x19c)),querystring=require(a1209_0x500eb9(0x197)),tts=require(a1209_0x500eb9(0x1d4)),apiai=require('apiai-promise'),md5=require(a1209_0x500eb9(0x1ca)),google=require(a1209_0x500eb9(0x20b)),aws=require(a1209_0x500eb9(0x1bf)),tilde=require(a1209_0x500eb9(0x1a3)),sestek=require(a1209_0x500eb9(0x1c9)),dialogflow=require(a1209_0x500eb9(0x1ad)),logger=require('../../../config/logger')(a1209_0x500eb9(0x1fb)),ISPEECH_API=a1209_0x500eb9(0x207);function downloadFile(_0x5e4ff5,_0x48fe13){return new Promise(function(_0xc1217d,_0x3db38d){const _0x2e0423=a1209_0x4e84,_0x5030ab=new URL(_0x5e4ff5),_0x20b29d=_0x5030ab['protocol']===_0x2e0423(0x1b3)?https:http,_0x4fac99={'host':_0x5030ab[_0x2e0423(0x20c)],'path':_0x5030ab[_0x2e0423(0x1b6)],'headers':{'user-agent':_0x2e0423(0x1e5)}};_0x20b29d[_0x2e0423(0x1b1)](_0x4fac99,function(_0x23e776){const _0x2e986a=_0x2e0423;if(_0x23e776[_0x2e986a(0x1f8)]!==0xc8){logger['error'](_0x2e986a(0x1d8)+_0x5e4ff5+_0x2e986a(0x1ff)+_0x23e776[_0x2e986a(0x1f8)]+'\x20('+_0x23e776[_0x2e986a(0x1de)]+')'),_0x3db38d(new Error('request\x20to\x20'+_0x5e4ff5+'\x20failed,\x20status\x20code\x20=\x20'+_0x23e776[_0x2e986a(0x1f8)]+'\x20('+_0x23e776[_0x2e986a(0x1de)]+')'));return;}const _0x3361af=fs[_0x2e986a(0x1e3)](_0x48fe13);_0x3361af['on'](_0x2e986a(0x194),function(){const _0x2e71f0=_0x2e986a;logger[_0x2e71f0(0x208)](_0x2e71f0(0x19f)),_0x3361af['close'](_0xc1217d);}),_0x3361af['on'](_0x2e986a(0x1bc),function(_0x245824){const _0x350ce9=_0x2e986a;fs[_0x350ce9(0x1a8)](_0x48fe13),logger[_0x350ce9(0x1bc)](_0x350ce9(0x195),_0x245824),_0x3db38d(_0x245824);}),_0x23e776['pipe'](_0x3361af);})['on'](_0x2e0423(0x1bc),function(_0x418347){const _0x35b364=_0x2e0423;logger[_0x35b364(0x1bc)](_0x418347),_0x3db38d(_0x418347);})[_0x2e0423(0x1a6)]();});}function uploadFile(_0x11b53c){return new Promise(function(_0x5ad0f1,_0x5361a8){const _0x5edfe0=a1209_0x4e84,_0xee2ed5=new URL(_0x11b53c),_0x275790=_0xee2ed5[_0x5edfe0(0x202)]===_0x5edfe0(0x1b3)?https:http,_0x4e6769={'host':_0xee2ed5[_0x5edfe0(0x20c)],'path':_0xee2ed5[_0x5edfe0(0x1b6)],'headers':{'user-agent':'WHAT_EVER'}};_0x275790[_0x5edfe0(0x1b1)](_0x4e6769,function(_0x3d0452){const _0x4c4c5e=_0x5edfe0;if(_0x3d0452[_0x4c4c5e(0x1f8)]!==0xc8){_0x5361a8(new Error(_0x4c4c5e(0x1d8)+_0x11b53c+'\x20failed,\x20status\x20code\x20=\x20'+_0x3d0452[_0x4c4c5e(0x1f8)]+'\x20('+_0x3d0452['statusMessage']+')'));return;}let _0x1311b4='';_0x3d0452['on']('data',function(_0x4a4240){_0x1311b4+=_0x4a4240;}),_0x3d0452['on']('end',function(){_0x5ad0f1(_0x1311b4);});})['on']('error',function(_0x4305b5){_0x5361a8(_0x4305b5);})['end']();});}function convertFile(_0x937ada,_0x22e4dc){return new Promise(function(_0x31fe89,_0x123e4e){const _0x4d38ae=a1209_0x4e84,_0x1a66fa=sox[_0x4d38ae(0x20e)](_0x937ada,_0x22e4dc,{'sampleRate':0x1f40,'format':_0x4d38ae(0x1d5),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x1a66fa['on']('error',function(_0x5923ae){const _0x479751=_0x4d38ae;logger[_0x479751(0x1bc)](_0x479751(0x1bd),_0x5923ae),_0x123e4e(_0x5923ae);}),_0x1a66fa['on'](_0x4d38ae(0x1a6),function(){const _0x1cca9e=_0x4d38ae;logger['info'](_0x1cca9e(0x1b8)),_0x31fe89();}),_0x1a66fa[_0x4d38ae(0x1c5)]();});}function base64Decode(_0x157b9b,_0x48d126){const _0x124fc2=a1209_0x500eb9,_0x5455dc=path[_0x124fc2(0x200)](__dirname,_0x124fc2(0x1f2),rs[_0x124fc2(0x1e6)](0x4)+_0x124fc2(0x1d1));return fs[_0x124fc2(0x1a5)](_0x5455dc,_0x157b9b,_0x124fc2(0x1ed)),convertFile(_0x5455dc,_0x48d126)['then'](function(){const _0x166f16=_0x124fc2;try{fs['unlink'](_0x5455dc),fs['chmodSync'](_0x48d126,_0x166f16(0x1c3));}catch(_0x4583e0){logger[_0x166f16(0x1bc)](_0x4583e0);}return _0x48d126[_0x166f16(0x1fc)]('.')[0x0];});}function base64Encode(_0x4a22f8){const _0x391154=a1209_0x500eb9,_0x4240f8=fs[_0x391154(0x1db)](_0x4a22f8);return Buffer[_0x391154(0x1aa)](_0x4240f8)[_0x391154(0x1ab)](_0x391154(0x1ed));}exports['googleCloudTTS']=function(_0x2bdb1d,_0x4afb72,_0x50b40a,_0x1587b1,_0xe751f8){const _0x11983c=a1209_0x500eb9;let _0x14c8ce,_0x477d58;const _0x40b587='https://texttospeech.googleapis.com/v1/',_0x51c30d=_0x11983c(0x1be)+_0x2bdb1d,_0x3766d2={};_0x4afb72===_0x11983c(0x1f9)?_0x3766d2[_0x11983c(0x1e9)]={'ssml':_0x50b40a}:_0x3766d2[_0x11983c(0x1e9)]={'text':_0x50b40a};_0x3766d2[_0x11983c(0x1ae)]={'languageCode':_0x1587b1,'ssmlGender':_0xe751f8},_0x3766d2[_0x11983c(0x1e7)]={'audioEncoding':_0x11983c(0x1c6),'sampleRateHertz':0x1f40};const _0x3d1c23={'url':_0x40b587+'text:synthesize'+_0x51c30d,'method':_0x11983c(0x193),'json':!![],'body':_0x3766d2};return rp(_0x3d1c23)[_0x11983c(0x20d)](function(_0x2c2c9c){return new Promise(function(_0x51be12,_0xd95b29){const _0x386f05=a1209_0x4e84;_0x14c8ce=path['resolve'](__dirname,_0x386f05(0x1f2),rs[_0x386f05(0x1e6)](0x4)+_0x386f05(0x1fa));const _0x3876f=Buffer[_0x386f05(0x1aa)](_0x2c2c9c[_0x386f05(0x19b)],_0x386f05(0x1ed));return fs[_0x386f05(0x19a)](_0x14c8ce,_0x3876f,function(_0x2a45f4){_0xd95b29(_0x2a45f4);},function(_0x41b673){const _0x40c8f2=_0x386f05;fs[_0x40c8f2(0x1c2)](_0x14c8ce,_0x40c8f2(0x1c3)),_0x51be12(_0x41b673);});});})[_0x11983c(0x20d)](function(){const _0x2ab1f5=_0x11983c;return _0x477d58=path[_0x2ab1f5(0x200)](__dirname,_0x2ab1f5(0x1f2),rs[_0x2ab1f5(0x1e6)](0x4)+_0x2ab1f5(0x1d1)),convertFile(_0x14c8ce,_0x477d58);})['then'](function(){const _0x212443=_0x11983c;try{fs[_0x212443(0x1a8)](_0x14c8ce),fs[_0x212443(0x1c2)](_0x477d58,'777');}catch(_0x54b1d5){logger['error'](_0x54b1d5);}return logger[_0x212443(0x208)](_0x212443(0x1da),_0x477d58[_0x212443(0x1fc)]('.')[0x0]),_0x477d58[_0x212443(0x1fc)]('.')[0x0];});},exports['googleTTS']=function(_0x3ee1cc,_0xdf3e63){const _0xda5d13=a1209_0x500eb9;let _0xbeee3e,_0x543810;return tts(_0x3ee1cc,_0xdf3e63||'en',0x1)[_0xda5d13(0x20d)](function(_0x246ad1){const _0x3a0ec5=_0xda5d13;return logger[_0x3a0ec5(0x208)](_0x246ad1),_0xbeee3e=path[_0x3a0ec5(0x200)](__dirname,'tmp',rs[_0x3a0ec5(0x1e6)](0x4)+'.mp3'),downloadFile(_0x246ad1,_0xbeee3e);})[_0xda5d13(0x20d)](function(){const _0x3f6ad3=_0xda5d13;return _0x543810=path[_0x3f6ad3(0x200)](__dirname,_0x3f6ad3(0x1f2),rs['generate'](0x4)+_0x3f6ad3(0x1d1)),convertFile(_0xbeee3e,_0x543810);})[_0xda5d13(0x20d)](function(){const _0x2af0c3=_0xda5d13;try{fs[_0x2af0c3(0x1a8)](_0xbeee3e),fs['chmodSync'](_0x543810,'777');}catch(_0xbd862f){logger[_0x2af0c3(0x1bc)](_0xbd862f);}return logger[_0x2af0c3(0x208)](_0x2af0c3(0x19e),_0x543810[_0x2af0c3(0x1fc)]('.')[0x0]),_0x543810[_0x2af0c3(0x1fc)]('.')[0x0];});},exports[a1209_0x500eb9(0x1c8)]=function(_0x40dd5b,_0x56cf7e,_0x561be3){const _0x5a874f=a1209_0x500eb9;return google[_0x5a874f(0x1d6)](_0x40dd5b,_0x56cf7e,_0x561be3)[_0x5a874f(0x20d)](function(_0xb7055b){const _0x85da8d=_0x5a874f;return logger[_0x85da8d(0x208)](_0xb7055b[_0x85da8d(0x1d9)]),rp(_0xb7055b);})['then'](function(_0x5f05d2){const _0x424e24=_0x5a874f;let _0x2c23ee='',_0x557418=0x0;try{fs['unlink'](_0x40dd5b);}catch(_0x585ac6){logger[_0x424e24(0x1bc)](_0x585ac6);}return _0x5f05d2&&_0x5f05d2[_0x424e24(0x1a1)]&&(_0x2c23ee=_0x5f05d2[_0x424e24(0x1a1)]['map'](function(_0x11ce86){const _0x3a7ba3=_0x424e24;return _0x11ce86&&_0x11ce86['alternatives'][0x0]&&_0x11ce86[_0x3a7ba3(0x1b5)][0x0][_0x3a7ba3(0x1cc)]?_0x11ce86['alternatives'][0x0][_0x3a7ba3(0x1cc)]:'';})[_0x424e24(0x1dc)]('\x0a'),_0x557418=_0x5f05d2[_0x424e24(0x1a1)][_0x424e24(0x192)](function(_0x2dd205){const _0x18d342=_0x424e24;return _0x2dd205&&_0x2dd205['alternatives'][0x0]&&_0x2dd205[_0x18d342(0x1b5)][0x0][_0x18d342(0x203)]?_0x2dd205[_0x18d342(0x1b5)][0x0][_0x18d342(0x203)]:0x0;})[_0x424e24(0x1dc)]('\x0a')),logger[_0x424e24(0x208)](_0x424e24(0x1ec),_0x2c23ee),logger[_0x424e24(0x208)](_0x424e24(0x19d),_0x557418),{'transcript':_0x2c23ee,'confidence':_0x557418};})[_0x5a874f(0x206)](function(_0x1fcf2d){const _0x26a3ca=_0x5a874f;logger[_0x26a3ca(0x1bc)]('[%s]\x20%s:%s',_0x1fcf2d['statusCode'],_0x1fcf2d['name'],_0x1fcf2d['message']);});},exports['googleDialogflow']=function(_0x3b6ff4,_0x437e14,_0x4f7e13,_0x37eac4){const _0x2c6b14=a1209_0x500eb9,_0x134f3b=apiai(_0x437e14,{'language':_0x37eac4||'en'});return _0x134f3b[_0x2c6b14(0x1f0)](_0x4f7e13,{'sessionId':md5(_0x3b6ff4)})[_0x2c6b14(0x20d)](function(_0x308ab9){const _0x3fbbc4=_0x2c6b14;return logger[_0x3fbbc4(0x208)](JSON[_0x3fbbc4(0x1ac)](_0x308ab9)),{'source':_0x308ab9['result'][_0x3fbbc4(0x1e2)],'resolvedQuery':_0x308ab9['result'][_0x3fbbc4(0x1a7)],'action':_0x308ab9[_0x3fbbc4(0x1fd)][_0x3fbbc4(0x1f4)],'actionIncomplete':_0x308ab9[_0x3fbbc4(0x1fd)][_0x3fbbc4(0x1fe)],'speech':_0x308ab9[_0x3fbbc4(0x1fd)][_0x3fbbc4(0x1c0)][_0x3fbbc4(0x1a9)],'score':_0x308ab9['result'][_0x3fbbc4(0x1e4)],'statusCode':_0x308ab9[_0x3fbbc4(0x1b7)][_0x3fbbc4(0x1b9)],'endConversation':_0x308ab9[_0x3fbbc4(0x1fd)][_0x3fbbc4(0x1c4)][_0x3fbbc4(0x1e8)]||![],'isFallbackIntent':_0x308ab9['result'][_0x3fbbc4(0x1c4)][_0x3fbbc4(0x1f7)]};});},exports[a1209_0x500eb9(0x1c7)]=async function(_0x1561b5,_0x5a21fe,_0x564e80,_0x39d5f1,_0xfcfc0a,_0x12b2c3){const _0x481b6d=a1209_0x500eb9,_0x3c7ae4=_0x39d5f1['replace'](/\\n/g,'\x0a'),_0xb9f4f7={'credentials':{'private_key':_0x3c7ae4,'client_email':_0x564e80}},_0x3ed3d4=new dialogflow[(_0x481b6d(0x1e1))](_0xb9f4f7),_0x315852=_0x3ed3d4[_0x481b6d(0x204)](_0x5a21fe,md5(_0x1561b5)),_0x2e10c7={'session':_0x315852,'queryInput':{'text':{'text':_0xfcfc0a,'languageCode':_0x12b2c3}}};try{const _0x3ec3bd=await _0x3ed3d4['detectIntent'](_0x2e10c7);if(_0x3ec3bd&&_0x3ec3bd[_0x481b6d(0x1a2)]){logger[_0x481b6d(0x208)](_0x481b6d(0x1ce),JSON[_0x481b6d(0x1ac)](_0x3ec3bd));const _0x36a62a=_0x3ec3bd[0x0];let _0x4a0b4d;return _0x36a62a&&(_0x4a0b4d={'action':_0x36a62a[_0x481b6d(0x209)]['action'],'allRequiredParamsPresent':_0x36a62a[_0x481b6d(0x209)][_0x481b6d(0x1d7)],'endConversation':_0x36a62a['queryResult']['diagnosticInfo']&&_0x36a62a[_0x481b6d(0x209)]['diagnosticInfo']['fields']?_0x36a62a['queryResult']['diagnosticInfo'][_0x481b6d(0x1d0)][_0x481b6d(0x1f5)][_0x481b6d(0x1ee)]:![],'fulfillmentText':_0x36a62a['queryResult'][_0x481b6d(0x1eb)],'intentName':_0x36a62a['queryResult'][_0x481b6d(0x1ba)]['name'],'intentDisplayName':_0x36a62a[_0x481b6d(0x209)]['intent'][_0x481b6d(0x1f6)],'isFallbackIntent':_0x36a62a['queryResult'][_0x481b6d(0x1ba)][_0x481b6d(0x1f3)],'languageCode':_0x36a62a['queryResult'][_0x481b6d(0x1bb)],'queryText':_0x36a62a['queryResult'][_0x481b6d(0x196)],'responseId':_0x36a62a['responseId'],'score':_0x36a62a[_0x481b6d(0x209)]['intentDetectionConfidence'],'speech':_0x36a62a[_0x481b6d(0x209)][_0x481b6d(0x1eb)],'providerResponse':JSON[_0x481b6d(0x1ac)](_0x3ec3bd)}),_0x4a0b4d;}}catch(_0x2b5ed4){logger[_0x481b6d(0x1bc)](_0x481b6d(0x1af),_0x2b5ed4);throw _0x2b5ed4;}},exports['tildeASR']=function(_0x442032,_0x3ee796,_0x5c0add,_0x20b755){const _0x20b043=a1209_0x500eb9;return tilde[_0x20b043(0x1d6)](_0x442032,_0x3ee796,_0x5c0add,_0x20b755)[_0x20b043(0x20d)](function(_0x341277){const _0x11519d=_0x20b043;try{fs[_0x11519d(0x1a8)](_0x442032);}catch(_0x16a1bc){logger[_0x11519d(0x1bc)](_0x16a1bc);}return logger[_0x11519d(0x208)](_0x11519d(0x1ef),_0x341277[_0x11519d(0x1cc)]),logger[_0x11519d(0x208)]('Tilde\x20ASR\x20confidence',_0x341277[_0x11519d(0x203)]),_0x341277;});},exports['awsPolly']=function(_0x2f4021,_0x36563f,_0x3b482a,_0xec7835,_0x388d45,_0x398e79){const _0x3a395b=a1209_0x500eb9,_0x1f2fff=path[_0x3a395b(0x200)](__dirname,'tmp',rs['generate'](0x4)+_0x3a395b(0x1fa));let _0x50a275;return aws[_0x3a395b(0x1a0)](_0x2f4021,_0x36563f,_0x3b482a,_0xec7835,_0x388d45,_0x398e79,_0x1f2fff)[_0x3a395b(0x20d)](function(){const _0x180b6a=_0x3a395b;return _0x50a275=path['resolve'](__dirname,_0x180b6a(0x1f2),rs[_0x180b6a(0x1e6)](0x4)+_0x180b6a(0x1d1)),convertFile(_0x1f2fff,_0x50a275);})['then'](function(){const _0x20c005=_0x3a395b;try{fs[_0x20c005(0x1a8)](_0x1f2fff),fs['chmodSync'](_0x50a275,_0x20c005(0x1c3));}catch(_0x3a5cb7){logger[_0x20c005(0x1bc)](_0x3a5cb7);}return _0x50a275[_0x20c005(0x1fc)]('.')[0x0];});},exports[a1209_0x500eb9(0x1ea)]=function(_0x43feae,_0x44ec13,_0x105e44,_0x9e5ce4,_0x4598ae,_0x1230c0){const _0x332ec7=a1209_0x500eb9;return aws[_0x332ec7(0x1f1)](_0x43feae,_0x44ec13,_0x105e44,_0x9e5ce4,_0x4598ae,_0x1230c0)['then'](function(_0x1b99db){const _0x54e466=_0x332ec7;return logger[_0x54e466(0x208)](JSON[_0x54e466(0x1ac)](_0x1b99db)),_0x1b99db;});},exports[a1209_0x500eb9(0x1c1)]=function(_0xe35877,_0x2b9827,_0x40729b,_0x2fd977){const _0x1fb03c=a1209_0x500eb9,_0x2b1b6c=util['format'](_0x1fb03c(0x1d3),ISPEECH_API,_0xe35877,encodeURIComponent(_0x2b9827),_0x40729b,_0x2fd977),_0x5068e4=path['resolve'](__dirname,'tmp',rs[_0x1fb03c(0x1e6)](0x4)+_0x1fb03c(0x1fa));let _0x593850;return downloadFile(_0x2b1b6c,_0x5068e4)[_0x1fb03c(0x20d)](function(){const _0x49b6b0=_0x1fb03c;return _0x593850=path[_0x49b6b0(0x200)](__dirname,'tmp',rs[_0x49b6b0(0x1e6)](0x4)+'.wav'),convertFile(_0x5068e4,_0x593850);})['then'](function(){const _0x36a8d4=_0x1fb03c;try{fs[_0x36a8d4(0x1a8)](_0x5068e4),fs[_0x36a8d4(0x1c2)](_0x593850,_0x36a8d4(0x1c3));}catch(_0x2011e6){logger[_0x36a8d4(0x1bc)](_0x2011e6);}return _0x593850[_0x36a8d4(0x1fc)]('.')[0x0];});},exports[a1209_0x500eb9(0x1b0)]=function(_0x567f6d,_0x20f16c,_0x3407a8,_0x1fe428){const _0x8dd918=a1209_0x500eb9,_0x862c87=util[_0x8dd918(0x1e0)]('%s?apikey=%s&action=recognize&locale=%s&content-type=audio/x-wav&audio=%s&%s',ISPEECH_API,_0x20f16c,_0x3407a8,base64Encode(_0x567f6d),_0x1fe428?util['format'](_0x8dd918(0x1cb),encodeURIComponent(_0x1fe428)):_0x8dd918(0x1cd));return uploadFile(_0x862c87)[_0x8dd918(0x20d)](function(_0x3eb37d){const _0x1a3a40=_0x8dd918;return querystring[_0x1a3a40(0x1dd)](_0x3eb37d);});},exports[a1209_0x500eb9(0x1a4)]=function(_0x4e5476,_0x15d293){const _0x29ba68=a1209_0x500eb9;return sestek[_0x29ba68(0x1df)](_0x4e5476,_0x15d293)[_0x29ba68(0x20d)](function(_0x25bd24){const _0x562150=_0x29ba68;logger[_0x562150(0x208)](JSON[_0x562150(0x1ac)](_0x25bd24));const _0x4d544c={'speech':_0x25bd24['text'],'action':_0x25bd24[_0x562150(0x199)]?_0x25bd24[_0x562150(0x199)]['CustomAction']:undefined,'actiondata':_0x25bd24[_0x562150(0x199)]?_0x25bd24[_0x562150(0x199)]['CustomActionData']:undefined};if(_0x25bd24[_0x562150(0x199)]&&_0x25bd24[_0x562150(0x199)][_0x562150(0x205)])return base64Decode(_0x25bd24[_0x562150(0x199)][_0x562150(0x205)]['Data'],path[_0x562150(0x200)](__dirname,_0x562150(0x1f2),rs[_0x562150(0x1e6)](0x4)+'.wav'))[_0x562150(0x20d)](function(_0x5346d8){const _0x51a7e9=_0x562150;return _0x4d544c[_0x51a7e9(0x1cf)]=_0x5346d8,_0x4d544c;});return _0x4d544c;});},exports[a1209_0x500eb9(0x1b4)]=function(){return __dirname;}; \ No newline at end of file +const a1209_0x14c3=['sox','result','https:','googleDialogflow','url','length','WHAT_EVER','readFileSync','MP3','results','host','model=%s','https://api.ispeech.org/api/rest','transcript','asr','isFallbackIntent','awsLex','confidence','path','writeFileSync','777','alternatives','./sestek','isFallback','generate','error','tildeASR','join','status','md5','detectIntent','Dialogflow\x20V2\x20response\x20error:','Tilde\x20ASR\x20confidence','text','replace','allRequiredParamsPresent','info','googleCloudTTS','SessionsClient','[%s]\x20%s:%s','tmp','finish','fulfillment','displayName','.mp3','queryResult','pathname','voice','channelData','googleASR','score','writeFile','chmodSync','start','finish\x20to\x20convert','metadata','http','ssml','querystring','apiai-promise','code','statusCode','awsPolly','CustomAction','endConversation','audioConfig','speech','https://texttospeech.googleapis.com/v1/','fulfillmentText','diagnosticInfo','%s?apikey=%s&action=convert&text=%s&voice=%s&speed=%s&format=mp3','base64','ispeechTTS','then','split','./google','text:synthesize','pipe','format','boolValue','source','Tilde\x20ASR\x20transcription','responseId','unlink','languageCode','AudioFromTts','download\x20error','intentDetectionConfidence','../../../config/logger','googleASR\x20confidence','fields','action','from','google-tts-api','get','projectAgentSessionPath','message','protocol','.wav','statusMessage','resolve','close','googleDialogflowV2','input','wav','lex','catch','polly','Data','actionIncomplete','end','CustomActionData','sestekNDA','map','ispeechASR','request\x20to\x20','request-promise-native','googleASR\x20transcription','dirName','intent','googleTTS','stringify','name'];(function(_0x81af5d,_0x2f3441){const _0x14c3a9=function(_0x3fca59){while(--_0x3fca59){_0x81af5d['push'](_0x81af5d['shift']());}};_0x14c3a9(++_0x2f3441);}(a1209_0x14c3,0x1bc));const a1209_0x3fca=function(_0x81af5d,_0x2f3441){_0x81af5d=_0x81af5d-0x19f;let _0x14c3a9=a1209_0x14c3[_0x81af5d];return _0x14c3a9;};const a1209_0x3928ad=a1209_0x3fca;'use strict';const fs=require('fs'),path=require(a1209_0x3928ad(0x1e1)),http=require(a1209_0x3928ad(0x207)),https=require('https'),{URL}=require(a1209_0x3928ad(0x1d3)),rs=require('randomstring'),sox=require(a1209_0x3928ad(0x1cf)),rp=require(a1209_0x3928ad(0x1c8)),util=require('util'),querystring=require(a1209_0x3928ad(0x209)),tts=require(a1209_0x3928ad(0x1b1)),apiai=require(a1209_0x3928ad(0x20a)),md5=require(a1209_0x3928ad(0x1ec)),google=require(a1209_0x3928ad(0x19f)),aws=require('./aws'),tilde=require('./tilde'),sestek=require(a1209_0x3928ad(0x1e5)),dialogflow=require('@google-cloud/dialogflow'),logger=require(a1209_0x3928ad(0x1ac))('agi'),ISPEECH_API=a1209_0x3928ad(0x1db);function downloadFile(_0x5ce73b,_0x5f1700){return new Promise(function(_0x2233d3,_0x50ee77){const _0x3551e2=a1209_0x3fca,_0x5d6607=new URL(_0x5ce73b),_0x2d2964=_0x5d6607[_0x3551e2(0x1b5)]===_0x3551e2(0x1d1)?https:http,_0x1032aa={'host':_0x5d6607[_0x3551e2(0x1d9)],'path':_0x5d6607['pathname'],'headers':{'user-agent':_0x3551e2(0x1d5)}};_0x2d2964[_0x3551e2(0x1b2)](_0x1032aa,function(_0x5be3e9){const _0x4333bf=_0x3551e2;if(_0x5be3e9[_0x4333bf(0x20c)]!==0xc8){logger[_0x4333bf(0x1e8)](_0x4333bf(0x1c7)+_0x5ce73b+'\x20failed,\x20status\x20code\x20=\x20'+_0x5be3e9[_0x4333bf(0x20c)]+'\x20('+_0x5be3e9[_0x4333bf(0x1b7)]+')'),_0x50ee77(new Error(_0x4333bf(0x1c7)+_0x5ce73b+'\x20failed,\x20status\x20code\x20=\x20'+_0x5be3e9[_0x4333bf(0x20c)]+'\x20('+_0x5be3e9['statusMessage']+')'));return;}const _0x1c3c15=fs['createWriteStream'](_0x5f1700);_0x1c3c15['on'](_0x4333bf(0x1f8),function(){const _0x4e62b8=_0x4333bf;logger[_0x4e62b8(0x1f3)]('finish\x20download\x20file'),_0x1c3c15[_0x4e62b8(0x1b9)](_0x2233d3);}),_0x1c3c15['on'](_0x4333bf(0x1e8),function(_0xf9530e){const _0x1453b0=_0x4333bf;fs['unlink'](_0x5f1700),logger['error'](_0x1453b0(0x1aa),_0xf9530e),_0x50ee77(_0xf9530e);}),_0x5be3e9[_0x4333bf(0x1a1)](_0x1c3c15);})['on'](_0x3551e2(0x1e8),function(_0x1b155b){const _0x36fe33=_0x3551e2;logger[_0x36fe33(0x1e8)](_0x1b155b),_0x50ee77(_0x1b155b);})['end']();});}function uploadFile(_0x47d06f){return new Promise(function(_0x39b2ad,_0x22b786){const _0xdb43c8=a1209_0x3fca,_0x1e9002=new URL(_0x47d06f),_0xa6902b=_0x1e9002[_0xdb43c8(0x1b5)]===_0xdb43c8(0x1d1)?https:http,_0x413720={'host':_0x1e9002[_0xdb43c8(0x1d9)],'path':_0x1e9002[_0xdb43c8(0x1fd)],'headers':{'user-agent':_0xdb43c8(0x1d5)}};_0xa6902b[_0xdb43c8(0x1b2)](_0x413720,function(_0x375050){const _0x345809=_0xdb43c8;if(_0x375050['statusCode']!==0xc8){_0x22b786(new Error(_0x345809(0x1c7)+_0x47d06f+'\x20failed,\x20status\x20code\x20=\x20'+_0x375050[_0x345809(0x20c)]+'\x20('+_0x375050[_0x345809(0x1b7)]+')'));return;}let _0x33f46a='';_0x375050['on']('data',function(_0x12bb23){_0x33f46a+=_0x12bb23;}),_0x375050['on'](_0x345809(0x1c2),function(){_0x39b2ad(_0x33f46a);});})['on'](_0xdb43c8(0x1e8),function(_0x3d36e0){_0x22b786(_0x3d36e0);})[_0xdb43c8(0x1c2)]();});}function convertFile(_0x379da0,_0x272f97){return new Promise(function(_0x3c02b6,_0xd93b6){const _0x5d1f3a=a1209_0x3fca,_0xebc46d=sox['transcode'](_0x379da0,_0x272f97,{'sampleRate':0x1f40,'format':_0x5d1f3a(0x1bc),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0xebc46d['on'](_0x5d1f3a(0x1e8),function(_0x95cb47){const _0x39d603=_0x5d1f3a;logger[_0x39d603(0x1e8)]('error\x20convert',_0x95cb47),_0xd93b6(_0x95cb47);}),_0xebc46d['on'](_0x5d1f3a(0x1c2),function(){const _0x4067d8=_0x5d1f3a;logger[_0x4067d8(0x1f3)](_0x4067d8(0x205)),_0x3c02b6();}),_0xebc46d[_0x5d1f3a(0x204)]();});}function base64Decode(_0x448d7e,_0x5c121f){const _0x380463=a1209_0x3928ad,_0x50e0ab=path['resolve'](__dirname,_0x380463(0x1f7),rs['generate'](0x4)+_0x380463(0x1b6));return fs[_0x380463(0x1e2)](_0x50e0ab,_0x448d7e,_0x380463(0x216)),convertFile(_0x50e0ab,_0x5c121f)['then'](function(){const _0x6e118c=_0x380463;try{fs['unlink'](_0x50e0ab),fs[_0x6e118c(0x203)](_0x5c121f,_0x6e118c(0x1e3));}catch(_0x7d2be2){logger[_0x6e118c(0x1e8)](_0x7d2be2);}return _0x5c121f[_0x6e118c(0x219)]('.')[0x0];});}function base64Encode(_0x2f3d50){const _0x47bc8b=a1209_0x3928ad,_0x24b835=fs[_0x47bc8b(0x1d6)](_0x2f3d50);return Buffer['from'](_0x24b835)['toString'](_0x47bc8b(0x216));}exports[a1209_0x3928ad(0x1f4)]=function(_0x294c6c,_0x35487d,_0x38d069,_0x478433,_0x3bc628){const _0x4c9f19=a1209_0x3928ad;let _0x5950c2,_0x5a602e;const _0x3b4f58=_0x4c9f19(0x212),_0xe48583='?key='+_0x294c6c,_0x4b9775={};_0x35487d===_0x4c9f19(0x208)?_0x4b9775['input']={'ssml':_0x38d069}:_0x4b9775[_0x4c9f19(0x1bb)]={'text':_0x38d069};_0x4b9775[_0x4c9f19(0x1fe)]={'languageCode':_0x478433,'ssmlGender':_0x3bc628},_0x4b9775[_0x4c9f19(0x210)]={'audioEncoding':_0x4c9f19(0x1d7),'sampleRateHertz':0x1f40};const _0x4fbdb5={'url':_0x3b4f58+_0x4c9f19(0x1a0)+_0xe48583,'method':'POST','json':!![],'body':_0x4b9775};return rp(_0x4fbdb5)[_0x4c9f19(0x218)](function(_0x905468){return new Promise(function(_0xfdf10d,_0x3d735c){const _0x46f2a1=a1209_0x3fca;_0x5950c2=path[_0x46f2a1(0x1b8)](__dirname,_0x46f2a1(0x1f7),rs[_0x46f2a1(0x1e7)](0x4)+_0x46f2a1(0x1fb));const _0x3cd793=Buffer[_0x46f2a1(0x1b0)](_0x905468['audioContent'],_0x46f2a1(0x216));return fs[_0x46f2a1(0x202)](_0x5950c2,_0x3cd793,function(_0x57fe4f){_0x3d735c(_0x57fe4f);},function(_0x56bd6c){const _0x4dfcaa=_0x46f2a1;fs[_0x4dfcaa(0x203)](_0x5950c2,_0x4dfcaa(0x1e3)),_0xfdf10d(_0x56bd6c);});});})['then'](function(){const _0x12d6b0=_0x4c9f19;return _0x5a602e=path[_0x12d6b0(0x1b8)](__dirname,_0x12d6b0(0x1f7),rs[_0x12d6b0(0x1e7)](0x4)+'.wav'),convertFile(_0x5950c2,_0x5a602e);})[_0x4c9f19(0x218)](function(){const _0x7bed99=_0x4c9f19;try{fs[_0x7bed99(0x1a7)](_0x5950c2),fs['chmodSync'](_0x5a602e,'777');}catch(_0x37e973){logger[_0x7bed99(0x1e8)](_0x37e973);}return logger['info']('googleCloudTTS\x20path',_0x5a602e[_0x7bed99(0x219)]('.')[0x0]),_0x5a602e[_0x7bed99(0x219)]('.')[0x0];});},exports[a1209_0x3928ad(0x1cc)]=function(_0x5b337f,_0x5b7c9c){const _0x3fc334=a1209_0x3928ad;let _0x453a0c,_0x1ada3b;return tts(_0x5b337f,_0x5b7c9c||'en',0x1)['then'](function(_0x447718){const _0xc9360d=a1209_0x3fca;return logger['info'](_0x447718),_0x453a0c=path[_0xc9360d(0x1b8)](__dirname,_0xc9360d(0x1f7),rs[_0xc9360d(0x1e7)](0x4)+_0xc9360d(0x1fb)),downloadFile(_0x447718,_0x453a0c);})[_0x3fc334(0x218)](function(){const _0x789106=_0x3fc334;return _0x1ada3b=path[_0x789106(0x1b8)](__dirname,_0x789106(0x1f7),rs[_0x789106(0x1e7)](0x4)+_0x789106(0x1b6)),convertFile(_0x453a0c,_0x1ada3b);})['then'](function(){const _0x32c146=_0x3fc334;try{fs[_0x32c146(0x1a7)](_0x453a0c),fs['chmodSync'](_0x1ada3b,_0x32c146(0x1e3));}catch(_0x1d7123){logger[_0x32c146(0x1e8)](_0x1d7123);}return logger[_0x32c146(0x1f3)]('goggleTTS\x20path',_0x1ada3b['split']('.')[0x0]),_0x1ada3b[_0x32c146(0x219)]('.')[0x0];});},exports[a1209_0x3928ad(0x200)]=function(_0x8397e3,_0x1f5cc7,_0x2848d0){const _0x27cbe2=a1209_0x3928ad;return google[_0x27cbe2(0x1dd)](_0x8397e3,_0x1f5cc7,_0x2848d0)['then'](function(_0x1a2063){const _0x2ac899=_0x27cbe2;return logger[_0x2ac899(0x1f3)](_0x1a2063['uri']),rp(_0x1a2063);})[_0x27cbe2(0x218)](function(_0xb46bee){const _0x4f2e6d=_0x27cbe2;let _0x8958c8='',_0x18f1d3=0x0;try{fs[_0x4f2e6d(0x1a7)](_0x8397e3);}catch(_0x557330){logger[_0x4f2e6d(0x1e8)](_0x557330);}return _0xb46bee&&_0xb46bee[_0x4f2e6d(0x1d8)]&&(_0x8958c8=_0xb46bee[_0x4f2e6d(0x1d8)][_0x4f2e6d(0x1c5)](function(_0x5a3266){const _0xc65d6e=_0x4f2e6d;return _0x5a3266&&_0x5a3266[_0xc65d6e(0x1e4)][0x0]&&_0x5a3266[_0xc65d6e(0x1e4)][0x0][_0xc65d6e(0x1dc)]?_0x5a3266[_0xc65d6e(0x1e4)][0x0][_0xc65d6e(0x1dc)]:'';})[_0x4f2e6d(0x1ea)]('\x0a'),_0x18f1d3=_0xb46bee['results']['map'](function(_0x4fba46){const _0x5b4d6d=_0x4f2e6d;return _0x4fba46&&_0x4fba46['alternatives'][0x0]&&_0x4fba46[_0x5b4d6d(0x1e4)][0x0][_0x5b4d6d(0x1e0)]?_0x4fba46[_0x5b4d6d(0x1e4)][0x0]['confidence']:0x0;})[_0x4f2e6d(0x1ea)]('\x0a')),logger[_0x4f2e6d(0x1f3)](_0x4f2e6d(0x1c9),_0x8958c8),logger[_0x4f2e6d(0x1f3)](_0x4f2e6d(0x1ad),_0x18f1d3),{'transcript':_0x8958c8,'confidence':_0x18f1d3};})[_0x27cbe2(0x1be)](function(_0x5066d0){const _0x7f7a3e=_0x27cbe2;logger[_0x7f7a3e(0x1e8)](_0x7f7a3e(0x1f6),_0x5066d0[_0x7f7a3e(0x20c)],_0x5066d0[_0x7f7a3e(0x1ce)],_0x5066d0[_0x7f7a3e(0x1b4)]);});},exports[a1209_0x3928ad(0x1d2)]=function(_0xc2f267,_0x19844b,_0x125ad1,_0x252669){const _0x1c319f=a1209_0x3928ad,_0x18617d=apiai(_0x19844b,{'language':_0x252669||'en'});return _0x18617d['textRequest'](_0x125ad1,{'sessionId':md5(_0xc2f267)})[_0x1c319f(0x218)](function(_0x4c5a17){const _0x54c755=_0x1c319f;return logger['info'](JSON[_0x54c755(0x1cd)](_0x4c5a17)),{'source':_0x4c5a17[_0x54c755(0x1d0)][_0x54c755(0x1a4)],'resolvedQuery':_0x4c5a17[_0x54c755(0x1d0)]['resolvedQuery'],'action':_0x4c5a17[_0x54c755(0x1d0)]['action'],'actionIncomplete':_0x4c5a17[_0x54c755(0x1d0)][_0x54c755(0x1c1)],'speech':_0x4c5a17[_0x54c755(0x1d0)][_0x54c755(0x1f9)][_0x54c755(0x211)],'score':_0x4c5a17[_0x54c755(0x1d0)][_0x54c755(0x201)],'statusCode':_0x4c5a17[_0x54c755(0x1eb)][_0x54c755(0x20b)],'endConversation':_0x4c5a17[_0x54c755(0x1d0)][_0x54c755(0x206)][_0x54c755(0x20f)]||![],'isFallbackIntent':_0x4c5a17['result'][_0x54c755(0x206)][_0x54c755(0x1de)]};});},exports[a1209_0x3928ad(0x1ba)]=async function(_0x38b433,_0x144fbb,_0x1a1fd6,_0x1dbe24,_0xbda236,_0x26a89b){const _0x37e839=a1209_0x3928ad,_0x17178f=_0x1dbe24[_0x37e839(0x1f1)](/\\n/g,'\x0a'),_0x3701dc={'credentials':{'private_key':_0x17178f,'client_email':_0x1a1fd6}},_0x15c50d=new dialogflow[(_0x37e839(0x1f5))](_0x3701dc),_0x22cd88=_0x15c50d[_0x37e839(0x1b3)](_0x144fbb,md5(_0x38b433)),_0x19cc53={'session':_0x22cd88,'queryInput':{'text':{'text':_0xbda236,'languageCode':_0x26a89b}}};try{const _0x5d90ab=await _0x15c50d[_0x37e839(0x1ed)](_0x19cc53);if(_0x5d90ab&&_0x5d90ab[_0x37e839(0x1d4)]){logger[_0x37e839(0x1f3)]('Dialogflow\x20V2\x20response:',JSON[_0x37e839(0x1cd)](_0x5d90ab));const _0x54c16e=_0x5d90ab[0x0];let _0x400bd8;return _0x54c16e&&(_0x400bd8={'action':_0x54c16e[_0x37e839(0x1fc)][_0x37e839(0x1af)],'allRequiredParamsPresent':_0x54c16e[_0x37e839(0x1fc)][_0x37e839(0x1f2)],'endConversation':_0x54c16e[_0x37e839(0x1fc)][_0x37e839(0x214)]&&_0x54c16e[_0x37e839(0x1fc)][_0x37e839(0x214)]['fields']?_0x54c16e[_0x37e839(0x1fc)][_0x37e839(0x214)][_0x37e839(0x1ae)]['end_conversation'][_0x37e839(0x1a3)]:![],'fulfillmentText':_0x54c16e['queryResult'][_0x37e839(0x213)],'intentName':_0x54c16e[_0x37e839(0x1fc)]['intent']['name'],'intentDisplayName':_0x54c16e['queryResult'][_0x37e839(0x1cb)][_0x37e839(0x1fa)],'isFallbackIntent':_0x54c16e[_0x37e839(0x1fc)][_0x37e839(0x1cb)][_0x37e839(0x1e6)],'languageCode':_0x54c16e[_0x37e839(0x1fc)][_0x37e839(0x1a8)],'queryText':_0x54c16e['queryResult']['queryText'],'responseId':_0x54c16e[_0x37e839(0x1a6)],'score':_0x54c16e[_0x37e839(0x1fc)][_0x37e839(0x1ab)],'speech':_0x54c16e[_0x37e839(0x1fc)]['fulfillmentText'],'providerResponse':JSON[_0x37e839(0x1cd)](_0x5d90ab)}),_0x400bd8;}}catch(_0x48ae28){logger['error'](_0x37e839(0x1ee),_0x48ae28);throw _0x48ae28;}},exports[a1209_0x3928ad(0x1e9)]=function(_0x1f73ff,_0x5c2e16,_0xa0dd04,_0x50c4bc){const _0x1e45ce=a1209_0x3928ad;return tilde['asr'](_0x1f73ff,_0x5c2e16,_0xa0dd04,_0x50c4bc)[_0x1e45ce(0x218)](function(_0x30f329){const _0x5227e9=_0x1e45ce;try{fs[_0x5227e9(0x1a7)](_0x1f73ff);}catch(_0x435d5a){logger[_0x5227e9(0x1e8)](_0x435d5a);}return logger[_0x5227e9(0x1f3)](_0x5227e9(0x1a5),_0x30f329['transcript']),logger[_0x5227e9(0x1f3)](_0x5227e9(0x1ef),_0x30f329[_0x5227e9(0x1e0)]),_0x30f329;});},exports[a1209_0x3928ad(0x20d)]=function(_0x2a45b7,_0x11d6ac,_0x4b8ba8,_0x520177,_0x518ac0,_0x2b72a6){const _0x18d0d2=a1209_0x3928ad,_0x474725=path['resolve'](__dirname,_0x18d0d2(0x1f7),rs[_0x18d0d2(0x1e7)](0x4)+'.mp3');let _0x1d1136;return aws[_0x18d0d2(0x1bf)](_0x2a45b7,_0x11d6ac,_0x4b8ba8,_0x520177,_0x518ac0,_0x2b72a6,_0x474725)[_0x18d0d2(0x218)](function(){const _0x3e90a9=_0x18d0d2;return _0x1d1136=path[_0x3e90a9(0x1b8)](__dirname,_0x3e90a9(0x1f7),rs['generate'](0x4)+'.wav'),convertFile(_0x474725,_0x1d1136);})[_0x18d0d2(0x218)](function(){const _0x2e8a6f=_0x18d0d2;try{fs[_0x2e8a6f(0x1a7)](_0x474725),fs[_0x2e8a6f(0x203)](_0x1d1136,'777');}catch(_0x1d6602){logger[_0x2e8a6f(0x1e8)](_0x1d6602);}return _0x1d1136['split']('.')[0x0];});},exports[a1209_0x3928ad(0x1df)]=function(_0x524471,_0xefba3d,_0x57b664,_0xb26859,_0x27deaf,_0x3b61f8){const _0x32917a=a1209_0x3928ad;return aws[_0x32917a(0x1bd)](_0x524471,_0xefba3d,_0x57b664,_0xb26859,_0x27deaf,_0x3b61f8)['then'](function(_0x335ea7){const _0x14f0ff=_0x32917a;return logger[_0x14f0ff(0x1f3)](JSON[_0x14f0ff(0x1cd)](_0x335ea7)),_0x335ea7;});},exports[a1209_0x3928ad(0x217)]=function(_0x54af43,_0x5e8b7b,_0x33607a,_0x11d8c9){const _0x13e053=a1209_0x3928ad,_0x33d7db=util[_0x13e053(0x1a2)](_0x13e053(0x215),ISPEECH_API,_0x54af43,encodeURIComponent(_0x5e8b7b),_0x33607a,_0x11d8c9),_0x5f3467=path['resolve'](__dirname,_0x13e053(0x1f7),rs[_0x13e053(0x1e7)](0x4)+_0x13e053(0x1fb));let _0x420efb;return downloadFile(_0x33d7db,_0x5f3467)[_0x13e053(0x218)](function(){const _0x268928=_0x13e053;return _0x420efb=path['resolve'](__dirname,_0x268928(0x1f7),rs[_0x268928(0x1e7)](0x4)+_0x268928(0x1b6)),convertFile(_0x5f3467,_0x420efb);})[_0x13e053(0x218)](function(){const _0x1cb0e1=_0x13e053;try{fs['unlink'](_0x5f3467),fs[_0x1cb0e1(0x203)](_0x420efb,_0x1cb0e1(0x1e3));}catch(_0x59b9d6){logger[_0x1cb0e1(0x1e8)](_0x59b9d6);}return _0x420efb[_0x1cb0e1(0x219)]('.')[0x0];});},exports[a1209_0x3928ad(0x1c6)]=function(_0x336ee9,_0x6193,_0x526307,_0x2f0a58){const _0x5ac35c=a1209_0x3928ad,_0x11c0c1=util[_0x5ac35c(0x1a2)]('%s?apikey=%s&action=recognize&locale=%s&content-type=audio/x-wav&audio=%s&%s',ISPEECH_API,_0x6193,_0x526307,base64Encode(_0x336ee9),_0x2f0a58?util[_0x5ac35c(0x1a2)](_0x5ac35c(0x1da),encodeURIComponent(_0x2f0a58)):'freeform=3');return uploadFile(_0x11c0c1)[_0x5ac35c(0x218)](function(_0x28b747){return querystring['parse'](_0x28b747);});},exports[a1209_0x3928ad(0x1c4)]=function(_0x477aa9,_0xb8ff7b){const _0x188025=a1209_0x3928ad;return sestek['nda'](_0x477aa9,_0xb8ff7b)[_0x188025(0x218)](function(_0x41264a){const _0x33f911=_0x188025;logger[_0x33f911(0x1f3)](JSON['stringify'](_0x41264a));const _0x503d8b={'speech':_0x41264a[_0x33f911(0x1f0)],'action':_0x41264a[_0x33f911(0x1ff)]?_0x41264a[_0x33f911(0x1ff)][_0x33f911(0x20e)]:undefined,'actiondata':_0x41264a[_0x33f911(0x1ff)]?_0x41264a[_0x33f911(0x1ff)][_0x33f911(0x1c3)]:undefined};if(_0x41264a['channelData']&&_0x41264a[_0x33f911(0x1ff)]['AudioFromTts'])return base64Decode(_0x41264a[_0x33f911(0x1ff)][_0x33f911(0x1a9)][_0x33f911(0x1c0)],path[_0x33f911(0x1b8)](__dirname,'tmp',rs[_0x33f911(0x1e7)](0x4)+'.wav'))[_0x33f911(0x218)](function(_0x466e3d){return _0x503d8b['audiofile']=_0x466e3d,_0x503d8b;});return _0x503d8b;});},exports[a1209_0x3928ad(0x1ca)]=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 c0d3b19..6459c08 100644 --- a/server/services/agi/scripts/sestek/index.js +++ b/server/services/agi/scripts/sestek/index.js @@ -1 +1 @@ -const a1210_0x914d=['nda','exports'];(function(_0x44ddbc,_0x33b2c2){const _0x914df5=function(_0x4e85de){while(--_0x4e85de){_0x44ddbc['push'](_0x44ddbc['shift']());}};_0x914df5(++_0x33b2c2);}(a1210_0x914d,0x1eb));const a1210_0x4e85=function(_0x44ddbc,_0x33b2c2){_0x44ddbc=_0x44ddbc-0x180;let _0x914df5=a1210_0x914d[_0x44ddbc];return _0x914df5;};const a1210_0x2ffb6d=a1210_0x4e85,nda=require('./nda');module[a1210_0x2ffb6d(0x180)][a1210_0x2ffb6d(0x181)]=nda; \ No newline at end of file +const a1210_0x1c44=['exports','./nda'];(function(_0xc17014,_0x24ab2d){const _0x1c4486=function(_0x20db52){while(--_0x20db52){_0xc17014['push'](_0xc17014['shift']());}};_0x1c4486(++_0x24ab2d);}(a1210_0x1c44,0x14e));const a1210_0x20db=function(_0xc17014,_0x24ab2d){_0xc17014=_0xc17014-0x1c5;let _0x1c4486=a1210_0x1c44[_0xc17014];return _0x1c4486;};const a1210_0x1062e8=a1210_0x20db,nda=require(a1210_0x1062e8(0x1c6));module[a1210_0x1062e8(0x1c5)]['nda']=nda; \ No newline at end of file diff --git a/server/services/agi/scripts/sestek/nda/index.js b/server/services/agi/scripts/sestek/nda/index.js index 798b5bc..6c98465 100644 --- a/server/services/agi/scripts/sestek/nda/index.js +++ b/server/services/agi/scripts/sestek/nda/index.js @@ -1 +1 @@ -const a1211_0x1bb6=['request-promise-native','ndaactivity_type','info','CustomAction','message','calleridname','channelData','password','ndagenerate_audio','dnid','username','POST','toString','audio/wav','project','ndassistant_url','URL','stringify','exports','Nda','body','ndauth_url','/api/NaturalDialogAssistant/v1/Run','extension','access_token','custom_action_data','callerid','uniqueid','../../../../../config/logger','url','text','ProjectName'];(function(_0x57da1b,_0x40ed0a){const _0x1bb623=function(_0x282426){while(--_0x282426){_0x57da1b['push'](_0x57da1b['shift']());}};_0x1bb623(++_0x40ed0a);}(a1211_0x1bb6,0xfc));const a1211_0x2824=function(_0x57da1b,_0x40ed0a){_0x57da1b=_0x57da1b-0x14b;let _0x1bb623=a1211_0x1bb6[_0x57da1b];return _0x1bb623;};const a1211_0xde6937=a1211_0x2824;'use strict';const rp=require(a1211_0xde6937(0x14f)),url=require(a1211_0xde6937(0x14c)),logger=require(a1211_0xde6937(0x14b))('agi');module[a1211_0xde6937(0x161)]=function(_0x2a8a1d,_0x13ebb6){const _0x48257d=a1211_0xde6937,_0x1cb3aa=new url['URL']('/token',_0x13ebb6[_0x48257d(0x164)])[_0x48257d(0x15b)](),_0x3aa99d={'method':_0x48257d(0x15a),'uri':_0x1cb3aa,'form':{'grant_type':_0x48257d(0x156),'username':_0x13ebb6[_0x48257d(0x159)],'password':_0x13ebb6[_0x48257d(0x156)]},'json':!![]};return rp(_0x3aa99d)['then'](function(_0x3af86b){const _0x270f26=_0x48257d,_0x2edab1=new url[(_0x270f26(0x15f))](_0x270f26(0x165),_0x13ebb6[_0x270f26(0x15e)])[_0x270f26(0x15b)](),_0x490161={'method':_0x270f26(0x15a),'uri':_0x2edab1,'body':{'type':_0x13ebb6[_0x270f26(0x150)]||_0x270f26(0x153),'channelId':_0x270f26(0x162),'conversation':{'id':_0x2a8a1d[_0x270f26(0x16a)]},'from':{'id':_0x2a8a1d[_0x270f26(0x169)],'name':_0x2a8a1d[_0x270f26(0x154)]},'recipient':{'id':_0x2a8a1d[_0x270f26(0x158)],'name':_0x2a8a1d[_0x270f26(0x166)]},'text':_0x13ebb6[_0x270f26(0x14d)],'channelData':{}},'headers':{'Authorization':'Bearer\x20'+_0x3af86b[_0x270f26(0x167)]},'json':!![]};return _0x13ebb6[_0x270f26(0x15d)]&&(_0x490161[_0x270f26(0x163)][_0x270f26(0x155)][_0x270f26(0x14e)]=_0x13ebb6[_0x270f26(0x15d)]),_0x13ebb6[_0x270f26(0x157)]=='1'&&(_0x490161[_0x270f26(0x163)][_0x270f26(0x155)]['AudioOutputSettings']={'Generate':!![],'PutInStructuredPart':![],'ExpectedFormat':_0x270f26(0x15c)}),_0x13ebb6['custom_action']&&(_0x490161[_0x270f26(0x163)]['channelData'][_0x270f26(0x152)]=_0x13ebb6['custom_action'],_0x13ebb6[_0x270f26(0x168)]&&(_0x490161['body'][_0x270f26(0x155)]['CustomActionData']=_0x13ebb6[_0x270f26(0x168)])),logger[_0x270f26(0x151)](JSON[_0x270f26(0x160)](_0x490161)),rp(_0x490161);});}; \ No newline at end of file +const a1211_0x4d72=['exports','Nda','uniqueid','CustomAction','text','then','channelData','callerid','POST','password','AudioOutputSettings','project','Bearer\x20','url','access_token','body','info','../../../../../config/logger','agi','ndagenerate_audio','custom_action_data','custom_action','toString','ndaactivity_type','URL','audio/wav','/token','calleridname','CustomActionData'];(function(_0x544e96,_0x1fdce3){const _0x4d72a4=function(_0x192045){while(--_0x192045){_0x544e96['push'](_0x544e96['shift']());}};_0x4d72a4(++_0x1fdce3);}(a1211_0x4d72,0x141));const a1211_0x1920=function(_0x544e96,_0x1fdce3){_0x544e96=_0x544e96-0x128;let _0x4d72a4=a1211_0x4d72[_0x544e96];return _0x4d72a4;};const a1211_0x194574=a1211_0x1920;'use strict';const rp=require('request-promise-native'),url=require(a1211_0x194574(0x133)),logger=require(a1211_0x194574(0x137))(a1211_0x194574(0x138));module[a1211_0x194574(0x143)]=function(_0x40fbe9,_0xa4dcff){const _0x30223d=a1211_0x194574,_0x2d7398=new url[(_0x30223d(0x13e))](_0x30223d(0x140),_0xa4dcff['ndauth_url'])[_0x30223d(0x13c)](),_0x496374={'method':_0x30223d(0x12e),'uri':_0x2d7398,'form':{'grant_type':_0x30223d(0x12f),'username':_0xa4dcff['username'],'password':_0xa4dcff[_0x30223d(0x12f)]},'json':!![]};return rp(_0x496374)[_0x30223d(0x12b)](function(_0x4e7fb4){const _0xa2010f=_0x30223d,_0x1d6b2e=new url[(_0xa2010f(0x13e))]('/api/NaturalDialogAssistant/v1/Run',_0xa4dcff['ndassistant_url'])[_0xa2010f(0x13c)](),_0x566d8c={'method':'POST','uri':_0x1d6b2e,'body':{'type':_0xa4dcff[_0xa2010f(0x13d)]||'message','channelId':_0xa2010f(0x144),'conversation':{'id':_0x40fbe9[_0xa2010f(0x128)]},'from':{'id':_0x40fbe9[_0xa2010f(0x12d)],'name':_0x40fbe9[_0xa2010f(0x141)]},'recipient':{'id':_0x40fbe9['dnid'],'name':_0x40fbe9['extension']},'text':_0xa4dcff[_0xa2010f(0x12a)],'channelData':{}},'headers':{'Authorization':_0xa2010f(0x132)+_0x4e7fb4[_0xa2010f(0x134)]},'json':!![]};return _0xa4dcff[_0xa2010f(0x131)]&&(_0x566d8c[_0xa2010f(0x135)]['channelData']['ProjectName']=_0xa4dcff[_0xa2010f(0x131)]),_0xa4dcff[_0xa2010f(0x139)]=='1'&&(_0x566d8c[_0xa2010f(0x135)][_0xa2010f(0x12c)][_0xa2010f(0x130)]={'Generate':!![],'PutInStructuredPart':![],'ExpectedFormat':_0xa2010f(0x13f)}),_0xa4dcff[_0xa2010f(0x13b)]&&(_0x566d8c[_0xa2010f(0x135)][_0xa2010f(0x12c)][_0xa2010f(0x129)]=_0xa4dcff[_0xa2010f(0x13b)],_0xa4dcff[_0xa2010f(0x13a)]&&(_0x566d8c[_0xa2010f(0x135)][_0xa2010f(0x12c)][_0xa2010f(0x142)]=_0xa4dcff[_0xa2010f(0x13a)])),logger[_0xa2010f(0x136)](JSON['stringify'](_0x566d8c)),rp(_0x566d8c);});}; \ 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 bd3e7d8..c0194c7 100644 --- a/server/services/agi/scripts/tilde/asr/index.js +++ b/server/services/agi/scripts/tilde/asr/index.js @@ -1 +1 @@ -const a1212_0x2333=['./lib/api'];(function(_0x4974d0,_0x1e134a){const _0x2333ba=function(_0x2e70a6){while(--_0x2e70a6){_0x4974d0['push'](_0x4974d0['shift']());}};_0x2333ba(++_0x1e134a);}(a1212_0x2333,0xc6));const a1212_0x2e70=function(_0x4974d0,_0x1e134a){_0x4974d0=_0x4974d0-0x11a;let _0x2333ba=a1212_0x2333[_0x4974d0];return _0x2333ba;};const a1212_0x2959f0=a1212_0x2e70;'use strict';const asr=require(a1212_0x2959f0(0x11a));module['exports']=function(_0x299690,_0x15b286,_0x1193d7,_0x593190){return asr(_0x299690,_0x15b286,_0x1193d7,_0x593190);}; \ No newline at end of file +const a1212_0xd15d=['exports'];(function(_0x20eaa4,_0x4f3c2b){const _0xd15d00=function(_0x581420){while(--_0x581420){_0x20eaa4['push'](_0x20eaa4['shift']());}};_0xd15d00(++_0x4f3c2b);}(a1212_0xd15d,0x87));const a1212_0x5814=function(_0x20eaa4,_0x4f3c2b){_0x20eaa4=_0x20eaa4-0x12e;let _0xd15d00=a1212_0xd15d[_0x20eaa4];return _0xd15d00;};const a1212_0x10a4f7=a1212_0x5814;'use strict';const asr=require('./lib/api');module[a1212_0x10a4f7(0x12e)]=function(_0x48839d,_0x588fcc,_0x1b023b,_0x4d42ef){return asr(_0x48839d,_0x588fcc,_0x1b023b,_0x4d42ef);}; \ 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 740f7ec..f57d3a5 100644 --- a/server/services/agi/scripts/tilde/asr/lib/api.js +++ b/server/services/agi/scripts/tilde/asr/lib/api.js @@ -1 +1 @@ -const a1213_0x1a2b=['open','All\x20recognition\x20workers\x20are\x20currently\x20in\x20use\x20and\x20real-time\x20recognition\x20is\x20not\x20possible.','isObject','result','Tilde\x20ASR\x20send\x20error','agi','message','hex','exports','parse','status','Close\x20Tilde\x20ASR\x20socket','isNil','Not\x20available.\x20Max\x20load\x20limit\x20reached.','error','../../../../../../config/logger','digest','No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech','update','send','close','unix','final','terminate','stringify','likelihood','Error\x20Tilde\x20ASR\x20socket','lodash','Authentication\x20failed.','hypotheses','Success.','info','Aborted.\x20Recognition\x20was\x20aborted\x20for\x20some\x20reason.','wss://runa.tilde.lv/client/ws/speech/LVASR-ONLINE','sha1','Tilde\x20ASR\x20hypoteses','Tilde\x20URI','data','moment','Open\x20Tilde\x20ASR\x20socket'];(function(_0x2d538b,_0x4e822e){const _0x1a2bbf=function(_0x298e36){while(--_0x298e36){_0x2d538b['push'](_0x2d538b['shift']());}};_0x1a2bbf(++_0x4e822e);}(a1213_0x1a2b,0x1bd));const a1213_0x298e=function(_0x2d538b,_0x4e822e){_0x2d538b=_0x2d538b-0xe1;let _0x1a2bbf=a1213_0x1a2b[_0x2d538b];return _0x1a2bbf;};const a1213_0x475153=a1213_0x298e;'use strict';const _=require(a1213_0x475153(0xf7)),fs=require('fs'),WebSocket=require('ws'),moment=require(a1213_0x475153(0x102)),crypto=require('crypto'),logger=require(a1213_0x475153(0xeb))(a1213_0x475153(0xe1));module[a1213_0x475153(0xe4)]=function(_0x12bbcb,_0x36faa5,_0x1d09c8,_0x58f2c7){return new Promise(function(_0x19f256){const _0x163d23=a1213_0x298e;logger[_0x163d23(0xfb)](_0x163d23(0x100),_0x58f2c7||'wss://runa.tilde.lv/client/ws/speech/LVASR-ONLINE');const _0x296c4a=new WebSocket(_0x58f2c7||_0x163d23(0xfd),{'perMessageDeflate':![]});let _0x1e03bb='',_0x480ebe='0',_0x243681='1',_0x2587f9=_0x163d23(0xed);function _0x3f5786(_0x58418c){const _0x592e7d=_0x163d23,_0x24099a=crypto['createHash'](_0x592e7d(0xfe));return _0x24099a[_0x592e7d(0xee)](_0x58418c),_0x24099a[_0x592e7d(0xec)](_0x592e7d(0xe3));}function _0x12ebf9(){const _0x4fcdba=_0x163d23;try{logger[_0x4fcdba(0xfb)](_0x4fcdba(0x103));const _0x4fcf80=moment()[_0x4fcdba(0xf1)](),_0x3b91a6=_0x3f5786(_0x4fcf80+_0x36faa5+_0x1d09c8);_0x296c4a[_0x4fcdba(0xef)](JSON[_0x4fcdba(0xf4)]({'appID':_0x36faa5,'timestamp':_0x4fcf80,'appKey':_0x3b91a6}));const _0x1c72d2=fs['createReadStream'](_0x12bbcb);_0x1c72d2['on'](_0x4fcdba(0x101),function(_0x5b1f05){const _0x3353b4=_0x4fcdba;_0x296c4a[_0x3353b4(0xef)](_0x5b1f05);}),_0x1c72d2['on'](_0x4fcdba(0xf0),function(){_0x296c4a['send']('EOS');});}catch(_0x44d68d){logger[_0x4fcdba(0xea)](_0x4fcdba(0x108),JSON[_0x4fcdba(0xf4)](_0x44d68d)),_0x296c4a[_0x4fcdba(0xf3)]();}}function _0x3d4980(_0x474871){const _0x194508=_0x163d23;try{if(_0x474871){const _0x2c37e6=JSON[_0x194508(0xe5)](_0x474871);switch(_0x2c37e6[_0x194508(0xe6)]){case 0x0:_0x2c37e6[_0x194508(0x107)]&&(_0x2c37e6[_0x194508(0x107)][_0x194508(0xf2)]&&(logger['info'](_0x194508(0xff),JSON['stringify'](_0x2c37e6[_0x194508(0x107)][_0x194508(0xf9)])),_0x1e03bb=_0x2c37e6[_0x194508(0x107)][_0x194508(0xf9)][0x0]['transcript'],_0x480ebe=_0x2c37e6['result'][_0x194508(0xf9)][0x0][_0x194508(0xf5)],_0x243681='0',_0x2587f9=_0x194508(0xfa),_0x296c4a[_0x194508(0xf3)]()));break;case 0x1:logger[_0x194508(0xfb)]('No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech'),_0x243681='1',_0x2587f9=_0x194508(0xed);break;case 0x2:logger[_0x194508(0xfb)](_0x194508(0xfc)),_0x243681='2',_0x2587f9='Aborted.\x20Recognition\x20was\x20aborted\x20for\x20some\x20reason.';break;case 0x9:logger[_0x194508(0xfb)](_0x194508(0xe9)),_0x243681='9',_0x2587f9='Not\x20available.\x20Max\x20load\x20limit\x20reached.';break;case 0xa:logger[_0x194508(0xfb)]('Authentication\x20failed.'),_0x243681='10',_0x2587f9=_0x194508(0xf8);break;case 0xb:logger['info'](_0x194508(0x105)),_0x243681='11',_0x2587f9='All\x20recognition\x20workers\x20are\x20currently\x20in\x20use\x20and\x20real-time\x20recognition\x20is\x20not\x20possible.';}}}catch(_0x1ccfc9){logger[_0x194508(0xea)]('Tilde\x20ASR\x20parse\x20error',JSON[_0x194508(0xf4)](_0x1ccfc9)),_0x296c4a['terminate']();}}function _0x16eaef(){const _0x5b2139=_0x163d23;logger['info'](_0x5b2139(0xe7)),_0x19f256({'transcript':_0x1e03bb,'confidence':_0x480ebe,'status':_0x243681,'status_message':_0x2587f9});}function _0x2ed0e7(_0x3ab4b4){const _0x372dbc=_0x163d23;logger[_0x372dbc(0xea)](_0x372dbc(0xf6)),!_[_0x372dbc(0xe8)](_0x3ab4b4)&&logger[_0x372dbc(0xea)](_[_0x372dbc(0x106)](_0x3ab4b4)?JSON[_0x372dbc(0xf4)](_0x3ab4b4):_0x3ab4b4);}_0x296c4a['on'](_0x163d23(0x104),_0x12ebf9),_0x296c4a['on'](_0x163d23(0xe2),_0x3d4980),_0x296c4a['on'](_0x163d23(0xf0),_0x16eaef),_0x296c4a['on'](_0x163d23(0xea),_0x2ed0e7);});}; \ No newline at end of file +const a1213_0x1f74=['Tilde\x20ASR\x20hypoteses','info','All\x20recognition\x20workers\x20are\x20currently\x20in\x20use\x20and\x20real-time\x20recognition\x20is\x20not\x20possible.','moment','close','createHash','digest','status','message','result','agi','Not\x20available.\x20Max\x20load\x20limit\x20reached.','likelihood','Tilde\x20ASR\x20send\x20error','No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech','hex','Authentication\x20failed.','isObject','lodash','createReadStream','Tilde\x20URI','../../../../../../config/logger','terminate','EOS','exports','data','Success.','crypto','Tilde\x20ASR\x20parse\x20error','send','hypotheses','final','stringify','error','wss://runa.tilde.lv/client/ws/speech/LVASR-ONLINE','Aborted.\x20Recognition\x20was\x20aborted\x20for\x20some\x20reason.'];(function(_0x2ace39,_0x587e5b){const _0x1f745e=function(_0x114309){while(--_0x114309){_0x2ace39['push'](_0x2ace39['shift']());}};_0x1f745e(++_0x587e5b);}(a1213_0x1f74,0x1a3));const a1213_0x1143=function(_0x2ace39,_0x587e5b){_0x2ace39=_0x2ace39-0x6b;let _0x1f745e=a1213_0x1f74[_0x2ace39];return _0x1f745e;};const a1213_0x40fcfe=a1213_0x1143;'use strict';const _=require(a1213_0x40fcfe(0x8a)),fs=require('fs'),WebSocket=require('ws'),moment=require(a1213_0x40fcfe(0x7b)),crypto=require(a1213_0x40fcfe(0x6f)),logger=require(a1213_0x40fcfe(0x8d))(a1213_0x40fcfe(0x82));module[a1213_0x40fcfe(0x6c)]=function(_0x3179a2,_0x185eb6,_0x4a1c02,_0x32a884){return new Promise(function(_0x55eaf6){const _0x4bd539=a1213_0x1143;logger[_0x4bd539(0x79)](_0x4bd539(0x8c),_0x32a884||_0x4bd539(0x76));const _0x50ac0e=new WebSocket(_0x32a884||_0x4bd539(0x76),{'perMessageDeflate':![]});let _0x390cc5='',_0x9b5c4c='0',_0x53b119='1',_0x1de42f='No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech';function _0x2a4cbb(_0x129638){const _0x51f8ea=_0x4bd539,_0x434df9=crypto[_0x51f8ea(0x7d)]('sha1');return _0x434df9['update'](_0x129638),_0x434df9[_0x51f8ea(0x7e)](_0x51f8ea(0x87));}function _0x16820e(){const _0x9a1834=_0x4bd539;try{logger[_0x9a1834(0x79)]('Open\x20Tilde\x20ASR\x20socket');const _0x4afc12=moment()['unix'](),_0x5928fe=_0x2a4cbb(_0x4afc12+_0x185eb6+_0x4a1c02);_0x50ac0e['send'](JSON[_0x9a1834(0x74)]({'appID':_0x185eb6,'timestamp':_0x4afc12,'appKey':_0x5928fe}));const _0x4b91b7=fs[_0x9a1834(0x8b)](_0x3179a2);_0x4b91b7['on'](_0x9a1834(0x6d),function(_0x16688e){const _0x7b45c7=_0x9a1834;_0x50ac0e[_0x7b45c7(0x71)](_0x16688e);}),_0x4b91b7['on'](_0x9a1834(0x7c),function(){const _0x2c5604=_0x9a1834;_0x50ac0e[_0x2c5604(0x71)](_0x2c5604(0x6b));});}catch(_0x441cd9){logger[_0x9a1834(0x75)](_0x9a1834(0x85),JSON[_0x9a1834(0x74)](_0x441cd9)),_0x50ac0e[_0x9a1834(0x8e)]();}}function _0x4e7985(_0x47010b){const _0x4255fc=_0x4bd539;try{if(_0x47010b){const _0x36ca4a=JSON['parse'](_0x47010b);switch(_0x36ca4a[_0x4255fc(0x7f)]){case 0x0:_0x36ca4a['result']&&(_0x36ca4a[_0x4255fc(0x81)][_0x4255fc(0x73)]&&(logger[_0x4255fc(0x79)](_0x4255fc(0x78),JSON[_0x4255fc(0x74)](_0x36ca4a[_0x4255fc(0x81)]['hypotheses'])),_0x390cc5=_0x36ca4a[_0x4255fc(0x81)][_0x4255fc(0x72)][0x0]['transcript'],_0x9b5c4c=_0x36ca4a[_0x4255fc(0x81)][_0x4255fc(0x72)][0x0][_0x4255fc(0x84)],_0x53b119='0',_0x1de42f=_0x4255fc(0x6e),_0x50ac0e[_0x4255fc(0x8e)]()));break;case 0x1:logger[_0x4255fc(0x79)](_0x4255fc(0x86)),_0x53b119='1',_0x1de42f='No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech';break;case 0x2:logger['info'](_0x4255fc(0x77)),_0x53b119='2',_0x1de42f='Aborted.\x20Recognition\x20was\x20aborted\x20for\x20some\x20reason.';break;case 0x9:logger[_0x4255fc(0x79)](_0x4255fc(0x83)),_0x53b119='9',_0x1de42f=_0x4255fc(0x83);break;case 0xa:logger[_0x4255fc(0x79)](_0x4255fc(0x88)),_0x53b119='10',_0x1de42f='Authentication\x20failed.';break;case 0xb:logger[_0x4255fc(0x79)](_0x4255fc(0x7a)),_0x53b119='11',_0x1de42f=_0x4255fc(0x7a);}}}catch(_0xe78065){logger[_0x4255fc(0x75)](_0x4255fc(0x70),JSON[_0x4255fc(0x74)](_0xe78065)),_0x50ac0e[_0x4255fc(0x8e)]();}}function _0x3864ee(){const _0x4d602c=_0x4bd539;logger[_0x4d602c(0x79)]('Close\x20Tilde\x20ASR\x20socket'),_0x55eaf6({'transcript':_0x390cc5,'confidence':_0x9b5c4c,'status':_0x53b119,'status_message':_0x1de42f});}function _0x1b3f4e(_0x2b2529){const _0x2eb13e=_0x4bd539;logger[_0x2eb13e(0x75)]('Error\x20Tilde\x20ASR\x20socket'),!_['isNil'](_0x2b2529)&&logger['error'](_[_0x2eb13e(0x89)](_0x2b2529)?JSON[_0x2eb13e(0x74)](_0x2b2529):_0x2b2529);}_0x50ac0e['on']('open',_0x16820e),_0x50ac0e['on'](_0x4bd539(0x80),_0x4e7985),_0x50ac0e['on'](_0x4bd539(0x7c),_0x3864ee),_0x50ac0e['on']('error',_0x1b3f4e);});}; \ 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 e3e9450..6c7606e 100644 --- a/server/services/agi/scripts/tilde/index.js +++ b/server/services/agi/scripts/tilde/index.js @@ -1 +1 @@ -const a1214_0x57c7=['./asr','exports','asr'];(function(_0x14eb56,_0x486808){const _0x57c7a7=function(_0x16c8b6){while(--_0x16c8b6){_0x14eb56['push'](_0x14eb56['shift']());}};_0x57c7a7(++_0x486808);}(a1214_0x57c7,0x1b8));const a1214_0x16c8=function(_0x14eb56,_0x486808){_0x14eb56=_0x14eb56-0x180;let _0x57c7a7=a1214_0x57c7[_0x14eb56];return _0x57c7a7;};const a1214_0x9a6c63=a1214_0x16c8,asr=require(a1214_0x9a6c63(0x181));module[a1214_0x9a6c63(0x182)][a1214_0x9a6c63(0x180)]=asr; \ No newline at end of file +const a1214_0x32ae=['asr','./asr'];(function(_0x3e5c18,_0xaf757){const _0x32aed6=function(_0x1dc492){while(--_0x1dc492){_0x3e5c18['push'](_0x3e5c18['shift']());}};_0x32aed6(++_0xaf757);}(a1214_0x32ae,0xa2));const a1214_0x1dc4=function(_0x3e5c18,_0xaf757){_0x3e5c18=_0x3e5c18-0x113;let _0x32aed6=a1214_0x32ae[_0x3e5c18];return _0x32aed6;};const a1214_0x314406=a1214_0x1dc4,asr=require(a1214_0x314406(0x114));module['exports'][a1214_0x314406(0x113)]=asr; \ No newline at end of file diff --git a/server/services/agi/server.js b/server/services/agi/server.js index 5efb537..ab57969 100644 --- a/server/services/agi/server.js +++ b/server/services/agi/server.js @@ -1 +1 @@ -const a1215_0x21b6=['net','listening','inherits','E_AGI_SERVER_VOICE_DISABLED','createServer','listen','destroy','error','./error','127.0.0.1','util','call','getConnections','EventEmitter','close','./channel','events','ready','exports','emit','E_AGI_SERVER_ERROR','E_AGI_SERVER_MAXCONNECTION','E_AGI_ARGUMENT_PORT','E_AGI_SERVER_CLOSE','connection'];(function(_0x1681a1,_0xe893b2){const _0x21b6ba=function(_0xc187b0){while(--_0xc187b0){_0x1681a1['push'](_0x1681a1['shift']());}};_0x21b6ba(++_0xe893b2);}(a1215_0x21b6,0x1e3));const a1215_0xc187=function(_0x1681a1,_0xe893b2){_0x1681a1=_0x1681a1-0xb5;let _0x21b6ba=a1215_0x21b6[_0x1681a1];return _0x21b6ba;};const a1215_0x5c562e=a1215_0xc187;'use strict';const util=require(a1215_0x5c562e(0xb7)),net=require(a1215_0x5c562e(0xc6)),EventEmitter=require(a1215_0x5c562e(0xbd))[a1215_0x5c562e(0xba)],AGIError=require(a1215_0x5c562e(0xb5)),AGIChannel=require(a1215_0x5c562e(0xbc)),AGIServer=function(_0x166340,_0x378638,_0x45fbf0){const _0x5e00d7=a1215_0x5c562e,_0x2e7bb3=this;_0x166340=_0x166340||0x11dd,_0x378638=_0x378638||_0x5e00d7(0xb6);let _0x478d63=null,_0x5179c0=0x0;EventEmitter[_0x5e00d7(0xb8)](_0x2e7bb3);function _0x2337e2(){const _0x52c136=_0x5e00d7;if(!_0x166340)return _0x2e7bb3['emit'](_0x52c136(0xcd),new AGIError(_0x52c136(0xc3))),![];_0x478d63=net[_0x52c136(0xca)](),_0x478d63[_0x52c136(0xcb)](_0x166340,_0x378638),_0x478d63['on'](_0x52c136(0xc7),function(){const _0x23b29a=_0x52c136;_0x2e7bb3[_0x23b29a(0xc0)]('listening');}),_0x478d63['on'](_0x52c136(0xc5),function(_0x3811b2){const _0x272c07=_0x52c136;_0x478d63[_0x272c07(0xb9)](function(_0x586742,_0x258374){const _0x5eadd1=_0x272c07;if(_0x586742)_0x2e7bb3[_0x5eadd1(0xc0)](_0x5eadd1(0xcd),new AGIError(_0x5eadd1(0xc1),_0x586742));else{if(_0x45fbf0&&_0x45fbf0<0x0)_0x2e7bb3['emit'](_0x5eadd1(0xcd),new AGIError(_0x5eadd1(0xc9))),_0x3811b2[_0x5eadd1(0xcc)]();else{if(_0x45fbf0&&_0x45fbf0>0x0&&_0x45fbf0<_0x258374)_0x5179c0+=0x1,_0x2e7bb3[_0x5eadd1(0xc0)](_0x5eadd1(0xcd),new AGIError(_0x5eadd1(0xc2),_0x5179c0)),_0x3811b2['destroy']();else{const _0x1734c2=new AGIChannel(_0x3811b2);_0x1734c2['on'](_0x5eadd1(0xbe),function(){const _0x4e25ae=_0x5eadd1;_0x2e7bb3[_0x4e25ae(0xc0)](_0x4e25ae(0xc5),_0x1734c2);});}}}});}),_0x478d63['on'](_0x52c136(0xcd),function(_0x11575a){const _0x37e013=_0x52c136;_0x2e7bb3[_0x37e013(0xc0)]('error',new AGIError(_0x37e013(0xc1),_0x11575a['code']));}),_0x478d63['on'](_0x52c136(0xbb),function(){const _0x11004f=_0x52c136;_0x2e7bb3[_0x11004f(0xc0)]('close',new AGIError(_0x11004f(0xc4)));});}process['nextTick'](function(){_0x2337e2();});};util[a1215_0x5c562e(0xc8)](AGIServer,EventEmitter),module[a1215_0x5c562e(0xbf)]=function(_0x44ab9b,_0x446757,_0x226b6a){return new AGIServer(_0x44ab9b,_0x446757,_0x226b6a);}; \ No newline at end of file +const a1215_0x3b2b=['error','emit','getConnections','ready','close','nextTick','E_AGI_ARGUMENT_PORT','EventEmitter','call','inherits','net','E_AGI_SERVER_CLOSE','destroy','listening','E_AGI_SERVER_ERROR','E_AGI_SERVER_VOICE_DISABLED','events','code','connection','exports','E_AGI_SERVER_MAXCONNECTION','util'];(function(_0x3ead9f,_0x396e3d){const _0x3b2b4a=function(_0x51fc46){while(--_0x51fc46){_0x3ead9f['push'](_0x3ead9f['shift']());}};_0x3b2b4a(++_0x396e3d);}(a1215_0x3b2b,0x6a));const a1215_0x51fc=function(_0x3ead9f,_0x396e3d){_0x3ead9f=_0x3ead9f-0x8a;let _0x3b2b4a=a1215_0x3b2b[_0x3ead9f];return _0x3b2b4a;};const a1215_0x56289c=a1215_0x51fc;'use strict';const util=require(a1215_0x56289c(0x8d)),net=require(a1215_0x56289c(0x98)),EventEmitter=require(a1215_0x56289c(0x9e))[a1215_0x56289c(0x95)],AGIError=require('./error'),AGIChannel=require('./channel'),AGIServer=function(_0x1949f7,_0xee4a65,_0x405d71){const _0x2b6019=a1215_0x56289c,_0x142ded=this;_0x1949f7=_0x1949f7||0x11dd,_0xee4a65=_0xee4a65||'127.0.0.1';let _0x58c1e8=null,_0x1f7777=0x0;EventEmitter[_0x2b6019(0x96)](_0x142ded);function _0x3fdfcd(){const _0x5399dc=_0x2b6019;if(!_0x1949f7)return _0x142ded[_0x5399dc(0x8f)](_0x5399dc(0x8e),new AGIError(_0x5399dc(0x94))),![];_0x58c1e8=net['createServer'](),_0x58c1e8['listen'](_0x1949f7,_0xee4a65),_0x58c1e8['on'](_0x5399dc(0x9b),function(){const _0x12ce99=_0x5399dc;_0x142ded[_0x12ce99(0x8f)]('listening');}),_0x58c1e8['on'](_0x5399dc(0x8a),function(_0x48590a){const _0xf3e26e=_0x5399dc;_0x58c1e8[_0xf3e26e(0x90)](function(_0x4e1040,_0x1208ab){const _0x3b1edf=_0xf3e26e;if(_0x4e1040)_0x142ded[_0x3b1edf(0x8f)](_0x3b1edf(0x8e),new AGIError(_0x3b1edf(0x9c),_0x4e1040));else{if(_0x405d71&&_0x405d71<0x0)_0x142ded[_0x3b1edf(0x8f)](_0x3b1edf(0x8e),new AGIError(_0x3b1edf(0x9d))),_0x48590a[_0x3b1edf(0x9a)]();else{if(_0x405d71&&_0x405d71>0x0&&_0x405d71<_0x1208ab)_0x1f7777+=0x1,_0x142ded[_0x3b1edf(0x8f)](_0x3b1edf(0x8e),new AGIError(_0x3b1edf(0x8c),_0x1f7777)),_0x48590a[_0x3b1edf(0x9a)]();else{const _0x5c03e4=new AGIChannel(_0x48590a);_0x5c03e4['on'](_0x3b1edf(0x91),function(){const _0x47c064=_0x3b1edf;_0x142ded[_0x47c064(0x8f)]('connection',_0x5c03e4);});}}}});}),_0x58c1e8['on'](_0x5399dc(0x8e),function(_0x4f6d3a){const _0x117954=_0x5399dc;_0x142ded[_0x117954(0x8f)]('error',new AGIError('E_AGI_SERVER_ERROR',_0x4f6d3a[_0x117954(0x9f)]));}),_0x58c1e8['on'](_0x5399dc(0x92),function(){const _0x1f8fbe=_0x5399dc;_0x142ded['emit'](_0x1f8fbe(0x92),new AGIError(_0x1f8fbe(0x99)));});}process[_0x2b6019(0x93)](function(){_0x3fdfcd();});};util[a1215_0x56289c(0x97)](AGIServer,EventEmitter),module[a1215_0x56289c(0x8b)]=function(_0x178c3e,_0x20a2ff,_0x499256){return new AGIServer(_0x178c3e,_0x20a2ff,_0x499256);}; \ No newline at end of file diff --git a/server/services/agi/vertices.js b/server/services/agi/vertices.js index 1d49b93..2f68e95 100644 --- a/server/services/agi/vertices.js +++ b/server/services/agi/vertices.js @@ -1 +1 @@ -const a1216_0x530a=['no\x20client_email\x20configured','AGENT\x20%s\x20FOUND\x20BY','isArray','tilde\x20%s\x20file\x20created','IFTIME\x20%s\x20%s','no\x20query\x20configured','tildeasr','google_cloud_tts_text_type','label','ispeechASR','port','subproject','Error\x20executing\x20query\x20%s','hiddendigitsnum','sayphonetic','command','callback_priority','uri','getSoundPath','sesteknda','context','no\x20user\x20found','Error\x20closing\x20connection\x20to\x20odbc\x20%s','MRCPSynth','auth','retry','getSquareProject','google_tts_language','gotoiftime','toUpperCase','GOAL\x20%s','getQueryOdbc','Enter\x20in\x20HANGUP\x20(%s)\x20block','saydigits','url','apiKey','saveRestApiResult','prototype','NOBEEP','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','createSmsMessage','providerResponse','Answer','getSmsAccountById','DIALOGFLOW_%s','delay','sendMail','findBy','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','AGI','no\x20file\x20audio\x20found','out','continueAt','getIntervalById','no\x20subproject\x20found\x20with\x20id\x20%d','Amy','agentLogin','Enter\x20in\x20GOTOIF\x20(%s)\x20block','getVoiceQueue','getIntervals','first','createCmContact','sip_id','Amazon\x20Lex\x20is\x20unreachable','Executed\x20command\x20MRCPRecog\x20%s','forEach','no\x20project_id\x20configured','system','audiofile','%s/sounds/converted/%s','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','getSoundById','exports','custom_app','lumenvoxasr','DIAL','googleasr','noop','debug','condition','aws_text_type','LUMENVOX_ASR_INSTANCE','sms_text','response','MP3','Enter\x20in\x20DIAL\x20(%s)\x20block','GoogleASR\x20Result\x20%s','result','no\x20grammar\x20configured','Enter\x20in\x20LOGOUT\x20(%s)\x20block','Enter\x20in\x20RESTAPI\x20(%s)\x20block','Enter\x20in\x20LOGIN\x20(%s)\x20block','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','no\x20subproject\x20selected','RECOG_CONFIDENCE()','operation','file_id','no\x20ndauth\x20url\x20configured','Callback\x20scheduled\x20at\x20','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','no\x20password\x20configured','toString','sendFax','Skipped\x20Answer','no\x20key\x20configured','aws_access_key_id','google_asr_language','aws_polly_region','MALE','odbc_id','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','google\x20%s\x20file\x20created','host','failure','MRCPRecog','LOCAL','extension','Google\x20TTS\x20is\x20unreachable','no\x20trunk\x20selected','project_id','success','Enter\x20in\x20GOAL\x20(%s)\x20block','ispeech\x20TTS\x20is\x20unreachable','dialogflowV2','no\x20condition\x20configured','variable\x20%s\x20set','XMCS-QUEUE','lumenvoxtts','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','PUT','isPlainObject','unlink','arg_1','getUser','createSquareRecording','maxRetry','true','no\x20text\x20configured','add','sendMailMessage','rawHeaders','goalname','restAPI','mindigit','sestekNDA','awsPolly','digits','Dialogflow\x20is\x20unreachable','user','answer','no\x20user\x20selected','pause_id','getPauseById','AGENT\x20%s\x20NOT\x20FOUND\x20BY','isEmpty','QUEUE','speech','tts','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','playback','unpause','restapi','sendMail\x20message','model','save_name','shellCommand','./scripts','Enter\x20in\x20ANSWER\x20(%s)\x20block','ext_dial','render','no\x20list\x20selected','ispeech_tts_language','pass','getMailAccount','getPause','email','hangup','getsecretdigits','getVariableById','account_id','computedVariables','IntervalId','callerid','Enter\x20in\x20END\x20(%s)\x20block','getSound','getVoiceQueueById','Sms\x20message\x20added\x20to\x20outgoing\x20process','goal','Enter\x20in\x20START\x20(%s)\x20block','getData','agent','wait','inspect','aws\x20Polly\x20%s\x20file\x20created','file','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','no\x20appsecret\x20configured','Enter\x20in\x20SYSTEM\x20(%s)\x20block','no\x20apiKey\x20configured','DialogflowV2\x20is\x20unreachable','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','voicemail','dialogflowV2_project_id','%s_STATUS_CODE','subject','Google\x20TTS\x20%s\x20file\x20created','private_key','replaceObjectAllVariables','stringify','aws_secret_access_key','username','Executed\x20command\x20%s\x20%s','mrcpsynth','trunk_id','tildeASR','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','no\x20private_key\x20configured','rawBody','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','getdigits','sms_account_id','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','agi','no\x20username\x20configured','LUMENVOX_ASR_CONFIDENCE','secure','Trying\x20SestekNDA:\x20%s','no\x20operation\x20configured','ispeechTTS','number','500\x20-\x20Internal\x20Server\x20Error','appid','googleASR','agentPause','minutes','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','replaceAllVariables','no\x20bot\x20name\x20configured','rpc','SESTEK_ASR_CONFIDENCE','beep','maxdigit','callback','options','AWS_LEX_%s','Enter\x20in\x20TILDEASR\x20(%s)\x20block','Executed\x20command\x20%s','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','RECOG_INPUT()','uniqueid','%s.%s','replaceAll','Amazon\x20Lex\x20Result\x20%s','Recording\x20%s\x20%s\x20%s\x20%s','menu','aws_bot_name','includes','no\x20variable\x20found','VOICEMAIL','%s_%s','body','Trying\x20Google\x20TTS\x20%s','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','moment','lastName','no\x20sms\x20account\x20found','awslex','split','IFTIME(%s?true:false)','Trying\x20aws\x20Polly\x20%s','lodash','googleCloudTTS','then','googleDialogflow','indexOf','opts','no\x20variable\x20selected','SIP/%s/%s','gosub','../../config/environment','clone','isConfigured','aws_lex_region','Trying\x20Dialogflow:\x20%s','googleTTS','dialogflow_language','200','name','end','no\x20url\x20configured','getSquareProjectById','RECOG_INSTANCE()','pause','127.0.0.1','callback_','Smtp','sendSMS\x20message','Trying\x20Amazon\x20Lex:\x20%s','no\x20find\x20by\x20configured','keys','Amazon\x20Lex\x20ready\x20for\x20fulfillment','undefined','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','streamFile','aws_polly_voice','%s/recordings/%s','setVariable','Wait\x20%s\x20seconds\x20before\x20answer','Enter\x20in\x20RECORD\x20(%s)\x20block','FIND\x20AGENT\x20%s\x20BY\x20%s','output','aws\x20Polly\x20is\x20unreachable','client_email','format','exec','open','speed','Trying\x20Google\x20Cloud\x20TTS\x20%s','record','substr','SESTEK_ASR_INSTANCE','catch','Enter\x20in\x20CALLBACK\x20(%s)\x20block','template_id','start','trunk_name','no\x20valid\x20credentials\x20configured','sestektts','variable_id','audioEncoding','finally','ssmlGender','accountcode','wav','isString','Trying\x20SendMail\x20with\x20account\x20%s','escape_digits','phone','variable\x20%s[key]\x20set','googleDialogflowV2','sayNumber','getVariable','Query\x20executed\x20correctly\x20%s','getTrunkById','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','Enter\x20in\x20SENDFAX\x20(%s)\x20block','math\x20%s','agentUnpause','appsecret','error','statusCode','no\x20variable\x20selected\x20for\x20the\x20result','Intervals','MRCP_RECOG_TRANSCRIPT','PLAYBACK','START\x20CALLY\x20SQUARE','mailRpc','recursiveNodeIndex','SIP/%s','GOOGLE_ASR_%s','logout','/var/opt/motion2/server/files','queue','parse','no\x20database\x20selected','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','no\x20intervals\x20found','login','amazonlex','channel','no\x20file\x20audio\x20selected','ispeech\x20%s\x20file\x20created','Enter\x20in\x20MATH\x20(%s)\x20block','interval','priority','getAndSetVariable','sync','list_id','mustache','%s[%s][%s]','getTrunk','RECORDING_SAVENAME','key','Enter\x20in\x20MENU\x20(%s)\x20block','%s[%s]','clear','IspeechASR\x20Result\x20%s','Executed\x20command\x20MRCPSynth\x20%s','bot','false','Enter\x20in\x20GOTO\x20(%s)\x20block','intKey','scheduledAt','recordFile','createSquareDetailsReport','shelljs','no\x20queue\x20found','isNil','getMailAccountById','Google\x20Cloud\x20TTS\x20is\x20unreachable','no\x20mail\x20account\x20found','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','../../config/logger','hiddendigitspos','timeout','text','generate','.wav','headers','grammar','math','application','service','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','extra','en-US','mailbox','Trying\x20DialogflowV2:\x20%s','agicommand','agentLogout','no\x20queue\x20selected','Enter\x20in\x20FINALLY\x20(%s)\x20block','createSquareMessage','SestekNDA\x20is\x20unreachable','position','Trying\x20SendSMS\x20with\x20account\x20%s','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','statusMessage','SestekNDA\x20Result\x20%s','replace','random','Trying\x20ispeech\x20TTS\x20%s','POST','getSquareOdbc','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','ISPEECH_ASR_%s','length','no\x20variable\x20selected\x20for\x20the\x20response','awsLex','sayDigits','getSmsAccount','mrcprecog','message','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','query','close','no\x20sms\x20account\x20configured','method','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','getUserById','no\x20interval\x20configured','info','saynumber','queue_id'];(function(_0x4666cf,_0x2ae46b){const _0x530acf=function(_0x78463b){while(--_0x78463b){_0x4666cf['push'](_0x4666cf['shift']());}};_0x530acf(++_0x2ae46b);}(a1216_0x530a,0x190));const a1216_0x7846=function(_0x4666cf,_0x2ae46b){_0x4666cf=_0x4666cf-0xe1;let _0x530acf=a1216_0x530a[_0x4666cf];return _0x530acf;};const a1216_0x3d2d89=a1216_0x7846;'use strict';const fs=require('fs'),util=require('util'),_=require(a1216_0x3d2d89(0x227)),sh=require(a1216_0x3d2d89(0x2a4)),odbc=require('odbc'),rs=require('randomstring'),moment=require(a1216_0x3d2d89(0x220)),Mustache=require(a1216_0x3d2d89(0x293)),rp=require('request-promise-native'),logger=require(a1216_0x3d2d89(0xe4))(a1216_0x3d2d89(0x1f7)),config=require(a1216_0x3d2d89(0x230)),scripts=require(a1216_0x3d2d89(0x1bf)),FILES_PATH=a1216_0x3d2d89(0x282),recursiveMapAttributes=[a1216_0x3d2d89(0x1a5),'rawBody'],verticesWithRetry=[a1216_0x3d2d89(0x217),a1216_0x3d2d89(0x1f4),'getsecretdigits'],AGIVertices=function(_0xba6098,_0x2ed7a4,_0xd6bb5b){const _0x3e7991=a1216_0x3d2d89;this[_0x3e7991(0x28a)]=_0xba6098,this[_0x3e7991(0x207)]=_0x2ed7a4,this[_0x3e7991(0x27d)]=_0xd6bb5b;};AGIVertices[a1216_0x3d2d89(0x13d)]['getVariable']=function(_0x1a7b73,_0x153865){const _0x2713f1=a1216_0x3d2d89;this[_0x2713f1(0x207)][_0x2713f1(0x1cb)](_0x1a7b73)['then'](function(_0x492adb){const _0x3de11a=_0x2713f1;_0x153865(null,_0x492adb?_0x492adb[_0x3de11a(0x238)]:![]);})[_0x2713f1(0x25a)](function(_0x4863ce){_0x153865(_0x4863ce);});},AGIVertices['prototype'][a1216_0x3d2d89(0x152)]=function(_0x4feb41,_0x4bd3fc){const _0x359c12=a1216_0x3d2d89;this[_0x359c12(0x207)][_0x359c12(0x1d2)](_0x4feb41)[_0x359c12(0x229)](function(_0xca1678){const _0x4e5e3e=_0x359c12;_0x4bd3fc(null,_0xca1678?_0xca1678[_0x4e5e3e(0x238)]:![]);})[_0x359c12(0x25a)](function(_0x521835){_0x4bd3fc(_0x521835);});},AGIVertices['prototype'][a1216_0x3d2d89(0x132)]=function(_0x189723,_0x26ea39){const _0x1befc9=a1216_0x3d2d89;this['rpc'][_0x1befc9(0x23b)](_0x189723)['then'](function(_0x1d8a0a){const _0x2ac97f=_0x1befc9;_0x26ea39(null,_0x1d8a0a?_0x1d8a0a[_0x2ac97f(0x238)]:![]);})[_0x1befc9(0x25a)](function(_0x3ac42b){_0x26ea39(_0x3ac42b);});},AGIVertices['prototype'][a1216_0x3d2d89(0x103)]=function(_0x2b9a5e,_0x30d698){const _0x5c0966=a1216_0x3d2d89;this[_0x5c0966(0x207)]['getSquareOdbcById'](_0x2b9a5e)[_0x5c0966(0x229)](function(_0x2e1061){_0x30d698(null,_0x2e1061?_0x2e1061['dsn']:![]);})[_0x5c0966(0x25a)](function(_0x25d583){_0x30d698(_0x25d583);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x19e)]=function(_0x252711,_0x5cd0cd){const _0x3f4790=a1216_0x3d2d89;this[_0x3f4790(0x207)][_0x3f4790(0x113)](_0x252711)[_0x3f4790(0x229)](function(_0xd194e3){_0x5cd0cd(null,_0xd194e3?_0xd194e3['name']:![]);})[_0x3f4790(0x25a)](function(_0x5a34da){_0x5cd0cd(_0x5a34da);});},AGIVertices[a1216_0x3d2d89(0x13d)]['getTrunk']=function(_0x478e68,_0x18434c){const _0x7e5c69=a1216_0x3d2d89;this[_0x7e5c69(0x207)][_0x7e5c69(0x270)](_0x478e68)[_0x7e5c69(0x229)](function(_0x2e58cf){_0x18434c(null,_0x2e58cf?_0x2e58cf['name']:![]);})[_0x7e5c69(0x25a)](function(_0x47eb14){_0x18434c(_0x47eb14);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1d1)]=function(_0x52b716,_0x50f05a){const _0x1a00d9=a1216_0x3d2d89,_0x292f72=this;this[_0x1a00d9(0x207)][_0x1a00d9(0x15f)](_0x52b716)[_0x1a00d9(0x229)](function(_0x4706d5){const _0x4836ab=_0x1a00d9;_0x50f05a(null,_0x4706d5?_0x292f72[_0x4836ab(0x12a)](_0x4706d5[_0x4836ab(0x1bd)]):![]);})[_0x1a00d9(0x25a)](function(_0x1434a6){_0x50f05a(_0x1434a6);});},AGIVertices['prototype'][a1216_0x3d2d89(0x1c6)]=function(_0x58e60a,_0x5d0b20){const _0x471fad=a1216_0x3d2d89;this['rpc'][_0x471fad(0x2a7)](_0x58e60a)[_0x471fad(0x229)](function(_0x5435f4){_0x5d0b20(null,_0x5435f4?_0x5435f4:![]);})[_0x471fad(0x25a)](function(_0x6212e){_0x5d0b20(_0x6212e);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1a4)]=function(_0xb62eac,_0x3dcf27,_0x7c06b6){const _0x7e5f13=a1216_0x3d2d89;this[_0x7e5f13(0x27d)]['sendMailMessage'](_0xb62eac,_0x3dcf27)[_0x7e5f13(0x229)](function(){_0x7c06b6(null);})[_0x7e5f13(0x25a)](function(_0x15716b){_0x7c06b6(_0x15716b);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x153)]=function(_0x4526d6,_0x6a91b2){const _0x1bd85e=a1216_0x3d2d89;this[_0x1bd85e(0x207)][_0x1bd85e(0x14d)](_0x4526d6)[_0x1bd85e(0x229)](function(_0x38728b){const _0x246cad=_0x1bd85e;_0x38728b?_0x38728b[_0x246cad(0x1ce)]?_0x6a91b2(null,[_0x38728b['interval']]):_0x6a91b2(null,_['map'](_0x38728b[_0x246cad(0x279)],_0x246cad(0x28e))):_0x6a91b2(null,![]);})['catch'](function(_0x140da3){_0x6a91b2(_0x140da3);});},AGIVertices['prototype'][a1216_0x3d2d89(0x12a)]=function(_0x53e1e6){const _0x43fb83=a1216_0x3d2d89;return util[_0x43fb83(0x252)](_0x43fb83(0x15d),FILES_PATH,_0x53e1e6);},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x137)]=function(_0x1f64db,_0x40744b,_0x49ae23){const _0x58c5ee=a1216_0x3d2d89;odbc[_0x58c5ee(0x254)](_0x1f64db,function(_0x3858f7){const _0xeff58e=_0x58c5ee;_0x3858f7?(logger['error']('Error\x20getting\x20ODBC\x20connection\x20%s',_0x3858f7),_0x49ae23(_0x3858f7)):(logger[_0xeff58e(0x115)]('ODBC\x20connection\x20successfully'),odbc['query'](_0x40744b,function(_0x3bdb34,_0x3786cd){const _0x5af6da=_0xeff58e;_0x3bdb34?(logger['info'](_0x5af6da(0x124),_0x40744b),_0x49ae23(_0x3bdb34)):(logger[_0x5af6da(0x115)](_0x5af6da(0x26f),_0x40744b),odbc[_0x5af6da(0x10f)](function(_0x4407b9){const _0x23785e=_0x5af6da;_0x4407b9&&logger['error'](_0x23785e(0x12e),_0x4407b9),_0x49ae23(null,_0x3786cd);}));}));});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x10a)]=function(_0x54c243,_0x40a10d){const _0x36d150=a1216_0x3d2d89;this['rpc'][_0x36d150(0x143)](_0x54c243)['then'](function(_0x138f2e){_0x40a10d(null,_0x138f2e?_0x138f2e:![]);})[_0x36d150(0x25a)](function(_0x2cdafe){_0x40a10d(_0x2cdafe);});},AGIVertices['prototype'][a1216_0x3d2d89(0x140)]=function(_0x59a08e,_0x66e5c3){const _0x53b22e=a1216_0x3d2d89;this[_0x53b22e(0x207)][_0x53b22e(0x140)](_0x59a08e)[_0x53b22e(0x229)](function(_0x3ea585){_0x66e5c3(null,_0x3ea585);})[_0x53b22e(0x25a)](function(_0x5c79e3){_0x66e5c3(_0x5c79e3);});},AGIVertices[a1216_0x3d2d89(0x13d)]['createSquareDetailsReport']=function(_0x238d66,_0x10d902,_0x6b96a1){const _0x270aec=a1216_0x3d2d89;this['rpc'][_0x270aec(0x2a3)]({'uniqueid':this[_0x270aec(0x28a)][_0x270aec(0x212)],'node':_0x238d66[_0x270aec(0x120)],'application':_0x238d66[_0x270aec(0xf4)],'data':_0x10d902||null,'project_name':this[_0x270aec(0x28a)]['arg_1'],'callerid':this['channel'][_0x270aec(0x1cf)]})['then'](function(_0x501de4){_0x6b96a1&&_0x6b96a1(null,_0x501de4);})[_0x270aec(0x25a)](function(_0x18e14c){_0x6b96a1&&_0x6b96a1(_0x18e14c);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x19f)]=function(_0x18837a,_0x23beb9,_0x1647b4,_0x2fcc4a){const _0x33195c=a1216_0x3d2d89;this[_0x33195c(0x207)]['createSquareRecording']({'uniqueid':this[_0x33195c(0x28a)][_0x33195c(0x212)],'callerid':this[_0x33195c(0x28a)]['callerid'],'calleridname':this[_0x33195c(0x28a)]['calleridname'],'context':this[_0x33195c(0x28a)][_0x33195c(0x12c)],'extension':this[_0x33195c(0x28a)]['extension'],'priority':this[_0x33195c(0x28a)][_0x33195c(0x28f)],'accountcode':this[_0x33195c(0x28a)][_0x33195c(0x265)],'dnid':this[_0x33195c(0x28a)]['dnid'],'projectName':this[_0x33195c(0x28a)]['arg_1'],'saveName':_0x23beb9,'filename':_0x18837a[_0x33195c(0x1db)]||_0x23beb9,'savePath':_0x1647b4})[_0x33195c(0x229)](function(_0x2bb90c){_0x2fcc4a(null,_0x2bb90c);})[_0x33195c(0x25a)](function(_0x5e08be){_0x2fcc4a(_0x5e08be);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0xf8)]=function(_0x380888,_0x1811e1,_0x5c9b45,_0x54fb64,_0x8315f0){const _0x7815e1=a1216_0x3d2d89;this[_0x7815e1(0x207)][_0x7815e1(0xf8)]({'uniqueid':this[_0x7815e1(0x28a)][_0x7815e1(0x212)],'body':_0x380888,'direction':_0x1811e1,'providerName':_0x5c9b45,'providerResponse':_0x54fb64})[_0x7815e1(0x229)](function(_0x1d5169){_0x8315f0&&_0x8315f0(null,_0x1d5169);})[_0x7815e1(0x25a)](function(_0x4d58f5){_0x8315f0&&_0x8315f0(_0x4d58f5);});},AGIVertices['prototype'][a1216_0x3d2d89(0x155)]=function(_0x25a2d7,_0x460bf0){const _0x5d785f=a1216_0x3d2d89;this['rpc']['createCmContact']({'firstName':_[_0x5d785f(0x1b3)](_0x25a2d7[_0x5d785f(0x238)])||_[_0x5d785f(0x2a6)](_0x25a2d7[_0x5d785f(0x238)])?_0x5d785f(0x23f)+Math[_0x5d785f(0x100)]():_0x25a2d7[_0x5d785f(0x238)],'lastName':_[_0x5d785f(0x1b3)](_0x25a2d7['lastName'])||_[_0x5d785f(0x2a6)](_0x25a2d7[_0x5d785f(0x221)])?null:_0x25a2d7[_0x5d785f(0x221)],'phone':_0x25a2d7['phone'],'ListId':_0x25a2d7[_0x5d785f(0x292)],'scheduledat':_0x25a2d7[_0x5d785f(0x2a1)],'callbackUniqueid':this[_0x5d785f(0x28a)][_0x5d785f(0x212)],'tags':_0x5d785f(0x20b),'description':_0x5d785f(0x17b)+_0x25a2d7[_0x5d785f(0x2a1)][_0x5d785f(0x17e)](),'priority':_0x25a2d7[_0x5d785f(0x128)]})['then'](function(_0x292b8e){_0x460bf0(null,_0x292b8e);})[_0x5d785f(0x25a)](function(_0x4885f6){_0x460bf0(_0x4885f6);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1c7)]=function(_0x4638b4,_0x165566){const _0x243e61=a1216_0x3d2d89;this[_0x243e61(0x207)][_0x243e61(0x1b1)](_0x4638b4)[_0x243e61(0x229)](function(_0x509c5a){_0x165566(null,_0x509c5a?_0x509c5a['name']:![]);})[_0x243e61(0x25a)](function(_0x39bedb){_0x165566(_0x39bedb);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x202)]=function(_0xd8ead4,_0x59d790,_0x3f5936){const _0x3094e7=a1216_0x3d2d89,_0x46e9d2={'role':'agent'};_0x46e9d2[_0xd8ead4]=this['channel']['callerid'],this[_0x3094e7(0x207)][_0x3094e7(0x202)](_0x46e9d2,_0x59d790,this['channel'][_0x3094e7(0x212)])[_0x3094e7(0x229)](function(_0x6d4874){const _0x52f3aa=_0x3094e7;_0x3f5936(null,_[_0x52f3aa(0x2a6)](_0x6d4874)?![]:!![]);})['catch'](function(_0x1586fc){const _0x42934b=_0x3094e7;logger[_0x42934b(0x276)](_0x1586fc),_0x3f5936(null,![]);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x274)]=function(_0x5c5811,_0xd08243){const _0x7e0259=a1216_0x3d2d89,_0x598d4d={'role':'agent'};_0x598d4d[_0x5c5811]=this['channel'][_0x7e0259(0x1cf)],this[_0x7e0259(0x207)][_0x7e0259(0x274)](_0x598d4d)[_0x7e0259(0x229)](function(_0x587fd1){const _0x1d6089=_0x7e0259;_0xd08243(null,_[_0x1d6089(0x2a6)](_0x587fd1)?![]:!![]);})[_0x7e0259(0x25a)](function(_0x8fd879){const _0x8c4318=_0x7e0259;logger[_0x8c4318(0x276)](_0x8fd879),_0xd08243(null,![]);});},AGIVertices['prototype'][a1216_0x3d2d89(0xf5)]=function(_0x5bac7f,_0x4f4a01){const _0x25511c=a1216_0x3d2d89,_0x4264b1={'role':_0x25511c(0x1d7)};_0x4264b1[_0x5bac7f]=this['channel'][_0x25511c(0x1cf)],this[_0x25511c(0x207)][_0x25511c(0xf5)](_0x4264b1)[_0x25511c(0x229)](function(_0xfb9f47){_0x4f4a01(null,_['isNil'](_0xfb9f47)?![]:!![]);})['catch'](function(_0x555f8e){logger['error'](_0x555f8e),_0x4f4a01(null,![]);});},AGIVertices['prototype'][a1216_0x3d2d89(0x150)]=function(_0x24605e,_0x52a02f){const _0x4c513f=a1216_0x3d2d89,_0x2b648c={'role':_0x4c513f(0x1d7)};_0x2b648c[_0x24605e]=this[_0x4c513f(0x28a)][_0x4c513f(0x1cf)];const _0x453f09=_0x24605e!='internal'?util['format']('%s/%s@from-sip/n',_0x4c513f(0x18c),this[_0x4c513f(0x28a)][_0x4c513f(0x1cf)]):undefined;this[_0x4c513f(0x207)][_0x4c513f(0x150)](_0x2b648c,_0x453f09)[_0x4c513f(0x229)](function(_0x3afdee){const _0x4df3df=_0x4c513f;_0x52a02f(null,_[_0x4df3df(0x2a6)](_0x3afdee)?![]:!![]);})[_0x4c513f(0x25a)](function(_0x50897b){logger['error'](_0x50897b),_0x52a02f(null,![]);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1be)]=function(_0x1b8d4f,_0x203b7a){sh['exec'](_['trim'](_0x1b8d4f),function(_0x12a4ad,_0x122db3){const _0x40c3bd=a1216_0x7846,_0x3ae1e0=_0x122db3[_0x40c3bd(0xff)](/(\r\n|\n|\r)/gm,'');_0x203b7a(null,_0x3ae1e0);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x228)]=function(_0x45be89,_0x5b3547){const _0x453590=a1216_0x3d2d89;scripts[_0x453590(0x228)](_0x45be89[_0x453590(0x13b)],_0x45be89[_0x453590(0x11f)]||_0x453590(0xe7),_0x45be89['text'],_0x45be89['languageCode']||_0x453590(0xf1),_0x45be89[_0x453590(0x264)]||_0x453590(0x185),_0x45be89[_0x453590(0x262)]||_0x453590(0x16c))[_0x453590(0x229)](function(_0x36830c){_0x5b3547(null,_0x36830c);})['catch'](function(_0x23e5b3){_0x5b3547(_0x23e5b3);});},AGIVertices[a1216_0x3d2d89(0x13d)]['googleTTS']=function(_0x3fa36b,_0x3477a8){const _0x5a02b9=a1216_0x3d2d89;scripts[_0x5a02b9(0x235)](_0x3fa36b['text'],_0x3fa36b[_0x5a02b9(0x133)]||'en',0x1)[_0x5a02b9(0x229)](function(_0xc9bb98){_0x3477a8(null,_0xc9bb98);})[_0x5a02b9(0x25a)](function(_0x5b7cca){_0x3477a8(_0x5b7cca);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1a7)]=function(_0x432087,_0x50ead2){const _0x422d55=a1216_0x3d2d89,_0x4e2965={'uri':_0x432087[_0x422d55(0x13a)],'method':_0x432087[_0x422d55(0x111)],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x432087[_0x422d55(0xe6)])===_0x422d55(0x1fe)&&parseInt(_0x432087[_0x422d55(0xe6)])>=0x1?parseInt(_0x432087[_0x422d55(0xe6)])*0x3e8:0x5*0x3e8};if(_['includes']([_0x422d55(0x102),_0x422d55(0x19a)],_0x4e2965[_0x422d55(0x111)]['toUpperCase']()))try{_0x4e2965[_0x422d55(0x21d)]=_0x432087[_0x422d55(0x1f2)]?JSON['parse'](_0x432087[_0x422d55(0x1f2)]):{};}catch(_0x14e222){logger['error'](_0x422d55(0x271),_0x14e222);}try{_0x4e2965['headers']=_0x432087[_0x422d55(0x1a5)]?JSON[_0x422d55(0x284)](_0x432087[_0x422d55(0x1a5)]):{};}catch(_0xd630d3){logger[_0x422d55(0x276)](_0x422d55(0x210),_0xd630d3);}if(_0x432087[_0x422d55(0x1cd)])try{const _0x29d085=require(_0x432087[_0x422d55(0x1cd)])[_0x422d55(0x291)](this,_0x4e2965);_0x4e2965[_0x422d55(0x129)]=Mustache[_0x422d55(0x1c2)](_0x432087['url'],_0x29d085,{},['$$','$$']),_0x4e2965[_0x422d55(0xea)]&&(_0x4e2965['headers']=JSON[_0x422d55(0x284)](Mustache[_0x422d55(0x1c2)](JSON[_0x422d55(0x1e9)](_0x4e2965['headers']),_0x29d085,{},['$$','$$']))),_0x4e2965['body']&&(_0x4e2965[_0x422d55(0x21d)]=JSON[_0x422d55(0x284)](Mustache[_0x422d55(0x1c2)](JSON['stringify'](_0x4e2965[_0x422d55(0x21d)]),_0x29d085,{},['$$','$$'])));}catch(_0xae1ceb){logger[_0x422d55(0x276)]('An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function',_0xae1ceb);}rp(_0x4e2965)[_0x422d55(0x229)](function(_0x2cbae8){const _0x228d6a=_0x422d55,_0x2c6cef={'statusCode':_0x2cbae8[_0x228d6a(0x277)]||0xc8,'statusMessage':_0x2cbae8[_0x228d6a(0xfd)]||'OK','headers':_0x2cbae8['headers']||{},'body':_0x2cbae8['body']||{}};_0x50ead2(null,_0x2c6cef);})[_0x422d55(0x25a)](function(_0xf33fde){const _0x224ca5=_0x422d55,_0x428c83={'statusCode':_0xf33fde['statusCode']||0x1f4,'statusMessage':_0xf33fde[_0x224ca5(0x10c)]||_0x224ca5(0x1ff),'headers':_0xf33fde[_0x224ca5(0x20c)][_0x224ca5(0xea)]||{},'body':_0xf33fde[_0x224ca5(0x20c)][_0x224ca5(0x21d)]||{}};_0x50ead2(null,_0x428c83);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x22a)]=function(_0xd534d3,_0x4f825d){const _0x1224ac=a1216_0x3d2d89;scripts['googleDialogflow'](this[_0x1224ac(0x28a)][_0x1224ac(0x212)],_0xd534d3['key'],_0xd534d3[_0x1224ac(0xe7)],_0xd534d3[_0x1224ac(0x236)]||'en')['then'](function(_0x51f806){_0x4f825d(null,_0x51f806);})[_0x1224ac(0x25a)](function(_0x370e32){_0x4f825d(_0x370e32);});},AGIVertices[a1216_0x3d2d89(0x13d)]['googleDialogflowV2']=function(_0x20765c,_0x31d262){const _0x1e0ebc=a1216_0x3d2d89;scripts['googleDialogflowV2'](this[_0x1e0ebc(0x28a)][_0x1e0ebc(0x212)],_0x20765c[_0x1e0ebc(0x1e3)],_0x20765c[_0x1e0ebc(0x251)],_0x20765c[_0x1e0ebc(0x1e7)],_0x20765c['text'],_0x20765c['dialogflowV2_language']||'en')['then'](function(_0x4528f5){_0x31d262(null,_0x4528f5);})['catch'](function(_0x526b67){_0x31d262(_0x526b67);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1a9)]=function(_0xa01388,_0x584cc5){const _0xa2ee9=a1216_0x3d2d89;scripts[_0xa2ee9(0x1a9)](this[_0xa2ee9(0x28a)],_0xa01388)[_0xa2ee9(0x229)](function(_0x1412c6){_0x584cc5(null,_0x1412c6);})[_0xa2ee9(0x25a)](function(_0x3d2234){_0x584cc5(_0x3d2234);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1fd)]=function(_0x57b6ab,_0x58a76b){const _0x423256=a1216_0x3d2d89;scripts[_0x423256(0x1fd)](_0x57b6ab[_0x423256(0x297)],_0x57b6ab['text'],_0x57b6ab[_0x423256(0x1c4)]||'en-US',_0x57b6ab[_0x423256(0x255)])['then'](function(_0x4e7d8b){_0x58a76b(null,_0x4e7d8b);})[_0x423256(0x25a)](function(_0x5d1675){_0x58a76b(_0x5d1675);});},AGIVertices[a1216_0x3d2d89(0x13d)]['ispeechASR']=function(_0x4aa253,_0xcf44ca,_0x547e30){const _0x2b6fc7=a1216_0x3d2d89;scripts['ispeechASR'](_0xcf44ca,_0x4aa253[_0x2b6fc7(0x297)],_0x4aa253['ispeech_asr_language']||'en-US',this[_0x2b6fc7(0x232)](_0x4aa253[_0x2b6fc7(0x1bc)])?_0x4aa253[_0x2b6fc7(0x1bc)]:undefined)['then'](function(_0x1c515c){_0x547e30(null,_0x1c515c);})[_0x2b6fc7(0x25a)](function(_0x22f5d1){_0x547e30(_0x22f5d1);});},AGIVertices['prototype'][a1216_0x3d2d89(0x1aa)]=function(_0x1e3574,_0x59f6f6){const _0x24d41d=a1216_0x3d2d89;scripts[_0x24d41d(0x1aa)](_0x1e3574[_0x24d41d(0x182)],_0x1e3574['aws_secret_access_key'],_0x1e3574[_0x24d41d(0x184)],_0x1e3574[_0x24d41d(0x249)]||_0x24d41d(0x14f),_0x1e3574[_0x24d41d(0xe7)],_0x1e3574[_0x24d41d(0x168)]||'text')['then'](function(_0x49ff15){_0x59f6f6(null,_0x49ff15);})['catch'](function(_0x29e93e){_0x59f6f6(_0x29e93e);});},AGIVertices['prototype']['awsLex']=function(_0x971c6e,_0x5ad18f){const _0x4e3db7=a1216_0x3d2d89;scripts[_0x4e3db7(0x108)](this[_0x4e3db7(0x28a)][_0x4e3db7(0x212)],_0x971c6e[_0x4e3db7(0x182)],_0x971c6e[_0x4e3db7(0x1ea)],_0x971c6e[_0x4e3db7(0x233)],_0x971c6e[_0x4e3db7(0xe7)],_0x971c6e[_0x4e3db7(0x218)])[_0x4e3db7(0x229)](function(_0x52fe14){_0x5ad18f(null,_0x52fe14);})[_0x4e3db7(0x25a)](function(_0x1a40a5){_0x5ad18f(_0x1a40a5);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x201)]=function(_0xa0aaa4,_0x4319ff,_0x594736){const _0x5aba46=a1216_0x3d2d89;scripts['googleASR'](_0x4319ff,_0xa0aaa4[_0x5aba46(0x297)],_0xa0aaa4[_0x5aba46(0x183)]||_0x5aba46(0xf1))['then'](function(_0x542d8c){_0x594736(null,_0x542d8c);})['catch'](function(_0x4833d1){_0x594736(_0x4833d1);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1ef)]=function(_0x43cd8d,_0x15ceff,_0x3bbdcb){const _0x52aeff=a1216_0x3d2d89;scripts[_0x52aeff(0x1ef)](_0x15ceff,_0x43cd8d[_0x52aeff(0x200)],_0x43cd8d[_0x52aeff(0x275)],_0x43cd8d['uri'])['then'](function(_0x37965a){_0x3bbdcb(null,_0x37965a);})[_0x52aeff(0x25a)](function(_0x5c29ff){_0x3bbdcb(_0x5c29ff);});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x29a)]=function(_0x11e368){const _0x373162=a1216_0x3d2d89,_0x5f544a=_[_0x373162(0x219)](verticesWithRetry,_0x11e368[_0x373162(0xf4)])?_0x11e368:_[_0x373162(0x231)](_0x11e368);for(const _0x103cc2 in _0x5f544a){typeof _0x5f544a[_0x103cc2]!==_0x373162(0x246)&&(_0x5f544a[_0x103cc2]&&_[_0x373162(0x267)](_0x5f544a[_0x103cc2])&&(_[_0x373162(0x219)](recursiveMapAttributes,_0x103cc2)?_0x5f544a[_0x103cc2]=this[_0x373162(0x1e8)](_0x5f544a[_0x103cc2]):_0x5f544a[_0x103cc2]=this['replaceAllVariables'](_0x5f544a[_0x103cc2])));}return _0x5f544a;},AGIVertices['prototype']['recursiveNodeIndex']=function(_0x4ab328){const _0x3c1c71=a1216_0x3d2d89;for(const _0x294add in _0x4ab328){if(typeof _0x4ab328[_0x294add]!=='undefined'){if(_[_0x3c1c71(0x19b)](_0x4ab328[_0x294add]))this[_0x3c1c71(0x27e)](_0x4ab328[_0x294add]);else{if(_[_0x3c1c71(0x11a)](_0x4ab328[_0x294add]))for(let _0x34e8a8=0x0;_0x34e8a8<_0x4ab328[_0x294add]['length'];_0x34e8a8++){this[_0x3c1c71(0x27e)](_0x4ab328[_0x294add][_0x34e8a8]);}else _[_0x3c1c71(0x267)](_0x4ab328[_0x294add])&&(_0x4ab328[_0x294add]=this['replaceAllVariables'](_0x4ab328[_0x294add]));}}}},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x13c)]=function(_0x4d1d7f,_0x56656b){const _0x41e985=a1216_0x3d2d89;for(const _0x3f6946 in _0x4d1d7f){if(typeof _0x4d1d7f[_0x3f6946]!==_0x41e985(0x246)){if(_[_0x41e985(0x19b)](_0x4d1d7f[_0x3f6946]))!_[_0x41e985(0x1b3)](_0x4d1d7f[_0x3f6946])&&this[_0x41e985(0x13c)](_0x4d1d7f[_0x3f6946],util[_0x41e985(0x252)](_0x41e985(0x213),_0x56656b,_0x3f6946));else{if(_[_0x41e985(0x11a)](_0x4d1d7f[_0x3f6946]))for(let _0x3e93c3=0x0;_0x3e93c3<_0x4d1d7f[_0x3f6946][_0x41e985(0x106)];_0x3e93c3++){this['saveRestApiResult'](_0x4d1d7f[_0x3f6946][_0x3e93c3],util[_0x41e985(0x252)](_0x41e985(0x213),_0x56656b,_0x3f6946+'['+_0x3e93c3+']'));}else!_['isNil'](_0x4d1d7f[_0x3f6946])&&this[_0x41e985(0x28a)][_0x41e985(0x24b)](util[_0x41e985(0x252)](_0x41e985(0x213),_0x56656b,_0x3f6946),_0x4d1d7f[_0x3f6946]);}}}},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1e8)]=function(_0x2441cc){const _0x185922=a1216_0x3d2d89;try{const _0x49bf79=JSON[_0x185922(0x284)](_0x2441cc);return this[_0x185922(0x27e)](_0x49bf79),JSON[_0x185922(0x1e9)](_0x49bf79);}catch(_0x3f0c24){return this['replaceAllVariables'](_0x2441cc);}},AGIVertices['prototype']['replaceAllVariables']=function(_0x741c8b){const _0x592e36=a1216_0x3d2d89,_0x112152=_0x741c8b[_0x592e36(0x224)]('{');for(let _0x657e39=0x1;_0x657e39<_0x112152[_0x592e36(0x106)];_0x657e39+=0x1){const _0x483f1c=_0x112152[_0x657e39][_0x592e36(0x224)]('}');_0x483f1c[_0x592e36(0x106)]>0x1&&(_0x741c8b=_0x741c8b[_0x592e36(0x214)]('{'+_0x483f1c[0x0]+'}',this[_0x592e36(0x28a)]['getVariable'](_0x483f1c[0x0])['extra']||_0x483f1c[0x0]));}if(_0x112152['length']===0x1)return _0x741c8b['toString']();return this[_0x592e36(0x205)](_0x741c8b);},AGIVertices['prototype'][a1216_0x3d2d89(0x290)]=function(_0x334ddd,_0x2bec22){const _0x246f1a=a1216_0x3d2d89,_0x3acc3d=this['channel']['getVariable'](_0x334ddd);if(_0x3acc3d['result']===-0x1)return _0x3acc3d;return logger['info'](util[_0x246f1a(0x252)](_0x246f1a(0x247),_0x2bec22,_0x3acc3d[_0x246f1a(0xf0)])),this[_0x246f1a(0x28a)][_0x246f1a(0x24b)](_0x2bec22,_0x3acc3d[_0x246f1a(0xf0)]);},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x232)]=function(_0x201cd4){return _0x201cd4&&_0x201cd4!=='0'&&_0x201cd4!=='-1'&&_0x201cd4!=='';},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1a0)]=function(_0x189be5){const _0x2e3aae=a1216_0x3d2d89;return this[_0x2e3aae(0x2a3)][_0x2e3aae(0x291)](this,_0x189be5,'-'),_0x189be5[_0x2e3aae(0x131)]=_0x189be5['maxRetry'],{'code':0xc8,'result':'-'};},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1ed)]=function(_0x334cb8){const _0x21f658=a1216_0x3d2d89;logger['info'](util[_0x21f658(0x252)](_0x21f658(0x1e1),_0x334cb8[_0x21f658(0x120)]));if(!this[_0x21f658(0x232)](_0x334cb8['text']))return this[_0x21f658(0x28a)][_0x21f658(0x165)](_0x21f658(0x1a2));let _0x18b193='\x22'+_0x334cb8[_0x21f658(0xe7)]+'\x22';this['isConfigured'](_0x334cb8[_0x21f658(0x20c)])&&(_0x18b193+=','+_0x334cb8[_0x21f658(0x20c)]);const _0x3ddc25=this[_0x21f658(0x28a)][_0x21f658(0x253)](_0x21f658(0x12f),_0x18b193);if(_0x3ddc25[_0x21f658(0x16f)]===-0x1)return _0x3ddc25;return this[_0x21f658(0x28a)]['noop'](util[_0x21f658(0x252)](_0x21f658(0x29c),_0x18b193));},AGIVertices['prototype'][a1216_0x3d2d89(0x10b)]=function(_0x198117){const _0x1ca6a1=a1216_0x3d2d89;logger[_0x1ca6a1(0x115)](util[_0x1ca6a1(0x252)](_0x1ca6a1(0x1b7),_0x198117[_0x1ca6a1(0x120)]));if(!this[_0x1ca6a1(0x232)](_0x198117[_0x1ca6a1(0xeb)]))return this[_0x1ca6a1(0x28a)][_0x1ca6a1(0x165)](_0x1ca6a1(0x170));let _0x46f57a=_0x198117[_0x1ca6a1(0xeb)];this['isConfigured'](_0x198117[_0x1ca6a1(0x20c)])&&(_0x46f57a+=','+_0x198117[_0x1ca6a1(0x20c)]);const _0x10efcc=this[_0x1ca6a1(0x28a)][_0x1ca6a1(0x253)](_0x1ca6a1(0x18b),_0x46f57a);if(_0x10efcc[_0x1ca6a1(0x16f)]===-0x1)return _0x10efcc;const _0x6f3125=this[_0x1ca6a1(0x290)](_0x1ca6a1(0x177),'MRCP_RECOG_CONFIDENCE');if(_0x6f3125['result']===-0x1)return _0x6f3125;const _0x3c8e47=this[_0x1ca6a1(0x290)](_0x1ca6a1(0x211),_0x1ca6a1(0x27a));if(_0x3c8e47[_0x1ca6a1(0x16f)]===-0x1)return _0x3c8e47;const _0x2ed569=this['getAndSetVariable'](_0x1ca6a1(0x23c),'MRCP_RECOG_INSTANCE');if(_0x2ed569[_0x1ca6a1(0x16f)]===-0x1)return _0x2ed569;return this[_0x1ca6a1(0x28a)][_0x1ca6a1(0x165)](util[_0x1ca6a1(0x252)](_0x1ca6a1(0x158),_0x46f57a));},AGIVertices['prototype'][a1216_0x3d2d89(0x1f7)]=function(_0x3c1eb8){const _0x48be24=a1216_0x3d2d89;return logger[_0x48be24(0x115)](util[_0x48be24(0x252)]('Enter\x20in\x20AGI\x20(%s)\x20block',_0x3c1eb8[_0x48be24(0x120)])),this[_0x48be24(0x28a)][_0x48be24(0x1f7)]([_0x3c1eb8[_0x48be24(0x127)],_0x3c1eb8['args']]);},AGIVertices['prototype'][a1216_0x3d2d89(0x1ae)]=function(_0x27344b){const _0x327f93=a1216_0x3d2d89;logger[_0x327f93(0x115)](util[_0x327f93(0x252)](_0x327f93(0x1c0),_0x27344b[_0x327f93(0x120)]));if(this[_0x327f93(0x232)](_0x27344b[_0x327f93(0xe6)])){logger[_0x327f93(0x115)](util[_0x327f93(0x252)](_0x327f93(0x24c),_0x27344b[_0x327f93(0xe6)]));const _0x33af06=this[_0x327f93(0x28a)][_0x327f93(0x1d8)](_0x27344b[_0x327f93(0xe6)]);if(_0x33af06['result']===-0x1)return _0x33af06;}return this[_0x327f93(0x28a)][_0x327f93(0x1ae)]();},AGIVertices[a1216_0x3d2d89(0x13d)]['callback']=function(_0xf58c36){const _0x139d94=a1216_0x3d2d89;logger[_0x139d94(0x115)](util['format'](_0x139d94(0x25b),_0xf58c36[_0x139d94(0x120)]));if(!this['isConfigured'](_0xf58c36[_0x139d94(0x292)]))return this[_0x139d94(0x28a)]['error'](_0xf58c36,_0x139d94(0x1c3));return _0xf58c36[_0x139d94(0x2a1)]=moment(),this[_0x139d94(0x232)](_0xf58c36['delay'])&&(_0xf58c36[_0x139d94(0x2a1)]=moment()[_0x139d94(0x1a3)](_0xf58c36[_0x139d94(0x145)],_0x139d94(0x203))),!this[_0x139d94(0x232)](_0xf58c36['callback_priority'])&&(_0xf58c36[_0x139d94(0x128)]=0x2),this['createCmContact'][_0x139d94(0x291)](this,_0xf58c36),this[_0x139d94(0x28a)][_0x139d94(0x165)](util[_0x139d94(0x252)](_0x139d94(0x112),_0xf58c36[_0x139d94(0x26a)],_0xf58c36[_0x139d94(0x292)],_0xf58c36[_0x139d94(0x2a1)]));},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x161)]=function(_0x4a7a64){const _0x274e4f=a1216_0x3d2d89;logger[_0x274e4f(0x115)](util[_0x274e4f(0x252)](_0x274e4f(0x21f),_0x4a7a64[_0x274e4f(0x120)]));const _0x140fda=this[_0x274e4f(0x28a)][_0x274e4f(0x253)](_0x4a7a64[_0x274e4f(0xed)],_0x4a7a64[_0x274e4f(0x20c)]);if(_0x140fda[_0x274e4f(0x16f)]===-0x1)return _0x140fda;return this['channel'][_0x274e4f(0x165)](util[_0x274e4f(0x252)](_0x274e4f(0x1ec),_0x4a7a64['application'],_0x4a7a64[_0x274e4f(0x20c)]));},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x198)]=function(_0x4d8319){const _0xdd8921=a1216_0x3d2d89;logger['info'](util[_0xdd8921(0x252)](_0xdd8921(0x187),_0x4d8319['label']));if(!this[_0xdd8921(0x232)](_0x4d8319[_0xdd8921(0xe7)]))return this[_0xdd8921(0x28a)][_0xdd8921(0x165)](_0xdd8921(0x1a2));let _0x45dc4a='\x22'+_0x4d8319[_0xdd8921(0xe7)]+'\x22';this[_0xdd8921(0x232)](_0x4d8319[_0xdd8921(0x20c)])&&(_0x45dc4a+=','+_0x4d8319[_0xdd8921(0x20c)]);const _0x5b4319=this['channel']['exec'](_0xdd8921(0x12f),_0x45dc4a);if(_0x5b4319['result']===-0x1)return _0x5b4319;return this[_0xdd8921(0x28a)][_0xdd8921(0x165)](util[_0xdd8921(0x252)](_0xdd8921(0x29c),_0x45dc4a));},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x260)]=function(_0x4c0008){const _0x5c0c62=a1216_0x3d2d89;logger['info'](util['format'](_0x5c0c62(0x10d),_0x4c0008[_0x5c0c62(0x120)]));if(!this['isConfigured'](_0x4c0008[_0x5c0c62(0xe7)]))return this[_0x5c0c62(0x28a)][_0x5c0c62(0x165)](_0x5c0c62(0x1a2));let _0x2b07b8='\x22'+_0x4c0008['text']+'\x22';this[_0x5c0c62(0x232)](_0x4c0008[_0x5c0c62(0x20c)])&&(_0x2b07b8+=','+_0x4c0008[_0x5c0c62(0x20c)]);const _0x36be0f=this[_0x5c0c62(0x28a)]['exec'](_0x5c0c62(0x12f),_0x2b07b8);if(_0x36be0f[_0x5c0c62(0x16f)]===-0x1)return _0x36be0f;return this[_0x5c0c62(0x28a)]['noop'](util['format'](_0x5c0c62(0x29c),_0x2b07b8));},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x162)]=function(_0x304fff){const _0x1b0c08=a1216_0x3d2d89;logger[_0x1b0c08(0x115)](util[_0x1b0c08(0x252)](_0x1b0c08(0x175),_0x304fff[_0x1b0c08(0x120)]));if(!this['isConfigured'](_0x304fff[_0x1b0c08(0xeb)]))return this['channel'][_0x1b0c08(0x165)]('no\x20grammar\x20configured');let _0x36e515=_0x304fff['grammar'];this['isConfigured'](_0x304fff[_0x1b0c08(0x20c)])&&(_0x36e515+=','+_0x304fff[_0x1b0c08(0x20c)]);const _0x4f18f3=this[_0x1b0c08(0x28a)][_0x1b0c08(0x253)](_0x1b0c08(0x18b),_0x36e515);if(_0x4f18f3[_0x1b0c08(0x16f)]===-0x1)return _0x4f18f3;const _0x42c459=this[_0x1b0c08(0x290)](_0x1b0c08(0x177),_0x1b0c08(0x1f9));if(_0x42c459[_0x1b0c08(0x16f)]===-0x1)return _0x42c459;const _0x20644e=this[_0x1b0c08(0x290)]('RECOG_INPUT()','LUMENVOX_ASR_TRANSCRIPT');if(_0x20644e[_0x1b0c08(0x16f)]===-0x1)return _0x20644e;const _0x4efbad=this[_0x1b0c08(0x290)](_0x1b0c08(0x23c),_0x1b0c08(0x169));if(_0x4efbad[_0x1b0c08(0x16f)]===-0x1)return _0x4efbad;return this['channel'][_0x1b0c08(0x165)](util['format'](_0x1b0c08(0x158),_0x36e515));},AGIVertices[a1216_0x3d2d89(0x13d)]['sestekasr']=function(_0xcacef4){const _0xaf81b=a1216_0x3d2d89;logger[_0xaf81b(0x115)](util[_0xaf81b(0x252)](_0xaf81b(0x17c),_0xcacef4[_0xaf81b(0x120)]));if(!this[_0xaf81b(0x232)](_0xcacef4[_0xaf81b(0xeb)]))return this[_0xaf81b(0x28a)][_0xaf81b(0x165)]('no\x20grammar\x20configured');let _0x32e3bf=_0xcacef4[_0xaf81b(0xeb)];this[_0xaf81b(0x232)](_0xcacef4[_0xaf81b(0x20c)])&&(_0x32e3bf+=','+_0xcacef4[_0xaf81b(0x20c)]);const _0x25b2dd=this['channel'][_0xaf81b(0x253)](_0xaf81b(0x18b),_0x32e3bf);if(_0x25b2dd[_0xaf81b(0x16f)]===-0x1)return _0x25b2dd;const _0x4a8c2b=this['getAndSetVariable']('RECOG_CONFIDENCE()',_0xaf81b(0x208));if(_0x4a8c2b['result']===-0x1)return _0x4a8c2b;const _0x1d98d6=this[_0xaf81b(0x290)](_0xaf81b(0x211),'SESTEK_ASR_TRANSCRIPT');if(_0x1d98d6['result']===-0x1)return _0x1d98d6;const _0x955cbf=this[_0xaf81b(0x290)](_0xaf81b(0x23c),_0xaf81b(0x259));if(_0x955cbf[_0xaf81b(0x16f)]===-0x1)return _0x955cbf;return this[_0xaf81b(0x28a)][_0xaf81b(0x165)](util[_0xaf81b(0x252)]('Executed\x20command\x20MRCPRecog\x20%s',_0x32e3bf));},AGIVertices['prototype']['database']=function(_0x3d50df){const _0x166bf4=a1216_0x3d2d89;logger['info'](util[_0x166bf4(0x252)]('Enter\x20in\x20DATABASE\x20(%s)\x20block',_0x3d50df[_0x166bf4(0x120)]));if(!this[_0x166bf4(0x232)](_0x3d50df['odbc_id']))return this[_0x166bf4(0x28a)][_0x166bf4(0x276)](_0x3d50df,_0x166bf4(0x285));const _0x479281=this[_0x166bf4(0x103)][_0x166bf4(0x291)](this,_0x3d50df[_0x166bf4(0x186)]);if(!_0x479281)return this['channel'][_0x166bf4(0x276)](_0x3d50df,'no\x20odbc\x20database\x20found');if(!this[_0x166bf4(0x232)](_0x3d50df[_0x166bf4(0x10e)]))return this['channel'][_0x166bf4(0x276)](_0x3d50df,_0x166bf4(0x11d));const _0x5d5ce6=_0x3d50df[_0x166bf4(0x10e)][_0x166bf4(0xff)](/(\r\n|\n|\r)/gm,'\x20');this[_0x166bf4(0x28a)][_0x166bf4(0x165)](util['format']('query:\x20%s',_0x5d5ce6));const _0xd9c69c=this[_0x166bf4(0x137)][_0x166bf4(0x291)](this,_0x479281,_0x5d5ce6);this['createSquareDetailsReport'][_0x166bf4(0x291)](this,_0x3d50df,_0x5d5ce6);if(!this[_0x166bf4(0x232)](_0x3d50df[_0x166bf4(0x261)]))return this['channel'][_0x166bf4(0x165)](_0x166bf4(0x278));const _0x79a5fc=this[_0x166bf4(0x26e)][_0x166bf4(0x291)](this,_0x3d50df['variable_id']);if(!_0x79a5fc)return this[_0x166bf4(0x28a)][_0x166bf4(0x276)](_0x3d50df,'no\x20variable\x20found');const _0x37d7bf=this;return _0xd9c69c[_0x166bf4(0x159)](function(_0x52ea8d,_0x287683){const _0x5c1494=_0x166bf4;Object[_0x5c1494(0x244)](_0x52ea8d)[_0x5c1494(0x159)](function(_0x50bf91){const _0x2ae928=_0x5c1494;_0x37d7bf[_0x2ae928(0x28a)][_0x2ae928(0x24b)](util[_0x2ae928(0x252)](_0x2ae928(0x294),_0x79a5fc,_0x287683,_0x50bf91),_0x52ea8d[_0x50bf91]);});}),this[_0x166bf4(0x28a)]['setVariable'](util[_0x166bf4(0x252)]('%s_ROWS_COUNT',_0x79a5fc),_0xd9c69c[_0x166bf4(0x106)]),this[_0x166bf4(0x28a)]['noop'](util[_0x166bf4(0x252)](_0x166bf4(0x196),_0x79a5fc));},AGIVertices[a1216_0x3d2d89(0x13d)]['dial']=function(_0x4ebf56){const _0x83be0d=a1216_0x3d2d89;logger[_0x83be0d(0x166)](util[_0x83be0d(0x252)](_0x83be0d(0x16d),_0x4ebf56[_0x83be0d(0x120)]));if(!this[_0x83be0d(0x232)](_0x4ebf56[_0x83be0d(0x156)]))return this[_0x83be0d(0x28a)]['error'](_0x4ebf56,_0x83be0d(0x1af));const _0x258383=this['getUser'][_0x83be0d(0x291)](this,_0x4ebf56[_0x83be0d(0x156)]);if(!_0x258383)return this[_0x83be0d(0x28a)][_0x83be0d(0x276)](_0x4ebf56,_0x83be0d(0x12d));const _0x5e3ebf=this['channel'][_0x83be0d(0x253)](_0x83be0d(0x163),[util[_0x83be0d(0x252)](_0x83be0d(0x27f),_0x258383),_0x4ebf56[_0x83be0d(0xe6)],_0x4ebf56['opts'],_0x4ebf56['url']]);if(_0x5e3ebf[_0x83be0d(0x16f)]===-0x1)return _0x5e3ebf;return this[_0x83be0d(0x28a)][_0x83be0d(0x165)](util[_0x83be0d(0x252)](_0x83be0d(0x20f),_0x83be0d(0x163)));},AGIVertices[a1216_0x3d2d89(0x13d)]['dialogflow']=function(_0x2ab279){const _0x1440dd=a1216_0x3d2d89;logger[_0x1440dd(0x115)](util[_0x1440dd(0x252)](_0x1440dd(0x1f6),_0x2ab279['label']));if(!this[_0x1440dd(0x232)](_0x2ab279[_0x1440dd(0x297)]))return this[_0x1440dd(0x28a)][_0x1440dd(0x165)](_0x1440dd(0x181));if(!this[_0x1440dd(0x232)](_0x2ab279['text']))return this[_0x1440dd(0x28a)]['noop']('no\x20text\x20configured');this[_0x1440dd(0x28a)][_0x1440dd(0x29d)]=!![],this[_0x1440dd(0x2a3)](_0x2ab279),this['createSquareMessage'](_0x2ab279[_0x1440dd(0xe7)],'in','',''),this[_0x1440dd(0x28a)][_0x1440dd(0x165)](util[_0x1440dd(0x252)](_0x1440dd(0x234),_0x2ab279[_0x1440dd(0xe7)]));const _0x224d6c=this[_0x1440dd(0x22a)][_0x1440dd(0x291)](this,_0x2ab279);if(_0x224d6c){for(const _0x1aa1da in _0x224d6c){typeof _0x224d6c[_0x1aa1da]!==_0x1440dd(0x246)&&this[_0x1440dd(0x28a)][_0x1440dd(0x24b)](util[_0x1440dd(0x252)]('DIALOGFLOW_%s',_0x1aa1da[_0x1440dd(0x135)]()),_0x224d6c[_0x1aa1da]);}return this['createSquareMessage'](_0x224d6c['speech'],_0x1440dd(0x14b),'dialogflow',''),this['channel']['noop'](util[_0x1440dd(0x252)]('Dialogflow\x20Result\x20%s',_0x224d6c[_0x1440dd(0x1b5)]));}return this[_0x1440dd(0x28a)][_0x1440dd(0x276)](_0x2ab279,_0x1440dd(0x1ac));},AGIVertices['prototype']['dialogflowV2']=function(_0x28429d){const _0x4b3d22=a1216_0x3d2d89;logger[_0x4b3d22(0x115)](util[_0x4b3d22(0x252)]('Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block',_0x28429d['label']));if(!this[_0x4b3d22(0x232)](_0x28429d[_0x4b3d22(0x1e3)]))return this['channel'][_0x4b3d22(0x165)](_0x4b3d22(0x15a));if(!this[_0x4b3d22(0x232)](_0x28429d[_0x4b3d22(0x251)]))return this[_0x4b3d22(0x28a)][_0x4b3d22(0x165)](_0x4b3d22(0x118));if(!this[_0x4b3d22(0x232)](_0x28429d[_0x4b3d22(0x1e7)]))return this[_0x4b3d22(0x28a)]['noop'](_0x4b3d22(0x1f1));if(!this[_0x4b3d22(0x232)](_0x28429d['dialogflowV2_language']))return this[_0x4b3d22(0x28a)]['noop']('no\x20anguage\x20configured');if(!this['isConfigured'](_0x28429d[_0x4b3d22(0xe7)]))return this['channel'][_0x4b3d22(0x165)](_0x4b3d22(0x1a2));this[_0x4b3d22(0x28a)][_0x4b3d22(0x29d)]=!![],this[_0x4b3d22(0x2a3)](_0x28429d),this[_0x4b3d22(0xf8)](_0x28429d[_0x4b3d22(0xe7)],'in','',''),this[_0x4b3d22(0x28a)][_0x4b3d22(0x165)](util[_0x4b3d22(0x252)](_0x4b3d22(0xf3),_0x28429d['text']));const _0x1b7c93=this[_0x4b3d22(0x26c)][_0x4b3d22(0x291)](this,_0x28429d);if(_0x1b7c93){for(const _0x57c133 in _0x1b7c93){typeof _0x1b7c93[_0x57c133]!==_0x4b3d22(0x246)&&(_0x57c133!==_0x4b3d22(0x141)&&this[_0x4b3d22(0x28a)]['setVariable'](util[_0x4b3d22(0x252)](_0x4b3d22(0x144),_0x57c133[_0x4b3d22(0x135)]()),_0x1b7c93[_0x57c133]));}return this[_0x4b3d22(0xf8)](_0x1b7c93['speech'],'out',_0x4b3d22(0x194),_0x1b7c93[_0x4b3d22(0x141)]),this[_0x4b3d22(0x28a)][_0x4b3d22(0x165)](util[_0x4b3d22(0x252)]('DialogflowV2\x20Result\x20%s',_0x1b7c93[_0x4b3d22(0x1b5)]));}return this[_0x4b3d22(0x28a)][_0x4b3d22(0x276)](_0x28429d,_0x4b3d22(0x1e0));},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x12b)]=function(_0x49e7c0){const _0x15fe02=a1216_0x3d2d89;logger[_0x15fe02(0x115)](util['format']('Enter\x20in\x20SESTEKNDA\x20(%s)\x20block',_0x49e7c0[_0x15fe02(0x120)]));if(!this[_0x15fe02(0x232)](_0x49e7c0['ndauth_url']))return this['channel'][_0x15fe02(0x165)](_0x15fe02(0x17a));if(!this[_0x15fe02(0x232)](_0x49e7c0[_0x15fe02(0x1eb)]))return this[_0x15fe02(0x28a)][_0x15fe02(0x165)](_0x15fe02(0x1f8));if(!this['isConfigured'](_0x49e7c0['password']))return this['channel'][_0x15fe02(0x165)](_0x15fe02(0x17d));if(!this[_0x15fe02(0x232)](_0x49e7c0['ndassistant_url']))return this[_0x15fe02(0x28a)][_0x15fe02(0x165)](_0x15fe02(0x1a2));this[_0x15fe02(0x28a)]['bot']=!![],this['createSquareDetailsReport'](_0x49e7c0),this['createSquareMessage'](_0x49e7c0[_0x15fe02(0xe7)],'in','',''),this[_0x15fe02(0x28a)][_0x15fe02(0x165)](util[_0x15fe02(0x252)](_0x15fe02(0x1fb),_0x49e7c0[_0x15fe02(0xe7)]));const _0x2a3287=this['sestekNDA'][_0x15fe02(0x291)](this,_0x49e7c0);if(_0x2a3287){for(const _0x14f074 in _0x2a3287){typeof _0x2a3287[_0x14f074]!==_0x15fe02(0x246)&&this[_0x15fe02(0x28a)]['setVariable'](util[_0x15fe02(0x252)]('SESTEK_NDA_%s',_0x14f074[_0x15fe02(0x135)]()),_0x2a3287[_0x14f074]);}this['createSquareMessage'](_0x2a3287[_0x15fe02(0x1b5)],_0x15fe02(0x14b),_0x15fe02(0x12b),'');if(_0x2a3287[_0x15fe02(0x15c)]){this['channel'][_0x15fe02(0x165)](util[_0x15fe02(0x252)]('Sestek\x20NDA\x20%s\x20file\x20created',_0x2a3287[_0x15fe02(0x15c)]));const _0x30523c=this[_0x15fe02(0x28a)]['streamFile'](_0x2a3287[_0x15fe02(0x15c)]);try{fs[_0x15fe02(0x19c)](_0x2a3287['audiofile']+_0x15fe02(0xe9));}catch(_0x4a80cc){logger['error'](_0x4a80cc);}return _0x30523c;}else return this[_0x15fe02(0x28a)][_0x15fe02(0x165)](util['format'](_0x15fe02(0xfe),_0x2a3287['speech']));}return this['channel']['error'](_0x49e7c0,_0x15fe02(0xf9));},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x239)]=function(_0x2bb126){const _0x546b42=a1216_0x3d2d89;return logger[_0x546b42(0x115)](util['format'](_0x546b42(0x1d0),_0x2bb126[_0x546b42(0x120)])),this[_0x546b42(0x28a)][_0x546b42(0x165)](_0x546b42(0x239));},AGIVertices['prototype'][a1216_0x3d2d89(0x1c1)]=function(_0x14be3d){const _0x41644f=a1216_0x3d2d89;logger[_0x41644f(0x115)](util[_0x41644f(0x252)]('Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block',_0x14be3d[_0x41644f(0x120)]));let _0x2a65da='';if(_0x14be3d[_0x41644f(0x1ee)]){if(!this[_0x41644f(0x232)](_0x14be3d['trunk_id']))return this['channel'][_0x41644f(0x276)](_0x14be3d,_0x41644f(0x18f));else{const _0x4bed5b=parseInt(_0x14be3d['trunk_id'],0xa);if(isNaN(_0x4bed5b))_0x2a65da=_0x14be3d['trunk_id'];else{_0x2a65da=this[_0x41644f(0x295)][_0x41644f(0x291)](this,_0x14be3d[_0x41644f(0x1ee)]);if(!_0x2a65da)return this[_0x41644f(0x28a)][_0x41644f(0x276)](_0x14be3d,'no\x20trunk\x20found');}}}else{if(_0x14be3d[_0x41644f(0x25e)])_0x2a65da=_0x14be3d[_0x41644f(0x25e)];else return this['channel'][_0x41644f(0x276)](_0x14be3d,_0x41644f(0x18f));}const _0x51475a=this[_0x41644f(0x28a)][_0x41644f(0x253)](_0x41644f(0x163),[util['format'](_0x41644f(0x22e),_0x2a65da,_0x14be3d[_0x41644f(0x26a)]),_0x14be3d[_0x41644f(0xe6)],_0x14be3d[_0x41644f(0x22c)],_0x14be3d[_0x41644f(0x13a)]]);if(_0x51475a['result']===-0x1)return _0x51475a;return this[_0x41644f(0x28a)][_0x41644f(0x165)](util[_0x41644f(0x252)](_0x41644f(0x20f),_0x41644f(0x163)));},AGIVertices[a1216_0x3d2d89(0x13d)]['finally']=function(_0x153443){const _0x5c2e70=a1216_0x3d2d89;return logger[_0x5c2e70(0x115)](util[_0x5c2e70(0x252)](_0x5c2e70(0xf7),_0x153443['label'])),this[_0x5c2e70(0x28a)]['noop'](_0x5c2e70(0x263));},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1f4)]=function(_0x38e772){const _0x40bba6=a1216_0x3d2d89;logger[_0x40bba6(0x115)](util['format']('Enter\x20in\x20GETDIGITS\x20(%s)\x20block',_0x38e772['label']));if(_0x38e772[_0x40bba6(0x131)]===0x0)return this[_0x40bba6(0x1a0)](_0x38e772);_0x38e772['retry']-=0x1;if(!this[_0x40bba6(0x232)](_0x38e772['file_id']))return this[_0x40bba6(0x28a)][_0x40bba6(0x276)](_0x38e772,_0x40bba6(0x28b));const _0x40a7ee=this['getSound'][_0x40bba6(0x291)](this,_0x38e772[_0x40bba6(0x179)]);if(!_0x40a7ee)return this[_0x40bba6(0x28a)][_0x40bba6(0x276)](_0x38e772,_0x40bba6(0x14a));if(!this['isConfigured'](_0x38e772['variable_id']))return this[_0x40bba6(0x28a)][_0x40bba6(0x276)](_0x40bba6(0x278));const _0x38be54=this[_0x40bba6(0x28a)][_0x40bba6(0x1d6)](_0x40a7ee,_0x38e772[_0x40bba6(0x16b)],_0x38e772['maxdigit']),_0x34709f=_0x38be54['result']?_0x38be54['result'][_0x40bba6(0x17e)]():'';logger[_0x40bba6(0x115)]('test',JSON['stringify'](_0x38be54));if(_0x38be54[_0x40bba6(0x16f)]===-0x1)return this[_0x40bba6(0x2a3)][_0x40bba6(0x291)](this,_0x38e772,_0x34709f),_0x38be54;else _0x38be54[_0x40bba6(0xf0)]==='timeout'?_0x38be54[_0x40bba6(0x16f)]=_0x34709f[_0x40bba6(0x106)]>=parseInt(_0x38e772[_0x40bba6(0x1a8)])?'x':'i':_0x38be54['result']=_0x34709f[_0x40bba6(0x106)]>=parseInt(_0x38e772[_0x40bba6(0x1a8)])&&_0x34709f[_0x40bba6(0x106)]<=parseInt(_0x38e772[_0x40bba6(0x20a)])?'x':'i';const _0x14fc51=this['getVariable']['sync'](this,_0x38e772['variable_id']);if(!_0x14fc51)return this[_0x40bba6(0x28a)][_0x40bba6(0x276)](_0x38e772,'no\x20variable\x20found');this[_0x40bba6(0x28a)][_0x40bba6(0x24b)](_0x14fc51,_0x34709f);if(this[_0x40bba6(0x232)](_0x38e772[_0x40bba6(0x125)])){const _0x501924=parseInt(_0x38e772['hiddendigitsnum'],0xa),_0x59ef32=rs[_0x40bba6(0xe8)]({'charset':'*','length':_0x501924}),_0x581a63=_0x34709f[_0x40bba6(0x106)];_0x581a63>0x0?_0x581a63>_0x501924?this[_0x40bba6(0x2a3)][_0x40bba6(0x291)](this,_0x38e772,_0x38e772[_0x40bba6(0xe5)]===_0x40bba6(0x154)?_0x59ef32+_0x34709f['substr'](_0x501924):_0x34709f[_0x40bba6(0x258)](0x0,_0x581a63-_0x501924)+_0x59ef32):this['createSquareDetailsReport'][_0x40bba6(0x291)](this,_0x38e772,rs['generate']({'charset':'*','length':_0x581a63})):this['createSquareDetailsReport'][_0x40bba6(0x291)](this,_0x38e772,'');}else this['createSquareDetailsReport'][_0x40bba6(0x291)](this,_0x38e772,_0x34709f);return _0x38be54;},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1ca)]=function(_0x208bb7){const _0x1d91c4=a1216_0x3d2d89;return logger[_0x1d91c4(0x115)](util[_0x1d91c4(0x252)](_0x1d91c4(0x286),_0x208bb7[_0x1d91c4(0x120)])),this['getdigits'](_0x208bb7);},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1d4)]=function(_0x5f00f8){const _0x48b94a=a1216_0x3d2d89;return logger[_0x48b94a(0x115)](util['format'](_0x48b94a(0x192),_0x5f00f8[_0x48b94a(0x120)])),this[_0x48b94a(0x2a3)][_0x48b94a(0x291)](this,_0x5f00f8,_0x5f00f8[_0x48b94a(0x1a6)]),this[_0x48b94a(0x28a)][_0x48b94a(0x165)](util[_0x48b94a(0x252)](_0x48b94a(0x136),_0x5f00f8['goalname']));},AGIVertices['prototype']['awspolly']=function(_0x4b97da){const _0x319e54=a1216_0x3d2d89;logger[_0x319e54(0x115)](util[_0x319e54(0x252)]('[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block',_0x4b97da['label']));if(!this[_0x319e54(0x232)](_0x4b97da['aws_access_key_id'])||!this['isConfigured'](_0x4b97da[_0x319e54(0x1ea)]))return this[_0x319e54(0x28a)][_0x319e54(0x165)](_0x319e54(0x25f));if(!this[_0x319e54(0x232)](_0x4b97da[_0x319e54(0xe7)]))return this[_0x319e54(0x28a)][_0x319e54(0x165)](_0x319e54(0x1a2));this[_0x319e54(0x28a)][_0x319e54(0x165)](util[_0x319e54(0x252)](_0x319e54(0x226),_0x4b97da[_0x319e54(0xe7)]));const _0x1e80f2=this['awsPolly'][_0x319e54(0x291)](this,_0x4b97da);if(_0x1e80f2){this[_0x319e54(0x28a)][_0x319e54(0x165)](util[_0x319e54(0x252)](_0x319e54(0x1da),_0x1e80f2));const _0x2bdc7=this['channel']['streamFile'](_0x1e80f2);try{fs[_0x319e54(0x19c)](_0x1e80f2+'.wav');}catch(_0x34e8ff){logger['error'](_0x34e8ff);}return _0x2bdc7;}return this[_0x319e54(0x28a)]['error'](_0x4b97da,_0x319e54(0x250));},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x223)]=function(_0x4f571c){const _0x218ad5=a1216_0x3d2d89;logger['info'](util[_0x218ad5(0x252)]('Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block',_0x4f571c[_0x218ad5(0x120)]));if(!this['isConfigured'](_0x4f571c[_0x218ad5(0x182)])||!this[_0x218ad5(0x232)](_0x4f571c[_0x218ad5(0x1ea)]))return this[_0x218ad5(0x28a)]['noop'](_0x218ad5(0x25f));if(!this[_0x218ad5(0x232)](_0x4f571c[_0x218ad5(0x218)]))return this[_0x218ad5(0x28a)][_0x218ad5(0x165)](_0x218ad5(0x206));if(!this[_0x218ad5(0x232)](_0x4f571c[_0x218ad5(0xe7)]))return this[_0x218ad5(0x28a)]['noop'](_0x218ad5(0x1a2));this[_0x218ad5(0x28a)]['bot']=!![],this[_0x218ad5(0x2a3)](_0x4f571c),this[_0x218ad5(0xf8)](_0x4f571c[_0x218ad5(0xe7)],'in','',''),this[_0x218ad5(0x28a)]['noop'](util[_0x218ad5(0x252)](_0x218ad5(0x242),_0x4f571c[_0x218ad5(0xe7)]));const _0x47115d=this[_0x218ad5(0x108)][_0x218ad5(0x291)](this,_0x4f571c);if(_0x47115d){for(const _0x4b2422 in _0x47115d){typeof _0x47115d[_0x4b2422]!==_0x218ad5(0x246)&&_[_0x218ad5(0x267)](_0x47115d[_0x4b2422])&&this[_0x218ad5(0x28a)][_0x218ad5(0x24b)](util[_0x218ad5(0x252)](_0x218ad5(0x20d),_0x4b2422['toUpperCase']()),_0x47115d[_0x4b2422]);}return _['isNil'](_0x47115d[_0x218ad5(0x10c)])?this[_0x218ad5(0x28a)][_0x218ad5(0x165)](_0x218ad5(0x245)):(this['createSquareMessage'](_0x47115d['message'],'out',_0x218ad5(0x289),''),this['channel'][_0x218ad5(0x165)](util['format'](_0x218ad5(0x215),_0x47115d[_0x218ad5(0x10c)])));}return this[_0x218ad5(0x28a)][_0x218ad5(0x276)](_0x4f571c,_0x218ad5(0x157));},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x164)]=function(_0x4016fe){const _0x3ad3e6=a1216_0x3d2d89;logger[_0x3ad3e6(0x115)](util[_0x3ad3e6(0x252)]('Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s',_0x4016fe[_0x3ad3e6(0x120)],_0x4016fe[_0x3ad3e6(0xe6)]));if(!this[_0x3ad3e6(0x232)](_0x4016fe[_0x3ad3e6(0x297)]))return this[_0x3ad3e6(0x28a)][_0x3ad3e6(0x165)](_0x3ad3e6(0x181));const _0x4182f7=_0x3ad3e6(0x266),_0x288c52=util[_0x3ad3e6(0x252)](_0x3ad3e6(0x24a),FILES_PATH,rs[_0x3ad3e6(0xe8)](0x4)),_0x27e273=util[_0x3ad3e6(0x252)](_0x3ad3e6(0x213),_0x288c52,_0x4182f7);let _0x159292=!![];_0x4016fe[_0x3ad3e6(0x209)]===_0x3ad3e6(0x13e)&&(_0x159292=![]);const _0x183980=this[_0x3ad3e6(0x28a)]['recordFile'](_0x288c52,_0x4182f7,_0x4016fe['intKey'],_0x4016fe[_0x3ad3e6(0xe6)],undefined,_0x159292);if(_0x183980[_0x3ad3e6(0x16f)]!==-0x1){this['channel'][_0x3ad3e6(0x165)](util['format'](_0x3ad3e6(0x188),_0x27e273));const _0x46e181=this[_0x3ad3e6(0x201)][_0x3ad3e6(0x291)](this,_0x4016fe,_0x27e273);if(_0x46e181){for(const _0x442966 in _0x46e181){typeof _0x46e181[_0x442966]!==_0x3ad3e6(0x246)&&this[_0x3ad3e6(0x28a)][_0x3ad3e6(0x24b)](util[_0x3ad3e6(0x252)](_0x3ad3e6(0x280),_0x442966[_0x3ad3e6(0x135)]()),_0x46e181[_0x442966]);}return this['channel'][_0x3ad3e6(0x165)](util[_0x3ad3e6(0x252)](_0x3ad3e6(0x16e),JSON[_0x3ad3e6(0x1e9)](_0x46e181)));}}return _0x183980;},AGIVertices['prototype'][a1216_0x3d2d89(0x11e)]=function(_0x4e97bd){const _0x165589=a1216_0x3d2d89;logger[_0x165589(0x115)](util[_0x165589(0x252)](_0x165589(0x20e),_0x4e97bd[_0x165589(0x120)]));if(!this[_0x165589(0x232)](_0x4e97bd[_0x165589(0x200)]))return this[_0x165589(0x28a)]['noop']('no\x20appid\x20configured');if(!this[_0x165589(0x232)](_0x4e97bd[_0x165589(0x275)]))return this[_0x165589(0x28a)][_0x165589(0x165)](_0x165589(0x1dd));const _0x121c40=_0x165589(0x266),_0x18d085=util[_0x165589(0x252)](_0x165589(0x24a),FILES_PATH,rs[_0x165589(0xe8)](0x4)),_0x423377=util['format'](_0x165589(0x213),_0x18d085,_0x121c40);let _0x298ee5=!![];_0x4e97bd[_0x165589(0x209)]===_0x165589(0x13e)&&(_0x298ee5=![]);const _0x4e3d3d=this[_0x165589(0x28a)][_0x165589(0x2a2)](_0x18d085,_0x121c40,_0x4e97bd[_0x165589(0x2a0)],_0x4e97bd[_0x165589(0xe6)],undefined,_0x298ee5);if(_0x4e3d3d[_0x165589(0x16f)]!==-0x1){this[_0x165589(0x28a)][_0x165589(0x165)](util[_0x165589(0x252)](_0x165589(0x11b),_0x423377));const _0xb37917=this[_0x165589(0x1ef)]['sync'](this,_0x4e97bd,_0x423377);if(_0xb37917){for(const _0x91118f in _0xb37917){typeof _0xb37917[_0x91118f]!=='undefined'&&this[_0x165589(0x28a)][_0x165589(0x24b)](util[_0x165589(0x252)]('TILDE_ASR_%s',_0x91118f[_0x165589(0x135)]()),_0xb37917[_0x91118f]);}return this[_0x165589(0x28a)][_0x165589(0x165)](util[_0x165589(0x252)]('TildeASR\x20Result\x20%s',JSON[_0x165589(0x1e9)](_0xb37917)));}}return _0x4e3d3d;},AGIVertices[a1216_0x3d2d89(0x13d)]['gotoc']=function(_0x5cb292){const _0x954beb=a1216_0x3d2d89;return logger[_0x954beb(0x115)](util[_0x954beb(0x252)](_0x954beb(0x29f),_0x5cb292['label'])),this[_0x954beb(0x28a)][_0x954beb(0x14c)](_0x5cb292[_0x954beb(0x12c)],_0x5cb292[_0x954beb(0x18d)],_0x5cb292['priority']);},AGIVertices['prototype']['gotoif']=function(_0x57aa9a){const _0x412a53=a1216_0x3d2d89;logger['info'](util[_0x412a53(0x252)](_0x412a53(0x151),_0x57aa9a['label']));if(!this[_0x412a53(0x232)](_0x57aa9a[_0x412a53(0x167)]))return this[_0x412a53(0x28a)][_0x412a53(0x276)](_0x57aa9a,_0x412a53(0x195));try{const _0xdd0e21=eval(_0x57aa9a['condition'])?_0x412a53(0x1a1):_0x412a53(0x29e);return this[_0x412a53(0x28a)][_0x412a53(0x165)](util['format']('EVAL\x20CONDITION\x20%s\x20%s',_0x57aa9a[_0x412a53(0x167)],_0xdd0e21)),{'code':0xc8,'result':_0xdd0e21};}catch(_0x57f9c3){return{'code':0xc8,'result':'false'};}},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x134)]=function(_0x3874ea){const _0x159bad=a1216_0x3d2d89;logger[_0x159bad(0x115)](util['format'](_0x159bad(0xfc),_0x3874ea[_0x159bad(0x120)]));if(!this[_0x159bad(0x232)](_0x3874ea['interval_id']))return this[_0x159bad(0x28a)][_0x159bad(0x276)](_0x3874ea,_0x159bad(0x114));const _0x977c13=this[_0x159bad(0x153)][_0x159bad(0x291)](this,_0x3874ea['interval_id']);if(!_0x977c13)return this[_0x159bad(0x28a)][_0x159bad(0x276)](_0x3874ea,_0x159bad(0x287));for(let _0x32ce4f=0x0;_0x32ce4f<_0x977c13['length'];_0x32ce4f+=0x1){const _0x5cc5eb=this[_0x159bad(0x28a)][_0x159bad(0x26e)](util[_0x159bad(0x252)](_0x159bad(0x225),_0x977c13[_0x32ce4f]));if(_0x5cc5eb[_0x159bad(0x16f)]===-0x1)return _0x5cc5eb;logger[_0x159bad(0x115)](util[_0x159bad(0x252)](_0x159bad(0x11c),_0x977c13[_0x32ce4f],_0x5cc5eb[_0x159bad(0xf0)]));if(_0x5cc5eb['extra']===_0x159bad(0x1a1))return logger[_0x159bad(0x115)](util['format'](_0x159bad(0x11c),_0x977c13[_0x32ce4f],_0x159bad(0x1a1))),this[_0x159bad(0x28a)]['noop'](util['format']('IFTIME\x20%s\x20%s',_0x977c13[_0x32ce4f],'true')),{'code':0xc8,'result':_0x159bad(0x1a1)};else logger[_0x159bad(0x115)](util[_0x159bad(0x252)](_0x159bad(0x11c),_0x977c13[_0x32ce4f],'false')),this['channel'][_0x159bad(0x165)](util[_0x159bad(0x252)](_0x159bad(0x11c),_0x977c13[_0x32ce4f],'false'));}return{'code':0xc8,'result':_0x159bad(0x29e)};},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1c9)]=function(_0x15cfee){const _0x8cff20=a1216_0x3d2d89;return logger[_0x8cff20(0x115)](util[_0x8cff20(0x252)](_0x8cff20(0x138),_0x15cfee[_0x8cff20(0x120)])),this['channel'][_0x8cff20(0x1c9)]();},AGIVertices['prototype']['ispeechasr']=function(_0x52cace){const _0x18623c=a1216_0x3d2d89;logger['info'](util[_0x18623c(0x252)](_0x18623c(0x174),_0x52cace['label']));if(!this[_0x18623c(0x232)](_0x52cace[_0x18623c(0x297)]))return this[_0x18623c(0x28a)]['noop'](_0x18623c(0x181));const _0x30f8a1='wav',_0x4da68c=util['format'](_0x18623c(0x24a),FILES_PATH,rs['generate'](0x4)),_0x4287bc=util[_0x18623c(0x252)](_0x18623c(0x213),_0x4da68c,_0x30f8a1);let _0x332d49=!![];_0x52cace[_0x18623c(0x209)]===_0x18623c(0x13e)&&(_0x332d49=![]);const _0x349bf6=this['channel'][_0x18623c(0x2a2)](_0x4da68c,_0x30f8a1,_0x52cace[_0x18623c(0x2a0)],_0x52cace[_0x18623c(0xe6)],undefined,_0x332d49);if(_0x349bf6[_0x18623c(0x16f)]!==-0x1){this[_0x18623c(0x28a)][_0x18623c(0x165)](util[_0x18623c(0x252)](_0x18623c(0x28c),_0x4287bc));const _0x162932=this[_0x18623c(0x121)]['sync'](this,_0x52cace,_0x4287bc);if(_0x162932){for(const _0x3a0a00 in _0x162932){typeof _0x162932[_0x3a0a00]!==_0x18623c(0x246)&&this['channel'][_0x18623c(0x24b)](util[_0x18623c(0x252)](_0x18623c(0x105),_0x3a0a00[_0x18623c(0x135)]()),_0x162932[_0x3a0a00]);}return this[_0x18623c(0x28a)][_0x18623c(0x165)](util[_0x18623c(0x252)](_0x18623c(0x29b),JSON[_0x18623c(0x1e9)](_0x162932)));}}return _0x349bf6;},AGIVertices[a1216_0x3d2d89(0x13d)]['ispeechtts']=function(_0x4f6d47){const _0x4eb96e=a1216_0x3d2d89;logger[_0x4eb96e(0x115)](util[_0x4eb96e(0x252)]('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x4f6d47[_0x4eb96e(0x120)]));if(!this[_0x4eb96e(0x232)](_0x4f6d47[_0x4eb96e(0x297)]))return this[_0x4eb96e(0x28a)]['noop']('no\x20key\x20configured');if(!this['isConfigured'](_0x4f6d47['text']))return this[_0x4eb96e(0x28a)][_0x4eb96e(0x165)](_0x4eb96e(0x1a2));this[_0x4eb96e(0x28a)]['noop'](util[_0x4eb96e(0x252)](_0x4eb96e(0x101),_0x4f6d47[_0x4eb96e(0xe7)]));const _0x360570=this['ispeechTTS'][_0x4eb96e(0x291)](this,_0x4f6d47);if(_0x360570){this[_0x4eb96e(0x28a)][_0x4eb96e(0x165)](util[_0x4eb96e(0x252)](_0x4eb96e(0x28c),_0x360570));const _0x466fbd=this['channel'][_0x4eb96e(0x248)](_0x360570,_0x4f6d47[_0x4eb96e(0x2a0)]);try{fs['unlink'](_0x360570+_0x4eb96e(0xe9));}catch(_0x2eecd7){logger[_0x4eb96e(0x276)](_0x2eecd7);}return _0x466fbd;}return this[_0x4eb96e(0x28a)][_0x4eb96e(0x276)](_0x4f6d47,_0x4eb96e(0x193));},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x288)]=function(_0x315385){const _0x5ea476=a1216_0x3d2d89;logger[_0x5ea476(0x115)](util[_0x5ea476(0x252)](_0x5ea476(0x173),_0x315385[_0x5ea476(0x120)]));if(!this['isConfigured'](_0x315385[_0x5ea476(0x147)]))return this[_0x5ea476(0x28a)][_0x5ea476(0x276)](_0x315385,_0x5ea476(0x243));logger[_0x5ea476(0x115)](util[_0x5ea476(0x252)]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x5ea476(0x28a)]['callerid'],_0x315385[_0x5ea476(0x147)]));const _0x532efd=this[_0x5ea476(0x150)][_0x5ea476(0x291)](this,_0x315385[_0x5ea476(0x147)]);return _0x532efd?(logger['info'](util[_0x5ea476(0x252)]('AGENT\x20%s\x20FOUND\x20BY',this[_0x5ea476(0x28a)][_0x5ea476(0x1cf)],_0x315385[_0x5ea476(0x147)])),this['channel']['noop'](util[_0x5ea476(0x252)](_0x5ea476(0x119),this['channel'][_0x5ea476(0x1cf)],_0x315385[_0x5ea476(0x147)])),{'code':0xc8,'result':'success'}):(logger[_0x5ea476(0x115)](util[_0x5ea476(0x252)]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x5ea476(0x28a)][_0x5ea476(0x1cf)],_0x315385[_0x5ea476(0x147)])),this[_0x5ea476(0x28a)][_0x5ea476(0x165)](util[_0x5ea476(0x252)](_0x5ea476(0x1b2),this[_0x5ea476(0x28a)][_0x5ea476(0x1cf)],_0x315385['findBy'])),{'code':0xc8,'result':_0x5ea476(0x18a)});},AGIVertices['prototype'][a1216_0x3d2d89(0x281)]=function(_0x2ef7cd){const _0x4cbd6c=a1216_0x3d2d89;logger['info'](util[_0x4cbd6c(0x252)](_0x4cbd6c(0x171),_0x2ef7cd['label']));if(!this[_0x4cbd6c(0x232)](_0x2ef7cd[_0x4cbd6c(0x147)]))return this[_0x4cbd6c(0x28a)][_0x4cbd6c(0x276)](_0x2ef7cd,_0x4cbd6c(0x243));logger[_0x4cbd6c(0x115)](util['format'](_0x4cbd6c(0x24e),this[_0x4cbd6c(0x28a)][_0x4cbd6c(0x1cf)],_0x2ef7cd[_0x4cbd6c(0x147)]));const _0x48aacd=this[_0x4cbd6c(0xf5)][_0x4cbd6c(0x291)](this,_0x2ef7cd[_0x4cbd6c(0x147)]);return _0x48aacd?(logger[_0x4cbd6c(0x115)](util['format'](_0x4cbd6c(0x119),this['channel'][_0x4cbd6c(0x1cf)],_0x2ef7cd[_0x4cbd6c(0x147)])),this[_0x4cbd6c(0x28a)][_0x4cbd6c(0x165)](util[_0x4cbd6c(0x252)](_0x4cbd6c(0x119),this[_0x4cbd6c(0x28a)][_0x4cbd6c(0x1cf)],_0x2ef7cd[_0x4cbd6c(0x147)])),{'code':0xc8,'result':_0x4cbd6c(0x191)}):(logger[_0x4cbd6c(0x115)](util[_0x4cbd6c(0x252)](_0x4cbd6c(0x1b2),this['channel'][_0x4cbd6c(0x1cf)],_0x2ef7cd[_0x4cbd6c(0x147)])),this[_0x4cbd6c(0x28a)]['noop'](util[_0x4cbd6c(0x252)](_0x4cbd6c(0x1b2),this['channel'][_0x4cbd6c(0x1cf)],_0x2ef7cd[_0x4cbd6c(0x147)])),{'code':0xc8,'result':_0x4cbd6c(0x18a)});},AGIVertices['prototype'][a1216_0x3d2d89(0xec)]=function(_0x523d39){const _0x4d6f5b=a1216_0x3d2d89;logger['info'](util['format'](_0x4d6f5b(0x28d),_0x523d39[_0x4d6f5b(0x120)]));if(!this[_0x4d6f5b(0x232)](_0x523d39[_0x4d6f5b(0x178)]))return this[_0x4d6f5b(0x28a)][_0x4d6f5b(0x276)](_0x523d39,_0x4d6f5b(0x1fc));this[_0x4d6f5b(0x28a)][_0x4d6f5b(0x165)](util[_0x4d6f5b(0x252)](_0x4d6f5b(0x273),_0x523d39[_0x4d6f5b(0x178)]));const _0x2dc77f=eval(_0x523d39['operation']);if(!this['isConfigured'](_0x523d39[_0x4d6f5b(0x261)]))return this[_0x4d6f5b(0x28a)][_0x4d6f5b(0x165)](_0x4d6f5b(0x278));const _0x1f2fb1=this[_0x4d6f5b(0x26e)][_0x4d6f5b(0x291)](this,_0x523d39[_0x4d6f5b(0x261)]);if(!_0x1f2fb1)return this[_0x4d6f5b(0x28a)][_0x4d6f5b(0x276)](_0x523d39,_0x4d6f5b(0x21a));if(_[_0x4d6f5b(0x11a)](_0x2dc77f)){const _0x35abce=this;return _0x2dc77f[_0x4d6f5b(0x159)](function(_0x5291b3,_0x3eec79){const _0x524951=_0x4d6f5b;_0x35abce['channel']['setVariable'](util[_0x524951(0x252)](_0x524951(0x299),_0x1f2fb1,_0x3eec79),_0x5291b3);}),this['channel'][_0x4d6f5b(0x165)](util[_0x4d6f5b(0x252)](_0x4d6f5b(0x26b),_0x1f2fb1));}else return this[_0x4d6f5b(0x28a)][_0x4d6f5b(0x24b)](_0x1f2fb1,_0x2dc77f);},AGIVertices[a1216_0x3d2d89(0x13d)]['menu']=function(_0x40decb){const _0x100b4d=a1216_0x3d2d89;logger[_0x100b4d(0x115)](util[_0x100b4d(0x252)](_0x100b4d(0x298),_0x40decb['label']));if(_0x40decb[_0x100b4d(0x131)]===0x0)return this[_0x100b4d(0x1a0)](_0x40decb);_0x40decb['retry']-=0x1;if(!this[_0x100b4d(0x232)](_0x40decb[_0x100b4d(0x179)]))return this[_0x100b4d(0x28a)][_0x100b4d(0x276)](_0x40decb,'no\x20file\x20audio\x20selected');const _0x5b8f36=this[_0x100b4d(0x1d1)][_0x100b4d(0x291)](this,_0x40decb[_0x100b4d(0x179)]);if(!_0x5b8f36)return this[_0x100b4d(0x28a)][_0x100b4d(0x276)](_0x40decb,'no\x20file\x20audio\x20found');const _0x37b0eb=this[_0x100b4d(0x28a)][_0x100b4d(0x1d6)](_0x5b8f36,_0x40decb[_0x100b4d(0x16b)],_0x40decb['digit']);let _0x5aea2e=_0x37b0eb[_0x100b4d(0x16f)];if(_0x37b0eb['result']===-0x1)return this[_0x100b4d(0x2a3)][_0x100b4d(0x291)](this,_0x40decb,'-1'),_0x37b0eb;else{if(_0x37b0eb[_0x100b4d(0xf0)]===_0x100b4d(0xe6))_0x37b0eb[_0x100b4d(0x16f)]=_0x37b0eb['result'][_0x100b4d(0x106)]>0x0?_0x37b0eb[_0x100b4d(0x16f)]:'t';else _[_0x100b4d(0x1b3)](_0x37b0eb[_0x100b4d(0x16f)])&&(_0x37b0eb[_0x100b4d(0x16f)]='#',_0x5aea2e='#');}if(!this[_0x100b4d(0x232)](_0x40decb[_0x100b4d(0x261)]))this[_0x100b4d(0x28a)][_0x100b4d(0x165)]('no\x20variable\x20selected\x20for\x20the\x20result');else{const _0x462e83=this['getVariable']['sync'](this,_0x40decb[_0x100b4d(0x261)]);if(!_0x462e83)return this[_0x100b4d(0x28a)][_0x100b4d(0x276)](_0x40decb,_0x100b4d(0x21a));this[_0x100b4d(0x28a)]['setVariable'](_0x462e83,_0x5aea2e);}return this[_0x100b4d(0x2a3)]['sync'](this,_0x40decb,_0x5aea2e),_0x37b0eb;},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x165)]=function(_0x2ed7fd){const _0x55a6d1=a1216_0x3d2d89;return logger['info'](util[_0x55a6d1(0x252)]('Enter\x20in\x20NOOP\x20(%s)\x20block',_0x2ed7fd[_0x55a6d1(0x120)])),this[_0x55a6d1(0x28a)][_0x55a6d1(0x165)](_0x2ed7fd[_0x55a6d1(0x24f)]||_0x2ed7fd[_0x55a6d1(0x120)]);},AGIVertices['prototype'][a1216_0x3d2d89(0x23d)]=function(_0x3fe0c8){const _0xe50b95=a1216_0x3d2d89;logger[_0xe50b95(0x115)](util[_0xe50b95(0x252)]('Enter\x20in\x20PAUSE\x20(%s)\x20block',_0x3fe0c8[_0xe50b95(0x120)]));if(!this[_0xe50b95(0x232)](_0x3fe0c8[_0xe50b95(0x147)]))return this[_0xe50b95(0x28a)][_0xe50b95(0x276)](_0x3fe0c8,_0xe50b95(0x243));logger[_0xe50b95(0x115)](util[_0xe50b95(0x252)](_0xe50b95(0x24e),this[_0xe50b95(0x28a)][_0xe50b95(0x1cf)],_0x3fe0c8[_0xe50b95(0x147)]));const _0x13a257=this['getPause'][_0xe50b95(0x291)](this,_0x3fe0c8[_0xe50b95(0x1b0)]),_0x5f175d=this[_0xe50b95(0x202)][_0xe50b95(0x291)](this,_0x3fe0c8[_0xe50b95(0x147)],_0x13a257);return _0x5f175d?(logger[_0xe50b95(0x115)](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0xe50b95(0x28a)][_0xe50b95(0x1cf)],_0x3fe0c8[_0xe50b95(0x147)])),this[_0xe50b95(0x28a)][_0xe50b95(0x165)](util[_0xe50b95(0x252)](_0xe50b95(0x119),this[_0xe50b95(0x28a)]['callerid'],_0x3fe0c8['findBy'])),{'code':0xc8,'result':_0xe50b95(0x191)}):(logger[_0xe50b95(0x115)](util[_0xe50b95(0x252)](_0xe50b95(0x1b2),this[_0xe50b95(0x28a)][_0xe50b95(0x1cf)],_0x3fe0c8['findBy'])),this[_0xe50b95(0x28a)]['noop'](util[_0xe50b95(0x252)](_0xe50b95(0x119),this['channel'][_0xe50b95(0x1cf)],_0x3fe0c8[_0xe50b95(0x147)])),{'code':0xc8,'result':'failure'});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1b8)]=function(_0x4aebaf){const _0x581280=a1216_0x3d2d89;logger[_0x581280(0x115)](util['format'](_0x581280(0x1f0),_0x4aebaf[_0x581280(0x120)]));if(!this[_0x581280(0x232)](_0x4aebaf[_0x581280(0x179)]))return this[_0x581280(0x28a)][_0x581280(0x276)](_0x4aebaf,_0x581280(0x28b));const _0x395ff5=this[_0x581280(0x1d1)][_0x581280(0x291)](this,_0x4aebaf[_0x581280(0x179)]);if(!_0x395ff5)return this[_0x581280(0x28a)][_0x581280(0x276)](_0x4aebaf,'no\x20file\x20audio\x20found');const _0x4dcd91=this[_0x581280(0x28a)][_0x581280(0x253)]('PLAYBACK',[_0x395ff5,_0x4aebaf['opts']]);if(_0x4dcd91['result']===-0x1)return _0x4dcd91;return this[_0x581280(0x28a)][_0x581280(0x165)](util['format']('Executed\x20command\x20%s\x20%s',_0x581280(0x27b),_0x395ff5));},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x283)]=function(_0x522531){const _0x8cf74b=a1216_0x3d2d89;logger[_0x8cf74b(0x115)](util[_0x8cf74b(0x252)]('Enter\x20in\x20QUEUE\x20(%s)\x20block',_0x522531[_0x8cf74b(0x120)]));if(!this[_0x8cf74b(0x232)](_0x522531[_0x8cf74b(0x117)]))return this[_0x8cf74b(0x28a)][_0x8cf74b(0x276)](_0x522531,_0x8cf74b(0xf6));let _0x5930ea='';const _0x557565=parseInt(_0x522531[_0x8cf74b(0x117)],0xa);if(isNaN(_0x557565))_0x5930ea=_0x522531[_0x8cf74b(0x117)];else{_0x5930ea=this[_0x8cf74b(0x152)][_0x8cf74b(0x291)](this,_0x522531[_0x8cf74b(0x117)]);if(!_0x5930ea)return this[_0x8cf74b(0x28a)][_0x8cf74b(0x276)](_0x522531,_0x8cf74b(0x2a5));}let _0x2549b0='';if(this['isConfigured'](_0x522531[_0x8cf74b(0x179)])){const _0xd4a13c=this[_0x8cf74b(0x1d1)][_0x8cf74b(0x291)](this,_0x522531[_0x8cf74b(0x179)]);_0xd4a13c&&(_0x2549b0=_0xd4a13c);}this['createSquareDetailsReport'][_0x8cf74b(0x291)](this,_0x522531,_0x5930ea);_0x522531[_0x8cf74b(0x22c)][_0x8cf74b(0x22b)]('x')<0x0&&(_0x522531[_0x8cf74b(0x22c)]+='x');_0x522531[_0x8cf74b(0x22c)]['indexOf']('X')<0x0&&(_0x522531[_0x8cf74b(0x22c)]+='X');this['channel'][_0x8cf74b(0x24b)](_0x8cf74b(0x197),_0x5930ea?_0x5930ea['toLowerCase']():'');const _0x5f43b7=this[_0x8cf74b(0x28a)][_0x8cf74b(0x253)](_0x8cf74b(0x1b4),[_0x5930ea,_0x522531[_0x8cf74b(0x22c)],_0x522531[_0x8cf74b(0x13a)],_0x2549b0,_0x522531[_0x8cf74b(0xe6)],_0x522531['agi'],_0x522531['macro'],_0x522531[_0x8cf74b(0x22f)],'',_0x522531[_0x8cf74b(0xfa)]]);if(_0x5f43b7[_0x8cf74b(0x16f)]===-0x1)return _0x5f43b7;return this[_0x8cf74b(0x28a)][_0x8cf74b(0x165)](util[_0x8cf74b(0x252)](_0x8cf74b(0x1ec),'QUEUE',_0x5930ea));},AGIVertices['prototype'][a1216_0x3d2d89(0x257)]=function(_0x4bb30f){const _0x51634a=a1216_0x3d2d89;logger[_0x51634a(0x115)](util['format'](_0x51634a(0x24d),_0x4bb30f['label']));const _0x1e25e6=_0x4bb30f['recordingFormat']||_0x51634a(0x266),_0x3d9ca2=util[_0x51634a(0x252)](_0x51634a(0x21c),this[_0x51634a(0x28a)][_0x51634a(0x212)],rs['generate'](0x5)),_0x54cbc0=util['format']('%s/recordings/%s.%s',FILES_PATH,_0x3d9ca2,_0x1e25e6),_0x2b354b=util['format']('%s/recordings/%s',FILES_PATH,_0x3d9ca2);return this[_0x51634a(0x19f)][_0x51634a(0x291)](this,_0x4bb30f,_0x3d9ca2,_0x54cbc0),this[_0x51634a(0x28a)][_0x51634a(0x24b)](_0x51634a(0x296),_0x3d9ca2),logger[_0x51634a(0x115)](_0x51634a(0x216),_0x2b354b,_0x1e25e6,_0x4bb30f[_0x51634a(0x269)],_0x4bb30f[_0x51634a(0xe6)]),this[_0x51634a(0x28a)]['recordFile'](_0x2b354b,_0x1e25e6,_0x4bb30f[_0x51634a(0x269)],_0x4bb30f[_0x51634a(0xe6)],undefined,!![]);},AGIVertices['prototype'][a1216_0x3d2d89(0x1ba)]=function(_0x411f81){const _0x536e0f=a1216_0x3d2d89;logger[_0x536e0f(0x115)](util[_0x536e0f(0x252)](_0x536e0f(0x172),_0x411f81[_0x536e0f(0x120)]));if(!this[_0x536e0f(0x232)](_0x411f81[_0x536e0f(0x13a)]))return this[_0x536e0f(0x28a)]['noop'](_0x536e0f(0x23a));const _0x5b8630=this[_0x536e0f(0x1a7)][_0x536e0f(0x291)](this,_0x411f81);logger[_0x536e0f(0x115)](util[_0x536e0f(0x252)]('Response:',util[_0x536e0f(0x1d9)](_0x5b8630,{'showHidden':![],'depth':null})));if(!this[_0x536e0f(0x232)](_0x411f81[_0x536e0f(0x261)]))return this[_0x536e0f(0x28a)][_0x536e0f(0x165)](_0x536e0f(0x107));const _0x39d56f=this[_0x536e0f(0x26e)][_0x536e0f(0x291)](this,_0x411f81['variable_id']);if(!_0x39d56f)return this[_0x536e0f(0x28a)]['error'](_0x411f81,_0x536e0f(0x21a));this[_0x536e0f(0x28a)][_0x536e0f(0x24b)](util['format'](_0x536e0f(0x1e4),_0x39d56f),_0x5b8630[_0x536e0f(0x277)]?_0x5b8630[_0x536e0f(0x277)]:_0x536e0f(0x237)),this[_0x536e0f(0x28a)][_0x536e0f(0x24b)](util['format']('%s_STATUS_MESSAGE',_0x39d56f),_0x5b8630[_0x536e0f(0xfd)]?_0x5b8630[_0x536e0f(0xfd)]:'OK');if(_0x5b8630['body'])try{this[_0x536e0f(0x13c)](_0x5b8630[_0x536e0f(0x21d)],_0x39d56f);}catch(_0x34bc31){logger[_0x536e0f(0x276)](util[_0x536e0f(0x252)](_0x536e0f(0x204),_0x39d56f));}return this[_0x536e0f(0x28a)][_0x536e0f(0x165)](util[_0x536e0f(0x252)]('variable\x20%s\x20set',_0x39d56f));},AGIVertices['prototype'][a1216_0x3d2d89(0x139)]=function(_0x5b1579){const _0x3ab386=a1216_0x3d2d89;return logger['info'](util[_0x3ab386(0x252)](_0x3ab386(0x148),_0x5b1579[_0x3ab386(0x120)])),this['channel'][_0x3ab386(0x109)](_0x5b1579[_0x3ab386(0x1ab)]['replace'](/\s+/g,''),_0x5b1579[_0x3ab386(0x269)]);},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x116)]=function(_0x482af9){const _0x3fd08a=a1216_0x3d2d89;return logger[_0x3fd08a(0x115)](util['format'](_0x3fd08a(0x199),_0x482af9[_0x3fd08a(0x120)])),this[_0x3fd08a(0x28a)][_0x3fd08a(0x26d)](_0x482af9[_0x3fd08a(0x1fe)][_0x3fd08a(0xff)](/\s+/g,''),_0x482af9[_0x3fd08a(0x269)]);},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x126)]=function(_0x281e03){const _0x13164e=a1216_0x3d2d89;return logger[_0x13164e(0x115)](util[_0x13164e(0x252)]('Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block',_0x281e03['label'])),this['channel']['sayPhonetic'](_0x281e03[_0x13164e(0xe7)],_0x281e03[_0x13164e(0x269)]);},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x146)]=function(_0x44f3fc){const _0x3b99c6=a1216_0x3d2d89;logger[_0x3b99c6(0x115)](util[_0x3b99c6(0x252)](_0x3b99c6(0x1dc),_0x44f3fc['label']));if(!this[_0x3b99c6(0x232)](_0x44f3fc[_0x3b99c6(0x1cc)]))return this[_0x3b99c6(0x28a)][_0x3b99c6(0x165)]('no\x20mail\x20account\x20configured');const _0x117055=this[_0x3b99c6(0x1c6)][_0x3b99c6(0x291)](this,_0x44f3fc['account_id']);if(!_0x117055||!_0x117055[_0x3b99c6(0x240)])return this['channel'][_0x3b99c6(0x276)](_0x44f3fc,_0x3b99c6(0xe2));const _0x30644d={'from':util[_0x3b99c6(0x252)]('\x22%s\x22\x20<%s>',_0x117055['name'],_0x117055[_0x3b99c6(0x1c8)]||_0x117055['Smtp'][_0x3b99c6(0x1ad)]),'to':_0x44f3fc['to']||'','cc':_0x44f3fc['cc']||'','bcc':_0x44f3fc['bcc']||'','subject':_0x44f3fc[_0x3b99c6(0x1e5)],'html':_0x44f3fc[_0x3b99c6(0xe7)],'text':_0x44f3fc[_0x3b99c6(0xe7)]},_0x49365c={'tls':{'rejectUnauthorized':![]}};_0x117055['Smtp'][_0x3b99c6(0xee)]?_0x49365c['service']=_0x117055[_0x3b99c6(0x240)][_0x3b99c6(0xee)]:(_0x49365c['host']=_0x117055[_0x3b99c6(0x240)][_0x3b99c6(0x189)],_0x49365c['port']=_0x117055[_0x3b99c6(0x240)][_0x3b99c6(0x122)],_0x49365c[_0x3b99c6(0x1fa)]=_0x117055['Smtp']['secure']);_0x117055[_0x3b99c6(0x240)]['authentication']&&(_0x49365c[_0x3b99c6(0x130)]={'user':_0x117055[_0x3b99c6(0x240)][_0x3b99c6(0x1ad)],'pass':_0x117055[_0x3b99c6(0x240)][_0x3b99c6(0x1c5)]});if(this['isConfigured'](_0x44f3fc[_0x3b99c6(0x25c)])){}return logger[_0x3b99c6(0x166)](_0x3b99c6(0x1bb),JSON[_0x3b99c6(0x1e9)](_0x30644d)),this[_0x3b99c6(0x2a3)]['sync'](this,_0x44f3fc,_0x44f3fc[_0x3b99c6(0x1cc)]),this[_0x3b99c6(0x28a)][_0x3b99c6(0x165)](util[_0x3b99c6(0x252)](_0x3b99c6(0x268),_0x117055['name'])),this['sendMailMessage'][_0x3b99c6(0x291)](this,_0x49365c,_0x30644d),this['channel'][_0x3b99c6(0x165)]('Mail\x20message\x20added\x20to\x20outgoing\x20process');},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x17f)]=function(_0x5b2ea4){const _0x695c2d=a1216_0x3d2d89;return logger[_0x695c2d(0x115)](util[_0x695c2d(0x252)](_0x695c2d(0x272),_0x5b2ea4[_0x695c2d(0x120)])),this[_0x695c2d(0x28a)][_0x695c2d(0x165)]('SENDFAX\x20block\x20not\x20implemented');},AGIVertices['prototype']['sendSMS']=function(_0x483c29){const _0xc1c588=a1216_0x3d2d89;logger[_0xc1c588(0x115)](util[_0xc1c588(0x252)]('Enter\x20in\x20SENDSMS\x20(%s)\x20block',_0x483c29[_0xc1c588(0x120)]));if(!this[_0xc1c588(0x232)](_0x483c29['sms_account_id']))return this[_0xc1c588(0x28a)]['noop'](_0xc1c588(0x110));const _0x1fd6c7=this['getSmsAccount'][_0xc1c588(0x291)](this,_0x483c29['sms_account_id']);if(!_0x1fd6c7)return this[_0xc1c588(0x28a)][_0xc1c588(0x276)](_0x483c29,_0xc1c588(0x222));const _0x452bb4={'body':_0x483c29[_0xc1c588(0x16a)],'phone':_0x483c29['to']||'','SmsAccountId':_0x1fd6c7['id']};return logger['debug'](_0xc1c588(0x241),JSON[_0xc1c588(0x1e9)](_0x452bb4)),this[_0xc1c588(0x2a3)]['sync'](this,_0x483c29,_0x483c29[_0xc1c588(0x1f5)]),this[_0xc1c588(0x28a)]['noop'](util[_0xc1c588(0x252)](_0xc1c588(0xfb),_0x1fd6c7[_0xc1c588(0x238)])),this[_0xc1c588(0x140)][_0xc1c588(0x291)](this,_0x452bb4),this[_0xc1c588(0x28a)][_0xc1c588(0x165)](_0xc1c588(0x1d3));},AGIVertices['prototype']['set']=function(_0x2f5561){const _0x4770e4=a1216_0x3d2d89;logger[_0x4770e4(0x115)](util['format']('Enter\x20in\x20SET\x20(%s)\x20block',_0x2f5561[_0x4770e4(0x120)]));if(!this[_0x4770e4(0x232)](_0x2f5561[_0x4770e4(0x261)]))return this[_0x4770e4(0x28a)][_0x4770e4(0x276)](_0x2f5561,_0x4770e4(0x22d));const _0x48b1cf=this[_0x4770e4(0x26e)][_0x4770e4(0x291)](this,_0x2f5561['variable_id']);if(!_0x48b1cf)return this[_0x4770e4(0x28a)][_0x4770e4(0x276)](_0x2f5561,_0x4770e4(0x21a));return this['channel']['setVariable'](_0x48b1cf,_0x2f5561['variable_value']);},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x25d)]=function(_0x1c4542){const _0x425ed8=a1216_0x3d2d89;logger[_0x425ed8(0x115)](util[_0x425ed8(0x252)](_0x425ed8(0x1d5),_0x1c4542[_0x425ed8(0x120)])),this[_0x425ed8(0x28a)][_0x425ed8(0x165)](_0x425ed8(0x27c));if(_0x1c4542['answer']==='yes')return this[_0x425ed8(0x28a)][_0x425ed8(0x165)](_0x425ed8(0x142)),this[_0x425ed8(0x28a)][_0x425ed8(0x1ae)]();return this['channel'][_0x425ed8(0x165)](_0x425ed8(0x180));},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x123)]=function(_0x5d3525){const _0x49ec62=a1216_0x3d2d89;logger['info'](util[_0x49ec62(0x252)](_0x49ec62(0x13f),_0x5d3525[_0x49ec62(0x120)]));if(!this[_0x49ec62(0x232)](_0x5d3525['project_id']))return this[_0x49ec62(0x28a)][_0x49ec62(0x276)](_0x5d3525,_0x49ec62(0x176));const _0x221bdd=this['getSquareProject'][_0x49ec62(0x291)](this,_0x5d3525[_0x49ec62(0x190)]);if(!this['isConfigured'](_0x221bdd))return this[_0x49ec62(0x28a)][_0x49ec62(0x276)](_0x5d3525,util[_0x49ec62(0x252)](_0x49ec62(0x14e),_0x5d3525[_0x49ec62(0x190)]));if(_0x221bdd===this['channel'][_0x49ec62(0x19d)])return this[_0x49ec62(0x28a)][_0x49ec62(0x276)](_0x5d3525,_0x49ec62(0xe3));this['createSquareDetailsReport']['sync'](this,_0x5d3525,_0x221bdd);const _0x418750=this['channel'][_0x49ec62(0x253)](_0x49ec62(0x149),util[_0x49ec62(0x252)]('agi://%s/square,\x22%s\x22,\x22%s\x22',config[_0x49ec62(0x1f7)][_0x49ec62(0x189)]||_0x49ec62(0x23e),_0x221bdd,this['channel'][_0x49ec62(0x19d)]));if(_0x418750['result']===-0x1)return _0x418750;return this[_0x49ec62(0x28a)][_0x49ec62(0x165)](util[_0x49ec62(0x252)](_0x49ec62(0x1ec),_0x49ec62(0x149),_0x221bdd));},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x15b)]=function(_0x2a7b76){const _0x3478fc=a1216_0x3d2d89;logger[_0x3478fc(0x115)](util[_0x3478fc(0x252)](_0x3478fc(0x1de),_0x2a7b76['label']));const _0x484f6b=this[_0x3478fc(0x1be)][_0x3478fc(0x291)](this,_0x2a7b76[_0x3478fc(0x127)]);this[_0x3478fc(0x2a3)]['sync'](this,_0x2a7b76,_0x2a7b76[_0x3478fc(0x127)]);if(this[_0x3478fc(0x232)](_0x2a7b76['variable_id'])){const _0x12b6dc=this[_0x3478fc(0x26e)][_0x3478fc(0x291)](this,_0x2a7b76['variable_id']);if(_0x12b6dc)return this[_0x3478fc(0x28a)][_0x3478fc(0x24b)](_0x12b6dc,_0x484f6b),this[_0x3478fc(0x28a)][_0x3478fc(0x165)](util[_0x3478fc(0x252)](_0x3478fc(0xef),_0x2a7b76[_0x3478fc(0x127)],_0x12b6dc));}return this['channel']['noop'](util[_0x3478fc(0x252)]('sh\x20command:\x20%s\x20result\x20no\x20stored',_0x2a7b76['command']));},AGIVertices[a1216_0x3d2d89(0x13d)]['google_cloud_tts']=function(_0x495ea7){const _0x506b14=a1216_0x3d2d89;logger['info'](util['format'](_0x506b14(0x1f3),_0x495ea7[_0x506b14(0x120)])),_0x495ea7[_0x506b14(0xe7)]=_0x495ea7[_0x506b14(0xe7)][_0x506b14(0xff)](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x506b14(0x232)](_0x495ea7[_0x506b14(0x13b)]))return this[_0x506b14(0x28a)][_0x506b14(0x165)](_0x506b14(0x1df));if(!this[_0x506b14(0x232)](_0x495ea7['text']))return this['channel'][_0x506b14(0x165)](_0x506b14(0x1a2));this[_0x506b14(0x28a)]['noop'](util['format'](_0x506b14(0x256),_0x495ea7[_0x506b14(0xe7)]));const _0x3df334=this[_0x506b14(0x228)][_0x506b14(0x291)](this,_0x495ea7);if(_0x3df334){this[_0x506b14(0x28a)][_0x506b14(0x165)](util[_0x506b14(0x252)](_0x506b14(0x104),_0x3df334));const _0x4b6b49=this[_0x506b14(0x28a)]['streamFile'](_0x3df334);try{fs[_0x506b14(0x19c)](_0x3df334+_0x506b14(0xe9));}catch(_0xd7ea39){logger[_0x506b14(0x276)](_0xd7ea39);}return _0x4b6b49;}return this['channel'][_0x506b14(0x276)](_0x495ea7,_0x506b14(0xe1));},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1b6)]=function(_0x15f5db){const _0x22d645=a1216_0x3d2d89;logger['info'](util[_0x22d645(0x252)](_0x22d645(0x15e),_0x15f5db[_0x22d645(0x120)])),_0x15f5db[_0x22d645(0xe7)]=_0x15f5db[_0x22d645(0xe7)]['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x15f5db['text']))return this[_0x22d645(0x28a)]['noop'](_0x22d645(0x1a2));this[_0x22d645(0x28a)]['noop'](util['format'](_0x22d645(0x21e),_0x15f5db[_0x22d645(0xe7)]));const _0x29867e=this[_0x22d645(0x235)][_0x22d645(0x291)](this,_0x15f5db);if(_0x29867e){this[_0x22d645(0x28a)][_0x22d645(0x165)](util[_0x22d645(0x252)](_0x22d645(0x1e6),_0x29867e));const _0x12f5dd=this[_0x22d645(0x28a)][_0x22d645(0x248)](_0x29867e);try{fs[_0x22d645(0x19c)](_0x29867e+_0x22d645(0xe9));}catch(_0x3ddfc7){logger['error'](_0x3ddfc7);}return _0x12f5dd;}return this[_0x22d645(0x28a)][_0x22d645(0x276)](_0x15f5db,_0x22d645(0x18e));},AGIVertices['prototype'][a1216_0x3d2d89(0x1b9)]=function(_0x594c19){const _0x90a5b5=a1216_0x3d2d89;logger['info'](util['format']('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0x594c19[_0x90a5b5(0x120)]));if(!this[_0x90a5b5(0x232)](_0x594c19[_0x90a5b5(0x147)]))return this[_0x90a5b5(0x28a)][_0x90a5b5(0x276)](_0x594c19,'no\x20find\x20by\x20configured');logger['info'](util[_0x90a5b5(0x252)]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x90a5b5(0x28a)][_0x90a5b5(0x1cf)],_0x594c19[_0x90a5b5(0x147)]));const _0x226165=this['agentUnpause'][_0x90a5b5(0x291)](this,_0x594c19[_0x90a5b5(0x147)]);return _0x226165?(logger['info'](util[_0x90a5b5(0x252)](_0x90a5b5(0x119),this[_0x90a5b5(0x28a)][_0x90a5b5(0x1cf)],_0x594c19['findBy'])),this[_0x90a5b5(0x28a)][_0x90a5b5(0x165)](util[_0x90a5b5(0x252)](_0x90a5b5(0x119),this[_0x90a5b5(0x28a)][_0x90a5b5(0x1cf)],_0x594c19['findBy'])),{'code':0xc8,'result':_0x90a5b5(0x191)}):(logger[_0x90a5b5(0x115)](util[_0x90a5b5(0x252)](_0x90a5b5(0x1b2),this[_0x90a5b5(0x28a)][_0x90a5b5(0x1cf)],_0x594c19['findBy'])),this[_0x90a5b5(0x28a)][_0x90a5b5(0x165)](util[_0x90a5b5(0x252)](_0x90a5b5(0x1b2),this[_0x90a5b5(0x28a)][_0x90a5b5(0x1cf)],_0x594c19[_0x90a5b5(0x147)])),{'code':0xc8,'result':_0x90a5b5(0x18a)});},AGIVertices[a1216_0x3d2d89(0x13d)][a1216_0x3d2d89(0x1e2)]=function(_0x226f94){const _0x42e3fb=a1216_0x3d2d89;logger[_0x42e3fb(0x115)](util[_0x42e3fb(0x252)]('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x226f94[_0x42e3fb(0x120)]));const _0x3a7eb9=this[_0x42e3fb(0x28a)][_0x42e3fb(0x253)](_0x42e3fb(0x21b),[_0x226f94['mailbox'],_0x226f94['options']]);if(_0x3a7eb9['result']===-0x1)return _0x3a7eb9;return this[_0x42e3fb(0x28a)][_0x42e3fb(0x165)](util[_0x42e3fb(0x252)](_0x42e3fb(0x1ec),'VOICEMAIL',_0x226f94[_0x42e3fb(0xf2)]));},AGIVertices['prototype']['vswitch']=function(_0x29cf20){const _0x2ed87a=a1216_0x3d2d89;logger[_0x2ed87a(0x115)](util[_0x2ed87a(0x252)]('Enter\x20in\x20SWITCH\x20(%s)\x20block',_0x29cf20[_0x2ed87a(0x120)]));if(!this['isConfigured'](_0x29cf20[_0x2ed87a(0x261)]))return this[_0x2ed87a(0x28a)][_0x2ed87a(0x276)](_0x29cf20,_0x2ed87a(0x22d));const _0x3cad80=this[_0x2ed87a(0x26e)][_0x2ed87a(0x291)](this,_0x29cf20[_0x2ed87a(0x261)]);if(!_0x3cad80)return this[_0x2ed87a(0x28a)][_0x2ed87a(0x276)](_0x29cf20,_0x2ed87a(0x21a));const _0x41f0b5=this[_0x2ed87a(0x28a)][_0x2ed87a(0x26e)](_0x3cad80);return{'code':0xc8,'result':_0x41f0b5[_0x2ed87a(0xf0)]?_0x41f0b5[_0x2ed87a(0xf0)]:'-'};},String['prototype'][a1216_0x3d2d89(0x214)]=function(_0x5e292a,_0x20e5ce){return this['split'](_0x5e292a)['join'](_0x20e5ce);},module[a1216_0x3d2d89(0x160)]=AGIVertices; \ No newline at end of file +const a1216_0x5200=['Enter\x20in\x20DIAL\x20(%s)\x20block','ssmlGender','POST','uri','catch','indexOf','out','voicemail','Enter\x20in\x20MENU\x20(%s)\x20block','aws_text_type','request-promise-native','odbc_id','moment','DIALOGFLOW_%s','forEach','port','START\x20CALLY\x20SQUARE','no\x20file\x20audio\x20selected','getAndSetVariable','substr','sestekasr','googleCloudTTS','no\x20mail\x20account\x20configured','sayDigits','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','url','no\x20variable\x20selected','service','bot','trunk_id','saydigits','wait','no\x20sms\x20account\x20configured','getSquareProjectById','method','no\x20trunk\x20found','ispeech\x20TTS\x20is\x20unreachable','getVariable','200','MRCP_RECOG_CONFIDENCE','accountcode','VOICEMAIL','isConfigured','mrcpsynth','createSquareMessage','isString','Response:','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','lodash','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','Trying\x20SendMail\x20with\x20account\x20%s','priority','trunk_name','MP3','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','getSoundById','AGENT\x20%s\x20FOUND\x20BY','finally','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','aws_access_key_id','client_email','result','Enter\x20in\x20SYSTEM\x20(%s)\x20block','private_key','agentPause','%s_ROWS_COUNT','retry','./scripts','GoogleASR\x20Result\x20%s','Enter\x20in\x20START\x20(%s)\x20block','util','SIP/%s/%s','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','awsLex','aws_lex_region','Enter\x20in\x20AGI\x20(%s)\x20block','aws_polly_region','digits','SESTEK_ASR_INSTANCE','queue_id','setVariable','macro','no\x20valid\x20credentials\x20configured','sync','dsn','appsecret','success','Trying\x20SendSMS\x20with\x20account\x20%s','Enter\x20in\x20RESTAPI\x20(%s)\x20block','options','join','first','googleDialogflow','condition','en-US','%s/%s@from-sip/n','number','DialogflowV2\x20is\x20unreachable','ispeechTTS','agicommand','getVoiceQueueById','arg_1','sestekNDA','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','subject','getsecretdigits','gotoiftime','application','undefined','record','calleridname','operation','Executed\x20command\x20MRCPRecog\x20%s','Enter\x20in\x20SENDSMS\x20(%s)\x20block','sendMailMessage','XMCS-QUEUE','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','exec','username','timeout','no\x20list\x20selected','RECORDING_SAVENAME','parse','Amy','AWS_LEX_%s','no\x20subproject\x20found\x20with\x20id\x20%d','Enter\x20in\x20END\x20(%s)\x20block','languageCode','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','restapi','getdigits','createCmContact','no\x20ndauth\x20url\x20configured','headers','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','tilde\x20%s\x20file\x20created','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','custom_app','PLAYBACK','phone','shelljs','interval_id','Trying\x20SestekNDA:\x20%s','rpc','getPauseById','bcc','Executed\x20command\x20%s','sayPhonetic','model','Error\x20getting\x20ODBC\x20connection\x20%s','getSmsAccount','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','Callback\x20scheduled\x20at\x20','context','Skipped\x20Answer','Trying\x20Google\x20TTS\x20%s','127.0.0.1','error','MRCP_RECOG_INSTANCE','agentLogin','streamFile','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','project_id','unpause','Amazon\x20Lex\x20Result\x20%s','false','aws_secret_access_key','variable_id','ndassistant_url','Enter\x20in\x20LOGOUT\x20(%s)\x20block','sendFax','MRCP_RECOG_TRANSCRIPT','Enter\x20in\x20QUEUE\x20(%s)\x20block','google_asr_language','split','sms_account_id','replaceAllVariables','database','maxdigit','no\x20grammar\x20configured','%s.%s','no\x20queue\x20found','random','AGENT\x20%s\x20NOT\x20FOUND\x20BY','intKey','close','Sestek\x20NDA\x20%s\x20file\x20created','FIND\x20AGENT\x20%s\x20BY\x20%s','ext_dial','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','isPlainObject','no\x20apiKey\x20configured','gosub','google_tts_language','mindigit','playback','statusCode','Smtp','AGI','channel','getVariableById','googleDialogflowV2','mustache','render','rawBody','Google\x20TTS\x20is\x20unreachable','no\x20intervals\x20found','callerid','agi://%s/square,\x22%s\x22,\x22%s\x22','no\x20subproject\x20selected','grammar','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','no\x20appsecret\x20configured','sendSMS','.wav','NOBEEP','text','getVoiceQueue','format','Enter\x20in\x20CALLBACK\x20(%s)\x20block','shellCommand','prototype','maxRetry','goal','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','google_cloud_tts_text_type','debug','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','LOCAL','no\x20mail\x20account\x20found','no\x20sms\x20account\x20found','dialogflowV2','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','tildeASR','audioEncoding','ispeechasr','GOOGLE_ASR_%s','length','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','dialogflowV2_language','ispeech_asr_language','Trying\x20aws\x20Polly\x20%s','no\x20user\x20selected','no\x20username\x20configured','math','Enter\x20in\x20GOTO\x20(%s)\x20block','file','createSquareRecording','Dialogflow\x20Result\x20%s','user','email','Google\x20TTS\x20%s\x20file\x20created','gotoif','callback_','keys','dialogflow_language','Amazon\x20Lex\x20is\x20unreachable','agi','sh\x20command:\x20%s\x20result\x20no\x20stored','no\x20variable\x20selected\x20for\x20the\x20response','interval','uniqueid','createSquareDetailsReport','lastName','authentication','recordFile','Enter\x20in\x20SWITCH\x20(%s)\x20block','position','file_id','sesteknda','restAPI','vswitch','system','randomstring','recordingFormat','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','no\x20url\x20configured','Enter\x20in\x20RECORD\x20(%s)\x20block','recursiveNodeIndex','includes','getTrunkById','rawHeaders','ispeechtts','getPause','SENDFAX\x20block\x20not\x20implemented','no\x20condition\x20configured','command','dialogflowV2_project_id','hangup','IspeechASR\x20Result\x20%s','findBy','QUEUE','mailRpc','getQueryOdbc','awslex','googleASR','SESTEK_NDA_%s','sendMail','sip_id','RECOG_INPUT()','trim','google_cloud_tts','exports','name','Enter\x20in\x20HANGUP\x20(%s)\x20block','TildeASR\x20Result\x20%s','agent','RECOG_CONFIDENCE()','response','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','lumenvoxasr','speed','DIAL','isNil','callback_priority','wav','queue','minutes','replace','scheduledAt','end','getSquareOdbc','getIntervals','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','no\x20client_email\x20configured','GOAL\x20%s','beep','logout','query','google\x20%s\x20file\x20created','createSmsMessage','goalname','replaceObjectAllVariables','no\x20appid\x20configured','no\x20queue\x20selected','Error\x20closing\x20connection\x20to\x20odbc\x20%s','Amazon\x20Lex\x20ready\x20for\x20fulfillment','opts','lumenvoxtts','pause_id','continueAt','Enter\x20in\x20SENDFAX\x20(%s)\x20block','callback','no\x20file\x20audio\x20found','Recording\x20%s\x20%s\x20%s\x20%s','%s_STATUS_MESSAGE','Query\x20executed\x20correctly\x20%s','Trying\x20Google\x20Cloud\x20TTS\x20%s','dialogflow','auth','MRCPSynth','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','args','extension','ispeechASR','aws_polly_voice','googleasr','no\x20text\x20configured','\x22%s\x22\x20<%s>','label','isEmpty','info','extra','subproject','agentLogout','toUpperCase','audiofile','Executed\x20command\x20%s\x20%s','map','hiddendigitspos','%s_STATUS_CODE','account_id','Enter\x20in\x20PAUSE\x20(%s)\x20block','TILDE_ASR_%s','Dialogflow\x20is\x20unreachable','true','start','no\x20private_key\x20configured','RECOG_INSTANCE()','ispeech\x20%s\x20file\x20created','message','SESTEK_ASR_CONFIDENCE','no\x20odbc\x20database\x20found','Trying\x20Amazon\x20Lex:\x20%s','replaceAll','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','tts','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','%s/recordings/%s','escape_digits','toString','odbc','unlink','host','no\x20find\x20by\x20configured','%s/sounds/converted/%s','SestekNDA\x20is\x20unreachable','body','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','apiKey','noop','variable_value','getMailAccount','getSound','key','speech','inspect','pass','pause','MRCPRecog','sendSMS\x20message','awsPolly','mailbox','googleTTS','isArray','output','gotoc','no\x20bot\x20name\x20configured','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','failure','delay','../../config/environment','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','%s_%s','hiddendigitsnum','secure','save_name','sendMail\x20message','getData','saveRestApiResult','computedVariables','Answer','answer','Executed\x20command\x20MRCPSynth\x20%s','add','no\x20variable\x20selected\x20for\x20the\x20result','getTrunk','variable\x20%s[key]\x20set','dial','then','no\x20variable\x20found','no\x20key\x20configured','mrcprecog','IntervalId','getSmsAccountById','IFTIME\x20%s\x20%s','no\x20user\x20found','no\x20interval\x20configured','getSoundPath','getUser','%s[%s][%s]','statusMessage','no\x20password\x20configured','generate','Error\x20executing\x20query\x20%s','providerResponse','stringify','list_id','LUMENVOX_ASR_CONFIDENCE','ODBC\x20connection\x20successfully'];(function(_0xa030ea,_0x2182f1){const _0x52006f=function(_0x2f6df3){while(--_0x2f6df3){_0xa030ea['push'](_0xa030ea['shift']());}};_0x52006f(++_0x2182f1);}(a1216_0x5200,0x13d));const a1216_0x2f6d=function(_0xa030ea,_0x2182f1){_0xa030ea=_0xa030ea-0x143;let _0x52006f=a1216_0x5200[_0xa030ea];return _0x52006f;};const a1216_0x5756ff=a1216_0x2f6d;'use strict';const fs=require('fs'),util=require(a1216_0x5756ff(0x21c)),_=require(a1216_0x5756ff(0x206)),sh=require(a1216_0x5756ff(0x263)),odbc=require(a1216_0x5756ff(0x191)),rs=require(a1216_0x5756ff(0x2e9)),moment=require(a1216_0x5756ff(0x1e2)),Mustache=require(a1216_0x5756ff(0x2a2)),rp=require(a1216_0x5756ff(0x1e0)),logger=require('../../config/logger')(a1216_0x5756ff(0x2d9)),config=require(a1216_0x5756ff(0x1af)),scripts=require(a1216_0x5756ff(0x219)),FILES_PATH='/var/opt/motion2/server/files',recursiveMapAttributes=[a1216_0x5756ff(0x2f1),a1216_0x5756ff(0x2a4)],verticesWithRetry=['menu',a1216_0x5756ff(0x258),a1216_0x5756ff(0x23f)],AGIVertices=function(_0x352b09,_0x4d6553,_0x18d721){const _0x21534d=a1216_0x5756ff;this[_0x21534d(0x29f)]=_0x352b09,this[_0x21534d(0x266)]=_0x4d6553,this[_0x21534d(0x2fc)]=_0x18d721;};AGIVertices[a1216_0x5756ff(0x2b5)]['getVariable']=function(_0x19f8a7,_0x11165e){const _0x4a2b3f=a1216_0x5756ff;this['rpc'][_0x4a2b3f(0x2a0)](_0x19f8a7)[_0x4a2b3f(0x1c1)](function(_0x48ef46){const _0x34c591=_0x4a2b3f;_0x11165e(null,_0x48ef46?_0x48ef46[_0x34c591(0x307)]:![]);})[_0x4a2b3f(0x1da)](function(_0x14cf52){_0x11165e(_0x14cf52);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x2b1)]=function(_0x4441bc,_0x2604d2){const _0x416f05=a1216_0x5756ff;this[_0x416f05(0x266)][_0x416f05(0x23a)](_0x4441bc)[_0x416f05(0x1c1)](function(_0x18152d){const _0xca74bc=_0x416f05;_0x2604d2(null,_0x18152d?_0x18152d[_0xca74bc(0x307)]:![]);})[_0x416f05(0x1da)](function(_0x5e4701){_0x2604d2(_0x5e4701);});},AGIVertices[a1216_0x5756ff(0x2b5)]['getSquareProject']=function(_0x88237a,_0x1763be){const _0x4531a6=a1216_0x5756ff;this[_0x4531a6(0x266)][_0x4531a6(0x1f7)](_0x88237a)['then'](function(_0x279e39){_0x1763be(null,_0x279e39?_0x279e39['name']:![]);})[_0x4531a6(0x1da)](function(_0x28b539){_0x1763be(_0x28b539);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x14a)]=function(_0x3c13e0,_0x416ac4){const _0x1e5f84=a1216_0x5756ff;this[_0x1e5f84(0x266)]['getSquareOdbcById'](_0x3c13e0)['then'](function(_0x1c1181){const _0x1c737b=_0x1e5f84;_0x416ac4(null,_0x1c1181?_0x1c1181[_0x1c737b(0x22a)]:![]);})[_0x1e5f84(0x1da)](function(_0xe82daf){_0x416ac4(_0xe82daf);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x1cb)]=function(_0x1f73ea,_0x4fbf9a){const _0x24400d=a1216_0x5756ff;this[_0x24400d(0x266)]['getUserById'](_0x1f73ea)[_0x24400d(0x1c1)](function(_0x1235f6){const _0x306d22=_0x24400d;_0x4fbf9a(null,_0x1235f6?_0x1235f6[_0x306d22(0x307)]:![]);})[_0x24400d(0x1da)](function(_0x221aab){_0x4fbf9a(_0x221aab);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x1be)]=function(_0x517932,_0x24c2d0){const _0x449811=a1216_0x5756ff;this[_0x449811(0x266)][_0x449811(0x2f0)](_0x517932)[_0x449811(0x1c1)](function(_0x2bba67){const _0xc2c54=_0x449811;_0x24c2d0(null,_0x2bba67?_0x2bba67[_0xc2c54(0x307)]:![]);})[_0x449811(0x1da)](function(_0x550ad0){_0x24c2d0(_0x550ad0);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x19d)]=function(_0x32e414,_0x28af86){const _0x298d09=a1216_0x5756ff,_0x3c4a1a=this;this['rpc'][_0x298d09(0x20d)](_0x32e414)['then'](function(_0x4507d1){const _0x1c55ac=_0x298d09;_0x28af86(null,_0x4507d1?_0x3c4a1a[_0x1c55ac(0x1ca)](_0x4507d1[_0x1c55ac(0x1b4)]):![]);})[_0x298d09(0x1da)](function(_0x2c6fd7){_0x28af86(_0x2c6fd7);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x19c)]=function(_0x209e52,_0x2b9c41){const _0x19de66=a1216_0x5756ff;this['rpc']['getMailAccountById'](_0x209e52)[_0x19de66(0x1c1)](function(_0x59410c){_0x2b9c41(null,_0x59410c?_0x59410c:![]);})[_0x19de66(0x1da)](function(_0x4a2103){_0x2b9c41(_0x4a2103);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x248)]=function(_0x282e17,_0x3b805a,_0x8857ca){const _0x338dad=a1216_0x5756ff;this[_0x338dad(0x2fc)][_0x338dad(0x248)](_0x282e17,_0x3b805a)[_0x338dad(0x1c1)](function(){_0x8857ca(null);})[_0x338dad(0x1da)](function(_0x29709d){_0x8857ca(_0x29709d);});},AGIVertices['prototype'][a1216_0x5756ff(0x14b)]=function(_0x53733c,_0x47f300){const _0x46ed53=a1216_0x5756ff;this[_0x46ed53(0x266)]['getIntervalById'](_0x53733c)[_0x46ed53(0x1c1)](function(_0x552fbb){const _0x4efcb5=_0x46ed53;_0x552fbb?_0x552fbb[_0x4efcb5(0x1c5)]?_0x47f300(null,[_0x552fbb[_0x4efcb5(0x2dc)]]):_0x47f300(null,_[_0x4efcb5(0x17a)](_0x552fbb['Intervals'],'interval')):_0x47f300(null,![]);})[_0x46ed53(0x1da)](function(_0x14223f){_0x47f300(_0x14223f);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x1ca)]=function(_0x2203ed){const _0x4bb327=a1216_0x5756ff;return util[_0x4bb327(0x2b2)](_0x4bb327(0x195),FILES_PATH,_0x2203ed);},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x2fd)]=function(_0x132d54,_0x31b5e0,_0x4b51e0){odbc['open'](_0x132d54,function(_0x437806){const _0x5a9954=a1216_0x2f6d;_0x437806?(logger[_0x5a9954(0x275)](_0x5a9954(0x26c),_0x437806),_0x4b51e0(_0x437806)):(logger[_0x5a9954(0x173)](_0x5a9954(0x1d5)),odbc[_0x5a9954(0x152)](_0x31b5e0,function(_0x2233ce,_0x50853e){const _0x260105=_0x5a9954;_0x2233ce?(logger[_0x260105(0x173)](_0x260105(0x1d0),_0x31b5e0),_0x4b51e0(_0x2233ce)):(logger['info'](_0x260105(0x164),_0x31b5e0),odbc[_0x260105(0x291)](function(_0x2a5da9){const _0x524805=_0x260105;_0x2a5da9&&logger[_0x524805(0x275)](_0x524805(0x159),_0x2a5da9),_0x4b51e0(null,_0x50853e);}));}));});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x26d)]=function(_0x5fcb28,_0x383635){const _0xaa7f8=a1216_0x5756ff;this[_0xaa7f8(0x266)][_0xaa7f8(0x1c6)](_0x5fcb28)['then'](function(_0x444db8){_0x383635(null,_0x444db8?_0x444db8:![]);})['catch'](function(_0x2ced01){_0x383635(_0x2ced01);});},AGIVertices['prototype'][a1216_0x5756ff(0x154)]=function(_0x44bba0,_0x7b232f){const _0x517e04=a1216_0x5756ff;this[_0x517e04(0x266)]['createSmsMessage'](_0x44bba0)[_0x517e04(0x1c1)](function(_0x177450){_0x7b232f(null,_0x177450);})[_0x517e04(0x1da)](function(_0x3f2ec7){_0x7b232f(_0x3f2ec7);});},AGIVertices[a1216_0x5756ff(0x2b5)]['createSquareDetailsReport']=function(_0x2cc052,_0x9eb783,_0x214881){const _0x18cfdc=a1216_0x5756ff;this['rpc'][_0x18cfdc(0x2de)]({'uniqueid':this['channel'][_0x18cfdc(0x2dd)],'node':_0x2cc052['label'],'application':_0x2cc052[_0x18cfdc(0x239)],'data':_0x9eb783||null,'project_name':this[_0x18cfdc(0x29f)][_0x18cfdc(0x23b)],'callerid':this[_0x18cfdc(0x29f)][_0x18cfdc(0x2a7)]})[_0x18cfdc(0x1c1)](function(_0x54c49f){_0x214881&&_0x214881(null,_0x54c49f);})[_0x18cfdc(0x1da)](function(_0x19eba2){_0x214881&&_0x214881(_0x19eba2);});},AGIVertices['prototype']['createSquareRecording']=function(_0x31cd3e,_0xb7c37a,_0x1e4e2e,_0x14e2a3){const _0x1d4574=a1216_0x5756ff;this[_0x1d4574(0x266)][_0x1d4574(0x2cf)]({'uniqueid':this[_0x1d4574(0x29f)][_0x1d4574(0x2dd)],'callerid':this['channel'][_0x1d4574(0x2a7)],'calleridname':this[_0x1d4574(0x29f)][_0x1d4574(0x244)],'context':this[_0x1d4574(0x29f)][_0x1d4574(0x271)],'extension':this[_0x1d4574(0x29f)][_0x1d4574(0x16b)],'priority':this['channel']['priority'],'accountcode':this[_0x1d4574(0x29f)][_0x1d4574(0x1fe)],'dnid':this['channel']['dnid'],'projectName':this['channel']['arg_1'],'saveName':_0xb7c37a,'filename':_0x31cd3e[_0x1d4574(0x2ce)]||_0xb7c37a,'savePath':_0x1e4e2e})['then'](function(_0x2ca900){_0x14e2a3(null,_0x2ca900);})[_0x1d4574(0x1da)](function(_0x1df8de){_0x14e2a3(_0x1df8de);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x202)]=function(_0x2668db,_0x263f83,_0xc7fd99,_0x5e0c22,_0x3b2513){const _0x49ebc9=a1216_0x5756ff;this[_0x49ebc9(0x266)][_0x49ebc9(0x202)]({'uniqueid':this[_0x49ebc9(0x29f)][_0x49ebc9(0x2dd)],'body':_0x2668db,'direction':_0x263f83,'providerName':_0xc7fd99,'providerResponse':_0x5e0c22})[_0x49ebc9(0x1c1)](function(_0x19faea){_0x3b2513&&_0x3b2513(null,_0x19faea);})['catch'](function(_0x20cf2e){_0x3b2513&&_0x3b2513(_0x20cf2e);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x259)]=function(_0x526ec2,_0x21196d){const _0x4b99c7=a1216_0x5756ff;this[_0x4b99c7(0x266)][_0x4b99c7(0x259)]({'firstName':_['isEmpty'](_0x526ec2[_0x4b99c7(0x307)])||_[_0x4b99c7(0x312)](_0x526ec2[_0x4b99c7(0x307)])?_0x4b99c7(0x2d5)+Math[_0x4b99c7(0x28e)]():_0x526ec2[_0x4b99c7(0x307)],'lastName':_[_0x4b99c7(0x172)](_0x526ec2[_0x4b99c7(0x2df)])||_[_0x4b99c7(0x312)](_0x526ec2[_0x4b99c7(0x2df)])?null:_0x526ec2[_0x4b99c7(0x2df)],'phone':_0x526ec2[_0x4b99c7(0x262)],'ListId':_0x526ec2[_0x4b99c7(0x1d3)],'scheduledat':_0x526ec2['scheduledAt'],'callbackUniqueid':this['channel']['uniqueid'],'tags':_0x4b99c7(0x160),'description':_0x4b99c7(0x270)+_0x526ec2[_0x4b99c7(0x148)][_0x4b99c7(0x190)](),'priority':_0x526ec2['callback_priority']})[_0x4b99c7(0x1c1)](function(_0x5f4c62){_0x21196d(null,_0x5f4c62);})[_0x4b99c7(0x1da)](function(_0x172554){_0x21196d(_0x172554);});},AGIVertices[a1216_0x5756ff(0x2b5)]['getPause']=function(_0x58a670,_0xadb264){const _0xa9dc1=a1216_0x5756ff;this[_0xa9dc1(0x266)][_0xa9dc1(0x267)](_0x58a670)[_0xa9dc1(0x1c1)](function(_0x45697b){_0xadb264(null,_0x45697b?_0x45697b['name']:![]);})[_0xa9dc1(0x1da)](function(_0x3fb83f){_0xadb264(_0x3fb83f);});},AGIVertices['prototype'][a1216_0x5756ff(0x216)]=function(_0x3b1433,_0xd73b38,_0x52761c){const _0x19d21a=a1216_0x5756ff,_0x1d4d80={'role':_0x19d21a(0x30a)};_0x1d4d80[_0x3b1433]=this[_0x19d21a(0x29f)]['callerid'],this[_0x19d21a(0x266)]['agentPause'](_0x1d4d80,_0xd73b38,this['channel']['uniqueid'])[_0x19d21a(0x1c1)](function(_0x401cfd){const _0x5a4723=_0x19d21a;_0x52761c(null,_[_0x5a4723(0x312)](_0x401cfd)?![]:!![]);})[_0x19d21a(0x1da)](function(_0x49fa85){logger['error'](_0x49fa85),_0x52761c(null,![]);});},AGIVertices[a1216_0x5756ff(0x2b5)]['agentUnpause']=function(_0x3581bd,_0x26655c){const _0x40a5fa=a1216_0x5756ff,_0x2642dd={'role':'agent'};_0x2642dd[_0x3581bd]=this[_0x40a5fa(0x29f)][_0x40a5fa(0x2a7)],this[_0x40a5fa(0x266)]['agentUnpause'](_0x2642dd)[_0x40a5fa(0x1c1)](function(_0x11c205){const _0xb1bc5b=_0x40a5fa;_0x26655c(null,_[_0xb1bc5b(0x312)](_0x11c205)?![]:!![]);})[_0x40a5fa(0x1da)](function(_0x480362){logger['error'](_0x480362),_0x26655c(null,![]);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x176)]=function(_0x2dc876,_0x1a108c){const _0x4bb25f=a1216_0x5756ff,_0x592f57={'role':_0x4bb25f(0x30a)};_0x592f57[_0x2dc876]=this[_0x4bb25f(0x29f)][_0x4bb25f(0x2a7)],this[_0x4bb25f(0x266)][_0x4bb25f(0x176)](_0x592f57)[_0x4bb25f(0x1c1)](function(_0x2fa4bd){const _0x1f7561=_0x4bb25f;_0x1a108c(null,_[_0x1f7561(0x312)](_0x2fa4bd)?![]:!![]);})['catch'](function(_0x406b44){logger['error'](_0x406b44),_0x1a108c(null,![]);});},AGIVertices['prototype'][a1216_0x5756ff(0x277)]=function(_0x4342bb,_0x449d70){const _0x31b054=a1216_0x5756ff,_0x29e1c2={'role':'agent'};_0x29e1c2[_0x4342bb]=this[_0x31b054(0x29f)]['callerid'];const _0x48909b=_0x4342bb!='internal'?util[_0x31b054(0x2b2)](_0x31b054(0x235),_0x31b054(0x2bc),this[_0x31b054(0x29f)][_0x31b054(0x2a7)]):undefined;this['rpc'][_0x31b054(0x277)](_0x29e1c2,_0x48909b)[_0x31b054(0x1c1)](function(_0x55b496){const _0x560681=_0x31b054;_0x449d70(null,_[_0x560681(0x312)](_0x55b496)?![]:!![]);})[_0x31b054(0x1da)](function(_0x3e6bfc){logger['error'](_0x3e6bfc),_0x449d70(null,![]);});},AGIVertices['prototype'][a1216_0x5756ff(0x2b4)]=function(_0x32c3c8,_0x97480e){const _0x5d6f70=a1216_0x5756ff;sh['exec'](_[_0x5d6f70(0x304)](_0x32c3c8),function(_0x3ae1c2,_0x1c7d38){const _0x270f94=_0x5d6f70,_0x2e27de=_0x1c7d38[_0x270f94(0x147)](/(\r\n|\n|\r)/gm,'');_0x97480e(null,_0x2e27de);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x1eb)]=function(_0x4524e3,_0x55c454){const _0x3be9df=a1216_0x5756ff;scripts['googleCloudTTS'](_0x4524e3[_0x3be9df(0x199)],_0x4524e3[_0x3be9df(0x2b9)]||_0x3be9df(0x2b0),_0x4524e3[_0x3be9df(0x2b0)],_0x4524e3[_0x3be9df(0x255)]||_0x3be9df(0x234),_0x4524e3[_0x3be9df(0x1d7)]||'MALE',_0x4524e3[_0x3be9df(0x2c2)]||_0x3be9df(0x20b))[_0x3be9df(0x1c1)](function(_0x241c2a){_0x55c454(null,_0x241c2a);})[_0x3be9df(0x1da)](function(_0x32fc08){_0x55c454(_0x32fc08);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x1a7)]=function(_0x12e9be,_0x3ddc0a){const _0x537d50=a1216_0x5756ff;scripts[_0x537d50(0x1a7)](_0x12e9be[_0x537d50(0x2b0)],_0x12e9be[_0x537d50(0x299)]||'en',0x1)[_0x537d50(0x1c1)](function(_0x2dc04b){_0x3ddc0a(null,_0x2dc04b);})[_0x537d50(0x1da)](function(_0x50b57a){_0x3ddc0a(_0x50b57a);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x2e6)]=function(_0xf7421a,_0x454342){const _0x1c9bdf=a1216_0x5756ff,_0x12ba17={'uri':_0xf7421a[_0x1c9bdf(0x1ef)],'method':_0xf7421a[_0x1c9bdf(0x1f8)],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0xf7421a[_0x1c9bdf(0x24d)])===_0x1c9bdf(0x236)&&parseInt(_0xf7421a[_0x1c9bdf(0x24d)])>=0x1?parseInt(_0xf7421a[_0x1c9bdf(0x24d)])*0x3e8:0x5*0x3e8};if(_['includes']([_0x1c9bdf(0x1d8),'PUT'],_0x12ba17[_0x1c9bdf(0x1f8)][_0x1c9bdf(0x177)]()))try{_0x12ba17[_0x1c9bdf(0x197)]=_0xf7421a[_0x1c9bdf(0x2a4)]?JSON['parse'](_0xf7421a['rawBody']):{};}catch(_0x504a20){logger[_0x1c9bdf(0x275)](_0x1c9bdf(0x2c0),_0x504a20);}try{_0x12ba17['headers']=_0xf7421a['rawHeaders']?JSON[_0x1c9bdf(0x250)](_0xf7421a[_0x1c9bdf(0x2f1)]):{};}catch(_0x366ac5){logger['error'](_0x1c9bdf(0x26e),_0x366ac5);}if(_0xf7421a['computedVariables'])try{const _0x182f1d=require(_0xf7421a[_0x1c9bdf(0x1b8)])[_0x1c9bdf(0x229)](this,_0x12ba17);_0x12ba17['uri']=Mustache[_0x1c9bdf(0x2a3)](_0xf7421a[_0x1c9bdf(0x1ef)],_0x182f1d,{},['$$','$$']),_0x12ba17[_0x1c9bdf(0x25b)]&&(_0x12ba17[_0x1c9bdf(0x25b)]=JSON['parse'](Mustache['render'](JSON['stringify'](_0x12ba17[_0x1c9bdf(0x25b)]),_0x182f1d,{},['$$','$$']))),_0x12ba17[_0x1c9bdf(0x197)]&&(_0x12ba17[_0x1c9bdf(0x197)]=JSON[_0x1c9bdf(0x250)](Mustache['render'](JSON['stringify'](_0x12ba17[_0x1c9bdf(0x197)]),_0x182f1d,{},['$$','$$'])));}catch(_0x272d2f){logger[_0x1c9bdf(0x275)](_0x1c9bdf(0x24a),_0x272d2f);}rp(_0x12ba17)[_0x1c9bdf(0x1c1)](function(_0x247181){const _0x452cd8=_0x1c9bdf,_0x2d8552={'statusCode':_0x247181[_0x452cd8(0x29c)]||0xc8,'statusMessage':_0x247181[_0x452cd8(0x1cd)]||'OK','headers':_0x247181[_0x452cd8(0x25b)]||{},'body':_0x247181[_0x452cd8(0x197)]||{}};_0x454342(null,_0x2d8552);})[_0x1c9bdf(0x1da)](function(_0x1c04ff){const _0x42c744=_0x1c9bdf,_0x49226e={'statusCode':_0x1c04ff[_0x42c744(0x29c)]||0x1f4,'statusMessage':_0x1c04ff[_0x42c744(0x186)]||'500\x20-\x20Internal\x20Server\x20Error','headers':_0x1c04ff[_0x42c744(0x22f)][_0x42c744(0x25b)]||{},'body':_0x1c04ff['options'][_0x42c744(0x197)]||{}};_0x454342(null,_0x49226e);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x232)]=function(_0x3004f0,_0x46df6f){const _0x1bf5da=a1216_0x5756ff;scripts[_0x1bf5da(0x232)](this[_0x1bf5da(0x29f)][_0x1bf5da(0x2dd)],_0x3004f0[_0x1bf5da(0x19e)],_0x3004f0[_0x1bf5da(0x2b0)],_0x3004f0[_0x1bf5da(0x2d7)]||'en')['then'](function(_0x37b78c){_0x46df6f(null,_0x37b78c);})[_0x1bf5da(0x1da)](function(_0xdd8648){_0x46df6f(_0xdd8648);});},AGIVertices['prototype'][a1216_0x5756ff(0x2a1)]=function(_0x47a100,_0x2e8d01){const _0x207b4b=a1216_0x5756ff;scripts[_0x207b4b(0x2a1)](this[_0x207b4b(0x29f)][_0x207b4b(0x2dd)],_0x47a100[_0x207b4b(0x2f7)],_0x47a100[_0x207b4b(0x212)],_0x47a100[_0x207b4b(0x215)],_0x47a100[_0x207b4b(0x2b0)],_0x47a100[_0x207b4b(0x2c7)]||'en')[_0x207b4b(0x1c1)](function(_0x5ddf87){_0x2e8d01(null,_0x5ddf87);})[_0x207b4b(0x1da)](function(_0x1cdb6b){_0x2e8d01(_0x1cdb6b);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x23c)]=function(_0x5cc112,_0x392b4b){const _0x29bfa5=a1216_0x5756ff;scripts[_0x29bfa5(0x23c)](this[_0x29bfa5(0x29f)],_0x5cc112)[_0x29bfa5(0x1c1)](function(_0x349348){_0x392b4b(null,_0x349348);})[_0x29bfa5(0x1da)](function(_0x3212fb){_0x392b4b(_0x3212fb);});},AGIVertices['prototype']['ispeechTTS']=function(_0x24c8f8,_0x3d90ce){const _0x3f8389=a1216_0x5756ff;scripts[_0x3f8389(0x238)](_0x24c8f8['key'],_0x24c8f8[_0x3f8389(0x2b0)],_0x24c8f8['ispeech_tts_language']||_0x3f8389(0x234),_0x24c8f8[_0x3f8389(0x310)])[_0x3f8389(0x1c1)](function(_0xb769dd){_0x3d90ce(null,_0xb769dd);})[_0x3f8389(0x1da)](function(_0x7ef37f){_0x3d90ce(_0x7ef37f);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x16c)]=function(_0x45b771,_0x275deb,_0x32b6a5){const _0x39776f=a1216_0x5756ff;scripts['ispeechASR'](_0x275deb,_0x45b771[_0x39776f(0x19e)],_0x45b771[_0x39776f(0x2c8)]||'en-US',this['isConfigured'](_0x45b771[_0x39776f(0x26b)])?_0x45b771['model']:undefined)[_0x39776f(0x1c1)](function(_0x3cfd59){_0x32b6a5(null,_0x3cfd59);})['catch'](function(_0x2c1b3e){_0x32b6a5(_0x2c1b3e);});},AGIVertices['prototype'][a1216_0x5756ff(0x1a5)]=function(_0xe568f1,_0x29e058){const _0x4d8319=a1216_0x5756ff;scripts[_0x4d8319(0x1a5)](_0xe568f1['aws_access_key_id'],_0xe568f1[_0x4d8319(0x27e)],_0xe568f1[_0x4d8319(0x222)],_0xe568f1[_0x4d8319(0x16d)]||_0x4d8319(0x251),_0xe568f1['text'],_0xe568f1[_0x4d8319(0x1df)]||_0x4d8319(0x2b0))['then'](function(_0x44b020){_0x29e058(null,_0x44b020);})[_0x4d8319(0x1da)](function(_0x515cd6){_0x29e058(_0x515cd6);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x21f)]=function(_0x395cfb,_0x5241cf){const _0x217fa0=a1216_0x5756ff;scripts[_0x217fa0(0x21f)](this[_0x217fa0(0x29f)][_0x217fa0(0x2dd)],_0x395cfb[_0x217fa0(0x211)],_0x395cfb['aws_secret_access_key'],_0x395cfb[_0x217fa0(0x220)],_0x395cfb[_0x217fa0(0x2b0)],_0x395cfb['aws_bot_name'])[_0x217fa0(0x1c1)](function(_0x288127){_0x5241cf(null,_0x288127);})[_0x217fa0(0x1da)](function(_0x1e5808){_0x5241cf(_0x1e5808);});},AGIVertices[a1216_0x5756ff(0x2b5)]['googleASR']=function(_0x2abf2f,_0x1f48e6,_0x3e53d2){const _0xfb4373=a1216_0x5756ff;scripts['googleASR'](_0x1f48e6,_0x2abf2f[_0xfb4373(0x19e)],_0x2abf2f[_0xfb4373(0x285)]||_0xfb4373(0x234))[_0xfb4373(0x1c1)](function(_0x61fd51){_0x3e53d2(null,_0x61fd51);})[_0xfb4373(0x1da)](function(_0x10769f){_0x3e53d2(_0x10769f);});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x2c1)]=function(_0x33b931,_0x15ac1d,_0x4efc49){const _0x5e1851=a1216_0x5756ff;scripts[_0x5e1851(0x2c1)](_0x15ac1d,_0x33b931['appid'],_0x33b931[_0x5e1851(0x22b)],_0x33b931[_0x5e1851(0x1d9)])[_0x5e1851(0x1c1)](function(_0x289284){_0x4efc49(null,_0x289284);})[_0x5e1851(0x1da)](function(_0x213c31){_0x4efc49(_0x213c31);});},AGIVertices[a1216_0x5756ff(0x2b5)]['clear']=function(_0x16b091){const _0x2db8cc=a1216_0x5756ff,_0x5f1a5e=_[_0x2db8cc(0x2ef)](verticesWithRetry,_0x16b091['agicommand'])?_0x16b091:_['clone'](_0x16b091);for(const _0x55e214 in _0x5f1a5e){typeof _0x5f1a5e[_0x55e214]!==_0x2db8cc(0x242)&&(_0x5f1a5e[_0x55e214]&&_[_0x2db8cc(0x203)](_0x5f1a5e[_0x55e214])&&(_[_0x2db8cc(0x2ef)](recursiveMapAttributes,_0x55e214)?_0x5f1a5e[_0x55e214]=this[_0x2db8cc(0x156)](_0x5f1a5e[_0x55e214]):_0x5f1a5e[_0x55e214]=this[_0x2db8cc(0x288)](_0x5f1a5e[_0x55e214])));}return _0x5f1a5e;},AGIVertices['prototype']['recursiveNodeIndex']=function(_0x463a1c){const _0x1606b7=a1216_0x5756ff;for(const _0x170b18 in _0x463a1c){if(typeof _0x463a1c[_0x170b18]!==_0x1606b7(0x242)){if(_[_0x1606b7(0x296)](_0x463a1c[_0x170b18]))this[_0x1606b7(0x2ee)](_0x463a1c[_0x170b18]);else{if(_[_0x1606b7(0x1a8)](_0x463a1c[_0x170b18]))for(let _0x117d44=0x0;_0x117d44<_0x463a1c[_0x170b18][_0x1606b7(0x2c5)];_0x117d44++){this['recursiveNodeIndex'](_0x463a1c[_0x170b18][_0x117d44]);}else _[_0x1606b7(0x203)](_0x463a1c[_0x170b18])&&(_0x463a1c[_0x170b18]=this['replaceAllVariables'](_0x463a1c[_0x170b18]));}}}},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x1b7)]=function(_0x69cafc,_0x481aaa){const _0x43b428=a1216_0x5756ff;for(const _0x42775c in _0x69cafc){if(typeof _0x69cafc[_0x42775c]!==_0x43b428(0x242)){if(_[_0x43b428(0x296)](_0x69cafc[_0x42775c]))!_['isEmpty'](_0x69cafc[_0x42775c])&&this['saveRestApiResult'](_0x69cafc[_0x42775c],util[_0x43b428(0x2b2)](_0x43b428(0x28c),_0x481aaa,_0x42775c));else{if(_[_0x43b428(0x1a8)](_0x69cafc[_0x42775c]))for(let _0x28e20c=0x0;_0x28e20c<_0x69cafc[_0x42775c][_0x43b428(0x2c5)];_0x28e20c++){this[_0x43b428(0x1b7)](_0x69cafc[_0x42775c][_0x28e20c],util['format'](_0x43b428(0x28c),_0x481aaa,_0x42775c+'['+_0x28e20c+']'));}else!_[_0x43b428(0x312)](_0x69cafc[_0x42775c])&&this['channel'][_0x43b428(0x226)](util['format'](_0x43b428(0x28c),_0x481aaa,_0x42775c),_0x69cafc[_0x42775c]);}}}},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x156)]=function(_0x1a013b){const _0x13151c=a1216_0x5756ff;try{const _0x20d895=JSON['parse'](_0x1a013b);return this[_0x13151c(0x2ee)](_0x20d895),JSON[_0x13151c(0x1d2)](_0x20d895);}catch(_0x378036){return this[_0x13151c(0x288)](_0x1a013b);}},AGIVertices[a1216_0x5756ff(0x2b5)]['replaceAllVariables']=function(_0x2730ca){const _0xde4f40=a1216_0x5756ff,_0x5a68f3=_0x2730ca['split']('{');for(let _0x30ce78=0x1;_0x30ce78<_0x5a68f3[_0xde4f40(0x2c5)];_0x30ce78+=0x1){const _0x290fda=_0x5a68f3[_0x30ce78][_0xde4f40(0x286)]('}');_0x290fda[_0xde4f40(0x2c5)]>0x1&&(_0x2730ca=_0x2730ca[_0xde4f40(0x18a)]('{'+_0x290fda[0x0]+'}',this[_0xde4f40(0x29f)][_0xde4f40(0x1fb)](_0x290fda[0x0])[_0xde4f40(0x174)]||_0x290fda[0x0]));}if(_0x5a68f3[_0xde4f40(0x2c5)]===0x1)return _0x2730ca[_0xde4f40(0x190)]();return this[_0xde4f40(0x288)](_0x2730ca);},AGIVertices['prototype'][a1216_0x5756ff(0x1e8)]=function(_0x37749a,_0x584fad){const _0x5b70eb=a1216_0x5756ff,_0x5a7ce0=this[_0x5b70eb(0x29f)][_0x5b70eb(0x1fb)](_0x37749a);if(_0x5a7ce0['result']===-0x1)return _0x5a7ce0;return logger[_0x5b70eb(0x173)](util['format'](_0x5b70eb(0x2b8),_0x584fad,_0x5a7ce0[_0x5b70eb(0x174)])),this[_0x5b70eb(0x29f)][_0x5b70eb(0x226)](_0x584fad,_0x5a7ce0[_0x5b70eb(0x174)]);},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x200)]=function(_0x5a612d){return _0x5a612d&&_0x5a612d!=='0'&&_0x5a612d!=='-1'&&_0x5a612d!=='';},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x2b6)]=function(_0x105b46){const _0xd4b021=a1216_0x5756ff;return this[_0xd4b021(0x2de)][_0xd4b021(0x229)](this,_0x105b46,'-'),_0x105b46['retry']=_0x105b46[_0xd4b021(0x2b6)],{'code':0xc8,'result':'-'};},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x201)]=function(_0x1505b7){const _0xe9cf37=a1216_0x5756ff;logger[_0xe9cf37(0x173)](util[_0xe9cf37(0x2b2)](_0xe9cf37(0x14d),_0x1505b7[_0xe9cf37(0x171)]));if(!this[_0xe9cf37(0x200)](_0x1505b7[_0xe9cf37(0x2b0)]))return this['channel'][_0xe9cf37(0x19a)](_0xe9cf37(0x16f));let _0x2d3cc3='\x22'+_0x1505b7[_0xe9cf37(0x2b0)]+'\x22';this[_0xe9cf37(0x200)](_0x1505b7[_0xe9cf37(0x22f)])&&(_0x2d3cc3+=','+_0x1505b7['options']);const _0x271f3a=this[_0xe9cf37(0x29f)]['exec']('MRCPSynth',_0x2d3cc3);if(_0x271f3a['result']===-0x1)return _0x271f3a;return this[_0xe9cf37(0x29f)][_0xe9cf37(0x19a)](util[_0xe9cf37(0x2b2)](_0xe9cf37(0x1bb),_0x2d3cc3));},AGIVertices['prototype'][a1216_0x5756ff(0x1c4)]=function(_0x2f328e){const _0x452041=a1216_0x5756ff;logger['info'](util[_0x452041(0x2b2)](_0x452041(0x279),_0x2f328e[_0x452041(0x171)]));if(!this[_0x452041(0x200)](_0x2f328e[_0x452041(0x2aa)]))return this[_0x452041(0x29f)]['noop']('no\x20grammar\x20configured');let _0x2dfd6e=_0x2f328e[_0x452041(0x2aa)];this[_0x452041(0x200)](_0x2f328e[_0x452041(0x22f)])&&(_0x2dfd6e+=','+_0x2f328e['options']);const _0x41f267=this['channel'][_0x452041(0x24b)](_0x452041(0x1a3),_0x2dfd6e);if(_0x41f267[_0x452041(0x213)]===-0x1)return _0x41f267;const _0x20238d=this[_0x452041(0x1e8)](_0x452041(0x30b),_0x452041(0x1fd));if(_0x20238d['result']===-0x1)return _0x20238d;const _0x4eecec=this['getAndSetVariable'](_0x452041(0x303),_0x452041(0x283));if(_0x4eecec[_0x452041(0x213)]===-0x1)return _0x4eecec;const _0x4f37c5=this[_0x452041(0x1e8)]('RECOG_INSTANCE()',_0x452041(0x276));if(_0x4f37c5[_0x452041(0x213)]===-0x1)return _0x4f37c5;return this[_0x452041(0x29f)][_0x452041(0x19a)](util['format']('Executed\x20command\x20MRCPRecog\x20%s',_0x2dfd6e));},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x2d9)]=function(_0x78de86){const _0x2ce9d9=a1216_0x5756ff;return logger['info'](util[_0x2ce9d9(0x2b2)](_0x2ce9d9(0x221),_0x78de86[_0x2ce9d9(0x171)])),this[_0x2ce9d9(0x29f)][_0x2ce9d9(0x2d9)]([_0x78de86[_0x2ce9d9(0x2f6)],_0x78de86[_0x2ce9d9(0x16a)]]);},AGIVertices['prototype']['answer']=function(_0x4a0eee){const _0x2bd2c2=a1216_0x5756ff;logger['info'](util[_0x2bd2c2(0x2b2)]('Enter\x20in\x20ANSWER\x20(%s)\x20block',_0x4a0eee['label']));if(this['isConfigured'](_0x4a0eee[_0x2bd2c2(0x24d)])){logger['info'](util[_0x2bd2c2(0x2b2)]('Wait\x20%s\x20seconds\x20before\x20answer',_0x4a0eee['timeout']));const _0x55efdf=this[_0x2bd2c2(0x29f)][_0x2bd2c2(0x1f5)](_0x4a0eee[_0x2bd2c2(0x24d)]);if(_0x55efdf['result']===-0x1)return _0x55efdf;}return this['channel']['answer']();},AGIVertices[a1216_0x5756ff(0x2b5)]['callback']=function(_0x2bf27a){const _0x595fe4=a1216_0x5756ff;logger['info'](util['format'](_0x595fe4(0x2b3),_0x2bf27a[_0x595fe4(0x171)]));if(!this[_0x595fe4(0x200)](_0x2bf27a[_0x595fe4(0x1d3)]))return this[_0x595fe4(0x29f)][_0x595fe4(0x275)](_0x2bf27a,_0x595fe4(0x24e));return _0x2bf27a[_0x595fe4(0x148)]=moment(),this['isConfigured'](_0x2bf27a[_0x595fe4(0x1ae)])&&(_0x2bf27a[_0x595fe4(0x148)]=moment()[_0x595fe4(0x1bc)](_0x2bf27a[_0x595fe4(0x1ae)],_0x595fe4(0x146))),!this['isConfigured'](_0x2bf27a[_0x595fe4(0x143)])&&(_0x2bf27a[_0x595fe4(0x143)]=0x2),this['createCmContact'][_0x595fe4(0x229)](this,_0x2bf27a),this[_0x595fe4(0x29f)]['noop'](util[_0x595fe4(0x2b2)](_0x595fe4(0x210),_0x2bf27a[_0x595fe4(0x262)],_0x2bf27a[_0x595fe4(0x1d3)],_0x2bf27a[_0x595fe4(0x148)]));},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x260)]=function(_0x48a89b){const _0xa9a4f9=a1216_0x5756ff;logger[_0xa9a4f9(0x173)](util[_0xa9a4f9(0x2b2)](_0xa9a4f9(0x20c),_0x48a89b[_0xa9a4f9(0x171)]));const _0x48a94e=this[_0xa9a4f9(0x29f)][_0xa9a4f9(0x24b)](_0x48a89b[_0xa9a4f9(0x241)],_0x48a89b['options']);if(_0x48a94e[_0xa9a4f9(0x213)]===-0x1)return _0x48a94e;return this[_0xa9a4f9(0x29f)]['noop'](util['format']('Executed\x20command\x20%s\x20%s',_0x48a89b[_0xa9a4f9(0x241)],_0x48a89b['options']));},AGIVertices['prototype'][a1216_0x5756ff(0x15c)]=function(_0x40f64e){const _0x21cdea=a1216_0x5756ff;logger[_0x21cdea(0x173)](util['format']('Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block',_0x40f64e[_0x21cdea(0x171)]));if(!this[_0x21cdea(0x200)](_0x40f64e[_0x21cdea(0x2b0)]))return this['channel'][_0x21cdea(0x19a)](_0x21cdea(0x16f));let _0x190d27='\x22'+_0x40f64e[_0x21cdea(0x2b0)]+'\x22';this[_0x21cdea(0x200)](_0x40f64e[_0x21cdea(0x22f)])&&(_0x190d27+=','+_0x40f64e['options']);const _0x10ba55=this[_0x21cdea(0x29f)][_0x21cdea(0x24b)](_0x21cdea(0x168),_0x190d27);if(_0x10ba55['result']===-0x1)return _0x10ba55;return this[_0x21cdea(0x29f)]['noop'](util[_0x21cdea(0x2b2)](_0x21cdea(0x1bb),_0x190d27));},AGIVertices[a1216_0x5756ff(0x2b5)]['sestektts']=function(_0x27137c){const _0x1fe725=a1216_0x5756ff;logger['info'](util[_0x1fe725(0x2b2)](_0x1fe725(0x18b),_0x27137c[_0x1fe725(0x171)]));if(!this[_0x1fe725(0x200)](_0x27137c[_0x1fe725(0x2b0)]))return this[_0x1fe725(0x29f)][_0x1fe725(0x19a)]('no\x20text\x20configured');let _0x1bb5b3='\x22'+_0x27137c[_0x1fe725(0x2b0)]+'\x22';this['isConfigured'](_0x27137c[_0x1fe725(0x22f)])&&(_0x1bb5b3+=','+_0x27137c[_0x1fe725(0x22f)]);const _0x32dbce=this[_0x1fe725(0x29f)]['exec'](_0x1fe725(0x168),_0x1bb5b3);if(_0x32dbce['result']===-0x1)return _0x32dbce;return this[_0x1fe725(0x29f)][_0x1fe725(0x19a)](util[_0x1fe725(0x2b2)]('Executed\x20command\x20MRCPSynth\x20%s',_0x1bb5b3));},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x30f)]=function(_0x5ec8af){const _0x39b7aa=a1216_0x5756ff;logger[_0x39b7aa(0x173)](util[_0x39b7aa(0x2b2)](_0x39b7aa(0x2eb),_0x5ec8af[_0x39b7aa(0x171)]));if(!this[_0x39b7aa(0x200)](_0x5ec8af['grammar']))return this['channel'][_0x39b7aa(0x19a)](_0x39b7aa(0x28b));let _0x1e96ad=_0x5ec8af[_0x39b7aa(0x2aa)];this[_0x39b7aa(0x200)](_0x5ec8af['options'])&&(_0x1e96ad+=','+_0x5ec8af[_0x39b7aa(0x22f)]);const _0x44953d=this['channel'][_0x39b7aa(0x24b)](_0x39b7aa(0x1a3),_0x1e96ad);if(_0x44953d[_0x39b7aa(0x213)]===-0x1)return _0x44953d;const _0x2632e8=this[_0x39b7aa(0x1e8)](_0x39b7aa(0x30b),_0x39b7aa(0x1d4));if(_0x2632e8['result']===-0x1)return _0x2632e8;const _0x3c9476=this[_0x39b7aa(0x1e8)](_0x39b7aa(0x303),'LUMENVOX_ASR_TRANSCRIPT');if(_0x3c9476[_0x39b7aa(0x213)]===-0x1)return _0x3c9476;const _0x601ffd=this['getAndSetVariable'](_0x39b7aa(0x184),'LUMENVOX_ASR_INSTANCE');if(_0x601ffd['result']===-0x1)return _0x601ffd;return this[_0x39b7aa(0x29f)][_0x39b7aa(0x19a)](util[_0x39b7aa(0x2b2)](_0x39b7aa(0x246),_0x1e96ad));},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x1ea)]=function(_0x6efd21){const _0x3b20ea=a1216_0x5756ff;logger['info'](util[_0x3b20ea(0x2b2)](_0x3b20ea(0x169),_0x6efd21['label']));if(!this['isConfigured'](_0x6efd21[_0x3b20ea(0x2aa)]))return this[_0x3b20ea(0x29f)][_0x3b20ea(0x19a)](_0x3b20ea(0x28b));let _0x1a3202=_0x6efd21[_0x3b20ea(0x2aa)];this['isConfigured'](_0x6efd21[_0x3b20ea(0x22f)])&&(_0x1a3202+=','+_0x6efd21[_0x3b20ea(0x22f)]);const _0x7d6eff=this[_0x3b20ea(0x29f)][_0x3b20ea(0x24b)]('MRCPRecog',_0x1a3202);if(_0x7d6eff['result']===-0x1)return _0x7d6eff;const _0x75b815=this[_0x3b20ea(0x1e8)](_0x3b20ea(0x30b),_0x3b20ea(0x187));if(_0x75b815[_0x3b20ea(0x213)]===-0x1)return _0x75b815;const _0x5a593e=this[_0x3b20ea(0x1e8)](_0x3b20ea(0x303),'SESTEK_ASR_TRANSCRIPT');if(_0x5a593e[_0x3b20ea(0x213)]===-0x1)return _0x5a593e;const _0x21f23b=this[_0x3b20ea(0x1e8)](_0x3b20ea(0x184),_0x3b20ea(0x224));if(_0x21f23b[_0x3b20ea(0x213)]===-0x1)return _0x21f23b;return this[_0x3b20ea(0x29f)][_0x3b20ea(0x19a)](util[_0x3b20ea(0x2b2)]('Executed\x20command\x20MRCPRecog\x20%s',_0x1a3202));},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x289)]=function(_0x158925){const _0x2dac0d=a1216_0x5756ff;logger['info'](util[_0x2dac0d(0x2b2)]('Enter\x20in\x20DATABASE\x20(%s)\x20block',_0x158925['label']));if(!this[_0x2dac0d(0x200)](_0x158925[_0x2dac0d(0x1e1)]))return this['channel']['error'](_0x158925,'no\x20database\x20selected');const _0x52857a=this[_0x2dac0d(0x14a)][_0x2dac0d(0x229)](this,_0x158925[_0x2dac0d(0x1e1)]);if(!_0x52857a)return this['channel']['error'](_0x158925,_0x2dac0d(0x188));if(!this['isConfigured'](_0x158925[_0x2dac0d(0x152)]))return this[_0x2dac0d(0x29f)]['error'](_0x158925,'no\x20query\x20configured');const _0x5d1dec=_0x158925['query'][_0x2dac0d(0x147)](/(\r\n|\n|\r)/gm,'\x20');this['channel']['noop'](util[_0x2dac0d(0x2b2)]('query:\x20%s',_0x5d1dec));const _0x50767e=this[_0x2dac0d(0x2fd)][_0x2dac0d(0x229)](this,_0x52857a,_0x5d1dec);this[_0x2dac0d(0x2de)][_0x2dac0d(0x229)](this,_0x158925,_0x5d1dec);if(!this[_0x2dac0d(0x200)](_0x158925[_0x2dac0d(0x27f)]))return this['channel'][_0x2dac0d(0x19a)](_0x2dac0d(0x1bd));const _0x36b660=this['getVariable'][_0x2dac0d(0x229)](this,_0x158925[_0x2dac0d(0x27f)]);if(!_0x36b660)return this['channel'][_0x2dac0d(0x275)](_0x158925,_0x2dac0d(0x1c2));const _0x419199=this;return _0x50767e['forEach'](function(_0x6d10aa,_0x280503){const _0x3f4597=_0x2dac0d;Object[_0x3f4597(0x2d6)](_0x6d10aa)[_0x3f4597(0x1e4)](function(_0xb53123){const _0x157980=_0x3f4597;_0x419199[_0x157980(0x29f)][_0x157980(0x226)](util[_0x157980(0x2b2)](_0x157980(0x1cc),_0x36b660,_0x280503,_0xb53123),_0x6d10aa[_0xb53123]);});}),this[_0x2dac0d(0x29f)][_0x2dac0d(0x226)](util[_0x2dac0d(0x2b2)](_0x2dac0d(0x217),_0x36b660),_0x50767e[_0x2dac0d(0x2c5)]),this[_0x2dac0d(0x29f)][_0x2dac0d(0x19a)](util[_0x2dac0d(0x2b2)]('variable\x20%s\x20set',_0x36b660));},AGIVertices['prototype'][a1216_0x5756ff(0x1c0)]=function(_0x981308){const _0x48e92f=a1216_0x5756ff;logger[_0x48e92f(0x2ba)](util[_0x48e92f(0x2b2)](_0x48e92f(0x1d6),_0x981308[_0x48e92f(0x171)]));if(!this['isConfigured'](_0x981308[_0x48e92f(0x302)]))return this[_0x48e92f(0x29f)][_0x48e92f(0x275)](_0x981308,_0x48e92f(0x2ca));const _0x59cab6=this[_0x48e92f(0x1cb)][_0x48e92f(0x229)](this,_0x981308[_0x48e92f(0x302)]);if(!_0x59cab6)return this[_0x48e92f(0x29f)][_0x48e92f(0x275)](_0x981308,_0x48e92f(0x1c8));const _0x265f45=this[_0x48e92f(0x29f)]['exec'](_0x48e92f(0x311),[util[_0x48e92f(0x2b2)]('SIP/%s',_0x59cab6),_0x981308[_0x48e92f(0x24d)],_0x981308['opts'],_0x981308[_0x48e92f(0x1ef)]]);if(_0x265f45[_0x48e92f(0x213)]===-0x1)return _0x265f45;return this[_0x48e92f(0x29f)]['noop'](util['format'](_0x48e92f(0x269),'DIAL'));},AGIVertices['prototype'][a1216_0x5756ff(0x166)]=function(_0xa0c4f9){const _0x33e1c7=a1216_0x5756ff;logger[_0x33e1c7(0x173)](util[_0x33e1c7(0x2b2)](_0x33e1c7(0x21e),_0xa0c4f9[_0x33e1c7(0x171)]));if(!this[_0x33e1c7(0x200)](_0xa0c4f9[_0x33e1c7(0x19e)]))return this['channel'][_0x33e1c7(0x19a)]('no\x20key\x20configured');if(!this[_0x33e1c7(0x200)](_0xa0c4f9[_0x33e1c7(0x2b0)]))return this[_0x33e1c7(0x29f)][_0x33e1c7(0x19a)](_0x33e1c7(0x16f));this[_0x33e1c7(0x29f)]['bot']=!![],this['createSquareDetailsReport'](_0xa0c4f9),this['createSquareMessage'](_0xa0c4f9[_0x33e1c7(0x2b0)],'in','',''),this['channel']['noop'](util[_0x33e1c7(0x2b2)]('Trying\x20Dialogflow:\x20%s',_0xa0c4f9['text']));const _0x3075fb=this[_0x33e1c7(0x232)][_0x33e1c7(0x229)](this,_0xa0c4f9);if(_0x3075fb){for(const _0x7fa548 in _0x3075fb){typeof _0x3075fb[_0x7fa548]!==_0x33e1c7(0x242)&&this['channel']['setVariable'](util[_0x33e1c7(0x2b2)](_0x33e1c7(0x1e3),_0x7fa548[_0x33e1c7(0x177)]()),_0x3075fb[_0x7fa548]);}return this[_0x33e1c7(0x202)](_0x3075fb[_0x33e1c7(0x19f)],_0x33e1c7(0x1dc),_0x33e1c7(0x166),''),this['channel'][_0x33e1c7(0x19a)](util[_0x33e1c7(0x2b2)](_0x33e1c7(0x2d0),_0x3075fb[_0x33e1c7(0x19f)]));}return this[_0x33e1c7(0x29f)]['error'](_0xa0c4f9,_0x33e1c7(0x180));},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x2bf)]=function(_0x1718ac){const _0x1e7844=a1216_0x5756ff;logger[_0x1e7844(0x173)](util[_0x1e7844(0x2b2)](_0x1e7844(0x198),_0x1718ac[_0x1e7844(0x171)]));if(!this[_0x1e7844(0x200)](_0x1718ac[_0x1e7844(0x2f7)]))return this[_0x1e7844(0x29f)][_0x1e7844(0x19a)]('no\x20project_id\x20configured');if(!this['isConfigured'](_0x1718ac[_0x1e7844(0x212)]))return this[_0x1e7844(0x29f)][_0x1e7844(0x19a)](_0x1e7844(0x14e));if(!this[_0x1e7844(0x200)](_0x1718ac['private_key']))return this[_0x1e7844(0x29f)]['noop'](_0x1e7844(0x183));if(!this[_0x1e7844(0x200)](_0x1718ac[_0x1e7844(0x2c7)]))return this[_0x1e7844(0x29f)]['noop']('no\x20anguage\x20configured');if(!this[_0x1e7844(0x200)](_0x1718ac[_0x1e7844(0x2b0)]))return this[_0x1e7844(0x29f)][_0x1e7844(0x19a)](_0x1e7844(0x16f));this[_0x1e7844(0x29f)][_0x1e7844(0x1f2)]=!![],this[_0x1e7844(0x2de)](_0x1718ac),this[_0x1e7844(0x202)](_0x1718ac[_0x1e7844(0x2b0)],'in','',''),this[_0x1e7844(0x29f)]['noop'](util['format']('Trying\x20DialogflowV2:\x20%s',_0x1718ac[_0x1e7844(0x2b0)]));const _0x366685=this[_0x1e7844(0x2a1)][_0x1e7844(0x229)](this,_0x1718ac);if(_0x366685){for(const _0x4c8b0d in _0x366685){typeof _0x366685[_0x4c8b0d]!==_0x1e7844(0x242)&&(_0x4c8b0d!==_0x1e7844(0x1d1)&&this[_0x1e7844(0x29f)][_0x1e7844(0x226)](util[_0x1e7844(0x2b2)]('DIALOGFLOW_%s',_0x4c8b0d[_0x1e7844(0x177)]()),_0x366685[_0x4c8b0d]));}return this[_0x1e7844(0x202)](_0x366685[_0x1e7844(0x19f)],_0x1e7844(0x1dc),_0x1e7844(0x2bf),_0x366685[_0x1e7844(0x1d1)]),this[_0x1e7844(0x29f)]['noop'](util[_0x1e7844(0x2b2)]('DialogflowV2\x20Result\x20%s',_0x366685[_0x1e7844(0x19f)]));}return this['channel'][_0x1e7844(0x275)](_0x1718ac,_0x1e7844(0x237));},AGIVertices[a1216_0x5756ff(0x2b5)]['sesteknda']=function(_0x4d3d9b){const _0x1e6c3f=a1216_0x5756ff;logger[_0x1e6c3f(0x173)](util[_0x1e6c3f(0x2b2)](_0x1e6c3f(0x205),_0x4d3d9b['label']));if(!this['isConfigured'](_0x4d3d9b['ndauth_url']))return this[_0x1e6c3f(0x29f)][_0x1e6c3f(0x19a)](_0x1e6c3f(0x25a));if(!this['isConfigured'](_0x4d3d9b[_0x1e6c3f(0x24c)]))return this[_0x1e6c3f(0x29f)]['noop'](_0x1e6c3f(0x2cb));if(!this[_0x1e6c3f(0x200)](_0x4d3d9b['password']))return this[_0x1e6c3f(0x29f)][_0x1e6c3f(0x19a)](_0x1e6c3f(0x1ce));if(!this['isConfigured'](_0x4d3d9b[_0x1e6c3f(0x280)]))return this['channel']['noop'](_0x1e6c3f(0x16f));this[_0x1e6c3f(0x29f)]['bot']=!![],this[_0x1e6c3f(0x2de)](_0x4d3d9b),this[_0x1e6c3f(0x202)](_0x4d3d9b[_0x1e6c3f(0x2b0)],'in','',''),this[_0x1e6c3f(0x29f)][_0x1e6c3f(0x19a)](util['format'](_0x1e6c3f(0x265),_0x4d3d9b[_0x1e6c3f(0x2b0)]));const _0x2341c2=this['sestekNDA'][_0x1e6c3f(0x229)](this,_0x4d3d9b);if(_0x2341c2){for(const _0x316016 in _0x2341c2){typeof _0x2341c2[_0x316016]!=='undefined'&&this[_0x1e6c3f(0x29f)][_0x1e6c3f(0x226)](util[_0x1e6c3f(0x2b2)](_0x1e6c3f(0x300),_0x316016[_0x1e6c3f(0x177)]()),_0x2341c2[_0x316016]);}this['createSquareMessage'](_0x2341c2['speech'],_0x1e6c3f(0x1dc),_0x1e6c3f(0x2e5),'');if(_0x2341c2[_0x1e6c3f(0x178)]){this[_0x1e6c3f(0x29f)][_0x1e6c3f(0x19a)](util[_0x1e6c3f(0x2b2)](_0x1e6c3f(0x292),_0x2341c2['audiofile']));const _0x4d008a=this[_0x1e6c3f(0x29f)]['streamFile'](_0x2341c2[_0x1e6c3f(0x178)]);try{fs[_0x1e6c3f(0x192)](_0x2341c2['audiofile']+_0x1e6c3f(0x2ae));}catch(_0x3ddc62){logger['error'](_0x3ddc62);}return _0x4d008a;}else return this[_0x1e6c3f(0x29f)][_0x1e6c3f(0x19a)](util[_0x1e6c3f(0x2b2)]('SestekNDA\x20Result\x20%s',_0x2341c2['speech']));}return this['channel'][_0x1e6c3f(0x275)](_0x4d3d9b,_0x1e6c3f(0x196));},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x149)]=function(_0xad93ad){const _0x48e04d=a1216_0x5756ff;return logger['info'](util[_0x48e04d(0x2b2)](_0x48e04d(0x254),_0xad93ad[_0x48e04d(0x171)])),this[_0x48e04d(0x29f)][_0x48e04d(0x19a)]('end');},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x294)]=function(_0x2d2d9a){const _0xd85e0f=a1216_0x5756ff;logger[_0xd85e0f(0x173)](util[_0xd85e0f(0x2b2)](_0xd85e0f(0x295),_0x2d2d9a['label']));let _0xee3d49='';if(_0x2d2d9a['trunk_id']){if(!this[_0xd85e0f(0x200)](_0x2d2d9a[_0xd85e0f(0x1f3)]))return this[_0xd85e0f(0x29f)][_0xd85e0f(0x275)](_0x2d2d9a,'no\x20trunk\x20selected');else{const _0x26109b=parseInt(_0x2d2d9a[_0xd85e0f(0x1f3)],0xa);if(isNaN(_0x26109b))_0xee3d49=_0x2d2d9a[_0xd85e0f(0x1f3)];else{_0xee3d49=this['getTrunk'][_0xd85e0f(0x229)](this,_0x2d2d9a[_0xd85e0f(0x1f3)]);if(!_0xee3d49)return this[_0xd85e0f(0x29f)][_0xd85e0f(0x275)](_0x2d2d9a,_0xd85e0f(0x1f9));}}}else{if(_0x2d2d9a[_0xd85e0f(0x20a)])_0xee3d49=_0x2d2d9a[_0xd85e0f(0x20a)];else return this[_0xd85e0f(0x29f)]['error'](_0x2d2d9a,'no\x20trunk\x20selected');}const _0x2316ad=this[_0xd85e0f(0x29f)][_0xd85e0f(0x24b)](_0xd85e0f(0x311),[util[_0xd85e0f(0x2b2)](_0xd85e0f(0x21d),_0xee3d49,_0x2d2d9a['phone']),_0x2d2d9a['timeout'],_0x2d2d9a[_0xd85e0f(0x15b)],_0x2d2d9a[_0xd85e0f(0x1ef)]]);if(_0x2316ad[_0xd85e0f(0x213)]===-0x1)return _0x2316ad;return this[_0xd85e0f(0x29f)][_0xd85e0f(0x19a)](util['format'](_0xd85e0f(0x269),_0xd85e0f(0x311)));},AGIVertices['prototype'][a1216_0x5756ff(0x20f)]=function(_0x13ac51){const _0x200813=a1216_0x5756ff;return logger['info'](util[_0x200813(0x2b2)]('Enter\x20in\x20FINALLY\x20(%s)\x20block',_0x13ac51['label'])),this[_0x200813(0x29f)]['noop'](_0x200813(0x20f));},AGIVertices['prototype'][a1216_0x5756ff(0x258)]=function(_0x596b55){const _0x27d9a4=a1216_0x5756ff;logger[_0x27d9a4(0x173)](util[_0x27d9a4(0x2b2)](_0x27d9a4(0x2bb),_0x596b55[_0x27d9a4(0x171)]));if(_0x596b55[_0x27d9a4(0x218)]===0x0)return this[_0x27d9a4(0x2b6)](_0x596b55);_0x596b55[_0x27d9a4(0x218)]-=0x1;if(!this['isConfigured'](_0x596b55[_0x27d9a4(0x2e4)]))return this['channel']['error'](_0x596b55,_0x27d9a4(0x1e7));const _0x3362c4=this[_0x27d9a4(0x19d)]['sync'](this,_0x596b55[_0x27d9a4(0x2e4)]);if(!_0x3362c4)return this[_0x27d9a4(0x29f)]['error'](_0x596b55,_0x27d9a4(0x161));if(!this[_0x27d9a4(0x200)](_0x596b55[_0x27d9a4(0x27f)]))return this[_0x27d9a4(0x29f)][_0x27d9a4(0x275)]('no\x20variable\x20selected\x20for\x20the\x20result');const _0x412a02=this[_0x27d9a4(0x29f)][_0x27d9a4(0x1b6)](_0x3362c4,_0x596b55[_0x27d9a4(0x30c)],_0x596b55[_0x27d9a4(0x28a)]),_0x2d9f00=_0x412a02[_0x27d9a4(0x213)]?_0x412a02[_0x27d9a4(0x213)][_0x27d9a4(0x190)]():'';logger[_0x27d9a4(0x173)]('test',JSON[_0x27d9a4(0x1d2)](_0x412a02));if(_0x412a02[_0x27d9a4(0x213)]===-0x1)return this[_0x27d9a4(0x2de)][_0x27d9a4(0x229)](this,_0x596b55,_0x2d9f00),_0x412a02;else _0x412a02[_0x27d9a4(0x174)]===_0x27d9a4(0x24d)?_0x412a02[_0x27d9a4(0x213)]=_0x2d9f00[_0x27d9a4(0x2c5)]>=parseInt(_0x596b55[_0x27d9a4(0x29a)])?'x':'i':_0x412a02[_0x27d9a4(0x213)]=_0x2d9f00[_0x27d9a4(0x2c5)]>=parseInt(_0x596b55[_0x27d9a4(0x29a)])&&_0x2d9f00[_0x27d9a4(0x2c5)]<=parseInt(_0x596b55[_0x27d9a4(0x28a)])?'x':'i';const _0x267843=this[_0x27d9a4(0x1fb)][_0x27d9a4(0x229)](this,_0x596b55['variable_id']);if(!_0x267843)return this[_0x27d9a4(0x29f)][_0x27d9a4(0x275)](_0x596b55,'no\x20variable\x20found');this[_0x27d9a4(0x29f)][_0x27d9a4(0x226)](_0x267843,_0x2d9f00);if(this[_0x27d9a4(0x200)](_0x596b55[_0x27d9a4(0x1b2)])){const _0x29f5fc=parseInt(_0x596b55[_0x27d9a4(0x1b2)],0xa),_0x6618ab=rs[_0x27d9a4(0x1cf)]({'charset':'*','length':_0x29f5fc}),_0x1bb613=_0x2d9f00[_0x27d9a4(0x2c5)];_0x1bb613>0x0?_0x1bb613>_0x29f5fc?this[_0x27d9a4(0x2de)][_0x27d9a4(0x229)](this,_0x596b55,_0x596b55[_0x27d9a4(0x17b)]===_0x27d9a4(0x231)?_0x6618ab+_0x2d9f00[_0x27d9a4(0x1e9)](_0x29f5fc):_0x2d9f00[_0x27d9a4(0x1e9)](0x0,_0x1bb613-_0x29f5fc)+_0x6618ab):this[_0x27d9a4(0x2de)][_0x27d9a4(0x229)](this,_0x596b55,rs[_0x27d9a4(0x1cf)]({'charset':'*','length':_0x1bb613})):this[_0x27d9a4(0x2de)][_0x27d9a4(0x229)](this,_0x596b55,'');}else this[_0x27d9a4(0x2de)][_0x27d9a4(0x229)](this,_0x596b55,_0x2d9f00);return _0x412a02;},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x23f)]=function(_0x438880){const _0x14e999=a1216_0x5756ff;return logger[_0x14e999(0x173)](util[_0x14e999(0x2b2)](_0x14e999(0x18d),_0x438880[_0x14e999(0x171)])),this['getdigits'](_0x438880);},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x2b7)]=function(_0x4f7507){const _0x3a066f=a1216_0x5756ff;return logger[_0x3a066f(0x173)](util[_0x3a066f(0x2b2)]('Enter\x20in\x20GOAL\x20(%s)\x20block',_0x4f7507[_0x3a066f(0x171)])),this['createSquareDetailsReport'][_0x3a066f(0x229)](this,_0x4f7507,_0x4f7507[_0x3a066f(0x155)]),this['channel']['noop'](util[_0x3a066f(0x2b2)](_0x3a066f(0x14f),_0x4f7507[_0x3a066f(0x155)]));},AGIVertices[a1216_0x5756ff(0x2b5)]['awspolly']=function(_0x2d2efd){const _0x1576de=a1216_0x5756ff;logger['info'](util[_0x1576de(0x2b2)](_0x1576de(0x30e),_0x2d2efd['label']));if(!this[_0x1576de(0x200)](_0x2d2efd[_0x1576de(0x211)])||!this[_0x1576de(0x200)](_0x2d2efd[_0x1576de(0x27e)]))return this[_0x1576de(0x29f)][_0x1576de(0x19a)]('no\x20valid\x20credentials\x20configured');if(!this[_0x1576de(0x200)](_0x2d2efd['text']))return this[_0x1576de(0x29f)]['noop'](_0x1576de(0x16f));this[_0x1576de(0x29f)][_0x1576de(0x19a)](util['format'](_0x1576de(0x2c9),_0x2d2efd[_0x1576de(0x2b0)]));const _0x4860e7=this[_0x1576de(0x1a5)][_0x1576de(0x229)](this,_0x2d2efd);if(_0x4860e7){this['channel'][_0x1576de(0x19a)](util['format']('aws\x20Polly\x20%s\x20file\x20created',_0x4860e7));const _0x56b502=this['channel'][_0x1576de(0x278)](_0x4860e7);try{fs['unlink'](_0x4860e7+_0x1576de(0x2ae));}catch(_0x42878c){logger[_0x1576de(0x275)](_0x42878c);}return _0x56b502;}return this['channel']['error'](_0x2d2efd,'aws\x20Polly\x20is\x20unreachable');},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x2fe)]=function(_0x192b6a){const _0x58e436=a1216_0x5756ff;logger[_0x58e436(0x173)](util[_0x58e436(0x2b2)](_0x58e436(0x30d),_0x192b6a[_0x58e436(0x171)]));if(!this[_0x58e436(0x200)](_0x192b6a[_0x58e436(0x211)])||!this['isConfigured'](_0x192b6a[_0x58e436(0x27e)]))return this[_0x58e436(0x29f)]['noop'](_0x58e436(0x228));if(!this['isConfigured'](_0x192b6a['aws_bot_name']))return this[_0x58e436(0x29f)][_0x58e436(0x19a)](_0x58e436(0x1ab));if(!this[_0x58e436(0x200)](_0x192b6a[_0x58e436(0x2b0)]))return this[_0x58e436(0x29f)]['noop'](_0x58e436(0x16f));this[_0x58e436(0x29f)][_0x58e436(0x1f2)]=!![],this[_0x58e436(0x2de)](_0x192b6a),this[_0x58e436(0x202)](_0x192b6a[_0x58e436(0x2b0)],'in','',''),this[_0x58e436(0x29f)][_0x58e436(0x19a)](util[_0x58e436(0x2b2)](_0x58e436(0x189),_0x192b6a['text']));const _0x1e2015=this[_0x58e436(0x21f)][_0x58e436(0x229)](this,_0x192b6a);if(_0x1e2015){for(const _0x192f05 in _0x1e2015){typeof _0x1e2015[_0x192f05]!==_0x58e436(0x242)&&_['isString'](_0x1e2015[_0x192f05])&&this[_0x58e436(0x29f)]['setVariable'](util[_0x58e436(0x2b2)](_0x58e436(0x252),_0x192f05[_0x58e436(0x177)]()),_0x1e2015[_0x192f05]);}return _['isNil'](_0x1e2015[_0x58e436(0x186)])?this[_0x58e436(0x29f)][_0x58e436(0x19a)](_0x58e436(0x15a)):(this[_0x58e436(0x202)](_0x1e2015[_0x58e436(0x186)],_0x58e436(0x1dc),'amazonlex',''),this['channel']['noop'](util[_0x58e436(0x2b2)](_0x58e436(0x27c),_0x1e2015['message'])));}return this[_0x58e436(0x29f)][_0x58e436(0x275)](_0x192b6a,_0x58e436(0x2d8));},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x16e)]=function(_0x4998c6){const _0x59bbf0=a1216_0x5756ff;logger[_0x59bbf0(0x173)](util[_0x59bbf0(0x2b2)](_0x59bbf0(0x23d),_0x4998c6[_0x59bbf0(0x171)],_0x4998c6[_0x59bbf0(0x24d)]));if(!this['isConfigured'](_0x4998c6['key']))return this[_0x59bbf0(0x29f)][_0x59bbf0(0x19a)]('no\x20key\x20configured');const _0x5553fe=_0x59bbf0(0x144),_0x48d97a=util[_0x59bbf0(0x2b2)](_0x59bbf0(0x18e),FILES_PATH,rs[_0x59bbf0(0x1cf)](0x4)),_0x406d1e=util[_0x59bbf0(0x2b2)](_0x59bbf0(0x28c),_0x48d97a,_0x5553fe);let _0x35ec72=!![];_0x4998c6[_0x59bbf0(0x150)]===_0x59bbf0(0x2af)&&(_0x35ec72=![]);const _0x180ca0=this['channel'][_0x59bbf0(0x2e1)](_0x48d97a,_0x5553fe,_0x4998c6['intKey'],_0x4998c6[_0x59bbf0(0x24d)],undefined,_0x35ec72);if(_0x180ca0[_0x59bbf0(0x213)]!==-0x1){this[_0x59bbf0(0x29f)][_0x59bbf0(0x19a)](util[_0x59bbf0(0x2b2)](_0x59bbf0(0x153),_0x406d1e));const _0x54afbf=this[_0x59bbf0(0x2ff)][_0x59bbf0(0x229)](this,_0x4998c6,_0x406d1e);if(_0x54afbf){for(const _0x2d5bdd in _0x54afbf){typeof _0x54afbf[_0x2d5bdd]!=='undefined'&&this[_0x59bbf0(0x29f)][_0x59bbf0(0x226)](util[_0x59bbf0(0x2b2)](_0x59bbf0(0x2c4),_0x2d5bdd[_0x59bbf0(0x177)]()),_0x54afbf[_0x2d5bdd]);}return this[_0x59bbf0(0x29f)][_0x59bbf0(0x19a)](util[_0x59bbf0(0x2b2)](_0x59bbf0(0x21a),JSON[_0x59bbf0(0x1d2)](_0x54afbf)));}}return _0x180ca0;},AGIVertices[a1216_0x5756ff(0x2b5)]['tildeasr']=function(_0x170407){const _0x296014=a1216_0x5756ff;logger['info'](util[_0x296014(0x2b2)]('Enter\x20in\x20TILDEASR\x20(%s)\x20block',_0x170407['label']));if(!this[_0x296014(0x200)](_0x170407['appid']))return this[_0x296014(0x29f)][_0x296014(0x19a)](_0x296014(0x157));if(!this[_0x296014(0x200)](_0x170407[_0x296014(0x22b)]))return this['channel'][_0x296014(0x19a)](_0x296014(0x2ac));const _0x21661c=_0x296014(0x144),_0x321b21=util[_0x296014(0x2b2)]('%s/recordings/%s',FILES_PATH,rs[_0x296014(0x1cf)](0x4)),_0x3cc14f=util[_0x296014(0x2b2)](_0x296014(0x28c),_0x321b21,_0x21661c);let _0x1970a7=!![];_0x170407['beep']===_0x296014(0x2af)&&(_0x1970a7=![]);const _0x11c7f7=this['channel'][_0x296014(0x2e1)](_0x321b21,_0x21661c,_0x170407[_0x296014(0x290)],_0x170407[_0x296014(0x24d)],undefined,_0x1970a7);if(_0x11c7f7[_0x296014(0x213)]!==-0x1){this[_0x296014(0x29f)]['noop'](util[_0x296014(0x2b2)](_0x296014(0x25e),_0x3cc14f));const _0x6fd469=this[_0x296014(0x2c1)]['sync'](this,_0x170407,_0x3cc14f);if(_0x6fd469){for(const _0x3c4743 in _0x6fd469){typeof _0x6fd469[_0x3c4743]!==_0x296014(0x242)&&this[_0x296014(0x29f)][_0x296014(0x226)](util[_0x296014(0x2b2)](_0x296014(0x17f),_0x3c4743['toUpperCase']()),_0x6fd469[_0x3c4743]);}return this[_0x296014(0x29f)]['noop'](util['format'](_0x296014(0x309),JSON['stringify'](_0x6fd469)));}}return _0x11c7f7;},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x1aa)]=function(_0x58c13e){const _0x583352=a1216_0x5756ff;return logger[_0x583352(0x173)](util[_0x583352(0x2b2)](_0x583352(0x2cd),_0x58c13e['label'])),this[_0x583352(0x29f)][_0x583352(0x15e)](_0x58c13e[_0x583352(0x271)],_0x58c13e[_0x583352(0x16b)],_0x58c13e[_0x583352(0x209)]);},AGIVertices['prototype'][a1216_0x5756ff(0x2d4)]=function(_0x432665){const _0x32cc74=a1216_0x5756ff;logger[_0x32cc74(0x173)](util['format']('Enter\x20in\x20GOTOIF\x20(%s)\x20block',_0x432665[_0x32cc74(0x171)]));if(!this[_0x32cc74(0x200)](_0x432665[_0x32cc74(0x233)]))return this[_0x32cc74(0x29f)]['error'](_0x432665,_0x32cc74(0x2f5));try{const _0x28119c=eval(_0x432665[_0x32cc74(0x233)])?_0x32cc74(0x181):_0x32cc74(0x27d);return this[_0x32cc74(0x29f)][_0x32cc74(0x19a)](util[_0x32cc74(0x2b2)]('EVAL\x20CONDITION\x20%s\x20%s',_0x432665[_0x32cc74(0x233)],_0x28119c)),{'code':0xc8,'result':_0x28119c};}catch(_0x32a552){return{'code':0xc8,'result':'false'};}},AGIVertices['prototype'][a1216_0x5756ff(0x240)]=function(_0x5bafe5){const _0x325c13=a1216_0x5756ff;logger[_0x325c13(0x173)](util[_0x325c13(0x2b2)](_0x325c13(0x1ee),_0x5bafe5[_0x325c13(0x171)]));if(!this[_0x325c13(0x200)](_0x5bafe5[_0x325c13(0x264)]))return this['channel'][_0x325c13(0x275)](_0x5bafe5,_0x325c13(0x1c9));const _0x272c4c=this[_0x325c13(0x14b)][_0x325c13(0x229)](this,_0x5bafe5[_0x325c13(0x264)]);if(!_0x272c4c)return this[_0x325c13(0x29f)][_0x325c13(0x275)](_0x5bafe5,_0x325c13(0x2a6));for(let _0x338795=0x0;_0x338795<_0x272c4c[_0x325c13(0x2c5)];_0x338795+=0x1){const _0x303e92=this['channel'][_0x325c13(0x1fb)](util[_0x325c13(0x2b2)]('IFTIME(%s?true:false)',_0x272c4c[_0x338795]));if(_0x303e92['result']===-0x1)return _0x303e92;logger[_0x325c13(0x173)](util[_0x325c13(0x2b2)]('IFTIME\x20%s\x20%s',_0x272c4c[_0x338795],_0x303e92[_0x325c13(0x174)]));if(_0x303e92['extra']===_0x325c13(0x181))return logger[_0x325c13(0x173)](util[_0x325c13(0x2b2)](_0x325c13(0x1c7),_0x272c4c[_0x338795],'true')),this[_0x325c13(0x29f)][_0x325c13(0x19a)](util[_0x325c13(0x2b2)](_0x325c13(0x1c7),_0x272c4c[_0x338795],_0x325c13(0x181))),{'code':0xc8,'result':_0x325c13(0x181)};else logger[_0x325c13(0x173)](util[_0x325c13(0x2b2)](_0x325c13(0x1c7),_0x272c4c[_0x338795],_0x325c13(0x27d))),this[_0x325c13(0x29f)][_0x325c13(0x19a)](util[_0x325c13(0x2b2)](_0x325c13(0x1c7),_0x272c4c[_0x338795],_0x325c13(0x27d)));}return{'code':0xc8,'result':_0x325c13(0x27d)};},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x2f8)]=function(_0x32768b){const _0x212a53=a1216_0x5756ff;return logger[_0x212a53(0x173)](util[_0x212a53(0x2b2)](_0x212a53(0x308),_0x32768b[_0x212a53(0x171)])),this['channel'][_0x212a53(0x2f8)]();},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x2c3)]=function(_0xe1c326){const _0x3732d9=a1216_0x5756ff;logger[_0x3732d9(0x173)](util[_0x3732d9(0x2b2)]('Enter\x20in\x20ISPEECHASR\x20(%s)\x20block',_0xe1c326[_0x3732d9(0x171)]));if(!this[_0x3732d9(0x200)](_0xe1c326[_0x3732d9(0x19e)]))return this[_0x3732d9(0x29f)][_0x3732d9(0x19a)](_0x3732d9(0x1c3));const _0x1b6229=_0x3732d9(0x144),_0x34faa7=util[_0x3732d9(0x2b2)](_0x3732d9(0x18e),FILES_PATH,rs['generate'](0x4)),_0x4b4392=util[_0x3732d9(0x2b2)](_0x3732d9(0x28c),_0x34faa7,_0x1b6229);let _0x3e9219=!![];_0xe1c326['beep']===_0x3732d9(0x2af)&&(_0x3e9219=![]);const _0x242444=this[_0x3732d9(0x29f)][_0x3732d9(0x2e1)](_0x34faa7,_0x1b6229,_0xe1c326[_0x3732d9(0x290)],_0xe1c326[_0x3732d9(0x24d)],undefined,_0x3e9219);if(_0x242444[_0x3732d9(0x213)]!==-0x1){this[_0x3732d9(0x29f)][_0x3732d9(0x19a)](util[_0x3732d9(0x2b2)]('ispeech\x20%s\x20file\x20created',_0x4b4392));const _0x158e4b=this['ispeechASR'][_0x3732d9(0x229)](this,_0xe1c326,_0x4b4392);if(_0x158e4b){for(const _0x38a38c in _0x158e4b){typeof _0x158e4b[_0x38a38c]!==_0x3732d9(0x242)&&this[_0x3732d9(0x29f)][_0x3732d9(0x226)](util[_0x3732d9(0x2b2)]('ISPEECH_ASR_%s',_0x38a38c[_0x3732d9(0x177)]()),_0x158e4b[_0x38a38c]);}return this[_0x3732d9(0x29f)]['noop'](util[_0x3732d9(0x2b2)](_0x3732d9(0x2f9),JSON['stringify'](_0x158e4b)));}}return _0x242444;},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x2f2)]=function(_0x4b8594){const _0xe5a419=a1216_0x5756ff;logger['info'](util[_0xe5a419(0x2b2)]('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0x4b8594[_0xe5a419(0x171)]));if(!this[_0xe5a419(0x200)](_0x4b8594[_0xe5a419(0x19e)]))return this['channel'][_0xe5a419(0x19a)](_0xe5a419(0x1c3));if(!this[_0xe5a419(0x200)](_0x4b8594[_0xe5a419(0x2b0)]))return this['channel'][_0xe5a419(0x19a)](_0xe5a419(0x16f));this[_0xe5a419(0x29f)][_0xe5a419(0x19a)](util[_0xe5a419(0x2b2)]('Trying\x20ispeech\x20TTS\x20%s',_0x4b8594[_0xe5a419(0x2b0)]));const _0x54e4b4=this[_0xe5a419(0x238)][_0xe5a419(0x229)](this,_0x4b8594);if(_0x54e4b4){this['channel'][_0xe5a419(0x19a)](util[_0xe5a419(0x2b2)](_0xe5a419(0x185),_0x54e4b4));const _0x2652c5=this['channel']['streamFile'](_0x54e4b4,_0x4b8594[_0xe5a419(0x290)]);try{fs[_0xe5a419(0x192)](_0x54e4b4+_0xe5a419(0x2ae));}catch(_0x5945f2){logger[_0xe5a419(0x275)](_0x5945f2);}return _0x2652c5;}return this[_0xe5a419(0x29f)][_0xe5a419(0x275)](_0x4b8594,_0xe5a419(0x1fa));},AGIVertices['prototype']['login']=function(_0x1be7f4){const _0x1202f9=a1216_0x5756ff;logger[_0x1202f9(0x173)](util['format']('Enter\x20in\x20LOGIN\x20(%s)\x20block',_0x1be7f4[_0x1202f9(0x171)]));if(!this['isConfigured'](_0x1be7f4[_0x1202f9(0x2fa)]))return this[_0x1202f9(0x29f)][_0x1202f9(0x275)](_0x1be7f4,_0x1202f9(0x194));logger[_0x1202f9(0x173)](util['format'](_0x1202f9(0x293),this[_0x1202f9(0x29f)][_0x1202f9(0x2a7)],_0x1be7f4['findBy']));const _0x30852d=this[_0x1202f9(0x277)][_0x1202f9(0x229)](this,_0x1be7f4[_0x1202f9(0x2fa)]);return _0x30852d?(logger['info'](util[_0x1202f9(0x2b2)]('AGENT\x20%s\x20FOUND\x20BY',this[_0x1202f9(0x29f)][_0x1202f9(0x2a7)],_0x1be7f4[_0x1202f9(0x2fa)])),this[_0x1202f9(0x29f)]['noop'](util[_0x1202f9(0x2b2)](_0x1202f9(0x20e),this[_0x1202f9(0x29f)][_0x1202f9(0x2a7)],_0x1be7f4[_0x1202f9(0x2fa)])),{'code':0xc8,'result':_0x1202f9(0x22c)}):(logger[_0x1202f9(0x173)](util[_0x1202f9(0x2b2)](_0x1202f9(0x28f),this[_0x1202f9(0x29f)][_0x1202f9(0x2a7)],_0x1be7f4['findBy'])),this[_0x1202f9(0x29f)][_0x1202f9(0x19a)](util[_0x1202f9(0x2b2)](_0x1202f9(0x28f),this[_0x1202f9(0x29f)]['callerid'],_0x1be7f4[_0x1202f9(0x2fa)])),{'code':0xc8,'result':'failure'});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x151)]=function(_0x392945){const _0x733c5=a1216_0x5756ff;logger[_0x733c5(0x173)](util[_0x733c5(0x2b2)](_0x733c5(0x281),_0x392945['label']));if(!this[_0x733c5(0x200)](_0x392945[_0x733c5(0x2fa)]))return this['channel'][_0x733c5(0x275)](_0x392945,_0x733c5(0x194));logger[_0x733c5(0x173)](util[_0x733c5(0x2b2)](_0x733c5(0x293),this['channel'][_0x733c5(0x2a7)],_0x392945['findBy']));const _0x4e466e=this[_0x733c5(0x176)]['sync'](this,_0x392945[_0x733c5(0x2fa)]);return _0x4e466e?(logger[_0x733c5(0x173)](util[_0x733c5(0x2b2)](_0x733c5(0x20e),this[_0x733c5(0x29f)][_0x733c5(0x2a7)],_0x392945[_0x733c5(0x2fa)])),this[_0x733c5(0x29f)][_0x733c5(0x19a)](util[_0x733c5(0x2b2)](_0x733c5(0x20e),this['channel'][_0x733c5(0x2a7)],_0x392945[_0x733c5(0x2fa)])),{'code':0xc8,'result':_0x733c5(0x22c)}):(logger[_0x733c5(0x173)](util[_0x733c5(0x2b2)](_0x733c5(0x28f),this['channel'][_0x733c5(0x2a7)],_0x392945[_0x733c5(0x2fa)])),this[_0x733c5(0x29f)][_0x733c5(0x19a)](util[_0x733c5(0x2b2)]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0x733c5(0x2a7)],_0x392945[_0x733c5(0x2fa)])),{'code':0xc8,'result':_0x733c5(0x1ad)});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x2cc)]=function(_0xf6f194){const _0x543f3a=a1216_0x5756ff;logger['info'](util[_0x543f3a(0x2b2)]('Enter\x20in\x20MATH\x20(%s)\x20block',_0xf6f194[_0x543f3a(0x171)]));if(!this['isConfigured'](_0xf6f194['operation']))return this['channel'][_0x543f3a(0x275)](_0xf6f194,'no\x20operation\x20configured');this['channel']['noop'](util[_0x543f3a(0x2b2)]('math\x20%s',_0xf6f194[_0x543f3a(0x245)]));const _0x1e8efc=eval(_0xf6f194['operation']);if(!this[_0x543f3a(0x200)](_0xf6f194['variable_id']))return this[_0x543f3a(0x29f)]['noop']('no\x20variable\x20selected\x20for\x20the\x20result');const _0x1c2302=this[_0x543f3a(0x1fb)][_0x543f3a(0x229)](this,_0xf6f194[_0x543f3a(0x27f)]);if(!_0x1c2302)return this['channel'][_0x543f3a(0x275)](_0xf6f194,_0x543f3a(0x1c2));if(_[_0x543f3a(0x1a8)](_0x1e8efc)){const _0x347fd8=this;return _0x1e8efc[_0x543f3a(0x1e4)](function(_0x2ba994,_0x3be6a3){const _0x3539ad=_0x543f3a;_0x347fd8[_0x3539ad(0x29f)]['setVariable'](util[_0x3539ad(0x2b2)]('%s[%s]',_0x1c2302,_0x3be6a3),_0x2ba994);}),this[_0x543f3a(0x29f)][_0x543f3a(0x19a)](util[_0x543f3a(0x2b2)](_0x543f3a(0x1bf),_0x1c2302));}else return this[_0x543f3a(0x29f)]['setVariable'](_0x1c2302,_0x1e8efc);},AGIVertices[a1216_0x5756ff(0x2b5)]['menu']=function(_0x2046ea){const _0x4dab3d=a1216_0x5756ff;logger['info'](util['format'](_0x4dab3d(0x1de),_0x2046ea[_0x4dab3d(0x171)]));if(_0x2046ea['retry']===0x0)return this['maxRetry'](_0x2046ea);_0x2046ea[_0x4dab3d(0x218)]-=0x1;if(!this[_0x4dab3d(0x200)](_0x2046ea['file_id']))return this[_0x4dab3d(0x29f)]['error'](_0x2046ea,_0x4dab3d(0x1e7));const _0x1e90af=this[_0x4dab3d(0x19d)][_0x4dab3d(0x229)](this,_0x2046ea[_0x4dab3d(0x2e4)]);if(!_0x1e90af)return this[_0x4dab3d(0x29f)][_0x4dab3d(0x275)](_0x2046ea,_0x4dab3d(0x161));const _0x4b8f4f=this[_0x4dab3d(0x29f)][_0x4dab3d(0x1b6)](_0x1e90af,_0x2046ea[_0x4dab3d(0x30c)],_0x2046ea['digit']);let _0x308d50=_0x4b8f4f[_0x4dab3d(0x213)];if(_0x4b8f4f[_0x4dab3d(0x213)]===-0x1)return this[_0x4dab3d(0x2de)][_0x4dab3d(0x229)](this,_0x2046ea,'-1'),_0x4b8f4f;else{if(_0x4b8f4f['extra']===_0x4dab3d(0x24d))_0x4b8f4f[_0x4dab3d(0x213)]=_0x4b8f4f['result'][_0x4dab3d(0x2c5)]>0x0?_0x4b8f4f[_0x4dab3d(0x213)]:'t';else _[_0x4dab3d(0x172)](_0x4b8f4f[_0x4dab3d(0x213)])&&(_0x4b8f4f[_0x4dab3d(0x213)]='#',_0x308d50='#');}if(!this[_0x4dab3d(0x200)](_0x2046ea['variable_id']))this[_0x4dab3d(0x29f)][_0x4dab3d(0x19a)](_0x4dab3d(0x1bd));else{const _0x3ba400=this['getVariable'][_0x4dab3d(0x229)](this,_0x2046ea[_0x4dab3d(0x27f)]);if(!_0x3ba400)return this[_0x4dab3d(0x29f)][_0x4dab3d(0x275)](_0x2046ea,_0x4dab3d(0x1c2));this[_0x4dab3d(0x29f)][_0x4dab3d(0x226)](_0x3ba400,_0x308d50);}return this[_0x4dab3d(0x2de)]['sync'](this,_0x2046ea,_0x308d50),_0x4b8f4f;},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x19a)]=function(_0x377f2f){const _0x172d7d=a1216_0x5756ff;return logger['info'](util[_0x172d7d(0x2b2)]('Enter\x20in\x20NOOP\x20(%s)\x20block',_0x377f2f[_0x172d7d(0x171)])),this[_0x172d7d(0x29f)][_0x172d7d(0x19a)](_0x377f2f[_0x172d7d(0x1a9)]||_0x377f2f[_0x172d7d(0x171)]);},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x1a2)]=function(_0x104549){const _0x275ddb=a1216_0x5756ff;logger[_0x275ddb(0x173)](util[_0x275ddb(0x2b2)](_0x275ddb(0x17e),_0x104549['label']));if(!this[_0x275ddb(0x200)](_0x104549['findBy']))return this[_0x275ddb(0x29f)][_0x275ddb(0x275)](_0x104549,'no\x20find\x20by\x20configured');logger[_0x275ddb(0x173)](util['format'](_0x275ddb(0x293),this['channel'][_0x275ddb(0x2a7)],_0x104549[_0x275ddb(0x2fa)]));const _0x24ed85=this[_0x275ddb(0x2f3)][_0x275ddb(0x229)](this,_0x104549[_0x275ddb(0x15d)]),_0x445a92=this[_0x275ddb(0x216)][_0x275ddb(0x229)](this,_0x104549['findBy'],_0x24ed85);return _0x445a92?(logger[_0x275ddb(0x173)](util[_0x275ddb(0x2b2)]('AGENT\x20%s\x20FOUND\x20BY',this[_0x275ddb(0x29f)]['callerid'],_0x104549[_0x275ddb(0x2fa)])),this[_0x275ddb(0x29f)][_0x275ddb(0x19a)](util[_0x275ddb(0x2b2)]('AGENT\x20%s\x20FOUND\x20BY',this[_0x275ddb(0x29f)][_0x275ddb(0x2a7)],_0x104549['findBy'])),{'code':0xc8,'result':_0x275ddb(0x22c)}):(logger[_0x275ddb(0x173)](util[_0x275ddb(0x2b2)](_0x275ddb(0x28f),this['channel']['callerid'],_0x104549[_0x275ddb(0x2fa)])),this['channel'][_0x275ddb(0x19a)](util[_0x275ddb(0x2b2)](_0x275ddb(0x20e),this[_0x275ddb(0x29f)][_0x275ddb(0x2a7)],_0x104549[_0x275ddb(0x2fa)])),{'code':0xc8,'result':'failure'});},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x29b)]=function(_0x3f9b40){const _0x324980=a1216_0x5756ff;logger['info'](util[_0x324980(0x2b2)]('Enter\x20in\x20PLAYBACK\x20(%s)\x20block',_0x3f9b40[_0x324980(0x171)]));if(!this[_0x324980(0x200)](_0x3f9b40['file_id']))return this['channel']['error'](_0x3f9b40,_0x324980(0x1e7));const _0x58afcf=this[_0x324980(0x19d)]['sync'](this,_0x3f9b40[_0x324980(0x2e4)]);if(!_0x58afcf)return this[_0x324980(0x29f)]['error'](_0x3f9b40,_0x324980(0x161));const _0x31d1dd=this[_0x324980(0x29f)]['exec'](_0x324980(0x261),[_0x58afcf,_0x3f9b40[_0x324980(0x15b)]]);if(_0x31d1dd[_0x324980(0x213)]===-0x1)return _0x31d1dd;return this[_0x324980(0x29f)]['noop'](util[_0x324980(0x2b2)](_0x324980(0x179),_0x324980(0x261),_0x58afcf));},AGIVertices['prototype'][a1216_0x5756ff(0x145)]=function(_0x25b11a){const _0x294fc4=a1216_0x5756ff;logger[_0x294fc4(0x173)](util['format'](_0x294fc4(0x284),_0x25b11a[_0x294fc4(0x171)]));if(!this[_0x294fc4(0x200)](_0x25b11a[_0x294fc4(0x225)]))return this[_0x294fc4(0x29f)][_0x294fc4(0x275)](_0x25b11a,_0x294fc4(0x158));let _0x5c9460='';const _0x4db296=parseInt(_0x25b11a['queue_id'],0xa);if(isNaN(_0x4db296))_0x5c9460=_0x25b11a[_0x294fc4(0x225)];else{_0x5c9460=this[_0x294fc4(0x2b1)]['sync'](this,_0x25b11a[_0x294fc4(0x225)]);if(!_0x5c9460)return this[_0x294fc4(0x29f)][_0x294fc4(0x275)](_0x25b11a,_0x294fc4(0x28d));}let _0x2257ef='';if(this[_0x294fc4(0x200)](_0x25b11a[_0x294fc4(0x2e4)])){const _0x22cb73=this[_0x294fc4(0x19d)][_0x294fc4(0x229)](this,_0x25b11a['file_id']);_0x22cb73&&(_0x2257ef=_0x22cb73);}this['createSquareDetailsReport']['sync'](this,_0x25b11a,_0x5c9460);_0x25b11a[_0x294fc4(0x15b)][_0x294fc4(0x1db)]('x')<0x0&&(_0x25b11a[_0x294fc4(0x15b)]+='x');_0x25b11a[_0x294fc4(0x15b)][_0x294fc4(0x1db)]('X')<0x0&&(_0x25b11a[_0x294fc4(0x15b)]+='X');this[_0x294fc4(0x29f)][_0x294fc4(0x226)](_0x294fc4(0x249),_0x5c9460?_0x5c9460['toLowerCase']():'');const _0x344527=this[_0x294fc4(0x29f)]['exec'](_0x294fc4(0x2fb),[_0x5c9460,_0x25b11a['opts'],_0x25b11a['url'],_0x2257ef,_0x25b11a['timeout'],_0x25b11a[_0x294fc4(0x2d9)],_0x25b11a[_0x294fc4(0x227)],_0x25b11a[_0x294fc4(0x298)],'',_0x25b11a[_0x294fc4(0x2e3)]]);if(_0x344527['result']===-0x1)return _0x344527;return this['channel'][_0x294fc4(0x19a)](util[_0x294fc4(0x2b2)](_0x294fc4(0x179),_0x294fc4(0x2fb),_0x5c9460));},AGIVertices['prototype'][a1216_0x5756ff(0x243)]=function(_0x6beda7){const _0x2a6427=a1216_0x5756ff;logger[_0x2a6427(0x173)](util['format'](_0x2a6427(0x2ed),_0x6beda7[_0x2a6427(0x171)]));const _0x4c3a74=_0x6beda7[_0x2a6427(0x2ea)]||'wav',_0x37a642=util[_0x2a6427(0x2b2)](_0x2a6427(0x1b1),this[_0x2a6427(0x29f)]['uniqueid'],rs[_0x2a6427(0x1cf)](0x5)),_0x2db197=util[_0x2a6427(0x2b2)]('%s/recordings/%s.%s',FILES_PATH,_0x37a642,_0x4c3a74),_0x3d9835=util[_0x2a6427(0x2b2)](_0x2a6427(0x18e),FILES_PATH,_0x37a642);return this[_0x2a6427(0x2cf)][_0x2a6427(0x229)](this,_0x6beda7,_0x37a642,_0x2db197),this[_0x2a6427(0x29f)][_0x2a6427(0x226)](_0x2a6427(0x24f),_0x37a642),logger[_0x2a6427(0x173)](_0x2a6427(0x162),_0x3d9835,_0x4c3a74,_0x6beda7['escape_digits'],_0x6beda7[_0x2a6427(0x24d)]),this[_0x2a6427(0x29f)]['recordFile'](_0x3d9835,_0x4c3a74,_0x6beda7[_0x2a6427(0x18f)],_0x6beda7[_0x2a6427(0x24d)],undefined,!![]);},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x257)]=function(_0x175253){const _0x53498f=a1216_0x5756ff;logger[_0x53498f(0x173)](util['format'](_0x53498f(0x22e),_0x175253['label']));if(!this[_0x53498f(0x200)](_0x175253[_0x53498f(0x1ef)]))return this[_0x53498f(0x29f)]['noop'](_0x53498f(0x2ec));const _0x4abc4c=this['restAPI'][_0x53498f(0x229)](this,_0x175253);logger[_0x53498f(0x173)](util[_0x53498f(0x2b2)](_0x53498f(0x204),util[_0x53498f(0x1a0)](_0x4abc4c,{'showHidden':![],'depth':null})));if(!this[_0x53498f(0x200)](_0x175253[_0x53498f(0x27f)]))return this[_0x53498f(0x29f)][_0x53498f(0x19a)](_0x53498f(0x2db));const _0x2a369b=this[_0x53498f(0x1fb)][_0x53498f(0x229)](this,_0x175253['variable_id']);if(!_0x2a369b)return this[_0x53498f(0x29f)][_0x53498f(0x275)](_0x175253,'no\x20variable\x20found');this[_0x53498f(0x29f)][_0x53498f(0x226)](util[_0x53498f(0x2b2)](_0x53498f(0x17c),_0x2a369b),_0x4abc4c[_0x53498f(0x29c)]?_0x4abc4c['statusCode']:_0x53498f(0x1fc)),this[_0x53498f(0x29f)]['setVariable'](util['format'](_0x53498f(0x163),_0x2a369b),_0x4abc4c[_0x53498f(0x1cd)]?_0x4abc4c['statusMessage']:'OK');if(_0x4abc4c[_0x53498f(0x197)])try{this[_0x53498f(0x1b7)](_0x4abc4c[_0x53498f(0x197)],_0x2a369b);}catch(_0xed11a6){logger[_0x53498f(0x275)](util[_0x53498f(0x2b2)]('Unable\x20to\x20set\x20result\x20in\x20variable\x20%s',_0x2a369b));}return this[_0x53498f(0x29f)][_0x53498f(0x19a)](util[_0x53498f(0x2b2)]('variable\x20%s\x20set',_0x2a369b));},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x1f4)]=function(_0x1f30af){const _0x39f994=a1216_0x5756ff;return logger[_0x39f994(0x173)](util[_0x39f994(0x2b2)](_0x39f994(0x25c),_0x1f30af[_0x39f994(0x171)])),this[_0x39f994(0x29f)][_0x39f994(0x1ed)](_0x1f30af[_0x39f994(0x223)][_0x39f994(0x147)](/\s+/g,''),_0x1f30af['escape_digits']);},AGIVertices[a1216_0x5756ff(0x2b5)]['saynumber']=function(_0x5c53a2){const _0x52af74=a1216_0x5756ff;return logger['info'](util[_0x52af74(0x2b2)](_0x52af74(0x25f),_0x5c53a2[_0x52af74(0x171)])),this['channel']['sayNumber'](_0x5c53a2[_0x52af74(0x236)][_0x52af74(0x147)](/\s+/g,''),_0x5c53a2['escape_digits']);},AGIVertices[a1216_0x5756ff(0x2b5)]['sayphonetic']=function(_0x372666){const _0xc165a2=a1216_0x5756ff;return logger[_0xc165a2(0x173)](util[_0xc165a2(0x2b2)](_0xc165a2(0x1b0),_0x372666[_0xc165a2(0x171)])),this[_0xc165a2(0x29f)][_0xc165a2(0x26a)](_0x372666['text'],_0x372666[_0xc165a2(0x18f)]);},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x301)]=function(_0x1bb287){const _0xd09da9=a1216_0x5756ff;logger[_0xd09da9(0x173)](util['format'](_0xd09da9(0x2ab),_0x1bb287[_0xd09da9(0x171)]));if(!this[_0xd09da9(0x200)](_0x1bb287['account_id']))return this[_0xd09da9(0x29f)]['noop'](_0xd09da9(0x1ec));const _0x171c0d=this[_0xd09da9(0x19c)]['sync'](this,_0x1bb287[_0xd09da9(0x17d)]);if(!_0x171c0d||!_0x171c0d[_0xd09da9(0x29d)])return this['channel'][_0xd09da9(0x275)](_0x1bb287,_0xd09da9(0x2bd));const _0x2149a7={'from':util[_0xd09da9(0x2b2)](_0xd09da9(0x170),_0x171c0d[_0xd09da9(0x307)],_0x171c0d[_0xd09da9(0x2d2)]||_0x171c0d[_0xd09da9(0x29d)][_0xd09da9(0x2d1)]),'to':_0x1bb287['to']||'','cc':_0x1bb287['cc']||'','bcc':_0x1bb287[_0xd09da9(0x268)]||'','subject':_0x1bb287[_0xd09da9(0x23e)],'html':_0x1bb287['text'],'text':_0x1bb287[_0xd09da9(0x2b0)]},_0x1d312e={'tls':{'rejectUnauthorized':![]}};_0x171c0d[_0xd09da9(0x29d)][_0xd09da9(0x1f1)]?_0x1d312e[_0xd09da9(0x1f1)]=_0x171c0d['Smtp']['service']:(_0x1d312e[_0xd09da9(0x193)]=_0x171c0d[_0xd09da9(0x29d)][_0xd09da9(0x193)],_0x1d312e[_0xd09da9(0x1e5)]=_0x171c0d[_0xd09da9(0x29d)][_0xd09da9(0x1e5)],_0x1d312e[_0xd09da9(0x1b3)]=_0x171c0d[_0xd09da9(0x29d)]['secure']);_0x171c0d[_0xd09da9(0x29d)][_0xd09da9(0x2e0)]&&(_0x1d312e[_0xd09da9(0x167)]={'user':_0x171c0d[_0xd09da9(0x29d)][_0xd09da9(0x2d1)],'pass':_0x171c0d['Smtp'][_0xd09da9(0x1a1)]});if(this[_0xd09da9(0x200)](_0x1bb287['template_id'])){}return logger[_0xd09da9(0x2ba)](_0xd09da9(0x1b5),JSON[_0xd09da9(0x1d2)](_0x2149a7)),this['createSquareDetailsReport']['sync'](this,_0x1bb287,_0x1bb287[_0xd09da9(0x17d)]),this[_0xd09da9(0x29f)][_0xd09da9(0x19a)](util[_0xd09da9(0x2b2)](_0xd09da9(0x208),_0x171c0d[_0xd09da9(0x307)])),this[_0xd09da9(0x248)][_0xd09da9(0x229)](this,_0x1d312e,_0x2149a7),this[_0xd09da9(0x29f)][_0xd09da9(0x19a)]('Mail\x20message\x20added\x20to\x20outgoing\x20process');},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x282)]=function(_0x390e01){const _0x288d59=a1216_0x5756ff;return logger[_0x288d59(0x173)](util['format'](_0x288d59(0x15f),_0x390e01[_0x288d59(0x171)])),this[_0x288d59(0x29f)][_0x288d59(0x19a)](_0x288d59(0x2f4));},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x2ad)]=function(_0x3b93ee){const _0x36465a=a1216_0x5756ff;logger['info'](util[_0x36465a(0x2b2)](_0x36465a(0x247),_0x3b93ee['label']));if(!this[_0x36465a(0x200)](_0x3b93ee['sms_account_id']))return this[_0x36465a(0x29f)][_0x36465a(0x19a)](_0x36465a(0x1f6));const _0x41ae43=this['getSmsAccount'][_0x36465a(0x229)](this,_0x3b93ee[_0x36465a(0x287)]);if(!_0x41ae43)return this[_0x36465a(0x29f)]['error'](_0x3b93ee,_0x36465a(0x2be));const _0x385b3d={'body':_0x3b93ee['sms_text'],'phone':_0x3b93ee['to']||'','SmsAccountId':_0x41ae43['id']};return logger['debug'](_0x36465a(0x1a4),JSON[_0x36465a(0x1d2)](_0x385b3d)),this['createSquareDetailsReport'][_0x36465a(0x229)](this,_0x3b93ee,_0x3b93ee[_0x36465a(0x287)]),this[_0x36465a(0x29f)][_0x36465a(0x19a)](util[_0x36465a(0x2b2)](_0x36465a(0x22d),_0x41ae43[_0x36465a(0x307)])),this['createSmsMessage']['sync'](this,_0x385b3d),this[_0x36465a(0x29f)][_0x36465a(0x19a)]('Sms\x20message\x20added\x20to\x20outgoing\x20process');},AGIVertices[a1216_0x5756ff(0x2b5)]['set']=function(_0x2aba27){const _0x418e73=a1216_0x5756ff;logger[_0x418e73(0x173)](util[_0x418e73(0x2b2)]('Enter\x20in\x20SET\x20(%s)\x20block',_0x2aba27[_0x418e73(0x171)]));if(!this['isConfigured'](_0x2aba27['variable_id']))return this['channel'][_0x418e73(0x275)](_0x2aba27,'no\x20variable\x20selected');const _0x15a096=this[_0x418e73(0x1fb)][_0x418e73(0x229)](this,_0x2aba27[_0x418e73(0x27f)]);if(!_0x15a096)return this[_0x418e73(0x29f)][_0x418e73(0x275)](_0x2aba27,_0x418e73(0x1c2));return this[_0x418e73(0x29f)][_0x418e73(0x226)](_0x15a096,_0x2aba27[_0x418e73(0x19b)]);},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x182)]=function(_0x142383){const _0x55bc6a=a1216_0x5756ff;logger[_0x55bc6a(0x173)](util['format'](_0x55bc6a(0x21b),_0x142383[_0x55bc6a(0x171)])),this['channel'][_0x55bc6a(0x19a)](_0x55bc6a(0x1e6));if(_0x142383[_0x55bc6a(0x1ba)]==='yes')return this[_0x55bc6a(0x29f)][_0x55bc6a(0x19a)](_0x55bc6a(0x1b9)),this['channel'][_0x55bc6a(0x1ba)]();return this[_0x55bc6a(0x29f)][_0x55bc6a(0x19a)](_0x55bc6a(0x272));},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x175)]=function(_0x46a51e){const _0x3ad77c=a1216_0x5756ff;logger[_0x3ad77c(0x173)](util[_0x3ad77c(0x2b2)](_0x3ad77c(0x2c6),_0x46a51e['label']));if(!this[_0x3ad77c(0x200)](_0x46a51e[_0x3ad77c(0x27a)]))return this['channel']['error'](_0x46a51e,_0x3ad77c(0x2a9));const _0x6b8e85=this['getSquareProject'][_0x3ad77c(0x229)](this,_0x46a51e['project_id']);if(!this[_0x3ad77c(0x200)](_0x6b8e85))return this['channel']['error'](_0x46a51e,util[_0x3ad77c(0x2b2)](_0x3ad77c(0x253),_0x46a51e[_0x3ad77c(0x27a)]));if(_0x6b8e85===this[_0x3ad77c(0x29f)][_0x3ad77c(0x23b)])return this[_0x3ad77c(0x29f)][_0x3ad77c(0x275)](_0x46a51e,_0x3ad77c(0x25d));this[_0x3ad77c(0x2de)][_0x3ad77c(0x229)](this,_0x46a51e,_0x6b8e85);const _0x282c3d=this[_0x3ad77c(0x29f)][_0x3ad77c(0x24b)](_0x3ad77c(0x29e),util[_0x3ad77c(0x2b2)](_0x3ad77c(0x2a8),config[_0x3ad77c(0x2d9)][_0x3ad77c(0x193)]||_0x3ad77c(0x274),_0x6b8e85,this[_0x3ad77c(0x29f)]['arg_1']));if(_0x282c3d[_0x3ad77c(0x213)]===-0x1)return _0x282c3d;return this['channel'][_0x3ad77c(0x19a)](util['format'](_0x3ad77c(0x179),_0x3ad77c(0x29e),_0x6b8e85));},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x2e8)]=function(_0x1a24ef){const _0x392b1b=a1216_0x5756ff;logger[_0x392b1b(0x173)](util['format'](_0x392b1b(0x214),_0x1a24ef[_0x392b1b(0x171)]));const _0x490910=this['shellCommand'][_0x392b1b(0x229)](this,_0x1a24ef[_0x392b1b(0x2f6)]);this['createSquareDetailsReport'][_0x392b1b(0x229)](this,_0x1a24ef,_0x1a24ef['command']);if(this['isConfigured'](_0x1a24ef[_0x392b1b(0x27f)])){const _0x43c9b7=this[_0x392b1b(0x1fb)][_0x392b1b(0x229)](this,_0x1a24ef[_0x392b1b(0x27f)]);if(_0x43c9b7)return this['channel'][_0x392b1b(0x226)](_0x43c9b7,_0x490910),this[_0x392b1b(0x29f)][_0x392b1b(0x19a)](util[_0x392b1b(0x2b2)](_0x392b1b(0x26f),_0x1a24ef['command'],_0x43c9b7));}return this[_0x392b1b(0x29f)][_0x392b1b(0x19a)](util[_0x392b1b(0x2b2)](_0x392b1b(0x2da),_0x1a24ef[_0x392b1b(0x2f6)]));},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x305)]=function(_0x2097bf){const _0x1a90ea=a1216_0x5756ff;logger[_0x1a90ea(0x173)](util[_0x1a90ea(0x2b2)](_0x1a90ea(0x14c),_0x2097bf[_0x1a90ea(0x171)])),_0x2097bf[_0x1a90ea(0x2b0)]=_0x2097bf['text'][_0x1a90ea(0x147)](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x1a90ea(0x200)](_0x2097bf['apiKey']))return this[_0x1a90ea(0x29f)]['noop'](_0x1a90ea(0x297));if(!this['isConfigured'](_0x2097bf[_0x1a90ea(0x2b0)]))return this['channel'][_0x1a90ea(0x19a)](_0x1a90ea(0x16f));this['channel'][_0x1a90ea(0x19a)](util[_0x1a90ea(0x2b2)](_0x1a90ea(0x165),_0x2097bf[_0x1a90ea(0x2b0)]));const _0x1f1176=this[_0x1a90ea(0x1eb)][_0x1a90ea(0x229)](this,_0x2097bf);if(_0x1f1176){this[_0x1a90ea(0x29f)][_0x1a90ea(0x19a)](util[_0x1a90ea(0x2b2)](_0x1a90ea(0x256),_0x1f1176));const _0x1abcbb=this['channel'][_0x1a90ea(0x278)](_0x1f1176);try{fs[_0x1a90ea(0x192)](_0x1f1176+_0x1a90ea(0x2ae));}catch(_0x239ce6){logger[_0x1a90ea(0x275)](_0x239ce6);}return _0x1abcbb;}return this['channel'][_0x1a90ea(0x275)](_0x2097bf,'Google\x20Cloud\x20TTS\x20is\x20unreachable');},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x18c)]=function(_0x16845d){const _0x4ad32c=a1216_0x5756ff;logger[_0x4ad32c(0x173)](util['format'](_0x4ad32c(0x1ac),_0x16845d[_0x4ad32c(0x171)])),_0x16845d['text']=_0x16845d['text']['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x4ad32c(0x200)](_0x16845d[_0x4ad32c(0x2b0)]))return this['channel'][_0x4ad32c(0x19a)](_0x4ad32c(0x16f));this[_0x4ad32c(0x29f)][_0x4ad32c(0x19a)](util[_0x4ad32c(0x2b2)](_0x4ad32c(0x273),_0x16845d['text']));const _0x129d00=this[_0x4ad32c(0x1a7)][_0x4ad32c(0x229)](this,_0x16845d);if(_0x129d00){this[_0x4ad32c(0x29f)][_0x4ad32c(0x19a)](util[_0x4ad32c(0x2b2)](_0x4ad32c(0x2d3),_0x129d00));const _0x218a75=this[_0x4ad32c(0x29f)]['streamFile'](_0x129d00);try{fs[_0x4ad32c(0x192)](_0x129d00+'.wav');}catch(_0x2e359c){logger[_0x4ad32c(0x275)](_0x2e359c);}return _0x218a75;}return this[_0x4ad32c(0x29f)][_0x4ad32c(0x275)](_0x16845d,_0x4ad32c(0x2a5));},AGIVertices[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x27b)]=function(_0x48e5ee){const _0x20d73e=a1216_0x5756ff;logger[_0x20d73e(0x173)](util[_0x20d73e(0x2b2)](_0x20d73e(0x207),_0x48e5ee[_0x20d73e(0x171)]));if(!this['isConfigured'](_0x48e5ee['findBy']))return this[_0x20d73e(0x29f)][_0x20d73e(0x275)](_0x48e5ee,'no\x20find\x20by\x20configured');logger['info'](util[_0x20d73e(0x2b2)](_0x20d73e(0x293),this['channel']['callerid'],_0x48e5ee[_0x20d73e(0x2fa)]));const _0x2e8468=this['agentUnpause'][_0x20d73e(0x229)](this,_0x48e5ee[_0x20d73e(0x2fa)]);return _0x2e8468?(logger[_0x20d73e(0x173)](util['format']('AGENT\x20%s\x20FOUND\x20BY',this[_0x20d73e(0x29f)][_0x20d73e(0x2a7)],_0x48e5ee['findBy'])),this[_0x20d73e(0x29f)][_0x20d73e(0x19a)](util[_0x20d73e(0x2b2)](_0x20d73e(0x20e),this[_0x20d73e(0x29f)][_0x20d73e(0x2a7)],_0x48e5ee['findBy'])),{'code':0xc8,'result':_0x20d73e(0x22c)}):(logger[_0x20d73e(0x173)](util['format'](_0x20d73e(0x28f),this[_0x20d73e(0x29f)][_0x20d73e(0x2a7)],_0x48e5ee[_0x20d73e(0x2fa)])),this[_0x20d73e(0x29f)][_0x20d73e(0x19a)](util[_0x20d73e(0x2b2)](_0x20d73e(0x28f),this[_0x20d73e(0x29f)]['callerid'],_0x48e5ee['findBy'])),{'code':0xc8,'result':'failure'});},AGIVertices['prototype'][a1216_0x5756ff(0x1dd)]=function(_0x4ef655){const _0x1f0af6=a1216_0x5756ff;logger[_0x1f0af6(0x173)](util[_0x1f0af6(0x2b2)]('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x4ef655[_0x1f0af6(0x171)]));const _0x87c67d=this[_0x1f0af6(0x29f)][_0x1f0af6(0x24b)](_0x1f0af6(0x1ff),[_0x4ef655[_0x1f0af6(0x1a6)],_0x4ef655['options']]);if(_0x87c67d[_0x1f0af6(0x213)]===-0x1)return _0x87c67d;return this[_0x1f0af6(0x29f)][_0x1f0af6(0x19a)](util[_0x1f0af6(0x2b2)]('Executed\x20command\x20%s\x20%s',_0x1f0af6(0x1ff),_0x4ef655[_0x1f0af6(0x1a6)]));},AGIVertices['prototype'][a1216_0x5756ff(0x2e7)]=function(_0x51c6f4){const _0x1ae19c=a1216_0x5756ff;logger[_0x1ae19c(0x173)](util[_0x1ae19c(0x2b2)](_0x1ae19c(0x2e2),_0x51c6f4['label']));if(!this['isConfigured'](_0x51c6f4['variable_id']))return this[_0x1ae19c(0x29f)][_0x1ae19c(0x275)](_0x51c6f4,_0x1ae19c(0x1f0));const _0x4e9608=this[_0x1ae19c(0x1fb)][_0x1ae19c(0x229)](this,_0x51c6f4[_0x1ae19c(0x27f)]);if(!_0x4e9608)return this[_0x1ae19c(0x29f)][_0x1ae19c(0x275)](_0x51c6f4,_0x1ae19c(0x1c2));const _0x345b58=this[_0x1ae19c(0x29f)][_0x1ae19c(0x1fb)](_0x4e9608);return{'code':0xc8,'result':_0x345b58[_0x1ae19c(0x174)]?_0x345b58['extra']:'-'};},String[a1216_0x5756ff(0x2b5)][a1216_0x5756ff(0x18a)]=function(_0x3be78d,_0x3820bd){const _0x377908=a1216_0x5756ff;return this['split'](_0x3be78d)[_0x377908(0x230)](_0x3820bd);},module[a1216_0x5756ff(0x306)]=AGIVertices; \ No newline at end of file diff --git a/server/services/ami/acw/index.js b/server/services/ami/acw/index.js index 80011b6..69695fe 100644 --- a/server/services/ami/acw/index.js +++ b/server/services/ami/acw/index.js @@ -1 +1 @@ -const a1217_0x2267=['agentconnect','custom:agentConnectPreview','syncHangup','[ACW][syncBlindTransfer]\x20%s','error','syncAgentConnect','QueuePause','[%s][HANGUP:UNIQUEID]','catch','stopAcw','[ACW][START]\x20%s','finally','mandatoryDisposition','transfertargetuniqueid','savePause','autopause','updateAcw','update','timers','attended','syncAgentRingNoAnswer','syncAttendedTransfer','then','acwTimeout','stringify','[%s][AUTOPAUSE][AGENT:%s][QUEUE:%]','[%s][HANGUPATTENDEDTRANSFER:LINKEDID]','interface','moment','linkedid','[%s][TIMER:%s][AGENT:%s][QUEUE:%s]','uniqueid','syncAgentConnectPreview','Auto-Pause','ACW','../ami','[%s][BLINDTRANSFER:LINKEDID]','transfererlinkedid','destlinkedid','[ACW][syncHangupRequest]\x20%s','[%s][UPDATE][ERRORS:%s]','agents','info','[TIMER][STOP][AGENT:%s]','[ACW][syncAgentConnect]\x20%s','milliseconds','[%s][START][AGENT:%s][QUEUE:%s]','[%s][BLINDTRANSFER:UNIQUEID]','diff','secondtransfereruniqueid','[%s][INPAUSE][AGENT:%s][QUEUE:%s]','transfereruniqueid','voicePause','name','isNil','syncBlindTransfer','message','lastPauseAt','all','channels','[ACW][STOP]\x20Interface\x20%s\x20doesn\x27t\x20have\x20timer','../../../config/logger','YYYY-MM-DD\x20HH:mm:ss','bind','hangup','[ACW][syncAgentRingNoAnswer]\x20%s','lodash','syncHangupRequest','startAcw','[ACW][TIMERS]','prototype','[%s][HANGUPATTENDEDTRANSFER:UNIQUEID]','../rpc/voiceAgentReport','queue','agentringnoanswer','timer','hanguprequest','voiceQueues','[ACW][syncHangup]\x20%s','origtransfereruniqueid','mandatoryDispositionPause','transfereeuniqueid','acw'];(function(_0x3f68c7,_0x41e635){const _0x2267d3=function(_0x4a301c){while(--_0x4a301c){_0x3f68c7['push'](_0x3f68c7['shift']());}};_0x2267d3(++_0x41e635);}(a1217_0x2267,0x9e));const a1217_0x4a30=function(_0x3f68c7,_0x41e635){_0x3f68c7=_0x3f68c7-0xf4;let _0x2267d3=a1217_0x2267[_0x3f68c7];return _0x2267d3;};const a1217_0x51a6d4=a1217_0x4a30;'use strict';const _=require(a1217_0x51a6d4(0x13e)),moment=require(a1217_0x51a6d4(0x118)),ami=require(a1217_0x51a6d4(0x11f)),logger=require(a1217_0x51a6d4(0x139))(a1217_0x51a6d4(0xfb)),RpcUser=require('../rpc/user'),RpcVoiceAgentReport=require(a1217_0x51a6d4(0x144));function Acw(_0x1872b8){const _0x13156d=a1217_0x51a6d4;this[_0x13156d(0xf6)]=_0x1872b8[_0x13156d(0xf6)],this[_0x13156d(0x125)]=_0x1872b8[_0x13156d(0x125)],this[_0x13156d(0x10e)]=_0x1872b8[_0x13156d(0x10e)],this[_0x13156d(0x137)]={},ami['on'](_0x13156d(0xfc),this[_0x13156d(0x101)][_0x13156d(0x13b)](this)),ami['on'](_0x13156d(0xf5),this[_0x13156d(0x13f)][_0x13156d(0x13b)](this)),ami['on'](_0x13156d(0x13c),this[_0x13156d(0xfe)]['bind'](this)),ami['on'](_0x13156d(0x146),this[_0x13156d(0x110)][_0x13156d(0x13b)](this)),ami['on']('attendedtransfer',this[_0x13156d(0x111)][_0x13156d(0x13b)](this)),ami['on']('blindtransfer',this[_0x13156d(0x133)][_0x13156d(0x13b)](this)),ami['on'](_0x13156d(0xfd),this[_0x13156d(0x11c)]['bind'](this));}function getDiff(_0x3fe4ae){const _0x3390ee=a1217_0x51a6d4,_0x43fc33=moment()[_0x3390ee(0x129)](0x0),_0x20ae35=moment(_0x3fe4ae)[_0x3390ee(0x129)](0x0);return _0x43fc33[_0x3390ee(0x12c)](_0x20ae35,'seconds');}Acw[a1217_0x51a6d4(0x142)][a1217_0x51a6d4(0x140)]=function(_0xa872a8){const _0x290351=a1217_0x51a6d4;try{const _0x1b194c=this,_0x4be9f2=this[_0x290351(0x137)][_0xa872a8][_0x290351(0x117)],_0x510b48=this[_0x290351(0x137)][_0xa872a8][_0x290351(0x145)],_0x1e46f0=this[_0x290351(0xf6)][_0x510b48];let _0x48daa0=![],_0x5accae=_0x290351(0x11e);_0x1e46f0[_0x290351(0x108)]&&(_0x1e46f0[_0x290351(0xf9)][_0x290351(0x131)]&&(_0x48daa0=!![],_0x5accae=_0x1e46f0[_0x290351(0xf9)][_0x290351(0x131)])),ami['Action']({'action':_0x290351(0x102),'interface':_0x4be9f2,'paused':!![],'reason':_0x5accae})[_0x290351(0x112)](function(){const _0x4feb83=_0x290351;if(_0x1b194c[_0x4feb83(0x125)][_0x4be9f2])return RpcUser['getAgent'](_0x1b194c[_0x4feb83(0x125)][_0x4be9f2]['id'])[_0x4feb83(0x112)](function(_0x5756ba){const _0x7fe71=_0x4feb83;if(_0x5756ba&&!_0x5756ba[_0x7fe71(0x130)]){logger[_0x7fe71(0x126)](_0x7fe71(0x12a),_0xa872a8,_0x4be9f2,_0x510b48);const _0x46399d=_0x1b194c['channels'][_0xa872a8][_0x7fe71(0x10f)]&&_0x1b194c[_0x7fe71(0x137)][_0xa872a8][_0x7fe71(0x122)]?_0x1b194c['channels'][_0xa872a8][_0x7fe71(0x122)]:_0xa872a8;return RpcUser['savePause'](_0x1b194c[_0x7fe71(0x125)][_0x4be9f2],_0x5accae,_0x46399d)[_0x7fe71(0x112)](function(){const _0x53fa61=_0x7fe71;!_0x48daa0&&(_0x1b194c['timers'][_0x4be9f2]={},logger[_0x53fa61(0x126)]('[%s][TIMER:%s][AGENT:%s][QUEUE:%s]',_0xa872a8,_0x1b194c[_0x53fa61(0xf6)][_0x510b48][_0x53fa61(0x113)],_0x4be9f2,_0x510b48),_0x1b194c[_0x53fa61(0x10e)][_0x4be9f2][_0x53fa61(0xf4)]=setTimeout(_0x1b194c['stopAcw'][_0x53fa61(0x13b)](_0x1b194c,_0x4be9f2),_0x1b194c['voiceQueues'][_0x510b48][_0x53fa61(0x113)]*0x3e8),_0x1b194c['timers'][_0x4be9f2]['lastPauseAt']=moment()['format'](_0x53fa61(0x13a)),_0x1b194c[_0x53fa61(0x10e)][_0x4be9f2][_0x53fa61(0x11b)]=_0xa872a8,_0x1b194c['timers'][_0x4be9f2][_0x53fa61(0x145)]=_0x510b48,_0x1b194c['timers'][_0x4be9f2][_0x53fa61(0x10c)]=function(){const _0x140ab6=_0x53fa61,_0x31aeb7=getDiff(_0x1b194c['timers'][_0x4be9f2][_0x140ab6(0x135)]);clearTimeout(_0x1b194c[_0x140ab6(0x10e)][_0x4be9f2][_0x140ab6(0xf4)]),_0x1b194c[_0x140ab6(0x10e)][_0x4be9f2][_0x140ab6(0xf4)]=![],RpcVoiceAgentReport['update']({'acwtime':_0x31aeb7},_0x1b194c[_0x140ab6(0x10e)][_0x4be9f2][_0x140ab6(0x11b)],_0x4be9f2)['then'](function(_0x2f057e){const _0x40d310=_0x140ab6;logger[_0x40d310(0x126)]('[%s][UPDATE][ACWTIME:%s]',_0xa872a8,_0x31aeb7,_0x2f057e);})[_0x140ab6(0x104)](function(_0x460e7e){const _0xf66827=_0x140ab6;logger[_0xf66827(0x100)](_0xf66827(0x124),_0xa872a8,_0x460e7e);}),delete _0x1b194c[_0x140ab6(0x10e)][_0x4be9f2];});});}else logger[_0x7fe71(0x126)](_0x7fe71(0x12e),_0xa872a8,_0x4be9f2,_0x510b48);});})['catch'](function(){const _0x13b9f6=_0x290351;logger['error'](_0x13b9f6(0x11a),_0xa872a8,_0x1b194c[_0x13b9f6(0xf6)][_0x510b48]['acwTimeout'],_0x4be9f2,_0x510b48);})[_0x290351(0x107)](function(){delete _0x1b194c['channels'][_0xa872a8];});}catch(_0x312213){logger[_0x290351(0x100)](_0x290351(0x106),_0x312213['message']);}},Acw['prototype'][a1217_0x51a6d4(0x105)]=function(_0x6b83bb){const _0x167ac8=a1217_0x51a6d4;try{const _0x108662=this;if(_0x108662[_0x167ac8(0x10e)][_0x6b83bb]){_0x108662['timers'][_0x6b83bb][_0x167ac8(0xf4)]=![];const _0x3e28ea=_0x108662['timers'][_0x6b83bb][_0x167ac8(0x11b)],_0x50b95f=_0x108662['timers'][_0x6b83bb][_0x167ac8(0x145)],_0x48401d=_0x108662[_0x167ac8(0xf6)][_0x50b95f][_0x167ac8(0x113)];logger[_0x167ac8(0x126)](_0x167ac8(0x127),_0x6b83bb),RpcUser['saveUnpause'](this['agents'][_0x6b83bb]),RpcVoiceAgentReport[_0x167ac8(0x10d)]({'acwtime':_0x48401d,'agentacw':!![]},_0x3e28ea,_0x6b83bb)[_0x167ac8(0x112)](function(_0x196a18){const _0x2c715c=_0x167ac8;logger[_0x2c715c(0x126)]('[%s][UPDATE][ACWTIME:%s]',_0x3e28ea,_0x48401d,_0x196a18);})[_0x167ac8(0x104)](function(_0x245d81){const _0x4bce66=_0x167ac8;logger[_0x4bce66(0x100)](_0x4bce66(0x124),_0x3e28ea,_0x245d81);});}else logger[_0x167ac8(0x100)](_0x167ac8(0x138),_0x6b83bb),_0x108662['timers']&&logger[_0x167ac8(0x126)](_0x167ac8(0x141),JSON['stringify'](_0x108662[_0x167ac8(0x10e)]));}catch(_0x3be815){logger[_0x167ac8(0x100)]('[ACW][STOP]\x20%s',_0x3be815[_0x167ac8(0x134)]);}},Acw['prototype'][a1217_0x51a6d4(0x101)]=function(_0x3b8248){const _0x58bea5=a1217_0x51a6d4;try{this['voiceQueues'][_0x3b8248['queue']]&&(this[_0x58bea5(0xf6)][_0x3b8248['queue']]['acw']||this[_0x58bea5(0xf6)][_0x3b8248[_0x58bea5(0x145)]][_0x58bea5(0x108)])&&(this[_0x58bea5(0x125)][_0x3b8248[_0x58bea5(0x117)]]&&(this['channels'][_0x3b8248[_0x58bea5(0x11b)]]={'queue':_0x3b8248['queue'],'interface':_0x3b8248[_0x58bea5(0x117)],'destlinkedid':_0x3b8248[_0x58bea5(0x122)]}));}catch(_0xd9dc40){logger[_0x58bea5(0x100)](_0x58bea5(0x128),_0xd9dc40[_0x58bea5(0x134)]);}},Acw[a1217_0x51a6d4(0x142)][a1217_0x51a6d4(0x11c)]=function(_0x1eed50){const _0x25a94e=a1217_0x51a6d4;try{this[_0x25a94e(0xf6)][_0x1eed50[_0x25a94e(0x145)]]&&(this[_0x25a94e(0xf6)][_0x1eed50[_0x25a94e(0x145)]]['acw']||this['voiceQueues'][_0x1eed50[_0x25a94e(0x145)]][_0x25a94e(0x108)])&&(this['agents'][_0x1eed50['interface']]&&(this[_0x25a94e(0x137)][_0x1eed50[_0x25a94e(0x11b)]]={'queue':_0x1eed50[_0x25a94e(0x145)],'interface':_0x1eed50[_0x25a94e(0x117)]}));}catch(_0x3ccd4a){logger['error']('[ACW][syncAgentConnectPreview]\x20%s',_0x3ccd4a[_0x25a94e(0x134)]);}},Acw[a1217_0x51a6d4(0x142)][a1217_0x51a6d4(0x13f)]=function(_0xc623d9){const _0x12e7e6=a1217_0x51a6d4;try{if(this[_0x12e7e6(0x137)][_0xc623d9[_0x12e7e6(0x11b)]]&&_['isUndefined'](this[_0x12e7e6(0x137)][_0xc623d9['uniqueid']][_0x12e7e6(0x10f)]))logger[_0x12e7e6(0x126)](_0x12e7e6(0x103),_0xc623d9['uniqueid']),this[_0x12e7e6(0x140)](_0xc623d9[_0x12e7e6(0x11b)]);else this['channels'][_0xc623d9[_0x12e7e6(0x119)]]&&_['isUndefined'](this[_0x12e7e6(0x137)][_0xc623d9[_0x12e7e6(0x119)]][_0x12e7e6(0x10f)])&&(logger[_0x12e7e6(0x126)]('[%s][HANGUP:LINKEDID]',_0xc623d9['linkedid']),this['startAcw'](_0xc623d9[_0x12e7e6(0x119)]));}catch(_0x1ced34){logger[_0x12e7e6(0x100)](_0x12e7e6(0x123),_0x1ced34[_0x12e7e6(0x134)]);}},Acw['prototype']['syncHangup']=function(_0x201fbc){const _0x15a03b=a1217_0x51a6d4;try{if(this[_0x15a03b(0x137)][_0x201fbc[_0x15a03b(0x11b)]]&&this['channels'][_0x201fbc[_0x15a03b(0x11b)]][_0x15a03b(0x10f)])logger[_0x15a03b(0x126)](_0x15a03b(0x143),_0x201fbc[_0x15a03b(0x11b)]),this[_0x15a03b(0x140)](_0x201fbc[_0x15a03b(0x11b)]);else this[_0x15a03b(0x137)][_0x201fbc['linkedid']]&&this[_0x15a03b(0x137)][_0x201fbc[_0x15a03b(0x119)]][_0x15a03b(0x10f)]&&(logger[_0x15a03b(0x126)](_0x15a03b(0x116),_0x201fbc[_0x15a03b(0x119)]),this['startAcw'](_0x201fbc['linkedid']));}catch(_0x81865a){logger[_0x15a03b(0x100)](_0x15a03b(0xf7),_0x81865a[_0x15a03b(0x134)]);}},Acw[a1217_0x51a6d4(0x142)][a1217_0x51a6d4(0x111)]=function(_0x335eaa){const _0x47f477=a1217_0x51a6d4;try{if(!_[_0x47f477(0x132)](this[_0x47f477(0x137)][_0x335eaa['transfereeuniqueid']]))this[_0x47f477(0x140)](_0x335eaa[_0x47f477(0xfa)]),this['channels'][_0x335eaa['secondtransfereruniqueid']]&&(this[_0x47f477(0x137)][_0x335eaa['secondtransfereruniqueid']][_0x47f477(0x10f)]=!![],this['channels'][_0x335eaa[_0x47f477(0x109)]]=this[_0x47f477(0x137)][_0x335eaa['secondtransfereruniqueid']],delete this['channels'][_0x335eaa[_0x47f477(0x12d)]]);else!_[_0x47f477(0x132)](this['channels'][_0x335eaa['transfertargetuniqueid']])&&(this['startAcw'](_0x335eaa[_0x47f477(0x109)]),this[_0x47f477(0x137)][_0x335eaa[_0x47f477(0xf8)]]&&(this[_0x47f477(0x137)][_0x335eaa[_0x47f477(0xf8)]][_0x47f477(0x10f)]=!![],this[_0x47f477(0x137)][_0x335eaa[_0x47f477(0xfa)]]=this[_0x47f477(0x137)][_0x335eaa[_0x47f477(0xf8)]],delete this[_0x47f477(0x137)][_0x335eaa[_0x47f477(0xf8)]]));}catch(_0x476abb){logger[_0x47f477(0x100)]('[ACW][syncAttendedTransfer]\x20%s',_0x476abb[_0x47f477(0x134)]);}},Acw[a1217_0x51a6d4(0x142)][a1217_0x51a6d4(0x133)]=function(_0x2c4c7b){const _0x2d51df=a1217_0x51a6d4;try{if(this[_0x2d51df(0x137)][_0x2c4c7b[_0x2d51df(0x12f)]])logger[_0x2d51df(0x126)](_0x2d51df(0x12b),JSON[_0x2d51df(0x114)](_0x2c4c7b[_0x2d51df(0x12f)])),this[_0x2d51df(0x140)](_0x2c4c7b['transfereruniqueid']);else this[_0x2d51df(0x137)][_0x2c4c7b[_0x2d51df(0x121)]]&&(logger['info'](_0x2d51df(0x120),JSON[_0x2d51df(0x114)](_0x2c4c7b[_0x2d51df(0x121)])),this[_0x2d51df(0x140)](_0x2c4c7b[_0x2d51df(0x121)]));}catch(_0x27d76a){logger['error'](_0x2d51df(0xff),_0x27d76a['message']);}},Acw[a1217_0x51a6d4(0x142)][a1217_0x51a6d4(0x110)]=function(_0x5ebbe9){const _0x2e7f95=a1217_0x51a6d4;try{if(this[_0x2e7f95(0xf6)][_0x5ebbe9[_0x2e7f95(0x145)]]&&this[_0x2e7f95(0xf6)][_0x5ebbe9['queue']][_0x2e7f95(0x10b)]===_0x2e7f95(0x136)){if(this[_0x2e7f95(0x125)][_0x5ebbe9[_0x2e7f95(0x117)]])return logger[_0x2e7f95(0x126)](_0x2e7f95(0x115),_0x5ebbe9[_0x2e7f95(0x11b)],_0x5ebbe9[_0x2e7f95(0x117)],_0x5ebbe9['queue']),RpcUser[_0x2e7f95(0x10a)](this[_0x2e7f95(0x125)][_0x5ebbe9['interface']],_0x2e7f95(0x11d),_0x5ebbe9['uniqueid']);}}catch(_0x1ac66e){logger[_0x2e7f95(0x100)](_0x2e7f95(0x13d),_0x1ac66e['message']);}},module['exports']=Acw; \ No newline at end of file +const a1217_0x31d7=['voiceQueues','[%s][HANGUPATTENDEDTRANSFER:UNIQUEID]','timer','seconds','transfertargetuniqueid','[%s][AUTOPAUSE][AGENT:%s][QUEUE:%]','origtransfereruniqueid','[%s][HANGUP:LINKEDID]','blindtransfer','[ACW][TIMERS]','hangup','transfererlinkedid','info','syncAttendedTransfer','syncHangupRequest','catch','syncAgentRingNoAnswer','[%s][UPDATE][ERRORS:%s]','[ACW][syncAgentConnectPreview]\x20%s','update','updateAcw','Auto-Pause','[%s][UPDATE][ACWTIME:%s]','format','secondtransfereruniqueid','isNil','destlinkedid','ACW','[%s][BLINDTRANSFER:LINKEDID]','moment','mandatoryDisposition','../../../config/logger','saveUnpause','custom:agentConnectPreview','attendedtransfer','syncBlindTransfer','transfereruniqueid','[TIMER][STOP][AGENT:%s]','acw','channels','syncHangup','startAcw','then','uniqueid','autopause','bind','[ACW][syncBlindTransfer]\x20%s','transfereeuniqueid','queue','lodash','attended','Action','agentringnoanswer','all','finally','diff','[%s][HANGUPATTENDEDTRANSFER:LINKEDID]','../ami','[ACW][syncAgentConnect]\x20%s','[ACW][syncAttendedTransfer]\x20%s','exports','error','interface','[ACW][STOP]\x20Interface\x20%s\x20doesn\x27t\x20have\x20timer','message','timers','[%s][HANGUP:UNIQUEID]','[%s][TIMER:%s][AGENT:%s][QUEUE:%s]','voicePause','stringify','[ACW][START]\x20%s','savePause','name','QueuePause','isUndefined','acwTimeout','agents','syncAgentConnectPreview','syncAgentConnect','hanguprequest','linkedid','prototype','mandatoryDispositionPause','milliseconds','../rpc/voiceAgentReport'];(function(_0x415e22,_0x1a5b6c){const _0x31d795=function(_0x2d4a47){while(--_0x2d4a47){_0x415e22['push'](_0x415e22['shift']());}};_0x31d795(++_0x1a5b6c);}(a1217_0x31d7,0x99));const a1217_0x2d4a=function(_0x415e22,_0x1a5b6c){_0x415e22=_0x415e22-0x136;let _0x31d795=a1217_0x31d7[_0x415e22];return _0x31d795;};const a1217_0x2171b5=a1217_0x2d4a;'use strict';const _=require(a1217_0x2171b5(0x178)),moment=require(a1217_0x2171b5(0x164)),ami=require(a1217_0x2171b5(0x180)),logger=require(a1217_0x2171b5(0x166))(a1217_0x2171b5(0x16d)),RpcUser=require('../rpc/user'),RpcVoiceAgentReport=require(a1217_0x2171b5(0x146));function Acw(_0x4b4ecf){const _0xd5cb9a=a1217_0x2171b5;this['voiceQueues']=_0x4b4ecf[_0xd5cb9a(0x147)],this['agents']=_0x4b4ecf[_0xd5cb9a(0x13e)],this[_0xd5cb9a(0x188)]=_0x4b4ecf[_0xd5cb9a(0x188)],this[_0xd5cb9a(0x16e)]={},ami['on']('agentconnect',this[_0xd5cb9a(0x140)][_0xd5cb9a(0x174)](this)),ami['on'](_0xd5cb9a(0x141),this[_0xd5cb9a(0x155)]['bind'](this)),ami['on'](_0xd5cb9a(0x151),this[_0xd5cb9a(0x16f)][_0xd5cb9a(0x174)](this)),ami['on'](_0xd5cb9a(0x17b),this[_0xd5cb9a(0x157)][_0xd5cb9a(0x174)](this)),ami['on'](_0xd5cb9a(0x169),this[_0xd5cb9a(0x154)][_0xd5cb9a(0x174)](this)),ami['on'](_0xd5cb9a(0x14f),this[_0xd5cb9a(0x16a)][_0xd5cb9a(0x174)](this)),ami['on'](_0xd5cb9a(0x168),this[_0xd5cb9a(0x13f)][_0xd5cb9a(0x174)](this));}function getDiff(_0x25aea1){const _0x324d3d=a1217_0x2171b5,_0x5e1a60=moment()[_0x324d3d(0x145)](0x0),_0x2fdfb2=moment(_0x25aea1)['milliseconds'](0x0);return _0x5e1a60[_0x324d3d(0x17e)](_0x2fdfb2,_0x324d3d(0x14a));}Acw[a1217_0x2171b5(0x143)]['startAcw']=function(_0x5727dd){const _0x4a5d27=a1217_0x2171b5;try{const _0x31871d=this,_0x1be97c=this['channels'][_0x5727dd][_0x4a5d27(0x185)],_0x58e944=this[_0x4a5d27(0x16e)][_0x5727dd][_0x4a5d27(0x177)],_0x1173d2=this['voiceQueues'][_0x58e944];let _0x136a45=![],_0x5acd1e=_0x4a5d27(0x162);_0x1173d2[_0x4a5d27(0x165)]&&(_0x1173d2[_0x4a5d27(0x144)][_0x4a5d27(0x13a)]&&(_0x136a45=!![],_0x5acd1e=_0x1173d2[_0x4a5d27(0x144)][_0x4a5d27(0x13a)])),ami[_0x4a5d27(0x17a)]({'action':_0x4a5d27(0x13b),'interface':_0x1be97c,'paused':!![],'reason':_0x5acd1e})['then'](function(){const _0x4a589a=_0x4a5d27;if(_0x31871d['agents'][_0x1be97c])return RpcUser['getAgent'](_0x31871d[_0x4a589a(0x13e)][_0x1be97c]['id'])['then'](function(_0x16ae0c){const _0xece519=_0x4a589a;if(_0x16ae0c&&!_0x16ae0c[_0xece519(0x136)]){logger['info']('[%s][START][AGENT:%s][QUEUE:%s]',_0x5727dd,_0x1be97c,_0x58e944);const _0x7e040c=_0x31871d['channels'][_0x5727dd][_0xece519(0x179)]&&_0x31871d[_0xece519(0x16e)][_0x5727dd][_0xece519(0x161)]?_0x31871d[_0xece519(0x16e)][_0x5727dd]['destlinkedid']:_0x5727dd;return RpcUser[_0xece519(0x139)](_0x31871d['agents'][_0x1be97c],_0x5acd1e,_0x7e040c)[_0xece519(0x171)](function(){const _0x2fe4dd=_0xece519;!_0x136a45&&(_0x31871d[_0x2fe4dd(0x188)][_0x1be97c]={},logger[_0x2fe4dd(0x153)](_0x2fe4dd(0x18a),_0x5727dd,_0x31871d[_0x2fe4dd(0x147)][_0x58e944][_0x2fe4dd(0x13d)],_0x1be97c,_0x58e944),_0x31871d[_0x2fe4dd(0x188)][_0x1be97c][_0x2fe4dd(0x149)]=setTimeout(_0x31871d['stopAcw']['bind'](_0x31871d,_0x1be97c),_0x31871d[_0x2fe4dd(0x147)][_0x58e944]['acwTimeout']*0x3e8),_0x31871d[_0x2fe4dd(0x188)][_0x1be97c]['lastPauseAt']=moment()[_0x2fe4dd(0x15e)]('YYYY-MM-DD\x20HH:mm:ss'),_0x31871d[_0x2fe4dd(0x188)][_0x1be97c][_0x2fe4dd(0x172)]=_0x5727dd,_0x31871d['timers'][_0x1be97c][_0x2fe4dd(0x177)]=_0x58e944,_0x31871d[_0x2fe4dd(0x188)][_0x1be97c][_0x2fe4dd(0x15b)]=function(){const _0x493a87=_0x2fe4dd,_0x24d801=getDiff(_0x31871d[_0x493a87(0x188)][_0x1be97c]['lastPauseAt']);clearTimeout(_0x31871d[_0x493a87(0x188)][_0x1be97c][_0x493a87(0x149)]),_0x31871d['timers'][_0x1be97c]['timer']=![],RpcVoiceAgentReport['update']({'acwtime':_0x24d801},_0x31871d[_0x493a87(0x188)][_0x1be97c][_0x493a87(0x172)],_0x1be97c)[_0x493a87(0x171)](function(_0x15c97e){const _0x330a4b=_0x493a87;logger[_0x330a4b(0x153)](_0x330a4b(0x15d),_0x5727dd,_0x24d801,_0x15c97e);})['catch'](function(_0x54b2d9){const _0x345bbc=_0x493a87;logger[_0x345bbc(0x184)](_0x345bbc(0x158),_0x5727dd,_0x54b2d9);}),delete _0x31871d[_0x493a87(0x188)][_0x1be97c];});});}else logger[_0xece519(0x153)]('[%s][INPAUSE][AGENT:%s][QUEUE:%s]',_0x5727dd,_0x1be97c,_0x58e944);});})[_0x4a5d27(0x156)](function(){const _0x3ea1df=_0x4a5d27;logger['error'](_0x3ea1df(0x18a),_0x5727dd,_0x31871d['voiceQueues'][_0x58e944][_0x3ea1df(0x13d)],_0x1be97c,_0x58e944);})[_0x4a5d27(0x17d)](function(){const _0x5577dc=_0x4a5d27;delete _0x31871d[_0x5577dc(0x16e)][_0x5727dd];});}catch(_0x20a197){logger['error'](_0x4a5d27(0x138),_0x20a197[_0x4a5d27(0x187)]);}},Acw[a1217_0x2171b5(0x143)]['stopAcw']=function(_0x20a7f){const _0x5f3a12=a1217_0x2171b5;try{const _0x476c93=this;if(_0x476c93[_0x5f3a12(0x188)][_0x20a7f]){_0x476c93['timers'][_0x20a7f]['timer']=![];const _0x489cfd=_0x476c93[_0x5f3a12(0x188)][_0x20a7f]['uniqueid'],_0x394a2c=_0x476c93['timers'][_0x20a7f]['queue'],_0xf2bb82=_0x476c93[_0x5f3a12(0x147)][_0x394a2c][_0x5f3a12(0x13d)];logger[_0x5f3a12(0x153)](_0x5f3a12(0x16c),_0x20a7f),RpcUser[_0x5f3a12(0x167)](this[_0x5f3a12(0x13e)][_0x20a7f]),RpcVoiceAgentReport[_0x5f3a12(0x15a)]({'acwtime':_0xf2bb82,'agentacw':!![]},_0x489cfd,_0x20a7f)['then'](function(_0x4f94db){const _0x1b8f67=_0x5f3a12;logger['info'](_0x1b8f67(0x15d),_0x489cfd,_0xf2bb82,_0x4f94db);})[_0x5f3a12(0x156)](function(_0x3030f5){const _0x154d4a=_0x5f3a12;logger[_0x154d4a(0x184)](_0x154d4a(0x158),_0x489cfd,_0x3030f5);});}else logger[_0x5f3a12(0x184)](_0x5f3a12(0x186),_0x20a7f),_0x476c93[_0x5f3a12(0x188)]&&logger[_0x5f3a12(0x153)](_0x5f3a12(0x150),JSON[_0x5f3a12(0x137)](_0x476c93['timers']));}catch(_0x46ad9b){logger['error']('[ACW][STOP]\x20%s',_0x46ad9b['message']);}},Acw[a1217_0x2171b5(0x143)][a1217_0x2171b5(0x140)]=function(_0x56c2a6){const _0x70229f=a1217_0x2171b5;try{this[_0x70229f(0x147)][_0x56c2a6['queue']]&&(this[_0x70229f(0x147)][_0x56c2a6[_0x70229f(0x177)]]['acw']||this[_0x70229f(0x147)][_0x56c2a6[_0x70229f(0x177)]]['mandatoryDisposition'])&&(this[_0x70229f(0x13e)][_0x56c2a6['interface']]&&(this[_0x70229f(0x16e)][_0x56c2a6[_0x70229f(0x172)]]={'queue':_0x56c2a6[_0x70229f(0x177)],'interface':_0x56c2a6['interface'],'destlinkedid':_0x56c2a6[_0x70229f(0x161)]}));}catch(_0x240061){logger['error'](_0x70229f(0x181),_0x240061['message']);}},Acw[a1217_0x2171b5(0x143)][a1217_0x2171b5(0x13f)]=function(_0x130601){const _0x502a6d=a1217_0x2171b5;try{this[_0x502a6d(0x147)][_0x130601[_0x502a6d(0x177)]]&&(this[_0x502a6d(0x147)][_0x130601['queue']][_0x502a6d(0x16d)]||this[_0x502a6d(0x147)][_0x130601[_0x502a6d(0x177)]][_0x502a6d(0x165)])&&(this[_0x502a6d(0x13e)][_0x130601[_0x502a6d(0x185)]]&&(this['channels'][_0x130601[_0x502a6d(0x172)]]={'queue':_0x130601['queue'],'interface':_0x130601[_0x502a6d(0x185)]}));}catch(_0x52687a){logger['error'](_0x502a6d(0x159),_0x52687a[_0x502a6d(0x187)]);}},Acw[a1217_0x2171b5(0x143)][a1217_0x2171b5(0x155)]=function(_0x41adbb){const _0xe802c7=a1217_0x2171b5;try{if(this[_0xe802c7(0x16e)][_0x41adbb[_0xe802c7(0x172)]]&&_['isUndefined'](this['channels'][_0x41adbb[_0xe802c7(0x172)]][_0xe802c7(0x179)]))logger[_0xe802c7(0x153)](_0xe802c7(0x189),_0x41adbb[_0xe802c7(0x172)]),this[_0xe802c7(0x170)](_0x41adbb[_0xe802c7(0x172)]);else this[_0xe802c7(0x16e)][_0x41adbb['linkedid']]&&_[_0xe802c7(0x13c)](this[_0xe802c7(0x16e)][_0x41adbb['linkedid']][_0xe802c7(0x179)])&&(logger['info'](_0xe802c7(0x14e),_0x41adbb[_0xe802c7(0x142)]),this[_0xe802c7(0x170)](_0x41adbb['linkedid']));}catch(_0x4402be){logger[_0xe802c7(0x184)]('[ACW][syncHangupRequest]\x20%s',_0x4402be[_0xe802c7(0x187)]);}},Acw[a1217_0x2171b5(0x143)][a1217_0x2171b5(0x16f)]=function(_0x2418a1){const _0x335b58=a1217_0x2171b5;try{if(this['channels'][_0x2418a1[_0x335b58(0x172)]]&&this[_0x335b58(0x16e)][_0x2418a1[_0x335b58(0x172)]][_0x335b58(0x179)])logger[_0x335b58(0x153)](_0x335b58(0x148),_0x2418a1[_0x335b58(0x172)]),this[_0x335b58(0x170)](_0x2418a1[_0x335b58(0x172)]);else this[_0x335b58(0x16e)][_0x2418a1['linkedid']]&&this['channels'][_0x2418a1[_0x335b58(0x142)]]['attended']&&(logger[_0x335b58(0x153)](_0x335b58(0x17f),_0x2418a1[_0x335b58(0x142)]),this[_0x335b58(0x170)](_0x2418a1[_0x335b58(0x142)]));}catch(_0x460199){logger[_0x335b58(0x184)]('[ACW][syncHangup]\x20%s',_0x460199[_0x335b58(0x187)]);}},Acw[a1217_0x2171b5(0x143)][a1217_0x2171b5(0x154)]=function(_0x15dcb4){const _0x16cdb0=a1217_0x2171b5;try{if(!_[_0x16cdb0(0x160)](this[_0x16cdb0(0x16e)][_0x15dcb4[_0x16cdb0(0x176)]]))this['startAcw'](_0x15dcb4[_0x16cdb0(0x176)]),this[_0x16cdb0(0x16e)][_0x15dcb4['secondtransfereruniqueid']]&&(this[_0x16cdb0(0x16e)][_0x15dcb4[_0x16cdb0(0x15f)]][_0x16cdb0(0x179)]=!![],this['channels'][_0x15dcb4[_0x16cdb0(0x14b)]]=this[_0x16cdb0(0x16e)][_0x15dcb4[_0x16cdb0(0x15f)]],delete this[_0x16cdb0(0x16e)][_0x15dcb4[_0x16cdb0(0x15f)]]);else!_[_0x16cdb0(0x160)](this[_0x16cdb0(0x16e)][_0x15dcb4[_0x16cdb0(0x14b)]])&&(this[_0x16cdb0(0x170)](_0x15dcb4['transfertargetuniqueid']),this[_0x16cdb0(0x16e)][_0x15dcb4[_0x16cdb0(0x14d)]]&&(this[_0x16cdb0(0x16e)][_0x15dcb4[_0x16cdb0(0x14d)]][_0x16cdb0(0x179)]=!![],this[_0x16cdb0(0x16e)][_0x15dcb4['transfereeuniqueid']]=this[_0x16cdb0(0x16e)][_0x15dcb4[_0x16cdb0(0x14d)]],delete this[_0x16cdb0(0x16e)][_0x15dcb4['origtransfereruniqueid']]));}catch(_0x1972b8){logger[_0x16cdb0(0x184)](_0x16cdb0(0x182),_0x1972b8[_0x16cdb0(0x187)]);}},Acw[a1217_0x2171b5(0x143)][a1217_0x2171b5(0x16a)]=function(_0x5a374d){const _0x9bed0a=a1217_0x2171b5;try{if(this[_0x9bed0a(0x16e)][_0x5a374d[_0x9bed0a(0x16b)]])logger[_0x9bed0a(0x153)]('[%s][BLINDTRANSFER:UNIQUEID]',JSON['stringify'](_0x5a374d['transfereruniqueid'])),this[_0x9bed0a(0x170)](_0x5a374d[_0x9bed0a(0x16b)]);else this[_0x9bed0a(0x16e)][_0x5a374d['transfererlinkedid']]&&(logger[_0x9bed0a(0x153)](_0x9bed0a(0x163),JSON[_0x9bed0a(0x137)](_0x5a374d['transfererlinkedid'])),this['startAcw'](_0x5a374d[_0x9bed0a(0x152)]));}catch(_0x371c4f){logger[_0x9bed0a(0x184)](_0x9bed0a(0x175),_0x371c4f[_0x9bed0a(0x187)]);}},Acw[a1217_0x2171b5(0x143)]['syncAgentRingNoAnswer']=function(_0x543adc){const _0x36fc7c=a1217_0x2171b5;try{if(this['voiceQueues'][_0x543adc[_0x36fc7c(0x177)]]&&this[_0x36fc7c(0x147)][_0x543adc[_0x36fc7c(0x177)]][_0x36fc7c(0x173)]===_0x36fc7c(0x17c)){if(this[_0x36fc7c(0x13e)][_0x543adc['interface']])return logger[_0x36fc7c(0x153)](_0x36fc7c(0x14c),_0x543adc[_0x36fc7c(0x172)],_0x543adc['interface'],_0x543adc[_0x36fc7c(0x177)]),RpcUser[_0x36fc7c(0x139)](this[_0x36fc7c(0x13e)][_0x543adc[_0x36fc7c(0x185)]],_0x36fc7c(0x15c),_0x543adc[_0x36fc7c(0x172)]);}}catch(_0x32ce18){logger[_0x36fc7c(0x184)]('[ACW][syncAgentRingNoAnswer]\x20%s',_0x32ce18['message']);}},module[a1217_0x2171b5(0x183)]=Acw; \ No newline at end of file diff --git a/server/services/ami/ami.js b/server/services/ami/ami.js index 4165e6f..2713c9d 100644 --- a/server/services/ami/ami.js +++ b/server/services/ami/ami.js @@ -1 +1 @@ -const a1218_0x472d=['once','Action','actionDeviceStateList','Manager\x20\x22%s\x22\x20logged\x20on\x20to\x20%s:%s','Manager\x20\x22%s\x22\x20error\x20to\x20%s:%s\x20with:\x0a%s','error','../../config/logger','asterisk','promisify','sipshowregistry','actionQueueSummary','fullybooted','exports','../../config/environment','catch','actionSipShowRegistry','devicestatelist','actionSipPeerStatus','connect','inspect','then','Fullybooted\x20\x22%s\x22\x20to\x20%s:%s','log','close','action','util','info','ami','username','port','actionCoreShowChannels','format'];(function(_0x21a83d,_0x683bb){const _0x472d8f=function(_0x15ad6b){while(--_0x15ad6b){_0x21a83d['push'](_0x21a83d['shift']());}};_0x472d8f(++_0x683bb);}(a1218_0x472d,0x94));const a1218_0x15ad=function(_0x21a83d,_0x683bb){_0x21a83d=_0x21a83d-0x19d;let _0x472d8f=a1218_0x472d[_0x21a83d];return _0x472d8f;};const a1218_0x5d63df=a1218_0x15ad;'use strict';const Manager=require('asterisk-manager'),util=require(a1218_0x5d63df(0x1a2)),logger=require(a1218_0x5d63df(0x1af))(a1218_0x5d63df(0x1a4)),config=require(a1218_0x5d63df(0x1b6)),ami=new Manager(config[a1218_0x5d63df(0x1b0)][a1218_0x5d63df(0x1a6)],config[a1218_0x5d63df(0x1b0)]['ip'],config[a1218_0x5d63df(0x1b0)][a1218_0x5d63df(0x1a5)],config[a1218_0x5d63df(0x1b0)]['password'],!![]);ami['keepConnected'](),ami[a1218_0x5d63df(0x1aa)]=util[a1218_0x5d63df(0x1b1)](ami[a1218_0x5d63df(0x1a1)]);function error(_0x27fbac){const _0x33edc6=a1218_0x5d63df;logger[_0x33edc6(0x1ae)](util[_0x33edc6(0x1a8)](_0x33edc6(0x1ad),config[_0x33edc6(0x1b0)]['username'],config[_0x33edc6(0x1b0)]['ip'],config[_0x33edc6(0x1b0)][_0x33edc6(0x1a6)],util[_0x33edc6(0x1bc)](_0x27fbac,![],null)));}function close(){const _0x599baa=a1218_0x5d63df;logger[_0x599baa(0x1ae)](util[_0x599baa(0x1a8)]('Manager\x20\x22%s\x22\x20closed\x20to\x20%s:%s',config['asterisk'][_0x599baa(0x1a5)],config[_0x599baa(0x1b0)]['ip'],config[_0x599baa(0x1b0)][_0x599baa(0x1a6)]));}ami[a1218_0x5d63df(0x1b8)]=function(){return function(){const _0x135abf=a1218_0x15ad;return ami[_0x135abf(0x1aa)]({'action':_0x135abf(0x1b2)});};},ami['actionDeviceStateList']=function(){return function(){const _0x4ef26b=a1218_0x15ad;return ami[_0x4ef26b(0x1aa)]({'action':_0x4ef26b(0x1b9)});};},ami[a1218_0x5d63df(0x1ba)]=function(){return function(){const _0x1179f2=a1218_0x15ad;return ami[_0x1179f2(0x1aa)]({'action':'sippeerstatus'});};},ami[a1218_0x5d63df(0x1b3)]=function(){return function(){return ami['Action']({'action':'queuesummary'});};},ami[a1218_0x5d63df(0x1a7)]=function(){return function(){const _0x281caa=a1218_0x15ad;return ami[_0x281caa(0x1aa)]({'action':'coreshowchannels'});};};function connect(){const _0x10a10e=a1218_0x5d63df;logger[_0x10a10e(0x1a3)](util[_0x10a10e(0x1a8)](_0x10a10e(0x1ac),config[_0x10a10e(0x1b0)]['username'],config[_0x10a10e(0x1b0)]['ip'],config[_0x10a10e(0x1b0)][_0x10a10e(0x1a6)])),ami[_0x10a10e(0x1a9)](_0x10a10e(0x1ae),error),ami[_0x10a10e(0x1a9)](_0x10a10e(0x1a0),close);}ami['on'](a1218_0x5d63df(0x1bb),connect),ami['on']('shutdown',function(_0x1b8ffd){const _0x4d7410=a1218_0x5d63df;logger[_0x4d7410(0x1a3)](util[_0x4d7410(0x1a8)]('Shutdown\x20\x22%s\x22\x20to\x20%s:%s\x20with:\x0a%s',config['asterisk']['username'],config[_0x4d7410(0x1b0)]['ip'],config[_0x4d7410(0x1b0)][_0x4d7410(0x1a6)],util[_0x4d7410(0x1bc)](_0x1b8ffd,![],null)));}),ami['on'](a1218_0x5d63df(0x1b4),function(){const _0x1fca49=a1218_0x5d63df;return logger[_0x1fca49(0x1a3)](util[_0x1fca49(0x1a8)](_0x1fca49(0x19e),config[_0x1fca49(0x1b0)]['username'],config[_0x1fca49(0x1b0)]['ip'],config[_0x1fca49(0x1b0)]['port'])),Promise['resolve']()[_0x1fca49(0x19d)](ami[_0x1fca49(0x1b8)]())[_0x1fca49(0x19d)](ami[_0x1fca49(0x1ab)]())[_0x1fca49(0x19d)](ami[_0x1fca49(0x1ba)]())[_0x1fca49(0x19d)](ami[_0x1fca49(0x1b3)]())[_0x1fca49(0x19d)](ami['actionCoreShowChannels']())[_0x1fca49(0x1b7)](function(_0x19c581){const _0x534b44=_0x1fca49;console[_0x534b44(0x19f)](_0x19c581);});}),ami[a1218_0x5d63df(0x1a9)](a1218_0x5d63df(0x1ae),error),ami[a1218_0x5d63df(0x1a9)](a1218_0x5d63df(0x1a0),close),module[a1218_0x5d63df(0x1b5)]=ami; \ No newline at end of file +const a1218_0x1e29=['log','actionSipShowRegistry','once','queuesummary','actionQueueSummary','exports','close','Fullybooted\x20\x22%s\x22\x20to\x20%s:%s','coreshowchannels','shutdown','then','promisify','Manager\x20\x22%s\x22\x20closed\x20to\x20%s:%s','Action','Shutdown\x20\x22%s\x22\x20to\x20%s:%s\x20with:\x0a%s','sipshowregistry','actionDeviceStateList','port','devicestatelist','actionSipPeerStatus','format','Manager\x20\x22%s\x22\x20logged\x20on\x20to\x20%s:%s','error','actionCoreShowChannels','username','util','asterisk','password','action','fullybooted','info'];(function(_0x41ae3f,_0xcf6bff){const _0x1e293e=function(_0x564b50){while(--_0x564b50){_0x41ae3f['push'](_0x41ae3f['shift']());}};_0x1e293e(++_0xcf6bff);}(a1218_0x1e29,0x1ad));const a1218_0x564b=function(_0x41ae3f,_0xcf6bff){_0x41ae3f=_0x41ae3f-0x173;let _0x1e293e=a1218_0x1e29[_0x41ae3f];return _0x1e293e;};const a1218_0x26ac73=a1218_0x564b;'use strict';const Manager=require('asterisk-manager'),util=require(a1218_0x26ac73(0x191)),logger=require('../../config/logger')('ami'),config=require('../../config/environment'),ami=new Manager(config[a1218_0x26ac73(0x173)]['port'],config[a1218_0x26ac73(0x173)]['ip'],config[a1218_0x26ac73(0x173)][a1218_0x26ac73(0x190)],config[a1218_0x26ac73(0x173)][a1218_0x26ac73(0x174)],!![]);ami['keepConnected'](),ami['Action']=util[a1218_0x26ac73(0x183)](ami[a1218_0x26ac73(0x175)]);function error(_0x3e573e){const _0x1e03fd=a1218_0x26ac73;logger[_0x1e03fd(0x18e)](util[_0x1e03fd(0x18c)]('Manager\x20\x22%s\x22\x20error\x20to\x20%s:%s\x20with:\x0a%s',config[_0x1e03fd(0x173)][_0x1e03fd(0x190)],config[_0x1e03fd(0x173)]['ip'],config[_0x1e03fd(0x173)]['port'],util['inspect'](_0x3e573e,![],null)));}function close(){const _0x4983fc=a1218_0x26ac73;logger['error'](util[_0x4983fc(0x18c)](_0x4983fc(0x184),config[_0x4983fc(0x173)][_0x4983fc(0x190)],config['asterisk']['ip'],config[_0x4983fc(0x173)][_0x4983fc(0x189)]));}ami[a1218_0x26ac73(0x179)]=function(){return function(){const _0x3ee7bc=a1218_0x564b;return ami[_0x3ee7bc(0x185)]({'action':_0x3ee7bc(0x187)});};},ami[a1218_0x26ac73(0x188)]=function(){return function(){const _0x3a709b=a1218_0x564b;return ami[_0x3a709b(0x185)]({'action':_0x3a709b(0x18a)});};},ami[a1218_0x26ac73(0x18b)]=function(){return function(){const _0x218dc8=a1218_0x564b;return ami[_0x218dc8(0x185)]({'action':'sippeerstatus'});};},ami[a1218_0x26ac73(0x17c)]=function(){return function(){const _0x1a0948=a1218_0x564b;return ami[_0x1a0948(0x185)]({'action':_0x1a0948(0x17b)});};},ami[a1218_0x26ac73(0x18f)]=function(){return function(){const _0x257849=a1218_0x564b;return ami[_0x257849(0x185)]({'action':_0x257849(0x180)});};};function connect(){const _0x529ec7=a1218_0x26ac73;logger[_0x529ec7(0x177)](util['format'](_0x529ec7(0x18d),config['asterisk'][_0x529ec7(0x190)],config['asterisk']['ip'],config[_0x529ec7(0x173)][_0x529ec7(0x189)])),ami[_0x529ec7(0x17a)](_0x529ec7(0x18e),error),ami[_0x529ec7(0x17a)](_0x529ec7(0x17e),close);}ami['on']('connect',connect),ami['on'](a1218_0x26ac73(0x181),function(_0x48acd3){const _0x544173=a1218_0x26ac73;logger[_0x544173(0x177)](util[_0x544173(0x18c)](_0x544173(0x186),config[_0x544173(0x173)]['username'],config[_0x544173(0x173)]['ip'],config[_0x544173(0x173)][_0x544173(0x189)],util['inspect'](_0x48acd3,![],null)));}),ami['on'](a1218_0x26ac73(0x176),function(){const _0x2bb52e=a1218_0x26ac73;return logger[_0x2bb52e(0x177)](util[_0x2bb52e(0x18c)](_0x2bb52e(0x17f),config[_0x2bb52e(0x173)][_0x2bb52e(0x190)],config[_0x2bb52e(0x173)]['ip'],config['asterisk'][_0x2bb52e(0x189)])),Promise['resolve']()[_0x2bb52e(0x182)](ami['actionSipShowRegistry']())['then'](ami[_0x2bb52e(0x188)]())['then'](ami[_0x2bb52e(0x18b)]())['then'](ami['actionQueueSummary']())[_0x2bb52e(0x182)](ami[_0x2bb52e(0x18f)]())['catch'](function(_0x25ba02){const _0x155469=_0x2bb52e;console[_0x155469(0x178)](_0x25ba02);});}),ami['once'](a1218_0x26ac73(0x18e),error),ami['once']('close',close),module[a1218_0x26ac73(0x17d)]=ami; \ No newline at end of file diff --git a/server/services/ami/client.js b/server/services/ami/client.js index 1ac3e68..3a5f246 100644 --- a/server/services/ami/client.js +++ b/server/services/ami/client.js @@ -1 +1 @@ -const a1219_0x5d04=['../../config/logger','memberReport','debug','then','request','result','message','error','client','http','Request','exports','jayson/promise','rpc'];(function(_0x3b270d,_0x23a0db){const _0x5d04bd=function(_0x4c9dbd){while(--_0x4c9dbd){_0x3b270d['push'](_0x3b270d['shift']());}};_0x5d04bd(++_0x23a0db);}(a1219_0x5d04,0x192));const a1219_0x4c9d=function(_0x3b270d,_0x23a0db){_0x3b270d=_0x3b270d-0xfd;let _0x5d04bd=a1219_0x5d04[_0x3b270d];return _0x5d04bd;};const a1219_0x3a6ae8=a1219_0x4c9d;'use strict';const jayson=require(a1219_0x3a6ae8(0xff)),logger=require(a1219_0x3a6ae8(0x101))('ami'),client=jayson[a1219_0x3a6ae8(0x109)][a1219_0x3a6ae8(0x10a)]({'port':0x2329});client[a1219_0x3a6ae8(0xfd)]=function(_0xaecdfd,_0x44a470){return new Promise(function(_0x1370c1,_0x29155a){const _0x3f541e=a1219_0x4c9d;return client[_0x3f541e(0x105)](_0xaecdfd,_0x44a470)[_0x3f541e(0x104)](function(_0x94eb12){const _0x2a9810=_0x3f541e;return logger[_0x2a9810(0x103)](_0x2a9810(0x100),'memberReport',_0xaecdfd,_0x44a470,_0x94eb12),_0x94eb12[_0x2a9810(0x108)]?(logger[_0x2a9810(0x108)](_0x2a9810(0x100),_0x2a9810(0x102),_0xaecdfd,_0x94eb12[_0x2a9810(0x108)][_0x2a9810(0x107)],_0x44a470),_0x29155a(_0x94eb12[_0x2a9810(0x108)]['message'])):_0x1370c1(_0x94eb12[_0x2a9810(0x106)]);})['catch'](function(_0x115077){const _0x240049=_0x3f541e;return logger[_0x240049(0x108)]('rpc',_0x240049(0x102),_0xaecdfd,_0x115077,_0x44a470),_0x29155a(_0x115077);});});},module[a1219_0x3a6ae8(0xfe)]=client; \ No newline at end of file +const a1219_0x3803=['client','error','memberReport','ami','rpc','http','then','message','result','debug'];(function(_0x4edc12,_0x5b1100){const _0x38030d=function(_0x4e12fe){while(--_0x4e12fe){_0x4edc12['push'](_0x4edc12['shift']());}};_0x38030d(++_0x5b1100);}(a1219_0x3803,0x1d0));const a1219_0x4e12=function(_0x4edc12,_0x5b1100){_0x4edc12=_0x4edc12-0x13a;let _0x38030d=a1219_0x3803[_0x4edc12];return _0x38030d;};const a1219_0x477f64=a1219_0x4e12;'use strict';const jayson=require('jayson/promise'),logger=require('../../config/logger')(a1219_0x477f64(0x143)),client=jayson[a1219_0x477f64(0x140)][a1219_0x477f64(0x13b)]({'port':0x2329});client['Request']=function(_0x507e25,_0x3a4578){return new Promise(function(_0x3ead52,_0x17d3b4){const _0x11e101=a1219_0x4e12;return client['request'](_0x507e25,_0x3a4578)[_0x11e101(0x13c)](function(_0x4ccc12){const _0x30ecf9=_0x11e101;return logger[_0x30ecf9(0x13f)](_0x30ecf9(0x13a),'memberReport',_0x507e25,_0x3a4578,_0x4ccc12),_0x4ccc12[_0x30ecf9(0x141)]?(logger[_0x30ecf9(0x141)]('rpc',_0x30ecf9(0x142),_0x507e25,_0x4ccc12[_0x30ecf9(0x141)][_0x30ecf9(0x13d)],_0x3a4578),_0x17d3b4(_0x4ccc12[_0x30ecf9(0x141)][_0x30ecf9(0x13d)])):_0x3ead52(_0x4ccc12[_0x30ecf9(0x13e)]);})['catch'](function(_0x28e901){const _0x2f1553=_0x11e101;return logger[_0x2f1553(0x141)](_0x2f1553(0x13a),'memberReport',_0x507e25,_0x28e901,_0x3a4578),_0x17d3b4(_0x28e901);});});},module['exports']=client; \ No newline at end of file diff --git a/server/services/ami/dialer/action.js b/server/services/ami/dialer/action.js index 7477c92..e0dd886 100644 --- a/server/services/ami/dialer/action.js +++ b/server/services/ami/dialer/action.js @@ -1 +1 @@ -const a1220_0x52ea=['firstName','dialCutDigit','string','format','callbackuniqueid','lodash','countnoanswerretry','phone','countagentrejectretry','type','isNil','originatecalleridname','countdropretry','queue','VoiceQueueId','substring','UserId','callback','name','uniqueid','countbusyretry','countabandonedretry','originatecalleridnum','countcongestionretry','countmachineretry','prototype','idHopper','CampaignId','dialQueueTimeout','ListId','active','voiceQueue','\x22%s\x22\x20<%s>','getQueue','YYYY-MM-DD\x20HH:mm:ss','scheduledat','ContactId','recallme','callbackat','number','Contact','ContactFirstName'];(function(_0x1d8706,_0x2482df){const _0x52ea67=function(_0x20e918){while(--_0x20e918){_0x1d8706['push'](_0x1d8706['shift']());}};_0x52ea67(++_0x2482df);}(a1220_0x52ea,0x1da));const a1220_0x20e9=function(_0x1d8706,_0x2482df){_0x1d8706=_0x1d8706-0x1b1;let _0x52ea67=a1220_0x52ea[_0x1d8706];return _0x52ea67;};const a1220_0x1798a1=a1220_0x20e9;'use strict';const util=require('util'),_=require(a1220_0x1798a1(0x1d4)),moment=require('moment');function checkNameSurname(_0x34830c,_0x26ac45,_0x1bebb5){const _0x1350af=a1220_0x1798a1;let _0x521d9c='';!_[_0x1350af(0x1d9)](_0x26ac45)&&_0x1350af(0x1d1)===typeof _0x26ac45&&(_0x521d9c+=_0x26ac45);!_['isNil'](_0x1bebb5)&&_0x1350af(0x1d1)===typeof _0x1bebb5&&(_0x521d9c+='\x20'+_0x1bebb5);if(_0x521d9c!=='')return _0x521d9c;return _0x34830c;}function Action(_0x12a4cb,_0x3d4734,_0x3c7f18){const _0xcd7d9c=a1220_0x1798a1;this[_0xcd7d9c(0x1c4)]=_0x12a4cb,this[_0xcd7d9c(0x1b8)]=_0x3c7f18||undefined,this[_0xcd7d9c(0x1b7)]=checkNameSurname(_0x3d4734['Contact'][_0xcd7d9c(0x1d6)],_0x3d4734[_0xcd7d9c(0x1cd)][_0xcd7d9c(0x1cf)],_0x3d4734[_0xcd7d9c(0x1cd)]['lastName']),this[_0xcd7d9c(0x1cc)]=_0x3d4734[_0xcd7d9c(0x1cd)][_0xcd7d9c(0x1d6)],this[_0xcd7d9c(0x1b2)]=_0x12a4cb['name'],this['active']=_0x3d4734[_0xcd7d9c(0x1c3)]||![],this[_0xcd7d9c(0x1d8)]=_0x12a4cb[_0xcd7d9c(0x1d8)],this[_0xcd7d9c(0x1c1)]=_0x12a4cb[_0xcd7d9c(0x1c1)]||0x3,this[_0xcd7d9c(0x1c8)]=_0x3d4734[_0xcd7d9c(0x1c8)],this[_0xcd7d9c(0x1b9)]=_0x3d4734[_0xcd7d9c(0x1b9)],this[_0xcd7d9c(0x1bc)]=_0x3d4734[_0xcd7d9c(0x1bc)],this[_0xcd7d9c(0x1d5)]=_0x3d4734['countnoanswerretry'],this['countnosuchnumberretry']=_0x3d4734['countnosuchnumberretry'],this[_0xcd7d9c(0x1b1)]=_0x3d4734[_0xcd7d9c(0x1b1)],this[_0xcd7d9c(0x1ba)]=_0x3d4734[_0xcd7d9c(0x1ba)],this[_0xcd7d9c(0x1bd)]=_0x3d4734['countmachineretry'],this[_0xcd7d9c(0x1d7)]=_0x3d4734['countagentrejectretry'],this[_0xcd7d9c(0x1c9)]=_0x3d4734['ContactId'],this[_0xcd7d9c(0x1c2)]=_0x3d4734['ListId'],this[_0xcd7d9c(0x1b5)]=_0x3d4734[_0xcd7d9c(0x1b5)],this[_0xcd7d9c(0x1b3)]=_0x3d4734[_0xcd7d9c(0x1b3)],this[_0xcd7d9c(0x1c0)]=_0x3d4734[_0xcd7d9c(0x1c0)],this[_0xcd7d9c(0x1bf)]=_0x3d4734['id'],this[_0xcd7d9c(0x1ce)]=_0x3d4734[_0xcd7d9c(0x1cd)][_0xcd7d9c(0x1cf)]||'',this['starttime']=moment()[_0xcd7d9c(0x1d2)](_0xcd7d9c(0x1c7)),this[_0xcd7d9c(0x1b6)]=_0x3d4734[_0xcd7d9c(0x1b6)],this[_0xcd7d9c(0x1d3)]=_0x3d4734[_0xcd7d9c(0x1d3)],this[_0xcd7d9c(0x1cb)]=_0x3d4734[_0xcd7d9c(0x1cb)],this[_0xcd7d9c(0x1ca)]=_0x3d4734['recallme'],this[_0xcd7d9c(0x1bb)]='',this[_0xcd7d9c(0x1da)]='';}Action[a1220_0x1798a1(0x1be)]['getCaller']=function(){const _0x2a83b4=a1220_0x1798a1;return util['format'](_0x2a83b4(0x1c5),this['name'],this[_0x2a83b4(0x1c4)][_0x2a83b4(0x1d0)]>0x0?this['number'][_0x2a83b4(0x1b4)](this[_0x2a83b4(0x1c4)][_0x2a83b4(0x1d0)]):this[_0x2a83b4(0x1cc)]);},Action['prototype'][a1220_0x1798a1(0x1c6)]=function(){const _0x2f01b8=a1220_0x1798a1;return this[_0x2f01b8(0x1b2)];},module['exports']=Action; \ No newline at end of file +const a1220_0x5cfa=['active','getQueue','uniqueid','substring','countcongestionretry','countnosuchnumberretry','originatecalleridnum','VoiceQueueId','voiceQueue','callback','name','countagentrejectretry','lodash','string','dialCutDigit','countbusyretry','isNil','originatecalleridname','recallme','prototype','countabandonedretry','lastName','firstName','callbackuniqueid','ContactFirstName','countnoanswerretry','getCaller','callbackat','ContactId','CampaignId','moment','ListId','scheduledat','number','YYYY-MM-DD\x20HH:mm:ss','\x22%s\x22\x20<%s>','countmachineretry','dialQueueTimeout','format','starttime','type','phone','countdropretry','Contact'];(function(_0x46b211,_0x2a33e0){const _0x5cfa7c=function(_0x278065){while(--_0x278065){_0x46b211['push'](_0x46b211['shift']());}};_0x5cfa7c(++_0x2a33e0);}(a1220_0x5cfa,0x11a));const a1220_0x2780=function(_0x46b211,_0x2a33e0){_0x46b211=_0x46b211-0x126;let _0x5cfa7c=a1220_0x5cfa[_0x46b211];return _0x5cfa7c;};const a1220_0x11a690=a1220_0x2780;'use strict';const util=require('util'),_=require(a1220_0x11a690(0x14c)),moment=require(a1220_0x11a690(0x132));function checkNameSurname(_0x457319,_0x522730,_0x4fc5a7){const _0x1bf79c=a1220_0x11a690;let _0x6548b3='';!_[_0x1bf79c(0x150)](_0x522730)&&_0x1bf79c(0x14d)===typeof _0x522730&&(_0x6548b3+=_0x522730);!_[_0x1bf79c(0x150)](_0x4fc5a7)&&_0x1bf79c(0x14d)===typeof _0x4fc5a7&&(_0x6548b3+='\x20'+_0x4fc5a7);if(_0x6548b3!=='')return _0x6548b3;return _0x457319;}function Action(_0x558689,_0x4f396e,_0x12679c){const _0x1d6251=a1220_0x11a690;this[_0x1d6251(0x148)]=_0x558689,this[_0x1d6251(0x142)]=_0x12679c||undefined,this[_0x1d6251(0x14a)]=checkNameSurname(_0x4f396e[_0x1d6251(0x13f)][_0x1d6251(0x13d)],_0x4f396e[_0x1d6251(0x13f)][_0x1d6251(0x12a)],_0x4f396e[_0x1d6251(0x13f)][_0x1d6251(0x129)]),this[_0x1d6251(0x135)]=_0x4f396e['Contact'][_0x1d6251(0x13d)],this['queue']=_0x558689[_0x1d6251(0x14a)],this[_0x1d6251(0x140)]=_0x4f396e[_0x1d6251(0x140)]||![],this[_0x1d6251(0x13c)]=_0x558689[_0x1d6251(0x13c)],this[_0x1d6251(0x139)]=_0x558689[_0x1d6251(0x139)]||0x3,this[_0x1d6251(0x134)]=_0x4f396e[_0x1d6251(0x134)],this[_0x1d6251(0x14f)]=_0x4f396e[_0x1d6251(0x14f)],this[_0x1d6251(0x144)]=_0x4f396e[_0x1d6251(0x144)],this[_0x1d6251(0x12d)]=_0x4f396e[_0x1d6251(0x12d)],this['countnosuchnumberretry']=_0x4f396e[_0x1d6251(0x145)],this[_0x1d6251(0x13e)]=_0x4f396e['countdropretry'],this[_0x1d6251(0x128)]=_0x4f396e[_0x1d6251(0x128)],this[_0x1d6251(0x138)]=_0x4f396e[_0x1d6251(0x138)],this[_0x1d6251(0x14b)]=_0x4f396e['countagentrejectretry'],this[_0x1d6251(0x130)]=_0x4f396e[_0x1d6251(0x130)],this[_0x1d6251(0x133)]=_0x4f396e['ListId'],this['UserId']=_0x4f396e['UserId'],this[_0x1d6251(0x147)]=_0x4f396e[_0x1d6251(0x147)],this[_0x1d6251(0x131)]=_0x4f396e[_0x1d6251(0x131)],this['idHopper']=_0x4f396e['id'],this[_0x1d6251(0x12c)]=_0x4f396e[_0x1d6251(0x13f)][_0x1d6251(0x12a)]||'',this[_0x1d6251(0x13b)]=moment()[_0x1d6251(0x13a)](_0x1d6251(0x136)),this[_0x1d6251(0x149)]=_0x4f396e[_0x1d6251(0x149)],this['callbackuniqueid']=_0x4f396e[_0x1d6251(0x12b)],this[_0x1d6251(0x12f)]=_0x4f396e[_0x1d6251(0x12f)],this[_0x1d6251(0x126)]=_0x4f396e['recallme'],this[_0x1d6251(0x146)]='',this[_0x1d6251(0x151)]='';}Action['prototype'][a1220_0x11a690(0x12e)]=function(){const _0x1d336d=a1220_0x11a690;return util[_0x1d336d(0x13a)](_0x1d336d(0x137),this[_0x1d336d(0x14a)],this[_0x1d336d(0x148)][_0x1d336d(0x14e)]>0x0?this[_0x1d336d(0x135)][_0x1d336d(0x143)](this[_0x1d336d(0x148)][_0x1d336d(0x14e)]):this['number']);},Action[a1220_0x11a690(0x127)][a1220_0x11a690(0x141)]=function(){return this['queue'];},module['exports']=Action; \ No newline at end of file diff --git a/server/services/ami/dialer/agentComplete.js b/server/services/ami/dialer/agentComplete.js index ce56102..5e921b0 100644 --- a/server/services/ami/dialer/agentComplete.js +++ b/server/services/ami/dialer/agentComplete.js @@ -1 +1 @@ -const a1221_0x3132=['calleridname','responsetime','reason','queue','countdropretry','YYYY-MM-DD\x20HH:mm:ss','Answer','countmachineretry','UserId','answertime','originatecalleridname','membername','ringtime','ContactId','callbackat','seconds','callback','calleridnum','outbound','countagentrejectretry','originatecalleridnum','uniqueid','CampaignId','endtime','starttime','countnoanswerretry','type','talktime','format','campaigntype','scheduledat','callbackuniqueid','exports','moment','countglobal','ListId','countcongestionretry','countbusyretry','holdtime','state','milliseconds','countabandonedretry','countnosuchnumberretry','recallme'];(function(_0x20a6f5,_0x1d7f46){const _0x3132f2=function(_0x34c1a6){while(--_0x34c1a6){_0x20a6f5['push'](_0x20a6f5['shift']());}};_0x3132f2(++_0x1d7f46);}(a1221_0x3132,0x1d6));const a1221_0x34c1=function(_0x20a6f5,_0x1d7f46){_0x20a6f5=_0x20a6f5-0x19f;let _0x3132f2=a1221_0x3132[_0x20a6f5];return _0x3132f2;};const a1221_0x4d0b41=a1221_0x34c1;'use strict';const moment=require(a1221_0x4d0b41(0x1a2));function getSeconds(_0x1d9ec0,_0x375e66){const _0x1ff13e=a1221_0x4d0b41,_0xf48d04=moment(_0x1d9ec0)[_0x1ff13e(0x1a9)](0x0),_0x2358d5=moment(_0x375e66)[_0x1ff13e(0x1a9)](0x0);return _0xf48d04['diff'](_0x2358d5,_0x1ff13e(0x1bc));}function AgentComplete(_0x3cd0ef,_0x34c4d7){const _0xbaf4da=a1221_0x4d0b41;this[_0xbaf4da(0x1a8)]=0x4,this['statedesc']=_0xbaf4da(0x1b3),this[_0xbaf4da(0x19f)]=_0x3cd0ef[_0xbaf4da(0x19f)],this['type']=_0x3cd0ef['type'],this[_0xbaf4da(0x1ca)]=_0x3cd0ef[_0xbaf4da(0x1c7)]===_0xbaf4da(0x1bf)?_0xbaf4da(0x1b0):_0x3cd0ef[_0xbaf4da(0x1c7)],this[_0xbaf4da(0x1a6)]=_0x3cd0ef['countbusyretry'],this[_0xbaf4da(0x1a5)]=_0x3cd0ef['countcongestionretry'],this[_0xbaf4da(0x1c6)]=_0x3cd0ef['countnoanswerretry'],this[_0xbaf4da(0x1a3)]=_0x3cd0ef['countbusyretry']+_0x3cd0ef['countcongestionretry']+_0x3cd0ef[_0xbaf4da(0x1c6)]+_0x3cd0ef[_0xbaf4da(0x1ab)]+_0x3cd0ef[_0xbaf4da(0x1b1)]+_0x3cd0ef[_0xbaf4da(0x1aa)]+_0x3cd0ef[_0xbaf4da(0x1b4)]+_0x3cd0ef[_0xbaf4da(0x1c0)],this[_0xbaf4da(0x1ab)]=_0x3cd0ef['countnosuchnumberretry'],this[_0xbaf4da(0x1b1)]=_0x3cd0ef[_0xbaf4da(0x1b1)],this[_0xbaf4da(0x1aa)]=_0x3cd0ef['countabandonedretry'],this[_0xbaf4da(0x1b4)]=_0x3cd0ef[_0xbaf4da(0x1b4)],this['countagentrejectretry']=_0x3cd0ef[_0xbaf4da(0x1c0)],this['uniqueid']=_0x34c4d7[_0xbaf4da(0x1c2)],this[_0xbaf4da(0x1ad)]=_0x3cd0ef['name'],this[_0xbaf4da(0x1be)]=_0x3cd0ef['number'],this['starttime']=_0x3cd0ef[_0xbaf4da(0x1c5)],this[_0xbaf4da(0x1ae)]=_0x3cd0ef['responsetime'],this[_0xbaf4da(0x1b6)]=_0x3cd0ef['answertime'],this[_0xbaf4da(0x1c4)]=moment()[_0xbaf4da(0x1c9)](_0xbaf4da(0x1b2)),this[_0xbaf4da(0x1b9)]=getSeconds(_0x3cd0ef['responsetime'],_0x3cd0ef['starttime']),this[_0xbaf4da(0x1a7)]=getSeconds(_0x3cd0ef[_0xbaf4da(0x1b6)],_0x3cd0ef['responsetime']),this[_0xbaf4da(0x1c8)]=getSeconds(this[_0xbaf4da(0x1c4)],_0x3cd0ef[_0xbaf4da(0x1b6)]),this[_0xbaf4da(0x1b0)]=_0x34c4d7[_0xbaf4da(0x1b0)],this[_0xbaf4da(0x1b8)]=_0x34c4d7[_0xbaf4da(0x1b8)],this[_0xbaf4da(0x1af)]=_0x34c4d7['reason'],this[_0xbaf4da(0x1bd)]=_0x3cd0ef[_0xbaf4da(0x1bd)],this[_0xbaf4da(0x1a0)]=_0x3cd0ef[_0xbaf4da(0x1a0)],this[_0xbaf4da(0x1bb)]=_0x3cd0ef[_0xbaf4da(0x1bb)],this[_0xbaf4da(0x1ac)]=_0x3cd0ef[_0xbaf4da(0x1ac)],this[_0xbaf4da(0x1ba)]=_0x3cd0ef[_0xbaf4da(0x1ba)],this['ListId']=_0x3cd0ef[_0xbaf4da(0x1a4)],this[_0xbaf4da(0x1b5)]=_0x3cd0ef[_0xbaf4da(0x1b5)],this['VoiceQueueId']=_0x3cd0ef['VoiceQueueId'],this[_0xbaf4da(0x1c3)]=_0x3cd0ef['CampaignId'],this[_0xbaf4da(0x1c1)]=_0x3cd0ef[_0xbaf4da(0x1c1)]||'',this['originatecalleridname']=_0x3cd0ef[_0xbaf4da(0x1b7)]||'';}module[a1221_0x4d0b41(0x1a1)]=AgentComplete; \ No newline at end of file +const a1221_0xcd94=['callbackat','UserId','name','queue','countdropretry','countcongestionretry','ringtime','responsetime','scheduledat','countmachineretry','countnoanswerretry','callback','outbound','originatecalleridname','Answer','answertime','ListId','statedesc','countbusyretry','starttime','countnosuchnumberretry','countabandonedretry','YYYY-MM-DD\x20HH:mm:ss','type','milliseconds','recallme','ContactId','CampaignId','membername','VoiceQueueId','callbackuniqueid','endtime','uniqueid','originatecalleridnum','format','countagentrejectretry','campaigntype','exports','countglobal','diff','moment'];(function(_0xbf7853,_0x4e237e){const _0xcd94be=function(_0x4815c3){while(--_0x4815c3){_0xbf7853['push'](_0xbf7853['shift']());}};_0xcd94be(++_0x4e237e);}(a1221_0xcd94,0x1f3));const a1221_0x4815=function(_0xbf7853,_0x4e237e){_0xbf7853=_0xbf7853-0x16d;let _0xcd94be=a1221_0xcd94[_0xbf7853];return _0xcd94be;};const a1221_0x3864c1=a1221_0x4815;'use strict';const moment=require(a1221_0x3864c1(0x18e));function getSeconds(_0x3bdf3e,_0x11ff55){const _0x13fac7=a1221_0x3864c1,_0xc7d1e6=moment(_0x3bdf3e)[_0x13fac7(0x17e)](0x0),_0x4669bd=moment(_0x11ff55)['milliseconds'](0x0);return _0xc7d1e6[_0x13fac7(0x18d)](_0x4669bd,'seconds');}function AgentComplete(_0x18b7d4,_0x107469){const _0x23f8fd=a1221_0x3864c1;this['state']=0x4,this[_0x23f8fd(0x177)]=_0x23f8fd(0x174),this[_0x23f8fd(0x16e)]=_0x18b7d4[_0x23f8fd(0x16e)],this[_0x23f8fd(0x17d)]=_0x18b7d4[_0x23f8fd(0x17d)],this[_0x23f8fd(0x18a)]=_0x18b7d4[_0x23f8fd(0x17d)]===_0x23f8fd(0x172)?'queue':_0x18b7d4[_0x23f8fd(0x17d)],this[_0x23f8fd(0x178)]=_0x18b7d4[_0x23f8fd(0x178)],this['countcongestionretry']=_0x18b7d4[_0x23f8fd(0x194)],this[_0x23f8fd(0x170)]=_0x18b7d4[_0x23f8fd(0x170)],this[_0x23f8fd(0x18c)]=_0x18b7d4[_0x23f8fd(0x178)]+_0x18b7d4[_0x23f8fd(0x194)]+_0x18b7d4[_0x23f8fd(0x170)]+_0x18b7d4[_0x23f8fd(0x17a)]+_0x18b7d4[_0x23f8fd(0x193)]+_0x18b7d4['countabandonedretry']+_0x18b7d4[_0x23f8fd(0x16f)]+_0x18b7d4[_0x23f8fd(0x189)],this[_0x23f8fd(0x17a)]=_0x18b7d4['countnosuchnumberretry'],this[_0x23f8fd(0x193)]=_0x18b7d4[_0x23f8fd(0x193)],this[_0x23f8fd(0x17b)]=_0x18b7d4[_0x23f8fd(0x17b)],this[_0x23f8fd(0x16f)]=_0x18b7d4[_0x23f8fd(0x16f)],this[_0x23f8fd(0x189)]=_0x18b7d4[_0x23f8fd(0x189)],this[_0x23f8fd(0x186)]=_0x107469[_0x23f8fd(0x186)],this['calleridname']=_0x18b7d4[_0x23f8fd(0x191)],this['calleridnum']=_0x18b7d4['number'],this[_0x23f8fd(0x179)]=_0x18b7d4[_0x23f8fd(0x179)],this[_0x23f8fd(0x16d)]=_0x18b7d4[_0x23f8fd(0x16d)],this[_0x23f8fd(0x175)]=_0x18b7d4[_0x23f8fd(0x175)],this[_0x23f8fd(0x185)]=moment()[_0x23f8fd(0x188)](_0x23f8fd(0x17c)),this[_0x23f8fd(0x195)]=getSeconds(_0x18b7d4[_0x23f8fd(0x16d)],_0x18b7d4[_0x23f8fd(0x179)]),this['holdtime']=getSeconds(_0x18b7d4[_0x23f8fd(0x175)],_0x18b7d4[_0x23f8fd(0x16d)]),this['talktime']=getSeconds(this[_0x23f8fd(0x185)],_0x18b7d4[_0x23f8fd(0x175)]),this[_0x23f8fd(0x192)]=_0x107469['queue'],this[_0x23f8fd(0x182)]=_0x107469['membername'],this['reason']=_0x107469['reason'],this[_0x23f8fd(0x171)]=_0x18b7d4[_0x23f8fd(0x171)],this[_0x23f8fd(0x184)]=_0x18b7d4[_0x23f8fd(0x184)],this[_0x23f8fd(0x18f)]=_0x18b7d4[_0x23f8fd(0x18f)],this['recallme']=_0x18b7d4[_0x23f8fd(0x17f)],this[_0x23f8fd(0x180)]=_0x18b7d4['ContactId'],this['ListId']=_0x18b7d4[_0x23f8fd(0x176)],this[_0x23f8fd(0x190)]=_0x18b7d4[_0x23f8fd(0x190)],this[_0x23f8fd(0x183)]=_0x18b7d4[_0x23f8fd(0x183)],this[_0x23f8fd(0x181)]=_0x18b7d4['CampaignId'],this['originatecalleridnum']=_0x18b7d4[_0x23f8fd(0x187)]||'',this[_0x23f8fd(0x173)]=_0x18b7d4[_0x23f8fd(0x173)]||'';}module[a1221_0x3864c1(0x18b)]=AgentComplete; \ No newline at end of file diff --git a/server/services/ami/dialer/final.js b/server/services/ami/dialer/final.js index 5d9145d..2fd6713 100644 --- a/server/services/ami/dialer/final.js +++ b/server/services/ami/dialer/final.js @@ -1 +1 @@ -var a1222_0x5206=['endtime','starttime','countmachineretry','scheduledat','exports','holdtime','CampaignId','ContactId','callback','originatecalleridnum','countagentrejectretry','calleridnum','recallme','countnosuchnumberretry','calleridname','outbound','callbackuniqueid','talktime','countbusyretry','countdropretry','ListId','callbackat','type','countabandonedretry','countcongestionretry','responsetime','countnoanswerretry','UserId','ringtime','originatecalleridname'];(function(_0x15cb93,_0x3831e9){var _0x5206fb=function(_0x4b76fb){while(--_0x4b76fb){_0x15cb93['push'](_0x15cb93['shift']());}};_0x5206fb(++_0x3831e9);}(a1222_0x5206,0x97));var a1222_0x4b76=function(_0x15cb93,_0x3831e9){_0x15cb93=_0x15cb93-0x1df;var _0x5206fb=a1222_0x5206[_0x15cb93];return _0x5206fb;};var a1222_0x3b999d=a1222_0x4b76;'use strict';function Final(_0x54b549){var _0xb0bbe7=a1222_0x4b76;this['uniqueid']=_0x54b549['uniqueid'],this[_0xb0bbe7(0x1e1)]=_0x54b549[_0xb0bbe7(0x1e1)],this[_0xb0bbe7(0x1f4)]=_0x54b549[_0xb0bbe7(0x1f4)],this['campaigntype']=_0x54b549[_0xb0bbe7(0x1f4)]===_0xb0bbe7(0x1ed)?'queue':_0x54b549[_0xb0bbe7(0x1f4)],this[_0xb0bbe7(0x1f0)]=_0x54b549['countbusyretry'],this['countcongestionretry']=_0x54b549[_0xb0bbe7(0x1f6)],this[_0xb0bbe7(0x1f8)]=_0x54b549[_0xb0bbe7(0x1f8)],this['countglobal']=_0x54b549[_0xb0bbe7(0x1f0)]+_0x54b549[_0xb0bbe7(0x1f6)]+_0x54b549[_0xb0bbe7(0x1f8)]+_0x54b549['countnosuchnumberretry']+_0x54b549[_0xb0bbe7(0x1f1)]+_0x54b549['countabandonedretry']+_0x54b549['countmachineretry']+_0x54b549[_0xb0bbe7(0x1e8)],this[_0xb0bbe7(0x1eb)]=_0x54b549[_0xb0bbe7(0x1eb)],this[_0xb0bbe7(0x1f1)]=_0x54b549['countdropretry'],this[_0xb0bbe7(0x1f5)]=_0x54b549[_0xb0bbe7(0x1f5)],this[_0xb0bbe7(0x1e0)]=_0x54b549[_0xb0bbe7(0x1e0)],this[_0xb0bbe7(0x1e8)]=_0x54b549[_0xb0bbe7(0x1e8)],this['queue']=_0x54b549['queue'],this[_0xb0bbe7(0x1ec)]=_0x54b549[_0xb0bbe7(0x1ec)],this[_0xb0bbe7(0x1e9)]=_0x54b549[_0xb0bbe7(0x1e9)],this[_0xb0bbe7(0x1df)]=_0x54b549['starttime'],this[_0xb0bbe7(0x1f7)]=_0x54b549[_0xb0bbe7(0x1f7)],this[_0xb0bbe7(0x1fc)]=_0x54b549['responsetime'],this['ringtime']=_0x54b549[_0xb0bbe7(0x1fa)]||0x0,this[_0xb0bbe7(0x1e3)]=_0x54b549[_0xb0bbe7(0x1e3)]||0x0,this[_0xb0bbe7(0x1ef)]=_0x54b549[_0xb0bbe7(0x1ef)]||0x0,this[_0xb0bbe7(0x1e6)]=_0x54b549[_0xb0bbe7(0x1e6)],this[_0xb0bbe7(0x1ee)]=_0x54b549[_0xb0bbe7(0x1ee)],this[_0xb0bbe7(0x1f3)]=_0x54b549[_0xb0bbe7(0x1f3)],this[_0xb0bbe7(0x1ea)]=_0x54b549[_0xb0bbe7(0x1ea)],this['ContactId']=_0x54b549[_0xb0bbe7(0x1e5)],this[_0xb0bbe7(0x1f2)]=_0x54b549[_0xb0bbe7(0x1f2)],this['UserId']=_0x54b549[_0xb0bbe7(0x1f9)],this['VoiceQueueId']=_0x54b549['VoiceQueueId'],this[_0xb0bbe7(0x1e4)]=_0x54b549['CampaignId'],this[_0xb0bbe7(0x1e7)]=_0x54b549[_0xb0bbe7(0x1e7)]||'',this['originatecalleridname']=_0x54b549[_0xb0bbe7(0x1fb)]||'';}module[a1222_0x3b999d(0x1e2)]=Final; \ No newline at end of file +var a1222_0x3758=['ListId','countagentrejectretry','countglobal','calleridnum','ringtime','starttime','endtime','countdropretry','campaigntype','callbackuniqueid','queue','uniqueid','originatecalleridname','countnosuchnumberretry','scheduledat','countabandonedretry','calleridname','callback','recallme','type','countmachineretry','outbound','callbackat','originatecalleridnum','countcongestionretry','VoiceQueueId','CampaignId','talktime','countbusyretry','responsetime','UserId','ContactId','countnoanswerretry','exports'];(function(_0x336260,_0x5eb09a){var _0x375814=function(_0x3f818d){while(--_0x3f818d){_0x336260['push'](_0x336260['shift']());}};_0x375814(++_0x5eb09a);}(a1222_0x3758,0x165));var a1222_0x3f81=function(_0x336260,_0x5eb09a){_0x336260=_0x336260-0xf2;var _0x375814=a1222_0x3758[_0x336260];return _0x375814;};var a1222_0x440726=a1222_0x3f81;'use strict';function Final(_0x3d2cca){var _0x20e929=a1222_0x3f81;this[_0x20e929(0x10e)]=_0x3d2cca[_0x20e929(0x10e)],this[_0x20e929(0x111)]=_0x3d2cca[_0x20e929(0x111)],this[_0x20e929(0xf4)]=_0x3d2cca['type'],this[_0x20e929(0x10b)]=_0x3d2cca[_0x20e929(0xf4)]===_0x20e929(0xf6)?_0x20e929(0x10d):_0x3d2cca[_0x20e929(0xf4)],this['countbusyretry']=_0x3d2cca[_0x20e929(0xfd)],this[_0x20e929(0xf9)]=_0x3d2cca[_0x20e929(0xf9)],this[_0x20e929(0x101)]=_0x3d2cca['countnoanswerretry'],this[_0x20e929(0x105)]=_0x3d2cca[_0x20e929(0xfd)]+_0x3d2cca[_0x20e929(0xf9)]+_0x3d2cca[_0x20e929(0x101)]+_0x3d2cca['countnosuchnumberretry']+_0x3d2cca[_0x20e929(0x10a)]+_0x3d2cca[_0x20e929(0x112)]+_0x3d2cca[_0x20e929(0xf5)]+_0x3d2cca['countagentrejectretry'],this[_0x20e929(0x110)]=_0x3d2cca[_0x20e929(0x110)],this[_0x20e929(0x10a)]=_0x3d2cca[_0x20e929(0x10a)],this[_0x20e929(0x112)]=_0x3d2cca[_0x20e929(0x112)],this[_0x20e929(0xf5)]=_0x3d2cca[_0x20e929(0xf5)],this[_0x20e929(0x104)]=_0x3d2cca[_0x20e929(0x104)],this[_0x20e929(0x10d)]=_0x3d2cca[_0x20e929(0x10d)],this[_0x20e929(0x113)]=_0x3d2cca['calleridname'],this[_0x20e929(0x106)]=_0x3d2cca['calleridnum'],this[_0x20e929(0x108)]=_0x3d2cca[_0x20e929(0x108)],this['responsetime']=_0x3d2cca[_0x20e929(0xfe)],this[_0x20e929(0x109)]=_0x3d2cca[_0x20e929(0xfe)],this[_0x20e929(0x107)]=_0x3d2cca['ringtime']||0x0,this['holdtime']=_0x3d2cca['holdtime']||0x0,this[_0x20e929(0xfc)]=_0x3d2cca[_0x20e929(0xfc)]||0x0,this[_0x20e929(0xf2)]=_0x3d2cca['callback'],this['callbackuniqueid']=_0x3d2cca[_0x20e929(0x10c)],this[_0x20e929(0xf7)]=_0x3d2cca['callbackat'],this[_0x20e929(0xf3)]=_0x3d2cca['recallme'],this[_0x20e929(0x100)]=_0x3d2cca[_0x20e929(0x100)],this[_0x20e929(0x103)]=_0x3d2cca[_0x20e929(0x103)],this[_0x20e929(0xff)]=_0x3d2cca[_0x20e929(0xff)],this[_0x20e929(0xfa)]=_0x3d2cca['VoiceQueueId'],this['CampaignId']=_0x3d2cca[_0x20e929(0xfb)],this[_0x20e929(0xf8)]=_0x3d2cca[_0x20e929(0xf8)]||'',this[_0x20e929(0x10f)]=_0x3d2cca[_0x20e929(0x10f)]||'';}module[a1222_0x440726(0x102)]=Final; \ No newline at end of file diff --git a/server/services/ami/dialer/hangup.js b/server/services/ami/dialer/hangup.js index ad1131f..b65047e 100644 --- a/server/services/ami/dialer/hangup.js +++ b/server/services/ami/dialer/hangup.js @@ -1 +1 @@ -const a1223_0x5b8c=['queue','calleridnum','outbound','ListId','countglobal','UserId','number','countbusyretry','recallme','seconds','milliseconds','VoiceQueueId','statedesc','CampaignId','scheduledat','countdropretry','callback','diff','callbackuniqueid','membername','type','uniqueid','starttime','countagentrejectretry','endtime','countabandonedretry','countcongestionretry','reason','ContactId','state','callbackat','responsetime','name','campaigntype','calleridname','countmachineretry','moment','countnosuchnumberretry'];(function(_0xa49619,_0x2582bd){const _0x5b8cd1=function(_0x1ba659){while(--_0x1ba659){_0xa49619['push'](_0xa49619['shift']());}};_0x5b8cd1(++_0x2582bd);}(a1223_0x5b8c,0x91));const a1223_0x1ba6=function(_0xa49619,_0x2582bd){_0xa49619=_0xa49619-0x6e;let _0x5b8cd1=a1223_0x5b8c[_0xa49619];return _0x5b8cd1;};const a1223_0x3f282e=a1223_0x1ba6;'use strict';const moment=require(a1223_0x3f282e(0x73));function getSeconds(_0x28bd86,_0x72d9d){const _0x3d842f=a1223_0x3f282e,_0xa1ad53=moment(_0x28bd86)[_0x3d842f(0x7f)](0x0),_0x317883=moment(_0x72d9d)[_0x3d842f(0x7f)](0x0);return _0xa1ad53[_0x3d842f(0x86)](_0x317883,_0x3d842f(0x7e));}function Hangup(_0x1f76e4,_0x5057a3){const _0x5ebaaa=a1223_0x3f282e;this[_0x5ebaaa(0x92)]=0x4,this[_0x5ebaaa(0x81)]='Answer',this['scheduledat']=_0x1f76e4[_0x5ebaaa(0x83)],this[_0x5ebaaa(0x89)]=_0x1f76e4[_0x5ebaaa(0x89)],this[_0x5ebaaa(0x70)]=_0x1f76e4['type']===_0x5ebaaa(0x77)?_0x5ebaaa(0x75):_0x1f76e4[_0x5ebaaa(0x89)],this[_0x5ebaaa(0x7c)]=_0x1f76e4['countbusyretry'],this[_0x5ebaaa(0x8f)]=_0x1f76e4[_0x5ebaaa(0x8f)],this['countnoanswerretry']=_0x1f76e4['countnoanswerretry'],this[_0x5ebaaa(0x79)]=_0x1f76e4[_0x5ebaaa(0x7c)]+_0x1f76e4[_0x5ebaaa(0x8f)]+_0x1f76e4['countnoanswerretry']+_0x1f76e4[_0x5ebaaa(0x74)]+_0x1f76e4['countdropretry']+_0x1f76e4[_0x5ebaaa(0x8e)]+_0x1f76e4['countmachineretry']+_0x1f76e4[_0x5ebaaa(0x8c)],this['countnosuchnumberretry']=_0x1f76e4[_0x5ebaaa(0x74)],this[_0x5ebaaa(0x84)]=_0x1f76e4['countdropretry'],this[_0x5ebaaa(0x8e)]=_0x1f76e4[_0x5ebaaa(0x8e)],this[_0x5ebaaa(0x72)]=_0x1f76e4['countmachineretry'],this[_0x5ebaaa(0x8c)]=_0x1f76e4[_0x5ebaaa(0x8c)],this[_0x5ebaaa(0x8a)]=_0x5057a3[_0x5ebaaa(0x8a)],this[_0x5ebaaa(0x71)]=_0x1f76e4[_0x5ebaaa(0x6f)],this[_0x5ebaaa(0x76)]=_0x1f76e4[_0x5ebaaa(0x7b)],this['starttime']=_0x1f76e4[_0x5ebaaa(0x8b)],this['responsetime']=_0x1f76e4['responsetime'],this[_0x5ebaaa(0x8d)]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),this['ringtime']=getSeconds(_0x1f76e4[_0x5ebaaa(0x6e)],_0x1f76e4['starttime']),this['holdtime']=0x0,this['talktime']=getSeconds(this['endtime'],_0x1f76e4[_0x5ebaaa(0x6e)]),this[_0x5ebaaa(0x75)]=_0x1f76e4[_0x5ebaaa(0x75)],this[_0x5ebaaa(0x88)]='IVR',this[_0x5ebaaa(0x90)]=_0x5057a3['cause-txt'],this[_0x5ebaaa(0x85)]=_0x1f76e4['callback'],this['callbackuniqueid']=_0x1f76e4[_0x5ebaaa(0x87)],this[_0x5ebaaa(0x93)]=_0x1f76e4['callbackat'],this[_0x5ebaaa(0x7d)]=_0x1f76e4[_0x5ebaaa(0x7d)],this['ContactId']=_0x1f76e4[_0x5ebaaa(0x91)],this[_0x5ebaaa(0x78)]=_0x1f76e4[_0x5ebaaa(0x78)],this[_0x5ebaaa(0x7a)]=_0x1f76e4[_0x5ebaaa(0x7a)],this[_0x5ebaaa(0x80)]=_0x1f76e4[_0x5ebaaa(0x80)],this['CampaignId']=_0x1f76e4[_0x5ebaaa(0x82)];}module['exports']=Hangup; \ No newline at end of file +const a1223_0x569e=['responsetime','countnoanswerretry','countmachineretry','callback','countnosuchnumberretry','scheduledat','calleridnum','statedesc','number','name','YYYY-MM-DD\x20HH:mm:ss','CampaignId','uniqueid','diff','countbusyretry','callbackat','exports','countdropretry','outbound','Answer','starttime','queue','IVR','membername','seconds','type','countabandonedretry','talktime','format','milliseconds','ContactId','recallme','holdtime','countcongestionretry','countagentrejectretry','endtime','reason','moment','campaigntype','cause-txt','VoiceQueueId','ListId'];(function(_0x12473f,_0x1a6a20){const _0x569efe=function(_0x11028d){while(--_0x11028d){_0x12473f['push'](_0x12473f['shift']());}};_0x569efe(++_0x1a6a20);}(a1223_0x569e,0x19c));const a1223_0x1102=function(_0x12473f,_0x1a6a20){_0x12473f=_0x12473f-0x7a;let _0x569efe=a1223_0x569e[_0x12473f];return _0x569efe;};const a1223_0x4e8d81=a1223_0x1102;'use strict';const moment=require(a1223_0x4e8d81(0x7d));function getSeconds(_0x4be206,_0x5874d5){const _0x3d9742=a1223_0x4e8d81,_0xc7c92e=moment(_0x4be206)[_0x3d9742(0x9f)](0x0),_0x37a766=moment(_0x5874d5)[_0x3d9742(0x9f)](0x0);return _0xc7c92e[_0x3d9742(0x8f)](_0x37a766,_0x3d9742(0x9a));}function Hangup(_0x1631e0,_0x1ca1cc){const _0x46cdf4=a1223_0x4e8d81;this['state']=0x4,this[_0x46cdf4(0x89)]=_0x46cdf4(0x95),this[_0x46cdf4(0x87)]=_0x1631e0[_0x46cdf4(0x87)],this[_0x46cdf4(0x9b)]=_0x1631e0[_0x46cdf4(0x9b)],this[_0x46cdf4(0x7e)]=_0x1631e0[_0x46cdf4(0x9b)]===_0x46cdf4(0x94)?_0x46cdf4(0x97):_0x1631e0[_0x46cdf4(0x9b)],this['countbusyretry']=_0x1631e0[_0x46cdf4(0x90)],this[_0x46cdf4(0xa3)]=_0x1631e0['countcongestionretry'],this[_0x46cdf4(0x83)]=_0x1631e0[_0x46cdf4(0x83)],this['countglobal']=_0x1631e0[_0x46cdf4(0x90)]+_0x1631e0[_0x46cdf4(0xa3)]+_0x1631e0['countnoanswerretry']+_0x1631e0['countnosuchnumberretry']+_0x1631e0[_0x46cdf4(0x93)]+_0x1631e0[_0x46cdf4(0x9c)]+_0x1631e0[_0x46cdf4(0x84)]+_0x1631e0[_0x46cdf4(0x7a)],this[_0x46cdf4(0x86)]=_0x1631e0[_0x46cdf4(0x86)],this[_0x46cdf4(0x93)]=_0x1631e0['countdropretry'],this['countabandonedretry']=_0x1631e0[_0x46cdf4(0x9c)],this[_0x46cdf4(0x84)]=_0x1631e0[_0x46cdf4(0x84)],this['countagentrejectretry']=_0x1631e0[_0x46cdf4(0x7a)],this[_0x46cdf4(0x8e)]=_0x1ca1cc[_0x46cdf4(0x8e)],this['calleridname']=_0x1631e0[_0x46cdf4(0x8b)],this[_0x46cdf4(0x88)]=_0x1631e0[_0x46cdf4(0x8a)],this[_0x46cdf4(0x96)]=_0x1631e0[_0x46cdf4(0x96)],this['responsetime']=_0x1631e0['responsetime'],this['endtime']=moment()[_0x46cdf4(0x9e)](_0x46cdf4(0x8c)),this['ringtime']=getSeconds(_0x1631e0['responsetime'],_0x1631e0[_0x46cdf4(0x96)]),this[_0x46cdf4(0xa2)]=0x0,this[_0x46cdf4(0x9d)]=getSeconds(this[_0x46cdf4(0x7b)],_0x1631e0[_0x46cdf4(0x82)]),this[_0x46cdf4(0x97)]=_0x1631e0[_0x46cdf4(0x97)],this[_0x46cdf4(0x99)]=_0x46cdf4(0x98),this[_0x46cdf4(0x7c)]=_0x1ca1cc[_0x46cdf4(0x7f)],this[_0x46cdf4(0x85)]=_0x1631e0['callback'],this['callbackuniqueid']=_0x1631e0['callbackuniqueid'],this[_0x46cdf4(0x91)]=_0x1631e0[_0x46cdf4(0x91)],this[_0x46cdf4(0xa1)]=_0x1631e0['recallme'],this['ContactId']=_0x1631e0[_0x46cdf4(0xa0)],this['ListId']=_0x1631e0[_0x46cdf4(0x81)],this['UserId']=_0x1631e0['UserId'],this[_0x46cdf4(0x80)]=_0x1631e0['VoiceQueueId'],this[_0x46cdf4(0x8d)]=_0x1631e0[_0x46cdf4(0x8d)];}module[a1223_0x4e8d81(0x92)]=Hangup; \ No newline at end of file diff --git a/server/services/ami/dialer/history.js b/server/services/ami/dialer/history.js index 30ce8ee..1125524 100644 --- a/server/services/ami/dialer/history.js +++ b/server/services/ami/dialer/history.js @@ -1 +1 @@ -const a1224_0x5d25=['moment','countmachineretry','number','uniqueid','VoiceQueueId','ListId','countdropretry','originatecalleridname','exports','countnoanswerretry','starttime','ContactId','calleridnum','countbusyretry','type','countglobal','scheduledat','countabandonedretry','diff','campaigntype','calleridname','endtime','UserId','holdtime','callbackuniqueid','countagentrejectretry','seconds','recallme','countnosuchnumberretry','queue','originatecalleridnum','countcongestionretry','name','responsetime','talktime','callback','CampaignId'];(function(_0x1dfb02,_0x169242){const _0x5d25ec=function(_0x499f67){while(--_0x499f67){_0x1dfb02['push'](_0x1dfb02['shift']());}};_0x5d25ec(++_0x169242);}(a1224_0x5d25,0x10e));const a1224_0x499f=function(_0x1dfb02,_0x169242){_0x1dfb02=_0x1dfb02-0x192;let _0x5d25ec=a1224_0x5d25[_0x1dfb02];return _0x5d25ec;};const a1224_0x3405b4=a1224_0x499f;'use strict';const moment=require(a1224_0x3405b4(0x1ac));function getSeconds(_0x5ef3b8,_0x3f2f39){const _0x3f8eae=a1224_0x3405b4,_0x1d1236=moment(_0x5ef3b8)['milliseconds'](0x0),_0x174ccc=moment(_0x3f2f39)['milliseconds'](0x0);return _0x1d1236[_0x3f8eae(0x199)](_0x174ccc,_0x3f8eae(0x1a1));}function History(_0xd7c986){const _0x2a705b=a1224_0x3405b4;this[_0x2a705b(0x1af)]=_0xd7c986['uniqueid'],this[_0x2a705b(0x197)]=_0xd7c986['scheduledat']||undefined,this[_0x2a705b(0x195)]=_0xd7c986[_0x2a705b(0x195)],this[_0x2a705b(0x19a)]=_0xd7c986[_0x2a705b(0x195)]==='outbound'?_0x2a705b(0x1a4):_0xd7c986[_0x2a705b(0x195)],this[_0x2a705b(0x194)]=_0xd7c986['countbusyretry'],this[_0x2a705b(0x1a6)]=_0xd7c986[_0x2a705b(0x1a6)],this['countnoanswerretry']=_0xd7c986[_0x2a705b(0x1b5)],this[_0x2a705b(0x196)]=_0xd7c986[_0x2a705b(0x194)]+_0xd7c986[_0x2a705b(0x1a6)]+_0xd7c986['countnoanswerretry']+_0xd7c986[_0x2a705b(0x1a3)]+_0xd7c986['countdropretry']+_0xd7c986[_0x2a705b(0x198)]+_0xd7c986[_0x2a705b(0x1ad)]+_0xd7c986[_0x2a705b(0x1a0)],this[_0x2a705b(0x1a3)]=_0xd7c986[_0x2a705b(0x1a3)],this['countdropretry']=_0xd7c986[_0x2a705b(0x1b2)],this['countabandonedretry']=_0xd7c986[_0x2a705b(0x198)],this[_0x2a705b(0x1ad)]=_0xd7c986[_0x2a705b(0x1ad)],this[_0x2a705b(0x1a0)]=_0xd7c986['countagentrejectretry'],this[_0x2a705b(0x1a4)]=_0xd7c986[_0x2a705b(0x1a4)],this[_0x2a705b(0x19b)]=_0xd7c986[_0x2a705b(0x1a7)],this[_0x2a705b(0x193)]=_0xd7c986[_0x2a705b(0x1ae)],this[_0x2a705b(0x1b6)]=_0xd7c986[_0x2a705b(0x1b6)],this[_0x2a705b(0x1a8)]=_0xd7c986[_0x2a705b(0x1a8)],this[_0x2a705b(0x19c)]=_0xd7c986[_0x2a705b(0x1a8)],this['ringtime']=getSeconds(_0xd7c986[_0x2a705b(0x1a8)],_0xd7c986[_0x2a705b(0x1b6)]),this[_0x2a705b(0x19e)]=0x0,this[_0x2a705b(0x1a9)]=0x0,this[_0x2a705b(0x1aa)]=_0xd7c986[_0x2a705b(0x1aa)],this[_0x2a705b(0x19f)]=_0xd7c986[_0x2a705b(0x19f)],this['callbackat']=_0xd7c986['callbackat'],this['recallme']=_0xd7c986[_0x2a705b(0x1a2)],this[_0x2a705b(0x192)]=_0xd7c986[_0x2a705b(0x192)],this[_0x2a705b(0x1b1)]=_0xd7c986[_0x2a705b(0x1b1)],this[_0x2a705b(0x19d)]=_0xd7c986[_0x2a705b(0x19d)],this['VoiceQueueId']=_0xd7c986[_0x2a705b(0x1b0)],this['CampaignId']=_0xd7c986[_0x2a705b(0x1ab)],this[_0x2a705b(0x1a5)]=_0xd7c986[_0x2a705b(0x1a5)]||'',this['originatecalleridname']=_0xd7c986[_0x2a705b(0x1b3)]||'';}module[a1224_0x3405b4(0x1b4)]=History; \ No newline at end of file +const a1224_0x3c6e=['queue','holdtime','type','callbackuniqueid','outbound','uniqueid','countabandonedretry','moment','originatecalleridnum','scheduledat','responsetime','recallme','originatecalleridname','ListId','countagentrejectretry','callbackat','diff','campaigntype','countcongestionretry','countbusyretry','countnoanswerretry','calleridname','countdropretry','seconds','ContactId','countnosuchnumberretry','ringtime','milliseconds','countmachineretry','UserId','exports','VoiceQueueId','talktime'];(function(_0x42c1e0,_0x148697){const _0x3c6e34=function(_0x57b7d3){while(--_0x57b7d3){_0x42c1e0['push'](_0x42c1e0['shift']());}};_0x3c6e34(++_0x148697);}(a1224_0x3c6e,0x68));const a1224_0x57b7=function(_0x42c1e0,_0x148697){_0x42c1e0=_0x42c1e0-0x10f;let _0x3c6e34=a1224_0x3c6e[_0x42c1e0];return _0x3c6e34;};const a1224_0x458007=a1224_0x57b7;'use strict';const moment=require(a1224_0x458007(0x111));function getSeconds(_0x41adba,_0x16f7da){const _0x27059b=a1224_0x458007,_0x3ae9e6=moment(_0x41adba)[_0x27059b(0x125)](0x0),_0x396b86=moment(_0x16f7da)[_0x27059b(0x125)](0x0);return _0x3ae9e6[_0x27059b(0x11a)](_0x396b86,_0x27059b(0x121));}function History(_0x5054e8){const _0x4b1316=a1224_0x458007;this[_0x4b1316(0x10f)]=_0x5054e8['uniqueid'],this['scheduledat']=_0x5054e8[_0x4b1316(0x113)]||undefined,this[_0x4b1316(0x12d)]=_0x5054e8[_0x4b1316(0x12d)],this[_0x4b1316(0x11b)]=_0x5054e8[_0x4b1316(0x12d)]===_0x4b1316(0x12f)?'queue':_0x5054e8['type'],this['countbusyretry']=_0x5054e8[_0x4b1316(0x11d)],this['countcongestionretry']=_0x5054e8[_0x4b1316(0x11c)],this['countnoanswerretry']=_0x5054e8[_0x4b1316(0x11e)],this['countglobal']=_0x5054e8[_0x4b1316(0x11d)]+_0x5054e8[_0x4b1316(0x11c)]+_0x5054e8[_0x4b1316(0x11e)]+_0x5054e8[_0x4b1316(0x123)]+_0x5054e8[_0x4b1316(0x120)]+_0x5054e8['countabandonedretry']+_0x5054e8[_0x4b1316(0x126)]+_0x5054e8[_0x4b1316(0x118)],this[_0x4b1316(0x123)]=_0x5054e8[_0x4b1316(0x123)],this[_0x4b1316(0x120)]=_0x5054e8[_0x4b1316(0x120)],this[_0x4b1316(0x110)]=_0x5054e8[_0x4b1316(0x110)],this[_0x4b1316(0x126)]=_0x5054e8['countmachineretry'],this[_0x4b1316(0x118)]=_0x5054e8['countagentrejectretry'],this[_0x4b1316(0x12b)]=_0x5054e8[_0x4b1316(0x12b)],this[_0x4b1316(0x11f)]=_0x5054e8['name'],this['calleridnum']=_0x5054e8['number'],this['starttime']=_0x5054e8['starttime'],this[_0x4b1316(0x114)]=_0x5054e8[_0x4b1316(0x114)],this['endtime']=_0x5054e8[_0x4b1316(0x114)],this[_0x4b1316(0x124)]=getSeconds(_0x5054e8[_0x4b1316(0x114)],_0x5054e8['starttime']),this[_0x4b1316(0x12c)]=0x0,this[_0x4b1316(0x12a)]=0x0,this['callback']=_0x5054e8['callback'],this[_0x4b1316(0x12e)]=_0x5054e8['callbackuniqueid'],this[_0x4b1316(0x119)]=_0x5054e8[_0x4b1316(0x119)],this[_0x4b1316(0x115)]=_0x5054e8[_0x4b1316(0x115)],this['ContactId']=_0x5054e8[_0x4b1316(0x122)],this[_0x4b1316(0x117)]=_0x5054e8[_0x4b1316(0x117)],this[_0x4b1316(0x127)]=_0x5054e8[_0x4b1316(0x127)],this[_0x4b1316(0x129)]=_0x5054e8[_0x4b1316(0x129)],this['CampaignId']=_0x5054e8['CampaignId'],this[_0x4b1316(0x112)]=_0x5054e8['originatecalleridnum']||'',this['originatecalleridname']=_0x5054e8[_0x4b1316(0x116)]||'';}module[a1224_0x458007(0x128)]=History; \ No newline at end of file diff --git a/server/services/ami/dialer/index.js b/server/services/ami/dialer/index.js index 17fa33c..98b2185 100644 --- a/server/services/ami/dialer/index.js +++ b/server/services/ami/dialer/index.js @@ -1 +1 @@ -const a1225_0x4bc9=['syncAgentConnect','newexten','[busyFactor]','dialQueueProject','getVoiceQueueRtPauses','queuestatuscomplete','callProgressDetecting','syncHangup','predictiveIntervalAvgHoldtime','---------\x20ErlangB\x20---------','object','startMethodPredictive','[checkIsBlackListIvr]\x20','CALLEREXIT','XMD-ORIGINATECALLERIDNAME','type','maxNumberOriginate','round','[rescheduleContact][Machine]','loopClearZombieChannels','undefined','dialPredictiveOptimization','dialNoAnswerRetryFrequency','toUpper','dialNoAnswerMaxRetry','[countReScheduled]\x20','[createHistory]\x20','outboundAnswerAgiCallsDay','[getContactDialer]\x20','catch','[CatchErlangB]','run','[rescheduleContact][Abandoned]','match','dialRandomLastDigitCallerIdNumber',')\x20are\x20less\x20than\x20threshold\x20(','loggedIn','checkRetriveMax','reason\x200\x20no\x20such\x20number....','clearZombieChannels','stack','[handlePredictive]','RUNNING','../ami','switch\x20in\x20progressive\x20because\x20available\x20agents\x20(','stateGlobal','Drop\x20in\x20this\x20interval','dialNoSuchNumberMaxRetry','Scheduled\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','[actionOriginate]\x20','[moveContactManagedDialer][0]','isNil','hangup','../rpc/cmHopperBlack','loggerHandler','updateOriginated','[booked][checkContactBlack][else]','originatecalleridname','predictiveIntervalErlangCallsDroppedCalls','[unlockOriginate][syncQueueStatusComplete]','membername','preview','countReScheduled','XMD-AMDGREETING','[getContactDialer2][Empty]','responsetime','outboundAnswerCallsDay','Umin\x20=\x20','predictiveCalls','Total\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','m\x20=\x20','xcally-motion-dialer','stateinterface','custom:agentbusy','isUndefined','dropreason','timezones','\x20NOT\x20Active','clearing\x20variable\x20start\x20predictive','syncAgentComplete','p\x20=\x20','Ts:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','[unlock2][syncQueueStatusComplete]','[syncQueueSummary]\x20Campaign\x20Queue:\x20','reason\x205\x20busy','active','add','contactsRescheduled','clearing\x20variable\x20start\x20progressive','originateresponse','outboundBlacklistCallsDay','TIMEOUT','dialer','strategy','sumBillable','tags','INTERVAL_IS_EMPTY','optionPredictive','uniqueid','emit','INTERVAL_IS_NULL','state','[syncAgentComplete][createHistory][11]','custom:agentcongestion','countcongestionretry','getDataPredictive','syncVarSet','[syncHangupIvr]','pTalking','[unlock3][syncQueueStatusComplete]','predictiveIntervalHitRate','syncQueueSummary','Queue','checkIfTime','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','checkIsTrunkReachable','VoiceQueueId','util','predictiveIntervalAvailable','XMD-','dialMachineRetryFrequency','[syncAgentComplete][createHistory]','agentconnect','%s%s','custom:agentnoanswer','dialAMDGreeting','Abandoned','../../../config/logger','predictiveIntervalDroppedCallsTimeout','./action','../rpc/voiceQueueRt','busyFactor','voice_queue:save','[rescheduleContact][dialRecallInQueue]','[syncQueueCallerAbandon]\x20[Drop]','bind','then','reason19\x20machine....','indexOf','droptime','[emptyContact][createHistory]','Failure','value','ACTIVE','talking','predictiveIntervalAvgTalktime','reason\x2020\x20agentreject','originatecalleridnum','dialCongestionRetryFrequency','string','reason\x2019\x20machine....','Success','isTrunkReachable','check\x20predictive\x20is\x20not\x20undefine','[syncAgentComplete][createHistory][0]','content','dialTimezone','getContactDialerIvr','[checkIsBlackList]\x20','getCaller','averageHandleTime','seconds','dialNoSuchNumberRetryFrequency','dialOriginateCallerIdName','locked','agiafterat','\x20Interval\x20is\x20overtime:\x20','[ifTime][promiseAll]','predictive','dialPredictiveOptimizationPercentage','getContactDialer','booked','tryOriginatePredictive','dialAgentRejectRetryFrequency','interval\x20=\x20','unmonitored','loopCampaigns','queue','voicePause','AnswerAGI','[syncQueueSummary]\x20Campaign\x20Ivr:\x20','RESCHEDULED_CONTACTS','No\x20such\x20channel','[syncAgentComplete][createHistory][?]','limitCalls','milliseconds','erlangCallToSecond','tail','dialActive','dropRate','dialPowerLevel','outboundDropCallsDayTimeout','TrunkBackup','createHistory','roundrobin','info','--------\x20Drop\x20Rate\x20--------','contacts','[actionOriginatePredictive]\x20','\x20AGENTS\x20NOT\x20LOGGED','XMD-VOICEQUEUEID','length','emptyContact','Global:\x20','waiting','Avg\x20Hold\x20Time\x20is\x20not\x20enough\x20for\x20predictive','XMD-AMDTOTALANALYSISTIME','Global','prototype','agentreject','predictiveIntervalAnsweredCalls','exports','NOT_ACTIVE','contact\x20is\x20undefine','campaign:save','[Originate][MoveBlacklist]','push','[syncAgentComplete][createHistory][5]','predictiveIntervalErlangCalls','AVAILABLE_CONTACTS_FINISHED','checkIsBlackList','dialPrefix','Dropped\x20Timeout:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','countdropretry','[syncHangupInAMD][createHistory]','moment','Interval','method\x20not\x20recognized','ivr','YYYY-MM-DD\x20HH:mm:ss','AGENTS_NOT_LOGGED','predictiveIntervalTotalCalls','XMD-AMDAFTERGREETINGSILENCE','one\x20call\x20every:','dialAgiAfterHangupAgent','dialAbandonedRetryFrequency','is\x20not\x20active','iftime\x20%s,%s','actionOriginate','\x5cw{0,','dialPredictiveInterval','inBlackList','contact\x20not\x20moved','starttime','power','erlangAbandonmentRate','[handlePredictive][limitChannel]','true','[booked][RR][finaly]','dialGlobalInterval','Avg\x20Talk\x20Time\x20is\x20not\x20enough\x20for\x20predictive','minutes','AgentReject','trim','countmachineretry','agent','dialQueueProject2','ivrAnswerCallsDay','dialGlobalMaxRetry','pick','Answered\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','command','[Originate][historyBlacklist]','dialOriginateCallerIdNumber','replace','createStateFinal','voiceQueues','queuestatus','ContactId','TIMEZONE_UNKNOW','predictiveIntervalMultiplicativeFactor','Drop\x20Rate:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','started\x20in\x20predictive\x20at','resolve','NONE','[decremetOriginate]\x20is\x20null\x20or\x20undefined','[updateOriginated]\x20is\x20null\x20or\x20undefined','[callProgressDetecting]','available','finally','dialDropRetryFrequency','substring','AMD','Umin:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','all','TRUNK_IS_NOT_REACHABLE','XMD-AMDSILENCETHRESHOLD','random','XMD-AMDMAXIMUMNUMBEROFWORDS','\x20Intervals\x20is\x20empty\x20','rescheduleContact','clearing\x20variable\x20handle\x20predictive','startPredictive','outboundNoAnswerCallsDay','Trunk','MACHINE','status','One\x20call\x20every:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','dialLimitQueue','[averageHandleTime]\x20','predictiveIntervalDroppedCallsCallersExit','outboundBusyCallsDay','sumDuration','Queue:\x20','unlockRR','[rescheduleContact][Drop]','dialCutDigit','dialMachineMaxRetry','[uniqueid]','[rescheduleContact][NoSuchNumber]','Total\x20Calls\x20are\x20not\x20enough\x20for\x20predictive','erlangCalls','[callProgressDetecting]\x20','erlangBusyFactor','[getContactCampaign2][Empty]','channel','Contact\x20updated','collection\x20data\x20in\x20progressive\x20at','notFound','Dropped\x20calls\x20day','name','Busy','uuid','\x22%s\x22\x20<%s>','dialCongestionMaxRetry','phone','GLOBAL_INTERVAL_IS_OVERTIME','custom:agentnosuchnumber','[actionOriginateIvr]\x20','[syncAgentComplete][createHistory][10]','stringify','[booked][checkContactBlack]','agentBusyFactor','[startMethodPredictive][StartProgressive]','XMD-AMDINITIALSILENCE','reason\x203\x20ringing\x20no\x20answer','./agentComplete','dialBusyMaxRetry','[originateError]:\x20%s','outboundNoSuchCallsDay','temp','unlockContact','total','[getDataPredictive]','outboundCongestionCallsDay','-----\x20Stats\x20Predictive\x20---','[abandonmentRate]','callerid','syncOriginateResponse','response','dialAMDBetweenWordsSilence','error','md5','agents','isEmpty','predictiveIntervalMaxThreshold','reason\x2011\x20abandoned','paused','variable','UserId','./queueCallerAbandon','avgHandleTime','merge','dialAgentRejectMaxRetry','actions','\x22agi://%s/square,%s\x22','dialAMDMinWordLength','[Originate][HistoryRecallClose][historyCatch]','queueBooked','[getContactDialer2]','predictiveIntervalPauses','outboundDropCallsDayCallersExit','[Catch][Preview][syncQueueStatusComplete]','countagentrejectretry','outboundReCallsDay','queueStatusComplete','countnosuchnumberretry','answertime','progressive','Unknown\x20Predictive','[stopMethodPredictive][ReStartProgressive][ExceededDropDay]','countglobal','nosuchnumber','queueCallerAbandonCreateState','[startMethodPredictive][StartProgressive][Loop]','queuemember','dialAMDSilenceThreshold','custom:agentreject','voiceQueue\x20is\x20undefine','outboundOriginateFailureCallsDay','interval','CampaignId','./final','\x20Timezone\x20unknow\x20','dialOrderByScheduledAt','RECALLFAILEDTIMEOUT','outboundUnknownCallsDay','campaigns','syncQueueStatusComplete','statedesc','scheduledat','[Originate][HistoryDialRecallInQueue][historyCatch]','Contact.phone','Congestion','dialQueueTimeout','busy','RecallInQueue','AVG\x20Talk\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','uniqueId','BLACKLIST','[syncAgentComplete][createHistory][8]','[originate][error]','RecallFailedTimeout','queueBookedRR','lodash','message',')\x20are\x20more\x20than\x20threshold\x20(','startProgressive','idHopper','./hangup','History\x20information\x20are\x20empty','evt\x20is\x20undefine','not_inuse','inspect','Error','endtime','_rr','[syncQueueSummary]','dialQueueOptions','exten','[rescheduleContact]\x20[Congestion]','outboundQueuePauses','saveInDb','countabandonedretry','----\x20Agent\x20Busy\x20Factor\x20----','\x20INTERVAL_IS_NULL','Contact','agiIp','floor','originate','syncCampaigns','calleridnum','XMD-AMDMAXIMUMWORDLENGTH','ifTime','checkIfTimeIntervals','moveContactManagedDialer','Interval:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Drop','queuecallerabandon','calleridname','checkIsBlackListIvr','Action','[rescheduleContact]\x20','Amax:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','[rescheduleContact][NoAnswer]','check\x20failure','enqueue','some','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','[syncHangupInAMDIvr][createHistory]','[syncHangupInAMD]','countbusyretry','[stopMethodPredictive][ReStartProgressive][ExceededDropInterval]','checkContactBlack','XMD-AMDBETWEENWORDSSILENCE','[moveContactManagedDialer]\x20','getDataPredictiveOld','dialMethod','Agent:\x20','ListId','---------------------------','XMD-CAMPAIGNID','[syncHangupInAMDIvr]','dialAbandonedMaxRetry','recallme','countnoanswerretry','ivrOriginated','launchHandleIvr','format','[decremetOriginate]\x20object\x20originated\x20is\x20negative','syncNewExten','checkDialMethod','contactAgent-idHopper:\x20','reason','pow','[getContactDialerPredictive]','[syncHangupIvr][createHistory]','outboundDropCallsDayACS','dialAMDActive','dialAMDTotalAnalysisTime','is\x20disactive','amdstatus','./history','dialDropMaxRetry','sendMessageOneNotActive','actionid','handlePredictive','[syncAgentComplete]','Agent','syncQueueMember','SIP/%s/%s%s','reachable','Intervals','outbound','Predictive\x20for\x20every\x20interval','handlePower','sumHoldTime','dialAMDAfterGreetingSilence','trunks','[unlockQueueStatus][undefined]','isArray','[unlock][syncQueueStatusComplete]','INTERVAL_IS_OVERTIME','dialRecallInQueue','[booked][RR]','Timezone:\x20','answered','RECALLINQUEUE','check\x20handlePredictive\x20is\x20not\x20undefine','predictiveIntervalMinThreshold','agentcomplete','Max\x20Drop\x20','Ts\x20=\x20','handleIvr','custom:queuesummary','dialRecallMeTimeout','abandonmentRate','varset','Agent\x20Busy\x20Factor:\x20\x20\x20\x20\x20\x20\x20\x20\x20','[booked][unlock3]','dialOriginateTimeout','dialAMDMaximumWordLength','buildObj','originated','entity\x20is\x20undefine','HangupInAMD','rrmemory'];(function(_0x50c5b8,_0x2c8aea){const _0x4bc958=function(_0x34e5eb){while(--_0x34e5eb){_0x50c5b8['push'](_0x50c5b8['shift']());}};_0x4bc958(++_0x2c8aea);}(a1225_0x4bc9,0xc4));const a1225_0x34e5=function(_0x50c5b8,_0x2c8aea){_0x50c5b8=_0x50c5b8-0xfa;let _0x4bc958=a1225_0x4bc9[_0x50c5b8];return _0x4bc958;};const a1225_0x4cbe77=a1225_0x34e5;'use strict';const util=require(a1225_0x4cbe77(0x2c4)),_=require(a1225_0x4cbe77(0x1d4)),uuid=require(a1225_0x4cbe77(0x178)),moment=require(a1225_0x4cbe77(0x117)),rr=require('rr'),md5=require('md5'),ut=require('../preview/util/util'),config=require('../../../config/environment/'),logger=require(a1225_0x4cbe77(0x2ce))(a1225_0x4cbe77(0x2ab)),loggerBooked=require(a1225_0x4cbe77(0x2ce))(a1225_0x4cbe77(0x2fa)),loggerPredictive=require('../../../config/logger')(a1225_0x4cbe77(0x2f7)),loggerPredictiveCalls=require(a1225_0x4cbe77(0x2ce))(a1225_0x4cbe77(0x293)),loggerSyncQueueSummary=require(a1225_0x4cbe77(0x2ce))(a1225_0x4cbe77(0x2be)),ami=require(a1225_0x4cbe77(0x27a)),{getSocket}=require('../../../rediscache'),io=getSocket(),cmHopper=require('../rpc/cmHopper'),cmHopperHistory=require('../rpc/cmHopperHistory'),cmHopperBlack=require(a1225_0x4cbe77(0x284)),voiceQueueRt=require(a1225_0x4cbe77(0x2d1)),Action=require(a1225_0x4cbe77(0x2d0)),History=require(a1225_0x4cbe77(0x222)),Final=require(a1225_0x4cbe77(0x1be)),AgentComplete=require(a1225_0x4cbe77(0x186)),QueueCallerAbandon=require(a1225_0x4cbe77(0x19e)),Hangup=require(a1225_0x4cbe77(0x1d9)),{getConfigService}=require('../../../config/config.service'),strategy={'rrmemory':a1225_0x4cbe77(0x24e),'roundrobin':'roundrobin'},Sequence=function(){};Sequence[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x1fe)]=function(_0x47d878){const _0xd80f3=a1225_0x4cbe77;this[_0xd80f3(0x30a)]=this[_0xd80f3(0x30a)]?this[_0xd80f3(0x30a)]['finally'](_0x47d878):_0x47d878();};function Dialer(_0x42d003,_0x4ee6e3){const _0x1a31ae=a1225_0x4cbe77;this['sequence']=new Sequence(),this[_0x1a31ae(0x28c)]=_0x4ee6e3,this[_0x1a31ae(0x140)]=_0x42d003[_0x1a31ae(0x140)],this['campaigns']=_0x42d003[_0x1a31ae(0x1c3)],this[_0x1a31ae(0x197)]=_0x42d003[_0x1a31ae(0x197)],this[_0x1a31ae(0x232)]=_0x42d003[_0x1a31ae(0x232)],this[_0x1a31ae(0x25f)]=config[_0x1a31ae(0x25f)]||0x2,this['channels']={},this[_0x1a31ae(0x1a2)]={},this['contactsId']={},this[_0x1a31ae(0x1ce)]={},this[_0x1a31ae(0x2b0)]={},this[_0x1a31ae(0x15a)]={},this[_0x1a31ae(0x1d7)]={},this[_0x1a31ae(0x212)]={},this['queueBooked']={},this[_0x1a31ae(0x1d3)]={},ami['on'](_0x1a31ae(0x2c9),this[_0x1a31ae(0x24f)][_0x1a31ae(0x2d6)](this)),ami['on'](_0x1a31ae(0x1f6),this['syncQueueCallerAbandon'][_0x1a31ae(0x2d6)](this)),ami['on'](_0x1a31ae(0x2a8),this[_0x1a31ae(0x192)][_0x1a31ae(0x2d6)](this)),ami['on'](_0x1a31ae(0x23e),this[_0x1a31ae(0x29e)][_0x1a31ae(0x2d6)](this)),ami['on'](_0x1a31ae(0x242),this[_0x1a31ae(0x2be)]['bind'](this)),ami['on'](_0x1a31ae(0x283),this[_0x1a31ae(0x256)][_0x1a31ae(0x2d6)](this)),ami['on'](_0x1a31ae(0x250),this[_0x1a31ae(0x216)]['bind'](this)),ami['on'](_0x1a31ae(0x245),this[_0x1a31ae(0x2b9)]['bind'](this)),ami['on'](_0x1a31ae(0x1b7),this[_0x1a31ae(0x229)][_0x1a31ae(0x2d6)](this)),ami['on'](_0x1a31ae(0x254),this[_0x1a31ae(0x1c4)]['bind'](this)),this[_0x1a31ae(0x2ff)](),this['loopClearZombieChannels']();}function isNotNull(_0xb40f83){const _0x833098=a1225_0x4cbe77;return _0xb40f83!==null&&!_[_0x833098(0x299)](_0xb40f83);}function checkIsLoggedIn(_0x4c2953,_0x5549f2){return function(){const _0x574c26=a1225_0x34e5;if(_0x5549f2<=0x0){_0x4c2953[_0x574c26(0x1d5)]=_0x574c26(0x11c);throw _0x4c2953[_0x574c26(0x176)]+_0x574c26(0xfd);}};}function isActive(_0x24c19f){return _0x24c19f;}function checkIsActive(_0x11190e,_0x8b8dc7){return function(){const _0x313104=a1225_0x34e5;if(!isActive(_0x8b8dc7)){_0x11190e[_0x313104(0x1d5)]='NOT_ACTIVE';throw _0x11190e['name']+_0x313104(0x29c);}};}function checkInterval(_0x3dc6bc){return function(){const _0x27a1ca=a1225_0x34e5;if(!isNotNull(_0x3dc6bc[_0x27a1ca(0x118)])){_0x3dc6bc[_0x27a1ca(0x1d5)]=_0x27a1ca(0x2b3);throw _0x3dc6bc[_0x27a1ca(0x176)]+_0x27a1ca(0x1e9);}if(!isNotNull(_0x3dc6bc[_0x27a1ca(0x118)][_0x27a1ca(0x22c)])){_0x3dc6bc[_0x27a1ca(0x1d5)]=_0x27a1ca(0x2b3);throw _0x3dc6bc[_0x27a1ca(0x176)]+_0x27a1ca(0x1e9);}if(!isNotNull(_[_0x27a1ca(0x198)](_0x3dc6bc[_0x27a1ca(0x118)][_0x27a1ca(0x22c)]))){_0x3dc6bc[_0x27a1ca(0x1d5)]=_0x27a1ca(0x2b3);throw _0x3dc6bc[_0x27a1ca(0x176)]+_0x27a1ca(0x1e9);}};}function msgResponse(_0x4df791,_0xa2549e,_0x5be63b){return{'action':_0x4df791,'response':_0xa2549e,'message':_0x5be63b,'stack':_0x5be63b};}function myreject(_0x5ce98e){return function(_0x554fc4){const _0x4ed172=a1225_0x34e5;return _0x5ce98e(msgResponse('[ifTime][Action]',_0x4ed172(0x1de),JSON[_0x4ed172(0x180)](_0x554fc4)));};}function getSeconds(_0x38255a,_0x5f11cc){const _0xa398ae=a1225_0x4cbe77,_0x236398=moment(_0x38255a)[_0xa398ae(0x308)](0x0),_0x3145e5=moment(_0x5f11cc)['milliseconds'](0x0);return _0x236398['diff'](_0x3145e5,_0xa398ae(0x2f0));}function emit(_0x322e48,_0x258ebb,_0x37cc99){const _0x44fda0=a1225_0x4cbe77;io['to'](_0x322e48)[_0x44fda0(0x2b2)](_0x258ebb,_0x37cc99);}function emitVoiceQueueSummary(_0x3f636e){const _0x1009de=a1225_0x4cbe77;if(_0x3f636e[_0x1009de(0x25e)]==='outbound'){const _0x4c991e={'id':_0x3f636e['id'],'name':_0x3f636e['name'],'strategy':_0x3f636e[_0x1009de(0x2ac)],'answered':_0x3f636e[_0x1009de(0x23a)],'available':_0x3f636e['available'],'loggedIn':_0x3f636e[_0x1009de(0x273)],'pTalking':_0x3f636e[_0x1009de(0x2bb)],'sumBillable':_0x3f636e[_0x1009de(0x2ad)],'sumDuration':_0x3f636e[_0x1009de(0x164)],'sumHoldTime':_0x3f636e[_0x1009de(0x230)]||0x0,'talking':_0x3f636e[_0x1009de(0x2df)],'total':_0x3f636e[_0x1009de(0x18c)],'type':_0x3f636e['type'],'unmanaged':_0x3f636e['unmanaged'],'abandoned':_0x3f636e['abandoned'],'waiting':_0x3f636e[_0x1009de(0x102)],'loggedInDb':_0x3f636e['loggedInDb'],'dialActive':_0x3f636e[_0x1009de(0x30b)],'dialMethod':_0x3f636e[_0x1009de(0x209)],'dialOriginateCallerIdName':_0x3f636e[_0x1009de(0x2f2)],'dialOriginateCallerIdNumber':_0x3f636e['dialOriginateCallerIdNumber'],'dialOriginateTimeout':_0x3f636e[_0x1009de(0x248)],'dialPrefix':_0x3f636e['dialPrefix'],'outboundAnswerAgiCallsDay':_0x3f636e[_0x1009de(0x26a)],'outboundAnswerCallsDay':_0x3f636e[_0x1009de(0x291)],'outboundBlacklistCallsDay':_0x3f636e[_0x1009de(0x2a9)],'outboundBusyCallsDay':_0x3f636e[_0x1009de(0x163)],'outboundCongestionCallsDay':_0x3f636e[_0x1009de(0x18e)],'outboundDropCallsDayACS':_0x3f636e[_0x1009de(0x21d)],'outboundDropCallsDayCallersExit':_0x3f636e[_0x1009de(0x1a9)],'outboundDropCallsDayTimeout':_0x3f636e['outboundDropCallsDayTimeout'],'outboundNoAnswerCallsDay':_0x3f636e['outboundNoAnswerCallsDay'],'outboundNoSuchCallsDay':_0x3f636e[_0x1009de(0x189)],'outboundOriginateFailureCallsDay':_0x3f636e[_0x1009de(0x1bb)],'outboundReCallsDay':_0x3f636e[_0x1009de(0x1ac)],'outboundRejectCallsDay':_0x3f636e['outboundRejectCallsDay'],'outboundUnknownCallsDay':_0x3f636e[_0x1009de(0x1c2)],'predictiveIntervalAnsweredCalls':_0x3f636e[_0x1009de(0x108)],'predictiveIntervalAvgHoldtime':_0x3f636e[_0x1009de(0x257)],'predictiveIntervalAvgTalktime':_0x3f636e[_0x1009de(0x2e0)],'predictiveIntervalDroppedCallsCallersExit':_0x3f636e[_0x1009de(0x162)],'predictiveIntervalDroppedCallsTimeout':_0x3f636e[_0x1009de(0x2cf)],'predictiveIntervalErlangCalls':_0x3f636e[_0x1009de(0x110)],'predictiveIntervalErlangCallsDroppedCalls':_0x3f636e[_0x1009de(0x289)],'predictiveIntervalHitRate':_0x3f636e[_0x1009de(0x2bd)],'predictiveIntervalMultiplicativeFactor':_0x3f636e[_0x1009de(0x144)],'predictiveIntervalPauses':_0x3f636e[_0x1009de(0x1a8)],'predictiveIntervalAvailable':_0x3f636e[_0x1009de(0x2c5)],'predictiveIntervalTotalCalls':_0x3f636e[_0x1009de(0x11d)],'message':_0x3f636e[_0x1009de(0x1d5)],'originated':_0x3f636e[_0x1009de(0x24b)],'erlangCalls':_0x3f636e[_0x1009de(0x16d)],'erlangCallToSecond':_0x3f636e[_0x1009de(0x309)],'erlangAbandonmentRate':_0x3f636e['erlangAbandonmentRate'],'erlangBusyFactor':_0x3f636e[_0x1009de(0x16f)],'startPredictive':_0x3f636e[_0x1009de(0x15a)],'startProgressive':_0x3f636e[_0x1009de(0x1d7)]};_0x3f636e['Trunk']&&(_0x4c991e[_0x1009de(0x15c)]={'id':_0x3f636e[_0x1009de(0x15c)]['id'],'name':_0x3f636e[_0x1009de(0x15c)][_0x1009de(0x176)],'active':_0x3f636e[_0x1009de(0x15c)][_0x1009de(0x2a4)],'callerid':_0x3f636e[_0x1009de(0x15c)][_0x1009de(0x191)]});_0x3f636e[_0x1009de(0x118)]&&(_0x4c991e['Interval']={'id':_0x3f636e[_0x1009de(0x118)]['id'],'name':_0x3f636e[_0x1009de(0x118)][_0x1009de(0x176)]});const _0x303011=md5(JSON[_0x1009de(0x180)](_0x4c991e));_0x3f636e[_0x1009de(0x196)]!==_0x303011&&(_0x3f636e[_0x1009de(0x196)]=_0x303011,emit(util[_0x1009de(0x214)]('voice:queue:%s',_0x4c991e[_0x1009de(0x176)]),_0x1009de(0x2d3),_0x4c991e));}}function emitCampaignSummary(_0x17ab55){const _0xafbdb7=a1225_0x4cbe77;_0x17ab55['type']===_0xafbdb7(0x11a)&&emit(util['format']('campaign:ivr:%s',_0x17ab55[_0xafbdb7(0x176)]),_0xafbdb7(0x10c),_0x17ab55);}function checkGetDataPredictive(_0x3861e3){const _0x5e4aad=a1225_0x4cbe77;if(isNotNull(_0x3861e3)){if(!_[_0x5e4aad(0x198)](_0x3861e3)){loggerPredictive[_0x5e4aad(0x312)](_0x5e4aad(0x18f)),loggerPredictive['info'](_0x5e4aad(0x294),_0x3861e3[_0x5e4aad(0x11d)]),loggerPredictive[_0x5e4aad(0x312)](_0x5e4aad(0x13a),_0x3861e3[_0x5e4aad(0x108)]),loggerPredictive[_0x5e4aad(0x312)](_0x5e4aad(0x114),_0x3861e3[_0x5e4aad(0x2cf)]),loggerPredictive['info']('Dropped\x20Exit:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x3861e3['predictiveIntervalDroppedCallsCallersExit']),loggerPredictive[_0x5e4aad(0x312)]('AVG\x20Hold\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x3861e3[_0x5e4aad(0x257)]),loggerPredictive[_0x5e4aad(0x312)](_0x5e4aad(0x1cd),_0x3861e3['predictiveIntervalAvgTalktime']),loggerPredictive[_0x5e4aad(0x312)](_0x5e4aad(0x20c));if(_0x3861e3[_0x5e4aad(0x11d)]>0x0){if(!_['isUndefined'](_0x3861e3[_0x5e4aad(0x2e0)])&&_0x3861e3[_0x5e4aad(0x2e0)]>0x0)return!![];else loggerPredictive['info'](_0x5e4aad(0x130));if(!_[_0x5e4aad(0x299)](_0x3861e3[_0x5e4aad(0x257)])&&_0x3861e3['predictiveIntervalAvgHoldtime']>0x0)return!![];else loggerPredictive['info'](_0x5e4aad(0x103));}else loggerPredictive['info'](_0x5e4aad(0x16c));}else loggerPredictive[_0x5e4aad(0x312)](_0x5e4aad(0x1da));}else loggerPredictive[_0x5e4aad(0x312)](_0x5e4aad(0x1da));return![];}function mergeDataErlangB(_0x1b1f26){return function(_0x33909f){const _0x314217=a1225_0x34e5;loggerPredictive[_0x314217(0x312)](_0x314217(0x258)),loggerPredictive['info'](_0x314217(0x27f),_0x33909f['erlangCalls']),loggerPredictive['info'](_0x314217(0x15f),_0x33909f[_0x314217(0x309)]),loggerPredictive[_0x314217(0x312)]('Drop\x20Rate:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x33909f[_0x314217(0x12b)]),loggerPredictive['info'](_0x314217(0x246),_0x33909f[_0x314217(0x16f)]),loggerPredictive[_0x314217(0x312)](_0x314217(0x145),_0x33909f[_0x314217(0x12b)]),loggerPredictive['info']('---------------------------'),_[_0x314217(0x1a0)](_0x1b1f26,_0x33909f);};}function getDiff(_0x3584fc){const _0x23b75d=a1225_0x4cbe77,_0x48d91b=moment()[_0x23b75d(0x308)](0x0),_0x4c8319=moment(_0x3584fc)[_0x23b75d(0x308)](0x0);return _0x48d91b['diff'](_0x4c8319,_0x23b75d(0x2f0));}function ifInterval(_0x144ac8,_0x591531){if(_['isUndefined'](_0x591531))return![];return getDiff(_0x591531)<_0x144ac8*0x3c?!![]:![];}function freeVariablesPredictive(_0x553dde){const _0x2a7682=a1225_0x4cbe77;isNotNull(_0x553dde)&&(!_[_0x2a7682(0x299)](_0x553dde[_0x2a7682(0x1d7)])&&(_0x553dde[_0x2a7682(0x1d7)]=undefined,loggerPredictive[_0x2a7682(0x312)](_0x553dde[_0x2a7682(0x176)],_0x2a7682(0x2a7))),!_[_0x2a7682(0x299)](_0x553dde[_0x2a7682(0x15a)])&&(_0x553dde['startPredictive']=undefined,loggerPredictive[_0x2a7682(0x312)](_0x553dde[_0x2a7682(0x176)],_0x2a7682(0x29d))),!_[_0x2a7682(0x299)](_0x553dde[_0x2a7682(0x226)])&&(clearInterval(_0x553dde[_0x2a7682(0x226)]),_0x553dde[_0x2a7682(0x226)]=undefined,loggerPredictive[_0x2a7682(0x312)](_0x553dde['name'],_0x2a7682(0x159))));}function erlangb(_0x2afe4e,_0x538096){if(_0x538096===0x0)return 0x0;let _0x5269f6=0x1;for(let _0x57154e=0x1;_0x57154e<=_0x538096;_0x57154e+=0x1){_0x5269f6=0x1+_0x5269f6*_0x57154e/_0x2afe4e;}return 0x1/_0x5269f6;}function isVoiceQueueOutbound(_0x1fc0ee){const _0x344e92=a1225_0x4cbe77;return _0x1fc0ee===_0x344e92(0x22d);}function isNotPreview(_0x30e3d3){return _0x30e3d3!=='preview';}function isCampaignIvr(_0x32d9da){const _0x24574d=a1225_0x4cbe77;return _0x32d9da===_0x24574d(0x11a);}function getCallerId(_0x4bd01e,_0x1ca31f,_0x47e77c){const _0x416631=a1225_0x4cbe77;if(!_[_0x416631(0x299)](_0x47e77c)&&'string'===typeof _0x47e77c&&!_[_0x416631(0x198)](_0x47e77c)){if(!_[_0x416631(0x299)](_0x1ca31f)&&'string'===typeof _0x1ca31f&&!_[_0x416631(0x198)](_0x1ca31f))return util[_0x416631(0x214)](_0x416631(0x179),_0x1ca31f,_0x47e77c);return util[_0x416631(0x214)]('\x22%s\x22\x20<%s>',_0x47e77c,_0x47e77c);}if(!_['isUndefined'](_0x4bd01e)&&_0x416631(0x2e4)===typeof _0x4bd01e&&!_['isEmpty'](_0x4bd01e))return _0x4bd01e;return'\x22\x22\x20<>';}function loggerCatchQueueSummary(_0x5e5760,_0x209298){return function(_0x44b0b1){const _0x195aea=a1225_0x34e5;freeVariablesPredictive(_0x209298),emitVoiceQueueSummary(_0x209298),emitCampaignSummary(_0x209298),loggerSyncQueueSummary[_0x195aea(0x195)](_0x5e5760,util[_0x195aea(0x1dd)](_0x44b0b1,{'showHidden':![],'depth':null}));};}function loggerCatchPredictive(_0x3b1e40,_0x5b5ef1){return function(_0x400383){const _0x31561c=a1225_0x34e5;loggerPredictive[_0x31561c(0x195)](_0x5b5ef1[_0x31561c(0x176)],_0x3b1e40),loggerPredictive[_0x31561c(0x195)](_0x400383[_0x31561c(0x277)]),freeVariablesPredictive(_0x5b5ef1);};}function loggerCatch(_0x50f21c){return function(_0x137ce8){const _0x19dba4=a1225_0x34e5;logger[_0x19dba4(0x195)](_0x50f21c,util['inspect'](_0x137ce8,{'showHidden':![],'depth':null}));};}function checkContactEmpty(_0x5553b1){const _0x2ba6f8=a1225_0x4cbe77;return _0x5553b1&&!_[_0x2ba6f8(0x299)](_0x5553b1)&&_0x5553b1[_0x2ba6f8(0xff)]>0x0;}function decremetOriginate(_0x14ecdb){const _0x5ae701=a1225_0x4cbe77;!_['isUndefined'](_0x14ecdb)&&_0x14ecdb!==null?typeof _0x14ecdb[_0x5ae701(0x24b)]!==_0x5ae701(0x263)&&(_0x14ecdb['originated']>0x0?_0x14ecdb['originated']-=0x1:logger['error'](_0x5ae701(0x215))):logger[_0x5ae701(0x195)](_0x5ae701(0x149));}function checkContactLowerLimitOriginate(_0x2683aa,_0x13da90,_0xa7f198){if(_0x13da90>_0xa7f198)for(let _0xcca077=0x0;_0xcca077<_0x13da90-_0xa7f198;_0xcca077+=0x1){decremetOriginate(_0x2683aa);}}function loggerGetContactDialer(_0x2929b4,_0x2cfb62,_0x6ada8a){return function(_0x3ceb30){const _0x3c8c1b=a1225_0x34e5;checkContactLowerLimitOriginate(_0x2cfb62,_0x6ada8a,0x0),logger['error'](_0x2929b4,util[_0x3c8c1b(0x1dd)](_0x3ceb30,{'showHidden':![],'depth':null}));};}function sendMessageReschedule(_0x41375d){return function(_0x42a970){const _0x422012=a1225_0x34e5;isNotNull(_0x42a970)&&isNotNull(_0x42a970[0x0])&&(_0x42a970[0x0][_0x422012(0x2a6)]>0x0?(_0x41375d[_0x422012(0x1d5)]=_0x422012(0x304),logger['info']('[getContactDialer2][ReScheduled]'+_0x41375d[_0x422012(0x176)],_0x42a970[0x0][_0x422012(0x2a6)],_0x422012(0xfb))):(_0x41375d[_0x422012(0x1d5)]=_0x422012(0x111),logger[_0x422012(0x312)](_0x422012(0x28f)+_0x41375d[_0x422012(0x176)])));};}function notSendMessagesQueue(_0x4a4a2e){const _0x1594e6=a1225_0x4cbe77;_0x4a4a2e['sendMessageOneNotActive']&&(freeVariablesPredictive(_0x4a4a2e),_0x4a4a2e[_0x1594e6(0x24b)]===0x0&&_0x4a4a2e['talking']===0x0&&_0x4a4a2e[_0x1594e6(0x102)]===0x0&&(_0x4a4a2e[_0x1594e6(0x2bb)]||0x0)===0x0?(_0x4a4a2e['sendMessageOneNotActive']=![],_0x4a4a2e[_0x1594e6(0x14c)]=0x0,_0x4a4a2e[_0x1594e6(0x1d5)]=_0x1594e6(0x10a),loggerSyncQueueSummary[_0x1594e6(0x195)](_0x1594e6(0x2a2),_0x4a4a2e[_0x1594e6(0x176)],_0x1594e6(0x122))):(_0x4a4a2e[_0x1594e6(0x1d5)]='IS_DISACTIVED',loggerSyncQueueSummary[_0x1594e6(0x195)](_0x1594e6(0x2a2),_0x4a4a2e[_0x1594e6(0x176)],_0x1594e6(0x220))),emitVoiceQueueSummary(_0x4a4a2e));}function notSendMessagesCampaign(_0x5121ac){const _0x459d2c=a1225_0x4cbe77;_0x5121ac[_0x459d2c(0x224)]&&(_0x5121ac[_0x459d2c(0x24b)]===0x0?(_0x5121ac[_0x459d2c(0x224)]=![],_0x5121ac[_0x459d2c(0x1d5)]=_0x459d2c(0x10a),loggerSyncQueueSummary['error'](_0x459d2c(0x303),_0x5121ac[_0x459d2c(0x176)],_0x459d2c(0x122))):(_0x5121ac[_0x459d2c(0x1d5)]='IS_DISACTIVED',loggerSyncQueueSummary[_0x459d2c(0x195)](_0x459d2c(0x303),_0x5121ac['name'],_0x459d2c(0x220))),emitCampaignSummary(_0x5121ac));}function createObjHistory(_0x39b3e6,_0x34d5a8,_0x3b0340,_0x1742bf,_0xe84749){const _0x5b4243=a1225_0x4cbe77;_0x39b3e6[_0x5b4243(0x1d5)]=_0x3b0340;const _0x2c5eb9=new Action(_0x39b3e6,_0x34d5a8),_0x118203=new History(_0x2c5eb9);return _0x118203[_0x5b4243(0x2b4)]=_0x1742bf,_0x118203[_0x5b4243(0x1c5)]=_0xe84749,_0x118203['endtime']=_0x2c5eb9[_0x5b4243(0x129)],_0x118203;}Dialer['prototype'][a1225_0x4cbe77(0x262)]=function(){const _0x31e2db=this;setInterval(function(){const _0x549b1d=a1225_0x34e5;_0x31e2db[_0x549b1d(0x276)](_0x31e2db['uniqueId'],_0x549b1d(0x16a)),_0x31e2db['clearZombieChannels'](_0x31e2db[_0x549b1d(0x1a2)],'[actions]');},0x32c8);},Dialer[a1225_0x4cbe77(0x106)]['clearZombieChannels']=function(_0x43e38f,_0x2f7aad){const _0x579bf0=a1225_0x4cbe77,_0x38ff85=this;for(const _0x3fd061 in _0x43e38f){typeof _0x43e38f[_0x3fd061]!==_0x579bf0(0x263)&&this['sequence'][_0x579bf0(0x1fe)](function(){const _0x26ec77=_0x579bf0;if(!_[_0x26ec77(0x282)](_0x43e38f[_0x3fd061]))return ami['Action']({'action':'status','channel':_0x43e38f[_0x3fd061]['channel']})[_0x26ec77(0x26c)](function(_0x4685ff){const _0x24984e=_0x26ec77;_0x4685ff[_0x24984e(0x1d5)]===_0x24984e(0x305)&&setTimeout(function(){const _0x2a65fe=_0x24984e;_0x43e38f[_0x3fd061]&&_0x43e38f[_0x3fd061][_0x2a65fe(0x25e)]!==_0x2a65fe(0x11a)&&(_0x38ff85[_0x2a65fe(0x286)](_0x38ff85[_0x2a65fe(0x140)][_0x43e38f[_0x3fd061][_0x2a65fe(0x300)]]),logger[_0x2a65fe(0x195)]('[Dialer][checkChannel]',_0x2f7aad,_0x3fd061,_0x43e38f[_0x3fd061][_0x2a65fe(0x300)]),delete _0x43e38f[_0x3fd061]),_0x43e38f[_0x3fd061]&&_0x43e38f[_0x3fd061][_0x2a65fe(0x25e)]===_0x2a65fe(0x11a)&&(_0x38ff85[_0x2a65fe(0x286)](_0x38ff85[_0x2a65fe(0x1c3)][_0x43e38f[_0x3fd061][_0x2a65fe(0x300)]]),logger[_0x2a65fe(0x195)]('[Dialer][checkChannel][ivr]',_0x2f7aad,_0x3fd061,_0x43e38f[_0x3fd061]['queue']),delete _0x43e38f[_0x3fd061]);},0x2328);});});}},Dialer['prototype'][a1225_0x4cbe77(0x28d)]=function(_0x2a09db){const _0xead117=a1225_0x4cbe77;return Promise['resolve']()['then'](cmHopper[_0xead117(0x28d)](_0x2a09db))[_0xead117(0x26c)](loggerCatch(_0xead117(0x268)));},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x112)]=function(_0xc94883){const _0x535d24=a1225_0x4cbe77;return Promise[_0x535d24(0x147)]()[_0x535d24(0x2d7)](cmHopperBlack[_0x535d24(0x112)](_0xc94883))[_0x535d24(0x26c)](loggerCatch(_0x535d24(0x2ed)));},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x1f8)]=function(_0x423be3){const _0x3a631b=a1225_0x4cbe77;return Promise[_0x3a631b(0x147)]()[_0x3a631b(0x2d7)](cmHopperBlack['checkIsBlackListIvr'](_0x423be3))['catch'](loggerCatch(_0x3a631b(0x25b)));},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x2ef)]=function(_0x5994ae){const _0x15be2e=a1225_0x4cbe77;return Promise['resolve']()[_0x15be2e(0x2d7)](cmHopperHistory[_0x15be2e(0x19f)](_0x5994ae))[_0x15be2e(0x26c)](loggerCatch(_0x15be2e(0x161)));},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x158)]=function(_0x1aa46f){const _0x26a1da=a1225_0x4cbe77;return Promise['resolve']()[_0x26a1da(0x2d7)](cmHopper[_0x26a1da(0x158)](_0x1aa46f))['catch'](loggerCatch(_0x26a1da(0x1fa)));},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x18b)]=function(_0x13031d,_0x222cd1,_0x4908b7){const _0x453495=a1225_0x4cbe77;return Promise[_0x453495(0x147)]()['then'](cmHopper[_0x453495(0x18b)](_0x13031d,_0x222cd1,_0x4908b7))['catch'](loggerCatch('[unlockContact]\x20'));},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x2f9)]=function(_0x3b25d9,_0x293abf,_0x31cd45,_0x26d1a7){const _0x1510dd=a1225_0x4cbe77;return Promise['resolve']()[_0x1510dd(0x2d7)](cmHopper[_0x1510dd(0x2f9)](_0x3b25d9,_0x293abf,_0x31cd45,_0x26d1a7))[_0x1510dd(0x26c)](loggerCatch(_0x1510dd(0x26b)));},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x2ec)]=function(_0x2d0e92,_0x2b55d3,_0x219452){const _0x543c3b=a1225_0x4cbe77;return Promise['resolve']()[_0x543c3b(0x2d7)](cmHopper['getContactDialerIvr'](_0x2d0e92,_0x2b55d3,_0x219452))[_0x543c3b(0x26c)](loggerCatch(_0x543c3b(0x26b)));},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x253)]=function(_0x4f9454){const _0x31d7ab=a1225_0x4cbe77;return Promise[_0x31d7ab(0x147)]()['then'](voiceQueueRt['getVoiceQueueRtPauses'](_0x4f9454))[_0x31d7ab(0x26c)](loggerCatch('[getVoiceQueueRtPauses]\x20'));},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x1f3)]=function(_0x25f97a){const _0x2d061d=a1225_0x4cbe77;return Promise[_0x2d061d(0x147)]()[_0x2d061d(0x2d7)](cmHopper[_0x2d061d(0x1f3)](_0x25f97a))[_0x2d061d(0x26c)](loggerCatch(_0x2d061d(0x207)));},Dialer['prototype'][a1225_0x4cbe77(0x310)]=function(_0x34fc63){const _0x230c4f=a1225_0x4cbe77;return Promise[_0x230c4f(0x147)]()[_0x230c4f(0x2d7)](cmHopperHistory[_0x230c4f(0x310)](_0x34fc63))[_0x230c4f(0x26c)](loggerCatch(_0x230c4f(0x269)));},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x286)]=function(_0x1b7264){const _0x4909fa=a1225_0x4cbe77;!_[_0x4909fa(0x299)](_0x1b7264)&&_0x1b7264!==null?typeof _0x1b7264[_0x4909fa(0x24b)]!=='undefined'&&(_0x1b7264[_0x4909fa(0x24b)]>0x0?_0x1b7264['originated']-=0x1:logger[_0x4909fa(0x195)]('[updateOriginated]\x20object\x20originated\x20is\x20negative')):logger[_0x4909fa(0x195)](_0x4909fa(0x14a));},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x285)]=function(_0x5725d3,_0xcd64cc){const _0x15f58c=this;return function(_0x284743){const _0x4a8669=a1225_0x34e5;_0x15f58c[_0x4a8669(0x286)](_0xcd64cc),logger[_0x4a8669(0x195)](_0x5725d3,util[_0x4a8669(0x1dd)](_0x284743,{'showHidden':![],'depth':null}));};},Dialer['prototype'][a1225_0x4cbe77(0x100)]=function(_0x4cc922,_0x31ffa1,_0x173cff){const _0x13c204=a1225_0x4cbe77,_0x2e543e={'state':0x19,'statedesc':_0x13c204(0x174)};this[_0x13c204(0x286)](_0x31ffa1),this['saveInDb'](_['merge'](_0x2e543e,_[_0x13c204(0x139)](_0x173cff,[_0x13c204(0x142),_0x13c204(0x20b),'UserId',_0x13c204(0x2c3),'CampaignId'])),_0x13c204(0x2db),'[emptyContact]'),logger['error'](_0x4cc922);},Dialer[a1225_0x4cbe77(0x106)]['isSuccess']=function(_0x36a678){const _0x46384e=a1225_0x4cbe77;return _0x36a678===_0x46384e(0x2e6);},Dialer['prototype'][a1225_0x4cbe77(0x2e7)]=function(_0x574d46){const _0x498154=a1225_0x4cbe77;return!_[_0x498154(0x299)](_0x574d46)&&_0x574d46&&!_[_0x498154(0x299)](_0x574d46[_0x498154(0x176)])&&!_[_0x498154(0x299)](_0x574d46[_0x498154(0x2a4)])&&_0x574d46[_0x498154(0x2a4)]&&(this[_0x498154(0x232)][util['format']('SIP/%s',_0x574d46[_0x498154(0x176)])][_0x498154(0x15e)]===_0x498154(0x22b)||this[_0x498154(0x232)][util['format']('SIP/%s',_0x574d46[_0x498154(0x176)])][_0x498154(0x15e)]===_0x498154(0x2fe));},Dialer['prototype'][a1225_0x4cbe77(0x1e6)]=function(_0xa3bb57,_0x216aa7,_0x1a0ccc){const _0x4f227e=a1225_0x4cbe77;this[_0x4f227e(0x310)](_0xa3bb57)[_0x4f227e(0x26c)](loggerCatch(_0x216aa7)),this['moveContactManagedDialer'](_0xa3bb57)[_0x4f227e(0x26c)](loggerCatch(_0x1a0ccc));},Dialer['prototype'][a1225_0x4cbe77(0x2b9)]=function(_0x19f67a){const _0x22d1d6=a1225_0x4cbe77,_0x241457=this[_0x22d1d6(0x1ce)][_0x19f67a['uniqueid']];let _0x16a746;if(!_[_0x22d1d6(0x282)](_0x19f67a)&&!_['isNil'](_0x19f67a[_0x22d1d6(0x19c)])&&!_[_0x22d1d6(0x282)](_0x19f67a['variable'][_0x22d1d6(0x221)])&&_0x19f67a[_0x22d1d6(0x1e3)]===_0x22d1d6(0x296)&&_0x241457){_0x241457[_0x22d1d6(0x25e)]!==_0x22d1d6(0x11a)&&this[_0x22d1d6(0x140)][_0x241457[_0x22d1d6(0x300)]]['dialAMDActive']&&_0x19f67a[_0x22d1d6(0x2dd)]==='HANGUP'&&(delete this[_0x22d1d6(0x1ce)][_0x19f67a['uniqueid']],this[_0x22d1d6(0x286)](this[_0x22d1d6(0x140)][_0x241457[_0x22d1d6(0x300)]]),this['voiceQueues'][_0x241457['queue']][_0x22d1d6(0x291)]+=0x1,this[_0x22d1d6(0x140)][_0x241457['queue']][_0x22d1d6(0x26a)]+=0x1,_0x16a746=new Hangup(_0x241457,_0x19f67a),_0x16a746[_0x22d1d6(0x2b4)]=0x12,_0x16a746[_0x22d1d6(0x1c5)]=_0x22d1d6(0x24d),_0x16a746['membername']=_0x22d1d6(0x150),this[_0x22d1d6(0x1e6)](_0x16a746,_0x22d1d6(0x116),_0x22d1d6(0x202)));if(_0x241457[_0x22d1d6(0x25e)]!==_0x22d1d6(0x11a)&&this[_0x22d1d6(0x140)][_0x241457[_0x22d1d6(0x300)]][_0x22d1d6(0x21e)]&&_0x19f67a[_0x22d1d6(0x2dd)]==='MACHINE'){const _0x2d3807=this;return new Promise(function(_0x14f324,_0x3c3ddf){const _0x1220df=_0x22d1d6;delete _0x2d3807[_0x1220df(0x1ce)][_0x19f67a['uniqueid']],_0x2d3807[_0x1220df(0x286)](_0x2d3807[_0x1220df(0x140)][_0x241457[_0x1220df(0x300)]]),_0x2d3807[_0x1220df(0x140)][_0x241457[_0x1220df(0x300)]][_0x1220df(0x291)]+=0x1,_0x2d3807[_0x1220df(0x140)][_0x241457[_0x1220df(0x300)]][_0x1220df(0x26a)]+=0x1;const _0x54da59=_0x2d3807[_0x1220df(0x140)][_0x241457[_0x1220df(0x300)]],_0x288d9c=new Hangup(_0x241457,_0x19f67a);_0x288d9c[_0x1220df(0x2b4)]=0x13,_0x288d9c['statedesc']='Machine',_0x288d9c['membername']=_0x1220df(0x150),_0x288d9c[_0x1220df(0x134)]+=0x1,_0x288d9c['countglobal']+=0x1,_0x288d9c['amd']=!![],_0x2d3807[_0x1220df(0x310)](_0x288d9c)['catch'](loggerCatch('[syncAgentComplete][createHistory][0]')),_0x288d9c[_0x1220df(0x203)]+_0x288d9c[_0x1220df(0x2b7)]+_0x288d9c[_0x1220df(0x211)]+_0x288d9c[_0x1220df(0x1ae)]+_0x288d9c[_0x1220df(0x115)]+_0x288d9c[_0x1220df(0x1e7)]+_0x288d9c[_0x1220df(0x134)]+_0x288d9c[_0x1220df(0x1ab)]>=_0x54da59[_0x1220df(0x138)]?_0x2d3807[_0x1220df(0x27c)](_0x288d9c,_0x14f324,_0x3c3ddf,'reason19\x20machine....'):_0x288d9c['countmachineretry']>=_0x54da59['dialMachineMaxRetry']?_0x2d3807['createStateFinal'](_0x288d9c,_0x14f324,_0x3c3ddf,'reason\x2019\x20machine....'):(_0x2d3807[_0x1220df(0x158)]({'active':![],'countmachineretry':_0x288d9c[_0x1220df(0x134)],'scheduledat':moment()['add'](_0x54da59['dialMachineRetryFrequency'],_0x1220df(0x131))['format'](_0x1220df(0x11b)),'ContactId':_0x288d9c['ContactId'],'ListId':_0x288d9c[_0x1220df(0x20b)],'VoiceQueueId':_0x288d9c[_0x1220df(0x2c3)]||undefined,'CampaignId':_0x288d9c[_0x1220df(0x1bd)]||undefined})[_0x1220df(0x26c)](loggerCatch(_0x1220df(0x261))),_0x14f324({'reschedule':0x1}));});}_0x241457[_0x22d1d6(0x25e)]===_0x22d1d6(0x11a)&&this['campaigns'][_0x241457['queue']][_0x22d1d6(0x21e)]&&_0x19f67a['value']==='HANGUP'&&(delete this[_0x22d1d6(0x1ce)][_0x19f67a['uniqueid']],this['updateOriginated'](this[_0x22d1d6(0x1c3)][_0x241457['queue']]),_0x16a746=new Hangup(_0x241457,_0x19f67a),_0x16a746[_0x22d1d6(0x2b4)]=0x12,_0x16a746[_0x22d1d6(0x1c5)]=_0x22d1d6(0x24d),_0x16a746[_0x22d1d6(0x28b)]=_0x22d1d6(0x150),this[_0x22d1d6(0x1e6)](_0x16a746,_0x22d1d6(0x201),_0x22d1d6(0x20e)));if(_0x241457[_0x22d1d6(0x25e)]==='ivr'&&this['campaigns'][_0x241457[_0x22d1d6(0x300)]][_0x22d1d6(0x21e)]&&_0x19f67a['value']===_0x22d1d6(0x15d)){const _0x29ed4b=this;return new Promise(function(_0x2461e4,_0x4366ed){const _0x1e4e7f=_0x22d1d6;delete _0x29ed4b[_0x1e4e7f(0x1ce)][_0x19f67a[_0x1e4e7f(0x2b1)]],_0x29ed4b[_0x1e4e7f(0x286)](_0x29ed4b[_0x1e4e7f(0x1c3)][_0x241457['queue']]),_0x29ed4b[_0x1e4e7f(0x1c3)][_0x241457[_0x1e4e7f(0x300)]][_0x1e4e7f(0x291)]+=0x1,_0x29ed4b[_0x1e4e7f(0x1c3)][_0x241457[_0x1e4e7f(0x300)]][_0x1e4e7f(0x26a)]+=0x1;const _0x29d02f=_0x29ed4b[_0x1e4e7f(0x1c3)][_0x241457[_0x1e4e7f(0x300)]],_0xb6711a=new Hangup(_0x241457,_0x19f67a);_0xb6711a[_0x1e4e7f(0x2b4)]=0x13,_0xb6711a['statedesc']='Machine',_0xb6711a['membername']=_0x1e4e7f(0x150),_0xb6711a['countmachineretry']+=0x1,_0xb6711a[_0x1e4e7f(0x1b3)]+=0x1,_0xb6711a['amd']=!![],_0x29ed4b[_0x1e4e7f(0x310)](_0xb6711a)[_0x1e4e7f(0x26c)](loggerCatch(_0x1e4e7f(0x2e9))),_0xb6711a[_0x1e4e7f(0x203)]+_0xb6711a['countcongestionretry']+_0xb6711a[_0x1e4e7f(0x211)]+_0xb6711a[_0x1e4e7f(0x1ae)]+_0xb6711a[_0x1e4e7f(0x115)]+_0xb6711a['countabandonedretry']+_0xb6711a[_0x1e4e7f(0x134)]+_0xb6711a[_0x1e4e7f(0x1ab)]>=_0x29d02f[_0x1e4e7f(0x138)]?_0x29ed4b[_0x1e4e7f(0x27c)](_0xb6711a,_0x2461e4,_0x4366ed,_0x1e4e7f(0x2d8)):_0xb6711a['countmachineretry']>=_0x29d02f[_0x1e4e7f(0x169)]?_0x29ed4b['createStateFinal'](_0xb6711a,_0x2461e4,_0x4366ed,_0x1e4e7f(0x2e5)):(_0x29ed4b[_0x1e4e7f(0x158)]({'active':![],'countmachineretry':_0xb6711a['countmachineretry'],'scheduledat':moment()[_0x1e4e7f(0x2a5)](_0x29d02f[_0x1e4e7f(0x2c7)],_0x1e4e7f(0x131))['format'](_0x1e4e7f(0x11b)),'ContactId':_0xb6711a[_0x1e4e7f(0x142)],'ListId':_0xb6711a[_0x1e4e7f(0x20b)],'VoiceQueueId':_0xb6711a[_0x1e4e7f(0x2c3)]||undefined,'CampaignId':_0xb6711a['CampaignId']||undefined})[_0x1e4e7f(0x26c)](loggerCatch(_0x1e4e7f(0x261))),_0x2461e4({'reschedule':0x1}));});}}},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x256)]=function(_0x6566c5){const _0x116fae=a1225_0x4cbe77,_0x503ce3=this['uniqueId'][_0x6566c5[_0x116fae(0x2b1)]];let _0x3caab8;_0x503ce3&&_0x503ce3[_0x116fae(0x25e)]===_0x116fae(0x11a)&&(delete this[_0x116fae(0x1ce)][_0x6566c5[_0x116fae(0x2b1)]],this[_0x116fae(0x286)](this[_0x116fae(0x1c3)][_0x503ce3['queue']]),this['campaigns'][_0x503ce3[_0x116fae(0x300)]][_0x116fae(0x137)]+=0x1,_0x3caab8=new Hangup(_0x503ce3,_0x6566c5),this[_0x116fae(0x310)](_0x3caab8)[_0x116fae(0x26c)](loggerCatch(_0x116fae(0x21c))),this[_0x116fae(0x1f3)](_0x3caab8)['catch'](loggerCatch(_0x116fae(0x2ba)))),_0x503ce3&&_0x503ce3[_0x116fae(0x25e)]!==_0x116fae(0x11a)&&isNotNull(this[_0x116fae(0x140)][_0x503ce3[_0x116fae(0x300)]][_0x116fae(0x252)])&&(delete this[_0x116fae(0x1ce)][_0x6566c5[_0x116fae(0x2b1)]],this[_0x116fae(0x286)](this[_0x116fae(0x140)][_0x503ce3[_0x116fae(0x300)]]),this[_0x116fae(0x140)][_0x503ce3[_0x116fae(0x300)]]['outboundAnswerCallsDay']+=0x1,this[_0x116fae(0x140)][_0x503ce3[_0x116fae(0x300)]][_0x116fae(0x26a)]+=0x1,_0x3caab8=new Hangup(_0x503ce3,_0x6566c5),_0x3caab8[_0x116fae(0x2b4)]=0x10,_0x3caab8[_0x116fae(0x1c5)]=_0x116fae(0x302),_0x3caab8[_0x116fae(0x28b)]='AGI',this[_0x116fae(0x310)](_0x3caab8)[_0x116fae(0x26c)](loggerCatch(_0x116fae(0x21c))),this[_0x116fae(0x1f3)](_0x3caab8)[_0x116fae(0x26c)](loggerCatch(_0x116fae(0x2ba)))),_0x503ce3&&_0x503ce3[_0x116fae(0x25e)]!=='ivr'&&!isNotNull(this['voiceQueues'][_0x503ce3[_0x116fae(0x300)]][_0x116fae(0x252)])&&(delete this[_0x116fae(0x1ce)][_0x6566c5[_0x116fae(0x2b1)]],this[_0x116fae(0x286)](this[_0x116fae(0x140)][_0x503ce3[_0x116fae(0x300)]]),this[_0x116fae(0x140)][_0x503ce3['queue']]['outboundUnknownCallsDay']+=0x1,_0x3caab8=new Hangup(_0x503ce3,_0x6566c5),_0x3caab8[_0x116fae(0x2b4)]=0xc,_0x3caab8['statedesc']=_0x6566c5['cause-txt'],_0x3caab8[_0x116fae(0x28b)]='Unknow',this[_0x116fae(0x310)](_0x3caab8)[_0x116fae(0x26c)](loggerCatch('[syncHangupIvr][createHistory]')),this[_0x116fae(0x1f3)](_0x3caab8)['catch'](loggerCatch(_0x116fae(0x2ba))));},Dialer[a1225_0x4cbe77(0x106)]['syncAgentComplete']=function(_0x9aef53){const _0x49273b=a1225_0x4cbe77,_0x25d162=this[_0x49273b(0x1ce)][_0x9aef53[_0x49273b(0x2b1)]];if(this[_0x49273b(0x140)][_0x9aef53[_0x49273b(0x300)]]){if(_0x25d162&&_0x25d162[_0x49273b(0x25e)]!==_0x49273b(0x11a)){delete this[_0x49273b(0x1ce)][_0x9aef53['uniqueid']],this[_0x49273b(0x140)][_0x9aef53[_0x49273b(0x300)]]['outboundAnswerCallsDay']+=0x1;const _0x25f5a4=new AgentComplete(_0x25d162,_0x9aef53);_0x9aef53['reason']===_0x49273b(0x135)&&(_0x25f5a4[_0x49273b(0x2f4)]=this[_0x49273b(0x140)][_0x9aef53[_0x49273b(0x300)]][_0x49273b(0x136)]&&this[_0x49273b(0x140)][_0x9aef53[_0x49273b(0x300)]][_0x49273b(0x120)]?moment()[_0x49273b(0x214)]('YYYY-MM-DD\x20HH:mm:ss'):undefined),this[_0x49273b(0x310)](_0x25f5a4)[_0x49273b(0x26c)](loggerCatch(_0x49273b(0x2c8))),this[_0x49273b(0x1f3)](_0x25f5a4)['catch'](loggerCatch(_0x49273b(0x227)));}}},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x24f)]=function(_0x11ac71){const _0x2e2b82=a1225_0x4cbe77;this['voiceQueues'][_0x11ac71[_0x2e2b82(0x300)]]&&(this[_0x2e2b82(0x1ce)][_0x11ac71[_0x2e2b82(0x2b1)]]&&this[_0x2e2b82(0x1ce)][_0x11ac71[_0x2e2b82(0x2b1)]][_0x2e2b82(0x25e)]!==_0x2e2b82(0x11a)&&(this[_0x2e2b82(0x286)](this[_0x2e2b82(0x140)][_0x11ac71[_0x2e2b82(0x300)]]),this[_0x2e2b82(0x1ce)][_0x11ac71['uniqueid']][_0x2e2b82(0x1af)]=moment()[_0x2e2b82(0x214)](_0x2e2b82(0x11b))));},Dialer[a1225_0x4cbe77(0x106)]['queueCallerAbandonCreateState']=function(_0x3789cd){const _0x35a481=a1225_0x4cbe77;this[_0x35a481(0x310)](_0x3789cd)[_0x35a481(0x26c)](loggerCatch('[syncAgentComplete][createHistory]')),this['moveContactManagedDialer'](_0x3789cd)['catch'](loggerCatch(_0x35a481(0x2d5)));},Dialer['prototype']['syncQueueCallerAbandon']=function(_0x3d318d){const _0x44958b=a1225_0x4cbe77,_0x6c268a=this[_0x44958b(0x1ce)][_0x3d318d[_0x44958b(0x2b1)]];if(this[_0x44958b(0x140)][_0x3d318d[_0x44958b(0x300)]]){if(_0x6c268a&&_0x6c268a[_0x44958b(0x25e)]!=='ivr'){delete this[_0x44958b(0x1ce)][_0x3d318d[_0x44958b(0x2b1)]],this[_0x44958b(0x286)](this['voiceQueues'][_0x3d318d[_0x44958b(0x300)]]),_0x6c268a[_0x44958b(0x2da)]=moment()[_0x44958b(0x214)](_0x44958b(0x11b));const _0x3d91b9=new QueueCallerAbandon(_0x6c268a,_0x3d318d);if(getSeconds(_0x6c268a[_0x44958b(0x2da)],_0x6c268a[_0x44958b(0x290)])>=_0x6c268a[_0x44958b(0x1ca)]){this['voiceQueues'][_0x3d318d[_0x44958b(0x300)]][_0x44958b(0x2cf)]+=0x1,this[_0x44958b(0x140)][_0x3d318d[_0x44958b(0x300)]][_0x44958b(0x30e)]+=0x1,this[_0x44958b(0x140)][_0x3d318d[_0x44958b(0x300)]][_0x44958b(0x289)]+=0x1,_0x3d91b9[_0x44958b(0x2b4)]=0xa,_0x3d91b9[_0x44958b(0x1c5)]='Drop',_0x3d91b9[_0x44958b(0x29a)]=_0x44958b(0x2aa),_0x3d91b9['agiafterat']=this[_0x44958b(0x140)][_0x3d318d['queue']][_0x44958b(0x136)]?moment()['format']('YYYY-MM-DD\x20HH:mm:ss'):undefined,_0x3d91b9[_0x44958b(0x115)]+=0x1,_0x3d91b9[_0x44958b(0x1b3)]+=0x1;if(_0x3d91b9[_0x44958b(0x115)]>=this[_0x44958b(0x140)][_0x3d318d[_0x44958b(0x300)]][_0x44958b(0x223)])this[_0x44958b(0x1b5)](_0x3d91b9);else{this[_0x44958b(0x158)]({'active':![],'countdropretry':_0x3d91b9[_0x44958b(0x115)],'scheduledat':moment()[_0x44958b(0x2a5)](this[_0x44958b(0x140)][_0x3d318d[_0x44958b(0x300)]]['dialDropRetryFrequency'],_0x44958b(0x131))[_0x44958b(0x214)]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x6c268a['ContactId'],'ListId':_0x6c268a['ListId'],'VoiceQueueId':_0x6c268a[_0x44958b(0x2c3)]||undefined,'CampaignId':_0x6c268a[_0x44958b(0x1bd)]||undefined})[_0x44958b(0x26c)](loggerCatch(_0x44958b(0x167)));const _0x1e0cff=new History(_0x3d91b9);_0x1e0cff[_0x44958b(0x2b4)]=0xa,_0x1e0cff[_0x44958b(0x1c5)]=_0x44958b(0x1f5),_0x1e0cff[_0x44958b(0x129)]=moment()[_0x44958b(0x214)](_0x44958b(0x11b)),_0x1e0cff[_0x44958b(0x1df)]=_0x1e0cff[_0x44958b(0x129)],_0x1e0cff['calleridname']=_0x3d91b9[_0x44958b(0x1f7)],_0x1e0cff[_0x44958b(0x1ef)]=_0x3d91b9[_0x44958b(0x1ef)],this[_0x44958b(0x310)](_0x1e0cff)[_0x44958b(0x26c)](loggerCatch(_0x44958b(0x17f)));}}else{this['voiceQueues'][_0x3d318d[_0x44958b(0x300)]][_0x44958b(0x162)]+=0x1,this['voiceQueues'][_0x3d318d[_0x44958b(0x300)]]['outboundDropCallsDayCallersExit']+=0x1,_0x3d91b9[_0x44958b(0x2b4)]=0xb,_0x3d91b9[_0x44958b(0x1c5)]=_0x44958b(0x2cd),_0x3d91b9[_0x44958b(0x29a)]=_0x44958b(0x25c),_0x3d91b9['countabandonedretry']+=0x1,_0x3d91b9['countglobal']+=0x1;if(_0x3d91b9[_0x44958b(0x1e7)]>=this[_0x44958b(0x140)][_0x3d318d[_0x44958b(0x300)]][_0x44958b(0x20f)])this[_0x44958b(0x1b5)](_0x3d91b9);else{this[_0x44958b(0x158)]({'active':![],'countabandonedretry':_0x3d91b9[_0x44958b(0x1e7)],'scheduledat':moment()[_0x44958b(0x2a5)](this[_0x44958b(0x140)][_0x3d318d['queue']][_0x44958b(0x121)],'minutes')[_0x44958b(0x214)](_0x44958b(0x11b)),'ContactId':_0x6c268a[_0x44958b(0x142)],'ListId':_0x6c268a[_0x44958b(0x20b)],'VoiceQueueId':_0x6c268a[_0x44958b(0x2c3)]||undefined,'CampaignId':_0x6c268a[_0x44958b(0x1bd)]||undefined})['catch'](loggerCatch('[rescheduleContact][Abandoned]'));const _0x1b47db=new History(_0x3d91b9);_0x1b47db[_0x44958b(0x2b4)]=0xb,_0x1b47db[_0x44958b(0x1c5)]=_0x44958b(0x2cd),_0x1b47db[_0x44958b(0x129)]=moment()['format'](_0x44958b(0x11b)),_0x1b47db['endtime']=_0x1b47db[_0x44958b(0x129)],_0x1b47db['calleridname']=_0x3d91b9[_0x44958b(0x1f7)],_0x1b47db['calleridnum']=_0x3d91b9[_0x44958b(0x1ef)],this[_0x44958b(0x310)](_0x1b47db)[_0x44958b(0x26c)](loggerCatch(_0x44958b(0x2b5)));}}}}},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x216)]=function(_0x36711b){const _0x4d2124=a1225_0x4cbe77;this[_0x4d2124(0x1a2)][_0x36711b['uniqueid']]&&(this[_0x4d2124(0x1a2)][_0x36711b[_0x4d2124(0x2b1)]][_0x4d2124(0x171)]=_0x36711b[_0x4d2124(0x171)]),this[_0x4d2124(0x1ce)][_0x36711b['uniqueid']]&&(this[_0x4d2124(0x1ce)][_0x36711b[_0x4d2124(0x2b1)]][_0x4d2124(0x171)]=_0x36711b['channel']);},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x229)]=function(_0x38118d){const _0x42a289=a1225_0x4cbe77;if(strategy[this['voiceQueues'][this[_0x42a289(0x1a2)][_0x38118d[_0x42a289(0x225)]][_0x42a289(0x300)]][_0x42a289(0x2ac)]]===_0x42a289(0x311))this[_0x42a289(0x1a2)][_0x38118d[_0x42a289(0x225)]]&&_[_0x42a289(0x282)](this[_0x42a289(0x1a2)][_0x38118d[_0x42a289(0x225)]]['locked'])&&_0x38118d[_0x42a289(0x15e)]==='1'&&_0x38118d[_0x42a289(0x19b)]==='0'&&(this[_0x42a289(0x197)][_0x38118d['stateinterface']]&&(!this[_0x42a289(0x197)][_0x38118d[_0x42a289(0x297)]][_0x42a289(0x2f3)]&&(this[_0x42a289(0x197)][_0x38118d['stateinterface']]['locked']=!![],this[_0x42a289(0x1a2)][_0x38118d['actionid']][_0x42a289(0x2f3)]=!![],this[_0x42a289(0x1a2)][_0x38118d['actionid']]['stateinterface']=_0x38118d[_0x42a289(0x297)])));else(strategy[this[_0x42a289(0x140)][this['actions'][_0x38118d[_0x42a289(0x225)]][_0x42a289(0x300)]][_0x42a289(0x2ac)]]||_0x42a289(0x24e))===_0x42a289(0x24e)&&(this[_0x42a289(0x1a2)][_0x38118d[_0x42a289(0x225)]]&&(this['agents'][_0x38118d[_0x42a289(0x297)]]&&(this['actions'][_0x38118d[_0x42a289(0x225)]][_0x42a289(0x297)]=_0x38118d[_0x42a289(0x297)],_['isNil'](this['queueBooked'][this['actions'][_0x38118d[_0x42a289(0x225)]][_0x42a289(0x300)]])&&(this[_0x42a289(0x1a6)][this[_0x42a289(0x1a2)][_0x38118d['actionid']][_0x42a289(0x300)]]=[]),this['queueBooked'][this[_0x42a289(0x1a2)][_0x38118d['actionid']][_0x42a289(0x300)]][_0x42a289(0x10e)](_[_0x42a289(0x1a0)](_[_0x42a289(0x139)](this[_0x42a289(0x1a2)][_0x38118d[_0x42a289(0x225)]],[_0x42a289(0x1d8),'stateinterface']),{'status':_0x38118d[_0x42a289(0x15e)],'paused':_0x38118d[_0x42a289(0x19b)]})))));};function unlockQueueStatus(_0x380060,_0x353ae0){setTimeout(function(){const _0x4276ad=a1225_0x34e5;_[_0x4276ad(0x299)](_0x380060[_0x4276ad(0x1ad)])&&loggerBooked['error'](_0x4276ad(0x233),_0x353ae0),_0x380060[_0x4276ad(0x1ad)]=!![],loggerBooked[_0x4276ad(0x312)]('[booked][unlockQueueStatus]',_0x353ae0,JSON['stringify'](_[_0x4276ad(0x139)](_0x380060,[_0x4276ad(0x176),_0x4276ad(0x1ad)])));},0x1f3);}Dialer[a1225_0x4cbe77(0x106)]['syncQueueStatusComplete']=function(_0x25b856){const _0x562213=a1225_0x4cbe77,_0x793db7=this,_0x22115c=_0x793db7[_0x562213(0x140)][_0x793db7[_0x562213(0x1a2)][_0x25b856[_0x562213(0x225)]][_0x562213(0x300)]];if(strategy[this[_0x562213(0x140)][this['actions'][_0x25b856[_0x562213(0x225)]]['queue']][_0x562213(0x2ac)]]===_0x562213(0x311))this[_0x562213(0x1a2)][_0x25b856[_0x562213(0x225)]]&&this[_0x562213(0x1a2)][_0x25b856[_0x562213(0x225)]][_0x562213(0x297)]?this[_0x562213(0x28c)]['run'](this[_0x562213(0x1a2)][_0x25b856['actionid']][_0x562213(0x1d8)],this[_0x562213(0x1a2)][_0x25b856[_0x562213(0x225)]][_0x562213(0x297)])['catch'](function(_0x2b74d3){const _0x57cd57=_0x562213;logger[_0x57cd57(0x195)]('[Catch][Preview][syncQueueStatusComplete]',util[_0x57cd57(0x1dd)](_0x2b74d3,{'showHidden':![],'depth':null}));})[_0x562213(0x14d)](function(){const _0x3d0cd8=_0x562213;_0x793db7[_0x3d0cd8(0x286)](_0x793db7[_0x3d0cd8(0x140)][_0x793db7['actions'][_0x25b856[_0x3d0cd8(0x225)]][_0x3d0cd8(0x300)]]),_0x793db7[_0x3d0cd8(0x197)][_0x793db7[_0x3d0cd8(0x1a2)][_0x25b856[_0x3d0cd8(0x225)]][_0x3d0cd8(0x297)]][_0x3d0cd8(0x2f3)]=![],delete _0x793db7[_0x3d0cd8(0x1a2)][_0x25b856['actionid']],unlockQueueStatus(_0x22115c);}):(this['updateOriginated'](this['voiceQueues'][this[_0x562213(0x1a2)][_0x25b856['actionid']][_0x562213(0x300)]]),this['rescheduleContact']({'active':![],'ContactId':this[_0x562213(0x1a2)][_0x25b856[_0x562213(0x225)]]['ContactId'],'ListId':this['actions'][_0x25b856[_0x562213(0x225)]]['ListId'],'VoiceQueueId':this[_0x562213(0x1a2)][_0x25b856[_0x562213(0x225)]]['VoiceQueueId']||undefined,'CampaignId':this[_0x562213(0x1a2)][_0x25b856[_0x562213(0x225)]]['CampaignId']||undefined})[_0x562213(0x26c)](loggerCatch(_0x562213(0x235))),delete this[_0x562213(0x1a2)][_0x25b856[_0x562213(0x225)]],unlockQueueStatus(_0x22115c));else{if((strategy[this['voiceQueues'][this['actions'][_0x25b856[_0x562213(0x225)]][_0x562213(0x300)]][_0x562213(0x2ac)]]||'rrmemory')===_0x562213(0x24e)){let _0x222ad4;if(this[_0x562213(0x1a2)][_0x25b856[_0x562213(0x225)]]&&!_['isEmpty'](this['queueBooked'][this[_0x562213(0x1a2)][_0x25b856[_0x562213(0x225)]][_0x562213(0x300)]])){this[_0x562213(0x1d3)][_0x793db7[_0x562213(0x1a2)][_0x25b856[_0x562213(0x225)]]['queue']]&&(this[_0x562213(0x1d3)][_0x793db7['actions'][_0x25b856[_0x562213(0x225)]][_0x562213(0x300)]]=this['queueBookedRR'][this[_0x562213(0x1a2)][_0x25b856[_0x562213(0x225)]][_0x562213(0x300)]]?this[_0x562213(0x1d3)][this[_0x562213(0x1a2)][_0x25b856[_0x562213(0x225)]][_0x562213(0x300)]]:this[_0x562213(0x1a6)][this[_0x562213(0x1a2)][_0x25b856[_0x562213(0x225)]][_0x562213(0x300)]]?this[_0x562213(0x1a6)][this[_0x562213(0x1a2)][_0x25b856[_0x562213(0x225)]]['queue']][_0x562213(0x1e0)]||0x0:0x0);this[_0x562213(0x1a6)][this[_0x562213(0x1a2)][_0x25b856[_0x562213(0x225)]][_0x562213(0x300)]][_0x562213(0x1e0)]=this['queueBookedRR'][this[_0x562213(0x1a2)][_0x25b856[_0x562213(0x225)]][_0x562213(0x300)]];for(let _0xeb8191=0x0;_0xeb8191=0x0?!![]:![];})[_0x1034c6(0x26c)](myreject(_0x5f2c96)));}else _0x57bfb9[_0x1034c6(0x10e)](ami[_0x1034c6(0x1f9)]({'action':'command','command':util['format'](_0x1034c6(0x123),_0xd14c84,!_[_0x1034c6(0x299)](config['timezones'][_0x633c1d])?_0x633c1d:'')})[_0x1034c6(0x2d7)](function(_0x392fc0){const _0x878584=_0x1034c6;return _0x392fc0[_0x878584(0x2ea)][_0x878584(0x2d9)](_0x878584(0x12d))>=0x0?!![]:![];})[_0x1034c6(0x26c)](myreject(_0x5f2c96)));Promise[_0x1034c6(0x152)](_0x57bfb9)[_0x1034c6(0x2d7)](function(_0x31a831){const _0x10b64c=_0x1034c6,_0x5e7415=_[_0x10b64c(0x1ff)](_0x31a831);return _0x5e7415?_0xf89990(_0x5e7415):(_0x58a5fd[_0x10b64c(0x1d5)]=_0x1576d5?_0x10b64c(0x17c):_0x10b64c(0x236),_0x5f2c96(msgResponse(_0x10b64c(0x2f6),_0x10b64c(0x2dc),_0x10b64c(0x101)+_0x1576d5+'\x20'+_0x28b85f+_0x10b64c(0x2f5)+util['inspect'](_0xd14c84,{'showHidden':![],'depth':null})+_0x10b64c(0x239)+_0x633c1d)));})[_0x1034c6(0x26c)](function(_0x3da231){const _0x230a8a=_0x1034c6;return _0x5f2c96(msgResponse('ifTime',_0x230a8a(0x2dc),JSON[_0x230a8a(0x180)](_0x3da231)));});});},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x217)]=function(_0x21b498){const _0x1c9b60=this;return function(){const _0x558fbd=a1225_0x34e5;switch(_0x21b498[_0x558fbd(0x209)]){case _0x558fbd(0x1b0):freeVariablesPredictive(_0x21b498),_0x1c9b60[_0x558fbd(0x22f)](_0x21b498,0x1);break;case _0x558fbd(0x12a):freeVariablesPredictive(_0x21b498),_0x1c9b60[_0x558fbd(0x22f)](_0x21b498,_0x21b498[_0x558fbd(0x30d)]);break;case _0x558fbd(0x2f7):_0x1c9b60[_0x558fbd(0x2f7)](_0x21b498);break;case _0x558fbd(0x2fa):freeVariablesPredictive(_0x21b498),_0x1c9b60['handlePower'](_0x21b498,0x1);break;default:freeVariablesPredictive(_0x21b498),logger[_0x558fbd(0x195)](_0x558fbd(0x2bf),_0x21b498[_0x558fbd(0x176)],_0x558fbd(0x119));}};},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x213)]=function(_0x2e05ef){const _0x4fb4a1=this;return function(){_0x4fb4a1['handleIvr'](_0x2e05ef);};},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x2be)]=function(_0x52fe45){const _0x586eec=a1225_0x4cbe77,_0x3af2eb=this;isNotPreview(_0x52fe45[_0x586eec(0x209)])?isVoiceQueueOutbound(_0x52fe45[_0x586eec(0x25e)])&&isActive(_0x52fe45[_0x586eec(0x30b)])?(_0x52fe45[_0x586eec(0x224)]=!![],Promise[_0x586eec(0x147)]()[_0x586eec(0x2d7)](checkIsLoggedIn(_0x52fe45,_0x52fe45[_0x586eec(0x273)]))[_0x586eec(0x2d7)](checkIsActive(_0x52fe45,_0x52fe45['dialActive']))['then'](checkInterval(_0x52fe45))[_0x586eec(0x2d7)](_0x3af2eb[_0x586eec(0x2c2)](_0x52fe45))[_0x586eec(0x2d7)](_0x3af2eb[_0x586eec(0x2c0)](_0x52fe45[_0x586eec(0x12f)],_0x52fe45[_0x586eec(0x2eb)],_0x52fe45[_0x586eec(0x176)],_0x52fe45))['then'](_0x3af2eb['checkIfTimeIntervals'](_0x52fe45[_0x586eec(0x118)],_0x52fe45[_0x586eec(0x2eb)],_0x52fe45['name'],_0x52fe45))[_0x586eec(0x2d7)](_0x3af2eb[_0x586eec(0x217)](_0x52fe45))[_0x586eec(0x26c)](loggerCatchQueueSummary(_0x586eec(0x1e1),_0x52fe45))):notSendMessagesQueue(_0x52fe45):freeVariablesPredictive(_0x52fe45);},Dialer['prototype'][a1225_0x4cbe77(0x1ee)]=function(){const _0x9dd2dc=a1225_0x4cbe77,_0x332400=this;let _0x4d8a54;for(const _0xe96351 in this[_0x9dd2dc(0x1c3)]){typeof this[_0x9dd2dc(0x1c3)][_0xe96351]!=='undefined'&&(_0x4d8a54=this[_0x9dd2dc(0x1c3)][_0xe96351],isCampaignIvr(_0x4d8a54[_0x9dd2dc(0x25e)])&&isActive(_0x4d8a54[_0x9dd2dc(0x2a4)])?(_0x4d8a54[_0x9dd2dc(0x224)]=!![],Promise['resolve']()['then'](checkIsActive(_0x4d8a54,_0x4d8a54[_0x9dd2dc(0x2a4)]))[_0x9dd2dc(0x2d7)](checkInterval(_0x4d8a54))[_0x9dd2dc(0x2d7)](_0x332400[_0x9dd2dc(0x2c2)](_0x4d8a54))['then'](_0x332400[_0x9dd2dc(0x2c0)](_0x4d8a54[_0x9dd2dc(0x12f)],_0x4d8a54['dialTimezone'],_0x4d8a54['name'],_0x4d8a54))['then'](_0x332400[_0x9dd2dc(0x1f2)](_0x4d8a54[_0x9dd2dc(0x118)],_0x4d8a54[_0x9dd2dc(0x2eb)],_0x4d8a54['name'],_0x4d8a54))[_0x9dd2dc(0x2d7)](_0x332400[_0x9dd2dc(0x213)](_0x4d8a54))[_0x9dd2dc(0x26c)](loggerCatchQueueSummary('[syncCampaigns]',_0x4d8a54))):notSendMessagesCampaign(_0x4d8a54));}};function getCallerIdRandom(_0x240499,_0x2a4f9e){const _0x4d2d6e=a1225_0x4cbe77;_0x2a4f9e<=0x0&&(_0x2a4f9e=0x1);const _0x433624=new RegExp(_0x4d2d6e(0x125)+_0x2a4f9e+'}$'),_0x34afe8=Math['pow'](0xa,_0x2a4f9e-0x1),_0x3250dd=Math[_0x4d2d6e(0x21a)](0xa,_0x2a4f9e)-0x1;return util[_0x4d2d6e(0x214)]('%s',_[_0x4d2d6e(0x13e)](_0x240499,_0x433624,_[_0x4d2d6e(0x155)](_0x34afe8,_0x3250dd)));}function extractCalleridName(_0x39047e){const _0xf30fd6=a1225_0x4cbe77,_0x330190=_0x39047e[_0xf30fd6(0x270)](/"(.*?)"/);return _0x330190?_0x330190[0x1]:_0x39047e;}function extractCalleridNumber(_0x5e7b01){const _0x5ba3ae=a1225_0x4cbe77,_0x229866=_0x5e7b01[_0x5ba3ae(0x270)](/<(.*?)>/);return _0x229866?_0x229866[0x1]:_0x5e7b01;}Dialer['prototype'][a1225_0x4cbe77(0x124)]=function(_0x4c9551,_0x15555d){const _0x55b0b6=a1225_0x4cbe77,_0x182ecb=getConfigService(),_0x4ddef5=this,_0xc7d523=uuid['v4']();return this[_0x55b0b6(0x1a2)][_0xc7d523]=new Action(_0x4c9551,_0x15555d,_0xc7d523),new Promise(function(_0x234734,_0xb9a084){const _0xa488b7=_0x55b0b6;if(_['isUndefined'](_0x4c9551)&&_0xa488b7(0x259)!==typeof _0x4c9551)return _0xb9a084(msgResponse('originate',_0xa488b7(0x2dc),_0xa488b7(0x1ba)));if(_[_0xa488b7(0x299)](_0x15555d[_0xa488b7(0x1ea)][_0xa488b7(0x17b)])||_0x15555d['Contact'][_0xa488b7(0x17b)]===null)return _0xb9a084(msgResponse(_0xa488b7(0x1ed),_0xa488b7(0x2dc),_0xa488b7(0x10b)));const _0x146f72={'XMD-CALLERID':_0x4ddef5[_0xa488b7(0x1a2)][_0xc7d523][_0xa488b7(0x2ee)](),'XMD-AGI':_0x4c9551[_0xa488b7(0x252)]?util['format'](_0xa488b7(0x1a3),_0x182ecb[_0xa488b7(0x1eb)],_0x4c9551[_0xa488b7(0x252)]):_0xa488b7(0x148),'XMD-AGIAFTER':_0x4c9551['dialQueueProject2']?util[_0xa488b7(0x214)](_0xa488b7(0x1a3),_0x182ecb[_0xa488b7(0x1eb)],_0x4c9551['dialQueueProject2']):_0xa488b7(0x148),'XMD-QUEUE':_0x4c9551[_0xa488b7(0x25e)]===_0xa488b7(0x22d)?util['format']('\x22%s,%s%s,,,%s\x22',_0x4c9551['name'],_0x4c9551[_0xa488b7(0x1e2)]||'',_0x4c9551[_0xa488b7(0x120)]?'c':'',_0x4c9551[_0xa488b7(0x1ca)]||0x3):_0xa488b7(0x148),'XMD-CONTACTID':_0x15555d['ContactId'],'XMD-CDRTYPE':_0xa488b7(0x2ab),'CALLERID(all)':_0x4ddef5[_0xa488b7(0x1a2)][_0xc7d523][_0xa488b7(0x2ee)](),'XMD-AMD':_0x4c9551[_0xa488b7(0x21e)]?_0xa488b7(0x2de):_0xa488b7(0x148),'XMD-DESTINATION':'xcally-motion-dialer'};_0x4c9551['dialAMDActive']&&(_0x146f72[_0xa488b7(0x184)]=_0x4c9551['dialAMDInitialSilence']||0x9c4,_0x146f72[_0xa488b7(0x28e)]=_0x4c9551[_0xa488b7(0x2cc)]||0x5dc,_0x146f72[_0xa488b7(0x11e)]=_0x4c9551[_0xa488b7(0x231)]||0x320,_0x146f72[_0xa488b7(0x104)]=_0x4c9551[_0xa488b7(0x21f)]||0x1388,_0x146f72['XMD-AMDMINWORDLENGTH']=_0x4c9551[_0xa488b7(0x1a4)]||0x64,_0x146f72[_0xa488b7(0x206)]=_0x4c9551[_0xa488b7(0x194)]||0x32,_0x146f72[_0xa488b7(0x156)]=_0x4c9551['dialAMDMaximumNumberOfWords']||0x3,_0x146f72[_0xa488b7(0x154)]=_0x4c9551[_0xa488b7(0x1b8)]||0x100,_0x146f72[_0xa488b7(0x1f0)]=_0x4c9551[_0xa488b7(0x249)]||0x1388);_0x4c9551[_0xa488b7(0x25e)]==='outbound'?_0x146f72[_0xa488b7(0xfe)]=_0x15555d[_0xa488b7(0x2c3)]:_0x146f72[_0xa488b7(0x20d)]=_0x15555d[_0xa488b7(0x1bd)];for(const _0x277212 in _0x15555d[_0xa488b7(0x1ea)]){typeof _0x15555d[_0xa488b7(0x1ea)][_0x277212]!==_0xa488b7(0x263)&&(isNotNull(_0x15555d[_0xa488b7(0x1ea)][_0x277212])&&_0x277212!=='id'&&_0x277212!==_0xa488b7(0x2ae)&&_0x277212!=='createdAt'&&_0x277212!=='updatedAt'&&(_0x146f72[util[_0xa488b7(0x214)](_0xa488b7(0x2ca),_0xa488b7(0x2c6),_[_0xa488b7(0x266)](_0x277212))]=_0x15555d[_0xa488b7(0x1ea)][_0x277212]));}const _0x6d7f18=_0x4ddef5['isTrunkReachable'](_0x4c9551[_0xa488b7(0x15c)])?getCallerId(_0x4c9551[_0xa488b7(0x15c)]['callerid'],_0x4c9551[_0xa488b7(0x2f2)],_0x4c9551['dialRandomLastDigitCallerIdNumber']>0x0?getCallerIdRandom(_0x4c9551['dialOriginateCallerIdNumber'],_0x4c9551[_0xa488b7(0x271)]):_0x4c9551[_0xa488b7(0x13d)]):getCallerId(_['isNil'](_0x4c9551['TrunkBackup'])?_0x4c9551[_0xa488b7(0x15c)][_0xa488b7(0x191)]:_0x4c9551['TrunkBackup']['callerid'],_0x4c9551[_0xa488b7(0x2f2)],_0x4c9551[_0xa488b7(0x271)]>0x0?getCallerIdRandom(_0x4c9551[_0xa488b7(0x13d)],_0x4c9551['dialRandomLastDigitCallerIdNumber']):_0x4c9551[_0xa488b7(0x13d)]);if(_0x6d7f18){const _0x1f628d=extractCalleridName(_0x6d7f18);_0x146f72[_0xa488b7(0x25d)]=_0x1f628d,_0x4ddef5['actions'][_0xc7d523][_0xa488b7(0x288)]=_0x1f628d;const _0x97f588=extractCalleridNumber(_0x6d7f18);_0x146f72['XMD-ORIGINATECALLERIDNUM']==_0x97f588,_0x4ddef5[_0xa488b7(0x1a2)][_0xc7d523][_0xa488b7(0x2e2)]=_0x97f588;}return ami[_0xa488b7(0x1f9)]({'actionid':_0xc7d523,'action':_0xa488b7(0x1ed),'channel':_0x4ddef5[_0xa488b7(0x2e7)](_0x4c9551['Trunk'])?util[_0xa488b7(0x214)](_0xa488b7(0x22a),_0x4c9551[_0xa488b7(0x15c)][_0xa488b7(0x176)],isNotNull(_0x4c9551[_0xa488b7(0x113)])?_0x4c9551[_0xa488b7(0x113)][_0xa488b7(0x133)]()||'':'',_0x4c9551[_0xa488b7(0x168)]>0x0?_0x15555d[_0xa488b7(0x1ea)][_0xa488b7(0x17b)][_0xa488b7(0x14f)](_0x4c9551[_0xa488b7(0x168)]):_0x15555d[_0xa488b7(0x1ea)][_0xa488b7(0x17b)]):util[_0xa488b7(0x214)](_0xa488b7(0x22a),_[_0xa488b7(0x282)](_0x4c9551['TrunkBackup'])?_0x4c9551[_0xa488b7(0x15c)][_0xa488b7(0x176)]:_0x4c9551[_0xa488b7(0x30f)]['name'],isNotNull(_0x4c9551[_0xa488b7(0x113)])?_0x4c9551[_0xa488b7(0x113)][_0xa488b7(0x133)]()||'':'',_0x4c9551['dialCutDigit']>0x0?_0x15555d[_0xa488b7(0x1ea)][_0xa488b7(0x17b)][_0xa488b7(0x14f)](_0x4c9551[_0xa488b7(0x168)]):_0x15555d[_0xa488b7(0x1ea)][_0xa488b7(0x17b)]),'callerid':_0x6d7f18,'Exten':'xcally-motion-dialer','Context':'from-sip','Priority':'1','variable':_0x146f72,'timeout':(_0x4c9551[_0xa488b7(0x248)]||0x1e)*0x3e8,'async':!![],'channelid':_0xc7d523})[_0xa488b7(0x2d7)](function(_0x5d96fb){return _0x234734(_0x5d96fb);})[_0xa488b7(0x26c)](function(_0x1a8434){const _0x2fd9c3=_0xa488b7;_0x4c9551['outboundOriginateFailureCallsDay']+=0x1;const _0x3ddedb=new History(_0x4ddef5['actions'][_0xc7d523]);logger[_0x2fd9c3(0x195)](util['format'](_0x2fd9c3(0x188),JSON[_0x2fd9c3(0x180)](_0x1a8434))),_0x3ddedb['state']=0xe,_0x3ddedb[_0x2fd9c3(0x1c5)]='OriginateError',_0x3ddedb[_0x2fd9c3(0x129)]=moment()['format'](_0x2fd9c3(0x11b)),_0x3ddedb[_0x2fd9c3(0x1df)]=_0x3ddedb[_0x2fd9c3(0x129)],_0x4ddef5[_0x2fd9c3(0x310)](_0x3ddedb)[_0x2fd9c3(0x26c)](loggerCatch(_0x2fd9c3(0x1d1))),_0x4ddef5[_0x2fd9c3(0x1f3)](_0x3ddedb)[_0x2fd9c3(0x26c)](loggerCatch(_0x2fd9c3(0x1d1)))[_0x2fd9c3(0x14d)](function(){const _0x10f12d=_0x2fd9c3;return delete _0x4ddef5['actions'][_0xc7d523],_0xb9a084(msgResponse(_0x10f12d(0x1ed),_0x10f12d(0x1de),'originate\x20action\x20Error'));});});});},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x192)]=function(_0x449b48){const _0x16bfd5=a1225_0x4cbe77,_0x495eb4=this[_0x16bfd5(0x1a2)][_0x449b48[_0x16bfd5(0x225)]];if(_0x495eb4){delete this['actions'][_0x449b48[_0x16bfd5(0x225)]],_0x495eb4[_0x16bfd5(0x290)]=moment()[_0x16bfd5(0x214)]('YYYY-MM-DD\x20HH:mm:ss');const _0x1aef10=_0x495eb4['type']===_0x16bfd5(0x11a)?this[_0x16bfd5(0x1c3)][_0x495eb4['queue']]:this['voiceQueues'][_0x495eb4['getQueue']()];if(!this['isSuccess'](_0x449b48[_0x16bfd5(0x193)]))return this['updateOriginated'](_0x1aef10),this[_0x16bfd5(0x255)](_0x495eb4,_0x1aef10,_0x449b48)['then'](function(){})[_0x16bfd5(0x26c)](loggerCatch(_0x16bfd5(0x16e)));else this[_0x16bfd5(0x1ce)][_0x449b48[_0x16bfd5(0x2b1)]]=_0x495eb4;}},Dialer['prototype'][a1225_0x4cbe77(0x274)]=function(_0x4247e6,_0x260423,_0x50e23f){const _0x1866b3=a1225_0x4cbe77,_0x3516e1=new History(_0x260423);if(_0x3516e1[_0x1866b3(0x203)]+_0x3516e1[_0x1866b3(0x2b7)]+_0x3516e1['countnoanswerretry']+_0x3516e1['countnosuchnumberretry']+_0x3516e1[_0x1866b3(0x115)]+_0x3516e1['countabandonedretry']+_0x3516e1[_0x1866b3(0x134)]+_0x3516e1[_0x1866b3(0x1ab)]>=_0x50e23f[_0x1866b3(0x138)]-0x1)return!![];switch(_0x4247e6){case 0x3:if(_0x3516e1[_0x1866b3(0x211)]>=_0x50e23f[_0x1866b3(0x267)]-0x1)return!![];else this[_0x1866b3(0x158)]({'active':![],'countnoanswerretry':_0x3516e1[_0x1866b3(0x211)]+=0x1,'scheduledat':moment()[_0x1866b3(0x2a5)](_0x50e23f[_0x1866b3(0x265)],_0x1866b3(0x131))[_0x1866b3(0x214)](_0x1866b3(0x11b)),'ContactId':_0x3516e1[_0x1866b3(0x142)],'ListId':_0x3516e1[_0x1866b3(0x20b)],'VoiceQueueId':_0x3516e1[_0x1866b3(0x2c3)]||undefined,'CampaignId':_0x3516e1[_0x1866b3(0x1bd)]||undefined})[_0x1866b3(0x26c)](loggerCatch(_0x1866b3(0x1fc)));break;case 0x5:if(_0x3516e1['countbusyretry']>=_0x50e23f[_0x1866b3(0x187)]-0x1)return!![];else this[_0x1866b3(0x158)]({'active':![],'countbusyretry':_0x3516e1[_0x1866b3(0x203)]+=0x1,'scheduledat':moment()[_0x1866b3(0x2a5)](_0x50e23f['dialBusyRetryFrequency'],'minutes')[_0x1866b3(0x214)](_0x1866b3(0x11b)),'ContactId':_0x3516e1[_0x1866b3(0x142)],'ListId':_0x3516e1['ListId'],'VoiceQueueId':_0x3516e1[_0x1866b3(0x2c3)]||undefined,'CampaignId':_0x3516e1['CampaignId']||undefined})[_0x1866b3(0x26c)](loggerCatch('[rescheduleContact]\x20[Busy]'));break;case 0x8:if(_0x3516e1[_0x1866b3(0x2b7)]>=_0x50e23f['dialCongestionMaxRetry']-0x1)return!![];else this['rescheduleContact']({'active':![],'countcongestionretry':_0x3516e1['countcongestionretry']+=0x1,'scheduledat':moment()[_0x1866b3(0x2a5)](_0x50e23f[_0x1866b3(0x2e3)],'minutes')[_0x1866b3(0x214)](_0x1866b3(0x11b)),'ContactId':_0x3516e1[_0x1866b3(0x142)],'ListId':_0x3516e1[_0x1866b3(0x20b)],'VoiceQueueId':_0x3516e1[_0x1866b3(0x2c3)]||undefined,'CampaignId':_0x3516e1[_0x1866b3(0x1bd)]||undefined})[_0x1866b3(0x26c)](loggerCatch(_0x1866b3(0x1e4)));break;case 0x0:if(_0x3516e1[_0x1866b3(0x1ae)]>=_0x50e23f[_0x1866b3(0x27e)]-0x1)return!![];else this[_0x1866b3(0x158)]({'active':![],'countnosuchnumberretry':_0x3516e1[_0x1866b3(0x1ae)]+=0x1,'scheduledat':moment()[_0x1866b3(0x2a5)](_0x50e23f[_0x1866b3(0x2f1)],_0x1866b3(0x131))[_0x1866b3(0x214)](_0x1866b3(0x11b)),'ContactId':_0x3516e1[_0x1866b3(0x142)],'ListId':_0x3516e1[_0x1866b3(0x20b)],'VoiceQueueId':_0x3516e1[_0x1866b3(0x2c3)]||undefined,'CampaignId':_0x3516e1[_0x1866b3(0x1bd)]||undefined})['catch'](loggerCatch(_0x1866b3(0x16b)));break;case 0xa:if(_0x3516e1[_0x1866b3(0x115)]>=_0x50e23f[_0x1866b3(0x223)]-0x1)return!![];else this[_0x1866b3(0x158)]({'active':![],'countdropretry':_0x3516e1[_0x1866b3(0x115)]+=0x1,'scheduledat':moment()[_0x1866b3(0x2a5)](_0x50e23f[_0x1866b3(0x14e)],'minutes')[_0x1866b3(0x214)](_0x1866b3(0x11b)),'ContactId':_0x3516e1[_0x1866b3(0x142)],'ListId':_0x3516e1[_0x1866b3(0x20b)],'VoiceQueueId':_0x3516e1[_0x1866b3(0x2c3)]||undefined,'CampaignId':_0x3516e1['CampaignId']||undefined})[_0x1866b3(0x26c)](loggerCatch('[rescheduleContact][Drop]'));break;case 0xb:if(_0x3516e1['countabandonedretry']>=_0x50e23f[_0x1866b3(0x20f)]-0x1)return!![];else this[_0x1866b3(0x158)]({'active':![],'countabandonedretry':_0x3516e1['countabandonedretry']+=0x1,'scheduledat':moment()[_0x1866b3(0x2a5)](_0x50e23f[_0x1866b3(0x121)],'minutes')[_0x1866b3(0x214)]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x3516e1[_0x1866b3(0x142)],'ListId':_0x3516e1[_0x1866b3(0x20b)],'VoiceQueueId':_0x3516e1[_0x1866b3(0x2c3)]||undefined,'CampaignId':_0x3516e1['CampaignId']||undefined})[_0x1866b3(0x26c)](loggerCatch(_0x1866b3(0x26f)));break;case 0x13:if(_0x3516e1[_0x1866b3(0x134)]>=_0x50e23f[_0x1866b3(0x169)]-0x1)return!![];else this[_0x1866b3(0x158)]({'active':![],'countmachineretry':_0x3516e1[_0x1866b3(0x134)]+=0x1,'scheduledat':moment()[_0x1866b3(0x2a5)](_0x50e23f[_0x1866b3(0x2c7)],_0x1866b3(0x131))[_0x1866b3(0x214)](_0x1866b3(0x11b)),'ContactId':_0x3516e1[_0x1866b3(0x142)],'ListId':_0x3516e1['ListId'],'VoiceQueueId':_0x3516e1[_0x1866b3(0x2c3)]||undefined,'CampaignId':_0x3516e1['CampaignId']||undefined})[_0x1866b3(0x26c)](loggerCatch('[rescheduleContact][Machine]'));break;case 0x14:if(_0x3516e1[_0x1866b3(0x1ab)]>=_0x50e23f['dialAgentRejectMaxRetry']-0x1)return!![];else this[_0x1866b3(0x158)]({'active':![],'countagentrejectretry':_0x3516e1[_0x1866b3(0x1ab)]+=0x1,'scheduledat':moment()[_0x1866b3(0x2a5)](_0x50e23f[_0x1866b3(0x2fc)],_0x1866b3(0x131))[_0x1866b3(0x214)](_0x1866b3(0x11b)),'ContactId':_0x3516e1[_0x1866b3(0x142)],'ListId':_0x3516e1['ListId'],'VoiceQueueId':_0x3516e1[_0x1866b3(0x2c3)]||undefined,'CampaignId':_0x3516e1[_0x1866b3(0x1bd)]||undefined})[_0x1866b3(0x26c)](loggerCatch('[rescheduleContact][AgentReject]'));break;default:return!![];}},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x255)]=function(_0x1651a4,_0x24b427,_0x16a503){const _0x327393=this,_0x48f217=new History(_0x1651a4);return new Promise(function(_0x3489a8,_0x398033){const _0x599df5=a1225_0x34e5;if(_['isUndefined'](_0x24b427)&&_0x599df5(0x259)!==typeof _0x24b427)return _0x398033(msgResponse('[callProgressDetecting]',_0x599df5(0x2dc),_0x599df5(0x24c)));if(_[_0x599df5(0x299)](_0x16a503)&&_0x599df5(0x259)!==typeof _0x16a503)return _0x398033(msgResponse(_0x599df5(0x14b),_0x599df5(0x2dc),_0x599df5(0x1db)));switch(_0x16a503[_0x599df5(0x219)]){case'0':_0x24b427[_0x599df5(0x189)]+=0x1,_0x48f217[_0x599df5(0x2b4)]=0x0,_0x48f217[_0x599df5(0x1c5)]='NoSuchNumber',_0x48f217['countnosuchnumberretry']+=0x1,_0x48f217[_0x599df5(0x1b3)]+=0x1,ami[_0x599df5(0x2b2)](_0x599df5(0x17d),ut[_0x599df5(0x24a)](_0x1651a4,_0x599df5(0x1b4))),_0x327393['createHistory'](_0x48f217)['catch'](loggerCatch('[syncAgentComplete][createHistory][0]'));_0x327393['checkRetriveMax'](0x0,_0x1651a4,_0x24b427)&&(_0x48f217[_0x599df5(0x1ae)]>=_0x24b427['dialNoSuchNumberMaxRetry']?_0x327393[_0x599df5(0x13f)](_0x48f217,_0x3489a8,_0x398033,_0x599df5(0x275)):_0x327393[_0x599df5(0x27c)](_0x48f217,_0x3489a8,_0x398033,'reason\x200\x20no\x20such\x20number....'));break;case'3':_0x24b427[_0x599df5(0x15b)]+=0x1,_0x48f217['state']=0x3,_0x48f217[_0x599df5(0x1c5)]='NoAnswer',_0x48f217[_0x599df5(0x211)]+=0x1,_0x48f217[_0x599df5(0x1b3)]+=0x1,ami['emit'](_0x599df5(0x2cb),ut[_0x599df5(0x24a)](_0x1651a4,'noanswer')),_0x327393[_0x599df5(0x310)](_0x48f217)[_0x599df5(0x26c)](loggerCatch('[syncAgentComplete][createHistory][3]'));_0x327393[_0x599df5(0x274)](0x3,_0x1651a4,_0x24b427)&&(_0x48f217[_0x599df5(0x211)]>=_0x24b427[_0x599df5(0x267)]?_0x327393[_0x599df5(0x13f)](_0x48f217,_0x3489a8,_0x398033,_0x599df5(0x185)):_0x327393[_0x599df5(0x27c)](_0x48f217,_0x3489a8,_0x398033,'reason\x203\x20ringing\x20no\x20answer'));break;case'5':_0x24b427[_0x599df5(0x163)]+=0x1,_0x48f217['state']=0x5,_0x48f217['statedesc']=_0x599df5(0x177),_0x48f217[_0x599df5(0x203)]+=0x1,_0x48f217['countglobal']+=0x1,ami[_0x599df5(0x2b2)](_0x599df5(0x298),ut[_0x599df5(0x24a)](_0x1651a4,_0x599df5(0x1cb))),_0x327393['createHistory'](_0x48f217)['catch'](loggerCatch(_0x599df5(0x10f)));_0x327393[_0x599df5(0x274)](0x5,_0x1651a4,_0x24b427)&&(_0x48f217[_0x599df5(0x203)]>=_0x24b427['dialBusyMaxRetry']?_0x327393[_0x599df5(0x13f)](_0x48f217,_0x3489a8,_0x398033,_0x599df5(0x2a3)):_0x327393[_0x599df5(0x27c)](_0x48f217,_0x3489a8,_0x398033,'reason\x205\x20busy'));break;case'8':_0x24b427['outboundCongestionCallsDay']+=0x1,_0x48f217[_0x599df5(0x2b4)]=0x8,_0x48f217[_0x599df5(0x1c5)]=_0x599df5(0x1c9),_0x48f217['countcongestionretry']+=0x1,_0x48f217[_0x599df5(0x1b3)]+=0x1,ami['emit'](_0x599df5(0x2b6),ut[_0x599df5(0x24a)](_0x1651a4,'congestion')),_0x327393[_0x599df5(0x310)](_0x48f217)[_0x599df5(0x26c)](loggerCatch(_0x599df5(0x1d0)));_0x327393[_0x599df5(0x274)](0x8,_0x1651a4,_0x24b427)&&(_0x48f217['countcongestionretry']>=_0x24b427[_0x599df5(0x17a)]?_0x327393[_0x599df5(0x13f)](_0x48f217,_0x3489a8,_0x398033,'reason\x208\x20congestion'):_0x327393[_0x599df5(0x27c)](_0x48f217,_0x3489a8,_0x398033,'reason\x208\x20congestion'));break;case'11':_0x24b427['outboundAbandonedCallsDay']+=0x1,_0x48f217[_0x599df5(0x2b4)]=0xb,_0x48f217['statedesc']='Abandoned',_0x48f217[_0x599df5(0x1e7)]+=0x1,_0x48f217['countglobal']+=0x1,_0x327393['createHistory'](_0x48f217)['catch'](loggerCatch(_0x599df5(0x2b5)));_0x327393[_0x599df5(0x274)](0xb,_0x1651a4,_0x24b427)&&(_0x48f217[_0x599df5(0x1e7)]>=_0x24b427[_0x599df5(0x20f)]?_0x327393[_0x599df5(0x13f)](_0x48f217,_0x3489a8,_0x398033,_0x599df5(0x19a)):_0x327393[_0x599df5(0x27c)](_0x48f217,_0x3489a8,_0x398033,_0x599df5(0x19a)));break;case'20':_0x24b427['outboundRejectCallsDay']+=0x1,_0x48f217[_0x599df5(0x2b4)]=0x14,_0x48f217[_0x599df5(0x1c5)]=_0x599df5(0x132),_0x48f217['countagentrejectretry']+=0x1,_0x48f217[_0x599df5(0x1b3)]+=0x1,ami[_0x599df5(0x2b2)](_0x599df5(0x1b9),ut[_0x599df5(0x24a)](_0x1651a4,_0x599df5(0x107))),_0x327393['createHistory'](_0x48f217)[_0x599df5(0x26c)](loggerCatch('[syncAgentComplete][createHistory][20]'));_0x327393[_0x599df5(0x274)](0x14,_0x1651a4,_0x24b427)&&(_0x48f217[_0x599df5(0x1ab)]>=_0x24b427[_0x599df5(0x1a1)]?_0x327393[_0x599df5(0x13f)](_0x48f217,_0x3489a8,_0x398033,_0x599df5(0x2e1)):_0x327393['stateGlobal'](_0x48f217,_0x3489a8,_0x398033,_0x599df5(0x2e1)));break;default:_0x24b427[_0x599df5(0x1c2)]+=0x1,_0x48f217['state']=0xc,_0x48f217[_0x599df5(0x1c5)]=_0x16a503[_0x599df5(0x219)],_0x327393['createHistory'](_0x48f217)[_0x599df5(0x26c)](loggerCatch(_0x599df5(0x306)));_0x327393['checkRetriveMax'](_0x16a503[_0x599df5(0x219)],_0x1651a4,_0x24b427)&&(_0x48f217['countbusyretry']+_0x48f217[_0x599df5(0x2b7)]+_0x48f217[_0x599df5(0x211)]+_0x48f217[_0x599df5(0x1ae)]+_0x48f217['countdropretry']+_0x48f217[_0x599df5(0x1e7)]+_0x48f217[_0x599df5(0x134)]+_0x48f217[_0x599df5(0x1ab)]>=_0x24b427['dialGlobalMaxRetry']?_0x327393['stateGlobal'](_0x48f217,_0x3489a8,_0x398033,_0x16a503[_0x599df5(0x219)]):_0x327393['createStateFinal'](_0x48f217,_0x3489a8,_0x398033,_0x16a503[_0x599df5(0x219)]));}});},Dialer[a1225_0x4cbe77(0x106)]['stateGlobal']=function(_0xf1f846,_0x57af33,_0x1f68ee,_0x17c62c){const _0xdae31f=a1225_0x4cbe77,_0x2c6af5=new Final(_0xf1f846);_0x2c6af5[_0xdae31f(0x2b4)]=0xf,_0x2c6af5[_0xdae31f(0x1c5)]=_0xdae31f(0x105),this[_0xdae31f(0x13f)](_0x2c6af5,_0x57af33,_0x1f68ee,_0x17c62c);},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x13f)]=function(_0x48a536,_0x547c07,_0x1c4747,_0x205f36){const _0x4ffd25=a1225_0x4cbe77;this[_0x4ffd25(0x1f3)](_0x48a536)[_0x4ffd25(0x2d7)](function(){const _0x3261f1=_0x4ffd25;return _0x547c07(msgResponse(_0x3261f1(0x14b),'Success',_0x205f36));})[_0x4ffd25(0x26c)](function(){const _0x304170=_0x4ffd25;return _0x1c4747(msgResponse(_0x304170(0x281),_0x304170(0x2dc),_0x304170(0x128)));});},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x2f7)]=function(_0x3bec40){const _0xa30dfe=a1225_0x4cbe77,_0x483e26=_0x3bec40[_0xa30dfe(0x2f8)]/0x64,_0x1c3d4b=_0x3bec40[_0xa30dfe(0x30e)]/(_0x3bec40[_0xa30dfe(0x30e)]+_0x3bec40[_0xa30dfe(0x291)]),_0x4b4148=Math[_0xa30dfe(0x260)](_0x3bec40[_0xa30dfe(0x2c5)]*(_0x3bec40[_0xa30dfe(0x199)]/0x64)),_0x2ee089=Math[_0xa30dfe(0x260)](_0x3bec40[_0xa30dfe(0x2c5)]*(_0x3bec40[_0xa30dfe(0x23d)]/0x64)),_0x2a6e84=_0x3bec40['available']+_0x3bec40[_0xa30dfe(0x2df)],_0x1e5a94=Math[_0xa30dfe(0x1ec)](_0x3bec40[_0xa30dfe(0x16d)]*_0x3bec40['erlangAbandonmentRate']*_0x3bec40[_0xa30dfe(0x2bd)]*_0x3bec40[_0xa30dfe(0x144)]);if(_['isUndefined'](_0x3bec40[_0xa30dfe(0x1d7)]))!_[_0xa30dfe(0x299)](_0x3bec40[_0xa30dfe(0x15a)])&&(_0x3bec40[_0xa30dfe(0x15a)]=undefined,loggerPredictive[_0xa30dfe(0x195)](_0xa30dfe(0x183),_0xa30dfe(0x2e8))),!_['isUndefined'](_0x3bec40[_0xa30dfe(0x226)])&&(loggerPredictive[_0xa30dfe(0x195)](_0xa30dfe(0x183),_0xa30dfe(0x23c)),clearInterval(_0x3bec40['handlePredictive']),_0x3bec40[_0xa30dfe(0x226)]=undefined),_0x3bec40[_0xa30dfe(0x1d7)]=moment()[_0xa30dfe(0x214)](_0xa30dfe(0x11b)),loggerPredictive[_0xa30dfe(0x312)](_0x3bec40[_0xa30dfe(0x176)],_0xa30dfe(0x173),_0x3bec40[_0xa30dfe(0x1d7)]),this[_0xa30dfe(0x22f)](_0x3bec40,0x1);else{if(ifInterval(_0x3bec40[_0xa30dfe(0x126)],_0x3bec40[_0xa30dfe(0x1d7)]))this['handlePower'](_0x3bec40,0x1),loggerPredictiveCalls[_0xa30dfe(0x312)](_0xa30dfe(0x1b6),_0x3bec40['startProgressive'],_0x3bec40['name']),_0x3bec40[_0xa30dfe(0x16d)]=0x0,_0x3bec40[_0xa30dfe(0x289)]=0x0;else{if(_0x483e26<_0x1c3d4b&&_0x3bec40[_0xa30dfe(0x264)]===_0xa30dfe(0x30c))freeVariablesPredictive(_0x3bec40),loggerPredictive['info'](_0xa30dfe(0x1b2),_0xa30dfe(0x175),_0x1c3d4b,_0xa30dfe(0x1d7),_0x3bec40[_0xa30dfe(0x176)]);else{if(_0x1e5a94<_0x3bec40[_0xa30dfe(0x289)]&&_0x3bec40[_0xa30dfe(0x264)]==='dropRate')freeVariablesPredictive(_0x3bec40),loggerPredictive['info'](_0xa30dfe(0x204),_0xa30dfe(0x23f),_0x1e5a94,_0xa30dfe(0x27d),_0x3bec40['predictiveIntervalErlangCallsDroppedCalls'],_0xa30dfe(0x1d7),_0x3bec40['name']);else{if(!ifInterval(_0x3bec40[_0xa30dfe(0x126)],_0x3bec40[_0xa30dfe(0x1d7)])&&_[_0xa30dfe(0x299)](_0x3bec40[_0xa30dfe(0x15a)])&&!_[_0xa30dfe(0x299)](_0x3bec40[_0xa30dfe(0x1d7)]))_0x3bec40['startPredictive']=moment()[_0xa30dfe(0x214)](_0xa30dfe(0x11b)),loggerPredictive[_0xa30dfe(0x312)](_0x3bec40[_0xa30dfe(0x176)],_0xa30dfe(0x146),_0x3bec40[_0xa30dfe(0x15a)]),this[_0xa30dfe(0x2ef)](_0x3bec40[_0xa30dfe(0x126)])[_0xa30dfe(0x2d7)](this['getDataPredictive'](_0x3bec40))[_0xa30dfe(0x2d7)](mergeDataErlangB(_0x3bec40))[_0xa30dfe(0x2d7)](this[_0xa30dfe(0x25a)](_0x3bec40))[_0xa30dfe(0x26c)](loggerCatchPredictive('Predictive\x20after\x20first\x20interval',_0x3bec40));else{if(!ifInterval(_0x3bec40[_0xa30dfe(0x126)],_0x3bec40[_0xa30dfe(0x15a)]))_0x3bec40[_0xa30dfe(0x289)]=0x0,_0x3bec40[_0xa30dfe(0x15a)]=moment()[_0xa30dfe(0x214)](_0xa30dfe(0x11b)),loggerPredictive[_0xa30dfe(0x312)](_0x3bec40[_0xa30dfe(0x176)],'recalculate\x20predictive\x20at',_0x3bec40[_0xa30dfe(0x15a)]),clearInterval(_0x3bec40[_0xa30dfe(0x226)]),_0x3bec40[_0xa30dfe(0x226)]=undefined,this[_0xa30dfe(0x2ef)](_0x3bec40[_0xa30dfe(0x126)])[_0xa30dfe(0x2d7)](this[_0xa30dfe(0x2b8)](_0x3bec40))['then'](mergeDataErlangB(_0x3bec40))['then'](this[_0xa30dfe(0x25a)](_0x3bec40))[_0xa30dfe(0x26c)](loggerCatchPredictive(_0xa30dfe(0x22e),_0x3bec40));else{if(_0x3bec40[_0xa30dfe(0x2c5)]&&_0x2a6e84<_0x3bec40[_0xa30dfe(0x2c5)]-_0x2ee089)freeVariablesPredictive(_0x3bec40),loggerPredictive[_0xa30dfe(0x312)](_0x3bec40['name'],_0xa30dfe(0x27b),_0x2a6e84,_0xa30dfe(0x272),_0x3bec40[_0xa30dfe(0x2c5)],'-',_0x2ee089,'=',_0x3bec40[_0xa30dfe(0x2c5)]-_0x2ee089,')');else _0x3bec40[_0xa30dfe(0x2c5)]&&_0x2a6e84>_0x3bec40[_0xa30dfe(0x2c5)]+_0x4b4148&&(freeVariablesPredictive(_0x3bec40),loggerPredictive['info'](_0x3bec40['name'],_0xa30dfe(0x27b),_0x2a6e84,_0xa30dfe(0x1d6),_0x3bec40[_0xa30dfe(0x2c5)],'+',_0x4b4148,'=',_0x3bec40[_0xa30dfe(0x2c5)]+_0x4b4148,')'));}}}}}}},Dialer['prototype'][a1225_0x4cbe77(0x2b8)]=function(_0x10c55b){const _0x306edd=this;return function(_0x582e4a){return new Promise(function(_0x435437,_0x4603e6){const _0x346608=a1225_0x34e5;_[_0x346608(0x1a0)](_0x10c55b,_0x582e4a[0x0]);if(checkGetDataPredictive(_0x582e4a[0x0])){const _0x29a228=_0x10c55b['talking']+_0x10c55b['available'];_0x10c55b[_0x346608(0x2c5)]=_0x29a228;const _0x218f47=_0x29a228,_0x5b5315=_0x10c55b[_0x346608(0x126)]*0x3c,_0x1b8155=_0x582e4a[0x0][_0x346608(0x2e0)]+_0x582e4a[0x0][_0x346608(0x257)],_0x170d61=(_0x582e4a[0x0]['predictiveIntervalAnsweredCalls']+_0x582e4a[0x0][_0x346608(0x2cf)]+_0x582e4a[0x0][_0x346608(0x162)])/_0x582e4a[0x0][_0x346608(0x11d)];_0x10c55b['predictiveIntervalHitRate']=_0x170d61>0x0?_0x170d61:0x1;switch(_0x10c55b[_0x346608(0x264)]){case _0x346608(0x30c):{const _0x3aa434=_0x10c55b['dialPredictiveOptimizationPercentage']/0x64;return _0x306edd[_0x346608(0x244)](_0x218f47,_0x5b5315,_0x1b8155,_0x170d61,_0x3aa434)[_0x346608(0x2d7)](function(_0x4d0f77){return _0x435437(_0x4d0f77);});}case _0x346608(0x182):{const _0x16a985=_0x10c55b['dialPredictiveOptimizationPercentage']/0x64;return _0x306edd[_0x346608(0x2d2)](_0x218f47,_0x5b5315,_0x1b8155,_0x170d61,_0x16a985)[_0x346608(0x2d7)](function(_0x12fcf4){return _0x435437(_0x12fcf4);});}default:return _0x4603e6(msgResponse(_0x346608(0x18d),_0x346608(0x2dc),_0x346608(0x1b1)));}}else return _0x4603e6(msgResponse(_0x346608(0x18d),_0x346608(0x2dc),_0x346608(0x1fd)));});};},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x208)]=function(_0x3745a5){const _0x429a9f=this;return function(_0x5b06c8){return new Promise(function(_0x2e708b,_0xa4e52b){const _0x4e0b33=a1225_0x34e5;_[_0x4e0b33(0x1a0)](_0x3745a5,_0x5b06c8[0x0]);if(checkGetDataPredictive(_0x5b06c8[0x0])){loggerPredictive['info'](JSON[_0x4e0b33(0x180)](_0x5b06c8[0x0]));if(_0x3745a5[_0x4e0b33(0x264)]===_0x4e0b33(0x30c))return _0x429a9f['getVoiceQueueRtPauses'](_0x3745a5['id'])[_0x4e0b33(0x2d7)](function(_0xd29d72){const _0x174c29=_0x4e0b33,_0x10a471=_0x3745a5[_0x174c29(0x273)]-_0xd29d72[0x0][_0x174c29(0x1e5)],_0x5379ad=_0x3745a5[_0x174c29(0x126)]*0x3c,_0x3b3b77=_0x5b06c8[0x0][_0x174c29(0x2e0)]+_0x5b06c8[0x0][_0x174c29(0x257)],_0x2925ea=(_0x5b06c8[0x0][_0x174c29(0x108)]+_0x5b06c8[0x0][_0x174c29(0x2cf)]+_0x5b06c8[0x0][_0x174c29(0x162)])/_0x5b06c8[0x0][_0x174c29(0x11d)],_0x30a371=_0x3745a5[_0x174c29(0x2f8)]/0x64;return _0x3745a5[_0x174c29(0x1a8)]=_0xd29d72[0x0][_0x174c29(0x1e5)]||0x0,_0x3745a5[_0x174c29(0x2bd)]=_0x2925ea>0x0?_0x2925ea:0x1,_0x429a9f[_0x174c29(0x244)](_0x10a471,_0x5379ad,_0x3b3b77,_0x2925ea,_0x30a371);})[_0x4e0b33(0x2d7)](function(_0x44ae1b){return _0x2e708b(_0x44ae1b);})[_0x4e0b33(0x26c)](function(_0x18b87a){const _0x3bfe59=_0x4e0b33;return _0xa4e52b(msgResponse('[CatchErlangB]',_0x3bfe59(0x2dc),JSON[_0x3bfe59(0x180)](_0x18b87a)));});if(_0x3745a5['dialPredictiveOptimization']===_0x4e0b33(0x182))return _0x429a9f[_0x4e0b33(0x253)](_0x3745a5['id'])[_0x4e0b33(0x2d7)](function(_0x13f0dc){const _0x46c17a=_0x4e0b33,_0x2d6407=_0x3745a5[_0x46c17a(0x273)]-_0x13f0dc[0x0]['outboundQueuePauses'],_0xec3bef=_0x3745a5['dialPredictiveInterval']*0x3c,_0x44e760=_0x5b06c8[0x0][_0x46c17a(0x2e0)]+_0x5b06c8[0x0][_0x46c17a(0x257)],_0xf3095=(_0x5b06c8[0x0]['predictiveIntervalAnsweredCalls']+_0x5b06c8[0x0]['predictiveIntervalDroppedCallsTimeout']+_0x5b06c8[0x0][_0x46c17a(0x162)])/_0x5b06c8[0x0]['predictiveIntervalTotalCalls'],_0x58267c=_0x3745a5[_0x46c17a(0x2f8)]/0x64;return _0x3745a5[_0x46c17a(0x1a8)]=_0x13f0dc[0x0][_0x46c17a(0x1e5)]||0x0,_0x3745a5[_0x46c17a(0x2bd)]=_0xf3095>0x0?_0xf3095:0x1,_0x429a9f[_0x46c17a(0x2d2)](_0x2d6407,_0xec3bef,_0x44e760,_0xf3095,_0x58267c);})[_0x4e0b33(0x2d7)](function(_0x195626){return _0x2e708b(_0x195626);})[_0x4e0b33(0x26c)](function(_0x52bb24){const _0x35f1b2=_0x4e0b33;return _0xa4e52b(msgResponse(_0x35f1b2(0x26d),'Failure',JSON[_0x35f1b2(0x180)](_0x52bb24)));});}else return _0xa4e52b(msgResponse(_0x4e0b33(0x18d),_0x4e0b33(0x2dc),_0x4e0b33(0x1fd)));});};},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x25a)]=function(_0x91b190){const _0x30f3b0=this;return function(){const _0x442772=a1225_0x34e5;let _0x8f13dc=0x0,_0x36e5a3=Math[_0x442772(0x1ec)](_0x91b190['erlangCallToSecond']*0x3e8);_0x36e5a3>0x0?(_0x36e5a3=_0x36e5a3<0x64?0x64:_0x36e5a3,loggerPredictive[_0x442772(0x312)](_0x91b190[_0x442772(0x176)],_0x442772(0x11f),_0x36e5a3,_0x442772(0x308)),_0x91b190[_0x442772(0x226)]=setInterval(function(){const _0x784401=_0x442772;_0x30f3b0[_0x784401(0x226)](_0x91b190),loggerPredictiveCalls[_0x784401(0x312)](_0x784401(0x278),_0x8f13dc+=0x1);},_0x36e5a3)):loggerPredictive[_0x442772(0x312)](_0x91b190[_0x442772(0x176)],'fail\x20to\x20scheduled\x20calls');};},Dialer[a1225_0x4cbe77(0x106)]['checkContactBlack']=function(_0x451177,_0x1b6639){const _0x4dbcf0=this;return function(_0x2b8f05){const _0x4a69f9=a1225_0x34e5;if(_['isEmpty'](_0x2b8f05)){if(_['isNil'](_0x1b6639[_0x4a69f9(0x19d)])||!_0x1b6639[_0x4a69f9(0x210)]){if(_0x451177[_0x4a69f9(0x209)]===_0x4a69f9(0x2fa)){_0x451177[_0x4a69f9(0x1ad)]=_['isUndefined'](_0x451177['queueStatusComplete'])?!![]:_0x451177[_0x4a69f9(0x1ad)];const _0x26dd89=uuid['v4']();_0x4dbcf0['actions'][_0x26dd89]=new Action(_0x451177,_0x1b6639,_0x26dd89),loggerBooked[_0x4a69f9(0x312)](_0x4a69f9(0x181),_0x26dd89,'queueStatusComplete:\x20',JSON[_0x4a69f9(0x180)](_0x451177['queueStatusComplete']),_0x4a69f9(0x165),_0x451177[_0x4a69f9(0x176)]),_0x451177[_0x4a69f9(0x1ad)]?(_0x451177[_0x4a69f9(0x1ad)]=![],_0x4dbcf0[_0x4a69f9(0x1a6)][_0x4dbcf0[_0x4a69f9(0x1a2)][_0x26dd89][_0x4a69f9(0x300)]]=[],ami['Action']({'actionid':_0x26dd89,'action':_0x4a69f9(0x141),'queue':_0x451177[_0x4a69f9(0x176)]})[_0x4a69f9(0x26c)](function(){const _0x5c315e=_0x4a69f9;_0x4dbcf0[_0x5c315e(0x286)](_0x451177),_0x4dbcf0['rescheduleContact']({'active':![],'ContactId':_0x4dbcf0[_0x5c315e(0x1a2)][_0x26dd89][_0x5c315e(0x142)],'ListId':_0x4dbcf0[_0x5c315e(0x1a2)][_0x26dd89][_0x5c315e(0x20b)],'VoiceQueueId':_0x4dbcf0[_0x5c315e(0x1a2)][_0x26dd89][_0x5c315e(0x2c3)]||undefined,'CampaignId':_0x4dbcf0['actions'][_0x26dd89][_0x5c315e(0x1bd)]||undefined})[_0x5c315e(0x26c)](loggerCatch(_0x5c315e(0x28a))),delete _0x4dbcf0['actions'][_0x26dd89];})):(loggerBooked[_0x4a69f9(0x312)](_0x4a69f9(0x287),JSON[_0x4a69f9(0x180)](_0x451177[_0x4a69f9(0x1ad)]),_0x4a69f9(0x165),_0x451177[_0x4a69f9(0x176)]),_0x4dbcf0['updateOriginated'](_0x451177),_0x4dbcf0['rescheduleContact']({'active':![],'ContactId':_0x4dbcf0[_0x4a69f9(0x1a2)][_0x26dd89][_0x4a69f9(0x142)],'ListId':_0x4dbcf0['actions'][_0x26dd89][_0x4a69f9(0x20b)],'VoiceQueueId':_0x4dbcf0[_0x4a69f9(0x1a2)][_0x26dd89][_0x4a69f9(0x2c3)]||undefined,'CampaignId':_0x4dbcf0[_0x4a69f9(0x1a2)][_0x26dd89][_0x4a69f9(0x1bd)]||undefined})['catch'](loggerCatch(_0x4a69f9(0x28a))),delete _0x4dbcf0['actions'][_0x26dd89]);}else return _0x4dbcf0[_0x4a69f9(0x124)](_0x451177,_0x1b6639);}else getDiff(_0x1b6639[_0x4a69f9(0x1c6)])<_0x451177[_0x4a69f9(0x243)]*0x3c?_0x1b6639[_0x4a69f9(0x228)]&&!_0x1b6639[_0x4a69f9(0x228)][_0x4a69f9(0x301)]?_0x4dbcf0[_0x4a69f9(0x28c)][_0x4a69f9(0x26e)](_0x1b6639['id'])[_0x4a69f9(0x14d)](function(){const _0x5804c1=_0x4a69f9;_0x4dbcf0[_0x5804c1(0x286)](_0x451177);}):_0x4dbcf0[_0x4a69f9(0x18b)]({'active':![]},_0x1b6639['id'],0x1)[_0x4a69f9(0x14d)](function(){const _0x23f31b=_0x4a69f9;console['log'](_0x23f31b(0x172)),_0x4dbcf0[_0x23f31b(0x286)](_0x451177);}):(_0x451177[_0x4a69f9(0x1ac)]+=0x1,_0x4dbcf0['updateOriginated'](_0x451177),_0x451177[_0x4a69f9(0x237)]?(_0x4dbcf0[_0x4a69f9(0x158)]({'active':![],'recallme':![],'UserId':null,'ContactId':_0x1b6639[_0x4a69f9(0x142)],'ListId':_0x1b6639['ListId'],'VoiceQueueId':_0x1b6639[_0x4a69f9(0x2c3)]||undefined,'CampaignId':_0x1b6639[_0x4a69f9(0x1bd)]||undefined})['catch'](loggerCatch(_0x4a69f9(0x2d4))),_0x4dbcf0[_0x4a69f9(0x310)](createObjHistory(_0x451177,_0x1b6639,_0x4a69f9(0x23b),0x17,_0x4a69f9(0x1cc)))[_0x4a69f9(0x26c)](loggerCatch(_0x4a69f9(0x1c7)))):_0x4dbcf0[_0x4a69f9(0x1e6)](createObjHistory(_0x451177,_0x1b6639,_0x4a69f9(0x1c1),0x16,_0x4a69f9(0x1d2)),_0x4a69f9(0x1a5),'[Originate][HistoryRecallClose]'));}else{_0x451177[_0x4a69f9(0x2a9)]+=0x1,_0x4dbcf0[_0x4a69f9(0x1e6)](createObjHistory(_0x451177,_0x1b6639,_0x4a69f9(0x1cf),0xd,'Blacklist'),_0x4a69f9(0x13c),_0x4a69f9(0x10d));throw _0x4a69f9(0x127);}};},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x241)]=function(_0x1ff35b){const _0x18b668=a1225_0x4cbe77,_0x53e507=this;let _0x1ed58e=_0x1ff35b[_0x18b668(0x307)]-_0x1ff35b[_0x18b668(0x24b)]-_0x1ff35b[_0x18b668(0x18a)];emitCampaignSummary(_0x1ff35b),_0x1ed58e>0x0&&(_0x1ed58e>this[_0x18b668(0x25f)]&&(_0x1ed58e=this[_0x18b668(0x25f)]),_0x1ff35b['temp']+=_0x1ed58e,this['getContactDialerIvr'](_0x1ff35b['id'],_0x1ed58e,_0x1ff35b[_0x18b668(0x1c0)])['then'](function(_0x1598a9){const _0xb0d71e=_0x18b668;_0x1ff35b[_0xb0d71e(0x18a)]-=_0x1ed58e,_0x1ff35b[_0xb0d71e(0x18a)]=_0x1ff35b[_0xb0d71e(0x18a)]>0x0?_0x1ff35b[_0xb0d71e(0x18a)]:0x0;if(!checkContactEmpty(_0x1598a9))_0x1ff35b[_0xb0d71e(0x1d5)]=_0xb0d71e(0x111),logger[_0xb0d71e(0x312)](_0xb0d71e(0x170)+_0x1ff35b[_0xb0d71e(0x176)]);else{_0x1ff35b[_0xb0d71e(0x24b)]+=_0x1598a9[_0xb0d71e(0xff)],_0x1ff35b['message']='RUNNING';for(let _0x3b712d=0x0;_0x3b712d<_0x1598a9[_0xb0d71e(0xff)];_0x3b712d+=0x1){_0x1ff35b['ivrTotalCallsDays']+=0x1,_['isNil'](_0x1598a9[_0x3b712d])||_[_0xb0d71e(0x282)](_0x1598a9[_0x3b712d][_0xb0d71e(0x1ea)])||_['isNil'](_0x1598a9[_0x3b712d][_0xb0d71e(0x1ea)][_0xb0d71e(0x17b)])?_0x53e507[_0xb0d71e(0x100)](_0xb0d71e(0x280),_0x1ff35b,_0x1598a9[_0x3b712d]):_0x53e507[_0xb0d71e(0x1f8)](_['pick'](_0x1598a9[_0x3b712d],[_0xb0d71e(0x1bd),_0xb0d71e(0x1c8)]))[_0xb0d71e(0x2d7)](_0x53e507[_0xb0d71e(0x205)](_0x1ff35b,_0x1598a9[_0x3b712d]))[_0xb0d71e(0x26c)](_0x53e507[_0xb0d71e(0x285)](_0xb0d71e(0x17e),_0x1ff35b));}}})[_0x18b668(0x26c)](loggerGetContactDialer('[getContactCampaign2]',_0x1ff35b,_0x1ed58e)));},Dialer[a1225_0x4cbe77(0x106)]['handlePower']=function(_0x30fec9,_0x4489f2){const _0x52b67f=a1225_0x4cbe77,_0x3d543b=this,_0x3e5d82=[];let _0x103e17=_0x4489f2>=0x1?_0x4489f2:0x1;_0x30fec9[_0x52b67f(0x209)]==='booked'&&(_0x103e17=0x1);let _0x159978=Math[_0x52b67f(0x1ec)](_0x30fec9[_0x52b67f(0x14c)]*_0x103e17)-_0x30fec9[_0x52b67f(0x24b)]-_0x30fec9['temp'];emitVoiceQueueSummary(_0x30fec9);if(_0x30fec9[_0x52b67f(0x160)]>0x0){const _0x36a1f6=_0x30fec9[_0x52b67f(0x160)]-_0x30fec9[_0x52b67f(0x24b)]-_0x30fec9[_0x52b67f(0x2df)]-_0x30fec9[_0x52b67f(0x18a)]-_0x30fec9[_0x52b67f(0x2bb)];_0x159978>_0x36a1f6&&(_0x159978=_0x36a1f6);}if(_0x159978>0x0){_0x30fec9['dialMethod']===_0x52b67f(0x2fa)&&(_0x159978=0x1);_0x159978>this['maxNumberOriginate']&&(_0x159978=this['maxNumberOriginate']);_0x30fec9[_0x52b67f(0x18a)]+=_0x159978;for(const _0xaac3fd in this[_0x52b67f(0x197)]){typeof this['agents'][_0xaac3fd]!==_0x52b67f(0x263)&&(this[_0x52b67f(0x197)][_0xaac3fd][_0x52b67f(0x2b4)]==='not_inuse'&&this[_0x52b67f(0x197)][_0xaac3fd][_0x52b67f(0x15e)]===_0x52b67f(0x22b)&&_0x3e5d82[_0x52b67f(0x10e)](this[_0x52b67f(0x197)][_0xaac3fd]['id']));}this['getContactDialer'](_0x30fec9['id'],_0x3e5d82,_0x159978,_0x30fec9[_0x52b67f(0x1c0)])[_0x52b67f(0x2d7)](function(_0x21bba1){const _0x305efb=_0x52b67f;_0x30fec9[_0x305efb(0x18a)]-=_0x159978,_0x30fec9[_0x305efb(0x18a)]=_0x30fec9[_0x305efb(0x18a)]>0x0?_0x30fec9[_0x305efb(0x18a)]:0x0;if(!checkContactEmpty(_0x21bba1))_0x3d543b[_0x305efb(0x28d)](_0x30fec9)[_0x305efb(0x2d7)](sendMessageReschedule(_0x30fec9))['catch'](loggerCatch(_0x305efb(0x268)));else{_0x30fec9['originated']+=_0x21bba1[_0x305efb(0xff)],_0x30fec9['message']=_0x30fec9[_0x305efb(0x209)]==='booked'?_0x305efb(0x2de):_0x305efb(0x279);for(let _0x32b05b=0x0;_0x32b05b<_0x21bba1[_0x305efb(0xff)];_0x32b05b+=0x1){_[_0x305efb(0x282)](_0x21bba1[_0x32b05b])||_['isNil'](_0x21bba1[_0x32b05b][_0x305efb(0x1ea)])||_[_0x305efb(0x282)](_0x21bba1[_0x32b05b][_0x305efb(0x1ea)][_0x305efb(0x17b)])?_0x3d543b[_0x305efb(0x100)](_0x305efb(0x280),_0x30fec9,_0x21bba1[_0x32b05b]):_0x3d543b[_0x305efb(0x112)](_[_0x305efb(0x139)](_0x21bba1[_0x32b05b],[_0x305efb(0x2c3),'Contact.phone']))['then'](_0x3d543b[_0x305efb(0x205)](_0x30fec9,_0x21bba1[_0x32b05b]))[_0x305efb(0x26c)](_0x3d543b[_0x305efb(0x285)](_0x305efb(0x280),_0x30fec9));}}})['catch'](loggerGetContactDialer(_0x52b67f(0x1a7),_0x30fec9,_0x159978));}},Dialer['prototype']['handlePredictive']=function(_0x10d3ae){const _0x39cd1c=a1225_0x4cbe77;if(_0x10d3ae[_0x39cd1c(0x160)]>0x0){const _0x1c58a3=_0x10d3ae[_0x39cd1c(0x160)]-_0x10d3ae[_0x39cd1c(0x24b)]-_0x10d3ae['talking'];_0x1c58a3>0x0?this['tryOriginatePredictive'](_0x10d3ae):loggerPredictiveCalls['info'](_0x39cd1c(0x12c));}else this[_0x39cd1c(0x2fb)](_0x10d3ae);},Dialer[a1225_0x4cbe77(0x106)]['tryOriginatePredictive']=function(_0x72b13b){const _0x3405a7=a1225_0x4cbe77,_0x5ade78=this,_0x1f7c9b=[];_0x72b13b[_0x3405a7(0x24b)]+=0x1;for(const _0x5eefb6 in this[_0x3405a7(0x197)]){typeof this[_0x3405a7(0x197)][_0x5eefb6]!==_0x3405a7(0x263)&&(this['agents'][_0x5eefb6][_0x3405a7(0x2b4)]===_0x3405a7(0x1dc)&&this['agents'][_0x5eefb6][_0x3405a7(0x15e)]===_0x3405a7(0x22b)&&_0x1f7c9b['push'](this[_0x3405a7(0x197)][_0x5eefb6]['id']));}this[_0x3405a7(0x2f9)](_0x72b13b['id'],_0x1f7c9b,0x1,_0x72b13b[_0x3405a7(0x1c0)])[_0x3405a7(0x2d7)](function(_0x17b560){const _0xfddfd2=_0x3405a7;!checkContactEmpty(_0x17b560)?(checkContactLowerLimitOriginate(_0x72b13b,0x1,0x0),_0x5ade78[_0xfddfd2(0x28d)](_0x72b13b)[_0xfddfd2(0x2d7)](sendMessageReschedule(_0x72b13b))[_0xfddfd2(0x26c)](loggerCatch('[countReScheduled]\x20'))):(_0x72b13b[_0xfddfd2(0x1d5)]=_0xfddfd2(0x279),_[_0xfddfd2(0x282)](_0x17b560[0x0])||_[_0xfddfd2(0x282)](_0x17b560[0x0][_0xfddfd2(0x1ea)])||_[_0xfddfd2(0x282)](_0x17b560[0x0]['Contact'][_0xfddfd2(0x17b)])?_0x5ade78[_0xfddfd2(0x100)](_0xfddfd2(0x280),_0x72b13b,_0x17b560[0x0]):_0x5ade78[_0xfddfd2(0x112)](_[_0xfddfd2(0x139)](_0x17b560[0x0],[_0xfddfd2(0x2c3),_0xfddfd2(0x1c8)]))[_0xfddfd2(0x2d7)](_0x5ade78['checkContactBlack'](_0x72b13b,_0x17b560[0x0]))[_0xfddfd2(0x26c)](_0x5ade78['loggerHandler'](_0xfddfd2(0xfc),_0x72b13b)));})[_0x3405a7(0x26c)](loggerGetContactDialer(_0x3405a7(0x21b),_0x72b13b,0x1)),emitVoiceQueueSummary(_0x72b13b);},Dialer['prototype'][a1225_0x4cbe77(0x244)]=function(_0x4b4d72,_0x294b2a,_0x2570ae,_0x425b1a,_0x4b2704,_0x428a90){const _0x1186ca=a1225_0x4cbe77;return loggerPredictive[_0x1186ca(0x312)](_0x1186ca(0xfa)),loggerPredictive[_0x1186ca(0x312)](_0x1186ca(0x2c1),_0x4b4d72),loggerPredictive[_0x1186ca(0x312)](_0x1186ca(0x1f4),_0x294b2a),loggerPredictive[_0x1186ca(0x312)](_0x1186ca(0x2a0),_0x2570ae),loggerPredictive[_0x1186ca(0x312)](_0x1186ca(0x200),_0x425b1a),loggerPredictive[_0x1186ca(0x312)](_0x1186ca(0x1fb),_0x4b2704),loggerPredictive[_0x1186ca(0x312)](_0x1186ca(0x20c)),new Promise(function(_0x19b76a,_0x507193){const _0x438e28=_0x1186ca;if(_0x4b4d72<=0x0||isNaN(_0x4b4d72))return _0x507193(msgResponse(_0x438e28(0x190),_0x438e28(0x1de),_0x438e28(0x295)+_0x4b4d72));if(_0x2570ae<=0x0||isNaN(_0x2570ae))return _0x507193(msgResponse(_0x438e28(0x190),_0x438e28(0x1de),_0x438e28(0x240)+_0x2570ae));if(_0x425b1a<=0x0||isNaN(_0x425b1a))return _0x507193(msgResponse(_0x438e28(0x190),_0x438e28(0x1de),_0x438e28(0x29f)+_0x425b1a));if(_0x294b2a<=0x0||isNaN(_0x294b2a))return _0x507193(msgResponse(_0x438e28(0x190),_0x438e28(0x1de),_0x438e28(0x2fd)+_0x294b2a));if(_0x4b2704<=0x0||isNaN(_0x4b2704))return _0x507193(msgResponse('[abandonmentRate]','Error','Amax\x20=\x20'+_0x4b2704));_0x428a90=_0x428a90||0x0;const _0x1d6be5=0x1/_0x2570ae;let _0x5815ca=0x0,_0x49f65f=0x0,_0x121aed=0x0,_0x48d146=0x0,_0x5c1d71=0x0;for(_0x5c1d71=0x0;_0x121aed<_0x4b2704;_0x5c1d71+=0x1){_0x49f65f=_0x5c1d71/_0x294b2a,_0x5815ca=(_0x425b1a*_0x49f65f+_0x428a90)/_0x1d6be5,_0x121aed=erlangb(_0x5815ca,_0x4b4d72),_0x48d146=_0x5815ca/_0x4b4d72*(0x1-erlangb(_0x5815ca,_0x4b4d72));}return _0x19b76a({'erlangCalls':_0x5c1d71,'erlangCallToSecond':_0x294b2a/_0x5c1d71,'erlangAbandonmentRate':_0x121aed,'erlangBusyFactor':_0x48d146});});},Dialer[a1225_0x4cbe77(0x106)][a1225_0x4cbe77(0x2d2)]=function(_0x408cd8,_0x789c63,_0x1a029e,_0x3d5147,_0x4bbee6,_0x26c1b2){const _0x123318=a1225_0x4cbe77;return loggerPredictive['info'](_0x123318(0x1e8)),loggerPredictive[_0x123318(0x312)](_0x123318(0x2c1),_0x408cd8),loggerPredictive[_0x123318(0x312)]('Interval:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x789c63),loggerPredictive[_0x123318(0x312)](_0x123318(0x2a0),_0x1a029e),loggerPredictive['info'](_0x123318(0x200),_0x3d5147),loggerPredictive['info'](_0x123318(0x151),_0x4bbee6),loggerPredictive[_0x123318(0x312)]('---------------------------'),new Promise(function(_0x2fd653,_0x2d9418){const _0x33905e=_0x123318;if(_0x408cd8<=0x0||isNaN(_0x408cd8))return _0x2d9418(msgResponse(_0x33905e(0x251),_0x33905e(0x1de),'m\x20=\x20'+_0x408cd8));if(_0x1a029e<=0x0||isNaN(_0x1a029e))return _0x2d9418(msgResponse('[busyFactor]',_0x33905e(0x1de),_0x33905e(0x240)+_0x1a029e));if(_0x3d5147<=0x0||isNaN(_0x3d5147))return _0x2d9418(msgResponse('[busyFactor]',_0x33905e(0x1de),'p\x20=\x20'+_0x3d5147));if(_0x789c63<=0x0||isNaN(_0x789c63))return _0x2d9418(msgResponse(_0x33905e(0x251),_0x33905e(0x1de),_0x33905e(0x2fd)+_0x789c63));if(_0x4bbee6<=0x0||isNaN(_0x4bbee6))return _0x2d9418(msgResponse(_0x33905e(0x251),_0x33905e(0x1de),_0x33905e(0x292)+_0x4bbee6));_0x26c1b2=_0x26c1b2||0x0;const _0x6de169=0x1/_0x1a029e;let _0x37db17=0x0,_0x2f40de=0x0,_0x594c8e=0x0,_0x1073a6=0x0,_0x5a652c=0x0;for(_0x5a652c=0x0;_0x1073a6<_0x4bbee6;_0x5a652c+=0x1){_0x2f40de=_0x5a652c/_0x789c63,_0x37db17=(_0x3d5147*_0x2f40de+_0x26c1b2)/_0x6de169,_0x594c8e=erlangb(_0x37db17,_0x408cd8),_0x1073a6=_0x37db17/_0x408cd8*(0x1-erlangb(_0x37db17,_0x408cd8));}return _0x2fd653({'erlangCalls':_0x5a652c,'erlangCallToSecond':_0x789c63/_0x5a652c,'erlangAbandonmentRate':_0x594c8e,'erlangBusyFactor':_0x1073a6});});},module[a1225_0x4cbe77(0x109)]=Dialer; \ No newline at end of file +const a1225_0x2520=['checkRetriveMax','stateGlobal','scheduledat','../ami','custom:agentcongestion','checkIsBlackListIvr','unlockContact','Global','interval','Machine','is\x20not\x20active','VoiceQueueId','dialPowerLevel','\x5cw{0,','ifTime','Queue','predictiveIntervalErlangCalls','[originate][error]','dialQueueOptions','Umin:\x20\x20\x20\x20\x20\x20\x20\x20\x20\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','MACHINE','not_inuse','History\x20information\x20are\x20empty','agiafterat','amd','membername','channels','trim','m\x20=\x20','[syncAgentComplete][createHistory][10]','sendMessageOneNotActive','countnoanswerretry','Contact.phone','syncQueueStatusComplete','launchHandleIvr','No\x20such\x20channel','available','[startMethodPredictive][StartProgressive]','maxNumberOriginate','Total\x20Calls\x20are\x20not\x20enough\x20for\x20predictive','----\x20Agent\x20Busy\x20Factor\x20----','Umin\x20=\x20','[unlockOriginate][syncQueueStatusComplete]','\x22%s,%s%s,,,%s\x22','format','queuestatuscomplete','random','syncAgentConnect','XMD-AMDAFTERGREETINGSILENCE','[Originate][HistoryRecallClose]','-----\x20Stats\x20Predictive\x20---','Global:\x20','startPredictive','outbound','noanswer','NoAnswer','voiceQueues','add','[getContactDialer2]','dialer','callerid','getCaller','countagentrejectretry','queueBookedRR','dialAMDMinWordLength','[busyFactor]','undefined','dialDropMaxRetry','XMD-AMDINITIALSILENCE','error','actions','minutes','sumBillable','contactsRescheduled','predictiveIntervalPauses','../preview/util/util','\x20NOT\x20Active','progressive','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','[startMethodPredictive][StartProgressive][Loop]','[booked][unlock3]','status','predictiveIntervalErlangCallsDroppedCalls','[getContactDialer]\x20','[syncHangupIvr]','then','../rpc/cmHopperHistory','buildObj','check\x20failure','isNil','loggerHandler','checkIfTimeIntervals','predictiveIntervalAvgTalktime','[getContactCampaign2][Empty]','dialPrefix','abandonmentRate','reason\x200\x20no\x20such\x20number....','locked','dropRate','cause-txt','callProgressDetecting','busy','queuecallerabandon','outboundRejectCallsDay','Blacklist','AgentReject','Predictive\x20for\x20every\x20interval','substring','originatecalleridnum','dialDropRetryFrequency','originatecalleridname','[ifTime][promiseAll]','isArray','contact\x20not\x20moved','reason','originate\x20action\x20Error','dialNoSuchNumberMaxRetry','[handlePredictive]','[getContactDialer2][ReScheduled]','uniqueid','response','length','[originateError]:\x20%s','createHistory','[stopMethodPredictive][ReStartProgressive][ExceededDropInterval]','[updateOriginated]\x20object\x20originated\x20is\x20negative','Interval:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','XMD-AMDSILENCETHRESHOLD','clearing\x20variable\x20handle\x20predictive','originated','[syncHangupInAMD]','actionid','outboundAbandonedCallsDay','uuid','../../../config/logger','erlangBusyFactor','../../../rediscache','Dropped\x20Timeout:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','custom:agentnosuchnumber','[syncAgentComplete][createHistory][20]','[stopMethodPredictive][ReStartProgressive][ExceededDropDay]','RECALLINQUEUE','xcally-motion-dialer','clearZombieChannels','log','getDataPredictive','ACTIVE','[getDataPredictive]','[unlock3][syncQueueStatusComplete]','dialLimitQueue','responsetime','%s%s','predictiveIntervalMaxThreshold','UserId','[handlePredictive][limitChannel]','_rr','exports','BLACKLIST','queue','AVAILABLE_CONTACTS_FINISHED','[syncAgentComplete]','[syncQueueSummary]','[syncAgentComplete][createHistory]','syncQueueMember','toUpper','rescheduleContact','all','dialMachineRetryFrequency','campaign:save','outboundDropCallsDayACS','countglobal','inBlackList','lodash','Agent\x20Busy\x20Factor:\x20\x20\x20\x20\x20\x20\x20\x20\x20','newexten','name','\x20Intervals\x20is\x20empty\x20','SIP/%s','rrmemory','reason\x205\x20busy','collection\x20data\x20in\x20progressive\x20at','emptyContact','\x20Intervals\x20is\x20null\x20','dialCutDigit','[decremetOriginate]\x20object\x20originated\x20is\x20negative','createStateFinal','INTERVAL_IS_OVERTIME','predictiveIntervalAvailable','[unlock2][syncQueueStatusComplete]','[syncAgentComplete][createHistory][0]','erlangCallToSecond','string','true','handlePower','prototype','dialQueueTimeout','Success','predictiveIntervalAnsweredCalls','[Originate][HistoryRecallClose][historyCatch]','stateinterface','\x20AGENTS\x20NOT\x20LOGGED','ivrAnswerCallsDay','Ts\x20=\x20','predictiveIntervalHitRate','[checkIsBlackListIvr]\x20','reason\x208\x20congestion','Timezone:\x20','[syncAgentComplete][createHistory][11]','[getContactDialer2][Empty]','dialRecallInQueue','createdAt','tryOriginatePredictive','calleridname','Agent','Action','outboundDropCallsDayTimeout','dialOriginateTimeout','[syncCampaigns]','paused','actionOriginate','statedesc','[ifTime][Action]','[Originate][MoveBlacklist]','XMD-AMDBETWEENWORDSSILENCE','dialGlobalInterval','XMD-VOICEQUEUEID','agentconnect','./agentComplete','[actionOriginateIvr]\x20','getVoiceQueueRtPauses','match','getDataPredictiveOld','abandoned','clearing\x20variable\x20start\x20progressive','queueStatusComplete','./queueCallerAbandon','droptime','[rescheduleContact][AgentReject]','unmanaged','dialCongestionMaxRetry','power','Interval','seconds','checkContactBlack','[getContactCampaign2]','predictiveCalls','queueStatusComplete:\x20','notFound','XMD-CAMPAIGNID','originate','HangupInAMD','pick','dialAgentRejectRetryFrequency','[rescheduleContact][Machine]','agiIp','AGI','pow','campaign:ivr:%s','[callProgressDetecting]','syncQueueSummary','dialQueueProject2','interval\x20=\x20','campaigns','loopClearZombieChannels','Error','custom:queuesummary','\x22\x22\x20<>','catch','syncHangup','dialRandomLastDigitCallerIdNumber','Unknow','\x22agi://%s/square,%s\x22','startProgressive',')\x20are\x20less\x20than\x20threshold\x20(','message','Total\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','voicePause','handlePredictive','\x20Timezone\x20unknow\x20','[rescheduleContact][NoSuchNumber]','Agent:\x20','outboundNoSuchCallsDay','run','milliseconds','custom:agentreject','uniqueId','IS_DISACTIVED','reason\x203\x20ringing\x20no\x20answer','voice_queue:save','dialAgiAfterHangupAgent','Unknown\x20Predictive','calleridnum','dialAMDMaximumNumberOfWords','countnosuchnumberretry','waiting','replace','outboundUnknownCallsDay','agentreject','countbusyretry','content','type','Drop','phone','../../../config/environment/','Intervals','[syncHangupIvr][createHistory]','checkIsTrunkReachable','[rescheduleContact]\x20[Congestion]','roundrobin','[Dialer][checkChannel][ivr]','avgHandleTime','custom:agentbusy','preview','dialAMDActive','OriginateError','[averageHandleTime]\x20','[CatchErlangB]','CALLEREXIT','isEmpty','outboundQueuePauses','Amax\x20=\x20','sumDuration','countdropretry','endtime','emit','[syncHangupInAMDIvr]','strategy','ListId','switch\x20in\x20progressive\x20because\x20available\x20agents\x20(','[syncQueueCallerAbandon]\x20[Drop]','loopCampaigns','limitCalls','[uniqueid]','[Originate][historyBlacklist]','moveContactManagedDialer','dialGlobalMaxRetry','booked','Drop\x20Rate:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','[rescheduleContact][Abandoned]','is\x20disactive','p\x20=\x20','isTrunkReachable','reason\x2011\x20abandoned','getContactDialerIvr','util','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','RESCHEDULED_CONTACTS','method\x20not\x20recognized','../rpc/cmHopper','countcongestionretry','dialPredictiveInterval','iftime\x20%s,%s','countmachineretry','SIP/%s/%s%s','outboundDropCallsDayCallersExit','Failure','[syncAgentComplete][createHistory][3]','Max\x20Drop\x20','Avg\x20Hold\x20Time\x20is\x20not\x20enough\x20for\x20predictive','check\x20handlePredictive\x20is\x20not\x20undefine','moment','outboundBlacklistCallsDay','[unlock][syncQueueStatusComplete]','tail','[rescheduleContact][Drop]','[syncHangupInAMDIvr][createHistory]','state','[moveContactManagedDialer][0]','syncOriginateResponse','Amax:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','dialNoSuchNumberRetryFrequency','outboundOriginateFailureCallsDay','countReScheduled','amdstatus','voice:queue:%s','dialMachineMaxRetry','predictiveIntervalTotalCalls','dialPredictiveOptimizationPercentage','dialMethod','reason\x2019\x20machine....','entity\x20is\x20undefine','[syncQueueSummary]\x20Campaign\x20Queue:\x20','answered','averageHandleTime','[unlockContact]\x20','syncQueueCallerAbandon','syncNewExten','dialPredictiveOptimization','isSuccess','[actionOriginatePredictive]\x20','sequence','[Dialer][checkChannel]','INTERVAL_IS_EMPTY','./final','dialAgentRejectMaxRetry','floor','pTalking','XMD-ORIGINATECALLERIDNAME','diff','trunks','contact\x20is\x20undefine','md5','XMD-AMDMINWORDLENGTH','[booked][unlock]','[updateOriginated]\x20is\x20null\x20or\x20undefined','agentBusyFactor','./hangup','predictive','updateOriginated','---------------------------','\x22%s\x22\x20<%s>','command','Busy','queueBooked','idHopper','busyFactor','active','Drop\x20in\x20this\x20interval','dialActive','checkIsBlackList','predictiveIntervalAvgHoldtime','outboundAnswerAgiCallsDay','[rescheduleContact]\x20[Busy]','predictiveIntervalDroppedCallsTimeout','Contact','dialBusyMaxRetry','isUndefined','getContactDialer','XMD-ORIGINATECALLERIDNUM','NOT_ACTIVE','stringify','dialNoAnswerMaxRetry','startMethodPredictive','some','dialOriginateCallerIdNumber','reachable','[syncAgentComplete][createHistory][?]',')\x20are\x20more\x20than\x20threshold\x20(','CampaignId','RecallFailedTimeout','HANGUP','AMD','Contact\x20updated','object','timezones','predictiveIntervalDroppedCallsCallersExit','[getVoiceQueueRtPauses]\x20','agents','loggedIn','Trunk','outboundBusyCallsDay','outboundCongestionCallsDay','\x20INTERVAL_IS_NULL','erlangCalls','RUNNING','unmonitored','checkDialMethod','syncVarSet','handleIvr','dialQueueProject','resolve','saveInDb','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','info','dialAbandonedRetryFrequency','unlockRR','channel','[syncAgentComplete][createHistory][5]','talking','---------\x20ErlangB\x20---------','XMD-AMDMAXIMUMWORDLENGTH','finally','round','merge','XMD-AMDTOTALANALYSISTIME','starttime','[syncHangupInAMD][createHistory]','inspect','Dropped\x20calls\x20day','./history','../rpc/cmHopperBlack','TrunkBackup','YYYY-MM-DD\x20HH:mm:ss','AVG\x20Hold\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','TIMEOUT','check\x20predictive\x20is\x20not\x20undefine','sumHoldTime','NONE','XMD-AMDMAXIMUMNUMBEROFWORDS','dialAMDAfterGreetingSilence','XMD-AMDGREETING','stack','[countReScheduled]\x20','INTERVAL_IS_NULL','[getContactDialerPredictive]','countabandonedretry','ivrTotalCallsDays','Dropped\x20Exit:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','varset','[checkIsBlackList]\x20','[abandonmentRate]','Abandoned','outboundReCallsDay','dialBusyRetryFrequency','dialAMDGreeting','bind','[booked][RR]','[Catch][Preview][syncQueueStatusComplete]','[actionOriginate]\x20','variable','fail\x20to\x20scheduled\x20calls','erlangAbandonmentRate','dialAbandonedMaxRetry','outboundAnswerCallsDay','contactAgent-idHopper:\x20','syncCampaigns','ContactId','nosuchnumber','outboundNoAnswerCallsDay','AVG\x20Talk\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','dialTimezone','dialAMDMaximumWordLength','answertime','AnswerAGI','recalculate\x20predictive\x20at','temp','custom:agentnoanswer','value','tags','predictiveIntervalMultiplicativeFactor','dialOriginateCallerIdName','[decremetOriginate]\x20is\x20null\x20or\x20undefined','One\x20call\x20every:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Answered\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','GLOBAL_INTERVAL_IS_OVERTIME','congestion','[actions]','checkIfTime','[moveContactManagedDialer]\x20','ivr','XMD-','dropreason'];(function(_0x48e44b,_0x45f548){const _0x252091=function(_0x21d8e2){while(--_0x21d8e2){_0x48e44b['push'](_0x48e44b['shift']());}};_0x252091(++_0x45f548);}(a1225_0x2520,0x18f));const a1225_0x21d8=function(_0x48e44b,_0x45f548){_0x48e44b=_0x48e44b-0x90;let _0x252091=a1225_0x2520[_0x48e44b];return _0x252091;};const a1225_0x25c06d=a1225_0x21d8;'use strict';const util=require(a1225_0x25c06d(0x279)),_=require(a1225_0x25c06d(0x1cd)),uuid=require(a1225_0x25c06d(0x1a6)),moment=require(a1225_0x25c06d(0x289)),rr=require('rr'),md5=require(a1225_0x25c06d(0x93)),ut=require(a1225_0x25c06d(0x16c)),config=require(a1225_0x25c06d(0x250)),logger=require(a1225_0x25c06d(0x1a7))(a1225_0x25c06d(0x15c)),loggerBooked=require(a1225_0x25c06d(0x1a7))('booked'),loggerPredictive=require('../../../config/logger')(a1225_0x25c06d(0x99)),loggerPredictiveCalls=require(a1225_0x25c06d(0x1a7))(a1225_0x25c06d(0x216)),loggerSyncQueueSummary=require(a1225_0x25c06d(0x1a7))(a1225_0x25c06d(0x224)),ami=require(a1225_0x25c06d(0x123)),{getSocket}=require(a1225_0x25c06d(0x1a9)),io=getSocket(),cmHopper=require(a1225_0x25c06d(0x27d)),cmHopperHistory=require(a1225_0x25c06d(0x177)),cmHopperBlack=require(a1225_0x25c06d(0xe2)),voiceQueueRt=require('../rpc/voiceQueueRt'),Action=require('./action'),History=require(a1225_0x25c06d(0xe1)),Final=require(a1225_0x25c06d(0x2aa)),AgentComplete=require(a1225_0x25c06d(0x204)),QueueCallerAbandon=require(a1225_0x25c06d(0x20c)),Hangup=require(a1225_0x25c06d(0x98)),{getConfigService}=require('../../../config/config.service'),strategy={'rrmemory':a1225_0x25c06d(0x1d3),'roundrobin':a1225_0x25c06d(0x255)},Sequence=function(){};Sequence[a1225_0x25c06d(0x1e3)]['enqueue']=function(_0x378b0a){const _0x3a53a0=a1225_0x25c06d;this[_0x3a53a0(0x28c)]=this['tail']?this[_0x3a53a0(0x28c)][_0x3a53a0(0xd9)](_0x378b0a):_0x378b0a();};function Dialer(_0x2eb4d2,_0x18eb09){const _0x1ee8c1=a1225_0x25c06d;this[_0x1ee8c1(0x2a7)]=new Sequence(),this[_0x1ee8c1(0x259)]=_0x18eb09,this[_0x1ee8c1(0x159)]=_0x2eb4d2[_0x1ee8c1(0x159)],this[_0x1ee8c1(0x227)]=_0x2eb4d2[_0x1ee8c1(0x227)],this[_0x1ee8c1(0xc1)]=_0x2eb4d2[_0x1ee8c1(0xc1)],this['trunks']=_0x2eb4d2['trunks'],this[_0x1ee8c1(0x147)]=config[_0x1ee8c1(0x147)]||0x2,this[_0x1ee8c1(0x13b)]={},this[_0x1ee8c1(0x167)]={},this['contactsId']={},this[_0x1ee8c1(0x23e)]={},this['optionPredictive']={},this[_0x1ee8c1(0x155)]={},this[_0x1ee8c1(0x231)]={},this['ivrOriginated']={},this['queueBooked']={},this[_0x1ee8c1(0x160)]={},ami['on'](_0x1ee8c1(0x203),this[_0x1ee8c1(0x150)]['bind'](this)),ami['on'](_0x1ee8c1(0x187),this[_0x1ee8c1(0x2a2)][_0x1ee8c1(0xfb)](this)),ami['on']('originateresponse',this[_0x1ee8c1(0x291)][_0x1ee8c1(0xfb)](this)),ami['on']('agentcomplete',this['syncAgentComplete'][_0x1ee8c1(0xfb)](this)),ami['on'](_0x1ee8c1(0x22a),this[_0x1ee8c1(0x224)]['bind'](this)),ami['on']('hangup',this[_0x1ee8c1(0x22d)][_0x1ee8c1(0xfb)](this)),ami['on'](_0x1ee8c1(0x1cf),this[_0x1ee8c1(0x2a3)][_0x1ee8c1(0xfb)](this)),ami['on'](_0x1ee8c1(0xf4),this[_0x1ee8c1(0xcb)][_0x1ee8c1(0xfb)](this)),ami['on']('queuemember',this[_0x1ee8c1(0x1c4)][_0x1ee8c1(0xfb)](this)),ami['on'](_0x1ee8c1(0x14e),this[_0x1ee8c1(0x142)][_0x1ee8c1(0xfb)](this)),this[_0x1ee8c1(0x26b)](),this[_0x1ee8c1(0x228)]();}function isNotNull(_0x1c1e5c){const _0x32c1d0=a1225_0x25c06d;return _0x1c1e5c!==null&&!_[_0x32c1d0(0xac)](_0x1c1e5c);}function checkIsLoggedIn(_0x2c6439,_0x1cbda5){return function(){const _0x559819=a1225_0x21d8;if(_0x1cbda5<=0x0){_0x2c6439[_0x559819(0x233)]='AGENTS_NOT_LOGGED';throw _0x2c6439[_0x559819(0x1d0)]+_0x559819(0x1e9);}};}function isActive(_0x16e17d){return _0x16e17d;}function checkIsActive(_0x598277,_0x1a8c75){return function(){const _0x25f122=a1225_0x21d8;if(!isActive(_0x1a8c75)){_0x598277[_0x25f122(0x233)]=_0x25f122(0xaf);throw _0x598277[_0x25f122(0x1d0)]+_0x25f122(0x16d);}};}function checkInterval(_0x13a2fb){return function(){const _0x1ba998=a1225_0x21d8;if(!isNotNull(_0x13a2fb[_0x1ba998(0x212)])){_0x13a2fb['message']=_0x1ba998(0xef);throw _0x13a2fb[_0x1ba998(0x1d0)]+_0x1ba998(0xc6);}if(!isNotNull(_0x13a2fb['Interval'][_0x1ba998(0x251)])){_0x13a2fb[_0x1ba998(0x233)]=_0x1ba998(0xef);throw _0x13a2fb[_0x1ba998(0x1d0)]+'\x20INTERVAL_IS_NULL';}if(!isNotNull(_[_0x1ba998(0x25f)](_0x13a2fb['Interval']['Intervals']))){_0x13a2fb['message']='INTERVAL_IS_NULL';throw _0x13a2fb[_0x1ba998(0x1d0)]+_0x1ba998(0xc6);}};}function msgResponse(_0x5a0b78,_0x3cf615,_0x2bd2cb){return{'action':_0x5a0b78,'response':_0x3cf615,'message':_0x2bd2cb,'stack':_0x2bd2cb};}function myreject(_0x331c1f){return function(_0x129956){const _0x163a4a=a1225_0x21d8;return _0x331c1f(msgResponse(_0x163a4a(0x1fe),_0x163a4a(0x229),JSON['stringify'](_0x129956)));};}function getSeconds(_0x182555,_0x8e7985){const _0x9600a2=a1225_0x25c06d,_0x17849f=moment(_0x182555)[_0x9600a2(0x23c)](0x0),_0x356710=moment(_0x8e7985)['milliseconds'](0x0);return _0x17849f[_0x9600a2(0x90)](_0x356710,_0x9600a2(0x213));}function emit(_0x45fc3b,_0x4230e9,_0x45990c){const _0xb7a5ff=a1225_0x25c06d;io['to'](_0x45fc3b)[_0xb7a5ff(0x265)](_0x4230e9,_0x45990c);}function emitVoiceQueueSummary(_0x30b6f6){const _0x510255=a1225_0x25c06d;if(_0x30b6f6[_0x510255(0x24d)]==='outbound'){const _0x11bb51={'id':_0x30b6f6['id'],'name':_0x30b6f6[_0x510255(0x1d0)],'strategy':_0x30b6f6[_0x510255(0x267)],'answered':_0x30b6f6[_0x510255(0x29f)],'available':_0x30b6f6[_0x510255(0x145)],'loggedIn':_0x30b6f6[_0x510255(0xc2)],'pTalking':_0x30b6f6['pTalking'],'sumBillable':_0x30b6f6[_0x510255(0x169)],'sumDuration':_0x30b6f6[_0x510255(0x262)],'sumHoldTime':_0x30b6f6[_0x510255(0xe8)]||0x0,'talking':_0x30b6f6[_0x510255(0xd6)],'total':_0x30b6f6['total'],'type':_0x30b6f6[_0x510255(0x24d)],'unmanaged':_0x30b6f6[_0x510255(0x20f)],'abandoned':_0x30b6f6[_0x510255(0x209)],'waiting':_0x30b6f6[_0x510255(0x247)],'loggedInDb':_0x30b6f6['loggedInDb'],'dialActive':_0x30b6f6[_0x510255(0xa4)],'dialMethod':_0x30b6f6['dialMethod'],'dialOriginateCallerIdName':_0x30b6f6['dialOriginateCallerIdName'],'dialOriginateCallerIdNumber':_0x30b6f6[_0x510255(0xb4)],'dialOriginateTimeout':_0x30b6f6[_0x510255(0x1f9)],'dialPrefix':_0x30b6f6[_0x510255(0x17f)],'outboundAnswerAgiCallsDay':_0x30b6f6[_0x510255(0xa7)],'outboundAnswerCallsDay':_0x30b6f6[_0x510255(0x103)],'outboundBlacklistCallsDay':_0x30b6f6[_0x510255(0x28a)],'outboundBusyCallsDay':_0x30b6f6[_0x510255(0xc4)],'outboundCongestionCallsDay':_0x30b6f6[_0x510255(0xc5)],'outboundDropCallsDayACS':_0x30b6f6[_0x510255(0x1ca)],'outboundDropCallsDayCallersExit':_0x30b6f6[_0x510255(0x283)],'outboundDropCallsDayTimeout':_0x30b6f6['outboundDropCallsDayTimeout'],'outboundNoAnswerCallsDay':_0x30b6f6[_0x510255(0x108)],'outboundNoSuchCallsDay':_0x30b6f6[_0x510255(0x23a)],'outboundOriginateFailureCallsDay':_0x30b6f6['outboundOriginateFailureCallsDay'],'outboundReCallsDay':_0x30b6f6['outboundReCallsDay'],'outboundRejectCallsDay':_0x30b6f6[_0x510255(0x188)],'outboundUnknownCallsDay':_0x30b6f6[_0x510255(0x249)],'predictiveIntervalAnsweredCalls':_0x30b6f6[_0x510255(0x1e6)],'predictiveIntervalAvgHoldtime':_0x30b6f6[_0x510255(0xa6)],'predictiveIntervalAvgTalktime':_0x30b6f6[_0x510255(0x17d)],'predictiveIntervalDroppedCallsCallersExit':_0x30b6f6[_0x510255(0xbf)],'predictiveIntervalDroppedCallsTimeout':_0x30b6f6['predictiveIntervalDroppedCallsTimeout'],'predictiveIntervalErlangCalls':_0x30b6f6[_0x510255(0x130)],'predictiveIntervalErlangCallsDroppedCalls':_0x30b6f6[_0x510255(0x173)],'predictiveIntervalHitRate':_0x30b6f6[_0x510255(0x1ec)],'predictiveIntervalMultiplicativeFactor':_0x30b6f6[_0x510255(0x113)],'predictiveIntervalPauses':_0x30b6f6[_0x510255(0x16b)],'predictiveIntervalAvailable':_0x30b6f6[_0x510255(0x1dc)],'predictiveIntervalTotalCalls':_0x30b6f6['predictiveIntervalTotalCalls'],'message':_0x30b6f6[_0x510255(0x233)],'originated':_0x30b6f6['originated'],'erlangCalls':_0x30b6f6['erlangCalls'],'erlangCallToSecond':_0x30b6f6[_0x510255(0x1df)],'erlangAbandonmentRate':_0x30b6f6[_0x510255(0x101)],'erlangBusyFactor':_0x30b6f6[_0x510255(0x1a8)],'startPredictive':_0x30b6f6[_0x510255(0x155)],'startProgressive':_0x30b6f6['startProgressive']};_0x30b6f6[_0x510255(0xc3)]&&(_0x11bb51[_0x510255(0xc3)]={'id':_0x30b6f6['Trunk']['id'],'name':_0x30b6f6['Trunk']['name'],'active':_0x30b6f6[_0x510255(0xc3)]['active'],'callerid':_0x30b6f6[_0x510255(0xc3)]['callerid']});_0x30b6f6[_0x510255(0x212)]&&(_0x11bb51['Interval']={'id':_0x30b6f6[_0x510255(0x212)]['id'],'name':_0x30b6f6[_0x510255(0x212)][_0x510255(0x1d0)]});const _0x5842d=md5(JSON[_0x510255(0xb0)](_0x11bb51));_0x30b6f6[_0x510255(0x93)]!==_0x5842d&&(_0x30b6f6[_0x510255(0x93)]=_0x5842d,emit(util[_0x510255(0x14d)](_0x510255(0x297),_0x11bb51['name']),_0x510255(0x241),_0x11bb51));}}function emitCampaignSummary(_0x47c72f){const _0x4b2618=a1225_0x25c06d;_0x47c72f[_0x4b2618(0x24d)]===_0x4b2618(0x11d)&&emit(util[_0x4b2618(0x14d)](_0x4b2618(0x222),_0x47c72f['name']),_0x4b2618(0x1c9),_0x47c72f);}function checkGetDataPredictive(_0x5e501c){const _0x1a6d68=a1225_0x25c06d;if(isNotNull(_0x5e501c)){if(!_[_0x1a6d68(0x25f)](_0x5e501c)){loggerPredictive['info'](_0x1a6d68(0x153)),loggerPredictive['info'](_0x1a6d68(0x234),_0x5e501c[_0x1a6d68(0x299)]),loggerPredictive[_0x1a6d68(0xd1)](_0x1a6d68(0x117),_0x5e501c['predictiveIntervalAnsweredCalls']),loggerPredictive[_0x1a6d68(0xd1)](_0x1a6d68(0x1aa),_0x5e501c[_0x1a6d68(0xa9)]),loggerPredictive[_0x1a6d68(0xd1)](_0x1a6d68(0xf3),_0x5e501c[_0x1a6d68(0xbf)]),loggerPredictive[_0x1a6d68(0xd1)](_0x1a6d68(0xe5),_0x5e501c[_0x1a6d68(0xa6)]),loggerPredictive[_0x1a6d68(0xd1)](_0x1a6d68(0x109),_0x5e501c[_0x1a6d68(0x17d)]),loggerPredictive[_0x1a6d68(0xd1)](_0x1a6d68(0x9b));if(_0x5e501c[_0x1a6d68(0x299)]>0x0){if(!_[_0x1a6d68(0xac)](_0x5e501c[_0x1a6d68(0x17d)])&&_0x5e501c[_0x1a6d68(0x17d)]>0x0)return!![];else loggerPredictive['info']('Avg\x20Talk\x20Time\x20is\x20not\x20enough\x20for\x20predictive');if(!_[_0x1a6d68(0xac)](_0x5e501c[_0x1a6d68(0xa6)])&&_0x5e501c[_0x1a6d68(0xa6)]>0x0)return!![];else loggerPredictive['info'](_0x1a6d68(0x287));}else loggerPredictive['info'](_0x1a6d68(0x148));}else loggerPredictive[_0x1a6d68(0xd1)](_0x1a6d68(0x137));}else loggerPredictive[_0x1a6d68(0xd1)](_0x1a6d68(0x137));return![];}function mergeDataErlangB(_0x3381b2){return function(_0x31fbef){const _0x10fc2d=a1225_0x21d8;loggerPredictive['info'](_0x10fc2d(0xd7)),loggerPredictive[_0x10fc2d(0xd1)](_0x10fc2d(0x134),_0x31fbef[_0x10fc2d(0xc7)]),loggerPredictive[_0x10fc2d(0xd1)](_0x10fc2d(0x116),_0x31fbef[_0x10fc2d(0x1df)]),loggerPredictive[_0x10fc2d(0xd1)](_0x10fc2d(0x272),_0x31fbef[_0x10fc2d(0x101)]),loggerPredictive[_0x10fc2d(0xd1)](_0x10fc2d(0x1ce),_0x31fbef[_0x10fc2d(0x1a8)]),loggerPredictive[_0x10fc2d(0xd1)](_0x10fc2d(0x272),_0x31fbef['erlangAbandonmentRate']),loggerPredictive[_0x10fc2d(0xd1)](_0x10fc2d(0x9b)),_[_0x10fc2d(0xdb)](_0x3381b2,_0x31fbef);};}function getDiff(_0x28b67e){const _0x28115c=a1225_0x25c06d,_0x5b7815=moment()[_0x28115c(0x23c)](0x0),_0x3ca495=moment(_0x28b67e)[_0x28115c(0x23c)](0x0);return _0x5b7815['diff'](_0x3ca495,_0x28115c(0x213));}function ifInterval(_0x20fb01,_0x1b94da){const _0x3be409=a1225_0x25c06d;if(_[_0x3be409(0xac)](_0x1b94da))return![];return getDiff(_0x1b94da)<_0x20fb01*0x3c?!![]:![];}function freeVariablesPredictive(_0x38b414){const _0x3f66a9=a1225_0x25c06d;isNotNull(_0x38b414)&&(!_[_0x3f66a9(0xac)](_0x38b414[_0x3f66a9(0x231)])&&(_0x38b414[_0x3f66a9(0x231)]=undefined,loggerPredictive[_0x3f66a9(0xd1)](_0x38b414[_0x3f66a9(0x1d0)],_0x3f66a9(0x20a))),!_[_0x3f66a9(0xac)](_0x38b414[_0x3f66a9(0x155)])&&(_0x38b414['startPredictive']=undefined,loggerPredictive[_0x3f66a9(0xd1)](_0x38b414[_0x3f66a9(0x1d0)],'clearing\x20variable\x20start\x20predictive')),!_['isUndefined'](_0x38b414[_0x3f66a9(0x236)])&&(clearInterval(_0x38b414[_0x3f66a9(0x236)]),_0x38b414[_0x3f66a9(0x236)]=undefined,loggerPredictive['info'](_0x38b414[_0x3f66a9(0x1d0)],_0x3f66a9(0x1a1))));}function erlangb(_0x33ae71,_0x30fe44){if(_0x30fe44===0x0)return 0x0;let _0x369ace=0x1;for(let _0x3899ac=0x1;_0x3899ac<=_0x30fe44;_0x3899ac+=0x1){_0x369ace=0x1+_0x369ace*_0x3899ac/_0x33ae71;}return 0x1/_0x369ace;}function isVoiceQueueOutbound(_0x524c2b){const _0xda8a2f=a1225_0x25c06d;return _0x524c2b===_0xda8a2f(0x156);}function isNotPreview(_0x170347){const _0x1a2231=a1225_0x25c06d;return _0x170347!==_0x1a2231(0x259);}function isCampaignIvr(_0x445cf6){const _0x34130d=a1225_0x25c06d;return _0x445cf6===_0x34130d(0x11d);}function getCallerId(_0x32bb31,_0x41186b,_0x3eafb5){const _0x38d3c7=a1225_0x25c06d;if(!_[_0x38d3c7(0xac)](_0x3eafb5)&&_0x38d3c7(0x1e0)===typeof _0x3eafb5&&!_[_0x38d3c7(0x25f)](_0x3eafb5)){if(!_[_0x38d3c7(0xac)](_0x41186b)&&'string'===typeof _0x41186b&&!_[_0x38d3c7(0x25f)](_0x41186b))return util['format']('\x22%s\x22\x20<%s>',_0x41186b,_0x3eafb5);return util[_0x38d3c7(0x14d)](_0x38d3c7(0x9c),_0x3eafb5,_0x3eafb5);}if(!_['isUndefined'](_0x32bb31)&&'string'===typeof _0x32bb31&&!_['isEmpty'](_0x32bb31))return _0x32bb31;return _0x38d3c7(0x22b);}function loggerCatchQueueSummary(_0x34ed0,_0x1cc4e0){return function(_0x3cdac4){const _0x154d25=a1225_0x21d8;freeVariablesPredictive(_0x1cc4e0),emitVoiceQueueSummary(_0x1cc4e0),emitCampaignSummary(_0x1cc4e0),loggerSyncQueueSummary[_0x154d25(0x166)](_0x34ed0,util[_0x154d25(0xdf)](_0x3cdac4,{'showHidden':![],'depth':null}));};}function loggerCatchPredictive(_0x20d4ce,_0x23dd3b){return function(_0x309c61){const _0x529e28=a1225_0x21d8;loggerPredictive['error'](_0x23dd3b[_0x529e28(0x1d0)],_0x20d4ce),loggerPredictive['error'](_0x309c61[_0x529e28(0xed)]),freeVariablesPredictive(_0x23dd3b);};}function loggerCatch(_0x438f4f){return function(_0x56b347){const _0x278aef=a1225_0x21d8;logger[_0x278aef(0x166)](_0x438f4f,util[_0x278aef(0xdf)](_0x56b347,{'showHidden':![],'depth':null}));};}function checkContactEmpty(_0x2edde0){const _0x43ce33=a1225_0x25c06d;return _0x2edde0&&!_[_0x43ce33(0xac)](_0x2edde0)&&_0x2edde0['length']>0x0;}function decremetOriginate(_0x5cfade){const _0x1da5b8=a1225_0x25c06d;!_['isUndefined'](_0x5cfade)&&_0x5cfade!==null?typeof _0x5cfade[_0x1da5b8(0x1a2)]!=='undefined'&&(_0x5cfade['originated']>0x0?_0x5cfade[_0x1da5b8(0x1a2)]-=0x1:logger[_0x1da5b8(0x166)](_0x1da5b8(0x1d9))):logger[_0x1da5b8(0x166)](_0x1da5b8(0x115));}function checkContactLowerLimitOriginate(_0x214001,_0x41f844,_0x41430e){if(_0x41f844>_0x41430e)for(let _0x4ae306=0x0;_0x4ae306<_0x41f844-_0x41430e;_0x4ae306+=0x1){decremetOriginate(_0x214001);}}function loggerGetContactDialer(_0x4039d1,_0x554713,_0x19ef1c){return function(_0x4fd40d){const _0xa5400d=a1225_0x21d8;checkContactLowerLimitOriginate(_0x554713,_0x19ef1c,0x0),logger['error'](_0x4039d1,util[_0xa5400d(0xdf)](_0x4fd40d,{'showHidden':![],'depth':null}));};}function sendMessageReschedule(_0x470f7c){return function(_0x12b342){const _0x14d06e=a1225_0x21d8;isNotNull(_0x12b342)&&isNotNull(_0x12b342[0x0])&&(_0x12b342[0x0][_0x14d06e(0x16a)]>0x0?(_0x470f7c[_0x14d06e(0x233)]=_0x14d06e(0x27b),logger['info'](_0x14d06e(0x197)+_0x470f7c['name'],_0x12b342[0x0][_0x14d06e(0x16a)],'contacts')):(_0x470f7c[_0x14d06e(0x233)]=_0x14d06e(0x1c0),logger[_0x14d06e(0xd1)](_0x14d06e(0x1f1)+_0x470f7c[_0x14d06e(0x1d0)])));};}function notSendMessagesQueue(_0x359bea){const _0x2a6f66=a1225_0x25c06d;_0x359bea[_0x2a6f66(0x13f)]&&(freeVariablesPredictive(_0x359bea),_0x359bea[_0x2a6f66(0x1a2)]===0x0&&_0x359bea['talking']===0x0&&_0x359bea[_0x2a6f66(0x247)]===0x0&&(_0x359bea[_0x2a6f66(0x2ad)]||0x0)===0x0?(_0x359bea[_0x2a6f66(0x13f)]=![],_0x359bea[_0x2a6f66(0x145)]=0x0,_0x359bea[_0x2a6f66(0x233)]=_0x2a6f66(0xaf),loggerSyncQueueSummary[_0x2a6f66(0x166)](_0x2a6f66(0x29e),_0x359bea['name'],'is\x20not\x20active')):(_0x359bea['message']=_0x2a6f66(0x23f),loggerSyncQueueSummary[_0x2a6f66(0x166)](_0x2a6f66(0x29e),_0x359bea['name'],_0x2a6f66(0x274))),emitVoiceQueueSummary(_0x359bea));}function notSendMessagesCampaign(_0x2dfd26){const _0x1bd7ff=a1225_0x25c06d;_0x2dfd26[_0x1bd7ff(0x13f)]&&(_0x2dfd26[_0x1bd7ff(0x1a2)]===0x0?(_0x2dfd26[_0x1bd7ff(0x13f)]=![],_0x2dfd26[_0x1bd7ff(0x233)]=_0x1bd7ff(0xaf),loggerSyncQueueSummary[_0x1bd7ff(0x166)]('[syncQueueSummary]\x20Campaign\x20Ivr:\x20',_0x2dfd26[_0x1bd7ff(0x1d0)],_0x1bd7ff(0x12a))):(_0x2dfd26['message']=_0x1bd7ff(0x23f),loggerSyncQueueSummary[_0x1bd7ff(0x166)]('[syncQueueSummary]\x20Campaign\x20Ivr:\x20',_0x2dfd26['name'],_0x1bd7ff(0x274))),emitCampaignSummary(_0x2dfd26));}function createObjHistory(_0xc992d2,_0x3d36f7,_0x347295,_0x731ed1,_0x54406f){const _0x438138=a1225_0x25c06d;_0xc992d2[_0x438138(0x233)]=_0x347295;const _0x485b90=new Action(_0xc992d2,_0x3d36f7),_0x53d942=new History(_0x485b90);return _0x53d942[_0x438138(0x28f)]=_0x731ed1,_0x53d942[_0x438138(0x1fd)]=_0x54406f,_0x53d942[_0x438138(0x264)]=_0x485b90[_0x438138(0xdd)],_0x53d942;}Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x228)]=function(){const _0x516874=this;setInterval(function(){const _0x20547f=a1225_0x21d8;_0x516874[_0x20547f(0x1b0)](_0x516874[_0x20547f(0x23e)],_0x20547f(0x26d)),_0x516874[_0x20547f(0x1b0)](_0x516874[_0x20547f(0x167)],_0x20547f(0x11a));},0x32c8);},Dialer[a1225_0x25c06d(0x1e3)]['clearZombieChannels']=function(_0x2fd57d,_0x1d6148){const _0x27ad1a=a1225_0x25c06d,_0x1a69a3=this;for(const _0x1f7b19 in _0x2fd57d){typeof _0x2fd57d[_0x1f7b19]!==_0x27ad1a(0x163)&&this[_0x27ad1a(0x2a7)]['enqueue'](function(){const _0x2483f6=_0x27ad1a;if(!_[_0x2483f6(0x17a)](_0x2fd57d[_0x1f7b19]))return ami[_0x2483f6(0x1f7)]({'action':_0x2483f6(0x172),'channel':_0x2fd57d[_0x1f7b19][_0x2483f6(0xd4)]})[_0x2483f6(0x22c)](function(_0x837003){const _0x292e4f=_0x2483f6;_0x837003[_0x292e4f(0x233)]===_0x292e4f(0x144)&&setTimeout(function(){const _0x4e8474=_0x292e4f;_0x2fd57d[_0x1f7b19]&&_0x2fd57d[_0x1f7b19]['type']!==_0x4e8474(0x11d)&&(_0x1a69a3['updateOriginated'](_0x1a69a3[_0x4e8474(0x159)][_0x2fd57d[_0x1f7b19]['queue']]),logger['error'](_0x4e8474(0x2a8),_0x1d6148,_0x1f7b19,_0x2fd57d[_0x1f7b19][_0x4e8474(0x1bf)]),delete _0x2fd57d[_0x1f7b19]),_0x2fd57d[_0x1f7b19]&&_0x2fd57d[_0x1f7b19][_0x4e8474(0x24d)]===_0x4e8474(0x11d)&&(_0x1a69a3[_0x4e8474(0x9a)](_0x1a69a3[_0x4e8474(0x227)][_0x2fd57d[_0x1f7b19]['queue']]),logger[_0x4e8474(0x166)](_0x4e8474(0x256),_0x1d6148,_0x1f7b19,_0x2fd57d[_0x1f7b19]['queue']),delete _0x2fd57d[_0x1f7b19]);},0x2328);});});}},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x295)]=function(_0x44336c){const _0x428b69=a1225_0x25c06d;return Promise[_0x428b69(0xce)]()[_0x428b69(0x176)](cmHopper['countReScheduled'](_0x44336c))[_0x428b69(0x22c)](loggerCatch(_0x428b69(0xee)));},Dialer['prototype'][a1225_0x25c06d(0xa5)]=function(_0x272dc7){const _0x35fd8e=a1225_0x25c06d;return Promise[_0x35fd8e(0xce)]()[_0x35fd8e(0x176)](cmHopperBlack[_0x35fd8e(0xa5)](_0x272dc7))['catch'](loggerCatch(_0x35fd8e(0xf5)));},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x125)]=function(_0xa0e68c){const _0x546006=a1225_0x25c06d;return Promise['resolve']()[_0x546006(0x176)](cmHopperBlack[_0x546006(0x125)](_0xa0e68c))[_0x546006(0x22c)](loggerCatch(_0x546006(0x1ed)));},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x2a0)]=function(_0x3ad2c9){const _0x1cbeb6=a1225_0x25c06d;return Promise[_0x1cbeb6(0xce)]()[_0x1cbeb6(0x176)](cmHopperHistory[_0x1cbeb6(0x257)](_0x3ad2c9))[_0x1cbeb6(0x22c)](loggerCatch(_0x1cbeb6(0x25c)));},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x1c6)]=function(_0x365575){const _0x446490=a1225_0x25c06d;return Promise[_0x446490(0xce)]()[_0x446490(0x176)](cmHopper['rescheduleContact'](_0x365575))[_0x446490(0x22c)](loggerCatch('[rescheduleContact]\x20'));},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x126)]=function(_0x33f513,_0x297992,_0x1e8a8c){const _0x3da56b=a1225_0x25c06d;return Promise['resolve']()[_0x3da56b(0x176)](cmHopper[_0x3da56b(0x126)](_0x33f513,_0x297992,_0x1e8a8c))[_0x3da56b(0x22c)](loggerCatch(_0x3da56b(0x2a1)));},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0xad)]=function(_0x128e71,_0x4c5ae3,_0x5b387b,_0x4c0a79){const _0x3f01ac=a1225_0x25c06d;return Promise['resolve']()[_0x3f01ac(0x176)](cmHopper[_0x3f01ac(0xad)](_0x128e71,_0x4c5ae3,_0x5b387b,_0x4c0a79))[_0x3f01ac(0x22c)](loggerCatch(_0x3f01ac(0x174)));},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x278)]=function(_0x5a0336,_0x475e21,_0xb34ad){const _0x1c5e67=a1225_0x25c06d;return Promise[_0x1c5e67(0xce)]()['then'](cmHopper[_0x1c5e67(0x278)](_0x5a0336,_0x475e21,_0xb34ad))[_0x1c5e67(0x22c)](loggerCatch('[getContactDialer]\x20'));},Dialer[a1225_0x25c06d(0x1e3)]['getVoiceQueueRtPauses']=function(_0x587f49){const _0x3fbed1=a1225_0x25c06d;return Promise[_0x3fbed1(0xce)]()[_0x3fbed1(0x176)](voiceQueueRt[_0x3fbed1(0x206)](_0x587f49))[_0x3fbed1(0x22c)](loggerCatch(_0x3fbed1(0xc0)));},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x26f)]=function(_0x189826){const _0x7e276c=a1225_0x25c06d;return Promise[_0x7e276c(0xce)]()[_0x7e276c(0x176)](cmHopper[_0x7e276c(0x26f)](_0x189826))[_0x7e276c(0x22c)](loggerCatch(_0x7e276c(0x11c)));},Dialer[a1225_0x25c06d(0x1e3)]['createHistory']=function(_0x112a07){const _0x754da3=a1225_0x25c06d;return Promise[_0x754da3(0xce)]()[_0x754da3(0x176)](cmHopperHistory[_0x754da3(0x19c)](_0x112a07))[_0x754da3(0x22c)](loggerCatch('[createHistory]\x20'));},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x9a)]=function(_0x46ddab){const _0x3db91a=a1225_0x25c06d;!_['isUndefined'](_0x46ddab)&&_0x46ddab!==null?typeof _0x46ddab[_0x3db91a(0x1a2)]!==_0x3db91a(0x163)&&(_0x46ddab[_0x3db91a(0x1a2)]>0x0?_0x46ddab['originated']-=0x1:logger['error'](_0x3db91a(0x19e))):logger[_0x3db91a(0x166)](_0x3db91a(0x96));},Dialer['prototype'][a1225_0x25c06d(0x17b)]=function(_0x59671a,_0xb788be){const _0x499f2a=this;return function(_0x3d6b87){const _0x1e04c9=a1225_0x21d8;_0x499f2a[_0x1e04c9(0x9a)](_0xb788be),logger[_0x1e04c9(0x166)](_0x59671a,util[_0x1e04c9(0xdf)](_0x3d6b87,{'showHidden':![],'depth':null}));};},Dialer['prototype'][a1225_0x25c06d(0x1d6)]=function(_0x1521a3,_0x3b0f0e,_0x36c062){const _0x443330=a1225_0x25c06d,_0x23820c={'state':0x19,'statedesc':_0x443330(0x218)};this['updateOriginated'](_0x3b0f0e),this[_0x443330(0xcf)](_['merge'](_0x23820c,_[_0x443330(0x21c)](_0x36c062,[_0x443330(0x106),_0x443330(0x268),'UserId',_0x443330(0x12b),_0x443330(0xb8)])),'[emptyContact][createHistory]','[emptyContact]'),logger[_0x443330(0x166)](_0x1521a3);},Dialer['prototype']['isSuccess']=function(_0x176ea3){const _0x2ab78a=a1225_0x25c06d;return _0x176ea3===_0x2ab78a(0x1e5);},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x276)]=function(_0x5bee8b){const _0x5d9a43=a1225_0x25c06d;return!_[_0x5d9a43(0xac)](_0x5bee8b)&&_0x5bee8b&&!_['isUndefined'](_0x5bee8b[_0x5d9a43(0x1d0)])&&!_[_0x5d9a43(0xac)](_0x5bee8b[_0x5d9a43(0xa2)])&&_0x5bee8b[_0x5d9a43(0xa2)]&&(this[_0x5d9a43(0x91)][util[_0x5d9a43(0x14d)](_0x5d9a43(0x1d2),_0x5bee8b['name'])][_0x5d9a43(0x172)]==='reachable'||this[_0x5d9a43(0x91)][util[_0x5d9a43(0x14d)](_0x5d9a43(0x1d2),_0x5bee8b[_0x5d9a43(0x1d0)])][_0x5d9a43(0x172)]===_0x5d9a43(0xc9));},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0xcf)]=function(_0x50b1ac,_0x549c6f,_0x2e3d98){const _0x473d7e=a1225_0x25c06d;this[_0x473d7e(0x19c)](_0x50b1ac)[_0x473d7e(0x22c)](loggerCatch(_0x549c6f)),this[_0x473d7e(0x26f)](_0x50b1ac)[_0x473d7e(0x22c)](loggerCatch(_0x2e3d98));},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0xcb)]=function(_0x250047){const _0x2deb2a=a1225_0x25c06d,_0x4e5722=this[_0x2deb2a(0x23e)][_0x250047[_0x2deb2a(0x198)]];let _0x29bc61;if(!_[_0x2deb2a(0x17a)](_0x250047)&&!_[_0x2deb2a(0x17a)](_0x250047['variable'])&&!_[_0x2deb2a(0x17a)](_0x250047[_0x2deb2a(0xff)][_0x2deb2a(0x296)])&&_0x250047['exten']==='xcally-motion-dialer'&&_0x4e5722){_0x4e5722[_0x2deb2a(0x24d)]!==_0x2deb2a(0x11d)&&this[_0x2deb2a(0x159)][_0x4e5722[_0x2deb2a(0x1bf)]][_0x2deb2a(0x25a)]&&_0x250047['value']===_0x2deb2a(0xba)&&(delete this[_0x2deb2a(0x23e)][_0x250047[_0x2deb2a(0x198)]],this[_0x2deb2a(0x9a)](this[_0x2deb2a(0x159)][_0x4e5722['queue']]),this[_0x2deb2a(0x159)][_0x4e5722[_0x2deb2a(0x1bf)]]['outboundAnswerCallsDay']+=0x1,this[_0x2deb2a(0x159)][_0x4e5722['queue']][_0x2deb2a(0xa7)]+=0x1,_0x29bc61=new Hangup(_0x4e5722,_0x250047),_0x29bc61[_0x2deb2a(0x28f)]=0x12,_0x29bc61['statedesc']='HangupInAMD',_0x29bc61[_0x2deb2a(0x13a)]='AMD',this[_0x2deb2a(0xcf)](_0x29bc61,_0x2deb2a(0xde),_0x2deb2a(0x1a3)));if(_0x4e5722[_0x2deb2a(0x24d)]!==_0x2deb2a(0x11d)&&this['voiceQueues'][_0x4e5722[_0x2deb2a(0x1bf)]][_0x2deb2a(0x25a)]&&_0x250047['value']===_0x2deb2a(0x135)){const _0x3989a2=this;return new Promise(function(_0x399167,_0x5a23b2){const _0x11da92=_0x2deb2a;delete _0x3989a2[_0x11da92(0x23e)][_0x250047[_0x11da92(0x198)]],_0x3989a2[_0x11da92(0x9a)](_0x3989a2[_0x11da92(0x159)][_0x4e5722[_0x11da92(0x1bf)]]),_0x3989a2[_0x11da92(0x159)][_0x4e5722[_0x11da92(0x1bf)]][_0x11da92(0x103)]+=0x1,_0x3989a2[_0x11da92(0x159)][_0x4e5722[_0x11da92(0x1bf)]][_0x11da92(0xa7)]+=0x1;const _0x33efe3=_0x3989a2[_0x11da92(0x159)][_0x4e5722[_0x11da92(0x1bf)]],_0x5f2c09=new Hangup(_0x4e5722,_0x250047);_0x5f2c09['state']=0x13,_0x5f2c09[_0x11da92(0x1fd)]=_0x11da92(0x129),_0x5f2c09[_0x11da92(0x13a)]='AMD',_0x5f2c09[_0x11da92(0x281)]+=0x1,_0x5f2c09[_0x11da92(0x1cb)]+=0x1,_0x5f2c09[_0x11da92(0x139)]=!![],_0x3989a2['createHistory'](_0x5f2c09)[_0x11da92(0x22c)](loggerCatch(_0x11da92(0x1de))),_0x5f2c09['countbusyretry']+_0x5f2c09[_0x11da92(0x27e)]+_0x5f2c09[_0x11da92(0x140)]+_0x5f2c09[_0x11da92(0x246)]+_0x5f2c09[_0x11da92(0x263)]+_0x5f2c09[_0x11da92(0xf1)]+_0x5f2c09['countmachineretry']+_0x5f2c09[_0x11da92(0x15f)]>=_0x33efe3['dialGlobalMaxRetry']?_0x3989a2[_0x11da92(0x121)](_0x5f2c09,_0x399167,_0x5a23b2,'reason19\x20machine....'):_0x5f2c09[_0x11da92(0x281)]>=_0x33efe3[_0x11da92(0x298)]?_0x3989a2[_0x11da92(0x1da)](_0x5f2c09,_0x399167,_0x5a23b2,_0x11da92(0x29c)):(_0x3989a2['rescheduleContact']({'active':![],'countmachineretry':_0x5f2c09[_0x11da92(0x281)],'scheduledat':moment()[_0x11da92(0x15a)](_0x33efe3['dialMachineRetryFrequency'],_0x11da92(0x168))['format'](_0x11da92(0xe4)),'ContactId':_0x5f2c09[_0x11da92(0x106)],'ListId':_0x5f2c09['ListId'],'VoiceQueueId':_0x5f2c09[_0x11da92(0x12b)]||undefined,'CampaignId':_0x5f2c09[_0x11da92(0xb8)]||undefined})[_0x11da92(0x22c)](loggerCatch(_0x11da92(0x21e))),_0x399167({'reschedule':0x1}));});}_0x4e5722[_0x2deb2a(0x24d)]===_0x2deb2a(0x11d)&&this[_0x2deb2a(0x227)][_0x4e5722[_0x2deb2a(0x1bf)]][_0x2deb2a(0x25a)]&&_0x250047[_0x2deb2a(0x111)]===_0x2deb2a(0xba)&&(delete this[_0x2deb2a(0x23e)][_0x250047[_0x2deb2a(0x198)]],this['updateOriginated'](this[_0x2deb2a(0x227)][_0x4e5722[_0x2deb2a(0x1bf)]]),_0x29bc61=new Hangup(_0x4e5722,_0x250047),_0x29bc61[_0x2deb2a(0x28f)]=0x12,_0x29bc61['statedesc']=_0x2deb2a(0x21b),_0x29bc61[_0x2deb2a(0x13a)]=_0x2deb2a(0xbb),this[_0x2deb2a(0xcf)](_0x29bc61,_0x2deb2a(0x28e),_0x2deb2a(0x266)));if(_0x4e5722[_0x2deb2a(0x24d)]===_0x2deb2a(0x11d)&&this[_0x2deb2a(0x227)][_0x4e5722[_0x2deb2a(0x1bf)]][_0x2deb2a(0x25a)]&&_0x250047['value']===_0x2deb2a(0x135)){const _0x4cab8d=this;return new Promise(function(_0x10b1b7,_0xf7f18){const _0x454824=_0x2deb2a;delete _0x4cab8d[_0x454824(0x23e)][_0x250047[_0x454824(0x198)]],_0x4cab8d['updateOriginated'](_0x4cab8d['campaigns'][_0x4e5722[_0x454824(0x1bf)]]),_0x4cab8d[_0x454824(0x227)][_0x4e5722[_0x454824(0x1bf)]][_0x454824(0x103)]+=0x1,_0x4cab8d[_0x454824(0x227)][_0x4e5722[_0x454824(0x1bf)]][_0x454824(0xa7)]+=0x1;const _0x66708f=_0x4cab8d[_0x454824(0x227)][_0x4e5722[_0x454824(0x1bf)]],_0x28f090=new Hangup(_0x4e5722,_0x250047);_0x28f090['state']=0x13,_0x28f090['statedesc']=_0x454824(0x129),_0x28f090['membername']=_0x454824(0xbb),_0x28f090[_0x454824(0x281)]+=0x1,_0x28f090[_0x454824(0x1cb)]+=0x1,_0x28f090[_0x454824(0x139)]=!![],_0x4cab8d[_0x454824(0x19c)](_0x28f090)['catch'](loggerCatch(_0x454824(0x1de))),_0x28f090[_0x454824(0x24b)]+_0x28f090[_0x454824(0x27e)]+_0x28f090[_0x454824(0x140)]+_0x28f090[_0x454824(0x246)]+_0x28f090[_0x454824(0x263)]+_0x28f090['countabandonedretry']+_0x28f090[_0x454824(0x281)]+_0x28f090[_0x454824(0x15f)]>=_0x66708f[_0x454824(0x270)]?_0x4cab8d[_0x454824(0x121)](_0x28f090,_0x10b1b7,_0xf7f18,'reason19\x20machine....'):_0x28f090[_0x454824(0x281)]>=_0x66708f[_0x454824(0x298)]?_0x4cab8d[_0x454824(0x1da)](_0x28f090,_0x10b1b7,_0xf7f18,_0x454824(0x29c)):(_0x4cab8d[_0x454824(0x1c6)]({'active':![],'countmachineretry':_0x28f090[_0x454824(0x281)],'scheduledat':moment()[_0x454824(0x15a)](_0x66708f[_0x454824(0x1c8)],'minutes')[_0x454824(0x14d)]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x28f090[_0x454824(0x106)],'ListId':_0x28f090[_0x454824(0x268)],'VoiceQueueId':_0x28f090[_0x454824(0x12b)]||undefined,'CampaignId':_0x28f090['CampaignId']||undefined})[_0x454824(0x22c)](loggerCatch('[rescheduleContact][Machine]')),_0x10b1b7({'reschedule':0x1}));});}}},Dialer['prototype'][a1225_0x25c06d(0x22d)]=function(_0x559811){const _0x4ee329=a1225_0x25c06d,_0x5287df=this[_0x4ee329(0x23e)][_0x559811['uniqueid']];let _0x5e3783;_0x5287df&&_0x5287df[_0x4ee329(0x24d)]===_0x4ee329(0x11d)&&(delete this[_0x4ee329(0x23e)][_0x559811[_0x4ee329(0x198)]],this[_0x4ee329(0x9a)](this['campaigns'][_0x5287df['queue']]),this[_0x4ee329(0x227)][_0x5287df[_0x4ee329(0x1bf)]][_0x4ee329(0x1ea)]+=0x1,_0x5e3783=new Hangup(_0x5287df,_0x559811),this['createHistory'](_0x5e3783)['catch'](loggerCatch(_0x4ee329(0x252))),this[_0x4ee329(0x26f)](_0x5e3783)[_0x4ee329(0x22c)](loggerCatch(_0x4ee329(0x175)))),_0x5287df&&_0x5287df[_0x4ee329(0x24d)]!=='ivr'&&isNotNull(this['voiceQueues'][_0x5287df[_0x4ee329(0x1bf)]][_0x4ee329(0xcd)])&&(delete this[_0x4ee329(0x23e)][_0x559811[_0x4ee329(0x198)]],this[_0x4ee329(0x9a)](this['voiceQueues'][_0x5287df[_0x4ee329(0x1bf)]]),this[_0x4ee329(0x159)][_0x5287df[_0x4ee329(0x1bf)]]['outboundAnswerCallsDay']+=0x1,this[_0x4ee329(0x159)][_0x5287df[_0x4ee329(0x1bf)]]['outboundAnswerAgiCallsDay']+=0x1,_0x5e3783=new Hangup(_0x5287df,_0x559811),_0x5e3783[_0x4ee329(0x28f)]=0x10,_0x5e3783[_0x4ee329(0x1fd)]=_0x4ee329(0x10d),_0x5e3783[_0x4ee329(0x13a)]=_0x4ee329(0x220),this[_0x4ee329(0x19c)](_0x5e3783)[_0x4ee329(0x22c)](loggerCatch('[syncHangupIvr][createHistory]')),this[_0x4ee329(0x26f)](_0x5e3783)[_0x4ee329(0x22c)](loggerCatch(_0x4ee329(0x175)))),_0x5287df&&_0x5287df[_0x4ee329(0x24d)]!==_0x4ee329(0x11d)&&!isNotNull(this[_0x4ee329(0x159)][_0x5287df[_0x4ee329(0x1bf)]][_0x4ee329(0xcd)])&&(delete this[_0x4ee329(0x23e)][_0x559811[_0x4ee329(0x198)]],this[_0x4ee329(0x9a)](this[_0x4ee329(0x159)][_0x5287df[_0x4ee329(0x1bf)]]),this[_0x4ee329(0x159)][_0x5287df[_0x4ee329(0x1bf)]]['outboundUnknownCallsDay']+=0x1,_0x5e3783=new Hangup(_0x5287df,_0x559811),_0x5e3783['state']=0xc,_0x5e3783[_0x4ee329(0x1fd)]=_0x559811[_0x4ee329(0x184)],_0x5e3783[_0x4ee329(0x13a)]=_0x4ee329(0x22f),this[_0x4ee329(0x19c)](_0x5e3783)['catch'](loggerCatch('[syncHangupIvr][createHistory]')),this['moveContactManagedDialer'](_0x5e3783)['catch'](loggerCatch(_0x4ee329(0x175))));},Dialer[a1225_0x25c06d(0x1e3)]['syncAgentComplete']=function(_0x1b9295){const _0xdac958=a1225_0x25c06d,_0x308a38=this[_0xdac958(0x23e)][_0x1b9295[_0xdac958(0x198)]];if(this['voiceQueues'][_0x1b9295[_0xdac958(0x1bf)]]){if(_0x308a38&&_0x308a38[_0xdac958(0x24d)]!==_0xdac958(0x11d)){delete this[_0xdac958(0x23e)][_0x1b9295[_0xdac958(0x198)]],this[_0xdac958(0x159)][_0x1b9295[_0xdac958(0x1bf)]][_0xdac958(0x103)]+=0x1;const _0x453828=new AgentComplete(_0x308a38,_0x1b9295);_0x1b9295[_0xdac958(0x193)]==='agent'&&(_0x453828[_0xdac958(0x138)]=this[_0xdac958(0x159)][_0x1b9295[_0xdac958(0x1bf)]][_0xdac958(0x225)]&&this[_0xdac958(0x159)][_0x1b9295['queue']][_0xdac958(0x242)]?moment()['format'](_0xdac958(0xe4)):undefined),this[_0xdac958(0x19c)](_0x453828)['catch'](loggerCatch(_0xdac958(0x1c3))),this[_0xdac958(0x26f)](_0x453828)[_0xdac958(0x22c)](loggerCatch(_0xdac958(0x1c1)));}}},Dialer['prototype'][a1225_0x25c06d(0x150)]=function(_0x36dec7){const _0x11a369=a1225_0x25c06d;this[_0x11a369(0x159)][_0x36dec7[_0x11a369(0x1bf)]]&&(this['uniqueId'][_0x36dec7['uniqueid']]&&this[_0x11a369(0x23e)][_0x36dec7[_0x11a369(0x198)]][_0x11a369(0x24d)]!==_0x11a369(0x11d)&&(this[_0x11a369(0x9a)](this[_0x11a369(0x159)][_0x36dec7['queue']]),this[_0x11a369(0x23e)][_0x36dec7[_0x11a369(0x198)]][_0x11a369(0x10c)]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss')));},Dialer['prototype']['queueCallerAbandonCreateState']=function(_0x51e005){const _0x26529c=a1225_0x25c06d;this[_0x26529c(0x19c)](_0x51e005)['catch'](loggerCatch(_0x26529c(0x1c3))),this[_0x26529c(0x26f)](_0x51e005)['catch'](loggerCatch(_0x26529c(0x26a)));},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x2a2)]=function(_0x3254c){const _0x21120c=a1225_0x25c06d,_0xe0a8ba=this[_0x21120c(0x23e)][_0x3254c[_0x21120c(0x198)]];if(this[_0x21120c(0x159)][_0x3254c['queue']]){if(_0xe0a8ba&&_0xe0a8ba[_0x21120c(0x24d)]!==_0x21120c(0x11d)){delete this[_0x21120c(0x23e)][_0x3254c[_0x21120c(0x198)]],this[_0x21120c(0x9a)](this['voiceQueues'][_0x3254c[_0x21120c(0x1bf)]]),_0xe0a8ba[_0x21120c(0x20d)]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');const _0xda031=new QueueCallerAbandon(_0xe0a8ba,_0x3254c);if(getSeconds(_0xe0a8ba[_0x21120c(0x20d)],_0xe0a8ba[_0x21120c(0x1b7)])>=_0xe0a8ba['dialQueueTimeout']){this[_0x21120c(0x159)][_0x3254c[_0x21120c(0x1bf)]]['predictiveIntervalDroppedCallsTimeout']+=0x1,this[_0x21120c(0x159)][_0x3254c[_0x21120c(0x1bf)]][_0x21120c(0x1f8)]+=0x1,this[_0x21120c(0x159)][_0x3254c[_0x21120c(0x1bf)]][_0x21120c(0x173)]+=0x1,_0xda031[_0x21120c(0x28f)]=0xa,_0xda031['statedesc']=_0x21120c(0x24e),_0xda031[_0x21120c(0x11f)]=_0x21120c(0xe6),_0xda031[_0x21120c(0x138)]=this['voiceQueues'][_0x3254c['queue']]['dialQueueProject2']?moment()['format']('YYYY-MM-DD\x20HH:mm:ss'):undefined,_0xda031[_0x21120c(0x263)]+=0x1,_0xda031[_0x21120c(0x1cb)]+=0x1;if(_0xda031['countdropretry']>=this[_0x21120c(0x159)][_0x3254c[_0x21120c(0x1bf)]][_0x21120c(0x164)])this['queueCallerAbandonCreateState'](_0xda031);else{this['rescheduleContact']({'active':![],'countdropretry':_0xda031[_0x21120c(0x263)],'scheduledat':moment()[_0x21120c(0x15a)](this[_0x21120c(0x159)][_0x3254c[_0x21120c(0x1bf)]][_0x21120c(0x18e)],_0x21120c(0x168))[_0x21120c(0x14d)](_0x21120c(0xe4)),'ContactId':_0xe0a8ba[_0x21120c(0x106)],'ListId':_0xe0a8ba['ListId'],'VoiceQueueId':_0xe0a8ba[_0x21120c(0x12b)]||undefined,'CampaignId':_0xe0a8ba[_0x21120c(0xb8)]||undefined})['catch'](loggerCatch(_0x21120c(0x28d)));const _0xc50385=new History(_0xda031);_0xc50385[_0x21120c(0x28f)]=0xa,_0xc50385[_0x21120c(0x1fd)]=_0x21120c(0x24e),_0xc50385[_0x21120c(0xdd)]=moment()[_0x21120c(0x14d)](_0x21120c(0xe4)),_0xc50385['endtime']=_0xc50385[_0x21120c(0xdd)],_0xc50385[_0x21120c(0x1f5)]=_0xda031[_0x21120c(0x1f5)],_0xc50385[_0x21120c(0x244)]=_0xda031[_0x21120c(0x244)],this['createHistory'](_0xc50385)[_0x21120c(0x22c)](loggerCatch(_0x21120c(0x13e)));}}else{this[_0x21120c(0x159)][_0x3254c[_0x21120c(0x1bf)]][_0x21120c(0xbf)]+=0x1,this['voiceQueues'][_0x3254c['queue']][_0x21120c(0x283)]+=0x1,_0xda031['state']=0xb,_0xda031[_0x21120c(0x1fd)]=_0x21120c(0xf7),_0xda031[_0x21120c(0x11f)]=_0x21120c(0x25e),_0xda031[_0x21120c(0xf1)]+=0x1,_0xda031[_0x21120c(0x1cb)]+=0x1;if(_0xda031[_0x21120c(0xf1)]>=this[_0x21120c(0x159)][_0x3254c[_0x21120c(0x1bf)]][_0x21120c(0x102)])this['queueCallerAbandonCreateState'](_0xda031);else{this[_0x21120c(0x1c6)]({'active':![],'countabandonedretry':_0xda031[_0x21120c(0xf1)],'scheduledat':moment()[_0x21120c(0x15a)](this['voiceQueues'][_0x3254c[_0x21120c(0x1bf)]][_0x21120c(0xd2)],_0x21120c(0x168))[_0x21120c(0x14d)](_0x21120c(0xe4)),'ContactId':_0xe0a8ba[_0x21120c(0x106)],'ListId':_0xe0a8ba[_0x21120c(0x268)],'VoiceQueueId':_0xe0a8ba['VoiceQueueId']||undefined,'CampaignId':_0xe0a8ba[_0x21120c(0xb8)]||undefined})['catch'](loggerCatch(_0x21120c(0x273)));const _0x59a3e2=new History(_0xda031);_0x59a3e2[_0x21120c(0x28f)]=0xb,_0x59a3e2[_0x21120c(0x1fd)]=_0x21120c(0xf7),_0x59a3e2[_0x21120c(0xdd)]=moment()[_0x21120c(0x14d)]('YYYY-MM-DD\x20HH:mm:ss'),_0x59a3e2[_0x21120c(0x264)]=_0x59a3e2[_0x21120c(0xdd)],_0x59a3e2[_0x21120c(0x1f5)]=_0xda031[_0x21120c(0x1f5)],_0x59a3e2['calleridnum']=_0xda031[_0x21120c(0x244)],this[_0x21120c(0x19c)](_0x59a3e2)['catch'](loggerCatch('[syncAgentComplete][createHistory][11]'));}}}}},Dialer['prototype'][a1225_0x25c06d(0x2a3)]=function(_0x32a8a1){const _0x1cbfbb=a1225_0x25c06d;this['actions'][_0x32a8a1[_0x1cbfbb(0x198)]]&&(this[_0x1cbfbb(0x167)][_0x32a8a1[_0x1cbfbb(0x198)]]['channel']=_0x32a8a1['channel']),this[_0x1cbfbb(0x23e)][_0x32a8a1['uniqueid']]&&(this[_0x1cbfbb(0x23e)][_0x32a8a1[_0x1cbfbb(0x198)]][_0x1cbfbb(0xd4)]=_0x32a8a1[_0x1cbfbb(0xd4)]);},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x1c4)]=function(_0x36f99d){const _0x4d5da9=a1225_0x25c06d;if(strategy[this[_0x4d5da9(0x159)][this[_0x4d5da9(0x167)][_0x36f99d[_0x4d5da9(0x1a4)]][_0x4d5da9(0x1bf)]]['strategy']]===_0x4d5da9(0x255))this[_0x4d5da9(0x167)][_0x36f99d['actionid']]&&_[_0x4d5da9(0x17a)](this[_0x4d5da9(0x167)][_0x36f99d['actionid']][_0x4d5da9(0x182)])&&_0x36f99d[_0x4d5da9(0x172)]==='1'&&_0x36f99d['paused']==='0'&&(this['agents'][_0x36f99d[_0x4d5da9(0x1e8)]]&&(!this[_0x4d5da9(0xc1)][_0x36f99d[_0x4d5da9(0x1e8)]][_0x4d5da9(0x182)]&&(this['agents'][_0x36f99d[_0x4d5da9(0x1e8)]][_0x4d5da9(0x182)]=!![],this[_0x4d5da9(0x167)][_0x36f99d[_0x4d5da9(0x1a4)]][_0x4d5da9(0x182)]=!![],this[_0x4d5da9(0x167)][_0x36f99d[_0x4d5da9(0x1a4)]][_0x4d5da9(0x1e8)]=_0x36f99d[_0x4d5da9(0x1e8)])));else(strategy[this[_0x4d5da9(0x159)][this[_0x4d5da9(0x167)][_0x36f99d['actionid']][_0x4d5da9(0x1bf)]][_0x4d5da9(0x267)]]||'rrmemory')===_0x4d5da9(0x1d3)&&(this['actions'][_0x36f99d[_0x4d5da9(0x1a4)]]&&(this['agents'][_0x36f99d[_0x4d5da9(0x1e8)]]&&(this[_0x4d5da9(0x167)][_0x36f99d['actionid']][_0x4d5da9(0x1e8)]=_0x36f99d[_0x4d5da9(0x1e8)],_['isNil'](this['queueBooked'][this[_0x4d5da9(0x167)][_0x36f99d[_0x4d5da9(0x1a4)]][_0x4d5da9(0x1bf)]])&&(this[_0x4d5da9(0x9f)][this[_0x4d5da9(0x167)][_0x36f99d[_0x4d5da9(0x1a4)]]['queue']]=[]),this[_0x4d5da9(0x9f)][this[_0x4d5da9(0x167)][_0x36f99d[_0x4d5da9(0x1a4)]][_0x4d5da9(0x1bf)]]['push'](_[_0x4d5da9(0xdb)](_[_0x4d5da9(0x21c)](this[_0x4d5da9(0x167)][_0x36f99d[_0x4d5da9(0x1a4)]],['idHopper',_0x4d5da9(0x1e8)]),{'status':_0x36f99d['status'],'paused':_0x36f99d['paused']})))));};function unlockQueueStatus(_0x39b67a,_0x325a4e){setTimeout(function(){const _0x22f15e=a1225_0x21d8;_[_0x22f15e(0xac)](_0x39b67a[_0x22f15e(0x20b)])&&loggerBooked[_0x22f15e(0x166)]('[unlockQueueStatus][undefined]',_0x325a4e),_0x39b67a[_0x22f15e(0x20b)]=!![],loggerBooked['info']('[booked][unlockQueueStatus]',_0x325a4e,JSON['stringify'](_['pick'](_0x39b67a,[_0x22f15e(0x1d0),_0x22f15e(0x20b)])));},0x1f3);}Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x142)]=function(_0x561745){const _0x336b19=a1225_0x25c06d,_0x59e6ac=this,_0x2a1ae6=_0x59e6ac[_0x336b19(0x159)][_0x59e6ac[_0x336b19(0x167)][_0x561745['actionid']]['queue']];if(strategy[this['voiceQueues'][this['actions'][_0x561745[_0x336b19(0x1a4)]][_0x336b19(0x1bf)]]['strategy']]===_0x336b19(0x255))this[_0x336b19(0x167)][_0x561745[_0x336b19(0x1a4)]]&&this[_0x336b19(0x167)][_0x561745[_0x336b19(0x1a4)]]['stateinterface']?this[_0x336b19(0x259)][_0x336b19(0x23b)](this[_0x336b19(0x167)][_0x561745[_0x336b19(0x1a4)]][_0x336b19(0xa0)],this['actions'][_0x561745[_0x336b19(0x1a4)]]['stateinterface'])[_0x336b19(0x22c)](function(_0x52bb3e){const _0x5e30d9=_0x336b19;logger[_0x5e30d9(0x166)]('[Catch][Preview][syncQueueStatusComplete]',util['inspect'](_0x52bb3e,{'showHidden':![],'depth':null}));})[_0x336b19(0xd9)](function(){const _0x13cf27=_0x336b19;_0x59e6ac[_0x13cf27(0x9a)](_0x59e6ac['voiceQueues'][_0x59e6ac[_0x13cf27(0x167)][_0x561745[_0x13cf27(0x1a4)]][_0x13cf27(0x1bf)]]),_0x59e6ac[_0x13cf27(0xc1)][_0x59e6ac[_0x13cf27(0x167)][_0x561745[_0x13cf27(0x1a4)]][_0x13cf27(0x1e8)]][_0x13cf27(0x182)]=![],delete _0x59e6ac['actions'][_0x561745[_0x13cf27(0x1a4)]],unlockQueueStatus(_0x2a1ae6);}):(this['updateOriginated'](this[_0x336b19(0x159)][this[_0x336b19(0x167)][_0x561745[_0x336b19(0x1a4)]][_0x336b19(0x1bf)]]),this[_0x336b19(0x1c6)]({'active':![],'ContactId':this[_0x336b19(0x167)][_0x561745[_0x336b19(0x1a4)]][_0x336b19(0x106)],'ListId':this[_0x336b19(0x167)][_0x561745[_0x336b19(0x1a4)]][_0x336b19(0x268)],'VoiceQueueId':this[_0x336b19(0x167)][_0x561745[_0x336b19(0x1a4)]][_0x336b19(0x12b)]||undefined,'CampaignId':this['actions'][_0x561745['actionid']]['CampaignId']||undefined})[_0x336b19(0x22c)](loggerCatch(_0x336b19(0x28b))),delete this[_0x336b19(0x167)][_0x561745['actionid']],unlockQueueStatus(_0x2a1ae6));else{if((strategy[this[_0x336b19(0x159)][this['actions'][_0x561745[_0x336b19(0x1a4)]]['queue']][_0x336b19(0x267)]]||'rrmemory')===_0x336b19(0x1d3)){let _0x206254;if(this[_0x336b19(0x167)][_0x561745[_0x336b19(0x1a4)]]&&!_['isEmpty'](this[_0x336b19(0x9f)][this['actions'][_0x561745[_0x336b19(0x1a4)]][_0x336b19(0x1bf)]])){this['queueBookedRR'][_0x59e6ac[_0x336b19(0x167)][_0x561745['actionid']]['queue']]&&(this[_0x336b19(0x160)][_0x59e6ac[_0x336b19(0x167)][_0x561745[_0x336b19(0x1a4)]][_0x336b19(0x1bf)]]=this[_0x336b19(0x160)][this[_0x336b19(0x167)][_0x561745[_0x336b19(0x1a4)]][_0x336b19(0x1bf)]]?this[_0x336b19(0x160)][this[_0x336b19(0x167)][_0x561745[_0x336b19(0x1a4)]][_0x336b19(0x1bf)]]:this[_0x336b19(0x9f)][this[_0x336b19(0x167)][_0x561745[_0x336b19(0x1a4)]]['queue']]?this[_0x336b19(0x9f)][this[_0x336b19(0x167)][_0x561745[_0x336b19(0x1a4)]]['queue']][_0x336b19(0x1bc)]||0x0:0x0);this[_0x336b19(0x9f)][this[_0x336b19(0x167)][_0x561745['actionid']][_0x336b19(0x1bf)]][_0x336b19(0x1bc)]=this['queueBookedRR'][this['actions'][_0x561745[_0x336b19(0x1a4)]][_0x336b19(0x1bf)]];for(let _0xb6b3c2=0x0;_0xb6b3c2=0x0?!![]:![];})[_0x5e497f(0x22c)](myreject(_0x205059)));}else _0x37854e['push'](ami[_0x5e497f(0x1f7)]({'action':_0x5e497f(0x9d),'command':util[_0x5e497f(0x14d)](_0x5e497f(0x280),_0x1ddf85,!_[_0x5e497f(0xac)](config[_0x5e497f(0xbe)][_0x254b17])?_0x254b17:'')})[_0x5e497f(0x176)](function(_0x5d9b17){const _0x5b1da9=_0x5e497f;return _0x5d9b17[_0x5b1da9(0x24c)]['indexOf'](_0x5b1da9(0x1e1))>=0x0?!![]:![];})[_0x5e497f(0x22c)](myreject(_0x205059)));Promise[_0x5e497f(0x1c7)](_0x37854e)[_0x5e497f(0x176)](function(_0x4bf012){const _0x229451=_0x5e497f,_0x139333=_[_0x229451(0xb3)](_0x4bf012);return _0x139333?_0x14a581(_0x139333):(_0x114829[_0x229451(0x233)]=_0x2e5a73?_0x229451(0x118):_0x229451(0x1db),_0x205059(msgResponse(_0x229451(0x190),_0x229451(0x284),_0x229451(0x154)+_0x2e5a73+'\x20'+_0x58fe91+'\x20Interval\x20is\x20overtime:\x20'+util['inspect'](_0x1ddf85,{'showHidden':![],'depth':null})+_0x229451(0x1ef)+_0x254b17)));})[_0x5e497f(0x22c)](function(_0x46fb67){const _0xe8b239=_0x5e497f;return _0x205059(msgResponse(_0xe8b239(0x12e),_0xe8b239(0x284),JSON[_0xe8b239(0xb0)](_0x46fb67)));});});},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0xca)]=function(_0x538214){const _0x300e0e=this;return function(){const _0x4d8814=a1225_0x21d8;switch(_0x538214[_0x4d8814(0x29b)]){case _0x4d8814(0x16e):freeVariablesPredictive(_0x538214),_0x300e0e[_0x4d8814(0x1e2)](_0x538214,0x1);break;case _0x4d8814(0x211):freeVariablesPredictive(_0x538214),_0x300e0e[_0x4d8814(0x1e2)](_0x538214,_0x538214[_0x4d8814(0x12c)]);break;case _0x4d8814(0x99):_0x300e0e[_0x4d8814(0x99)](_0x538214);break;case _0x4d8814(0x271):freeVariablesPredictive(_0x538214),_0x300e0e[_0x4d8814(0x1e2)](_0x538214,0x1);break;default:freeVariablesPredictive(_0x538214),logger[_0x4d8814(0x166)](_0x4d8814(0x12f),_0x538214[_0x4d8814(0x1d0)],_0x4d8814(0x27c));}};},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x143)]=function(_0x3ba513){const _0x9e10b5=this;return function(){const _0x41a029=a1225_0x21d8;_0x9e10b5[_0x41a029(0xcc)](_0x3ba513);};},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x224)]=function(_0x3db803){const _0x2eff8c=a1225_0x25c06d,_0x470530=this;isNotPreview(_0x3db803[_0x2eff8c(0x29b)])?isVoiceQueueOutbound(_0x3db803[_0x2eff8c(0x24d)])&&isActive(_0x3db803['dialActive'])?(_0x3db803[_0x2eff8c(0x13f)]=!![],Promise[_0x2eff8c(0xce)]()['then'](checkIsLoggedIn(_0x3db803,_0x3db803[_0x2eff8c(0xc2)]))[_0x2eff8c(0x176)](checkIsActive(_0x3db803,_0x3db803[_0x2eff8c(0xa4)]))['then'](checkInterval(_0x3db803))['then'](_0x470530['checkIsTrunkReachable'](_0x3db803))[_0x2eff8c(0x176)](_0x470530['checkIfTime'](_0x3db803[_0x2eff8c(0x201)],_0x3db803['dialTimezone'],_0x3db803[_0x2eff8c(0x1d0)],_0x3db803))['then'](_0x470530[_0x2eff8c(0x17c)](_0x3db803[_0x2eff8c(0x212)],_0x3db803[_0x2eff8c(0x10a)],_0x3db803[_0x2eff8c(0x1d0)],_0x3db803))[_0x2eff8c(0x176)](_0x470530['checkDialMethod'](_0x3db803))[_0x2eff8c(0x22c)](loggerCatchQueueSummary(_0x2eff8c(0x1c2),_0x3db803))):notSendMessagesQueue(_0x3db803):freeVariablesPredictive(_0x3db803);},Dialer['prototype'][a1225_0x25c06d(0x105)]=function(){const _0x11a249=a1225_0x25c06d,_0x22ccd6=this;let _0x32b8b3;for(const _0x597006 in this['campaigns']){typeof this['campaigns'][_0x597006]!==_0x11a249(0x163)&&(_0x32b8b3=this[_0x11a249(0x227)][_0x597006],isCampaignIvr(_0x32b8b3[_0x11a249(0x24d)])&&isActive(_0x32b8b3[_0x11a249(0xa2)])?(_0x32b8b3[_0x11a249(0x13f)]=!![],Promise[_0x11a249(0xce)]()['then'](checkIsActive(_0x32b8b3,_0x32b8b3['active']))[_0x11a249(0x176)](checkInterval(_0x32b8b3))[_0x11a249(0x176)](_0x22ccd6[_0x11a249(0x253)](_0x32b8b3))[_0x11a249(0x176)](_0x22ccd6[_0x11a249(0x11b)](_0x32b8b3['dialGlobalInterval'],_0x32b8b3['dialTimezone'],_0x32b8b3['name'],_0x32b8b3))[_0x11a249(0x176)](_0x22ccd6[_0x11a249(0x17c)](_0x32b8b3[_0x11a249(0x212)],_0x32b8b3[_0x11a249(0x10a)],_0x32b8b3[_0x11a249(0x1d0)],_0x32b8b3))[_0x11a249(0x176)](_0x22ccd6['launchHandleIvr'](_0x32b8b3))[_0x11a249(0x22c)](loggerCatchQueueSummary(_0x11a249(0x1fa),_0x32b8b3))):notSendMessagesCampaign(_0x32b8b3));}};function getCallerIdRandom(_0x5b5245,_0x302062){const _0x43228b=a1225_0x25c06d;_0x302062<=0x0&&(_0x302062=0x1);const _0x5ebadb=new RegExp(_0x43228b(0x12d)+_0x302062+'}$'),_0x497e51=Math[_0x43228b(0x221)](0xa,_0x302062-0x1),_0x46d012=Math[_0x43228b(0x221)](0xa,_0x302062)-0x1;return util[_0x43228b(0x14d)]('%s',_[_0x43228b(0x248)](_0x5b5245,_0x5ebadb,_[_0x43228b(0x14f)](_0x497e51,_0x46d012)));}function extractCalleridName(_0x1b14ba){const _0x480e02=a1225_0x25c06d,_0xdf3ea=_0x1b14ba[_0x480e02(0x207)](/"(.*?)"/);return _0xdf3ea?_0xdf3ea[0x1]:_0x1b14ba;}function extractCalleridNumber(_0x3f280a){const _0x43dc59=a1225_0x25c06d,_0x44e136=_0x3f280a[_0x43dc59(0x207)](/<(.*?)>/);return _0x44e136?_0x44e136[0x1]:_0x3f280a;}Dialer['prototype'][a1225_0x25c06d(0x1fc)]=function(_0xb687d7,_0x14adf1){const _0x142acd=getConfigService(),_0x15b75c=this,_0x54aa18=uuid['v4']();return this['actions'][_0x54aa18]=new Action(_0xb687d7,_0x14adf1,_0x54aa18),new Promise(function(_0x1a8ed8,_0x32efe5){const _0x5260d5=a1225_0x21d8;if(_['isUndefined'](_0xb687d7)&&_0x5260d5(0xbd)!==typeof _0xb687d7)return _0x32efe5(msgResponse(_0x5260d5(0x21a),'Failure','voiceQueue\x20is\x20undefine'));if(_[_0x5260d5(0xac)](_0x14adf1['Contact']['phone'])||_0x14adf1[_0x5260d5(0xaa)][_0x5260d5(0x24f)]===null)return _0x32efe5(msgResponse('originate',_0x5260d5(0x284),_0x5260d5(0x92)));const _0x5c18b2={'XMD-CALLERID':_0x15b75c['actions'][_0x54aa18][_0x5260d5(0x15e)](),'XMD-AGI':_0xb687d7['dialQueueProject']?util[_0x5260d5(0x14d)](_0x5260d5(0x230),_0x142acd[_0x5260d5(0x21f)],_0xb687d7['dialQueueProject']):_0x5260d5(0xe9),'XMD-AGIAFTER':_0xb687d7[_0x5260d5(0x225)]?util[_0x5260d5(0x14d)](_0x5260d5(0x230),_0x142acd[_0x5260d5(0x21f)],_0xb687d7[_0x5260d5(0x225)]):_0x5260d5(0xe9),'XMD-QUEUE':_0xb687d7[_0x5260d5(0x24d)]===_0x5260d5(0x156)?util[_0x5260d5(0x14d)](_0x5260d5(0x14c),_0xb687d7['name'],_0xb687d7[_0x5260d5(0x132)]||'',_0xb687d7[_0x5260d5(0x242)]?'c':'',_0xb687d7[_0x5260d5(0x1e4)]||0x3):_0x5260d5(0xe9),'XMD-CONTACTID':_0x14adf1['ContactId'],'XMD-CDRTYPE':_0x5260d5(0x15c),'CALLERID(all)':_0x15b75c[_0x5260d5(0x167)][_0x54aa18]['getCaller'](),'XMD-AMD':_0xb687d7[_0x5260d5(0x25a)]?_0x5260d5(0x1b3):_0x5260d5(0xe9),'XMD-DESTINATION':_0x5260d5(0x1af)};_0xb687d7[_0x5260d5(0x25a)]&&(_0x5c18b2[_0x5260d5(0x165)]=_0xb687d7['dialAMDInitialSilence']||0x9c4,_0x5c18b2[_0x5260d5(0xec)]=_0xb687d7[_0x5260d5(0xfa)]||0x5dc,_0x5c18b2[_0x5260d5(0x151)]=_0xb687d7[_0x5260d5(0xeb)]||0x320,_0x5c18b2[_0x5260d5(0xdc)]=_0xb687d7['dialAMDTotalAnalysisTime']||0x1388,_0x5c18b2[_0x5260d5(0x94)]=_0xb687d7[_0x5260d5(0x161)]||0x64,_0x5c18b2[_0x5260d5(0x200)]=_0xb687d7['dialAMDBetweenWordsSilence']||0x32,_0x5c18b2[_0x5260d5(0xea)]=_0xb687d7[_0x5260d5(0x245)]||0x3,_0x5c18b2[_0x5260d5(0x1a0)]=_0xb687d7['dialAMDSilenceThreshold']||0x100,_0x5c18b2[_0x5260d5(0xd8)]=_0xb687d7[_0x5260d5(0x10b)]||0x1388);_0xb687d7[_0x5260d5(0x24d)]===_0x5260d5(0x156)?_0x5c18b2[_0x5260d5(0x202)]=_0x14adf1['VoiceQueueId']:_0x5c18b2[_0x5260d5(0x219)]=_0x14adf1['CampaignId'];for(const _0x2afbe1 in _0x14adf1[_0x5260d5(0xaa)]){typeof _0x14adf1[_0x5260d5(0xaa)][_0x2afbe1]!=='undefined'&&(isNotNull(_0x14adf1[_0x5260d5(0xaa)][_0x2afbe1])&&_0x2afbe1!=='id'&&_0x2afbe1!==_0x5260d5(0x112)&&_0x2afbe1!==_0x5260d5(0x1f3)&&_0x2afbe1!=='updatedAt'&&(_0x5c18b2[util[_0x5260d5(0x14d)](_0x5260d5(0x1b8),_0x5260d5(0x11e),_[_0x5260d5(0x1c5)](_0x2afbe1))]=_0x14adf1[_0x5260d5(0xaa)][_0x2afbe1]));}const _0x481c2b=_0x15b75c[_0x5260d5(0x276)](_0xb687d7[_0x5260d5(0xc3)])?getCallerId(_0xb687d7[_0x5260d5(0xc3)]['callerid'],_0xb687d7[_0x5260d5(0x114)],_0xb687d7['dialRandomLastDigitCallerIdNumber']>0x0?getCallerIdRandom(_0xb687d7['dialOriginateCallerIdNumber'],_0xb687d7[_0x5260d5(0x22e)]):_0xb687d7[_0x5260d5(0xb4)]):getCallerId(_[_0x5260d5(0x17a)](_0xb687d7[_0x5260d5(0xe3)])?_0xb687d7[_0x5260d5(0xc3)][_0x5260d5(0x15d)]:_0xb687d7[_0x5260d5(0xe3)][_0x5260d5(0x15d)],_0xb687d7[_0x5260d5(0x114)],_0xb687d7[_0x5260d5(0x22e)]>0x0?getCallerIdRandom(_0xb687d7[_0x5260d5(0xb4)],_0xb687d7['dialRandomLastDigitCallerIdNumber']):_0xb687d7[_0x5260d5(0xb4)]);if(_0x481c2b){const _0x47f31d=extractCalleridName(_0x481c2b);_0x5c18b2[_0x5260d5(0x2ae)]=_0x47f31d,_0x15b75c[_0x5260d5(0x167)][_0x54aa18][_0x5260d5(0x18f)]=_0x47f31d;const _0x4c16a0=extractCalleridNumber(_0x481c2b);_0x5c18b2[_0x5260d5(0xae)]==_0x4c16a0,_0x15b75c[_0x5260d5(0x167)][_0x54aa18][_0x5260d5(0x18d)]=_0x4c16a0;}return ami['Action']({'actionid':_0x54aa18,'action':_0x5260d5(0x21a),'channel':_0x15b75c['isTrunkReachable'](_0xb687d7['Trunk'])?util[_0x5260d5(0x14d)](_0x5260d5(0x282),_0xb687d7[_0x5260d5(0xc3)][_0x5260d5(0x1d0)],isNotNull(_0xb687d7[_0x5260d5(0x17f)])?_0xb687d7[_0x5260d5(0x17f)][_0x5260d5(0x13c)]()||'':'',_0xb687d7['dialCutDigit']>0x0?_0x14adf1[_0x5260d5(0xaa)]['phone'][_0x5260d5(0x18c)](_0xb687d7['dialCutDigit']):_0x14adf1['Contact'][_0x5260d5(0x24f)]):util['format'](_0x5260d5(0x282),_[_0x5260d5(0x17a)](_0xb687d7[_0x5260d5(0xe3)])?_0xb687d7[_0x5260d5(0xc3)][_0x5260d5(0x1d0)]:_0xb687d7[_0x5260d5(0xe3)][_0x5260d5(0x1d0)],isNotNull(_0xb687d7[_0x5260d5(0x17f)])?_0xb687d7['dialPrefix']['trim']()||'':'',_0xb687d7[_0x5260d5(0x1d8)]>0x0?_0x14adf1[_0x5260d5(0xaa)][_0x5260d5(0x24f)][_0x5260d5(0x18c)](_0xb687d7[_0x5260d5(0x1d8)]):_0x14adf1['Contact'][_0x5260d5(0x24f)]),'callerid':_0x481c2b,'Exten':'xcally-motion-dialer','Context':'from-sip','Priority':'1','variable':_0x5c18b2,'timeout':(_0xb687d7[_0x5260d5(0x1f9)]||0x1e)*0x3e8,'async':!![],'channelid':_0x54aa18})['then'](function(_0x585524){return _0x1a8ed8(_0x585524);})[_0x5260d5(0x22c)](function(_0xecc6a6){const _0x38e261=_0x5260d5;_0xb687d7[_0x38e261(0x294)]+=0x1;const _0x51da95=new History(_0x15b75c[_0x38e261(0x167)][_0x54aa18]);logger['error'](util[_0x38e261(0x14d)](_0x38e261(0x19b),JSON[_0x38e261(0xb0)](_0xecc6a6))),_0x51da95['state']=0xe,_0x51da95[_0x38e261(0x1fd)]=_0x38e261(0x25b),_0x51da95['starttime']=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),_0x51da95[_0x38e261(0x264)]=_0x51da95[_0x38e261(0xdd)],_0x15b75c['createHistory'](_0x51da95)[_0x38e261(0x22c)](loggerCatch(_0x38e261(0x131))),_0x15b75c[_0x38e261(0x26f)](_0x51da95)[_0x38e261(0x22c)](loggerCatch(_0x38e261(0x131)))['finally'](function(){const _0x469d07=_0x38e261;return delete _0x15b75c[_0x469d07(0x167)][_0x54aa18],_0x32efe5(msgResponse(_0x469d07(0x21a),'Error',_0x469d07(0x194)));});});});},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x291)]=function(_0x2b9eda){const _0x154615=a1225_0x25c06d,_0x1194ee=this['actions'][_0x2b9eda[_0x154615(0x1a4)]];if(_0x1194ee){delete this[_0x154615(0x167)][_0x2b9eda[_0x154615(0x1a4)]],_0x1194ee[_0x154615(0x1b7)]=moment()[_0x154615(0x14d)](_0x154615(0xe4));const _0x27ee1f=_0x1194ee[_0x154615(0x24d)]===_0x154615(0x11d)?this[_0x154615(0x227)][_0x1194ee[_0x154615(0x1bf)]]:this['voiceQueues'][_0x1194ee['getQueue']()];if(!this[_0x154615(0x2a5)](_0x2b9eda[_0x154615(0x199)]))return this[_0x154615(0x9a)](_0x27ee1f),this['callProgressDetecting'](_0x1194ee,_0x27ee1f,_0x2b9eda)[_0x154615(0x176)](function(){})[_0x154615(0x22c)](loggerCatch('[callProgressDetecting]\x20'));else this[_0x154615(0x23e)][_0x2b9eda[_0x154615(0x198)]]=_0x1194ee;}},Dialer['prototype']['checkRetriveMax']=function(_0x3a8359,_0x12447f,_0x2a5f4f){const _0x31037b=a1225_0x25c06d,_0x45998e=new History(_0x12447f);if(_0x45998e[_0x31037b(0x24b)]+_0x45998e[_0x31037b(0x27e)]+_0x45998e[_0x31037b(0x140)]+_0x45998e['countnosuchnumberretry']+_0x45998e[_0x31037b(0x263)]+_0x45998e[_0x31037b(0xf1)]+_0x45998e['countmachineretry']+_0x45998e[_0x31037b(0x15f)]>=_0x2a5f4f[_0x31037b(0x270)]-0x1)return!![];switch(_0x3a8359){case 0x3:if(_0x45998e[_0x31037b(0x140)]>=_0x2a5f4f[_0x31037b(0xb1)]-0x1)return!![];else this[_0x31037b(0x1c6)]({'active':![],'countnoanswerretry':_0x45998e[_0x31037b(0x140)]+=0x1,'scheduledat':moment()[_0x31037b(0x15a)](_0x2a5f4f['dialNoAnswerRetryFrequency'],_0x31037b(0x168))['format'](_0x31037b(0xe4)),'ContactId':_0x45998e[_0x31037b(0x106)],'ListId':_0x45998e[_0x31037b(0x268)],'VoiceQueueId':_0x45998e[_0x31037b(0x12b)]||undefined,'CampaignId':_0x45998e[_0x31037b(0xb8)]||undefined})['catch'](loggerCatch('[rescheduleContact][NoAnswer]'));break;case 0x5:if(_0x45998e[_0x31037b(0x24b)]>=_0x2a5f4f[_0x31037b(0xab)]-0x1)return!![];else this[_0x31037b(0x1c6)]({'active':![],'countbusyretry':_0x45998e[_0x31037b(0x24b)]+=0x1,'scheduledat':moment()[_0x31037b(0x15a)](_0x2a5f4f[_0x31037b(0xf9)],_0x31037b(0x168))['format'](_0x31037b(0xe4)),'ContactId':_0x45998e['ContactId'],'ListId':_0x45998e[_0x31037b(0x268)],'VoiceQueueId':_0x45998e['VoiceQueueId']||undefined,'CampaignId':_0x45998e[_0x31037b(0xb8)]||undefined})[_0x31037b(0x22c)](loggerCatch(_0x31037b(0xa8)));break;case 0x8:if(_0x45998e[_0x31037b(0x27e)]>=_0x2a5f4f[_0x31037b(0x210)]-0x1)return!![];else this[_0x31037b(0x1c6)]({'active':![],'countcongestionretry':_0x45998e[_0x31037b(0x27e)]+=0x1,'scheduledat':moment()['add'](_0x2a5f4f['dialCongestionRetryFrequency'],_0x31037b(0x168))['format'](_0x31037b(0xe4)),'ContactId':_0x45998e['ContactId'],'ListId':_0x45998e[_0x31037b(0x268)],'VoiceQueueId':_0x45998e[_0x31037b(0x12b)]||undefined,'CampaignId':_0x45998e[_0x31037b(0xb8)]||undefined})[_0x31037b(0x22c)](loggerCatch(_0x31037b(0x254)));break;case 0x0:if(_0x45998e[_0x31037b(0x246)]>=_0x2a5f4f[_0x31037b(0x195)]-0x1)return!![];else this[_0x31037b(0x1c6)]({'active':![],'countnosuchnumberretry':_0x45998e[_0x31037b(0x246)]+=0x1,'scheduledat':moment()[_0x31037b(0x15a)](_0x2a5f4f[_0x31037b(0x293)],_0x31037b(0x168))[_0x31037b(0x14d)](_0x31037b(0xe4)),'ContactId':_0x45998e[_0x31037b(0x106)],'ListId':_0x45998e['ListId'],'VoiceQueueId':_0x45998e['VoiceQueueId']||undefined,'CampaignId':_0x45998e[_0x31037b(0xb8)]||undefined})[_0x31037b(0x22c)](loggerCatch(_0x31037b(0x238)));break;case 0xa:if(_0x45998e[_0x31037b(0x263)]>=_0x2a5f4f['dialDropMaxRetry']-0x1)return!![];else this[_0x31037b(0x1c6)]({'active':![],'countdropretry':_0x45998e['countdropretry']+=0x1,'scheduledat':moment()[_0x31037b(0x15a)](_0x2a5f4f[_0x31037b(0x18e)],_0x31037b(0x168))[_0x31037b(0x14d)]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x45998e[_0x31037b(0x106)],'ListId':_0x45998e[_0x31037b(0x268)],'VoiceQueueId':_0x45998e[_0x31037b(0x12b)]||undefined,'CampaignId':_0x45998e[_0x31037b(0xb8)]||undefined})[_0x31037b(0x22c)](loggerCatch(_0x31037b(0x28d)));break;case 0xb:if(_0x45998e['countabandonedretry']>=_0x2a5f4f[_0x31037b(0x102)]-0x1)return!![];else this['rescheduleContact']({'active':![],'countabandonedretry':_0x45998e['countabandonedretry']+=0x1,'scheduledat':moment()[_0x31037b(0x15a)](_0x2a5f4f[_0x31037b(0xd2)],_0x31037b(0x168))[_0x31037b(0x14d)](_0x31037b(0xe4)),'ContactId':_0x45998e['ContactId'],'ListId':_0x45998e['ListId'],'VoiceQueueId':_0x45998e[_0x31037b(0x12b)]||undefined,'CampaignId':_0x45998e[_0x31037b(0xb8)]||undefined})[_0x31037b(0x22c)](loggerCatch(_0x31037b(0x273)));break;case 0x13:if(_0x45998e['countmachineretry']>=_0x2a5f4f[_0x31037b(0x298)]-0x1)return!![];else this['rescheduleContact']({'active':![],'countmachineretry':_0x45998e[_0x31037b(0x281)]+=0x1,'scheduledat':moment()[_0x31037b(0x15a)](_0x2a5f4f[_0x31037b(0x1c8)],_0x31037b(0x168))[_0x31037b(0x14d)](_0x31037b(0xe4)),'ContactId':_0x45998e[_0x31037b(0x106)],'ListId':_0x45998e[_0x31037b(0x268)],'VoiceQueueId':_0x45998e['VoiceQueueId']||undefined,'CampaignId':_0x45998e[_0x31037b(0xb8)]||undefined})[_0x31037b(0x22c)](loggerCatch('[rescheduleContact][Machine]'));break;case 0x14:if(_0x45998e[_0x31037b(0x15f)]>=_0x2a5f4f['dialAgentRejectMaxRetry']-0x1)return!![];else this[_0x31037b(0x1c6)]({'active':![],'countagentrejectretry':_0x45998e[_0x31037b(0x15f)]+=0x1,'scheduledat':moment()[_0x31037b(0x15a)](_0x2a5f4f[_0x31037b(0x21d)],_0x31037b(0x168))[_0x31037b(0x14d)](_0x31037b(0xe4)),'ContactId':_0x45998e[_0x31037b(0x106)],'ListId':_0x45998e[_0x31037b(0x268)],'VoiceQueueId':_0x45998e['VoiceQueueId']||undefined,'CampaignId':_0x45998e['CampaignId']||undefined})[_0x31037b(0x22c)](loggerCatch(_0x31037b(0x20e)));break;default:return!![];}},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x185)]=function(_0x4f3a28,_0x131568,_0x47a694){const _0x1b2329=this,_0x2c654d=new History(_0x4f3a28);return new Promise(function(_0x3719d5,_0x17c51f){const _0x28982e=a1225_0x21d8;if(_[_0x28982e(0xac)](_0x131568)&&_0x28982e(0xbd)!==typeof _0x131568)return _0x17c51f(msgResponse(_0x28982e(0x223),_0x28982e(0x284),_0x28982e(0x29d)));if(_[_0x28982e(0xac)](_0x47a694)&&_0x28982e(0xbd)!==typeof _0x47a694)return _0x17c51f(msgResponse(_0x28982e(0x223),_0x28982e(0x284),'evt\x20is\x20undefine'));switch(_0x47a694['reason']){case'0':_0x131568[_0x28982e(0x23a)]+=0x1,_0x2c654d[_0x28982e(0x28f)]=0x0,_0x2c654d['statedesc']='NoSuchNumber',_0x2c654d[_0x28982e(0x246)]+=0x1,_0x2c654d[_0x28982e(0x1cb)]+=0x1,ami['emit'](_0x28982e(0x1ab),ut[_0x28982e(0x178)](_0x4f3a28,_0x28982e(0x107))),_0x1b2329['createHistory'](_0x2c654d)[_0x28982e(0x22c)](loggerCatch(_0x28982e(0x1de)));_0x1b2329[_0x28982e(0x120)](0x0,_0x4f3a28,_0x131568)&&(_0x2c654d[_0x28982e(0x246)]>=_0x131568[_0x28982e(0x195)]?_0x1b2329['createStateFinal'](_0x2c654d,_0x3719d5,_0x17c51f,'reason\x200\x20no\x20such\x20number....'):_0x1b2329[_0x28982e(0x121)](_0x2c654d,_0x3719d5,_0x17c51f,_0x28982e(0x181)));break;case'3':_0x131568[_0x28982e(0x108)]+=0x1,_0x2c654d[_0x28982e(0x28f)]=0x3,_0x2c654d[_0x28982e(0x1fd)]=_0x28982e(0x158),_0x2c654d[_0x28982e(0x140)]+=0x1,_0x2c654d[_0x28982e(0x1cb)]+=0x1,ami[_0x28982e(0x265)](_0x28982e(0x110),ut[_0x28982e(0x178)](_0x4f3a28,_0x28982e(0x157))),_0x1b2329[_0x28982e(0x19c)](_0x2c654d)[_0x28982e(0x22c)](loggerCatch(_0x28982e(0x285)));_0x1b2329[_0x28982e(0x120)](0x3,_0x4f3a28,_0x131568)&&(_0x2c654d[_0x28982e(0x140)]>=_0x131568[_0x28982e(0xb1)]?_0x1b2329[_0x28982e(0x1da)](_0x2c654d,_0x3719d5,_0x17c51f,_0x28982e(0x240)):_0x1b2329[_0x28982e(0x121)](_0x2c654d,_0x3719d5,_0x17c51f,'reason\x203\x20ringing\x20no\x20answer'));break;case'5':_0x131568[_0x28982e(0xc4)]+=0x1,_0x2c654d[_0x28982e(0x28f)]=0x5,_0x2c654d[_0x28982e(0x1fd)]=_0x28982e(0x9e),_0x2c654d[_0x28982e(0x24b)]+=0x1,_0x2c654d[_0x28982e(0x1cb)]+=0x1,ami['emit'](_0x28982e(0x258),ut[_0x28982e(0x178)](_0x4f3a28,_0x28982e(0x186))),_0x1b2329[_0x28982e(0x19c)](_0x2c654d)[_0x28982e(0x22c)](loggerCatch(_0x28982e(0xd5)));_0x1b2329[_0x28982e(0x120)](0x5,_0x4f3a28,_0x131568)&&(_0x2c654d[_0x28982e(0x24b)]>=_0x131568[_0x28982e(0xab)]?_0x1b2329[_0x28982e(0x1da)](_0x2c654d,_0x3719d5,_0x17c51f,'reason\x205\x20busy'):_0x1b2329[_0x28982e(0x121)](_0x2c654d,_0x3719d5,_0x17c51f,_0x28982e(0x1d4)));break;case'8':_0x131568[_0x28982e(0xc5)]+=0x1,_0x2c654d[_0x28982e(0x28f)]=0x8,_0x2c654d[_0x28982e(0x1fd)]='Congestion',_0x2c654d['countcongestionretry']+=0x1,_0x2c654d['countglobal']+=0x1,ami['emit'](_0x28982e(0x124),ut[_0x28982e(0x178)](_0x4f3a28,_0x28982e(0x119))),_0x1b2329[_0x28982e(0x19c)](_0x2c654d)[_0x28982e(0x22c)](loggerCatch('[syncAgentComplete][createHistory][8]'));_0x1b2329[_0x28982e(0x120)](0x8,_0x4f3a28,_0x131568)&&(_0x2c654d[_0x28982e(0x27e)]>=_0x131568[_0x28982e(0x210)]?_0x1b2329[_0x28982e(0x1da)](_0x2c654d,_0x3719d5,_0x17c51f,_0x28982e(0x1ee)):_0x1b2329[_0x28982e(0x121)](_0x2c654d,_0x3719d5,_0x17c51f,_0x28982e(0x1ee)));break;case'11':_0x131568[_0x28982e(0x1a5)]+=0x1,_0x2c654d['state']=0xb,_0x2c654d['statedesc']=_0x28982e(0xf7),_0x2c654d[_0x28982e(0xf1)]+=0x1,_0x2c654d['countglobal']+=0x1,_0x1b2329[_0x28982e(0x19c)](_0x2c654d)[_0x28982e(0x22c)](loggerCatch(_0x28982e(0x1f0)));_0x1b2329['checkRetriveMax'](0xb,_0x4f3a28,_0x131568)&&(_0x2c654d['countabandonedretry']>=_0x131568[_0x28982e(0x102)]?_0x1b2329[_0x28982e(0x1da)](_0x2c654d,_0x3719d5,_0x17c51f,_0x28982e(0x277)):_0x1b2329['stateGlobal'](_0x2c654d,_0x3719d5,_0x17c51f,'reason\x2011\x20abandoned'));break;case'20':_0x131568[_0x28982e(0x188)]+=0x1,_0x2c654d[_0x28982e(0x28f)]=0x14,_0x2c654d[_0x28982e(0x1fd)]=_0x28982e(0x18a),_0x2c654d[_0x28982e(0x15f)]+=0x1,_0x2c654d['countglobal']+=0x1,ami[_0x28982e(0x265)](_0x28982e(0x23d),ut['buildObj'](_0x4f3a28,_0x28982e(0x24a))),_0x1b2329[_0x28982e(0x19c)](_0x2c654d)[_0x28982e(0x22c)](loggerCatch(_0x28982e(0x1ac)));_0x1b2329[_0x28982e(0x120)](0x14,_0x4f3a28,_0x131568)&&(_0x2c654d[_0x28982e(0x15f)]>=_0x131568[_0x28982e(0x2ab)]?_0x1b2329[_0x28982e(0x1da)](_0x2c654d,_0x3719d5,_0x17c51f,'reason\x2020\x20agentreject'):_0x1b2329[_0x28982e(0x121)](_0x2c654d,_0x3719d5,_0x17c51f,'reason\x2020\x20agentreject'));break;default:_0x131568[_0x28982e(0x249)]+=0x1,_0x2c654d['state']=0xc,_0x2c654d['statedesc']=_0x47a694['reason'],_0x1b2329[_0x28982e(0x19c)](_0x2c654d)[_0x28982e(0x22c)](loggerCatch(_0x28982e(0xb6)));_0x1b2329[_0x28982e(0x120)](_0x47a694[_0x28982e(0x193)],_0x4f3a28,_0x131568)&&(_0x2c654d[_0x28982e(0x24b)]+_0x2c654d[_0x28982e(0x27e)]+_0x2c654d[_0x28982e(0x140)]+_0x2c654d[_0x28982e(0x246)]+_0x2c654d[_0x28982e(0x263)]+_0x2c654d['countabandonedretry']+_0x2c654d[_0x28982e(0x281)]+_0x2c654d[_0x28982e(0x15f)]>=_0x131568[_0x28982e(0x270)]?_0x1b2329[_0x28982e(0x121)](_0x2c654d,_0x3719d5,_0x17c51f,_0x47a694[_0x28982e(0x193)]):_0x1b2329['createStateFinal'](_0x2c654d,_0x3719d5,_0x17c51f,_0x47a694[_0x28982e(0x193)]));}});},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x121)]=function(_0xa963c7,_0x51dec1,_0x2199a5,_0x33145f){const _0x25af4c=a1225_0x25c06d,_0x3fde4d=new Final(_0xa963c7);_0x3fde4d[_0x25af4c(0x28f)]=0xf,_0x3fde4d[_0x25af4c(0x1fd)]=_0x25af4c(0x127),this[_0x25af4c(0x1da)](_0x3fde4d,_0x51dec1,_0x2199a5,_0x33145f);},Dialer['prototype'][a1225_0x25c06d(0x1da)]=function(_0x39efcf,_0x3fc37c,_0xd0f15a,_0x30171f){const _0x17569b=a1225_0x25c06d;this['moveContactManagedDialer'](_0x39efcf)['then'](function(){const _0x5b2228=a1225_0x21d8;return _0x3fc37c(msgResponse(_0x5b2228(0x223),'Success',_0x30171f));})[_0x17569b(0x22c)](function(){const _0x259ae9=_0x17569b;return _0xd0f15a(msgResponse(_0x259ae9(0x290),_0x259ae9(0x284),_0x259ae9(0x192)));});},Dialer['prototype'][a1225_0x25c06d(0x99)]=function(_0x4df9ea){const _0xb6fd38=a1225_0x25c06d,_0x174e62=_0x4df9ea['dialPredictiveOptimizationPercentage']/0x64,_0x1100a6=_0x4df9ea['outboundDropCallsDayTimeout']/(_0x4df9ea['outboundDropCallsDayTimeout']+_0x4df9ea[_0xb6fd38(0x103)]),_0x42e210=Math[_0xb6fd38(0xda)](_0x4df9ea[_0xb6fd38(0x1dc)]*(_0x4df9ea[_0xb6fd38(0x1b9)]/0x64)),_0x40338f=Math[_0xb6fd38(0xda)](_0x4df9ea[_0xb6fd38(0x1dc)]*(_0x4df9ea['predictiveIntervalMinThreshold']/0x64)),_0x215d4a=_0x4df9ea[_0xb6fd38(0x145)]+_0x4df9ea[_0xb6fd38(0xd6)],_0x5a3117=Math[_0xb6fd38(0x2ac)](_0x4df9ea[_0xb6fd38(0xc7)]*_0x4df9ea[_0xb6fd38(0x101)]*_0x4df9ea[_0xb6fd38(0x1ec)]*_0x4df9ea[_0xb6fd38(0x113)]);if(_[_0xb6fd38(0xac)](_0x4df9ea[_0xb6fd38(0x231)]))!_[_0xb6fd38(0xac)](_0x4df9ea[_0xb6fd38(0x155)])&&(_0x4df9ea['startPredictive']=undefined,loggerPredictive[_0xb6fd38(0x166)](_0xb6fd38(0x146),_0xb6fd38(0xe7))),!_[_0xb6fd38(0xac)](_0x4df9ea[_0xb6fd38(0x236)])&&(loggerPredictive[_0xb6fd38(0x166)](_0xb6fd38(0x146),_0xb6fd38(0x288)),clearInterval(_0x4df9ea[_0xb6fd38(0x236)]),_0x4df9ea['handlePredictive']=undefined),_0x4df9ea[_0xb6fd38(0x231)]=moment()[_0xb6fd38(0x14d)]('YYYY-MM-DD\x20HH:mm:ss'),loggerPredictive[_0xb6fd38(0xd1)](_0x4df9ea['name'],_0xb6fd38(0x1d5),_0x4df9ea[_0xb6fd38(0x231)]),this[_0xb6fd38(0x1e2)](_0x4df9ea,0x1);else{if(ifInterval(_0x4df9ea['dialPredictiveInterval'],_0x4df9ea[_0xb6fd38(0x231)]))this[_0xb6fd38(0x1e2)](_0x4df9ea,0x1),loggerPredictiveCalls['info'](_0xb6fd38(0x170),_0x4df9ea[_0xb6fd38(0x231)],_0x4df9ea['name']),_0x4df9ea[_0xb6fd38(0xc7)]=0x0,_0x4df9ea[_0xb6fd38(0x173)]=0x0;else{if(_0x174e62<_0x1100a6&&_0x4df9ea[_0xb6fd38(0x2a4)]==='dropRate')freeVariablesPredictive(_0x4df9ea),loggerPredictive['info'](_0xb6fd38(0x1ad),_0xb6fd38(0xe0),_0x1100a6,_0xb6fd38(0x231),_0x4df9ea[_0xb6fd38(0x1d0)]);else{if(_0x5a3117<_0x4df9ea[_0xb6fd38(0x173)]&&_0x4df9ea[_0xb6fd38(0x2a4)]===_0xb6fd38(0x183))freeVariablesPredictive(_0x4df9ea),loggerPredictive[_0xb6fd38(0xd1)](_0xb6fd38(0x19d),_0xb6fd38(0x286),_0x5a3117,_0xb6fd38(0xa3),_0x4df9ea[_0xb6fd38(0x173)],_0xb6fd38(0x231),_0x4df9ea[_0xb6fd38(0x1d0)]);else{if(!ifInterval(_0x4df9ea[_0xb6fd38(0x27f)],_0x4df9ea[_0xb6fd38(0x231)])&&_[_0xb6fd38(0xac)](_0x4df9ea[_0xb6fd38(0x155)])&&!_[_0xb6fd38(0xac)](_0x4df9ea['startProgressive']))_0x4df9ea[_0xb6fd38(0x155)]=moment()[_0xb6fd38(0x14d)]('YYYY-MM-DD\x20HH:mm:ss'),loggerPredictive['info'](_0x4df9ea[_0xb6fd38(0x1d0)],'started\x20in\x20predictive\x20at',_0x4df9ea[_0xb6fd38(0x155)]),this['averageHandleTime'](_0x4df9ea[_0xb6fd38(0x27f)])[_0xb6fd38(0x176)](this[_0xb6fd38(0x1b2)](_0x4df9ea))['then'](mergeDataErlangB(_0x4df9ea))[_0xb6fd38(0x176)](this[_0xb6fd38(0xb2)](_0x4df9ea))['catch'](loggerCatchPredictive('Predictive\x20after\x20first\x20interval',_0x4df9ea));else{if(!ifInterval(_0x4df9ea[_0xb6fd38(0x27f)],_0x4df9ea[_0xb6fd38(0x155)]))_0x4df9ea[_0xb6fd38(0x173)]=0x0,_0x4df9ea[_0xb6fd38(0x155)]=moment()[_0xb6fd38(0x14d)](_0xb6fd38(0xe4)),loggerPredictive['info'](_0x4df9ea['name'],_0xb6fd38(0x10e),_0x4df9ea['startPredictive']),clearInterval(_0x4df9ea[_0xb6fd38(0x236)]),_0x4df9ea['handlePredictive']=undefined,this['averageHandleTime'](_0x4df9ea[_0xb6fd38(0x27f)])[_0xb6fd38(0x176)](this[_0xb6fd38(0x1b2)](_0x4df9ea))[_0xb6fd38(0x176)](mergeDataErlangB(_0x4df9ea))[_0xb6fd38(0x176)](this[_0xb6fd38(0xb2)](_0x4df9ea))['catch'](loggerCatchPredictive(_0xb6fd38(0x18b),_0x4df9ea));else{if(_0x4df9ea['predictiveIntervalAvailable']&&_0x215d4a<_0x4df9ea['predictiveIntervalAvailable']-_0x40338f)freeVariablesPredictive(_0x4df9ea),loggerPredictive[_0xb6fd38(0xd1)](_0x4df9ea[_0xb6fd38(0x1d0)],_0xb6fd38(0x269),_0x215d4a,_0xb6fd38(0x232),_0x4df9ea['predictiveIntervalAvailable'],'-',_0x40338f,'=',_0x4df9ea[_0xb6fd38(0x1dc)]-_0x40338f,')');else _0x4df9ea['predictiveIntervalAvailable']&&_0x215d4a>_0x4df9ea[_0xb6fd38(0x1dc)]+_0x42e210&&(freeVariablesPredictive(_0x4df9ea),loggerPredictive['info'](_0x4df9ea[_0xb6fd38(0x1d0)],_0xb6fd38(0x269),_0x215d4a,_0xb6fd38(0xb7),_0x4df9ea[_0xb6fd38(0x1dc)],'+',_0x42e210,'=',_0x4df9ea[_0xb6fd38(0x1dc)]+_0x42e210,')'));}}}}}}},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x1b2)]=function(_0x2af5f6){const _0x2669f5=this;return function(_0x6dd74b){return new Promise(function(_0x20fcd7,_0x528f90){const _0x5ad15f=a1225_0x21d8;_[_0x5ad15f(0xdb)](_0x2af5f6,_0x6dd74b[0x0]);if(checkGetDataPredictive(_0x6dd74b[0x0])){const _0x369cfc=_0x2af5f6[_0x5ad15f(0xd6)]+_0x2af5f6[_0x5ad15f(0x145)];_0x2af5f6[_0x5ad15f(0x1dc)]=_0x369cfc;const _0x469354=_0x369cfc,_0x567b8b=_0x2af5f6[_0x5ad15f(0x27f)]*0x3c,_0x35eba4=_0x6dd74b[0x0]['predictiveIntervalAvgTalktime']+_0x6dd74b[0x0][_0x5ad15f(0xa6)],_0x47792a=(_0x6dd74b[0x0][_0x5ad15f(0x1e6)]+_0x6dd74b[0x0]['predictiveIntervalDroppedCallsTimeout']+_0x6dd74b[0x0][_0x5ad15f(0xbf)])/_0x6dd74b[0x0][_0x5ad15f(0x299)];_0x2af5f6[_0x5ad15f(0x1ec)]=_0x47792a>0x0?_0x47792a:0x1;switch(_0x2af5f6['dialPredictiveOptimization']){case _0x5ad15f(0x183):{const _0x26e952=_0x2af5f6['dialPredictiveOptimizationPercentage']/0x64;return _0x2669f5[_0x5ad15f(0x180)](_0x469354,_0x567b8b,_0x35eba4,_0x47792a,_0x26e952)['then'](function(_0x47f8ba){return _0x20fcd7(_0x47f8ba);});}case'agentBusyFactor':{const _0x4c9f0e=_0x2af5f6[_0x5ad15f(0x29a)]/0x64;return _0x2669f5[_0x5ad15f(0xa1)](_0x469354,_0x567b8b,_0x35eba4,_0x47792a,_0x4c9f0e)['then'](function(_0xb2f889){return _0x20fcd7(_0xb2f889);});}default:return _0x528f90(msgResponse(_0x5ad15f(0x1b4),_0x5ad15f(0x284),_0x5ad15f(0x243)));}}else return _0x528f90(msgResponse(_0x5ad15f(0x1b4),'Failure',_0x5ad15f(0x179)));});};},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x208)]=function(_0x5cdc25){const _0x132502=this;return function(_0x3f27ab){return new Promise(function(_0x3b4e31,_0x5296b8){const _0x523c68=a1225_0x21d8;_['merge'](_0x5cdc25,_0x3f27ab[0x0]);if(checkGetDataPredictive(_0x3f27ab[0x0])){loggerPredictive[_0x523c68(0xd1)](JSON[_0x523c68(0xb0)](_0x3f27ab[0x0]));if(_0x5cdc25[_0x523c68(0x2a4)]===_0x523c68(0x183))return _0x132502[_0x523c68(0x206)](_0x5cdc25['id'])['then'](function(_0x2df347){const _0x308c6b=_0x523c68,_0x1f854e=_0x5cdc25[_0x308c6b(0xc2)]-_0x2df347[0x0][_0x308c6b(0x260)],_0x46fd1c=_0x5cdc25['dialPredictiveInterval']*0x3c,_0x57a844=_0x3f27ab[0x0][_0x308c6b(0x17d)]+_0x3f27ab[0x0][_0x308c6b(0xa6)],_0x30b6f3=(_0x3f27ab[0x0][_0x308c6b(0x1e6)]+_0x3f27ab[0x0][_0x308c6b(0xa9)]+_0x3f27ab[0x0][_0x308c6b(0xbf)])/_0x3f27ab[0x0][_0x308c6b(0x299)],_0x649cc7=_0x5cdc25[_0x308c6b(0x29a)]/0x64;return _0x5cdc25[_0x308c6b(0x16b)]=_0x2df347[0x0][_0x308c6b(0x260)]||0x0,_0x5cdc25[_0x308c6b(0x1ec)]=_0x30b6f3>0x0?_0x30b6f3:0x1,_0x132502['abandonmentRate'](_0x1f854e,_0x46fd1c,_0x57a844,_0x30b6f3,_0x649cc7);})[_0x523c68(0x176)](function(_0x1e0933){return _0x3b4e31(_0x1e0933);})[_0x523c68(0x22c)](function(_0x3b57bc){const _0x24cc7b=_0x523c68;return _0x5296b8(msgResponse(_0x24cc7b(0x25d),_0x24cc7b(0x284),JSON[_0x24cc7b(0xb0)](_0x3b57bc)));});if(_0x5cdc25[_0x523c68(0x2a4)]===_0x523c68(0x97))return _0x132502[_0x523c68(0x206)](_0x5cdc25['id'])[_0x523c68(0x176)](function(_0x1b3638){const _0x27df8b=_0x523c68,_0x1281e3=_0x5cdc25[_0x27df8b(0xc2)]-_0x1b3638[0x0]['outboundQueuePauses'],_0x4b8b49=_0x5cdc25[_0x27df8b(0x27f)]*0x3c,_0x544706=_0x3f27ab[0x0][_0x27df8b(0x17d)]+_0x3f27ab[0x0][_0x27df8b(0xa6)],_0x54fa66=(_0x3f27ab[0x0][_0x27df8b(0x1e6)]+_0x3f27ab[0x0][_0x27df8b(0xa9)]+_0x3f27ab[0x0][_0x27df8b(0xbf)])/_0x3f27ab[0x0][_0x27df8b(0x299)],_0x241f5f=_0x5cdc25[_0x27df8b(0x29a)]/0x64;return _0x5cdc25[_0x27df8b(0x16b)]=_0x1b3638[0x0][_0x27df8b(0x260)]||0x0,_0x5cdc25['predictiveIntervalHitRate']=_0x54fa66>0x0?_0x54fa66:0x1,_0x132502['busyFactor'](_0x1281e3,_0x4b8b49,_0x544706,_0x54fa66,_0x241f5f);})[_0x523c68(0x176)](function(_0x2c10fa){return _0x3b4e31(_0x2c10fa);})[_0x523c68(0x22c)](function(_0x2cf558){const _0xda7a3d=_0x523c68;return _0x5296b8(msgResponse(_0xda7a3d(0x25d),'Failure',JSON['stringify'](_0x2cf558)));});}else return _0x5296b8(msgResponse('[getDataPredictive]',_0x523c68(0x284),_0x523c68(0x179)));});};},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0xb2)]=function(_0x53c12c){const _0x1be0d6=this;return function(){const _0x3fa982=a1225_0x21d8;let _0x2b009a=0x0,_0x3ac6a1=Math[_0x3fa982(0x2ac)](_0x53c12c['erlangCallToSecond']*0x3e8);_0x3ac6a1>0x0?(_0x3ac6a1=_0x3ac6a1<0x64?0x64:_0x3ac6a1,loggerPredictive[_0x3fa982(0xd1)](_0x53c12c[_0x3fa982(0x1d0)],'one\x20call\x20every:',_0x3ac6a1,'milliseconds'),_0x53c12c['handlePredictive']=setInterval(function(){const _0x28dca7=_0x3fa982;_0x1be0d6[_0x28dca7(0x236)](_0x53c12c),loggerPredictiveCalls['info'](_0x28dca7(0x196),_0x2b009a+=0x1);},_0x3ac6a1)):loggerPredictive[_0x3fa982(0xd1)](_0x53c12c[_0x3fa982(0x1d0)],_0x3fa982(0x100));};},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x214)]=function(_0x144b97,_0x3ae0d0){const _0x54734c=this;return function(_0x4b9026){const _0x50f230=a1225_0x21d8;if(_[_0x50f230(0x25f)](_0x4b9026)){if(_[_0x50f230(0x17a)](_0x3ae0d0[_0x50f230(0x1ba)])||!_0x3ae0d0['recallme']){if(_0x144b97['dialMethod']===_0x50f230(0x271)){_0x144b97[_0x50f230(0x20b)]=_['isUndefined'](_0x144b97[_0x50f230(0x20b)])?!![]:_0x144b97['queueStatusComplete'];const _0x55d06b=uuid['v4']();_0x54734c[_0x50f230(0x167)][_0x55d06b]=new Action(_0x144b97,_0x3ae0d0,_0x55d06b),loggerBooked[_0x50f230(0xd1)]('[booked][checkContactBlack]',_0x55d06b,_0x50f230(0x217),JSON['stringify'](_0x144b97[_0x50f230(0x20b)]),'Queue:\x20',_0x144b97['name']),_0x144b97[_0x50f230(0x20b)]?(_0x144b97[_0x50f230(0x20b)]=![],_0x54734c[_0x50f230(0x9f)][_0x54734c[_0x50f230(0x167)][_0x55d06b][_0x50f230(0x1bf)]]=[],ami[_0x50f230(0x1f7)]({'actionid':_0x55d06b,'action':'queuestatus','queue':_0x144b97[_0x50f230(0x1d0)]})[_0x50f230(0x22c)](function(){const _0x3b4877=_0x50f230;_0x54734c[_0x3b4877(0x9a)](_0x144b97),_0x54734c[_0x3b4877(0x1c6)]({'active':![],'ContactId':_0x54734c[_0x3b4877(0x167)][_0x55d06b][_0x3b4877(0x106)],'ListId':_0x54734c[_0x3b4877(0x167)][_0x55d06b][_0x3b4877(0x268)],'VoiceQueueId':_0x54734c['actions'][_0x55d06b][_0x3b4877(0x12b)]||undefined,'CampaignId':_0x54734c[_0x3b4877(0x167)][_0x55d06b][_0x3b4877(0xb8)]||undefined})[_0x3b4877(0x22c)](loggerCatch('[unlockOriginate][syncQueueStatusComplete]')),delete _0x54734c[_0x3b4877(0x167)][_0x55d06b];})):(loggerBooked[_0x50f230(0xd1)]('[booked][checkContactBlack][else]',JSON[_0x50f230(0xb0)](_0x144b97[_0x50f230(0x20b)]),'Queue:\x20',_0x144b97[_0x50f230(0x1d0)]),_0x54734c[_0x50f230(0x9a)](_0x144b97),_0x54734c['rescheduleContact']({'active':![],'ContactId':_0x54734c[_0x50f230(0x167)][_0x55d06b][_0x50f230(0x106)],'ListId':_0x54734c['actions'][_0x55d06b][_0x50f230(0x268)],'VoiceQueueId':_0x54734c[_0x50f230(0x167)][_0x55d06b][_0x50f230(0x12b)]||undefined,'CampaignId':_0x54734c[_0x50f230(0x167)][_0x55d06b]['CampaignId']||undefined})[_0x50f230(0x22c)](loggerCatch(_0x50f230(0x14b))),delete _0x54734c[_0x50f230(0x167)][_0x55d06b]);}else return _0x54734c[_0x50f230(0x1fc)](_0x144b97,_0x3ae0d0);}else getDiff(_0x3ae0d0[_0x50f230(0x122)])<_0x144b97['dialRecallMeTimeout']*0x3c?_0x3ae0d0[_0x50f230(0x1f6)]&&!_0x3ae0d0[_0x50f230(0x1f6)][_0x50f230(0x235)]?_0x54734c['preview'][_0x50f230(0x23b)](_0x3ae0d0['id'])['finally'](function(){const _0x2bb954=_0x50f230;_0x54734c[_0x2bb954(0x9a)](_0x144b97);}):_0x54734c[_0x50f230(0x126)]({'active':![]},_0x3ae0d0['id'],0x1)['finally'](function(){const _0x2456a7=_0x50f230;console[_0x2456a7(0x1b1)](_0x2456a7(0xbc)),_0x54734c[_0x2456a7(0x9a)](_0x144b97);}):(_0x144b97[_0x50f230(0xf8)]+=0x1,_0x54734c[_0x50f230(0x9a)](_0x144b97),_0x144b97[_0x50f230(0x1f2)]?(_0x54734c['rescheduleContact']({'active':![],'recallme':![],'UserId':null,'ContactId':_0x3ae0d0['ContactId'],'ListId':_0x3ae0d0['ListId'],'VoiceQueueId':_0x3ae0d0[_0x50f230(0x12b)]||undefined,'CampaignId':_0x3ae0d0['CampaignId']||undefined})[_0x50f230(0x22c)](loggerCatch('[rescheduleContact][dialRecallInQueue]')),_0x54734c[_0x50f230(0x19c)](createObjHistory(_0x144b97,_0x3ae0d0,_0x50f230(0x1ae),0x17,'RecallInQueue'))[_0x50f230(0x22c)](loggerCatch('[Originate][HistoryDialRecallInQueue][historyCatch]'))):_0x54734c[_0x50f230(0xcf)](createObjHistory(_0x144b97,_0x3ae0d0,'RECALLFAILEDTIMEOUT',0x16,_0x50f230(0xb9)),_0x50f230(0x1e7),_0x50f230(0x152)));}else{_0x144b97[_0x50f230(0x28a)]+=0x1,_0x54734c[_0x50f230(0xcf)](createObjHistory(_0x144b97,_0x3ae0d0,_0x50f230(0x1be),0xd,_0x50f230(0x189)),_0x50f230(0x26e),_0x50f230(0x1ff));throw _0x50f230(0x1cc);}};},Dialer['prototype']['handleIvr']=function(_0x317519){const _0x4b26b9=a1225_0x25c06d,_0x6b8b3a=this;let _0x91906=_0x317519[_0x4b26b9(0x26c)]-_0x317519[_0x4b26b9(0x1a2)]-_0x317519[_0x4b26b9(0x10f)];emitCampaignSummary(_0x317519),_0x91906>0x0&&(_0x91906>this[_0x4b26b9(0x147)]&&(_0x91906=this[_0x4b26b9(0x147)]),_0x317519[_0x4b26b9(0x10f)]+=_0x91906,this[_0x4b26b9(0x278)](_0x317519['id'],_0x91906,_0x317519['dialOrderByScheduledAt'])[_0x4b26b9(0x176)](function(_0x406851){const _0x3c08aa=_0x4b26b9;_0x317519[_0x3c08aa(0x10f)]-=_0x91906,_0x317519[_0x3c08aa(0x10f)]=_0x317519[_0x3c08aa(0x10f)]>0x0?_0x317519['temp']:0x0;if(!checkContactEmpty(_0x406851))_0x317519[_0x3c08aa(0x233)]=_0x3c08aa(0x1c0),logger[_0x3c08aa(0xd1)](_0x3c08aa(0x17e)+_0x317519[_0x3c08aa(0x1d0)]);else{_0x317519['originated']+=_0x406851['length'],_0x317519[_0x3c08aa(0x233)]=_0x3c08aa(0xc8);for(let _0x3ac171=0x0;_0x3ac171<_0x406851[_0x3c08aa(0x19a)];_0x3ac171+=0x1){_0x317519[_0x3c08aa(0xf2)]+=0x1,_['isNil'](_0x406851[_0x3ac171])||_[_0x3c08aa(0x17a)](_0x406851[_0x3ac171][_0x3c08aa(0xaa)])||_[_0x3c08aa(0x17a)](_0x406851[_0x3ac171]['Contact'][_0x3c08aa(0x24f)])?_0x6b8b3a['emptyContact'](_0x3c08aa(0xfe),_0x317519,_0x406851[_0x3ac171]):_0x6b8b3a['checkIsBlackListIvr'](_[_0x3c08aa(0x21c)](_0x406851[_0x3ac171],[_0x3c08aa(0xb8),_0x3c08aa(0x141)]))['then'](_0x6b8b3a[_0x3c08aa(0x214)](_0x317519,_0x406851[_0x3ac171]))[_0x3c08aa(0x22c)](_0x6b8b3a[_0x3c08aa(0x17b)](_0x3c08aa(0x205),_0x317519));}}})[_0x4b26b9(0x22c)](loggerGetContactDialer(_0x4b26b9(0x215),_0x317519,_0x91906)));},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x1e2)]=function(_0x3de0cc,_0x316d17){const _0x336dfb=a1225_0x25c06d,_0x16391b=this,_0x26677f=[];let _0x27d4c6=_0x316d17>=0x1?_0x316d17:0x1;_0x3de0cc[_0x336dfb(0x29b)]===_0x336dfb(0x271)&&(_0x27d4c6=0x1);let _0x56951a=Math[_0x336dfb(0x2ac)](_0x3de0cc[_0x336dfb(0x145)]*_0x27d4c6)-_0x3de0cc['originated']-_0x3de0cc[_0x336dfb(0x10f)];emitVoiceQueueSummary(_0x3de0cc);if(_0x3de0cc[_0x336dfb(0x1b6)]>0x0){const _0x193275=_0x3de0cc[_0x336dfb(0x1b6)]-_0x3de0cc[_0x336dfb(0x1a2)]-_0x3de0cc[_0x336dfb(0xd6)]-_0x3de0cc[_0x336dfb(0x10f)]-_0x3de0cc[_0x336dfb(0x2ad)];_0x56951a>_0x193275&&(_0x56951a=_0x193275);}if(_0x56951a>0x0){_0x3de0cc[_0x336dfb(0x29b)]==='booked'&&(_0x56951a=0x1);_0x56951a>this[_0x336dfb(0x147)]&&(_0x56951a=this['maxNumberOriginate']);_0x3de0cc[_0x336dfb(0x10f)]+=_0x56951a;for(const _0x591c60 in this['agents']){typeof this['agents'][_0x591c60]!==_0x336dfb(0x163)&&(this['agents'][_0x591c60][_0x336dfb(0x28f)]==='not_inuse'&&this[_0x336dfb(0xc1)][_0x591c60][_0x336dfb(0x172)]==='reachable'&&_0x26677f['push'](this[_0x336dfb(0xc1)][_0x591c60]['id']));}this[_0x336dfb(0xad)](_0x3de0cc['id'],_0x26677f,_0x56951a,_0x3de0cc['dialOrderByScheduledAt'])[_0x336dfb(0x176)](function(_0x4005d5){const _0x5ccb70=_0x336dfb;_0x3de0cc[_0x5ccb70(0x10f)]-=_0x56951a,_0x3de0cc[_0x5ccb70(0x10f)]=_0x3de0cc[_0x5ccb70(0x10f)]>0x0?_0x3de0cc[_0x5ccb70(0x10f)]:0x0;if(!checkContactEmpty(_0x4005d5))_0x16391b['countReScheduled'](_0x3de0cc)[_0x5ccb70(0x176)](sendMessageReschedule(_0x3de0cc))[_0x5ccb70(0x22c)](loggerCatch(_0x5ccb70(0xee)));else{_0x3de0cc[_0x5ccb70(0x1a2)]+=_0x4005d5[_0x5ccb70(0x19a)],_0x3de0cc[_0x5ccb70(0x233)]=_0x3de0cc[_0x5ccb70(0x29b)]==='booked'?_0x5ccb70(0x1b3):'RUNNING';for(let _0x5a13a8=0x0;_0x5a13a8<_0x4005d5[_0x5ccb70(0x19a)];_0x5a13a8+=0x1){_[_0x5ccb70(0x17a)](_0x4005d5[_0x5a13a8])||_[_0x5ccb70(0x17a)](_0x4005d5[_0x5a13a8][_0x5ccb70(0xaa)])||_[_0x5ccb70(0x17a)](_0x4005d5[_0x5a13a8][_0x5ccb70(0xaa)][_0x5ccb70(0x24f)])?_0x16391b['emptyContact'](_0x5ccb70(0xfe),_0x3de0cc,_0x4005d5[_0x5a13a8]):_0x16391b[_0x5ccb70(0xa5)](_[_0x5ccb70(0x21c)](_0x4005d5[_0x5a13a8],[_0x5ccb70(0x12b),'Contact.phone']))[_0x5ccb70(0x176)](_0x16391b[_0x5ccb70(0x214)](_0x3de0cc,_0x4005d5[_0x5a13a8]))[_0x5ccb70(0x22c)](_0x16391b[_0x5ccb70(0x17b)](_0x5ccb70(0xfe),_0x3de0cc));}}})[_0x336dfb(0x22c)](loggerGetContactDialer(_0x336dfb(0x15b),_0x3de0cc,_0x56951a));}},Dialer[a1225_0x25c06d(0x1e3)]['handlePredictive']=function(_0x1a746a){const _0x35d1a1=a1225_0x25c06d;if(_0x1a746a[_0x35d1a1(0x1b6)]>0x0){const _0x599325=_0x1a746a['dialLimitQueue']-_0x1a746a[_0x35d1a1(0x1a2)]-_0x1a746a[_0x35d1a1(0xd6)];_0x599325>0x0?this['tryOriginatePredictive'](_0x1a746a):loggerPredictiveCalls['info'](_0x35d1a1(0x1bb));}else this[_0x35d1a1(0x1f4)](_0x1a746a);},Dialer[a1225_0x25c06d(0x1e3)][a1225_0x25c06d(0x1f4)]=function(_0xf42f82){const _0x3b5154=a1225_0x25c06d,_0x2f0499=this,_0x507e85=[];_0xf42f82[_0x3b5154(0x1a2)]+=0x1;for(const _0x424ed7 in this['agents']){typeof this['agents'][_0x424ed7]!==_0x3b5154(0x163)&&(this[_0x3b5154(0xc1)][_0x424ed7]['state']===_0x3b5154(0x136)&&this[_0x3b5154(0xc1)][_0x424ed7][_0x3b5154(0x172)]===_0x3b5154(0xb5)&&_0x507e85['push'](this[_0x3b5154(0xc1)][_0x424ed7]['id']));}this[_0x3b5154(0xad)](_0xf42f82['id'],_0x507e85,0x1,_0xf42f82['dialOrderByScheduledAt'])[_0x3b5154(0x176)](function(_0x22151e){const _0x2e76b4=_0x3b5154;!checkContactEmpty(_0x22151e)?(checkContactLowerLimitOriginate(_0xf42f82,0x1,0x0),_0x2f0499['countReScheduled'](_0xf42f82)['then'](sendMessageReschedule(_0xf42f82))[_0x2e76b4(0x22c)](loggerCatch(_0x2e76b4(0xee)))):(_0xf42f82[_0x2e76b4(0x233)]=_0x2e76b4(0xc8),_[_0x2e76b4(0x17a)](_0x22151e[0x0])||_[_0x2e76b4(0x17a)](_0x22151e[0x0][_0x2e76b4(0xaa)])||_[_0x2e76b4(0x17a)](_0x22151e[0x0]['Contact'][_0x2e76b4(0x24f)])?_0x2f0499[_0x2e76b4(0x1d6)](_0x2e76b4(0xfe),_0xf42f82,_0x22151e[0x0]):_0x2f0499[_0x2e76b4(0xa5)](_[_0x2e76b4(0x21c)](_0x22151e[0x0],['VoiceQueueId',_0x2e76b4(0x141)]))[_0x2e76b4(0x176)](_0x2f0499[_0x2e76b4(0x214)](_0xf42f82,_0x22151e[0x0]))[_0x2e76b4(0x22c)](_0x2f0499['loggerHandler'](_0x2e76b4(0x2a6),_0xf42f82)));})[_0x3b5154(0x22c)](loggerGetContactDialer(_0x3b5154(0xf0),_0xf42f82,0x1)),emitVoiceQueueSummary(_0xf42f82);},Dialer[a1225_0x25c06d(0x1e3)]['abandonmentRate']=function(_0x48a57b,_0x23b19b,_0x159178,_0x1cee30,_0x450c0d,_0x37cec3){const _0x4daa84=a1225_0x25c06d;return loggerPredictive[_0x4daa84(0xd1)]('--------\x20Drop\x20Rate\x20--------'),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',_0x48a57b),loggerPredictive[_0x4daa84(0xd1)](_0x4daa84(0x19f),_0x23b19b),loggerPredictive[_0x4daa84(0xd1)]('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',_0x159178),loggerPredictive[_0x4daa84(0xd1)](_0x4daa84(0xd0),_0x1cee30),loggerPredictive[_0x4daa84(0xd1)](_0x4daa84(0x292),_0x450c0d),loggerPredictive[_0x4daa84(0xd1)](_0x4daa84(0x9b)),new Promise(function(_0x1f1a00,_0x553b20){const _0x27552c=_0x4daa84;if(_0x48a57b<=0x0||isNaN(_0x48a57b))return _0x553b20(msgResponse(_0x27552c(0xf6),_0x27552c(0x229),_0x27552c(0x13d)+_0x48a57b));if(_0x159178<=0x0||isNaN(_0x159178))return _0x553b20(msgResponse('[abandonmentRate]',_0x27552c(0x229),'Ts\x20=\x20'+_0x159178));if(_0x1cee30<=0x0||isNaN(_0x1cee30))return _0x553b20(msgResponse('[abandonmentRate]',_0x27552c(0x229),_0x27552c(0x275)+_0x1cee30));if(_0x23b19b<=0x0||isNaN(_0x23b19b))return _0x553b20(msgResponse(_0x27552c(0xf6),_0x27552c(0x229),_0x27552c(0x226)+_0x23b19b));if(_0x450c0d<=0x0||isNaN(_0x450c0d))return _0x553b20(msgResponse(_0x27552c(0xf6),_0x27552c(0x229),_0x27552c(0x261)+_0x450c0d));_0x37cec3=_0x37cec3||0x0;const _0x3c9942=0x1/_0x159178;let _0x409510=0x0,_0xdfd504=0x0,_0x10ac6d=0x0,_0x5f223b=0x0,_0x41655b=0x0;for(_0x41655b=0x0;_0x10ac6d<_0x450c0d;_0x41655b+=0x1){_0xdfd504=_0x41655b/_0x23b19b,_0x409510=(_0x1cee30*_0xdfd504+_0x37cec3)/_0x3c9942,_0x10ac6d=erlangb(_0x409510,_0x48a57b),_0x5f223b=_0x409510/_0x48a57b*(0x1-erlangb(_0x409510,_0x48a57b));}return _0x1f1a00({'erlangCalls':_0x41655b,'erlangCallToSecond':_0x23b19b/_0x41655b,'erlangAbandonmentRate':_0x10ac6d,'erlangBusyFactor':_0x5f223b});});},Dialer['prototype'][a1225_0x25c06d(0xa1)]=function(_0x2c06e7,_0x78bd71,_0x386b4f,_0x4cf856,_0x2c6b2d,_0x359658){const _0x1abd55=a1225_0x25c06d;return loggerPredictive[_0x1abd55(0xd1)](_0x1abd55(0x149)),loggerPredictive[_0x1abd55(0xd1)](_0x1abd55(0x16f),_0x2c06e7),loggerPredictive[_0x1abd55(0xd1)](_0x1abd55(0x19f),_0x78bd71),loggerPredictive[_0x1abd55(0xd1)](_0x1abd55(0x27a),_0x386b4f),loggerPredictive['info'](_0x1abd55(0xd0),_0x4cf856),loggerPredictive[_0x1abd55(0xd1)](_0x1abd55(0x133),_0x2c6b2d),loggerPredictive['info'](_0x1abd55(0x9b)),new Promise(function(_0x2a985f,_0x4fc9f4){const _0x93dfe3=_0x1abd55;if(_0x2c06e7<=0x0||isNaN(_0x2c06e7))return _0x4fc9f4(msgResponse(_0x93dfe3(0x162),_0x93dfe3(0x229),_0x93dfe3(0x13d)+_0x2c06e7));if(_0x386b4f<=0x0||isNaN(_0x386b4f))return _0x4fc9f4(msgResponse(_0x93dfe3(0x162),_0x93dfe3(0x229),_0x93dfe3(0x1eb)+_0x386b4f));if(_0x4cf856<=0x0||isNaN(_0x4cf856))return _0x4fc9f4(msgResponse(_0x93dfe3(0x162),_0x93dfe3(0x229),_0x93dfe3(0x275)+_0x4cf856));if(_0x78bd71<=0x0||isNaN(_0x78bd71))return _0x4fc9f4(msgResponse(_0x93dfe3(0x162),_0x93dfe3(0x229),_0x93dfe3(0x226)+_0x78bd71));if(_0x2c6b2d<=0x0||isNaN(_0x2c6b2d))return _0x4fc9f4(msgResponse(_0x93dfe3(0x162),'Error',_0x93dfe3(0x14a)+_0x2c6b2d));_0x359658=_0x359658||0x0;const _0x4c58df=0x1/_0x386b4f;let _0x17f820=0x0,_0x28e965=0x0,_0x4fd443=0x0,_0x589e6e=0x0,_0x23fa32=0x0;for(_0x23fa32=0x0;_0x589e6e<_0x2c6b2d;_0x23fa32+=0x1){_0x28e965=_0x23fa32/_0x78bd71,_0x17f820=(_0x4cf856*_0x28e965+_0x359658)/_0x4c58df,_0x4fd443=erlangb(_0x17f820,_0x2c06e7),_0x589e6e=_0x17f820/_0x2c06e7*(0x1-erlangb(_0x17f820,_0x2c06e7));}return _0x2a985f({'erlangCalls':_0x23fa32,'erlangCallToSecond':_0x78bd71/_0x23fa32,'erlangAbandonmentRate':_0x4fd443,'erlangBusyFactor':_0x589e6e});});},module[a1225_0x25c06d(0x1bd)]=Dialer; \ No newline at end of file diff --git a/server/services/ami/dialer/queueCallerAbandon.js b/server/services/ami/dialer/queueCallerAbandon.js index 9895038..d4e95f9 100644 --- a/server/services/ami/dialer/queueCallerAbandon.js +++ b/server/services/ami/dialer/queueCallerAbandon.js @@ -1 +1 @@ -const a1226_0x32cf=['originatecalleridnum','exports','ringtime','VoiceQueueId','moment','countcongestionretry','membername','reason','talktime','callbackat','endtime','droptime','countglobal','countmachineretry','scheduledat','countdropretry','countnosuchnumberretry','diff','originatecalleridname','countbusyretry','ContactId','name','countnoanswerretry','ListId','UserId','milliseconds','outbound','queue','campaigntype','type','recallme','CampaignId','callback','connectedlinename','responsetime','number','uniqueid','callbackuniqueid','calleridnum','countabandonedretry','holdtime','starttime','countagentrejectretry'];(function(_0x188bbf,_0x1c8764){const _0x32cf11=function(_0x52a9ea){while(--_0x52a9ea){_0x188bbf['push'](_0x188bbf['shift']());}};_0x32cf11(++_0x1c8764);}(a1226_0x32cf,0x106));const a1226_0x52a9=function(_0x188bbf,_0x1c8764){_0x188bbf=_0x188bbf-0xdf;let _0x32cf11=a1226_0x32cf[_0x188bbf];return _0x32cf11;};const a1226_0x41bf4b=a1226_0x52a9;'use strict';const moment=require(a1226_0x41bf4b(0xdf));function getSeconds(_0x385630,_0x563b44){const _0x393905=a1226_0x41bf4b,_0x9159ee=moment(_0x385630)[_0x393905(0xf4)](0x0),_0x2cd76e=moment(_0x563b44)[_0x393905(0xf4)](0x0);return _0x9159ee[_0x393905(0xec)](_0x2cd76e,'seconds');}function QueueCallerAbandon(_0x16d706,_0xcf4cdf){const _0x16a8c0=a1226_0x41bf4b;this[_0x16a8c0(0xe9)]=_0x16d706['scheduledat'],this[_0x16a8c0(0xf8)]=_0x16d706[_0x16a8c0(0xf8)],this[_0x16a8c0(0xf7)]=_0x16d706['type']===_0x16a8c0(0xf5)?'queue':_0x16d706['type'],this[_0x16a8c0(0xee)]=_0x16d706[_0x16a8c0(0xee)],this[_0x16a8c0(0xe0)]=_0x16d706[_0x16a8c0(0xe0)],this['countnoanswerretry']=_0x16d706[_0x16a8c0(0xf1)],this[_0x16a8c0(0xe7)]=_0x16d706[_0x16a8c0(0xee)]+_0x16d706[_0x16a8c0(0xe0)]+_0x16d706[_0x16a8c0(0xf1)]+_0x16d706[_0x16a8c0(0xeb)]+_0x16d706[_0x16a8c0(0xea)]+_0x16d706[_0x16a8c0(0x102)]+_0x16d706[_0x16a8c0(0xe8)]+_0x16d706[_0x16a8c0(0x105)],this[_0x16a8c0(0xeb)]=_0x16d706[_0x16a8c0(0xeb)],this[_0x16a8c0(0xea)]=_0x16d706[_0x16a8c0(0xea)],this[_0x16a8c0(0x102)]=_0x16d706[_0x16a8c0(0x102)],this[_0x16a8c0(0xe8)]=_0x16d706[_0x16a8c0(0xe8)],this[_0x16a8c0(0x105)]=_0x16d706[_0x16a8c0(0x105)],this[_0x16a8c0(0xff)]=_0xcf4cdf[_0x16a8c0(0xff)],this['calleridname']=_0x16d706[_0x16a8c0(0xf0)],this[_0x16a8c0(0x101)]=_0x16d706[_0x16a8c0(0xfe)],this[_0x16a8c0(0x104)]=_0x16d706[_0x16a8c0(0x104)],this[_0x16a8c0(0xfd)]=_0x16d706[_0x16a8c0(0xfd)],this[_0x16a8c0(0xe6)]=_0x16d706[_0x16a8c0(0xe6)],this[_0x16a8c0(0xe5)]=this[_0x16a8c0(0xe6)],this[_0x16a8c0(0x108)]=getSeconds(_0x16d706[_0x16a8c0(0xfd)],_0x16d706['starttime']),this[_0x16a8c0(0x103)]=getSeconds(this[_0x16a8c0(0xe6)],_0x16d706[_0x16a8c0(0xfd)]),this[_0x16a8c0(0xe3)]=0x0,this['queue']=_0xcf4cdf[_0x16a8c0(0xf6)],this[_0x16a8c0(0xe1)]=_0xcf4cdf[_0x16a8c0(0xfc)],this[_0x16a8c0(0xe2)]=_0xcf4cdf[_0x16a8c0(0xe2)],this[_0x16a8c0(0xfb)]=_0x16d706['callback'],this[_0x16a8c0(0x100)]=_0x16d706[_0x16a8c0(0x100)],this[_0x16a8c0(0xe4)]=_0x16d706[_0x16a8c0(0xe4)],this[_0x16a8c0(0xf9)]=_0x16d706[_0x16a8c0(0xf9)],this[_0x16a8c0(0xef)]=_0x16d706[_0x16a8c0(0xef)],this[_0x16a8c0(0xf2)]=_0x16d706[_0x16a8c0(0xf2)],this[_0x16a8c0(0xf3)]=_0x16d706[_0x16a8c0(0xf3)],this[_0x16a8c0(0x109)]=_0x16d706[_0x16a8c0(0x109)],this[_0x16a8c0(0xfa)]=_0x16d706[_0x16a8c0(0xfa)],this[_0x16a8c0(0x106)]=_0x16d706['originatecalleridnum']||'',this[_0x16a8c0(0xed)]=_0x16d706[_0x16a8c0(0xed)]||'';}module[a1226_0x41bf4b(0x107)]=QueueCallerAbandon; \ No newline at end of file +const a1226_0x18c0=['queue','countbusyretry','milliseconds','callback','originatecalleridnum','type','name','exports','calleridname','VoiceQueueId','diff','starttime','CampaignId','responsetime','ringtime','countabandonedretry','countagentrejectretry','reason','scheduledat','number','countdropretry','recallme','countcongestionretry','droptime','callbackat','moment','originatecalleridname','ListId','ContactId','membername','countmachineretry','countnoanswerretry','talktime','seconds','UserId'];(function(_0x5decf1,_0x35ac7b){const _0x18c0c9=function(_0x4a8838){while(--_0x4a8838){_0x5decf1['push'](_0x5decf1['shift']());}};_0x18c0c9(++_0x35ac7b);}(a1226_0x18c0,0xe5));const a1226_0x4a88=function(_0x5decf1,_0x35ac7b){_0x5decf1=_0x5decf1-0x176;let _0x18c0c9=a1226_0x18c0[_0x5decf1];return _0x18c0c9;};const a1226_0x1ed233=a1226_0x4a88;'use strict';const moment=require(a1226_0x1ed233(0x17c));function getSeconds(_0x1cc129,_0x1d75ca){const _0x2bf872=a1226_0x1ed233,_0x3bba15=moment(_0x1cc129)[_0x2bf872(0x188)](0x0),_0x13c6bb=moment(_0x1d75ca)[_0x2bf872(0x188)](0x0);return _0x3bba15[_0x2bf872(0x190)](_0x13c6bb,_0x2bf872(0x184));}function QueueCallerAbandon(_0x237da9,_0xd0b607){const _0x36791c=a1226_0x1ed233;this[_0x36791c(0x198)]=_0x237da9['scheduledat'],this['type']=_0x237da9[_0x36791c(0x18b)],this['campaigntype']=_0x237da9[_0x36791c(0x18b)]==='outbound'?'queue':_0x237da9[_0x36791c(0x18b)],this[_0x36791c(0x187)]=_0x237da9[_0x36791c(0x187)],this[_0x36791c(0x179)]=_0x237da9['countcongestionretry'],this[_0x36791c(0x182)]=_0x237da9['countnoanswerretry'],this['countglobal']=_0x237da9['countbusyretry']+_0x237da9[_0x36791c(0x179)]+_0x237da9[_0x36791c(0x182)]+_0x237da9['countnosuchnumberretry']+_0x237da9[_0x36791c(0x177)]+_0x237da9['countabandonedretry']+_0x237da9[_0x36791c(0x181)]+_0x237da9['countagentrejectretry'],this['countnosuchnumberretry']=_0x237da9['countnosuchnumberretry'],this['countdropretry']=_0x237da9[_0x36791c(0x177)],this['countabandonedretry']=_0x237da9[_0x36791c(0x195)],this[_0x36791c(0x181)]=_0x237da9[_0x36791c(0x181)],this[_0x36791c(0x196)]=_0x237da9['countagentrejectretry'],this['uniqueid']=_0xd0b607['uniqueid'],this[_0x36791c(0x18e)]=_0x237da9[_0x36791c(0x18c)],this['calleridnum']=_0x237da9[_0x36791c(0x176)],this[_0x36791c(0x191)]=_0x237da9[_0x36791c(0x191)],this[_0x36791c(0x193)]=_0x237da9[_0x36791c(0x193)],this[_0x36791c(0x17a)]=_0x237da9[_0x36791c(0x17a)],this['endtime']=this[_0x36791c(0x17a)],this[_0x36791c(0x194)]=getSeconds(_0x237da9['responsetime'],_0x237da9[_0x36791c(0x191)]),this['holdtime']=getSeconds(this[_0x36791c(0x17a)],_0x237da9[_0x36791c(0x193)]),this[_0x36791c(0x183)]=0x0,this[_0x36791c(0x186)]=_0xd0b607[_0x36791c(0x186)],this[_0x36791c(0x180)]=_0xd0b607['connectedlinename'],this[_0x36791c(0x197)]=_0xd0b607[_0x36791c(0x197)],this[_0x36791c(0x189)]=_0x237da9[_0x36791c(0x189)],this['callbackuniqueid']=_0x237da9['callbackuniqueid'],this[_0x36791c(0x17b)]=_0x237da9[_0x36791c(0x17b)],this[_0x36791c(0x178)]=_0x237da9[_0x36791c(0x178)],this[_0x36791c(0x17f)]=_0x237da9[_0x36791c(0x17f)],this[_0x36791c(0x17e)]=_0x237da9[_0x36791c(0x17e)],this[_0x36791c(0x185)]=_0x237da9[_0x36791c(0x185)],this[_0x36791c(0x18f)]=_0x237da9[_0x36791c(0x18f)],this[_0x36791c(0x192)]=_0x237da9[_0x36791c(0x192)],this[_0x36791c(0x18a)]=_0x237da9['originatecalleridnum']||'',this['originatecalleridname']=_0x237da9[_0x36791c(0x17d)]||'';}module[a1226_0x1ed233(0x18d)]=QueueCallerAbandon; \ No newline at end of file diff --git a/server/services/ami/fax/action.js b/server/services/ami/fax/action.js index 74f8d1f..0c7e822 100644 --- a/server/services/ami/fax/action.js +++ b/server/services/ami/fax/action.js @@ -1 +1 @@ -const a1227_0x43bc=['tech','fax','localstationid','path','%s/%s/%s','util','headerinfo','uniqueid','Trunk','name','format'];(function(_0x4237f9,_0x55176b){const _0x43bc2f=function(_0x214588){while(--_0x214588){_0x4237f9['push'](_0x4237f9['shift']());}};_0x43bc2f(++_0x55176b);}(a1227_0x43bc,0xbe));const a1227_0x2145=function(_0x4237f9,_0x55176b){_0x4237f9=_0x4237f9-0x1d1;let _0x43bc2f=a1227_0x43bc[_0x4237f9];return _0x43bc2f;};const a1227_0x2cb427=a1227_0x2145;'use strict';const util=require(a1227_0x2cb427(0x1d3));function Action(_0x477d52,_0x1e11d2,_0x233873){const _0x23fc84=a1227_0x2cb427;this[_0x23fc84(0x1d5)]=_0x477d52||undefined,this['channel']=util[_0x23fc84(0x1d8)](_0x23fc84(0x1d2),_0x1e11d2[_0x23fc84(0x1d9)],_0x1e11d2[_0x23fc84(0x1d6)][_0x23fc84(0x1d7)],_0x233873[_0x23fc84(0x1da)]),this[_0x23fc84(0x1db)]=_0x1e11d2['localstationid'],this[_0x23fc84(0x1d4)]=_0x1e11d2[_0x23fc84(0x1d4)],this['path']=_0x233873[_0x23fc84(0x1d1)],this['AttachmentId']=_0x233873['AttachmentId'];}module['exports']=Action; \ No newline at end of file +const a1227_0x5897=['fax','AttachmentId','channel','format','Trunk','tech','headerinfo','name','%s/%s/%s','uniqueid','util'];(function(_0x975ad4,_0x1f28d6){const _0x58978c=function(_0xfc442e){while(--_0xfc442e){_0x975ad4['push'](_0x975ad4['shift']());}};_0x58978c(++_0x1f28d6);}(a1227_0x5897,0x67));const a1227_0xfc44=function(_0x975ad4,_0x1f28d6){_0x975ad4=_0x975ad4-0xc2;let _0x58978c=a1227_0x5897[_0x975ad4];return _0x58978c;};const a1227_0x3f5d25=a1227_0xfc44;'use strict';const util=require(a1227_0x3f5d25(0xc8));function Action(_0x2817de,_0x5b68ca,_0x2c7ecd){const _0x1a9dad=a1227_0x3f5d25;this[_0x1a9dad(0xc7)]=_0x2817de||undefined,this[_0x1a9dad(0xcb)]=util[_0x1a9dad(0xcc)](_0x1a9dad(0xc6),_0x5b68ca[_0x1a9dad(0xc3)],_0x5b68ca[_0x1a9dad(0xc2)][_0x1a9dad(0xc5)],_0x2c7ecd[_0x1a9dad(0xc9)]),this['localstationid']=_0x5b68ca['localstationid'],this[_0x1a9dad(0xc4)]=_0x5b68ca[_0x1a9dad(0xc4)],this['path']=_0x2c7ecd['path'],this['AttachmentId']=_0x2c7ecd[_0x1a9dad(0xca)];}module['exports']=Action; \ No newline at end of file diff --git a/server/services/ami/fax/index.js b/server/services/ami/fax/index.js index a449cec..f91d4e1 100644 --- a/server/services/ami/fax/index.js +++ b/server/services/ami/fax/index.js @@ -1 +1 @@ -const a1229_0x4119=['ext','updateStatus','create','checkAfterSend','syncOriginateResponse','stringify','exten','syncHangup','[Fax][Message][Updated]','faxstatus','operation','pick','.pdf','channel','SENDING\x20FAILED','execute','catch','trunks','transferrate','syncReceiveFax','name','remotestationid','value','../rpc/faxAccount','../ami','filename','util','syncVarSet','\x20notify\x20','prototype','parse','uuid','channels','syncNewchannel','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','actions','Fax\x20failed','logger','tiff2pdf','\x20syncNewchannel\x20','\x20hangup\x20faxRiceive\x20','unmonitored','syncFaxStatus','newexten','faxAccounts','update','channelstatedesc','[Fax][Message][Error][NoUpdate2]','/var/opt/motion2/server/files/attachments/','Empty\x20Fax','channelstate','AttachmentId','\x20syncFaxStatus\x20','merge','../rpc/faxMessage','[Fax][checkTrunk][Trunk\x20not\x20work]','[Fax][Message][Error][Updated]','then','syncNewExten','./action','[Fax][Message][Error][NoUpdate1]','send','SIP/%s','SENDING\x20FAILED:\x20','FaxAccountId','reason','varset','variable','localstationid','[Fax][execOriginate][failure]','newstate','format','isNil','faxstatusstring','finally','../../../config/logger','[Fax][checkTrunk][Empty\x20Fax]','Trunk','SUCCESS','active','context','syncNewState','isValid','../rpc/attachment','\x20Trunk\x20is\x20not\x20active','faxpages','reachable','undefined','uniqueid','info','hangup','checkTrunk','addVariables','newchannel','\x20receiveFax\x20','pagestransferred','originateresponse','lodash','Trunk\x20not\x20working','./util/gs','fax','./util/util','message','application/pdf','Empty\x20path','\x20result\x20conversion\x20file\x20','dir','XMF-PATH','resolution','receivefax','error','variablesAction','SENDING\x20FAILED\x20','isTrunkReachable','path','status','from-voip-provider','bind','Trunk\x20Reachable','calleridnum','response','\x20hangup\x20sendFile\x20','exports'];(function(_0x3b456a,_0x173137){const _0x4119fa=function(_0x3a1128){while(--_0x3a1128){_0x3b456a['push'](_0x3b456a['shift']());}};_0x4119fa(++_0x173137);}(a1229_0x4119,0x1bd));const a1229_0x3a11=function(_0x3b456a,_0x173137){_0x3b456a=_0x3b456a-0x1c0;let _0x4119fa=a1229_0x4119[_0x3b456a];return _0x4119fa;};const a1229_0x433031=a1229_0x3a11;'use strict';const util=require(a1229_0x433031(0x209)),_=require(a1229_0x433031(0x1d5)),uuid=require(a1229_0x433031(0x20e)),path=require(a1229_0x433031(0x1e6)),tiff2pdf=require(a1229_0x433031(0x215)),gs=require(a1229_0x433031(0x1d7)),logger=require(a1229_0x433031(0x23a))(a1229_0x433031(0x1d8)),ami=require(a1229_0x433031(0x207)),ut=require(a1229_0x433031(0x1d9)),Action=require(a1229_0x433031(0x22a)),faxAccount=require(a1229_0x433031(0x206)),attachment=require(a1229_0x433031(0x1c7)),faxMessage=require(a1229_0x433031(0x225));function Fax(_0x1e7427){const _0x36d5d6=a1229_0x433031;this[_0x36d5d6(0x20f)]={},this[_0x36d5d6(0x21b)]=_0x1e7427[_0x36d5d6(0x21b)],this[_0x36d5d6(0x200)]=_0x1e7427[_0x36d5d6(0x200)],this['actions']={},ami['on'](_0x36d5d6(0x1d1),this['syncNewchannel'][_0x36d5d6(0x1e9)](this)),ami['on'](_0x36d5d6(0x231),this['syncVarSet'][_0x36d5d6(0x1e9)](this)),ami['on'](_0x36d5d6(0x235),this['syncNewState'][_0x36d5d6(0x1e9)](this)),ami['on'](_0x36d5d6(0x21a),this[_0x36d5d6(0x229)]['bind'](this)),ami['on'](_0x36d5d6(0x1f8),this[_0x36d5d6(0x219)][_0x36d5d6(0x1e9)](this)),ami['on'](_0x36d5d6(0x1e1),this[_0x36d5d6(0x202)]['bind'](this)),ami['on'](_0x36d5d6(0x1ce),this[_0x36d5d6(0x1f6)]['bind'](this)),ami['on'](_0x36d5d6(0x1d4),this['syncOriginateResponse'][_0x36d5d6(0x1e9)](this));}Fax[a1229_0x433031(0x20c)][a1229_0x433031(0x210)]=function(_0xb5bfe7){const _0x3dc0ef=a1229_0x433031;if(_0xb5bfe7[_0x3dc0ef(0x1c4)]===_0x3dc0ef(0x1e8))for(const _0x25cfee in this[_0x3dc0ef(0x21b)]){typeof this['faxAccounts'][_0x25cfee]!==_0x3dc0ef(0x1cb)&&(_0xb5bfe7[_0x3dc0ef(0x1f5)]===this[_0x3dc0ef(0x21b)][_0x25cfee][_0x3dc0ef(0x233)]&&(this[_0x3dc0ef(0x20f)][_0xb5bfe7[_0x3dc0ef(0x1cc)]]={},this[_0x3dc0ef(0x20f)][_0xb5bfe7[_0x3dc0ef(0x1cc)]][_0x3dc0ef(0x1fc)]=_0xb5bfe7[_0x3dc0ef(0x1fc)],this['channels'][_0xb5bfe7[_0x3dc0ef(0x1cc)]]['id']=this['faxAccounts'][_0x25cfee]['id'],this[_0x3dc0ef(0x20f)][_0xb5bfe7[_0x3dc0ef(0x1cc)]][_0x3dc0ef(0x203)]=this[_0x3dc0ef(0x21b)][_0x25cfee][_0x3dc0ef(0x203)],logger[_0x3dc0ef(0x1cd)](_0xb5bfe7[_0x3dc0ef(0x1cc)],'\x20syncNewchannel\x20')));}this['actions'][_0xb5bfe7[_0x3dc0ef(0x1cc)]]&&(this[_0x3dc0ef(0x20f)][_0xb5bfe7[_0x3dc0ef(0x1cc)]]={},this[_0x3dc0ef(0x20f)][_0xb5bfe7[_0x3dc0ef(0x1cc)]][_0x3dc0ef(0x1fc)]=_0xb5bfe7[_0x3dc0ef(0x1fc)],logger[_0x3dc0ef(0x1cd)](_0xb5bfe7['uniqueid'],_0x3dc0ef(0x216)));},Fax['prototype'][a1229_0x433031(0x20a)]=function(_0x2d4bcb){const _0x444fce=a1229_0x433031;if(this[_0x444fce(0x20f)][_0x2d4bcb[_0x444fce(0x1cc)]])for(const _0x2c3ed8 in _0x2d4bcb[_0x444fce(0x232)]){typeof _0x2d4bcb['variable'][_0x2c3ed8]!==_0x444fce(0x1cb)&&(this[_0x444fce(0x20f)][_0x2d4bcb[_0x444fce(0x1cc)]][_0x2c3ed8]=_0x2d4bcb[_0x444fce(0x205)]);}},Fax[a1229_0x433031(0x20c)][a1229_0x433031(0x1c5)]=function(_0x350aa4){const _0x3b587c=a1229_0x433031;this[_0x3b587c(0x20f)][_0x350aa4['uniqueid']]&&(this[_0x3b587c(0x20f)][_0x350aa4[_0x3b587c(0x1cc)]][_0x3b587c(0x221)]=_0x350aa4[_0x3b587c(0x221)],this[_0x3b587c(0x20f)][_0x350aa4['uniqueid']][_0x3b587c(0x21d)]=_0x350aa4[_0x3b587c(0x21d)]);},Fax[a1229_0x433031(0x20c)][a1229_0x433031(0x229)]=function(_0x2a2536){const _0x5c8de1=a1229_0x433031;if(this[_0x5c8de1(0x20f)][_0x2a2536[_0x5c8de1(0x1cc)]])for(const _0x4d6fbe in _0x2a2536['variable']){typeof _0x2a2536[_0x5c8de1(0x232)][_0x4d6fbe]!=='undefined'&&(this['channels'][_0x2a2536[_0x5c8de1(0x1cc)]][_0x4d6fbe]=_0x2a2536[_0x5c8de1(0x205)]);}},Fax[a1229_0x433031(0x20c)][a1229_0x433031(0x219)]=function(_0x43cc7c){const _0x4622af=a1229_0x433031;this['channels'][_0x43cc7c['uniqueid']]&&(this[_0x4622af(0x20f)][_0x43cc7c[_0x4622af(0x1cc)]][_0x4622af(0x1f9)]=_0x43cc7c[_0x4622af(0x1f9)],this[_0x4622af(0x20f)][_0x43cc7c[_0x4622af(0x1cc)]]['status']=_0x43cc7c[_0x4622af(0x1e7)],this['channels'][_0x43cc7c['uniqueid']][_0x4622af(0x233)]=_0x43cc7c[_0x4622af(0x233)],this[_0x4622af(0x20f)][_0x43cc7c[_0x4622af(0x1cc)]]['filename']=_0x43cc7c[_0x4622af(0x208)],logger[_0x4622af(0x1cd)](_0x43cc7c['uniqueid'],_0x4622af(0x223)));},Fax[a1229_0x433031(0x20c)]['syncReceiveFax']=function(_0x445946){const _0x389620=a1229_0x433031;if(this[_0x389620(0x20f)][_0x445946[_0x389620(0x1cc)]]){const _0x554153=this['channels'][_0x445946['uniqueid']]['id'];this[_0x389620(0x20f)][_0x445946[_0x389620(0x1cc)]][_0x389620(0x204)]=_0x445946[_0x389620(0x204)],this[_0x389620(0x20f)][_0x445946[_0x389620(0x1cc)]][_0x389620(0x1d3)]=_0x445946[_0x389620(0x1d3)],this[_0x389620(0x20f)][_0x445946[_0x389620(0x1cc)]][_0x389620(0x233)]=_0x445946[_0x389620(0x233)],this[_0x389620(0x20f)][_0x445946[_0x389620(0x1cc)]][_0x389620(0x1e0)]=_0x445946['resolution'],this[_0x389620(0x20f)][_0x445946[_0x389620(0x1cc)]][_0x389620(0x201)]=_0x445946[_0x389620(0x201)],this[_0x389620(0x20f)][_0x445946[_0x389620(0x1cc)]][_0x389620(0x208)]=_0x445946[_0x389620(0x208)],this[_0x389620(0x20f)][_0x445946[_0x389620(0x1cc)]][_0x389620(0x1eb)]=_0x445946[_0x389620(0x1eb)],this[_0x389620(0x20f)][_0x445946['uniqueid']][_0x389620(0x1d3)]>0x0&&tiff2pdf(_0x445946[_0x389620(0x208)],_0x389620(0x21f),function(_0x255e95){const _0x479a01=_0x389620;logger['info'](_0x445946[_0x479a01(0x1cc)],_0x479a01(0x1dd),_0x255e95[_0x479a01(0x1da)]),attachment[_0x479a01(0x1f1)]({'name':path[_0x479a01(0x20d)](_0x445946[_0x479a01(0x208)])[_0x479a01(0x203)],'basename':path['parse'](_0x445946[_0x479a01(0x208)])[_0x479a01(0x203)]+_0x479a01(0x1fb),'type':_0x479a01(0x1db)})['then'](function(_0x348b4f){const _0x4b5b7c=_0x479a01;faxAccount['notify'](_0x554153,{'from':_0x445946['calleridnum'],'mapKey':_0x4b5b7c(0x1d8),'body':path[_0x4b5b7c(0x20d)](_0x445946[_0x4b5b7c(0x208)])[_0x4b5b7c(0x203)]+_0x4b5b7c(0x1fb),'AttachmentId':_0x348b4f['id']})['catch'](function(_0x1d0bea){const _0x3b28a5=_0x4b5b7c;logger[_0x3b28a5(0x1e2)](_0x445946[_0x3b28a5(0x1cc)],_0x3b28a5(0x20b),JSON[_0x3b28a5(0x1f4)](_0x1d0bea));});})['catch'](function(_0x3319b5){const _0x587d5d=_0x479a01;logger[_0x587d5d(0x1e2)](_0x445946['uniqueid'],_0x587d5d(0x1d2),JSON[_0x587d5d(0x1f4)](_0x3319b5));});}),logger['info'](_0x445946[_0x389620(0x1cc)],'\x20receiveFax\x20');}},Fax[a1229_0x433031(0x20c)][a1229_0x433031(0x1f3)]=function(_0x3eb456){const _0x5974f5=a1229_0x433031;this[_0x5974f5(0x212)][_0x3eb456[_0x5974f5(0x1cc)]]&&_[_0x5974f5(0x224)](this[_0x5974f5(0x20f)][_0x3eb456[_0x5974f5(0x1cc)]],_[_0x5974f5(0x1fa)](_0x3eb456,[_0x5974f5(0x1ec),_0x5974f5(0x230)]));};function updateStatus(_0xf02bc7){const _0x4aa403=a1229_0x433031;_0xf02bc7[_0x4aa403(0x222)]?faxMessage[_0x4aa403(0x21c)](_0xf02bc7[_0x4aa403(0x222)],{'failMessage':_0x4aa403(0x1e4)})[_0x4aa403(0x228)](function(_0x3d0dcd){const _0x53a896=_0x4aa403;ut[_0x53a896(0x214)](_0x53a896(0x227),_0x3d0dcd);})[_0x4aa403(0x1ff)](function(_0x5b9051){const _0xd8257f=_0x4aa403;ut['logger'](_0xd8257f(0x22b),_0x5b9051);}):ut[_0x4aa403(0x214)](_0x4aa403(0x21e));}Fax[a1229_0x433031(0x20c)][a1229_0x433031(0x1f0)]=function(_0x242286,_0x31307a,_0x46ca34){const _0xdc9659=a1229_0x433031,_0x3fc3ea=this;let _0x41791c={};_0x31307a?_0x41791c={'read':_0x31307a}:_0x41791c={'failMessage':_0x46ca34},this[_0xdc9659(0x212)][_0x242286]['AttachmentId']?faxMessage[_0xdc9659(0x21c)](this[_0xdc9659(0x212)][_0x242286][_0xdc9659(0x222)],_0x41791c)[_0xdc9659(0x228)](function(_0x2b9953){const _0x15596d=_0xdc9659;ut[_0x15596d(0x214)](_0x15596d(0x1f7),_0x2b9953);})['catch'](function(_0x6160ba){const _0x546008=_0xdc9659;ut[_0x546008(0x214)]('[Fax][Message][NoUpdate1]',_0x6160ba);})[_0xdc9659(0x239)](function(){const _0x274f3a=_0xdc9659;delete _0x3fc3ea[_0x274f3a(0x20f)][_0x242286],delete _0x3fc3ea[_0x274f3a(0x212)][_0x242286];}):(ut[_0xdc9659(0x214)]('[Fax][Message][NoUpdate2]'),delete this['channels'][_0x242286],delete this[_0xdc9659(0x212)][_0x242286]);},Fax[a1229_0x433031(0x20c)]['syncHangup']=function(_0xba7b27){const _0x5b7ba3=a1229_0x433031;this['channels'][_0xba7b27[_0x5b7ba3(0x1cc)]]&&(this[_0x5b7ba3(0x212)][_0xba7b27[_0x5b7ba3(0x1cc)]]&&(this['channels'][_0xba7b27[_0x5b7ba3(0x1cc)]]['id']=this['actions'][_0xba7b27[_0x5b7ba3(0x1cc)]]['id'],this[_0x5b7ba3(0x20f)][_0xba7b27['uniqueid']]['name']=this[_0x5b7ba3(0x212)][_0xba7b27['uniqueid']]['name']),logger[_0x5b7ba3(0x1cd)](_0xba7b27['uniqueid'],this[_0x5b7ba3(0x212)][_0xba7b27[_0x5b7ba3(0x1cc)]]?_0x5b7ba3(0x1ed):_0x5b7ba3(0x217),JSON[_0x5b7ba3(0x1f4)](this['channels'][_0xba7b27['uniqueid']])),this['actions'][_0xba7b27[_0x5b7ba3(0x1cc)]]&&(this[_0x5b7ba3(0x20f)][_0xba7b27['uniqueid']][_0x5b7ba3(0x1c9)]>0x0&&this[_0x5b7ba3(0x20f)][_0xba7b27[_0x5b7ba3(0x1cc)]][_0x5b7ba3(0x1f8)]===_0x5b7ba3(0x1c2)?this[_0x5b7ba3(0x1f0)](_0xba7b27[_0x5b7ba3(0x1cc)],!![]):this[_0x5b7ba3(0x1f0)](_0xba7b27['uniqueid'],![],this[_0x5b7ba3(0x20f)][_0xba7b27[_0x5b7ba3(0x1cc)]]['faxstatusstring']?_0x5b7ba3(0x22e)+this[_0x5b7ba3(0x20f)][_0xba7b27[_0x5b7ba3(0x1cc)]][_0x5b7ba3(0x238)]:_0x5b7ba3(0x1fd))));},Fax[a1229_0x433031(0x20c)][a1229_0x433031(0x22c)]=function(_0x2ab0f8){const _0x2972d8=this;return new Promise(function(_0x2130d4,_0x2c33f3){const _0x2c65b6=a1229_0x3a11;_0x2972d8['execOriginate'](_0x2ab0f8,_0x2972d8[_0x2c65b6(0x21b)][_0x2ab0f8[_0x2c65b6(0x22f)]])[_0x2c65b6(0x228)](function(_0x3918a2){const _0x5df55e=_0x2c65b6;ut['logger']('[Fax][execOriginate][success]',_0x3918a2),_0x2130d4(ut[_0x5df55e(0x1da)]('Fax\x20received'));})[_0x2c65b6(0x1ff)](function(_0x238423){const _0x5c231b=_0x2c65b6;ut[_0x5c231b(0x214)](_0x5c231b(0x234),_0x238423),updateStatus(_0x2ab0f8),_0x2c33f3(ut['message'](_0x5c231b(0x213)));});});},Fax[a1229_0x433031(0x20c)][a1229_0x433031(0x1f2)]=function(_0x2053d5){const _0x3f602f=this;return new Promise(function(_0x5868d0,_0x468d16){const _0x3ea007=a1229_0x3a11,_0x29d725=_0x3f602f[_0x3ea007(0x1cf)](_0x3f602f[_0x3ea007(0x21b)][_0x2053d5[_0x3ea007(0x22f)]][_0x3ea007(0x1c1)],_0x2053d5);_0x29d725[_0x3ea007(0x1c6)]?_0x5868d0(ut[_0x3ea007(0x1da)](_0x3ea007(0x1ea))):_0x468d16(ut[_0x3ea007(0x1da)](_0x29d725['message']));});};function originate(_0x33dd74,_0x355388,_0x20a495){return new Promise(function(_0x3d3ebc,_0x51cfa0){const _0x1b7785=a1229_0x3a11;if(_0x20a495){const _0x50e1f6=util['format'](_0x1b7785(0x211),path[_0x1b7785(0x20d)](_0x33dd74[_0x1b7785(0x1e6)])[_0x1b7785(0x203)],_0x33dd74[_0x1b7785(0x1e6)]);gs[_0x1b7785(0x1fe)](_0x50e1f6)[_0x1b7785(0x228)](function(){const _0x107e2c=_0x1b7785;_0x33dd74[_0x107e2c(0x1e6)]=util[_0x107e2c(0x236)]('%s/%s.tif',path[_0x107e2c(0x20d)](_0x33dd74[_0x107e2c(0x1e6)])[_0x107e2c(0x1de)],path['parse'](_0x33dd74[_0x107e2c(0x1e6)])[_0x107e2c(0x203)]),_0x355388[_0x107e2c(0x1df)]=_0x33dd74['path'],ut[_0x107e2c(0x214)]('Convert\x20pdf\x20to\x20tif',''),ami['Action'](ut[_0x107e2c(0x1e3)](_0x33dd74,_0x355388))[_0x107e2c(0x228)](function(_0x5cd6ff){_0x3d3ebc(_0x5cd6ff);})[_0x107e2c(0x1ff)](function(_0x4056c1){_0x51cfa0(_0x4056c1);});})[_0x1b7785(0x1ff)](function(_0x51318d){_0x51cfa0(_0x51318d);});}else ami['Action'](ut[_0x1b7785(0x1e3)](_0x33dd74,_0x355388))[_0x1b7785(0x228)](function(_0x535c8a){_0x3d3ebc(_0x535c8a);})['catch'](function(_0x296a52){_0x51cfa0(_0x296a52);});});}Fax[a1229_0x433031(0x20c)]['execOriginate']=function(_0x5277ca,_0x485783){const _0x3783c9=this;return new Promise(function(_0x2ccaf9,_0x531134){const _0x206b4e=a1229_0x3a11,_0x469b67=uuid['v4'](),_0x150726=ut[_0x206b4e(0x1d0)](_0x5277ca,_0x485783);_0x3783c9[_0x206b4e(0x212)][_0x469b67]=new Action(_0x469b67,_0x485783,_0x5277ca);const _0x55380e=_0x3783c9[_0x206b4e(0x212)][_0x469b67];path[_0x206b4e(0x20d)](_0x5277ca[_0x206b4e(0x1e6)])[_0x206b4e(0x1ef)]===_0x206b4e(0x1fb)?originate(_0x55380e,_0x150726,!![])[_0x206b4e(0x228)](function(_0x580368){_0x2ccaf9(_0x580368);})[_0x206b4e(0x1ff)](function(_0x10c091){_0x531134(_0x10c091);}):originate(_0x55380e,_0x150726,![])[_0x206b4e(0x228)](function(_0x3db395){_0x2ccaf9(_0x3db395);})['catch'](function(_0x202704){_0x531134(_0x202704);});});},Fax[a1229_0x433031(0x20c)][a1229_0x433031(0x1e5)]=function(_0x32e6a3){const _0x4484b4=a1229_0x433031;return!_['isNil'](_0x32e6a3)&&!_[_0x4484b4(0x237)](_0x32e6a3[_0x4484b4(0x203)])&&!_['isNil'](_0x32e6a3[_0x4484b4(0x1c3)])&&_0x32e6a3['active']&&!_[_0x4484b4(0x237)](this[_0x4484b4(0x200)][util[_0x4484b4(0x236)](_0x4484b4(0x22d),_0x32e6a3[_0x4484b4(0x203)])])&&!_[_0x4484b4(0x237)](this[_0x4484b4(0x200)][util[_0x4484b4(0x236)](_0x4484b4(0x22d),_0x32e6a3[_0x4484b4(0x203)])]['status'])&&(this[_0x4484b4(0x200)][util[_0x4484b4(0x236)](_0x4484b4(0x22d),_0x32e6a3[_0x4484b4(0x203)])][_0x4484b4(0x1e7)]===_0x4484b4(0x1ca)||this[_0x4484b4(0x200)][util['format'](_0x4484b4(0x22d),_0x32e6a3[_0x4484b4(0x203)])][_0x4484b4(0x1e7)]===_0x4484b4(0x218));},Fax[a1229_0x433031(0x20c)][a1229_0x433031(0x1cf)]=function(_0x35d762,_0x2a6a2c){const _0x336bf9=a1229_0x433031;if(!this[_0x336bf9(0x1e5)](_0x35d762))return ut[_0x336bf9(0x214)](_0x336bf9(0x226),_[_0x336bf9(0x237)](_0x35d762)?'':_0x35d762[_0x336bf9(0x203)]+_0x336bf9(0x1c8)),{'isValid':![],'message':_0x336bf9(0x1d6)};if(_[_0x336bf9(0x237)](_0x2a6a2c[_0x336bf9(0x1d8)]))return ut[_0x336bf9(0x214)](_0x336bf9(0x1c0),JSON[_0x336bf9(0x1f4)](_0x2a6a2c)),{'isValid':![],'message':_0x336bf9(0x220)};if(_[_0x336bf9(0x237)](_0x2a6a2c[_0x336bf9(0x1e6)]))return ut[_0x336bf9(0x214)]('[Fax][checkTrunk][Empty\x20path]',JSON[_0x336bf9(0x1f4)](_0x2a6a2c)),{'isValid':![],'message':_0x336bf9(0x1dc)};return{'isValid':!![],'message':'Is\x20Valid'};},module[a1229_0x433031(0x1ee)]=Fax; \ No newline at end of file +const a1229_0x2f7a=['create','Trunk\x20Reachable','\x20result\x20conversion\x20file\x20','execOriginate','faxpages','Trunk\x20not\x20working','dir','originateresponse','finally','[Fax][checkTrunk][Empty\x20path]','prototype','from-voip-provider','pagestransferred','./util/gs','trunks','isValid','faxAccounts','faxstatus','actions','syncVarSet','name','checkTrunk','\x20hangup\x20sendFile\x20','channelstate','localstationid','message','path','Fax\x20received','../ami','transferrate','error','lodash','parse','\x20Trunk\x20is\x20not\x20active','remotestationid','faxstatusstring','isTrunkReachable','calleridnum','logger','hangup','variable','[Fax][Message][NoUpdate2]','syncNewchannel','exten','[Fax][Message][Error][NoUpdate1]','bind','reason','operation','Convert\x20pdf\x20to\x20tif','../../../config/logger','channelstatedesc','reachable','checkAfterSend','SENDING\x20FAILED:\x20','updateStatus','\x20syncFaxStatus\x20','tiff2pdf','syncOriginateResponse','../rpc/faxMessage','stringify','active','XMF-PATH','newstate','varset','SIP/%s','\x20receiveFax\x20','filename','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','pick','syncNewState','value','receivefax','FaxAccountId','uniqueid','[Fax][Message][Error][Updated]','util','./action','AttachmentId','status','Action','[Fax][Message][Updated]','syncNewExten','syncHangup','catch','../rpc/faxAccount','.pdf','Is\x20Valid','../rpc/attachment','variablesAction','then','update','uuid','newchannel','ext','Fax\x20failed','isNil','[Fax][execOriginate][success]','channels','info','response','syncFaxStatus','Empty\x20path','syncReceiveFax','/var/opt/motion2/server/files/attachments/','resolution','\x20syncNewchannel\x20','application/pdf','\x20hangup\x20faxRiceive\x20','fax','[Fax][Message][Error][NoUpdate2]','format','\x20notify\x20','channel','./util/util','undefined','send'];(function(_0x3ce01a,_0x786a2c){const _0x2f7a46=function(_0x53ef68){while(--_0x53ef68){_0x3ce01a['push'](_0x3ce01a['shift']());}};_0x2f7a46(++_0x786a2c);}(a1229_0x2f7a,0x17c));const a1229_0x53ef=function(_0x3ce01a,_0x786a2c){_0x3ce01a=_0x3ce01a-0xe8;let _0x2f7a46=a1229_0x2f7a[_0x3ce01a];return _0x2f7a46;};const a1229_0x43963f=a1229_0x53ef;'use strict';const util=require(a1229_0x43963f(0x113)),_=require(a1229_0x43963f(0x15b)),uuid=require(a1229_0x43963f(0x123)),path=require(a1229_0x43963f(0x156)),tiff2pdf=require(a1229_0x43963f(0x100)),gs=require(a1229_0x43963f(0x149)),logger=require(a1229_0x43963f(0xf9))(a1229_0x43963f(0x134)),ami=require(a1229_0x43963f(0x158)),ut=require(a1229_0x43963f(0x139)),Action=require(a1229_0x43963f(0x114)),faxAccount=require(a1229_0x43963f(0x11c)),attachment=require(a1229_0x43963f(0x11f)),faxMessage=require(a1229_0x43963f(0x102));function Fax(_0x60a50a){const _0x21e215=a1229_0x43963f;this['channels']={},this['faxAccounts']=_0x60a50a[_0x21e215(0x14c)],this['trunks']=_0x60a50a['trunks'],this[_0x21e215(0x14e)]={},ami['on'](_0x21e215(0x124),this[_0x21e215(0xf2)][_0x21e215(0xf5)](this)),ami['on'](_0x21e215(0x107),this[_0x21e215(0x14f)]['bind'](this)),ami['on'](_0x21e215(0x106),this[_0x21e215(0x10d)]['bind'](this)),ami['on']('newexten',this['syncNewExten']['bind'](this)),ami['on'](_0x21e215(0x14d),this[_0x21e215(0x12c)][_0x21e215(0xf5)](this)),ami['on'](_0x21e215(0x10f),this[_0x21e215(0x12e)][_0x21e215(0xf5)](this)),ami['on'](_0x21e215(0xef),this[_0x21e215(0x11a)][_0x21e215(0xf5)](this)),ami['on'](_0x21e215(0x143),this['syncOriginateResponse']['bind'](this));}Fax[a1229_0x43963f(0x146)][a1229_0x43963f(0xf2)]=function(_0x9f0a4d){const _0x50c18e=a1229_0x43963f;if(_0x9f0a4d['context']===_0x50c18e(0x147))for(const _0x4d4a4e in this[_0x50c18e(0x14c)]){typeof this[_0x50c18e(0x14c)][_0x4d4a4e]!==_0x50c18e(0x13a)&&(_0x9f0a4d[_0x50c18e(0xf3)]===this[_0x50c18e(0x14c)][_0x4d4a4e]['localstationid']&&(this['channels'][_0x9f0a4d[_0x50c18e(0x111)]]={},this[_0x50c18e(0x129)][_0x9f0a4d[_0x50c18e(0x111)]][_0x50c18e(0x138)]=_0x9f0a4d[_0x50c18e(0x138)],this['channels'][_0x9f0a4d[_0x50c18e(0x111)]]['id']=this['faxAccounts'][_0x4d4a4e]['id'],this[_0x50c18e(0x129)][_0x9f0a4d[_0x50c18e(0x111)]][_0x50c18e(0x150)]=this[_0x50c18e(0x14c)][_0x4d4a4e][_0x50c18e(0x150)],logger[_0x50c18e(0x12a)](_0x9f0a4d[_0x50c18e(0x111)],_0x50c18e(0x131))));}this[_0x50c18e(0x14e)][_0x9f0a4d[_0x50c18e(0x111)]]&&(this['channels'][_0x9f0a4d[_0x50c18e(0x111)]]={},this[_0x50c18e(0x129)][_0x9f0a4d['uniqueid']][_0x50c18e(0x138)]=_0x9f0a4d[_0x50c18e(0x138)],logger['info'](_0x9f0a4d[_0x50c18e(0x111)],'\x20syncNewchannel\x20'));},Fax[a1229_0x43963f(0x146)][a1229_0x43963f(0x14f)]=function(_0x1668c2){const _0x1a2e57=a1229_0x43963f;if(this[_0x1a2e57(0x129)][_0x1668c2['uniqueid']])for(const _0x1603cb in _0x1668c2['variable']){typeof _0x1668c2[_0x1a2e57(0xf0)][_0x1603cb]!==_0x1a2e57(0x13a)&&(this['channels'][_0x1668c2[_0x1a2e57(0x111)]][_0x1603cb]=_0x1668c2['value']);}},Fax[a1229_0x43963f(0x146)][a1229_0x43963f(0x10d)]=function(_0x4e3fd3){const _0x3964fc=a1229_0x43963f;this[_0x3964fc(0x129)][_0x4e3fd3[_0x3964fc(0x111)]]&&(this['channels'][_0x4e3fd3[_0x3964fc(0x111)]][_0x3964fc(0x153)]=_0x4e3fd3[_0x3964fc(0x153)],this[_0x3964fc(0x129)][_0x4e3fd3[_0x3964fc(0x111)]]['channelstatedesc']=_0x4e3fd3[_0x3964fc(0xfa)]);},Fax['prototype'][a1229_0x43963f(0x119)]=function(_0x197315){const _0x32f0cc=a1229_0x43963f;if(this[_0x32f0cc(0x129)][_0x197315[_0x32f0cc(0x111)]])for(const _0x1f4d67 in _0x197315['variable']){typeof _0x197315[_0x32f0cc(0xf0)][_0x1f4d67]!==_0x32f0cc(0x13a)&&(this[_0x32f0cc(0x129)][_0x197315['uniqueid']][_0x1f4d67]=_0x197315[_0x32f0cc(0x10e)]);}},Fax[a1229_0x43963f(0x146)][a1229_0x43963f(0x12c)]=function(_0x42b0fb){const _0x42e9fd=a1229_0x43963f;this[_0x42e9fd(0x129)][_0x42b0fb[_0x42e9fd(0x111)]]&&(this[_0x42e9fd(0x129)][_0x42b0fb[_0x42e9fd(0x111)]][_0x42e9fd(0xf7)]=_0x42b0fb[_0x42e9fd(0xf7)],this[_0x42e9fd(0x129)][_0x42b0fb[_0x42e9fd(0x111)]][_0x42e9fd(0x116)]=_0x42b0fb[_0x42e9fd(0x116)],this[_0x42e9fd(0x129)][_0x42b0fb[_0x42e9fd(0x111)]]['localstationid']=_0x42b0fb[_0x42e9fd(0x154)],this['channels'][_0x42b0fb[_0x42e9fd(0x111)]]['filename']=_0x42b0fb[_0x42e9fd(0x10a)],logger['info'](_0x42b0fb['uniqueid'],_0x42e9fd(0xff)));},Fax['prototype']['syncReceiveFax']=function(_0x4124ac){const _0x4aaae5=a1229_0x43963f;if(this[_0x4aaae5(0x129)][_0x4124ac['uniqueid']]){const _0xc18466=this[_0x4aaae5(0x129)][_0x4124ac[_0x4aaae5(0x111)]]['id'];this[_0x4aaae5(0x129)][_0x4124ac[_0x4aaae5(0x111)]]['remotestationid']=_0x4124ac[_0x4aaae5(0xea)],this[_0x4aaae5(0x129)][_0x4124ac[_0x4aaae5(0x111)]][_0x4aaae5(0x148)]=_0x4124ac['pagestransferred'],this['channels'][_0x4124ac[_0x4aaae5(0x111)]]['localstationid']=_0x4124ac[_0x4aaae5(0x154)],this[_0x4aaae5(0x129)][_0x4124ac['uniqueid']][_0x4aaae5(0x130)]=_0x4124ac[_0x4aaae5(0x130)],this[_0x4aaae5(0x129)][_0x4124ac[_0x4aaae5(0x111)]][_0x4aaae5(0x159)]=_0x4124ac['transferrate'],this['channels'][_0x4124ac[_0x4aaae5(0x111)]]['filename']=_0x4124ac[_0x4aaae5(0x10a)],this[_0x4aaae5(0x129)][_0x4124ac[_0x4aaae5(0x111)]][_0x4aaae5(0xed)]=_0x4124ac[_0x4aaae5(0xed)],this[_0x4aaae5(0x129)][_0x4124ac['uniqueid']][_0x4aaae5(0x148)]>0x0&&tiff2pdf(_0x4124ac[_0x4aaae5(0x10a)],_0x4aaae5(0x12f),function(_0x440eff){const _0x33ba1c=_0x4aaae5;logger[_0x33ba1c(0x12a)](_0x4124ac[_0x33ba1c(0x111)],_0x33ba1c(0x13e),_0x440eff[_0x33ba1c(0x155)]),attachment[_0x33ba1c(0x13c)]({'name':path[_0x33ba1c(0xe8)](_0x4124ac[_0x33ba1c(0x10a)])[_0x33ba1c(0x150)],'basename':path[_0x33ba1c(0xe8)](_0x4124ac['filename'])[_0x33ba1c(0x150)]+'.pdf','type':_0x33ba1c(0x132)})[_0x33ba1c(0x121)](function(_0x564b16){const _0x33ff94=_0x33ba1c;faxAccount['notify'](_0xc18466,{'from':_0x4124ac[_0x33ff94(0xed)],'mapKey':_0x33ff94(0x134),'body':path['parse'](_0x4124ac[_0x33ff94(0x10a)])[_0x33ff94(0x150)]+'.pdf','AttachmentId':_0x564b16['id']})[_0x33ff94(0x11b)](function(_0x16de6f){const _0x3e3d44=_0x33ff94;logger[_0x3e3d44(0x15a)](_0x4124ac['uniqueid'],_0x3e3d44(0x137),JSON['stringify'](_0x16de6f));});})['catch'](function(_0x151648){const _0x3971d0=_0x33ba1c;logger[_0x3971d0(0x15a)](_0x4124ac['uniqueid'],_0x3971d0(0x109),JSON[_0x3971d0(0x103)](_0x151648));});}),logger['info'](_0x4124ac['uniqueid'],'\x20receiveFax\x20');}},Fax[a1229_0x43963f(0x146)][a1229_0x43963f(0x101)]=function(_0x1c4c22){const _0x448e36=a1229_0x43963f;this[_0x448e36(0x14e)][_0x1c4c22[_0x448e36(0x111)]]&&_['merge'](this['channels'][_0x1c4c22[_0x448e36(0x111)]],_[_0x448e36(0x10c)](_0x1c4c22,[_0x448e36(0x12b),_0x448e36(0xf6)]));};function updateStatus(_0xf14d50){const _0x545653=a1229_0x43963f;_0xf14d50['AttachmentId']?faxMessage[_0x545653(0x122)](_0xf14d50[_0x545653(0x115)],{'failMessage':'SENDING\x20FAILED\x20'})[_0x545653(0x121)](function(_0x1f1406){const _0x35c403=_0x545653;ut[_0x35c403(0xee)](_0x35c403(0x112),_0x1f1406);})[_0x545653(0x11b)](function(_0x3177b6){const _0x4d6082=_0x545653;ut[_0x4d6082(0xee)](_0x4d6082(0xf4),_0x3177b6);}):ut['logger'](_0x545653(0x135));}Fax[a1229_0x43963f(0x146)][a1229_0x43963f(0xfe)]=function(_0x1d731c,_0x13f134,_0x3257d6){const _0x4586fa=a1229_0x43963f,_0xc0cd9a=this;let _0x5f0aa1={};_0x13f134?_0x5f0aa1={'read':_0x13f134}:_0x5f0aa1={'failMessage':_0x3257d6},this[_0x4586fa(0x14e)][_0x1d731c][_0x4586fa(0x115)]?faxMessage[_0x4586fa(0x122)](this[_0x4586fa(0x14e)][_0x1d731c][_0x4586fa(0x115)],_0x5f0aa1)[_0x4586fa(0x121)](function(_0x16ffb3){const _0x1a7cde=_0x4586fa;ut[_0x1a7cde(0xee)](_0x1a7cde(0x118),_0x16ffb3);})[_0x4586fa(0x11b)](function(_0x309db){const _0x162d8c=_0x4586fa;ut[_0x162d8c(0xee)]('[Fax][Message][NoUpdate1]',_0x309db);})[_0x4586fa(0x144)](function(){delete _0xc0cd9a['channels'][_0x1d731c],delete _0xc0cd9a['actions'][_0x1d731c];}):(ut[_0x4586fa(0xee)](_0x4586fa(0xf1)),delete this[_0x4586fa(0x129)][_0x1d731c],delete this[_0x4586fa(0x14e)][_0x1d731c]);},Fax['prototype'][a1229_0x43963f(0x11a)]=function(_0x3bc5f8){const _0x419e4a=a1229_0x43963f;this[_0x419e4a(0x129)][_0x3bc5f8['uniqueid']]&&(this['actions'][_0x3bc5f8[_0x419e4a(0x111)]]&&(this[_0x419e4a(0x129)][_0x3bc5f8[_0x419e4a(0x111)]]['id']=this['actions'][_0x3bc5f8['uniqueid']]['id'],this[_0x419e4a(0x129)][_0x3bc5f8[_0x419e4a(0x111)]][_0x419e4a(0x150)]=this['actions'][_0x3bc5f8[_0x419e4a(0x111)]]['name']),logger[_0x419e4a(0x12a)](_0x3bc5f8[_0x419e4a(0x111)],this['actions'][_0x3bc5f8[_0x419e4a(0x111)]]?_0x419e4a(0x152):_0x419e4a(0x133),JSON[_0x419e4a(0x103)](this['channels'][_0x3bc5f8[_0x419e4a(0x111)]])),this['actions'][_0x3bc5f8[_0x419e4a(0x111)]]&&(this[_0x419e4a(0x129)][_0x3bc5f8[_0x419e4a(0x111)]][_0x419e4a(0x140)]>0x0&&this[_0x419e4a(0x129)][_0x3bc5f8[_0x419e4a(0x111)]][_0x419e4a(0x14d)]==='SUCCESS'?this[_0x419e4a(0xfe)](_0x3bc5f8[_0x419e4a(0x111)],!![]):this[_0x419e4a(0xfe)](_0x3bc5f8[_0x419e4a(0x111)],![],this['channels'][_0x3bc5f8[_0x419e4a(0x111)]][_0x419e4a(0xeb)]?_0x419e4a(0xfd)+this[_0x419e4a(0x129)][_0x3bc5f8[_0x419e4a(0x111)]][_0x419e4a(0xeb)]:'SENDING\x20FAILED')));},Fax[a1229_0x43963f(0x146)][a1229_0x43963f(0x13b)]=function(_0x54a351){const _0x53527d=this;return new Promise(function(_0x91cf75,_0x3e748e){const _0x162820=a1229_0x53ef;_0x53527d[_0x162820(0x13f)](_0x54a351,_0x53527d[_0x162820(0x14c)][_0x54a351[_0x162820(0x110)]])[_0x162820(0x121)](function(_0x2fdb7d){const _0x28f129=_0x162820;ut[_0x28f129(0xee)](_0x28f129(0x128),_0x2fdb7d),_0x91cf75(ut[_0x28f129(0x155)](_0x28f129(0x157)));})[_0x162820(0x11b)](function(_0x264cb3){const _0x26824f=_0x162820;ut['logger']('[Fax][execOriginate][failure]',_0x264cb3),updateStatus(_0x54a351),_0x3e748e(ut[_0x26824f(0x155)](_0x26824f(0x126)));});});},Fax['prototype'][a1229_0x43963f(0xfc)]=function(_0x24622a){const _0x332469=this;return new Promise(function(_0x42a410,_0x2063f0){const _0x51a8ad=a1229_0x53ef,_0x1d85f5=_0x332469['checkTrunk'](_0x332469[_0x51a8ad(0x14c)][_0x24622a['FaxAccountId']]['Trunk'],_0x24622a);_0x1d85f5[_0x51a8ad(0x14b)]?_0x42a410(ut[_0x51a8ad(0x155)](_0x51a8ad(0x13d))):_0x2063f0(ut[_0x51a8ad(0x155)](_0x1d85f5[_0x51a8ad(0x155)]));});};function originate(_0x536d99,_0x26e4a8,_0x1d61ea){return new Promise(function(_0x193a10,_0xb1a131){const _0x2c74f9=a1229_0x53ef;if(_0x1d61ea){const _0x624b01=util['format'](_0x2c74f9(0x10b),path[_0x2c74f9(0xe8)](_0x536d99['path'])['name'],_0x536d99[_0x2c74f9(0x156)]);gs['execute'](_0x624b01)[_0x2c74f9(0x121)](function(){const _0x345b1a=_0x2c74f9;_0x536d99[_0x345b1a(0x156)]=util[_0x345b1a(0x136)]('%s/%s.tif',path['parse'](_0x536d99[_0x345b1a(0x156)])[_0x345b1a(0x142)],path[_0x345b1a(0xe8)](_0x536d99['path'])[_0x345b1a(0x150)]),_0x26e4a8[_0x345b1a(0x105)]=_0x536d99[_0x345b1a(0x156)],ut[_0x345b1a(0xee)](_0x345b1a(0xf8),''),ami['Action'](ut[_0x345b1a(0x120)](_0x536d99,_0x26e4a8))[_0x345b1a(0x121)](function(_0x3f04d1){_0x193a10(_0x3f04d1);})[_0x345b1a(0x11b)](function(_0x1ff1d4){_0xb1a131(_0x1ff1d4);});})[_0x2c74f9(0x11b)](function(_0x189ea1){_0xb1a131(_0x189ea1);});}else ami[_0x2c74f9(0x117)](ut[_0x2c74f9(0x120)](_0x536d99,_0x26e4a8))['then'](function(_0x1c1c21){_0x193a10(_0x1c1c21);})['catch'](function(_0x58c346){_0xb1a131(_0x58c346);});});}Fax[a1229_0x43963f(0x146)][a1229_0x43963f(0x13f)]=function(_0x4475bc,_0x1d618a){const _0x1885b7=this;return new Promise(function(_0x53da8b,_0x1b89fa){const _0x2eb8de=a1229_0x53ef,_0x50b2d2=uuid['v4'](),_0x1f6d50=ut['addVariables'](_0x4475bc,_0x1d618a);_0x1885b7[_0x2eb8de(0x14e)][_0x50b2d2]=new Action(_0x50b2d2,_0x1d618a,_0x4475bc);const _0x3395d5=_0x1885b7[_0x2eb8de(0x14e)][_0x50b2d2];path[_0x2eb8de(0xe8)](_0x4475bc[_0x2eb8de(0x156)])[_0x2eb8de(0x125)]===_0x2eb8de(0x11d)?originate(_0x3395d5,_0x1f6d50,!![])[_0x2eb8de(0x121)](function(_0x127d28){_0x53da8b(_0x127d28);})[_0x2eb8de(0x11b)](function(_0x293f8d){_0x1b89fa(_0x293f8d);}):originate(_0x3395d5,_0x1f6d50,![])[_0x2eb8de(0x121)](function(_0x3e9fcf){_0x53da8b(_0x3e9fcf);})[_0x2eb8de(0x11b)](function(_0xb99410){_0x1b89fa(_0xb99410);});});},Fax[a1229_0x43963f(0x146)][a1229_0x43963f(0xec)]=function(_0x3be834){const _0x4ef89c=a1229_0x43963f;return!_[_0x4ef89c(0x127)](_0x3be834)&&!_[_0x4ef89c(0x127)](_0x3be834[_0x4ef89c(0x150)])&&!_['isNil'](_0x3be834[_0x4ef89c(0x104)])&&_0x3be834[_0x4ef89c(0x104)]&&!_[_0x4ef89c(0x127)](this[_0x4ef89c(0x14a)][util[_0x4ef89c(0x136)]('SIP/%s',_0x3be834[_0x4ef89c(0x150)])])&&!_['isNil'](this[_0x4ef89c(0x14a)][util['format']('SIP/%s',_0x3be834[_0x4ef89c(0x150)])][_0x4ef89c(0x116)])&&(this['trunks'][util[_0x4ef89c(0x136)](_0x4ef89c(0x108),_0x3be834[_0x4ef89c(0x150)])][_0x4ef89c(0x116)]===_0x4ef89c(0xfb)||this['trunks'][util[_0x4ef89c(0x136)](_0x4ef89c(0x108),_0x3be834['name'])][_0x4ef89c(0x116)]==='unmonitored');},Fax['prototype'][a1229_0x43963f(0x151)]=function(_0x3110e5,_0x3fea08){const _0x1af2c2=a1229_0x43963f;if(!this[_0x1af2c2(0xec)](_0x3110e5))return ut[_0x1af2c2(0xee)]('[Fax][checkTrunk][Trunk\x20not\x20work]',_[_0x1af2c2(0x127)](_0x3110e5)?'':_0x3110e5['name']+_0x1af2c2(0xe9)),{'isValid':![],'message':_0x1af2c2(0x141)};if(_['isNil'](_0x3fea08[_0x1af2c2(0x134)]))return ut['logger']('[Fax][checkTrunk][Empty\x20Fax]',JSON['stringify'](_0x3fea08)),{'isValid':![],'message':'Empty\x20Fax'};if(_[_0x1af2c2(0x127)](_0x3fea08[_0x1af2c2(0x156)]))return ut[_0x1af2c2(0xee)](_0x1af2c2(0x145),JSON[_0x1af2c2(0x103)](_0x3fea08)),{'isValid':![],'message':_0x1af2c2(0x12d)};return{'isValid':!![],'message':_0x1af2c2(0x11e)};},module['exports']=Fax; \ No newline at end of file diff --git a/server/services/ami/fax/rpcDb.js b/server/services/ami/fax/rpcDb.js index 35b09ad..81f3cce 100644 --- a/server/services/ami/fax/rpcDb.js +++ b/server/services/ami/fax/rpcDb.js @@ -1 +1 @@ -const a1230_0xa1b9=['resolve','util','inspect','[Notify]\x20','notify','preview'];(function(_0x16cd36,_0x15ee40){const _0xa1b9d3=function(_0x442115){while(--_0x442115){_0x16cd36['push'](_0x16cd36['shift']());}};_0xa1b9d3(++_0x15ee40);}(a1230_0xa1b9,0x1ad));const a1230_0x4421=function(_0x16cd36,_0x15ee40){_0x16cd36=_0x16cd36-0xed;let _0xa1b9d3=a1230_0xa1b9[_0x16cd36];return _0xa1b9d3;};const a1230_0x41955c=a1230_0x4421;'use strict';const util=require(a1230_0x41955c(0xf1)),logger=require('../../../config/logger')(a1230_0x41955c(0xef)),faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x591802){return function(_0x477dc4){const _0x1fe680=a1230_0x4421;logger['error'](_0x591802,util[_0x1fe680(0xf2)](_0x477dc4,{'showHidden':![],'depth':null}));};}exports[a1230_0x41955c(0xee)]=function(_0x32d8b0,_0x3b74ba){const _0x19b8ba=a1230_0x41955c;return Promise[_0x19b8ba(0xf0)]()['then'](faxAccount[_0x19b8ba(0xee)](_0x32d8b0,_0x3b74ba))['catch'](loggerCatch(_0x19b8ba(0xed)));}; \ No newline at end of file +const a1230_0x2d0b=['error','../rpc/faxAccount','util','resolve','preview','../../../config/logger','notify','then'];(function(_0x40d63e,_0x1b4b7c){const _0x2d0b79=function(_0x4ab6af){while(--_0x4ab6af){_0x40d63e['push'](_0x40d63e['shift']());}};_0x2d0b79(++_0x1b4b7c);}(a1230_0x2d0b,0x17c));const a1230_0x4ab6=function(_0x40d63e,_0x1b4b7c){_0x40d63e=_0x40d63e-0x115;let _0x2d0b79=a1230_0x2d0b[_0x40d63e];return _0x2d0b79;};const a1230_0x143526=a1230_0x4ab6;'use strict';const util=require(a1230_0x143526(0x11b)),logger=require(a1230_0x143526(0x116))(a1230_0x143526(0x115)),faxAccount=require(a1230_0x143526(0x11a));function loggerCatch(_0x3fda2b){return function(_0x55c909){const _0x488ee8=a1230_0x4ab6;logger[_0x488ee8(0x119)](_0x3fda2b,util['inspect'](_0x55c909,{'showHidden':![],'depth':null}));};}exports[a1230_0x143526(0x117)]=function(_0x23d6c,_0x3a0a05){const _0x4f5dbf=a1230_0x143526;return Promise[_0x4f5dbf(0x11c)]()[_0x4f5dbf(0x118)](faxAccount['notify'](_0x23d6c,_0x3a0a05))['catch'](loggerCatch('[Notify]\x20'));}; \ 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 800b274..8ef48b5 100644 --- a/server/services/ami/fax/util/gs.js +++ b/server/services/ami/fax/util/gs.js @@ -1 +1 @@ -const a1231_0x5481=['../../../../config/logger','Exec\x20gs','execute','inspect','util','fax','info','child_process','exec'];(function(_0x14e26e,_0xc6d900){const _0x5481a3=function(_0xe1f2fd){while(--_0xe1f2fd){_0x14e26e['push'](_0x14e26e['shift']());}};_0x5481a3(++_0xc6d900);}(a1231_0x5481,0x10c));const a1231_0xe1f2=function(_0x14e26e,_0xc6d900){_0x14e26e=_0x14e26e-0x6d;let _0x5481a3=a1231_0x5481[_0x14e26e];return _0x5481a3;};const a1231_0x19456a=a1231_0xe1f2;'use strict';const util=require(a1231_0x19456a(0x73)),logger=require(a1231_0x19456a(0x6f))(a1231_0x19456a(0x74)),exec=require(a1231_0x19456a(0x6d))[a1231_0x19456a(0x6e)];exports[a1231_0x19456a(0x71)]=function(_0x41aeee){return new Promise(function(_0x2ec167,_0x10d571){exec(_0x41aeee,function(_0x2ebba0,_0x5825b0,_0x9ffd89){const _0x1b77ae=a1231_0xe1f2;logger['info'](_0x1b77ae(0x70),_0x5825b0),_0x2ebba0&&(logger[_0x1b77ae(0x75)](_0x1b77ae(0x70),'\x20Error\x20:',util[_0x1b77ae(0x72)](_0x2ebba0,{'showHidden':![],'depth':null}),_0x5825b0,_0x9ffd89),_0x10d571(_0x2ebba0)),_0x2ec167(_0x5825b0);});});}; \ No newline at end of file +const a1231_0x20a2=['../../../../config/logger','util','fax','info','execute','\x20Error\x20:','Exec\x20gs','child_process','inspect'];(function(_0xe6a14e,_0x3b578d){const _0x20a23d=function(_0x430b18){while(--_0x430b18){_0xe6a14e['push'](_0xe6a14e['shift']());}};_0x20a23d(++_0x3b578d);}(a1231_0x20a2,0x18d));const a1231_0x430b=function(_0xe6a14e,_0x3b578d){_0xe6a14e=_0xe6a14e-0xbe;let _0x20a23d=a1231_0x20a2[_0xe6a14e];return _0x20a23d;};const a1231_0x33ab8f=a1231_0x430b;'use strict';const util=require(a1231_0x33ab8f(0xbe)),logger=require(a1231_0x33ab8f(0xc6))(a1231_0x33ab8f(0xbf)),exec=require(a1231_0x33ab8f(0xc4))['exec'];exports[a1231_0x33ab8f(0xc1)]=function(_0x3ea0de){return new Promise(function(_0x2c4e83,_0x160bd2){exec(_0x3ea0de,function(_0xfc650d,_0x1cb661,_0x29fda0){const _0x19ddee=a1231_0x430b;logger[_0x19ddee(0xc0)](_0x19ddee(0xc3),_0x1cb661),_0xfc650d&&(logger[_0x19ddee(0xc0)]('Exec\x20gs',_0x19ddee(0xc2),util[_0x19ddee(0xc5)](_0xfc650d,{'showHidden':![],'depth':null}),_0x1cb661,_0x29fda0),_0x160bd2(_0xfc650d)),_0x2c4e83(_0x1cb661);});});}; \ 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 90c3d94..4b24549 100644 --- a/server/services/ami/fax/util/util.js +++ b/server/services/ami/fax/util/util.js @@ -1 +1 @@ -const a1232_0x3282=['originate','util','gateway','from-sip','\x22%s\x22\x20<%s>','faxdetect','message','xcally-motion-fax','channel','fax','format','inspect','logger','maxrate','minrate','localstationid','uniqueid','../../../../config/logger','info','t38timeout','headerinfo'];(function(_0x1262ab,_0x5a5a79){const _0x32825d=function(_0x26e8cb){while(--_0x26e8cb){_0x1262ab['push'](_0x1262ab['shift']());}};_0x32825d(++_0x5a5a79);}(a1232_0x3282,0xee));const a1232_0x26e8=function(_0x1262ab,_0x5a5a79){_0x1262ab=_0x1262ab-0x7c;let _0x32825d=a1232_0x3282[_0x1262ab];return _0x32825d;};const a1232_0x450d9b=a1232_0x26e8;'use strict';const util=require(a1232_0x450d9b(0x8b)),logger=require(a1232_0x450d9b(0x86))(a1232_0x450d9b(0x7e));exports[a1232_0x450d9b(0x90)]=function(_0x212070){return{'message':_0x212070};},exports[a1232_0x450d9b(0x81)]=function(_0x36d7d1,_0x20bce9){const _0x2814fe=a1232_0x450d9b;logger[_0x2814fe(0x87)](_0x36d7d1,util[_0x2814fe(0x80)](_0x20bce9,{'showHidden':![],'depth':null}));},exports['addVariables']=function(_0x3d4c8a,_0x1a2d89){const _0x465677=a1232_0x450d9b,_0x90dfbf={'XMF-ECM':_0x1a2d89['ecm'],'XMF-HEADERINFO':_0x1a2d89[_0x465677(0x89)],'XMF-MINRATE':_0x1a2d89[_0x465677(0x83)],'XMF-MAXRATE':_0x1a2d89[_0x465677(0x82)],'XMF-MODEM':util['format']('\x22%s\x22',_0x1a2d89['modem']),'XMF-GATEWAY':_0x1a2d89[_0x465677(0x8c)],'XMF-FAXDETECT':_0x1a2d89[_0x465677(0x8f)],'XMF-T38TIMEOUT':_0x1a2d89[_0x465677(0x88)],'XMF-LOCALSTATIONID':_0x1a2d89['localstationid'],'XMF-PATH':_0x3d4c8a['path']};return _0x90dfbf;},exports['variablesAction']=function(_0x20a236,_0x2f5c29){const _0x2ddbbe=a1232_0x450d9b;return{'actionid':_0x20a236[_0x2ddbbe(0x85)],'action':_0x2ddbbe(0x8a),'channel':_0x20a236[_0x2ddbbe(0x7d)],'Exten':_0x2ddbbe(0x7c),'Context':_0x2ddbbe(0x8d),'Priority':'1','callerid':util[_0x2ddbbe(0x7f)](_0x2ddbbe(0x8e),_0x20a236[_0x2ddbbe(0x89)]?_0x20a236[_0x2ddbbe(0x89)]:'',_0x20a236[_0x2ddbbe(0x84)]),'variable':_0x2f5c29,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x20a236[_0x2ddbbe(0x85)]};}; \ No newline at end of file +const a1232_0x1306=['path','variablesAction','originate','ecm','minrate','t38timeout','headerinfo','info','addVariables','message','util','uniqueid','maxrate','format','\x22%s\x22','inspect','localstationid','xcally-motion-fax','from-sip','../../../../config/logger','faxdetect','\x22%s\x22\x20<%s>','channel','modem'];(function(_0x33c612,_0x43c415){const _0x1306d8=function(_0x10f6a6){while(--_0x10f6a6){_0x33c612['push'](_0x33c612['shift']());}};_0x1306d8(++_0x43c415);}(a1232_0x1306,0x1ef));const a1232_0x10f6=function(_0x33c612,_0x43c415){_0x33c612=_0x33c612-0x10a;let _0x1306d8=a1232_0x1306[_0x33c612];return _0x1306d8;};const a1232_0x9da2fb=a1232_0x10f6;'use strict';const util=require(a1232_0x9da2fb(0x11d)),logger=require(a1232_0x9da2fb(0x10e))('fax');exports[a1232_0x9da2fb(0x11c)]=function(_0x1364d6){return{'message':_0x1364d6};},exports['logger']=function(_0x54a6fd,_0x3f76f5){const _0x6e7698=a1232_0x9da2fb;logger[_0x6e7698(0x11a)](_0x54a6fd,util[_0x6e7698(0x10a)](_0x3f76f5,{'showHidden':![],'depth':null}));},exports[a1232_0x9da2fb(0x11b)]=function(_0x5dc171,_0x30a0df){const _0x3d4cb9=a1232_0x9da2fb,_0x1850ae={'XMF-ECM':_0x30a0df[_0x3d4cb9(0x116)],'XMF-HEADERINFO':_0x30a0df[_0x3d4cb9(0x119)],'XMF-MINRATE':_0x30a0df[_0x3d4cb9(0x117)],'XMF-MAXRATE':_0x30a0df[_0x3d4cb9(0x11f)],'XMF-MODEM':util[_0x3d4cb9(0x120)](_0x3d4cb9(0x121),_0x30a0df[_0x3d4cb9(0x112)]),'XMF-GATEWAY':_0x30a0df['gateway'],'XMF-FAXDETECT':_0x30a0df[_0x3d4cb9(0x10f)],'XMF-T38TIMEOUT':_0x30a0df[_0x3d4cb9(0x118)],'XMF-LOCALSTATIONID':_0x30a0df[_0x3d4cb9(0x10b)],'XMF-PATH':_0x5dc171[_0x3d4cb9(0x113)]};return _0x1850ae;},exports[a1232_0x9da2fb(0x114)]=function(_0x1cc8a9,_0x772521){const _0x44790d=a1232_0x9da2fb;return{'actionid':_0x1cc8a9[_0x44790d(0x11e)],'action':_0x44790d(0x115),'channel':_0x1cc8a9[_0x44790d(0x111)],'Exten':_0x44790d(0x10c),'Context':_0x44790d(0x10d),'Priority':'1','callerid':util['format'](_0x44790d(0x110),_0x1cc8a9[_0x44790d(0x119)]?_0x1cc8a9['headerinfo']:'',_0x1cc8a9[_0x44790d(0x10b)]),'variable':_0x772521,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x1cc8a9['uniqueid']};}; \ No newline at end of file diff --git a/server/services/ami/index.js b/server/services/ami/index.js index 4bc0855..024e6fa 100644 --- a/server/services/ami/index.js +++ b/server/services/ami/index.js @@ -1 +1 @@ -const a1233_0x568c=['then','./rpc/integrations/salesforce','initVtigerAccounts','getTrunks','initTrunks','./rpc/cmHopperHistory','./rpc/integrations/freshsales','initTelephones','listen','./rpc/template','getTelephones','getVoiceQueueReports','getFaxAccounts','./rpc/trunk','./fax','initFaxAccounts','moment','./rpc/integrations/sugarcrm','getVtigerAccounts','./rpc/integrations/freshdesk','sync','./server','initDeskAccounts','./rpc/user','getDynamics365Accounts','getCampaigns','getSugarcrmAccounts','initDynamics365Accounts','initSalesforceAccounts','hour','./rpc/trigger','initServicenowAccounts','initAgents','./rpc/integrations/dynamics365','initTriggers','initZendeskAccounts','get','resolve','initCampaignHopperHistory','initVoiceQueues','getSalesforceAccounts','getServicenowAccounts','getVoiceExtensions','getDeskAccounts','initFreshdeskAccounts','initFreshsalesAccounts','./report','./rpc/faxAccount','getFreshdeskAccounts','catch','initCampaigns','./rpc/integrations/servicenow','./rpc/voiceQueueReport','getVoiceQueues','./rpc/voiceCallReport','getVoiceQueueHopperHistory','./rpc/voiceQueue','initVoiceQueueHopperHistory','log','./rpc/voiceExtension','getTemplates','./rpc/integrations/vtiger','getZendeskAccounts','getCampaignHopperHistory','initVoiceExtensions'];(function(_0x65d3fc,_0x3a5c43){const _0x568c4c=function(_0xd62063){while(--_0xd62063){_0x65d3fc['push'](_0x65d3fc['shift']());}};_0x568c4c(++_0x3a5c43);}(a1233_0x568c,0x117));const a1233_0xd620=function(_0x65d3fc,_0x3a5c43){_0x65d3fc=_0x65d3fc-0x171;let _0x568c4c=a1233_0x568c[_0x65d3fc];return _0x568c4c;};const a1233_0x1f5975=a1233_0xd620;'use strict';require('../../globals');const moment=require(a1233_0x1f5975(0x1af)),server=require(a1233_0x1f5975(0x173)),Realtime=require('./realtime'),Report=require(a1233_0x1f5975(0x18c)),Preview=require('./preview'),Fax=require(a1233_0x1f5975(0x1ad)),user=require(a1233_0x1f5975(0x175)),voiceQueue=require(a1233_0x1f5975(0x196)),voiceQueueReport=require(a1233_0x1f5975(0x192)),voiceCallReport=require(a1233_0x1f5975(0x194)),trunk=require(a1233_0x1f5975(0x1ac)),trigger=require(a1233_0x1f5975(0x17c)),template=require(a1233_0x1f5975(0x1a8)),cmHopperHistory=require(a1233_0x1f5975(0x1a4)),campaign=require('./rpc/campaign'),voiceExtension=require(a1233_0x1f5975(0x199)),faxAccount=require(a1233_0x1f5975(0x18d)),zendesk=require('./rpc/integrations/zendesk'),salesforce=require(a1233_0x1f5975(0x1a0)),sugarcrm=require(a1233_0x1f5975(0x1b0)),freshdesk=require(a1233_0x1f5975(0x171)),desk=require('./rpc/integrations/desk'),zoho=require('./rpc/integrations/zoho'),vtiger=require(a1233_0x1f5975(0x19b)),freshsales=require(a1233_0x1f5975(0x1a5)),servicenow=require(a1233_0x1f5975(0x191)),dynamics365=require(a1233_0x1f5975(0x17f)),realtime=new Realtime(),report=new Report(realtime),preview=new Preview(realtime),fax=new Fax(realtime);let isTrue=!![],initP=!![];function ifMidnight(){const _0x13f76a=a1233_0x1f5975;moment()[_0x13f76a(0x182)](_0x13f76a(0x17b))===0x0&&initP&&(initP=![],isTrue=!![],initParams()),moment()['get'](_0x13f76a(0x17b))===0x1&&isTrue&&(isTrue=![],initP=!![]);}function initRealtime(){const _0x75077=a1233_0x1f5975;return ifMidnight(),Promise[_0x75077(0x183)]()[_0x75077(0x19f)](user['getAgents']())[_0x75077(0x19f)](realtime[_0x75077(0x17e)]())[_0x75077(0x19f)](user[_0x75077(0x1a9)]())['then'](realtime[_0x75077(0x1a6)]())['then'](trunk[_0x75077(0x1a2)]())[_0x75077(0x19f)](realtime[_0x75077(0x1a3)]())['then'](voiceQueue[_0x75077(0x193)]())[_0x75077(0x19f)](realtime[_0x75077(0x185)]())[_0x75077(0x19f)](trigger['getTriggers']())[_0x75077(0x19f)](realtime[_0x75077(0x180)]())[_0x75077(0x19f)](template[_0x75077(0x19a)]())['then'](realtime['initTemplates']())['then'](zendesk[_0x75077(0x19c)]())[_0x75077(0x19f)](realtime[_0x75077(0x181)]())[_0x75077(0x19f)](salesforce[_0x75077(0x186)]())['then'](realtime[_0x75077(0x17a)]())['then'](sugarcrm[_0x75077(0x178)]())[_0x75077(0x19f)](realtime['initSugarcrmAccounts']())[_0x75077(0x19f)](freshdesk[_0x75077(0x18e)]())[_0x75077(0x19f)](realtime[_0x75077(0x18a)]())['then'](desk[_0x75077(0x189)]())['then'](realtime[_0x75077(0x174)]())[_0x75077(0x19f)](zoho['getZohoAccounts']())[_0x75077(0x19f)](realtime['initZohoAccounts']())[_0x75077(0x19f)](vtiger[_0x75077(0x1b1)]())[_0x75077(0x19f)](realtime[_0x75077(0x1a1)]())[_0x75077(0x19f)](freshsales['getFreshsalesAccounts']())[_0x75077(0x19f)](realtime[_0x75077(0x18b)]())[_0x75077(0x19f)](servicenow[_0x75077(0x187)]())[_0x75077(0x19f)](realtime[_0x75077(0x17d)]())[_0x75077(0x19f)](dynamics365[_0x75077(0x176)]())[_0x75077(0x19f)](realtime[_0x75077(0x179)]())[_0x75077(0x19f)](campaign[_0x75077(0x177)]())[_0x75077(0x19f)](realtime[_0x75077(0x190)]())[_0x75077(0x19f)](voiceExtension[_0x75077(0x188)]())[_0x75077(0x19f)](realtime[_0x75077(0x19e)]())[_0x75077(0x19f)](faxAccount[_0x75077(0x1ab)]())[_0x75077(0x19f)](realtime[_0x75077(0x1ae)]())[_0x75077(0x19f)](function(){return realtime;});}function initParams(){const _0x575629=a1233_0x1f5975;return Promise[_0x575629(0x183)]()[_0x575629(0x19f)](voiceQueueReport[_0x575629(0x1aa)]())[_0x575629(0x19f)](realtime['initVoiceQueueReports']())[_0x575629(0x19f)](cmHopperHistory[_0x575629(0x195)]())['then'](realtime[_0x575629(0x197)]())[_0x575629(0x19f)](cmHopperHistory[_0x575629(0x19d)]())[_0x575629(0x19f)](realtime[_0x575629(0x184)]())[_0x575629(0x19f)](voiceCallReport['getVoiceCallReports']())['then'](realtime['initVoiceCallReports']())[_0x575629(0x19f)](function(){})[_0x575629(0x18f)](function(_0x3f27e3){const _0x59b43a=_0x575629;console[_0x59b43a(0x198)](_0x3f27e3);});}function main(){const _0x595cb6=a1233_0x1f5975;return server[_0x595cb6(0x1a7)](realtime,preview,fax)[_0x595cb6(0x19f)](function(){return initRealtime();})[_0x595cb6(0x19f)](function(){return initParams();})[_0x595cb6(0x19f)](function(){const _0x2b82d4=_0x595cb6;report[_0x2b82d4(0x172)](),setInterval(initRealtime,0x1388);})['catch'](function(_0xc86b85){const _0x2902ab=_0x595cb6;console[_0x2902ab(0x198)](_0xc86b85);});}main(); \ No newline at end of file +const a1233_0x46f5=['./rpc/integrations/freshsales','getDynamics365Accounts','./rpc/voiceQueueReport','initTelephones','getCampaignHopperHistory','./rpc/integrations/zoho','getVoiceExtensions','initFaxAccounts','./rpc/integrations/servicenow','./rpc/voiceQueue','get','initSugarcrmAccounts','initVoiceQueues','getZendeskAccounts','initSalesforceAccounts','./rpc/cmHopperHistory','getZohoAccounts','catch','initDeskAccounts','getTriggers','getAgents','./fax','getFreshsalesAccounts','getServicenowAccounts','getTemplates','initVoiceExtensions','./rpc/integrations/dynamics365','initZendeskAccounts','getVtigerAccounts','initTriggers','getVoiceQueueReports','getFaxAccounts','getTrunks','./rpc/integrations/desk','initTemplates','moment','./preview','initVtigerAccounts','getVoiceQueues','resolve','./rpc/integrations/freshdesk','./report','./realtime','./rpc/voiceExtension','getSugarcrmAccounts','initServicenowAccounts','initVoiceQueueHopperHistory','./rpc/trigger','initTrunks','../../globals','getVoiceQueueHopperHistory','initZohoAccounts','./rpc/faxAccount','./rpc/template','getDeskAccounts','sync','then','initFreshdeskAccounts','./rpc/campaign','initVoiceQueueReports','listen','initFreshsalesAccounts'];(function(_0x1c95d7,_0x2d3e93){const _0x46f511=function(_0x26019d){while(--_0x26019d){_0x1c95d7['push'](_0x1c95d7['shift']());}};_0x46f511(++_0x2d3e93);}(a1233_0x46f5,0x12c));const a1233_0x2601=function(_0x1c95d7,_0x2d3e93){_0x1c95d7=_0x1c95d7-0x72;let _0x46f511=a1233_0x46f5[_0x1c95d7];return _0x46f511;};const a1233_0x18ab31=a1233_0x2601;'use strict';require(a1233_0x18ab31(0xad));const moment=require(a1233_0x18ab31(0x9f)),server=require('./server'),Realtime=require(a1233_0x18ab31(0xa6)),Report=require(a1233_0x18ab31(0xa5)),Preview=require(a1233_0x18ab31(0xa0)),Fax=require(a1233_0x18ab31(0x91)),user=require('./rpc/user'),voiceQueue=require(a1233_0x18ab31(0x85)),voiceQueueReport=require(a1233_0x18ab31(0x7e)),voiceCallReport=require('./rpc/voiceCallReport'),trunk=require('./rpc/trunk'),trigger=require(a1233_0x18ab31(0xab)),template=require(a1233_0x18ab31(0x73)),cmHopperHistory=require(a1233_0x18ab31(0x8b)),campaign=require(a1233_0x18ab31(0x78)),voiceExtension=require(a1233_0x18ab31(0xa7)),faxAccount=require(a1233_0x18ab31(0x72)),zendesk=require('./rpc/integrations/zendesk'),salesforce=require('./rpc/integrations/salesforce'),sugarcrm=require('./rpc/integrations/sugarcrm'),freshdesk=require(a1233_0x18ab31(0xa4)),desk=require(a1233_0x18ab31(0x9d)),zoho=require(a1233_0x18ab31(0x81)),vtiger=require('./rpc/integrations/vtiger'),freshsales=require(a1233_0x18ab31(0x7c)),servicenow=require(a1233_0x18ab31(0x84)),dynamics365=require(a1233_0x18ab31(0x96)),realtime=new Realtime(),report=new Report(realtime),preview=new Preview(realtime),fax=new Fax(realtime);let isTrue=!![],initP=!![];function ifMidnight(){const _0x51be16=a1233_0x18ab31;moment()[_0x51be16(0x86)]('hour')===0x0&&initP&&(initP=![],isTrue=!![],initParams()),moment()[_0x51be16(0x86)]('hour')===0x1&&isTrue&&(isTrue=![],initP=!![]);}function initRealtime(){const _0x2a9824=a1233_0x18ab31;return ifMidnight(),Promise[_0x2a9824(0xa3)]()[_0x2a9824(0x76)](user[_0x2a9824(0x90)]())[_0x2a9824(0x76)](realtime['initAgents']())['then'](user['getTelephones']())['then'](realtime[_0x2a9824(0x7f)]())['then'](trunk[_0x2a9824(0x9c)]())[_0x2a9824(0x76)](realtime[_0x2a9824(0xac)]())[_0x2a9824(0x76)](voiceQueue[_0x2a9824(0xa2)]())[_0x2a9824(0x76)](realtime[_0x2a9824(0x88)]())[_0x2a9824(0x76)](trigger[_0x2a9824(0x8f)]())[_0x2a9824(0x76)](realtime[_0x2a9824(0x99)]())[_0x2a9824(0x76)](template[_0x2a9824(0x94)]())[_0x2a9824(0x76)](realtime[_0x2a9824(0x9e)]())[_0x2a9824(0x76)](zendesk[_0x2a9824(0x89)]())['then'](realtime[_0x2a9824(0x97)]())[_0x2a9824(0x76)](salesforce['getSalesforceAccounts']())[_0x2a9824(0x76)](realtime[_0x2a9824(0x8a)]())[_0x2a9824(0x76)](sugarcrm[_0x2a9824(0xa8)]())[_0x2a9824(0x76)](realtime[_0x2a9824(0x87)]())[_0x2a9824(0x76)](freshdesk['getFreshdeskAccounts']())[_0x2a9824(0x76)](realtime[_0x2a9824(0x77)]())[_0x2a9824(0x76)](desk[_0x2a9824(0x74)]())['then'](realtime[_0x2a9824(0x8e)]())[_0x2a9824(0x76)](zoho[_0x2a9824(0x8c)]())['then'](realtime[_0x2a9824(0xaf)]())[_0x2a9824(0x76)](vtiger[_0x2a9824(0x98)]())[_0x2a9824(0x76)](realtime[_0x2a9824(0xa1)]())[_0x2a9824(0x76)](freshsales[_0x2a9824(0x92)]())[_0x2a9824(0x76)](realtime[_0x2a9824(0x7b)]())[_0x2a9824(0x76)](servicenow[_0x2a9824(0x93)]())[_0x2a9824(0x76)](realtime[_0x2a9824(0xa9)]())[_0x2a9824(0x76)](dynamics365[_0x2a9824(0x7d)]())[_0x2a9824(0x76)](realtime['initDynamics365Accounts']())['then'](campaign['getCampaigns']())[_0x2a9824(0x76)](realtime['initCampaigns']())[_0x2a9824(0x76)](voiceExtension[_0x2a9824(0x82)]())['then'](realtime[_0x2a9824(0x95)]())[_0x2a9824(0x76)](faxAccount[_0x2a9824(0x9b)]())['then'](realtime[_0x2a9824(0x83)]())[_0x2a9824(0x76)](function(){return realtime;});}function initParams(){const _0x59402d=a1233_0x18ab31;return Promise[_0x59402d(0xa3)]()[_0x59402d(0x76)](voiceQueueReport[_0x59402d(0x9a)]())[_0x59402d(0x76)](realtime[_0x59402d(0x79)]())[_0x59402d(0x76)](cmHopperHistory[_0x59402d(0xae)]())[_0x59402d(0x76)](realtime[_0x59402d(0xaa)]())[_0x59402d(0x76)](cmHopperHistory[_0x59402d(0x80)]())['then'](realtime['initCampaignHopperHistory']())[_0x59402d(0x76)](voiceCallReport['getVoiceCallReports']())[_0x59402d(0x76)](realtime['initVoiceCallReports']())[_0x59402d(0x76)](function(){})[_0x59402d(0x8d)](function(_0x15d111){console['log'](_0x15d111);});}function main(){const _0x1b2360=a1233_0x18ab31;return server[_0x1b2360(0x7a)](realtime,preview,fax)[_0x1b2360(0x76)](function(){return initRealtime();})[_0x1b2360(0x76)](function(){return initParams();})[_0x1b2360(0x76)](function(){const _0x51652=_0x1b2360;report[_0x51652(0x75)](),setInterval(initRealtime,0x1388);})[_0x1b2360(0x8d)](function(_0x27d0b8){console['log'](_0x27d0b8);});}main(); \ No newline at end of file diff --git a/server/services/ami/model/agent.js b/server/services/ami/model/agent.js index 9f30b2a..99162aa 100644 --- a/server/services/ami/model/agent.js +++ b/server/services/ami/model/agent.js @@ -1 +1 @@ -const a1234_0x1967=['voiceStatusTime','idle','unknown','online','lodash','fullname','onhold','not_inuse','statePause','toLowerCase','util','user:%s','moment','name','state','voiceStatus','../../../rediscache','voiceStatusQueue','toNumber','stateTime','phone','voiceStatusCallerIdNumber','email','accountcode','interface','stringify','md5','status','talking','inuse','address'];(function(_0x2bf9da,_0x2b10b3){const _0x1967b9=function(_0x5e2a7c){while(--_0x5e2a7c){_0x2bf9da['push'](_0x2bf9da['shift']());}};_0x1967b9(++_0x2b10b3);}(a1234_0x1967,0x18b));const a1234_0x5e2a=function(_0x2bf9da,_0x2b10b3){_0x2bf9da=_0x2bf9da-0x118;let _0x1967b9=a1234_0x1967[_0x2bf9da];return _0x1967b9;};const a1234_0x5d70f2=a1234_0x5e2a;'use strict';const _=require(a1234_0x5d70f2(0x124)),util=require(a1234_0x5d70f2(0x12a)),moment=require(a1234_0x5d70f2(0x12c)),md5=require(a1234_0x5d70f2(0x11b)),{getSocket}=require(a1234_0x5d70f2(0x130)),io=getSocket();function Agent(_0x822607){const _0x457e96=a1234_0x5d70f2;this['id']=_0x822607['id']||0x0,this[_0x457e96(0x12d)]=_0x822607[_0x457e96(0x12d)]||'',this[_0x457e96(0x136)]=_0x822607['email']||'',this[_0x457e96(0x118)]=_0x822607[_0x457e96(0x118)]||'',this[_0x457e96(0x125)]=_0x822607['fullname']||'',this[_0x457e96(0x12e)]=_0x457e96(0x122),this[_0x457e96(0x133)]=0x0,this[_0x457e96(0x11c)]=_0x457e96(0x122),this[_0x457e96(0x11f)]='',this[_0x457e96(0x134)]='',this['mobile']='',this[_0x457e96(0x119)]='',this[_0x457e96(0x123)]=_0x822607[_0x457e96(0x123)]||![],this[_0x457e96(0x12f)]=_0x457e96(0x122),this[_0x457e96(0x120)]=0x0,this[_0x457e96(0x135)]='',this[_0x457e96(0x131)]='',this[_0x457e96(0x126)]=![],this['local']=![],this['md5']='';}Agent['prototype']['updateStatusRealtime']=function(_0x48bd6c){const _0xf641c6=a1234_0x5d70f2;let _0x40ac16;if(_0x48bd6c&&_0x48bd6c[_0xf641c6(0x12e)]){_0x40ac16=_0x48bd6c[_0xf641c6(0x12e)][_0xf641c6(0x129)]();switch(_0x40ac16){case _0xf641c6(0x127):_0x40ac16=_0xf641c6(0x121);break;case _0xf641c6(0x11e):_0x40ac16=_0xf641c6(0x11d);break;}}(_0x40ac16&&this[_0xf641c6(0x12f)]!==_0x40ac16||_0x48bd6c[_0xf641c6(0x128)])&&(this['voiceStatusTime']=_[_0xf641c6(0x132)](moment()['format']('x')));_0x40ac16&&(this[_0xf641c6(0x12f)]=_0x40ac16);const _0x26c7cc={'id':this['id'],'name':this[_0xf641c6(0x12d)],'email':this[_0xf641c6(0x136)],'accountcode':this[_0xf641c6(0x118)],'fullname':this[_0xf641c6(0x125)],'state':this[_0xf641c6(0x12e)],'stateTime':this[_0xf641c6(0x133)],'status':this[_0xf641c6(0x11c)],'address':this[_0xf641c6(0x11f)],'online':this[_0xf641c6(0x123)],'voiceStatus':this[_0xf641c6(0x12f)],'voiceStatusTime':this[_0xf641c6(0x120)],'voiceStatusCallerIdNumber':this[_0xf641c6(0x135)],'voiceStatusQueue':this[_0xf641c6(0x131)],'interface':this[_0xf641c6(0x119)],'onhold':this[_0xf641c6(0x126)]},_0x523b89=md5(JSON[_0xf641c6(0x11a)](_0x26c7cc));this[_0xf641c6(0x11b)]!==_0x523b89&&(this[_0xf641c6(0x11b)]=_0x523b89,io['to'](util['format'](_0xf641c6(0x12b),_0x26c7cc[_0xf641c6(0x12d)]))['emit']('user:save',_0x26c7cc));},module['exports']=Agent; \ No newline at end of file +const a1234_0xcdb2=['lodash','toLowerCase','prototype','voiceStatusCallerIdNumber','md5','../../../rediscache','mobile','fullname','moment','util','interface','unknown','voiceStatusQueue','idle','online','updateStatusRealtime','emit','inuse','format','stringify','onhold','user:save','accountcode','state','not_inuse','toNumber','name','status','statePause','stateTime','email','voiceStatusTime','address','phone','exports','voiceStatus'];(function(_0x503529,_0x220e40){const _0xcdb2c0=function(_0x5d981e){while(--_0x5d981e){_0x503529['push'](_0x503529['shift']());}};_0xcdb2c0(++_0x220e40);}(a1234_0xcdb2,0x18d));const a1234_0x5d98=function(_0x503529,_0x220e40){_0x503529=_0x503529-0x189;let _0xcdb2c0=a1234_0xcdb2[_0x503529];return _0xcdb2c0;};const a1234_0x3123c3=a1234_0x5d98;'use strict';const _=require(a1234_0x3123c3(0x1ac)),util=require(a1234_0x3123c3(0x191)),moment=require(a1234_0x3123c3(0x190)),md5=require(a1234_0x3123c3(0x18c)),{getSocket}=require(a1234_0x3123c3(0x18d)),io=getSocket();function Agent(_0x30bae9){const _0x5b5d5b=a1234_0x3123c3;this['id']=_0x30bae9['id']||0x0,this['name']=_0x30bae9[_0x5b5d5b(0x1a2)]||'',this['email']=_0x30bae9[_0x5b5d5b(0x1a6)]||'',this[_0x5b5d5b(0x19e)]=_0x30bae9[_0x5b5d5b(0x19e)]||'',this[_0x5b5d5b(0x18f)]=_0x30bae9[_0x5b5d5b(0x18f)]||'',this[_0x5b5d5b(0x19f)]=_0x5b5d5b(0x193),this[_0x5b5d5b(0x1a5)]=0x0,this[_0x5b5d5b(0x1a3)]='unknown',this[_0x5b5d5b(0x1a8)]='',this[_0x5b5d5b(0x1a9)]='',this[_0x5b5d5b(0x18e)]='',this[_0x5b5d5b(0x192)]='',this[_0x5b5d5b(0x196)]=_0x30bae9[_0x5b5d5b(0x196)]||![],this['voiceStatus']=_0x5b5d5b(0x193),this[_0x5b5d5b(0x1a7)]=0x0,this[_0x5b5d5b(0x18b)]='',this[_0x5b5d5b(0x194)]='',this[_0x5b5d5b(0x19c)]=![],this['local']=![],this[_0x5b5d5b(0x18c)]='';}Agent[a1234_0x3123c3(0x18a)][a1234_0x3123c3(0x197)]=function(_0x5bc085){const _0x1d6286=a1234_0x3123c3;let _0x4468ff;if(_0x5bc085&&_0x5bc085['state']){_0x4468ff=_0x5bc085[_0x1d6286(0x19f)][_0x1d6286(0x189)]();switch(_0x4468ff){case _0x1d6286(0x1a0):_0x4468ff=_0x1d6286(0x195);break;case _0x1d6286(0x199):_0x4468ff='talking';break;}}(_0x4468ff&&this[_0x1d6286(0x1ab)]!==_0x4468ff||_0x5bc085[_0x1d6286(0x1a4)])&&(this['voiceStatusTime']=_[_0x1d6286(0x1a1)](moment()[_0x1d6286(0x19a)]('x')));_0x4468ff&&(this[_0x1d6286(0x1ab)]=_0x4468ff);const _0x1b3d05={'id':this['id'],'name':this[_0x1d6286(0x1a2)],'email':this['email'],'accountcode':this[_0x1d6286(0x19e)],'fullname':this[_0x1d6286(0x18f)],'state':this['state'],'stateTime':this[_0x1d6286(0x1a5)],'status':this[_0x1d6286(0x1a3)],'address':this[_0x1d6286(0x1a8)],'online':this[_0x1d6286(0x196)],'voiceStatus':this[_0x1d6286(0x1ab)],'voiceStatusTime':this['voiceStatusTime'],'voiceStatusCallerIdNumber':this[_0x1d6286(0x18b)],'voiceStatusQueue':this[_0x1d6286(0x194)],'interface':this[_0x1d6286(0x192)],'onhold':this[_0x1d6286(0x19c)]},_0x2f6392=md5(JSON[_0x1d6286(0x19b)](_0x1b3d05));this[_0x1d6286(0x18c)]!==_0x2f6392&&(this[_0x1d6286(0x18c)]=_0x2f6392,io['to'](util[_0x1d6286(0x19a)]('user:%s',_0x1b3d05['name']))[_0x1d6286(0x198)](_0x1d6286(0x19d),_0x1b3d05));},module[a1234_0x3123c3(0x1aa)]=Agent; \ No newline at end of file diff --git a/server/services/ami/model/campaign.js b/server/services/ami/model/campaign.js index 314419f..53d82ad 100644 --- a/server/services/ami/model/campaign.js +++ b/server/services/ami/model/campaign.js @@ -1 +1 @@ -var a1235_0x470b=['SquareProject','dialAMDMaximumNumberOfWords','dialNoSuchNumberRetryFrequency','dialGlobalInterval','Interval','dialAMDActive','Trunk','dialNoSuchNumberMaxRetry','ivrTotalCallsDays','dialOriginateCallerIdName','dialPrefix','originated','dialNoAnswerMaxRetry','dialAgentRejectRetryFrequency','DESC','dialAMDGreeting','dialMachineMaxRetry','dialBusyRetryFrequency','dialAMDSilenceThreshold','TrunkBackup','active','dialAMDMaximumWordLength','limitCalls','dialAgentRejectMaxRetry','dialQueueProject','dialAbandonedMaxRetry','dialAMDTotalAnalysisTime','dialAMDInitialSilence','sendMessageOneNotActive','dialAMDMinWordLength','dialAbandonedRetryFrequency','dialMachineRetryFrequency','dialDropRetryFrequency','dialBusyMaxRetry','dialAMDBetweenWordsSilence','dialRandomLastDigitCallerIdNumber','dialOriginateTimeout','dialGlobalMaxRetry','dialDropMaxRetry','dialAMDAfterGreetingSilence','ivrAnswerCallsDay','type','dialOriginateCallerIdNumber','dialCutDigit','dialCongestionMaxRetry','name','campaign','dialOrderByScheduledAt','exports','dialTimezone','dialCongestionRetryFrequency'];(function(_0x59c899,_0x181269){var _0x470b4c=function(_0x300aad){while(--_0x300aad){_0x59c899['push'](_0x59c899['shift']());}};_0x470b4c(++_0x181269);}(a1235_0x470b,0xb5));var a1235_0x300a=function(_0x59c899,_0x181269){_0x59c899=_0x59c899-0x19e;var _0x470b4c=a1235_0x470b[_0x59c899];return _0x470b4c;};var a1235_0x5a565f=a1235_0x300a;'use strict';function Campaign(_0xa406fc){var _0x47afe1=a1235_0x300a;this['id']=_0xa406fc['id']||0x0,this[_0x47afe1(0x1af)]=_0xa406fc[_0x47afe1(0x1af)]||'',this[_0x47afe1(0x1ab)]=_0xa406fc[_0x47afe1(0x1ab)]||_0x47afe1(0x1b0),this[_0x47afe1(0x1c0)]=0x0,this['temp']=0x0,this[_0x47afe1(0x1aa)]=0x0,this[_0x47afe1(0x1bd)]=0x0,this['message']='',this[_0x47afe1(0x19e)]=!![],this[_0x47afe1(0x1c9)]=_0xa406fc[_0x47afe1(0x1c9)],this[_0x47afe1(0x1cb)]=_0xa406fc['limitCalls'],this[_0x47afe1(0x1b3)]=_0xa406fc[_0x47afe1(0x1b3)]||null,this[_0x47afe1(0x1b8)]=_0xa406fc[_0x47afe1(0x1b8)]?_0xa406fc['dialGlobalInterval']:null,this['dialOriginateCallerIdName']=_0xa406fc[_0x47afe1(0x1be)],this[_0x47afe1(0x1ac)]=_0xa406fc[_0x47afe1(0x1ac)],this['dialOriginateTimeout']=_0xa406fc[_0x47afe1(0x1a6)]||0x1e,this['dialCongestionMaxRetry']=_0xa406fc[_0x47afe1(0x1ae)],this[_0x47afe1(0x1b4)]=_0xa406fc[_0x47afe1(0x1b4)],this[_0x47afe1(0x1a3)]=_0xa406fc[_0x47afe1(0x1a3)],this[_0x47afe1(0x1c6)]=_0xa406fc[_0x47afe1(0x1c6)],this[_0x47afe1(0x1c1)]=_0xa406fc[_0x47afe1(0x1c1)],this['dialNoAnswerRetryFrequency']=_0xa406fc['dialNoAnswerRetryFrequency'],this[_0x47afe1(0x1a7)]=_0xa406fc[_0x47afe1(0x1a7)],this[_0x47afe1(0x1bc)]=_0xa406fc['dialNoSuchNumberMaxRetry']||0x3,this[_0x47afe1(0x1b7)]=_0xa406fc['dialNoSuchNumberRetryFrequency']||0x96,this[_0x47afe1(0x1a8)]=_0xa406fc[_0x47afe1(0x1a8)]||0x3,this[_0x47afe1(0x1a2)]=_0xa406fc[_0x47afe1(0x1a2)]||0x96,this[_0x47afe1(0x1ce)]=_0xa406fc[_0x47afe1(0x1ce)]||0x3,this[_0x47afe1(0x1a0)]=_0xa406fc[_0x47afe1(0x1a0)]||0x96,this[_0x47afe1(0x1c5)]=_0xa406fc[_0x47afe1(0x1c5)]||0x3,this['dialMachineRetryFrequency']=_0xa406fc[_0x47afe1(0x1a1)]||0x96,this[_0x47afe1(0x1cc)]=_0xa406fc['dialAgentRejectMaxRetry']||0x3,this[_0x47afe1(0x1c2)]=_0xa406fc[_0x47afe1(0x1c2)]||0x96,this[_0x47afe1(0x1b1)]=_0xa406fc[_0x47afe1(0x1b1)]||_0x47afe1(0x1c3),this[_0x47afe1(0x1bf)]=_0xa406fc[_0x47afe1(0x1bf)]||undefined,this[_0x47afe1(0x1a5)]=_0xa406fc[_0x47afe1(0x1a5)]||undefined,this[_0x47afe1(0x1ad)]=_0xa406fc['dialCutDigit']||undefined,this['TrunkBackup']=_0xa406fc[_0x47afe1(0x1c8)]?_0xa406fc[_0x47afe1(0x1c8)]:undefined,this[_0x47afe1(0x1bb)]=_0xa406fc['Trunk']?_0xa406fc['Trunk']:undefined,this[_0x47afe1(0x1b9)]=_0xa406fc['Interval']?_0xa406fc['Interval']:undefined,this[_0x47afe1(0x1b5)]=_0xa406fc['SquareProject']?_0xa406fc[_0x47afe1(0x1b5)]:undefined,this[_0x47afe1(0x1cd)]=_0xa406fc[_0x47afe1(0x1b5)]?_0xa406fc['SquareProject'][_0x47afe1(0x1af)]:undefined,this[_0x47afe1(0x1ba)]=_0xa406fc[_0x47afe1(0x1ba)]||![],this[_0x47afe1(0x1d0)]=_0xa406fc[_0x47afe1(0x1d0)],this[_0x47afe1(0x1c4)]=_0xa406fc[_0x47afe1(0x1c4)],this[_0x47afe1(0x1a9)]=_0xa406fc[_0x47afe1(0x1a9)],this['dialAMDTotalAnalysisTime']=_0xa406fc[_0x47afe1(0x1cf)],this[_0x47afe1(0x19f)]=_0xa406fc[_0x47afe1(0x19f)],this[_0x47afe1(0x1a4)]=_0xa406fc[_0x47afe1(0x1a4)],this['dialAMDMaximumNumberOfWords']=_0xa406fc[_0x47afe1(0x1b6)],this[_0x47afe1(0x1c7)]=_0xa406fc[_0x47afe1(0x1c7)],this[_0x47afe1(0x1ca)]=_0xa406fc['dialAMDMaximumWordLength'];}module[a1235_0x5a565f(0x1b2)]=Campaign; \ No newline at end of file +var a1235_0x3f75=['dialAMDBetweenWordsSilence','campaign','dialMachineMaxRetry','dialAMDMaximumWordLength','dialAMDActive','dialPrefix','dialGlobalMaxRetry','dialRandomLastDigitCallerIdNumber','dialDropMaxRetry','dialAMDInitialSilence','dialAMDGreeting','dialCongestionRetryFrequency','dialDropRetryFrequency','dialAMDSilenceThreshold','dialAbandonedMaxRetry','Trunk','dialNoAnswerMaxRetry','dialOriginateCallerIdNumber','dialAMDMaximumNumberOfWords','TrunkBackup','dialCutDigit','dialAgentRejectMaxRetry','dialGlobalInterval','DESC','dialNoSuchNumberRetryFrequency','active','dialAgentRejectRetryFrequency','message','dialNoAnswerRetryFrequency','limitCalls','dialAMDTotalAnalysisTime','type','dialAMDMinWordLength','dialMachineRetryFrequency','name','ivrTotalCallsDays','dialTimezone','originated','Interval','sendMessageOneNotActive','exports','temp','dialOriginateTimeout','dialCongestionMaxRetry','SquareProject','dialBusyRetryFrequency','dialNoSuchNumberMaxRetry','dialOrderByScheduledAt','dialAMDAfterGreetingSilence','dialQueueProject'];(function(_0x1eb462,_0x270446){var _0x3f7539=function(_0x3d7aa4){while(--_0x3d7aa4){_0x1eb462['push'](_0x1eb462['shift']());}};_0x3f7539(++_0x270446);}(a1235_0x3f75,0x11a));var a1235_0x3d7a=function(_0x1eb462,_0x270446){_0x1eb462=_0x1eb462-0x1f2;var _0x3f7539=a1235_0x3f75[_0x1eb462];return _0x3f7539;};var a1235_0x4b61b7=a1235_0x3d7a;'use strict';function Campaign(_0x2e1632){var _0x2330c2=a1235_0x3d7a;this['id']=_0x2e1632['id']||0x0,this['name']=_0x2e1632['name']||'',this[_0x2330c2(0x223)]=_0x2e1632[_0x2330c2(0x223)]||_0x2330c2(0x205),this[_0x2330c2(0x1f7)]=0x0,this[_0x2330c2(0x1fb)]=0x0,this['ivrAnswerCallsDay']=0x0,this[_0x2330c2(0x1f5)]=0x0,this[_0x2330c2(0x21f)]='',this[_0x2330c2(0x1f9)]=!![],this['active']=_0x2e1632[_0x2330c2(0x21d)],this['limitCalls']=_0x2e1632[_0x2330c2(0x221)],this[_0x2330c2(0x1f6)]=_0x2e1632[_0x2330c2(0x1f6)]||null,this[_0x2330c2(0x21a)]=_0x2e1632[_0x2330c2(0x21a)]?_0x2e1632['dialGlobalInterval']:null,this['dialOriginateCallerIdName']=_0x2e1632['dialOriginateCallerIdName'],this[_0x2330c2(0x215)]=_0x2e1632[_0x2330c2(0x215)],this[_0x2330c2(0x1fc)]=_0x2e1632['dialOriginateTimeout']||0x1e,this[_0x2330c2(0x1fd)]=_0x2e1632['dialCongestionMaxRetry'],this['dialCongestionRetryFrequency']=_0x2e1632[_0x2330c2(0x20f)],this['dialBusyMaxRetry']=_0x2e1632['dialBusyMaxRetry'],this[_0x2330c2(0x1ff)]=_0x2e1632[_0x2330c2(0x1ff)],this[_0x2330c2(0x214)]=_0x2e1632['dialNoAnswerMaxRetry'],this[_0x2330c2(0x220)]=_0x2e1632['dialNoAnswerRetryFrequency'],this['dialGlobalMaxRetry']=_0x2e1632[_0x2330c2(0x20a)],this[_0x2330c2(0x200)]=_0x2e1632[_0x2330c2(0x200)]||0x3,this['dialNoSuchNumberRetryFrequency']=_0x2e1632[_0x2330c2(0x21c)]||0x96,this[_0x2330c2(0x20c)]=_0x2e1632[_0x2330c2(0x20c)]||0x3,this['dialDropRetryFrequency']=_0x2e1632[_0x2330c2(0x210)]||0x96,this[_0x2330c2(0x212)]=_0x2e1632[_0x2330c2(0x212)]||0x3,this['dialAbandonedRetryFrequency']=_0x2e1632['dialAbandonedRetryFrequency']||0x96,this[_0x2330c2(0x206)]=_0x2e1632[_0x2330c2(0x206)]||0x3,this[_0x2330c2(0x1f3)]=_0x2e1632['dialMachineRetryFrequency']||0x96,this[_0x2330c2(0x219)]=_0x2e1632[_0x2330c2(0x219)]||0x3,this[_0x2330c2(0x21e)]=_0x2e1632['dialAgentRejectRetryFrequency']||0x96,this[_0x2330c2(0x201)]=_0x2e1632[_0x2330c2(0x201)]||_0x2330c2(0x21b),this[_0x2330c2(0x209)]=_0x2e1632[_0x2330c2(0x209)]||undefined,this['dialRandomLastDigitCallerIdNumber']=_0x2e1632[_0x2330c2(0x20b)]||undefined,this[_0x2330c2(0x218)]=_0x2e1632[_0x2330c2(0x218)]||undefined,this[_0x2330c2(0x217)]=_0x2e1632[_0x2330c2(0x217)]?_0x2e1632[_0x2330c2(0x217)]:undefined,this[_0x2330c2(0x213)]=_0x2e1632[_0x2330c2(0x213)]?_0x2e1632[_0x2330c2(0x213)]:undefined,this['Interval']=_0x2e1632[_0x2330c2(0x1f8)]?_0x2e1632[_0x2330c2(0x1f8)]:undefined,this[_0x2330c2(0x1fe)]=_0x2e1632[_0x2330c2(0x1fe)]?_0x2e1632[_0x2330c2(0x1fe)]:undefined,this[_0x2330c2(0x203)]=_0x2e1632[_0x2330c2(0x1fe)]?_0x2e1632[_0x2330c2(0x1fe)][_0x2330c2(0x1f4)]:undefined,this[_0x2330c2(0x208)]=_0x2e1632[_0x2330c2(0x208)]||![],this[_0x2330c2(0x20d)]=_0x2e1632[_0x2330c2(0x20d)],this[_0x2330c2(0x20e)]=_0x2e1632[_0x2330c2(0x20e)],this['dialAMDAfterGreetingSilence']=_0x2e1632[_0x2330c2(0x202)],this['dialAMDTotalAnalysisTime']=_0x2e1632[_0x2330c2(0x222)],this[_0x2330c2(0x1f2)]=_0x2e1632[_0x2330c2(0x1f2)],this['dialAMDBetweenWordsSilence']=_0x2e1632[_0x2330c2(0x204)],this['dialAMDMaximumNumberOfWords']=_0x2e1632[_0x2330c2(0x216)],this[_0x2330c2(0x211)]=_0x2e1632[_0x2330c2(0x211)],this['dialAMDMaximumWordLength']=_0x2e1632[_0x2330c2(0x207)];}module[a1235_0x4b61b7(0x1fa)]=Campaign; \ No newline at end of file diff --git a/server/services/ami/model/channel.js b/server/services/ami/model/channel.js index 6e6cd45..9990236 100644 --- a/server/services/ami/model/channel.js +++ b/server/services/ami/model/channel.js @@ -1 +1 @@ -var a1236_0x3495=['exports','exten','lastapplication','transferconnectedlinenum','disposition','queue','accountcode','type','answered','transfercalleridnum','context','lastdata','tag','billableseconds','linkedid','duration','holdtime','monitorFilename','uniqueid','unmanaged','calleridname','calleridnum','endtime','starttime','monitor','answertime','channel'];(function(_0x43935c,_0x16bd19){var _0x3495a0=function(_0x489a20){while(--_0x489a20){_0x43935c['push'](_0x43935c['shift']());}};_0x3495a0(++_0x16bd19);}(a1236_0x3495,0x12b));var a1236_0x489a=function(_0x43935c,_0x16bd19){_0x43935c=_0x43935c-0x143;var _0x3495a0=a1236_0x3495[_0x43935c];return _0x3495a0;};var a1236_0x224eca=a1236_0x489a;'use strict';function Channel(){var _0x18147d=a1236_0x489a;this[_0x18147d(0x158)]=null,this[_0x18147d(0x15b)]='',this['destinationchannel']='',this[_0x18147d(0x156)]=0x0,this[_0x18147d(0x155)]='',this['connectedlinenum']=undefined,this['connectedlinename']=undefined,this[_0x18147d(0x147)]=0x0,this[_0x18147d(0x14b)]='',this[_0x18147d(0x153)]=0x0,this[_0x18147d(0x14f)]=0x0,this[_0x18147d(0x15d)]=0x0,this[_0x18147d(0x149)]=![],this[_0x18147d(0x15a)]=null,this[_0x18147d(0x157)]=null,this[_0x18147d(0x154)]=![],this['abandoned']=![],this[_0x18147d(0x143)]='',this[_0x18147d(0x14c)]='',this[_0x18147d(0x150)]=0x0,this[_0x18147d(0x14e)]=0x0,this[_0x18147d(0x151)]=0x0,this[_0x18147d(0x148)]=null,this[_0x18147d(0x14d)]=null,this[_0x18147d(0x145)]=null,this[_0x18147d(0x159)]=![],this[_0x18147d(0x152)]=null,this[_0x18147d(0x146)]=null,this['monitors']=[],this[_0x18147d(0x14a)]=undefined,this[_0x18147d(0x144)]=undefined,this['mohtime']=0x0;}module[a1236_0x224eca(0x15c)]=Channel; \ No newline at end of file +var a1236_0x2773=['linkedid','connectedlinename','channel','connectedlinenum','type','billableseconds','exports','accountcode','tag','answertime','exten','mohtime','monitorFilename','lastapplication','holdtime','monitors','context','starttime','destinationchannel','lastdata','disposition','endtime','duration','monitor','transfercalleridnum','unmanaged','uniqueid'];(function(_0x4a0de3,_0x1ccbd2){var _0x2773b6=function(_0x527df8){while(--_0x527df8){_0x4a0de3['push'](_0x4a0de3['shift']());}};_0x2773b6(++_0x1ccbd2);}(a1236_0x2773,0xf0));var a1236_0x527d=function(_0x4a0de3,_0x1ccbd2){_0x4a0de3=_0x4a0de3-0x1ec;var _0x2773b6=a1236_0x2773[_0x4a0de3];return _0x2773b6;};var a1236_0x12acb4=a1236_0x527d;'use strict';function Channel(){var _0x23743e=a1236_0x527d;this[_0x23743e(0x200)]=null,this[_0x23743e(0x1f1)]='',this[_0x23743e(0x201)]='',this['calleridnum']=0x0,this['calleridname']='',this[_0x23743e(0x1f2)]=undefined,this[_0x23743e(0x1f0)]=undefined,this[_0x23743e(0x1f6)]=0x0,this[_0x23743e(0x1ff)]='',this[_0x23743e(0x1ee)]=0x0,this[_0x23743e(0x1ef)]=0x0,this[_0x23743e(0x1f9)]=0x0,this['answered']=![],this[_0x23743e(0x1f8)]=null,this[_0x23743e(0x204)]=null,this[_0x23743e(0x1ed)]=![],this['abandoned']=![],this[_0x23743e(0x1fc)]='',this[_0x23743e(0x202)]='',this[_0x23743e(0x205)]=0x0,this[_0x23743e(0x1f4)]=0x0,this[_0x23743e(0x1fd)]=0x0,this[_0x23743e(0x1f3)]=null,this[_0x23743e(0x1f7)]=null,this[_0x23743e(0x203)]=null,this[_0x23743e(0x206)]=![],this[_0x23743e(0x1fb)]=null,this['queue']=null,this[_0x23743e(0x1fe)]=[],this[_0x23743e(0x1ec)]=undefined,this['transferconnectedlinenum']=undefined,this[_0x23743e(0x1fa)]=0x0;}module[a1236_0x12acb4(0x1f5)]=Channel; \ No newline at end of file diff --git a/server/services/ami/model/deskAccount.js b/server/services/ami/model/deskAccount.js index da90f33..f933427 100644 --- a/server/services/ami/model/deskAccount.js +++ b/server/services/ami/model/deskAccount.js @@ -1 +1 @@ -var a1237_0x4d0d=['authType','Configurations','remoteUri','consumerSecret','type','tokenSecret','exports','token','consumerKey','name','serverUrl','password'];(function(_0x2fcbd4,_0xecd244){var _0x4d0db9=function(_0x344080){while(--_0x344080){_0x2fcbd4['push'](_0x2fcbd4['shift']());}};_0x4d0db9(++_0xecd244);}(a1237_0x4d0d,0x1d2));var a1237_0x3440=function(_0x2fcbd4,_0xecd244){_0x2fcbd4=_0x2fcbd4-0x98;var _0x4d0db9=a1237_0x4d0d[_0x2fcbd4];return _0x4d0db9;};var a1237_0x156946=a1237_0x3440;'use strict';function DeskAccount(_0x4850ef){var _0x20b630=a1237_0x3440;this['id']=_0x4850ef['id']||0x0,this['name']=_0x4850ef[_0x20b630(0xa3)]||'',this['username']=_0x4850ef['username']||'',this[_0x20b630(0x9c)]=_0x4850ef[_0x20b630(0x9c)]||'',this[_0x20b630(0x9a)]=_0x4850ef[_0x20b630(0x9a)]||'',this[_0x20b630(0x99)]=_0x4850ef[_0x20b630(0x99)]||'',this[_0x20b630(0xa2)]=_0x4850ef['consumerKey']||'',this[_0x20b630(0x9d)]=_0x4850ef[_0x20b630(0x9d)]||'',this[_0x20b630(0xa1)]=_0x4850ef[_0x20b630(0xa1)]||'',this[_0x20b630(0x9f)]=_0x4850ef[_0x20b630(0x9f)]||'',this['type']=_0x4850ef[_0x20b630(0x9e)]||'',this[_0x20b630(0x98)]=_0x4850ef['serverUrl']||'',this['Configurations']=_0x4850ef[_0x20b630(0x9b)]||{};}module[a1237_0x156946(0xa0)]=DeskAccount; \ No newline at end of file +var a1237_0x5753=['name','consumerKey','type','password','token','Configurations','consumerSecret','username','remoteUri','tokenSecret','serverUrl','authType'];(function(_0x3a0314,_0x2edbd9){var _0x57537f=function(_0x5635cf){while(--_0x5635cf){_0x3a0314['push'](_0x3a0314['shift']());}};_0x57537f(++_0x2edbd9);}(a1237_0x5753,0xf5));var a1237_0x5635=function(_0x3a0314,_0x2edbd9){_0x3a0314=_0x3a0314-0x6b;var _0x57537f=a1237_0x5753[_0x3a0314];return _0x57537f;};'use strict';function DeskAccount(_0x58fd81){var _0x49d87a=a1237_0x5635;this['id']=_0x58fd81['id']||0x0,this[_0x49d87a(0x72)]=_0x58fd81['name']||'',this[_0x49d87a(0x6d)]=_0x58fd81[_0x49d87a(0x6d)]||'',this[_0x49d87a(0x6e)]=_0x58fd81['remoteUri']||'',this[_0x49d87a(0x71)]=_0x58fd81[_0x49d87a(0x71)]||'',this[_0x49d87a(0x75)]=_0x58fd81['password']||'',this[_0x49d87a(0x73)]=_0x58fd81[_0x49d87a(0x73)]||'',this[_0x49d87a(0x6c)]=_0x58fd81['consumerSecret']||'',this['token']=_0x58fd81[_0x49d87a(0x76)]||'',this[_0x49d87a(0x6f)]=_0x58fd81[_0x49d87a(0x6f)]||'',this[_0x49d87a(0x74)]=_0x58fd81[_0x49d87a(0x74)]||'',this[_0x49d87a(0x70)]=_0x58fd81['serverUrl']||'',this[_0x49d87a(0x6b)]=_0x58fd81[_0x49d87a(0x6b)]||{};}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 05cedec..1c07ee9 100644 --- a/server/services/ami/model/dynamics365Account.js +++ b/server/services/ami/model/dynamics365Account.js @@ -1 +1 @@ -var a1238_0xa592=['clientId','clientSecret','remoteUri','username','tenantId','name','password','serverUrl','Configurations'];(function(_0x221e8f,_0x27a22b){var _0xa59231=function(_0x5650c9){while(--_0x5650c9){_0x221e8f['push'](_0x221e8f['shift']());}};_0xa59231(++_0x27a22b);}(a1238_0xa592,0x77));var a1238_0x5650=function(_0x221e8f,_0x27a22b){_0x221e8f=_0x221e8f-0x99;var _0xa59231=a1238_0xa592[_0x221e8f];return _0xa59231;};'use strict';function Dynamics365Account(_0x3c2361){var _0x4367ea=a1238_0x5650;this['id']=_0x3c2361['id']||0x0,this[_0x4367ea(0x9c)]=_0x3c2361[_0x4367ea(0x9c)]||'',this[_0x4367ea(0x9a)]=_0x3c2361['username']||'',this[_0x4367ea(0x9d)]=_0x3c2361[_0x4367ea(0x9d)]||'',this['remoteUri']=_0x3c2361[_0x4367ea(0x99)]||'',this[_0x4367ea(0x9b)]=_0x3c2361['tenantId']||'',this[_0x4367ea(0xa0)]=_0x3c2361[_0x4367ea(0xa0)]||'',this[_0x4367ea(0xa1)]=_0x3c2361[_0x4367ea(0xa1)]||{},this[_0x4367ea(0x9e)]=_0x3c2361[_0x4367ea(0x9e)]||'',this['Configurations']=_0x3c2361[_0x4367ea(0x9f)]||{};}module['exports']=Dynamics365Account; \ No newline at end of file +var a1238_0xe66e=['clientId','password','exports','remoteUri','username','serverUrl','clientSecret','name','Configurations','tenantId'];(function(_0x5b5894,_0x4931d7){var _0xe66e91=function(_0x59b3ed){while(--_0x59b3ed){_0x5b5894['push'](_0x5b5894['shift']());}};_0xe66e91(++_0x4931d7);}(a1238_0xe66e,0x1f2));var a1238_0x59b3=function(_0x5b5894,_0x4931d7){_0x5b5894=_0x5b5894-0x12a;var _0xe66e91=a1238_0xe66e[_0x5b5894];return _0xe66e91;};var a1238_0x1b5489=a1238_0x59b3;'use strict';function Dynamics365Account(_0x5e6ca9){var _0xe9df2f=a1238_0x59b3;this['id']=_0x5e6ca9['id']||0x0,this['name']=_0x5e6ca9[_0xe9df2f(0x133)]||'',this['username']=_0x5e6ca9[_0xe9df2f(0x130)]||'',this[_0xe9df2f(0x12d)]=_0x5e6ca9['password']||'',this['remoteUri']=_0x5e6ca9[_0xe9df2f(0x12f)]||'',this['tenantId']=_0x5e6ca9[_0xe9df2f(0x12b)]||'',this[_0xe9df2f(0x12c)]=_0x5e6ca9[_0xe9df2f(0x12c)]||'',this[_0xe9df2f(0x132)]=_0x5e6ca9['clientSecret']||{},this[_0xe9df2f(0x131)]=_0x5e6ca9[_0xe9df2f(0x131)]||'',this[_0xe9df2f(0x12a)]=_0x5e6ca9[_0xe9df2f(0x12a)]||{};}module[a1238_0x1b5489(0x12e)]=Dynamics365Account; \ No newline at end of file diff --git a/server/services/ami/model/faxAccount.js b/server/services/ami/model/faxAccount.js index 9af9329..f840ac1 100644 --- a/server/services/ami/model/faxAccount.js +++ b/server/services/ami/model/faxAccount.js @@ -1 +1 @@ -var a1239_0x1cb0=['localstationid','headerinfo','minrate','maxrate','faxdetect','tech','t38timeout','key','SIP','name','Trunk','ListId','modem','gateway'];(function(_0x3acb19,_0x1fd88b){var _0x1cb024=function(_0x1ca13c){while(--_0x1ca13c){_0x3acb19['push'](_0x3acb19['shift']());}};_0x1cb024(++_0x1fd88b);}(a1239_0x1cb0,0x89));var a1239_0x1ca1=function(_0x3acb19,_0x1fd88b){_0x3acb19=_0x3acb19-0x95;var _0x1cb024=a1239_0x1cb0[_0x3acb19];return _0x1cb024;};'use strict';function FaxAccount(_0x235ec7){var _0x19a2fd=a1239_0x1ca1;this['id']=_0x235ec7['id']||0x0,this[_0x19a2fd(0xa1)]=_0x235ec7[_0x19a2fd(0xa1)]||'',this['description']=_0x235ec7['description'],this['ecm']=_0x235ec7['ecm'],this[_0x19a2fd(0x99)]=_0x235ec7['headerinfo'],this[_0x19a2fd(0x98)]=_0x235ec7[_0x19a2fd(0x98)],this[_0x19a2fd(0x9a)]=_0x235ec7[_0x19a2fd(0x9a)]||0x960,this[_0x19a2fd(0x9b)]=_0x235ec7['maxrate']||0x3840,this['modem']=_0x235ec7[_0x19a2fd(0x96)]||'v17,v27,v29',this[_0x19a2fd(0x97)]=_0x235ec7['gateway']||'no',this[_0x19a2fd(0x9c)]=_0x235ec7['faxdetect']||'no',this[_0x19a2fd(0x9e)]=_0x235ec7['t38timeout']||0x1388,this[_0x19a2fd(0x9d)]=_0x235ec7[_0x19a2fd(0x9d)]||_0x19a2fd(0xa0),this['Trunk']=_0x235ec7[_0x19a2fd(0xa2)]?_0x235ec7[_0x19a2fd(0xa2)]:undefined,this['ListId']=_0x235ec7[_0x19a2fd(0x95)],this[_0x19a2fd(0x9f)]=_0x235ec7[_0x19a2fd(0x9f)];}module['exports']=FaxAccount; \ No newline at end of file +var a1239_0x213c=['modem','v17,v27,v29','ecm','faxdetect','Trunk','key','description','headerinfo','name','ListId','exports','gateway','minrate','maxrate','t38timeout'];(function(_0x32016a,_0x1ea99e){var _0x213cea=function(_0x1cbd1c){while(--_0x1cbd1c){_0x32016a['push'](_0x32016a['shift']());}};_0x213cea(++_0x1ea99e);}(a1239_0x213c,0xb0));var a1239_0x1cbd=function(_0x32016a,_0x1ea99e){_0x32016a=_0x32016a-0x188;var _0x213cea=a1239_0x213c[_0x32016a];return _0x213cea;};var a1239_0x1e8851=a1239_0x1cbd;'use strict';function FaxAccount(_0x4bd485){var _0x3817a0=a1239_0x1cbd;this['id']=_0x4bd485['id']||0x0,this['name']=_0x4bd485[_0x3817a0(0x194)]||'',this['description']=_0x4bd485[_0x3817a0(0x192)],this['ecm']=_0x4bd485[_0x3817a0(0x18e)],this[_0x3817a0(0x193)]=_0x4bd485[_0x3817a0(0x193)],this['localstationid']=_0x4bd485['localstationid'],this[_0x3817a0(0x189)]=_0x4bd485['minrate']||0x960,this['maxrate']=_0x4bd485[_0x3817a0(0x18a)]||0x3840,this[_0x3817a0(0x18c)]=_0x4bd485['modem']||_0x3817a0(0x18d),this[_0x3817a0(0x188)]=_0x4bd485['gateway']||'no',this['faxdetect']=_0x4bd485[_0x3817a0(0x18f)]||'no',this[_0x3817a0(0x18b)]=_0x4bd485[_0x3817a0(0x18b)]||0x1388,this['tech']=_0x4bd485['tech']||'SIP',this['Trunk']=_0x4bd485[_0x3817a0(0x190)]?_0x4bd485[_0x3817a0(0x190)]:undefined,this[_0x3817a0(0x195)]=_0x4bd485[_0x3817a0(0x195)],this[_0x3817a0(0x191)]=_0x4bd485[_0x3817a0(0x191)];}module[a1239_0x1e8851(0x196)]=FaxAccount; \ No newline at end of file diff --git a/server/services/ami/model/freshdeskAccount.js b/server/services/ami/model/freshdeskAccount.js index 5b21ac6..b4974ef 100644 --- a/server/services/ami/model/freshdeskAccount.js +++ b/server/services/ami/model/freshdeskAccount.js @@ -1 +1 @@ -var a1240_0x3b5c=['name','token','exports','Configurations','username','remoteUri','apiKey'];(function(_0x23fbd9,_0xbe9181){var _0x3b5c96=function(_0x1a1c40){while(--_0x1a1c40){_0x23fbd9['push'](_0x23fbd9['shift']());}};_0x3b5c96(++_0xbe9181);}(a1240_0x3b5c,0x166));var a1240_0x1a1c=function(_0x23fbd9,_0xbe9181){_0x23fbd9=_0x23fbd9-0x1d2;var _0x3b5c96=a1240_0x3b5c[_0x23fbd9];return _0x3b5c96;};var a1240_0x402695=a1240_0x1a1c;'use strict';function FreshdeskAccount(_0x4ea2c2){var _0x488ef1=a1240_0x1a1c;this['id']=_0x4ea2c2['id']||0x0,this['name']=_0x4ea2c2[_0x488ef1(0x1d8)]||'',this[_0x488ef1(0x1d5)]=_0x4ea2c2['username']||'',this[_0x488ef1(0x1d7)]=_0x4ea2c2[_0x488ef1(0x1d2)]||'',this['remoteUri']=_0x4ea2c2[_0x488ef1(0x1d6)]||'',this['serverUrl']=_0x4ea2c2['serverUrl']||'',this[_0x488ef1(0x1d4)]=_0x4ea2c2[_0x488ef1(0x1d4)]||{};}module[a1240_0x402695(0x1d3)]=FreshdeskAccount; \ No newline at end of file +var a1240_0x9e5d=['token','apiKey','name','Configurations','serverUrl','exports','remoteUri','username'];(function(_0x5c6e0f,_0x1c36a4){var _0x9e5d4e=function(_0x3098cf){while(--_0x3098cf){_0x5c6e0f['push'](_0x5c6e0f['shift']());}};_0x9e5d4e(++_0x1c36a4);}(a1240_0x9e5d,0x1cf));var a1240_0x3098=function(_0x5c6e0f,_0x1c36a4){_0x5c6e0f=_0x5c6e0f-0x195;var _0x9e5d4e=a1240_0x9e5d[_0x5c6e0f];return _0x9e5d4e;};var a1240_0x3965c5=a1240_0x3098;'use strict';function FreshdeskAccount(_0x38253b){var _0x4e03c1=a1240_0x3098;this['id']=_0x38253b['id']||0x0,this[_0x4e03c1(0x198)]=_0x38253b[_0x4e03c1(0x198)]||'',this[_0x4e03c1(0x195)]=_0x38253b[_0x4e03c1(0x195)]||'',this[_0x4e03c1(0x197)]=_0x38253b[_0x4e03c1(0x196)]||'',this[_0x4e03c1(0x19c)]=_0x38253b[_0x4e03c1(0x19c)]||'',this[_0x4e03c1(0x19a)]=_0x38253b[_0x4e03c1(0x19a)]||'',this[_0x4e03c1(0x199)]=_0x38253b[_0x4e03c1(0x199)]||{};}module[a1240_0x3965c5(0x19b)]=FreshdeskAccount; \ No newline at end of file diff --git a/server/services/ami/model/freshsalesAccount.js b/server/services/ami/model/freshsalesAccount.js index f43845c..df6eb99 100644 --- a/server/services/ami/model/freshsalesAccount.js +++ b/server/services/ami/model/freshsalesAccount.js @@ -1 +1 @@ -var a1241_0x5f4a=['username','Configurations','serverUrl','exports','apiKey','name'];(function(_0x467b18,_0x4a98f9){var _0x5f4a6b=function(_0x54f85a){while(--_0x54f85a){_0x467b18['push'](_0x467b18['shift']());}};_0x5f4a6b(++_0x4a98f9);}(a1241_0x5f4a,0x16c));var a1241_0x54f8=function(_0x467b18,_0x4a98f9){_0x467b18=_0x467b18-0xd5;var _0x5f4a6b=a1241_0x5f4a[_0x467b18];return _0x5f4a6b;};var a1241_0x2dcd50=a1241_0x54f8;'use strict';function FreshsalesAccount(_0x4483a3){var _0x3f0477=a1241_0x54f8;this['id']=_0x4483a3['id']||0x0,this[_0x3f0477(0xd6)]=_0x4483a3['name']||'',this[_0x3f0477(0xd7)]=_0x4483a3['username']||'',this[_0x3f0477(0xd5)]=_0x4483a3['token']||'',this['remoteUri']=_0x4483a3['remoteUri']||'',this[_0x3f0477(0xd9)]=_0x4483a3[_0x3f0477(0xd9)]||'',this[_0x3f0477(0xd8)]=_0x4483a3[_0x3f0477(0xd8)]||{};}module[a1241_0x2dcd50(0xda)]=FreshsalesAccount; \ No newline at end of file +var a1241_0x3c38=['serverUrl','exports','username','apiKey','Configurations','remoteUri','name'];(function(_0x44e505,_0x26a341){var _0x3c3879=function(_0x10ec6d){while(--_0x10ec6d){_0x44e505['push'](_0x44e505['shift']());}};_0x3c3879(++_0x26a341);}(a1241_0x3c38,0x12b));var a1241_0x10ec=function(_0x44e505,_0x26a341){_0x44e505=_0x44e505-0x1ca;var _0x3c3879=a1241_0x3c38[_0x44e505];return _0x3c3879;};var a1241_0x5b162f=a1241_0x10ec;'use strict';function FreshsalesAccount(_0x553506){var _0x3fc65c=a1241_0x10ec;this['id']=_0x553506['id']||0x0,this[_0x3fc65c(0x1cb)]=_0x553506[_0x3fc65c(0x1cb)]||'',this[_0x3fc65c(0x1ce)]=_0x553506[_0x3fc65c(0x1ce)]||'',this[_0x3fc65c(0x1cf)]=_0x553506['token']||'',this[_0x3fc65c(0x1ca)]=_0x553506[_0x3fc65c(0x1ca)]||'',this[_0x3fc65c(0x1cc)]=_0x553506[_0x3fc65c(0x1cc)]||'',this['Configurations']=_0x553506[_0x3fc65c(0x1d0)]||{};}module[a1241_0x5b162f(0x1cd)]=FreshsalesAccount; \ No newline at end of file diff --git a/server/services/ami/model/queueReport.js b/server/services/ami/model/queueReport.js index 8335255..541e782 100644 --- a/server/services/ami/model/queueReport.js +++ b/server/services/ami/model/queueReport.js @@ -1 +1 @@ -var a1242_0x5a93=['connectedlinename','connectedlinenum','calleridname','exten','type','variables','exports','queuecallercomplete','queuecallerabandon','priority','queuecallerexitAt','queuecallerexit','inbound','accountcode','assigned','queue','queuecallerjoinAt','uniqueid','queuecallerleaveAt','holdtime','lastAssignedTo','originalposition','calleridnum'];(function(_0x43f2b5,_0x45edc6){var _0x5a937d=function(_0x4bfa96){while(--_0x4bfa96){_0x43f2b5['push'](_0x43f2b5['shift']());}};_0x5a937d(++_0x45edc6);}(a1242_0x5a93,0xce));var a1242_0x4bfa=function(_0x43f2b5,_0x45edc6){_0x43f2b5=_0x43f2b5-0x1c7;var _0x5a937d=a1242_0x5a93[_0x43f2b5];return _0x5a937d;};var a1242_0x3e954f=a1242_0x4bfa;'use strict';function QueueReport(){var _0x364117=a1242_0x4bfa;this[_0x364117(0x1cc)]=_0x364117(0x1d4),this[_0x364117(0x1d9)]='',this[_0x364117(0x1c7)]='',this[_0x364117(0x1ca)]='',this[_0x364117(0x1d7)]='',this[_0x364117(0x1d8)]=null,this[_0x364117(0x1da)]=null,this['position']=0x1,this['count']=0x1,this[_0x364117(0x1d0)]=![],this['queuecallerabandonAt']=null,this[_0x364117(0x1cf)]=![],this['queuecallercompleteAt']=null,this[_0x364117(0x1d3)]=![],this[_0x364117(0x1d2)]=null,this[_0x364117(0x1dd)]=0x1,this['channel']='',this[_0x364117(0x1c9)]='',this[_0x364117(0x1c8)]='',this[_0x364117(0x1d5)]='',this['context']='',this[_0x364117(0x1cb)]='',this[_0x364117(0x1d1)]='',this[_0x364117(0x1db)]=0x0,this[_0x364117(0x1d6)]=![],this[_0x364117(0x1dc)]='',this['mohtime']=0x0,this[_0x364117(0x1cd)]={};}module[a1242_0x3e954f(0x1ce)]=QueueReport; \ No newline at end of file +var a1242_0x567b=['exports','mohtime','originalposition','priority','connectedlinenum','queuecallerabandon','count','inbound','exten','holdtime','queuecallercompleteAt','accountcode','connectedlinename','queuecallercomplete','queuecallerjoinAt','assigned','calleridname','variables','context','calleridnum','lastAssignedTo','queuecallerabandonAt','type','queuecallerexitAt'];(function(_0x437cea,_0x2fe79c){var _0x567be1=function(_0x2f7cd3){while(--_0x2f7cd3){_0x437cea['push'](_0x437cea['shift']());}};_0x567be1(++_0x2fe79c);}(a1242_0x567b,0x15c));var a1242_0x2f7c=function(_0x437cea,_0x2fe79c){_0x437cea=_0x437cea-0x17e;var _0x567be1=a1242_0x567b[_0x437cea];return _0x567be1;};var a1242_0xb1c5d8=a1242_0x2f7c;'use strict';function QueueReport(){var _0x354330=a1242_0x2f7c;this[_0x354330(0x188)]=_0x354330(0x191),this['uniqueid']='',this[_0x354330(0x185)]='',this[_0x354330(0x182)]='',this['queue']='',this[_0x354330(0x180)]=null,this['queuecallerleaveAt']=null,this['position']=0x1,this[_0x354330(0x190)]=0x1,this[_0x354330(0x18f)]=![],this[_0x354330(0x187)]=null,this[_0x354330(0x17f)]=![],this[_0x354330(0x194)]=null,this['queuecallerexit']=![],this[_0x354330(0x189)]=null,this[_0x354330(0x18c)]=0x1,this['channel']='',this[_0x354330(0x18e)]='',this[_0x354330(0x17e)]='',this[_0x354330(0x195)]='',this[_0x354330(0x184)]='',this[_0x354330(0x192)]='',this[_0x354330(0x18d)]='',this[_0x354330(0x193)]=0x0,this[_0x354330(0x181)]=![],this[_0x354330(0x186)]='',this[_0x354330(0x18b)]=0x0,this[_0x354330(0x183)]={};}module[a1242_0xb1c5d8(0x18a)]=QueueReport; \ No newline at end of file diff --git a/server/services/ami/model/salesforceAccount.js b/server/services/ami/model/salesforceAccount.js index 55d73aa..8fa7583 100644 --- a/server/services/ami/model/salesforceAccount.js +++ b/server/services/ami/model/salesforceAccount.js @@ -1 +1 @@ -var a1243_0x3a4d=['type','integrationTab','Configurations','remoteUri','name','username','securityToken','clientSecret','password','clientId'];(function(_0x1ed394,_0x2e6156){var _0x3a4d01=function(_0x4666dc){while(--_0x4666dc){_0x1ed394['push'](_0x1ed394['shift']());}};_0x3a4d01(++_0x2e6156);}(a1243_0x3a4d,0x129));var a1243_0x4666=function(_0x1ed394,_0x2e6156){_0x1ed394=_0x1ed394-0x7b;var _0x3a4d01=a1243_0x3a4d[_0x1ed394];return _0x3a4d01;};'use strict';function SalesforceAccount(_0x263c8f){var _0x360e62=a1243_0x4666;this['id']=_0x263c8f['id']||0x0,this[_0x360e62(0x82)]=_0x263c8f[_0x360e62(0x82)]||'',this[_0x360e62(0x83)]=_0x263c8f[_0x360e62(0x83)]||'',this[_0x360e62(0x81)]=_0x263c8f[_0x360e62(0x81)]||'',this[_0x360e62(0x7c)]=_0x263c8f[_0x360e62(0x7c)]||'',this['clientId']=_0x263c8f[_0x360e62(0x7d)]||'',this[_0x360e62(0x7b)]=_0x263c8f[_0x360e62(0x7b)]||'',this[_0x360e62(0x84)]=_0x263c8f['securityToken']||'',this[_0x360e62(0x7e)]=_0x263c8f[_0x360e62(0x7e)]||_0x360e62(0x7f),this['serverUrl']=_0x263c8f['serverUrl']||'',this[_0x360e62(0x80)]=_0x263c8f[_0x360e62(0x80)]||{};}module['exports']=SalesforceAccount; \ No newline at end of file +var a1243_0x47fd=['username','securityToken','exports','integrationTab','Configurations','type','remoteUri','clientId','serverUrl'];(function(_0x69a020,_0x205ade){var _0x47fd1b=function(_0x39a9b6){while(--_0x39a9b6){_0x69a020['push'](_0x69a020['shift']());}};_0x47fd1b(++_0x205ade);}(a1243_0x47fd,0xee));var a1243_0x39a9=function(_0x69a020,_0x205ade){_0x69a020=_0x69a020-0x1a1;var _0x47fd1b=a1243_0x47fd[_0x69a020];return _0x47fd1b;};var a1243_0x103c76=a1243_0x39a9;'use strict';function SalesforceAccount(_0x13167f){var _0x571944=a1243_0x39a9;this['id']=_0x13167f['id']||0x0,this['name']=_0x13167f['name']||'',this[_0x571944(0x1a6)]=_0x13167f[_0x571944(0x1a6)]||'',this[_0x571944(0x1a3)]=_0x13167f['remoteUri']||'',this['password']=_0x13167f['password']||'',this[_0x571944(0x1a4)]=_0x13167f[_0x571944(0x1a4)]||'',this['clientSecret']=_0x13167f['clientSecret']||'',this[_0x571944(0x1a7)]=_0x13167f[_0x571944(0x1a7)]||'',this[_0x571944(0x1a2)]=_0x13167f[_0x571944(0x1a2)]||_0x571944(0x1a9),this['serverUrl']=_0x13167f[_0x571944(0x1a5)]||'',this['Configurations']=_0x13167f[_0x571944(0x1a1)]||{};}module[a1243_0x103c76(0x1a8)]=SalesforceAccount; \ No newline at end of file diff --git a/server/services/ami/model/servicenowAccount.js b/server/services/ami/model/servicenowAccount.js index a4ecf4b..ed60bfe 100644 --- a/server/services/ami/model/servicenowAccount.js +++ b/server/services/ami/model/servicenowAccount.js @@ -1 +1 @@ -var a1244_0x3ae0=['Configurations','name','serverUrl','username','password','exports','remoteUri'];(function(_0x1bb7db,_0x380679){var _0x3ae0b2=function(_0x1f662d){while(--_0x1f662d){_0x1bb7db['push'](_0x1bb7db['shift']());}};_0x3ae0b2(++_0x380679);}(a1244_0x3ae0,0xba));var a1244_0x1f66=function(_0x1bb7db,_0x380679){_0x1bb7db=_0x1bb7db-0x1ce;var _0x3ae0b2=a1244_0x3ae0[_0x1bb7db];return _0x3ae0b2;};var a1244_0x207211=a1244_0x1f66;'use strict';function ServicenowAccount(_0x2d5ee1){var _0x1bcba9=a1244_0x1f66;this['id']=_0x2d5ee1['id']||0x0,this[_0x1bcba9(0x1d2)]=_0x2d5ee1[_0x1bcba9(0x1d2)]||'',this[_0x1bcba9(0x1d4)]=_0x2d5ee1[_0x1bcba9(0x1d4)]||'',this[_0x1bcba9(0x1ce)]=_0x2d5ee1[_0x1bcba9(0x1ce)]||'',this[_0x1bcba9(0x1d0)]=_0x2d5ee1['remoteUri']||'',this['serverUrl']=_0x2d5ee1[_0x1bcba9(0x1d3)]||'',this[_0x1bcba9(0x1d1)]=_0x2d5ee1['Configurations']||{};}module[a1244_0x207211(0x1cf)]=ServicenowAccount; \ No newline at end of file +var a1244_0x2238=['remoteUri','name','username','password','serverUrl'];(function(_0x1ef735,_0x280888){var _0x2238b5=function(_0x1f2be4){while(--_0x1f2be4){_0x1ef735['push'](_0x1ef735['shift']());}};_0x2238b5(++_0x280888);}(a1244_0x2238,0x1bc));var a1244_0x1f2b=function(_0x1ef735,_0x280888){_0x1ef735=_0x1ef735-0xd0;var _0x2238b5=a1244_0x2238[_0x1ef735];return _0x2238b5;};'use strict';function ServicenowAccount(_0x66bef){var _0x44bedb=a1244_0x1f2b;this['id']=_0x66bef['id']||0x0,this[_0x44bedb(0xd2)]=_0x66bef[_0x44bedb(0xd2)]||'',this['username']=_0x66bef[_0x44bedb(0xd3)]||'',this['password']=_0x66bef[_0x44bedb(0xd4)]||'',this[_0x44bedb(0xd1)]=_0x66bef[_0x44bedb(0xd1)]||'',this[_0x44bedb(0xd0)]=_0x66bef[_0x44bedb(0xd0)]||'',this['Configurations']=_0x66bef['Configurations']||{};}module['exports']=ServicenowAccount; \ No newline at end of file diff --git a/server/services/ami/model/sugarcrmAccount.js b/server/services/ami/model/sugarcrmAccount.js index 00b8dcb..9246964 100644 --- a/server/services/ami/model/sugarcrmAccount.js +++ b/server/services/ami/model/sugarcrmAccount.js @@ -1 +1 @@ -var a1245_0x3a94=['name','serverUrl','remoteUri','Configurations','exports','password','username'];(function(_0x3bbd6e,_0xe91ff3){var _0x3a94e3=function(_0xbebda4){while(--_0xbebda4){_0x3bbd6e['push'](_0x3bbd6e['shift']());}};_0x3a94e3(++_0xe91ff3);}(a1245_0x3a94,0xa9));var a1245_0xbebd=function(_0x3bbd6e,_0xe91ff3){_0x3bbd6e=_0x3bbd6e-0x76;var _0x3a94e3=a1245_0x3a94[_0x3bbd6e];return _0x3a94e3;};var a1245_0x158e16=a1245_0xbebd;'use strict';function SugarcrmAccount(_0x4bf9dc){var _0x3fce49=a1245_0xbebd;this['id']=_0x4bf9dc['id']||0x0,this[_0x3fce49(0x7c)]=_0x4bf9dc['name']||'',this[_0x3fce49(0x7b)]=_0x4bf9dc[_0x3fce49(0x7b)]||'',this[_0x3fce49(0x7a)]=_0x4bf9dc[_0x3fce49(0x7a)]||'',this[_0x3fce49(0x77)]=_0x4bf9dc[_0x3fce49(0x77)]||'',this[_0x3fce49(0x76)]=_0x4bf9dc[_0x3fce49(0x76)]||'',this[_0x3fce49(0x78)]=_0x4bf9dc[_0x3fce49(0x78)]||{};}module[a1245_0x158e16(0x79)]=SugarcrmAccount; \ No newline at end of file +var a1245_0x48c8=['serverUrl','password','Configurations','name','username'];(function(_0x255bd7,_0x1e2644){var _0x48c8f7=function(_0x4a8fd0){while(--_0x4a8fd0){_0x255bd7['push'](_0x255bd7['shift']());}};_0x48c8f7(++_0x1e2644);}(a1245_0x48c8,0xd4));var a1245_0x4a8f=function(_0x255bd7,_0x1e2644){_0x255bd7=_0x255bd7-0x1d7;var _0x48c8f7=a1245_0x48c8[_0x255bd7];return _0x48c8f7;};'use strict';function SugarcrmAccount(_0x37cdf8){var _0xcd4242=a1245_0x4a8f;this['id']=_0x37cdf8['id']||0x0,this[_0xcd4242(0x1d8)]=_0x37cdf8[_0xcd4242(0x1d8)]||'',this['username']=_0x37cdf8[_0xcd4242(0x1d9)]||'',this[_0xcd4242(0x1db)]=_0x37cdf8['password']||'',this['remoteUri']=_0x37cdf8['remoteUri']||'',this[_0xcd4242(0x1da)]=_0x37cdf8[_0xcd4242(0x1da)]||'',this[_0xcd4242(0x1d7)]=_0x37cdf8[_0xcd4242(0x1d7)]||{};}module['exports']=SugarcrmAccount; \ No newline at end of file diff --git a/server/services/ami/model/telephone.js b/server/services/ami/model/telephone.js index e0e64cb..17aa044 100644 --- a/server/services/ami/model/telephone.js +++ b/server/services/ami/model/telephone.js @@ -1 +1 @@ -var a1246_0x2fa5=['status','stateTime','unknown','name','accountcode'];(function(_0x572973,_0x41aac9){var _0x2fa5ed=function(_0x5b23d7){while(--_0x5b23d7){_0x572973['push'](_0x572973['shift']());}};_0x2fa5ed(++_0x41aac9);}(a1246_0x2fa5,0x95));var a1246_0x5b23=function(_0x572973,_0x41aac9){_0x572973=_0x572973-0x190;var _0x2fa5ed=a1246_0x2fa5[_0x572973];return _0x2fa5ed;};'use strict';function Telephone(_0x489cc7){var _0x14793b=a1246_0x5b23;this['id']=_0x489cc7['id']||0x0,this[_0x14793b(0x194)]=_0x489cc7[_0x14793b(0x194)]||'',this[_0x14793b(0x190)]=_0x489cc7[_0x14793b(0x190)]||'',this['state']=_0x14793b(0x193),this[_0x14793b(0x192)]=0x0,this[_0x14793b(0x191)]=_0x14793b(0x193),this['address']='';}module['exports']=Telephone; \ No newline at end of file +var a1246_0x228e=['state','accountcode','exports','name','unknown','stateTime'];(function(_0xe6703,_0x237af9){var _0x228ecd=function(_0x2f3c4c){while(--_0x2f3c4c){_0xe6703['push'](_0xe6703['shift']());}};_0x228ecd(++_0x237af9);}(a1246_0x228e,0x1cd));var a1246_0x2f3c=function(_0xe6703,_0x237af9){_0xe6703=_0xe6703-0xdd;var _0x228ecd=a1246_0x228e[_0xe6703];return _0x228ecd;};var a1246_0x5411c6=a1246_0x2f3c;'use strict';function Telephone(_0x2576a7){var _0x27ff40=a1246_0x2f3c;this['id']=_0x2576a7['id']||0x0,this['name']=_0x2576a7[_0x27ff40(0xe1)]||'',this[_0x27ff40(0xdf)]=_0x2576a7['accountcode']||'',this[_0x27ff40(0xde)]=_0x27ff40(0xe2),this[_0x27ff40(0xdd)]=0x0,this['status']=_0x27ff40(0xe2),this['address']='';}module[a1246_0x5411c6(0xe0)]=Telephone; \ No newline at end of file diff --git a/server/services/ami/model/template.js b/server/services/ami/model/template.js index b23c570..43af454 100644 --- a/server/services/ami/model/template.js +++ b/server/services/ami/model/template.js @@ -1 +1 @@ -var a1247_0x52a8=['name','html'];(function(_0x3b8da7,_0x2d5b1a){var _0x52a83b=function(_0xac6a14){while(--_0xac6a14){_0x3b8da7['push'](_0x3b8da7['shift']());}};_0x52a83b(++_0x2d5b1a);}(a1247_0x52a8,0x190));var a1247_0xac6a=function(_0x3b8da7,_0x2d5b1a){_0x3b8da7=_0x3b8da7-0x1cc;var _0x52a83b=a1247_0x52a8[_0x3b8da7];return _0x52a83b;};'use strict';function template(_0x1ab941){var _0x593c4b=a1247_0xac6a;this['id']=_0x1ab941['id']||0x0,this[_0x593c4b(0x1cc)]=_0x1ab941['name']||'',this[_0x593c4b(0x1cd)]=_0x1ab941[_0x593c4b(0x1cd)]||'';}module['exports']=template; \ No newline at end of file +var a1247_0x12ac=['name','exports','html'];(function(_0x8a03b1,_0x2d4e34){var _0x12ac4f=function(_0x4ecddf){while(--_0x4ecddf){_0x8a03b1['push'](_0x8a03b1['shift']());}};_0x12ac4f(++_0x2d4e34);}(a1247_0x12ac,0x1c5));var a1247_0x4ecd=function(_0x8a03b1,_0x2d4e34){_0x8a03b1=_0x8a03b1-0x181;var _0x12ac4f=a1247_0x12ac[_0x8a03b1];return _0x12ac4f;};var a1247_0x4e57a3=a1247_0x4ecd;'use strict';function template(_0x4887fe){var _0x56ca75=a1247_0x4ecd;this['id']=_0x4887fe['id']||0x0,this[_0x56ca75(0x181)]=_0x4887fe[_0x56ca75(0x181)]||'',this[_0x56ca75(0x183)]=_0x4887fe['html']||'';}module[a1247_0x4e57a3(0x182)]=template; \ No newline at end of file diff --git a/server/services/ami/model/trigger.js b/server/services/ami/model/trigger.js index 078d847..ca99b39 100644 --- a/server/services/ami/model/trigger.js +++ b/server/services/ami/model/trigger.js @@ -1 +1 @@ -var a1248_0xef42=['channel','AnyConditions','name','status','voice','Actions','AllConditions'];(function(_0x4af596,_0x2d0f6c){var _0xef42dc=function(_0x4268ac){while(--_0x4268ac){_0x4af596['push'](_0x4af596['shift']());}};_0xef42dc(++_0x2d0f6c);}(a1248_0xef42,0x1b0));var a1248_0x4268=function(_0x4af596,_0x2d0f6c){_0x4af596=_0x4af596-0x7a;var _0xef42dc=a1248_0xef42[_0x4af596];return _0xef42dc;};'use strict';function Trigger(_0x1c66e0){var _0x4c61f7=a1248_0x4268;this['id']=_0x1c66e0['id']||0x0,this[_0x4c61f7(0x7e)]=_0x1c66e0[_0x4c61f7(0x7e)]||'',this[_0x4c61f7(0x7c)]=_0x1c66e0[_0x4c61f7(0x7c)]||_0x4c61f7(0x80),this['status']=_0x1c66e0[_0x4c61f7(0x7f)]||![],this[_0x4c61f7(0x7b)]=_0x1c66e0[_0x4c61f7(0x7b)]||[],this[_0x4c61f7(0x7d)]=_0x1c66e0[_0x4c61f7(0x7d)]||[],this[_0x4c61f7(0x7a)]=_0x1c66e0[_0x4c61f7(0x7a)]||[];}module['exports']=Trigger; \ No newline at end of file +var a1248_0x4563=['channel','voice','status','AnyConditions','Actions','AllConditions','name'];(function(_0x5278f9,_0xe34206){var _0x456393=function(_0x1a598b){while(--_0x1a598b){_0x5278f9['push'](_0x5278f9['shift']());}};_0x456393(++_0xe34206);}(a1248_0x4563,0x1ca));var a1248_0x1a59=function(_0x5278f9,_0xe34206){_0x5278f9=_0x5278f9-0x119;var _0x456393=a1248_0x4563[_0x5278f9];return _0x456393;};'use strict';function Trigger(_0x396226){var _0xc3fb75=a1248_0x1a59;this['id']=_0x396226['id']||0x0,this[_0xc3fb75(0x11c)]=_0x396226[_0xc3fb75(0x11c)]||'',this[_0xc3fb75(0x11d)]=_0x396226[_0xc3fb75(0x11d)]||_0xc3fb75(0x11e),this['status']=_0x396226[_0xc3fb75(0x11f)]||![],this[_0xc3fb75(0x11b)]=_0x396226['AllConditions']||[],this['AnyConditions']=_0x396226[_0xc3fb75(0x119)]||[],this[_0xc3fb75(0x11a)]=_0x396226['Actions']||[];}module['exports']=Trigger; \ No newline at end of file diff --git a/server/services/ami/model/trunk.js b/server/services/ami/model/trunk.js index 02f00a9..eadfec1 100644 --- a/server/services/ami/model/trunk.js +++ b/server/services/ami/model/trunk.js @@ -1 +1 @@ -var a1249_0x4a20=['domain','state','split','status','name','exports','stateRegistry','registrationtime','refresh','registry','unknown','port','stateTime','active','address','indexOf','domainport'];(function(_0xe56ab3,_0x5343ce){var _0x4a2064=function(_0x335fcb){while(--_0x335fcb){_0xe56ab3['push'](_0xe56ab3['shift']());}};_0x4a2064(++_0x5343ce);}(a1249_0x4a20,0x95));var a1249_0x335f=function(_0xe56ab3,_0x5343ce){_0xe56ab3=_0xe56ab3-0x10c;var _0x4a2064=a1249_0x4a20[_0xe56ab3];return _0x4a2064;};var a1249_0x55c6cb=a1249_0x335f;'use strict';function Trunk(_0x310bfc){var _0x1a8ca9=a1249_0x335f;this['id']=_0x310bfc['id']||0x0,this[_0x1a8ca9(0x10c)]=_0x310bfc[_0x1a8ca9(0x10c)]||![],this[_0x1a8ca9(0x114)]=_0x310bfc['name']||'',this[_0x1a8ca9(0x111)]=_0x1a8ca9(0x11a),this[_0x1a8ca9(0x11c)]=0x0,this[_0x1a8ca9(0x113)]=_0x1a8ca9(0x11a),this['registry']=_0x310bfc[_0x1a8ca9(0x119)]&&_0x310bfc['registry'][_0x1a8ca9(0x10e)](':')?_0x310bfc[_0x1a8ca9(0x119)][_0x1a8ca9(0x112)](':')[0x0]:'',this['host']='',this[_0x1a8ca9(0x11b)]='',this[_0x1a8ca9(0x110)]='',this[_0x1a8ca9(0x10f)]='',this[_0x1a8ca9(0x118)]='',this[_0x1a8ca9(0x116)]='unknown',this[_0x1a8ca9(0x117)]='',this[_0x1a8ca9(0x10d)]='';}module[a1249_0x55c6cb(0x115)]=Trunk; \ No newline at end of file +var a1249_0x5222=['host','active','state','port','indexOf','unknown','domainport','split','registry','status','registrationtime','name','stateRegistry'];(function(_0x40cd42,_0xebbb01){var _0x52221f=function(_0x3c6b19){while(--_0x3c6b19){_0x40cd42['push'](_0x40cd42['shift']());}};_0x52221f(++_0xebbb01);}(a1249_0x5222,0x1a2));var a1249_0x3c6b=function(_0x40cd42,_0xebbb01){_0x40cd42=_0x40cd42-0x65;var _0x52221f=a1249_0x5222[_0x40cd42];return _0x52221f;};'use strict';function Trunk(_0x1dc943){var _0x446ab4=a1249_0x3c6b;this['id']=_0x1dc943['id']||0x0,this[_0x446ab4(0x71)]=_0x1dc943[_0x446ab4(0x71)]||![],this[_0x446ab4(0x6e)]=_0x1dc943['name']||'',this[_0x446ab4(0x65)]=_0x446ab4(0x68),this['stateTime']=0x0,this[_0x446ab4(0x6c)]=_0x446ab4(0x68),this[_0x446ab4(0x6b)]=_0x1dc943['registry']&&_0x1dc943['registry'][_0x446ab4(0x67)](':')?_0x1dc943[_0x446ab4(0x6b)][_0x446ab4(0x6a)](':')[0x0]:'',this[_0x446ab4(0x70)]='',this[_0x446ab4(0x66)]='',this['domain']='',this[_0x446ab4(0x69)]='',this['refresh']='',this[_0x446ab4(0x6f)]=_0x446ab4(0x68),this[_0x446ab4(0x6d)]='',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 819efaf..44ba003 100644 --- a/server/services/ami/model/voiceExtension.js +++ b/server/services/ami/model/voiceExtension.js @@ -1 +1 @@ -var a1250_0x9db4=['mandatoryDisposition','exten','recordingFormat','exports','none'];(function(_0x43a154,_0x4ddf01){var _0x9db440=function(_0x140c6a){while(--_0x140c6a){_0x43a154['push'](_0x43a154['shift']());}};_0x9db440(++_0x4ddf01);}(a1250_0x9db4,0x1bb));var a1250_0x140c=function(_0x43a154,_0x4ddf01){_0x43a154=_0x43a154-0x154;var _0x9db440=a1250_0x9db4[_0x43a154];return _0x9db440;};var a1250_0x5b4bb2=a1250_0x140c;'use strict';function voiceExtension(_0x2404c6){var _0x3907eb=a1250_0x140c;this['id']=_0x2404c6['id']||0x0,this['exten']=_0x2404c6[_0x3907eb(0x157)]||'',this[_0x3907eb(0x158)]=_0x2404c6[_0x3907eb(0x158)]||_0x3907eb(0x155),this[_0x3907eb(0x156)]=_0x2404c6[_0x3907eb(0x156)]||![];}module[a1250_0x5b4bb2(0x154)]=voiceExtension; \ No newline at end of file +var a1250_0x3dd2=['exten','exports','recordingFormat','mandatoryDisposition'];(function(_0x156ed5,_0x2dfab0){var _0x3dd242=function(_0xb9fd1d){while(--_0xb9fd1d){_0x156ed5['push'](_0x156ed5['shift']());}};_0x3dd242(++_0x2dfab0);}(a1250_0x3dd2,0x1f2));var a1250_0xb9fd=function(_0x156ed5,_0x2dfab0){_0x156ed5=_0x156ed5-0x1ec;var _0x3dd242=a1250_0x3dd2[_0x156ed5];return _0x3dd242;};var a1250_0xd987c8=a1250_0xb9fd;'use strict';function voiceExtension(_0x45e983){var _0x235543=a1250_0xb9fd;this['id']=_0x45e983['id']||0x0,this[_0x235543(0x1ee)]=_0x45e983['exten']||'',this[_0x235543(0x1ec)]=_0x45e983['recordingFormat']||'none',this[_0x235543(0x1ed)]=_0x45e983[_0x235543(0x1ed)]||![];}module[a1250_0xd987c8(0x1ef)]=voiceExtension; \ No newline at end of file diff --git a/server/services/ami/model/voiceQueue.js b/server/services/ami/model/voiceQueue.js index 14c6540..823f22e 100644 --- a/server/services/ami/model/voiceQueue.js +++ b/server/services/ami/model/voiceQueue.js @@ -1 +1 @@ -const a1251_0x1c74=['handlePredictive','dialOriginateTimeout','talking','sumHoldTime','dialLimitQueue','dialTimezone','abandoned','dialLimitChannel','dialPredictiveInterval','dialAMDMaximumWordLength','dialMachineMaxRetry','dialPredictiveIntervalMaxThreshold','Interval','dialCutDigit','dialAMDMinWordLength','dialQueueProject','dialPredictiveOptimization','predictiveIntervalErlangCallsDroppedCalls','dialNoAnswerRetryFrequency','tTxX','dialAMDAfterGreetingSilence','name','dropRate','dialPowerLevel','predictiveIntervalAvgHoldtime','outboundDropCallsDayACS','dialMachineRetryFrequency','sendMessageOneNotActive','dialAMDGreeting','acw','dialGlobalInterval','outboundBlacklistCallsDay','inbound','message','Trunk','dialAMDActive','temp','waiting','progressive','outboundCongestionCallsDay','outboundRejectCallsDay','dialNoSuchNumberMaxRetry','roundrobin','monitor_format','loggedIn','dialAgentRejectRetryFrequency','dialNoSuchNumberRetryFrequency','outboundDropCallsDayTimeout','dialAgentRejectMaxRetry','DESC','dialAMDInitialSilence','TrunkBackup','predictiveIntervalMaxThreshold','dialActive','sumBillable','dialPrefix','dialCongestionMaxRetry','predictiveIntervalAvailable','dialDropRetryFrequency','dialAbandonedMaxRetry','startPredictive','dialAMDBetweenWordsSilence','strategy','dialAgiAfterHangupClient','dialBusyMaxRetry','unmanaged','dialAMDMaximumNumberOfWords','answered','rrmemory','outboundUnknownCallsDay','outboundReCallsDay','erlangAbandonmentRate','dialAgiAfterHangupAgent','predictiveIntervalDroppedCallsCallersExit','autopause','predictiveIntervalDroppedCallsTimeout','mandatoryDisposition','dialAbandonedRetryFrequency','sumDuration','dialRecallInQueue','dialRecallMeTimeout','dialAMDSilenceThreshold','startProgressive','outboundNoSuchCallsDay','predictiveIntervalMultiplicativeFactor','anonymous','type','outboundAbandonedDay','dialOrderByScheduledAt','dialRandomLastDigitCallerIdNumber','dialPredictiveOptimizationPercentage','dialGlobalMaxRetry','outboundDropCallsDayCallersExit','acwTimeout','predictiveIntervalHitRate','wav49','dialQueueProject2','dialCongestionRetryFrequency','predictiveIntervalPauses','total','outboundAnswerCallsDay','timeout','outboundBusyCallsDay','predictiveIntervalMinThreshold','gsm','dialQueueOptions','outboundOriginateFailureCallsDay','dialNoAnswerMaxRetry','dialDropMaxRetry','queueStatusComplete','dialOriginateCallerIdName','mandatoryDispositionPause','dialOriginateCallerIdNumber'];(function(_0x5b7b8c,_0x358f55){const _0x1c743c=function(_0x163eb1){while(--_0x163eb1){_0x5b7b8c['push'](_0x5b7b8c['shift']());}};_0x1c743c(++_0x358f55);}(a1251_0x1c74,0x18e));const a1251_0x163e=function(_0x5b7b8c,_0x358f55){_0x5b7b8c=_0x5b7b8c-0xb9;let _0x1c743c=a1251_0x1c74[_0x5b7b8c];return _0x1c743c;};const a1251_0xb14a2=a1251_0x163e;'use strict';const monitorFormat={'wav':'wav','wav49':a1251_0xb14a2(0xdd),'gsm':a1251_0xb14a2(0xe6)},strategy={'rrmemory':a1251_0xb14a2(0xc2),'roundrobin':a1251_0xb14a2(0x119)};function VoiceQueue(_0x3c8e46){const _0x1e1e93=a1251_0xb14a2;this['id']=_0x3c8e46['id']||0x0,this['name']=_0x3c8e46[_0x1e1e93(0x104)]||'',this[_0x1e1e93(0x11a)]=_0x3c8e46[_0x1e1e93(0x11a)]||'',this[_0x1e1e93(0xd4)]=_0x3c8e46[_0x1e1e93(0xd4)]||_0x1e1e93(0x10f),this[_0x1e1e93(0x114)]=0x0,this[_0x1e1e93(0xf1)]=0x0,this[_0x1e1e93(0xe1)]=0x0,this[_0x1e1e93(0xc1)]=0x0,this[_0x1e1e93(0xcc)]=0x0,this[_0x1e1e93(0xf2)]=0x0,this[_0x1e1e93(0x125)]=0x0,this[_0x1e1e93(0xbf)]=0x0,this[_0x1e1e93(0xf5)]=0x0,this[_0x1e1e93(0x11b)]=0x0,this['available']=0x0,this[_0x1e1e93(0x10c)]=_0x3c8e46['acw']||![],this['acwTimeout']=_0x3c8e46[_0x1e1e93(0xdb)]||0xa,this[_0x1e1e93(0xc8)]=_0x3c8e46[_0x1e1e93(0xc8)]||'no',this[_0x1e1e93(0x10a)]=!![],this[_0x1e1e93(0x110)]='',this['originated']=0x0,this[_0x1e1e93(0x113)]=0x0,this[_0x1e1e93(0xf4)]=_0x3c8e46[_0x1e1e93(0xf4)]||null,this[_0x1e1e93(0x10d)]=_0x3c8e46[_0x1e1e93(0x10d)]?_0x3c8e46[_0x1e1e93(0x10d)]:null,this['dialActive']=_0x3c8e46[_0x1e1e93(0x124)],this['dialMethod']=_0x3c8e46['dialMethod']||_0x1e1e93(0x115),this[_0x1e1e93(0xf6)]=_0x3c8e46[_0x1e1e93(0xf6)]||0x0,this['dialLimitQueue']=_0x3c8e46[_0x1e1e93(0xf3)]||0x0,this[_0x1e1e93(0x106)]=_0x3c8e46[_0x1e1e93(0x106)]||0x1,this[_0x1e1e93(0xff)]=_0x3c8e46[_0x1e1e93(0xff)]||_0x1e1e93(0x105),this['dialPredictiveOptimizationPercentage']=_0x3c8e46[_0x1e1e93(0xd8)]||0.03,this[_0x1e1e93(0xf7)]=_0x3c8e46[_0x1e1e93(0xf7)]||0x258,this[_0x1e1e93(0xec)]=_0x3c8e46['dialOriginateCallerIdName']||_0x1e1e93(0xd3),this['dialOriginateCallerIdNumber']=_0x3c8e46[_0x1e1e93(0xee)]||_0x1e1e93(0xd3),this[_0x1e1e93(0xf0)]=_0x3c8e46[_0x1e1e93(0xf0)]||0x1e,this['dialQueueOptions']=_0x3c8e46[_0x1e1e93(0xe7)]||_0x1e1e93(0x102),this['dialQueueTimeout']=_0x3c8e46['dialQueueTimeout']||0x3,this[_0x1e1e93(0xfe)]=_0x3c8e46[_0x1e1e93(0xfe)]||undefined,this[_0x1e1e93(0x127)]=_0x3c8e46[_0x1e1e93(0x127)]||0x3,this[_0x1e1e93(0xdf)]=_0x3c8e46[_0x1e1e93(0xdf)]||0x96,this['dialBusyMaxRetry']=_0x3c8e46[_0x1e1e93(0xbe)]||0x3,this['dialBusyRetryFrequency']=_0x3c8e46['dialBusyRetryFrequency']||0x96,this[_0x1e1e93(0xe9)]=_0x3c8e46[_0x1e1e93(0xe9)]||0x3,this['dialNoAnswerRetryFrequency']=_0x3c8e46[_0x1e1e93(0x101)]||0x96,this[_0x1e1e93(0x118)]=_0x3c8e46[_0x1e1e93(0x118)]||0x3,this['dialNoSuchNumberRetryFrequency']=_0x3c8e46[_0x1e1e93(0x11d)]||0x96,this[_0x1e1e93(0xea)]=_0x3c8e46[_0x1e1e93(0xea)]||0x3,this[_0x1e1e93(0x129)]=_0x3c8e46[_0x1e1e93(0x129)]||0x96,this[_0x1e1e93(0xb9)]=_0x3c8e46[_0x1e1e93(0xb9)]||0x3,this[_0x1e1e93(0xcb)]=_0x3c8e46[_0x1e1e93(0xcb)]||0x96,this[_0x1e1e93(0xf9)]=_0x3c8e46[_0x1e1e93(0xf9)]||0x3,this[_0x1e1e93(0x109)]=_0x3c8e46[_0x1e1e93(0x109)]||0x96,this['dialAgentRejectMaxRetry']=_0x3c8e46[_0x1e1e93(0x11f)]||0x3,this[_0x1e1e93(0x11c)]=_0x3c8e46[_0x1e1e93(0x11c)]||0x96,this['dialGlobalMaxRetry']=_0x3c8e46[_0x1e1e93(0xd9)]||0x4,this[_0x1e1e93(0x111)]=_0x3c8e46['Trunk']?_0x3c8e46[_0x1e1e93(0x111)]:undefined,this[_0x1e1e93(0x122)]=_0x3c8e46[_0x1e1e93(0x122)]?_0x3c8e46[_0x1e1e93(0x122)]:undefined,this[_0x1e1e93(0x126)]=_0x3c8e46[_0x1e1e93(0x126)]||undefined,this['Interval']=_0x3c8e46[_0x1e1e93(0xfb)]?_0x3c8e46[_0x1e1e93(0xfb)]:undefined,this['dialOrderByScheduledAt']=_0x3c8e46[_0x1e1e93(0xd6)]||_0x1e1e93(0x120),this[_0x1e1e93(0xd7)]=_0x3c8e46[_0x1e1e93(0xd7)]||undefined,this['dialCutDigit']=_0x3c8e46[_0x1e1e93(0xfc)]||undefined,this[_0x1e1e93(0xbc)]=strategy[_0x3c8e46[_0x1e1e93(0xbc)]]||_0x1e1e93(0xc2),this[_0x1e1e93(0xeb)]=!![],this[_0x1e1e93(0x112)]=_0x3c8e46[_0x1e1e93(0x112)]||![],this[_0x1e1e93(0x121)]=_0x3c8e46[_0x1e1e93(0x121)],this[_0x1e1e93(0x10b)]=_0x3c8e46[_0x1e1e93(0x10b)],this[_0x1e1e93(0x103)]=_0x3c8e46[_0x1e1e93(0x103)],this['dialAMDTotalAnalysisTime']=_0x3c8e46['dialAMDTotalAnalysisTime'],this[_0x1e1e93(0xfd)]=_0x3c8e46[_0x1e1e93(0xfd)],this[_0x1e1e93(0xbb)]=_0x3c8e46[_0x1e1e93(0xbb)],this[_0x1e1e93(0xc0)]=_0x3c8e46[_0x1e1e93(0xc0)],this[_0x1e1e93(0xcf)]=_0x3c8e46[_0x1e1e93(0xcf)],this[_0x1e1e93(0xf8)]=_0x3c8e46[_0x1e1e93(0xf8)],this[_0x1e1e93(0x117)]=0x0,this['pTalking']=0x0,this[_0x1e1e93(0xe3)]=_0x3c8e46[_0x1e1e93(0xe3)],this[_0x1e1e93(0xe2)]=0x0,this['outboundAnswerAgiCallsDay']=0x0,this['outboundNoAnswerCallsDay']=0x0,this[_0x1e1e93(0xe4)]=0x0,this[_0x1e1e93(0x116)]=0x0,this[_0x1e1e93(0xd1)]=0x0,this[_0x1e1e93(0xc3)]=0x0,this[_0x1e1e93(0x10e)]=0x0,this[_0x1e1e93(0xe8)]=0x0,this[_0x1e1e93(0xda)]=0x0,this[_0x1e1e93(0x11e)]=0x0,this[_0x1e1e93(0x108)]=0x0,this[_0x1e1e93(0xc4)]=0x0,this[_0x1e1e93(0xd5)]=0x0,this[_0x1e1e93(0xd0)]=undefined,this[_0x1e1e93(0xba)]=undefined,this[_0x1e1e93(0xef)]=undefined,this[_0x1e1e93(0xd2)]=1.05,this['predictiveIntervalTotalCalls']=0x0,this['predictiveIntervalAnsweredCalls']=0x0,this[_0x1e1e93(0xc7)]=0x0,this[_0x1e1e93(0xc9)]=0x0,this[_0x1e1e93(0x107)]=0x0,this['predictiveIntervalAvgTalktime']=0x0,this[_0x1e1e93(0xe0)]=0x0,this[_0x1e1e93(0x128)]=0x0,this[_0x1e1e93(0x123)]=_0x3c8e46[_0x1e1e93(0xfa)]||0x14,this[_0x1e1e93(0xe5)]=_0x3c8e46[_0x1e1e93(0xfa)]||0xa,this['predictiveIntervalErlangCalls']=0x0,this[_0x1e1e93(0x100)]=0x0,this[_0x1e1e93(0xdc)]=0x1,this['erlangCalls']=0x0,this['erlangCallToSecond']=0x0,this[_0x1e1e93(0xc5)]=0x0,this['erlangBusyFactor']=0x0,this[_0x1e1e93(0xce)]=_0x3c8e46[_0x1e1e93(0xce)]||0x1e,this[_0x1e1e93(0xcd)]=_0x3c8e46[_0x1e1e93(0xcd)]||![],this[_0x1e1e93(0xde)]=_0x3c8e46[_0x1e1e93(0xde)]||undefined,this['dialAgiAfterHangupClient']=_0x3c8e46[_0x1e1e93(0xbd)]||![],this['dialAgiAfterHangupAgent']=_0x3c8e46[_0x1e1e93(0xc6)]||![],this['monitor_format']=monitorFormat[_0x3c8e46[_0x1e1e93(0x11a)]]?monitorFormat[_0x3c8e46[_0x1e1e93(0x11a)]]:undefined,this[_0x1e1e93(0xca)]=_0x3c8e46[_0x1e1e93(0xca)]||![],this[_0x1e1e93(0xed)]=_0x3c8e46[_0x1e1e93(0xed)]?_0x3c8e46[_0x1e1e93(0xed)]:undefined;}module['exports']=VoiceQueue; \ No newline at end of file +const a1251_0x58c1=['dialAMDSilenceThreshold','dropRate','anonymous','message','dialOrderByScheduledAt','dialQueueProject','outboundAnswerCallsDay','dialDropRetryFrequency','abandoned','dialNoSuchNumberMaxRetry','dialPowerLevel','dialBusyMaxRetry','dialOriginateTimeout','answered','dialAMDAfterGreetingSilence','autopause','unmanaged','dialAgentRejectMaxRetry','dialAMDMaximumWordLength','dialBusyRetryFrequency','dialQueueTimeout','outboundCongestionCallsDay','dialPredictiveOptimizationPercentage','dialDropMaxRetry','handlePredictive','dialCongestionRetryFrequency','dialMethod','roundrobin','dialPrefix','temp','outboundOriginateFailureCallsDay','tTxX','dialAgentRejectRetryFrequency','sumBillable','dialQueueOptions','dialQueueProject2','dialTimezone','acw','dialPredictiveOptimization','outboundDropCallsDayACS','predictiveIntervalPauses','waiting','dialAMDMaximumNumberOfWords','sumHoldTime','name','dialAgiAfterHangupClient','gsm','erlangAbandonmentRate','dialOriginateCallerIdName','dialAMDActive','predictiveIntervalMultiplicativeFactor','erlangCallToSecond','outboundBlacklistCallsDay','Interval','dialNoAnswerMaxRetry','exports','outboundUnknownCallsDay','total','startPredictive','predictiveIntervalErlangCalls','dialMachineRetryFrequency','mandatoryDispositionPause','dialLimitQueue','predictiveIntervalAvailable','dialAMDMinWordLength','predictiveIntervalMinThreshold','outboundAbandonedDay','dialAMDInitialSilence','outboundDropCallsDayCallersExit','dialRandomLastDigitCallerIdNumber','dialGlobalMaxRetry','predictiveIntervalHitRate','progressive','outboundReCallsDay','dialAgiAfterHangupAgent','dialAbandonedMaxRetry','outboundAnswerAgiCallsDay','dialMachineMaxRetry','acwTimeout','outboundRejectCallsDay','dialAbandonedRetryFrequency','originated','outboundBusyCallsDay','type','timeout','dialRecallMeTimeout','predictiveIntervalDroppedCallsTimeout','sendMessageOneNotActive','dialCongestionMaxRetry','dialPredictiveIntervalMaxThreshold','erlangCalls','dialCutDigit','predictiveIntervalTotalCalls','startProgressive','mandatoryDisposition','dialGlobalInterval','dialOriginateCallerIdNumber','dialAMDTotalAnalysisTime','wav49','inbound','DESC','dialLimitChannel','dialAMDBetweenWordsSilence','outboundDropCallsDayTimeout','predictiveIntervalMaxThreshold','dialRecallInQueue','sumDuration','dialActive','Trunk','monitor_format','wav','outboundNoAnswerCallsDay','dialPredictiveInterval','TrunkBackup','talking','dialAMDGreeting','strategy'];(function(_0x5cfa00,_0x5757b4){const _0x58c15f=function(_0x2bcab7){while(--_0x2bcab7){_0x5cfa00['push'](_0x5cfa00['shift']());}};_0x58c15f(++_0x5757b4);}(a1251_0x58c1,0x1ce));const a1251_0x2bca=function(_0x5cfa00,_0x5757b4){_0x5cfa00=_0x5cfa00-0x77;let _0x58c15f=a1251_0x58c1[_0x5cfa00];return _0x58c15f;};const a1251_0x4e5d08=a1251_0x2bca;'use strict';const monitorFormat={'wav':a1251_0x4e5d08(0xeb),'wav49':a1251_0x4e5d08(0xdf),'gsm':a1251_0x4e5d08(0xab)},strategy={'rrmemory':'rrmemory','roundrobin':a1251_0x4e5d08(0x98)};function VoiceQueue(_0x1ae617){const _0x275429=a1251_0x4e5d08;this['id']=_0x1ae617['id']||0x0,this[_0x275429(0xa9)]=_0x1ae617['name']||'',this[_0x275429(0xea)]=_0x1ae617['monitor_format']||'',this[_0x275429(0xd0)]=_0x1ae617[_0x275429(0xd0)]||_0x275429(0xe0),this[_0x275429(0xa6)]=0x0,this[_0x275429(0x7a)]=0x0,this[_0x275429(0xb6)]=0x0,this[_0x275429(0x8a)]=0x0,this[_0x275429(0xe7)]=0x0,this[_0x275429(0xa8)]=0x0,this[_0x275429(0x9e)]=0x0,this[_0x275429(0x8d)]=0x0,this[_0x275429(0x85)]=0x0,this['loggedIn']=0x0,this['available']=0x0,this['acw']=_0x1ae617[_0x275429(0xa2)]||![],this[_0x275429(0xcb)]=_0x1ae617[_0x275429(0xcb)]||0xa,this[_0x275429(0x8c)]=_0x1ae617[_0x275429(0x8c)]||'no',this[_0x275429(0xd4)]=!![],this[_0x275429(0x80)]='',this[_0x275429(0xce)]=0x0,this[_0x275429(0x9a)]=0x0,this[_0x275429(0xa1)]=_0x1ae617[_0x275429(0xa1)]||null,this[_0x275429(0xdc)]=_0x1ae617[_0x275429(0xdc)]?_0x1ae617[_0x275429(0xdc)]:null,this['dialActive']=_0x1ae617[_0x275429(0xe8)],this[_0x275429(0x97)]=_0x1ae617[_0x275429(0x97)]||_0x275429(0xc5),this[_0x275429(0xe2)]=_0x1ae617['dialLimitChannel']||0x0,this['dialLimitQueue']=_0x1ae617[_0x275429(0xbb)]||0x0,this[_0x275429(0x87)]=_0x1ae617[_0x275429(0x87)]||0x1,this[_0x275429(0xa3)]=_0x1ae617[_0x275429(0xa3)]||_0x275429(0x7e),this[_0x275429(0x93)]=_0x1ae617[_0x275429(0x93)]||0.03,this[_0x275429(0x78)]=_0x1ae617[_0x275429(0x78)]||0x258,this[_0x275429(0xad)]=_0x1ae617[_0x275429(0xad)]||_0x275429(0x7f),this['dialOriginateCallerIdNumber']=_0x1ae617[_0x275429(0xdd)]||'anonymous',this[_0x275429(0x89)]=_0x1ae617[_0x275429(0x89)]||0x1e,this['dialQueueOptions']=_0x1ae617[_0x275429(0x9f)]||_0x275429(0x9c),this['dialQueueTimeout']=_0x1ae617[_0x275429(0x91)]||0x3,this[_0x275429(0x82)]=_0x1ae617[_0x275429(0x82)]||undefined,this[_0x275429(0xd5)]=_0x1ae617[_0x275429(0xd5)]||0x3,this[_0x275429(0x96)]=_0x1ae617['dialCongestionRetryFrequency']||0x96,this[_0x275429(0x88)]=_0x1ae617[_0x275429(0x88)]||0x3,this[_0x275429(0x90)]=_0x1ae617['dialBusyRetryFrequency']||0x96,this[_0x275429(0xb3)]=_0x1ae617[_0x275429(0xb3)]||0x3,this['dialNoAnswerRetryFrequency']=_0x1ae617['dialNoAnswerRetryFrequency']||0x96,this[_0x275429(0x86)]=_0x1ae617['dialNoSuchNumberMaxRetry']||0x3,this['dialNoSuchNumberRetryFrequency']=_0x1ae617['dialNoSuchNumberRetryFrequency']||0x96,this[_0x275429(0x94)]=_0x1ae617[_0x275429(0x94)]||0x3,this['dialDropRetryFrequency']=_0x1ae617[_0x275429(0x84)]||0x96,this[_0x275429(0xc8)]=_0x1ae617[_0x275429(0xc8)]||0x3,this[_0x275429(0xcd)]=_0x1ae617['dialAbandonedRetryFrequency']||0x96,this[_0x275429(0xca)]=_0x1ae617[_0x275429(0xca)]||0x3,this[_0x275429(0xb9)]=_0x1ae617[_0x275429(0xb9)]||0x96,this['dialAgentRejectMaxRetry']=_0x1ae617[_0x275429(0x8e)]||0x3,this[_0x275429(0x9d)]=_0x1ae617['dialAgentRejectRetryFrequency']||0x96,this[_0x275429(0xc3)]=_0x1ae617['dialGlobalMaxRetry']||0x4,this[_0x275429(0xe9)]=_0x1ae617[_0x275429(0xe9)]?_0x1ae617['Trunk']:undefined,this['TrunkBackup']=_0x1ae617[_0x275429(0x79)]?_0x1ae617[_0x275429(0x79)]:undefined,this['dialPrefix']=_0x1ae617[_0x275429(0x99)]||undefined,this[_0x275429(0xb2)]=_0x1ae617[_0x275429(0xb2)]?_0x1ae617[_0x275429(0xb2)]:undefined,this['dialOrderByScheduledAt']=_0x1ae617[_0x275429(0x81)]||_0x275429(0xe1),this[_0x275429(0xc2)]=_0x1ae617[_0x275429(0xc2)]||undefined,this[_0x275429(0xd8)]=_0x1ae617['dialCutDigit']||undefined,this['strategy']=strategy[_0x1ae617[_0x275429(0x7c)]]||'rrmemory',this['queueStatusComplete']=!![],this[_0x275429(0xae)]=_0x1ae617['dialAMDActive']||![],this[_0x275429(0xc0)]=_0x1ae617[_0x275429(0xc0)],this[_0x275429(0x7b)]=_0x1ae617[_0x275429(0x7b)],this[_0x275429(0x8b)]=_0x1ae617[_0x275429(0x8b)],this[_0x275429(0xde)]=_0x1ae617['dialAMDTotalAnalysisTime'],this[_0x275429(0xbd)]=_0x1ae617[_0x275429(0xbd)],this['dialAMDBetweenWordsSilence']=_0x1ae617[_0x275429(0xe3)],this[_0x275429(0xa7)]=_0x1ae617[_0x275429(0xa7)],this['dialAMDSilenceThreshold']=_0x1ae617[_0x275429(0x7d)],this[_0x275429(0x8f)]=_0x1ae617['dialAMDMaximumWordLength'],this[_0x275429(0xcc)]=0x0,this['pTalking']=0x0,this['timeout']=_0x1ae617[_0x275429(0xd1)],this[_0x275429(0x83)]=0x0,this[_0x275429(0xc9)]=0x0,this[_0x275429(0x77)]=0x0,this[_0x275429(0xcf)]=0x0,this[_0x275429(0x92)]=0x0,this['outboundNoSuchCallsDay']=0x0,this[_0x275429(0xb5)]=0x0,this[_0x275429(0xb1)]=0x0,this[_0x275429(0x9b)]=0x0,this[_0x275429(0xc1)]=0x0,this[_0x275429(0xe4)]=0x0,this[_0x275429(0xa4)]=0x0,this[_0x275429(0xc6)]=0x0,this[_0x275429(0xbf)]=0x0,this[_0x275429(0xda)]=undefined,this[_0x275429(0xb7)]=undefined,this[_0x275429(0x95)]=undefined,this[_0x275429(0xaf)]=1.05,this[_0x275429(0xd9)]=0x0,this['predictiveIntervalAnsweredCalls']=0x0,this['predictiveIntervalDroppedCallsCallersExit']=0x0,this[_0x275429(0xd3)]=0x0,this['predictiveIntervalAvgHoldtime']=0x0,this['predictiveIntervalAvgTalktime']=0x0,this[_0x275429(0xa5)]=0x0,this[_0x275429(0xbc)]=0x0,this[_0x275429(0xe5)]=_0x1ae617[_0x275429(0xd6)]||0x14,this[_0x275429(0xbe)]=_0x1ae617['dialPredictiveIntervalMaxThreshold']||0xa,this[_0x275429(0xb8)]=0x0,this['predictiveIntervalErlangCallsDroppedCalls']=0x0,this[_0x275429(0xc4)]=0x1,this[_0x275429(0xd7)]=0x0,this[_0x275429(0xb0)]=0x0,this[_0x275429(0xac)]=0x0,this['erlangBusyFactor']=0x0,this[_0x275429(0xd2)]=_0x1ae617[_0x275429(0xd2)]||0x1e,this['dialRecallInQueue']=_0x1ae617[_0x275429(0xe6)]||![],this[_0x275429(0xa0)]=_0x1ae617[_0x275429(0xa0)]||undefined,this[_0x275429(0xaa)]=_0x1ae617[_0x275429(0xaa)]||![],this[_0x275429(0xc7)]=_0x1ae617[_0x275429(0xc7)]||![],this[_0x275429(0xea)]=monitorFormat[_0x1ae617[_0x275429(0xea)]]?monitorFormat[_0x1ae617['monitor_format']]:undefined,this[_0x275429(0xdb)]=_0x1ae617[_0x275429(0xdb)]||![],this['mandatoryDispositionPause']=_0x1ae617[_0x275429(0xba)]?_0x1ae617[_0x275429(0xba)]:undefined;}module[a1251_0x4e5d08(0xb4)]=VoiceQueue; \ No newline at end of file diff --git a/server/services/ami/model/vtigerAccount.js b/server/services/ami/model/vtigerAccount.js index 4ba68e3..7e1d861 100644 --- a/server/services/ami/model/vtigerAccount.js +++ b/server/services/ami/model/vtigerAccount.js @@ -1 +1 @@ -var a1252_0xa330=['username','remoteUri','name','Configurations','accessKey','exports'];(function(_0x59b861,_0x96cc52){var _0xa330eb=function(_0x2f334b){while(--_0x2f334b){_0x59b861['push'](_0x59b861['shift']());}};_0xa330eb(++_0x96cc52);}(a1252_0xa330,0xc1));var a1252_0x2f33=function(_0x59b861,_0x96cc52){_0x59b861=_0x59b861-0x190;var _0xa330eb=a1252_0xa330[_0x59b861];return _0xa330eb;};var a1252_0x5283a2=a1252_0x2f33;'use strict';function VtigerAccount(_0x179dcf){var _0x41dd33=a1252_0x2f33;this['id']=_0x179dcf['id']||0x0,this['name']=_0x179dcf[_0x41dd33(0x191)]||'',this[_0x41dd33(0x195)]=_0x179dcf[_0x41dd33(0x195)]||'',this[_0x41dd33(0x193)]=_0x179dcf[_0x41dd33(0x193)]||'',this[_0x41dd33(0x190)]=_0x179dcf[_0x41dd33(0x190)]||'',this['serverUrl']=_0x179dcf['serverUrl']||'',this[_0x41dd33(0x192)]=_0x179dcf[_0x41dd33(0x192)]||{};}module[a1252_0x5283a2(0x194)]=VtigerAccount; \ No newline at end of file +var a1252_0x5362=['Configurations','accessKey','exports','username','name','remoteUri','serverUrl'];(function(_0x2ff1de,_0x170716){var _0x536269=function(_0x378975){while(--_0x378975){_0x2ff1de['push'](_0x2ff1de['shift']());}};_0x536269(++_0x170716);}(a1252_0x5362,0xbf));var a1252_0x3789=function(_0x2ff1de,_0x170716){_0x2ff1de=_0x2ff1de-0x14a;var _0x536269=a1252_0x5362[_0x2ff1de];return _0x536269;};var a1252_0x30f278=a1252_0x3789;'use strict';function VtigerAccount(_0x21671c){var _0x12d0e0=a1252_0x3789;this['id']=_0x21671c['id']||0x0,this[_0x12d0e0(0x14c)]=_0x21671c[_0x12d0e0(0x14c)]||'',this['username']=_0x21671c[_0x12d0e0(0x14b)]||'',this[_0x12d0e0(0x150)]=_0x21671c[_0x12d0e0(0x150)]||'',this[_0x12d0e0(0x14d)]=_0x21671c[_0x12d0e0(0x14d)]||'',this[_0x12d0e0(0x14e)]=_0x21671c[_0x12d0e0(0x14e)]||'',this[_0x12d0e0(0x14f)]=_0x21671c[_0x12d0e0(0x14f)]||{};}module[a1252_0x30f278(0x14a)]=VtigerAccount; \ No newline at end of file diff --git a/server/services/ami/model/zendeskAccount.js b/server/services/ami/model/zendeskAccount.js index 8089093..5731d08 100644 --- a/server/services/ami/model/zendeskAccount.js +++ b/server/services/ami/model/zendeskAccount.js @@ -1 +1 @@ -var a1253_0x37bc=['integrationTab','password','remoteUri','username','serverUrl','Configurations','token','authType','type','name'];(function(_0x33e1dc,_0x440eb3){var _0x37bc5d=function(_0x2a8d2e){while(--_0x2a8d2e){_0x33e1dc['push'](_0x33e1dc['shift']());}};_0x37bc5d(++_0x440eb3);}(a1253_0x37bc,0x6d));var a1253_0x2a8d=function(_0x33e1dc,_0x440eb3){_0x33e1dc=_0x33e1dc-0x66;var _0x37bc5d=a1253_0x37bc[_0x33e1dc];return _0x37bc5d;};'use strict';function ZendeskAccount(_0x56c57c){var _0x55d99d=a1253_0x2a8d;this['id']=_0x56c57c['id']||0x0,this[_0x55d99d(0x66)]=_0x56c57c['name']||'',this[_0x55d99d(0x6a)]=_0x56c57c[_0x55d99d(0x6a)]||'',this[_0x55d99d(0x68)]=_0x56c57c[_0x55d99d(0x68)]||'',this[_0x55d99d(0x6d)]=_0x56c57c[_0x55d99d(0x6d)]||'',this[_0x55d99d(0x69)]=_0x56c57c['remoteUri']||'',this[_0x55d99d(0x6e)]=_0x56c57c[_0x55d99d(0x6e)]||'',this['type']=_0x56c57c[_0x55d99d(0x6f)]||_0x55d99d(0x67),this[_0x55d99d(0x6b)]=_0x56c57c[_0x55d99d(0x6b)]||'',this[_0x55d99d(0x6c)]=_0x56c57c[_0x55d99d(0x6c)]||{};}module['exports']=ZendeskAccount; \ No newline at end of file +var a1253_0x32f8=['integrationTab','type','remoteUri','password','authType','Configurations','name','username','exports'];(function(_0x24cf0c,_0x4bfa0d){var _0x32f848=function(_0x2babe8){while(--_0x2babe8){_0x24cf0c['push'](_0x24cf0c['shift']());}};_0x32f848(++_0x4bfa0d);}(a1253_0x32f8,0xc3));var a1253_0x2bab=function(_0x24cf0c,_0x4bfa0d){_0x24cf0c=_0x24cf0c-0xa6;var _0x32f848=a1253_0x32f8[_0x24cf0c];return _0x32f848;};var a1253_0x537fde=a1253_0x2bab;'use strict';function ZendeskAccount(_0x3b0a41){var _0x3a5725=a1253_0x2bab;this['id']=_0x3b0a41['id']||0x0,this[_0x3a5725(0xa6)]=_0x3b0a41['name']||'',this[_0x3a5725(0xa7)]=_0x3b0a41[_0x3a5725(0xa7)]||'',this[_0x3a5725(0xac)]=_0x3b0a41[_0x3a5725(0xac)]||'',this['token']=_0x3b0a41['token']||'',this['remoteUri']=_0x3b0a41[_0x3a5725(0xab)]||'',this[_0x3a5725(0xad)]=_0x3b0a41[_0x3a5725(0xad)]||'',this[_0x3a5725(0xaa)]=_0x3b0a41[_0x3a5725(0xaa)]||_0x3a5725(0xa9),this['serverUrl']=_0x3b0a41['serverUrl']||'',this['Configurations']=_0x3b0a41[_0x3a5725(0xae)]||{};}module[a1253_0x537fde(0xa8)]=ZendeskAccount; \ No newline at end of file diff --git a/server/services/ami/model/zohoAccount.js b/server/services/ami/model/zohoAccount.js index 69042ec..9673a91 100644 --- a/server/services/ami/model/zohoAccount.js +++ b/server/services/ami/model/zohoAccount.js @@ -1 +1 @@ -var a1254_0xda80=['clientSecret','serverUrl','name','zone','description','clientId','host','exports','Configurations','refreshToken','code'];(function(_0x3fe72e,_0x1ca73f){var _0xda8081=function(_0x243bfe){while(--_0x243bfe){_0x3fe72e['push'](_0x3fe72e['shift']());}};_0xda8081(++_0x1ca73f);}(a1254_0xda80,0x1e4));var a1254_0x243b=function(_0x3fe72e,_0x1ca73f){_0x3fe72e=_0x3fe72e-0x133;var _0xda8081=a1254_0xda80[_0x3fe72e];return _0xda8081;};var a1254_0x7cabe6=a1254_0x243b;'use strict';function ZohoAccount(_0x299a0b){var _0x598aa5=a1254_0x243b;this['id']=_0x299a0b['id']||0x0,this[_0x598aa5(0x135)]=_0x299a0b[_0x598aa5(0x135)]||'',this[_0x598aa5(0x137)]=_0x299a0b[_0x598aa5(0x137)]||'',this[_0x598aa5(0x139)]=_0x299a0b[_0x598aa5(0x139)]||'',this[_0x598aa5(0x136)]=_0x299a0b[_0x598aa5(0x136)]||'',this[_0x598aa5(0x138)]=_0x299a0b[_0x598aa5(0x138)]||'',this[_0x598aa5(0x133)]=_0x299a0b[_0x598aa5(0x133)]||'',this['serverUrl']=_0x299a0b[_0x598aa5(0x134)]||'',this['code']=_0x299a0b[_0x598aa5(0x13d)]||'',this['refreshToken']=_0x299a0b[_0x598aa5(0x13c)]||'',this[_0x598aa5(0x13b)]=_0x299a0b['Configurations']||{};}module[a1254_0x7cabe6(0x13a)]=ZohoAccount; \ No newline at end of file +var a1254_0x3e72=['host','clientSecret','description','exports','refreshToken','zone','serverUrl','Configurations','code','clientId','name'];(function(_0x1b61f4,_0x1bd2d9){var _0x3e7223=function(_0x34aa91){while(--_0x34aa91){_0x1b61f4['push'](_0x1b61f4['shift']());}};_0x3e7223(++_0x1bd2d9);}(a1254_0x3e72,0x73));var a1254_0x34aa=function(_0x1b61f4,_0x1bd2d9){_0x1b61f4=_0x1b61f4-0x79;var _0x3e7223=a1254_0x3e72[_0x1b61f4];return _0x3e7223;};var a1254_0x3c81b9=a1254_0x34aa;'use strict';function ZohoAccount(_0x283bc5){var _0x2a5ab0=a1254_0x34aa;this['id']=_0x283bc5['id']||0x0,this['name']=_0x283bc5[_0x2a5ab0(0x7e)]||'',this[_0x2a5ab0(0x81)]=_0x283bc5['description']||'',this[_0x2a5ab0(0x7f)]=_0x283bc5[_0x2a5ab0(0x7f)]||'',this[_0x2a5ab0(0x79)]=_0x283bc5[_0x2a5ab0(0x79)]||'',this['clientId']=_0x283bc5[_0x2a5ab0(0x7d)]||'',this[_0x2a5ab0(0x80)]=_0x283bc5[_0x2a5ab0(0x80)]||'',this[_0x2a5ab0(0x7a)]=_0x283bc5[_0x2a5ab0(0x7a)]||'',this[_0x2a5ab0(0x7c)]=_0x283bc5[_0x2a5ab0(0x7c)]||'',this[_0x2a5ab0(0x83)]=_0x283bc5[_0x2a5ab0(0x83)]||'',this[_0x2a5ab0(0x7b)]=_0x283bc5[_0x2a5ab0(0x7b)]||{};}module[a1254_0x3c81b9(0x82)]=ZohoAccount; \ No newline at end of file diff --git a/server/services/ami/preview/action.js b/server/services/ami/preview/action.js index 92e099c..db87ff7 100644 --- a/server/services/ami/preview/action.js +++ b/server/services/ami/preview/action.js @@ -1 +1 @@ -const a1255_0x23a0=['callbackat','VoiceQueueId','type','active','membername','UserId','countmachineretry','ListId','campaigntype','callback','countagentrejectretry','callbackuniqueid','countbusyretry','firstName','phone','Contact','channelAgent','lodash','scheduledat','originatecalleridnum','format','calleridnum','\x22%s\x22\x20<%s>','isNil','recallme','calleridname','queue','countnoanswerretry','uniqueid','ContactId','originatecalleridname','SIP/%s','prototype','countcongestionretry','exports','countnosuchnumberretry','string','Agent','util','name','countdropretry','countabandonedretry'];(function(_0x1c39b2,_0x49eb32){const _0x23a0d5=function(_0x424f7a){while(--_0x424f7a){_0x1c39b2['push'](_0x1c39b2['shift']());}};_0x23a0d5(++_0x49eb32);}(a1255_0x23a0,0x109));const a1255_0x424f=function(_0x1c39b2,_0x49eb32){_0x1c39b2=_0x1c39b2-0xef;let _0x23a0d5=a1255_0x23a0[_0x1c39b2];return _0x23a0d5;};const a1255_0x5c2d69=a1255_0x424f;'use strict';const util=require(a1255_0x5c2d69(0x108)),_=require(a1255_0x5c2d69(0xf3));function checkNameSurname(_0x13d74b,_0x859a9d,_0x117926){const _0x103aa2=a1255_0x5c2d69;let _0x382632='';!_[_0x103aa2(0xf9)](_0x859a9d)&&'string'===typeof _0x859a9d&&(_0x382632+=_0x859a9d);!_[_0x103aa2(0xf9)](_0x117926)&&_0x103aa2(0x106)===typeof _0x117926&&(_0x382632+='\x20'+_0x117926);if(_0x382632!=='')return _0x382632;return _0x13d74b;}function Action(_0xc53b7b,_0x1eb2e3,_0x556d9a,_0x5ebc6c){const _0x3ee27d=a1255_0x5c2d69;this[_0x3ee27d(0xfe)]=_0x556d9a||undefined,this['idContact']=_0xc53b7b['id'],this[_0x3ee27d(0xfc)]=_0x1eb2e3[_0x3ee27d(0x109)],this[_0x3ee27d(0x10e)]=_0x1eb2e3[_0x3ee27d(0x10e)],this[_0x3ee27d(0x114)]=_0x3ee27d(0xfc),this['dialAnswer']=![],this[_0x3ee27d(0x110)]=_[_0x3ee27d(0xf9)](_0xc53b7b[_0x3ee27d(0x107)])?undefined:_0xc53b7b[_0x3ee27d(0x107)][_0x3ee27d(0x109)],this[_0x3ee27d(0xf2)]=this['membername']?util[_0x3ee27d(0xf6)](_0x3ee27d(0x101),this[_0x3ee27d(0x110)]):_0x5ebc6c||undefined,this['calleridname']=checkNameSurname(_0xc53b7b[_0x3ee27d(0xf1)]['phone'],_0xc53b7b[_0x3ee27d(0xf1)][_0x3ee27d(0xef)],_0xc53b7b['Contact']['lastName']),this['active']=_0xc53b7b[_0x3ee27d(0x10f)]||![],this[_0x3ee27d(0xf7)]=_0xc53b7b[_0x3ee27d(0xf1)][_0x3ee27d(0xf0)],this[_0x3ee27d(0xf4)]=_0xc53b7b[_0x3ee27d(0xf4)],this[_0x3ee27d(0x118)]=_0xc53b7b[_0x3ee27d(0x118)]||0x0,this['countcongestionretry']=_0xc53b7b['countcongestionretry']||0x0,this[_0x3ee27d(0xfd)]=_0xc53b7b[_0x3ee27d(0xfd)]||0x0,this['countglobal']=(_0xc53b7b['countbusyretry']||0x0)+(_0xc53b7b[_0x3ee27d(0x103)]||0x0)+(_0xc53b7b[_0x3ee27d(0xfd)]||0x0)+(_0xc53b7b[_0x3ee27d(0x105)]||0x0)+(_0xc53b7b[_0x3ee27d(0x10a)]||0x0)+(_0xc53b7b[_0x3ee27d(0x10b)]||0x0)+(_0xc53b7b[_0x3ee27d(0x112)]||0x0)+(_0xc53b7b['countagentrejectretry']||0x0),this[_0x3ee27d(0x105)]=_0xc53b7b['countnosuchnumberretry']||0x0,this['countdropretry']=_0xc53b7b[_0x3ee27d(0x10a)]||0x0,this[_0x3ee27d(0x10b)]=_0xc53b7b[_0x3ee27d(0x10b)]||0x0,this[_0x3ee27d(0x112)]=_0xc53b7b[_0x3ee27d(0x112)]||0x0,this[_0x3ee27d(0x116)]=_0xc53b7b[_0x3ee27d(0x116)]||0x0,this[_0x3ee27d(0x115)]=_0xc53b7b[_0x3ee27d(0x115)],this[_0x3ee27d(0x117)]=_0xc53b7b['callbackuniqueid'],this[_0x3ee27d(0x10c)]=_0xc53b7b['callbackat'],this[_0x3ee27d(0xfa)]=_0xc53b7b[_0x3ee27d(0xfa)],this[_0x3ee27d(0xff)]=_0xc53b7b['ContactId'],this[_0x3ee27d(0x113)]=_0xc53b7b[_0x3ee27d(0x113)],this[_0x3ee27d(0x111)]=_[_0x3ee27d(0xf9)](_0xc53b7b['Agent'])?_0xc53b7b[_0x3ee27d(0x111)]:_0xc53b7b[_0x3ee27d(0x107)]['id'],this[_0x3ee27d(0x10d)]=_0xc53b7b[_0x3ee27d(0x10d)],this[_0x3ee27d(0xf5)]='',this[_0x3ee27d(0x100)]='';}Action[a1255_0x5c2d69(0x102)]['getCaller']=function(){const _0x2f125b=a1255_0x5c2d69;return util[_0x2f125b(0xf6)](_0x2f125b(0xf8),this[_0x2f125b(0xfb)],this['number']);},module[a1255_0x5c2d69(0x104)]=Action; \ No newline at end of file +const a1255_0x10d0=['string','countagentrejectretry','\x22%s\x22\x20<%s>','dialAnswer','getCaller','UserId','callbackat','uniqueid','isNil','type','ContactId','callbackuniqueid','recallme','countabandonedretry','active','SIP/%s','VoiceQueueId','channelAgent','countcongestionretry','lodash','countnoanswerretry','Agent','countmachineretry','countdropretry','idContact','ListId','number','countglobal','format','scheduledat','membername','countbusyretry','Contact','countnosuchnumberretry','originatecalleridname','exports','calleridname'];(function(_0x515d0e,_0x58cef3){const _0x10d030=function(_0x546f81){while(--_0x546f81){_0x515d0e['push'](_0x515d0e['shift']());}};_0x10d030(++_0x58cef3);}(a1255_0x10d0,0x1b5));const a1255_0x546f=function(_0x515d0e,_0x58cef3){_0x515d0e=_0x515d0e-0xde;let _0x10d030=a1255_0x10d0[_0x515d0e];return _0x10d030;};const a1255_0x4c41b1=a1255_0x546f;'use strict';const util=require('util'),_=require(a1255_0x4c41b1(0xf8));function checkNameSurname(_0x2ec0a0,_0x5239da,_0x1de2b8){const _0x421785=a1255_0x4c41b1;let _0x18020d='';!_[_0x421785(0xed)](_0x5239da)&&_0x421785(0xe5)===typeof _0x5239da&&(_0x18020d+=_0x5239da);!_['isNil'](_0x1de2b8)&&_0x421785(0xe5)===typeof _0x1de2b8&&(_0x18020d+='\x20'+_0x1de2b8);if(_0x18020d!=='')return _0x18020d;return _0x2ec0a0;}function Action(_0x5f42a5,_0x159fd7,_0xd4572,_0x2460df){const _0x5604b2=a1255_0x4c41b1;this[_0x5604b2(0xec)]=_0xd4572||undefined,this[_0x5604b2(0xfd)]=_0x5f42a5['id'],this['queue']=_0x159fd7['name'],this['type']=_0x159fd7[_0x5604b2(0xee)],this['campaigntype']='queue',this[_0x5604b2(0xe8)]=![],this['membername']=_[_0x5604b2(0xed)](_0x5f42a5[_0x5604b2(0xfa)])?undefined:_0x5f42a5[_0x5604b2(0xfa)]['name'],this[_0x5604b2(0xf6)]=this[_0x5604b2(0xde)]?util[_0x5604b2(0x101)](_0x5604b2(0xf4),this[_0x5604b2(0xde)]):_0x2460df||undefined,this[_0x5604b2(0xe4)]=checkNameSurname(_0x5f42a5['Contact']['phone'],_0x5f42a5['Contact']['firstName'],_0x5f42a5['Contact']['lastName']),this[_0x5604b2(0xf3)]=_0x5f42a5['active']||![],this['calleridnum']=_0x5f42a5[_0x5604b2(0xe0)]['phone'],this[_0x5604b2(0x102)]=_0x5f42a5[_0x5604b2(0x102)],this['countbusyretry']=_0x5f42a5[_0x5604b2(0xdf)]||0x0,this[_0x5604b2(0xf7)]=_0x5f42a5[_0x5604b2(0xf7)]||0x0,this['countnoanswerretry']=_0x5f42a5[_0x5604b2(0xf9)]||0x0,this[_0x5604b2(0x100)]=(_0x5f42a5[_0x5604b2(0xdf)]||0x0)+(_0x5f42a5[_0x5604b2(0xf7)]||0x0)+(_0x5f42a5[_0x5604b2(0xf9)]||0x0)+(_0x5f42a5[_0x5604b2(0xe1)]||0x0)+(_0x5f42a5['countdropretry']||0x0)+(_0x5f42a5['countabandonedretry']||0x0)+(_0x5f42a5[_0x5604b2(0xfb)]||0x0)+(_0x5f42a5[_0x5604b2(0xe6)]||0x0),this[_0x5604b2(0xe1)]=_0x5f42a5[_0x5604b2(0xe1)]||0x0,this['countdropretry']=_0x5f42a5[_0x5604b2(0xfc)]||0x0,this[_0x5604b2(0xf2)]=_0x5f42a5['countabandonedretry']||0x0,this[_0x5604b2(0xfb)]=_0x5f42a5[_0x5604b2(0xfb)]||0x0,this['countagentrejectretry']=_0x5f42a5[_0x5604b2(0xe6)]||0x0,this['callback']=_0x5f42a5['callback'],this['callbackuniqueid']=_0x5f42a5[_0x5604b2(0xf0)],this[_0x5604b2(0xeb)]=_0x5f42a5[_0x5604b2(0xeb)],this[_0x5604b2(0xf1)]=_0x5f42a5[_0x5604b2(0xf1)],this['ContactId']=_0x5f42a5[_0x5604b2(0xef)],this[_0x5604b2(0xfe)]=_0x5f42a5['ListId'],this['UserId']=_[_0x5604b2(0xed)](_0x5f42a5[_0x5604b2(0xfa)])?_0x5f42a5[_0x5604b2(0xea)]:_0x5f42a5[_0x5604b2(0xfa)]['id'],this[_0x5604b2(0xf5)]=_0x5f42a5[_0x5604b2(0xf5)],this['originatecalleridnum']='',this[_0x5604b2(0xe2)]='';}Action['prototype'][a1255_0x4c41b1(0xe9)]=function(){const _0x513af1=a1255_0x4c41b1;return util['format'](_0x513af1(0xe7),this['calleridname'],this[_0x513af1(0xff)]);},module[a1255_0x4c41b1(0xe3)]=Action; \ No newline at end of file diff --git a/server/services/ami/preview/index.js b/server/services/ami/preview/index.js index ace2b9f..9ce2ebc 100644 --- a/server/services/ami/preview/index.js +++ b/server/services/ami/preview/index.js @@ -1 +1 @@ -const a1256_0x1704=['originatecalleridnum','./rpcDb','idContact','[syncHangup][talking][increment]','voicePause','[CampaignPreview]\x20Campaign\x20Queue:\x20','scheduledAt','dialstatus','outboundOriginateFailureCallsDay','extractCalleridNumber','predictiveIntervalDroppedCallsCallersExit','outboundAbandonedCallsDay','dialBusyMaxRetry','talktime','util','addVariable','checkInBlack','sumDuration','tail','dialNoSuchNumberMaxRetry','[Preview][validateContact][Trunk\x20not\x20work]','channel','predictiveIntervalErlangCalls','recallMe','variables','[callProgressDetectingAgent][logNoAnswer]','[callProgressDetectingCustomer]','Contact\x20in\x20black\x20List','linkedid','execCall','[default]','validateContact','isNil','addVariables','abandoned','uniqueid','[callProgressDetectingCustomer][logNoAnswerGlobal]','[callProgressDetectingAgent][logNoSuch]','[RecallMe]','originateresponse','[callProgressDetectingCustomer][logNoSuch]','custom:agentbusy','NoSuchNumber','predictiveIntervalHitRate','ACTIVE','run','logBlacklist','enqueue','[16]','predictiveIntervalAvailable','countabandonedretry','VoiceQueueId','[Preview][checkIsBlackList]','outboundReCallsDay','campaignsPreview','transfererlinkedid','[callProgressDetectingCustomer][logNoAnswer]','actionPreview','destuniqueid','dialBusyRetryFrequency','rejected','syncDialEnd','custom:agentcongestion','[Dialer][checkChannel][pTalking][Preview]','[callProgressDetectingCustomer][logAnswerGlobal]','campaign\x20Name:\x20','available','phone','cloneAction','object','countagentrejectretry','then','bind','busy','UserId','dialCutDigit','md5','predictiveIntervalAvgTalktime','[HistoryRecallClose]','[clearZombieChannels][talking]','\x20Not\x20Active','erlangAbandonmentRate','sendMessageOneNotActive','[Blacklist][error]','[syncVarSet][Preview]','\x20Queue','variablesAction','SIP/%s','voice_queue:save','cause','dialRecallMeTimeout','undefined','YYYY-MM-DD\x20HH:mm:ss','\x20Trunk\x20Backup\x20is\x20not\x20active','\x20IdHopper:\x20','unlock','outboundDropCallsDayACS','syncHangupRequest','dialQueueProject','predictiveIntervalAvgHoldtime','actions','reachable','active','dialAbandonedRetryFrequency','getContactPreview','\x20Trunk\x20is\x20not\x20active','logAgent','catch','size','../ami','starttime','dialPrefix','custom:agentnoanswer','complete','Global','Congestion','[syncHangupRequest][logAgentReject]','message','CANCEL','Is\x20Valid','dialOriginateTimeout','unmanaged','[callProgressDetectingCustomer][logAnswer]','dialOriginateCallerIdNumber','originatecalleridname','getCallerIdRandom','outboundBusyCallsDay','setMessage','totalGlobal','CONGESTION','callerid','clearZombieChannel','value','outbound','countcongestionretry','nosuchnumber','length','Empty\x20Contact','acw','crateCustomerReportQueue','logLookAgent','trim','syncCampaigns','varset','getCallerId','outboundBlacklistCallsDay','AGENTS_NOT_LOGGED','[Preview][validateContact][Empty\x20Campaign]','createAgentHistory','predictiveIntervalDroppedCallsTimeout','uuid','loggedInDb','Call\x20unsuccessful','erlangCallToSecond','[Dialer][checkChannel][Preview]','loopCampaigns','outboundUnknownCallsDay','[DEBUG]\x20Emit\x20voice_queue_channel:remove\x20event','merge','dialNoAnswerRetryFrequency','[callProgressDetectingCustomer][logBusyGlobal]','congestion','Call\x20failed','[callProgressDetectingCustomer][logUnknown]','unlockAgent','rescheduleContactInQueue','logger2','Answer','[callProgressDetectingAgent]','originated','outboundNoAnswerCallsDay','outboundAnswerCallsDay','substring','activeContact','response','stringify','paused','outboundCongestionCallsDay','updateOriginated','[getContactRecallMe]','predictiveIntervalMultiplicativeFactor','pTalking','[callProgressDetectingCustomer][logCongestionGlobal]','syncVarSet','TrunkBackup','execRun','lookAgent','voiceQueues','agentReadyId','predictiveIntervalTotalCalls','hanguprequest','total','variable','Trunk','destlinkedid','responsetime','getDiff','syncBlindTransfer','decrementTalkink','dialNoSuchNumberRetryFrequency','dialAgentRejectMaxRetry','outboundDropCallsDayCallersExit','createCustomerHistory','prototype','[originateFailure][logOriginateFailure]','ANSWER','loggedIn','loggerError','attendedtransfer','buildObj','toLowerVariables','strategy','syncOriginateResponse','countnosuchnumberretry','disableContact','transfer','IsNotLoggedIn','[callProgressDetectingCustomer][logUnknownGlobal]','Interval','No\x20such\x20channel','createHistory','pick','startProgressive','waiting','dialAnswer','Action','lodash','IS_DISACTIVED','outboundAnswerAgiCallsDay','AgentReject','syncNewExten','[Preview][validateContact][Empty\x20Contact]','createBody','exports','preview','custom:agentringnoanswer','OriginateError','[callProgressDetectingCustomer][logBusy]','noanswer','clone','startPredictive','isUndefined','[syncHangup][talking]','RecallInQueue','logger','hangup','countglobal','cause-txt','predictiveIntervalAnsweredCalls','syncAttendedTransfer','dialCongestionMaxRetry','type','Contact','Empty\x20Campaign','info','Queue','Calling','ListId','voice:queue:%s','contactId','emit','dialMethod','NOT_ACTIVE','[originated][increment]','scheduledat','talking','[action]','countnoanswerretry','answered','callProgressDetectingCustomer','checkIsBlackList','isTrunkReachable','connect','[callProgressDetectingAgent][logBusy]','clearZombieChannels','trunks','Contact.phone','originated:\x20','countbusyretry','SIP/%s/%s%s','\x20is\x20disactive','[callProgressDetectingCustomer][logCongestion]','dialRandomLastDigitCallerIdNumber','../../../config/logger','[clearZombieChannel]','[Preview][validateContact][Campaign\x20Active]','unlockContact','NOANSWER','sumBillable','transfertargetlinkedid','createCustomerFinal','called','filterKey','Abandoned','moment','dialOriginateCallerIdName','BUSY','agents','newexten','status','./action','pTalking:\x20','[syncHangup][talking][cause]','finally','custom:agentConnectPreview','outboundDropCallsDayTimeout','[Preview][execCall][failure]','getContactRecallMe','ABANDONED','[callProgressDetectingAgent][logAnswer]','reason','name','dialActive','logCustomer','dialGlobalMaxRetry','Busy','syncHangup','outboundNoSuchCallsDay','error','custom:agentconnect','channelstate','format','[syncHangup][talking][decrement]','rescheduleContact','queue','recallme','Agent','outboundRejectCallsDay','isActive','clockClearZombieChannels','callProgressDetectingAgent','[callProgressDetectingAgent][logCongestion]','[callProgressDetectingCustomer][logNoSuchGlobal]','keys','sumHoldTime','NoAnswer','booked','isEmpty','countabandonedetry'];(function(_0x2ef0d5,_0x3b3700){const _0x1704ff=function(_0x5954c6){while(--_0x5954c6){_0x2ef0d5['push'](_0x2ef0d5['shift']());}};_0x1704ff(++_0x3b3700);}(a1256_0x1704,0x1c6));const a1256_0x5954=function(_0x2ef0d5,_0x3b3700){_0x2ef0d5=_0x2ef0d5-0x1eb;let _0x1704ff=a1256_0x1704[_0x2ef0d5];return _0x1704ff;};const a1256_0x27027a=a1256_0x5954;'use strict';const util=require(a1256_0x27027a(0x2d9)),_=require(a1256_0x27027a(0x25a)),uuid=require(a1256_0x27027a(0x20e)),moment=require(a1256_0x27027a(0x29e)),md5=require(a1256_0x27027a(0x317)),logger=require(a1256_0x27027a(0x293))(a1256_0x27027a(0x262)),loggerAction=require('../../../config/logger')(a1256_0x27027a(0x304)),ami=require(a1256_0x27027a(0x338)),rpcDb=require(a1256_0x27027a(0x2cc)),Action=require(a1256_0x27027a(0x2a4)),ut=require('./util/util'),{getSocket}=require('../../../rediscache'),io=getSocket(),Sequence=function(){};Sequence[a1256_0x27027a(0x243)][a1256_0x27027a(0x2fa)]=function(_0x7e825f){const _0x2c3be7=a1256_0x27027a;this[_0x2c3be7(0x2dd)]=this['tail']?this[_0x2c3be7(0x2dd)][_0x2c3be7(0x2a7)](_0x7e825f):_0x7e825f();};function Preview(_0x191b7f){const _0x559f42=a1256_0x27027a;this['sequence']=new Sequence(),this['campaignsPreview']=_0x191b7f[_0x559f42(0x233)],this[_0x559f42(0x28b)]=_0x191b7f['trunks'],this[_0x559f42(0x32f)]={},this[_0x559f42(0x2a1)]=_0x191b7f[_0x559f42(0x2a1)],this[_0x559f42(0x2c1)]=0x0,ami['on'](_0x559f42(0x2f2),this[_0x559f42(0x24c)][_0x559f42(0x313)](this)),ami['on'](_0x559f42(0x26d),this['syncHangup']['bind'](this)),ami['on'](_0x559f42(0x236),this[_0x559f42(0x32c)][_0x559f42(0x313)](this)),ami['on']('dialend',this[_0x559f42(0x308)][_0x559f42(0x313)](this)),ami['on'](_0x559f42(0x2a2),this['syncNewExten']['bind'](this)),ami['on'](_0x559f42(0x207),this[_0x559f42(0x22f)][_0x559f42(0x313)](this)),ami['on'](_0x559f42(0x248),this['syncAttendedTransfer'][_0x559f42(0x313)](this)),ami['on']('blindtransfer',this[_0x559f42(0x23d)][_0x559f42(0x313)](this)),this[_0x559f42(0x213)](this['campaignsPreview']);}function emit(_0xea4e93,_0x16db45,_0x508d80){const _0x2cfef1=a1256_0x27027a;io['to'](_0xea4e93)[_0x2cfef1(0x27c)](_0x16db45,_0x508d80);}function emitCampaignPreview(_0x41cbab){const _0x1bbcb1=a1256_0x27027a;if(_0x41cbab[_0x1bbcb1(0x273)]===_0x1bbcb1(0x1fd)){const _0x47f87d={'id':_0x41cbab['id'],'name':_0x41cbab[_0x1bbcb1(0x2af)],'strategy':_0x41cbab[_0x1bbcb1(0x24b)],'answered':_0x41cbab[_0x1bbcb1(0x284)],'available':_0x41cbab[_0x1bbcb1(0x30d)],'loggedIn':_0x41cbab['loggedIn'],'pTalking':_0x41cbab[_0x1bbcb1(0x22d)],'sumBillable':_0x41cbab[_0x1bbcb1(0x298)],'sumDuration':_0x41cbab[_0x1bbcb1(0x2dc)],'sumHoldTime':_0x41cbab[_0x1bbcb1(0x2c6)]||0x0,'talking':_0x41cbab[_0x1bbcb1(0x281)],'total':_0x41cbab[_0x1bbcb1(0x237)],'type':_0x41cbab[_0x1bbcb1(0x273)],'unmanaged':_0x41cbab[_0x1bbcb1(0x1f1)],'abandoned':_0x41cbab[_0x1bbcb1(0x2ed)],'waiting':_0x41cbab[_0x1bbcb1(0x257)],'loggedInDb':_0x41cbab[_0x1bbcb1(0x20f)],'dialActive':_0x41cbab[_0x1bbcb1(0x2b0)],'dialMethod':_0x41cbab[_0x1bbcb1(0x27d)],'dialOriginateCallerIdName':_0x41cbab[_0x1bbcb1(0x29f)],'dialOriginateCallerIdNumber':_0x41cbab['dialOriginateCallerIdNumber'],'dialOriginateTimeout':_0x41cbab[_0x1bbcb1(0x1f0)],'dialPrefix':_0x41cbab['dialPrefix'],'outboundAnswerAgiCallsDay':_0x41cbab[_0x1bbcb1(0x25c)],'outboundAnswerCallsDay':_0x41cbab['outboundAnswerCallsDay'],'outboundBlacklistCallsDay':_0x41cbab['outboundBlacklistCallsDay'],'outboundBusyCallsDay':_0x41cbab[_0x1bbcb1(0x1f6)],'outboundCongestionCallsDay':_0x41cbab['outboundCongestionCallsDay'],'outboundDropCallsDayACS':_0x41cbab[_0x1bbcb1(0x32b)],'outboundDropCallsDayCallersExit':_0x41cbab[_0x1bbcb1(0x241)],'outboundDropCallsDayTimeout':_0x41cbab[_0x1bbcb1(0x2a9)],'outboundNoAnswerCallsDay':_0x41cbab[_0x1bbcb1(0x222)],'outboundNoSuchCallsDay':_0x41cbab[_0x1bbcb1(0x2b5)],'outboundOriginateFailureCallsDay':_0x41cbab[_0x1bbcb1(0x2d3)],'outboundReCallsDay':_0x41cbab[_0x1bbcb1(0x300)],'outboundRejectCallsDay':_0x41cbab['outboundRejectCallsDay'],'outboundUnknownCallsDay':_0x41cbab['outboundUnknownCallsDay'],'outboundAbandonedCallsDay':_0x41cbab['outboundAbandonedCallsDay'],'predictiveIntervalAnsweredCalls':_0x41cbab[_0x1bbcb1(0x270)],'predictiveIntervalAvgHoldtime':_0x41cbab[_0x1bbcb1(0x32e)],'predictiveIntervalAvgTalktime':_0x41cbab[_0x1bbcb1(0x318)],'predictiveIntervalDroppedCallsCallersExit':_0x41cbab[_0x1bbcb1(0x2d5)],'predictiveIntervalDroppedCallsTimeout':_0x41cbab[_0x1bbcb1(0x20d)],'predictiveIntervalErlangCalls':_0x41cbab[_0x1bbcb1(0x2e1)],'predictiveIntervalErlangCallsDroppedCalls':_0x41cbab['predictiveIntervalErlangCallsDroppedCalls'],'predictiveIntervalHitRate':_0x41cbab[_0x1bbcb1(0x2f6)],'predictiveIntervalMultiplicativeFactor':_0x41cbab[_0x1bbcb1(0x22c)],'predictiveIntervalPauses':_0x41cbab['predictiveIntervalPauses'],'predictiveIntervalAvailable':_0x41cbab[_0x1bbcb1(0x2fc)],'predictiveIntervalTotalCalls':_0x41cbab[_0x1bbcb1(0x235)],'message':_0x41cbab[_0x1bbcb1(0x1ed)],'originated':_0x41cbab[_0x1bbcb1(0x221)],'erlangCalls':_0x41cbab['erlangCalls'],'erlangCallToSecond':_0x41cbab[_0x1bbcb1(0x211)],'erlangAbandonmentRate':_0x41cbab[_0x1bbcb1(0x31c)],'erlangBusyFactor':_0x41cbab['erlangBusyFactor'],'startPredictive':_0x41cbab[_0x1bbcb1(0x268)],'startProgressive':_0x41cbab[_0x1bbcb1(0x256)]};_0x41cbab[_0x1bbcb1(0x239)]&&(_0x47f87d[_0x1bbcb1(0x239)]={'id':_0x41cbab[_0x1bbcb1(0x239)]['id'],'name':_0x41cbab['Trunk']['name'],'active':_0x41cbab['Trunk']['active'],'callerid':_0x41cbab[_0x1bbcb1(0x239)][_0x1bbcb1(0x1fa)]});_0x41cbab[_0x1bbcb1(0x252)]&&(_0x47f87d[_0x1bbcb1(0x252)]={'id':_0x41cbab[_0x1bbcb1(0x252)]['id'],'name':_0x41cbab[_0x1bbcb1(0x252)]['name']});const _0x73e1aa=md5(JSON[_0x1bbcb1(0x227)](_0x47f87d));_0x41cbab[_0x1bbcb1(0x317)]!==_0x73e1aa&&(_0x41cbab['md5']=_0x73e1aa,emit(util[_0x1bbcb1(0x2b9)](_0x1bbcb1(0x27a),_0x47f87d[_0x1bbcb1(0x2af)]),_0x1bbcb1(0x323),_0x47f87d));}}function emitVoiceQueueChannelRemove(_0x25943f){const _0x57c17e=a1256_0x27027a;logger['info'](_0x57c17e(0x215),JSON[_0x57c17e(0x227)](_0x25943f)),emit(util[_0x57c17e(0x2b9)](_0x57c17e(0x27a),_0x25943f['name']),'voice_queue_channel:remove',_0x25943f);}function notSendMessagesQueue(_0x26b8e8){const _0x2604ab=a1256_0x27027a;_0x26b8e8[_0x2604ab(0x31d)]&&(_0x26b8e8[_0x2604ab(0x221)]===0x0&&_0x26b8e8[_0x2604ab(0x22d)]===0x0?(_0x26b8e8[_0x2604ab(0x31d)]=![],_0x26b8e8[_0x2604ab(0x30d)]=0x0,_0x26b8e8[_0x2604ab(0x228)]=0x0,_0x26b8e8[_0x2604ab(0x1ed)]=_0x2604ab(0x27e),ut[_0x2604ab(0x26c)](_0x2604ab(0x2d0),_0x26b8e8['name']+'\x20is\x20not\x20active')):(_0x26b8e8[_0x2604ab(0x1ed)]=_0x2604ab(0x25b),ut[_0x2604ab(0x26c)]('[CampaignPreview]\x20Campaign\x20Queue:\x20',_0x26b8e8[_0x2604ab(0x2af)]+_0x2604ab(0x290))),emitCampaignPreview(_0x26b8e8));}Preview[a1256_0x27027a(0x243)][a1256_0x27027a(0x213)]=function(){const _0x43af34=this;setInterval(function(){const _0x3230ae=a1256_0x5954;_0x43af34[_0x3230ae(0x206)]();},0x7cf);},Preview[a1256_0x27027a(0x243)]['syncCampaigns']=function(){const _0x5368dd=a1256_0x27027a,_0x136c12=this[_0x5368dd(0x301)];this[_0x5368dd(0x2c1)]+=0x1;for(const _0x1a4f82 in _0x136c12){typeof _0x136c12[_0x1a4f82]!==_0x5368dd(0x326)&&(_0x136c12[_0x1a4f82]['dialMethod']===_0x5368dd(0x262)||_0x136c12[_0x1a4f82]['dialMethod']===_0x5368dd(0x2c8))&&_0x136c12[_0x1a4f82]['type']===_0x5368dd(0x1fd)&&(this[_0x5368dd(0x2c1)]>0x7&&(this['clockClearZombieChannels']=0x0,this[_0x5368dd(0x28a)]())),typeof _0x136c12[_0x1a4f82]!==_0x5368dd(0x326)&&_0x136c12[_0x1a4f82][_0x5368dd(0x27d)]==='preview'&&_0x136c12[_0x1a4f82][_0x5368dd(0x273)]===_0x5368dd(0x1fd)&&(_0x136c12[_0x1a4f82][_0x5368dd(0x2b0)]?(this[_0x5368dd(0x1f7)](_0x136c12[_0x1a4f82]),this['recallMe'](_0x136c12[_0x1a4f82])):notSendMessagesQueue(_0x136c12[_0x1a4f82]));}},Preview[a1256_0x27027a(0x243)][a1256_0x27027a(0x1fb)]=function(_0x41f19f){const _0x3a7b90=this;this['sequence']['enqueue'](function(){const _0x5870a3=a1256_0x5954;if(!_[_0x5870a3(0x2eb)](_0x3a7b90['actions'][_0x41f19f]))return loggerAction[_0x5870a3(0x276)](_0x5870a3(0x31a),_0x41f19f,_0x5870a3(0x277),_0x3a7b90['actions'][_0x41f19f][_0x5870a3(0x2bc)],'originated:\x20',JSON[_0x5870a3(0x227)](_0x3a7b90[_0x5870a3(0x301)][_0x3a7b90[_0x5870a3(0x32f)][_0x41f19f][_0x5870a3(0x2bc)]][_0x5870a3(0x221)]),'pTalking:\x20',JSON[_0x5870a3(0x227)](_0x3a7b90[_0x5870a3(0x301)][_0x3a7b90[_0x5870a3(0x32f)][_0x41f19f][_0x5870a3(0x2bc)]]['pTalking']),JSON[_0x5870a3(0x227)](_0x3a7b90[_0x5870a3(0x32f)][_0x41f19f]['dialAnswer']),JSON[_0x5870a3(0x227)](_[_0x5870a3(0x255)](_0x3a7b90[_0x5870a3(0x32f)][_0x41f19f],[_0x5870a3(0x27b),_0x5870a3(0x315),_0x5870a3(0x2fe),_0x5870a3(0x279)]))),ami[_0x5870a3(0x259)]({'action':_0x5870a3(0x2a3),'channel':_0x3a7b90[_0x5870a3(0x32f)][_0x41f19f][_0x5870a3(0x2e0)]})['catch'](function(_0x495cc6){const _0x5aecf1=_0x5870a3;_0x495cc6['message']===_0x5aecf1(0x253)&&setTimeout(function(){const _0x3c0dfc=_0x5aecf1;_0x3a7b90[_0x3c0dfc(0x32f)][_0x41f19f]&&(ut['updateOriginated'](_0x3a7b90[_0x3c0dfc(0x301)][_0x3a7b90[_0x3c0dfc(0x32f)][_0x41f19f]['queue']],_0x3c0dfc(0x294)),_0x3a7b90[_0x3c0dfc(0x32f)][_0x41f19f][_0x3c0dfc(0x258)]===!![]&&(ut[_0x3c0dfc(0x23e)](_0x3a7b90[_0x3c0dfc(0x301)][_0x3a7b90[_0x3c0dfc(0x32f)][_0x41f19f][_0x3c0dfc(0x2bc)]],_0x3c0dfc(0x294)),ut[_0x3c0dfc(0x247)](_0x3c0dfc(0x30a)+_0x41f19f,_0x3a7b90[_0x3c0dfc(0x32f)][_0x41f19f]['queue'])),ut[_0x3c0dfc(0x247)](_0x3c0dfc(0x212)+_0x41f19f,_0x3a7b90[_0x3c0dfc(0x32f)][_0x41f19f][_0x3c0dfc(0x2bc)]),delete _0x3a7b90['actions'][_0x41f19f]);},0x2328);});});},Preview[a1256_0x27027a(0x243)][a1256_0x27027a(0x28a)]=function(){const _0x4d9a99=a1256_0x27027a,_0x32f261=this;loggerAction['info'](_0x4d9a99(0x282),_[_0x4d9a99(0x337)](this['actions']));for(const _0x59cb4b in this[_0x4d9a99(0x32f)]){typeof _0x32f261[_0x4d9a99(0x32f)][_0x59cb4b]!=='undefined'&&_0x32f261['clearZombieChannel'](_0x59cb4b);}},Preview[a1256_0x27027a(0x243)][a1256_0x27027a(0x2e2)]=function(_0x557ef1){const _0x3b13e3=a1256_0x27027a,_0x527f73=this;rpcDb[_0x3b13e3(0x2ab)](_0x557ef1['id'],ut[_0x3b13e3(0x234)](this[_0x3b13e3(0x2a1)]))[_0x3b13e3(0x312)](function(_0x2a86a4){const _0x2ea7d3=_0x3b13e3;if(!_[_0x2ea7d3(0x2eb)](_0x2a86a4))for(let _0x435b43=0x0;_0x435b43<_0x2a86a4[_0x2ea7d3(0x200)];_0x435b43+=0x1){if(ut[_0x2ea7d3(0x23c)](_0x2a86a4[_0x435b43][_0x2ea7d3(0x280)])<_0x557ef1[_0x2ea7d3(0x325)]*0x3c)_0x2a86a4[_0x435b43][_0x2ea7d3(0x2be)]&&!_0x2a86a4[_0x435b43][_0x2ea7d3(0x2be)][_0x2ea7d3(0x2cf)]?_0x527f73[_0x2ea7d3(0x2f8)](_0x2a86a4[_0x435b43]['id'])[_0x2ea7d3(0x312)](ut['logger2']('[RecallMe]'))[_0x2ea7d3(0x336)](ut[_0x2ea7d3(0x21e)](_0x2ea7d3(0x2f1))):rpcDb[_0x2ea7d3(0x24e)](_0x2a86a4[_0x435b43]['id']);else{const _0x5e24ae=new Action(_0x2a86a4[_0x435b43],_0x557ef1);_0x5e24ae[_0x2ea7d3(0x339)]=moment()[_0x2ea7d3(0x2b9)](_0x2ea7d3(0x327)),_0x557ef1[_0x2ea7d3(0x300)]+=0x1,ut[_0x2ea7d3(0x2b1)](_0x5e24ae,0x17,_0x2ea7d3(0x26b)),_0x557ef1['dialRecallInQueue']?(rpcDb[_0x2ea7d3(0x21d)](ut[_0x2ea7d3(0x260)](_0x2a86a4[_0x435b43])),rpcDb['createCustomerHistory'](_0x5e24ae,'[HistoryDialRecallInQueue][historyCatch]')):(ut[_0x2ea7d3(0x2b1)](_0x5e24ae,0x16,'RecallFailedTimeout'),rpcDb['createCustomerHistory'](_0x5e24ae,'[HistoryRecallClose]'),rpcDb[_0x2ea7d3(0x29a)](_0x5e24ae,_0x2ea7d3(0x319)));}}})[_0x3b13e3(0x336)](ut[_0x3b13e3(0x21e)](_0x3b13e3(0x22b)));},Preview[a1256_0x27027a(0x243)][a1256_0x27027a(0x1f7)]=function(_0x2d1e94){const _0x32d9f7=a1256_0x27027a;_0x2d1e94[_0x32d9f7(0x31d)]=!![];if(ut[_0x32d9f7(0x250)](_0x2d1e94[_0x32d9f7(0x246)]))_0x2d1e94[_0x32d9f7(0x1ed)]=_0x32d9f7(0x20a);else{if(!ut[_0x32d9f7(0x2c0)](_0x2d1e94[_0x32d9f7(0x2b0)]))_0x2d1e94[_0x32d9f7(0x1ed)]=_0x32d9f7(0x27e);else!this['isTrunkReachable'](_0x2d1e94[_0x32d9f7(0x239)])?!this[_0x32d9f7(0x287)](_0x2d1e94[_0x32d9f7(0x230)])?_0x2d1e94[_0x32d9f7(0x1ed)]='TRUNK_IS_NOT_REACHABLE':_0x2d1e94[_0x32d9f7(0x1ed)]='ACTIVE':_0x2d1e94[_0x32d9f7(0x1ed)]=_0x32d9f7(0x2f7);}emitCampaignPreview(_0x2d1e94);},Preview[a1256_0x27027a(0x243)]['callProgressDetectingCustomer']=function(_0x4af5c5,_0x3c169f,_0xb8bd7d){const _0x1ae54a=a1256_0x27027a,_0x25aed6=this[_0x1ae54a(0x32f)][_0x3c169f],_0x40f0b9=this[_0x1ae54a(0x301)][_0x25aed6[_0x1ae54a(0x2bc)]];let _0x35d81a;if(_0x40f0b9){switch(_0xb8bd7d){case'1':_0x40f0b9[_0x1ae54a(0x2b5)]+=0x1,_0x25aed6[_0x1ae54a(0x24d)]+=0x1,_0x25aed6['countglobal']=ut[_0x1ae54a(0x1f8)](_0x25aed6),ut[_0x1ae54a(0x2b1)](_0x25aed6,0x0,_0x1ae54a(0x2f5)),ami[_0x1ae54a(0x27c)]('custom:agentnosuchnumber',ut['buildObj'](_0x25aed6,_0x1ae54a(0x1ff))),rpcDb[_0x1ae54a(0x242)](_0x25aed6,_0x1ae54a(0x2f3));ut[_0x1ae54a(0x1f8)](_0x25aed6)>=_0x40f0b9[_0x1ae54a(0x2b2)]?(_0x35d81a=ut[_0x1ae54a(0x30f)](_0x25aed6,0xf,_0x1ae54a(0x33d)),rpcDb['createCustomerFinal'](_0x35d81a,_0x1ae54a(0x2c4))):_0x25aed6['countnosuchnumberretry']>=_0x40f0b9[_0x1ae54a(0x2de)]?rpcDb[_0x1ae54a(0x29a)](_0x25aed6,_0x1ae54a(0x2c4)):rpcDb[_0x1ae54a(0x2bb)](ut[_0x1ae54a(0x2d1)](_0x25aed6,_0x1ae54a(0x24d),_0x40f0b9[_0x1ae54a(0x23f)]),_0x25aed6[_0x1ae54a(0x21c)],_0x25aed6[_0x1ae54a(0x225)]);delete this[_0x1ae54a(0x32f)][_0x4af5c5[_0x1ae54a(0x2e7)]];break;case _0x1ae54a(0x245):{const _0x45e1b1=moment()[_0x1ae54a(0x2b9)]('YYYY-MM-DD\x20HH:mm:ss');_0x25aed6['responsetime']=_0x45e1b1,_0x25aed6['answertime']=_0x45e1b1,_0x25aed6[_0x1ae54a(0x258)]=!![],_0x40f0b9[_0x1ae54a(0x22d)]+=0x1,logger[_0x1ae54a(0x276)](_0x1ae54a(0x2ce),_0x25aed6['uniqueid'],_0x1ae54a(0x320),_0x40f0b9['name'],_0x1ae54a(0x2a5),_0x40f0b9[_0x1ae54a(0x22d)]),ami[_0x1ae54a(0x27c)](_0x1ae54a(0x2b7),ut[_0x1ae54a(0x249)](_0x25aed6,_0x1ae54a(0x288),this['campaignsPreview'][_0x25aed6[_0x1ae54a(0x2bc)]])),_0x40f0b9[_0x1ae54a(0x202)]&&ami[_0x1ae54a(0x27c)](_0x1ae54a(0x2a8),ut['buildAcw'](_0x25aed6));}break;case'16':ami[_0x1ae54a(0x27c)]('custom:agentcomplete',ut[_0x1ae54a(0x249)](_0x25aed6,_0x1ae54a(0x33c),this['campaignsPreview'][_0x25aed6[_0x1ae54a(0x2bc)]])),emitVoiceQueueChannelRemove(ut[_0x1ae54a(0x249)](_0x25aed6,_0x1ae54a(0x33c))),_0x40f0b9[_0x1ae54a(0x223)]+=0x1,_0x40f0b9[_0x1ae54a(0x237)]+=0x1,_0x40f0b9['answered']+=0x1,ut[_0x1ae54a(0x23e)](_0x40f0b9,_0x1ae54a(0x2fb)),_0x25aed6[_0x1ae54a(0x26e)]=ut[_0x1ae54a(0x1f8)](_0x25aed6),ut[_0x1ae54a(0x2b1)](_0x25aed6,0x4,_0x1ae54a(0x21f)),rpcDb['createCustomerHistory'](_0x25aed6,_0x1ae54a(0x1f2)),rpcDb[_0x1ae54a(0x29a)](_0x25aed6,_0x1ae54a(0x30b)),rpcDb[_0x1ae54a(0x203)](_0x25aed6),_0x40f0b9[_0x1ae54a(0x2dc)]+=_0x25aed6[_0x1ae54a(0x2d8)],_0x40f0b9[_0x1ae54a(0x298)]+=_0x25aed6[_0x1ae54a(0x2d8)],logger[_0x1ae54a(0x276)](_0x1ae54a(0x2ba),_0x25aed6[_0x1ae54a(0x2ee)],_0x1ae54a(0x320),_0x40f0b9[_0x1ae54a(0x2af)],_0x1ae54a(0x2a5),_0x40f0b9[_0x1ae54a(0x22d)]),delete this[_0x1ae54a(0x32f)][_0x4af5c5[_0x1ae54a(0x2e7)]];break;case _0x1ae54a(0x2a0):_0x40f0b9[_0x1ae54a(0x1f6)]+=0x1,_0x25aed6[_0x1ae54a(0x28e)]+=0x1,_0x25aed6[_0x1ae54a(0x26e)]=ut[_0x1ae54a(0x1f8)](_0x25aed6),ut['logCustomer'](_0x25aed6,0x5,'Busy'),ami[_0x1ae54a(0x27c)](_0x1ae54a(0x2f4),ut[_0x1ae54a(0x249)](_0x25aed6,_0x1ae54a(0x314))),rpcDb[_0x1ae54a(0x242)](_0x25aed6,'[callProgressDetectingCustomer][logBusy]');ut[_0x1ae54a(0x1f8)](_0x25aed6)>=_0x40f0b9[_0x1ae54a(0x2b2)]?(_0x35d81a=ut[_0x1ae54a(0x30f)](_0x25aed6,0xf,_0x1ae54a(0x33d)),rpcDb[_0x1ae54a(0x29a)](_0x35d81a,_0x1ae54a(0x218))):_0x25aed6['countbusyretry']>=_0x40f0b9[_0x1ae54a(0x2d7)]?rpcDb[_0x1ae54a(0x29a)](_0x25aed6,_0x1ae54a(0x265)):rpcDb[_0x1ae54a(0x2bb)](ut[_0x1ae54a(0x2d1)](_0x25aed6,_0x1ae54a(0x28e),_0x40f0b9[_0x1ae54a(0x306)]),_0x25aed6[_0x1ae54a(0x21c)],_0x25aed6[_0x1ae54a(0x225)]);break;case _0x1ae54a(0x297):_0x40f0b9[_0x1ae54a(0x222)]+=0x1,_0x25aed6['countnoanswerretry']+=0x1,_0x25aed6[_0x1ae54a(0x26e)]=ut['totalGlobal'](_0x25aed6),ut[_0x1ae54a(0x2b1)](_0x25aed6,0x3,_0x1ae54a(0x2c7)),ami[_0x1ae54a(0x27c)](_0x1ae54a(0x33b),ut[_0x1ae54a(0x249)](_0x25aed6,_0x1ae54a(0x266))),rpcDb[_0x1ae54a(0x242)](_0x25aed6,_0x1ae54a(0x303));ut[_0x1ae54a(0x1f8)](_0x25aed6)>=_0x40f0b9[_0x1ae54a(0x2b2)]?(_0x35d81a=ut['cloneAction'](_0x25aed6,0xf,_0x1ae54a(0x33d)),rpcDb[_0x1ae54a(0x29a)](_0x35d81a,_0x1ae54a(0x2ef))):_0x25aed6[_0x1ae54a(0x283)]>=_0x40f0b9['dialNoAnswerMaxRetry']?rpcDb[_0x1ae54a(0x29a)](_0x25aed6,_0x1ae54a(0x303)):rpcDb[_0x1ae54a(0x2bb)](ut[_0x1ae54a(0x2d1)](_0x25aed6,'countnoanswerretry',_0x40f0b9[_0x1ae54a(0x217)]),_0x25aed6['unlockAgent'],_0x25aed6[_0x1ae54a(0x225)]);break;case _0x1ae54a(0x1f9):_0x40f0b9[_0x1ae54a(0x229)]+=0x1,_0x25aed6['countcongestionretry']+=0x1,_0x25aed6[_0x1ae54a(0x26e)]=ut[_0x1ae54a(0x1f8)](_0x25aed6),ut[_0x1ae54a(0x2b1)](_0x25aed6,0x8,_0x1ae54a(0x1eb)),ami['emit'](_0x1ae54a(0x309),ut[_0x1ae54a(0x249)](_0x25aed6,_0x1ae54a(0x219))),rpcDb[_0x1ae54a(0x242)](_0x25aed6,'[callProgressDetectingCustomer][logCongestion]');ut[_0x1ae54a(0x1f8)](_0x25aed6)>=_0x40f0b9[_0x1ae54a(0x2b2)]?(_0x35d81a=ut['cloneAction'](_0x25aed6,0xf,_0x1ae54a(0x33d)),rpcDb[_0x1ae54a(0x29a)](_0x35d81a,_0x1ae54a(0x22e))):_0x25aed6['countcongestionretry']>=_0x40f0b9[_0x1ae54a(0x272)]?rpcDb['createCustomerFinal'](_0x25aed6,_0x1ae54a(0x291)):rpcDb[_0x1ae54a(0x2bb)](ut['scheduledAt'](_0x25aed6,_0x1ae54a(0x1fe),_0x40f0b9[_0x1ae54a(0x306)]),_0x25aed6['unlockAgent'],_0x25aed6[_0x1ae54a(0x225)]);break;case _0x1ae54a(0x1ee):_0x40f0b9[_0x1ae54a(0x2bf)]+=0x1,_0x25aed6[_0x1ae54a(0x311)]+=0x1,_0x25aed6[_0x1ae54a(0x26e)]=ut[_0x1ae54a(0x1f8)](_0x25aed6),ut[_0x1ae54a(0x2b1)](_0x25aed6,0x14,'AgentReject'),ami[_0x1ae54a(0x27c)]('custom:agentreject',ut['buildObj'](_0x25aed6,'agentreject')),rpcDb[_0x1ae54a(0x242)](_0x25aed6,_0x1ae54a(0x1ec));ut[_0x1ae54a(0x1f8)](_0x25aed6)>=_0x40f0b9[_0x1ae54a(0x2b2)]?(_0x35d81a=ut['cloneAction'](_0x25aed6,0x14,_0x1ae54a(0x25d)),rpcDb[_0x1ae54a(0x29a)](_0x35d81a,'[callProgressDetectingCustomer][logAgentReject]')):_0x25aed6[_0x1ae54a(0x311)]>=_0x40f0b9[_0x1ae54a(0x240)]?rpcDb[_0x1ae54a(0x29a)](_0x25aed6,'[callProgressDetectingCustomer][logAgentReject]'):rpcDb[_0x1ae54a(0x2bb)](ut['scheduledAt'](_0x25aed6,_0x1ae54a(0x311),_0x40f0b9['dialAgentRejectRetryFrequency']),_0x25aed6[_0x1ae54a(0x21c)],_0x25aed6[_0x1ae54a(0x225)]);break;case _0x1ae54a(0x2ac):_0x40f0b9[_0x1ae54a(0x2d6)]+=0x1,_0x25aed6['countabandonedretry']+=0x1,_0x25aed6[_0x1ae54a(0x26e)]=ut[_0x1ae54a(0x1f8)](_0x25aed6),ut[_0x1ae54a(0x2b1)](_0x25aed6,0xb,_0x1ae54a(0x29d)),rpcDb[_0x1ae54a(0x242)](_0x25aed6,'[callProgressDetectingCustomer][logAbandoned]');ut[_0x1ae54a(0x1f8)](_0x25aed6)>=_0x40f0b9[_0x1ae54a(0x2b2)]?(_0x35d81a=ut[_0x1ae54a(0x30f)](_0x25aed6,0xf,_0x1ae54a(0x33d)),rpcDb[_0x1ae54a(0x29a)](_0x35d81a,'[callProgressDetectingCustomer][logAbandoned]')):_0x25aed6[_0x1ae54a(0x2ca)]>=_0x40f0b9['dialAbandonedMaxRety']?rpcDb[_0x1ae54a(0x29a)](_0x25aed6,'[callProgressDetectingCustomer][logAbandoned]'):rpcDb['rescheduleContact'](ut[_0x1ae54a(0x2d1)](_0x25aed6,_0x1ae54a(0x2fd),_0x40f0b9[_0x1ae54a(0x332)]),_0x25aed6['unlockAgent'],_0x25aed6[_0x1ae54a(0x225)]);break;default:_0x25aed6[_0x1ae54a(0x258)]&&(ut[_0x1ae54a(0x23e)](_0x40f0b9,_0x1ae54a(0x2e9)),ut[_0x1ae54a(0x247)]('[Dialer][decrementTalkink][no\x20Hangup][Preview]'+_0x40f0b9[_0x1ae54a(0x2af)],_0x4af5c5));_0x40f0b9[_0x1ae54a(0x214)]+=0x1,_0x25aed6[_0x1ae54a(0x26e)]=ut['totalGlobal'](_0x25aed6),ut[_0x1ae54a(0x2b1)](_0x25aed6,0xc,_0x4af5c5[_0x1ae54a(0x26f)]||_0x4af5c5[_0x1ae54a(0x2d2)]),rpcDb[_0x1ae54a(0x242)](_0x25aed6,_0x1ae54a(0x21b));ut['totalGlobal'](_0x25aed6)>=_0x40f0b9[_0x1ae54a(0x2b2)]?(_0x35d81a=ut[_0x1ae54a(0x30f)](_0x25aed6,0xf,_0x1ae54a(0x33d)),rpcDb[_0x1ae54a(0x29a)](_0x35d81a,_0x1ae54a(0x251))):rpcDb[_0x1ae54a(0x29a)](_0x25aed6,_0x1ae54a(0x251));delete this['actions'][_0x4af5c5[_0x1ae54a(0x2e7)]];}!(_0x25aed6['dialAnswer']&&_0xb8bd7d==='16')&&(ut[_0x1ae54a(0x22a)](_0x40f0b9,_0x1ae54a(0x2e5)),logger[_0x1ae54a(0x276)]('[originated][decrement][callProgressDetectingCustomer]',_0x25aed6[_0x1ae54a(0x2ee)],_0x1ae54a(0x320),_0x40f0b9[_0x1ae54a(0x2af)],'originated:\x20',_0x40f0b9[_0x1ae54a(0x221)])),_0xb8bd7d!==_0x1ae54a(0x245)&&(delete this[_0x1ae54a(0x32f)][_0x4af5c5[_0x1ae54a(0x2e7)]],delete this[_0x1ae54a(0x32f)][_0x4af5c5[_0x1ae54a(0x23a)]]);}},Preview[a1256_0x27027a(0x243)][a1256_0x27027a(0x2c2)]=function(_0x5c5d08,_0x2a6ea8,_0x34b732){const _0x42ddc4=a1256_0x27027a;if(_[_0x42ddc4(0x269)](_0x2a6ea8)&&_0x42ddc4(0x310)!==typeof _0x2a6ea8)return;if(_['isUndefined'](_0x34b732)&&_0x42ddc4(0x310)!==typeof _0x34b732)return;switch(_0x34b732[_0x42ddc4(0x2ae)]){case'0':ut[_0x42ddc4(0x335)](_0x5c5d08,0x0,_0x42ddc4(0x2f5)),rpcDb[_0x42ddc4(0x20c)](_0x5c5d08,_0x42ddc4(0x2f0));break;case'3':ut[_0x42ddc4(0x335)](_0x5c5d08,0x3,_0x42ddc4(0x2c7)),rpcDb[_0x42ddc4(0x20c)](_0x5c5d08,_0x42ddc4(0x2e4));break;case'5':ut[_0x42ddc4(0x335)](_0x5c5d08,0x5,_0x42ddc4(0x2b3)),rpcDb[_0x42ddc4(0x20c)](_0x5c5d08,_0x42ddc4(0x289));break;case'8':ut['logAgent'](_0x5c5d08,0x8,_0x42ddc4(0x1eb)),rpcDb['createAgentHistory'](_0x5c5d08,_0x42ddc4(0x2c3));break;case'22':ut['logAgent'](_0x5c5d08,0x16,'AnswerAGI'),rpcDb[_0x42ddc4(0x20c)](_0x5c5d08,'[callProgressDetectingAgent][logAnswerAGI]');break;default:ut['logAgent'](_0x5c5d08,0xc,_0x34b732[_0x42ddc4(0x2ae)]),rpcDb[_0x42ddc4(0x20c)](_0x5c5d08,_0x42ddc4(0x2c3));}ut[_0x42ddc4(0x22a)](_0x2a6ea8,_0x42ddc4(0x220)),logger[_0x42ddc4(0x276)]('[originated][decrement][callProgressDetectingAgent]',_0x5c5d08['uniqueid'],_0x42ddc4(0x320),_0x2a6ea8['name'],_0x42ddc4(0x28d),_0x2a6ea8['originated']),delete this[_0x42ddc4(0x32f)][_0x5c5d08[_0x42ddc4(0x2ee)]];},Preview[a1256_0x27027a(0x243)][a1256_0x27027a(0x2db)]=function(_0x57a3b5,_0x21a106,_0xc50238,_0x169055,_0x29c6e0){const _0x3f90c4=this;return new Promise(function(_0x42fc88,_0x5bf688){const _0x17a687=a1256_0x5954;if(_[_0x17a687(0x2eb)](_0x21a106)||_[_0x17a687(0x2eb)](_0x21a106[_0x17a687(0x274)])||_[_0x17a687(0x2eb)](_0x21a106[_0x17a687(0x274)][_0x17a687(0x30e)])||_[_0x17a687(0x2eb)](_0x21a106['VoiceQueueId'])){_0x5bf688(ut[_0x17a687(0x1ed)]('Contact\x20is\x20undefined',_0x169055,_0x29c6e0));return;}const _0x1dbeed=uuid['v4'](),_0x20644f=_0x3f90c4[_0x17a687(0x301)][_0x21a106[_0x17a687(0x277)][_0x17a687(0x2af)]],_0x37afb6=_0xc50238?_0x3f90c4['agents'][_0xc50238]['id']:undefined;_0x3f90c4[_0x17a687(0x32f)][_0x1dbeed]=new Action(_0x21a106,_0x20644f,_0x1dbeed,_0xc50238,_0x37afb6);const _0x4d0eb1=_0x3f90c4['actions'][_0x1dbeed];_0x4d0eb1[_0x17a687(0x21c)]=_0x169055,_0x4d0eb1[_0x17a687(0x225)]=_0x29c6e0,_0x4d0eb1[_0x17a687(0x232)]=_0xc50238,_[_0x17a687(0x2c9)](_0x57a3b5)?_0x3f90c4[_0x17a687(0x2e8)](_0x4d0eb1,_0x20644f,_0x21a106,_0xc50238)[_0x17a687(0x312)](function(_0x31a374){const _0x3b46aa=_0x17a687;logger[_0x3b46aa(0x276)]('[Preview][execCall][success]','Queue:\x20'+_0x4d0eb1[_0x3b46aa(0x2bc)]+_0x3b46aa(0x329)+_0x4d0eb1[_0x3b46aa(0x2cd)],JSON[_0x3b46aa(0x227)](_0x31a374)),ami[_0x3b46aa(0x27c)]('custom:agentcalled',ut[_0x3b46aa(0x249)](_0x4d0eb1,_0x3b46aa(0x29b),_0x3f90c4[_0x3b46aa(0x301)][_0x4d0eb1['queue']])),_0x42fc88(ut[_0x3b46aa(0x1ed)](_0x3b46aa(0x278)));})[_0x17a687(0x336)](function(_0x58ec7c){const _0x4b4dbd=_0x17a687;ut[_0x4b4dbd(0x26c)](_0x4b4dbd(0x2aa),_0x58ec7c),_0x5bf688(ut[_0x4b4dbd(0x1ed)](_0x4b4dbd(0x21a),_0x169055,_0x29c6e0));}):(_0x20644f[_0x17a687(0x209)]+=0x1,ut[_0x17a687(0x2f9)](_0x4d0eb1),rpcDb[_0x17a687(0x254)](_0x4d0eb1,_0x17a687(0x31e)),delete _0x3f90c4[_0x17a687(0x32f)][_0x1dbeed],_0x5bf688(ut['message'](_0x17a687(0x2e6),_0x169055,_0x29c6e0)));});},Preview[a1256_0x27027a(0x243)][a1256_0x27027a(0x287)]=function(_0x1faba0){const _0x341428=a1256_0x27027a;return!_['isNil'](_0x1faba0)&&!_[_0x341428(0x2eb)](_0x1faba0[_0x341428(0x2af)])&&!_['isNil'](_0x1faba0[_0x341428(0x331)])&&_0x1faba0[_0x341428(0x331)]&&!_[_0x341428(0x2eb)](this[_0x341428(0x28b)][util['format'](_0x341428(0x322),_0x1faba0['name'])])&&!_['isNil'](this['trunks'][util['format']('SIP/%s',_0x1faba0['name'])][_0x341428(0x2a3)])&&(this[_0x341428(0x28b)][util[_0x341428(0x2b9)](_0x341428(0x322),_0x1faba0[_0x341428(0x2af)])]['status']===_0x341428(0x330)||this[_0x341428(0x28b)][util[_0x341428(0x2b9)](_0x341428(0x322),_0x1faba0[_0x341428(0x2af)])][_0x341428(0x2a3)]==='unmonitored');},Preview[a1256_0x27027a(0x243)][a1256_0x27027a(0x2f8)]=function(_0x2a4c14,_0x4bc615){const _0x172e7c=this;return new Promise(function(_0x4a5d6f,_0x242793){const _0x4043d5=a1256_0x5954;_0x172e7c['execRun'](_0x2a4c14,_0x4bc615)[_0x4043d5(0x312)](function(_0x14be9a){const _0x1ae720=_0x4043d5;_0x4a5d6f(_[_0x1ae720(0x255)](_0x14be9a,[_0x1ae720(0x1ed)]));})['catch'](function(_0x5a5aae){const _0x486ba7=_0x4043d5;_0x5a5aae[_0x486ba7(0x32a)]&&rpcDb[_0x486ba7(0x296)](_0x2a4c14),_0x5a5aae[_0x486ba7(0x331)]&&rpcDb[_0x486ba7(0x24e)](_0x2a4c14),_0x242793(_['pick'](_0x5a5aae,['message']));});});},Preview[a1256_0x27027a(0x243)][a1256_0x27027a(0x231)]=function(_0x3887e4,_0x2f5280){const _0x38f259=this;return new Promise(function(_0x22fc0f,_0x101bc1){const _0x4197be=a1256_0x5954;let _0x858ae1,_0x149a4b;rpcDb[_0x4197be(0x333)](_0x3887e4)[_0x4197be(0x312)](function(_0xfc5a9f){const _0x463afd=_0x4197be;!_['isNil'](_0xfc5a9f[0x0])&&(_0x149a4b=_0xfc5a9f[0x0][_0x463afd(0x2bd)]?![]:!![],_0x858ae1=_0xfc5a9f[0x0][_0x463afd(0x2bd)]?!![]:![],_0x858ae1=_0x2f5280?!![]:_0x858ae1);const _0x1c87bb=_0x38f259[_0x463afd(0x2ea)](_0xfc5a9f);_0x1c87bb['isValid']?rpcDb[_0x463afd(0x286)](_[_0x463afd(0x255)](_0xfc5a9f[0x0],['VoiceQueueId',_0x463afd(0x28c)]))[_0x463afd(0x312)](function(_0x53c9ad){const _0x416028=_0x463afd;_0x38f259['checkInBlack'](_0x53c9ad,_0xfc5a9f[0x0],_0x2f5280,_0x149a4b,_0x858ae1)['then'](function(_0x980a8f){_0x22fc0f(_0x980a8f);})[_0x416028(0x336)](function(_0x501a38){_0x101bc1(_0x501a38);});})['catch'](function(_0x2b65aa){const _0x4d1821=_0x463afd;ut[_0x4d1821(0x26c)](_0x4d1821(0x2ff),_0x2b65aa),_0x101bc1(ut[_0x4d1821(0x1ed)](_0x4d1821(0x210),_0x149a4b,_0x858ae1));}):_0x101bc1(ut[_0x463afd(0x1ed)](_0x1c87bb[_0x463afd(0x1ed)],_0x149a4b,_0x858ae1));})[_0x4197be(0x336)](function(_0x183a26){const _0x3ca2f5=_0x4197be;ut[_0x3ca2f5(0x26c)]('[Preview][getContactPreview]',_0x183a26),_0x101bc1(ut[_0x3ca2f5(0x1ed)]('Call\x20unsuccessful',![],!![]));});});},Preview[a1256_0x27027a(0x243)][a1256_0x27027a(0x2ea)]=function(_0x2570a7){const _0x2a381d=a1256_0x27027a;if(_[_0x2a381d(0x2eb)](_0x2570a7)||_[_0x2a381d(0x2c9)](_0x2570a7)||!_[_0x2a381d(0x2eb)](_0x2570a7[0x0][_0x2a381d(0x2be)])&&_[_0x2a381d(0x2eb)](_0x2570a7[0x0]['Agent'][_0x2a381d(0x2af)]))return ut[_0x2a381d(0x26c)](_0x2a381d(0x25f),_0x2570a7),{'isValid':![],'message':_0x2a381d(0x201)};const _0x29b3cc=this[_0x2a381d(0x301)][_0x2570a7[0x0][_0x2a381d(0x277)][_0x2a381d(0x2af)]];_0x29b3cc[_0x2a381d(0x1ed)]=_0x2a381d(0x2f7);if(_['isNil'](_0x29b3cc))return ut['logger'](_0x2a381d(0x20b),_0x29b3cc),{'isValid':![],'message':_0x2a381d(0x275)};if(!this[_0x2a381d(0x287)](_0x29b3cc['Trunk'])){ut['logger']('[Preview][validateContact][Trunk\x20not\x20work]',_0x2a381d(0x30c)+_0x29b3cc['name']+_0x2a381d(0x334));if(!this[_0x2a381d(0x287)](_0x29b3cc[_0x2a381d(0x230)]))return ut[_0x2a381d(0x26c)](_0x2a381d(0x2df),_0x29b3cc[_0x2a381d(0x2af)]+_0x2a381d(0x328)),{'isValid':![],'message':'Trunk\x20not\x20work'};}if(!ut[_0x2a381d(0x2c0)](_0x29b3cc[_0x2a381d(0x2b0)]))return ut[_0x2a381d(0x26c)](_0x2a381d(0x295),_0x29b3cc[_0x2a381d(0x2af)]+_0x2a381d(0x31b)),{'isValid':![],'message':_0x2a381d(0x30c)+_0x29b3cc[_0x2a381d(0x2af)]+_0x2a381d(0x31b)};return{'isValid':!![],'message':_0x2a381d(0x1ef)};},Preview[a1256_0x27027a(0x243)][a1256_0x27027a(0x2e8)]=function(_0x556c27,_0x22c334,_0x2933d2,_0x55339d){const _0x1a4a3c=this;return new Promise(function(_0x412b63,_0x466124){const _0x58a0ae=a1256_0x5954,_0x2277a4=_0x556c27[_0x58a0ae(0x2ee)],_0x2df3f6=_0x1a4a3c[_0x58a0ae(0x287)](_0x22c334[_0x58a0ae(0x239)])?util['format'](_0x58a0ae(0x28f),_0x22c334[_0x58a0ae(0x239)][_0x58a0ae(0x2af)],_[_0x58a0ae(0x2eb)](_0x22c334[_0x58a0ae(0x33a)])?'':_0x22c334['dialPrefix'][_0x58a0ae(0x205)]()||'',_0x22c334[_0x58a0ae(0x316)]>0x0?_0x2933d2[_0x58a0ae(0x274)][_0x58a0ae(0x30e)]['substring'](_0x22c334[_0x58a0ae(0x316)]):_0x2933d2[_0x58a0ae(0x274)][_0x58a0ae(0x30e)]):util[_0x58a0ae(0x2b9)](_0x58a0ae(0x28f),_[_0x58a0ae(0x2eb)](_0x22c334[_0x58a0ae(0x230)])?_0x22c334[_0x58a0ae(0x239)][_0x58a0ae(0x2af)]:_0x22c334[_0x58a0ae(0x230)]['name'],_[_0x58a0ae(0x2eb)](_0x22c334[_0x58a0ae(0x33a)])?'':_0x22c334[_0x58a0ae(0x33a)][_0x58a0ae(0x205)]()||'',_0x22c334[_0x58a0ae(0x316)]>0x0?_0x2933d2['Contact'][_0x58a0ae(0x30e)][_0x58a0ae(0x224)](_0x22c334[_0x58a0ae(0x316)]):_0x2933d2['Contact'][_0x58a0ae(0x30e)]),_0xfdf458=_0x1a4a3c[_0x58a0ae(0x287)](_0x22c334[_0x58a0ae(0x239)])?ut['getCallerId'](_0x22c334['Trunk'][_0x58a0ae(0x1fa)],_0x22c334[_0x58a0ae(0x29f)],_0x22c334[_0x58a0ae(0x292)]>0x0?ut[_0x58a0ae(0x1f5)](_0x22c334['dialOriginateCallerIdNumber'],_0x22c334[_0x58a0ae(0x292)]):_0x22c334[_0x58a0ae(0x1f3)]):ut[_0x58a0ae(0x208)](_[_0x58a0ae(0x2eb)](_0x22c334[_0x58a0ae(0x230)])?_0x22c334['Trunk']['callerid']:_0x22c334[_0x58a0ae(0x230)]['callerid'],_0x22c334[_0x58a0ae(0x29f)],_0x22c334[_0x58a0ae(0x292)]>0x0?ut[_0x58a0ae(0x1f5)](_0x22c334[_0x58a0ae(0x1f3)],_0x22c334[_0x58a0ae(0x292)]):_0x22c334[_0x58a0ae(0x1f3)]);_0xfdf458&&(_0x556c27[_0x58a0ae(0x1f4)]=ut['extractCalleridName'](_0xfdf458),_0x556c27[_0x58a0ae(0x2cb)]=ut[_0x58a0ae(0x2d4)](_0xfdf458));const _0xde3e7a=ut[_0x58a0ae(0x2ec)](_0x22c334,_0x2933d2,_0x2df3f6,_0xfdf458,_0x2277a4,_0x556c27);_[_0x58a0ae(0x216)](_0x556c27,ut[_0x58a0ae(0x24a)](_0xde3e7a)),_0x556c27[_0x58a0ae(0x339)]=moment()[_0x58a0ae(0x2b9)](_0x58a0ae(0x327)),ami[_0x58a0ae(0x259)](ut[_0x58a0ae(0x321)](_0x556c27,_0x22c334,_0xde3e7a,_0x556c27[_0x58a0ae(0x225)],_0x55339d))[_0x58a0ae(0x312)](function(_0x57924c){const _0x18d1db=_0x58a0ae;_0x22c334[_0x18d1db(0x221)]+=0x1,logger[_0x18d1db(0x276)](_0x18d1db(0x27f),_0x2277a4,_0x18d1db(0x320),_0x22c334['name'],_0x18d1db(0x28d),_0x22c334['originated']),_0x412b63(_0x57924c);})[_0x58a0ae(0x336)](function(_0x57b2a9){const _0x4fb887=_0x58a0ae;ut[_0x4fb887(0x335)](_0x556c27,0xe,_0x4fb887(0x264)),rpcDb[_0x4fb887(0x20c)](_0x556c27,_0x4fb887(0x244)),_0x466124(_0x57b2a9);});});},Preview[a1256_0x27027a(0x243)][a1256_0x27027a(0x25e)]=function(_0x30c4dc){const _0x497b5b=a1256_0x27027a;this['actions'][_0x30c4dc[_0x497b5b(0x2e7)]]&&(this[_0x497b5b(0x32f)][_0x30c4dc['linkedid']][_0x497b5b(0x2e0)]=_0x30c4dc[_0x497b5b(0x2e0)]);},Preview[a1256_0x27027a(0x243)][a1256_0x27027a(0x24c)]=function(_0x316b50){const _0x2edf98=a1256_0x27027a,_0x2d1d1d=this,_0xe28872=this[_0x2edf98(0x32f)][_0x316b50['actionid']];if(_0xe28872){_0xe28872[_0x2edf98(0x232)]&&this[_0x2edf98(0x2a1)][_0xe28872[_0x2edf98(0x232)]]&&ut[_0x2edf98(0x204)](_0xe28872,this[_0x2edf98(0x2a1)][_0xe28872[_0x2edf98(0x232)]]['name'],this[_0x2edf98(0x2a1)][_0xe28872[_0x2edf98(0x232)]]['id']);const _0x3c9d2e=_[_0x2edf98(0x267)](_0xe28872);_0x3c9d2e[_0x2edf98(0x23b)]=moment()[_0x2edf98(0x2b9)](_0x2edf98(0x327));const _0x1b8e65=_0x2d1d1d[_0x2edf98(0x301)][_0xe28872[_0x2edf98(0x2bc)]];ut['isFailure'](_0x316b50[_0x2edf98(0x226)])?(_0xe28872[_0x2edf98(0x21c)]&&rpcDb[_0x2edf98(0x296)](_0xe28872[_0x2edf98(0x2cd)]),_0xe28872[_0x2edf98(0x225)]&&rpcDb[_0x2edf98(0x24e)](_0xe28872[_0x2edf98(0x2cd)]),ami[_0x2edf98(0x27c)](_0x2edf98(0x263),ut['buildObj'](_0xe28872,_0x2edf98(0x307),this[_0x2edf98(0x301)][_0xe28872[_0x2edf98(0x2bc)]])),this[_0x2edf98(0x2c2)](_0x3c9d2e,_0x1b8e65,_0x316b50)):(_0xe28872[_0x2edf98(0x339)]=moment()[_0x2edf98(0x2b9)](_0x2edf98(0x327)),ut['logAgent'](_0x3c9d2e,0x4,'Answer'),rpcDb[_0x2edf98(0x20c)](_0x3c9d2e,_0x2edf98(0x2ad)));}},Preview['prototype'][a1256_0x27027a(0x2b4)]=function(_0x5a3b8c){const _0x5317cc=a1256_0x27027a,_0x5e7979=this[_0x5317cc(0x32f)][_0x5a3b8c[_0x5317cc(0x2e7)]];let _0x368782;_0x5e7979&&(_0x368782=this[_0x5317cc(0x301)][_0x5e7979[_0x5317cc(0x2bc)]],logger[_0x5317cc(0x276)](_0x5317cc(0x26a),_0x5a3b8c[_0x5317cc(0x2e7)],'\x20Queue',_0x368782['name'],'pTalking:\x20',_0x368782[_0x5317cc(0x22d)]));if(this[_0x5317cc(0x32f)][_0x5a3b8c[_0x5317cc(0x2e7)]]&&_0x5a3b8c['linkedid']!==_0x5a3b8c['uniqueid']){if(_0x5a3b8c['cause']==='16'&&this[_0x5317cc(0x32f)][_0x5a3b8c[_0x5317cc(0x2e7)]]['dialAnswer'])this[_0x5317cc(0x285)](_0x5a3b8c,_0x5a3b8c[_0x5317cc(0x2e7)],_0x5a3b8c['cause']);else this[_0x5317cc(0x32f)][_0x5a3b8c[_0x5317cc(0x2e7)]]['dialAnswer']&&(logger['info']('[syncHangup][talking][cause]',_0x5a3b8c[_0x5317cc(0x2e7)],_0x5a3b8c[_0x5317cc(0x324)],_0x5317cc(0x320),_0x368782['name'],_0x5317cc(0x2a5),_0x368782[_0x5317cc(0x22d)]),this['callProgressDetectingCustomer'](_0x5a3b8c,_0x5a3b8c[_0x5317cc(0x2e7)],_0x5a3b8c[_0x5317cc(0x324)]));}else{if(_0x5e7979&&_[_0x5317cc(0x2eb)](_0x5e7979['statedesc'])&&_0x368782[_0x5317cc(0x32d)]&&_0x5a3b8c[_0x5317cc(0x2e7)]===_0x5a3b8c[_0x5317cc(0x2ee)]&&_['isNil'](_0x5a3b8c['reason'])&&_0x5a3b8c[_0x5317cc(0x324)]==='16'&&_0x5a3b8c[_0x5317cc(0x2b8)]==='6'&&_['isUndefined'](_0x5e7979['transfer']))_0x5e7979[_0x5317cc(0x21c)]&&rpcDb[_0x5317cc(0x296)](_0x5e7979[_0x5317cc(0x2cd)]),_0x5e7979[_0x5317cc(0x225)]&&rpcDb['disableContact'](_0x5e7979[_0x5317cc(0x2cd)]),_0x5a3b8c[_0x5317cc(0x2ae)]='22',this['callProgressDetectingAgent'](_0x5e7979,_0x368782,_0x5a3b8c);else{if(_0x5e7979&&_0x5e7979[_0x5317cc(0x24f)]){if(_0x5a3b8c[_0x5317cc(0x324)]==='16'&&this[_0x5317cc(0x32f)][_0x5a3b8c[_0x5317cc(0x2e7)]]['dialAnswer'])logger['info']('[syncHangup][talking][transfer]',_0x5a3b8c[_0x5317cc(0x2e7)],_0x5a3b8c['cause'],_0x5317cc(0x320),_0x368782['name'],_0x5317cc(0x2a5),_0x368782[_0x5317cc(0x22d)]),this[_0x5317cc(0x285)](_0x5a3b8c,_0x5a3b8c[_0x5317cc(0x2e7)],_0x5a3b8c[_0x5317cc(0x324)]);else this[_0x5317cc(0x32f)][_0x5a3b8c[_0x5317cc(0x2e7)]][_0x5317cc(0x258)]&&(logger[_0x5317cc(0x276)](_0x5317cc(0x2a6),_0x5a3b8c[_0x5317cc(0x2e7)],_0x5a3b8c[_0x5317cc(0x324)],_0x5317cc(0x320),_0x368782['name'],'pTalking:\x20',_0x368782[_0x5317cc(0x22d)]),this['callProgressDetectingCustomer'](_0x5a3b8c,_0x5a3b8c['linkedid'],_0x5a3b8c[_0x5317cc(0x324)]));}}}},Preview[a1256_0x27027a(0x243)]['syncDialEnd']=function(_0x2abbe0){const _0x448774=a1256_0x27027a;this[_0x448774(0x32f)][_0x2abbe0[_0x448774(0x23a)]]&&_0x2abbe0[_0x448774(0x23a)]!==_0x2abbe0[_0x448774(0x305)]&&this[_0x448774(0x285)](_0x2abbe0,_0x2abbe0[_0x448774(0x23a)],_0x2abbe0[_0x448774(0x2d2)]);},Preview[a1256_0x27027a(0x243)]['syncHangupRequest']=function(_0xb7f6b3){const _0x178c3a=a1256_0x27027a;this['actions'][_0xb7f6b3['linkedid']]&&_0xb7f6b3['linkedid']!==_0xb7f6b3['uniqueid']&&!this[_0x178c3a(0x32f)][_0xb7f6b3[_0x178c3a(0x2e7)]][_0x178c3a(0x258)]&&(_0xb7f6b3[_0x178c3a(0x324)]==='1'&&this[_0x178c3a(0x285)](_0xb7f6b3,_0xb7f6b3[_0x178c3a(0x2e7)],_0xb7f6b3[_0x178c3a(0x324)]));},Preview[a1256_0x27027a(0x243)][a1256_0x27027a(0x2da)]=function(_0x2d73b8,_0x47cee3,_0x53d1ee){const _0x41feaf=a1256_0x27027a;this[_0x41feaf(0x32f)][_0x2d73b8]&&(_['isNil'](this['actions'][_0x2d73b8][_0x41feaf(0x2e3)])&&(this[_0x41feaf(0x32f)][_0x2d73b8][_0x41feaf(0x2e3)]={}),this[_0x41feaf(0x32f)][_0x2d73b8]['variables'][_0x47cee3]=_0x53d1ee);},Preview['prototype'][a1256_0x27027a(0x22f)]=function(_0x35783d){const _0x1a56b3=a1256_0x27027a;try{!_[_0x1a56b3(0x2eb)](_0x35783d)&&(ut[_0x1a56b3(0x29c)](_[_0x1a56b3(0x2c5)](_0x35783d[_0x1a56b3(0x238)])[0x0])&&this['addVariable'](_0x35783d[_0x1a56b3(0x2ee)],_['keys'](_0x35783d[_0x1a56b3(0x238)])[0x0],_0x35783d[_0x1a56b3(0x1fc)]));}catch(_0x5524cb){logger[_0x1a56b3(0x2b6)](_0x1a56b3(0x31f),util['inspect'](_0x5524cb,{'showHidden':![],'depth':null}));}},Preview['prototype'][a1256_0x27027a(0x271)]=function(_0xa0f36c){const _0x4a26da=a1256_0x27027a;_0xa0f36c&&(this[_0x4a26da(0x32f)][_0xa0f36c[_0x4a26da(0x299)]]&&(this[_0x4a26da(0x32f)][_0xa0f36c['transfertargetlinkedid']][_0x4a26da(0x24f)]=!![]));},Preview[a1256_0x27027a(0x243)][a1256_0x27027a(0x23d)]=function(_0x2c4e30){const _0x4bfe75=a1256_0x27027a;_0x2c4e30&&(this[_0x4bfe75(0x32f)][_0x2c4e30[_0x4bfe75(0x302)]]&&(this[_0x4bfe75(0x32f)][_0x2c4e30[_0x4bfe75(0x302)]][_0x4bfe75(0x24f)]=!![]));},module[a1256_0x27027a(0x261)]=Preview; \ No newline at end of file +const a1256_0x5105=['destlinkedid','checkInBlack','dialAbandonedMaxRety','syncAttendedTransfer','voicePause','dialBusyMaxRetry','trim','dialGlobalMaxRetry','ABANDONED','../../../config/logger','rescheduleContact','phone','countbusyretry','actionid','info','[callProgressDetectingAgent][logNoAnswer]','countagentrejectretry','preview','custom:agentnoanswer','attendedtransfer','logger','Trunk\x20not\x20work','[Blacklist][error]','format','emit','unmonitored','isEmpty','startPredictive','outboundNoAnswerCallsDay','uniqueid','cloneAction','[originated][decrement][callProgressDetectingAgent]','agentReadyId','[originated][decrement][callProgressDetectingCustomer]','IS_DISACTIVED','Call\x20failed','run','dialRecallMeTimeout','countnosuchnumberretry','[RecallMe]','custom:agentconnect','[DEBUG]\x20Emit\x20voice_queue_channel:remove\x20event','transfer','util','inspect','\x20Not\x20Active','value','[callProgressDetectingCustomer][logAgentReject]','cause','variables','dialOriginateCallerIdNumber','queue','[originateFailure][logOriginateFailure]','dialAgentRejectRetryFrequency','outboundBusyCallsDay','erlangCalls','countnoanswerretry','NOT_ACTIVE','unlockAgent','prototype','./action','trunks','[callProgressDetectingCustomer][logNoAnswerGlobal]','toLowerVariables','originateresponse','execCall','tail','[Dialer][checkChannel][pTalking][Preview]','callProgressDetectingAgent','Call\x20unsuccessful','[HistoryRecallClose]','buildAcw','createCustomerHistory','[Preview][execCall][failure]','reason','outboundBlacklistCallsDay','disableContact','sumBillable','[callProgressDetectingCustomer][logCongestion]','outboundAnswerAgiCallsDay','[Preview][validateContact][Campaign\x20Active]','predictiveIntervalErlangCalls','outbound','Calling','IsNotLoggedIn','[syncHangup][talking][cause]','isActive','destuniqueid','sumHoldTime','starttime','TrunkBackup','Agent','Queue','[callProgressDetectingCustomer][logUnknown]','rescheduleContactInQueue','[16]','../ami','outboundDropCallsDayTimeout','outboundRejectCallsDay','newexten','predictiveIntervalAvgHoldtime','total','dialstatus','[callProgressDetectingAgent][logCongestion]','countglobal','available','RecallFailedTimeout','Global','loopCampaigns','outboundOriginateFailureCallsDay','[syncHangup][talking]','pTalking','Interval','predictiveIntervalAvgTalktime','clone','SIP/%s','syncDialEnd','[CampaignPreview]\x20Campaign\x20Queue:\x20','called','callProgressDetectingCustomer','hanguprequest','dialCutDigit','voice_queue:save','createHistory','getContactPreview','Empty\x20Contact','dialBusyRetryFrequency','No\x20such\x20channel','getContactRecallMe','extractCalleridNumber','originated','NOANSWER','custom:agentcongestion','error','totalGlobal','countabandonedetry','syncHangup','acw','execRun','rejected','[callProgressDetectingCustomer][logBusy]','outboundReCallsDay','RecallInQueue','\x20Queue','Queue:\x20','NoSuchNumber','ANSWER','logAgent','updateOriginated','nosuchnumber','isNil','Action','md5','[originated][increment]','response','erlangAbandonmentRate','cause-txt','getDiff','[callProgressDetectingCustomer][logBusyGlobal]','outboundDropCallsDayACS','[callProgressDetectingCustomer][logAbandoned]','Contact\x20is\x20undefined','Empty\x20Campaign','clockClearZombieChannels','dialActive','[Preview][validateContact][Empty\x20Contact]','uuid','outboundAbandonedCallsDay','then','validateContact','[callProgressDetectingCustomer][logCongestionGlobal]','strategy','Contact','campaignsPreview','countabandonedretry','outboundUnknownCallsDay','voice:queue:%s','[Dialer][decrementTalkink][no\x20Hangup][Preview]','\x20IdHopper:\x20','lookAgent','pick','logger2','setMessage','dialOriginateCallerIdName','[default]','YYYY-MM-DD\x20HH:mm:ss','variable','abandoned','campaign\x20Name:\x20','dialPrefix','dialRandomLastDigitCallerIdNumber','outboundNoSuchCallsDay','predictiveIntervalDroppedCallsCallersExit','isTrunkReachable','[HistoryDialRecallInQueue][historyCatch]','[callProgressDetectingAgent][logBusy]','./rpcDb','substring','custom:agentConnectPreview','moment','clearZombieChannels','createAgentHistory','transfererlinkedid','scheduledAt','\x20is\x20disactive','lodash','booked','sumDuration','activeContact','dialRecallInQueue','custom:agentcalled','catch','syncBlindTransfer','[Preview][validateContact][Trunk\x20not\x20work]','blindtransfer','keys','[syncHangup][talking][increment]','addVariables','OriginateError','syncCampaigns','actions','predictiveIntervalAnsweredCalls','clearZombieChannel','channel','actionPreview','agents','Busy','./util/util','[syncHangup][talking][transfer]','predictiveIntervalMultiplicativeFactor','logBlacklist','CANCEL','dialAbandonedRetryFrequency','ListId','merge','dialMethod','sendMessageOneNotActive','[callProgressDetectingCustomer]','extractCalleridName','originatecalleridnum','BUSY','variablesAction','talking','syncNewExten','unlockContact','varset','dialNoAnswerRetryFrequency','loggerError','isUndefined','[callProgressDetectingCustomer][logUnknownGlobal]','linkedid','[clearZombieChannel]','syncOriginateResponse','logLookAgent','outboundDropCallsDayCallersExit','voiceQueues','addVariable','type','syncVarSet','predictiveIntervalTotalCalls','UserId','syncHangupRequest','VoiceQueueId','recallMe','isValid','message','\x20Trunk\x20Backup\x20is\x20not\x20active','sequence','Answer','paused','active','[getContactRecallMe]','dialCongestionMaxRetry','[callProgressDetectingCustomer][logNoSuchGlobal]','decrementTalkink','stringify','recallme','predictiveIntervalDroppedCallsTimeout','\x20Trunk\x20is\x20not\x20active','dialNoAnswerMaxRetry','dialend','undefined','answered','\x20is\x20not\x20active','callerid','length','idContact','[Preview][validateContact][Empty\x20Campaign]','unlock','Contact.phone','dialAnswer','createCustomerFinal','logCustomer','SIP/%s/%s%s','outboundCongestionCallsDay','getCallerIdRandom','countcongestionretry','pTalking:\x20','originated:\x20','answertime','finally','loggedIn','exports','name','custom:agentcomplete','responsetime','outboundAnswerCallsDay','createBody','size','bind','busy','dialNoSuchNumberRetryFrequency','[callProgressDetectingAgent][logAnswer]','Congestion','[callProgressDetectingCustomer][logNoAnswer]','talktime','AgentReject','dialAgentRejectMaxRetry','buildObj','transfertargetlinkedid','Trunk','getCallerId','[callProgressDetectingAgent][logAnswerAGI]','custom:agentnosuchnumber','status','crateCustomerReportQueue','filterKey','complete'];(function(_0x2f2e98,_0x369020){const _0x5105ef=function(_0x12dbd8){while(--_0x12dbd8){_0x2f2e98['push'](_0x2f2e98['shift']());}};_0x5105ef(++_0x369020);}(a1256_0x5105,0x1bd));const a1256_0x12db=function(_0x2f2e98,_0x369020){_0x2f2e98=_0x2f2e98-0x90;let _0x5105ef=a1256_0x5105[_0x2f2e98];return _0x5105ef;};const a1256_0x22abea=a1256_0x12db;'use strict';const util=require(a1256_0x22abea(0x18e)),_=require(a1256_0x22abea(0xe8)),uuid=require(a1256_0x22abea(0xc1)),moment=require(a1256_0x22abea(0xe2)),md5=require(a1256_0x22abea(0xb3)),logger=require(a1256_0x22abea(0x16c))(a1256_0x22abea(0x174)),loggerAction=require(a1256_0x22abea(0x16c))(a1256_0x22abea(0xfb)),ami=require(a1256_0x22abea(0x1c3)),rpcDb=require(a1256_0x22abea(0xdf)),Action=require(a1256_0x22abea(0x19f)),ut=require(a1256_0x22abea(0xfe)),{getSocket}=require('../../../rediscache'),io=getSocket(),Sequence=function(){};Sequence[a1256_0x22abea(0x19e)]['enqueue']=function(_0x14896b){const _0x49f0d9=a1256_0x22abea;this['tail']=this[_0x49f0d9(0x1a5)]?this['tail'][_0x49f0d9(0x147)](_0x14896b):_0x14896b();};function Preview(_0x106823){const _0x2e3a83=a1256_0x22abea;this[_0x2e3a83(0x126)]=new Sequence(),this[_0x2e3a83(0xc8)]=_0x106823[_0x2e3a83(0x11a)],this[_0x2e3a83(0x1a0)]=_0x106823['trunks'],this[_0x2e3a83(0xf7)]={},this[_0x2e3a83(0xfc)]=_0x106823['agents'],this[_0x2e3a83(0xbe)]=0x0,ami['on'](_0x2e3a83(0x1a3),this['syncOriginateResponse'][_0x2e3a83(0x150)](this)),ami['on']('hangup',this[_0x2e3a83(0xa3)][_0x2e3a83(0x150)](this)),ami['on'](_0x2e3a83(0x93),this['syncHangupRequest'][_0x2e3a83(0x150)](this)),ami['on'](_0x2e3a83(0x133),this['syncDialEnd'][_0x2e3a83(0x150)](this)),ami['on'](_0x2e3a83(0x1c6),this[_0x2e3a83(0x10e)][_0x2e3a83(0x150)](this)),ami['on'](_0x2e3a83(0x110),this[_0x2e3a83(0x11d)][_0x2e3a83(0x150)](this)),ami['on'](_0x2e3a83(0x176),this['syncAttendedTransfer'][_0x2e3a83(0x150)](this)),ami['on'](_0x2e3a83(0xf1),this[_0x2e3a83(0xef)][_0x2e3a83(0x150)](this)),this[_0x2e3a83(0x1cf)](this[_0x2e3a83(0xc8)]);}function emit(_0x5a73fc,_0x3f83db,_0x10ef00){const _0x5712f1=a1256_0x22abea;io['to'](_0x5a73fc)[_0x5712f1(0x17b)](_0x3f83db,_0x10ef00);}function emitCampaignPreview(_0x447fe0){const _0x247741=a1256_0x22abea;if(_0x447fe0['type']===_0x247741(0x1b5)){const _0x4015cb={'id':_0x447fe0['id'],'name':_0x447fe0[_0x247741(0x14a)],'strategy':_0x447fe0[_0x247741(0xc6)],'answered':_0x447fe0[_0x247741(0x135)],'available':_0x447fe0[_0x247741(0x1cc)],'loggedIn':_0x447fe0[_0x247741(0x148)],'pTalking':_0x447fe0['pTalking'],'sumBillable':_0x447fe0[_0x247741(0x1b0)],'sumDuration':_0x447fe0[_0x247741(0xea)],'sumHoldTime':_0x447fe0[_0x247741(0x1bb)]||0x0,'talking':_0x447fe0[_0x247741(0x10d)],'total':_0x447fe0[_0x247741(0x1c8)],'type':_0x447fe0[_0x247741(0x11c)],'unmanaged':_0x447fe0['unmanaged'],'abandoned':_0x447fe0[_0x247741(0xd6)],'waiting':_0x447fe0['waiting'],'loggedInDb':_0x447fe0['loggedInDb'],'dialActive':_0x447fe0[_0x247741(0xbf)],'dialMethod':_0x447fe0['dialMethod'],'dialOriginateCallerIdName':_0x447fe0['dialOriginateCallerIdName'],'dialOriginateCallerIdNumber':_0x447fe0['dialOriginateCallerIdNumber'],'dialOriginateTimeout':_0x447fe0['dialOriginateTimeout'],'dialPrefix':_0x447fe0[_0x247741(0xd8)],'outboundAnswerAgiCallsDay':_0x447fe0[_0x247741(0x1b2)],'outboundAnswerCallsDay':_0x447fe0[_0x247741(0x14d)],'outboundBlacklistCallsDay':_0x447fe0[_0x247741(0x1ae)],'outboundBusyCallsDay':_0x447fe0[_0x247741(0x199)],'outboundCongestionCallsDay':_0x447fe0[_0x247741(0x141)],'outboundDropCallsDayACS':_0x447fe0[_0x247741(0xba)],'outboundDropCallsDayCallersExit':_0x447fe0[_0x247741(0x119)],'outboundDropCallsDayTimeout':_0x447fe0[_0x247741(0x1c4)],'outboundNoAnswerCallsDay':_0x447fe0['outboundNoAnswerCallsDay'],'outboundNoSuchCallsDay':_0x447fe0['outboundNoSuchCallsDay'],'outboundOriginateFailureCallsDay':_0x447fe0[_0x247741(0x1d0)],'outboundReCallsDay':_0x447fe0[_0x247741(0xa8)],'outboundRejectCallsDay':_0x447fe0['outboundRejectCallsDay'],'outboundUnknownCallsDay':_0x447fe0[_0x247741(0xca)],'outboundAbandonedCallsDay':_0x447fe0['outboundAbandonedCallsDay'],'predictiveIntervalAnsweredCalls':_0x447fe0[_0x247741(0xf8)],'predictiveIntervalAvgHoldtime':_0x447fe0[_0x247741(0x1c7)],'predictiveIntervalAvgTalktime':_0x447fe0[_0x247741(0x1d4)],'predictiveIntervalDroppedCallsCallersExit':_0x447fe0[_0x247741(0xdb)],'predictiveIntervalDroppedCallsTimeout':_0x447fe0[_0x247741(0x130)],'predictiveIntervalErlangCalls':_0x447fe0[_0x247741(0x1b4)],'predictiveIntervalErlangCallsDroppedCalls':_0x447fe0['predictiveIntervalErlangCallsDroppedCalls'],'predictiveIntervalHitRate':_0x447fe0['predictiveIntervalHitRate'],'predictiveIntervalMultiplicativeFactor':_0x447fe0[_0x247741(0x100)],'predictiveIntervalPauses':_0x447fe0['predictiveIntervalPauses'],'predictiveIntervalAvailable':_0x447fe0['predictiveIntervalAvailable'],'predictiveIntervalTotalCalls':_0x447fe0[_0x247741(0x11e)],'message':_0x447fe0['message'],'originated':_0x447fe0['originated'],'erlangCalls':_0x447fe0[_0x247741(0x19a)],'erlangCallToSecond':_0x447fe0['erlangCallToSecond'],'erlangAbandonmentRate':_0x447fe0[_0x247741(0xb6)],'erlangBusyFactor':_0x447fe0['erlangBusyFactor'],'startPredictive':_0x447fe0[_0x247741(0x17e)],'startProgressive':_0x447fe0['startProgressive']};_0x447fe0[_0x247741(0x15b)]&&(_0x4015cb[_0x247741(0x15b)]={'id':_0x447fe0[_0x247741(0x15b)]['id'],'name':_0x447fe0[_0x247741(0x15b)][_0x247741(0x14a)],'active':_0x447fe0[_0x247741(0x15b)]['active'],'callerid':_0x447fe0[_0x247741(0x15b)][_0x247741(0x137)]});_0x447fe0['Interval']&&(_0x4015cb['Interval']={'id':_0x447fe0[_0x247741(0x1d3)]['id'],'name':_0x447fe0[_0x247741(0x1d3)][_0x247741(0x14a)]});const _0x5de388=md5(JSON[_0x247741(0x12e)](_0x4015cb));_0x447fe0[_0x247741(0xb3)]!==_0x5de388&&(_0x447fe0[_0x247741(0xb3)]=_0x5de388,emit(util[_0x247741(0x17a)]('voice:queue:%s',_0x4015cb[_0x247741(0x14a)]),_0x247741(0x95),_0x4015cb));}}function emitVoiceQueueChannelRemove(_0x2b94ce){const _0x3a92dc=a1256_0x22abea;logger[_0x3a92dc(0x171)](_0x3a92dc(0x18c),JSON[_0x3a92dc(0x12e)](_0x2b94ce)),emit(util['format'](_0x3a92dc(0xcb),_0x2b94ce[_0x3a92dc(0x14a)]),'voice_queue_channel:remove',_0x2b94ce);}function notSendMessagesQueue(_0x5ab145){const _0x422c76=a1256_0x22abea;_0x5ab145[_0x422c76(0x107)]&&(_0x5ab145[_0x422c76(0x9d)]===0x0&&_0x5ab145[_0x422c76(0x1d2)]===0x0?(_0x5ab145['sendMessageOneNotActive']=![],_0x5ab145['available']=0x0,_0x5ab145[_0x422c76(0x128)]=0x0,_0x5ab145[_0x422c76(0x124)]=_0x422c76(0x19c),ut[_0x422c76(0x177)](_0x422c76(0x90),_0x5ab145[_0x422c76(0x14a)]+_0x422c76(0x136))):(_0x5ab145[_0x422c76(0x124)]=_0x422c76(0x185),ut['logger'](_0x422c76(0x90),_0x5ab145[_0x422c76(0x14a)]+_0x422c76(0xe7))),emitCampaignPreview(_0x5ab145));}Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0x1cf)]=function(){const _0x4a3580=this;setInterval(function(){const _0x5e9c06=a1256_0x12db;_0x4a3580[_0x5e9c06(0xf6)]();},0x7cf);},Preview[a1256_0x22abea(0x19e)]['syncCampaigns']=function(){const _0x521032=a1256_0x22abea,_0x3e6f5e=this['campaignsPreview'];this[_0x521032(0xbe)]+=0x1;for(const _0x355800 in _0x3e6f5e){typeof _0x3e6f5e[_0x355800]!==_0x521032(0x134)&&(_0x3e6f5e[_0x355800]['dialMethod']===_0x521032(0x174)||_0x3e6f5e[_0x355800][_0x521032(0x106)]===_0x521032(0xe9))&&_0x3e6f5e[_0x355800]['type']===_0x521032(0x1b5)&&(this[_0x521032(0xbe)]>0x7&&(this[_0x521032(0xbe)]=0x0,this[_0x521032(0xe3)]())),typeof _0x3e6f5e[_0x355800]!=='undefined'&&_0x3e6f5e[_0x355800][_0x521032(0x106)]==='preview'&&_0x3e6f5e[_0x355800]['type']==='outbound'&&(_0x3e6f5e[_0x355800][_0x521032(0xbf)]?(this[_0x521032(0xd1)](_0x3e6f5e[_0x355800]),this[_0x521032(0x122)](_0x3e6f5e[_0x355800])):notSendMessagesQueue(_0x3e6f5e[_0x355800]));}},Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0xf9)]=function(_0x13a17a){const _0x460070=a1256_0x22abea,_0x4cf496=this;this[_0x460070(0x126)]['enqueue'](function(){const _0x278177=_0x460070;if(!_['isNil'](_0x4cf496[_0x278177(0xf7)][_0x13a17a]))return loggerAction[_0x278177(0x171)]('[clearZombieChannels][talking]',_0x13a17a,_0x278177(0x1bf),_0x4cf496[_0x278177(0xf7)][_0x13a17a][_0x278177(0x196)],_0x278177(0x145),JSON[_0x278177(0x12e)](_0x4cf496['campaignsPreview'][_0x4cf496[_0x278177(0xf7)][_0x13a17a][_0x278177(0x196)]][_0x278177(0x9d)]),_0x278177(0x144),JSON[_0x278177(0x12e)](_0x4cf496['campaignsPreview'][_0x4cf496[_0x278177(0xf7)][_0x13a17a][_0x278177(0x196)]][_0x278177(0x1d2)]),JSON[_0x278177(0x12e)](_0x4cf496[_0x278177(0xf7)][_0x13a17a][_0x278177(0x13d)]),JSON[_0x278177(0x12e)](_[_0x278177(0xcf)](_0x4cf496[_0x278177(0xf7)][_0x13a17a],['contactId',_0x278177(0x11f),_0x278177(0x121),_0x278177(0x104)]))),ami[_0x278177(0xb2)]({'action':_0x278177(0x15f),'channel':_0x4cf496[_0x278177(0xf7)][_0x13a17a]['channel']})[_0x278177(0xee)](function(_0x2b8446){const _0x3e58e6=_0x278177;_0x2b8446[_0x3e58e6(0x124)]===_0x3e58e6(0x9a)&&setTimeout(function(){const _0x104d2c=_0x3e58e6;_0x4cf496[_0x104d2c(0xf7)][_0x13a17a]&&(ut[_0x104d2c(0xaf)](_0x4cf496['campaignsPreview'][_0x4cf496[_0x104d2c(0xf7)][_0x13a17a]['queue']],_0x104d2c(0x116)),_0x4cf496['actions'][_0x13a17a][_0x104d2c(0x13d)]===!![]&&(ut[_0x104d2c(0x12d)](_0x4cf496[_0x104d2c(0xc8)][_0x4cf496[_0x104d2c(0xf7)][_0x13a17a][_0x104d2c(0x196)]],_0x104d2c(0x116)),ut[_0x104d2c(0x112)](_0x104d2c(0x1a6)+_0x13a17a,_0x4cf496['actions'][_0x13a17a][_0x104d2c(0x196)])),ut[_0x104d2c(0x112)]('[Dialer][checkChannel][Preview]'+_0x13a17a,_0x4cf496['actions'][_0x13a17a]['queue']),delete _0x4cf496[_0x104d2c(0xf7)][_0x13a17a]);},0x2328);});});},Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0xe3)]=function(){const _0x404ca0=a1256_0x22abea,_0x1c7650=this;loggerAction[_0x404ca0(0x171)]('[action]',_[_0x404ca0(0x14f)](this[_0x404ca0(0xf7)]));for(const _0x2c4862 in this['actions']){typeof _0x1c7650[_0x404ca0(0xf7)][_0x2c4862]!==_0x404ca0(0x134)&&_0x1c7650[_0x404ca0(0xf9)](_0x2c4862);}},Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0x122)]=function(_0x5ea4f9){const _0x3584c6=a1256_0x22abea,_0xb32055=this;rpcDb[_0x3584c6(0x9b)](_0x5ea4f9['id'],ut[_0x3584c6(0x183)](this[_0x3584c6(0xfc)]))[_0x3584c6(0xc3)](function(_0x2f8c78){const _0x14243b=_0x3584c6;if(!_[_0x14243b(0xb1)](_0x2f8c78))for(let _0x374ef5=0x0;_0x374ef5<_0x2f8c78[_0x14243b(0x138)];_0x374ef5+=0x1){if(ut[_0x14243b(0xb8)](_0x2f8c78[_0x374ef5]['scheduledat'])<_0x5ea4f9[_0x14243b(0x188)]*0x3c)_0x2f8c78[_0x374ef5][_0x14243b(0x1be)]&&!_0x2f8c78[_0x374ef5][_0x14243b(0x1be)][_0x14243b(0x167)]?_0xb32055[_0x14243b(0x187)](_0x2f8c78[_0x374ef5]['id'])[_0x14243b(0xc3)](ut[_0x14243b(0xd0)](_0x14243b(0x18a)))['catch'](ut[_0x14243b(0xd0)](_0x14243b(0x18a))):rpcDb['disableContact'](_0x2f8c78[_0x374ef5]['id']);else{const _0x153334=new Action(_0x2f8c78[_0x374ef5],_0x5ea4f9);_0x153334[_0x14243b(0x1bc)]=moment()['format'](_0x14243b(0xd4)),_0x5ea4f9[_0x14243b(0xa8)]+=0x1,ut[_0x14243b(0x13f)](_0x153334,0x17,_0x14243b(0xa9)),_0x5ea4f9[_0x14243b(0xec)]?(rpcDb[_0x14243b(0x1c1)](ut[_0x14243b(0x14e)](_0x2f8c78[_0x374ef5])),rpcDb[_0x14243b(0x1ab)](_0x153334,_0x14243b(0xdd))):(ut[_0x14243b(0x13f)](_0x153334,0x16,_0x14243b(0x1cd)),rpcDb[_0x14243b(0x1ab)](_0x153334,_0x14243b(0x1a9)),rpcDb[_0x14243b(0x13e)](_0x153334,_0x14243b(0x1a9)));}}})[_0x3584c6(0xee)](ut[_0x3584c6(0xd0)](_0x3584c6(0x12a)));},Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0xd1)]=function(_0x4121e6){const _0xa0bd57=a1256_0x22abea;_0x4121e6[_0xa0bd57(0x107)]=!![];if(ut[_0xa0bd57(0x1b7)](_0x4121e6[_0xa0bd57(0x148)]))_0x4121e6[_0xa0bd57(0x124)]='AGENTS_NOT_LOGGED';else{if(!ut['isActive'](_0x4121e6[_0xa0bd57(0xbf)]))_0x4121e6[_0xa0bd57(0x124)]=_0xa0bd57(0x19c);else!this['isTrunkReachable'](_0x4121e6[_0xa0bd57(0x15b)])?!this[_0xa0bd57(0xdc)](_0x4121e6[_0xa0bd57(0x1bd)])?_0x4121e6['message']='TRUNK_IS_NOT_REACHABLE':_0x4121e6[_0xa0bd57(0x124)]='ACTIVE':_0x4121e6['message']='ACTIVE';}emitCampaignPreview(_0x4121e6);},Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0x92)]=function(_0x3056cd,_0x1010a3,_0x3c0c7d){const _0x28327f=a1256_0x22abea,_0x322fb4=this[_0x28327f(0xf7)][_0x1010a3],_0x5d83ad=this[_0x28327f(0xc8)][_0x322fb4[_0x28327f(0x196)]];let _0x1a297b;if(_0x5d83ad){switch(_0x3c0c7d){case'1':_0x5d83ad[_0x28327f(0xda)]+=0x1,_0x322fb4[_0x28327f(0x189)]+=0x1,_0x322fb4[_0x28327f(0x1cb)]=ut[_0x28327f(0xa1)](_0x322fb4),ut['logCustomer'](_0x322fb4,0x0,'NoSuchNumber'),ami[_0x28327f(0x17b)](_0x28327f(0x15e),ut[_0x28327f(0x159)](_0x322fb4,_0x28327f(0xb0))),rpcDb[_0x28327f(0x1ab)](_0x322fb4,'[callProgressDetectingCustomer][logNoSuch]');ut[_0x28327f(0xa1)](_0x322fb4)>=_0x5d83ad[_0x28327f(0x16a)]?(_0x1a297b=ut[_0x28327f(0x181)](_0x322fb4,0xf,_0x28327f(0x1ce)),rpcDb[_0x28327f(0x13e)](_0x1a297b,_0x28327f(0x12c))):_0x322fb4[_0x28327f(0x189)]>=_0x5d83ad['dialNoSuchNumberMaxRetry']?rpcDb[_0x28327f(0x13e)](_0x322fb4,_0x28327f(0x12c)):rpcDb[_0x28327f(0x16d)](ut[_0x28327f(0xe6)](_0x322fb4,'countnosuchnumberretry',_0x5d83ad[_0x28327f(0x152)]),_0x322fb4['unlockAgent'],_0x322fb4[_0x28327f(0xeb)]);delete this[_0x28327f(0xf7)][_0x3056cd[_0x28327f(0x115)]];break;case'ANSWER':{const _0x4af6f6=moment()[_0x28327f(0x17a)](_0x28327f(0xd4));_0x322fb4[_0x28327f(0x14c)]=_0x4af6f6,_0x322fb4[_0x28327f(0x146)]=_0x4af6f6,_0x322fb4[_0x28327f(0x13d)]=!![],_0x5d83ad[_0x28327f(0x1d2)]+=0x1,logger[_0x28327f(0x171)](_0x28327f(0xf3),_0x322fb4['uniqueid'],_0x28327f(0xaa),_0x5d83ad[_0x28327f(0x14a)],_0x28327f(0x144),_0x5d83ad[_0x28327f(0x1d2)]),ami['emit'](_0x28327f(0x18b),ut[_0x28327f(0x159)](_0x322fb4,'connect',this[_0x28327f(0xc8)][_0x322fb4[_0x28327f(0x196)]])),_0x5d83ad[_0x28327f(0xa4)]&&ami[_0x28327f(0x17b)](_0x28327f(0xe1),ut[_0x28327f(0x1aa)](_0x322fb4));}break;case'16':ami['emit'](_0x28327f(0x14b),ut['buildObj'](_0x322fb4,_0x28327f(0x162),this[_0x28327f(0xc8)][_0x322fb4['queue']])),emitVoiceQueueChannelRemove(ut[_0x28327f(0x159)](_0x322fb4,_0x28327f(0x162))),_0x5d83ad['outboundAnswerCallsDay']+=0x1,_0x5d83ad[_0x28327f(0x1c8)]+=0x1,_0x5d83ad['answered']+=0x1,ut[_0x28327f(0x12d)](_0x5d83ad,_0x28327f(0x1c2)),_0x322fb4[_0x28327f(0x1cb)]=ut[_0x28327f(0xa1)](_0x322fb4),ut[_0x28327f(0x13f)](_0x322fb4,0x4,_0x28327f(0x127)),rpcDb['createCustomerHistory'](_0x322fb4,'[callProgressDetectingCustomer][logAnswer]'),rpcDb[_0x28327f(0x13e)](_0x322fb4,'[callProgressDetectingCustomer][logAnswerGlobal]'),rpcDb[_0x28327f(0x160)](_0x322fb4),_0x5d83ad[_0x28327f(0xea)]+=_0x322fb4[_0x28327f(0x156)],_0x5d83ad[_0x28327f(0x1b0)]+=_0x322fb4[_0x28327f(0x156)],logger[_0x28327f(0x171)]('[syncHangup][talking][decrement]',_0x322fb4['uniqueid'],'\x20Queue',_0x5d83ad[_0x28327f(0x14a)],'pTalking:\x20',_0x5d83ad[_0x28327f(0x1d2)]),delete this[_0x28327f(0xf7)][_0x3056cd[_0x28327f(0x115)]];break;case _0x28327f(0x10b):_0x5d83ad[_0x28327f(0x199)]+=0x1,_0x322fb4[_0x28327f(0x16f)]+=0x1,_0x322fb4[_0x28327f(0x1cb)]=ut[_0x28327f(0xa1)](_0x322fb4),ut['logCustomer'](_0x322fb4,0x5,_0x28327f(0xfd)),ami[_0x28327f(0x17b)]('custom:agentbusy',ut[_0x28327f(0x159)](_0x322fb4,_0x28327f(0x151))),rpcDb['createCustomerHistory'](_0x322fb4,_0x28327f(0xa7));ut[_0x28327f(0xa1)](_0x322fb4)>=_0x5d83ad[_0x28327f(0x16a)]?(_0x1a297b=ut['cloneAction'](_0x322fb4,0xf,_0x28327f(0x1ce)),rpcDb['createCustomerFinal'](_0x1a297b,_0x28327f(0xb9))):_0x322fb4['countbusyretry']>=_0x5d83ad[_0x28327f(0x168)]?rpcDb[_0x28327f(0x13e)](_0x322fb4,_0x28327f(0xa7)):rpcDb['rescheduleContact'](ut[_0x28327f(0xe6)](_0x322fb4,_0x28327f(0x16f),_0x5d83ad[_0x28327f(0x99)]),_0x322fb4[_0x28327f(0x19d)],_0x322fb4[_0x28327f(0xeb)]);break;case _0x28327f(0x9e):_0x5d83ad[_0x28327f(0x17f)]+=0x1,_0x322fb4['countnoanswerretry']+=0x1,_0x322fb4['countglobal']=ut['totalGlobal'](_0x322fb4),ut[_0x28327f(0x13f)](_0x322fb4,0x3,'NoAnswer'),ami[_0x28327f(0x17b)](_0x28327f(0x175),ut['buildObj'](_0x322fb4,'noanswer')),rpcDb[_0x28327f(0x1ab)](_0x322fb4,_0x28327f(0x155));ut[_0x28327f(0xa1)](_0x322fb4)>=_0x5d83ad[_0x28327f(0x16a)]?(_0x1a297b=ut[_0x28327f(0x181)](_0x322fb4,0xf,_0x28327f(0x1ce)),rpcDb[_0x28327f(0x13e)](_0x1a297b,_0x28327f(0x1a1))):_0x322fb4[_0x28327f(0x19b)]>=_0x5d83ad[_0x28327f(0x132)]?rpcDb['createCustomerFinal'](_0x322fb4,_0x28327f(0x155)):rpcDb['rescheduleContact'](ut[_0x28327f(0xe6)](_0x322fb4,'countnoanswerretry',_0x5d83ad[_0x28327f(0x111)]),_0x322fb4[_0x28327f(0x19d)],_0x322fb4['activeContact']);break;case'CONGESTION':_0x5d83ad[_0x28327f(0x141)]+=0x1,_0x322fb4['countcongestionretry']+=0x1,_0x322fb4[_0x28327f(0x1cb)]=ut['totalGlobal'](_0x322fb4),ut[_0x28327f(0x13f)](_0x322fb4,0x8,_0x28327f(0x154)),ami[_0x28327f(0x17b)](_0x28327f(0x9f),ut[_0x28327f(0x159)](_0x322fb4,'congestion')),rpcDb[_0x28327f(0x1ab)](_0x322fb4,_0x28327f(0x1b1));ut[_0x28327f(0xa1)](_0x322fb4)>=_0x5d83ad['dialGlobalMaxRetry']?(_0x1a297b=ut[_0x28327f(0x181)](_0x322fb4,0xf,_0x28327f(0x1ce)),rpcDb[_0x28327f(0x13e)](_0x1a297b,_0x28327f(0xc5))):_0x322fb4[_0x28327f(0x143)]>=_0x5d83ad[_0x28327f(0x12b)]?rpcDb[_0x28327f(0x13e)](_0x322fb4,_0x28327f(0x1b1)):rpcDb[_0x28327f(0x16d)](ut[_0x28327f(0xe6)](_0x322fb4,_0x28327f(0x143),_0x5d83ad['dialBusyRetryFrequency']),_0x322fb4[_0x28327f(0x19d)],_0x322fb4['activeContact']);break;case _0x28327f(0x102):_0x5d83ad[_0x28327f(0x1c5)]+=0x1,_0x322fb4[_0x28327f(0x173)]+=0x1,_0x322fb4[_0x28327f(0x1cb)]=ut[_0x28327f(0xa1)](_0x322fb4),ut[_0x28327f(0x13f)](_0x322fb4,0x14,'AgentReject'),ami[_0x28327f(0x17b)]('custom:agentreject',ut[_0x28327f(0x159)](_0x322fb4,'agentreject')),rpcDb[_0x28327f(0x1ab)](_0x322fb4,'[syncHangupRequest][logAgentReject]');ut[_0x28327f(0xa1)](_0x322fb4)>=_0x5d83ad[_0x28327f(0x16a)]?(_0x1a297b=ut['cloneAction'](_0x322fb4,0x14,_0x28327f(0x157)),rpcDb['createCustomerFinal'](_0x1a297b,_0x28327f(0x192))):_0x322fb4[_0x28327f(0x173)]>=_0x5d83ad[_0x28327f(0x158)]?rpcDb['createCustomerFinal'](_0x322fb4,_0x28327f(0x192)):rpcDb['rescheduleContact'](ut[_0x28327f(0xe6)](_0x322fb4,_0x28327f(0x173),_0x5d83ad[_0x28327f(0x198)]),_0x322fb4[_0x28327f(0x19d)],_0x322fb4[_0x28327f(0xeb)]);break;case _0x28327f(0x16b):_0x5d83ad[_0x28327f(0xc2)]+=0x1,_0x322fb4['countabandonedretry']+=0x1,_0x322fb4[_0x28327f(0x1cb)]=ut['totalGlobal'](_0x322fb4),ut[_0x28327f(0x13f)](_0x322fb4,0xb,'Abandoned'),rpcDb[_0x28327f(0x1ab)](_0x322fb4,_0x28327f(0xbb));ut[_0x28327f(0xa1)](_0x322fb4)>=_0x5d83ad['dialGlobalMaxRetry']?(_0x1a297b=ut['cloneAction'](_0x322fb4,0xf,_0x28327f(0x1ce)),rpcDb[_0x28327f(0x13e)](_0x1a297b,_0x28327f(0xbb))):_0x322fb4[_0x28327f(0xa2)]>=_0x5d83ad[_0x28327f(0x165)]?rpcDb[_0x28327f(0x13e)](_0x322fb4,_0x28327f(0xbb)):rpcDb['rescheduleContact'](ut[_0x28327f(0xe6)](_0x322fb4,_0x28327f(0xc9),_0x5d83ad[_0x28327f(0x103)]),_0x322fb4[_0x28327f(0x19d)],_0x322fb4[_0x28327f(0xeb)]);break;default:_0x322fb4['dialAnswer']&&(ut[_0x28327f(0x12d)](_0x5d83ad,_0x28327f(0xd3)),ut[_0x28327f(0x112)](_0x28327f(0xcc)+_0x5d83ad['name'],_0x3056cd));_0x5d83ad[_0x28327f(0xca)]+=0x1,_0x322fb4[_0x28327f(0x1cb)]=ut[_0x28327f(0xa1)](_0x322fb4),ut[_0x28327f(0x13f)](_0x322fb4,0xc,_0x3056cd[_0x28327f(0xb7)]||_0x3056cd[_0x28327f(0x1c9)]),rpcDb[_0x28327f(0x1ab)](_0x322fb4,_0x28327f(0x1c0));ut[_0x28327f(0xa1)](_0x322fb4)>=_0x5d83ad['dialGlobalMaxRetry']?(_0x1a297b=ut['cloneAction'](_0x322fb4,0xf,_0x28327f(0x1ce)),rpcDb[_0x28327f(0x13e)](_0x1a297b,_0x28327f(0x114))):rpcDb[_0x28327f(0x13e)](_0x322fb4,_0x28327f(0x114));delete this[_0x28327f(0xf7)][_0x3056cd[_0x28327f(0x115)]];}!(_0x322fb4[_0x28327f(0x13d)]&&_0x3c0c7d==='16')&&(ut[_0x28327f(0xaf)](_0x5d83ad,_0x28327f(0x108)),logger[_0x28327f(0x171)](_0x28327f(0x184),_0x322fb4['uniqueid'],'\x20Queue',_0x5d83ad['name'],_0x28327f(0x145),_0x5d83ad[_0x28327f(0x9d)])),_0x3c0c7d!==_0x28327f(0xad)&&(delete this[_0x28327f(0xf7)][_0x3056cd[_0x28327f(0x115)]],delete this[_0x28327f(0xf7)][_0x3056cd[_0x28327f(0x163)]]);}},Preview['prototype'][a1256_0x22abea(0x1a7)]=function(_0x518b26,_0x21054d,_0x52e227){const _0x501762=a1256_0x22abea;if(_[_0x501762(0x113)](_0x21054d)&&'object'!==typeof _0x21054d)return;if(_['isUndefined'](_0x52e227)&&'object'!==typeof _0x52e227)return;switch(_0x52e227[_0x501762(0x1ad)]){case'0':ut[_0x501762(0xae)](_0x518b26,0x0,_0x501762(0xac)),rpcDb[_0x501762(0xe4)](_0x518b26,'[callProgressDetectingAgent][logNoSuch]');break;case'3':ut[_0x501762(0xae)](_0x518b26,0x3,'NoAnswer'),rpcDb[_0x501762(0xe4)](_0x518b26,_0x501762(0x172));break;case'5':ut[_0x501762(0xae)](_0x518b26,0x5,_0x501762(0xfd)),rpcDb[_0x501762(0xe4)](_0x518b26,_0x501762(0xde));break;case'8':ut[_0x501762(0xae)](_0x518b26,0x8,_0x501762(0x154)),rpcDb[_0x501762(0xe4)](_0x518b26,_0x501762(0x1ca));break;case'22':ut[_0x501762(0xae)](_0x518b26,0x16,'AnswerAGI'),rpcDb['createAgentHistory'](_0x518b26,_0x501762(0x15d));break;default:ut[_0x501762(0xae)](_0x518b26,0xc,_0x52e227[_0x501762(0x1ad)]),rpcDb[_0x501762(0xe4)](_0x518b26,_0x501762(0x1ca));}ut['updateOriginated'](_0x21054d,'[callProgressDetectingAgent]'),logger['info'](_0x501762(0x182),_0x518b26[_0x501762(0x180)],_0x501762(0xaa),_0x21054d[_0x501762(0x14a)],_0x501762(0x145),_0x21054d[_0x501762(0x9d)]),delete this[_0x501762(0xf7)][_0x518b26[_0x501762(0x180)]];},Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0x164)]=function(_0x1b9f4a,_0xddebd7,_0x486871,_0x3811f5,_0x2a3685){const _0x19dacf=this;return new Promise(function(_0x1f047d,_0x49d31b){const _0x48b268=a1256_0x12db;if(_[_0x48b268(0xb1)](_0xddebd7)||_[_0x48b268(0xb1)](_0xddebd7['Contact'])||_['isNil'](_0xddebd7[_0x48b268(0xc7)]['phone'])||_[_0x48b268(0xb1)](_0xddebd7[_0x48b268(0x121)])){_0x49d31b(ut['message'](_0x48b268(0xbc),_0x3811f5,_0x2a3685));return;}const _0x4a6722=uuid['v4'](),_0x4d840c=_0x19dacf['campaignsPreview'][_0xddebd7[_0x48b268(0x1bf)][_0x48b268(0x14a)]],_0x5ee79e=_0x486871?_0x19dacf[_0x48b268(0xfc)][_0x486871]['id']:undefined;_0x19dacf['actions'][_0x4a6722]=new Action(_0xddebd7,_0x4d840c,_0x4a6722,_0x486871,_0x5ee79e);const _0x1b179f=_0x19dacf[_0x48b268(0xf7)][_0x4a6722];_0x1b179f[_0x48b268(0x19d)]=_0x3811f5,_0x1b179f[_0x48b268(0xeb)]=_0x2a3685,_0x1b179f[_0x48b268(0xce)]=_0x486871,_[_0x48b268(0x17d)](_0x1b9f4a)?_0x19dacf[_0x48b268(0x1a4)](_0x1b179f,_0x4d840c,_0xddebd7,_0x486871)[_0x48b268(0xc3)](function(_0x487bc1){const _0x15a369=_0x48b268;logger[_0x15a369(0x171)]('[Preview][execCall][success]',_0x15a369(0xab)+_0x1b179f[_0x15a369(0x196)]+_0x15a369(0xcd)+_0x1b179f[_0x15a369(0x139)],JSON[_0x15a369(0x12e)](_0x487bc1)),ami[_0x15a369(0x17b)](_0x15a369(0xed),ut[_0x15a369(0x159)](_0x1b179f,_0x15a369(0x91),_0x19dacf[_0x15a369(0xc8)][_0x1b179f[_0x15a369(0x196)]])),_0x1f047d(ut[_0x15a369(0x124)](_0x15a369(0x1b6)));})['catch'](function(_0x59c031){const _0x2e3d8d=_0x48b268;ut['logger'](_0x2e3d8d(0x1ac),_0x59c031),_0x49d31b(ut[_0x2e3d8d(0x124)](_0x2e3d8d(0x186),_0x3811f5,_0x2a3685));}):(_0x4d840c['outboundBlacklistCallsDay']+=0x1,ut[_0x48b268(0x101)](_0x1b179f),rpcDb[_0x48b268(0x96)](_0x1b179f,_0x48b268(0x179)),delete _0x19dacf[_0x48b268(0xf7)][_0x4a6722],_0x49d31b(ut[_0x48b268(0x124)]('Contact\x20in\x20black\x20List',_0x3811f5,_0x2a3685)));});},Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0xdc)]=function(_0x101ac6){const _0x2929d1=a1256_0x22abea;return!_[_0x2929d1(0xb1)](_0x101ac6)&&!_[_0x2929d1(0xb1)](_0x101ac6[_0x2929d1(0x14a)])&&!_[_0x2929d1(0xb1)](_0x101ac6[_0x2929d1(0x129)])&&_0x101ac6[_0x2929d1(0x129)]&&!_['isNil'](this[_0x2929d1(0x1a0)][util[_0x2929d1(0x17a)](_0x2929d1(0x1d6),_0x101ac6[_0x2929d1(0x14a)])])&&!_['isNil'](this[_0x2929d1(0x1a0)][util[_0x2929d1(0x17a)](_0x2929d1(0x1d6),_0x101ac6['name'])]['status'])&&(this['trunks'][util[_0x2929d1(0x17a)](_0x2929d1(0x1d6),_0x101ac6[_0x2929d1(0x14a)])]['status']==='reachable'||this[_0x2929d1(0x1a0)][util['format'](_0x2929d1(0x1d6),_0x101ac6[_0x2929d1(0x14a)])][_0x2929d1(0x15f)]===_0x2929d1(0x17c));},Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0x187)]=function(_0x1cc86e,_0x4d3475){const _0x3d371a=this;return new Promise(function(_0x1e39de,_0x4de8be){const _0x564c28=a1256_0x12db;_0x3d371a[_0x564c28(0xa5)](_0x1cc86e,_0x4d3475)[_0x564c28(0xc3)](function(_0x596ed6){_0x1e39de(_['pick'](_0x596ed6,['message']));})['catch'](function(_0x10a3fa){const _0x43d618=_0x564c28;_0x10a3fa[_0x43d618(0x13b)]&&rpcDb[_0x43d618(0x10f)](_0x1cc86e),_0x10a3fa[_0x43d618(0x129)]&&rpcDb[_0x43d618(0x1af)](_0x1cc86e),_0x4de8be(_['pick'](_0x10a3fa,[_0x43d618(0x124)]));});});},Preview[a1256_0x22abea(0x19e)]['execRun']=function(_0x2bb821,_0x1b4f09){const _0x511d3e=this;return new Promise(function(_0x1e3094,_0x4bba76){const _0x41fd72=a1256_0x12db;let _0xa515be,_0x489411;rpcDb[_0x41fd72(0x97)](_0x2bb821)['then'](function(_0x1cbee5){const _0x2e320b=_0x41fd72;!_[_0x2e320b(0xb1)](_0x1cbee5[0x0])&&(_0x489411=_0x1cbee5[0x0][_0x2e320b(0x12f)]?![]:!![],_0xa515be=_0x1cbee5[0x0][_0x2e320b(0x12f)]?!![]:![],_0xa515be=_0x1b4f09?!![]:_0xa515be);const _0x232246=_0x511d3e[_0x2e320b(0xc4)](_0x1cbee5);_0x232246[_0x2e320b(0x123)]?rpcDb['checkIsBlackList'](_[_0x2e320b(0xcf)](_0x1cbee5[0x0],[_0x2e320b(0x121),_0x2e320b(0x13c)]))['then'](function(_0x55625c){const _0x174d7a=_0x2e320b;_0x511d3e[_0x174d7a(0x164)](_0x55625c,_0x1cbee5[0x0],_0x1b4f09,_0x489411,_0xa515be)[_0x174d7a(0xc3)](function(_0x54b3d4){_0x1e3094(_0x54b3d4);})[_0x174d7a(0xee)](function(_0x453842){_0x4bba76(_0x453842);});})[_0x2e320b(0xee)](function(_0x504f1a){const _0x4a87c7=_0x2e320b;ut[_0x4a87c7(0x177)]('[Preview][checkIsBlackList]',_0x504f1a),_0x4bba76(ut[_0x4a87c7(0x124)](_0x4a87c7(0x1a8),_0x489411,_0xa515be));}):_0x4bba76(ut[_0x2e320b(0x124)](_0x232246[_0x2e320b(0x124)],_0x489411,_0xa515be));})[_0x41fd72(0xee)](function(_0xe7edfd){const _0x3432e8=_0x41fd72;ut[_0x3432e8(0x177)]('[Preview][getContactPreview]',_0xe7edfd),_0x4bba76(ut[_0x3432e8(0x124)](_0x3432e8(0x1a8),![],!![]));});});},Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0xc4)]=function(_0x16f8f5){const _0x135e28=a1256_0x22abea;if(_[_0x135e28(0xb1)](_0x16f8f5)||_[_0x135e28(0x17d)](_0x16f8f5)||!_[_0x135e28(0xb1)](_0x16f8f5[0x0]['Agent'])&&_[_0x135e28(0xb1)](_0x16f8f5[0x0][_0x135e28(0x1be)][_0x135e28(0x14a)]))return ut[_0x135e28(0x177)](_0x135e28(0xc0),_0x16f8f5),{'isValid':![],'message':_0x135e28(0x98)};const _0x29750c=this[_0x135e28(0xc8)][_0x16f8f5[0x0]['Queue']['name']];_0x29750c[_0x135e28(0x124)]='ACTIVE';if(_[_0x135e28(0xb1)](_0x29750c))return ut['logger'](_0x135e28(0x13a),_0x29750c),{'isValid':![],'message':_0x135e28(0xbd)};if(!this['isTrunkReachable'](_0x29750c['Trunk'])){ut[_0x135e28(0x177)](_0x135e28(0xf0),'campaign\x20Name:\x20'+_0x29750c[_0x135e28(0x14a)]+_0x135e28(0x131));if(!this['isTrunkReachable'](_0x29750c[_0x135e28(0x1bd)]))return ut[_0x135e28(0x177)](_0x135e28(0xf0),_0x29750c[_0x135e28(0x14a)]+_0x135e28(0x125)),{'isValid':![],'message':_0x135e28(0x178)};}if(!ut[_0x135e28(0x1b9)](_0x29750c[_0x135e28(0xbf)]))return ut[_0x135e28(0x177)](_0x135e28(0x1b3),_0x29750c[_0x135e28(0x14a)]+_0x135e28(0x190)),{'isValid':![],'message':_0x135e28(0xd7)+_0x29750c[_0x135e28(0x14a)]+_0x135e28(0x190)};return{'isValid':!![],'message':'Is\x20Valid'};},Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0x1a4)]=function(_0x1dafea,_0x1da2bb,_0x3e21c0,_0x353833){const _0x8f41f8=this;return new Promise(function(_0x5f0871,_0x22c21){const _0xfdb776=a1256_0x12db,_0x1ec457=_0x1dafea[_0xfdb776(0x180)],_0x17e3e4=_0x8f41f8['isTrunkReachable'](_0x1da2bb[_0xfdb776(0x15b)])?util['format'](_0xfdb776(0x140),_0x1da2bb['Trunk'][_0xfdb776(0x14a)],_[_0xfdb776(0xb1)](_0x1da2bb[_0xfdb776(0xd8)])?'':_0x1da2bb[_0xfdb776(0xd8)][_0xfdb776(0x169)]()||'',_0x1da2bb[_0xfdb776(0x94)]>0x0?_0x3e21c0['Contact'][_0xfdb776(0x16e)][_0xfdb776(0xe0)](_0x1da2bb[_0xfdb776(0x94)]):_0x3e21c0['Contact'][_0xfdb776(0x16e)]):util[_0xfdb776(0x17a)](_0xfdb776(0x140),_['isNil'](_0x1da2bb[_0xfdb776(0x1bd)])?_0x1da2bb[_0xfdb776(0x15b)]['name']:_0x1da2bb[_0xfdb776(0x1bd)]['name'],_[_0xfdb776(0xb1)](_0x1da2bb[_0xfdb776(0xd8)])?'':_0x1da2bb[_0xfdb776(0xd8)][_0xfdb776(0x169)]()||'',_0x1da2bb['dialCutDigit']>0x0?_0x3e21c0['Contact'][_0xfdb776(0x16e)][_0xfdb776(0xe0)](_0x1da2bb[_0xfdb776(0x94)]):_0x3e21c0['Contact']['phone']),_0x38243a=_0x8f41f8[_0xfdb776(0xdc)](_0x1da2bb[_0xfdb776(0x15b)])?ut[_0xfdb776(0x15c)](_0x1da2bb[_0xfdb776(0x15b)][_0xfdb776(0x137)],_0x1da2bb[_0xfdb776(0xd2)],_0x1da2bb[_0xfdb776(0xd9)]>0x0?ut[_0xfdb776(0x142)](_0x1da2bb[_0xfdb776(0x195)],_0x1da2bb[_0xfdb776(0xd9)]):_0x1da2bb[_0xfdb776(0x195)]):ut[_0xfdb776(0x15c)](_[_0xfdb776(0xb1)](_0x1da2bb['TrunkBackup'])?_0x1da2bb[_0xfdb776(0x15b)]['callerid']:_0x1da2bb[_0xfdb776(0x1bd)][_0xfdb776(0x137)],_0x1da2bb[_0xfdb776(0xd2)],_0x1da2bb[_0xfdb776(0xd9)]>0x0?ut['getCallerIdRandom'](_0x1da2bb[_0xfdb776(0x195)],_0x1da2bb[_0xfdb776(0xd9)]):_0x1da2bb[_0xfdb776(0x195)]);_0x38243a&&(_0x1dafea['originatecalleridname']=ut[_0xfdb776(0x109)](_0x38243a),_0x1dafea[_0xfdb776(0x10a)]=ut[_0xfdb776(0x9c)](_0x38243a));const _0x3f2ada=ut[_0xfdb776(0xf4)](_0x1da2bb,_0x3e21c0,_0x17e3e4,_0x38243a,_0x1ec457,_0x1dafea);_[_0xfdb776(0x105)](_0x1dafea,ut[_0xfdb776(0x1a2)](_0x3f2ada)),_0x1dafea[_0xfdb776(0x1bc)]=moment()['format'](_0xfdb776(0xd4)),ami[_0xfdb776(0xb2)](ut[_0xfdb776(0x10c)](_0x1dafea,_0x1da2bb,_0x3f2ada,_0x1dafea['activeContact'],_0x353833))[_0xfdb776(0xc3)](function(_0x1ad15f){const _0x3a6f7d=_0xfdb776;_0x1da2bb['originated']+=0x1,logger[_0x3a6f7d(0x171)](_0x3a6f7d(0xb4),_0x1ec457,'\x20Queue',_0x1da2bb[_0x3a6f7d(0x14a)],_0x3a6f7d(0x145),_0x1da2bb[_0x3a6f7d(0x9d)]),_0x5f0871(_0x1ad15f);})[_0xfdb776(0xee)](function(_0x50aa5d){const _0x5607fc=_0xfdb776;ut[_0x5607fc(0xae)](_0x1dafea,0xe,_0x5607fc(0xf5)),rpcDb['createAgentHistory'](_0x1dafea,_0x5607fc(0x197)),_0x22c21(_0x50aa5d);});});},Preview['prototype'][a1256_0x22abea(0x10e)]=function(_0x39a782){const _0x2d44be=a1256_0x22abea;this['actions'][_0x39a782[_0x2d44be(0x115)]]&&(this['actions'][_0x39a782[_0x2d44be(0x115)]][_0x2d44be(0xfa)]=_0x39a782[_0x2d44be(0xfa)]);},Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0x117)]=function(_0x209f5c){const _0x22c055=a1256_0x22abea,_0x14073b=this,_0x3103c7=this[_0x22c055(0xf7)][_0x209f5c[_0x22c055(0x170)]];if(_0x3103c7){_0x3103c7['lookAgent']&&this['agents'][_0x3103c7[_0x22c055(0xce)]]&&ut[_0x22c055(0x118)](_0x3103c7,this[_0x22c055(0xfc)][_0x3103c7['lookAgent']][_0x22c055(0x14a)],this[_0x22c055(0xfc)][_0x3103c7[_0x22c055(0xce)]]['id']);const _0x41f105=_[_0x22c055(0x1d5)](_0x3103c7);_0x41f105[_0x22c055(0x14c)]=moment()[_0x22c055(0x17a)](_0x22c055(0xd4));const _0x488fc7=_0x14073b[_0x22c055(0xc8)][_0x3103c7[_0x22c055(0x196)]];ut['isFailure'](_0x209f5c[_0x22c055(0xb5)])?(_0x3103c7[_0x22c055(0x19d)]&&rpcDb[_0x22c055(0x10f)](_0x3103c7[_0x22c055(0x139)]),_0x3103c7[_0x22c055(0xeb)]&&rpcDb[_0x22c055(0x1af)](_0x3103c7[_0x22c055(0x139)]),ami[_0x22c055(0x17b)]('custom:agentringnoanswer',ut[_0x22c055(0x159)](_0x3103c7,_0x22c055(0xa6),this[_0x22c055(0xc8)][_0x3103c7[_0x22c055(0x196)]])),this[_0x22c055(0x1a7)](_0x41f105,_0x488fc7,_0x209f5c)):(_0x3103c7[_0x22c055(0x1bc)]=moment()[_0x22c055(0x17a)](_0x22c055(0xd4)),ut[_0x22c055(0xae)](_0x41f105,0x4,_0x22c055(0x127)),rpcDb[_0x22c055(0xe4)](_0x41f105,_0x22c055(0x153)));}},Preview[a1256_0x22abea(0x19e)]['syncHangup']=function(_0x547275){const _0x43ea32=a1256_0x22abea,_0x2b8136=this[_0x43ea32(0xf7)][_0x547275[_0x43ea32(0x115)]];let _0x226188;_0x2b8136&&(_0x226188=this[_0x43ea32(0xc8)][_0x2b8136[_0x43ea32(0x196)]],logger['info'](_0x43ea32(0x1d1),_0x547275[_0x43ea32(0x115)],_0x43ea32(0xaa),_0x226188[_0x43ea32(0x14a)],_0x43ea32(0x144),_0x226188[_0x43ea32(0x1d2)]));if(this[_0x43ea32(0xf7)][_0x547275['linkedid']]&&_0x547275[_0x43ea32(0x115)]!==_0x547275[_0x43ea32(0x180)]){if(_0x547275['cause']==='16'&&this[_0x43ea32(0xf7)][_0x547275['linkedid']][_0x43ea32(0x13d)])this['callProgressDetectingCustomer'](_0x547275,_0x547275['linkedid'],_0x547275[_0x43ea32(0x193)]);else this['actions'][_0x547275['linkedid']]['dialAnswer']&&(logger[_0x43ea32(0x171)](_0x43ea32(0x1b8),_0x547275[_0x43ea32(0x115)],_0x547275[_0x43ea32(0x193)],'\x20Queue',_0x226188[_0x43ea32(0x14a)],'pTalking:\x20',_0x226188[_0x43ea32(0x1d2)]),this[_0x43ea32(0x92)](_0x547275,_0x547275['linkedid'],_0x547275[_0x43ea32(0x193)]));}else{if(_0x2b8136&&_[_0x43ea32(0xb1)](_0x2b8136['statedesc'])&&_0x226188['dialQueueProject']&&_0x547275[_0x43ea32(0x115)]===_0x547275[_0x43ea32(0x180)]&&_[_0x43ea32(0xb1)](_0x547275[_0x43ea32(0x1ad)])&&_0x547275[_0x43ea32(0x193)]==='16'&&_0x547275['channelstate']==='6'&&_[_0x43ea32(0x113)](_0x2b8136[_0x43ea32(0x18d)]))_0x2b8136[_0x43ea32(0x19d)]&&rpcDb[_0x43ea32(0x10f)](_0x2b8136[_0x43ea32(0x139)]),_0x2b8136[_0x43ea32(0xeb)]&&rpcDb[_0x43ea32(0x1af)](_0x2b8136[_0x43ea32(0x139)]),_0x547275[_0x43ea32(0x1ad)]='22',this['callProgressDetectingAgent'](_0x2b8136,_0x226188,_0x547275);else{if(_0x2b8136&&_0x2b8136[_0x43ea32(0x18d)]){if(_0x547275[_0x43ea32(0x193)]==='16'&&this[_0x43ea32(0xf7)][_0x547275['linkedid']][_0x43ea32(0x13d)])logger[_0x43ea32(0x171)](_0x43ea32(0xff),_0x547275[_0x43ea32(0x115)],_0x547275[_0x43ea32(0x193)],_0x43ea32(0xaa),_0x226188[_0x43ea32(0x14a)],_0x43ea32(0x144),_0x226188['pTalking']),this['callProgressDetectingCustomer'](_0x547275,_0x547275[_0x43ea32(0x115)],_0x547275[_0x43ea32(0x193)]);else this[_0x43ea32(0xf7)][_0x547275['linkedid']]['dialAnswer']&&(logger['info'](_0x43ea32(0x1b8),_0x547275[_0x43ea32(0x115)],_0x547275['cause'],_0x43ea32(0xaa),_0x226188[_0x43ea32(0x14a)],_0x43ea32(0x144),_0x226188[_0x43ea32(0x1d2)]),this[_0x43ea32(0x92)](_0x547275,_0x547275['linkedid'],_0x547275['cause']));}}}},Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0x1d7)]=function(_0x5b4122){const _0x3f4eea=a1256_0x22abea;this[_0x3f4eea(0xf7)][_0x5b4122[_0x3f4eea(0x163)]]&&_0x5b4122['destlinkedid']!==_0x5b4122[_0x3f4eea(0x1ba)]&&this[_0x3f4eea(0x92)](_0x5b4122,_0x5b4122[_0x3f4eea(0x163)],_0x5b4122['dialstatus']);},Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0x120)]=function(_0x3a04d6){const _0x5420ab=a1256_0x22abea;this[_0x5420ab(0xf7)][_0x3a04d6['linkedid']]&&_0x3a04d6[_0x5420ab(0x115)]!==_0x3a04d6[_0x5420ab(0x180)]&&!this[_0x5420ab(0xf7)][_0x3a04d6[_0x5420ab(0x115)]][_0x5420ab(0x13d)]&&(_0x3a04d6[_0x5420ab(0x193)]==='1'&&this['callProgressDetectingCustomer'](_0x3a04d6,_0x3a04d6[_0x5420ab(0x115)],_0x3a04d6[_0x5420ab(0x193)]));},Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0x11b)]=function(_0x41dd90,_0x42dab8,_0x64b180){const _0x31cd02=a1256_0x22abea;this[_0x31cd02(0xf7)][_0x41dd90]&&(_[_0x31cd02(0xb1)](this[_0x31cd02(0xf7)][_0x41dd90][_0x31cd02(0x194)])&&(this['actions'][_0x41dd90]['variables']={}),this[_0x31cd02(0xf7)][_0x41dd90][_0x31cd02(0x194)][_0x42dab8]=_0x64b180);},Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0x11d)]=function(_0x3713be){const _0x5d2082=a1256_0x22abea;try{!_[_0x5d2082(0xb1)](_0x3713be)&&(ut[_0x5d2082(0x161)](_[_0x5d2082(0xf2)](_0x3713be[_0x5d2082(0xd5)])[0x0])&&this[_0x5d2082(0x11b)](_0x3713be[_0x5d2082(0x180)],_[_0x5d2082(0xf2)](_0x3713be[_0x5d2082(0xd5)])[0x0],_0x3713be[_0x5d2082(0x191)]));}catch(_0x4ed47e){logger[_0x5d2082(0xa0)]('[syncVarSet][Preview]',util[_0x5d2082(0x18f)](_0x4ed47e,{'showHidden':![],'depth':null}));}},Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0x166)]=function(_0x309d16){const _0x5d417f=a1256_0x22abea;_0x309d16&&(this[_0x5d417f(0xf7)][_0x309d16[_0x5d417f(0x15a)]]&&(this[_0x5d417f(0xf7)][_0x309d16[_0x5d417f(0x15a)]][_0x5d417f(0x18d)]=!![]));},Preview[a1256_0x22abea(0x19e)][a1256_0x22abea(0xef)]=function(_0x46bd6b){const _0x290256=a1256_0x22abea;_0x46bd6b&&(this['actions'][_0x46bd6b[_0x290256(0xe5)]]&&(this[_0x290256(0xf7)][_0x46bd6b['transfererlinkedid']]['transfer']=!![]));},module[a1256_0x22abea(0x149)]=Preview; \ No newline at end of file diff --git a/server/services/ami/preview/rpcDb.js b/server/services/ami/preview/rpcDb.js index 96a028a..70f61e7 100644 --- a/server/services/ami/preview/rpcDb.js +++ b/server/services/ami/preview/rpcDb.js @@ -1 +1 @@ -const a1257_0x28fe=['exten','unlockContact','../rpc/cmHopperBlack','type','calleridname','[createHistory]\x20','createCustomerFinal','lastAssignedTo','rescheduleContact','holdtime','../rpc/agentReportPreview','../rpc/voiceQueueReport','checkIsBlackList','[getContactPreview]\x20','util','active','uniqueid','connectedlinename','countReScheduled','getContactPreview','getContactRecallMe','inspect','from-sip','createCustomerHistory','queuecallerleaveAt','then','../rpc/cmHopperHistory','createHistory','endtime','queue','[moveContactManagedDialer]\x20','disableContact','[countReScheduled]\x20','create','[activeContact]\x20','catch','queuecallerexitreason','xcally-motion-preview','membername','resolve','calleridnum','[voiceQueueReport]\x20','answertime','../../../config/logger'];(function(_0x44c346,_0xd0c958){const _0x28fe80=function(_0x16ea79){while(--_0x16ea79){_0x44c346['push'](_0x44c346['shift']());}};_0x28fe80(++_0xd0c958);}(a1257_0x28fe,0x1b5));const a1257_0x16ea=function(_0x44c346,_0xd0c958){_0x44c346=_0x44c346-0x160;let _0x28fe80=a1257_0x28fe[_0x44c346];return _0x28fe80;};const a1257_0x28101=a1257_0x16ea;'use strict';const util=require(a1257_0x28101(0x171)),logger=require(a1257_0x28101(0x162))('preview'),cmHopper=require('../rpc/cmHopper'),cmHopperHistory=require(a1257_0x28101(0x17d)),cmHopperBlack=require(a1257_0x28101(0x165)),agentReportPreview=require(a1257_0x28101(0x16d)),voiceQueueReport=require(a1257_0x28101(0x16e));function loggerCatch(_0x5dbce2){return function(_0x3e9f83){const _0x161dc5=a1257_0x16ea;logger['error'](_0x5dbce2,util[_0x161dc5(0x178)](_0x3e9f83,{'showHidden':![],'depth':null}));};}function create(_0x2736d0){const _0x855b3b=a1257_0x28101;return Promise[_0x855b3b(0x18a)]()[_0x855b3b(0x17c)](cmHopperHistory[_0x855b3b(0x17e)](_0x2736d0))[_0x855b3b(0x186)](loggerCatch('[createHistory]\x20'));}function createAgent(_0xd1064e){const _0x2ca450=a1257_0x28101;return Promise[_0x2ca450(0x18a)]()[_0x2ca450(0x17c)](agentReportPreview[_0x2ca450(0x17e)](_0xd1064e))['catch'](loggerCatch(_0x2ca450(0x168)));}function moveContact(_0x151baa){const _0x1d4d5e=a1257_0x28101;return Promise[_0x1d4d5e(0x18a)]()[_0x1d4d5e(0x17c)](cmHopper['moveContactManagedDialer'](_0x151baa,!![]))[_0x1d4d5e(0x186)](loggerCatch(_0x1d4d5e(0x181)));}exports['checkIsBlackList']=function(_0x3008f5){const _0x377617=a1257_0x28101;return Promise['resolve']()[_0x377617(0x17c)](cmHopperBlack[_0x377617(0x16f)](_0x3008f5))[_0x377617(0x186)](loggerCatch('[checkIsBlackList]\x20'));},exports[a1257_0x28101(0x176)]=function(_0x457ac1){const _0x180592=a1257_0x28101;return Promise['resolve']()[_0x180592(0x17c)](cmHopper['getContactPreview'](_0x457ac1))['catch'](loggerCatch(_0x180592(0x170)));},exports[a1257_0x28101(0x17e)]=function(_0x1b1f2a,_0x3c80a5){const _0x29389a=a1257_0x28101;create(_0x1b1f2a)[_0x29389a(0x186)](loggerCatch(_0x3c80a5)),moveContact(_0x1b1f2a)[_0x29389a(0x186)](loggerCatch(_0x3c80a5));},exports['createAgentHistory']=function(_0x567b52,_0x4b9bff){createAgent(_0x567b52)['catch'](loggerCatch(_0x4b9bff));},exports[a1257_0x28101(0x17a)]=function(_0x2a4848,_0x20e646){const _0x1a16fd=a1257_0x28101;create(_0x2a4848)[_0x1a16fd(0x186)](loggerCatch(_0x20e646));},exports[a1257_0x28101(0x169)]=function(_0x12af09,_0xebf5e7){const _0x3ef3b6=a1257_0x28101;moveContact(_0x12af09)[_0x3ef3b6(0x186)](loggerCatch(_0xebf5e7));},exports[a1257_0x28101(0x16b)]=function(_0x11818c,_0x24d300,_0x24a34e){const _0x2d8537=a1257_0x28101;return _0x24d300&&(_0x11818c['UserId']=null),_0x24a34e&&(_0x11818c[_0x2d8537(0x172)]=![]),Promise[_0x2d8537(0x18a)]()[_0x2d8537(0x17c)](cmHopper[_0x2d8537(0x16b)](_0x11818c))[_0x2d8537(0x186)](loggerCatch('[rescheduleContact]\x20'));},exports[a1257_0x28101(0x175)]=function(_0x296cde){const _0x53f525=a1257_0x28101;return Promise[_0x53f525(0x18a)]()[_0x53f525(0x17c)](cmHopper[_0x53f525(0x175)](_0x296cde))[_0x53f525(0x186)](loggerCatch(_0x53f525(0x183)));},exports[a1257_0x28101(0x164)]=function(_0x16a8b8){const _0xfb4572=a1257_0x28101;return Promise[_0xfb4572(0x18a)]()[_0xfb4572(0x17c)](cmHopper[_0xfb4572(0x164)]({'UserId':null},_0x16a8b8,0x1))[_0xfb4572(0x186)](loggerCatch('[unlockContact]\x20'));},exports[a1257_0x28101(0x182)]=function(_0x3db5d0){const _0x540408=a1257_0x28101;return Promise[_0x540408(0x18a)]()[_0x540408(0x17c)](cmHopper[_0x540408(0x164)]({'active':![]},_0x3db5d0,0x1))[_0x540408(0x186)](loggerCatch(_0x540408(0x185)));},exports['crateCustomerReportQueue']=function(_0x5c18f6){const _0x5b81f6=a1257_0x28101,_0x45da4a={};return _0x45da4a['type']=_0x5c18f6[_0x5b81f6(0x166)],_0x45da4a[_0x5b81f6(0x173)]=_0x5c18f6[_0x5b81f6(0x173)],_0x45da4a[_0x5b81f6(0x18b)]=_0x5c18f6[_0x5b81f6(0x18b)],_0x45da4a['calleridname']=_0x5c18f6[_0x5b81f6(0x167)],_0x45da4a['queue']=_0x5c18f6[_0x5b81f6(0x180)],_0x45da4a['queuecallerjoinAt']=_0x5c18f6[_0x5b81f6(0x161)],_0x45da4a[_0x5b81f6(0x17b)]=_0x5c18f6[_0x5b81f6(0x161)],_0x45da4a['queuecallercomplete']=0x1,_0x45da4a['queuecallercompleteAt']=_0x5c18f6[_0x5b81f6(0x17f)],_0x45da4a[_0x5b81f6(0x174)]=_0x5c18f6[_0x5b81f6(0x189)],_0x45da4a['context']=_0x5b81f6(0x179),_0x45da4a[_0x5b81f6(0x163)]=_0x5b81f6(0x188),_0x45da4a[_0x5b81f6(0x16c)]=0x0,_0x45da4a['assigned']=0x1,_0x45da4a[_0x5b81f6(0x16a)]=_0x5c18f6[_0x5b81f6(0x189)],_0x45da4a[_0x5b81f6(0x187)]='COMPLETED',Promise[_0x5b81f6(0x18a)]()[_0x5b81f6(0x17c)](voiceQueueReport[_0x5b81f6(0x184)](_0x45da4a))[_0x5b81f6(0x186)](loggerCatch(_0x5b81f6(0x160)));},exports[a1257_0x28101(0x177)]=function(_0x18a34c,_0x3805cc){const _0x364541=a1257_0x28101;return Promise[_0x364541(0x18a)]()['then'](cmHopper[_0x364541(0x177)](_0x18a34c,_0x3805cc))[_0x364541(0x186)](loggerCatch('[GetContactRecallMe]\x20'));},exports['rescheduleContactInQueue']=function(_0x3036f2){const _0x400a8b=a1257_0x28101;return Promise[_0x400a8b(0x18a)]()[_0x400a8b(0x17c)](cmHopper[_0x400a8b(0x16b)](_0x3036f2,!![],!![]))[_0x400a8b(0x186)](loggerCatch('[rescheduleContactInQueue]\x20'));}; \ No newline at end of file +const a1257_0x5ac8=['queuecallerexitreason','queuecallercompleteAt','getContactPreview','[countReScheduled]\x20','[rescheduleContact]\x20','assigned','calleridname','[GetContactRecallMe]\x20','[getContactPreview]\x20','checkIsBlackList','../rpc/cmHopperHistory','queue','calleridnum','from-sip','catch','[moveContactManagedDialer]\x20','connectedlinename','[unlockContact]\x20','xcally-motion-preview','COMPLETED','[rescheduleContactInQueue]\x20','type','[createHistory]\x20','membername','then','queuecallerjoinAt','crateCustomerReportQueue','create','createHistory','error','answertime','moveContactManagedDialer','unlockContact','rescheduleContact','lastAssignedTo','inspect','../rpc/cmHopper','createCustomerFinal','../rpc/voiceQueueReport','queuecallerleaveAt','countReScheduled','[activeContact]\x20','queuecallercomplete','context','endtime','active','disableContact','holdtime','util','[voiceQueueReport]\x20','getContactRecallMe','uniqueid','resolve'];(function(_0x496164,_0x1a5406){const _0x5ac8bb=function(_0xc5765c){while(--_0xc5765c){_0x496164['push'](_0x496164['shift']());}};_0x5ac8bb(++_0x1a5406);}(a1257_0x5ac8,0x141));const a1257_0xc576=function(_0x496164,_0x1a5406){_0x496164=_0x496164-0x178;let _0x5ac8bb=a1257_0x5ac8[_0x496164];return _0x5ac8bb;};const a1257_0x3aade5=a1257_0xc576;'use strict';const util=require(a1257_0x3aade5(0x1a5)),logger=require('../../../config/logger')('preview'),cmHopper=require(a1257_0x3aade5(0x199)),cmHopperHistory=require(a1257_0x3aade5(0x17f)),cmHopperBlack=require('../rpc/cmHopperBlack'),agentReportPreview=require('../rpc/agentReportPreview'),voiceQueueReport=require(a1257_0x3aade5(0x19b));function loggerCatch(_0x51e724){return function(_0x6b7875){const _0x44589c=a1257_0xc576;logger[_0x44589c(0x192)](_0x51e724,util[_0x44589c(0x198)](_0x6b7875,{'showHidden':![],'depth':null}));};}function create(_0x4fe6e6){const _0x356626=a1257_0x3aade5;return Promise[_0x356626(0x1a9)]()['then'](cmHopperHistory[_0x356626(0x191)](_0x4fe6e6))[_0x356626(0x183)](loggerCatch(_0x356626(0x18b)));}function createAgent(_0x3bdf1b){const _0x9fc3eb=a1257_0x3aade5;return Promise[_0x9fc3eb(0x1a9)]()[_0x9fc3eb(0x18d)](agentReportPreview[_0x9fc3eb(0x191)](_0x3bdf1b))[_0x9fc3eb(0x183)](loggerCatch(_0x9fc3eb(0x18b)));}function moveContact(_0x51e8f7){const _0xe52aa2=a1257_0x3aade5;return Promise['resolve']()[_0xe52aa2(0x18d)](cmHopper[_0xe52aa2(0x194)](_0x51e8f7,!![]))[_0xe52aa2(0x183)](loggerCatch(_0xe52aa2(0x184)));}exports[a1257_0x3aade5(0x17e)]=function(_0x3552fd){const _0x4782fa=a1257_0x3aade5;return Promise[_0x4782fa(0x1a9)]()[_0x4782fa(0x18d)](cmHopperBlack[_0x4782fa(0x17e)](_0x3552fd))[_0x4782fa(0x183)](loggerCatch('[checkIsBlackList]\x20'));},exports[a1257_0x3aade5(0x1ac)]=function(_0x13acae){const _0xea112a=a1257_0x3aade5;return Promise[_0xea112a(0x1a9)]()[_0xea112a(0x18d)](cmHopper['getContactPreview'](_0x13acae))['catch'](loggerCatch(_0xea112a(0x17d)));},exports[a1257_0x3aade5(0x191)]=function(_0xca3344,_0x53c4e3){const _0x26ed59=a1257_0x3aade5;create(_0xca3344)[_0x26ed59(0x183)](loggerCatch(_0x53c4e3)),moveContact(_0xca3344)[_0x26ed59(0x183)](loggerCatch(_0x53c4e3));},exports['createAgentHistory']=function(_0x22197c,_0x546286){const _0xf34e6e=a1257_0x3aade5;createAgent(_0x22197c)[_0xf34e6e(0x183)](loggerCatch(_0x546286));},exports['createCustomerHistory']=function(_0x37c8bc,_0x23fa81){const _0x1f59fb=a1257_0x3aade5;create(_0x37c8bc)[_0x1f59fb(0x183)](loggerCatch(_0x23fa81));},exports[a1257_0x3aade5(0x19a)]=function(_0x2ce883,_0x2405bd){moveContact(_0x2ce883)['catch'](loggerCatch(_0x2405bd));},exports[a1257_0x3aade5(0x196)]=function(_0x2fa52a,_0x5130cd,_0x3f0166){const _0x43612e=a1257_0x3aade5;return _0x5130cd&&(_0x2fa52a['UserId']=null),_0x3f0166&&(_0x2fa52a[_0x43612e(0x1a2)]=![]),Promise['resolve']()[_0x43612e(0x18d)](cmHopper['rescheduleContact'](_0x2fa52a))[_0x43612e(0x183)](loggerCatch(_0x43612e(0x179)));},exports[a1257_0x3aade5(0x19d)]=function(_0x1634b0){const _0x5c85f5=a1257_0x3aade5;return Promise[_0x5c85f5(0x1a9)]()[_0x5c85f5(0x18d)](cmHopper['countReScheduled'](_0x1634b0))[_0x5c85f5(0x183)](loggerCatch(_0x5c85f5(0x178)));},exports[a1257_0x3aade5(0x195)]=function(_0x3eac16){const _0x326b62=a1257_0x3aade5;return Promise[_0x326b62(0x1a9)]()[_0x326b62(0x18d)](cmHopper[_0x326b62(0x195)]({'UserId':null},_0x3eac16,0x1))[_0x326b62(0x183)](loggerCatch(_0x326b62(0x186)));},exports[a1257_0x3aade5(0x1a3)]=function(_0x3ac6d8){const _0x211fe8=a1257_0x3aade5;return Promise[_0x211fe8(0x1a9)]()[_0x211fe8(0x18d)](cmHopper[_0x211fe8(0x195)]({'active':![]},_0x3ac6d8,0x1))['catch'](loggerCatch(_0x211fe8(0x19e)));},exports[a1257_0x3aade5(0x18f)]=function(_0x157442){const _0xcfd440=a1257_0x3aade5,_0x1cbc33={};return _0x1cbc33[_0xcfd440(0x18a)]=_0x157442[_0xcfd440(0x18a)],_0x1cbc33[_0xcfd440(0x1a8)]=_0x157442[_0xcfd440(0x1a8)],_0x1cbc33[_0xcfd440(0x181)]=_0x157442[_0xcfd440(0x181)],_0x1cbc33[_0xcfd440(0x17b)]=_0x157442['calleridname'],_0x1cbc33[_0xcfd440(0x180)]=_0x157442[_0xcfd440(0x180)],_0x1cbc33[_0xcfd440(0x18e)]=_0x157442['answertime'],_0x1cbc33[_0xcfd440(0x19c)]=_0x157442[_0xcfd440(0x193)],_0x1cbc33[_0xcfd440(0x19f)]=0x1,_0x1cbc33[_0xcfd440(0x1ab)]=_0x157442[_0xcfd440(0x1a1)],_0x1cbc33[_0xcfd440(0x185)]=_0x157442[_0xcfd440(0x18c)],_0x1cbc33[_0xcfd440(0x1a0)]=_0xcfd440(0x182),_0x1cbc33['exten']=_0xcfd440(0x187),_0x1cbc33[_0xcfd440(0x1a4)]=0x0,_0x1cbc33[_0xcfd440(0x17a)]=0x1,_0x1cbc33[_0xcfd440(0x197)]=_0x157442[_0xcfd440(0x18c)],_0x1cbc33[_0xcfd440(0x1aa)]=_0xcfd440(0x188),Promise['resolve']()['then'](voiceQueueReport[_0xcfd440(0x190)](_0x1cbc33))[_0xcfd440(0x183)](loggerCatch(_0xcfd440(0x1a6)));},exports[a1257_0x3aade5(0x1a7)]=function(_0x3ae390,_0x79cd8c){const _0x53e904=a1257_0x3aade5;return Promise[_0x53e904(0x1a9)]()['then'](cmHopper[_0x53e904(0x1a7)](_0x3ae390,_0x79cd8c))['catch'](loggerCatch(_0x53e904(0x17c)));},exports['rescheduleContactInQueue']=function(_0x17b6a0){const _0x8413fe=a1257_0x3aade5;return Promise[_0x8413fe(0x1a9)]()[_0x8413fe(0x18d)](cmHopper['rescheduleContact'](_0x17b6a0,!![],!![]))[_0x8413fe(0x183)](loggerCatch(_0x8413fe(0x189)));}; \ 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 0702127..cac7aad 100644 --- a/server/services/ami/preview/util/util.js +++ b/server/services/ami/preview/util/util.js @@ -1 +1 @@ -const a1258_0x3bc6=['dialQueueProject','xcally-motion-preview','extractCalleridName','xmd-queue','uniqueid','responsetime','[updateOriginated]\x20is\x20null\x20or\x20undefined','loggerError','pTalking','countagentrejectretry','dialer','format','RECALL','isFailure','agiIp','xmd-contactid','xmd-dialid','agentReadyId','error','bridgepvtcallid','rtpaudioqosjitterbridged','endtime','createdAt','isUndefined','ListId','extractCalleridNumber','originatecalleridnum','updatedAt','sipcallid','countnosuchnumberretry','membername','recallme','calleridnum','xmd-cdrtype','rtpaudioqosrtt','dialQueueProject2','countcongestionretry','clone','countnoanswerretry','NONE','Blacklist','name','logLookAgent','monitor_format','idContact','logger','totalGlobal','rtpaudioqosrttbridged','channelAgent','interface','xmd-voicequeueid','starttime','Queue','UserId','countbusyretry','xmd-agi','scheduledat','talktime','\x22agi://%s/square,%s\x22','lodash','push','dialOriginateTimeout','addVariables','seconds','not_inuse','tags','buildAcw','_XCALLY_MIXMONITOR_UNIQUEID','milliseconds','util','xmd-callerid','buildObj','[decrementTalkink]\x20object\x20talking\x20is\x20negative','getCallerIdRandom','moment','\x22%s\x22\x20<%s>','ContactId','toLowerVariables','xmd-dialoptions','mandatoryDisposition','xmd-dialurl','diff','scheduledAt','createBody','countglobal','xmd-phone','variablesAction','originatecalleridname','updateOriginated','type','decrementTalkink','rtpaudioqosbridged','xmd-listid','rtpaudioqos','toLower','preview','Failure','reachable','minutes','../../../../config/config.service','calleridname','[updateOriginated]\x20object\x20originated\x20is\x20negative','active','originate','rtpaudioqosloss','info','logBlacklist','[decrementTalkink]\x20is\x20null\x20or\x20undefined','add','callbackuniqueid','xmd-agiafter','dialPreviewUrl','xmd-dialtimeout','pow','statedesc','isEmpty','xmd-dialchannel','match','isNil','loggerCatch','inspect','Contact','getCallerId','logAgent','state','undefined','replace','\x5cw{0,','logger2','YYYY-MM-DD\x20HH:mm:ss','originated','timeout','cloneAction','logCustomer','queue','rtpaudioqosjitter','string','IsNotLoggedIn','answertime','XMD-'];(function(_0x196923,_0x4eddf7){const _0x3bc66c=function(_0x4f5200){while(--_0x4f5200){_0x196923['push'](_0x196923['shift']());}};_0x3bc66c(++_0x4eddf7);}(a1258_0x3bc6,0x195));const a1258_0x4f52=function(_0x196923,_0x4eddf7){_0x196923=_0x196923-0x1c2;let _0x3bc66c=a1258_0x3bc6[_0x196923];return _0x3bc66c;};const a1258_0x5c71d8=a1258_0x4f52;'use strict';const util=require(a1258_0x5c71d8(0x216)),_=require(a1258_0x5c71d8(0x20c)),moment=require(a1258_0x5c71d8(0x21b)),logger=require('../../../../config/logger')(a1258_0x5c71d8(0x230)),{getConfigService}=require(a1258_0x5c71d8(0x234));function getSeconds(_0x43f147,_0x2684f7){const _0xb2afd4=a1258_0x5c71d8,_0x573bf4=moment(_0x43f147)[_0xb2afd4(0x215)](0x0),_0xef473c=moment(_0x2684f7)[_0xb2afd4(0x215)](0x0);return _0x573bf4[_0xb2afd4(0x222)](_0xef473c,_0xb2afd4(0x210));}exports[a1258_0x5c71d8(0x248)]=function(_0x3ecd59){return function(_0x56a94b){const _0x519104=a1258_0x4f52;logger[_0x519104(0x1e3)](_0x3ecd59,util['inspect'](_0x56a94b,{'showHidden':![],'depth':null}));};},exports[a1258_0x5c71d8(0x1fe)]=function(_0x255eba,_0x293851){const _0x59e1d3=a1258_0x5c71d8;logger['info'](_0x255eba,util[_0x59e1d3(0x249)](_0x293851,{'showHidden':![],'depth':null}));},exports[a1258_0x5c71d8(0x1d8)]=function(_0x44070b,_0x361387){const _0x39bec8=a1258_0x5c71d8;logger[_0x39bec8(0x1e3)](_0x44070b,util[_0x39bec8(0x249)](_0x361387,{'showHidden':![],'depth':null}));},exports[a1258_0x5c71d8(0x1c5)]=function(_0x56d1a0){return function(_0x4fb45c){const _0xfd52d5=a1258_0x4f52;logger[_0xfd52d5(0x23a)](_0x56d1a0,util[_0xfd52d5(0x249)](_0x4fb45c,{'showHidden':![],'depth':null}));};},exports['message']=function(_0x11f07f,_0x50ee1f,_0x446de6){return{'message':_0x11f07f,'unlock':_0x50ee1f,'active':_0x446de6};},exports[a1258_0x5c71d8(0x24b)]=function(_0x28e555,_0xb34cfb,_0xa2e0ca){const _0x599814=a1258_0x5c71d8;if(!_[_0x599814(0x1e8)](_0xa2e0ca)&&_0x599814(0x1cd)===typeof _0xa2e0ca&&!_[_0x599814(0x244)](_0xa2e0ca)){if(!_[_0x599814(0x1e8)](_0xb34cfb)&&_0x599814(0x1cd)===typeof _0xb34cfb&&!_[_0x599814(0x244)](_0xb34cfb))return util[_0x599814(0x1dc)](_0x599814(0x21c),_0xb34cfb,_0xa2e0ca);return util[_0x599814(0x1dc)]('\x22%s\x22\x20<%s>',_0xa2e0ca,_0xa2e0ca);}if(!_[_0x599814(0x1e8)](_0x28e555)&&'string'===typeof _0x28e555&&!_['isEmpty'](_0x28e555))return _0x28e555;return'\x22\x22\x20<>';},exports['isActive']=function(_0x449888){const _0x4989ab=a1258_0x5c71d8;if(_[_0x4989ab(0x247)](_0x449888))return![];return _0x449888;},exports[a1258_0x5c71d8(0x20f)]=function(_0x4c3d93,_0x3fd5b9,_0x22d995,_0x48ac6e,_0x24fa96,_0x35f37b){const _0x2d6e9b=a1258_0x5c71d8,_0x27c3ba=getConfigService(),_0xf2858e={'XMD-QUEUE':_0x3fd5b9[_0x2d6e9b(0x205)]?_0x3fd5b9['Queue']['name']:'','XMD-CALLERID':_0x48ac6e,'XMD-CALLERID-PREVIEW':_0x35f37b?util[_0x2d6e9b(0x1dc)](_0x2d6e9b(0x21c),_0x35f37b[_0x2d6e9b(0x235)],_0x35f37b[_0x2d6e9b(0x1f1)]):_0x48ac6e,'XMD-DIALID':_0x24fa96,'XMD-CONTACTID':_0x3fd5b9['ContactId'],'XMD-CDRTYPE':_0x2d6e9b(0x1db),'CALLERID(all)':_0x48ac6e,'XMD-VOICEQUEUEID':_0x3fd5b9['VoiceQueueId'],'XMD-DIALCHANNEL':_0x22d995,'XMD-DIALTIMEOUT':_0x4c3d93[_0x2d6e9b(0x20e)]||0x1e,'XMD-DIALOPTIONS':util['format']('\x22rtTxX%s%s\x22',_0x4c3d93[_0x2d6e9b(0x1f4)]?'g':'',_[_0x2d6e9b(0x244)](_0x4c3d93[_0x2d6e9b(0x1fc)])?'':'U(xcally-mixmonitor-context)'),'XMD-DIALURL':_0x4c3d93[_0x2d6e9b(0x240)]||'','XMD-AGI':_0x4c3d93[_0x2d6e9b(0x1d1)]?util['format'](_0x2d6e9b(0x20b),_0x27c3ba[_0x2d6e9b(0x1df)],_0x4c3d93[_0x2d6e9b(0x1d1)]):_0x2d6e9b(0x1f8),'XMD-AGIAFTER':_0x4c3d93['dialQueueProject2']?util['format'](_0x2d6e9b(0x20b),_0x27c3ba['agiIp'],_0x4c3d93['dialQueueProject2']):_0x2d6e9b(0x1f8),'XMD-ORIGINATECALLERIDNUM':_0x35f37b?_0x35f37b[_0x2d6e9b(0x1eb)]:'','XMD-ORIGINATECALLERIDNAME':_0x35f37b?_0x35f37b[_0x2d6e9b(0x228)]:'','XMD-DESTINATION':'xcally-motion-preview'};!_[_0x2d6e9b(0x244)](_0x4c3d93[_0x2d6e9b(0x1fc)])&&(_0xf2858e[util[_0x2d6e9b(0x1dc)]('%s','_XCALLY_MIXMONITOR_FORMAT')]=_0x4c3d93['monitor_format'],_0xf2858e[util[_0x2d6e9b(0x1dc)]('%s',_0x2d6e9b(0x214))]=_0x24fa96);if(_0x3fd5b9&&_0x3fd5b9['Contact'])for(const _0x3864d8 in _0x3fd5b9[_0x2d6e9b(0x24a)]){typeof _0x3fd5b9[_0x2d6e9b(0x24a)][_0x3864d8]!==_0x2d6e9b(0x1c2)&&(!_[_0x2d6e9b(0x247)](_0x3fd5b9['Contact'][_0x3864d8])&&_0x3864d8!=='id'&&_0x3864d8!==_0x2d6e9b(0x212)&&_0x3864d8!==_0x2d6e9b(0x1e7)&&_0x3864d8!==_0x2d6e9b(0x1ec)&&(_0xf2858e[util[_0x2d6e9b(0x1dc)]('%s%s',_0x2d6e9b(0x1d0),_['toUpper'](_0x3864d8))]=_0x3fd5b9[_0x2d6e9b(0x24a)][_0x3864d8]));}return _0xf2858e;},exports[a1258_0x5c71d8(0x21e)]=function(_0x48e2da){const _0x4d6a61=a1258_0x5c71d8,_0x6b1242={};for(const _0x403670 in _0x48e2da){typeof _0x48e2da[_0x403670]!==_0x4d6a61(0x1c2)&&(_0x6b1242[util['format']('%s',_[_0x4d6a61(0x22f)](_0x403670))]=_0x48e2da[_0x403670]);}return{'variables':_0x6b1242};},exports[a1258_0x5c71d8(0x229)]=function(_0xae6826,_0x5ca86b){const _0x27ecff=a1258_0x5c71d8;!_[_0x27ecff(0x247)](_0xae6826)?typeof _0xae6826[_0x27ecff(0x1c7)]!=='undefined'&&(_0xae6826[_0x27ecff(0x1c7)]>0x0?_0xae6826[_0x27ecff(0x1c7)]-=0x1:logger['error'](_0x27ecff(0x236),_0x5ca86b)):logger[_0x27ecff(0x1e3)](_0x27ecff(0x1d7),_0x5ca86b);},exports[a1258_0x5c71d8(0x23b)]=function(_0xf4d04b){const _0x48367d=a1258_0x5c71d8,_0x5e55d0=moment()[_0x48367d(0x1dc)](_0x48367d(0x1c6));_0xf4d04b[_0x48367d(0x24d)]=0xd,_0xf4d04b['statedesc']=_0x48367d(0x1f9),_0xf4d04b['starttime']=_0x5e55d0,_0xf4d04b[_0x48367d(0x1d6)]=_0x5e55d0,_0xf4d04b[_0x48367d(0x1e6)]=_0x5e55d0;},exports[a1258_0x5c71d8(0x24c)]=function(_0x1c7e48,_0x54e58d,_0x5ea77d){const _0x3eea3c=a1258_0x5c71d8,_0x52dcc3=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');_0x1c7e48[_0x3eea3c(0x24d)]=_0x54e58d,_0x1c7e48[_0x3eea3c(0x243)]=_0x5ea77d,_0x1c7e48[_0x3eea3c(0x1d6)]=_0x52dcc3,_0x1c7e48['ringtime']=getSeconds(_0x1c7e48[_0x3eea3c(0x1d6)],_0x1c7e48[_0x3eea3c(0x204)]);},exports[a1258_0x5c71d8(0x1fb)]=function(_0x1065c9,_0x17ade2,_0x3b45f8){const _0x1b2372=a1258_0x5c71d8;_0x1065c9[_0x1b2372(0x1ef)]=_0x17ade2,_0x1065c9['UserId']=_0x3b45f8;},exports[a1258_0x5c71d8(0x1ca)]=function(_0x264107,_0x361311,_0x7a0bf4){const _0x4dfc98=a1258_0x5c71d8,_0x36347c=moment()[_0x4dfc98(0x1dc)](_0x4dfc98(0x1c6));_0x264107[_0x4dfc98(0x24d)]=_0x361311,_0x264107[_0x4dfc98(0x243)]=_0x7a0bf4,_0x264107[_0x4dfc98(0x1d6)]=_0x264107[_0x4dfc98(0x1d6)]?_0x264107[_0x4dfc98(0x1d6)]:_0x36347c,_0x264107[_0x4dfc98(0x1e6)]=_0x264107[_0x4dfc98(0x1e6)]?_0x264107[_0x4dfc98(0x1e6)]:_0x36347c,_0x264107['ringtime']=getSeconds(_0x264107[_0x4dfc98(0x1d6)]||0x0,_0x264107[_0x4dfc98(0x204)]||0x0),_0x264107[_0x4dfc98(0x20a)]=_0x264107[_0x4dfc98(0x1cf)]?getSeconds(_0x264107[_0x4dfc98(0x1e6)],_0x264107[_0x4dfc98(0x1cf)]):0x0;},exports[a1258_0x5c71d8(0x1de)]=function(_0x1c5803){const _0x302379=a1258_0x5c71d8;return _0x1c5803===_0x302379(0x231);},exports[a1258_0x5c71d8(0x227)]=function(_0x24d715,_0x1fe457,_0x3004c4,_0x40b955,_0x1bbd7c){const _0x1df511=a1258_0x5c71d8;let _0xc2f1fc=_0x40b955?_0x1df511(0x1dd):_0x24d715['calleridname'];return _0xc2f1fc=_0x1bbd7c?'BOOKED':_0xc2f1fc,{'actionid':_0x24d715['uniqueid'],'action':_0x1df511(0x238),'channel':_0x24d715['channelAgent'],'callerid':util[_0x1df511(0x1dc)]('\x22%s\x22\x20<%s>',_0xc2f1fc,_0x24d715[_0x1df511(0x1f1)]),'Exten':_0x1df511(0x1d2),'Context':'from-sip','Priority':'1','variable':_0x3004c4,'timeout':(_0x1fe457[_0x1df511(0x1c8)]||0x1e)*0x3e8,'async':!![],'channelid':_0x24d715[_0x1df511(0x1d5)]};},exports[a1258_0x5c71d8(0x1ff)]=function(_0x4a6bca){const _0x15a85a=a1258_0x5c71d8;return _0x4a6bca[_0x15a85a(0x207)]+_0x4a6bca[_0x15a85a(0x1f5)]+_0x4a6bca['countnoanswerretry']+_0x4a6bca[_0x15a85a(0x1da)]+_0x4a6bca[_0x15a85a(0x1ee)];},exports[a1258_0x5c71d8(0x1c9)]=function(_0x49f0a3){const _0x191511=a1258_0x5c71d8,_0x3f48a3=_[_0x191511(0x1f6)](_0x49f0a3);return _0x3f48a3[_0x191511(0x24d)]=0xf,_0x3f48a3[_0x191511(0x243)]='Global',_0x3f48a3;},exports[a1258_0x5c71d8(0x223)]=function(_0x49cc9d,_0x1d5358,_0x4e76ac){const _0x5eae45=a1258_0x5c71d8,_0x257f68={};return _0x257f68[_0x1d5358]=_0x49cc9d[_0x1d5358],_0x257f68[_0x5eae45(0x237)]=![],_0x257f68[_0x5eae45(0x209)]=moment()[_0x5eae45(0x23d)](_0x4e76ac,_0x5eae45(0x233))[_0x5eae45(0x1dc)]('YYYY-MM-DD\x20HH:mm:ss'),_0x257f68['ContactId']=_0x49cc9d['ContactId'],_0x257f68[_0x5eae45(0x1e9)]=_0x49cc9d[_0x5eae45(0x1e9)],_0x257f68['VoiceQueueId']=_0x49cc9d['VoiceQueueId']||undefined,_0x257f68;},exports[a1258_0x5c71d8(0x22b)]=function(_0x4edc64,_0x5d3347){const _0x27e951=a1258_0x5c71d8;!_[_0x27e951(0x247)](_0x4edc64)?_0x4edc64[_0x27e951(0x1d9)]>0x0?_0x4edc64['pTalking']-=0x1:logger[_0x27e951(0x1e3)](_0x5d3347,_0x27e951(0x219)):logger[_0x27e951(0x1e3)](_0x5d3347,_0x27e951(0x23c));},exports[a1258_0x5c71d8(0x1ce)]=function(_0x48a601){if(_0x48a601<=0x0)return!![];return![];},exports[a1258_0x5c71d8(0x218)]=function(_0x20ffa7,_0x1a00fe,_0x149f56){const _0x17e47a=a1258_0x5c71d8;return _0x20ffa7['lastevent']=_0x1a00fe,_0x20ffa7[_0x17e47a(0x1fa)]=_0x20ffa7[_0x17e47a(0x1cb)],_0x20ffa7['interface']=_0x20ffa7[_0x17e47a(0x201)],_0x149f56&&(_0x20ffa7[_0x17e47a(0x220)]=_0x149f56['mandatoryDisposition']),_0x20ffa7;},exports[a1258_0x5c71d8(0x213)]=function(_0x3b4650){const _0x2f2e27=a1258_0x5c71d8,_0x2551f4={};return _0x2551f4[_0x2f2e27(0x1cb)]=_0x3b4650['queue'],_0x2551f4[_0x2f2e27(0x202)]=_0x3b4650[_0x2f2e27(0x201)],_0x2551f4[_0x2f2e27(0x1d5)]=_0x3b4650[_0x2f2e27(0x1d5)],_0x2551f4;},exports[a1258_0x5c71d8(0x1e2)]=function(_0x23b232){const _0x5dfbb6=a1258_0x5c71d8,_0x910a31=[];for(const _0x5643a9 in _0x23b232){typeof _0x23b232[_0x5643a9]!==_0x5dfbb6(0x1c2)&&(!_[_0x5dfbb6(0x247)](_0x23b232[_0x5643a9])&&_0x23b232[_0x5643a9][_0x5dfbb6(0x24d)]===_0x5dfbb6(0x211)&&_0x23b232[_0x5643a9]['status']===_0x5dfbb6(0x232)&&_0x910a31[_0x5dfbb6(0x20d)](_0x23b232[_0x5643a9]['id']));}return _0x910a31;},exports['getDiff']=function(_0x236f3d){const _0x4d97e7=a1258_0x5c71d8,_0x461030=moment()[_0x4d97e7(0x215)](0x0),_0x5ac7c4=moment(_0x236f3d)['milliseconds'](0x0);return _0x461030['diff'](_0x5ac7c4,_0x4d97e7(0x210));},exports[a1258_0x5c71d8(0x224)]=function(_0x23289f){const _0x2dca89=a1258_0x5c71d8;return{'active':![],'recallme':![],'UserId':null,'ContactId':_0x23289f[_0x2dca89(0x21d)],'ListId':_0x23289f[_0x2dca89(0x1e9)],'VoiceQueueId':_0x23289f['VoiceQueueId']||undefined,'CampaignId':_0x23289f['CampaignId']||undefined};},exports['filterKey']=function(_0x371466){const _0x14d002=a1258_0x5c71d8;if(_0x371466===_0x14d002(0x1d5)||_0x371466===_0x14d002(0x1fd)||_0x371466===_0x14d002(0x1cb)||_0x371466===_0x14d002(0x22a)||_0x371466==='campaigntype'||_0x371466==='dialAnswer'||_0x371466===_0x14d002(0x1ef)||_0x371466===_0x14d002(0x201)||_0x371466===_0x14d002(0x235)||_0x371466===_0x14d002(0x237)||_0x371466==='calleridnum'||_0x371466===_0x14d002(0x209)||_0x371466==='countbusyretry'||_0x371466===_0x14d002(0x1f5)||_0x371466===_0x14d002(0x1f7)||_0x371466===_0x14d002(0x225)||_0x371466==='callback'||_0x371466===_0x14d002(0x23e)||_0x371466==='callbackat'||_0x371466===_0x14d002(0x1f0)||_0x371466===_0x14d002(0x21d)||_0x371466===_0x14d002(0x1e9)||_0x371466===_0x14d002(0x206)||_0x371466==='VoiceQueueId'||_0x371466===_0x14d002(0x1ed)||_0x371466===_0x14d002(0x203)||_0x371466===_0x14d002(0x1d4)||_0x371466===_0x14d002(0x226)||_0x371466===_0x14d002(0x22d)||_0x371466===_0x14d002(0x221)||_0x371466===_0x14d002(0x241)||_0x371466===_0x14d002(0x21f)||_0x371466===_0x14d002(0x1e1)||_0x371466===_0x14d002(0x245)||_0x371466===_0x14d002(0x1e0)||_0x371466===_0x14d002(0x1f2)||_0x371466===_0x14d002(0x217)||_0x371466===_0x14d002(0x23f)||_0x371466===_0x14d002(0x208)||_0x371466===_0x14d002(0x22e)||_0x371466===_0x14d002(0x22c)||_0x371466===_0x14d002(0x1cc)||_0x371466===_0x14d002(0x1e5)||_0x371466===_0x14d002(0x239)||_0x371466==='rtpaudioqoslossbridged'||_0x371466===_0x14d002(0x1f3)||_0x371466===_0x14d002(0x200)||_0x371466===_0x14d002(0x22e)||_0x371466===_0x14d002(0x22c)||_0x371466===_0x14d002(0x1cc)||_0x371466===_0x14d002(0x1e5)||_0x371466==='rtpaudioqosloss'||_0x371466==='rtpaudioqoslossbridged'||_0x371466==='rtpaudioqosrtt'||_0x371466===_0x14d002(0x200)||_0x371466==='bridgepeer'||_0x371466===_0x14d002(0x1e4)||_0x371466===_0x14d002(0x24d)||_0x371466===_0x14d002(0x243))return![];return!![];},exports[a1258_0x5c71d8(0x21a)]=function(_0x1d78e6,_0x28e394){const _0x2e4cfd=a1258_0x5c71d8;_0x28e394<=0x0&&(_0x28e394=0x1);const _0x4f1d56=new RegExp(_0x2e4cfd(0x1c4)+_0x28e394+'}$'),_0x5b0ebb=Math[_0x2e4cfd(0x242)](0xa,_0x28e394-0x1),_0x1f498=Math[_0x2e4cfd(0x242)](0xa,_0x28e394)-0x1;return util[_0x2e4cfd(0x1dc)]('%s',_[_0x2e4cfd(0x1c3)](_0x1d78e6,_0x4f1d56,_['random'](_0x5b0ebb,_0x1f498)));},exports[a1258_0x5c71d8(0x1d3)]=function(_0x51d420){const _0x1a7baf=a1258_0x5c71d8,_0xdd7c65=_0x51d420[_0x1a7baf(0x246)](/"(.*?)"/);return _0xdd7c65?_0xdd7c65[0x1]:_0x51d420;},exports[a1258_0x5c71d8(0x1ea)]=function(_0x5c9b71){const _0x596228=_0x5c9b71['match'](/<(.*?)>/);return _0x596228?_0x596228[0x1]:_0x5c9b71;}; \ No newline at end of file +const a1258_0x1986=['getCallerId','createBody','countnosuchnumberretry','BOOKED','logCustomer','util','random','format','rtpaudioqosloss','callback','createdAt','isEmpty','bridgepvtcallid','agiIp','xmd-dialtimeout','xmd-contactid','agentReadyId','toLower','state','match','queue','originate','YYYY-MM-DD\x20HH:mm:ss','push','originated','toLowerVariables','decrementTalkink','../../../../config/config.service','../../../../config/logger','rtpaudioqosrttbridged','logAgent','lodash','Queue','status','xmd-cdrtype','channelAgent','CampaignId','minutes','milliseconds','responsetime','xmd-voicequeueid','dialPreviewUrl','mandatoryDisposition','originatecalleridname','string','updatedAt','isActive','pow','extractCalleridName','info','rtpaudioqosjitter','preview','xmd-queue','reachable','countnoanswerretry','ListId','interface','addVariables','xmd-phone','VoiceQueueId','dialQueueProject','dialOriginateTimeout','statedesc','countagentrejectretry','campaigntype','Global','isFailure','dialAnswer','idContact','isUndefined','filterKey','callbackuniqueid','xmd-dialchannel','RECALL','logger','extractCalleridNumber','ringtime','isNil','logBlacklist','uniqueid','countbusyretry','dialQueueProject2','xmd-dialurl','xmd-dialid','XMD-','U(xcally-mixmonitor-context)','UserId','xmd-agi','totalGlobal','starttime','Contact','active','xcally-motion-preview','countcongestionretry','loggerError','NONE','\x22\x22\x20<>','replace','[decrementTalkink]\x20object\x20talking\x20is\x20negative','rtpaudioqosjitterbridged','scheduledat','message','talktime','rtpaudioqos','moment','scheduledAt','name','monitor_format','originatecalleridnum','calleridnum','logger2','membername','dialer','clone','undefined','ContactId','diff','[updateOriginated]\x20object\x20originated\x20is\x20negative','calleridname','rtpaudioqoslossbridged','callbackat','tags','%s%s','endtime','rtpaudioqosrtt','\x22%s\x22\x20<%s>','[updateOriginated]\x20is\x20null\x20or\x20undefined','inspect','rtpaudioqosbridged','seconds','variablesAction','\x22agi://%s/square,%s\x22','\x22rtTxX%s%s\x22','answertime','xmd-listid','type','bridgepeer','error'];(function(_0x3439c0,_0x229d8e){const _0x19860a=function(_0x537b2a){while(--_0x537b2a){_0x3439c0['push'](_0x3439c0['shift']());}};_0x19860a(++_0x229d8e);}(a1258_0x1986,0x197));const a1258_0x537b=function(_0x3439c0,_0x229d8e){_0x3439c0=_0x3439c0-0x1f3;let _0x19860a=a1258_0x1986[_0x3439c0];return _0x19860a;};const a1258_0x1ced50=a1258_0x537b;'use strict';const util=require(a1258_0x1ced50(0x1ff)),_=require(a1258_0x1ced50(0x219)),moment=require(a1258_0x1ced50(0x262)),logger=require(a1258_0x1ced50(0x216))(a1258_0x1ced50(0x22d)),{getConfigService}=require(a1258_0x1ced50(0x215));function getSeconds(_0x2c3888,_0x4be6f0){const _0x4f77de=a1258_0x1ced50,_0x42351a=moment(_0x2c3888)['milliseconds'](0x0),_0x48931e=moment(_0x4be6f0)[_0x4f77de(0x220)](0x0);return _0x42351a[_0x4f77de(0x26e)](_0x48931e,_0x4f77de(0x27b));}exports['loggerCatch']=function(_0xc0944){return function(_0x276ad9){const _0x506fd3=a1258_0x537b;logger['error'](_0xc0944,util[_0x506fd3(0x279)](_0x276ad9,{'showHidden':![],'depth':null}));};},exports[a1258_0x1ced50(0x244)]=function(_0x2f112c,_0x595372){const _0x56a7e7=a1258_0x1ced50;logger[_0x56a7e7(0x22b)](_0x2f112c,util[_0x56a7e7(0x279)](_0x595372,{'showHidden':![],'depth':null}));},exports[a1258_0x1ced50(0x258)]=function(_0x4c09a9,_0x224248){const _0xb6c2d8=a1258_0x1ced50;logger[_0xb6c2d8(0x1f9)](_0x4c09a9,util[_0xb6c2d8(0x279)](_0x224248,{'showHidden':![],'depth':null}));},exports[a1258_0x1ced50(0x268)]=function(_0x4aef62){return function(_0x517346){const _0x1a405b=a1258_0x537b;logger[_0x1a405b(0x22b)](_0x4aef62,util[_0x1a405b(0x279)](_0x517346,{'showHidden':![],'depth':null}));};},exports[a1258_0x1ced50(0x25f)]=function(_0x1eb697,_0x4974aa,_0x502070){return{'message':_0x1eb697,'unlock':_0x4974aa,'active':_0x502070};},exports[a1258_0x1ced50(0x1fa)]=function(_0x35fb22,_0x5e6d1f,_0x29ea06){const _0x42c64e=a1258_0x1ced50;if(!_[_0x42c64e(0x23f)](_0x29ea06)&&_0x42c64e(0x226)===typeof _0x29ea06&&!_[_0x42c64e(0x205)](_0x29ea06)){if(!_[_0x42c64e(0x23f)](_0x5e6d1f)&&'string'===typeof _0x5e6d1f&&!_[_0x42c64e(0x205)](_0x5e6d1f))return util[_0x42c64e(0x201)](_0x42c64e(0x277),_0x5e6d1f,_0x29ea06);return util[_0x42c64e(0x201)](_0x42c64e(0x277),_0x29ea06,_0x29ea06);}if(!_['isUndefined'](_0x35fb22)&&_0x42c64e(0x226)===typeof _0x35fb22&&!_[_0x42c64e(0x205)](_0x35fb22))return _0x35fb22;return _0x42c64e(0x25a);},exports[a1258_0x1ced50(0x228)]=function(_0x7ffdd4){if(_['isNil'](_0x7ffdd4))return![];return _0x7ffdd4;},exports[a1258_0x1ced50(0x233)]=function(_0x55375e,_0x1cc10b,_0x41afe7,_0x2703a4,_0x19c11f,_0x5db2ac){const _0x558ea1=a1258_0x1ced50,_0x50ae59=getConfigService(),_0x348019={'XMD-QUEUE':_0x1cc10b[_0x558ea1(0x21a)]?_0x1cc10b[_0x558ea1(0x21a)][_0x558ea1(0x264)]:'','XMD-CALLERID':_0x2703a4,'XMD-CALLERID-PREVIEW':_0x5db2ac?util['format']('\x22%s\x22\x20<%s>',_0x5db2ac['calleridname'],_0x5db2ac[_0x558ea1(0x267)]):_0x2703a4,'XMD-DIALID':_0x19c11f,'XMD-CONTACTID':_0x1cc10b[_0x558ea1(0x26d)],'XMD-CDRTYPE':_0x558ea1(0x26a),'CALLERID(all)':_0x2703a4,'XMD-VOICEQUEUEID':_0x1cc10b[_0x558ea1(0x235)],'XMD-DIALCHANNEL':_0x41afe7,'XMD-DIALTIMEOUT':_0x55375e[_0x558ea1(0x237)]||0x1e,'XMD-DIALOPTIONS':util['format'](_0x558ea1(0x1f4),_0x55375e['dialQueueProject2']?'g':'',_[_0x558ea1(0x205)](_0x55375e[_0x558ea1(0x265)])?'':_0x558ea1(0x24f)),'XMD-DIALURL':_0x55375e[_0x558ea1(0x223)]||'','XMD-AGI':_0x55375e[_0x558ea1(0x236)]?util['format']('\x22agi://%s/square,%s\x22',_0x50ae59[_0x558ea1(0x207)],_0x55375e[_0x558ea1(0x236)]):_0x558ea1(0x259),'XMD-AGIAFTER':_0x55375e['dialQueueProject2']?util[_0x558ea1(0x201)](_0x558ea1(0x1f3),_0x50ae59[_0x558ea1(0x207)],_0x55375e[_0x558ea1(0x24b)]):'NONE','XMD-ORIGINATECALLERIDNUM':_0x5db2ac?_0x5db2ac[_0x558ea1(0x266)]:'','XMD-ORIGINATECALLERIDNAME':_0x5db2ac?_0x5db2ac[_0x558ea1(0x225)]:'','XMD-DESTINATION':_0x558ea1(0x256)};!_[_0x558ea1(0x205)](_0x55375e[_0x558ea1(0x265)])&&(_0x348019[util[_0x558ea1(0x201)]('%s','_XCALLY_MIXMONITOR_FORMAT')]=_0x55375e[_0x558ea1(0x265)],_0x348019[util[_0x558ea1(0x201)]('%s','_XCALLY_MIXMONITOR_UNIQUEID')]=_0x19c11f);if(_0x1cc10b&&_0x1cc10b[_0x558ea1(0x254)])for(const _0x662036 in _0x1cc10b[_0x558ea1(0x254)]){typeof _0x1cc10b[_0x558ea1(0x254)][_0x662036]!=='undefined'&&(!_[_0x558ea1(0x247)](_0x1cc10b[_0x558ea1(0x254)][_0x662036])&&_0x662036!=='id'&&_0x662036!==_0x558ea1(0x273)&&_0x662036!==_0x558ea1(0x204)&&_0x662036!==_0x558ea1(0x227)&&(_0x348019[util[_0x558ea1(0x201)](_0x558ea1(0x274),_0x558ea1(0x24e),_['toUpper'](_0x662036))]=_0x1cc10b['Contact'][_0x662036]));}return _0x348019;},exports[a1258_0x1ced50(0x213)]=function(_0x545427){const _0x464fa4=a1258_0x1ced50,_0x5a2307={};for(const _0x39a745 in _0x545427){typeof _0x545427[_0x39a745]!==_0x464fa4(0x26c)&&(_0x5a2307[util['format']('%s',_[_0x464fa4(0x20b)](_0x39a745))]=_0x545427[_0x39a745]);}return{'variables':_0x5a2307};},exports['updateOriginated']=function(_0x14c994,_0x1d7ee8){const _0x54b928=a1258_0x1ced50;!_[_0x54b928(0x247)](_0x14c994)?typeof _0x14c994[_0x54b928(0x212)]!=='undefined'&&(_0x14c994[_0x54b928(0x212)]>0x0?_0x14c994['originated']-=0x1:logger[_0x54b928(0x1f9)](_0x54b928(0x26f),_0x1d7ee8)):logger[_0x54b928(0x1f9)](_0x54b928(0x278),_0x1d7ee8);},exports[a1258_0x1ced50(0x248)]=function(_0xc7a6a6){const _0x56fb08=a1258_0x1ced50,_0x247c4c=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');_0xc7a6a6[_0x56fb08(0x20c)]=0xd,_0xc7a6a6['statedesc']='Blacklist',_0xc7a6a6[_0x56fb08(0x253)]=_0x247c4c,_0xc7a6a6['responsetime']=_0x247c4c,_0xc7a6a6[_0x56fb08(0x275)]=_0x247c4c;},exports[a1258_0x1ced50(0x218)]=function(_0x21b5f8,_0x3bdd8e,_0x2f8b40){const _0x24d05a=a1258_0x1ced50,_0xedd81c=moment()[_0x24d05a(0x201)](_0x24d05a(0x210));_0x21b5f8['state']=_0x3bdd8e,_0x21b5f8['statedesc']=_0x2f8b40,_0x21b5f8[_0x24d05a(0x221)]=_0xedd81c,_0x21b5f8[_0x24d05a(0x246)]=getSeconds(_0x21b5f8['responsetime'],_0x21b5f8['starttime']);},exports['logLookAgent']=function(_0x956003,_0xbfaf09,_0x2c1666){const _0x529f33=a1258_0x1ced50;_0x956003[_0x529f33(0x269)]=_0xbfaf09,_0x956003[_0x529f33(0x250)]=_0x2c1666;},exports[a1258_0x1ced50(0x1fe)]=function(_0x7b30ce,_0x41f593,_0x481696){const _0xce4b24=a1258_0x1ced50,_0x52979f=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');_0x7b30ce[_0xce4b24(0x20c)]=_0x41f593,_0x7b30ce[_0xce4b24(0x238)]=_0x481696,_0x7b30ce['responsetime']=_0x7b30ce[_0xce4b24(0x221)]?_0x7b30ce[_0xce4b24(0x221)]:_0x52979f,_0x7b30ce[_0xce4b24(0x275)]=_0x7b30ce['endtime']?_0x7b30ce[_0xce4b24(0x275)]:_0x52979f,_0x7b30ce['ringtime']=getSeconds(_0x7b30ce[_0xce4b24(0x221)]||0x0,_0x7b30ce['starttime']||0x0),_0x7b30ce[_0xce4b24(0x260)]=_0x7b30ce[_0xce4b24(0x1f5)]?getSeconds(_0x7b30ce[_0xce4b24(0x275)],_0x7b30ce[_0xce4b24(0x1f5)]):0x0;},exports[a1258_0x1ced50(0x23c)]=function(_0x3f3392){return _0x3f3392==='Failure';},exports[a1258_0x1ced50(0x27c)]=function(_0x54fe0c,_0x1daf28,_0x29baad,_0x56b50e,_0x5ad186){const _0x1b7ec7=a1258_0x1ced50;let _0x26e1ce=_0x56b50e?_0x1b7ec7(0x243):_0x54fe0c[_0x1b7ec7(0x270)];return _0x26e1ce=_0x5ad186?_0x1b7ec7(0x1fd):_0x26e1ce,{'actionid':_0x54fe0c[_0x1b7ec7(0x249)],'action':_0x1b7ec7(0x20f),'channel':_0x54fe0c[_0x1b7ec7(0x21d)],'callerid':util[_0x1b7ec7(0x201)](_0x1b7ec7(0x277),_0x26e1ce,_0x54fe0c[_0x1b7ec7(0x267)]),'Exten':_0x1b7ec7(0x256),'Context':'from-sip','Priority':'1','variable':_0x29baad,'timeout':(_0x1daf28['timeout']||0x1e)*0x3e8,'async':!![],'channelid':_0x54fe0c[_0x1b7ec7(0x249)]};},exports[a1258_0x1ced50(0x252)]=function(_0x431c5b){const _0x232e7b=a1258_0x1ced50;return _0x431c5b[_0x232e7b(0x24a)]+_0x431c5b[_0x232e7b(0x257)]+_0x431c5b[_0x232e7b(0x230)]+_0x431c5b[_0x232e7b(0x239)]+_0x431c5b[_0x232e7b(0x1fc)];},exports['cloneAction']=function(_0x1dd869){const _0x215774=a1258_0x1ced50,_0x9fdb18=_[_0x215774(0x26b)](_0x1dd869);return _0x9fdb18[_0x215774(0x20c)]=0xf,_0x9fdb18[_0x215774(0x238)]=_0x215774(0x23b),_0x9fdb18;},exports[a1258_0x1ced50(0x263)]=function(_0x494c39,_0x517a9f,_0x33eb01){const _0x41174b=a1258_0x1ced50,_0x25a38f={};return _0x25a38f[_0x517a9f]=_0x494c39[_0x517a9f],_0x25a38f[_0x41174b(0x255)]=![],_0x25a38f[_0x41174b(0x25e)]=moment()['add'](_0x33eb01,_0x41174b(0x21f))[_0x41174b(0x201)]('YYYY-MM-DD\x20HH:mm:ss'),_0x25a38f[_0x41174b(0x26d)]=_0x494c39['ContactId'],_0x25a38f[_0x41174b(0x231)]=_0x494c39['ListId'],_0x25a38f[_0x41174b(0x235)]=_0x494c39[_0x41174b(0x235)]||undefined,_0x25a38f;},exports[a1258_0x1ced50(0x214)]=function(_0x3932dc,_0x69294a){const _0x211492=a1258_0x1ced50;!_[_0x211492(0x247)](_0x3932dc)?_0x3932dc['pTalking']>0x0?_0x3932dc['pTalking']-=0x1:logger[_0x211492(0x1f9)](_0x69294a,_0x211492(0x25c)):logger[_0x211492(0x1f9)](_0x69294a,'[decrementTalkink]\x20is\x20null\x20or\x20undefined');},exports['IsNotLoggedIn']=function(_0xf9e611){if(_0xf9e611<=0x0)return!![];return![];},exports['buildObj']=function(_0x8352b2,_0x207805,_0x560a40){const _0x3b3167=a1258_0x1ced50;return _0x8352b2['lastevent']=_0x207805,_0x8352b2['name']=_0x8352b2[_0x3b3167(0x20e)],_0x8352b2[_0x3b3167(0x232)]=_0x8352b2[_0x3b3167(0x21d)],_0x560a40&&(_0x8352b2['mandatoryDisposition']=_0x560a40[_0x3b3167(0x224)]),_0x8352b2;},exports['buildAcw']=function(_0x2328e2){const _0x5f1522=a1258_0x1ced50,_0x55e1e6={};return _0x55e1e6[_0x5f1522(0x20e)]=_0x2328e2[_0x5f1522(0x20e)],_0x55e1e6['interface']=_0x2328e2['channelAgent'],_0x55e1e6[_0x5f1522(0x249)]=_0x2328e2[_0x5f1522(0x249)],_0x55e1e6;},exports[a1258_0x1ced50(0x20a)]=function(_0x397365){const _0x277fec=a1258_0x1ced50,_0x1606b2=[];for(const _0x1e06ae in _0x397365){typeof _0x397365[_0x1e06ae]!==_0x277fec(0x26c)&&(!_[_0x277fec(0x247)](_0x397365[_0x1e06ae])&&_0x397365[_0x1e06ae][_0x277fec(0x20c)]==='not_inuse'&&_0x397365[_0x1e06ae][_0x277fec(0x21b)]===_0x277fec(0x22f)&&_0x1606b2[_0x277fec(0x211)](_0x397365[_0x1e06ae]['id']));}return _0x1606b2;},exports['getDiff']=function(_0x12e977){const _0x5b6ddf=a1258_0x1ced50,_0x1d74fb=moment()[_0x5b6ddf(0x220)](0x0),_0x347b3b=moment(_0x12e977)[_0x5b6ddf(0x220)](0x0);return _0x1d74fb[_0x5b6ddf(0x26e)](_0x347b3b,_0x5b6ddf(0x27b));},exports[a1258_0x1ced50(0x1fb)]=function(_0x507dfd){const _0x232189=a1258_0x1ced50;return{'active':![],'recallme':![],'UserId':null,'ContactId':_0x507dfd[_0x232189(0x26d)],'ListId':_0x507dfd['ListId'],'VoiceQueueId':_0x507dfd[_0x232189(0x235)]||undefined,'CampaignId':_0x507dfd[_0x232189(0x21e)]||undefined};},exports[a1258_0x1ced50(0x240)]=function(_0x1d273f){const _0x59e996=a1258_0x1ced50;if(_0x1d273f===_0x59e996(0x249)||_0x1d273f===_0x59e996(0x23e)||_0x1d273f===_0x59e996(0x20e)||_0x1d273f===_0x59e996(0x1f7)||_0x1d273f===_0x59e996(0x23a)||_0x1d273f===_0x59e996(0x23d)||_0x1d273f===_0x59e996(0x269)||_0x1d273f==='channelAgent'||_0x1d273f===_0x59e996(0x270)||_0x1d273f===_0x59e996(0x255)||_0x1d273f===_0x59e996(0x267)||_0x1d273f===_0x59e996(0x25e)||_0x1d273f===_0x59e996(0x24a)||_0x1d273f===_0x59e996(0x257)||_0x1d273f===_0x59e996(0x230)||_0x1d273f==='countglobal'||_0x1d273f===_0x59e996(0x203)||_0x1d273f===_0x59e996(0x241)||_0x1d273f===_0x59e996(0x272)||_0x1d273f==='recallme'||_0x1d273f==='ContactId'||_0x1d273f===_0x59e996(0x231)||_0x1d273f===_0x59e996(0x250)||_0x1d273f===_0x59e996(0x235)||_0x1d273f==='sipcallid'||_0x1d273f===_0x59e996(0x222)||_0x1d273f===_0x59e996(0x22e)||_0x1d273f===_0x59e996(0x234)||_0x1d273f===_0x59e996(0x1f6)||_0x1d273f===_0x59e996(0x24c)||_0x1d273f===_0x59e996(0x208)||_0x1d273f==='xmd-dialoptions'||_0x1d273f===_0x59e996(0x24d)||_0x1d273f===_0x59e996(0x242)||_0x1d273f===_0x59e996(0x209)||_0x1d273f===_0x59e996(0x21c)||_0x1d273f==='xmd-callerid'||_0x1d273f==='xmd-agiafter'||_0x1d273f===_0x59e996(0x251)||_0x1d273f==='rtpaudioqos'||_0x1d273f===_0x59e996(0x27a)||_0x1d273f===_0x59e996(0x22c)||_0x1d273f===_0x59e996(0x25d)||_0x1d273f===_0x59e996(0x202)||_0x1d273f===_0x59e996(0x271)||_0x1d273f===_0x59e996(0x276)||_0x1d273f===_0x59e996(0x217)||_0x1d273f===_0x59e996(0x261)||_0x1d273f===_0x59e996(0x27a)||_0x1d273f==='rtpaudioqosjitter'||_0x1d273f===_0x59e996(0x25d)||_0x1d273f===_0x59e996(0x202)||_0x1d273f===_0x59e996(0x271)||_0x1d273f===_0x59e996(0x276)||_0x1d273f==='rtpaudioqosrttbridged'||_0x1d273f===_0x59e996(0x1f8)||_0x1d273f===_0x59e996(0x206)||_0x1d273f==='state'||_0x1d273f===_0x59e996(0x238))return![];return!![];},exports['getCallerIdRandom']=function(_0x2b9310,_0x11ddf4){const _0x3051bb=a1258_0x1ced50;_0x11ddf4<=0x0&&(_0x11ddf4=0x1);const _0x1b1192=new RegExp('\x5cw{0,'+_0x11ddf4+'}$'),_0x3337e9=Math[_0x3051bb(0x229)](0xa,_0x11ddf4-0x1),_0x127a2a=Math['pow'](0xa,_0x11ddf4)-0x1;return util['format']('%s',_[_0x3051bb(0x25b)](_0x2b9310,_0x1b1192,_[_0x3051bb(0x200)](_0x3337e9,_0x127a2a)));},exports[a1258_0x1ced50(0x22a)]=function(_0x11cff8){const _0x31d38f=a1258_0x1ced50,_0x29697a=_0x11cff8[_0x31d38f(0x20d)](/"(.*?)"/);return _0x29697a?_0x29697a[0x1]:_0x11cff8;},exports[a1258_0x1ced50(0x245)]=function(_0x17b2d9){const _0x41d5c2=a1258_0x1ced50,_0x446e2e=_0x17b2d9[_0x41d5c2(0x20d)](/<(.*?)>/);return _0x446e2e?_0x446e2e[0x1]:_0x17b2d9;}; \ No newline at end of file diff --git a/server/services/ami/properties.js b/server/services/ami/properties.js index b26b0b4..c324b83 100644 --- a/server/services/ami/properties.js +++ b/server/services/ami/properties.js @@ -1 +1 @@ -var a1259_0x4a5b=['number','voicequeuechannelredirect','queuepause','voicequeuechannel','queueadd','string','voicechannel','boolean','reload'];(function(_0x322136,_0x1437e){var _0x4a5b56=function(_0x46dc55){while(--_0x46dc55){_0x322136['push'](_0x322136['shift']());}};_0x4a5b56(++_0x1437e);}(a1259_0x4a5b,0xeb));var a1259_0x46dc=function(_0x322136,_0x1437e){_0x322136=_0x322136-0x1ac;var _0x4a5b56=a1259_0x4a5b[_0x322136];return _0x4a5b56;};var a1259_0xe76453=a1259_0x46dc;'use strict';exports[a1259_0xe76453(0x1af)]={'queue':{'type':a1259_0xe76453(0x1b0),'required':!![]},'interface':{'type':a1259_0xe76453(0x1b0),'required':!![]},'membername':{'type':a1259_0xe76453(0x1b0),'required':!![]},'penalty':{'type':a1259_0xe76453(0x1b4),'required':![]},'paused':{'type':a1259_0xe76453(0x1b2),'required':![]}},exports['queueremove']={'queue':{'type':a1259_0xe76453(0x1b0),'required':!![]},'interface':{'type':a1259_0xe76453(0x1b0),'required':!![]}},exports[a1259_0xe76453(0x1ad)]={'interface':{'type':a1259_0xe76453(0x1b0),'required':!![]},'paused':{'type':a1259_0xe76453(0x1b2)},'reason':{'type':a1259_0xe76453(0x1b0),'required':![]}},exports[a1259_0xe76453(0x1b3)]={'module':{'type':a1259_0xe76453(0x1b0),'required':![]}},exports[a1259_0xe76453(0x1ae)]={'uniqueid':{'type':'string','required':!![]}},exports[a1259_0xe76453(0x1b1)]={'uniqueid':{'type':a1259_0xe76453(0x1b0),'required':!![]},'filename':{'type':a1259_0xe76453(0x1b0)},'format':{'type':a1259_0xe76453(0x1b0)},'mixmonitorid':{'type':a1259_0xe76453(0x1b0)}},exports['voicequeuechannelhangup']={'uniqueid':{'type':'string','required':!![]}},exports[a1259_0xe76453(0x1ac)]={'uniqueid':{'type':a1259_0xe76453(0x1b0),'required':!![]},'exten':{'type':'string','required':!![]},'context':{'type':'string'}}; \ No newline at end of file +var a1259_0x27bd=['boolean','queuepause','number','queueremove','voicequeuechannelredirect','voicechannel','voicequeuechannel','string'];(function(_0x140795,_0x4a697c){var _0x27bdce=function(_0x32c12c){while(--_0x32c12c){_0x140795['push'](_0x140795['shift']());}};_0x27bdce(++_0x4a697c);}(a1259_0x27bd,0x1da));var a1259_0x32c1=function(_0x140795,_0x4a697c){_0x140795=_0x140795-0x1ad;var _0x27bdce=a1259_0x27bd[_0x140795];return _0x27bdce;};var a1259_0x586cb3=a1259_0x32c1;'use strict';exports['queueadd']={'queue':{'type':a1259_0x586cb3(0x1b2),'required':!![]},'interface':{'type':a1259_0x586cb3(0x1b2),'required':!![]},'membername':{'type':a1259_0x586cb3(0x1b2),'required':!![]},'penalty':{'type':a1259_0x586cb3(0x1ad),'required':![]},'paused':{'type':a1259_0x586cb3(0x1b3),'required':![]}},exports[a1259_0x586cb3(0x1ae)]={'queue':{'type':a1259_0x586cb3(0x1b2),'required':!![]},'interface':{'type':a1259_0x586cb3(0x1b2),'required':!![]}},exports[a1259_0x586cb3(0x1b4)]={'interface':{'type':a1259_0x586cb3(0x1b2),'required':!![]},'paused':{'type':a1259_0x586cb3(0x1b3)},'reason':{'type':'string','required':![]}},exports['reload']={'module':{'type':a1259_0x586cb3(0x1b2),'required':![]}},exports[a1259_0x586cb3(0x1b1)]={'uniqueid':{'type':a1259_0x586cb3(0x1b2),'required':!![]}},exports[a1259_0x586cb3(0x1b0)]={'uniqueid':{'type':a1259_0x586cb3(0x1b2),'required':!![]},'filename':{'type':a1259_0x586cb3(0x1b2)},'format':{'type':a1259_0x586cb3(0x1b2)},'mixmonitorid':{'type':a1259_0x586cb3(0x1b2)}},exports['voicequeuechannelhangup']={'uniqueid':{'type':a1259_0x586cb3(0x1b2),'required':!![]}},exports[a1259_0x586cb3(0x1af)]={'uniqueid':{'type':a1259_0x586cb3(0x1b2),'required':!![]},'exten':{'type':'string','required':!![]},'context':{'type':a1259_0x586cb3(0x1b2)}}; \ No newline at end of file diff --git a/server/services/ami/realtime/index.js b/server/services/ami/realtime/index.js index 5c6e8ba..1124895 100644 --- a/server/services/ami/realtime/index.js +++ b/server/services/ami/realtime/index.js @@ -1 +1 @@ -const a1260_0x11c3=['undefined','trunks','outboundNoSuchCallsDay','timers','queuecallerabandon','initServicenowAccounts','merge','isNil','dynamics365Accounts','../model/template','outboundDropCallsDayCallersExit','isEmpty','../model/servicenowAccount','deskAccounts','name','zendeskAccounts','freshsalesAccounts','../model/freshdeskAccount','unmanaged','../model/zendeskAccount','mergeFromDatabase','outboundDropCallsDayTimeout','exports','salesforceAccounts','length','initDynamics365Accounts','initTrunks','duration','../model/campaign','initTriggers','SquareProject','queuecallerexit','initFreshsalesAccounts','mapKeys','../model/trigger','../model/agent','initCampaignHopperHistory','queuecallercomplete','queueStatusComplete','faxAccounts','outboundAnswerAgiCallsDay','initFreshdeskAccounts','queuecallerjoinAt','voiceQueues','sumHoldTime','seconds','interface','total','campaigns','moment','../model/sugarcrmAccount','queueChannels','initAgents','templates','outboundChannels','servicenowAccounts','outboundAnswerCallsDay','freshdeskAccounts','agents','ivrAnswerCallsDay','initVoiceQueueReports','SIP/%s','initTelephones','isUndefined','sugarcrmAccounts','sumDuration','disposition','zohoAccounts','initSalesforceAccounts','outboundRejectCallsDay','outboundNoAnswerCallsDay','queuecallercompleteAt','abandoned','prototype','format','../model/voiceQueue','initVoiceCallReports','outbound','ANSWERED','../model/deskAccount','outboundOriginateFailureCallsDay','telephones','outboundBusyCallsDay','../model/faxAccount','queuecallerexitAt','initTemplates','../model/trunk','util','sumBillable','answered','diff','queue','voiceExtensions','triggers','initVoiceExtensions','queuecallerleaveAt','ivrTotalCallsDays','uniqueid','initVtigerAccounts','vtigerAccounts','../model/zohoAccount','lodash','../model/vtigerAccount','billableseconds'];(function(_0x218be0,_0x4cc377){const _0x11c3d5=function(_0x4aa310){while(--_0x4aa310){_0x218be0['push'](_0x218be0['shift']());}};_0x11c3d5(++_0x4cc377);}(a1260_0x11c3,0x1c5));const a1260_0x4aa3=function(_0x218be0,_0x4cc377){_0x218be0=_0x218be0-0x83;let _0x11c3d5=a1260_0x11c3[_0x218be0];return _0x11c3d5;};const a1260_0x3bc44c=a1260_0x4aa3;'use strict';const util=require(a1260_0x3bc44c(0xb5)),_=require(a1260_0x3bc44c(0xc3)),moment=require(a1260_0x3bc44c(0x8f)),Agent=require(a1260_0x3bc44c(0xe9)),Telephone=require('../model/telephone'),Trunk=require(a1260_0x3bc44c(0xb4)),VoiceQueue=require(a1260_0x3bc44c(0xa9)),Trigger=require(a1260_0x3bc44c(0xe8)),Template=require(a1260_0x3bc44c(0xcf)),Campaign=require(a1260_0x3bc44c(0xe2)),VoiceExtension=require('../model/voiceExtension'),ZendeskAccount=require(a1260_0x3bc44c(0xd9)),SalesforceAccount=require('../model/salesforceAccount'),FreshdeskAccount=require(a1260_0x3bc44c(0xd7)),SugarcrmAccount=require(a1260_0x3bc44c(0x90)),ZohoAccount=require(a1260_0x3bc44c(0xc2)),DeskAccount=require(a1260_0x3bc44c(0xad)),VtigerAccount=require(a1260_0x3bc44c(0xc4)),ServicenowAccount=require(a1260_0x3bc44c(0xd2)),Dynamics365Account=require('../model/dynamics365Account'),FreshsalesAccount=require('../model/freshsalesAccount'),FaxAccount=require(a1260_0x3bc44c(0xb1)),Realtime=function(){const _0x3b46c6=a1260_0x3bc44c;this[_0x3b46c6(0x98)]={},this[_0x3b46c6(0xaf)]={},this[_0x3b46c6(0xc7)]={},this[_0x3b46c6(0x89)]={},this[_0x3b46c6(0xbb)]={},this[_0x3b46c6(0x8e)]={},this['templates']={},this['outbound']={'total':0x0,'answered':0x0,'sumHoldTime':0x0,'sumDuration':0x0,'sumBillable':0x0},this[_0x3b46c6(0xba)]={},this['channels']={},this[_0x3b46c6(0x91)]={},this[_0x3b46c6(0x94)]={},this[_0x3b46c6(0xc9)]={},this[_0x3b46c6(0xd5)]={},this['salesforceAccounts']={},this['sugarcrmAccounts']={},this[_0x3b46c6(0x97)]={},this['zohoAccounts']={},this[_0x3b46c6(0xd3)]={},this[_0x3b46c6(0xc1)]={},this[_0x3b46c6(0x95)]={},this[_0x3b46c6(0xce)]={},this[_0x3b46c6(0xd6)]={},this[_0x3b46c6(0x85)]={};};function freeIsNotKey(_0x3cfabe,_0x4c97fd,_0x2f67c1){const _0x48732c=a1260_0x3bc44c,_0x4b107f=_[_0x48732c(0xe7)](_0x3cfabe,function(_0x35311a){return _0x35311a[_0x2f67c1];});for(const _0x1ea92d in _0x4c97fd){typeof _0x4c97fd[_0x1ea92d]!==_0x48732c(0xc6)&&(!_0x4b107f[_0x1ea92d]&&delete _0x4c97fd[_0x1ea92d]);}}function freeIsNotKeySip(_0x25eb94,_0x34fd1c){const _0xb551af=a1260_0x3bc44c,_0xc50652=_[_0xb551af(0xe7)](_0x25eb94,function(_0x4cc35a){const _0x1dca05=_0xb551af;return util[_0x1dca05(0xa8)](_0x1dca05(0x9b),_0x4cc35a[_0x1dca05(0xd4)]);});for(const _0x4ff9e7 in _0x34fd1c){typeof _0x34fd1c[_0x4ff9e7]!==_0xb551af(0xc6)&&(!_0xc50652[_0x4ff9e7]&&delete _0x34fd1c[_0x4ff9e7]);}}function freeIsNotKeyAgent(_0x1d0b9b,_0x52c69f){const _0x14ec2c=_['mapKeys'](_0x1d0b9b,function(_0xd44539){const _0x5180d5=a1260_0x4aa3,_0x362e06=_[_0x5180d5(0xcd)](_0xd44539[_0x5180d5(0x8c)])?util[_0x5180d5(0xa8)](_0x5180d5(0x9b),_0xd44539[_0x5180d5(0xd4)]):_0xd44539['interface'];return _0x362e06;});for(const _0x52cf49 in _0x52c69f){typeof _0x52c69f[_0x52cf49]!=='undefined'&&(!_0x14ec2c[_0x52cf49]&&delete _0x52c69f[_0x52cf49]);}}function clearVoiceCallReports(_0x4dd53e){const _0x26b6d2=a1260_0x3bc44c;_0x4dd53e['total']=0x0,_0x4dd53e[_0x26b6d2(0xb7)]=0x0,_0x4dd53e[_0x26b6d2(0x8a)]=0x0,_0x4dd53e[_0x26b6d2(0x9f)]=0x0,_0x4dd53e[_0x26b6d2(0xb6)]=0x0;}function clearCampaigns(_0x5992b2){const _0x328c23=a1260_0x3bc44c;if(!_[_0x328c23(0xd1)](_0x5992b2))for(const _0x2ae8f7 in _0x5992b2){typeof _0x5992b2[_0x2ae8f7]!==_0x328c23(0xc6)&&(_0x5992b2[_0x2ae8f7][_0x328c23(0xbe)]=0x0,_0x5992b2[_0x2ae8f7][_0x328c23(0x99)]=0x0);}}function clearVoiceQueues(_0x19c77f){const _0x431e87=a1260_0x3bc44c;if(!_[_0x431e87(0xd1)](_0x19c77f))for(const _0x2408c5 in _0x19c77f){typeof _0x19c77f[_0x2408c5]!==_0x431e87(0xc6)&&(_0x19c77f[_0x2408c5][_0x431e87(0x8d)]=0x0,_0x19c77f[_0x2408c5][_0x431e87(0xb7)]=0x0,_0x19c77f[_0x2408c5][_0x431e87(0xd8)]=0x0,_0x19c77f[_0x2408c5]['abandoned']=0x0,_0x19c77f[_0x2408c5][_0x431e87(0x8a)]=0x0,_0x19c77f[_0x2408c5]['sumDuration']=0x0,_0x19c77f[_0x2408c5][_0x431e87(0xb6)]=0x0,_0x19c77f[_0x2408c5][_0x431e87(0x86)]=0x0,_0x19c77f[_0x2408c5][_0x431e87(0xa4)]=0x0,_0x19c77f[_0x2408c5][_0x431e87(0xb0)]=0x0,_0x19c77f[_0x2408c5]['outboundCongestionCallsDay']=0x0,_0x19c77f[_0x2408c5][_0x431e87(0xc8)]=0x0,_0x19c77f[_0x2408c5]['outboundUnknownCallsDay']=0x0,_0x19c77f[_0x2408c5][_0x431e87(0xdb)]=0x0,_0x19c77f[_0x2408c5][_0x431e87(0xd0)]=0x0,_0x19c77f[_0x2408c5]['outboundBlacklistCallsDay']=0x0,_0x19c77f[_0x2408c5][_0x431e87(0xae)]=0x0,_0x19c77f[_0x2408c5][_0x431e87(0xa3)]=0x0,_0x19c77f[_0x2408c5]['outboundReCallsDay']=0x0,_0x19c77f[_0x2408c5][_0x431e87(0x86)]=0x0,_0x19c77f[_0x2408c5][_0x431e87(0x96)]=0x0,_0x19c77f[_0x2408c5][_0x431e87(0x84)]=!![]);}}Realtime[a1260_0x3bc44c(0xa7)]['mergeFromDatabase']=function(_0x57d6ae,_0x5f0937){for(const _0x950934 in _0x5f0937){typeof _0x57d6ae[_0x950934]!=='undefined'&&(_0x57d6ae[_0x950934]=_0x5f0937[_0x950934]);}},Realtime[a1260_0x3bc44c(0xa7)][a1260_0x3bc44c(0x92)]=function(){const _0x5c719b=this;return function(_0x2a0adc){const _0x3d0cba=a1260_0x4aa3;if(_0x2a0adc){freeIsNotKeyAgent(_0x2a0adc,_0x5c719b['agents']);for(let _0x552d31=0x0,_0xb5d23a={};_0x552d31<_0x2a0adc[_0x3d0cba(0xde)];_0x552d31+=0x1){_0xb5d23a=_0x2a0adc[_0x552d31];const _0x40979b=_[_0x3d0cba(0xcd)](_0xb5d23a[_0x3d0cba(0x8c)])?util[_0x3d0cba(0xa8)]('SIP/%s',_0xb5d23a[_0x3d0cba(0xd4)]):_0xb5d23a[_0x3d0cba(0x8c)];_[_0x3d0cba(0x9d)](_0x5c719b['agents'][_0x40979b])?_0x5c719b[_0x3d0cba(0x98)][_0x40979b]=new Agent(_0xb5d23a):_0x5c719b[_0x3d0cba(0xda)](_0x5c719b[_0x3d0cba(0x98)][_0x40979b],_0xb5d23a);}}return _0x5c719b[_0x3d0cba(0x98)];};},Realtime[a1260_0x3bc44c(0xa7)][a1260_0x3bc44c(0x9c)]=function(){const _0x5d3c7d=this;return function(_0x435acb){const _0x3fc259=a1260_0x4aa3;if(_0x435acb){freeIsNotKeySip(_0x435acb,_0x5d3c7d[_0x3fc259(0xaf)]);for(let _0x2aa7e3=0x0,_0x395eac={};_0x2aa7e3<_0x435acb['length'];_0x2aa7e3+=0x1){_0x395eac=_0x435acb[_0x2aa7e3],_[_0x3fc259(0x9d)](_0x5d3c7d[_0x3fc259(0xaf)][util[_0x3fc259(0xa8)](_0x3fc259(0x9b),_0x395eac[_0x3fc259(0xd4)])])?_0x5d3c7d[_0x3fc259(0xaf)][util[_0x3fc259(0xa8)]('SIP/%s',_0x395eac[_0x3fc259(0xd4)])]=new Telephone(_0x395eac):_0x5d3c7d[_0x3fc259(0xda)](_0x5d3c7d[_0x3fc259(0xaf)][util[_0x3fc259(0xa8)](_0x3fc259(0x9b),_0x395eac[_0x3fc259(0xd4)])],_0x395eac);}}return _0x5d3c7d[_0x3fc259(0xaf)];};},Realtime[a1260_0x3bc44c(0xa7)][a1260_0x3bc44c(0xe0)]=function(){const _0x485df7=this;return function(_0x5ba946){const _0x35995d=a1260_0x4aa3;if(_0x5ba946){freeIsNotKeySip(_0x5ba946,_0x485df7[_0x35995d(0xc7)]);for(let _0x5de708=0x0,_0x2a336e={};_0x5de708<_0x5ba946['length'];_0x5de708+=0x1){_0x2a336e=_0x5ba946[_0x5de708],_[_0x35995d(0x9d)](_0x485df7[_0x35995d(0xc7)][util['format'](_0x35995d(0x9b),_0x2a336e['name'])])?_0x485df7[_0x35995d(0xc7)][util[_0x35995d(0xa8)](_0x35995d(0x9b),_0x2a336e[_0x35995d(0xd4)])]=new Trunk(_0x2a336e):_0x485df7[_0x35995d(0xda)](_0x485df7['trunks'][util[_0x35995d(0xa8)](_0x35995d(0x9b),_0x2a336e[_0x35995d(0xd4)])],_0x2a336e);}}return _0x485df7['trunks'];};},Realtime['prototype']['initVoiceQueues']=function(){const _0x33365a=this;return function(_0x2d95a5){const _0x45b251=a1260_0x4aa3;if(_0x2d95a5){freeIsNotKey(_0x2d95a5,_0x33365a[_0x45b251(0x89)],'name');for(let _0x1b67c0=0x0,_0x45ce04={};_0x1b67c0<_0x2d95a5[_0x45b251(0xde)];_0x1b67c0+=0x1){_0x45ce04=_0x2d95a5[_0x1b67c0],_[_0x45b251(0x9d)](_0x33365a[_0x45b251(0x89)][_0x45ce04[_0x45b251(0xd4)]])?_0x33365a[_0x45b251(0x89)][_0x45ce04[_0x45b251(0xd4)]]=new VoiceQueue(_0x45ce04):_0x33365a[_0x45b251(0xda)](_0x33365a[_0x45b251(0x89)][_0x45ce04['name']],_0x45ce04);}}return _0x33365a[_0x45b251(0x89)];};},Realtime['prototype'][a1260_0x3bc44c(0xe3)]=function(){const _0x1ec823=this;return function(_0xa435d1){const _0x2bb84f=a1260_0x4aa3;if(_0xa435d1){freeIsNotKey(_0xa435d1,_0x1ec823[_0x2bb84f(0xbb)],'id');for(let _0x3d0bbe=0x0,_0x33242c={};_0x3d0bbe<_0xa435d1[_0x2bb84f(0xde)];_0x3d0bbe+=0x1){_0x33242c=_0xa435d1[_0x3d0bbe],_[_0x2bb84f(0x9d)](_0x1ec823[_0x2bb84f(0xbb)][_0x33242c['id']])?_0x1ec823[_0x2bb84f(0xbb)][_0x33242c['id']]=new Trigger(_0x33242c):_0x1ec823[_0x2bb84f(0xda)](_0x1ec823[_0x2bb84f(0xbb)][_0x33242c['id']],_0x33242c);}}return _0x1ec823[_0x2bb84f(0xbb)];};},Realtime[a1260_0x3bc44c(0xa7)][a1260_0x3bc44c(0xb3)]=function(){const _0x54b41f=this;return function(_0x11cf7f){const _0x24a6f9=a1260_0x4aa3;if(_0x11cf7f){freeIsNotKey(_0x11cf7f,_0x54b41f[_0x24a6f9(0x93)],'id');for(let _0x2a2349=0x0,_0x44ac57={};_0x2a2349<_0x11cf7f[_0x24a6f9(0xde)];_0x2a2349+=0x1){_0x44ac57=_0x11cf7f[_0x2a2349],_[_0x24a6f9(0x9d)](_0x54b41f['templates'][_0x44ac57['id']])?_0x54b41f[_0x24a6f9(0x93)][_0x44ac57['id']]=new Template(_0x44ac57):_0x54b41f[_0x24a6f9(0xda)](_0x54b41f['templates'][_0x44ac57['id']],_0x44ac57);}}return _0x54b41f[_0x24a6f9(0x93)];};},Realtime[a1260_0x3bc44c(0xa7)]['initZendeskAccounts']=function(){const _0x27d779=this;return function(_0x2dbc5e){const _0x4ce237=a1260_0x4aa3;if(_0x2dbc5e){freeIsNotKey(_0x2dbc5e,_0x27d779[_0x4ce237(0xd5)],'id');for(let _0x10055a=0x0,_0x4633f3={};_0x10055a<_0x2dbc5e[_0x4ce237(0xde)];_0x10055a+=0x1){_0x4633f3=_0x2dbc5e[_0x10055a],_[_0x4ce237(0x9d)](_0x27d779[_0x4ce237(0xd5)][_0x4633f3['id']])?_0x27d779[_0x4ce237(0xd5)][_0x4633f3['id']]=new ZendeskAccount(_0x4633f3):_0x27d779[_0x4ce237(0xda)](_0x27d779['zendeskAccounts'][_0x4633f3['id']],_0x4633f3);}}return _0x27d779[_0x4ce237(0xd5)];};},Realtime[a1260_0x3bc44c(0xa7)][a1260_0x3bc44c(0xa2)]=function(){const _0x360ae2=this;return function(_0x16eb16){const _0x4e8ed0=a1260_0x4aa3;if(_0x16eb16){freeIsNotKey(_0x16eb16,_0x360ae2['salesforceAccounts'],'id');for(let _0x5bdd4b=0x0,_0x588d7c={};_0x5bdd4b<_0x16eb16[_0x4e8ed0(0xde)];_0x5bdd4b+=0x1){_0x588d7c=_0x16eb16[_0x5bdd4b],_[_0x4e8ed0(0x9d)](_0x360ae2[_0x4e8ed0(0xdd)][_0x588d7c['id']])?_0x360ae2[_0x4e8ed0(0xdd)][_0x588d7c['id']]=new SalesforceAccount(_0x588d7c):_0x360ae2['mergeFromDatabase'](_0x360ae2[_0x4e8ed0(0xdd)][_0x588d7c['id']],_0x588d7c);}}return _0x360ae2['salesforceAccounts'];};},Realtime[a1260_0x3bc44c(0xa7)][a1260_0x3bc44c(0x87)]=function(){const _0x116c86=this;return function(_0x45533f){const _0x3402b6=a1260_0x4aa3;if(_0x45533f){freeIsNotKey(_0x45533f,_0x116c86[_0x3402b6(0x97)],'id');for(let _0x39f35=0x0,_0x22d4d1={};_0x39f35<_0x45533f['length'];_0x39f35+=0x1){_0x22d4d1=_0x45533f[_0x39f35],_[_0x3402b6(0x9d)](_0x116c86[_0x3402b6(0x97)][_0x22d4d1['id']])?_0x116c86[_0x3402b6(0x97)][_0x22d4d1['id']]=new FreshdeskAccount(_0x22d4d1):_0x116c86[_0x3402b6(0xda)](_0x116c86[_0x3402b6(0x97)][_0x22d4d1['id']],_0x22d4d1);}}return _0x116c86['freshdeskAccounts'];};},Realtime[a1260_0x3bc44c(0xa7)]['initZohoAccounts']=function(){const _0x580e94=this;return function(_0x153473){const _0x35c9da=a1260_0x4aa3;if(_0x153473){freeIsNotKey(_0x153473,_0x580e94[_0x35c9da(0xa1)],'id');for(let _0x4b3546=0x0,_0x29f88c={};_0x4b3546<_0x153473[_0x35c9da(0xde)];_0x4b3546+=0x1){_0x29f88c=_0x153473[_0x4b3546],_[_0x35c9da(0x9d)](_0x580e94['zohoAccounts'][_0x29f88c['id']])?_0x580e94['zohoAccounts'][_0x29f88c['id']]=new ZohoAccount(_0x29f88c):_0x580e94[_0x35c9da(0xda)](_0x580e94['zohoAccounts'][_0x29f88c['id']],_0x29f88c);}}return _0x580e94['zohoAccounts'];};},Realtime[a1260_0x3bc44c(0xa7)]['initDeskAccounts']=function(){const _0x34f5d7=this;return function(_0x4ed642){const _0xfaedbd=a1260_0x4aa3;if(_0x4ed642){freeIsNotKey(_0x4ed642,_0x34f5d7[_0xfaedbd(0xd3)],'id');for(let _0x3d5685=0x0,_0x29e4a2={};_0x3d5685<_0x4ed642[_0xfaedbd(0xde)];_0x3d5685+=0x1){_0x29e4a2=_0x4ed642[_0x3d5685],_[_0xfaedbd(0x9d)](_0x34f5d7['deskAccounts'][_0x29e4a2['id']])?_0x34f5d7[_0xfaedbd(0xd3)][_0x29e4a2['id']]=new DeskAccount(_0x29e4a2):_0x34f5d7[_0xfaedbd(0xda)](_0x34f5d7['deskAccounts'][_0x29e4a2['id']],_0x29e4a2);}}return _0x34f5d7[_0xfaedbd(0xd3)];};},Realtime[a1260_0x3bc44c(0xa7)]['initSugarcrmAccounts']=function(){const _0x813fdf=this;return function(_0x194d78){const _0x2568c7=a1260_0x4aa3;if(_0x194d78){freeIsNotKey(_0x194d78,_0x813fdf['sugarcrmAccounts'],'id');for(let _0x28cb47=0x0,_0x2df7c6={};_0x28cb47<_0x194d78[_0x2568c7(0xde)];_0x28cb47+=0x1){_0x2df7c6=_0x194d78[_0x28cb47],_[_0x2568c7(0x9d)](_0x813fdf['sugarcrmAccounts'][_0x2df7c6['id']])?_0x813fdf['sugarcrmAccounts'][_0x2df7c6['id']]=new SugarcrmAccount(_0x2df7c6):_0x813fdf[_0x2568c7(0xda)](_0x813fdf[_0x2568c7(0x9e)][_0x2df7c6['id']],_0x2df7c6);}}return _0x813fdf[_0x2568c7(0x9e)];};},Realtime[a1260_0x3bc44c(0xa7)][a1260_0x3bc44c(0xc0)]=function(){const _0x2bb61=this;return function(_0x34784d){const _0x34b029=a1260_0x4aa3;if(_0x34784d){freeIsNotKey(_0x34784d,_0x2bb61[_0x34b029(0xc1)],'id');for(let _0x2e5896=0x0,_0x595cb3={};_0x2e5896<_0x34784d[_0x34b029(0xde)];_0x2e5896+=0x1){_0x595cb3=_0x34784d[_0x2e5896],_[_0x34b029(0x9d)](_0x2bb61['vtigerAccounts'][_0x595cb3['id']])?_0x2bb61[_0x34b029(0xc1)][_0x595cb3['id']]=new VtigerAccount(_0x595cb3):_0x2bb61[_0x34b029(0xda)](_0x2bb61[_0x34b029(0xc1)][_0x595cb3['id']],_0x595cb3);}}return _0x2bb61[_0x34b029(0xc1)];};},Realtime[a1260_0x3bc44c(0xa7)][a1260_0x3bc44c(0xcb)]=function(){const _0x2498c0=this;return function(_0x1e022b){const _0x53f715=a1260_0x4aa3;if(_0x1e022b){freeIsNotKey(_0x1e022b,_0x2498c0[_0x53f715(0x95)],'id');for(let _0x2b8932=0x0,_0x3681f2={};_0x2b8932<_0x1e022b[_0x53f715(0xde)];_0x2b8932+=0x1){_0x3681f2=_0x1e022b[_0x2b8932],_['isUndefined'](_0x2498c0[_0x53f715(0x95)][_0x3681f2['id']])?_0x2498c0[_0x53f715(0x95)][_0x3681f2['id']]=new ServicenowAccount(_0x3681f2):_0x2498c0[_0x53f715(0xda)](_0x2498c0[_0x53f715(0x95)][_0x3681f2['id']],_0x3681f2);}}return _0x2498c0[_0x53f715(0x95)];};},Realtime[a1260_0x3bc44c(0xa7)][a1260_0x3bc44c(0xdf)]=function(){const _0x36d793=this;return function(_0xb5b47){const _0x3a102f=a1260_0x4aa3;if(_0xb5b47){freeIsNotKey(_0xb5b47,_0x36d793['dynamics365Accounts'],'id');for(let _0x5f1d30=0x0,_0x1f18b8={};_0x5f1d30<_0xb5b47[_0x3a102f(0xde)];_0x5f1d30+=0x1){_0x1f18b8=_0xb5b47[_0x5f1d30],_['isUndefined'](_0x36d793['dynamics365Accounts'][_0x1f18b8['id']])?_0x36d793['dynamics365Accounts'][_0x1f18b8['id']]=new Dynamics365Account(_0x1f18b8):_0x36d793['mergeFromDatabase'](_0x36d793[_0x3a102f(0xce)][_0x1f18b8['id']],_0x1f18b8);}}return _0x36d793['dynamics365Accounts'];};},Realtime['prototype'][a1260_0x3bc44c(0xe6)]=function(){const _0x4c243e=this;return function(_0xdf2103){const _0x46357c=a1260_0x4aa3;if(_0xdf2103){freeIsNotKey(_0xdf2103,_0x4c243e['freshsalesAccounts'],'id');for(let _0x3fa66e=0x0,_0x3663c5={};_0x3fa66e<_0xdf2103[_0x46357c(0xde)];_0x3fa66e+=0x1){_0x3663c5=_0xdf2103[_0x3fa66e],_[_0x46357c(0x9d)](_0x4c243e[_0x46357c(0xd6)][_0x3663c5['id']])?_0x4c243e[_0x46357c(0xd6)][_0x3663c5['id']]=new FreshsalesAccount(_0x3663c5):_0x4c243e[_0x46357c(0xda)](_0x4c243e[_0x46357c(0xd6)][_0x3663c5['id']],_0x3663c5);}}return _0x4c243e['freshsalesAccounts'];};},Realtime[a1260_0x3bc44c(0xa7)]['initVoiceQueueHopperHistory']=function(){const _0x1380a1=this;return function(_0x57fb43){const _0x2026dd=a1260_0x4aa3;for(let _0x59ad6c=0x0;_0x59ad6c<_0x57fb43['length'];_0x59ad6c+=0x1){_[_0x2026dd(0xcc)](_0x1380a1[_0x2026dd(0x89)][_0x57fb43[_0x59ad6c][_0x2026dd(0xd4)]],_0x57fb43[_0x59ad6c]);}return _0x1380a1[_0x2026dd(0x89)];};},Realtime['prototype'][a1260_0x3bc44c(0x9a)]=function(){const _0x1a4f06=this;return function(_0x4476f3){const _0x307b86=a1260_0x4aa3;clearVoiceQueues(_0x1a4f06['voiceQueues']);if(_0x4476f3){_0x4476f3=_['groupBy'](_0x4476f3,_0x307b86(0xbf));for(const _0x827093 in _0x4476f3){if(typeof _0x4476f3[_0x827093]!==_0x307b86(0xc6))for(let _0x24f8fa=0x0;_0x24f8fa<_0x4476f3[_0x827093]['length'];_0x24f8fa+=0x1){const _0x2ee43c=_0x4476f3[_0x827093][_0x24f8fa][_0x307b86(0xb9)];_0x1a4f06[_0x307b86(0x89)][_0x2ee43c]&&(_0x4476f3[_0x827093][_0x24f8fa][_0x307b86(0xe5)]&&(_0x1a4f06[_0x307b86(0x89)][_0x2ee43c][_0x307b86(0xd8)]+=0x1),_0x4476f3[_0x827093][_0x24f8fa][_0x307b86(0xca)]&&(_0x1a4f06[_0x307b86(0x89)][_0x2ee43c][_0x307b86(0xa6)]+=0x1),_0x1a4f06[_0x307b86(0x89)][_0x2ee43c][_0x307b86(0x8a)]+=moment(_0x4476f3[_0x827093][_0x24f8fa]['queuecallerleaveAt'])[_0x307b86(0xb8)](moment(_0x4476f3[_0x827093][_0x24f8fa][_0x307b86(0x88)]),'seconds')||0x0,_0x24f8fa===_0x4476f3[_0x827093][_0x307b86(0xde)]-0x1?(_0x1a4f06[_0x307b86(0x89)][_0x2ee43c][_0x307b86(0x9f)]+=moment(_0x4476f3[_0x827093][_0x24f8fa][_0x307b86(0xa5)]||_0x4476f3[_0x827093][_0x24f8fa]['queuecallerabandonAt']||_0x4476f3[_0x827093][_0x24f8fa][_0x307b86(0xb2)])['diff'](moment(_0x4476f3[_0x827093][_0x24f8fa][_0x307b86(0x88)]),_0x307b86(0x8b))||0x0,_0x1a4f06[_0x307b86(0x89)][_0x2ee43c][_0x307b86(0x8d)]+=0x1,_0x4476f3[_0x827093][_0x24f8fa][_0x307b86(0x83)]&&(_0x1a4f06['voiceQueues'][_0x2ee43c][_0x307b86(0xb7)]+=0x1,_0x1a4f06[_0x307b86(0x89)][_0x2ee43c][_0x307b86(0xb6)]+=moment(_0x4476f3[_0x827093][_0x24f8fa]['queuecallercompleteAt'])[_0x307b86(0xb8)](moment(_0x4476f3[_0x827093][_0x24f8fa][_0x307b86(0xbd)]),_0x307b86(0x8b))||0x0)):_0x1a4f06[_0x307b86(0x89)][_0x2ee43c][_0x307b86(0x9f)]+=_0x1a4f06[_0x307b86(0x89)][_0x2ee43c][_0x307b86(0x8a)]||0x0);}}}return _0x1a4f06['voiceQueues'];};},Realtime[a1260_0x3bc44c(0xa7)][a1260_0x3bc44c(0xaa)]=function(){const _0x13c563=this;return function(_0x569caa){const _0x4b6865=a1260_0x4aa3;clearVoiceCallReports(_0x13c563[_0x4b6865(0xab)]);if(_0x569caa)for(let _0x67ff57=0x0;_0x67ff57<_0x569caa[_0x4b6865(0xde)];_0x67ff57+=0x1){_0x13c563['outbound']['total']+=0x1,_0x13c563['outbound'][_0x4b6865(0x9f)]+=_0x569caa[_0x67ff57][_0x4b6865(0xe1)],_0x569caa[_0x67ff57][_0x4b6865(0xa0)]===_0x4b6865(0xac)&&(_0x13c563[_0x4b6865(0xab)]['answered']+=0x1,_0x13c563['outbound']['sumHoldTime']+=_0x569caa[_0x67ff57]['duration']-_0x569caa[_0x67ff57][_0x4b6865(0xc5)]||0x0,_0x13c563[_0x4b6865(0xab)][_0x4b6865(0xb6)]+=_0x569caa[_0x67ff57][_0x4b6865(0xc5)]);}return _0x13c563[_0x4b6865(0xab)];};},Realtime[a1260_0x3bc44c(0xa7)]['initCampaigns']=function(){const _0x5858bd=this;return function(_0x2b68ed){const _0x2429df=a1260_0x4aa3;if(_0x2b68ed){freeIsNotKey(_0x2b68ed,_0x5858bd[_0x2429df(0x8e)],_0x2429df(0xd4));for(let _0x4ffaaf=0x0,_0x2da2c4={};_0x4ffaaf<_0x2b68ed['length'];_0x4ffaaf+=0x1){_0x2da2c4=_0x2b68ed[_0x4ffaaf],_[_0x2429df(0x9d)](_0x5858bd[_0x2429df(0x8e)][_0x2da2c4['name']])?_0x5858bd[_0x2429df(0x8e)][_0x2da2c4['name']]=new Campaign(_0x2da2c4):(_0x5858bd[_0x2429df(0xda)](_0x5858bd[_0x2429df(0x8e)][_0x2da2c4['name']],_0x2da2c4),_0x5858bd[_0x2429df(0x8e)][_0x2da2c4[_0x2429df(0xd4)]]['dialQueueProject']=_0x2da2c4[_0x2429df(0xe4)]?_0x2da2c4[_0x2429df(0xe4)]['name']:undefined);}}return _0x5858bd[_0x2429df(0x8e)];};},Realtime['prototype'][a1260_0x3bc44c(0xbc)]=function(){const _0x204e45=this;return function(_0xe1a735){const _0x5277d2=a1260_0x4aa3;if(_0xe1a735){freeIsNotKey(_0xe1a735,_0x204e45[_0x5277d2(0xba)],'id');for(let _0x2711a7=0x0,_0x570f1a={};_0x2711a7<_0xe1a735[_0x5277d2(0xde)];_0x2711a7+=0x1){_0x570f1a=_0xe1a735[_0x2711a7],_['isUndefined'](_0x204e45['voiceExtensions'][_0x570f1a['id']])?_0x204e45[_0x5277d2(0xba)][_0x570f1a['id']]=new VoiceExtension(_0x570f1a):_0x204e45[_0x5277d2(0xda)](_0x204e45['voiceExtensions'][_0x570f1a['id']],_0x570f1a);}}return _0x204e45['voiceExtensions'];};},Realtime[a1260_0x3bc44c(0xa7)][a1260_0x3bc44c(0xea)]=function(){const _0x48bced=this;return function(_0x233bee){const _0x1b4066=a1260_0x4aa3;clearCampaigns(_0x48bced['campaigns']);for(let _0x242c57=0x0;_0x242c57<_0x233bee[_0x1b4066(0xde)];_0x242c57+=0x1){_[_0x1b4066(0xcc)](_0x48bced['campaigns'][_0x233bee[_0x242c57][_0x1b4066(0xd4)]],_0x233bee[_0x242c57]);}return _0x48bced['campaigns'];};},Realtime[a1260_0x3bc44c(0xa7)]['initFaxAccounts']=function(){const _0x23cae1=this;return function(_0x326d7a){const _0x14e933=a1260_0x4aa3;if(_0x326d7a){freeIsNotKey(_0x326d7a,_0x23cae1[_0x14e933(0x85)],'id');for(let _0x313ba1=0x0,_0x47b013={};_0x313ba1<_0x326d7a[_0x14e933(0xde)];_0x313ba1+=0x1){_0x47b013=_0x326d7a[_0x313ba1],_['isUndefined'](_0x23cae1['faxAccounts'][_0x47b013['id']])?_0x23cae1[_0x14e933(0x85)][_0x47b013['id']]=new FaxAccount(_0x47b013):_0x23cae1[_0x14e933(0xda)](_0x23cae1[_0x14e933(0x85)][_0x47b013['id']],_0x47b013);}}return _0x23cae1[_0x14e933(0x85)];};},module[a1260_0x3bc44c(0xdc)]=Realtime; \ No newline at end of file +const a1260_0x830a=['outboundNoAnswerCallsDay','voiceExtensions','../model/deskAccount','initSalesforceAccounts','util','name','sumHoldTime','initCampaignHopperHistory','sugarcrmAccounts','duration','../model/voiceQueue','outboundOriginateFailureCallsDay','agents','length','isUndefined','initServicenowAccounts','outboundBlacklistCallsDay','isNil','queuecallerabandonAt','seconds','outboundDropCallsDayTimeout','../model/trunk','queuecallerleaveAt','sumBillable','salesforceAccounts','initVoiceQueueReports','dynamics365Accounts','merge','queuecallerjoinAt','freshdeskAccounts','disposition','../model/sugarcrmAccount','initTriggers','sumDuration','initVoiceExtensions','../model/faxAccount','queuecallerexit','total','prototype','../model/freshdeskAccount','../model/voiceExtension','templates','diff','outboundUnknownCallsDay','servicenowAccounts','../model/campaign','queueChannels','outboundAnswerAgiCallsDay','initVoiceQueues','abandoned','initDynamics365Accounts','outboundCongestionCallsDay','undefined','unmanaged','uniqueid','ANSWERED','initFreshsalesAccounts','billableseconds','outboundRejectCallsDay','SquareProject','outboundDropCallsDayCallersExit','queuecallerabandon','mapKeys','lodash','../model/trigger','initCampaigns','initTelephones','mergeFromDatabase','answered','initDeskAccounts','deskAccounts','outboundBusyCallsDay','vtigerAccounts','../model/dynamics365Account','outboundAnswerCallsDay','interface','../model/salesforceAccount','queuecallercomplete','trunks','voiceQueues','faxAccounts','telephones','ivrAnswerCallsDay','initZendeskAccounts','freshsalesAccounts','triggers','SIP/%s','../model/zohoAccount','../model/template','../model/servicenowAccount','format','queuecallercompleteAt','outboundReCallsDay','outbound','ivrTotalCallsDays','campaigns','initTemplates','outboundNoSuchCallsDay','isEmpty','initFaxAccounts','timers','zohoAccounts','exports','initZohoAccounts','groupBy','zendeskAccounts','outboundChannels'];(function(_0xd66675,_0xc59e39){const _0x830aab=function(_0x11575a){while(--_0x11575a){_0xd66675['push'](_0xd66675['shift']());}};_0x830aab(++_0xc59e39);}(a1260_0x830a,0x1cb));const a1260_0x1157=function(_0xd66675,_0xc59e39){_0xd66675=_0xd66675-0x16c;let _0x830aab=a1260_0x830a[_0xd66675];return _0x830aab;};const a1260_0x42427b=a1260_0x1157;'use strict';const util=require(a1260_0x42427b(0x1bc)),_=require(a1260_0x42427b(0x18c)),moment=require('moment'),Agent=require('../model/agent'),Telephone=require('../model/telephone'),Trunk=require(a1260_0x42427b(0x1cd)),VoiceQueue=require(a1260_0x42427b(0x1c2)),Trigger=require(a1260_0x42427b(0x18d)),Template=require(a1260_0x42427b(0x1a5)),Campaign=require(a1260_0x42427b(0x17a)),VoiceExtension=require(a1260_0x42427b(0x175)),ZendeskAccount=require('../model/zendeskAccount'),SalesforceAccount=require(a1260_0x42427b(0x199)),FreshdeskAccount=require(a1260_0x42427b(0x174)),SugarcrmAccount=require(a1260_0x42427b(0x16c)),ZohoAccount=require(a1260_0x42427b(0x1a4)),DeskAccount=require(a1260_0x42427b(0x1ba)),VtigerAccount=require('../model/vtigerAccount'),ServicenowAccount=require(a1260_0x42427b(0x1a6)),Dynamics365Account=require(a1260_0x42427b(0x196)),FreshsalesAccount=require('../model/freshsalesAccount'),FaxAccount=require(a1260_0x42427b(0x170)),Realtime=function(){const _0x129786=a1260_0x42427b;this['agents']={},this[_0x129786(0x19e)]={},this[_0x129786(0x19b)]={},this[_0x129786(0x19c)]={},this[_0x129786(0x1a2)]={},this[_0x129786(0x1ac)]={},this['templates']={},this[_0x129786(0x1aa)]={'total':0x0,'answered':0x0,'sumHoldTime':0x0,'sumDuration':0x0,'sumBillable':0x0},this['voiceExtensions']={},this['channels']={},this[_0x129786(0x17b)]={},this[_0x129786(0x1b7)]={},this[_0x129786(0x1b1)]={},this['zendeskAccounts']={},this['salesforceAccounts']={},this[_0x129786(0x1c0)]={},this[_0x129786(0x1d5)]={},this['zohoAccounts']={},this['deskAccounts']={},this[_0x129786(0x195)]={},this[_0x129786(0x179)]={},this[_0x129786(0x1d2)]={},this[_0x129786(0x1a1)]={},this[_0x129786(0x19d)]={};};function freeIsNotKey(_0x1cfd62,_0x4f8f39,_0x4a35c6){const _0x4dfea7=a1260_0x42427b,_0x38192b=_[_0x4dfea7(0x18b)](_0x1cfd62,function(_0x6772be){return _0x6772be[_0x4a35c6];});for(const _0x5928aa in _0x4f8f39){typeof _0x4f8f39[_0x5928aa]!==_0x4dfea7(0x181)&&(!_0x38192b[_0x5928aa]&&delete _0x4f8f39[_0x5928aa]);}}function freeIsNotKeySip(_0x2710ca,_0x1c078e){const _0x4e477f=a1260_0x42427b,_0x37cc58=_[_0x4e477f(0x18b)](_0x2710ca,function(_0x58d3d4){const _0x51442f=_0x4e477f;return util[_0x51442f(0x1a7)](_0x51442f(0x1a3),_0x58d3d4[_0x51442f(0x1bd)]);});for(const _0x293b17 in _0x1c078e){typeof _0x1c078e[_0x293b17]!==_0x4e477f(0x181)&&(!_0x37cc58[_0x293b17]&&delete _0x1c078e[_0x293b17]);}}function freeIsNotKeyAgent(_0x4e98d4,_0x3eeff4){const _0x3dc860=a1260_0x42427b,_0x39da17=_[_0x3dc860(0x18b)](_0x4e98d4,function(_0x122ee3){const _0x5d2891=_0x3dc860,_0x4cde98=_[_0x5d2891(0x1c9)](_0x122ee3[_0x5d2891(0x198)])?util[_0x5d2891(0x1a7)]('SIP/%s',_0x122ee3[_0x5d2891(0x1bd)]):_0x122ee3[_0x5d2891(0x198)];return _0x4cde98;});for(const _0x90b36f in _0x3eeff4){typeof _0x3eeff4[_0x90b36f]!==_0x3dc860(0x181)&&(!_0x39da17[_0x90b36f]&&delete _0x3eeff4[_0x90b36f]);}}function clearVoiceCallReports(_0x24735f){const _0x1a41a2=a1260_0x42427b;_0x24735f['total']=0x0,_0x24735f['answered']=0x0,_0x24735f[_0x1a41a2(0x1be)]=0x0,_0x24735f['sumDuration']=0x0,_0x24735f['sumBillable']=0x0;}function clearCampaigns(_0x331650){const _0x3827fb=a1260_0x42427b;if(!_['isEmpty'](_0x331650))for(const _0xcc4d60 in _0x331650){typeof _0x331650[_0xcc4d60]!=='undefined'&&(_0x331650[_0xcc4d60][_0x3827fb(0x1ab)]=0x0,_0x331650[_0xcc4d60][_0x3827fb(0x19f)]=0x0);}}function clearVoiceQueues(_0x4a8006){const _0x2dadcd=a1260_0x42427b;if(!_[_0x2dadcd(0x1af)](_0x4a8006))for(const _0x5c7f81 in _0x4a8006){typeof _0x4a8006[_0x5c7f81]!==_0x2dadcd(0x181)&&(_0x4a8006[_0x5c7f81]['total']=0x0,_0x4a8006[_0x5c7f81][_0x2dadcd(0x191)]=0x0,_0x4a8006[_0x5c7f81][_0x2dadcd(0x182)]=0x0,_0x4a8006[_0x5c7f81]['abandoned']=0x0,_0x4a8006[_0x5c7f81][_0x2dadcd(0x1be)]=0x0,_0x4a8006[_0x5c7f81]['sumDuration']=0x0,_0x4a8006[_0x5c7f81][_0x2dadcd(0x1cf)]=0x0,_0x4a8006[_0x5c7f81][_0x2dadcd(0x17c)]=0x0,_0x4a8006[_0x5c7f81][_0x2dadcd(0x1b8)]=0x0,_0x4a8006[_0x5c7f81][_0x2dadcd(0x194)]=0x0,_0x4a8006[_0x5c7f81][_0x2dadcd(0x180)]=0x0,_0x4a8006[_0x5c7f81][_0x2dadcd(0x1ae)]=0x0,_0x4a8006[_0x5c7f81][_0x2dadcd(0x178)]=0x0,_0x4a8006[_0x5c7f81][_0x2dadcd(0x1cc)]=0x0,_0x4a8006[_0x5c7f81][_0x2dadcd(0x189)]=0x0,_0x4a8006[_0x5c7f81][_0x2dadcd(0x1c8)]=0x0,_0x4a8006[_0x5c7f81][_0x2dadcd(0x1c3)]=0x0,_0x4a8006[_0x5c7f81][_0x2dadcd(0x187)]=0x0,_0x4a8006[_0x5c7f81][_0x2dadcd(0x1a9)]=0x0,_0x4a8006[_0x5c7f81]['outboundAnswerAgiCallsDay']=0x0,_0x4a8006[_0x5c7f81][_0x2dadcd(0x197)]=0x0,_0x4a8006[_0x5c7f81]['queueStatusComplete']=!![]);}}Realtime[a1260_0x42427b(0x173)][a1260_0x42427b(0x190)]=function(_0x5b7298,_0x452596){const _0xd4713e=a1260_0x42427b;for(const _0x237d77 in _0x452596){typeof _0x5b7298[_0x237d77]!==_0xd4713e(0x181)&&(_0x5b7298[_0x237d77]=_0x452596[_0x237d77]);}},Realtime['prototype']['initAgents']=function(){const _0x5b8889=this;return function(_0x1d84e1){const _0x4e4c12=a1260_0x1157;if(_0x1d84e1){freeIsNotKeyAgent(_0x1d84e1,_0x5b8889[_0x4e4c12(0x1c4)]);for(let _0x3e1f3d=0x0,_0x1c56f3={};_0x3e1f3d<_0x1d84e1[_0x4e4c12(0x1c5)];_0x3e1f3d+=0x1){_0x1c56f3=_0x1d84e1[_0x3e1f3d];const _0x494651=_[_0x4e4c12(0x1c9)](_0x1c56f3[_0x4e4c12(0x198)])?util[_0x4e4c12(0x1a7)](_0x4e4c12(0x1a3),_0x1c56f3['name']):_0x1c56f3[_0x4e4c12(0x198)];_['isUndefined'](_0x5b8889['agents'][_0x494651])?_0x5b8889['agents'][_0x494651]=new Agent(_0x1c56f3):_0x5b8889[_0x4e4c12(0x190)](_0x5b8889[_0x4e4c12(0x1c4)][_0x494651],_0x1c56f3);}}return _0x5b8889['agents'];};},Realtime[a1260_0x42427b(0x173)][a1260_0x42427b(0x18f)]=function(){const _0x1a4246=this;return function(_0x5136a3){const _0x45f870=a1260_0x1157;if(_0x5136a3){freeIsNotKeySip(_0x5136a3,_0x1a4246[_0x45f870(0x19e)]);for(let _0x38706c=0x0,_0x137124={};_0x38706c<_0x5136a3[_0x45f870(0x1c5)];_0x38706c+=0x1){_0x137124=_0x5136a3[_0x38706c],_[_0x45f870(0x1c6)](_0x1a4246['telephones'][util[_0x45f870(0x1a7)](_0x45f870(0x1a3),_0x137124['name'])])?_0x1a4246[_0x45f870(0x19e)][util[_0x45f870(0x1a7)](_0x45f870(0x1a3),_0x137124[_0x45f870(0x1bd)])]=new Telephone(_0x137124):_0x1a4246[_0x45f870(0x190)](_0x1a4246[_0x45f870(0x19e)][util[_0x45f870(0x1a7)]('SIP/%s',_0x137124[_0x45f870(0x1bd)])],_0x137124);}}return _0x1a4246[_0x45f870(0x19e)];};},Realtime['prototype']['initTrunks']=function(){const _0x13c0bc=this;return function(_0x3b3fb9){const _0x22970f=a1260_0x1157;if(_0x3b3fb9){freeIsNotKeySip(_0x3b3fb9,_0x13c0bc[_0x22970f(0x19b)]);for(let _0x4d27df=0x0,_0x5b853b={};_0x4d27df<_0x3b3fb9[_0x22970f(0x1c5)];_0x4d27df+=0x1){_0x5b853b=_0x3b3fb9[_0x4d27df],_['isUndefined'](_0x13c0bc[_0x22970f(0x19b)][util[_0x22970f(0x1a7)]('SIP/%s',_0x5b853b['name'])])?_0x13c0bc[_0x22970f(0x19b)][util[_0x22970f(0x1a7)](_0x22970f(0x1a3),_0x5b853b[_0x22970f(0x1bd)])]=new Trunk(_0x5b853b):_0x13c0bc[_0x22970f(0x190)](_0x13c0bc[_0x22970f(0x19b)][util['format'](_0x22970f(0x1a3),_0x5b853b[_0x22970f(0x1bd)])],_0x5b853b);}}return _0x13c0bc[_0x22970f(0x19b)];};},Realtime['prototype'][a1260_0x42427b(0x17d)]=function(){const _0x2a1da4=this;return function(_0x2f78ee){const _0x59c8f1=a1260_0x1157;if(_0x2f78ee){freeIsNotKey(_0x2f78ee,_0x2a1da4[_0x59c8f1(0x19c)],_0x59c8f1(0x1bd));for(let _0x384720=0x0,_0x565b79={};_0x384720<_0x2f78ee['length'];_0x384720+=0x1){_0x565b79=_0x2f78ee[_0x384720],_[_0x59c8f1(0x1c6)](_0x2a1da4['voiceQueues'][_0x565b79[_0x59c8f1(0x1bd)]])?_0x2a1da4[_0x59c8f1(0x19c)][_0x565b79['name']]=new VoiceQueue(_0x565b79):_0x2a1da4['mergeFromDatabase'](_0x2a1da4[_0x59c8f1(0x19c)][_0x565b79[_0x59c8f1(0x1bd)]],_0x565b79);}}return _0x2a1da4[_0x59c8f1(0x19c)];};},Realtime[a1260_0x42427b(0x173)][a1260_0x42427b(0x16d)]=function(){const _0x557cf1=this;return function(_0x9f9104){const _0x449028=a1260_0x1157;if(_0x9f9104){freeIsNotKey(_0x9f9104,_0x557cf1[_0x449028(0x1a2)],'id');for(let _0x35d577=0x0,_0x402945={};_0x35d577<_0x9f9104['length'];_0x35d577+=0x1){_0x402945=_0x9f9104[_0x35d577],_[_0x449028(0x1c6)](_0x557cf1[_0x449028(0x1a2)][_0x402945['id']])?_0x557cf1[_0x449028(0x1a2)][_0x402945['id']]=new Trigger(_0x402945):_0x557cf1[_0x449028(0x190)](_0x557cf1[_0x449028(0x1a2)][_0x402945['id']],_0x402945);}}return _0x557cf1['triggers'];};},Realtime[a1260_0x42427b(0x173)][a1260_0x42427b(0x1ad)]=function(){const _0x506b04=this;return function(_0x37293b){const _0x5dc38c=a1260_0x1157;if(_0x37293b){freeIsNotKey(_0x37293b,_0x506b04[_0x5dc38c(0x176)],'id');for(let _0x349309=0x0,_0x1629ce={};_0x349309<_0x37293b['length'];_0x349309+=0x1){_0x1629ce=_0x37293b[_0x349309],_[_0x5dc38c(0x1c6)](_0x506b04['templates'][_0x1629ce['id']])?_0x506b04['templates'][_0x1629ce['id']]=new Template(_0x1629ce):_0x506b04[_0x5dc38c(0x190)](_0x506b04[_0x5dc38c(0x176)][_0x1629ce['id']],_0x1629ce);}}return _0x506b04[_0x5dc38c(0x176)];};},Realtime[a1260_0x42427b(0x173)][a1260_0x42427b(0x1a0)]=function(){const _0x2a6000=this;return function(_0x367868){const _0x1a7a4c=a1260_0x1157;if(_0x367868){freeIsNotKey(_0x367868,_0x2a6000[_0x1a7a4c(0x1b6)],'id');for(let _0x1252fb=0x0,_0x1f9140={};_0x1252fb<_0x367868['length'];_0x1252fb+=0x1){_0x1f9140=_0x367868[_0x1252fb],_['isUndefined'](_0x2a6000[_0x1a7a4c(0x1b6)][_0x1f9140['id']])?_0x2a6000[_0x1a7a4c(0x1b6)][_0x1f9140['id']]=new ZendeskAccount(_0x1f9140):_0x2a6000[_0x1a7a4c(0x190)](_0x2a6000['zendeskAccounts'][_0x1f9140['id']],_0x1f9140);}}return _0x2a6000[_0x1a7a4c(0x1b6)];};},Realtime[a1260_0x42427b(0x173)][a1260_0x42427b(0x1bb)]=function(){const _0x551e92=this;return function(_0x5b2f54){const _0x500ba7=a1260_0x1157;if(_0x5b2f54){freeIsNotKey(_0x5b2f54,_0x551e92[_0x500ba7(0x1d0)],'id');for(let _0x4eacb1=0x0,_0x331db7={};_0x4eacb1<_0x5b2f54[_0x500ba7(0x1c5)];_0x4eacb1+=0x1){_0x331db7=_0x5b2f54[_0x4eacb1],_[_0x500ba7(0x1c6)](_0x551e92[_0x500ba7(0x1d0)][_0x331db7['id']])?_0x551e92[_0x500ba7(0x1d0)][_0x331db7['id']]=new SalesforceAccount(_0x331db7):_0x551e92[_0x500ba7(0x190)](_0x551e92[_0x500ba7(0x1d0)][_0x331db7['id']],_0x331db7);}}return _0x551e92[_0x500ba7(0x1d0)];};},Realtime[a1260_0x42427b(0x173)]['initFreshdeskAccounts']=function(){const _0x288a33=this;return function(_0x368c8f){const _0x1ab359=a1260_0x1157;if(_0x368c8f){freeIsNotKey(_0x368c8f,_0x288a33['freshdeskAccounts'],'id');for(let _0x262063=0x0,_0x52c959={};_0x262063<_0x368c8f[_0x1ab359(0x1c5)];_0x262063+=0x1){_0x52c959=_0x368c8f[_0x262063],_[_0x1ab359(0x1c6)](_0x288a33[_0x1ab359(0x1d5)][_0x52c959['id']])?_0x288a33[_0x1ab359(0x1d5)][_0x52c959['id']]=new FreshdeskAccount(_0x52c959):_0x288a33[_0x1ab359(0x190)](_0x288a33[_0x1ab359(0x1d5)][_0x52c959['id']],_0x52c959);}}return _0x288a33[_0x1ab359(0x1d5)];};},Realtime[a1260_0x42427b(0x173)][a1260_0x42427b(0x1b4)]=function(){const _0x377225=this;return function(_0x200fdc){const _0x3e0eeb=a1260_0x1157;if(_0x200fdc){freeIsNotKey(_0x200fdc,_0x377225[_0x3e0eeb(0x1b2)],'id');for(let _0x267a35=0x0,_0x4ce201={};_0x267a35<_0x200fdc[_0x3e0eeb(0x1c5)];_0x267a35+=0x1){_0x4ce201=_0x200fdc[_0x267a35],_[_0x3e0eeb(0x1c6)](_0x377225[_0x3e0eeb(0x1b2)][_0x4ce201['id']])?_0x377225['zohoAccounts'][_0x4ce201['id']]=new ZohoAccount(_0x4ce201):_0x377225[_0x3e0eeb(0x190)](_0x377225[_0x3e0eeb(0x1b2)][_0x4ce201['id']],_0x4ce201);}}return _0x377225[_0x3e0eeb(0x1b2)];};},Realtime[a1260_0x42427b(0x173)][a1260_0x42427b(0x192)]=function(){const _0x5b9f68=this;return function(_0x518305){const _0x32f53f=a1260_0x1157;if(_0x518305){freeIsNotKey(_0x518305,_0x5b9f68['deskAccounts'],'id');for(let _0x2bddbd=0x0,_0x1c003a={};_0x2bddbd<_0x518305['length'];_0x2bddbd+=0x1){_0x1c003a=_0x518305[_0x2bddbd],_[_0x32f53f(0x1c6)](_0x5b9f68[_0x32f53f(0x193)][_0x1c003a['id']])?_0x5b9f68[_0x32f53f(0x193)][_0x1c003a['id']]=new DeskAccount(_0x1c003a):_0x5b9f68[_0x32f53f(0x190)](_0x5b9f68[_0x32f53f(0x193)][_0x1c003a['id']],_0x1c003a);}}return _0x5b9f68[_0x32f53f(0x193)];};},Realtime[a1260_0x42427b(0x173)]['initSugarcrmAccounts']=function(){const _0x1e27ca=this;return function(_0x32728a){const _0x583df9=a1260_0x1157;if(_0x32728a){freeIsNotKey(_0x32728a,_0x1e27ca[_0x583df9(0x1c0)],'id');for(let _0x4b1e6b=0x0,_0x371d5f={};_0x4b1e6b<_0x32728a['length'];_0x4b1e6b+=0x1){_0x371d5f=_0x32728a[_0x4b1e6b],_['isUndefined'](_0x1e27ca[_0x583df9(0x1c0)][_0x371d5f['id']])?_0x1e27ca[_0x583df9(0x1c0)][_0x371d5f['id']]=new SugarcrmAccount(_0x371d5f):_0x1e27ca[_0x583df9(0x190)](_0x1e27ca[_0x583df9(0x1c0)][_0x371d5f['id']],_0x371d5f);}}return _0x1e27ca[_0x583df9(0x1c0)];};},Realtime[a1260_0x42427b(0x173)]['initVtigerAccounts']=function(){const _0x2a009b=this;return function(_0x1aafc6){const _0x4a1615=a1260_0x1157;if(_0x1aafc6){freeIsNotKey(_0x1aafc6,_0x2a009b[_0x4a1615(0x195)],'id');for(let _0x122dc0=0x0,_0x1d1618={};_0x122dc0<_0x1aafc6[_0x4a1615(0x1c5)];_0x122dc0+=0x1){_0x1d1618=_0x1aafc6[_0x122dc0],_['isUndefined'](_0x2a009b[_0x4a1615(0x195)][_0x1d1618['id']])?_0x2a009b[_0x4a1615(0x195)][_0x1d1618['id']]=new VtigerAccount(_0x1d1618):_0x2a009b['mergeFromDatabase'](_0x2a009b[_0x4a1615(0x195)][_0x1d1618['id']],_0x1d1618);}}return _0x2a009b[_0x4a1615(0x195)];};},Realtime['prototype'][a1260_0x42427b(0x1c7)]=function(){const _0x2f2eff=this;return function(_0x7ba7d){const _0x2fc292=a1260_0x1157;if(_0x7ba7d){freeIsNotKey(_0x7ba7d,_0x2f2eff[_0x2fc292(0x179)],'id');for(let _0x332e33=0x0,_0x43582c={};_0x332e33<_0x7ba7d['length'];_0x332e33+=0x1){_0x43582c=_0x7ba7d[_0x332e33],_[_0x2fc292(0x1c6)](_0x2f2eff[_0x2fc292(0x179)][_0x43582c['id']])?_0x2f2eff[_0x2fc292(0x179)][_0x43582c['id']]=new ServicenowAccount(_0x43582c):_0x2f2eff[_0x2fc292(0x190)](_0x2f2eff[_0x2fc292(0x179)][_0x43582c['id']],_0x43582c);}}return _0x2f2eff[_0x2fc292(0x179)];};},Realtime[a1260_0x42427b(0x173)][a1260_0x42427b(0x17f)]=function(){const _0x7d9a2a=this;return function(_0x20cc1f){const _0x57acd2=a1260_0x1157;if(_0x20cc1f){freeIsNotKey(_0x20cc1f,_0x7d9a2a['dynamics365Accounts'],'id');for(let _0x280d50=0x0,_0x96a8df={};_0x280d50<_0x20cc1f['length'];_0x280d50+=0x1){_0x96a8df=_0x20cc1f[_0x280d50],_['isUndefined'](_0x7d9a2a[_0x57acd2(0x1d2)][_0x96a8df['id']])?_0x7d9a2a['dynamics365Accounts'][_0x96a8df['id']]=new Dynamics365Account(_0x96a8df):_0x7d9a2a[_0x57acd2(0x190)](_0x7d9a2a[_0x57acd2(0x1d2)][_0x96a8df['id']],_0x96a8df);}}return _0x7d9a2a[_0x57acd2(0x1d2)];};},Realtime[a1260_0x42427b(0x173)][a1260_0x42427b(0x185)]=function(){const _0x3de78e=this;return function(_0x469d79){const _0x3bfba1=a1260_0x1157;if(_0x469d79){freeIsNotKey(_0x469d79,_0x3de78e[_0x3bfba1(0x1a1)],'id');for(let _0x7bc292=0x0,_0x7416b2={};_0x7bc292<_0x469d79[_0x3bfba1(0x1c5)];_0x7bc292+=0x1){_0x7416b2=_0x469d79[_0x7bc292],_[_0x3bfba1(0x1c6)](_0x3de78e['freshsalesAccounts'][_0x7416b2['id']])?_0x3de78e[_0x3bfba1(0x1a1)][_0x7416b2['id']]=new FreshsalesAccount(_0x7416b2):_0x3de78e[_0x3bfba1(0x190)](_0x3de78e[_0x3bfba1(0x1a1)][_0x7416b2['id']],_0x7416b2);}}return _0x3de78e[_0x3bfba1(0x1a1)];};},Realtime[a1260_0x42427b(0x173)]['initVoiceQueueHopperHistory']=function(){const _0x3cb863=this;return function(_0x801570){const _0x5bb55a=a1260_0x1157;for(let _0x30fc70=0x0;_0x30fc70<_0x801570['length'];_0x30fc70+=0x1){_[_0x5bb55a(0x1d3)](_0x3cb863[_0x5bb55a(0x19c)][_0x801570[_0x30fc70]['name']],_0x801570[_0x30fc70]);}return _0x3cb863[_0x5bb55a(0x19c)];};},Realtime[a1260_0x42427b(0x173)][a1260_0x42427b(0x1d1)]=function(){const _0x3d6535=this;return function(_0x189236){const _0x504a8d=a1260_0x1157;clearVoiceQueues(_0x3d6535[_0x504a8d(0x19c)]);if(_0x189236){_0x189236=_[_0x504a8d(0x1b5)](_0x189236,_0x504a8d(0x183));for(const _0x65f216 in _0x189236){if(typeof _0x189236[_0x65f216]!==_0x504a8d(0x181))for(let _0x41109a=0x0;_0x41109a<_0x189236[_0x65f216][_0x504a8d(0x1c5)];_0x41109a+=0x1){const _0x1c135b=_0x189236[_0x65f216][_0x41109a]['queue'];_0x3d6535[_0x504a8d(0x19c)][_0x1c135b]&&(_0x189236[_0x65f216][_0x41109a][_0x504a8d(0x171)]&&(_0x3d6535[_0x504a8d(0x19c)][_0x1c135b][_0x504a8d(0x182)]+=0x1),_0x189236[_0x65f216][_0x41109a][_0x504a8d(0x18a)]&&(_0x3d6535[_0x504a8d(0x19c)][_0x1c135b][_0x504a8d(0x17e)]+=0x1),_0x3d6535[_0x504a8d(0x19c)][_0x1c135b]['sumHoldTime']+=moment(_0x189236[_0x65f216][_0x41109a][_0x504a8d(0x1ce)])['diff'](moment(_0x189236[_0x65f216][_0x41109a][_0x504a8d(0x1d4)]),'seconds')||0x0,_0x41109a===_0x189236[_0x65f216][_0x504a8d(0x1c5)]-0x1?(_0x3d6535['voiceQueues'][_0x1c135b][_0x504a8d(0x16e)]+=moment(_0x189236[_0x65f216][_0x41109a][_0x504a8d(0x1a8)]||_0x189236[_0x65f216][_0x41109a][_0x504a8d(0x1ca)]||_0x189236[_0x65f216][_0x41109a]['queuecallerexitAt'])[_0x504a8d(0x177)](moment(_0x189236[_0x65f216][_0x41109a][_0x504a8d(0x1d4)]),_0x504a8d(0x1cb))||0x0,_0x3d6535[_0x504a8d(0x19c)][_0x1c135b][_0x504a8d(0x172)]+=0x1,_0x189236[_0x65f216][_0x41109a][_0x504a8d(0x19a)]&&(_0x3d6535['voiceQueues'][_0x1c135b][_0x504a8d(0x191)]+=0x1,_0x3d6535[_0x504a8d(0x19c)][_0x1c135b][_0x504a8d(0x1cf)]+=moment(_0x189236[_0x65f216][_0x41109a][_0x504a8d(0x1a8)])[_0x504a8d(0x177)](moment(_0x189236[_0x65f216][_0x41109a]['queuecallerleaveAt']),_0x504a8d(0x1cb))||0x0)):_0x3d6535[_0x504a8d(0x19c)][_0x1c135b]['sumDuration']+=_0x3d6535['voiceQueues'][_0x1c135b][_0x504a8d(0x1be)]||0x0);}}}return _0x3d6535[_0x504a8d(0x19c)];};},Realtime[a1260_0x42427b(0x173)]['initVoiceCallReports']=function(){const _0x4ac8f1=this;return function(_0x1d5b53){const _0x3bed2e=a1260_0x1157;clearVoiceCallReports(_0x4ac8f1['outbound']);if(_0x1d5b53)for(let _0x165914=0x0;_0x165914<_0x1d5b53[_0x3bed2e(0x1c5)];_0x165914+=0x1){_0x4ac8f1[_0x3bed2e(0x1aa)][_0x3bed2e(0x172)]+=0x1,_0x4ac8f1[_0x3bed2e(0x1aa)]['sumDuration']+=_0x1d5b53[_0x165914][_0x3bed2e(0x1c1)],_0x1d5b53[_0x165914][_0x3bed2e(0x1d6)]===_0x3bed2e(0x184)&&(_0x4ac8f1[_0x3bed2e(0x1aa)][_0x3bed2e(0x191)]+=0x1,_0x4ac8f1[_0x3bed2e(0x1aa)]['sumHoldTime']+=_0x1d5b53[_0x165914]['duration']-_0x1d5b53[_0x165914][_0x3bed2e(0x186)]||0x0,_0x4ac8f1[_0x3bed2e(0x1aa)]['sumBillable']+=_0x1d5b53[_0x165914][_0x3bed2e(0x186)]);}return _0x4ac8f1[_0x3bed2e(0x1aa)];};},Realtime['prototype'][a1260_0x42427b(0x18e)]=function(){const _0x894153=this;return function(_0xf6246){const _0x4cf519=a1260_0x1157;if(_0xf6246){freeIsNotKey(_0xf6246,_0x894153[_0x4cf519(0x1ac)],_0x4cf519(0x1bd));for(let _0x15332e=0x0,_0x137886={};_0x15332e<_0xf6246[_0x4cf519(0x1c5)];_0x15332e+=0x1){_0x137886=_0xf6246[_0x15332e],_[_0x4cf519(0x1c6)](_0x894153[_0x4cf519(0x1ac)][_0x137886[_0x4cf519(0x1bd)]])?_0x894153[_0x4cf519(0x1ac)][_0x137886['name']]=new Campaign(_0x137886):(_0x894153[_0x4cf519(0x190)](_0x894153[_0x4cf519(0x1ac)][_0x137886['name']],_0x137886),_0x894153[_0x4cf519(0x1ac)][_0x137886[_0x4cf519(0x1bd)]]['dialQueueProject']=_0x137886[_0x4cf519(0x188)]?_0x137886[_0x4cf519(0x188)][_0x4cf519(0x1bd)]:undefined);}}return _0x894153['campaigns'];};},Realtime[a1260_0x42427b(0x173)][a1260_0x42427b(0x16f)]=function(){const _0x3ee510=this;return function(_0x54e716){const _0x572a04=a1260_0x1157;if(_0x54e716){freeIsNotKey(_0x54e716,_0x3ee510[_0x572a04(0x1b9)],'id');for(let _0x531b6a=0x0,_0x22e3d8={};_0x531b6a<_0x54e716[_0x572a04(0x1c5)];_0x531b6a+=0x1){_0x22e3d8=_0x54e716[_0x531b6a],_[_0x572a04(0x1c6)](_0x3ee510['voiceExtensions'][_0x22e3d8['id']])?_0x3ee510[_0x572a04(0x1b9)][_0x22e3d8['id']]=new VoiceExtension(_0x22e3d8):_0x3ee510['mergeFromDatabase'](_0x3ee510['voiceExtensions'][_0x22e3d8['id']],_0x22e3d8);}}return _0x3ee510[_0x572a04(0x1b9)];};},Realtime[a1260_0x42427b(0x173)][a1260_0x42427b(0x1bf)]=function(){const _0x88efea=this;return function(_0x26e267){const _0x5669e5=a1260_0x1157;clearCampaigns(_0x88efea[_0x5669e5(0x1ac)]);for(let _0x361264=0x0;_0x361264<_0x26e267['length'];_0x361264+=0x1){_[_0x5669e5(0x1d3)](_0x88efea['campaigns'][_0x26e267[_0x361264]['name']],_0x26e267[_0x361264]);}return _0x88efea[_0x5669e5(0x1ac)];};},Realtime['prototype'][a1260_0x42427b(0x1b0)]=function(){const _0x1266b5=this;return function(_0x3a5646){const _0x230fd2=a1260_0x1157;if(_0x3a5646){freeIsNotKey(_0x3a5646,_0x1266b5[_0x230fd2(0x19d)],'id');for(let _0x7784bb=0x0,_0x252ea8={};_0x7784bb<_0x3a5646['length'];_0x7784bb+=0x1){_0x252ea8=_0x3a5646[_0x7784bb],_[_0x230fd2(0x1c6)](_0x1266b5[_0x230fd2(0x19d)][_0x252ea8['id']])?_0x1266b5['faxAccounts'][_0x252ea8['id']]=new FaxAccount(_0x252ea8):_0x1266b5['mergeFromDatabase'](_0x1266b5[_0x230fd2(0x19d)][_0x252ea8['id']],_0x252ea8);}}return _0x1266b5[_0x230fd2(0x19d)];};},module[a1260_0x42427b(0x1b3)]=Realtime; \ No newline at end of file diff --git a/server/services/ami/report/index.js b/server/services/ami/report/index.js index 063ce51..3544b99 100644 --- a/server/services/ami/report/index.js +++ b/server/services/ami/report/index.js @@ -1 +1 @@ -const a1261_0x2fde=['from-voip-provider','context','disposition','lastapplication','blindtransfer','linkedid','xdr','voiceQueueReport','lastdata','../ami','voiceDialReport','custom:voiceDialReport','attendedTransfer','blindTransfer','assigned','dialer','destination','originatecalleridnum','create','prototype','findAgent','isNil','filename','lastIndexOf','length','util','transfers','forEach','../rpc/voiceRecording','phone','name','lodash','queuecallerexitAt','calleridname','agents','accountcode','YYYY-MM-DD\x20HH:mm:ss','destinationchannel','telephones','exports','find','channel','transfererlinkedid','../rpc/voiceTransferReport','disabled','queuecallerexit','mobile','substring','moment','monitors','calleridpreview','voiceCallReport','calleridnum','Local','custom:voiceCallReport','callerid','membername','SIP/%s','../rpc/voiceQueueReport','sync','match','uniqueid','from-sip','queue','queuecallercomplete','indexOf','exten','interface','voiceAgentReport','connectedlinenum','bind','monitor','format','../rpc/voiceDialReport','xcally-motion-preview','../rpc/voiceAgentReport'];(function(_0x2545eb,_0x311487){const _0x2fde33=function(_0x1cbf89){while(--_0x1cbf89){_0x2545eb['push'](_0x2545eb['shift']());}};_0x2fde33(++_0x311487);}(a1261_0x2fde,0x17f));const a1261_0x1cbf=function(_0x2545eb,_0x311487){_0x2545eb=_0x2545eb-0x160;let _0x2fde33=a1261_0x2fde[_0x2545eb];return _0x2fde33;};const a1261_0x53fddd=a1261_0x1cbf;'use strict';const _=require(a1261_0x53fddd(0x17c)),moment=require(a1261_0x53fddd(0x18d)),util=require(a1261_0x53fddd(0x176)),config=require('../../../config/environment'),ami=require(a1261_0x53fddd(0x166)),RpcVoiceAgentReport=require(a1261_0x53fddd(0x1a8)),RpcVoiceCallReport=require('../rpc/voiceCallReport'),RpcVoiceDialReport=require(a1261_0x53fddd(0x1a6)),RpcMemberReport=require('../rpc/memberReport'),RpcVoiceQueueReport=require(a1261_0x53fddd(0x197)),RpcVoiceRecording=require(a1261_0x53fddd(0x179)),RpcVoiceTransferReport=require(a1261_0x53fddd(0x188));function Report(_0x510cc1){const _0x1e71be=a1261_0x53fddd;this['realtime']=_0x510cc1,this['agents']=_0x510cc1[_0x1e71be(0x17f)],this[_0x1e71be(0x183)]=_0x510cc1[_0x1e71be(0x183)];}Report['prototype'][a1261_0x53fddd(0x198)]=function(){const _0x1455ac=a1261_0x53fddd;config['xdr']&&config[_0x1455ac(0x163)][_0x1455ac(0x189)]&&(ami['on']('custom:voiceQueueReport',this[_0x1455ac(0x164)][_0x1455ac(0x1a3)](this)),ami['on'](_0x1455ac(0x193),this[_0x1455ac(0x190)][_0x1455ac(0x1a3)](this)),ami['on']('custom:voiceAgentReport',this[_0x1455ac(0x1a1)][_0x1455ac(0x1a3)](this)),ami['on'](_0x1455ac(0x168),this[_0x1455ac(0x167)][_0x1455ac(0x1a3)](this)),ami['on'](_0x1455ac(0x161),this['blindTransfer'][_0x1455ac(0x1a3)](this)),ami['on']('attendedtransfer',this[_0x1455ac(0x169)][_0x1455ac(0x1a3)](this)));},Report[a1261_0x53fddd(0x170)][a1261_0x53fddd(0x171)]=function(_0x43f1bb){const _0x6c4d14=a1261_0x53fddd;let _0x51003f;_0x51003f=_['find'](this['agents'],function(_0x5b1965){const _0x54169a=a1261_0x1cbf;return _0x5b1965['accountcode']==_0x43f1bb||_0x5b1965[_0x54169a(0x17b)]==_0x43f1bb;});if(_[_0x6c4d14(0x172)](_0x51003f)){const _0x5928c6=_['find'](this['telephones'],function(_0xc0a97f){const _0x10d247=_0x6c4d14;return _0xc0a97f[_0x10d247(0x180)]==_0x43f1bb||_0xc0a97f[_0x10d247(0x17b)]==_0x43f1bb;});_0x5928c6&&(_0x51003f=_['find'](this[_0x6c4d14(0x17f)],function(_0x118e0d){const _0x1991bc=_0x6c4d14;return _0x118e0d[_0x1991bc(0x1a0)]==util[_0x1991bc(0x1a5)]('SIP/%s',_0x5928c6[_0x1991bc(0x17b)]);}));}return _0x51003f;},Report[a1261_0x53fddd(0x170)][a1261_0x53fddd(0x164)]=function(_0x2e21e7){const _0x2a780b=a1261_0x53fddd;for(let _0x224e9b=0x0;_0x224e9b<_0x2e21e7['length'];_0x224e9b+=0x1){const _0x1b857b=this[_0x2a780b(0x171)](_0x2e21e7[_0x224e9b]['connectedlinenum']);_0x1b857b&&(_0x2e21e7[_0x224e9b][_0x2a780b(0x180)]=_0x1b857b['accountcode'],_0x2e21e7[_0x224e9b][_0x2a780b(0x16b)]=!![],_0x2e21e7[_0x224e9b]['lastAssignedTo']=_0x1b857b[_0x2a780b(0x17b)],_0x2e21e7[_0x224e9b][_0x2a780b(0x1a0)]=_[_0x2a780b(0x172)](_0x1b857b['interface'])?util[_0x2a780b(0x1a5)](_0x2a780b(0x196),_0x1b857b['name']):_0x1b857b['interface'],_0x2e21e7[_0x224e9b][_0x2a780b(0x19d)]&&(_0x2e21e7[_0x224e9b]['queuecallercompleteAt']=moment()[_0x2a780b(0x1a5)](_0x2a780b(0x181))),_0x2e21e7[_0x224e9b][_0x2a780b(0x18a)]&&(_0x2e21e7[_0x224e9b][_0x2a780b(0x17d)]=moment()[_0x2a780b(0x1a5)](_0x2a780b(0x181))),RpcMemberReport['voiceQueueReport'](_0x2e21e7[_0x224e9b])),RpcVoiceQueueReport[_0x2a780b(0x16f)](_0x2e21e7[_0x224e9b]);}};function extractCalleridNumber(_0x5ddf77){const _0x46e484=a1261_0x53fddd,_0x19bfbb=_0x5ddf77[_0x46e484(0x199)](/<(.*?)>/);return _0x19bfbb?_0x19bfbb[0x1]:_0x5ddf77;}Report[a1261_0x53fddd(0x170)][a1261_0x53fddd(0x190)]=function(_0x2bf151){const _0x1031bc=a1261_0x53fddd;_0x2bf151['destination']=_0x2bf151[_0x1031bc(0x16d)]||_0x2bf151[_0x1031bc(0x19f)];if(_0x2bf151['type']==_0x1031bc(0x16c)){_0x2bf151[_0x1031bc(0x160)]=_0x1031bc(0x19c),_0x2bf151[_0x1031bc(0x165)]=_0x2bf151[_0x1031bc(0x19c)];if(_0x2bf151[_0x1031bc(0x1aa)]==_0x1031bc(0x1a9))_0x2bf151[_0x1031bc(0x180)]='',_0x2bf151[_0x1031bc(0x16d)]=extractCalleridNumber(_0x2bf151[_0x1031bc(0x194)]);else _0x2bf151[_0x1031bc(0x1aa)]==_0x1031bc(0x19b)&&(_0x2bf151[_0x1031bc(0x16d)]==_0x1031bc(0x1a7)?(_0x2bf151[_0x1031bc(0x16d)]=extractCalleridNumber(_0x2bf151[_0x1031bc(0x18f)]),_0x2bf151['calleridnum']=_0x2bf151[_0x1031bc(0x16e)],_0x2bf151[_0x1031bc(0x182)]=[_0x2bf151['channel'],_0x2bf151[_0x1031bc(0x186)]=_0x2bf151[_0x1031bc(0x182)]][0x0],_0x2bf151['callerid']=_0x2bf151[_0x1031bc(0x18f)]):(_0x2bf151[_0x1031bc(0x16d)]=_0x2bf151['calleridnum'],_0x2bf151[_0x1031bc(0x191)]=_0x2bf151[_0x1031bc(0x16e)],_0x2bf151[_0x1031bc(0x1ab)]=='ANSWERED'?_0x2bf151[_0x1031bc(0x180)]=_0x2bf151[_0x1031bc(0x1a2)]:_0x2bf151[_0x1031bc(0x180)]=''));}else _0x2bf151[_0x1031bc(0x194)]=util[_0x1031bc(0x1a5)]('\x22%s\x22\x20<%s>',_0x2bf151[_0x1031bc(0x17e)],_0x2bf151[_0x1031bc(0x191)]);if(RpcVoiceTransferReport['transfers'][_0x2bf151['linkedid']]){const _0x3d81a9=RpcVoiceTransferReport[_0x1031bc(0x177)][_0x2bf151[_0x1031bc(0x162)]];_0x3d81a9['transfereelinkedid']=_0x2bf151[_0x1031bc(0x19a)],RpcVoiceTransferReport[_0x1031bc(0x16a)](_0x3d81a9),delete RpcVoiceTransferReport[_0x1031bc(0x177)][_0x2bf151[_0x1031bc(0x162)]];}RpcVoiceCallReport[_0x1031bc(0x16f)](_0x2bf151);if(_0x2bf151[_0x1031bc(0x1a4)])for(let _0x42a87e=0x0;_0x42a87e<_0x2bf151['monitors'][_0x1031bc(0x175)];_0x42a87e+=0x1){_0x2bf151['monitorFilename']=_0x2bf151[_0x1031bc(0x18e)][_0x42a87e][_0x1031bc(0x173)],_0x2bf151['createdAt']=_0x2bf151[_0x1031bc(0x18e)][_0x42a87e]['createdAt'];if(_0x2bf151[_0x1031bc(0x19f)]==_0x1031bc(0x1a7))_0x2bf151[_0x1031bc(0x191)]=_0x2bf151[_0x1031bc(0x1a2)],_0x2bf151[_0x1031bc(0x17e)]=_0x2bf151['connectedlinename'],_0x2bf151[_0x1031bc(0x1a2)]=_0x2bf151[_0x1031bc(0x180)],_0x2bf151['connectedlinename']=_0x2bf151[_0x1031bc(0x195)],_0x2bf151[_0x1031bc(0x19f)]=_0x2bf151[_0x1031bc(0x16e)];else _0x2bf151['exten']=='xcally-motion-dialer'&&(_0x2bf151[_0x1031bc(0x191)]=_0x2bf151['destination'],_0x2bf151['exten']=_0x2bf151[_0x1031bc(0x16e)]);RpcVoiceRecording[_0x1031bc(0x16f)](_0x2bf151);}},Report['prototype']['voiceAgentReport']=function(_0x2b981e){const _0x27bbdb=a1261_0x53fddd;_['isArray'](_0x2b981e)?_0x2b981e[_0x27bbdb(0x178)](function(_0x255a2d){const _0x5506b1=_0x27bbdb;RpcVoiceAgentReport[_0x5506b1(0x16f)](_0x255a2d);}):RpcVoiceAgentReport['create'](_0x2b981e);},Report['prototype']['voiceDialReport']=function(_0x204d79){const _0x329840=a1261_0x53fddd;RpcVoiceDialReport[_0x329840(0x16f)](_0x204d79);let _0x56eb41,_0x234e89;const _0x5e94c8=_0x204d79[_0x329840(0x186)];_['startsWith'](_0x5e94c8,_0x329840(0x192))?(_0x234e89=_0x5e94c8[_0x329840(0x18c)](_0x5e94c8['indexOf']('/')+0x1,_0x5e94c8[_0x329840(0x19e)]('@')),_0x56eb41=_[_0x329840(0x185)](this[_0x329840(0x17f)],function(_0x2d073f){const _0x303b80=_0x329840;return _0x2d073f[_0x303b80(0x18b)]==_0x234e89||_0x2d073f[_0x303b80(0x17a)]==_0x234e89||_0x2d073f[_0x303b80(0x180)]==_0x234e89;})):(_0x234e89=_0x5e94c8[_0x329840(0x18c)](_0x5e94c8[_0x329840(0x19e)]('/')+0x1,_0x5e94c8[_0x329840(0x174)]('-')),_0x56eb41=this['findAgent'](_0x234e89)),_0x56eb41&&(_0x204d79['interface']=_[_0x329840(0x172)](_0x56eb41[_0x329840(0x1a0)])?util['format'](_0x329840(0x196),_0x56eb41[_0x329840(0x17b)]):_0x56eb41[_0x329840(0x1a0)],_0x204d79[_0x329840(0x195)]=_0x56eb41[_0x329840(0x17b)],_0x204d79[_0x329840(0x180)]=_0x56eb41[_0x329840(0x180)],RpcMemberReport[_0x329840(0x167)](_0x204d79));},Report[a1261_0x53fddd(0x170)][a1261_0x53fddd(0x16a)]=function(_0x4ce3fd){const _0x876c9d=a1261_0x53fddd;RpcVoiceTransferReport[_0x876c9d(0x177)][_0x4ce3fd[_0x876c9d(0x187)]]=_0x4ce3fd;},Report[a1261_0x53fddd(0x170)]['attendedTransfer']=function(_0x2374b3){RpcVoiceTransferReport['attendedTransfer'](_0x2374b3);},module[a1261_0x53fddd(0x184)]=Report; \ No newline at end of file +const a1261_0x2f82=['findAgent','isNil','startsWith','monitors','name','transfererlinkedid','transfers','lastapplication','YYYY-MM-DD\x20HH:mm:ss','exports','create','../ami','queuecallerexit','voiceDialReport','realtime','voiceCallReport','voiceAgentReport','from-voip-provider','xcally-motion-dialer','queue','monitor','custom:voiceAgentReport','type','../rpc/memberReport','agents','disabled','lastAssignedTo','connectedlinename','isArray','linkedid','originatecalleridnum','sync','telephones','match','calleridpreview','SIP/%s','exten','length','mobile','context','../rpc/voiceTransferReport','blindtransfer','../../../config/environment','calleridnum','queuecallerexitAt','custom:voiceDialReport','destination','lastdata','../rpc/voiceCallReport','dialer','blindTransfer','custom:voiceCallReport','format','xcally-motion-preview','queuecallercomplete','accountcode','moment','destinationchannel','prototype','../rpc/voiceQueueReport','find','from-sip','bind','createdAt','xdr','attendedTransfer','../rpc/voiceDialReport','disposition','calleridname','channel','phone','../rpc/voiceRecording','interface','indexOf','callerid','lodash','connectedlinenum'];(function(_0x5dcd33,_0xcdef92){const _0x2f8283=function(_0x3459c4){while(--_0x3459c4){_0x5dcd33['push'](_0x5dcd33['shift']());}};_0x2f8283(++_0xcdef92);}(a1261_0x2f82,0x1e6));const a1261_0x3459=function(_0x5dcd33,_0xcdef92){_0x5dcd33=_0x5dcd33-0x1bb;let _0x2f8283=a1261_0x2f82[_0x5dcd33];return _0x2f8283;};const a1261_0x1f945b=a1261_0x3459;'use strict';const _=require(a1261_0x1f945b(0x1ee)),moment=require(a1261_0x1f945b(0x1db)),util=require('util'),config=require(a1261_0x1f945b(0x1cd)),ami=require(a1261_0x1f945b(0x1fb)),RpcVoiceAgentReport=require('../rpc/voiceAgentReport'),RpcVoiceCallReport=require(a1261_0x1f945b(0x1d3)),RpcVoiceDialReport=require(a1261_0x1f945b(0x1e5)),RpcMemberReport=require(a1261_0x1f945b(0x207)),RpcVoiceQueueReport=require(a1261_0x1f945b(0x1de)),RpcVoiceRecording=require(a1261_0x1f945b(0x1ea)),RpcVoiceTransferReport=require(a1261_0x1f945b(0x1cb));function Report(_0x5cfc71){const _0x290da0=a1261_0x1f945b;this[_0x290da0(0x1fe)]=_0x5cfc71,this[_0x290da0(0x1bb)]=_0x5cfc71[_0x290da0(0x1bb)],this[_0x290da0(0x1c3)]=_0x5cfc71[_0x290da0(0x1c3)];}Report[a1261_0x1f945b(0x1dd)][a1261_0x1f945b(0x1c2)]=function(){const _0x3d3c74=a1261_0x1f945b;config[_0x3d3c74(0x1e3)]&&config['xdr'][_0x3d3c74(0x1bc)]&&(ami['on']('custom:voiceQueueReport',this['voiceQueueReport'][_0x3d3c74(0x1e1)](this)),ami['on'](_0x3d3c74(0x1d6),this[_0x3d3c74(0x1ff)][_0x3d3c74(0x1e1)](this)),ami['on'](_0x3d3c74(0x205),this[_0x3d3c74(0x200)]['bind'](this)),ami['on'](_0x3d3c74(0x1d0),this[_0x3d3c74(0x1fd)][_0x3d3c74(0x1e1)](this)),ami['on'](_0x3d3c74(0x1cc),this[_0x3d3c74(0x1d5)][_0x3d3c74(0x1e1)](this)),ami['on']('attendedtransfer',this[_0x3d3c74(0x1e4)]['bind'](this)));},Report[a1261_0x1f945b(0x1dd)][a1261_0x1f945b(0x1f0)]=function(_0x4bf194){const _0x3e5fae=a1261_0x1f945b;let _0xda2176;_0xda2176=_[_0x3e5fae(0x1df)](this['agents'],function(_0x13e5be){const _0x2ac145=_0x3e5fae;return _0x13e5be[_0x2ac145(0x1da)]==_0x4bf194||_0x13e5be[_0x2ac145(0x1f4)]==_0x4bf194;});if(_[_0x3e5fae(0x1f1)](_0xda2176)){const _0xc5f298=_[_0x3e5fae(0x1df)](this[_0x3e5fae(0x1c3)],function(_0x4c5393){const _0x551bfa=_0x3e5fae;return _0x4c5393[_0x551bfa(0x1da)]==_0x4bf194||_0x4c5393['name']==_0x4bf194;});_0xc5f298&&(_0xda2176=_['find'](this[_0x3e5fae(0x1bb)],function(_0xb1a12d){const _0x34091b=_0x3e5fae;return _0xb1a12d[_0x34091b(0x1eb)]==util['format'](_0x34091b(0x1c6),_0xc5f298[_0x34091b(0x1f4)]);}));}return _0xda2176;},Report[a1261_0x1f945b(0x1dd)]['voiceQueueReport']=function(_0x154e05){const _0x1dab3a=a1261_0x1f945b;for(let _0x18c4a2=0x0;_0x18c4a2<_0x154e05[_0x1dab3a(0x1c8)];_0x18c4a2+=0x1){const _0x5db502=this[_0x1dab3a(0x1f0)](_0x154e05[_0x18c4a2][_0x1dab3a(0x1ef)]);_0x5db502&&(_0x154e05[_0x18c4a2][_0x1dab3a(0x1da)]=_0x5db502[_0x1dab3a(0x1da)],_0x154e05[_0x18c4a2]['assigned']=!![],_0x154e05[_0x18c4a2][_0x1dab3a(0x1bd)]=_0x5db502[_0x1dab3a(0x1f4)],_0x154e05[_0x18c4a2][_0x1dab3a(0x1eb)]=_[_0x1dab3a(0x1f1)](_0x5db502[_0x1dab3a(0x1eb)])?util['format'](_0x1dab3a(0x1c6),_0x5db502['name']):_0x5db502['interface'],_0x154e05[_0x18c4a2][_0x1dab3a(0x1d9)]&&(_0x154e05[_0x18c4a2]['queuecallercompleteAt']=moment()[_0x1dab3a(0x1d7)](_0x1dab3a(0x1f8))),_0x154e05[_0x18c4a2][_0x1dab3a(0x1fc)]&&(_0x154e05[_0x18c4a2][_0x1dab3a(0x1cf)]=moment()[_0x1dab3a(0x1d7)](_0x1dab3a(0x1f8))),RpcMemberReport['voiceQueueReport'](_0x154e05[_0x18c4a2])),RpcVoiceQueueReport[_0x1dab3a(0x1fa)](_0x154e05[_0x18c4a2]);}};function extractCalleridNumber(_0x3db75c){const _0x48e4ed=a1261_0x1f945b,_0x3cd125=_0x3db75c[_0x48e4ed(0x1c4)](/<(.*?)>/);return _0x3cd125?_0x3cd125[0x1]:_0x3db75c;}Report[a1261_0x1f945b(0x1dd)][a1261_0x1f945b(0x1ff)]=function(_0xb0aa0d){const _0x453f9b=a1261_0x1f945b;_0xb0aa0d[_0x453f9b(0x1d1)]=_0xb0aa0d['destination']||_0xb0aa0d[_0x453f9b(0x1c7)];if(_0xb0aa0d[_0x453f9b(0x206)]==_0x453f9b(0x1d4)){_0xb0aa0d[_0x453f9b(0x1f7)]='queue',_0xb0aa0d[_0x453f9b(0x1d2)]=_0xb0aa0d[_0x453f9b(0x203)];if(_0xb0aa0d[_0x453f9b(0x1ca)]==_0x453f9b(0x201))_0xb0aa0d[_0x453f9b(0x1da)]='',_0xb0aa0d[_0x453f9b(0x1d1)]=extractCalleridNumber(_0xb0aa0d[_0x453f9b(0x1ed)]);else _0xb0aa0d[_0x453f9b(0x1ca)]==_0x453f9b(0x1e0)&&(_0xb0aa0d[_0x453f9b(0x1d1)]=='xcally-motion-preview'?(_0xb0aa0d[_0x453f9b(0x1d1)]=extractCalleridNumber(_0xb0aa0d[_0x453f9b(0x1c5)]),_0xb0aa0d[_0x453f9b(0x1ce)]=_0xb0aa0d['originatecalleridnum'],_0xb0aa0d[_0x453f9b(0x1dc)]=[_0xb0aa0d[_0x453f9b(0x1e8)],_0xb0aa0d[_0x453f9b(0x1e8)]=_0xb0aa0d[_0x453f9b(0x1dc)]][0x0],_0xb0aa0d[_0x453f9b(0x1ed)]=_0xb0aa0d[_0x453f9b(0x1c5)]):(_0xb0aa0d[_0x453f9b(0x1d1)]=_0xb0aa0d[_0x453f9b(0x1ce)],_0xb0aa0d[_0x453f9b(0x1ce)]=_0xb0aa0d[_0x453f9b(0x1c1)],_0xb0aa0d[_0x453f9b(0x1e6)]=='ANSWERED'?_0xb0aa0d[_0x453f9b(0x1da)]=_0xb0aa0d[_0x453f9b(0x1ef)]:_0xb0aa0d[_0x453f9b(0x1da)]=''));}else _0xb0aa0d[_0x453f9b(0x1ed)]=util[_0x453f9b(0x1d7)]('\x22%s\x22\x20<%s>',_0xb0aa0d[_0x453f9b(0x1e7)],_0xb0aa0d[_0x453f9b(0x1ce)]);if(RpcVoiceTransferReport['transfers'][_0xb0aa0d[_0x453f9b(0x1c0)]]){const _0x1514ef=RpcVoiceTransferReport[_0x453f9b(0x1f6)][_0xb0aa0d['linkedid']];_0x1514ef['transfereelinkedid']=_0xb0aa0d['uniqueid'],RpcVoiceTransferReport[_0x453f9b(0x1d5)](_0x1514ef),delete RpcVoiceTransferReport[_0x453f9b(0x1f6)][_0xb0aa0d['linkedid']];}RpcVoiceCallReport[_0x453f9b(0x1fa)](_0xb0aa0d);if(_0xb0aa0d[_0x453f9b(0x204)])for(let _0x408aa5=0x0;_0x408aa5<_0xb0aa0d[_0x453f9b(0x1f3)][_0x453f9b(0x1c8)];_0x408aa5+=0x1){_0xb0aa0d['monitorFilename']=_0xb0aa0d[_0x453f9b(0x1f3)][_0x408aa5]['filename'],_0xb0aa0d[_0x453f9b(0x1e2)]=_0xb0aa0d[_0x453f9b(0x1f3)][_0x408aa5][_0x453f9b(0x1e2)];if(_0xb0aa0d[_0x453f9b(0x1c7)]==_0x453f9b(0x1d8))_0xb0aa0d[_0x453f9b(0x1ce)]=_0xb0aa0d[_0x453f9b(0x1ef)],_0xb0aa0d[_0x453f9b(0x1e7)]=_0xb0aa0d['connectedlinename'],_0xb0aa0d[_0x453f9b(0x1ef)]=_0xb0aa0d[_0x453f9b(0x1da)],_0xb0aa0d[_0x453f9b(0x1be)]=_0xb0aa0d['membername'],_0xb0aa0d['exten']=_0xb0aa0d[_0x453f9b(0x1c1)];else _0xb0aa0d[_0x453f9b(0x1c7)]==_0x453f9b(0x202)&&(_0xb0aa0d[_0x453f9b(0x1ce)]=_0xb0aa0d[_0x453f9b(0x1d1)],_0xb0aa0d[_0x453f9b(0x1c7)]=_0xb0aa0d[_0x453f9b(0x1c1)]);RpcVoiceRecording[_0x453f9b(0x1fa)](_0xb0aa0d);}},Report['prototype'][a1261_0x1f945b(0x200)]=function(_0x26cad3){const _0x5042c3=a1261_0x1f945b;_[_0x5042c3(0x1bf)](_0x26cad3)?_0x26cad3['forEach'](function(_0x56a64d){RpcVoiceAgentReport['create'](_0x56a64d);}):RpcVoiceAgentReport[_0x5042c3(0x1fa)](_0x26cad3);},Report[a1261_0x1f945b(0x1dd)][a1261_0x1f945b(0x1fd)]=function(_0x551683){const _0x1ae51c=a1261_0x1f945b;RpcVoiceDialReport[_0x1ae51c(0x1fa)](_0x551683);let _0x4e97b3,_0x2e4eda;const _0x549241=_0x551683[_0x1ae51c(0x1e8)];_[_0x1ae51c(0x1f2)](_0x549241,'Local')?(_0x2e4eda=_0x549241['substring'](_0x549241[_0x1ae51c(0x1ec)]('/')+0x1,_0x549241[_0x1ae51c(0x1ec)]('@')),_0x4e97b3=_[_0x1ae51c(0x1df)](this['agents'],function(_0x5aa6fc){const _0x528e53=_0x1ae51c;return _0x5aa6fc[_0x528e53(0x1c9)]==_0x2e4eda||_0x5aa6fc[_0x528e53(0x1e9)]==_0x2e4eda||_0x5aa6fc[_0x528e53(0x1da)]==_0x2e4eda;})):(_0x2e4eda=_0x549241['substring'](_0x549241['indexOf']('/')+0x1,_0x549241['lastIndexOf']('-')),_0x4e97b3=this['findAgent'](_0x2e4eda)),_0x4e97b3&&(_0x551683[_0x1ae51c(0x1eb)]=_[_0x1ae51c(0x1f1)](_0x4e97b3[_0x1ae51c(0x1eb)])?util[_0x1ae51c(0x1d7)](_0x1ae51c(0x1c6),_0x4e97b3[_0x1ae51c(0x1f4)]):_0x4e97b3['interface'],_0x551683['membername']=_0x4e97b3[_0x1ae51c(0x1f4)],_0x551683[_0x1ae51c(0x1da)]=_0x4e97b3[_0x1ae51c(0x1da)],RpcMemberReport['voiceDialReport'](_0x551683));},Report[a1261_0x1f945b(0x1dd)]['blindTransfer']=function(_0x51ed8c){const _0x13850c=a1261_0x1f945b;RpcVoiceTransferReport[_0x13850c(0x1f6)][_0x51ed8c[_0x13850c(0x1f5)]]=_0x51ed8c;},Report[a1261_0x1f945b(0x1dd)][a1261_0x1f945b(0x1e4)]=function(_0x2d3a4c){const _0x5468f8=a1261_0x1f945b;RpcVoiceTransferReport[_0x5468f8(0x1e4)](_0x2d3a4c);},module[a1261_0x1f945b(0x1f9)]=Report; \ No newline at end of file diff --git a/server/services/ami/report/userReport.js b/server/services/ami/report/userReport.js index 7ae84aa..7f83d70 100644 --- a/server/services/ami/report/userReport.js +++ b/server/services/ami/report/userReport.js @@ -1 +1 @@ -const a1262_0x33de=['peer','event','name','moment','info','indexOf','../../../config/logger','prototype','debug','mobile','telephones','[userReport][devicestatechange]\x20sending\x20telephone:save\x20event:','merge','telephone:%s','[userReport][registry]\x20registry:%s\x20state:%s','find','status','state','stateTime','omit','resolve','exports','updateStatusRealtime','bind','[syncDeviceState][UserReport]','trunk:%s','local','registry','error','ami','username','[userReport][devicestatechange]\x20device:%s\x20state:%s','agents','phone','isNotNull','[userReport][peerstatus]\x20sending\x20telephone:save\x20event:','accountcode','[userReport][registry]','Local','then','syncDeviceState','catch','util','[userReport][sippeerstatus]','actionSipPeerStatus','syncRegistry','devicestatechange','device','telephone:save','startsWith','syncRealtimeShow','emit','[userReport][devicestatechange]\x20sending\x20trunk:save\x20event:','inspect','[userReport][registry]\x20sending\x20trunk:save\x20event:','trunks','format','peerstatus','lodash','trunk:save','address','[userReport][sipshowregistry]','inuse','toLowerCase','toNumber','substring','syncPeerStatus'];(function(_0x17de25,_0x1c23e6){const _0x33dee2=function(_0x289d1b){while(--_0x289d1b){_0x17de25['push'](_0x17de25['shift']());}};_0x33dee2(++_0x1c23e6);}(a1262_0x33de,0x173));const a1262_0x289d=function(_0x17de25,_0x1c23e6){_0x17de25=_0x17de25-0x113;let _0x33dee2=a1262_0x33de[_0x17de25];return _0x33dee2;};const a1262_0x114598=a1262_0x289d;'use strict';const _=require(a1262_0x114598(0x129)),moment=require(a1262_0x114598(0x135)),util=require(a1262_0x114598(0x119)),logger=require(a1262_0x114598(0x138))(a1262_0x114598(0x14f)),ami=require('../ami'),{getSocket}=require('../../../rediscache'),io=getSocket();function UserReport(_0x2f0706){const _0x5e6544=a1262_0x114598;return this['trunks']=_0x2f0706[_0x5e6544(0x126)],this[_0x5e6544(0x152)]=_0x2f0706[_0x5e6544(0x152)],this[_0x5e6544(0x13c)]=_0x2f0706[_0x5e6544(0x13c)],ami['on']('registryentry',this[_0x5e6544(0x11c)][_0x5e6544(0x149)](this)),ami['on'](_0x5e6544(0x14d),this['syncRegistry'][_0x5e6544(0x149)](this)),ami['on'](_0x5e6544(0x11d),this[_0x5e6544(0x117)][_0x5e6544(0x149)](this)),ami['on'](_0x5e6544(0x128),this[_0x5e6544(0x131)][_0x5e6544(0x149)](this)),this[_0x5e6544(0x121)]();}function showSipRegistrations(){const _0x2ce588=a1262_0x114598;Promise[_0x2ce588(0x146)]()['then'](ami['actionSipShowRegistry']())[_0x2ce588(0x118)](function(_0x2cc827){const _0x3e485f=_0x2ce588;logger['error'](_0x3e485f(0x12c),util[_0x3e485f(0x124)](_0x2cc827,{'showHidden':![],'depth':null}));});}function listDeviceStates(){const _0x57a2d2=a1262_0x114598;Promise[_0x57a2d2(0x146)]()[_0x57a2d2(0x116)](ami['actionDeviceStateList']())[_0x57a2d2(0x118)](function(_0x352871){const _0x3fe161=_0x57a2d2;logger['error']('[userReport][devicestatelist]',util[_0x3fe161(0x124)](_0x352871,{'showHidden':![],'depth':null}));});}function showPeersStatus(){const _0x251c0d=a1262_0x114598;Promise[_0x251c0d(0x146)]()[_0x251c0d(0x116)](ami[_0x251c0d(0x11b)]())[_0x251c0d(0x118)](function(_0x17e03a){const _0x7251b0=_0x251c0d;logger[_0x7251b0(0x14e)](_0x7251b0(0x11a),util[_0x7251b0(0x124)](_0x17e03a,{'showHidden':![],'depth':null}));});}UserReport[a1262_0x114598(0x139)]['syncRealtimeShow']=function(){setInterval(function(){const _0x3837b9=a1262_0x289d;Promise[_0x3837b9(0x146)]()[_0x3837b9(0x116)](showSipRegistrations())[_0x3837b9(0x116)](listDeviceStates())['then'](showPeersStatus());},0x32c8);},UserReport['prototype'][a1262_0x114598(0x154)]=function(_0x1fcd24){return _0x1fcd24!==null&&!_['isUndefined'](_0x1fcd24);},UserReport[a1262_0x114598(0x139)][a1262_0x114598(0x122)]=function(_0x3663bf,_0x238f23,_0x34cc29){const _0x361807=a1262_0x114598;io['to'](_0x3663bf)[_0x361807(0x122)](_0x238f23,_0x34cc29);},UserReport[a1262_0x114598(0x139)]['syncRegistry']=function(_0x5c7de5){const _0x28995c=a1262_0x114598;try{if(this['isNotNull'](_0x5c7de5)){logger[_0x28995c(0x136)](_0x28995c(0x140),_0x5c7de5['username'],_0x5c7de5[_0x28995c(0x143)]),logger[_0x28995c(0x13a)]('[userReport][registry]',util[_0x28995c(0x124)](_0x5c7de5,{'showHidden':![],'depth':null}));const _0x74bd60=_[_0x28995c(0x141)](this[_0x28995c(0x126)],{'registry':_0x5c7de5[_0x28995c(0x150)]});_0x74bd60&&(_0x5c7de5['stateRegistry']=_0x5c7de5['state'],_[_0x28995c(0x13e)](_0x74bd60,_[_0x28995c(0x145)](_0x5c7de5,[_0x28995c(0x133),'actionid','username',_0x28995c(0x143)])),logger['debug'](_0x28995c(0x125),util[_0x28995c(0x124)](_0x74bd60,{'showHidden':![],'depth':null})),this[_0x28995c(0x122)](util['format'](_0x28995c(0x14b),_0x74bd60['name']),_0x28995c(0x12a),_0x74bd60));}}catch(_0x127e93){logger[_0x28995c(0x14e)](_0x28995c(0x114),util[_0x28995c(0x124)](_0x127e93,{'showHidden':![],'depth':null}));}},UserReport[a1262_0x114598(0x139)][a1262_0x114598(0x117)]=function(_0x2b7171){const _0x1e5814=a1262_0x114598;try{if(this[_0x1e5814(0x154)](_0x2b7171)){logger[_0x1e5814(0x136)](_0x1e5814(0x151),_0x2b7171[_0x1e5814(0x11e)],_0x2b7171[_0x1e5814(0x143)]),logger[_0x1e5814(0x13a)]('[userReport][devicestatechange]',util[_0x1e5814(0x124)](_0x2b7171,{'showHidden':![],'depth':null}));if(this[_0x1e5814(0x152)][_0x2b7171[_0x1e5814(0x11e)]])(!this[_0x1e5814(0x152)][_0x2b7171['device']][_0x1e5814(0x14c)]||_0x2b7171['state'][_0x1e5814(0x12e)]()==_0x1e5814(0x12d))&&(this[_0x1e5814(0x152)][_0x2b7171['device']][_0x1e5814(0x14c)]=![],this['agents'][_0x2b7171[_0x1e5814(0x11e)]][_0x1e5814(0x143)]!==_0x2b7171[_0x1e5814(0x143)][_0x1e5814(0x12e)]()&&(this[_0x1e5814(0x152)][_0x2b7171[_0x1e5814(0x11e)]][_0x1e5814(0x144)]=_['toNumber'](moment()[_0x1e5814(0x127)]('x'))),this[_0x1e5814(0x152)][_0x2b7171[_0x1e5814(0x11e)]][_0x1e5814(0x143)]=_0x2b7171[_0x1e5814(0x143)][_0x1e5814(0x12e)](),this[_0x1e5814(0x152)][_0x2b7171[_0x1e5814(0x11e)]][_0x1e5814(0x148)](_0x2b7171));else{if(this[_0x1e5814(0x13c)][_0x2b7171[_0x1e5814(0x11e)]])this[_0x1e5814(0x13c)][_0x2b7171[_0x1e5814(0x11e)]]['state']!==_0x2b7171[_0x1e5814(0x143)]['toLowerCase']()&&(logger[_0x1e5814(0x13a)](_0x1e5814(0x13d),util[_0x1e5814(0x124)](this[_0x1e5814(0x13c)][_0x2b7171[_0x1e5814(0x11e)]],{'showHidden':![],'depth':null})),this[_0x1e5814(0x13c)][_0x2b7171[_0x1e5814(0x11e)]][_0x1e5814(0x144)]=_['toNumber'](moment()[_0x1e5814(0x127)]('x'))),this[_0x1e5814(0x13c)][_0x2b7171['device']]['state']=_0x2b7171[_0x1e5814(0x143)][_0x1e5814(0x12e)](),logger[_0x1e5814(0x13a)](_0x1e5814(0x123),util['inspect'](this[_0x1e5814(0x126)][_0x2b7171[_0x1e5814(0x11e)]],{'showHidden':![],'depth':null})),this[_0x1e5814(0x122)](util['format']('telephone:%s',this[_0x1e5814(0x13c)][_0x2b7171['device']][_0x1e5814(0x134)]),'telephone:save',this[_0x1e5814(0x13c)][_0x2b7171['device']]);else{if(this['trunks'][_0x2b7171[_0x1e5814(0x11e)]])this[_0x1e5814(0x126)][_0x2b7171[_0x1e5814(0x11e)]][_0x1e5814(0x143)]!==_0x2b7171[_0x1e5814(0x143)]['toLowerCase']()&&(this[_0x1e5814(0x126)][_0x2b7171[_0x1e5814(0x11e)]]['stateTime']=_[_0x1e5814(0x12f)](moment()[_0x1e5814(0x127)]('x'))),this[_0x1e5814(0x126)][_0x2b7171[_0x1e5814(0x11e)]][_0x1e5814(0x143)]=_0x2b7171[_0x1e5814(0x143)][_0x1e5814(0x12e)](),this['emit'](util[_0x1e5814(0x127)]('trunk:%s',this[_0x1e5814(0x126)][_0x2b7171['device']][_0x1e5814(0x134)]),_0x1e5814(0x12a),this[_0x1e5814(0x126)][_0x2b7171[_0x1e5814(0x11e)]]);else{if(_[_0x1e5814(0x120)](_0x2b7171[_0x1e5814(0x11e)],_0x1e5814(0x115))){const _0x37187e=_0x2b7171[_0x1e5814(0x11e)],_0x1a9f35=_0x37187e[_0x1e5814(0x130)](_0x37187e[_0x1e5814(0x137)]('/')+0x1,_0x37187e[_0x1e5814(0x137)]('@')),_0x367dfe=_[_0x1e5814(0x141)](this['agents'],function(_0x465889){const _0x811b86=_0x1e5814;return _0x465889[_0x811b86(0x13b)]==_0x1a9f35||_0x465889[_0x811b86(0x153)]==_0x1a9f35||_0x465889[_0x811b86(0x113)]==_0x1a9f35;});_0x367dfe&&(_0x367dfe[_0x1e5814(0x143)]!==_0x2b7171[_0x1e5814(0x143)][_0x1e5814(0x12e)]()&&(_0x367dfe[_0x1e5814(0x144)]=_['toNumber'](moment()[_0x1e5814(0x127)]('x'))),_0x367dfe['state']=_0x2b7171[_0x1e5814(0x143)][_0x1e5814(0x12e)](),_0x367dfe['local']=!![],_0x367dfe[_0x1e5814(0x148)](_0x2b7171));}}}}}}catch(_0x5bd502){logger[_0x1e5814(0x14e)](_0x1e5814(0x14a),util['inspect'](_0x5bd502,{'showHidden':![],'depth':null}));}},UserReport[a1262_0x114598(0x139)]['syncPeerStatus']=function(_0x536511){const _0x5e702d=a1262_0x114598;try{if(this[_0x5e702d(0x154)](_0x536511)&&this[_0x5e702d(0x154)](_0x536511[_0x5e702d(0x128)])){logger[_0x5e702d(0x136)]('[userReport][peerstatus]\x20peer:%s\x20address:%s\x20status:%s',_0x536511[_0x5e702d(0x132)],_0x536511['address'],_0x536511['peerstatus']),logger['debug']('[userReport][peerstatus]',util[_0x5e702d(0x124)](_0x536511,{'showHidden':![],'depth':null}));if(this[_0x5e702d(0x152)][_0x536511[_0x5e702d(0x132)]])(!this[_0x5e702d(0x152)][_0x536511[_0x5e702d(0x132)]]['local']||_0x536511[_0x5e702d(0x128)][_0x5e702d(0x12e)]()=='registered')&&(this['agents'][_0x536511[_0x5e702d(0x132)]][_0x5e702d(0x14c)]=![],this['agents'][_0x536511['peer']]['status']=_0x536511['peerstatus'][_0x5e702d(0x12e)](),this['agents'][_0x536511[_0x5e702d(0x132)]]['address']=_0x536511[_0x5e702d(0x12b)],this['agents'][_0x536511[_0x5e702d(0x132)]][_0x5e702d(0x148)](_0x536511));else{if(this[_0x5e702d(0x13c)][_0x536511[_0x5e702d(0x132)]])this[_0x5e702d(0x13c)][_0x536511[_0x5e702d(0x132)]][_0x5e702d(0x142)]=_0x536511[_0x5e702d(0x128)]['toLowerCase'](),this[_0x5e702d(0x13c)][_0x536511['peer']][_0x5e702d(0x12b)]=_0x536511['address'],logger[_0x5e702d(0x13a)](_0x5e702d(0x155),util[_0x5e702d(0x124)](this[_0x5e702d(0x13c)][_0x536511[_0x5e702d(0x132)]],{'showHidden':![],'depth':null})),this['emit'](util[_0x5e702d(0x127)](_0x5e702d(0x13f),this['telephones'][_0x536511[_0x5e702d(0x132)]][_0x5e702d(0x134)]),_0x5e702d(0x11f),this[_0x5e702d(0x13c)][_0x536511[_0x5e702d(0x132)]]);else this[_0x5e702d(0x126)][_0x536511[_0x5e702d(0x132)]]&&(this[_0x5e702d(0x126)][_0x536511['peer']][_0x5e702d(0x142)]=_0x536511[_0x5e702d(0x128)]['toLowerCase'](),this[_0x5e702d(0x126)][_0x536511['peer']]['address']=_0x536511['address'],logger['debug']('[userReport][peerstatus]\x20sending\x20trunk:save\x20event:',util[_0x5e702d(0x124)](this['trunks'][_0x536511[_0x5e702d(0x132)]],{'showHidden':![],'depth':null})),this[_0x5e702d(0x122)](util[_0x5e702d(0x127)]('trunk:%s',this[_0x5e702d(0x126)][_0x536511[_0x5e702d(0x132)]][_0x5e702d(0x134)]),_0x5e702d(0x12a),this['trunks'][_0x536511['peer']]));}}}catch(_0xa4af4a){logger[_0x5e702d(0x14e)]('[userReport][peerstatus]',util['inspect'](_0xa4af4a,{'showHidden':![],'depth':null}));}},module[a1262_0x114598(0x147)]=UserReport; \ No newline at end of file +const a1262_0x3ed3=['mobile','name','find','toNumber','stateTime','[userReport][registry]','inuse','status','catch','trunks','[userReport][devicestatechange]\x20sending\x20trunk:save\x20event:','[userReport][devicestatechange]\x20device:%s\x20state:%s','telephones','peer','error','prototype','isNotNull','inspect','[userReport][devicestatelist]','username','actionDeviceStateList','state','substring','address','../../../rediscache','accountcode','trunk:save','updateStatusRealtime','info','emit','peerstatus','then','resolve','syncDeviceState','[userReport][devicestatechange]','isUndefined','../../../config/logger','devicestatechange','device','agents','registry','actionid','omit','[userReport][peerstatus]\x20sending\x20telephone:save\x20event:','[userReport][peerstatus]','phone','../ami','util','format','actionSipShowRegistry','actionSipPeerStatus','local','[syncDeviceState][UserReport]','trunk:%s','merge','event','indexOf','toLowerCase','moment','syncRegistry','syncRealtimeShow','[userReport][registry]\x20sending\x20trunk:save\x20event:','[userReport][peerstatus]\x20peer:%s\x20address:%s\x20status:%s','[userReport][devicestatechange]\x20sending\x20telephone:save\x20event:','syncPeerStatus','bind','telephone:save','telephone:%s','startsWith','debug'];(function(_0x2289f6,_0x44f7a5){const _0x3ed399=function(_0x231bce){while(--_0x231bce){_0x2289f6['push'](_0x2289f6['shift']());}};_0x3ed399(++_0x44f7a5);}(a1262_0x3ed3,0x1e2));const a1262_0x231b=function(_0x2289f6,_0x44f7a5){_0x2289f6=_0x2289f6-0xb5;let _0x3ed399=a1262_0x3ed3[_0x2289f6];return _0x3ed399;};const a1262_0x120081=a1262_0x231b;'use strict';const _=require('lodash'),moment=require(a1262_0x120081(0xf7)),util=require(a1262_0x120081(0xec)),logger=require(a1262_0x120081(0xe1))('ami'),ami=require(a1262_0x120081(0xeb)),{getSocket}=require(a1262_0x120081(0xd5)),io=getSocket();function UserReport(_0x5ad4d9){const _0x52b8e4=a1262_0x120081;return this['trunks']=_0x5ad4d9['trunks'],this[_0x52b8e4(0xe4)]=_0x5ad4d9[_0x52b8e4(0xe4)],this[_0x52b8e4(0xc9)]=_0x5ad4d9[_0x52b8e4(0xc9)],ami['on']('registryentry',this[_0x52b8e4(0xf8)]['bind'](this)),ami['on'](_0x52b8e4(0xe5),this['syncRegistry'][_0x52b8e4(0xb8)](this)),ami['on'](_0x52b8e4(0xe2),this[_0x52b8e4(0xde)][_0x52b8e4(0xb8)](this)),ami['on'](_0x52b8e4(0xdb),this[_0x52b8e4(0xb7)]['bind'](this)),this['syncRealtimeShow']();}function showSipRegistrations(){const _0x2eca12=a1262_0x120081;Promise['resolve']()[_0x2eca12(0xdc)](ami[_0x2eca12(0xee)]())['catch'](function(_0x5bb023){const _0x56b783=_0x2eca12;logger[_0x56b783(0xcb)]('[userReport][sipshowregistry]',util[_0x56b783(0xce)](_0x5bb023,{'showHidden':![],'depth':null}));});}function listDeviceStates(){const _0x58e413=a1262_0x120081;Promise[_0x58e413(0xdd)]()[_0x58e413(0xdc)](ami[_0x58e413(0xd1)]())[_0x58e413(0xc5)](function(_0x555d44){const _0x38b62e=_0x58e413;logger[_0x38b62e(0xcb)](_0x38b62e(0xcf),util['inspect'](_0x555d44,{'showHidden':![],'depth':null}));});}function showPeersStatus(){const _0x5f0f29=a1262_0x120081;Promise[_0x5f0f29(0xdd)]()[_0x5f0f29(0xdc)](ami[_0x5f0f29(0xef)]())[_0x5f0f29(0xc5)](function(_0xa78f13){const _0x1aaabc=_0x5f0f29;logger[_0x1aaabc(0xcb)]('[userReport][sippeerstatus]',util[_0x1aaabc(0xce)](_0xa78f13,{'showHidden':![],'depth':null}));});}UserReport[a1262_0x120081(0xcc)][a1262_0x120081(0xf9)]=function(){setInterval(function(){const _0x406c62=a1262_0x231b;Promise[_0x406c62(0xdd)]()[_0x406c62(0xdc)](showSipRegistrations())['then'](listDeviceStates())[_0x406c62(0xdc)](showPeersStatus());},0x32c8);},UserReport[a1262_0x120081(0xcc)]['isNotNull']=function(_0xa849f5){const _0x155054=a1262_0x120081;return _0xa849f5!==null&&!_[_0x155054(0xe0)](_0xa849f5);},UserReport['prototype'][a1262_0x120081(0xda)]=function(_0x277a00,_0x4fe27f,_0x1e2eba){const _0x3e5357=a1262_0x120081;io['to'](_0x277a00)[_0x3e5357(0xda)](_0x4fe27f,_0x1e2eba);},UserReport['prototype']['syncRegistry']=function(_0x29eff6){const _0x3381b1=a1262_0x120081;try{if(this[_0x3381b1(0xcd)](_0x29eff6)){logger[_0x3381b1(0xd9)]('[userReport][registry]\x20registry:%s\x20state:%s',_0x29eff6[_0x3381b1(0xd0)],_0x29eff6[_0x3381b1(0xd2)]),logger[_0x3381b1(0xbc)](_0x3381b1(0xc2),util['inspect'](_0x29eff6,{'showHidden':![],'depth':null}));const _0x5f53f1=_[_0x3381b1(0xbf)](this[_0x3381b1(0xc6)],{'registry':_0x29eff6[_0x3381b1(0xd0)]});_0x5f53f1&&(_0x29eff6['stateRegistry']=_0x29eff6[_0x3381b1(0xd2)],_[_0x3381b1(0xf3)](_0x5f53f1,_[_0x3381b1(0xe7)](_0x29eff6,[_0x3381b1(0xf4),_0x3381b1(0xe6),_0x3381b1(0xd0),_0x3381b1(0xd2)])),logger[_0x3381b1(0xbc)](_0x3381b1(0xfa),util[_0x3381b1(0xce)](_0x5f53f1,{'showHidden':![],'depth':null})),this[_0x3381b1(0xda)](util[_0x3381b1(0xed)]('trunk:%s',_0x5f53f1[_0x3381b1(0xbe)]),_0x3381b1(0xd7),_0x5f53f1));}}catch(_0x43f671){logger[_0x3381b1(0xcb)](_0x3381b1(0xc2),util[_0x3381b1(0xce)](_0x43f671,{'showHidden':![],'depth':null}));}},UserReport['prototype'][a1262_0x120081(0xde)]=function(_0x1a7a64){const _0x341183=a1262_0x120081;try{if(this[_0x341183(0xcd)](_0x1a7a64)){logger['info'](_0x341183(0xc8),_0x1a7a64[_0x341183(0xe3)],_0x1a7a64['state']),logger[_0x341183(0xbc)](_0x341183(0xdf),util[_0x341183(0xce)](_0x1a7a64,{'showHidden':![],'depth':null}));if(this[_0x341183(0xe4)][_0x1a7a64[_0x341183(0xe3)]])(!this['agents'][_0x1a7a64[_0x341183(0xe3)]][_0x341183(0xf0)]||_0x1a7a64['state']['toLowerCase']()==_0x341183(0xc3))&&(this[_0x341183(0xe4)][_0x1a7a64[_0x341183(0xe3)]][_0x341183(0xf0)]=![],this[_0x341183(0xe4)][_0x1a7a64[_0x341183(0xe3)]][_0x341183(0xd2)]!==_0x1a7a64[_0x341183(0xd2)][_0x341183(0xf6)]()&&(this[_0x341183(0xe4)][_0x1a7a64[_0x341183(0xe3)]][_0x341183(0xc1)]=_[_0x341183(0xc0)](moment()[_0x341183(0xed)]('x'))),this[_0x341183(0xe4)][_0x1a7a64[_0x341183(0xe3)]][_0x341183(0xd2)]=_0x1a7a64[_0x341183(0xd2)]['toLowerCase'](),this[_0x341183(0xe4)][_0x1a7a64[_0x341183(0xe3)]][_0x341183(0xd8)](_0x1a7a64));else{if(this[_0x341183(0xc9)][_0x1a7a64[_0x341183(0xe3)]])this['telephones'][_0x1a7a64[_0x341183(0xe3)]][_0x341183(0xd2)]!==_0x1a7a64[_0x341183(0xd2)][_0x341183(0xf6)]()&&(logger[_0x341183(0xbc)](_0x341183(0xb6),util[_0x341183(0xce)](this[_0x341183(0xc9)][_0x1a7a64[_0x341183(0xe3)]],{'showHidden':![],'depth':null})),this[_0x341183(0xc9)][_0x1a7a64[_0x341183(0xe3)]][_0x341183(0xc1)]=_[_0x341183(0xc0)](moment()[_0x341183(0xed)]('x'))),this[_0x341183(0xc9)][_0x1a7a64[_0x341183(0xe3)]][_0x341183(0xd2)]=_0x1a7a64['state']['toLowerCase'](),logger[_0x341183(0xbc)](_0x341183(0xc7),util[_0x341183(0xce)](this[_0x341183(0xc6)][_0x1a7a64[_0x341183(0xe3)]],{'showHidden':![],'depth':null})),this[_0x341183(0xda)](util[_0x341183(0xed)](_0x341183(0xba),this[_0x341183(0xc9)][_0x1a7a64['device']][_0x341183(0xbe)]),_0x341183(0xb9),this['telephones'][_0x1a7a64[_0x341183(0xe3)]]);else{if(this[_0x341183(0xc6)][_0x1a7a64['device']])this['trunks'][_0x1a7a64[_0x341183(0xe3)]][_0x341183(0xd2)]!==_0x1a7a64['state'][_0x341183(0xf6)]()&&(this['trunks'][_0x1a7a64[_0x341183(0xe3)]][_0x341183(0xc1)]=_[_0x341183(0xc0)](moment()[_0x341183(0xed)]('x'))),this[_0x341183(0xc6)][_0x1a7a64[_0x341183(0xe3)]]['state']=_0x1a7a64[_0x341183(0xd2)][_0x341183(0xf6)](),this[_0x341183(0xda)](util[_0x341183(0xed)]('trunk:%s',this[_0x341183(0xc6)][_0x1a7a64[_0x341183(0xe3)]][_0x341183(0xbe)]),_0x341183(0xd7),this[_0x341183(0xc6)][_0x1a7a64['device']]);else{if(_[_0x341183(0xbb)](_0x1a7a64[_0x341183(0xe3)],'Local')){const _0xb0ec1a=_0x1a7a64[_0x341183(0xe3)],_0x5ec671=_0xb0ec1a[_0x341183(0xd3)](_0xb0ec1a[_0x341183(0xf5)]('/')+0x1,_0xb0ec1a[_0x341183(0xf5)]('@')),_0x173553=_[_0x341183(0xbf)](this['agents'],function(_0x33e000){const _0x45f9c3=_0x341183;return _0x33e000[_0x45f9c3(0xbd)]==_0x5ec671||_0x33e000[_0x45f9c3(0xea)]==_0x5ec671||_0x33e000[_0x45f9c3(0xd6)]==_0x5ec671;});_0x173553&&(_0x173553[_0x341183(0xd2)]!==_0x1a7a64[_0x341183(0xd2)]['toLowerCase']()&&(_0x173553[_0x341183(0xc1)]=_[_0x341183(0xc0)](moment()[_0x341183(0xed)]('x'))),_0x173553[_0x341183(0xd2)]=_0x1a7a64['state'][_0x341183(0xf6)](),_0x173553[_0x341183(0xf0)]=!![],_0x173553[_0x341183(0xd8)](_0x1a7a64));}}}}}}catch(_0x67a590){logger['error'](_0x341183(0xf1),util[_0x341183(0xce)](_0x67a590,{'showHidden':![],'depth':null}));}},UserReport['prototype'][a1262_0x120081(0xb7)]=function(_0x382833){const _0x2469a0=a1262_0x120081;try{if(this[_0x2469a0(0xcd)](_0x382833)&&this[_0x2469a0(0xcd)](_0x382833[_0x2469a0(0xdb)])){logger['info'](_0x2469a0(0xb5),_0x382833[_0x2469a0(0xca)],_0x382833[_0x2469a0(0xd4)],_0x382833[_0x2469a0(0xdb)]),logger['debug'](_0x2469a0(0xe9),util[_0x2469a0(0xce)](_0x382833,{'showHidden':![],'depth':null}));if(this[_0x2469a0(0xe4)][_0x382833['peer']])(!this[_0x2469a0(0xe4)][_0x382833[_0x2469a0(0xca)]][_0x2469a0(0xf0)]||_0x382833[_0x2469a0(0xdb)][_0x2469a0(0xf6)]()=='registered')&&(this['agents'][_0x382833[_0x2469a0(0xca)]][_0x2469a0(0xf0)]=![],this[_0x2469a0(0xe4)][_0x382833[_0x2469a0(0xca)]][_0x2469a0(0xc4)]=_0x382833[_0x2469a0(0xdb)][_0x2469a0(0xf6)](),this['agents'][_0x382833[_0x2469a0(0xca)]][_0x2469a0(0xd4)]=_0x382833[_0x2469a0(0xd4)],this[_0x2469a0(0xe4)][_0x382833[_0x2469a0(0xca)]][_0x2469a0(0xd8)](_0x382833));else{if(this[_0x2469a0(0xc9)][_0x382833[_0x2469a0(0xca)]])this[_0x2469a0(0xc9)][_0x382833[_0x2469a0(0xca)]][_0x2469a0(0xc4)]=_0x382833['peerstatus']['toLowerCase'](),this[_0x2469a0(0xc9)][_0x382833['peer']]['address']=_0x382833[_0x2469a0(0xd4)],logger[_0x2469a0(0xbc)](_0x2469a0(0xe8),util['inspect'](this['telephones'][_0x382833[_0x2469a0(0xca)]],{'showHidden':![],'depth':null})),this[_0x2469a0(0xda)](util['format']('telephone:%s',this[_0x2469a0(0xc9)][_0x382833[_0x2469a0(0xca)]]['name']),_0x2469a0(0xb9),this[_0x2469a0(0xc9)][_0x382833[_0x2469a0(0xca)]]);else this['trunks'][_0x382833[_0x2469a0(0xca)]]&&(this[_0x2469a0(0xc6)][_0x382833[_0x2469a0(0xca)]][_0x2469a0(0xc4)]=_0x382833[_0x2469a0(0xdb)]['toLowerCase'](),this['trunks'][_0x382833[_0x2469a0(0xca)]][_0x2469a0(0xd4)]=_0x382833[_0x2469a0(0xd4)],logger[_0x2469a0(0xbc)]('[userReport][peerstatus]\x20sending\x20trunk:save\x20event:',util[_0x2469a0(0xce)](this[_0x2469a0(0xc6)][_0x382833[_0x2469a0(0xca)]],{'showHidden':![],'depth':null})),this[_0x2469a0(0xda)](util[_0x2469a0(0xed)](_0x2469a0(0xf2),this[_0x2469a0(0xc6)][_0x382833[_0x2469a0(0xca)]]['name']),_0x2469a0(0xd7),this[_0x2469a0(0xc6)][_0x382833['peer']]));}}}catch(_0x2df0b8){logger[_0x2469a0(0xcb)](_0x2469a0(0xe9),util[_0x2469a0(0xce)](_0x2df0b8,{'showHidden':![],'depth':null}));}},module['exports']=UserReport; \ No newline at end of file diff --git a/server/services/ami/report/voiceAgentReport.js b/server/services/ami/report/voiceAgentReport.js index e10231c..fe1c087 100644 --- a/server/services/ami/report/voiceAgentReport.js +++ b/server/services/ami/report/voiceAgentReport.js @@ -1 +1 @@ -const a1263_0x179d=['[%s][voiceAgentReport][musiconholdstart]\x20event:','includes','[%s][voiceAgentReport][agentcalled]\x20agent:%s\x20destuniqueid:%s\x20lastevent:called','musiconholdstart','emit','voiceQueues','syncHangup','undefined','custom:agentringnoanswer','[%s][voiceAgentReport][agentringnoanswer]\x20agent:%s\x20destuniqueid:%s\x20lastevent:rejected','[%s][voiceAgentReport][queuecallerabandon]\x20agent:%s\x20destuniqueid:%s\x20lastevent:abandoned','agentcomplete','[%s][voiceAgentReport][agentconnect]\x20agent:%s\x20destuniqueid:%s\x20lastevent:connect','[%s][voiceAgentReport][agentcalled]\x20event:','[%s][voiceAgentReport][agentcomplete]\x20sending\x20user:agentcomplete\x20event:','syncAgentConnect','[%s][voiceAgentReport][hangup]\x20destuniqueid:%s','syncMusicOnHoldStart','queuecallerabandon','[%s][voiceAgentReport][agentcalled]','agentringnoanswerAt','[%s][voiceAgentReport][varset]','[%s][voiceAgentReport][varset]\x20event:','agentconnect','rtpaudioqosjitterbridged','transfereruniqueid','agentconnectAt','syncVarSet','bind','rejected','memberpenalty','holdtime','custom:agentcomplete','[%s][voiceAgentReport][queuecallerabandon]','membercalls','agents','[%s][voiceAgentReport][agentconnect]\x20agent:%s\x20destuniqueid:%s\x20lastevent:answered_elsewhere','syncAttendedTransfer','bridgepeer','[%s][voiceAgentReport][hangup]','connect','queue','[%s][voiceAgentReport][musiconholdstart]','info','[%s][voiceAgentReport][agentcomplete]\x20sending\x20agentcomplete\x20event:','channels','[%s][voiceAgentReport][agentringnoanswer]\x20event:','syncAgentRingNoAnswer','transfereeuniqueid','../ami','transfer','musiconholdstop','rtpaudioqosrttbridged','sipcallid','attendedtransfer','interface','[%s][voiceAgentReport][varset]\x20destuniqueid:%s\x20variable:%s\x20value:%s','abandoned','destuniqueid','acwTimeout','memberdynamic','hangup','syncBlindTransfer','isUndefined','connectedlinename','debug','custom:voiceAgentReport','omit','syncAgentCalled','variables','substring','memberinterface','inspect','syncAgentComplete','destchannelstatedesc','called','syncMusicOnHoldStop','[%s][voiceAgentReport][agentringnoanswer]','[%s][voiceAgentReport][agentcalled]\x20sending\x20agentcalled\x20event:','diff','connectedlinenum','seconds','rtpaudioqoslossbridged','rtpaudioqos','format','destchannelstate','onhold','error','rtpaudioqosbridged','acw','agent','ami','answeredelsewheremembername','agentacw','uniqueid','[%s][voiceAgentReport][agentcomplete]\x20event:','[%s][voiceAgentReport][musiconholdstop]\x20interface:%s','isNil','lastIndexOf','[%s][voiceAgentReport][agentconnect]','[%s][voiceAgentReport][queuecallerabandon]\x20event:','sipuri','talktime','prototype','user:agentcomplete','[%s][voiceAgentReport][blindtransfer]\x20event:','isNotNull','agentringnoanswer','inbound','variable','membername','values','memberlastcall','exports','YYYY-MM-DD\x20HH:mm:ss','user:%s','pick','destconnectedlinenum','complete','agentcalled','[%s][voiceAgentReport][attendedtransfer]','[%s][voiceAgentReport][agentconnect]\x20event:','bridgepvtcallid','[%s][voiceAgentReport][musiconholdstop]','varset','reason','util','lastevent','custom:agentqueuecallerabandon','merge','[%s][voiceAgentReport][musiconholdstart]\x20interface:%s','answeredelsewheredestinationuniqueid','channel','syncQueueCallerAbandon','agentcompleteAt','[%s][voiceAgentReport][hangup]\x20sending\x20voiceAgentReport\x20event:','acwtime','answered_elsewhere','moment','[%s][voiceAgentReport][agentconnect]\x20sending\x20agentansweredelsewhere\x20event:','[%s][voiceAgentReport][agentcalled]\x20sending\x20user:agentconnect\x20event:','user:agentconnect','origtransfereruniqueid','secondtransfereruniqueid','blindtransfer','memberrealtime','addVariable'];(function(_0x3ec107,_0x5cf89d){const _0x179da2=function(_0x143a47){while(--_0x143a47){_0x3ec107['push'](_0x3ec107['shift']());}};_0x179da2(++_0x5cf89d);}(a1263_0x179d,0x1a3));const a1263_0x143a=function(_0x3ec107,_0x5cf89d){_0x3ec107=_0x3ec107-0x151;let _0x179da2=a1263_0x179d[_0x3ec107];return _0x179da2;};const a1263_0x4f1274=a1263_0x143a;'use strict';const _=require('lodash'),moment=require(a1263_0x4f1274(0x15e)),util=require(a1263_0x4f1274(0x152)),logger=require('../../../config/logger')(a1263_0x4f1274(0x1c2)),ami=require(a1263_0x4f1274(0x198)),{getSocket}=require('../../../rediscache'),io=getSocket();function VoiceAgentReport(_0x18a1cb){const _0x53d907=a1263_0x4f1274;this[_0x53d907(0x194)]={},this[_0x53d907(0x16c)]=_0x18a1cb['voiceQueues'],this[_0x53d907(0x18a)]=_0x18a1cb[_0x53d907(0x18a)],this[_0x53d907(0x1ac)]={},ami['on'](_0x53d907(0x1de),this[_0x53d907(0x1ab)]['bind'](this)),ami['on'](_0x53d907(0x17e),this['syncAgentConnect'][_0x53d907(0x183)](this)),ami['on'](_0x53d907(0x1d2),this[_0x53d907(0x196)][_0x53d907(0x183)](this)),ami['on'](_0x53d907(0x179),this[_0x53d907(0x159)][_0x53d907(0x183)](this)),ami['on'](_0x53d907(0x172),this[_0x53d907(0x1b0)][_0x53d907(0x183)](this)),ami['on'](_0x53d907(0x1e3),this['syncVarSet']['bind'](this)),ami['on'](_0x53d907(0x1a4),this[_0x53d907(0x16d)]['bind'](this)),ami['on'](_0x53d907(0x16a),this[_0x53d907(0x178)][_0x53d907(0x183)](this)),ami['on'](_0x53d907(0x19a),this[_0x53d907(0x1b3)][_0x53d907(0x183)](this)),ami['on'](_0x53d907(0x19d),this[_0x53d907(0x18c)][_0x53d907(0x183)](this)),ami['on'](_0x53d907(0x164),this['syncBlindTransfer'][_0x53d907(0x183)](this));}VoiceAgentReport[a1263_0x4f1274(0x1ce)][a1263_0x4f1274(0x16b)]=function(_0x3bdd77,_0xda1d0b,_0x4ffd59){const _0x2c9d8e=a1263_0x4f1274;io['to'](_0x3bdd77)[_0x2c9d8e(0x16b)](_0xda1d0b,_0x4ffd59);},VoiceAgentReport[a1263_0x4f1274(0x1ce)][a1263_0x4f1274(0x1d1)]=function(_0x61d41c){return _0x61d41c!==null&&!_['isUndefined'](_0x61d41c);},VoiceAgentReport[a1263_0x4f1274(0x1ce)][a1263_0x4f1274(0x1ab)]=function(_0xa01fd6){const _0x495fce=a1263_0x4f1274;try{this[_0x495fce(0x1d1)](_0xa01fd6)&&(logger[_0x495fce(0x192)](_0x495fce(0x169),_0xa01fd6[_0x495fce(0x1c5)],_0xa01fd6['membername'],_0xa01fd6[_0x495fce(0x1a1)]),logger[_0x495fce(0x1a8)](_0x495fce(0x174),_0xa01fd6['uniqueid'],util['inspect'](_0xa01fd6,{'showHidden':![],'depth':null})),_['isUndefined'](this[_0x495fce(0x194)][_0xa01fd6['uniqueid']])&&(this[_0x495fce(0x194)][_0xa01fd6[_0x495fce(0x1c5)]]={}),_[_0x495fce(0x1a6)](this[_0x495fce(0x194)][_0xa01fd6[_0x495fce(0x1c5)]][_0xa01fd6['destuniqueid']])&&(this[_0x495fce(0x194)][_0xa01fd6['uniqueid']][_0xa01fd6[_0x495fce(0x1a1)]]={'agentcalledAt':moment()['format'](_0x495fce(0x1d9)),'lastevent':_0x495fce(0x1b2),'mandatoryDisposition':this['voiceQueues'][_0xa01fd6[_0x495fce(0x190)]]?this['voiceQueues'][_0xa01fd6[_0x495fce(0x190)]]['mandatoryDisposition']||![]:![],'type':this[_0x495fce(0x16c)][_0xa01fd6[_0x495fce(0x190)]]?this[_0x495fce(0x16c)][_0xa01fd6[_0x495fce(0x190)]]['type']||'inbound':_0x495fce(0x1d3),'variables':this[_0x495fce(0x1ac)][_0xa01fd6[_0x495fce(0x1c5)]]}),_[_0x495fce(0x155)](this['channels'][_0xa01fd6['uniqueid']][_0xa01fd6[_0x495fce(0x1a1)]],_['omit'](_0xa01fd6,['event','privilege'])),logger[_0x495fce(0x1a8)](_0x495fce(0x1b5),_0xa01fd6[_0x495fce(0x1c5)],util[_0x495fce(0x1af)](this[_0x495fce(0x194)][_0xa01fd6[_0x495fce(0x1c5)]][_0xa01fd6[_0x495fce(0x1a1)]],{'showHidden':![],'depth':null})),ami[_0x495fce(0x16b)]('custom:agentcalled',this['channels'][_0xa01fd6['uniqueid']][_0xa01fd6['destuniqueid']]),logger[_0x495fce(0x1a8)]('[%s][voiceAgentReport][agentcalled]\x20sending\x20user:called\x20event:',_0xa01fd6[_0x495fce(0x1c5)],util[_0x495fce(0x1af)](this[_0x495fce(0x194)][_0xa01fd6['uniqueid']][_0xa01fd6['destuniqueid']],{'showHidden':![],'depth':null})),this[_0x495fce(0x16b)](util[_0x495fce(0x1bb)](_0x495fce(0x1da),_0xa01fd6[_0x495fce(0x1d5)]),'user:called',this[_0x495fce(0x194)][_0xa01fd6['uniqueid']][_0xa01fd6['destuniqueid']]));}catch(_0x42537e){logger[_0x495fce(0x1be)](_0x495fce(0x17a),_0xa01fd6['uniqueid'],util[_0x495fce(0x1af)](_0x42537e,{'showHidden':![],'depth':null}));}},VoiceAgentReport['prototype'][a1263_0x4f1274(0x176)]=function(_0x337f69){const _0x50e3f7=a1263_0x4f1274;try{if(this[_0x50e3f7(0x1d1)](_0x337f69)){if(this['channels'][_0x337f69[_0x50e3f7(0x1c5)]]){logger[_0x50e3f7(0x1a8)](_0x50e3f7(0x1e0),_0x337f69['uniqueid'],util[_0x50e3f7(0x1af)](_0x337f69,{'showHidden':![],'depth':null}));for(const _0x36302c in this[_0x50e3f7(0x194)][_0x337f69[_0x50e3f7(0x1c5)]]){if(typeof this[_0x50e3f7(0x194)][_0x337f69['uniqueid']][_0x36302c]!==_0x50e3f7(0x16e)){if(_0x337f69[_0x50e3f7(0x1a1)]===_0x36302c)logger[_0x50e3f7(0x192)](_0x50e3f7(0x173),_0x337f69[_0x50e3f7(0x1c5)],_0x337f69[_0x50e3f7(0x1d5)],_0x337f69[_0x50e3f7(0x1a1)]),this[_0x50e3f7(0x194)][_0x337f69[_0x50e3f7(0x1c5)]][_0x36302c][_0x50e3f7(0x181)]=moment()[_0x50e3f7(0x1bb)](_0x50e3f7(0x1d9)),this[_0x50e3f7(0x194)][_0x337f69['uniqueid']][_0x36302c][_0x50e3f7(0x1a7)]=_0x337f69[_0x50e3f7(0x1a7)],this[_0x50e3f7(0x194)][_0x337f69[_0x50e3f7(0x1c5)]][_0x36302c][_0x50e3f7(0x1b7)]=_0x337f69[_0x50e3f7(0x1b7)],this['channels'][_0x337f69['uniqueid']][_0x36302c][_0x50e3f7(0x1bc)]=_0x337f69['destchannelstate'],this[_0x50e3f7(0x194)][_0x337f69[_0x50e3f7(0x1c5)]][_0x36302c][_0x50e3f7(0x1b1)]=_0x337f69[_0x50e3f7(0x1b1)],this[_0x50e3f7(0x194)][_0x337f69[_0x50e3f7(0x1c5)]][_0x36302c]['holdtime']=_0x337f69[_0x50e3f7(0x186)],this[_0x50e3f7(0x194)][_0x337f69['uniqueid']][_0x36302c][_0x50e3f7(0x153)]=_0x50e3f7(0x18f),_['merge'](this['agents'][_0x337f69[_0x50e3f7(0x19e)]],_[_0x50e3f7(0x1db)](_0x337f69,[_0x50e3f7(0x190),_0x50e3f7(0x1dc)])),logger[_0x50e3f7(0x1a8)]('[%s][voiceAgentReport][agentconnect]\x20sending\x20agentconnect\x20event:',_0x337f69[_0x50e3f7(0x1c5)],util[_0x50e3f7(0x1af)](this[_0x50e3f7(0x194)][_0x337f69[_0x50e3f7(0x1c5)]][_0x337f69[_0x50e3f7(0x1a1)]],{'showHidden':![],'depth':null})),ami[_0x50e3f7(0x16b)]('custom:agentconnect',this[_0x50e3f7(0x194)][_0x337f69[_0x50e3f7(0x1c5)]][_0x337f69[_0x50e3f7(0x1a1)]]),logger[_0x50e3f7(0x1a8)](_0x50e3f7(0x160),_0x337f69[_0x50e3f7(0x1c5)],util[_0x50e3f7(0x1af)](this['channels'][_0x337f69[_0x50e3f7(0x1c5)]][_0x337f69[_0x50e3f7(0x1a1)]],{'showHidden':![],'depth':null})),this[_0x50e3f7(0x16b)](util[_0x50e3f7(0x1bb)]('user:%s',_0x337f69[_0x50e3f7(0x1d5)]),_0x50e3f7(0x161),this[_0x50e3f7(0x194)][_0x337f69[_0x50e3f7(0x1c5)]][_0x337f69['destuniqueid']]);else!this[_0x50e3f7(0x194)][_0x337f69[_0x50e3f7(0x1c5)]][_0x36302c]['agentringnoanswer']&&!this['channels'][_0x337f69['uniqueid']][_0x36302c][_0x50e3f7(0x172)]&&(logger[_0x50e3f7(0x192)](_0x50e3f7(0x18b),_0x337f69[_0x50e3f7(0x1c5)],this[_0x50e3f7(0x194)][_0x337f69[_0x50e3f7(0x1c5)]][_0x36302c]['membername'],_0x36302c),this[_0x50e3f7(0x194)][_0x337f69['uniqueid']][_0x36302c][_0x50e3f7(0x1d2)]=!![],this[_0x50e3f7(0x194)][_0x337f69[_0x50e3f7(0x1c5)]][_0x36302c]['agentringnoanswerAt']=moment()[_0x50e3f7(0x1bb)](_0x50e3f7(0x1d9)),this[_0x50e3f7(0x194)][_0x337f69['uniqueid']][_0x36302c][_0x50e3f7(0x157)]=_0x337f69[_0x50e3f7(0x1a1)],this[_0x50e3f7(0x194)][_0x337f69[_0x50e3f7(0x1c5)]][_0x36302c][_0x50e3f7(0x1c3)]=_0x337f69[_0x50e3f7(0x1d5)],this[_0x50e3f7(0x194)][_0x337f69[_0x50e3f7(0x1c5)]][_0x36302c]['lastevent']=_0x50e3f7(0x15d),this[_0x50e3f7(0x194)][_0x337f69[_0x50e3f7(0x1c5)]][_0x36302c][_0x50e3f7(0x151)]=_0x50e3f7(0x15d),logger['debug'](_0x50e3f7(0x15f),_0x337f69[_0x50e3f7(0x1c5)],util[_0x50e3f7(0x1af)](this[_0x50e3f7(0x194)][_0x337f69[_0x50e3f7(0x1c5)]][_0x36302c],{'showHidden':![],'depth':null})),ami[_0x50e3f7(0x16b)]('custom:agentansweredelsewhere',this['channels'][_0x337f69[_0x50e3f7(0x1c5)]][_0x36302c]));}}}}}catch(_0x528b48){logger[_0x50e3f7(0x1be)](_0x50e3f7(0x1ca),_0x337f69['uniqueid'],util[_0x50e3f7(0x1af)](_0x528b48,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x4f1274(0x1ce)]['syncAgentRingNoAnswer']=function(_0xdf1827){const _0x4c7da8=a1263_0x4f1274;try{this['isNotNull'](_0xdf1827)&&(logger[_0x4c7da8(0x1a8)](_0x4c7da8(0x195),_0xdf1827[_0x4c7da8(0x1c5)],util[_0x4c7da8(0x1af)](_0xdf1827,{'showHidden':![],'depth':null})),this[_0x4c7da8(0x194)][_0xdf1827[_0x4c7da8(0x1c5)]]&&this[_0x4c7da8(0x194)][_0xdf1827[_0x4c7da8(0x1c5)]][_0xdf1827['destuniqueid']]&&(logger[_0x4c7da8(0x192)](_0x4c7da8(0x170),_0xdf1827[_0x4c7da8(0x1c5)],_0xdf1827[_0x4c7da8(0x1d5)],_0xdf1827[_0x4c7da8(0x1a1)]),this['channels'][_0xdf1827['uniqueid']][_0xdf1827[_0x4c7da8(0x1a1)]][_0x4c7da8(0x1d2)]=!![],this[_0x4c7da8(0x194)][_0xdf1827['uniqueid']][_0xdf1827['destuniqueid']]['agentringnoanswerAt']=moment()[_0x4c7da8(0x1bb)](_0x4c7da8(0x1d9)),this[_0x4c7da8(0x194)][_0xdf1827['uniqueid']][_0xdf1827[_0x4c7da8(0x1a1)]][_0x4c7da8(0x153)]=_0x4c7da8(0x184),this['channels'][_0xdf1827['uniqueid']][_0xdf1827[_0x4c7da8(0x1a1)]]['reason']=_0x4c7da8(0x184),logger[_0x4c7da8(0x1a8)]('[%s][voiceAgentReport][agentringnoanswer]\x20sending\x20agentringnoanswer\x20event:',_0xdf1827[_0x4c7da8(0x1c5)],util[_0x4c7da8(0x1af)](this['channels'][_0xdf1827[_0x4c7da8(0x1c5)]][_0xdf1827['destuniqueid']],{'showHidden':![],'depth':null})),ami[_0x4c7da8(0x16b)](_0x4c7da8(0x16f),this[_0x4c7da8(0x194)][_0xdf1827[_0x4c7da8(0x1c5)]][_0xdf1827['destuniqueid']])));}catch(_0x3ed913){logger[_0x4c7da8(0x1be)](_0x4c7da8(0x1b4),_0xdf1827[_0x4c7da8(0x1c5)],util[_0x4c7da8(0x1af)](_0x3ed913,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x4f1274(0x1ce)][a1263_0x4f1274(0x159)]=function(_0x263efd){const _0x5c63b8=a1263_0x4f1274;try{if(this['isNotNull'](_0x263efd)){logger[_0x5c63b8(0x1a8)](_0x5c63b8(0x1cb),_0x263efd[_0x5c63b8(0x1c5)],util[_0x5c63b8(0x1af)](_0x263efd,{'showHidden':![],'depth':null}));if(this[_0x5c63b8(0x194)][_0x263efd[_0x5c63b8(0x1c5)]])for(const _0x5830d6 in this['channels'][_0x263efd['uniqueid']]){typeof this[_0x5c63b8(0x194)][_0x263efd[_0x5c63b8(0x1c5)]][_0x5830d6]!==_0x5c63b8(0x16e)&&!this['channels'][_0x263efd[_0x5c63b8(0x1c5)]][_0x5830d6][_0x5c63b8(0x1d2)]&&!this[_0x5c63b8(0x194)][_0x263efd[_0x5c63b8(0x1c5)]][_0x5830d6]['agentcomplete']&&(logger[_0x5c63b8(0x192)](_0x5c63b8(0x171),_0x263efd[_0x5c63b8(0x1c5)],this[_0x5c63b8(0x194)][_0x263efd[_0x5c63b8(0x1c5)]][_0x5830d6][_0x5c63b8(0x1d5)],_0x5830d6),this[_0x5c63b8(0x194)][_0x263efd[_0x5c63b8(0x1c5)]][_0x5830d6]['agentringnoanswer']=!![],this[_0x5c63b8(0x194)][_0x263efd[_0x5c63b8(0x1c5)]][_0x5830d6][_0x5c63b8(0x17b)]=moment()['format'](_0x5c63b8(0x1d9)),this[_0x5c63b8(0x194)][_0x263efd[_0x5c63b8(0x1c5)]][_0x5830d6][_0x5c63b8(0x153)]=_0x5c63b8(0x1a0),this[_0x5c63b8(0x194)][_0x263efd[_0x5c63b8(0x1c5)]][_0x5830d6]['reason']=_0x5c63b8(0x1a0),logger[_0x5c63b8(0x1a8)]('[%s][voiceAgentReport][queuecallerabandon]\x20sending\x20agentqueuecallerabandon\x20event:',_0x263efd[_0x5c63b8(0x1c5)],util[_0x5c63b8(0x1af)](this[_0x5c63b8(0x194)][_0x263efd[_0x5c63b8(0x1c5)]][_0x5830d6],{'showHidden':![],'depth':null})),ami[_0x5c63b8(0x16b)](_0x5c63b8(0x154),this[_0x5c63b8(0x194)][_0x263efd[_0x5c63b8(0x1c5)]][_0x5830d6]));}}}catch(_0x44d2fb){logger[_0x5c63b8(0x1be)](_0x5c63b8(0x188),_0x263efd[_0x5c63b8(0x1c5)],util['inspect'](_0x44d2fb,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x4f1274(0x1ce)][a1263_0x4f1274(0x1b0)]=function(_0x3506c5){const _0x397df7=a1263_0x4f1274;try{if(this[_0x397df7(0x1d1)](_0x3506c5)){logger[_0x397df7(0x1a8)](_0x397df7(0x1c6),_0x3506c5[_0x397df7(0x1c5)],util[_0x397df7(0x1af)](_0x3506c5,{'showHidden':![],'depth':null}));if(this[_0x397df7(0x194)][_0x3506c5[_0x397df7(0x1c5)]])for(const _0x3d1018 in this[_0x397df7(0x194)][_0x3506c5[_0x397df7(0x1c5)]]){typeof this[_0x397df7(0x194)][_0x3506c5[_0x397df7(0x1c5)]][_0x3d1018]!==_0x397df7(0x16e)&&(this[_0x397df7(0x194)][_0x3506c5[_0x397df7(0x1c5)]][_0x3d1018][_0x397df7(0x181)]&&!this[_0x397df7(0x194)][_0x3506c5['uniqueid']][_0x3d1018][_0x397df7(0x172)]&&(logger[_0x397df7(0x192)]('[%s][voiceAgentReport][agentcomplete]\x20agent:%s\x20destuniqueid:%s\x20lastevent:complete',_0x3506c5[_0x397df7(0x1c5)],this[_0x397df7(0x194)][_0x3506c5[_0x397df7(0x1c5)]][_0x3d1018][_0x397df7(0x1d5)],_0x3d1018),this['channels'][_0x3506c5[_0x397df7(0x1c5)]][_0x3d1018]['agentcomplete']=!![],this[_0x397df7(0x194)][_0x3506c5[_0x397df7(0x1c5)]][_0x3d1018][_0x397df7(0x15a)]=moment()[_0x397df7(0x1bb)](_0x397df7(0x1d9)),this[_0x397df7(0x194)][_0x3506c5[_0x397df7(0x1c5)]][_0x3d1018][_0x397df7(0x153)]=_0x397df7(0x1dd),this[_0x397df7(0x194)][_0x3506c5[_0x397df7(0x1c5)]][_0x3d1018]['reason']=_0x3506c5['reason']=='transfer'?_0x397df7(0x1c1):_0x3506c5[_0x397df7(0x151)],this['channels'][_0x3506c5[_0x397df7(0x1c5)]][_0x3d1018]['talktime']=_0x3506c5[_0x397df7(0x1cd)],this[_0x397df7(0x16c)][_0x3506c5[_0x397df7(0x190)]]&&this[_0x397df7(0x16c)][_0x3506c5[_0x397df7(0x190)]][_0x397df7(0x1c0)]&&(this['channels'][_0x3506c5[_0x397df7(0x1c5)]][_0x3d1018][_0x397df7(0x15c)]=this['voiceQueues'][_0x3506c5['queue']][_0x397df7(0x1a2)],this[_0x397df7(0x194)][_0x3506c5[_0x397df7(0x1c5)]][_0x3d1018][_0x397df7(0x1c4)]=!![]),this[_0x397df7(0x18a)][_0x3506c5[_0x397df7(0x19e)]]=_[_0x397df7(0x1aa)](this[_0x397df7(0x18a)][_0x3506c5['interface']],['queue',_0x397df7(0x1dc)]),logger[_0x397df7(0x1a8)](_0x397df7(0x193),_0x3506c5[_0x397df7(0x1c5)],util[_0x397df7(0x1af)](this[_0x397df7(0x194)][_0x3506c5[_0x397df7(0x1c5)]][_0x3d1018],{'showHidden':![],'depth':null})),ami[_0x397df7(0x16b)](_0x397df7(0x187),this[_0x397df7(0x194)][_0x3506c5[_0x397df7(0x1c5)]][_0x3d1018]),logger['debug'](_0x397df7(0x175),_0x3506c5['uniqueid'],util['inspect'](this[_0x397df7(0x194)][_0x3506c5['uniqueid']][_0x3d1018],{'showHidden':![],'depth':null})),this[_0x397df7(0x16b)](util[_0x397df7(0x1bb)](_0x397df7(0x1da),_0x3506c5[_0x397df7(0x1d5)]),_0x397df7(0x1cf),this[_0x397df7(0x194)][_0x3506c5['uniqueid']][_0x3d1018])));}}}catch(_0x3d47a0){logger[_0x397df7(0x1be)]('[%s][voiceAgentReport][agentcomplete]',_0x3506c5[_0x397df7(0x1c5)],util[_0x397df7(0x1af)](_0x3d47a0,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x4f1274(0x1ce)][a1263_0x4f1274(0x182)]=function(_0x56acdb){const _0x5187d6=a1263_0x4f1274;try{if(this[_0x5187d6(0x1d1)](_0x56acdb)){logger[_0x5187d6(0x1a8)](_0x5187d6(0x17d),_0x56acdb[_0x5187d6(0x1c5)],util[_0x5187d6(0x1af)](_0x56acdb,{'showHidden':![],'depth':null})),this[_0x5187d6(0x166)](_0x56acdb[_0x5187d6(0x1c5)],_['keys'](_0x56acdb[_0x5187d6(0x1d4)])[0x0],_0x56acdb['value']);if(this[_0x5187d6(0x194)][_0x56acdb[_0x5187d6(0x1c5)]])for(const _0x430d27 in this[_0x5187d6(0x194)][_0x56acdb[_0x5187d6(0x1c5)]]){typeof this[_0x5187d6(0x194)][_0x56acdb[_0x5187d6(0x1c5)]][_0x430d27]!==_0x5187d6(0x16e)&&(logger[_0x5187d6(0x192)](_0x5187d6(0x19f),_0x56acdb[_0x5187d6(0x1c5)],_0x430d27,_['keys'](_0x56acdb[_0x5187d6(0x1d4)])[0x0],_0x56acdb['value']),_['isUndefined'](this[_0x5187d6(0x194)][_0x56acdb[_0x5187d6(0x1c5)]][_0x430d27][_0x5187d6(0x1ac)])&&(this[_0x5187d6(0x194)][_0x56acdb[_0x5187d6(0x1c5)]][_0x430d27]['variables']={}),this[_0x5187d6(0x194)][_0x56acdb['uniqueid']][_0x430d27][_0x5187d6(0x1ac)]=this['variables'][_0x56acdb[_0x5187d6(0x1c5)]]);}}}catch(_0x448f9e){logger['error'](_0x5187d6(0x17c),_0x56acdb[_0x5187d6(0x1c5)],util[_0x5187d6(0x1af)](_0x448f9e,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x4f1274(0x1ce)][a1263_0x4f1274(0x166)]=function(_0x4ef5bc,_0x486988,_0x4b5ef){const _0x1c5d8e=a1263_0x4f1274,_0x1ff15c=[_0x1c5d8e(0x1ba),_0x1c5d8e(0x1bf),'rtpaudioqosjitter',_0x1c5d8e(0x17f),'rtpaudioqosloss',_0x1c5d8e(0x1b9),'rtpaudioqosrtt',_0x1c5d8e(0x19b),_0x1c5d8e(0x19c),_0x1c5d8e(0x1cc),_0x1c5d8e(0x18d),_0x1c5d8e(0x1e1),_0x1c5d8e(0x189),_0x1c5d8e(0x1a3),_0x1c5d8e(0x1ae),_0x1c5d8e(0x1d7),'membername',_0x1c5d8e(0x185),_0x1c5d8e(0x165)];!_[_0x1c5d8e(0x1c8)](_0x486988)&&!_[_0x1c5d8e(0x168)](_0x1ff15c,_0x486988)&&(_[_0x1c5d8e(0x1a6)](this['variables'][_0x4ef5bc])&&(this[_0x1c5d8e(0x1ac)][_0x4ef5bc]={}),this['variables'][_0x4ef5bc][_0x486988]=_0x4b5ef);},VoiceAgentReport[a1263_0x4f1274(0x1ce)][a1263_0x4f1274(0x16d)]=function(_0x1d98f1){const _0x1d9388=a1263_0x4f1274;try{if(this[_0x1d9388(0x1d1)](_0x1d98f1)){logger[_0x1d9388(0x1a8)]('[%s][voiceAgentReport][hangup]\x20event:',_0x1d98f1[_0x1d9388(0x1c5)],util['inspect'](_0x1d98f1,{'showHidden':![],'depth':null}));if(this[_0x1d9388(0x194)][_0x1d98f1[_0x1d9388(0x1c5)]]){for(const _0x951bab in this[_0x1d9388(0x194)][_0x1d98f1[_0x1d9388(0x1c5)]]){typeof this[_0x1d9388(0x194)][_0x1d98f1[_0x1d9388(0x1c5)]][_0x951bab]!=='undefined'&&(this['channels'][_0x1d98f1['uniqueid']][_0x951bab]['reason']==_0x1d9388(0x199)&&this[_0x1d9388(0x194)][_0x1d98f1['uniqueid']][_0x951bab][_0x1d9388(0x172)]&&(logger[_0x1d9388(0x192)](_0x1d9388(0x177),_0x1d98f1[_0x1d9388(0x1c5)],_0x951bab),this['channels'][_0x1d98f1[_0x1d9388(0x1c5)]][_0x951bab][_0x1d9388(0x15a)]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss')));}logger[_0x1d9388(0x1a8)](_0x1d9388(0x15b),_0x1d98f1[_0x1d9388(0x1c5)],util[_0x1d9388(0x1af)](_[_0x1d9388(0x1d6)](this[_0x1d9388(0x194)][_0x1d98f1[_0x1d9388(0x1c5)]]),{'showHidden':![],'depth':null})),ami[_0x1d9388(0x16b)](_0x1d9388(0x1a9),_[_0x1d9388(0x1d6)](this[_0x1d9388(0x194)][_0x1d98f1[_0x1d9388(0x1c5)]])),delete this[_0x1d9388(0x194)][_0x1d98f1[_0x1d9388(0x1c5)]];}this[_0x1d9388(0x1ac)][_0x1d98f1[_0x1d9388(0x1c5)]]&&delete this[_0x1d9388(0x1ac)][_0x1d98f1[_0x1d9388(0x1c5)]];}}catch(_0x58175c){logger[_0x1d9388(0x1be)](_0x1d9388(0x18e),_0x1d98f1[_0x1d9388(0x1c5)],util[_0x1d9388(0x1af)](_0x58175c,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x4f1274(0x1ce)][a1263_0x4f1274(0x18c)]=function(_0x26bf3b){const _0x1e0f2d=a1263_0x4f1274;try{if(this[_0x1e0f2d(0x1d1)](_0x26bf3b)){logger[_0x1e0f2d(0x1a8)]('[%s][voiceAgentReport][attendedtransfer]\x20event:',_0x26bf3b[_0x1e0f2d(0x1c5)],util[_0x1e0f2d(0x1af)](_0x26bf3b,{'showHidden':![],'depth':null}));if(this['channels'][_0x26bf3b[_0x1e0f2d(0x197)]])for(const _0x1da0a2 in this[_0x1e0f2d(0x194)][_0x26bf3b[_0x1e0f2d(0x197)]]){if(typeof this[_0x1e0f2d(0x194)][_0x26bf3b[_0x1e0f2d(0x197)]][_0x1da0a2]!==_0x1e0f2d(0x16e)){if(_0x26bf3b[_0x1e0f2d(0x162)]===_0x1da0a2){logger[_0x1e0f2d(0x192)]('[%s][voiceAgentReport][attendedtransfer]\x20agent:%s\x20destuniqueid:%s\x20lastevent:complete',_0x26bf3b[_0x1e0f2d(0x1c5)],this[_0x1e0f2d(0x194)][_0x26bf3b['transfereeuniqueid']][_0x1da0a2][_0x1e0f2d(0x1d5)],_0x1da0a2);const _0x54e19b=moment();this['channels'][_0x26bf3b[_0x1e0f2d(0x197)]][_0x1da0a2]['agentcomplete']=!![],this[_0x1e0f2d(0x194)][_0x26bf3b[_0x1e0f2d(0x197)]][_0x1da0a2][_0x1e0f2d(0x15a)]=moment()[_0x1e0f2d(0x1bb)]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x1e0f2d(0x194)][_0x26bf3b[_0x1e0f2d(0x197)]][_0x1da0a2]['lastevent']=_0x1e0f2d(0x1dd),this['channels'][_0x26bf3b[_0x1e0f2d(0x197)]][_0x1da0a2]['reason']='transfer',this[_0x1e0f2d(0x194)][_0x26bf3b[_0x1e0f2d(0x197)]][_0x1da0a2][_0x1e0f2d(0x1cd)]=_0x54e19b[_0x1e0f2d(0x1b6)](this[_0x1e0f2d(0x194)][_0x26bf3b[_0x1e0f2d(0x197)]][_0x1da0a2][_0x1e0f2d(0x181)],_0x1e0f2d(0x1b8));}}}if(this[_0x1e0f2d(0x194)][_0x26bf3b['secondtransfereruniqueid']]){const _0x365e6a=this[_0x1e0f2d(0x194)][_0x26bf3b[_0x1e0f2d(0x163)]];this['channels'][_0x26bf3b['secondtransfereruniqueid']]=this[_0x1e0f2d(0x194)][_0x26bf3b[_0x1e0f2d(0x197)]],this[_0x1e0f2d(0x194)][_0x26bf3b['transfereeuniqueid']]=_0x365e6a;}}}catch(_0x597c7e){logger[_0x1e0f2d(0x1be)](_0x1e0f2d(0x1df),_0x26bf3b[_0x1e0f2d(0x1c5)],util[_0x1e0f2d(0x1af)](_0x597c7e,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x4f1274(0x1ce)][a1263_0x4f1274(0x1a5)]=function(_0x208b9c){const _0x39c072=a1263_0x4f1274;try{if(this['isNotNull'](_0x208b9c)){logger[_0x39c072(0x1a8)](_0x39c072(0x1d0),_0x208b9c[_0x39c072(0x1c5)],util[_0x39c072(0x1af)](_0x208b9c,{'showHidden':![],'depth':null}));if(this[_0x39c072(0x194)][_0x208b9c[_0x39c072(0x197)]])for(const _0x7a7b46 in this[_0x39c072(0x194)][_0x208b9c[_0x39c072(0x197)]]){if(typeof this['channels'][_0x208b9c[_0x39c072(0x197)]][_0x7a7b46]!==_0x39c072(0x16e)){if(_0x208b9c[_0x39c072(0x180)]===_0x7a7b46){logger[_0x39c072(0x192)]('[%s][voiceAgentReport][blindtransfer]\x20agent:%s\x20destuniqueid:%s\x20lastevent:complete',_0x208b9c[_0x39c072(0x1c5)],this[_0x39c072(0x194)][_0x208b9c['transfereeuniqueid']][_0x7a7b46][_0x39c072(0x1d5)],_0x7a7b46);const _0x5b73cc=moment();this[_0x39c072(0x194)][_0x208b9c[_0x39c072(0x197)]][_0x7a7b46][_0x39c072(0x172)]=!![],this[_0x39c072(0x194)][_0x208b9c[_0x39c072(0x197)]][_0x7a7b46][_0x39c072(0x15a)]=_0x5b73cc,this[_0x39c072(0x194)][_0x208b9c[_0x39c072(0x197)]][_0x7a7b46][_0x39c072(0x153)]='complete',this[_0x39c072(0x194)][_0x208b9c[_0x39c072(0x197)]][_0x7a7b46][_0x39c072(0x151)]=_0x39c072(0x199),this[_0x39c072(0x194)][_0x208b9c[_0x39c072(0x197)]][_0x7a7b46][_0x39c072(0x1cd)]=_0x5b73cc['diff'](this[_0x39c072(0x194)][_0x208b9c[_0x39c072(0x197)]][_0x7a7b46][_0x39c072(0x181)],'seconds');}}}}}catch(_0x1ca75c){logger['error']('[%s][voiceAgentReport][blindtransfer]',_0x208b9c[_0x39c072(0x1c5)],util[_0x39c072(0x1af)](_0x1ca75c,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x4f1274(0x1ce)][a1263_0x4f1274(0x178)]=function(_0x20e157){const _0x243734=a1263_0x4f1274;let _0x1e9edb='';try{this[_0x243734(0x1d1)](_0x20e157)&&(logger['debug'](_0x243734(0x167),_0x20e157[_0x243734(0x1c5)],util[_0x243734(0x1af)](_0x20e157,{'showHidden':![],'depth':null})),_0x20e157[_0x243734(0x158)]&&(_0x1e9edb=_0x20e157['channel'][_0x243734(0x1ad)](0x0,_0x20e157['channel'][_0x243734(0x1c9)]('-')),this[_0x243734(0x18a)][_0x1e9edb]&&(logger[_0x243734(0x192)](_0x243734(0x156),_0x20e157[_0x243734(0x1c5)],_0x1e9edb),this['agents'][_0x1e9edb]['onhold']=!![])));}catch(_0x582f0a){logger[_0x243734(0x1be)](_0x243734(0x191),_0x20e157[_0x243734(0x1c5)],util[_0x243734(0x1af)](_0x582f0a,{'showHidden':![],'depth':null}));}},VoiceAgentReport['prototype']['syncMusicOnHoldStop']=function(_0x503416){const _0x214f62=a1263_0x4f1274;let _0x232a12='';try{this[_0x214f62(0x1d1)](_0x503416)&&(logger[_0x214f62(0x1a8)]('[%s][voiceAgentReport][musiconholdstop]\x20event:',_0x503416[_0x214f62(0x1c5)],util[_0x214f62(0x1af)](_0x503416,{'showHidden':![],'depth':null})),_0x503416[_0x214f62(0x158)]&&(_0x232a12=_0x503416[_0x214f62(0x158)]['substring'](0x0,_0x503416[_0x214f62(0x158)][_0x214f62(0x1c9)]('-')),this[_0x214f62(0x18a)][_0x232a12]&&(logger[_0x214f62(0x192)](_0x214f62(0x1c7),_0x503416[_0x214f62(0x1c5)],_0x232a12),this[_0x214f62(0x18a)][_0x232a12][_0x214f62(0x1bd)]=![])));}catch(_0x277582){logger[_0x214f62(0x1be)](_0x214f62(0x1e2),_0x503416[_0x214f62(0x1c5)],util[_0x214f62(0x1af)](_0x277582,{'showHidden':![],'depth':null}));}},module[a1263_0x4f1274(0x1d8)]=VoiceAgentReport; \ No newline at end of file +const a1263_0x493b=['transfereeuniqueid','undefined','lastevent','inspect','rejected','seconds','called','user:%s','syncQueueCallerAbandon','[%s][voiceAgentReport][agentringnoanswer]','acwtime','agents','[%s][voiceAgentReport][agentconnect]\x20agent:%s\x20destuniqueid:%s\x20lastevent:answered_elsewhere','acw','../../../rediscache','bind','error','[%s][voiceAgentReport][agentconnect]','memberpenalty','[%s][voiceAgentReport][queuecallerabandon]\x20agent:%s\x20destuniqueid:%s\x20lastevent:abandoned','includes','[%s][voiceAgentReport][varset]\x20event:','agentcomplete','destchannelstatedesc','custom:agentconnect','custom:agentcomplete','[%s][voiceAgentReport][agentcomplete]\x20event:','emit','info','[%s][voiceAgentReport][hangup]\x20sending\x20voiceAgentReport\x20event:','[%s][voiceAgentReport][queuecallerabandon]\x20event:','isUndefined','keys','values','[%s][voiceAgentReport][agentcalled]\x20event:','agentringnoanswerAt','syncAgentRingNoAnswer','attendedtransfer','syncMusicOnHoldStart','rtpaudioqosbridged','[%s][voiceAgentReport][attendedtransfer]\x20event:','user:agentconnect','origtransfereruniqueid','queuecallerabandon','destuniqueid','syncBlindTransfer','type','mandatoryDisposition','rtpaudioqosrtt','connectedlinename','rtpaudioqos','../ami','[%s][voiceAgentReport][hangup]\x20destuniqueid:%s','interface','answeredelsewheredestinationuniqueid','abandoned','rtpaudioqosrttbridged','variable','[%s][voiceAgentReport][blindtransfer]\x20event:','isNotNull','agentcompleteAt','connect','blindtransfer','varset','[%s][voiceAgentReport][agentcalled]','transfer','YYYY-MM-DD\x20HH:mm:ss','custom:agentringnoanswer','memberdynamic','complete','holdtime','merge','ami','hangup','variables','[%s][voiceAgentReport][agentcalled]\x20sending\x20user:called\x20event:','bridgepeer','[%s][voiceAgentReport][queuecallerabandon]\x20sending\x20agentqueuecallerabandon\x20event:','omit','[%s][voiceAgentReport][musiconholdstart]\x20event:','diff','addVariable','format','syncHangup','[%s][voiceAgentReport][agentcalled]\x20sending\x20user:agentconnect\x20event:','[%s][voiceAgentReport][agentcomplete]','user:agentcomplete','event','[%s][voiceAgentReport][agentconnect]\x20agent:%s\x20destuniqueid:%s\x20lastevent:connect','membername','user:called','answeredelsewheremembername','rtpaudioqosloss','rtpaudioqosjitterbridged','inbound','[%s][voiceAgentReport][hangup]\x20event:','[%s][voiceAgentReport][agentringnoanswer]\x20event:','[%s][voiceAgentReport][queuecallerabandon]','destconnectedlinenum','../../../config/logger','[%s][voiceAgentReport][agentcomplete]\x20sending\x20user:agentcomplete\x20event:','destchannelstate','[%s][voiceAgentReport][agentconnect]\x20sending\x20agentconnect\x20event:','voiceQueues','channels','syncAgentComplete','rtpaudioqosjitter','[%s][voiceAgentReport][agentcomplete]\x20agent:%s\x20destuniqueid:%s\x20lastevent:complete','[%s][voiceAgentReport][agentconnect]\x20event:','custom:agentcalled','membercalls','pick','[%s][voiceAgentReport][agentcalled]\x20agent:%s\x20destuniqueid:%s\x20lastevent:called','onhold','agentconnectAt','[%s][voiceAgentReport][musiconholdstop]\x20interface:%s','channel','agentcalled','exports','[%s][voiceAgentReport][blindtransfer]','queue','[%s][voiceAgentReport][varset]','substring','syncAgentConnect','[%s][voiceAgentReport][agentringnoanswer]\x20agent:%s\x20destuniqueid:%s\x20lastevent:rejected','[%s][voiceAgentReport][blindtransfer]\x20agent:%s\x20destuniqueid:%s\x20lastevent:complete','custom:voiceAgentReport','bridgepvtcallid','agentringnoanswer','debug','lastIndexOf','connectedlinenum','musiconholdstop','secondtransfereruniqueid','custom:agentansweredelsewhere','uniqueid','sipcallid','syncVarSet','sipuri','syncAttendedTransfer','syncAgentCalled','util','reason','value','talktime','rtpaudioqoslossbridged','[%s][voiceAgentReport][musiconholdstart]','prototype','[%s][voiceAgentReport][attendedtransfer]\x20agent:%s\x20destuniqueid:%s\x20lastevent:complete','lodash','syncMusicOnHoldStop','[%s][voiceAgentReport][musiconholdstop]\x20event:','answered_elsewhere'];(function(_0x121b8d,_0x2b5503){const _0x493b2b=function(_0x26aa8f){while(--_0x26aa8f){_0x121b8d['push'](_0x121b8d['shift']());}};_0x493b2b(++_0x2b5503);}(a1263_0x493b,0x192));const a1263_0x26aa=function(_0x121b8d,_0x2b5503){_0x121b8d=_0x121b8d-0x1a8;let _0x493b2b=a1263_0x493b[_0x121b8d];return _0x493b2b;};const a1263_0x5a73fa=a1263_0x26aa;'use strict';const _=require(a1263_0x5a73fa(0x1dd)),moment=require('moment'),util=require(a1263_0x5a73fa(0x1d5)),logger=require(a1263_0x5a73fa(0x1ab))(a1263_0x5a73fa(0x229)),ami=require(a1263_0x5a73fa(0x214)),{getSocket}=require(a1263_0x5a73fa(0x1ef)),io=getSocket();function VoiceAgentReport(_0x255c15){const _0x2c6152=a1263_0x5a73fa;this[_0x2c6152(0x1b0)]={},this[_0x2c6152(0x1af)]=_0x255c15[_0x2c6152(0x1af)],this['agents']=_0x255c15[_0x2c6152(0x1ec)],this[_0x2c6152(0x22b)]={},ami['on'](_0x2c6152(0x1bd),this['syncAgentCalled'][_0x2c6152(0x1f0)](this)),ami['on']('agentconnect',this[_0x2c6152(0x1c3)]['bind'](this)),ami['on'](_0x2c6152(0x1c8),this[_0x2c6152(0x205)][_0x2c6152(0x1f0)](this)),ami['on'](_0x2c6152(0x20c),this['syncQueueCallerAbandon']['bind'](this)),ami['on']('agentcomplete',this[_0x2c6152(0x1b1)][_0x2c6152(0x1f0)](this)),ami['on'](_0x2c6152(0x220),this[_0x2c6152(0x1d1)][_0x2c6152(0x1f0)](this)),ami['on'](_0x2c6152(0x22a),this[_0x2c6152(0x234)]['bind'](this)),ami['on']('musiconholdstart',this[_0x2c6152(0x207)]['bind'](this)),ami['on'](_0x2c6152(0x1cc),this[_0x2c6152(0x1de)][_0x2c6152(0x1f0)](this)),ami['on'](_0x2c6152(0x206),this[_0x2c6152(0x1d3)][_0x2c6152(0x1f0)](this)),ami['on'](_0x2c6152(0x21f),this[_0x2c6152(0x20e)][_0x2c6152(0x1f0)](this));}VoiceAgentReport[a1263_0x5a73fa(0x1db)]['emit']=function(_0x3c1df9,_0x1bbc6f,_0xe87900){const _0x4a1cc1=a1263_0x5a73fa;io['to'](_0x3c1df9)[_0x4a1cc1(0x1fc)](_0x1bbc6f,_0xe87900);},VoiceAgentReport[a1263_0x5a73fa(0x1db)][a1263_0x5a73fa(0x21c)]=function(_0x23186b){const _0x3e6352=a1263_0x5a73fa;return _0x23186b!==null&&!_[_0x3e6352(0x200)](_0x23186b);},VoiceAgentReport[a1263_0x5a73fa(0x1db)][a1263_0x5a73fa(0x1d4)]=function(_0x355df8){const _0x17dacc=a1263_0x5a73fa;try{this[_0x17dacc(0x21c)](_0x355df8)&&(logger[_0x17dacc(0x1fd)](_0x17dacc(0x1b8),_0x355df8['uniqueid'],_0x355df8[_0x17dacc(0x23a)],_0x355df8['destuniqueid']),logger[_0x17dacc(0x1c9)](_0x17dacc(0x203),_0x355df8['uniqueid'],util['inspect'](_0x355df8,{'showHidden':![],'depth':null})),_[_0x17dacc(0x200)](this[_0x17dacc(0x1b0)][_0x355df8[_0x17dacc(0x1cf)]])&&(this[_0x17dacc(0x1b0)][_0x355df8[_0x17dacc(0x1cf)]]={}),_[_0x17dacc(0x200)](this[_0x17dacc(0x1b0)][_0x355df8['uniqueid']][_0x355df8[_0x17dacc(0x20d)]])&&(this[_0x17dacc(0x1b0)][_0x355df8[_0x17dacc(0x1cf)]][_0x355df8[_0x17dacc(0x20d)]]={'agentcalledAt':moment()['format'](_0x17dacc(0x223)),'lastevent':_0x17dacc(0x1e7),'mandatoryDisposition':this[_0x17dacc(0x1af)][_0x355df8[_0x17dacc(0x1c0)]]?this['voiceQueues'][_0x355df8[_0x17dacc(0x1c0)]][_0x17dacc(0x210)]||![]:![],'type':this[_0x17dacc(0x1af)][_0x355df8[_0x17dacc(0x1c0)]]?this[_0x17dacc(0x1af)][_0x355df8[_0x17dacc(0x1c0)]][_0x17dacc(0x20f)]||_0x17dacc(0x23f):_0x17dacc(0x23f),'variables':this[_0x17dacc(0x22b)][_0x355df8[_0x17dacc(0x1cf)]]}),_[_0x17dacc(0x228)](this[_0x17dacc(0x1b0)][_0x355df8['uniqueid']][_0x355df8[_0x17dacc(0x20d)]],_[_0x17dacc(0x22f)](_0x355df8,[_0x17dacc(0x238),'privilege'])),logger[_0x17dacc(0x1c9)]('[%s][voiceAgentReport][agentcalled]\x20sending\x20agentcalled\x20event:',_0x355df8['uniqueid'],util['inspect'](this['channels'][_0x355df8[_0x17dacc(0x1cf)]][_0x355df8['destuniqueid']],{'showHidden':![],'depth':null})),ami['emit'](_0x17dacc(0x1b5),this[_0x17dacc(0x1b0)][_0x355df8[_0x17dacc(0x1cf)]][_0x355df8[_0x17dacc(0x20d)]]),logger[_0x17dacc(0x1c9)](_0x17dacc(0x22c),_0x355df8['uniqueid'],util[_0x17dacc(0x1e4)](this['channels'][_0x355df8[_0x17dacc(0x1cf)]][_0x355df8[_0x17dacc(0x20d)]],{'showHidden':![],'depth':null})),this[_0x17dacc(0x1fc)](util[_0x17dacc(0x233)](_0x17dacc(0x1e8),_0x355df8[_0x17dacc(0x23a)]),_0x17dacc(0x23b),this[_0x17dacc(0x1b0)][_0x355df8[_0x17dacc(0x1cf)]][_0x355df8[_0x17dacc(0x20d)]]));}catch(_0x1f3560){logger[_0x17dacc(0x1f1)](_0x17dacc(0x221),_0x355df8['uniqueid'],util['inspect'](_0x1f3560,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x5a73fa(0x1db)][a1263_0x5a73fa(0x1c3)]=function(_0x58951d){const _0x137158=a1263_0x5a73fa;try{if(this['isNotNull'](_0x58951d)){if(this[_0x137158(0x1b0)][_0x58951d[_0x137158(0x1cf)]]){logger[_0x137158(0x1c9)](_0x137158(0x1b4),_0x58951d[_0x137158(0x1cf)],util[_0x137158(0x1e4)](_0x58951d,{'showHidden':![],'depth':null}));for(const _0x306583 in this[_0x137158(0x1b0)][_0x58951d[_0x137158(0x1cf)]]){if(typeof this['channels'][_0x58951d[_0x137158(0x1cf)]][_0x306583]!==_0x137158(0x1e2)){if(_0x58951d['destuniqueid']===_0x306583)logger['info'](_0x137158(0x239),_0x58951d[_0x137158(0x1cf)],_0x58951d[_0x137158(0x23a)],_0x58951d['destuniqueid']),this[_0x137158(0x1b0)][_0x58951d[_0x137158(0x1cf)]][_0x306583][_0x137158(0x1ba)]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),this[_0x137158(0x1b0)][_0x58951d['uniqueid']][_0x306583][_0x137158(0x212)]=_0x58951d[_0x137158(0x212)],this['channels'][_0x58951d[_0x137158(0x1cf)]][_0x306583][_0x137158(0x1cb)]=_0x58951d[_0x137158(0x1cb)],this[_0x137158(0x1b0)][_0x58951d[_0x137158(0x1cf)]][_0x306583][_0x137158(0x1ad)]=_0x58951d[_0x137158(0x1ad)],this['channels'][_0x58951d[_0x137158(0x1cf)]][_0x306583][_0x137158(0x1f8)]=_0x58951d[_0x137158(0x1f8)],this[_0x137158(0x1b0)][_0x58951d[_0x137158(0x1cf)]][_0x306583][_0x137158(0x227)]=_0x58951d[_0x137158(0x227)],this[_0x137158(0x1b0)][_0x58951d[_0x137158(0x1cf)]][_0x306583]['lastevent']=_0x137158(0x21e),_[_0x137158(0x228)](this['agents'][_0x58951d['interface']],_[_0x137158(0x1b7)](_0x58951d,[_0x137158(0x1c0),_0x137158(0x1aa)])),logger[_0x137158(0x1c9)](_0x137158(0x1ae),_0x58951d[_0x137158(0x1cf)],util[_0x137158(0x1e4)](this['channels'][_0x58951d[_0x137158(0x1cf)]][_0x58951d[_0x137158(0x20d)]],{'showHidden':![],'depth':null})),ami[_0x137158(0x1fc)](_0x137158(0x1f9),this['channels'][_0x58951d[_0x137158(0x1cf)]][_0x58951d[_0x137158(0x20d)]]),logger[_0x137158(0x1c9)](_0x137158(0x235),_0x58951d[_0x137158(0x1cf)],util[_0x137158(0x1e4)](this[_0x137158(0x1b0)][_0x58951d[_0x137158(0x1cf)]][_0x58951d[_0x137158(0x20d)]],{'showHidden':![],'depth':null})),this[_0x137158(0x1fc)](util[_0x137158(0x233)]('user:%s',_0x58951d['membername']),_0x137158(0x20a),this[_0x137158(0x1b0)][_0x58951d[_0x137158(0x1cf)]][_0x58951d[_0x137158(0x20d)]]);else!this['channels'][_0x58951d[_0x137158(0x1cf)]][_0x306583][_0x137158(0x1c8)]&&!this[_0x137158(0x1b0)][_0x58951d[_0x137158(0x1cf)]][_0x306583][_0x137158(0x1f7)]&&(logger[_0x137158(0x1fd)](_0x137158(0x1ed),_0x58951d['uniqueid'],this[_0x137158(0x1b0)][_0x58951d['uniqueid']][_0x306583][_0x137158(0x23a)],_0x306583),this[_0x137158(0x1b0)][_0x58951d[_0x137158(0x1cf)]][_0x306583][_0x137158(0x1c8)]=!![],this[_0x137158(0x1b0)][_0x58951d[_0x137158(0x1cf)]][_0x306583]['agentringnoanswerAt']=moment()['format'](_0x137158(0x223)),this[_0x137158(0x1b0)][_0x58951d[_0x137158(0x1cf)]][_0x306583][_0x137158(0x217)]=_0x58951d[_0x137158(0x20d)],this[_0x137158(0x1b0)][_0x58951d[_0x137158(0x1cf)]][_0x306583][_0x137158(0x23c)]=_0x58951d['membername'],this[_0x137158(0x1b0)][_0x58951d['uniqueid']][_0x306583][_0x137158(0x1e3)]=_0x137158(0x1e0),this[_0x137158(0x1b0)][_0x58951d[_0x137158(0x1cf)]][_0x306583]['reason']='answered_elsewhere',logger[_0x137158(0x1c9)]('[%s][voiceAgentReport][agentconnect]\x20sending\x20agentansweredelsewhere\x20event:',_0x58951d[_0x137158(0x1cf)],util[_0x137158(0x1e4)](this[_0x137158(0x1b0)][_0x58951d['uniqueid']][_0x306583],{'showHidden':![],'depth':null})),ami[_0x137158(0x1fc)](_0x137158(0x1ce),this[_0x137158(0x1b0)][_0x58951d['uniqueid']][_0x306583]));}}}}}catch(_0x10aa6b){logger['error'](_0x137158(0x1f2),_0x58951d[_0x137158(0x1cf)],util['inspect'](_0x10aa6b,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x5a73fa(0x1db)][a1263_0x5a73fa(0x205)]=function(_0x2c561e){const _0x23c7b9=a1263_0x5a73fa;try{this[_0x23c7b9(0x21c)](_0x2c561e)&&(logger[_0x23c7b9(0x1c9)](_0x23c7b9(0x1a8),_0x2c561e['uniqueid'],util[_0x23c7b9(0x1e4)](_0x2c561e,{'showHidden':![],'depth':null})),this[_0x23c7b9(0x1b0)][_0x2c561e[_0x23c7b9(0x1cf)]]&&this['channels'][_0x2c561e[_0x23c7b9(0x1cf)]][_0x2c561e[_0x23c7b9(0x20d)]]&&(logger[_0x23c7b9(0x1fd)](_0x23c7b9(0x1c4),_0x2c561e['uniqueid'],_0x2c561e[_0x23c7b9(0x23a)],_0x2c561e[_0x23c7b9(0x20d)]),this[_0x23c7b9(0x1b0)][_0x2c561e['uniqueid']][_0x2c561e[_0x23c7b9(0x20d)]]['agentringnoanswer']=!![],this['channels'][_0x2c561e[_0x23c7b9(0x1cf)]][_0x2c561e['destuniqueid']][_0x23c7b9(0x204)]=moment()[_0x23c7b9(0x233)]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x23c7b9(0x1b0)][_0x2c561e['uniqueid']][_0x2c561e['destuniqueid']][_0x23c7b9(0x1e3)]=_0x23c7b9(0x1e5),this[_0x23c7b9(0x1b0)][_0x2c561e[_0x23c7b9(0x1cf)]][_0x2c561e['destuniqueid']][_0x23c7b9(0x1d6)]='rejected',logger[_0x23c7b9(0x1c9)]('[%s][voiceAgentReport][agentringnoanswer]\x20sending\x20agentringnoanswer\x20event:',_0x2c561e['uniqueid'],util[_0x23c7b9(0x1e4)](this[_0x23c7b9(0x1b0)][_0x2c561e[_0x23c7b9(0x1cf)]][_0x2c561e[_0x23c7b9(0x20d)]],{'showHidden':![],'depth':null})),ami['emit'](_0x23c7b9(0x224),this[_0x23c7b9(0x1b0)][_0x2c561e[_0x23c7b9(0x1cf)]][_0x2c561e['destuniqueid']])));}catch(_0x54b107){logger['error'](_0x23c7b9(0x1ea),_0x2c561e[_0x23c7b9(0x1cf)],util[_0x23c7b9(0x1e4)](_0x54b107,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x5a73fa(0x1db)][a1263_0x5a73fa(0x1e9)]=function(_0x51ad64){const _0x14833c=a1263_0x5a73fa;try{if(this[_0x14833c(0x21c)](_0x51ad64)){logger[_0x14833c(0x1c9)](_0x14833c(0x1ff),_0x51ad64[_0x14833c(0x1cf)],util[_0x14833c(0x1e4)](_0x51ad64,{'showHidden':![],'depth':null}));if(this[_0x14833c(0x1b0)][_0x51ad64[_0x14833c(0x1cf)]])for(const _0x530109 in this[_0x14833c(0x1b0)][_0x51ad64[_0x14833c(0x1cf)]]){typeof this[_0x14833c(0x1b0)][_0x51ad64['uniqueid']][_0x530109]!=='undefined'&&!this['channels'][_0x51ad64['uniqueid']][_0x530109]['agentringnoanswer']&&!this[_0x14833c(0x1b0)][_0x51ad64[_0x14833c(0x1cf)]][_0x530109][_0x14833c(0x1f7)]&&(logger[_0x14833c(0x1fd)](_0x14833c(0x1f4),_0x51ad64[_0x14833c(0x1cf)],this[_0x14833c(0x1b0)][_0x51ad64[_0x14833c(0x1cf)]][_0x530109]['membername'],_0x530109),this[_0x14833c(0x1b0)][_0x51ad64[_0x14833c(0x1cf)]][_0x530109][_0x14833c(0x1c8)]=!![],this[_0x14833c(0x1b0)][_0x51ad64[_0x14833c(0x1cf)]][_0x530109]['agentringnoanswerAt']=moment()[_0x14833c(0x233)](_0x14833c(0x223)),this['channels'][_0x51ad64['uniqueid']][_0x530109]['lastevent']=_0x14833c(0x218),this['channels'][_0x51ad64[_0x14833c(0x1cf)]][_0x530109][_0x14833c(0x1d6)]=_0x14833c(0x218),logger[_0x14833c(0x1c9)](_0x14833c(0x22e),_0x51ad64['uniqueid'],util['inspect'](this[_0x14833c(0x1b0)][_0x51ad64[_0x14833c(0x1cf)]][_0x530109],{'showHidden':![],'depth':null})),ami[_0x14833c(0x1fc)]('custom:agentqueuecallerabandon',this[_0x14833c(0x1b0)][_0x51ad64['uniqueid']][_0x530109]));}}}catch(_0x404b61){logger[_0x14833c(0x1f1)](_0x14833c(0x1a9),_0x51ad64[_0x14833c(0x1cf)],util['inspect'](_0x404b61,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x5a73fa(0x1db)][a1263_0x5a73fa(0x1b1)]=function(_0x251447){const _0x407cb9=a1263_0x5a73fa;try{if(this[_0x407cb9(0x21c)](_0x251447)){logger[_0x407cb9(0x1c9)](_0x407cb9(0x1fb),_0x251447[_0x407cb9(0x1cf)],util[_0x407cb9(0x1e4)](_0x251447,{'showHidden':![],'depth':null}));if(this[_0x407cb9(0x1b0)][_0x251447['uniqueid']])for(const _0x57b9cf in this[_0x407cb9(0x1b0)][_0x251447[_0x407cb9(0x1cf)]]){typeof this[_0x407cb9(0x1b0)][_0x251447[_0x407cb9(0x1cf)]][_0x57b9cf]!=='undefined'&&(this['channels'][_0x251447[_0x407cb9(0x1cf)]][_0x57b9cf]['agentconnectAt']&&!this[_0x407cb9(0x1b0)][_0x251447[_0x407cb9(0x1cf)]][_0x57b9cf][_0x407cb9(0x1f7)]&&(logger[_0x407cb9(0x1fd)](_0x407cb9(0x1b3),_0x251447[_0x407cb9(0x1cf)],this[_0x407cb9(0x1b0)][_0x251447[_0x407cb9(0x1cf)]][_0x57b9cf]['membername'],_0x57b9cf),this[_0x407cb9(0x1b0)][_0x251447[_0x407cb9(0x1cf)]][_0x57b9cf][_0x407cb9(0x1f7)]=!![],this[_0x407cb9(0x1b0)][_0x251447[_0x407cb9(0x1cf)]][_0x57b9cf][_0x407cb9(0x21d)]=moment()[_0x407cb9(0x233)]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x407cb9(0x1b0)][_0x251447[_0x407cb9(0x1cf)]][_0x57b9cf][_0x407cb9(0x1e3)]=_0x407cb9(0x226),this[_0x407cb9(0x1b0)][_0x251447[_0x407cb9(0x1cf)]][_0x57b9cf][_0x407cb9(0x1d6)]=_0x251447['reason']=='transfer'?'agent':_0x251447[_0x407cb9(0x1d6)],this[_0x407cb9(0x1b0)][_0x251447[_0x407cb9(0x1cf)]][_0x57b9cf][_0x407cb9(0x1d8)]=_0x251447[_0x407cb9(0x1d8)],this[_0x407cb9(0x1af)][_0x251447[_0x407cb9(0x1c0)]]&&this[_0x407cb9(0x1af)][_0x251447['queue']][_0x407cb9(0x1ee)]&&(this[_0x407cb9(0x1b0)][_0x251447['uniqueid']][_0x57b9cf][_0x407cb9(0x1eb)]=this[_0x407cb9(0x1af)][_0x251447['queue']]['acwTimeout'],this[_0x407cb9(0x1b0)][_0x251447['uniqueid']][_0x57b9cf]['agentacw']=!![]),this[_0x407cb9(0x1ec)][_0x251447[_0x407cb9(0x216)]]=_[_0x407cb9(0x22f)](this[_0x407cb9(0x1ec)][_0x251447['interface']],['queue',_0x407cb9(0x1aa)]),logger[_0x407cb9(0x1c9)]('[%s][voiceAgentReport][agentcomplete]\x20sending\x20agentcomplete\x20event:',_0x251447['uniqueid'],util['inspect'](this[_0x407cb9(0x1b0)][_0x251447[_0x407cb9(0x1cf)]][_0x57b9cf],{'showHidden':![],'depth':null})),ami[_0x407cb9(0x1fc)](_0x407cb9(0x1fa),this['channels'][_0x251447[_0x407cb9(0x1cf)]][_0x57b9cf]),logger[_0x407cb9(0x1c9)](_0x407cb9(0x1ac),_0x251447[_0x407cb9(0x1cf)],util[_0x407cb9(0x1e4)](this[_0x407cb9(0x1b0)][_0x251447[_0x407cb9(0x1cf)]][_0x57b9cf],{'showHidden':![],'depth':null})),this[_0x407cb9(0x1fc)](util[_0x407cb9(0x233)](_0x407cb9(0x1e8),_0x251447[_0x407cb9(0x23a)]),_0x407cb9(0x237),this[_0x407cb9(0x1b0)][_0x251447['uniqueid']][_0x57b9cf])));}}}catch(_0x581558){logger[_0x407cb9(0x1f1)](_0x407cb9(0x236),_0x251447[_0x407cb9(0x1cf)],util[_0x407cb9(0x1e4)](_0x581558,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x5a73fa(0x1db)]['syncVarSet']=function(_0x47fade){const _0x1b8af3=a1263_0x5a73fa;try{if(this[_0x1b8af3(0x21c)](_0x47fade)){logger[_0x1b8af3(0x1c9)](_0x1b8af3(0x1f6),_0x47fade['uniqueid'],util[_0x1b8af3(0x1e4)](_0x47fade,{'showHidden':![],'depth':null})),this['addVariable'](_0x47fade['uniqueid'],_[_0x1b8af3(0x201)](_0x47fade[_0x1b8af3(0x21a)])[0x0],_0x47fade[_0x1b8af3(0x1d7)]);if(this[_0x1b8af3(0x1b0)][_0x47fade['uniqueid']])for(const _0x203d66 in this['channels'][_0x47fade[_0x1b8af3(0x1cf)]]){typeof this['channels'][_0x47fade[_0x1b8af3(0x1cf)]][_0x203d66]!=='undefined'&&(logger[_0x1b8af3(0x1fd)]('[%s][voiceAgentReport][varset]\x20destuniqueid:%s\x20variable:%s\x20value:%s',_0x47fade[_0x1b8af3(0x1cf)],_0x203d66,_[_0x1b8af3(0x201)](_0x47fade[_0x1b8af3(0x21a)])[0x0],_0x47fade[_0x1b8af3(0x1d7)]),_[_0x1b8af3(0x200)](this[_0x1b8af3(0x1b0)][_0x47fade[_0x1b8af3(0x1cf)]][_0x203d66][_0x1b8af3(0x22b)])&&(this[_0x1b8af3(0x1b0)][_0x47fade[_0x1b8af3(0x1cf)]][_0x203d66][_0x1b8af3(0x22b)]={}),this['channels'][_0x47fade[_0x1b8af3(0x1cf)]][_0x203d66][_0x1b8af3(0x22b)]=this[_0x1b8af3(0x22b)][_0x47fade[_0x1b8af3(0x1cf)]]);}}}catch(_0x5e103e){logger['error'](_0x1b8af3(0x1c1),_0x47fade[_0x1b8af3(0x1cf)],util['inspect'](_0x5e103e,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x5a73fa(0x1db)][a1263_0x5a73fa(0x232)]=function(_0x4ab5d2,_0x286375,_0x414d9c){const _0x15007d=a1263_0x5a73fa,_0x2e46f3=[_0x15007d(0x213),_0x15007d(0x208),_0x15007d(0x1b2),_0x15007d(0x23e),_0x15007d(0x23d),_0x15007d(0x1d9),_0x15007d(0x211),_0x15007d(0x219),_0x15007d(0x1d0),_0x15007d(0x1d2),_0x15007d(0x22d),_0x15007d(0x1c7),_0x15007d(0x1b6),_0x15007d(0x225),'memberinterface','memberlastcall','membername',_0x15007d(0x1f3),'memberrealtime'];!_['isNil'](_0x286375)&&!_[_0x15007d(0x1f5)](_0x2e46f3,_0x286375)&&(_[_0x15007d(0x200)](this[_0x15007d(0x22b)][_0x4ab5d2])&&(this[_0x15007d(0x22b)][_0x4ab5d2]={}),this[_0x15007d(0x22b)][_0x4ab5d2][_0x286375]=_0x414d9c);},VoiceAgentReport[a1263_0x5a73fa(0x1db)]['syncHangup']=function(_0x501abf){const _0x56aca8=a1263_0x5a73fa;try{if(this['isNotNull'](_0x501abf)){logger[_0x56aca8(0x1c9)](_0x56aca8(0x240),_0x501abf[_0x56aca8(0x1cf)],util[_0x56aca8(0x1e4)](_0x501abf,{'showHidden':![],'depth':null}));if(this['channels'][_0x501abf[_0x56aca8(0x1cf)]]){for(const _0x54a891 in this[_0x56aca8(0x1b0)][_0x501abf[_0x56aca8(0x1cf)]]){typeof this[_0x56aca8(0x1b0)][_0x501abf[_0x56aca8(0x1cf)]][_0x54a891]!==_0x56aca8(0x1e2)&&(this['channels'][_0x501abf[_0x56aca8(0x1cf)]][_0x54a891][_0x56aca8(0x1d6)]==_0x56aca8(0x222)&&this['channels'][_0x501abf[_0x56aca8(0x1cf)]][_0x54a891][_0x56aca8(0x1f7)]&&(logger[_0x56aca8(0x1fd)](_0x56aca8(0x215),_0x501abf[_0x56aca8(0x1cf)],_0x54a891),this[_0x56aca8(0x1b0)][_0x501abf[_0x56aca8(0x1cf)]][_0x54a891][_0x56aca8(0x21d)]=moment()[_0x56aca8(0x233)](_0x56aca8(0x223))));}logger[_0x56aca8(0x1c9)](_0x56aca8(0x1fe),_0x501abf[_0x56aca8(0x1cf)],util[_0x56aca8(0x1e4)](_[_0x56aca8(0x202)](this[_0x56aca8(0x1b0)][_0x501abf[_0x56aca8(0x1cf)]]),{'showHidden':![],'depth':null})),ami[_0x56aca8(0x1fc)](_0x56aca8(0x1c6),_[_0x56aca8(0x202)](this[_0x56aca8(0x1b0)][_0x501abf[_0x56aca8(0x1cf)]])),delete this['channels'][_0x501abf[_0x56aca8(0x1cf)]];}this[_0x56aca8(0x22b)][_0x501abf[_0x56aca8(0x1cf)]]&&delete this[_0x56aca8(0x22b)][_0x501abf[_0x56aca8(0x1cf)]];}}catch(_0x38fbc1){logger['error']('[%s][voiceAgentReport][hangup]',_0x501abf['uniqueid'],util['inspect'](_0x38fbc1,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x5a73fa(0x1db)][a1263_0x5a73fa(0x1d3)]=function(_0x1a6c6c){const _0x27f84b=a1263_0x5a73fa;try{if(this[_0x27f84b(0x21c)](_0x1a6c6c)){logger[_0x27f84b(0x1c9)](_0x27f84b(0x209),_0x1a6c6c[_0x27f84b(0x1cf)],util[_0x27f84b(0x1e4)](_0x1a6c6c,{'showHidden':![],'depth':null}));if(this[_0x27f84b(0x1b0)][_0x1a6c6c[_0x27f84b(0x1e1)]])for(const _0x419501 in this[_0x27f84b(0x1b0)][_0x1a6c6c[_0x27f84b(0x1e1)]]){if(typeof this[_0x27f84b(0x1b0)][_0x1a6c6c[_0x27f84b(0x1e1)]][_0x419501]!==_0x27f84b(0x1e2)){if(_0x1a6c6c[_0x27f84b(0x20b)]===_0x419501){logger[_0x27f84b(0x1fd)](_0x27f84b(0x1dc),_0x1a6c6c[_0x27f84b(0x1cf)],this[_0x27f84b(0x1b0)][_0x1a6c6c[_0x27f84b(0x1e1)]][_0x419501][_0x27f84b(0x23a)],_0x419501);const _0x2c2efd=moment();this[_0x27f84b(0x1b0)][_0x1a6c6c[_0x27f84b(0x1e1)]][_0x419501][_0x27f84b(0x1f7)]=!![],this[_0x27f84b(0x1b0)][_0x1a6c6c['transfereeuniqueid']][_0x419501]['agentcompleteAt']=moment()[_0x27f84b(0x233)](_0x27f84b(0x223)),this[_0x27f84b(0x1b0)][_0x1a6c6c[_0x27f84b(0x1e1)]][_0x419501][_0x27f84b(0x1e3)]=_0x27f84b(0x226),this[_0x27f84b(0x1b0)][_0x1a6c6c[_0x27f84b(0x1e1)]][_0x419501]['reason']=_0x27f84b(0x222),this[_0x27f84b(0x1b0)][_0x1a6c6c[_0x27f84b(0x1e1)]][_0x419501][_0x27f84b(0x1d8)]=_0x2c2efd[_0x27f84b(0x231)](this[_0x27f84b(0x1b0)][_0x1a6c6c[_0x27f84b(0x1e1)]][_0x419501][_0x27f84b(0x1ba)],_0x27f84b(0x1e6));}}}if(this[_0x27f84b(0x1b0)][_0x1a6c6c[_0x27f84b(0x1cd)]]){const _0x1a81e1=this[_0x27f84b(0x1b0)][_0x1a6c6c[_0x27f84b(0x1cd)]];this[_0x27f84b(0x1b0)][_0x1a6c6c[_0x27f84b(0x1cd)]]=this[_0x27f84b(0x1b0)][_0x1a6c6c[_0x27f84b(0x1e1)]],this['channels'][_0x1a6c6c[_0x27f84b(0x1e1)]]=_0x1a81e1;}}}catch(_0x235260){logger[_0x27f84b(0x1f1)]('[%s][voiceAgentReport][attendedtransfer]',_0x1a6c6c[_0x27f84b(0x1cf)],util[_0x27f84b(0x1e4)](_0x235260,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x5a73fa(0x1db)][a1263_0x5a73fa(0x20e)]=function(_0x3e5956){const _0x315927=a1263_0x5a73fa;try{if(this['isNotNull'](_0x3e5956)){logger[_0x315927(0x1c9)](_0x315927(0x21b),_0x3e5956[_0x315927(0x1cf)],util[_0x315927(0x1e4)](_0x3e5956,{'showHidden':![],'depth':null}));if(this['channels'][_0x3e5956['transfereeuniqueid']])for(const _0x586ebf in this['channels'][_0x3e5956['transfereeuniqueid']]){if(typeof this['channels'][_0x3e5956[_0x315927(0x1e1)]][_0x586ebf]!=='undefined'){if(_0x3e5956['transfereruniqueid']===_0x586ebf){logger[_0x315927(0x1fd)](_0x315927(0x1c5),_0x3e5956[_0x315927(0x1cf)],this[_0x315927(0x1b0)][_0x3e5956[_0x315927(0x1e1)]][_0x586ebf]['membername'],_0x586ebf);const _0x35f9f2=moment();this[_0x315927(0x1b0)][_0x3e5956['transfereeuniqueid']][_0x586ebf][_0x315927(0x1f7)]=!![],this['channels'][_0x3e5956[_0x315927(0x1e1)]][_0x586ebf]['agentcompleteAt']=_0x35f9f2,this[_0x315927(0x1b0)][_0x3e5956[_0x315927(0x1e1)]][_0x586ebf][_0x315927(0x1e3)]=_0x315927(0x226),this[_0x315927(0x1b0)][_0x3e5956[_0x315927(0x1e1)]][_0x586ebf]['reason']=_0x315927(0x222),this[_0x315927(0x1b0)][_0x3e5956[_0x315927(0x1e1)]][_0x586ebf]['talktime']=_0x35f9f2[_0x315927(0x231)](this[_0x315927(0x1b0)][_0x3e5956[_0x315927(0x1e1)]][_0x586ebf][_0x315927(0x1ba)],'seconds');}}}}}catch(_0x598962){logger[_0x315927(0x1f1)](_0x315927(0x1bf),_0x3e5956[_0x315927(0x1cf)],util[_0x315927(0x1e4)](_0x598962,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x5a73fa(0x1db)]['syncMusicOnHoldStart']=function(_0xa4061e){const _0x1900e5=a1263_0x5a73fa;let _0x57e285='';try{this[_0x1900e5(0x21c)](_0xa4061e)&&(logger['debug'](_0x1900e5(0x230),_0xa4061e[_0x1900e5(0x1cf)],util['inspect'](_0xa4061e,{'showHidden':![],'depth':null})),_0xa4061e[_0x1900e5(0x1bc)]&&(_0x57e285=_0xa4061e[_0x1900e5(0x1bc)][_0x1900e5(0x1c2)](0x0,_0xa4061e[_0x1900e5(0x1bc)][_0x1900e5(0x1ca)]('-')),this[_0x1900e5(0x1ec)][_0x57e285]&&(logger['info']('[%s][voiceAgentReport][musiconholdstart]\x20interface:%s',_0xa4061e[_0x1900e5(0x1cf)],_0x57e285),this[_0x1900e5(0x1ec)][_0x57e285][_0x1900e5(0x1b9)]=!![])));}catch(_0x11a82e){logger[_0x1900e5(0x1f1)](_0x1900e5(0x1da),_0xa4061e[_0x1900e5(0x1cf)],util[_0x1900e5(0x1e4)](_0x11a82e,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1263_0x5a73fa(0x1db)][a1263_0x5a73fa(0x1de)]=function(_0x28eb75){const _0x241fb3=a1263_0x5a73fa;let _0xa31df2='';try{this[_0x241fb3(0x21c)](_0x28eb75)&&(logger['debug'](_0x241fb3(0x1df),_0x28eb75[_0x241fb3(0x1cf)],util[_0x241fb3(0x1e4)](_0x28eb75,{'showHidden':![],'depth':null})),_0x28eb75[_0x241fb3(0x1bc)]&&(_0xa31df2=_0x28eb75['channel']['substring'](0x0,_0x28eb75[_0x241fb3(0x1bc)][_0x241fb3(0x1ca)]('-')),this['agents'][_0xa31df2]&&(logger[_0x241fb3(0x1fd)](_0x241fb3(0x1bb),_0x28eb75[_0x241fb3(0x1cf)],_0xa31df2),this[_0x241fb3(0x1ec)][_0xa31df2][_0x241fb3(0x1b9)]=![])));}catch(_0x4b7fef){logger[_0x241fb3(0x1f1)]('[%s][voiceAgentReport][musiconholdstop]',_0x28eb75[_0x241fb3(0x1cf)],util[_0x241fb3(0x1e4)](_0x4b7fef,{'showHidden':![],'depth':null}));}},module[a1263_0x5a73fa(0x1be)]=VoiceAgentReport; \ No newline at end of file diff --git a/server/services/ami/report/voiceCallReport.js b/server/services/ami/report/voiceCallReport.js index f040b58..5cbed3d 100644 --- a/server/services/ami/report/voiceCallReport.js +++ b/server/services/ami/report/voiceCallReport.js @@ -1 +1 @@ -const a1264_0x5c14=['cdr(','[%s][voiceCallReport][newcallerid]','syncBlindTransfer','[%s][voiceCallReport][newchannel]\x20sending\x20user:agentconnect\x20event:','callerid','syncVarSet','transfereeuniqueid','keys','billableseconds','actionCoreShowChannels','isNil','secondtransfereruniqueid','accountcode','extension','newexten','syncNewChannel','originatecalleridnum','queue','[%s][voiceCallReport][attendedtransfer]\x20event:','applicationdata','destinationchannel','[%s][voiceCallReport][hangup]\x20reason:%s','exports','syncMixMonitorFilename','calleridnum','disposition','.wav49','format','[%s][voiceCallReport][newexten]','YYYY-MM-DD\x20HH:mm:ss','[%s][voiceCallReport][blindtransfer]\x20event:','custom:voiceCallReport','syncMusicOnHoldStart','includes','[%s][voiceCallReport][hangup]\x20sending\x20user:agentcomplete\x20event:','blindTransfers','seconds','xmd-cdrtype','moment','musiconholdstop','holdtime','FAILED','answertime','appdata','transfererchannel','agents','diff','[%s][voiceCallReport][varset]\x20variable:mixmonitor_filename\x20value:%s','[%s][voiceCallReport][musiconholdstop]\x20event:','error','linkedid','starttime','variable','transfercalleridnum','[%s][voiceCallReport][varset]\x20variable:xmd-originatecalleridnum\x20value:%s','newstate','[%s][voiceCallReport][newchannel]\x20event:','push','[%s][voiceCallReport][varset]\x20variable:xmd-phone\x20value:%s','transfertargetuniqueid','pick','channels','ami','transferconnectedlinenum','value','debug','[%s][voiceCallReport][blindtransfer]\x20transfercalleridnum:%s\x20transferconnectedlinenum:%s','find','UserId','from-sip','attendedtransfer','destconnectedlinenum','syncNewExten','[%s][voiceCallReport][newexten]\x20application:%s\x20appdata:%s','[%s][voiceCallReport][attendedtransfer]','syncNewState','split','context','connectedlinename','playback','endtime','transfertargetcalleridnum','event','[%s][voiceCallReport][hangup]\x20sending\x20hangup\x20event:','[%s][voiceCallReport][newexten]\x20event:','[%s][voiceCallReport][varset]\x20variable:xmcs-queue\x20value:%s','[%s][voiceCallReport][musiconholdstart]\x20event:','monitors','[%s][voiceCallReport][varset]\x20variable:xmd-callerid-preview\x20value:%s','mixmonitor_filename','channelstate','duration','isUndefined','xmcs-queue','[%s][voiceCallReport][mixMonitorFilename]','coreshowchannel','toNumber','NO\x20ANSWER','../../../rediscache','transfereecalleridnum','[%s][voiceCallReport][varset]\x20event:','replace','[%s][voiceCallReport][hangup]','destination','membername','type','omit','newchannel','syncAttendedTransfer','toLowerCase','bind','[%s][voiceCallReport][varset]\x20variable:xmd-cdrtype\x20value:%s','../model/channel','syncMusicOnHoldStop','lodash','[voiceCallReport][coreshowchannels]\x20started','rec','OutgoingSpoolFailed','agi','newcallerid','mohstarttime','sipcalllinkedid','answered','[%s][voiceCallReport][varset]\x20variable:sipcallid\x20value:%s','application','xmd-originatecalleridnum','xmd-phone','[%s][voiceCallReport][varset]\x20variable:xmd-queue\x20value:%s','../../../config/logger','user:agentcomplete','xmd-callerid','mohtime','name','info','channel','dial','monitorFilename','exten','path','[%s][voiceCallReport][musiconholdstart]','xmd-destination','origtransfereruniqueid','inspect','origtransferercalleridnum','emit','cause-txt','xmd-callerid-preview','[%s][voiceCallReport][newstate]','calleridpreview','isNotNull','BlindTransfer','calleridname','sipcalluniqueid','ANSWERED','syncHangup','../ami','[%s][voiceCallReport][newstate]\x20linkedid:%s\x20calleridname:%s\x20calleridnum:%s','merge','[%s][voiceCallReport][newchannel]','endsWith','prototype','[%s][voiceCallReport][musiconholdstop]\x20mohtime:%s','syncNewCallerId','set','[voiceCallReport][coreshowchannels]','[%s][voiceCallReport][varset]\x20variable:xmd-destination\x20value:%s','[%s][voiceCallReport][mixMonitorFilename]\x20monitorFilename:%s','uniqueid','[%s][voiceCallReport][blindtransfer]','user:%s','util'];(function(_0x16228c,_0x320382){const _0x5c1483=function(_0x4b27fe){while(--_0x4b27fe){_0x16228c['push'](_0x16228c['shift']());}};_0x5c1483(++_0x320382);}(a1264_0x5c14,0x94));const a1264_0x4b27=function(_0x16228c,_0x320382){_0x16228c=_0x16228c-0xb1;let _0x5c1483=a1264_0x5c14[_0x16228c];return _0x5c1483;};const a1264_0x29612f=a1264_0x4b27;'use strict';const _=require(a1264_0x29612f(0x13a)),moment=require(a1264_0x29612f(0xee)),util=require(a1264_0x29612f(0xc7)),path=require(a1264_0x29612f(0x152)),logger=require(a1264_0x29612f(0x148))(a1264_0x29612f(0x106)),ami=require(a1264_0x29612f(0xb8)),Channel=require(a1264_0x29612f(0x138)),applications=['set',a1264_0x29612f(0xd9),a1264_0x29612f(0x13e),a1264_0x29612f(0x14f),a1264_0x29612f(0x117),'voicemail'],dispositions=['NO\x20ANSWER',a1264_0x29612f(0xf1),a1264_0x29612f(0xf1),a1264_0x29612f(0x129),a1264_0x29612f(0x129),'NO\x20ANSWER',a1264_0x29612f(0xb6),'BUSY','FAILED',a1264_0x29612f(0xf1),a1264_0x29612f(0xf1)],{getSocket}=require(a1264_0x29612f(0x12a)),io=getSocket();function VoiceCallReport(_0x5abb1a){const _0x201b96=a1264_0x29612f;this[_0x201b96(0x105)]=_0x5abb1a['channels'],this[_0x201b96(0xf5)]=_0x5abb1a[_0x201b96(0xf5)],this[_0x201b96(0xeb)]={},ami['on'](_0x201b96(0x127),this[_0x201b96(0x110)][_0x201b96(0x136)](this)),ami['on'](_0x201b96(0xd6),this[_0x201b96(0x110)]['bind'](this)),ami['on'](_0x201b96(0x133),this[_0x201b96(0xd7)]['bind'](this)),ami['on'](_0x201b96(0xff),this[_0x201b96(0x113)][_0x201b96(0x136)](this)),ami['on']('varset',this[_0x201b96(0xcd)]['bind'](this)),ami['on']('hangup',this[_0x201b96(0xb7)][_0x201b96(0x136)](this)),ami['on'](_0x201b96(0x13f),this[_0x201b96(0xbf)][_0x201b96(0x136)](this)),ami['on'](_0x201b96(0x10e),this[_0x201b96(0x134)][_0x201b96(0x136)](this)),ami['on']('blindtransfer',this[_0x201b96(0xca)][_0x201b96(0x136)](this)),ami['on']('musiconholdstart',this[_0x201b96(0xe8)][_0x201b96(0x136)](this)),ami['on'](_0x201b96(0xef),this[_0x201b96(0x139)][_0x201b96(0x136)](this));try{logger[_0x201b96(0x14d)](_0x201b96(0x13b)),ami[_0x201b96(0xd1)]();}catch(_0x121ee6){logger[_0x201b96(0xf9)](_0x201b96(0xc1),util[_0x201b96(0x156)](_0x121ee6,{'showHidden':![],'depth':null}));}}VoiceCallReport[a1264_0x29612f(0xbd)]['isNotNull']=function(_0x2e4471){const _0x482319=a1264_0x29612f;return _0x2e4471!==null&&!_[_0x482319(0x124)](_0x2e4471);},VoiceCallReport[a1264_0x29612f(0xbd)][a1264_0x29612f(0x158)]=function(_0x25cffb,_0x54eab4,_0x3b5b36){const _0x2c3ff3=a1264_0x29612f;io['to'](_0x25cffb)[_0x2c3ff3(0x158)](_0x54eab4,_0x3b5b36);},VoiceCallReport[a1264_0x29612f(0xbd)][a1264_0x29612f(0xbf)]=function(_0x373945){const _0x177d03=a1264_0x29612f;try{this[_0x177d03(0xb2)](_0x373945)&&(logger['info']('[%s][voiceCallReport][newcallerid]\x20calleridname:%s\x20calleridnum:%s',_0x373945[_0x177d03(0xc4)],_0x373945[_0x177d03(0xb4)],_0x373945[_0x177d03(0xe0)]),logger[_0x177d03(0x109)]('[%s][voiceCallReport][newcallerid]\x20event:',_0x373945[_0x177d03(0xc4)],util[_0x177d03(0x156)](_0x373945,{'showHidden':![],'depth':null})),_0x373945[_0x177d03(0xc4)]===_0x373945[_0x177d03(0xfa)]&&(!_['isUndefined'](this['channels'][_0x373945['uniqueid']])&&_['merge'](this[_0x177d03(0x105)][_0x373945['uniqueid']],_[_0x177d03(0x104)](_0x373945,_[_0x177d03(0xcf)](this[_0x177d03(0x105)][_0x373945['uniqueid']])))));}catch(_0x47c141){logger['error'](_0x177d03(0xc9),_0x373945[_0x177d03(0xc4)],util[_0x177d03(0x156)](_0x47c141,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1264_0x29612f(0xbd)][a1264_0x29612f(0xd7)]=function(_0x4303c8){const _0x38cc19=a1264_0x29612f;try{this[_0x38cc19(0xb2)](_0x4303c8)&&(logger[_0x38cc19(0x109)](_0x38cc19(0x100),_0x4303c8[_0x38cc19(0xc4)],util[_0x38cc19(0x156)](_0x4303c8,{'showHidden':![],'depth':null})),_0x4303c8[_0x38cc19(0xc4)]===_0x4303c8[_0x38cc19(0xfa)]&&_0x4303c8['channel']!=_0x38cc19(0x13d)&&(_['isUndefined'](this[_0x38cc19(0x105)][_0x4303c8[_0x38cc19(0xc4)]])&&(logger[_0x38cc19(0x14d)]('[%s][voiceCallReport][newchannel]\x20context:%s\x20exten:%s',_0x4303c8[_0x38cc19(0xc4)],_0x4303c8[_0x38cc19(0x115)],_0x4303c8[_0x38cc19(0x151)]),this['channels'][_0x4303c8[_0x38cc19(0xc4)]]=new Channel(),this[_0x38cc19(0x105)][_0x4303c8[_0x38cc19(0xc4)]][_0x38cc19(0xfb)]=moment()[_0x38cc19(0xe3)](_0x38cc19(0xe5)),this[_0x38cc19(0x105)][_0x4303c8[_0x38cc19(0xc4)]][_0x38cc19(0xe1)]=dispositions[_['toNumber'](_0x4303c8[_0x38cc19(0x122)])],_[_0x38cc19(0xba)](this[_0x38cc19(0x105)][_0x4303c8[_0x38cc19(0xc4)]],_[_0x38cc19(0x104)](_0x4303c8,_[_0x38cc19(0xcf)](this['channels'][_0x4303c8[_0x38cc19(0xc4)]]))),_0x4303c8[_0x38cc19(0x115)]===_0x38cc19(0x10d)&&(this['agents'][_0x4303c8[_0x38cc19(0x14e)]['split']('-')[0x0]]&&(this['agents'][_0x4303c8['channel']['split']('-')[0x0]][_0x38cc19(0x10f)]=_0x4303c8[_0x38cc19(0x151)],logger[_0x38cc19(0x109)](_0x38cc19(0xcb),_0x4303c8[_0x38cc19(0xc4)],util[_0x38cc19(0x156)]({'destaccountcode':this[_0x38cc19(0xf5)][_0x4303c8['channel'][_0x38cc19(0x114)]('-')[0x0]][_0x38cc19(0xd4)],'destconnectedlinenum':_0x4303c8[_0x38cc19(0x151)]},{'showHidden':![],'depth':null})),this[_0x38cc19(0x158)](util[_0x38cc19(0xe3)](_0x38cc19(0xc6),this['agents'][_0x4303c8[_0x38cc19(0x14e)][_0x38cc19(0x114)]('-')[0x0]][_0x38cc19(0x14c)]),'user:agentconnect',{'destaccountcode':this[_0x38cc19(0xf5)][_0x4303c8[_0x38cc19(0x14e)]['split']('-')[0x0]][_0x38cc19(0xd4)],'destconnectedlinenum':_0x4303c8[_0x38cc19(0x151)]}))))));}catch(_0x52fa6c){logger['error'](_0x38cc19(0xbb),_0x4303c8[_0x38cc19(0xc4)],util[_0x38cc19(0x156)](_0x52fa6c,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1264_0x29612f(0xbd)]['syncNewExten']=function(_0x27a524){const _0x104e22=a1264_0x29612f;try{if(this[_0x104e22(0xb2)](_0x27a524)){logger['debug'](_0x104e22(0x11c),_0x27a524[_0x104e22(0xc4)],util[_0x104e22(0x156)](_0x27a524,{'showHidden':![],'depth':null}));if(_0x27a524[_0x104e22(0xc4)]===_0x27a524[_0x104e22(0xfa)]&&_0x27a524['exten']!='h'&&_0x27a524['channel']!=_0x104e22(0x13d)){_0x27a524[_0x104e22(0x144)]=_0x27a524['application'][_0x104e22(0x135)](),_0x27a524[_0x104e22(0xdb)]=(_0x27a524[_0x104e22(0xf3)]||_0x27a524[_0x104e22(0xdb)])[_0x104e22(0x135)](),logger[_0x104e22(0x14d)](_0x104e22(0x111),_0x27a524[_0x104e22(0xc4)],_0x27a524[_0x104e22(0x144)],_0x27a524['applicationdata']);_[_0x104e22(0x124)](this[_0x104e22(0x105)][_0x27a524[_0x104e22(0xc4)]])&&(this['channels'][_0x27a524['uniqueid']]=new Channel(),this[_0x104e22(0x105)][_0x27a524['uniqueid']][_0x104e22(0xfb)]=_0x27a524['duration']?moment()['subtract'](moment[_0x104e22(0x123)](_0x27a524[_0x104e22(0x123)])[_0x104e22(0xec)](),_0x104e22(0xec))['format'](_0x104e22(0xe5)):moment()[_0x104e22(0xe3)](_0x104e22(0xe5)),this['channels'][_0x27a524[_0x104e22(0xc4)]]['disposition']=_0x104e22(0x129));_[_0x104e22(0xba)](this[_0x104e22(0x105)][_0x27a524[_0x104e22(0xc4)]],_[_0x104e22(0x104)](_0x27a524,_[_0x104e22(0xcf)](this[_0x104e22(0x105)][_0x27a524[_0x104e22(0xc4)]])));if(_[_0x104e22(0xe9)](applications,_0x27a524[_0x104e22(0x144)])){this[_0x104e22(0x105)][_0x27a524[_0x104e22(0xc4)]]['lastapplication']=_0x27a524['application'],this[_0x104e22(0x105)][_0x27a524[_0x104e22(0xc4)]]['lastdata']=_0x27a524[_0x104e22(0xdb)];if(_0x27a524[_0x104e22(0x144)]===_0x104e22(0xc0)&&_['startsWith'](_0x27a524[_0x104e22(0xdb)],_0x104e22(0xc8))){const _0x16e02d=_0x27a524[_0x104e22(0xdb)][_0x104e22(0x114)]('='),_0xb2f8a8=_0x16e02d[0x0]['match'](/cdr\((.*)\)/);_0xb2f8a8&&(this[_0x104e22(0x105)][_0x27a524['uniqueid']][_0xb2f8a8[0x1]]=_0x16e02d[0x1]);}else _0x27a524[_0x104e22(0x144)]===_0x104e22(0xd9)&&(this['channels'][_0x27a524[_0x104e22(0xc4)]][_0x104e22(0xd9)]=_0x27a524['applicationdata'][_0x104e22(0x114)](',')[0x0]);}}}}catch(_0x4127eb){logger[_0x104e22(0xf9)](_0x104e22(0xe4),_0x27a524[_0x104e22(0xc4)],util[_0x104e22(0x156)](_0x4127eb,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1264_0x29612f(0xbd)][a1264_0x29612f(0x113)]=function(_0x6faee4){const _0x3c2622=a1264_0x29612f;try{if(this[_0x3c2622(0xb2)](_0x6faee4)){logger[_0x3c2622(0x14d)](_0x3c2622(0xb9),_0x6faee4[_0x3c2622(0xc4)],_0x6faee4[_0x3c2622(0xfa)],_0x6faee4[_0x3c2622(0xb4)],_0x6faee4['calleridnum']),logger[_0x3c2622(0x109)]('[%s][voiceCallReport][newstate]\x20event:',_0x6faee4['uniqueid'],util[_0x3c2622(0x156)](_0x6faee4,{'showHidden':![],'depth':null}));if(_0x6faee4['uniqueid']!==_0x6faee4[_0x3c2622(0xfa)]){if(this[_0x3c2622(0x105)][_0x6faee4[_0x3c2622(0xfa)]]){if(_0x6faee4['channelstate']==='6'){if(!this[_0x3c2622(0x105)][_0x6faee4['linkedid']][_0x3c2622(0x142)]){const _0x5c9584=moment();this[_0x3c2622(0x105)][_0x6faee4[_0x3c2622(0xfa)]][_0x3c2622(0x142)]=!![],this['channels'][_0x6faee4[_0x3c2622(0xfa)]][_0x3c2622(0xf2)]=_0x5c9584['format']('YYYY-MM-DD\x20HH:mm:ss'),this[_0x3c2622(0x105)][_0x6faee4['linkedid']][_0x3c2622(0xfb)]&&(this[_0x3c2622(0x105)][_0x6faee4[_0x3c2622(0xfa)]][_0x3c2622(0xf0)]=_0x5c9584['diff'](this[_0x3c2622(0x105)][_0x6faee4['linkedid']][_0x3c2622(0xfb)],'seconds'));}this[_0x3c2622(0x105)][_0x6faee4[_0x3c2622(0xfa)]]['linkedid']=_0x6faee4[_0x3c2622(0xc4)],_0x6faee4[_0x3c2622(0xe0)]!=='xcally-motion-preview'&&(this[_0x3c2622(0x105)][_0x6faee4[_0x3c2622(0xfa)]]['connectedlinenum']=_0x6faee4[_0x3c2622(0xe0)]),this[_0x3c2622(0x105)][_0x6faee4['linkedid']][_0x3c2622(0x116)]=_0x6faee4[_0x3c2622(0xb4)],this[_0x3c2622(0x105)][_0x6faee4[_0x3c2622(0xfa)]][_0x3c2622(0xdc)]=_0x6faee4[_0x3c2622(0x14e)],this['channels'][_0x6faee4[_0x3c2622(0xfa)]]['disposition']=dispositions[_[_0x3c2622(0x128)](_0x6faee4[_0x3c2622(0x122)])],this[_0x3c2622(0xf5)][_0x6faee4['channel']['split']('-')[0x0]]&&(this[_0x3c2622(0x105)][_0x6faee4['linkedid']]['UserId']=this['agents'][_0x6faee4[_0x3c2622(0x14e)][_0x3c2622(0x114)]('-')[0x0]]['id'],this['channels'][_0x6faee4[_0x3c2622(0xfa)]][_0x3c2622(0x130)]=this[_0x3c2622(0xf5)][_0x6faee4[_0x3c2622(0x14e)][_0x3c2622(0x114)]('-')[0x0]]['name']);}}}else this[_0x3c2622(0x105)][_0x6faee4[_0x3c2622(0xc4)]]&&(_0x6faee4['channelstate']==='6'&&(this[_0x3c2622(0xf5)][_0x6faee4[_0x3c2622(0x14e)][_0x3c2622(0x114)]('-')[0x0]]&&(this[_0x3c2622(0x105)][_0x6faee4['uniqueid']][_0x3c2622(0x10c)]=this['agents'][_0x6faee4[_0x3c2622(0x14e)][_0x3c2622(0x114)]('-')[0x0]]['id'],this[_0x3c2622(0x105)][_0x6faee4[_0x3c2622(0xc4)]][_0x3c2622(0x130)]=this['agents'][_0x6faee4[_0x3c2622(0x14e)][_0x3c2622(0x114)]('-')[0x0]][_0x3c2622(0x14c)])));}}catch(_0x184c0f){logger[_0x3c2622(0xf9)](_0x3c2622(0x15b),_0x6faee4[_0x3c2622(0xc4)],util[_0x3c2622(0x156)](_0x184c0f,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1264_0x29612f(0xbd)]['syncMixMonitorFilename']=function(_0x308315,_0x14096d){const _0x255e11=a1264_0x29612f;try{if(this[_0x255e11(0x105)][_0x308315]){logger['info'](_0x255e11(0xc3),_0x308315,_0x14096d),this[_0x255e11(0x105)][_0x308315]['monitor']=!![];_[_0x255e11(0xbc)](_0x14096d,_0x255e11(0xe2))&&(_0x14096d=_0x14096d[_0x255e11(0x12d)](_0x255e11(0xe2),'.WAV'));this[_0x255e11(0x105)][_0x308315][_0x255e11(0x150)]=_0x14096d;const _0x11584a=_[_0x255e11(0x10b)](this[_0x255e11(0x105)][_0x308315][_0x255e11(0x11f)],{'filename':_0x14096d});_[_0x255e11(0xd2)](_0x11584a)&&this[_0x255e11(0x105)][_0x308315][_0x255e11(0x11f)][_0x255e11(0x101)]({'filename':_0x14096d,'createdAt':moment()[_0x255e11(0xe3)]('YYYY-MM-DD\x20HH:mm:ss'),'mixmonitorid':'','status':_0x255e11(0x13c)});}}catch(_0x28b9d8){logger[_0x255e11(0xf9)](_0x255e11(0x126),_0x308315,util[_0x255e11(0x156)](_0x28b9d8,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype'][a1264_0x29612f(0xcd)]=function(_0xc6f700){const _0x33f7fb=a1264_0x29612f;try{if(this['isNotNull'](_0xc6f700)){logger['debug'](_0x33f7fb(0x12c),_0xc6f700[_0x33f7fb(0xc4)],util['inspect'](_0xc6f700,{'showHidden':![],'depth':null}));if(this[_0x33f7fb(0x105)][_0xc6f700['uniqueid']]&&_0xc6f700['channel']!=_0x33f7fb(0x13d)){if(this[_0x33f7fb(0xb2)](_0xc6f700[_0x33f7fb(0xfc)])){if(this[_0x33f7fb(0xb2)](_0xc6f700[_0x33f7fb(0xfc)][_0x33f7fb(0x121)]))logger[_0x33f7fb(0x14d)](_0x33f7fb(0xf7),_0xc6f700[_0x33f7fb(0xc4)],_0xc6f700[_0x33f7fb(0x108)]),this[_0x33f7fb(0xdf)](_0xc6f700[_0x33f7fb(0xc4)],_0xc6f700[_0x33f7fb(0x108)]);else{if(this['isNotNull'](_0xc6f700['variable'][_0x33f7fb(0x146)]))logger[_0x33f7fb(0x14d)](_0x33f7fb(0x102),_0xc6f700['uniqueid'],_0xc6f700[_0x33f7fb(0x108)]),this[_0x33f7fb(0x105)][_0xc6f700[_0x33f7fb(0xc4)]][_0x33f7fb(0xe0)]=_0xc6f700[_0x33f7fb(0x108)];else{if(this[_0x33f7fb(0xb2)](_0xc6f700[_0x33f7fb(0xfc)][_0x33f7fb(0x14a)]))logger[_0x33f7fb(0x14d)]('[%s][voiceCallReport][varset]\x20variable:xmd-callerid\x20value:%s',_0xc6f700['uniqueid'],_0xc6f700[_0x33f7fb(0x108)]),this[_0x33f7fb(0x105)][_0xc6f700[_0x33f7fb(0xc4)]][_0x33f7fb(0xcc)]=_0xc6f700[_0x33f7fb(0x108)];else{if(this['isNotNull'](_0xc6f700[_0x33f7fb(0xfc)][_0x33f7fb(0xed)]))logger['info'](_0x33f7fb(0x137),_0xc6f700['uniqueid'],_0xc6f700[_0x33f7fb(0x108)]),this[_0x33f7fb(0x105)][_0xc6f700['uniqueid']]['type']=_0xc6f700['value'];else{if(this['isNotNull'](_0xc6f700[_0x33f7fb(0xfc)]['xmd-queue']))logger['info'](_0x33f7fb(0x147),_0xc6f700[_0x33f7fb(0xc4)],_0xc6f700[_0x33f7fb(0x108)]['split'](',')[0x0]),this[_0x33f7fb(0x105)][_0xc6f700[_0x33f7fb(0xc4)]]['queue']=_0xc6f700[_0x33f7fb(0x108)][_0x33f7fb(0x114)](',')[0x0];else{if(this[_0x33f7fb(0xb2)](_0xc6f700[_0x33f7fb(0xfc)][_0x33f7fb(0x145)]))logger[_0x33f7fb(0x14d)](_0x33f7fb(0xfe),_0xc6f700[_0x33f7fb(0xc4)],_0xc6f700[_0x33f7fb(0x108)]),this[_0x33f7fb(0x105)][_0xc6f700[_0x33f7fb(0xc4)]][_0x33f7fb(0xd8)]=_0xc6f700[_0x33f7fb(0x108)];else{if(this[_0x33f7fb(0xb2)](_0xc6f700['variable'][_0x33f7fb(0x154)]))logger['info'](_0x33f7fb(0xc2),_0xc6f700['uniqueid'],_0xc6f700[_0x33f7fb(0x108)]),this[_0x33f7fb(0x105)][_0xc6f700[_0x33f7fb(0xc4)]][_0x33f7fb(0x12f)]=_0xc6f700[_0x33f7fb(0x108)];else{if(this[_0x33f7fb(0xb2)](_0xc6f700[_0x33f7fb(0xfc)][_0x33f7fb(0x15a)]))logger['info'](_0x33f7fb(0x120),_0xc6f700[_0x33f7fb(0xc4)],_0xc6f700[_0x33f7fb(0x108)]),this[_0x33f7fb(0x105)][_0xc6f700['uniqueid']][_0x33f7fb(0xb1)]=_0xc6f700[_0x33f7fb(0x108)];else{if(this[_0x33f7fb(0xb2)](_0xc6f700['variable'][_0x33f7fb(0x125)]))logger[_0x33f7fb(0x14d)](_0x33f7fb(0x11d),_0xc6f700[_0x33f7fb(0xc4)],_0xc6f700['value']),this[_0x33f7fb(0x105)][_0xc6f700[_0x33f7fb(0xc4)]]['queue']=_0xc6f700['value'];else this['isNotNull'](_0xc6f700[_0x33f7fb(0xfc)]['sipcallid'])&&(logger[_0x33f7fb(0x14d)](_0x33f7fb(0x143),_0xc6f700[_0x33f7fb(0xc4)],_0xc6f700[_0x33f7fb(0x108)]),this[_0x33f7fb(0x105)][_0xc6f700[_0x33f7fb(0xc4)]][_0x33f7fb(0xb5)]=_0xc6f700[_0x33f7fb(0x108)]);}}}}}}}}}}else{if(this['isNotNull'](_0xc6f700['variable']['mixmonitor_filename'])){if(_0xc6f700[_0x33f7fb(0x108)]){const _0x26c743=path['parse'](_0xc6f700['value'])[_0x33f7fb(0x14c)];logger[_0x33f7fb(0x14d)](_0x33f7fb(0xf7),_0x26c743,_0xc6f700[_0x33f7fb(0x108)]),this[_0x33f7fb(0xdf)](_0x26c743,_0xc6f700['value']);}}else this[_0x33f7fb(0x105)][_0xc6f700[_0x33f7fb(0xfa)]]&&(this[_0x33f7fb(0xb2)](_0xc6f700[_0x33f7fb(0xfc)])&&(this[_0x33f7fb(0xb2)](_0xc6f700[_0x33f7fb(0xfc)]['sipcallid'])&&(logger['info']('[%s][voiceCallReport][varset]\x20variable:sipcallid\x20value:%s',_0xc6f700[_0x33f7fb(0xfa)],_0xc6f700[_0x33f7fb(0x108)]),this['channels'][_0xc6f700[_0x33f7fb(0xfa)]][_0x33f7fb(0x141)]=_0xc6f700[_0x33f7fb(0x108)])));}}}catch(_0x3554b7){logger['error']('[%s][voiceCallReport][varset]',_0xc6f700[_0x33f7fb(0xc4)],util[_0x33f7fb(0x156)](_0x3554b7,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype'][a1264_0x29612f(0xb7)]=function(_0x1cd571){const _0xddd689=a1264_0x29612f;try{if(this[_0xddd689(0xb2)](_0x1cd571)){logger[_0xddd689(0x109)]('[%s][voiceCallReport][hangup]\x20event:',_0x1cd571[_0xddd689(0xc4)],util[_0xddd689(0x156)](_0x1cd571,{'showHidden':![],'depth':null}));if(this[_0xddd689(0x105)][_0x1cd571[_0xddd689(0xc4)]]){logger[_0xddd689(0x14d)](_0xddd689(0xdd),_0x1cd571[_0xddd689(0xc4)],_0x1cd571[_0xddd689(0x159)]);const _0x4bcd91=moment();this[_0xddd689(0x105)][_0x1cd571['uniqueid']][_0xddd689(0x118)]=_0x4bcd91[_0xddd689(0xe3)](_0xddd689(0xe5)),this['channels'][_0x1cd571[_0xddd689(0xc4)]][_0xddd689(0x123)]=_0x4bcd91[_0xddd689(0xf6)](this[_0xddd689(0x105)][_0x1cd571[_0xddd689(0xc4)]][_0xddd689(0xfb)],'seconds'),this[_0xddd689(0x105)][_0x1cd571['uniqueid']][_0xddd689(0x142)]&&(this[_0xddd689(0x105)][_0x1cd571[_0xddd689(0xc4)]][_0xddd689(0xd0)]=_0x4bcd91[_0xddd689(0xf6)](this[_0xddd689(0x105)][_0x1cd571[_0xddd689(0xc4)]][_0xddd689(0xf2)],_0xddd689(0xec)),this[_0xddd689(0x105)][_0x1cd571[_0xddd689(0xc4)]][_0xddd689(0xf0)]=this[_0xddd689(0x105)][_0x1cd571['uniqueid']][_0xddd689(0x123)]-this[_0xddd689(0x105)][_0x1cd571['uniqueid']]['billableseconds']),_0x1cd571[_0xddd689(0x115)]==='from-sip'&&(this['agents'][_0x1cd571[_0xddd689(0x14e)][_0xddd689(0x114)]('-')[0x0]]&&(this['agents'][_0x1cd571[_0xddd689(0x14e)][_0xddd689(0x114)]('-')[0x0]]=_[_0xddd689(0x132)](this[_0xddd689(0xf5)][_0x1cd571['channel'][_0xddd689(0x114)]('-')[0x0]],['destconnectedlinenum']),logger[_0xddd689(0x109)](_0xddd689(0xea),_0x1cd571[_0xddd689(0xc4)],util['inspect']({'destaccountcode':this[_0xddd689(0xf5)][_0x1cd571[_0xddd689(0x14e)][_0xddd689(0x114)]('-')[0x0]][_0xddd689(0xd4)]},{'showHidden':![],'depth':null})),this[_0xddd689(0x158)](util[_0xddd689(0xe3)](_0xddd689(0xc6),this[_0xddd689(0xf5)][_0x1cd571['channel'][_0xddd689(0x114)]('-')[0x0]]['name']),_0xddd689(0x149),{'destaccountcode':this[_0xddd689(0xf5)][_0x1cd571[_0xddd689(0x14e)][_0xddd689(0x114)]('-')[0x0]]['accountcode']}))),_0x1cd571[_0xddd689(0x11a)]===_0xddd689(0xb3)?this[_0xddd689(0xeb)][_0x1cd571[_0xddd689(0xc4)]]=this[_0xddd689(0x105)][_0x1cd571[_0xddd689(0xc4)]]:this[_0xddd689(0x105)][_0x1cd571['uniqueid']][_0xddd689(0x131)]==='outbound'&&this['blindTransfers'][_0x1cd571[_0xddd689(0xc4)]]&&(this['channels'][_0x1cd571[_0xddd689(0xc4)]][_0xddd689(0xc4)]=[this[_0xddd689(0x105)][_0x1cd571['uniqueid']][_0xddd689(0xfa)],this['channels'][_0x1cd571[_0xddd689(0xc4)]][_0xddd689(0xfa)]=this['channels'][_0x1cd571['uniqueid']][_0xddd689(0xc4)]][0x0],delete this[_0xddd689(0xeb)][_0x1cd571[_0xddd689(0xc4)]]),logger[_0xddd689(0x109)](_0xddd689(0x11b),_0x1cd571['uniqueid'],util['inspect'](this[_0xddd689(0x105)][_0x1cd571[_0xddd689(0xc4)]],{'showHidden':![],'depth':null})),ami[_0xddd689(0x158)](_0xddd689(0xe7),this[_0xddd689(0x105)][_0x1cd571[_0xddd689(0xc4)]]),delete this[_0xddd689(0x105)][_0x1cd571[_0xddd689(0xc4)]];}}}catch(_0x46c028){logger[_0xddd689(0xf9)](_0xddd689(0x12e),_0x1cd571[_0xddd689(0xc4)],util[_0xddd689(0x156)](_0x46c028,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype']['syncAttendedTransfer']=function(_0x1fabec){const _0x3273f8=a1264_0x29612f;try{if(this[_0x3273f8(0xb2)](_0x1fabec)){logger[_0x3273f8(0x14d)]('[%s][voiceCallReport][attendedtransfer]\x20transfercalleridnum:%s\x20transferconnectedlinenum:%s',_0x1fabec[_0x3273f8(0xc4)],_0x1fabec[_0x3273f8(0x157)],_0x1fabec[_0x3273f8(0x119)]),logger[_0x3273f8(0x109)](_0x3273f8(0xda),_0x1fabec[_0x3273f8(0xc4)],util[_0x3273f8(0x156)](_0x1fabec,{'showHidden':![],'depth':null}));if(this['channels'][_0x1fabec[_0x3273f8(0xce)]]){this['channels'][_0x1fabec[_0x3273f8(0xce)]]['transfercalleridnum']=_0x1fabec[_0x3273f8(0x157)],this[_0x3273f8(0x105)][_0x1fabec['transfereeuniqueid']][_0x3273f8(0x107)]=_0x1fabec['transfertargetcalleridnum'];if(this[_0x3273f8(0x105)][_0x1fabec[_0x3273f8(0xd3)]]){const _0x4fdfba=this[_0x3273f8(0x105)][_0x1fabec[_0x3273f8(0xd3)]];this[_0x3273f8(0x105)][_0x1fabec[_0x3273f8(0xd3)]]=this[_0x3273f8(0x105)][_0x1fabec[_0x3273f8(0xce)]],this[_0x3273f8(0x105)][_0x1fabec[_0x3273f8(0xce)]]=_0x4fdfba;}}else{if(this[_0x3273f8(0x105)][_0x1fabec[_0x3273f8(0x103)]]){this['channels'][_0x1fabec[_0x3273f8(0x103)]][_0x3273f8(0xfd)]=_0x1fabec[_0x3273f8(0x157)],this[_0x3273f8(0x105)][_0x1fabec['transfertargetuniqueid']][_0x3273f8(0x107)]=_0x1fabec[_0x3273f8(0x119)];if(this[_0x3273f8(0x105)][_0x1fabec[_0x3273f8(0x155)]]){const _0x414a9b=this[_0x3273f8(0x105)][_0x1fabec['origtransfereruniqueid']];this['channels'][_0x1fabec[_0x3273f8(0x155)]]=this[_0x3273f8(0x105)][_0x1fabec[_0x3273f8(0x103)]],this[_0x3273f8(0x105)][_0x1fabec['transfertargetuniqueid']]=_0x414a9b;}}}}}catch(_0x9f2e88){logger[_0x3273f8(0xf9)](_0x3273f8(0x112),_0x1fabec['uniqueid'],util[_0x3273f8(0x156)](_0x9f2e88,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1264_0x29612f(0xbd)][a1264_0x29612f(0xca)]=function(_0x4d21b3){const _0x1bb334=a1264_0x29612f;try{this[_0x1bb334(0xb2)](_0x4d21b3)&&(logger[_0x1bb334(0x14d)](_0x1bb334(0x10a),_0x4d21b3[_0x1bb334(0xc4)],_0x4d21b3[_0x1bb334(0x12b)],_0x4d21b3[_0x1bb334(0xd5)]),logger[_0x1bb334(0x109)](_0x1bb334(0xe6),_0x4d21b3[_0x1bb334(0xc4)],util[_0x1bb334(0x156)](_0x4d21b3,{'showHidden':![],'depth':null})),this['channels'][_0x4d21b3[_0x1bb334(0xce)]]&&(this[_0x1bb334(0x105)][_0x4d21b3[_0x1bb334(0xce)]]['transfercalleridnum']=_0x4d21b3[_0x1bb334(0x12b)],this['channels'][_0x4d21b3[_0x1bb334(0xce)]]['transferconnectedlinenum']=_0x4d21b3['extension'],this[_0x1bb334(0xb7)]({'event':_0x1bb334(0xb3),'uniqueid':_0x4d21b3[_0x1bb334(0xce)],'context':_0x4d21b3[_0x1bb334(0x115)],'channel':_0x4d21b3[_0x1bb334(0xf4)]})));}catch(_0x4af3d5){logger['error'](_0x1bb334(0xc5),_0x4d21b3[_0x1bb334(0xc4)],util[_0x1bb334(0x156)](_0x4af3d5,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1264_0x29612f(0xbd)][a1264_0x29612f(0xe8)]=function(_0x293506){const _0x943fd4=a1264_0x29612f;try{this[_0x943fd4(0xb2)](_0x293506)&&(logger[_0x943fd4(0x109)](_0x943fd4(0x11e),_0x293506[_0x943fd4(0xc4)],util[_0x943fd4(0x156)](_0x293506,{'showHidden':![],'depth':null})),this[_0x943fd4(0x105)][_0x293506[_0x943fd4(0xc4)]]&&(!_[_0x943fd4(0xd2)](this[_0x943fd4(0x105)][_0x293506['uniqueid']][_0x943fd4(0xf2)])&&(this['channels'][_0x293506[_0x943fd4(0xc4)]][_0x943fd4(0x140)]=moment()[_0x943fd4(0xe3)](_0x943fd4(0xe5)),logger[_0x943fd4(0x14d)]('[%s][voiceCallReport][musiconholdstart]\x20mohstarttime:%s',_0x293506[_0x943fd4(0xc4)],this[_0x943fd4(0x105)][_0x293506[_0x943fd4(0xc4)]]['mohstarttime']))));}catch(_0x46788a){logger['error'](_0x943fd4(0x153),_0x293506['uniqueid'],util['inspect'](_0x46788a,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1264_0x29612f(0xbd)][a1264_0x29612f(0x139)]=function(_0x3a1a97){const _0x4ace4f=a1264_0x29612f;try{this[_0x4ace4f(0xb2)](_0x3a1a97)&&(logger[_0x4ace4f(0x109)](_0x4ace4f(0xf8),_0x3a1a97['uniqueid'],util[_0x4ace4f(0x156)](_0x3a1a97,{'showHidden':![],'depth':null})),this[_0x4ace4f(0x105)][_0x3a1a97[_0x4ace4f(0xc4)]]&&(!_[_0x4ace4f(0xd2)](this['channels'][_0x3a1a97[_0x4ace4f(0xc4)]][_0x4ace4f(0x140)])&&(this['channels'][_0x3a1a97['uniqueid']]['mohtime']+=moment()['milliseconds'](0x0)[_0x4ace4f(0xf6)](this[_0x4ace4f(0x105)][_0x3a1a97[_0x4ace4f(0xc4)]]['mohstarttime'],_0x4ace4f(0xec)),logger[_0x4ace4f(0x14d)](_0x4ace4f(0xbe),_0x3a1a97['uniqueid'],this[_0x4ace4f(0x105)][_0x3a1a97['uniqueid']][_0x4ace4f(0x14b)]),delete this[_0x4ace4f(0x105)][_0x3a1a97[_0x4ace4f(0xc4)]][_0x4ace4f(0x140)])));}catch(_0x5f403d){logger['error']('[%s][voiceCallReport][musiconholdstop]',_0x3a1a97[_0x4ace4f(0xc4)],util[_0x4ace4f(0x156)](_0x5f403d,{'showHidden':![],'depth':null}));}},module[a1264_0x29612f(0xde)]=VoiceCallReport; \ No newline at end of file +const a1264_0x17e7=['path','[%s][voiceCallReport][mixMonitorFilename]\x20monitorFilename:%s','split','monitorFilename','[voiceCallReport][coreshowchannels]','from-sip','[%s][voiceCallReport][varset]\x20event:','attendedtransfer','linkedid','hangup','[%s][voiceCallReport][musiconholdstop]\x20event:','agi','[%s][voiceCallReport][varset]\x20variable:xmd-callerid\x20value:%s','name','blindTransfers','merge','endtime','outbound','syncNewCallerId','duration','../model/channel','newcallerid','blindtransfer','[%s][voiceCallReport][newchannel]\x20event:','ami','[%s][voiceCallReport][musiconholdstart]\x20mohstarttime:%s','destinationchannel','milliseconds','connectedlinename','extension','[%s][voiceCallReport][newstate]\x20event:','includes','parse','bind','[%s][voiceCallReport][varset]\x20variable:xmd-cdrtype\x20value:%s','lastdata','lastapplication','origtransferercalleridnum','[%s][voiceCallReport][musiconholdstart]','[%s][voiceCallReport][newexten]\x20application:%s\x20appdata:%s','[%s][voiceCallReport][blindtransfer]\x20transfercalleridnum:%s\x20transferconnectedlinenum:%s','replace','musiconholdstop','syncBlindTransfer','monitors','transfereeuniqueid','dial','set','[%s][voiceCallReport][hangup]','subtract','inspect','transferconnectedlinenum','xmcs-queue','billableseconds','prototype','transfertargetcalleridnum','uniqueid','[%s][voiceCallReport][hangup]\x20sending\x20hangup\x20event:','UserId','holdtime','BlindTransfer','user:%s','moment','[%s][voiceCallReport][hangup]\x20event:','[%s][voiceCallReport][newcallerid]\x20event:','destconnectedlinenum','transfercalleridnum','context','xcally-motion-preview','queue','sipcallid','omit','[%s][voiceCallReport][varset]\x20variable:sipcallid\x20value:%s','[%s][voiceCallReport][newchannel]\x20sending\x20user:agentconnect\x20event:','mohstarttime','[%s][voiceCallReport][varset]','calleridnum','error','[voiceCallReport][coreshowchannels]\x20started','isUndefined','secondtransfereruniqueid','transfererchannel','type','channelstate','syncNewState','toLowerCase','agents','membername','coreshowchannel','xmd-phone','OutgoingSpoolFailed','[%s][voiceCallReport][varset]\x20variable:xmcs-queue\x20value:%s','origtransfereruniqueid','[%s][voiceCallReport][mixMonitorFilename]','mixmonitor_filename','diff','[%s][voiceCallReport][blindtransfer]\x20event:','monitor','[%s][voiceCallReport][newexten]','syncMusicOnHoldStart','channel','playback','answertime','channels','NO\x20ANSWER','answered','transfertargetuniqueid','disposition','value','pick','xmd-cdrtype','mohtime','BUSY','[%s][voiceCallReport][hangup]\x20reason:%s','isNotNull','syncNewExten','musiconholdstart','rec','isNil','YYYY-MM-DD\x20HH:mm:ss','xmd-callerid','syncNewChannel','xmd-originatecalleridnum','format','[%s][voiceCallReport][musiconholdstop]','event','[%s][voiceCallReport][varset]\x20variable:mixmonitor_filename\x20value:%s','[%s][voiceCallReport][newstate]','voicemail','exten','varset','.wav49','syncVarSet','find','syncMusicOnHoldStop','match','xmd-destination','[%s][voiceCallReport][newexten]\x20event:','applicationdata','user:agentcomplete','accountcode','lodash','ANSWERED','xmd-queue','calleridpreview','starttime','application','syncAttendedTransfer','FAILED','emit','[%s][voiceCallReport][varset]\x20variable:xmd-phone\x20value:%s','newexten','xmd-callerid-preview','debug','seconds','[%s][voiceCallReport][newchannel]','keys','endsWith','cause-txt','toNumber','exports','calleridname','variable','[%s][voiceCallReport][varset]\x20variable:xmd-queue\x20value:%s','[%s][voiceCallReport][musiconholdstart]\x20event:','sipcalllinkedid','syncMixMonitorFilename','syncHangup','[%s][voiceCallReport][attendedtransfer]','info','../../../config/logger'];(function(_0x4e52ff,_0x55b612){const _0x17e71d=function(_0x2a260e){while(--_0x2a260e){_0x4e52ff['push'](_0x4e52ff['shift']());}};_0x17e71d(++_0x55b612);}(a1264_0x17e7,0xd9));const a1264_0x2a26=function(_0x4e52ff,_0x55b612){_0x4e52ff=_0x4e52ff-0x1a4;let _0x17e71d=a1264_0x17e7[_0x4e52ff];return _0x17e71d;};const a1264_0x23cc1f=a1264_0x2a26;'use strict';const _=require(a1264_0x23cc1f(0x203)),moment=require(a1264_0x23cc1f(0x1b4)),util=require('util'),path=require(a1264_0x23cc1f(0x221)),logger=require(a1264_0x23cc1f(0x220))(a1264_0x23cc1f(0x239)),ami=require('../ami'),Channel=require(a1264_0x23cc1f(0x235)),applications=[a1264_0x23cc1f(0x1a5),'queue',a1264_0x23cc1f(0x22c),a1264_0x23cc1f(0x1a4),a1264_0x23cc1f(0x1db),a1264_0x23cc1f(0x1f6)],dispositions=[a1264_0x23cc1f(0x1de),a1264_0x23cc1f(0x20a),a1264_0x23cc1f(0x20a),a1264_0x23cc1f(0x1de),a1264_0x23cc1f(0x1de),a1264_0x23cc1f(0x1de),a1264_0x23cc1f(0x204),a1264_0x23cc1f(0x1e6),'FAILED',a1264_0x23cc1f(0x20a),'FAILED'],{getSocket}=require('../../../rediscache'),io=getSocket();function VoiceCallReport(_0x2a6de0){const _0x335578=a1264_0x23cc1f;this['channels']=_0x2a6de0[_0x335578(0x1dd)],this[_0x335578(0x1cc)]=_0x2a6de0['agents'],this[_0x335578(0x22f)]={},ami['on'](_0x335578(0x1ce),this[_0x335578(0x1e9)][_0x335578(0x242)](this)),ami['on'](_0x335578(0x20d),this['syncNewExten'][_0x335578(0x242)](this)),ami['on']('newchannel',this[_0x335578(0x1ef)][_0x335578(0x242)](this)),ami['on']('newstate',this[_0x335578(0x1ca)][_0x335578(0x242)](this)),ami['on'](_0x335578(0x1f8),this[_0x335578(0x1fa)][_0x335578(0x242)](this)),ami['on'](_0x335578(0x22a),this['syncHangup'][_0x335578(0x242)](this)),ami['on'](_0x335578(0x236),this[_0x335578(0x233)][_0x335578(0x242)](this)),ami['on'](_0x335578(0x228),this['syncAttendedTransfer'][_0x335578(0x242)](this)),ami['on'](_0x335578(0x237),this[_0x335578(0x24c)][_0x335578(0x242)](this)),ami['on'](_0x335578(0x1ea),this[_0x335578(0x1d9)]['bind'](this)),ami['on'](_0x335578(0x24b),this['syncMusicOnHoldStop'][_0x335578(0x242)](this));try{logger[_0x335578(0x21f)](_0x335578(0x1c4)),ami['actionCoreShowChannels']();}catch(_0x435958){logger['error'](_0x335578(0x225),util[_0x335578(0x1a8)](_0x435958,{'showHidden':![],'depth':null}));}}VoiceCallReport[a1264_0x23cc1f(0x1ac)][a1264_0x23cc1f(0x1e8)]=function(_0x9f7185){return _0x9f7185!==null&&!_['isUndefined'](_0x9f7185);},VoiceCallReport[a1264_0x23cc1f(0x1ac)][a1264_0x23cc1f(0x20b)]=function(_0x1c6516,_0x3878d8,_0x5003b8){io['to'](_0x1c6516)['emit'](_0x3878d8,_0x5003b8);},VoiceCallReport[a1264_0x23cc1f(0x1ac)][a1264_0x23cc1f(0x233)]=function(_0x315f50){const _0x4590c7=a1264_0x23cc1f;try{this[_0x4590c7(0x1e8)](_0x315f50)&&(logger['info']('[%s][voiceCallReport][newcallerid]\x20calleridname:%s\x20calleridnum:%s',_0x315f50[_0x4590c7(0x1ae)],_0x315f50[_0x4590c7(0x217)],_0x315f50['calleridnum']),logger[_0x4590c7(0x20f)](_0x4590c7(0x1b6),_0x315f50['uniqueid'],util[_0x4590c7(0x1a8)](_0x315f50,{'showHidden':![],'depth':null})),_0x315f50['uniqueid']===_0x315f50[_0x4590c7(0x229)]&&(!_['isUndefined'](this['channels'][_0x315f50['uniqueid']])&&_[_0x4590c7(0x230)](this['channels'][_0x315f50['uniqueid']],_['pick'](_0x315f50,_['keys'](this['channels'][_0x315f50['uniqueid']])))));}catch(_0x36a215){logger['error']('[%s][voiceCallReport][newcallerid]',_0x315f50[_0x4590c7(0x1ae)],util[_0x4590c7(0x1a8)](_0x36a215,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1264_0x23cc1f(0x1ac)][a1264_0x23cc1f(0x1ef)]=function(_0x4c820e){const _0x5231a3=a1264_0x23cc1f;try{this[_0x5231a3(0x1e8)](_0x4c820e)&&(logger[_0x5231a3(0x20f)](_0x5231a3(0x238),_0x4c820e[_0x5231a3(0x1ae)],util['inspect'](_0x4c820e,{'showHidden':![],'depth':null})),_0x4c820e[_0x5231a3(0x1ae)]===_0x4c820e[_0x5231a3(0x229)]&&_0x4c820e['channel']!=_0x5231a3(0x1d0)&&(_[_0x5231a3(0x1c5)](this['channels'][_0x4c820e[_0x5231a3(0x1ae)]])&&(logger[_0x5231a3(0x21f)]('[%s][voiceCallReport][newchannel]\x20context:%s\x20exten:%s',_0x4c820e['uniqueid'],_0x4c820e['context'],_0x4c820e[_0x5231a3(0x1f7)]),this[_0x5231a3(0x1dd)][_0x4c820e[_0x5231a3(0x1ae)]]=new Channel(),this[_0x5231a3(0x1dd)][_0x4c820e[_0x5231a3(0x1ae)]][_0x5231a3(0x207)]=moment()[_0x5231a3(0x1f1)](_0x5231a3(0x1ed)),this[_0x5231a3(0x1dd)][_0x4c820e[_0x5231a3(0x1ae)]][_0x5231a3(0x1e1)]=dispositions[_['toNumber'](_0x4c820e[_0x5231a3(0x1c9)])],_['merge'](this[_0x5231a3(0x1dd)][_0x4c820e[_0x5231a3(0x1ae)]],_['pick'](_0x4c820e,_[_0x5231a3(0x212)](this[_0x5231a3(0x1dd)][_0x4c820e['uniqueid']]))),_0x4c820e[_0x5231a3(0x1b9)]===_0x5231a3(0x226)&&(this[_0x5231a3(0x1cc)][_0x4c820e[_0x5231a3(0x1da)][_0x5231a3(0x223)]('-')[0x0]]&&(this[_0x5231a3(0x1cc)][_0x4c820e['channel'][_0x5231a3(0x223)]('-')[0x0]][_0x5231a3(0x1b7)]=_0x4c820e['exten'],logger[_0x5231a3(0x20f)](_0x5231a3(0x1bf),_0x4c820e[_0x5231a3(0x1ae)],util[_0x5231a3(0x1a8)]({'destaccountcode':this[_0x5231a3(0x1cc)][_0x4c820e[_0x5231a3(0x1da)][_0x5231a3(0x223)]('-')[0x0]]['accountcode'],'destconnectedlinenum':_0x4c820e[_0x5231a3(0x1f7)]},{'showHidden':![],'depth':null})),this[_0x5231a3(0x20b)](util['format']('user:%s',this['agents'][_0x4c820e[_0x5231a3(0x1da)]['split']('-')[0x0]][_0x5231a3(0x22e)]),'user:agentconnect',{'destaccountcode':this[_0x5231a3(0x1cc)][_0x4c820e[_0x5231a3(0x1da)][_0x5231a3(0x223)]('-')[0x0]][_0x5231a3(0x202)],'destconnectedlinenum':_0x4c820e['exten']}))))));}catch(_0xba8620){logger['error'](_0x5231a3(0x211),_0x4c820e[_0x5231a3(0x1ae)],util[_0x5231a3(0x1a8)](_0xba8620,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1264_0x23cc1f(0x1ac)][a1264_0x23cc1f(0x1e9)]=function(_0x25f7ef){const _0x2cf782=a1264_0x23cc1f;try{if(this[_0x2cf782(0x1e8)](_0x25f7ef)){logger[_0x2cf782(0x20f)](_0x2cf782(0x1ff),_0x25f7ef[_0x2cf782(0x1ae)],util[_0x2cf782(0x1a8)](_0x25f7ef,{'showHidden':![],'depth':null}));if(_0x25f7ef[_0x2cf782(0x1ae)]===_0x25f7ef[_0x2cf782(0x229)]&&_0x25f7ef[_0x2cf782(0x1f7)]!='h'&&_0x25f7ef[_0x2cf782(0x1da)]!=_0x2cf782(0x1d0)){_0x25f7ef['application']=_0x25f7ef[_0x2cf782(0x208)][_0x2cf782(0x1cb)](),_0x25f7ef[_0x2cf782(0x200)]=(_0x25f7ef['appdata']||_0x25f7ef[_0x2cf782(0x200)])[_0x2cf782(0x1cb)](),logger[_0x2cf782(0x21f)](_0x2cf782(0x248),_0x25f7ef['uniqueid'],_0x25f7ef[_0x2cf782(0x208)],_0x25f7ef[_0x2cf782(0x200)]);_[_0x2cf782(0x1c5)](this[_0x2cf782(0x1dd)][_0x25f7ef[_0x2cf782(0x1ae)]])&&(this[_0x2cf782(0x1dd)][_0x25f7ef[_0x2cf782(0x1ae)]]=new Channel(),this[_0x2cf782(0x1dd)][_0x25f7ef[_0x2cf782(0x1ae)]][_0x2cf782(0x207)]=_0x25f7ef[_0x2cf782(0x234)]?moment()[_0x2cf782(0x1a7)](moment['duration'](_0x25f7ef['duration'])[_0x2cf782(0x210)](),'seconds')[_0x2cf782(0x1f1)]('YYYY-MM-DD\x20HH:mm:ss'):moment()[_0x2cf782(0x1f1)](_0x2cf782(0x1ed)),this[_0x2cf782(0x1dd)][_0x25f7ef[_0x2cf782(0x1ae)]][_0x2cf782(0x1e1)]='NO\x20ANSWER');_[_0x2cf782(0x230)](this['channels'][_0x25f7ef[_0x2cf782(0x1ae)]],_[_0x2cf782(0x1e3)](_0x25f7ef,_[_0x2cf782(0x212)](this[_0x2cf782(0x1dd)][_0x25f7ef['uniqueid']])));if(_[_0x2cf782(0x240)](applications,_0x25f7ef[_0x2cf782(0x208)])){this[_0x2cf782(0x1dd)][_0x25f7ef['uniqueid']][_0x2cf782(0x245)]=_0x25f7ef[_0x2cf782(0x208)],this[_0x2cf782(0x1dd)][_0x25f7ef[_0x2cf782(0x1ae)]][_0x2cf782(0x244)]=_0x25f7ef['applicationdata'];if(_0x25f7ef[_0x2cf782(0x208)]===_0x2cf782(0x1a5)&&_['startsWith'](_0x25f7ef['applicationdata'],'cdr(')){const _0x33a2e6=_0x25f7ef[_0x2cf782(0x200)]['split']('='),_0x68a3ab=_0x33a2e6[0x0][_0x2cf782(0x1fd)](/cdr\((.*)\)/);_0x68a3ab&&(this[_0x2cf782(0x1dd)][_0x25f7ef[_0x2cf782(0x1ae)]][_0x68a3ab[0x1]]=_0x33a2e6[0x1]);}else _0x25f7ef[_0x2cf782(0x208)]===_0x2cf782(0x1bb)&&(this['channels'][_0x25f7ef[_0x2cf782(0x1ae)]]['queue']=_0x25f7ef[_0x2cf782(0x200)]['split'](',')[0x0]);}}}}catch(_0x31b2ca){logger[_0x2cf782(0x1c3)](_0x2cf782(0x1d8),_0x25f7ef[_0x2cf782(0x1ae)],util[_0x2cf782(0x1a8)](_0x31b2ca,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1264_0x23cc1f(0x1ac)][a1264_0x23cc1f(0x1ca)]=function(_0x52f66c){const _0x1cb73d=a1264_0x23cc1f;try{if(this[_0x1cb73d(0x1e8)](_0x52f66c)){logger[_0x1cb73d(0x21f)]('[%s][voiceCallReport][newstate]\x20linkedid:%s\x20calleridname:%s\x20calleridnum:%s',_0x52f66c[_0x1cb73d(0x1ae)],_0x52f66c['linkedid'],_0x52f66c[_0x1cb73d(0x217)],_0x52f66c['calleridnum']),logger[_0x1cb73d(0x20f)](_0x1cb73d(0x23f),_0x52f66c[_0x1cb73d(0x1ae)],util['inspect'](_0x52f66c,{'showHidden':![],'depth':null}));if(_0x52f66c[_0x1cb73d(0x1ae)]!==_0x52f66c[_0x1cb73d(0x229)]){if(this[_0x1cb73d(0x1dd)][_0x52f66c[_0x1cb73d(0x229)]]){if(_0x52f66c[_0x1cb73d(0x1c9)]==='6'){if(!this[_0x1cb73d(0x1dd)][_0x52f66c[_0x1cb73d(0x229)]][_0x1cb73d(0x1df)]){const _0x1adbfc=moment();this['channels'][_0x52f66c[_0x1cb73d(0x229)]][_0x1cb73d(0x1df)]=!![],this['channels'][_0x52f66c[_0x1cb73d(0x229)]][_0x1cb73d(0x1dc)]=_0x1adbfc[_0x1cb73d(0x1f1)](_0x1cb73d(0x1ed)),this[_0x1cb73d(0x1dd)][_0x52f66c[_0x1cb73d(0x229)]][_0x1cb73d(0x207)]&&(this[_0x1cb73d(0x1dd)][_0x52f66c['linkedid']]['holdtime']=_0x1adbfc[_0x1cb73d(0x1d5)](this[_0x1cb73d(0x1dd)][_0x52f66c[_0x1cb73d(0x229)]][_0x1cb73d(0x207)],_0x1cb73d(0x210)));}this[_0x1cb73d(0x1dd)][_0x52f66c[_0x1cb73d(0x229)]][_0x1cb73d(0x229)]=_0x52f66c[_0x1cb73d(0x1ae)],_0x52f66c[_0x1cb73d(0x1c2)]!==_0x1cb73d(0x1ba)&&(this['channels'][_0x52f66c[_0x1cb73d(0x229)]]['connectedlinenum']=_0x52f66c['calleridnum']),this[_0x1cb73d(0x1dd)][_0x52f66c[_0x1cb73d(0x229)]][_0x1cb73d(0x23d)]=_0x52f66c[_0x1cb73d(0x217)],this[_0x1cb73d(0x1dd)][_0x52f66c[_0x1cb73d(0x229)]][_0x1cb73d(0x23b)]=_0x52f66c['channel'],this[_0x1cb73d(0x1dd)][_0x52f66c[_0x1cb73d(0x229)]][_0x1cb73d(0x1e1)]=dispositions[_[_0x1cb73d(0x215)](_0x52f66c[_0x1cb73d(0x1c9)])],this['agents'][_0x52f66c[_0x1cb73d(0x1da)][_0x1cb73d(0x223)]('-')[0x0]]&&(this[_0x1cb73d(0x1dd)][_0x52f66c[_0x1cb73d(0x229)]][_0x1cb73d(0x1b0)]=this['agents'][_0x52f66c['channel'][_0x1cb73d(0x223)]('-')[0x0]]['id'],this[_0x1cb73d(0x1dd)][_0x52f66c[_0x1cb73d(0x229)]]['membername']=this['agents'][_0x52f66c['channel']['split']('-')[0x0]][_0x1cb73d(0x22e)]);}}}else this[_0x1cb73d(0x1dd)][_0x52f66c[_0x1cb73d(0x1ae)]]&&(_0x52f66c[_0x1cb73d(0x1c9)]==='6'&&(this['agents'][_0x52f66c[_0x1cb73d(0x1da)][_0x1cb73d(0x223)]('-')[0x0]]&&(this[_0x1cb73d(0x1dd)][_0x52f66c[_0x1cb73d(0x1ae)]][_0x1cb73d(0x1b0)]=this[_0x1cb73d(0x1cc)][_0x52f66c['channel']['split']('-')[0x0]]['id'],this[_0x1cb73d(0x1dd)][_0x52f66c[_0x1cb73d(0x1ae)]][_0x1cb73d(0x1cd)]=this['agents'][_0x52f66c['channel'][_0x1cb73d(0x223)]('-')[0x0]][_0x1cb73d(0x22e)])));}}catch(_0x408c08){logger['error'](_0x1cb73d(0x1f5),_0x52f66c['uniqueid'],util['inspect'](_0x408c08,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1264_0x23cc1f(0x1ac)][a1264_0x23cc1f(0x21c)]=function(_0x184a93,_0x4ab958){const _0x18da95=a1264_0x23cc1f;try{if(this['channels'][_0x184a93]){logger[_0x18da95(0x21f)](_0x18da95(0x222),_0x184a93,_0x4ab958),this[_0x18da95(0x1dd)][_0x184a93][_0x18da95(0x1d7)]=!![];_[_0x18da95(0x213)](_0x4ab958,_0x18da95(0x1f9))&&(_0x4ab958=_0x4ab958[_0x18da95(0x24a)]('.wav49','.WAV'));this[_0x18da95(0x1dd)][_0x184a93][_0x18da95(0x224)]=_0x4ab958;const _0x5142e0=_[_0x18da95(0x1fb)](this[_0x18da95(0x1dd)][_0x184a93][_0x18da95(0x24d)],{'filename':_0x4ab958});_[_0x18da95(0x1ec)](_0x5142e0)&&this[_0x18da95(0x1dd)][_0x184a93][_0x18da95(0x24d)]['push']({'filename':_0x4ab958,'createdAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'mixmonitorid':'','status':_0x18da95(0x1eb)});}}catch(_0xd716b5){logger[_0x18da95(0x1c3)](_0x18da95(0x1d3),_0x184a93,util[_0x18da95(0x1a8)](_0xd716b5,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1264_0x23cc1f(0x1ac)][a1264_0x23cc1f(0x1fa)]=function(_0x5434f5){const _0x5257b7=a1264_0x23cc1f;try{if(this[_0x5257b7(0x1e8)](_0x5434f5)){logger[_0x5257b7(0x20f)](_0x5257b7(0x227),_0x5434f5[_0x5257b7(0x1ae)],util[_0x5257b7(0x1a8)](_0x5434f5,{'showHidden':![],'depth':null}));if(this[_0x5257b7(0x1dd)][_0x5434f5[_0x5257b7(0x1ae)]]&&_0x5434f5[_0x5257b7(0x1da)]!=_0x5257b7(0x1d0)){if(this[_0x5257b7(0x1e8)](_0x5434f5['variable'])){if(this['isNotNull'](_0x5434f5[_0x5257b7(0x218)][_0x5257b7(0x1d4)]))logger[_0x5257b7(0x21f)]('[%s][voiceCallReport][varset]\x20variable:mixmonitor_filename\x20value:%s',_0x5434f5[_0x5257b7(0x1ae)],_0x5434f5['value']),this['syncMixMonitorFilename'](_0x5434f5[_0x5257b7(0x1ae)],_0x5434f5['value']);else{if(this[_0x5257b7(0x1e8)](_0x5434f5[_0x5257b7(0x218)][_0x5257b7(0x1cf)]))logger['info'](_0x5257b7(0x20c),_0x5434f5[_0x5257b7(0x1ae)],_0x5434f5[_0x5257b7(0x1e2)]),this['channels'][_0x5434f5[_0x5257b7(0x1ae)]][_0x5257b7(0x1c2)]=_0x5434f5[_0x5257b7(0x1e2)];else{if(this[_0x5257b7(0x1e8)](_0x5434f5[_0x5257b7(0x218)][_0x5257b7(0x1ee)]))logger[_0x5257b7(0x21f)](_0x5257b7(0x22d),_0x5434f5[_0x5257b7(0x1ae)],_0x5434f5['value']),this[_0x5257b7(0x1dd)][_0x5434f5[_0x5257b7(0x1ae)]]['callerid']=_0x5434f5[_0x5257b7(0x1e2)];else{if(this[_0x5257b7(0x1e8)](_0x5434f5[_0x5257b7(0x218)][_0x5257b7(0x1e4)]))logger[_0x5257b7(0x21f)](_0x5257b7(0x243),_0x5434f5[_0x5257b7(0x1ae)],_0x5434f5[_0x5257b7(0x1e2)]),this[_0x5257b7(0x1dd)][_0x5434f5['uniqueid']][_0x5257b7(0x1c8)]=_0x5434f5['value'];else{if(this[_0x5257b7(0x1e8)](_0x5434f5[_0x5257b7(0x218)][_0x5257b7(0x205)]))logger['info'](_0x5257b7(0x219),_0x5434f5[_0x5257b7(0x1ae)],_0x5434f5[_0x5257b7(0x1e2)]['split'](',')[0x0]),this[_0x5257b7(0x1dd)][_0x5434f5[_0x5257b7(0x1ae)]]['queue']=_0x5434f5[_0x5257b7(0x1e2)][_0x5257b7(0x223)](',')[0x0];else{if(this[_0x5257b7(0x1e8)](_0x5434f5[_0x5257b7(0x218)][_0x5257b7(0x1f0)]))logger[_0x5257b7(0x21f)]('[%s][voiceCallReport][varset]\x20variable:xmd-originatecalleridnum\x20value:%s',_0x5434f5[_0x5257b7(0x1ae)],_0x5434f5[_0x5257b7(0x1e2)]),this['channels'][_0x5434f5[_0x5257b7(0x1ae)]]['originatecalleridnum']=_0x5434f5[_0x5257b7(0x1e2)];else{if(this[_0x5257b7(0x1e8)](_0x5434f5[_0x5257b7(0x218)][_0x5257b7(0x1fe)]))logger[_0x5257b7(0x21f)]('[%s][voiceCallReport][varset]\x20variable:xmd-destination\x20value:%s',_0x5434f5['uniqueid'],_0x5434f5[_0x5257b7(0x1e2)]),this[_0x5257b7(0x1dd)][_0x5434f5[_0x5257b7(0x1ae)]]['destination']=_0x5434f5[_0x5257b7(0x1e2)];else{if(this['isNotNull'](_0x5434f5[_0x5257b7(0x218)][_0x5257b7(0x20e)]))logger['info']('[%s][voiceCallReport][varset]\x20variable:xmd-callerid-preview\x20value:%s',_0x5434f5[_0x5257b7(0x1ae)],_0x5434f5[_0x5257b7(0x1e2)]),this[_0x5257b7(0x1dd)][_0x5434f5[_0x5257b7(0x1ae)]][_0x5257b7(0x206)]=_0x5434f5[_0x5257b7(0x1e2)];else{if(this[_0x5257b7(0x1e8)](_0x5434f5[_0x5257b7(0x218)][_0x5257b7(0x1aa)]))logger['info'](_0x5257b7(0x1d1),_0x5434f5[_0x5257b7(0x1ae)],_0x5434f5[_0x5257b7(0x1e2)]),this['channels'][_0x5434f5['uniqueid']][_0x5257b7(0x1bb)]=_0x5434f5[_0x5257b7(0x1e2)];else this[_0x5257b7(0x1e8)](_0x5434f5['variable'][_0x5257b7(0x1bc)])&&(logger[_0x5257b7(0x21f)]('[%s][voiceCallReport][varset]\x20variable:sipcallid\x20value:%s',_0x5434f5['uniqueid'],_0x5434f5[_0x5257b7(0x1e2)]),this[_0x5257b7(0x1dd)][_0x5434f5[_0x5257b7(0x1ae)]]['sipcalluniqueid']=_0x5434f5[_0x5257b7(0x1e2)]);}}}}}}}}}}else{if(this[_0x5257b7(0x1e8)](_0x5434f5[_0x5257b7(0x218)][_0x5257b7(0x1d4)])){if(_0x5434f5['value']){const _0x31b3cf=path[_0x5257b7(0x241)](_0x5434f5['value'])[_0x5257b7(0x22e)];logger[_0x5257b7(0x21f)](_0x5257b7(0x1f4),_0x31b3cf,_0x5434f5[_0x5257b7(0x1e2)]),this['syncMixMonitorFilename'](_0x31b3cf,_0x5434f5[_0x5257b7(0x1e2)]);}}else this[_0x5257b7(0x1dd)][_0x5434f5['linkedid']]&&(this[_0x5257b7(0x1e8)](_0x5434f5[_0x5257b7(0x218)])&&(this[_0x5257b7(0x1e8)](_0x5434f5[_0x5257b7(0x218)][_0x5257b7(0x1bc)])&&(logger['info'](_0x5257b7(0x1be),_0x5434f5['linkedid'],_0x5434f5[_0x5257b7(0x1e2)]),this['channels'][_0x5434f5['linkedid']][_0x5257b7(0x21b)]=_0x5434f5[_0x5257b7(0x1e2)])));}}}catch(_0x127bd7){logger[_0x5257b7(0x1c3)](_0x5257b7(0x1c1),_0x5434f5[_0x5257b7(0x1ae)],util[_0x5257b7(0x1a8)](_0x127bd7,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1264_0x23cc1f(0x1ac)][a1264_0x23cc1f(0x21d)]=function(_0x45a272){const _0x45281a=a1264_0x23cc1f;try{if(this[_0x45281a(0x1e8)](_0x45a272)){logger['debug'](_0x45281a(0x1b5),_0x45a272[_0x45281a(0x1ae)],util[_0x45281a(0x1a8)](_0x45a272,{'showHidden':![],'depth':null}));if(this['channels'][_0x45a272[_0x45281a(0x1ae)]]){logger[_0x45281a(0x21f)](_0x45281a(0x1e7),_0x45a272[_0x45281a(0x1ae)],_0x45a272[_0x45281a(0x214)]);const _0xa049bb=moment();this[_0x45281a(0x1dd)][_0x45a272[_0x45281a(0x1ae)]][_0x45281a(0x231)]=_0xa049bb[_0x45281a(0x1f1)]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x45281a(0x1dd)][_0x45a272[_0x45281a(0x1ae)]][_0x45281a(0x234)]=_0xa049bb[_0x45281a(0x1d5)](this[_0x45281a(0x1dd)][_0x45a272['uniqueid']][_0x45281a(0x207)],'seconds'),this['channels'][_0x45a272[_0x45281a(0x1ae)]]['answered']&&(this['channels'][_0x45a272[_0x45281a(0x1ae)]][_0x45281a(0x1ab)]=_0xa049bb[_0x45281a(0x1d5)](this[_0x45281a(0x1dd)][_0x45a272['uniqueid']][_0x45281a(0x1dc)],'seconds'),this['channels'][_0x45a272['uniqueid']][_0x45281a(0x1b1)]=this['channels'][_0x45a272[_0x45281a(0x1ae)]]['duration']-this[_0x45281a(0x1dd)][_0x45a272[_0x45281a(0x1ae)]][_0x45281a(0x1ab)]),_0x45a272[_0x45281a(0x1b9)]===_0x45281a(0x226)&&(this[_0x45281a(0x1cc)][_0x45a272['channel'][_0x45281a(0x223)]('-')[0x0]]&&(this[_0x45281a(0x1cc)][_0x45a272[_0x45281a(0x1da)]['split']('-')[0x0]]=_[_0x45281a(0x1bd)](this['agents'][_0x45a272[_0x45281a(0x1da)][_0x45281a(0x223)]('-')[0x0]],['destconnectedlinenum']),logger[_0x45281a(0x20f)]('[%s][voiceCallReport][hangup]\x20sending\x20user:agentcomplete\x20event:',_0x45a272['uniqueid'],util['inspect']({'destaccountcode':this[_0x45281a(0x1cc)][_0x45a272[_0x45281a(0x1da)]['split']('-')[0x0]]['accountcode']},{'showHidden':![],'depth':null})),this[_0x45281a(0x20b)](util['format'](_0x45281a(0x1b3),this[_0x45281a(0x1cc)][_0x45a272[_0x45281a(0x1da)][_0x45281a(0x223)]('-')[0x0]][_0x45281a(0x22e)]),_0x45281a(0x201),{'destaccountcode':this[_0x45281a(0x1cc)][_0x45a272[_0x45281a(0x1da)][_0x45281a(0x223)]('-')[0x0]]['accountcode']}))),_0x45a272[_0x45281a(0x1f3)]===_0x45281a(0x1b2)?this[_0x45281a(0x22f)][_0x45a272[_0x45281a(0x1ae)]]=this[_0x45281a(0x1dd)][_0x45a272[_0x45281a(0x1ae)]]:this[_0x45281a(0x1dd)][_0x45a272[_0x45281a(0x1ae)]]['type']===_0x45281a(0x232)&&this['blindTransfers'][_0x45a272[_0x45281a(0x1ae)]]&&(this[_0x45281a(0x1dd)][_0x45a272[_0x45281a(0x1ae)]]['uniqueid']=[this[_0x45281a(0x1dd)][_0x45a272[_0x45281a(0x1ae)]][_0x45281a(0x229)],this[_0x45281a(0x1dd)][_0x45a272[_0x45281a(0x1ae)]][_0x45281a(0x229)]=this[_0x45281a(0x1dd)][_0x45a272['uniqueid']][_0x45281a(0x1ae)]][0x0],delete this[_0x45281a(0x22f)][_0x45a272[_0x45281a(0x1ae)]]),logger[_0x45281a(0x20f)](_0x45281a(0x1af),_0x45a272[_0x45281a(0x1ae)],util[_0x45281a(0x1a8)](this[_0x45281a(0x1dd)][_0x45a272['uniqueid']],{'showHidden':![],'depth':null})),ami[_0x45281a(0x20b)]('custom:voiceCallReport',this[_0x45281a(0x1dd)][_0x45a272['uniqueid']]),delete this[_0x45281a(0x1dd)][_0x45a272[_0x45281a(0x1ae)]];}}}catch(_0x93da91){logger[_0x45281a(0x1c3)](_0x45281a(0x1a6),_0x45a272[_0x45281a(0x1ae)],util[_0x45281a(0x1a8)](_0x93da91,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1264_0x23cc1f(0x1ac)][a1264_0x23cc1f(0x209)]=function(_0x3a27d7){const _0x250b9e=a1264_0x23cc1f;try{if(this[_0x250b9e(0x1e8)](_0x3a27d7)){logger[_0x250b9e(0x21f)]('[%s][voiceCallReport][attendedtransfer]\x20transfercalleridnum:%s\x20transferconnectedlinenum:%s',_0x3a27d7[_0x250b9e(0x1ae)],_0x3a27d7[_0x250b9e(0x246)],_0x3a27d7[_0x250b9e(0x1ad)]),logger['debug']('[%s][voiceCallReport][attendedtransfer]\x20event:',_0x3a27d7[_0x250b9e(0x1ae)],util[_0x250b9e(0x1a8)](_0x3a27d7,{'showHidden':![],'depth':null}));if(this[_0x250b9e(0x1dd)][_0x3a27d7[_0x250b9e(0x24e)]]){this[_0x250b9e(0x1dd)][_0x3a27d7[_0x250b9e(0x24e)]][_0x250b9e(0x1b8)]=_0x3a27d7[_0x250b9e(0x246)],this[_0x250b9e(0x1dd)][_0x3a27d7[_0x250b9e(0x24e)]][_0x250b9e(0x1a9)]=_0x3a27d7[_0x250b9e(0x1ad)];if(this[_0x250b9e(0x1dd)][_0x3a27d7['secondtransfereruniqueid']]){const _0x5df614=this[_0x250b9e(0x1dd)][_0x3a27d7[_0x250b9e(0x1c6)]];this['channels'][_0x3a27d7['secondtransfereruniqueid']]=this[_0x250b9e(0x1dd)][_0x3a27d7[_0x250b9e(0x24e)]],this['channels'][_0x3a27d7[_0x250b9e(0x24e)]]=_0x5df614;}}else{if(this['channels'][_0x3a27d7[_0x250b9e(0x1e0)]]){this['channels'][_0x3a27d7[_0x250b9e(0x1e0)]]['transfercalleridnum']=_0x3a27d7[_0x250b9e(0x246)],this[_0x250b9e(0x1dd)][_0x3a27d7[_0x250b9e(0x1e0)]][_0x250b9e(0x1a9)]=_0x3a27d7['transfertargetcalleridnum'];if(this['channels'][_0x3a27d7[_0x250b9e(0x1d2)]]){const _0x3f23cc=this['channels'][_0x3a27d7[_0x250b9e(0x1d2)]];this['channels'][_0x3a27d7[_0x250b9e(0x1d2)]]=this['channels'][_0x3a27d7[_0x250b9e(0x1e0)]],this[_0x250b9e(0x1dd)][_0x3a27d7[_0x250b9e(0x1e0)]]=_0x3f23cc;}}}}}catch(_0x4c4fff){logger[_0x250b9e(0x1c3)](_0x250b9e(0x21e),_0x3a27d7[_0x250b9e(0x1ae)],util[_0x250b9e(0x1a8)](_0x4c4fff,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype'][a1264_0x23cc1f(0x24c)]=function(_0x41ab81){const _0x33a4a7=a1264_0x23cc1f;try{this['isNotNull'](_0x41ab81)&&(logger['info'](_0x33a4a7(0x249),_0x41ab81[_0x33a4a7(0x1ae)],_0x41ab81['transfereecalleridnum'],_0x41ab81[_0x33a4a7(0x23e)]),logger['debug'](_0x33a4a7(0x1d6),_0x41ab81[_0x33a4a7(0x1ae)],util[_0x33a4a7(0x1a8)](_0x41ab81,{'showHidden':![],'depth':null})),this[_0x33a4a7(0x1dd)][_0x41ab81[_0x33a4a7(0x24e)]]&&(this['channels'][_0x41ab81[_0x33a4a7(0x24e)]][_0x33a4a7(0x1b8)]=_0x41ab81['transfereecalleridnum'],this[_0x33a4a7(0x1dd)][_0x41ab81[_0x33a4a7(0x24e)]][_0x33a4a7(0x1a9)]=_0x41ab81[_0x33a4a7(0x23e)],this[_0x33a4a7(0x21d)]({'event':'BlindTransfer','uniqueid':_0x41ab81[_0x33a4a7(0x24e)],'context':_0x41ab81[_0x33a4a7(0x1b9)],'channel':_0x41ab81[_0x33a4a7(0x1c7)]})));}catch(_0x260b8a){logger[_0x33a4a7(0x1c3)]('[%s][voiceCallReport][blindtransfer]',_0x41ab81[_0x33a4a7(0x1ae)],util['inspect'](_0x260b8a,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype'][a1264_0x23cc1f(0x1d9)]=function(_0x2be9bd){const _0x158136=a1264_0x23cc1f;try{this['isNotNull'](_0x2be9bd)&&(logger[_0x158136(0x20f)](_0x158136(0x21a),_0x2be9bd['uniqueid'],util[_0x158136(0x1a8)](_0x2be9bd,{'showHidden':![],'depth':null})),this[_0x158136(0x1dd)][_0x2be9bd[_0x158136(0x1ae)]]&&(!_[_0x158136(0x1ec)](this['channels'][_0x2be9bd[_0x158136(0x1ae)]][_0x158136(0x1dc)])&&(this[_0x158136(0x1dd)][_0x2be9bd['uniqueid']][_0x158136(0x1c0)]=moment()[_0x158136(0x1f1)]('YYYY-MM-DD\x20HH:mm:ss'),logger[_0x158136(0x21f)](_0x158136(0x23a),_0x2be9bd[_0x158136(0x1ae)],this['channels'][_0x2be9bd['uniqueid']]['mohstarttime']))));}catch(_0x1e2555){logger['error'](_0x158136(0x247),_0x2be9bd[_0x158136(0x1ae)],util['inspect'](_0x1e2555,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype'][a1264_0x23cc1f(0x1fc)]=function(_0x544979){const _0x5e78d4=a1264_0x23cc1f;try{this[_0x5e78d4(0x1e8)](_0x544979)&&(logger[_0x5e78d4(0x20f)](_0x5e78d4(0x22b),_0x544979[_0x5e78d4(0x1ae)],util['inspect'](_0x544979,{'showHidden':![],'depth':null})),this['channels'][_0x544979['uniqueid']]&&(!_[_0x5e78d4(0x1ec)](this[_0x5e78d4(0x1dd)][_0x544979['uniqueid']]['mohstarttime'])&&(this['channels'][_0x544979['uniqueid']][_0x5e78d4(0x1e5)]+=moment()[_0x5e78d4(0x23c)](0x0)[_0x5e78d4(0x1d5)](this['channels'][_0x544979['uniqueid']][_0x5e78d4(0x1c0)],_0x5e78d4(0x210)),logger[_0x5e78d4(0x21f)]('[%s][voiceCallReport][musiconholdstop]\x20mohtime:%s',_0x544979['uniqueid'],this['channels'][_0x544979[_0x5e78d4(0x1ae)]][_0x5e78d4(0x1e5)]),delete this[_0x5e78d4(0x1dd)][_0x544979[_0x5e78d4(0x1ae)]][_0x5e78d4(0x1c0)])));}catch(_0x563b86){logger[_0x5e78d4(0x1c3)](_0x5e78d4(0x1f2),_0x544979['uniqueid'],util[_0x5e78d4(0x1a8)](_0x563b86,{'showHidden':![],'depth':null}));}},module[a1264_0x23cc1f(0x216)]=VoiceCallReport; \ No newline at end of file diff --git a/server/services/ami/report/voiceDialReport.js b/server/services/ami/report/voiceDialReport.js index 2a28335..5e8c3d8 100644 --- a/server/services/ami/report/voiceDialReport.js +++ b/server/services/ami/report/voiceDialReport.js @@ -1 +1 @@ -const a1265_0x3f6f=['sumBillable','keys','varset','addVariable','ANSWER','[%s][voiceDialReport][hangup]\x20sending\x20voice_outbound_channel:remove\x20event:','lodash','uniqueid','isNil','[%s][voiceDialReport][varset]\x20outboundrouteid:%s\x20variable:%s\x20value:%s','exports','diff','debug','rtpaudioqoslossbridged','dialbegin','membername','outbound','[%s][voiceDialReport][dialbegin]','memberlastcall','[%s][voiceDialReport][dialbegin]\x20sending\x20dialbegin\x20event:','memberdynamic','custom:dialbegin','../../../config/logger','prototype','dialstatus','custom:dialend','[%s][voiceDialReport][dialend]\x20sending\x20dialconnect\x20event:','stringify','connectedlinename','bind','complete','[%s][voiceDialReport][varset]\x20event:','includes','[%s][voiceDialReport][dialbegin]\x20agent:%s\x20interface:%s\x20lastevent:called','channels','inspect','voice_outbound_channel:save','[%s][voiceDialReport][hangup]\x20sending\x20voice_outbound:save\x20event:','[%s][voiceDialReport][hangup]\x20event:','privilege','rtpaudioqos','lastevent','called','error','rtpaudioqosrtt','sipcallid','util','cause-txt','[%s][voiceDialReport][dialbegin]\x20event:','../ami','emit','sumHoldTime','variables','billableseconds','outboundrouteid','moment','custom:voiceDialReport','lastIndexOf','custom:dialconnect','memberpenalty','membercalls','[%s][voiceDialReport][hangup]','YYYY-MM-DD\x20HH:mm:ss','syncDialEnd','connect','outboundChannels','value','interface','total','isUndefined','voice_outbound:save','[%s][voiceDialReport][hangup]\x20sending\x20dialend\x20event:','sipuri','linkedid','[%s][voiceDialReport][varset]\x20sending\x20voice_outbound_channel:save\x20event:','../../../rediscache','answered','[%s][voiceDialReport][hangup]\x20sending\x20voiceDialReport\x20event:','bridgepeer','variable','format','voice_outbound_channel:remove','rtpaudioqosrttbridged','substring','rtpaudioqosjitter','[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event','[%s][voiceDialReport][varset]','memberrealtime','[%s][voiceDialReport][dialbegin]\x20sending\x20voice_outbound_channel:save\x20event:','holdtime','channel','voice:outbound','bridgepvtcallid','ami','starttime','dialend','rtpaudioqosjitterbridged','seconds','syncVarSet','[%s][voiceDialReport][dialend]\x20sending\x20voice_outbound_channel:save\x20event:','endtime','sumDuration','[%s][voiceDialReport][dialend]\x20event:','syncHangup','syncDialBegin','info','isNotNull','answertime'];(function(_0x3ec8e2,_0x529872){const _0x3f6fa6=function(_0x4f9572){while(--_0x4f9572){_0x3ec8e2['push'](_0x3ec8e2['shift']());}};_0x3f6fa6(++_0x529872);}(a1265_0x3f6f,0xbc));const a1265_0x4f95=function(_0x3ec8e2,_0x529872){_0x3ec8e2=_0x3ec8e2-0x1d4;let _0x3f6fa6=a1265_0x3f6f[_0x3ec8e2];return _0x3f6fa6;};const a1265_0x2e0874=a1265_0x4f95;'use strict';const _=require(a1265_0x2e0874(0x1f6)),moment=require(a1265_0x2e0874(0x227)),util=require(a1265_0x2e0874(0x21e)),logger=require(a1265_0x2e0874(0x206))(a1265_0x2e0874(0x1e1)),ami=require(a1265_0x2e0874(0x221)),{getSocket}=require(a1265_0x2e0874(0x23b)),io=getSocket();function VoiceDialReport(_0x2a45b7){const _0x227881=a1265_0x2e0874;this[_0x227881(0x212)]=_0x2a45b7[_0x227881(0x231)],this[_0x227881(0x200)]=_0x2a45b7[_0x227881(0x200)],this['variables']={},ami['on'](_0x227881(0x1fe),this[_0x227881(0x1ec)][_0x227881(0x20d)](this)),ami['on'](_0x227881(0x1e3),this['syncDialEnd']['bind'](this)),ami['on'](_0x227881(0x1f2),this[_0x227881(0x1e6)][_0x227881(0x20d)](this)),ami['on']('hangup',this[_0x227881(0x1eb)][_0x227881(0x20d)](this));}VoiceDialReport[a1265_0x2e0874(0x207)][a1265_0x2e0874(0x1ee)]=function(_0x258c9b){const _0x29c046=a1265_0x2e0874;return _0x258c9b!==null&&!_[_0x29c046(0x235)](_0x258c9b);},VoiceDialReport[a1265_0x2e0874(0x207)][a1265_0x2e0874(0x222)]=function(_0x1848de,_0x218e68,_0x52f7f3){const _0xec043d=a1265_0x2e0874;io['to'](_0x1848de)[_0xec043d(0x222)](_0x218e68,_0x52f7f3);},VoiceDialReport[a1265_0x2e0874(0x207)]['syncDialBegin']=function(_0x5098b7){const _0xc13a7=a1265_0x2e0874;try{this[_0xc13a7(0x1ee)](_0x5098b7)&&(logger['debug'](_0xc13a7(0x220),_0x5098b7['uniqueid'],util[_0xc13a7(0x213)](_0x5098b7,{'showHidden':![],'depth':null})),this[_0xc13a7(0x212)][_0x5098b7[_0xc13a7(0x1f7)]]&&(_['merge'](this['channels'][_0x5098b7[_0xc13a7(0x1f7)]],{'starttime':moment()[_0xc13a7(0x1d4)]('YYYY-MM-DD\x20HH:mm:ss'),'lastevent':_0xc13a7(0x21a),'interface':_0x5098b7[_0xc13a7(0x1de)][_0xc13a7(0x1d7)](0x0,_0x5098b7[_0xc13a7(0x1de)][_0xc13a7(0x229)]('-')),'membername':_0x5098b7['channel'][_0xc13a7(0x1d7)](_0x5098b7[_0xc13a7(0x1de)][_0xc13a7(0x229)]('/')+0x1,_0x5098b7['channel']['lastIndexOf']('-'))},_['omit'](_0x5098b7,['event',_0xc13a7(0x217)])),logger[_0xc13a7(0x1ed)](_0xc13a7(0x211),_0x5098b7[_0xc13a7(0x1f7)],this[_0xc13a7(0x212)][_0x5098b7['uniqueid']]['membername'],this['channels'][_0x5098b7[_0xc13a7(0x1f7)]][_0xc13a7(0x233)]),logger[_0xc13a7(0x1fc)](_0xc13a7(0x1dc),_0x5098b7[_0xc13a7(0x1f7)],util[_0xc13a7(0x213)](this[_0xc13a7(0x212)][_0x5098b7[_0xc13a7(0x1f7)]],{'showHidden':![],'depth':null})),this[_0xc13a7(0x222)](_0xc13a7(0x1df),_0xc13a7(0x214),this['channels'][_0x5098b7['uniqueid']]),logger[_0xc13a7(0x1fc)](_0xc13a7(0x203),_0x5098b7[_0xc13a7(0x1f7)],util[_0xc13a7(0x213)](this[_0xc13a7(0x212)][_0x5098b7['uniqueid']],{'showHidden':![],'depth':null})),ami[_0xc13a7(0x222)](_0xc13a7(0x205),this['channels'][_0x5098b7[_0xc13a7(0x1f7)]])));}catch(_0x1c7df9){logger[_0xc13a7(0x21b)](_0xc13a7(0x201),_0x5098b7[_0xc13a7(0x1f7)],util['inspect'](_0x1c7df9,{'showHidden':![],'depth':null}));}},VoiceDialReport['prototype'][a1265_0x2e0874(0x22f)]=function(_0x39e277){const _0x17c5b1=a1265_0x2e0874;try{this[_0x17c5b1(0x1ee)](_0x39e277)&&(logger[_0x17c5b1(0x1fc)](_0x17c5b1(0x1ea),_0x39e277['uniqueid'],util[_0x17c5b1(0x213)](_0x39e277,{'showHidden':![],'depth':null})),this[_0x17c5b1(0x212)][_0x39e277[_0x17c5b1(0x1f7)]]&&(this['channels'][_0x39e277['uniqueid']]['dialstatus']=_0x39e277[_0x17c5b1(0x208)],_0x39e277[_0x17c5b1(0x208)]===_0x17c5b1(0x1f4)&&(this[_0x17c5b1(0x212)][_0x39e277['uniqueid']]['connectedlinenum']=_0x39e277['connectedlinenum'],this[_0x17c5b1(0x212)][_0x39e277[_0x17c5b1(0x1f7)]]['connectedlinename']=_0x39e277[_0x17c5b1(0x20c)],this[_0x17c5b1(0x212)][_0x39e277[_0x17c5b1(0x1f7)]]['answertime']=moment()[_0x17c5b1(0x1d4)](_0x17c5b1(0x22e)),this[_0x17c5b1(0x212)][_0x39e277['uniqueid']][_0x17c5b1(0x219)]=_0x17c5b1(0x230),logger[_0x17c5b1(0x1ed)]('[%s][voiceDialReport][dialend]\x20agent:%s\x20lastevent:connect',_0x39e277[_0x17c5b1(0x1f7)],_0x39e277[_0x17c5b1(0x1de)][_0x17c5b1(0x1d7)](_0x39e277[_0x17c5b1(0x1de)][_0x17c5b1(0x229)]('/')+0x1,_0x39e277[_0x17c5b1(0x1de)][_0x17c5b1(0x229)]('-'))),logger[_0x17c5b1(0x1fc)](_0x17c5b1(0x20a),_0x39e277[_0x17c5b1(0x1f7)],util['inspect'](this['channels'][_0x39e277[_0x17c5b1(0x1f7)]],{'showHidden':![],'depth':null})),ami['emit'](_0x17c5b1(0x22a),this[_0x17c5b1(0x212)][_0x39e277[_0x17c5b1(0x1f7)]])),logger['debug'](_0x17c5b1(0x1e7),_0x39e277[_0x17c5b1(0x1f7)],util['inspect'](this['channels'][_0x39e277[_0x17c5b1(0x1f7)]],{'showHidden':![],'depth':null})),this['emit']('voice:outbound',_0x17c5b1(0x214),this[_0x17c5b1(0x212)][_0x39e277[_0x17c5b1(0x1f7)]])));}catch(_0x226b52){logger[_0x17c5b1(0x21b)]('[%s][voiceDialReport][dialend]',_0x39e277[_0x17c5b1(0x1f7)],util[_0x17c5b1(0x213)](_0x226b52,{'showHidden':![],'depth':null}));}},VoiceDialReport[a1265_0x2e0874(0x207)][a1265_0x2e0874(0x1e6)]=function(_0x226e27){const _0x4d3642=a1265_0x2e0874;try{this[_0x4d3642(0x1ee)](_0x226e27)&&(logger[_0x4d3642(0x1fc)](_0x4d3642(0x20f),_0x226e27[_0x4d3642(0x1f7)],util[_0x4d3642(0x213)](_0x226e27,{'showHidden':![],'depth':null})),this[_0x4d3642(0x1f3)](_0x226e27['uniqueid'],_[_0x4d3642(0x1f1)](_0x226e27[_0x4d3642(0x23f)])[0x0],_0x226e27[_0x4d3642(0x232)]),this[_0x4d3642(0x1ee)](_0x226e27['variable'])&&this[_0x4d3642(0x1ee)](_0x226e27[_0x4d3642(0x23f)][_0x4d3642(0x226)])&&(_[_0x4d3642(0x235)](this[_0x4d3642(0x212)][_0x226e27['uniqueid']])&&(this[_0x4d3642(0x212)][_0x226e27[_0x4d3642(0x1f7)]]={'routeId':_0x226e27[_0x4d3642(0x232)],'variables':this[_0x4d3642(0x224)][_0x226e27[_0x4d3642(0x1f7)]]},logger[_0x4d3642(0x1ed)](_0x4d3642(0x1f9),_0x226e27['uniqueid'],_0x226e27[_0x4d3642(0x23f)][_0x4d3642(0x226)],_[_0x4d3642(0x1f1)](_0x226e27['variable'])[0x0],_0x226e27[_0x4d3642(0x232)]),logger[_0x4d3642(0x1fc)](_0x4d3642(0x23a),_0x226e27[_0x4d3642(0x1f7)],util[_0x4d3642(0x213)](this[_0x4d3642(0x212)][_0x226e27['uniqueid']],{'showHidden':![],'depth':null})),this[_0x4d3642(0x222)]('voice:outbound',_0x4d3642(0x214),this[_0x4d3642(0x212)][_0x226e27[_0x4d3642(0x1f7)]]))));}catch(_0x402893){logger['error'](_0x4d3642(0x1da),_0x226e27[_0x4d3642(0x1f7)],util[_0x4d3642(0x213)](_0x402893,{'showHidden':![],'depth':null}));}},VoiceDialReport[a1265_0x2e0874(0x207)][a1265_0x2e0874(0x1f3)]=function(_0x59cce6,_0x2e8887,_0x3b4e01){const _0x49c711=a1265_0x2e0874,_0x59d941=[_0x49c711(0x218),'rtpaudioqosbridged',_0x49c711(0x1d8),_0x49c711(0x1e4),'rtpaudioqosloss',_0x49c711(0x1fd),_0x49c711(0x21c),_0x49c711(0x1d6),_0x49c711(0x21d),_0x49c711(0x238),_0x49c711(0x23e),_0x49c711(0x1e0),_0x49c711(0x22c),_0x49c711(0x204),'memberinterface',_0x49c711(0x202),_0x49c711(0x1ff),_0x49c711(0x22b),_0x49c711(0x1db)];!_[_0x49c711(0x1f8)](_0x2e8887)&&!_[_0x49c711(0x210)](_0x59d941,_0x2e8887)&&(_[_0x49c711(0x235)](this['variables'][_0x59cce6])&&(this[_0x49c711(0x224)][_0x59cce6]={}),this[_0x49c711(0x224)][_0x59cce6][_0x2e8887]=_0x3b4e01);},VoiceDialReport[a1265_0x2e0874(0x207)]['syncHangup']=function(_0x1badc3){const _0x4f42df=a1265_0x2e0874;try{if(this[_0x4f42df(0x1ee)](_0x1badc3)){logger[_0x4f42df(0x1fc)](_0x4f42df(0x216),_0x1badc3['uniqueid'],util[_0x4f42df(0x213)](_0x1badc3,{'showHidden':![],'depth':null}));if(this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]])logger['info']('[%s][voiceDialReport][hangup]\x20reason:%s\x20lasteevent:complete',_0x1badc3[_0x4f42df(0x1f7)],_0x1badc3[_0x4f42df(0x21f)]),this['channels'][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x1e8)]=moment()[_0x4f42df(0x1d4)](_0x4f42df(0x22e)),this['channels'][_0x1badc3['uniqueid']]['duration']=moment(this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x1e8)])[_0x4f42df(0x1fb)](this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x1e2)],_0x4f42df(0x1e5)),this['channels'][_0x1badc3[_0x4f42df(0x1f7)]]['lastevent']=_0x4f42df(0x20e),this[_0x4f42df(0x200)][_0x4f42df(0x234)]+=0x1,this[_0x4f42df(0x212)][_0x1badc3['uniqueid']][_0x4f42df(0x1ef)]&&(this[_0x4f42df(0x200)][_0x4f42df(0x23c)]+=0x1,this['channels'][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x1dd)]=moment(this[_0x4f42df(0x212)][_0x1badc3['uniqueid']][_0x4f42df(0x1ef)])[_0x4f42df(0x1fb)](this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x1e2)],_0x4f42df(0x1e5)),this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x225)]=moment(this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]]['endtime'])[_0x4f42df(0x1fb)](this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x1ef)],_0x4f42df(0x1e5)),this[_0x4f42df(0x200)][_0x4f42df(0x223)]+=this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x1dd)]||0x0,this[_0x4f42df(0x200)][_0x4f42df(0x1f0)]+=this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]][_0x4f42df(0x225)]),this[_0x4f42df(0x200)][_0x4f42df(0x1e9)]+=this['channels'][_0x1badc3[_0x4f42df(0x1f7)]]['duration'],logger['debug'](_0x4f42df(0x23d),_0x1badc3['uniqueid'],util[_0x4f42df(0x213)](this['channels'][_0x1badc3['uniqueid']],{'showHidden':![],'depth':null})),ami[_0x4f42df(0x222)](_0x4f42df(0x228),this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]]),logger[_0x4f42df(0x1fc)](_0x4f42df(0x237),_0x1badc3[_0x4f42df(0x1f7)],util[_0x4f42df(0x213)](this['channels'][_0x1badc3[_0x4f42df(0x1f7)]],{'showHidden':![],'depth':null})),ami[_0x4f42df(0x222)](_0x4f42df(0x209),this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]]),logger[_0x4f42df(0x1fc)](_0x4f42df(0x215),_0x1badc3['uniqueid'],util[_0x4f42df(0x213)](this[_0x4f42df(0x212)][_0x1badc3['uniqueid']],{'showHidden':![],'depth':null})),this[_0x4f42df(0x222)](_0x4f42df(0x1df),_0x4f42df(0x236),this[_0x4f42df(0x200)]),logger[_0x4f42df(0x1ed)](_0x4f42df(0x1d9),JSON[_0x4f42df(0x20b)](this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]])),logger[_0x4f42df(0x1fc)](_0x4f42df(0x1f5),_0x1badc3['uniqueid'],util[_0x4f42df(0x213)](this[_0x4f42df(0x212)][_0x1badc3['uniqueid']],{'showHidden':![],'depth':null})),this['emit']('voice:outbound',_0x4f42df(0x1d5),this[_0x4f42df(0x212)][_0x1badc3['uniqueid']]),delete this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x1f7)]];else this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x239)]]&&(this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x239)]]['uniqueid']=this[_0x4f42df(0x212)][_0x1badc3[_0x4f42df(0x239)]]['destuniqueid']);this[_0x4f42df(0x224)][_0x1badc3[_0x4f42df(0x1f7)]]&&delete this['variables'][_0x1badc3[_0x4f42df(0x1f7)]];}}catch(_0x9afeac){logger[_0x4f42df(0x21b)](_0x4f42df(0x22d),_0x1badc3[_0x4f42df(0x1f7)],util['inspect'](_0x9afeac,{'showHidden':![],'depth':null}));}},module[a1265_0x2e0874(0x1fa)]=VoiceDialReport; \ No newline at end of file +const a1265_0x7a61=['starttime','ANSWER','connect','billableseconds','outbound','endtime','[%s][voiceDialReport][hangup]\x20event:','memberdynamic','lodash','keys','[%s][voiceDialReport][dialend]\x20agent:%s\x20lastevent:connect','merge','[%s][voiceDialReport][varset]\x20sending\x20voice_outbound_channel:save\x20event:','[%s][voiceDialReport][varset]\x20event:','seconds','sipuri','bridgepeer','destuniqueid','custom:dialend','exports','rtpaudioqoslossbridged','[%s][voiceDialReport][hangup]','[%s][voiceDialReport][dialbegin]\x20sending\x20voice_outbound_channel:save\x20event:','[%s][voiceDialReport][dialbegin]\x20agent:%s\x20interface:%s\x20lastevent:called','[%s][voiceDialReport][dialend]\x20sending\x20dialconnect\x20event:','addVariable','custom:dialbegin','sumDuration','rtpaudioqosbridged','rtpaudioqosjitterbridged','voice_outbound_channel:save','rtpaudioqos','[%s][voiceDialReport][dialbegin]\x20event:','debug','sipcallid','sumBillable','outboundChannels','uniqueid','syncVarSet','[%s][voiceDialReport][hangup]\x20sending\x20voice_outbound_channel:remove\x20event:','isNotNull','called','total','YYYY-MM-DD\x20HH:mm:ss','memberlastcall','ami','../../../rediscache','variable','[%s][voiceDialReport][dialend]','[%s][voiceDialReport][hangup]\x20sending\x20dialend\x20event:','syncDialBegin','channels','[%s][voiceDialReport][dialend]\x20event:','variables','omit','answertime','custom:dialconnect','answered','emit','../../../config/logger','lastevent','[%s][voiceDialReport][varset]\x20outboundrouteid:%s\x20variable:%s\x20value:%s','memberinterface','[%s][voiceDialReport][hangup]\x20reason:%s\x20lasteevent:complete','voice_outbound_channel:remove','bridgepvtcallid','channel','memberpenalty','custom:voiceDialReport','sumHoldTime','connectedlinename','outboundrouteid','stringify','hangup','isUndefined','lastIndexOf','syncHangup','[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event','interface','linkedid','substring','[%s][voiceDialReport][dialbegin]\x20sending\x20dialbegin\x20event:','membercalls','duration','format','[%s][voiceDialReport][varset]','value','includes','dialend','bind','info','diff','[%s][voiceDialReport][hangup]\x20sending\x20voice_outbound:save\x20event:','rtpaudioqosjitter','moment','error','varset','inspect','prototype','[%s][voiceDialReport][hangup]\x20sending\x20voiceDialReport\x20event:','syncDialEnd','util','holdtime','membername','rtpaudioqosrtt','voice_outbound:save','cause-txt','voice:outbound','[%s][voiceDialReport][dialend]\x20sending\x20voice_outbound_channel:save\x20event:','dialstatus'];(function(_0x46ed1a,_0x5a703c){const _0x7a613a=function(_0x4fbb0a){while(--_0x4fbb0a){_0x46ed1a['push'](_0x46ed1a['shift']());}};_0x7a613a(++_0x5a703c);}(a1265_0x7a61,0x1a8));const a1265_0x4fbb=function(_0x46ed1a,_0x5a703c){_0x46ed1a=_0x46ed1a-0x132;let _0x7a613a=a1265_0x7a61[_0x46ed1a];return _0x7a613a;};const a1265_0xb91ee0=a1265_0x4fbb;'use strict';const _=require(a1265_0xb91ee0(0x14a)),moment=require(a1265_0xb91ee0(0x132)),util=require(a1265_0xb91ee0(0x139)),logger=require(a1265_0xb91ee0(0x17d))(a1265_0xb91ee0(0x16f)),ami=require('../ami'),{getSocket}=require(a1265_0xb91ee0(0x170)),io=getSocket();function VoiceDialReport(_0x409b45){const _0x3bf38d=a1265_0xb91ee0;this[_0x3bf38d(0x175)]=_0x409b45[_0x3bf38d(0x166)],this[_0x3bf38d(0x146)]=_0x409b45[_0x3bf38d(0x146)],this['variables']={},ami['on']('dialbegin',this['syncDialBegin'][_0x3bf38d(0x19b)](this)),ami['on'](_0x3bf38d(0x19a),this[_0x3bf38d(0x138)][_0x3bf38d(0x19b)](this)),ami['on'](_0x3bf38d(0x134),this[_0x3bf38d(0x168)][_0x3bf38d(0x19b)](this)),ami['on'](_0x3bf38d(0x18b),this[_0x3bf38d(0x18e)]['bind'](this));}VoiceDialReport['prototype'][a1265_0xb91ee0(0x16a)]=function(_0x3cba2b){const _0x25313d=a1265_0xb91ee0;return _0x3cba2b!==null&&!_[_0x25313d(0x18c)](_0x3cba2b);},VoiceDialReport['prototype'][a1265_0xb91ee0(0x17c)]=function(_0xe584d0,_0x37eccc,_0x14e850){const _0x2cacdb=a1265_0xb91ee0;io['to'](_0xe584d0)[_0x2cacdb(0x17c)](_0x37eccc,_0x14e850);},VoiceDialReport['prototype'][a1265_0xb91ee0(0x174)]=function(_0x3fa983){const _0x2a892e=a1265_0xb91ee0;try{this['isNotNull'](_0x3fa983)&&(logger[_0x2a892e(0x163)](_0x2a892e(0x162),_0x3fa983[_0x2a892e(0x167)],util[_0x2a892e(0x135)](_0x3fa983,{'showHidden':![],'depth':null})),this[_0x2a892e(0x175)][_0x3fa983['uniqueid']]&&(_[_0x2a892e(0x14d)](this[_0x2a892e(0x175)][_0x3fa983[_0x2a892e(0x167)]],{'starttime':moment()[_0x2a892e(0x196)](_0x2a892e(0x16d)),'lastevent':_0x2a892e(0x16b),'interface':_0x3fa983['channel'][_0x2a892e(0x192)](0x0,_0x3fa983['channel'][_0x2a892e(0x18d)]('-')),'membername':_0x3fa983[_0x2a892e(0x184)][_0x2a892e(0x192)](_0x3fa983[_0x2a892e(0x184)][_0x2a892e(0x18d)]('/')+0x1,_0x3fa983[_0x2a892e(0x184)][_0x2a892e(0x18d)]('-'))},_[_0x2a892e(0x178)](_0x3fa983,['event','privilege'])),logger['info'](_0x2a892e(0x159),_0x3fa983['uniqueid'],this['channels'][_0x3fa983[_0x2a892e(0x167)]][_0x2a892e(0x13b)],this['channels'][_0x3fa983['uniqueid']][_0x2a892e(0x190)]),logger['debug'](_0x2a892e(0x158),_0x3fa983[_0x2a892e(0x167)],util[_0x2a892e(0x135)](this['channels'][_0x3fa983['uniqueid']],{'showHidden':![],'depth':null})),this[_0x2a892e(0x17c)](_0x2a892e(0x13f),_0x2a892e(0x160),this['channels'][_0x3fa983[_0x2a892e(0x167)]]),logger[_0x2a892e(0x163)](_0x2a892e(0x193),_0x3fa983[_0x2a892e(0x167)],util[_0x2a892e(0x135)](this['channels'][_0x3fa983[_0x2a892e(0x167)]],{'showHidden':![],'depth':null})),ami[_0x2a892e(0x17c)](_0x2a892e(0x15c),this['channels'][_0x3fa983[_0x2a892e(0x167)]])));}catch(_0x4e24be){logger[_0x2a892e(0x133)]('[%s][voiceDialReport][dialbegin]',_0x3fa983[_0x2a892e(0x167)],util[_0x2a892e(0x135)](_0x4e24be,{'showHidden':![],'depth':null}));}},VoiceDialReport[a1265_0xb91ee0(0x136)]['syncDialEnd']=function(_0x153bf7){const _0xe00390=a1265_0xb91ee0;try{this[_0xe00390(0x16a)](_0x153bf7)&&(logger[_0xe00390(0x163)](_0xe00390(0x176),_0x153bf7[_0xe00390(0x167)],util[_0xe00390(0x135)](_0x153bf7,{'showHidden':![],'depth':null})),this[_0xe00390(0x175)][_0x153bf7[_0xe00390(0x167)]]&&(this['channels'][_0x153bf7[_0xe00390(0x167)]][_0xe00390(0x141)]=_0x153bf7[_0xe00390(0x141)],_0x153bf7[_0xe00390(0x141)]===_0xe00390(0x143)&&(this[_0xe00390(0x175)][_0x153bf7[_0xe00390(0x167)]]['connectedlinenum']=_0x153bf7['connectedlinenum'],this[_0xe00390(0x175)][_0x153bf7[_0xe00390(0x167)]][_0xe00390(0x188)]=_0x153bf7[_0xe00390(0x188)],this[_0xe00390(0x175)][_0x153bf7[_0xe00390(0x167)]][_0xe00390(0x179)]=moment()[_0xe00390(0x196)](_0xe00390(0x16d)),this['channels'][_0x153bf7[_0xe00390(0x167)]][_0xe00390(0x17e)]=_0xe00390(0x144),logger[_0xe00390(0x19c)](_0xe00390(0x14c),_0x153bf7[_0xe00390(0x167)],_0x153bf7['channel'][_0xe00390(0x192)](_0x153bf7['channel'][_0xe00390(0x18d)]('/')+0x1,_0x153bf7[_0xe00390(0x184)]['lastIndexOf']('-'))),logger[_0xe00390(0x163)](_0xe00390(0x15a),_0x153bf7['uniqueid'],util[_0xe00390(0x135)](this[_0xe00390(0x175)][_0x153bf7[_0xe00390(0x167)]],{'showHidden':![],'depth':null})),ami[_0xe00390(0x17c)](_0xe00390(0x17a),this[_0xe00390(0x175)][_0x153bf7['uniqueid']])),logger[_0xe00390(0x163)](_0xe00390(0x140),_0x153bf7[_0xe00390(0x167)],util[_0xe00390(0x135)](this[_0xe00390(0x175)][_0x153bf7[_0xe00390(0x167)]],{'showHidden':![],'depth':null})),this[_0xe00390(0x17c)]('voice:outbound',_0xe00390(0x160),this[_0xe00390(0x175)][_0x153bf7[_0xe00390(0x167)]])));}catch(_0x20e14d){logger[_0xe00390(0x133)](_0xe00390(0x172),_0x153bf7[_0xe00390(0x167)],util[_0xe00390(0x135)](_0x20e14d,{'showHidden':![],'depth':null}));}},VoiceDialReport[a1265_0xb91ee0(0x136)][a1265_0xb91ee0(0x168)]=function(_0x1d74ca){const _0x48c34b=a1265_0xb91ee0;try{this[_0x48c34b(0x16a)](_0x1d74ca)&&(logger[_0x48c34b(0x163)](_0x48c34b(0x14f),_0x1d74ca[_0x48c34b(0x167)],util[_0x48c34b(0x135)](_0x1d74ca,{'showHidden':![],'depth':null})),this[_0x48c34b(0x15b)](_0x1d74ca[_0x48c34b(0x167)],_[_0x48c34b(0x14b)](_0x1d74ca[_0x48c34b(0x171)])[0x0],_0x1d74ca[_0x48c34b(0x198)]),this[_0x48c34b(0x16a)](_0x1d74ca['variable'])&&this[_0x48c34b(0x16a)](_0x1d74ca['variable'][_0x48c34b(0x189)])&&(_[_0x48c34b(0x18c)](this[_0x48c34b(0x175)][_0x1d74ca[_0x48c34b(0x167)]])&&(this['channels'][_0x1d74ca[_0x48c34b(0x167)]]={'routeId':_0x1d74ca['value'],'variables':this['variables'][_0x1d74ca[_0x48c34b(0x167)]]},logger[_0x48c34b(0x19c)](_0x48c34b(0x17f),_0x1d74ca['uniqueid'],_0x1d74ca[_0x48c34b(0x171)][_0x48c34b(0x189)],_[_0x48c34b(0x14b)](_0x1d74ca['variable'])[0x0],_0x1d74ca[_0x48c34b(0x198)]),logger[_0x48c34b(0x163)](_0x48c34b(0x14e),_0x1d74ca[_0x48c34b(0x167)],util[_0x48c34b(0x135)](this['channels'][_0x1d74ca['uniqueid']],{'showHidden':![],'depth':null})),this[_0x48c34b(0x17c)](_0x48c34b(0x13f),'voice_outbound_channel:save',this[_0x48c34b(0x175)][_0x1d74ca[_0x48c34b(0x167)]]))));}catch(_0x117b9f){logger[_0x48c34b(0x133)](_0x48c34b(0x197),_0x1d74ca[_0x48c34b(0x167)],util[_0x48c34b(0x135)](_0x117b9f,{'showHidden':![],'depth':null}));}},VoiceDialReport[a1265_0xb91ee0(0x136)][a1265_0xb91ee0(0x15b)]=function(_0x139197,_0x22d015,_0x16e11c){const _0x187c08=a1265_0xb91ee0,_0xbbf245=[_0x187c08(0x161),_0x187c08(0x15e),_0x187c08(0x19f),_0x187c08(0x15f),'rtpaudioqosloss',_0x187c08(0x156),_0x187c08(0x13c),'rtpaudioqosrttbridged',_0x187c08(0x164),_0x187c08(0x151),_0x187c08(0x152),_0x187c08(0x183),_0x187c08(0x194),_0x187c08(0x149),_0x187c08(0x180),_0x187c08(0x16e),_0x187c08(0x13b),_0x187c08(0x185),'memberrealtime'];!_['isNil'](_0x22d015)&&!_[_0x187c08(0x199)](_0xbbf245,_0x22d015)&&(_[_0x187c08(0x18c)](this[_0x187c08(0x177)][_0x139197])&&(this[_0x187c08(0x177)][_0x139197]={}),this['variables'][_0x139197][_0x22d015]=_0x16e11c);},VoiceDialReport[a1265_0xb91ee0(0x136)][a1265_0xb91ee0(0x18e)]=function(_0x9a8bc){const _0x17a44d=a1265_0xb91ee0;try{if(this['isNotNull'](_0x9a8bc)){logger[_0x17a44d(0x163)](_0x17a44d(0x148),_0x9a8bc[_0x17a44d(0x167)],util[_0x17a44d(0x135)](_0x9a8bc,{'showHidden':![],'depth':null}));if(this[_0x17a44d(0x175)][_0x9a8bc[_0x17a44d(0x167)]])logger[_0x17a44d(0x19c)](_0x17a44d(0x181),_0x9a8bc['uniqueid'],_0x9a8bc[_0x17a44d(0x13e)]),this[_0x17a44d(0x175)][_0x9a8bc[_0x17a44d(0x167)]]['endtime']=moment()[_0x17a44d(0x196)](_0x17a44d(0x16d)),this[_0x17a44d(0x175)][_0x9a8bc['uniqueid']][_0x17a44d(0x195)]=moment(this[_0x17a44d(0x175)][_0x9a8bc[_0x17a44d(0x167)]]['endtime'])[_0x17a44d(0x19d)](this[_0x17a44d(0x175)][_0x9a8bc[_0x17a44d(0x167)]][_0x17a44d(0x142)],_0x17a44d(0x150)),this[_0x17a44d(0x175)][_0x9a8bc[_0x17a44d(0x167)]][_0x17a44d(0x17e)]='complete',this[_0x17a44d(0x146)][_0x17a44d(0x16c)]+=0x1,this[_0x17a44d(0x175)][_0x9a8bc[_0x17a44d(0x167)]][_0x17a44d(0x179)]&&(this[_0x17a44d(0x146)][_0x17a44d(0x17b)]+=0x1,this['channels'][_0x9a8bc[_0x17a44d(0x167)]][_0x17a44d(0x13a)]=moment(this[_0x17a44d(0x175)][_0x9a8bc['uniqueid']][_0x17a44d(0x179)])[_0x17a44d(0x19d)](this[_0x17a44d(0x175)][_0x9a8bc[_0x17a44d(0x167)]]['starttime'],_0x17a44d(0x150)),this['channels'][_0x9a8bc[_0x17a44d(0x167)]][_0x17a44d(0x145)]=moment(this[_0x17a44d(0x175)][_0x9a8bc['uniqueid']][_0x17a44d(0x147)])[_0x17a44d(0x19d)](this[_0x17a44d(0x175)][_0x9a8bc[_0x17a44d(0x167)]][_0x17a44d(0x179)],'seconds'),this['outbound'][_0x17a44d(0x187)]+=this[_0x17a44d(0x175)][_0x9a8bc['uniqueid']][_0x17a44d(0x13a)]||0x0,this[_0x17a44d(0x146)][_0x17a44d(0x165)]+=this['channels'][_0x9a8bc['uniqueid']]['billableseconds']),this[_0x17a44d(0x146)][_0x17a44d(0x15d)]+=this['channels'][_0x9a8bc['uniqueid']][_0x17a44d(0x195)],logger[_0x17a44d(0x163)](_0x17a44d(0x137),_0x9a8bc['uniqueid'],util[_0x17a44d(0x135)](this[_0x17a44d(0x175)][_0x9a8bc[_0x17a44d(0x167)]],{'showHidden':![],'depth':null})),ami[_0x17a44d(0x17c)](_0x17a44d(0x186),this[_0x17a44d(0x175)][_0x9a8bc[_0x17a44d(0x167)]]),logger['debug'](_0x17a44d(0x173),_0x9a8bc[_0x17a44d(0x167)],util['inspect'](this[_0x17a44d(0x175)][_0x9a8bc[_0x17a44d(0x167)]],{'showHidden':![],'depth':null})),ami[_0x17a44d(0x17c)](_0x17a44d(0x154),this[_0x17a44d(0x175)][_0x9a8bc[_0x17a44d(0x167)]]),logger['debug'](_0x17a44d(0x19e),_0x9a8bc[_0x17a44d(0x167)],util['inspect'](this[_0x17a44d(0x175)][_0x9a8bc[_0x17a44d(0x167)]],{'showHidden':![],'depth':null})),this[_0x17a44d(0x17c)](_0x17a44d(0x13f),_0x17a44d(0x13d),this[_0x17a44d(0x146)]),logger['info'](_0x17a44d(0x18f),JSON[_0x17a44d(0x18a)](this[_0x17a44d(0x175)][_0x9a8bc[_0x17a44d(0x167)]])),logger[_0x17a44d(0x163)](_0x17a44d(0x169),_0x9a8bc[_0x17a44d(0x167)],util[_0x17a44d(0x135)](this['channels'][_0x9a8bc[_0x17a44d(0x167)]],{'showHidden':![],'depth':null})),this[_0x17a44d(0x17c)](_0x17a44d(0x13f),_0x17a44d(0x182),this[_0x17a44d(0x175)][_0x9a8bc['uniqueid']]),delete this[_0x17a44d(0x175)][_0x9a8bc[_0x17a44d(0x167)]];else this[_0x17a44d(0x175)][_0x9a8bc[_0x17a44d(0x191)]]&&(this[_0x17a44d(0x175)][_0x9a8bc['linkedid']][_0x17a44d(0x167)]=this[_0x17a44d(0x175)][_0x9a8bc['linkedid']][_0x17a44d(0x153)]);this[_0x17a44d(0x177)][_0x9a8bc[_0x17a44d(0x167)]]&&delete this[_0x17a44d(0x177)][_0x9a8bc[_0x17a44d(0x167)]];}}catch(_0x50d54d){logger[_0x17a44d(0x133)](_0x17a44d(0x157),_0x9a8bc[_0x17a44d(0x167)],util[_0x17a44d(0x135)](_0x50d54d,{'showHidden':![],'depth':null}));}},module[a1265_0xb91ee0(0x155)]=VoiceDialReport; \ No newline at end of file diff --git a/server/services/ami/report/voiceQueueReport.js b/server/services/ami/report/voiceQueueReport.js index 48519d4..d4ee560 100644 --- a/server/services/ami/report/voiceQueueReport.js +++ b/server/services/ami/report/voiceQueueReport.js @@ -1 +1 @@ -const a1266_0xb5a1=['channel','emitVoiceQueueChannelRemove','queuecallerabandon','local/','reason','agentcomplete','secondtransfereruniqueid','milliseconds','emitVoiceQueueSummary','loopQueueShow','[voiceQueueReport][queuecallerabandon]\x20name:%s\x20type:%s','Action','YYYY-MM-DD\x20HH:mm:ss','total','loggedIn','custom:queuecallerabandon','syncQueueCallerJoin','memberlastcall','inspect','musiconholdstart','[%s][voiceQueueReport][musiconholdstop]','uniqueid','EXITWITHKEY','unmanaged','syncFullyBooted',']\x20sending\x20voice_queue:save\x20event:','sumBillable','pick','[voiceQueueReport][agentconnect]\x20name:%s\x20type:%s\x20queuecallerexitreason:COMPLETEDBYAGENT','[%s][voiceQueueReport][attendedTransfer]\x20name:%s\x20type:%s\x20transferexten:%s\x20transferuniqueid:%s','isNotNull','catch','queuesummary','secondtransfererexten','[%s][voiceQueueReport][attendedtransfer]','origtransfererexten','queuecallerleaveAt','transferuniqueid','queues','status','destexten','ATTENDEDTRANSFER','blindtransfer','queuecallerexitreason','memberpenalty','custom:queuecallerunmanaged','info','toNumber','queueStatusComplete','attendedtransfer','context','loggedin','syncVarSet','clearqueuereport','[%s][voiceQueueReport][varset]\x20sending\x20timeout\x20event:','transfertype','BlindTransfer','lodash','loopQueueSummary','sipuri','seconds','custom:timeout','diff','[%s][voiceQueueReport][musiconholdstart]\x20mohstarttime:%s','queuecallerjoin','isUndefined','toLowerCase','syncQueueSummary','[voiceQueueReport][','startsWith','rtpaudioqosrtt','voice:queue:%s','callers','Trunk','[%s][voiceQueueReport][hangup]','position','fullybooted','value','queuesummarycomplete','rtpaudioqos','waiting','COMPLETED','rtpaudioqosbridged','syncBlindTransfer','queue','ABANDONED','../ami','toUpperCase','undefined','campaigns','queuecallercomplete','variable','emit','switch','No\x20such\x20channel','length','lastevent','syncQueueCallerLeave','syncQueueCallerAbandon','[%s][voiceQueueReport][varset]','cause-txt','isEmpty','queuecallerjoinAt','holdtime','syncAgentComplete','isNil','[voiceQueueReport][queuesummary]\x20name:%s','last','[%s][voiceQueueReport][queuecallerleave]','rtpaudioqosjitter','add','then','memberrealtime','originated','[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:%s',']\x20sending\x20voice_queue_channel:save\x20event:','mohstarttime','clearZombieChannels','[voiceQueueReport][queuecallerleave]\x20name:%s\x20type:%s\x20connectedlinenum:%s\x20connectedlinename:%s','assigned','FORWARD','[voiceQueueReport][queues]','lastAssignedTo','syncMusicOnHoldStart','[%s][voiceQueueReport][hangup]\x20sending\x20voiceQueueReport\x20event:','addVariable','ami','keys','originalposition','custom:voiceQueueReport','voiceQueues','pTalking','[%s][voiceQueueReport][queuecallerabandon]','connectedlinename','type','moment','queueChannels','md5','varset','talking','FORWARDTRANSFER','abandoned','queuecallercompleteAt','transfer','Interval','syncAttendedTransfer','emitVoiceQueueChannelSave','queueReports','ATTENDED','answered','custom:queuesummary','stringify','membercalls','COMPLETEDBY','CONTINUE','[voiceQueueReport][queuesummarycomplete]\x20event:','queuecallerexitAt','flagQueueSummary','enqueue','[%s][voiceQueueReport][checkVariables]','push','util','BLINDTRANSFER','mohtime','[%s][voiceQueueReport][hangup]\x20name:%s\x20type:%s\x20reason:%s','syncHangup','COMPLETEDBYAGENT','[%s][voiceQueueReport][queuecallerjoin]','format','[voiceQueueReport][queuesummary]','[voiceQueueReport][queuesummary]\x20event:','connectedlinenum','inbound','[%s][voiceQueueReport][blindtransfer]','includes','transfertargetuniqueid','agents','[%s][voiceQueueReport][hangup]\x20sending\x20queuecallerunmanaged\x20event:','sipcallid','rtpaudioqosrttbridged','finally','timeout','origtransfereruniqueid','syncQueueSummaryComplete','membername','[%s][voiceQueueReport][musiconholdstop]\x20mohtime:%s','bind','voice_queue_channel:remove','linkedid','transfererchannel','hangup','bridgepvtcallid','transfereeuniqueid','debug','rtpaudioqosjitterbridged','[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:COMPLETED','[%s][voiceQueueReport][checkQueueReport]','voice_queue_channel:save','[%s][voiceQueueReport][agentcomplete]','prototype',']\x20sending\x20voice_queue_channel:remove\x20event:','error','strategy','available','[%s][voiceQueueReport][musiconholdstart]','queuecallerabandonAt','sequence','queuecallerleave','transferexten','voice_queue:save','BLIND','clearQueueReport','rtpaudioqosloss','name','[voiceQueueReport][queuesummary]\x20sending\x20queuesummary\x20event:','channels','memberinterface','syncAgentConnect','sumHoldTime','unlockRR','variables','[voiceQueueReport][queuecallerjoin]\x20name:%s\x20type:%s','sumDuration','tail','queuecallerexit','[voiceQueueReport][agentcomplete]\x20name:%s\x20type:%s\x20queuecallerexitreason:FORWARDTRANSFER','queuestatus'];(function(_0x5608a8,_0x7aa7d2){const _0xb5a117=function(_0x45cbe1){while(--_0x45cbe1){_0x5608a8['push'](_0x5608a8['shift']());}};_0xb5a117(++_0x7aa7d2);}(a1266_0xb5a1,0xb0));const a1266_0x45cb=function(_0x5608a8,_0x7aa7d2){_0x5608a8=_0x5608a8-0x106;let _0xb5a117=a1266_0xb5a1[_0x5608a8];return _0xb5a117;};const a1266_0x3a90aa=a1266_0x45cb;'use strict';const _=require(a1266_0x3a90aa(0x172)),moment=require(a1266_0x3a90aa(0x1c0)),util=require(a1266_0x3a90aa(0x1da)),md5=require(a1266_0x3a90aa(0x1c2)),logger=require('../../../config/logger')(a1266_0x3a90aa(0x1b7)),ami=require(a1266_0x3a90aa(0x18f)),QueueReport=require('../model/queueReport'),{getSocket}=require('../../../rediscache'),io=getSocket(),Sequence=function(){};Sequence['prototype'][a1266_0x3a90aa(0x1d7)]=function(_0x1f27c5){const _0x177b7d=a1266_0x3a90aa;this[_0x177b7d(0x135)]=this['tail']?this[_0x177b7d(0x135)][_0x177b7d(0x10a)](_0x1f27c5):_0x1f27c5();};function VoiceQueueReport(_0x3d62c0){const _0x33f5e8=a1266_0x3a90aa;this['sequence']=new Sequence(),this[_0x33f5e8(0x1cc)]={},this['agents']=_0x3d62c0['agents'],this[_0x33f5e8(0x12d)]=_0x3d62c0[_0x33f5e8(0x1c1)],this[_0x33f5e8(0x1bb)]=_0x3d62c0[_0x33f5e8(0x1bb)],this[_0x33f5e8(0x1d6)]=!![],this[_0x33f5e8(0x192)]=_0x3d62c0[_0x33f5e8(0x192)],this[_0x33f5e8(0x132)]={},ami['on'](_0x33f5e8(0x159),this['syncQueueSummary'][_0x33f5e8(0x110)](this)),ami['on'](_0x33f5e8(0x187),this['syncQueueSummaryComplete']['bind'](this)),ami['on']('queuecallerjoin',this[_0x33f5e8(0x149)][_0x33f5e8(0x110)](this)),ami['on']('queuecallerabandon',this[_0x33f5e8(0x19b)][_0x33f5e8(0x110)](this)),ami['on'](_0x33f5e8(0x125),this[_0x33f5e8(0x19a)][_0x33f5e8(0x110)](this)),ami['on']('agentcomplete',this[_0x33f5e8(0x1a1)][_0x33f5e8(0x110)](this)),ami['on']('agentconnect',this[_0x33f5e8(0x12f)][_0x33f5e8(0x110)](this)),ami['on'](_0x33f5e8(0x1c3),this[_0x33f5e8(0x16d)][_0x33f5e8(0x110)](this)),ami['on']('hangup',this[_0x33f5e8(0x1de)][_0x33f5e8(0x110)](this)),ami['on'](_0x33f5e8(0x185),this[_0x33f5e8(0x151)][_0x33f5e8(0x110)](this)),ami['on'](_0x33f5e8(0x14c),this['syncMusicOnHoldStart']['bind'](this)),ami['on']('musiconholdstop',this['syncMusicOnHoldStop'][_0x33f5e8(0x110)](this)),ami['on'](_0x33f5e8(0x16a),this[_0x33f5e8(0x1ca)][_0x33f5e8(0x110)](this)),ami['on'](_0x33f5e8(0x163),this[_0x33f5e8(0x18c)]['bind'](this)),this[_0x33f5e8(0x173)](),this[_0x33f5e8(0x142)]();}function clearChannels(_0x2103bf){const _0x3e88e2=a1266_0x3a90aa;if(!_[_0x3e88e2(0x19e)](_0x2103bf))for(const _0x38f8b9 in _0x2103bf){typeof _0x2103bf[_0x38f8b9]!==_0x3e88e2(0x191)&&delete _0x2103bf[_0x38f8b9];}}function clearCampaigns(_0x7f2cd8){const _0x26cb0c=a1266_0x3a90aa;if(!_[_0x26cb0c(0x19e)](_0x7f2cd8))for(const _0x8507f1 in _0x7f2cd8){typeof _0x7f2cd8[_0x8507f1]!==_0x26cb0c(0x191)&&(_0x7f2cd8[_0x8507f1]['originated']=0x0);}}function clearVoiceQueues(_0x6c1da3){const _0x27c86a=a1266_0x3a90aa;if(!_[_0x27c86a(0x19e)](_0x6c1da3))for(const _0x343379 in _0x6c1da3){typeof _0x6c1da3[_0x343379]!==_0x27c86a(0x191)&&(_0x6c1da3[_0x343379][_0x27c86a(0x1aa)]=0x0,_0x6c1da3[_0x343379][_0x27c86a(0x1c4)]=0x0,_0x6c1da3[_0x343379][_0x27c86a(0x1bc)]=0x0,_0x6c1da3[_0x343379][_0x27c86a(0x189)]=0x0,_0x6c1da3[_0x343379][_0x27c86a(0x169)]=!![]);}}function clearAgentBooked(_0x14baa6){const _0x27c217=a1266_0x3a90aa;if(!_[_0x27c217(0x19e)](_0x14baa6))for(const _0x5ee134 in _0x14baa6){typeof _0x14baa6[_0x5ee134]!==_0x27c217(0x191)&&(_0x14baa6[_0x5ee134][_0x27c217(0x131)]=!![]);}}VoiceQueueReport[a1266_0x3a90aa(0x11d)][a1266_0x3a90aa(0x1ae)]=function(){const _0x1b7c12=a1266_0x3a90aa,_0x16dc13=this;for(const _0x559110 in this[_0x1b7c12(0x12d)]){typeof this['channels'][_0x559110]!==_0x1b7c12(0x191)&&!this[_0x1b7c12(0x12d)][_0x559110][_0x1b7c12(0x196)]&&this[_0x1b7c12(0x124)][_0x1b7c12(0x1d7)](function(){const _0x4ba68f=_0x1b7c12;if(!_['isNil'](_0x16dc13[_0x4ba68f(0x12d)][_0x559110]))return ami['Action']({'action':_0x4ba68f(0x160),'channel':_0x16dc13[_0x4ba68f(0x12d)][_0x559110]['channel']})[_0x4ba68f(0x158)](function(_0x2f9b4a){const _0x4aaf1a=_0x4ba68f;_0x2f9b4a['message']===_0x4aaf1a(0x197)&&setTimeout(function(){const _0x45e596=_0x4aaf1a;_0x16dc13['channels'][_0x559110]&&(delete _0x16dc13[_0x45e596(0x12d)][_0x559110],logger[_0x45e596(0x11f)]('[%s][voiceQueueReport][checkChannel]',_0x559110,util[_0x45e596(0x14b)](_0x2f9b4a,{'showHidden':![],'depth':null}))),_0x16dc13[_0x45e596(0x1cc)][_0x559110]&&(delete _0x16dc13['queueReports'][_0x559110],logger['error'](_0x45e596(0x11a),_0x559110,util[_0x45e596(0x14b)](_0x2f9b4a,{'showHidden':![],'depth':null}))),_0x16dc13['variables'][_0x559110]&&(delete _0x16dc13[_0x45e596(0x132)][_0x559110],logger[_0x45e596(0x11f)](_0x45e596(0x1d8),_0x559110,util[_0x45e596(0x14b)](_0x2f9b4a,{'showHidden':![],'depth':null})));},0x1f40);});});}},VoiceQueueReport[a1266_0x3a90aa(0x11d)][a1266_0x3a90aa(0x151)]=function(){const _0x537eee=a1266_0x3a90aa;logger[_0x537eee(0x11f)]('[FullyBooted]\x20clear\x20realtime'),clearChannels(this[_0x537eee(0x12d)]),this[_0x537eee(0x129)](this[_0x537eee(0x1cc)]),clearAgentBooked(this[_0x537eee(0x106)]),clearVoiceQueues(this[_0x537eee(0x1bb)]),clearCampaigns(this['campaigns']);},VoiceQueueReport[a1266_0x3a90aa(0x11d)][a1266_0x3a90aa(0x129)]=function(_0x93eb4e){const _0x3df3ea=a1266_0x3a90aa,_0x5d97fb=this;if(!_[_0x3df3ea(0x19e)](_0x93eb4e))for(const _0x516f11 in _0x93eb4e){typeof _0x93eb4e[_0x516f11]!==_0x3df3ea(0x191)&&(_0x5d97fb[_0x3df3ea(0x13a)](_0x93eb4e[_0x516f11],_0x3df3ea(0x16e)),delete _0x93eb4e[_0x516f11]);}},VoiceQueueReport[a1266_0x3a90aa(0x11d)][a1266_0x3a90aa(0x195)]=function(_0x8f215c,_0xea8e18,_0x27300d){const _0x4462d2=a1266_0x3a90aa;io['to'](_0x8f215c)[_0x4462d2(0x195)](_0xea8e18,_0x27300d);},VoiceQueueReport[a1266_0x3a90aa(0x11d)][a1266_0x3a90aa(0x1cb)]=function(_0x4b5eed,_0x32e01b){const _0x1fe632=a1266_0x3a90aa;logger[_0x1fe632(0x117)]('[%s][voiceQueueReport]['+_0x32e01b+_0x1fe632(0x1ac),_0x4b5eed[_0x1fe632(0x14e)],util['inspect'](_0x4b5eed,{'showHidden':![],'depth':null})),this[_0x1fe632(0x195)](util[_0x1fe632(0x1e1)](_0x1fe632(0x180),_0x4b5eed[_0x1fe632(0x12b)]),_0x1fe632(0x11b),_0x4b5eed);},VoiceQueueReport[a1266_0x3a90aa(0x11d)][a1266_0x3a90aa(0x13a)]=function(_0xf78051,_0x1b7586){const _0xcbcfca=a1266_0x3a90aa;logger[_0xcbcfca(0x117)]('[%s][voiceQueueReport]['+_0x1b7586+_0xcbcfca(0x11e),_0xf78051[_0xcbcfca(0x14e)],util[_0xcbcfca(0x14b)](_0xf78051,{'showHidden':![],'depth':null})),this[_0xcbcfca(0x195)](util[_0xcbcfca(0x1e1)](_0xcbcfca(0x180),_0xf78051[_0xcbcfca(0x12b)]),_0xcbcfca(0x111),_0xf78051);},VoiceQueueReport['prototype'][a1266_0x3a90aa(0x141)]=function(_0x5909d5,_0x2dad26){const _0x16158b=a1266_0x3a90aa;if(_0x5909d5[_0x16158b(0x1bf)]===_0x16158b(0x1e5)){const _0x78bcca={'id':_0x5909d5['id'],'name':_0x5909d5['name'],'strategy':_0x5909d5[_0x16158b(0x120)],'answered':_0x5909d5[_0x16158b(0x1ce)],'available':_0x5909d5['available'],'loggedIn':_0x5909d5[_0x16158b(0x147)],'pTalking':_0x5909d5['pTalking'],'sumBillable':_0x5909d5['sumBillable'],'sumDuration':_0x5909d5[_0x16158b(0x134)],'sumHoldTime':_0x5909d5[_0x16158b(0x130)]||0x0,'talking':_0x5909d5[_0x16158b(0x1c4)],'total':_0x5909d5[_0x16158b(0x146)],'type':_0x5909d5[_0x16158b(0x1bf)],'unmanaged':_0x5909d5[_0x16158b(0x150)],'abandoned':_0x5909d5[_0x16158b(0x1c6)],'waiting':_0x5909d5[_0x16158b(0x189)]};_0x5909d5['Trunk']&&(_0x78bcca[_0x16158b(0x182)]={'id':_0x5909d5['Trunk']['id'],'name':_0x5909d5['Trunk'][_0x16158b(0x12b)],'active':_0x5909d5['Trunk']['active'],'callerid':_0x5909d5[_0x16158b(0x182)]['callerid']});_0x5909d5[_0x16158b(0x1c9)]&&(_0x78bcca['Interval']={'id':_0x5909d5[_0x16158b(0x1c9)]['id'],'name':_0x5909d5[_0x16158b(0x1c9)][_0x16158b(0x12b)]});const _0x27b27b=md5(JSON[_0x16158b(0x1d0)](_0x78bcca));_0x5909d5[_0x16158b(0x1c2)]!==_0x27b27b&&(_0x5909d5[_0x16158b(0x1c2)]=_0x27b27b,logger[_0x16158b(0x117)](_0x16158b(0x17d)+_0x2dad26+_0x16158b(0x152),util[_0x16158b(0x14b)](_0x78bcca,{'showHidden':![],'depth':null})),this[_0x16158b(0x195)](util['format'](_0x16158b(0x180),_0x78bcca[_0x16158b(0x12b)]),_0x16158b(0x127),_0x78bcca));}},VoiceQueueReport['prototype'][a1266_0x3a90aa(0x157)]=function(_0x599a99){const _0x414165=a1266_0x3a90aa;return _0x599a99!==null&&!_[_0x414165(0x17a)](_0x599a99);},VoiceQueueReport['prototype']['loopQueueShow']=function(){const _0x164c64=this;setInterval(function(){const _0x24312b=a1266_0x45cb;_0x164c64[_0x24312b(0x1ae)](),ami[_0x24312b(0x144)]({'action':_0x24312b(0x15f)})[_0x24312b(0x158)](function(_0x234cda){const _0xf5a27c=_0x24312b;logger[_0xf5a27c(0x11f)](_0xf5a27c(0x1b2),util[_0xf5a27c(0x14b)](_0x234cda,{'showHidden':![],'depth':null}));});},0x2710);},VoiceQueueReport['prototype'][a1266_0x3a90aa(0x173)]=function(){const _0x24a348=this;setInterval(function(){const _0x4520c1=a1266_0x45cb;if(_0x24a348[_0x4520c1(0x1d6)])return ami[_0x4520c1(0x144)]({'action':_0x4520c1(0x159)})[_0x4520c1(0x1a8)](function(){const _0x158e8c=_0x4520c1;_0x24a348[_0x158e8c(0x1d6)]=![];})[_0x4520c1(0x158)](function(_0x5f13ed){const _0x487a79=_0x4520c1;logger[_0x487a79(0x11f)](_0x487a79(0x1e2),util[_0x487a79(0x14b)](_0x5f13ed,{'showHidden':![],'depth':null}));});},0x3e8);},VoiceQueueReport[a1266_0x3a90aa(0x11d)][a1266_0x3a90aa(0x17c)]=function(_0x1be49c){const _0x1abcc3=a1266_0x3a90aa;try{if(this[_0x1abcc3(0x157)](_0x1be49c)&&this[_0x1abcc3(0x157)](_0x1be49c['queue'])){logger[_0x1abcc3(0x117)](_0x1abcc3(0x1e3),util[_0x1abcc3(0x14b)](_0x1be49c,{'showHidden':![],'depth':null}));if(this[_0x1abcc3(0x1bb)][_0x1be49c[_0x1abcc3(0x18d)]]){logger[_0x1abcc3(0x167)](_0x1abcc3(0x1a3),_0x1be49c['queue']);const _0x5a56bd=_['countBy'](this[_0x1abcc3(0x12d)],'queue')[_0x1be49c[_0x1abcc3(0x18d)]]||0x0,_0x5c69f8=_0x5a56bd-_0x1be49c[_0x1abcc3(0x181)];(this['voiceQueues'][_0x1be49c[_0x1abcc3(0x18d)]][_0x1abcc3(0x189)]!==_[_0x1abcc3(0x168)](_0x1be49c[_0x1abcc3(0x181)])||this[_0x1abcc3(0x1bb)][_0x1be49c[_0x1abcc3(0x18d)]]['loggedIn']!==_[_0x1abcc3(0x168)](_0x1be49c['loggedin'])||this[_0x1abcc3(0x1bb)][_0x1be49c['queue']][_0x1abcc3(0x121)]!==_[_0x1abcc3(0x168)](_0x1be49c[_0x1abcc3(0x121)])||this[_0x1abcc3(0x1bb)][_0x1be49c[_0x1abcc3(0x18d)]][_0x1abcc3(0x1c4)]!==_0x5c69f8)&&(this[_0x1abcc3(0x1bb)][_0x1be49c[_0x1abcc3(0x18d)]][_0x1abcc3(0x189)]=_[_0x1abcc3(0x168)](_0x1be49c['callers']),this[_0x1abcc3(0x1bb)][_0x1be49c['queue']]['loggedIn']=_[_0x1abcc3(0x168)](_0x1be49c[_0x1abcc3(0x16c)]),this[_0x1abcc3(0x1bb)][_0x1be49c[_0x1abcc3(0x18d)]][_0x1abcc3(0x121)]=_['toNumber'](_0x1be49c[_0x1abcc3(0x121)]),this[_0x1abcc3(0x1bb)][_0x1be49c[_0x1abcc3(0x18d)]][_0x1abcc3(0x1c4)]=_0x5c69f8>0x0?_0x5c69f8:0x0,this[_0x1abcc3(0x1bb)][_0x1be49c[_0x1abcc3(0x18d)]]['talking']=this[_0x1abcc3(0x1bb)][_0x1be49c['queue']][_0x1abcc3(0x1c4)]>_[_0x1abcc3(0x168)](_0x1be49c['loggedin'])?_[_0x1abcc3(0x168)](_0x1be49c[_0x1abcc3(0x16c)]):this[_0x1abcc3(0x1bb)][_0x1be49c[_0x1abcc3(0x18d)]][_0x1abcc3(0x1c4)],this[_0x1abcc3(0x141)](this[_0x1abcc3(0x1bb)][_0x1be49c['queue']],_0x1abcc3(0x159))),logger[_0x1abcc3(0x117)](_0x1abcc3(0x12c),util[_0x1abcc3(0x14b)](this[_0x1abcc3(0x1bb)][_0x1be49c[_0x1abcc3(0x18d)]],{'showHidden':![],'depth':null})),ami['emit'](_0x1abcc3(0x1cf),this[_0x1abcc3(0x1bb)][_0x1be49c[_0x1abcc3(0x18d)]]);}}}catch(_0x327f57){logger[_0x1abcc3(0x11f)](_0x1abcc3(0x1e2),util[_0x1abcc3(0x14b)](_0x327f57,{'showHidden':![],'depth':null}));}},VoiceQueueReport[a1266_0x3a90aa(0x11d)][a1266_0x3a90aa(0x10d)]=function(_0x5141fd){const _0x3a1e0e=a1266_0x3a90aa;logger['debug'](_0x3a1e0e(0x1d4),util[_0x3a1e0e(0x14b)](_0x5141fd,{'showHidden':![],'depth':null})),this['flagQueueSummary']=!![];},VoiceQueueReport['prototype']['syncQueueCallerJoin']=function(_0x3e744e){const _0x50cf63=a1266_0x3a90aa;try{if(this[_0x50cf63(0x157)](_0x3e744e)){logger[_0x50cf63(0x117)](_0x50cf63(0x1e0),_0x3e744e[_0x50cf63(0x14e)],util['inspect'](_0x3e744e,{'showHidden':![],'depth':null}));_[_0x50cf63(0x17a)](this['queueReports'][_0x3e744e['uniqueid']])&&(this[_0x50cf63(0x1cc)][_0x3e744e[_0x50cf63(0x14e)]]=[],this[_0x50cf63(0x12d)][_0x3e744e['uniqueid']]={});const _0x10e440=new QueueReport();_0x10e440['name']=_0x3e744e[_0x50cf63(0x18d)],_0x10e440[_0x50cf63(0x1bf)]=this[_0x50cf63(0x1bb)][_0x10e440[_0x50cf63(0x12b)]]&&this[_0x50cf63(0x1bb)][_0x10e440[_0x50cf63(0x12b)]][_0x50cf63(0x1bf)]?this['voiceQueues'][_0x10e440[_0x50cf63(0x12b)]][_0x50cf63(0x1bf)]||'inbound':'inbound',_0x10e440[_0x50cf63(0x18d)]=_0x3e744e[_0x50cf63(0x18d)],_0x10e440[_0x50cf63(0x19f)]=moment()[_0x50cf63(0x1e1)]('YYYY-MM-DD\x20HH:mm:ss'),_0x10e440[_0x50cf63(0x184)]=_0x3e744e[_0x50cf63(0x184)],_0x10e440['count']=_0x3e744e['count'],_0x10e440[_0x50cf63(0x14e)]=_0x3e744e['uniqueid'],logger[_0x50cf63(0x167)](_0x50cf63(0x133),_0x10e440['name'],_0x10e440[_0x50cf63(0x1bf)]),_['merge'](_0x10e440,_[_0x50cf63(0x154)](_0x3e744e,_[_0x50cf63(0x1b8)](_0x10e440))),this[_0x50cf63(0x1cc)][_0x3e744e['uniqueid']][_0x50cf63(0x1d9)](_0x10e440),this[_0x50cf63(0x12d)][_0x3e744e['uniqueid']]=_0x10e440,this[_0x50cf63(0x1cb)](_0x10e440,_0x50cf63(0x179));}}catch(_0x593840){logger[_0x50cf63(0x11f)](_0x50cf63(0x1e0),_0x3e744e[_0x50cf63(0x14e)],util[_0x50cf63(0x14b)](_0x593840,{'showHidden':![],'depth':null}));}},VoiceQueueReport[a1266_0x3a90aa(0x11d)]['syncQueueCallerAbandon']=function(_0x59fb66){const _0x5b7011=a1266_0x3a90aa;try{if(this['isNotNull'](_0x59fb66)){logger[_0x5b7011(0x117)](_0x5b7011(0x1bd),_0x59fb66[_0x5b7011(0x14e)],util[_0x5b7011(0x14b)](_0x59fb66,{'showHidden':![],'depth':null}));if(this[_0x5b7011(0x1cc)][_0x59fb66[_0x5b7011(0x14e)]]){const _0x3dd79e=_[_0x5b7011(0x1a4)](this[_0x5b7011(0x1cc)][_0x59fb66[_0x5b7011(0x14e)]]);_0x3dd79e[_0x5b7011(0x193)]=![],_0x3dd79e[_0x5b7011(0x1c7)]=null,_0x3dd79e[_0x5b7011(0x1a0)]=_0x59fb66[_0x5b7011(0x1a0)],_0x3dd79e[_0x5b7011(0x1b9)]=_0x59fb66[_0x5b7011(0x1b9)],_0x3dd79e[_0x5b7011(0x13b)]=!![],_0x3dd79e['queuecallerabandonAt']=moment()[_0x5b7011(0x1e1)](_0x5b7011(0x145)),_0x3dd79e[_0x5b7011(0x164)]=_0x5b7011(0x18e),_0x3dd79e[_0x5b7011(0x1b3)]=null,logger[_0x5b7011(0x167)](_0x5b7011(0x143),_0x3dd79e[_0x5b7011(0x12b)],_0x3dd79e['type']),this[_0x5b7011(0x12d)][_0x59fb66[_0x5b7011(0x14e)]]=_0x3dd79e,this[_0x5b7011(0x13a)](_0x3dd79e,_0x5b7011(0x13b));}}}catch(_0x427b9b){logger[_0x5b7011(0x11f)]('[%s][voiceQueueReport][queuecallerabandon]',_0x59fb66[_0x5b7011(0x14e)],util[_0x5b7011(0x14b)](_0x427b9b,{'showHidden':![],'depth':null}));}},VoiceQueueReport['prototype'][a1266_0x3a90aa(0x19a)]=function(_0x2e7424){const _0x4c55d3=a1266_0x3a90aa;try{if(this[_0x4c55d3(0x157)](_0x2e7424)){logger[_0x4c55d3(0x117)]('[%s][voiceQueueReport][queuecallerleave]',_0x2e7424[_0x4c55d3(0x14e)],util[_0x4c55d3(0x14b)](_0x2e7424,{'showHidden':![],'depth':null}));if(this['queueReports'][_0x2e7424['uniqueid']]){const _0x1cff65=_['last'](this['queueReports'][_0x2e7424[_0x4c55d3(0x14e)]]);_0x1cff65[_0x4c55d3(0x15d)]=moment()[_0x4c55d3(0x1e1)](_0x4c55d3(0x145)),_0x1cff65['connectedlinenum']=_0x2e7424[_0x4c55d3(0x1e4)],_0x1cff65[_0x4c55d3(0x1be)]=_0x2e7424[_0x4c55d3(0x1be)],logger[_0x4c55d3(0x167)](_0x4c55d3(0x1af),_0x1cff65[_0x4c55d3(0x12b)],_0x1cff65[_0x4c55d3(0x1bf)],_0x2e7424['connectedlinenum'],_0x2e7424[_0x4c55d3(0x1be)]),this['channels'][_0x2e7424[_0x4c55d3(0x14e)]]=_0x1cff65,this[_0x4c55d3(0x1cb)](_0x1cff65,_0x4c55d3(0x125));}}}catch(_0xa757f0){logger[_0x4c55d3(0x11f)](_0x4c55d3(0x1a5),_0x2e7424[_0x4c55d3(0x14e)],util[_0x4c55d3(0x14b)](_0xa757f0,{'showHidden':![],'depth':null}));}},VoiceQueueReport['prototype'][a1266_0x3a90aa(0x12f)]=function(_0x5306fb){const _0x508226=a1266_0x3a90aa;try{if(this[_0x508226(0x157)](_0x5306fb)){logger[_0x508226(0x117)]('[%s][voiceQueueReport][agentconnect]',_0x5306fb[_0x508226(0x14e)],util['inspect'](_0x5306fb,{'showHidden':![],'depth':null}));if(this[_0x508226(0x1cc)][_0x5306fb[_0x508226(0x14e)]]){const _0x2a6395=_[_0x508226(0x1a4)](this[_0x508226(0x1cc)][_0x5306fb[_0x508226(0x14e)]]);_0x2a6395['queuecallercomplete']=!![],_0x2a6395[_0x508226(0x164)]=_0x508226(0x1df),logger['info'](_0x508226(0x155),_0x2a6395[_0x508226(0x12b)],_0x2a6395['type']);}}}catch(_0x3cba35){logger['error']('[%s][voiceQueueReport][agentconnect]',_0x5306fb['uniqueid'],util['inspect'](_0x3cba35,{'showHidden':![],'depth':null}));}},VoiceQueueReport['prototype'][a1266_0x3a90aa(0x1a1)]=function(_0x41962b){const _0x16df2c=a1266_0x3a90aa;try{if(this[_0x16df2c(0x157)](_0x41962b)){logger[_0x16df2c(0x117)](_0x16df2c(0x11c),_0x41962b['uniqueid'],util[_0x16df2c(0x14b)](_0x41962b,{'showHidden':![],'depth':null}));if(this[_0x16df2c(0x1cc)][_0x41962b[_0x16df2c(0x14e)]]){const _0x57f62b=_[_0x16df2c(0x1a4)](this[_0x16df2c(0x1cc)][_0x41962b[_0x16df2c(0x14e)]]);_0x57f62b[_0x16df2c(0x13b)]=![],_0x57f62b['queuecallerabandonAt']=null,_0x57f62b[_0x16df2c(0x1b0)]=!![],_0x57f62b['lastAssignedTo']=_0x41962b[_0x16df2c(0x10e)],_0x57f62b[_0x16df2c(0x1a0)]=_0x41962b[_0x16df2c(0x1a0)],_0x57f62b[_0x16df2c(0x193)]=!![],_0x57f62b[_0x16df2c(0x136)]=![],_0x57f62b[_0x16df2c(0x1d5)]=null;if(!_0x57f62b[_0x16df2c(0x1c8)]){if(_0x41962b['reason']==_0x16df2c(0x1c8))_0x57f62b[_0x16df2c(0x164)]=_0x16df2c(0x18a),logger[_0x16df2c(0x167)](_0x16df2c(0x119),_0x57f62b[_0x16df2c(0x12b)],_0x57f62b[_0x16df2c(0x1bf)]);else{if(_[_0x16df2c(0x17e)](_0x41962b[_0x16df2c(0x139)][_0x16df2c(0x17b)](),_0x16df2c(0x13c))){if(this['queueReports'][_0x41962b[_0x16df2c(0x112)]]){const _0x46a9de=_[_0x16df2c(0x1a4)](this['queueReports'][_0x41962b['linkedid']]);_0x46a9de['queuecallercomplete']=![],_0x46a9de['queuecallerexit']=!![],_0x46a9de[_0x16df2c(0x1d5)]=moment(_0x57f62b[_0x16df2c(0x19f)])[_0x16df2c(0x1a7)](_0x41962b['holdtime'],_0x16df2c(0x175))[_0x16df2c(0x1e1)]('YYYY-MM-DD\x20HH:mm:ss'),_0x46a9de[_0x16df2c(0x164)]=_0x16df2c(0x1c5),_0x46a9de[_0x16df2c(0x1c8)]=!![],_0x46a9de[_0x16df2c(0x170)]=_0x16df2c(0x1b1),_0x46a9de[_0x16df2c(0x126)]=_0x41962b[_0x16df2c(0x161)],_0x46a9de[_0x16df2c(0x15e)]=_0x41962b[_0x16df2c(0x14e)],logger[_0x16df2c(0x167)](_0x16df2c(0x137),_0x46a9de[_0x16df2c(0x12b)],_0x46a9de['type']);const _0x1ff5d6=this['queueReports'][_0x41962b[_0x16df2c(0x112)]];this['queueReports'][_0x41962b['linkedid']]=this['queueReports'][_0x41962b[_0x16df2c(0x14e)]],this['queueReports'][_0x41962b[_0x16df2c(0x14e)]]=_0x1ff5d6;}}else _0x57f62b[_0x16df2c(0x164)]=_0x16df2c(0x1d2)+_0x41962b[_0x16df2c(0x13d)][_0x16df2c(0x190)](),logger['info'](_0x16df2c(0x1ab),_0x57f62b[_0x16df2c(0x12b)],_0x57f62b[_0x16df2c(0x1bf)],_0x57f62b['queuecallerexitreason']);}}this[_0x16df2c(0x12d)][_0x41962b['uniqueid']]=_0x57f62b,this[_0x16df2c(0x13a)](_0x57f62b,_0x16df2c(0x13e));}}}catch(_0x5dee29){logger[_0x16df2c(0x11f)]('[%s][voiceQueueReport][agentcomplete]',_0x41962b[_0x16df2c(0x14e)],util[_0x16df2c(0x14b)](_0x5dee29,{'showHidden':![],'depth':null}));}},VoiceQueueReport[a1266_0x3a90aa(0x11d)][a1266_0x3a90aa(0x16d)]=function(_0x5d25e7){const _0x18d3e1=a1266_0x3a90aa;try{if(this[_0x18d3e1(0x157)](_0x5d25e7)){logger['debug'](_0x18d3e1(0x19c),_0x5d25e7['uniqueid'],util['inspect'](_0x5d25e7,{'showHidden':![],'depth':null})),this['addVariable'](_0x5d25e7['uniqueid'],_[_0x18d3e1(0x1b8)](_0x5d25e7[_0x18d3e1(0x194)])[0x0],_0x5d25e7[_0x18d3e1(0x186)]);if(this[_0x18d3e1(0x1cc)][_0x5d25e7[_0x18d3e1(0x14e)]]){const _0x5209da=_['last'](this[_0x18d3e1(0x1cc)][_0x5d25e7[_0x18d3e1(0x14e)]]);if(_0x5209da){if(this[_0x18d3e1(0x157)](_0x5d25e7[_0x18d3e1(0x194)])&&this[_0x18d3e1(0x157)](_0x5d25e7[_0x18d3e1(0x194)][_0x18d3e1(0x138)])){switch(_0x5d25e7['value']){case _0x18d3e1(0x1d3):_0x5209da[_0x18d3e1(0x136)]=![],_0x5209da['queuecallerexitAt']=null;break;case'TIMEOUT':_0x5209da['lastevent']=_0x18d3e1(0x10b),logger[_0x18d3e1(0x117)](_0x18d3e1(0x16f),_0x5d25e7[_0x18d3e1(0x14e)],util['inspect'](_0x5209da,{'showHidden':![],'depth':null})),ami[_0x18d3e1(0x195)](_0x18d3e1(0x176),_0x5209da);break;default:_0x5209da[_0x18d3e1(0x136)]=!![],_0x5209da['queuecallerexitAt']=moment()[_0x18d3e1(0x1e1)](_0x18d3e1(0x145)),_0x5209da[_0x18d3e1(0x15d)]=moment()[_0x18d3e1(0x1e1)]('YYYY-MM-DD\x20HH:mm:ss');}_0x5209da['queuecallerabandon']=![],_0x5209da[_0x18d3e1(0x123)]=null,_0x5209da[_0x18d3e1(0x164)]=_0x5d25e7[_0x18d3e1(0x186)],this[_0x18d3e1(0x12d)][_0x5d25e7['uniqueid']]=_0x5209da,this[_0x18d3e1(0x13a)](_0x5209da,_0x18d3e1(0x1c3));}else this[_0x18d3e1(0x157)](_0x5d25e7[_0x18d3e1(0x194)])&&this[_0x18d3e1(0x157)](_0x5d25e7[_0x18d3e1(0x194)]['queueposition'])&&(!_0x5209da[_0x18d3e1(0x13b)]&&(_0x5209da[_0x18d3e1(0x136)]=!![],_0x5209da[_0x18d3e1(0x1d5)]=moment()['format'](_0x18d3e1(0x145)),_0x5209da[_0x18d3e1(0x164)]=_0x18d3e1(0x14f),_0x5209da[_0x18d3e1(0x15d)]=moment()[_0x18d3e1(0x1e1)]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x18d3e1(0x12d)][_0x5d25e7[_0x18d3e1(0x14e)]]=_0x5209da));logger[_0x18d3e1(0x167)]('[%s][voiceQueueReport][varset]\x20name:%s\x20type:%s\x20variable:%s\x20value:%s',_0x5d25e7[_0x18d3e1(0x14e)],_0x5209da[_0x18d3e1(0x12b)],_0x5209da[_0x18d3e1(0x1bf)],_['keys'](_0x5d25e7[_0x18d3e1(0x194)])[0x0],_0x5d25e7[_0x18d3e1(0x186)]),_0x5209da[_0x18d3e1(0x132)]=this[_0x18d3e1(0x132)][_0x5d25e7[_0x18d3e1(0x14e)]];}}}}catch(_0x49dd05){logger['error'](_0x18d3e1(0x19c),_0x5d25e7[_0x18d3e1(0x14e)],util[_0x18d3e1(0x14b)](_0x49dd05,{'showHidden':![],'depth':null}));}},VoiceQueueReport[a1266_0x3a90aa(0x11d)][a1266_0x3a90aa(0x1b6)]=function(_0xd23c5c,_0x1dbaf4,_0x19d446){const _0x492919=a1266_0x3a90aa,_0x18abad=[_0x492919(0x188),_0x492919(0x18b),_0x492919(0x1a6),_0x492919(0x118),_0x492919(0x12a),'rtpaudioqoslossbridged',_0x492919(0x17f),_0x492919(0x109),_0x492919(0x108),_0x492919(0x174),'bridgepeer',_0x492919(0x115),_0x492919(0x1d1),'memberdynamic',_0x492919(0x12e),_0x492919(0x14a),_0x492919(0x10e),_0x492919(0x165),_0x492919(0x1a9)];!_['isNil'](_0x1dbaf4)&&!_[_0x492919(0x1e7)](_0x18abad,_0x1dbaf4)&&(_[_0x492919(0x17a)](this[_0x492919(0x132)][_0xd23c5c])&&(this[_0x492919(0x132)][_0xd23c5c]={}),this[_0x492919(0x132)][_0xd23c5c][_0x1dbaf4]=_0x19d446);},VoiceQueueReport[a1266_0x3a90aa(0x11d)][a1266_0x3a90aa(0x1de)]=function(_0x2718ae){const _0x5c5e76=a1266_0x3a90aa;try{if(this[_0x5c5e76(0x157)](_0x2718ae)){logger[_0x5c5e76(0x117)](_0x5c5e76(0x183),_0x2718ae[_0x5c5e76(0x14e)],util[_0x5c5e76(0x14b)](_0x2718ae,{'showHidden':![],'depth':null}));if(this[_0x5c5e76(0x1cc)][_0x2718ae[_0x5c5e76(0x14e)]]){for(let _0x15e370=0x0,_0x43119f={};_0x15e3700x0?_0x27c352:0x0,this[_0x199a01(0x17f)][_0x35f71d['queue']][_0x199a01(0x1be)]=this['voiceQueues'][_0x35f71d[_0x199a01(0x1c1)]][_0x199a01(0x1be)]>_[_0x199a01(0x1ea)](_0x35f71d[_0x199a01(0x15f)])?_[_0x199a01(0x1ea)](_0x35f71d['loggedin']):this[_0x199a01(0x17f)][_0x35f71d['queue']][_0x199a01(0x1be)],this[_0x199a01(0x169)](this['voiceQueues'][_0x35f71d[_0x199a01(0x1c1)]],_0x199a01(0x212))),logger[_0x199a01(0x1f7)](_0x199a01(0x214),util[_0x199a01(0x207)](this[_0x199a01(0x17f)][_0x35f71d[_0x199a01(0x1c1)]],{'showHidden':![],'depth':null})),ami[_0x199a01(0x158)](_0x199a01(0x159),this['voiceQueues'][_0x35f71d['queue']]);}}}catch(_0xdd54d1){logger[_0x199a01(0x183)](_0x199a01(0x1e6),util[_0x199a01(0x207)](_0xdd54d1,{'showHidden':![],'depth':null}));}},VoiceQueueReport['prototype'][a1266_0x16b02f(0x1a2)]=function(_0x1469c8){const _0x3cd00b=a1266_0x16b02f;logger['debug'](_0x3cd00b(0x20b),util[_0x3cd00b(0x207)](_0x1469c8,{'showHidden':![],'depth':null})),this['flagQueueSummary']=!![];},VoiceQueueReport['prototype'][a1266_0x16b02f(0x1ff)]=function(_0x5e0c1e){const _0x25b9b2=a1266_0x16b02f;try{if(this['isNotNull'](_0x5e0c1e)){logger[_0x25b9b2(0x1f7)](_0x25b9b2(0x1c3),_0x5e0c1e[_0x25b9b2(0x1f5)],util[_0x25b9b2(0x207)](_0x5e0c1e,{'showHidden':![],'depth':null}));_[_0x25b9b2(0x18e)](this['queueReports'][_0x5e0c1e[_0x25b9b2(0x1f5)]])&&(this['queueReports'][_0x5e0c1e[_0x25b9b2(0x1f5)]]=[],this[_0x25b9b2(0x1f3)][_0x5e0c1e[_0x25b9b2(0x1f5)]]={});const _0x284f0b=new QueueReport();_0x284f0b[_0x25b9b2(0x16c)]=_0x5e0c1e[_0x25b9b2(0x1c1)],_0x284f0b['type']=this[_0x25b9b2(0x17f)][_0x284f0b[_0x25b9b2(0x16c)]]&&this[_0x25b9b2(0x17f)][_0x284f0b[_0x25b9b2(0x16c)]][_0x25b9b2(0x1f0)]?this['voiceQueues'][_0x284f0b['name']][_0x25b9b2(0x1f0)]||_0x25b9b2(0x1dd):'inbound',_0x284f0b['queue']=_0x5e0c1e[_0x25b9b2(0x1c1)],_0x284f0b[_0x25b9b2(0x22f)]=moment()[_0x25b9b2(0x1a3)](_0x25b9b2(0x166)),_0x284f0b[_0x25b9b2(0x15b)]=_0x5e0c1e[_0x25b9b2(0x15b)],_0x284f0b[_0x25b9b2(0x1e3)]=_0x5e0c1e[_0x25b9b2(0x1e3)],_0x284f0b[_0x25b9b2(0x1f5)]=_0x5e0c1e[_0x25b9b2(0x1f5)],logger['info']('[voiceQueueReport][queuecallerjoin]\x20name:%s\x20type:%s',_0x284f0b[_0x25b9b2(0x16c)],_0x284f0b[_0x25b9b2(0x1f0)]),_[_0x25b9b2(0x1f1)](_0x284f0b,_['pick'](_0x5e0c1e,_['keys'](_0x284f0b))),this[_0x25b9b2(0x200)][_0x5e0c1e[_0x25b9b2(0x1f5)]][_0x25b9b2(0x1f9)](_0x284f0b),this[_0x25b9b2(0x1f3)][_0x5e0c1e['uniqueid']]=_0x284f0b,this[_0x25b9b2(0x1bd)](_0x284f0b,_0x25b9b2(0x1a1));}}catch(_0x30e065){logger[_0x25b9b2(0x183)](_0x25b9b2(0x1c3),_0x5e0c1e[_0x25b9b2(0x1f5)],util[_0x25b9b2(0x207)](_0x30e065,{'showHidden':![],'depth':null}));}},VoiceQueueReport[a1266_0x16b02f(0x1da)]['syncQueueCallerAbandon']=function(_0x5a8b6c){const _0x25cd66=a1266_0x16b02f;try{if(this[_0x25cd66(0x182)](_0x5a8b6c)){logger[_0x25cd66(0x1f7)](_0x25cd66(0x1df),_0x5a8b6c[_0x25cd66(0x1f5)],util[_0x25cd66(0x207)](_0x5a8b6c,{'showHidden':![],'depth':null}));if(this['queueReports'][_0x5a8b6c[_0x25cd66(0x1f5)]]){const _0x1d32c2=_[_0x25cd66(0x173)](this[_0x25cd66(0x200)][_0x5a8b6c[_0x25cd66(0x1f5)]]);_0x1d32c2['queuecallercomplete']=![],_0x1d32c2[_0x25cd66(0x17a)]=null,_0x1d32c2['holdtime']=_0x5a8b6c[_0x25cd66(0x218)],_0x1d32c2[_0x25cd66(0x219)]=_0x5a8b6c['originalposition'],_0x1d32c2[_0x25cd66(0x18f)]=!![],_0x1d32c2[_0x25cd66(0x1b3)]=moment()['format'](_0x25cd66(0x166)),_0x1d32c2[_0x25cd66(0x229)]=_0x25cd66(0x21c),_0x1d32c2[_0x25cd66(0x226)]=null,logger[_0x25cd66(0x1d8)](_0x25cd66(0x1ef),_0x1d32c2[_0x25cd66(0x16c)],_0x1d32c2[_0x25cd66(0x1f0)]),this[_0x25cd66(0x1f3)][_0x5a8b6c[_0x25cd66(0x1f5)]]=_0x1d32c2,this[_0x25cd66(0x1d0)](_0x1d32c2,_0x25cd66(0x18f));}}}catch(_0x289959){logger['error'](_0x25cd66(0x1df),_0x5a8b6c[_0x25cd66(0x1f5)],util[_0x25cd66(0x207)](_0x289959,{'showHidden':![],'depth':null}));}},VoiceQueueReport[a1266_0x16b02f(0x1da)]['syncQueueCallerLeave']=function(_0xddf4b9){const _0x26c5b8=a1266_0x16b02f;try{if(this[_0x26c5b8(0x182)](_0xddf4b9)){logger[_0x26c5b8(0x1f7)](_0x26c5b8(0x208),_0xddf4b9[_0x26c5b8(0x1f5)],util[_0x26c5b8(0x207)](_0xddf4b9,{'showHidden':![],'depth':null}));if(this[_0x26c5b8(0x200)][_0xddf4b9[_0x26c5b8(0x1f5)]]){const _0x53a30f=_[_0x26c5b8(0x173)](this['queueReports'][_0xddf4b9[_0x26c5b8(0x1f5)]]);_0x53a30f[_0x26c5b8(0x1e8)]=moment()[_0x26c5b8(0x1a3)](_0x26c5b8(0x166)),_0x53a30f['connectedlinenum']=_0xddf4b9[_0x26c5b8(0x161)],_0x53a30f[_0x26c5b8(0x1cf)]=_0xddf4b9[_0x26c5b8(0x1cf)],logger[_0x26c5b8(0x1d8)](_0x26c5b8(0x203),_0x53a30f[_0x26c5b8(0x16c)],_0x53a30f[_0x26c5b8(0x1f0)],_0xddf4b9[_0x26c5b8(0x161)],_0xddf4b9[_0x26c5b8(0x1cf)]),this[_0x26c5b8(0x1f3)][_0xddf4b9[_0x26c5b8(0x1f5)]]=_0x53a30f,this['emitVoiceQueueChannelSave'](_0x53a30f,_0x26c5b8(0x211));}}}catch(_0x18125c){logger[_0x26c5b8(0x183)](_0x26c5b8(0x208),_0xddf4b9[_0x26c5b8(0x1f5)],util[_0x26c5b8(0x207)](_0x18125c,{'showHidden':![],'depth':null}));}},VoiceQueueReport[a1266_0x16b02f(0x1da)][a1266_0x16b02f(0x210)]=function(_0x7c0e15){const _0x4050df=a1266_0x16b02f;try{if(this['isNotNull'](_0x7c0e15)){logger[_0x4050df(0x1f7)](_0x4050df(0x163),_0x7c0e15[_0x4050df(0x1f5)],util[_0x4050df(0x207)](_0x7c0e15,{'showHidden':![],'depth':null}));if(this[_0x4050df(0x200)][_0x7c0e15[_0x4050df(0x1f5)]]){const _0x190937=_['last'](this[_0x4050df(0x200)][_0x7c0e15[_0x4050df(0x1f5)]]);_0x190937[_0x4050df(0x181)]=!![],_0x190937[_0x4050df(0x229)]=_0x4050df(0x20a),logger['info'](_0x4050df(0x15a),_0x190937[_0x4050df(0x16c)],_0x190937[_0x4050df(0x1f0)]);}}}catch(_0x2bc8aa){logger['error']('[%s][voiceQueueReport][agentconnect]',_0x7c0e15[_0x4050df(0x1f5)],util[_0x4050df(0x207)](_0x2bc8aa,{'showHidden':![],'depth':null}));}},VoiceQueueReport['prototype'][a1266_0x16b02f(0x1ba)]=function(_0x1c319f){const _0x27e308=a1266_0x16b02f;try{if(this[_0x27e308(0x182)](_0x1c319f)){logger[_0x27e308(0x1f7)](_0x27e308(0x220),_0x1c319f['uniqueid'],util[_0x27e308(0x207)](_0x1c319f,{'showHidden':![],'depth':null}));if(this['queueReports'][_0x1c319f[_0x27e308(0x1f5)]]){const _0x53cb38=_[_0x27e308(0x173)](this['queueReports'][_0x1c319f[_0x27e308(0x1f5)]]);_0x53cb38[_0x27e308(0x18f)]=![],_0x53cb38[_0x27e308(0x1b3)]=null,_0x53cb38['assigned']=!![],_0x53cb38[_0x27e308(0x226)]=_0x1c319f[_0x27e308(0x235)],_0x53cb38['holdtime']=_0x1c319f[_0x27e308(0x218)],_0x53cb38[_0x27e308(0x181)]=!![],_0x53cb38[_0x27e308(0x1d7)]=![],_0x53cb38[_0x27e308(0x1fe)]=null;if(!_0x53cb38[_0x27e308(0x1f8)]){if(_0x1c319f['reason']=='transfer')_0x53cb38[_0x27e308(0x229)]=_0x27e308(0x196),logger[_0x27e308(0x1d8)](_0x27e308(0x1db),_0x53cb38['name'],_0x53cb38[_0x27e308(0x1f0)]);else{if(_['startsWith'](_0x1c319f[_0x27e308(0x234)]['toLowerCase'](),'local/')){if(this[_0x27e308(0x200)][_0x1c319f[_0x27e308(0x1c2)]]){const _0x2698d0=_[_0x27e308(0x173)](this[_0x27e308(0x200)][_0x1c319f[_0x27e308(0x1c2)]]);_0x2698d0[_0x27e308(0x181)]=![],_0x2698d0[_0x27e308(0x1d7)]=!![],_0x2698d0[_0x27e308(0x1fe)]=moment(_0x53cb38[_0x27e308(0x22f)])[_0x27e308(0x21a)](_0x1c319f[_0x27e308(0x218)],_0x27e308(0x175))[_0x27e308(0x1a3)]('YYYY-MM-DD\x20HH:mm:ss'),_0x2698d0['queuecallerexitreason']=_0x27e308(0x1b9),_0x2698d0[_0x27e308(0x1f8)]=!![],_0x2698d0[_0x27e308(0x217)]=_0x27e308(0x209),_0x2698d0['transferexten']=_0x1c319f[_0x27e308(0x1e4)],_0x2698d0[_0x27e308(0x1c9)]=_0x1c319f[_0x27e308(0x1f5)],logger[_0x27e308(0x1d8)](_0x27e308(0x222),_0x2698d0[_0x27e308(0x16c)],_0x2698d0[_0x27e308(0x1f0)]);const _0xb6cee6=this[_0x27e308(0x200)][_0x1c319f[_0x27e308(0x1c2)]];this[_0x27e308(0x200)][_0x1c319f[_0x27e308(0x1c2)]]=this['queueReports'][_0x1c319f['uniqueid']],this[_0x27e308(0x200)][_0x1c319f[_0x27e308(0x1f5)]]=_0xb6cee6;}}else _0x53cb38[_0x27e308(0x229)]=_0x27e308(0x172)+_0x1c319f[_0x27e308(0x1fc)]['toUpperCase'](),logger[_0x27e308(0x1d8)](_0x27e308(0x19e),_0x53cb38[_0x27e308(0x16c)],_0x53cb38[_0x27e308(0x1f0)],_0x53cb38[_0x27e308(0x229)]);}}this[_0x27e308(0x1f3)][_0x1c319f[_0x27e308(0x1f5)]]=_0x53cb38,this[_0x27e308(0x1d0)](_0x53cb38,_0x27e308(0x20d));}}}catch(_0x433677){logger[_0x27e308(0x183)](_0x27e308(0x220),_0x1c319f['uniqueid'],util[_0x27e308(0x207)](_0x433677,{'showHidden':![],'depth':null}));}},VoiceQueueReport[a1266_0x16b02f(0x1da)]['syncVarSet']=function(_0x48bfc7){const _0x316af9=a1266_0x16b02f;try{if(this['isNotNull'](_0x48bfc7)){logger[_0x316af9(0x1f7)](_0x316af9(0x1d6),_0x48bfc7['uniqueid'],util[_0x316af9(0x207)](_0x48bfc7,{'showHidden':![],'depth':null})),this[_0x316af9(0x178)](_0x48bfc7[_0x316af9(0x1f5)],_[_0x316af9(0x1cb)](_0x48bfc7['variable'])[0x0],_0x48bfc7[_0x316af9(0x233)]);if(this[_0x316af9(0x200)][_0x48bfc7[_0x316af9(0x1f5)]]){const _0x1e09e5=_[_0x316af9(0x173)](this[_0x316af9(0x200)][_0x48bfc7[_0x316af9(0x1f5)]]);if(_0x1e09e5){if(this['isNotNull'](_0x48bfc7[_0x316af9(0x1ce)])&&this[_0x316af9(0x182)](_0x48bfc7['variable'][_0x316af9(0x188)])){switch(_0x48bfc7[_0x316af9(0x233)]){case _0x316af9(0x174):_0x1e09e5[_0x316af9(0x1d7)]=![],_0x1e09e5[_0x316af9(0x1fe)]=null;break;case'TIMEOUT':_0x1e09e5[_0x316af9(0x1cc)]='timeout',logger[_0x316af9(0x1f7)]('[%s][voiceQueueReport][varset]\x20sending\x20timeout\x20event:',_0x48bfc7[_0x316af9(0x1f5)],util['inspect'](_0x1e09e5,{'showHidden':![],'depth':null})),ami[_0x316af9(0x158)](_0x316af9(0x213),_0x1e09e5);break;default:_0x1e09e5['queuecallerexit']=!![],_0x1e09e5[_0x316af9(0x1fe)]=moment()[_0x316af9(0x1a3)](_0x316af9(0x166)),_0x1e09e5[_0x316af9(0x1e8)]=moment()['format'](_0x316af9(0x166));}_0x1e09e5[_0x316af9(0x18f)]=![],_0x1e09e5[_0x316af9(0x1b3)]=null,_0x1e09e5[_0x316af9(0x229)]=_0x48bfc7['value'],this['channels'][_0x48bfc7[_0x316af9(0x1f5)]]=_0x1e09e5,this['emitVoiceQueueChannelRemove'](_0x1e09e5,'varset');}else this[_0x316af9(0x182)](_0x48bfc7[_0x316af9(0x1ce)])&&this[_0x316af9(0x182)](_0x48bfc7[_0x316af9(0x1ce)][_0x316af9(0x1ec)])&&(!_0x1e09e5['queuecallerabandon']&&(_0x1e09e5[_0x316af9(0x1d7)]=!![],_0x1e09e5[_0x316af9(0x1fe)]=moment()[_0x316af9(0x1a3)](_0x316af9(0x166)),_0x1e09e5['queuecallerexitreason']=_0x316af9(0x198),_0x1e09e5['queuecallerleaveAt']=moment()[_0x316af9(0x1a3)](_0x316af9(0x166)),this[_0x316af9(0x1f3)][_0x48bfc7['uniqueid']]=_0x1e09e5));logger['info']('[%s][voiceQueueReport][varset]\x20name:%s\x20type:%s\x20variable:%s\x20value:%s',_0x48bfc7[_0x316af9(0x1f5)],_0x1e09e5['name'],_0x1e09e5[_0x316af9(0x1f0)],_[_0x316af9(0x1cb)](_0x48bfc7[_0x316af9(0x1ce)])[0x0],_0x48bfc7[_0x316af9(0x233)]),_0x1e09e5['variables']=this['variables'][_0x48bfc7['uniqueid']];}}}}catch(_0x580846){logger[_0x316af9(0x183)](_0x316af9(0x1d6),_0x48bfc7[_0x316af9(0x1f5)],util[_0x316af9(0x207)](_0x580846,{'showHidden':![],'depth':null}));}},VoiceQueueReport[a1266_0x16b02f(0x1da)][a1266_0x16b02f(0x178)]=function(_0x11e11c,_0x1f5306,_0x4e4341){const _0xf88c0e=a1266_0x16b02f,_0x4d8b13=[_0xf88c0e(0x16b),_0xf88c0e(0x1b5),_0xf88c0e(0x1e0),_0xf88c0e(0x1ae),_0xf88c0e(0x1a0),_0xf88c0e(0x1b6),'rtpaudioqosrtt',_0xf88c0e(0x1c7),_0xf88c0e(0x19c),_0xf88c0e(0x221),_0xf88c0e(0x202),_0xf88c0e(0x22d),_0xf88c0e(0x232),_0xf88c0e(0x1a8),_0xf88c0e(0x1ab),_0xf88c0e(0x1bc),_0xf88c0e(0x235),_0xf88c0e(0x224),_0xf88c0e(0x19b)];!_[_0xf88c0e(0x179)](_0x1f5306)&&!_[_0xf88c0e(0x162)](_0x4d8b13,_0x1f5306)&&(_[_0xf88c0e(0x18e)](this['variables'][_0x11e11c])&&(this[_0xf88c0e(0x18d)][_0x11e11c]={}),this['variables'][_0x11e11c][_0x1f5306]=_0x4e4341);},VoiceQueueReport[a1266_0x16b02f(0x1da)]['syncHangup']=function(_0x34b33c){const _0xe81cf1=a1266_0x16b02f;try{if(this[_0xe81cf1(0x182)](_0x34b33c)){logger[_0xe81cf1(0x1f7)](_0xe81cf1(0x1e2),_0x34b33c[_0xe81cf1(0x1f5)],util['inspect'](_0x34b33c,{'showHidden':![],'depth':null}));if(this[_0xe81cf1(0x200)][_0x34b33c[_0xe81cf1(0x1f5)]]){for(let _0x472985=0x0,_0x5ecda3={};_0x472985=0x0?moment(_0x519700[_0x37d54f(0x152)])[_0x37d54f(0x15e)](_0x519700[_0x37d54f(0x162)],_0x37d54f(0x163)):null,'data1':_0x37d54f(0x15b),'data2':_0x519700[_0x37d54f(0x150)],'data3':_0x519700[_0x37d54f(0x154)],'data4':_0x519700[_0x37d54f(0x166)]||null,'role':_0x37d54f(0x15c),'internal':_0x519700['accountcode']?_[_0x37d54f(0x14f)](_0x519700[_0x37d54f(0x150)]):undefined,'uniqueid':_0x519700[_0x37d54f(0x161)]},'log':'CreateMemberReport'});}; \ No newline at end of file +const a1287_0x4be4=['voiceQueueReport','accountcode','isNil','queuecallercompleteAt','TALKING','CreateMemberReport','starttime','voice','format','voiceDialReport','SIP/%s','membername','util','inbound','seconds','exten','interface','lodash','outbound','diff','uniqueid','../client','toNumber','endtime','lastAssignedTo','queuecallerleaveAt','Request'];(function(_0x3fa031,_0x43e339){const _0x4be485=function(_0x70b759){while(--_0x70b759){_0x3fa031['push'](_0x3fa031['shift']());}};_0x4be485(++_0x43e339);}(a1287_0x4be4,0xc1));const a1287_0x70b7=function(_0x3fa031,_0x43e339){_0x3fa031=_0x3fa031-0x10c;let _0x4be485=a1287_0x4be4[_0x3fa031];return _0x4be485;};const a1287_0x550c7d=a1287_0x70b7;'use strict';const moment=require('moment'),_=require(a1287_0x550c7d(0x119)),util=require(a1287_0x550c7d(0x114)),client=require(a1287_0x550c7d(0x11d));exports[a1287_0x550c7d(0x123)]=function(_0x1af681){const _0x4a1cfb=a1287_0x550c7d,_0x3b2e3d=_0x1af681[_0x4a1cfb(0x126)]||_0x1af681['queuecallerexitAt'];return client['Request'](_0x4a1cfb(0x10d),{'body':{'channel':'voice','membername':_0x1af681['lastAssignedTo'],'interface':_[_0x4a1cfb(0x125)](_0x1af681[_0x4a1cfb(0x118)])?util[_0x4a1cfb(0x110)](_0x4a1cfb(0x112),_0x1af681[_0x4a1cfb(0x120)]):_0x1af681[_0x4a1cfb(0x118)],'type':_0x4a1cfb(0x10c),'enterAt':_0x1af681[_0x4a1cfb(0x121)],'exitAt':_0x3b2e3d,'duration':moment(_0x3b2e3d)['diff'](_0x1af681[_0x4a1cfb(0x121)],_0x4a1cfb(0x116)),'data1':_0x4a1cfb(0x115),'data2':_0x1af681['calleridnum'],'data3':_0x1af681[_0x4a1cfb(0x117)],'data4':null,'data5':_0x1af681['queue'],'role':'agent','internal':_0x1af681['accountcode']?_[_0x4a1cfb(0x11e)](_0x1af681[_0x4a1cfb(0x124)]):undefined,'uniqueid':_0x1af681[_0x4a1cfb(0x11c)]},'log':_0x4a1cfb(0x10d)});},exports[a1287_0x550c7d(0x111)]=function(_0x4762d9){const _0x2c89d6=a1287_0x550c7d;return client[_0x2c89d6(0x122)](_0x2c89d6(0x10d),{'body':{'channel':_0x2c89d6(0x10f),'membername':_0x4762d9[_0x2c89d6(0x113)],'interface':_0x4762d9[_0x2c89d6(0x118)],'type':_0x2c89d6(0x10c),'enterAt':_0x4762d9[_0x2c89d6(0x10e)],'exitAt':_0x4762d9[_0x2c89d6(0x11f)],'duration':moment(_0x4762d9[_0x2c89d6(0x11f)])[_0x2c89d6(0x11b)](_0x4762d9[_0x2c89d6(0x10e)],_0x2c89d6(0x116))>=0x0?moment(_0x4762d9[_0x2c89d6(0x11f)])['diff'](_0x4762d9[_0x2c89d6(0x10e)],_0x2c89d6(0x116)):null,'data1':_0x2c89d6(0x11a),'data2':_0x4762d9['accountcode'],'data3':_0x4762d9[_0x2c89d6(0x117)],'data4':_0x4762d9['dialstring']||null,'role':'agent','internal':_0x4762d9['accountcode']?_['toNumber'](_0x4762d9[_0x2c89d6(0x124)]):undefined,'uniqueid':_0x4762d9[_0x2c89d6(0x11c)]},'log':_0x2c89d6(0x10d)});}; \ No newline at end of file diff --git a/server/services/ami/rpc/template.js b/server/services/ami/rpc/template.js index 93d8b6d..2b55344 100644 --- a/server/services/ami/rpc/template.js +++ b/server/services/ami/rpc/template.js @@ -1 +1 @@ -const a1288_0x5a00=['name','Request','getTemplates','html','GetTemplate'];(function(_0x40ef8c,_0x55d17e){const _0x5a00a8=function(_0x4fe526){while(--_0x4fe526){_0x40ef8c['push'](_0x40ef8c['shift']());}};_0x5a00a8(++_0x55d17e);}(a1288_0x5a00,0x104));const a1288_0x4fe5=function(_0x40ef8c,_0x55d17e){_0x40ef8c=_0x40ef8c-0xcb;let _0x5a00a8=a1288_0x5a00[_0x40ef8c];return _0x5a00a8;};const a1288_0x5e189b=a1288_0x4fe5;'use strict';const client=require('../client');exports[a1288_0x5e189b(0xcd)]=function(){return function(){const _0x252cc2=a1288_0x4fe5;return client[_0x252cc2(0xcc)]('GetTemplate',{'options':{'raw':!![],'attributes':['id',_0x252cc2(0xcb),_0x252cc2(0xce)]},'log':_0x252cc2(0xcf)});};}; \ No newline at end of file +const a1288_0x3d91=['getTemplates','../client','GetTemplate','Request'];(function(_0x182cdf,_0x45ceb8){const _0x3d91fd=function(_0x52764a){while(--_0x52764a){_0x182cdf['push'](_0x182cdf['shift']());}};_0x3d91fd(++_0x45ceb8);}(a1288_0x3d91,0x170));const a1288_0x5276=function(_0x182cdf,_0x45ceb8){_0x182cdf=_0x182cdf-0x117;let _0x3d91fd=a1288_0x3d91[_0x182cdf];return _0x3d91fd;};const a1288_0x9356ad=a1288_0x5276;'use strict';const client=require(a1288_0x9356ad(0x118));exports[a1288_0x9356ad(0x117)]=function(){return function(){const _0x176edb=a1288_0x5276;return client[_0x176edb(0x11a)](_0x176edb(0x119),{'options':{'raw':!![],'attributes':['id','name','html']},'log':_0x176edb(0x119)});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/trigger.js b/server/services/ami/rpc/trigger.js index 79aec27..72736ec 100644 --- a/server/services/ami/rpc/trigger.js +++ b/server/services/ami/rpc/trigger.js @@ -1 +1 @@ -const a1289_0xe878=['data6','data4','Action','field','Condition','data7','data3','name','channel','Actions','data2','value','data5','AnyConditions','getTriggers','GetTrigger','AllConditions'];(function(_0x118fbf,_0x541b46){const _0xe87826=function(_0x474df7){while(--_0x474df7){_0x118fbf['push'](_0x118fbf['shift']());}};_0xe87826(++_0x541b46);}(a1289_0xe878,0x6a));const a1289_0x474d=function(_0x118fbf,_0x541b46){_0x118fbf=_0x118fbf-0x1da;let _0xe87826=a1289_0xe878[_0x118fbf];return _0xe87826;};const a1289_0xc95919=a1289_0x474d;'use strict';const client=require('../client');exports[a1289_0xc95919(0x1e4)]=function(){return function(){const _0x53e94a=a1289_0x474d;return client['Request'](_0x53e94a(0x1e5),{'options':{'raw':![],'attributes':['id',_0x53e94a(0x1dd),_0x53e94a(0x1de),'status'],'include':[{'model':_0x53e94a(0x1da),'as':_0x53e94a(0x1e6),'attributes':['id','field','operator','value']},{'model':_0x53e94a(0x1da),'as':_0x53e94a(0x1e3),'attributes':['id',_0x53e94a(0x1ea),'operator',_0x53e94a(0x1e1)]},{'model':_0x53e94a(0x1e9),'as':_0x53e94a(0x1df),'attributes':['id','action','data1',_0x53e94a(0x1e0),_0x53e94a(0x1dc),_0x53e94a(0x1e8),_0x53e94a(0x1e2),_0x53e94a(0x1e7),_0x53e94a(0x1db)]}]},'log':'GetTrigger'});};}; \ No newline at end of file +const a1289_0x29ef=['data2','data5','Condition','field','operator','AnyConditions','GetTrigger','Request','channel','AllConditions','getTriggers','Actions','Action','value','data3','name'];(function(_0x10aff6,_0x22b468){const _0x29ef22=function(_0x543f88){while(--_0x543f88){_0x10aff6['push'](_0x10aff6['shift']());}};_0x29ef22(++_0x22b468);}(a1289_0x29ef,0x15a));const a1289_0x543f=function(_0x10aff6,_0x22b468){_0x10aff6=_0x10aff6-0x124;let _0x29ef22=a1289_0x29ef[_0x10aff6];return _0x29ef22;};const a1289_0x5692da=a1289_0x543f;'use strict';const client=require('../client');exports[a1289_0x5692da(0x124)]=function(){return function(){const _0x3c3222=a1289_0x543f;return client[_0x3c3222(0x131)]('GetTrigger',{'options':{'raw':![],'attributes':['id',_0x3c3222(0x129),_0x3c3222(0x132),'status'],'include':[{'model':_0x3c3222(0x12c),'as':_0x3c3222(0x133),'attributes':['id',_0x3c3222(0x12d),_0x3c3222(0x12e),_0x3c3222(0x127)]},{'model':_0x3c3222(0x12c),'as':_0x3c3222(0x12f),'attributes':['id',_0x3c3222(0x12d),'operator',_0x3c3222(0x127)]},{'model':_0x3c3222(0x126),'as':_0x3c3222(0x125),'attributes':['id','action','data1',_0x3c3222(0x12a),_0x3c3222(0x128),'data4',_0x3c3222(0x12b),'data6','data7']}]},'log':_0x3c3222(0x130)});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/trunk.js b/server/services/ami/rpc/trunk.js index f209499..0c04dc9 100644 --- a/server/services/ami/rpc/trunk.js +++ b/server/services/ami/rpc/trunk.js @@ -1 +1 @@ -const a1290_0x45d0=['GetTrunk','Request','registry','name','getTrunks'];(function(_0x372bf3,_0x5433c8){const _0x45d027=function(_0xcd224a){while(--_0xcd224a){_0x372bf3['push'](_0x372bf3['shift']());}};_0x45d027(++_0x5433c8);}(a1290_0x45d0,0x11c));const a1290_0xcd22=function(_0x372bf3,_0x5433c8){_0x372bf3=_0x372bf3-0x120;let _0x45d027=a1290_0x45d0[_0x372bf3];return _0x45d027;};const a1290_0x4ac01f=a1290_0xcd22;'use strict';const client=require('../client');exports[a1290_0x4ac01f(0x120)]=function(){return function(){const _0x4906ea=a1290_0xcd22;return client[_0x4906ea(0x122)](_0x4906ea(0x121),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x4906ea(0x124),_0x4906ea(0x123)]},'log':_0x4906ea(0x121)});};}; \ No newline at end of file +const a1290_0x2884=['Request','GetTrunk','../client','name'];(function(_0x1e62aa,_0x12c53c){const _0x288403=function(_0x1376e3){while(--_0x1376e3){_0x1e62aa['push'](_0x1e62aa['shift']());}};_0x288403(++_0x12c53c);}(a1290_0x2884,0xe0));const a1290_0x1376=function(_0x1e62aa,_0x12c53c){_0x1e62aa=_0x1e62aa-0x1d5;let _0x288403=a1290_0x2884[_0x1e62aa];return _0x288403;};const a1290_0x1518d3=a1290_0x1376;'use strict';const client=require(a1290_0x1518d3(0x1d7));exports['getTrunks']=function(){return function(){const _0x4c81ad=a1290_0x1376;return client[_0x4c81ad(0x1d5)]('GetTrunk',{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x4c81ad(0x1d8),'registry']},'log':_0x4c81ad(0x1d6)});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/user.js b/server/services/ami/rpc/user.js index 6bf0789..8305244 100644 --- a/server/services/ami/rpc/user.js +++ b/server/services/ami/rpc/user.js @@ -1 +1 @@ -const a1291_0x44c7=['agent','savePause','voicePause','UnpauseUser','accountcode','Request','interface','fullname','getAgents','lastLoginAt','pauseType','internal','getAgent','saveUnpause','email','phone','telephone','ShowUser','GetUser','name','getTelephones','lastPauseAt'];(function(_0xc1d8d0,_0x2df56d){const _0x44c72a=function(_0x5d4f4c){while(--_0x5d4f4c){_0xc1d8d0['push'](_0xc1d8d0['shift']());}};_0x44c72a(++_0x2df56d);}(a1291_0x44c7,0x1c1));const a1291_0x5d4f=function(_0xc1d8d0,_0x2df56d){_0xc1d8d0=_0xc1d8d0-0x1a2;let _0x44c72a=a1291_0x44c7[_0xc1d8d0];return _0x44c72a;};const a1291_0x4d5455=a1291_0x5d4f;'use strict';const client=require('../client');exports['getAgents']=function(){return function(){const _0x5b0b55=a1291_0x5d4f;return client[_0x5b0b55(0x1b4)](_0x5b0b55(0x1ab),{'options':{'raw':![],'where':{'role':_0x5b0b55(0x1af)},'attributes':['id','name',_0x5b0b55(0x1a7),_0x5b0b55(0x1b3),_0x5b0b55(0x1b6),'online',_0x5b0b55(0x1a2),_0x5b0b55(0x1a3),'lastPauseAt',_0x5b0b55(0x1b1),_0x5b0b55(0x1a8),'mobile',_0x5b0b55(0x1b5)]},'log':_0x5b0b55(0x1b7)});};},exports[a1291_0x4d5455(0x1ad)]=function(){return function(){const _0x1c1a9d=a1291_0x5d4f;return client['Request'](_0x1c1a9d(0x1ab),{'options':{'raw':!![],'where':{'role':_0x1c1a9d(0x1a9)},'attributes':['id','name',_0x1c1a9d(0x1b3),_0x1c1a9d(0x1a4)]},'log':_0x1c1a9d(0x1ad)});};},exports[a1291_0x4d5455(0x1b0)]=function(_0x29af69,_0x485780,_0x3b050c){const _0x32eff7=a1291_0x4d5455;return client[_0x32eff7(0x1b4)]('PauseUser',{'body':{'type':_0x485780,'uniqueid':_0x3b050c},'options':{'where':{'id':_0x29af69['id']}},'log':_0x32eff7(0x1b0)});},exports[a1291_0x4d5455(0x1a6)]=function(_0x1b9989){const _0x182e95=a1291_0x4d5455;return client[_0x182e95(0x1b4)](_0x182e95(0x1b2),{'body':{},'options':{'where':{'id':_0x1b9989['id']}},'log':_0x182e95(0x1b0)});},exports[a1291_0x4d5455(0x1a5)]=function(_0x36822b){const _0x382911=a1291_0x4d5455;return client['Request'](_0x382911(0x1aa),{'options':{'raw':![],'where':{'role':_0x382911(0x1af),'id':_0x36822b},'attributes':['id',_0x382911(0x1ac),_0x382911(0x1a7),_0x382911(0x1b3),_0x382911(0x1b6),'online',_0x382911(0x1a2),'pauseType',_0x382911(0x1ae),_0x382911(0x1b1),_0x382911(0x1b5)]},'log':_0x382911(0x1a5)});}; \ No newline at end of file +const a1291_0x53b6=['../client','voicePause','ShowUser','getTelephones','email','mobile','GetUser','name','saveUnpause','lastPauseAt','internal','lastLoginAt','savePause','PauseUser','phone','interface','getAgent','Request','telephone','accountcode','UnpauseUser','online','pauseType','fullname','agent'];(function(_0xe08234,_0x2e812a){const _0x53b6c2=function(_0x1426aa){while(--_0x1426aa){_0xe08234['push'](_0xe08234['shift']());}};_0x53b6c2(++_0x2e812a);}(a1291_0x53b6,0xd5));const a1291_0x1426=function(_0xe08234,_0x2e812a){_0xe08234=_0xe08234-0x158;let _0x53b6c2=a1291_0x53b6[_0xe08234];return _0x53b6c2;};const a1291_0xd6cd05=a1291_0x1426;'use strict';const client=require(a1291_0xd6cd05(0x164));exports['getAgents']=function(){return function(){const _0x1ac3a1=a1291_0x1426;return client['Request'](_0x1ac3a1(0x16a),{'options':{'raw':![],'where':{'role':_0x1ac3a1(0x163)},'attributes':['id',_0x1ac3a1(0x16b),'email',_0x1ac3a1(0x15e),_0x1ac3a1(0x162),'online',_0x1ac3a1(0x16f),'pauseType',_0x1ac3a1(0x16d),_0x1ac3a1(0x165),_0x1ac3a1(0x159),_0x1ac3a1(0x169),_0x1ac3a1(0x15a)]},'log':'getAgents'});};},exports[a1291_0xd6cd05(0x167)]=function(){return function(){const _0x4e06db=a1291_0x1426;return client[_0x4e06db(0x15c)]('GetUser',{'options':{'raw':!![],'where':{'role':_0x4e06db(0x15d)},'attributes':['id',_0x4e06db(0x16b),'accountcode',_0x4e06db(0x16e)]},'log':_0x4e06db(0x167)});};},exports['savePause']=function(_0xd0fe2a,_0x3f836b,_0x36728c){const _0x1fa108=a1291_0xd6cd05;return client[_0x1fa108(0x15c)](_0x1fa108(0x158),{'body':{'type':_0x3f836b,'uniqueid':_0x36728c},'options':{'where':{'id':_0xd0fe2a['id']}},'log':'savePause'});},exports[a1291_0xd6cd05(0x16c)]=function(_0x2bacdc){const _0x457ce1=a1291_0xd6cd05;return client['Request'](_0x457ce1(0x15f),{'body':{},'options':{'where':{'id':_0x2bacdc['id']}},'log':_0x457ce1(0x170)});},exports[a1291_0xd6cd05(0x15b)]=function(_0x158bce){const _0x1afc65=a1291_0xd6cd05;return client[_0x1afc65(0x15c)](_0x1afc65(0x166),{'options':{'raw':![],'where':{'role':_0x1afc65(0x163),'id':_0x158bce},'attributes':['id',_0x1afc65(0x16b),_0x1afc65(0x168),_0x1afc65(0x15e),_0x1afc65(0x162),_0x1afc65(0x160),_0x1afc65(0x16f),_0x1afc65(0x161),'lastPauseAt','voicePause',_0x1afc65(0x15a)]},'log':_0x1afc65(0x15b)});}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceAgentReport.js b/server/services/ami/rpc/voiceAgentReport.js index d624d29..4b701e1 100644 --- a/server/services/ami/rpc/voiceAgentReport.js +++ b/server/services/ami/rpc/voiceAgentReport.js @@ -1 +1 @@ -const a1292_0x5df0=['update','../client','CreateVoiceAgentReport','UpdateVoiceAgentReport','create'];(function(_0x15b74a,_0x19deeb){const _0x5df012=function(_0x4a8647){while(--_0x4a8647){_0x15b74a['push'](_0x15b74a['shift']());}};_0x5df012(++_0x19deeb);}(a1292_0x5df0,0x1cd));const a1292_0x4a86=function(_0x15b74a,_0x19deeb){_0x15b74a=_0x15b74a-0x187;let _0x5df012=a1292_0x5df0[_0x15b74a];return _0x5df012;};const a1292_0x504c21=a1292_0x4a86;'use strict';const client=require(a1292_0x504c21(0x187));exports[a1292_0x504c21(0x18a)]=function(_0x2caab3){const _0x4f538b=a1292_0x504c21;return client['Request'](_0x4f538b(0x188),{'body':_0x2caab3,'log':_0x4f538b(0x188)});},exports[a1292_0x504c21(0x18b)]=function(_0x47eff1,_0x2f497d,_0x541eae){const _0xdd26f4=a1292_0x504c21;return client['Request'](_0xdd26f4(0x189),{'body':_0x47eff1,'options':{'where':{'uniqueid':_0x2f497d,'interface':_0x541eae,'agentcomplete':!![]}},'log':_0xdd26f4(0x189)});}; \ No newline at end of file +const a1292_0x47bd=['Request','CreateVoiceAgentReport','create','UpdateVoiceAgentReport'];(function(_0xbb810a,_0x48bb54){const _0x47bde5=function(_0x46dd68){while(--_0x46dd68){_0xbb810a['push'](_0xbb810a['shift']());}};_0x47bde5(++_0x48bb54);}(a1292_0x47bd,0xc7));const a1292_0x46dd=function(_0xbb810a,_0x48bb54){_0xbb810a=_0xbb810a-0x15b;let _0x47bde5=a1292_0x47bd[_0xbb810a];return _0x47bde5;};const a1292_0x33c158=a1292_0x46dd;'use strict';const client=require('../client');exports[a1292_0x33c158(0x15e)]=function(_0x32746f){const _0x2d8a4b=a1292_0x33c158;return client[_0x2d8a4b(0x15c)](_0x2d8a4b(0x15d),{'body':_0x32746f,'log':_0x2d8a4b(0x15d)});},exports['update']=function(_0x140ecb,_0x59259c,_0x58c24b){const _0x884255=a1292_0x33c158;return client[_0x884255(0x15c)](_0x884255(0x15b),{'body':_0x140ecb,'options':{'where':{'uniqueid':_0x59259c,'interface':_0x58c24b,'agentcomplete':!![]}},'log':'UpdateVoiceAgentReport'});}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceCallReport.js b/server/services/ami/rpc/voiceCallReport.js index f093a8a..4c77bfe 100644 --- a/server/services/ami/rpc/voiceCallReport.js +++ b/server/services/ami/rpc/voiceCallReport.js @@ -1 +1 @@ -const a1293_0x5ba9=['format','lodash','YYYY-MM-DD\x20HH:mm:ss','CreateVoiceCallReport','callerid','Request','duration','billableseconds','DOCUMENTATION','create','calleridnum','day','merge','startOf','outbound'];(function(_0x270457,_0x2a7e41){const _0x5ba9b9=function(_0x3e14bc){while(--_0x3e14bc){_0x270457['push'](_0x270457['shift']());}};_0x5ba9b9(++_0x2a7e41);}(a1293_0x5ba9,0x87));const a1293_0x3e14=function(_0x270457,_0x2a7e41){_0x270457=_0x270457-0x191;let _0x5ba9b9=a1293_0x5ba9[_0x270457];return _0x5ba9b9;};const a1293_0x3208ea=a1293_0x3e14;'use strict';const moment=require('moment'),_=require(a1293_0x3208ea(0x192)),client=require('../client');exports[a1293_0x3208ea(0x19a)]=function(_0x566c2d){const _0x563521=a1293_0x3208ea;return client[_0x563521(0x196)](_0x563521(0x194),{'body':_[_0x563521(0x19d)](_0x566c2d,{'source':_0x566c2d[_0x563521(0x19b)],'destinationcontext':_0x566c2d['context'],'callerid':_0x566c2d[_0x563521(0x195)],'amaflags':_0x563521(0x199)}),'log':_0x563521(0x194)});},exports['getVoiceCallReports']=function(){return function(){const _0x446705=a1293_0x3e14;return client[_0x446705(0x196)]('GetVoiceCallReport',{'options':{'where':{'type':[_0x446705(0x19f)],'createdAt':{'$between':[moment()[_0x446705(0x19e)](_0x446705(0x19c))[_0x446705(0x191)](_0x446705(0x193)),moment()['endOf']('day')[_0x446705(0x191)]('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':['type','disposition',_0x446705(0x197),_0x446705(0x198)]},'log':'GetVoiceCallReports'});};}; \ No newline at end of file +const a1293_0xfcb9=['billableseconds','day','Request','CreateVoiceCallReport','duration','disposition','getVoiceCallReports','calleridnum','endOf','create','format','GetVoiceCallReports','outbound','DOCUMENTATION','YYYY-MM-DD\x20HH:mm:ss','callerid','context','lodash','startOf','moment'];(function(_0x52117d,_0xeb3b1b){const _0xfcb9b7=function(_0x5af5c8){while(--_0x5af5c8){_0x52117d['push'](_0x52117d['shift']());}};_0xfcb9b7(++_0xeb3b1b);}(a1293_0xfcb9,0x1d0));const a1293_0x5af5=function(_0x52117d,_0xeb3b1b){_0x52117d=_0x52117d-0x87;let _0xfcb9b7=a1293_0xfcb9[_0x52117d];return _0xfcb9b7;};const a1293_0x5734e5=a1293_0x5af5;'use strict';const moment=require(a1293_0x5734e5(0x96)),_=require(a1293_0x5734e5(0x94)),client=require('../client');exports[a1293_0x5734e5(0x8c)]=function(_0x433d09){const _0x59dc23=a1293_0x5734e5;return client[_0x59dc23(0x99)](_0x59dc23(0x9a),{'body':_['merge'](_0x433d09,{'source':_0x433d09[_0x59dc23(0x8a)],'destinationcontext':_0x433d09[_0x59dc23(0x93)],'callerid':_0x433d09[_0x59dc23(0x92)],'amaflags':_0x59dc23(0x90)}),'log':_0x59dc23(0x9a)});},exports[a1293_0x5734e5(0x89)]=function(){return function(){const _0x12dc68=a1293_0x5af5;return client[_0x12dc68(0x99)]('GetVoiceCallReport',{'options':{'where':{'type':[_0x12dc68(0x8f)],'createdAt':{'$between':[moment()[_0x12dc68(0x95)](_0x12dc68(0x98))[_0x12dc68(0x8d)](_0x12dc68(0x91)),moment()[_0x12dc68(0x8b)](_0x12dc68(0x98))[_0x12dc68(0x8d)](_0x12dc68(0x91))]}},'attributes':['type',_0x12dc68(0x88),_0x12dc68(0x87),_0x12dc68(0x97)]},'log':_0x12dc68(0x8e)});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceDialReport.js b/server/services/ami/rpc/voiceDialReport.js index 8cd60da..e56508a 100644 --- a/server/services/ami/rpc/voiceDialReport.js +++ b/server/services/ami/rpc/voiceDialReport.js @@ -1 +1 @@ -const a1294_0x59a6=['CreateVoiceDialReport','Request'];(function(_0x26d8b5,_0x595b53){const _0x59a640=function(_0x3cce0d){while(--_0x3cce0d){_0x26d8b5['push'](_0x26d8b5['shift']());}};_0x59a640(++_0x595b53);}(a1294_0x59a6,0x1d6));const a1294_0x3cce=function(_0x26d8b5,_0x595b53){_0x26d8b5=_0x26d8b5-0x174;let _0x59a640=a1294_0x59a6[_0x26d8b5];return _0x59a640;};'use strict';const client=require('../client');exports['create']=function(_0x472cd5){const _0x2a5aff=a1294_0x3cce;return client[_0x2a5aff(0x175)](_0x2a5aff(0x174),{'body':_0x472cd5,'log':_0x2a5aff(0x174)});}; \ No newline at end of file +const a1294_0x5c31=['create','CreateVoiceDialReport','../client','Request'];(function(_0x1161e6,_0x4c1fe0){const _0x5c3137=function(_0x320a00){while(--_0x320a00){_0x1161e6['push'](_0x1161e6['shift']());}};_0x5c3137(++_0x4c1fe0);}(a1294_0x5c31,0x1c6));const a1294_0x320a=function(_0x1161e6,_0x4c1fe0){_0x1161e6=_0x1161e6-0x161;let _0x5c3137=a1294_0x5c31[_0x1161e6];return _0x5c3137;};const a1294_0x3c1100=a1294_0x320a;'use strict';const client=require(a1294_0x3c1100(0x161));exports[a1294_0x3c1100(0x163)]=function(_0x31ac0b){const _0x2c84f8=a1294_0x3c1100;return client[_0x2c84f8(0x162)](_0x2c84f8(0x164),{'body':_0x31ac0b,'log':'CreateVoiceDialReport'});}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceExtension.js b/server/services/ami/rpc/voiceExtension.js index e77ba86..5ed208e 100644 --- a/server/services/ami/rpc/voiceExtension.js +++ b/server/services/ami/rpc/voiceExtension.js @@ -1 +1 @@ -const a1295_0x26ba=['../client','Request','recordingFormat','getVoiceExtensions','GetVoiceExtension'];(function(_0x11faee,_0x5dbdb1){const _0x26ba6d=function(_0x1d2caf){while(--_0x1d2caf){_0x11faee['push'](_0x11faee['shift']());}};_0x26ba6d(++_0x5dbdb1);}(a1295_0x26ba,0xfc));const a1295_0x1d2c=function(_0x11faee,_0x5dbdb1){_0x11faee=_0x11faee-0xc7;let _0x26ba6d=a1295_0x26ba[_0x11faee];return _0x26ba6d;};const a1295_0x383a7=a1295_0x1d2c;'use strict';const client=require(a1295_0x383a7(0xca));exports[a1295_0x383a7(0xc8)]=function(){return function(){const _0x10c3c2=a1295_0x1d2c;return client[_0x10c3c2(0xcb)](_0x10c3c2(0xc9),{'options':{'raw':!![],'attributes':['id','exten',_0x10c3c2(0xc7)],'where':{'VoiceExtensionId':null}},'log':'getVoiceExtensions'});};}; \ No newline at end of file +const a1295_0xe632=['exten','GetVoiceExtension','recordingFormat','../client'];(function(_0x6cb94f,_0x16bae2){const _0xe632c4=function(_0x5227dd){while(--_0x5227dd){_0x6cb94f['push'](_0x6cb94f['shift']());}};_0xe632c4(++_0x16bae2);}(a1295_0xe632,0x97));const a1295_0x5227=function(_0x6cb94f,_0x16bae2){_0x6cb94f=_0x6cb94f-0xb7;let _0xe632c4=a1295_0xe632[_0x6cb94f];return _0xe632c4;};const a1295_0x3c9c81=a1295_0x5227;'use strict';const client=require(a1295_0x3c9c81(0xb7));exports['getVoiceExtensions']=function(){return function(){const _0x3646ee=a1295_0x5227;return client['Request'](_0x3646ee(0xb9),{'options':{'raw':!![],'attributes':['id',_0x3646ee(0xb8),_0x3646ee(0xba)],'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 cf0c081..ffea0a2 100644 --- a/server/services/ami/rpc/voiceQueue.js +++ b/server/services/ami/rpc/voiceQueue.js @@ -1 +1 @@ -const a1296_0xa367=['dialNoSuchNumberMaxRetry','dialPredictiveIntervalMinThreshold','TrunkBackup','dialMachineRetryFrequency','dialQueueProject2','dialAbandonedMaxRetry','dialAgentRejectMaxRetry','dialMachineMaxRetry','dialAMDSilenceThreshold','dialAMDGreeting','dialPrefix','dialGlobalMaxRetry','strategy','dialPredictiveInterval','dialDropMaxRetry','dialAgiAfterHangupAgent','dialQueueOptions','dialAbandonedRetryFrequency','dialCongestionRetryFrequency','dialRecallInQueue','timeout','../client','dialNoSuchNumberRetryFrequency','monitor_format','dialCutDigit','dialAMDMaximumNumberOfWords','dialAMDBetweenWordsSilence','interval','dialPredictiveOptimizationPercentage','Trunk','dialLimitChannel','callerid','autopause','name','dialAgiAfterHangupClient','dialMethod','dialNoAnswerMaxRetry','dialDropRetryFrequency','dialAMDInitialSilence','mandatoryDispositionPause','dialBusyMaxRetry','dialActive','dialAMDAfterGreetingSilence','dialQueueTimeout','dialAMDMaximumWordLength','dialOriginateCallerIdName','dialAMDActive','active','dialCongestionMaxRetry','dialGlobalInterval','dialAMDTotalAnalysisTime','dialOrderByScheduledAt','Interval','getVoiceQueues','acw','dialRandomLastDigitCallerIdNumber','GetVoiceQueue'];(function(_0x516914,_0x29d8c5){const _0xa36770=function(_0x205363){while(--_0x205363){_0x516914['push'](_0x516914['shift']());}};_0xa36770(++_0x29d8c5);}(a1296_0xa367,0x94));const a1296_0x2053=function(_0x516914,_0x29d8c5){_0x516914=_0x516914-0x8d;let _0xa36770=a1296_0xa367[_0x516914];return _0xa36770;};const a1296_0x894e7c=a1296_0x2053;'use strict';const client=require(a1296_0x894e7c(0xb9));exports[a1296_0x894e7c(0xa0)]=function(){return function(){const _0x5aa256=a1296_0x2053;return client['Request'](_0x5aa256(0xa3),{'options':{'raw':![],'attributes':['id','name',_0x5aa256(0xa1),'acwTimeout',_0x5aa256(0xc4),_0x5aa256(0xbb),'type',_0x5aa256(0x94),_0x5aa256(0x8e),_0x5aa256(0xc2),'dialLimitQueue','dialPowerLevel','dialPredictiveOptimization',_0x5aa256(0xc0),_0x5aa256(0xb1),_0x5aa256(0x98),'dialOriginateCallerIdNumber','dialOriginateTimeout',_0x5aa256(0xb4),_0x5aa256(0x96),'dialQueueProject',_0x5aa256(0x9b),_0x5aa256(0xb6),_0x5aa256(0x93),'dialBusyRetryFrequency',_0x5aa256(0x8f),'dialNoAnswerRetryFrequency',_0x5aa256(0xaf),'dialTimezone',_0x5aa256(0x9c),_0x5aa256(0xae),'dialCheckDuplicateType',_0x5aa256(0x99),_0x5aa256(0x91),_0x5aa256(0xad),_0x5aa256(0x95),_0x5aa256(0x9d),'dialAMDMinWordLength',_0x5aa256(0xbe),_0x5aa256(0xbd),_0x5aa256(0xac),_0x5aa256(0x97),_0x5aa256(0xb8),'dialRecallMeTimeout',_0x5aa256(0xb7),_0x5aa256(0x9e),_0x5aa256(0xb3),_0x5aa256(0x8d),_0x5aa256(0xa8),'monitor_format',_0x5aa256(0xb0),_0x5aa256(0xa2),_0x5aa256(0xbc),_0x5aa256(0xa4),_0x5aa256(0xba),_0x5aa256(0xb2),_0x5aa256(0x90),_0x5aa256(0xa9),_0x5aa256(0xb5),_0x5aa256(0xab),_0x5aa256(0xa7),_0x5aa256(0xaa),'dialAgentRejectRetryFrequency','mandatoryDisposition','dialPredictiveIntervalMaxThreshold',_0x5aa256(0xa5)],'include':[{'model':_0x5aa256(0xc1),'as':_0x5aa256(0xc1),'attributes':['id',_0x5aa256(0xc5),'callerid',_0x5aa256(0x9a)]},{'model':'Pause','as':_0x5aa256(0x92),'attributes':['id','name']},{'model':'Trunk','as':_0x5aa256(0xa6),'attributes':['id',_0x5aa256(0xc5),_0x5aa256(0xc3),'active']},{'model':_0x5aa256(0x9f),'as':'Interval','attributes':['id',_0x5aa256(0xc5)],'include':[{'model':_0x5aa256(0x9f),'as':'Intervals','attributes':['id',_0x5aa256(0xc5),_0x5aa256(0xbf)]}]}]},'log':_0x5aa256(0xa0)});};}; \ No newline at end of file +const a1296_0x4670=['Intervals','dialPredictiveInterval','dialAMDGreeting','acwTimeout','callerid','dialGlobalMaxRetry','mandatoryDisposition','dialAMDBetweenWordsSilence','dialAgiAfterHangupClient','dialPredictiveIntervalMinThreshold','dialAMDInitialSilence','dialRecallMeTimeout','Pause','dialPowerLevel','dialActive','dialNoSuchNumberRetryFrequency','GetVoiceQueue','dialQueueOptions','dialQueueTimeout','dialCongestionMaxRetry','name','dialMethod','dialRecallInQueue','dialAMDSilenceThreshold','dialAMDMinWordLength','dialNoSuchNumberMaxRetry','dialAbandonedMaxRetry','dialAgiAfterHangupAgent','dialLimitChannel','monitor_format','dialMachineRetryFrequency','dialCongestionRetryFrequency','Interval','dialAMDMaximumWordLength','Trunk','active','dialRandomLastDigitCallerIdNumber','dialAgentRejectMaxRetry','dialGlobalInterval','dialPredictiveOptimization','dialBusyMaxRetry','dialOriginateTimeout','dialAMDAfterGreetingSilence','TrunkBackup','dialAMDMaximumNumberOfWords','dialOriginateCallerIdNumber','dialAgentRejectRetryFrequency','dialCheckDuplicateType','dialNoAnswerRetryFrequency','dialLimitQueue','timeout','dialAbandonedRetryFrequency','getVoiceQueues','autopause','../client','interval','dialCutDigit','strategy'];(function(_0x2037d6,_0x1f3a78){const _0x4670b8=function(_0x50da13){while(--_0x50da13){_0x2037d6['push'](_0x2037d6['shift']());}};_0x4670b8(++_0x1f3a78);}(a1296_0x4670,0x6f));const a1296_0x50da=function(_0x2037d6,_0x1f3a78){_0x2037d6=_0x2037d6-0xf0;let _0x4670b8=a1296_0x4670[_0x2037d6];return _0x4670b8;};const a1296_0x36954b=a1296_0x50da;'use strict';const client=require(a1296_0x36954b(0xf1));exports[a1296_0x36954b(0x129)]=function(){return function(){const _0x3cce6f=a1296_0x50da;return client['Request'](_0x3cce6f(0x105),{'options':{'raw':![],'attributes':['id',_0x3cce6f(0x109),'acw',_0x3cce6f(0xf8),_0x3cce6f(0xf0),_0x3cce6f(0x112),'type',_0x3cce6f(0x103),_0x3cce6f(0x10a),_0x3cce6f(0x111),_0x3cce6f(0x126),_0x3cce6f(0x102),_0x3cce6f(0x11c),'dialPredictiveOptimizationPercentage',_0x3cce6f(0xf6),'dialOriginateCallerIdName',_0x3cce6f(0x122),_0x3cce6f(0x11e),_0x3cce6f(0x106),_0x3cce6f(0x107),'dialQueueProject',_0x3cce6f(0x108),_0x3cce6f(0x114),_0x3cce6f(0x11d),'dialBusyRetryFrequency','dialNoAnswerMaxRetry',_0x3cce6f(0x125),_0x3cce6f(0xfa),'dialTimezone',_0x3cce6f(0x11b),'dialPrefix',_0x3cce6f(0x124),'dialAMDActive',_0x3cce6f(0xff),_0x3cce6f(0xf7),_0x3cce6f(0x11f),'dialAMDTotalAnalysisTime',_0x3cce6f(0x10d),_0x3cce6f(0xfc),_0x3cce6f(0x121),_0x3cce6f(0x10c),_0x3cce6f(0x116),_0x3cce6f(0x127),_0x3cce6f(0x100),_0x3cce6f(0x10b),'dialOrderByScheduledAt',_0x3cce6f(0x110),_0x3cce6f(0xfd),'dialQueueProject2',_0x3cce6f(0x112),_0x3cce6f(0xf4),_0x3cce6f(0x119),_0x3cce6f(0xf3),_0x3cce6f(0x10e),_0x3cce6f(0x104),'dialDropMaxRetry','dialDropRetryFrequency',_0x3cce6f(0x10f),_0x3cce6f(0x128),'dialMachineMaxRetry',_0x3cce6f(0x113),_0x3cce6f(0x11a),_0x3cce6f(0x123),_0x3cce6f(0xfb),'dialPredictiveIntervalMaxThreshold',_0x3cce6f(0xfe)],'include':[{'model':_0x3cce6f(0x117),'as':'Trunk','attributes':['id','name','callerid',_0x3cce6f(0x118)]},{'model':_0x3cce6f(0x101),'as':'mandatoryDispositionPause','attributes':['id','name']},{'model':_0x3cce6f(0x117),'as':_0x3cce6f(0x120),'attributes':['id',_0x3cce6f(0x109),_0x3cce6f(0xf9),_0x3cce6f(0x118)]},{'model':_0x3cce6f(0x115),'as':_0x3cce6f(0x115),'attributes':['id',_0x3cce6f(0x109)],'include':[{'model':'Interval','as':_0x3cce6f(0xf5),'attributes':['id','name',_0x3cce6f(0xf2)]}]}]},'log':_0x3cce6f(0x129)});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceQueueReport.js b/server/services/ami/rpc/voiceQueueReport.js index 7d4c7a3..5b92312 100644 --- a/server/services/ami/rpc/voiceQueueReport.js +++ b/server/services/ami/rpc/voiceQueueReport.js @@ -1 +1 @@ -const a1297_0x1ee2=['queuecallerabandon','format','queuecallerabandonAt','queuecallerexit','../client','Request','queuecallerjoinAt','GetVoiceQueueReport','queuecallerexitAt','day','YYYY-MM-DD\x20HH:mm:ss','CreateVoiceQueueReport'];(function(_0x1b8dd9,_0x5b7e07){const _0x1ee2eb=function(_0x498807){while(--_0x498807){_0x1b8dd9['push'](_0x1b8dd9['shift']());}};_0x1ee2eb(++_0x5b7e07);}(a1297_0x1ee2,0x114));const a1297_0x4988=function(_0x1b8dd9,_0x5b7e07){_0x1b8dd9=_0x1b8dd9-0x143;let _0x1ee2eb=a1297_0x1ee2[_0x1b8dd9];return _0x1ee2eb;};const a1297_0xdaab64=a1297_0x4988;'use strict';const moment=require('moment'),client=require(a1297_0xdaab64(0x147));exports['create']=function(_0x250f59){const _0x31a6d1=a1297_0xdaab64;return client[_0x31a6d1(0x148)](_0x31a6d1(0x14e),{'body':_0x250f59,'log':_0x31a6d1(0x14e)});},exports['getVoiceQueueReports']=function(){return function(){const _0x180ba2=a1297_0x4988;return client['Request'](_0x180ba2(0x14a),{'options':{'where':{'createdAt':{'$between':[moment()['startOf'](_0x180ba2(0x14c))[_0x180ba2(0x144)](_0x180ba2(0x14d)),moment()['endOf']('day')[_0x180ba2(0x144)](_0x180ba2(0x14d))]}},'attributes':['uniqueid','queue',_0x180ba2(0x149),'queuecallerleaveAt','queuecallercomplete','queuecallercompleteAt',_0x180ba2(0x146),_0x180ba2(0x14b),_0x180ba2(0x143),_0x180ba2(0x145)]},'log':'GetVoiceQueueReports'});};}; \ No newline at end of file +const a1297_0x29a3=['GetVoiceQueueReports','day','queuecallerexit','format','create','queuecallerleaveAt','queuecallerabandonAt','queue','getVoiceQueueReports','GetVoiceQueueReport','YYYY-MM-DD\x20HH:mm:ss','queuecallerexitAt','queuecallerabandon','queuecallercomplete','startOf','moment','uniqueid','../client','queuecallercompleteAt','Request','queuecallerjoinAt','CreateVoiceQueueReport'];(function(_0xce9403,_0x5e4ba8){const _0x29a302=function(_0x7ccadb){while(--_0x7ccadb){_0xce9403['push'](_0xce9403['shift']());}};_0x29a302(++_0x5e4ba8);}(a1297_0x29a3,0x15c));const a1297_0x7cca=function(_0xce9403,_0x5e4ba8){_0xce9403=_0xce9403-0xeb;let _0x29a302=a1297_0x29a3[_0xce9403];return _0x29a302;};const a1297_0x2e28d1=a1297_0x7cca;'use strict';const moment=require(a1297_0x2e28d1(0xfe)),client=require(a1297_0x2e28d1(0x100));exports[a1297_0x2e28d1(0xf3)]=function(_0x49cab9){const _0x56b583=a1297_0x2e28d1;return client['Request'](_0x56b583(0xee),{'body':_0x49cab9,'log':_0x56b583(0xee)});},exports[a1297_0x2e28d1(0xf7)]=function(){return function(){const _0x2cdb46=a1297_0x7cca;return client[_0x2cdb46(0xec)](_0x2cdb46(0xf8),{'options':{'where':{'createdAt':{'$between':[moment()[_0x2cdb46(0xfd)](_0x2cdb46(0xf0))[_0x2cdb46(0xf2)](_0x2cdb46(0xf9)),moment()['endOf'](_0x2cdb46(0xf0))[_0x2cdb46(0xf2)](_0x2cdb46(0xf9))]}},'attributes':[_0x2cdb46(0xff),_0x2cdb46(0xf6),_0x2cdb46(0xed),_0x2cdb46(0xf4),_0x2cdb46(0xfc),_0x2cdb46(0xeb),_0x2cdb46(0xf1),_0x2cdb46(0xfa),_0x2cdb46(0xfb),_0x2cdb46(0xf5)]},'log':_0x2cdb46(0xef)});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceQueueRt.js b/server/services/ami/rpc/voiceQueueRt.js index 62b82c6..7fba086 100644 --- a/server/services/ami/rpc/voiceQueueRt.js +++ b/server/services/ami/rpc/voiceQueueRt.js @@ -1 +1 @@ -const a1298_0x40ca=['getVoiceQueueRtPauses','GetVoiceQueueRtPauses','Request','../client'];(function(_0x2eaf94,_0x552a81){const _0x40ca3c=function(_0x35788c){while(--_0x35788c){_0x2eaf94['push'](_0x2eaf94['shift']());}};_0x40ca3c(++_0x552a81);}(a1298_0x40ca,0x68));const a1298_0x3578=function(_0x2eaf94,_0x552a81){_0x2eaf94=_0x2eaf94-0x112;let _0x40ca3c=a1298_0x40ca[_0x2eaf94];return _0x40ca3c;};const a1298_0x221d3d=a1298_0x3578;'use strict';const client=require(a1298_0x221d3d(0x115));exports[a1298_0x221d3d(0x112)]=function(_0x1c2ada){return function(){const _0x51cabc=a1298_0x3578;return client[_0x51cabc(0x114)](_0x51cabc(0x113),{'options':{'where':{'VoiceQueueId':_0x1c2ada,'paused':!![]},'raw':!![]},'log':'getVoiceQueueRtPauses'});};}; \ No newline at end of file +const a1298_0x3a0b=['Request','getVoiceQueueRtPauses','../client','GetVoiceQueueRtPauses'];(function(_0x2e6003,_0x115b4c){const _0x3a0bc0=function(_0x4dbe68){while(--_0x4dbe68){_0x2e6003['push'](_0x2e6003['shift']());}};_0x3a0bc0(++_0x115b4c);}(a1298_0x3a0b,0x162));const a1298_0x4dbe=function(_0x2e6003,_0x115b4c){_0x2e6003=_0x2e6003-0xac;let _0x3a0bc0=a1298_0x3a0b[_0x2e6003];return _0x3a0bc0;};const a1298_0x15cf7f=a1298_0x4dbe;'use strict';const client=require(a1298_0x15cf7f(0xac));exports[a1298_0x15cf7f(0xaf)]=function(_0xc8817a){return function(){const _0x42e995=a1298_0x4dbe;return client[_0x42e995(0xae)](_0x42e995(0xad),{'options':{'where':{'VoiceQueueId':_0xc8817a,'paused':!![]},'raw':!![]},'log':_0x42e995(0xaf)});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceRecording.js b/server/services/ami/rpc/voiceRecording.js index 08d4b02..083630d 100644 --- a/server/services/ami/rpc/voiceRecording.js +++ b/server/services/ami/rpc/voiceRecording.js @@ -1 +1 @@ -const a1299_0x2c71=['monitorFilename','Request','lodash','merge','CreateVoiceRecording','create','../client'];(function(_0x257faa,_0x5d9d53){const _0x2c717f=function(_0x152012){while(--_0x152012){_0x257faa['push'](_0x257faa['shift']());}};_0x2c717f(++_0x5d9d53);}(a1299_0x2c71,0x1aa));const a1299_0x1520=function(_0x257faa,_0x5d9d53){_0x257faa=_0x257faa-0x177;let _0x2c717f=a1299_0x2c71[_0x257faa];return _0x2c717f;};const a1299_0x43f58a=a1299_0x1520;'use strict';const _=require(a1299_0x43f58a(0x17a)),client=require(a1299_0x43f58a(0x177));exports[a1299_0x43f58a(0x17d)]=function(_0x15cfef){const _0x402a03=a1299_0x43f58a;return client[_0x402a03(0x179)](_0x402a03(0x17c),{'body':_[_0x402a03(0x17b)](_0x15cfef,{'value':_0x15cfef[_0x402a03(0x178)]}),'log':'CreateVoiceRecording'});}; \ No newline at end of file +const a1299_0x4f73=['Request','lodash','merge','CreateVoiceRecording','create'];(function(_0xf88e77,_0x1aecfa){const _0x4f7320=function(_0x52c92f){while(--_0x52c92f){_0xf88e77['push'](_0xf88e77['shift']());}};_0x4f7320(++_0x1aecfa);}(a1299_0x4f73,0x9a));const a1299_0x52c9=function(_0xf88e77,_0x1aecfa){_0xf88e77=_0xf88e77-0x1cd;let _0x4f7320=a1299_0x4f73[_0xf88e77];return _0x4f7320;};const a1299_0x2e69ba=a1299_0x52c9;'use strict';const _=require(a1299_0x2e69ba(0x1cf)),client=require('../client');exports[a1299_0x2e69ba(0x1cd)]=function(_0x3f219a){const _0x7c7374=a1299_0x2e69ba;return client[_0x7c7374(0x1ce)](_0x7c7374(0x1d1),{'body':_[_0x7c7374(0x1d0)](_0x3f219a,{'value':_0x3f219a['monitorFilename']}),'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 85e67e8..c969b90 100644 --- a/server/services/ami/rpc/voiceTransferReport.js +++ b/server/services/ami/rpc/voiceTransferReport.js @@ -1 +1 @@ -const a1300_0x4a3a=['transfertargetcalleridnum','transfererconnectedlinename','blind','transfers','origtransfererchannel','attendedTransfer','transfereeconnectedlinename','blindTransfer','transfererlinkedid','isexternal','transfertargetcontext','result','transfertargetchannel','transfereeconnectedlinenum','transferercalleridname','transfereeaccountcode','secondtransfererconnectedlinenum','transfereeexten','transfertargetconnectedlinenum','transfertargetaccountcode','transfererexten','transfererconnectedlinenum','transfertargetlinkedid','context','origtransferercalleridname','Request','origtransferercontext','CreateVoiceTransferReport','origtransfererlinkedid','../client','transfereechannel','origtransfererexten','origtransfereraccountcode','transfertargetcalleridname','attended','transfereecontext','origtransferercalleridnum','transfereelinkedid'];(function(_0x263cc5,_0x2a1240){const _0x4a3a88=function(_0x4a7bcf){while(--_0x4a7bcf){_0x263cc5['push'](_0x263cc5['shift']());}};_0x4a3a88(++_0x2a1240);}(a1300_0x4a3a,0x182));const a1300_0x4a7b=function(_0x263cc5,_0x2a1240){_0x263cc5=_0x263cc5-0x1e8;let _0x4a3a88=a1300_0x4a3a[_0x263cc5];return _0x4a3a88;};const a1300_0x143697=a1300_0x4a7b;'use strict';const client=require(a1300_0x143697(0x1ff));exports[a1300_0x143697(0x20b)]={},exports[a1300_0x143697(0x1e9)]=function(_0x518447){const _0x27216d=a1300_0x143697;return client[_0x27216d(0x1fb)](_0x27216d(0x1fd),{'body':{'result':_0x518447[_0x27216d(0x1ed)],'transfererchannel':_0x518447['transfererchannel'],'transferercalleridnum':_0x518447['transferercalleridnum'],'transferercalleridname':_0x518447[_0x27216d(0x1f0)],'transfererconnectedlinenum':_0x518447[_0x27216d(0x1f7)],'transfererconnectedlinename':_0x518447[_0x27216d(0x209)],'transfereraccountcode':_0x518447['transfereraccountcode'],'transferercontext':_0x518447['transferercontext'],'transfererexten':_0x518447[_0x27216d(0x1f6)],'transfererlinkedid':_0x518447[_0x27216d(0x1ea)],'transfereechannel':_0x518447[_0x27216d(0x200)],'transfereecalleridnum':_0x518447['transfereecalleridnum'],'transfereecalleridname':_0x518447['transfereecalleridname'],'transfereeconnectedlinenum':_0x518447[_0x27216d(0x1ef)],'transfereeconnectedlinename':_0x518447[_0x27216d(0x1e8)],'transfereeaccountcode':_0x518447[_0x27216d(0x1f1)],'transfereecontext':_0x518447[_0x27216d(0x205)],'transfereeexten':_0x518447[_0x27216d(0x1f3)],'transfereelinkedid':_0x518447[_0x27216d(0x207)],'isexternal':_0x518447[_0x27216d(0x1eb)],'context':_0x518447[_0x27216d(0x1f9)],'extension':_0x518447['extension'],'type':_0x27216d(0x20a)},'log':'CreateVoiceTransferReport'});},exports[a1300_0x143697(0x20d)]=function(_0x5c4d8e){const _0x11b980=a1300_0x143697;return client['Request'](_0x11b980(0x1fd),{'body':{'result':_0x5c4d8e[_0x11b980(0x1ed)],'transfererchannel':_0x5c4d8e[_0x11b980(0x20c)],'transferercalleridnum':_0x5c4d8e[_0x11b980(0x206)],'transferercalleridname':_0x5c4d8e[_0x11b980(0x1fa)],'transfererconnectedlinenum':_0x5c4d8e[_0x11b980(0x1f2)],'transfererconnectedlinename':_0x5c4d8e['secondtransfererconnectedlinename'],'transfereraccountcode':_0x5c4d8e[_0x11b980(0x202)],'transferercontext':_0x5c4d8e['secondtransferercontext'],'transfererexten':_0x5c4d8e['secondtransfererexten'],'transfererlinkedid':_0x5c4d8e[_0x11b980(0x1fe)],'transfereechannel':_0x5c4d8e[_0x11b980(0x1ee)],'transfereecalleridnum':_0x5c4d8e[_0x11b980(0x208)],'transfereecalleridname':_0x5c4d8e[_0x11b980(0x203)],'transfereeconnectedlinenum':_0x5c4d8e[_0x11b980(0x1f4)],'transfereeconnectedlinename':_0x5c4d8e['transfertargetconnectedlinename'],'transfereeaccountcode':_0x5c4d8e[_0x11b980(0x1f5)],'transfereecontext':_0x5c4d8e[_0x11b980(0x1ec)],'transfereeexten':_0x5c4d8e['transfertargetexten'],'transfereelinkedid':_0x5c4d8e[_0x11b980(0x1f8)],'isexternal':_0x5c4d8e[_0x11b980(0x1eb)],'context':_0x5c4d8e[_0x11b980(0x1fc)],'extension':_0x5c4d8e[_0x11b980(0x201)],'type':_0x11b980(0x204)},'log':_0x11b980(0x1fd)});}; \ No newline at end of file +const a1300_0x1e98=['blind','transfererlinkedid','origtransferercontext','isexternal','secondtransfererconnectedlinenum','CreateVoiceTransferReport','secondtransfererconnectedlinename','transfereelinkedid','transfereechannel','origtransfereraccountcode','transfertargetcontext','transfereraccountcode','transfertargetlinkedid','transfererconnectedlinenum','result','transfertargetcalleridname','transfertargetconnectedlinename','transfererexten','origtransferercalleridnum','origtransfererexten','secondtransferercontext','transfereeexten','transfereeaccountcode','blindTransfer','secondtransfererexten','transfereecalleridnum','context','attendedTransfer','transfertargetaccountcode','transfererconnectedlinename','transfertargetexten','transfertargetconnectedlinenum','origtransfererchannel','transfereeconnectedlinenum','transfertargetcalleridnum','transferercalleridname','origtransferercalleridname','transferercontext','transfers','origtransfererlinkedid','../client','transfererchannel','Request'];(function(_0x268dcf,_0x28e1cb){const _0x1e9838=function(_0x11ee01){while(--_0x11ee01){_0x268dcf['push'](_0x268dcf['shift']());}};_0x1e9838(++_0x28e1cb);}(a1300_0x1e98,0x19c));const a1300_0x11ee=function(_0x268dcf,_0x28e1cb){_0x268dcf=_0x268dcf-0x11e;let _0x1e9838=a1300_0x1e98[_0x268dcf];return _0x1e9838;};const a1300_0x1e1860=a1300_0x11ee;'use strict';const client=require(a1300_0x1e1860(0x12d));exports[a1300_0x1e1860(0x12b)]={},exports[a1300_0x1e1860(0x147)]=function(_0x14fcef){const _0x5dd831=a1300_0x1e1860;return client[_0x5dd831(0x12f)](_0x5dd831(0x135),{'body':{'result':_0x14fcef[_0x5dd831(0x13e)],'transfererchannel':_0x14fcef[_0x5dd831(0x12e)],'transferercalleridnum':_0x14fcef['transferercalleridnum'],'transferercalleridname':_0x14fcef[_0x5dd831(0x128)],'transfererconnectedlinenum':_0x14fcef[_0x5dd831(0x13d)],'transfererconnectedlinename':_0x14fcef[_0x5dd831(0x122)],'transfereraccountcode':_0x14fcef[_0x5dd831(0x13b)],'transferercontext':_0x14fcef[_0x5dd831(0x12a)],'transfererexten':_0x14fcef[_0x5dd831(0x141)],'transfererlinkedid':_0x14fcef[_0x5dd831(0x131)],'transfereechannel':_0x14fcef[_0x5dd831(0x138)],'transfereecalleridnum':_0x14fcef[_0x5dd831(0x11e)],'transfereecalleridname':_0x14fcef['transfereecalleridname'],'transfereeconnectedlinenum':_0x14fcef[_0x5dd831(0x126)],'transfereeconnectedlinename':_0x14fcef['transfereeconnectedlinename'],'transfereeaccountcode':_0x14fcef[_0x5dd831(0x146)],'transfereecontext':_0x14fcef['transfereecontext'],'transfereeexten':_0x14fcef[_0x5dd831(0x145)],'transfereelinkedid':_0x14fcef[_0x5dd831(0x137)],'isexternal':_0x14fcef[_0x5dd831(0x133)],'context':_0x14fcef[_0x5dd831(0x11f)],'extension':_0x14fcef['extension'],'type':_0x5dd831(0x130)},'log':_0x5dd831(0x135)});},exports[a1300_0x1e1860(0x120)]=function(_0x44ce60){const _0x21b6e1=a1300_0x1e1860;return client['Request'](_0x21b6e1(0x135),{'body':{'result':_0x44ce60[_0x21b6e1(0x13e)],'transfererchannel':_0x44ce60[_0x21b6e1(0x125)],'transferercalleridnum':_0x44ce60[_0x21b6e1(0x142)],'transferercalleridname':_0x44ce60[_0x21b6e1(0x129)],'transfererconnectedlinenum':_0x44ce60[_0x21b6e1(0x134)],'transfererconnectedlinename':_0x44ce60[_0x21b6e1(0x136)],'transfereraccountcode':_0x44ce60[_0x21b6e1(0x139)],'transferercontext':_0x44ce60[_0x21b6e1(0x144)],'transfererexten':_0x44ce60[_0x21b6e1(0x148)],'transfererlinkedid':_0x44ce60[_0x21b6e1(0x12c)],'transfereechannel':_0x44ce60['transfertargetchannel'],'transfereecalleridnum':_0x44ce60[_0x21b6e1(0x127)],'transfereecalleridname':_0x44ce60[_0x21b6e1(0x13f)],'transfereeconnectedlinenum':_0x44ce60[_0x21b6e1(0x124)],'transfereeconnectedlinename':_0x44ce60[_0x21b6e1(0x140)],'transfereeaccountcode':_0x44ce60[_0x21b6e1(0x121)],'transfereecontext':_0x44ce60[_0x21b6e1(0x13a)],'transfereeexten':_0x44ce60[_0x21b6e1(0x123)],'transfereelinkedid':_0x44ce60[_0x21b6e1(0x13c)],'isexternal':_0x44ce60[_0x21b6e1(0x133)],'context':_0x44ce60[_0x21b6e1(0x132)],'extension':_0x44ce60[_0x21b6e1(0x143)],'type':'attended'},'log':'CreateVoiceTransferReport'});}; \ No newline at end of file diff --git a/server/services/ami/server/index.js b/server/services/ami/server/index.js index 90f14bb..7397bb4 100644 --- a/server/services/ami/server/index.js +++ b/server/services/ami/server/index.js @@ -1 +1 @@ -const a1301_0x2955=['StopMixMonitor\x20Success','pTalking','predictiveIntervalAvgHoldtime','custom:','predictiveIntervalMultiplicativeFactor','map','erlangAbandonmentRate','SIP','predictiveIntervalErlangCallsDroppedCalls','ai(mixmonitorid)','erlangCallToSecond','127.0.0.1','dialMethod','outboundBlacklistCallsDay','util','asterisk','voicechannel','error','status','outboundNoAnswerCallsDay','Channel\x20doesn\x27t\x20exist','resolve','isNil','context','MixMonitor\x20Success','dialOriginateCallerIdNumber','StopMixMonitor','toLowerCase','callerid','length','predictiveIntervalAvailable','dialPrefix','queueChannels','dialActive','http','predictiveIntervalAnsweredCalls','timer','catch','total','../properties','channel','Action','sumBillable','lodash','voiceQueues','predictiveIntervalDroppedCallsTimeout','../../../config/environment','Interval','name','exten','then','message','outboundAnswerCallsDay','outboundChannels','push','action','answered','available','emit','server','loggedInDb','predictiveIntervalErlangCalls','validate','sumHoldTime','ami\x20disconnected','outbound','outboundDropCallsDayTimeout','AMI\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','outboundDropCallsDayACS','updateStatusRealtime','campaigns','isConnected','jayson/promise','predictiveIntervalTotalCalls','startPredictive','Reload','/var/spool/asterisk/monitor/','YYYY-MM-DD\x20HH:mm:ss','monitors','MixMonitor','wav','outboundUnknownCallsDay','type','find','%s.%s','outboundAnswerAgiCallsDay','Event\x20name\x20mandatory','predictiveIntervalHitRate','agents','outboundBusyCallsDay','values','RPC\x20listening\x20on\x20port:','outboundRejectCallsDay','voicequeuechannel','dialOriginateTimeout','event','outboundReCallsDay','outboundNoSuchCallsDay','format','Trunk','pick','outboundOriginateFailureCallsDay','destinationchannel','Hangup','unmanaged','timers','username','strategy','predictiveIntervalPauses','content','outboundDropCallsDayCallersExit','trunks','command','mixmonitorid','erlangCalls','startProgressive','voicequeuechannelhangup','waiting','originated','uniqueid','rec','QueuePause','channels','join','module','send','undefined','stop'];(function(_0x28938a,_0x278d70){const _0x295575=function(_0x23db2e){while(--_0x23db2e){_0x28938a['push'](_0x28938a['shift']());}};_0x295575(++_0x278d70);}(a1301_0x2955,0x14a));const a1301_0x23db=function(_0x28938a,_0x278d70){_0x28938a=_0x28938a-0x8b;let _0x295575=a1301_0x2955[_0x28938a];return _0x295575;};const a1301_0x3b49bd=a1301_0x23db;'use strict';const _=require(a1301_0x3b49bd(0xec)),util=require(a1301_0x3b49bd(0xcf)),jayson=require(a1301_0x3b49bd(0x109)),schema=require(a1301_0x3b49bd(0xff)),moment=require('moment'),config=require(a1301_0x3b49bd(0xef)),properties=require(a1301_0x3b49bd(0xe8)),ami=require('../ami');exports['listen']=function(_0x2b01b4,_0xa83ab,_0x551a6d){return new Promise(function(_0x3087b5,_0x16a711){const _0x3dfb41=a1301_0x23db,_0x5da8b8={'QueuePause':function(_0x196e6f){return new Promise(function(_0x4fae48){const _0x2256b7=a1301_0x23db,_0x4c29ce=util[_0x2256b7(0xa3)]('%s/%s',_0x2256b7(0xc8),_0x196e6f[_0x2256b7(0xf1)]);_0x2b01b4[_0x2256b7(0xaa)]&&_0x2b01b4[_0x2256b7(0xaa)][_0x4c29ce]&&_0x2b01b4['timers'][_0x4c29ce][_0x2256b7(0xe5)]&&_0x2b01b4['timers'][_0x4c29ce]['updateAcw'](),_0x2b01b4[_0x2256b7(0x99)][_0x4c29ce]&&_0x2b01b4[_0x2256b7(0x99)][_0x4c29ce][_0x2256b7(0x106)]({'statePause':_0x196e6f['pause']?!![]:![]}),_0x4fae48({'code':0xc8,'message':_0x2256b7(0xba)});});},'Reload':function(_0x1cebf5){const _0x5e1218=this;return new Promise(function(_0x45e248,_0x3e26b1){const _0x4b07dc=a1301_0x23db;if(ami[_0x4b07dc(0x108)]()==![])return _0x3e26b1(_0x5e1218[_0x4b07dc(0xd2)](0x1f4,[config[_0x4b07dc(0xd0)]['ip'],config[_0x4b07dc(0xd0)]['username'],_0x4b07dc(0x101)]['join']('\x20')));return _0x1cebf5=_['pick'](_0x1cebf5,_['keys'](properties[_0x4b07dc(0xbd)])),_0x1cebf5['action']=_0x4b07dc(0x8c),ami['Action'](_0x1cebf5)[_0x4b07dc(0xf3)](function(_0x56a418){_0x45e248({'code':0xc8,'message':_0x56a418['message']});})[_0x4b07dc(0xe6)](function(_0xbdd3ab){const _0xfc011e=_0x4b07dc;_0x3e26b1(_0x5e1218['error'](0x1f5,_0xbdd3ab[_0xfc011e(0xf4)]));});});},'Command':function(_0x35cb0f){const _0x2e3c29=this;return new Promise(function(_0x2d040e,_0x5a61c2){const _0x53806c=a1301_0x23db;if(ami[_0x53806c(0x108)]()==![])return _0x5a61c2(_0x2e3c29[_0x53806c(0xd2)](0x1f4,[config[_0x53806c(0xd0)]['ip'],config[_0x53806c(0xd0)]['username'],_0x53806c(0x101)]['join']('\x20')));return _0x35cb0f=_[_0x53806c(0xa5)](_0x35cb0f,_0x53806c(0xb1)),_0x35cb0f[_0x53806c(0xf8)]='Command',ami[_0x53806c(0xea)](_0x35cb0f)['then'](function(_0x154e0c){const _0xe30175=_0x53806c;_0x2d040e({'code':0xc8,'message':_0x154e0c[_0xe30175(0xae)]});})[_0x53806c(0xe6)](function(_0x461df3){const _0x366dd2=_0x53806c;_0x5a61c2(_0x2e3c29[_0x366dd2(0xd2)](0x1f5,_0x461df3['message']));});});},'VoiceQueues':function(){return new Promise(function(_0x398dc8){const _0x4cb0d7=a1301_0x23db,_0x429b41=[];for(const _0x3bfe87 in _0x2b01b4[_0x4cb0d7(0xed)]){if(typeof _0x2b01b4['voiceQueues'][_0x3bfe87]!==_0x4cb0d7(0xbf)){const _0x494459=_0x2b01b4['voiceQueues'][_0x3bfe87],_0x4accae={'id':_0x494459['id'],'name':_0x494459['name'],'strategy':_0x494459[_0x4cb0d7(0xac)],'answered':_0x494459[_0x4cb0d7(0xf9)],'available':_0x494459[_0x4cb0d7(0xfa)],'loggedIn':_0x494459['loggedIn'],'pTalking':_0x494459[_0x4cb0d7(0xc2)],'sumBillable':_0x494459[_0x4cb0d7(0xeb)],'sumDuration':_0x494459['sumDuration'],'sumHoldTime':_0x494459[_0x4cb0d7(0x100)]||0x0,'talking':_0x494459['talking'],'total':_0x494459[_0x4cb0d7(0xe7)],'type':_0x494459[_0x4cb0d7(0x93)],'unmanaged':_0x494459[_0x4cb0d7(0xa9)],'abandoned':_0x494459['abandoned'],'waiting':_0x494459[_0x4cb0d7(0xb6)],'loggedInDb':_0x494459[_0x4cb0d7(0xfd)]};_0x494459[_0x4cb0d7(0x93)]===_0x4cb0d7(0x102)&&(_0x4accae[_0x4cb0d7(0xe2)]=_0x494459['dialActive'],_0x4accae[_0x4cb0d7(0xcd)]=_0x494459['dialMethod'],_0x4accae['dialOriginateCallerIdName']=_0x494459['dialOriginateCallerIdName'],_0x4accae[_0x4cb0d7(0xda)]=_0x494459['dialOriginateCallerIdNumber'],_0x4accae[_0x4cb0d7(0x9f)]=_0x494459[_0x4cb0d7(0x9f)],_0x4accae[_0x4cb0d7(0xe0)]=_0x494459['dialPrefix'],_0x4accae[_0x4cb0d7(0x96)]=_0x494459[_0x4cb0d7(0x96)],_0x4accae['outboundAnswerCallsDay']=_0x494459[_0x4cb0d7(0xf5)],_0x4accae['outboundBlacklistCallsDay']=_0x494459[_0x4cb0d7(0xce)],_0x4accae[_0x4cb0d7(0x9a)]=_0x494459[_0x4cb0d7(0x9a)],_0x4accae['outboundCongestionCallsDay']=_0x494459['outboundCongestionCallsDay'],_0x4accae[_0x4cb0d7(0x105)]=_0x494459['outboundDropCallsDayACS'],_0x4accae[_0x4cb0d7(0xaf)]=_0x494459[_0x4cb0d7(0xaf)],_0x4accae[_0x4cb0d7(0x103)]=_0x494459[_0x4cb0d7(0x103)],_0x4accae[_0x4cb0d7(0xd4)]=_0x494459[_0x4cb0d7(0xd4)],_0x4accae['outboundNoSuchCallsDay']=_0x494459[_0x4cb0d7(0xa2)],_0x4accae[_0x4cb0d7(0xa6)]=_0x494459[_0x4cb0d7(0xa6)],_0x4accae[_0x4cb0d7(0xa1)]=_0x494459['outboundReCallsDay'],_0x4accae[_0x4cb0d7(0x9d)]=_0x494459[_0x4cb0d7(0x9d)],_0x4accae[_0x4cb0d7(0x92)]=_0x494459[_0x4cb0d7(0x92)],_0x4accae['predictiveIntervalAnsweredCalls']=_0x494459[_0x4cb0d7(0xe4)],_0x4accae[_0x4cb0d7(0xc3)]=_0x494459[_0x4cb0d7(0xc3)],_0x4accae['predictiveIntervalAvgTalktime']=_0x494459['predictiveIntervalAvgTalktime'],_0x4accae['predictiveIntervalDroppedCallsCallersExit']=_0x494459['predictiveIntervalDroppedCallsCallersExit'],_0x4accae[_0x4cb0d7(0xee)]=_0x494459[_0x4cb0d7(0xee)],_0x4accae[_0x4cb0d7(0xfe)]=_0x494459['predictiveIntervalErlangCalls'],_0x4accae[_0x4cb0d7(0xc9)]=_0x494459[_0x4cb0d7(0xc9)],_0x4accae[_0x4cb0d7(0x98)]=_0x494459[_0x4cb0d7(0x98)],_0x4accae['predictiveIntervalMultiplicativeFactor']=_0x494459[_0x4cb0d7(0xc5)],_0x4accae[_0x4cb0d7(0xad)]=_0x494459[_0x4cb0d7(0xad)],_0x4accae[_0x4cb0d7(0xdf)]=_0x494459[_0x4cb0d7(0xdf)],_0x4accae[_0x4cb0d7(0x10a)]=_0x494459['predictiveIntervalTotalCalls'],_0x4accae['message']=_0x494459['message'],_0x4accae[_0x4cb0d7(0xb7)]=_0x494459['originated'],_0x4accae[_0x4cb0d7(0xb3)]=_0x494459[_0x4cb0d7(0xb3)],_0x4accae['erlangCallToSecond']=_0x494459[_0x4cb0d7(0xcb)],_0x4accae[_0x4cb0d7(0xc7)]=_0x494459['erlangAbandonmentRate'],_0x4accae['erlangBusyFactor']=_0x494459['erlangBusyFactor'],_0x4accae[_0x4cb0d7(0x8b)]=_0x494459[_0x4cb0d7(0x8b)],_0x4accae[_0x4cb0d7(0xb4)]=_0x494459[_0x4cb0d7(0xb4)]),_0x494459[_0x4cb0d7(0xa4)]&&(_0x4accae['Trunk']={'id':_0x494459[_0x4cb0d7(0xa4)]['id'],'name':_0x494459[_0x4cb0d7(0xa4)][_0x4cb0d7(0xf1)],'active':_0x494459[_0x4cb0d7(0xa4)]['active'],'callerid':_0x494459[_0x4cb0d7(0xa4)][_0x4cb0d7(0xdd)]}),_0x494459[_0x4cb0d7(0xf0)]&&(_0x4accae[_0x4cb0d7(0xf0)]={'id':_0x494459[_0x4cb0d7(0xf0)]['id'],'name':_0x494459[_0x4cb0d7(0xf0)][_0x4cb0d7(0xf1)]}),_0x429b41[_0x4cb0d7(0xf7)](_0x4accae);}}_0x398dc8({'count':_0x429b41[_0x4cb0d7(0xde)],'rows':_0x429b41});});},'VoiceChannels':function(){return new Promise(function(_0x2c070b){const _0x548e41=a1301_0x23db,_0x2d5c96=_[_0x548e41(0x9b)](_0x2b01b4['channels']);_0x2c070b({'count':_0x2d5c96[_0x548e41(0xde)],'rows':_0x2d5c96});});},'VoiceChannelMixMonitor':function(_0x42dfa0){const _0x2d0c08=this;return new Promise(function(_0x20ab4d,_0x3c932a){const _0x57ec71=a1301_0x23db;if(ami[_0x57ec71(0x108)]()==![])return _0x3c932a(_0x2d0c08[_0x57ec71(0xd2)](0x1f4,[config['asterisk']['ip'],config[_0x57ec71(0xd0)][_0x57ec71(0xab)],_0x57ec71(0x101)][_0x57ec71(0xbc)]('\x20')));const _0x5211de=schema(properties[_0x57ec71(0xd1)])[_0x57ec71(0xff)](_0x42dfa0);if(_0x5211de[_0x57ec71(0xde)]>0x0)return _0x3c932a(_0x2d0c08['error'](0x1f4,_[_0x57ec71(0xc6)](_0x5211de,'message')[_0x57ec71(0xbc)](',\x20')));const _0x42f9eb=_[_0x57ec71(0x94)](_0x2b01b4[_0x57ec71(0xbb)],{'uniqueid':_0x42dfa0[_0x57ec71(0xb8)]});if(_0x42f9eb&&_0x42f9eb[_0x57ec71(0xe9)]){const _0x3c85f8=util['format'](_0x57ec71(0x95),_0x42dfa0['filename']||_0x42dfa0['uniqueid'],_0x42dfa0[_0x57ec71(0xa3)]||_0x57ec71(0x91));return ami[_0x57ec71(0xea)]({'action':_0x57ec71(0x90),'channel':_0x42f9eb[_0x57ec71(0xe9)],'file':_0x3c85f8,'options':_0x57ec71(0xca)})['then'](function(_0x52a43d){const _0xc19919=_0x57ec71,_0x50ea86=_['find'](_0x42f9eb['monitors'],{'filename':_0xc19919(0x8d)+_0x3c85f8[_0xc19919(0xdc)]()});_[_0xc19919(0xd7)](_0x50ea86)?_0x42f9eb[_0xc19919(0x8f)]['push']({'filename':_0xc19919(0x8d)+_0x3c85f8[_0xc19919(0xdc)](),'createdAt':moment()[_0xc19919(0xa3)](_0xc19919(0x8e)),'mixmonitorid':_0x52a43d[_0xc19919(0xb2)],'status':'rec'}):(_0x50ea86[_0xc19919(0xb2)]=_0x52a43d[_0xc19919(0xb2)],_0x50ea86[_0xc19919(0xd3)]=_0xc19919(0xb9)),_0x20ab4d({'code':0xc8,'message':[_0x42dfa0[_0xc19919(0xb8)],_0xc19919(0xd9),_0x52a43d[_0xc19919(0xb2)]][_0xc19919(0xbc)]('\x20'),'mixmonitorid':_0x52a43d[_0xc19919(0xb2)]});})['catch'](function(_0x55f1e8){const _0x5e1dd3=_0x57ec71;_0x3c932a(_0x2d0c08[_0x5e1dd3(0xd2)](0x1f5,[_0x42dfa0['uniqueid'],_0x55f1e8['message'][_0x5e1dd3(0xdc)]()][_0x5e1dd3(0xbc)]('\x20')));});}else return _0x3c932a(_0x2d0c08[_0x57ec71(0xd2)](0x1f5,'Channel\x20doesn\x27t\x20exist'));});},'VoiceChannelStopMixMonitor':function(_0x412820){const _0x47a9a4=this;return new Promise(function(_0x54c053,_0x4977fc){const _0x594f65=a1301_0x23db;if(ami[_0x594f65(0x108)]()==![])return _0x4977fc(_0x47a9a4['error'](0x1f4,[config[_0x594f65(0xd0)]['ip'],config[_0x594f65(0xd0)][_0x594f65(0xab)],_0x594f65(0x101)][_0x594f65(0xbc)]('\x20')));const _0x54ad34=schema(properties[_0x594f65(0xd1)])[_0x594f65(0xff)](_0x412820);if(_0x54ad34[_0x594f65(0xde)]>0x0)return _0x4977fc(_0x47a9a4['error'](0x1f4,_[_0x594f65(0xc6)](_0x54ad34,_0x594f65(0xf4))[_0x594f65(0xbc)](',\x20')));const _0x354829=_['find'](_0x2b01b4[_0x594f65(0xbb)],{'uniqueid':_0x412820[_0x594f65(0xb8)]});return _0x354829?Promise[_0x594f65(0xd6)]()[_0x594f65(0xf3)](function(){const _0x9e8f4=_0x594f65;if(_0x354829[_0x9e8f4(0xe9)])return ami[_0x9e8f4(0xea)]({'action':'StopMixMonitor','channel':_0x354829[_0x9e8f4(0xe9)],'mixmonitorid':_0x412820[_0x9e8f4(0xb2)]})[_0x9e8f4(0xe6)](function(){});})['then'](function(){const _0x599a12=_0x594f65;if(_0x354829[_0x599a12(0xa7)])return ami[_0x599a12(0xea)]({'action':_0x599a12(0xdb),'channel':_0x354829[_0x599a12(0xa7)],'mixmonitorid':_0x412820[_0x599a12(0xb2)]})[_0x599a12(0xe6)](function(){});})[_0x594f65(0xf3)](function(){const _0x150759=_0x594f65,_0x302653=_[_0x150759(0x94)](_0x354829['monitors'],{'mixmonitorid':_0x412820['mixmonitorid']});_0x302653&&(_0x302653[_0x150759(0xd3)]=_0x150759(0xc0));})[_0x594f65(0xf3)](function(){const _0x222a25=_0x594f65,_0x55c49b=util[_0x222a25(0xa3)](_0x222a25(0x95),_0x412820['filename']||_0x412820[_0x222a25(0xb8)],_0x412820['format']||_0x222a25(0x91)),_0x35dfaf=_[_0x222a25(0x94)](_0x354829['monitors'],{'filename':_0x222a25(0x8d)+_0x55c49b[_0x222a25(0xdc)]()});_0x35dfaf&&(_0x35dfaf['status']=_0x222a25(0xc0));})['then'](function(){const _0x32daed=_0x594f65;_0x54c053({'code':0xc8,'message':[_0x412820[_0x32daed(0xb8)],_0x32daed(0xc1)][_0x32daed(0xbc)]('\x20')});})[_0x594f65(0xe6)](function(_0x1ecf56){const _0x1291fc=_0x594f65;_0x4977fc(_0x47a9a4['error'](0x1f5,[_0x412820[_0x1291fc(0xb8)],_0x1ecf56[_0x1291fc(0xf4)][_0x1291fc(0xdc)]()]['join']('\x20')));}):_0x4977fc(_0x47a9a4['error'](0x1f5,_0x594f65(0xd5)));});},'VoiceQueuesChannels':function(){return new Promise(function(_0x15c17c){const _0xb0a42a=a1301_0x23db,_0x970172=_[_0xb0a42a(0x9b)](_0x2b01b4['queueChannels']);_0x15c17c({'count':_0x970172[_0xb0a42a(0xde)],'rows':_0x970172});});},'VoiceQueuesChannel':function(_0x1e0f0a){const _0x4cea01=this;return new Promise(function(_0x3430be,_0x1ee449){const _0x1cd363=a1301_0x23db,_0x4f4702=schema(properties[_0x1cd363(0x9e)])['validate'](_0x1e0f0a);if(_0x4f4702[_0x1cd363(0xde)]>0x0)return _0x1ee449(_0x4cea01[_0x1cd363(0xd2)](0x1f4,_[_0x1cd363(0xc6)](_0x4f4702,_0x1cd363(0xf4))[_0x1cd363(0xbc)](',\x20')));const _0x44042b=_[_0x1cd363(0x94)](_0x2b01b4[_0x1cd363(0xe1)],{'uniqueid':_0x1e0f0a['uniqueid']});if(_0x44042b)_0x3430be(_0x44042b);else return _0x1ee449(_0x4cea01[_0x1cd363(0xd2)](0x1f5,'Channel\x20doesn\x27t\x20exist'));});},'VoiceQueuesChannelHangup':function(_0x5668f7){const _0x44fc42=this;return new Promise(function(_0x55c5e7,_0x3dbff2){const _0x481579=a1301_0x23db;if(ami[_0x481579(0x108)]()==![])return _0x3dbff2(_0x44fc42['error'](0x1f4,[config['asterisk']['ip'],config[_0x481579(0xd0)][_0x481579(0xab)],'ami\x20disconnected'][_0x481579(0xbc)]('\x20')));const _0x1d7611=schema(properties[_0x481579(0xb5)])[_0x481579(0xff)](_0x5668f7);if(_0x1d7611[_0x481579(0xde)]>0x0)return _0x3dbff2(_0x44fc42['error'](0x1f4,_[_0x481579(0xc6)](_0x1d7611,_0x481579(0xf4))['join'](',\x20')));const _0x53c5d0=_[_0x481579(0x94)](_0x2b01b4[_0x481579(0xe1)],{'uniqueid':_0x5668f7[_0x481579(0xb8)]});return _0x53c5d0&&_0x53c5d0[_0x481579(0xe9)]?ami[_0x481579(0xea)]({'action':_0x481579(0xa8),'channel':_0x53c5d0[_0x481579(0xe9)]})[_0x481579(0xf3)](function(_0x2c3eca){const _0x2aeb9c=_0x481579;_0x55c5e7({'code':0xc8,'message':[_0x5668f7[_0x2aeb9c(0xb8)],_0x2c3eca[_0x2aeb9c(0xf4)][_0x2aeb9c(0xdc)]()]['join']('\x20')});})[_0x481579(0xe6)](function(_0x3ef581){const _0x4d6776=_0x481579;_0x3dbff2(_0x44fc42[_0x4d6776(0xd2)](0x1f5,[_0x5668f7['uniqueid'],_0x3ef581[_0x4d6776(0xf4)][_0x4d6776(0xdc)]()][_0x4d6776(0xbc)]('\x20')));}):_0x3dbff2(_0x44fc42[_0x481579(0xd2)](0x1f5,'Channel\x20doesn\x27t\x20exist'));});},'VoiceQueuesChannelRedirect':function(_0x263600){const _0xeef51c=this;return new Promise(function(_0x3a183e,_0x39f048){const _0x4a33d6=a1301_0x23db;if(ami['isConnected']()==![])return _0x39f048(_0xeef51c[_0x4a33d6(0xd2)](0x1f4,[config[_0x4a33d6(0xd0)]['ip'],config['asterisk']['username'],_0x4a33d6(0x101)]['join']('\x20')));const _0x422c7e=schema(properties['voicequeuechannelredirect'])[_0x4a33d6(0xff)](_0x263600);if(_0x422c7e[_0x4a33d6(0xde)]>0x0)return _0x39f048(_0xeef51c[_0x4a33d6(0xd2)](0x1f4,_[_0x4a33d6(0xc6)](_0x422c7e,'message')['join'](',\x20')));const _0x1ecf1f=_[_0x4a33d6(0x94)](_0x2b01b4[_0x4a33d6(0xe1)],{'uniqueid':_0x263600[_0x4a33d6(0xb8)]});return _0x1ecf1f&&_0x1ecf1f[_0x4a33d6(0xe9)]?ami[_0x4a33d6(0xea)]({'action':'Redirect','channel':_0x1ecf1f[_0x4a33d6(0xe9)],'exten':_0x263600[_0x4a33d6(0xf2)],'context':_0x263600['context']||_0x1ecf1f[_0x4a33d6(0xd8)],'priority':0x1})[_0x4a33d6(0xf3)](function(_0x6ffddb){const _0x4b337e=_0x4a33d6;_0x3a183e({'code':0xc8,'message':[_0x263600[_0x4b337e(0xb8)],_0x6ffddb[_0x4b337e(0xf4)][_0x4b337e(0xdc)]()][_0x4b337e(0xbc)]('\x20')});})[_0x4a33d6(0xe6)](function(_0x40376a){const _0x21642a=_0x4a33d6;_0x39f048(_0xeef51c['error'](0x1f5,[_0x263600['uniqueid'],_0x40376a[_0x21642a(0xf4)]['toLowerCase']()]['join']('\x20')));}):_0x39f048(_0xeef51c[_0x4a33d6(0xd2)](0x1f5,'Channel\x20doesn\x27t\x20exist'));});},'Agents':function(){return new Promise(function(_0x50b374){const _0x3a6893=a1301_0x23db,_0x34de83=_[_0x3a6893(0x9b)](_0x2b01b4[_0x3a6893(0x99)]);_0x50b374({'count':_0x34de83[_0x3a6893(0xde)],'rows':_0x34de83});});},'Telephones':function(){return new Promise(function(_0x33b31c){const _0x27162a=_['values'](_0x2b01b4['telephones']);_0x33b31c({'count':_0x27162a['length'],'rows':_0x27162a});});},'Trunks':function(){return new Promise(function(_0x40e403){const _0x51b2a1=a1301_0x23db,_0x524387=_[_0x51b2a1(0x9b)](_0x2b01b4[_0x51b2a1(0xb0)]);_0x40e403({'count':_0x524387['length'],'rows':_0x524387});});},'OutboundChannels':function(){return new Promise(function(_0x1d0cec){const _0x1dc9b9=a1301_0x23db,_0x53bdf6=_[_0x1dc9b9(0x9b)](_0x2b01b4[_0x1dc9b9(0xf6)]);_0x1d0cec({'count':_0x53bdf6[_0x1dc9b9(0xde)],'rows':_0x53bdf6});});},'Outbound':function(){return new Promise(function(_0x2a3aab){const _0x190d50=a1301_0x23db;_0x2a3aab(_0x2b01b4[_0x190d50(0x102)]);});},'Campaigns':function(){return new Promise(function(_0x375284){const _0xc718e5=a1301_0x23db,_0x37c4e3=_[_0xc718e5(0x9b)](_0x2b01b4[_0xc718e5(0x107)]);_0x375284({'count':_0x37c4e3['length'],'rows':_0x37c4e3});});},'VoiceQueuesPreview':function(_0x292d7b){const _0x214fb4=this;return new Promise(function(_0x6b2434,_0x5653e8){const _0x154eef=a1301_0x23db;_0xa83ab['run'](_0x292d7b['id'])[_0x154eef(0xf3)](function(_0x1448dd){const _0x4a3a47=_0x154eef;_0x6b2434({'code':0xc8,'message':_0x1448dd[_0x4a3a47(0xf4)]});})['catch'](function(_0x5a085a){const _0x31a40c=_0x154eef;_0x5653e8(_0x214fb4[_0x31a40c(0xd2)](0x1f4,_0x5a085a['message']));});});},'EventManager':function(_0x322b77){const _0xc07c82=this;return new Promise(function(_0x179f07,_0x4a96c6){const _0x1b8c8c=a1301_0x23db;if(!_0x322b77[_0x1b8c8c(0xa0)])return _0x4a96c6(_0xc07c82[_0x1b8c8c(0xd2)](0x1f4,_0x1b8c8c(0x97)));ami[_0x1b8c8c(0xfb)](_0x1b8c8c(0xc4)+_0x322b77[_0x1b8c8c(0xa0)],_0x322b77[_0x1b8c8c(0xf4)]),_0x179f07({'code':0xc8,'message':_0x322b77});});},'FaxAccounts':function(){return new Promise(function(_0x527090){const _0x964d70=_['values'](_0x2b01b4['faxAccounts']);_0x527090({'count':_0x964d70['length'],'rows':_0x964d70});});},'SendFax':function(_0x370b97){const _0x11fa25=this;return new Promise(function(_0x208f6d,_0x274d52){const _0x56e84f=a1301_0x23db;_0x551a6d[_0x56e84f(0xbe)](_0x370b97)[_0x56e84f(0xf3)](function(_0x30093e){const _0x1500f7=_0x56e84f;_0x208f6d({'code':0xc8,'message':_0x30093e[_0x1500f7(0xf4)]});})['catch'](function(_0x21f96f){const _0x2fc71c=_0x56e84f;_0x274d52(_0x11fa25[_0x2fc71c(0xd2)](0x1f4,_0x21f96f[_0x2fc71c(0xf4)]));});});},'CheckAfterSend':function(_0x138927){const _0x12c4d0=this;return new Promise(function(_0x26a73b,_0x4122b0){const _0x55651a=a1301_0x23db;_0x551a6d['checkAfterSend'](_0x138927)[_0x55651a(0xf3)](function(_0xa33c9d){const _0x5494f6=_0x55651a;_0x26a73b({'code':0xc8,'message':_0xa33c9d[_0x5494f6(0xf4)]});})[_0x55651a(0xe6)](function(_0x432403){const _0x4b0029=_0x55651a;_0x4122b0(_0x12c4d0[_0x4b0029(0xd2)](0x1f4,_0x432403[_0x4b0029(0xf4)]));});});}},_0x18750b=jayson[_0x3dfb41(0xfc)](_0x5da8b8)[_0x3dfb41(0xe3)]();_0x18750b['on'](_0x3dfb41(0xd2),function(_0x288d28){return _0x16a711(_0x288d28);}),_0x18750b['listen'](0x232a,_0x3dfb41(0xcc),function(){const _0x1f65a4=_0x3dfb41;return console['log'](_0x1f65a4(0x104),0x232a),_0x3087b5(_0x1f65a4(0x9c)+0x232a);});});}; \ No newline at end of file +const a1301_0x3312=['format','http','predictiveIntervalPauses','message','Hangup','mixmonitorid','filename','channels','destinationchannel','outboundBlacklistCallsDay','Reload','Interval','exten','outboundRejectCallsDay','%s.%s','find','outboundOriginateFailureCallsDay','join','StopMixMonitor','outboundChannels','outboundDropCallsDayTimeout','dialOriginateCallerIdNumber','pick','updateStatusRealtime','predictiveIntervalAvgTalktime','context','../ami','ai(mixmonitorid)','sumDuration','lodash','outboundAnswerCallsDay','outboundDropCallsDayCallersExit','loggedInDb','predictiveIntervalAvailable','loggedIn','outboundNoAnswerCallsDay','pause','predictiveIntervalErlangCallsDroppedCalls','dialPrefix','../properties','status','telephones','voicechannel','catch','predictiveIntervalHitRate','%s/%s','pTalking','erlangCalls','timers','originated','command','faxAccounts','username','outboundNoSuchCallsDay','voiceQueues','keys','voicequeuechannelhangup','dialOriginateTimeout','dialMethod','values','startProgressive','monitors','outboundDropCallsDayACS','SIP','trunks','isNil','dialActive','127.0.0.1','send','abandoned','Trunk','predictiveIntervalDroppedCallsCallersExit','server','startPredictive','talking','map','sumBillable','run','MixMonitor','outboundAnswerAgiCallsDay','name','timer','active','type','validate','length','Command','action','outboundReCallsDay','AMI\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','erlangBusyFactor','YYYY-MM-DD\x20HH:mm:ss','predictiveIntervalAvgHoldtime','agents','Action','stop','predictiveIntervalDroppedCallsTimeout','isConnected','custom:','available','predictiveIntervalAnsweredCalls','dialOriginateCallerIdName','erlangCallToSecond','error','erlangAbandonmentRate','content','predictiveIntervalErlangCalls','util','event','rec','ami\x20disconnected','outbound','voicequeuechannel','outboundUnknownCallsDay','strategy','outboundBusyCallsDay','channel','undefined','toLowerCase','updateAcw','queueChannels','Channel\x20doesn\x27t\x20exist','asterisk','RPC\x20listening\x20on\x20port:','QueuePause','emit','then','Event\x20name\x20mandatory','StopMixMonitor\x20Success','callerid','/var/spool/asterisk/monitor/','outboundCongestionCallsDay','uniqueid','Redirect','wav','predictiveIntervalTotalCalls','push'];(function(_0x3f661a,_0x549251){const _0x331220=function(_0x5acba2){while(--_0x5acba2){_0x3f661a['push'](_0x3f661a['shift']());}};_0x331220(++_0x549251);}(a1301_0x3312,0xc3));const a1301_0x5acb=function(_0x3f661a,_0x549251){_0x3f661a=_0x3f661a-0x130;let _0x331220=a1301_0x3312[_0x3f661a];return _0x331220;};const a1301_0x45fe64=a1301_0x5acb;'use strict';const _=require(a1301_0x45fe64(0x19c)),util=require(a1301_0x45fe64(0x161)),jayson=require('jayson/promise'),schema=require(a1301_0x45fe64(0x14a)),moment=require('moment'),config=require('../../../config/environment'),properties=require(a1301_0x45fe64(0x1a6)),ami=require(a1301_0x45fe64(0x199));exports['listen']=function(_0x3d9119,_0x187fd2,_0x4e794b){return new Promise(function(_0x190f7a,_0xdf303e){const _0x1cd04d=a1301_0x5acb,_0x2dd545={'QueuePause':function(_0x49f165){return new Promise(function(_0x1cf669){const _0x3543e1=a1301_0x5acb,_0x4ed160=util['format'](_0x3543e1(0x1ac),_0x3543e1(0x135),_0x49f165[_0x3543e1(0x146)]);_0x3d9119[_0x3543e1(0x1af)]&&_0x3d9119[_0x3543e1(0x1af)][_0x4ed160]&&_0x3d9119[_0x3543e1(0x1af)][_0x4ed160][_0x3543e1(0x147)]&&_0x3d9119['timers'][_0x4ed160][_0x3543e1(0x16d)](),_0x3d9119[_0x3543e1(0x153)][_0x4ed160]&&_0x3d9119[_0x3543e1(0x153)][_0x4ed160][_0x3543e1(0x196)]({'statePause':_0x49f165[_0x3543e1(0x1a3)]?!![]:![]}),_0x1cf669({'code':0xc8,'message':_0x3543e1(0x172)});});},'Reload':function(_0x3bdb36){const _0x2c8072=this;return new Promise(function(_0x314e55,_0x247256){const _0x22b40b=a1301_0x5acb;if(ami['isConnected']()==![])return _0x247256(_0x2c8072[_0x22b40b(0x15d)](0x1f4,[config[_0x22b40b(0x170)]['ip'],config['asterisk'][_0x22b40b(0x1b3)],_0x22b40b(0x164)][_0x22b40b(0x190)]('\x20')));return _0x3bdb36=_[_0x22b40b(0x195)](_0x3bdb36,_[_0x22b40b(0x1b6)](properties['module'])),_0x3bdb36[_0x22b40b(0x14d)]=_0x22b40b(0x189),ami['Action'](_0x3bdb36)[_0x22b40b(0x174)](function(_0x3785b5){_0x314e55({'code':0xc8,'message':_0x3785b5['message']});})['catch'](function(_0x2d70d6){const _0x313cfb=_0x22b40b;_0x247256(_0x2c8072[_0x313cfb(0x15d)](0x1f5,_0x2d70d6[_0x313cfb(0x182)]));});});},'Command':function(_0x186f11){const _0x575afe=this;return new Promise(function(_0x50dc2f,_0x20ca39){const _0x327669=a1301_0x5acb;if(ami[_0x327669(0x157)]()==![])return _0x20ca39(_0x575afe[_0x327669(0x15d)](0x1f4,[config[_0x327669(0x170)]['ip'],config[_0x327669(0x170)][_0x327669(0x1b3)],'ami\x20disconnected'][_0x327669(0x190)]('\x20')));return _0x186f11=_['pick'](_0x186f11,_0x327669(0x1b1)),_0x186f11['action']=_0x327669(0x14c),ami[_0x327669(0x154)](_0x186f11)[_0x327669(0x174)](function(_0x28ed52){const _0x613636=_0x327669;_0x50dc2f({'code':0xc8,'message':_0x28ed52[_0x613636(0x15f)]});})[_0x327669(0x1aa)](function(_0x15dfdd){const _0x1b905c=_0x327669;_0x20ca39(_0x575afe['error'](0x1f5,_0x15dfdd[_0x1b905c(0x182)]));});});},'VoiceQueues':function(){return new Promise(function(_0x4b5b2b){const _0x421bbe=a1301_0x5acb,_0x40e940=[];for(const _0x34e61b in _0x3d9119[_0x421bbe(0x1b5)]){if(typeof _0x3d9119['voiceQueues'][_0x34e61b]!==_0x421bbe(0x16b)){const _0x42d8e8=_0x3d9119[_0x421bbe(0x1b5)][_0x34e61b],_0x5e336d={'id':_0x42d8e8['id'],'name':_0x42d8e8['name'],'strategy':_0x42d8e8[_0x421bbe(0x168)],'answered':_0x42d8e8['answered'],'available':_0x42d8e8[_0x421bbe(0x159)],'loggedIn':_0x42d8e8[_0x421bbe(0x1a1)],'pTalking':_0x42d8e8[_0x421bbe(0x1ad)],'sumBillable':_0x42d8e8[_0x421bbe(0x142)],'sumDuration':_0x42d8e8[_0x421bbe(0x19b)],'sumHoldTime':_0x42d8e8['sumHoldTime']||0x0,'talking':_0x42d8e8[_0x421bbe(0x140)],'total':_0x42d8e8['total'],'type':_0x42d8e8[_0x421bbe(0x149)],'unmanaged':_0x42d8e8['unmanaged'],'abandoned':_0x42d8e8[_0x421bbe(0x13b)],'waiting':_0x42d8e8['waiting'],'loggedInDb':_0x42d8e8[_0x421bbe(0x19f)]};_0x42d8e8[_0x421bbe(0x149)]===_0x421bbe(0x165)&&(_0x5e336d[_0x421bbe(0x138)]=_0x42d8e8[_0x421bbe(0x138)],_0x5e336d[_0x421bbe(0x130)]=_0x42d8e8[_0x421bbe(0x130)],_0x5e336d[_0x421bbe(0x15b)]=_0x42d8e8[_0x421bbe(0x15b)],_0x5e336d['dialOriginateCallerIdNumber']=_0x42d8e8[_0x421bbe(0x194)],_0x5e336d[_0x421bbe(0x1b8)]=_0x42d8e8[_0x421bbe(0x1b8)],_0x5e336d[_0x421bbe(0x1a5)]=_0x42d8e8[_0x421bbe(0x1a5)],_0x5e336d['outboundAnswerAgiCallsDay']=_0x42d8e8[_0x421bbe(0x145)],_0x5e336d[_0x421bbe(0x19d)]=_0x42d8e8[_0x421bbe(0x19d)],_0x5e336d['outboundBlacklistCallsDay']=_0x42d8e8[_0x421bbe(0x188)],_0x5e336d[_0x421bbe(0x169)]=_0x42d8e8[_0x421bbe(0x169)],_0x5e336d[_0x421bbe(0x179)]=_0x42d8e8[_0x421bbe(0x179)],_0x5e336d[_0x421bbe(0x134)]=_0x42d8e8[_0x421bbe(0x134)],_0x5e336d[_0x421bbe(0x19e)]=_0x42d8e8[_0x421bbe(0x19e)],_0x5e336d['outboundDropCallsDayTimeout']=_0x42d8e8[_0x421bbe(0x193)],_0x5e336d[_0x421bbe(0x1a2)]=_0x42d8e8[_0x421bbe(0x1a2)],_0x5e336d[_0x421bbe(0x1b4)]=_0x42d8e8[_0x421bbe(0x1b4)],_0x5e336d[_0x421bbe(0x18f)]=_0x42d8e8[_0x421bbe(0x18f)],_0x5e336d[_0x421bbe(0x14e)]=_0x42d8e8[_0x421bbe(0x14e)],_0x5e336d['outboundRejectCallsDay']=_0x42d8e8[_0x421bbe(0x18c)],_0x5e336d['outboundUnknownCallsDay']=_0x42d8e8[_0x421bbe(0x167)],_0x5e336d[_0x421bbe(0x15a)]=_0x42d8e8['predictiveIntervalAnsweredCalls'],_0x5e336d[_0x421bbe(0x152)]=_0x42d8e8[_0x421bbe(0x152)],_0x5e336d[_0x421bbe(0x197)]=_0x42d8e8['predictiveIntervalAvgTalktime'],_0x5e336d[_0x421bbe(0x13d)]=_0x42d8e8[_0x421bbe(0x13d)],_0x5e336d[_0x421bbe(0x156)]=_0x42d8e8[_0x421bbe(0x156)],_0x5e336d[_0x421bbe(0x160)]=_0x42d8e8['predictiveIntervalErlangCalls'],_0x5e336d['predictiveIntervalErlangCallsDroppedCalls']=_0x42d8e8[_0x421bbe(0x1a4)],_0x5e336d['predictiveIntervalHitRate']=_0x42d8e8[_0x421bbe(0x1ab)],_0x5e336d['predictiveIntervalMultiplicativeFactor']=_0x42d8e8['predictiveIntervalMultiplicativeFactor'],_0x5e336d[_0x421bbe(0x181)]=_0x42d8e8[_0x421bbe(0x181)],_0x5e336d[_0x421bbe(0x1a0)]=_0x42d8e8['predictiveIntervalAvailable'],_0x5e336d['predictiveIntervalTotalCalls']=_0x42d8e8[_0x421bbe(0x17d)],_0x5e336d[_0x421bbe(0x182)]=_0x42d8e8['message'],_0x5e336d['originated']=_0x42d8e8[_0x421bbe(0x1b0)],_0x5e336d['erlangCalls']=_0x42d8e8[_0x421bbe(0x1ae)],_0x5e336d[_0x421bbe(0x15c)]=_0x42d8e8[_0x421bbe(0x15c)],_0x5e336d[_0x421bbe(0x15e)]=_0x42d8e8['erlangAbandonmentRate'],_0x5e336d[_0x421bbe(0x150)]=_0x42d8e8[_0x421bbe(0x150)],_0x5e336d[_0x421bbe(0x13f)]=_0x42d8e8['startPredictive'],_0x5e336d[_0x421bbe(0x132)]=_0x42d8e8[_0x421bbe(0x132)]),_0x42d8e8[_0x421bbe(0x13c)]&&(_0x5e336d[_0x421bbe(0x13c)]={'id':_0x42d8e8[_0x421bbe(0x13c)]['id'],'name':_0x42d8e8[_0x421bbe(0x13c)][_0x421bbe(0x146)],'active':_0x42d8e8['Trunk'][_0x421bbe(0x148)],'callerid':_0x42d8e8[_0x421bbe(0x13c)][_0x421bbe(0x177)]}),_0x42d8e8[_0x421bbe(0x18a)]&&(_0x5e336d['Interval']={'id':_0x42d8e8[_0x421bbe(0x18a)]['id'],'name':_0x42d8e8['Interval'][_0x421bbe(0x146)]}),_0x40e940[_0x421bbe(0x17e)](_0x5e336d);}}_0x4b5b2b({'count':_0x40e940[_0x421bbe(0x14b)],'rows':_0x40e940});});},'VoiceChannels':function(){return new Promise(function(_0x4e536c){const _0x722e60=a1301_0x5acb,_0x129442=_[_0x722e60(0x131)](_0x3d9119[_0x722e60(0x186)]);_0x4e536c({'count':_0x129442['length'],'rows':_0x129442});});},'VoiceChannelMixMonitor':function(_0x1cfa65){const _0x26446b=this;return new Promise(function(_0x49fb72,_0x4a8cd3){const _0xb8d773=a1301_0x5acb;if(ami[_0xb8d773(0x157)]()==![])return _0x4a8cd3(_0x26446b['error'](0x1f4,[config[_0xb8d773(0x170)]['ip'],config['asterisk']['username'],_0xb8d773(0x164)][_0xb8d773(0x190)]('\x20')));const _0x985294=schema(properties['voicechannel'])[_0xb8d773(0x14a)](_0x1cfa65);if(_0x985294['length']>0x0)return _0x4a8cd3(_0x26446b[_0xb8d773(0x15d)](0x1f4,_[_0xb8d773(0x141)](_0x985294,_0xb8d773(0x182))['join'](',\x20')));const _0x1fe4c5=_[_0xb8d773(0x18e)](_0x3d9119[_0xb8d773(0x186)],{'uniqueid':_0x1cfa65['uniqueid']});if(_0x1fe4c5&&_0x1fe4c5[_0xb8d773(0x16a)]){const _0x20fd5d=util['format']('%s.%s',_0x1cfa65[_0xb8d773(0x185)]||_0x1cfa65[_0xb8d773(0x17a)],_0x1cfa65[_0xb8d773(0x17f)]||'wav');return ami[_0xb8d773(0x154)]({'action':_0xb8d773(0x144),'channel':_0x1fe4c5[_0xb8d773(0x16a)],'file':_0x20fd5d,'options':_0xb8d773(0x19a)})[_0xb8d773(0x174)](function(_0x5c450c){const _0x5ca064=_0xb8d773,_0x30b207=_['find'](_0x1fe4c5[_0x5ca064(0x133)],{'filename':_0x5ca064(0x178)+_0x20fd5d[_0x5ca064(0x16c)]()});_[_0x5ca064(0x137)](_0x30b207)?_0x1fe4c5[_0x5ca064(0x133)]['push']({'filename':_0x5ca064(0x178)+_0x20fd5d[_0x5ca064(0x16c)](),'createdAt':moment()['format'](_0x5ca064(0x151)),'mixmonitorid':_0x5c450c[_0x5ca064(0x184)],'status':_0x5ca064(0x163)}):(_0x30b207[_0x5ca064(0x184)]=_0x5c450c['mixmonitorid'],_0x30b207[_0x5ca064(0x1a7)]=_0x5ca064(0x163)),_0x49fb72({'code':0xc8,'message':[_0x1cfa65[_0x5ca064(0x17a)],'MixMonitor\x20Success',_0x5c450c[_0x5ca064(0x184)]][_0x5ca064(0x190)]('\x20'),'mixmonitorid':_0x5c450c['mixmonitorid']});})[_0xb8d773(0x1aa)](function(_0x1fa38a){const _0x3d776a=_0xb8d773;_0x4a8cd3(_0x26446b[_0x3d776a(0x15d)](0x1f5,[_0x1cfa65[_0x3d776a(0x17a)],_0x1fa38a[_0x3d776a(0x182)][_0x3d776a(0x16c)]()]['join']('\x20')));});}else return _0x4a8cd3(_0x26446b[_0xb8d773(0x15d)](0x1f5,'Channel\x20doesn\x27t\x20exist'));});},'VoiceChannelStopMixMonitor':function(_0xa84fc1){const _0x21d0f8=this;return new Promise(function(_0x1b3d2d,_0x5574bb){const _0x3bf40c=a1301_0x5acb;if(ami[_0x3bf40c(0x157)]()==![])return _0x5574bb(_0x21d0f8[_0x3bf40c(0x15d)](0x1f4,[config['asterisk']['ip'],config[_0x3bf40c(0x170)][_0x3bf40c(0x1b3)],_0x3bf40c(0x164)][_0x3bf40c(0x190)]('\x20')));const _0x4474a5=schema(properties[_0x3bf40c(0x1a9)])[_0x3bf40c(0x14a)](_0xa84fc1);if(_0x4474a5[_0x3bf40c(0x14b)]>0x0)return _0x5574bb(_0x21d0f8[_0x3bf40c(0x15d)](0x1f4,_['map'](_0x4474a5,_0x3bf40c(0x182))['join'](',\x20')));const _0x1029c0=_[_0x3bf40c(0x18e)](_0x3d9119[_0x3bf40c(0x186)],{'uniqueid':_0xa84fc1[_0x3bf40c(0x17a)]});return _0x1029c0?Promise['resolve']()['then'](function(){const _0x3b0a89=_0x3bf40c;if(_0x1029c0[_0x3b0a89(0x16a)])return ami['Action']({'action':_0x3b0a89(0x191),'channel':_0x1029c0[_0x3b0a89(0x16a)],'mixmonitorid':_0xa84fc1[_0x3b0a89(0x184)]})[_0x3b0a89(0x1aa)](function(){});})[_0x3bf40c(0x174)](function(){const _0x214daf=_0x3bf40c;if(_0x1029c0[_0x214daf(0x187)])return ami[_0x214daf(0x154)]({'action':'StopMixMonitor','channel':_0x1029c0['destinationchannel'],'mixmonitorid':_0xa84fc1[_0x214daf(0x184)]})['catch'](function(){});})[_0x3bf40c(0x174)](function(){const _0x16baa0=_0x3bf40c,_0x437271=_[_0x16baa0(0x18e)](_0x1029c0[_0x16baa0(0x133)],{'mixmonitorid':_0xa84fc1[_0x16baa0(0x184)]});_0x437271&&(_0x437271[_0x16baa0(0x1a7)]=_0x16baa0(0x155));})['then'](function(){const _0x53cadd=_0x3bf40c,_0x36cb4b=util['format'](_0x53cadd(0x18d),_0xa84fc1[_0x53cadd(0x185)]||_0xa84fc1[_0x53cadd(0x17a)],_0xa84fc1[_0x53cadd(0x17f)]||_0x53cadd(0x17c)),_0xa77df6=_[_0x53cadd(0x18e)](_0x1029c0[_0x53cadd(0x133)],{'filename':_0x53cadd(0x178)+_0x36cb4b[_0x53cadd(0x16c)]()});_0xa77df6&&(_0xa77df6[_0x53cadd(0x1a7)]=_0x53cadd(0x155));})[_0x3bf40c(0x174)](function(){const _0x4e288f=_0x3bf40c;_0x1b3d2d({'code':0xc8,'message':[_0xa84fc1[_0x4e288f(0x17a)],_0x4e288f(0x176)][_0x4e288f(0x190)]('\x20')});})['catch'](function(_0x2d2cb4){const _0xc76416=_0x3bf40c;_0x5574bb(_0x21d0f8['error'](0x1f5,[_0xa84fc1[_0xc76416(0x17a)],_0x2d2cb4[_0xc76416(0x182)]['toLowerCase']()][_0xc76416(0x190)]('\x20')));}):_0x5574bb(_0x21d0f8['error'](0x1f5,_0x3bf40c(0x16f)));});},'VoiceQueuesChannels':function(){return new Promise(function(_0xfe3920){const _0x51c60c=a1301_0x5acb,_0x974c02=_['values'](_0x3d9119[_0x51c60c(0x16e)]);_0xfe3920({'count':_0x974c02['length'],'rows':_0x974c02});});},'VoiceQueuesChannel':function(_0x227280){const _0x28c82e=this;return new Promise(function(_0x78da1d,_0x4a3475){const _0x3a87ee=a1301_0x5acb,_0x2d7516=schema(properties[_0x3a87ee(0x166)])[_0x3a87ee(0x14a)](_0x227280);if(_0x2d7516['length']>0x0)return _0x4a3475(_0x28c82e[_0x3a87ee(0x15d)](0x1f4,_[_0x3a87ee(0x141)](_0x2d7516,_0x3a87ee(0x182))['join'](',\x20')));const _0xdb3af=_[_0x3a87ee(0x18e)](_0x3d9119['queueChannels'],{'uniqueid':_0x227280[_0x3a87ee(0x17a)]});if(_0xdb3af)_0x78da1d(_0xdb3af);else return _0x4a3475(_0x28c82e[_0x3a87ee(0x15d)](0x1f5,'Channel\x20doesn\x27t\x20exist'));});},'VoiceQueuesChannelHangup':function(_0xa6f8c1){const _0x55f371=this;return new Promise(function(_0x46b897,_0x46bf40){const _0x1e10e7=a1301_0x5acb;if(ami[_0x1e10e7(0x157)]()==![])return _0x46bf40(_0x55f371[_0x1e10e7(0x15d)](0x1f4,[config['asterisk']['ip'],config[_0x1e10e7(0x170)][_0x1e10e7(0x1b3)],_0x1e10e7(0x164)][_0x1e10e7(0x190)]('\x20')));const _0x3f5a98=schema(properties[_0x1e10e7(0x1b7)])[_0x1e10e7(0x14a)](_0xa6f8c1);if(_0x3f5a98[_0x1e10e7(0x14b)]>0x0)return _0x46bf40(_0x55f371[_0x1e10e7(0x15d)](0x1f4,_[_0x1e10e7(0x141)](_0x3f5a98,_0x1e10e7(0x182))[_0x1e10e7(0x190)](',\x20')));const _0x50c5cf=_['find'](_0x3d9119[_0x1e10e7(0x16e)],{'uniqueid':_0xa6f8c1[_0x1e10e7(0x17a)]});return _0x50c5cf&&_0x50c5cf['channel']?ami['Action']({'action':_0x1e10e7(0x183),'channel':_0x50c5cf['channel']})['then'](function(_0x1cf2ea){const _0x22b673=_0x1e10e7;_0x46b897({'code':0xc8,'message':[_0xa6f8c1[_0x22b673(0x17a)],_0x1cf2ea[_0x22b673(0x182)]['toLowerCase']()][_0x22b673(0x190)]('\x20')});})[_0x1e10e7(0x1aa)](function(_0x9eacdb){const _0x12bcb0=_0x1e10e7;_0x46bf40(_0x55f371[_0x12bcb0(0x15d)](0x1f5,[_0xa6f8c1[_0x12bcb0(0x17a)],_0x9eacdb[_0x12bcb0(0x182)][_0x12bcb0(0x16c)]()]['join']('\x20')));}):_0x46bf40(_0x55f371[_0x1e10e7(0x15d)](0x1f5,_0x1e10e7(0x16f)));});},'VoiceQueuesChannelRedirect':function(_0x582345){const _0x4b1697=this;return new Promise(function(_0x5a8512,_0x27fa97){const _0x28e31f=a1301_0x5acb;if(ami[_0x28e31f(0x157)]()==![])return _0x27fa97(_0x4b1697['error'](0x1f4,[config['asterisk']['ip'],config[_0x28e31f(0x170)][_0x28e31f(0x1b3)],_0x28e31f(0x164)][_0x28e31f(0x190)]('\x20')));const _0x149314=schema(properties['voicequeuechannelredirect'])[_0x28e31f(0x14a)](_0x582345);if(_0x149314[_0x28e31f(0x14b)]>0x0)return _0x27fa97(_0x4b1697[_0x28e31f(0x15d)](0x1f4,_[_0x28e31f(0x141)](_0x149314,'message')[_0x28e31f(0x190)](',\x20')));const _0x2e79fb=_[_0x28e31f(0x18e)](_0x3d9119[_0x28e31f(0x16e)],{'uniqueid':_0x582345['uniqueid']});return _0x2e79fb&&_0x2e79fb[_0x28e31f(0x16a)]?ami[_0x28e31f(0x154)]({'action':_0x28e31f(0x17b),'channel':_0x2e79fb['channel'],'exten':_0x582345[_0x28e31f(0x18b)],'context':_0x582345[_0x28e31f(0x198)]||_0x2e79fb[_0x28e31f(0x198)],'priority':0x1})['then'](function(_0x34b9f7){const _0x41fbd2=_0x28e31f;_0x5a8512({'code':0xc8,'message':[_0x582345['uniqueid'],_0x34b9f7[_0x41fbd2(0x182)]['toLowerCase']()]['join']('\x20')});})[_0x28e31f(0x1aa)](function(_0x80f86a){const _0x211e06=_0x28e31f;_0x27fa97(_0x4b1697[_0x211e06(0x15d)](0x1f5,[_0x582345['uniqueid'],_0x80f86a[_0x211e06(0x182)][_0x211e06(0x16c)]()][_0x211e06(0x190)]('\x20')));}):_0x27fa97(_0x4b1697[_0x28e31f(0x15d)](0x1f5,_0x28e31f(0x16f)));});},'Agents':function(){return new Promise(function(_0x457feb){const _0x3a4bb5=a1301_0x5acb,_0x40367a=_['values'](_0x3d9119[_0x3a4bb5(0x153)]);_0x457feb({'count':_0x40367a[_0x3a4bb5(0x14b)],'rows':_0x40367a});});},'Telephones':function(){return new Promise(function(_0x13bcb8){const _0x1e3a94=a1301_0x5acb,_0xb27d20=_[_0x1e3a94(0x131)](_0x3d9119[_0x1e3a94(0x1a8)]);_0x13bcb8({'count':_0xb27d20[_0x1e3a94(0x14b)],'rows':_0xb27d20});});},'Trunks':function(){return new Promise(function(_0x5c16d8){const _0x1effcb=a1301_0x5acb,_0x1c4d66=_[_0x1effcb(0x131)](_0x3d9119[_0x1effcb(0x136)]);_0x5c16d8({'count':_0x1c4d66[_0x1effcb(0x14b)],'rows':_0x1c4d66});});},'OutboundChannels':function(){return new Promise(function(_0x33b76a){const _0xe30013=a1301_0x5acb,_0x1001b7=_[_0xe30013(0x131)](_0x3d9119[_0xe30013(0x192)]);_0x33b76a({'count':_0x1001b7[_0xe30013(0x14b)],'rows':_0x1001b7});});},'Outbound':function(){return new Promise(function(_0x2ae31a){const _0x16fbe7=a1301_0x5acb;_0x2ae31a(_0x3d9119[_0x16fbe7(0x165)]);});},'Campaigns':function(){return new Promise(function(_0x133c67){const _0x4eeeac=a1301_0x5acb,_0x3560a8=_[_0x4eeeac(0x131)](_0x3d9119['campaigns']);_0x133c67({'count':_0x3560a8[_0x4eeeac(0x14b)],'rows':_0x3560a8});});},'VoiceQueuesPreview':function(_0xe3ad93){const _0x2989df=this;return new Promise(function(_0x4a586a,_0x5bed8a){const _0x17a524=a1301_0x5acb;_0x187fd2[_0x17a524(0x143)](_0xe3ad93['id'])['then'](function(_0x900218){const _0x27dec6=_0x17a524;_0x4a586a({'code':0xc8,'message':_0x900218[_0x27dec6(0x182)]});})['catch'](function(_0x105025){const _0x347f09=_0x17a524;_0x5bed8a(_0x2989df[_0x347f09(0x15d)](0x1f4,_0x105025[_0x347f09(0x182)]));});});},'EventManager':function(_0x43f186){const _0x5ab055=this;return new Promise(function(_0x471ea8,_0x1ce241){const _0x10447f=a1301_0x5acb;if(!_0x43f186[_0x10447f(0x162)])return _0x1ce241(_0x5ab055[_0x10447f(0x15d)](0x1f4,_0x10447f(0x175)));ami[_0x10447f(0x173)](_0x10447f(0x158)+_0x43f186[_0x10447f(0x162)],_0x43f186['message']),_0x471ea8({'code':0xc8,'message':_0x43f186});});},'FaxAccounts':function(){return new Promise(function(_0x3ea931){const _0x302166=a1301_0x5acb,_0x416169=_[_0x302166(0x131)](_0x3d9119[_0x302166(0x1b2)]);_0x3ea931({'count':_0x416169[_0x302166(0x14b)],'rows':_0x416169});});},'SendFax':function(_0x17e854){const _0x203d18=this;return new Promise(function(_0x3da8a1,_0x5aaefd){const _0x58f195=a1301_0x5acb;_0x4e794b[_0x58f195(0x13a)](_0x17e854)[_0x58f195(0x174)](function(_0x3a343e){const _0x1f2ed7=_0x58f195;_0x3da8a1({'code':0xc8,'message':_0x3a343e[_0x1f2ed7(0x182)]});})[_0x58f195(0x1aa)](function(_0x482167){const _0x446354=_0x58f195;_0x5aaefd(_0x203d18['error'](0x1f4,_0x482167[_0x446354(0x182)]));});});},'CheckAfterSend':function(_0x1eb0a0){const _0x2434db=this;return new Promise(function(_0x4cccda,_0x4e3b69){const _0x56df9c=a1301_0x5acb;_0x4e794b['checkAfterSend'](_0x1eb0a0)[_0x56df9c(0x174)](function(_0x1fce85){const _0x4cdf94=_0x56df9c;_0x4cccda({'code':0xc8,'message':_0x1fce85[_0x4cdf94(0x182)]});})[_0x56df9c(0x1aa)](function(_0x1851f8){const _0x33ac47=_0x56df9c;_0x4e3b69(_0x2434db[_0x33ac47(0x15d)](0x1f4,_0x1851f8['message']));});});}},_0x55145a=jayson[_0x1cd04d(0x13e)](_0x2dd545)[_0x1cd04d(0x180)]();_0x55145a['on']('error',function(_0x545383){return _0xdf303e(_0x545383);}),_0x55145a['listen'](0x232a,_0x1cd04d(0x139),function(){const _0x6de55b=_0x1cd04d;return console['log'](_0x6de55b(0x14f),0x232a),_0x190f7a(_0x6de55b(0x171)+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 874f0df..aa685ed 100644 --- a/server/services/ami/trigger/cmContact/index.js +++ b/server/services/ami/trigger/cmContact/index.js @@ -1 +1 @@ -const a1302_0x39ec=['toLowerCase','merge','calleridnum','destcalleridnum','info','lastName','firstName','isNil','sequelize','action','routeId','exec','union','phone','','uniqueid','format','../../../../rediscache','../../../../config/logger','getContacts','resolve','updatedAt','isEmpty','join','calleridname','data3','emit','data1','map','Unknown','lodash','mobile','ListId','split','../../rpc/cmContact','[CM][%s][%s]\x20Autocreate\x20disabled','createdAt','[CM][%s][%s]\x20Autocreate\x20enabled','destcalleridname','trigger:%s','trigger','xmd-contactid2','data2','length','[CM][%s][%s]\x20Multiple\x20contacts\x20found:[%s]','scheduledAt','then','data4'];(function(_0x21b160,_0x31d76f){const _0x39ec3e=function(_0x2b2da9){while(--_0x2b2da9){_0x21b160['push'](_0x21b160['shift']());}};_0x39ec3e(++_0x31d76f);}(a1302_0x39ec,0xfc));const a1302_0x2b2d=function(_0x21b160,_0x31d76f){_0x21b160=_0x21b160-0x176;let _0x39ec3e=a1302_0x39ec[_0x21b160];return _0x39ec3e;};const a1302_0x5d99ba=a1302_0x2b2d;'use strict';const util=require('util'),_=require(a1302_0x5d99ba(0x188)),logger=require(a1302_0x5d99ba(0x17c))(a1302_0x5d99ba(0x192)),cmContactRpc=require(a1302_0x5d99ba(0x18c)),{Op}=require(a1302_0x5d99ba(0x1a2)),{getSocket}=require(a1302_0x5d99ba(0x17b)),io=getSocket();function emit(_0x3626e2,_0x2b9816,_0x36674b,_0x49d487,_0x574c91){const _0x3f112f=a1302_0x5d99ba;logger[_0x3f112f(0x19e)]('[CM][%s][%s]',_0x3626e2,_0x2b9816['id'],_0x36674b,_0x49d487,JSON['stringify'](_0x574c91)),io['to'](_0x36674b)[_0x3f112f(0x184)](_0x49d487,_0x574c91);}exports[a1302_0x5d99ba(0x1a5)]=function(_0x4c6213,_0x84c2a5,_0x2c0edb,_0x570a18){const _0x3675a0=a1302_0x5d99ba;let _0xeff9e0,_0xc64006;const _0x255030={},_0x27074c=Number(_0x2c0edb[_0x3675a0(0x185)]),_0x40aec9=_0x2c0edb[_0x3675a0(0x194)]?Boolean(Number(_0x2c0edb[_0x3675a0(0x194)])):![];let _0x71f393=[];if(_0x570a18[_0x3675a0(0x193)]&&!_[_0x3675a0(0x180)](_0x570a18[_0x3675a0(0x193)]))_0x255030['id']=_0x570a18['xmd-contactid2'];!_0x255030['id']&&(_0x255030[_0x3675a0(0x18a)]=_0x27074c,_0x71f393=_0x2c0edb[_0x3675a0(0x183)]&&_0x2c0edb[_0x3675a0(0x183)]!=='0'?_0x2c0edb[_0x3675a0(0x183)][_0x3675a0(0x18b)](','):[_0x3675a0(0x177)],_0x255030[Op['or']]=_[_0x3675a0(0x186)](_0x71f393,function(_0x185146){const _0x583fd2=_0x3675a0,_0x2b9e25={};return _0x2b9e25[_0x185146]=_0x570a18[_0x583fd2(0x1a4)]?_0x570a18[_0x583fd2(0x19d)]:_0x570a18[_0x583fd2(0x19c)],_0x2b9e25;}));const _0x24dc71=['id',_0x3675a0(0x1a0),_0x3675a0(0x19f),_0x3675a0(0x177),_0x3675a0(0x189),'fax','ListId',_0x3675a0(0x18e),_0x3675a0(0x197),_0x3675a0(0x17f)],_0x478578=_[_0x3675a0(0x176)](_0x24dc71,_0x71f393);Promise[_0x3675a0(0x17e)]()[_0x3675a0(0x198)](cmContactRpc[_0x3675a0(0x17d)]({'attributes':_0x478578,'where':_0x255030}))[_0x3675a0(0x198)](function(_0x16cee0){const _0x4ebfb2=_0x3675a0;_0xc64006=_0x16cee0;if(!_[_0x4ebfb2(0x180)](_0xc64006)){_0xc64006[_0x4ebfb2(0x195)]===0x1?(_0xeff9e0=_0xc64006[0x0],logger[_0x4ebfb2(0x19e)]('[CM][%s][%s]\x20Contact\x20found:%s',_0x570a18[_0x4ebfb2(0x179)],_0x84c2a5['id'],_0xeff9e0['id'])):logger[_0x4ebfb2(0x19e)](_0x4ebfb2(0x196),_0x570a18[_0x4ebfb2(0x179)],_0x84c2a5['id'],_['map'](_0xc64006,'id')[_0x4ebfb2(0x181)](','));return;}else{logger['info']('[CM][%s][%s]\x20Contact\x20not\x20found',_0x570a18[_0x4ebfb2(0x179)],_0x84c2a5['id']);if(_0x40aec9){logger[_0x4ebfb2(0x19e)](_0x4ebfb2(0x18f),_0x570a18['uniqueid'],_0x84c2a5['id']);const _0x38a6bf=_0x2c0edb[_0x4ebfb2(0x199)]&&_0x2c0edb[_0x4ebfb2(0x199)]!=='0'?_0x2c0edb['data4']:'phone',_0x44ed5b={'ListId':_0x27074c};return _0x44ed5b[_0x38a6bf]=_[_0x4ebfb2(0x1a1)](_0x570a18['routeId'])?_0x570a18[_0x4ebfb2(0x19c)]:_0x570a18['destcalleridnum'],_[_0x4ebfb2(0x1a1)](_0x570a18[_0x4ebfb2(0x1a4)])?_0x44ed5b[_0x4ebfb2(0x1a0)]=_0x570a18[_0x4ebfb2(0x182)]&&_0x570a18['calleridname']!==_0x4ebfb2(0x178)?_0x570a18[_0x4ebfb2(0x182)]:_0x4ebfb2(0x187):_0x44ed5b[_0x4ebfb2(0x1a0)]=_0x570a18[_0x4ebfb2(0x190)]&&_0x570a18[_0x4ebfb2(0x190)]!==_0x4ebfb2(0x178)?_0x570a18[_0x4ebfb2(0x190)]:_0x4ebfb2(0x187),Promise[_0x4ebfb2(0x17e)]()[_0x4ebfb2(0x198)](cmContactRpc['createContact'](_0x44ed5b))[_0x4ebfb2(0x198)](function(_0xb5ba60){const _0x30c123=_0x4ebfb2;_0xeff9e0=_0xb5ba60;_0xeff9e0&&logger[_0x30c123(0x19e)]('[CM][%s][%s]\x20Contact\x20created:%s',_0x570a18['uniqueid'],_0x84c2a5['id'],_0xeff9e0['id']);return;});}else{logger[_0x4ebfb2(0x19e)](_0x4ebfb2(0x18d),_0x570a18['uniqueid'],_0x84c2a5['id']);return;}}})['then'](function(){const _0x4c2be1=_0x3675a0;_0x4c6213&&emit(_0x570a18[_0x4c2be1(0x179)],_0x84c2a5,util['format']('user:%s',_0x4c6213['name']),util[_0x4c2be1(0x17a)](_0x4c2be1(0x191),_0x2c0edb[_0x4c2be1(0x1a3)][_0x4c2be1(0x19a)]()),{'evt':_[_0x4c2be1(0x19b)](_0x570a18,{'autoCreate':_0x40aec9}),'contact':_0xeff9e0,'contacts':!_0xeff9e0?_0xc64006:undefined});});}; \ No newline at end of file +const a1302_0x22d3=['createdAt','isNil','map','trigger','../../rpc/cmContact','data4','stringify','[CM][%s][%s]\x20Autocreate\x20enabled','destcalleridname','createContact','fax','isEmpty','sequelize','data2','xmd-contactid2','[CM][%s][%s]','union','length','firstName','mobile','../../../../rediscache','ListId','[CM][%s][%s]\x20Multiple\x20contacts\x20found:[%s]','format','phone','../../../../config/logger','data3','lodash','join','then','Unknown','destcalleridnum','calleridname','routeId','lastName','getContacts','[CM][%s][%s]\x20Contact\x20not\x20found','[CM][%s][%s]\x20Autocreate\x20disabled','merge','trigger:%s','','exec','toLowerCase','info','uniqueid','calleridnum'];(function(_0x2dcfa1,_0x1b8fa1){const _0x22d32c=function(_0x3ab696){while(--_0x3ab696){_0x2dcfa1['push'](_0x2dcfa1['shift']());}};_0x22d32c(++_0x1b8fa1);}(a1302_0x22d3,0x1de));const a1302_0x3ab6=function(_0x2dcfa1,_0x1b8fa1){_0x2dcfa1=_0x2dcfa1-0xc6;let _0x22d32c=a1302_0x22d3[_0x2dcfa1];return _0x22d32c;};const a1302_0x58ff73=a1302_0x3ab6;'use strict';const util=require('util'),_=require(a1302_0x58ff73(0xcf)),logger=require(a1302_0x58ff73(0xcd))(a1302_0x58ff73(0xe5)),cmContactRpc=require(a1302_0x58ff73(0xe6)),{Op}=require(a1302_0x58ff73(0xee)),{getSocket}=require(a1302_0x58ff73(0xc8)),io=getSocket();function emit(_0x4a33b7,_0x50e922,_0x5de544,_0x36b9a7,_0x100dde){const _0x42371d=a1302_0x58ff73;logger[_0x42371d(0xdf)](_0x42371d(0xf1),_0x4a33b7,_0x50e922['id'],_0x5de544,_0x36b9a7,JSON[_0x42371d(0xe8)](_0x100dde)),io['to'](_0x5de544)['emit'](_0x36b9a7,_0x100dde);}exports[a1302_0x58ff73(0xdd)]=function(_0x1d4b06,_0x16dbe8,_0x160f47,_0x2e5c23){const _0x2af9fd=a1302_0x58ff73;let _0x37191f,_0xc22037;const _0x249397={},_0x2f44e6=Number(_0x160f47['data1']),_0x4a0823=_0x160f47[_0x2af9fd(0xef)]?Boolean(Number(_0x160f47[_0x2af9fd(0xef)])):![];let _0x3bd923=[];if(_0x2e5c23[_0x2af9fd(0xf0)]&&!_[_0x2af9fd(0xed)](_0x2e5c23['xmd-contactid2']))_0x249397['id']=_0x2e5c23[_0x2af9fd(0xf0)];!_0x249397['id']&&(_0x249397[_0x2af9fd(0xc9)]=_0x2f44e6,_0x3bd923=_0x160f47[_0x2af9fd(0xce)]&&_0x160f47[_0x2af9fd(0xce)]!=='0'?_0x160f47[_0x2af9fd(0xce)]['split'](','):[_0x2af9fd(0xcc)],_0x249397[Op['or']]=_[_0x2af9fd(0xe4)](_0x3bd923,function(_0x17ae7a){const _0x1e72aa=_0x2af9fd,_0x3c06bc={};return _0x3c06bc[_0x17ae7a]=_0x2e5c23['routeId']?_0x2e5c23[_0x1e72aa(0xd3)]:_0x2e5c23[_0x1e72aa(0xe1)],_0x3c06bc;}));const _0x35292a=['id',_0x2af9fd(0xc6),_0x2af9fd(0xd6),'phone',_0x2af9fd(0xc7),_0x2af9fd(0xec),_0x2af9fd(0xc9),_0x2af9fd(0xe2),'scheduledAt','updatedAt'],_0x4be5a3=_[_0x2af9fd(0xf2)](_0x35292a,_0x3bd923);Promise['resolve']()[_0x2af9fd(0xd1)](cmContactRpc[_0x2af9fd(0xd7)]({'attributes':_0x4be5a3,'where':_0x249397}))[_0x2af9fd(0xd1)](function(_0x434f7a){const _0x3f45e5=_0x2af9fd;_0xc22037=_0x434f7a;if(!_[_0x3f45e5(0xed)](_0xc22037)){_0xc22037[_0x3f45e5(0xf3)]===0x1?(_0x37191f=_0xc22037[0x0],logger[_0x3f45e5(0xdf)]('[CM][%s][%s]\x20Contact\x20found:%s',_0x2e5c23[_0x3f45e5(0xe0)],_0x16dbe8['id'],_0x37191f['id'])):logger['info'](_0x3f45e5(0xca),_0x2e5c23['uniqueid'],_0x16dbe8['id'],_[_0x3f45e5(0xe4)](_0xc22037,'id')[_0x3f45e5(0xd0)](','));return;}else{logger[_0x3f45e5(0xdf)](_0x3f45e5(0xd8),_0x2e5c23['uniqueid'],_0x16dbe8['id']);if(_0x4a0823){logger['info'](_0x3f45e5(0xe9),_0x2e5c23[_0x3f45e5(0xe0)],_0x16dbe8['id']);const _0x56a430=_0x160f47[_0x3f45e5(0xe7)]&&_0x160f47[_0x3f45e5(0xe7)]!=='0'?_0x160f47['data4']:_0x3f45e5(0xcc),_0x6a1dd6={'ListId':_0x2f44e6};return _0x6a1dd6[_0x56a430]=_[_0x3f45e5(0xe3)](_0x2e5c23[_0x3f45e5(0xd5)])?_0x2e5c23[_0x3f45e5(0xe1)]:_0x2e5c23[_0x3f45e5(0xd3)],_[_0x3f45e5(0xe3)](_0x2e5c23[_0x3f45e5(0xd5)])?_0x6a1dd6[_0x3f45e5(0xc6)]=_0x2e5c23[_0x3f45e5(0xd4)]&&_0x2e5c23[_0x3f45e5(0xd4)]!==_0x3f45e5(0xdc)?_0x2e5c23['calleridname']:_0x3f45e5(0xd2):_0x6a1dd6[_0x3f45e5(0xc6)]=_0x2e5c23[_0x3f45e5(0xea)]&&_0x2e5c23[_0x3f45e5(0xea)]!==_0x3f45e5(0xdc)?_0x2e5c23[_0x3f45e5(0xea)]:_0x3f45e5(0xd2),Promise['resolve']()[_0x3f45e5(0xd1)](cmContactRpc[_0x3f45e5(0xeb)](_0x6a1dd6))[_0x3f45e5(0xd1)](function(_0x100413){const _0x47078f=_0x3f45e5;_0x37191f=_0x100413;_0x37191f&&logger[_0x47078f(0xdf)]('[CM][%s][%s]\x20Contact\x20created:%s',_0x2e5c23[_0x47078f(0xe0)],_0x16dbe8['id'],_0x37191f['id']);return;});}else{logger[_0x3f45e5(0xdf)](_0x3f45e5(0xd9),_0x2e5c23[_0x3f45e5(0xe0)],_0x16dbe8['id']);return;}}})[_0x2af9fd(0xd1)](function(){const _0x36ecfa=_0x2af9fd;_0x1d4b06&&emit(_0x2e5c23[_0x36ecfa(0xe0)],_0x16dbe8,util[_0x36ecfa(0xcb)]('user:%s',_0x1d4b06['name']),util[_0x36ecfa(0xcb)](_0x36ecfa(0xdb),_0x160f47['action'][_0x36ecfa(0xde)]()),{'evt':_[_0x36ecfa(0xda)](_0x2e5c23,{'autoCreate':_0x4a0823}),'contact':_0x37191f,'contacts':!_0x37191f?_0xc22037:undefined});});}; \ No newline at end of file diff --git a/server/services/ami/trigger/index.js b/server/services/ami/trigger/index.js index 0efba50..3e191ee 100644 --- a/server/services/ami/trigger/index.js +++ b/server/services/ami/trigger/index.js @@ -1 +1 @@ -const a1303_0x320b=['custom:agentnoanswer','length','syncAgentDial','deskAccounts','lodash','template\x20not\x20found','servicenowAccounts','query','syncCustomEvent','trigger:%s','action','emit','agents','user:%s','bind','search','urlforward','custom:dialend','prototype','toLowerCase','./cmContact','Actions','custom:dialconnect','data2','800','queue','status','../../../config/logger','sugarcrmAccounts','render','integration','custom:incomingmessage','motionbar','exec','custom:agentcongestion','triggers','voiceQueues','zohoAccounts','freshdeskAccounts','jscripty','interface','data1','format','field','AnyConditions','custom:agentcomplete','routeId','clone','interaction','uriLocation','AccountId','location','stringify','dynamics365Accounts','browser','custom:agentreject','event','lastevent','value','winapp','600','agent','custom:closedinteraction','templates','custom:agentcalled','uri','../../../rediscache','winArguments','ChatWebsiteId','accounts','operator','isNil','trigger:%s:%s','contactmanager','winApplication','membername','checkTrigger','data3','url','buildUri','custom:agentbusy','./urlforward','./script','message','custom:dialbegin','script','salesforceAccounts','custom:queuecallerabandon','./integration','undefined','checkTriggers','freshsalesAccounts','chat','checkConditions','mustache','custom:timeout','merge','TemplateId','data4','vtigerAccounts','windowHeight','channel','popup','html','data6','zendeskAccounts','upperFirst','custom:rejectmessage','data5','custom:agentringnoanswer','name','custom:newinteraction'];(function(_0x30e007,_0x21be9c){const _0x320b5b=function(_0x1e385a){while(--_0x1e385a){_0x30e007['push'](_0x30e007['shift']());}};_0x320b5b(++_0x21be9c);}(a1303_0x320b,0xdd));const a1303_0x1e38=function(_0x30e007,_0x21be9c){_0x30e007=_0x30e007-0x10f;let _0x320b5b=a1303_0x320b[_0x30e007];return _0x320b5b;};const a1303_0x146513=a1303_0x1e38;'use strict';const util=require('util'),_=require(a1303_0x146513(0x116)),url=require(a1303_0x146513(0x160)),Mustache=require(a1303_0x146513(0x170)),urlforward=require(a1303_0x146513(0x163)),integration=require(a1303_0x146513(0x16a)),cmContact=require(a1303_0x146513(0x126)),script=require(a1303_0x146513(0x164)),logger=require(a1303_0x146513(0x12d))('trigger'),ami=require('../ami'),{getSocket}=require(a1303_0x146513(0x154)),io=getSocket(),operators={'equals':function(_0x18dd1d,_0x5f2f6e){return _0x18dd1d==_0x5f2f6e;},'not_equals':function(_0x6d1be5,_0xb5ff02){return _0x6d1be5!=_0xb5ff02;}},barAndWebActions=[a1303_0x146513(0x178),a1303_0x146513(0x160),a1303_0x146513(0x14d)];function Trigger(_0x4cd6b6){const _0x4c369a=a1303_0x146513;this['triggers']=_0x4cd6b6[_0x4c369a(0x135)],this[_0x4c369a(0x11e)]=_0x4cd6b6[_0x4c369a(0x11e)],this[_0x4c369a(0x136)]=_0x4cd6b6[_0x4c369a(0x136)],this['templates']=_0x4cd6b6[_0x4c369a(0x151)],this['voiceExtensions']=_0x4cd6b6['voiceExtensions'],this[_0x4c369a(0x17b)]=_0x4cd6b6[_0x4c369a(0x17b)],this[_0x4c369a(0x138)]=_0x4cd6b6[_0x4c369a(0x138)],this[_0x4c369a(0x168)]=_0x4cd6b6[_0x4c369a(0x168)],this[_0x4c369a(0x12e)]=_0x4cd6b6[_0x4c369a(0x12e)],this[_0x4c369a(0x137)]=_0x4cd6b6[_0x4c369a(0x137)],this['deskAccounts']=_0x4cd6b6[_0x4c369a(0x115)],this[_0x4c369a(0x175)]=_0x4cd6b6[_0x4c369a(0x175)],this[_0x4c369a(0x118)]=_0x4cd6b6['servicenowAccounts'],this[_0x4c369a(0x147)]=_0x4cd6b6['dynamics365Accounts'],this[_0x4c369a(0x16d)]=_0x4cd6b6[_0x4c369a(0x16d)],this[_0x4c369a(0x157)]={'zendesk':this[_0x4c369a(0x17b)],'salesforce':this[_0x4c369a(0x168)],'freshdesk':this['freshdeskAccounts'],'sugarcrm':this['sugarcrmAccounts'],'zoho':this[_0x4c369a(0x137)],'desk':this[_0x4c369a(0x115)],'vtiger':this[_0x4c369a(0x175)],'dynamics365':this[_0x4c369a(0x147)],'freshsales':this[_0x4c369a(0x16d)],'servicenow':this['servicenowAccounts']},ami['on'](_0x4c369a(0x152),this[_0x4c369a(0x11a)][_0x4c369a(0x120)](this)),ami['on']('custom:agentconnect',this[_0x4c369a(0x11a)]['bind'](this)),ami['on'](_0x4c369a(0x10f),this['syncCustomEvent']['bind'](this)),ami['on'](_0x4c369a(0x13f),this['syncCustomEvent']['bind'](this)),ami['on']('custom:agentnosuchnumber',this[_0x4c369a(0x11a)][_0x4c369a(0x120)](this)),ami['on'](_0x4c369a(0x112),this[_0x4c369a(0x11a)][_0x4c369a(0x120)](this)),ami['on'](_0x4c369a(0x162),this[_0x4c369a(0x11a)]['bind'](this)),ami['on'](_0x4c369a(0x134),this['syncCustomEvent'][_0x4c369a(0x120)](this)),ami['on'](_0x4c369a(0x149),this[_0x4c369a(0x11a)]['bind'](this)),ami['on'](_0x4c369a(0x169),this[_0x4c369a(0x11a)]['bind'](this)),ami['on'](_0x4c369a(0x171),this[_0x4c369a(0x11a)]['bind'](this)),ami['on'](_0x4c369a(0x166),this[_0x4c369a(0x114)]['bind'](this)),ami['on'](_0x4c369a(0x128),this[_0x4c369a(0x114)]['bind'](this)),ami['on'](_0x4c369a(0x123),this[_0x4c369a(0x114)][_0x4c369a(0x120)](this)),ami['on'](_0x4c369a(0x111),this[_0x4c369a(0x11a)]['bind'](this)),ami['on'](_0x4c369a(0x150),this[_0x4c369a(0x11a)][_0x4c369a(0x120)](this)),ami['on'](_0x4c369a(0x131),this[_0x4c369a(0x11a)]['bind'](this)),ami['on']('custom:outgoingmessage',this[_0x4c369a(0x11a)][_0x4c369a(0x120)](this)),ami['on']('custom:acceptmessage',this[_0x4c369a(0x11a)][_0x4c369a(0x120)](this)),ami['on'](_0x4c369a(0x17d),this[_0x4c369a(0x11a)][_0x4c369a(0x120)](this));}Trigger[a1303_0x146513(0x124)]['emit']=function(_0xcee01,_0x4c265e,_0x413fc3){const _0x5caca8=a1303_0x146513;logger['info'](_0xcee01,_0x4c265e,JSON[_0x5caca8(0x146)](_0x413fc3)),io['to'](_0xcee01)[_0x5caca8(0x11d)](_0x4c265e,_0x413fc3);},Trigger['prototype'][a1303_0x146513(0x11a)]=function(_0x276cd3){const _0x41648f=a1303_0x146513,_0x1e08ac=_[_0x41648f(0x141)](_0x276cd3);this[_0x41648f(0x16c)](_0x1e08ac);},Trigger['prototype'][a1303_0x146513(0x114)]=function(_0x49d0b4){const _0x30b78c=a1303_0x146513;this[_0x30b78c(0x11e)][_0x49d0b4[_0x30b78c(0x13a)]]&&this['syncCustomEvent'](_0x49d0b4);},Trigger[a1303_0x146513(0x124)][a1303_0x146513(0x16c)]=function(_0x59ca25){const _0x4a6171=a1303_0x146513;let _0x3a8107;for(const _0x50bd41 in this[_0x4a6171(0x135)]){if(typeof this[_0x4a6171(0x135)][_0x50bd41]!==_0x4a6171(0x16b)){if(this[_0x4a6171(0x135)][_0x50bd41][_0x4a6171(0x12c)]){_0x3a8107=this[_0x4a6171(0x15e)](this['triggers'][_0x50bd41],_0x59ca25);if(_0x3a8107){_[_0x4a6171(0x172)](_0x59ca25,_0x59ca25['variables']);for(let _0x417940=0x0,_0x46499c;_0x4179400x0&&(_0x28c13d=_['map'](_0x44be40,_0x4495c1)),_0x28c13d;}function getCustomFields(_0x51e4d3,_0x559dda){const _0xa7654f=a1304_0x5d0cd5,_0x5227ba={'custom_fields':{}};return _0x51e4d3[_0xa7654f(0x142)]>0x0&&_[_0xa7654f(0x139)](_0x51e4d3,function(_0x1bfdb8){const _0x52d154=_0xa7654f;if(_0x1bfdb8['type']==='string'&&_0x1bfdb8['nameField']&&!_0x1bfdb8['customField'])_0x5227ba[_0x1bfdb8[_0x52d154(0x117)][_0x52d154(0x161)]()]=_0x1bfdb8[_0x52d154(0x12d)][_0x52d154(0x10a)]();else{if(_0x1bfdb8[_0x52d154(0x15d)]==='string'&&_0x1bfdb8['idField']&&_0x1bfdb8[_0x52d154(0x149)])_0x5227ba[_0x52d154(0x120)][_0x1bfdb8[_0x52d154(0x143)]]=_0x1bfdb8['content']['toString']();else{if(_0x1bfdb8[_0x52d154(0x15d)]===_0x52d154(0x115)&&_0x1bfdb8[_0x52d154(0x11f)]&&_0x1bfdb8[_0x52d154(0x143)]&&_0x1bfdb8[_0x52d154(0x149)])_0x559dda[_0x1bfdb8[_0x52d154(0x11f)]]&&(_0x5227ba[_0x52d154(0x120)][_0x1bfdb8[_0x52d154(0x143)]]=_0x559dda[_0x1bfdb8[_0x52d154(0x11f)]][_0x52d154(0x10a)]());else _0x1bfdb8[_0x52d154(0x15d)]==='customVariable'&&_0x1bfdb8[_0x52d154(0x110)]&&_0x1bfdb8[_0x52d154(0x110)][_0x52d154(0x147)]&&_0x1bfdb8[_0x52d154(0x143)]&&_0x1bfdb8[_0x52d154(0x149)]&&(_0x559dda[_0x1bfdb8['Variable'][_0x52d154(0x147)][_0x52d154(0x161)]()]&&(_0x5227ba[_0x52d154(0x120)][_0x1bfdb8['idField']]=_0x559dda[_0x1bfdb8[_0x52d154(0x110)][_0x52d154(0x147)]['toLowerCase']()][_0x52d154(0x10a)]()));}}}),_0x5227ba['priority']&&(_0x5227ba[_0xa7654f(0x137)]=Number(_0x5227ba[_0xa7654f(0x137)])),_0x5227ba;}function getTicket(_0x2bb9a8,_0x319301,_0x5a3b01,_0xadedec,_0x372a53){const _0x445702=a1304_0x5d0cd5;logger['info']('Creating\x20new\x20ticket...');const _0x3628f7=_[_0x445702(0x15e)]({'subject':intUtil[_0x445702(0x162)](_0xadedec[_0x445702(0x152)],_0x372a53,'\x20'),'type':'phone','status':_0x445702(0x14a),'labels':['xCALLY',_0x445702(0x140),_0x445702(0x13c)]['concat'](getTags(_0xadedec['Tags'],_0x445702(0x147))),'description':intUtil[_0x445702(0x162)](_0xadedec[_0x445702(0x15b)],_0x372a53,'\x0a'),'_links':{'assigned_user':{'href':util[_0x445702(0x10c)]('/api/v2/users/%d',_0x319301['id']),'class':_0x445702(0x116)}},'message':{'direction':'in','body':intUtil[_0x445702(0x162)](_0xadedec[_0x445702(0x15b)],_0x372a53,'\x0a')}},getCustomFields(_0xadedec['Fields'],_0x372a53));return request({'uri':util['format'](_0x445702(0x15c),_0x2bb9a8['remoteUri'],_0x5a3b01['id']),'method':'POST','body':_0x3628f7});}exports[a1304_0x5d0cd5(0x130)]=function(_0x299e12,_0x37fb51,_0x25ddc7,_0x83082f,_0xcf9fa7,_0x1c6aae){const _0x6d13dc=a1304_0x5d0cd5;let _0x2cf9ad,_0x4bad93;return _0x1c6aae[_0x6d13dc(0x164)]=intUtil['stripTrailingSlash'](_0x1c6aae['remoteUri']),_0x1c6aae['serverUrl']=intUtil[_0x6d13dc(0x13d)](_0x1c6aae[_0x6d13dc(0x122)]),_0xcf9fa7&&_0xcf9fa7[_0x6d13dc(0x146)]?(logger['info'](_0x6d13dc(0x10b),'Recording\x20is\x20enabled!'),_0x37fb51[_0x6d13dc(0x14e)]=util[_0x6d13dc(0x10c)](_0x6d13dc(0x119),_0x1c6aae['serverUrl'],_0x37fb51[_0x6d13dc(0x13a)],md5(_0x37fb51[_0x6d13dc(0x13a)]))):_0x37fb51[_0x6d13dc(0x14e)]='',headers[_0x6d13dc(0x134)]=getAuth(_0x1c6aae),getUser(_0x1c6aae,_0x83082f[_0x6d13dc(0x154)])[_0x6d13dc(0x135)](function(_0xcfce7b){const _0xa37236=_0x6d13dc;return _0x2cf9ad=_0xcfce7b,logger[_0xa37236(0x125)]('The\x20User\x20ID\x20is:',_0x2cf9ad['id']),getEndUser(_0x1c6aae,_0x37fb51['calleridname'],_0x37fb51[_0xa37236(0x12e)]);})[_0x6d13dc(0x135)](function(_0x44db8b){const _0x51ab08=_0x6d13dc;return _0x4bad93=_0x44db8b,logger[_0x51ab08(0x125)]('The\x20Enduser\x20ID\x20is:',_0x4bad93['id']),getTicket(_0x1c6aae,_0x2cf9ad,_0x4bad93,_0x25ddc7,_0x37fb51);})[_0x6d13dc(0x135)](function(_0x8f86bd){const _0x20a93c=_0x6d13dc;if(_0x8f86bd){logger['info'](_0x20a93c(0x163)),logger['info']('The\x20Ticket\x20ID\x20is:',_0x8f86bd['id']);switch(_0x1c6aae[_0x20a93c(0x15d)]){case _0x20a93c(0x12b):logger['info'](_0x20a93c(0x10b),_0x20a93c(0x11a)),emit(util[_0x20a93c(0x10c)](_0x20a93c(0x133),_0x83082f[_0x20a93c(0x147)]),_0x20a93c(0x150),{'recordId':_0x8f86bd['id']});break;case _0x20a93c(0x145):logger[_0x20a93c(0x125)](_0x20a93c(0x10b),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x20a93c(0x10c)](_0x20a93c(0x133),_0x83082f[_0x20a93c(0x147)]),_0x20a93c(0x14d),{'uri':util['format'](_0x20a93c(0x14b),_0x8f86bd['id'])});break;default:logger['error'](_0x20a93c(0x10b),_0x20a93c(0x141));}}})[_0x6d13dc(0x144)](function(_0x4724ce){const _0x18d69e=_0x6d13dc;console[_0x18d69e(0x155)](_0x4724ce),logger[_0x18d69e(0x155)](_0x18d69e(0x10b),JSON[_0x18d69e(0x132)](_0x4724ce));});},exports[a1304_0x5d0cd5(0x10d)]=function(_0x5e6f72,_0xb493e6,_0x6fc1fb,_0x1834dc,_0x510585,_0x4cfbb8,_0x2146d0){const _0xc019e1=a1304_0x5d0cd5;let _0x1033b5,_0x107f32;return _0x4cfbb8[_0xc019e1(0x164)]=intUtil[_0xc019e1(0x13d)](_0x4cfbb8[_0xc019e1(0x164)]),_0x4cfbb8[_0xc019e1(0x122)]=intUtil[_0xc019e1(0x13d)](_0x4cfbb8[_0xc019e1(0x122)]),_0x2146d0&&_0x2146d0[_0xc019e1(0x11c)]&&_0x2146d0[_0xc019e1(0x11c)]!==_0xc019e1(0x127)&&(logger[_0xc019e1(0x125)](_0xc019e1(0x128),'Recording\x20is\x20enabled!'),_0xb493e6[_0xc019e1(0x14e)]=util[_0xc019e1(0x10c)](_0xc019e1(0x119),_0x4cfbb8[_0xc019e1(0x122)],_0xb493e6[_0xc019e1(0x13a)],md5(_0xb493e6[_0xc019e1(0x13a)]))),headers[_0xc019e1(0x134)]=getAuth(_0x4cfbb8),getUser(_0x4cfbb8,_0x1834dc['email'])[_0xc019e1(0x135)](function(_0x325f3f){const _0x1090b6=_0xc019e1;return _0x1033b5=_0x325f3f,logger['info'](_0x1090b6(0x131),_0x1033b5['id']),getEndUser(_0x4cfbb8,_0xb493e6['destcalleridname'],_0xb493e6[_0x1090b6(0x129)]);})[_0xc019e1(0x135)](function(_0x377534){const _0x3a94a7=_0xc019e1;return _0x107f32=_0x377534,logger['info'](_0x3a94a7(0x15a),_0x107f32['id']),getTicket(_0x4cfbb8,_0x1033b5,_0x107f32,_0x6fc1fb,_0xb493e6);})[_0xc019e1(0x135)](function(_0x7dff8a){const _0x27f0a6=_0xc019e1;if(_0x7dff8a){logger[_0x27f0a6(0x125)]('Ticket\x20created!'),logger[_0x27f0a6(0x125)](_0x27f0a6(0x112),_0x7dff8a['id']);switch(_0x4cfbb8[_0x27f0a6(0x15d)]){case _0x27f0a6(0x12b):logger['info']('[QUEUE]',_0x27f0a6(0x11a)),emit(util['format']('user:%s',_0x1834dc[_0x27f0a6(0x147)]),_0x27f0a6(0x150),{'recordId':_0x7dff8a['id']});break;case _0x27f0a6(0x145):logger[_0x27f0a6(0x125)]('[QUEUE]',_0x27f0a6(0x124)),emit(util[_0x27f0a6(0x10c)](_0x27f0a6(0x133),_0x1834dc[_0x27f0a6(0x147)]),_0x27f0a6(0x14d),{'uri':util[_0x27f0a6(0x10c)]('%s/agent/tickets/%s',_0x4cfbb8[_0x27f0a6(0x164)],_0x7dff8a['id'])});break;default:logger[_0x27f0a6(0x155)](_0x27f0a6(0x128),_0x27f0a6(0x141));}}})[_0xc019e1(0x144)](function(_0x55712c){const _0x4e3601=_0xc019e1;logger[_0x4e3601(0x155)](_0x4e3601(0x128),JSON[_0x4e3601(0x132)](_0x55712c));});},exports[a1304_0x5d0cd5(0x13e)]=function(_0x4bdfb0,_0x4e9d55,_0x8b258c,_0x56aa33,_0xf44ac9,_0x4f5ccd){const _0x1ccfac=a1304_0x5d0cd5;let _0x215133,_0x3fbe5b;return _0x4f5ccd[_0x1ccfac(0x164)]=intUtil[_0x1ccfac(0x13d)](_0x4f5ccd[_0x1ccfac(0x164)]),_0x4f5ccd[_0x1ccfac(0x122)]=intUtil['stripTrailingSlash'](_0x4f5ccd[_0x1ccfac(0x122)]),_0xf44ac9&&_0xf44ac9[_0x1ccfac(0x146)]?(logger['info']('['+_0x4e9d55['lastevent']['toUpperCase']()+']','Recording\x20is\x20enabled!'),_0x4e9d55[_0x1ccfac(0x14e)]=util[_0x1ccfac(0x10c)]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x4f5ccd['serverUrl'],_0x4e9d55[_0x1ccfac(0x13a)],md5(_0x4e9d55['uniqueid']))):_0x4e9d55[_0x1ccfac(0x14e)]='',headers[_0x1ccfac(0x134)]=getAuth(_0x4f5ccd),getUser(_0x4f5ccd)[_0x1ccfac(0x135)](function(_0x310cc5){const _0x4f0d18=_0x1ccfac;return _0x215133=_0x310cc5,logger[_0x4f0d18(0x125)](_0x4f0d18(0x131),_0x215133['id']),getEndUser(_0x4f5ccd,_0x4e9d55[_0x4f0d18(0x136)],_0x4e9d55[_0x4f0d18(0x12e)]);})[_0x1ccfac(0x135)](function(_0x204af7){const _0x17babc=_0x1ccfac;return _0x3fbe5b=_0x204af7,logger['info'](_0x17babc(0x15a),_0x3fbe5b['id']),getTicket(_0x4f5ccd,_0x215133,_0x3fbe5b,_0x8b258c,_0x4e9d55);})['then'](function(_0x2c6207){const _0x5538a4=_0x1ccfac;_0x2c6207&&(logger[_0x5538a4(0x125)](_0x5538a4(0x163)),logger[_0x5538a4(0x125)](_0x5538a4(0x112),_0x2c6207['id']));})[_0x1ccfac(0x144)](function(_0x2fa460){const _0x3cfbe8=_0x1ccfac;logger['error']('['+_0x4e9d55[_0x3cfbe8(0x118)][_0x3cfbe8(0x121)]()+']',JSON['stringify'](_0x2fa460));});}; \ No newline at end of file +const a1304_0x57d1=['priority','forEach','idField','trigger:desk:display','application/json','variable','%s/agent/tickets/%s','%s/customers/%d/cases','phone','length','destcalleridname','user:%s','%s:%s','Enduser\x20found!','content','error','info','emit','nameField','uniqueid','The\x20Enduser\x20ID\x20is:','trigger:browser:url','Desk\x20account\x20type\x20not\x20recognized','concat','merge','Creating\x20new\x20ticket...','serverUrl','outbound','destcalleridnum','custom_fields','none','format','recordingFormat','customField','Agent\x20found!','calleridname','queue','Tags','/api/v2/users/%d','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','Displaying\x20ticket\x20to\x20agent...','email','then','[HTTP]','calleridnum','%s/users/me','base64','map','The\x20User\x20ID\x20is:','lastevent','authType','find','username','newTab','Variable','defaults','[OUTBOUND]','%s/customers','Fields','https://xcally.desk.com/web/agent/case/%d','entries','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','Recording\x20is\x20enabled!','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','Descriptions','string','[QUEUE]','validateEmail','name','%s/users','Basic\x20%s','Searching\x20enduser\x20with\x20phone','integrationTab','../../../../rediscache','recordingURL','md5','unmanaged','type','total_entries','request-promise-native','Getting\x20agent\x20with\x20email','password','getString','user','remoteUri','./util','Subjects','toUpperCase','catch','toString','The\x20Ticket\x20ID\x20is:','POST','Authorization','variableName','stringify','lodash','Ticket\x20created!','%s/token:%s','_embedded','toLowerCase','stripTrailingSlash'];(function(_0xcf72,_0xb0d6f4){const _0x57d1fe=function(_0x4f7a74){while(--_0x4f7a74){_0xcf72['push'](_0xcf72['shift']());}};_0x57d1fe(++_0xb0d6f4);}(a1304_0x57d1,0x1be));const a1304_0x4f7a=function(_0xcf72,_0xb0d6f4){_0xcf72=_0xcf72-0x1ed;let _0x57d1fe=a1304_0x57d1[_0xcf72];return _0x57d1fe;};const a1304_0x24fa9e=a1304_0x4f7a;'use strict';const _=require(a1304_0x24fa9e(0x222)),rp=require(a1304_0x24fa9e(0x212)),md5=require(a1304_0x24fa9e(0x20e)),util=require('util'),intUtil=require(a1304_0x24fa9e(0x218)),logger=require('../../../../config/logger')('desk'),{getSocket}=require(a1304_0x24fa9e(0x20c)),io=getSocket();function emit(_0x1614a3,_0x2b5a03,_0x19029a){const _0x434f8e=a1304_0x24fa9e;io['to'](_0x1614a3)[_0x434f8e(0x239)](_0x2b5a03,_0x19029a);}const headers={'Content-Type':a1304_0x24fa9e(0x22c),'Accept':a1304_0x24fa9e(0x22c)};function getUser(_0x5ef1fc,_0x5dbea8){const _0x361566=a1304_0x24fa9e;return intUtil[_0x361566(0x206)](_0x5dbea8)===!![]?(logger[_0x361566(0x238)](_0x361566(0x213),_0x5dbea8),request({'uri':util['format'](_0x361566(0x208),_0x5ef1fc['remoteUri'])})[_0x361566(0x1ed)](function(_0x44ba87){const _0x560f10=_0x361566;if(_0x44ba87[_0x560f10(0x211)])return _[_0x560f10(0x1f6)](_0x44ba87[_0x560f10(0x225)][_0x560f10(0x1ff)],{'email':_0x5dbea8});})[_0x361566(0x1ed)](function(_0x305900){const _0x5418da=_0x361566;return _0x305900?(logger[_0x5418da(0x238)](_0x5418da(0x24a)),_0x305900):(logger[_0x5418da(0x238)](_0x5418da(0x202)),request({'uri':util[_0x5418da(0x247)](_0x5418da(0x1f0),_0x5ef1fc[_0x5418da(0x217)])}));})):(logger['info']('Invalid\x20email\x20format,\x20using\x20the\x20admin\x20account!'),request({'uri':util[_0x361566(0x247)](_0x361566(0x1f0),_0x5ef1fc[_0x361566(0x217)])}));}function request(_0x1f823d){const _0x18d822=a1304_0x24fa9e;return logger['debug'](_0x18d822(0x1ee),JSON['stringify'](_0x1f823d)),rp(_[_0x18d822(0x1fa)](_0x1f823d,{'method':'GET','headers':headers,'json':!![]}));}function getAuth(_0x38d7ab){const _0x370016=a1304_0x24fa9e;let _0x5c47aa;if(_0x38d7ab['authType']==='basic')_0x5c47aa=util[_0x370016(0x247)](_0x370016(0x234),_0x38d7ab[_0x370016(0x1f7)],_0x38d7ab[_0x370016(0x214)]);else _0x38d7ab[_0x370016(0x1f5)]==='token'&&(_0x5c47aa=util['format'](_0x370016(0x224),_0x38d7ab['username'],_0x38d7ab['token']));return util[_0x370016(0x247)](_0x370016(0x209),Buffer['from'](_0x5c47aa)['toString'](_0x370016(0x1f1)));}function getEndUser(_0x3aa3ff,_0x79949,_0x24a4bb){const _0x599592=a1304_0x24fa9e;return logger['info'](_0x599592(0x20a),_0x24a4bb),request({'uri':util[_0x599592(0x247)]('%s/customers/search',_0x3aa3ff['remoteUri']),'qs':{'phone':_0x24a4bb}})[_0x599592(0x1ed)](function(_0xaba8e0){const _0x4ec710=_0x599592;return _0xaba8e0['total_entries']?(logger[_0x4ec710(0x238)](_0x4ec710(0x235)),_0xaba8e0[_0x4ec710(0x225)]['entries'][0x0]):(logger[_0x4ec710(0x238)]('Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!'),request({'uri':util[_0x4ec710(0x247)](_0x4ec710(0x1fc),_0x3aa3ff[_0x4ec710(0x217)]),'method':_0x4ec710(0x21e),'body':{'first_name':_0x79949,'title':_0x79949,'phone_numbers':[{'type':'work','value':_0x24a4bb}]}}));});}function getTags(_0x1a17dc,_0x138b6d){const _0x5936c1=a1304_0x24fa9e;let _0x8ade28=[];return _0x1a17dc&&_0x1a17dc[_0x5936c1(0x231)]>0x0&&(_0x8ade28=_[_0x5936c1(0x1f2)](_0x1a17dc,_0x138b6d)),_0x8ade28;}function getCustomFields(_0x15fbe0,_0x138138){const _0x22b64e=a1304_0x24fa9e,_0x5cdc1a={'custom_fields':{}};return _0x15fbe0[_0x22b64e(0x231)]>0x0&&_[_0x22b64e(0x229)](_0x15fbe0,function(_0x4ec3a2){const _0x402125=_0x22b64e;if(_0x4ec3a2[_0x402125(0x210)]==='string'&&_0x4ec3a2['nameField']&&!_0x4ec3a2['customField'])_0x5cdc1a[_0x4ec3a2[_0x402125(0x23a)][_0x402125(0x226)]()]=_0x4ec3a2[_0x402125(0x236)][_0x402125(0x21c)]();else{if(_0x4ec3a2[_0x402125(0x210)]===_0x402125(0x204)&&_0x4ec3a2[_0x402125(0x22a)]&&_0x4ec3a2[_0x402125(0x249)])_0x5cdc1a[_0x402125(0x245)][_0x4ec3a2[_0x402125(0x22a)]]=_0x4ec3a2['content'][_0x402125(0x21c)]();else{if(_0x4ec3a2[_0x402125(0x210)]===_0x402125(0x22d)&&_0x4ec3a2[_0x402125(0x220)]&&_0x4ec3a2[_0x402125(0x22a)]&&_0x4ec3a2[_0x402125(0x249)])_0x138138[_0x4ec3a2['variableName']]&&(_0x5cdc1a[_0x402125(0x245)][_0x4ec3a2['idField']]=_0x138138[_0x4ec3a2[_0x402125(0x220)]][_0x402125(0x21c)]());else _0x4ec3a2['type']==='customVariable'&&_0x4ec3a2[_0x402125(0x1f9)]&&_0x4ec3a2[_0x402125(0x1f9)]['name']&&_0x4ec3a2[_0x402125(0x22a)]&&_0x4ec3a2[_0x402125(0x249)]&&(_0x138138[_0x4ec3a2[_0x402125(0x1f9)][_0x402125(0x207)][_0x402125(0x226)]()]&&(_0x5cdc1a['custom_fields'][_0x4ec3a2[_0x402125(0x22a)]]=_0x138138[_0x4ec3a2[_0x402125(0x1f9)][_0x402125(0x207)][_0x402125(0x226)]()][_0x402125(0x21c)]()));}}}),_0x5cdc1a[_0x22b64e(0x228)]&&(_0x5cdc1a[_0x22b64e(0x228)]=Number(_0x5cdc1a[_0x22b64e(0x228)])),_0x5cdc1a;}function getTicket(_0x12fee4,_0x548de9,_0x56ae5e,_0x1507da,_0x453905){const _0x3a79b3=a1304_0x24fa9e;logger[_0x3a79b3(0x238)](_0x3a79b3(0x241));const _0x4315e4=_[_0x3a79b3(0x240)]({'subject':intUtil[_0x3a79b3(0x215)](_0x1507da[_0x3a79b3(0x219)],_0x453905,'\x20'),'type':_0x3a79b3(0x230),'status':'new','labels':['xCALLY','Motion','CTI'][_0x3a79b3(0x23f)](getTags(_0x1507da[_0x3a79b3(0x24d)],_0x3a79b3(0x207))),'description':intUtil[_0x3a79b3(0x215)](_0x1507da[_0x3a79b3(0x203)],_0x453905,'\x0a'),'_links':{'assigned_user':{'href':util['format'](_0x3a79b3(0x24e),_0x548de9['id']),'class':_0x3a79b3(0x216)}},'message':{'direction':'in','body':intUtil[_0x3a79b3(0x215)](_0x1507da['Descriptions'],_0x453905,'\x0a')}},getCustomFields(_0x1507da[_0x3a79b3(0x1fd)],_0x453905));return request({'uri':util[_0x3a79b3(0x247)](_0x3a79b3(0x22f),_0x12fee4[_0x3a79b3(0x217)],_0x56ae5e['id']),'method':_0x3a79b3(0x21e),'body':_0x4315e4});}exports[a1304_0x24fa9e(0x24c)]=function(_0x523aac,_0x265165,_0x28792d,_0x4ed957,_0x3bf834,_0x1cd105){const _0x223e8d=a1304_0x24fa9e;let _0x506306,_0x1574e2;return _0x1cd105[_0x223e8d(0x217)]=intUtil[_0x223e8d(0x227)](_0x1cd105['remoteUri']),_0x1cd105[_0x223e8d(0x242)]=intUtil[_0x223e8d(0x227)](_0x1cd105[_0x223e8d(0x242)]),_0x3bf834&&_0x3bf834['monitor_format']?(logger[_0x223e8d(0x238)]('[QUEUE]',_0x223e8d(0x201)),_0x265165[_0x223e8d(0x20d)]=util[_0x223e8d(0x247)](_0x223e8d(0x24f),_0x1cd105[_0x223e8d(0x242)],_0x265165[_0x223e8d(0x23b)],md5(_0x265165[_0x223e8d(0x23b)]))):_0x265165['recordingURL']='',headers['Authorization']=getAuth(_0x1cd105),getUser(_0x1cd105,_0x4ed957[_0x223e8d(0x251)])[_0x223e8d(0x1ed)](function(_0x4be07e){const _0x51825d=_0x223e8d;return _0x506306=_0x4be07e,logger[_0x51825d(0x238)]('The\x20User\x20ID\x20is:',_0x506306['id']),getEndUser(_0x1cd105,_0x265165['calleridname'],_0x265165[_0x51825d(0x1ef)]);})['then'](function(_0x3b0741){const _0x11cd5d=_0x223e8d;return _0x1574e2=_0x3b0741,logger[_0x11cd5d(0x238)]('The\x20Enduser\x20ID\x20is:',_0x1574e2['id']),getTicket(_0x1cd105,_0x506306,_0x1574e2,_0x28792d,_0x265165);})[_0x223e8d(0x1ed)](function(_0x232342){const _0x26b9d3=_0x223e8d;if(_0x232342){logger[_0x26b9d3(0x238)](_0x26b9d3(0x223)),logger[_0x26b9d3(0x238)](_0x26b9d3(0x21d),_0x232342['id']);switch(_0x1cd105[_0x26b9d3(0x210)]){case _0x26b9d3(0x20b):logger[_0x26b9d3(0x238)](_0x26b9d3(0x205),_0x26b9d3(0x250)),emit(util[_0x26b9d3(0x247)](_0x26b9d3(0x233),_0x4ed957[_0x26b9d3(0x207)]),_0x26b9d3(0x22b),{'recordId':_0x232342['id']});break;case _0x26b9d3(0x1f8):logger[_0x26b9d3(0x238)]('[QUEUE]',_0x26b9d3(0x200)),emit(util[_0x26b9d3(0x247)](_0x26b9d3(0x233),_0x4ed957[_0x26b9d3(0x207)]),_0x26b9d3(0x23d),{'uri':util['format'](_0x26b9d3(0x1fe),_0x232342['id'])});break;default:logger[_0x26b9d3(0x237)](_0x26b9d3(0x205),'Desk\x20account\x20type\x20not\x20recognized');}}})[_0x223e8d(0x21b)](function(_0x4675fa){const _0x5e3c30=_0x223e8d;console[_0x5e3c30(0x237)](_0x4675fa),logger['error'](_0x5e3c30(0x205),JSON['stringify'](_0x4675fa));});},exports[a1304_0x24fa9e(0x243)]=function(_0x1ef0c7,_0x405223,_0x5d4f02,_0x5961d0,_0x3dee64,_0x431bc1,_0x527b4c){const _0x152c88=a1304_0x24fa9e;let _0x527732,_0xd218e3;return _0x431bc1[_0x152c88(0x217)]=intUtil['stripTrailingSlash'](_0x431bc1[_0x152c88(0x217)]),_0x431bc1['serverUrl']=intUtil[_0x152c88(0x227)](_0x431bc1[_0x152c88(0x242)]),_0x527b4c&&_0x527b4c['recordingFormat']&&_0x527b4c[_0x152c88(0x248)]!==_0x152c88(0x246)&&(logger[_0x152c88(0x238)](_0x152c88(0x1fb),'Recording\x20is\x20enabled!'),_0x405223['recordingURL']=util[_0x152c88(0x247)](_0x152c88(0x24f),_0x431bc1[_0x152c88(0x242)],_0x405223[_0x152c88(0x23b)],md5(_0x405223[_0x152c88(0x23b)]))),headers['Authorization']=getAuth(_0x431bc1),getUser(_0x431bc1,_0x5961d0[_0x152c88(0x251)])[_0x152c88(0x1ed)](function(_0x5b66f5){const _0x23802c=_0x152c88;return _0x527732=_0x5b66f5,logger['info'](_0x23802c(0x1f3),_0x527732['id']),getEndUser(_0x431bc1,_0x405223[_0x23802c(0x232)],_0x405223[_0x23802c(0x244)]);})[_0x152c88(0x1ed)](function(_0x4cebcc){return _0xd218e3=_0x4cebcc,logger['info']('The\x20Enduser\x20ID\x20is:',_0xd218e3['id']),getTicket(_0x431bc1,_0x527732,_0xd218e3,_0x5d4f02,_0x405223);})['then'](function(_0x1d3c93){const _0x4c6d41=_0x152c88;if(_0x1d3c93){logger[_0x4c6d41(0x238)]('Ticket\x20created!'),logger['info']('The\x20Ticket\x20ID\x20is:',_0x1d3c93['id']);switch(_0x431bc1[_0x4c6d41(0x210)]){case _0x4c6d41(0x20b):logger[_0x4c6d41(0x238)]('[QUEUE]',_0x4c6d41(0x250)),emit(util[_0x4c6d41(0x247)](_0x4c6d41(0x233),_0x5961d0[_0x4c6d41(0x207)]),'trigger:desk:display',{'recordId':_0x1d3c93['id']});break;case'newTab':logger['info']('[QUEUE]',_0x4c6d41(0x200)),emit(util[_0x4c6d41(0x247)](_0x4c6d41(0x233),_0x5961d0[_0x4c6d41(0x207)]),_0x4c6d41(0x23d),{'uri':util[_0x4c6d41(0x247)](_0x4c6d41(0x22e),_0x431bc1[_0x4c6d41(0x217)],_0x1d3c93['id'])});break;default:logger[_0x4c6d41(0x237)](_0x4c6d41(0x1fb),_0x4c6d41(0x23e));}}})[_0x152c88(0x21b)](function(_0xf46d85){const _0x4423df=_0x152c88;logger['error']('[OUTBOUND]',JSON[_0x4423df(0x221)](_0xf46d85));});},exports[a1304_0x24fa9e(0x20f)]=function(_0x3efe4f,_0x1bb5ac,_0x3b505d,_0x49055b,_0x28b64c,_0x51f344){const _0x51b842=a1304_0x24fa9e;let _0x419f3b,_0xf449bc;return _0x51f344[_0x51b842(0x217)]=intUtil[_0x51b842(0x227)](_0x51f344[_0x51b842(0x217)]),_0x51f344[_0x51b842(0x242)]=intUtil[_0x51b842(0x227)](_0x51f344['serverUrl']),_0x28b64c&&_0x28b64c['monitor_format']?(logger['info']('['+_0x1bb5ac[_0x51b842(0x1f4)][_0x51b842(0x21a)]()+']','Recording\x20is\x20enabled!'),_0x1bb5ac[_0x51b842(0x20d)]=util[_0x51b842(0x247)](_0x51b842(0x24f),_0x51f344[_0x51b842(0x242)],_0x1bb5ac['uniqueid'],md5(_0x1bb5ac[_0x51b842(0x23b)]))):_0x1bb5ac[_0x51b842(0x20d)]='',headers[_0x51b842(0x21f)]=getAuth(_0x51f344),getUser(_0x51f344)['then'](function(_0x2b0f33){const _0x3ff74d=_0x51b842;return _0x419f3b=_0x2b0f33,logger['info'](_0x3ff74d(0x1f3),_0x419f3b['id']),getEndUser(_0x51f344,_0x1bb5ac[_0x3ff74d(0x24b)],_0x1bb5ac[_0x3ff74d(0x1ef)]);})[_0x51b842(0x1ed)](function(_0x5d2229){const _0x1ca166=_0x51b842;return _0xf449bc=_0x5d2229,logger[_0x1ca166(0x238)](_0x1ca166(0x23c),_0xf449bc['id']),getTicket(_0x51f344,_0x419f3b,_0xf449bc,_0x3b505d,_0x1bb5ac);})[_0x51b842(0x1ed)](function(_0x23dd60){const _0x59dc6e=_0x51b842;_0x23dd60&&(logger['info'](_0x59dc6e(0x223)),logger[_0x59dc6e(0x238)](_0x59dc6e(0x21d),_0x23dd60['id']));})[_0x51b842(0x21b)](function(_0x758a62){const _0x45042e=_0x51b842;logger['error']('['+_0x1bb5ac[_0x45042e(0x1f4)][_0x45042e(0x21a)]()+']',JSON[_0x45042e(0x221)](_0x758a62));});}; \ 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 c3096c7..c0077e1 100644 --- a/server/services/ami/trigger/integration/dynamics365.js +++ b/server/services/ami/trigger/integration/dynamics365.js @@ -1 +1 @@ -const a1305_0x443c=['substring','Descriptions','odata-entityid','then','idField','emit','GET','string','userEmail','length','incidents','phonecall','isNil','assign','recordingURL','remoteUri','ticketType','Recording\x20is\x20enabled!','inspect','getString','request-promise-native','../../../../rediscache','indexOf','userId','stripTrailingSlash','tenantId','toUpperCase','calleridnum',']\x20Call\x20direction:\x20%s','ticketId','Fields','util','queue','systemuserid','value','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','username','incident','catch','4.0',']\x20Enduser\x20created!','outbound','Subjects',']\x20The\x20Enduser\x20phone\x20is:','error','headers','contactid','message','type','recordingFormat','trigger:browser:url','monitor_format','format','toLowerCase','clientSecret','[OUTBOUND]','lastIndexOf','forEach','dynamics365','serverUrl','/contacts(','callDirection','isdisabled','internalemailaddress','password','clientId','info','POST',']\x20Enduser\x20Created!','./util','destcalleridnum','unmanaged',']\x20Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','/systemusers(','../../../../config/logger',']\x20The\x20User\x20ID\x20is:','email','enduserId','Bearer\x20',']\x20The\x20Enduser\x20ID\x20is:','access_token','md5','lodash','content','customField'];(function(_0x8296c1,_0x1a272e){const _0x443ccf=function(_0xfdbe96){while(--_0xfdbe96){_0x8296c1['push'](_0x8296c1['shift']());}};_0x443ccf(++_0x1a272e);}(a1305_0x443c,0x185));const a1305_0xfdbe=function(_0x8296c1,_0x1a272e){_0x8296c1=_0x8296c1-0x154;let _0x443ccf=a1305_0x443c[_0x8296c1];return _0x443ccf;};const a1305_0x3788ac=a1305_0xfdbe;'use strict';const _=require(a1305_0x3788ac(0x175)),rp=require(a1305_0x3788ac(0x18c)),util=require(a1305_0x3788ac(0x197)),intUtil=require(a1305_0x3788ac(0x168)),md5=require(a1305_0x3788ac(0x174)),logger=require(a1305_0x3788ac(0x16d))(a1305_0x3788ac(0x15d)),{getSocket}=require(a1305_0x3788ac(0x18d)),io=getSocket();function getAuthToken(_0x261c37,_0x47129a,_0x3a4a35){const _0x5ae220=a1305_0x3788ac,_0x59d4ab={'method':_0x5ae220(0x166),'uri':_0x47129a,'form':{'client_id':_0x261c37[_0x5ae220(0x164)],'resource':_0x261c37[_0x5ae220(0x187)],'username':_0x261c37[_0x5ae220(0x19c)],'password':_0x261c37[_0x5ae220(0x163)],'grant_type':_0x5ae220(0x163),'client_secret':_0x261c37[_0x5ae220(0x159)]},'json':!![]};return rp(_0x59d4ab)[_0x5ae220(0x17b)](function(_0x56a566){const _0x455f1a=_0x5ae220;return _0x56a566[_0x455f1a(0x173)];})[_0x5ae220(0x19e)](function(_0x6af90){const _0x509a3f=_0x5ae220;return logger[_0x509a3f(0x1a4)]('['+[_0x3a4a35[_0x509a3f(0x192)]()]+']\x20Wrong\x20credentials!'),_0x6af90[_0x509a3f(0x1a7)];});}function getUser(_0x352bd0,_0x875aff,_0xda5ce7,_0x5a4254,_0x570f05,_0x36a018){return new Promise(function(_0x5351d0,_0x15c7fb){const _0x37b509=a1305_0xfdbe;return getAuthToken(_0x875aff,_0x5a4254,_0x36a018)[_0x37b509(0x17b)](function(_0x251ad9){const _0x48fb05=_0x37b509,_0x2fd429={'method':_0x48fb05(0x17e),'uri':_0x570f05+'systemusers?$select=internalemailaddress,isdisabled,systemuserid','headers':{'Authorization':_0x48fb05(0x171)+_0x251ad9,'OData-Version':_0x48fb05(0x19f)},'json':!![]};return rp(_0x2fd429);})['then'](function(_0x4f6316){const _0xfdb723=_0x37b509,_0x2e5651=_0x4f6316[_0xfdb723(0x19a)];let _0x28ae35=![],_0x5254c9=null;if(!_[_0xfdb723(0x184)](_0xda5ce7)){if(intUtil['validateEmail'](_0xda5ce7[_0xfdb723(0x16f)])){_0x352bd0['userEmail']=_0xda5ce7[_0xfdb723(0x16f)];for(_0x5254c9=0x0;_0x5254c9<_0x2e5651[_0xfdb723(0x181)];_0x5254c9++){_0x2e5651[_0x5254c9][_0xfdb723(0x162)]===_0xda5ce7[_0xfdb723(0x16f)]&&!_0x2e5651[_0x5254c9][_0xfdb723(0x161)]&&(_0x28ae35=!![],logger['info']('['+[_0x36a018[_0xfdb723(0x192)]()]+']\x20Agent\x20found\x20'+_0x2e5651[_0x5254c9][_0xfdb723(0x199)]+'!'),_0x352bd0[_0xfdb723(0x18f)]=_0x2e5651[_0x5254c9][_0xfdb723(0x199)]);}}}if(!_0x28ae35){logger[_0xfdb723(0x165)]('['+[_0x36a018['toUpperCase']()]+_0xfdb723(0x16b)),_0x352bd0[_0xfdb723(0x180)]=_0x875aff[_0xfdb723(0x19c)];for(_0x5254c9=0x0;_0x5254c9<_0x2e5651[_0xfdb723(0x181)];_0x5254c9++){_0x2e5651[_0x5254c9]['internalemailaddress']===_0x875aff['username']&&(_0x352bd0[_0xfdb723(0x18f)]=_0x2e5651[_0x5254c9][_0xfdb723(0x199)]);}}_0x5351d0(_0x352bd0);})[_0x37b509(0x19e)](function(_0x58c0bd){const _0x28bae4=_0x37b509;_0x15c7fb(_0x58c0bd[_0x28bae4(0x1a7)]);});});}function createEndUser(_0x2d7991,_0x594d87,_0x364ab8,_0x370288,_0x451e57,_0x2828ac){return new Promise(function(_0x309bd2,_0xe9773e){const _0x40166d=a1305_0xfdbe;return getAuthToken(_0x594d87,_0x364ab8,_0x2828ac)[_0x40166d(0x17b)](function(_0x3725d2){const _0x56ce25=_0x40166d,_0x4a4b26=_0x2828ac[_0x56ce25(0x158)]()==='outbound'?_0x451e57[_0x56ce25(0x169)]:_0x451e57[_0x56ce25(0x193)],_0x110fe8={'method':_0x56ce25(0x166),'uri':_0x370288+'contacts','body':{'telephone1':_0x4a4b26,'fullname':_0x4a4b26,'firstname':_0x4a4b26,'lastname':'_','mobilephone':null,'address1_telephone1':null,'ownerid@odata.bind':_0x56ce25(0x16c)+_0x2d7991[_0x56ce25(0x18f)]+')'},'headers':{'Authorization':_0x56ce25(0x171)+_0x3725d2,'OData-Version':_0x56ce25(0x19f)},'json':!![],'resolveWithFullResponse':!![]};return rp(_0x110fe8);})['then'](function(_0x262ab9){const _0xbfaf7d=_0x40166d,_0x5942b1=_0x262ab9[_0xbfaf7d(0x1a5)]['odata-entityid'],_0x198b34=_0x5942b1[_0xbfaf7d(0x178)](_0x5942b1[_0xbfaf7d(0x15b)]('(')+0x1,_0x5942b1[_0xbfaf7d(0x15b)](')'));_0x2d7991[_0xbfaf7d(0x170)]=_0x198b34,_0x309bd2(_0x2d7991);})[_0x40166d(0x19e)](function(_0x438a39){const _0x3f0b76=_0x40166d;_0xe9773e(_0x438a39[_0x3f0b76(0x1a7)]);});});}function getEndUser(_0x501afd,_0x8702d3,_0xf1b88c,_0x557a38,_0x2d71a7,_0x4ed544){return new Promise(function(_0x3a63fe){const _0xdc2534=a1305_0xfdbe;return getAuthToken(_0x8702d3,_0xf1b88c,_0x4ed544)[_0xdc2534(0x17b)](function(_0x156784){const _0x5d6332=_0xdc2534,_0x4a84f5={'method':'GET','uri':_0x557a38+'contacts?$select=telephone1','headers':{'Authorization':_0x5d6332(0x171)+_0x156784,'If-None-Match':null,'OData-Version':'4.0'},'json':!![]};return rp(_0x4a84f5);})[_0xdc2534(0x17b)](function(_0x407e9b){const _0xbef3bf=_0xdc2534;let _0x594157=null;if(_0x407e9b){const _0x439f75=_0x407e9b[_0xbef3bf(0x19a)];let _0x1f3f2e=![];for(_0x594157=0x0;_0x594157<_0x439f75[_0xbef3bf(0x181)];_0x594157++){const _0x32af82=_0x4ed544['toLowerCase']()===_0xbef3bf(0x1a1)?_0x2d71a7[_0xbef3bf(0x169)]:_0x2d71a7[_0xbef3bf(0x193)];_0x439f75[_0x594157]['telephone1']===_0x32af82&&(_0x1f3f2e=!![],_0x501afd[_0xbef3bf(0x170)]=_0x439f75[_0x594157][_0xbef3bf(0x1a6)]);}if(_0x1f3f2e)_0x3a63fe(_0x501afd);else return createEndUser(_0x501afd,_0x8702d3,_0xf1b88c,_0x557a38,_0x2d71a7,_0x4ed544)[_0xbef3bf(0x17b)](function(_0x3a07fa){const _0x189bdd=_0xbef3bf;logger[_0x189bdd(0x165)]('['+[_0x4ed544[_0x189bdd(0x192)]()]+_0x189bdd(0x1a0),_0x3a07fa['enduserId']),_0x3a63fe(_0x3a07fa);});}else return createEndUser(_0x501afd,_0x8702d3,_0xf1b88c,_0x557a38,_0x2d71a7,_0x4ed544)[_0xbef3bf(0x17b)](function(_0x3b5d7b){const _0x1678d5=_0xbef3bf;logger['info']('['+[_0x4ed544[_0x1678d5(0x192)]()]+_0x1678d5(0x167),_0x3b5d7b[_0x1678d5(0x170)]),_0x3a63fe(_0x3b5d7b);});});});}function getCustomFields(_0x2b5c16,_0x2e8748,_0x325fc8){const _0xafe447=a1305_0x3788ac,_0x4533f6={};return _0x2b5c16[_0xafe447(0x181)]>0x0&&_[_0xafe447(0x15c)](_0x2b5c16,function(_0x198a1a){const _0x311553=_0xafe447;if(_0x198a1a[_0x311553(0x1a8)]===_0x311553(0x17f)&&_0x198a1a['nameField']&&!_0x198a1a[_0x311553(0x177)]){const _0x646d84=_0x198a1a[_0x311553(0x17c)][_0x311553(0x158)](),_0x1c2eb9=_0x646d84[_0x311553(0x178)](0x0,_0x646d84[_0x311553(0x18e)]('_')),_0x163706=_0x646d84[_0x311553(0x178)](_0x646d84[_0x311553(0x18e)]('_')+0x1);_0x1c2eb9===_0x325fc8&&(_0x4533f6[_0x163706]=_0x198a1a[_0x311553(0x176)]);}}),_0x4533f6;}function getTicket(_0x3dee24,_0x4b53f0,_0x5bf06c,_0x1a34de,_0x15edd9,_0x2f448f,_0x263af6){return new Promise(function(_0x234404,_0x2daf79){const _0x29f956=a1305_0xfdbe;let _0x426e59;return getAuthToken(_0x4b53f0,_0x5bf06c,_0x263af6)[_0x29f956(0x17b)](function(_0x5c9c6f){const _0x4ea294=_0x29f956;return _0x2f448f[_0x4ea294(0x188)]===_0x4ea294(0x19d)&&(_0x426e59={'method':'POST','uri':_0x1a34de+_0x4ea294(0x182),'body':Object[_0x4ea294(0x185)]({},{'title':intUtil[_0x4ea294(0x18b)](_0x2f448f[_0x4ea294(0x1a2)],_0x15edd9,'\x20'),'description':intUtil[_0x4ea294(0x18b)](_0x2f448f[_0x4ea294(0x179)],_0x15edd9,'\x0a'),'customerid_contact@odata.bind':_0x4ea294(0x15f)+_0x3dee24['enduserId']+')','ownerid@odata.bind':_0x4ea294(0x16c)+_0x3dee24['userId']+')','caseorigincode':'1'},getCustomFields(_0x2f448f[_0x4ea294(0x196)],_0x15edd9,_0x2f448f[_0x4ea294(0x188)])),'headers':{'Authorization':'Bearer\x20'+_0x5c9c6f,'OData-Version':'4.0'},'json':!![],'resolveWithFullResponse':!![]}),_0x2f448f['ticketType']===_0x4ea294(0x183)&&(_0x426e59={'method':_0x4ea294(0x166),'uri':_0x1a34de+'phonecalls','body':Object[_0x4ea294(0x185)]({},{'subject':intUtil[_0x4ea294(0x18b)](_0x2f448f[_0x4ea294(0x1a2)],_0x15edd9,'\x20'),'phonenumber':String(_0x15edd9[_0x4ea294(0x193)]),'description':intUtil['getString'](_0x2f448f[_0x4ea294(0x179)],_0x15edd9,'\x0a'),'regardingobjectid_contact@odata.bind':_0x4ea294(0x15f)+_0x3dee24[_0x4ea294(0x170)]+')','ownerid@odata.bind':_0x4ea294(0x16c)+_0x3dee24[_0x4ea294(0x18f)]+')','directioncode':_0x3dee24['callDirection']==='queue'?![]:!![],'phonecall_activity_parties':[{'partyid_systemuser@odata.bind':'/systemusers('+_0x3dee24[_0x4ea294(0x18f)]+')','participationtypemask':_0x3dee24['callDirection']===_0x4ea294(0x198)?0x2:0x1},{'partyid_contact@odata.bind':'/contacts('+_0x3dee24[_0x4ea294(0x170)]+')','participationtypemask':_0x3dee24['callDirection']==='queue'?0x1:0x2}]},getCustomFields(_0x2f448f[_0x4ea294(0x196)],_0x15edd9,_0x2f448f['ticketType'])),'headers':{'Authorization':_0x4ea294(0x171)+_0x5c9c6f,'OData-Version':_0x4ea294(0x19f)},'json':!![],'resolveWithFullResponse':!![]}),rp(_0x426e59);})[_0x29f956(0x17b)](function(_0xcb9bc8){const _0x2465bd=_0x29f956,_0x3f06bc=_0xcb9bc8[_0x2465bd(0x1a5)][_0x2465bd(0x17a)],_0x57d6aa=_0x3f06bc[_0x2465bd(0x178)](_0x3f06bc['lastIndexOf']('(')+0x1,_0x3f06bc['lastIndexOf'](')'));_0x3dee24[_0x2465bd(0x195)]=_0x57d6aa,_0x234404(_0x3dee24);})['catch'](function(_0x45d668){_0x2daf79(_0x45d668['message']);});});}function emit(_0x239408,_0x43321a,_0x452490,_0xe3fb21){const _0x46b288=a1305_0x3788ac,_0x4f7c8a={'uri':util[_0x46b288(0x157)]('%s/main.aspx?pagetype=entityrecord&etn=%s&id=%s',_0x239408,_0x452490,_0xe3fb21)};io['to'](util[_0x46b288(0x157)]('user:%s',_0x43321a))[_0x46b288(0x17d)](_0x46b288(0x155),_0x4f7c8a);}exports['cs']=function(_0x3e19ec,_0x2947c3,_0xec5fbe,_0x21038e,_0x4159e8,_0x48ebd0,_0x1fac4b,_0x89fa1){const _0x2b2c01=a1305_0x3788ac,_0x4ee83c={};_0x48ebd0[_0x2b2c01(0x187)]=intUtil[_0x2b2c01(0x190)](_0x48ebd0[_0x2b2c01(0x187)]),_0x48ebd0[_0x2b2c01(0x15e)]=intUtil['stripTrailingSlash'](_0x48ebd0[_0x2b2c01(0x15e)]),_0x4ee83c[_0x2b2c01(0x160)]=_0x89fa1===_0x2b2c01(0x198)||_0x89fa1===_0x2b2c01(0x16a)?_0x2b2c01(0x198):_0x2b2c01(0x1a1);const _0x46a3dd=util[_0x2b2c01(0x157)]('%s/api/data/v9.0/',_0x48ebd0['remoteUri']),_0x21f035=util['format']('https://login.microsoftonline.com/%s/oauth2/token',_0x48ebd0[_0x2b2c01(0x191)]),_0x33b579=util[_0x2b2c01(0x157)](_0x2b2c01(0x19b),_0x48ebd0[_0x2b2c01(0x15e)],_0x2947c3['uniqueid'],md5(_0x2947c3['uniqueid']));if(_0x4159e8&&_0x4159e8[_0x2b2c01(0x156)])logger[_0x2b2c01(0x165)]('[QUEUE]',_0x2b2c01(0x189)),_0x2947c3[_0x2b2c01(0x186)]=_0x33b579;else _0x1fac4b&&_0x1fac4b[_0x2b2c01(0x154)]&&_0x1fac4b[_0x2b2c01(0x154)]!=='none'?(logger[_0x2b2c01(0x165)](_0x2b2c01(0x15a),_0x2b2c01(0x189)),_0x2947c3[_0x2b2c01(0x186)]=_0x33b579):_0x2947c3['recordingURL']='';return getUser(_0x4ee83c,_0x48ebd0,_0x21038e,_0x21f035,_0x46a3dd,_0x89fa1)['then'](function(_0x5f58b2){const _0x1d1fa6=_0x2b2c01;return logger['info']('['+_0x89fa1[_0x1d1fa6(0x192)]()+_0x1d1fa6(0x16e),_0x5f58b2['userId']),logger[_0x1d1fa6(0x165)]('['+_0x89fa1[_0x1d1fa6(0x192)]()+']\x20The\x20User\x20email\x20is:',_0x5f58b2[_0x1d1fa6(0x180)]),getEndUser(_0x5f58b2,_0x48ebd0,_0x21f035,_0x46a3dd,_0x2947c3,_0x89fa1);})[_0x2b2c01(0x17b)](function(_0x172f16){const _0x4f9e4e=_0x2b2c01;return logger[_0x4f9e4e(0x165)]('['+_0x89fa1['toUpperCase']()+_0x4f9e4e(0x172),_0x172f16[_0x4f9e4e(0x170)]),logger[_0x4f9e4e(0x165)]('['+_0x89fa1[_0x4f9e4e(0x192)]()+_0x4f9e4e(0x1a3),_0x2947c3[_0x4f9e4e(0x193)]),getTicket(_0x172f16,_0x48ebd0,_0x21f035,_0x46a3dd,_0x2947c3,_0xec5fbe,_0x89fa1);})[_0x2b2c01(0x17b)](function(_0x5ef0bb){const _0x1c19c9=_0x2b2c01;logger[_0x1c19c9(0x165)](util[_0x1c19c9(0x157)]('['+_0x89fa1['toUpperCase']()+']\x20The\x20%s\x20ID\x20is:\x20%s',_0xec5fbe[_0x1c19c9(0x188)],_0x5ef0bb['ticketId'])),logger[_0x1c19c9(0x165)](util[_0x1c19c9(0x157)]('['+_0x89fa1[_0x1c19c9(0x192)]()+_0x1c19c9(0x194),_0x89fa1)),_0x89fa1!==_0x1c19c9(0x16a)&&(logger[_0x1c19c9(0x165)]('['+_0x89fa1[_0x1c19c9(0x192)]()+']','Displaying\x20call\x20in\x20a\x20new\x20tab...'),emit(_0x48ebd0[_0x1c19c9(0x187)],_0x21038e['name'],_0xec5fbe[_0x1c19c9(0x188)],_0x5ef0bb[_0x1c19c9(0x195)]));})['catch'](function(_0x140045){const _0x97d927=_0x2b2c01;logger[_0x97d927(0x1a4)]('['+_0x89fa1['toUpperCase']()+']\x20Error\x20running\x20Dynamics365\x20integration',util[_0x97d927(0x18a)](_0x140045,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +const a1305_0x33db=['info','contactid',']\x20Call\x20direction:\x20%s','%s/main.aspx?pagetype=entityrecord&etn=%s&id=%s','value','phonecalls',']\x20Enduser\x20Created!','queue','outbound','userId','uniqueid','indexOf','string','toUpperCase','4.0','recordingFormat','lastIndexOf','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','remoteUri','util','clientId','systemuserid',']\x20The\x20Enduser\x20phone\x20is:','catch','phonecall','/systemusers(',']\x20Wrong\x20credentials!','[OUTBOUND]','contacts?$select=telephone1','assign','monitor_format','request-promise-native','internalemailaddress','../../../../rediscache','content','calleridnum','GET','headers',']\x20The\x20Enduser\x20ID\x20is:','contacts',']\x20Enduser\x20created!','Fields','Bearer\x20','stripTrailingSlash','destcalleridnum','substring','dynamics365',']\x20The\x20User\x20ID\x20is:','toLowerCase','Subjects','serverUrl','password','/contacts(','type','username','access_token','user:%s','email',']\x20The\x20%s\x20ID\x20is:\x20%s','forEach','none','Recording\x20is\x20enabled!','then','unmanaged','./util',']\x20Agent\x20found\x20','trigger:browser:url',']\x20The\x20User\x20email\x20is:','md5','customField','userEmail','ticketId','message',']\x20Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','Descriptions','format','lodash','idField','POST','isdisabled','validateEmail','callDirection','enduserId','isNil','ticketType','length','getString','incident','error','emit'];(function(_0x250348,_0x1e5622){const _0x33dbd2=function(_0x4947ef){while(--_0x4947ef){_0x250348['push'](_0x250348['shift']());}};_0x33dbd2(++_0x1e5622);}(a1305_0x33db,0x164));const a1305_0x4947=function(_0x250348,_0x1e5622){_0x250348=_0x250348-0x1af;let _0x33dbd2=a1305_0x33db[_0x250348];return _0x33dbd2;};const a1305_0x4c86e1=a1305_0x4947;'use strict';const _=require(a1305_0x4c86e1(0x1ff)),rp=require(a1305_0x4c86e1(0x1d2)),util=require(a1305_0x4c86e1(0x1c6)),intUtil=require(a1305_0x4c86e1(0x1f3)),md5=require(a1305_0x4c86e1(0x1f7)),logger=require('../../../../config/logger')(a1305_0x4c86e1(0x1e1)),{getSocket}=require(a1305_0x4c86e1(0x1d4)),io=getSocket();function getAuthToken(_0xfc78a0,_0x598e24,_0x5a9556){const _0x13f0d3=a1305_0x4c86e1,_0x54dcdf={'method':_0x13f0d3(0x201),'uri':_0x598e24,'form':{'client_id':_0xfc78a0[_0x13f0d3(0x1c7)],'resource':_0xfc78a0[_0x13f0d3(0x1c5)],'username':_0xfc78a0[_0x13f0d3(0x1e9)],'password':_0xfc78a0[_0x13f0d3(0x1e6)],'grant_type':_0x13f0d3(0x1e6),'client_secret':_0xfc78a0['clientSecret']},'json':!![]};return rp(_0x54dcdf)['then'](function(_0x52b4cd){const _0x351fce=_0x13f0d3;return _0x52b4cd[_0x351fce(0x1ea)];})[_0x13f0d3(0x1ca)](function(_0x84c07f){const _0x1ccf91=_0x13f0d3;return logger[_0x1ccf91(0x1b1)]('['+[_0x5a9556[_0x1ccf91(0x1c0)]()]+_0x1ccf91(0x1cd)),_0x84c07f['message'];});}function getUser(_0x452789,_0x4dbbbf,_0xbe74d2,_0x2711a6,_0x8ab978,_0x1d01ae){return new Promise(function(_0xc40466,_0x516319){const _0x5638b0=a1305_0x4947;return getAuthToken(_0x4dbbbf,_0x2711a6,_0x1d01ae)[_0x5638b0(0x1f1)](function(_0x1e2992){const _0x114da6=_0x5638b0,_0x444dcc={'method':_0x114da6(0x1d7),'uri':_0x8ab978+'systemusers?$select=internalemailaddress,isdisabled,systemuserid','headers':{'Authorization':_0x114da6(0x1dd)+_0x1e2992,'OData-Version':'4.0'},'json':!![]};return rp(_0x444dcc);})[_0x5638b0(0x1f1)](function(_0x1798fb){const _0x39ad0a=_0x5638b0,_0x531672=_0x1798fb['value'];let _0x1b8417=![],_0xa173bf=null;if(!_[_0x39ad0a(0x206)](_0xbe74d2)){if(intUtil[_0x39ad0a(0x203)](_0xbe74d2[_0x39ad0a(0x1ec)])){_0x452789[_0x39ad0a(0x1f9)]=_0xbe74d2[_0x39ad0a(0x1ec)];for(_0xa173bf=0x0;_0xa173bf<_0x531672['length'];_0xa173bf++){_0x531672[_0xa173bf]['internalemailaddress']===_0xbe74d2[_0x39ad0a(0x1ec)]&&!_0x531672[_0xa173bf][_0x39ad0a(0x202)]&&(_0x1b8417=!![],logger[_0x39ad0a(0x1b3)]('['+[_0x1d01ae[_0x39ad0a(0x1c0)]()]+_0x39ad0a(0x1f4)+_0x531672[_0xa173bf]['systemuserid']+'!'),_0x452789[_0x39ad0a(0x1bc)]=_0x531672[_0xa173bf][_0x39ad0a(0x1c8)]);}}}if(!_0x1b8417){logger[_0x39ad0a(0x1b3)]('['+[_0x1d01ae[_0x39ad0a(0x1c0)]()]+_0x39ad0a(0x1fc)),_0x452789['userEmail']=_0x4dbbbf[_0x39ad0a(0x1e9)];for(_0xa173bf=0x0;_0xa173bf<_0x531672['length'];_0xa173bf++){_0x531672[_0xa173bf][_0x39ad0a(0x1d3)]===_0x4dbbbf[_0x39ad0a(0x1e9)]&&(_0x452789[_0x39ad0a(0x1bc)]=_0x531672[_0xa173bf]['systemuserid']);}}_0xc40466(_0x452789);})[_0x5638b0(0x1ca)](function(_0x2da0f6){const _0x5eb4cc=_0x5638b0;_0x516319(_0x2da0f6[_0x5eb4cc(0x1fb)]);});});}function createEndUser(_0xe688e4,_0x4437bb,_0x4caae1,_0x3c4f42,_0x18f5d5,_0x35294f){return new Promise(function(_0x3b8641,_0x23b546){const _0x7dd174=a1305_0x4947;return getAuthToken(_0x4437bb,_0x4caae1,_0x35294f)[_0x7dd174(0x1f1)](function(_0x2e63a5){const _0x26aa50=_0x7dd174,_0x4cd7ab=_0x35294f[_0x26aa50(0x1e3)]()===_0x26aa50(0x1bb)?_0x18f5d5['destcalleridnum']:_0x18f5d5['calleridnum'],_0x420258={'method':_0x26aa50(0x201),'uri':_0x3c4f42+_0x26aa50(0x1da),'body':{'telephone1':_0x4cd7ab,'fullname':_0x4cd7ab,'firstname':_0x4cd7ab,'lastname':'_','mobilephone':null,'address1_telephone1':null,'ownerid@odata.bind':_0x26aa50(0x1cc)+_0xe688e4[_0x26aa50(0x1bc)]+')'},'headers':{'Authorization':_0x26aa50(0x1dd)+_0x2e63a5,'OData-Version':_0x26aa50(0x1c1)},'json':!![],'resolveWithFullResponse':!![]};return rp(_0x420258);})['then'](function(_0x2824fc){const _0x3e9468=_0x7dd174,_0x5cc37b=_0x2824fc[_0x3e9468(0x1d8)]['odata-entityid'],_0x3bd3d7=_0x5cc37b[_0x3e9468(0x1e0)](_0x5cc37b[_0x3e9468(0x1c3)]('(')+0x1,_0x5cc37b['lastIndexOf'](')'));_0xe688e4['enduserId']=_0x3bd3d7,_0x3b8641(_0xe688e4);})[_0x7dd174(0x1ca)](function(_0x170620){const _0x58046f=_0x7dd174;_0x23b546(_0x170620[_0x58046f(0x1fb)]);});});}function getEndUser(_0x50a508,_0x3759c6,_0x2fb25d,_0x1519a5,_0xa61cd6,_0x4aa6f3){return new Promise(function(_0x4c4cd1){const _0x2b4beb=a1305_0x4947;return getAuthToken(_0x3759c6,_0x2fb25d,_0x4aa6f3)[_0x2b4beb(0x1f1)](function(_0x37c83d){const _0xfaa540=_0x2b4beb,_0x1be217={'method':_0xfaa540(0x1d7),'uri':_0x1519a5+_0xfaa540(0x1cf),'headers':{'Authorization':_0xfaa540(0x1dd)+_0x37c83d,'If-None-Match':null,'OData-Version':_0xfaa540(0x1c1)},'json':!![]};return rp(_0x1be217);})[_0x2b4beb(0x1f1)](function(_0x904d1d){const _0x79a9f9=_0x2b4beb;let _0x3478f3=null;if(_0x904d1d){const _0x4050d6=_0x904d1d[_0x79a9f9(0x1b7)];let _0x13c20d=![];for(_0x3478f3=0x0;_0x3478f3<_0x4050d6[_0x79a9f9(0x208)];_0x3478f3++){const _0x158fc9=_0x4aa6f3['toLowerCase']()==='outbound'?_0xa61cd6[_0x79a9f9(0x1df)]:_0xa61cd6[_0x79a9f9(0x1d6)];_0x4050d6[_0x3478f3]['telephone1']===_0x158fc9&&(_0x13c20d=!![],_0x50a508['enduserId']=_0x4050d6[_0x3478f3][_0x79a9f9(0x1b4)]);}if(_0x13c20d)_0x4c4cd1(_0x50a508);else return createEndUser(_0x50a508,_0x3759c6,_0x2fb25d,_0x1519a5,_0xa61cd6,_0x4aa6f3)[_0x79a9f9(0x1f1)](function(_0x5a0b96){const _0x2fe81e=_0x79a9f9;logger[_0x2fe81e(0x1b3)]('['+[_0x4aa6f3[_0x2fe81e(0x1c0)]()]+_0x2fe81e(0x1db),_0x5a0b96['enduserId']),_0x4c4cd1(_0x5a0b96);});}else return createEndUser(_0x50a508,_0x3759c6,_0x2fb25d,_0x1519a5,_0xa61cd6,_0x4aa6f3)['then'](function(_0x45e9db){const _0x5b14a3=_0x79a9f9;logger['info']('['+[_0x4aa6f3['toUpperCase']()]+_0x5b14a3(0x1b9),_0x45e9db[_0x5b14a3(0x205)]),_0x4c4cd1(_0x45e9db);});});});}function getCustomFields(_0x412494,_0x1d91d3,_0x5b1961){const _0xc3519e=a1305_0x4c86e1,_0x147b98={};return _0x412494[_0xc3519e(0x208)]>0x0&&_[_0xc3519e(0x1ee)](_0x412494,function(_0x1174aa){const _0x25e524=_0xc3519e;if(_0x1174aa[_0x25e524(0x1e8)]===_0x25e524(0x1bf)&&_0x1174aa['nameField']&&!_0x1174aa[_0x25e524(0x1f8)]){const _0x3cc760=_0x1174aa[_0x25e524(0x200)][_0x25e524(0x1e3)](),_0x1c747d=_0x3cc760[_0x25e524(0x1e0)](0x0,_0x3cc760[_0x25e524(0x1be)]('_')),_0x1d72ab=_0x3cc760[_0x25e524(0x1e0)](_0x3cc760[_0x25e524(0x1be)]('_')+0x1);_0x1c747d===_0x5b1961&&(_0x147b98[_0x1d72ab]=_0x1174aa[_0x25e524(0x1d5)]);}}),_0x147b98;}function getTicket(_0x5e7cc1,_0x2ba440,_0x32e724,_0x574a19,_0x3a8465,_0x5720e8,_0x858608){return new Promise(function(_0x246bd6,_0x506327){const _0x4947f0=a1305_0x4947;let _0x49766b;return getAuthToken(_0x2ba440,_0x32e724,_0x858608)['then'](function(_0x56654c){const _0x2f5be0=a1305_0x4947;return _0x5720e8['ticketType']===_0x2f5be0(0x1b0)&&(_0x49766b={'method':'POST','uri':_0x574a19+'incidents','body':Object[_0x2f5be0(0x1d0)]({},{'title':intUtil['getString'](_0x5720e8[_0x2f5be0(0x1e4)],_0x3a8465,'\x20'),'description':intUtil[_0x2f5be0(0x1af)](_0x5720e8[_0x2f5be0(0x1fd)],_0x3a8465,'\x0a'),'customerid_contact@odata.bind':'/contacts('+_0x5e7cc1[_0x2f5be0(0x205)]+')','ownerid@odata.bind':_0x2f5be0(0x1cc)+_0x5e7cc1[_0x2f5be0(0x1bc)]+')','caseorigincode':'1'},getCustomFields(_0x5720e8['Fields'],_0x3a8465,_0x5720e8[_0x2f5be0(0x207)])),'headers':{'Authorization':_0x2f5be0(0x1dd)+_0x56654c,'OData-Version':_0x2f5be0(0x1c1)},'json':!![],'resolveWithFullResponse':!![]}),_0x5720e8[_0x2f5be0(0x207)]===_0x2f5be0(0x1cb)&&(_0x49766b={'method':_0x2f5be0(0x201),'uri':_0x574a19+_0x2f5be0(0x1b8),'body':Object[_0x2f5be0(0x1d0)]({},{'subject':intUtil['getString'](_0x5720e8[_0x2f5be0(0x1e4)],_0x3a8465,'\x20'),'phonenumber':String(_0x3a8465[_0x2f5be0(0x1d6)]),'description':intUtil[_0x2f5be0(0x1af)](_0x5720e8[_0x2f5be0(0x1fd)],_0x3a8465,'\x0a'),'regardingobjectid_contact@odata.bind':'/contacts('+_0x5e7cc1[_0x2f5be0(0x205)]+')','ownerid@odata.bind':_0x2f5be0(0x1cc)+_0x5e7cc1[_0x2f5be0(0x1bc)]+')','directioncode':_0x5e7cc1[_0x2f5be0(0x204)]==='queue'?![]:!![],'phonecall_activity_parties':[{'partyid_systemuser@odata.bind':_0x2f5be0(0x1cc)+_0x5e7cc1[_0x2f5be0(0x1bc)]+')','participationtypemask':_0x5e7cc1[_0x2f5be0(0x204)]===_0x2f5be0(0x1ba)?0x2:0x1},{'partyid_contact@odata.bind':_0x2f5be0(0x1e7)+_0x5e7cc1[_0x2f5be0(0x205)]+')','participationtypemask':_0x5e7cc1[_0x2f5be0(0x204)]===_0x2f5be0(0x1ba)?0x1:0x2}]},getCustomFields(_0x5720e8[_0x2f5be0(0x1dc)],_0x3a8465,_0x5720e8[_0x2f5be0(0x207)])),'headers':{'Authorization':_0x2f5be0(0x1dd)+_0x56654c,'OData-Version':_0x2f5be0(0x1c1)},'json':!![],'resolveWithFullResponse':!![]}),rp(_0x49766b);})[_0x4947f0(0x1f1)](function(_0x187c28){const _0x13b368=_0x4947f0,_0x7302f3=_0x187c28[_0x13b368(0x1d8)]['odata-entityid'],_0x5c5163=_0x7302f3[_0x13b368(0x1e0)](_0x7302f3['lastIndexOf']('(')+0x1,_0x7302f3[_0x13b368(0x1c3)](')'));_0x5e7cc1[_0x13b368(0x1fa)]=_0x5c5163,_0x246bd6(_0x5e7cc1);})[_0x4947f0(0x1ca)](function(_0x3c1f83){const _0x5a13b7=_0x4947f0;_0x506327(_0x3c1f83[_0x5a13b7(0x1fb)]);});});}function emit(_0x2b2137,_0x84bf9f,_0x37167b,_0x24acec){const _0x429480=a1305_0x4c86e1,_0x7b36ea={'uri':util[_0x429480(0x1fe)](_0x429480(0x1b6),_0x2b2137,_0x37167b,_0x24acec)};io['to'](util[_0x429480(0x1fe)](_0x429480(0x1eb),_0x84bf9f))[_0x429480(0x1b2)](_0x429480(0x1f5),_0x7b36ea);}exports['cs']=function(_0x1f7e11,_0x3d4183,_0xd62adb,_0x4657c8,_0x223508,_0x10c6dd,_0x13c75a,_0x10d0b4){const _0x348f00=a1305_0x4c86e1,_0x4ca15e={};_0x10c6dd[_0x348f00(0x1c5)]=intUtil['stripTrailingSlash'](_0x10c6dd['remoteUri']),_0x10c6dd[_0x348f00(0x1e5)]=intUtil[_0x348f00(0x1de)](_0x10c6dd[_0x348f00(0x1e5)]),_0x4ca15e[_0x348f00(0x204)]=_0x10d0b4==='queue'||_0x10d0b4===_0x348f00(0x1f2)?_0x348f00(0x1ba):_0x348f00(0x1bb);const _0x3c6152=util[_0x348f00(0x1fe)]('%s/api/data/v9.0/',_0x10c6dd[_0x348f00(0x1c5)]),_0x1ec5e7=util[_0x348f00(0x1fe)]('https://login.microsoftonline.com/%s/oauth2/token',_0x10c6dd['tenantId']),_0xe43794=util[_0x348f00(0x1fe)](_0x348f00(0x1c4),_0x10c6dd[_0x348f00(0x1e5)],_0x3d4183[_0x348f00(0x1bd)],md5(_0x3d4183[_0x348f00(0x1bd)]));if(_0x223508&&_0x223508[_0x348f00(0x1d1)])logger[_0x348f00(0x1b3)]('[QUEUE]',_0x348f00(0x1f0)),_0x3d4183['recordingURL']=_0xe43794;else _0x13c75a&&_0x13c75a[_0x348f00(0x1c2)]&&_0x13c75a[_0x348f00(0x1c2)]!==_0x348f00(0x1ef)?(logger[_0x348f00(0x1b3)](_0x348f00(0x1ce),_0x348f00(0x1f0)),_0x3d4183['recordingURL']=_0xe43794):_0x3d4183['recordingURL']='';return getUser(_0x4ca15e,_0x10c6dd,_0x4657c8,_0x1ec5e7,_0x3c6152,_0x10d0b4)[_0x348f00(0x1f1)](function(_0x10466f){const _0x5d8d53=_0x348f00;return logger['info']('['+_0x10d0b4[_0x5d8d53(0x1c0)]()+_0x5d8d53(0x1e2),_0x10466f[_0x5d8d53(0x1bc)]),logger[_0x5d8d53(0x1b3)]('['+_0x10d0b4[_0x5d8d53(0x1c0)]()+_0x5d8d53(0x1f6),_0x10466f[_0x5d8d53(0x1f9)]),getEndUser(_0x10466f,_0x10c6dd,_0x1ec5e7,_0x3c6152,_0x3d4183,_0x10d0b4);})['then'](function(_0x3c9780){const _0x5a8a5e=_0x348f00;return logger[_0x5a8a5e(0x1b3)]('['+_0x10d0b4[_0x5a8a5e(0x1c0)]()+_0x5a8a5e(0x1d9),_0x3c9780[_0x5a8a5e(0x205)]),logger[_0x5a8a5e(0x1b3)]('['+_0x10d0b4[_0x5a8a5e(0x1c0)]()+_0x5a8a5e(0x1c9),_0x3d4183[_0x5a8a5e(0x1d6)]),getTicket(_0x3c9780,_0x10c6dd,_0x1ec5e7,_0x3c6152,_0x3d4183,_0xd62adb,_0x10d0b4);})['then'](function(_0xa4d3cc){const _0x30ea4e=_0x348f00;logger[_0x30ea4e(0x1b3)](util['format']('['+_0x10d0b4[_0x30ea4e(0x1c0)]()+_0x30ea4e(0x1ed),_0xd62adb['ticketType'],_0xa4d3cc[_0x30ea4e(0x1fa)])),logger['info'](util[_0x30ea4e(0x1fe)]('['+_0x10d0b4[_0x30ea4e(0x1c0)]()+_0x30ea4e(0x1b5),_0x10d0b4)),_0x10d0b4!==_0x30ea4e(0x1f2)&&(logger[_0x30ea4e(0x1b3)]('['+_0x10d0b4[_0x30ea4e(0x1c0)]()+']','Displaying\x20call\x20in\x20a\x20new\x20tab...'),emit(_0x10c6dd[_0x30ea4e(0x1c5)],_0x4657c8['name'],_0xd62adb[_0x30ea4e(0x207)],_0xa4d3cc[_0x30ea4e(0x1fa)]));})[_0x348f00(0x1ca)](function(_0x5c710f){const _0x86eab2=_0x348f00;logger[_0x86eab2(0x1b1)]('['+_0x10d0b4['toUpperCase']()+']\x20Error\x20running\x20Dynamics365\x20integration',util['inspect'](_0x5c710f,{'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 c05cc90..d928578 100644 --- a/server/services/ami/trigger/integration/freshdesk.js +++ b/server/services/ami/trigger/integration/freshdesk.js @@ -1 +1 @@ -const a1306_0x1b96=['variableName','then','push','variable','POST','request-promise-native','error','Searching\x20enduser\x20with\x20phone','[QUEUE]','%s/api/v2/agents/me','Fields','email','debug','%s/api/v2/agents','unmanaged','validateEmail','The\x20Ticket\x20ID\x20is:','[OUTBOUND]','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','base64','Ticket\x20created!','string','catch','Admin\x20account\x20selected.','Caller\x20-\x20%s','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','recordingFormat','custom_fields','lastevent','trigger:browser:url','stringify','[HTTP]','queue','Descriptions','lodash','Basic\x20%s','idField','getString','Creating\x20new\x20ticket...','merge','defaults','customField','
','user:%s','calleridnum','application/json','apiKey','%s/api/v2/tickets','info','toString','Authorization','Variable','Recording\x20is\x20enabled!','remoteUri','name','find','customVariable','mapValues','nameField','emit','toUpperCase','Subjects','none','Enduser\x20created.','util','toLowerCase','format','serverUrl','Enduser\x20found!','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','calleridname','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','length','Invalid\x20email\x20format,\x20using\x20the\x20admin\x20account!','uniqueid','stripTrailingSlash','forEach','from','content','recordingURL','monitor_format','md5','contact','GET','outbound','type','%s/helpdesk/tickets/%d','The\x20User\x20ID\x20is:','The\x20Enduser\x20ID\x20is:'];(function(_0x310839,_0x47e5fd){const _0x1b96c0=function(_0x1c3c14){while(--_0x1c3c14){_0x310839['push'](_0x310839['shift']());}};_0x1b96c0(++_0x47e5fd);}(a1306_0x1b96,0x1cd));const a1306_0x1c3c=function(_0x310839,_0x47e5fd){_0x310839=_0x310839-0x1e2;let _0x1b96c0=a1306_0x1b96[_0x310839];return _0x1b96c0;};const a1306_0x5a9005=a1306_0x1c3c;'use strict';const _=require(a1306_0x5a9005(0x1f4)),rp=require(a1306_0x5a9005(0x230)),md5=require(a1306_0x5a9005(0x223)),util=require(a1306_0x5a9005(0x212)),intUtil=require('./util'),logger=require('../../../../config/logger')('freshdesk'),{getSocket}=require('../../../../rediscache'),io=getSocket(),headers={'Content-Type':'application/json','Accept':a1306_0x5a9005(0x1ff)};function emit(_0x5d8004,_0x21fe63,_0x331e6f){const _0x28a701=a1306_0x5a9005;io['to'](_0x5d8004)[_0x28a701(0x20d)](_0x21fe63,_0x331e6f);}function getTicket(_0x1e01fe,_0x551696,_0x4c9b37,_0xec4c63,_0x2b31f1){const _0xc42123=a1306_0x5a9005;logger['info'](_0xc42123(0x1f8));const _0x3292e6=_[_0xc42123(0x1f9)]({'responder_id':_0x551696['id'],'requester_id':_0x4c9b37['id'],'name':util['format'](_0xc42123(0x1ea),_0x2b31f1[_0xc42123(0x218)]),'phone':_0x2b31f1['calleridnum'],'source':0x3,'priority':0x1,'status':0x2,'subject':intUtil[_0xc42123(0x1f7)](_0xec4c63[_0xc42123(0x20f)],_0x2b31f1,'\x20'),'description':intUtil[_0xc42123(0x1f7)](_0xec4c63[_0xc42123(0x1f3)],_0x2b31f1,_0xc42123(0x1fc)),'tags':getTags(_0xec4c63['Tags'],'name')},getCustomFields(_0xec4c63[_0xc42123(0x235)],_0x2b31f1));return _0x3292e6['custom_fields']=_[_0xc42123(0x20b)](_['keyBy'](_0x3292e6[_0xc42123(0x1ed)],'id'),'value'),request({'uri':util['format'](_0xc42123(0x201),_0x1e01fe['remoteUri']),'method':_0xc42123(0x22f),'body':_0x3292e6})[_0xc42123(0x22c)](function(_0x5267d7){const _0x3edf63=_0xc42123;return logger[_0x3edf63(0x202)](_0x3edf63(0x1e6)),_0x5267d7;});}function getUser(_0x4d5a1a,_0xaf22a9){const _0x16dd08=a1306_0x5a9005;return intUtil[_0x16dd08(0x23a)](_0xaf22a9)?request({'uri':util[_0x16dd08(0x214)](_0x16dd08(0x238),_0x4d5a1a[_0x16dd08(0x207)]),'qs':{'email':_0xaf22a9}})[_0x16dd08(0x22c)](function(_0x4b1c0a){const _0x86f0fd=_0x16dd08;return _0x4b1c0a[_0x86f0fd(0x21a)]?(logger[_0x86f0fd(0x202)]('Agent\x20found!'),_[_0x86f0fd(0x209)](_0x4b1c0a,function(_0x5189fc){const _0xb462d6=_0x86f0fd;return _0x5189fc[_0xb462d6(0x224)][_0xb462d6(0x236)]===_0xaf22a9;})):(logger[_0x86f0fd(0x202)](_0x86f0fd(0x217)),request({'uri':util[_0x86f0fd(0x214)]('%s/api/v2/agents/me',_0x4d5a1a[_0x86f0fd(0x207)])})[_0x86f0fd(0x22c)](function(_0x148304){const _0x2916c6=_0x86f0fd;return logger['info'](_0x2916c6(0x1e9)),_0x148304;}));}):(logger[_0x16dd08(0x202)](_0x16dd08(0x21b)),request({'uri':util['format'](_0x16dd08(0x234),_0x4d5a1a[_0x16dd08(0x207)])})[_0x16dd08(0x22c)](function(_0x58a2ac){const _0x269d8d=_0x16dd08;return logger[_0x269d8d(0x202)](_0x269d8d(0x1e9)),_0x58a2ac;}));}function getEndUser(_0x223b8d,_0x6b9edb,_0x5e91ea){const _0x1305aa=a1306_0x5a9005;return logger['info'](_0x1305aa(0x232),_0x5e91ea),request({'uri':util[_0x1305aa(0x214)]('%s/api/v2/contacts',_0x223b8d['remoteUri']),'qs':{'phone':_0x5e91ea}})[_0x1305aa(0x22c)](function(_0x4c1b5c){const _0x3ab52d=_0x1305aa;return _0x4c1b5c[_0x3ab52d(0x21a)]?(logger[_0x3ab52d(0x202)](_0x3ab52d(0x216)),_[_0x3ab52d(0x209)](_0x4c1b5c,{'phone':_0x5e91ea})):(logger[_0x3ab52d(0x202)](_0x3ab52d(0x219)),request({'uri':util[_0x3ab52d(0x214)]('%s/api/v2/contacts',_0x223b8d[_0x3ab52d(0x207)]),'method':_0x3ab52d(0x22f),'body':{'name':_0x6b9edb,'phone':_0x5e91ea}})[_0x3ab52d(0x22c)](function(_0x96f0a0){const _0xc547d0=_0x3ab52d;return logger[_0xc547d0(0x202)](_0xc547d0(0x211)),_0x96f0a0;}));});}function getAuth(_0x15af2a){const _0x4ba324=a1306_0x5a9005;return util[_0x4ba324(0x214)](_0x4ba324(0x1f5),Buffer[_0x4ba324(0x21f)](_0x15af2a[_0x4ba324(0x200)]+':X')['toString'](_0x4ba324(0x1e5)));}function request(_0x39e110){const _0x351bc7=a1306_0x5a9005;return logger[_0x351bc7(0x237)](_0x351bc7(0x1f1),JSON[_0x351bc7(0x1f0)](_0x39e110)),rp(_[_0x351bc7(0x1fa)](_0x39e110,{'method':_0x351bc7(0x225),'headers':headers,'json':!![]}));}function getTags(_0x514cb8,_0xc775d9){const _0x426d08=a1306_0x5a9005;let _0x50c289=[];return _0x514cb8&&_0x514cb8[_0x426d08(0x21a)]>0x0&&(_0x50c289=_['map'](_0x514cb8,_0xc775d9)),_0x50c289;}function getCustomFields(_0x1a72d0,_0x591d8d){const _0x54b7d8=a1306_0x5a9005,_0x3c9b29={'custom_fields':[]};return _0x1a72d0[_0x54b7d8(0x21a)]>0x0&&_[_0x54b7d8(0x21e)](_0x1a72d0,function(_0x1cdf36){const _0x309013=_0x54b7d8;if(_0x1cdf36[_0x309013(0x227)]===_0x309013(0x1e7)&&_0x1cdf36[_0x309013(0x20c)]&&!_0x1cdf36[_0x309013(0x1fb)])_0x3c9b29[_0x1cdf36[_0x309013(0x20c)]['toLowerCase']()]=_0x1cdf36[_0x309013(0x220)]['toString']();else{if(_0x1cdf36['type']===_0x309013(0x1e7)&&_0x1cdf36['idField']&&_0x1cdf36['customField'])_0x3c9b29[_0x309013(0x1ed)][_0x309013(0x22d)]({'id':_0x1cdf36[_0x309013(0x1f6)],'value':_0x1cdf36[_0x309013(0x220)][_0x309013(0x203)]()});else{if(_0x1cdf36[_0x309013(0x227)]===_0x309013(0x22e)&&_0x1cdf36['variableName']&&_0x1cdf36[_0x309013(0x1f6)]&&_0x1cdf36[_0x309013(0x1fb)])_0x591d8d[_0x1cdf36[_0x309013(0x22b)]]&&_0x3c9b29[_0x309013(0x1ed)]['push']({'id':_0x1cdf36[_0x309013(0x1f6)],'value':_0x591d8d[_0x1cdf36[_0x309013(0x22b)]]['toString']()});else _0x1cdf36[_0x309013(0x227)]===_0x309013(0x20a)&&_0x1cdf36[_0x309013(0x205)]&&_0x1cdf36[_0x309013(0x205)][_0x309013(0x208)]&&_0x1cdf36['idField']&&_0x1cdf36[_0x309013(0x1fb)]&&(_0x591d8d[_0x1cdf36[_0x309013(0x205)]['name'][_0x309013(0x213)]()]&&_0x3c9b29[_0x309013(0x1ed)][_0x309013(0x22d)]({'id':_0x1cdf36['idField'],'value':_0x591d8d[_0x1cdf36[_0x309013(0x205)][_0x309013(0x208)]['toLowerCase']()][_0x309013(0x203)]()}));}}}),_0x3c9b29;}exports[a1306_0x5a9005(0x1f2)]=function(_0x50282a,_0x1680ca,_0x204e80,_0x24e5a5,_0x446aa5,_0x1df758){const _0x176269=a1306_0x5a9005;let _0x9bfd3e,_0x5cce44;return _0x1df758[_0x176269(0x207)]=intUtil[_0x176269(0x21d)](_0x1df758['remoteUri']),_0x1df758['serverUrl']=intUtil['stripTrailingSlash'](_0x1df758[_0x176269(0x215)]),_0x446aa5&&_0x446aa5[_0x176269(0x222)]?(logger[_0x176269(0x202)](_0x176269(0x233),_0x176269(0x206)),_0x1680ca['recordingURL']=util[_0x176269(0x214)](_0x176269(0x1eb),_0x1df758[_0x176269(0x215)],_0x1680ca[_0x176269(0x21c)],md5(_0x1680ca[_0x176269(0x21c)]))):_0x1680ca[_0x176269(0x221)]='',headers[_0x176269(0x204)]=getAuth(_0x1df758),getUser(_0x1df758,_0x24e5a5['email'])[_0x176269(0x22c)](function(_0x37fc05){const _0x82032b=_0x176269;return _0x9bfd3e=_0x37fc05,logger[_0x82032b(0x202)](_0x82032b(0x229),_0x9bfd3e['id']),getEndUser(_0x1df758,_0x1680ca[_0x82032b(0x218)],_0x1680ca[_0x82032b(0x1fe)]);})[_0x176269(0x22c)](function(_0x3a6b07){const _0x4feaa3=_0x176269;return _0x5cce44=_0x3a6b07,logger[_0x4feaa3(0x202)](_0x4feaa3(0x22a),_0x5cce44['id']),getTicket(_0x1df758,_0x9bfd3e,_0x5cce44,_0x204e80,_0x1680ca);})[_0x176269(0x22c)](function(_0xed549a){const _0x10003a=_0x176269;_0xed549a&&_0xed549a['id']&&(logger['info'](_0x10003a(0x1e6)),logger['info']('The\x20Ticket\x20ID\x20is:',_0xed549a['id']),logger[_0x10003a(0x202)](_0x10003a(0x233),_0x10003a(0x1e4)),emit(util[_0x10003a(0x214)](_0x10003a(0x1fd),_0x24e5a5['name']),_0x10003a(0x1ef),{'uri':util['format'](_0x10003a(0x228),_0x1df758['remoteUri'],_0xed549a['id'])}));})['catch'](function(_0xf47201){const _0x243155=_0x176269;logger[_0x243155(0x231)](_0x243155(0x233),JSON[_0x243155(0x1f0)](_0xf47201));});},exports[a1306_0x5a9005(0x226)]=function(_0x5cb72c,_0x12ae16,_0x5b6283,_0x51250f,_0x23cd7c,_0x3ecfc1,_0x14aa7f){const _0xd728af=a1306_0x5a9005;let _0x1c34ab,_0x4f2275;return _0x3ecfc1['remoteUri']=intUtil[_0xd728af(0x21d)](_0x3ecfc1[_0xd728af(0x207)]),_0x3ecfc1[_0xd728af(0x215)]=intUtil['stripTrailingSlash'](_0x3ecfc1[_0xd728af(0x215)]),_0x14aa7f&&_0x14aa7f[_0xd728af(0x1ec)]&&_0x14aa7f['recordingFormat']!==_0xd728af(0x210)&&(logger[_0xd728af(0x202)]('[OUTBOUND]',_0xd728af(0x206)),_0x12ae16['recordingURL']=util[_0xd728af(0x214)](_0xd728af(0x1eb),_0x3ecfc1[_0xd728af(0x215)],_0x12ae16[_0xd728af(0x21c)],md5(_0x12ae16[_0xd728af(0x21c)]))),headers[_0xd728af(0x204)]=getAuth(_0x3ecfc1),getUser(_0x3ecfc1,_0x51250f[_0xd728af(0x236)])[_0xd728af(0x22c)](function(_0x1717be){const _0x4e94b1=_0xd728af;return _0x1c34ab=_0x1717be,logger[_0x4e94b1(0x202)]('The\x20User\x20ID\x20is:',_0x1c34ab['id']),getEndUser(_0x3ecfc1,_0x12ae16['destcalleridname'],_0x12ae16['destcalleridnum']);})[_0xd728af(0x22c)](function(_0x56fe5d){const _0x519731=_0xd728af;return _0x4f2275=_0x56fe5d,logger[_0x519731(0x202)](_0x519731(0x22a),_0x4f2275['id']),getTicket(_0x3ecfc1,_0x1c34ab,_0x4f2275,_0x5b6283,_0x12ae16);})[_0xd728af(0x22c)](function(_0x1a7cb1){const _0x2b0a31=_0xd728af;_0x1a7cb1&&_0x1a7cb1['id']&&(logger[_0x2b0a31(0x202)](_0x2b0a31(0x1e6)),logger['info'](_0x2b0a31(0x1e2),_0x1a7cb1['id']),logger[_0x2b0a31(0x202)](_0x2b0a31(0x1e3),_0x2b0a31(0x1e4)),emit(util[_0x2b0a31(0x214)](_0x2b0a31(0x1fd),_0x51250f[_0x2b0a31(0x208)]),_0x2b0a31(0x1ef),{'uri':util['format']('%s/helpdesk/tickets/%d',_0x3ecfc1[_0x2b0a31(0x207)],_0x1a7cb1['id'])}));})[_0xd728af(0x1e8)](function(_0x44ed25){const _0x1e0ff1=_0xd728af;logger['error']('[OUTBOUND]',JSON[_0x1e0ff1(0x1f0)](_0x44ed25));});},exports[a1306_0x5a9005(0x239)]=function(_0x4cf329,_0x83010d,_0x29dc1f,_0x2b4ec3,_0xccf8fc,_0x5d3469){const _0x2da35c=a1306_0x5a9005;let _0x26f2f7,_0x31cdb6;return _0x5d3469[_0x2da35c(0x207)]=intUtil['stripTrailingSlash'](_0x5d3469[_0x2da35c(0x207)]),_0x5d3469[_0x2da35c(0x215)]=intUtil[_0x2da35c(0x21d)](_0x5d3469[_0x2da35c(0x215)]),_0xccf8fc&&_0xccf8fc[_0x2da35c(0x222)]?(logger[_0x2da35c(0x202)]('['+_0x83010d[_0x2da35c(0x1ee)][_0x2da35c(0x20e)]()+']','Recording\x20is\x20enabled!'),_0x83010d[_0x2da35c(0x221)]=util[_0x2da35c(0x214)]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x5d3469['serverUrl'],_0x83010d['uniqueid'],md5(_0x83010d[_0x2da35c(0x21c)]))):_0x83010d[_0x2da35c(0x221)]='',headers[_0x2da35c(0x204)]=getAuth(_0x5d3469),getUser(_0x5d3469,'')[_0x2da35c(0x22c)](function(_0x4057d1){const _0x4cb052=_0x2da35c;return _0x26f2f7=_0x4057d1,logger[_0x4cb052(0x202)]('The\x20User\x20ID\x20is:',_0x26f2f7['id']),getEndUser(_0x5d3469,_0x83010d['calleridname'],_0x83010d['calleridnum']);})[_0x2da35c(0x22c)](function(_0x28f83a){const _0x165289=_0x2da35c;return _0x31cdb6=_0x28f83a,logger[_0x165289(0x202)](_0x165289(0x22a),_0x31cdb6['id']),getTicket(_0x5d3469,_0x26f2f7,_0x31cdb6,_0x29dc1f,_0x83010d);})[_0x2da35c(0x22c)](function(_0x4eaeaa){const _0x1e6ddf=_0x2da35c;_0x4eaeaa&&(logger[_0x1e6ddf(0x202)](_0x1e6ddf(0x1e6)),logger['info'](_0x1e6ddf(0x1e2),_0x4eaeaa['id']));})[_0x2da35c(0x1e8)](function(_0x1a4bef){const _0x511b57=_0x2da35c;logger[_0x511b57(0x231)]('['+_0x83010d[_0x511b57(0x1ee)]['toUpperCase']()+']',JSON[_0x511b57(0x1f0)](_0x1a4bef));});}; \ No newline at end of file +const a1306_0x2693=['stringify','nameField','Admin\x20account\x20selected.','GET','customVariable','destcalleridname','The\x20User\x20ID\x20is:','getString','calleridname','lastevent','validateEmail','Authorization','forEach','uniqueid','Variable','monitor_format','debug','then','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','[OUTBOUND]','serverUrl','Subjects','contact','%s/api/v2/agents','toUpperCase','Creating\x20new\x20ticket...','../../../../config/logger','request-promise-native','queue','Recording\x20is\x20enabled!','Enduser\x20created.','util','freshdesk','./util','user:%s','format','type','The\x20Enduser\x20ID\x20is:','defaults','
','custom_fields','Descriptions','error','Ticket\x20created!','recordingFormat','content','[QUEUE]','trigger:browser:url','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','apiKey','string','name','stripTrailingSlash','remoteUri','idField','unmanaged','recordingURL','Basic\x20%s','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','find','The\x20Ticket\x20ID\x20is:','%s/api/v2/contacts','toString','keyBy','application/json','length','customField','push','info','from','mapValues','variableName','catch','Agent\x20found!','calleridnum','toLowerCase','%s/api/v2/agents/me','email','Invalid\x20email\x20format,\x20using\x20the\x20admin\x20account!','%s/helpdesk/tickets/%d'];(function(_0x599be6,_0x3a7b5e){const _0x2693f2=function(_0x24207e){while(--_0x24207e){_0x599be6['push'](_0x599be6['shift']());}};_0x2693f2(++_0x3a7b5e);}(a1306_0x2693,0x148));const a1306_0x2420=function(_0x599be6,_0x3a7b5e){_0x599be6=_0x599be6-0x77;let _0x2693f2=a1306_0x2693[_0x599be6];return _0x2693f2;};const a1306_0x13bf4d=a1306_0x2420;'use strict';const _=require('lodash'),rp=require(a1306_0x13bf4d(0x8e)),md5=require('md5'),util=require(a1306_0x13bf4d(0x92)),intUtil=require(a1306_0x13bf4d(0x94)),logger=require(a1306_0x13bf4d(0x8d))(a1306_0x13bf4d(0x93)),{getSocket}=require('../../../../rediscache'),io=getSocket(),headers={'Content-Type':a1306_0x13bf4d(0xb4),'Accept':a1306_0x13bf4d(0xb4)};function emit(_0x2ddc0e,_0x205866,_0x7713d4){io['to'](_0x2ddc0e)['emit'](_0x205866,_0x7713d4);}function getTicket(_0x403cc0,_0x2f0cad,_0x15d033,_0x2a4474,_0x44483d){const _0x36a21a=a1306_0x13bf4d;logger[_0x36a21a(0xb8)](_0x36a21a(0x8c));const _0x390b1c=_['merge']({'responder_id':_0x2f0cad['id'],'requester_id':_0x15d033['id'],'name':util[_0x36a21a(0x96)]('Caller\x20-\x20%s',_0x44483d[_0x36a21a(0x7b)]),'phone':_0x44483d['calleridnum'],'source':0x3,'priority':0x1,'status':0x2,'subject':intUtil[_0x36a21a(0x7a)](_0x2a4474[_0x36a21a(0x88)],_0x44483d,'\x20'),'description':intUtil['getString'](_0x2a4474[_0x36a21a(0x9c)],_0x44483d,_0x36a21a(0x9a)),'tags':getTags(_0x2a4474['Tags'],'name')},getCustomFields(_0x2a4474['Fields'],_0x44483d));return _0x390b1c['custom_fields']=_[_0x36a21a(0xba)](_[_0x36a21a(0xb3)](_0x390b1c['custom_fields'],'id'),'value'),request({'uri':util[_0x36a21a(0x96)]('%s/api/v2/tickets',_0x403cc0[_0x36a21a(0xa9)]),'method':'POST','body':_0x390b1c})[_0x36a21a(0x84)](function(_0x1d0e74){const _0x498979=_0x36a21a;return logger[_0x498979(0xb8)]('Ticket\x20created!'),_0x1d0e74;});}function getUser(_0x167a22,_0x5dfb0a){const _0x501c89=a1306_0x13bf4d;return intUtil[_0x501c89(0x7d)](_0x5dfb0a)?request({'uri':util[_0x501c89(0x96)](_0x501c89(0x8a),_0x167a22[_0x501c89(0xa9)]),'qs':{'email':_0x5dfb0a}})[_0x501c89(0x84)](function(_0x29f52b){const _0x52756f=_0x501c89;return _0x29f52b[_0x52756f(0xb5)]?(logger['info'](_0x52756f(0xbd)),_[_0x52756f(0xaf)](_0x29f52b,function(_0x461784){const _0x51bb69=_0x52756f;return _0x461784[_0x51bb69(0x89)][_0x51bb69(0xc1)]===_0x5dfb0a;})):(logger[_0x52756f(0xb8)](_0x52756f(0xa4)),request({'uri':util[_0x52756f(0x96)](_0x52756f(0xc0),_0x167a22[_0x52756f(0xa9)])})[_0x52756f(0x84)](function(_0x38358e){const _0x182619=_0x52756f;return logger['info'](_0x182619(0xc6)),_0x38358e;}));}):(logger[_0x501c89(0xb8)](_0x501c89(0xc2)),request({'uri':util[_0x501c89(0x96)]('%s/api/v2/agents/me',_0x167a22[_0x501c89(0xa9)])})[_0x501c89(0x84)](function(_0x294b8a){const _0x544b67=_0x501c89;return logger[_0x544b67(0xb8)]('Admin\x20account\x20selected.'),_0x294b8a;}));}function getEndUser(_0xdbb807,_0x4f870b,_0x356cda){const _0x15a65a=a1306_0x13bf4d;return logger['info']('Searching\x20enduser\x20with\x20phone',_0x356cda),request({'uri':util[_0x15a65a(0x96)](_0x15a65a(0xb1),_0xdbb807[_0x15a65a(0xa9)]),'qs':{'phone':_0x356cda}})[_0x15a65a(0x84)](function(_0x1d6195){const _0x552253=_0x15a65a;return _0x1d6195[_0x552253(0xb5)]?(logger[_0x552253(0xb8)]('Enduser\x20found!'),_[_0x552253(0xaf)](_0x1d6195,{'phone':_0x356cda})):(logger['info'](_0x552253(0xae)),request({'uri':util[_0x552253(0x96)](_0x552253(0xb1),_0xdbb807['remoteUri']),'method':'POST','body':{'name':_0x4f870b,'phone':_0x356cda}})[_0x552253(0x84)](function(_0x315a4a){const _0x38c2bb=_0x552253;return logger[_0x38c2bb(0xb8)](_0x38c2bb(0x91)),_0x315a4a;}));});}function getAuth(_0x34b860){const _0x7d7889=a1306_0x13bf4d;return util[_0x7d7889(0x96)](_0x7d7889(0xad),Buffer[_0x7d7889(0xb9)](_0x34b860[_0x7d7889(0xa5)]+':X')['toString']('base64'));}function request(_0x388929){const _0x46ce37=a1306_0x13bf4d;return logger[_0x46ce37(0x83)]('[HTTP]',JSON['stringify'](_0x388929)),rp(_[_0x46ce37(0x99)](_0x388929,{'method':_0x46ce37(0xc7),'headers':headers,'json':!![]}));}function getTags(_0x79c4b2,_0x24420b){const _0x30f7f2=a1306_0x13bf4d;let _0x262048=[];return _0x79c4b2&&_0x79c4b2[_0x30f7f2(0xb5)]>0x0&&(_0x262048=_['map'](_0x79c4b2,_0x24420b)),_0x262048;}function getCustomFields(_0x14ab2c,_0x297d61){const _0x52117f=a1306_0x13bf4d,_0x507d0f={'custom_fields':[]};return _0x14ab2c[_0x52117f(0xb5)]>0x0&&_[_0x52117f(0x7f)](_0x14ab2c,function(_0x4da2ed){const _0x32510f=_0x52117f;if(_0x4da2ed[_0x32510f(0x97)]===_0x32510f(0xa6)&&_0x4da2ed[_0x32510f(0xc5)]&&!_0x4da2ed[_0x32510f(0xb6)])_0x507d0f[_0x4da2ed[_0x32510f(0xc5)][_0x32510f(0xbf)]()]=_0x4da2ed[_0x32510f(0xa0)][_0x32510f(0xb2)]();else{if(_0x4da2ed[_0x32510f(0x97)]===_0x32510f(0xa6)&&_0x4da2ed[_0x32510f(0xaa)]&&_0x4da2ed[_0x32510f(0xb6)])_0x507d0f['custom_fields'][_0x32510f(0xb7)]({'id':_0x4da2ed[_0x32510f(0xaa)],'value':_0x4da2ed[_0x32510f(0xa0)]['toString']()});else{if(_0x4da2ed[_0x32510f(0x97)]==='variable'&&_0x4da2ed[_0x32510f(0xbb)]&&_0x4da2ed[_0x32510f(0xaa)]&&_0x4da2ed[_0x32510f(0xb6)])_0x297d61[_0x4da2ed[_0x32510f(0xbb)]]&&_0x507d0f['custom_fields'][_0x32510f(0xb7)]({'id':_0x4da2ed['idField'],'value':_0x297d61[_0x4da2ed[_0x32510f(0xbb)]][_0x32510f(0xb2)]()});else _0x4da2ed[_0x32510f(0x97)]===_0x32510f(0x77)&&_0x4da2ed[_0x32510f(0x81)]&&_0x4da2ed[_0x32510f(0x81)][_0x32510f(0xa7)]&&_0x4da2ed[_0x32510f(0xaa)]&&_0x4da2ed[_0x32510f(0xb6)]&&(_0x297d61[_0x4da2ed[_0x32510f(0x81)][_0x32510f(0xa7)][_0x32510f(0xbf)]()]&&_0x507d0f[_0x32510f(0x9b)][_0x32510f(0xb7)]({'id':_0x4da2ed['idField'],'value':_0x297d61[_0x4da2ed['Variable'][_0x32510f(0xa7)][_0x32510f(0xbf)]()][_0x32510f(0xb2)]()}));}}}),_0x507d0f;}exports[a1306_0x13bf4d(0x8f)]=function(_0x44f09c,_0x3d0516,_0x1b0108,_0x15e389,_0xdc2f10,_0x445da1){const _0x1f592e=a1306_0x13bf4d;let _0x23122c,_0x3beedc;return _0x445da1[_0x1f592e(0xa9)]=intUtil[_0x1f592e(0xa8)](_0x445da1[_0x1f592e(0xa9)]),_0x445da1[_0x1f592e(0x87)]=intUtil['stripTrailingSlash'](_0x445da1[_0x1f592e(0x87)]),_0xdc2f10&&_0xdc2f10[_0x1f592e(0x82)]?(logger[_0x1f592e(0xb8)](_0x1f592e(0xa1),_0x1f592e(0x90)),_0x3d0516['recordingURL']=util['format']('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x445da1['serverUrl'],_0x3d0516['uniqueid'],md5(_0x3d0516[_0x1f592e(0x80)]))):_0x3d0516[_0x1f592e(0xac)]='',headers[_0x1f592e(0x7e)]=getAuth(_0x445da1),getUser(_0x445da1,_0x15e389[_0x1f592e(0xc1)])[_0x1f592e(0x84)](function(_0x5a6e85){const _0x13d8f2=_0x1f592e;return _0x23122c=_0x5a6e85,logger['info'](_0x13d8f2(0x79),_0x23122c['id']),getEndUser(_0x445da1,_0x3d0516[_0x13d8f2(0x7b)],_0x3d0516[_0x13d8f2(0xbe)]);})[_0x1f592e(0x84)](function(_0x5e2091){const _0x3b15b6=_0x1f592e;return _0x3beedc=_0x5e2091,logger[_0x3b15b6(0xb8)](_0x3b15b6(0x98),_0x3beedc['id']),getTicket(_0x445da1,_0x23122c,_0x3beedc,_0x1b0108,_0x3d0516);})[_0x1f592e(0x84)](function(_0xc97c8c){const _0x3a159e=_0x1f592e;_0xc97c8c&&_0xc97c8c['id']&&(logger[_0x3a159e(0xb8)]('Ticket\x20created!'),logger[_0x3a159e(0xb8)]('The\x20Ticket\x20ID\x20is:',_0xc97c8c['id']),logger[_0x3a159e(0xb8)](_0x3a159e(0xa1),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x3a159e(0x96)](_0x3a159e(0x95),_0x15e389[_0x3a159e(0xa7)]),_0x3a159e(0xa2),{'uri':util['format'](_0x3a159e(0xc3),_0x445da1[_0x3a159e(0xa9)],_0xc97c8c['id'])}));})['catch'](function(_0x30b971){const _0x1f3d31=_0x1f592e;logger['error'](_0x1f3d31(0xa1),JSON[_0x1f3d31(0xc4)](_0x30b971));});},exports['outbound']=function(_0x5a9336,_0x362858,_0x291a2c,_0x59b683,_0x24d415,_0x3c9fdf,_0x5782ab){const _0x2cbce5=a1306_0x13bf4d;let _0x32848e,_0x500557;return _0x3c9fdf['remoteUri']=intUtil['stripTrailingSlash'](_0x3c9fdf[_0x2cbce5(0xa9)]),_0x3c9fdf[_0x2cbce5(0x87)]=intUtil[_0x2cbce5(0xa8)](_0x3c9fdf[_0x2cbce5(0x87)]),_0x5782ab&&_0x5782ab[_0x2cbce5(0x9f)]&&_0x5782ab['recordingFormat']!=='none'&&(logger[_0x2cbce5(0xb8)](_0x2cbce5(0x86),_0x2cbce5(0x90)),_0x362858[_0x2cbce5(0xac)]=util[_0x2cbce5(0x96)](_0x2cbce5(0x85),_0x3c9fdf[_0x2cbce5(0x87)],_0x362858[_0x2cbce5(0x80)],md5(_0x362858[_0x2cbce5(0x80)]))),headers[_0x2cbce5(0x7e)]=getAuth(_0x3c9fdf),getUser(_0x3c9fdf,_0x59b683[_0x2cbce5(0xc1)])[_0x2cbce5(0x84)](function(_0x3426ce){const _0x136c5f=_0x2cbce5;return _0x32848e=_0x3426ce,logger[_0x136c5f(0xb8)]('The\x20User\x20ID\x20is:',_0x32848e['id']),getEndUser(_0x3c9fdf,_0x362858[_0x136c5f(0x78)],_0x362858['destcalleridnum']);})[_0x2cbce5(0x84)](function(_0x2d539d){const _0x55a875=_0x2cbce5;return _0x500557=_0x2d539d,logger[_0x55a875(0xb8)]('The\x20Enduser\x20ID\x20is:',_0x500557['id']),getTicket(_0x3c9fdf,_0x32848e,_0x500557,_0x291a2c,_0x362858);})['then'](function(_0x4dfbf8){const _0x5d5c9b=_0x2cbce5;_0x4dfbf8&&_0x4dfbf8['id']&&(logger[_0x5d5c9b(0xb8)](_0x5d5c9b(0x9e)),logger['info'](_0x5d5c9b(0xb0),_0x4dfbf8['id']),logger[_0x5d5c9b(0xb8)]('[OUTBOUND]',_0x5d5c9b(0xa3)),emit(util[_0x5d5c9b(0x96)](_0x5d5c9b(0x95),_0x59b683[_0x5d5c9b(0xa7)]),_0x5d5c9b(0xa2),{'uri':util[_0x5d5c9b(0x96)](_0x5d5c9b(0xc3),_0x3c9fdf[_0x5d5c9b(0xa9)],_0x4dfbf8['id'])}));})[_0x2cbce5(0xbc)](function(_0x3b3425){const _0x13974c=_0x2cbce5;logger[_0x13974c(0x9d)](_0x13974c(0x86),JSON['stringify'](_0x3b3425));});},exports[a1306_0x13bf4d(0xab)]=function(_0x7236de,_0x2f524e,_0xb2da1e,_0x30dc13,_0x194d9f,_0x5d4894){const _0x56806c=a1306_0x13bf4d;let _0x50c58a,_0x19d110;return _0x5d4894[_0x56806c(0xa9)]=intUtil['stripTrailingSlash'](_0x5d4894['remoteUri']),_0x5d4894[_0x56806c(0x87)]=intUtil[_0x56806c(0xa8)](_0x5d4894[_0x56806c(0x87)]),_0x194d9f&&_0x194d9f[_0x56806c(0x82)]?(logger['info']('['+_0x2f524e[_0x56806c(0x7c)][_0x56806c(0x8b)]()+']',_0x56806c(0x90)),_0x2f524e['recordingURL']=util[_0x56806c(0x96)](_0x56806c(0x85),_0x5d4894[_0x56806c(0x87)],_0x2f524e['uniqueid'],md5(_0x2f524e['uniqueid']))):_0x2f524e['recordingURL']='',headers[_0x56806c(0x7e)]=getAuth(_0x5d4894),getUser(_0x5d4894,'')[_0x56806c(0x84)](function(_0x1d74bd){const _0x595f4f=_0x56806c;return _0x50c58a=_0x1d74bd,logger[_0x595f4f(0xb8)]('The\x20User\x20ID\x20is:',_0x50c58a['id']),getEndUser(_0x5d4894,_0x2f524e[_0x595f4f(0x7b)],_0x2f524e[_0x595f4f(0xbe)]);})[_0x56806c(0x84)](function(_0x537584){const _0x5ae6b9=_0x56806c;return _0x19d110=_0x537584,logger[_0x5ae6b9(0xb8)](_0x5ae6b9(0x98),_0x19d110['id']),getTicket(_0x5d4894,_0x50c58a,_0x19d110,_0xb2da1e,_0x2f524e);})['then'](function(_0x5114ea){const _0x1ca243=_0x56806c;_0x5114ea&&(logger[_0x1ca243(0xb8)](_0x1ca243(0x9e)),logger[_0x1ca243(0xb8)](_0x1ca243(0xb0),_0x5114ea['id']));})[_0x56806c(0xbc)](function(_0x19cecc){const _0x456cdf=_0x56806c;logger[_0x456cdf(0x9d)]('['+_0x2f524e[_0x456cdf(0x7c)][_0x456cdf(0x8b)]()+']',JSON[_0x456cdf(0xc4)](_0x19cecc));});}; \ 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 6b3b3ee..c966b9c 100644 --- a/server/services/ami/trigger/integration/freshsales.js +++ b/server/services/ami/trigger/integration/freshsales.js @@ -1 +1 @@ -const a1307_0x42bc=['Getting\x20user\x20with\x20email','calleridnum','remoteUri','format','Task\x20created:','util','task','agentEmail','name','recordingFormat','lodash','[OUTBOUND]','uniqueid','userId','queue','Getting\x20contacts\x20filter','inspect','getString','username','unmanaged','catch','forEach','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','/api/tasks','error','Contact','users','Subjects','message','toUpperCase','/api/contacts','Displaying\x20task\x20in\x20a\x20new\x20tab...','contactNumber','stripTrailingSlash','adminEmail','Admin\x20selected','freshsales','../../../../rediscache','[QUEUE]','userEmail','Descriptions','adminId','endUserId','User\x20found:','Getting\x20contact\x20list','emit','contact','/api/contacts/filters','headers',']\x20Error\x20running\x20Freshsales\x20integration','/api/contacts/view/','ticketId','/api/selector/owners','./util','POST','Searching\x20contact\x20with\x20phone','All\x20Contacts','serverUrl','filters','YYYY-MM-DDTHH:mm:ss','info','then','length','outbound','find','Getting\x20admin\x20information','toLowerCase','/contacts/','Requested\x20Resource\x20not\x20Found','trigger:browser:url','Admin\x20found:','add','md5','GET','contacts','Creating\x20new\x20task','recordingURL','Recording\x20is\x20enabled!'];(function(_0x56100e,_0x244fc3){const _0x42bce6=function(_0x3a5594){while(--_0x3a5594){_0x56100e['push'](_0x56100e['shift']());}};_0x42bce6(++_0x244fc3);}(a1307_0x42bc,0x10b));const a1307_0x3a55=function(_0x56100e,_0x244fc3){_0x56100e=_0x56100e-0x10d;let _0x42bce6=a1307_0x42bc[_0x56100e];return _0x42bce6;};const a1307_0x328251=a1307_0x3a55;'use strict';const _=require(a1307_0x328251(0x144)),rp=require('request-promise-native'),md5=require(a1307_0x328251(0x134)),util=require(a1307_0x328251(0x13f)),moment=require('moment'),intUtil=require(a1307_0x328251(0x121)),logger=require('../../../../config/logger')(a1307_0x328251(0x110)),{getSocket}=require(a1307_0x328251(0x111)),io=getSocket();function getAdminId(_0x39ee28,_0x40ddf9,_0x4d7394,_0x24042d){return new Promise(function(_0x1e425d,_0x3b8d46){const _0x246207=a1307_0x3a55;let _0x1129e8=![];const _0x5012bf={'method':_0x246207(0x135),'uri':_0x24042d+_0x246207(0x120),'json':!![]};return _0x5012bf[_0x246207(0x11c)]=_0x4d7394,logger[_0x246207(0x128)](_0x246207(0x12d)),rp(_0x5012bf)[_0x246207(0x129)](function(_0xfad436){const _0x369ed0=_0x246207;if(_0xfad436){const _0x5198de=_0xfad436[_0x369ed0(0x154)];let _0x3db7a9=null;for(_0x3db7a9=0x0;_0x3db7a9<_0x5198de[_0x369ed0(0x12a)];_0x3db7a9++){_0x5198de[_0x3db7a9]['email']===_0x39ee28['adminEmail']&&(_0x39ee28[_0x369ed0(0x115)]=_0x5198de[_0x3db7a9]['id'],_0x1129e8=!![]);}_0x1129e8?(logger['info'](_0x369ed0(0x132),_0x39ee28['adminId']),_0x1e425d(_0x39ee28)):_0x3b8d46({'statusCode':0x194,'message':_0x369ed0(0x130)});}else _0x3b8d46({'statusCode':0x194,'message':_0x369ed0(0x130)});})[_0x246207(0x14e)](function(_0x418f69){const _0x28d023=_0x246207;logger[_0x28d023(0x152)]('['+[_0x40ddf9[_0x28d023(0x157)]()]+']',_0x418f69[_0x28d023(0x156)]),_0x3b8d46(_0x418f69);});});}function getUser(_0x399029,_0x1e9f2c,_0x9a5736){return function(_0x138854){return new Promise(function(_0x523187,_0x537a65){const _0x5924f7=a1307_0x3a55,_0x11c287={'method':_0x5924f7(0x135),'uri':_0x9a5736+_0x5924f7(0x120),'json':!![]};return _0x11c287[_0x5924f7(0x11c)]=_0x1e9f2c,logger['info']('Getting\x20user\x20list'),rp(_0x11c287)[_0x5924f7(0x129)](function(_0x2e109a){const _0x2c701b=_0x5924f7;if(_0x2e109a){const _0x149f0b=_0x2e109a[_0x2c701b(0x154)];let _0x535438=![],_0x4ea916=null;if(_0x138854['agentEmail']!==null){logger[_0x2c701b(0x128)](_0x2c701b(0x13a),_0x138854[_0x2c701b(0x141)]),_0x138854[_0x2c701b(0x113)]=_0x138854[_0x2c701b(0x141)];for(_0x4ea916=0x0;_0x4ea916<_0x149f0b[_0x2c701b(0x12a)];_0x4ea916++){_0x149f0b[_0x4ea916]['email']===_0x138854['agentEmail']&&(_0x535438=!![],_0x138854['userId']=_0x149f0b[_0x4ea916]['id'],logger['info'](_0x2c701b(0x117),_0x138854[_0x2c701b(0x147)]));}}!_0x535438&&(logger[_0x2c701b(0x128)](_0x2c701b(0x10f)),_0x138854[_0x2c701b(0x113)]=_0x138854[_0x2c701b(0x10e)],_0x138854[_0x2c701b(0x147)]=_0x138854[_0x2c701b(0x115)],_0x535438=!![]),_0x535438?_0x523187(_0x138854):_0x537a65({'statusCode':0x194,'message':_0x2c701b(0x130)});}else _0x537a65({'statusCode':0x194,'message':'Requested\x20Resource\x20not\x20Found'});})[_0x5924f7(0x14e)](function(_0x574ff5){const _0x321493=_0x5924f7;logger[_0x321493(0x152)]('['+[_0x399029[_0x321493(0x157)]()]+']',_0x574ff5[_0x321493(0x156)]),_0x537a65(_0x574ff5);});});};}function getEndUser(_0x1cda7f,_0x1aedbf,_0x2070b5){return function(_0x20f459){return new Promise(function(_0x366cf5){const _0x47e028=a1307_0x3a55;let _0x220b85=0x0;const _0x39b101={'method':_0x47e028(0x135),'uri':_0x2070b5+_0x47e028(0x11b),'json':!![]};return _0x39b101['headers']=_0x1aedbf,logger[_0x47e028(0x128)](_0x47e028(0x149)),rp(_0x39b101)['then'](function(_0x162226){const _0xb509d8=_0x47e028;_0x162226[_0xb509d8(0x126)][_0xb509d8(0x14f)](function(_0x2ddc40){const _0x41913c=_0xb509d8;_0x2ddc40['name']===_0x41913c(0x124)&&(_0x220b85=_0x2ddc40['id']);});})['then'](function(){const _0x26bb7c=_0x47e028;logger[_0x26bb7c(0x128)](_0x26bb7c(0x118));const _0x4d0704={'method':_0x26bb7c(0x135),'uri':_0x2070b5+_0x26bb7c(0x11e)+_0x220b85,'json':!![]};return _0x4d0704['headers']=_0x1aedbf,rp(_0x4d0704);})['then'](function(_0x2ead88){const _0x2d29c4=_0x47e028;logger['info'](_0x2d29c4(0x123),_0x20f459[_0x2d29c4(0x15a)]);if(_0x2ead88[_0x2d29c4(0x136)][_0x2d29c4(0x12a)]>0x0){const _0x4362a5=_[_0x2d29c4(0x12c)](_0x2ead88['contacts'],function(_0x4f211c){const _0xf064bb=_0x2d29c4;if(_0x4f211c['work_number']===_0x20f459[_0xf064bb(0x15a)]||_0x4f211c['mobile_number']===_0x20f459[_0xf064bb(0x15a)])return _0x4f211c;});if(_0x4362a5)_0x20f459[_0x2d29c4(0x116)]=_0x4362a5['id'],logger[_0x2d29c4(0x128)]('Contact\x20found:',_0x20f459[_0x2d29c4(0x116)]),_0x366cf5(_0x20f459);else return createEndUser(_0x20f459,_0x1cda7f,_0x1aedbf,_0x2070b5)[_0x2d29c4(0x129)](function(_0x52d490){const _0x2574ff=_0x2d29c4;logger[_0x2574ff(0x128)]('Contact\x20created:',_0x20f459[_0x2574ff(0x116)]),_0x366cf5(_0x52d490);});}else return createEndUser(_0x20f459,_0x1cda7f,_0x1aedbf,_0x2070b5)['then'](function(_0x1f04f8){const _0x1bc45e=_0x2d29c4;logger[_0x1bc45e(0x128)]('Contact\x20created:',_0x20f459[_0x1bc45e(0x116)]),_0x366cf5(_0x1f04f8);});})['catch'](function(_0x3f505d){const _0xcaa1d=_0x47e028;throw new Error(_0x3f505d[_0xcaa1d(0x156)]);});});};}function createEndUser(_0x5bc346,_0xa2a6f3,_0xff88d0,_0x4161a1){return new Promise(function(_0x39a3f4,_0x5d98c0){const _0x5032e9=a1307_0x3a55,_0x33cd61=moment(),_0x72f30c={'method':_0x5032e9(0x122),'uri':_0x4161a1+_0x5032e9(0x158),'body':{'contact':{'last_name':_0x5bc346[_0x5032e9(0x15a)],'work_number':_0x5bc346[_0x5032e9(0x15a)],'mobile_number':_0x5bc346[_0x5032e9(0x15a)],'owner_id':_0x5bc346[_0x5032e9(0x147)],'created_at':_0x33cd61[_0x5032e9(0x13d)](_0x5032e9(0x127))}},'json':!![]};return _0x72f30c[_0x5032e9(0x11c)]=_0xff88d0,logger['info']('Contact\x20not\x20found,\x20creating\x20a\x20new\x20contact'),rp(_0x72f30c)[_0x5032e9(0x129)](function(_0xfd45fb){const _0x18eb05=_0x5032e9;_0x5bc346['endUserId']=_0xfd45fb[_0x18eb05(0x11a)]['id'],_0x39a3f4(_0x5bc346);})[_0x5032e9(0x14e)](function(_0x4e7d74){const _0x5d9975=_0x5032e9;logger[_0x5d9975(0x152)]('['+[_0xa2a6f3[_0x5d9975(0x157)]()]+']',_0x4e7d74['message']),_0x5d98c0(_0x4e7d74['message']);});});}function getTicket(_0x200063,_0x13d7be,_0x117470,_0xdbd178,_0xdaa3b9){return function(_0x591227){const _0x2c6c29=a1307_0x3a55;return logger[_0x2c6c29(0x128)](_0x2c6c29(0x137)),new Promise(function(_0xd41625,_0x2bc885){const _0x18de59=_0x2c6c29,_0x1728fc=moment(),_0x1b3986={'method':'POST','uri':_0x117470+_0x18de59(0x151),'body':{'title':intUtil[_0x18de59(0x14b)](_0xdbd178[_0x18de59(0x155)],_0xdaa3b9,'\x20'),'description':intUtil['getString'](_0xdbd178[_0x18de59(0x114)],_0xdaa3b9,'\x0a'),'owner_id':_0x591227['userId'],'creater_id':_0x591227[_0x18de59(0x115)],'targetable_id':_0x591227['endUserId'],'targetable_type':_0x18de59(0x153),'created_at':_0x1728fc[_0x18de59(0x13d)](_0x18de59(0x127)),'due_date':_0x1728fc[_0x18de59(0x133)](0x1e,'m')['format'](_0x18de59(0x127))},'json':!![]};return _0x1b3986['headers']=_0x13d7be,rp(_0x1b3986)[_0x18de59(0x129)](function(_0x24ebce){const _0x5d366d=_0x18de59;_0x591227[_0x5d366d(0x11f)]=_0x24ebce[_0x5d366d(0x140)]['id'],logger['info'](_0x5d366d(0x13e),_0x591227['ticketId']),_0xd41625(_0x591227);})['catch'](function(_0x533624){const _0x343b35=_0x18de59;logger['error']('['+[_0x200063[_0x343b35(0x157)]()]+']',_0x533624[_0x343b35(0x156)]),_0x2bc885(_0x533624[_0x343b35(0x156)]);});});};}function emit(_0x25b202,_0x38fc92,_0x2bbe2d){const _0x58db93=a1307_0x328251,_0x235e46={'uri':_0x25b202+_0x58db93(0x12f)+_0x2bbe2d};io['to'](util[_0x58db93(0x13d)]('user:%s',_0x38fc92))[_0x58db93(0x119)](_0x58db93(0x131),_0x235e46);}exports['cs']=function(_0x3d1b9c,_0xbd223e,_0x398f59,_0x32432c,_0x37cb4c,_0x557bcf,_0x261883,_0x23445e){const _0x3f35bf=a1307_0x328251,_0x28b744={},_0x5179e9={'Authorization':'Token\x20token='+_0x557bcf['apiKey']};_0x557bcf[_0x3f35bf(0x13c)]=intUtil[_0x3f35bf(0x10d)](_0x557bcf[_0x3f35bf(0x13c)]),_0x557bcf[_0x3f35bf(0x125)]=intUtil['stripTrailingSlash'](_0x557bcf[_0x3f35bf(0x125)]);const _0x30f291=_0x557bcf[_0x3f35bf(0x13c)];_0x28b744[_0x3f35bf(0x10e)]=_0x557bcf[_0x3f35bf(0x14c)],_0x28b744[_0x3f35bf(0x15a)]=_0x23445e[_0x3f35bf(0x12e)]()===_0x3f35bf(0x12b)?_0xbd223e['destcalleridnum']:_0xbd223e[_0x3f35bf(0x13b)],_0x28b744['callDirection']=_0x23445e===_0x3f35bf(0x148)||_0x23445e==='unmanaged'?'queue':_0x3f35bf(0x12b);_0x32432c&&(_0x28b744[_0x3f35bf(0x141)]=_0x32432c['email']);const _0x286816=util[_0x3f35bf(0x13d)](_0x3f35bf(0x150),_0x557bcf[_0x3f35bf(0x125)],_0xbd223e[_0x3f35bf(0x146)],md5(_0xbd223e['uniqueid']));if(_0x37cb4c&&_0x37cb4c['monitor_format'])logger[_0x3f35bf(0x128)](_0x3f35bf(0x112),_0x3f35bf(0x139)),_0xbd223e[_0x3f35bf(0x138)]=_0x286816;else _0x261883&&_0x261883[_0x3f35bf(0x143)]&&_0x261883[_0x3f35bf(0x143)]!=='none'?(logger[_0x3f35bf(0x128)](_0x3f35bf(0x145),_0x3f35bf(0x139)),_0xbd223e[_0x3f35bf(0x138)]=_0x286816):_0xbd223e[_0x3f35bf(0x138)]='';return getAdminId(_0x28b744,_0x23445e,_0x5179e9,_0x30f291)['then'](getUser(_0x23445e,_0x5179e9,_0x30f291))[_0x3f35bf(0x129)](getEndUser(_0x23445e,_0x5179e9,_0x30f291))[_0x3f35bf(0x129)](getTicket(_0x23445e,_0x5179e9,_0x30f291,_0x398f59,_0xbd223e))[_0x3f35bf(0x129)](function(_0x525697){const _0x31df60=_0x3f35bf;logger[_0x31df60(0x128)](util['format']('The\x20ticket\x20ID\x20is:\x20%s',_0x525697[_0x31df60(0x11f)])),_0x23445e!==_0x31df60(0x14d)&&(logger[_0x31df60(0x128)]('['+[_0x23445e[_0x31df60(0x157)]()]+']',_0x31df60(0x159)),emit(_0x30f291,_0x32432c[_0x31df60(0x142)],_0x525697['endUserId']));})[_0x3f35bf(0x14e)](function(_0x3d9f33){const _0x3cd371=_0x3f35bf;logger[_0x3cd371(0x152)]('['+[_0x23445e[_0x3cd371(0x157)]()]+_0x3cd371(0x11d),util[_0x3cd371(0x14a)](_0x3d9f33,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +const a1307_0x3e19=['serverUrl','recordingURL','trigger:browser:url','Contact\x20created:','GET','../../../../config/logger','Getting\x20user\x20with\x20email','Descriptions','catch','[OUTBOUND]','calleridnum','uniqueid','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','Admin\x20found:','Getting\x20contact\x20list','/api/selector/owners','callDirection','[QUEUE]','user:%s','find','monitor_format','headers','lodash','apiKey','YYYY-MM-DDTHH:mm:ss','message','length','name','userId','Contact\x20found:','ticketId','recordingFormat','inspect','then','destcalleridnum','POST','contacts','Task\x20created:','stripTrailingSlash','util','error','/api/contacts/view/','../../../../rediscache','queue','adminEmail','Getting\x20admin\x20information','/api/contacts','agentEmail','filters','toUpperCase','Recording\x20is\x20enabled!','Searching\x20contact\x20with\x20phone','Getting\x20user\x20list','request-promise-native','emit','contactNumber',']\x20Error\x20running\x20Freshsales\x20integration','info','/api/contacts/filters','Subjects','contact','freshsales','Contact','endUserId','userEmail','toLowerCase','outbound','Requested\x20Resource\x20not\x20Found','unmanaged','remoteUri','email','add','adminId','User\x20found:','Admin\x20selected','mobile_number','format','All\x20Contacts','users','getString'];(function(_0x4fd70c,_0x2a7e4c){const _0x3e19f0=function(_0x19805a){while(--_0x19805a){_0x4fd70c['push'](_0x4fd70c['shift']());}};_0x3e19f0(++_0x2a7e4c);}(a1307_0x3e19,0x1e3));const a1307_0x1980=function(_0x4fd70c,_0x2a7e4c){_0x4fd70c=_0x4fd70c-0x90;let _0x3e19f0=a1307_0x3e19[_0x4fd70c];return _0x3e19f0;};const a1307_0x2a2151=a1307_0x1980;'use strict';const _=require(a1307_0x2a2151(0xa3)),rp=require(a1307_0x2a2151(0xc2)),md5=require('md5'),util=require(a1307_0x2a2151(0xb4)),moment=require('moment'),intUtil=require('./util'),logger=require(a1307_0x2a2151(0x92))(a1307_0x2a2151(0xca)),{getSocket}=require(a1307_0x2a2151(0xb7)),io=getSocket();function getAdminId(_0x330e86,_0x2f4ea9,_0x31f902,_0x2ac7e1){return new Promise(function(_0x36bfbb,_0x279bb0){const _0x136a72=a1307_0x1980;let _0x2439f0=![];const _0x1ff221={'method':_0x136a72(0x91),'uri':_0x2ac7e1+'/api/selector/owners','json':!![]};return _0x1ff221['headers']=_0x31f902,logger[_0x136a72(0xc6)](_0x136a72(0xba)),rp(_0x1ff221)['then'](function(_0x70244d){const _0x442451=_0x136a72;if(_0x70244d){const _0x4877f1=_0x70244d[_0x442451(0xdb)];let _0x33bd10=null;for(_0x33bd10=0x0;_0x33bd10<_0x4877f1[_0x442451(0xa7)];_0x33bd10++){_0x4877f1[_0x33bd10][_0x442451(0xd3)]===_0x330e86[_0x442451(0xb9)]&&(_0x330e86[_0x442451(0xd5)]=_0x4877f1[_0x33bd10]['id'],_0x2439f0=!![]);}_0x2439f0?(logger[_0x442451(0xc6)](_0x442451(0x9a),_0x330e86[_0x442451(0xd5)]),_0x36bfbb(_0x330e86)):_0x279bb0({'statusCode':0x194,'message':_0x442451(0xd0)});}else _0x279bb0({'statusCode':0x194,'message':_0x442451(0xd0)});})[_0x136a72(0x95)](function(_0x16e239){const _0x2ddf06=_0x136a72;logger[_0x2ddf06(0xb5)]('['+[_0x2f4ea9[_0x2ddf06(0xbe)]()]+']',_0x16e239[_0x2ddf06(0xa6)]),_0x279bb0(_0x16e239);});});}function getUser(_0x428f13,_0x406aea,_0x249f5f){return function(_0x3b1f7b){return new Promise(function(_0x51aa54,_0xf4d514){const _0x3e591b=a1307_0x1980,_0x1a4cba={'method':_0x3e591b(0x91),'uri':_0x249f5f+_0x3e591b(0x9c),'json':!![]};return _0x1a4cba[_0x3e591b(0xa2)]=_0x406aea,logger[_0x3e591b(0xc6)](_0x3e591b(0xc1)),rp(_0x1a4cba)['then'](function(_0x5e35df){const _0x388147=_0x3e591b;if(_0x5e35df){const _0x48ba34=_0x5e35df[_0x388147(0xdb)];let _0xf0456f=![],_0x3471b6=null;if(_0x3b1f7b[_0x388147(0xbc)]!==null){logger[_0x388147(0xc6)](_0x388147(0x93),_0x3b1f7b[_0x388147(0xbc)]),_0x3b1f7b[_0x388147(0xcd)]=_0x3b1f7b[_0x388147(0xbc)];for(_0x3471b6=0x0;_0x3471b6<_0x48ba34[_0x388147(0xa7)];_0x3471b6++){_0x48ba34[_0x3471b6][_0x388147(0xd3)]===_0x3b1f7b['agentEmail']&&(_0xf0456f=!![],_0x3b1f7b[_0x388147(0xa9)]=_0x48ba34[_0x3471b6]['id'],logger[_0x388147(0xc6)](_0x388147(0xd6),_0x3b1f7b[_0x388147(0xa9)]));}}!_0xf0456f&&(logger[_0x388147(0xc6)](_0x388147(0xd7)),_0x3b1f7b[_0x388147(0xcd)]=_0x3b1f7b[_0x388147(0xb9)],_0x3b1f7b['userId']=_0x3b1f7b[_0x388147(0xd5)],_0xf0456f=!![]),_0xf0456f?_0x51aa54(_0x3b1f7b):_0xf4d514({'statusCode':0x194,'message':'Requested\x20Resource\x20not\x20Found'});}else _0xf4d514({'statusCode':0x194,'message':_0x388147(0xd0)});})[_0x3e591b(0x95)](function(_0x338539){const _0x28b848=_0x3e591b;logger['error']('['+[_0x428f13[_0x28b848(0xbe)]()]+']',_0x338539[_0x28b848(0xa6)]),_0xf4d514(_0x338539);});});};}function getEndUser(_0x470c92,_0x50495e,_0x1d0d0f){return function(_0x4de984){return new Promise(function(_0xdd8366){const _0x2b8fc4=a1307_0x1980;let _0x29217d=0x0;const _0x34bbc1={'method':_0x2b8fc4(0x91),'uri':_0x1d0d0f+_0x2b8fc4(0xc7),'json':!![]};return _0x34bbc1['headers']=_0x50495e,logger['info']('Getting\x20contacts\x20filter'),rp(_0x34bbc1)[_0x2b8fc4(0xae)](function(_0x37540f){const _0x56582f=_0x2b8fc4;_0x37540f[_0x56582f(0xbd)]['forEach'](function(_0x27f837){const _0x4d4277=_0x56582f;_0x27f837[_0x4d4277(0xa8)]===_0x4d4277(0xda)&&(_0x29217d=_0x27f837['id']);});})[_0x2b8fc4(0xae)](function(){const _0x139cf2=_0x2b8fc4;logger['info'](_0x139cf2(0x9b));const _0x153977={'method':_0x139cf2(0x91),'uri':_0x1d0d0f+_0x139cf2(0xb6)+_0x29217d,'json':!![]};return _0x153977['headers']=_0x50495e,rp(_0x153977);})['then'](function(_0x26bea7){const _0x246df2=_0x2b8fc4;logger['info'](_0x246df2(0xc0),_0x4de984[_0x246df2(0xc4)]);if(_0x26bea7['contacts'][_0x246df2(0xa7)]>0x0){const _0x5d1da8=_[_0x246df2(0xa0)](_0x26bea7[_0x246df2(0xb1)],function(_0x46c98f){const _0x39ded3=_0x246df2;if(_0x46c98f['work_number']===_0x4de984[_0x39ded3(0xc4)]||_0x46c98f[_0x39ded3(0xd8)]===_0x4de984[_0x39ded3(0xc4)])return _0x46c98f;});if(_0x5d1da8)_0x4de984['endUserId']=_0x5d1da8['id'],logger[_0x246df2(0xc6)](_0x246df2(0xaa),_0x4de984['endUserId']),_0xdd8366(_0x4de984);else return createEndUser(_0x4de984,_0x470c92,_0x50495e,_0x1d0d0f)[_0x246df2(0xae)](function(_0x5387e7){const _0x12b5d3=_0x246df2;logger['info'](_0x12b5d3(0x90),_0x4de984['endUserId']),_0xdd8366(_0x5387e7);});}else return createEndUser(_0x4de984,_0x470c92,_0x50495e,_0x1d0d0f)[_0x246df2(0xae)](function(_0x270ea4){const _0x45824b=_0x246df2;logger[_0x45824b(0xc6)](_0x45824b(0x90),_0x4de984[_0x45824b(0xcc)]),_0xdd8366(_0x270ea4);});})['catch'](function(_0x15c718){const _0x1c3b73=_0x2b8fc4;throw new Error(_0x15c718[_0x1c3b73(0xa6)]);});});};}function createEndUser(_0x1626c8,_0x3199c4,_0x1f9a63,_0x383b01){return new Promise(function(_0x65da4a,_0x51c407){const _0x11a1bb=a1307_0x1980,_0x2202d2=moment(),_0x17dcef={'method':_0x11a1bb(0xb0),'uri':_0x383b01+_0x11a1bb(0xbb),'body':{'contact':{'last_name':_0x1626c8[_0x11a1bb(0xc4)],'work_number':_0x1626c8['contactNumber'],'mobile_number':_0x1626c8[_0x11a1bb(0xc4)],'owner_id':_0x1626c8[_0x11a1bb(0xa9)],'created_at':_0x2202d2[_0x11a1bb(0xd9)]('YYYY-MM-DDTHH:mm:ss')}},'json':!![]};return _0x17dcef[_0x11a1bb(0xa2)]=_0x1f9a63,logger[_0x11a1bb(0xc6)]('Contact\x20not\x20found,\x20creating\x20a\x20new\x20contact'),rp(_0x17dcef)['then'](function(_0x3f1fc5){const _0x1ab467=_0x11a1bb;_0x1626c8['endUserId']=_0x3f1fc5[_0x1ab467(0xc9)]['id'],_0x65da4a(_0x1626c8);})['catch'](function(_0x4c7285){const _0x146840=_0x11a1bb;logger[_0x146840(0xb5)]('['+[_0x3199c4[_0x146840(0xbe)]()]+']',_0x4c7285[_0x146840(0xa6)]),_0x51c407(_0x4c7285[_0x146840(0xa6)]);});});}function getTicket(_0x598a9e,_0x4e9545,_0x15a8d9,_0x3196b3,_0x13e2fc){return function(_0x114c69){const _0x405423=a1307_0x1980;return logger[_0x405423(0xc6)]('Creating\x20new\x20task'),new Promise(function(_0x49f37,_0x893b35){const _0x21b0a8=_0x405423,_0x4f1a21=moment(),_0x4dacf3={'method':_0x21b0a8(0xb0),'uri':_0x15a8d9+'/api/tasks','body':{'title':intUtil[_0x21b0a8(0xdc)](_0x3196b3[_0x21b0a8(0xc8)],_0x13e2fc,'\x20'),'description':intUtil[_0x21b0a8(0xdc)](_0x3196b3[_0x21b0a8(0x94)],_0x13e2fc,'\x0a'),'owner_id':_0x114c69[_0x21b0a8(0xa9)],'creater_id':_0x114c69[_0x21b0a8(0xd5)],'targetable_id':_0x114c69['endUserId'],'targetable_type':_0x21b0a8(0xcb),'created_at':_0x4f1a21[_0x21b0a8(0xd9)](_0x21b0a8(0xa5)),'due_date':_0x4f1a21[_0x21b0a8(0xd4)](0x1e,'m')[_0x21b0a8(0xd9)](_0x21b0a8(0xa5))},'json':!![]};return _0x4dacf3[_0x21b0a8(0xa2)]=_0x4e9545,rp(_0x4dacf3)[_0x21b0a8(0xae)](function(_0x5c3b9d){const _0x34c792=_0x21b0a8;_0x114c69[_0x34c792(0xab)]=_0x5c3b9d['task']['id'],logger[_0x34c792(0xc6)](_0x34c792(0xb2),_0x114c69[_0x34c792(0xab)]),_0x49f37(_0x114c69);})[_0x21b0a8(0x95)](function(_0x1fe4df){const _0x165db4=_0x21b0a8;logger[_0x165db4(0xb5)]('['+[_0x598a9e[_0x165db4(0xbe)]()]+']',_0x1fe4df[_0x165db4(0xa6)]),_0x893b35(_0x1fe4df[_0x165db4(0xa6)]);});});};}function emit(_0x122b15,_0x23961e,_0x152834){const _0x1b8dc1=a1307_0x2a2151,_0x37eb55={'uri':_0x122b15+'/contacts/'+_0x152834};io['to'](util[_0x1b8dc1(0xd9)](_0x1b8dc1(0x9f),_0x23961e))[_0x1b8dc1(0xc3)](_0x1b8dc1(0xdf),_0x37eb55);}exports['cs']=function(_0x3aa7cd,_0x574e0e,_0x14efd4,_0x42ce16,_0x331926,_0x5a2942,_0x128fbc,_0x3f584a){const _0x4b614c=a1307_0x2a2151,_0x5b16c0={},_0x1cd2c5={'Authorization':'Token\x20token='+_0x5a2942[_0x4b614c(0xa4)]};_0x5a2942['remoteUri']=intUtil[_0x4b614c(0xb3)](_0x5a2942[_0x4b614c(0xd2)]),_0x5a2942[_0x4b614c(0xdd)]=intUtil[_0x4b614c(0xb3)](_0x5a2942[_0x4b614c(0xdd)]);const _0xcb0400=_0x5a2942[_0x4b614c(0xd2)];_0x5b16c0[_0x4b614c(0xb9)]=_0x5a2942['username'],_0x5b16c0[_0x4b614c(0xc4)]=_0x3f584a[_0x4b614c(0xce)]()===_0x4b614c(0xcf)?_0x574e0e[_0x4b614c(0xaf)]:_0x574e0e[_0x4b614c(0x97)],_0x5b16c0[_0x4b614c(0x9d)]=_0x3f584a===_0x4b614c(0xb8)||_0x3f584a===_0x4b614c(0xd1)?'queue':'outbound';_0x42ce16&&(_0x5b16c0[_0x4b614c(0xbc)]=_0x42ce16[_0x4b614c(0xd3)]);const _0x5adf49=util[_0x4b614c(0xd9)](_0x4b614c(0x99),_0x5a2942['serverUrl'],_0x574e0e[_0x4b614c(0x98)],md5(_0x574e0e['uniqueid']));if(_0x331926&&_0x331926[_0x4b614c(0xa1)])logger[_0x4b614c(0xc6)](_0x4b614c(0x9e),_0x4b614c(0xbf)),_0x574e0e['recordingURL']=_0x5adf49;else _0x128fbc&&_0x128fbc['recordingFormat']&&_0x128fbc[_0x4b614c(0xac)]!=='none'?(logger[_0x4b614c(0xc6)](_0x4b614c(0x96),_0x4b614c(0xbf)),_0x574e0e[_0x4b614c(0xde)]=_0x5adf49):_0x574e0e[_0x4b614c(0xde)]='';return getAdminId(_0x5b16c0,_0x3f584a,_0x1cd2c5,_0xcb0400)[_0x4b614c(0xae)](getUser(_0x3f584a,_0x1cd2c5,_0xcb0400))[_0x4b614c(0xae)](getEndUser(_0x3f584a,_0x1cd2c5,_0xcb0400))[_0x4b614c(0xae)](getTicket(_0x3f584a,_0x1cd2c5,_0xcb0400,_0x14efd4,_0x574e0e))[_0x4b614c(0xae)](function(_0x3c950b){const _0x5802c1=_0x4b614c;logger[_0x5802c1(0xc6)](util[_0x5802c1(0xd9)]('The\x20ticket\x20ID\x20is:\x20%s',_0x3c950b[_0x5802c1(0xab)])),_0x3f584a!==_0x5802c1(0xd1)&&(logger[_0x5802c1(0xc6)]('['+[_0x3f584a[_0x5802c1(0xbe)]()]+']','Displaying\x20task\x20in\x20a\x20new\x20tab...'),emit(_0xcb0400,_0x42ce16[_0x5802c1(0xa8)],_0x3c950b[_0x5802c1(0xcc)]));})['catch'](function(_0x35485a){const _0x1e25af=_0x4b614c;logger[_0x1e25af(0xb5)]('['+[_0x3f584a[_0x1e25af(0xbe)]()]+_0x1e25af(0xc5),util[_0x1e25af(0xad)](_0x35485a,{'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 bea072b..1859c46 100644 --- a/server/services/ami/trigger/integration/index.js +++ b/server/services/ami/trigger/integration/index.js @@ -1 +1 @@ -const a1308_0x241d=['includes','desk','dynamics365','sugarcrm','./dynamics365','./sugarcrm','queue','zoho','format','./desk','[EXEC]','./servicenow','freshsales','data1','vtiger','%s\x20account\x20#%s\x20not\x20found','./freshdesk','error','routeId','data3','servicenow','../../../../config/logger','freshdesk','./zoho','salesforce','log','Configurations','util','./zendesk','find','%s\x20configuration\x20#%s\x20not\x20found','unmanaged','toLowerCase','unknown\x20integration','./salesforce','lodash','zendesk','exec'];(function(_0x45ce73,_0x42bb3e){const _0x241d88=function(_0x5b86bb){while(--_0x5b86bb){_0x45ce73['push'](_0x45ce73['shift']());}};_0x241d88(++_0x42bb3e);}(a1308_0x241d,0x120));const a1308_0x5b86=function(_0x45ce73,_0x42bb3e){_0x45ce73=_0x45ce73-0xdb;let _0x241d88=a1308_0x241d[_0x45ce73];return _0x241d88;};const a1308_0x3b9af0=a1308_0x5b86;'use strict';const _=require(a1308_0x3b9af0(0xe8)),util=require(a1308_0x3b9af0(0xe0)),zendesk=require(a1308_0x3b9af0(0xe1)),salesforce=require(a1308_0x3b9af0(0xe7)),sugarcrm=require(a1308_0x3b9af0(0xf0)),freshdesk=require(a1308_0x3b9af0(0xfb)),zoho=require(a1308_0x3b9af0(0xdc)),desk=require(a1308_0x3b9af0(0xf4)),vtiger=require('./vtiger'),servicenow=require(a1308_0x3b9af0(0xf6)),dynamics365=require(a1308_0x3b9af0(0xef)),freshsales=require('./freshsales'),integrations=[a1308_0x3b9af0(0xe9),a1308_0x3b9af0(0xdd),a1308_0x3b9af0(0xee),'freshdesk',a1308_0x3b9af0(0xf2),a1308_0x3b9af0(0xec),'vtiger',a1308_0x3b9af0(0xed),a1308_0x3b9af0(0xf7),a1308_0x3b9af0(0xff)];exports[a1308_0x3b9af0(0xea)]=function(_0x3cf3b1,_0x149e25,_0x1808bd,_0x5a5d90,_0x19f359,_0x1df0aa){const _0xc2e049=a1308_0x3b9af0;if(_0x1808bd){if(_[_0xc2e049(0xeb)](integrations,_0x3cf3b1[_0xc2e049(0xf8)]['toLowerCase']()))try{let _0x2d2370=null,_0x1de260='';const _0x2bbe11=_0x1808bd[_0x3cf3b1[_0xc2e049(0xf8)][_0xc2e049(0xe5)]()];if(_0x2bbe11){const _0x13a6b3=_0x2bbe11[_0x3cf3b1['data2']];if(_0x13a6b3){const _0x2dc774=_[_0xc2e049(0xe2)](_0x13a6b3[_0xc2e049(0xdf)],{'id':parseInt(_0x3cf3b1[_0xc2e049(0xfe)],0xa)});if(_0x2dc774){if(_0x5a5d90){if(_0x19f359&&_0x149e25['queue'])_0x1de260=_0xc2e049(0xf1);else _0x149e25[_0xc2e049(0xfd)]?_0x1de260='outbound':console[_0xc2e049(0xde)]('EVENT\x20UNKNOWN',_0x149e25);}else _0x1de260=_0xc2e049(0xe4);switch(_0x3cf3b1['data1'][_0xc2e049(0xe5)]()){case _0xc2e049(0xe9):zendesk[_0x1de260](_0x3cf3b1,_0x149e25,_0x2dc774,_0x5a5d90,_0x19f359,_0x13a6b3,_0x1df0aa);break;case _0xc2e049(0xdd):salesforce[_0x1de260](_0x3cf3b1,_0x149e25,_0x2dc774,_0x5a5d90,_0x19f359,_0x13a6b3,_0x1df0aa);break;case _0xc2e049(0xee):sugarcrm[_0x1de260](_0x3cf3b1,_0x149e25,_0x2dc774,_0x5a5d90,_0x19f359,_0x13a6b3,_0x1df0aa);break;case _0xc2e049(0xdb):freshdesk[_0x1de260](_0x3cf3b1,_0x149e25,_0x2dc774,_0x5a5d90,_0x19f359,_0x13a6b3,_0x1df0aa);break;case _0xc2e049(0xf2):zoho[_0x1de260](_0x3cf3b1,_0x149e25,_0x2dc774,_0x5a5d90,_0x19f359,_0x13a6b3,_0x1df0aa);break;case _0xc2e049(0xec):desk[_0x1de260](_0x3cf3b1,_0x149e25,_0x2dc774,_0x5a5d90,_0x19f359,_0x13a6b3,_0x1df0aa);break;case _0xc2e049(0xf9):vtiger[_0x1de260](_0x3cf3b1,_0x149e25,_0x2dc774,_0x5a5d90,_0x19f359,_0x13a6b3,_0x1df0aa);break;case _0xc2e049(0xf7):freshsales['cs'](_0x3cf3b1,_0x149e25,_0x2dc774,_0x5a5d90,_0x19f359,_0x13a6b3,_0x1df0aa,_0x1de260);break;case _0xc2e049(0xff):servicenow['cs'](_0x3cf3b1,_0x149e25,_0x2dc774,_0x5a5d90,_0x19f359,_0x13a6b3,_0x1df0aa,_0x1de260);break;case _0xc2e049(0xed):dynamics365['cs'](_0x3cf3b1,_0x149e25,_0x2dc774,_0x5a5d90,_0x19f359,_0x13a6b3,_0x1df0aa,_0x1de260);break;default:console[_0xc2e049(0xde)](_0xc2e049(0xe6));}}else _0x2d2370=require(_0xc2e049(0x100))(_0x3cf3b1['data1'][_0xc2e049(0xe5)]()),_0x2d2370[_0xc2e049(0xfc)](_0xc2e049(0xf5),util[_0xc2e049(0xf3)](_0xc2e049(0xe3),_0x3cf3b1[_0xc2e049(0xf8)][_0xc2e049(0xe5)](),_0x3cf3b1[_0xc2e049(0xfe)]));}else _0x2d2370=require('../../../../config/logger')(_0x3cf3b1[_0xc2e049(0xf8)][_0xc2e049(0xe5)]()),_0x2d2370[_0xc2e049(0xfc)](_0xc2e049(0xf5),util[_0xc2e049(0xf3)](_0xc2e049(0xfa),_0x3cf3b1['data1'][_0xc2e049(0xe5)](),_0x3cf3b1['data2']));}else{}}catch(_0x4f5a23){console[_0xc2e049(0xfc)](_0x4f5a23);}}}; \ No newline at end of file +const a1308_0x5148=['dynamics365','format','data3','outbound','find','data2','./zoho','toLowerCase','vtiger','./desk','log','./freshdesk','freshsales','includes','./dynamics365','zoho','%s\x20account\x20#%s\x20not\x20found','Configurations','desk','routeId','%s\x20configuration\x20#%s\x20not\x20found','unmanaged','salesforce','./freshsales','./salesforce','EVENT\x20UNKNOWN','servicenow','../../../../config/logger','[EXEC]','queue','freshdesk','unknown\x20integration','./servicenow','data1','zendesk','sugarcrm'];(function(_0x4133c,_0x46b934){const _0x51486a=function(_0x1666b2){while(--_0x1666b2){_0x4133c['push'](_0x4133c['shift']());}};_0x51486a(++_0x46b934);}(a1308_0x5148,0x195));const a1308_0x1666=function(_0x4133c,_0x46b934){_0x4133c=_0x4133c-0x157;let _0x51486a=a1308_0x5148[_0x4133c];return _0x51486a;};const a1308_0x1cc428=a1308_0x1666;'use strict';const _=require('lodash'),util=require('util'),zendesk=require('./zendesk'),salesforce=require(a1308_0x1cc428(0x166)),sugarcrm=require('./sugarcrm'),freshdesk=require(a1308_0x1cc428(0x159)),zoho=require(a1308_0x1cc428(0x178)),desk=require(a1308_0x1cc428(0x157)),vtiger=require('./vtiger'),servicenow=require(a1308_0x1cc428(0x16e)),dynamics365=require(a1308_0x1cc428(0x15c)),freshsales=require(a1308_0x1cc428(0x165)),integrations=['zendesk',a1308_0x1cc428(0x164),a1308_0x1cc428(0x171),a1308_0x1cc428(0x16c),a1308_0x1cc428(0x15d),a1308_0x1cc428(0x160),a1308_0x1cc428(0x17a),a1308_0x1cc428(0x172),a1308_0x1cc428(0x15a),'servicenow'];exports['exec']=function(_0x257408,_0xa8ac3a,_0x48b1f7,_0x14a8db,_0x3d79a2,_0x5ee15e){const _0x3b5e94=a1308_0x1cc428;if(_0x48b1f7){if(_[_0x3b5e94(0x15b)](integrations,_0x257408[_0x3b5e94(0x16f)][_0x3b5e94(0x179)]()))try{let _0x920e65=null,_0x277259='';const _0x4f73af=_0x48b1f7[_0x257408[_0x3b5e94(0x16f)][_0x3b5e94(0x179)]()];if(_0x4f73af){const _0x1b9de2=_0x4f73af[_0x257408['data2']];if(_0x1b9de2){const _0x2f0b81=_[_0x3b5e94(0x176)](_0x1b9de2[_0x3b5e94(0x15f)],{'id':parseInt(_0x257408[_0x3b5e94(0x174)],0xa)});if(_0x2f0b81){if(_0x14a8db){if(_0x3d79a2&&_0xa8ac3a[_0x3b5e94(0x16b)])_0x277259=_0x3b5e94(0x16b);else _0xa8ac3a[_0x3b5e94(0x161)]?_0x277259=_0x3b5e94(0x175):console['log'](_0x3b5e94(0x167),_0xa8ac3a);}else _0x277259=_0x3b5e94(0x163);switch(_0x257408[_0x3b5e94(0x16f)][_0x3b5e94(0x179)]()){case _0x3b5e94(0x170):zendesk[_0x277259](_0x257408,_0xa8ac3a,_0x2f0b81,_0x14a8db,_0x3d79a2,_0x1b9de2,_0x5ee15e);break;case _0x3b5e94(0x164):salesforce[_0x277259](_0x257408,_0xa8ac3a,_0x2f0b81,_0x14a8db,_0x3d79a2,_0x1b9de2,_0x5ee15e);break;case _0x3b5e94(0x171):sugarcrm[_0x277259](_0x257408,_0xa8ac3a,_0x2f0b81,_0x14a8db,_0x3d79a2,_0x1b9de2,_0x5ee15e);break;case _0x3b5e94(0x16c):freshdesk[_0x277259](_0x257408,_0xa8ac3a,_0x2f0b81,_0x14a8db,_0x3d79a2,_0x1b9de2,_0x5ee15e);break;case _0x3b5e94(0x15d):zoho[_0x277259](_0x257408,_0xa8ac3a,_0x2f0b81,_0x14a8db,_0x3d79a2,_0x1b9de2,_0x5ee15e);break;case _0x3b5e94(0x160):desk[_0x277259](_0x257408,_0xa8ac3a,_0x2f0b81,_0x14a8db,_0x3d79a2,_0x1b9de2,_0x5ee15e);break;case _0x3b5e94(0x17a):vtiger[_0x277259](_0x257408,_0xa8ac3a,_0x2f0b81,_0x14a8db,_0x3d79a2,_0x1b9de2,_0x5ee15e);break;case _0x3b5e94(0x15a):freshsales['cs'](_0x257408,_0xa8ac3a,_0x2f0b81,_0x14a8db,_0x3d79a2,_0x1b9de2,_0x5ee15e,_0x277259);break;case _0x3b5e94(0x168):servicenow['cs'](_0x257408,_0xa8ac3a,_0x2f0b81,_0x14a8db,_0x3d79a2,_0x1b9de2,_0x5ee15e,_0x277259);break;case _0x3b5e94(0x172):dynamics365['cs'](_0x257408,_0xa8ac3a,_0x2f0b81,_0x14a8db,_0x3d79a2,_0x1b9de2,_0x5ee15e,_0x277259);break;default:console[_0x3b5e94(0x158)](_0x3b5e94(0x16d));}}else _0x920e65=require(_0x3b5e94(0x169))(_0x257408[_0x3b5e94(0x16f)][_0x3b5e94(0x179)]()),_0x920e65['error'](_0x3b5e94(0x16a),util[_0x3b5e94(0x173)](_0x3b5e94(0x162),_0x257408[_0x3b5e94(0x16f)][_0x3b5e94(0x179)](),_0x257408[_0x3b5e94(0x174)]));}else _0x920e65=require(_0x3b5e94(0x169))(_0x257408[_0x3b5e94(0x16f)]['toLowerCase']()),_0x920e65['error'](_0x3b5e94(0x16a),util[_0x3b5e94(0x173)](_0x3b5e94(0x15e),_0x257408[_0x3b5e94(0x16f)]['toLowerCase'](),_0x257408[_0x3b5e94(0x177)]));}else{}}catch(_0x5633cb){console['error'](_0x5633cb);}}}; \ 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 4734cb2..c04e232 100644 --- a/server/services/ami/trigger/integration/salesforce.js +++ b/server/services/ami/trigger/integration/salesforce.js @@ -1 +1 @@ -const a1309_0x5a48=['Connection','concat','calleridnum','../../../../rediscache','resolve','salesforce','Email','lead','serverUrl','validateEmail','string','unmanaged','lastevent','Enduser\x20with\x20phone\x20%s\x20not\x20found.','securityToken','find',']\x20Integration\x20account\x20type\x20%s.','password','display_name','getString','outbound','emit','Agent\x20%s\x20found.','toString','Enduser\x20with\x20phone\x20%s.\x20Creating\x20method\x20used\x20%s.','Subjects','Variable','user_id','Task','toUpperCase','Fields','Connection\x20established.','identity','length','[OUTBOUND]','ticketType','[QUEUE]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.','Company','integrationTab','contact','error','Contact','contact_lead','Name','stringify','isNil','Descriptions','%s/%s/e','stripTrailingSlash','recordingURL','toLowerCase','type','Caller\x20-\x20%s','then','none','uniqueid','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','moduleCreate',']\x20Ticket\x20%s\x20created.','assign','https://login.salesforce.com','login','email','idField','[QUEUE]','lodash','Lead','moment','moduleSearch','destcalleridname','[OUTBOUND]\x20Ticket\x20%s\x20created.','utc','Enduser\x20with\x20phone\x20%s\x20found.','../../../../config/logger','Phone','Salesforce\x20account\x20type\x20not\x20recognized','instanceUrl','execute','Agent\x20%s\x20not\x20found.\x20Switch\x20to\x20the\x20admin\x20account.','format','clientId','variable','remoteUri','[OUTBOUND]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.','calleridname','ContactId','User','[QUEUE]\x20Ticket\x20%s\x20created','user:%s','trigger:browser:url','recordingFormat','username','create','Recording\x20is\x20enabled!','catch','content','info','forEach','name','sobject','queue','Case','variableName','newTab','upperFirst'];(function(_0xa37814,_0x287d60){const _0x5a480b=function(_0x449dfe){while(--_0x449dfe){_0xa37814['push'](_0xa37814['shift']());}};_0x5a480b(++_0x287d60);}(a1309_0x5a48,0xc6));const a1309_0x449d=function(_0xa37814,_0x287d60){_0xa37814=_0xa37814-0x1b5;let _0x5a480b=a1309_0x5a48[_0xa37814];return _0x5a480b;};const a1309_0x4635ee=a1309_0x449d;'use strict';const _=require(a1309_0x4635ee(0x202)),moment=require(a1309_0x4635ee(0x204)),md5=require('md5'),jsforce=require('jsforce'),util=require('util'),intUtil=require('./util'),logger=require(a1309_0x4635ee(0x20a))(a1309_0x4635ee(0x1c6)),{getSocket}=require(a1309_0x4635ee(0x1c4)),io=getSocket();function emit(_0x14900f,_0x1dd2b8,_0x3accaf){const _0x1dfdf7=a1309_0x4635ee;io['to'](_0x14900f)[_0x1dfdf7(0x1d6)](_0x1dd2b8,_0x3accaf);}function getTicket(_0x1ce162,_0x5eb102,_0x4bd5d5,_0xa7d8eb,_0x203a32,_0x59fb29,_0x28a91e){const _0x2ae948=a1309_0x4635ee;let _0x2e6921={};if(_0xa7d8eb[_0x2ae948(0x1e4)]===_0x2ae948(0x1dd))_0x2e6921=Object[_0x2ae948(0x1fc)]({},{'OwnerId':_0x5eb102['id'],'ActivityDate':moment[_0x2ae948(0x208)](),'IsReminderSet':![],'IsRecurrence':![],'Subject':intUtil['getString'](_0xa7d8eb[_0x2ae948(0x1da)],_0x203a32,'\x20'),'Description':intUtil[_0x2ae948(0x1d4)](_0xa7d8eb[_0x2ae948(0x1ef)],_0x203a32,'\x0a')},getCustomFields(_0x59fb29,_0x203a32)),_0x4bd5d5&&(_0x2e6921['WhoId']=_0x4bd5d5['id']);else _0xa7d8eb['ticketType']===_0x2ae948(0x1bd)&&(_0x2e6921=Object['assign']({},{'OwnerId':_0x5eb102['id'],'Subject':intUtil['getString'](_0xa7d8eb['Subjects'],_0x203a32,'\x20'),'Description':intUtil[_0x2ae948(0x1d4)](_0xa7d8eb[_0x2ae948(0x1ef)],_0x203a32,'\x0a')},getCustomFields(_0x59fb29,_0x203a32)),_0x4bd5d5&&(_0x2e6921[_0x2ae948(0x216)]=_0x4bd5d5['id']));return _0x28a91e[_0x2ae948(0x1bb)](_0xa7d8eb[_0x2ae948(0x1e4)])[_0x2ae948(0x21d)](_0x2e6921);}function getUser(_0x4ebf3c,_0xefc07c,_0x1af397){const _0xca7a2c=a1309_0x4635ee;if(!_['isNil'](_0xefc07c)&&intUtil[_0xca7a2c(0x1ca)](_0xefc07c)){const _0x297579={'Email':_0xefc07c},_0x2c8607={'Id':!![],'Username':!![],'Name':!![],'Email':!![]};return _0x1af397[_0xca7a2c(0x1bb)](_0xca7a2c(0x217))['find'](_0x297579,_0x2c8607)[_0xca7a2c(0x20e)]()[_0xca7a2c(0x1f6)](function(_0x52074f){const _0x3e9c2d=_0xca7a2c;if(_0x52074f['length']){const _0x447f12=_[_0x3e9c2d(0x1d0)](_0x52074f,function(_0x32cbbf){const _0x537708=_0x3e9c2d;return _0x32cbbf[_0x537708(0x1c7)]===_0xefc07c;});if(_0x447f12)return logger[_0x3e9c2d(0x1b8)](_0x3e9c2d(0x1d7),_0xefc07c),Promise['resolve']({'id':_0x447f12['Id'],'name':_0x447f12[_0x3e9c2d(0x1ec)]});}else return logger[_0x3e9c2d(0x1b8)](_0x3e9c2d(0x20f),_0xefc07c),_0x1af397[_0x3e9c2d(0x1e1)]()[_0x3e9c2d(0x1f6)](function(_0x11f13e){const _0x5466e0=_0x3e9c2d;return Promise['resolve']({'id':_0x11f13e[_0x5466e0(0x1dc)],'name':_0x11f13e[_0x5466e0(0x1d3)]});});});}else return logger[_0xca7a2c(0x1b8)](_0xca7a2c(0x20f),_0xefc07c),_0x1af397[_0xca7a2c(0x1e1)]()[_0xca7a2c(0x1f6)](function(_0x348701){const _0xee18ca=_0xca7a2c;return Promise[_0xee18ca(0x1c5)]({'id':_0x348701[_0xee18ca(0x1dc)],'name':_0x348701['display_name']});});}function getEndUser(_0x388f29,_0x19f143,_0xbfb15f,_0x2c5ccd,_0xb7b965){const _0xb1d3c0=a1309_0x4635ee,_0x4aaa1d={'Phone':_0x2c5ccd},_0x55a991={'Id':!![],'Name':!![],'Phone':!![]};return Promise[_0xb1d3c0(0x1c5)]()[_0xb1d3c0(0x1f6)](function(){const _0x41569f=_0xb1d3c0;if(_0x19f143[_0x41569f(0x1e4)]===_0x41569f(0x1dd)){logger[_0x41569f(0x1b8)]('Searching\x20enduser\x20with\x20phone\x20%s.\x20Serching\x20method\x20used\x20%s.',_0x2c5ccd,_0x19f143[_0x41569f(0x205)]);switch(_0x19f143[_0x41569f(0x205)]){case _0x41569f(0x1eb):return _0xb7b965[_0x41569f(0x1bb)](_0x41569f(0x1ea))[_0x41569f(0x1d0)](_0x4aaa1d,_0x55a991)[_0x41569f(0x20e)]()[_0x41569f(0x1f6)](function(_0x234641){const _0x181659=_0x41569f;return _0x234641&&_0x234641[_0x181659(0x1e2)]?_0x234641:_0xb7b965['sobject'](_0x181659(0x203))[_0x181659(0x1d0)](_0x4aaa1d,_0x55a991);});case _0x41569f(0x1e8):return _0xb7b965[_0x41569f(0x1bb)]('Contact')[_0x41569f(0x1d0)](_0x4aaa1d,_0x55a991)[_0x41569f(0x20e)]();case _0x41569f(0x1c8):return _0xb7b965[_0x41569f(0x1bb)](_0x41569f(0x203))['find'](_0x4aaa1d,_0x55a991);default:return null;}}else{if(_0x19f143[_0x41569f(0x1e4)]===_0x41569f(0x1bd))return logger['info']('Searching\x20enduser\x20with\x20phone\x20%s.\x20Serching\x20method\x20used\x20%s.',_0x2c5ccd,_0x41569f(0x1e8)),_0xb7b965[_0x41569f(0x1bb)](_0x41569f(0x1ea))['find'](_0x4aaa1d,_0x55a991)[_0x41569f(0x20e)]();}})[_0xb1d3c0(0x1f6)](function(_0x4ee715){const _0x4e5680=_0xb1d3c0;if(_0x4ee715&&_0x4ee715['length']){const _0x1cad53=_[_0x4e5680(0x1d0)](_0x4ee715,function(_0x28fc16){const _0x2f645c=_0x4e5680;return _0x28fc16[_0x2f645c(0x20b)]===_0x2c5ccd;});if(_0x1cad53)return Promise[_0x4e5680(0x1c5)]({'id':_0x1cad53['Id'],'name':_0x1cad53['Name'],'phone':_0x1cad53[_0x4e5680(0x20b)]});}})[_0xb1d3c0(0x1f6)](function(_0x579fa5){const _0x287236=_0xb1d3c0;if(_0x579fa5)return logger['info'](_0x287236(0x209),_0x2c5ccd),Promise[_0x287236(0x1c5)](_0x579fa5);else{logger[_0x287236(0x1b8)](_0x287236(0x1ce),_0x2c5ccd);const _0x2f6d21={'LastName':_0xbfb15f!==''?_0xbfb15f:util[_0x287236(0x210)](_0x287236(0x1f5),_0x2c5ccd),'Phone':_0x2c5ccd};if(_0x19f143[_0x287236(0x1fa)]){if(_0x19f143[_0x287236(0x1fa)]===_0x287236(0x1e8))logger['info'](_0x287236(0x1d9),_0x2c5ccd,_0x19f143[_0x287236(0x1fa)]);else{if(_0x19f143[_0x287236(0x1fa)]===_0x287236(0x1c8)&&_0x19f143['ticketType']===_0x287236(0x1dd))logger[_0x287236(0x1b8)]('Enduser\x20with\x20phone\x20%s.\x20Creating\x20method\x20used\x20%s.',_0x2c5ccd,_0x19f143[_0x287236(0x1fa)]),_0x2f6d21[_0x287236(0x1e6)]='No\x20Company';else return null;}}return _0xb7b965[_0x287236(0x1bb)](_[_0x287236(0x1c0)](_0x19f143[_0x287236(0x1fa)]))[_0x287236(0x21d)](_0x2f6d21);}});}function getCustomFields(_0x32485b,_0x386240){const _0x52a195=a1309_0x4635ee,_0x3cd7a8={};return _0x32485b['length']>0x0&&_[_0x52a195(0x1b9)](_0x32485b,function(_0x2a40a0){const _0x22386d=_0x52a195;if(_0x2a40a0[_0x22386d(0x1f4)]===_0x22386d(0x1cb)&&_0x2a40a0[_0x22386d(0x200)])_0x3cd7a8[_0x2a40a0['idField']]=_0x2a40a0[_0x22386d(0x1b7)][_0x22386d(0x1d8)]();else{if(_0x2a40a0['type']===_0x22386d(0x212)&&_0x2a40a0[_0x22386d(0x1be)]&&_0x2a40a0[_0x22386d(0x200)])_0x386240[_0x2a40a0[_0x22386d(0x1be)]]&&(_0x3cd7a8[_0x2a40a0[_0x22386d(0x200)]]=_0x386240[_0x2a40a0[_0x22386d(0x1be)]][_0x22386d(0x1d8)]());else _0x2a40a0[_0x22386d(0x1f4)]==='customVariable'&&_0x2a40a0[_0x22386d(0x1db)]&&_0x2a40a0[_0x22386d(0x1db)][_0x22386d(0x1ba)]&&_0x2a40a0[_0x22386d(0x200)]&&(_0x386240[_0x2a40a0[_0x22386d(0x1db)][_0x22386d(0x1ba)]['toLowerCase']()]&&(_0x3cd7a8[_0x2a40a0[_0x22386d(0x200)]]=_0x386240[_0x2a40a0[_0x22386d(0x1db)][_0x22386d(0x1ba)][_0x22386d(0x1f3)]()][_0x22386d(0x1d8)]()));}}),_0x3cd7a8;}function getConnection(_0x38cff2){const _0x599516=a1309_0x4635ee,_0x15ac42=_0x38cff2[_0x599516(0x1d2)][_0x599516(0x1c2)](_0x38cff2[_0x599516(0x1cf)]),_0x103648=new jsforce[(_0x599516(0x1c1))]({'oauth2':{'loginUrl':_0x38cff2['remoteUri']||_0x599516(0x1fd),'clientId':_0x38cff2[_0x599516(0x211)],'clientSecret':_0x38cff2['clientSecret']}});return _0x103648[_0x599516(0x1fe)](_0x38cff2[_0x599516(0x21c)],_0x15ac42)['then'](function(){const _0x3f7f88=_0x599516;return logger[_0x3f7f88(0x1b8)](_0x3f7f88(0x1e0)),_0x103648;});}exports[a1309_0x4635ee(0x1bc)]=function(_0x283aba,_0x5c168c,_0x244581,_0x38de97,_0x3ef4e1,_0x255e9d){const _0x2a8962=a1309_0x4635ee;let _0x4f9d50,_0x7addb1,_0x102d09,_0x4060fe;return _0x255e9d['serverUrl']=intUtil[_0x2a8962(0x1f1)](_0x255e9d[_0x2a8962(0x1c9)]),_0x255e9d[_0x2a8962(0x213)]=intUtil['stripTrailingSlash'](_0x255e9d['remoteUri']),_0x3ef4e1&&_0x3ef4e1['monitor_format']?(logger[_0x2a8962(0x1b8)](_0x2a8962(0x201),'Recording\x20is\x20enabled!'),_0x5c168c['recordingURL']=util[_0x2a8962(0x210)](_0x2a8962(0x1f9),_0x255e9d[_0x2a8962(0x1c9)],_0x5c168c[_0x2a8962(0x1f8)],md5(_0x5c168c[_0x2a8962(0x1f8)]))):_0x5c168c[_0x2a8962(0x1f2)]='',getConnection(_0x255e9d)[_0x2a8962(0x1f6)](function(_0x24851c){return _0x4060fe=_0x24851c,getUser(_0x255e9d,_0x38de97['email'],_0x4060fe);})['then'](function(_0x2341dc){const _0x319f2d=_0x2a8962;return _0x4f9d50=_0x2341dc,getEndUser(_0x255e9d,_0x244581,_0x5c168c['calleridname'],_0x5c168c[_0x319f2d(0x1c3)],_0x4060fe);})[_0x2a8962(0x1f6)](function(_0x1f5421){return _0x7addb1=_0x1f5421,getTicket(_0x255e9d,_0x4f9d50,_0x7addb1,_0x244581,_0x5c168c,_0x244581['Fields'],_0x4060fe,'queue');})[_0x2a8962(0x1f6)](function(_0x4ed058){const _0xb6afe=_0x2a8962;_0x102d09=_0x4ed058,logger[_0xb6afe(0x1b8)](_0xb6afe(0x218),_0x102d09['id']),logger['info'](_0xb6afe(0x1e5),_0x102d09['id'],_0x38de97[_0xb6afe(0x1ba)],_0x255e9d['type']);switch(_0x255e9d[_0xb6afe(0x1f4)]){case _0xb6afe(0x1e7):emit(util[_0xb6afe(0x210)](_0xb6afe(0x219),_0x38de97['name']),'trigger:salesforce:display',{'recordId':_0x102d09['id']});break;case _0xb6afe(0x1bf):emit(util[_0xb6afe(0x210)](_0xb6afe(0x219),_0x38de97[_0xb6afe(0x1ba)]),_0xb6afe(0x21a),{'uri':util[_0xb6afe(0x210)](_0xb6afe(0x1f0),_0x4060fe[_0xb6afe(0x20d)],_0x102d09['id'])});break;default:logger[_0xb6afe(0x1e9)]('[QUEUE]\x20Salesforce\x20account\x20type\x20not\x20recognized.');}})[_0x2a8962(0x1b6)](function(_0x20c94c){const _0x12b8e6=_0x2a8962;logger[_0x12b8e6(0x1e9)](_0x12b8e6(0x201),JSON[_0x12b8e6(0x1ed)](_0x20c94c));});},exports['outbound']=function(_0x275ac9,_0x682a8f,_0x3f9ff8,_0x3698d6,_0x45cb6f,_0x5b45b5,_0x4eeec9){const _0x4cdcc8=a1309_0x4635ee;let _0x4abf39,_0x4602c5,_0x3dd2ee,_0x167644;return _0x5b45b5[_0x4cdcc8(0x1c9)]=intUtil['stripTrailingSlash'](_0x5b45b5[_0x4cdcc8(0x1c9)]),_0x5b45b5['remoteUri']=intUtil['stripTrailingSlash'](_0x5b45b5[_0x4cdcc8(0x213)]),_0x4eeec9&&_0x4eeec9[_0x4cdcc8(0x21b)]&&_0x4eeec9[_0x4cdcc8(0x21b)]!==_0x4cdcc8(0x1f7)&&(logger[_0x4cdcc8(0x1b8)]('[OUTBOUND]',_0x4cdcc8(0x1b5)),_0x682a8f['recordingURL']=util[_0x4cdcc8(0x210)](_0x4cdcc8(0x1f9),_0x5b45b5[_0x4cdcc8(0x1c9)],_0x682a8f['uniqueid'],md5(_0x682a8f['uniqueid']))),getConnection(_0x5b45b5)[_0x4cdcc8(0x1f6)](function(_0x1001cb){const _0x3753c8=_0x4cdcc8;return _0x167644=_0x1001cb,getUser(_0x5b45b5,_0x3698d6[_0x3753c8(0x1ff)],_0x167644);})[_0x4cdcc8(0x1f6)](function(_0x5c0008){const _0x2b37a4=_0x4cdcc8;return _0x4abf39=_0x5c0008,getEndUser(_0x5b45b5,_0x3f9ff8,_0x682a8f[_0x2b37a4(0x206)],_0x682a8f['destcalleridnum'],_0x167644);})[_0x4cdcc8(0x1f6)](function(_0x56e01a){const _0x163b3b=_0x4cdcc8;return _0x4602c5=_0x56e01a,getTicket(_0x5b45b5,_0x4abf39,_0x4602c5,_0x3f9ff8,_0x682a8f,_0x3f9ff8[_0x163b3b(0x1df)],_0x167644,_0x163b3b(0x1d5));})['then'](function(_0x226b5f){const _0x5d585c=_0x4cdcc8;_0x3dd2ee=_0x226b5f,logger[_0x5d585c(0x1b8)](_0x5d585c(0x207),_0x3dd2ee['id']),logger[_0x5d585c(0x1b8)](_0x5d585c(0x214),_0x3dd2ee['id'],_0x3698d6[_0x5d585c(0x1ba)],_0x5b45b5[_0x5d585c(0x1f4)]);switch(_0x5b45b5[_0x5d585c(0x1f4)]){case _0x5d585c(0x1e7):emit(util[_0x5d585c(0x210)](_0x5d585c(0x219),_0x3698d6[_0x5d585c(0x1ba)]),'trigger:salesforce:display',{'recordId':_0x3dd2ee['id']});break;case _0x5d585c(0x1bf):emit(util[_0x5d585c(0x210)](_0x5d585c(0x219),_0x3698d6[_0x5d585c(0x1ba)]),'trigger:browser:url',{'uri':util['format'](_0x5d585c(0x1f0),_0x167644[_0x5d585c(0x20d)],_0x3dd2ee['id'])});break;default:logger[_0x5d585c(0x1e9)](_0x5d585c(0x1e3),_0x5d585c(0x20c));}})['catch'](function(_0xb84614){const _0x3ba9ca=_0x4cdcc8;logger[_0x3ba9ca(0x1e9)]('[OUTBOUND]',JSON[_0x3ba9ca(0x1ed)](_0xb84614));});},exports[a1309_0x4635ee(0x1cc)]=function(_0x569ea5,_0x18c464,_0x14b0a6,_0x406b67,_0xf222ed,_0x493d5a){const _0x1690e9=a1309_0x4635ee;let _0x18077a,_0x15367a,_0x43446f,_0x185a75;return _0x493d5a[_0x1690e9(0x1c9)]=intUtil[_0x1690e9(0x1f1)](_0x493d5a[_0x1690e9(0x1c9)]),_0x493d5a[_0x1690e9(0x213)]=intUtil[_0x1690e9(0x1f1)](_0x493d5a[_0x1690e9(0x213)]),_0xf222ed&&_0xf222ed['monitor_format']?(logger[_0x1690e9(0x1b8)]('['+_0x18c464[_0x1690e9(0x1cd)][_0x1690e9(0x1de)]()+']','Recording\x20is\x20enabled!'),_0x18c464['recordingURL']=util['format'](_0x1690e9(0x1f9),_0x493d5a['serverUrl'],_0x18c464[_0x1690e9(0x1f8)],md5(_0x18c464['uniqueid']))):_0x18c464['recordingURL']='',getConnection(_0x493d5a)[_0x1690e9(0x1f6)](function(_0x14b942){const _0x36816a=_0x1690e9;return _0x185a75=_0x14b942,!_[_0x36816a(0x1ee)](_0x406b67)?getUser(_0x493d5a,_0x406b67[_0x36816a(0x1ba)],_0x185a75):getUser(_0x493d5a,null,_0x185a75);})[_0x1690e9(0x1f6)](function(_0x2f6ade){const _0x5d843f=_0x1690e9;return _0x18077a=_0x2f6ade,getEndUser(_0x493d5a,_0x14b0a6,_0x18c464[_0x5d843f(0x215)],_0x18c464[_0x5d843f(0x1c3)],_0x185a75);})[_0x1690e9(0x1f6)](function(_0x5d1b3e){return _0x15367a=_0x5d1b3e,getTicket(_0x493d5a,_0x18077a,_0x15367a,_0x14b0a6,_0x18c464,_0x14b0a6['Fields'],_0x185a75);})['then'](function(_0x8e0e2a){const _0x2a0f23=_0x1690e9;_0x43446f=_0x8e0e2a,logger[_0x2a0f23(0x1b8)]('['+_0x18c464[_0x2a0f23(0x1cd)][_0x2a0f23(0x1de)]()+_0x2a0f23(0x1fb),_0x43446f['id']),logger[_0x2a0f23(0x1b8)]('['+_0x18c464['lastevent'][_0x2a0f23(0x1de)]()+_0x2a0f23(0x1d1),_0x493d5a['type']);})[_0x1690e9(0x1b6)](function(_0x97a732){const _0x56b525=_0x1690e9;logger[_0x56b525(0x1e9)]('['+_0x18c464[_0x56b525(0x1cd)][_0x56b525(0x1de)]()+']',JSON[_0x56b525(0x1ed)](_0x97a732));});}; \ No newline at end of file +const a1309_0x4e2d=['utc','securityToken','[QUEUE]\x20Salesforce\x20account\x20type\x20not\x20recognized.','create',']\x20Integration\x20account\x20type\x20%s.','Case','getString','format','Enduser\x20with\x20phone\x20%s\x20found.','type','stripTrailingSlash','Connection\x20established.','resolve','info','outbound','string','lastevent','execute','clientSecret','Enduser\x20with\x20phone\x20%s.\x20Creating\x20method\x20used\x20%s.','[OUTBOUND]','[OUTBOUND]\x20Ticket\x20%s\x20created.','user:%s','Subjects','password','emit','Task','toString','instanceUrl','calleridnum','length','sobject','moment','unmanaged','Enduser\x20with\x20phone\x20%s\x20not\x20found.','./util','identity','User','https://login.salesforce.com','WhoId','idField','trigger:salesforce:display','none','error','upperFirst','queue','Contact','Fields','md5','content','Company','Salesforce\x20account\x20type\x20not\x20recognized','Recording\x20is\x20enabled!','isNil','variableName','%s/%s/e','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','ticketType','moduleSearch','monitor_format','Descriptions','[QUEUE]','username','Connection','','[QUEUE]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.','contact_lead','integrationTab','jsforce','moduleCreate','Searching\x20enduser\x20with\x20phone\x20%s.\x20Serching\x20method\x20used\x20%s.','Caller\x20-\x20%s','lodash','clientId','login','name','user_id','Agent\x20%s\x20found.','Phone','Email','variable','then','recordingURL','Lead','Agent\x20%s\x20not\x20found.\x20Switch\x20to\x20the\x20admin\x20account.','calleridname','lead','serverUrl','contact','toUpperCase','assign','Variable',']\x20Ticket\x20%s\x20created.','catch','trigger:browser:url','recordingFormat','uniqueid','destcalleridnum','util','[OUTBOUND]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.','display_name','newTab','find','stringify','toLowerCase','remoteUri'];(function(_0x35acda,_0x4c745e){const _0x4e2dac=function(_0x2fd8ed){while(--_0x2fd8ed){_0x35acda['push'](_0x35acda['shift']());}};_0x4e2dac(++_0x4c745e);}(a1309_0x4e2d,0x180));const a1309_0x2fd8=function(_0x35acda,_0x4c745e){_0x35acda=_0x35acda-0x15b;let _0x4e2dac=a1309_0x4e2d[_0x35acda];return _0x4e2dac;};const a1309_0x16ec26=a1309_0x2fd8;'use strict';const _=require(a1309_0x16ec26(0x161)),moment=require(a1309_0x16ec26(0x1a3)),md5=require(a1309_0x16ec26(0x1b3)),jsforce=require(a1309_0x16ec26(0x15d)),util=require(a1309_0x16ec26(0x17b)),intUtil=require(a1309_0x16ec26(0x1a6)),logger=require('../../../../config/logger')('salesforce'),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x16fffd,_0x1e8854,_0x5904ca){const _0x48fed6=a1309_0x16ec26;io['to'](_0x16fffd)[_0x48fed6(0x19c)](_0x1e8854,_0x5904ca);}function getTicket(_0x51355b,_0x2fb67b,_0xccea4,_0x34e3cb,_0x174ebd,_0x1e72e8,_0x575568){const _0x3721f6=a1309_0x16ec26;let _0x3ae622={};if(_0x34e3cb[_0x3721f6(0x1bc)]===_0x3721f6(0x19d))_0x3ae622=Object[_0x3721f6(0x173)]({},{'OwnerId':_0x2fb67b['id'],'ActivityDate':moment[_0x3721f6(0x183)](),'IsReminderSet':![],'IsRecurrence':![],'Subject':intUtil[_0x3721f6(0x189)](_0x34e3cb['Subjects'],_0x174ebd,'\x20'),'Description':intUtil[_0x3721f6(0x189)](_0x34e3cb[_0x3721f6(0x1bf)],_0x174ebd,'\x0a')},getCustomFields(_0x1e72e8,_0x174ebd)),_0xccea4&&(_0x3ae622[_0x3721f6(0x1aa)]=_0xccea4['id']);else _0x34e3cb[_0x3721f6(0x1bc)]===_0x3721f6(0x188)&&(_0x3ae622=Object[_0x3721f6(0x173)]({},{'OwnerId':_0x2fb67b['id'],'Subject':intUtil[_0x3721f6(0x189)](_0x34e3cb[_0x3721f6(0x19a)],_0x174ebd,'\x20'),'Description':intUtil[_0x3721f6(0x189)](_0x34e3cb[_0x3721f6(0x1bf)],_0x174ebd,'\x0a')},getCustomFields(_0x1e72e8,_0x174ebd)),_0xccea4&&(_0x3ae622['ContactId']=_0xccea4['id']));return _0x575568[_0x3721f6(0x1a2)](_0x34e3cb[_0x3721f6(0x1bc)])['create'](_0x3ae622);}function getUser(_0x6421eb,_0x4b1a6f,_0x20735c){const _0x53df86=a1309_0x16ec26;if(!_[_0x53df86(0x1b8)](_0x4b1a6f)&&intUtil['validateEmail'](_0x4b1a6f)){const _0x43be04={'Email':_0x4b1a6f},_0x5d1639={'Id':!![],'Username':!![],'Name':!![],'Email':!![]};return _0x20735c['sobject'](_0x53df86(0x1a8))['find'](_0x43be04,_0x5d1639)[_0x53df86(0x194)]()[_0x53df86(0x16a)](function(_0x20242e){const _0x5a4a04=_0x53df86;if(_0x20242e[_0x5a4a04(0x1a1)]){const _0x2d4f24=_[_0x5a4a04(0x17f)](_0x20242e,function(_0x6e733f){const _0x343d86=_0x5a4a04;return _0x6e733f[_0x343d86(0x168)]===_0x4b1a6f;});if(_0x2d4f24)return logger[_0x5a4a04(0x190)](_0x5a4a04(0x166),_0x4b1a6f),Promise[_0x5a4a04(0x18f)]({'id':_0x2d4f24['Id'],'name':_0x2d4f24['Name']});}else return logger[_0x5a4a04(0x190)](_0x5a4a04(0x16d),_0x4b1a6f),_0x20735c['identity']()[_0x5a4a04(0x16a)](function(_0x2c56e5){const _0x39d617=_0x5a4a04;return Promise[_0x39d617(0x18f)]({'id':_0x2c56e5['user_id'],'name':_0x2c56e5['display_name']});});});}else return logger[_0x53df86(0x190)](_0x53df86(0x16d),_0x4b1a6f),_0x20735c[_0x53df86(0x1a7)]()[_0x53df86(0x16a)](function(_0x1ff32b){const _0x342bd7=_0x53df86;return Promise[_0x342bd7(0x18f)]({'id':_0x1ff32b[_0x342bd7(0x165)],'name':_0x1ff32b[_0x342bd7(0x17d)]});});}function getEndUser(_0x55d0a0,_0x3c8fc8,_0x46e571,_0x3326c2,_0x9f6f15){const _0x290d8e=a1309_0x16ec26,_0x282cca={'Phone':_0x3326c2},_0x1bd1b6={'Id':!![],'Name':!![],'Phone':!![]};return Promise[_0x290d8e(0x18f)]()[_0x290d8e(0x16a)](function(){const _0x4cfe8b=_0x290d8e;if(_0x3c8fc8[_0x4cfe8b(0x1bc)]==='Task'){logger['info'](_0x4cfe8b(0x15f),_0x3326c2,_0x3c8fc8[_0x4cfe8b(0x1bd)]);switch(_0x3c8fc8[_0x4cfe8b(0x1bd)]){case _0x4cfe8b(0x15b):return _0x9f6f15[_0x4cfe8b(0x1a2)]('Contact')[_0x4cfe8b(0x17f)](_0x282cca,_0x1bd1b6)['execute']()['then'](function(_0x5eaa79){const _0x3234d2=_0x4cfe8b;return _0x5eaa79&&_0x5eaa79[_0x3234d2(0x1a1)]?_0x5eaa79:_0x9f6f15['sobject'](_0x3234d2(0x16c))[_0x3234d2(0x17f)](_0x282cca,_0x1bd1b6);});case _0x4cfe8b(0x171):return _0x9f6f15[_0x4cfe8b(0x1a2)]('Contact')[_0x4cfe8b(0x17f)](_0x282cca,_0x1bd1b6)[_0x4cfe8b(0x194)]();case _0x4cfe8b(0x16f):return _0x9f6f15[_0x4cfe8b(0x1a2)](_0x4cfe8b(0x16c))[_0x4cfe8b(0x17f)](_0x282cca,_0x1bd1b6);default:return null;}}else{if(_0x3c8fc8[_0x4cfe8b(0x1bc)]==='Case')return logger[_0x4cfe8b(0x190)]('Searching\x20enduser\x20with\x20phone\x20%s.\x20Serching\x20method\x20used\x20%s.',_0x3326c2,_0x4cfe8b(0x171)),_0x9f6f15[_0x4cfe8b(0x1a2)](_0x4cfe8b(0x1b1))[_0x4cfe8b(0x17f)](_0x282cca,_0x1bd1b6)['execute']();}})[_0x290d8e(0x16a)](function(_0x11308a){const _0x4a5c65=_0x290d8e;if(_0x11308a&&_0x11308a[_0x4a5c65(0x1a1)]){const _0x564000=_['find'](_0x11308a,function(_0x15a250){const _0x54847b=_0x4a5c65;return _0x15a250[_0x54847b(0x167)]===_0x3326c2;});if(_0x564000)return Promise[_0x4a5c65(0x18f)]({'id':_0x564000['Id'],'name':_0x564000['Name'],'phone':_0x564000[_0x4a5c65(0x167)]});}})[_0x290d8e(0x16a)](function(_0x22b65b){const _0x241a9c=_0x290d8e;if(_0x22b65b)return logger[_0x241a9c(0x190)](_0x241a9c(0x18b),_0x3326c2),Promise[_0x241a9c(0x18f)](_0x22b65b);else{logger[_0x241a9c(0x190)](_0x241a9c(0x1a5),_0x3326c2);const _0x5e4d28={'LastName':_0x46e571!==_0x241a9c(0x1c3)?_0x46e571:util[_0x241a9c(0x18a)](_0x241a9c(0x160),_0x3326c2),'Phone':_0x3326c2};if(_0x3c8fc8[_0x241a9c(0x15e)]){if(_0x3c8fc8[_0x241a9c(0x15e)]===_0x241a9c(0x171))logger[_0x241a9c(0x190)](_0x241a9c(0x196),_0x3326c2,_0x3c8fc8[_0x241a9c(0x15e)]);else{if(_0x3c8fc8['moduleCreate']===_0x241a9c(0x16f)&&_0x3c8fc8[_0x241a9c(0x1bc)]===_0x241a9c(0x19d))logger['info']('Enduser\x20with\x20phone\x20%s.\x20Creating\x20method\x20used\x20%s.',_0x3326c2,_0x3c8fc8[_0x241a9c(0x15e)]),_0x5e4d28[_0x241a9c(0x1b5)]='No\x20Company';else return null;}}return _0x9f6f15['sobject'](_[_0x241a9c(0x1af)](_0x3c8fc8[_0x241a9c(0x15e)]))[_0x241a9c(0x186)](_0x5e4d28);}});}function getCustomFields(_0x17f275,_0x37a80f){const _0x24d0ff={};return _0x17f275['length']>0x0&&_['forEach'](_0x17f275,function(_0x208056){const _0x22b492=a1309_0x2fd8;if(_0x208056[_0x22b492(0x18c)]===_0x22b492(0x192)&&_0x208056[_0x22b492(0x1ab)])_0x24d0ff[_0x208056['idField']]=_0x208056[_0x22b492(0x1b4)][_0x22b492(0x19e)]();else{if(_0x208056[_0x22b492(0x18c)]===_0x22b492(0x169)&&_0x208056['variableName']&&_0x208056[_0x22b492(0x1ab)])_0x37a80f[_0x208056[_0x22b492(0x1b9)]]&&(_0x24d0ff[_0x208056['idField']]=_0x37a80f[_0x208056['variableName']][_0x22b492(0x19e)]());else _0x208056[_0x22b492(0x18c)]==='customVariable'&&_0x208056[_0x22b492(0x174)]&&_0x208056['Variable'][_0x22b492(0x164)]&&_0x208056[_0x22b492(0x1ab)]&&(_0x37a80f[_0x208056['Variable'][_0x22b492(0x164)]['toLowerCase']()]&&(_0x24d0ff[_0x208056['idField']]=_0x37a80f[_0x208056[_0x22b492(0x174)][_0x22b492(0x164)][_0x22b492(0x181)]()][_0x22b492(0x19e)]()));}}),_0x24d0ff;}function getConnection(_0x1b92b7){const _0x1a4f7d=a1309_0x16ec26,_0x984b27=_0x1b92b7[_0x1a4f7d(0x19b)]['concat'](_0x1b92b7[_0x1a4f7d(0x184)]),_0x29bdb3=new jsforce[(_0x1a4f7d(0x1c2))]({'oauth2':{'loginUrl':_0x1b92b7[_0x1a4f7d(0x182)]||_0x1a4f7d(0x1a9),'clientId':_0x1b92b7[_0x1a4f7d(0x162)],'clientSecret':_0x1b92b7[_0x1a4f7d(0x195)]}});return _0x29bdb3[_0x1a4f7d(0x163)](_0x1b92b7[_0x1a4f7d(0x1c1)],_0x984b27)[_0x1a4f7d(0x16a)](function(){const _0xc147d0=_0x1a4f7d;return logger[_0xc147d0(0x190)](_0xc147d0(0x18e)),_0x29bdb3;});}exports['queue']=function(_0x5afe70,_0x422318,_0x9cfcae,_0x26e2cd,_0x14efbd,_0x99b653){const _0x2a517e=a1309_0x16ec26;let _0xe1b804,_0x55ab48,_0x3f27b8,_0x51417;return _0x99b653[_0x2a517e(0x170)]=intUtil[_0x2a517e(0x18d)](_0x99b653[_0x2a517e(0x170)]),_0x99b653['remoteUri']=intUtil['stripTrailingSlash'](_0x99b653[_0x2a517e(0x182)]),_0x14efbd&&_0x14efbd[_0x2a517e(0x1be)]?(logger[_0x2a517e(0x190)](_0x2a517e(0x1c0),_0x2a517e(0x1b7)),_0x422318[_0x2a517e(0x16b)]=util['format']('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x99b653[_0x2a517e(0x170)],_0x422318[_0x2a517e(0x179)],md5(_0x422318[_0x2a517e(0x179)]))):_0x422318[_0x2a517e(0x16b)]='',getConnection(_0x99b653)['then'](function(_0x1df205){return _0x51417=_0x1df205,getUser(_0x99b653,_0x26e2cd['email'],_0x51417);})[_0x2a517e(0x16a)](function(_0x298292){const _0x4ac1c0=_0x2a517e;return _0xe1b804=_0x298292,getEndUser(_0x99b653,_0x9cfcae,_0x422318[_0x4ac1c0(0x16e)],_0x422318[_0x4ac1c0(0x1a0)],_0x51417);})[_0x2a517e(0x16a)](function(_0x5d755c){const _0x1e724b=_0x2a517e;return _0x55ab48=_0x5d755c,getTicket(_0x99b653,_0xe1b804,_0x55ab48,_0x9cfcae,_0x422318,_0x9cfcae[_0x1e724b(0x1b2)],_0x51417,_0x1e724b(0x1b0));})[_0x2a517e(0x16a)](function(_0x43cc1f){const _0x3dc136=_0x2a517e;_0x3f27b8=_0x43cc1f,logger[_0x3dc136(0x190)]('[QUEUE]\x20Ticket\x20%s\x20created',_0x3f27b8['id']),logger[_0x3dc136(0x190)](_0x3dc136(0x1c4),_0x3f27b8['id'],_0x26e2cd[_0x3dc136(0x164)],_0x99b653[_0x3dc136(0x18c)]);switch(_0x99b653[_0x3dc136(0x18c)]){case _0x3dc136(0x15c):emit(util[_0x3dc136(0x18a)]('user:%s',_0x26e2cd[_0x3dc136(0x164)]),_0x3dc136(0x1ac),{'recordId':_0x3f27b8['id']});break;case _0x3dc136(0x17e):emit(util[_0x3dc136(0x18a)](_0x3dc136(0x199),_0x26e2cd[_0x3dc136(0x164)]),_0x3dc136(0x177),{'uri':util['format'](_0x3dc136(0x1ba),_0x51417[_0x3dc136(0x19f)],_0x3f27b8['id'])});break;default:logger[_0x3dc136(0x1ae)](_0x3dc136(0x185));}})['catch'](function(_0x286bf6){const _0x28a133=_0x2a517e;logger['error'](_0x28a133(0x1c0),JSON['stringify'](_0x286bf6));});},exports[a1309_0x16ec26(0x191)]=function(_0x209c44,_0x1a9ff7,_0x42c7c2,_0x2b39e8,_0x475abb,_0x3b9ef2,_0x2c51de){const _0x36386f=a1309_0x16ec26;let _0x39d297,_0x112ec0,_0x46490a,_0x18ac44;return _0x3b9ef2['serverUrl']=intUtil[_0x36386f(0x18d)](_0x3b9ef2[_0x36386f(0x170)]),_0x3b9ef2[_0x36386f(0x182)]=intUtil[_0x36386f(0x18d)](_0x3b9ef2[_0x36386f(0x182)]),_0x2c51de&&_0x2c51de[_0x36386f(0x178)]&&_0x2c51de[_0x36386f(0x178)]!==_0x36386f(0x1ad)&&(logger[_0x36386f(0x190)](_0x36386f(0x197),'Recording\x20is\x20enabled!'),_0x1a9ff7['recordingURL']=util[_0x36386f(0x18a)](_0x36386f(0x1bb),_0x3b9ef2['serverUrl'],_0x1a9ff7['uniqueid'],md5(_0x1a9ff7[_0x36386f(0x179)]))),getConnection(_0x3b9ef2)['then'](function(_0x2fb62d){return _0x18ac44=_0x2fb62d,getUser(_0x3b9ef2,_0x2b39e8['email'],_0x18ac44);})[_0x36386f(0x16a)](function(_0x4ac904){const _0x3f4801=_0x36386f;return _0x39d297=_0x4ac904,getEndUser(_0x3b9ef2,_0x42c7c2,_0x1a9ff7['destcalleridname'],_0x1a9ff7[_0x3f4801(0x17a)],_0x18ac44);})[_0x36386f(0x16a)](function(_0x3ea9ad){const _0xf26f00=_0x36386f;return _0x112ec0=_0x3ea9ad,getTicket(_0x3b9ef2,_0x39d297,_0x112ec0,_0x42c7c2,_0x1a9ff7,_0x42c7c2[_0xf26f00(0x1b2)],_0x18ac44,_0xf26f00(0x191));})[_0x36386f(0x16a)](function(_0x4fd32f){const _0x22451a=_0x36386f;_0x46490a=_0x4fd32f,logger['info'](_0x22451a(0x198),_0x46490a['id']),logger[_0x22451a(0x190)](_0x22451a(0x17c),_0x46490a['id'],_0x2b39e8[_0x22451a(0x164)],_0x3b9ef2['type']);switch(_0x3b9ef2['type']){case _0x22451a(0x15c):emit(util[_0x22451a(0x18a)]('user:%s',_0x2b39e8['name']),_0x22451a(0x1ac),{'recordId':_0x46490a['id']});break;case _0x22451a(0x17e):emit(util[_0x22451a(0x18a)](_0x22451a(0x199),_0x2b39e8[_0x22451a(0x164)]),'trigger:browser:url',{'uri':util[_0x22451a(0x18a)]('%s/%s/e',_0x18ac44[_0x22451a(0x19f)],_0x46490a['id'])});break;default:logger[_0x22451a(0x1ae)]('[OUTBOUND]',_0x22451a(0x1b6));}})[_0x36386f(0x176)](function(_0x1a4642){const _0x1327e0=_0x36386f;logger['error']('[OUTBOUND]',JSON[_0x1327e0(0x180)](_0x1a4642));});},exports[a1309_0x16ec26(0x1a4)]=function(_0x2e16c2,_0x5f19a7,_0x2fba56,_0x150b38,_0x255403,_0x4b1646){const _0x26c4fe=a1309_0x16ec26;let _0x13cbdd,_0x7a285a,_0x5d2fcc,_0x4f15eb;return _0x4b1646[_0x26c4fe(0x170)]=intUtil[_0x26c4fe(0x18d)](_0x4b1646[_0x26c4fe(0x170)]),_0x4b1646[_0x26c4fe(0x182)]=intUtil[_0x26c4fe(0x18d)](_0x4b1646['remoteUri']),_0x255403&&_0x255403[_0x26c4fe(0x1be)]?(logger[_0x26c4fe(0x190)]('['+_0x5f19a7[_0x26c4fe(0x193)]['toUpperCase']()+']','Recording\x20is\x20enabled!'),_0x5f19a7['recordingURL']=util[_0x26c4fe(0x18a)](_0x26c4fe(0x1bb),_0x4b1646[_0x26c4fe(0x170)],_0x5f19a7[_0x26c4fe(0x179)],md5(_0x5f19a7['uniqueid']))):_0x5f19a7[_0x26c4fe(0x16b)]='',getConnection(_0x4b1646)[_0x26c4fe(0x16a)](function(_0x51993d){const _0x1f050c=_0x26c4fe;return _0x4f15eb=_0x51993d,!_[_0x1f050c(0x1b8)](_0x150b38)?getUser(_0x4b1646,_0x150b38[_0x1f050c(0x164)],_0x4f15eb):getUser(_0x4b1646,null,_0x4f15eb);})[_0x26c4fe(0x16a)](function(_0x3b4f5e){const _0x53a3af=_0x26c4fe;return _0x13cbdd=_0x3b4f5e,getEndUser(_0x4b1646,_0x2fba56,_0x5f19a7[_0x53a3af(0x16e)],_0x5f19a7[_0x53a3af(0x1a0)],_0x4f15eb);})[_0x26c4fe(0x16a)](function(_0x39c7a0){const _0x12ca9c=_0x26c4fe;return _0x7a285a=_0x39c7a0,getTicket(_0x4b1646,_0x13cbdd,_0x7a285a,_0x2fba56,_0x5f19a7,_0x2fba56[_0x12ca9c(0x1b2)],_0x4f15eb);})[_0x26c4fe(0x16a)](function(_0x58aef1){const _0x307b38=_0x26c4fe;_0x5d2fcc=_0x58aef1,logger[_0x307b38(0x190)]('['+_0x5f19a7[_0x307b38(0x193)][_0x307b38(0x172)]()+_0x307b38(0x175),_0x5d2fcc['id']),logger[_0x307b38(0x190)]('['+_0x5f19a7['lastevent'][_0x307b38(0x172)]()+_0x307b38(0x187),_0x4b1646[_0x307b38(0x18c)]);})['catch'](function(_0x1af0bc){const _0xc71c4=_0x26c4fe;logger[_0xc71c4(0x1ae)]('['+_0x5f19a7['lastevent'][_0xc71c4(0x172)]()+']',JSON['stringify'](_0x1af0bc));});}; \ 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 48583b8..9638375 100644 --- a/server/services/ami/trigger/integration/servicenow.js +++ b/server/services/ami/trigger/integration/servicenow.js @@ -1 +1 @@ -const a1310_0x2568=['endUserNumber','],\x20getUser\x20rp\x20obj','endUserId','../../../../rediscache','../../../../config/logger','servicenow','ticketNumber','GET','],\x20getAdminUser\x20crm','format','sys_id','[OUTBOUND]','then','userEmail','],\x20createEndUser\x20crm','email','nameField','username','true','util','validateEmail','info','recordingURL','sysparm_display_value=true','Subjects','type','Descriptions','The\x20ticket\x20ID\x20is:\x20%s','number','request-promise-native',']\x20Error\x20running\x20ServiceNow\x20integration','message','unmanaged','incident','adminEmail','catch',']\x20using\x20admin\x20profile','trigger:browser:url','calleridnum','variableName','stripTrailingSlash','sys_user?','active','Variable','customField','getString','forEach','adminId','length','%26sysparm_record_target%3Dincident','assign','sys_user?sysparm_query=user_name%3Dadmin','user:%s','result','sysparm_limit=1','md5','%26sysparm_record_list%3Dactive%253Dtrue','content','],\x20getUser\x20crm','customVariable','toString','variable','Recording\x20is\x20enabled!','monitor_format','isNil','toUpperCase','%255EORDERBYDESCnumber','inspect',']\x20getTicket\x20crm','queue','serverUrl','recordingFormat','uniqueid','./util','System','],\x20createEndUser\x20input\x20crm','string','],\x20getUser\x20entity','ticketId','error',']\x20POST\x20incident\x20entity\x20schema','sys_user?sysparm_query=email%3D','toLowerCase','userId','Fields','password','idField','outbound','POST','Displaying\x20call\x20in\x20a\x20new\x20tab...','name','%s/api/now/table/','emit','remoteUri','%26sysparm_record_row%3D1%26sysparm_record_rows%3D39'];(function(_0x5a4963,_0xdac837){const _0x2568b7=function(_0x27a8c7){while(--_0x27a8c7){_0x5a4963['push'](_0x5a4963['shift']());}};_0x2568b7(++_0xdac837);}(a1310_0x2568,0x14a));const a1310_0x27a8=function(_0x5a4963,_0xdac837){_0x5a4963=_0x5a4963-0xda;let _0x2568b7=a1310_0x2568[_0x5a4963];return _0x2568b7;};const a1310_0x255386=a1310_0x27a8;'use strict';const _=require('lodash'),rp=require(a1310_0x255386(0x129)),util=require(a1310_0x255386(0x11f)),md5=require(a1310_0x255386(0xe4)),intUtil=require(a1310_0x255386(0xf6)),logger=require(a1310_0x255386(0x110))(a1310_0x255386(0x111)),{getSocket}=require(a1310_0x255386(0x10f)),io=getSocket();function getAdminUser(_0xd559b0,_0x5121b1,_0x13234b,_0x2c693b,_0xe69bed,_0x2dad0a){return new Promise(function(_0x58bf11,_0x1e0f20){const _0x40b8bf=a1310_0x27a8,_0x315bd3={'method':_0x40b8bf(0x113),'uri':_0x2c693b+_0x40b8bf(0xe0)+'&'+_0xe69bed+'&'+_0x2dad0a,'auth':_0x5121b1,'json':!![]};return rp(_0x315bd3)[_0x40b8bf(0x118)](function(_0x477201){const _0x45692e=_0x40b8bf;_0x477201[_0x45692e(0xe2)][_0x45692e(0xdd)]>0x0&&(_0x13234b[_0x45692e(0xdc)]=_0x477201[_0x45692e(0xe2)][0x0][_0x45692e(0x116)]),logger[_0x45692e(0x121)]('['+[_0xd559b0[_0x45692e(0xee)]()]+_0x45692e(0x114),_0x13234b),_0x58bf11(_0x13234b);})[_0x40b8bf(0x12f)](function(_0x3a7931){const _0x257d0c=_0x40b8bf;logger[_0x257d0c(0xfc)]('['+[_0xd559b0[_0x257d0c(0xee)]()]+']',_0x3a7931[_0x257d0c(0x12b)]),_0x1e0f20(_0x3a7931[_0x257d0c(0x12b)]);});});}function getUser(_0xc6bf6,_0x249a11,_0x574bdf,_0x1589d6,_0x4e6ad2){return function(_0x3e3f17){const _0x16eb65=a1310_0x27a8;return logger[_0x16eb65(0x121)]('['+[_0xc6bf6['toUpperCase']()]+'],\x20getUser\x20input\x20crm',_0x3e3f17),new Promise(function(_0x44987e,_0x23c9f9){const _0x4784b7=_0x16eb65;if(intUtil[_0x4784b7(0x120)](_0x3e3f17[_0x4784b7(0x119)])){const _0x555182={'method':_0x4784b7(0x113),'uri':_0x574bdf+_0x4784b7(0xfe)+_0x3e3f17['userEmail']+'&'+_0x1589d6+'&'+_0x4e6ad2,'auth':_0x249a11,'json':!![]};return logger[_0x4784b7(0x121)]('['+[_0xc6bf6[_0x4784b7(0xee)]()]+_0x4784b7(0x10d),_0x555182),rp(_0x555182)[_0x4784b7(0x118)](function(_0x28648f){const _0x535dd5=_0x4784b7;logger[_0x535dd5(0x121)]('['+[_0xc6bf6[_0x535dd5(0xee)]()]+_0x535dd5(0xfa),_0x28648f),_0x28648f[_0x535dd5(0xe2)][_0x535dd5(0xdd)]>0x0&&String(_0x28648f[_0x535dd5(0xe2)][0x0][_0x535dd5(0x136)])===_0x535dd5(0x11e)?_0x3e3f17[_0x535dd5(0x100)]=_0x28648f[_0x535dd5(0xe2)][0x0][_0x535dd5(0x116)]:(_0x3e3f17['userId']=_0x3e3f17['adminId'],_0x3e3f17[_0x535dd5(0x119)]=_0x3e3f17[_0x535dd5(0x12e)]),logger[_0x535dd5(0x121)]('['+[_0xc6bf6[_0x535dd5(0xee)]()]+_0x535dd5(0xe7),_0x3e3f17),_0x44987e(_0x3e3f17);})[_0x4784b7(0x12f)](function(_0x5d86fb){const _0x2c50be=_0x4784b7;logger[_0x2c50be(0xfc)]('['+[_0xc6bf6[_0x2c50be(0xee)]()]+']',_0x5d86fb['message']),_0x23c9f9(_0x5d86fb[_0x2c50be(0x12b)]);});}else logger[_0x4784b7(0x121)]('['+[_0xc6bf6['toUpperCase']()]+_0x4784b7(0x130)),_0x3e3f17[_0x4784b7(0x100)]=_0x3e3f17[_0x4784b7(0xdc)],_0x3e3f17[_0x4784b7(0x119)]=_0x3e3f17['adminEmail'],_0x44987e(_0x3e3f17);});};}function createEndUser(_0x48797b,_0xb901c1,_0x4797ba,_0x590339,_0x2492c3){const _0x31e004=a1310_0x255386;return logger[_0x31e004(0x121)]('['+[_0x48797b['toUpperCase']()]+_0x31e004(0xf8),_0x4797ba),new Promise(function(_0xd1b35c,_0x9be417){const _0x42d266=_0x31e004,_0x1a7a8d={'method':_0x42d266(0x105),'uri':_0x590339+_0x42d266(0x135)+_0x2492c3,'body':{'user_name':_0x4797ba[_0x42d266(0x10c)],'roles':'user','first_name':_0x4797ba[_0x42d266(0x10c)],'active':'true','date_format':_0x42d266(0xf7),'phone':_0x4797ba[_0x42d266(0x10c)]},'auth':_0xb901c1,'json':!![]};return rp(_0x1a7a8d)[_0x42d266(0x118)](function(_0x2a9d32){const _0x2740ac=_0x42d266;logger[_0x2740ac(0x121)]('['+[_0x48797b[_0x2740ac(0xee)]()]+'],\x20EndUser\x20schema',_0x2a9d32[_0x2740ac(0xe2)]),_0x4797ba[_0x2740ac(0x10e)]=_0x2a9d32[_0x2740ac(0xe2)][_0x2740ac(0x116)],_0xd1b35c(_0x4797ba);})['catch'](function(_0x7d77c4){const _0x4491a9=_0x42d266;logger['error']('['+[_0x48797b[_0x4491a9(0xee)]()]+']',_0x7d77c4[_0x4491a9(0x12b)]),_0x9be417(_0x7d77c4[_0x4491a9(0x12b)]);});});}function getEndUser(_0x186e0c,_0x5af82e,_0x4408d9,_0x524078,_0x5a9020){return function(_0x5302fc){const _0x37362b=a1310_0x27a8;return logger[_0x37362b(0x121)]('['+[_0x186e0c[_0x37362b(0xee)]()]+'],\x20getEndUser\x20input\x20crm',_0x5302fc),new Promise(function(_0x98c02f,_0x47d3f4){const _0x5ab132=_0x37362b,_0x54e885={'method':_0x5ab132(0x113),'uri':_0x4408d9+'sys_user?sysparm_query=phone%3D'+_0x5302fc[_0x5ab132(0x10c)]+'&'+_0x524078+'&'+_0x5a9020,'auth':_0x5af82e,'json':!![]};return rp(_0x54e885)[_0x5ab132(0x118)](function(_0x40e337){const _0x4e0a88=_0x5ab132;if(_0x40e337[_0x4e0a88(0xe2)][_0x4e0a88(0xdd)]>0x0)_0x5302fc[_0x4e0a88(0x10e)]=_0x40e337[_0x4e0a88(0xe2)][0x0]['sys_id'],logger[_0x4e0a88(0x121)]('['+[_0x186e0c[_0x4e0a88(0xee)]()]+'],\x20getEndUser\x20crm',_0x5302fc),_0x98c02f(_0x5302fc);else return createEndUser(_0x186e0c,_0x5af82e,_0x5302fc,_0x4408d9,_0x524078)[_0x4e0a88(0x118)](function(_0xafc743){const _0x570f5c=_0x4e0a88;logger[_0x570f5c(0x121)]('['+[_0x186e0c['toUpperCase']()]+_0x570f5c(0x11a),_0xafc743),_0x98c02f(_0xafc743);});})[_0x5ab132(0x12f)](function(_0xfe9413){const _0x557a9b=_0x5ab132;logger[_0x557a9b(0xfc)]('['+[_0x186e0c[_0x557a9b(0xee)]()]+']',_0xfe9413[_0x557a9b(0x12b)]),_0x47d3f4(_0xfe9413['message']);});});};}function getCustomFields(_0x108a8e,_0x2ce353){const _0x35aeb0=a1310_0x255386,_0x8a1d71={};return _0x108a8e['length']>0x0&&_[_0x35aeb0(0xdb)](_0x108a8e,function(_0x4467f0){const _0x29847c=_0x35aeb0;if(_0x4467f0[_0x29847c(0x125)]===_0x29847c(0xf9)&&_0x4467f0[_0x29847c(0x11c)]&&!_0x4467f0[_0x29847c(0x138)])_0x8a1d71[_0x4467f0['idField']['toLowerCase']()]=_0x4467f0[_0x29847c(0xe6)][_0x29847c(0xe9)]();else{if(_0x4467f0[_0x29847c(0x125)]===_0x29847c(0xf9)&&_0x4467f0[_0x29847c(0x103)]&&_0x4467f0['customField'])_0x8a1d71[_0x4467f0[_0x29847c(0x103)]['toLowerCase']()]=_0x4467f0[_0x29847c(0xe6)][_0x29847c(0xe9)]();else{if(_0x4467f0['type']===_0x29847c(0xea)&&_0x4467f0[_0x29847c(0x133)]&&_0x4467f0[_0x29847c(0x103)]&&_0x4467f0[_0x29847c(0x138)])_0x8a1d71[_0x4467f0[_0x29847c(0x103)][_0x29847c(0xff)]()]=_0x2ce353[_0x4467f0[_0x29847c(0x133)]][_0x29847c(0xe9)]();else _0x4467f0[_0x29847c(0x125)]===_0x29847c(0xe8)&&_0x4467f0['Variable']&&_0x4467f0[_0x29847c(0x137)][_0x29847c(0x107)]&&_0x4467f0['idField']&&_0x4467f0[_0x29847c(0x138)]&&(_0x8a1d71[_0x4467f0['idField'][_0x29847c(0xff)]()]=_0x2ce353[_0x4467f0[_0x29847c(0x137)][_0x29847c(0x107)][_0x29847c(0xff)]()][_0x29847c(0xe9)]());}}}),_0x8a1d71;}function getTicket(_0x5e1634,_0x22b6b5,_0x42f42b,_0x572f85,_0x2b1c48,_0xcf9900){return function(_0x2462ba){const _0xbd2401=a1310_0x27a8;return logger[_0xbd2401(0x121)]('['+[_0x5e1634[_0xbd2401(0xee)]()]+']\x20getTicket\x20input\x20crm',_0x2462ba),new Promise(function(_0x17990d,_0x4f0834){const _0xeee7d4=_0xbd2401,_0x2fe6ed=_0x5e1634['toLowerCase']()==='outbound'?_0x2462ba['userId']:_0x2462ba[_0xeee7d4(0x10e)],_0x5da558={'method':'POST','uri':_0x42f42b+_0xeee7d4(0x12d)+'?'+_0xcf9900,'body':Object[_0xeee7d4(0xdf)]({},{'active':'true','caller_id':_0x2fe6ed,'assigned_to':_0x2462ba['userId'],'short_description':intUtil[_0xeee7d4(0xda)](_0x572f85[_0xeee7d4(0x124)],_0x2b1c48,'\x20'),'description':intUtil['getString'](_0x572f85[_0xeee7d4(0x126)],_0x2b1c48,'\x0a')},getCustomFields(_0x572f85[_0xeee7d4(0x101)],_0x2b1c48)),'auth':_0x22b6b5,'json':!![]};return rp(_0x5da558)[_0xeee7d4(0x118)](function(_0x319cae){const _0x2c2567=_0xeee7d4;logger[_0x2c2567(0x121)]('['+[_0x5e1634[_0x2c2567(0xee)]()]+_0x2c2567(0xfd),_0x319cae[_0x2c2567(0xe2)]),_0x2462ba[_0x2c2567(0xfb)]=_0x319cae[_0x2c2567(0xe2)]['sys_id'],_0x2462ba[_0x2c2567(0x112)]=_0x319cae[_0x2c2567(0xe2)][_0x2c2567(0x128)],logger[_0x2c2567(0x121)]('['+[_0x5e1634[_0x2c2567(0xee)]()]+_0x2c2567(0xf1),_0x2462ba),_0x17990d(_0x2462ba);})[_0xeee7d4(0x12f)](function(_0x50b5f7){const _0x967e8a=_0xeee7d4;logger[_0x967e8a(0xfc)]('['+[_0x5e1634[_0x967e8a(0xee)]()]+']',_0x50b5f7['message']),_0x4f0834(_0x50b5f7[_0x967e8a(0x12b)]);});});};}function emit(_0x257ca2,_0x52d401,_0x5b999a){const _0x5df142=a1310_0x255386,_0x2968ab=_0x5df142(0xde)+_0x5df142(0x10b)+_0x5df142(0xe5)+_0x5df142(0xef),_0x2b0c0d={'uri':_0x257ca2+'/nav_to.do?uri=incident.do?sys_id%3D'+_0x5b999a+_0x2968ab};io['to'](util['format'](_0x5df142(0xe1),_0x52d401))[_0x5df142(0x109)](_0x5df142(0x131),_0x2b0c0d);}exports['cs']=function(_0x42ec03,_0xd26626,_0xf49cda,_0xf20f0a,_0x58c275,_0x3f59b7,_0x5ee731,_0x479238){const _0x3d5cf6=a1310_0x255386,_0x57a79e={},_0x814f0a={'user':_0x3f59b7[_0x3d5cf6(0x11d)],'pass':_0x3f59b7[_0x3d5cf6(0x102)]},_0x1e0f7f=_0x3d5cf6(0xe3),_0x19612f=_0x3d5cf6(0x123);_0x3f59b7[_0x3d5cf6(0x10a)]=intUtil[_0x3d5cf6(0x134)](_0x3f59b7[_0x3d5cf6(0x10a)]),_0x3f59b7['serverUrl']=intUtil['stripTrailingSlash'](_0x3f59b7['serverUrl']);const _0x3c3838=util[_0x3d5cf6(0x115)](_0x3d5cf6(0x108),_0x3f59b7[_0x3d5cf6(0x10a)]);_0x57a79e[_0x3d5cf6(0x119)]=!_[_0x3d5cf6(0xed)](_0xf20f0a)?_0xf20f0a[_0x3d5cf6(0x11b)]:null,_0x57a79e[_0x3d5cf6(0x12e)]=_0x3f59b7[_0x3d5cf6(0x11b)],_0x57a79e[_0x3d5cf6(0x10c)]=_0x479238['toLowerCase']()===_0x3d5cf6(0x104)?_0xd26626['destcalleridnum']:_0xd26626[_0x3d5cf6(0x132)],_0x57a79e['callDirection']=_0x479238==='queue'||_0x479238===_0x3d5cf6(0x12c)?_0x3d5cf6(0xf2):_0x3d5cf6(0x104);const _0xdc68ec=util[_0x3d5cf6(0x115)]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x3f59b7[_0x3d5cf6(0xf3)],_0xd26626[_0x3d5cf6(0xf5)],md5(_0xd26626[_0x3d5cf6(0xf5)]));if(_0x58c275&&_0x58c275[_0x3d5cf6(0xec)])logger[_0x3d5cf6(0x121)]('[QUEUE]',_0x3d5cf6(0xeb)),_0xd26626[_0x3d5cf6(0x122)]=_0xdc68ec;else _0x5ee731&&_0x5ee731[_0x3d5cf6(0xf4)]&&_0x5ee731[_0x3d5cf6(0xf4)]!=='none'?(logger[_0x3d5cf6(0x121)](_0x3d5cf6(0x117),_0x3d5cf6(0xeb)),_0xd26626[_0x3d5cf6(0x122)]=_0xdc68ec):_0xd26626[_0x3d5cf6(0x122)]='';return getAdminUser(_0x479238,_0x814f0a,_0x57a79e,_0x3c3838,_0x19612f,_0x1e0f7f)[_0x3d5cf6(0x118)](getUser(_0x479238,_0x814f0a,_0x3c3838,_0x19612f,_0x1e0f7f))[_0x3d5cf6(0x118)](getEndUser(_0x479238,_0x814f0a,_0x3c3838,_0x19612f,_0x1e0f7f))[_0x3d5cf6(0x118)](getTicket(_0x479238,_0x814f0a,_0x3c3838,_0xf49cda,_0xd26626,_0x19612f))[_0x3d5cf6(0x118)](function(_0x51d655){const _0x592e2f=_0x3d5cf6;logger[_0x592e2f(0x121)](util['format'](_0x592e2f(0x127),_0x51d655[_0x592e2f(0xfb)])),logger[_0x592e2f(0x121)](util[_0x592e2f(0x115)]('call\x20direction:\x20%s',_0x479238)),_0x479238!==_0x592e2f(0x12c)&&(logger[_0x592e2f(0x121)]('['+[_0x479238['toUpperCase']()]+']',_0x592e2f(0x106)),emit(_0x3f59b7['remoteUri'],_0xf20f0a[_0x592e2f(0x107)],_0x51d655[_0x592e2f(0xfb)]));})[_0x3d5cf6(0x12f)](function(_0x4f0f50){const _0x5467d8=_0x3d5cf6;logger[_0x5467d8(0xfc)]('['+[_0x479238[_0x5467d8(0xee)]()]+_0x5467d8(0x12a),util[_0x5467d8(0xf0)](_0x4f0f50,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +const a1310_0x4bdd=['ticketId',']\x20getTicket\x20crm','type','sys_user?sysparm_query=email%3D','%26sysparm_record_row%3D1%26sysparm_record_rows%3D39','error','adminEmail','format','true','callDirection','serverUrl',']\x20POST\x20incident\x20entity\x20schema','emit','util','],\x20getAdminUser\x20crm',']\x20getTicket\x20input\x20crm','endUserNumber','],\x20getEndUser\x20input\x20crm','../../../../rediscache','sys_id','getString','remoteUri','message','POST',']\x20using\x20admin\x20profile','userEmail','Recording\x20is\x20enabled!',']\x20Error\x20running\x20ServiceNow\x20integration','unmanaged','[OUTBOUND]','content','user:%s','active','trigger:browser:url','user','],\x20createEndUser\x20input\x20crm','sysparm_display_value=true','md5','nameField','],\x20getEndUser\x20crm','sys_user?','[QUEUE]','recordingFormat','Fields','validateEmail','%26sysparm_record_target%3Dincident','%255EORDERBYDESCnumber','userId','idField','name','endUserId','Subjects','adminId','number','ticketNumber','stripTrailingSlash','outbound','%s/api/now/table/','],\x20createEndUser\x20crm','isNil','password','],\x20EndUser\x20schema','result','Displaying\x20call\x20in\x20a\x20new\x20tab...','forEach','Variable','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','uniqueid','username','assign','toString','%26sysparm_record_list%3Dactive%253Dtrue','customField','GET','then','toLowerCase','recordingURL','lodash','email','],\x20getUser\x20crm','call\x20direction:\x20%s','length','toUpperCase','monitor_format','calleridnum','variableName','request-promise-native','info','incident','catch','../../../../config/logger','sys_user?sysparm_query=phone%3D','servicenow'];(function(_0x53b228,_0x31f70b){const _0x4bddd1=function(_0x2e49ea){while(--_0x2e49ea){_0x53b228['push'](_0x53b228['shift']());}};_0x4bddd1(++_0x31f70b);}(a1310_0x4bdd,0x96));const a1310_0x2e49=function(_0x53b228,_0x31f70b){_0x53b228=_0x53b228-0x1aa;let _0x4bddd1=a1310_0x4bdd[_0x53b228];return _0x4bddd1;};const a1310_0x5430b1=a1310_0x2e49;'use strict';const _=require(a1310_0x5430b1(0x1be)),rp=require(a1310_0x5430b1(0x1c7)),util=require(a1310_0x5430b1(0x1db)),md5=require(a1310_0x5430b1(0x1f3)),intUtil=require('./util'),logger=require(a1310_0x5430b1(0x1cb))(a1310_0x5430b1(0x1cd)),{getSocket}=require(a1310_0x5430b1(0x1e0)),io=getSocket();function getAdminUser(_0x17c641,_0x2a14b9,_0x3528bf,_0x3e8357,_0x3601b6,_0x1f4e66){return new Promise(function(_0x50a8b7,_0x5a58ea){const _0x54201f=a1310_0x2e49,_0x2ec7e9={'method':_0x54201f(0x1ba),'uri':_0x3e8357+'sys_user?sysparm_query=user_name%3Dadmin'+'&'+_0x3601b6+'&'+_0x1f4e66,'auth':_0x2a14b9,'json':!![]};return rp(_0x2ec7e9)['then'](function(_0x2df614){const _0x4dac61=_0x54201f;_0x2df614[_0x4dac61(0x1af)][_0x4dac61(0x1c2)]>0x0&&(_0x3528bf[_0x4dac61(0x202)]=_0x2df614[_0x4dac61(0x1af)][0x0][_0x4dac61(0x1e1)]),logger['info']('['+[_0x17c641[_0x4dac61(0x1c3)]()]+_0x4dac61(0x1dc),_0x3528bf),_0x50a8b7(_0x3528bf);})['catch'](function(_0x19ce5a){const _0x35d904=_0x54201f;logger[_0x35d904(0x1d3)]('['+[_0x17c641['toUpperCase']()]+']',_0x19ce5a[_0x35d904(0x1e4)]),_0x5a58ea(_0x19ce5a[_0x35d904(0x1e4)]);});});}function getUser(_0x3f3edc,_0x4c6021,_0x5962aa,_0x548b96,_0x259652){return function(_0x268eb1){const _0x3b1f95=a1310_0x2e49;return logger['info']('['+[_0x3f3edc[_0x3b1f95(0x1c3)]()]+'],\x20getUser\x20input\x20crm',_0x268eb1),new Promise(function(_0x5b89e7,_0x18ba4d){const _0x1b809f=_0x3b1f95;if(intUtil[_0x1b809f(0x1fa)](_0x268eb1[_0x1b809f(0x1e7)])){const _0x3189f5={'method':'GET','uri':_0x5962aa+_0x1b809f(0x1d1)+_0x268eb1[_0x1b809f(0x1e7)]+'&'+_0x548b96+'&'+_0x259652,'auth':_0x4c6021,'json':!![]};return logger[_0x1b809f(0x1c8)]('['+[_0x3f3edc[_0x1b809f(0x1c3)]()]+'],\x20getUser\x20rp\x20obj',_0x3189f5),rp(_0x3189f5)['then'](function(_0x3c6a6f){const _0x53ca9b=_0x1b809f;logger[_0x53ca9b(0x1c8)]('['+[_0x3f3edc['toUpperCase']()]+'],\x20getUser\x20entity',_0x3c6a6f),_0x3c6a6f[_0x53ca9b(0x1af)]['length']>0x0&&String(_0x3c6a6f[_0x53ca9b(0x1af)][0x0][_0x53ca9b(0x1ee)])===_0x53ca9b(0x1d6)?_0x268eb1[_0x53ca9b(0x1fd)]=_0x3c6a6f[_0x53ca9b(0x1af)][0x0]['sys_id']:(_0x268eb1[_0x53ca9b(0x1fd)]=_0x268eb1[_0x53ca9b(0x202)],_0x268eb1[_0x53ca9b(0x1e7)]=_0x268eb1[_0x53ca9b(0x1d4)]),logger[_0x53ca9b(0x1c8)]('['+[_0x3f3edc[_0x53ca9b(0x1c3)]()]+_0x53ca9b(0x1c0),_0x268eb1),_0x5b89e7(_0x268eb1);})['catch'](function(_0x1f6127){const _0xe86e60=_0x1b809f;logger['error']('['+[_0x3f3edc[_0xe86e60(0x1c3)]()]+']',_0x1f6127['message']),_0x18ba4d(_0x1f6127[_0xe86e60(0x1e4)]);});}else logger[_0x1b809f(0x1c8)]('['+[_0x3f3edc[_0x1b809f(0x1c3)]()]+_0x1b809f(0x1e6)),_0x268eb1['userId']=_0x268eb1[_0x1b809f(0x202)],_0x268eb1[_0x1b809f(0x1e7)]=_0x268eb1[_0x1b809f(0x1d4)],_0x5b89e7(_0x268eb1);});};}function createEndUser(_0x17201a,_0x13e084,_0x2371ca,_0x58c8c7,_0x4b76f7){const _0x59b1d0=a1310_0x5430b1;return logger[_0x59b1d0(0x1c8)]('['+[_0x17201a[_0x59b1d0(0x1c3)]()]+_0x59b1d0(0x1f1),_0x2371ca),new Promise(function(_0x4f4256,_0x33320d){const _0x537df0=_0x59b1d0,_0x5c9e8c={'method':'POST','uri':_0x58c8c7+_0x537df0(0x1f6)+_0x4b76f7,'body':{'user_name':_0x2371ca[_0x537df0(0x1de)],'roles':_0x537df0(0x1f0),'first_name':_0x2371ca[_0x537df0(0x1de)],'active':_0x537df0(0x1d6),'date_format':'System','phone':_0x2371ca[_0x537df0(0x1de)]},'auth':_0x13e084,'json':!![]};return rp(_0x5c9e8c)['then'](function(_0x3d905a){const _0x2de7a4=_0x537df0;logger[_0x2de7a4(0x1c8)]('['+[_0x17201a[_0x2de7a4(0x1c3)]()]+_0x2de7a4(0x1ae),_0x3d905a[_0x2de7a4(0x1af)]),_0x2371ca[_0x2de7a4(0x200)]=_0x3d905a['result'][_0x2de7a4(0x1e1)],_0x4f4256(_0x2371ca);})[_0x537df0(0x1ca)](function(_0x556071){const _0x58c716=_0x537df0;logger[_0x58c716(0x1d3)]('['+[_0x17201a[_0x58c716(0x1c3)]()]+']',_0x556071[_0x58c716(0x1e4)]),_0x33320d(_0x556071[_0x58c716(0x1e4)]);});});}function getEndUser(_0x5eaa61,_0x59491e,_0x24e1ef,_0x4011f7,_0x1824c1){return function(_0x159bfe){const _0xf17b4=a1310_0x2e49;return logger['info']('['+[_0x5eaa61[_0xf17b4(0x1c3)]()]+_0xf17b4(0x1df),_0x159bfe),new Promise(function(_0x5d87ab,_0x4c8bef){const _0x1f5012=_0xf17b4,_0x3f88d3={'method':_0x1f5012(0x1ba),'uri':_0x24e1ef+_0x1f5012(0x1cc)+_0x159bfe[_0x1f5012(0x1de)]+'&'+_0x4011f7+'&'+_0x1824c1,'auth':_0x59491e,'json':!![]};return rp(_0x3f88d3)[_0x1f5012(0x1bb)](function(_0x52a173){const _0x5980b7=_0x1f5012;if(_0x52a173['result'][_0x5980b7(0x1c2)]>0x0)_0x159bfe['endUserId']=_0x52a173['result'][0x0]['sys_id'],logger[_0x5980b7(0x1c8)]('['+[_0x5eaa61[_0x5980b7(0x1c3)]()]+_0x5980b7(0x1f5),_0x159bfe),_0x5d87ab(_0x159bfe);else return createEndUser(_0x5eaa61,_0x59491e,_0x159bfe,_0x24e1ef,_0x4011f7)['then'](function(_0x44c56a){const _0x10867d=_0x5980b7;logger[_0x10867d(0x1c8)]('['+[_0x5eaa61[_0x10867d(0x1c3)]()]+_0x10867d(0x1ab),_0x44c56a),_0x5d87ab(_0x44c56a);});})[_0x1f5012(0x1ca)](function(_0x1e6dcd){const _0x23ed1a=_0x1f5012;logger[_0x23ed1a(0x1d3)]('['+[_0x5eaa61[_0x23ed1a(0x1c3)]()]+']',_0x1e6dcd[_0x23ed1a(0x1e4)]),_0x4c8bef(_0x1e6dcd[_0x23ed1a(0x1e4)]);});});};}function getCustomFields(_0x45be64,_0x32fb9f){const _0x4d943f=a1310_0x5430b1,_0x34c2ae={};return _0x45be64[_0x4d943f(0x1c2)]>0x0&&_[_0x4d943f(0x1b1)](_0x45be64,function(_0x4f5647){const _0x4a52f8=_0x4d943f;if(_0x4f5647[_0x4a52f8(0x1d0)]==='string'&&_0x4f5647[_0x4a52f8(0x1f4)]&&!_0x4f5647['customField'])_0x34c2ae[_0x4f5647[_0x4a52f8(0x1fe)][_0x4a52f8(0x1bc)]()]=_0x4f5647[_0x4a52f8(0x1ec)]['toString']();else{if(_0x4f5647[_0x4a52f8(0x1d0)]==='string'&&_0x4f5647[_0x4a52f8(0x1fe)]&&_0x4f5647['customField'])_0x34c2ae[_0x4f5647[_0x4a52f8(0x1fe)]['toLowerCase']()]=_0x4f5647[_0x4a52f8(0x1ec)][_0x4a52f8(0x1b7)]();else{if(_0x4f5647['type']==='variable'&&_0x4f5647[_0x4a52f8(0x1c6)]&&_0x4f5647[_0x4a52f8(0x1fe)]&&_0x4f5647['customField'])_0x34c2ae[_0x4f5647['idField'][_0x4a52f8(0x1bc)]()]=_0x32fb9f[_0x4f5647[_0x4a52f8(0x1c6)]][_0x4a52f8(0x1b7)]();else _0x4f5647[_0x4a52f8(0x1d0)]==='customVariable'&&_0x4f5647[_0x4a52f8(0x1b2)]&&_0x4f5647[_0x4a52f8(0x1b2)][_0x4a52f8(0x1ff)]&&_0x4f5647['idField']&&_0x4f5647[_0x4a52f8(0x1b9)]&&(_0x34c2ae[_0x4f5647[_0x4a52f8(0x1fe)][_0x4a52f8(0x1bc)]()]=_0x32fb9f[_0x4f5647[_0x4a52f8(0x1b2)][_0x4a52f8(0x1ff)]['toLowerCase']()][_0x4a52f8(0x1b7)]());}}}),_0x34c2ae;}function getTicket(_0x3e0161,_0x929a51,_0x59ed7f,_0x4bfdf7,_0x15e833,_0x257cc0){return function(_0x1208ec){const _0x5b9521=a1310_0x2e49;return logger[_0x5b9521(0x1c8)]('['+[_0x3e0161[_0x5b9521(0x1c3)]()]+_0x5b9521(0x1dd),_0x1208ec),new Promise(function(_0x3340dd,_0x169c11){const _0x5edadd=_0x5b9521,_0x37bf9f=_0x3e0161[_0x5edadd(0x1bc)]()==='outbound'?_0x1208ec[_0x5edadd(0x1fd)]:_0x1208ec[_0x5edadd(0x200)],_0x242218={'method':_0x5edadd(0x1e5),'uri':_0x59ed7f+_0x5edadd(0x1c9)+'?'+_0x257cc0,'body':Object[_0x5edadd(0x1b6)]({},{'active':_0x5edadd(0x1d6),'caller_id':_0x37bf9f,'assigned_to':_0x1208ec['userId'],'short_description':intUtil['getString'](_0x4bfdf7[_0x5edadd(0x201)],_0x15e833,'\x20'),'description':intUtil[_0x5edadd(0x1e2)](_0x4bfdf7['Descriptions'],_0x15e833,'\x0a')},getCustomFields(_0x4bfdf7[_0x5edadd(0x1f9)],_0x15e833)),'auth':_0x929a51,'json':!![]};return rp(_0x242218)[_0x5edadd(0x1bb)](function(_0x57a075){const _0x49167c=_0x5edadd;logger[_0x49167c(0x1c8)]('['+[_0x3e0161[_0x49167c(0x1c3)]()]+_0x49167c(0x1d9),_0x57a075[_0x49167c(0x1af)]),_0x1208ec[_0x49167c(0x1ce)]=_0x57a075[_0x49167c(0x1af)][_0x49167c(0x1e1)],_0x1208ec[_0x49167c(0x204)]=_0x57a075['result'][_0x49167c(0x203)],logger[_0x49167c(0x1c8)]('['+[_0x3e0161[_0x49167c(0x1c3)]()]+_0x49167c(0x1cf),_0x1208ec),_0x3340dd(_0x1208ec);})[_0x5edadd(0x1ca)](function(_0x2cc2dc){const _0x405648=_0x5edadd;logger['error']('['+[_0x3e0161[_0x405648(0x1c3)]()]+']',_0x2cc2dc[_0x405648(0x1e4)]),_0x169c11(_0x2cc2dc[_0x405648(0x1e4)]);});});};}function emit(_0x1fcdca,_0x2330ae,_0x25129f){const _0x336c8f=a1310_0x5430b1,_0x4c4f14=_0x336c8f(0x1fb)+_0x336c8f(0x1d2)+_0x336c8f(0x1b8)+_0x336c8f(0x1fc),_0x2825d1={'uri':_0x1fcdca+'/nav_to.do?uri=incident.do?sys_id%3D'+_0x25129f+_0x4c4f14};io['to'](util[_0x336c8f(0x1d5)](_0x336c8f(0x1ed),_0x2330ae))[_0x336c8f(0x1da)](_0x336c8f(0x1ef),_0x2825d1);}exports['cs']=function(_0x3882ee,_0x2dc4f0,_0x13ed95,_0x171d8e,_0x4532ea,_0x468d7b,_0x463b23,_0x42ccd4){const _0x63f6cf=a1310_0x5430b1,_0xfc70a4={},_0x420dee={'user':_0x468d7b[_0x63f6cf(0x1b5)],'pass':_0x468d7b[_0x63f6cf(0x1ad)]},_0x5ec003='sysparm_limit=1',_0x1804d6=_0x63f6cf(0x1f2);_0x468d7b['remoteUri']=intUtil[_0x63f6cf(0x205)](_0x468d7b[_0x63f6cf(0x1e3)]),_0x468d7b[_0x63f6cf(0x1d8)]=intUtil['stripTrailingSlash'](_0x468d7b[_0x63f6cf(0x1d8)]);const _0xd91f1a=util[_0x63f6cf(0x1d5)](_0x63f6cf(0x1aa),_0x468d7b[_0x63f6cf(0x1e3)]);_0xfc70a4['userEmail']=!_[_0x63f6cf(0x1ac)](_0x171d8e)?_0x171d8e[_0x63f6cf(0x1bf)]:null,_0xfc70a4[_0x63f6cf(0x1d4)]=_0x468d7b[_0x63f6cf(0x1bf)],_0xfc70a4[_0x63f6cf(0x1de)]=_0x42ccd4[_0x63f6cf(0x1bc)]()==='outbound'?_0x2dc4f0['destcalleridnum']:_0x2dc4f0[_0x63f6cf(0x1c5)],_0xfc70a4[_0x63f6cf(0x1d7)]=_0x42ccd4==='queue'||_0x42ccd4===_0x63f6cf(0x1ea)?'queue':_0x63f6cf(0x206);const _0x31ee40=util['format'](_0x63f6cf(0x1b3),_0x468d7b[_0x63f6cf(0x1d8)],_0x2dc4f0['uniqueid'],md5(_0x2dc4f0[_0x63f6cf(0x1b4)]));if(_0x4532ea&&_0x4532ea[_0x63f6cf(0x1c4)])logger[_0x63f6cf(0x1c8)](_0x63f6cf(0x1f7),_0x63f6cf(0x1e8)),_0x2dc4f0['recordingURL']=_0x31ee40;else _0x463b23&&_0x463b23[_0x63f6cf(0x1f8)]&&_0x463b23[_0x63f6cf(0x1f8)]!=='none'?(logger['info'](_0x63f6cf(0x1eb),_0x63f6cf(0x1e8)),_0x2dc4f0[_0x63f6cf(0x1bd)]=_0x31ee40):_0x2dc4f0[_0x63f6cf(0x1bd)]='';return getAdminUser(_0x42ccd4,_0x420dee,_0xfc70a4,_0xd91f1a,_0x1804d6,_0x5ec003)[_0x63f6cf(0x1bb)](getUser(_0x42ccd4,_0x420dee,_0xd91f1a,_0x1804d6,_0x5ec003))[_0x63f6cf(0x1bb)](getEndUser(_0x42ccd4,_0x420dee,_0xd91f1a,_0x1804d6,_0x5ec003))[_0x63f6cf(0x1bb)](getTicket(_0x42ccd4,_0x420dee,_0xd91f1a,_0x13ed95,_0x2dc4f0,_0x1804d6))['then'](function(_0x4162bf){const _0x819006=_0x63f6cf;logger[_0x819006(0x1c8)](util[_0x819006(0x1d5)]('The\x20ticket\x20ID\x20is:\x20%s',_0x4162bf[_0x819006(0x1ce)])),logger['info'](util[_0x819006(0x1d5)](_0x819006(0x1c1),_0x42ccd4)),_0x42ccd4!=='unmanaged'&&(logger[_0x819006(0x1c8)]('['+[_0x42ccd4[_0x819006(0x1c3)]()]+']',_0x819006(0x1b0)),emit(_0x468d7b[_0x819006(0x1e3)],_0x171d8e[_0x819006(0x1ff)],_0x4162bf[_0x819006(0x1ce)]));})[_0x63f6cf(0x1ca)](function(_0x3873cc){const _0x9cf3c7=_0x63f6cf;logger[_0x9cf3c7(0x1d3)]('['+[_0x42ccd4[_0x9cf3c7(0x1c3)]()]+_0x9cf3c7(0x1e9),util['inspect'](_0x3873cc,{'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 0e4f6c4..0527e6e 100644 --- a/server/services/ami/trigger/integration/sugarcrm.js +++ b/server/services/ami/trigger/integration/sugarcrm.js @@ -1 +1 @@ -const a1311_0x2e36=['forEach','Ticket\x20created!','Fields','outbound','[OUTBOUND]','catch','none','error','set_relationship','The\x20Enduser\x20ID\x20is:','xCALLY\x20Motion\x20integration','util','POST','username','get_server_info','Outbound','users','INSTR\x20(\x20users.user_name,\x20\x22%s\x22)\x20>\x200','[QUEUE]','Inbound','Agent\x20found!','%s/#bwc/index.php?module=Calls&action=EditView&record=%s','stripTrailingSlash','description','Creating\x20new\x20ticket...','Calls','serverUrl','parent_id','entry_list','phone_home','Recording\x20is\x20enabled!','emit','uniqueid','variableName','JSON','name','Getting\x20agent\x20with\x20name','first_name','Contacts','toUpperCase','Descriptions','value','trigger:browser:url','Subjects','./util','','password','slice','idField','user_name','recordingURL','md5','The\x20User\x20ID\x20is:','remoteUri','contacts.phone_home\x20=\x20\x22%s\x22','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','info','push','../../../../rediscache','toISOString','isNil','sessionID','direction','calleridname','set_entry','Enduser\x20found!','parent_type','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','charAt','version','user:%s','Agent\x20not\x20available,\x20using\x20the\x20admin\x20account!','duration_minutes','then','%s/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DCalls%26action%3DEditView%26record%3D%s','sugarcrm','recordingFormat','assigned_user_id','created_by','getString','name_value_list','stringify','contacts','calleridnum','The\x20Ticket\x20ID\x20is:','destcalleridname','get_entry_list','monitor_format','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','lastevent','user_id','PLAIN','format','Enduser\x20created.','Searching\x20enduser\x20with\x20phone','%s/service/v4_1/rest.php','lodash','length','uri','duration_hours','resolve'];(function(_0x2ef6b4,_0x2bf375){const _0x2e3626=function(_0x4c72a8){while(--_0x4c72a8){_0x2ef6b4['push'](_0x2ef6b4['shift']());}};_0x2e3626(++_0x2bf375);}(a1311_0x2e36,0xd4));const a1311_0x4c72=function(_0x2ef6b4,_0x2bf375){_0x2ef6b4=_0x2ef6b4-0x14b;let _0x2e3626=a1311_0x2e36[_0x2ef6b4];return _0x2e3626;};const a1311_0x1a5093=a1311_0x4c72;'use strict';const _=require(a1311_0x1a5093(0x1a1)),rp=require('request-promise-native'),md5=require(a1311_0x1a5093(0x174)),util=require(a1311_0x1a5093(0x14c)),intUtil=require(a1311_0x1a5093(0x16d)),logger=require('../../../../config/logger')(a1311_0x1a5093(0x18c)),{getSocket}=require(a1311_0x1a5093(0x17b)),io=getSocket(),def={'method':a1311_0x1a5093(0x14d),'json':!![]};function emit(_0x18714c,_0x2b7aee,_0x9dac2b){const _0x32f08f=a1311_0x1a5093;io['to'](_0x18714c)[_0x32f08f(0x160)](_0x2b7aee,_0x9dac2b);}function getTicket(_0x26418a,_0x157ce7,_0x226ea5,_0x5337f7,_0x289850,_0xcf5035,_0xd0b68f,_0x51e208){const _0x340dd2=a1311_0x1a5093;logger[_0x340dd2(0x179)](_0x340dd2(0x159));const _0x3802cb=new Date(),_0x194117=[{'name':_0x340dd2(0x164),'value':intUtil[_0x340dd2(0x190)](_0x5337f7[_0x340dd2(0x16c)],_0x289850,'\x20')},{'name':_0x340dd2(0x18e),'value':_0x157ce7['id']},{'name':_0x340dd2(0x18f),'value':_0x157ce7['id']},{'name':_0x340dd2(0x158),'value':intUtil['getString'](_0x5337f7[_0x340dd2(0x169)],_0x289850,'\x0a')},{'name':'date_start','value':_0x3802cb[_0x340dd2(0x17c)]()[_0x340dd2(0x170)](0x0,0x13)['replace']('T','\x20')},{'name':_0x340dd2(0x1a4),'value':'0'},{'name':_0x340dd2(0x189),'value':'15'},{'name':_0x340dd2(0x15c),'value':_0x226ea5['id']},{'name':_0x340dd2(0x183),'value':'Contacts'},{'name':'parent_name','value':_0x226ea5[_0x340dd2(0x164)]},{'name':_0x340dd2(0x17f),'value':_0x51e208}];return _0xcf5035[_0x340dd2(0x1a2)]&&_[_0x340dd2(0x1a6)](_0xcf5035,function(_0x4a3d88){const _0x57fee0=_0x340dd2;_0x289850[_0x4a3d88[_0x57fee0(0x162)]]&&_0x194117[_0x57fee0(0x17a)]({'name':_0x4a3d88[_0x57fee0(0x171)],'value':_0x289850[_0x4a3d88[_0x57fee0(0x162)]]});}),request({'form':{'method':'set_entry','input_type':'JSON','response_type':_0x340dd2(0x163),'rest_data':JSON['stringify']({'session':_0xd0b68f['id'],'module_name':'Calls','name_value_list':_0x194117})}});}function getServerInfo(_0x5dcc97){const _0x33ee11=a1311_0x1a5093;return request({'form':{'method':_0x33ee11(0x14f),'input_type':_0x33ee11(0x163),'response_type':_0x33ee11(0x163),'rest_data':JSON[_0x33ee11(0x192)]({'session':_0x5dcc97['id']})}});}function getUser(_0x3a1ffe,_0x413023,_0x2ae5fa){const _0x351fa6=a1311_0x1a5093;return!_[_0x351fa6(0x17d)](_0x413023)?(logger[_0x351fa6(0x179)](_0x351fa6(0x165),_0x413023),request({'form':{'method':_0x351fa6(0x197),'input_type':_0x351fa6(0x163),'response_type':'JSON','rest_data':JSON[_0x351fa6(0x192)]({'session':_0x2ae5fa['id'],'module_name':'Employees','query':util[_0x351fa6(0x19d)](_0x351fa6(0x152),_0x413023),'order_by':'','offset':'0','select_fields':['id',_0x351fa6(0x164),_0x351fa6(0x172)],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0x351fa6(0x18a)](function(_0x2b6d7f){const _0xb8aca1=_0x351fa6;if(_0x2b6d7f[_0xb8aca1(0x15d)][_0xb8aca1(0x1a2)]){const _0x1a37d0=_['find'](_0x2b6d7f[_0xb8aca1(0x15d)],function(_0x5ee0d0){const _0x46f667=_0xb8aca1;return _0x5ee0d0[_0x46f667(0x191)][_0x46f667(0x172)]['value']===_0x413023;});if(_0x1a37d0)return logger[_0xb8aca1(0x179)](_0xb8aca1(0x155)),Promise[_0xb8aca1(0x1a5)]({'id':_0x1a37d0[_0xb8aca1(0x191)]['id'][_0xb8aca1(0x16a)],'name':_0x1a37d0[_0xb8aca1(0x191)][_0xb8aca1(0x164)][_0xb8aca1(0x16a)]});}return logger['info']('Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!'),Promise[_0xb8aca1(0x1a5)]({'id':_0x2ae5fa[_0xb8aca1(0x191)]['user_id'][_0xb8aca1(0x16a)],'name':_0x2ae5fa['name_value_list']['user_name']['value']});})):(logger[_0x351fa6(0x179)](_0x351fa6(0x188)),Promise[_0x351fa6(0x1a5)]({'id':_0x2ae5fa[_0x351fa6(0x191)][_0x351fa6(0x19b)][_0x351fa6(0x16a)],'name':_0x2ae5fa[_0x351fa6(0x191)][_0x351fa6(0x172)][_0x351fa6(0x16a)]}));}function getEndUser(_0x5c21c5,_0xc3c60d,_0x58f705,_0x2940de){const _0x5e3ee9=a1311_0x1a5093;return logger[_0x5e3ee9(0x179)](_0x5e3ee9(0x19f),_0x58f705),request({'form':{'method':_0x5e3ee9(0x197),'input_type':_0x5e3ee9(0x163),'response_type':_0x5e3ee9(0x163),'rest_data':JSON[_0x5e3ee9(0x192)]({'session':_0x2940de['id'],'module_name':_0x5e3ee9(0x167),'query':util[_0x5e3ee9(0x19d)](_0x5e3ee9(0x177),_0x58f705),'order_by':'','offset':'0','select_fields':['id',_0x5e3ee9(0x164),_0x5e3ee9(0x15e)],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0x5e3ee9(0x18a)](function(_0x5cb2e2){const _0x3a3891=_0x5e3ee9;if(_0x5cb2e2[_0x3a3891(0x15d)]['length']){const _0x1e3b81=_['find'](_0x5cb2e2[_0x3a3891(0x15d)],function(_0x3d4d36){const _0x3ea2ec=_0x3a3891;return _0x3d4d36[_0x3ea2ec(0x191)][_0x3ea2ec(0x15e)][_0x3ea2ec(0x16a)]===_0x58f705;});if(_0x1e3b81)return logger[_0x3a3891(0x179)](_0x3a3891(0x182)),Promise[_0x3a3891(0x1a5)]({'id':_0x1e3b81['name_value_list']['id']['value'],'name':_0x1e3b81[_0x3a3891(0x191)]['name'][_0x3a3891(0x16a)],'phone':_0x1e3b81[_0x3a3891(0x191)]['phone_home'][_0x3a3891(0x16a)]});}else return logger[_0x3a3891(0x179)](_0x3a3891(0x199)),request({'form':{'method':_0x3a3891(0x181),'input_type':_0x3a3891(0x163),'response_type':'JSON','rest_data':JSON[_0x3a3891(0x192)]({'session':_0x2940de['id'],'module_name':_0x3a3891(0x167),'name_value_list':[{'name':'first_name','value':_0xc3c60d!==_0x3a3891(0x16e)?_0xc3c60d:util[_0x3a3891(0x19d)]('Caller\x20-\x20%s',_0x58f705)},{'name':'phone_home','value':_0x58f705}]})}})['then'](function(_0x38096b){const _0x300ae7=_0x3a3891;return logger[_0x300ae7(0x179)](_0x300ae7(0x19e)),Promise[_0x300ae7(0x1a5)]({'id':_0x38096b['id'],'name':_0x38096b[_0x300ae7(0x15d)][_0x300ae7(0x166)]['value'],'phone':_0x38096b['entry_list'][_0x300ae7(0x15e)][_0x300ae7(0x16a)]});});});}function request(_0x46d73e){const _0x152feb=a1311_0x1a5093;return logger['debug']('[HTTP]',JSON[_0x152feb(0x192)](_0x46d73e)),rp(_['merge'](def,_0x46d73e));}function getConnection(_0x5eb327){const _0xce7443=a1311_0x1a5093;return request({'method':_0xce7443(0x14d),'form':{'method':'login','input_type':'JSON','response_type':_0xce7443(0x163),'rest_data':JSON[_0xce7443(0x192)]({'user_auth':{'user_name':_0x5eb327[_0xce7443(0x14e)],'password':_0x5eb327[_0xce7443(0x16f)],'encryption':_0xce7443(0x19c)},'application':_0xce7443(0x14b)})}})['then'](function(_0x193198){const _0x2c1738=_0xce7443,_0x27e7ef=_0x193198;if(_0x27e7ef['id'])return def[_0x2c1738(0x17e)]=_0x27e7ef['id'],Promise['resolve'](_0x27e7ef);else throw new Error(util[_0x2c1738(0x19d)]('Account\x20%d\x20is\x20not\x20valid',_0x5eb327['id']));});}function setRelationship(_0x1476d0,_0x42b0d8,_0x3f4d57,_0x923161){const _0x2c67d8=a1311_0x1a5093;return request({'form':{'method':_0x2c67d8(0x1ae),'input_type':_0x2c67d8(0x163),'response_type':_0x2c67d8(0x163),'rest_data':JSON[_0x2c67d8(0x192)]({'session':_0x1476d0['id'],'module_name':_0x2c67d8(0x15a),'module_id':_0x3f4d57['id'],'link_field_name':_0x923161,'related_ids':[_0x42b0d8['id']]})}});}exports['queue']=function(_0x4a7c38,_0x328028,_0x48c1ba,_0x1a9376,_0x395713,_0x3dfaf1){const _0x5cf4de=a1311_0x1a5093;let _0x5e422a,_0x2a3a86,_0x39b515,_0xc12d2a;return _0x3dfaf1[_0x5cf4de(0x176)]=intUtil[_0x5cf4de(0x157)](_0x3dfaf1[_0x5cf4de(0x176)]),_0x3dfaf1[_0x5cf4de(0x15b)]=intUtil['stripTrailingSlash'](_0x3dfaf1['serverUrl']),def[_0x5cf4de(0x1a3)]=util['format'](_0x5cf4de(0x1a0),_0x3dfaf1['remoteUri']),_0x395713&&_0x395713[_0x5cf4de(0x198)]?(logger[_0x5cf4de(0x179)](_0x5cf4de(0x153),_0x5cf4de(0x15f)),_0x328028['recordingURL']=util['format']('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x3dfaf1[_0x5cf4de(0x15b)],_0x328028['uniqueid'],md5(_0x328028['uniqueid']))):_0x328028[_0x5cf4de(0x173)]='',getConnection(_0x3dfaf1)[_0x5cf4de(0x18a)](function(_0x2422b8){const _0x2e95f3=_0x5cf4de;return _0xc12d2a=_0x2422b8,getUser(_0x3dfaf1,_0x1a9376[_0x2e95f3(0x164)],_0xc12d2a);})[_0x5cf4de(0x18a)](function(_0x1bcc8e){const _0x524eb8=_0x5cf4de;return _0x5e422a=_0x1bcc8e,logger['info'](_0x524eb8(0x175),_0x5e422a['id']),getEndUser(_0x3dfaf1,_0x328028[_0x524eb8(0x180)],_0x328028[_0x524eb8(0x194)],_0xc12d2a);})['then'](function(_0x56c235){const _0xae3a15=_0x5cf4de;return _0x2a3a86=_0x56c235,logger['info'](_0xae3a15(0x1af),_0x2a3a86['id']),getTicket(_0x3dfaf1,_0x5e422a,_0x2a3a86,_0x48c1ba,_0x328028,_0x48c1ba['Fields'],_0xc12d2a,_0xae3a15(0x154));})['then'](function(_0x393a16){const _0x1c106b=_0x5cf4de;return _0x39b515=_0x393a16,logger[_0x1c106b(0x179)](_0x1c106b(0x1a7)),logger[_0x1c106b(0x179)](_0x1c106b(0x195),_0x39b515['id']),setRelationship(_0xc12d2a,_0x5e422a,_0x39b515,_0x1c106b(0x151));})[_0x5cf4de(0x18a)](function(){return setRelationship(_0xc12d2a,_0x2a3a86,_0x39b515,'contacts');})['then'](function(){return getServerInfo(_0xc12d2a);})[_0x5cf4de(0x18a)](function(_0x2a0348){const _0x3a7036=_0x5cf4de,_0x56a1f9=parseInt(_0x2a0348[_0x3a7036(0x186)][_0x3a7036(0x185)](0x0));let _0x1765f1=util[_0x3a7036(0x19d)](_0x3a7036(0x18b),_0x3dfaf1[_0x3a7036(0x176)],_0x39b515['id']);_0x56a1f9>0x6&&(_0x1765f1=util[_0x3a7036(0x19d)]('%s/#bwc/index.php?module=Calls&action=EditView&record=%s',_0x3dfaf1[_0x3a7036(0x176)],_0x39b515['id'])),logger[_0x3a7036(0x179)](_0x3a7036(0x153),_0x3a7036(0x178)),emit(util['format'](_0x3a7036(0x187),_0x1a9376[_0x3a7036(0x164)]),_0x3a7036(0x16b),{'uri':_0x1765f1});})['catch'](function(_0x492f1b){const _0x6288a0=_0x5cf4de;logger[_0x6288a0(0x1ad)]('[QUEUE]',JSON[_0x6288a0(0x192)](_0x492f1b));});},exports[a1311_0x1a5093(0x1a9)]=function(_0xc3be02,_0x5b34b3,_0xbfd2d4,_0x3c6342,_0x2eae0a,_0x44f27d,_0x45f7cc){const _0x293468=a1311_0x1a5093;let _0x2f2b76,_0x448719,_0xac621,_0x524249;return _0x44f27d['remoteUri']=intUtil[_0x293468(0x157)](_0x44f27d['remoteUri']),_0x44f27d['serverUrl']=intUtil[_0x293468(0x157)](_0x44f27d[_0x293468(0x15b)]),def['uri']=util['format'](_0x293468(0x1a0),_0x44f27d[_0x293468(0x176)]),_0x45f7cc&&_0x45f7cc[_0x293468(0x18d)]&&_0x45f7cc[_0x293468(0x18d)]!==_0x293468(0x1ac)&&(logger[_0x293468(0x179)](_0x293468(0x1aa),'Recording\x20is\x20enabled!'),_0x5b34b3['recordingURL']=util[_0x293468(0x19d)](_0x293468(0x184),_0x44f27d[_0x293468(0x15b)],_0x5b34b3[_0x293468(0x161)],md5(_0x5b34b3['uniqueid']))),getConnection(_0x44f27d)[_0x293468(0x18a)](function(_0xecbb28){const _0x17a63e=_0x293468;return _0x524249=_0xecbb28,getUser(_0x44f27d,_0x3c6342[_0x17a63e(0x164)],_0x524249);})['then'](function(_0x297c7a){const _0x412283=_0x293468;return _0x2f2b76=_0x297c7a,logger['info'](_0x412283(0x175),_0x2f2b76['id']),getEndUser(_0x44f27d,_0x5b34b3[_0x412283(0x196)],_0x5b34b3['destcalleridnum'],_0x524249);})[_0x293468(0x18a)](function(_0x4aaf75){const _0x5af531=_0x293468;return _0x448719=_0x4aaf75,logger['info']('The\x20Enduser\x20ID\x20is:',_0x448719['id']),getTicket(_0x44f27d,_0x2f2b76,_0x448719,_0xbfd2d4,_0x5b34b3,_0xbfd2d4['Fields'],_0x524249,_0x5af531(0x150));})[_0x293468(0x18a)](function(_0x2346b6){const _0x48e1c2=_0x293468;return _0xac621=_0x2346b6,logger[_0x48e1c2(0x179)]('Ticket\x20created!'),logger[_0x48e1c2(0x179)](_0x48e1c2(0x195),_0xac621['id']),setRelationship(_0x524249,_0x2f2b76,_0xac621,'users');})[_0x293468(0x18a)](function(){const _0x541da6=_0x293468;return setRelationship(_0x524249,_0x448719,_0xac621,_0x541da6(0x193));})[_0x293468(0x18a)](function(){return getServerInfo(_0x524249);})[_0x293468(0x18a)](function(_0x46c0ab){const _0x484ea9=_0x293468,_0x5aeee2=parseInt(_0x46c0ab[_0x484ea9(0x186)][_0x484ea9(0x185)](0x0));let _0x57e867=util[_0x484ea9(0x19d)](_0x484ea9(0x18b),_0x44f27d[_0x484ea9(0x176)],_0xac621['id']);_0x5aeee2>0x6&&(_0x57e867=util[_0x484ea9(0x19d)](_0x484ea9(0x156),_0x44f27d[_0x484ea9(0x176)],_0xac621['id'])),logger[_0x484ea9(0x179)](_0x484ea9(0x1aa),_0x484ea9(0x178)),emit(util[_0x484ea9(0x19d)]('user:%s',_0x3c6342[_0x484ea9(0x164)]),_0x484ea9(0x16b),{'uri':_0x57e867});})[_0x293468(0x1ab)](function(_0x28b3fa){const _0xd95ce2=_0x293468;logger[_0xd95ce2(0x1ad)](_0xd95ce2(0x1aa),JSON[_0xd95ce2(0x192)](_0x28b3fa));});},exports['unmanaged']=function(_0x4bfbf4,_0xfa2b9e,_0x35eab5,_0x200662,_0x48b2ac,_0x36a9d0){const _0x409fe4=a1311_0x1a5093;let _0x398872,_0x5d4699,_0x3a402a,_0x5595a1;return _0x36a9d0['remoteUri']=intUtil[_0x409fe4(0x157)](_0x36a9d0[_0x409fe4(0x176)]),_0x36a9d0[_0x409fe4(0x15b)]=intUtil['stripTrailingSlash'](_0x36a9d0[_0x409fe4(0x15b)]),def[_0x409fe4(0x1a3)]=util[_0x409fe4(0x19d)](_0x409fe4(0x1a0),_0x36a9d0[_0x409fe4(0x176)]),_0x48b2ac&&_0x48b2ac[_0x409fe4(0x198)]?(logger[_0x409fe4(0x179)]('['+_0xfa2b9e[_0x409fe4(0x19a)][_0x409fe4(0x168)]()+']',_0x409fe4(0x15f)),_0xfa2b9e[_0x409fe4(0x173)]=util[_0x409fe4(0x19d)](_0x409fe4(0x184),_0x36a9d0[_0x409fe4(0x15b)],_0xfa2b9e['uniqueid'],md5(_0xfa2b9e[_0x409fe4(0x161)]))):_0xfa2b9e[_0x409fe4(0x173)]='',getConnection(_0x36a9d0)[_0x409fe4(0x18a)](function(_0x22faf2){const _0x543171=_0x409fe4;return _0x5595a1=_0x22faf2,!_[_0x543171(0x17d)](_0x200662)?getUser(_0x36a9d0,_0x200662['name'],_0x5595a1):getUser(_0x36a9d0,null,_0x5595a1);})['then'](function(_0x261565){const _0x5c55ed=_0x409fe4;return _0x398872=_0x261565,logger[_0x5c55ed(0x179)](_0x5c55ed(0x175),_0x398872['id']),getEndUser(_0x36a9d0,_0xfa2b9e[_0x5c55ed(0x180)],_0xfa2b9e['calleridnum'],_0x5595a1);})[_0x409fe4(0x18a)](function(_0xffa709){const _0x1680fb=_0x409fe4;return _0x5d4699=_0xffa709,logger[_0x1680fb(0x179)](_0x1680fb(0x1af),_0x5d4699['id']),getTicket(_0x36a9d0,_0x398872,_0x5d4699,_0x35eab5,_0xfa2b9e,_0x35eab5[_0x1680fb(0x1a8)],_0x5595a1,_0x1680fb(0x154));})[_0x409fe4(0x18a)](function(_0x5bd7a5){const _0x3cd9fb=_0x409fe4;return _0x3a402a=_0x5bd7a5,logger[_0x3cd9fb(0x179)]('Ticket\x20created!'),logger[_0x3cd9fb(0x179)](_0x3cd9fb(0x195),_0x3a402a['id']),setRelationship(_0x5595a1,_0x398872,_0x3a402a,_0x3cd9fb(0x151));})[_0x409fe4(0x18a)](function(){const _0x3099d8=_0x409fe4;return setRelationship(_0x5595a1,_0x5d4699,_0x3a402a,_0x3099d8(0x193));})[_0x409fe4(0x18a)](function(){return getServerInfo(_0x5595a1);})[_0x409fe4(0x1ab)](function(_0x1365f6){const _0x31bb60=_0x409fe4;logger[_0x31bb60(0x1ad)]('['+_0xfa2b9e[_0x31bb60(0x19a)][_0x31bb60(0x168)]()+']',JSON[_0x31bb60(0x192)](_0x1365f6));});}; \ No newline at end of file +const a1311_0xffd4=['get_entry_list','getString','JSON','recordingFormat','find','format','push','value','phone_home','calleridname','monitor_format','charAt','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','Contacts','destcalleridname','forEach','entry_list','stringify','%s/#bwc/index.php?module=Calls&action=EditView&record=%s','lodash','outbound','user_id','name','idField','Recording\x20is\x20enabled!','then','set_relationship','Calls','[QUEUE]','length','name_value_list','slice','parent_id','user:%s','user_name','Inbound','The\x20User\x20ID\x20is:','users','Outbound','destcalleridnum','Creating\x20new\x20ticket...','resolve','remoteUri','./util','duration_minutes','merge','date_start','trigger:browser:url','Fields','INSTR\x20(\x20users.user_name,\x20\x22%s\x22)\x20>\x200','The\x20Enduser\x20ID\x20is:','Searching\x20enduser\x20with\x20phone','variableName','version','isNil','password','request-promise-native','created_by','util','calleridnum','lastevent','replace','serverUrl','uri','uniqueid','info','%s/service/v4_1/rest.php','recordingURL','../../../../config/logger','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','error','duration_hours','[HTTP]','%s/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DCalls%26action%3DEditView%26record%3D%s','PLAIN','contacts','md5','emit','POST','set_entry','Subjects','unmanaged','debug','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','catch','direction','username','Caller\x20-\x20%s','first_name','Agent\x20found!','parent_name','[OUTBOUND]','description','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','The\x20Ticket\x20ID\x20is:','stripTrailingSlash','Ticket\x20created!','toUpperCase','none','assigned_user_id','toISOString'];(function(_0x2ef6e0,_0x5dd7d3){const _0xffd42e=function(_0x5e5b1c){while(--_0x5e5b1c){_0x2ef6e0['push'](_0x2ef6e0['shift']());}};_0xffd42e(++_0x5dd7d3);}(a1311_0xffd4,0x194));const a1311_0x5e5b=function(_0x2ef6e0,_0x5dd7d3){_0x2ef6e0=_0x2ef6e0-0x115;let _0xffd42e=a1311_0xffd4[_0x2ef6e0];return _0xffd42e;};const a1311_0x21d7f0=a1311_0x5e5b;'use strict';const _=require(a1311_0x21d7f0(0x128)),rp=require(a1311_0x21d7f0(0x14d)),md5=require(a1311_0x21d7f0(0x161)),util=require(a1311_0x21d7f0(0x14f)),intUtil=require(a1311_0x21d7f0(0x140)),logger=require(a1311_0x21d7f0(0x159))('sugarcrm'),{getSocket}=require('../../../../rediscache'),io=getSocket(),def={'method':a1311_0x21d7f0(0x163),'json':!![]};function emit(_0x186144,_0xbef074,_0x4882b8){const _0x345eb3=a1311_0x21d7f0;io['to'](_0x186144)[_0x345eb3(0x162)](_0xbef074,_0x4882b8);}function getTicket(_0x47d280,_0x564540,_0x46bfde,_0x512c8d,_0x1a631d,_0x5dd9d8,_0x414929,_0x3ee7b8){const _0x123e6d=a1311_0x21d7f0;logger[_0x123e6d(0x156)](_0x123e6d(0x13d));const _0x3a809f=new Date(),_0x53bd55=[{'name':_0x123e6d(0x12b),'value':intUtil[_0x123e6d(0x116)](_0x512c8d[_0x123e6d(0x165)],_0x1a631d,'\x20')},{'name':_0x123e6d(0x178),'value':_0x564540['id']},{'name':_0x123e6d(0x14e),'value':_0x564540['id']},{'name':_0x123e6d(0x171),'value':intUtil['getString'](_0x512c8d['Descriptions'],_0x1a631d,'\x0a')},{'name':_0x123e6d(0x143),'value':_0x3a809f[_0x123e6d(0x179)]()[_0x123e6d(0x134)](0x0,0x13)[_0x123e6d(0x152)]('T','\x20')},{'name':_0x123e6d(0x15c),'value':'0'},{'name':_0x123e6d(0x141),'value':'15'},{'name':_0x123e6d(0x135),'value':_0x46bfde['id']},{'name':'parent_type','value':_0x123e6d(0x122)},{'name':_0x123e6d(0x16f),'value':_0x46bfde[_0x123e6d(0x12b)]},{'name':_0x123e6d(0x16a),'value':_0x3ee7b8}];return _0x5dd9d8[_0x123e6d(0x132)]&&_[_0x123e6d(0x124)](_0x5dd9d8,function(_0x29f0cb){const _0x53d385=_0x123e6d;_0x1a631d[_0x29f0cb[_0x53d385(0x149)]]&&_0x53bd55[_0x53d385(0x11b)]({'name':_0x29f0cb[_0x53d385(0x12c)],'value':_0x1a631d[_0x29f0cb['variableName']]});}),request({'form':{'method':_0x123e6d(0x164),'input_type':_0x123e6d(0x117),'response_type':_0x123e6d(0x117),'rest_data':JSON['stringify']({'session':_0x414929['id'],'module_name':_0x123e6d(0x130),'name_value_list':_0x53bd55})}});}function getServerInfo(_0x1684d1){const _0x521770=a1311_0x21d7f0;return request({'form':{'method':'get_server_info','input_type':_0x521770(0x117),'response_type':_0x521770(0x117),'rest_data':JSON[_0x521770(0x126)]({'session':_0x1684d1['id']})}});}function getUser(_0x40b308,_0x53d474,_0x132623){const _0x58c710=a1311_0x21d7f0;return!_['isNil'](_0x53d474)?(logger[_0x58c710(0x156)]('Getting\x20agent\x20with\x20name',_0x53d474),request({'form':{'method':_0x58c710(0x115),'input_type':_0x58c710(0x117),'response_type':_0x58c710(0x117),'rest_data':JSON[_0x58c710(0x126)]({'session':_0x132623['id'],'module_name':'Employees','query':util[_0x58c710(0x11a)](_0x58c710(0x146),_0x53d474),'order_by':'','offset':'0','select_fields':['id',_0x58c710(0x12b),_0x58c710(0x137)],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})['then'](function(_0x503cdb){const _0x514464=_0x58c710;if(_0x503cdb['entry_list'][_0x514464(0x132)]){const _0x2ddf20=_['find'](_0x503cdb[_0x514464(0x125)],function(_0x5ec46d){const _0x5026b6=_0x514464;return _0x5ec46d[_0x5026b6(0x133)][_0x5026b6(0x137)][_0x5026b6(0x11c)]===_0x53d474;});if(_0x2ddf20)return logger[_0x514464(0x156)](_0x514464(0x16e)),Promise[_0x514464(0x13e)]({'id':_0x2ddf20['name_value_list']['id'][_0x514464(0x11c)],'name':_0x2ddf20[_0x514464(0x133)][_0x514464(0x12b)][_0x514464(0x11c)]});}return logger[_0x514464(0x156)](_0x514464(0x172)),Promise[_0x514464(0x13e)]({'id':_0x132623[_0x514464(0x133)][_0x514464(0x12a)][_0x514464(0x11c)],'name':_0x132623[_0x514464(0x133)][_0x514464(0x137)]['value']});})):(logger[_0x58c710(0x156)]('Agent\x20not\x20available,\x20using\x20the\x20admin\x20account!'),Promise['resolve']({'id':_0x132623[_0x58c710(0x133)][_0x58c710(0x12a)][_0x58c710(0x11c)],'name':_0x132623['name_value_list'][_0x58c710(0x137)][_0x58c710(0x11c)]}));}function getEndUser(_0x40d61c,_0x34bc5f,_0x4d5f7b,_0xb9fb05){const _0x4a801e=a1311_0x21d7f0;return logger[_0x4a801e(0x156)](_0x4a801e(0x148),_0x4d5f7b),request({'form':{'method':_0x4a801e(0x115),'input_type':'JSON','response_type':'JSON','rest_data':JSON[_0x4a801e(0x126)]({'session':_0xb9fb05['id'],'module_name':_0x4a801e(0x122),'query':util['format']('contacts.phone_home\x20=\x20\x22%s\x22',_0x4d5f7b),'order_by':'','offset':'0','select_fields':['id','name',_0x4a801e(0x11d)],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0x4a801e(0x12e)](function(_0x54b982){const _0x51f8f4=_0x4a801e;if(_0x54b982['entry_list'][_0x51f8f4(0x132)]){const _0x168a86=_[_0x51f8f4(0x119)](_0x54b982[_0x51f8f4(0x125)],function(_0x339013){const _0x1069cd=_0x51f8f4;return _0x339013['name_value_list'][_0x1069cd(0x11d)][_0x1069cd(0x11c)]===_0x4d5f7b;});if(_0x168a86)return logger[_0x51f8f4(0x156)]('Enduser\x20found!'),Promise[_0x51f8f4(0x13e)]({'id':_0x168a86['name_value_list']['id'][_0x51f8f4(0x11c)],'name':_0x168a86[_0x51f8f4(0x133)]['name'][_0x51f8f4(0x11c)],'phone':_0x168a86[_0x51f8f4(0x133)]['phone_home'][_0x51f8f4(0x11c)]});}else return logger[_0x51f8f4(0x156)](_0x51f8f4(0x121)),request({'form':{'method':'set_entry','input_type':_0x51f8f4(0x117),'response_type':'JSON','rest_data':JSON[_0x51f8f4(0x126)]({'session':_0xb9fb05['id'],'module_name':_0x51f8f4(0x122),'name_value_list':[{'name':_0x51f8f4(0x16d),'value':_0x34bc5f!==''?_0x34bc5f:util['format'](_0x51f8f4(0x16c),_0x4d5f7b)},{'name':_0x51f8f4(0x11d),'value':_0x4d5f7b}]})}})[_0x51f8f4(0x12e)](function(_0x3c95bd){const _0x100312=_0x51f8f4;return logger[_0x100312(0x156)]('Enduser\x20created.'),Promise[_0x100312(0x13e)]({'id':_0x3c95bd['id'],'name':_0x3c95bd[_0x100312(0x125)][_0x100312(0x16d)][_0x100312(0x11c)],'phone':_0x3c95bd[_0x100312(0x125)][_0x100312(0x11d)][_0x100312(0x11c)]});});});}function request(_0x4d304b){const _0x188ffe=a1311_0x21d7f0;return logger[_0x188ffe(0x167)](_0x188ffe(0x15d),JSON[_0x188ffe(0x126)](_0x4d304b)),rp(_[_0x188ffe(0x142)](def,_0x4d304b));}function getConnection(_0x217ea5){const _0x238c0b=a1311_0x21d7f0;return request({'method':_0x238c0b(0x163),'form':{'method':'login','input_type':_0x238c0b(0x117),'response_type':_0x238c0b(0x117),'rest_data':JSON['stringify']({'user_auth':{'user_name':_0x217ea5[_0x238c0b(0x16b)],'password':_0x217ea5[_0x238c0b(0x14c)],'encryption':_0x238c0b(0x15f)},'application':'xCALLY\x20Motion\x20integration'})}})[_0x238c0b(0x12e)](function(_0x235330){const _0x103f0e=_0x238c0b,_0x300f26=_0x235330;if(_0x300f26['id'])return def['sessionID']=_0x300f26['id'],Promise[_0x103f0e(0x13e)](_0x300f26);else throw new Error(util[_0x103f0e(0x11a)]('Account\x20%d\x20is\x20not\x20valid',_0x217ea5['id']));});}function setRelationship(_0x8ff642,_0x5768d6,_0x1ac7ff,_0x188b46){const _0x3f213b=a1311_0x21d7f0;return request({'form':{'method':_0x3f213b(0x12f),'input_type':_0x3f213b(0x117),'response_type':'JSON','rest_data':JSON['stringify']({'session':_0x8ff642['id'],'module_name':'Calls','module_id':_0x1ac7ff['id'],'link_field_name':_0x188b46,'related_ids':[_0x5768d6['id']]})}});}exports['queue']=function(_0x5e1721,_0x34f0ab,_0x22c246,_0x3b23c7,_0x18f37f,_0x2c768d){const _0x613ad0=a1311_0x21d7f0;let _0x3931a2,_0x4adaad,_0x5ef807,_0x4d1e85;return _0x2c768d[_0x613ad0(0x13f)]=intUtil[_0x613ad0(0x174)](_0x2c768d[_0x613ad0(0x13f)]),_0x2c768d[_0x613ad0(0x153)]=intUtil[_0x613ad0(0x174)](_0x2c768d['serverUrl']),def[_0x613ad0(0x154)]=util['format'](_0x613ad0(0x157),_0x2c768d[_0x613ad0(0x13f)]),_0x18f37f&&_0x18f37f[_0x613ad0(0x11f)]?(logger[_0x613ad0(0x156)](_0x613ad0(0x131),'Recording\x20is\x20enabled!'),_0x34f0ab[_0x613ad0(0x158)]=util[_0x613ad0(0x11a)](_0x613ad0(0x15a),_0x2c768d['serverUrl'],_0x34f0ab['uniqueid'],md5(_0x34f0ab[_0x613ad0(0x155)]))):_0x34f0ab[_0x613ad0(0x158)]='',getConnection(_0x2c768d)[_0x613ad0(0x12e)](function(_0x61192){const _0x40c22c=_0x613ad0;return _0x4d1e85=_0x61192,getUser(_0x2c768d,_0x3b23c7[_0x40c22c(0x12b)],_0x4d1e85);})['then'](function(_0x830a00){const _0x55dc20=_0x613ad0;return _0x3931a2=_0x830a00,logger[_0x55dc20(0x156)](_0x55dc20(0x139),_0x3931a2['id']),getEndUser(_0x2c768d,_0x34f0ab[_0x55dc20(0x11e)],_0x34f0ab[_0x55dc20(0x150)],_0x4d1e85);})['then'](function(_0x464ce1){const _0x2f3e69=_0x613ad0;return _0x4adaad=_0x464ce1,logger[_0x2f3e69(0x156)](_0x2f3e69(0x147),_0x4adaad['id']),getTicket(_0x2c768d,_0x3931a2,_0x4adaad,_0x22c246,_0x34f0ab,_0x22c246[_0x2f3e69(0x145)],_0x4d1e85,'Inbound');})[_0x613ad0(0x12e)](function(_0x6d296e){const _0x1a18b1=_0x613ad0;return _0x5ef807=_0x6d296e,logger[_0x1a18b1(0x156)]('Ticket\x20created!'),logger[_0x1a18b1(0x156)](_0x1a18b1(0x173),_0x5ef807['id']),setRelationship(_0x4d1e85,_0x3931a2,_0x5ef807,_0x1a18b1(0x13a));})[_0x613ad0(0x12e)](function(){const _0x7442b6=_0x613ad0;return setRelationship(_0x4d1e85,_0x4adaad,_0x5ef807,_0x7442b6(0x160));})[_0x613ad0(0x12e)](function(){return getServerInfo(_0x4d1e85);})[_0x613ad0(0x12e)](function(_0x55efcf){const _0xc790b8=_0x613ad0,_0x2f431d=parseInt(_0x55efcf['version'][_0xc790b8(0x120)](0x0));let _0x3221bf=util[_0xc790b8(0x11a)](_0xc790b8(0x15e),_0x2c768d[_0xc790b8(0x13f)],_0x5ef807['id']);_0x2f431d>0x6&&(_0x3221bf=util['format'](_0xc790b8(0x127),_0x2c768d[_0xc790b8(0x13f)],_0x5ef807['id'])),logger[_0xc790b8(0x156)](_0xc790b8(0x131),_0xc790b8(0x168)),emit(util['format'](_0xc790b8(0x136),_0x3b23c7[_0xc790b8(0x12b)]),_0xc790b8(0x144),{'uri':_0x3221bf});})[_0x613ad0(0x169)](function(_0x46bcbe){const _0x3fa9a1=_0x613ad0;logger['error'](_0x3fa9a1(0x131),JSON['stringify'](_0x46bcbe));});},exports[a1311_0x21d7f0(0x129)]=function(_0x441bb4,_0x401989,_0xb42026,_0x57b6bd,_0x4e529e,_0x2f252c,_0x20ab0b){const _0x2343cd=a1311_0x21d7f0;let _0x5136c6,_0x4b8fdd,_0x571835,_0x3327ef;return _0x2f252c[_0x2343cd(0x13f)]=intUtil[_0x2343cd(0x174)](_0x2f252c[_0x2343cd(0x13f)]),_0x2f252c[_0x2343cd(0x153)]=intUtil[_0x2343cd(0x174)](_0x2f252c[_0x2343cd(0x153)]),def[_0x2343cd(0x154)]=util['format'](_0x2343cd(0x157),_0x2f252c['remoteUri']),_0x20ab0b&&_0x20ab0b[_0x2343cd(0x118)]&&_0x20ab0b['recordingFormat']!==_0x2343cd(0x177)&&(logger['info'](_0x2343cd(0x170),_0x2343cd(0x12d)),_0x401989[_0x2343cd(0x158)]=util[_0x2343cd(0x11a)](_0x2343cd(0x15a),_0x2f252c['serverUrl'],_0x401989[_0x2343cd(0x155)],md5(_0x401989['uniqueid']))),getConnection(_0x2f252c)[_0x2343cd(0x12e)](function(_0x52ba1f){const _0xe4df17=_0x2343cd;return _0x3327ef=_0x52ba1f,getUser(_0x2f252c,_0x57b6bd[_0xe4df17(0x12b)],_0x3327ef);})[_0x2343cd(0x12e)](function(_0x1ca7b5){const _0x15439e=_0x2343cd;return _0x5136c6=_0x1ca7b5,logger[_0x15439e(0x156)](_0x15439e(0x139),_0x5136c6['id']),getEndUser(_0x2f252c,_0x401989[_0x15439e(0x123)],_0x401989[_0x15439e(0x13c)],_0x3327ef);})['then'](function(_0xa99173){const _0x2be67d=_0x2343cd;return _0x4b8fdd=_0xa99173,logger[_0x2be67d(0x156)]('The\x20Enduser\x20ID\x20is:',_0x4b8fdd['id']),getTicket(_0x2f252c,_0x5136c6,_0x4b8fdd,_0xb42026,_0x401989,_0xb42026[_0x2be67d(0x145)],_0x3327ef,_0x2be67d(0x13b));})[_0x2343cd(0x12e)](function(_0x564ca2){const _0x3f7609=_0x2343cd;return _0x571835=_0x564ca2,logger[_0x3f7609(0x156)](_0x3f7609(0x175)),logger[_0x3f7609(0x156)](_0x3f7609(0x173),_0x571835['id']),setRelationship(_0x3327ef,_0x5136c6,_0x571835,_0x3f7609(0x13a));})['then'](function(){return setRelationship(_0x3327ef,_0x4b8fdd,_0x571835,'contacts');})[_0x2343cd(0x12e)](function(){return getServerInfo(_0x3327ef);})[_0x2343cd(0x12e)](function(_0x13a552){const _0x5399fa=_0x2343cd,_0xddd2fa=parseInt(_0x13a552[_0x5399fa(0x14a)][_0x5399fa(0x120)](0x0));let _0x4be9ec=util[_0x5399fa(0x11a)](_0x5399fa(0x15e),_0x2f252c[_0x5399fa(0x13f)],_0x571835['id']);_0xddd2fa>0x6&&(_0x4be9ec=util[_0x5399fa(0x11a)](_0x5399fa(0x127),_0x2f252c[_0x5399fa(0x13f)],_0x571835['id'])),logger[_0x5399fa(0x156)](_0x5399fa(0x170),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x5399fa(0x11a)](_0x5399fa(0x136),_0x57b6bd[_0x5399fa(0x12b)]),_0x5399fa(0x144),{'uri':_0x4be9ec});})['catch'](function(_0x2c7185){const _0x54f539=_0x2343cd;logger['error'](_0x54f539(0x170),JSON[_0x54f539(0x126)](_0x2c7185));});},exports[a1311_0x21d7f0(0x166)]=function(_0x2ac1f8,_0xcdf257,_0x509566,_0x3df52c,_0x3f6a33,_0x3a3dd6){const _0x109f18=a1311_0x21d7f0;let _0x52adf7,_0x13e344,_0x304def,_0x336afc;return _0x3a3dd6['remoteUri']=intUtil[_0x109f18(0x174)](_0x3a3dd6[_0x109f18(0x13f)]),_0x3a3dd6[_0x109f18(0x153)]=intUtil[_0x109f18(0x174)](_0x3a3dd6['serverUrl']),def[_0x109f18(0x154)]=util[_0x109f18(0x11a)](_0x109f18(0x157),_0x3a3dd6['remoteUri']),_0x3f6a33&&_0x3f6a33['monitor_format']?(logger[_0x109f18(0x156)]('['+_0xcdf257[_0x109f18(0x151)]['toUpperCase']()+']','Recording\x20is\x20enabled!'),_0xcdf257['recordingURL']=util[_0x109f18(0x11a)]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x3a3dd6[_0x109f18(0x153)],_0xcdf257[_0x109f18(0x155)],md5(_0xcdf257[_0x109f18(0x155)]))):_0xcdf257[_0x109f18(0x158)]='',getConnection(_0x3a3dd6)[_0x109f18(0x12e)](function(_0xfd8724){const _0x2d0837=_0x109f18;return _0x336afc=_0xfd8724,!_[_0x2d0837(0x14b)](_0x3df52c)?getUser(_0x3a3dd6,_0x3df52c[_0x2d0837(0x12b)],_0x336afc):getUser(_0x3a3dd6,null,_0x336afc);})[_0x109f18(0x12e)](function(_0x4267c8){const _0x4ead0d=_0x109f18;return _0x52adf7=_0x4267c8,logger[_0x4ead0d(0x156)](_0x4ead0d(0x139),_0x52adf7['id']),getEndUser(_0x3a3dd6,_0xcdf257['calleridname'],_0xcdf257[_0x4ead0d(0x150)],_0x336afc);})[_0x109f18(0x12e)](function(_0x30de08){const _0x318103=_0x109f18;return _0x13e344=_0x30de08,logger[_0x318103(0x156)](_0x318103(0x147),_0x13e344['id']),getTicket(_0x3a3dd6,_0x52adf7,_0x13e344,_0x509566,_0xcdf257,_0x509566[_0x318103(0x145)],_0x336afc,_0x318103(0x138));})[_0x109f18(0x12e)](function(_0x1ff27d){const _0x16f9d2=_0x109f18;return _0x304def=_0x1ff27d,logger['info']('Ticket\x20created!'),logger[_0x16f9d2(0x156)](_0x16f9d2(0x173),_0x304def['id']),setRelationship(_0x336afc,_0x52adf7,_0x304def,_0x16f9d2(0x13a));})['then'](function(){const _0x4d40ed=_0x109f18;return setRelationship(_0x336afc,_0x13e344,_0x304def,_0x4d40ed(0x160));})[_0x109f18(0x12e)](function(){return getServerInfo(_0x336afc);})[_0x109f18(0x169)](function(_0x2c5eb0){const _0x96aed=_0x109f18;logger[_0x96aed(0x15b)]('['+_0xcdf257[_0x96aed(0x151)][_0x96aed(0x176)]()+']',JSON[_0x96aed(0x126)](_0x2c5eb0));});}; \ 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 3340e8e..f2e9a67 100644 --- a/server/services/ami/trigger/integration/util.js +++ b/server/services/ami/trigger/integration/util.js @@ -1 +1 @@ -const a1312_0x1533=['Variable','name','push','string','key','toLowerCase','join','util','keyValue','keyType','isNil','lastIndexOf','length','type','toString','variable','customVariable','variableName','substring','content','%s:\x20%s','format','validateEmail','test','sortBy'];(function(_0x47417e,_0x1de2e3){const _0x15336c=function(_0x1c3300){while(--_0x1c3300){_0x47417e['push'](_0x47417e['shift']());}};_0x15336c(++_0x1de2e3);}(a1312_0x1533,0xe0));const a1312_0x1c33=function(_0x47417e,_0x1de2e3){_0x47417e=_0x47417e-0xa4;let _0x15336c=a1312_0x1533[_0x47417e];return _0x15336c;};const a1312_0x36a41e=a1312_0x1c33;'use strict';const _=require('lodash'),util=require(a1312_0x36a41e(0xac));exports['getString']=function(_0x592476,_0x1923b5,_0xb91d8b){const _0x304e01=a1312_0x36a41e,_0x54f154=[];if(_0x592476[_0x304e01(0xb1)]>0x0){const _0x1c52f6=_[_0x304e01(0xa4)](_0x592476,['id']);for(let _0x25a320=0x0;_0x25a320<_0x1c52f6['length'];_0x25a320++){const _0x325d9f=_0x1c52f6[_0x25a320];if(_0x325d9f[_0x304e01(0xb2)]===_0x304e01(0xa8))_0x54f154[_0x304e01(0xa7)](_0x325d9f[_0x304e01(0xb8)]);else{if(_0x325d9f[_0x304e01(0xb2)]===_0x304e01(0xb4)&&_0x325d9f[_0x304e01(0xb6)])_0x1923b5[_0x325d9f[_0x304e01(0xb6)]]&&_0x54f154[_0x304e01(0xa7)](_0x1923b5[_0x325d9f[_0x304e01(0xb6)]][_0x304e01(0xb3)]());else{if(_0x325d9f[_0x304e01(0xb2)]===_0x304e01(0xb5)&&_0x325d9f[_0x304e01(0xa5)]&&_0x325d9f[_0x304e01(0xa5)]['name'])_0x1923b5[_0x325d9f[_0x304e01(0xa5)][_0x304e01(0xa6)][_0x304e01(0xaa)]()]&&_0x54f154[_0x304e01(0xa7)](_0x1923b5[_0x325d9f[_0x304e01(0xa5)][_0x304e01(0xa6)]['toLowerCase']()]['toString']());else{if(_0x325d9f['type']===_0x304e01(0xad)){if(_0x325d9f[_0x304e01(0xae)]===_0x304e01(0xa8)&&_0x325d9f[_0x304e01(0xa9)])_0x54f154[_0x304e01(0xa7)](util['format'](_0x304e01(0xb9),_0x325d9f[_0x304e01(0xa9)],_0x325d9f['keyContent']));else{if(_0x325d9f[_0x304e01(0xae)]==='variable'&&_0x325d9f[_0x304e01(0xb6)]&&_0x325d9f[_0x304e01(0xa9)])_0x1923b5[_0x325d9f[_0x304e01(0xb6)]]&&_0x54f154[_0x304e01(0xa7)](util[_0x304e01(0xba)](_0x304e01(0xb9),_0x325d9f['key'],_0x1923b5[_0x325d9f['variableName']]));else _0x325d9f[_0x304e01(0xae)]==='customVariable'&&_0x325d9f[_0x304e01(0xa5)]&&_0x325d9f['Variable'][_0x304e01(0xa6)]&&_0x325d9f[_0x304e01(0xa9)]&&(_0x1923b5[_0x325d9f['Variable'][_0x304e01(0xa6)]['toLowerCase']()]&&_0x54f154[_0x304e01(0xa7)](util[_0x304e01(0xba)]('%s:\x20%s',_0x325d9f[_0x304e01(0xa9)],_0x1923b5[_0x325d9f[_0x304e01(0xa5)][_0x304e01(0xa6)]['toLowerCase']()])));}}}}}}}return _0x54f154[_0x304e01(0xab)](_0xb91d8b);},exports['stripTrailingSlash']=function(_0x5d86b9){const _0x62ebbc=a1312_0x36a41e,_0x5d4733=_0x5d86b9['slice'](-0x1);return _0x5d4733==='/'&&(_0x5d86b9=_0x5d86b9[_0x62ebbc(0xb7)](0x0,_0x5d86b9[_0x62ebbc(0xb0)](_0x5d4733))),_0x5d86b9;},exports[a1312_0x36a41e(0xbb)]=function(_0x1436d1){const _0x451b56=a1312_0x36a41e;if(!_[_0x451b56(0xaf)](_0x1436d1)&&_0x1436d1!==''){const _0xd3d583=/^(([^<>()[\]\\.,;:\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 _0xd3d583[_0x451b56(0xbc)](String(_0x1436d1)[_0x451b56(0xaa)]());}else return![];}; \ No newline at end of file +const a1312_0x4cad=['sortBy','toString','format','validateEmail','slice','name','key','keyContent','customVariable','variableName','%s:\x20%s','variable','util','stripTrailingSlash','substring','getString','lodash','Variable','keyType','test','string','length','isNil','push','type','toLowerCase','keyValue','join'];(function(_0x18f6e1,_0x53d46d){const _0x4cadf0=function(_0x45cdb0){while(--_0x45cdb0){_0x18f6e1['push'](_0x18f6e1['shift']());}};_0x4cadf0(++_0x53d46d);}(a1312_0x4cad,0x17d));const a1312_0x45cd=function(_0x18f6e1,_0x53d46d){_0x18f6e1=_0x18f6e1-0xaa;let _0x4cadf0=a1312_0x4cad[_0x18f6e1];return _0x4cadf0;};const a1312_0x162de2=a1312_0x45cd;'use strict';const _=require(a1312_0x162de2(0xc5)),util=require(a1312_0x162de2(0xc1));exports[a1312_0x162de2(0xc4)]=function(_0x33dd26,_0x2d670c,_0x13db67){const _0xd982cd=a1312_0x162de2,_0x59d279=[];if(_0x33dd26[_0xd982cd(0xae)]>0x0){const _0x1d6b3a=_[_0xd982cd(0xb5)](_0x33dd26,['id']);for(let _0x32544b=0x0;_0x32544b<_0x1d6b3a['length'];_0x32544b++){const _0x2b7249=_0x1d6b3a[_0x32544b];if(_0x2b7249['type']===_0xd982cd(0xad))_0x59d279[_0xd982cd(0xb0)](_0x2b7249['content']);else{if(_0x2b7249['type']===_0xd982cd(0xc0)&&_0x2b7249['variableName'])_0x2d670c[_0x2b7249[_0xd982cd(0xbe)]]&&_0x59d279[_0xd982cd(0xb0)](_0x2d670c[_0x2b7249[_0xd982cd(0xbe)]]['toString']());else{if(_0x2b7249[_0xd982cd(0xb1)]==='customVariable'&&_0x2b7249[_0xd982cd(0xaa)]&&_0x2b7249[_0xd982cd(0xaa)][_0xd982cd(0xba)])_0x2d670c[_0x2b7249[_0xd982cd(0xaa)][_0xd982cd(0xba)]['toLowerCase']()]&&_0x59d279['push'](_0x2d670c[_0x2b7249[_0xd982cd(0xaa)]['name'][_0xd982cd(0xb2)]()][_0xd982cd(0xb6)]());else{if(_0x2b7249[_0xd982cd(0xb1)]===_0xd982cd(0xb3)){if(_0x2b7249[_0xd982cd(0xab)]==='string'&&_0x2b7249['key'])_0x59d279[_0xd982cd(0xb0)](util[_0xd982cd(0xb7)]('%s:\x20%s',_0x2b7249['key'],_0x2b7249[_0xd982cd(0xbc)]));else{if(_0x2b7249[_0xd982cd(0xab)]===_0xd982cd(0xc0)&&_0x2b7249['variableName']&&_0x2b7249[_0xd982cd(0xbb)])_0x2d670c[_0x2b7249['variableName']]&&_0x59d279['push'](util[_0xd982cd(0xb7)](_0xd982cd(0xbf),_0x2b7249[_0xd982cd(0xbb)],_0x2d670c[_0x2b7249[_0xd982cd(0xbe)]]));else _0x2b7249[_0xd982cd(0xab)]===_0xd982cd(0xbd)&&_0x2b7249[_0xd982cd(0xaa)]&&_0x2b7249[_0xd982cd(0xaa)]['name']&&_0x2b7249[_0xd982cd(0xbb)]&&(_0x2d670c[_0x2b7249[_0xd982cd(0xaa)][_0xd982cd(0xba)][_0xd982cd(0xb2)]()]&&_0x59d279[_0xd982cd(0xb0)](util[_0xd982cd(0xb7)]('%s:\x20%s',_0x2b7249[_0xd982cd(0xbb)],_0x2d670c[_0x2b7249[_0xd982cd(0xaa)][_0xd982cd(0xba)][_0xd982cd(0xb2)]()])));}}}}}}}return _0x59d279[_0xd982cd(0xb4)](_0x13db67);},exports[a1312_0x162de2(0xc2)]=function(_0x15b8a6){const _0x58a3c7=a1312_0x162de2,_0x3703a9=_0x15b8a6[_0x58a3c7(0xb9)](-0x1);return _0x3703a9==='/'&&(_0x15b8a6=_0x15b8a6[_0x58a3c7(0xc3)](0x0,_0x15b8a6['lastIndexOf'](_0x3703a9))),_0x15b8a6;},exports[a1312_0x162de2(0xb8)]=function(_0x14372c){const _0xfd36e7=a1312_0x162de2;if(!_[_0xfd36e7(0xaf)](_0x14372c)&&_0x14372c!==''){const _0x2c2499=/^(([^<>()[\]\\.,;:\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 _0x2c2499[_0xfd36e7(0xac)](String(_0x14372c)[_0xfd36e7(0xb2)]());}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 49db60c..b25f1e3 100644 --- a/server/services/ami/trigger/integration/vtiger.js +++ b/server/services/ami/trigger/integration/vtiger.js @@ -1 +1 @@ -const a1313_0x26d5=['info','GET','../../../../config/logger','Getting\x20agent\x20with\x20email','split','lodash','Fields','accessKey','Ticket\x20created!','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','success','./util','serverUrl','toString','resolve','createTicket','then','result','lastname','login','recordingFormat','query','lastevent','POST','getUser','create','Variable','Searching\x20end\x20user\x20with\x20phone','validateEmail','The\x20User\x20ID\x20is:','forEach','Ticket\x20could\x20not\x20be\x20created\x20due\x20to:\x20%s','queue','util','destcalleridname','trigger:browser:url','token','monitor_format','format','type','[vTiger],\x20%s,\x20%s,\x20%s','remoteUri','Recording\x20is\x20enabled!','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','statusCode','Subjects','toLowerCase','[HTTP]','recordingURL','stripTrailingSlash','name','merge','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','variable','md5','SELECT\x20first_name,\x20last_name,\x20email1\x20FROM\x20Users\x20WHERE\x20email1=\x27%s\x27;','admin','idField','uniqueid','%s/index.php?module=HelpDesk&view=Detail&record=%s&app=SUPPORT','Enduser\x20found!','calleridname','phone','Creating\x20new\x20ticket...','email1','Normal','Open','catch','[OUTBOUND]','first_name','email','Contacts','username','../../../../rediscache','error','length','HelpDesk','destcalleridnum','[QUEUE]','calleridnum','content','Account\x20%d\x20is\x20not\x20valid','stringify','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','The\x20Enduser\x20ID\x20is:','The\x20Ticket\x20ID\x20is:','sessionName','vTiger','userId','firstname','getString','Agent\x20found!','user:%s','string','toUpperCase','variableName','%s/webservice.php'];(function(_0x410999,_0xd36aeb){const _0x26d510=function(_0x3e872c){while(--_0x3e872c){_0x410999['push'](_0x410999['shift']());}};_0x26d510(++_0xd36aeb);}(a1313_0x26d5,0xff));const a1313_0x3e87=function(_0x410999,_0xd36aeb){_0x410999=_0x410999-0x118;let _0x26d510=a1313_0x26d5[_0x410999];return _0x26d510;};const a1313_0x569e3a=a1313_0x3e87;'use strict';const _=require(a1313_0x569e3a(0x141)),rp=require('request-promise-native'),md5=require(a1313_0x569e3a(0x172)),util=require(a1313_0x569e3a(0x15d)),intUtil=require(a1313_0x569e3a(0x147)),logger=require(a1313_0x569e3a(0x13e))(a1313_0x569e3a(0x132)),{getSocket}=require(a1313_0x569e3a(0x124)),io=getSocket();function emit(_0x5774ce,_0x4b5535,_0x28f3c6){io['to'](_0x5774ce)['emit'](_0x4b5535,_0x28f3c6);}function getCustomFields(_0x228cee,_0x366180){const _0xe61975=a1313_0x569e3a,_0x54c6dd={};return _0x228cee[_0xe61975(0x126)]>0x0&&_[_0xe61975(0x15a)](_0x228cee,function(_0x4e91d1){const _0xf9227d=_0xe61975;if(_0x4e91d1[_0xf9227d(0x163)]===_0xf9227d(0x138)&&_0x4e91d1[_0xf9227d(0x175)])_0x54c6dd[_0x4e91d1['idField']]=_0x4e91d1[_0xf9227d(0x12b)][_0xf9227d(0x149)]();else{if(_0x4e91d1[_0xf9227d(0x163)]===_0xf9227d(0x171)&&_0x4e91d1['variableName']&&_0x4e91d1[_0xf9227d(0x175)]&&_0x366180[_0x4e91d1['variableName']])_0x54c6dd[_0x4e91d1[_0xf9227d(0x175)]]=_0x366180[_0x4e91d1[_0xf9227d(0x13a)]][_0xf9227d(0x149)]();else _0x4e91d1[_0xf9227d(0x163)]==='customVariable'&&_0x4e91d1[_0xf9227d(0x156)]&&_0x4e91d1[_0xf9227d(0x156)][_0xf9227d(0x16e)]&&_0x4e91d1[_0xf9227d(0x175)]&&_0x366180[_0x4e91d1[_0xf9227d(0x156)][_0xf9227d(0x16e)][_0xf9227d(0x16a)]()]&&(_0x54c6dd[_0x4e91d1[_0xf9227d(0x175)]]=_0x366180[_0x4e91d1[_0xf9227d(0x156)][_0xf9227d(0x16e)][_0xf9227d(0x16a)]()]['toString']());}}),_0x54c6dd;}function createTicket(_0x1320d9,_0x2deef8,_0x551c1d,_0x7972b6,_0x35838b,_0x5c0aac,_0x5002b8){const _0x186f11=a1313_0x569e3a;logger[_0x186f11(0x13c)](_0x186f11(0x11a));const _0x3477e5=_[_0x186f11(0x16f)]({'parent_id':'','assigned_user_id':_0x2deef8['id'],'ticketpriorities':_0x186f11(0x11c),'ticketstatus':_0x186f11(0x11d),'ticket_title':intUtil[_0x186f11(0x135)](_0x7972b6[_0x186f11(0x169)],_0x35838b,'\x20'),'description':intUtil['getString'](_0x7972b6['Descriptions'],_0x35838b,'\x0a'),'contact_id':_0x551c1d['id']},getCustomFields(_0x5c0aac,_0x35838b)),_0x4cbc74={'method':_0x186f11(0x153),'uri':util[_0x186f11(0x162)](_0x186f11(0x13b),_0x1320d9[_0x186f11(0x165)]),'form':{'operation':_0x186f11(0x155),'username':_0x1320d9[_0x186f11(0x123)],'sessionName':_0x5002b8[_0x186f11(0x131)],'elementType':_0x186f11(0x127),'element':JSON['stringify'](_0x3477e5)},'json':!![]};return request(_0x4cbc74)[_0x186f11(0x14c)](function(_0x11d529){const _0x39c722=_0x186f11;if(_0x11d529['success'])return Promise[_0x39c722(0x14a)]({'id':_0x11d529[_0x39c722(0x14d)]['id']});else throw new Error(util[_0x39c722(0x162)](_0x39c722(0x15b),JSON[_0x39c722(0x12d)](_0x11d529['error'])));})[_0x186f11(0x11e)](function(_0x1de910){const _0x1f6835=_0x186f11,_0x4611b3=_0x1de910[_0x1f6835(0x168)]||0x1f4;logger[_0x1f6835(0x125)](_0x1f6835(0x164),_0x1f6835(0x14b),_0x4611b3,JSON['stringify'](_0x1de910));});}function getUser(_0x39a7cd,_0x59d353,_0x47c2f1){const _0x53f608=a1313_0x569e3a;return intUtil[_0x53f608(0x158)](_0x59d353)?(logger['info'](_0x53f608(0x13f),_0x59d353),request({'method':_0x53f608(0x13d),'uri':util[_0x53f608(0x162)](_0x53f608(0x13b),_0x39a7cd[_0x53f608(0x165)]),'qs':{'operation':_0x53f608(0x151),'username':_0x39a7cd[_0x53f608(0x123)],'sessionName':_0x47c2f1[_0x53f608(0x131)],'query':util[_0x53f608(0x162)](_0x53f608(0x173),_0x59d353)},'json':!![]})['then'](function(_0x10eeb5){const _0x1d9822=_0x53f608;return _0x10eeb5[_0x1d9822(0x146)]&&_0x10eeb5[_0x1d9822(0x14d)][_0x1d9822(0x126)]?(logger[_0x1d9822(0x13c)](_0x1d9822(0x136)),Promise[_0x1d9822(0x14a)]({'id':_0x10eeb5['result'][0x0]['id'],'email':_0x10eeb5['result'][0x0][_0x1d9822(0x11b)],'name':_0x10eeb5[_0x1d9822(0x14d)][0x0][_0x1d9822(0x120)]+'\x20'+_0x10eeb5['result']['last_name']})):(logger[_0x1d9822(0x13c)]('Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!'),Promise[_0x1d9822(0x14a)]({'id':_0x47c2f1['userId'],'email':_0x39a7cd['username'],'name':_0x1d9822(0x174)}));})[_0x53f608(0x11e)](function(_0x2116bd){const _0x4daf43=_0x53f608,_0x50cdcb=_0x2116bd[_0x4daf43(0x168)]||0x1f4;logger[_0x4daf43(0x125)](_0x4daf43(0x164),'getUser',_0x50cdcb,JSON[_0x4daf43(0x12d)](_0x2116bd));})):(logger[_0x53f608(0x13c)](_0x53f608(0x12e)),Promise[_0x53f608(0x14a)]({'id':_0x47c2f1[_0x53f608(0x133)],'email':_0x39a7cd[_0x53f608(0x123)],'name':'admin'})['catch'](function(_0x404cfa){const _0x5ecf13=_0x53f608,_0x195bdc=_0x404cfa[_0x5ecf13(0x168)]||0x1f4;logger[_0x5ecf13(0x125)](_0x5ecf13(0x164),_0x5ecf13(0x154),_0x195bdc,JSON[_0x5ecf13(0x12d)](_0x404cfa));}));}function getEndUser(_0x938f66,_0xdebaa8,_0x6191e4,_0x6219fb){const _0xfc205f=a1313_0x569e3a;return logger['info'](_0xfc205f(0x157),_0x6191e4),request({'method':_0xfc205f(0x13d),'uri':util['format'](_0xfc205f(0x13b),_0x938f66[_0xfc205f(0x165)]),'qs':{'operation':_0xfc205f(0x151),'username':_0x938f66['username'],'sessionName':_0x6219fb[_0xfc205f(0x131)],'query':util[_0xfc205f(0x162)]('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;',_0x6191e4,_0x6191e4,_0x6191e4,_0x6191e4,_0x6191e4)},'json':!![]})[_0xfc205f(0x14c)](function(_0x5aa118){const _0x14ab3b=_0xfc205f;return _0x5aa118[_0x14ab3b(0x146)]&&_0x5aa118['result']['length']?(logger[_0x14ab3b(0x13c)](_0x14ab3b(0x178)),Promise[_0x14ab3b(0x14a)]({'id':_0x5aa118['result'][0x0]['id'],'name':_0x5aa118['result'][0x0][_0x14ab3b(0x134)]+'\x20'+_0x5aa118[_0x14ab3b(0x14d)][0x0][_0x14ab3b(0x14e)],'phone':_0x6191e4})):(logger['info'](_0x14ab3b(0x145)),request({'method':_0x14ab3b(0x153),'uri':util[_0x14ab3b(0x162)]('%s/webservice.php',_0x938f66[_0x14ab3b(0x165)]),'form':{'operation':_0x14ab3b(0x155),'sessionName':_0x6219fb[_0x14ab3b(0x131)],'elementType':_0x14ab3b(0x122),'element':JSON['stringify']({'lastname':_0xdebaa8,'phone':_0x6191e4,'assigned_user_id':'\x20'})},'json':!![]})[_0x14ab3b(0x14c)](function(_0x4d0b2e){const _0x5de542=_0x14ab3b;return logger[_0x5de542(0x13c)]('Enduser\x20created.'),Promise[_0x5de542(0x14a)]({'id':_0x4d0b2e[_0x5de542(0x14d)]['id'],'name':_0x4d0b2e[_0x5de542(0x14d)][_0x5de542(0x14e)],'phone':_0x4d0b2e[_0x5de542(0x14d)][_0x5de542(0x119)]});})[_0x14ab3b(0x11e)](function(_0x15b067){const _0xe44ec2=_0x14ab3b,_0x5af7e8=_0x15b067[_0xe44ec2(0x168)]||0x1f4;logger[_0xe44ec2(0x125)](_0xe44ec2(0x164),'getEndUser',_0x5af7e8,JSON['stringify'](_0x15b067));}));});}function getConnection(_0x2c10d1){const _0x5bcd97=a1313_0x569e3a,_0x375c15=_0x2c10d1[_0x5bcd97(0x123)],_0x4760db=_0x2c10d1[_0x5bcd97(0x143)];return request({'method':_0x5bcd97(0x13d),'uri':util['format']('%s/webservice.php',_0x2c10d1['remoteUri']),'qs':{'operation':'getchallenge','username':_0x375c15},'json':!![]})['then'](function(_0x593f78){const _0x337dd5=_0x5bcd97;if(_0x593f78[_0x337dd5(0x146)])return request({'method':_0x337dd5(0x153),'uri':util[_0x337dd5(0x162)]('%s/webservice.php',_0x2c10d1['remoteUri']),'form':{'operation':_0x337dd5(0x14f),'username':_0x375c15,'accessKey':md5(_0x593f78[_0x337dd5(0x14d)][_0x337dd5(0x160)]+_0x4760db)},'json':!![]});})[_0x5bcd97(0x14c)](function(_0x22eef6){const _0x4bf4f2=_0x5bcd97;if(_0x22eef6['success'])return Promise[_0x4bf4f2(0x14a)](_0x22eef6[_0x4bf4f2(0x14d)]);else throw new Error(util[_0x4bf4f2(0x162)](_0x4bf4f2(0x12c),_0x2c10d1['id']));})[_0x5bcd97(0x11e)](function(_0x9ca89){const _0x531b4b=_0x5bcd97,_0x388409=_0x9ca89['statusCode']||0x1f4;logger['error']('[vTiger],\x20%s,\x20%s,\x20%s','getConnection',_0x388409,JSON[_0x531b4b(0x12d)](_0x9ca89));});}function request(_0x134cf4){const _0x56ee62=a1313_0x569e3a;return logger[_0x56ee62(0x13c)](_0x56ee62(0x16b),JSON['stringify'](_0x134cf4)),rp(_0x134cf4);}exports[a1313_0x569e3a(0x15c)]=function(_0x1acba4,_0x2c7221,_0xa9f3c6,_0x5aa05b,_0x188420,_0x9ee8f6){const _0x3d6f98=a1313_0x569e3a;let _0x187454,_0x9721a9,_0x1239ab,_0x144174;return _0x9ee8f6[_0x3d6f98(0x165)]=intUtil[_0x3d6f98(0x16d)](_0x9ee8f6['remoteUri']),_0x188420&&_0x188420['monitor_format']?(logger['info'](_0x3d6f98(0x129),_0x3d6f98(0x166)),_0x2c7221[_0x3d6f98(0x16c)]=util[_0x3d6f98(0x162)]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x9ee8f6[_0x3d6f98(0x148)],_0x2c7221[_0x3d6f98(0x176)],md5(_0x2c7221[_0x3d6f98(0x176)]))):_0x2c7221[_0x3d6f98(0x16c)]='',getConnection(_0x9ee8f6)['then'](function(_0x31dc23){const _0x44bf7e=_0x3d6f98;return _0x144174=_0x31dc23,getUser(_0x9ee8f6,_0x5aa05b[_0x44bf7e(0x121)],_0x144174);})[_0x3d6f98(0x14c)](function(_0x2049f8){const _0x411354=_0x3d6f98;return _0x187454=_0x2049f8,logger[_0x411354(0x13c)](_0x411354(0x159),_0x187454['id']),getEndUser(_0x9ee8f6,_0x2c7221[_0x411354(0x118)],_0x2c7221[_0x411354(0x12a)],_0x144174);})[_0x3d6f98(0x14c)](function(_0x1eaaa1){const _0x34a8e4=_0x3d6f98;return _0x9721a9=_0x1eaaa1,logger[_0x34a8e4(0x13c)](_0x34a8e4(0x12f),_0x9721a9['id']),createTicket(_0x9ee8f6,_0x187454,_0x9721a9,_0xa9f3c6,_0x2c7221,_0xa9f3c6['Fields'],_0x144174);})[_0x3d6f98(0x14c)](function(_0x1dcd3b){const _0x284555=_0x3d6f98;_0x1239ab=_0x1dcd3b,logger[_0x284555(0x13c)]('Ticket\x20created!'),logger[_0x284555(0x13c)](_0x284555(0x130),_0x1239ab['id']);const _0x2384d7=util['format'](_0x284555(0x177),_0x9ee8f6['remoteUri'],_[_0x284555(0x140)](_0x1239ab['id'],'x')[0x1]);logger[_0x284555(0x13c)](_0x284555(0x129),_0x284555(0x167)),emit(util['format']('user:%s',_0x5aa05b[_0x284555(0x16e)]),_0x284555(0x15f),{'uri':_0x2384d7});})['catch'](function(_0x32cd1a){const _0x3b682e=_0x3d6f98;logger[_0x3b682e(0x125)](_0x3b682e(0x129),JSON['stringify'](_0x32cd1a));});},exports['outbound']=function(_0x25cbb4,_0x148f97,_0x5b0a84,_0x322e00,_0x7232a2,_0x50c69c,_0x594b32){const _0x408b9f=a1313_0x569e3a;let _0x2ab0c1,_0x110afc,_0x20c1f7,_0x130abd;return _0x50c69c['remoteUri']=intUtil[_0x408b9f(0x16d)](_0x50c69c[_0x408b9f(0x165)]),_0x50c69c[_0x408b9f(0x148)]=intUtil[_0x408b9f(0x16d)](_0x50c69c[_0x408b9f(0x148)]),_0x594b32&&_0x594b32[_0x408b9f(0x150)]&&_0x594b32[_0x408b9f(0x150)]!=='none'&&(logger[_0x408b9f(0x13c)]('[OUTBOUND]','Recording\x20is\x20enabled!'),_0x148f97[_0x408b9f(0x16c)]=util['format'](_0x408b9f(0x170),_0x50c69c[_0x408b9f(0x148)],_0x148f97['uniqueid'],md5(_0x148f97['uniqueid']))),getConnection(_0x50c69c)[_0x408b9f(0x14c)](function(_0xc07a7a){const _0xd239aa=_0x408b9f;return _0x130abd=_0xc07a7a,getUser(_0x50c69c,_0x322e00[_0xd239aa(0x121)],_0x130abd);})[_0x408b9f(0x14c)](function(_0x38f3f0){const _0x4de8ec=_0x408b9f;return _0x2ab0c1=_0x38f3f0,logger[_0x4de8ec(0x13c)](_0x4de8ec(0x159),_0x2ab0c1['id']),getEndUser(_0x50c69c,_0x148f97[_0x4de8ec(0x15e)],_0x148f97[_0x4de8ec(0x128)],_0x130abd);})['then'](function(_0x5e36a3){const _0x1c588e=_0x408b9f;return _0x110afc=_0x5e36a3,logger['info'](_0x1c588e(0x12f),_0x110afc['id']),createTicket(_0x50c69c,_0x2ab0c1,_0x110afc,_0x5b0a84,_0x148f97,_0x5b0a84[_0x1c588e(0x142)],_0x130abd);})[_0x408b9f(0x14c)](function(_0x421829){const _0x2c8ba2=_0x408b9f;_0x20c1f7=_0x421829,logger['info'](_0x2c8ba2(0x144)),logger['info']('The\x20Ticket\x20ID\x20is:',_0x20c1f7['id']);const _0x31d01d=util['format'](_0x2c8ba2(0x177),_0x50c69c[_0x2c8ba2(0x165)],_['split'](_0x20c1f7['id'],'x')[0x1]);logger[_0x2c8ba2(0x13c)](_0x2c8ba2(0x11f),_0x2c8ba2(0x167)),emit(util[_0x2c8ba2(0x162)](_0x2c8ba2(0x137),_0x322e00[_0x2c8ba2(0x16e)]),_0x2c8ba2(0x15f),{'uri':_0x31d01d});})[_0x408b9f(0x11e)](function(_0x265bba){const _0x4c3717=_0x408b9f;logger[_0x4c3717(0x125)]('[OUTBOUND]',JSON[_0x4c3717(0x12d)](_0x265bba));});},exports['unmanaged']=function(_0x381761,_0x650098,_0x251fbc,_0x542e2f,_0x1bf47c,_0x277357){const _0x2945ec=a1313_0x569e3a;let _0x38bc0a,_0x2974b1,_0x1d23b5,_0x374f73;return _0x277357['remoteUri']=intUtil[_0x2945ec(0x16d)](_0x277357['remoteUri']),_0x277357[_0x2945ec(0x148)]=intUtil[_0x2945ec(0x16d)](_0x277357[_0x2945ec(0x148)]),_0x1bf47c&&_0x1bf47c[_0x2945ec(0x161)]?(logger['info']('['+_0x650098[_0x2945ec(0x152)][_0x2945ec(0x139)]()+']',_0x2945ec(0x166)),_0x650098[_0x2945ec(0x16c)]=util[_0x2945ec(0x162)]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x277357[_0x2945ec(0x148)],_0x650098['uniqueid'],md5(_0x650098[_0x2945ec(0x176)]))):_0x650098['recordingURL']='',getConnection(_0x277357)['then'](function(_0x53ba0e){return _0x374f73=_0x53ba0e,getUser(_0x277357,'',_0x374f73);})[_0x2945ec(0x14c)](function(_0x130283){const _0xa81fa2=_0x2945ec;return _0x38bc0a=_0x130283,logger[_0xa81fa2(0x13c)](_0xa81fa2(0x159),_0x38bc0a['id']),getEndUser(_0x277357,_0x650098['calleridname'],_0x650098[_0xa81fa2(0x12a)],_0x374f73);})[_0x2945ec(0x14c)](function(_0x41045c){const _0x2738be=_0x2945ec;return _0x2974b1=_0x41045c,logger[_0x2738be(0x13c)](_0x2738be(0x12f),_0x2974b1['id']),createTicket(_0x277357,_0x38bc0a,_0x2974b1,_0x251fbc,_0x650098,_0x251fbc[_0x2738be(0x142)],_0x374f73);})[_0x2945ec(0x14c)](function(_0x45c6a1){const _0x5049df=_0x2945ec;_0x1d23b5=_0x45c6a1,logger[_0x5049df(0x13c)](_0x5049df(0x144)),logger[_0x5049df(0x13c)](_0x5049df(0x130),_0x1d23b5['id']);})[_0x2945ec(0x11e)](function(_0x36f26d){const _0x3171f9=_0x2945ec;logger[_0x3171f9(0x125)]('['+_0x650098[_0x3171f9(0x152)]['toUpperCase']()+']',JSON[_0x3171f9(0x12d)](_0x36f26d));});}; \ No newline at end of file +const a1313_0x7f20=['calleridname','remoteUri','Agent\x20found!','type','lastname','Fields','toLowerCase','The\x20User\x20ID\x20is:','destcalleridname','forEach','[vTiger],\x20%s,\x20%s,\x20%s','queue','user:%s','%s/webservice.php','Recording\x20is\x20enabled!','lastevent','error','md5','idField','then','catch','SELECT\x20first_name,\x20last_name,\x20email1\x20FROM\x20Users\x20WHERE\x20email1=\x27%s\x27;','phone','success','[QUEUE]','destcalleridnum','Variable','userId','outbound','[OUTBOUND]','last_name','Enduser\x20created.','email','Getting\x20agent\x20with\x20email','sessionName','The\x20Enduser\x20ID\x20is:','emit','GET','Ticket\x20could\x20not\x20be\x20created\x20due\x20to:\x20%s','vTiger','info','create','toUpperCase','name','Subjects','query','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','Searching\x20end\x20user\x20with\x20phone','Ticket\x20created!','customVariable','split','statusCode','uniqueid','email1','calleridnum','Contacts','validateEmail','first_name','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','format','content','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','Descriptions','firstname','createTicket','getUser','request-promise-native','serverUrl','stringify','getEndUser','%s/index.php?module=HelpDesk&view=Detail&record=%s&app=SUPPORT','variableName','util','recordingURL','../../../../config/logger','trigger:browser:url','The\x20Ticket\x20ID\x20is:','length','POST','string','HelpDesk','result','monitor_format','Normal','merge','resolve','getString','username','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','stripTrailingSlash','unmanaged','login'];(function(_0x2b2175,_0x13346a){const _0x7f20c2=function(_0x5b6c71){while(--_0x5b6c71){_0x2b2175['push'](_0x2b2175['shift']());}};_0x7f20c2(++_0x13346a);}(a1313_0x7f20,0x16c));const a1313_0x5b6c=function(_0x2b2175,_0x13346a){_0x2b2175=_0x2b2175-0xf6;let _0x7f20c2=a1313_0x7f20[_0x2b2175];return _0x7f20c2;};const a1313_0x212a06=a1313_0x5b6c;'use strict';const _=require('lodash'),rp=require(a1313_0x212a06(0x13c)),md5=require(a1313_0x212a06(0x10b)),util=require(a1313_0x212a06(0x142)),intUtil=require('./util'),logger=require(a1313_0x212a06(0x144))(a1313_0x212a06(0x121)),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x4686c2,_0x2b8efd,_0x5b6768){const _0x23c1c1=a1313_0x212a06;io['to'](_0x4686c2)[_0x23c1c1(0x11e)](_0x2b8efd,_0x5b6768);}function getCustomFields(_0x186ddc,_0xd54b1a){const _0x537d1e=a1313_0x212a06,_0x1599c9={};return _0x186ddc[_0x537d1e(0x147)]>0x0&&_[_0x537d1e(0x103)](_0x186ddc,function(_0x169b9f){const _0x7830b7=_0x537d1e;if(_0x169b9f[_0x7830b7(0xfd)]===_0x7830b7(0x149)&&_0x169b9f['idField'])_0x1599c9[_0x169b9f['idField']]=_0x169b9f[_0x7830b7(0x136)]['toString']();else{if(_0x169b9f[_0x7830b7(0xfd)]==='variable'&&_0x169b9f[_0x7830b7(0x141)]&&_0x169b9f[_0x7830b7(0x10c)]&&_0xd54b1a[_0x169b9f['variableName']])_0x1599c9[_0x169b9f[_0x7830b7(0x10c)]]=_0xd54b1a[_0x169b9f[_0x7830b7(0x141)]]['toString']();else _0x169b9f['type']===_0x7830b7(0x12b)&&_0x169b9f[_0x7830b7(0x114)]&&_0x169b9f['Variable'][_0x7830b7(0x125)]&&_0x169b9f['idField']&&_0xd54b1a[_0x169b9f[_0x7830b7(0x114)][_0x7830b7(0x125)][_0x7830b7(0x100)]()]&&(_0x1599c9[_0x169b9f[_0x7830b7(0x10c)]]=_0xd54b1a[_0x169b9f[_0x7830b7(0x114)][_0x7830b7(0x125)][_0x7830b7(0x100)]()]['toString']());}}),_0x1599c9;}function createTicket(_0x297296,_0x2e4ad3,_0x55106e,_0xa08e52,_0x5b5f4,_0x130e38,_0x85af6b){const _0x33c9b8=a1313_0x212a06;logger[_0x33c9b8(0x122)]('Creating\x20new\x20ticket...');const _0xddc1d=_[_0x33c9b8(0x14e)]({'parent_id':'','assigned_user_id':_0x2e4ad3['id'],'ticketpriorities':_0x33c9b8(0x14d),'ticketstatus':'Open','ticket_title':intUtil[_0x33c9b8(0x150)](_0xa08e52[_0x33c9b8(0x126)],_0x5b5f4,'\x20'),'description':intUtil[_0x33c9b8(0x150)](_0xa08e52[_0x33c9b8(0x138)],_0x5b5f4,'\x0a'),'contact_id':_0x55106e['id']},getCustomFields(_0x130e38,_0x5b5f4)),_0x1f6d53={'method':_0x33c9b8(0x148),'uri':util[_0x33c9b8(0x135)]('%s/webservice.php',_0x297296['remoteUri']),'form':{'operation':_0x33c9b8(0x123),'username':_0x297296[_0x33c9b8(0x151)],'sessionName':_0x85af6b[_0x33c9b8(0x11c)],'elementType':_0x33c9b8(0x14a),'element':JSON['stringify'](_0xddc1d)},'json':!![]};return request(_0x1f6d53)[_0x33c9b8(0x10d)](function(_0x5ab602){const _0x5d8f7b=_0x33c9b8;if(_0x5ab602[_0x5d8f7b(0x111)])return Promise[_0x5d8f7b(0x14f)]({'id':_0x5ab602[_0x5d8f7b(0x14b)]['id']});else throw new Error(util[_0x5d8f7b(0x135)](_0x5d8f7b(0x120),JSON['stringify'](_0x5ab602[_0x5d8f7b(0x10a)])));})[_0x33c9b8(0x10e)](function(_0x7f40fd){const _0x2a03fc=_0x33c9b8,_0x54049d=_0x7f40fd[_0x2a03fc(0x12d)]||0x1f4;logger[_0x2a03fc(0x10a)](_0x2a03fc(0x104),_0x2a03fc(0x13a),_0x54049d,JSON['stringify'](_0x7f40fd));});}function getUser(_0x31a6a5,_0xa49cf7,_0x2350e6){const _0x421d91=a1313_0x212a06;return intUtil[_0x421d91(0x132)](_0xa49cf7)?(logger[_0x421d91(0x122)](_0x421d91(0x11b),_0xa49cf7),request({'method':_0x421d91(0x11f),'uri':util[_0x421d91(0x135)](_0x421d91(0x107),_0x31a6a5['remoteUri']),'qs':{'operation':_0x421d91(0x127),'username':_0x31a6a5[_0x421d91(0x151)],'sessionName':_0x2350e6[_0x421d91(0x11c)],'query':util[_0x421d91(0x135)](_0x421d91(0x10f),_0xa49cf7)},'json':!![]})[_0x421d91(0x10d)](function(_0x565240){const _0x170e26=_0x421d91;return _0x565240[_0x170e26(0x111)]&&_0x565240['result'][_0x170e26(0x147)]?(logger[_0x170e26(0x122)](_0x170e26(0xfc)),Promise[_0x170e26(0x14f)]({'id':_0x565240[_0x170e26(0x14b)][0x0]['id'],'email':_0x565240['result'][0x0][_0x170e26(0x12f)],'name':_0x565240['result'][0x0][_0x170e26(0x133)]+'\x20'+_0x565240[_0x170e26(0x14b)][_0x170e26(0x118)]})):(logger['info'](_0x170e26(0x137)),Promise[_0x170e26(0x14f)]({'id':_0x2350e6[_0x170e26(0x115)],'email':_0x31a6a5[_0x170e26(0x151)],'name':'admin'}));})[_0x421d91(0x10e)](function(_0x4a22a5){const _0x14757a=_0x421d91,_0x2740f5=_0x4a22a5[_0x14757a(0x12d)]||0x1f4;logger['error'](_0x14757a(0x104),_0x14757a(0x13b),_0x2740f5,JSON[_0x14757a(0x13e)](_0x4a22a5));})):(logger[_0x421d91(0x122)]('Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!'),Promise['resolve']({'id':_0x2350e6[_0x421d91(0x115)],'email':_0x31a6a5[_0x421d91(0x151)],'name':'admin'})[_0x421d91(0x10e)](function(_0x2f5989){const _0x4ab18d=_0x421d91,_0x4a0a92=_0x2f5989[_0x4ab18d(0x12d)]||0x1f4;logger[_0x4ab18d(0x10a)]('[vTiger],\x20%s,\x20%s,\x20%s',_0x4ab18d(0x13b),_0x4a0a92,JSON[_0x4ab18d(0x13e)](_0x2f5989));}));}function getEndUser(_0x149682,_0x4097ab,_0xc40a1e,_0x744118){const _0x1ebc02=a1313_0x212a06;return logger[_0x1ebc02(0x122)](_0x1ebc02(0x129),_0xc40a1e),request({'method':_0x1ebc02(0x11f),'uri':util[_0x1ebc02(0x135)](_0x1ebc02(0x107),_0x149682[_0x1ebc02(0xfb)]),'qs':{'operation':_0x1ebc02(0x127),'username':_0x149682[_0x1ebc02(0x151)],'sessionName':_0x744118[_0x1ebc02(0x11c)],'query':util['format']('SELECT\x20id,\x20firstname,\x20lastname,\x20email,\x20phone,\x20mobile,\x20homephone,\x20otherphone,\x20assistantphone\x20FROM\x20Contacts\x20WHERE\x20phone\x20=\x20\x27%s\x27\x20OR\x20mobile\x20=\x27%s\x27\x20OR\x20homephone\x20=\x27%s\x27\x20OR\x20otherphone\x20=\x27%s\x27\x20OR\x20assistantphone\x20=\x27%s\x27;',_0xc40a1e,_0xc40a1e,_0xc40a1e,_0xc40a1e,_0xc40a1e)},'json':!![]})[_0x1ebc02(0x10d)](function(_0x25e2a8){const _0x5b9345=_0x1ebc02;return _0x25e2a8['success']&&_0x25e2a8[_0x5b9345(0x14b)][_0x5b9345(0x147)]?(logger[_0x5b9345(0x122)]('Enduser\x20found!'),Promise['resolve']({'id':_0x25e2a8[_0x5b9345(0x14b)][0x0]['id'],'name':_0x25e2a8[_0x5b9345(0x14b)][0x0][_0x5b9345(0x139)]+'\x20'+_0x25e2a8[_0x5b9345(0x14b)][0x0][_0x5b9345(0xfe)],'phone':_0xc40a1e})):(logger[_0x5b9345(0x122)](_0x5b9345(0xf6)),request({'method':_0x5b9345(0x148),'uri':util[_0x5b9345(0x135)](_0x5b9345(0x107),_0x149682[_0x5b9345(0xfb)]),'form':{'operation':_0x5b9345(0x123),'sessionName':_0x744118[_0x5b9345(0x11c)],'elementType':_0x5b9345(0x131),'element':JSON[_0x5b9345(0x13e)]({'lastname':_0x4097ab,'phone':_0xc40a1e,'assigned_user_id':'\x20'})},'json':!![]})[_0x5b9345(0x10d)](function(_0x55bfc6){const _0x155aaa=_0x5b9345;return logger[_0x155aaa(0x122)](_0x155aaa(0x119)),Promise[_0x155aaa(0x14f)]({'id':_0x55bfc6[_0x155aaa(0x14b)]['id'],'name':_0x55bfc6[_0x155aaa(0x14b)][_0x155aaa(0xfe)],'phone':_0x55bfc6[_0x155aaa(0x14b)][_0x155aaa(0x110)]});})['catch'](function(_0x2c3275){const _0x3c4d5e=_0x5b9345,_0x4196b9=_0x2c3275['statusCode']||0x1f4;logger[_0x3c4d5e(0x10a)](_0x3c4d5e(0x104),_0x3c4d5e(0x13f),_0x4196b9,JSON['stringify'](_0x2c3275));}));});}function getConnection(_0xb5fa2d){const _0xaf3ff1=a1313_0x212a06,_0x4d2965=_0xb5fa2d[_0xaf3ff1(0x151)],_0x45d618=_0xb5fa2d['accessKey'];return request({'method':_0xaf3ff1(0x11f),'uri':util['format'](_0xaf3ff1(0x107),_0xb5fa2d[_0xaf3ff1(0xfb)]),'qs':{'operation':'getchallenge','username':_0x4d2965},'json':!![]})[_0xaf3ff1(0x10d)](function(_0x19969e){const _0x2597ca=_0xaf3ff1;if(_0x19969e[_0x2597ca(0x111)])return request({'method':'POST','uri':util['format'](_0x2597ca(0x107),_0xb5fa2d['remoteUri']),'form':{'operation':_0x2597ca(0xf9),'username':_0x4d2965,'accessKey':md5(_0x19969e[_0x2597ca(0x14b)]['token']+_0x45d618)},'json':!![]});})[_0xaf3ff1(0x10d)](function(_0x14f195){const _0x368df5=_0xaf3ff1;if(_0x14f195['success'])return Promise[_0x368df5(0x14f)](_0x14f195[_0x368df5(0x14b)]);else throw new Error(util[_0x368df5(0x135)]('Account\x20%d\x20is\x20not\x20valid',_0xb5fa2d['id']));})[_0xaf3ff1(0x10e)](function(_0x47e593){const _0x56bdd3=_0xaf3ff1,_0x39b830=_0x47e593['statusCode']||0x1f4;logger[_0x56bdd3(0x10a)](_0x56bdd3(0x104),'getConnection',_0x39b830,JSON[_0x56bdd3(0x13e)](_0x47e593));});}function request(_0xd79272){const _0x5e63a7=a1313_0x212a06;return logger[_0x5e63a7(0x122)]('[HTTP]',JSON[_0x5e63a7(0x13e)](_0xd79272)),rp(_0xd79272);}exports[a1313_0x212a06(0x105)]=function(_0x35d3ad,_0x3a9ebf,_0x13d242,_0x54f468,_0x4bb984,_0x4cf344){const _0x351698=a1313_0x212a06;let _0x486d8d,_0x113bbf,_0x20087f,_0x14b6e8;return _0x4cf344[_0x351698(0xfb)]=intUtil['stripTrailingSlash'](_0x4cf344[_0x351698(0xfb)]),_0x4bb984&&_0x4bb984[_0x351698(0x14c)]?(logger[_0x351698(0x122)](_0x351698(0x112),_0x351698(0x108)),_0x3a9ebf[_0x351698(0x143)]=util['format'](_0x351698(0x128),_0x4cf344[_0x351698(0x13d)],_0x3a9ebf[_0x351698(0x12e)],md5(_0x3a9ebf[_0x351698(0x12e)]))):_0x3a9ebf[_0x351698(0x143)]='',getConnection(_0x4cf344)['then'](function(_0x24cb4e){const _0xfca13=_0x351698;return _0x14b6e8=_0x24cb4e,getUser(_0x4cf344,_0x54f468[_0xfca13(0x11a)],_0x14b6e8);})[_0x351698(0x10d)](function(_0x310041){const _0x27a144=_0x351698;return _0x486d8d=_0x310041,logger['info'](_0x27a144(0x101),_0x486d8d['id']),getEndUser(_0x4cf344,_0x3a9ebf[_0x27a144(0xfa)],_0x3a9ebf[_0x27a144(0x130)],_0x14b6e8);})[_0x351698(0x10d)](function(_0x29e651){const _0x493dbc=_0x351698;return _0x113bbf=_0x29e651,logger['info'](_0x493dbc(0x11d),_0x113bbf['id']),createTicket(_0x4cf344,_0x486d8d,_0x113bbf,_0x13d242,_0x3a9ebf,_0x13d242[_0x493dbc(0xff)],_0x14b6e8);})[_0x351698(0x10d)](function(_0x21e9e9){const _0x6bebe6=_0x351698;_0x20087f=_0x21e9e9,logger[_0x6bebe6(0x122)](_0x6bebe6(0x12a)),logger[_0x6bebe6(0x122)](_0x6bebe6(0x146),_0x20087f['id']);const _0x1f7780=util[_0x6bebe6(0x135)](_0x6bebe6(0x140),_0x4cf344[_0x6bebe6(0xfb)],_[_0x6bebe6(0x12c)](_0x20087f['id'],'x')[0x1]);logger[_0x6bebe6(0x122)]('[QUEUE]',_0x6bebe6(0x134)),emit(util['format'](_0x6bebe6(0x106),_0x54f468[_0x6bebe6(0x125)]),_0x6bebe6(0x145),{'uri':_0x1f7780});})[_0x351698(0x10e)](function(_0x1c6512){const _0x3f3d00=_0x351698;logger['error'](_0x3f3d00(0x112),JSON[_0x3f3d00(0x13e)](_0x1c6512));});},exports[a1313_0x212a06(0x116)]=function(_0x30fe23,_0x15d48d,_0x228fa4,_0x27af2a,_0x14484f,_0x2f83eb,_0x84b652){const _0x268983=a1313_0x212a06;let _0x162866,_0x2c8e6d,_0x29b963,_0x151a12;return _0x2f83eb['remoteUri']=intUtil['stripTrailingSlash'](_0x2f83eb['remoteUri']),_0x2f83eb['serverUrl']=intUtil[_0x268983(0xf7)](_0x2f83eb[_0x268983(0x13d)]),_0x84b652&&_0x84b652['recordingFormat']&&_0x84b652['recordingFormat']!=='none'&&(logger[_0x268983(0x122)](_0x268983(0x117),_0x268983(0x108)),_0x15d48d[_0x268983(0x143)]=util[_0x268983(0x135)](_0x268983(0x128),_0x2f83eb[_0x268983(0x13d)],_0x15d48d[_0x268983(0x12e)],md5(_0x15d48d[_0x268983(0x12e)]))),getConnection(_0x2f83eb)[_0x268983(0x10d)](function(_0x53e910){const _0x5d7784=_0x268983;return _0x151a12=_0x53e910,getUser(_0x2f83eb,_0x27af2a[_0x5d7784(0x11a)],_0x151a12);})['then'](function(_0x5da28f){const _0x431f1b=_0x268983;return _0x162866=_0x5da28f,logger[_0x431f1b(0x122)](_0x431f1b(0x101),_0x162866['id']),getEndUser(_0x2f83eb,_0x15d48d[_0x431f1b(0x102)],_0x15d48d[_0x431f1b(0x113)],_0x151a12);})['then'](function(_0x523860){const _0x5d20b6=_0x268983;return _0x2c8e6d=_0x523860,logger[_0x5d20b6(0x122)](_0x5d20b6(0x11d),_0x2c8e6d['id']),createTicket(_0x2f83eb,_0x162866,_0x2c8e6d,_0x228fa4,_0x15d48d,_0x228fa4[_0x5d20b6(0xff)],_0x151a12);})[_0x268983(0x10d)](function(_0x26ed31){const _0x35d659=_0x268983;_0x29b963=_0x26ed31,logger[_0x35d659(0x122)]('Ticket\x20created!'),logger[_0x35d659(0x122)]('The\x20Ticket\x20ID\x20is:',_0x29b963['id']);const _0x9b083b=util[_0x35d659(0x135)](_0x35d659(0x140),_0x2f83eb[_0x35d659(0xfb)],_[_0x35d659(0x12c)](_0x29b963['id'],'x')[0x1]);logger[_0x35d659(0x122)](_0x35d659(0x117),_0x35d659(0x134)),emit(util['format']('user:%s',_0x27af2a[_0x35d659(0x125)]),_0x35d659(0x145),{'uri':_0x9b083b});})[_0x268983(0x10e)](function(_0x3b97be){const _0x26198e=_0x268983;logger[_0x26198e(0x10a)](_0x26198e(0x117),JSON['stringify'](_0x3b97be));});},exports[a1313_0x212a06(0xf8)]=function(_0x49100d,_0x2060be,_0x3d022e,_0x3db4ae,_0x432661,_0x553e81){const _0x5b895d=a1313_0x212a06;let _0x3be744,_0x1ac61b,_0x3f8da8,_0x3ca234;return _0x553e81[_0x5b895d(0xfb)]=intUtil['stripTrailingSlash'](_0x553e81[_0x5b895d(0xfb)]),_0x553e81[_0x5b895d(0x13d)]=intUtil[_0x5b895d(0xf7)](_0x553e81[_0x5b895d(0x13d)]),_0x432661&&_0x432661['monitor_format']?(logger['info']('['+_0x2060be[_0x5b895d(0x109)][_0x5b895d(0x124)]()+']',_0x5b895d(0x108)),_0x2060be[_0x5b895d(0x143)]=util['format'](_0x5b895d(0x128),_0x553e81[_0x5b895d(0x13d)],_0x2060be[_0x5b895d(0x12e)],md5(_0x2060be['uniqueid']))):_0x2060be[_0x5b895d(0x143)]='',getConnection(_0x553e81)[_0x5b895d(0x10d)](function(_0x95dc8b){return _0x3ca234=_0x95dc8b,getUser(_0x553e81,'',_0x3ca234);})['then'](function(_0x3185eb){const _0x5e43ad=_0x5b895d;return _0x3be744=_0x3185eb,logger['info'](_0x5e43ad(0x101),_0x3be744['id']),getEndUser(_0x553e81,_0x2060be['calleridname'],_0x2060be[_0x5e43ad(0x130)],_0x3ca234);})[_0x5b895d(0x10d)](function(_0x5bebaa){const _0xd148e8=_0x5b895d;return _0x1ac61b=_0x5bebaa,logger[_0xd148e8(0x122)](_0xd148e8(0x11d),_0x1ac61b['id']),createTicket(_0x553e81,_0x3be744,_0x1ac61b,_0x3d022e,_0x2060be,_0x3d022e[_0xd148e8(0xff)],_0x3ca234);})['then'](function(_0x3183c9){const _0x50a118=_0x5b895d;_0x3f8da8=_0x3183c9,logger[_0x50a118(0x122)](_0x50a118(0x12a)),logger[_0x50a118(0x122)](_0x50a118(0x146),_0x3f8da8['id']);})[_0x5b895d(0x10e)](function(_0x1bd742){const _0x6e15f4=_0x5b895d;logger['error']('['+_0x2060be['lastevent']['toUpperCase']()+']',JSON[_0x6e15f4(0x13e)](_0x1bd742));});}; \ 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 cd348b9..cdcdfcb 100644 --- a/server/services/ami/trigger/integration/zendesk.js +++ b/server/services/ami/trigger/integration/zendesk.js @@ -1 +1 @@ -const a1314_0x42ae=['Recording\x20is\x20enabled!','Variable','toString','Basic\x20%s','Displaying\x20ticket\x20to\x20agent...','username','Agent\x20found!','string','first','from','stringify','The\x20User\x20ID\x20is:','[HTTP]','info','lodash','integrationTab','nameField','recordingURL','/api/v2','type','content','[QUEUE]\x20Error\x20running\x20Zendesk\x20integration','password','name','unmanaged','Subjects','debug','getString','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','end-user','ticket','%s/tickets.json','[OUTBOUND]\x20Error\x20running\x20Zendesk\x20integration','calleridname','[QUEUE]','Caller\x20-\x20%s','merge','%s/users.json','The\x20Ticket\x20ID\x20is:','email','md5','idField','Authorization','The\x20Enduser\x20ID\x20is:','custom_fields','token','error','count','emit','stripTrailingSlash','lastevent','%s:%s','length','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','customField','user:%s','customVariable','push','GET','%s/agent/tickets/%s','catch','toUpperCase','%s/channels/voice/agents/%d/tickets/%d/display.json','Fields','outbound','Ticket\x20created!','calleridnum','Descriptions','trigger:browser:url','uniqueid','serverUrl','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','replace','then','application/json','util','filter','base64','queue','destcalleridname','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','inspect','toLowerCase','remoteUri','type:user\x20role:end-user\x20phone:%s','monitor_format','variableName','user','Getting\x20agent\x20with\x20email','\x20Error\x20running\x20Zendesk\x20integration','Zendesk\x20account\x20type\x20not\x20recognized','POST','none','newTab','%s/search.json','authType','[OUTBOUND]','type:user\x20role:agent\x20email:%s','find','Creating\x20new\x20ticket...','Searching\x20enduser\x20with\x20phone','agent','zendesk','results','Admin\x20account\x20selected.','format','map','defaults'];(function(_0x2d0391,_0x48b907){const _0x42aeb1=function(_0xfaeab2){while(--_0xfaeab2){_0x2d0391['push'](_0x2d0391['shift']());}};_0x42aeb1(++_0x48b907);}(a1314_0x42ae,0x12d));const a1314_0xfaea=function(_0x2d0391,_0x48b907){_0x2d0391=_0x2d0391-0xfb;let _0x42aeb1=a1314_0x42ae[_0x2d0391];return _0x42aeb1;};const a1314_0x43605c=a1314_0xfaea;'use strict';const _=require(a1314_0x43605c(0x120)),rp=require('request-promise-native'),md5=require(a1314_0x43605c(0x13a)),util=require(a1314_0x43605c(0x15d)),intUtil=require('./util'),logger=require('../../../../config/logger')(a1314_0x43605c(0x10c)),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x4c05ee,_0x15ff5d,_0x415f56){const _0x3c8382=a1314_0x43605c;io['to'](_0x4c05ee)[_0x3c8382(0x142)](_0x15ff5d,_0x415f56);}const headers={'Content-Type':a1314_0x43605c(0x15c),'Accept':a1314_0x43605c(0x15c)};function getTicket(_0x2e58eb,_0x53d4bb,_0x5bf068,_0x52cdf6,_0x35c014){const _0x55c2bd=a1314_0x43605c;return logger['info'](_0x55c2bd(0x109)),request({'uri':util[_0x55c2bd(0x10f)](_0x55c2bd(0x131),_0x2e58eb['remoteUri']),'method':_0x55c2bd(0x101),'body':{'ticket':_[_0x55c2bd(0x136)]({'requester_id':_0x5bf068['id'],'submitter_id':_0x53d4bb?_0x53d4bb['id']:undefined,'assignee_id':_0x53d4bb?_0x53d4bb['id']:undefined,'tags':getTags(_0x52cdf6['Tags'],_0x55c2bd(0x129)),'subject':intUtil['getString'](_0x52cdf6[_0x55c2bd(0x12b)],_0x35c014,'\x20'),'description':intUtil['getString'](_0x52cdf6['Descriptions'],_0x35c014,'\x0a'),'comment':{'public':![],'body':intUtil[_0x55c2bd(0x12d)](_0x52cdf6[_0x55c2bd(0x155)],_0x35c014,'\x0a')}},getCustomFields(_0x52cdf6[_0x55c2bd(0x151)],_0x35c014))}})['then'](function(_0x3c428f){const _0x4f39e1=_0x55c2bd;return logger[_0x4f39e1(0x11f)](_0x4f39e1(0x153)),_0x3c428f[_0x4f39e1(0x130)];});}function getUser(_0x2f0fb7,_0x209f3f){const _0x599713=a1314_0x43605c;return intUtil['validateEmail'](_0x209f3f)?(logger[_0x599713(0x11f)](_0x599713(0xfe),_0x209f3f),request({'uri':util[_0x599713(0x10f)](_0x599713(0x104),_0x2f0fb7['remoteUri']),'qs':{'query':util['format'](_0x599713(0x107),_0x209f3f)}})['then'](function(_0x4250bf){const _0x28b0d9=_0x599713;return _0x4250bf[_0x28b0d9(0x141)]?(logger[_0x28b0d9(0x11f)](_0x28b0d9(0x118)),_[_0x28b0d9(0x108)](_0x4250bf[_0x28b0d9(0x10d)],{'email':_0x209f3f,'role':_0x28b0d9(0x10b)})):(logger[_0x28b0d9(0x11f)](_0x28b0d9(0x147)),request({'uri':util['format']('%s/users/me.json',_0x2f0fb7[_0x28b0d9(0x165)])})['then'](function(_0x14da3d){const _0x495e7a=_0x28b0d9;return logger[_0x495e7a(0x11f)](_0x495e7a(0x10e)),_0x14da3d[_0x495e7a(0xfd)];}));})):(logger[_0x599713(0x11f)](_0x599713(0x147)),request({'uri':util[_0x599713(0x10f)]('%s/users/me.json',_0x2f0fb7[_0x599713(0x165)])})[_0x599713(0x15b)](function(_0x4efbc3){const _0x161167=_0x599713;return logger[_0x161167(0x11f)]('Admin\x20account\x20selected.'),_0x4efbc3[_0x161167(0xfd)];}));}function getEndUser(_0x7d4ce3,_0x56b046,_0x1728c5){const _0x563dfc=a1314_0x43605c;return logger[_0x563dfc(0x11f)](_0x563dfc(0x10a),_0x1728c5),request({'uri':util[_0x563dfc(0x10f)](_0x563dfc(0x104),_0x7d4ce3[_0x563dfc(0x165)]),'qs':{'query':util[_0x563dfc(0x10f)](_0x563dfc(0x166),_0x1728c5)}})[_0x563dfc(0x15b)](function(_0x1a8102){const _0xcd2f22=_0x563dfc;let _0xdb7be5;return _0x1a8102[_0xcd2f22(0x10d)][_0xcd2f22(0x146)]&&(_0x1a8102['results']=_[_0xcd2f22(0x15e)](_0x1a8102[_0xcd2f22(0x10d)],{'suspended':![],'role':'end-user'}),_0x1a8102[_0xcd2f22(0x10d)]['length']&&(_0xdb7be5=_[_0xcd2f22(0x11a)](_0x1a8102['results']))),_0xdb7be5?(logger[_0xcd2f22(0x11f)]('Enduser\x20found!'),_0xdb7be5):(logger[_0xcd2f22(0x11f)](_0xcd2f22(0x159)),request({'uri':util[_0xcd2f22(0x10f)](_0xcd2f22(0x137),_0x7d4ce3[_0xcd2f22(0x165)]),'method':_0xcd2f22(0x101),'body':{'user':{'role':_0xcd2f22(0x12f),'name':util['format'](_0xcd2f22(0x135),_0x56b046||_0x1728c5),'phone':_0x1728c5}}})[_0xcd2f22(0x15b)](function(_0x5db49a){const _0x53a7ef=_0xcd2f22;return logger['info']('Enduser\x20created.'),_0x5db49a[_0x53a7ef(0xfd)];}));});}function getAuth(_0xcaf81f){const _0x5778a4=a1314_0x43605c;let _0x28ddd2;if(_0xcaf81f[_0x5778a4(0x105)]===_0x5778a4(0x128))_0x28ddd2=util[_0x5778a4(0x10f)](_0x5778a4(0x145),_0xcaf81f[_0x5778a4(0x117)],_0xcaf81f['password']);else _0xcaf81f[_0x5778a4(0x105)]===_0x5778a4(0x13f)&&(_0x28ddd2=util[_0x5778a4(0x10f)]('%s/token:%s',_0xcaf81f[_0x5778a4(0x117)],_0xcaf81f[_0x5778a4(0x13f)]));return util[_0x5778a4(0x10f)](_0x5778a4(0x115),Buffer[_0x5778a4(0x11b)](_0x28ddd2)['toString'](_0x5778a4(0x15f)));}function request(_0x59a44c){const _0x3c6df0=a1314_0x43605c;return logger[_0x3c6df0(0x12c)](_0x3c6df0(0x11e),JSON[_0x3c6df0(0x11c)](_0x59a44c)),rp(_[_0x3c6df0(0x111)](_0x59a44c,{'method':_0x3c6df0(0x14c),'headers':headers,'json':!![]}));}function getTags(_0x3a063d,_0x5b1d58){const _0x38eb95=a1314_0x43605c;let _0x54d271=[];return _0x3a063d&&_0x3a063d[_0x38eb95(0x146)]>0x0&&(_0x54d271=_[_0x38eb95(0x110)](_0x3a063d,_0x5b1d58)),_0x54d271;}function getCustomFields(_0x16e90b,_0x390a9c){const _0x2c84be=a1314_0x43605c,_0x46365b={'custom_fields':[]};return _0x16e90b[_0x2c84be(0x146)]>0x0&&_['forEach'](_0x16e90b,function(_0x40a1db){const _0x3b327b=_0x2c84be;if(_0x40a1db[_0x3b327b(0x125)]===_0x3b327b(0x119)&&_0x40a1db[_0x3b327b(0x122)]&&!_0x40a1db[_0x3b327b(0x148)])_0x46365b[_0x40a1db['nameField'][_0x3b327b(0x164)]()]=_0x40a1db[_0x3b327b(0x126)][_0x3b327b(0x114)]();else{if(_0x40a1db[_0x3b327b(0x125)]===_0x3b327b(0x119)&&_0x40a1db[_0x3b327b(0x13b)]&&_0x40a1db[_0x3b327b(0x148)])_0x46365b[_0x3b327b(0x13e)]['push']({'id':_0x40a1db['idField'],'value':_0x40a1db[_0x3b327b(0x126)][_0x3b327b(0x114)]()});else{if(_0x40a1db['type']==='variable'&&_0x40a1db[_0x3b327b(0xfc)]&&_0x40a1db['idField']&&_0x40a1db[_0x3b327b(0x148)])_0x390a9c[_0x40a1db[_0x3b327b(0xfc)]]&&_0x46365b[_0x3b327b(0x13e)][_0x3b327b(0x14b)]({'id':_0x40a1db['idField'],'value':_0x390a9c[_0x40a1db['variableName']][_0x3b327b(0x114)]()});else _0x40a1db[_0x3b327b(0x125)]===_0x3b327b(0x14a)&&_0x40a1db[_0x3b327b(0x113)]&&_0x40a1db[_0x3b327b(0x113)][_0x3b327b(0x129)]&&_0x40a1db[_0x3b327b(0x13b)]&&_0x40a1db['customField']&&(_0x390a9c[_0x40a1db[_0x3b327b(0x113)][_0x3b327b(0x129)][_0x3b327b(0x164)]()]&&_0x46365b['custom_fields'][_0x3b327b(0x14b)]({'id':_0x40a1db[_0x3b327b(0x13b)],'value':_0x390a9c[_0x40a1db['Variable'][_0x3b327b(0x129)][_0x3b327b(0x164)]()]['toString']()}));}}}),_0x46365b;}exports[a1314_0x43605c(0x160)]=function(_0x4105fe,_0x878bef,_0x1ff085,_0x33892c,_0x4d7fc7,_0x346f10){const _0x5b1956=a1314_0x43605c;let _0x3e41f4,_0x5489c8;return _0x346f10[_0x5b1956(0x165)]=intUtil[_0x5b1956(0x143)](_0x346f10[_0x5b1956(0x165)]),_0x346f10[_0x5b1956(0x158)]=intUtil[_0x5b1956(0x143)](_0x346f10[_0x5b1956(0x158)]),_0x4d7fc7&&_0x4d7fc7[_0x5b1956(0xfb)]?(logger[_0x5b1956(0x11f)](_0x5b1956(0x134),_0x5b1956(0x112)),_0x878bef[_0x5b1956(0x123)]=util['format'](_0x5b1956(0x12e),_0x346f10[_0x5b1956(0x158)],_0x878bef[_0x5b1956(0x157)],md5(_0x878bef['uniqueid']))):_0x878bef[_0x5b1956(0x123)]='',headers[_0x5b1956(0x13c)]=getAuth(_0x346f10),getUser(_0x346f10,_0x33892c['email'])[_0x5b1956(0x15b)](function(_0x1538cf){const _0x598f00=_0x5b1956;return _0x3e41f4=_0x1538cf,logger[_0x598f00(0x11f)](_0x598f00(0x11d),_0x3e41f4['id']),getEndUser(_0x346f10,_0x878bef[_0x598f00(0x133)],_0x878bef[_0x598f00(0x154)]);})[_0x5b1956(0x15b)](function(_0x19fdff){const _0x41a704=_0x5b1956;return _0x5489c8=_0x19fdff,logger['info'](_0x41a704(0x13d),_0x5489c8['id']),getTicket(_0x346f10,_0x3e41f4,_0x5489c8,_0x1ff085,_0x878bef);})[_0x5b1956(0x15b)](function(_0x18a801){const _0x119ef0=_0x5b1956;if(_0x18a801){logger['info'](_0x119ef0(0x138),_0x18a801['id']);switch(_0x346f10[_0x119ef0(0x125)]){case _0x119ef0(0x121):logger[_0x119ef0(0x11f)](_0x119ef0(0x134),_0x119ef0(0x116));return request({'uri':util[_0x119ef0(0x10f)](_0x119ef0(0x150),_0x346f10['remoteUri'],_0x3e41f4['id'],_0x18a801['id']),'method':_0x119ef0(0x101)});case _0x119ef0(0x103):logger['info'](_0x119ef0(0x134),_0x119ef0(0x162)),emit(util['format'](_0x119ef0(0x149),_0x33892c[_0x119ef0(0x129)]),'trigger:browser:url',{'uri':util[_0x119ef0(0x10f)](_0x119ef0(0x14d),_0x346f10[_0x119ef0(0x165)][_0x119ef0(0x15a)]('/api/v2'),_0x18a801['id'])});break;default:logger[_0x119ef0(0x140)](_0x119ef0(0x134),_0x119ef0(0x100));}}})[_0x5b1956(0x14e)](function(_0x17b124){const _0x2908c0=_0x5b1956;logger['error'](_0x2908c0(0x127),util[_0x2908c0(0x163)](_0x17b124,{'showHidden':!![],'depth':null}));});},exports[a1314_0x43605c(0x152)]=function(_0x2e3ddc,_0x256425,_0x28c3f5,_0x2588b3,_0x14a6ea,_0x545cbd,_0x3e9146){const _0x25b626=a1314_0x43605c;let _0x1205a9,_0x48e5ae;return _0x545cbd['remoteUri']=intUtil[_0x25b626(0x143)](_0x545cbd[_0x25b626(0x165)]),_0x545cbd[_0x25b626(0x158)]=intUtil['stripTrailingSlash'](_0x545cbd[_0x25b626(0x158)]),_0x3e9146&&_0x3e9146['recordingFormat']&&_0x3e9146['recordingFormat']!==_0x25b626(0x102)&&(logger['info'](_0x25b626(0x106),_0x25b626(0x112)),_0x256425['recordingURL']=util[_0x25b626(0x10f)](_0x25b626(0x12e),_0x545cbd[_0x25b626(0x158)],_0x256425['uniqueid'],md5(_0x256425[_0x25b626(0x157)]))),headers['Authorization']=getAuth(_0x545cbd),getUser(_0x545cbd,_0x2588b3[_0x25b626(0x139)])[_0x25b626(0x15b)](function(_0x3b50cb){const _0x503517=_0x25b626;return _0x1205a9=_0x3b50cb,logger[_0x503517(0x11f)]('The\x20User\x20ID\x20is:',_0x1205a9['id']),getEndUser(_0x545cbd,_0x256425[_0x503517(0x161)],_0x256425['destcalleridnum']);})[_0x25b626(0x15b)](function(_0x43ef61){const _0x297645=_0x25b626;return _0x48e5ae=_0x43ef61,logger[_0x297645(0x11f)](_0x297645(0x13d),_0x48e5ae['id']),getTicket(_0x545cbd,_0x1205a9,_0x48e5ae,_0x28c3f5,_0x256425);})['then'](function(_0x3bb94a){const _0x17edae=_0x25b626;if(_0x3bb94a){logger[_0x17edae(0x11f)]('The\x20Ticket\x20ID\x20is:',_0x3bb94a['id']);switch(_0x545cbd[_0x17edae(0x125)]){case _0x17edae(0x121):logger[_0x17edae(0x11f)](_0x17edae(0x106),_0x17edae(0x116));return request({'uri':util[_0x17edae(0x10f)](_0x17edae(0x150),_0x545cbd[_0x17edae(0x165)],_0x1205a9['id'],_0x3bb94a['id']),'method':_0x17edae(0x101)});case _0x17edae(0x103):logger[_0x17edae(0x11f)](_0x17edae(0x106),_0x17edae(0x162)),emit(util['format']('user:%s',_0x2588b3[_0x17edae(0x129)]),_0x17edae(0x156),{'uri':util['format'](_0x17edae(0x14d),_0x545cbd['remoteUri'][_0x17edae(0x15a)](_0x17edae(0x124)),_0x3bb94a['id'])});break;default:logger[_0x17edae(0x140)](_0x17edae(0x106),_0x17edae(0x100));}}})[_0x25b626(0x14e)](function(_0x130964){const _0x4b4136=_0x25b626;logger[_0x4b4136(0x140)](_0x4b4136(0x132),util['inspect'](_0x130964,{'showHidden':!![],'depth':null}));});},exports[a1314_0x43605c(0x12a)]=function(_0x12e93f,_0x147ce3,_0x2a88b1,_0x7ac78c,_0x160df0,_0xeebc55){const _0x3aac76=a1314_0x43605c;let _0x580dce,_0x1ceab8;return _0xeebc55[_0x3aac76(0x165)]=intUtil['stripTrailingSlash'](_0xeebc55['remoteUri']),_0xeebc55[_0x3aac76(0x158)]=intUtil[_0x3aac76(0x143)](_0xeebc55['serverUrl']),_0x160df0&&_0x160df0[_0x3aac76(0xfb)]?(logger[_0x3aac76(0x11f)]('['+_0x147ce3[_0x3aac76(0x144)][_0x3aac76(0x14f)]()+']',_0x3aac76(0x112)),_0x147ce3[_0x3aac76(0x123)]=util[_0x3aac76(0x10f)](_0x3aac76(0x12e),_0xeebc55[_0x3aac76(0x158)],_0x147ce3[_0x3aac76(0x157)],md5(_0x147ce3[_0x3aac76(0x157)]))):_0x147ce3['recordingURL']='',headers[_0x3aac76(0x13c)]=getAuth(_0xeebc55),getUser(_0xeebc55)[_0x3aac76(0x15b)](function(_0x4ec30e){const _0x1f0583=_0x3aac76;return _0x580dce=_0x4ec30e,logger[_0x1f0583(0x11f)]('The\x20User\x20ID\x20is:',_0x580dce['id']),getEndUser(_0xeebc55,_0x147ce3[_0x1f0583(0x133)],_0x147ce3[_0x1f0583(0x154)]);})[_0x3aac76(0x15b)](function(_0x177505){const _0x4ebe9c=_0x3aac76;return _0x1ceab8=_0x177505,logger[_0x4ebe9c(0x11f)](_0x4ebe9c(0x13d),_0x1ceab8['id']),getTicket(_0xeebc55,_0x580dce,_0x1ceab8,_0x2a88b1,_0x147ce3);})['then'](function(_0x2f01bb){const _0xa3b8=_0x3aac76;_0x2f01bb&&logger[_0xa3b8(0x11f)](_0xa3b8(0x138),_0x2f01bb['id']);})['catch'](function(_0x222f34){const _0x15e2c1=_0x3aac76;logger[_0x15e2c1(0x140)]('['+_0x147ce3[_0x15e2c1(0x144)][_0x15e2c1(0x14f)]()+']'+_0x15e2c1(0xff),util[_0x15e2c1(0x163)](_0x222f34,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +const a1314_0x5c7b=['integrationTab','zendesk','../../../../rediscache','password','stripTrailingSlash','The\x20Ticket\x20ID\x20is:','%s/tickets.json','%s/agent/tickets/%s','nameField','getString','customVariable','%s/users/me.json','merge','monitor_format','POST','destcalleridname','custom_fields','lodash','count','queue','push','inspect','customField','%s/token:%s','toString','destcalleridnum','then','calleridnum','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','defaults','recordingFormat','Caller\x20-\x20%s','calleridname','The\x20User\x20ID\x20is:','lastevent','Admin\x20account\x20selected.','[HTTP]','authType','trigger:browser:url','Getting\x20agent\x20with\x20email','%s:%s','catch','uniqueid','token','emit','Recording\x20is\x20enabled!','[QUEUE]\x20Error\x20running\x20Zendesk\x20integration','username','Descriptions','recordingURL','string','filter','user','Agent\x20found!','application/json','../../../../config/logger','Ticket\x20created!','[OUTBOUND]','idField','Creating\x20new\x20ticket...','validateEmail','length','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','md5','type:user\x20role:agent\x20email:%s','/api/v2','%s/search.json','The\x20Enduser\x20ID\x20is:','\x20Error\x20running\x20Zendesk\x20integration','email','Fields','results','remoteUri','content','toUpperCase','./util','type','info','newTab','none','replace','first','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','Authorization','format','util','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','name','variableName','serverUrl','unmanaged','request-promise-native','error','map','toLowerCase','[QUEUE]','user:%s','Subjects','Zendesk\x20account\x20type\x20not\x20recognized','Displaying\x20ticket\x20to\x20agent...','outbound','Variable','Enduser\x20found!','ticket'];(function(_0x347d22,_0x5b9265){const _0x5c7b5e=function(_0x22f4c8){while(--_0x22f4c8){_0x347d22['push'](_0x347d22['shift']());}};_0x5c7b5e(++_0x5b9265);}(a1314_0x5c7b,0xd3));const a1314_0x22f4=function(_0x347d22,_0x5b9265){_0x347d22=_0x347d22-0x16b;let _0x5c7b5e=a1314_0x5c7b[_0x347d22];return _0x5c7b5e;};const a1314_0x48a4cb=a1314_0x22f4;'use strict';const _=require(a1314_0x48a4cb(0x179)),rp=require(a1314_0x48a4cb(0x1c3)),md5=require(a1314_0x48a4cb(0x1a7)),util=require(a1314_0x48a4cb(0x1bd)),intUtil=require(a1314_0x48a4cb(0x1b3)),logger=require(a1314_0x48a4cb(0x19f))(a1314_0x48a4cb(0x1d1)),{getSocket}=require(a1314_0x48a4cb(0x1d2)),io=getSocket();function emit(_0x13dffb,_0x4fc0b2,_0x109875){const _0x177759=a1314_0x48a4cb;io['to'](_0x13dffb)[_0x177759(0x194)](_0x4fc0b2,_0x109875);}const headers={'Content-Type':'application/json','Accept':a1314_0x48a4cb(0x19e)};function getTicket(_0x19078b,_0x3a10bf,_0x582e56,_0x3643b7,_0x1830b7){const _0x27ae3b=a1314_0x48a4cb;return logger[_0x27ae3b(0x1b5)](_0x27ae3b(0x1a3)),request({'uri':util[_0x27ae3b(0x1bc)](_0x27ae3b(0x16e),_0x19078b[_0x27ae3b(0x1b0)]),'method':_0x27ae3b(0x176),'body':{'ticket':_[_0x27ae3b(0x174)]({'requester_id':_0x582e56['id'],'submitter_id':_0x3a10bf?_0x3a10bf['id']:undefined,'assignee_id':_0x3a10bf?_0x3a10bf['id']:undefined,'tags':getTags(_0x3643b7['Tags'],_0x27ae3b(0x1bf)),'subject':intUtil[_0x27ae3b(0x171)](_0x3643b7[_0x27ae3b(0x1c9)],_0x1830b7,'\x20'),'description':intUtil[_0x27ae3b(0x171)](_0x3643b7[_0x27ae3b(0x198)],_0x1830b7,'\x0a'),'comment':{'public':![],'body':intUtil[_0x27ae3b(0x171)](_0x3643b7['Descriptions'],_0x1830b7,'\x0a')}},getCustomFields(_0x3643b7[_0x27ae3b(0x1ae)],_0x1830b7))}})[_0x27ae3b(0x182)](function(_0x33199c){const _0x2aed88=_0x27ae3b;return logger['info'](_0x2aed88(0x1a0)),_0x33199c[_0x2aed88(0x1cf)];});}function getUser(_0x185e1c,_0x58e0bb){const _0x3e16a8=a1314_0x48a4cb;return intUtil[_0x3e16a8(0x1a4)](_0x58e0bb)?(logger[_0x3e16a8(0x1b5)](_0x3e16a8(0x18f),_0x58e0bb),request({'uri':util[_0x3e16a8(0x1bc)]('%s/search.json',_0x185e1c[_0x3e16a8(0x1b0)]),'qs':{'query':util[_0x3e16a8(0x1bc)](_0x3e16a8(0x1a8),_0x58e0bb)}})[_0x3e16a8(0x182)](function(_0x40f83c){const _0x2137bf=_0x3e16a8;return _0x40f83c[_0x2137bf(0x17a)]?(logger[_0x2137bf(0x1b5)](_0x2137bf(0x19d)),_['find'](_0x40f83c[_0x2137bf(0x1af)],{'email':_0x58e0bb,'role':'agent'})):(logger['info'](_0x2137bf(0x1a6)),request({'uri':util[_0x2137bf(0x1bc)]('%s/users/me.json',_0x185e1c['remoteUri'])})[_0x2137bf(0x182)](function(_0x5b5af3){const _0x26f9e1=_0x2137bf;return logger[_0x26f9e1(0x1b5)](_0x26f9e1(0x18b)),_0x5b5af3['user'];}));})):(logger['info'](_0x3e16a8(0x1a6)),request({'uri':util[_0x3e16a8(0x1bc)](_0x3e16a8(0x173),_0x185e1c[_0x3e16a8(0x1b0)])})[_0x3e16a8(0x182)](function(_0x319831){const _0x30137f=_0x3e16a8;return logger[_0x30137f(0x1b5)]('Admin\x20account\x20selected.'),_0x319831['user'];}));}function getEndUser(_0x5b528a,_0x314fdf,_0x5ed7c0){const _0x5b634a=a1314_0x48a4cb;return logger[_0x5b634a(0x1b5)]('Searching\x20enduser\x20with\x20phone',_0x5ed7c0),request({'uri':util['format'](_0x5b634a(0x1aa),_0x5b528a['remoteUri']),'qs':{'query':util[_0x5b634a(0x1bc)]('type:user\x20role:end-user\x20phone:%s',_0x5ed7c0)}})[_0x5b634a(0x182)](function(_0x28d478){const _0x561099=_0x5b634a;let _0x1f7dd8;return _0x28d478['results']['length']&&(_0x28d478[_0x561099(0x1af)]=_[_0x561099(0x19b)](_0x28d478[_0x561099(0x1af)],{'suspended':![],'role':'end-user'}),_0x28d478[_0x561099(0x1af)]['length']&&(_0x1f7dd8=_[_0x561099(0x1b9)](_0x28d478[_0x561099(0x1af)]))),_0x1f7dd8?(logger[_0x561099(0x1b5)](_0x561099(0x1ce)),_0x1f7dd8):(logger[_0x561099(0x1b5)](_0x561099(0x1ba)),request({'uri':util[_0x561099(0x1bc)]('%s/users.json',_0x5b528a[_0x561099(0x1b0)]),'method':'POST','body':{'user':{'role':'end-user','name':util[_0x561099(0x1bc)](_0x561099(0x187),_0x314fdf||_0x5ed7c0),'phone':_0x5ed7c0}}})[_0x561099(0x182)](function(_0x4f5db8){const _0x253fdb=_0x561099;return logger['info']('Enduser\x20created.'),_0x4f5db8[_0x253fdb(0x19c)];}));});}function getAuth(_0x1f842f){const _0x4d829b=a1314_0x48a4cb;let _0x558450;if(_0x1f842f['authType']===_0x4d829b(0x16b))_0x558450=util['format'](_0x4d829b(0x190),_0x1f842f[_0x4d829b(0x197)],_0x1f842f[_0x4d829b(0x16b)]);else _0x1f842f[_0x4d829b(0x18d)]===_0x4d829b(0x193)&&(_0x558450=util[_0x4d829b(0x1bc)](_0x4d829b(0x17f),_0x1f842f[_0x4d829b(0x197)],_0x1f842f[_0x4d829b(0x193)]));return util[_0x4d829b(0x1bc)]('Basic\x20%s',Buffer['from'](_0x558450)[_0x4d829b(0x180)]('base64'));}function request(_0x5cfaa4){const _0xd4fa93=a1314_0x48a4cb;return logger['debug'](_0xd4fa93(0x18c),JSON['stringify'](_0x5cfaa4)),rp(_[_0xd4fa93(0x185)](_0x5cfaa4,{'method':'GET','headers':headers,'json':!![]}));}function getTags(_0x23daf7,_0x276f71){const _0x3dec32=a1314_0x48a4cb;let _0x2d22dc=[];return _0x23daf7&&_0x23daf7['length']>0x0&&(_0x2d22dc=_[_0x3dec32(0x1c5)](_0x23daf7,_0x276f71)),_0x2d22dc;}function getCustomFields(_0x5ba0c8,_0x3b9030){const _0x49554b=a1314_0x48a4cb,_0x2884f0={'custom_fields':[]};return _0x5ba0c8[_0x49554b(0x1a5)]>0x0&&_['forEach'](_0x5ba0c8,function(_0x16319c){const _0x1bd053=_0x49554b;if(_0x16319c[_0x1bd053(0x1b4)]===_0x1bd053(0x19a)&&_0x16319c[_0x1bd053(0x170)]&&!_0x16319c[_0x1bd053(0x17e)])_0x2884f0[_0x16319c[_0x1bd053(0x170)][_0x1bd053(0x1c6)]()]=_0x16319c['content'][_0x1bd053(0x180)]();else{if(_0x16319c['type']===_0x1bd053(0x19a)&&_0x16319c[_0x1bd053(0x1a2)]&&_0x16319c[_0x1bd053(0x17e)])_0x2884f0['custom_fields'][_0x1bd053(0x17c)]({'id':_0x16319c['idField'],'value':_0x16319c[_0x1bd053(0x1b1)][_0x1bd053(0x180)]()});else{if(_0x16319c['type']==='variable'&&_0x16319c[_0x1bd053(0x1c0)]&&_0x16319c[_0x1bd053(0x1a2)]&&_0x16319c[_0x1bd053(0x17e)])_0x3b9030[_0x16319c[_0x1bd053(0x1c0)]]&&_0x2884f0['custom_fields'][_0x1bd053(0x17c)]({'id':_0x16319c[_0x1bd053(0x1a2)],'value':_0x3b9030[_0x16319c[_0x1bd053(0x1c0)]][_0x1bd053(0x180)]()});else _0x16319c[_0x1bd053(0x1b4)]===_0x1bd053(0x172)&&_0x16319c['Variable']&&_0x16319c['Variable'][_0x1bd053(0x1bf)]&&_0x16319c[_0x1bd053(0x1a2)]&&_0x16319c[_0x1bd053(0x17e)]&&(_0x3b9030[_0x16319c[_0x1bd053(0x1cd)][_0x1bd053(0x1bf)]['toLowerCase']()]&&_0x2884f0[_0x1bd053(0x178)]['push']({'id':_0x16319c[_0x1bd053(0x1a2)],'value':_0x3b9030[_0x16319c[_0x1bd053(0x1cd)][_0x1bd053(0x1bf)][_0x1bd053(0x1c6)]()][_0x1bd053(0x180)]()}));}}}),_0x2884f0;}exports[a1314_0x48a4cb(0x17b)]=function(_0x59d24a,_0x34eef5,_0x27402b,_0x1c4693,_0x7b90f4,_0x551c8a){const _0x36fcfd=a1314_0x48a4cb;let _0x2979a2,_0x5928d6;return _0x551c8a[_0x36fcfd(0x1b0)]=intUtil['stripTrailingSlash'](_0x551c8a[_0x36fcfd(0x1b0)]),_0x551c8a[_0x36fcfd(0x1c1)]=intUtil[_0x36fcfd(0x16c)](_0x551c8a['serverUrl']),_0x7b90f4&&_0x7b90f4[_0x36fcfd(0x175)]?(logger[_0x36fcfd(0x1b5)](_0x36fcfd(0x1c7),_0x36fcfd(0x195)),_0x34eef5['recordingURL']=util[_0x36fcfd(0x1bc)](_0x36fcfd(0x184),_0x551c8a[_0x36fcfd(0x1c1)],_0x34eef5['uniqueid'],md5(_0x34eef5[_0x36fcfd(0x192)]))):_0x34eef5['recordingURL']='',headers[_0x36fcfd(0x1bb)]=getAuth(_0x551c8a),getUser(_0x551c8a,_0x1c4693[_0x36fcfd(0x1ad)])[_0x36fcfd(0x182)](function(_0x5ed5f8){const _0x59cb55=_0x36fcfd;return _0x2979a2=_0x5ed5f8,logger['info'](_0x59cb55(0x189),_0x2979a2['id']),getEndUser(_0x551c8a,_0x34eef5[_0x59cb55(0x188)],_0x34eef5[_0x59cb55(0x183)]);})[_0x36fcfd(0x182)](function(_0x4c16ad){const _0x33c9e4=_0x36fcfd;return _0x5928d6=_0x4c16ad,logger[_0x33c9e4(0x1b5)](_0x33c9e4(0x1ab),_0x5928d6['id']),getTicket(_0x551c8a,_0x2979a2,_0x5928d6,_0x27402b,_0x34eef5);})[_0x36fcfd(0x182)](function(_0xd896fe){const _0x18c14f=_0x36fcfd;if(_0xd896fe){logger[_0x18c14f(0x1b5)](_0x18c14f(0x16d),_0xd896fe['id']);switch(_0x551c8a[_0x18c14f(0x1b4)]){case'integrationTab':logger[_0x18c14f(0x1b5)](_0x18c14f(0x1c7),_0x18c14f(0x1cb));return request({'uri':util['format']('%s/channels/voice/agents/%d/tickets/%d/display.json',_0x551c8a[_0x18c14f(0x1b0)],_0x2979a2['id'],_0xd896fe['id']),'method':_0x18c14f(0x176)});case _0x18c14f(0x1b6):logger[_0x18c14f(0x1b5)](_0x18c14f(0x1c7),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util['format'](_0x18c14f(0x1c8),_0x1c4693[_0x18c14f(0x1bf)]),_0x18c14f(0x18e),{'uri':util[_0x18c14f(0x1bc)]('%s/agent/tickets/%s',_0x551c8a[_0x18c14f(0x1b0)][_0x18c14f(0x1b8)](_0x18c14f(0x1a9)),_0xd896fe['id'])});break;default:logger[_0x18c14f(0x1c4)](_0x18c14f(0x1c7),_0x18c14f(0x1ca));}}})['catch'](function(_0x572cda){const _0xaf0067=_0x36fcfd;logger['error'](_0xaf0067(0x196),util[_0xaf0067(0x17d)](_0x572cda,{'showHidden':!![],'depth':null}));});},exports[a1314_0x48a4cb(0x1cc)]=function(_0x28d1ce,_0x31a341,_0x3632be,_0x8c1b51,_0x1d5128,_0x2e6481,_0x786ab1){const _0x5c8f31=a1314_0x48a4cb;let _0x4dea61,_0x5ce95d;return _0x2e6481[_0x5c8f31(0x1b0)]=intUtil[_0x5c8f31(0x16c)](_0x2e6481['remoteUri']),_0x2e6481[_0x5c8f31(0x1c1)]=intUtil[_0x5c8f31(0x16c)](_0x2e6481['serverUrl']),_0x786ab1&&_0x786ab1['recordingFormat']&&_0x786ab1[_0x5c8f31(0x186)]!==_0x5c8f31(0x1b7)&&(logger[_0x5c8f31(0x1b5)]('[OUTBOUND]',_0x5c8f31(0x195)),_0x31a341[_0x5c8f31(0x199)]=util[_0x5c8f31(0x1bc)]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x2e6481[_0x5c8f31(0x1c1)],_0x31a341[_0x5c8f31(0x192)],md5(_0x31a341[_0x5c8f31(0x192)]))),headers[_0x5c8f31(0x1bb)]=getAuth(_0x2e6481),getUser(_0x2e6481,_0x8c1b51['email'])[_0x5c8f31(0x182)](function(_0xb0bf4e){const _0x41ed65=_0x5c8f31;return _0x4dea61=_0xb0bf4e,logger['info'](_0x41ed65(0x189),_0x4dea61['id']),getEndUser(_0x2e6481,_0x31a341[_0x41ed65(0x177)],_0x31a341[_0x41ed65(0x181)]);})[_0x5c8f31(0x182)](function(_0x56dfe6){const _0x12e85b=_0x5c8f31;return _0x5ce95d=_0x56dfe6,logger[_0x12e85b(0x1b5)](_0x12e85b(0x1ab),_0x5ce95d['id']),getTicket(_0x2e6481,_0x4dea61,_0x5ce95d,_0x3632be,_0x31a341);})[_0x5c8f31(0x182)](function(_0x2f0f62){const _0x8c6b4a=_0x5c8f31;if(_0x2f0f62){logger[_0x8c6b4a(0x1b5)](_0x8c6b4a(0x16d),_0x2f0f62['id']);switch(_0x2e6481[_0x8c6b4a(0x1b4)]){case _0x8c6b4a(0x1d0):logger[_0x8c6b4a(0x1b5)](_0x8c6b4a(0x1a1),_0x8c6b4a(0x1cb));return request({'uri':util[_0x8c6b4a(0x1bc)]('%s/channels/voice/agents/%d/tickets/%d/display.json',_0x2e6481[_0x8c6b4a(0x1b0)],_0x4dea61['id'],_0x2f0f62['id']),'method':_0x8c6b4a(0x176)});case _0x8c6b4a(0x1b6):logger[_0x8c6b4a(0x1b5)](_0x8c6b4a(0x1a1),_0x8c6b4a(0x1be)),emit(util[_0x8c6b4a(0x1bc)](_0x8c6b4a(0x1c8),_0x8c1b51[_0x8c6b4a(0x1bf)]),_0x8c6b4a(0x18e),{'uri':util[_0x8c6b4a(0x1bc)](_0x8c6b4a(0x16f),_0x2e6481[_0x8c6b4a(0x1b0)]['replace']('/api/v2'),_0x2f0f62['id'])});break;default:logger[_0x8c6b4a(0x1c4)]('[OUTBOUND]','Zendesk\x20account\x20type\x20not\x20recognized');}}})[_0x5c8f31(0x191)](function(_0x1d19f2){const _0x31368b=_0x5c8f31;logger[_0x31368b(0x1c4)]('[OUTBOUND]\x20Error\x20running\x20Zendesk\x20integration',util[_0x31368b(0x17d)](_0x1d19f2,{'showHidden':!![],'depth':null}));});},exports[a1314_0x48a4cb(0x1c2)]=function(_0x5dc0f8,_0x1606f3,_0x3a7a7f,_0x3085f9,_0x209791,_0x47d6ee){const _0x3e8f65=a1314_0x48a4cb;let _0x1e2c5c,_0x55a937;return _0x47d6ee[_0x3e8f65(0x1b0)]=intUtil[_0x3e8f65(0x16c)](_0x47d6ee['remoteUri']),_0x47d6ee[_0x3e8f65(0x1c1)]=intUtil[_0x3e8f65(0x16c)](_0x47d6ee[_0x3e8f65(0x1c1)]),_0x209791&&_0x209791[_0x3e8f65(0x175)]?(logger['info']('['+_0x1606f3['lastevent'][_0x3e8f65(0x1b2)]()+']',_0x3e8f65(0x195)),_0x1606f3['recordingURL']=util[_0x3e8f65(0x1bc)]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x47d6ee[_0x3e8f65(0x1c1)],_0x1606f3[_0x3e8f65(0x192)],md5(_0x1606f3['uniqueid']))):_0x1606f3[_0x3e8f65(0x199)]='',headers[_0x3e8f65(0x1bb)]=getAuth(_0x47d6ee),getUser(_0x47d6ee)['then'](function(_0x3b30b2){const _0x23b5af=_0x3e8f65;return _0x1e2c5c=_0x3b30b2,logger['info'](_0x23b5af(0x189),_0x1e2c5c['id']),getEndUser(_0x47d6ee,_0x1606f3[_0x23b5af(0x188)],_0x1606f3['calleridnum']);})[_0x3e8f65(0x182)](function(_0x4b6057){const _0x5393c1=_0x3e8f65;return _0x55a937=_0x4b6057,logger[_0x5393c1(0x1b5)]('The\x20Enduser\x20ID\x20is:',_0x55a937['id']),getTicket(_0x47d6ee,_0x1e2c5c,_0x55a937,_0x3a7a7f,_0x1606f3);})['then'](function(_0x2eb8b5){const _0x2753be=_0x3e8f65;_0x2eb8b5&&logger[_0x2753be(0x1b5)](_0x2753be(0x16d),_0x2eb8b5['id']);})[_0x3e8f65(0x191)](function(_0x55f456){const _0x1fc27e=_0x3e8f65;logger['error']('['+_0x1606f3[_0x1fc27e(0x18a)][_0x1fc27e(0x1b2)]()+']'+_0x1fc27e(0x1ac),util[_0x1fc27e(0x17d)](_0x55f456,{'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 36ed9d1..d1ef83c 100644 --- a/server/services/ami/trigger/integration/zoho.js +++ b/server/services/ami/trigger/integration/zoho.js @@ -1 +1 @@ -const a1315_0x4e6a=['utc','idField','split','name','role','The\x20Call\x20ID\x20is:','forEach','info','stringify','agentcalledAt','mm:ss','Description','lead','details','user','Using\x20the\x20admin\x20account!','indexOf','CREATE\x20ERROR','findIndex','email','Error:\x20','code','https://www.zohoapis.','Call\x20created!','Leads','[OUTBOUND]','first_name','then','YYYY-MM-DDTHH:mm:ss','https://accounts.zoho.com','The\x20failing\x20result\x20is','md5','https://accounts.zoho.eu','com','SUCCESS','log','/downloads?type=uniqueid&token=','moduleCreate','called','Agent\x20found!','toString','toLowerCase','Search\x20user','[HTTP]','refresh_token','/api/voice/recordings/','First_Name','[QUEUE]','Call_Type','last_name','https://www.zohoapis.%s/crm/v2/users','Timeout','Full_Name','none','calleridnum','ActiveUsers','connect','debug','Recording\x20is\x20enabled!','Last_Name','../../../../config/logger','catch','Call_Result','host','enduserType','users','administrator','uniqueid','Administrator','Variable','/crm/v2/','emit','Rejected','expires_in','refreshToken','request-promise-native','/crm/v2/Leads/search?criteria=((Phone:equals:','Called','variableName','customVariable','trigger:browser:url','https://accounts.zoho.com.au','Descriptions','Zoho-oauthtoken\x20','What_Id','monitor_format','$se_module','outbound','err','uri','serverUrl','contact_lead','variable','Call_Duration','moduleSearch','GET','zone','string','answertime','lodash','destcalleridname','Answered','zoho.eu','calleridname','profile','Contacts','length','seconds','/crm/v2/Contacts/search?criteria=((Phone:equals:','add','isNil','toUpperCase','clientId','The\x20User\x20ID\x20is:','lastevent','starttime','getString','stripTrailingSlash','user:%s','content','recordingURL','Outbound','talktime','Creating\x20new\x20call...','destcalleridnum','type','access_token','Subject','recordingFormat','nothing','complete','Inbound','error','/crm/EntityInfo.do?module=Calls&id=','stack','Abandoned','util','startCase','https://crm.','Displaying\x20call\x20to\x20agent\x20in\x20a\x20new\x20tab...','format','clientSecret','endtime','data','diff','unmanaged','contact','Call_Start_Time','POST'];(function(_0x45f491,_0x3507a8){const _0x4e6ad2=function(_0x57ee69){while(--_0x57ee69){_0x45f491['push'](_0x45f491['shift']());}};_0x4e6ad2(++_0x3507a8);}(a1315_0x4e6a,0x88));const a1315_0x57ee=function(_0x45f491,_0x3507a8){_0x45f491=_0x45f491-0xbc;let _0x4e6ad2=a1315_0x4e6a[_0x45f491];return _0x4e6ad2;};const a1315_0x289993=a1315_0x57ee;'use strict';const _=require(a1315_0x289993(0x12c)),rp=require(a1315_0x289993(0x114)),md5=require(a1315_0x289993(0xe8)),util=require(a1315_0x289993(0xbc)),intUtil=require('./util'),moment=require('moment'),logger=require(a1315_0x289993(0x105))('zoho'),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x4c3596,_0x4bf4b8,_0x29b0ee){const _0xabd183=a1315_0x289993;io['to'](_0x4c3596)[_0xabd183(0x110)](_0x4bf4b8,_0x29b0ee);}function request(_0xa5ace5){const _0x5f5768=a1315_0x289993;return logger[_0x5f5768(0x102)](_0x5f5768(0xf4),JSON[_0x5f5768(0xd1)](_0xa5ace5)),rp(_0xa5ace5);}function getCustomFields(_0x45291b,_0x3cdf2b){const _0x364b82=a1315_0x289993,_0x3d91ae={};return _0x45291b[_0x364b82(0x133)]>0x0&&_[_0x364b82(0xcf)](_0x45291b,function(_0x41a880){const _0x428968=_0x364b82;if(_0x41a880[_0x428968(0x146)]===_0x428968(0x12a)&&_0x41a880['idField'])_0x3d91ae[_0x41a880['idField']]=_0x41a880[_0x428968(0x140)][_0x428968(0xf1)]();else{if(_0x41a880[_0x428968(0x146)]===_0x428968(0x125)&&_0x41a880[_0x428968(0x117)]&&_0x41a880[_0x428968(0xca)]&&_0x3cdf2b[_0x41a880[_0x428968(0x117)]])_0x3d91ae[_0x41a880[_0x428968(0xca)]]=_0x3cdf2b[_0x41a880[_0x428968(0x117)]][_0x428968(0xf1)]();else _0x41a880['type']===_0x428968(0x118)&&_0x41a880[_0x428968(0x10e)]&&_0x41a880[_0x428968(0x10e)][_0x428968(0xcc)]&&_0x41a880[_0x428968(0xca)]&&_0x3cdf2b[_0x41a880[_0x428968(0x10e)][_0x428968(0xcc)][_0x428968(0xf2)]()]&&(_0x3d91ae[_0x41a880[_0x428968(0xca)]]=_0x3cdf2b[_0x41a880[_0x428968(0x10e)][_0x428968(0xcc)][_0x428968(0xf2)]()]['toString']());}}),_0x3d91ae;}function getName(_0x1c77b3){const _0x598a21=a1315_0x289993;if(_0x1c77b3[_0x598a21(0xd9)]('\x20')>0x0){const _0x12e73f=_0x1c77b3[_0x598a21(0xcb)](/ (.+)/);if(_0x12e73f[0x1])return _0x12e73f;}return[_0x1c77b3,_0x1c77b3];}const accountsTokens={};function getAccessToken(_0x2df115){return new Promise(function(_0x36a288,_0x4567d3){const _0x23c458=a1315_0x57ee;!_[_0x23c458(0x137)](accountsTokens[_0x2df115['id']])&&!_[_0x23c458(0x137)](accountsTokens[_0x2df115['id']][_0x23c458(0x147)])&&(moment()['isBefore'](accountsTokens[_0x2df115['id']][_0x23c458(0x112)])&&_0x36a288(accountsTokens[_0x2df115['id']][_0x23c458(0x147)]));let _0x3dd725;switch(_0x2df115[_0x23c458(0x129)]){case'US':_0x3dd725=_0x23c458(0xe6);break;case'AU':_0x3dd725=_0x23c458(0x11a);break;case'EU':_0x3dd725=_0x23c458(0xe9);break;case'IN':_0x3dd725='https://accounts.zoho.in';break;case'CN':_0x3dd725='https://accounts.zoho.com.cn';break;default:_0x3dd725='https://accounts.zoho.eu';break;}const _0x407366={'method':_0x23c458(0xc8),'uri':_0x3dd725+'/oauth/v2/token','qs':{'refresh_token':_0x2df115[_0x23c458(0x113)],'client_id':_0x2df115[_0x23c458(0x139)],'client_secret':_0x2df115[_0x23c458(0xc1)],'grant_type':_0x23c458(0xf5)},'json':!![]};return rp(_0x407366)[_0x23c458(0xe4)](function(_0xf5c15c){const _0x27901d=_0x23c458;accountsTokens[_0x2df115['id']]={'access_token':_0xf5c15c[_0x27901d(0x147)],'expires_in':moment()[_0x27901d(0x136)](_0xf5c15c[_0x27901d(0x112)],_0x27901d(0x134))},_0x36a288(_0xf5c15c[_0x27901d(0x147)]);})[_0x23c458(0x106)](function(_0x225d40){const _0x35cff3=_0x23c458;logger[_0x35cff3(0x14d)]('Failing\x20creating\x20the\x20access_token',_0x225d40[_0x35cff3(0x14f)]),_0x4567d3(_0x225d40);});});}function getUser(_0x538c4d,_0x2a50be,_0xc0d8ac,_0x57f537){const _0x21a46b=a1315_0x289993;return logger[_0x21a46b(0xd0)](_0x21a46b(0xf3)),request({'method':_0x21a46b(0x128),'uri':util[_0x21a46b(0xc0)](_0x21a46b(0xfb),_0x2a50be),'qs':{'type':_0x21a46b(0x100)},'headers':{'Authorization':_0x21a46b(0x11c)+_0x538c4d},'json':!![]})[_0x21a46b(0xe4)](function(_0x3f114f){const _0x1532c0=_0x21a46b;if(_0x3f114f[_0x1532c0(0x10a)]){let _0x59e679=-0x1;if(_['isArrayLikeObject'](_0x3f114f[_0x1532c0(0x10a)]))return!_[_0x1532c0(0x137)](_0x57f537)&&(_0x59e679=_[_0x1532c0(0xdb)](_0x3f114f[_0x1532c0(0x10a)],function(_0x1a9e63){const _0x46be8e=_0x1532c0;return _0x1a9e63[_0x46be8e(0xdc)]===_0x57f537;})),_0x59e679>=0x0?logger[_0x1532c0(0xd0)](_0x1532c0(0xf0)):(logger['info'](_0x1532c0(0xd8)),_0x59e679=_[_0x1532c0(0xdb)](_0x3f114f[_0x1532c0(0x10a)],function(_0x2ce163){const _0x397950=_0x1532c0;return _0x2ce163[_0x397950(0x131)][_0x397950(0xcc)]===_0x397950(0x10d);})),_0x3f114f[_0x1532c0(0x10a)][_0x59e679];else{if(_0x3f114f['user'][_0x1532c0(0x131)][_0x1532c0(0xcc)]==='Administrator'){logger[_0x1532c0(0xd0)]('Using\x20the\x20admin\x20account!');const _0x4cb417=_0x3f114f[_0x1532c0(0xd7)];return _0x4cb417;}else{logger[_0x1532c0(0x14d)](_0x1532c0(0xe7),JSON['stringify'](_0x3f114f));throw new Error('Unable\x20to\x20retrieve\x20zoho\x20account\x20users:\x20'+JSON['stringify'](_0x3f114f));}}}else{logger['error'](_0x1532c0(0xe7),JSON[_0x1532c0(0xd1)](_0x3f114f));throw new Error('Unable\x20to\x20retrieve\x20zoho\x20account\x20users:\x20'+JSON[_0x1532c0(0xd1)](_0x3f114f));}})[_0x21a46b(0x106)](function(_0x39f9aa){const _0x3d0cf0=_0x21a46b;console[_0x3d0cf0(0x14d)](_0x39f9aa);});}function getZohoUser(_0xf7f78f,_0x49cd55){return new Promise(function(_0x258060,_0x2f33cc){const _0x225d2a=a1315_0x57ee;request(_0xf7f78f)['then'](function(_0x5150b0){const _0x4e5c64=a1315_0x57ee;let _0x227b40=null;_0x5150b0&&(_0x227b40=_0x5150b0[_0x4e5c64(0xc3)][0x0],_0x227b40[_0x4e5c64(0x109)]=_0x49cd55),_0x258060(_0x227b40);})[_0x225d2a(0x106)](function(_0x288729){_0x2f33cc(_0x288729);});});}function createEndUser(_0x39aa6c,_0x497426,_0x51b36c,_0x55cc42,_0x3084c4,_0x47a9dd){const _0x568038=a1315_0x289993;return _0x51b36c=getName(_0x51b36c),request({'method':'POST','uri':_0x568038(0xdf)+_0x497426+_0x568038(0x10f)+_[_0x568038(0xbd)](_0x47a9dd['moduleCreate'])+'s','body':{'data':[{'Last_Name':_0x51b36c[0x1],'First_Name':_0x51b36c[0x0],'Phone':_0x55cc42,'Owner':{'name':!_[_0x568038(0x137)](_0x3084c4[_0x568038(0xcd)][_0x568038(0xcc)])?_0x3084c4[_0x568038(0xcd)][_0x568038(0xcc)]:!_[_0x568038(0x137)](_0x3084c4[_0x568038(0xe3)])?_0x3084c4['first_name']+'\x20'+_0x3084c4['last_name']:_0x3084c4[_0x568038(0xfa)],'id':_0x3084c4['id']}}]},'headers':{'Authorization':_0x568038(0x11c)+_0x39aa6c},'json':!![]})['then'](function(_0x2b990e){const _0x9bab40=_0x568038;if(_0x2b990e&&_0x2b990e['data'][0x0]['code']==='SUCCESS'){const _0x4316e4=_0x2b990e[_0x9bab40(0xc3)][0x0]['details'];return _0x4316e4['enduserType']=_[_0x9bab40(0xbd)](_0x47a9dd['moduleCreate'])+'s',_0x4316e4;}const _0x179db7=_0x2b990e['data'];logger[_0x9bab40(0x14d)]('The\x20failing\x20result\x20is',JSON[_0x9bab40(0xd1)](_0x179db7));throw new Error(_0x9bab40(0xdd)+JSON[_0x9bab40(0xd1)](_0x179db7));})['catch'](function(_0x574a6c){const _0x8d3b4a=_0x568038;console[_0x8d3b4a(0xec)](_0x8d3b4a(0xda),_0x574a6c);});}function getEndUser(_0xba1c04,_0x57efef,_0x561bd0,_0x43ecc9,_0x1cfce2,_0x4b91e5,_0x2574d3){const _0x51b239=a1315_0x289993,_0x1fde3a={'method':_0x51b239(0x128),'uri':'','headers':{'Authorization':'Zoho-oauthtoken\x20'+_0xba1c04},'json':!![]};switch(_0x2574d3[_0x51b239(0x127)]){case _0x51b239(0x124):_0x1fde3a['uri']=_0x51b239(0xdf)+_0x57efef+'/crm/v2/Contacts/search?criteria=((Phone:equals:'+_0x1cfce2+'))';return getZohoUser(_0x1fde3a,_0x51b239(0x132))['then'](function(_0x3dd605){const _0x50ad24=_0x51b239;if(_0x3dd605)return _0x3dd605;return _0x1fde3a[_0x50ad24(0x122)]='https://www.zohoapis.'+_0x57efef+'/crm/v2/Leads/search?criteria=((Phone:equals:'+_0x1cfce2+'))',getZohoUser(_0x1fde3a,_0x50ad24(0xe1))[_0x50ad24(0xe4)](function(_0x3a9133){const _0x26aa25=_0x50ad24;if(_0x3a9133)return _0x3a9133;return _0x2574d3[_0x26aa25(0xee)]!=_0x26aa25(0x14a)?createEndUser(_0xba1c04,_0x57efef,_0x43ecc9,_0x1cfce2,_0x4b91e5,_0x2574d3):{};});});case _0x51b239(0xc6):_0x1fde3a[_0x51b239(0x122)]='https://www.zohoapis.'+_0x57efef+_0x51b239(0x135)+_0x1cfce2+'))';return getZohoUser(_0x1fde3a,_0x51b239(0x132))[_0x51b239(0xe4)](function(_0x4e10f3){const _0x42b6df=_0x51b239;if(_0x4e10f3)return _0x4e10f3;return _0x2574d3['moduleCreate']!=_0x42b6df(0x14a)?createEndUser(_0xba1c04,_0x57efef,_0x43ecc9,_0x1cfce2,_0x4b91e5,_0x2574d3):{};});case _0x51b239(0xd5):_0x1fde3a[_0x51b239(0x122)]=_0x51b239(0xdf)+_0x57efef+_0x51b239(0x115)+_0x1cfce2+'))';return getZohoUser(_0x1fde3a,_0x51b239(0xe1))[_0x51b239(0xe4)](function(_0x27bd47){const _0x2ead45=_0x51b239;if(_0x27bd47)return _0x27bd47;return _0x2574d3['moduleCreate']!=_0x2ead45(0x14a)?createEndUser(_0xba1c04,_0x57efef,_0x43ecc9,_0x1cfce2,_0x4b91e5,_0x2574d3):{};});}}function getCall(_0x13cce7,_0x4ae6f6,_0x1986c6,_0x2b91f7,_0x55e6d4,_0x192eed,_0x5b28a0,_0x213c08){const _0x114f44=a1315_0x289993;logger[_0x114f44(0xd0)](_0x114f44(0x144));let _0x13a12f={};_0x13a12f['Owner']={'name':!_['isNil'](_0x2b91f7['role'][_0x114f44(0xcc)])&&!_[_0x114f44(0x137)](_0x2b91f7[_0x114f44(0x131)][_0x114f44(0xcc)])&&_0x2b91f7[_0x114f44(0x131)][_0x114f44(0xcc)]===_0x114f44(0x10b)?_0x2b91f7[_0x114f44(0xcd)][_0x114f44(0xcc)]:!_['isNil'](_0x2b91f7[_0x114f44(0xe3)])?_0x2b91f7[_0x114f44(0xe3)]+'\x20'+_0x2b91f7[_0x114f44(0xfa)]:_0x2b91f7[_0x114f44(0xfa)],'id':_0x2b91f7['id']},_0x13a12f[_0x114f44(0x148)]=intUtil['getString'](_0x192eed['Subjects'],_0x5b28a0,'\x20'),_0x13a12f[_0x114f44(0xd4)]=intUtil[_0x114f44(0x13d)](_0x192eed[_0x114f44(0x11b)],_0x5b28a0,'\x0a');_0x55e6d4[_0x114f44(0x109)]===_0x114f44(0x132)&&(_0x13a12f['Who_Id']={'name':!_[_0x114f44(0x137)](_0x55e6d4[_0x114f44(0xfd)])?_0x55e6d4['Full_Name']:!_['isNil'](_0x55e6d4[_0x114f44(0xf7)])?_0x55e6d4[_0x114f44(0xf7)]+'\x20'+_0x55e6d4[_0x114f44(0x104)]:_0x55e6d4['Last_Name'],'id':_0x55e6d4['id']});_0x55e6d4['enduserType']===_0x114f44(0xe1)&&(_0x13a12f[_0x114f44(0x11d)]={'name':!_[_0x114f44(0x137)](_0x55e6d4[_0x114f44(0xfd)])?_0x55e6d4[_0x114f44(0xfd)]:!_[_0x114f44(0x137)](_0x55e6d4[_0x114f44(0xf7)])?_0x55e6d4[_0x114f44(0xf7)]+'\x20'+_0x55e6d4[_0x114f44(0x104)]:_0x55e6d4[_0x114f44(0x104)],'id':_0x55e6d4['id']},_0x13a12f[_0x114f44(0x11f)]=_[_0x114f44(0xbd)](_0x55e6d4[_0x114f44(0x109)]));if(_0x5b28a0[_0x114f44(0x143)])_0x13a12f[_0x114f44(0x126)]=moment[_0x114f44(0xc9)](parseInt(_0x5b28a0['talktime'])*0x3e8)[_0x114f44(0xc0)](_0x114f44(0xd3));else _0x5b28a0[_0x114f44(0x12b)]&&_0x5b28a0['endtime']&&(_0x13a12f['Call_Duration']=moment['utc'](moment(_0x5b28a0[_0x114f44(0xc2)],'YYYY-MM-DDTHH:mm:ss')[_0x114f44(0xc4)](moment(_0x5b28a0['starttime'],_0x114f44(0xe5))))['format'](_0x114f44(0xd3)));switch(_0x5b28a0[_0x114f44(0x13b)]){case _0x114f44(0xef):_0x13a12f[_0x114f44(0x107)]=_0x114f44(0x116);break;case _0x114f44(0x14b):case _0x114f44(0x101):_0x13a12f['Call_Result']=_0x114f44(0x12e);break;case'rejected':_0x13a12f[_0x114f44(0x107)]=_0x114f44(0x111);break;case'abandoned':_0x13a12f['Call_Result']=_0x114f44(0x150);break;case'timeout':_0x13a12f[_0x114f44(0x107)]=_0x114f44(0xfc);break;default:break;}return _0x13a12f[_0x114f44(0xc7)]=(_0x213c08===_0x114f44(0x120)?moment(_0x5b28a0[_0x114f44(0x13c)])[_0x114f44(0xc0)]('YYYY-MM-DDTHH:mm:ss'):moment(_0x5b28a0[_0x114f44(0xd2)])['format'](_0x114f44(0xe5)))||moment()[_0x114f44(0xc0)](_0x114f44(0xe5)),_0x13a12f[_0x114f44(0xf9)]=_0x213c08||_0x114f44(0x14c),_0x13a12f=_['merge'](_0x13a12f,getCustomFields(_0x192eed['Fields'],_0x5b28a0)),request({'method':'POST','uri':_0x114f44(0xdf)+_0x4ae6f6+'/crm/v2/Calls','headers':{'Authorization':_0x114f44(0x11c)+_0x13cce7},'body':{'data':[_0x13a12f]},'json':!![]})[_0x114f44(0xe4)](function(_0x5ae2bf){const _0x2a6bc0=_0x114f44;if(_0x5ae2bf&&_0x5ae2bf['data'][0x0][_0x2a6bc0(0xde)]===_0x2a6bc0(0xeb))return logger[_0x2a6bc0(0xd0)](_0x2a6bc0(0xe0)),{'id':_0x5ae2bf[_0x2a6bc0(0xc3)][0x0][_0x2a6bc0(0xd6)]['id']};})[_0x114f44(0x106)](function(_0x13c3d3){const _0x209dd6=_0x114f44;logger['info'](_0x209dd6(0x121),_0x13c3d3['stack']),console[_0x209dd6(0xec)](_0x209dd6(0x121),_0x13c3d3);});}exports['queue']=function(_0xdaac5f,_0x45e7f3,_0x166fc5,_0x2564b4,_0x272ddd,_0x236eff){const _0x46d9e1=a1315_0x289993;let _0x4dbae2,_0x5bd1a1,_0x1691b1;_0x236eff['host']=intUtil[_0x46d9e1(0x13e)](_0x236eff[_0x46d9e1(0x108)]),_0x236eff['serverUrl']=intUtil[_0x46d9e1(0x13e)](_0x236eff[_0x46d9e1(0x123)]);_0x272ddd&&_0x272ddd[_0x46d9e1(0x11e)]?(logger[_0x46d9e1(0xd0)](_0x46d9e1(0xf8),_0x46d9e1(0x103)),_0x45e7f3[_0x46d9e1(0x141)]=_0x236eff[_0x46d9e1(0x123)]+_0x46d9e1(0xf6)+_0x45e7f3['uniqueid']+_0x46d9e1(0xed)+md5(_0x45e7f3[_0x46d9e1(0x10c)])):_0x45e7f3[_0x46d9e1(0x141)]='';const _0x884f5e=_0x236eff[_0x46d9e1(0x108)]===_0x46d9e1(0x12f)?'eu':_0x46d9e1(0xea);return getAccessToken(_0x236eff)[_0x46d9e1(0xe4)](function(_0x26d2f6){const _0x53be70=_0x46d9e1;return _0x1691b1=_0x26d2f6,getUser(_0x1691b1,_0x884f5e,_0x236eff,_0x2564b4[_0x53be70(0xdc)]);})[_0x46d9e1(0xe4)](function(_0xc3593c){const _0x445599=_0x46d9e1;return _0x4dbae2=_0xc3593c,logger[_0x445599(0xd0)](_0x445599(0x13a),_0x4dbae2['id']),getEndUser(_0x1691b1,_0x884f5e,_0x236eff,_0x45e7f3[_0x445599(0x130)],_0x45e7f3[_0x445599(0xff)],_0x4dbae2,_0x166fc5);})[_0x46d9e1(0xe4)](function(_0x14fe79){const _0x246209=_0x46d9e1;return _0x5bd1a1=_0x14fe79,getCall(_0x1691b1,_0x884f5e,_0x236eff,_0x4dbae2,_0x5bd1a1,_0x166fc5,_0x45e7f3,_0x246209(0x14c));})[_0x46d9e1(0xe4)](function(_0x1cee89){const _0x43f8bd=_0x46d9e1;_0x1cee89&&(logger[_0x43f8bd(0xd0)](_0x43f8bd(0xce),_0x1cee89['id']),logger[_0x43f8bd(0xd0)](_0x43f8bd(0xf8),_0x43f8bd(0xbf)),emit(util[_0x43f8bd(0xc0)]('user:%s',_0x2564b4[_0x43f8bd(0xcc)]),'trigger:browser:url',{'uri':'https://crm.'+_0x236eff[_0x43f8bd(0x108)]+'/crm/EntityInfo.do?module=Calls&id='+_0x1cee89['id']}));})[_0x46d9e1(0x106)](function(_0x3cffb5){const _0x152a7b=_0x46d9e1;logger[_0x152a7b(0x14d)](_0x152a7b(0xf8),JSON[_0x152a7b(0xd1)](_0x3cffb5));});},exports[a1315_0x289993(0x120)]=function(_0x27d587,_0x517ef1,_0x4a8950,_0xdcdb1c,_0x11b834,_0x569697,_0x47def3){const _0x38b5e3=a1315_0x289993;let _0x399ec2,_0x132f6d,_0x11a30f;_0x569697[_0x38b5e3(0x108)]=intUtil[_0x38b5e3(0x13e)](_0x569697[_0x38b5e3(0x108)]),_0x569697[_0x38b5e3(0x123)]=intUtil[_0x38b5e3(0x13e)](_0x569697[_0x38b5e3(0x123)]);_0x47def3&&_0x47def3['recordingFormat']&&_0x47def3[_0x38b5e3(0x149)]!==_0x38b5e3(0xfe)&&(logger[_0x38b5e3(0xd0)](_0x38b5e3(0xe2),_0x38b5e3(0x103)),_0x517ef1['recordingURL']=_0x569697[_0x38b5e3(0x123)]+_0x38b5e3(0xf6)+_0x517ef1['uniqueid']+_0x38b5e3(0xed)+md5(_0x517ef1[_0x38b5e3(0x10c)]));const _0x177f08=_0x569697[_0x38b5e3(0x108)]===_0x38b5e3(0x12f)?'eu':_0x38b5e3(0xea);return getAccessToken(_0x569697)[_0x38b5e3(0xe4)](function(_0x2156fa){const _0x2e90dd=_0x38b5e3;return _0x11a30f=_0x2156fa,getUser(_0x11a30f,_0x177f08,_0x569697,_0xdcdb1c[_0x2e90dd(0xdc)]);})[_0x38b5e3(0xe4)](function(_0x8b8c2d){const _0x45b3be=_0x38b5e3;return _0x399ec2=_0x8b8c2d,logger[_0x45b3be(0xd0)](_0x45b3be(0x13a),_0x399ec2['id']),getEndUser(_0x11a30f,_0x177f08,_0x569697,_0x517ef1[_0x45b3be(0x12d)],_0x517ef1[_0x45b3be(0x145)],_0x399ec2,_0x4a8950);})[_0x38b5e3(0xe4)](function(_0x3450a1){const _0x31e1fb=_0x38b5e3;return _0x132f6d=_0x3450a1,getCall(_0x11a30f,_0x177f08,_0x569697,_0x399ec2,_0x132f6d,_0x4a8950,_0x517ef1,_0x31e1fb(0x142));})[_0x38b5e3(0xe4)](function(_0x3cc391){const _0x92701b=_0x38b5e3;_0x3cc391&&(logger[_0x92701b(0xd0)](_0x92701b(0xce),_0x3cc391['id']),logger[_0x92701b(0xd0)]('[OUTBOUND]',_0x92701b(0xbf)),emit(util[_0x92701b(0xc0)](_0x92701b(0x13f),_0xdcdb1c[_0x92701b(0xcc)]),_0x92701b(0x119),{'uri':_0x92701b(0xbe)+_0x569697[_0x92701b(0x108)]+_0x92701b(0x14e)+_0x3cc391['id']}));})[_0x38b5e3(0x106)](function(_0x51cca2){const _0x2413e3=_0x38b5e3;logger[_0x2413e3(0x14d)]('[OUTBOUND]',JSON['stringify'](_0x51cca2));});},exports[a1315_0x289993(0xc5)]=function(_0x2973d1,_0x4e284b,_0xa69ebc,_0x5c03b8,_0x291eaa,_0x397611){const _0x134660=a1315_0x289993;let _0x75367c,_0xeee6aa,_0x3c06ce;_0x397611[_0x134660(0x108)]=intUtil[_0x134660(0x13e)](_0x397611['host']),_0x397611[_0x134660(0x123)]=intUtil['stripTrailingSlash'](_0x397611['serverUrl']);_0x291eaa&&_0x291eaa['monitor_format']?(logger[_0x134660(0xd0)]('['+_0x4e284b[_0x134660(0x13b)][_0x134660(0x138)]()+']',_0x134660(0x103)),_0x4e284b[_0x134660(0x141)]=_0x397611[_0x134660(0x123)]+_0x134660(0xf6)+_0x4e284b[_0x134660(0x10c)]+_0x134660(0xed)+md5(_0x4e284b[_0x134660(0x10c)])):_0x4e284b[_0x134660(0x141)]='';const _0x1070e9=_0x397611[_0x134660(0x108)]==='zoho.eu'?'eu':'com';return getAccessToken(_0x397611)[_0x134660(0xe4)](function(_0x40f720){return _0x3c06ce=_0x40f720,getUser(_0x3c06ce,_0x1070e9,_0x397611);})[_0x134660(0xe4)](function(_0x4da286){return _0x75367c=_0x4da286,logger['info']('The\x20User\x20ID\x20is:',_0x75367c['id']),getEndUser(_0x3c06ce,_0x1070e9,_0x397611,_0x4e284b['calleridname'],_0x4e284b['calleridnum'],_0x75367c,_0xa69ebc);})['then'](function(_0x5e38d8){const _0xec2b7d=_0x134660;return _0xeee6aa=_0x5e38d8,getCall(_0x3c06ce,_0x1070e9,_0x397611,_0x75367c,_0xeee6aa,_0xa69ebc,_0x4e284b,_0xec2b7d(0x14c));})[_0x134660(0xe4)](function(_0x4b4dc2){const _0x506945=_0x134660;_0x4b4dc2&&logger[_0x506945(0xd0)](_0x506945(0xce),_0x4b4dc2['id']);})[_0x134660(0x106)](function(_0x40b019){const _0x20dbab=_0x134660;logger[_0x20dbab(0x14d)]('['+_0x4e284b[_0x20dbab(0x13b)][_0x20dbab(0x138)]()+']',JSON[_0x20dbab(0xd1)](_0x40b019));});}; \ No newline at end of file +const a1315_0x15c5=['../../../../config/logger','The\x20User\x20ID\x20is:','nothing','variableName','Subject','outbound','first_name','moduleCreate','Creating\x20new\x20call...','https://accounts.zoho.com','util','request-promise-native','info','contact_lead','type','/crm/v2/Calls','lead','[QUEUE]','debug','calleridnum','users','./util','/downloads?type=uniqueid&token=','code','ActiveUsers','trigger:browser:url','name','Subjects','unmanaged','content','utc','https://www.zohoapis.','https://accounts.zoho.eu','details','Leads','format','add','starttime','uri','variable','administrator','Call_Duration','POST','Timeout','abandoned','zoho.eu','Recording\x20is\x20enabled!','moment','Agent\x20found!','email','The\x20Call\x20ID\x20is:','contact','endtime','recordingURL','Displaying\x20call\x20to\x20agent\x20in\x20a\x20new\x20tab...','Zoho-oauthtoken\x20','Full_Name','First_Name','CREATE\x20ERROR','Who_Id','startCase','/crm/v2/Leads/search?criteria=((Phone:equals:','/oauth/v2/token','emit','none','toString','idField','serverUrl','/api/voice/recordings/','talktime','agentcalledAt','Using\x20the\x20admin\x20account!','customVariable','toLowerCase','called','indexOf','[OUTBOUND]','length','profile','rejected','SUCCESS','Last_Name','stringify','Owner','Call_Start_Time','The\x20failing\x20result\x20is','toUpperCase','isNil','data','Unable\x20to\x20retrieve\x20zoho\x20account\x20users:\x20','Administrator','Description','last_name','GET','lastevent','then','isBefore','refresh_token','refreshToken','queue','catch','recordingFormat','Variable','enduserType','err','https://accounts.zoho.com.cn','expires_in','host','getString','https://crm.','log','Call\x20created!','[HTTP]','What_Id','Error:\x20','zoho','calleridname','user','uniqueid','Inbound','com','$se_module','role','moduleSearch','isArrayLikeObject','Abandoned','Search\x20user','Call_Result','Call_Type','forEach','YYYY-MM-DDTHH:mm:ss','merge','Rejected','string','error','Contacts','Failing\x20creating\x20the\x20access_token','https://accounts.zoho.in','findIndex','complete','monitor_format','stripTrailingSlash','https://accounts.zoho.com.au','/crm/EntityInfo.do?module=Calls&id=','clientSecret'];(function(_0x407df2,_0x73dd0e){const _0x15c535=function(_0x4381d8){while(--_0x4381d8){_0x407df2['push'](_0x407df2['shift']());}};_0x15c535(++_0x73dd0e);}(a1315_0x15c5,0x74));const a1315_0x4381=function(_0x407df2,_0x73dd0e){_0x407df2=_0x407df2-0x16e;let _0x15c535=a1315_0x15c5[_0x407df2];return _0x15c535;};const a1315_0x578f25=a1315_0x4381;'use strict';const _=require('lodash'),rp=require(a1315_0x578f25(0x196)),md5=require('md5'),util=require(a1315_0x578f25(0x195)),intUtil=require(a1315_0x578f25(0x1a0)),moment=require(a1315_0x578f25(0x1ba)),logger=require(a1315_0x578f25(0x18b))(a1315_0x578f25(0x1fe)),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x1d5942,_0x31819c,_0x3a6a9b){const _0x1ec47c=a1315_0x578f25;io['to'](_0x1d5942)[_0x1ec47c(0x1ca)](_0x31819c,_0x3a6a9b);}function request(_0x52b67e){const _0x1c019a=a1315_0x578f25;return logger[_0x1c019a(0x19d)](_0x1c019a(0x1fb),JSON[_0x1c019a(0x1dd)](_0x52b67e)),rp(_0x52b67e);}function getCustomFields(_0x19a937,_0x3f8ef1){const _0x2cb11f=a1315_0x578f25,_0x427526={};return _0x19a937[_0x2cb11f(0x1d8)]>0x0&&_[_0x2cb11f(0x17b)](_0x19a937,function(_0x194ba7){const _0xa3da5d=_0x2cb11f;if(_0x194ba7[_0xa3da5d(0x199)]===_0xa3da5d(0x17f)&&_0x194ba7['idField'])_0x427526[_0x194ba7['idField']]=_0x194ba7[_0xa3da5d(0x1a8)][_0xa3da5d(0x1cc)]();else{if(_0x194ba7[_0xa3da5d(0x199)]===_0xa3da5d(0x1b2)&&_0x194ba7['variableName']&&_0x194ba7[_0xa3da5d(0x1cd)]&&_0x3f8ef1[_0x194ba7[_0xa3da5d(0x18e)]])_0x427526[_0x194ba7[_0xa3da5d(0x1cd)]]=_0x3f8ef1[_0x194ba7[_0xa3da5d(0x18e)]]['toString']();else _0x194ba7[_0xa3da5d(0x199)]===_0xa3da5d(0x1d3)&&_0x194ba7['Variable']&&_0x194ba7[_0xa3da5d(0x1f1)]['name']&&_0x194ba7[_0xa3da5d(0x1cd)]&&_0x3f8ef1[_0x194ba7[_0xa3da5d(0x1f1)][_0xa3da5d(0x1a5)]['toLowerCase']()]&&(_0x427526[_0x194ba7['idField']]=_0x3f8ef1[_0x194ba7['Variable']['name'][_0xa3da5d(0x1d4)]()][_0xa3da5d(0x1cc)]());}}),_0x427526;}function getName(_0x1aa2c4){const _0x5d7649=a1315_0x578f25;if(_0x1aa2c4[_0x5d7649(0x1d6)]('\x20')>0x0){const _0x7a8a15=_0x1aa2c4['split'](/ (.+)/);if(_0x7a8a15[0x1])return _0x7a8a15;}return[_0x1aa2c4,_0x1aa2c4];}const accountsTokens={};function getAccessToken(_0x32c51b){return new Promise(function(_0x5d81ad,_0x403347){const _0x1543c3=a1315_0x4381;!_[_0x1543c3(0x1e2)](accountsTokens[_0x32c51b['id']])&&!_['isNil'](accountsTokens[_0x32c51b['id']]['access_token'])&&(moment()[_0x1543c3(0x1eb)](accountsTokens[_0x32c51b['id']][_0x1543c3(0x1f5)])&&_0x5d81ad(accountsTokens[_0x32c51b['id']]['access_token']));let _0x5a8467;switch(_0x32c51b['zone']){case'US':_0x5a8467=_0x1543c3(0x194);break;case'AU':_0x5a8467=_0x1543c3(0x188);break;case'EU':_0x5a8467=_0x1543c3(0x1ab);break;case'IN':_0x5a8467=_0x1543c3(0x183);break;case'CN':_0x5a8467=_0x1543c3(0x1f4);break;default:_0x5a8467=_0x1543c3(0x1ab);break;}const _0x2606d2={'method':_0x1543c3(0x1b5),'uri':_0x5a8467+_0x1543c3(0x1c9),'qs':{'refresh_token':_0x32c51b[_0x1543c3(0x1ed)],'client_id':_0x32c51b['clientId'],'client_secret':_0x32c51b[_0x1543c3(0x18a)],'grant_type':_0x1543c3(0x1ec)},'json':!![]};return rp(_0x2606d2)['then'](function(_0x17eea7){const _0x25ce11=_0x1543c3;accountsTokens[_0x32c51b['id']]={'access_token':_0x17eea7['access_token'],'expires_in':moment()[_0x25ce11(0x1af)](_0x17eea7[_0x25ce11(0x1f5)],'seconds')},_0x5d81ad(_0x17eea7['access_token']);})[_0x1543c3(0x1ef)](function(_0x2bbfc1){const _0x46b680=_0x1543c3;logger[_0x46b680(0x180)](_0x46b680(0x182),_0x2bbfc1['stack']),_0x403347(_0x2bbfc1);});});}function getUser(_0x43e3c4,_0x301afa,_0x379067,_0x41c3d3){const _0x51435f=a1315_0x578f25;return logger[_0x51435f(0x197)](_0x51435f(0x178)),request({'method':_0x51435f(0x1e8),'uri':util[_0x51435f(0x1ae)]('https://www.zohoapis.%s/crm/v2/users',_0x301afa),'qs':{'type':_0x51435f(0x1a3)},'headers':{'Authorization':_0x51435f(0x1c2)+_0x43e3c4},'json':!![]})[_0x51435f(0x1ea)](function(_0x47c040){const _0x4400d6=_0x51435f;if(_0x47c040[_0x4400d6(0x19f)]){let _0x5acc5a=-0x1;if(_[_0x4400d6(0x176)](_0x47c040[_0x4400d6(0x19f)]))return!_[_0x4400d6(0x1e2)](_0x41c3d3)&&(_0x5acc5a=_[_0x4400d6(0x184)](_0x47c040[_0x4400d6(0x19f)],function(_0x3186d3){const _0x5e4156=_0x4400d6;return _0x3186d3[_0x5e4156(0x1bc)]===_0x41c3d3;})),_0x5acc5a>=0x0?logger[_0x4400d6(0x197)](_0x4400d6(0x1bb)):(logger[_0x4400d6(0x197)](_0x4400d6(0x1d2)),_0x5acc5a=_[_0x4400d6(0x184)](_0x47c040[_0x4400d6(0x19f)],function(_0x3a818d){const _0x20acbd=_0x4400d6;return _0x3a818d['profile'][_0x20acbd(0x1a5)]===_0x20acbd(0x1e5);})),_0x47c040[_0x4400d6(0x19f)][_0x5acc5a];else{if(_0x47c040[_0x4400d6(0x16f)][_0x4400d6(0x1d9)][_0x4400d6(0x1a5)]==='Administrator'){logger[_0x4400d6(0x197)](_0x4400d6(0x1d2));const _0x1fba0f=_0x47c040[_0x4400d6(0x16f)];return _0x1fba0f;}else{logger[_0x4400d6(0x180)](_0x4400d6(0x1e0),JSON[_0x4400d6(0x1dd)](_0x47c040));throw new Error('Unable\x20to\x20retrieve\x20zoho\x20account\x20users:\x20'+JSON[_0x4400d6(0x1dd)](_0x47c040));}}}else{logger[_0x4400d6(0x180)](_0x4400d6(0x1e0),JSON['stringify'](_0x47c040));throw new Error(_0x4400d6(0x1e4)+JSON[_0x4400d6(0x1dd)](_0x47c040));}})['catch'](function(_0x45b0f9){const _0x42f932=_0x51435f;console[_0x42f932(0x180)](_0x45b0f9);});}function getZohoUser(_0x400551,_0xe29360){return new Promise(function(_0x1848c7,_0x4e10e1){const _0x2ecb91=a1315_0x4381;request(_0x400551)[_0x2ecb91(0x1ea)](function(_0x1a6e7a){const _0x3a4869=_0x2ecb91;let _0x124371=null;_0x1a6e7a&&(_0x124371=_0x1a6e7a[_0x3a4869(0x1e3)][0x0],_0x124371['enduserType']=_0xe29360),_0x1848c7(_0x124371);})[_0x2ecb91(0x1ef)](function(_0x15a265){_0x4e10e1(_0x15a265);});});}function createEndUser(_0x59337c,_0x442176,_0x2127ee,_0x117cad,_0x25ea64,_0x797093){const _0x1eec2d=a1315_0x578f25;return _0x2127ee=getName(_0x2127ee),request({'method':'POST','uri':_0x1eec2d(0x1aa)+_0x442176+'/crm/v2/'+_[_0x1eec2d(0x1c7)](_0x797093[_0x1eec2d(0x192)])+'s','body':{'data':[{'Last_Name':_0x2127ee[0x1],'First_Name':_0x2127ee[0x0],'Phone':_0x117cad,'Owner':{'name':!_['isNil'](_0x25ea64['role'][_0x1eec2d(0x1a5)])?_0x25ea64[_0x1eec2d(0x174)][_0x1eec2d(0x1a5)]:!_[_0x1eec2d(0x1e2)](_0x25ea64[_0x1eec2d(0x191)])?_0x25ea64[_0x1eec2d(0x191)]+'\x20'+_0x25ea64[_0x1eec2d(0x1e7)]:_0x25ea64['last_name'],'id':_0x25ea64['id']}}]},'headers':{'Authorization':_0x1eec2d(0x1c2)+_0x59337c},'json':!![]})['then'](function(_0x449006){const _0x15c72e=_0x1eec2d;if(_0x449006&&_0x449006[_0x15c72e(0x1e3)][0x0][_0x15c72e(0x1a2)]===_0x15c72e(0x1db)){const _0x3925af=_0x449006[_0x15c72e(0x1e3)][0x0][_0x15c72e(0x1ac)];return _0x3925af[_0x15c72e(0x1f2)]=_['startCase'](_0x797093[_0x15c72e(0x192)])+'s',_0x3925af;}const _0x23cd8c=_0x449006[_0x15c72e(0x1e3)];logger['error'](_0x15c72e(0x1e0),JSON[_0x15c72e(0x1dd)](_0x23cd8c));throw new Error(_0x15c72e(0x1fd)+JSON[_0x15c72e(0x1dd)](_0x23cd8c));})[_0x1eec2d(0x1ef)](function(_0x4713cf){const _0x2e6fd4=_0x1eec2d;console['log'](_0x2e6fd4(0x1c5),_0x4713cf);});}function getEndUser(_0x322e61,_0x20e661,_0x29923f,_0x545424,_0x5c3c01,_0x2afaef,_0x36ba5f){const _0x9d1036=a1315_0x578f25,_0x2b4152={'method':_0x9d1036(0x1e8),'uri':'','headers':{'Authorization':_0x9d1036(0x1c2)+_0x322e61},'json':!![]};switch(_0x36ba5f[_0x9d1036(0x175)]){case _0x9d1036(0x198):_0x2b4152[_0x9d1036(0x1b1)]=_0x9d1036(0x1aa)+_0x20e661+'/crm/v2/Contacts/search?criteria=((Phone:equals:'+_0x5c3c01+'))';return getZohoUser(_0x2b4152,_0x9d1036(0x181))[_0x9d1036(0x1ea)](function(_0x2c162b){const _0xd1cf6e=_0x9d1036;if(_0x2c162b)return _0x2c162b;return _0x2b4152[_0xd1cf6e(0x1b1)]=_0xd1cf6e(0x1aa)+_0x20e661+_0xd1cf6e(0x1c8)+_0x5c3c01+'))',getZohoUser(_0x2b4152,'Leads')[_0xd1cf6e(0x1ea)](function(_0x2585dd){const _0x255942=_0xd1cf6e;if(_0x2585dd)return _0x2585dd;return _0x36ba5f[_0x255942(0x192)]!=_0x255942(0x18d)?createEndUser(_0x322e61,_0x20e661,_0x545424,_0x5c3c01,_0x2afaef,_0x36ba5f):{};});});case _0x9d1036(0x1be):_0x2b4152['uri']=_0x9d1036(0x1aa)+_0x20e661+'/crm/v2/Contacts/search?criteria=((Phone:equals:'+_0x5c3c01+'))';return getZohoUser(_0x2b4152,_0x9d1036(0x181))['then'](function(_0x775700){const _0x114c61=_0x9d1036;if(_0x775700)return _0x775700;return _0x36ba5f[_0x114c61(0x192)]!=_0x114c61(0x18d)?createEndUser(_0x322e61,_0x20e661,_0x545424,_0x5c3c01,_0x2afaef,_0x36ba5f):{};});case _0x9d1036(0x19b):_0x2b4152['uri']=_0x9d1036(0x1aa)+_0x20e661+_0x9d1036(0x1c8)+_0x5c3c01+'))';return getZohoUser(_0x2b4152,_0x9d1036(0x1ad))[_0x9d1036(0x1ea)](function(_0x2c91a4){const _0x2e6f1a=_0x9d1036;if(_0x2c91a4)return _0x2c91a4;return _0x36ba5f['moduleCreate']!=_0x2e6f1a(0x18d)?createEndUser(_0x322e61,_0x20e661,_0x545424,_0x5c3c01,_0x2afaef,_0x36ba5f):{};});}}function getCall(_0xe2db3b,_0x5be288,_0x494792,_0x1f8faa,_0x3478ef,_0x3ff69a,_0xca3a0b,_0xb40e6c){const _0x16cbfa=a1315_0x578f25;logger[_0x16cbfa(0x197)](_0x16cbfa(0x193));let _0x59e473={};_0x59e473[_0x16cbfa(0x1de)]={'name':!_[_0x16cbfa(0x1e2)](_0x1f8faa[_0x16cbfa(0x174)][_0x16cbfa(0x1a5)])&&!_[_0x16cbfa(0x1e2)](_0x1f8faa[_0x16cbfa(0x1d9)][_0x16cbfa(0x1a5)])&&_0x1f8faa['profile'][_0x16cbfa(0x1a5)]===_0x16cbfa(0x1b3)?_0x1f8faa[_0x16cbfa(0x174)]['name']:!_['isNil'](_0x1f8faa[_0x16cbfa(0x191)])?_0x1f8faa[_0x16cbfa(0x191)]+'\x20'+_0x1f8faa['last_name']:_0x1f8faa[_0x16cbfa(0x1e7)],'id':_0x1f8faa['id']},_0x59e473[_0x16cbfa(0x18f)]=intUtil['getString'](_0x3ff69a[_0x16cbfa(0x1a6)],_0xca3a0b,'\x20'),_0x59e473[_0x16cbfa(0x1e6)]=intUtil[_0x16cbfa(0x1f7)](_0x3ff69a['Descriptions'],_0xca3a0b,'\x0a');_0x3478ef['enduserType']==='Contacts'&&(_0x59e473[_0x16cbfa(0x1c6)]={'name':!_[_0x16cbfa(0x1e2)](_0x3478ef[_0x16cbfa(0x1c3)])?_0x3478ef[_0x16cbfa(0x1c3)]:!_[_0x16cbfa(0x1e2)](_0x3478ef[_0x16cbfa(0x1c4)])?_0x3478ef['First_Name']+'\x20'+_0x3478ef['Last_Name']:_0x3478ef[_0x16cbfa(0x1dc)],'id':_0x3478ef['id']});_0x3478ef[_0x16cbfa(0x1f2)]===_0x16cbfa(0x1ad)&&(_0x59e473[_0x16cbfa(0x1fc)]={'name':!_[_0x16cbfa(0x1e2)](_0x3478ef[_0x16cbfa(0x1c3)])?_0x3478ef[_0x16cbfa(0x1c3)]:!_['isNil'](_0x3478ef[_0x16cbfa(0x1c4)])?_0x3478ef['First_Name']+'\x20'+_0x3478ef[_0x16cbfa(0x1dc)]:_0x3478ef[_0x16cbfa(0x1dc)],'id':_0x3478ef['id']},_0x59e473[_0x16cbfa(0x173)]=_[_0x16cbfa(0x1c7)](_0x3478ef[_0x16cbfa(0x1f2)]));if(_0xca3a0b[_0x16cbfa(0x1d0)])_0x59e473[_0x16cbfa(0x1b4)]=moment[_0x16cbfa(0x1a9)](parseInt(_0xca3a0b[_0x16cbfa(0x1d0)])*0x3e8)[_0x16cbfa(0x1ae)]('mm:ss');else _0xca3a0b['answertime']&&_0xca3a0b['endtime']&&(_0x59e473[_0x16cbfa(0x1b4)]=moment[_0x16cbfa(0x1a9)](moment(_0xca3a0b[_0x16cbfa(0x1bf)],_0x16cbfa(0x17c))['diff'](moment(_0xca3a0b[_0x16cbfa(0x1b0)],'YYYY-MM-DDTHH:mm:ss')))[_0x16cbfa(0x1ae)]('mm:ss'));switch(_0xca3a0b[_0x16cbfa(0x1e9)]){case _0x16cbfa(0x1d5):_0x59e473[_0x16cbfa(0x179)]='Called';break;case _0x16cbfa(0x185):case'connect':_0x59e473[_0x16cbfa(0x179)]='Answered';break;case _0x16cbfa(0x1da):_0x59e473[_0x16cbfa(0x179)]=_0x16cbfa(0x17e);break;case _0x16cbfa(0x1b7):_0x59e473[_0x16cbfa(0x179)]=_0x16cbfa(0x177);break;case'timeout':_0x59e473['Call_Result']=_0x16cbfa(0x1b6);break;default:break;}return _0x59e473[_0x16cbfa(0x1df)]=(_0xb40e6c===_0x16cbfa(0x190)?moment(_0xca3a0b[_0x16cbfa(0x1b0)])[_0x16cbfa(0x1ae)](_0x16cbfa(0x17c)):moment(_0xca3a0b[_0x16cbfa(0x1d1)])[_0x16cbfa(0x1ae)](_0x16cbfa(0x17c)))||moment()[_0x16cbfa(0x1ae)](_0x16cbfa(0x17c)),_0x59e473[_0x16cbfa(0x17a)]=_0xb40e6c||_0x16cbfa(0x171),_0x59e473=_[_0x16cbfa(0x17d)](_0x59e473,getCustomFields(_0x3ff69a['Fields'],_0xca3a0b)),request({'method':_0x16cbfa(0x1b5),'uri':'https://www.zohoapis.'+_0x5be288+_0x16cbfa(0x19a),'headers':{'Authorization':_0x16cbfa(0x1c2)+_0xe2db3b},'body':{'data':[_0x59e473]},'json':!![]})['then'](function(_0x24ebd6){const _0x37aaae=_0x16cbfa;if(_0x24ebd6&&_0x24ebd6[_0x37aaae(0x1e3)][0x0][_0x37aaae(0x1a2)]===_0x37aaae(0x1db))return logger[_0x37aaae(0x197)](_0x37aaae(0x1fa)),{'id':_0x24ebd6[_0x37aaae(0x1e3)][0x0][_0x37aaae(0x1ac)]['id']};})[_0x16cbfa(0x1ef)](function(_0x5eff0e){const _0x3f368=_0x16cbfa;logger['info']('err',_0x5eff0e['stack']),console[_0x3f368(0x1f9)](_0x3f368(0x1f3),_0x5eff0e);});}exports[a1315_0x578f25(0x1ee)]=function(_0x4cb559,_0x4ce1a8,_0x2f50b7,_0x7b1d41,_0x18a40d,_0x27e554){const _0x52dac0=a1315_0x578f25;let _0x17555f,_0x49ff92,_0x7a449b;_0x27e554[_0x52dac0(0x1f6)]=intUtil[_0x52dac0(0x187)](_0x27e554[_0x52dac0(0x1f6)]),_0x27e554[_0x52dac0(0x1ce)]=intUtil[_0x52dac0(0x187)](_0x27e554['serverUrl']);_0x18a40d&&_0x18a40d[_0x52dac0(0x186)]?(logger[_0x52dac0(0x197)](_0x52dac0(0x19c),_0x52dac0(0x1b9)),_0x4ce1a8[_0x52dac0(0x1c0)]=_0x27e554[_0x52dac0(0x1ce)]+_0x52dac0(0x1cf)+_0x4ce1a8[_0x52dac0(0x170)]+_0x52dac0(0x1a1)+md5(_0x4ce1a8[_0x52dac0(0x170)])):_0x4ce1a8[_0x52dac0(0x1c0)]='';const _0x563233=_0x27e554[_0x52dac0(0x1f6)]===_0x52dac0(0x1b8)?'eu':_0x52dac0(0x172);return getAccessToken(_0x27e554)[_0x52dac0(0x1ea)](function(_0x23c75d){const _0xb3ad5c=_0x52dac0;return _0x7a449b=_0x23c75d,getUser(_0x7a449b,_0x563233,_0x27e554,_0x7b1d41[_0xb3ad5c(0x1bc)]);})[_0x52dac0(0x1ea)](function(_0x31f1a9){const _0x57b153=_0x52dac0;return _0x17555f=_0x31f1a9,logger[_0x57b153(0x197)]('The\x20User\x20ID\x20is:',_0x17555f['id']),getEndUser(_0x7a449b,_0x563233,_0x27e554,_0x4ce1a8['calleridname'],_0x4ce1a8[_0x57b153(0x19e)],_0x17555f,_0x2f50b7);})[_0x52dac0(0x1ea)](function(_0x54b3af){const _0x5187e7=_0x52dac0;return _0x49ff92=_0x54b3af,getCall(_0x7a449b,_0x563233,_0x27e554,_0x17555f,_0x49ff92,_0x2f50b7,_0x4ce1a8,_0x5187e7(0x171));})[_0x52dac0(0x1ea)](function(_0xb4e6a8){const _0x3fdcd8=_0x52dac0;_0xb4e6a8&&(logger['info']('The\x20Call\x20ID\x20is:',_0xb4e6a8['id']),logger[_0x3fdcd8(0x197)](_0x3fdcd8(0x19c),_0x3fdcd8(0x1c1)),emit(util[_0x3fdcd8(0x1ae)]('user:%s',_0x7b1d41[_0x3fdcd8(0x1a5)]),_0x3fdcd8(0x1a4),{'uri':_0x3fdcd8(0x1f8)+_0x27e554['host']+'/crm/EntityInfo.do?module=Calls&id='+_0xb4e6a8['id']}));})['catch'](function(_0x4aca1b){const _0x4c13a4=_0x52dac0;logger[_0x4c13a4(0x180)](_0x4c13a4(0x19c),JSON[_0x4c13a4(0x1dd)](_0x4aca1b));});},exports['outbound']=function(_0x186963,_0x40a970,_0x4a6954,_0x52100f,_0x21daaa,_0x3811c3,_0x1f6db0){const _0x1279fb=a1315_0x578f25;let _0x516852,_0x2bf7fe,_0xe7e563;_0x3811c3[_0x1279fb(0x1f6)]=intUtil['stripTrailingSlash'](_0x3811c3['host']),_0x3811c3['serverUrl']=intUtil['stripTrailingSlash'](_0x3811c3[_0x1279fb(0x1ce)]);_0x1f6db0&&_0x1f6db0[_0x1279fb(0x1f0)]&&_0x1f6db0[_0x1279fb(0x1f0)]!==_0x1279fb(0x1cb)&&(logger[_0x1279fb(0x197)](_0x1279fb(0x1d7),_0x1279fb(0x1b9)),_0x40a970['recordingURL']=_0x3811c3['serverUrl']+'/api/voice/recordings/'+_0x40a970['uniqueid']+'/downloads?type=uniqueid&token='+md5(_0x40a970[_0x1279fb(0x170)]));const _0x4a5452=_0x3811c3[_0x1279fb(0x1f6)]===_0x1279fb(0x1b8)?'eu':_0x1279fb(0x172);return getAccessToken(_0x3811c3)['then'](function(_0x21082c){const _0x5a9e73=_0x1279fb;return _0xe7e563=_0x21082c,getUser(_0xe7e563,_0x4a5452,_0x3811c3,_0x52100f[_0x5a9e73(0x1bc)]);})[_0x1279fb(0x1ea)](function(_0xbfb45f){const _0x5f5788=_0x1279fb;return _0x516852=_0xbfb45f,logger[_0x5f5788(0x197)](_0x5f5788(0x18c),_0x516852['id']),getEndUser(_0xe7e563,_0x4a5452,_0x3811c3,_0x40a970['destcalleridname'],_0x40a970['destcalleridnum'],_0x516852,_0x4a6954);})[_0x1279fb(0x1ea)](function(_0x4bf1ab){return _0x2bf7fe=_0x4bf1ab,getCall(_0xe7e563,_0x4a5452,_0x3811c3,_0x516852,_0x2bf7fe,_0x4a6954,_0x40a970,'Outbound');})[_0x1279fb(0x1ea)](function(_0xc887a0){const _0x4af2ac=_0x1279fb;_0xc887a0&&(logger['info']('The\x20Call\x20ID\x20is:',_0xc887a0['id']),logger[_0x4af2ac(0x197)](_0x4af2ac(0x1d7),'Displaying\x20call\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x4af2ac(0x1ae)]('user:%s',_0x52100f[_0x4af2ac(0x1a5)]),_0x4af2ac(0x1a4),{'uri':_0x4af2ac(0x1f8)+_0x3811c3[_0x4af2ac(0x1f6)]+_0x4af2ac(0x189)+_0xc887a0['id']}));})['catch'](function(_0x5a44c6){const _0x169ad5=_0x1279fb;logger[_0x169ad5(0x180)]('[OUTBOUND]',JSON['stringify'](_0x5a44c6));});},exports[a1315_0x578f25(0x1a7)]=function(_0x2d9d3e,_0x1a6f4d,_0x2ad698,_0x4f1ae4,_0x1366dc,_0x3bdace){const _0x1f48cd=a1315_0x578f25;let _0x48b2c0,_0x26dedc,_0x3e6d01;_0x3bdace[_0x1f48cd(0x1f6)]=intUtil[_0x1f48cd(0x187)](_0x3bdace[_0x1f48cd(0x1f6)]),_0x3bdace['serverUrl']=intUtil['stripTrailingSlash'](_0x3bdace[_0x1f48cd(0x1ce)]);_0x1366dc&&_0x1366dc[_0x1f48cd(0x186)]?(logger[_0x1f48cd(0x197)]('['+_0x1a6f4d[_0x1f48cd(0x1e9)][_0x1f48cd(0x1e1)]()+']','Recording\x20is\x20enabled!'),_0x1a6f4d[_0x1f48cd(0x1c0)]=_0x3bdace[_0x1f48cd(0x1ce)]+_0x1f48cd(0x1cf)+_0x1a6f4d[_0x1f48cd(0x170)]+_0x1f48cd(0x1a1)+md5(_0x1a6f4d['uniqueid'])):_0x1a6f4d['recordingURL']='';const _0x5b0556=_0x3bdace[_0x1f48cd(0x1f6)]===_0x1f48cd(0x1b8)?'eu':_0x1f48cd(0x172);return getAccessToken(_0x3bdace)[_0x1f48cd(0x1ea)](function(_0x1138d6){return _0x3e6d01=_0x1138d6,getUser(_0x3e6d01,_0x5b0556,_0x3bdace);})[_0x1f48cd(0x1ea)](function(_0x1f1148){const _0x479178=_0x1f48cd;return _0x48b2c0=_0x1f1148,logger[_0x479178(0x197)]('The\x20User\x20ID\x20is:',_0x48b2c0['id']),getEndUser(_0x3e6d01,_0x5b0556,_0x3bdace,_0x1a6f4d[_0x479178(0x16e)],_0x1a6f4d[_0x479178(0x19e)],_0x48b2c0,_0x2ad698);})[_0x1f48cd(0x1ea)](function(_0x3a5b9c){const _0x4dd72f=_0x1f48cd;return _0x26dedc=_0x3a5b9c,getCall(_0x3e6d01,_0x5b0556,_0x3bdace,_0x48b2c0,_0x26dedc,_0x2ad698,_0x1a6f4d,_0x4dd72f(0x171));})[_0x1f48cd(0x1ea)](function(_0x49484a){const _0x539e53=_0x1f48cd;_0x49484a&&logger[_0x539e53(0x197)](_0x539e53(0x1bd),_0x49484a['id']);})[_0x1f48cd(0x1ef)](function(_0x18789e){const _0x4833c0=_0x1f48cd;logger[_0x4833c0(0x180)]('['+_0x1a6f4d[_0x4833c0(0x1e9)][_0x4833c0(0x1e1)]()+']',JSON[_0x4833c0(0x1dd)](_0x18789e));});}; \ 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 217a009..e4b617d 100644 --- a/server/services/ami/trigger/script/index.js +++ b/server/services/ami/trigger/script/index.js @@ -1 +1 @@ -const a1316_0x2fa1=['%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','exec','../../../../config/logger','data2','data3','util','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','trigger','mustache','format','error'];(function(_0x979f11,_0x3c72e7){const _0x2fa1c9=function(_0x16f080){while(--_0x16f080){_0x979f11['push'](_0x979f11['shift']());}};_0x2fa1c9(++_0x3c72e7);}(a1316_0x2fa1,0x150));const a1316_0x16f0=function(_0x979f11,_0x3c72e7){_0x979f11=_0x979f11-0xd9;let _0x2fa1c9=a1316_0x2fa1[_0x979f11];return _0x2fa1c9;};const a1316_0x3ea37a=a1316_0x16f0;'use strict';const util=require(a1316_0x3ea37a(0xe3)),sh=require('shelljs'),Mustache=require(a1316_0x3ea37a(0xdb)),logger=require(a1316_0x3ea37a(0xe0))(a1316_0x3ea37a(0xda));exports[a1316_0x3ea37a(0xdf)]=function(_0x3331fc,_0x2334b0){const _0x2be3ed=a1316_0x3ea37a,_0x4d1877=_0x3331fc[_0x2be3ed(0xe1)]?_0x3331fc['data2']:'Script',_0x47fd84=_0x3331fc[_0x2be3ed(0xe2)]?Mustache['render'](_0x3331fc['data3'],_0x2334b0):_0x2334b0;sh['exec'](_0x47fd84,function(_0x3d1558,_0x4b6980,_0x4682da){const _0x518a55=_0x2be3ed;_0x3d1558!==0x0?logger[_0x518a55(0xdd)](util[_0x518a55(0xdc)](_0x518a55(0xd9),_0x4d1877,_0x47fd84,_0x3d1558,_0x4682da)):logger['info'](util['format'](_0x518a55(0xde),_0x4d1877,_0x47fd84,_0x4b6980));});}; \ No newline at end of file +const a1316_0x5a78=['%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','../../../../config/logger','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','data3','exec','data2','Script','render','info','shelljs','format'];(function(_0x57b587,_0x3cc0b0){const _0x5a7840=function(_0x315a76){while(--_0x315a76){_0x57b587['push'](_0x57b587['shift']());}};_0x5a7840(++_0x3cc0b0);}(a1316_0x5a78,0x9a));const a1316_0x315a=function(_0x57b587,_0x3cc0b0){_0x57b587=_0x57b587-0xb3;let _0x5a7840=a1316_0x5a78[_0x57b587];return _0x5a7840;};const a1316_0xacaea8=a1316_0x315a;'use strict';const util=require('util'),sh=require(a1316_0xacaea8(0xbc)),Mustache=require('mustache'),logger=require(a1316_0xacaea8(0xb4))('trigger');exports[a1316_0xacaea8(0xb7)]=function(_0x5d6a0a,_0x11d6bf){const _0x69d36=a1316_0xacaea8,_0x442d1b=_0x5d6a0a[_0x69d36(0xb8)]?_0x5d6a0a[_0x69d36(0xb8)]:_0x69d36(0xb9),_0x32ab70=_0x5d6a0a[_0x69d36(0xb6)]?Mustache[_0x69d36(0xba)](_0x5d6a0a[_0x69d36(0xb6)],_0x11d6bf):_0x11d6bf;sh[_0x69d36(0xb7)](_0x32ab70,function(_0x33666d,_0x4f48b7,_0x221789){const _0x3aec5a=_0x69d36;_0x33666d!==0x0?logger['error'](util['format'](_0x3aec5a(0xb3),_0x442d1b,_0x32ab70,_0x33666d,_0x221789)):logger[_0x3aec5a(0xbb)](util[_0x3aec5a(0xbd)](_0x3aec5a(0xb5),_0x442d1b,_0x32ab70,_0x4f48b7));});}; \ 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 37e4a69..fbd88d2 100644 --- a/server/services/ami/trigger/urlforward/index.js +++ b/server/services/ami/trigger/urlforward/index.js @@ -1 +1 @@ -const a1317_0x26ad=['statusCode','util','mustache','lodash','%s\x20%s\x20succeeded\x20with\x20status:\x20%d\x20and\x20response:\x20%s',',\x20request\x20body:\x20','render','format','POST','message','data7','stack','%s\x20%s\x20failed\x20with\x20status:\x20%d\x20and\x20error:\x20%s\x20%s','data1','parse','request-promise-native','exec','../../../../config/logger','PUT','body\x20has\x20been\x20passed\x20to\x20URLforward\x20in\x20a\x20wrong\x20format','then','DELETE','toUpperCase','headers','data6','isNil','error','GET','%s\x20%s\x20sending\x20request\x20with\x20following\x20options:\x20%s','info','data2','data5','trigger','body','stringify','object'];(function(_0xefd7fb,_0x20fe33){const _0x26ad1c=function(_0x2bcd8b){while(--_0x2bcd8b){_0xefd7fb['push'](_0xefd7fb['shift']());}};_0x26ad1c(++_0x20fe33);}(a1317_0x26ad,0x189));const a1317_0x2bcd=function(_0xefd7fb,_0x20fe33){_0xefd7fb=_0xefd7fb-0xed;let _0x26ad1c=a1317_0x26ad[_0xefd7fb];return _0x26ad1c;};const a1317_0x530c96=a1317_0x2bcd;'use strict';const rp=require(a1317_0x530c96(0xff)),util=require(a1317_0x530c96(0xf1)),_=require(a1317_0x530c96(0xf3)),Mustache=require(a1317_0x530c96(0xf2)),logger=require(a1317_0x530c96(0x101))(a1317_0x530c96(0x110));exports[a1317_0x530c96(0x100)]=function(_0x3a4c6d,_0x5739da){const _0x42e551=a1317_0x530c96;let _0x346a11,_0x3694d2;const _0x3ef902={'method':_0x3a4c6d[_0x42e551(0xfd)][_0x42e551(0x106)](),'uri':Mustache[_0x42e551(0xf6)](_0x3a4c6d[_0x42e551(0x10e)],_0x5739da),'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x3a4c6d[_0x42e551(0x10f)])==='number'&&parseInt(_0x3a4c6d[_0x42e551(0x10f)])>=0x1&&parseInt(_0x3a4c6d[_0x42e551(0x10f)])<=0xa?parseInt(_0x3a4c6d[_0x42e551(0x10f)])*0x3e8:0x5*0x3e8};try{_0x3ef902[_0x42e551(0x107)]=_0x3a4c6d[_0x42e551(0x108)]?JSON['parse'](Mustache['render'](_0x3a4c6d[_0x42e551(0x108)],_0x5739da)):{};}catch(_0x9d8bcc){logger['error'](_0x9d8bcc['stack']);}switch(_0x3a4c6d[_0x42e551(0xfd)]['toUpperCase']()){case _0x42e551(0x10b):case _0x42e551(0x105):_0x346a11=null,_0x3ef902['qs']=_0x5739da;break;case _0x42e551(0xf8):case _0x42e551(0x102):if(_0x3a4c6d[_0x42e551(0xfa)])try{_0x346a11=JSON[_0x42e551(0xfe)](Mustache['render'](_0x3a4c6d[_0x42e551(0xfa)],_0x5739da)),_0x3ef902[_0x42e551(0xed)]=_0x346a11;}catch(_0x295921){logger[_0x42e551(0x10a)](_0x295921[_0x42e551(0xfb)]),logger[_0x42e551(0x10a)](_0x42e551(0x103));}else _0x346a11=_0x5739da,_0x3ef902[_0x42e551(0xed)]=_0x346a11;break;}logger[_0x42e551(0x10d)](util[_0x42e551(0xf7)](_0x42e551(0x10c),_0x3a4c6d[_0x42e551(0xfd)],_0x3a4c6d[_0x42e551(0x10e)],JSON['stringify'](_0x3ef902))),rp(_0x3ef902)[_0x42e551(0x104)](function(_0x1edf82){const _0x45c8f1=_0x42e551;_0x346a11=!_[_0x45c8f1(0x109)](_0x346a11)?_0x45c8f1(0xf5)+_0x346a11:'',_0x3694d2=typeof _0x1edf82['body']===_0x45c8f1(0xef)?JSON[_0x45c8f1(0xee)](_0x1edf82[_0x45c8f1(0xed)]):_0x1edf82['body'],logger[_0x45c8f1(0x10d)](util['format'](_0x45c8f1(0xf4),_0x3a4c6d['data1'],_0x3a4c6d[_0x45c8f1(0x10e)],_0x1edf82[_0x45c8f1(0xf0)],_0x3694d2));})['catch'](function(_0x48b329){const _0x2a7750=_0x42e551;logger[_0x2a7750(0x10a)](util['format'](_0x2a7750(0xfc),_0x3a4c6d[_0x2a7750(0xfd)],_0x3a4c6d[_0x2a7750(0x10e)],_0x48b329['statusCode'],_0x48b329['name'],_0x48b329[_0x2a7750(0xf9)]));});}; \ No newline at end of file +const a1317_0x1d3d=['lodash','request-promise-native','format','%s\x20%s\x20failed\x20with\x20status:\x20%d\x20and\x20error:\x20%s\x20%s','trigger','headers','stack','%s\x20%s\x20sending\x20request\x20with\x20following\x20options:\x20%s','stringify','data6','name','PUT','data2','catch','then','util','data1','GET','toUpperCase',',\x20request\x20body:\x20','render','statusCode','body','DELETE','data5','number','parse','isNil','POST','data7','info','error','object','mustache','%s\x20%s\x20succeeded\x20with\x20status:\x20%d\x20and\x20response:\x20%s'];(function(_0x190989,_0x19b41a){const _0x1d3dec=function(_0x301ac8){while(--_0x301ac8){_0x190989['push'](_0x190989['shift']());}};_0x1d3dec(++_0x19b41a);}(a1317_0x1d3d,0x6e));const a1317_0x301a=function(_0x190989,_0x19b41a){_0x190989=_0x190989-0x93;let _0x1d3dec=a1317_0x1d3d[_0x190989];return _0x1d3dec;};const a1317_0x580511=a1317_0x301a;'use strict';const rp=require(a1317_0x580511(0xb2)),util=require(a1317_0x580511(0x9d)),_=require(a1317_0x580511(0xb1)),Mustache=require(a1317_0x580511(0xaf)),logger=require('../../../../config/logger')(a1317_0x580511(0xb5));exports['exec']=function(_0x1c1574,_0x2f5f84){const _0x4e16bd=a1317_0x580511;let _0x57ea63,_0x22b528;const _0x46ab49={'method':_0x1c1574[_0x4e16bd(0x9e)][_0x4e16bd(0xa0)](),'uri':Mustache[_0x4e16bd(0xa2)](_0x1c1574[_0x4e16bd(0x9a)],_0x2f5f84),'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x1c1574['data5'])===_0x4e16bd(0xa7)&&parseInt(_0x1c1574['data5'])>=0x1&&parseInt(_0x1c1574[_0x4e16bd(0xa6)])<=0xa?parseInt(_0x1c1574[_0x4e16bd(0xa6)])*0x3e8:0x5*0x3e8};try{_0x46ab49[_0x4e16bd(0x93)]=_0x1c1574[_0x4e16bd(0x97)]?JSON[_0x4e16bd(0xa8)](Mustache['render'](_0x1c1574[_0x4e16bd(0x97)],_0x2f5f84)):{};}catch(_0x202521){logger[_0x4e16bd(0xad)](_0x202521[_0x4e16bd(0x94)]);}switch(_0x1c1574['data1'][_0x4e16bd(0xa0)]()){case _0x4e16bd(0x9f):case _0x4e16bd(0xa5):_0x57ea63=null,_0x46ab49['qs']=_0x2f5f84;break;case _0x4e16bd(0xaa):case _0x4e16bd(0x99):if(_0x1c1574[_0x4e16bd(0xab)])try{_0x57ea63=JSON['parse'](Mustache['render'](_0x1c1574[_0x4e16bd(0xab)],_0x2f5f84)),_0x46ab49[_0x4e16bd(0xa4)]=_0x57ea63;}catch(_0x1b515c){logger['error'](_0x1b515c[_0x4e16bd(0x94)]),logger[_0x4e16bd(0xad)]('body\x20has\x20been\x20passed\x20to\x20URLforward\x20in\x20a\x20wrong\x20format');}else _0x57ea63=_0x2f5f84,_0x46ab49['body']=_0x57ea63;break;}logger[_0x4e16bd(0xac)](util[_0x4e16bd(0xb3)](_0x4e16bd(0x95),_0x1c1574[_0x4e16bd(0x9e)],_0x1c1574[_0x4e16bd(0x9a)],JSON[_0x4e16bd(0x96)](_0x46ab49))),rp(_0x46ab49)[_0x4e16bd(0x9c)](function(_0x16ef6a){const _0x208d3e=_0x4e16bd;_0x57ea63=!_[_0x208d3e(0xa9)](_0x57ea63)?_0x208d3e(0xa1)+_0x57ea63:'',_0x22b528=typeof _0x16ef6a[_0x208d3e(0xa4)]===_0x208d3e(0xae)?JSON[_0x208d3e(0x96)](_0x16ef6a[_0x208d3e(0xa4)]):_0x16ef6a[_0x208d3e(0xa4)],logger[_0x208d3e(0xac)](util[_0x208d3e(0xb3)](_0x208d3e(0xb0),_0x1c1574['data1'],_0x1c1574[_0x208d3e(0x9a)],_0x16ef6a['statusCode'],_0x22b528));})[_0x4e16bd(0x9b)](function(_0x2b677f){const _0x33ffa6=_0x4e16bd;logger[_0x33ffa6(0xad)](util[_0x33ffa6(0xb3)](_0x33ffa6(0xb4),_0x1c1574[_0x33ffa6(0x9e)],_0x1c1574[_0x33ffa6(0x9a)],_0x2b677f[_0x33ffa6(0xa3)],_0x2b677f[_0x33ffa6(0x98)],_0x2b677f['message']));});}; \ No newline at end of file diff --git a/server/services/email/client.js b/server/services/email/client.js index 4636008..b30868d 100644 --- a/server/services/email/client.js +++ b/server/services/email/client.js @@ -1 +1 @@ -const a1318_0x2225=['debug','message','client','result','jayson/promise','exports','request','error','Request','routing','rpc','../../config/logger','catch'];(function(_0x221130,_0x13980d){const _0x2225d6=function(_0x48cea2){while(--_0x48cea2){_0x221130['push'](_0x221130['shift']());}};_0x2225d6(++_0x13980d);}(a1318_0x2225,0x169));const a1318_0x48ce=function(_0x221130,_0x13980d){_0x221130=_0x221130-0x1b9;let _0x2225d6=a1318_0x2225[_0x221130];return _0x2225d6;};const a1318_0xe328b6=a1318_0x48ce;'use strict';const jayson=require(a1318_0xe328b6(0x1c0)),logger=require(a1318_0xe328b6(0x1ba))(a1318_0xe328b6(0x1c5)),client=jayson[a1318_0xe328b6(0x1be)]['http']({'port':0x2329});client[a1318_0xe328b6(0x1c4)]=function(_0x1f88e8,_0x64069){return new Promise(function(_0x1bfbf1,_0x304157){const _0x24ad3c=a1318_0x48ce;return client[_0x24ad3c(0x1c2)](_0x1f88e8,_0x64069)['then'](function(_0x137b3a){const _0x204285=_0x24ad3c;return logger[_0x204285(0x1bc)](_0x204285(0x1b9),_0x204285(0x1c5),_0x1f88e8,_0x64069,_0x137b3a),_0x137b3a[_0x204285(0x1c3)]?(logger[_0x204285(0x1c3)]('rpc',_0x204285(0x1c5),_0x1f88e8,_0x137b3a[_0x204285(0x1c3)][_0x204285(0x1bd)],_0x64069),_0x304157(_0x137b3a[_0x204285(0x1c3)][_0x204285(0x1bd)])):_0x1bfbf1(_0x137b3a[_0x204285(0x1bf)]);})[_0x24ad3c(0x1bb)](function(_0x3f587d){const _0x4d774b=_0x24ad3c;return logger[_0x4d774b(0x1c3)](_0x4d774b(0x1b9),_0x4d774b(0x1c5),_0x1f88e8,_0x3f587d,_0x64069),_0x304157(_0x3f587d);});});},module[a1318_0xe328b6(0x1c1)]=client; \ No newline at end of file +const a1318_0x289d=['../../config/logger','routing','jayson/promise','exports','message','client','then','Request','result','rpc','error','catch','debug','request'];(function(_0x5d58f7,_0x124d4f){const _0x289dbe=function(_0x427737){while(--_0x427737){_0x5d58f7['push'](_0x5d58f7['shift']());}};_0x289dbe(++_0x124d4f);}(a1318_0x289d,0xa7));const a1318_0x4277=function(_0x5d58f7,_0x124d4f){_0x5d58f7=_0x5d58f7-0x143;let _0x289dbe=a1318_0x289d[_0x5d58f7];return _0x289dbe;};const a1318_0x5391bb=a1318_0x4277;'use strict';const jayson=require(a1318_0x5391bb(0x146)),logger=require(a1318_0x5391bb(0x144))('routing'),client=jayson[a1318_0x5391bb(0x149)]['http']({'port':0x2329});client[a1318_0x5391bb(0x14b)]=function(_0x16ed6e,_0x13a41c){return new Promise(function(_0x5c464d,_0x54b740){const _0x3237d8=a1318_0x4277;return client[_0x3237d8(0x143)](_0x16ed6e,_0x13a41c)[_0x3237d8(0x14a)](function(_0x3550ce){const _0x3000ba=_0x3237d8;return logger[_0x3000ba(0x150)]('rpc',_0x3000ba(0x145),_0x16ed6e,_0x13a41c,_0x3550ce),_0x3550ce['error']?(logger['error']('rpc','routing',_0x16ed6e,_0x3550ce[_0x3000ba(0x14e)][_0x3000ba(0x148)],_0x13a41c),_0x54b740(_0x3550ce[_0x3000ba(0x14e)][_0x3000ba(0x148)])):_0x5c464d(_0x3550ce[_0x3000ba(0x14c)]);})[_0x3237d8(0x14f)](function(_0x13f563){const _0x4cf659=_0x3237d8;return logger[_0x4cf659(0x14e)](_0x4cf659(0x14d),_0x4cf659(0x145),_0x16ed6e,_0x13f563,_0x13a41c),_0x54b740(_0x13f563);});});},module[a1318_0x5391bb(0x147)]=client; \ No newline at end of file diff --git a/server/services/email/index.js b/server/services/email/index.js index 743050f..e9530af 100644 --- a/server/services/email/index.js +++ b/server/services/email/index.js @@ -1 +1 @@ -const a1319_0x146b=['getMailAccounts','Setting','./lib/email','mailAccounts','resolve','listen','then','log','./realtime','findOne','initMailAccounts','loginMailFrequency','./server','refresh'];(function(_0xbb7169,_0x24d08e){const _0x146be8=function(_0x573ac6){while(--_0x573ac6){_0xbb7169['push'](_0xbb7169['shift']());}};_0x146be8(++_0x24d08e);}(a1319_0x146b,0x85));const a1319_0x573a=function(_0xbb7169,_0x24d08e){_0xbb7169=_0xbb7169-0x189;let _0x146be8=a1319_0x146b[_0xbb7169];return _0x146be8;};const a1319_0x18f661=a1319_0x573a;'use strict';require('../../globals');const server=require(a1319_0x18f661(0x18e)),Realtime=require(a1319_0x18f661(0x18a)),EmailChannel=require(a1319_0x18f661(0x192)),mailAccount=require('./rpc/mailAccount'),realtime=new Realtime(),email=new EmailChannel(realtime),{db}=require('../../mysqldb');function initRealtime(){const _0x2d4bba=a1319_0x18f661;return Promise[_0x2d4bba(0x194)]()['then'](mailAccount[_0x2d4bba(0x190)]())['then'](realtime[_0x2d4bba(0x18c)]())['then'](function(){const _0x18a6b1=_0x2d4bba;return email[_0x18a6b1(0x18f)](realtime[_0x18a6b1(0x193)]),realtime;});}function main(){const _0x58873e=a1319_0x18f661;return server[_0x58873e(0x195)](realtime,email)[_0x58873e(0x196)](function(){return initRealtime();})['then'](function(){const _0x176461=_0x58873e;return db[_0x176461(0x191)][_0x176461(0x18b)]({'attributes':['id',_0x176461(0x18d)],'raw':!![]});})['then'](function(_0x4c7c88){return setInterval(initRealtime,_0x4c7c88['loginMailFrequency']*0x3e8);})['catch'](function(_0x5b11f4){const _0x34673c=_0x58873e;console[_0x34673c(0x189)](_0x5b11f4);});}main(); \ No newline at end of file +const a1319_0x4a16=['loginMailFrequency','resolve','mailAccounts','./lib/email','listen','then','catch','initMailAccounts','findOne','../../globals','getMailAccounts','../../mysqldb'];(function(_0x532837,_0x14f77e){const _0x4a1677=function(_0x3489a5){while(--_0x3489a5){_0x532837['push'](_0x532837['shift']());}};_0x4a1677(++_0x14f77e);}(a1319_0x4a16,0x175));const a1319_0x3489=function(_0x532837,_0x14f77e){_0x532837=_0x532837-0x1bc;let _0x4a1677=a1319_0x4a16[_0x532837];return _0x4a1677;};const a1319_0x5ef5bc=a1319_0x3489;'use strict';require(a1319_0x5ef5bc(0x1c4));const server=require('./server'),Realtime=require('./realtime'),EmailChannel=require(a1319_0x5ef5bc(0x1be)),mailAccount=require('./rpc/mailAccount'),realtime=new Realtime(),email=new EmailChannel(realtime),{db}=require(a1319_0x5ef5bc(0x1c6));function initRealtime(){const _0x1ccf31=a1319_0x5ef5bc;return Promise[_0x1ccf31(0x1bc)]()[_0x1ccf31(0x1c0)](mailAccount[_0x1ccf31(0x1c5)]())['then'](realtime[_0x1ccf31(0x1c2)]())['then'](function(){const _0x35b308=_0x1ccf31;return email['refresh'](realtime[_0x35b308(0x1bd)]),realtime;});}function main(){const _0x527e9d=a1319_0x5ef5bc;return server[_0x527e9d(0x1bf)](realtime,email)['then'](function(){return initRealtime();})[_0x527e9d(0x1c0)](function(){const _0x3ce912=_0x527e9d;return db['Setting'][_0x3ce912(0x1c3)]({'attributes':['id',_0x3ce912(0x1c7)],'raw':!![]});})[_0x527e9d(0x1c0)](function(_0x28a59e){const _0x2fe505=_0x527e9d;return setInterval(initRealtime,_0x28a59e[_0x2fe505(0x1c7)]*0x3e8);})[_0x527e9d(0x1c1)](function(_0x3bdf89){console['log'](_0x3bdf89);});}main(); \ No newline at end of file diff --git a/server/services/email/lib/email.js b/server/services/email/lib/email.js index 24c126a..ec10456 100644 --- a/server/services/email/lib/email.js +++ b/server/services/email/lib/email.js @@ -1 +1 @@ -const a1320_0x79ba=['../../../config/logger','bind','start\x20email\x20channel','stringify','handleImapEnd','then','mailAccounts','notify','error','handleImapError','total','catch','key','name','md5','send','email','status','verify','../../../rediscache','sendMail','exports','disabled','./imap','New\x20email\x20from\x20%s\x20%s\x20%s\x20to\x20%s','prototype','messages','Imap','../rpc/mailAccount','active','undefined','verifySmtp','Smtp','from','imapAccounts','info','Mail\x20not\x20accepted\x20from\x20routing\x20%s','moment','emit','./smtp','smtp','handleImapEmail','mailAccount:update','firstName','box','messageStatus','lastName','isNil','handleImapBox','end','Mail\x20accepted\x20from\x20routing'];(function(_0x23873f,_0x4aec82){const _0x79bae9=function(_0x463ab2){while(--_0x463ab2){_0x23873f['push'](_0x23873f['shift']());}};_0x79bae9(++_0x4aec82);}(a1320_0x79ba,0x9b));const a1320_0x463a=function(_0x23873f,_0x4aec82){_0x23873f=_0x23873f-0x18e;let _0x79bae9=a1320_0x79ba[_0x23873f];return _0x79bae9;};const a1320_0x4c189e=a1320_0x463a;'use strict';const _=require('lodash'),moment=require(a1320_0x4c189e(0x1b1)),md5=require(a1320_0x4c189e(0x19a)),logger=require(a1320_0x4c189e(0x1bf))(a1320_0x4c189e(0x19c)),{getSocket}=require(a1320_0x4c189e(0x19f)),io=getSocket(),EmailImap=require(a1320_0x4c189e(0x1a3)),EmailSmtp=require(a1320_0x4c189e(0x1b3)),mailAccount=require(a1320_0x4c189e(0x1a8)),md5Accounts={};function EmailChannel(_0x56e05d){const _0x5e1ba6=a1320_0x4c189e;logger[_0x5e1ba6(0x1af)](_0x5e1ba6(0x18e)),this[_0x5e1ba6(0x192)]=_0x56e05d[_0x5e1ba6(0x192)],this[_0x5e1ba6(0x1ae)]={},this['smtp']=new EmailSmtp();}EmailChannel['prototype'][a1320_0x4c189e(0x1b2)]=function(_0x367a5f){const _0xbb43b=a1320_0x4c189e,_0x270f0a=this['mailAccounts'][_0x367a5f],_0x5f1e38={'id':_0x270f0a['id'],'name':_0x270f0a[_0xbb43b(0x199)],'key':_0x270f0a[_0xbb43b(0x198)],'active':_0x270f0a[_0xbb43b(0x1a9)],'Imap':{'status':_0x270f0a['Imap'][_0xbb43b(0x19d)],'messageStatus':_0x270f0a['Imap'][_0xbb43b(0x1b9)],'total':_0x270f0a[_0xbb43b(0x1a7)][_0xbb43b(0x196)]}};_[_0xbb43b(0x1bb)](md5Accounts[_0x367a5f])&&(md5Accounts[_0x367a5f]={});const _0x368db4=md5(JSON[_0xbb43b(0x18f)](_0x5f1e38));md5Accounts[_0x367a5f][_0xbb43b(0x19a)]!==_0x368db4&&(md5Accounts[_0x367a5f]['md5']=_0x368db4,io[_0xbb43b(0x1b2)](_0xbb43b(0x1b6),_0x5f1e38));},EmailChannel[a1320_0x4c189e(0x1a5)]['refresh']=function(_0x414fa7){const _0x2355ee=a1320_0x4c189e;for(const _0x370945 in _0x414fa7){if(typeof _0x414fa7[_0x370945]!==_0x2355ee(0x1aa)){if(_0x414fa7[_0x370945][_0x2355ee(0x1a7)]&&_0x414fa7[_0x370945]['active']){const _0x57cc30=_0x414fa7[_0x370945][_0x2355ee(0x1a7)];typeof this[_0x2355ee(0x1ae)][_0x57cc30['id']]===_0x2355ee(0x1aa)&&(this['imapAccounts'][_0x57cc30['id']]=new EmailImap(_0x57cc30,_0x414fa7[_0x370945][_0x2355ee(0x19c)]),this['imapAccounts'][_0x57cc30['id']]['on'](_0x2355ee(0x1b8),this[_0x2355ee(0x1bc)]['bind'](this,_0x370945)),this['imapAccounts'][_0x57cc30['id']]['on']('email',this['handleImapEmail'][_0x2355ee(0x1c0)](this,_0x370945)),this[_0x2355ee(0x1ae)][_0x57cc30['id']]['on'](_0x2355ee(0x1bd),this[_0x2355ee(0x190)][_0x2355ee(0x1c0)](this,_0x370945)),this['imapAccounts'][_0x57cc30['id']]['on'](_0x2355ee(0x194),this[_0x2355ee(0x195)]['bind'](this,_0x370945)));}else _['isNil'](this['mailAccounts'][_0x370945][_0x2355ee(0x1a7)])&&(this['mailAccounts'][_0x370945][_0x2355ee(0x1a7)]={}),this[_0x2355ee(0x192)][_0x370945][_0x2355ee(0x1a7)]['status']=_0x2355ee(0x1a2),this[_0x2355ee(0x192)][_0x370945]['Imap'][_0x2355ee(0x1b9)]='',this[_0x2355ee(0x1b2)](_0x370945);}}},EmailChannel[a1320_0x4c189e(0x1a5)][a1320_0x4c189e(0x1bc)]=function(_0x326e61,_0x27bd3a){const _0x383ddf=a1320_0x4c189e;if(this['mailAccounts'][_0x326e61])return this['mailAccounts'][_0x326e61][_0x383ddf(0x1a7)][_0x383ddf(0x19d)]='connected',this[_0x383ddf(0x192)][_0x326e61]['Imap'][_0x383ddf(0x1b9)]=_0x27bd3a['name'],_0x27bd3a[_0x383ddf(0x1a6)]&&(this[_0x383ddf(0x192)][_0x326e61][_0x383ddf(0x1a7)]['total']=_0x27bd3a[_0x383ddf(0x1a6)][_0x383ddf(0x196)]),this[_0x383ddf(0x1b2)](_0x326e61);},EmailChannel['prototype'][a1320_0x4c189e(0x1b5)]=function(_0x18f45d,_0x297c15){const _0x58123a=a1320_0x4c189e;logger[_0x58123a(0x1af)](_0x58123a(0x1a4),_0x297c15[_0x58123a(0x1b7)],_0x297c15[_0x58123a(0x1ba)],_0x297c15[_0x58123a(0x1ad)],_0x18f45d);if(this[_0x58123a(0x192)][_0x18f45d])return mailAccount[_0x58123a(0x193)](_0x18f45d,_0x297c15)[_0x58123a(0x191)](function(_0x138bda){const _0x35bc78=_0x58123a;_0x138bda&&logger['info'](_0x35bc78(0x1be));})['catch'](function(_0x511a5c){const _0x4b1bd4=_0x58123a;logger['error'](_0x4b1bd4(0x1b0),JSON['stringify'](_0x511a5c));});},EmailChannel[a1320_0x4c189e(0x1a5)][a1320_0x4c189e(0x190)]=function(_0x17f8e9){const _0x35679c=a1320_0x4c189e;this[_0x35679c(0x192)][_0x17f8e9]&&this[_0x35679c(0x192)][_0x17f8e9][_0x35679c(0x1a7)]&&(this[_0x35679c(0x1ae)][this[_0x35679c(0x192)][_0x17f8e9][_0x35679c(0x1a7)]['id']]&&delete this['imapAccounts'][this['mailAccounts'][_0x17f8e9][_0x35679c(0x1a7)]['id']],this[_0x35679c(0x192)][_0x17f8e9][_0x35679c(0x1a7)]['lastSync']=moment(),this[_0x35679c(0x1b2)](_0x17f8e9));},EmailChannel[a1320_0x4c189e(0x1a5)][a1320_0x4c189e(0x195)]=function(_0x6dbb7a,_0x29fc37){const _0x3140b1=a1320_0x4c189e;if(this[_0x3140b1(0x192)][_0x6dbb7a])return this[_0x3140b1(0x192)][_0x6dbb7a][_0x3140b1(0x1a7)][_0x3140b1(0x19d)]=_0x3140b1(0x194),this[_0x3140b1(0x192)][_0x6dbb7a][_0x3140b1(0x1a7)]['messageStatus']=_0x29fc37,this[_0x3140b1(0x1b2)](_0x6dbb7a);},EmailChannel[a1320_0x4c189e(0x1a5)][a1320_0x4c189e(0x1a0)]=function(_0x37e2d3,_0x20e2dc){const _0x166dd1=a1320_0x4c189e;return this[_0x166dd1(0x1b4)][_0x166dd1(0x19b)](_0x37e2d3,_0x20e2dc);},EmailChannel[a1320_0x4c189e(0x1a5)][a1320_0x4c189e(0x1ab)]=function(_0xf50f24){const _0x4cbab2=a1320_0x4c189e,_0x5907ad=this;if(this[_0x4cbab2(0x192)][_0xf50f24['id']])return _[_0x4cbab2(0x1bb)](this[_0x4cbab2(0x192)][_0xf50f24['id']][_0x4cbab2(0x1ac)])&&(this['mailAccounts'][_0xf50f24['id']]['Smtp']={}),this[_0x4cbab2(0x192)][_0xf50f24['id']][_0x4cbab2(0x1ac)]['lastSync']=moment(),new Promise(function(_0x3801b9,_0x1a4423){const _0x1e6c51=_0x4cbab2;return _0x5907ad[_0x1e6c51(0x1b4)][_0x1e6c51(0x19e)](_0xf50f24)['then'](function(_0x34c20e){const _0x5b08c7=_0x1e6c51;_0x5907ad[_0x5b08c7(0x192)][_0xf50f24['id']][_0x5b08c7(0x1ac)][_0x5b08c7(0x19d)]='verified',_0x5907ad['mailAccounts'][_0xf50f24['id']][_0x5b08c7(0x1ac)][_0x5b08c7(0x1b9)]='',_0x5907ad['emit'](_0xf50f24['id']),_0x3801b9(_0x34c20e);})[_0x1e6c51(0x197)](function(_0x31c30a){const _0xc218aa=_0x1e6c51;_0x5907ad['mailAccounts'][_0xf50f24['id']][_0xc218aa(0x1ac)]['status']=_0xc218aa(0x194),_0x5907ad[_0xc218aa(0x192)][_0xf50f24['id']][_0xc218aa(0x1ac)][_0xc218aa(0x1b9)]=_0x31c30a,_0x5907ad[_0xc218aa(0x1b2)](_0xf50f24['id']),_0x1a4423(_0x31c30a);});});return this['smtp'][_0x4cbab2(0x19e)](_0xf50f24);},module[a1320_0x4c189e(0x1a1)]=EmailChannel; \ No newline at end of file +const a1320_0x433f=['emit','lodash','catch','lastSync','from','Smtp','prototype','smtp','verifySmtp','messages','box','firstName','error','send','./imap','handleImapBox','exports','bind','connected','../../../config/logger','info','name','total','md5','verify','isNil','disabled','undefined','handleImapEnd','active','mailAccounts','New\x20email\x20from\x20%s\x20%s\x20%s\x20to\x20%s','Imap','status','moment','refresh','messageStatus','imapAccounts','./smtp','end','handleImapEmail','stringify','handleImapError','verified','email','start\x20email\x20channel'];(function(_0xf9708f,_0x2d804f){const _0x433f2c=function(_0x1dd4a0){while(--_0x1dd4a0){_0xf9708f['push'](_0xf9708f['shift']());}};_0x433f2c(++_0x2d804f);}(a1320_0x433f,0xbf));const a1320_0x1dd4=function(_0xf9708f,_0x2d804f){_0xf9708f=_0xf9708f-0x189;let _0x433f2c=a1320_0x433f[_0xf9708f];return _0x433f2c;};const a1320_0x3faf06=a1320_0x1dd4;'use strict';const _=require(a1320_0x3faf06(0x1b1)),moment=require(a1320_0x3faf06(0x1a4)),md5=require(a1320_0x3faf06(0x199)),logger=require(a1320_0x3faf06(0x195))(a1320_0x3faf06(0x1ae)),{getSocket}=require('../../../rediscache'),io=getSocket(),EmailImap=require(a1320_0x3faf06(0x190)),EmailSmtp=require(a1320_0x3faf06(0x1a8)),mailAccount=require('../rpc/mailAccount'),md5Accounts={};function EmailChannel(_0x22d7ea){const _0x4c8731=a1320_0x3faf06;logger[_0x4c8731(0x196)](_0x4c8731(0x1af)),this[_0x4c8731(0x1a0)]=_0x22d7ea[_0x4c8731(0x1a0)],this[_0x4c8731(0x1a7)]={},this[_0x4c8731(0x189)]=new EmailSmtp();}EmailChannel['prototype'][a1320_0x3faf06(0x1b0)]=function(_0x174de4){const _0x4b31ea=a1320_0x3faf06,_0x20c942=this['mailAccounts'][_0x174de4],_0x1e06c3={'id':_0x20c942['id'],'name':_0x20c942[_0x4b31ea(0x197)],'key':_0x20c942['key'],'active':_0x20c942[_0x4b31ea(0x19f)],'Imap':{'status':_0x20c942['Imap'][_0x4b31ea(0x1a3)],'messageStatus':_0x20c942[_0x4b31ea(0x1a2)][_0x4b31ea(0x1a6)],'total':_0x20c942[_0x4b31ea(0x1a2)][_0x4b31ea(0x198)]}};_[_0x4b31ea(0x19b)](md5Accounts[_0x174de4])&&(md5Accounts[_0x174de4]={});const _0x14e168=md5(JSON[_0x4b31ea(0x1ab)](_0x1e06c3));md5Accounts[_0x174de4]['md5']!==_0x14e168&&(md5Accounts[_0x174de4]['md5']=_0x14e168,io['emit']('mailAccount:update',_0x1e06c3));},EmailChannel[a1320_0x3faf06(0x1b6)][a1320_0x3faf06(0x1a5)]=function(_0x1acc16){const _0x3c52ef=a1320_0x3faf06;for(const _0x259a99 in _0x1acc16){if(typeof _0x1acc16[_0x259a99]!==_0x3c52ef(0x19d)){if(_0x1acc16[_0x259a99]['Imap']&&_0x1acc16[_0x259a99][_0x3c52ef(0x19f)]){const _0x188323=_0x1acc16[_0x259a99]['Imap'];typeof this[_0x3c52ef(0x1a7)][_0x188323['id']]==='undefined'&&(this[_0x3c52ef(0x1a7)][_0x188323['id']]=new EmailImap(_0x188323,_0x1acc16[_0x259a99][_0x3c52ef(0x1ae)]),this[_0x3c52ef(0x1a7)][_0x188323['id']]['on'](_0x3c52ef(0x18c),this[_0x3c52ef(0x191)][_0x3c52ef(0x193)](this,_0x259a99)),this['imapAccounts'][_0x188323['id']]['on'](_0x3c52ef(0x1ae),this[_0x3c52ef(0x1aa)][_0x3c52ef(0x193)](this,_0x259a99)),this[_0x3c52ef(0x1a7)][_0x188323['id']]['on'](_0x3c52ef(0x1a9),this['handleImapEnd'][_0x3c52ef(0x193)](this,_0x259a99)),this[_0x3c52ef(0x1a7)][_0x188323['id']]['on'](_0x3c52ef(0x18e),this[_0x3c52ef(0x1ac)]['bind'](this,_0x259a99)));}else _[_0x3c52ef(0x19b)](this[_0x3c52ef(0x1a0)][_0x259a99][_0x3c52ef(0x1a2)])&&(this['mailAccounts'][_0x259a99]['Imap']={}),this['mailAccounts'][_0x259a99][_0x3c52ef(0x1a2)][_0x3c52ef(0x1a3)]=_0x3c52ef(0x19c),this[_0x3c52ef(0x1a0)][_0x259a99][_0x3c52ef(0x1a2)][_0x3c52ef(0x1a6)]='',this['emit'](_0x259a99);}}},EmailChannel[a1320_0x3faf06(0x1b6)][a1320_0x3faf06(0x191)]=function(_0x2ad96a,_0x39881e){const _0x3f7b14=a1320_0x3faf06;if(this[_0x3f7b14(0x1a0)][_0x2ad96a])return this[_0x3f7b14(0x1a0)][_0x2ad96a][_0x3f7b14(0x1a2)][_0x3f7b14(0x1a3)]=_0x3f7b14(0x194),this[_0x3f7b14(0x1a0)][_0x2ad96a][_0x3f7b14(0x1a2)][_0x3f7b14(0x1a6)]=_0x39881e[_0x3f7b14(0x197)],_0x39881e[_0x3f7b14(0x18b)]&&(this[_0x3f7b14(0x1a0)][_0x2ad96a][_0x3f7b14(0x1a2)][_0x3f7b14(0x198)]=_0x39881e[_0x3f7b14(0x18b)]['total']),this[_0x3f7b14(0x1b0)](_0x2ad96a);},EmailChannel['prototype'][a1320_0x3faf06(0x1aa)]=function(_0x6a9105,_0x483a82){const _0x4427f5=a1320_0x3faf06;logger[_0x4427f5(0x196)](_0x4427f5(0x1a1),_0x483a82[_0x4427f5(0x18d)],_0x483a82['lastName'],_0x483a82[_0x4427f5(0x1b4)],_0x6a9105);if(this[_0x4427f5(0x1a0)][_0x6a9105])return mailAccount['notify'](_0x6a9105,_0x483a82)['then'](function(_0x4111ee){_0x4111ee&&logger['info']('Mail\x20accepted\x20from\x20routing');})['catch'](function(_0x30634b){const _0x5410fa=_0x4427f5;logger[_0x5410fa(0x18e)]('Mail\x20not\x20accepted\x20from\x20routing\x20%s',JSON[_0x5410fa(0x1ab)](_0x30634b));});},EmailChannel[a1320_0x3faf06(0x1b6)][a1320_0x3faf06(0x19e)]=function(_0x138e90){const _0x442e2b=a1320_0x3faf06;this[_0x442e2b(0x1a0)][_0x138e90]&&this[_0x442e2b(0x1a0)][_0x138e90][_0x442e2b(0x1a2)]&&(this[_0x442e2b(0x1a7)][this[_0x442e2b(0x1a0)][_0x138e90][_0x442e2b(0x1a2)]['id']]&&delete this['imapAccounts'][this[_0x442e2b(0x1a0)][_0x138e90]['Imap']['id']],this['mailAccounts'][_0x138e90][_0x442e2b(0x1a2)][_0x442e2b(0x1b3)]=moment(),this[_0x442e2b(0x1b0)](_0x138e90));},EmailChannel['prototype']['handleImapError']=function(_0x1edacc,_0x2f04b2){const _0x4ad5de=a1320_0x3faf06;if(this[_0x4ad5de(0x1a0)][_0x1edacc])return this[_0x4ad5de(0x1a0)][_0x1edacc][_0x4ad5de(0x1a2)]['status']='error',this['mailAccounts'][_0x1edacc][_0x4ad5de(0x1a2)][_0x4ad5de(0x1a6)]=_0x2f04b2,this['emit'](_0x1edacc);},EmailChannel[a1320_0x3faf06(0x1b6)]['sendMail']=function(_0x27f1b8,_0x1fbace){const _0x5bce03=a1320_0x3faf06;return this[_0x5bce03(0x189)][_0x5bce03(0x18f)](_0x27f1b8,_0x1fbace);},EmailChannel[a1320_0x3faf06(0x1b6)][a1320_0x3faf06(0x18a)]=function(_0x9a5179){const _0x3a7189=a1320_0x3faf06,_0x119564=this;if(this[_0x3a7189(0x1a0)][_0x9a5179['id']])return _[_0x3a7189(0x19b)](this['mailAccounts'][_0x9a5179['id']]['Smtp'])&&(this[_0x3a7189(0x1a0)][_0x9a5179['id']][_0x3a7189(0x1b5)]={}),this[_0x3a7189(0x1a0)][_0x9a5179['id']]['Smtp'][_0x3a7189(0x1b3)]=moment(),new Promise(function(_0xb1cece,_0xef2ba6){const _0x305c8a=_0x3a7189;return _0x119564[_0x305c8a(0x189)]['verify'](_0x9a5179)['then'](function(_0x1bedf3){const _0x49e49d=_0x305c8a;_0x119564[_0x49e49d(0x1a0)][_0x9a5179['id']][_0x49e49d(0x1b5)][_0x49e49d(0x1a3)]=_0x49e49d(0x1ad),_0x119564['mailAccounts'][_0x9a5179['id']][_0x49e49d(0x1b5)][_0x49e49d(0x1a6)]='',_0x119564[_0x49e49d(0x1b0)](_0x9a5179['id']),_0xb1cece(_0x1bedf3);})[_0x305c8a(0x1b2)](function(_0x3bd989){const _0x29462d=_0x305c8a;_0x119564['mailAccounts'][_0x9a5179['id']]['Smtp'][_0x29462d(0x1a3)]=_0x29462d(0x18e),_0x119564[_0x29462d(0x1a0)][_0x9a5179['id']][_0x29462d(0x1b5)]['messageStatus']=_0x3bd989,_0x119564['emit'](_0x9a5179['id']),_0xef2ba6(_0x3bd989);});});return this[_0x3a7189(0x189)][_0x3a7189(0x19a)](_0x9a5179);},module[a1320_0x3faf06(0x192)]=EmailChannel; \ No newline at end of file diff --git a/server/services/email/lib/imap.js b/server/services/email/lib/imap.js index da16364..d8afe45 100644 --- a/server/services/email/lib/imap.js +++ b/server/services/email/lib/imap.js @@ -1 +1 @@ -const a1321_0x5743=['Iconv','handleFetchEnd','events','handleFetchError','mailbox','INBOX','account','util','email','ready','handleReady','search','service','fetch','password','once','anonymous@xcally.com','imap','handleEnd','error','textCode','parser','required','isNil','handleSimpleParser','handleError','mailparser','length','handleCloseBox','autotls','message','inherits','exports','user','prototype','../../../config/logger','handleOpenBox','handleMessageBody','connTimeout','emit','EventEmitter','UNSEEN','closeBox','handleMessageEnd','connect','tls','handleFetchMessage','handleReadUnseen','end','bind','host','stringify','port'];(function(_0x495730,_0x8dfce1){const _0x5743a0=function(_0x3aa820){while(--_0x3aa820){_0x495730['push'](_0x495730['shift']());}};_0x5743a0(++_0x8dfce1);}(a1321_0x5743,0x17c));const a1321_0x3aa8=function(_0x495730,_0x8dfce1){_0x495730=_0x495730-0xb6;let _0x5743a0=a1321_0x5743[_0x495730];return _0x5743a0;};const a1321_0x222b32=a1321_0x3aa8;'use strict';const util=require(a1321_0x222b32(0xe9)),Imap=require(a1321_0x222b32(0xbe)),_=require('lodash'),simpleParser=require(a1321_0x222b32(0xc7))['simpleParser'],Iconv=require('iconv')[a1321_0x222b32(0xe2)],EventEmitter=require(a1321_0x222b32(0xe4))[a1321_0x222b32(0xd5)],utils=require('./utils'),logger=require(a1321_0x222b32(0xd0))(a1321_0x222b32(0xea));function EmailImap(_0x2577bc,_0x2926ac){const _0x253822=a1321_0x222b32;this[_0x253822(0xe6)]=_0x253822(0xe7),this[_0x253822(0xe8)]=this['getAccount'](_0x2577bc,_0x2926ac),this[_0x253822(0xbe)]=new Imap(this['account']),this[_0x253822(0xbe)]['once'](_0x253822(0xb6),this[_0x253822(0xb7)][_0x253822(0xde)](this)),this['imap']['once'](_0x253822(0xdd),this[_0x253822(0xbf)][_0x253822(0xde)](this)),this[_0x253822(0xbe)]['on']('error',this['handleError'][_0x253822(0xde)](this)),this[_0x253822(0xbe)][_0x253822(0xd9)]();}util[a1321_0x222b32(0xcc)](EmailImap,EventEmitter),EmailImap[a1321_0x222b32(0xcf)]['getAccount']=function(_0x15c91f,_0x1d3eea){const _0x393a1c=a1321_0x222b32,_0x59111a={'connTimeout':_0x15c91f[_0x393a1c(0xd3)]?_0x15c91f['connTimeout']*0x3e8:0x2710,'authTimeout':_0x15c91f['authTimeout']?_0x15c91f['authTimeout']*0x3e8:0x1388};return _[_0x393a1c(0xc4)](_0x15c91f[_0x393a1c(0xb9)])?(_0x15c91f['authentication']&&(_0x59111a[_0x393a1c(0xce)]=_0x15c91f[_0x393a1c(0xce)],_0x59111a[_0x393a1c(0xbb)]=_0x15c91f[_0x393a1c(0xbb)]),_0x59111a['host']=_0x15c91f[_0x393a1c(0xdf)],_0x59111a[_0x393a1c(0xe1)]=_0x15c91f[_0x393a1c(0xe1)]||0x3e1,_0x15c91f[_0x393a1c(0xda)]?_0x59111a['tls']=!![]:(_0x59111a[_0x393a1c(0xda)]=![],_0x59111a[_0x393a1c(0xca)]=_0x393a1c(0xc3))):(_0x59111a[_0x393a1c(0xce)]=_0x15c91f['user'],_0x59111a[_0x393a1c(0xbb)]=_0x15c91f[_0x393a1c(0xbb)],_0x59111a[_0x393a1c(0xdf)]=utils['getHost'](_0x15c91f[_0x393a1c(0xb9)]),_0x59111a[_0x393a1c(0xe1)]=0x3e1,_0x59111a['tls']=!![]),_0x59111a[_0x393a1c(0xea)]=_0x1d3eea||_0x15c91f[_0x393a1c(0xce)]||_0x393a1c(0xbd),_0x59111a;},EmailImap['prototype'][a1321_0x222b32(0xb7)]=function(){const _0x548a80=a1321_0x222b32;this[_0x548a80(0xbe)]['openBox'](this[_0x548a80(0xe6)],![],this[_0x548a80(0xd1)][_0x548a80(0xde)](this));},EmailImap[a1321_0x222b32(0xcf)]['handleOpenBox']=function(_0x138dc9,_0x52e45f){const _0x4f3798=a1321_0x222b32;_0x138dc9?this[_0x4f3798(0xc6)](_0x138dc9,!![]):(this[_0x4f3798(0xd4)]('box',_0x52e45f),this['readUnseen']());},EmailImap['prototype']['handleCloseBox']=function(_0x14cd5c){const _0x4956bb=a1321_0x222b32;_0x14cd5c?this[_0x4956bb(0xc6)](_0x14cd5c,!![]):this[_0x4956bb(0xbe)]['end']();},EmailImap[a1321_0x222b32(0xcf)]['readUnseen']=function(){const _0x403cf2=a1321_0x222b32;this['imap'][_0x403cf2(0xb8)]([_0x403cf2(0xd6)],this['handleReadUnseen']['bind'](this));},EmailImap[a1321_0x222b32(0xcf)][a1321_0x222b32(0xdc)]=function(_0x36b9d7,_0x63fb53){const _0x3b312a=a1321_0x222b32;if(_0x36b9d7)this[_0x3b312a(0xc6)](_0x36b9d7,!![]);else{if(_0x63fb53[_0x3b312a(0xc8)])try{const _0xf1d3fa=this['imap'][_0x3b312a(0xba)](_0x63fb53,{'bodies':'','markSeen':!![]});_0xf1d3fa['on'](_0x3b312a(0xcb),this['handleFetchMessage'][_0x3b312a(0xde)](this)),_0xf1d3fa[_0x3b312a(0xbc)](_0x3b312a(0xc0),this['handleFetchError'][_0x3b312a(0xde)](this)),_0xf1d3fa[_0x3b312a(0xbc)](_0x3b312a(0xdd),this[_0x3b312a(0xe3)][_0x3b312a(0xde)](this));}catch(_0x304cd8){logger[_0x3b312a(0xc0)](_0x304cd8);}else this['imap'][_0x3b312a(0xd7)](!![],this[_0x3b312a(0xc9)][_0x3b312a(0xde)](this));}},EmailImap['prototype'][a1321_0x222b32(0xdb)]=function(_0xbd57f0){const _0x12b7fd=a1321_0x222b32;_0xbd57f0['on']('body',this[_0x12b7fd(0xd2)]['bind'](this)),_0xbd57f0['once']('attributes',this['handleMessageAttributes'][_0x12b7fd(0xde)](this)),_0xbd57f0[_0x12b7fd(0xbc)](_0x12b7fd(0xdd),this[_0x12b7fd(0xd8)]['bind'](this));},EmailImap[a1321_0x222b32(0xcf)]['handleMessageBody']=function(_0x4fdf22){const _0x303c56=a1321_0x222b32;simpleParser(_0x4fdf22,{'Iconv':Iconv},this[_0x303c56(0xc5)][_0x303c56(0xde)](this));},EmailImap[a1321_0x222b32(0xcf)]['handleMessageAttributes']=function(){},EmailImap[a1321_0x222b32(0xcf)][a1321_0x222b32(0xd8)]=function(){},EmailImap[a1321_0x222b32(0xcf)][a1321_0x222b32(0xc5)]=function(_0x11f073,_0x1c8900){const _0x3c919e=a1321_0x222b32;if(_0x11f073)logger[_0x3c919e(0xc0)](_0x11f073);else{const _0x2581cc=this;utils[_0x3c919e(0xc2)](this[_0x3c919e(0xe8)],_0x1c8900,function(_0x4830b8){const _0x2c9d56=_0x3c919e;_0x2581cc[_0x2c9d56(0xd4)]('email',_0x4830b8);});}},EmailImap[a1321_0x222b32(0xcf)]['handleFetchEnd']=function(){const _0x258a1e=a1321_0x222b32;this[_0x258a1e(0xbe)][_0x258a1e(0xd7)](!![],this[_0x258a1e(0xc9)][_0x258a1e(0xde)](this));},EmailImap['prototype'][a1321_0x222b32(0xe5)]=function(_0x3143fe){const _0x3522cc=a1321_0x222b32;this[_0x3522cc(0xc6)](_0x3143fe),this[_0x3522cc(0xbe)][_0x3522cc(0xd7)](!![],this[_0x3522cc(0xc9)][_0x3522cc(0xde)](this));},EmailImap[a1321_0x222b32(0xcf)][a1321_0x222b32(0xbf)]=function(){const _0x3c7be0=a1321_0x222b32;this[_0x3c7be0(0xd4)](_0x3c7be0(0xdd));},EmailImap[a1321_0x222b32(0xcf)]['handleError']=function(_0x3d2330,_0xd1a7ed){const _0x22ce79=a1321_0x222b32;logger['error'](_0x22ce79(0xc6),this[_0x22ce79(0xe8)][_0x22ce79(0xea)],JSON[_0x22ce79(0xe0)](_0x3d2330));let _0x385537='';if(_0x3d2330){if(_0x3d2330[_0x22ce79(0xc1)])_0x385537=_0x3d2330[_0x22ce79(0xc1)];else for(const _0x290778 in _0x3d2330){typeof _0x3d2330[_0x290778]!=='undefined'&&(_0x385537+=_['upperFirst'](_0x290778)+':\x20'+_0x3d2330[_0x290778]+'\x0a');}}_0xd1a7ed?this['imap'][_0x22ce79(0xdd)]():(this[_0x22ce79(0xd4)](_0x22ce79(0xc0),_0x385537),this[_0x22ce79(0xd4)]('end'));},module[a1321_0x222b32(0xcd)]=EmailImap; \ No newline at end of file +const a1321_0x536c=['account','connTimeout','handleCloseBox','password','isNil','iconv','parser','handleEnd','inherits','events','fetch','anonymous@xcally.com','handleError','handleFetchError','required','EventEmitter','mailbox','handleFetchEnd','port','getAccount','host','handleFetchMessage','authTimeout','handleReadUnseen','once','search','authentication','emit','error','box','INBOX','./utils','handleMessageAttributes','prototype','closeBox','ready','imap','autotls','tls','simpleParser','user','util','stringify','handleMessageEnd','handleMessageBody','bind','openBox','service','undefined','handleReady','email','../../../config/logger','length','upperFirst','Iconv','end','attributes','exports'];(function(_0x4e1b60,_0x5de529){const _0x536cbd=function(_0x58b28d){while(--_0x58b28d){_0x4e1b60['push'](_0x4e1b60['shift']());}};_0x536cbd(++_0x5de529);}(a1321_0x536c,0x1de));const a1321_0x58b2=function(_0x4e1b60,_0x5de529){_0x4e1b60=_0x4e1b60-0xa7;let _0x536cbd=a1321_0x536c[_0x4e1b60];return _0x536cbd;};const a1321_0x2f321b=a1321_0x58b2;'use strict';const util=require(a1321_0x2f321b(0xc2)),Imap=require(a1321_0x2f321b(0xbd)),_=require('lodash'),simpleParser=require('mailparser')[a1321_0x2f321b(0xc0)],Iconv=require(a1321_0x2f321b(0xd8))[a1321_0x2f321b(0xcf)],EventEmitter=require(a1321_0x2f321b(0xdc))[a1321_0x2f321b(0xa8)],utils=require(a1321_0x2f321b(0xb8)),logger=require(a1321_0x2f321b(0xcc))('email');function EmailImap(_0x33c0cb,_0x4137ef){const _0x15f88b=a1321_0x2f321b;this[_0x15f88b(0xa9)]=_0x15f88b(0xb7),this[_0x15f88b(0xd3)]=this['getAccount'](_0x33c0cb,_0x4137ef),this['imap']=new Imap(this[_0x15f88b(0xd3)]),this[_0x15f88b(0xbd)][_0x15f88b(0xb1)](_0x15f88b(0xbc),this['handleReady'][_0x15f88b(0xc6)](this)),this[_0x15f88b(0xbd)][_0x15f88b(0xb1)](_0x15f88b(0xd0),this['handleEnd'][_0x15f88b(0xc6)](this)),this[_0x15f88b(0xbd)]['on']('error',this[_0x15f88b(0xdf)][_0x15f88b(0xc6)](this)),this[_0x15f88b(0xbd)]['connect']();}util[a1321_0x2f321b(0xdb)](EmailImap,EventEmitter),EmailImap[a1321_0x2f321b(0xba)][a1321_0x2f321b(0xac)]=function(_0x1fbc60,_0x2e64e4){const _0x389f15=a1321_0x2f321b,_0x2674fb={'connTimeout':_0x1fbc60[_0x389f15(0xd4)]?_0x1fbc60['connTimeout']*0x3e8:0x2710,'authTimeout':_0x1fbc60[_0x389f15(0xaf)]?_0x1fbc60[_0x389f15(0xaf)]*0x3e8:0x1388};return _[_0x389f15(0xd7)](_0x1fbc60['service'])?(_0x1fbc60[_0x389f15(0xb3)]&&(_0x2674fb[_0x389f15(0xc1)]=_0x1fbc60[_0x389f15(0xc1)],_0x2674fb['password']=_0x1fbc60[_0x389f15(0xd6)]),_0x2674fb['host']=_0x1fbc60['host'],_0x2674fb[_0x389f15(0xab)]=_0x1fbc60[_0x389f15(0xab)]||0x3e1,_0x1fbc60[_0x389f15(0xbf)]?_0x2674fb[_0x389f15(0xbf)]=!![]:(_0x2674fb[_0x389f15(0xbf)]=![],_0x2674fb[_0x389f15(0xbe)]=_0x389f15(0xa7))):(_0x2674fb[_0x389f15(0xc1)]=_0x1fbc60[_0x389f15(0xc1)],_0x2674fb[_0x389f15(0xd6)]=_0x1fbc60[_0x389f15(0xd6)],_0x2674fb[_0x389f15(0xad)]=utils['getHost'](_0x1fbc60[_0x389f15(0xc8)]),_0x2674fb[_0x389f15(0xab)]=0x3e1,_0x2674fb[_0x389f15(0xbf)]=!![]),_0x2674fb[_0x389f15(0xcb)]=_0x2e64e4||_0x1fbc60[_0x389f15(0xc1)]||_0x389f15(0xde),_0x2674fb;},EmailImap[a1321_0x2f321b(0xba)][a1321_0x2f321b(0xca)]=function(){const _0x2c21f3=a1321_0x2f321b;this[_0x2c21f3(0xbd)][_0x2c21f3(0xc7)](this[_0x2c21f3(0xa9)],![],this['handleOpenBox'][_0x2c21f3(0xc6)](this));},EmailImap[a1321_0x2f321b(0xba)]['handleOpenBox']=function(_0x19d069,_0x5260a2){const _0x833ad3=a1321_0x2f321b;_0x19d069?this[_0x833ad3(0xdf)](_0x19d069,!![]):(this[_0x833ad3(0xb4)](_0x833ad3(0xb6),_0x5260a2),this['readUnseen']());},EmailImap[a1321_0x2f321b(0xba)]['handleCloseBox']=function(_0xf948ab){const _0x57e0dc=a1321_0x2f321b;_0xf948ab?this[_0x57e0dc(0xdf)](_0xf948ab,!![]):this[_0x57e0dc(0xbd)]['end']();},EmailImap['prototype']['readUnseen']=function(){const _0x533eaa=a1321_0x2f321b;this[_0x533eaa(0xbd)][_0x533eaa(0xb2)](['UNSEEN'],this[_0x533eaa(0xb0)]['bind'](this));},EmailImap[a1321_0x2f321b(0xba)][a1321_0x2f321b(0xb0)]=function(_0x3dfd98,_0x151620){const _0x2c3f14=a1321_0x2f321b;if(_0x3dfd98)this[_0x2c3f14(0xdf)](_0x3dfd98,!![]);else{if(_0x151620[_0x2c3f14(0xcd)])try{const _0x3df76d=this[_0x2c3f14(0xbd)][_0x2c3f14(0xdd)](_0x151620,{'bodies':'','markSeen':!![]});_0x3df76d['on']('message',this['handleFetchMessage'][_0x2c3f14(0xc6)](this)),_0x3df76d[_0x2c3f14(0xb1)](_0x2c3f14(0xb5),this['handleFetchError'][_0x2c3f14(0xc6)](this)),_0x3df76d[_0x2c3f14(0xb1)]('end',this['handleFetchEnd'][_0x2c3f14(0xc6)](this));}catch(_0x47b889){logger[_0x2c3f14(0xb5)](_0x47b889);}else this['imap']['closeBox'](!![],this[_0x2c3f14(0xd5)][_0x2c3f14(0xc6)](this));}},EmailImap['prototype'][a1321_0x2f321b(0xae)]=function(_0x4d79d4){const _0xf9d456=a1321_0x2f321b;_0x4d79d4['on']('body',this[_0xf9d456(0xc5)][_0xf9d456(0xc6)](this)),_0x4d79d4[_0xf9d456(0xb1)](_0xf9d456(0xd1),this[_0xf9d456(0xb9)][_0xf9d456(0xc6)](this)),_0x4d79d4[_0xf9d456(0xb1)]('end',this[_0xf9d456(0xc4)][_0xf9d456(0xc6)](this));},EmailImap[a1321_0x2f321b(0xba)]['handleMessageBody']=function(_0x165260){const _0x12962e=a1321_0x2f321b;simpleParser(_0x165260,{'Iconv':Iconv},this['handleSimpleParser'][_0x12962e(0xc6)](this));},EmailImap[a1321_0x2f321b(0xba)][a1321_0x2f321b(0xb9)]=function(){},EmailImap[a1321_0x2f321b(0xba)][a1321_0x2f321b(0xc4)]=function(){},EmailImap[a1321_0x2f321b(0xba)]['handleSimpleParser']=function(_0x529071,_0x2effcd){const _0x370873=a1321_0x2f321b;if(_0x529071)logger['error'](_0x529071);else{const _0xb18c51=this;utils[_0x370873(0xd9)](this[_0x370873(0xd3)],_0x2effcd,function(_0x6929e2){const _0x7e7be9=_0x370873;_0xb18c51[_0x7e7be9(0xb4)]('email',_0x6929e2);});}},EmailImap['prototype'][a1321_0x2f321b(0xaa)]=function(){const _0x349503=a1321_0x2f321b;this[_0x349503(0xbd)][_0x349503(0xbb)](!![],this[_0x349503(0xd5)][_0x349503(0xc6)](this));},EmailImap[a1321_0x2f321b(0xba)][a1321_0x2f321b(0xe0)]=function(_0x18f6ab){const _0x2623a1=a1321_0x2f321b;this[_0x2623a1(0xdf)](_0x18f6ab),this[_0x2623a1(0xbd)][_0x2623a1(0xbb)](!![],this[_0x2623a1(0xd5)][_0x2623a1(0xc6)](this));},EmailImap[a1321_0x2f321b(0xba)][a1321_0x2f321b(0xda)]=function(){const _0x4d01f0=a1321_0x2f321b;this[_0x4d01f0(0xb4)](_0x4d01f0(0xd0));},EmailImap[a1321_0x2f321b(0xba)][a1321_0x2f321b(0xdf)]=function(_0x512c77,_0x50f566){const _0xde27f4=a1321_0x2f321b;logger[_0xde27f4(0xb5)](_0xde27f4(0xdf),this[_0xde27f4(0xd3)]['email'],JSON[_0xde27f4(0xc3)](_0x512c77));let _0x1666c5='';if(_0x512c77){if(_0x512c77['textCode'])_0x1666c5=_0x512c77['textCode'];else for(const _0x47dc90 in _0x512c77){typeof _0x512c77[_0x47dc90]!==_0xde27f4(0xc9)&&(_0x1666c5+=_[_0xde27f4(0xce)](_0x47dc90)+':\x20'+_0x512c77[_0x47dc90]+'\x0a');}}_0x50f566?this[_0xde27f4(0xbd)][_0xde27f4(0xd0)]():(this[_0xde27f4(0xb4)](_0xde27f4(0xb5),_0x1666c5),this['emit'](_0xde27f4(0xd0)));},module[a1321_0x2f321b(0xd2)]=EmailImap; \ No newline at end of file diff --git a/server/services/email/lib/smtp.js b/server/services/email/lib/smtp.js index cbac41b..c2dca2f 100644 --- a/server/services/email/lib/smtp.js +++ b/server/services/email/lib/smtp.js @@ -1 +1 @@ -const a1322_0x2add=['createTransport','send','verify','compile','sendMail','nodemailer-plugin-inline-base64','exports','use','prototype','toString'];(function(_0x4921c5,_0x423572){const _0x2add19=function(_0x5318f0){while(--_0x5318f0){_0x4921c5['push'](_0x4921c5['shift']());}};_0x2add19(++_0x423572);}(a1322_0x2add,0x123));const a1322_0x5318=function(_0x4921c5,_0x423572){_0x4921c5=_0x4921c5-0x10c;let _0x2add19=a1322_0x2add[_0x4921c5];return _0x2add19;};const a1322_0x34a882=a1322_0x5318;'use strict';const nodemailer=require('nodemailer'),inlineBase64=require(a1322_0x34a882(0x110));function EmailSmtp(){}EmailSmtp[a1322_0x34a882(0x113)][a1322_0x34a882(0x10c)]=function(_0x589caf,_0x13062f){return new Promise(function(_0x12f620,_0x2eabe0){const _0x2fdd76=a1322_0x5318,_0x1d8a3b=nodemailer[_0x2fdd76(0x115)](_0x589caf);_0x1d8a3b[_0x2fdd76(0x112)](_0x2fdd76(0x10e),inlineBase64()),_0x1d8a3b[_0x2fdd76(0x10f)](_0x13062f,function(_0x129872,_0x425c5c){const _0x29f5d6=_0x2fdd76;_0x129872?_0x2eabe0(_0x129872[_0x29f5d6(0x114)]()):_0x12f620(_0x425c5c);});});},EmailSmtp[a1322_0x34a882(0x113)]['verify']=function(_0x44b0ee){return new Promise(function(_0xa44e5e,_0x43aec1){const _0x5515b4=a1322_0x5318,_0x2ab18c=nodemailer['createTransport'](_0x44b0ee);_0x2ab18c[_0x5515b4(0x10d)](function(_0x2791f4,_0x102ecc){const _0x2299f9=_0x5515b4;_0x2791f4?_0x43aec1(_0x2791f4[_0x2299f9(0x114)]()):_0x102ecc?_0xa44e5e(_0x102ecc):_0x43aec1('Not\x20verifired');});});},module[a1322_0x34a882(0x111)]=EmailSmtp; \ No newline at end of file +const a1322_0x301e=['nodemailer-plugin-inline-base64','Not\x20verifired','send','createTransport','exports','verify','prototype','compile','toString','use'];(function(_0x10462e,_0x5d7819){const _0x301e57=function(_0x3c1062){while(--_0x3c1062){_0x10462e['push'](_0x10462e['shift']());}};_0x301e57(++_0x5d7819);}(a1322_0x301e,0x103));const a1322_0x3c10=function(_0x10462e,_0x5d7819){_0x10462e=_0x10462e-0x83;let _0x301e57=a1322_0x301e[_0x10462e];return _0x301e57;};const a1322_0x1b558a=a1322_0x3c10;'use strict';const nodemailer=require('nodemailer'),inlineBase64=require(a1322_0x1b558a(0x84));function EmailSmtp(){}EmailSmtp[a1322_0x1b558a(0x8a)][a1322_0x1b558a(0x86)]=function(_0x3c759f,_0x53c0d3){return new Promise(function(_0x1dc41b,_0x3142ba){const _0x4f0cce=a1322_0x3c10,_0x15fb0b=nodemailer[_0x4f0cce(0x87)](_0x3c759f);_0x15fb0b[_0x4f0cce(0x83)](_0x4f0cce(0x8b),inlineBase64()),_0x15fb0b['sendMail'](_0x53c0d3,function(_0x18d573,_0x1bba60){_0x18d573?_0x3142ba(_0x18d573['toString']()):_0x1dc41b(_0x1bba60);});});},EmailSmtp['prototype'][a1322_0x1b558a(0x89)]=function(_0x363d26){return new Promise(function(_0x2a3ef8,_0x5c2576){const _0x30bcee=a1322_0x3c10,_0xc6edb6=nodemailer[_0x30bcee(0x87)](_0x363d26);_0xc6edb6[_0x30bcee(0x89)](function(_0x86e750,_0x3b2991){const _0x4cd754=_0x30bcee;_0x86e750?_0x5c2576(_0x86e750[_0x4cd754(0x8c)]()):_0x3b2991?_0x2a3ef8(_0x3b2991):_0x5c2576(_0x4cd754(0x85));});});},module[a1322_0x1b558a(0x88)]=EmailSmtp; \ No newline at end of file diff --git a/server/services/email/lib/utils.js b/server/services/email/lib/utils.js index 44c3730..ddb8c72 100644 --- a/server/services/email/lib/utils.js +++ b/server/services/email/lib/utils.js @@ -1 +1 @@ -const a1323_0x29b2=['application/ms-tnef','info','Email\x20message\x20%s\x20is\x20in\x20TNEF\x20format:\x20message\x20content\x20will\x20be\x20converted\x20by\x20the\x20system','message','node-tnef','outlook365','parseBuffer','getHost','messageId','value','gmail','generate','attachment','content','files/attachments/','BodyHTML','originCc','contentType','originTo','html','lodash','imap-mail.outlook.com','imap.gmail.com','@xcally.com','join','format','randomstring','type','textAsHtml','

Empty\x20message

','attach','isEmpty','parser','pop','moment','subject','anonymous','from','../../../config/environment','filter','now','address','email','replace','test','Title','attachments','root','Attachments','length','filename','attachment-','imap.mail.yahoo.com','inReplyTo','includes','bcc','0x1?_0x4b525[_0x2b0d06(0x79)]():'';}return'';}function getMails(_0x443da5,_0x2935f4){const _0x31b278=a1323_0x57336e;let _0x16b7c4='';for(let _0x1a4614=0x0;_0x1a4614<_0x2935f4[_0x31b278(0xa5)][_0x31b278(0x89)];_0x1a4614+=0x1){_0x2935f4[_0x31b278(0xa5)][_0x1a4614]['address']!==_0x443da5&&(!_[_0x31b278(0x77)](_0x16b7c4)&&(_0x16b7c4+=','),_0x16b7c4+=_0x2935f4[_0x31b278(0xa5)][_0x1a4614][_0x31b278(0x9a)]||_0x2935f4['value'][_0x1a4614][_0x31b278(0x81)]||'',_0x16b7c4+='\x20<',_0x16b7c4+=_0x2935f4[_0x31b278(0xa5)][_0x1a4614][_0x31b278(0x81)]?_0x2935f4[_0x31b278(0xa5)][_0x1a4614]['address']:'anonymous'+random[_0x31b278(0xa7)](0x6)+'@xcally.com',_0x16b7c4+='>');}return _0x16b7c4;}function parseEmail(_0x4ac220,_0x457f22,_0x592e63){const _0x32da41=a1323_0x57336e;if(_0x457f22[_0x32da41(0x6b)]){const _0x2f6eff=/)<[^<]*)*<\/script>/gi;while(_0x2f6eff[_0x32da41(0x84)](_0x457f22[_0x32da41(0x6b)])){_0x457f22[_0x32da41(0x6b)]=_0x457f22[_0x32da41(0x6b)]['replace'](_0x2f6eff,'');}_0x592e63['body']=_0x457f22['html'];}else _0x592e63[_0x32da41(0x92)]=_0x457f22[_0x32da41(0x74)];_0x592e63['body']&&(_0x592e63[_0x32da41(0x92)]=_0x592e63['body'][_0x32da41(0x83)](/Empty\x20message

','format','body','subject','YYYY-MM-DD\x20HH:mm:ss','content','files/attachments/','inReplyTo'];(function(_0xd47088,_0x447bd7){const _0x41ff17=function(_0x23d0f6){while(--_0x23d0f6){_0xd47088['push'](_0xd47088['shift']());}};_0x41ff17(++_0x447bd7);}(a1323_0x41ff,0xeb));const a1323_0x23d0=function(_0xd47088,_0x447bd7){_0xd47088=_0xd47088-0x18f;let _0x41ff17=a1323_0x41ff[_0xd47088];return _0x41ff17;};const a1323_0xb45aa5=a1323_0x23d0;'use strict';const _=require(a1323_0xb45aa5(0x191)),moment=require(a1323_0xb45aa5(0x1aa)),random=require(a1323_0xb45aa5(0x1bb)),fs=require('fs'),path=require(a1323_0xb45aa5(0x197)),util=require(a1323_0xb45aa5(0x194)),tnef=require(a1323_0xb45aa5(0x1be)),logger=require(a1323_0xb45aa5(0x190))(a1323_0xb45aa5(0x1b5)),config=require(a1323_0xb45aa5(0x193));function getAddress(_0x5d02bb){const _0x5c1bc4=a1323_0xb45aa5,_0x3d10fd=_[_0x5c1bc4(0x19c)](_0x5d02bb['value']);return _0x3d10fd&&_0x3d10fd[_0x5c1bc4(0x1ae)]?_0x3d10fd[_0x5c1bc4(0x1ae)]:_0x5c1bc4(0x1c4)+random[_0x5c1bc4(0x1bc)](0x6)+_0x5c1bc4(0x1cc);}function getFirstName(_0x34eb7a){const _0x8136f3=a1323_0xb45aa5,_0x5336a4=_[_0x8136f3(0x19c)](_0x34eb7a['value']);if(_0x5336a4&&_0x5336a4['name']){const _0x23adfa=_0x5336a4[_0x8136f3(0x1b4)][_0x8136f3(0x19b)](/\s+/);return _0x23adfa['length']?_0x23adfa[_0x8136f3(0x1b2)](0x0,-0x1)['join']('\x20'):_0x5336a4['name'];}return _0x8136f3(0x1af);}function getLastName(_0x4cb21c){const _0x125cbe=a1323_0xb45aa5,_0x4aeda7=_[_0x125cbe(0x19c)](_0x4cb21c[_0x125cbe(0x18f)]);if(_0x4aeda7&&_0x4aeda7[_0x125cbe(0x1b4)]){const _0x5093d9=_0x4aeda7[_0x125cbe(0x1b4)]['split'](/\s+/);return _0x5093d9[_0x125cbe(0x1c0)]>0x1?_0x5093d9[_0x125cbe(0x1c8)]():'';}return'';}function getMails(_0x3d37ef,_0x5810e3){const _0x347150=a1323_0xb45aa5;let _0x532068='';for(let _0x13cd3d=0x0;_0x13cd3d<_0x5810e3[_0x347150(0x18f)][_0x347150(0x1c0)];_0x13cd3d+=0x1){_0x5810e3['value'][_0x13cd3d][_0x347150(0x1ae)]!==_0x3d37ef&&(!_['isEmpty'](_0x532068)&&(_0x532068+=','),_0x532068+=_0x5810e3['value'][_0x13cd3d][_0x347150(0x1b4)]||_0x5810e3[_0x347150(0x18f)][_0x13cd3d][_0x347150(0x1ae)]||'',_0x532068+='\x20<',_0x532068+=_0x5810e3[_0x347150(0x18f)][_0x13cd3d][_0x347150(0x1ae)]?_0x5810e3[_0x347150(0x18f)][_0x13cd3d][_0x347150(0x1ae)]:_0x347150(0x1c4)+random[_0x347150(0x1bc)](0x6)+_0x347150(0x1cc),_0x532068+='>');}return _0x532068;}function parseEmail(_0x501522,_0x429fcc,_0x401f7b){const _0x3f9987=a1323_0xb45aa5;if(_0x429fcc[_0x3f9987(0x1ba)]){const _0xb7a3c8=/)<[^<]*)*<\/script>/gi;while(_0xb7a3c8[_0x3f9987(0x1ce)](_0x429fcc[_0x3f9987(0x1ba)])){_0x429fcc[_0x3f9987(0x1ba)]=_0x429fcc[_0x3f9987(0x1ba)]['replace'](_0xb7a3c8,'');}_0x401f7b[_0x3f9987(0x1a2)]=_0x429fcc[_0x3f9987(0x1ba)];}else _0x401f7b[_0x3f9987(0x1a2)]=_0x429fcc[_0x3f9987(0x1c7)];_0x401f7b[_0x3f9987(0x1a2)]&&(_0x401f7b[_0x3f9987(0x1a2)]=_0x401f7b[_0x3f9987(0x1a2)]['replace'](/Empty\x20message

';if(_0x1cb81['Attachments'])for(let _0x44ad31=0x0;_0x44ad31<_0x1cb81[_0x4491d6(0x1cd)][_0x4491d6(0x1c0)];_0x44ad31++){const _0x28edd0=_0x1cb81[_0x4491d6(0x1cd)][_0x44ad31];_0x10f47[_0x4491d6(0x1c5)]['attachments'][_0x4491d6(0x1c1)]({'filename':_0x28edd0['Title'],'content':Buffer[_0x4491d6(0x1bd)](_0x28edd0[_0x4491d6(0x199)])});}}_0x350003(parseEmail(_0x499075,_0x4485e3,_0x10f47));})):(_0x4485e3[_0x3b6de9(0x1ba)]=_0x3b6de9(0x1a0),_0x350003(parseEmail(_0x499075,_0x4485e3,_0x10f47)));}else _0x350003(parseEmail(_0x499075,_0x4485e3,_0x10f47));},exports[a1323_0xb45aa5(0x196)]=function(_0x140d12){const _0x44e422=a1323_0xb45aa5;switch(_0x140d12){case _0x44e422(0x19e):return _0x44e422(0x1ab);case'yahoo':return'imap.mail.yahoo.com';case _0x44e422(0x198):return _0x44e422(0x1b9);case _0x44e422(0x1c2):return _0x44e422(0x1cb);}return _0x44e422(0x1ca);}; \ No newline at end of file diff --git a/server/services/email/model/mailAccount.js b/server/services/email/model/mailAccount.js index 90857ba..2fd4c16 100644 --- a/server/services/email/model/mailAccount.js +++ b/server/services/email/model/mailAccount.js @@ -1 +1 @@ -var a1324_0x4c6f=['Imap','SERV','Smtp','Service','key','name'];(function(_0x3e476,_0x4c19){var _0x4c6ffb=function(_0x418058){while(--_0x418058){_0x3e476['push'](_0x3e476['shift']());}};_0x4c6ffb(++_0x4c19);}(a1324_0x4c6f,0x152));var a1324_0x4180=function(_0x3e476,_0x4c19){_0x3e476=_0x3e476-0x154;var _0x4c6ffb=a1324_0x4c6f[_0x3e476];return _0x4c6ffb;};'use strict';function MailAccount(_0x116b00){var _0x37b30c=a1324_0x4180;this['id']=_0x116b00['id']||0x0,this['name']=_0x116b00[_0x37b30c(0x157)]||_0x37b30c(0x155),this[_0x37b30c(0x156)]=_0x116b00[_0x37b30c(0x156)]||_0x37b30c(0x159),this['active']=_0x116b00['active']||![],this[_0x37b30c(0x158)]=_0x116b00[_0x37b30c(0x158)]||[],this[_0x37b30c(0x154)]=_0x116b00[_0x37b30c(0x154)]||[];}module['exports']=MailAccount; \ No newline at end of file +var a1324_0x4d46=['Smtp','Service','key','SERV','active','exports','name','Imap'];(function(_0x214af0,_0x55812e){var _0x4d462c=function(_0xccd7db){while(--_0xccd7db){_0x214af0['push'](_0x214af0['shift']());}};_0x4d462c(++_0x55812e);}(a1324_0x4d46,0x1a2));var a1324_0xccd7=function(_0x214af0,_0x55812e){_0x214af0=_0x214af0-0xc2;var _0x4d462c=a1324_0x4d46[_0x214af0];return _0x4d462c;};var a1324_0x54d8b2=a1324_0xccd7;'use strict';function MailAccount(_0x2c365a){var _0x2ec183=a1324_0xccd7;this['id']=_0x2c365a['id']||0x0,this['name']=_0x2c365a[_0x2ec183(0xc6)]||_0x2ec183(0xc9),this[_0x2ec183(0xc2)]=_0x2c365a[_0x2ec183(0xc2)]||_0x2ec183(0xc3),this['active']=_0x2c365a[_0x2ec183(0xc4)]||![],this['Imap']=_0x2c365a[_0x2ec183(0xc7)]||[],this[_0x2ec183(0xc8)]=_0x2c365a[_0x2ec183(0xc8)]||[];}module[a1324_0x54d8b2(0xc5)]=MailAccount; \ No newline at end of file diff --git a/server/services/email/realtime/index.js b/server/services/email/realtime/index.js index deae5ff..f761d6f 100644 --- a/server/services/email/realtime/index.js +++ b/server/services/email/realtime/index.js @@ -1 +1 @@ -const a1325_0x3c6f=['undefined','mailAccounts','mapKeys','isUndefined','length','merge','exports','prototype'];(function(_0x4ba43b,_0x40a19a){const _0x3c6fa=function(_0xff47fd){while(--_0xff47fd){_0x4ba43b['push'](_0x4ba43b['shift']());}};_0x3c6fa(++_0x40a19a);}(a1325_0x3c6f,0xd6));const a1325_0xff47=function(_0x4ba43b,_0x40a19a){_0x4ba43b=_0x4ba43b-0xa4;let _0x3c6fa=a1325_0x3c6f[_0x4ba43b];return _0x3c6fa;};const a1325_0x1d5387=a1325_0xff47;'use strict';const _=require('lodash'),MailAccount=require('../model/mailAccount'),Realtime=function(){this['mailAccounts']={};};function freeIsNotKey(_0x2c8c11,_0x29d3ce,_0x531acc){const _0x405415=a1325_0xff47,_0x2ca364=_[_0x405415(0xa8)](_0x2c8c11,function(_0x8dd82a){return _0x8dd82a[_0x531acc];});for(const _0x5438f3 in _0x29d3ce){typeof _0x29d3ce[_0x5438f3]!==_0x405415(0xa6)&&(!_0x2ca364[_0x5438f3]&&delete _0x29d3ce[_0x5438f3]);}}Realtime[a1325_0x1d5387(0xa5)]['mergeFromDatabase']=function(_0x17d9b2,_0x321648){const _0x1ff793=a1325_0x1d5387;for(const _0x37ee97 in _0x321648){typeof _0x17d9b2[_0x37ee97]!==_0x1ff793(0xa6)&&(_0x17d9b2[_0x37ee97]=_0x321648[_0x37ee97]);}},Realtime[a1325_0x1d5387(0xa5)]['initMailAccounts']=function(){const _0x2f2d3f=this;return function(_0x358c0e){const _0x534117=a1325_0xff47;if(_0x358c0e){freeIsNotKey(_0x358c0e,_0x2f2d3f['mailAccounts'],'id');for(let _0x24a0bb=0x0,_0x3cf9ee={};_0x24a0bb<_0x358c0e[_0x534117(0xaa)];_0x24a0bb+=0x1){_0x3cf9ee=_0x358c0e[_0x24a0bb],_[_0x534117(0xa9)](_0x2f2d3f['mailAccounts'][_0x3cf9ee['id']])?_0x2f2d3f[_0x534117(0xa7)][_0x3cf9ee['id']]=new MailAccount(_0x3cf9ee):_[_0x534117(0xab)](_0x2f2d3f[_0x534117(0xa7)][_0x3cf9ee['id']],_0x3cf9ee);}}return _0x2f2d3f[_0x534117(0xa7)];};},module[a1325_0x1d5387(0xa4)]=Realtime; \ No newline at end of file +const a1325_0x6079=['undefined','../model/mailAccount','exports','initMailAccounts','lodash','mailAccounts','prototype','isUndefined','mergeFromDatabase'];(function(_0x1f31fc,_0x2d64cc){const _0x6079ce=function(_0x4e3492){while(--_0x4e3492){_0x1f31fc['push'](_0x1f31fc['shift']());}};_0x6079ce(++_0x2d64cc);}(a1325_0x6079,0x1e3));const a1325_0x4e34=function(_0x1f31fc,_0x2d64cc){_0x1f31fc=_0x1f31fc-0x110;let _0x6079ce=a1325_0x6079[_0x1f31fc];return _0x6079ce;};const a1325_0x16d32d=a1325_0x4e34;'use strict';const _=require(a1325_0x16d32d(0x117)),MailAccount=require(a1325_0x16d32d(0x114)),Realtime=function(){const _0x8d9982=a1325_0x16d32d;this[_0x8d9982(0x118)]={};};function freeIsNotKey(_0x8f26a1,_0x4dfc73,_0x30dc80){const _0x37b8b8=a1325_0x16d32d,_0x275fa9=_['mapKeys'](_0x8f26a1,function(_0x299a18){return _0x299a18[_0x30dc80];});for(const _0x3b5d61 in _0x4dfc73){typeof _0x4dfc73[_0x3b5d61]!==_0x37b8b8(0x113)&&(!_0x275fa9[_0x3b5d61]&&delete _0x4dfc73[_0x3b5d61]);}}Realtime[a1325_0x16d32d(0x110)][a1325_0x16d32d(0x112)]=function(_0x2a979f,_0xcf565b){for(const _0x3bae6a in _0xcf565b){typeof _0x2a979f[_0x3bae6a]!=='undefined'&&(_0x2a979f[_0x3bae6a]=_0xcf565b[_0x3bae6a]);}},Realtime[a1325_0x16d32d(0x110)][a1325_0x16d32d(0x116)]=function(){const _0x2b9484=this;return function(_0x28f815){const _0x4c8375=a1325_0x4e34;if(_0x28f815){freeIsNotKey(_0x28f815,_0x2b9484[_0x4c8375(0x118)],'id');for(let _0x4f648e=0x0,_0x4e80ab={};_0x4f648e<_0x28f815['length'];_0x4f648e+=0x1){_0x4e80ab=_0x28f815[_0x4f648e],_[_0x4c8375(0x111)](_0x2b9484[_0x4c8375(0x118)][_0x4e80ab['id']])?_0x2b9484[_0x4c8375(0x118)][_0x4e80ab['id']]=new MailAccount(_0x4e80ab):_['merge'](_0x2b9484[_0x4c8375(0x118)][_0x4e80ab['id']],_0x4e80ab);}}return _0x2b9484['mailAccounts'];};},module[a1325_0x16d32d(0x115)]=Realtime; \ No newline at end of file diff --git a/server/services/email/rpc/mailAccount.js b/server/services/email/rpc/mailAccount.js index 39054ca..0c0bbc2 100644 --- a/server/services/email/rpc/mailAccount.js +++ b/server/services/email/rpc/mailAccount.js @@ -1 +1 @@ -const a1326_0x1560=['name','ListId','MailServerOut','getMailAccount','notify','service','NotifyMailAccount','GetMailAccount','Imap','key','MailServerIn','Request','TemplateId','getMailAccounts'];(function(_0xfcb1ac,_0x2c340d){const _0x1560b0=function(_0x45de76){while(--_0x45de76){_0xfcb1ac['push'](_0xfcb1ac['shift']());}};_0x1560b0(++_0x2c340d);}(a1326_0x1560,0x1ef));const a1326_0x45de=function(_0xfcb1ac,_0x2c340d){_0xfcb1ac=_0xfcb1ac-0xa3;let _0x1560b0=a1326_0x1560[_0xfcb1ac];return _0x1560b0;};const a1326_0x42897c=a1326_0x45de;'use strict';const client=require('../client');exports[a1326_0x42897c(0xab)]=function(){return function(){const _0x29b6af=a1326_0x45de;return client[_0x29b6af(0xa9)](_0x29b6af(0xa5),{'options':{'attributes':['id',_0x29b6af(0xac),_0x29b6af(0xa3),'email','active',_0x29b6af(0xa7),_0x29b6af(0xad),_0x29b6af(0xaa)],'raw':![],'include':[{'model':_0x29b6af(0xa8),'as':_0x29b6af(0xa6)},{'model':_0x29b6af(0xae),'as':'Smtp'}]},'log':_0x29b6af(0xaf)});};},exports[a1326_0x42897c(0xb0)]=function(_0x14035e,_0xcff964){const _0x112335=a1326_0x42897c;return client[_0x112335(0xa9)](_0x112335(0xa4),{'account':{'id':_0x14035e},'body':_0xcff964,'log':'NotifyMailAccount'});}; \ No newline at end of file +const a1326_0x605a=['Request','GetMailAccount','Imap','key','email','name','../client','ListId','NotifyMailAccount','getMailAccounts','active','TemplateId'];(function(_0x53db14,_0x5e90fa){const _0x605ae3=function(_0x4a9b8f){while(--_0x4a9b8f){_0x53db14['push'](_0x53db14['shift']());}};_0x605ae3(++_0x5e90fa);}(a1326_0x605a,0x12f));const a1326_0x4a9b=function(_0x53db14,_0x5e90fa){_0x53db14=_0x53db14-0x92;let _0x605ae3=a1326_0x605a[_0x53db14];return _0x605ae3;};const a1326_0x9ae533=a1326_0x4a9b;'use strict';const client=require(a1326_0x9ae533(0x95));exports[a1326_0x9ae533(0x98)]=function(){return function(){const _0x199304=a1326_0x4a9b;return client[_0x199304(0x9b)](_0x199304(0x9c),{'options':{'attributes':['id',_0x199304(0x94),'service',_0x199304(0x93),_0x199304(0x99),_0x199304(0x92),_0x199304(0x96),_0x199304(0x9a)],'raw':![],'include':[{'model':'MailServerIn','as':_0x199304(0x9d)},{'model':'MailServerOut','as':'Smtp'}]},'log':'getMailAccount'});};},exports['notify']=function(_0x5da5a8,_0x5f41b0){const _0x56ac53=a1326_0x9ae533;return client[_0x56ac53(0x9b)](_0x56ac53(0x97),{'account':{'id':_0x5da5a8},'body':_0x5f41b0,'log':_0x56ac53(0x97)});}; \ No newline at end of file diff --git a/server/services/email/server/index.js b/server/services/email/server/index.js index 535d0be..c6b0f33 100644 --- a/server/services/email/server/index.js +++ b/server/services/email/server/index.js @@ -1 +1 @@ -const a1327_0x211c=['Email\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','pass','lodash','length','RPC\x20listening\x20on\x20port:','server','jayson/promise','error','verifySmtp','listen','message','mailAccounts','Imap','stringify','values','../../../config/logger','password','catch','Verified','sendMail','log','account','Smtp'];(function(_0x6a39de,_0x5738a1){const _0x211c3f=function(_0x13b8a0){while(--_0x13b8a0){_0x6a39de['push'](_0x6a39de['shift']());}};_0x211c3f(++_0x5738a1);}(a1327_0x211c,0x1d7));const a1327_0x13b8=function(_0x6a39de,_0x5738a1){_0x6a39de=_0x6a39de-0x6a;let _0x211c3f=a1327_0x211c[_0x6a39de];return _0x211c3f;};const a1327_0x167376=a1327_0x13b8;'use strict';const jayson=require(a1327_0x167376(0x7c)),_=require(a1327_0x167376(0x78)),logger=require(a1327_0x167376(0x6e))('email');exports[a1327_0x167376(0x7f)]=function(_0x41629f,_0x123b02){return new Promise(function(_0x13f066,_0x3b1928){const _0x692475=a1327_0x13b8,_0x438fcb={'SendMail':function(_0x2155d6){const _0x4815e1=this;return new Promise(function(_0x444ab2,_0x47efaf){const _0x51c2c3=a1327_0x13b8;_0x123b02[_0x51c2c3(0x72)](_0x2155d6[_0x51c2c3(0x74)],_0x2155d6[_0x51c2c3(0x80)])['then'](function(_0x2a060a){_0x444ab2({'code':0xc8,'message':_0x2a060a});})['catch'](function(_0x2354d5){const _0x491a8d=_0x51c2c3;_0x47efaf(_0x4815e1[_0x491a8d(0x7d)](0x1f4,_0x2354d5));});});},'VerifySmtp':function(_0x2f8af9){const _0x3a05b3=this;return new Promise(function(_0x2eda19,_0x316036){const _0x13ca2c=a1327_0x13b8;_0x123b02[_0x13ca2c(0x7e)](_0x2f8af9[_0x13ca2c(0x74)])['then'](function(){const _0x59b5df=_0x13ca2c;_0x2eda19({'code':0xc8,'message':_0x59b5df(0x71)});})[_0x13ca2c(0x70)](function(_0x17b5ce){const _0x3181fa=_0x13ca2c;_0x316036(_0x3a05b3[_0x3181fa(0x7d)](0x1f4,_0x17b5ce));});});},'MailAccounts':function(){return new Promise(function(_0xa74e8){const _0x556913=a1327_0x13b8,_0x2f9c96=_[_0x556913(0x6d)](_0x41629f[_0x556913(0x6a)]);for(let _0xa8c1e=0x0;_0xa8c1e<_0x2f9c96[_0x556913(0x79)];_0xa8c1e+=0x1){_0x2f9c96[_0xa8c1e][_0x556913(0x6b)]&&_0x2f9c96[_0xa8c1e][_0x556913(0x6b)][_0x556913(0x6f)]&&delete _0x2f9c96[_0xa8c1e][_0x556913(0x6b)]['password'],_0x2f9c96[_0xa8c1e]['Smtp']&&_0x2f9c96[_0xa8c1e][_0x556913(0x75)][_0x556913(0x77)]&&delete _0x2f9c96[_0xa8c1e][_0x556913(0x75)][_0x556913(0x77)];}_0xa74e8({'count':_0x2f9c96['length'],'rows':_0x2f9c96});});}},_0x1310ba=jayson[_0x692475(0x7b)](_0x438fcb)['http']();_0x1310ba['on']('error',function(_0x1b37c3){const _0x12fee0=_0x692475;return logger['error'](JSON[_0x12fee0(0x6c)](_0x1b37c3)),_0x3b1928(_0x1b37c3);}),_0x1310ba['listen'](0x232b,'127.0.0.1',function(){const _0x2db5c7=_0x692475;return console[_0x2db5c7(0x73)](_0x2db5c7(0x76),0x232b),_0x13f066(_0x2db5c7(0x7a)+0x232b);});});}; \ No newline at end of file +const a1327_0x4f50=['lodash','email','values','Imap','http','stringify','then','Verified','length','127.0.0.1','account','password','Smtp','pass','error','sendMail','listen','server','log'];(function(_0x357489,_0x3cad68){const _0x4f507d=function(_0x165945){while(--_0x165945){_0x357489['push'](_0x357489['shift']());}};_0x4f507d(++_0x3cad68);}(a1327_0x4f50,0x14c));const a1327_0x1659=function(_0x357489,_0x3cad68){_0x357489=_0x357489-0xa9;let _0x4f507d=a1327_0x4f50[_0x357489];return _0x4f507d;};const a1327_0x3f861d=a1327_0x1659;'use strict';const jayson=require('jayson/promise'),_=require(a1327_0x3f861d(0xb3)),logger=require('../../../config/logger')(a1327_0x3f861d(0xb4));exports[a1327_0x3f861d(0xb0)]=function(_0x1ac236,_0x4e8855){return new Promise(function(_0x5cec03,_0x110591){const _0x32ac08=a1327_0x1659,_0x4812c5={'SendMail':function(_0x4becb4){const _0x20642b=this;return new Promise(function(_0x21c513,_0x296a23){const _0x44e358=a1327_0x1659;_0x4e8855[_0x44e358(0xaf)](_0x4becb4[_0x44e358(0xaa)],_0x4becb4['message'])[_0x44e358(0xb9)](function(_0x5c66fa){_0x21c513({'code':0xc8,'message':_0x5c66fa});})['catch'](function(_0x3c02bc){const _0x21fa24=_0x44e358;_0x296a23(_0x20642b[_0x21fa24(0xae)](0x1f4,_0x3c02bc));});});},'VerifySmtp':function(_0x5d3d45){const _0x7b79a9=this;return new Promise(function(_0x197157,_0x47791f){const _0x63a995=a1327_0x1659;_0x4e8855['verifySmtp'](_0x5d3d45[_0x63a995(0xaa)])['then'](function(){const _0x4a7f70=_0x63a995;_0x197157({'code':0xc8,'message':_0x4a7f70(0xba)});})['catch'](function(_0xd11ba0){const _0x1d8cee=_0x63a995;_0x47791f(_0x7b79a9[_0x1d8cee(0xae)](0x1f4,_0xd11ba0));});});},'MailAccounts':function(){return new Promise(function(_0xec5c19){const _0x17be72=a1327_0x1659,_0x50acf5=_[_0x17be72(0xb5)](_0x1ac236['mailAccounts']);for(let _0x26ce4f=0x0;_0x26ce4f<_0x50acf5[_0x17be72(0xbb)];_0x26ce4f+=0x1){_0x50acf5[_0x26ce4f][_0x17be72(0xb6)]&&_0x50acf5[_0x26ce4f][_0x17be72(0xb6)]['password']&&delete _0x50acf5[_0x26ce4f][_0x17be72(0xb6)][_0x17be72(0xab)],_0x50acf5[_0x26ce4f][_0x17be72(0xac)]&&_0x50acf5[_0x26ce4f][_0x17be72(0xac)][_0x17be72(0xad)]&&delete _0x50acf5[_0x26ce4f]['Smtp'][_0x17be72(0xad)];}_0xec5c19({'count':_0x50acf5['length'],'rows':_0x50acf5});});}},_0x57edf0=jayson[_0x32ac08(0xb1)](_0x4812c5)[_0x32ac08(0xb7)]();_0x57edf0['on'](_0x32ac08(0xae),function(_0x1edb7f){const _0x1c382f=_0x32ac08;return logger[_0x1c382f(0xae)](JSON[_0x1c382f(0xb8)](_0x1edb7f)),_0x110591(_0x1edb7f);}),_0x57edf0[_0x32ac08(0xb0)](0x232b,_0x32ac08(0xa9),function(){const _0x1a569b=_0x32ac08;return console[_0x1a569b(0xb2)]('Email\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!',0x232b),_0x5cec03('RPC\x20listening\x20on\x20port:'+0x232b);});});}; \ No newline at end of file diff --git a/server/services/express/index.js b/server/services/express/index.js index 690583a..e166167 100644 --- a/server/services/express/index.js +++ b/server/services/express/index.js @@ -1 +1 @@ -const a1328_0xb13b=['warn','listen','listening','Starting\x20Express\x20service...','Express\x20server\x20listening\x20on\x20port\x20%d!','../../routes','log','polling','sticky-session','../../globals','App\x20Inited\x20OK','../../config/triggers','socket.io-redis','../../rediscache','../../config/environment','adapter','Loading\x20routes...','websocket','port','createServer','../../config/express'];(function(_0x1e6a89,_0x4dde79){const _0xb13b81=function(_0x25467a){while(--_0x25467a){_0x1e6a89['push'](_0x1e6a89['shift']());}};_0xb13b81(++_0x4dde79);}(a1328_0xb13b,0xc2));const a1328_0x2546=function(_0x1e6a89,_0x4dde79){_0x1e6a89=_0x1e6a89-0x1d7;let _0xb13b81=a1328_0xb13b[_0x1e6a89];return _0xb13b81;};const a1328_0x46b849=a1328_0x2546;'use strict';require(a1328_0x46b849(0x1db));const http=require('http'),express=require('express'),sticky=require(a1328_0x46b849(0x1da)),config=require(a1328_0x46b849(0x1e0)),{getRedis}=require(a1328_0x46b849(0x1df)),{configExpress}=require(a1328_0x46b849(0x1e6)),{routes}=require(a1328_0x46b849(0x1d7)),io=require('socket.io'),socketIoRedis=require(a1328_0x46b849(0x1de)),{triggers}=require(a1328_0x46b849(0x1dd)),{socketIOConfig}=require('../../config/socketio');async function initServer(){const _0x1167ce=a1328_0x46b849;let _0x1e05ec=express();const _0x2d54a9=http[_0x1167ce(0x1e5)](_0x1e05ec);_0x2d54a9['timeout']=0xdbba0,console[_0x1167ce(0x1d8)](_0x1167ce(0x1ea));try{if(sticky[_0x1167ce(0x1e8)](_0x2d54a9,config[_0x1167ce(0x1e4)])){const _0x228420=io(_0x2d54a9,{'transports':[_0x1167ce(0x1e3),_0x1167ce(0x1d9)]});_0x228420[_0x1167ce(0x1e1)](socketIoRedis({'pubClient':getRedis(![]),'subClient':getRedis(!![])})),triggers(),socketIOConfig(_0x228420),console['log'](_0x1167ce(0x1e2)),_0x1e05ec=await routes(configExpress(_0x1e05ec)),console[_0x1167ce(0x1d8)](_0x1167ce(0x1dc));}else _0x2d54a9['once'](_0x1167ce(0x1e9),function(){const _0x179f78=_0x1167ce;console[_0x179f78(0x1d8)](_0x179f78(0x1eb),config['port']);});}catch(_0x53936b){console[_0x1167ce(0x1e7)]('Express:\x20initialization\x20error',_0x53936b);}}initServer(); \ No newline at end of file +const a1328_0x27e4=['../../routes','port','once','App\x20Inited\x20OK','../../config/environment','../../config/triggers','http','../../config/socketio','Starting\x20Express\x20service...','sticky-session','Loading\x20routes...','../../globals','../../rediscache','log','polling','websocket','Express:\x20initialization\x20error','listening','timeout','express','adapter'];(function(_0x56b793,_0x2edc22){const _0x27e48a=function(_0x1f1f7f){while(--_0x1f1f7f){_0x56b793['push'](_0x56b793['shift']());}};_0x27e48a(++_0x2edc22);}(a1328_0x27e4,0x8b));const a1328_0x1f1f=function(_0x56b793,_0x2edc22){_0x56b793=_0x56b793-0xc3;let _0x27e48a=a1328_0x27e4[_0x56b793];return _0x27e48a;};const a1328_0x4ef8d6=a1328_0x1f1f;'use strict';require(a1328_0x4ef8d6(0xd6));const http=require(a1328_0x4ef8d6(0xd1)),express=require(a1328_0x4ef8d6(0xc9)),sticky=require(a1328_0x4ef8d6(0xd4)),config=require(a1328_0x4ef8d6(0xcf)),{getRedis}=require(a1328_0x4ef8d6(0xd7)),{configExpress}=require('../../config/express'),{routes}=require(a1328_0x4ef8d6(0xcb)),io=require('socket.io'),socketIoRedis=require('socket.io-redis'),{triggers}=require(a1328_0x4ef8d6(0xd0)),{socketIOConfig}=require(a1328_0x4ef8d6(0xd2));async function initServer(){const _0x464372=a1328_0x4ef8d6;let _0x5a82fb=express();const _0x1c4a3d=http['createServer'](_0x5a82fb);_0x1c4a3d[_0x464372(0xc8)]=0xdbba0,console['log'](_0x464372(0xd3));try{if(sticky['listen'](_0x1c4a3d,config['port'])){const _0x310272=io(_0x1c4a3d,{'transports':[_0x464372(0xc5),_0x464372(0xc4)]});_0x310272[_0x464372(0xca)](socketIoRedis({'pubClient':getRedis(![]),'subClient':getRedis(!![])})),triggers(),socketIOConfig(_0x310272),console['log'](_0x464372(0xd5)),_0x5a82fb=await routes(configExpress(_0x5a82fb)),console['log'](_0x464372(0xce));}else _0x1c4a3d[_0x464372(0xcd)](_0x464372(0xc7),function(){const _0x55d789=_0x464372;console[_0x55d789(0xc3)]('Express\x20server\x20listening\x20on\x20port\x20%d!',config[_0x55d789(0xcc)]);});}catch(_0x2fdcfd){console['warn'](_0x464372(0xc6),_0x2fdcfd);}}initServer(); \ No newline at end of file diff --git a/server/services/routing/client.js b/server/services/routing/client.js index 3854864..b826fc7 100644 --- a/server/services/routing/client.js +++ b/server/services/routing/client.js @@ -1 +1 @@ -const a1329_0x6dab=['message','../../config/logger','then','debug','request','Request','rpc','error','routing','jayson/promise','client','http'];(function(_0x2d5305,_0x54c90f){const _0x6dabb3=function(_0x5d722e){while(--_0x5d722e){_0x2d5305['push'](_0x2d5305['shift']());}};_0x6dabb3(++_0x54c90f);}(a1329_0x6dab,0x171));const a1329_0x5d72=function(_0x2d5305,_0x54c90f){_0x2d5305=_0x2d5305-0xb1;let _0x6dabb3=a1329_0x6dab[_0x2d5305];return _0x6dabb3;};const a1329_0x296ced=a1329_0x5d72;'use strict';const jayson=require(a1329_0x296ced(0xb1)),logger=require(a1329_0x296ced(0xb5))(a1329_0x296ced(0xbc)),client=jayson[a1329_0x296ced(0xb2)][a1329_0x296ced(0xb3)]({'port':0x2329});client[a1329_0x296ced(0xb9)]=function(_0x20a862,_0x1ed3e1){return new Promise(function(_0x116729,_0x2e16e4){const _0x4b39a5=a1329_0x5d72;return client[_0x4b39a5(0xb8)](_0x20a862,_0x1ed3e1)[_0x4b39a5(0xb6)](function(_0x2276a7){const _0x4af988=_0x4b39a5;return logger[_0x4af988(0xb7)](_0x4af988(0xba),_0x4af988(0xbc),_0x20a862,_0x1ed3e1,_0x2276a7),_0x2276a7[_0x4af988(0xbb)]?(logger['error'](_0x4af988(0xba),_0x4af988(0xbc),_0x20a862,_0x2276a7[_0x4af988(0xbb)][_0x4af988(0xb4)],_0x1ed3e1),_0x2e16e4(_0x2276a7['error'][_0x4af988(0xb4)])):_0x116729(_0x2276a7['result']);})['catch'](function(_0x1e7373){const _0x47d8f3=_0x4b39a5;return logger[_0x47d8f3(0xbb)](_0x47d8f3(0xba),'routing',_0x20a862,_0x1e7373,_0x1ed3e1),_0x2e16e4(_0x1e7373);});});},module['exports']=client; \ No newline at end of file +const a1329_0x4b77=['rpc','client','routing','../../config/logger','http','error','Request','exports','catch','result','debug','jayson/promise'];(function(_0x284c9e,_0x30dd7b){const _0x4b7704=function(_0x2736e2){while(--_0x2736e2){_0x284c9e['push'](_0x284c9e['shift']());}};_0x4b7704(++_0x30dd7b);}(a1329_0x4b77,0x1e3));const a1329_0x2736=function(_0x284c9e,_0x30dd7b){_0x284c9e=_0x284c9e-0x136;let _0x4b7704=a1329_0x4b77[_0x284c9e];return _0x4b7704;};const a1329_0x3318f7=a1329_0x2736;'use strict';const jayson=require(a1329_0x3318f7(0x13e)),logger=require(a1329_0x3318f7(0x136))(a1329_0x3318f7(0x141)),client=jayson[a1329_0x3318f7(0x140)][a1329_0x3318f7(0x137)]({'port':0x2329});client[a1329_0x3318f7(0x139)]=function(_0x19f867,_0x3c763f){return new Promise(function(_0x21659d,_0x333140){const _0x19534b=a1329_0x2736;return client['request'](_0x19f867,_0x3c763f)['then'](function(_0x7079e0){const _0x4b23e3=a1329_0x2736;return logger[_0x4b23e3(0x13d)](_0x4b23e3(0x13f),_0x4b23e3(0x141),_0x19f867,_0x3c763f,_0x7079e0),_0x7079e0['error']?(logger[_0x4b23e3(0x138)](_0x4b23e3(0x13f),_0x4b23e3(0x141),_0x19f867,_0x7079e0['error']['message'],_0x3c763f),_0x333140(_0x7079e0[_0x4b23e3(0x138)]['message'])):_0x21659d(_0x7079e0[_0x4b23e3(0x13c)]);})[_0x19534b(0x13b)](function(_0x45e495){const _0x151461=_0x19534b;return logger[_0x151461(0x138)](_0x151461(0x13f),_0x151461(0x141),_0x19f867,_0x45e495,_0x3c763f),_0x333140(_0x45e495);});});},module[a1329_0x3318f7(0x13a)]=client; \ No newline at end of file diff --git a/server/services/routing/index.js b/server/services/routing/index.js index bc9a48c..c9ff842 100644 --- a/server/services/routing/index.js +++ b/server/services/routing/index.js @@ -1 +1 @@ -const a1330_0x29ff=['./rpc/mailQueue','./rpc/openchannelQueue','./rpc/smsQueue','getFaxQueues','resolve','getChatQueues','getSmsQueues','getWhatsappQueues','initOpenchannelQueues','getOpenchannelQueues','./rpc/interval','getAgents','initIntervals','initFaxQueues','initWhatsappQueues','then','initSmsQueues','initChatQueues','./rpc/chatQueue','./realtime','catch','./server','getMailQueues','getIntervals','initMailQueues'];(function(_0x1fbf7e,_0x4f23bd){const _0x29ff79=function(_0x5d08b3){while(--_0x5d08b3){_0x1fbf7e['push'](_0x1fbf7e['shift']());}};_0x29ff79(++_0x4f23bd);}(a1330_0x29ff,0x103));const a1330_0x5d08=function(_0x1fbf7e,_0x4f23bd){_0x1fbf7e=_0x1fbf7e-0x10d;let _0x29ff79=a1330_0x29ff[_0x1fbf7e];return _0x29ff79;};const a1330_0x10e957=a1330_0x5d08;'use strict';require('../../globals');const server=require(a1330_0x10e957(0x119)),Realtime=require(a1330_0x10e957(0x117)),user=require('./rpc/user'),interval=require(a1330_0x10e957(0x10e)),openchannelQueue=require(a1330_0x10e957(0x11e)),chatQueue=require(a1330_0x10e957(0x116)),smsQueue=require(a1330_0x10e957(0x11f)),mailQueue=require(a1330_0x10e957(0x11d)),faxQueue=require('./rpc/faxQueue'),whatsappQueue=require('./rpc/whatsappQueue'),realtime=new Realtime();function initRealtime(){const _0x100010=a1330_0x10e957;return Promise[_0x100010(0x121)]()['then'](user[_0x100010(0x10f)]())[_0x100010(0x113)](realtime['initAgents']())[_0x100010(0x113)](interval[_0x100010(0x11b)]())[_0x100010(0x113)](realtime[_0x100010(0x110)]())[_0x100010(0x113)](openchannelQueue[_0x100010(0x10d)]())['then'](realtime[_0x100010(0x125)]())[_0x100010(0x113)](chatQueue[_0x100010(0x122)]())[_0x100010(0x113)](realtime[_0x100010(0x115)]())[_0x100010(0x113)](smsQueue[_0x100010(0x123)]())[_0x100010(0x113)](realtime[_0x100010(0x114)]())['then'](mailQueue[_0x100010(0x11a)]())[_0x100010(0x113)](realtime[_0x100010(0x11c)]())[_0x100010(0x113)](faxQueue[_0x100010(0x120)]())[_0x100010(0x113)](realtime[_0x100010(0x111)]())['then'](whatsappQueue[_0x100010(0x124)]())['then'](realtime[_0x100010(0x112)]())[_0x100010(0x113)](function(){return realtime;});}function main(){const _0x5b385c=a1330_0x10e957;return server['listen'](realtime)[_0x5b385c(0x113)](function(){return initRealtime();})[_0x5b385c(0x113)](function(){return setInterval(initRealtime,0x1388);})[_0x5b385c(0x118)](function(_0x4b069f){console['log'](_0x4b069f);});}main(); \ No newline at end of file +const a1330_0x32c7=['./rpc/smsQueue','initSmsQueues','getSmsQueues','getChatQueues','initAgents','getIntervals','initWhatsappQueues','initMailQueues','listen','./rpc/mailQueue','then','initChatQueues','catch','./rpc/whatsappQueue','getAgents','./rpc/interval','./rpc/user','getMailQueues','resolve','../../globals','getOpenchannelQueues','./rpc/chatQueue','getWhatsappQueues','./rpc/faxQueue'];(function(_0x66034a,_0x27c719){const _0x32c755=function(_0x30928a){while(--_0x30928a){_0x66034a['push'](_0x66034a['shift']());}};_0x32c755(++_0x27c719);}(a1330_0x32c7,0xd0));const a1330_0x3092=function(_0x66034a,_0x27c719){_0x66034a=_0x66034a-0xd6;let _0x32c755=a1330_0x32c7[_0x66034a];return _0x32c755;};const a1330_0x41a6a8=a1330_0x3092;'use strict';require(a1330_0x41a6a8(0xd9));const server=require('./server'),Realtime=require('./realtime'),user=require(a1330_0x41a6a8(0xd6)),interval=require(a1330_0x41a6a8(0xed)),openchannelQueue=require('./rpc/openchannelQueue'),chatQueue=require(a1330_0x41a6a8(0xdb)),smsQueue=require(a1330_0x41a6a8(0xde)),mailQueue=require(a1330_0x41a6a8(0xe7)),faxQueue=require(a1330_0x41a6a8(0xdd)),whatsappQueue=require(a1330_0x41a6a8(0xeb)),realtime=new Realtime();function initRealtime(){const _0x146b0a=a1330_0x41a6a8;return Promise[_0x146b0a(0xd8)]()[_0x146b0a(0xe8)](user[_0x146b0a(0xec)]())[_0x146b0a(0xe8)](realtime[_0x146b0a(0xe2)]())[_0x146b0a(0xe8)](interval[_0x146b0a(0xe3)]())['then'](realtime['initIntervals']())[_0x146b0a(0xe8)](openchannelQueue[_0x146b0a(0xda)]())[_0x146b0a(0xe8)](realtime['initOpenchannelQueues']())['then'](chatQueue[_0x146b0a(0xe1)]())['then'](realtime[_0x146b0a(0xe9)]())['then'](smsQueue[_0x146b0a(0xe0)]())[_0x146b0a(0xe8)](realtime[_0x146b0a(0xdf)]())['then'](mailQueue[_0x146b0a(0xd7)]())['then'](realtime[_0x146b0a(0xe5)]())[_0x146b0a(0xe8)](faxQueue['getFaxQueues']())[_0x146b0a(0xe8)](realtime['initFaxQueues']())[_0x146b0a(0xe8)](whatsappQueue[_0x146b0a(0xdc)]())[_0x146b0a(0xe8)](realtime[_0x146b0a(0xe4)]())[_0x146b0a(0xe8)](function(){return realtime;});}function main(){const _0x2f755e=a1330_0x41a6a8;return server[_0x2f755e(0xe6)](realtime)[_0x2f755e(0xe8)](function(){return initRealtime();})['then'](function(){return setInterval(initRealtime,0x1388);})[_0x2f755e(0xea)](function(_0x1edb1f){console['log'](_0x1edb1f);});}main(); \ No newline at end of file diff --git a/server/services/routing/lib/rule-engine.js b/server/services/routing/lib/rule-engine.js index 7bf3dab..82414f1 100644 --- a/server/services/routing/lib/rule-engine.js +++ b/server/services/routing/lib/rule-engine.js @@ -1 +1 @@ -const a1331_0x18c2=['EventEmitter','prioritize','init','priority','isEqual','isNil','push','toString','prototype','noop','consequence','index_','call','execute','isObject','rules','lodash','name','toJSON','concat','nextTick','sync','turn','isArray','orderBy','findRules','ruleRef','inherits','events','filter','condition','register','restart','map','activeRules','length','clone','matchPath','ignoreFactChanges','next','exports'];(function(_0x432961,_0x3bc60){const _0x18c2e8=function(_0x485a00){while(--_0x485a00){_0x432961['push'](_0x432961['shift']());}};_0x18c2e8(++_0x3bc60);}(a1331_0x18c2,0x19a));const a1331_0x485a=function(_0x432961,_0x3bc60){_0x432961=_0x432961-0x1bf;let _0x18c2e8=a1331_0x18c2[_0x432961];return _0x18c2e8;};const a1331_0xbf4c25=a1331_0x485a;'use strict';const _=require(a1331_0xbf4c25(0x1cf)),util=require('util'),EventEmitter=require(a1331_0xbf4c25(0x1db))[a1331_0xbf4c25(0x1bf)];function RuleEngine(_0x468527,_0x291fa0){const _0x34a568=a1331_0xbf4c25;return this[_0x34a568(0x1c1)](),!_[_0x34a568(0x1c4)](_0x468527)&&this[_0x34a568(0x1de)](_0x468527),_0x291fa0&&(this[_0x34a568(0x1e5)]=_0x291fa0[_0x34a568(0x1e5)]),this;}util[a1331_0xbf4c25(0x1da)](RuleEngine,EventEmitter),RuleEngine['prototype'][a1331_0xbf4c25(0x1c1)]=function(){const _0x415c30=a1331_0xbf4c25;this[_0x415c30(0x1ce)]=[],this[_0x415c30(0x1e1)]=[];},RuleEngine['prototype']['register']=function(_0x14a723){const _0x10afd7=a1331_0xbf4c25;if(Array[_0x10afd7(0x1d6)](_0x14a723))this[_0x10afd7(0x1ce)]=this[_0x10afd7(0x1ce)][_0x10afd7(0x1d2)](_0x14a723);else _0x14a723!==null&&_[_0x10afd7(0x1cd)](_0x14a723)&&this['rules'][_0x10afd7(0x1c5)](_0x14a723);this['sync']();},RuleEngine[a1331_0xbf4c25(0x1c7)][a1331_0xbf4c25(0x1d4)]=function(){const _0x2141d8=a1331_0xbf4c25;this[_0x2141d8(0x1e1)]=this[_0x2141d8(0x1ce)]['filter'](function(_0x9820d3){const _0x305d0a=_0x2141d8;_[_0x305d0a(0x1c4)](_0x9820d3['on'])&&(_0x9820d3['on']=!![]);if(_0x9820d3['on']===!![])return _0x9820d3;}),this['activeRules']=_[_0x2141d8(0x1d7)](this[_0x2141d8(0x1e1)],['p'],['asc']);},RuleEngine[a1331_0xbf4c25(0x1c7)][a1331_0xbf4c25(0x1cc)]=function(_0x179066,_0x16541c){const _0x352df7=a1331_0xbf4c25;let _0x40cee3=![];_0x179066['result']=!![];const _0x5963ef=_['clone'](_0x179066);let _0x3fd9bb=_[_0x352df7(0x1e3)](_0x179066);const _0x53e9df=this['activeRules'],_0x25cb19=[],_0x48a287=this['ignoreFactChanges'];(function _0x5ab94b(_0x4f2192){const _0x528443=_0x352df7,_0x47bca5={'rules':function(){return _0x53e9df;},'rule':function(){return _0x53e9df[_0x4f2192];},'when':function(_0xc1162f){const _0x382404=a1331_0x485a;if(_0xc1162f){const _0x3509b5=_0x53e9df[_0x4f2192][_0x382404(0x1c9)];_0x3509b5[_0x382404(0x1d9)]=_0x53e9df[_0x4f2192]['id']||_0x53e9df[_0x4f2192][_0x382404(0x1d0)]||_0x382404(0x1ca)+_0x4f2192,process[_0x382404(0x1d3)](function(){const _0x1d8fd3=_0x382404;_0x25cb19[_0x1d8fd3(0x1c5)](_0x3509b5['ruleRef']),_0x3509b5[_0x1d8fd3(0x1cb)](_0x5963ef,_0x47bca5);});}else process['nextTick'](function(){const _0x3878a7=_0x382404;_0x47bca5[_0x3878a7(0x1e6)]();});},'restart':function(){return _0x5ab94b(0x0);},'stop':function(){return _0x40cee3=!![],_0x5ab94b(0x0);},'next':function(_0x4b610e){const _0x398fbd=a1331_0x485a;!_0x48a287&&!_[_0x398fbd(0x1c3)](_0x3fd9bb,_0x5963ef)?(_0x3fd9bb=_['clone'](_0x5963ef),process[_0x398fbd(0x1d3)](function(){const _0x2d0e19=_0x398fbd;_0x47bca5[_0x2d0e19(0x1df)]();})):process[_0x398fbd(0x1d3)](function(){const _0x53c20=_0x398fbd;return _[_0x53c20(0x1c4)](_0x4b610e)?_0x5ab94b(_0x4f2192+0x1):_0x5ab94b(_0x4b610e);});}};if(_0x4f2192<_0x53e9df[_0x528443(0x1e2)]&&_0x40cee3===![]){const _0x715bfd=_0x53e9df[_0x4f2192][_0x528443(0x1dd)];_0x715bfd['call'](_0x5963ef,_0x47bca5);}else process[_0x528443(0x1d3)](function(){const _0x187a7c=_0x528443;return _0x5963ef[_0x187a7c(0x1e4)]=_0x25cb19,_0x16541c?_0x16541c(_0x5963ef):_[_0x187a7c(0x1c8)]();});}(0x0));},RuleEngine[a1331_0xbf4c25(0x1c7)][a1331_0xbf4c25(0x1d8)]=function(_0x271653){const _0x52b22d=a1331_0xbf4c25;if(_[_0x52b22d(0x1c4)](_0x271653))return this[_0x52b22d(0x1ce)];else{const _0x5cf8b5=_['matches'](_0x271653);return _[_0x52b22d(0x1dc)](this[_0x52b22d(0x1ce)],_0x5cf8b5);}},RuleEngine[a1331_0xbf4c25(0x1c7)][a1331_0xbf4c25(0x1d5)]=function(_0x494b36,_0x5a5172){const _0x5584ef=_0x494b36==='on'||_0x494b36==='ON'?!![]:![],_0x33b4f9=this['findRules'](_0x5a5172);for(let _0x3335da=0x0,_0x3381ce=_0x33b4f9['length'];_0x3335da<_0x3381ce;_0x3335da+=0x1){_0x33b4f9[_0x3335da]['on']=_0x5584ef;}this['sync']();},RuleEngine[a1331_0xbf4c25(0x1c7)][a1331_0xbf4c25(0x1c0)]=function(_0x1aa843,_0x31f8dc){const _0x5273a2=a1331_0xbf4c25;_0x1aa843=parseInt(_0x1aa843,0xa);const _0x228d2c=this[_0x5273a2(0x1d8)](_0x31f8dc);for(let _0x46707c=0x0,_0x476c98=_0x228d2c['length'];_0x46707c<_0x476c98;_0x46707c+=0x1){_0x228d2c[_0x46707c][_0x5273a2(0x1c2)]=_0x1aa843;}this[_0x5273a2(0x1d4)]();},RuleEngine['prototype'][a1331_0xbf4c25(0x1d1)]=function(){const _0x2834ef=a1331_0xbf4c25;let _0x549c9a=this[_0x2834ef(0x1ce)];if(_0x549c9a instanceof Array)_0x549c9a=_0x549c9a[_0x2834ef(0x1e0)](function(_0x14000d){const _0x2feb5d=_0x2834ef;return _0x14000d[_0x2feb5d(0x1dd)]=_0x14000d[_0x2feb5d(0x1dd)][_0x2feb5d(0x1c6)](),_0x14000d[_0x2feb5d(0x1c9)]=_0x14000d['consequence']['toString'](),_0x14000d;});else!_[_0x2834ef(0x1c4)](_0x549c9a)&&(_0x549c9a['condition']=_0x549c9a['condition'][_0x2834ef(0x1c6)](),_0x549c9a[_0x2834ef(0x1c9)]=_0x549c9a[_0x2834ef(0x1c9)][_0x2834ef(0x1c6)]());return _0x549c9a;},RuleEngine['prototype']['fromJSON']=function(_0xb4a678){const _0x311fbe=a1331_0xbf4c25;this[_0x311fbe(0x1c1)]();_['isString'](_0xb4a678)&&(_0xb4a678=JSON['parse'](_0xb4a678));if(_0xb4a678 instanceof Array)_0xb4a678=_0xb4a678['map'](function(_0xc2f280){const _0x3e0522=_0x311fbe;return _0xc2f280[_0x3e0522(0x1dd)]=eval('('+_0xc2f280[_0x3e0522(0x1dd)]+')'),_0xc2f280['consequence']=eval('('+_0xc2f280[_0x3e0522(0x1c9)]+')'),_0xc2f280;});else _0xb4a678!==null&&typeof _0xb4a678=='object'&&(_0xb4a678[_0x311fbe(0x1dd)]=eval('('+_0xb4a678[_0x311fbe(0x1dd)]+')'),_0xb4a678['consequence']=eval('('+_0xb4a678[_0x311fbe(0x1c9)]+')'));this[_0x311fbe(0x1de)](_0xb4a678);},module[a1331_0xbf4c25(0x1e7)]=RuleEngine; \ No newline at end of file +const a1331_0x1781=['exports','consequence','toString','filter','ruleRef','util','nextTick','toJSON','isNil','next','prioritize','findRules','rules','register','init','name','parse','isObject','matches','events','isEqual','fromJSON','concat','object','condition','noop','sync','clone','prototype','push','ignoreFactChanges','matchPath','isArray','length','priority','map','activeRules','call'];(function(_0x1733cf,_0xed576b){const _0x178162=function(_0x3bcaab){while(--_0x3bcaab){_0x1733cf['push'](_0x1733cf['shift']());}};_0x178162(++_0xed576b);}(a1331_0x1781,0x1ea));const a1331_0x3bca=function(_0x1733cf,_0xed576b){_0x1733cf=_0x1733cf-0x19e;let _0x178162=a1331_0x1781[_0x1733cf];return _0x178162;};const a1331_0xd2dbff=a1331_0x3bca;'use strict';const _=require('lodash'),util=require(a1331_0xd2dbff(0x1a7)),EventEmitter=require(a1331_0xd2dbff(0x1b5))['EventEmitter'];function RuleEngine(_0x210bf9,_0x514aea){const _0x7108fa=a1331_0xd2dbff;return this[_0x7108fa(0x1b0)](),!_[_0x7108fa(0x1aa)](_0x210bf9)&&this[_0x7108fa(0x1af)](_0x210bf9),_0x514aea&&(this['ignoreFactChanges']=_0x514aea[_0x7108fa(0x1c0)]),this;}util['inherits'](RuleEngine,EventEmitter),RuleEngine[a1331_0xd2dbff(0x1be)]['init']=function(){const _0x23a990=a1331_0xd2dbff;this[_0x23a990(0x1ae)]=[],this['activeRules']=[];},RuleEngine[a1331_0xd2dbff(0x1be)][a1331_0xd2dbff(0x1af)]=function(_0x131f00){const _0x4dc888=a1331_0xd2dbff;if(Array[_0x4dc888(0x1c2)](_0x131f00))this[_0x4dc888(0x1ae)]=this['rules'][_0x4dc888(0x1b8)](_0x131f00);else _0x131f00!==null&&_[_0x4dc888(0x1b3)](_0x131f00)&&this['rules'][_0x4dc888(0x1bf)](_0x131f00);this[_0x4dc888(0x1bc)]();},RuleEngine[a1331_0xd2dbff(0x1be)][a1331_0xd2dbff(0x1bc)]=function(){const _0x52f9da=a1331_0xd2dbff;this[_0x52f9da(0x1a0)]=this[_0x52f9da(0x1ae)][_0x52f9da(0x1a5)](function(_0x3e6ecc){const _0x12a7dd=_0x52f9da;_[_0x12a7dd(0x1aa)](_0x3e6ecc['on'])&&(_0x3e6ecc['on']=!![]);if(_0x3e6ecc['on']===!![])return _0x3e6ecc;}),this[_0x52f9da(0x1a0)]=_['orderBy'](this['activeRules'],['p'],['asc']);},RuleEngine[a1331_0xd2dbff(0x1be)]['execute']=function(_0x3dafa8,_0x35201f){const _0x49084d=a1331_0xd2dbff;let _0x4bbfb1=![];_0x3dafa8['result']=!![];const _0x706fcd=_['clone'](_0x3dafa8);let _0x4ab253=_[_0x49084d(0x1bd)](_0x3dafa8);const _0x232d41=this['activeRules'],_0x2c17bb=[],_0x20a0ad=this['ignoreFactChanges'];(function _0x4e5a84(_0x53a913){const _0x5caa38=_0x49084d,_0x1377da={'rules':function(){return _0x232d41;},'rule':function(){return _0x232d41[_0x53a913];},'when':function(_0x4cc45e){const _0x5f55ae=a1331_0x3bca;if(_0x4cc45e){const _0x1860bc=_0x232d41[_0x53a913][_0x5f55ae(0x1a3)];_0x1860bc[_0x5f55ae(0x1a6)]=_0x232d41[_0x53a913]['id']||_0x232d41[_0x53a913][_0x5f55ae(0x1b1)]||'index_'+_0x53a913,process['nextTick'](function(){const _0x12fbf1=_0x5f55ae;_0x2c17bb[_0x12fbf1(0x1bf)](_0x1860bc[_0x12fbf1(0x1a6)]),_0x1860bc[_0x12fbf1(0x1a1)](_0x706fcd,_0x1377da);});}else process['nextTick'](function(){const _0x179e2f=_0x5f55ae;_0x1377da[_0x179e2f(0x1ab)]();});},'restart':function(){return _0x4e5a84(0x0);},'stop':function(){return _0x4bbfb1=!![],_0x4e5a84(0x0);},'next':function(_0xcb3824){const _0x35ae1c=a1331_0x3bca;!_0x20a0ad&&!_[_0x35ae1c(0x1b6)](_0x4ab253,_0x706fcd)?(_0x4ab253=_[_0x35ae1c(0x1bd)](_0x706fcd),process['nextTick'](function(){_0x1377da['restart']();})):process[_0x35ae1c(0x1a8)](function(){const _0x553c1b=_0x35ae1c;return _[_0x553c1b(0x1aa)](_0xcb3824)?_0x4e5a84(_0x53a913+0x1):_0x4e5a84(_0xcb3824);});}};if(_0x53a913<_0x232d41[_0x5caa38(0x1c3)]&&_0x4bbfb1===![]){const _0x35e580=_0x232d41[_0x53a913][_0x5caa38(0x1ba)];_0x35e580['call'](_0x706fcd,_0x1377da);}else process[_0x5caa38(0x1a8)](function(){const _0x25671d=_0x5caa38;return _0x706fcd[_0x25671d(0x1c1)]=_0x2c17bb,_0x35201f?_0x35201f(_0x706fcd):_[_0x25671d(0x1bb)]();});}(0x0));},RuleEngine['prototype']['findRules']=function(_0x4da6f0){const _0x1e168d=a1331_0xd2dbff;if(_[_0x1e168d(0x1aa)](_0x4da6f0))return this[_0x1e168d(0x1ae)];else{const _0x1ccd80=_[_0x1e168d(0x1b4)](_0x4da6f0);return _['filter'](this[_0x1e168d(0x1ae)],_0x1ccd80);}},RuleEngine[a1331_0xd2dbff(0x1be)]['turn']=function(_0x5ae650,_0x4b91b6){const _0x1208f6=a1331_0xd2dbff,_0x2a37a3=_0x5ae650==='on'||_0x5ae650==='ON'?!![]:![],_0x3b216f=this[_0x1208f6(0x1ad)](_0x4b91b6);for(let _0x242027=0x0,_0x51b76b=_0x3b216f[_0x1208f6(0x1c3)];_0x242027<_0x51b76b;_0x242027+=0x1){_0x3b216f[_0x242027]['on']=_0x2a37a3;}this[_0x1208f6(0x1bc)]();},RuleEngine[a1331_0xd2dbff(0x1be)][a1331_0xd2dbff(0x1ac)]=function(_0x22744b,_0x551123){const _0x4d89f8=a1331_0xd2dbff;_0x22744b=parseInt(_0x22744b,0xa);const _0x2768bc=this[_0x4d89f8(0x1ad)](_0x551123);for(let _0xd942f0=0x0,_0x27921a=_0x2768bc[_0x4d89f8(0x1c3)];_0xd942f0<_0x27921a;_0xd942f0+=0x1){_0x2768bc[_0xd942f0][_0x4d89f8(0x19e)]=_0x22744b;}this[_0x4d89f8(0x1bc)]();},RuleEngine[a1331_0xd2dbff(0x1be)][a1331_0xd2dbff(0x1a9)]=function(){const _0x40bde8=a1331_0xd2dbff;let _0x7b62b3=this[_0x40bde8(0x1ae)];if(_0x7b62b3 instanceof Array)_0x7b62b3=_0x7b62b3[_0x40bde8(0x19f)](function(_0x5a7e2f){const _0x1a6bbb=_0x40bde8;return _0x5a7e2f[_0x1a6bbb(0x1ba)]=_0x5a7e2f[_0x1a6bbb(0x1ba)][_0x1a6bbb(0x1a4)](),_0x5a7e2f[_0x1a6bbb(0x1a3)]=_0x5a7e2f[_0x1a6bbb(0x1a3)][_0x1a6bbb(0x1a4)](),_0x5a7e2f;});else!_[_0x40bde8(0x1aa)](_0x7b62b3)&&(_0x7b62b3[_0x40bde8(0x1ba)]=_0x7b62b3[_0x40bde8(0x1ba)][_0x40bde8(0x1a4)](),_0x7b62b3['consequence']=_0x7b62b3[_0x40bde8(0x1a3)][_0x40bde8(0x1a4)]());return _0x7b62b3;},RuleEngine[a1331_0xd2dbff(0x1be)][a1331_0xd2dbff(0x1b7)]=function(_0x22fc92){const _0x354c02=a1331_0xd2dbff;this[_0x354c02(0x1b0)]();_['isString'](_0x22fc92)&&(_0x22fc92=JSON[_0x354c02(0x1b2)](_0x22fc92));if(_0x22fc92 instanceof Array)_0x22fc92=_0x22fc92[_0x354c02(0x19f)](function(_0x3496e9){const _0x34efd3=_0x354c02;return _0x3496e9['condition']=eval('('+_0x3496e9[_0x34efd3(0x1ba)]+')'),_0x3496e9['consequence']=eval('('+_0x3496e9[_0x34efd3(0x1a3)]+')'),_0x3496e9;});else _0x22fc92!==null&&typeof _0x22fc92==_0x354c02(0x1b9)&&(_0x22fc92[_0x354c02(0x1ba)]=eval('('+_0x22fc92[_0x354c02(0x1ba)]+')'),_0x22fc92[_0x354c02(0x1a3)]=eval('('+_0x22fc92[_0x354c02(0x1a3)]+')'));this[_0x354c02(0x1af)](_0x22fc92);},module[a1331_0xd2dbff(0x1a2)]=RuleEngine; \ No newline at end of file diff --git a/server/services/routing/mailRpc/index.js b/server/services/routing/mailRpc/index.js index 4c2a5f5..aee5e78 100644 --- a/server/services/routing/mailRpc/index.js +++ b/server/services/routing/mailRpc/index.js @@ -1 +1 @@ -const a1332_0x3cf8=['sendMailMessage','result','request','message','http','catch','jayson/promise','SendMail','error','client','then'];(function(_0x3e07b4,_0x4d7172){const _0x3cf8e3=function(_0x109cdd){while(--_0x109cdd){_0x3e07b4['push'](_0x3e07b4['shift']());}};_0x3cf8e3(++_0x4d7172);}(a1332_0x3cf8,0x103));const a1332_0x109c=function(_0x3e07b4,_0x4d7172){_0x3e07b4=_0x3e07b4-0x14f;let _0x3cf8e3=a1332_0x3cf8[_0x3e07b4];return _0x3cf8e3;};const a1332_0x5ead91=a1332_0x109c;'use strict';const jayson=require(a1332_0x5ead91(0x14f)),client=jayson[a1332_0x5ead91(0x152)][a1332_0x5ead91(0x158)]({'port':0x232b});function request(_0x315c50,_0x148623){return new Promise(function(_0x4b6d3a,_0x39f0c7){const _0x399172=a1332_0x109c;return client[_0x399172(0x156)](_0x315c50,_0x148623)[_0x399172(0x153)](function(_0x5b44c9){const _0x562b25=_0x399172;return _0x5b44c9[_0x562b25(0x151)]?_0x39f0c7(_0x5b44c9[_0x562b25(0x151)][_0x562b25(0x157)]):_0x4b6d3a(_0x5b44c9[_0x562b25(0x155)]);})[_0x399172(0x159)](function(_0x4ae5d1){return _0x39f0c7(_0x4ae5d1);});});}exports[a1332_0x5ead91(0x154)]=function(_0x306570,_0x37f960){const _0x4ef201=a1332_0x5ead91;return request(_0x4ef201(0x150),{'account':_0x306570,'message':_0x37f960});}; \ No newline at end of file +const a1332_0x206a=['jayson/promise','sendMailMessage','result','request','client','then','SendMail','message','error','catch'];(function(_0x3c29a9,_0x4c1ede){const _0x206a3f=function(_0x22d1d3){while(--_0x22d1d3){_0x3c29a9['push'](_0x3c29a9['shift']());}};_0x206a3f(++_0x4c1ede);}(a1332_0x206a,0x189));const a1332_0x22d1=function(_0x3c29a9,_0x4c1ede){_0x3c29a9=_0x3c29a9-0x1c2;let _0x206a3f=a1332_0x206a[_0x3c29a9];return _0x206a3f;};const a1332_0x54ad17=a1332_0x22d1;'use strict';const jayson=require(a1332_0x54ad17(0x1c9)),client=jayson[a1332_0x54ad17(0x1c3)]['http']({'port':0x232b});function request(_0x5cdf6b,_0x1472db){return new Promise(function(_0x1e4aaa,_0x3dc407){const _0x28f0b4=a1332_0x22d1;return client[_0x28f0b4(0x1c2)](_0x5cdf6b,_0x1472db)[_0x28f0b4(0x1c4)](function(_0x311c64){const _0x1115df=_0x28f0b4;return _0x311c64[_0x1115df(0x1c7)]?_0x3dc407(_0x311c64[_0x1115df(0x1c7)][_0x1115df(0x1c6)]):_0x1e4aaa(_0x311c64[_0x1115df(0x1cb)]);})[_0x28f0b4(0x1c8)](function(_0x5a3283){return _0x3dc407(_0x5a3283);});});}exports[a1332_0x54ad17(0x1ca)]=function(_0x3a0eda,_0x19df76){const _0x4bbb70=a1332_0x54ad17;return request(_0x4bbb70(0x1c5),{'account':_0x3a0eda,'message':_0x19df76});}; \ No newline at end of file diff --git a/server/services/routing/model/agent.js b/server/services/routing/model/agent.js index f0be86c..6bd7c1d 100644 --- a/server/services/routing/model/agent.js +++ b/server/services/routing/model/agent.js @@ -1 +1 @@ -const a1333_0x1a0b=['openchannel','chat','length','chatPause','smsStatus','mail','emit','name','sms','faxCapacity','smsPause','openchannelStatus','mailStatusTime','voicePause','whatsappCapacity','Status','smsStatusTime','mailPause','busy','faxStatusTime','chatStatusTime','faxCurrentCapacity','openchannelPause','prototype','toNumber','mailStatus','whatsappCurrentCapacity','openchannelCapacity','openchannelCurrentCapacity','faxPause','whatsappStatusTime','fax','lodash','getChannelStatus','faxStatus','StatusTime','idle','whatsappStatus','smsCapacity','user:save','CurrentCapacity','unknown','mailCurrentCapacity','md5','exports','whatsapp','busyQueue','chatStatus','online','mailCapacity','../../../rediscache','openchannelStatusTime','chatCapacity','updateRealtime','chatCurrentCapacity'];(function(_0xc9459c,_0x120421){const _0x1a0b21=function(_0x4e7ecd){while(--_0x4e7ecd){_0xc9459c['push'](_0xc9459c['shift']());}};_0x1a0b21(++_0x120421);}(a1333_0x1a0b,0x159));const a1333_0x4e7e=function(_0xc9459c,_0x120421){_0xc9459c=_0xc9459c-0x11b;let _0x1a0b21=a1333_0x1a0b[_0xc9459c];return _0x1a0b21;};const a1333_0x5525ee=a1333_0x4e7e;'use strict';const _=require(a1333_0x5525ee(0x12c)),moment=require('moment'),md5=require(a1333_0x5525ee(0x137)),{getSocket}=require(a1333_0x5525ee(0x13e)),io=getSocket();function Agent(_0x4dbdac){const _0x37ab6c=a1333_0x5525ee;this['id']=_0x4dbdac['id']||0x0,this[_0x37ab6c(0x14a)]=_0x4dbdac[_0x37ab6c(0x14a)]||'',this[_0x37ab6c(0x13c)]=_0x4dbdac[_0x37ab6c(0x13c)]||!![],this[_0x37ab6c(0x150)]=_0x4dbdac['voicePause']||![],this['chatPause']=_0x4dbdac[_0x37ab6c(0x146)]||![],this[_0x37ab6c(0x11d)]=_0x4dbdac[_0x37ab6c(0x11d)]||![],this[_0x37ab6c(0x129)]=_0x4dbdac[_0x37ab6c(0x129)]||![],this['smsPause']=_0x4dbdac[_0x37ab6c(0x14d)]||![],this[_0x37ab6c(0x122)]=_0x4dbdac[_0x37ab6c(0x122)]||![],this[_0x37ab6c(0x13b)]=_0x37ab6c(0x135),this[_0x37ab6c(0x120)]=0x0,this[_0x37ab6c(0x140)]=_0x4dbdac[_0x37ab6c(0x140)]||0x0,this[_0x37ab6c(0x142)]=0x0,this['mailStatus']=_0x37ab6c(0x135),this[_0x37ab6c(0x14f)]=0x0,this[_0x37ab6c(0x13d)]=_0x4dbdac[_0x37ab6c(0x13d)]||0x0,this[_0x37ab6c(0x136)]=0x0,this[_0x37ab6c(0x12e)]='unknown',this['faxStatusTime']=0x0,this[_0x37ab6c(0x14c)]=_0x4dbdac[_0x37ab6c(0x14c)]||0x0,this[_0x37ab6c(0x121)]=0x0,this[_0x37ab6c(0x147)]=_0x37ab6c(0x135),this['smsStatusTime']=0x0,this['smsCapacity']=_0x4dbdac[_0x37ab6c(0x132)]||0x0,this['smsCurrentCapacity']=0x0,this[_0x37ab6c(0x131)]=_0x37ab6c(0x135),this[_0x37ab6c(0x12a)]=0x0,this[_0x37ab6c(0x151)]=_0x4dbdac[_0x37ab6c(0x151)]||0x0,this[_0x37ab6c(0x126)]=0x0,this[_0x37ab6c(0x14e)]=_0x37ab6c(0x135),this[_0x37ab6c(0x13f)]=0x0,this[_0x37ab6c(0x127)]=_0x4dbdac['openchannelCapacity']||0x0,this['openchannelCurrentCapacity']=0x0,this[_0x37ab6c(0x11e)]=![],this[_0x37ab6c(0x13a)]=undefined,this[_0x37ab6c(0x137)]='',this[_0x37ab6c(0x141)]();}Agent[a1333_0x5525ee(0x123)]['getChannelStatus']=function(_0x982b0d){const _0x2cca1d=a1333_0x5525ee;return this[_0x982b0d+_0x2cca1d(0x134)]>0x0?this[_0x982b0d+'Capacity']>0x0&&this[_0x982b0d+'CurrentCapacity']>=this[_0x982b0d+'Capacity']?'maxcapacity':'working':_0x2cca1d(0x130);},Agent[a1333_0x5525ee(0x123)]['updateRealtime']=function(){const _0x4f5298=a1333_0x5525ee,_0x3780b6=[_0x4f5298(0x148),_0x4f5298(0x144),_0x4f5298(0x143),_0x4f5298(0x12b),_0x4f5298(0x14b),_0x4f5298(0x139)];for(let _0x97c515=0x0;_0x97c515<_0x3780b6[_0x4f5298(0x145)];_0x97c515+=0x1){const _0x29d0ea=this[_0x4f5298(0x12d)](_0x3780b6[_0x97c515]);this[_0x3780b6[_0x97c515]+_0x4f5298(0x11b)]!==_0x29d0ea&&(this[_0x3780b6[_0x97c515]+_0x4f5298(0x12f)]=_[_0x4f5298(0x124)](moment()['format']('x'))),this[_0x3780b6[_0x97c515]+_0x4f5298(0x11b)]=_0x29d0ea;}const _0x5af9f5={'id':this['id'],'name':this[_0x4f5298(0x14a)],'online':this[_0x4f5298(0x13c)],'voicePause':this[_0x4f5298(0x150)],'chatPause':this[_0x4f5298(0x146)],'mailPause':this['mailPause'],'smsPause':this['smsPause'],'faxPause':this[_0x4f5298(0x129)],'openchannelPause':this[_0x4f5298(0x122)],'chatStatus':this['chatStatus'],'chatStatusTime':this['chatStatusTime'],'chatCapacity':this[_0x4f5298(0x140)],'chatCurrentCapacity':this[_0x4f5298(0x142)],'mailStatus':this[_0x4f5298(0x125)],'mailStatusTime':this[_0x4f5298(0x14f)],'mailCapacity':this[_0x4f5298(0x13d)],'mailCurrentCapacity':this[_0x4f5298(0x136)],'faxStatus':this[_0x4f5298(0x12e)],'faxStatusTime':this[_0x4f5298(0x11f)],'faxCapacity':this[_0x4f5298(0x14c)],'faxCurrentCapacity':this[_0x4f5298(0x121)],'smsStatus':this[_0x4f5298(0x147)],'smsStatusTime':this[_0x4f5298(0x11c)],'smsCapacity':this[_0x4f5298(0x132)],'smsCurrentCapacity':this['smsCurrentCapacity'],'whatsappStatus':this[_0x4f5298(0x131)],'whatsappStatusTime':this[_0x4f5298(0x12a)],'whatsappCapacity':this[_0x4f5298(0x151)],'whatsappCurrentCapacity':this[_0x4f5298(0x126)],'openchannelStatus':this['openchannelStatus'],'openchannelStatusTime':this[_0x4f5298(0x13f)],'openchannelCapacity':this[_0x4f5298(0x127)],'openchannelCurrentCapacity':this[_0x4f5298(0x128)],'busy':this['busy'],'busyQueue':this[_0x4f5298(0x13a)]},_0x12cbc6=md5(JSON['stringify'](_0x5af9f5));this['md5']!==_0x12cbc6&&(this[_0x4f5298(0x137)]=_0x12cbc6,io[_0x4f5298(0x149)](_0x4f5298(0x133),_0x5af9f5));},module[a1333_0x5525ee(0x138)]=Agent; \ No newline at end of file +const a1333_0x47ec=['toNumber','moment','faxPause','whatsappStatusTime','whatsappCurrentCapacity','format','length','smsPause','chat','whatsappStatus','busyQueue','chatCapacity','chatStatus','name','faxStatusTime','mailStatus','faxCapacity','online','user:save','unknown','openchannelCapacity','stringify','mail','../../../rediscache','StatusTime','prototype','lodash','openchannelStatus','openchannelPause','mailPause','openchannel','fax','Capacity','smsStatus','mailCurrentCapacity','busy','openchannelCurrentCapacity','Status','voicePause','sms','maxcapacity','chatPause','updateRealtime','smsStatusTime','openchannelStatusTime','mailStatusTime','whatsappCapacity','chatStatusTime','getChannelStatus','smsCapacity','faxCurrentCapacity','md5','CurrentCapacity','smsCurrentCapacity','faxStatus'];(function(_0x182a5d,_0x556504){const _0x47ecd5=function(_0x42ff50){while(--_0x42ff50){_0x182a5d['push'](_0x182a5d['shift']());}};_0x47ecd5(++_0x556504);}(a1333_0x47ec,0xf8));const a1333_0x42ff=function(_0x182a5d,_0x556504){_0x182a5d=_0x182a5d-0x1de;let _0x47ecd5=a1333_0x47ec[_0x182a5d];return _0x47ecd5;};const a1333_0x6d9e31=a1333_0x42ff;'use strict';const _=require(a1333_0x6d9e31(0x213)),moment=require(a1333_0x6d9e31(0x1fa)),md5=require(a1333_0x6d9e31(0x1f5)),{getSocket}=require(a1333_0x6d9e31(0x210)),io=getSocket();function Agent(_0x380623){const _0x140c47=a1333_0x6d9e31;this['id']=_0x380623['id']||0x0,this[_0x140c47(0x206)]=_0x380623['name']||'',this[_0x140c47(0x20a)]=_0x380623['online']||!![],this['voicePause']=_0x380623[_0x140c47(0x1e8)]||![],this[_0x140c47(0x1eb)]=_0x380623[_0x140c47(0x1eb)]||![],this[_0x140c47(0x1df)]=_0x380623[_0x140c47(0x1df)]||![],this[_0x140c47(0x1fb)]=_0x380623[_0x140c47(0x1fb)]||![],this[_0x140c47(0x200)]=_0x380623[_0x140c47(0x200)]||![],this['openchannelPause']=_0x380623['openchannelPause']||![],this[_0x140c47(0x205)]=_0x140c47(0x20c),this[_0x140c47(0x1f1)]=0x0,this[_0x140c47(0x204)]=_0x380623['chatCapacity']||0x0,this['chatCurrentCapacity']=0x0,this[_0x140c47(0x208)]=_0x140c47(0x20c),this[_0x140c47(0x1ef)]=0x0,this['mailCapacity']=_0x380623['mailCapacity']||0x0,this[_0x140c47(0x1e4)]=0x0,this[_0x140c47(0x1f8)]=_0x140c47(0x20c),this[_0x140c47(0x207)]=0x0,this[_0x140c47(0x209)]=_0x380623[_0x140c47(0x209)]||0x0,this[_0x140c47(0x1f4)]=0x0,this[_0x140c47(0x1e3)]=_0x140c47(0x20c),this['smsStatusTime']=0x0,this[_0x140c47(0x1f3)]=_0x380623['smsCapacity']||0x0,this[_0x140c47(0x1f7)]=0x0,this[_0x140c47(0x202)]='unknown',this[_0x140c47(0x1fc)]=0x0,this[_0x140c47(0x1f0)]=_0x380623[_0x140c47(0x1f0)]||0x0,this['whatsappCurrentCapacity']=0x0,this[_0x140c47(0x214)]=_0x140c47(0x20c),this[_0x140c47(0x1ee)]=0x0,this[_0x140c47(0x20d)]=_0x380623['openchannelCapacity']||0x0,this[_0x140c47(0x1e6)]=0x0,this['busy']=![],this[_0x140c47(0x203)]=undefined,this[_0x140c47(0x1f5)]='',this[_0x140c47(0x1ec)]();}Agent['prototype'][a1333_0x6d9e31(0x1f2)]=function(_0x43350b){const _0x458fcf=a1333_0x6d9e31;return this[_0x43350b+_0x458fcf(0x1f6)]>0x0?this[_0x43350b+_0x458fcf(0x1e2)]>0x0&&this[_0x43350b+'CurrentCapacity']>=this[_0x43350b+_0x458fcf(0x1e2)]?_0x458fcf(0x1ea):'working':'idle';},Agent[a1333_0x6d9e31(0x212)][a1333_0x6d9e31(0x1ec)]=function(){const _0x488e5c=a1333_0x6d9e31,_0x3faa66=[_0x488e5c(0x20f),_0x488e5c(0x201),_0x488e5c(0x1e0),_0x488e5c(0x1e1),_0x488e5c(0x1e9),'whatsapp'];for(let _0x59264c=0x0;_0x59264c<_0x3faa66[_0x488e5c(0x1ff)];_0x59264c+=0x1){const _0x12b722=this[_0x488e5c(0x1f2)](_0x3faa66[_0x59264c]);this[_0x3faa66[_0x59264c]+_0x488e5c(0x1e7)]!==_0x12b722&&(this[_0x3faa66[_0x59264c]+_0x488e5c(0x211)]=_[_0x488e5c(0x1f9)](moment()[_0x488e5c(0x1fe)]('x'))),this[_0x3faa66[_0x59264c]+_0x488e5c(0x1e7)]=_0x12b722;}const _0x466a7f={'id':this['id'],'name':this['name'],'online':this['online'],'voicePause':this[_0x488e5c(0x1e8)],'chatPause':this[_0x488e5c(0x1eb)],'mailPause':this[_0x488e5c(0x1df)],'smsPause':this[_0x488e5c(0x200)],'faxPause':this['faxPause'],'openchannelPause':this[_0x488e5c(0x1de)],'chatStatus':this[_0x488e5c(0x205)],'chatStatusTime':this[_0x488e5c(0x1f1)],'chatCapacity':this['chatCapacity'],'chatCurrentCapacity':this['chatCurrentCapacity'],'mailStatus':this[_0x488e5c(0x208)],'mailStatusTime':this[_0x488e5c(0x1ef)],'mailCapacity':this['mailCapacity'],'mailCurrentCapacity':this['mailCurrentCapacity'],'faxStatus':this['faxStatus'],'faxStatusTime':this[_0x488e5c(0x207)],'faxCapacity':this[_0x488e5c(0x209)],'faxCurrentCapacity':this['faxCurrentCapacity'],'smsStatus':this['smsStatus'],'smsStatusTime':this[_0x488e5c(0x1ed)],'smsCapacity':this['smsCapacity'],'smsCurrentCapacity':this[_0x488e5c(0x1f7)],'whatsappStatus':this[_0x488e5c(0x202)],'whatsappStatusTime':this[_0x488e5c(0x1fc)],'whatsappCapacity':this[_0x488e5c(0x1f0)],'whatsappCurrentCapacity':this[_0x488e5c(0x1fd)],'openchannelStatus':this[_0x488e5c(0x214)],'openchannelStatusTime':this[_0x488e5c(0x1ee)],'openchannelCapacity':this['openchannelCapacity'],'openchannelCurrentCapacity':this['openchannelCurrentCapacity'],'busy':this[_0x488e5c(0x1e5)],'busyQueue':this[_0x488e5c(0x203)]},_0x5d8fb3=md5(JSON[_0x488e5c(0x20e)](_0x466a7f));this[_0x488e5c(0x1f5)]!==_0x5d8fb3&&(this[_0x488e5c(0x1f5)]=_0x5d8fb3,io['emit'](_0x488e5c(0x20b),_0x466a7f));},module['exports']=Agent; \ No newline at end of file diff --git a/server/services/routing/model/chatQueue.js b/server/services/routing/model/chatQueue.js index db0089d..6d7d8a2 100644 --- a/server/services/routing/model/chatQueue.js +++ b/server/services/routing/model/chatQueue.js @@ -1 +1 @@ -const a1334_0x4fe5=['paused','util','waiting','chat_queue:save','emit','timeout','prototype','online','stringify','chat:queue:%s','lodash','name','available','md5','chatPause','updateRealtime','Agents','map','strategy','length','_rr','exports','loggedIn','mapAgentsId','beepall','updateRouting'];(function(_0x20254a,_0x5e24af){const _0x4fe5d7=function(_0xa0f3af){while(--_0xa0f3af){_0x20254a['push'](_0x20254a['shift']());}};_0x4fe5d7(++_0x5e24af);}(a1334_0x4fe5,0x1c5));const a1334_0xa0f3=function(_0x20254a,_0x5e24af){_0x20254a=_0x20254a-0x115;let _0x4fe5d7=a1334_0x4fe5[_0x20254a];return _0x4fe5d7;};const a1334_0x57bd34=a1334_0xa0f3;'use strict';const _=require(a1334_0x57bd34(0x12e)),md5=require('md5'),util=require(a1334_0x57bd34(0x125)),{getSocket}=require('../../../rediscache'),io=getSocket();function ChatQueue(_0x48e07d){const _0x42c1f8=a1334_0x57bd34;this['id']=_0x48e07d['id']||0x0,this[_0x42c1f8(0x115)]=_0x48e07d[_0x42c1f8(0x115)]||'',this[_0x42c1f8(0x129)]=_0x48e07d[_0x42c1f8(0x129)]||0xa,this[_0x42c1f8(0x11c)]=_0x48e07d[_0x42c1f8(0x11c)]||_0x42c1f8(0x122),this['Agents']=_0x48e07d[_0x42c1f8(0x11a)],this[_0x42c1f8(0x121)]={},this[_0x42c1f8(0x126)]=0x0,this[_0x42c1f8(0x117)]='',this[_0x42c1f8(0x123)](),this['updateRealtime']();}ChatQueue['prototype']['updateRouting']=function(){const _0x4f0400=a1334_0x57bd34,_0x5587e6=this['mapAgentsId'][_0x4f0400(0x11e)];this[_0x4f0400(0x121)]=_[_0x4f0400(0x11b)](this[_0x4f0400(0x11a)],'id'),this[_0x4f0400(0x121)][_0x4f0400(0x11e)]=_0x5587e6;},ChatQueue[a1334_0x57bd34(0x12a)][a1334_0x57bd34(0x119)]=function(){const _0x47d9d4=a1334_0x57bd34;this[_0x47d9d4(0x120)]=0x0,this[_0x47d9d4(0x124)]=0x0;for(let _0x279db5=0x0;_0x279db5=0x0?this[_0x47d9d4(0x116)]:0x0;const _0x33c74d={'id':this['id'],'available':this[_0x47d9d4(0x116)],'loggedIn':this[_0x47d9d4(0x120)],'name':this[_0x47d9d4(0x115)],'paused':this[_0x47d9d4(0x124)],'waiting':this[_0x47d9d4(0x126)]},_0x3d97d9=md5(JSON[_0x47d9d4(0x12c)](_0x33c74d));this[_0x47d9d4(0x117)]!==_0x3d97d9&&(this['md5']=_0x3d97d9,io['to'](util['format'](_0x47d9d4(0x12d),_0x33c74d[_0x47d9d4(0x115)]))[_0x47d9d4(0x128)](_0x47d9d4(0x127),_0x33c74d));},module[a1334_0x57bd34(0x11f)]=ChatQueue; \ No newline at end of file +const a1334_0x12df=['paused','format','updateRealtime','online','md5','name','../../../rediscache','map','exports','strategy','prototype','chatPause','stringify','chat:queue:%s','timeout','updateRouting','available','waiting','chat_queue:save','length','Agents','loggedIn','lodash','_rr','mapAgentsId'];(function(_0x3671d3,_0x28deb7){const _0x12df92=function(_0x196b86){while(--_0x196b86){_0x3671d3['push'](_0x3671d3['shift']());}};_0x12df92(++_0x28deb7);}(a1334_0x12df,0x126));const a1334_0x196b=function(_0x3671d3,_0x28deb7){_0x3671d3=_0x3671d3-0x1cc;let _0x12df92=a1334_0x12df[_0x3671d3];return _0x12df92;};const a1334_0x3f09bf=a1334_0x196b;'use strict';const _=require(a1334_0x3f09bf(0x1cf)),md5=require(a1334_0x3f09bf(0x1d6)),util=require('util'),{getSocket}=require(a1334_0x3f09bf(0x1d8)),io=getSocket();function ChatQueue(_0x2b5ee5){const _0xb24e8a=a1334_0x3f09bf;this['id']=_0x2b5ee5['id']||0x0,this[_0xb24e8a(0x1d7)]=_0x2b5ee5['name']||'',this[_0xb24e8a(0x1e0)]=_0x2b5ee5['timeout']||0xa,this[_0xb24e8a(0x1db)]=_0x2b5ee5['strategy']||'beepall',this[_0xb24e8a(0x1cd)]=_0x2b5ee5[_0xb24e8a(0x1cd)],this[_0xb24e8a(0x1d1)]={},this[_0xb24e8a(0x1e3)]=0x0,this[_0xb24e8a(0x1d6)]='',this['updateRouting'](),this[_0xb24e8a(0x1d4)]();}ChatQueue['prototype'][a1334_0x3f09bf(0x1e1)]=function(){const _0x4d648d=a1334_0x3f09bf,_0x294d0a=this[_0x4d648d(0x1d1)][_0x4d648d(0x1d0)];this[_0x4d648d(0x1d1)]=_[_0x4d648d(0x1d9)](this['Agents'],'id'),this[_0x4d648d(0x1d1)][_0x4d648d(0x1d0)]=_0x294d0a;},ChatQueue[a1334_0x3f09bf(0x1dc)]['updateRealtime']=function(){const _0x2be595=a1334_0x3f09bf;this[_0x2be595(0x1ce)]=0x0,this['paused']=0x0;for(let _0x37b03c=0x0;_0x37b03c=0x0?this[_0x2be595(0x1e2)]:0x0;const _0x443278={'id':this['id'],'available':this['available'],'loggedIn':this[_0x2be595(0x1ce)],'name':this[_0x2be595(0x1d7)],'paused':this[_0x2be595(0x1d2)],'waiting':this['waiting']},_0x405d1c=md5(JSON[_0x2be595(0x1de)](_0x443278));this[_0x2be595(0x1d6)]!==_0x405d1c&&(this[_0x2be595(0x1d6)]=_0x405d1c,io['to'](util[_0x2be595(0x1d3)](_0x2be595(0x1df),_0x443278['name']))['emit'](_0x2be595(0x1e4),_0x443278));},module[a1334_0x3f09bf(0x1da)]=ChatQueue; \ No newline at end of file diff --git a/server/services/routing/model/faxQueue.js b/server/services/routing/model/faxQueue.js index 9ef5e40..c43c249 100644 --- a/server/services/routing/model/faxQueue.js +++ b/server/services/routing/model/faxQueue.js @@ -1 +1 @@ -const a1335_0x2597=['faxPause','_rr','Agents','md5','loggedIn','stringify','strategy','name','available','prototype','paused','util','beepall','mapAgentsId','length','updateRouting','lodash','format','fax:queue:%s','waiting','emit','exports','map','updateRealtime'];(function(_0x3a7dbd,_0x1d18d8){const _0x2597df=function(_0x2fe892){while(--_0x2fe892){_0x3a7dbd['push'](_0x3a7dbd['shift']());}};_0x2597df(++_0x1d18d8);}(a1335_0x2597,0xa5));const a1335_0x2fe8=function(_0x3a7dbd,_0x1d18d8){_0x3a7dbd=_0x3a7dbd-0x1e4;let _0x2597df=a1335_0x2597[_0x3a7dbd];return _0x2597df;};const a1335_0x431955=a1335_0x2fe8;'use strict';const _=require(a1335_0x431955(0x1f7)),md5=require('md5'),util=require(a1335_0x431955(0x1f2)),{getSocket}=require('../../../rediscache'),io=getSocket();function FaxQueue(_0x593cbc){const _0x3a3349=a1335_0x431955;this['id']=_0x593cbc['id']||0x0,this['name']=_0x593cbc['name']||'',this['timeout']=_0x593cbc['timeout']||0xa,this['strategy']=_0x593cbc[_0x3a3349(0x1ed)]||_0x3a3349(0x1f3),this[_0x3a3349(0x1e9)]=_0x593cbc[_0x3a3349(0x1e9)],this[_0x3a3349(0x1f4)]={},this[_0x3a3349(0x1fa)]=0x0,this['md5']='',this[_0x3a3349(0x1f6)](),this[_0x3a3349(0x1e6)]();}FaxQueue[a1335_0x431955(0x1f0)][a1335_0x431955(0x1f6)]=function(){const _0x1c1c56=a1335_0x431955,_0x1ed1a3=this[_0x1c1c56(0x1f4)][_0x1c1c56(0x1e8)];this[_0x1c1c56(0x1f4)]=_[_0x1c1c56(0x1e5)](this[_0x1c1c56(0x1e9)],'id'),this[_0x1c1c56(0x1f4)][_0x1c1c56(0x1e8)]=_0x1ed1a3;},FaxQueue[a1335_0x431955(0x1f0)]['updateRealtime']=function(){const _0x5ec730=a1335_0x431955;this[_0x5ec730(0x1eb)]=0x0,this[_0x5ec730(0x1f1)]=0x0;for(let _0x354ddb=0x0;_0x354ddb=0x0?this[_0x5ec730(0x1ef)]:0x0;const _0x165fba={'id':this['id'],'available':this[_0x5ec730(0x1ef)],'loggedIn':this[_0x5ec730(0x1eb)],'name':this[_0x5ec730(0x1ee)],'paused':this[_0x5ec730(0x1f1)],'waiting':this[_0x5ec730(0x1fa)]},_0x3e4b50=md5(JSON[_0x5ec730(0x1ec)](_0x165fba));this[_0x5ec730(0x1ea)]!==_0x3e4b50&&(this[_0x5ec730(0x1ea)]=_0x3e4b50,io['to'](util[_0x5ec730(0x1f8)](_0x5ec730(0x1f9),_0x165fba[_0x5ec730(0x1ee)]))[_0x5ec730(0x1fb)]('fax_queue:save',_0x165fba));},module[a1335_0x431955(0x1e4)]=FaxQueue; \ No newline at end of file +const a1335_0x3599=['fax:queue:%s','_rr','updateRealtime','name','length','available','waiting','strategy','Agents','emit','fax_queue:save','timeout','util','prototype','updateRouting','online','stringify','lodash','loggedIn','mapAgentsId','faxPause','exports','paused','md5'];(function(_0x6e8086,_0x3ae10f){const _0x35999d=function(_0x2c2f83){while(--_0x2c2f83){_0x6e8086['push'](_0x6e8086['shift']());}};_0x35999d(++_0x3ae10f);}(a1335_0x3599,0x79));const a1335_0x2c2f=function(_0x6e8086,_0x3ae10f){_0x6e8086=_0x6e8086-0xec;let _0x35999d=a1335_0x3599[_0x6e8086];return _0x35999d;};const a1335_0x33203f=a1335_0x2c2f;'use strict';const _=require(a1335_0x33203f(0xfc)),md5=require('md5'),util=require(a1335_0x33203f(0xf7)),{getSocket}=require('../../../rediscache'),io=getSocket();function FaxQueue(_0x3c1db8){const _0x4da95b=a1335_0x33203f;this['id']=_0x3c1db8['id']||0x0,this[_0x4da95b(0xee)]=_0x3c1db8[_0x4da95b(0xee)]||'',this[_0x4da95b(0xf6)]=_0x3c1db8['timeout']||0xa,this['strategy']=_0x3c1db8[_0x4da95b(0xf2)]||'beepall',this['Agents']=_0x3c1db8[_0x4da95b(0xf3)],this['mapAgentsId']={},this[_0x4da95b(0xf1)]=0x0,this['md5']='',this[_0x4da95b(0xf9)](),this[_0x4da95b(0xed)]();}FaxQueue[a1335_0x33203f(0xf8)][a1335_0x33203f(0xf9)]=function(){const _0x48668a=a1335_0x33203f,_0x2b8a38=this[_0x48668a(0xfe)][_0x48668a(0xec)];this[_0x48668a(0xfe)]=_['map'](this['Agents'],'id'),this['mapAgentsId']['_rr']=_0x2b8a38;},FaxQueue[a1335_0x33203f(0xf8)][a1335_0x33203f(0xed)]=function(){const _0x4a4c33=a1335_0x33203f;this[_0x4a4c33(0xfd)]=0x0,this[_0x4a4c33(0x101)]=0x0;for(let _0xa9f269=0x0;_0xa9f269=0x0?this['available']:0x0;const _0x4cc334={'id':this['id'],'available':this['available'],'loggedIn':this['loggedIn'],'name':this[_0x4a4c33(0xee)],'paused':this[_0x4a4c33(0x101)],'waiting':this['waiting']},_0x19e911=md5(JSON[_0x4a4c33(0xfb)](_0x4cc334));this[_0x4a4c33(0x102)]!==_0x19e911&&(this['md5']=_0x19e911,io['to'](util['format'](_0x4a4c33(0x103),_0x4cc334[_0x4a4c33(0xee)]))[_0x4a4c33(0xf4)](_0x4a4c33(0xf5),_0x4cc334));},module[a1335_0x33203f(0x100)]=FaxQueue; \ No newline at end of file diff --git a/server/services/routing/model/interval.js b/server/services/routing/model/interval.js index 9fb224d..5964941 100644 --- a/server/services/routing/model/interval.js +++ b/server/services/routing/model/interval.js @@ -1 +1 @@ -var a1336_0x5b38=['exports','name','Intervals'];(function(_0x546df2,_0x399f75){var _0x5b38fe=function(_0x3eafd5){while(--_0x3eafd5){_0x546df2['push'](_0x546df2['shift']());}};_0x5b38fe(++_0x399f75);}(a1336_0x5b38,0x79));var a1336_0x3eaf=function(_0x546df2,_0x399f75){_0x546df2=_0x546df2-0xf3;var _0x5b38fe=a1336_0x5b38[_0x546df2];return _0x5b38fe;};var a1336_0x163c7b=a1336_0x3eaf;'use strict';function Interval(_0x9a6ca0){var _0x4ae49c=a1336_0x3eaf;this['id']=_0x9a6ca0['id']||0x0,this[_0x4ae49c(0xf3)]=_0x9a6ca0['name']||'',this[_0x4ae49c(0xf4)]=_0x9a6ca0[_0x4ae49c(0xf4)]||{};}module[a1336_0x163c7b(0xf5)]=Interval; \ No newline at end of file +var a1336_0x518e=['exports','name','Intervals'];(function(_0x1716bf,_0xa4e4cf){var _0x518e1e=function(_0x75f790){while(--_0x75f790){_0x1716bf['push'](_0x1716bf['shift']());}};_0x518e1e(++_0xa4e4cf);}(a1336_0x518e,0x17e));var a1336_0x75f7=function(_0x1716bf,_0xa4e4cf){_0x1716bf=_0x1716bf-0x149;var _0x518e1e=a1336_0x518e[_0x1716bf];return _0x518e1e;};var a1336_0x2985f2=a1336_0x75f7;'use strict';function Interval(_0x25a811){var _0xdf2c11=a1336_0x75f7;this['id']=_0x25a811['id']||0x0,this[_0xdf2c11(0x149)]=_0x25a811[_0xdf2c11(0x149)]||'',this['Intervals']=_0x25a811[_0xdf2c11(0x14a)]||{};}module[a1336_0x2985f2(0x14b)]=Interval; \ No newline at end of file diff --git a/server/services/routing/model/mailQueue.js b/server/services/routing/model/mailQueue.js index ee2d9f5..c36de8a 100644 --- a/server/services/routing/model/mailQueue.js +++ b/server/services/routing/model/mailQueue.js @@ -1 +1 @@ -const a1337_0x55b3=['waiting','loggedIn','exports','online','updateRealtime','prototype','length','paused','available','updateRouting','name','emit','beepall','Agents','mail:queue:%s','_rr','timeout','mail_queue:save','strategy','map','mapAgentsId','md5'];(function(_0x4e4a77,_0x4366f3){const _0x55b3a3=function(_0x41305b){while(--_0x41305b){_0x4e4a77['push'](_0x4e4a77['shift']());}};_0x55b3a3(++_0x4366f3);}(a1337_0x55b3,0xad));const a1337_0x4130=function(_0x4e4a77,_0x4366f3){_0x4e4a77=_0x4e4a77-0x14d;let _0x55b3a3=a1337_0x55b3[_0x4e4a77];return _0x55b3a3;};const a1337_0x2769ca=a1337_0x4130;'use strict';const _=require('lodash'),md5=require(a1337_0x2769ca(0x14f)),util=require('util'),{getSocket}=require('../../../rediscache'),io=getSocket();function MailQueue(_0x3f436e){const _0x4f2aa7=a1337_0x2769ca;this['id']=_0x3f436e['id']||0x0,this[_0x4f2aa7(0x15a)]=_0x3f436e[_0x4f2aa7(0x15a)]||'',this[_0x4f2aa7(0x160)]=_0x3f436e['timeout']||0xa,this[_0x4f2aa7(0x162)]=_0x3f436e[_0x4f2aa7(0x162)]||_0x4f2aa7(0x15c),this['Agents']=_0x3f436e[_0x4f2aa7(0x15d)],this[_0x4f2aa7(0x14e)]={},this[_0x4f2aa7(0x150)]=0x0,this[_0x4f2aa7(0x14f)]='',this[_0x4f2aa7(0x159)](),this[_0x4f2aa7(0x154)]();}MailQueue['prototype'][a1337_0x2769ca(0x159)]=function(){const _0x9e4d4d=a1337_0x2769ca,_0x19e29a=this[_0x9e4d4d(0x14e)]['_rr'];this[_0x9e4d4d(0x14e)]=_[_0x9e4d4d(0x14d)](this[_0x9e4d4d(0x15d)],'id'),this[_0x9e4d4d(0x14e)][_0x9e4d4d(0x15f)]=_0x19e29a;},MailQueue[a1337_0x2769ca(0x155)][a1337_0x2769ca(0x154)]=function(){const _0x54ce79=a1337_0x2769ca;this[_0x54ce79(0x151)]=0x0,this['paused']=0x0;for(let _0xdf0fd=0x0;_0xdf0fd=0x0?this['available']:0x0;const _0x23944f={'id':this['id'],'available':this[_0x54ce79(0x158)],'loggedIn':this[_0x54ce79(0x151)],'name':this[_0x54ce79(0x15a)],'paused':this[_0x54ce79(0x157)],'waiting':this[_0x54ce79(0x150)]},_0x492c45=md5(JSON['stringify'](_0x23944f));this['md5']!==_0x492c45&&(this[_0x54ce79(0x14f)]=_0x492c45,io['to'](util['format'](_0x54ce79(0x15e),_0x23944f['name']))[_0x54ce79(0x15b)](_0x54ce79(0x161),_0x23944f));},module[a1337_0x2769ca(0x152)]=MailQueue; \ No newline at end of file +const a1337_0xafe9=['mail_queue:save','map','waiting','timeout','loggedIn','prototype','updateRouting','_rr','mapAgentsId','name','available','../../../rediscache','paused','stringify','lodash','beepall','updateRealtime','online','util','Agents','mail:queue:%s','exports','strategy','md5'];(function(_0x5bc53e,_0x501d8c){const _0xafe97a=function(_0x3466ba){while(--_0x3466ba){_0x5bc53e['push'](_0x5bc53e['shift']());}};_0xafe97a(++_0x501d8c);}(a1337_0xafe9,0x18f));const a1337_0x3466=function(_0x5bc53e,_0x501d8c){_0x5bc53e=_0x5bc53e-0x85;let _0xafe97a=a1337_0xafe9[_0x5bc53e];return _0xafe97a;};const a1337_0x53b43a=a1337_0x3466;'use strict';const _=require(a1337_0x53b43a(0x9c)),md5=require(a1337_0x53b43a(0x8d)),util=require(a1337_0x53b43a(0x88)),{getSocket}=require(a1337_0x53b43a(0x99)),io=getSocket();function MailQueue(_0x25690c){const _0x135ceb=a1337_0x53b43a;this['id']=_0x25690c['id']||0x0,this[_0x135ceb(0x97)]=_0x25690c[_0x135ceb(0x97)]||'',this[_0x135ceb(0x91)]=_0x25690c[_0x135ceb(0x91)]||0xa,this['strategy']=_0x25690c[_0x135ceb(0x8c)]||_0x135ceb(0x85),this['Agents']=_0x25690c[_0x135ceb(0x89)],this[_0x135ceb(0x96)]={},this[_0x135ceb(0x90)]=0x0,this[_0x135ceb(0x8d)]='',this[_0x135ceb(0x94)](),this[_0x135ceb(0x86)]();}MailQueue[a1337_0x53b43a(0x93)][a1337_0x53b43a(0x94)]=function(){const _0x4304ed=a1337_0x53b43a,_0x11c6ca=this[_0x4304ed(0x96)]['_rr'];this[_0x4304ed(0x96)]=_[_0x4304ed(0x8f)](this[_0x4304ed(0x89)],'id'),this[_0x4304ed(0x96)][_0x4304ed(0x95)]=_0x11c6ca;},MailQueue[a1337_0x53b43a(0x93)]['updateRealtime']=function(){const _0x293e90=a1337_0x53b43a;this[_0x293e90(0x92)]=0x0,this[_0x293e90(0x9a)]=0x0;for(let _0x13ae65=0x0;_0x13ae65=0x0?this[_0x293e90(0x98)]:0x0;const _0x32756d={'id':this['id'],'available':this['available'],'loggedIn':this['loggedIn'],'name':this[_0x293e90(0x97)],'paused':this[_0x293e90(0x9a)],'waiting':this['waiting']},_0x4c2355=md5(JSON[_0x293e90(0x9b)](_0x32756d));this[_0x293e90(0x8d)]!==_0x4c2355&&(this[_0x293e90(0x8d)]=_0x4c2355,io['to'](util['format'](_0x293e90(0x8a),_0x32756d[_0x293e90(0x97)]))['emit'](_0x293e90(0x8e),_0x32756d));},module[a1337_0x53b43a(0x8b)]=MailQueue; \ No newline at end of file diff --git a/server/services/routing/model/openchannelQueue.js b/server/services/routing/model/openchannelQueue.js index 563ed0b..75751ec 100644 --- a/server/services/routing/model/openchannelQueue.js +++ b/server/services/routing/model/openchannelQueue.js @@ -1 +1 @@ -const a1338_0x1e98=['Agents','openchannelPause','paused','openchannel:queue:%s','strategy','md5','../../../rediscache','mapAgentsId','openchannel_queue:save','updateRealtime','util','online','prototype','format','available','exports','timeout','map','emit','updateRouting','waiting','name','_rr'];(function(_0x7f52de,_0x399c81){const _0x1e9854=function(_0x4b19b9){while(--_0x4b19b9){_0x7f52de['push'](_0x7f52de['shift']());}};_0x1e9854(++_0x399c81);}(a1338_0x1e98,0x68));const a1338_0x4b19=function(_0x7f52de,_0x399c81){_0x7f52de=_0x7f52de-0xdf;let _0x1e9854=a1338_0x1e98[_0x7f52de];return _0x1e9854;};const a1338_0x54906e=a1338_0x4b19;'use strict';const _=require('lodash'),md5=require('md5'),util=require(a1338_0x54906e(0xf4)),{getSocket}=require(a1338_0x54906e(0xf0)),io=getSocket();function OpenchannelQueue(_0x135a2f){const _0x1956b7=a1338_0x54906e;this['id']=_0x135a2f['id']||0x0,this[_0x1956b7(0xe8)]=_0x135a2f[_0x1956b7(0xe8)]||'',this[_0x1956b7(0xe3)]=_0x135a2f[_0x1956b7(0xe3)]||0xa,this['strategy']=_0x135a2f[_0x1956b7(0xee)]||'beepall',this[_0x1956b7(0xea)]=_0x135a2f[_0x1956b7(0xea)],this[_0x1956b7(0xf1)]={},this[_0x1956b7(0xe7)]=0x0,this[_0x1956b7(0xef)]='',this[_0x1956b7(0xe6)](),this[_0x1956b7(0xf3)]();}OpenchannelQueue[a1338_0x54906e(0xdf)][a1338_0x54906e(0xe6)]=function(){const _0x12e3bd=a1338_0x54906e,_0x200808=this[_0x12e3bd(0xf1)]['_rr'];this[_0x12e3bd(0xf1)]=_[_0x12e3bd(0xe4)](this['Agents'],'id'),this[_0x12e3bd(0xf1)][_0x12e3bd(0xe9)]=_0x200808;},OpenchannelQueue[a1338_0x54906e(0xdf)][a1338_0x54906e(0xf3)]=function(){const _0x4b2bc9=a1338_0x54906e;this['loggedIn']=0x0,this[_0x4b2bc9(0xec)]=0x0;for(let _0x227c54=0x0;_0x227c54=0x0?this[_0x4b2bc9(0xe1)]:0x0;const _0x378b91={'id':this['id'],'available':this[_0x4b2bc9(0xe1)],'loggedIn':this['loggedIn'],'name':this['name'],'paused':this[_0x4b2bc9(0xec)],'waiting':this[_0x4b2bc9(0xe7)]},_0x4f87e5=md5(JSON['stringify'](_0x378b91));this[_0x4b2bc9(0xef)]!==_0x4f87e5&&(this[_0x4b2bc9(0xef)]=_0x4f87e5,io['to'](util[_0x4b2bc9(0xe0)](_0x4b2bc9(0xed),_0x378b91[_0x4b2bc9(0xe8)]))[_0x4b2bc9(0xe5)](_0x4b2bc9(0xf2),_0x378b91));},module[a1338_0x54906e(0xe2)]=OpenchannelQueue; \ No newline at end of file +const a1338_0x4139=['exports','_rr','name','format','waiting','updateRealtime','openchannel_queue:save','strategy','util','emit','openchannelPause','prototype','available','lodash','md5','mapAgentsId','loggedIn','paused','map','stringify','../../../rediscache','Agents','beepall'];(function(_0xa47b9b,_0x1f7d92){const _0x413924=function(_0x3ebb30){while(--_0x3ebb30){_0xa47b9b['push'](_0xa47b9b['shift']());}};_0x413924(++_0x1f7d92);}(a1338_0x4139,0x1ea));const a1338_0x3ebb=function(_0xa47b9b,_0x1f7d92){_0xa47b9b=_0xa47b9b-0x1ae;let _0x413924=a1338_0x4139[_0xa47b9b];return _0x413924;};const a1338_0x4571fd=a1338_0x3ebb;'use strict';const _=require(a1338_0x4571fd(0x1b4)),md5=require('md5'),util=require(a1338_0x4571fd(0x1af)),{getSocket}=require(a1338_0x4571fd(0x1bb)),io=getSocket();function OpenchannelQueue(_0x2ab315){const _0x455fe9=a1338_0x4571fd;this['id']=_0x2ab315['id']||0x0,this['name']=_0x2ab315[_0x455fe9(0x1c0)]||'',this['timeout']=_0x2ab315['timeout']||0xa,this[_0x455fe9(0x1ae)]=_0x2ab315[_0x455fe9(0x1ae)]||_0x455fe9(0x1bd),this[_0x455fe9(0x1bc)]=_0x2ab315[_0x455fe9(0x1bc)],this[_0x455fe9(0x1b6)]={},this[_0x455fe9(0x1c2)]=0x0,this[_0x455fe9(0x1b5)]='',this['updateRouting'](),this[_0x455fe9(0x1c3)]();}OpenchannelQueue['prototype']['updateRouting']=function(){const _0x146c93=a1338_0x4571fd,_0x527158=this[_0x146c93(0x1b6)][_0x146c93(0x1bf)];this['mapAgentsId']=_[_0x146c93(0x1b9)](this[_0x146c93(0x1bc)],'id'),this['mapAgentsId'][_0x146c93(0x1bf)]=_0x527158;},OpenchannelQueue[a1338_0x4571fd(0x1b2)][a1338_0x4571fd(0x1c3)]=function(){const _0x4df854=a1338_0x4571fd;this[_0x4df854(0x1b7)]=0x0,this[_0x4df854(0x1b8)]=0x0;for(let _0x291154=0x0;_0x291154=0x0?this[_0x4df854(0x1b3)]:0x0;const _0x3640bc={'id':this['id'],'available':this[_0x4df854(0x1b3)],'loggedIn':this[_0x4df854(0x1b7)],'name':this[_0x4df854(0x1c0)],'paused':this[_0x4df854(0x1b8)],'waiting':this[_0x4df854(0x1c2)]},_0x10df52=md5(JSON[_0x4df854(0x1ba)](_0x3640bc));this[_0x4df854(0x1b5)]!==_0x10df52&&(this[_0x4df854(0x1b5)]=_0x10df52,io['to'](util[_0x4df854(0x1c1)]('openchannel:queue:%s',_0x3640bc[_0x4df854(0x1c0)]))[_0x4df854(0x1b0)](_0x4df854(0x1c4),_0x3640bc));},module[a1338_0x4571fd(0x1be)]=OpenchannelQueue; \ No newline at end of file diff --git a/server/services/routing/model/smsQueue.js b/server/services/routing/model/smsQueue.js index eac93cb..2056b48 100644 --- a/server/services/routing/model/smsQueue.js +++ b/server/services/routing/model/smsQueue.js @@ -1 +1 @@ -const a1339_0x5865=['util','paused','smsPause','name','stringify','available','strategy','../../../rediscache','map','updateRealtime','sms_queue:save','beepall','timeout','format','exports','updateRouting','waiting','emit','loggedIn','prototype','md5','mapAgentsId','Agents','online','sms:queue:%s'];(function(_0x37b57d,_0xbc6e4c){const _0x58652a=function(_0x40a149){while(--_0x40a149){_0x37b57d['push'](_0x37b57d['shift']());}};_0x58652a(++_0xbc6e4c);}(a1339_0x5865,0x1a3));const a1339_0x40a1=function(_0x37b57d,_0xbc6e4c){_0x37b57d=_0x37b57d-0x1a0;let _0x58652a=a1339_0x5865[_0x37b57d];return _0x58652a;};const a1339_0x364fbb=a1339_0x40a1;'use strict';const _=require('lodash'),md5=require(a1339_0x364fbb(0x1a1)),util=require(a1339_0x364fbb(0x1a6)),{getSocket}=require(a1339_0x364fbb(0x1ad)),io=getSocket();function SmsQueue(_0x246a65){const _0x45e9d7=a1339_0x364fbb;this['id']=_0x246a65['id']||0x0,this[_0x45e9d7(0x1a9)]=_0x246a65[_0x45e9d7(0x1a9)]||'',this[_0x45e9d7(0x1b2)]=_0x246a65[_0x45e9d7(0x1b2)]||0xa,this[_0x45e9d7(0x1ac)]=_0x246a65[_0x45e9d7(0x1ac)]||_0x45e9d7(0x1b1),this[_0x45e9d7(0x1a3)]=_0x246a65[_0x45e9d7(0x1a3)],this[_0x45e9d7(0x1a2)]={},this[_0x45e9d7(0x1b6)]=0x0,this[_0x45e9d7(0x1a1)]='',this[_0x45e9d7(0x1b5)](),this[_0x45e9d7(0x1af)]();}SmsQueue[a1339_0x364fbb(0x1a0)][a1339_0x364fbb(0x1b5)]=function(){const _0x196257=a1339_0x364fbb,_0x5d1c1a=this[_0x196257(0x1a2)]['_rr'];this[_0x196257(0x1a2)]=_[_0x196257(0x1ae)](this[_0x196257(0x1a3)],'id'),this[_0x196257(0x1a2)]['_rr']=_0x5d1c1a;},SmsQueue[a1339_0x364fbb(0x1a0)][a1339_0x364fbb(0x1af)]=function(){const _0x5d6c9b=a1339_0x364fbb;this[_0x5d6c9b(0x1b8)]=0x0,this['paused']=0x0;for(let _0x5b2234=0x0;_0x5b2234=0x0?this[_0x5d6c9b(0x1ab)]:0x0;const _0x2224d1={'id':this['id'],'available':this[_0x5d6c9b(0x1ab)],'loggedIn':this['loggedIn'],'name':this[_0x5d6c9b(0x1a9)],'paused':this[_0x5d6c9b(0x1a7)],'waiting':this[_0x5d6c9b(0x1b6)]},_0x3c15f1=md5(JSON[_0x5d6c9b(0x1aa)](_0x2224d1));this[_0x5d6c9b(0x1a1)]!==_0x3c15f1&&(this[_0x5d6c9b(0x1a1)]=_0x3c15f1,io['to'](util[_0x5d6c9b(0x1b3)](_0x5d6c9b(0x1a5),_0x2224d1[_0x5d6c9b(0x1a9)]))[_0x5d6c9b(0x1b7)](_0x5d6c9b(0x1b0),_0x2224d1));},module[a1339_0x364fbb(0x1b4)]=SmsQueue; \ No newline at end of file +const a1339_0x3a00=['paused','emit','sms_queue:save','name','mapAgentsId','format','lodash','online','available','prototype','md5','../../../rediscache','Agents','updateRealtime','waiting','length','smsPause','updateRouting','_rr','loggedIn','map','strategy','timeout'];(function(_0x432f76,_0x2c77e6){const _0x3a0037=function(_0x1eeea5){while(--_0x1eeea5){_0x432f76['push'](_0x432f76['shift']());}};_0x3a0037(++_0x2c77e6);}(a1339_0x3a00,0x1a9));const a1339_0x1eee=function(_0x432f76,_0x2c77e6){_0x432f76=_0x432f76-0x12f;let _0x3a0037=a1339_0x3a00[_0x432f76];return _0x3a0037;};const a1339_0xf1e7b2=a1339_0x1eee;'use strict';const _=require(a1339_0xf1e7b2(0x141)),md5=require(a1339_0xf1e7b2(0x145)),util=require('util'),{getSocket}=require(a1339_0xf1e7b2(0x12f)),io=getSocket();function SmsQueue(_0x4c9c70){const _0x5e24ac=a1339_0xf1e7b2;this['id']=_0x4c9c70['id']||0x0,this[_0x5e24ac(0x13e)]=_0x4c9c70[_0x5e24ac(0x13e)]||'',this[_0x5e24ac(0x13a)]=_0x4c9c70['timeout']||0xa,this[_0x5e24ac(0x139)]=_0x4c9c70[_0x5e24ac(0x139)]||'beepall',this[_0x5e24ac(0x130)]=_0x4c9c70[_0x5e24ac(0x130)],this[_0x5e24ac(0x13f)]={},this[_0x5e24ac(0x132)]=0x0,this[_0x5e24ac(0x145)]='',this[_0x5e24ac(0x135)](),this[_0x5e24ac(0x131)]();}SmsQueue[a1339_0xf1e7b2(0x144)][a1339_0xf1e7b2(0x135)]=function(){const _0x30d3b5=a1339_0xf1e7b2,_0x9b309e=this['mapAgentsId'][_0x30d3b5(0x136)];this[_0x30d3b5(0x13f)]=_[_0x30d3b5(0x138)](this[_0x30d3b5(0x130)],'id'),this[_0x30d3b5(0x13f)][_0x30d3b5(0x136)]=_0x9b309e;},SmsQueue[a1339_0xf1e7b2(0x144)][a1339_0xf1e7b2(0x131)]=function(){const _0x1b9bd9=a1339_0xf1e7b2;this[_0x1b9bd9(0x137)]=0x0,this[_0x1b9bd9(0x13b)]=0x0;for(let _0x10e6b7=0x0;_0x10e6b7=0x0?this['available']:0x0;const _0x598992={'id':this['id'],'available':this[_0x1b9bd9(0x143)],'loggedIn':this[_0x1b9bd9(0x137)],'name':this['name'],'paused':this[_0x1b9bd9(0x13b)],'waiting':this[_0x1b9bd9(0x132)]},_0x4af3dc=md5(JSON['stringify'](_0x598992));this[_0x1b9bd9(0x145)]!==_0x4af3dc&&(this[_0x1b9bd9(0x145)]=_0x4af3dc,io['to'](util[_0x1b9bd9(0x140)]('sms:queue:%s',_0x598992[_0x1b9bd9(0x13e)]))[_0x1b9bd9(0x13c)](_0x1b9bd9(0x13d),_0x598992));},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 3403c12..5546d43 100644 --- a/server/services/routing/model/whatsappQueue.js +++ b/server/services/routing/model/whatsappQueue.js @@ -1 +1 @@ -const a1340_0x5ecd=['mapAgentsId','name','loggedIn','whatsapp:queue:%s','paused','exports','whatsappPause','_rr','stringify','available','strategy','Agents','updateRouting','md5','map','waiting','lodash','format','beepall','util','timeout','emit','prototype','whatsapp_queue:save','updateRealtime'];(function(_0x1ad329,_0x25d6d5){const _0x5ecdee=function(_0x4e94bc){while(--_0x4e94bc){_0x1ad329['push'](_0x1ad329['shift']());}};_0x5ecdee(++_0x25d6d5);}(a1340_0x5ecd,0x196));const a1340_0x4e94=function(_0x1ad329,_0x25d6d5){_0x1ad329=_0x1ad329-0x16e;let _0x5ecdee=a1340_0x5ecd[_0x1ad329];return _0x5ecdee;};const a1340_0x177dd7=a1340_0x4e94;'use strict';const _=require(a1340_0x177dd7(0x178)),md5=require(a1340_0x177dd7(0x175)),util=require(a1340_0x177dd7(0x17b)),{getSocket}=require('../../../rediscache'),io=getSocket();function WhatsappQueue(_0x1e1887){const _0x46cda4=a1340_0x177dd7;this['id']=_0x1e1887['id']||0x0,this['name']=_0x1e1887['name']||'',this[_0x46cda4(0x17c)]=_0x1e1887[_0x46cda4(0x17c)]||0xa,this[_0x46cda4(0x172)]=_0x1e1887[_0x46cda4(0x172)]||_0x46cda4(0x17a),this[_0x46cda4(0x173)]=_0x1e1887[_0x46cda4(0x173)],this[_0x46cda4(0x181)]={},this[_0x46cda4(0x177)]=0x0,this[_0x46cda4(0x175)]='',this[_0x46cda4(0x174)](),this[_0x46cda4(0x180)]();}WhatsappQueue[a1340_0x177dd7(0x17e)][a1340_0x177dd7(0x174)]=function(){const _0xc637da=a1340_0x177dd7,_0x3ed6da=this['mapAgentsId'][_0xc637da(0x16f)];this[_0xc637da(0x181)]=_[_0xc637da(0x176)](this[_0xc637da(0x173)],'id'),this['mapAgentsId'][_0xc637da(0x16f)]=_0x3ed6da;},WhatsappQueue[a1340_0x177dd7(0x17e)][a1340_0x177dd7(0x180)]=function(){const _0x4ce358=a1340_0x177dd7;this['loggedIn']=0x0,this[_0x4ce358(0x185)]=0x0;for(let _0x202b30=0x0;_0x202b30=0x0?this[_0x4ce358(0x171)]:0x0;const _0x5e4e55={'id':this['id'],'available':this['available'],'loggedIn':this['loggedIn'],'name':this[_0x4ce358(0x182)],'paused':this[_0x4ce358(0x185)],'waiting':this['waiting']},_0x1ada7b=md5(JSON[_0x4ce358(0x170)](_0x5e4e55));this['md5']!==_0x1ada7b&&(this[_0x4ce358(0x175)]=_0x1ada7b,io['to'](util[_0x4ce358(0x179)](_0x4ce358(0x184),_0x5e4e55['name']))[_0x4ce358(0x17d)](_0x4ce358(0x17f),_0x5e4e55));},module[a1340_0x177dd7(0x186)]=WhatsappQueue; \ No newline at end of file +const a1340_0xa34d=['Agents','exports','emit','name','mapAgentsId','available','updateRouting','updateRealtime','stringify','loggedIn','format','md5','beepall','prototype','whatsapp_queue:save','whatsappPause','waiting','whatsapp:queue:%s','map','paused','timeout'];(function(_0x516258,_0x3b517a){const _0xa34d0d=function(_0x363231){while(--_0x363231){_0x516258['push'](_0x516258['shift']());}};_0xa34d0d(++_0x3b517a);}(a1340_0xa34d,0x99));const a1340_0x3632=function(_0x516258,_0x3b517a){_0x516258=_0x516258-0xff;let _0xa34d0d=a1340_0xa34d[_0x516258];return _0xa34d0d;};const a1340_0x556263=a1340_0x3632;'use strict';const _=require('lodash'),md5=require('md5'),util=require('util'),{getSocket}=require('../../../rediscache'),io=getSocket();function WhatsappQueue(_0x18bff9){const _0x31b3fd=a1340_0x3632;this['id']=_0x18bff9['id']||0x0,this['name']=_0x18bff9[_0x31b3fd(0x111)]||'',this[_0x31b3fd(0x10d)]=_0x18bff9['timeout']||0xa,this['strategy']=_0x18bff9['strategy']||_0x31b3fd(0x105),this['Agents']=_0x18bff9[_0x31b3fd(0x10e)],this[_0x31b3fd(0x112)]={},this[_0x31b3fd(0x109)]=0x0,this[_0x31b3fd(0x104)]='',this[_0x31b3fd(0xff)](),this[_0x31b3fd(0x100)]();}WhatsappQueue[a1340_0x556263(0x106)][a1340_0x556263(0xff)]=function(){const _0x5cbd5c=a1340_0x556263,_0x3cdb4e=this[_0x5cbd5c(0x112)]['_rr'];this[_0x5cbd5c(0x112)]=_[_0x5cbd5c(0x10b)](this[_0x5cbd5c(0x10e)],'id'),this[_0x5cbd5c(0x112)]['_rr']=_0x3cdb4e;},WhatsappQueue[a1340_0x556263(0x106)][a1340_0x556263(0x100)]=function(){const _0x125b36=a1340_0x556263;this[_0x125b36(0x102)]=0x0,this[_0x125b36(0x10c)]=0x0;for(let _0x31723e=0x0;_0x31723e=0x0?this[_0x125b36(0x113)]:0x0;const _0x4b7706={'id':this['id'],'available':this[_0x125b36(0x113)],'loggedIn':this[_0x125b36(0x102)],'name':this['name'],'paused':this[_0x125b36(0x10c)],'waiting':this['waiting']},_0x51b4e5=md5(JSON[_0x125b36(0x101)](_0x4b7706));this['md5']!==_0x51b4e5&&(this[_0x125b36(0x104)]=_0x51b4e5,io['to'](util[_0x125b36(0x103)](_0x125b36(0x10a),_0x4b7706[_0x125b36(0x111)]))[_0x125b36(0x110)](_0x125b36(0x107),_0x4b7706));},module[a1340_0x556263(0x10f)]=WhatsappQueue; \ No newline at end of file diff --git a/server/services/routing/realtime/index.js b/server/services/routing/realtime/index.js index 68c3a70..03b2b58 100644 --- a/server/services/routing/realtime/index.js +++ b/server/services/routing/realtime/index.js @@ -1 +1 @@ -const a1341_0x2140=['exports','whatsappQueuesWaitingInteractions','openchannelQueuesWaitingInteractions','../model/smsQueue','smsQueuesWaitingInteractions','mailQueuesWaitingInteractions','mergeFromDatabase','faxQueuesWaitingInteractions','initWhatsappQueues','initFaxQueues','mapKeys','faxQueues','../model/faxQueue','updateRouting','chatQueues','agents','undefined','intervals','mailQueues','openchannelQueues','../model/chatQueue','whatsappQueues','initChatQueues','initMailQueues','updateRealtime','../model/agent','smsQueues','isUndefined','initSmsQueues','length','initAgents','prototype','initOpenchannelQueues','../model/interval'];(function(_0xc910d2,_0x1fbb61){const _0x2140a0=function(_0xbc75d6){while(--_0xbc75d6){_0xc910d2['push'](_0xc910d2['shift']());}};_0x2140a0(++_0x1fbb61);}(a1341_0x2140,0x91));const a1341_0xbc75=function(_0xc910d2,_0x1fbb61){_0xc910d2=_0xc910d2-0x1ea;let _0x2140a0=a1341_0x2140[_0xc910d2];return _0x2140a0;};const a1341_0xaaeae=a1341_0xbc75;'use strict';const _=require('lodash'),Agent=require(a1341_0xaaeae(0x1fa)),Interval=require(a1341_0xaaeae(0x202)),OpenchannelQueue=require('../model/openchannelQueue'),ChatQueue=require(a1341_0xaaeae(0x1f5)),SmsQueue=require(a1341_0xaaeae(0x206)),MailQueue=require('../model/mailQueue'),FaxQueue=require(a1341_0xaaeae(0x1ed)),WhatsappQueue=require('../model/whatsappQueue'),Realtime=function(){const _0x250221=a1341_0xaaeae;this[_0x250221(0x1f0)]={},this['intervals']={},this[_0x250221(0x1f4)]={},this['chatQueues']={},this[_0x250221(0x1fb)]={},this[_0x250221(0x1f3)]={},this['faxQueues']={},this[_0x250221(0x1f6)]={},this['chatQueuesWaitingInteractions']={},this[_0x250221(0x208)]={},this[_0x250221(0x205)]={},this[_0x250221(0x207)]={},this[_0x250221(0x20a)]={},this[_0x250221(0x204)]={};};function freeIsNotKey(_0x5d45d9,_0x30a608,_0x5a705b){const _0x1168fd=a1341_0xaaeae,_0x1fd76d=_[_0x1168fd(0x1eb)](_0x5d45d9,function(_0xcf05f7){return _0xcf05f7[_0x5a705b];});for(const _0x52f271 in _0x30a608){typeof _0x30a608[_0x52f271]!==_0x1168fd(0x1f1)&&(!_0x1fd76d[_0x52f271]&&delete _0x30a608[_0x52f271]);}}Realtime[a1341_0xaaeae(0x200)][a1341_0xaaeae(0x209)]=function(_0x2df7e6,_0xdc91cd){const _0x11a94c=a1341_0xaaeae;for(const _0xba96e0 in _0xdc91cd){typeof _0x2df7e6[_0xba96e0]!==_0x11a94c(0x1f1)&&(_0x2df7e6[_0xba96e0]=_0xdc91cd[_0xba96e0]);}},Realtime['prototype'][a1341_0xaaeae(0x1ff)]=function(){const _0x448b14=this;return function(_0x2bbdae){const _0x1c51c4=a1341_0xbc75;if(_0x2bbdae){freeIsNotKey(_0x2bbdae,_0x448b14['agents'],'id');for(let _0xb60926=0x0,_0x1e1cdf={};_0xb60926<_0x2bbdae[_0x1c51c4(0x1fe)];_0xb60926+=0x1){_0x1e1cdf=_0x2bbdae[_0xb60926],_[_0x1c51c4(0x1fc)](_0x448b14[_0x1c51c4(0x1f0)][_0x1e1cdf['id']])?_0x448b14[_0x1c51c4(0x1f0)][_0x1e1cdf['id']]=new Agent(_0x1e1cdf):_0x448b14[_0x1c51c4(0x209)](_0x448b14[_0x1c51c4(0x1f0)][_0x1e1cdf['id']],_0x1e1cdf);}}return _0x448b14[_0x1c51c4(0x1f0)];};},Realtime[a1341_0xaaeae(0x200)]['initIntervals']=function(){const _0x48d026=this;return function(_0x252962){const _0x1f3ae3=a1341_0xbc75;if(_0x252962){freeIsNotKey(_0x252962,_0x48d026[_0x1f3ae3(0x1f2)],'id');for(let _0x313828=0x0,_0x452f01={};_0x313828<_0x252962[_0x1f3ae3(0x1fe)];_0x313828+=0x1){_0x452f01=_0x252962[_0x313828],_[_0x1f3ae3(0x1fc)](_0x48d026['intervals'][_0x452f01['id']])?_0x48d026[_0x1f3ae3(0x1f2)][_0x452f01['id']]=new Interval(_0x452f01):_0x48d026['mergeFromDatabase'](_0x48d026[_0x1f3ae3(0x1f2)][_0x452f01['id']],_0x452f01);}}return _0x48d026['intervals'];};},Realtime['prototype'][a1341_0xaaeae(0x201)]=function(){const _0x54b032=this;return function(_0x3689cc){const _0x5900b1=a1341_0xbc75;if(_0x3689cc){freeIsNotKey(_0x3689cc,_0x54b032['openchannelQueues'],'id');for(let _0x42a6f7=0x0,_0x85da7c={};_0x42a6f7<_0x3689cc[_0x5900b1(0x1fe)];_0x42a6f7+=0x1){_0x85da7c=_0x3689cc[_0x42a6f7],_[_0x5900b1(0x1fc)](_0x54b032['openchannelQueues'][_0x85da7c['id']])?_0x54b032['openchannelQueues'][_0x85da7c['id']]=new OpenchannelQueue(_0x85da7c):_0x54b032[_0x5900b1(0x209)](_0x54b032[_0x5900b1(0x1f4)][_0x85da7c['id']],_0x85da7c),_0x54b032['openchannelQueues'][_0x85da7c['id']][_0x5900b1(0x1ee)](),_0x54b032[_0x5900b1(0x1f4)][_0x85da7c['id']][_0x5900b1(0x1f9)]();}}return _0x54b032[_0x5900b1(0x1f4)];};},Realtime[a1341_0xaaeae(0x200)][a1341_0xaaeae(0x1f7)]=function(){const _0x20f5e7=this;return function(_0x22e79a){const _0x4516c5=a1341_0xbc75;if(_0x22e79a){freeIsNotKey(_0x22e79a,_0x20f5e7[_0x4516c5(0x1ef)],'id');for(let _0x9a7e99=0x0,_0x27422f={};_0x9a7e99<_0x22e79a[_0x4516c5(0x1fe)];_0x9a7e99+=0x1){_0x27422f=_0x22e79a[_0x9a7e99],_[_0x4516c5(0x1fc)](_0x20f5e7[_0x4516c5(0x1ef)][_0x27422f['id']])?_0x20f5e7[_0x4516c5(0x1ef)][_0x27422f['id']]=new ChatQueue(_0x27422f):_0x20f5e7[_0x4516c5(0x209)](_0x20f5e7[_0x4516c5(0x1ef)][_0x27422f['id']],_0x27422f),_0x20f5e7['chatQueues'][_0x27422f['id']][_0x4516c5(0x1ee)](),_0x20f5e7[_0x4516c5(0x1ef)][_0x27422f['id']][_0x4516c5(0x1f9)]();}}return _0x20f5e7['chatQueues'];};},Realtime[a1341_0xaaeae(0x200)][a1341_0xaaeae(0x1fd)]=function(){const _0x2d6880=this;return function(_0x535e8a){const _0x4c1e38=a1341_0xbc75;if(_0x535e8a){freeIsNotKey(_0x535e8a,_0x2d6880[_0x4c1e38(0x1fb)],'id');for(let _0x2d32f6=0x0,_0x535854={};_0x2d32f6<_0x535e8a[_0x4c1e38(0x1fe)];_0x2d32f6+=0x1){_0x535854=_0x535e8a[_0x2d32f6],_[_0x4c1e38(0x1fc)](_0x2d6880['smsQueues'][_0x535854['id']])?_0x2d6880['smsQueues'][_0x535854['id']]=new SmsQueue(_0x535854):_0x2d6880[_0x4c1e38(0x209)](_0x2d6880[_0x4c1e38(0x1fb)][_0x535854['id']],_0x535854),_0x2d6880[_0x4c1e38(0x1fb)][_0x535854['id']]['updateRouting'](),_0x2d6880[_0x4c1e38(0x1fb)][_0x535854['id']][_0x4c1e38(0x1f9)]();}}return _0x2d6880['smsQueues'];};},Realtime['prototype'][a1341_0xaaeae(0x1f8)]=function(){const _0x14d1f1=this;return function(_0x3ba790){const _0x198c7a=a1341_0xbc75;if(_0x3ba790){freeIsNotKey(_0x3ba790,_0x14d1f1[_0x198c7a(0x1f3)],'id');for(let _0x5b3dfa=0x0,_0x503c12={};_0x5b3dfa<_0x3ba790[_0x198c7a(0x1fe)];_0x5b3dfa+=0x1){_0x503c12=_0x3ba790[_0x5b3dfa],_[_0x198c7a(0x1fc)](_0x14d1f1[_0x198c7a(0x1f3)][_0x503c12['id']])?_0x14d1f1[_0x198c7a(0x1f3)][_0x503c12['id']]=new MailQueue(_0x503c12):_0x14d1f1[_0x198c7a(0x209)](_0x14d1f1[_0x198c7a(0x1f3)][_0x503c12['id']],_0x503c12),_0x14d1f1[_0x198c7a(0x1f3)][_0x503c12['id']]['updateRouting'](),_0x14d1f1[_0x198c7a(0x1f3)][_0x503c12['id']][_0x198c7a(0x1f9)]();}}return _0x14d1f1[_0x198c7a(0x1f3)];};},Realtime['prototype'][a1341_0xaaeae(0x1ea)]=function(){const _0x337d85=this;return function(_0x4ffb3a){const _0x32ce31=a1341_0xbc75;if(_0x4ffb3a){freeIsNotKey(_0x4ffb3a,_0x337d85[_0x32ce31(0x1ec)],'id');for(let _0x2a85b6=0x0,_0x1eac02={};_0x2a85b6<_0x4ffb3a[_0x32ce31(0x1fe)];_0x2a85b6+=0x1){_0x1eac02=_0x4ffb3a[_0x2a85b6],_[_0x32ce31(0x1fc)](_0x337d85[_0x32ce31(0x1ec)][_0x1eac02['id']])?_0x337d85[_0x32ce31(0x1ec)][_0x1eac02['id']]=new FaxQueue(_0x1eac02):_0x337d85[_0x32ce31(0x209)](_0x337d85['faxQueues'][_0x1eac02['id']],_0x1eac02),_0x337d85[_0x32ce31(0x1ec)][_0x1eac02['id']][_0x32ce31(0x1ee)](),_0x337d85[_0x32ce31(0x1ec)][_0x1eac02['id']][_0x32ce31(0x1f9)]();}}return _0x337d85[_0x32ce31(0x1ec)];};},Realtime[a1341_0xaaeae(0x200)][a1341_0xaaeae(0x20b)]=function(){const _0x2d437a=this;return function(_0xfc68b5){const _0x1b5297=a1341_0xbc75;if(_0xfc68b5){freeIsNotKey(_0xfc68b5,_0x2d437a[_0x1b5297(0x1f6)],'id');for(let _0x471713=0x0,_0x3aadc7={};_0x471713<_0xfc68b5['length'];_0x471713+=0x1){_0x3aadc7=_0xfc68b5[_0x471713],_[_0x1b5297(0x1fc)](_0x2d437a[_0x1b5297(0x1f6)][_0x3aadc7['id']])?_0x2d437a[_0x1b5297(0x1f6)][_0x3aadc7['id']]=new WhatsappQueue(_0x3aadc7):_0x2d437a['mergeFromDatabase'](_0x2d437a['whatsappQueues'][_0x3aadc7['id']],_0x3aadc7),_0x2d437a[_0x1b5297(0x1f6)][_0x3aadc7['id']][_0x1b5297(0x1ee)](),_0x2d437a[_0x1b5297(0x1f6)][_0x3aadc7['id']]['updateRealtime']();}}return _0x2d437a[_0x1b5297(0x1f6)];};},module[a1341_0xaaeae(0x203)]=Realtime; \ No newline at end of file +const a1341_0xe065=['openchannelQueues','initOpenchannelQueues','faxQueues','intervals','../model/openchannelQueue','updateRouting','undefined','initChatQueues','mailQueues','smsQueuesWaitingInteractions','chatQueuesWaitingInteractions','../model/chatQueue','../model/interval','prototype','initAgents','mailQueuesWaitingInteractions','openchannelQueuesWaitingInteractions','../model/faxQueue','../model/whatsappQueue','chatQueues','mapKeys','initMailQueues','smsQueues','updateRealtime','whatsappQueues','initIntervals','../model/agent','../model/mailQueue','faxQueuesWaitingInteractions','exports','../model/smsQueue','isUndefined','agents','mergeFromDatabase','initWhatsappQueues','initFaxQueues','length','initSmsQueues'];(function(_0x20bbe2,_0x16d170){const _0xe065d3=function(_0x7fa550){while(--_0x7fa550){_0x20bbe2['push'](_0x20bbe2['shift']());}};_0xe065d3(++_0x16d170);}(a1341_0xe065,0x126));const a1341_0x7fa5=function(_0x20bbe2,_0x16d170){_0x20bbe2=_0x20bbe2-0x137;let _0xe065d3=a1341_0xe065[_0x20bbe2];return _0xe065d3;};const a1341_0x4b63c7=a1341_0x7fa5;'use strict';const _=require('lodash'),Agent=require(a1341_0x4b63c7(0x15b)),Interval=require(a1341_0x4b63c7(0x14d)),OpenchannelQueue=require(a1341_0x4b63c7(0x145)),ChatQueue=require(a1341_0x4b63c7(0x14c)),SmsQueue=require(a1341_0x4b63c7(0x139)),MailQueue=require(a1341_0x4b63c7(0x15c)),FaxQueue=require(a1341_0x4b63c7(0x152)),WhatsappQueue=require(a1341_0x4b63c7(0x153)),Realtime=function(){const _0x412c4b=a1341_0x4b63c7;this[_0x412c4b(0x13b)]={},this[_0x412c4b(0x144)]={},this['openchannelQueues']={},this[_0x412c4b(0x154)]={},this[_0x412c4b(0x157)]={},this[_0x412c4b(0x149)]={},this[_0x412c4b(0x143)]={},this[_0x412c4b(0x159)]={},this[_0x412c4b(0x14b)]={},this[_0x412c4b(0x150)]={},this[_0x412c4b(0x151)]={},this[_0x412c4b(0x14a)]={},this[_0x412c4b(0x137)]={},this['whatsappQueuesWaitingInteractions']={};};function freeIsNotKey(_0x153e0f,_0x140987,_0x54dacd){const _0x5d6cc7=a1341_0x4b63c7,_0x3392b3=_[_0x5d6cc7(0x155)](_0x153e0f,function(_0x308498){return _0x308498[_0x54dacd];});for(const _0x3f75a3 in _0x140987){typeof _0x140987[_0x3f75a3]!==_0x5d6cc7(0x147)&&(!_0x3392b3[_0x3f75a3]&&delete _0x140987[_0x3f75a3]);}}Realtime['prototype'][a1341_0x4b63c7(0x13c)]=function(_0x160e1d,_0x165362){for(const _0x58504e in _0x165362){typeof _0x160e1d[_0x58504e]!=='undefined'&&(_0x160e1d[_0x58504e]=_0x165362[_0x58504e]);}},Realtime[a1341_0x4b63c7(0x14e)][a1341_0x4b63c7(0x14f)]=function(){const _0x4d2c7f=this;return function(_0x4155b7){const _0x5428b6=a1341_0x7fa5;if(_0x4155b7){freeIsNotKey(_0x4155b7,_0x4d2c7f[_0x5428b6(0x13b)],'id');for(let _0x37f564=0x0,_0x104405={};_0x37f564<_0x4155b7[_0x5428b6(0x13f)];_0x37f564+=0x1){_0x104405=_0x4155b7[_0x37f564],_[_0x5428b6(0x13a)](_0x4d2c7f['agents'][_0x104405['id']])?_0x4d2c7f[_0x5428b6(0x13b)][_0x104405['id']]=new Agent(_0x104405):_0x4d2c7f[_0x5428b6(0x13c)](_0x4d2c7f[_0x5428b6(0x13b)][_0x104405['id']],_0x104405);}}return _0x4d2c7f[_0x5428b6(0x13b)];};},Realtime['prototype'][a1341_0x4b63c7(0x15a)]=function(){const _0x5419e8=this;return function(_0x9d6dd7){const _0x205ff6=a1341_0x7fa5;if(_0x9d6dd7){freeIsNotKey(_0x9d6dd7,_0x5419e8[_0x205ff6(0x144)],'id');for(let _0x272cf9=0x0,_0x5a526b={};_0x272cf9<_0x9d6dd7[_0x205ff6(0x13f)];_0x272cf9+=0x1){_0x5a526b=_0x9d6dd7[_0x272cf9],_[_0x205ff6(0x13a)](_0x5419e8[_0x205ff6(0x144)][_0x5a526b['id']])?_0x5419e8['intervals'][_0x5a526b['id']]=new Interval(_0x5a526b):_0x5419e8[_0x205ff6(0x13c)](_0x5419e8[_0x205ff6(0x144)][_0x5a526b['id']],_0x5a526b);}}return _0x5419e8[_0x205ff6(0x144)];};},Realtime['prototype'][a1341_0x4b63c7(0x142)]=function(){const _0x42a253=this;return function(_0x18a987){const _0xdfed6a=a1341_0x7fa5;if(_0x18a987){freeIsNotKey(_0x18a987,_0x42a253[_0xdfed6a(0x141)],'id');for(let _0x58e8ce=0x0,_0x1bcaa2={};_0x58e8ce<_0x18a987[_0xdfed6a(0x13f)];_0x58e8ce+=0x1){_0x1bcaa2=_0x18a987[_0x58e8ce],_[_0xdfed6a(0x13a)](_0x42a253[_0xdfed6a(0x141)][_0x1bcaa2['id']])?_0x42a253[_0xdfed6a(0x141)][_0x1bcaa2['id']]=new OpenchannelQueue(_0x1bcaa2):_0x42a253[_0xdfed6a(0x13c)](_0x42a253['openchannelQueues'][_0x1bcaa2['id']],_0x1bcaa2),_0x42a253[_0xdfed6a(0x141)][_0x1bcaa2['id']][_0xdfed6a(0x146)](),_0x42a253[_0xdfed6a(0x141)][_0x1bcaa2['id']][_0xdfed6a(0x158)]();}}return _0x42a253[_0xdfed6a(0x141)];};},Realtime['prototype'][a1341_0x4b63c7(0x148)]=function(){const _0x27a518=this;return function(_0x3680a3){const _0x514161=a1341_0x7fa5;if(_0x3680a3){freeIsNotKey(_0x3680a3,_0x27a518[_0x514161(0x154)],'id');for(let _0x2c1ccb=0x0,_0xba1d5={};_0x2c1ccb<_0x3680a3[_0x514161(0x13f)];_0x2c1ccb+=0x1){_0xba1d5=_0x3680a3[_0x2c1ccb],_[_0x514161(0x13a)](_0x27a518[_0x514161(0x154)][_0xba1d5['id']])?_0x27a518[_0x514161(0x154)][_0xba1d5['id']]=new ChatQueue(_0xba1d5):_0x27a518[_0x514161(0x13c)](_0x27a518[_0x514161(0x154)][_0xba1d5['id']],_0xba1d5),_0x27a518[_0x514161(0x154)][_0xba1d5['id']]['updateRouting'](),_0x27a518['chatQueues'][_0xba1d5['id']][_0x514161(0x158)]();}}return _0x27a518[_0x514161(0x154)];};},Realtime[a1341_0x4b63c7(0x14e)][a1341_0x4b63c7(0x140)]=function(){const _0x1f4d82=this;return function(_0x52e85a){const _0x2225da=a1341_0x7fa5;if(_0x52e85a){freeIsNotKey(_0x52e85a,_0x1f4d82['smsQueues'],'id');for(let _0x5a0797=0x0,_0x4d9b82={};_0x5a0797<_0x52e85a[_0x2225da(0x13f)];_0x5a0797+=0x1){_0x4d9b82=_0x52e85a[_0x5a0797],_[_0x2225da(0x13a)](_0x1f4d82[_0x2225da(0x157)][_0x4d9b82['id']])?_0x1f4d82[_0x2225da(0x157)][_0x4d9b82['id']]=new SmsQueue(_0x4d9b82):_0x1f4d82[_0x2225da(0x13c)](_0x1f4d82[_0x2225da(0x157)][_0x4d9b82['id']],_0x4d9b82),_0x1f4d82[_0x2225da(0x157)][_0x4d9b82['id']]['updateRouting'](),_0x1f4d82[_0x2225da(0x157)][_0x4d9b82['id']][_0x2225da(0x158)]();}}return _0x1f4d82[_0x2225da(0x157)];};},Realtime['prototype'][a1341_0x4b63c7(0x156)]=function(){const _0x295239=this;return function(_0x12f72f){const _0x31b936=a1341_0x7fa5;if(_0x12f72f){freeIsNotKey(_0x12f72f,_0x295239[_0x31b936(0x149)],'id');for(let _0x3c9b59=0x0,_0x43b4f1={};_0x3c9b59<_0x12f72f['length'];_0x3c9b59+=0x1){_0x43b4f1=_0x12f72f[_0x3c9b59],_['isUndefined'](_0x295239['mailQueues'][_0x43b4f1['id']])?_0x295239['mailQueues'][_0x43b4f1['id']]=new MailQueue(_0x43b4f1):_0x295239['mergeFromDatabase'](_0x295239[_0x31b936(0x149)][_0x43b4f1['id']],_0x43b4f1),_0x295239['mailQueues'][_0x43b4f1['id']][_0x31b936(0x146)](),_0x295239[_0x31b936(0x149)][_0x43b4f1['id']][_0x31b936(0x158)]();}}return _0x295239[_0x31b936(0x149)];};},Realtime[a1341_0x4b63c7(0x14e)][a1341_0x4b63c7(0x13e)]=function(){const _0x23d340=this;return function(_0x346a2f){const _0x5b9f62=a1341_0x7fa5;if(_0x346a2f){freeIsNotKey(_0x346a2f,_0x23d340[_0x5b9f62(0x143)],'id');for(let _0x21d1e7=0x0,_0x5e02f9={};_0x21d1e7<_0x346a2f['length'];_0x21d1e7+=0x1){_0x5e02f9=_0x346a2f[_0x21d1e7],_['isUndefined'](_0x23d340[_0x5b9f62(0x143)][_0x5e02f9['id']])?_0x23d340['faxQueues'][_0x5e02f9['id']]=new FaxQueue(_0x5e02f9):_0x23d340['mergeFromDatabase'](_0x23d340['faxQueues'][_0x5e02f9['id']],_0x5e02f9),_0x23d340[_0x5b9f62(0x143)][_0x5e02f9['id']][_0x5b9f62(0x146)](),_0x23d340[_0x5b9f62(0x143)][_0x5e02f9['id']][_0x5b9f62(0x158)]();}}return _0x23d340[_0x5b9f62(0x143)];};},Realtime[a1341_0x4b63c7(0x14e)][a1341_0x4b63c7(0x13d)]=function(){const _0x1bc309=this;return function(_0x4e37d8){const _0x5846b0=a1341_0x7fa5;if(_0x4e37d8){freeIsNotKey(_0x4e37d8,_0x1bc309[_0x5846b0(0x159)],'id');for(let _0x1a6f38=0x0,_0x297373={};_0x1a6f38<_0x4e37d8['length'];_0x1a6f38+=0x1){_0x297373=_0x4e37d8[_0x1a6f38],_[_0x5846b0(0x13a)](_0x1bc309['whatsappQueues'][_0x297373['id']])?_0x1bc309[_0x5846b0(0x159)][_0x297373['id']]=new WhatsappQueue(_0x297373):_0x1bc309[_0x5846b0(0x13c)](_0x1bc309[_0x5846b0(0x159)][_0x297373['id']],_0x297373),_0x1bc309[_0x5846b0(0x159)][_0x297373['id']][_0x5846b0(0x146)](),_0x1bc309[_0x5846b0(0x159)][_0x297373['id']][_0x5846b0(0x158)]();}}return _0x1bc309[_0x5846b0(0x159)];};},module[a1341_0x4b63c7(0x138)]=Realtime; \ No newline at end of file diff --git a/server/services/routing/rpc/chatInteraction.js b/server/services/routing/rpc/chatInteraction.js index 3d878af..7b2a827 100644 --- a/server/services/routing/rpc/chatInteraction.js +++ b/server/services/routing/rpc/chatInteraction.js @@ -1 +1 @@ -const a1342_0x41ba=['updateChatInteraction','../client','update','Request','addTags','AddTagsToChatInteraction','addTagsToChatInteraction'];(function(_0x44378c,_0x5723c5){const _0x41bab7=function(_0xb050fb){while(--_0xb050fb){_0x44378c['push'](_0x44378c['shift']());}};_0x41bab7(++_0x5723c5);}(a1342_0x41ba,0x69));const a1342_0xb050=function(_0x44378c,_0x5723c5){_0x44378c=_0x44378c-0x11f;let _0x41bab7=a1342_0x41ba[_0x44378c];return _0x41bab7;};const a1342_0x42bae8=a1342_0xb050;'use strict';const client=require(a1342_0x42bae8(0x120));exports[a1342_0x42bae8(0x121)]=function(_0x566d83,_0x5bb6d4){const _0x3881d9=a1342_0x42bae8;return client[_0x3881d9(0x122)]('UpdateChatInteraction',{'body':_0x5bb6d4,'options':{'where':{'id':_0x566d83}},'log':_0x3881d9(0x11f)});},exports[a1342_0x42bae8(0x123)]=function(_0x21c62f,_0x4dd386){const _0x2c05b2=a1342_0x42bae8;return client[_0x2c05b2(0x122)](_0x2c05b2(0x124),{'body':_0x4dd386,'options':{'where':{'id':_0x21c62f}},'log':_0x2c05b2(0x125)});}; \ No newline at end of file +const a1342_0x7d49=['../client','UpdateChatInteraction','Request','addTags'];(function(_0x6e11a3,_0x21bde8){const _0x7d4988=function(_0x1199bf){while(--_0x1199bf){_0x6e11a3['push'](_0x6e11a3['shift']());}};_0x7d4988(++_0x21bde8);}(a1342_0x7d49,0x163));const a1342_0x1199=function(_0x6e11a3,_0x21bde8){_0x6e11a3=_0x6e11a3-0xcd;let _0x7d4988=a1342_0x7d49[_0x6e11a3];return _0x7d4988;};const a1342_0x48d0aa=a1342_0x1199;'use strict';const client=require(a1342_0x48d0aa(0xce));exports['update']=function(_0x1f851f,_0x4a2ca7){const _0x44829b=a1342_0x48d0aa;return client[_0x44829b(0xd0)](_0x44829b(0xcf),{'body':_0x4a2ca7,'options':{'where':{'id':_0x1f851f}},'log':'updateChatInteraction'});},exports[a1342_0x48d0aa(0xcd)]=function(_0xa1242c,_0x44bdc3){const _0x40160e=a1342_0x48d0aa;return client[_0x40160e(0xd0)]('AddTagsToChatInteraction',{'body':_0x44bdc3,'options':{'where':{'id':_0xa1242c}},'log':'addTagsToChatInteraction'});}; \ No newline at end of file diff --git a/server/services/routing/rpc/chatMessage.js b/server/services/routing/rpc/chatMessage.js index a778f5c..10981a4 100644 --- a/server/services/routing/rpc/chatMessage.js +++ b/server/services/routing/rpc/chatMessage.js @@ -1 +1 @@ -const a1343_0x38fe=['createChatMessage','Request','CreateChatMessage','../client'];(function(_0xaf3b2e,_0x18aefe){const _0x38fe1f=function(_0x415e6c){while(--_0x415e6c){_0xaf3b2e['push'](_0xaf3b2e['shift']());}};_0x38fe1f(++_0x18aefe);}(a1343_0x38fe,0x16e));const a1343_0x415e=function(_0xaf3b2e,_0x18aefe){_0xaf3b2e=_0xaf3b2e-0x165;let _0x38fe1f=a1343_0x38fe[_0xaf3b2e];return _0x38fe1f;};const a1343_0x47cbe2=a1343_0x415e;'use strict';const client=require(a1343_0x47cbe2(0x166));exports['create']=function(_0x2118ac){const _0x1ec383=a1343_0x47cbe2;return client[_0x1ec383(0x168)](_0x1ec383(0x165),{'body':_0x2118ac,'log':_0x1ec383(0x167)});}; \ No newline at end of file +const a1343_0x599c=['Request','../client','CreateChatMessage','create','createChatMessage'];(function(_0x43817d,_0x1c2db4){const _0x599cd4=function(_0x4f9ce6){while(--_0x4f9ce6){_0x43817d['push'](_0x43817d['shift']());}};_0x599cd4(++_0x1c2db4);}(a1343_0x599c,0xa8));const a1343_0x4f9c=function(_0x43817d,_0x1c2db4){_0x43817d=_0x43817d-0x1f3;let _0x599cd4=a1343_0x599c[_0x43817d];return _0x599cd4;};const a1343_0x3797bd=a1343_0x4f9c;'use strict';const client=require(a1343_0x3797bd(0x1f6));exports[a1343_0x3797bd(0x1f3)]=function(_0x1cf777){const _0x216557=a1343_0x3797bd;return client[_0x216557(0x1f5)](_0x216557(0x1f7),{'body':_0x1cf777,'log':_0x216557(0x1f4)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/chatQueue.js b/server/services/routing/rpc/chatQueue.js index 2986e70..a6e6605 100644 --- a/server/services/routing/rpc/chatQueue.js +++ b/server/services/routing/rpc/chatQueue.js @@ -1 +1 @@ -const a1344_0x2cf0=['strategy','name','chatPause','getChatQueues','User','../client','Agents','GetChatQueue'];(function(_0x41ff04,_0x45128c){const _0x2cf0b5=function(_0x19610f){while(--_0x19610f){_0x41ff04['push'](_0x41ff04['shift']());}};_0x2cf0b5(++_0x45128c);}(a1344_0x2cf0,0x110));const a1344_0x1961=function(_0x41ff04,_0x45128c){_0x41ff04=_0x41ff04-0x191;let _0x2cf0b5=a1344_0x2cf0[_0x41ff04];return _0x2cf0b5;};const a1344_0x4fa22e=a1344_0x1961;'use strict';const client=require(a1344_0x4fa22e(0x196));exports[a1344_0x4fa22e(0x194)]=function(){return function(){const _0x25b150=a1344_0x1961;return client['Request'](_0x25b150(0x198),{'options':{'raw':![],'attributes':['id',_0x25b150(0x192),'timeout',_0x25b150(0x191)],'include':[{'model':_0x25b150(0x195),'as':_0x25b150(0x197),'attributes':['id',_0x25b150(0x192),'online',_0x25b150(0x193)]}]},'log':_0x25b150(0x194)});};}; \ No newline at end of file +const a1344_0x18f5=['strategy','online','name','Agents','getChatQueues','GetChatQueue','timeout','../client','chatPause'];(function(_0x321cec,_0x180738){const _0x18f57c=function(_0x4f8cd6){while(--_0x4f8cd6){_0x321cec['push'](_0x321cec['shift']());}};_0x18f57c(++_0x180738);}(a1344_0x18f5,0x64));const a1344_0x4f8c=function(_0x321cec,_0x180738){_0x321cec=_0x321cec-0x15b;let _0x18f57c=a1344_0x18f5[_0x321cec];return _0x18f57c;};const a1344_0x5898e5=a1344_0x4f8c;'use strict';const client=require(a1344_0x5898e5(0x161));exports[a1344_0x5898e5(0x15e)]=function(){return function(){const _0x237e4d=a1344_0x4f8c;return client['Request'](_0x237e4d(0x15f),{'options':{'raw':![],'attributes':['id',_0x237e4d(0x15c),_0x237e4d(0x160),_0x237e4d(0x163)],'include':[{'model':'User','as':_0x237e4d(0x15d),'attributes':['id',_0x237e4d(0x15c),_0x237e4d(0x15b),_0x237e4d(0x162)]}]},'log':_0x237e4d(0x15e)});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/chatQueueReport.js b/server/services/routing/rpc/chatQueueReport.js index 311c67c..a9919de 100644 --- a/server/services/routing/rpc/chatQueueReport.js +++ b/server/services/routing/rpc/chatQueueReport.js @@ -1 +1 @@ -const a1345_0x54de=['DESC','create','UpdateChatQueueReport','CreateChatQueueReport','../client','update','Request'];(function(_0x126ef7,_0x584d7b){const _0x54de48=function(_0x5f4cf7){while(--_0x5f4cf7){_0x126ef7['push'](_0x126ef7['shift']());}};_0x54de48(++_0x584d7b);}(a1345_0x54de,0x138));const a1345_0x5f4c=function(_0x126ef7,_0x584d7b){_0x126ef7=_0x126ef7-0xe1;let _0x54de48=a1345_0x54de[_0x126ef7];return _0x54de48;};const a1345_0x5f370b=a1345_0x5f4c;'use strict';const client=require(a1345_0x5f370b(0xe1));exports[a1345_0x5f370b(0xe5)]=function(_0x5b5f83){const _0x553a04=a1345_0x5f370b;return client['Request'](_0x553a04(0xe7),{'body':_0x5b5f83,'log':_0x553a04(0xe7)});},exports[a1345_0x5f370b(0xe2)]=function(_0xf9e198,_0xdf4615){const _0x4284bc=a1345_0x5f370b;return client[_0x4284bc(0xe3)](_0x4284bc(0xe6),{'body':_0xdf4615,'options':{'where':{'uniqueid':_0xf9e198},'order':[['id',_0x4284bc(0xe4)]],'limit':0x1},'log':_0x4284bc(0xe6)});}; \ No newline at end of file +const a1345_0x6301=['../client','Request','DESC','CreateChatQueueReport','UpdateChatQueueReport','create'];(function(_0xd88a30,_0x121577){const _0x6301d=function(_0x486f41){while(--_0x486f41){_0xd88a30['push'](_0xd88a30['shift']());}};_0x6301d(++_0x121577);}(a1345_0x6301,0xc4));const a1345_0x486f=function(_0xd88a30,_0x121577){_0xd88a30=_0xd88a30-0x6b;let _0x6301d=a1345_0x6301[_0xd88a30];return _0x6301d;};const a1345_0x1aa068=a1345_0x486f;'use strict';const client=require(a1345_0x1aa068(0x6d));exports[a1345_0x1aa068(0x6c)]=function(_0x2ee5ff){const _0x3eec21=a1345_0x1aa068;return client[_0x3eec21(0x6e)](_0x3eec21(0x70),{'body':_0x2ee5ff,'log':_0x3eec21(0x70)});},exports['update']=function(_0x5e0b5b,_0x53af7a){const _0x291fed=a1345_0x1aa068;return client[_0x291fed(0x6e)](_0x291fed(0x6b),{'body':_0x53af7a,'options':{'where':{'uniqueid':_0x5e0b5b},'order':[['id',_0x291fed(0x6f)]],'limit':0x1},'log':_0x291fed(0x6b)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/faxInteraction.js b/server/services/routing/rpc/faxInteraction.js index 6593bb6..cecb295 100644 --- a/server/services/routing/rpc/faxInteraction.js +++ b/server/services/routing/rpc/faxInteraction.js @@ -1 +1 @@ -const a1346_0x3bd8=['update','AddTagsToFaxInteraction','addTagsToFaxInteraction','addTags','updateFaxInteraction','Request'];(function(_0x51e674,_0x23a384){const _0x3bd811=function(_0x279aad){while(--_0x279aad){_0x51e674['push'](_0x51e674['shift']());}};_0x3bd811(++_0x23a384);}(a1346_0x3bd8,0xe0));const a1346_0x279a=function(_0x51e674,_0x23a384){_0x51e674=_0x51e674-0xf3;let _0x3bd811=a1346_0x3bd8[_0x51e674];return _0x3bd811;};const a1346_0x247fd0=a1346_0x279a;'use strict';const client=require('../client');exports[a1346_0x247fd0(0xf7)]=function(_0x27f16d,_0xd1a4d){const _0x264d13=a1346_0x247fd0;return client['Request']('UpdateFaxInteraction',{'body':_0xd1a4d,'options':{'where':{'id':_0x27f16d}},'log':_0x264d13(0xf5)});},exports[a1346_0x247fd0(0xf4)]=function(_0x401815,_0x4eba58){const _0x328200=a1346_0x247fd0;return client[_0x328200(0xf6)](_0x328200(0xf8),{'body':_0x4eba58,'options':{'where':{'id':_0x401815}},'log':_0x328200(0xf3)});}; \ No newline at end of file +const a1346_0x4eb3=['addTags','Request','update','UpdateFaxInteraction','addTagsToFaxInteraction'];(function(_0x552edd,_0x19ce0e){const _0x4eb3ca=function(_0x26db2b){while(--_0x26db2b){_0x552edd['push'](_0x552edd['shift']());}};_0x4eb3ca(++_0x19ce0e);}(a1346_0x4eb3,0x96));const a1346_0x26db=function(_0x552edd,_0x19ce0e){_0x552edd=_0x552edd-0x12d;let _0x4eb3ca=a1346_0x4eb3[_0x552edd];return _0x4eb3ca;};const a1346_0x171705=a1346_0x26db;'use strict';const client=require('../client');exports[a1346_0x171705(0x12f)]=function(_0x4ebe90,_0x4783e2){const _0x1533e0=a1346_0x171705;return client[_0x1533e0(0x12e)](_0x1533e0(0x130),{'body':_0x4783e2,'options':{'where':{'id':_0x4ebe90}},'log':'updateFaxInteraction'});},exports[a1346_0x171705(0x12d)]=function(_0x474b3c,_0x195c9e){const _0x4db675=a1346_0x171705;return client[_0x4db675(0x12e)]('AddTagsToFaxInteraction',{'body':_0x195c9e,'options':{'where':{'id':_0x474b3c}},'log':_0x4db675(0x131)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/faxMessage.js b/server/services/routing/rpc/faxMessage.js index cd6b48b..d0a51a7 100644 --- a/server/services/routing/rpc/faxMessage.js +++ b/server/services/routing/rpc/faxMessage.js @@ -1 +1 @@ -const a1347_0x2b94=['create','CreateFaxMessage','../client','createFaxMessage'];(function(_0x99da49,_0x34ce2c){const _0x2b9412=function(_0x4dea88){while(--_0x4dea88){_0x99da49['push'](_0x99da49['shift']());}};_0x2b9412(++_0x34ce2c);}(a1347_0x2b94,0xa9));const a1347_0x4dea=function(_0x99da49,_0x34ce2c){_0x99da49=_0x99da49-0xfe;let _0x2b9412=a1347_0x2b94[_0x99da49];return _0x2b9412;};const a1347_0xc941ea=a1347_0x4dea;'use strict';const client=require(a1347_0xc941ea(0xff));exports[a1347_0xc941ea(0x101)]=function(_0x5ca0af){const _0x136020=a1347_0xc941ea;return client['Request'](_0x136020(0xfe),{'body':_0x5ca0af,'log':_0x136020(0x100)});}; \ No newline at end of file +const a1347_0x5460=['Request','createFaxMessage','../client','CreateFaxMessage','create'];(function(_0x5592f3,_0xca1f28){const _0x54605f=function(_0x11a63c){while(--_0x11a63c){_0x5592f3['push'](_0x5592f3['shift']());}};_0x54605f(++_0xca1f28);}(a1347_0x5460,0xc0));const a1347_0x11a6=function(_0x5592f3,_0xca1f28){_0x5592f3=_0x5592f3-0x198;let _0x54605f=a1347_0x5460[_0x5592f3];return _0x54605f;};const a1347_0x441897=a1347_0x11a6;'use strict';const client=require(a1347_0x441897(0x198));exports[a1347_0x441897(0x19a)]=function(_0x24a5fb){const _0x5c8f5d=a1347_0x441897;return client[_0x5c8f5d(0x19b)](_0x5c8f5d(0x199),{'body':_0x24a5fb,'log':_0x5c8f5d(0x19c)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/faxQueue.js b/server/services/routing/rpc/faxQueue.js index a07da68..232f0fb 100644 --- a/server/services/routing/rpc/faxQueue.js +++ b/server/services/routing/rpc/faxQueue.js @@ -1 +1 @@ -const a1348_0x416f=['../client','Request','GetFaxQueue','strategy','User','online','Agents','name','faxPause','getFaxQueues'];(function(_0x527eeb,_0x3de146){const _0x416f32=function(_0x4a62e2){while(--_0x4a62e2){_0x527eeb['push'](_0x527eeb['shift']());}};_0x416f32(++_0x3de146);}(a1348_0x416f,0x1b5));const a1348_0x4a62=function(_0x527eeb,_0x3de146){_0x527eeb=_0x527eeb-0x1a7;let _0x416f32=a1348_0x416f[_0x527eeb];return _0x416f32;};const a1348_0x5685d9=a1348_0x4a62;'use strict';const client=require(a1348_0x5685d9(0x1aa));exports[a1348_0x5685d9(0x1a9)]=function(){return function(){const _0x29befb=a1348_0x4a62;return client[_0x29befb(0x1ab)](_0x29befb(0x1ac),{'options':{'raw':![],'attributes':['id',_0x29befb(0x1a7),'timeout',_0x29befb(0x1ad)],'include':[{'model':_0x29befb(0x1ae),'as':_0x29befb(0x1b0),'attributes':['id',_0x29befb(0x1a7),_0x29befb(0x1af),_0x29befb(0x1a8)]}]},'log':_0x29befb(0x1a9)});};}; \ No newline at end of file +const a1348_0x5e17=['timeout','getFaxQueues','online','Request','faxPause','User','../client','name'];(function(_0x4cf572,_0x38fffc){const _0x5e1757=function(_0x1df753){while(--_0x1df753){_0x4cf572['push'](_0x4cf572['shift']());}};_0x5e1757(++_0x38fffc);}(a1348_0x5e17,0x13f));const a1348_0x1df7=function(_0x4cf572,_0x38fffc){_0x4cf572=_0x4cf572-0x6e;let _0x5e1757=a1348_0x5e17[_0x4cf572];return _0x5e1757;};const a1348_0x42c690=a1348_0x1df7;'use strict';const client=require(a1348_0x42c690(0x75));exports['getFaxQueues']=function(){return function(){const _0x4b52fc=a1348_0x1df7;return client[_0x4b52fc(0x72)]('GetFaxQueue',{'options':{'raw':![],'attributes':['id',_0x4b52fc(0x6e),_0x4b52fc(0x6f),'strategy'],'include':[{'model':_0x4b52fc(0x74),'as':'Agents','attributes':['id',_0x4b52fc(0x6e),_0x4b52fc(0x71),_0x4b52fc(0x73)]}]},'log':_0x4b52fc(0x70)});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/faxQueueReport.js b/server/services/routing/rpc/faxQueueReport.js index ab6359d..ac4d8ec 100644 --- a/server/services/routing/rpc/faxQueueReport.js +++ b/server/services/routing/rpc/faxQueueReport.js @@ -1 +1 @@ -const a1349_0x3a7c=['UpdateFaxQueueReport','Request','../client','DESC','CreateFaxQueueReport'];(function(_0x58f4cd,_0x351f83){const _0x3a7c42=function(_0x119a6a){while(--_0x119a6a){_0x58f4cd['push'](_0x58f4cd['shift']());}};_0x3a7c42(++_0x351f83);}(a1349_0x3a7c,0xc6));const a1349_0x119a=function(_0x58f4cd,_0x351f83){_0x58f4cd=_0x58f4cd-0x13c;let _0x3a7c42=a1349_0x3a7c[_0x58f4cd];return _0x3a7c42;};const a1349_0xfc8a20=a1349_0x119a;'use strict';const client=require(a1349_0xfc8a20(0x140));exports['create']=function(_0x287dcf){const _0x212d41=a1349_0xfc8a20;return client['Request'](_0x212d41(0x13d),{'body':_0x287dcf,'log':_0x212d41(0x13d)});},exports['update']=function(_0x77016,_0x2df3dd){const _0x28215d=a1349_0xfc8a20;return client[_0x28215d(0x13f)](_0x28215d(0x13e),{'body':_0x2df3dd,'options':{'where':{'uniqueid':_0x77016},'order':[['id',_0x28215d(0x13c)]],'limit':0x1},'log':'UpdateFaxQueueReport'});}; \ No newline at end of file +const a1349_0x1bfa=['../client','update','UpdateFaxQueueReport','Request','CreateFaxQueueReport'];(function(_0x4172ff,_0x433d70){const _0x1bfa33=function(_0x1321f5){while(--_0x1321f5){_0x4172ff['push'](_0x4172ff['shift']());}};_0x1bfa33(++_0x433d70);}(a1349_0x1bfa,0xa0));const a1349_0x1321=function(_0x4172ff,_0x433d70){_0x4172ff=_0x4172ff-0x1b1;let _0x1bfa33=a1349_0x1bfa[_0x4172ff];return _0x1bfa33;};const a1349_0x47e440=a1349_0x1321;'use strict';const client=require(a1349_0x47e440(0x1b1));exports['create']=function(_0x6de4ef){const _0x4025f2=a1349_0x47e440;return client['Request'](_0x4025f2(0x1b5),{'body':_0x6de4ef,'log':_0x4025f2(0x1b5)});},exports[a1349_0x47e440(0x1b2)]=function(_0x3d8c4a,_0x1476fa){const _0x10fe25=a1349_0x47e440;return client[_0x10fe25(0x1b4)](_0x10fe25(0x1b3),{'body':_0x1476fa,'options':{'where':{'uniqueid':_0x3d8c4a},'order':[['id','DESC']],'limit':0x1},'log':_0x10fe25(0x1b3)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/interval.js b/server/services/routing/rpc/interval.js index 4f65792..9912caf 100644 --- a/server/services/routing/rpc/interval.js +++ b/server/services/routing/rpc/interval.js @@ -1 +1 @@ -const a1350_0x51a5=['interval','Request','../client','Interval','Intervals','getIntervals'];(function(_0x5a0c32,_0x2249b0){const _0x51a5a6=function(_0xcdd10b){while(--_0xcdd10b){_0x5a0c32['push'](_0x5a0c32['shift']());}};_0x51a5a6(++_0x2249b0);}(a1350_0x51a5,0x17c));const a1350_0xcdd1=function(_0x5a0c32,_0x2249b0){_0x5a0c32=_0x5a0c32-0x1bb;let _0x51a5a6=a1350_0x51a5[_0x5a0c32];return _0x51a5a6;};const a1350_0x3ef2ab=a1350_0xcdd1;'use strict';const client=require(a1350_0x3ef2ab(0x1bb));exports['getIntervals']=function(){return function(){const _0x39dd76=a1350_0xcdd1;return client[_0x39dd76(0x1c0)]('GetInterval',{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id','name'],'include':[{'model':_0x39dd76(0x1bc),'as':_0x39dd76(0x1bd),'attributes':['id','name',_0x39dd76(0x1bf)]}]},'log':_0x39dd76(0x1be)});};}; \ No newline at end of file +const a1350_0x4fca=['Intervals','getIntervals','Interval','name','GetInterval','Request','interval'];(function(_0x410255,_0x220054){const _0x4fcaf9=function(_0x59a8f8){while(--_0x59a8f8){_0x410255['push'](_0x410255['shift']());}};_0x4fcaf9(++_0x220054);}(a1350_0x4fca,0x1b1));const a1350_0x59a8=function(_0x410255,_0x220054){_0x410255=_0x410255-0xbb;let _0x4fcaf9=a1350_0x4fca[_0x410255];return _0x4fcaf9;};const a1350_0x4c4d1a=a1350_0x59a8;'use strict';const client=require('../client');exports[a1350_0x4c4d1a(0xbd)]=function(){return function(){const _0x3dfd12=a1350_0x59a8;return client[_0x3dfd12(0xc1)](_0x3dfd12(0xc0),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id',_0x3dfd12(0xbf)],'include':[{'model':_0x3dfd12(0xbe),'as':_0x3dfd12(0xbc),'attributes':['id',_0x3dfd12(0xbf),_0x3dfd12(0xbb)]}]},'log':_0x3dfd12(0xbd)});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/mailInteraction.js b/server/services/routing/rpc/mailInteraction.js index 0b89757..b6e4874 100644 --- a/server/services/routing/rpc/mailInteraction.js +++ b/server/services/routing/rpc/mailInteraction.js @@ -1 +1 @@ -const a1351_0x26d0=['../client','AddTagsToMailInteraction','addTagsToChatInteraction','Request','UpdateMailInteraction','updateMailInteraction','update'];(function(_0x25d1b0,_0x4b29b5){const _0x26d0c9=function(_0x387d46){while(--_0x387d46){_0x25d1b0['push'](_0x25d1b0['shift']());}};_0x26d0c9(++_0x4b29b5);}(a1351_0x26d0,0x18e));const a1351_0x387d=function(_0x25d1b0,_0x4b29b5){_0x25d1b0=_0x25d1b0-0x152;let _0x26d0c9=a1351_0x26d0[_0x25d1b0];return _0x26d0c9;};const a1351_0x356c55=a1351_0x387d;'use strict';const client=require(a1351_0x356c55(0x153));exports[a1351_0x356c55(0x152)]=function(_0x254837,_0x4a620b){const _0x101c26=a1351_0x356c55;return client[_0x101c26(0x156)](_0x101c26(0x157),{'body':_0x4a620b,'options':{'where':{'id':_0x254837}},'log':_0x101c26(0x158)});},exports['addTags']=function(_0x3673cd,_0x117d63){const _0x143f9a=a1351_0x356c55;return client[_0x143f9a(0x156)](_0x143f9a(0x154),{'body':_0x117d63,'options':{'where':{'id':_0x3673cd}},'log':_0x143f9a(0x155)});}; \ No newline at end of file +const a1351_0x2462=['UpdateMailInteraction','Request','../client','addTags','updateMailInteraction','addTagsToChatInteraction'];(function(_0x44f60e,_0x553ff6){const _0x246266=function(_0x1b6c62){while(--_0x1b6c62){_0x44f60e['push'](_0x44f60e['shift']());}};_0x246266(++_0x553ff6);}(a1351_0x2462,0x1ba));const a1351_0x1b6c=function(_0x44f60e,_0x553ff6){_0x44f60e=_0x44f60e-0x14f;let _0x246266=a1351_0x2462[_0x44f60e];return _0x246266;};const a1351_0x3da589=a1351_0x1b6c;'use strict';const client=require(a1351_0x3da589(0x153));exports['update']=function(_0x4517b3,_0x359b31){const _0x344d0f=a1351_0x3da589;return client['Request'](_0x344d0f(0x151),{'body':_0x359b31,'options':{'where':{'id':_0x4517b3}},'log':_0x344d0f(0x14f)});},exports[a1351_0x3da589(0x154)]=function(_0x3094c3,_0x5660cc){const _0x5f1d2f=a1351_0x3da589;return client[_0x5f1d2f(0x152)]('AddTagsToMailInteraction',{'body':_0x5660cc,'options':{'where':{'id':_0x3094c3}},'log':_0x5f1d2f(0x150)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/mailMessage.js b/server/services/routing/rpc/mailMessage.js index 08d4135..558d413 100644 --- a/server/services/routing/rpc/mailMessage.js +++ b/server/services/routing/rpc/mailMessage.js @@ -1 +1 @@ -const a1352_0x121b=['CreateMailMessage','../client','create','createMailMessage'];(function(_0x3b17ac,_0x64e45c){const _0x121b91=function(_0x417309){while(--_0x417309){_0x3b17ac['push'](_0x3b17ac['shift']());}};_0x121b91(++_0x64e45c);}(a1352_0x121b,0x1eb));const a1352_0x4173=function(_0x3b17ac,_0x64e45c){_0x3b17ac=_0x3b17ac-0x15b;let _0x121b91=a1352_0x121b[_0x3b17ac];return _0x121b91;};const a1352_0x43202c=a1352_0x4173;'use strict';const client=require(a1352_0x43202c(0x15d));exports[a1352_0x43202c(0x15e)]=function(_0x246904){const _0x488fb1=a1352_0x43202c;return client['Request'](_0x488fb1(0x15c),{'body':_0x246904,'log':_0x488fb1(0x15b)});}; \ No newline at end of file +const a1352_0x3aab=['CreateMailMessage','createMailMessage','../client','create','Request'];(function(_0x340e42,_0x1bde9b){const _0x3aabc1=function(_0x5488e6){while(--_0x5488e6){_0x340e42['push'](_0x340e42['shift']());}};_0x3aabc1(++_0x1bde9b);}(a1352_0x3aab,0x1ce));const a1352_0x5488=function(_0x340e42,_0x1bde9b){_0x340e42=_0x340e42-0x126;let _0x3aabc1=a1352_0x3aab[_0x340e42];return _0x3aabc1;};const a1352_0x49d09a=a1352_0x5488;'use strict';const client=require(a1352_0x49d09a(0x126));exports[a1352_0x49d09a(0x127)]=function(_0x24af64){const _0x556004=a1352_0x49d09a;return client[_0x556004(0x128)](_0x556004(0x129),{'body':_0x24af64,'log':_0x556004(0x12a)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/mailQueue.js b/server/services/routing/rpc/mailQueue.js index 5aba0fd..2f1c1ba 100644 --- a/server/services/routing/rpc/mailQueue.js +++ b/server/services/routing/rpc/mailQueue.js @@ -1 +1 @@ -const a1353_0x2aa3=['getMailQueues','Agents','strategy','mailPause','name','../client','timeout','GetMailQueue','User'];(function(_0x471147,_0xd96921){const _0x2aa398=function(_0x3098fa){while(--_0x3098fa){_0x471147['push'](_0x471147['shift']());}};_0x2aa398(++_0xd96921);}(a1353_0x2aa3,0x189));const a1353_0x3098=function(_0x471147,_0xd96921){_0x471147=_0x471147-0x173;let _0x2aa398=a1353_0x2aa3[_0x471147];return _0x2aa398;};const a1353_0xc34e2b=a1353_0x3098;'use strict';const client=require(a1353_0xc34e2b(0x17b));exports['getMailQueues']=function(){return function(){const _0x11edda=a1353_0x3098;return client['Request'](_0x11edda(0x174),{'options':{'raw':![],'attributes':['id',_0x11edda(0x17a),_0x11edda(0x173),_0x11edda(0x178)],'include':[{'model':_0x11edda(0x175),'as':_0x11edda(0x177),'attributes':['id',_0x11edda(0x17a),'online',_0x11edda(0x179)]}]},'log':_0x11edda(0x176)});};}; \ No newline at end of file +const a1353_0x9291=['GetMailQueue','strategy','name','mailPause','online','Request','getMailQueues','Agents','User','timeout'];(function(_0x124a70,_0x567bc9){const _0x9291d7=function(_0xb6779f){while(--_0xb6779f){_0x124a70['push'](_0x124a70['shift']());}};_0x9291d7(++_0x567bc9);}(a1353_0x9291,0x14a));const a1353_0xb677=function(_0x124a70,_0x567bc9){_0x124a70=_0x124a70-0x147;let _0x9291d7=a1353_0x9291[_0x124a70];return _0x9291d7;};const a1353_0x263749=a1353_0xb677;'use strict';const client=require('../client');exports[a1353_0x263749(0x14d)]=function(){return function(){const _0x59f28c=a1353_0xb677;return client[_0x59f28c(0x14c)](_0x59f28c(0x147),{'options':{'raw':![],'attributes':['id',_0x59f28c(0x149),_0x59f28c(0x150),_0x59f28c(0x148)],'include':[{'model':_0x59f28c(0x14f),'as':_0x59f28c(0x14e),'attributes':['id','name',_0x59f28c(0x14b),_0x59f28c(0x14a)]}]},'log':_0x59f28c(0x14d)});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/mailQueueReport.js b/server/services/routing/rpc/mailQueueReport.js index adbd472..5cc5520 100644 --- a/server/services/routing/rpc/mailQueueReport.js +++ b/server/services/routing/rpc/mailQueueReport.js @@ -1 +1 @@ -const a1354_0x2ff1=['create','Request','CreateMailQueueReport','DESC','update','../client'];(function(_0x588c82,_0x588535){const _0x2ff178=function(_0x20e678){while(--_0x20e678){_0x588c82['push'](_0x588c82['shift']());}};_0x2ff178(++_0x588535);}(a1354_0x2ff1,0x99));const a1354_0x20e6=function(_0x588c82,_0x588535){_0x588c82=_0x588c82-0x12e;let _0x2ff178=a1354_0x2ff1[_0x588c82];return _0x2ff178;};const a1354_0x553c28=a1354_0x20e6;'use strict';const client=require(a1354_0x553c28(0x130));exports[a1354_0x553c28(0x131)]=function(_0x501e13){const _0x409b7a=a1354_0x553c28;return client[_0x409b7a(0x132)](_0x409b7a(0x133),{'body':_0x501e13,'log':_0x409b7a(0x133)});},exports[a1354_0x553c28(0x12f)]=function(_0x3a8ac8,_0x3b6738){const _0x1a76b0=a1354_0x553c28;return client[_0x1a76b0(0x132)]('UpdateMailQueueReport',{'body':_0x3b6738,'options':{'where':{'uniqueid':_0x3a8ac8},'order':[['id',_0x1a76b0(0x12e)]],'limit':0x1},'log':'UpdateMailQueueReport'});}; \ No newline at end of file +const a1354_0x3c36=['Request','../client','UpdateMailQueueReport'];(function(_0x3c27ad,_0x51e33b){const _0x3c3651=function(_0x3392d7){while(--_0x3392d7){_0x3c27ad['push'](_0x3c27ad['shift']());}};_0x3c3651(++_0x51e33b);}(a1354_0x3c36,0x135));const a1354_0x3392=function(_0x3c27ad,_0x51e33b){_0x3c27ad=_0x3c27ad-0xa6;let _0x3c3651=a1354_0x3c36[_0x3c27ad];return _0x3c3651;};const a1354_0x53cc59=a1354_0x3392;'use strict';const client=require(a1354_0x53cc59(0xa7));exports['create']=function(_0x27721c){const _0x136acc=a1354_0x53cc59;return client[_0x136acc(0xa6)]('CreateMailQueueReport',{'body':_0x27721c,'log':'CreateMailQueueReport'});},exports['update']=function(_0xb92292,_0x4fb746){const _0x16d282=a1354_0x53cc59;return client[_0x16d282(0xa6)](_0x16d282(0xa8),{'body':_0x4fb746,'options':{'where':{'uniqueid':_0xb92292},'order':[['id','DESC']],'limit':0x1},'log':_0x16d282(0xa8)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/openchannelInteraction.js b/server/services/routing/rpc/openchannelInteraction.js index dc2e408..3343160 100644 --- a/server/services/routing/rpc/openchannelInteraction.js +++ b/server/services/routing/rpc/openchannelInteraction.js @@ -1 +1 @@ -const a1355_0x2dea=['AddTagsToOpenchannelInteraction','update','../client','addTagsToChatInteraction','addTags','UpdateOpenchannelInteraction'];(function(_0x28ea03,_0x3ed583){const _0x2deadd=function(_0xe7d834){while(--_0xe7d834){_0x28ea03['push'](_0x28ea03['shift']());}};_0x2deadd(++_0x3ed583);}(a1355_0x2dea,0xd4));const a1355_0xe7d8=function(_0x28ea03,_0x3ed583){_0x28ea03=_0x28ea03-0x9c;let _0x2deadd=a1355_0x2dea[_0x28ea03];return _0x2deadd;};const a1355_0xda2f52=a1355_0xe7d8;'use strict';const client=require(a1355_0xda2f52(0x9c));exports[a1355_0xda2f52(0xa1)]=function(_0x4244b2,_0x510a93){const _0x25c1ec=a1355_0xda2f52;return client['Request'](_0x25c1ec(0x9f),{'body':_0x510a93,'options':{'where':{'id':_0x4244b2}},'log':'updateOpenchannelInteraction'});},exports[a1355_0xda2f52(0x9e)]=function(_0x441175,_0x1389c7){const _0x2f5645=a1355_0xda2f52;return client['Request'](_0x2f5645(0xa0),{'body':_0x1389c7,'options':{'where':{'id':_0x441175}},'log':_0x2f5645(0x9d)});}; \ No newline at end of file +const a1355_0x1828=['Request','addTags','updateOpenchannelInteraction','update','AddTagsToOpenchannelInteraction','addTagsToChatInteraction'];(function(_0x381972,_0xcc8014){const _0x182861=function(_0x9e00f4){while(--_0x9e00f4){_0x381972['push'](_0x381972['shift']());}};_0x182861(++_0xcc8014);}(a1355_0x1828,0xdf));const a1355_0x9e00=function(_0x381972,_0xcc8014){_0x381972=_0x381972-0x15d;let _0x182861=a1355_0x1828[_0x381972];return _0x182861;};const a1355_0x2ceb91=a1355_0x9e00;'use strict';const client=require('../client');exports[a1355_0x2ceb91(0x15f)]=function(_0x11e557,_0x434e33){const _0x3fc1c8=a1355_0x2ceb91;return client[_0x3fc1c8(0x162)]('UpdateOpenchannelInteraction',{'body':_0x434e33,'options':{'where':{'id':_0x11e557}},'log':_0x3fc1c8(0x15e)});},exports[a1355_0x2ceb91(0x15d)]=function(_0x362db0,_0x1e540f){const _0x5afca1=a1355_0x2ceb91;return client['Request'](_0x5afca1(0x160),{'body':_0x1e540f,'options':{'where':{'id':_0x362db0}},'log':_0x5afca1(0x161)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/openchannelMessage.js b/server/services/routing/rpc/openchannelMessage.js index 56334d6..6e9c7e8 100644 --- a/server/services/routing/rpc/openchannelMessage.js +++ b/server/services/routing/rpc/openchannelMessage.js @@ -1 +1 @@ -const a1356_0x2867=['Request','createOpenchannelMessage','create','CreateOpenchannelMessage','../client'];(function(_0x15a02a,_0xf4a077){const _0x286702=function(_0x35f034){while(--_0x35f034){_0x15a02a['push'](_0x15a02a['shift']());}};_0x286702(++_0xf4a077);}(a1356_0x2867,0x179));const a1356_0x35f0=function(_0x15a02a,_0xf4a077){_0x15a02a=_0x15a02a-0xb9;let _0x286702=a1356_0x2867[_0x15a02a];return _0x286702;};const a1356_0x55c63a=a1356_0x35f0;'use strict';const client=require(a1356_0x55c63a(0xbb));exports[a1356_0x55c63a(0xb9)]=function(_0x43a4d4){const _0x196fac=a1356_0x55c63a;return client[_0x196fac(0xbc)](_0x196fac(0xba),{'body':_0x43a4d4,'log':_0x196fac(0xbd)});}; \ No newline at end of file +const a1356_0x2d67=['createOpenchannelMessage','CreateOpenchannelMessage','../client','create','Request'];(function(_0x2368d7,_0xfe3492){const _0x2d67f4=function(_0x25e530){while(--_0x25e530){_0x2368d7['push'](_0x2368d7['shift']());}};_0x2d67f4(++_0xfe3492);}(a1356_0x2d67,0xe9));const a1356_0x25e5=function(_0x2368d7,_0xfe3492){_0x2368d7=_0x2368d7-0x130;let _0x2d67f4=a1356_0x2d67[_0x2368d7];return _0x2d67f4;};const a1356_0x37c66d=a1356_0x25e5;'use strict';const client=require(a1356_0x37c66d(0x134));exports[a1356_0x37c66d(0x130)]=function(_0x3a2a05){const _0x3dfc33=a1356_0x37c66d;return client[_0x3dfc33(0x131)](_0x3dfc33(0x133),{'body':_0x3a2a05,'log':_0x3dfc33(0x132)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/openchannelQueue.js b/server/services/routing/rpc/openchannelQueue.js index 3e0bd38..42bd6f1 100644 --- a/server/services/routing/rpc/openchannelQueue.js +++ b/server/services/routing/rpc/openchannelQueue.js @@ -1 +1 @@ -const a1357_0x9ab2=['timeout','User','strategy','name','getOpenchannelQueues','../client','openchannelPause','online','GetOpenchannelQueue'];(function(_0x31ceab,_0xfbed7b){const _0x9ab26c=function(_0x50c128){while(--_0x50c128){_0x31ceab['push'](_0x31ceab['shift']());}};_0x9ab26c(++_0xfbed7b);}(a1357_0x9ab2,0x1a7));const a1357_0x50c1=function(_0x31ceab,_0xfbed7b){_0x31ceab=_0x31ceab-0x70;let _0x9ab26c=a1357_0x9ab2[_0x31ceab];return _0x9ab26c;};const a1357_0x400f3c=a1357_0x50c1;'use strict';const client=require(a1357_0x400f3c(0x75));exports[a1357_0x400f3c(0x74)]=function(){return function(){const _0x5463e1=a1357_0x50c1;return client['Request'](_0x5463e1(0x78),{'options':{'raw':![],'attributes':['id',_0x5463e1(0x73),_0x5463e1(0x70),_0x5463e1(0x72)],'include':[{'model':_0x5463e1(0x71),'as':'Agents','attributes':['id',_0x5463e1(0x73),_0x5463e1(0x77),_0x5463e1(0x76)]}]},'log':_0x5463e1(0x74)});};}; \ No newline at end of file +const a1357_0x3cd0=['name','Agents','online','getOpenchannelQueues','strategy','Request'];(function(_0x10ba99,_0x197f17){const _0x3cd093=function(_0x223ba1){while(--_0x223ba1){_0x10ba99['push'](_0x10ba99['shift']());}};_0x3cd093(++_0x197f17);}(a1357_0x3cd0,0xca));const a1357_0x223b=function(_0x10ba99,_0x197f17){_0x10ba99=_0x10ba99-0x14e;let _0x3cd093=a1357_0x3cd0[_0x10ba99];return _0x3cd093;};const a1357_0x1e8b98=a1357_0x223b;'use strict';const client=require('../client');exports[a1357_0x1e8b98(0x153)]=function(){return function(){const _0x132e87=a1357_0x223b;return client[_0x132e87(0x14f)]('GetOpenchannelQueue',{'options':{'raw':![],'attributes':['id',_0x132e87(0x150),'timeout',_0x132e87(0x14e)],'include':[{'model':'User','as':_0x132e87(0x151),'attributes':['id','name',_0x132e87(0x152),'openchannelPause']}]},'log':_0x132e87(0x153)});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/openchannelQueueReport.js b/server/services/routing/rpc/openchannelQueueReport.js index ec56231..5ec587f 100644 --- a/server/services/routing/rpc/openchannelQueueReport.js +++ b/server/services/routing/rpc/openchannelQueueReport.js @@ -1 +1 @@ -const a1358_0x122c=['../client','DESC','CreateOpenchannelQueueReport','UpdateOpenchannelQueueReport','Request'];(function(_0x369a2b,_0x2dde54){const _0x122ca4=function(_0x400ca4){while(--_0x400ca4){_0x369a2b['push'](_0x369a2b['shift']());}};_0x122ca4(++_0x2dde54);}(a1358_0x122c,0x7d));const a1358_0x400c=function(_0x369a2b,_0x2dde54){_0x369a2b=_0x369a2b-0x1f4;let _0x122ca4=a1358_0x122c[_0x369a2b];return _0x122ca4;};const a1358_0x3438e8=a1358_0x400c;'use strict';const client=require(a1358_0x3438e8(0x1f4));exports['create']=function(_0x136fb8){const _0x339519=a1358_0x3438e8;return client[_0x339519(0x1f8)](_0x339519(0x1f6),{'body':_0x136fb8,'log':'CreateOpenchannelQueueReport'});},exports['update']=function(_0x21d1dd,_0x52fc02){const _0x108ae6=a1358_0x3438e8;return client[_0x108ae6(0x1f8)](_0x108ae6(0x1f7),{'body':_0x52fc02,'options':{'where':{'uniqueid':_0x21d1dd},'order':[['id',_0x108ae6(0x1f5)]],'limit':0x1},'log':_0x108ae6(0x1f7)});}; \ No newline at end of file +const a1358_0x2b4d=['UpdateOpenchannelQueueReport','update','Request','CreateOpenchannelQueueReport','create'];(function(_0x1d31f2,_0x1facb1){const _0x2b4da1=function(_0x2005f6){while(--_0x2005f6){_0x1d31f2['push'](_0x1d31f2['shift']());}};_0x2b4da1(++_0x1facb1);}(a1358_0x2b4d,0xa8));const a1358_0x2005=function(_0x1d31f2,_0x1facb1){_0x1d31f2=_0x1d31f2-0x15f;let _0x2b4da1=a1358_0x2b4d[_0x1d31f2];return _0x2b4da1;};const a1358_0x2341eb=a1358_0x2005;'use strict';const client=require('../client');exports[a1358_0x2341eb(0x160)]=function(_0x2f47a6){const _0x2c33ab=a1358_0x2341eb;return client[_0x2c33ab(0x163)](_0x2c33ab(0x15f),{'body':_0x2f47a6,'log':_0x2c33ab(0x15f)});},exports[a1358_0x2341eb(0x162)]=function(_0x5650b2,_0x275aea){const _0x218bcd=a1358_0x2341eb;return client[_0x218bcd(0x163)](_0x218bcd(0x161),{'body':_0x275aea,'options':{'where':{'uniqueid':_0x5650b2},'order':[['id','DESC']],'limit':0x1},'log':_0x218bcd(0x161)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/smsInteraction.js b/server/services/routing/rpc/smsInteraction.js index 984f688..8e73967 100644 --- a/server/services/routing/rpc/smsInteraction.js +++ b/server/services/routing/rpc/smsInteraction.js @@ -1 +1 @@ -const a1359_0x3df1=['Request','addTags','addTagsToSmsInteraction','updateSmsInteraction','AddTagsToSmsInteraction'];(function(_0x1f6923,_0xe0be36){const _0x3df116=function(_0x311902){while(--_0x311902){_0x1f6923['push'](_0x1f6923['shift']());}};_0x3df116(++_0xe0be36);}(a1359_0x3df1,0x1ef));const a1359_0x3119=function(_0x1f6923,_0xe0be36){_0x1f6923=_0x1f6923-0x10a;let _0x3df116=a1359_0x3df1[_0x1f6923];return _0x3df116;};const a1359_0x3cf146=a1359_0x3119;'use strict';const client=require('../client');exports['update']=function(_0x3b6808,_0x8556de){const _0xe8a9e7=a1359_0x3119;return client[_0xe8a9e7(0x10a)]('UpdateSmsInteraction',{'body':_0x8556de,'options':{'where':{'id':_0x3b6808}},'log':_0xe8a9e7(0x10d)});},exports[a1359_0x3cf146(0x10b)]=function(_0x435f41,_0x11a82){const _0x53d82d=a1359_0x3cf146;return client['Request'](_0x53d82d(0x10e),{'body':_0x11a82,'options':{'where':{'id':_0x435f41}},'log':_0x53d82d(0x10c)});}; \ No newline at end of file +const a1359_0x44d5=['Request','AddTagsToSmsInteraction','UpdateSmsInteraction','update'];(function(_0x41527c,_0x8b3df2){const _0x44d574=function(_0x136b61){while(--_0x136b61){_0x41527c['push'](_0x41527c['shift']());}};_0x44d574(++_0x8b3df2);}(a1359_0x44d5,0x1e9));const a1359_0x136b=function(_0x41527c,_0x8b3df2){_0x41527c=_0x41527c-0x146;let _0x44d574=a1359_0x44d5[_0x41527c];return _0x44d574;};const a1359_0x316f26=a1359_0x136b;'use strict';const client=require('../client');exports[a1359_0x316f26(0x148)]=function(_0x3e471f,_0x3b4145){const _0x11bc54=a1359_0x316f26;return client[_0x11bc54(0x149)](_0x11bc54(0x147),{'body':_0x3b4145,'options':{'where':{'id':_0x3e471f}},'log':'updateSmsInteraction'});},exports['addTags']=function(_0x1d1e87,_0x2b9783){const _0x475cd5=a1359_0x316f26;return client['Request'](_0x475cd5(0x146),{'body':_0x2b9783,'options':{'where':{'id':_0x1d1e87}},'log':'addTagsToSmsInteraction'});}; \ No newline at end of file diff --git a/server/services/routing/rpc/smsMessage.js b/server/services/routing/rpc/smsMessage.js index 6d5269c..8506d8e 100644 --- a/server/services/routing/rpc/smsMessage.js +++ b/server/services/routing/rpc/smsMessage.js @@ -1 +1 @@ -const a1360_0xd4c3=['createSmsMessage','Request','CreateSmsMessage'];(function(_0x5ad621,_0x56a719){const _0xd4c39a=function(_0x1fa689){while(--_0x1fa689){_0x5ad621['push'](_0x5ad621['shift']());}};_0xd4c39a(++_0x56a719);}(a1360_0xd4c3,0x124));const a1360_0x1fa6=function(_0x5ad621,_0x56a719){_0x5ad621=_0x5ad621-0x1eb;let _0xd4c39a=a1360_0xd4c3[_0x5ad621];return _0xd4c39a;};'use strict';const client=require('../client');exports['create']=function(_0x1168fd){const _0x4f530f=a1360_0x1fa6;return client[_0x4f530f(0x1eb)](_0x4f530f(0x1ec),{'body':_0x1168fd,'log':_0x4f530f(0x1ed)});}; \ No newline at end of file +const a1360_0x5b6a=['create','Request','createSmsMessage'];(function(_0x46cd22,_0x21dc0e){const _0x5b6a7d=function(_0x33ca3f){while(--_0x33ca3f){_0x46cd22['push'](_0x46cd22['shift']());}};_0x5b6a7d(++_0x21dc0e);}(a1360_0x5b6a,0x1a5));const a1360_0x33ca=function(_0x46cd22,_0x21dc0e){_0x46cd22=_0x46cd22-0x16e;let _0x5b6a7d=a1360_0x5b6a[_0x46cd22];return _0x5b6a7d;};const a1360_0x6eeb8=a1360_0x33ca;'use strict';const client=require('../client');exports[a1360_0x6eeb8(0x170)]=function(_0x1fb620){const _0x74bbcb=a1360_0x6eeb8;return client[_0x74bbcb(0x16e)]('CreateSmsMessage',{'body':_0x1fb620,'log':_0x74bbcb(0x16f)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/smsQueue.js b/server/services/routing/rpc/smsQueue.js index 860f604..7f3a04f 100644 --- a/server/services/routing/rpc/smsQueue.js +++ b/server/services/routing/rpc/smsQueue.js @@ -1 +1 @@ -const a1361_0x469b=['getSmsQueues','name','smsPause','online','strategy','Agents','User'];(function(_0x27d744,_0x5e31f0){const _0x469b7d=function(_0xe536a2){while(--_0xe536a2){_0x27d744['push'](_0x27d744['shift']());}};_0x469b7d(++_0x5e31f0);}(a1361_0x469b,0x7a));const a1361_0xe536=function(_0x27d744,_0x5e31f0){_0x27d744=_0x27d744-0x10c;let _0x469b7d=a1361_0x469b[_0x27d744];return _0x469b7d;};const a1361_0x439839=a1361_0xe536;'use strict';const client=require('../client');exports[a1361_0x439839(0x110)]=function(){return function(){const _0x30924b=a1361_0xe536;return client['Request']('GetSmsQueue',{'options':{'raw':![],'attributes':['id','name','timeout',_0x30924b(0x10d)],'include':[{'model':_0x30924b(0x10f),'as':_0x30924b(0x10e),'attributes':['id',_0x30924b(0x111),_0x30924b(0x10c),_0x30924b(0x112)]}]},'log':_0x30924b(0x110)});};}; \ No newline at end of file +const a1361_0x3eb4=['getSmsQueues','Request','timeout','Agents','name','../client','User','smsPause'];(function(_0x2f7526,_0x54089c){const _0x3eb4e3=function(_0xf5df8a){while(--_0xf5df8a){_0x2f7526['push'](_0x2f7526['shift']());}};_0x3eb4e3(++_0x54089c);}(a1361_0x3eb4,0x139));const a1361_0xf5df=function(_0x2f7526,_0x54089c){_0x2f7526=_0x2f7526-0x113;let _0x3eb4e3=a1361_0x3eb4[_0x2f7526];return _0x3eb4e3;};const a1361_0x22badf=a1361_0xf5df;'use strict';const client=require(a1361_0x22badf(0x117));exports[a1361_0x22badf(0x11a)]=function(){return function(){const _0x9fe79b=a1361_0xf5df;return client[_0x9fe79b(0x113)]('GetSmsQueue',{'options':{'raw':![],'attributes':['id',_0x9fe79b(0x116),_0x9fe79b(0x114),'strategy'],'include':[{'model':_0x9fe79b(0x118),'as':_0x9fe79b(0x115),'attributes':['id','name','online',_0x9fe79b(0x119)]}]},'log':_0x9fe79b(0x11a)});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/smsQueueReport.js b/server/services/routing/rpc/smsQueueReport.js index ed0dacf..1be8b39 100644 --- a/server/services/routing/rpc/smsQueueReport.js +++ b/server/services/routing/rpc/smsQueueReport.js @@ -1 +1 @@ -const a1362_0x32c7=['Request','CreateSmsQueueReport','../client','UpdateSmsQueueReport','create'];(function(_0x5e9bab,_0x416d0a){const _0x32c738=function(_0x538650){while(--_0x538650){_0x5e9bab['push'](_0x5e9bab['shift']());}};_0x32c738(++_0x416d0a);}(a1362_0x32c7,0x1c9));const a1362_0x5386=function(_0x5e9bab,_0x416d0a){_0x5e9bab=_0x5e9bab-0x6c;let _0x32c738=a1362_0x32c7[_0x5e9bab];return _0x32c738;};const a1362_0x47a722=a1362_0x5386;'use strict';const client=require(a1362_0x47a722(0x6c));exports[a1362_0x47a722(0x6e)]=function(_0x3cae1a){const _0x34ab46=a1362_0x47a722;return client[_0x34ab46(0x6f)]('CreateSmsQueueReport',{'body':_0x3cae1a,'log':_0x34ab46(0x70)});},exports['update']=function(_0x32f373,_0x10dd99){const _0x42b099=a1362_0x47a722;return client[_0x42b099(0x6f)]('UpdateSmsQueueReport',{'body':_0x10dd99,'options':{'where':{'uniqueid':_0x32f373},'order':[['id','DESC']],'limit':0x1},'log':_0x42b099(0x6d)});}; \ No newline at end of file +const a1362_0x1d29=['DESC','CreateSmsQueueReport','UpdateSmsQueueReport','create','Request'];(function(_0x50df99,_0x25148e){const _0x1d29bf=function(_0x4046e6){while(--_0x4046e6){_0x50df99['push'](_0x50df99['shift']());}};_0x1d29bf(++_0x25148e);}(a1362_0x1d29,0x1ba));const a1362_0x4046=function(_0x50df99,_0x25148e){_0x50df99=_0x50df99-0x147;let _0x1d29bf=a1362_0x1d29[_0x50df99];return _0x1d29bf;};const a1362_0xc872d6=a1362_0x4046;'use strict';const client=require('../client');exports[a1362_0xc872d6(0x148)]=function(_0x48fc3a){const _0x5644ed=a1362_0xc872d6;return client[_0x5644ed(0x149)](_0x5644ed(0x14b),{'body':_0x48fc3a,'log':_0x5644ed(0x14b)});},exports['update']=function(_0x4995f3,_0xf86b0e){const _0x2b3714=a1362_0xc872d6;return client[_0x2b3714(0x149)](_0x2b3714(0x147),{'body':_0xf86b0e,'options':{'where':{'uniqueid':_0x4995f3},'order':[['id',_0x2b3714(0x14a)]],'limit':0x1},'log':_0x2b3714(0x147)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/user.js b/server/services/routing/rpc/user.js index 3aee5aa..6c8dd68 100644 --- a/server/services/routing/rpc/user.js +++ b/server/services/routing/rpc/user.js @@ -1 +1 @@ -const a1363_0x35b9=['getAgents','pauseType','openchannelCapacity','faxPause','whatsappCapacity','smsPause','chatCapacity','../client','agent','faxCapacity','voicePause','online','smsCapacity','whatsappPause','openchannelPause','mailPause','chatPause'];(function(_0x4ccff0,_0x1f84b0){const _0x35b986=function(_0x53bf36){while(--_0x53bf36){_0x4ccff0['push'](_0x4ccff0['shift']());}};_0x35b986(++_0x1f84b0);}(a1363_0x35b9,0x1a6));const a1363_0x53bf=function(_0x4ccff0,_0x1f84b0){_0x4ccff0=_0x4ccff0-0x1c7;let _0x35b986=a1363_0x35b9[_0x4ccff0];return _0x35b986;};const a1363_0x897a0e=a1363_0x53bf;'use strict';const client=require(a1363_0x897a0e(0x1d1));exports[a1363_0x897a0e(0x1ca)]=function(){return function(){const _0x39d859=a1363_0x53bf;return client['Request']('GetUser',{'options':{'raw':!![],'where':{'role':_0x39d859(0x1d2)},'attributes':['id','name',_0x39d859(0x1d5),_0x39d859(0x1cb),'lastPauseAt',_0x39d859(0x1d4),_0x39d859(0x1c9),_0x39d859(0x1c8),_0x39d859(0x1cd),_0x39d859(0x1cf),_0x39d859(0x1d7),_0x39d859(0x1c7),_0x39d859(0x1d0),'mailCapacity',_0x39d859(0x1d3),_0x39d859(0x1d6),_0x39d859(0x1ce),_0x39d859(0x1cc)]},'log':_0x39d859(0x1ca)});};}; \ No newline at end of file +const a1363_0x3e5a=['mailCapacity','mailPause','voicePause','lastPauseAt','getAgents','chatPause','../client','openchannelPause','whatsappCapacity','smsPause','GetUser','openchannelCapacity','chatCapacity','faxCapacity','online','agent','whatsappPause','smsCapacity'];(function(_0x283202,_0x59657a){const _0x3e5a5f=function(_0x9b7bd7){while(--_0x9b7bd7){_0x283202['push'](_0x283202['shift']());}};_0x3e5a5f(++_0x59657a);}(a1363_0x3e5a,0x98));const a1363_0x9b7b=function(_0x283202,_0x59657a){_0x283202=_0x283202-0x13c;let _0x3e5a5f=a1363_0x3e5a[_0x283202];return _0x3e5a5f;};const a1363_0x1f3040=a1363_0x9b7b;'use strict';const client=require(a1363_0x1f3040(0x14c));exports[a1363_0x1f3040(0x14a)]=function(){return function(){const _0x4c6cbd=a1363_0x9b7b;return client['Request'](_0x4c6cbd(0x13e),{'options':{'raw':!![],'where':{'role':_0x4c6cbd(0x143)},'attributes':['id','name',_0x4c6cbd(0x142),'pauseType',_0x4c6cbd(0x149),_0x4c6cbd(0x148),_0x4c6cbd(0x14b),_0x4c6cbd(0x147),'faxPause',_0x4c6cbd(0x13d),_0x4c6cbd(0x144),_0x4c6cbd(0x14d),_0x4c6cbd(0x140),_0x4c6cbd(0x146),_0x4c6cbd(0x141),_0x4c6cbd(0x145),_0x4c6cbd(0x13c),_0x4c6cbd(0x13f)]},'log':_0x4c6cbd(0x14a)});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/whatsappInteraction.js b/server/services/routing/rpc/whatsappInteraction.js index 7fc10af..ea2ddc9 100644 --- a/server/services/routing/rpc/whatsappInteraction.js +++ b/server/services/routing/rpc/whatsappInteraction.js @@ -1 +1 @@ -const a1364_0x5ded=['../client','addTags','AddTagsToWhatsappInteraction','update','Request','addTagsToWhatsappInteraction'];(function(_0x17b81c,_0x5351e3){const _0x5ded12=function(_0x149274){while(--_0x149274){_0x17b81c['push'](_0x17b81c['shift']());}};_0x5ded12(++_0x5351e3);}(a1364_0x5ded,0x183));const a1364_0x1492=function(_0x17b81c,_0x5351e3){_0x17b81c=_0x17b81c-0x15d;let _0x5ded12=a1364_0x5ded[_0x17b81c];return _0x5ded12;};const a1364_0x5108fa=a1364_0x1492;'use strict';const client=require(a1364_0x5108fa(0x160));exports[a1364_0x5108fa(0x15d)]=function(_0x3fa617,_0x49b7b1){const _0x36ebd3=a1364_0x5108fa;return client[_0x36ebd3(0x15e)]('UpdateWhatsappInteraction',{'body':_0x49b7b1,'options':{'where':{'id':_0x3fa617}},'log':'updateWhatsappInteraction'});},exports[a1364_0x5108fa(0x161)]=function(_0xfdb3,_0x122127){const _0x13e0d9=a1364_0x5108fa;return client[_0x13e0d9(0x15e)](_0x13e0d9(0x162),{'body':_0x122127,'options':{'where':{'id':_0xfdb3}},'log':_0x13e0d9(0x15f)});}; \ No newline at end of file +const a1364_0x4968=['Request','AddTagsToWhatsappInteraction','updateWhatsappInteraction','addTags','update','../client'];(function(_0x547914,_0x2b27bf){const _0x4968be=function(_0x5415e6){while(--_0x5415e6){_0x547914['push'](_0x547914['shift']());}};_0x4968be(++_0x2b27bf);}(a1364_0x4968,0xac));const a1364_0x5415=function(_0x547914,_0x2b27bf){_0x547914=_0x547914-0xdd;let _0x4968be=a1364_0x4968[_0x547914];return _0x4968be;};const a1364_0x3c7ec8=a1364_0x5415;'use strict';const client=require(a1364_0x3c7ec8(0xde));exports[a1364_0x3c7ec8(0xdd)]=function(_0x191050,_0x1dc52e){const _0x15125c=a1364_0x3c7ec8;return client[_0x15125c(0xdf)]('UpdateWhatsappInteraction',{'body':_0x1dc52e,'options':{'where':{'id':_0x191050}},'log':_0x15125c(0xe1)});},exports[a1364_0x3c7ec8(0xe2)]=function(_0x1bc436,_0x1b5115){const _0x1aae1b=a1364_0x3c7ec8;return client[_0x1aae1b(0xdf)](_0x1aae1b(0xe0),{'body':_0x1b5115,'options':{'where':{'id':_0x1bc436}},'log':'addTagsToWhatsappInteraction'});}; \ No newline at end of file diff --git a/server/services/routing/rpc/whatsappMessage.js b/server/services/routing/rpc/whatsappMessage.js index e624691..80f86c3 100644 --- a/server/services/routing/rpc/whatsappMessage.js +++ b/server/services/routing/rpc/whatsappMessage.js @@ -1 +1 @@ -const a1365_0x38af=['../client','create','createWhatsappMessage','CreateWhatsappMessage'];(function(_0x3ef20a,_0x450a2e){const _0x38afa1=function(_0x119621){while(--_0x119621){_0x3ef20a['push'](_0x3ef20a['shift']());}};_0x38afa1(++_0x450a2e);}(a1365_0x38af,0x1da));const a1365_0x1196=function(_0x3ef20a,_0x450a2e){_0x3ef20a=_0x3ef20a-0x15c;let _0x38afa1=a1365_0x38af[_0x3ef20a];return _0x38afa1;};const a1365_0x3ce3a1=a1365_0x1196;'use strict';const client=require(a1365_0x3ce3a1(0x15e));exports[a1365_0x3ce3a1(0x15f)]=function(_0x18399a){const _0x700c6e=a1365_0x3ce3a1;return client['Request'](_0x700c6e(0x15d),{'body':_0x18399a,'log':_0x700c6e(0x15c)});}; \ No newline at end of file +const a1365_0x1e8e=['../client','Request','CreateWhatsappMessage'];(function(_0x71cdd0,_0x250b67){const _0x1e8e54=function(_0x6a414a){while(--_0x6a414a){_0x71cdd0['push'](_0x71cdd0['shift']());}};_0x1e8e54(++_0x250b67);}(a1365_0x1e8e,0x11e));const a1365_0x6a41=function(_0x71cdd0,_0x250b67){_0x71cdd0=_0x71cdd0-0x127;let _0x1e8e54=a1365_0x1e8e[_0x71cdd0];return _0x1e8e54;};const a1365_0x22d45f=a1365_0x6a41;'use strict';const client=require(a1365_0x22d45f(0x129));exports['create']=function(_0x2c8224){const _0x188af9=a1365_0x22d45f;return client[_0x188af9(0x127)](_0x188af9(0x128),{'body':_0x2c8224,'log':'createWhatsappMessage'});}; \ No newline at end of file diff --git a/server/services/routing/rpc/whatsappQueue.js b/server/services/routing/rpc/whatsappQueue.js index b1c603f..05b1337 100644 --- a/server/services/routing/rpc/whatsappQueue.js +++ b/server/services/routing/rpc/whatsappQueue.js @@ -1 +1 @@ -const a1366_0x24e1=['name','online','Agents','User','timeout','strategy','getWhatsappQueues','GetWhatsappQueue','whatsappPause'];(function(_0x29c2d0,_0x137a89){const _0x24e1b1=function(_0x2f015b){while(--_0x2f015b){_0x29c2d0['push'](_0x29c2d0['shift']());}};_0x24e1b1(++_0x137a89);}(a1366_0x24e1,0x85));const a1366_0x2f01=function(_0x29c2d0,_0x137a89){_0x29c2d0=_0x29c2d0-0x125;let _0x24e1b1=a1366_0x24e1[_0x29c2d0];return _0x24e1b1;};const a1366_0x5bb45c=a1366_0x2f01;'use strict';const client=require('../client');exports[a1366_0x5bb45c(0x12d)]=function(){return function(){const _0x1e5aed=a1366_0x2f01;return client['Request'](_0x1e5aed(0x125),{'options':{'raw':![],'attributes':['id',_0x1e5aed(0x127),_0x1e5aed(0x12b),_0x1e5aed(0x12c)],'include':[{'model':_0x1e5aed(0x12a),'as':_0x1e5aed(0x129),'attributes':['id','name',_0x1e5aed(0x128),_0x1e5aed(0x126)]}]},'log':'getWhatsappQueues'});};}; \ No newline at end of file +const a1366_0x165c=['online','getWhatsappQueues','../client','GetWhatsappQueue','timeout','strategy','Request','Agents','whatsappPause'];(function(_0x533d98,_0x38c41b){const _0x165caf=function(_0x35e2c2){while(--_0x35e2c2){_0x533d98['push'](_0x533d98['shift']());}};_0x165caf(++_0x38c41b);}(a1366_0x165c,0x10b));const a1366_0x35e2=function(_0x533d98,_0x38c41b){_0x533d98=_0x533d98-0x132;let _0x165caf=a1366_0x165c[_0x533d98];return _0x165caf;};const a1366_0x5cb1e5=a1366_0x35e2;'use strict';const client=require(a1366_0x5cb1e5(0x137));exports[a1366_0x5cb1e5(0x136)]=function(){return function(){const _0x5cd94d=a1366_0x35e2;return client[_0x5cd94d(0x132)](_0x5cd94d(0x138),{'options':{'raw':![],'attributes':['id','name',_0x5cd94d(0x139),_0x5cd94d(0x13a)],'include':[{'model':'User','as':_0x5cd94d(0x133),'attributes':['id','name',_0x5cd94d(0x135),_0x5cd94d(0x134)]}]},'log':_0x5cd94d(0x136)});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/whatsappQueueReport.js b/server/services/routing/rpc/whatsappQueueReport.js index 83dc6de..98e9419 100644 --- a/server/services/routing/rpc/whatsappQueueReport.js +++ b/server/services/routing/rpc/whatsappQueueReport.js @@ -1 +1 @@ -const a1367_0x386b=['UpdateWhatsappQueueReport','Request','update','CreateWhatsappQueueReport','../client'];(function(_0x53fd9e,_0x371f76){const _0x386bff=function(_0x3f062d){while(--_0x3f062d){_0x53fd9e['push'](_0x53fd9e['shift']());}};_0x386bff(++_0x371f76);}(a1367_0x386b,0x168));const a1367_0x3f06=function(_0x53fd9e,_0x371f76){_0x53fd9e=_0x53fd9e-0xac;let _0x386bff=a1367_0x386b[_0x53fd9e];return _0x386bff;};const a1367_0x13b8bd=a1367_0x3f06;'use strict';const client=require(a1367_0x13b8bd(0xb0));exports['create']=function(_0x3db92d){const _0x50eb62=a1367_0x13b8bd;return client[_0x50eb62(0xad)](_0x50eb62(0xaf),{'body':_0x3db92d,'log':_0x50eb62(0xaf)});},exports[a1367_0x13b8bd(0xae)]=function(_0x392904,_0x42e879){const _0x129845=a1367_0x13b8bd;return client[_0x129845(0xad)](_0x129845(0xac),{'body':_0x42e879,'options':{'where':{'uniqueid':_0x392904},'order':[['id','DESC']],'limit':0x1},'log':_0x129845(0xac)});}; \ No newline at end of file +const a1367_0x5648=['UpdateWhatsappQueueReport','../client','Request','DESC','CreateWhatsappQueueReport','update'];(function(_0x236e53,_0xd34a5){const _0x564821=function(_0x5f1464){while(--_0x5f1464){_0x236e53['push'](_0x236e53['shift']());}};_0x564821(++_0xd34a5);}(a1367_0x5648,0x169));const a1367_0x5f14=function(_0x236e53,_0xd34a5){_0x236e53=_0x236e53-0xe3;let _0x564821=a1367_0x5648[_0x236e53];return _0x564821;};const a1367_0xb76060=a1367_0x5f14;'use strict';const client=require(a1367_0xb76060(0xe3));exports['create']=function(_0x5625b3){const _0x3a22a0=a1367_0xb76060;return client['Request'](_0x3a22a0(0xe6),{'body':_0x5625b3,'log':_0x3a22a0(0xe6)});},exports[a1367_0xb76060(0xe7)]=function(_0xc6552e,_0x3632d2){const _0x56837a=a1367_0xb76060;return client[_0x56837a(0xe4)](_0x56837a(0xe8),{'body':_0x3632d2,'options':{'where':{'uniqueid':_0xc6552e},'order':[['id',_0x56837a(0xe5)]],'limit':0x1},'log':'UpdateWhatsappQueueReport'});}; \ No newline at end of file diff --git a/server/services/routing/server/applications/agent.js b/server/services/routing/server/applications/agent.js index 55b3774..e186604 100644 --- a/server/services/routing/server/applications/agent.js +++ b/server/services/routing/server/applications/agent.js @@ -1 +1 @@ -const a1368_0xc41b=['[%s][AGENT]\x20ROUTING\x20END','error','map','[%s][AGENT]\x20%s','name','createQueue','validate','[%s][QUEUE]\x20%s','agent','seq-queue','[%s][AGENT]\x20agent\x20not\x20found\x20%s','agents','message','./strategy','rules','[%s][AGENT][NAME:%s][STATUS:%s]','string','[%s][AGENT]\x20ROUTING\x20STOPPED','util','info','next','consequence','end','format','timeout\x20is\x20a\x20number','toLowerCase','lodash','channel','timeout','stop','close','complete'];(function(_0x3b3f58,_0x3b26cf){const _0xc41bf1=function(_0x5c4159){while(--_0x5c4159){_0x3b3f58['push'](_0x3b3f58['shift']());}};_0xc41bf1(++_0x3b26cf);}(a1368_0xc41b,0xb9));const a1368_0x5c41=function(_0x3b3f58,_0x3b26cf){_0x3b3f58=_0x3b3f58-0x77;let _0xc41bf1=a1368_0xc41b[_0x3b3f58];return _0xc41bf1;};const a1368_0x530477=a1368_0x5c41;'use strict';const schema=require('validate'),_=require(a1368_0x530477(0x78)),util=require(a1368_0x530477(0x90)),seqqueue=require(a1368_0x530477(0x87)),logger=require('../../../../config/logger')('routing'),strategy=require(a1368_0x530477(0x8b)),queue=schema({'name':{'type':a1368_0x530477(0x8e),'required':!![],'message':'name\x20is\x20a\x20string\x20and\x20it\x20is\x20required'},'timeout':{'type':'number','message':a1368_0x530477(0x96)}});function writeLog(_0x210c08,_0x3d38cf,_0x4a023f){const _0x29d442=a1368_0x530477;return logger[_0x29d442(0x91)](util[_0x29d442(0x95)](_0x29d442(0x8d),_0x210c08,_0x3d38cf[_0x29d442(0x82)],_0x4a023f));}function handleFindAgent(_0x42e95e){return function(_0x1a9931){const _0x5ebdc7=a1368_0x5c41;return _0x1a9931[_0x5ebdc7(0x82)][_0x5ebdc7(0x77)]()===_0x42e95e[_0x5ebdc7(0x77)]();};}exports[a1368_0x530477(0x93)]=function(_0x1aef99,_0x14f35a,_0x5dd43a,_0x26b81e){return function(_0x52432f){const _0x11c299=a1368_0x5c41;try{const _0x14540d={'name':_0x14f35a[0x0],'timeout':_0x14f35a[0x1]},_0x10cdf9=queue[_0x11c299(0x84)](_0x14540d,{'typecast':!![]});if(_0x10cdf9['length'])logger['error'](_0x11c299(0x81),_0x1aef99,_[_0x11c299(0x80)](_0x10cdf9,_0x11c299(0x8a))['join'](',\x20')),_0x52432f[_0x11c299(0x7b)]();else{const _0x112feb=_['find'](_0x5dd43a[_0x11c299(0x89)],handleFindAgent(_0x14540d[_0x11c299(0x82)]));if(_0x112feb){const _0x5823b3=(_0x14540d[_0x11c299(0x7a)]||0xa)*0x3e8;let _0xf6fcb6;const _0x5b20bb=seqqueue[_0x11c299(0x83)](_0x5823b3);_0x5b20bb['id']=_0x1aef99,_0x5b20bb['atimeout']=_0x5823b3,_0x5b20bb[_0x11c299(0x79)]=_0x26b81e['channel'],writeLog(_0x1aef99,_0x112feb,util[_0x11c299(0x95)]('START:%s',_0x5823b3)),_0x5dd43a['rules'][_0x1aef99]['on'](_0x11c299(0x94),function(){const _0x16cf2a=_0x11c299;logger[_0x16cf2a(0x91)](_0x16cf2a(0x8f),_0x1aef99),clearTimeout(_0xf6fcb6),_0xf6fcb6=undefined,_0x5b20bb[_0x16cf2a(0x7c)](),_0x5dd43a[_0x16cf2a(0x8c)][_0x1aef99]&&delete _0x5dd43a[_0x16cf2a(0x8c)][_0x1aef99],_0x52432f[_0x16cf2a(0x7b)]();}),_0x5dd43a[_0x11c299(0x8c)][_0x1aef99]['on'](_0x11c299(0x7d),function(){const _0x462a0e=_0x11c299;_0x5dd43a[_0x462a0e(0x8c)][_0x1aef99]&&delete _0x5dd43a[_0x462a0e(0x8c)][_0x1aef99];}),_0xf6fcb6=setTimeout(function(){const _0xc643fe=_0x11c299;logger[_0xc643fe(0x91)](_0xc643fe(0x7e),_0x1aef99),clearTimeout(_0xf6fcb6),_0x5b20bb['close'](),_0x52432f[_0xc643fe(0x92)]();},_0x5823b3),strategy[_0x11c299(0x86)](_0x5b20bb,_0x112feb,_0x5dd43a,_0x26b81e);}else logger[_0x11c299(0x7f)](_0x11c299(0x88),_0x1aef99,_0x14540d['name']),_0x52432f['stop']();}}catch(_0x53974c){console['log'](_0x53974c),logger[_0x11c299(0x7f)](_0x11c299(0x85),_0x1aef99,_0x53974c['stack']),_0x52432f['stop']();}};}; \ No newline at end of file +const a1368_0x4071=['name\x20is\x20a\x20string\x20and\x20it\x20is\x20required','stack','close','timeout','util','../../../../config/logger','number','error','end','channel','message','routing','name','[%s][AGENT]\x20ROUTING\x20STOPPED','agent','[%s][QUEUE]\x20%s','stop','./strategy','[%s][AGENT]\x20ROUTING\x20END','[%s][AGENT][NAME:%s][STATUS:%s]','seq-queue','[%s][AGENT]\x20%s','join','consequence','validate','string','rules','info','find','map','length','atimeout','lodash','[%s][AGENT]\x20agent\x20not\x20found\x20%s','complete','toLowerCase'];(function(_0x585959,_0x3a4980){const _0x4071c1=function(_0x11ec28){while(--_0x11ec28){_0x585959['push'](_0x585959['shift']());}};_0x4071c1(++_0x3a4980);}(a1368_0x4071,0x15d));const a1368_0x11ec=function(_0x585959,_0x3a4980){_0x585959=_0x585959-0xd9;let _0x4071c1=a1368_0x4071[_0x585959];return _0x4071c1;};const a1368_0x1efb9f=a1368_0x11ec;'use strict';const schema=require('validate'),_=require(a1368_0x1efb9f(0xe0)),util=require(a1368_0x1efb9f(0xe8)),seqqueue=require(a1368_0x1efb9f(0xf8)),logger=require(a1368_0x1efb9f(0xe9))(a1368_0x1efb9f(0xef)),strategy=require(a1368_0x1efb9f(0xf5)),queue=schema({'name':{'type':a1368_0x1efb9f(0xd9),'required':!![],'message':a1368_0x1efb9f(0xe4)},'timeout':{'type':a1368_0x1efb9f(0xea),'message':'timeout\x20is\x20a\x20number'}});function writeLog(_0x288c04,_0x104909,_0x685922){const _0x195d7d=a1368_0x1efb9f;return logger[_0x195d7d(0xdb)](util['format'](_0x195d7d(0xf7),_0x288c04,_0x104909[_0x195d7d(0xf0)],_0x685922));}function handleFindAgent(_0x1e1c74){return function(_0x321275){const _0x1a5e88=a1368_0x11ec;return _0x321275[_0x1a5e88(0xf0)][_0x1a5e88(0xe3)]()===_0x1e1c74['toLowerCase']();};}exports[a1368_0x1efb9f(0xfb)]=function(_0x1afcb5,_0x4bd1d6,_0x4c8ed2,_0x2168b2){return function(_0x36cd87){const _0x4a911c=a1368_0x11ec;try{const _0x4bfa4b={'name':_0x4bd1d6[0x0],'timeout':_0x4bd1d6[0x1]},_0x250913=queue[_0x4a911c(0xfc)](_0x4bfa4b,{'typecast':!![]});if(_0x250913[_0x4a911c(0xde)])logger[_0x4a911c(0xeb)](_0x4a911c(0xf9),_0x1afcb5,_[_0x4a911c(0xdd)](_0x250913,_0x4a911c(0xee))[_0x4a911c(0xfa)](',\x20')),_0x36cd87[_0x4a911c(0xf4)]();else{const _0x144ece=_[_0x4a911c(0xdc)](_0x4c8ed2['agents'],handleFindAgent(_0x4bfa4b[_0x4a911c(0xf0)]));if(_0x144ece){const _0x3b1a30=(_0x4bfa4b[_0x4a911c(0xe7)]||0xa)*0x3e8;let _0x41f0f7;const _0x1f4069=seqqueue['createQueue'](_0x3b1a30);_0x1f4069['id']=_0x1afcb5,_0x1f4069[_0x4a911c(0xdf)]=_0x3b1a30,_0x1f4069[_0x4a911c(0xed)]=_0x2168b2[_0x4a911c(0xed)],writeLog(_0x1afcb5,_0x144ece,util['format']('START:%s',_0x3b1a30)),_0x4c8ed2[_0x4a911c(0xda)][_0x1afcb5]['on'](_0x4a911c(0xec),function(){const _0x1264f7=_0x4a911c;logger[_0x1264f7(0xdb)](_0x1264f7(0xf1),_0x1afcb5),clearTimeout(_0x41f0f7),_0x41f0f7=undefined,_0x1f4069[_0x1264f7(0xe6)](),_0x4c8ed2[_0x1264f7(0xda)][_0x1afcb5]&&delete _0x4c8ed2[_0x1264f7(0xda)][_0x1afcb5],_0x36cd87[_0x1264f7(0xf4)]();}),_0x4c8ed2[_0x4a911c(0xda)][_0x1afcb5]['on'](_0x4a911c(0xe2),function(){const _0x25497e=_0x4a911c;_0x4c8ed2['rules'][_0x1afcb5]&&delete _0x4c8ed2[_0x25497e(0xda)][_0x1afcb5];}),_0x41f0f7=setTimeout(function(){const _0x1c7cf7=_0x4a911c;logger[_0x1c7cf7(0xdb)](_0x1c7cf7(0xf6),_0x1afcb5),clearTimeout(_0x41f0f7),_0x1f4069[_0x1c7cf7(0xe6)](),_0x36cd87['next']();},_0x3b1a30),strategy[_0x4a911c(0xf2)](_0x1f4069,_0x144ece,_0x4c8ed2,_0x2168b2);}else logger['error'](_0x4a911c(0xe1),_0x1afcb5,_0x4bfa4b[_0x4a911c(0xf0)]),_0x36cd87[_0x4a911c(0xf4)]();}}catch(_0x23f29a){console['log'](_0x23f29a),logger[_0x4a911c(0xeb)](_0x4a911c(0xf3),_0x1afcb5,_0x23f29a[_0x4a911c(0xe5)]),_0x36cd87[_0x4a911c(0xf4)]();}};}; \ 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 0465a10..3bcefce 100644 --- a/server/services/routing/server/applications/amazonlex.js +++ b/server/services/routing/server/applications/amazonlex.js @@ -1 +1 @@ -const a1369_0x3dc3=['sms','error','contact','routing','moment','amazonlex','Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.','[%s][AMAZONLEX]\x20Welcome\x20Message\x20has\x20been\x20sent!','created','create','catch','phone','whatsapp','../../rpc/mailMessage','./utils','../../rpc/openchannelMessage','lodash','toString','stop','next','dialogState','YYYY-MM-DD\x20HH:mm:ss','../../rpc/smsMessage','body','then','../../rpc/whatsappMessage','aws-sdk','interaction','$LATEST','channel','getMustacheRender','postText','stringify','upperFirst','../../rpc/chatMessage','AccountId','[%s][AMAZONLEX]\x20%s','chat','Message','account','Failed','message','UserId','../../../../config/logger','isEmpty','providerResponse','info'];(function(_0x4d8b67,_0x20e40a){const _0x3dc3c0=function(_0x1ed392){while(--_0x1ed392){_0x4d8b67['push'](_0x4d8b67['shift']());}};_0x3dc3c0(++_0x20e40a);}(a1369_0x3dc3,0xa5));const a1369_0x1ed3=function(_0x4d8b67,_0x20e40a){_0x4d8b67=_0x4d8b67-0x191;let _0x3dc3c0=a1369_0x3dc3[_0x4d8b67];return _0x3dc3c0;};const a1369_0x57dea0=a1369_0x1ed3;'use strict';const _=require(a1369_0x57dea0(0x1b8)),moment=require(a1369_0x57dea0(0x1ac)),AWS=require(a1369_0x57dea0(0x193)),utils=require(a1369_0x57dea0(0x1b6)),logger=require(a1369_0x57dea0(0x1a4))(a1369_0x57dea0(0x1ab)),rpc={'chatMessage':require(a1369_0x57dea0(0x19b)),'openchannelMessage':require(a1369_0x57dea0(0x1b7)),'mailMessage':require(a1369_0x57dea0(0x1b5)),'smsMessage':require(a1369_0x57dea0(0x1be)),'faxMessage':require('../../rpc/faxMessage'),'whatsappMessage':require(a1369_0x57dea0(0x192))};exports['consequence']=function(_0x5e1c73,_0x45432c){return function(_0xe80de2){const _0x2164cb=a1369_0x1ed3;try{if(!_['isNil'](this[_0x2164cb(0x194)][_0x2164cb(0x1a3)]))return logger['info'](_0x2164cb(0x19d),_0x5e1c73,_0x2164cb(0x1ae)),_0xe80de2[_0x2164cb(0x1bb)]();const _0x8e02e4={'ContactId':this[_0x2164cb(0x1aa)]['id'],'sentAt':moment()['format'](_0x2164cb(0x1bd)),'direction':'out'};(this[_0x2164cb(0x196)]===_0x2164cb(0x1a8)||this[_0x2164cb(0x196)]===_0x2164cb(0x1b4))&&(_0x8e02e4[_0x2164cb(0x1b3)]=this['interaction'][_0x2164cb(0x1b3)]);const _0x3d365e=this[_0x2164cb(0x196)];_0x3d365e===_0x2164cb(0x19e)?_0x8e02e4['ChatWebsiteId']=this[_0x2164cb(0x1a0)]['id']:_0x8e02e4[_[_0x2164cb(0x19a)](_0x3d365e)+_0x2164cb(0x19c)]=this['account']['id'];_0x8e02e4[_['upperFirst'](_0x3d365e)+'InteractionId']=this[_0x2164cb(0x194)]['id'];if(this[_0x2164cb(0x194)][_0x2164cb(0x1b0)]){const _0x4ba58f=_0x45432c[0x4];if(!_[_0x2164cb(0x1a5)](_0x4ba58f))return _0x8e02e4[_0x2164cb(0x1bf)]=utils[_0x2164cb(0x197)](_0x4ba58f,this),rpc[_0x3d365e+_0x2164cb(0x19f)][_0x2164cb(0x1b1)](_0x8e02e4)[_0x2164cb(0x191)](function(){const _0x34cfeb=_0x2164cb;logger[_0x34cfeb(0x1a7)]('[%s][AMAZONLEX]\x20%s',_0x5e1c73,_0x8e02e4['body']);})[_0x2164cb(0x1b2)](function(_0x15313e){const _0x6e86b2=_0x2164cb;logger[_0x6e86b2(0x1a9)](_0x6e86b2(0x19d),_0x5e1c73,JSON[_0x6e86b2(0x199)](_0x15313e));})['finally'](function(){const _0x40264c=_0x2164cb;logger['info'](_0x40264c(0x1af),_0x5e1c73),_0xe80de2[_0x40264c(0x1ba)]();});else logger['info']('[%s][AMAZONLEX]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!',_0x5e1c73),_0xe80de2['stop']();}else{const _0x43a91a=this,_0x2accd6=new AWS['LexRuntime']({'accessKeyId':_0x45432c[0x0],'secretAccessKey':_0x45432c[0x1],'region':_0x45432c[0x2]}),_0xf3a085={'botAlias':_0x2164cb(0x195),'botName':_0x45432c[0x3],'inputText':this[_0x2164cb(0x1a2)][_0x2164cb(0x1bf)],'userId':this[_0x2164cb(0x196)]+':'+this[_0x2164cb(0x194)]['id'][_0x2164cb(0x1b9)]()};_0x2accd6[_0x2164cb(0x198)](_0xf3a085,function(_0x56f436,_0x5e4fbf){const _0x51c402=_0x2164cb;if(_0x56f436)logger[_0x51c402(0x1a9)](_0x51c402(0x19d),_0x5e1c73,_0x56f436[_0x51c402(0x1a2)]),_0xe80de2['next']();else{if(_0x5e4fbf&&_0x5e4fbf[_0x51c402(0x1a2)])return _0x43a91a[_0x51c402(0x1bf)][_0x51c402(0x1ad)]=_0x5e4fbf,_0x8e02e4[_0x51c402(0x1bf)]=_0x5e4fbf['message'],_0x8e02e4['providerName']=_0x51c402(0x1ad),_0x8e02e4[_0x51c402(0x1a6)]=JSON['stringify'](_0x5e4fbf),rpc[_0x3d365e+_0x51c402(0x19f)][_0x51c402(0x1b1)](_0x8e02e4)[_0x51c402(0x191)](function(){const _0x83a44f=_0x51c402;logger[_0x83a44f(0x1a7)]('[%s][AMAZONLEX]\x20%s',_0x5e1c73,_0x8e02e4['body']),_0x5e4fbf[_0x83a44f(0x1bc)]==_0x83a44f(0x1a1)?_0xe80de2[_0x83a44f(0x1bb)]():_0xe80de2[_0x83a44f(0x1ba)]();})['catch'](function(_0x3a31f6){const _0x3eb46b=_0x51c402;logger[_0x3eb46b(0x1a9)]('[%s][AMAZONLEX]\x20%s',_0x5e1c73,JSON['stringify'](_0x3a31f6)),_0xe80de2['next']();});else _0xe80de2[_0x51c402(0x1bb)]();}});}}catch(_0xc352ec){logger['error'](_0x2164cb(0x19d),_0x5e1c73,JSON['stringify'](_0xc352ec)),_0xe80de2[_0x2164cb(0x1ba)]();}};}; \ No newline at end of file +const a1369_0x459d=['out','providerName','catch','../../rpc/openchannelMessage','LexRuntime','amazonlex','next','InteractionId','chat','../../rpc/smsMessage','Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.','isEmpty','stringify','format','../../rpc/faxMessage','getMustacheRender','../../rpc/mailMessage','aws-sdk','contact','isNil','info','[%s][AMAZONLEX]\x20Welcome\x20Message\x20has\x20been\x20sent!','YYYY-MM-DD\x20HH:mm:ss','created','Failed','lodash','routing','account','toString','upperFirst','body','providerResponse','interaction','message','postText','error','AccountId','./utils','whatsapp','moment','ChatWebsiteId','channel','$LATEST','create','consequence','phone','[%s][AMAZONLEX]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!','../../rpc/chatMessage','stop','then','finally','[%s][AMAZONLEX]\x20%s','Message'];(function(_0x236cbc,_0x276e81){const _0x459d8e=function(_0x29067b){while(--_0x29067b){_0x236cbc['push'](_0x236cbc['shift']());}};_0x459d8e(++_0x276e81);}(a1369_0x459d,0xb8));const a1369_0x2906=function(_0x236cbc,_0x276e81){_0x236cbc=_0x236cbc-0xf3;let _0x459d8e=a1369_0x459d[_0x236cbc];return _0x459d8e;};const a1369_0x17a52c=a1369_0x2906;'use strict';const _=require(a1369_0x17a52c(0xf3)),moment=require(a1369_0x17a52c(0x101)),AWS=require(a1369_0x17a52c(0x120)),utils=require(a1369_0x17a52c(0xff)),logger=require('../../../../config/logger')(a1369_0x17a52c(0xf4)),rpc={'chatMessage':require(a1369_0x17a52c(0x109)),'openchannelMessage':require(a1369_0x17a52c(0x112)),'mailMessage':require(a1369_0x17a52c(0x11f)),'smsMessage':require(a1369_0x17a52c(0x118)),'faxMessage':require(a1369_0x17a52c(0x11d)),'whatsappMessage':require('../../rpc/whatsappMessage')};exports[a1369_0x17a52c(0x106)]=function(_0x1e48a8,_0x1768f6){return function(_0xd63e8a){const _0x56ba62=a1369_0x2906;try{if(!_[_0x56ba62(0x122)](this[_0x56ba62(0xfa)]['UserId']))return logger['info'](_0x56ba62(0x10d),_0x1e48a8,_0x56ba62(0x119)),_0xd63e8a['next']();const _0x5106b4={'ContactId':this[_0x56ba62(0x121)]['id'],'sentAt':moment()[_0x56ba62(0x11c)](_0x56ba62(0x125)),'direction':_0x56ba62(0x10f)};(this['channel']==='sms'||this[_0x56ba62(0x103)]===_0x56ba62(0x100))&&(_0x5106b4[_0x56ba62(0x107)]=this[_0x56ba62(0xfa)]['phone']);const _0x5c1b88=this['channel'];_0x5c1b88===_0x56ba62(0x117)?_0x5106b4[_0x56ba62(0x102)]=this[_0x56ba62(0xf5)]['id']:_0x5106b4[_[_0x56ba62(0xf7)](_0x5c1b88)+_0x56ba62(0xfe)]=this[_0x56ba62(0xf5)]['id'];_0x5106b4[_[_0x56ba62(0xf7)](_0x5c1b88)+_0x56ba62(0x116)]=this[_0x56ba62(0xfa)]['id'];if(this[_0x56ba62(0xfa)][_0x56ba62(0x126)]){const _0x58ceb9=_0x1768f6[0x4];if(!_[_0x56ba62(0x11a)](_0x58ceb9))return _0x5106b4[_0x56ba62(0xf8)]=utils[_0x56ba62(0x11e)](_0x58ceb9,this),rpc[_0x5c1b88+_0x56ba62(0x10e)][_0x56ba62(0x105)](_0x5106b4)[_0x56ba62(0x10b)](function(){const _0x432d18=_0x56ba62;logger['info'](_0x432d18(0x10d),_0x1e48a8,_0x5106b4[_0x432d18(0xf8)]);})[_0x56ba62(0x111)](function(_0x538a67){const _0x4d0607=_0x56ba62;logger['error']('[%s][AMAZONLEX]\x20%s',_0x1e48a8,JSON[_0x4d0607(0x11b)](_0x538a67));})[_0x56ba62(0x10c)](function(){const _0x21ad0a=_0x56ba62;logger[_0x21ad0a(0x123)](_0x21ad0a(0x124),_0x1e48a8),_0xd63e8a[_0x21ad0a(0x10a)]();});else logger[_0x56ba62(0x123)](_0x56ba62(0x108),_0x1e48a8),_0xd63e8a[_0x56ba62(0x10a)]();}else{const _0x15691e=this,_0x75bc4c=new AWS[(_0x56ba62(0x113))]({'accessKeyId':_0x1768f6[0x0],'secretAccessKey':_0x1768f6[0x1],'region':_0x1768f6[0x2]}),_0x14122a={'botAlias':_0x56ba62(0x104),'botName':_0x1768f6[0x3],'inputText':this[_0x56ba62(0xfb)]['body'],'userId':this['channel']+':'+this[_0x56ba62(0xfa)]['id'][_0x56ba62(0xf6)]()};_0x75bc4c[_0x56ba62(0xfc)](_0x14122a,function(_0x3dc230,_0x166716){const _0x171724=_0x56ba62;if(_0x3dc230)logger['error'](_0x171724(0x10d),_0x1e48a8,_0x3dc230[_0x171724(0xfb)]),_0xd63e8a[_0x171724(0x115)]();else{if(_0x166716&&_0x166716[_0x171724(0xfb)])return _0x15691e[_0x171724(0xf8)][_0x171724(0x114)]=_0x166716,_0x5106b4['body']=_0x166716[_0x171724(0xfb)],_0x5106b4[_0x171724(0x110)]=_0x171724(0x114),_0x5106b4[_0x171724(0xf9)]=JSON['stringify'](_0x166716),rpc[_0x5c1b88+'Message']['create'](_0x5106b4)[_0x171724(0x10b)](function(){const _0x524a95=_0x171724;logger['info'](_0x524a95(0x10d),_0x1e48a8,_0x5106b4[_0x524a95(0xf8)]),_0x166716['dialogState']==_0x524a95(0x127)?_0xd63e8a[_0x524a95(0x115)]():_0xd63e8a['stop']();})[_0x171724(0x111)](function(_0x49c054){const _0x4b8115=_0x171724;logger['error'](_0x4b8115(0x10d),_0x1e48a8,JSON['stringify'](_0x49c054)),_0xd63e8a[_0x4b8115(0x115)]();});else _0xd63e8a['next']();}});}}catch(_0x3cf025){logger[_0x56ba62(0xfd)]('[%s][AMAZONLEX]\x20%s',_0x1e48a8,JSON['stringify'](_0x3cf025)),_0xd63e8a['stop']();}};}; \ 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 f8ad4c3..3544666 100644 --- a/server/services/routing/server/applications/autoreply.js +++ b/server/services/routing/server/applications/autoreply.js @@ -1 +1 @@ -const a1370_0x5b56=['message','phone','channel','[RPC][%s][AUTOREPLY]\x20%s','catch','InteractionId','upperFirst','','format','../../rpc/chatMessage','stringify','next','error','from','service','consequence','secure','host','chat','',mailRpc[_0x4dacf6(0x1f4)](_0x357d50,_0x5376cf)[_0x4dacf6(0x21a)](function(_0x5a6d41){const _0x1d33dc=_0x4dacf6;return logger['info'](_0x1d33dc(0x21f),_0x5916a4),_0x5376cf[_0x1d33dc(0x203)]=_0x5a6d41[_0x1d33dc(0x1f9)][_0x1d33dc(0x203)],rpc[_0x28a66b+'Message']['create'](_0x5376cf);})['then'](function(_0x2099f6){const _0xf27adf=_0x4dacf6;logger['info'](_0xf27adf(0x218),_0x5916a4,JSON[_0xf27adf(0x20d)](_0x2099f6));})[_0x4dacf6(0x1fd)](function(_0x282e04){const _0x22dbd0=_0x4dacf6;logger[_0x22dbd0(0x20f)](_0x22dbd0(0x1fc),_0x5916a4,JSON[_0x22dbd0(0x20d)](_0x282e04));})[_0x4dacf6(0x1ef)](function(){const _0xd38f88=_0x4dacf6;_0x1eb35a[_0xd38f88(0x20e)]();});}else return rpc[this[_0x4dacf6(0x1fb)]+_0x4dacf6(0x21e)][_0x4dacf6(0x1eb)](_0x5376cf)[_0x4dacf6(0x21a)](function(){logger['info']('[%s][AUTOREPLY]\x20%s',_0x5916a4,_0x5376cf['body']);})[_0x4dacf6(0x1fd)](function(_0x509129){const _0x26569f=_0x4dacf6;logger[_0x26569f(0x20f)](_0x26569f(0x218),_0x5916a4,JSON[_0x26569f(0x20d)](_0x509129));})[_0x4dacf6(0x1ef)](function(){const _0x27d155=_0x4dacf6;_0x1eb35a[_0x27d155(0x20e)]();});}}catch(_0x221e2f){logger[_0x4dacf6(0x20f)](_0x4dacf6(0x218),_0x5916a4,JSON['stringify'](_0x221e2f)),_0x1eb35a['stop']();}};}; \ No newline at end of file +const a1370_0x2ba9=['channel','../../mailRpc','interaction','moment','lodash','../../rpc/whatsappMessage','consequence','inReplyTo','getMustacheRender','phone','routing','','../../rpc/faxMessage','finally','account','YYYY-MM-DD\x20HH:mm:ss','authentication','[%s][AUTOREPLY]\x20SMTP\x20SENT','./utils','subject','AccountId','../../rpc/smsMessage','host','message','Autoreply\x20already\x20sent','error','user','','../../rpc/openchannelMessage','body','stop','then','messageId','stringify','service','created','{const _0xe8028=_0x23546a,_0x2d4f90=_0x19f870&&_0x19f870[_0xe8028(0xbd)]&&_0x19f870['queryResult'][_0xe8028(0xe8)];return _0x2d4f90?createMessage(_0x16db4a,_0xcb1036,_0x105c40,_0x19f870[_0xe8028(0xbd)][_0xe8028(0xe8)]):null;})[_0x23546a(0xdf)](_0x216d78=>_0x216d78!==null);await Promise['all'](_0x1a2a94),_0x44de05?_0x125ceb[_0x23546a(0xb3)]():_0x125ceb[_0x23546a(0xe5)]();}}catch(_0x2632a5){logger[_0x23546a(0xcd)](_0x23546a(0xea),_0x16db4a,_0x2632a5[_0x23546a(0xac)]),_0x125ceb['next']();}}}catch(_0x5308bc){logger[_0x23546a(0xcd)](_0x23546a(0xea),_0x16db4a,JSON['stringify'](_0x5308bc)),_0x125ceb['stop']();}}return _0x3f3f01;}module[a1373_0x156a4b(0xc2)][a1373_0x156a4b(0xc3)]=consequence; \ No newline at end of file +const a1373_0x1e62=['message','detectIntent','phone','next','stop','providerResponse','YYYY-MM-DD\x20HH:mm:ss','allRequiredParamsPresent','exports','AccountId','providerName','dialogflowV2','[%s][DIALOGFLOWV2]\x20%s','sms','../../rpc/mailMessage','diagnosticInfo','upperFirst','../../rpc/faxMessage','chat','name','queryResult','create','moment','end_conversation','fulfillmentText','stringify','./utils','error','map','isNil','projectAgentSessionPath','../../rpc/openchannelMessage','../../rpc/whatsappMessage','length','intent','info','Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.','fields','displayName','format','[%s][DIALOGFLOWV2]\x20Welcome\x20Message\x20has\x20been\x20sent!','channel','interaction','all','filter','contact','routing','action','boolValue','../../rpc/smsMessage','SessionsClient','account','md5','InteractionId','replace','ChatWebsiteId','../../rpc/chatMessage','body','languageCode','isEmpty'];(function(_0x476a35,_0x4340df){const _0x1e6266=function(_0x4921d9){while(--_0x4921d9){_0x476a35['push'](_0x476a35['shift']());}};_0x1e6266(++_0x4340df);}(a1373_0x1e62,0xfa));const a1373_0x4921=function(_0x476a35,_0x4340df){_0x476a35=_0x476a35-0x185;let _0x1e6266=a1373_0x1e62[_0x476a35];return _0x1e6266;};const a1373_0x3eddde=a1373_0x4921;'use strict';const _=require('lodash'),dialogflow=require('@google-cloud/dialogflow'),md5=require(a1373_0x3eddde(0x1af)),moment=require(a1373_0x3eddde(0x191)),logger=require('../../../../config/logger')(a1373_0x3eddde(0x1a9)),utils=require(a1373_0x3eddde(0x195)),rpc={'chatMessage':require(a1373_0x3eddde(0x1b3)),'openchannelMessage':require(a1373_0x3eddde(0x19a)),'mailMessage':require(a1373_0x3eddde(0x189)),'smsMessage':require(a1373_0x3eddde(0x1ac)),'faxMessage':require(a1373_0x3eddde(0x18c)),'whatsappMessage':require(a1373_0x3eddde(0x19b))};async function createMessage(_0x5cc358,_0x4d6f6c,_0x523aed,_0x3fcd56){const _0x8f01e5=a1373_0x3eddde,_0x3cae60=_['clone'](_0x523aed);_0x3cae60[_0x8f01e5(0x1b4)]=_0x3fcd56;try{const _0x493645=await rpc[_0x4d6f6c+'Message'][_0x8f01e5(0x190)](_0x3cae60);return logger[_0x8f01e5(0x19e)](_0x8f01e5(0x187),_0x5cc358,_0x493645[_0x8f01e5(0x1b4)]),_0x493645;}catch(_0x3a9b28){logger[_0x8f01e5(0x196)](_0x8f01e5(0x187),_0x5cc358,JSON['stringify'](_0x3a9b28));throw _0x3a9b28;}}function consequence(_0x3f4634,_0x1d452e){async function _0x3894b6(_0x180e9b){const _0x2d5568=a1373_0x4921;try{if(!_[_0x2d5568(0x198)](this['interaction']['UserId']))return logger['info'](_0x2d5568(0x187),_0x3f4634,_0x2d5568(0x19f)),_0x180e9b['next']();let _0x2eae78={'ContactId':this[_0x2d5568(0x1a8)]['id'],'sentAt':moment()[_0x2d5568(0x1a2)](_0x2d5568(0x1bd)),'direction':'out'};(this[_0x2d5568(0x1a4)]===_0x2d5568(0x188)||this[_0x2d5568(0x1a4)]==='whatsapp')&&(_0x2eae78[_0x2d5568(0x1b9)]=this[_0x2d5568(0x1a5)][_0x2d5568(0x1b9)]);const _0x2cbe84=this[_0x2d5568(0x1a4)];_0x2cbe84===_0x2d5568(0x18d)?_0x2eae78[_0x2d5568(0x1b2)]=this[_0x2d5568(0x1ae)]['id']:_0x2eae78[_[_0x2d5568(0x18b)](_0x2cbe84)+_0x2d5568(0x1c0)]=this[_0x2d5568(0x1ae)]['id'];_0x2eae78[_[_0x2d5568(0x18b)](_0x2cbe84)+_0x2d5568(0x1b0)]=this[_0x2d5568(0x1a5)]['id'];if(this[_0x2d5568(0x1a5)]['created']){const _0x428475=_0x1d452e[0x4];if(!_[_0x2d5568(0x1b6)](_0x428475))try{_0x2eae78[_0x2d5568(0x1b4)]=utils['getMustacheRender'](_0x428475,this),_0x2eae78=await rpc[_0x2cbe84+'Message']['create'](_0x2eae78),logger['info'](_0x2d5568(0x187),_0x3f4634,_0x2eae78[_0x2d5568(0x1b4)]);}catch(_0x3bc619){logger['error']('[%s][DIALOGFLOWV2]\x20%s',_0x3f4634,JSON['stringify'](_0x3bc619));}finally{logger[_0x2d5568(0x19e)](_0x2d5568(0x1a3),_0x3f4634),_0x180e9b['stop']();}else logger[_0x2d5568(0x19e)]('[%s][DIALOGFLOWV2]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!',_0x3f4634),_0x180e9b[_0x2d5568(0x1bb)]();}else{const _0xe8b5a1=_0x1d452e[0x2][_0x2d5568(0x1b1)](/\\n/g,'\x0a'),_0x20c32f={'credentials':{'private_key':_0xe8b5a1,'client_email':_0x1d452e[0x1]}},_0x3ff43d=new dialogflow[(_0x2d5568(0x1ad))](_0x20c32f),_0x259d84=_0x3ff43d[_0x2d5568(0x199)](_0x1d452e[0x0],md5(this[_0x2d5568(0x1a5)]['id'])),_0x58acb3={'session':_0x259d84,'queryInput':{'text':{'text':this[_0x2d5568(0x1b7)][_0x2d5568(0x1b4)],'languageCode':_0x1d452e[0x3]||'en'}}};try{const _0x4142de=await _0x3ff43d[_0x2d5568(0x1b8)](_0x58acb3);if(_0x4142de&&_0x4142de[_0x2d5568(0x19c)]){this[_0x2d5568(0x1b4)][_0x2d5568(0x186)]=_0x4142de;const _0x1fab46=_0x4142de[0x0],_0x5c4d28=_0x1fab46[_0x2d5568(0x18f)][_0x2d5568(0x18a)]&&_0x1fab46[_0x2d5568(0x18f)]['diagnosticInfo'][_0x2d5568(0x1a0)]?_0x1fab46[_0x2d5568(0x18f)][_0x2d5568(0x18a)]['fields']['end_conversation'][_0x2d5568(0x1ab)]:![];this['body']={...this[_0x2d5568(0x1b4)],'DIALOGFLOWV2_ACTION':_0x1fab46[_0x2d5568(0x18f)][_0x2d5568(0x1aa)],'DIALOGFLOWV2_ALLREQUIREDPARAMSPRESENT':_0x1fab46[_0x2d5568(0x18f)][_0x2d5568(0x1be)],'DIALOGFLOWV2_ENDCONVERSATION':_0x1fab46[_0x2d5568(0x18f)]['diagnosticInfo']&&_0x1fab46[_0x2d5568(0x18f)][_0x2d5568(0x18a)]['fields']?_0x1fab46[_0x2d5568(0x18f)][_0x2d5568(0x18a)]['fields'][_0x2d5568(0x192)][_0x2d5568(0x1ab)]:![],'DIALOGFLOWV2_INTENTNAME':_0x1fab46['queryResult'][_0x2d5568(0x19d)][_0x2d5568(0x18e)],'DIALOGFLOWV2_INTENTDISPLAYNAME':_0x1fab46[_0x2d5568(0x18f)][_0x2d5568(0x19d)][_0x2d5568(0x1a1)],'DIALOGFLOWV2_LANGUAGECODE':_0x1fab46['queryResult'][_0x2d5568(0x1b5)],'DIALOGFLOWV2_QUERYTEXT':_0x1fab46[_0x2d5568(0x18f)]['queryText'],'DIALOGFLOWV2_SCORE':_0x1fab46['queryResult']['intentDetectionConfidence']},_0x2eae78[_0x2d5568(0x185)]=_0x2d5568(0x186),_0x2eae78[_0x2d5568(0x1bc)]=JSON[_0x2d5568(0x194)](_0x4142de);const _0x64a6ab=_0x4142de[_0x2d5568(0x197)](_0x1580f3=>{const _0x59b0a5=_0x2d5568,_0x320a6f=_0x1580f3&&_0x1580f3[_0x59b0a5(0x18f)]&&_0x1580f3['queryResult'][_0x59b0a5(0x193)];return _0x320a6f?createMessage(_0x3f4634,_0x2cbe84,_0x2eae78,_0x1580f3[_0x59b0a5(0x18f)][_0x59b0a5(0x193)]):null;})[_0x2d5568(0x1a7)](_0x12123a=>_0x12123a!==null);await Promise[_0x2d5568(0x1a6)](_0x64a6ab),_0x5c4d28?_0x180e9b[_0x2d5568(0x1ba)]():_0x180e9b[_0x2d5568(0x1bb)]();}}catch(_0x489d41){logger[_0x2d5568(0x196)](_0x2d5568(0x187),_0x3f4634,_0x489d41[_0x2d5568(0x1b7)]),_0x180e9b['next']();}}}catch(_0x52c769){logger[_0x2d5568(0x196)](_0x2d5568(0x187),_0x3f4634,JSON[_0x2d5568(0x194)](_0x52c769)),_0x180e9b[_0x2d5568(0x1bb)]();}}return _0x3894b6;}module[a1373_0x3eddde(0x1bf)]['consequence']=consequence; \ No newline at end of file diff --git a/server/services/routing/server/applications/gotoif.js b/server/services/routing/server/applications/gotoif.js index b21209a..baec7da 100644 --- a/server/services/routing/server/applications/gotoif.js +++ b/server/services/routing/server/applications/gotoif.js @@ -1 +1 @@ -const a1374_0x594b=['validate','info','[%s][GOTOIF]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','[%s][GOTOIF]\x20%s','message','consequence','findIndex','replace','next','routing','condition\x20is\x20a\x20string\x20and\x20it\x20is\x20required','map','getMustacheRender','[%s][GOTOIF]\x20eval\x20error:\x20%s','priorityFalse','string','stringify','condition','number','stop','lodash','html-to-text','error','priority\x20false\x20is\x20a\x20number','rules'];(function(_0x387b15,_0x416081){const _0x594bb3=function(_0x324643){while(--_0x324643){_0x387b15['push'](_0x387b15['shift']());}};_0x594bb3(++_0x416081);}(a1374_0x594b,0x104));const a1374_0x3246=function(_0x387b15,_0x416081){_0x387b15=_0x387b15-0x1d1;let _0x594bb3=a1374_0x594b[_0x387b15];return _0x594bb3;};const a1374_0x271b0b=a1374_0x3246;'use strict';const schema=require(a1374_0x271b0b(0x1e0)),_=require(a1374_0x271b0b(0x1db)),{htmlToText}=require(a1374_0x271b0b(0x1dc)),utils=require('./utils'),logger=require('../../../../config/logger')(a1374_0x271b0b(0x1e9)),gotoif=schema({'condition':{'type':a1374_0x271b0b(0x1d6),'required':!![],'message':a1374_0x271b0b(0x1d1)},'priorityTrue':{'type':'number','message':'priority\x20true\x20is\x20a\x20number'},'priorityFalse':{'type':a1374_0x271b0b(0x1d9),'message':a1374_0x271b0b(0x1de)}});exports[a1374_0x271b0b(0x1e5)]=function(_0x237f42,_0xde551f){return function(_0x134334){const _0x3f8c41=a1374_0x3246;try{const _0xe9fd9b={'condition':htmlToText(utils[_0x3f8c41(0x1d3)](_0xde551f[0x0],this),{'wordwrap':![]})[_0x3f8c41(0x1e7)](/<\/?[^>]+(>|$)/g,''),'priorityTrue':_0xde551f[0x1],'priorityFalse':_0xde551f[0x2]},_0x5bb5a9=gotoif[_0x3f8c41(0x1e0)](_0xe9fd9b,{'typecast':!![]});if(_0x5bb5a9['length'])logger[_0x3f8c41(0x1dd)](_0x3f8c41(0x1e3),_0x237f42,_[_0x3f8c41(0x1d2)](_0x5bb5a9,_0x3f8c41(0x1e4))['join'](',\x20')),_0x134334[_0x3f8c41(0x1da)]();else try{const _0x20b48b=eval('('+_0xe9fd9b[_0x3f8c41(0x1d8)]+')'),_0x5ab5b7=_0x20b48b?_0xe9fd9b['priorityTrue']:_0xe9fd9b[_0x3f8c41(0x1d5)];logger[_0x3f8c41(0x1e1)]('[%s][GOTOIF]\x20condition\x20%s\x20is\x20%s\x20try\x20goto\x20priority\x20%s',_0x237f42,_0xe9fd9b['condition'],_0x20b48b,_0x5ab5b7||_0x3f8c41(0x1e8));if(_0x5ab5b7){const _0x63cc9f=_[_0x3f8c41(0x1e6)](_0x134334[_0x3f8c41(0x1df)](),{'p':_0x5ab5b7});_0x63cc9f>=0x0?(logger[_0x3f8c41(0x1e1)](_0x3f8c41(0x1e2),_0x237f42,_0x5ab5b7||'next',_0x63cc9f),_0x134334['next'](_0x63cc9f)):(logger['info']('[%s][GOTOIF]\x20priority\x20%s\x20not\x20found',_0x237f42,_0x5ab5b7||'next'),_0x134334[_0x3f8c41(0x1da)]());}else _0x134334[_0x3f8c41(0x1e8)]();}catch(_0x13ec96){logger[_0x3f8c41(0x1dd)](_0x3f8c41(0x1d4),_0x237f42,_0x13ec96['message']),_0x134334[_0x3f8c41(0x1da)]();}}catch(_0xbc85e2){logger[_0x3f8c41(0x1dd)](_0x3f8c41(0x1e3),_0x237f42,JSON[_0x3f8c41(0x1d7)](_0xbc85e2)),_0x134334[_0x3f8c41(0x1da)]();}};}; \ No newline at end of file +const a1374_0x86b8=['info','validate','[%s][GOTOIF]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','join','message','priorityFalse','error','stop','lodash','length','priorityTrue','[%s][GOTOIF]\x20eval\x20error:\x20%s','replace','../../../../config/logger','routing','html-to-text','[%s][GOTOIF]\x20condition\x20%s\x20is\x20%s\x20try\x20goto\x20priority\x20%s','priority\x20false\x20is\x20a\x20number','./utils','stringify','map','[%s][GOTOIF]\x20priority\x20%s\x20not\x20found','condition\x20is\x20a\x20string\x20and\x20it\x20is\x20required','string','[%s][GOTOIF]\x20%s','next','consequence','number','priority\x20true\x20is\x20a\x20number'];(function(_0x401f22,_0x1cd4b9){const _0x86b8ef=function(_0x54cabc){while(--_0x54cabc){_0x401f22['push'](_0x401f22['shift']());}};_0x86b8ef(++_0x1cd4b9);}(a1374_0x86b8,0x1c8));const a1374_0x54ca=function(_0x401f22,_0x1cd4b9){_0x401f22=_0x401f22-0x14c;let _0x86b8ef=a1374_0x86b8[_0x401f22];return _0x86b8ef;};const a1374_0xfa6d3f=a1374_0x54ca;'use strict';const schema=require(a1374_0xfa6d3f(0x155)),_=require(a1374_0xfa6d3f(0x15c)),{htmlToText}=require(a1374_0xfa6d3f(0x163)),utils=require(a1374_0xfa6d3f(0x166)),logger=require(a1374_0xfa6d3f(0x161))(a1374_0xfa6d3f(0x162)),gotoif=schema({'condition':{'type':a1374_0xfa6d3f(0x14e),'required':!![],'message':a1374_0xfa6d3f(0x14d)},'priorityTrue':{'type':a1374_0xfa6d3f(0x152),'message':a1374_0xfa6d3f(0x153)},'priorityFalse':{'type':a1374_0xfa6d3f(0x152),'message':a1374_0xfa6d3f(0x165)}});exports[a1374_0xfa6d3f(0x151)]=function(_0xf63a65,_0x12455f){return function(_0xe92b70){const _0x326526=a1374_0x54ca;try{const _0x2b4de2={'condition':htmlToText(utils['getMustacheRender'](_0x12455f[0x0],this),{'wordwrap':![]})[_0x326526(0x160)](/<\/?[^>]+(>|$)/g,''),'priorityTrue':_0x12455f[0x1],'priorityFalse':_0x12455f[0x2]},_0x4dbb46=gotoif[_0x326526(0x155)](_0x2b4de2,{'typecast':!![]});if(_0x4dbb46[_0x326526(0x15d)])logger[_0x326526(0x15a)](_0x326526(0x14f),_0xf63a65,_[_0x326526(0x168)](_0x4dbb46,_0x326526(0x158))[_0x326526(0x157)](',\x20')),_0xe92b70[_0x326526(0x15b)]();else try{const _0x5c7f18=eval('('+_0x2b4de2['condition']+')'),_0x82f75c=_0x5c7f18?_0x2b4de2[_0x326526(0x15e)]:_0x2b4de2[_0x326526(0x159)];logger['info'](_0x326526(0x164),_0xf63a65,_0x2b4de2['condition'],_0x5c7f18,_0x82f75c||_0x326526(0x150));if(_0x82f75c){const _0x585433=_['findIndex'](_0xe92b70['rules'](),{'p':_0x82f75c});_0x585433>=0x0?(logger[_0x326526(0x154)](_0x326526(0x156),_0xf63a65,_0x82f75c||_0x326526(0x150),_0x585433),_0xe92b70[_0x326526(0x150)](_0x585433)):(logger[_0x326526(0x154)](_0x326526(0x14c),_0xf63a65,_0x82f75c||_0x326526(0x150)),_0xe92b70[_0x326526(0x15b)]());}else _0xe92b70[_0x326526(0x150)]();}catch(_0x452553){logger[_0x326526(0x15a)](_0x326526(0x15f),_0xf63a65,_0x452553[_0x326526(0x158)]),_0xe92b70['stop']();}}catch(_0xacd168){logger[_0x326526(0x15a)](_0x326526(0x14f),_0xf63a65,JSON[_0x326526(0x167)](_0xacd168)),_0xe92b70['stop']();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/gotop.js b/server/services/routing/server/applications/gotop.js index efe31f7..160c9db 100644 --- a/server/services/routing/server/applications/gotop.js +++ b/server/services/routing/server/applications/gotop.js @@ -1 +1 @@ -const a1375_0x1bd0=['next','message','stop','error','[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','join','validate','number','[%s][GOTOP]\x20priority\x20%s','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','findIndex','stringify','info','priority','map','[%s][GOTOP]\x20%s'];(function(_0x139f0e,_0x2e3e6a){const _0x1bd0f1=function(_0x2c5c34){while(--_0x2c5c34){_0x139f0e['push'](_0x139f0e['shift']());}};_0x1bd0f1(++_0x2e3e6a);}(a1375_0x1bd0,0xe0));const a1375_0x2c5c=function(_0x139f0e,_0x2e3e6a){_0x139f0e=_0x139f0e-0x98;let _0x1bd0f1=a1375_0x1bd0[_0x139f0e];return _0x1bd0f1;};const a1375_0x2c2776=a1375_0x2c5c;'use strict';const schema=require('validate'),_=require('lodash'),logger=require('../../../../config/logger')('routing'),gotop=schema({'priority':{'type':a1375_0x2c2776(0x9f),'required':!![],'message':'priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required'}});exports['consequence']=function(_0x16b01f,_0x3f8205){return function(_0x4a8516){const _0x188406=a1375_0x2c5c;try{const _0x2c3839={'priority':_0x3f8205[0x0]},_0x2a9ac3=gotop[_0x188406(0x9e)](_0x2c3839,{'typecast':!![]});if(_0x2a9ac3['length'])logger[_0x188406(0x9b)](_0x188406(0xa7),_0x16b01f,_[_0x188406(0xa6)](_0x2a9ac3,_0x188406(0x99))[_0x188406(0x9d)](',\x20')),_0x4a8516[_0x188406(0x9a)]();else{logger[_0x188406(0xa4)](_0x188406(0xa0),_0x16b01f,_0x2c3839['priority']);if(_0x2c3839[_0x188406(0xa5)]){const _0x4e9bb0=_[_0x188406(0xa2)](_0x4a8516['rules'](),{'p':_0x2c3839[_0x188406(0xa5)]});_0x4e9bb0>=0x0?(logger[_0x188406(0xa4)](_0x188406(0x9c),_0x16b01f,_0x2c3839[_0x188406(0xa5)]||_0x188406(0x98),_0x4e9bb0),_0x4a8516[_0x188406(0x98)](_0x4e9bb0)):(logger[_0x188406(0xa4)](_0x188406(0xa1),_0x16b01f,_0x2c3839[_0x188406(0xa5)]||'next'),_0x4a8516[_0x188406(0x9a)]());}else _0x4a8516[_0x188406(0x98)]();}}catch(_0x9f755){logger[_0x188406(0x9b)](_0x188406(0xa7),_0x16b01f,JSON[_0x188406(0xa3)](_0x9f755)),_0x4a8516[_0x188406(0x9a)]();}};}; \ No newline at end of file +const a1375_0x4c3e=['findIndex','join','message','lodash','number','[%s][GOTOP]\x20%s','validate','next','rules','error','priority','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','length','stringify','[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','stop','routing','info','consequence','../../../../config/logger'];(function(_0x31e56a,_0x3001a9){const _0x4c3eaf=function(_0x1d6ef5){while(--_0x1d6ef5){_0x31e56a['push'](_0x31e56a['shift']());}};_0x4c3eaf(++_0x3001a9);}(a1375_0x4c3e,0x160));const a1375_0x1d6e=function(_0x31e56a,_0x3001a9){_0x31e56a=_0x31e56a-0x198;let _0x4c3eaf=a1375_0x4c3e[_0x31e56a];return _0x4c3eaf;};const a1375_0x510e13=a1375_0x1d6e;'use strict';const schema=require(a1375_0x510e13(0x1a6)),_=require(a1375_0x510e13(0x1a3)),logger=require(a1375_0x510e13(0x19f))(a1375_0x510e13(0x19c)),gotop=schema({'priority':{'type':a1375_0x510e13(0x1a4),'required':!![],'message':'priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required'}});exports[a1375_0x510e13(0x19e)]=function(_0x4c8105,_0x1cdc71){return function(_0x4c4426){const _0x29f033=a1375_0x1d6e;try{const _0x3bd03e={'priority':_0x1cdc71[0x0]},_0x15b968=gotop[_0x29f033(0x1a6)](_0x3bd03e,{'typecast':!![]});if(_0x15b968[_0x29f033(0x198)])logger[_0x29f033(0x1a9)](_0x29f033(0x1a5),_0x4c8105,_['map'](_0x15b968,_0x29f033(0x1a2))[_0x29f033(0x1a1)](',\x20')),_0x4c4426[_0x29f033(0x19b)]();else{logger[_0x29f033(0x19d)]('[%s][GOTOP]\x20priority\x20%s',_0x4c8105,_0x3bd03e['priority']);if(_0x3bd03e[_0x29f033(0x1aa)]){const _0x277d7b=_[_0x29f033(0x1a0)](_0x4c4426[_0x29f033(0x1a8)](),{'p':_0x3bd03e[_0x29f033(0x1aa)]});_0x277d7b>=0x0?(logger[_0x29f033(0x19d)](_0x29f033(0x19a),_0x4c8105,_0x3bd03e[_0x29f033(0x1aa)]||_0x29f033(0x1a7),_0x277d7b),_0x4c4426[_0x29f033(0x1a7)](_0x277d7b)):(logger[_0x29f033(0x19d)](_0x29f033(0x1ab),_0x4c8105,_0x3bd03e[_0x29f033(0x1aa)]||_0x29f033(0x1a7)),_0x4c4426['stop']());}else _0x4c4426[_0x29f033(0x1a7)]();}}catch(_0xf4b6bf){logger[_0x29f033(0x1a9)]('[%s][GOTOP]\x20%s',_0x4c8105,JSON[_0x29f033(0x199)](_0xf4b6bf)),_0x4c4426[_0x29f033(0x19b)]();}};}; \ 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 5edef0b..20d224b 100644 --- a/server/services/routing/server/applications/message.js +++ b/server/services/routing/server/applications/message.js @@ -1 +1 @@ -const a1376_0x5aae=['interaction','[%s][MESSAGE]\x20%s','Message','routing','upperFirst','../../../../config/logger','AccountId','contact','getMustacheRender','account','create','lodash','../../rpc/smsMessage','stringify','consequence','next','body','stop','../../rpc/chatMessage','channel','ChatWebsiteId','InteractionId','error','info'];(function(_0x59bcd0,_0x237ba4){const _0x5aae33=function(_0x2698a2){while(--_0x2698a2){_0x59bcd0['push'](_0x59bcd0['shift']());}};_0x5aae33(++_0x237ba4);}(a1376_0x5aae,0x11d));const a1376_0x2698=function(_0x59bcd0,_0x237ba4){_0x59bcd0=_0x59bcd0-0xe1;let _0x5aae33=a1376_0x5aae[_0x59bcd0];return _0x5aae33;};const a1376_0x322a0d=a1376_0x2698;'use strict';const _=require(a1376_0x322a0d(0xef)),utils=require('./utils'),logger=require(a1376_0x322a0d(0xe9))(a1376_0x322a0d(0xe7)),rpc={'chatMessage':require(a1376_0x322a0d(0xf6)),'openchannelMessage':require('../../rpc/openchannelMessage'),'mailMessage':require('../../rpc/mailMessage'),'smsMessage':require(a1376_0x322a0d(0xf0)),'faxMessage':require('../../rpc/faxMessage'),'whatsappMessage':require('../../rpc/whatsappMessage')};exports[a1376_0x322a0d(0xf2)]=function(_0x25c1d7,_0x1bfc03){return function(_0x23679c){const _0x350f51=a1376_0x2698;try{const _0x7acac5={'body':utils[_0x350f51(0xec)](_0x1bfc03[0x0],this),'ContactId':this[_0x350f51(0xeb)]['id']};this['channel']==='chat'?_0x7acac5[_0x350f51(0xf8)]=this[_0x350f51(0xed)]['id']:_0x7acac5[_[_0x350f51(0xe8)](this[_0x350f51(0xf7)])+_0x350f51(0xea)]=this['account']['id'];_0x7acac5[_[_0x350f51(0xe8)](this[_0x350f51(0xf7)])+_0x350f51(0xe1)]=this[_0x350f51(0xe4)]['id'];if(rpc[this[_0x350f51(0xf7)]+'Message'])return rpc[this[_0x350f51(0xf7)]+_0x350f51(0xe6)][_0x350f51(0xee)](_0x7acac5)['then'](function(){const _0x18db2f=_0x350f51;logger[_0x18db2f(0xe3)](_0x18db2f(0xe5),_0x25c1d7,_0x7acac5[_0x18db2f(0xf4)]),_0x23679c[_0x18db2f(0xf3)]();})['catch'](function(_0x14d551){const _0x9eea02=_0x350f51;logger[_0x9eea02(0xe2)]('[%s][MESSAGE]\x20%s',_0x25c1d7,JSON[_0x9eea02(0xf1)](_0x14d551)),_0x23679c[_0x9eea02(0xf5)]();});}catch(_0x2c1779){logger[_0x350f51(0xe2)](_0x350f51(0xe5),_0x25c1d7,JSON[_0x350f51(0xf1)](_0x2c1779)),_0x23679c[_0x350f51(0xf5)]();}};}; \ No newline at end of file +const a1376_0x3f1b=['../../../../config/logger','InteractionId','chat','then','contact','../../rpc/smsMessage','../../rpc/faxMessage','stop','channel','interaction','getMustacheRender','upperFirst','Message','stringify','body','account','../../rpc/mailMessage','error','consequence','../../rpc/chatMessage','./utils','[%s][MESSAGE]\x20%s','routing'];(function(_0x4f2b3d,_0x157d3f){const _0x3f1bcb=function(_0x2d5f1a){while(--_0x2d5f1a){_0x4f2b3d['push'](_0x4f2b3d['shift']());}};_0x3f1bcb(++_0x157d3f);}(a1376_0x3f1b,0x180));const a1376_0x2d5f=function(_0x4f2b3d,_0x157d3f){_0x4f2b3d=_0x4f2b3d-0xb2;let _0x3f1bcb=a1376_0x3f1b[_0x4f2b3d];return _0x3f1bcb;};const a1376_0x1bb1a2=a1376_0x2d5f;'use strict';const _=require('lodash'),utils=require(a1376_0x1bb1a2(0xb6)),logger=require(a1376_0x1bb1a2(0xb9))(a1376_0x1bb1a2(0xb8)),rpc={'chatMessage':require(a1376_0x1bb1a2(0xb5)),'openchannelMessage':require('../../rpc/openchannelMessage'),'mailMessage':require(a1376_0x1bb1a2(0xb2)),'smsMessage':require(a1376_0x1bb1a2(0xbe)),'faxMessage':require(a1376_0x1bb1a2(0xbf)),'whatsappMessage':require('../../rpc/whatsappMessage')};exports[a1376_0x1bb1a2(0xb4)]=function(_0x2cbb03,_0x4433c7){return function(_0xb95ad5){const _0x2d3cf5=a1376_0x2d5f;try{const _0x1305ba={'body':utils[_0x2d3cf5(0xc3)](_0x4433c7[0x0],this),'ContactId':this[_0x2d3cf5(0xbd)]['id']};this[_0x2d3cf5(0xc1)]===_0x2d3cf5(0xbb)?_0x1305ba['ChatWebsiteId']=this[_0x2d3cf5(0xc8)]['id']:_0x1305ba[_['upperFirst'](this[_0x2d3cf5(0xc1)])+'AccountId']=this[_0x2d3cf5(0xc8)]['id'];_0x1305ba[_[_0x2d3cf5(0xc4)](this['channel'])+_0x2d3cf5(0xba)]=this[_0x2d3cf5(0xc2)]['id'];if(rpc[this[_0x2d3cf5(0xc1)]+_0x2d3cf5(0xc5)])return rpc[this['channel']+'Message']['create'](_0x1305ba)[_0x2d3cf5(0xbc)](function(){const _0x3af00d=_0x2d3cf5;logger['info'](_0x3af00d(0xb7),_0x2cbb03,_0x1305ba[_0x3af00d(0xc7)]),_0xb95ad5['next']();})['catch'](function(_0x4513bf){const _0x20a147=_0x2d3cf5;logger[_0x20a147(0xb3)]('[%s][MESSAGE]\x20%s',_0x2cbb03,JSON[_0x20a147(0xc6)](_0x4513bf)),_0xb95ad5[_0x20a147(0xc0)]();});}catch(_0x3f3db3){logger[_0x2d3cf5(0xb3)](_0x2d3cf5(0xb7),_0x2cbb03,JSON[_0x2d3cf5(0xc6)](_0x3f3db3)),_0xb95ad5[_0x2d3cf5(0xc0)]();}};}; \ 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 a240445..ba2166c 100644 --- a/server/services/routing/server/applications/noop.js +++ b/server/services/routing/server/applications/noop.js @@ -1 +1 @@ -const a1377_0x514e=['../../../../config/logger','./utils','consequence','[%s][NOOP]\x20%s','info','getMustacheRender','routing','error','next','stop'];(function(_0x53c4a0,_0x36f4da){const _0x514e8a=function(_0x25f2c6){while(--_0x25f2c6){_0x53c4a0['push'](_0x53c4a0['shift']());}};_0x514e8a(++_0x36f4da);}(a1377_0x514e,0x1a4));const a1377_0x25f2=function(_0x53c4a0,_0x36f4da){_0x53c4a0=_0x53c4a0-0x182;let _0x514e8a=a1377_0x514e[_0x53c4a0];return _0x514e8a;};const a1377_0x1f1125=a1377_0x25f2;'use strict';const utils=require(a1377_0x1f1125(0x183)),logger=require(a1377_0x1f1125(0x182))(a1377_0x1f1125(0x188));exports[a1377_0x1f1125(0x184)]=function(_0x4d636a,_0x5320d4){return function(_0x5d496b){const _0x429fed=a1377_0x25f2;try{logger[_0x429fed(0x186)](_0x429fed(0x185),_0x4d636a,utils[_0x429fed(0x187)](_0x5320d4[0x0],this)),_0x5d496b[_0x429fed(0x18a)]();}catch(_0x2d10f7){logger[_0x429fed(0x189)](_0x429fed(0x185),_0x4d636a,JSON['stringify'](_0x2d10f7)),_0x5d496b[_0x429fed(0x18b)]();}};}; \ No newline at end of file +const a1377_0x1c00=['routing','[%s][NOOP]\x20%s','./utils','error','getMustacheRender','../../../../config/logger','next','stringify','consequence'];(function(_0x303413,_0x187a11){const _0x1c00a7=function(_0x372bf0){while(--_0x372bf0){_0x303413['push'](_0x303413['shift']());}};_0x1c00a7(++_0x187a11);}(a1377_0x1c00,0x105));const a1377_0x372b=function(_0x303413,_0x187a11){_0x303413=_0x303413-0xbd;let _0x1c00a7=a1377_0x1c00[_0x303413];return _0x1c00a7;};const a1377_0x336284=a1377_0x372b;'use strict';const utils=require(a1377_0x336284(0xbf)),logger=require(a1377_0x336284(0xc2))(a1377_0x336284(0xbd));exports[a1377_0x336284(0xc5)]=function(_0x59289c,_0x56e816){return function(_0x18360d){const _0x272877=a1377_0x372b;try{logger['info']('[%s][NOOP]\x20%s',_0x59289c,utils[_0x272877(0xc1)](_0x56e816[0x0],this)),_0x18360d[_0x272877(0xc3)]();}catch(_0x9295b2){logger[_0x272877(0xc0)](_0x272877(0xbe),_0x59289c,JSON[_0x272877(0xc4)](_0x9295b2)),_0x18360d['stop']();}};}; \ 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 de3e38a..7e7d6ef 100644 --- a/server/services/routing/server/applications/queue.js +++ b/server/services/routing/server/applications/queue.js @@ -1 +1 @@ -const a1378_0x3b1d=['consequence','contact','update','joinAt','length','pick','update\x20queue\x20report','YYYY-MM-DD\x20HH:mm:ss','chat','%sQueuesWaitingInteractions','upperFirst','../../../../rediscache','[%s][QUEUE]\x20%s','save','qtimeout','string','toLowerCase','find','../../rpc/whatsappQueueReport','interaction','list','../../rpc/mailQueueReport','util','[%s][END:QUEUE][NAME:%s]','[%s][STOP:QUEUE][NAME:%s]','info','createQueue','seq-queue','message','format','log','account','from','../../rpc/chatQueueReport','complete','strategy','end','emit','./strategy','moment','create\x20queue\x20report','timeout\x20is\x20a\x20number','rules','name','../../rpc/smsQueueReport','AccountId','[%s][START:QUEUE][NAME:%s]','number','routing','%s:queue:%s','map','catch','QueueId','queue','waiting','error','MessageId','queue_id','QueueReport','stop','stack','channel','rrmemory','timeout','clone','../../../../config/logger','[%s][QUEUE]\x20queue\x20not\x20found\x20%s','[%s][QUEUE]\x20ROUTING\x20STOPPED','validate','close','body','%s_queue_waiting_interaction:%s'];(function(_0x1d692a,_0x4abf16){const _0x3b1df1=function(_0x1c9642){while(--_0x1c9642){_0x1d692a['push'](_0x1d692a['shift']());}};_0x3b1df1(++_0x4abf16);}(a1378_0x3b1d,0xa6));const a1378_0x1c96=function(_0x1d692a,_0x4abf16){_0x1d692a=_0x1d692a-0x1b4;let _0x3b1df1=a1378_0x3b1d[_0x1d692a];return _0x3b1df1;};const a1378_0x146aab=a1378_0x1c96;'use strict';const schema=require(a1378_0x146aab(0x1e2)),_=require('lodash'),util=require(a1378_0x146aab(0x1b4)),seqqueue=require(a1378_0x146aab(0x1b9)),moment=require(a1378_0x146aab(0x1c5)),logger=require(a1378_0x146aab(0x1df))(a1378_0x146aab(0x1ce)),strategy=require(a1378_0x146aab(0x1c4)),{getSocket}=require(a1378_0x146aab(0x1f1)),io=getSocket(),attributes=['id',a1378_0x146aab(0x1d7),a1378_0x146aab(0x1bd),a1378_0x146aab(0x1d3),a1378_0x146aab(0x1be),a1378_0x146aab(0x1e9)];function emit(_0x7078f6,_0x5265ed,_0x51b3b7){const _0x3ed5e7=a1378_0x146aab;io['to'](_0x7078f6)[_0x3ed5e7(0x1c3)](_0x5265ed,_0x51b3b7);}function emitChannelQueueInteraction(_0x4b44f7,_0x4fe054,_0xf74b5c,_0x3cd0a5,_0x45d3e2,_0x6d6687,_0x2a5353,_0x1d95a6){const _0x56fffc=a1378_0x146aab,_0xc906d3=_[_0x56fffc(0x1de)](_0xf74b5c);_0xc906d3[_0x56fffc(0x1d7)]=_0x1d95a6,_0xc906d3[_0x56fffc(0x1d3)]=_0x4fe054,_0xc906d3[_0x56fffc(0x1bd)]=_0x3cd0a5,_0xc906d3['id']=_0x45d3e2,_0x6d6687?_0x2a5353[util[_0x56fffc(0x1bb)](_0x56fffc(0x1ef),_0x4b44f7)][_0x45d3e2]=_[_0x56fffc(0x1eb)](_0xc906d3,attributes):delete _0x2a5353[util[_0x56fffc(0x1bb)]('%sQueuesWaitingInteractions',_0x4b44f7)][_0x45d3e2],emit(util['format'](_0x56fffc(0x1cf),_0x4b44f7,_0x4fe054),util[_0x56fffc(0x1bb)](_0x56fffc(0x1e5),_0x4b44f7,_0x6d6687?_0x56fffc(0x1f3):'remove'),_[_0x56fffc(0x1eb)](_0xc906d3,attributes));}const rpc={'openchannelQueueReport':require('../../rpc/openchannelQueueReport'),'mailQueueReport':require(a1378_0x146aab(0x1fb)),'chatQueueReport':require(a1378_0x146aab(0x1bf)),'smsQueueReport':require(a1378_0x146aab(0x1ca)),'faxQueueReport':require('../../rpc/faxQueueReport'),'whatsappQueueReport':require(a1378_0x146aab(0x1f8))},queue=schema({'name':{'type':a1378_0x146aab(0x1f5),'required':!![],'message':'name\x20is\x20a\x20string\x20and\x20it\x20is\x20required'},'timeout':{'type':a1378_0x146aab(0x1cd),'message':a1378_0x146aab(0x1c7)}});function startRouting(_0x3de9b1,_0x54b193,_0x4a40ca,_0x407144){const _0x49eb1c=a1378_0x146aab;if(_0x3de9b1&&_0x54b193&&_0x4a40ca){_0x54b193[_0x49eb1c(0x1d4)]+=0x1;const _0x1b63dd={'uniqueid':_0x3de9b1,'from':_0x4a40ca[_0x49eb1c(0x1e4)]?_0x4a40ca[_0x49eb1c(0x1e4)]['from']:'','joinAt':moment()[_0x49eb1c(0x1bb)](_0x49eb1c(0x1ed)),'ContactId':_0x4a40ca[_0x49eb1c(0x1e7)]?_0x4a40ca[_0x49eb1c(0x1e7)]['id']:null,'ListId':_0x4a40ca[_0x49eb1c(0x1fa)]?_0x4a40ca[_0x49eb1c(0x1fa)]['id']:null};_0x1b63dd[_[_0x49eb1c(0x1f0)](_0x4a40ca[_0x49eb1c(0x1db)])+_0x49eb1c(0x1d2)]=_0x54b193['id']||null,_0x1b63dd[_[_0x49eb1c(0x1f0)](_0x4a40ca[_0x49eb1c(0x1db)])+'InteractionId']=_0x4a40ca[_0x49eb1c(0x1f9)]?_0x4a40ca[_0x49eb1c(0x1f9)]['id']:null,_0x1b63dd[_[_0x49eb1c(0x1f0)](_0x4a40ca[_0x49eb1c(0x1db)])+_0x49eb1c(0x1d6)]=_0x4a40ca[_0x49eb1c(0x1ba)]?_0x4a40ca[_0x49eb1c(0x1ba)]['id']:null,_0x1b63dd[_[_0x49eb1c(0x1f0)](_0x4a40ca[_0x49eb1c(0x1db)])+(_0x4a40ca[_0x49eb1c(0x1db)]!==_0x49eb1c(0x1ee)?_0x49eb1c(0x1cb):'WebsiteId')]=_0x4a40ca[_0x49eb1c(0x1bd)]?_0x4a40ca[_0x49eb1c(0x1bd)]['id']:null,logger['info'](util[_0x49eb1c(0x1bb)](_0x49eb1c(0x1cc),_0x3de9b1,_0x54b193[_0x49eb1c(0x1c9)])),emitChannelQueueInteraction(_0x4a40ca[_0x49eb1c(0x1db)],_0x54b193['name'],_0x1b63dd,_0x4a40ca[_0x49eb1c(0x1bd)][_0x49eb1c(0x1c9)],_0x4a40ca[_0x49eb1c(0x1ba)]['id'],!![],_0x407144,_0x54b193['id']);if(rpc[_0x4a40ca['channel']+_0x49eb1c(0x1d8)])return rpc[_0x4a40ca[_0x49eb1c(0x1db)]+_0x49eb1c(0x1d8)]['create'](_0x1b63dd)[_0x49eb1c(0x1d1)](function(){const _0x5dc403=_0x49eb1c;logger[_0x5dc403(0x1d5)](_0x5dc403(0x1c6));});}}function stopRouting(_0x40a4a7,_0x13ae4f,_0x265c16,_0xfdc30e){const _0x3d9559=a1378_0x146aab;if(_0x40a4a7&&_0x13ae4f){_0x13ae4f[_0x3d9559(0x1d4)]-=0x1;const _0x10f2ac={'leaveAt':moment()[_0x3d9559(0x1bb)](_0x3d9559(0x1ed)),'acceptAt':moment()[_0x3d9559(0x1bb)](_0x3d9559(0x1ed)),'reason':'accepted'};logger[_0x3d9559(0x1b7)](util['format'](_0x3d9559(0x1b6),_0x40a4a7,_0x13ae4f['name'])),emitChannelQueueInteraction(_0x265c16[_0x3d9559(0x1db)],_0x13ae4f[_0x3d9559(0x1c9)],_0x265c16[_0x3d9559(0x1e4)],_0x265c16[_0x3d9559(0x1bd)]['name'],_0x265c16[_0x3d9559(0x1ba)]['id'],![],_0xfdc30e,_0x13ae4f['id']);if(rpc[_0x265c16[_0x3d9559(0x1db)]+_0x3d9559(0x1d8)])return rpc[_0x265c16[_0x3d9559(0x1db)]+_0x3d9559(0x1d8)]['update'](_0x40a4a7,_0x10f2ac)[_0x3d9559(0x1d1)](function(){const _0x55ad4f=_0x3d9559;logger['error'](_0x55ad4f(0x1ec));});}}function endRouting(_0x2432f7,_0x3c14f3,_0x29a44b,_0x541fa0){const _0xed8bf8=a1378_0x146aab;if(_0x2432f7&&_0x3c14f3){_0x3c14f3[_0xed8bf8(0x1d4)]-=0x1;const _0x3af703={'leaveAt':moment()['format'](_0xed8bf8(0x1ed)),'exitAt':moment()[_0xed8bf8(0x1bb)](_0xed8bf8(0x1ed)),'reason':_0xed8bf8(0x1dd)};logger[_0xed8bf8(0x1b7)](util[_0xed8bf8(0x1bb)](_0xed8bf8(0x1b5),_0x2432f7,_0x3c14f3[_0xed8bf8(0x1c9)])),emitChannelQueueInteraction(_0x29a44b[_0xed8bf8(0x1db)],_0x3c14f3[_0xed8bf8(0x1c9)],_0x29a44b[_0xed8bf8(0x1e4)],_0x29a44b[_0xed8bf8(0x1bd)][_0xed8bf8(0x1c9)],_0x29a44b[_0xed8bf8(0x1ba)]['id'],![],_0x541fa0);if(rpc[_0x29a44b['channel']+_0xed8bf8(0x1d8)])return rpc[_0x29a44b['channel']+_0xed8bf8(0x1d8)][_0xed8bf8(0x1e8)](_0x2432f7,_0x3af703)[_0xed8bf8(0x1d1)](function(){const _0x1b5efe=_0xed8bf8;logger[_0x1b5efe(0x1d5)](_0x1b5efe(0x1ec));});}}function handleFindQueue(_0x5adf23){return function(_0x275a16){const _0x446d2e=a1378_0x1c96;return _0x275a16['name'][_0x446d2e(0x1f6)]()===_0x5adf23[_0x446d2e(0x1f6)]();};}exports[a1378_0x146aab(0x1e6)]=function(_0x1783b3,_0x1898b5,_0x70ae3f,_0x16afcd){return function(_0x525691){const _0x1e3c69=a1378_0x1c96;try{const _0x547c7c={'name':_0x1898b5[0x0],'timeout':_0x1898b5[0x1]},_0x2a5430=queue[_0x1e3c69(0x1e2)](_0x547c7c,{'typecast':!![]});if(_0x2a5430[_0x1e3c69(0x1ea)])logger[_0x1e3c69(0x1d5)](_0x1e3c69(0x1f2),_0x1783b3,_[_0x1e3c69(0x1d0)](_0x2a5430,_0x1e3c69(0x1ba))['join'](',\x20')),_0x525691[_0x1e3c69(0x1d9)]();else{const _0x40043d=_[_0x1e3c69(0x1f7)](_0x70ae3f[_0x16afcd[_0x1e3c69(0x1db)]+'Queues'],handleFindQueue(_0x547c7c[_0x1e3c69(0x1c9)]));if(_0x40043d){startRouting(_0x1783b3,_0x40043d,_0x16afcd,_0x70ae3f);const _0x41071a=(_0x40043d[_0x1e3c69(0x1dd)]||0xa)*0x3e8;let _0x443f55=(_0x547c7c['timeout']||0x14)*0x3e8,_0x500acd;_0x41071a>_0x443f55&&(_0x443f55=_0x41071a);const _0x4185b8=seqqueue[_0x1e3c69(0x1b8)](_0x41071a);_0x4185b8['id']=_0x1783b3,_0x4185b8['atimeout']=_0x41071a,_0x4185b8[_0x1e3c69(0x1f4)]=_0x443f55,_0x4185b8[_0x1e3c69(0x1db)]=_0x16afcd[_0x1e3c69(0x1db)],_0x70ae3f[_0x1e3c69(0x1c8)][_0x1783b3]['on'](_0x1e3c69(0x1c2),function(){const _0x4d00f6=_0x1e3c69;logger[_0x4d00f6(0x1b7)](_0x4d00f6(0x1e1),_0x1783b3),stopRouting(_0x1783b3,_0x40043d,_0x16afcd,_0x70ae3f),clearTimeout(_0x500acd),_0x500acd=undefined,_0x4185b8[_0x4d00f6(0x1e3)](!![]),_0x70ae3f[_0x4d00f6(0x1c8)][_0x1783b3]&&delete _0x70ae3f[_0x4d00f6(0x1c8)][_0x1783b3],_0x525691['stop']();}),_0x70ae3f['rules'][_0x1783b3]['on'](_0x1e3c69(0x1c0),function(){const _0x9d2f57=_0x1e3c69;_0x70ae3f[_0x9d2f57(0x1c8)][_0x1783b3]&&delete _0x70ae3f[_0x9d2f57(0x1c8)][_0x1783b3];}),_0x500acd=setTimeout(function(){const _0x74490b=_0x1e3c69;logger[_0x74490b(0x1b7)]('[%s][QUEUE]\x20APPLICATION\x20END',_0x1783b3),endRouting(_0x1783b3,_0x40043d,_0x16afcd,_0x70ae3f),clearTimeout(_0x500acd),_0x4185b8[_0x74490b(0x1e3)](!![]),_0x525691['next']();},_0x443f55);switch(_0x40043d[_0x1e3c69(0x1c1)]){case'rrmemory':strategy[_0x1e3c69(0x1dc)](_0x4185b8,_0x40043d,_0x70ae3f,_0x16afcd);break;default:strategy['beepall'](_0x4185b8,_0x40043d,_0x70ae3f,_0x16afcd);}}else logger[_0x1e3c69(0x1d5)](_0x1e3c69(0x1e0),_0x1783b3,_0x547c7c[_0x1e3c69(0x1c9)]),_0x525691[_0x1e3c69(0x1d9)]();}}catch(_0x7b626f){console[_0x1e3c69(0x1bc)](_0x7b626f),logger['error']('[%s][QUEUE]\x20%s',_0x1783b3,_0x7b626f[_0x1e3c69(0x1da)]),_0x525691[_0x1e3c69(0x1d9)]();}};}; \ No newline at end of file +const a1378_0x18f2=['contact','create','timeout\x20is\x20a\x20number','../../rpc/mailQueueReport','format','update\x20queue\x20report','util','consequence','rules','%s_queue_waiting_interaction:%s','%s:queue:%s','name','upperFirst','queue_id','account','strategy','map','find','from','timeout','YYYY-MM-DD\x20HH:mm:ss','../../../../rediscache','close','log','seq-queue','body','toLowerCase','MessageId','create\x20queue\x20report','qtimeout','beepall','emit','stop','interaction','list','AccountId','[%s][QUEUE]\x20ROUTING\x20STOPPED','accepted','chat','info','[%s][QUEUE]\x20queue\x20not\x20found\x20%s','channel','waiting','remove','queue','InteractionId','save','pick','%sQueuesWaitingInteractions','QueueReport','rrmemory','createQueue','validate','number','[%s][START:QUEUE][NAME:%s]','error','../../rpc/smsQueueReport','../../rpc/chatQueueReport','../../rpc/faxQueueReport','update','message','[%s][END:QUEUE][NAME:%s]','WebsiteId','[%s][QUEUE]\x20APPLICATION\x20END','[%s][STOP:QUEUE][NAME:%s]','complete','routing','QueueId','end','catch'];(function(_0x3b3eab,_0x527858){const _0x18f2bb=function(_0x5efdb9){while(--_0x5efdb9){_0x3b3eab['push'](_0x3b3eab['shift']());}};_0x18f2bb(++_0x527858);}(a1378_0x18f2,0x108));const a1378_0x5efd=function(_0x3b3eab,_0x527858){_0x3b3eab=_0x3b3eab-0x171;let _0x18f2bb=a1378_0x18f2[_0x3b3eab];return _0x18f2bb;};const a1378_0x2bfeb7=a1378_0x5efd;'use strict';const schema=require(a1378_0x2bfeb7(0x1b5)),_=require('lodash'),util=require(a1378_0x2bfeb7(0x187)),seqqueue=require(a1378_0x2bfeb7(0x199)),moment=require('moment'),logger=require('../../../../config/logger')(a1378_0x2bfeb7(0x17d)),strategy=require('./strategy'),{getSocket}=require(a1378_0x2bfeb7(0x196)),io=getSocket(),attributes=['id',a1378_0x2bfeb7(0x18e),a1378_0x2bfeb7(0x18f),a1378_0x2bfeb7(0x1ad),a1378_0x2bfeb7(0x193),'joinAt'];function emit(_0x1711e7,_0x6cd1f1,_0x5c2157){const _0x474b63=a1378_0x2bfeb7;io['to'](_0x1711e7)[_0x474b63(0x1a0)](_0x6cd1f1,_0x5c2157);}function emitChannelQueueInteraction(_0x27bf32,_0x2fbf74,_0x147535,_0x57d8bf,_0x2c3a04,_0x5bff36,_0x555dab,_0x18b46d){const _0x41565c=a1378_0x2bfeb7,_0x7efc81=_['clone'](_0x147535);_0x7efc81[_0x41565c(0x18e)]=_0x18b46d,_0x7efc81[_0x41565c(0x1ad)]=_0x2fbf74,_0x7efc81[_0x41565c(0x18f)]=_0x57d8bf,_0x7efc81['id']=_0x2c3a04,_0x5bff36?_0x555dab[util[_0x41565c(0x185)](_0x41565c(0x1b1),_0x27bf32)][_0x2c3a04]=_[_0x41565c(0x1b0)](_0x7efc81,attributes):delete _0x555dab[util['format']('%sQueuesWaitingInteractions',_0x27bf32)][_0x2c3a04],emit(util[_0x41565c(0x185)](_0x41565c(0x18b),_0x27bf32,_0x2fbf74),util[_0x41565c(0x185)](_0x41565c(0x18a),_0x27bf32,_0x5bff36?_0x41565c(0x1af):_0x41565c(0x1ac)),_['pick'](_0x7efc81,attributes));}const rpc={'openchannelQueueReport':require('../../rpc/openchannelQueueReport'),'mailQueueReport':require(a1378_0x2bfeb7(0x184)),'chatQueueReport':require(a1378_0x2bfeb7(0x174)),'smsQueueReport':require(a1378_0x2bfeb7(0x173)),'faxQueueReport':require(a1378_0x2bfeb7(0x175)),'whatsappQueueReport':require('../../rpc/whatsappQueueReport')},queue=schema({'name':{'type':'string','required':!![],'message':'name\x20is\x20a\x20string\x20and\x20it\x20is\x20required'},'timeout':{'type':a1378_0x2bfeb7(0x1b6),'message':a1378_0x2bfeb7(0x183)}});function startRouting(_0xd8a5ec,_0x98f958,_0x1da89f,_0x10ee93){const _0x15b897=a1378_0x2bfeb7;if(_0xd8a5ec&&_0x98f958&&_0x1da89f){_0x98f958[_0x15b897(0x1ab)]+=0x1;const _0x3d1def={'uniqueid':_0xd8a5ec,'from':_0x1da89f['body']?_0x1da89f[_0x15b897(0x19a)][_0x15b897(0x193)]:'','joinAt':moment()[_0x15b897(0x185)]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x1da89f[_0x15b897(0x181)]?_0x1da89f[_0x15b897(0x181)]['id']:null,'ListId':_0x1da89f[_0x15b897(0x1a3)]?_0x1da89f[_0x15b897(0x1a3)]['id']:null};_0x3d1def[_[_0x15b897(0x18d)](_0x1da89f[_0x15b897(0x1aa)])+_0x15b897(0x17e)]=_0x98f958['id']||null,_0x3d1def[_[_0x15b897(0x18d)](_0x1da89f[_0x15b897(0x1aa)])+_0x15b897(0x1ae)]=_0x1da89f[_0x15b897(0x1a2)]?_0x1da89f['interaction']['id']:null,_0x3d1def[_['upperFirst'](_0x1da89f[_0x15b897(0x1aa)])+_0x15b897(0x19c)]=_0x1da89f['message']?_0x1da89f[_0x15b897(0x177)]['id']:null,_0x3d1def[_[_0x15b897(0x18d)](_0x1da89f[_0x15b897(0x1aa)])+(_0x1da89f['channel']!==_0x15b897(0x1a7)?_0x15b897(0x1a4):_0x15b897(0x179))]=_0x1da89f['account']?_0x1da89f[_0x15b897(0x18f)]['id']:null,logger[_0x15b897(0x1a8)](util[_0x15b897(0x185)](_0x15b897(0x171),_0xd8a5ec,_0x98f958['name'])),emitChannelQueueInteraction(_0x1da89f[_0x15b897(0x1aa)],_0x98f958[_0x15b897(0x18c)],_0x3d1def,_0x1da89f['account'][_0x15b897(0x18c)],_0x1da89f[_0x15b897(0x177)]['id'],!![],_0x10ee93,_0x98f958['id']);if(rpc[_0x1da89f[_0x15b897(0x1aa)]+_0x15b897(0x1b2)])return rpc[_0x1da89f[_0x15b897(0x1aa)]+_0x15b897(0x1b2)][_0x15b897(0x182)](_0x3d1def)[_0x15b897(0x180)](function(){const _0xfc7635=_0x15b897;logger[_0xfc7635(0x172)](_0xfc7635(0x19d));});}}function stopRouting(_0x468e3a,_0x2a63b6,_0x35005f,_0x3cc707){const _0x254ecc=a1378_0x2bfeb7;if(_0x468e3a&&_0x2a63b6){_0x2a63b6[_0x254ecc(0x1ab)]-=0x1;const _0x10cac6={'leaveAt':moment()['format'](_0x254ecc(0x195)),'acceptAt':moment()['format'](_0x254ecc(0x195)),'reason':_0x254ecc(0x1a6)};logger[_0x254ecc(0x1a8)](util[_0x254ecc(0x185)](_0x254ecc(0x17b),_0x468e3a,_0x2a63b6[_0x254ecc(0x18c)])),emitChannelQueueInteraction(_0x35005f[_0x254ecc(0x1aa)],_0x2a63b6[_0x254ecc(0x18c)],_0x35005f[_0x254ecc(0x19a)],_0x35005f[_0x254ecc(0x18f)][_0x254ecc(0x18c)],_0x35005f['message']['id'],![],_0x3cc707,_0x2a63b6['id']);if(rpc[_0x35005f[_0x254ecc(0x1aa)]+'QueueReport'])return rpc[_0x35005f[_0x254ecc(0x1aa)]+'QueueReport'][_0x254ecc(0x176)](_0x468e3a,_0x10cac6)[_0x254ecc(0x180)](function(){const _0x18074b=_0x254ecc;logger[_0x18074b(0x172)](_0x18074b(0x186));});}}function endRouting(_0x1701e4,_0x56d73d,_0x437e7f,_0x1fc6cf){const _0x1f6961=a1378_0x2bfeb7;if(_0x1701e4&&_0x56d73d){_0x56d73d[_0x1f6961(0x1ab)]-=0x1;const _0x2beace={'leaveAt':moment()['format'](_0x1f6961(0x195)),'exitAt':moment()[_0x1f6961(0x185)]('YYYY-MM-DD\x20HH:mm:ss'),'reason':'timeout'};logger['info'](util[_0x1f6961(0x185)](_0x1f6961(0x178),_0x1701e4,_0x56d73d['name'])),emitChannelQueueInteraction(_0x437e7f[_0x1f6961(0x1aa)],_0x56d73d[_0x1f6961(0x18c)],_0x437e7f[_0x1f6961(0x19a)],_0x437e7f[_0x1f6961(0x18f)][_0x1f6961(0x18c)],_0x437e7f[_0x1f6961(0x177)]['id'],![],_0x1fc6cf);if(rpc[_0x437e7f[_0x1f6961(0x1aa)]+_0x1f6961(0x1b2)])return rpc[_0x437e7f[_0x1f6961(0x1aa)]+'QueueReport'][_0x1f6961(0x176)](_0x1701e4,_0x2beace)[_0x1f6961(0x180)](function(){const _0x668e61=_0x1f6961;logger[_0x668e61(0x172)](_0x668e61(0x186));});}}function handleFindQueue(_0x1353eb){return function(_0x41a55f){const _0x3b0354=a1378_0x5efd;return _0x41a55f[_0x3b0354(0x18c)]['toLowerCase']()===_0x1353eb[_0x3b0354(0x19b)]();};}exports[a1378_0x2bfeb7(0x188)]=function(_0x2f9f4e,_0x40cc45,_0x31a04e,_0x4c7469){return function(_0x36bf8f){const _0x1a0a3d=a1378_0x5efd;try{const _0xa3c8d3={'name':_0x40cc45[0x0],'timeout':_0x40cc45[0x1]},_0x169daf=queue[_0x1a0a3d(0x1b5)](_0xa3c8d3,{'typecast':!![]});if(_0x169daf['length'])logger[_0x1a0a3d(0x172)]('[%s][QUEUE]\x20%s',_0x2f9f4e,_[_0x1a0a3d(0x191)](_0x169daf,_0x1a0a3d(0x177))['join'](',\x20')),_0x36bf8f['stop']();else{const _0x158527=_[_0x1a0a3d(0x192)](_0x31a04e[_0x4c7469[_0x1a0a3d(0x1aa)]+'Queues'],handleFindQueue(_0xa3c8d3[_0x1a0a3d(0x18c)]));if(_0x158527){startRouting(_0x2f9f4e,_0x158527,_0x4c7469,_0x31a04e);const _0x499e82=(_0x158527[_0x1a0a3d(0x194)]||0xa)*0x3e8;let _0x54ad23=(_0xa3c8d3[_0x1a0a3d(0x194)]||0x14)*0x3e8,_0x3ddf36;_0x499e82>_0x54ad23&&(_0x54ad23=_0x499e82);const _0x3d6106=seqqueue[_0x1a0a3d(0x1b4)](_0x499e82);_0x3d6106['id']=_0x2f9f4e,_0x3d6106['atimeout']=_0x499e82,_0x3d6106[_0x1a0a3d(0x19e)]=_0x54ad23,_0x3d6106['channel']=_0x4c7469['channel'],_0x31a04e[_0x1a0a3d(0x189)][_0x2f9f4e]['on'](_0x1a0a3d(0x17f),function(){const _0x156723=_0x1a0a3d;logger[_0x156723(0x1a8)](_0x156723(0x1a5),_0x2f9f4e),stopRouting(_0x2f9f4e,_0x158527,_0x4c7469,_0x31a04e),clearTimeout(_0x3ddf36),_0x3ddf36=undefined,_0x3d6106[_0x156723(0x197)](!![]),_0x31a04e[_0x156723(0x189)][_0x2f9f4e]&&delete _0x31a04e[_0x156723(0x189)][_0x2f9f4e],_0x36bf8f[_0x156723(0x1a1)]();}),_0x31a04e[_0x1a0a3d(0x189)][_0x2f9f4e]['on'](_0x1a0a3d(0x17c),function(){const _0x3a4c79=_0x1a0a3d;_0x31a04e[_0x3a4c79(0x189)][_0x2f9f4e]&&delete _0x31a04e[_0x3a4c79(0x189)][_0x2f9f4e];}),_0x3ddf36=setTimeout(function(){const _0x3f0a63=_0x1a0a3d;logger[_0x3f0a63(0x1a8)](_0x3f0a63(0x17a),_0x2f9f4e),endRouting(_0x2f9f4e,_0x158527,_0x4c7469,_0x31a04e),clearTimeout(_0x3ddf36),_0x3d6106[_0x3f0a63(0x197)](!![]),_0x36bf8f['next']();},_0x54ad23);switch(_0x158527[_0x1a0a3d(0x190)]){case _0x1a0a3d(0x1b3):strategy[_0x1a0a3d(0x1b3)](_0x3d6106,_0x158527,_0x31a04e,_0x4c7469);break;default:strategy[_0x1a0a3d(0x19f)](_0x3d6106,_0x158527,_0x31a04e,_0x4c7469);}}else logger[_0x1a0a3d(0x172)](_0x1a0a3d(0x1a9),_0x2f9f4e,_0xa3c8d3[_0x1a0a3d(0x18c)]),_0x36bf8f[_0x1a0a3d(0x1a1)]();}}catch(_0x5c74aa){console[_0x1a0a3d(0x198)](_0x5c74aa),logger[_0x1a0a3d(0x172)]('[%s][QUEUE]\x20%s',_0x2f9f4e,_0x5c74aa['stack']),_0x36bf8f[_0x1a0a3d(0x1a1)]();}};}; \ 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 3d96334..8ffb41e 100644 --- a/server/services/routing/server/applications/strategy/agent.js +++ b/server/services/routing/server/applications/strategy/agent.js @@ -1 +1 @@ -const a1379_0x2833=['handleTimeout',':FORCED','prototype','writeLog','STOP','agents','bind','uuid','busyQueue','info','TIMEOUT','forcedOwnership','hideNotification','channel','drained','squeue','lodash','push','exports','isNil','realtime','RINGING','routing','notificationId','[%s][AGENT]\x20agent\x20%s\x20is\x20not\x20available','[%s][AGENT]\x20try\x20with\x20%s','[%s][AGENT]\x20agent\x20skipped,\x20unknown\x20id\x20%s','timeout','handleDrained','agent','isAgentAvailable','./util'];(function(_0x2291fd,_0x5c5bde){const _0x2833af=function(_0x44f372){while(--_0x44f372){_0x2291fd['push'](_0x2291fd['shift']());}};_0x2833af(++_0x5c5bde);}(a1379_0x2833,0xd3));const a1379_0x44f3=function(_0x2291fd,_0x5c5bde){_0x2291fd=_0x2291fd-0x69;let _0x2833af=a1379_0x2833[_0x2291fd];return _0x2833af;};const a1379_0x15481a=a1379_0x44f3;'use strict';const _=require(a1379_0x15481a(0x86)),uuid=require(a1379_0x15481a(0x7d)),util=require(a1379_0x15481a(0x75)),logger=require('../../../../../config/logger')('routing'),Agent=function(_0x4941e2,_0x28f281,_0x477e53,_0x21ef4b){const _0x169a9f=a1379_0x15481a;this[_0x169a9f(0x6d)]=uuid['v4'](),this[_0x169a9f(0x85)]=_0x4941e2,this[_0x169a9f(0x73)]=_0x28f281,this[_0x169a9f(0x6a)]=_0x477e53,this['routing']=_0x21ef4b,this[_0x169a9f(0x85)][_0x169a9f(0x87)](this['handleRun'][_0x169a9f(0x7c)](this),this['handleTimeout'][_0x169a9f(0x7c)](this)),this['squeue']['on'](_0x169a9f(0x71),this[_0x169a9f(0x76)][_0x169a9f(0x7c)](this)),this['squeue']['on'](_0x169a9f(0x84),this[_0x169a9f(0x72)]['bind'](this));};Agent['prototype']['push']=function(){const _0x128e08=a1379_0x15481a;this[_0x128e08(0x85)]['push'](this['handleRun'][_0x128e08(0x7c)](this),this[_0x128e08(0x76)]['bind'](this));},Agent[a1379_0x15481a(0x78)][a1379_0x15481a(0x72)]=function(){const _0x36d491=a1379_0x15481a;this[_0x36d491(0x76)](!![]);},Agent[a1379_0x15481a(0x78)]['handleRun']=function(){const _0x311967=a1379_0x15481a;logger[_0x311967(0x7f)](_0x311967(0x6f),this[_0x311967(0x85)]['id'],this[_0x311967(0x73)]['id']),_['isNil'](this[_0x311967(0x6a)][_0x311967(0x7b)][this[_0x311967(0x73)]['id']])?(logger[_0x311967(0x7f)]('[%s][AGENT]\x20agent\x20skipped,\x20unknown\x20id\x20%s',this[_0x311967(0x85)]['id'],this[_0x311967(0x73)]['id']),setTimeout(this[_0x311967(0x87)][_0x311967(0x7c)](this),0x3e8)):this[_0x311967(0x6c)]['forcedOwnership']||util[_0x311967(0x74)](this[_0x311967(0x85)]['id'],this['realtime']['agents'][this[_0x311967(0x73)]['id']],this['squeue'][_0x311967(0x83)],![])?(this[_0x311967(0x6a)][_0x311967(0x7b)][this['agent']['id']]['busy']=!![],this['realtime'][_0x311967(0x7b)][this[_0x311967(0x73)]['id']][_0x311967(0x7e)]=undefined,util['showNotification'](this[_0x311967(0x6d)],this['squeue']['id'],this[_0x311967(0x6a)][_0x311967(0x7b)][this[_0x311967(0x73)]['id']],null,this[_0x311967(0x6c)]),util[_0x311967(0x79)](this[_0x311967(0x85)]['id'],this[_0x311967(0x6a)][_0x311967(0x7b)][this[_0x311967(0x73)]['id']],_0x311967(0x6b)+(this[_0x311967(0x6c)][_0x311967(0x81)]?_0x311967(0x77):''))):(logger[_0x311967(0x7f)](_0x311967(0x6e),this['squeue']['id'],this[_0x311967(0x73)]['id']),setTimeout(this[_0x311967(0x87)][_0x311967(0x7c)](this),0x3e8));},Agent['prototype'][a1379_0x15481a(0x76)]=function(_0x10724a){const _0xce6ab6=a1379_0x15481a;if(_[_0xce6ab6(0x69)](this[_0xce6ab6(0x6a)][_0xce6ab6(0x7b)][this[_0xce6ab6(0x73)]['id']]))return logger[_0xce6ab6(0x7f)](_0xce6ab6(0x70),this[_0xce6ab6(0x85)]['id'],this[_0xce6ab6(0x73)]['id']);else logger['info']('[%s][AGENT]\x20timeout\x20with\x20%s',this[_0xce6ab6(0x85)]['id'],this[_0xce6ab6(0x73)]['id']),util[_0xce6ab6(0x82)](this[_0xce6ab6(0x6d)],this['squeue']['id'],this[_0xce6ab6(0x6a)][_0xce6ab6(0x7b)][this['agent']['id']],null,this['routing']),this[_0xce6ab6(0x6a)][_0xce6ab6(0x7b)][this[_0xce6ab6(0x73)]['id']]['busy']=![],this[_0xce6ab6(0x6a)]['agents'][this[_0xce6ab6(0x73)]['id']][_0xce6ab6(0x7e)]=undefined,util[_0xce6ab6(0x79)](this[_0xce6ab6(0x85)]['id'],this[_0xce6ab6(0x6a)][_0xce6ab6(0x7b)][this['agent']['id']],_0x10724a?_0xce6ab6(0x7a):_0xce6ab6(0x80));!_0x10724a&&setTimeout(this[_0xce6ab6(0x87)][_0xce6ab6(0x7c)](this),0x3e8);};function agent(_0x333603,_0x6b067b,_0x84f409,_0x3e945a){return new Agent(_0x333603,_0x6b067b,_0x84f409,_0x3e945a);}module[a1379_0x15481a(0x88)]=agent; \ No newline at end of file +const a1379_0x4c8f=['handleDrained','info','showNotification','forcedOwnership','notificationId','isAgentAvailable','exports','RINGING','prototype','routing','isNil','[%s][AGENT]\x20timeout\x20with\x20%s','handleTimeout','timeout','[%s][AGENT]\x20agent\x20skipped,\x20unknown\x20id\x20%s','push','../../../../../config/logger','./util','busyQueue','handleRun','hideNotification','squeue','[%s][AGENT]\x20try\x20with\x20%s','agents','writeLog','drained','uuid','STOP','bind','TIMEOUT','lodash',':FORCED','realtime','busy','agent'];(function(_0x25e556,_0x55259d){const _0x4c8f8b=function(_0x4e9302){while(--_0x4e9302){_0x25e556['push'](_0x25e556['shift']());}};_0x4c8f8b(++_0x55259d);}(a1379_0x4c8f,0x15c));const a1379_0x4e93=function(_0x25e556,_0x55259d){_0x25e556=_0x25e556-0x12b;let _0x4c8f8b=a1379_0x4c8f[_0x25e556];return _0x4c8f8b;};const a1379_0x25a729=a1379_0x4e93;'use strict';const _=require(a1379_0x25a729(0x14b)),uuid=require(a1379_0x25a729(0x147)),util=require(a1379_0x25a729(0x13e)),logger=require(a1379_0x25a729(0x13d))(a1379_0x25a729(0x136)),Agent=function(_0x545f4a,_0x4cc4f2,_0x534ddb,_0x46d210){const _0x4b0b84=a1379_0x25a729;this['notificationId']=uuid['v4'](),this[_0x4b0b84(0x142)]=_0x545f4a,this['agent']=_0x4cc4f2,this[_0x4b0b84(0x14d)]=_0x534ddb,this[_0x4b0b84(0x136)]=_0x46d210,this[_0x4b0b84(0x142)]['push'](this[_0x4b0b84(0x140)][_0x4b0b84(0x149)](this),this['handleTimeout']['bind'](this)),this[_0x4b0b84(0x142)]['on'](_0x4b0b84(0x13a),this[_0x4b0b84(0x139)][_0x4b0b84(0x149)](this)),this[_0x4b0b84(0x142)]['on'](_0x4b0b84(0x146),this[_0x4b0b84(0x12d)]['bind'](this));};Agent[a1379_0x25a729(0x135)]['push']=function(){const _0x371bb4=a1379_0x25a729;this[_0x371bb4(0x142)][_0x371bb4(0x13c)](this['handleRun'][_0x371bb4(0x149)](this),this[_0x371bb4(0x139)][_0x371bb4(0x149)](this));},Agent['prototype'][a1379_0x25a729(0x12d)]=function(){this['handleTimeout'](!![]);},Agent[a1379_0x25a729(0x135)][a1379_0x25a729(0x140)]=function(){const _0x5ad06e=a1379_0x25a729;logger[_0x5ad06e(0x12e)](_0x5ad06e(0x143),this[_0x5ad06e(0x142)]['id'],this[_0x5ad06e(0x12c)]['id']),_[_0x5ad06e(0x137)](this[_0x5ad06e(0x14d)]['agents'][this['agent']['id']])?(logger['info']('[%s][AGENT]\x20agent\x20skipped,\x20unknown\x20id\x20%s',this[_0x5ad06e(0x142)]['id'],this[_0x5ad06e(0x12c)]['id']),setTimeout(this[_0x5ad06e(0x13c)]['bind'](this),0x3e8)):this[_0x5ad06e(0x136)][_0x5ad06e(0x130)]||util[_0x5ad06e(0x132)](this[_0x5ad06e(0x142)]['id'],this['realtime'][_0x5ad06e(0x144)][this[_0x5ad06e(0x12c)]['id']],this['squeue']['channel'],![])?(this[_0x5ad06e(0x14d)][_0x5ad06e(0x144)][this[_0x5ad06e(0x12c)]['id']][_0x5ad06e(0x12b)]=!![],this[_0x5ad06e(0x14d)][_0x5ad06e(0x144)][this[_0x5ad06e(0x12c)]['id']]['busyQueue']=undefined,util[_0x5ad06e(0x12f)](this[_0x5ad06e(0x131)],this[_0x5ad06e(0x142)]['id'],this[_0x5ad06e(0x14d)][_0x5ad06e(0x144)][this['agent']['id']],null,this[_0x5ad06e(0x136)]),util[_0x5ad06e(0x145)](this[_0x5ad06e(0x142)]['id'],this['realtime']['agents'][this[_0x5ad06e(0x12c)]['id']],_0x5ad06e(0x134)+(this[_0x5ad06e(0x136)]['forcedOwnership']?_0x5ad06e(0x14c):''))):(logger[_0x5ad06e(0x12e)]('[%s][AGENT]\x20agent\x20%s\x20is\x20not\x20available',this['squeue']['id'],this[_0x5ad06e(0x12c)]['id']),setTimeout(this[_0x5ad06e(0x13c)][_0x5ad06e(0x149)](this),0x3e8));},Agent[a1379_0x25a729(0x135)][a1379_0x25a729(0x139)]=function(_0x5bf013){const _0x4177b4=a1379_0x25a729;if(_[_0x4177b4(0x137)](this[_0x4177b4(0x14d)][_0x4177b4(0x144)][this[_0x4177b4(0x12c)]['id']]))return logger[_0x4177b4(0x12e)](_0x4177b4(0x13b),this[_0x4177b4(0x142)]['id'],this[_0x4177b4(0x12c)]['id']);else logger['info'](_0x4177b4(0x138),this['squeue']['id'],this['agent']['id']),util[_0x4177b4(0x141)](this[_0x4177b4(0x131)],this[_0x4177b4(0x142)]['id'],this[_0x4177b4(0x14d)][_0x4177b4(0x144)][this[_0x4177b4(0x12c)]['id']],null,this[_0x4177b4(0x136)]),this['realtime'][_0x4177b4(0x144)][this[_0x4177b4(0x12c)]['id']][_0x4177b4(0x12b)]=![],this[_0x4177b4(0x14d)]['agents'][this['agent']['id']][_0x4177b4(0x13f)]=undefined,util[_0x4177b4(0x145)](this['squeue']['id'],this[_0x4177b4(0x14d)][_0x4177b4(0x144)][this['agent']['id']],_0x5bf013?_0x4177b4(0x148):_0x4177b4(0x14a));!_0x5bf013&&setTimeout(this[_0x4177b4(0x13c)][_0x4177b4(0x149)](this),0x3e8);};function agent(_0x1d9446,_0x2cc926,_0x324718,_0xaf6871){return new Agent(_0x1d9446,_0x2cc926,_0x324718,_0xaf6871);}module[a1379_0x25a729(0x133)]=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 52a38ef..7142c29 100644 --- a/server/services/routing/server/applications/strategy/beepall.js +++ b/server/services/routing/server/applications/strategy/beepall.js @@ -1 +1 @@ -const a1380_0x3259=['length','lodash','handleRun','isNil','isAgentAvailable','busy','handleDrained','push','../../../../../config/logger','queue','[%s][QUEUE]\x20agent\x20skipped,\x20unknown\x20id\x20%s','[%s][QUEUE]\x20EMPTY','writeLog','[%s][QUEUE]\x20ALL\x20AGENTS\x20ARE\x20BUSY','prototype','TIMEOUT','info','hideNotification','Agents','realtime','routing','busyQueue','squeue','drained','uuid','./util','notificationId','handleTimeout','bind','RINGING','timeout','showNotification','agents'];(function(_0xbdd139,_0x49fa25){const _0x325985=function(_0x1676f4){while(--_0x1676f4){_0xbdd139['push'](_0xbdd139['shift']());}};_0x325985(++_0x49fa25);}(a1380_0x3259,0x171));const a1380_0x1676=function(_0xbdd139,_0x49fa25){_0xbdd139=_0xbdd139-0x123;let _0x325985=a1380_0x3259[_0xbdd139];return _0x325985;};const a1380_0x11a509=a1380_0x1676;'use strict';const _=require(a1380_0x11a509(0x13f)),uuid=require(a1380_0x11a509(0x135)),util=require(a1380_0x11a509(0x136)),logger=require(a1380_0x11a509(0x125))(a1380_0x11a509(0x131)),Beepall=function(_0x33a36f,_0x16d5dd,_0x2936b0,_0x2d6fd1){const _0x402150=a1380_0x11a509;this['notificationId']=uuid['v4'](),this[_0x402150(0x133)]=_0x33a36f,this[_0x402150(0x126)]=_0x16d5dd,this[_0x402150(0x130)]=_0x2936b0,this['routing']=_0x2d6fd1,this['squeue']['push'](this[_0x402150(0x140)][_0x402150(0x139)](this),this[_0x402150(0x138)][_0x402150(0x139)](this)),this[_0x402150(0x133)]['on'](_0x402150(0x13b),this['handleTimeout'][_0x402150(0x139)](this)),this[_0x402150(0x133)]['on'](_0x402150(0x134),this[_0x402150(0x123)][_0x402150(0x139)](this));};Beepall[a1380_0x11a509(0x12b)]['push']=function(){const _0x514eb8=a1380_0x11a509;this[_0x514eb8(0x133)][_0x514eb8(0x124)](this['handleRun'][_0x514eb8(0x139)](this),this[_0x514eb8(0x138)][_0x514eb8(0x139)](this));},Beepall['prototype'][a1380_0x11a509(0x123)]=function(){this['handleTimeout'](!![]);},Beepall[a1380_0x11a509(0x12b)][a1380_0x11a509(0x140)]=function(){const _0x311ff0=a1380_0x11a509;let _0x5b739b=!![];if(!_[_0x311ff0(0x141)](this[_0x311ff0(0x126)])&&!_[_0x311ff0(0x141)](this[_0x311ff0(0x126)][_0x311ff0(0x12f)])&&this['queue'][_0x311ff0(0x12f)][_0x311ff0(0x13e)]>0x0){for(let _0x3d76ee=0x0,_0xdbdceb;_0x3d76ee0x0){for(let _0x5b0a61=0x0,_0x18c8e4;_0x5b0a610x0&&_0x5c2271[_0x4485c3+_0x109b95(0x1ee)]>=_0x5c2271[_0x4485c3+'Capacity'])return writeLog(_0xa5573f,_0x5c2271,_0x4485c3[_0x109b95(0x1d5)]()+_0x109b95(0x1e5)),![];}return!![];},exports[a1383_0x1bdefa(0x1e2)]=function(_0xbf4182,_0x383331,_0x23e354,_0x2dfbbd,_0x234de6){return sendNotification(!![],_0xbf4182,_0x383331,_0x23e354,_0x2dfbbd,_0x234de6);},exports[a1383_0x1bdefa(0x1d2)]=function(_0x5c213b,_0x1c9786,_0x1c87f5,_0xf30440,_0x593cff){return sendNotification(![],_0x5c213b,_0x1c9786,_0x1c87f5,_0xf30440,_0x593cff);},exports[a1383_0x1bdefa(0x1e6)]=writeLog; \ No newline at end of file +const a1383_0x2350=['save','remove','format','error','body','busy','../utils','user:%s','notificationSound','../../../../../config/logger','account','split','PAUSE','\x20interaction','[%s][QUEUE]\x20%s','OFFLINE','notification:%s','undefined','BUSY','I\x20can\x27t\x20render\x20your\x20template','msg','user:save','writeLog','Capacity','message','util','queue','Pause','notificationShake','../../../../../rediscache','notificationTemplate','name','emit','info'];(function(_0x7cbe55,_0x5c0909){const _0x235097=function(_0x1ade1f){while(--_0x1ade1f){_0x7cbe55['push'](_0x7cbe55['shift']());}};_0x235097(++_0x5c0909);}(a1383_0x2350,0x158));const a1383_0x1ade=function(_0x7cbe55,_0x5c0909){_0x7cbe55=_0x7cbe55-0xc2;let _0x235097=a1383_0x2350[_0x7cbe55];return _0x235097;};const a1383_0x353db6=a1383_0x1ade;'use strict';const util=require(a1383_0x353db6(0xd7)),utils=require(a1383_0x353db6(0xc4)),logger=require(a1383_0x353db6(0xc7))('routing'),{getSocket}=require(a1383_0x353db6(0xdb)),io=getSocket();function sendNotification(_0x3cacc4,_0x28b8f1,_0x278489,_0x5d3339,_0x3f63e6,_0x478eec){const _0x221e92=a1383_0x353db6;io['to'](util[_0x221e92(0xe2)](_0x221e92(0xc5),_0x5d3339[_0x221e92(0xdd)]))[_0x221e92(0xde)](_0x221e92(0xd3),_0x5d3339);const _0x35a5c8=_0x478eec||{},_0x45727b=_0x278489[_0x221e92(0xc9)]('.'),_0x2a2c5f={'uniqueid':_0x28b8f1,'channel':_0x45727b[0x0],'id':_0x45727b[0x1],'title':_0x45727b[0x0]+_0x221e92(0xcb),'interactionId':_0x45727b[0x2],'queue':_0x3f63e6?_0x3f63e6['name']:null,'sound':_0x35a5c8[_0x221e92(0xc8)][_0x221e92(0xc6)],'shake':_0x35a5c8['account'][_0x221e92(0xda)]};try{!_0x35a5c8[_0x221e92(0xc2)]&&(_0x35a5c8[_0x221e92(0xc2)]={});if(_0x3f63e6)_0x35a5c8['body'][_0x221e92(0xd8)]=_0x3f63e6;else _0x35a5c8[_0x221e92(0xc2)][_0x221e92(0xd8)]&&delete _0x35a5c8['body'][_0x221e92(0xd8)];_0x2a2c5f['msg']=utils['getMustacheRender'](_0x35a5c8[_0x221e92(0xc8)][_0x221e92(0xdc)],_0x35a5c8);}catch(_0x289102){_0x2a2c5f[_0x221e92(0xd2)]=_0x221e92(0xd1),logger[_0x221e92(0xe3)](util[_0x221e92(0xe2)](_0x221e92(0xcc),_0x28b8f1,_0x289102[_0x221e92(0xd6)]));}io['to'](util['format'](_0x221e92(0xc5),_0x5d3339[_0x221e92(0xdd)]))[_0x221e92(0xde)](util[_0x221e92(0xe2)](_0x221e92(0xce),_0x3cacc4?_0x221e92(0xe0):_0x221e92(0xe1)),_0x2a2c5f);}function writeLog(_0x2db369,_0x464f53,_0x1bdf1c){const _0xf4ee3c=a1383_0x353db6;return logger[_0xf4ee3c(0xdf)](util[_0xf4ee3c(0xe2)]('[%s][QUEUE][AGENT:%s][STATUS:%s]',_0x2db369,_0x464f53['name'],_0x1bdf1c));}exports['isAgentAvailable']=function(_0x4e66c7,_0x17226f,_0x114c55,_0x3b7513){const _0x49d5cf=a1383_0x353db6;if(_0x17226f[_0x49d5cf(0xc3)])return writeLog(_0x4e66c7,_0x17226f,_0x49d5cf(0xd0)),![];if(!_0x17226f['online'])return writeLog(_0x4e66c7,_0x17226f,_0x49d5cf(0xcd)),![];if(_0x17226f[_0x114c55+_0x49d5cf(0xd9)])return writeLog(_0x4e66c7,_0x17226f,_0x49d5cf(0xca)),![];if(_0x3b7513&&typeof _0x17226f[_0x114c55+_0x49d5cf(0xd5)]!=='undefined'&&typeof _0x17226f[_0x114c55+'CurrentCapacity']!==_0x49d5cf(0xcf)){if(_0x17226f[_0x114c55+_0x49d5cf(0xd5)]>0x0&&_0x17226f[_0x114c55+'CurrentCapacity']>=_0x17226f[_0x114c55+_0x49d5cf(0xd5)])return writeLog(_0x4e66c7,_0x17226f,_0x114c55['toUpperCase']()+'\x20MAXCAPACITY'),![];}return!![];},exports['showNotification']=function(_0x55eb91,_0x5b05cf,_0x1dd47f,_0x303aeb,_0xe0f5c1){return sendNotification(!![],_0x55eb91,_0x5b05cf,_0x1dd47f,_0x303aeb,_0xe0f5c1);},exports['hideNotification']=function(_0x1b60c5,_0x2ddd99,_0x12fd76,_0x1e5667,_0x452da6){return sendNotification(![],_0x1b60c5,_0x2ddd99,_0x12fd76,_0x1e5667,_0x452da6);},exports[a1383_0x353db6(0xd4)]=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 c52f461..bf0e017 100644 --- a/server/services/routing/server/applications/system.js +++ b/server/services/routing/server/applications/system.js @@ -1 +1 @@ -const a1384_0x590f=['replace','./utils','../../../../config/logger','next','[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next','shelljs','[%s][SYSTEM]\x20commnad:\x20%s','[%s][SYSTEM]\x20result\x20code:\x20%s','[%s][SYSTEM]\x20%s','getMustacheRender','validate','isNil','trim','string','length','[%s][SYSTEM]\x20no\x20variable','isEmpty','info','join','command\x20is\x20a\x20string\x20and\x20it\x20is\x20required','consequence','error','body','[%s][SYSTEM]\x20set\x20variable\x20%s:\x20%s','message','isObject'];(function(_0x90976d,_0x254bf4){const _0x590f1c=function(_0x42ef18){while(--_0x42ef18){_0x90976d['push'](_0x90976d['shift']());}};_0x590f1c(++_0x254bf4);}(a1384_0x590f,0x16c));const a1384_0x42ef=function(_0x90976d,_0x254bf4){_0x90976d=_0x90976d-0x1cc;let _0x590f1c=a1384_0x590f[_0x90976d];return _0x590f1c;};const a1384_0xf4b9e4=a1384_0x42ef;'use strict';const schema=require(a1384_0xf4b9e4(0x1d6)),sh=require(a1384_0xf4b9e4(0x1d1)),_=require('lodash'),utils=require(a1384_0xf4b9e4(0x1cd)),logger=require(a1384_0xf4b9e4(0x1ce))('routing'),system=schema({'command':{'type':a1384_0xf4b9e4(0x1d9),'required':!![],'message':a1384_0xf4b9e4(0x1df)}});exports[a1384_0xf4b9e4(0x1e0)]=function(_0x240787,_0x1c2ca5){return function(_0x44cbd0){const _0x1105d5=a1384_0x42ef;try{const _0x3e9c89={'command':_0x1c2ca5[0x0]},_0x30d337=system[_0x1105d5(0x1d6)](_0x3e9c89,{'typecast':!![]});if(_0x30d337[_0x1105d5(0x1da)])logger['error'](_0x1105d5(0x1d4),_0x240787,_['map'](_0x30d337,_0x1105d5(0x1e4))[_0x1105d5(0x1de)](',\x20')),logger[_0x1105d5(0x1dd)](_0x1105d5(0x1d0),_0x240787),_0x44cbd0[_0x1105d5(0x1cf)]();else{const _0x1d0d52=this,_0x428f57=utils[_0x1105d5(0x1d5)](_0x1c2ca5[0x0],this);logger[_0x1105d5(0x1dd)](_0x1105d5(0x1d2),_0x240787,_0x428f57),sh['exec'](_[_0x1105d5(0x1d8)](_0x428f57),function(_0x437b27,_0x50c1b9){const _0x4c3244=_0x1105d5;logger['info'](_0x4c3244(0x1d3),_0x240787,_0x437b27);if(_0x437b27==0x0){const _0xea81ce=_0x50c1b9[_0x4c3244(0x1cc)](/(\r\n|\n|\r)/gm,'');_[_0x4c3244(0x1d7)](_0x1c2ca5[0x1])||_[_0x4c3244(0x1dc)](_0x1c2ca5[0x1])?(logger['info'](_0x4c3244(0x1db),_0x240787),_0x1d0d52[_0x4c3244(0x1e2)][_0x1c2ca5[0x1]]=_0xea81ce):(logger[_0x4c3244(0x1dd)](_0x4c3244(0x1e3),_0x240787,_0x1c2ca5[0x1],_0xea81ce),_0x1d0d52['body'][_0x1c2ca5[0x1]]=_0xea81ce);}_0x44cbd0[_0x4c3244(0x1cf)]();});}}catch(_0x1929f5){logger[_0x1105d5(0x1e1)](_0x1105d5(0x1d4),_0x240787,_[_0x1105d5(0x1e5)](_0x1929f5)?JSON['stringify'](_0x1929f5):_0x1929f5),logger[_0x1105d5(0x1dd)](_0x1105d5(0x1d0),_0x240787),_0x44cbd0['next']();}};}; \ No newline at end of file +const a1384_0x306d=['[%s][SYSTEM]\x20no\x20variable','body','replace','consequence','exec','getMustacheRender','[%s][SYSTEM]\x20set\x20variable\x20%s:\x20%s','lodash','isEmpty','[%s][SYSTEM]\x20commnad:\x20%s','command\x20is\x20a\x20string\x20and\x20it\x20is\x20required','error','message','validate','info','join','length','string','isNil','[%s][SYSTEM]\x20result\x20code:\x20%s','next','routing','[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next'];(function(_0x3323b5,_0x332b63){const _0x306d3f=function(_0x1dffc9){while(--_0x1dffc9){_0x3323b5['push'](_0x3323b5['shift']());}};_0x306d3f(++_0x332b63);}(a1384_0x306d,0xdc));const a1384_0x1dff=function(_0x3323b5,_0x332b63){_0x3323b5=_0x3323b5-0xed;let _0x306d3f=a1384_0x306d[_0x3323b5];return _0x306d3f;};const a1384_0x3f2eff=a1384_0x1dff;'use strict';const schema=require(a1384_0x3f2eff(0xed)),sh=require('shelljs'),_=require(a1384_0x3f2eff(0xfe)),utils=require('./utils'),logger=require('../../../../config/logger')(a1384_0x3f2eff(0xf5)),system=schema({'command':{'type':a1384_0x3f2eff(0xf1),'required':!![],'message':a1384_0x3f2eff(0x101)}});exports[a1384_0x3f2eff(0xfa)]=function(_0x16ad6f,_0x45c7fb){return function(_0x288dbf){const _0xc2f19b=a1384_0x1dff;try{const _0x2985ce={'command':_0x45c7fb[0x0]},_0x1918e0=system[_0xc2f19b(0xed)](_0x2985ce,{'typecast':!![]});if(_0x1918e0[_0xc2f19b(0xf0)])logger[_0xc2f19b(0x102)]('[%s][SYSTEM]\x20%s',_0x16ad6f,_['map'](_0x1918e0,_0xc2f19b(0x103))[_0xc2f19b(0xef)](',\x20')),logger['info'](_0xc2f19b(0xf6),_0x16ad6f),_0x288dbf['next']();else{const _0x32f461=this,_0x35c5e0=utils[_0xc2f19b(0xfc)](_0x45c7fb[0x0],this);logger[_0xc2f19b(0xee)](_0xc2f19b(0x100),_0x16ad6f,_0x35c5e0),sh[_0xc2f19b(0xfb)](_['trim'](_0x35c5e0),function(_0x4830ee,_0x4bc219){const _0x4dfd18=_0xc2f19b;logger[_0x4dfd18(0xee)](_0x4dfd18(0xf3),_0x16ad6f,_0x4830ee);if(_0x4830ee==0x0){const _0x6c450c=_0x4bc219[_0x4dfd18(0xf9)](/(\r\n|\n|\r)/gm,'');_[_0x4dfd18(0xf2)](_0x45c7fb[0x1])||_[_0x4dfd18(0xff)](_0x45c7fb[0x1])?(logger[_0x4dfd18(0xee)](_0x4dfd18(0xf7),_0x16ad6f),_0x32f461[_0x4dfd18(0xf8)][_0x45c7fb[0x1]]=_0x6c450c):(logger[_0x4dfd18(0xee)](_0x4dfd18(0xfd),_0x16ad6f,_0x45c7fb[0x1],_0x6c450c),_0x32f461[_0x4dfd18(0xf8)][_0x45c7fb[0x1]]=_0x6c450c);}_0x288dbf[_0x4dfd18(0xf4)]();});}}catch(_0x31e5e4){logger['error']('[%s][SYSTEM]\x20%s',_0x16ad6f,_['isObject'](_0x31e5e4)?JSON['stringify'](_0x31e5e4):_0x31e5e4),logger[_0xc2f19b(0xee)](_0xc2f19b(0xf6),_0x16ad6f),_0x288dbf[_0xc2f19b(0xf4)]();}};}; \ 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 90b3997..2278114 100644 --- a/server/services/routing/server/applications/tag.js +++ b/server/services/routing/server/applications/tag.js @@ -1 +1 @@ -const a1385_0x3706=['next','number','map','join','stringify','info','routing','[%s][TAG]\x20%s','catch','channel','[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next','interaction','Interaction','../../rpc/openchannelInteraction','consequence','length','lodash','message','../../rpc/smsInteraction','../../../../config/logger','isObject','[%s][TAG]\x20tag\x20\x22%s\x22\x20added\x20to\x20%s\x20interaction\x20%s','error','../../rpc/whatsappInteraction','then','addTags'];(function(_0x295e27,_0x3c34c1){const _0x3706d9=function(_0x383108){while(--_0x383108){_0x295e27['push'](_0x295e27['shift']());}};_0x3706d9(++_0x3c34c1);}(a1385_0x3706,0x1ea));const a1385_0x3831=function(_0x295e27,_0x3c34c1){_0x295e27=_0x295e27-0x15f;let _0x3706d9=a1385_0x3706[_0x295e27];return _0x3706d9;};const a1385_0x53f682=a1385_0x3831;'use strict';const schema=require('validate'),_=require(a1385_0x53f682(0x173)),rpc={'chatInteraction':require('../../rpc/chatInteraction'),'openchannelInteraction':require(a1385_0x53f682(0x170)),'smsInteraction':require(a1385_0x53f682(0x175)),'mailInteraction':require('../../rpc/mailInteraction'),'faxInteraction':require('../../rpc/faxInteraction'),'whatsappInteraction':require(a1385_0x53f682(0x160))},logger=require(a1385_0x53f682(0x176))(a1385_0x53f682(0x169)),tag=schema({'tag':{'type':a1385_0x53f682(0x164),'required':!![],'message':'TagId\x20is\x20a\x20string\x20and\x20it\x20is\x20required'}});exports[a1385_0x53f682(0x171)]=function(_0x543fc3,_0x3110b6,_0x547111,_0x462bec){return function(_0x56cf43){const _0x5f573a=a1385_0x3831;try{const _0x56b5f4={'tag':_0x3110b6[0x0]},_0x56ee09=tag['validate'](_0x56b5f4,{'typecast':!![]});if(_0x56ee09[_0x5f573a(0x172)])logger[_0x5f573a(0x15f)](_0x5f573a(0x16a),_0x543fc3,_[_0x5f573a(0x165)](_0x56ee09,_0x5f573a(0x174))[_0x5f573a(0x166)](',\x20')),logger[_0x5f573a(0x168)]('[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next',_0x543fc3),_0x56cf43[_0x5f573a(0x163)]();else{const _0x1dd22f={'ids':[_0x3110b6[0x0]]};rpc[_0x462bec[_0x5f573a(0x16c)]+_0x5f573a(0x16f)]&&rpc[_0x462bec[_0x5f573a(0x16c)]+_0x5f573a(0x16f)][_0x5f573a(0x162)](_0x462bec[_0x5f573a(0x16e)]['id'],_0x1dd22f)[_0x5f573a(0x161)](function(){const _0x4401a0=_0x5f573a;logger[_0x4401a0(0x168)](_0x4401a0(0x178),_0x543fc3,_0x3110b6[0x1],_0x462bec['channel'],_0x462bec[_0x4401a0(0x16e)]['id']);})[_0x5f573a(0x16b)](function(_0x46bc23){const _0x5b245d=_0x5f573a;logger[_0x5b245d(0x15f)]('[%s][TAG]\x20%s',_0x543fc3,JSON['stringify'](_0x46bc23)),logger['info'](_0x5b245d(0x16d),_0x543fc3);})['finally'](function(){const _0x52a444=_0x5f573a;_0x56cf43[_0x52a444(0x163)]();});}}catch(_0x21d8a9){logger['error'](_0x5f573a(0x16a),_0x543fc3,_[_0x5f573a(0x177)](_0x21d8a9)?JSON[_0x5f573a(0x167)](_0x21d8a9):_0x21d8a9),logger[_0x5f573a(0x168)](_0x5f573a(0x16d),_0x543fc3),_0x56cf43['next']();}};}; \ No newline at end of file +const a1385_0x1040=['../../rpc/faxInteraction','map','../../rpc/smsInteraction','Interaction','lodash','TagId\x20is\x20a\x20string\x20and\x20it\x20is\x20required','error','interaction','catch','consequence','then','length','[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next','routing','validate','../../rpc/openchannelInteraction','message','finally','channel','next','../../rpc/chatInteraction','info','stringify','addTags','[%s][TAG]\x20%s','join','../../rpc/mailInteraction'];(function(_0x5b8752,_0x1bf2e9){const _0x104070=function(_0x5e60a6){while(--_0x5e60a6){_0x5b8752['push'](_0x5b8752['shift']());}};_0x104070(++_0x1bf2e9);}(a1385_0x1040,0x123));const a1385_0x5e60=function(_0x5b8752,_0x1bf2e9){_0x5b8752=_0x5b8752-0x1a9;let _0x104070=a1385_0x1040[_0x5b8752];return _0x104070;};const a1385_0x2b2322=a1385_0x5e60;'use strict';const schema=require(a1385_0x2b2322(0x1bd)),_=require(a1385_0x2b2322(0x1b3)),rpc={'chatInteraction':require(a1385_0x2b2322(0x1c3)),'openchannelInteraction':require(a1385_0x2b2322(0x1be)),'smsInteraction':require(a1385_0x2b2322(0x1b1)),'mailInteraction':require(a1385_0x2b2322(0x1ae)),'faxInteraction':require(a1385_0x2b2322(0x1af)),'whatsappInteraction':require('../../rpc/whatsappInteraction')},logger=require('../../../../config/logger')(a1385_0x2b2322(0x1bc)),tag=schema({'tag':{'type':'number','required':!![],'message':a1385_0x2b2322(0x1b4)}});exports[a1385_0x2b2322(0x1b8)]=function(_0x4c35ac,_0x1664ec,_0x3d0425,_0x36078f){return function(_0x2f2aca){const _0x327975=a1385_0x5e60;try{const _0x47e7c4={'tag':_0x1664ec[0x0]},_0x3f66bb=tag[_0x327975(0x1bd)](_0x47e7c4,{'typecast':!![]});if(_0x3f66bb[_0x327975(0x1ba)])logger['error'](_0x327975(0x1ac),_0x4c35ac,_[_0x327975(0x1b0)](_0x3f66bb,_0x327975(0x1bf))[_0x327975(0x1ad)](',\x20')),logger['info'](_0x327975(0x1bb),_0x4c35ac),_0x2f2aca['next']();else{const _0x56a506={'ids':[_0x1664ec[0x0]]};rpc[_0x36078f['channel']+_0x327975(0x1b2)]&&rpc[_0x36078f[_0x327975(0x1c1)]+'Interaction'][_0x327975(0x1ab)](_0x36078f[_0x327975(0x1b6)]['id'],_0x56a506)[_0x327975(0x1b9)](function(){const _0x28bc2d=_0x327975;logger[_0x28bc2d(0x1a9)]('[%s][TAG]\x20tag\x20\x22%s\x22\x20added\x20to\x20%s\x20interaction\x20%s',_0x4c35ac,_0x1664ec[0x1],_0x36078f[_0x28bc2d(0x1c1)],_0x36078f[_0x28bc2d(0x1b6)]['id']);})[_0x327975(0x1b7)](function(_0x30e906){const _0x2ec9f5=_0x327975;logger[_0x2ec9f5(0x1b5)](_0x2ec9f5(0x1ac),_0x4c35ac,JSON['stringify'](_0x30e906)),logger[_0x2ec9f5(0x1a9)](_0x2ec9f5(0x1bb),_0x4c35ac);})[_0x327975(0x1c0)](function(){const _0x3f8cea=_0x327975;_0x2f2aca[_0x3f8cea(0x1c2)]();});}}catch(_0x46d064){logger[_0x327975(0x1b5)](_0x327975(0x1ac),_0x4c35ac,_['isObject'](_0x46d064)?JSON[_0x327975(0x1aa)](_0x46d064):_0x46d064),logger[_0x327975(0x1a9)](_0x327975(0x1bb),_0x4c35ac),_0x2f2aca['next']();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/utils.js b/server/services/routing/server/applications/utils.js index 0dcbee3..1950b38 100644 --- a/server/services/routing/server/applications/utils.js +++ b/server/services/routing/server/applications/utils.js @@ -1 +1 @@ -const a1386_0x32a6=['body','mustache','message','account','render','getMustacheRender','exports','lodash'];(function(_0xb90711,_0x58fe94){const _0x32a6e5=function(_0x4426b4){while(--_0x4426b4){_0xb90711['push'](_0xb90711['shift']());}};_0x32a6e5(++_0x58fe94);}(a1386_0x32a6,0x1c4));const a1386_0x4426=function(_0xb90711,_0x58fe94){_0xb90711=_0xb90711-0xd9;let _0x32a6e5=a1386_0x32a6[_0xb90711];return _0x32a6e5;};const a1386_0x229a0b=a1386_0x4426;'use strict';const Mustache=require(a1386_0x229a0b(0xde)),_=require(a1386_0x229a0b(0xdc));function getMustacheRender(_0x2640c8,_0x4eda41){const _0x328fdf=a1386_0x229a0b;return Mustache[_0x328fdf(0xd9)](_0x2640c8,_['merge'](_0x4eda41[_0x328fdf(0xdd)],{'contact':_0x4eda41['contact'],'message':_0x4eda41[_0x328fdf(0xdf)],'account':_0x4eda41[_0x328fdf(0xe0)],'interaction':_0x4eda41['interaction'],'list':_0x4eda41['list']}))||'';}module[a1386_0x229a0b(0xdb)][a1386_0x229a0b(0xda)]=getMustacheRender; \ No newline at end of file +const a1386_0x1e1f=['lodash','getMustacheRender','exports','render','interaction','merge','body','mustache','contact'];(function(_0x484695,_0x20ea9a){const _0x1e1f9f=function(_0x767151){while(--_0x767151){_0x484695['push'](_0x484695['shift']());}};_0x1e1f9f(++_0x20ea9a);}(a1386_0x1e1f,0x106));const a1386_0x7671=function(_0x484695,_0x20ea9a){_0x484695=_0x484695-0x166;let _0x1e1f9f=a1386_0x1e1f[_0x484695];return _0x1e1f9f;};const a1386_0x5b69fb=a1386_0x7671;'use strict';const Mustache=require(a1386_0x5b69fb(0x16c)),_=require(a1386_0x5b69fb(0x16e));function getMustacheRender(_0x4f735c,_0xa2207){const _0x5f50b3=a1386_0x5b69fb;return Mustache[_0x5f50b3(0x168)](_0x4f735c,_[_0x5f50b3(0x16a)](_0xa2207[_0x5f50b3(0x16b)],{'contact':_0xa2207[_0x5f50b3(0x16d)],'message':_0xa2207['message'],'account':_0xa2207['account'],'interaction':_0xa2207[_0x5f50b3(0x169)],'list':_0xa2207['list']}))||'';}module[a1386_0x5b69fb(0x167)][a1386_0x5b69fb(0x166)]=getMustacheRender; \ No newline at end of file diff --git a/server/services/routing/server/index.js b/server/services/routing/server/index.js index fbf234c..7379f42 100644 --- a/server/services/routing/server/index.js +++ b/server/services/routing/server/index.js @@ -1 +1 @@ -const a1387_0x4748=['error','updateRealtime','../lib/rule-engine','../rpc/smsQueueReport','info','.js','stringify','busyQueue','Routing\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','faxQueuesWaitingInteractions','openchannelQueues','values','chatQueuesWaitingInteractions','message\x20is\x20empty','../rpc/mailQueueReport','app','waiting','push','isNil','whatsappQueuesWaitingInteractions','name','busy','../../../config/logger','format','error\x20update\x20queue\x20report','server','Please\x20create\x20a\x20new\x20file\x20under','message','chatQueues','length','\x20|\x20','toLowerCase','matchPath','catch','mailQueuesWaitingInteractions','QueueReport','faxQueues','agent','consequence','complete','./interval','join','autoreply','../rpc/whatsappQueueReport','loggedIn','dialogflowv2','rules','util','log','routing','Push\x20new\x20rule','127.0.0.1','interaction','agents','mailQueues','slice','paused','%s:%s:%s','http','routing\x20is\x20empty','interval','smsQueuesWaitingInteractions','applications','execute','map','smsQueues','emit','No\x20applications\x20to\x20execute','end','listen','agent\x20not\x20found','capacity','IntervalId','Intervals','available','amazonlex','channel','priority','on\x20interval','TagId','whatsappQueues','UserId','undefined','CurrentCapacity','appdata','condition','Applications\x20executed','../rpc/faxQueueReport','split','isArray','stack','lodash'];(function(_0x4690b2,_0x3606a0){const _0x47488f=function(_0x1d4a42){while(--_0x1d4a42){_0x4690b2['push'](_0x4690b2['shift']());}};_0x47488f(++_0x3606a0);}(a1387_0x4748,0x107));const a1387_0x1d4a=function(_0x4690b2,_0x3606a0){_0x4690b2=_0x4690b2-0x88;let _0x47488f=a1387_0x4748[_0x4690b2];return _0x47488f;};const a1387_0x9488e4=a1387_0x1d4a;'use strict';const _=require(a1387_0x9488e4(0x94)),util=require(a1387_0x9488e4(0xc4)),path=require('path'),fs=require('fs'),jayson=require('jayson/promise'),logger=require(a1387_0x9488e4(0xab))(a1387_0x9488e4(0xc6)),rpc={'openchannelQueueReport':require('../rpc/openchannelQueueReport'),'mailQueueReport':require(a1387_0x9488e4(0xa3)),'chatQueueReport':require('../rpc/chatQueueReport'),'smsQueueReport':require(a1387_0x9488e4(0x98)),'faxQueueReport':require(a1387_0x9488e4(0x90)),'whatsappQueueReport':require(a1387_0x9488e4(0xc0))},RuleEngine=require(a1387_0x9488e4(0x97));function getId(_0x399516,_0x27d31d,_0xf60887){const _0x185335=a1387_0x9488e4;return util[_0x185335(0xac)]('%s.%s.%s',_0x399516,_0x27d31d||0x0,_0xf60887||0x0);}function getIntervals(_0x118db2,_0x47106c){const _0x10a5d9=a1387_0x9488e4;let _0x1f95f6=[];if(!_[_0x10a5d9(0xa7)](_0x47106c[_0x10a5d9(0xdd)])&&!_[_0x10a5d9(0xa7)](_0x118db2[_0x47106c[_0x10a5d9(0xdd)]])&&!_['isNil'](_0x118db2[_0x47106c[_0x10a5d9(0xdd)]][_0x10a5d9(0xde)]))_0x1f95f6=_[_0x10a5d9(0xd5)](_0x118db2[_0x47106c[_0x10a5d9(0xdd)]]['Intervals'],'interval');else!_[_0x10a5d9(0xa7)](_0x47106c[_0x10a5d9(0xd1)])&&(_0x1f95f6=[_0x47106c[_0x10a5d9(0xd1)]]);return _0x1f95f6;}exports['listen']=function(_0x1807f3){return _0x1807f3['rules']={},new Promise(function(_0x524442,_0x1cdb72){const _0x516d4e=a1387_0x1d4a,_0x3b7248={'Start':function(_0x3a2c11){const _0x55de6d=this;return new Promise(function(_0x5b7744,_0x740900){const _0x594d40=a1387_0x1d4a;if(_0x3a2c11)try{const _0x47622f=[],_0x48037f=getId(_0x3a2c11[_0x594d40(0xe1)],_0x3a2c11['message']?_0x3a2c11[_0x594d40(0xb0)]['id']:0x0,_0x3a2c11[_0x594d40(0xc9)]?_0x3a2c11['interaction']['id']:0x0);if(_0x3a2c11['applications']&&_[_0x594d40(0x92)](_0x3a2c11['applications'])&&_0x3a2c11[_0x594d40(0xd3)]['length']){for(let _0x3f9a7f=0x0;_0x3f9a7f<_0x3a2c11[_0x594d40(0xd3)][_0x594d40(0xb2)];_0x3f9a7f+=0x1){const _0x16b6c3=_0x3a2c11[_0x594d40(0xd3)][_0x3f9a7f];if(fs['existsSync'](path[_0x594d40(0xbe)](__dirname,_0x594d40(0xd3),_0x16b6c3[_0x594d40(0xa4)]+_0x594d40(0x9a)))){let _0x1aa11b=[];switch(_0x16b6c3[_0x594d40(0xa4)][_0x594d40(0xb4)]()){case _0x594d40(0xbf):{const _0x389afd=_0x16b6c3[_0x594d40(0x8d)][_0x594d40(0x91)](',');_0x1aa11b[_0x594d40(0xa6)](_0x389afd[0x0]),_0x1aa11b['push'](_0x389afd[_0x594d40(0xcc)](0x1,_0x389afd[_0x594d40(0xb2)])[_0x594d40(0xbe)](','));}break;case'dialogflow':{const _0x7c27d=_0x16b6c3[_0x594d40(0x8d)][_0x594d40(0x91)](',');_0x1aa11b[_0x594d40(0xa6)](_0x7c27d[0x0]),_0x1aa11b[_0x594d40(0xa6)](_0x7c27d[0x1]),_0x1aa11b[_0x594d40(0xa6)](_0x7c27d[_0x594d40(0xcc)](0x2,_0x7c27d[_0x594d40(0xb2)])[_0x594d40(0xbe)](','));}break;case _0x594d40(0xc2):{const _0x108cdf=_0x16b6c3[_0x594d40(0x8d)][_0x594d40(0x91)](',');_0x1aa11b['push'](_0x108cdf[0x0]),_0x1aa11b['push'](_0x108cdf[0x1]),_0x1aa11b[_0x594d40(0xa6)](_0x108cdf[0x2]),_0x1aa11b[_0x594d40(0xa6)](_0x108cdf[0x3]),_0x1aa11b[_0x594d40(0xa6)](_0x108cdf[_0x594d40(0xcc)](0x4,_0x108cdf[_0x594d40(0xb2)])[_0x594d40(0xbe)](','));}break;case _0x594d40(0xe0):{const _0x3bf9fb=_0x16b6c3[_0x594d40(0x8d)][_0x594d40(0x91)](',');_0x1aa11b[_0x594d40(0xa6)](_0x3bf9fb[0x0]),_0x1aa11b[_0x594d40(0xa6)](_0x3bf9fb[0x1]),_0x1aa11b['push'](_0x3bf9fb[0x2]),_0x1aa11b[_0x594d40(0xa6)](_0x3bf9fb[0x3]),_0x1aa11b['push'](_0x3bf9fb[_0x594d40(0xcc)](0x4,_0x3bf9fb['length'])[_0x594d40(0xbe)](','));}break;case _0x594d40(0xb0):_0x1aa11b[_0x594d40(0xa6)](_0x16b6c3[_0x594d40(0x8d)]);break;case'tag':_0x1aa11b[_0x594d40(0xa6)](_0x16b6c3[_0x594d40(0x88)]),_0x1aa11b[_0x594d40(0xa6)](_0x16b6c3[_0x594d40(0x8d)]);break;default:_0x1aa11b=_[_0x594d40(0xa7)](_0x16b6c3[_0x594d40(0x8d)])?[]:_0x16b6c3[_0x594d40(0x8d)][_0x594d40(0x91)](',');}const _0x39720a={'id':util[_0x594d40(0xac)](_0x594d40(0xce),_0x48037f,_0x16b6c3['id'],_0x16b6c3['app']),'condition':require(_0x594d40(0xbd))[_0x594d40(0x8e)](_0x48037f,getIntervals(_0x1807f3['intervals'],_0x16b6c3),_0x1807f3),'consequence':require('./applications/'+_0x16b6c3[_0x594d40(0xa4)])[_0x594d40(0xbb)](_0x48037f,_0x1aa11b,_0x1807f3,_0x3a2c11),'p':_0x16b6c3[_0x594d40(0xe2)]||0x0};logger[_0x594d40(0x99)](_0x594d40(0xc7),_0x39720a['id'],_0x594d40(0xe3),getIntervals(_0x1807f3['intervals'],_0x16b6c3)['join'](_0x594d40(0xb3))),_0x47622f[_0x594d40(0xa6)](_0x39720a);}else logger['error'](_0x594d40(0xaf),path['join'](__dirname,_0x594d40(0xd3),_0x16b6c3[_0x594d40(0xa4)]+_0x594d40(0x9a)));}return _0x1807f3[_0x594d40(0xc3)][_0x48037f]=new RuleEngine(_0x47622f),_0x1807f3[_0x594d40(0xc3)][_0x48037f][_0x594d40(0xd4)](_0x3a2c11,function(_0x5e6749){const _0x49a90f=_0x594d40;logger['info'](_0x49a90f(0x8f),JSON[_0x49a90f(0x9b)](_0x5e6749[_0x49a90f(0xb5)])),_0x1807f3[_0x49a90f(0xc3)][_0x48037f]&&_0x1807f3['rules'][_0x48037f][_0x49a90f(0xd7)](_0x49a90f(0xbc));}),_0x5b7744({'code':0xc8,'message':_0x3a2c11});}else return logger[_0x594d40(0x99)](_0x594d40(0xd8)),_0x5b7744({'code':0xc8,'message':_0x3a2c11});}catch(_0x4690b8){return logger[_0x594d40(0x95)](_0x4690b8['stack']),_0x740900(_0x55de6d[_0x594d40(0x95)](0x1f4,_0x4690b8));}return _0x740900(_0x594d40(0xd0));});},'AcceptMessage':function(_0x5c3720){const _0xa14dfc=this;return new Promise(function(_0x206f00,_0x18e45a){const _0x33ac5c=a1387_0x1d4a;if(_0x5c3720[_0x33ac5c(0xb0)]&&_0x5c3720['message']['id'])try{const _0xc6b1af=getId(_0x5c3720[_0x33ac5c(0xe1)],_0x5c3720[_0x33ac5c(0xb0)]?_0x5c3720['message']['id']:0x0,_0x5c3720[_0x33ac5c(0xc9)]?_0x5c3720['interaction']['id']:0x0);return _0x1807f3[_0x33ac5c(0xc3)][_0xc6b1af]&&(_0x1807f3['rules'][_0xc6b1af][_0x33ac5c(0xd7)](_0x33ac5c(0xd9)),rpc[_0x5c3720[_0x33ac5c(0xe1)]+_0x33ac5c(0xb8)]&&rpc[_0x5c3720[_0x33ac5c(0xe1)]+_0x33ac5c(0xb8)]['update'](_0xc6b1af,{'UserId':_0x5c3720['message'][_0x33ac5c(0x8a)]})[_0x33ac5c(0xb6)](function(){const _0x88f0d=_0x33ac5c;logger[_0x88f0d(0x95)](_0x88f0d(0xad));})),_0x206f00({'code':0xc8,'message':_0x5c3720});}catch(_0x17f2a1){return logger[_0x33ac5c(0x95)](_0x17f2a1[_0x33ac5c(0x93)]),_0x18e45a(_0xa14dfc['error'](0x1f4,_0x17f2a1));}return logger[_0x33ac5c(0x95)]('message\x20is\x20empty'),_0x18e45a(_0xa14dfc[_0x33ac5c(0x95)](0x1f4,'message\x20is\x20empty'));});},'RejectMessage':function(_0x2a27ca){const _0x289f2b=this;return new Promise(function(_0x33a1,_0x2c727c){const _0x10c753=a1387_0x1d4a;if(_0x2a27ca[_0x10c753(0xba)]&&_0x2a27ca[_0x10c753(0xba)]['id'])try{return _0x1807f3[_0x10c753(0xca)][_0x2a27ca['agent']['id']]&&(_0x1807f3['agents'][_0x2a27ca[_0x10c753(0xba)]['id']][_0x10c753(0xaa)]=![],_0x1807f3[_0x10c753(0xca)][_0x2a27ca['agent']['id']][_0x10c753(0x9c)]=undefined),_0x33a1({'code':0xc8,'message':_0x2a27ca});}catch(_0x212316){return logger[_0x10c753(0x95)](_0x212316['stack']),_0x2c727c(_0x289f2b[_0x10c753(0x95)](0x1f4,_0x212316));}return logger[_0x10c753(0x95)](_0x10c753(0xa2)),_0x2c727c(_0x289f2b[_0x10c753(0x95)](0x1f4,'message\x20is\x20empty'));});},'AbandonInteraction':function(_0x5ce5d3){const _0x5985d4=this;return new Promise(function(_0x298b56,_0x445ba3){const _0x37351b=a1387_0x1d4a;if(_0x5ce5d3[_0x37351b(0xe1)]&&_0x5ce5d3[_0x37351b(0xc9)]&&_0x5ce5d3[_0x37351b(0xc9)]['id'])try{const _0x6e7be4=getId(_0x5ce5d3['channel'],_0x5ce5d3['message']?_0x5ce5d3[_0x37351b(0xb0)]['id']:0x0,_0x5ce5d3[_0x37351b(0xc9)]?_0x5ce5d3['interaction']['id']:0x0);return _0x1807f3[_0x37351b(0xc3)][_0x6e7be4]&&_0x1807f3[_0x37351b(0xc3)][_0x6e7be4][_0x37351b(0xd7)](_0x37351b(0xd9)),_0x298b56({'code':0xc8,'message':_0x5ce5d3});}catch(_0x518a2e){return logger[_0x37351b(0x95)](_0x518a2e[_0x37351b(0x93)]),_0x445ba3(_0x5985d4['error'](0x1f4,_0x518a2e));}return logger['error'](_0x37351b(0xa2)),_0x445ba3(_0x5985d4['error'](0x1f4,_0x37351b(0xa2)));});},'AgentCapacity':function(_0xac860d){const _0x19cb69=this;return new Promise(function(_0x426a26,_0x240c99){const _0x1f9e51=a1387_0x1d4a;if(typeof _0x1807f3[_0x1f9e51(0xca)][_0xac860d['id']]!==_0x1f9e51(0x8b)){for(const _0x61a56d in _0xac860d['capacity']){typeof _0xac860d[_0x1f9e51(0xdc)][_0x61a56d]!==_0x1f9e51(0x8b)&&(typeof _0x1807f3[_0x1f9e51(0xca)][_0xac860d['id']][_0x61a56d+_0x1f9e51(0x8c)]!==_0x1f9e51(0x8b)&&(_0x1807f3[_0x1f9e51(0xca)][_0xac860d['id']][_0x61a56d+_0x1f9e51(0x8c)]=parseInt(_0xac860d['capacity'][_0x61a56d],0xa)));}return _0x1807f3[_0x1f9e51(0xca)][_0xac860d['id']][_0x1f9e51(0x96)](),_0x426a26({'code':0xc8,'message':_0x1807f3[_0x1f9e51(0xca)][_0xac860d['id']]});}else return _0x240c99(_0x19cb69[_0x1f9e51(0x95)](0x1f4,_0x1f9e51(0xdb)));});},'Agents':function(){return new Promise(function(_0x3e295c){const _0xfe7855=a1387_0x1d4a,_0xadc6cf=_[_0xfe7855(0xa0)](_0x1807f3[_0xfe7855(0xca)]);_0x3e295c({'count':_0xadc6cf[_0xfe7855(0xb2)],'rows':_0xadc6cf});});},'ChatQueues':function(){return new Promise(function(_0x47f098){const _0x1a83b1=a1387_0x1d4a,_0x202ac2=[];for(const _0xa1988b in _0x1807f3[_0x1a83b1(0xb1)]){if(typeof _0x1807f3[_0x1a83b1(0xb1)][_0xa1988b]!==_0x1a83b1(0x8b)){const _0x49d009=_0x1807f3[_0x1a83b1(0xb1)][_0xa1988b],_0x370ac2={'id':_0x49d009['id'],'available':_0x49d009[_0x1a83b1(0xdf)],'loggedIn':_0x49d009[_0x1a83b1(0xc1)],'name':_0x49d009[_0x1a83b1(0xa9)],'paused':_0x49d009['paused'],'waiting':_0x49d009['waiting']};_0x202ac2[_0x1a83b1(0xa6)](_0x370ac2);}}_0x47f098({'count':_0x202ac2['length'],'rows':_0x202ac2});});},'MailQueues':function(){return new Promise(function(_0x18f6a9){const _0x5b1ff6=a1387_0x1d4a,_0x38478f=[];for(const _0x58832c in _0x1807f3[_0x5b1ff6(0xcb)]){if(typeof _0x1807f3[_0x5b1ff6(0xcb)][_0x58832c]!=='undefined'){const _0x142265=_0x1807f3['mailQueues'][_0x58832c],_0x5ed975={'id':_0x142265['id'],'available':_0x142265['available'],'loggedIn':_0x142265[_0x5b1ff6(0xc1)],'name':_0x142265[_0x5b1ff6(0xa9)],'paused':_0x142265[_0x5b1ff6(0xcd)],'waiting':_0x142265[_0x5b1ff6(0xa5)]};_0x38478f[_0x5b1ff6(0xa6)](_0x5ed975);}}_0x18f6a9({'count':_0x38478f[_0x5b1ff6(0xb2)],'rows':_0x38478f});});},'OpenchannelQueues':function(){return new Promise(function(_0x4aeea7){const _0x311405=a1387_0x1d4a,_0x159344=[];for(const _0x26d0b7 in _0x1807f3[_0x311405(0x9f)]){if(typeof _0x1807f3[_0x311405(0x9f)][_0x26d0b7]!==_0x311405(0x8b)){const _0x132bb6=_0x1807f3[_0x311405(0x9f)][_0x26d0b7],_0x283090={'id':_0x132bb6['id'],'available':_0x132bb6[_0x311405(0xdf)],'loggedIn':_0x132bb6['loggedIn'],'name':_0x132bb6[_0x311405(0xa9)],'paused':_0x132bb6['paused'],'waiting':_0x132bb6[_0x311405(0xa5)]};_0x159344[_0x311405(0xa6)](_0x283090);}}_0x4aeea7({'count':_0x159344[_0x311405(0xb2)],'rows':_0x159344});});},'SmsQueues':function(){return new Promise(function(_0x1ae659){const _0x2103af=a1387_0x1d4a,_0x4f9fa1=[];for(const _0x353e7f in _0x1807f3[_0x2103af(0xd6)]){if(typeof _0x1807f3[_0x2103af(0xd6)][_0x353e7f]!==_0x2103af(0x8b)){const _0x34f351=_0x1807f3[_0x2103af(0xd6)][_0x353e7f],_0x2d8f9a={'id':_0x34f351['id'],'available':_0x34f351['available'],'loggedIn':_0x34f351[_0x2103af(0xc1)],'name':_0x34f351[_0x2103af(0xa9)],'paused':_0x34f351[_0x2103af(0xcd)],'waiting':_0x34f351['waiting']};_0x4f9fa1[_0x2103af(0xa6)](_0x2d8f9a);}}_0x1ae659({'count':_0x4f9fa1[_0x2103af(0xb2)],'rows':_0x4f9fa1});});},'FaxQueues':function(){return new Promise(function(_0x2578d0){const _0x3d7a6e=a1387_0x1d4a,_0xf4f770=[];for(const _0x1245c3 in _0x1807f3[_0x3d7a6e(0xb9)]){if(typeof _0x1807f3['faxQueues'][_0x1245c3]!==_0x3d7a6e(0x8b)){const _0xc8ec2f=_0x1807f3['faxQueues'][_0x1245c3],_0x5a8452={'id':_0xc8ec2f['id'],'available':_0xc8ec2f['available'],'loggedIn':_0xc8ec2f[_0x3d7a6e(0xc1)],'name':_0xc8ec2f[_0x3d7a6e(0xa9)],'paused':_0xc8ec2f[_0x3d7a6e(0xcd)],'waiting':_0xc8ec2f[_0x3d7a6e(0xa5)]};_0xf4f770[_0x3d7a6e(0xa6)](_0x5a8452);}}_0x2578d0({'count':_0xf4f770[_0x3d7a6e(0xb2)],'rows':_0xf4f770});});},'WhatsappQueues':function(){return new Promise(function(_0x41d9b9){const _0x17ca77=a1387_0x1d4a,_0x508d28=[];for(const _0x3966eb in _0x1807f3[_0x17ca77(0x89)]){if(typeof _0x1807f3[_0x17ca77(0x89)][_0x3966eb]!==_0x17ca77(0x8b)){const _0x451e58=_0x1807f3[_0x17ca77(0x89)][_0x3966eb],_0x33cd64={'id':_0x451e58['id'],'available':_0x451e58[_0x17ca77(0xdf)],'loggedIn':_0x451e58['loggedIn'],'name':_0x451e58[_0x17ca77(0xa9)],'paused':_0x451e58[_0x17ca77(0xcd)],'waiting':_0x451e58[_0x17ca77(0xa5)]};_0x508d28[_0x17ca77(0xa6)](_0x33cd64);}}_0x41d9b9({'count':_0x508d28[_0x17ca77(0xb2)],'rows':_0x508d28});});},'ChatQueuesWaitingInteractions':function(){return new Promise(function(_0x4caec9){const _0x4a6f0c=a1387_0x1d4a,_0x3c65ab=_['values'](_0x1807f3[_0x4a6f0c(0xa1)]);_0x4caec9({'count':_0x3c65ab['length'],'rows':_0x3c65ab});});},'MailQueuesWaitingInteractions':function(){return new Promise(function(_0x5b6e00){const _0x12828a=a1387_0x1d4a,_0x4c78f2=_[_0x12828a(0xa0)](_0x1807f3[_0x12828a(0xb7)]);_0x5b6e00({'count':_0x4c78f2[_0x12828a(0xb2)],'rows':_0x4c78f2});});},'OpenchannelQueuesWaitingInteractions':function(){return new Promise(function(_0xce4b81){const _0x5df905=a1387_0x1d4a,_0x4a7abc=_['values'](_0x1807f3['openchannelQueuesWaitingInteractions']);_0xce4b81({'count':_0x4a7abc[_0x5df905(0xb2)],'rows':_0x4a7abc});});},'SmsQueuesWaitingInteractions':function(){return new Promise(function(_0x491049){const _0x518c89=a1387_0x1d4a,_0x30a303=_['values'](_0x1807f3[_0x518c89(0xd2)]);_0x491049({'count':_0x30a303['length'],'rows':_0x30a303});});},'FaxQueuesWaitingInteractions':function(){return new Promise(function(_0x5ab324){const _0x43c6b4=a1387_0x1d4a,_0x4f1080=_[_0x43c6b4(0xa0)](_0x1807f3[_0x43c6b4(0x9e)]);_0x5ab324({'count':_0x4f1080[_0x43c6b4(0xb2)],'rows':_0x4f1080});});},'WhatsappQueuesWaitingInteractions':function(){return new Promise(function(_0x45ad97){const _0x1e39b2=a1387_0x1d4a,_0x4c73d6=_[_0x1e39b2(0xa0)](_0x1807f3[_0x1e39b2(0xa8)]);_0x45ad97({'count':_0x4c73d6[_0x1e39b2(0xb2)],'rows':_0x4c73d6});});}},_0x23c729=jayson[_0x516d4e(0xae)](_0x3b7248)[_0x516d4e(0xcf)]();_0x23c729['on'](_0x516d4e(0x95),function(_0x5e3fc1){const _0x29d4b5=_0x516d4e;return logger[_0x29d4b5(0x95)](JSON[_0x29d4b5(0x9b)](_0x5e3fc1)),_0x1cdb72(_0x5e3fc1);}),_0x23c729[_0x516d4e(0xda)](0x232c,_0x516d4e(0xc8),function(){const _0x3718ff=_0x516d4e;return console[_0x3718ff(0xc5)](_0x3718ff(0x9d),0x232c),_0x524442('RPC\x20listening\x20on\x20port:'+0x232c);});});}; \ No newline at end of file +const a1387_0x40cb=['autoreply','appdata','./interval','log','util','faxQueues','interaction','busyQueue','priority','lodash','amazonlex','CurrentCapacity','complete','RPC\x20listening\x20on\x20port:','../../../config/logger','length','map','%s.%s.%s','isArray','listen','chatQueues','on\x20interval','server','loggedIn','jayson/promise','.js','message\x20is\x20empty','values','agent','applications','../lib/rule-engine','message','error','name','chatQueuesWaitingInteractions','info','join','intervals','openchannelQueues','paused','routing\x20is\x20empty','IntervalId','QueueReport','isNil','slice','update','push','busy','channel','UserId','\x20|\x20','whatsappQueuesWaitingInteractions','emit','dialogflow','../rpc/faxQueueReport','updateRealtime','mailQueues','./applications/','split','path','stack','agents','interval','Intervals','undefined','app','toLowerCase','existsSync','routing','matchPath','stringify','%s:%s:%s','../rpc/mailQueueReport','http','Push\x20new\x20rule','rules','tag','catch','No\x20applications\x20to\x20execute','capacity','format','whatsappQueues','../rpc/whatsappQueueReport','available','waiting','faxQueuesWaitingInteractions','end','smsQueuesWaitingInteractions','smsQueues'];(function(_0x15d297,_0x19b8fa){const _0x40cb92=function(_0x508947){while(--_0x508947){_0x15d297['push'](_0x15d297['shift']());}};_0x40cb92(++_0x19b8fa);}(a1387_0x40cb,0xb8));const a1387_0x5089=function(_0x15d297,_0x19b8fa){_0x15d297=_0x15d297-0xca;let _0x40cb92=a1387_0x40cb[_0x15d297];return _0x40cb92;};const a1387_0xf391f7=a1387_0x5089;'use strict';const _=require(a1387_0xf391f7(0xcd)),util=require(a1387_0xf391f7(0x121)),path=require(a1387_0xf391f7(0xff)),fs=require('fs'),jayson=require(a1387_0xf391f7(0xdc)),logger=require(a1387_0xf391f7(0xd2))(a1387_0xf391f7(0x108)),rpc={'openchannelQueueReport':require('../rpc/openchannelQueueReport'),'mailQueueReport':require(a1387_0xf391f7(0x10c)),'chatQueueReport':require('../rpc/chatQueueReport'),'smsQueueReport':require('../rpc/smsQueueReport'),'faxQueueReport':require(a1387_0xf391f7(0xfa)),'whatsappQueueReport':require(a1387_0xf391f7(0x116))},RuleEngine=require(a1387_0xf391f7(0xe2));function getId(_0x19e9f4,_0x1a6b33,_0x36a7de){const _0x5ee7bb=a1387_0xf391f7;return util[_0x5ee7bb(0x114)](_0x5ee7bb(0xd5),_0x19e9f4,_0x1a6b33||0x0,_0x36a7de||0x0);}function getIntervals(_0x1f0559,_0x56e676){const _0x53e1cd=a1387_0xf391f7;let _0x18bb8c=[];if(!_[_0x53e1cd(0xef)](_0x56e676[_0x53e1cd(0xed)])&&!_[_0x53e1cd(0xef)](_0x1f0559[_0x56e676[_0x53e1cd(0xed)]])&&!_['isNil'](_0x1f0559[_0x56e676[_0x53e1cd(0xed)]][_0x53e1cd(0x103)]))_0x18bb8c=_[_0x53e1cd(0xd4)](_0x1f0559[_0x56e676[_0x53e1cd(0xed)]][_0x53e1cd(0x103)],_0x53e1cd(0x102));else!_[_0x53e1cd(0xef)](_0x56e676['interval'])&&(_0x18bb8c=[_0x56e676[_0x53e1cd(0x102)]]);return _0x18bb8c;}exports[a1387_0xf391f7(0xd7)]=function(_0xc4b47){const _0x22d1fc=a1387_0xf391f7;return _0xc4b47[_0x22d1fc(0x10f)]={},new Promise(function(_0x5e4ca2,_0x3f8beb){const _0x8547df=_0x22d1fc,_0x344feb={'Start':function(_0x146044){const _0x389b00=this;return new Promise(function(_0x10227d,_0x16a053){const _0x2ac165=a1387_0x5089;if(_0x146044)try{const _0x334de0=[],_0x1ae338=getId(_0x146044[_0x2ac165(0xf4)],_0x146044[_0x2ac165(0xe3)]?_0x146044['message']['id']:0x0,_0x146044[_0x2ac165(0xca)]?_0x146044['interaction']['id']:0x0);if(_0x146044['applications']&&_[_0x2ac165(0xd6)](_0x146044[_0x2ac165(0xe1)])&&_0x146044['applications'][_0x2ac165(0xd3)]){for(let _0x684cc9=0x0;_0x684cc9<_0x146044[_0x2ac165(0xe1)][_0x2ac165(0xd3)];_0x684cc9+=0x1){const _0x22b54d=_0x146044['applications'][_0x684cc9];if(fs[_0x2ac165(0x107)](path[_0x2ac165(0xe8)](__dirname,_0x2ac165(0xe1),_0x22b54d[_0x2ac165(0x105)]+_0x2ac165(0xdd)))){let _0xfe9dd2=[];switch(_0x22b54d[_0x2ac165(0x105)][_0x2ac165(0x106)]()){case _0x2ac165(0x11d):{const _0x1a896c=_0x22b54d['appdata'][_0x2ac165(0xfe)](',');_0xfe9dd2[_0x2ac165(0xf2)](_0x1a896c[0x0]),_0xfe9dd2['push'](_0x1a896c[_0x2ac165(0xf0)](0x1,_0x1a896c[_0x2ac165(0xd3)])[_0x2ac165(0xe8)](','));}break;case _0x2ac165(0xf9):{const _0x2e30ab=_0x22b54d[_0x2ac165(0x11e)]['split'](',');_0xfe9dd2[_0x2ac165(0xf2)](_0x2e30ab[0x0]),_0xfe9dd2[_0x2ac165(0xf2)](_0x2e30ab[0x1]),_0xfe9dd2[_0x2ac165(0xf2)](_0x2e30ab['slice'](0x2,_0x2e30ab[_0x2ac165(0xd3)])[_0x2ac165(0xe8)](','));}break;case'dialogflowv2':{const _0x2aeb1d=_0x22b54d[_0x2ac165(0x11e)]['split'](',');_0xfe9dd2[_0x2ac165(0xf2)](_0x2aeb1d[0x0]),_0xfe9dd2[_0x2ac165(0xf2)](_0x2aeb1d[0x1]),_0xfe9dd2['push'](_0x2aeb1d[0x2]),_0xfe9dd2['push'](_0x2aeb1d[0x3]),_0xfe9dd2[_0x2ac165(0xf2)](_0x2aeb1d[_0x2ac165(0xf0)](0x4,_0x2aeb1d['length'])['join'](','));}break;case _0x2ac165(0xce):{const _0x4fca5f=_0x22b54d[_0x2ac165(0x11e)][_0x2ac165(0xfe)](',');_0xfe9dd2[_0x2ac165(0xf2)](_0x4fca5f[0x0]),_0xfe9dd2[_0x2ac165(0xf2)](_0x4fca5f[0x1]),_0xfe9dd2[_0x2ac165(0xf2)](_0x4fca5f[0x2]),_0xfe9dd2[_0x2ac165(0xf2)](_0x4fca5f[0x3]),_0xfe9dd2['push'](_0x4fca5f[_0x2ac165(0xf0)](0x4,_0x4fca5f['length'])[_0x2ac165(0xe8)](','));}break;case _0x2ac165(0xe3):_0xfe9dd2[_0x2ac165(0xf2)](_0x22b54d['appdata']);break;case _0x2ac165(0x110):_0xfe9dd2['push'](_0x22b54d['TagId']),_0xfe9dd2[_0x2ac165(0xf2)](_0x22b54d[_0x2ac165(0x11e)]);break;default:_0xfe9dd2=_[_0x2ac165(0xef)](_0x22b54d[_0x2ac165(0x11e)])?[]:_0x22b54d['appdata'][_0x2ac165(0xfe)](',');}const _0x20511d={'id':util['format'](_0x2ac165(0x10b),_0x1ae338,_0x22b54d['id'],_0x22b54d[_0x2ac165(0x105)]),'condition':require(_0x2ac165(0x11f))['condition'](_0x1ae338,getIntervals(_0xc4b47[_0x2ac165(0xe9)],_0x22b54d),_0xc4b47),'consequence':require(_0x2ac165(0xfd)+_0x22b54d[_0x2ac165(0x105)])['consequence'](_0x1ae338,_0xfe9dd2,_0xc4b47,_0x146044),'p':_0x22b54d[_0x2ac165(0xcc)]||0x0};logger['info'](_0x2ac165(0x10e),_0x20511d['id'],_0x2ac165(0xd9),getIntervals(_0xc4b47[_0x2ac165(0xe9)],_0x22b54d)[_0x2ac165(0xe8)](_0x2ac165(0xf6))),_0x334de0[_0x2ac165(0xf2)](_0x20511d);}else logger[_0x2ac165(0xe4)]('Please\x20create\x20a\x20new\x20file\x20under',path[_0x2ac165(0xe8)](__dirname,'applications',_0x22b54d[_0x2ac165(0x105)]+_0x2ac165(0xdd)));}return _0xc4b47[_0x2ac165(0x10f)][_0x1ae338]=new RuleEngine(_0x334de0),_0xc4b47['rules'][_0x1ae338]['execute'](_0x146044,function(_0x1e605c){const _0x499dc3=_0x2ac165;logger[_0x499dc3(0xe7)]('Applications\x20executed',JSON['stringify'](_0x1e605c[_0x499dc3(0x109)])),_0xc4b47[_0x499dc3(0x10f)][_0x1ae338]&&_0xc4b47['rules'][_0x1ae338][_0x499dc3(0xf8)](_0x499dc3(0xd0));}),_0x10227d({'code':0xc8,'message':_0x146044});}else return logger[_0x2ac165(0xe7)](_0x2ac165(0x112)),_0x10227d({'code':0xc8,'message':_0x146044});}catch(_0x20bf43){return logger[_0x2ac165(0xe4)](_0x20bf43[_0x2ac165(0x100)]),_0x16a053(_0x389b00[_0x2ac165(0xe4)](0x1f4,_0x20bf43));}return _0x16a053(_0x2ac165(0xec));});},'AcceptMessage':function(_0x3d8fe5){const _0xe40e19=this;return new Promise(function(_0x478e44,_0x3e915c){const _0x47855f=a1387_0x5089;if(_0x3d8fe5[_0x47855f(0xe3)]&&_0x3d8fe5[_0x47855f(0xe3)]['id'])try{const _0x2f15f7=getId(_0x3d8fe5[_0x47855f(0xf4)],_0x3d8fe5['message']?_0x3d8fe5[_0x47855f(0xe3)]['id']:0x0,_0x3d8fe5[_0x47855f(0xca)]?_0x3d8fe5['interaction']['id']:0x0);return _0xc4b47[_0x47855f(0x10f)][_0x2f15f7]&&(_0xc4b47['rules'][_0x2f15f7][_0x47855f(0xf8)]('end'),rpc[_0x3d8fe5[_0x47855f(0xf4)]+_0x47855f(0xee)]&&rpc[_0x3d8fe5['channel']+_0x47855f(0xee)][_0x47855f(0xf1)](_0x2f15f7,{'UserId':_0x3d8fe5[_0x47855f(0xe3)][_0x47855f(0xf5)]})[_0x47855f(0x111)](function(){const _0x11941b=_0x47855f;logger[_0x11941b(0xe4)]('error\x20update\x20queue\x20report');})),_0x478e44({'code':0xc8,'message':_0x3d8fe5});}catch(_0x283ba0){return logger[_0x47855f(0xe4)](_0x283ba0[_0x47855f(0x100)]),_0x3e915c(_0xe40e19[_0x47855f(0xe4)](0x1f4,_0x283ba0));}return logger['error'](_0x47855f(0xde)),_0x3e915c(_0xe40e19[_0x47855f(0xe4)](0x1f4,_0x47855f(0xde)));});},'RejectMessage':function(_0x3e2f1c){const _0x4ad5eb=this;return new Promise(function(_0x7469bd,_0x209895){const _0x5be04c=a1387_0x5089;if(_0x3e2f1c[_0x5be04c(0xe0)]&&_0x3e2f1c[_0x5be04c(0xe0)]['id'])try{return _0xc4b47['agents'][_0x3e2f1c[_0x5be04c(0xe0)]['id']]&&(_0xc4b47['agents'][_0x3e2f1c[_0x5be04c(0xe0)]['id']][_0x5be04c(0xf3)]=![],_0xc4b47[_0x5be04c(0x101)][_0x3e2f1c[_0x5be04c(0xe0)]['id']][_0x5be04c(0xcb)]=undefined),_0x7469bd({'code':0xc8,'message':_0x3e2f1c});}catch(_0x4d9c3d){return logger[_0x5be04c(0xe4)](_0x4d9c3d[_0x5be04c(0x100)]),_0x209895(_0x4ad5eb[_0x5be04c(0xe4)](0x1f4,_0x4d9c3d));}return logger[_0x5be04c(0xe4)](_0x5be04c(0xde)),_0x209895(_0x4ad5eb[_0x5be04c(0xe4)](0x1f4,_0x5be04c(0xde)));});},'AbandonInteraction':function(_0x30a391){const _0x3b8aa6=this;return new Promise(function(_0x2cd62e,_0x1369c9){const _0x1177bf=a1387_0x5089;if(_0x30a391[_0x1177bf(0xf4)]&&_0x30a391['interaction']&&_0x30a391[_0x1177bf(0xca)]['id'])try{const _0x285b9e=getId(_0x30a391[_0x1177bf(0xf4)],_0x30a391[_0x1177bf(0xe3)]?_0x30a391[_0x1177bf(0xe3)]['id']:0x0,_0x30a391[_0x1177bf(0xca)]?_0x30a391[_0x1177bf(0xca)]['id']:0x0);return _0xc4b47[_0x1177bf(0x10f)][_0x285b9e]&&_0xc4b47['rules'][_0x285b9e][_0x1177bf(0xf8)](_0x1177bf(0x11a)),_0x2cd62e({'code':0xc8,'message':_0x30a391});}catch(_0x496458){return logger[_0x1177bf(0xe4)](_0x496458[_0x1177bf(0x100)]),_0x1369c9(_0x3b8aa6[_0x1177bf(0xe4)](0x1f4,_0x496458));}return logger[_0x1177bf(0xe4)]('message\x20is\x20empty'),_0x1369c9(_0x3b8aa6[_0x1177bf(0xe4)](0x1f4,_0x1177bf(0xde)));});},'AgentCapacity':function(_0x1a91df){const _0x5a7a7c=this;return new Promise(function(_0x45b076,_0x4e25d2){const _0x21020c=a1387_0x5089;if(typeof _0xc4b47[_0x21020c(0x101)][_0x1a91df['id']]!==_0x21020c(0x104)){for(const _0x429ffb in _0x1a91df[_0x21020c(0x113)]){typeof _0x1a91df[_0x21020c(0x113)][_0x429ffb]!==_0x21020c(0x104)&&(typeof _0xc4b47[_0x21020c(0x101)][_0x1a91df['id']][_0x429ffb+_0x21020c(0xcf)]!==_0x21020c(0x104)&&(_0xc4b47[_0x21020c(0x101)][_0x1a91df['id']][_0x429ffb+_0x21020c(0xcf)]=parseInt(_0x1a91df[_0x21020c(0x113)][_0x429ffb],0xa)));}return _0xc4b47['agents'][_0x1a91df['id']][_0x21020c(0xfb)](),_0x45b076({'code':0xc8,'message':_0xc4b47[_0x21020c(0x101)][_0x1a91df['id']]});}else return _0x4e25d2(_0x5a7a7c['error'](0x1f4,'agent\x20not\x20found'));});},'Agents':function(){return new Promise(function(_0x4ce216){const _0x12aa0c=a1387_0x5089,_0xa879ee=_[_0x12aa0c(0xdf)](_0xc4b47[_0x12aa0c(0x101)]);_0x4ce216({'count':_0xa879ee[_0x12aa0c(0xd3)],'rows':_0xa879ee});});},'ChatQueues':function(){return new Promise(function(_0x4e8c53){const _0x42cd51=a1387_0x5089,_0x168207=[];for(const _0x112613 in _0xc4b47[_0x42cd51(0xd8)]){if(typeof _0xc4b47['chatQueues'][_0x112613]!==_0x42cd51(0x104)){const _0x25ecc2=_0xc4b47[_0x42cd51(0xd8)][_0x112613],_0x380677={'id':_0x25ecc2['id'],'available':_0x25ecc2['available'],'loggedIn':_0x25ecc2['loggedIn'],'name':_0x25ecc2[_0x42cd51(0xe5)],'paused':_0x25ecc2[_0x42cd51(0xeb)],'waiting':_0x25ecc2[_0x42cd51(0x118)]};_0x168207[_0x42cd51(0xf2)](_0x380677);}}_0x4e8c53({'count':_0x168207[_0x42cd51(0xd3)],'rows':_0x168207});});},'MailQueues':function(){return new Promise(function(_0x1999c4){const _0x263adf=a1387_0x5089,_0x2d3a7e=[];for(const _0x1d3232 in _0xc4b47['mailQueues']){if(typeof _0xc4b47[_0x263adf(0xfc)][_0x1d3232]!==_0x263adf(0x104)){const _0x1e4e38=_0xc4b47['mailQueues'][_0x1d3232],_0x27177f={'id':_0x1e4e38['id'],'available':_0x1e4e38[_0x263adf(0x117)],'loggedIn':_0x1e4e38['loggedIn'],'name':_0x1e4e38[_0x263adf(0xe5)],'paused':_0x1e4e38[_0x263adf(0xeb)],'waiting':_0x1e4e38['waiting']};_0x2d3a7e[_0x263adf(0xf2)](_0x27177f);}}_0x1999c4({'count':_0x2d3a7e[_0x263adf(0xd3)],'rows':_0x2d3a7e});});},'OpenchannelQueues':function(){return new Promise(function(_0x4d35d5){const _0x475055=a1387_0x5089,_0x27b343=[];for(const _0x4cc1ee in _0xc4b47[_0x475055(0xea)]){if(typeof _0xc4b47[_0x475055(0xea)][_0x4cc1ee]!==_0x475055(0x104)){const _0x528149=_0xc4b47[_0x475055(0xea)][_0x4cc1ee],_0x305484={'id':_0x528149['id'],'available':_0x528149[_0x475055(0x117)],'loggedIn':_0x528149['loggedIn'],'name':_0x528149['name'],'paused':_0x528149[_0x475055(0xeb)],'waiting':_0x528149[_0x475055(0x118)]};_0x27b343[_0x475055(0xf2)](_0x305484);}}_0x4d35d5({'count':_0x27b343[_0x475055(0xd3)],'rows':_0x27b343});});},'SmsQueues':function(){return new Promise(function(_0x1f8dba){const _0x1b1c6f=a1387_0x5089,_0x4c9a51=[];for(const _0x14c0ce in _0xc4b47[_0x1b1c6f(0x11c)]){if(typeof _0xc4b47[_0x1b1c6f(0x11c)][_0x14c0ce]!==_0x1b1c6f(0x104)){const _0x4cf1b1=_0xc4b47[_0x1b1c6f(0x11c)][_0x14c0ce],_0x8694cf={'id':_0x4cf1b1['id'],'available':_0x4cf1b1['available'],'loggedIn':_0x4cf1b1[_0x1b1c6f(0xdb)],'name':_0x4cf1b1[_0x1b1c6f(0xe5)],'paused':_0x4cf1b1[_0x1b1c6f(0xeb)],'waiting':_0x4cf1b1['waiting']};_0x4c9a51[_0x1b1c6f(0xf2)](_0x8694cf);}}_0x1f8dba({'count':_0x4c9a51['length'],'rows':_0x4c9a51});});},'FaxQueues':function(){return new Promise(function(_0x962868){const _0x500d7f=a1387_0x5089,_0x5aeece=[];for(const _0x55fb43 in _0xc4b47[_0x500d7f(0x122)]){if(typeof _0xc4b47[_0x500d7f(0x122)][_0x55fb43]!==_0x500d7f(0x104)){const _0x303414=_0xc4b47[_0x500d7f(0x122)][_0x55fb43],_0x17fd01={'id':_0x303414['id'],'available':_0x303414[_0x500d7f(0x117)],'loggedIn':_0x303414[_0x500d7f(0xdb)],'name':_0x303414[_0x500d7f(0xe5)],'paused':_0x303414[_0x500d7f(0xeb)],'waiting':_0x303414[_0x500d7f(0x118)]};_0x5aeece[_0x500d7f(0xf2)](_0x17fd01);}}_0x962868({'count':_0x5aeece['length'],'rows':_0x5aeece});});},'WhatsappQueues':function(){return new Promise(function(_0x42ac71){const _0x5f54aa=a1387_0x5089,_0x46f9b9=[];for(const _0x42c6d5 in _0xc4b47['whatsappQueues']){if(typeof _0xc4b47['whatsappQueues'][_0x42c6d5]!=='undefined'){const _0x3ef4ea=_0xc4b47[_0x5f54aa(0x115)][_0x42c6d5],_0x358992={'id':_0x3ef4ea['id'],'available':_0x3ef4ea[_0x5f54aa(0x117)],'loggedIn':_0x3ef4ea[_0x5f54aa(0xdb)],'name':_0x3ef4ea[_0x5f54aa(0xe5)],'paused':_0x3ef4ea[_0x5f54aa(0xeb)],'waiting':_0x3ef4ea['waiting']};_0x46f9b9[_0x5f54aa(0xf2)](_0x358992);}}_0x42ac71({'count':_0x46f9b9['length'],'rows':_0x46f9b9});});},'ChatQueuesWaitingInteractions':function(){return new Promise(function(_0x503cd5){const _0x4b42db=a1387_0x5089,_0x249f75=_[_0x4b42db(0xdf)](_0xc4b47[_0x4b42db(0xe6)]);_0x503cd5({'count':_0x249f75[_0x4b42db(0xd3)],'rows':_0x249f75});});},'MailQueuesWaitingInteractions':function(){return new Promise(function(_0x54dbf5){const _0x1fa5ff=a1387_0x5089,_0x1dc6d7=_[_0x1fa5ff(0xdf)](_0xc4b47['mailQueuesWaitingInteractions']);_0x54dbf5({'count':_0x1dc6d7[_0x1fa5ff(0xd3)],'rows':_0x1dc6d7});});},'OpenchannelQueuesWaitingInteractions':function(){return new Promise(function(_0x19b166){const _0x4e5587=a1387_0x5089,_0x40731d=_[_0x4e5587(0xdf)](_0xc4b47['openchannelQueuesWaitingInteractions']);_0x19b166({'count':_0x40731d['length'],'rows':_0x40731d});});},'SmsQueuesWaitingInteractions':function(){return new Promise(function(_0x5ba6bb){const _0x457046=a1387_0x5089,_0x11eb59=_[_0x457046(0xdf)](_0xc4b47[_0x457046(0x11b)]);_0x5ba6bb({'count':_0x11eb59[_0x457046(0xd3)],'rows':_0x11eb59});});},'FaxQueuesWaitingInteractions':function(){return new Promise(function(_0x47f54c){const _0x3ab327=a1387_0x5089,_0x1a5c48=_['values'](_0xc4b47[_0x3ab327(0x119)]);_0x47f54c({'count':_0x1a5c48[_0x3ab327(0xd3)],'rows':_0x1a5c48});});},'WhatsappQueuesWaitingInteractions':function(){return new Promise(function(_0x3cb29b){const _0xf99bb8=a1387_0x5089,_0x1c0fcb=_['values'](_0xc4b47[_0xf99bb8(0xf7)]);_0x3cb29b({'count':_0x1c0fcb[_0xf99bb8(0xd3)],'rows':_0x1c0fcb});});}},_0x3b5fce=jayson[_0x8547df(0xda)](_0x344feb)[_0x8547df(0x10d)]();_0x3b5fce['on'](_0x8547df(0xe4),function(_0x17873b){const _0x5b713c=_0x8547df;return logger[_0x5b713c(0xe4)](JSON[_0x5b713c(0x10a)](_0x17873b)),_0x3f8beb(_0x17873b);}),_0x3b5fce[_0x8547df(0xd7)](0x232c,'127.0.0.1',function(){const _0x21fb0e=_0x8547df;return console[_0x21fb0e(0x120)]('Routing\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!',0x232c),_0x5e4ca2(_0x21fb0e(0xd1)+0x232c);});});}; \ No newline at end of file diff --git a/server/services/routing/server/interval.js b/server/services/routing/server/interval.js index 816fbde..85ef0b6 100644 --- a/server/services/routing/server/interval.js +++ b/server/services/routing/server/interval.js @@ -1 +1 @@ -const a1388_0x24c3=['some','condition','../../../config/logger','all','util','join','\x20|\x20','info','when','[%s][INTERVAL]\x20ROUTING\x20STOPPED','jayson/promise','lodash','iftime\x20%s','length','Command','[%s][INTERVAL]\x20%s\x20%s','error','stop','format','catch','[%s][INTERVAL]\x20%s','http','rules','then','true','message','routing','request'];(function(_0x49798e,_0x543747){const _0x24c3cc=function(_0x57a529){while(--_0x57a529){_0x49798e['push'](_0x49798e['shift']());}};_0x24c3cc(++_0x543747);}(a1388_0x24c3,0xa7));const a1388_0x57a5=function(_0x49798e,_0x543747){_0x49798e=_0x49798e-0x7b;let _0x24c3cc=a1388_0x24c3[_0x49798e];return _0x24c3cc;};const a1388_0xe8c35a=a1388_0x57a5;'use strict';const util=require(a1388_0xe8c35a(0x80)),jayson=require(a1388_0xe8c35a(0x86)),_=require(a1388_0xe8c35a(0x87)),logger=require(a1388_0xe8c35a(0x7e))(a1388_0xe8c35a(0x96)),client=jayson['client'][a1388_0xe8c35a(0x91)]({'port':0x232a});function request(_0x2a4309,_0x56dfc5){return new Promise(function(_0xc2309a,_0x5c1199){const _0x3e2040=a1388_0x57a5;return client[_0x3e2040(0x7b)](_0x2a4309,_0x56dfc5)[_0x3e2040(0x93)](function(_0x581e2e){const _0x11eff5=_0x3e2040;return _0x581e2e[_0x11eff5(0x8c)]?_0x5c1199(_0x581e2e[_0x11eff5(0x8c)]['message']):_0xc2309a(_0x581e2e['result']);})[_0x3e2040(0x8f)](function(_0x270c18){return _0x5c1199(_0x270c18);});});}exports[a1388_0xe8c35a(0x7d)]=function(_0x414cdf,_0x3ace30,_0x340ca7){return function(_0x5911c9){const _0x4ab108=a1388_0x57a5;if(_0x340ca7[_0x4ab108(0x92)]&&!_0x340ca7['rules'][_0x414cdf])return logger[_0x4ab108(0x83)](_0x4ab108(0x85),_0x414cdf),_0x5911c9[_0x4ab108(0x8d)]();const _0x3b2302=[];for(let _0x268ae6=0x0;_0x268ae6<_0x3ace30[_0x4ab108(0x89)];_0x268ae6+=0x1){_0x3b2302['push'](request(_0x4ab108(0x8a),{'command':util[_0x4ab108(0x8e)](_0x4ab108(0x88),_0x3ace30[_0x268ae6])})[_0x4ab108(0x93)](function(_0xd70a10){const _0x34c250=_0x4ab108;return _0xd70a10&&_0xd70a10[_0x34c250(0x95)]&&_0xd70a10[_0x34c250(0x95)]['indexOf'](_0x34c250(0x94))>=0x0?!![]:![];})[_0x4ab108(0x8f)](function(){const _0x177f67=_0x4ab108;logger['error'](_0x177f67(0x90),_0x414cdf,_0x3ace30[_0x268ae6]);}));}Promise[_0x4ab108(0x7f)](_0x3b2302)[_0x4ab108(0x93)](function(_0xea8094){const _0x44086b=_0x4ab108,_0x14adf6=_[_0x44086b(0x7c)](_0xea8094);logger[_0x44086b(0x83)](_0x44086b(0x8b),_0x414cdf,_0x3ace30[_0x44086b(0x81)](_0x44086b(0x82)),_0x14adf6),_0x5911c9[_0x44086b(0x84)](_0x14adf6);})[_0x4ab108(0x8f)](function(_0x2924c6){const _0x5307d6=_0x4ab108;console['log'](_0x2924c6),logger[_0x5307d6(0x8c)](_0x5307d6(0x8b),_0x414cdf,_0x3ace30[_0x5307d6(0x81)](_0x5307d6(0x82)),_0x2924c6['stack']),_0x5911c9[_0x5307d6(0x8d)]();});};}; \ No newline at end of file +const a1388_0x1a42=['http','routing','length','join','rules','iftime\x20%s','when','request','message','result','stack','then','jayson/promise','error','Command','[%s][INTERVAL]\x20%s\x20%s','stop','[%s][INTERVAL]\x20%s','push','catch','\x20|\x20','lodash','condition','info','some','util'];(function(_0x3a1ed5,_0x2dbc84){const _0x1a426b=function(_0x3e6f72){while(--_0x3e6f72){_0x3a1ed5['push'](_0x3a1ed5['shift']());}};_0x1a426b(++_0x2dbc84);}(a1388_0x1a42,0x125));const a1388_0x3e6f=function(_0x3a1ed5,_0x2dbc84){_0x3a1ed5=_0x3a1ed5-0x83;let _0x1a426b=a1388_0x1a42[_0x3a1ed5];return _0x1a426b;};const a1388_0x3244e4=a1388_0x3e6f;'use strict';const util=require(a1388_0x3244e4(0x95)),jayson=require(a1388_0x3244e4(0x88)),_=require(a1388_0x3244e4(0x91)),logger=require('../../../config/logger')(a1388_0x3244e4(0x97)),client=jayson['client'][a1388_0x3244e4(0x96)]({'port':0x232a});function request(_0x577aab,_0x201512){return new Promise(function(_0x1b5679,_0x921cea){const _0x1e9f14=a1388_0x3e6f;return client[_0x1e9f14(0x83)](_0x577aab,_0x201512)[_0x1e9f14(0x87)](function(_0x3665bf){const _0x5eea00=_0x1e9f14;return _0x3665bf[_0x5eea00(0x89)]?_0x921cea(_0x3665bf[_0x5eea00(0x89)][_0x5eea00(0x84)]):_0x1b5679(_0x3665bf[_0x5eea00(0x85)]);})['catch'](function(_0x1e8bcd){return _0x921cea(_0x1e8bcd);});});}exports[a1388_0x3244e4(0x92)]=function(_0x54dc08,_0x24aede,_0x37c293){return function(_0x3ac507){const _0x3594d4=a1388_0x3e6f;if(_0x37c293['rules']&&!_0x37c293[_0x3594d4(0x9a)][_0x54dc08])return logger['info']('[%s][INTERVAL]\x20ROUTING\x20STOPPED',_0x54dc08),_0x3ac507[_0x3594d4(0x8c)]();const _0x3dad1e=[];for(let _0x5dd244=0x0;_0x5dd244<_0x24aede[_0x3594d4(0x98)];_0x5dd244+=0x1){_0x3dad1e[_0x3594d4(0x8e)](request(_0x3594d4(0x8a),{'command':util['format'](_0x3594d4(0x9b),_0x24aede[_0x5dd244])})['then'](function(_0x4c9a9f){const _0x16c4eb=_0x3594d4;return _0x4c9a9f&&_0x4c9a9f[_0x16c4eb(0x84)]&&_0x4c9a9f[_0x16c4eb(0x84)]['indexOf']('true')>=0x0?!![]:![];})[_0x3594d4(0x8f)](function(){const _0x5f5e0a=_0x3594d4;logger[_0x5f5e0a(0x89)](_0x5f5e0a(0x8d),_0x54dc08,_0x24aede[_0x5dd244]);}));}Promise['all'](_0x3dad1e)['then'](function(_0x5bf0e2){const _0x4345a1=_0x3594d4,_0x18136e=_[_0x4345a1(0x94)](_0x5bf0e2);logger[_0x4345a1(0x93)](_0x4345a1(0x8b),_0x54dc08,_0x24aede['join'](_0x4345a1(0x90)),_0x18136e),_0x3ac507[_0x4345a1(0x9c)](_0x18136e);})[_0x3594d4(0x8f)](function(_0x35db55){const _0x30240b=_0x3594d4;console['log'](_0x35db55),logger['error'](_0x30240b(0x8b),_0x54dc08,_0x24aede[_0x30240b(0x99)](_0x30240b(0x90)),_0x35db55[_0x30240b(0x86)]),_0x3ac507['stop']();});};}; \ No newline at end of file diff --git a/server/services/xdr/agents.controller.js b/server/services/xdr/agents.controller.js index b53801d..2e93f4f 100644 --- a/server/services/xdr/agents.controller.js +++ b/server/services/xdr/agents.controller.js @@ -1 +1 @@ -const a1389_0x323a=['channel','[%s][agents][agentcalled]\x20agent:%s\x20destuniqueid:%s\x20lastevent:called','ATTENDED','abandoned','secondtransfereruniqueid','[%s][agents][agentringnoanswer]','connectedlinenum','transfer','[%s][agents][agentconnect]\x20agent:%s\x20destuniqueid:%s\x20lastevent:connect','agent','transferexten','./utils','attendedtransfer','agentcomplete','timeout','[%s][agents][queuecallerabandon]','now','transfertype','getVoiceQueueByName','answered_elsewhere','[%s][agents][agentcalled]','transfertargetuniqueid','format','then','blindtransfer','answeredelsewheremembername','rejected','agentcalledAt','complete','acwtime','push','[%s][agents][blindtransfer]','agententerreason','forIn','[%s][agents][attendedtransfer]\x20agent:%s\x20transferuniqueid:%s','[%s][agents][blindtransfer]\x20agent:%s\x20transferuniqueid:%s','agentringnoanswerAt','[%s][agents][agentcomplete]','clone','lodash','uniqueid','[%s][agents][agentcomplete]\x20agent:%s\x20destuniqueid:%s\x20lastevent:complete','transfereeuniqueid','holdtime','ringtime','agentcalled','secondtransfererlinkedid','answeredelsewheredestinationuniqueid','transfereruniqueid','type','calleridname','agentcompleteAt','secondtransfererexten','origtransfererexten','acw','agentringnoanswer','error','debug','transferuniqueid','util','[%s][agents][queuecallerabandon]\x20agent:%s\x20destuniqueid:%s\x20lastevent:abandoned','diffTime','calleridnum','membername','destuniqueid','request','isNil','queue','talktime','called','origtransfererlinkedid','interface','[%s][agents][attendedtransfer]','[%s][agents][agentconnect]','reason','agentacw','origtransfereruniqueid','agentconnectAt','info','lastevent','CreateVoiceAgentReport','connectedlinename'];(function(_0xa91cae,_0x495bce){const _0x323adf=function(_0x3c7132){while(--_0x3c7132){_0xa91cae['push'](_0xa91cae['shift']());}};_0x323adf(++_0x495bce);}(a1389_0x323a,0x149));const a1389_0x3c71=function(_0xa91cae,_0x495bce){_0xa91cae=_0xa91cae-0x112;let _0x323adf=a1389_0x323a[_0xa91cae];return _0x323adf;};const a1389_0x300a55=a1389_0x3c71;'use strict';const _=require(a1389_0x300a55(0x138)),util=require(a1389_0x300a55(0x14c)),utils=require(a1389_0x300a55(0x11c)),agents={},transfers={},unanswered=[];function writeDB(_0x1a296d,_0x1d64e0){const _0x4da6d1=a1389_0x300a55;utils[_0x4da6d1(0x15f)](util['format']('[%s][agents][writeDB]\x20channel:%s\x20queue:%s\x20agent:%s\x20interface:%s\x20calleridnum:%s\x20connectedlinenum:%s\x20lastevent:%s',_0x1a296d[_0x4da6d1(0x139)],_0x1a296d[_0x4da6d1(0x163)],_0x1a296d['queue'],_0x1a296d['membername'],_0x1a296d[_0x4da6d1(0x158)],_0x1a296d[_0x4da6d1(0x14f)],_0x1a296d[_0x4da6d1(0x117)],_0x1a296d['lastevent'])),_0x1a296d[_0x4da6d1(0x154)]?utils[_0x4da6d1(0x123)](_0x1a296d[_0x4da6d1(0x154)])[_0x4da6d1(0x128)](function(_0x14e265){const _0x30a8c9=_0x4da6d1;_0x14e265&&(_0x1a296d[_0x30a8c9(0x142)]=_0x14e265[_0x30a8c9(0x142)],_0x1a296d[_0x30a8c9(0x15c)]=_0x1a296d[_0x30a8c9(0x11e)]?_0x14e265[_0x30a8c9(0x147)]:![],_0x1a296d[_0x30a8c9(0x12e)]=_0x1a296d[_0x30a8c9(0x15c)]?_0x14e265['acwTimeout']:0x0),utils[_0x30a8c9(0x152)](_0x30a8c9(0x161),_0x1a296d);}):utils['request'](_0x4da6d1(0x161),_0x1a296d),_0x1d64e0?delete transfers[_0x1a296d[_0x4da6d1(0x139)]]:delete agents[_0x1a296d[_0x4da6d1(0x151)]];}exports[a1389_0x300a55(0x13e)]=function(_0x1aaf33){const _0x3a9c18=a1389_0x300a55;try{utils['debug'](util[_0x3a9c18(0x127)](_0x3a9c18(0x125),_0x1aaf33[_0x3a9c18(0x139)]),_0x1aaf33),agents[_0x1aaf33[_0x3a9c18(0x151)]]=_0x1aaf33,agents[_0x1aaf33[_0x3a9c18(0x151)]][_0x3a9c18(0x12c)]=utils[_0x3a9c18(0x121)](),agents[_0x1aaf33[_0x3a9c18(0x151)]][_0x3a9c18(0x160)]=_0x3a9c18(0x156),agents[_0x1aaf33[_0x3a9c18(0x151)]][_0x3a9c18(0x117)]=null,agents[_0x1aaf33[_0x3a9c18(0x151)]][_0x3a9c18(0x162)]=null,utils[_0x3a9c18(0x15f)](util[_0x3a9c18(0x127)](_0x3a9c18(0x112),_0x1aaf33['uniqueid'],agents[_0x1aaf33[_0x3a9c18(0x151)]]['membername'],_0x1aaf33[_0x3a9c18(0x151)]));}catch(_0x163daf){utils[_0x3a9c18(0x149)](util[_0x3a9c18(0x127)](_0x3a9c18(0x125),_0x1aaf33[_0x3a9c18(0x139)]),_0x163daf);}},exports[a1389_0x300a55(0x148)]=function(_0x44832b){const _0x18403a=a1389_0x300a55;try{!_[_0x18403a(0x153)](agents[_0x44832b[_0x18403a(0x151)]])&&(utils[_0x18403a(0x14a)](util[_0x18403a(0x127)]('[%s][agents][agentringnoanswer]',_0x44832b[_0x18403a(0x139)]),_0x44832b),utils['info'](util['format']('[%s][agents][agentringnoanswer]\x20agent:%s\x20destuniqueid:%s\x20lastevent:timeout',_0x44832b[_0x18403a(0x139)],agents[_0x44832b[_0x18403a(0x151)]][_0x18403a(0x150)],_0x44832b[_0x18403a(0x151)])),agents[_0x44832b[_0x18403a(0x151)]][_0x18403a(0x148)]=!![],agents[_0x44832b['destuniqueid']][_0x18403a(0x135)]=utils[_0x18403a(0x121)](),agents[_0x44832b[_0x18403a(0x151)]][_0x18403a(0x160)]=_0x18403a(0x11f),agents[_0x44832b[_0x18403a(0x151)]][_0x18403a(0x15b)]=_0x18403a(0x11f),agents[_0x44832b['destuniqueid']][_0x18403a(0x13c)]=_0x44832b[_0x18403a(0x13d)]?parseInt(_0x44832b[_0x18403a(0x13d)])/0x3e8:0x0,agents[_0x44832b[_0x18403a(0x151)]][_0x18403a(0x155)]=0x0,unanswered[_0x18403a(0x12f)](_0x44832b[_0x18403a(0x151)]));}catch(_0x152e45){utils[_0x18403a(0x149)](util[_0x18403a(0x127)](_0x18403a(0x116),_0x44832b[_0x18403a(0x139)]),_0x152e45);}},exports['queuecallerabandon']=function(_0x2a9558){const _0x21e4c3=a1389_0x300a55;try{_[_0x21e4c3(0x132)](agents,function(_0x5d17bd){const _0x1a595a=_0x21e4c3;_0x5d17bd['uniqueid']==_0x2a9558[_0x1a595a(0x139)]&&!_['includes'](unanswered,_0x5d17bd[_0x1a595a(0x151)])&&(utils[_0x1a595a(0x14a)](util['format']('[%s][agents][queuecallerabandon]',_0x2a9558['uniqueid']),_0x2a9558),utils[_0x1a595a(0x15f)](util[_0x1a595a(0x127)](_0x1a595a(0x14d),_0x2a9558['uniqueid'],_0x5d17bd['membername'],_0x5d17bd['destuniqueid'])),_0x5d17bd[_0x1a595a(0x148)]=!![],_0x5d17bd[_0x1a595a(0x135)]=utils[_0x1a595a(0x121)](),_0x5d17bd[_0x1a595a(0x160)]=_0x1a595a(0x114),_0x5d17bd[_0x1a595a(0x15b)]='abandoned',_0x5d17bd['holdtime']=_0x2a9558[_0x1a595a(0x13c)],_0x5d17bd['talktime']=0x0,writeDB(_0x5d17bd));});}catch(_0x2df001){utils['error'](util[_0x21e4c3(0x127)](_0x21e4c3(0x120),_0x2a9558[_0x21e4c3(0x139)]),_0x2df001);}},exports['agentconnect']=function(_0x2cdaf0){const _0xbadac3=a1389_0x300a55;try{agents[_0x2cdaf0[_0xbadac3(0x151)]]&&(utils[_0xbadac3(0x14a)](util[_0xbadac3(0x127)](_0xbadac3(0x15a),_0x2cdaf0[_0xbadac3(0x139)]),_0x2cdaf0),utils[_0xbadac3(0x15f)](util[_0xbadac3(0x127)](_0xbadac3(0x119),_0x2cdaf0['uniqueid'],agents[_0x2cdaf0[_0xbadac3(0x151)]]['membername'],_0x2cdaf0[_0xbadac3(0x151)])),agents[_0x2cdaf0[_0xbadac3(0x151)]][_0xbadac3(0x15e)]=utils[_0xbadac3(0x121)](),agents[_0x2cdaf0[_0xbadac3(0x151)]][_0xbadac3(0x117)]=_0x2cdaf0[_0xbadac3(0x117)],agents[_0x2cdaf0[_0xbadac3(0x151)]][_0xbadac3(0x162)]=_0x2cdaf0[_0xbadac3(0x162)],agents[_0x2cdaf0['destuniqueid']][_0xbadac3(0x13c)]=_0x2cdaf0['ringtime'],agents[_0x2cdaf0[_0xbadac3(0x151)]]['lastevent']='connect',_[_0xbadac3(0x132)](agents,function(_0xc14d61){const _0x145245=_0xbadac3;_0xc14d61[_0x145245(0x151)]!=_0x2cdaf0[_0x145245(0x151)]&&_0xc14d61[_0x145245(0x139)]==_0x2cdaf0[_0x145245(0x139)]&&(_0xc14d61[_0x145245(0x155)]=0x0,_0xc14d61['holdtime']=_0x2cdaf0[_0x145245(0x13d)],_0xc14d61[_0x145245(0x148)]=!![],_0xc14d61[_0x145245(0x135)]=utils[_0x145245(0x121)](),_0xc14d61[_0x145245(0x160)]=_0x145245(0x124),_0xc14d61[_0x145245(0x15b)]=_0x145245(0x124),_0xc14d61[_0x145245(0x140)]=_0x2cdaf0[_0x145245(0x151)],_0xc14d61[_0x145245(0x12a)]=_0x2cdaf0[_0x145245(0x150)],writeDB(_0xc14d61));}));}catch(_0x37ae27){utils[_0xbadac3(0x149)](util['format'](_0xbadac3(0x15a),_0x2cdaf0['uniqueid']),_0x37ae27);}},exports[a1389_0x300a55(0x11e)]=function(_0x43f597){const _0x4a10a7=a1389_0x300a55;try{!_[_0x4a10a7(0x153)](agents[_0x43f597[_0x4a10a7(0x151)]])&&(utils['debug'](util[_0x4a10a7(0x127)]('[%s][agents][agentcomplete]',_0x43f597['uniqueid']),_0x43f597),utils[_0x4a10a7(0x15f)](util[_0x4a10a7(0x127)](_0x4a10a7(0x13a),_0x43f597['uniqueid'],agents[_0x43f597[_0x4a10a7(0x151)]][_0x4a10a7(0x150)],_0x43f597['destuniqueid'])),agents[_0x43f597[_0x4a10a7(0x151)]]['agentcomplete']=!![],agents[_0x43f597['destuniqueid']][_0x4a10a7(0x144)]=utils['now'](),agents[_0x43f597[_0x4a10a7(0x151)]]['talktime']=utils[_0x4a10a7(0x14e)](agents[_0x43f597[_0x4a10a7(0x151)]][_0x4a10a7(0x144)],agents[_0x43f597[_0x4a10a7(0x151)]]['agentconnectAt']),agents[_0x43f597[_0x4a10a7(0x151)]][_0x4a10a7(0x15b)]=_0x43f597['reason'],agents[_0x43f597[_0x4a10a7(0x151)]][_0x4a10a7(0x160)]='complete',writeDB(agents[_0x43f597['destuniqueid']]));}catch(_0x59d4fa){utils[_0x4a10a7(0x149)](util[_0x4a10a7(0x127)](_0x4a10a7(0x136),_0x43f597[_0x4a10a7(0x139)]),_0x59d4fa);}},exports[a1389_0x300a55(0x129)]=function(_0x3e54c2){const _0x121e84=a1389_0x300a55;try{!_[_0x121e84(0x153)](agents[_0x3e54c2[_0x121e84(0x141)]])&&(utils[_0x121e84(0x14a)](util[_0x121e84(0x127)](_0x121e84(0x130),_0x3e54c2[_0x121e84(0x139)]),_0x3e54c2),utils[_0x121e84(0x15f)](util['format'](_0x121e84(0x134),_0x3e54c2[_0x121e84(0x139)],agents[_0x3e54c2[_0x121e84(0x141)]][_0x121e84(0x150)],agents[_0x3e54c2['transfereruniqueid']]['uniqueid'])),agents[_0x3e54c2[_0x121e84(0x141)]][_0x121e84(0x118)]=!![],agents[_0x3e54c2[_0x121e84(0x141)]][_0x121e84(0x122)]='blind',agents[_0x3e54c2[_0x121e84(0x141)]][_0x121e84(0x11b)]=_0x3e54c2['extension'],agents[_0x3e54c2[_0x121e84(0x141)]][_0x121e84(0x14b)]=agents[_0x3e54c2[_0x121e84(0x141)]][_0x121e84(0x139)]);}catch(_0x4666f5){utils[_0x121e84(0x149)](util[_0x121e84(0x127)](_0x121e84(0x130),_0x3e54c2[_0x121e84(0x139)]),_0x4666f5);}},exports[a1389_0x300a55(0x11d)]=function(_0x5d71ee){const _0x51f8c9=a1389_0x300a55;try{utils['debug'](util['format'](_0x51f8c9(0x159),_0x5d71ee[_0x51f8c9(0x139)]),_0x5d71ee);if(_0x5d71ee[_0x51f8c9(0x15d)]==_0x5d71ee[_0x51f8c9(0x157)])!_['isNil'](agents[_0x5d71ee[_0x51f8c9(0x115)]])&&(utils['info'](util['format'](_0x51f8c9(0x133),_0x5d71ee['uniqueid'],agents[_0x5d71ee[_0x51f8c9(0x115)]][_0x51f8c9(0x150)],_0x5d71ee[_0x51f8c9(0x15d)])),agents[_0x5d71ee[_0x51f8c9(0x115)]][_0x51f8c9(0x118)]=!![],agents[_0x5d71ee[_0x51f8c9(0x115)]]['transfertype']=_0x51f8c9(0x113),agents[_0x5d71ee[_0x51f8c9(0x115)]]['transferexten']=_0x5d71ee[_0x51f8c9(0x146)],agents[_0x5d71ee[_0x51f8c9(0x115)]][_0x51f8c9(0x14b)]=_0x5d71ee['origtransfereruniqueid']),_0x5d71ee[_0x51f8c9(0x13b)]&&agents[_0x5d71ee[_0x51f8c9(0x13b)]]&&(agents[_0x5d71ee[_0x51f8c9(0x13b)]][_0x51f8c9(0x131)]=0x1,transfers[_0x5d71ee[_0x51f8c9(0x13b)]]=_[_0x51f8c9(0x137)](agents[_0x5d71ee[_0x51f8c9(0x13b)]]),transfers[_0x5d71ee['transfereeuniqueid']]['calleridnum']=agents[_0x5d71ee[_0x51f8c9(0x115)]][_0x51f8c9(0x14f)],transfers[_0x5d71ee[_0x51f8c9(0x13b)]][_0x51f8c9(0x143)]=agents[_0x5d71ee[_0x51f8c9(0x115)]][_0x51f8c9(0x143)],transfers[_0x5d71ee[_0x51f8c9(0x13b)]][_0x51f8c9(0x12c)]=utils['now'](),transfers[_0x5d71ee[_0x51f8c9(0x13b)]]['agentconnectAt']=utils[_0x51f8c9(0x121)](),transfers[_0x5d71ee[_0x51f8c9(0x13b)]][_0x51f8c9(0x13c)]=0x0,transfers[_0x5d71ee[_0x51f8c9(0x13b)]][_0x51f8c9(0x131)]=0x2);else _0x5d71ee[_0x51f8c9(0x115)]==_0x5d71ee[_0x51f8c9(0x13f)]&&(!_['isNil'](agents[_0x5d71ee[_0x51f8c9(0x15d)]])&&(utils[_0x51f8c9(0x15f)](util[_0x51f8c9(0x127)]('[%s][agents][attendedtransfer]\x20agent:%s\x20transferuniqueid:%s',_0x5d71ee[_0x51f8c9(0x139)],agents[_0x5d71ee['origtransfereruniqueid']][_0x51f8c9(0x150)],_0x5d71ee['secondtransfereruniqueid'])),agents[_0x5d71ee['origtransfereruniqueid']][_0x51f8c9(0x118)]=!![],agents[_0x5d71ee[_0x51f8c9(0x15d)]][_0x51f8c9(0x122)]=_0x51f8c9(0x113),agents[_0x5d71ee[_0x51f8c9(0x15d)]][_0x51f8c9(0x11b)]=_0x5d71ee[_0x51f8c9(0x145)],agents[_0x5d71ee[_0x51f8c9(0x15d)]][_0x51f8c9(0x14b)]=_0x5d71ee[_0x51f8c9(0x115)]),_0x5d71ee['transfertargetuniqueid']&&agents[_0x5d71ee[_0x51f8c9(0x126)]]&&(agents[_0x5d71ee[_0x51f8c9(0x126)]][_0x51f8c9(0x131)]=0x1,transfers[_0x5d71ee[_0x51f8c9(0x126)]]=_[_0x51f8c9(0x137)](agents[_0x5d71ee['transfertargetuniqueid']]),transfers[_0x5d71ee[_0x51f8c9(0x126)]][_0x51f8c9(0x14f)]=agents[_0x5d71ee[_0x51f8c9(0x15d)]][_0x51f8c9(0x14f)],transfers[_0x5d71ee[_0x51f8c9(0x126)]]['calleridname']=agents[_0x5d71ee['origtransfereruniqueid']][_0x51f8c9(0x143)],transfers[_0x5d71ee['transfertargetuniqueid']][_0x51f8c9(0x12c)]=utils['now'](),transfers[_0x5d71ee[_0x51f8c9(0x126)]][_0x51f8c9(0x15e)]=utils[_0x51f8c9(0x121)](),transfers[_0x5d71ee['transfertargetuniqueid']][_0x51f8c9(0x13c)]=0x0,transfers[_0x5d71ee[_0x51f8c9(0x126)]][_0x51f8c9(0x131)]=0x2));}catch(_0x4201c4){utils['error'](util[_0x51f8c9(0x127)]('[%s][agents][attendedtransfer]',_0x5d71ee[_0x51f8c9(0x139)]),_0x4201c4);}},exports['hangup']=function(_0x122d09){const _0x55c7b6=a1389_0x300a55;try{if(agents[_0x122d09[_0x55c7b6(0x139)]]&&agents[_0x122d09[_0x55c7b6(0x139)]][_0x55c7b6(0x15b)]==='timeout'){_0x122d09['cause']==='21'&&(agents[_0x122d09[_0x55c7b6(0x139)]][_0x55c7b6(0x15b)]=_0x55c7b6(0x12b),agents[_0x122d09[_0x55c7b6(0x139)]][_0x55c7b6(0x160)]=_0x55c7b6(0x12b));writeDB(agents[_0x122d09['uniqueid']]);const _0x1b6042=unanswered['indexOf'](_0x122d09[_0x55c7b6(0x139)]);_0x1b6042>-0x1&&unanswered['splice'](_0x1b6042,0x1);}transfers[_0x122d09[_0x55c7b6(0x139)]]&&(transfers[_0x122d09[_0x55c7b6(0x139)]][_0x55c7b6(0x11e)]=!![],transfers[_0x122d09[_0x55c7b6(0x139)]]['agentcompleteAt']=utils[_0x55c7b6(0x121)](),transfers[_0x122d09['uniqueid']]['talktime']=utils[_0x55c7b6(0x14e)](transfers[_0x122d09[_0x55c7b6(0x139)]]['agentcompleteAt'],transfers[_0x122d09[_0x55c7b6(0x139)]][_0x55c7b6(0x15e)]),transfers[_0x122d09[_0x55c7b6(0x139)]][_0x55c7b6(0x15b)]=_0x55c7b6(0x11a),transfers[_0x122d09['uniqueid']][_0x55c7b6(0x160)]=_0x55c7b6(0x12d),writeDB(transfers[_0x122d09['uniqueid']],!![])),agents[_0x122d09[_0x55c7b6(0x139)]]&&agents[_0x122d09[_0x55c7b6(0x139)]]['agentconnectAt']&&(agents[_0x122d09['uniqueid']][_0x55c7b6(0x11e)]=!![],agents[_0x122d09[_0x55c7b6(0x139)]]['agentcompleteAt']=utils[_0x55c7b6(0x121)](),agents[_0x122d09[_0x55c7b6(0x139)]]['talktime']=utils[_0x55c7b6(0x14e)](agents[_0x122d09[_0x55c7b6(0x139)]][_0x55c7b6(0x144)],agents[_0x122d09[_0x55c7b6(0x139)]]['agentconnectAt']),agents[_0x122d09[_0x55c7b6(0x139)]][_0x55c7b6(0x15b)]=agents[_0x122d09[_0x55c7b6(0x139)]][_0x55c7b6(0x118)]?_0x55c7b6(0x118):_0x55c7b6(0x11a),agents[_0x122d09[_0x55c7b6(0x139)]]['lastevent']=_0x55c7b6(0x12d),writeDB(agents[_0x122d09[_0x55c7b6(0x139)]]));}catch(_0x39bc99){utils[_0x55c7b6(0x149)](_0x39bc99['stack']);}}; \ No newline at end of file +const a1389_0x4758=['stack','agentcalled','getVoiceQueueByName','interface','acw','debug','[%s][agents][queuecallerabandon]','agentcalledAt','info','[%s][agents][writeDB]\x20channel:%s\x20queue:%s\x20agent:%s\x20interface:%s\x20calleridnum:%s\x20connectedlinenum:%s\x20lastevent:%s','isNil','lastevent','complete','queue','CreateVoiceAgentReport','agentcomplete','membername','then','request','transferexten','rejected','cause','acwtime','clone','[%s][agents][agentcomplete]\x20agent:%s\x20destuniqueid:%s\x20lastevent:complete','transfereruniqueid','secondtransfererexten','blind','calleridname','destuniqueid','calleridnum','origtransfererlinkedid','queuecallerabandon','indexOf','connectedlinename','agentringnoanswerAt','[%s][agents][attendedtransfer]\x20agent:%s\x20transferuniqueid:%s','includes','origtransfereruniqueid','util','secondtransfereruniqueid','transfertype','agent','answered_elsewhere','origtransfererexten','agentconnectAt','[%s][agents][agentringnoanswer]\x20agent:%s\x20destuniqueid:%s\x20lastevent:timeout','holdtime','forIn','agentconnect','[%s][agents][attendedtransfer]','type','abandoned','format','error','transfereeuniqueid','ATTENDED','agentacw','hangup','diffTime','[%s][agents][agentconnect]\x20agent:%s\x20destuniqueid:%s\x20lastevent:connect','[%s][agents][agentcalled]','agententerreason','extension','[%s][agents][agentcomplete]','lodash','answeredelsewheredestinationuniqueid','timeout','uniqueid','transfertargetuniqueid','[%s][agents][agentringnoanswer]','[%s][agents][queuecallerabandon]\x20agent:%s\x20destuniqueid:%s\x20lastevent:abandoned','splice','reason','agentcompleteAt','[%s][agents][blindtransfer]\x20agent:%s\x20transferuniqueid:%s','now','ringtime','talktime','transfer','push','attendedtransfer','acwTimeout','[%s][agents][agentconnect]','connectedlinenum','[%s][agents][blindtransfer]','agentringnoanswer','transferuniqueid'];(function(_0x2cdafb,_0x61ac36){const _0x4758ab=function(_0x1d54dc){while(--_0x1d54dc){_0x2cdafb['push'](_0x2cdafb['shift']());}};_0x4758ab(++_0x61ac36);}(a1389_0x4758,0x126));const a1389_0x1d54=function(_0x2cdafb,_0x61ac36){_0x2cdafb=_0x2cdafb-0x130;let _0x4758ab=a1389_0x4758[_0x2cdafb];return _0x4758ab;};const a1389_0x5acc32=a1389_0x1d54;'use strict';const _=require(a1389_0x5acc32(0x153)),util=require(a1389_0x5acc32(0x139)),utils=require('./utils'),agents={},transfers={},unanswered=[];function writeDB(_0x48e7da,_0x10cd35){const _0x59f900=a1389_0x5acc32;utils['info'](util[_0x59f900(0x147)](_0x59f900(0x173),_0x48e7da[_0x59f900(0x156)],_0x48e7da['channel'],_0x48e7da[_0x59f900(0x177)],_0x48e7da[_0x59f900(0x17a)],_0x48e7da[_0x59f900(0x16d)],_0x48e7da[_0x59f900(0x130)],_0x48e7da['connectedlinenum'],_0x48e7da[_0x59f900(0x175)])),_0x48e7da[_0x59f900(0x177)]?utils[_0x59f900(0x16c)](_0x48e7da[_0x59f900(0x177)])[_0x59f900(0x17b)](function(_0x451e9b){const _0x45dbf5=_0x59f900;_0x451e9b&&(_0x48e7da[_0x45dbf5(0x145)]=_0x451e9b[_0x45dbf5(0x145)],_0x48e7da[_0x45dbf5(0x14b)]=_0x48e7da['agentcomplete']?_0x451e9b[_0x45dbf5(0x16e)]:![],_0x48e7da[_0x45dbf5(0x180)]=_0x48e7da['agentacw']?_0x451e9b[_0x45dbf5(0x164)]:0x0),utils['request'](_0x45dbf5(0x178),_0x48e7da);}):utils[_0x59f900(0x17c)](_0x59f900(0x178),_0x48e7da),_0x10cd35?delete transfers[_0x48e7da[_0x59f900(0x156)]]:delete agents[_0x48e7da[_0x59f900(0x187)]];}exports[a1389_0x5acc32(0x16b)]=function(_0x56949c){const _0x437689=a1389_0x5acc32;try{utils[_0x437689(0x16f)](util[_0x437689(0x147)](_0x437689(0x14f),_0x56949c[_0x437689(0x156)]),_0x56949c),agents[_0x56949c[_0x437689(0x187)]]=_0x56949c,agents[_0x56949c[_0x437689(0x187)]][_0x437689(0x171)]=utils[_0x437689(0x15e)](),agents[_0x56949c[_0x437689(0x187)]][_0x437689(0x175)]='called',agents[_0x56949c[_0x437689(0x187)]]['connectedlinenum']=null,agents[_0x56949c[_0x437689(0x187)]][_0x437689(0x134)]=null,utils[_0x437689(0x172)](util[_0x437689(0x147)]('[%s][agents][agentcalled]\x20agent:%s\x20destuniqueid:%s\x20lastevent:called',_0x56949c[_0x437689(0x156)],agents[_0x56949c[_0x437689(0x187)]][_0x437689(0x17a)],_0x56949c[_0x437689(0x187)]));}catch(_0x1ebbc1){utils[_0x437689(0x148)](util[_0x437689(0x147)](_0x437689(0x14f),_0x56949c['uniqueid']),_0x1ebbc1);}},exports[a1389_0x5acc32(0x168)]=function(_0x4a6165){const _0x4d993f=a1389_0x5acc32;try{!_['isNil'](agents[_0x4a6165['destuniqueid']])&&(utils['debug'](util[_0x4d993f(0x147)](_0x4d993f(0x158),_0x4a6165[_0x4d993f(0x156)]),_0x4a6165),utils[_0x4d993f(0x172)](util[_0x4d993f(0x147)](_0x4d993f(0x140),_0x4a6165['uniqueid'],agents[_0x4a6165[_0x4d993f(0x187)]][_0x4d993f(0x17a)],_0x4a6165[_0x4d993f(0x187)])),agents[_0x4a6165[_0x4d993f(0x187)]][_0x4d993f(0x168)]=!![],agents[_0x4a6165[_0x4d993f(0x187)]][_0x4d993f(0x135)]=utils[_0x4d993f(0x15e)](),agents[_0x4a6165[_0x4d993f(0x187)]]['lastevent']=_0x4d993f(0x155),agents[_0x4a6165['destuniqueid']][_0x4d993f(0x15b)]='timeout',agents[_0x4a6165[_0x4d993f(0x187)]][_0x4d993f(0x141)]=_0x4a6165['ringtime']?parseInt(_0x4a6165[_0x4d993f(0x15f)])/0x3e8:0x0,agents[_0x4a6165[_0x4d993f(0x187)]]['talktime']=0x0,unanswered[_0x4d993f(0x162)](_0x4a6165['destuniqueid']));}catch(_0x9a3dad){utils[_0x4d993f(0x148)](util['format']('[%s][agents][agentringnoanswer]',_0x4a6165[_0x4d993f(0x156)]),_0x9a3dad);}},exports[a1389_0x5acc32(0x132)]=function(_0x1f286c){const _0x3fa228=a1389_0x5acc32;try{_[_0x3fa228(0x142)](agents,function(_0x3f17f1){const _0x2417c7=_0x3fa228;_0x3f17f1[_0x2417c7(0x156)]==_0x1f286c[_0x2417c7(0x156)]&&!_[_0x2417c7(0x137)](unanswered,_0x3f17f1['destuniqueid'])&&(utils[_0x2417c7(0x16f)](util[_0x2417c7(0x147)](_0x2417c7(0x170),_0x1f286c[_0x2417c7(0x156)]),_0x1f286c),utils[_0x2417c7(0x172)](util[_0x2417c7(0x147)](_0x2417c7(0x159),_0x1f286c[_0x2417c7(0x156)],_0x3f17f1[_0x2417c7(0x17a)],_0x3f17f1[_0x2417c7(0x187)])),_0x3f17f1[_0x2417c7(0x168)]=!![],_0x3f17f1[_0x2417c7(0x135)]=utils[_0x2417c7(0x15e)](),_0x3f17f1[_0x2417c7(0x175)]=_0x2417c7(0x146),_0x3f17f1['reason']='abandoned',_0x3f17f1['holdtime']=_0x1f286c[_0x2417c7(0x141)],_0x3f17f1['talktime']=0x0,writeDB(_0x3f17f1));});}catch(_0xe9cdc1){utils[_0x3fa228(0x148)](util['format'](_0x3fa228(0x170),_0x1f286c[_0x3fa228(0x156)]),_0xe9cdc1);}},exports[a1389_0x5acc32(0x143)]=function(_0x32ec0b){const _0x3f9c26=a1389_0x5acc32;try{agents[_0x32ec0b[_0x3f9c26(0x187)]]&&(utils[_0x3f9c26(0x16f)](util['format']('[%s][agents][agentconnect]',_0x32ec0b[_0x3f9c26(0x156)]),_0x32ec0b),utils[_0x3f9c26(0x172)](util[_0x3f9c26(0x147)](_0x3f9c26(0x14e),_0x32ec0b[_0x3f9c26(0x156)],agents[_0x32ec0b[_0x3f9c26(0x187)]][_0x3f9c26(0x17a)],_0x32ec0b[_0x3f9c26(0x187)])),agents[_0x32ec0b[_0x3f9c26(0x187)]]['agentconnectAt']=utils['now'](),agents[_0x32ec0b[_0x3f9c26(0x187)]][_0x3f9c26(0x166)]=_0x32ec0b['connectedlinenum'],agents[_0x32ec0b['destuniqueid']][_0x3f9c26(0x134)]=_0x32ec0b[_0x3f9c26(0x134)],agents[_0x32ec0b[_0x3f9c26(0x187)]][_0x3f9c26(0x141)]=_0x32ec0b['ringtime'],agents[_0x32ec0b['destuniqueid']]['lastevent']='connect',_[_0x3f9c26(0x142)](agents,function(_0x22307b){const _0x34560e=_0x3f9c26;_0x22307b[_0x34560e(0x187)]!=_0x32ec0b[_0x34560e(0x187)]&&_0x22307b[_0x34560e(0x156)]==_0x32ec0b[_0x34560e(0x156)]&&(_0x22307b[_0x34560e(0x160)]=0x0,_0x22307b[_0x34560e(0x141)]=_0x32ec0b['ringtime'],_0x22307b['agentringnoanswer']=!![],_0x22307b[_0x34560e(0x135)]=utils[_0x34560e(0x15e)](),_0x22307b[_0x34560e(0x175)]='answered_elsewhere',_0x22307b[_0x34560e(0x15b)]=_0x34560e(0x13d),_0x22307b[_0x34560e(0x154)]=_0x32ec0b[_0x34560e(0x187)],_0x22307b['answeredelsewheremembername']=_0x32ec0b[_0x34560e(0x17a)],writeDB(_0x22307b));}));}catch(_0xdfd4aa){utils[_0x3f9c26(0x148)](util[_0x3f9c26(0x147)](_0x3f9c26(0x165),_0x32ec0b['uniqueid']),_0xdfd4aa);}},exports[a1389_0x5acc32(0x179)]=function(_0x242050){const _0x3ac632=a1389_0x5acc32;try{!_['isNil'](agents[_0x242050[_0x3ac632(0x187)]])&&(utils['debug'](util[_0x3ac632(0x147)](_0x3ac632(0x152),_0x242050[_0x3ac632(0x156)]),_0x242050),utils[_0x3ac632(0x172)](util[_0x3ac632(0x147)](_0x3ac632(0x182),_0x242050[_0x3ac632(0x156)],agents[_0x242050[_0x3ac632(0x187)]]['membername'],_0x242050['destuniqueid'])),agents[_0x242050['destuniqueid']][_0x3ac632(0x179)]=!![],agents[_0x242050[_0x3ac632(0x187)]]['agentcompleteAt']=utils[_0x3ac632(0x15e)](),agents[_0x242050[_0x3ac632(0x187)]][_0x3ac632(0x160)]=utils[_0x3ac632(0x14d)](agents[_0x242050['destuniqueid']][_0x3ac632(0x15c)],agents[_0x242050[_0x3ac632(0x187)]][_0x3ac632(0x13f)]),agents[_0x242050[_0x3ac632(0x187)]][_0x3ac632(0x15b)]=_0x242050['reason'],agents[_0x242050['destuniqueid']]['lastevent']=_0x3ac632(0x176),writeDB(agents[_0x242050['destuniqueid']]));}catch(_0x13c158){utils[_0x3ac632(0x148)](util[_0x3ac632(0x147)](_0x3ac632(0x152),_0x242050[_0x3ac632(0x156)]),_0x13c158);}},exports['blindtransfer']=function(_0x136ee9){const _0x69ca6b=a1389_0x5acc32;try{!_[_0x69ca6b(0x174)](agents[_0x136ee9[_0x69ca6b(0x183)]])&&(utils['debug'](util[_0x69ca6b(0x147)]('[%s][agents][blindtransfer]',_0x136ee9[_0x69ca6b(0x156)]),_0x136ee9),utils[_0x69ca6b(0x172)](util[_0x69ca6b(0x147)](_0x69ca6b(0x15d),_0x136ee9[_0x69ca6b(0x156)],agents[_0x136ee9[_0x69ca6b(0x183)]][_0x69ca6b(0x17a)],agents[_0x136ee9[_0x69ca6b(0x183)]][_0x69ca6b(0x156)])),agents[_0x136ee9['transfereruniqueid']][_0x69ca6b(0x161)]=!![],agents[_0x136ee9[_0x69ca6b(0x183)]][_0x69ca6b(0x13b)]=_0x69ca6b(0x185),agents[_0x136ee9['transfereruniqueid']][_0x69ca6b(0x17d)]=_0x136ee9[_0x69ca6b(0x151)],agents[_0x136ee9[_0x69ca6b(0x183)]][_0x69ca6b(0x169)]=agents[_0x136ee9[_0x69ca6b(0x183)]]['uniqueid']);}catch(_0x2618a7){utils[_0x69ca6b(0x148)](util[_0x69ca6b(0x147)](_0x69ca6b(0x167),_0x136ee9[_0x69ca6b(0x156)]),_0x2618a7);}},exports[a1389_0x5acc32(0x163)]=function(_0x1540cd){const _0x2b11d2=a1389_0x5acc32;try{utils[_0x2b11d2(0x16f)](util[_0x2b11d2(0x147)](_0x2b11d2(0x144),_0x1540cd['uniqueid']),_0x1540cd);if(_0x1540cd[_0x2b11d2(0x138)]==_0x1540cd[_0x2b11d2(0x131)])!_['isNil'](agents[_0x1540cd[_0x2b11d2(0x13a)]])&&(utils[_0x2b11d2(0x172)](util['format'](_0x2b11d2(0x136),_0x1540cd[_0x2b11d2(0x156)],agents[_0x1540cd['secondtransfereruniqueid']][_0x2b11d2(0x17a)],_0x1540cd['origtransfereruniqueid'])),agents[_0x1540cd[_0x2b11d2(0x13a)]]['transfer']=!![],agents[_0x1540cd['secondtransfereruniqueid']]['transfertype']=_0x2b11d2(0x14a),agents[_0x1540cd[_0x2b11d2(0x13a)]][_0x2b11d2(0x17d)]=_0x1540cd[_0x2b11d2(0x13e)],agents[_0x1540cd[_0x2b11d2(0x13a)]][_0x2b11d2(0x169)]=_0x1540cd[_0x2b11d2(0x138)]),_0x1540cd[_0x2b11d2(0x149)]&&agents[_0x1540cd[_0x2b11d2(0x149)]]&&(agents[_0x1540cd['transfereeuniqueid']][_0x2b11d2(0x150)]=0x1,transfers[_0x1540cd[_0x2b11d2(0x149)]]=_[_0x2b11d2(0x181)](agents[_0x1540cd[_0x2b11d2(0x149)]]),transfers[_0x1540cd['transfereeuniqueid']][_0x2b11d2(0x130)]=agents[_0x1540cd[_0x2b11d2(0x13a)]][_0x2b11d2(0x130)],transfers[_0x1540cd['transfereeuniqueid']][_0x2b11d2(0x186)]=agents[_0x1540cd[_0x2b11d2(0x13a)]]['calleridname'],transfers[_0x1540cd[_0x2b11d2(0x149)]][_0x2b11d2(0x171)]=utils[_0x2b11d2(0x15e)](),transfers[_0x1540cd['transfereeuniqueid']][_0x2b11d2(0x13f)]=utils['now'](),transfers[_0x1540cd[_0x2b11d2(0x149)]][_0x2b11d2(0x141)]=0x0,transfers[_0x1540cd['transfereeuniqueid']][_0x2b11d2(0x150)]=0x2);else _0x1540cd[_0x2b11d2(0x13a)]==_0x1540cd['secondtransfererlinkedid']&&(!_[_0x2b11d2(0x174)](agents[_0x1540cd['origtransfereruniqueid']])&&(utils[_0x2b11d2(0x172)](util[_0x2b11d2(0x147)]('[%s][agents][attendedtransfer]\x20agent:%s\x20transferuniqueid:%s',_0x1540cd['uniqueid'],agents[_0x1540cd[_0x2b11d2(0x138)]]['membername'],_0x1540cd[_0x2b11d2(0x13a)])),agents[_0x1540cd['origtransfereruniqueid']]['transfer']=!![],agents[_0x1540cd['origtransfereruniqueid']]['transfertype']=_0x2b11d2(0x14a),agents[_0x1540cd[_0x2b11d2(0x138)]]['transferexten']=_0x1540cd[_0x2b11d2(0x184)],agents[_0x1540cd[_0x2b11d2(0x138)]][_0x2b11d2(0x169)]=_0x1540cd['secondtransfereruniqueid']),_0x1540cd[_0x2b11d2(0x157)]&&agents[_0x1540cd[_0x2b11d2(0x157)]]&&(agents[_0x1540cd[_0x2b11d2(0x157)]][_0x2b11d2(0x150)]=0x1,transfers[_0x1540cd[_0x2b11d2(0x157)]]=_[_0x2b11d2(0x181)](agents[_0x1540cd['transfertargetuniqueid']]),transfers[_0x1540cd[_0x2b11d2(0x157)]][_0x2b11d2(0x130)]=agents[_0x1540cd[_0x2b11d2(0x138)]][_0x2b11d2(0x130)],transfers[_0x1540cd[_0x2b11d2(0x157)]][_0x2b11d2(0x186)]=agents[_0x1540cd['origtransfereruniqueid']]['calleridname'],transfers[_0x1540cd['transfertargetuniqueid']][_0x2b11d2(0x171)]=utils[_0x2b11d2(0x15e)](),transfers[_0x1540cd[_0x2b11d2(0x157)]]['agentconnectAt']=utils[_0x2b11d2(0x15e)](),transfers[_0x1540cd[_0x2b11d2(0x157)]][_0x2b11d2(0x141)]=0x0,transfers[_0x1540cd[_0x2b11d2(0x157)]][_0x2b11d2(0x150)]=0x2));}catch(_0x51c2a2){utils[_0x2b11d2(0x148)](util[_0x2b11d2(0x147)]('[%s][agents][attendedtransfer]',_0x1540cd['uniqueid']),_0x51c2a2);}},exports[a1389_0x5acc32(0x14c)]=function(_0x57fcc1){const _0xe48968=a1389_0x5acc32;try{if(agents[_0x57fcc1['uniqueid']]&&agents[_0x57fcc1[_0xe48968(0x156)]][_0xe48968(0x15b)]==='timeout'){_0x57fcc1[_0xe48968(0x17f)]==='21'&&(agents[_0x57fcc1[_0xe48968(0x156)]][_0xe48968(0x15b)]='rejected',agents[_0x57fcc1[_0xe48968(0x156)]][_0xe48968(0x175)]=_0xe48968(0x17e));writeDB(agents[_0x57fcc1['uniqueid']]);const _0x4e183f=unanswered[_0xe48968(0x133)](_0x57fcc1[_0xe48968(0x156)]);_0x4e183f>-0x1&&unanswered[_0xe48968(0x15a)](_0x4e183f,0x1);}transfers[_0x57fcc1[_0xe48968(0x156)]]&&(transfers[_0x57fcc1[_0xe48968(0x156)]]['agentcomplete']=!![],transfers[_0x57fcc1['uniqueid']][_0xe48968(0x15c)]=utils[_0xe48968(0x15e)](),transfers[_0x57fcc1[_0xe48968(0x156)]][_0xe48968(0x160)]=utils[_0xe48968(0x14d)](transfers[_0x57fcc1['uniqueid']]['agentcompleteAt'],transfers[_0x57fcc1[_0xe48968(0x156)]]['agentconnectAt']),transfers[_0x57fcc1[_0xe48968(0x156)]][_0xe48968(0x15b)]='agent',transfers[_0x57fcc1['uniqueid']][_0xe48968(0x175)]=_0xe48968(0x176),writeDB(transfers[_0x57fcc1[_0xe48968(0x156)]],!![])),agents[_0x57fcc1[_0xe48968(0x156)]]&&agents[_0x57fcc1['uniqueid']][_0xe48968(0x13f)]&&(agents[_0x57fcc1[_0xe48968(0x156)]][_0xe48968(0x179)]=!![],agents[_0x57fcc1[_0xe48968(0x156)]][_0xe48968(0x15c)]=utils['now'](),agents[_0x57fcc1[_0xe48968(0x156)]][_0xe48968(0x160)]=utils[_0xe48968(0x14d)](agents[_0x57fcc1[_0xe48968(0x156)]][_0xe48968(0x15c)],agents[_0x57fcc1[_0xe48968(0x156)]][_0xe48968(0x13f)]),agents[_0x57fcc1[_0xe48968(0x156)]][_0xe48968(0x15b)]=agents[_0x57fcc1['uniqueid']]['transfer']?_0xe48968(0x161):_0xe48968(0x13c),agents[_0x57fcc1[_0xe48968(0x156)]]['lastevent']=_0xe48968(0x176),writeDB(agents[_0x57fcc1[_0xe48968(0x156)]]));}catch(_0x591d8d){utils[_0xe48968(0x148)](_0x591d8d[_0xe48968(0x16a)]);}}; \ No newline at end of file diff --git a/server/services/xdr/calls.controller.js b/server/services/xdr/calls.controller.js index 343cecf..09e90df 100644 --- a/server/services/xdr/calls.controller.js +++ b/server/services/xdr/calls.controller.js @@ -1 +1 @@ -const a1390_0x5098=['noop','CreateVoiceCallReport','exten','localtwolinkedid','isNil','UserId','cdr','xmd-callerid','variable','queue','debug','destinationchannel','[%s][calls][musiconholdstart]','ANSWERED','NO\x20ANSWER','calleridnum','format','[%s][calls][newexten]\x20application:%s\x20appdata:%s','[%s][calls][attendedtransfer]\x20localtwolinkedid:%s\x20destinationchannel:%s','includes','channel','musiconholdstop','xmcs-queue','linkedid','Queue','mohtime','cause-txt','connectedlinenum','callerid','uniqueid','userfield','lastapplication','[%s][calls][newchannel]','hangup','FAILED','gotoif','[%s][calls][hangup]','then','[%s][calls][varset]\x20variable:sipcallid\x20value:%s','transfereechannel','BUSY','_attended','[%s][calls][varset]\x20variable:xmd-cdrtype\x20value:%s','diffTime','toLowerCase','musiconholdstartAt','attendedtransfer','[%s][calls][varset]\x20variable:xmd-contactid\x20value:%s','secondtransfererchannel','origtransfererchannel','accountcode','[%s][calls][musiconholdstop]','[%s][calls][varset]','[%s][calls][varset]\x20variable:%s\x20value:%s','newstate','xmd-originatecalleridnum','execif','lastdata','transfer','xmd-callerid-preview','starttime','startsWith','appdata','disposition','outboundrouteid','OutgoingSpoolFailed','[%s][calls][newstate]','type','util','[%s][calls][newstate]\x20context:%s\x20channel:%s','billableseconds','endtime','sipcallid','value','DOCUMENTATION','application','[%s][calls][musiconholdstop]\x20mohtime:%s','channelstate','routeid','lastIndexOf','[%s][calls][varset]\x20variable:outboundrouteid\x20value:%s','./utils','[%s][calls][attendedtransfer]','transfertargetchannel','getUserByInternal','[%s][calls][newexten]','context','xmd-queue','[%s][calls][varset]\x20variable:xmd-originatecalleridnum\x20value:%s','systemanswertime','answertime','request','set','xmd-contactid','duration','destination','split','info','lodash','now','musiconholdstart','error','[%s][calls][newchannel]\x20context:%s\x20exten:%s'];(function(_0x4a9852,_0x3fbd09){const _0x509882=function(_0x2d7707){while(--_0x2d7707){_0x4a9852['push'](_0x4a9852['shift']());}};_0x509882(++_0x3fbd09);}(a1390_0x5098,0x112));const a1390_0x2d77=function(_0x4a9852,_0x3fbd09){_0x4a9852=_0x4a9852-0xff;let _0x509882=a1390_0x5098[_0x4a9852];return _0x509882;};const a1390_0x5896cd=a1390_0x2d77;'use strict';const _=require(a1390_0x5896cd(0x11d)),util=require(a1390_0x5896cd(0xff)),utils=require(a1390_0x5896cd(0x10c)),dispositions=[a1390_0x5896cd(0x130),a1390_0x5896cd(0x144),a1390_0x5896cd(0x144),a1390_0x5896cd(0x130),a1390_0x5896cd(0x130),'NO\x20ANSWER',a1390_0x5896cd(0x12f),a1390_0x5896cd(0x14a),a1390_0x5896cd(0x144),a1390_0x5896cd(0x144),a1390_0x5896cd(0x144)],channels={};function writeDB(_0x266a6f){const _0x4fd037=a1390_0x5896cd;utils[_0x4fd037(0x11c)](util[_0x4fd037(0x132)]('[%s][calls][writeDB]\x20channel:%s\x20queue:%s\x20agent:%s\x20interface:%s\x20calleridnum:%s\x20connectedlinenum:%s\x20lastevent:%s',_0x266a6f[_0x4fd037(0x13f)],_0x266a6f['channel'],_0x266a6f[_0x4fd037(0x12b)],_0x266a6f['membername'],_0x266a6f['interface'],_0x266a6f['calleridnum'],_0x266a6f[_0x4fd037(0x13d)],_0x266a6f['lastevent'])),_0x266a6f[_0x4fd037(0x154)]?utils[_0x4fd037(0x10f)](_0x266a6f[_0x4fd037(0x154)])[_0x4fd037(0x147)](function(_0x1ec7c5){const _0x1921d6=_0x4fd037;_0x1ec7c5&&(_0x266a6f[_0x1921d6(0x127)]=_0x1ec7c5['id']),utils['request'](_0x1921d6(0x123),_0x266a6f);}):utils[_0x4fd037(0x116)]('CreateVoiceCallReport',_0x266a6f),channels[_0x266a6f['uniqueid']]&&delete channels[_0x266a6f[_0x4fd037(0x13f)]];}exports['newchannel']=function(_0x439774){const _0x40cbee=a1390_0x5896cd;try{utils[_0x40cbee(0x12c)](util['format']('[%s][calls][newchannel]',_0x439774[_0x40cbee(0x13f)]),_0x439774),_0x439774['uniqueid']==_0x439774[_0x40cbee(0x139)]&&_0x439774['channel']!=_0x40cbee(0x163)&&(utils[_0x40cbee(0x11c)](util['format'](_0x40cbee(0x121),_0x439774['uniqueid'],_0x439774[_0x40cbee(0x111)],_0x439774[_0x40cbee(0x124)])),channels[_0x439774[_0x40cbee(0x13f)]]={'uniqueid':_0x439774[_0x40cbee(0x13f)],'accountcode':_0x439774[_0x40cbee(0x154)],'source':_0x439774[_0x40cbee(0x131)],'destination':_0x439774[_0x40cbee(0x124)],'destinationcontext':_0x439774['context'],'channel':_0x439774[_0x40cbee(0x136)],'starttime':utils[_0x40cbee(0x11e)](),'answertime':null,'systemanswertime':null,'mohtime':0x0,'disposition':_0x40cbee(0x130),'amaflags':_0x40cbee(0x105)});}catch(_0x3091d9){utils[_0x40cbee(0x120)](util['format'](_0x40cbee(0x142),_0x439774[_0x40cbee(0x13f)]),_0x3091d9);}},exports[a1390_0x5896cd(0x158)]=function(_0x904792){const _0x1c6f1e=a1390_0x5896cd;try{utils[_0x1c6f1e(0x12c)](util[_0x1c6f1e(0x132)]('[%s][calls][newstate]',_0x904792[_0x1c6f1e(0x13f)]),_0x904792);if(!_[_0x1c6f1e(0x126)](channels[_0x904792[_0x1c6f1e(0x13f)]])&&_0x904792[_0x1c6f1e(0x108)]==0x6)utils[_0x1c6f1e(0x11c)](util[_0x1c6f1e(0x132)](_0x1c6f1e(0x100),_0x904792['uniqueid'],_0x904792['context'],_0x904792[_0x1c6f1e(0x136)])),_['isNil'](channels[_0x904792['uniqueid']]['systemanswertime'])&&(channels[_0x904792[_0x1c6f1e(0x13f)]][_0x1c6f1e(0x114)]=utils[_0x1c6f1e(0x11e)]());else!_[_0x1c6f1e(0x126)](channels[_0x904792[_0x1c6f1e(0x139)]])&&_0x904792[_0x1c6f1e(0x108)]==0x6&&_0x904792[_0x1c6f1e(0x111)]!=_0x1c6f1e(0x15c)&&(utils[_0x1c6f1e(0x11c)](util['format']('[%s][calls][newstate]\x20linkedid:%s\x20context:%s\x20channel:%s',_0x904792[_0x1c6f1e(0x13f)],_0x904792[_0x1c6f1e(0x139)],_0x904792[_0x1c6f1e(0x111)],_0x904792[_0x1c6f1e(0x136)])),channels[_0x904792[_0x1c6f1e(0x139)]]['accountcode']=_0x904792[_0x1c6f1e(0x154)],channels[_0x904792[_0x1c6f1e(0x139)]][_0x1c6f1e(0x12d)]=_0x904792[_0x1c6f1e(0x136)],_[_0x1c6f1e(0x126)](channels[_0x904792[_0x1c6f1e(0x139)]]['answertime'])&&(channels[_0x904792['linkedid']][_0x1c6f1e(0x115)]=utils[_0x1c6f1e(0x11e)]()),channels[_0x904792['linkedid']][_0x1c6f1e(0x161)]=dispositions[_['toNumber'](_0x904792[_0x1c6f1e(0x108)])]||_0x1c6f1e(0x12f));}catch(_0xd70330){utils[_0x1c6f1e(0x120)](util[_0x1c6f1e(0x132)](_0x1c6f1e(0x164),_0x904792['uniqueid']),_0xd70330);}},exports[a1390_0x5896cd(0x143)]=function(_0x4cd00c){const _0x417d81=a1390_0x5896cd;try{!_[_0x417d81(0x126)](channels[_0x4cd00c[_0x417d81(0x13f)]])&&(utils[_0x417d81(0x12c)](util['format'](_0x417d81(0x146),_0x4cd00c[_0x417d81(0x13f)]),_0x4cd00c),_['isNil'](channels[_0x4cd00c[_0x417d81(0x13f)]][_0x417d81(0x13e)])&&(channels[_0x4cd00c[_0x417d81(0x13f)]][_0x417d81(0x13e)]=_0x4cd00c['calleridname']+'\x20<'+_0x4cd00c[_0x417d81(0x131)]+'>'),utils[_0x417d81(0x11c)](util['format']('[%s][calls][hangup]\x20callerid:%s\x20reason:%s',_0x4cd00c[_0x417d81(0x13f)],channels[_0x4cd00c[_0x417d81(0x13f)]][_0x417d81(0x13e)],_0x4cd00c[_0x417d81(0x13c)])),channels[_0x4cd00c['uniqueid']]['endtime']=utils[_0x417d81(0x11e)](),channels[_0x4cd00c['uniqueid']][_0x417d81(0x119)]=utils[_0x417d81(0x14d)](channels[_0x4cd00c['uniqueid']][_0x417d81(0x102)],channels[_0x4cd00c[_0x417d81(0x13f)]][_0x417d81(0x15e)]),channels[_0x4cd00c[_0x417d81(0x13f)]][_0x417d81(0x101)]=channels[_0x4cd00c['uniqueid']]['answertime']?utils[_0x417d81(0x14d)](channels[_0x4cd00c[_0x417d81(0x13f)]][_0x417d81(0x102)],channels[_0x4cd00c[_0x417d81(0x13f)]][_0x417d81(0x115)]):0x0,writeDB(channels[_0x4cd00c[_0x417d81(0x13f)]]));}catch(_0x52cd9e){utils[_0x417d81(0x120)](util[_0x417d81(0x132)](_0x417d81(0x146),_0x4cd00c[_0x417d81(0x13f)]),_0x52cd9e);}},exports[a1390_0x5896cd(0x150)]=function(_0x2dfbae){const _0x2595a2=a1390_0x5896cd;try{if(!_['isNil'](channels[_0x2dfbae[_0x2595a2(0x125)]])){utils[_0x2595a2(0x12c)](util[_0x2595a2(0x132)](_0x2595a2(0x10d),_0x2dfbae['uniqueid']),_0x2dfbae);if(channels[_0x2dfbae['localtwolinkedid']][_0x2595a2(0x136)]==_0x2dfbae[_0x2595a2(0x149)])utils['info'](util[_0x2595a2(0x132)](_0x2595a2(0x134),_0x2dfbae[_0x2595a2(0x13f)],_0x2dfbae[_0x2595a2(0x125)],_0x2dfbae[_0x2595a2(0x152)])),channels[_0x2dfbae['localtwolinkedid']][_0x2595a2(0x12d)]=_0x2dfbae[_0x2595a2(0x152)],channels[_0x2dfbae[_0x2595a2(0x125)]]['userfield']=_0x2595a2(0x14b);else(channels[_0x2dfbae['localtwolinkedid']][_0x2595a2(0x136)]=_0x2dfbae[_0x2595a2(0x10e)])&&(utils[_0x2595a2(0x11c)](util[_0x2595a2(0x132)](_0x2595a2(0x134),_0x2dfbae['uniqueid'],_0x2dfbae[_0x2595a2(0x125)],_0x2dfbae[_0x2595a2(0x153)])),channels[_0x2dfbae[_0x2595a2(0x125)]][_0x2595a2(0x12d)]=_0x2dfbae[_0x2595a2(0x153)],channels[_0x2dfbae['localtwolinkedid']][_0x2595a2(0x140)]=_0x2595a2(0x14b));}}catch(_0x32f94a){utils[_0x2595a2(0x120)](util[_0x2595a2(0x132)](_0x2595a2(0x10d),_0x2dfbae[_0x2595a2(0x13f)]),_0x32f94a);}},exports[a1390_0x5896cd(0x11f)]=function(_0x5c6463){const _0x375ce3=a1390_0x5896cd;try{!_[_0x375ce3(0x126)](channels[_0x5c6463['uniqueid']])&&(utils['debug'](util['format'](_0x375ce3(0x12e),_0x5c6463[_0x375ce3(0x13f)]),_0x5c6463),channels[_0x5c6463[_0x375ce3(0x13f)]][_0x375ce3(0x14f)]=utils[_0x375ce3(0x11e)](),utils[_0x375ce3(0x11c)](util['format']('[%s][calls][musiconholdstart]\x20musiconholdstartAt:%s',_0x5c6463[_0x375ce3(0x13f)],channels[_0x5c6463['uniqueid']][_0x375ce3(0x14f)])));}catch(_0x562311){utils['error'](util[_0x375ce3(0x132)](_0x375ce3(0x12e),_0x5c6463[_0x375ce3(0x13f)]),_0x562311);}},exports[a1390_0x5896cd(0x137)]=function(_0x1fbc14){const _0x51e90c=a1390_0x5896cd;try{!_['isNil'](channels[_0x1fbc14[_0x51e90c(0x13f)]])&&(utils['debug'](util[_0x51e90c(0x132)](_0x51e90c(0x155),_0x1fbc14['uniqueid']),_0x1fbc14),!_[_0x51e90c(0x126)](channels[_0x1fbc14[_0x51e90c(0x13f)]][_0x51e90c(0x14f)])&&(channels[_0x1fbc14['uniqueid']][_0x51e90c(0x13b)]+=utils[_0x51e90c(0x14d)](utils['now'](),channels[_0x1fbc14[_0x51e90c(0x13f)]][_0x51e90c(0x14f)]),utils[_0x51e90c(0x11c)](util[_0x51e90c(0x132)](_0x51e90c(0x107),_0x1fbc14[_0x51e90c(0x13f)],channels[_0x1fbc14[_0x51e90c(0x13f)]]['mohtime'])),delete channels[_0x1fbc14[_0x51e90c(0x13f)]][_0x51e90c(0x14f)]));}catch(_0x39a687){utils[_0x51e90c(0x120)](util['format']('[%s][calls][musiconholdstop]',_0x1fbc14[_0x51e90c(0x13f)]),_0x39a687);}},exports['varset']=function(_0x5d9a1e){const _0x5068e6=a1390_0x5896cd;try{!_[_0x5068e6(0x126)](channels[_0x5d9a1e[_0x5068e6(0x13f)]])&&(utils[_0x5068e6(0x12c)](util['format'](_0x5068e6(0x156),_0x5d9a1e[_0x5068e6(0x13f)]),_0x5d9a1e),!_[_0x5068e6(0x126)](_0x5d9a1e[_0x5068e6(0x12a)][_0x5068e6(0x159)])&&(utils[_0x5068e6(0x11c)](util[_0x5068e6(0x132)](_0x5068e6(0x113),_0x5d9a1e[_0x5068e6(0x13f)],_0x5d9a1e['value'])),channels[_0x5d9a1e[_0x5068e6(0x13f)]]['source']=_0x5d9a1e['value']),!_[_0x5068e6(0x126)](_0x5d9a1e[_0x5068e6(0x12a)]['xmd-phone'])&&(utils[_0x5068e6(0x11c)](util['format']('[%s][calls][varset]\x20variable:xmd-phone\x20value:%s',_0x5d9a1e[_0x5068e6(0x13f)],_0x5d9a1e[_0x5068e6(0x104)])),channels[_0x5d9a1e[_0x5068e6(0x13f)]][_0x5068e6(0x11a)]=_0x5d9a1e[_0x5068e6(0x104)],channels[_0x5d9a1e[_0x5068e6(0x13f)]]['callerid']='\x22'+_0x5d9a1e[_0x5068e6(0x104)]+'\x22\x20<'+_0x5d9a1e[_0x5068e6(0x104)]+'>'),(!_[_0x5068e6(0x126)](_0x5d9a1e[_0x5068e6(0x12a)]['xmd-callerid-preview'])||!_['isNil'](_0x5d9a1e[_0x5068e6(0x12a)][_0x5068e6(0x129)]))&&(utils['info'](util[_0x5068e6(0x132)](_0x5068e6(0x157),_0x5d9a1e[_0x5068e6(0x13f)],!_[_0x5068e6(0x126)](_0x5d9a1e[_0x5068e6(0x12a)]['xmd-callerid-preview'])?_0x5068e6(0x15d):'xmd-callerid',_0x5d9a1e[_0x5068e6(0x104)])),channels[_0x5d9a1e['uniqueid']]['callerid']=_0x5d9a1e[_0x5068e6(0x104)]),(!_['isNil'](_0x5d9a1e['variable'][_0x5068e6(0x112)])||!_[_0x5068e6(0x126)](_0x5d9a1e[_0x5068e6(0x12a)]['xmcs-queue']))&&(utils[_0x5068e6(0x11c)](util[_0x5068e6(0x132)](_0x5068e6(0x157),_0x5d9a1e['uniqueid'],!_[_0x5068e6(0x126)](_0x5d9a1e[_0x5068e6(0x12a)][_0x5068e6(0x112)])?_0x5068e6(0x112):_0x5068e6(0x138),_0x5d9a1e[_0x5068e6(0x104)])),channels[_0x5d9a1e[_0x5068e6(0x13f)]]['lastapplication']=_0x5068e6(0x13a),channels[_0x5d9a1e[_0x5068e6(0x13f)]][_0x5068e6(0x15b)]=_0x5d9a1e[_0x5068e6(0x104)],channels[_0x5d9a1e['uniqueid']][_0x5068e6(0x12b)]=!![]),!_['isNil'](_0x5d9a1e[_0x5068e6(0x12a)][_0x5068e6(0x118)])&&(utils['info'](util['format'](_0x5068e6(0x151),_0x5d9a1e[_0x5068e6(0x13f)],_0x5d9a1e[_0x5068e6(0x104)])),channels[_0x5d9a1e[_0x5068e6(0x13f)]]['ContactId']=_0x5d9a1e[_0x5068e6(0x104)]),!_[_0x5068e6(0x126)](_0x5d9a1e[_0x5068e6(0x12a)]['xmd-cdrtype'])&&(utils[_0x5068e6(0x11c)](util['format'](_0x5068e6(0x14c),_0x5d9a1e[_0x5068e6(0x13f)],_0x5d9a1e['value'])),channels[_0x5d9a1e[_0x5068e6(0x13f)]][_0x5068e6(0x165)]=_0x5d9a1e[_0x5068e6(0x104)]),!_[_0x5068e6(0x126)](_0x5d9a1e[_0x5068e6(0x12a)][_0x5068e6(0x162)])&&(utils[_0x5068e6(0x11c)](util[_0x5068e6(0x132)](_0x5068e6(0x10b),_0x5d9a1e[_0x5068e6(0x13f)],_0x5d9a1e[_0x5068e6(0x104)])),channels[_0x5d9a1e[_0x5068e6(0x13f)]][_0x5068e6(0x109)]=_0x5d9a1e[_0x5068e6(0x104)]),!_['isNil'](_0x5d9a1e[_0x5068e6(0x12a)][_0x5068e6(0x103)])&&(utils[_0x5068e6(0x11c)](util[_0x5068e6(0x132)](_0x5068e6(0x148),_0x5d9a1e[_0x5068e6(0x13f)],_0x5d9a1e[_0x5068e6(0x104)])),channels[_0x5d9a1e[_0x5068e6(0x13f)]]['sipcallid']=_0x5d9a1e[_0x5068e6(0x104)]));}catch(_0x2ea339){utils[_0x5068e6(0x120)](util[_0x5068e6(0x132)](_0x5068e6(0x156),_0x5d9a1e[_0x5068e6(0x13f)]),_0x2ea339);}},exports['newexten']=function(_0x45b1e9){const _0x1cf0c9=a1390_0x5896cd;try{if(!_[_0x1cf0c9(0x126)](channels[_0x45b1e9['uniqueid']])){utils[_0x1cf0c9(0x12c)](util[_0x1cf0c9(0x132)](_0x1cf0c9(0x110),_0x45b1e9[_0x1cf0c9(0x13f)]),_0x45b1e9),utils[_0x1cf0c9(0x11c)](util['format'](_0x1cf0c9(0x133),_0x45b1e9[_0x1cf0c9(0x13f)],_0x45b1e9[_0x1cf0c9(0x106)],_0x45b1e9['appdata']));if(_0x45b1e9['application'][_0x1cf0c9(0x14e)]()==_0x1cf0c9(0x117)&&_[_0x1cf0c9(0x15f)](_0x45b1e9[_0x1cf0c9(0x160)]['toLowerCase'](),_0x1cf0c9(0x128))){const _0x1c2c9c=_0x45b1e9[_0x1cf0c9(0x160)][_0x1cf0c9(0x11b)]('='),_0x511dc4=_0x1c2c9c[0x0]['substring'](_0x1c2c9c[0x0][_0x1cf0c9(0x10a)]('(')+0x1,_0x1c2c9c[0x0][_0x1cf0c9(0x10a)](')')),_0x1749ce=_0x1c2c9c[0x1];channels[_0x45b1e9['uniqueid']][_0x511dc4]=_0x1749ce;}!_[_0x1cf0c9(0x135)]([_0x1cf0c9(0x143),_0x1cf0c9(0x122),_0x1cf0c9(0x15a),_0x1cf0c9(0x117),_0x1cf0c9(0x145)],_0x45b1e9['application'][_0x1cf0c9(0x14e)]())&&(channels[_0x45b1e9[_0x1cf0c9(0x13f)]][_0x1cf0c9(0x141)]=_0x45b1e9[_0x1cf0c9(0x106)],channels[_0x45b1e9['uniqueid']]['lastdata']=_0x45b1e9['appdata']);}}catch(_0x3a7fd6){utils[_0x1cf0c9(0x120)](util['format'](_0x1cf0c9(0x110),_0x45b1e9[_0x1cf0c9(0x13f)]),_0x3a7fd6);}}; \ No newline at end of file +const a1390_0x341f=['info','util','appdata','exten','[%s][calls][hangup]','cdr','ANSWERED','xmd-queue','\x22\x20<','queue','diffTime','musiconholdstart','[%s][calls][varset]\x20variable:xmd-cdrtype\x20value:%s','[%s][calls][attendedtransfer]','[%s][calls][attendedtransfer]\x20localtwolinkedid:%s\x20destinationchannel:%s','sipcallid','answertime','lastevent','disposition','debug','xmd-callerid-preview','newexten','transfer','NO\x20ANSWER','source','substring','billableseconds','lastdata','[%s][calls][varset]\x20variable:sipcallid\x20value:%s','[%s][calls][varset]\x20variable:outboundrouteid\x20value:%s','./utils','type','musiconholdstartAt','variable','[%s][calls][varset]','systemanswertime','attendedtransfer','_attended','routeid','error','application','interface','[%s][calls][newstate]','startsWith','musiconholdstop','lastIndexOf','xmd-contactid','callerid','destinationchannel','[%s][calls][musiconholdstart]','transfereechannel','calleridnum','calleridname','FAILED','[%s][calls][varset]\x20variable:%s\x20value:%s','[%s][calls][musiconholdstop]','newchannel','lodash','endtime','xmd-callerid','lastapplication','[%s][calls][writeDB]\x20channel:%s\x20queue:%s\x20agent:%s\x20interface:%s\x20calleridnum:%s\x20connectedlinenum:%s\x20lastevent:%s','[%s][calls][newstate]\x20linkedid:%s\x20context:%s\x20channel:%s','[%s][calls][varset]\x20variable:xmd-originatecalleridnum\x20value:%s','xmd-phone','format','linkedid','channel','cause-txt','Queue','uniqueid','execif','localtwolinkedid','[%s][calls][newchannel]\x20context:%s\x20exten:%s','value','origtransfererchannel','getUserByInternal','now','accountcode','hangup','[%s][calls][varset]\x20variable:xmd-phone\x20value:%s','xmd-originatecalleridnum','[%s][calls][newexten]','duration','[%s][calls][newchannel]','[%s][calls][musiconholdstop]\x20mohtime:%s','mohtime','channelstate','BUSY','set','destination','toLowerCase','gotoif','secondtransfererchannel','connectedlinenum','outboundrouteid','request','split','varset','userfield','isNil','[%s][calls][newstate]\x20context:%s\x20channel:%s','noop','context'];(function(_0x2a5508,_0x2cfb3e){const _0x341ffa=function(_0x1e502d){while(--_0x1e502d){_0x2a5508['push'](_0x2a5508['shift']());}};_0x341ffa(++_0x2cfb3e);}(a1390_0x341f,0xe7));const a1390_0x1e50=function(_0x2a5508,_0x2cfb3e){_0x2a5508=_0x2a5508-0x129;let _0x341ffa=a1390_0x341f[_0x2a5508];return _0x341ffa;};const a1390_0x491e75=a1390_0x1e50;'use strict';const _=require(a1390_0x491e75(0x14b)),util=require(a1390_0x491e75(0x17b)),utils=require(a1390_0x491e75(0x130)),dispositions=[a1390_0x491e75(0x129),a1390_0x491e75(0x147),a1390_0x491e75(0x147),a1390_0x491e75(0x129),a1390_0x491e75(0x129),a1390_0x491e75(0x129),a1390_0x491e75(0x180),a1390_0x491e75(0x16a),'FAILED',a1390_0x491e75(0x147),a1390_0x491e75(0x147)],channels={};function writeDB(_0x207caf){const _0x4666d2=a1390_0x491e75;utils[_0x4666d2(0x17a)](util[_0x4666d2(0x153)](_0x4666d2(0x14f),_0x207caf['uniqueid'],_0x207caf[_0x4666d2(0x155)],_0x207caf['queue'],_0x207caf['membername'],_0x207caf[_0x4666d2(0x13b)],_0x207caf[_0x4666d2(0x145)],_0x207caf[_0x4666d2(0x170)],_0x207caf[_0x4666d2(0x18b)])),_0x207caf['accountcode']?utils[_0x4666d2(0x15e)](_0x207caf[_0x4666d2(0x160)])['then'](function(_0x37bfc5){const _0x201a6c=_0x4666d2;_0x37bfc5&&(_0x207caf['UserId']=_0x37bfc5['id']),utils[_0x201a6c(0x172)]('CreateVoiceCallReport',_0x207caf);}):utils['request']('CreateVoiceCallReport',_0x207caf),channels[_0x207caf[_0x4666d2(0x158)]]&&delete channels[_0x207caf[_0x4666d2(0x158)]];}exports[a1390_0x491e75(0x14a)]=function(_0x4b8492){const _0x3e999f=a1390_0x491e75;try{utils[_0x3e999f(0x18d)](util[_0x3e999f(0x153)](_0x3e999f(0x166),_0x4b8492['uniqueid']),_0x4b8492),_0x4b8492[_0x3e999f(0x158)]==_0x4b8492[_0x3e999f(0x154)]&&_0x4b8492[_0x3e999f(0x155)]!='OutgoingSpoolFailed'&&(utils['info'](util[_0x3e999f(0x153)](_0x3e999f(0x15b),_0x4b8492[_0x3e999f(0x158)],_0x4b8492[_0x3e999f(0x179)],_0x4b8492['exten'])),channels[_0x4b8492[_0x3e999f(0x158)]]={'uniqueid':_0x4b8492[_0x3e999f(0x158)],'accountcode':_0x4b8492[_0x3e999f(0x160)],'source':_0x4b8492['calleridnum'],'destination':_0x4b8492[_0x3e999f(0x17d)],'destinationcontext':_0x4b8492['context'],'channel':_0x4b8492[_0x3e999f(0x155)],'starttime':utils[_0x3e999f(0x15f)](),'answertime':null,'systemanswertime':null,'mohtime':0x0,'disposition':_0x3e999f(0x129),'amaflags':'DOCUMENTATION'});}catch(_0x5710bb){utils[_0x3e999f(0x139)](util['format'](_0x3e999f(0x166),_0x4b8492[_0x3e999f(0x158)]),_0x5710bb);}},exports['newstate']=function(_0x1581d1){const _0x5ddf65=a1390_0x491e75;try{utils['debug'](util[_0x5ddf65(0x153)]('[%s][calls][newstate]',_0x1581d1[_0x5ddf65(0x158)]),_0x1581d1);if(!_['isNil'](channels[_0x1581d1[_0x5ddf65(0x158)]])&&_0x1581d1[_0x5ddf65(0x169)]==0x6)utils[_0x5ddf65(0x17a)](util['format'](_0x5ddf65(0x177),_0x1581d1[_0x5ddf65(0x158)],_0x1581d1['context'],_0x1581d1['channel'])),_[_0x5ddf65(0x176)](channels[_0x1581d1[_0x5ddf65(0x158)]][_0x5ddf65(0x135)])&&(channels[_0x1581d1['uniqueid']][_0x5ddf65(0x135)]=utils['now']());else!_[_0x5ddf65(0x176)](channels[_0x1581d1[_0x5ddf65(0x154)]])&&_0x1581d1[_0x5ddf65(0x169)]==0x6&&_0x1581d1[_0x5ddf65(0x179)]!=_0x5ddf65(0x190)&&(utils[_0x5ddf65(0x17a)](util['format'](_0x5ddf65(0x150),_0x1581d1['uniqueid'],_0x1581d1[_0x5ddf65(0x154)],_0x1581d1[_0x5ddf65(0x179)],_0x1581d1['channel'])),channels[_0x1581d1['linkedid']]['accountcode']=_0x1581d1[_0x5ddf65(0x160)],channels[_0x1581d1[_0x5ddf65(0x154)]][_0x5ddf65(0x142)]=_0x1581d1['channel'],_[_0x5ddf65(0x176)](channels[_0x1581d1['linkedid']][_0x5ddf65(0x18a)])&&(channels[_0x1581d1['linkedid']][_0x5ddf65(0x18a)]=utils[_0x5ddf65(0x15f)]()),channels[_0x1581d1[_0x5ddf65(0x154)]][_0x5ddf65(0x18c)]=dispositions[_['toNumber'](_0x1581d1['channelstate'])]||_0x5ddf65(0x180));}catch(_0x4891b0){utils[_0x5ddf65(0x139)](util['format'](_0x5ddf65(0x13c),_0x1581d1['uniqueid']),_0x4891b0);}},exports[a1390_0x491e75(0x161)]=function(_0x32ab28){const _0x3f485c=a1390_0x491e75;try{!_['isNil'](channels[_0x32ab28['uniqueid']])&&(utils['debug'](util[_0x3f485c(0x153)]('[%s][calls][hangup]',_0x32ab28['uniqueid']),_0x32ab28),_[_0x3f485c(0x176)](channels[_0x32ab28[_0x3f485c(0x158)]][_0x3f485c(0x141)])&&(channels[_0x32ab28['uniqueid']][_0x3f485c(0x141)]=_0x32ab28[_0x3f485c(0x146)]+'\x20<'+_0x32ab28[_0x3f485c(0x145)]+'>'),utils[_0x3f485c(0x17a)](util[_0x3f485c(0x153)]('[%s][calls][hangup]\x20callerid:%s\x20reason:%s',_0x32ab28[_0x3f485c(0x158)],channels[_0x32ab28[_0x3f485c(0x158)]][_0x3f485c(0x141)],_0x32ab28[_0x3f485c(0x156)])),channels[_0x32ab28['uniqueid']][_0x3f485c(0x14c)]=utils[_0x3f485c(0x15f)](),channels[_0x32ab28[_0x3f485c(0x158)]][_0x3f485c(0x165)]=utils[_0x3f485c(0x184)](channels[_0x32ab28[_0x3f485c(0x158)]][_0x3f485c(0x14c)],channels[_0x32ab28['uniqueid']]['starttime']),channels[_0x32ab28['uniqueid']][_0x3f485c(0x12c)]=channels[_0x32ab28[_0x3f485c(0x158)]][_0x3f485c(0x18a)]?utils[_0x3f485c(0x184)](channels[_0x32ab28[_0x3f485c(0x158)]][_0x3f485c(0x14c)],channels[_0x32ab28[_0x3f485c(0x158)]][_0x3f485c(0x18a)]):0x0,writeDB(channels[_0x32ab28[_0x3f485c(0x158)]]));}catch(_0xe25e61){utils[_0x3f485c(0x139)](util['format'](_0x3f485c(0x17e),_0x32ab28[_0x3f485c(0x158)]),_0xe25e61);}},exports[a1390_0x491e75(0x136)]=function(_0x30968d){const _0x216501=a1390_0x491e75;try{if(!_[_0x216501(0x176)](channels[_0x30968d['localtwolinkedid']])){utils['debug'](util[_0x216501(0x153)]('[%s][calls][attendedtransfer]',_0x30968d[_0x216501(0x158)]),_0x30968d);if(channels[_0x30968d['localtwolinkedid']][_0x216501(0x155)]==_0x30968d[_0x216501(0x144)])utils[_0x216501(0x17a)](util[_0x216501(0x153)](_0x216501(0x188),_0x30968d[_0x216501(0x158)],_0x30968d[_0x216501(0x15a)],_0x30968d['secondtransfererchannel'])),channels[_0x30968d[_0x216501(0x15a)]]['destinationchannel']=_0x30968d[_0x216501(0x16f)],channels[_0x30968d[_0x216501(0x15a)]][_0x216501(0x175)]=_0x216501(0x137);else(channels[_0x30968d['localtwolinkedid']][_0x216501(0x155)]=_0x30968d['transfertargetchannel'])&&(utils['info'](util[_0x216501(0x153)](_0x216501(0x188),_0x30968d[_0x216501(0x158)],_0x30968d['localtwolinkedid'],_0x30968d[_0x216501(0x15d)])),channels[_0x30968d[_0x216501(0x15a)]][_0x216501(0x142)]=_0x30968d[_0x216501(0x15d)],channels[_0x30968d[_0x216501(0x15a)]]['userfield']=_0x216501(0x137));}}catch(_0x5c28b4){utils[_0x216501(0x139)](util['format'](_0x216501(0x187),_0x30968d['uniqueid']),_0x5c28b4);}},exports[a1390_0x491e75(0x185)]=function(_0x5796c1){const _0x4f5ef2=a1390_0x491e75;try{!_['isNil'](channels[_0x5796c1[_0x4f5ef2(0x158)]])&&(utils[_0x4f5ef2(0x18d)](util['format']('[%s][calls][musiconholdstart]',_0x5796c1[_0x4f5ef2(0x158)]),_0x5796c1),channels[_0x5796c1[_0x4f5ef2(0x158)]][_0x4f5ef2(0x132)]=utils['now'](),utils[_0x4f5ef2(0x17a)](util['format']('[%s][calls][musiconholdstart]\x20musiconholdstartAt:%s',_0x5796c1[_0x4f5ef2(0x158)],channels[_0x5796c1['uniqueid']][_0x4f5ef2(0x132)])));}catch(_0x18d5c6){utils[_0x4f5ef2(0x139)](util[_0x4f5ef2(0x153)](_0x4f5ef2(0x143),_0x5796c1[_0x4f5ef2(0x158)]),_0x18d5c6);}},exports[a1390_0x491e75(0x13e)]=function(_0x4d1468){const _0x4842fb=a1390_0x491e75;try{!_[_0x4842fb(0x176)](channels[_0x4d1468['uniqueid']])&&(utils[_0x4842fb(0x18d)](util['format']('[%s][calls][musiconholdstop]',_0x4d1468[_0x4842fb(0x158)]),_0x4d1468),!_[_0x4842fb(0x176)](channels[_0x4d1468['uniqueid']]['musiconholdstartAt'])&&(channels[_0x4d1468[_0x4842fb(0x158)]][_0x4842fb(0x168)]+=utils[_0x4842fb(0x184)](utils[_0x4842fb(0x15f)](),channels[_0x4d1468[_0x4842fb(0x158)]][_0x4842fb(0x132)]),utils[_0x4842fb(0x17a)](util[_0x4842fb(0x153)](_0x4842fb(0x167),_0x4d1468[_0x4842fb(0x158)],channels[_0x4d1468['uniqueid']]['mohtime'])),delete channels[_0x4d1468[_0x4842fb(0x158)]][_0x4842fb(0x132)]));}catch(_0x39939e){utils[_0x4842fb(0x139)](util[_0x4842fb(0x153)](_0x4842fb(0x149),_0x4d1468['uniqueid']),_0x39939e);}},exports[a1390_0x491e75(0x174)]=function(_0x4839fd){const _0x1b2c31=a1390_0x491e75;try{!_[_0x1b2c31(0x176)](channels[_0x4839fd[_0x1b2c31(0x158)]])&&(utils[_0x1b2c31(0x18d)](util[_0x1b2c31(0x153)](_0x1b2c31(0x134),_0x4839fd['uniqueid']),_0x4839fd),!_[_0x1b2c31(0x176)](_0x4839fd[_0x1b2c31(0x133)][_0x1b2c31(0x163)])&&(utils[_0x1b2c31(0x17a)](util[_0x1b2c31(0x153)](_0x1b2c31(0x151),_0x4839fd[_0x1b2c31(0x158)],_0x4839fd[_0x1b2c31(0x15c)])),channels[_0x4839fd[_0x1b2c31(0x158)]][_0x1b2c31(0x12a)]=_0x4839fd['value']),!_[_0x1b2c31(0x176)](_0x4839fd[_0x1b2c31(0x133)][_0x1b2c31(0x152)])&&(utils[_0x1b2c31(0x17a)](util[_0x1b2c31(0x153)](_0x1b2c31(0x162),_0x4839fd[_0x1b2c31(0x158)],_0x4839fd[_0x1b2c31(0x15c)])),channels[_0x4839fd[_0x1b2c31(0x158)]][_0x1b2c31(0x16c)]=_0x4839fd[_0x1b2c31(0x15c)],channels[_0x4839fd[_0x1b2c31(0x158)]][_0x1b2c31(0x141)]='\x22'+_0x4839fd['value']+_0x1b2c31(0x182)+_0x4839fd[_0x1b2c31(0x15c)]+'>'),(!_['isNil'](_0x4839fd[_0x1b2c31(0x133)][_0x1b2c31(0x18e)])||!_[_0x1b2c31(0x176)](_0x4839fd['variable'][_0x1b2c31(0x14d)]))&&(utils[_0x1b2c31(0x17a)](util[_0x1b2c31(0x153)](_0x1b2c31(0x148),_0x4839fd[_0x1b2c31(0x158)],!_[_0x1b2c31(0x176)](_0x4839fd[_0x1b2c31(0x133)]['xmd-callerid-preview'])?_0x1b2c31(0x18e):_0x1b2c31(0x14d),_0x4839fd[_0x1b2c31(0x15c)])),channels[_0x4839fd[_0x1b2c31(0x158)]]['callerid']=_0x4839fd['value']),(!_['isNil'](_0x4839fd[_0x1b2c31(0x133)][_0x1b2c31(0x181)])||!_[_0x1b2c31(0x176)](_0x4839fd['variable']['xmcs-queue']))&&(utils[_0x1b2c31(0x17a)](util[_0x1b2c31(0x153)]('[%s][calls][varset]\x20variable:%s\x20value:%s',_0x4839fd[_0x1b2c31(0x158)],!_[_0x1b2c31(0x176)](_0x4839fd[_0x1b2c31(0x133)][_0x1b2c31(0x181)])?_0x1b2c31(0x181):'xmcs-queue',_0x4839fd[_0x1b2c31(0x15c)])),channels[_0x4839fd['uniqueid']][_0x1b2c31(0x14e)]=_0x1b2c31(0x157),channels[_0x4839fd['uniqueid']]['lastdata']=_0x4839fd[_0x1b2c31(0x15c)],channels[_0x4839fd[_0x1b2c31(0x158)]][_0x1b2c31(0x183)]=!![]),!_[_0x1b2c31(0x176)](_0x4839fd['variable'][_0x1b2c31(0x140)])&&(utils[_0x1b2c31(0x17a)](util[_0x1b2c31(0x153)]('[%s][calls][varset]\x20variable:xmd-contactid\x20value:%s',_0x4839fd[_0x1b2c31(0x158)],_0x4839fd[_0x1b2c31(0x15c)])),channels[_0x4839fd['uniqueid']]['ContactId']=_0x4839fd[_0x1b2c31(0x15c)]),!_[_0x1b2c31(0x176)](_0x4839fd[_0x1b2c31(0x133)]['xmd-cdrtype'])&&(utils[_0x1b2c31(0x17a)](util['format'](_0x1b2c31(0x186),_0x4839fd['uniqueid'],_0x4839fd[_0x1b2c31(0x15c)])),channels[_0x4839fd[_0x1b2c31(0x158)]][_0x1b2c31(0x131)]=_0x4839fd['value']),!_[_0x1b2c31(0x176)](_0x4839fd[_0x1b2c31(0x133)][_0x1b2c31(0x171)])&&(utils[_0x1b2c31(0x17a)](util[_0x1b2c31(0x153)](_0x1b2c31(0x12f),_0x4839fd['uniqueid'],_0x4839fd[_0x1b2c31(0x15c)])),channels[_0x4839fd[_0x1b2c31(0x158)]][_0x1b2c31(0x138)]=_0x4839fd[_0x1b2c31(0x15c)]),!_[_0x1b2c31(0x176)](_0x4839fd[_0x1b2c31(0x133)][_0x1b2c31(0x189)])&&(utils['info'](util[_0x1b2c31(0x153)](_0x1b2c31(0x12e),_0x4839fd['uniqueid'],_0x4839fd[_0x1b2c31(0x15c)])),channels[_0x4839fd['uniqueid']][_0x1b2c31(0x189)]=_0x4839fd['value']));}catch(_0x1fc32f){utils[_0x1b2c31(0x139)](util[_0x1b2c31(0x153)](_0x1b2c31(0x134),_0x4839fd['uniqueid']),_0x1fc32f);}},exports[a1390_0x491e75(0x18f)]=function(_0x4ee93c){const _0x4039ae=a1390_0x491e75;try{if(!_[_0x4039ae(0x176)](channels[_0x4ee93c[_0x4039ae(0x158)]])){utils[_0x4039ae(0x18d)](util[_0x4039ae(0x153)](_0x4039ae(0x164),_0x4ee93c[_0x4039ae(0x158)]),_0x4ee93c),utils[_0x4039ae(0x17a)](util[_0x4039ae(0x153)]('[%s][calls][newexten]\x20application:%s\x20appdata:%s',_0x4ee93c[_0x4039ae(0x158)],_0x4ee93c[_0x4039ae(0x13a)],_0x4ee93c[_0x4039ae(0x17c)]));if(_0x4ee93c['application'][_0x4039ae(0x16d)]()==_0x4039ae(0x16b)&&_[_0x4039ae(0x13d)](_0x4ee93c[_0x4039ae(0x17c)][_0x4039ae(0x16d)](),_0x4039ae(0x17f))){const _0x5729fd=_0x4ee93c[_0x4039ae(0x17c)][_0x4039ae(0x173)]('='),_0x29c2ff=_0x5729fd[0x0][_0x4039ae(0x12b)](_0x5729fd[0x0][_0x4039ae(0x13f)]('(')+0x1,_0x5729fd[0x0][_0x4039ae(0x13f)](')')),_0x57bd60=_0x5729fd[0x1];channels[_0x4ee93c[_0x4039ae(0x158)]][_0x29c2ff]=_0x57bd60;}!_['includes']([_0x4039ae(0x161),_0x4039ae(0x178),_0x4039ae(0x159),_0x4039ae(0x16b),_0x4039ae(0x16e)],_0x4ee93c['application']['toLowerCase']())&&(channels[_0x4ee93c[_0x4039ae(0x158)]][_0x4039ae(0x14e)]=_0x4ee93c['application'],channels[_0x4ee93c[_0x4039ae(0x158)]][_0x4039ae(0x12d)]=_0x4ee93c[_0x4039ae(0x17c)]);}}catch(_0x3d9c95){utils['error'](util[_0x4039ae(0x153)]('[%s][calls][newexten]',_0x4ee93c[_0x4039ae(0x158)]),_0x3d9c95);}}; \ No newline at end of file diff --git a/server/services/xdr/core.controller.js b/server/services/xdr/core.controller.js index 7832439..bd0a003 100644 --- a/server/services/xdr/core.controller.js +++ b/server/services/xdr/core.controller.js @@ -1 +1 @@ -const a1391_0x4603=['error','[core]\x20connected','connect','[core]\x20close','[core]\x20fullybooted','info','shutdown','./utils','[core]\x20shutdown','managerevent','fullybooted'];(function(_0x1e2a6b,_0x35f266){const _0x460352=function(_0x5bc505){while(--_0x5bc505){_0x1e2a6b['push'](_0x1e2a6b['shift']());}};_0x460352(++_0x35f266);}(a1391_0x4603,0x115));const a1391_0x5bc5=function(_0x1e2a6b,_0x35f266){_0x1e2a6b=_0x1e2a6b-0x92;let _0x460352=a1391_0x4603[_0x1e2a6b];return _0x460352;};const a1391_0x573291=a1391_0x5bc5;'use strict';const utils=require(a1391_0x573291(0x97));exports[a1391_0x573291(0x92)]=function(){const _0x394977=a1391_0x573291;utils[_0x394977(0x95)](_0x394977(0x9c));},exports[a1391_0x573291(0x96)]=function(){const _0xe0f4dd=a1391_0x573291;utils[_0xe0f4dd(0x95)](_0xe0f4dd(0x98));},exports[a1391_0x573291(0x9a)]=function(){const _0x464be9=a1391_0x573291;utils['info'](_0x464be9(0x94));},exports[a1391_0x573291(0x9b)]=function(_0x4c2d69){const _0x41052e=a1391_0x573291;utils[_0x41052e(0x9b)]('[core]\x20error',_0x4c2d69);},exports['close']=function(){const _0x357836=a1391_0x573291;utils[_0x357836(0x95)](_0x357836(0x93));},exports[a1391_0x573291(0x99)]=function(){}; \ No newline at end of file +const a1391_0x1725=['[core]\x20connected','[core]\x20shutdown','./utils','[core]\x20error','fullybooted','managerevent','[core]\x20fullybooted','error','info'];(function(_0x38a3d1,_0x4f48ed){const _0x1725ee=function(_0x24d8a7){while(--_0x24d8a7){_0x38a3d1['push'](_0x38a3d1['shift']());}};_0x1725ee(++_0x4f48ed);}(a1391_0x1725,0x152));const a1391_0x24d8=function(_0x38a3d1,_0x4f48ed){_0x38a3d1=_0x38a3d1-0x110;let _0x1725ee=a1391_0x1725[_0x38a3d1];return _0x1725ee;};const a1391_0x1c86d3=a1391_0x24d8;'use strict';const utils=require(a1391_0x1c86d3(0x116));exports['connect']=function(){const _0x294a70=a1391_0x1c86d3;utils[_0x294a70(0x113)](_0x294a70(0x114));},exports['shutdown']=function(){const _0x484bc5=a1391_0x1c86d3;utils[_0x484bc5(0x113)](_0x484bc5(0x115));},exports[a1391_0x1c86d3(0x118)]=function(){const _0x2cefc5=a1391_0x1c86d3;utils['info'](_0x2cefc5(0x111));},exports[a1391_0x1c86d3(0x112)]=function(_0x41adbc){const _0x3936f1=a1391_0x1c86d3;utils['error'](_0x3936f1(0x117),_0x41adbc);},exports['close']=function(){const _0x259f74=a1391_0x1c86d3;utils[_0x259f74(0x113)]('[core]\x20close');},exports[a1391_0x1c86d3(0x110)]=function(){}; \ No newline at end of file diff --git a/server/services/xdr/dials.controller.js b/server/services/xdr/dials.controller.js index a569375..4d1c9a3 100644 --- a/server/services/xdr/dials.controller.js +++ b/server/services/xdr/dials.controller.js @@ -1 +1 @@ -const a1392_0x4e8a=['[%s][dials][newexten]','[%s][dials][varset]\x20variable:outboundrouteid\x20value:%s','starttime','diffTime','value','ANSWER','complete','uniqueid','error','cause-txt','endtime','debug','dialbegin','answertime','lodash','[%s][dials][varset]','hangup','assign','duration','toLowerCase','channel','called','split','connect','appdata','dialstatus','variable','cdr(routeid)','newexten','[%s][dials][dialend]','isNil','[%s][dials][dialbegin]','application','set','info','[%s][dials][dialend]\x20dialstatus:%s\x20answertime:%s\x20lastevent:connect','util','outboundrouteid','calleridname','[%s][dials][hangup]','now','holdtime','format'];(function(_0x32e0c0,_0x5ad685){const _0x4e8ae1=function(_0x5e86d7){while(--_0x5e86d7){_0x32e0c0['push'](_0x32e0c0['shift']());}};_0x4e8ae1(++_0x5ad685);}(a1392_0x4e8a,0x64));const a1392_0x5e86=function(_0x32e0c0,_0x5ad685){_0x32e0c0=_0x32e0c0-0xab;let _0x4e8ae1=a1392_0x4e8a[_0x32e0c0];return _0x4e8ae1;};const a1392_0x4ccc8a=a1392_0x5e86;'use strict';const _=require(a1392_0x4ccc8a(0xab)),util=require(a1392_0x4ccc8a(0xc1)),utils=require('./utils'),dials={};function writeDB(_0x1dca74){const _0x8cde3d=a1392_0x4ccc8a;utils[_0x8cde3d(0xbf)](util['format']('[%s][dials][writeDB]\x20channel:%s\x20dialstring:%s\x20calleridnum:%s\x20connectedlinenum:%s\x20dialstatus:%s',_0x1dca74[_0x8cde3d(0xcf)],_0x1dca74[_0x8cde3d(0xb1)],_0x1dca74['dialstring'],_0x1dca74['calleridnum'],_0x1dca74['connectedlinenum'],_0x1dca74[_0x8cde3d(0xb6)])),utils['request']('CreateVoiceDialReport',_0x1dca74),delete dials[_0x1dca74['uniqueid']];}exports[a1392_0x4ccc8a(0xb9)]=function(_0x23c8e4){const _0x5e51fa=a1392_0x4ccc8a;try{utils[_0x5e51fa(0xd3)](util[_0x5e51fa(0xc7)](_0x5e51fa(0xc8),_0x23c8e4[_0x5e51fa(0xcf)]),_0x23c8e4),utils['info'](util[_0x5e51fa(0xc7)]('[%s][dials][newexten]\x20application:%s\x20appdata:%s',_0x23c8e4[_0x5e51fa(0xcf)],_0x23c8e4[_0x5e51fa(0xbd)],_0x23c8e4[_0x5e51fa(0xb5)]));if(_0x23c8e4['application'][_0x5e51fa(0xb0)]()==_0x5e51fa(0xbe)&&_['startsWith'](_0x23c8e4[_0x5e51fa(0xb5)]['toLowerCase'](),_0x5e51fa(0xb8))){const _0x128a50=_0x23c8e4[_0x5e51fa(0xb5)][_0x5e51fa(0xb3)]('=');dials[_0x23c8e4[_0x5e51fa(0xcf)]]={'routeId':_0x128a50[0x1]};}}catch(_0x176eb8){utils['error'](util[_0x5e51fa(0xc7)](_0x5e51fa(0xc8),_0x23c8e4[_0x5e51fa(0xcf)]),_0x176eb8);}},exports['varset']=function(_0x31c169){const _0x39e321=a1392_0x4ccc8a;try{utils['debug'](util['format'](_0x39e321(0xac),_0x31c169[_0x39e321(0xcf)]),_0x31c169),!_['isNil'](_0x31c169[_0x39e321(0xb7)][_0x39e321(0xc2)])&&(utils[_0x39e321(0xbf)](util[_0x39e321(0xc7)](_0x39e321(0xc9),_0x31c169[_0x39e321(0xcf)],_0x31c169[_0x39e321(0xcc)])),dials[_0x31c169[_0x39e321(0xcf)]]={'routeId':_0x31c169[_0x39e321(0xcc)]});}catch(_0x16ac54){utils[_0x39e321(0xd0)](util[_0x39e321(0xc7)](_0x39e321(0xac),_0x31c169[_0x39e321(0xcf)]),_0x16ac54);}},exports[a1392_0x4ccc8a(0xd4)]=function(_0x1a5a48){const _0x56033b=a1392_0x4ccc8a;try{!_[_0x56033b(0xbb)](dials[_0x1a5a48[_0x56033b(0xcf)]])&&(utils[_0x56033b(0xd3)](util[_0x56033b(0xc7)](_0x56033b(0xbc),_0x1a5a48[_0x56033b(0xcf)]),_0x1a5a48),dials[_0x1a5a48[_0x56033b(0xcf)]]=_[_0x56033b(0xae)](dials[_0x1a5a48[_0x56033b(0xcf)]],_0x1a5a48),dials[_0x1a5a48[_0x56033b(0xcf)]][_0x56033b(0xca)]=utils[_0x56033b(0xc5)](),dials[_0x1a5a48[_0x56033b(0xcf)]]['lastevent']=_0x56033b(0xb2),utils[_0x56033b(0xbf)](util['format']('[%s][dials][hangup]\x20starttime:%s\x20lastevent:called',_0x1a5a48[_0x56033b(0xcf)],dials[_0x1a5a48['uniqueid']]['starttime'])));}catch(_0x3c0efc){utils[_0x56033b(0xd0)](util[_0x56033b(0xc7)](_0x56033b(0xbc),_0x1a5a48[_0x56033b(0xcf)]),_0x3c0efc);}},exports['dialend']=function(_0x32c4c9){const _0x1b740d=a1392_0x4ccc8a;try{!_['isNil'](dials[_0x32c4c9[_0x1b740d(0xcf)]])&&(utils[_0x1b740d(0xd3)](util['format'](_0x1b740d(0xba),_0x32c4c9[_0x1b740d(0xcf)]),_0x32c4c9),dials[_0x32c4c9[_0x1b740d(0xcf)]]['dialstatus']=_0x32c4c9[_0x1b740d(0xb6)],_0x32c4c9[_0x1b740d(0xb6)]==_0x1b740d(0xcd)?(dials[_0x32c4c9[_0x1b740d(0xcf)]]=_[_0x1b740d(0xae)](dials[_0x32c4c9[_0x1b740d(0xcf)]],_0x32c4c9),dials[_0x32c4c9[_0x1b740d(0xcf)]][_0x1b740d(0xd5)]=utils[_0x1b740d(0xc5)](),dials[_0x32c4c9[_0x1b740d(0xcf)]]['lastevent']=_0x1b740d(0xb4),utils[_0x1b740d(0xbf)](util[_0x1b740d(0xc7)](_0x1b740d(0xc0),_0x32c4c9[_0x1b740d(0xcf)],_0x32c4c9[_0x1b740d(0xb6)],dials[_0x32c4c9[_0x1b740d(0xcf)]][_0x1b740d(0xd5)]))):utils[_0x1b740d(0xbf)](util[_0x1b740d(0xc7)]('[%s][dials][dialend]\x20dialstatus:%s',_0x32c4c9[_0x1b740d(0xcf)],_0x32c4c9[_0x1b740d(0xb6)])));}catch(_0x4ef036){utils[_0x1b740d(0xd0)](util['format'](_0x1b740d(0xba),_0x32c4c9[_0x1b740d(0xcf)]),_0x4ef036);}},exports[a1392_0x4ccc8a(0xad)]=function(_0x598fab){const _0x139d7a=a1392_0x4ccc8a;try{!_[_0x139d7a(0xbb)](dials[_0x598fab[_0x139d7a(0xcf)]])&&(utils['debug'](util[_0x139d7a(0xc7)](_0x139d7a(0xc4),_0x598fab['uniqueid']),_0x598fab),utils[_0x139d7a(0xbf)](util[_0x139d7a(0xc7)]('[%s][dials][hangup]\x20calleridnum:%s\x20calleridname:%s\x20lastevent:complete\x20reason:%s',_0x598fab[_0x139d7a(0xcf)],_0x598fab['calleridnum'],_0x598fab[_0x139d7a(0xc3)],_0x598fab[_0x139d7a(0xd1)])),dials[_0x598fab['uniqueid']]=_[_0x139d7a(0xae)](dials[_0x598fab[_0x139d7a(0xcf)]],{'endtime':utils[_0x139d7a(0xc5)](),'lastevent':_0x139d7a(0xce)}),dials[_0x598fab['uniqueid']][_0x139d7a(0xaf)]=utils[_0x139d7a(0xcb)](dials[_0x598fab[_0x139d7a(0xcf)]][_0x139d7a(0xd2)],dials[_0x598fab[_0x139d7a(0xcf)]]['starttime']),dials[_0x598fab[_0x139d7a(0xcf)]][_0x139d7a(0xc6)]=utils[_0x139d7a(0xcb)](dials[_0x598fab['uniqueid']]['answertime']||dials[_0x598fab[_0x139d7a(0xcf)]]['endtime'],dials[_0x598fab[_0x139d7a(0xcf)]]['starttime']),dials[_0x598fab[_0x139d7a(0xcf)]]['billableseconds']=dials[_0x598fab[_0x139d7a(0xcf)]][_0x139d7a(0xd5)]?utils[_0x139d7a(0xcb)](dials[_0x598fab[_0x139d7a(0xcf)]][_0x139d7a(0xd2)],dials[_0x598fab[_0x139d7a(0xcf)]]['answertime']):0x0,writeDB(dials[_0x598fab[_0x139d7a(0xcf)]]));}catch(_0x3d04ae){utils[_0x139d7a(0xd0)](util[_0x139d7a(0xc7)](_0x139d7a(0xc4),_0x598fab[_0x139d7a(0xcf)]),_0x3d04ae);}}; \ No newline at end of file +const a1392_0x3073=['[%s][dials][hangup]','calleridnum','connectedlinenum','split','billableseconds','[%s][dials][newexten]\x20application:%s\x20appdata:%s','[%s][dials][dialend]','[%s][dials][varset]\x20variable:outboundrouteid\x20value:%s','duration','error','./utils','CreateVoiceDialReport','dialstatus','[%s][dials][varset]','hangup','application','cause-txt','calleridname','newexten','[%s][dials][dialbegin]','ANSWER','variable','holdtime','appdata','isNil','complete','channel','[%s][dials][hangup]\x20calleridnum:%s\x20calleridname:%s\x20lastevent:complete\x20reason:%s','[%s][dials][writeDB]\x20channel:%s\x20dialstring:%s\x20calleridnum:%s\x20connectedlinenum:%s\x20dialstatus:%s','format','lodash','assign','toLowerCase','[%s][dials][newexten]','outboundrouteid','uniqueid','starttime','endtime','debug','connect','called','diffTime','now','lastevent','startsWith','value','dialstring','answertime','[%s][dials][dialend]\x20dialstatus:%s','dialbegin','info'];(function(_0x70065e,_0x97971b){const _0x3073db=function(_0x4d8528){while(--_0x4d8528){_0x70065e['push'](_0x70065e['shift']());}};_0x3073db(++_0x97971b);}(a1392_0x3073,0x1c2));const a1392_0x4d85=function(_0x70065e,_0x97971b){_0x70065e=_0x70065e-0x104;let _0x3073db=a1392_0x3073[_0x70065e];return _0x3073db;};const a1392_0x51172d=a1392_0x4d85;'use strict';const _=require(a1392_0x51172d(0x12b)),util=require('util'),utils=require(a1392_0x51172d(0x117)),dials={};function writeDB(_0x2eef6f){const _0x14cb1e=a1392_0x51172d;utils['info'](util['format'](_0x14cb1e(0x129),_0x2eef6f[_0x14cb1e(0x130)],_0x2eef6f[_0x14cb1e(0x127)],_0x2eef6f[_0x14cb1e(0x108)],_0x2eef6f['calleridnum'],_0x2eef6f[_0x14cb1e(0x10f)],_0x2eef6f[_0x14cb1e(0x119)])),utils['request'](_0x14cb1e(0x118),_0x2eef6f),delete dials[_0x2eef6f[_0x14cb1e(0x130)]];}exports[a1392_0x51172d(0x11f)]=function(_0x3ba38d){const _0x49183a=a1392_0x51172d;try{utils[_0x49183a(0x133)](util[_0x49183a(0x12a)](_0x49183a(0x12e),_0x3ba38d['uniqueid']),_0x3ba38d),utils[_0x49183a(0x10c)](util[_0x49183a(0x12a)](_0x49183a(0x112),_0x3ba38d['uniqueid'],_0x3ba38d['application'],_0x3ba38d[_0x49183a(0x124)]));if(_0x3ba38d[_0x49183a(0x11c)][_0x49183a(0x12d)]()=='set'&&_[_0x49183a(0x106)](_0x3ba38d[_0x49183a(0x124)][_0x49183a(0x12d)](),'cdr(routeid)')){const _0x2b40d1=_0x3ba38d[_0x49183a(0x124)][_0x49183a(0x110)]('=');dials[_0x3ba38d[_0x49183a(0x130)]]={'routeId':_0x2b40d1[0x1]};}}catch(_0x2d9715){utils[_0x49183a(0x116)](util[_0x49183a(0x12a)](_0x49183a(0x12e),_0x3ba38d[_0x49183a(0x130)]),_0x2d9715);}},exports['varset']=function(_0x43af2b){const _0x83da45=a1392_0x51172d;try{utils[_0x83da45(0x133)](util[_0x83da45(0x12a)](_0x83da45(0x11a),_0x43af2b['uniqueid']),_0x43af2b),!_['isNil'](_0x43af2b[_0x83da45(0x122)][_0x83da45(0x12f)])&&(utils[_0x83da45(0x10c)](util[_0x83da45(0x12a)](_0x83da45(0x114),_0x43af2b['uniqueid'],_0x43af2b[_0x83da45(0x107)])),dials[_0x43af2b[_0x83da45(0x130)]]={'routeId':_0x43af2b[_0x83da45(0x107)]});}catch(_0x577c52){utils[_0x83da45(0x116)](util[_0x83da45(0x12a)](_0x83da45(0x11a),_0x43af2b[_0x83da45(0x130)]),_0x577c52);}},exports[a1392_0x51172d(0x10b)]=function(_0x2ee044){const _0x5c33f5=a1392_0x51172d;try{!_[_0x5c33f5(0x125)](dials[_0x2ee044[_0x5c33f5(0x130)]])&&(utils[_0x5c33f5(0x133)](util[_0x5c33f5(0x12a)](_0x5c33f5(0x120),_0x2ee044[_0x5c33f5(0x130)]),_0x2ee044),dials[_0x2ee044['uniqueid']]=_['assign'](dials[_0x2ee044[_0x5c33f5(0x130)]],_0x2ee044),dials[_0x2ee044[_0x5c33f5(0x130)]][_0x5c33f5(0x131)]=utils[_0x5c33f5(0x104)](),dials[_0x2ee044[_0x5c33f5(0x130)]][_0x5c33f5(0x105)]=_0x5c33f5(0x135),utils[_0x5c33f5(0x10c)](util[_0x5c33f5(0x12a)]('[%s][dials][hangup]\x20starttime:%s\x20lastevent:called',_0x2ee044[_0x5c33f5(0x130)],dials[_0x2ee044[_0x5c33f5(0x130)]][_0x5c33f5(0x131)])));}catch(_0x1624c2){utils[_0x5c33f5(0x116)](util[_0x5c33f5(0x12a)]('[%s][dials][dialbegin]',_0x2ee044[_0x5c33f5(0x130)]),_0x1624c2);}},exports['dialend']=function(_0x26b6cb){const _0x530b46=a1392_0x51172d;try{!_[_0x530b46(0x125)](dials[_0x26b6cb[_0x530b46(0x130)]])&&(utils[_0x530b46(0x133)](util[_0x530b46(0x12a)](_0x530b46(0x113),_0x26b6cb[_0x530b46(0x130)]),_0x26b6cb),dials[_0x26b6cb[_0x530b46(0x130)]][_0x530b46(0x119)]=_0x26b6cb[_0x530b46(0x119)],_0x26b6cb[_0x530b46(0x119)]==_0x530b46(0x121)?(dials[_0x26b6cb['uniqueid']]=_[_0x530b46(0x12c)](dials[_0x26b6cb[_0x530b46(0x130)]],_0x26b6cb),dials[_0x26b6cb['uniqueid']][_0x530b46(0x109)]=utils[_0x530b46(0x104)](),dials[_0x26b6cb[_0x530b46(0x130)]][_0x530b46(0x105)]=_0x530b46(0x134),utils[_0x530b46(0x10c)](util[_0x530b46(0x12a)]('[%s][dials][dialend]\x20dialstatus:%s\x20answertime:%s\x20lastevent:connect',_0x26b6cb[_0x530b46(0x130)],_0x26b6cb['dialstatus'],dials[_0x26b6cb[_0x530b46(0x130)]][_0x530b46(0x109)]))):utils['info'](util[_0x530b46(0x12a)](_0x530b46(0x10a),_0x26b6cb[_0x530b46(0x130)],_0x26b6cb['dialstatus'])));}catch(_0x33c409){utils['error'](util[_0x530b46(0x12a)]('[%s][dials][dialend]',_0x26b6cb[_0x530b46(0x130)]),_0x33c409);}},exports[a1392_0x51172d(0x11b)]=function(_0x4eef95){const _0x3bd15b=a1392_0x51172d;try{!_[_0x3bd15b(0x125)](dials[_0x4eef95[_0x3bd15b(0x130)]])&&(utils[_0x3bd15b(0x133)](util[_0x3bd15b(0x12a)](_0x3bd15b(0x10d),_0x4eef95[_0x3bd15b(0x130)]),_0x4eef95),utils[_0x3bd15b(0x10c)](util[_0x3bd15b(0x12a)](_0x3bd15b(0x128),_0x4eef95[_0x3bd15b(0x130)],_0x4eef95[_0x3bd15b(0x10e)],_0x4eef95[_0x3bd15b(0x11e)],_0x4eef95[_0x3bd15b(0x11d)])),dials[_0x4eef95[_0x3bd15b(0x130)]]=_[_0x3bd15b(0x12c)](dials[_0x4eef95[_0x3bd15b(0x130)]],{'endtime':utils[_0x3bd15b(0x104)](),'lastevent':_0x3bd15b(0x126)}),dials[_0x4eef95['uniqueid']][_0x3bd15b(0x115)]=utils['diffTime'](dials[_0x4eef95[_0x3bd15b(0x130)]][_0x3bd15b(0x132)],dials[_0x4eef95['uniqueid']][_0x3bd15b(0x131)]),dials[_0x4eef95[_0x3bd15b(0x130)]][_0x3bd15b(0x123)]=utils['diffTime'](dials[_0x4eef95[_0x3bd15b(0x130)]][_0x3bd15b(0x109)]||dials[_0x4eef95[_0x3bd15b(0x130)]][_0x3bd15b(0x132)],dials[_0x4eef95[_0x3bd15b(0x130)]]['starttime']),dials[_0x4eef95[_0x3bd15b(0x130)]][_0x3bd15b(0x111)]=dials[_0x4eef95[_0x3bd15b(0x130)]][_0x3bd15b(0x109)]?utils[_0x3bd15b(0x136)](dials[_0x4eef95[_0x3bd15b(0x130)]]['endtime'],dials[_0x4eef95[_0x3bd15b(0x130)]][_0x3bd15b(0x109)]):0x0,writeDB(dials[_0x4eef95[_0x3bd15b(0x130)]]));}catch(_0x10965a){utils[_0x3bd15b(0x116)](util[_0x3bd15b(0x12a)]('[%s][dials][hangup]',_0x4eef95[_0x3bd15b(0x130)]),_0x10965a);}}; \ No newline at end of file diff --git a/server/services/xdr/index.js b/server/services/xdr/index.js index 4f9330c..b1ab21b 100644 --- a/server/services/xdr/index.js +++ b/server/services/xdr/index.js @@ -1 +1 @@ -const a1393_0x189d=['error','asterisk','queuecallerjoin','blindtransfer','managerevent','XDR\x20DISABLED','./calls.controller','[index][newstate]','[index][queuecallerjoin]','asterisk-manager','[index][agentringnoanswer]','musiconholdstart','agentconnect','attendedtransfer','hangup','[index][newchannel]','devicestatechange','./members.controller','dialend','[index][musiconholdstart]','queuecallerabandon','fullybooted','[index][agentcomplete]','./recordings.controller','username','[index][newexten]','./agents.controller','xdr','debug','newchannel','dialbegin','[index][dialend]','[index][queuecallerabandon]','password','agentcomplete','newstate','musiconholdstop','varset','[index][dialbegin]','[index][queuecallerleave]','[index][attendedtransfer]','cdr','./utils','disabled','shutdown','agentcalled','[index][blindtransfer]','newexten','close','[index][agentconnect]','agentringnoanswer','[index][cdr]','queuecallerleave','../../globals','[index][devicestatechange]','./transfers.controller','port','[index][hangup]'];(function(_0x2701dd,_0x4f7766){const _0x189d9f=function(_0x4b6d8f){while(--_0x4b6d8f){_0x2701dd['push'](_0x2701dd['shift']());}};_0x189d9f(++_0x4f7766);}(a1393_0x189d,0x81));const a1393_0x4b6d=function(_0x2701dd,_0x4f7766){_0x2701dd=_0x2701dd-0x11c;let _0x189d9f=a1393_0x189d[_0x2701dd];return _0x189d9f;};const a1393_0x34f83e=a1393_0x4b6d;require(a1393_0x34f83e(0x144));const AsteriskManager=require(a1393_0x34f83e(0x152)),config=require('../../config/environment'),utils=require(a1393_0x34f83e(0x139)),ami=new AsteriskManager(config['asterisk'][a1393_0x34f83e(0x147)],config['asterisk']['ip'],config['asterisk'][a1393_0x34f83e(0x127)],config[a1393_0x34f83e(0x14a)][a1393_0x34f83e(0x130)],!![]);ami['keepConnected']();if(config['xdr']&&config[a1393_0x34f83e(0x12a)][a1393_0x34f83e(0x13a)])utils['info'](a1393_0x34f83e(0x14e));else{const agents=require(a1393_0x34f83e(0x129)),calls=require(a1393_0x34f83e(0x14f)),queues=require('./queues.controller'),recordings=require(a1393_0x34f83e(0x126)),members=require(a1393_0x34f83e(0x120)),dials=require('./dials.controller'),transfers=require(a1393_0x34f83e(0x146)),core=require('./core.controller');ami['on']('connect',core['connect']),ami['on'](a1393_0x34f83e(0x13b),core[a1393_0x34f83e(0x13b)]),ami['on'](a1393_0x34f83e(0x124),core['fullybooted']),ami['on'](a1393_0x34f83e(0x149),core[a1393_0x34f83e(0x149)]),ami['on'](a1393_0x34f83e(0x13f),core[a1393_0x34f83e(0x13f)]),ami['on'](a1393_0x34f83e(0x14d),core[a1393_0x34f83e(0x14d)]),ami['on']('devicestatechange',function(_0x5c95ba){const _0xbbe18d=a1393_0x34f83e;try{utils['debug'](_0xbbe18d(0x145),_0x5c95ba),members[_0xbbe18d(0x11f)](_0x5c95ba);}catch(_0x539a74){utils[_0xbbe18d(0x149)](_0xbbe18d(0x145),_0x539a74);}}),ami['on']('agentcalled',function(_0x59dc59){const _0x1dae53=a1393_0x34f83e;try{utils['debug']('[index][agentcalled]',_0x59dc59),agents[_0x1dae53(0x13c)](_0x59dc59);}catch(_0x2ee599){utils[_0x1dae53(0x149)]('[index][agentcalled]',_0x2ee599);}}),ami['on'](a1393_0x34f83e(0x141),function(_0x5ed09a){const _0x223b43=a1393_0x34f83e;try{utils[_0x223b43(0x12b)](_0x223b43(0x153),_0x5ed09a),agents[_0x223b43(0x141)](_0x5ed09a);}catch(_0x494f1a){utils[_0x223b43(0x149)](_0x223b43(0x153),_0x494f1a);}}),ami['on'](a1393_0x34f83e(0x155),function(_0x18292c){const _0x5209cc=a1393_0x34f83e;try{utils['debug'](_0x5209cc(0x140),_0x18292c),agents[_0x5209cc(0x155)](_0x18292c),queues[_0x5209cc(0x155)](_0x18292c);}catch(_0x3cb9a2){utils[_0x5209cc(0x149)]('[index][agentconnect]',_0x3cb9a2);}}),ami['on'](a1393_0x34f83e(0x131),function(_0x4c4884){const _0x2caec5=a1393_0x34f83e;try{utils[_0x2caec5(0x12b)]('[index][agentcomplete]',_0x4c4884),agents[_0x2caec5(0x131)](_0x4c4884),queues[_0x2caec5(0x131)](_0x4c4884),members[_0x2caec5(0x131)](_0x4c4884);}catch(_0x58304e){utils[_0x2caec5(0x149)](_0x2caec5(0x125),_0x58304e);}}),ami['on'](a1393_0x34f83e(0x123),function(_0x2f0988){const _0x43a976=a1393_0x34f83e;try{utils[_0x43a976(0x12b)](_0x43a976(0x12f),_0x2f0988),agents[_0x43a976(0x123)](_0x2f0988),queues[_0x43a976(0x123)](_0x2f0988);}catch(_0x11de82){utils[_0x43a976(0x149)]('[index][queuecallerabandon]',_0x11de82);}}),ami['on'](a1393_0x34f83e(0x14b),function(_0x25bf4a){const _0x2f09df=a1393_0x34f83e;try{utils['debug'](_0x2f09df(0x151),_0x25bf4a),queues[_0x2f09df(0x14b)](_0x25bf4a),recordings[_0x2f09df(0x14b)](_0x25bf4a);}catch(_0x564912){utils[_0x2f09df(0x149)](_0x2f09df(0x151),_0x564912);}}),ami['on'](a1393_0x34f83e(0x143),function(_0x10d7ef){const _0x17f6d4=a1393_0x34f83e;try{utils[_0x17f6d4(0x12b)](_0x17f6d4(0x136),_0x10d7ef),queues[_0x17f6d4(0x143)](_0x10d7ef);}catch(_0x1c10dc){utils[_0x17f6d4(0x149)](_0x17f6d4(0x136),_0x1c10dc);}}),ami['on'](a1393_0x34f83e(0x154),function(_0xdfe7f9){const _0x419db8=a1393_0x34f83e;try{utils[_0x419db8(0x12b)]('[index][musiconholdstart]',_0xdfe7f9),queues[_0x419db8(0x154)](_0xdfe7f9),calls[_0x419db8(0x154)](_0xdfe7f9);}catch(_0x47ac8c){utils[_0x419db8(0x149)](_0x419db8(0x122),_0x47ac8c);}}),ami['on'](a1393_0x34f83e(0x133),function(_0x2b6525){const _0x10a708=a1393_0x34f83e;try{utils[_0x10a708(0x12b)]('[index][musiconholdstop]',_0x2b6525),queues[_0x10a708(0x133)](_0x2b6525),calls[_0x10a708(0x133)](_0x2b6525);}catch(_0x56d070){utils['error']('[index][musiconholdstop]',_0x56d070);}}),ami['on'](a1393_0x34f83e(0x132),function(_0x8cd377){const _0x28b1d2=a1393_0x34f83e;try{utils[_0x28b1d2(0x12b)]('[index][newstate]',_0x8cd377),calls[_0x28b1d2(0x132)](_0x8cd377),recordings['newstate'](_0x8cd377);}catch(_0x45e394){utils[_0x28b1d2(0x149)](_0x28b1d2(0x150),_0x45e394);}}),ami['on'](a1393_0x34f83e(0x11d),function(_0x47cab7){const _0x32430d=a1393_0x34f83e;try{utils['debug'](_0x32430d(0x148),_0x47cab7),calls[_0x32430d(0x11d)](_0x47cab7),recordings[_0x32430d(0x11d)](_0x47cab7),dials[_0x32430d(0x11d)](_0x47cab7),agents['hangup'](_0x47cab7),queues[_0x32430d(0x11d)](_0x47cab7);}catch(_0x798948){utils[_0x32430d(0x149)]('[index][hangup]',_0x798948);}}),ami['on'](a1393_0x34f83e(0x138),function(_0x162856){const _0x3cc44f=a1393_0x34f83e;try{utils[_0x3cc44f(0x12b)](_0x3cc44f(0x142),_0x162856),members[_0x3cc44f(0x138)](_0x162856);}catch(_0x41d72c){utils[_0x3cc44f(0x149)](_0x3cc44f(0x142),_0x41d72c);}}),ami['on']('blindtransfer',function(_0x3d8f05){const _0x16e027=a1393_0x34f83e;try{utils[_0x16e027(0x12b)](_0x16e027(0x13d),_0x3d8f05),queues[_0x16e027(0x14c)](_0x3d8f05),agents[_0x16e027(0x14c)](_0x3d8f05),transfers[_0x16e027(0x14c)](_0x3d8f05);}catch(_0x8d886a){utils['error'](_0x16e027(0x13d),_0x8d886a);}}),ami['on'](a1393_0x34f83e(0x11c),function(_0x121d24){const _0x21f153=a1393_0x34f83e;try{utils[_0x21f153(0x12b)](_0x21f153(0x137),_0x121d24),queues['attendedtransfer'](_0x121d24),transfers[_0x21f153(0x11c)](_0x121d24),agents[_0x21f153(0x11c)](_0x121d24),calls[_0x21f153(0x11c)](_0x121d24);}catch(_0x5c9136){utils[_0x21f153(0x149)](_0x21f153(0x137),_0x5c9136);}}),ami['on'](a1393_0x34f83e(0x134),function(_0x3c12e7){const _0x1dc919=a1393_0x34f83e;try{utils[_0x1dc919(0x12b)]('[index][varset]',_0x3c12e7),queues[_0x1dc919(0x134)](_0x3c12e7),recordings['varset'](_0x3c12e7),calls[_0x1dc919(0x134)](_0x3c12e7),dials[_0x1dc919(0x134)](_0x3c12e7);}catch(_0x56b76c){utils['error']('[index][varset]',_0x56b76c);}}),ami['on']('newexten',function(_0x411878){const _0x4002ec=a1393_0x34f83e;try{utils[_0x4002ec(0x12b)](_0x4002ec(0x128),_0x411878),calls[_0x4002ec(0x13e)](_0x411878),recordings[_0x4002ec(0x13e)](_0x411878),dials[_0x4002ec(0x13e)](_0x411878);}catch(_0x5a6617){utils['error'](_0x4002ec(0x128),_0x5a6617);}}),ami['on'](a1393_0x34f83e(0x12c),function(_0x522e1b){const _0x1f6bc0=a1393_0x34f83e;try{utils[_0x1f6bc0(0x12b)](_0x1f6bc0(0x11e),_0x522e1b),calls[_0x1f6bc0(0x12c)](_0x522e1b),recordings[_0x1f6bc0(0x12c)](_0x522e1b);}catch(_0x2e4271){utils[_0x1f6bc0(0x149)]('[index][newchannel]',_0x2e4271);}}),ami['on'](a1393_0x34f83e(0x12d),function(_0x149fa1){const _0x531f0c=a1393_0x34f83e;try{utils[_0x531f0c(0x12b)](_0x531f0c(0x135),_0x149fa1),dials[_0x531f0c(0x12d)](_0x149fa1);}catch(_0x29da4b){utils['error']('dialbegin',_0x29da4b);}}),ami['on'](a1393_0x34f83e(0x121),function(_0x37f334){const _0x49a272=a1393_0x34f83e;try{utils[_0x49a272(0x12b)]('[index][dialend]',_0x37f334),dials[_0x49a272(0x121)](_0x37f334);}catch(_0x33c23f){utils[_0x49a272(0x149)](_0x49a272(0x12e),_0x33c23f);}});} \ No newline at end of file +const a1393_0x9e1e=['[index][newchannel]','varset','agentcalled','dialbegin','port','username','asterisk','../../config/environment','queuecallerjoin','hangup','newstate','cdr','[index][queuecallerleave]','keepConnected','[index][cdr]','XDR\x20DISABLED','musiconholdstop','[index][devicestatechange]','managerevent','close','newexten','[index][agentcomplete]','blindtransfer','[index][blindtransfer]','./calls.controller','agentconnect','[index][musiconholdstart]','newchannel','shutdown','dialend','queuecallerleave','[index][newstate]','[index][musiconholdstop]','attendedtransfer','disabled','debug','[index][varset]','[index][newexten]','./recordings.controller','./members.controller','./queues.controller','./dials.controller','queuecallerabandon','devicestatechange','agentringnoanswer','[index][queuecallerabandon]','[index][attendedtransfer]','../../globals','./core.controller','./agents.controller','[index][hangup]','[index][agentconnect]','connect','musiconholdstart','agentcomplete','fullybooted','[index][queuecallerjoin]','[index][agentcalled]','xdr','error'];(function(_0x4b608b,_0x6ba7b0){const _0x9e1ef=function(_0x2f957b){while(--_0x2f957b){_0x4b608b['push'](_0x4b608b['shift']());}};_0x9e1ef(++_0x6ba7b0);}(a1393_0x9e1e,0x1ac));const a1393_0x2f95=function(_0x4b608b,_0x6ba7b0){_0x4b608b=_0x4b608b-0xc3;let _0x9e1ef=a1393_0x9e1e[_0x4b608b];return _0x9e1ef;};const a1393_0x464b69=a1393_0x2f95;require(a1393_0x464b69(0xea));const AsteriskManager=require('asterisk-manager'),config=require(a1393_0x464b69(0xfe)),utils=require('./utils'),ami=new AsteriskManager(config['asterisk'][a1393_0x464b69(0xfb)],config[a1393_0x464b69(0xfd)]['ip'],config[a1393_0x464b69(0xfd)][a1393_0x464b69(0xfc)],config[a1393_0x464b69(0xfd)]['password'],!![]);ami[a1393_0x464b69(0xc8)]();if(config[a1393_0x464b69(0xf5)]&&config[a1393_0x464b69(0xf5)][a1393_0x464b69(0xdd)])utils['info'](a1393_0x464b69(0xca));else{const agents=require(a1393_0x464b69(0xec)),calls=require(a1393_0x464b69(0xd3)),queues=require(a1393_0x464b69(0xe3)),recordings=require(a1393_0x464b69(0xe1)),members=require(a1393_0x464b69(0xe2)),dials=require(a1393_0x464b69(0xe4)),transfers=require('./transfers.controller'),core=require(a1393_0x464b69(0xeb));ami['on']('connect',core[a1393_0x464b69(0xef)]),ami['on']('shutdown',core[a1393_0x464b69(0xd7)]),ami['on'](a1393_0x464b69(0xf2),core['fullybooted']),ami['on'](a1393_0x464b69(0xf6),core[a1393_0x464b69(0xf6)]),ami['on'](a1393_0x464b69(0xce),core['close']),ami['on'](a1393_0x464b69(0xcd),core[a1393_0x464b69(0xcd)]),ami['on']('devicestatechange',function(_0x45d9d4){const _0x26e2be=a1393_0x464b69;try{utils[_0x26e2be(0xde)](_0x26e2be(0xcc),_0x45d9d4),members[_0x26e2be(0xe6)](_0x45d9d4);}catch(_0x4e2df5){utils['error'](_0x26e2be(0xcc),_0x4e2df5);}}),ami['on'](a1393_0x464b69(0xf9),function(_0x3c9b99){const _0x40c241=a1393_0x464b69;try{utils[_0x40c241(0xde)](_0x40c241(0xf4),_0x3c9b99),agents[_0x40c241(0xf9)](_0x3c9b99);}catch(_0x1e6ea7){utils['error'](_0x40c241(0xf4),_0x1e6ea7);}}),ami['on'](a1393_0x464b69(0xe7),function(_0x343cec){const _0xf1c576=a1393_0x464b69;try{utils[_0xf1c576(0xde)]('[index][agentringnoanswer]',_0x343cec),agents[_0xf1c576(0xe7)](_0x343cec);}catch(_0x1a6b55){utils[_0xf1c576(0xf6)]('[index][agentringnoanswer]',_0x1a6b55);}}),ami['on'](a1393_0x464b69(0xd4),function(_0x1598ec){const _0x1203c1=a1393_0x464b69;try{utils[_0x1203c1(0xde)]('[index][agentconnect]',_0x1598ec),agents[_0x1203c1(0xd4)](_0x1598ec),queues[_0x1203c1(0xd4)](_0x1598ec);}catch(_0x3cd70b){utils[_0x1203c1(0xf6)](_0x1203c1(0xee),_0x3cd70b);}}),ami['on'](a1393_0x464b69(0xf1),function(_0x24f177){const _0x406a03=a1393_0x464b69;try{utils['debug'](_0x406a03(0xd0),_0x24f177),agents[_0x406a03(0xf1)](_0x24f177),queues[_0x406a03(0xf1)](_0x24f177),members[_0x406a03(0xf1)](_0x24f177);}catch(_0x57ead3){utils['error'](_0x406a03(0xd0),_0x57ead3);}}),ami['on']('queuecallerabandon',function(_0xaf1106){const _0x2c24d7=a1393_0x464b69;try{utils[_0x2c24d7(0xde)]('[index][queuecallerabandon]',_0xaf1106),agents[_0x2c24d7(0xe5)](_0xaf1106),queues[_0x2c24d7(0xe5)](_0xaf1106);}catch(_0x18b169){utils[_0x2c24d7(0xf6)](_0x2c24d7(0xe8),_0x18b169);}}),ami['on'](a1393_0x464b69(0xc3),function(_0x353bb0){const _0x115a48=a1393_0x464b69;try{utils[_0x115a48(0xde)](_0x115a48(0xf3),_0x353bb0),queues[_0x115a48(0xc3)](_0x353bb0),recordings[_0x115a48(0xc3)](_0x353bb0);}catch(_0x511cc9){utils[_0x115a48(0xf6)](_0x115a48(0xf3),_0x511cc9);}}),ami['on'](a1393_0x464b69(0xd9),function(_0x4a4563){const _0x115719=a1393_0x464b69;try{utils[_0x115719(0xde)](_0x115719(0xc7),_0x4a4563),queues[_0x115719(0xd9)](_0x4a4563);}catch(_0x49c13f){utils['error'](_0x115719(0xc7),_0x49c13f);}}),ami['on'](a1393_0x464b69(0xf0),function(_0x1862c3){const _0x2381e0=a1393_0x464b69;try{utils[_0x2381e0(0xde)](_0x2381e0(0xd5),_0x1862c3),queues[_0x2381e0(0xf0)](_0x1862c3),calls['musiconholdstart'](_0x1862c3);}catch(_0x1324d5){utils[_0x2381e0(0xf6)](_0x2381e0(0xd5),_0x1324d5);}}),ami['on'](a1393_0x464b69(0xcb),function(_0x5620fc){const _0x3b2c86=a1393_0x464b69;try{utils[_0x3b2c86(0xde)](_0x3b2c86(0xdb),_0x5620fc),queues[_0x3b2c86(0xcb)](_0x5620fc),calls[_0x3b2c86(0xcb)](_0x5620fc);}catch(_0x2a6cc3){utils[_0x3b2c86(0xf6)](_0x3b2c86(0xdb),_0x2a6cc3);}}),ami['on'](a1393_0x464b69(0xc5),function(_0x529f97){const _0xd8bbff=a1393_0x464b69;try{utils[_0xd8bbff(0xde)]('[index][newstate]',_0x529f97),calls[_0xd8bbff(0xc5)](_0x529f97),recordings['newstate'](_0x529f97);}catch(_0x3eb6a7){utils[_0xd8bbff(0xf6)](_0xd8bbff(0xda),_0x3eb6a7);}}),ami['on'](a1393_0x464b69(0xc4),function(_0x2660fe){const _0x326467=a1393_0x464b69;try{utils['debug'](_0x326467(0xed),_0x2660fe),calls[_0x326467(0xc4)](_0x2660fe),recordings[_0x326467(0xc4)](_0x2660fe),dials[_0x326467(0xc4)](_0x2660fe),agents['hangup'](_0x2660fe),queues['hangup'](_0x2660fe);}catch(_0x50f641){utils[_0x326467(0xf6)](_0x326467(0xed),_0x50f641);}}),ami['on'](a1393_0x464b69(0xc6),function(_0x1bf919){const _0x4ed3f2=a1393_0x464b69;try{utils[_0x4ed3f2(0xde)](_0x4ed3f2(0xc9),_0x1bf919),members[_0x4ed3f2(0xc6)](_0x1bf919);}catch(_0x243aff){utils[_0x4ed3f2(0xf6)](_0x4ed3f2(0xc9),_0x243aff);}}),ami['on'](a1393_0x464b69(0xd1),function(_0x30fdae){const _0x4d5e7d=a1393_0x464b69;try{utils[_0x4d5e7d(0xde)](_0x4d5e7d(0xd2),_0x30fdae),queues[_0x4d5e7d(0xd1)](_0x30fdae),agents[_0x4d5e7d(0xd1)](_0x30fdae),transfers['blindtransfer'](_0x30fdae);}catch(_0xec8d76){utils['error']('[index][blindtransfer]',_0xec8d76);}}),ami['on'](a1393_0x464b69(0xdc),function(_0x265ca2){const _0x1f529d=a1393_0x464b69;try{utils[_0x1f529d(0xde)](_0x1f529d(0xe9),_0x265ca2),queues['attendedtransfer'](_0x265ca2),transfers[_0x1f529d(0xdc)](_0x265ca2),agents[_0x1f529d(0xdc)](_0x265ca2),calls[_0x1f529d(0xdc)](_0x265ca2);}catch(_0x1d447d){utils[_0x1f529d(0xf6)](_0x1f529d(0xe9),_0x1d447d);}}),ami['on'](a1393_0x464b69(0xf8),function(_0xc148d1){const _0x231b77=a1393_0x464b69;try{utils[_0x231b77(0xde)](_0x231b77(0xdf),_0xc148d1),queues[_0x231b77(0xf8)](_0xc148d1),recordings['varset'](_0xc148d1),calls[_0x231b77(0xf8)](_0xc148d1),dials[_0x231b77(0xf8)](_0xc148d1);}catch(_0x23cfee){utils['error'](_0x231b77(0xdf),_0x23cfee);}}),ami['on']('newexten',function(_0x48a567){const _0x1d3474=a1393_0x464b69;try{utils[_0x1d3474(0xde)](_0x1d3474(0xe0),_0x48a567),calls['newexten'](_0x48a567),recordings[_0x1d3474(0xcf)](_0x48a567),dials[_0x1d3474(0xcf)](_0x48a567);}catch(_0x2d471c){utils[_0x1d3474(0xf6)]('[index][newexten]',_0x2d471c);}}),ami['on'](a1393_0x464b69(0xd6),function(_0x45393b){const _0x4d1276=a1393_0x464b69;try{utils[_0x4d1276(0xde)](_0x4d1276(0xf7),_0x45393b),calls['newchannel'](_0x45393b),recordings[_0x4d1276(0xd6)](_0x45393b);}catch(_0x5c0f31){utils[_0x4d1276(0xf6)](_0x4d1276(0xf7),_0x5c0f31);}}),ami['on'](a1393_0x464b69(0xfa),function(_0x19fb5e){const _0x2b09db=a1393_0x464b69;try{utils[_0x2b09db(0xde)]('[index][dialbegin]',_0x19fb5e),dials[_0x2b09db(0xfa)](_0x19fb5e);}catch(_0x5c52f4){utils['error'](_0x2b09db(0xfa),_0x5c52f4);}}),ami['on'](a1393_0x464b69(0xd8),function(_0x5054a1){const _0x4a2ac1=a1393_0x464b69;try{utils['debug']('[index][dialend]',_0x5054a1),dials[_0x4a2ac1(0xd8)](_0x5054a1);}catch(_0x402552){utils[_0x4a2ac1(0xf6)]('[index][dialend]',_0x402552);}});} \ No newline at end of file diff --git a/server/services/xdr/members.controller.js b/server/services/xdr/members.controller.js index 16a98ac..0840286 100644 --- a/server/services/xdr/members.controller.js +++ b/server/services/xdr/members.controller.js @@ -1 +1 @@ -const a1394_0x4496=['type','[%s][members][agentcomplete]\x20interface:%s\x20queue:%s','split','lodash','error','getUserByName','destinationchannel','assign','catch','getUserByInterface','interface','./utils','[%s][members][cdr]','exitAt','state','TALKING','data1','[%s][members][agentcomplete]','[%s][members][cdr]\x20type:%s\x20source:%s\x20destination:%s','[%s][members][writeDB]\x20interface:%s\x20channel:%s\x20data2:%s\x20agent:%s\x20type:%s','Queue:','startsWith','request','Local/_attended@transfer','[%s][members][writeDB]','info','channel','cdr','uniqueid','then','format','name','some','CreateMemberReport','data2','membername','util','enterAt','data3','device','internal','debug','INUSE','[%s][members][devicestatechange]','NOT_INUSE','source','isNil','queue','BUSY','voice'];(function(_0x2c5c4e,_0x221686){const _0x449641=function(_0x22ff47){while(--_0x22ff47){_0x2c5c4e['push'](_0x2c5c4e['shift']());}};_0x449641(++_0x221686);}(a1394_0x4496,0x16d));const a1394_0x22ff=function(_0x2c5c4e,_0x221686){_0x2c5c4e=_0x2c5c4e-0xd5;let _0x449641=a1394_0x4496[_0x2c5c4e];return _0x449641;};const a1394_0x17f437=a1394_0x22ff;'use strict';const _=require(a1394_0x17f437(0xfb)),util=require(a1394_0x17f437(0xea)),utils=require(a1394_0x17f437(0x103)),members={},exclude=[a1394_0x17f437(0xdd),a1394_0x17f437(0xda)];function writeDB(_0x184405){const _0x1502ba=a1394_0x17f437;utils[_0x1502ba(0xdf)](util[_0x1502ba(0xe4)](_0x1502ba(0xd9),_0x184405[_0x1502ba(0xe2)],_0x184405[_0x1502ba(0x102)],_0x184405[_0x1502ba(0xe0)],_0x184405[_0x1502ba(0xe8)],_0x184405[_0x1502ba(0xe9)],_0x184405[_0x1502ba(0xf8)])),_0x184405[_0x1502ba(0x102)]&&utils[_0x1502ba(0x101)](_0x184405['interface'])[_0x1502ba(0xe3)](function(_0x1c5ecc){const _0x294555=_0x1502ba;_0x1c5ecc?(_0x184405[_0x294555(0xe9)]=_0x1c5ecc['name'],_0x184405[_0x294555(0xee)]=_0x1c5ecc[_0x294555(0xee)],utils[_0x294555(0xdc)](_0x294555(0xe7),_0x184405)):utils[_0x294555(0xfd)](_0x184405[_0x294555(0x102)][_0x294555(0xfa)]('/')[0x1])[_0x294555(0xe3)](function(_0x4fac31){const _0x2cfa62=_0x294555;_0x4fac31&&(_0x184405[_0x2cfa62(0xe9)]=_0x4fac31[_0x2cfa62(0xe5)],_0x184405[_0x2cfa62(0xee)]=_0x4fac31[_0x2cfa62(0xee)],utils[_0x2cfa62(0xdc)](_0x2cfa62(0xe7),_0x184405));});})[_0x1502ba(0x100)](function(_0x67869){const _0x182549=_0x1502ba;utils[_0x182549(0xfc)](util['format'](_0x182549(0xde),_0x184405[_0x182549(0xe2)]),_0x67869);}),delete members[_0x184405[_0x1502ba(0x102)]];}function startsWith(_0x398b42,_0x54a55d){const _0x44c267=a1394_0x17f437;return _[_0x44c267(0xe6)](_0x398b42,function(_0x335785){const _0x8cf4c0=_0x44c267;return _[_0x8cf4c0(0xdb)](_0x54a55d,_0x335785);});}exports['devicestatechange']=function(_0x47954d){const _0x2f56a7=a1394_0x17f437;try{utils[_0x2f56a7(0xef)](util[_0x2f56a7(0xe4)](_0x2f56a7(0xf1),_0x47954d['uniqueid']),_0x47954d),utils[_0x2f56a7(0xdf)](util[_0x2f56a7(0xe4)]('[%s][members][devicestatechange]\x20state:%s\x20interface:%s',_0x47954d[_0x2f56a7(0xe2)],_0x47954d[_0x2f56a7(0x106)],_0x47954d[_0x2f56a7(0xed)]));switch(_0x47954d[_0x2f56a7(0x106)]){case _0x2f56a7(0xf0):case _0x2f56a7(0xf6):!startsWith(exclude,_0x47954d['device'])&&(members[_0x47954d['device']]={'channel':_0x2f56a7(0xf7),'interface':_0x47954d[_0x2f56a7(0xed)],'type':_0x2f56a7(0xd5),'enterAt':utils['now'](),'role':'agent'});break;case _0x2f56a7(0xf2):!_['isNil'](members[_0x47954d[_0x2f56a7(0xed)]])&&(members[_0x47954d['device']]['exitAt']=utils['now'](),members[_0x47954d['device']]['duration']=utils['diffTime'](members[_0x47954d[_0x2f56a7(0xed)]]['exitAt'],members[_0x47954d['device']][_0x2f56a7(0xeb)]),members[_0x47954d[_0x2f56a7(0xed)]][_0x2f56a7(0xe2)]&&writeDB(members[_0x47954d[_0x2f56a7(0xed)]]));break;default:break;}}catch(_0x286bc6){utils[_0x2f56a7(0xfc)](util['format'](_0x2f56a7(0xf1),_0x47954d[_0x2f56a7(0xe2)]),_0x286bc6);}},exports['agentcomplete']=function(_0x5b68ae){const _0x342b44=a1394_0x17f437;try{!_[_0x342b44(0xf4)](members[_0x5b68ae[_0x342b44(0x102)]])&&(utils[_0x342b44(0xef)](util[_0x342b44(0xe4)](_0x342b44(0xd7),_0x5b68ae[_0x342b44(0xe2)]),_0x5b68ae),utils[_0x342b44(0xdf)](util['format'](_0x342b44(0xf9),_0x5b68ae[_0x342b44(0xe2)],_0x5b68ae[_0x342b44(0x102)],_0x5b68ae[_0x342b44(0xf5)])),members[_0x5b68ae['interface']]=_[_0x342b44(0xff)](members[_0x5b68ae[_0x342b44(0x102)]],{'data4':_0x5b68ae[_0x342b44(0xf5)],'uniqueid':_0x5b68ae[_0x342b44(0xe2)]}));}catch(_0x7dc1ba){utils[_0x342b44(0xfc)](util[_0x342b44(0xe4)](_0x342b44(0xd7),_0x5b68ae[_0x342b44(0xe2)]),_0x7dc1ba);}},exports[a1394_0x17f437(0xe1)]=function(_0x491aef){const _0x558e6d=a1394_0x17f437;try{utils[_0x558e6d(0xef)](util[_0x558e6d(0xe4)](_0x558e6d(0x104),_0x491aef[_0x558e6d(0xe2)]),_0x491aef);if(_0x491aef[_0x558e6d(0xe0)]){const _0x168370=_0x491aef[_0x558e6d(0xe0)][_0x558e6d(0xfa)]('-')[0x0];!_[_0x558e6d(0xf4)](members[_0x168370])&&(members[_0x168370]=_['assign'](members[_0x168370],{'data1':members[_0x168370][_0x558e6d(0xd6)]||_0x491aef[_0x558e6d(0xf8)],'data2':members[_0x168370][_0x558e6d(0xe8)]||_0x491aef[_0x558e6d(0xf3)],'data3':members[_0x168370][_0x558e6d(0xec)]||_0x491aef['destination'],'uniqueid':members[_0x168370][_0x558e6d(0xe2)]||_0x491aef[_0x558e6d(0xe2)]}),utils['info'](util[_0x558e6d(0xe4)]('[%s][members][cdr]\x20type:%s\x20source:%s\x20destination:%s',_0x491aef[_0x558e6d(0xe2)],members[_0x168370][_0x558e6d(0xd6)],members[_0x168370][_0x558e6d(0xe8)],members[_0x168370]['data3'])),members[_0x168370][_0x558e6d(0x105)]&&writeDB(members[_0x168370]));}if(_0x491aef['destinationchannel']){const _0x1e37fd=_0x491aef[_0x558e6d(0xfe)][_0x558e6d(0xfa)]('-')[0x0];!_[_0x558e6d(0xf4)](members[_0x1e37fd])&&(members[_0x1e37fd]=_[_0x558e6d(0xff)](members[_0x1e37fd],{'data1':members[_0x1e37fd][_0x558e6d(0xd6)]||_0x491aef[_0x558e6d(0xf8)],'data2':members[_0x1e37fd][_0x558e6d(0xe8)]||_0x491aef[_0x558e6d(0xf3)],'data3':members[_0x1e37fd]['data3']||_0x491aef['destination'],'uniqueid':members[_0x1e37fd][_0x558e6d(0xe2)]||_0x491aef[_0x558e6d(0xe2)]}),utils[_0x558e6d(0xdf)](util['format'](_0x558e6d(0xd8),_0x491aef['uniqueid'],members[_0x1e37fd][_0x558e6d(0xd6)],members[_0x1e37fd][_0x558e6d(0xe8)],members[_0x1e37fd]['data3'])),members[_0x1e37fd][_0x558e6d(0x105)]&&writeDB(members[_0x1e37fd]));}}catch(_0x5cc6b2){utils['error'](util[_0x558e6d(0xe4)](_0x558e6d(0x104),_0x491aef['uniqueid']),_0x5cc6b2);}}; \ No newline at end of file +const a1394_0x2307=['duration','[%s][members][writeDB]','exitAt','getUserByInterface','[%s][members][devicestatechange]','startsWith','voice','then','now','Local/_attended@transfer','uniqueid','data2','diffTime','[%s][members][cdr]','interface','request','name','source','membername','[%s][members][agentcomplete]\x20interface:%s\x20queue:%s','queue','destination','format','getUserByName','catch','data1','INUSE','device','CreateMemberReport','split','enterAt','destinationchannel','isNil','agent','lodash','channel','data3','internal','devicestatechange','info','debug','./utils','state','type','cdr','assign','[%s][members][devicestatechange]\x20state:%s\x20interface:%s'];(function(_0x57da1c,_0x335f65){const _0x230798=function(_0x4a5fad){while(--_0x4a5fad){_0x57da1c['push'](_0x57da1c['shift']());}};_0x230798(++_0x335f65);}(a1394_0x2307,0x13f));const a1394_0x4a5f=function(_0x57da1c,_0x335f65){_0x57da1c=_0x57da1c-0x79;let _0x230798=a1394_0x2307[_0x57da1c];return _0x230798;};const a1394_0x5a8b58=a1394_0x4a5f;'use strict';const _=require(a1394_0x5a8b58(0xa5)),util=require('util'),utils=require(a1394_0x5a8b58(0x7d)),members={},exclude=[a1394_0x5a8b58(0x8c),'Queue:'];function writeDB(_0x5629c6){const _0x19d951=a1394_0x5a8b58;utils[_0x19d951(0x7b)](util[_0x19d951(0x99)]('[%s][members][writeDB]\x20interface:%s\x20channel:%s\x20data2:%s\x20agent:%s\x20type:%s',_0x5629c6[_0x19d951(0x8d)],_0x5629c6['interface'],_0x5629c6[_0x19d951(0xa6)],_0x5629c6[_0x19d951(0x8e)],_0x5629c6['membername'],_0x5629c6[_0x19d951(0x7f)])),_0x5629c6[_0x19d951(0x91)]&&utils[_0x19d951(0x86)](_0x5629c6[_0x19d951(0x91)])[_0x19d951(0x8a)](function(_0x1da1fc){const _0x421053=_0x19d951;_0x1da1fc?(_0x5629c6['membername']=_0x1da1fc[_0x421053(0x93)],_0x5629c6[_0x421053(0x79)]=_0x1da1fc[_0x421053(0x79)],utils[_0x421053(0x92)]('CreateMemberReport',_0x5629c6)):utils[_0x421053(0x9a)](_0x5629c6[_0x421053(0x91)][_0x421053(0xa0)]('/')[0x1])[_0x421053(0x8a)](function(_0x4d3893){const _0x5c1d14=_0x421053;_0x4d3893&&(_0x5629c6[_0x5c1d14(0x95)]=_0x4d3893[_0x5c1d14(0x93)],_0x5629c6['internal']=_0x4d3893[_0x5c1d14(0x79)],utils[_0x5c1d14(0x92)](_0x5c1d14(0x9f),_0x5629c6));});})[_0x19d951(0x9b)](function(_0x167fbe){const _0xb92d7=_0x19d951;utils['error'](util['format'](_0xb92d7(0x84),_0x5629c6[_0xb92d7(0x8d)]),_0x167fbe);}),delete members[_0x5629c6['interface']];}function startsWith(_0x481465,_0x4775de){return _['some'](_0x481465,function(_0x136133){const _0x33f1eb=a1394_0x4a5f;return _[_0x33f1eb(0x88)](_0x4775de,_0x136133);});}exports[a1394_0x5a8b58(0x7a)]=function(_0x179c7){const _0x548547=a1394_0x5a8b58;try{utils[_0x548547(0x7c)](util['format'](_0x548547(0x87),_0x179c7[_0x548547(0x8d)]),_0x179c7),utils[_0x548547(0x7b)](util['format'](_0x548547(0x82),_0x179c7[_0x548547(0x8d)],_0x179c7[_0x548547(0x7e)],_0x179c7[_0x548547(0x9e)]));switch(_0x179c7[_0x548547(0x7e)]){case _0x548547(0x9d):case'BUSY':!startsWith(exclude,_0x179c7[_0x548547(0x9e)])&&(members[_0x179c7['device']]={'channel':_0x548547(0x89),'interface':_0x179c7[_0x548547(0x9e)],'type':'TALKING','enterAt':utils[_0x548547(0x8b)](),'role':_0x548547(0xa4)});break;case'NOT_INUSE':!_[_0x548547(0xa3)](members[_0x179c7[_0x548547(0x9e)]])&&(members[_0x179c7[_0x548547(0x9e)]][_0x548547(0x85)]=utils['now'](),members[_0x179c7[_0x548547(0x9e)]][_0x548547(0x83)]=utils[_0x548547(0x8f)](members[_0x179c7[_0x548547(0x9e)]][_0x548547(0x85)],members[_0x179c7[_0x548547(0x9e)]][_0x548547(0xa1)]),members[_0x179c7[_0x548547(0x9e)]][_0x548547(0x8d)]&&writeDB(members[_0x179c7[_0x548547(0x9e)]]));break;default:break;}}catch(_0x331e25){utils['error'](util['format']('[%s][members][devicestatechange]',_0x179c7[_0x548547(0x8d)]),_0x331e25);}},exports['agentcomplete']=function(_0x33760b){const _0x10e0b0=a1394_0x5a8b58;try{!_[_0x10e0b0(0xa3)](members[_0x33760b['interface']])&&(utils['debug'](util[_0x10e0b0(0x99)]('[%s][members][agentcomplete]',_0x33760b[_0x10e0b0(0x8d)]),_0x33760b),utils[_0x10e0b0(0x7b)](util['format'](_0x10e0b0(0x96),_0x33760b[_0x10e0b0(0x8d)],_0x33760b[_0x10e0b0(0x91)],_0x33760b[_0x10e0b0(0x97)])),members[_0x33760b['interface']]=_[_0x10e0b0(0x81)](members[_0x33760b[_0x10e0b0(0x91)]],{'data4':_0x33760b['queue'],'uniqueid':_0x33760b[_0x10e0b0(0x8d)]}));}catch(_0x28bf48){utils['error'](util['format']('[%s][members][agentcomplete]',_0x33760b[_0x10e0b0(0x8d)]),_0x28bf48);}},exports[a1394_0x5a8b58(0x80)]=function(_0x67435e){const _0x523f9b=a1394_0x5a8b58;try{utils[_0x523f9b(0x7c)](util[_0x523f9b(0x99)](_0x523f9b(0x90),_0x67435e[_0x523f9b(0x8d)]),_0x67435e);if(_0x67435e[_0x523f9b(0xa6)]){const _0x133490=_0x67435e[_0x523f9b(0xa6)][_0x523f9b(0xa0)]('-')[0x0];!_[_0x523f9b(0xa3)](members[_0x133490])&&(members[_0x133490]=_[_0x523f9b(0x81)](members[_0x133490],{'data1':members[_0x133490]['data1']||_0x67435e['type'],'data2':members[_0x133490][_0x523f9b(0x8e)]||_0x67435e['source'],'data3':members[_0x133490][_0x523f9b(0xa7)]||_0x67435e[_0x523f9b(0x98)],'uniqueid':members[_0x133490][_0x523f9b(0x8d)]||_0x67435e['uniqueid']}),utils[_0x523f9b(0x7b)](util[_0x523f9b(0x99)]('[%s][members][cdr]\x20type:%s\x20source:%s\x20destination:%s',_0x67435e['uniqueid'],members[_0x133490]['data1'],members[_0x133490]['data2'],members[_0x133490][_0x523f9b(0xa7)])),members[_0x133490]['exitAt']&&writeDB(members[_0x133490]));}if(_0x67435e['destinationchannel']){const _0x53920e=_0x67435e[_0x523f9b(0xa2)][_0x523f9b(0xa0)]('-')[0x0];!_[_0x523f9b(0xa3)](members[_0x53920e])&&(members[_0x53920e]=_[_0x523f9b(0x81)](members[_0x53920e],{'data1':members[_0x53920e][_0x523f9b(0x9c)]||_0x67435e[_0x523f9b(0x7f)],'data2':members[_0x53920e]['data2']||_0x67435e[_0x523f9b(0x94)],'data3':members[_0x53920e][_0x523f9b(0xa7)]||_0x67435e['destination'],'uniqueid':members[_0x53920e][_0x523f9b(0x8d)]||_0x67435e[_0x523f9b(0x8d)]}),utils['info'](util['format']('[%s][members][cdr]\x20type:%s\x20source:%s\x20destination:%s',_0x67435e[_0x523f9b(0x8d)],members[_0x53920e][_0x523f9b(0x9c)],members[_0x53920e][_0x523f9b(0x8e)],members[_0x53920e][_0x523f9b(0xa7)])),members[_0x53920e][_0x523f9b(0x85)]&&writeDB(members[_0x53920e]));}}catch(_0x5f4adb){utils['error'](util[_0x523f9b(0x99)](_0x523f9b(0x90),_0x67435e[_0x523f9b(0x8d)]),_0x5f4adb);}}; \ No newline at end of file diff --git a/server/services/xdr/queues.controller.js b/server/services/xdr/queues.controller.js index df91f1a..dd94e6a 100644 --- a/server/services/xdr/queues.controller.js +++ b/server/services/xdr/queues.controller.js @@ -1 +1 @@ -const a1395_0x3e7a=['mohtime','[%s][queues][agentconnect]\x20name:%s\x20agent:%s\x20accountcode:%s','queuecallerabandonAt','[%s][queues][queuecallerleave]','[%s][queues][attendedtransfer]','[%s][queues][attendedtransfer]\x20name:%s\x20transferuniqueid:%s\x20transferexten:%s\x20queuecallerexitreason:ATTENDEDTRANSFER','queuecallerleaveAt','[%s][queues][agentconnect]','calleridname','queueposition','lodash','destaccountcode','lastAssignedTo','channel','transfereelinkedid','musiconholdstop','attendedtransfer','[%s][queues][agentcomplete]\x20name:%s\x20agent:%s\x20queuecallerexitreason:%s','calleridnum','origtransfererlinkedid','queue','debug','variable','extension','then','reason','assigned','ATTENDED','[%s][queues][queuecallerabandon]\x20name:%s\x20queuecallerexitreason:%s','[%s][queues][attendedtransfer]\x20name:%s\x20transfereduniqueid:%s','[%s][queues][blindtransfer]','CreateVoiceQueueReport','[%s][queues][varset]','origtransfereruniqueid','[%s][queues][musiconholdstop]','util','COMPLETEDBY','[%s][queues][writeDB]\x20channel:%s\x20queue:%s\x20lastAssignedTo:%s\x20calleridnum:%s\x20accountcode:%s\x20queuecallerexitreason:%s','queuecallerenterreason','info','holdtime','secondtransfererlinkedid','value','[%s][queues][hangup]','getVoiceQueueByName','membername','ATTENDEDTRANSFER','now','[%s][queues][musiconholdstart]','connectedlinename','musiconholdstartAt','queuecallerexit','accountcode','request','count','format','transfertargetuniqueid','queuecallerjoinAt','error','transfertype','[%s][queues][queuecallerabandon]','position','queuecallerexitreason','ABANDONED','queuecallercomplete','[%s][queues][queuecallerleave]\x20name:%s\x20connectedlinenum:%s\x20connectedlinename:%s','uniqueid','transfereduniqueid','queuecallercompleteAt','secondtransfereruniqueid','clone','queuecallerleave','./utils','[%s][queues][musiconholdstop]\x20name:%s\x20mohtime:%s','[%s][queues][blindtransfer]\x20name:%s\x20transferuniqueid:%s\x20transferexten:%s\x20queuecallerexitreason:BLINDTRANSFER','secondtransfererexten','[%s][queues][agentcomplete]','queuecallerabandon','agentconnect','[%s][queues][attendedtransfer]\x20name:%s\x20transfereduniqueid:%s\x20calleridnum:%s\x20calleridname:%s','COMPLETEDBYAGENT','musiconholdstart','isNil','diffTime','[%s][queues][queuecallerjoin]\x20name:%s\x20position:%s','transfer','hangup','type','assign','origtransfererexten','EXITWITHKEY','transfereeuniqueid','connectedlinenum','transferuniqueid','queuecallerexitAt','TRANSFER','transferexten','name','[%s][queues][queuecallerjoin]','[%s][queues][hangup]\x20name:%s\x20transfereduniqueid:%s','transfertargetlinkedid','queuestatus','toUpperCase'];(function(_0x27232f,_0x2101a2){const _0x3e7ac6=function(_0xa21012){while(--_0xa21012){_0x27232f['push'](_0x27232f['shift']());}};_0x3e7ac6(++_0x2101a2);}(a1395_0x3e7a,0xf7));const a1395_0xa210=function(_0x27232f,_0x2101a2){_0x27232f=_0x27232f-0x192;let _0x3e7ac6=a1395_0x3e7a[_0x27232f];return _0x3e7ac6;};const a1395_0x32d860=a1395_0xa210;'use strict';const _=require(a1395_0x32d860(0x1da)),util=require(a1395_0x32d860(0x1f3)),utils=require(a1395_0x32d860(0x1b1)),queues={};function writeDB(_0x3141c3){const _0x545b12=a1395_0x32d860;utils['info'](util[_0x545b12(0x1a0)](_0x545b12(0x1f5),_0x3141c3[_0x545b12(0x1ab)],_0x3141c3[_0x545b12(0x1dd)],_0x3141c3[_0x545b12(0x1e4)],_0x3141c3['lastAssignedTo'],_0x3141c3[_0x545b12(0x1e2)],_0x3141c3[_0x545b12(0x19d)],_0x3141c3[_0x545b12(0x1a7)])),_0x3141c3[_0x545b12(0x1e4)]?utils[_0x545b12(0x195)](_0x3141c3[_0x545b12(0x1e4)])[_0x545b12(0x1e8)](function(_0x2b2bc0){const _0x349e99=_0x545b12;_0x2b2bc0&&(_0x3141c3['type']=_0x2b2bc0[_0x349e99(0x1c0)]),utils[_0x349e99(0x19e)](_0x349e99(0x1ef),_0x3141c3);}):utils[_0x545b12(0x19e)](_0x545b12(0x1ef),_0x3141c3),_0x3141c3[_0x545b12(0x1ac)]?delete queues[_0x3141c3[_0x545b12(0x1ac)]]:delete queues[_0x3141c3['uniqueid']];}exports['queuecallerjoin']=function(_0x450417){const _0xaa1a38=a1395_0x32d860;try{utils['debug'](util[_0xaa1a38(0x1a0)]('[%s][queues][queuecallerjoin]',_0x450417['uniqueid']),_0x450417),utils[_0xaa1a38(0x1f7)](util[_0xaa1a38(0x1a0)](_0xaa1a38(0x1bd),_0x450417[_0xaa1a38(0x1ab)],_0x450417[_0xaa1a38(0x1e4)],_0x450417[_0xaa1a38(0x1a6)])),queues[_0x450417[_0xaa1a38(0x1ab)]]=_[_0xaa1a38(0x1c1)](_0x450417,{'originalposition':_0x450417['position'],'queuecallerjoinAt':utils[_0xaa1a38(0x198)](),'mohtime':0x0});}catch(_0x5da73b){utils[_0xaa1a38(0x1a3)](util['format'](_0xaa1a38(0x1cb),_0x450417[_0xaa1a38(0x1ab)]),_0x5da73b);}},exports[a1395_0x32d860(0x1bf)]=function(_0x1dbbe4){const _0x19d0fd=a1395_0x32d860;try{!_[_0x19d0fd(0x1bb)](queues[_0x1dbbe4['uniqueid']])&&(utils[_0x19d0fd(0x1e5)](util[_0x19d0fd(0x1a0)](_0x19d0fd(0x194),_0x1dbbe4['uniqueid']),_0x1dbbe4),queues[_0x1dbbe4[_0x19d0fd(0x1ab)]]['queuecallerleaveAt']?(!queues[_0x1dbbe4[_0x19d0fd(0x1ab)]][_0x19d0fd(0x1b6)]&&!queues[_0x1dbbe4[_0x19d0fd(0x1ab)]]['queuecallerexit']&&(queues[_0x1dbbe4[_0x19d0fd(0x1ab)]]['queuecallercomplete']=!![],queues[_0x1dbbe4['uniqueid']]['queuecallercompleteAt']=utils['now'](),queues[_0x1dbbe4['uniqueid']][_0x19d0fd(0x1a7)]=_0x19d0fd(0x1b9)),utils[_0x19d0fd(0x1f7)](util[_0x19d0fd(0x1a0)]('[%s][queues][hangup]\x20name:%s\x20queuecallerexitreason:%s',_0x1dbbe4[_0x19d0fd(0x1ab)],queues[_0x1dbbe4[_0x19d0fd(0x1ab)]][_0x19d0fd(0x1ca)],queues[_0x1dbbe4[_0x19d0fd(0x1ab)]][_0x19d0fd(0x1a7)])),writeDB(queues[_0x1dbbe4[_0x19d0fd(0x1ab)]])):queues[_0x1dbbe4[_0x19d0fd(0x1ab)]][_0x19d0fd(0x1ac)]&&(utils[_0x19d0fd(0x1f7)](util['format'](_0x19d0fd(0x1cc),_0x1dbbe4[_0x19d0fd(0x1ab)],queues[_0x1dbbe4[_0x19d0fd(0x1ab)]][_0x19d0fd(0x1ca)],queues[_0x1dbbe4['uniqueid']][_0x19d0fd(0x1ac)])),queues[queues[_0x1dbbe4[_0x19d0fd(0x1ab)]][_0x19d0fd(0x1ac)]]=queues[_0x1dbbe4[_0x19d0fd(0x1ab)]],queues[queues[_0x1dbbe4[_0x19d0fd(0x1ab)]]['transfereduniqueid']][_0x19d0fd(0x1f6)]=0x2,delete queues[_0x1dbbe4[_0x19d0fd(0x1ab)]]));}catch(_0x1ecdfb){utils[_0x19d0fd(0x1a3)](util['format'](_0x19d0fd(0x194),_0x1dbbe4[_0x19d0fd(0x1ab)]),_0x1ecdfb);}},exports['varset']=function(_0x8e03de){const _0x5ba1d0=a1395_0x32d860;try{utils[_0x5ba1d0(0x1e5)](util[_0x5ba1d0(0x1a0)](_0x5ba1d0(0x1f0),_0x8e03de[_0x5ba1d0(0x1ab)]),_0x8e03de);if(!_[_0x5ba1d0(0x1bb)](_0x8e03de[_0x5ba1d0(0x1e6)][_0x5ba1d0(0x1ce)])&&_0x8e03de['value'][_0x5ba1d0(0x1cf)]()!=='CONTINUE')!_[_0x5ba1d0(0x1bb)](queues[_0x8e03de[_0x5ba1d0(0x1ab)]])&&(queues[_0x8e03de['uniqueid']][_0x5ba1d0(0x1b6)]=![],queues[_0x8e03de['uniqueid']][_0x5ba1d0(0x1d2)]=null,queues[_0x8e03de['uniqueid']]['queuecallerexit']=!![],queues[_0x8e03de[_0x5ba1d0(0x1ab)]][_0x5ba1d0(0x1c7)]=utils['now'](),queues[_0x8e03de['uniqueid']]['queuecallerexitreason']=_0x8e03de['value'][_0x5ba1d0(0x1cf)](),utils[_0x5ba1d0(0x1f7)](util[_0x5ba1d0(0x1a0)]('[%s][queues][varset]\x20name:%s\x20variable:queuestatus\x20value:%s\x20queuecallerexitreason:%s',_0x8e03de['uniqueid'],queues[_0x8e03de['uniqueid']][_0x5ba1d0(0x1ca)],_0x8e03de['value'],queues[_0x8e03de['uniqueid']][_0x5ba1d0(0x1a7)])),writeDB(queues[_0x8e03de['uniqueid']]));else!_[_0x5ba1d0(0x1bb)](_0x8e03de[_0x5ba1d0(0x1e6)][_0x5ba1d0(0x1d9)])&&(!_[_0x5ba1d0(0x1bb)](queues[_0x8e03de[_0x5ba1d0(0x1ab)]])&&!queues[_0x8e03de[_0x5ba1d0(0x1ab)]][_0x5ba1d0(0x1b6)]&&(queues[_0x8e03de[_0x5ba1d0(0x1ab)]][_0x5ba1d0(0x1b6)]=![],queues[_0x8e03de['uniqueid']][_0x5ba1d0(0x1d2)]=null,queues[_0x8e03de['uniqueid']]['queuecallerexit']=!![],queues[_0x8e03de[_0x5ba1d0(0x1ab)]]['queuecallerexitAt']=utils[_0x5ba1d0(0x198)](),queues[_0x8e03de['uniqueid']][_0x5ba1d0(0x1a7)]=_0x5ba1d0(0x1c3),utils[_0x5ba1d0(0x1f7)](util[_0x5ba1d0(0x1a0)]('[%s][queues][varset]\x20name:%s\x20variable:queueposition\x20value:%s\x20queuecallerexitreason:%s',_0x8e03de[_0x5ba1d0(0x1ab)],queues[_0x8e03de[_0x5ba1d0(0x1ab)]][_0x5ba1d0(0x1ca)],_0x8e03de[_0x5ba1d0(0x193)],queues[_0x8e03de[_0x5ba1d0(0x1ab)]][_0x5ba1d0(0x1a7)]))));}catch(_0x4543fd){utils[_0x5ba1d0(0x1a3)](util['format'](_0x5ba1d0(0x1f0),_0x8e03de['uniqueid']),_0x4543fd);}},exports[a1395_0x32d860(0x1b6)]=function(_0x4f4da9){const _0x12e474=a1395_0x32d860;try{!_[_0x12e474(0x1bb)](queues[_0x4f4da9[_0x12e474(0x1ab)]])&&(utils['debug'](util[_0x12e474(0x1a0)](_0x12e474(0x1a5),_0x4f4da9[_0x12e474(0x1ab)]),_0x4f4da9),queues[_0x4f4da9[_0x12e474(0x1ab)]]['queuecallerexit']=![],queues[_0x4f4da9['uniqueid']]['queuecallerexitAt']=null,queues[_0x4f4da9[_0x12e474(0x1ab)]]['queuecallerabandon']=!![],queues[_0x4f4da9['uniqueid']][_0x12e474(0x1d2)]=utils[_0x12e474(0x198)](),queues[_0x4f4da9['uniqueid']]['queuecallerexitreason']=_0x12e474(0x1a8),utils['info'](util['format'](_0x12e474(0x1ec),_0x4f4da9[_0x12e474(0x1ab)],queues[_0x4f4da9[_0x12e474(0x1ab)]][_0x12e474(0x1ca)],queues[_0x4f4da9['uniqueid']][_0x12e474(0x1a7)])));}catch(_0x418de6){utils[_0x12e474(0x1a3)](util[_0x12e474(0x1a0)](_0x12e474(0x1a5),_0x4f4da9[_0x12e474(0x1ab)]),_0x418de6);}},exports['queuecallerleave']=function(_0x555d87){const _0x1577c3=a1395_0x32d860;try{!_['isNil'](queues[_0x555d87[_0x1577c3(0x1ab)]])&&(utils[_0x1577c3(0x1e5)](util[_0x1577c3(0x1a0)]('[%s][queues][queuecallerleave]',_0x555d87[_0x1577c3(0x1ab)]),_0x555d87),utils[_0x1577c3(0x1f7)](util[_0x1577c3(0x1a0)](_0x1577c3(0x1aa),_0x555d87[_0x1577c3(0x1ab)],queues[_0x555d87[_0x1577c3(0x1ab)]][_0x1577c3(0x1ca)],_0x555d87[_0x1577c3(0x1c5)],_0x555d87[_0x1577c3(0x19a)])),queues[_0x555d87[_0x1577c3(0x1ab)]][_0x1577c3(0x1b0)]=!![],queues[_0x555d87[_0x1577c3(0x1ab)]][_0x1577c3(0x1d6)]=utils['now'](),queues[_0x555d87[_0x1577c3(0x1ab)]]['holdtime']=utils[_0x1577c3(0x1bc)](queues[_0x555d87['uniqueid']][_0x1577c3(0x1d6)],queues[_0x555d87[_0x1577c3(0x1ab)]][_0x1577c3(0x1a2)]),queues[_0x555d87[_0x1577c3(0x1ab)]]['position']=_0x555d87['position'],queues[_0x555d87['uniqueid']][_0x1577c3(0x19f)]=_0x555d87[_0x1577c3(0x19f)],queues[_0x555d87[_0x1577c3(0x1ab)]]['connectedlinenum']=_0x555d87['connectedlinenum'],queues[_0x555d87[_0x1577c3(0x1ab)]][_0x1577c3(0x19a)]=_0x555d87[_0x1577c3(0x19a)]);}catch(_0x433955){utils[_0x1577c3(0x1a3)](util[_0x1577c3(0x1a0)](_0x1577c3(0x1d3),_0x555d87[_0x1577c3(0x1ab)]),_0x433955);}},exports[a1395_0x32d860(0x1b7)]=function(_0x52c5e6){const _0x8c7eb5=a1395_0x32d860;try{!_[_0x8c7eb5(0x1bb)](queues[_0x52c5e6[_0x8c7eb5(0x1ab)]])&&(utils[_0x8c7eb5(0x1e5)](util[_0x8c7eb5(0x1a0)](_0x8c7eb5(0x1d7),_0x52c5e6[_0x8c7eb5(0x1ab)]),_0x52c5e6),utils[_0x8c7eb5(0x1f7)](util[_0x8c7eb5(0x1a0)](_0x8c7eb5(0x1d1),_0x52c5e6[_0x8c7eb5(0x1ab)],queues[_0x52c5e6[_0x8c7eb5(0x1ab)]][_0x8c7eb5(0x1ca)],_0x52c5e6[_0x8c7eb5(0x196)],_0x52c5e6['destaccountcode'])),queues[_0x52c5e6[_0x8c7eb5(0x1ab)]][_0x8c7eb5(0x1b6)]=![],queues[_0x52c5e6[_0x8c7eb5(0x1ab)]][_0x8c7eb5(0x1b6)]=![],queues[_0x52c5e6[_0x8c7eb5(0x1ab)]][_0x8c7eb5(0x1d2)]=null,queues[_0x52c5e6[_0x8c7eb5(0x1ab)]][_0x8c7eb5(0x19c)]=![],queues[_0x52c5e6['uniqueid']][_0x8c7eb5(0x1a7)]=null,queues[_0x52c5e6[_0x8c7eb5(0x1ab)]][_0x8c7eb5(0x1c7)]=null,queues[_0x52c5e6['uniqueid']][_0x8c7eb5(0x1ea)]=!![],queues[_0x52c5e6[_0x8c7eb5(0x1ab)]][_0x8c7eb5(0x19d)]=_0x52c5e6[_0x8c7eb5(0x1db)],queues[_0x52c5e6[_0x8c7eb5(0x1ab)]][_0x8c7eb5(0x1dc)]=_0x52c5e6[_0x8c7eb5(0x196)]);}catch(_0x1c3fbc){utils[_0x8c7eb5(0x1a3)](util[_0x8c7eb5(0x1a0)](_0x8c7eb5(0x1d7),_0x52c5e6[_0x8c7eb5(0x1ab)]),_0x1c3fbc);}},exports['agentcomplete']=function(_0x2f1daa){const _0x1cd8ea=a1395_0x32d860;try{!_[_0x1cd8ea(0x1bb)](queues[_0x2f1daa[_0x1cd8ea(0x1ab)]])&&(queues[_0x2f1daa[_0x1cd8ea(0x1ab)]][_0x1cd8ea(0x1d6)]&&(utils['debug'](util[_0x1cd8ea(0x1a0)]('[%s][queues][agentcomplete]',_0x2f1daa['uniqueid']),_0x2f1daa),queues[_0x2f1daa[_0x1cd8ea(0x1ab)]][_0x1cd8ea(0x1b6)]=![],queues[_0x2f1daa[_0x1cd8ea(0x1ab)]][_0x1cd8ea(0x1b6)]=![],queues[_0x2f1daa[_0x1cd8ea(0x1ab)]]['queuecallerabandonAt']=null,queues[_0x2f1daa[_0x1cd8ea(0x1ab)]]['queuecallerexit']=![],queues[_0x2f1daa[_0x1cd8ea(0x1ab)]][_0x1cd8ea(0x1c7)]=null,queues[_0x2f1daa[_0x1cd8ea(0x1ab)]][_0x1cd8ea(0x1ea)]=!![],queues[_0x2f1daa['uniqueid']][_0x1cd8ea(0x1dc)]=_0x2f1daa['membername'],queues[_0x2f1daa[_0x1cd8ea(0x1ab)]][_0x1cd8ea(0x1a9)]=!![],queues[_0x2f1daa[_0x1cd8ea(0x1ab)]][_0x1cd8ea(0x1ad)]=utils[_0x1cd8ea(0x198)](),_0x2f1daa[_0x1cd8ea(0x1e9)]==_0x1cd8ea(0x1be)?!queues[_0x2f1daa[_0x1cd8ea(0x1ab)]]['transfer']&&(queues[_0x2f1daa[_0x1cd8ea(0x1ab)]]['queuecallerexitreason']=_0x1cd8ea(0x1c8)):queues[_0x2f1daa[_0x1cd8ea(0x1ab)]]['queuecallerexitreason']=_0x1cd8ea(0x1f4)+_0x2f1daa[_0x1cd8ea(0x1e9)][_0x1cd8ea(0x1cf)](),utils[_0x1cd8ea(0x1f7)](util[_0x1cd8ea(0x1a0)](_0x1cd8ea(0x1e1),_0x2f1daa[_0x1cd8ea(0x1ab)],queues[_0x2f1daa[_0x1cd8ea(0x1ab)]]['name'],_0x2f1daa[_0x1cd8ea(0x196)],queues[_0x2f1daa['uniqueid']]['queuecallerexitreason'])),writeDB(queues[_0x2f1daa[_0x1cd8ea(0x1ab)]])));}catch(_0x37c4e3){utils['error'](util[_0x1cd8ea(0x1a0)](_0x1cd8ea(0x1b5),_0x2f1daa[_0x1cd8ea(0x1ab)]),_0x37c4e3);}},exports['blindtransfer']=function(_0x3d1186){const _0x5b2632=a1395_0x32d860;try{!_[_0x5b2632(0x1bb)](queues[_0x3d1186[_0x5b2632(0x1c4)]])&&(utils[_0x5b2632(0x1e5)](util[_0x5b2632(0x1a0)](_0x5b2632(0x1ee),_0x3d1186['uniqueid']),_0x3d1186),queues[_0x3d1186[_0x5b2632(0x1c4)]][_0x5b2632(0x1be)]=!![],queues[_0x3d1186[_0x5b2632(0x1c4)]]['transfertype']='BLIND',queues[_0x3d1186[_0x5b2632(0x1c4)]][_0x5b2632(0x1c9)]=_0x3d1186[_0x5b2632(0x1e7)],queues[_0x3d1186[_0x5b2632(0x1c4)]][_0x5b2632(0x1c6)]=_0x3d1186[_0x5b2632(0x1c4)],queues[_0x3d1186['transfereeuniqueid']][_0x5b2632(0x1a7)]='BLINDTRANSFER',utils['info'](util[_0x5b2632(0x1a0)](_0x5b2632(0x1b3),_0x3d1186[_0x5b2632(0x1ab)],queues[_0x3d1186[_0x5b2632(0x1c4)]][_0x5b2632(0x1ca)],_0x3d1186['transfereeuniqueid'],_0x3d1186[_0x5b2632(0x1e7)])));}catch(_0x160558){utils[_0x5b2632(0x1a3)](util[_0x5b2632(0x1a0)](_0x5b2632(0x1ee),_0x3d1186[_0x5b2632(0x1ab)]),_0x160558);}},exports[a1395_0x32d860(0x1e0)]=function(_0x2e17a5){const _0x1e4759=a1395_0x32d860;try{utils['debug'](util['format'](_0x1e4759(0x1d4),_0x2e17a5[_0x1e4759(0x1ab)]),_0x2e17a5);if(_0x2e17a5['origtransfereruniqueid']==_0x2e17a5['origtransfererlinkedid'])!_[_0x1e4759(0x1bb)](queues[_0x2e17a5[_0x1e4759(0x192)]])&&(utils[_0x1e4759(0x1f7)](util[_0x1e4759(0x1a0)](_0x1e4759(0x1d5),_0x2e17a5[_0x1e4759(0x1ab)],queues[_0x2e17a5['secondtransfererlinkedid']]['name'],_0x2e17a5[_0x1e4759(0x1f1)],_0x2e17a5[_0x1e4759(0x1c2)])),queues[_0x2e17a5['secondtransfererlinkedid']]['transfer']=!![],queues[_0x2e17a5[_0x1e4759(0x192)]][_0x1e4759(0x1a4)]='ATTENDED',queues[_0x2e17a5[_0x1e4759(0x192)]][_0x1e4759(0x1c9)]=_0x2e17a5['origtransfererexten'],queues[_0x2e17a5[_0x1e4759(0x192)]][_0x1e4759(0x1c6)]=_0x2e17a5[_0x1e4759(0x1f1)],queues[_0x2e17a5[_0x1e4759(0x192)]][_0x1e4759(0x1a7)]=_0x1e4759(0x197)),!_[_0x1e4759(0x1bb)](queues[_0x2e17a5[_0x1e4759(0x1e3)]])&&(_0x2e17a5[_0x1e4759(0x1de)]&&queues[_0x2e17a5[_0x1e4759(0x1de)]]?(utils[_0x1e4759(0x1f7)](util[_0x1e4759(0x1a0)](_0x1e4759(0x1b8),_0x2e17a5[_0x1e4759(0x1ab)],queues[_0x2e17a5['transfereeuniqueid']][_0x1e4759(0x1ca)],_0x2e17a5['transfertargetuniqueid'],queues[_0x2e17a5[_0x1e4759(0x192)]][_0x1e4759(0x1e2)],queues[_0x2e17a5[_0x1e4759(0x192)]]['calleridname'])),queues[_0x2e17a5['transfereelinkedid']]['queuecallerenterreason']=0x1,queues[_0x2e17a5[_0x1e4759(0x1c4)]]=_[_0x1e4759(0x1af)](queues[_0x2e17a5[_0x1e4759(0x1de)]]),queues[_0x2e17a5[_0x1e4759(0x1c4)]][_0x1e4759(0x1ac)]=_0x2e17a5[_0x1e4759(0x1a1)],queues[_0x2e17a5[_0x1e4759(0x1c4)]][_0x1e4759(0x1f6)]=0x2,queues[_0x2e17a5[_0x1e4759(0x1c4)]]['calleridnum']=queues[_0x2e17a5[_0x1e4759(0x192)]][_0x1e4759(0x1e2)],queues[_0x2e17a5['transfereeuniqueid']][_0x1e4759(0x1d8)]=queues[_0x2e17a5[_0x1e4759(0x192)]]['calleridname'],queues[_0x2e17a5[_0x1e4759(0x1c4)]][_0x1e4759(0x1a2)]=utils[_0x1e4759(0x198)](),queues[_0x2e17a5[_0x1e4759(0x1c4)]]['queuecallerleaveAt']=utils[_0x1e4759(0x198)](),queues[_0x2e17a5[_0x1e4759(0x1c4)]][_0x1e4759(0x1f8)]=0x0,queues[_0x2e17a5[_0x1e4759(0x1c4)]][_0x1e4759(0x1d0)]=0x0):(utils[_0x1e4759(0x1f7)](util[_0x1e4759(0x1a0)]('[%s][queues][attendedtransfer]\x20name:%s\x20transfereduniqueid:%s',_0x2e17a5['uniqueid'],queues[_0x2e17a5[_0x1e4759(0x1e3)]]['name'],_0x2e17a5[_0x1e4759(0x192)])),queues[_0x2e17a5[_0x1e4759(0x1e3)]]['transfereduniqueid']=_0x2e17a5['secondtransfererlinkedid']));else _0x2e17a5[_0x1e4759(0x1ae)]==_0x2e17a5[_0x1e4759(0x192)]&&(!_['isNil'](queues[_0x2e17a5['origtransfererlinkedid']])&&(utils[_0x1e4759(0x1f7)](util[_0x1e4759(0x1a0)](_0x1e4759(0x1d5),_0x2e17a5[_0x1e4759(0x1ab)],queues[_0x2e17a5[_0x1e4759(0x1e3)]][_0x1e4759(0x1ca)],_0x2e17a5[_0x1e4759(0x1ae)],_0x2e17a5[_0x1e4759(0x1b4)])),queues[_0x2e17a5['origtransfererlinkedid']]['transfer']=!![],queues[_0x2e17a5[_0x1e4759(0x1e3)]][_0x1e4759(0x1a4)]=_0x1e4759(0x1eb),queues[_0x2e17a5[_0x1e4759(0x1e3)]][_0x1e4759(0x1c9)]=_0x2e17a5['secondtransfererexten'],queues[_0x2e17a5['origtransfererlinkedid']][_0x1e4759(0x1c6)]=_0x2e17a5[_0x1e4759(0x1ae)],queues[_0x2e17a5['origtransfererlinkedid']][_0x1e4759(0x1a7)]='ATTENDEDTRANSFER'),!_['isNil'](queues[_0x2e17a5[_0x1e4759(0x192)]])&&(_0x2e17a5[_0x1e4759(0x1cd)]&&queues[_0x2e17a5[_0x1e4759(0x1cd)]]?(utils['info'](util[_0x1e4759(0x1a0)](_0x1e4759(0x1b8),_0x2e17a5[_0x1e4759(0x1ab)],queues[_0x2e17a5[_0x1e4759(0x1a1)]]['name'],_0x2e17a5[_0x1e4759(0x1a1)],queues[_0x2e17a5[_0x1e4759(0x1a1)]][_0x1e4759(0x1e2)],queues[_0x2e17a5[_0x1e4759(0x1a1)]][_0x1e4759(0x1d8)])),queues[_0x2e17a5['transfertargetlinkedid']]['queuecallerenterreason']=0x1,queues[_0x2e17a5[_0x1e4759(0x1a1)]]=_[_0x1e4759(0x1af)](queues[_0x2e17a5[_0x1e4759(0x1cd)]]),queues[_0x2e17a5[_0x1e4759(0x1a1)]]['transfereduniqueid']=_0x2e17a5['transfertargetuniqueid'],queues[_0x2e17a5[_0x1e4759(0x1a1)]]['queuecallerenterreason']=0x2,queues[_0x2e17a5[_0x1e4759(0x1a1)]]['calleridnum']=queues[_0x2e17a5[_0x1e4759(0x1e3)]][_0x1e4759(0x1e2)],queues[_0x2e17a5['transfertargetuniqueid']][_0x1e4759(0x1d8)]=queues[_0x2e17a5[_0x1e4759(0x1e3)]][_0x1e4759(0x1d8)],queues[_0x2e17a5[_0x1e4759(0x1a1)]][_0x1e4759(0x1a2)]=utils[_0x1e4759(0x198)](),queues[_0x2e17a5[_0x1e4759(0x1a1)]][_0x1e4759(0x1d6)]=utils[_0x1e4759(0x198)](),queues[_0x2e17a5[_0x1e4759(0x1a1)]][_0x1e4759(0x1f8)]=0x0,queues[_0x2e17a5[_0x1e4759(0x1a1)]][_0x1e4759(0x1d0)]=0x0):(utils[_0x1e4759(0x1f7)](util[_0x1e4759(0x1a0)](_0x1e4759(0x1ed),_0x2e17a5[_0x1e4759(0x1ab)],queues[_0x2e17a5['secondtransfererlinkedid']][_0x1e4759(0x1ca)],_0x2e17a5['origtransfererlinkedid'])),queues[_0x2e17a5['secondtransfererlinkedid']][_0x1e4759(0x1ac)]=_0x2e17a5['origtransfererlinkedid'])));}catch(_0x48ed33){utils[_0x1e4759(0x1a3)](util[_0x1e4759(0x1a0)](_0x1e4759(0x1d4),_0x2e17a5[_0x1e4759(0x1ab)]),_0x48ed33);}},exports[a1395_0x32d860(0x1ba)]=function(_0x8ce9d8){const _0x5b953d=a1395_0x32d860;try{!_[_0x5b953d(0x1bb)](queues[_0x8ce9d8['uniqueid']])&&(utils[_0x5b953d(0x1e5)](util[_0x5b953d(0x1a0)](_0x5b953d(0x199),_0x8ce9d8[_0x5b953d(0x1ab)]),_0x8ce9d8),queues[_0x8ce9d8['uniqueid']][_0x5b953d(0x19b)]=utils['now'](),utils['info'](util[_0x5b953d(0x1a0)]('[%s][queues][musiconholdstop]\x20name:%s\x20musiconholdstartAt:%s',_0x8ce9d8['uniqueid'],queues[_0x8ce9d8[_0x5b953d(0x1ab)]][_0x5b953d(0x1ca)],queues[_0x8ce9d8[_0x5b953d(0x1ab)]][_0x5b953d(0x19b)])));}catch(_0x473493){utils[_0x5b953d(0x1a3)](util[_0x5b953d(0x1a0)](_0x5b953d(0x199),_0x8ce9d8[_0x5b953d(0x1ab)]),_0x473493);}},exports[a1395_0x32d860(0x1df)]=function(_0x3284fd){const _0x2b0b66=a1395_0x32d860;try{!_['isNil'](queues[_0x3284fd['uniqueid']])&&(!_[_0x2b0b66(0x1bb)](queues[_0x3284fd[_0x2b0b66(0x1ab)]]['musiconholdstartAt'])&&(utils[_0x2b0b66(0x1e5)](util[_0x2b0b66(0x1a0)](_0x2b0b66(0x1f2),_0x3284fd[_0x2b0b66(0x1ab)]),_0x3284fd),queues[_0x3284fd['uniqueid']][_0x2b0b66(0x1d0)]+=utils[_0x2b0b66(0x1bc)](utils['now'](),queues[_0x3284fd[_0x2b0b66(0x1ab)]][_0x2b0b66(0x19b)]),utils[_0x2b0b66(0x1f7)](util[_0x2b0b66(0x1a0)](_0x2b0b66(0x1b2),_0x3284fd[_0x2b0b66(0x1ab)],queues[_0x3284fd[_0x2b0b66(0x1ab)]][_0x2b0b66(0x1ca)],queues[_0x3284fd['uniqueid']][_0x2b0b66(0x1d0)])),delete queues[_0x3284fd[_0x2b0b66(0x1ab)]]['musiconholdstartAt']));}catch(_0xd1dd67){utils['error'](util[_0x2b0b66(0x1a0)]('[%s][queues][musiconholdstop]',_0x3284fd['uniqueid']),_0xd1dd67);}}; \ No newline at end of file +const a1395_0x15dd=['queuestatus','attendedtransfer','uniqueid','[%s][queues][queuecallerleave]\x20name:%s\x20connectedlinenum:%s\x20connectedlinename:%s','mohtime','[%s][queues][attendedtransfer]\x20name:%s\x20transfereduniqueid:%s','assign','now','holdtime','BLINDTRANSFER','calleridname','ATTENDED','[%s][queues][varset]\x20name:%s\x20variable:queueposition\x20value:%s\x20queuecallerexitreason:%s','secondtransfererexten','transfertype','queuecallerleaveAt','queuecallerleave','[%s][queues][musiconholdstop]\x20name:%s\x20mohtime:%s','[%s][queues][agentcomplete]','secondtransfererlinkedid','[%s][queues][agentconnect]\x20name:%s\x20agent:%s\x20accountcode:%s','extension','type','[%s][queues][varset]\x20name:%s\x20variable:queuestatus\x20value:%s\x20queuecallerexitreason:%s','value','[%s][queues][attendedtransfer]','transferuniqueid','queuecallerabandonAt','membername','position','queuecallercomplete','clone','destaccountcode','queuecallerabandon','queuecallerjoinAt','CONTINUE','[%s][queues][hangup]','origtransfereruniqueid','COMPLETEDBY','transfereduniqueid','toUpperCase','[%s][queues][musiconholdstart]','[%s][queues][musiconholdstop]','queuecallerexit','error','isNil','CreateVoiceQueueReport','variable','ABANDONED','assigned','BLIND','queuecallerexitreason','transfer','secondtransfereruniqueid','name','EXITWITHKEY','debug','util','TRANSFER','accountcode','queue','queuecallerjoin','transfertargetuniqueid','count','format','queuecallercompleteAt','blindtransfer','origtransfererexten','COMPLETEDBYAGENT','transfereelinkedid','[%s][queues][hangup]\x20name:%s\x20transfereduniqueid:%s','channel','[%s][queues][agentcomplete]\x20name:%s\x20agent:%s\x20queuecallerexitreason:%s','diffTime','[%s][queues][attendedtransfer]\x20name:%s\x20transferuniqueid:%s\x20transferexten:%s\x20queuecallerexitreason:ATTENDEDTRANSFER','info','lastAssignedTo','calleridnum','queuecallerexitAt','[%s][queues][blindtransfer]','musiconholdstop','[%s][queues][varset]','[%s][queues][musiconholdstop]\x20name:%s\x20musiconholdstartAt:%s','connectedlinenum','connectedlinename','queuecallerenterreason','[%s][queues][blindtransfer]\x20name:%s\x20transferuniqueid:%s\x20transferexten:%s\x20queuecallerexitreason:BLINDTRANSFER','ATTENDEDTRANSFER','musiconholdstartAt','transferexten','request','reason','[%s][queues][writeDB]\x20channel:%s\x20queue:%s\x20lastAssignedTo:%s\x20calleridnum:%s\x20accountcode:%s\x20queuecallerexitreason:%s','[%s][queues][agentconnect]','hangup','transfereeuniqueid','transfertargetlinkedid','[%s][queues][queuecallerabandon]\x20name:%s\x20queuecallerexitreason:%s','agentconnect','origtransfererlinkedid','then'];(function(_0xf4077c,_0x59923c){const _0x15dd55=function(_0x2049bb){while(--_0x2049bb){_0xf4077c['push'](_0xf4077c['shift']());}};_0x15dd55(++_0x59923c);}(a1395_0x15dd,0x1ed));const a1395_0x2049=function(_0xf4077c,_0x59923c){_0xf4077c=_0xf4077c-0xa7;let _0x15dd55=a1395_0x15dd[_0xf4077c];return _0x15dd55;};const a1395_0x407bee=a1395_0x2049;'use strict';const _=require('lodash'),util=require(a1395_0x407bee(0xec)),utils=require('./utils'),queues={};function writeDB(_0x4f00db){const _0x22af17=a1395_0x407bee;utils[_0x22af17(0xfe)](util[_0x22af17(0xf3)](_0x22af17(0xaa),_0x4f00db[_0x22af17(0xb5)],_0x4f00db[_0x22af17(0xfa)],_0x4f00db[_0x22af17(0xef)],_0x4f00db[_0x22af17(0xff)],_0x4f00db[_0x22af17(0x100)],_0x4f00db[_0x22af17(0xee)],_0x4f00db[_0x22af17(0xe6)])),_0x4f00db['queue']?utils['getVoiceQueueByName'](_0x4f00db['queue'])[_0x22af17(0xb2)](function(_0x36566e){const _0x40996d=_0x22af17;_0x36566e&&(_0x4f00db['type']=_0x36566e[_0x40996d(0xc9)]),utils[_0x40996d(0xa8)](_0x40996d(0xe1),_0x4f00db);}):utils[_0x22af17(0xa8)](_0x22af17(0xe1),_0x4f00db),_0x4f00db['transfereduniqueid']?delete queues[_0x4f00db['transfereduniqueid']]:delete queues[_0x4f00db[_0x22af17(0xb5)]];}exports[a1395_0x407bee(0xf0)]=function(_0x20a705){const _0x42ae13=a1395_0x407bee;try{utils[_0x42ae13(0xeb)](util['format']('[%s][queues][queuecallerjoin]',_0x20a705['uniqueid']),_0x20a705),utils[_0x42ae13(0xfe)](util['format']('[%s][queues][queuecallerjoin]\x20name:%s\x20position:%s',_0x20a705[_0x42ae13(0xb5)],_0x20a705[_0x42ae13(0xef)],_0x20a705[_0x42ae13(0xd0)])),queues[_0x20a705[_0x42ae13(0xb5)]]=_[_0x42ae13(0xb9)](_0x20a705,{'originalposition':_0x20a705['position'],'queuecallerjoinAt':utils['now'](),'mohtime':0x0});}catch(_0x5de889){utils[_0x42ae13(0xdf)](util[_0x42ae13(0xf3)]('[%s][queues][queuecallerjoin]',_0x20a705[_0x42ae13(0xb5)]),_0x5de889);}},exports[a1395_0x407bee(0xac)]=function(_0x1bb2ff){const _0x4627ef=a1395_0x407bee;try{!_[_0x4627ef(0xe0)](queues[_0x1bb2ff[_0x4627ef(0xb5)]])&&(utils[_0x4627ef(0xeb)](util[_0x4627ef(0xf3)](_0x4627ef(0xd7),_0x1bb2ff[_0x4627ef(0xb5)]),_0x1bb2ff),queues[_0x1bb2ff[_0x4627ef(0xb5)]][_0x4627ef(0xc2)]?(!queues[_0x1bb2ff[_0x4627ef(0xb5)]][_0x4627ef(0xd4)]&&!queues[_0x1bb2ff[_0x4627ef(0xb5)]][_0x4627ef(0xde)]&&(queues[_0x1bb2ff['uniqueid']][_0x4627ef(0xd1)]=!![],queues[_0x1bb2ff['uniqueid']]['queuecallercompleteAt']=utils[_0x4627ef(0xba)](),queues[_0x1bb2ff[_0x4627ef(0xb5)]][_0x4627ef(0xe6)]=_0x4627ef(0xf7)),utils[_0x4627ef(0xfe)](util[_0x4627ef(0xf3)]('[%s][queues][hangup]\x20name:%s\x20queuecallerexitreason:%s',_0x1bb2ff['uniqueid'],queues[_0x1bb2ff['uniqueid']]['name'],queues[_0x1bb2ff[_0x4627ef(0xb5)]]['queuecallerexitreason'])),writeDB(queues[_0x1bb2ff['uniqueid']])):queues[_0x1bb2ff[_0x4627ef(0xb5)]]['transfereduniqueid']&&(utils[_0x4627ef(0xfe)](util['format'](_0x4627ef(0xf9),_0x1bb2ff[_0x4627ef(0xb5)],queues[_0x1bb2ff[_0x4627ef(0xb5)]][_0x4627ef(0xe9)],queues[_0x1bb2ff[_0x4627ef(0xb5)]]['transfereduniqueid'])),queues[queues[_0x1bb2ff[_0x4627ef(0xb5)]][_0x4627ef(0xda)]]=queues[_0x1bb2ff[_0x4627ef(0xb5)]],queues[queues[_0x1bb2ff[_0x4627ef(0xb5)]][_0x4627ef(0xda)]][_0x4627ef(0x108)]=0x2,delete queues[_0x1bb2ff[_0x4627ef(0xb5)]]));}catch(_0x157bf0){utils[_0x4627ef(0xdf)](util[_0x4627ef(0xf3)](_0x4627ef(0xd7),_0x1bb2ff[_0x4627ef(0xb5)]),_0x157bf0);}},exports['varset']=function(_0x10549b){const _0xcd940a=a1395_0x407bee;try{utils[_0xcd940a(0xeb)](util['format'](_0xcd940a(0x104),_0x10549b['uniqueid']),_0x10549b);if(!_['isNil'](_0x10549b[_0xcd940a(0xe2)][_0xcd940a(0xb3)])&&_0x10549b[_0xcd940a(0xcb)][_0xcd940a(0xdb)]()!==_0xcd940a(0xd6))!_[_0xcd940a(0xe0)](queues[_0x10549b['uniqueid']])&&(queues[_0x10549b[_0xcd940a(0xb5)]][_0xcd940a(0xd4)]=![],queues[_0x10549b[_0xcd940a(0xb5)]][_0xcd940a(0xce)]=null,queues[_0x10549b[_0xcd940a(0xb5)]]['queuecallerexit']=!![],queues[_0x10549b[_0xcd940a(0xb5)]][_0xcd940a(0x101)]=utils[_0xcd940a(0xba)](),queues[_0x10549b[_0xcd940a(0xb5)]]['queuecallerexitreason']=_0x10549b['value'][_0xcd940a(0xdb)](),utils[_0xcd940a(0xfe)](util['format'](_0xcd940a(0xca),_0x10549b[_0xcd940a(0xb5)],queues[_0x10549b['uniqueid']]['name'],_0x10549b['value'],queues[_0x10549b[_0xcd940a(0xb5)]][_0xcd940a(0xe6)])),writeDB(queues[_0x10549b[_0xcd940a(0xb5)]]));else!_['isNil'](_0x10549b[_0xcd940a(0xe2)]['queueposition'])&&(!_[_0xcd940a(0xe0)](queues[_0x10549b['uniqueid']])&&!queues[_0x10549b[_0xcd940a(0xb5)]]['queuecallerabandon']&&(queues[_0x10549b[_0xcd940a(0xb5)]][_0xcd940a(0xd4)]=![],queues[_0x10549b[_0xcd940a(0xb5)]][_0xcd940a(0xce)]=null,queues[_0x10549b['uniqueid']][_0xcd940a(0xde)]=!![],queues[_0x10549b[_0xcd940a(0xb5)]][_0xcd940a(0x101)]=utils[_0xcd940a(0xba)](),queues[_0x10549b[_0xcd940a(0xb5)]][_0xcd940a(0xe6)]=_0xcd940a(0xea),utils['info'](util[_0xcd940a(0xf3)](_0xcd940a(0xbf),_0x10549b[_0xcd940a(0xb5)],queues[_0x10549b[_0xcd940a(0xb5)]][_0xcd940a(0xe9)],_0x10549b[_0xcd940a(0xcb)],queues[_0x10549b[_0xcd940a(0xb5)]][_0xcd940a(0xe6)]))));}catch(_0x2dc7bd){utils[_0xcd940a(0xdf)](util['format']('[%s][queues][varset]',_0x10549b['uniqueid']),_0x2dc7bd);}},exports[a1395_0x407bee(0xd4)]=function(_0x4327ea){const _0x2b16b3=a1395_0x407bee;try{!_['isNil'](queues[_0x4327ea['uniqueid']])&&(utils['debug'](util[_0x2b16b3(0xf3)]('[%s][queues][queuecallerabandon]',_0x4327ea[_0x2b16b3(0xb5)]),_0x4327ea),queues[_0x4327ea[_0x2b16b3(0xb5)]]['queuecallerexit']=![],queues[_0x4327ea[_0x2b16b3(0xb5)]]['queuecallerexitAt']=null,queues[_0x4327ea[_0x2b16b3(0xb5)]][_0x2b16b3(0xd4)]=!![],queues[_0x4327ea[_0x2b16b3(0xb5)]][_0x2b16b3(0xce)]=utils[_0x2b16b3(0xba)](),queues[_0x4327ea[_0x2b16b3(0xb5)]][_0x2b16b3(0xe6)]=_0x2b16b3(0xe3),utils[_0x2b16b3(0xfe)](util[_0x2b16b3(0xf3)](_0x2b16b3(0xaf),_0x4327ea[_0x2b16b3(0xb5)],queues[_0x4327ea[_0x2b16b3(0xb5)]]['name'],queues[_0x4327ea['uniqueid']][_0x2b16b3(0xe6)])));}catch(_0x441156){utils[_0x2b16b3(0xdf)](util[_0x2b16b3(0xf3)]('[%s][queues][queuecallerabandon]',_0x4327ea[_0x2b16b3(0xb5)]),_0x441156);}},exports['queuecallerleave']=function(_0x440ae9){const _0x10ba5f=a1395_0x407bee;try{!_[_0x10ba5f(0xe0)](queues[_0x440ae9['uniqueid']])&&(utils[_0x10ba5f(0xeb)](util[_0x10ba5f(0xf3)]('[%s][queues][queuecallerleave]',_0x440ae9['uniqueid']),_0x440ae9),utils[_0x10ba5f(0xfe)](util[_0x10ba5f(0xf3)](_0x10ba5f(0xb6),_0x440ae9['uniqueid'],queues[_0x440ae9[_0x10ba5f(0xb5)]][_0x10ba5f(0xe9)],_0x440ae9[_0x10ba5f(0x106)],_0x440ae9[_0x10ba5f(0x107)])),queues[_0x440ae9[_0x10ba5f(0xb5)]][_0x10ba5f(0xc3)]=!![],queues[_0x440ae9[_0x10ba5f(0xb5)]][_0x10ba5f(0xc2)]=utils[_0x10ba5f(0xba)](),queues[_0x440ae9['uniqueid']][_0x10ba5f(0xbb)]=utils[_0x10ba5f(0xfc)](queues[_0x440ae9[_0x10ba5f(0xb5)]][_0x10ba5f(0xc2)],queues[_0x440ae9[_0x10ba5f(0xb5)]][_0x10ba5f(0xd5)]),queues[_0x440ae9['uniqueid']][_0x10ba5f(0xd0)]=_0x440ae9[_0x10ba5f(0xd0)],queues[_0x440ae9['uniqueid']]['count']=_0x440ae9[_0x10ba5f(0xf2)],queues[_0x440ae9[_0x10ba5f(0xb5)]][_0x10ba5f(0x106)]=_0x440ae9[_0x10ba5f(0x106)],queues[_0x440ae9[_0x10ba5f(0xb5)]][_0x10ba5f(0x107)]=_0x440ae9['connectedlinename']);}catch(_0x7187d0){utils['error'](util['format']('[%s][queues][queuecallerleave]',_0x440ae9[_0x10ba5f(0xb5)]),_0x7187d0);}},exports[a1395_0x407bee(0xb0)]=function(_0x461a22){const _0xef8a27=a1395_0x407bee;try{!_[_0xef8a27(0xe0)](queues[_0x461a22[_0xef8a27(0xb5)]])&&(utils[_0xef8a27(0xeb)](util['format'](_0xef8a27(0xab),_0x461a22[_0xef8a27(0xb5)]),_0x461a22),utils[_0xef8a27(0xfe)](util[_0xef8a27(0xf3)](_0xef8a27(0xc7),_0x461a22[_0xef8a27(0xb5)],queues[_0x461a22[_0xef8a27(0xb5)]][_0xef8a27(0xe9)],_0x461a22['membername'],_0x461a22['destaccountcode'])),queues[_0x461a22[_0xef8a27(0xb5)]][_0xef8a27(0xd4)]=![],queues[_0x461a22['uniqueid']]['queuecallerabandon']=![],queues[_0x461a22['uniqueid']][_0xef8a27(0xce)]=null,queues[_0x461a22[_0xef8a27(0xb5)]]['queuecallerexit']=![],queues[_0x461a22[_0xef8a27(0xb5)]]['queuecallerexitreason']=null,queues[_0x461a22[_0xef8a27(0xb5)]][_0xef8a27(0x101)]=null,queues[_0x461a22[_0xef8a27(0xb5)]]['assigned']=!![],queues[_0x461a22['uniqueid']][_0xef8a27(0xee)]=_0x461a22[_0xef8a27(0xd3)],queues[_0x461a22[_0xef8a27(0xb5)]][_0xef8a27(0xff)]=_0x461a22[_0xef8a27(0xcf)]);}catch(_0x2d4e93){utils[_0xef8a27(0xdf)](util[_0xef8a27(0xf3)]('[%s][queues][agentconnect]',_0x461a22[_0xef8a27(0xb5)]),_0x2d4e93);}},exports['agentcomplete']=function(_0xcde09d){const _0x166a66=a1395_0x407bee;try{!_[_0x166a66(0xe0)](queues[_0xcde09d[_0x166a66(0xb5)]])&&(queues[_0xcde09d[_0x166a66(0xb5)]][_0x166a66(0xc2)]&&(utils[_0x166a66(0xeb)](util[_0x166a66(0xf3)](_0x166a66(0xc5),_0xcde09d['uniqueid']),_0xcde09d),queues[_0xcde09d['uniqueid']][_0x166a66(0xd4)]=![],queues[_0xcde09d['uniqueid']][_0x166a66(0xd4)]=![],queues[_0xcde09d[_0x166a66(0xb5)]]['queuecallerabandonAt']=null,queues[_0xcde09d[_0x166a66(0xb5)]][_0x166a66(0xde)]=![],queues[_0xcde09d[_0x166a66(0xb5)]]['queuecallerexitAt']=null,queues[_0xcde09d[_0x166a66(0xb5)]][_0x166a66(0xe4)]=!![],queues[_0xcde09d[_0x166a66(0xb5)]][_0x166a66(0xff)]=_0xcde09d[_0x166a66(0xcf)],queues[_0xcde09d[_0x166a66(0xb5)]]['queuecallercomplete']=!![],queues[_0xcde09d[_0x166a66(0xb5)]][_0x166a66(0xf4)]=utils[_0x166a66(0xba)](),_0xcde09d[_0x166a66(0xa9)]==_0x166a66(0xe7)?!queues[_0xcde09d[_0x166a66(0xb5)]]['transfer']&&(queues[_0xcde09d[_0x166a66(0xb5)]][_0x166a66(0xe6)]=_0x166a66(0xed)):queues[_0xcde09d[_0x166a66(0xb5)]][_0x166a66(0xe6)]=_0x166a66(0xd9)+_0xcde09d['reason']['toUpperCase'](),utils[_0x166a66(0xfe)](util['format'](_0x166a66(0xfb),_0xcde09d[_0x166a66(0xb5)],queues[_0xcde09d[_0x166a66(0xb5)]][_0x166a66(0xe9)],_0xcde09d['membername'],queues[_0xcde09d[_0x166a66(0xb5)]]['queuecallerexitreason'])),writeDB(queues[_0xcde09d[_0x166a66(0xb5)]])));}catch(_0x3b7018){utils[_0x166a66(0xdf)](util[_0x166a66(0xf3)](_0x166a66(0xc5),_0xcde09d['uniqueid']),_0x3b7018);}},exports[a1395_0x407bee(0xf5)]=function(_0x227e70){const _0x52371e=a1395_0x407bee;try{!_[_0x52371e(0xe0)](queues[_0x227e70['transfereeuniqueid']])&&(utils[_0x52371e(0xeb)](util['format'](_0x52371e(0x102),_0x227e70[_0x52371e(0xb5)]),_0x227e70),queues[_0x227e70[_0x52371e(0xad)]][_0x52371e(0xe7)]=!![],queues[_0x227e70[_0x52371e(0xad)]][_0x52371e(0xc1)]=_0x52371e(0xe5),queues[_0x227e70[_0x52371e(0xad)]][_0x52371e(0xa7)]=_0x227e70[_0x52371e(0xc8)],queues[_0x227e70[_0x52371e(0xad)]]['transferuniqueid']=_0x227e70['transfereeuniqueid'],queues[_0x227e70[_0x52371e(0xad)]][_0x52371e(0xe6)]=_0x52371e(0xbc),utils[_0x52371e(0xfe)](util[_0x52371e(0xf3)](_0x52371e(0x109),_0x227e70[_0x52371e(0xb5)],queues[_0x227e70[_0x52371e(0xad)]]['name'],_0x227e70[_0x52371e(0xad)],_0x227e70['extension'])));}catch(_0x26d69b){utils['error'](util['format'](_0x52371e(0x102),_0x227e70[_0x52371e(0xb5)]),_0x26d69b);}},exports[a1395_0x407bee(0xb4)]=function(_0xb8138a){const _0x5995a7=a1395_0x407bee;try{utils[_0x5995a7(0xeb)](util[_0x5995a7(0xf3)](_0x5995a7(0xcc),_0xb8138a['uniqueid']),_0xb8138a);if(_0xb8138a['origtransfereruniqueid']==_0xb8138a[_0x5995a7(0xb1)])!_[_0x5995a7(0xe0)](queues[_0xb8138a['secondtransfererlinkedid']])&&(utils[_0x5995a7(0xfe)](util[_0x5995a7(0xf3)](_0x5995a7(0xfd),_0xb8138a[_0x5995a7(0xb5)],queues[_0xb8138a[_0x5995a7(0xc6)]][_0x5995a7(0xe9)],_0xb8138a[_0x5995a7(0xd8)],_0xb8138a[_0x5995a7(0xf6)])),queues[_0xb8138a[_0x5995a7(0xc6)]]['transfer']=!![],queues[_0xb8138a[_0x5995a7(0xc6)]][_0x5995a7(0xc1)]=_0x5995a7(0xbe),queues[_0xb8138a[_0x5995a7(0xc6)]][_0x5995a7(0xa7)]=_0xb8138a[_0x5995a7(0xf6)],queues[_0xb8138a[_0x5995a7(0xc6)]][_0x5995a7(0xcd)]=_0xb8138a[_0x5995a7(0xd8)],queues[_0xb8138a[_0x5995a7(0xc6)]][_0x5995a7(0xe6)]='ATTENDEDTRANSFER'),!_[_0x5995a7(0xe0)](queues[_0xb8138a[_0x5995a7(0xb1)]])&&(_0xb8138a[_0x5995a7(0xf8)]&&queues[_0xb8138a['transfereelinkedid']]?(utils['info'](util[_0x5995a7(0xf3)]('[%s][queues][attendedtransfer]\x20name:%s\x20transfereduniqueid:%s\x20calleridnum:%s\x20calleridname:%s',_0xb8138a[_0x5995a7(0xb5)],queues[_0xb8138a[_0x5995a7(0xad)]][_0x5995a7(0xe9)],_0xb8138a['transfertargetuniqueid'],queues[_0xb8138a[_0x5995a7(0xc6)]]['calleridnum'],queues[_0xb8138a[_0x5995a7(0xc6)]]['calleridname'])),queues[_0xb8138a[_0x5995a7(0xf8)]]['queuecallerenterreason']=0x1,queues[_0xb8138a[_0x5995a7(0xad)]]=_[_0x5995a7(0xd2)](queues[_0xb8138a[_0x5995a7(0xf8)]]),queues[_0xb8138a[_0x5995a7(0xad)]][_0x5995a7(0xda)]=_0xb8138a[_0x5995a7(0xf1)],queues[_0xb8138a[_0x5995a7(0xad)]][_0x5995a7(0x108)]=0x2,queues[_0xb8138a[_0x5995a7(0xad)]][_0x5995a7(0x100)]=queues[_0xb8138a['secondtransfererlinkedid']][_0x5995a7(0x100)],queues[_0xb8138a['transfereeuniqueid']][_0x5995a7(0xbd)]=queues[_0xb8138a[_0x5995a7(0xc6)]][_0x5995a7(0xbd)],queues[_0xb8138a[_0x5995a7(0xad)]][_0x5995a7(0xd5)]=utils['now'](),queues[_0xb8138a[_0x5995a7(0xad)]][_0x5995a7(0xc2)]=utils['now'](),queues[_0xb8138a[_0x5995a7(0xad)]][_0x5995a7(0xbb)]=0x0,queues[_0xb8138a['transfereeuniqueid']]['mohtime']=0x0):(utils[_0x5995a7(0xfe)](util[_0x5995a7(0xf3)](_0x5995a7(0xb8),_0xb8138a[_0x5995a7(0xb5)],queues[_0xb8138a[_0x5995a7(0xb1)]][_0x5995a7(0xe9)],_0xb8138a[_0x5995a7(0xc6)])),queues[_0xb8138a[_0x5995a7(0xb1)]][_0x5995a7(0xda)]=_0xb8138a[_0x5995a7(0xc6)]));else _0xb8138a['secondtransfereruniqueid']==_0xb8138a[_0x5995a7(0xc6)]&&(!_[_0x5995a7(0xe0)](queues[_0xb8138a[_0x5995a7(0xb1)]])&&(utils[_0x5995a7(0xfe)](util['format'](_0x5995a7(0xfd),_0xb8138a[_0x5995a7(0xb5)],queues[_0xb8138a[_0x5995a7(0xb1)]]['name'],_0xb8138a['secondtransfereruniqueid'],_0xb8138a['secondtransfererexten'])),queues[_0xb8138a[_0x5995a7(0xb1)]]['transfer']=!![],queues[_0xb8138a['origtransfererlinkedid']][_0x5995a7(0xc1)]=_0x5995a7(0xbe),queues[_0xb8138a[_0x5995a7(0xb1)]][_0x5995a7(0xa7)]=_0xb8138a[_0x5995a7(0xc0)],queues[_0xb8138a[_0x5995a7(0xb1)]]['transferuniqueid']=_0xb8138a[_0x5995a7(0xe8)],queues[_0xb8138a[_0x5995a7(0xb1)]][_0x5995a7(0xe6)]=_0x5995a7(0x10a)),!_['isNil'](queues[_0xb8138a[_0x5995a7(0xc6)]])&&(_0xb8138a[_0x5995a7(0xae)]&&queues[_0xb8138a[_0x5995a7(0xae)]]?(utils[_0x5995a7(0xfe)](util[_0x5995a7(0xf3)]('[%s][queues][attendedtransfer]\x20name:%s\x20transfereduniqueid:%s\x20calleridnum:%s\x20calleridname:%s',_0xb8138a[_0x5995a7(0xb5)],queues[_0xb8138a[_0x5995a7(0xf1)]][_0x5995a7(0xe9)],_0xb8138a[_0x5995a7(0xf1)],queues[_0xb8138a[_0x5995a7(0xf1)]][_0x5995a7(0x100)],queues[_0xb8138a[_0x5995a7(0xf1)]][_0x5995a7(0xbd)])),queues[_0xb8138a[_0x5995a7(0xae)]]['queuecallerenterreason']=0x1,queues[_0xb8138a['transfertargetuniqueid']]=_['clone'](queues[_0xb8138a[_0x5995a7(0xae)]]),queues[_0xb8138a[_0x5995a7(0xf1)]][_0x5995a7(0xda)]=_0xb8138a[_0x5995a7(0xf1)],queues[_0xb8138a[_0x5995a7(0xf1)]][_0x5995a7(0x108)]=0x2,queues[_0xb8138a[_0x5995a7(0xf1)]][_0x5995a7(0x100)]=queues[_0xb8138a[_0x5995a7(0xb1)]][_0x5995a7(0x100)],queues[_0xb8138a[_0x5995a7(0xf1)]][_0x5995a7(0xbd)]=queues[_0xb8138a[_0x5995a7(0xb1)]][_0x5995a7(0xbd)],queues[_0xb8138a[_0x5995a7(0xf1)]][_0x5995a7(0xd5)]=utils[_0x5995a7(0xba)](),queues[_0xb8138a[_0x5995a7(0xf1)]]['queuecallerleaveAt']=utils[_0x5995a7(0xba)](),queues[_0xb8138a[_0x5995a7(0xf1)]][_0x5995a7(0xbb)]=0x0,queues[_0xb8138a['transfertargetuniqueid']]['mohtime']=0x0):(utils[_0x5995a7(0xfe)](util['format'](_0x5995a7(0xb8),_0xb8138a['uniqueid'],queues[_0xb8138a['secondtransfererlinkedid']]['name'],_0xb8138a[_0x5995a7(0xb1)])),queues[_0xb8138a[_0x5995a7(0xc6)]][_0x5995a7(0xda)]=_0xb8138a[_0x5995a7(0xb1)])));}catch(_0x263a45){utils[_0x5995a7(0xdf)](util[_0x5995a7(0xf3)](_0x5995a7(0xcc),_0xb8138a[_0x5995a7(0xb5)]),_0x263a45);}},exports['musiconholdstart']=function(_0x1ba8c7){const _0x347b4b=a1395_0x407bee;try{!_[_0x347b4b(0xe0)](queues[_0x1ba8c7['uniqueid']])&&(utils['debug'](util[_0x347b4b(0xf3)](_0x347b4b(0xdc),_0x1ba8c7[_0x347b4b(0xb5)]),_0x1ba8c7),queues[_0x1ba8c7[_0x347b4b(0xb5)]][_0x347b4b(0x10b)]=utils[_0x347b4b(0xba)](),utils['info'](util[_0x347b4b(0xf3)](_0x347b4b(0x105),_0x1ba8c7['uniqueid'],queues[_0x1ba8c7[_0x347b4b(0xb5)]][_0x347b4b(0xe9)],queues[_0x1ba8c7['uniqueid']][_0x347b4b(0x10b)])));}catch(_0xbec7c9){utils[_0x347b4b(0xdf)](util['format'](_0x347b4b(0xdc),_0x1ba8c7[_0x347b4b(0xb5)]),_0xbec7c9);}},exports[a1395_0x407bee(0x103)]=function(_0x5bc396){const _0x57bb87=a1395_0x407bee;try{!_[_0x57bb87(0xe0)](queues[_0x5bc396[_0x57bb87(0xb5)]])&&(!_['isNil'](queues[_0x5bc396[_0x57bb87(0xb5)]][_0x57bb87(0x10b)])&&(utils[_0x57bb87(0xeb)](util[_0x57bb87(0xf3)](_0x57bb87(0xdd),_0x5bc396[_0x57bb87(0xb5)]),_0x5bc396),queues[_0x5bc396[_0x57bb87(0xb5)]][_0x57bb87(0xb7)]+=utils[_0x57bb87(0xfc)](utils[_0x57bb87(0xba)](),queues[_0x5bc396['uniqueid']][_0x57bb87(0x10b)]),utils[_0x57bb87(0xfe)](util['format'](_0x57bb87(0xc4),_0x5bc396['uniqueid'],queues[_0x5bc396[_0x57bb87(0xb5)]][_0x57bb87(0xe9)],queues[_0x5bc396[_0x57bb87(0xb5)]]['mohtime'])),delete queues[_0x5bc396[_0x57bb87(0xb5)]][_0x57bb87(0x10b)]));}catch(_0x179f05){utils[_0x57bb87(0xdf)](util[_0x57bb87(0xf3)](_0x57bb87(0xdd),_0x5bc396['uniqueid']),_0x179f05);}}; \ No newline at end of file diff --git a/server/services/xdr/recordings.controller.js b/server/services/xdr/recordings.controller.js index c956f43..e26087d 100644 --- a/server/services/xdr/recordings.controller.js +++ b/server/services/xdr/recordings.controller.js @@ -1 +1 @@ -const a1396_0x1105=['outbound','set','info','[%s][recordings][writeDB]','forEach','value','[%s][recordings][varset]','[%s][recordings][newexten]\x20application:%s\x20appdata:%s','UserId','connectedlinename','[%s][recordings][hangup]','find','[%s][recordings][newchannel]\x20context:%s\x20exten:%s','toLowerCase','connectedlinenum','accountcode','cause-txt','context','calleridname','request','[%s][recordings][newexten]','./utils','queue','lastIndexOf','[%s][recordings][newstate]\x20context:%s\x20channel:%s','type','uniqueid','replace','format','debug','mixmonitor_filename','.WAV','then','calleridnum','[%s][recordings][queuecallerjoin]','push','appdata','CreateVoiceRecording','error','linkedid','channel','newexten','[%s][recordings][newstate]','substring','queuecallerjoin','variable','.wav49','[%s][recordings][newchannel]','monitors','[%s][recordings][hangup]\x20calleridnum:%s\x20calleridname:%s\x20reason:%s','getUserByInternal','clone','application','exten','isNil','varset'];(function(_0x16efcb,_0x9d7878){const _0x11054e=function(_0x501639){while(--_0x501639){_0x16efcb['push'](_0x16efcb['shift']());}};_0x11054e(++_0x9d7878);}(a1396_0x1105,0x18f));const a1396_0x5016=function(_0x16efcb,_0x9d7878){_0x16efcb=_0x16efcb-0x70;let _0x11054e=a1396_0x1105[_0x16efcb];return _0x11054e;};const a1396_0x493537=a1396_0x5016;'use strict';const util=require('util'),_=require('lodash'),utils=require(a1396_0x493537(0x7e)),recordings={};function writeDB(_0x521451){const _0x3e3f3f=a1396_0x493537;utils[_0x3e3f3f(0xa3)](util['format'](_0x3e3f3f(0xa4),_0x521451[_0x3e3f3f(0x83)])),_0x521451[_0x3e3f3f(0x78)]?utils[_0x3e3f3f(0x9b)](_0x521451[_0x3e3f3f(0x78)])[_0x3e3f3f(0x89)](function(_0x24e0d1){const _0x2d6288=_0x3e3f3f;_0x24e0d1&&(_0x521451['membername']=_0x24e0d1['name'],_0x521451[_0x2d6288(0x71)]=_0x24e0d1['id']),utils[_0x2d6288(0x7c)](_0x2d6288(0x8e),_0x521451);}):utils[_0x3e3f3f(0x7c)](_0x3e3f3f(0x8e),_0x521451);}exports['newchannel']=function(_0x4a19eb){const _0x4ef7f3=a1396_0x493537;try{utils['debug'](util[_0x4ef7f3(0x85)](_0x4ef7f3(0x98),_0x4a19eb[_0x4ef7f3(0x83)]),_0x4a19eb),_0x4a19eb[_0x4ef7f3(0x83)]==_0x4a19eb['linkedid']&&(utils[_0x4ef7f3(0xa3)](util['format'](_0x4ef7f3(0x75),_0x4a19eb[_0x4ef7f3(0x83)],_0x4a19eb['context'],_0x4a19eb[_0x4ef7f3(0x9e)])),recordings[_0x4a19eb[_0x4ef7f3(0x83)]]={'uniqueid':_0x4a19eb[_0x4ef7f3(0x83)],'accountcode':_0x4a19eb[_0x4ef7f3(0x78)],'exten':_0x4a19eb[_0x4ef7f3(0x9e)],'context':_0x4a19eb[_0x4ef7f3(0x7a)],'channel':_0x4a19eb[_0x4ef7f3(0x91)],'monitors':[]});}catch(_0x4d03bc){utils[_0x4ef7f3(0x8f)](util[_0x4ef7f3(0x85)](_0x4ef7f3(0x98),_0x4a19eb[_0x4ef7f3(0x83)]),_0x4d03bc);}},exports['newstate']=function(_0xfa6909){const _0x114499=a1396_0x493537;try{utils[_0x114499(0x86)](util[_0x114499(0x85)](_0x114499(0x93),_0xfa6909['uniqueid']),_0xfa6909);if(!_[_0x114499(0x9f)](recordings[_0xfa6909['uniqueid']])&&_0xfa6909['channelstate']==0x6)utils[_0x114499(0xa3)](util[_0x114499(0x85)](_0x114499(0x81),_0xfa6909[_0x114499(0x83)],_0xfa6909[_0x114499(0x7a)],_0xfa6909[_0x114499(0x91)]));else!_['isNil'](recordings[_0xfa6909[_0x114499(0x90)]])&&_0xfa6909['channelstate']==0x6&&_0xfa6909[_0x114499(0x7a)]!='transfer'&&(utils[_0x114499(0xa3)](util[_0x114499(0x85)]('[%s][recordings][newstate]\x20linkedid:%s\x20context:%s\x20channel:%s',_0xfa6909['uniqueid'],_0xfa6909[_0x114499(0x90)],_0xfa6909['context'],_0xfa6909[_0x114499(0x91)])),recordings[_0xfa6909[_0x114499(0x90)]][_0x114499(0x78)]=_0xfa6909[_0x114499(0x78)]);}catch(_0x544220){utils[_0x114499(0x8f)](util[_0x114499(0x85)](_0x114499(0x93),_0xfa6909[_0x114499(0x83)]),_0x544220);}},exports[a1396_0x493537(0xa0)]=function(_0x56ae59){const _0x2d78c8=a1396_0x493537;try{if(!_[_0x2d78c8(0x9f)](_0x56ae59[_0x2d78c8(0x96)])&&!_[_0x2d78c8(0x9f)](_0x56ae59[_0x2d78c8(0x96)][_0x2d78c8(0x87)])){utils['debug'](util['format'](_0x2d78c8(0xa7),_0x56ae59[_0x2d78c8(0x83)]),_0x56ae59),utils[_0x2d78c8(0xa3)](util[_0x2d78c8(0x85)]('[%s][recordings][varset]\x20variable:%s\x20value:%s',_0x56ae59[_0x2d78c8(0x83)],_0x56ae59[_0x2d78c8(0x96)],_0x56ae59[_0x2d78c8(0xa6)]));_['endsWith'](_0x56ae59[_0x2d78c8(0xa6)],_0x2d78c8(0x97))&&(_0x56ae59[_0x2d78c8(0xa6)]=_0x56ae59[_0x2d78c8(0xa6)][_0x2d78c8(0x84)](_0x2d78c8(0x97),_0x2d78c8(0x88)));if(recordings[_0x56ae59[_0x2d78c8(0x90)]]){const _0x41ceb6=_[_0x2d78c8(0x74)](recordings[_0x56ae59[_0x2d78c8(0x90)]][_0x2d78c8(0x99)],{'value':_0x56ae59['value']});_[_0x2d78c8(0x9f)](_0x41ceb6)&&recordings[_0x56ae59[_0x2d78c8(0x90)]][_0x2d78c8(0x99)][_0x2d78c8(0x8c)]({'value':_0x56ae59['value']});}}}catch(_0x470609){utils[_0x2d78c8(0x8f)](util[_0x2d78c8(0x85)](_0x2d78c8(0xa7),_0x56ae59[_0x2d78c8(0x83)]),_0x470609);}},exports['hangup']=function(_0x5a449b){const _0x5e82bf=a1396_0x493537;try{!_[_0x5e82bf(0x9f)](recordings[_0x5a449b[_0x5e82bf(0x83)]])&&(utils['debug'](util[_0x5e82bf(0x85)](_0x5e82bf(0x73),_0x5a449b[_0x5e82bf(0x83)]),_0x5a449b),utils[_0x5e82bf(0xa3)](util[_0x5e82bf(0x85)](_0x5e82bf(0x9a),_0x5a449b[_0x5e82bf(0x83)],_0x5a449b['calleridnum'],_0x5a449b[_0x5e82bf(0x7b)],_0x5a449b[_0x5e82bf(0x79)])),recordings[_0x5a449b[_0x5e82bf(0x83)]][_0x5e82bf(0x8a)]=_0x5a449b[_0x5e82bf(0x8a)],recordings[_0x5a449b[_0x5e82bf(0x83)]]['calleridname']=_0x5a449b['calleridname'],recordings[_0x5a449b[_0x5e82bf(0x83)]][_0x5e82bf(0x77)]=_0x5a449b[_0x5e82bf(0x77)],recordings[_0x5a449b[_0x5e82bf(0x83)]]['connectedlinename']=_0x5a449b[_0x5e82bf(0x72)],recordings[_0x5a449b[_0x5e82bf(0x83)]][_0x5e82bf(0x82)]==_0x5e82bf(0xa1)&&recordings[_0x5a449b['uniqueid']][_0x5e82bf(0x78)]&&(recordings[_0x5a449b[_0x5e82bf(0x83)]][_0x5e82bf(0x77)]=recordings[_0x5a449b['uniqueid']][_0x5e82bf(0x78)],recordings[_0x5a449b['uniqueid']][_0x5e82bf(0x72)]=''),recordings[_0x5a449b[_0x5e82bf(0x83)]][_0x5e82bf(0x99)][_0x5e82bf(0xa5)](_0x49caa7=>{const _0x4cf5ef=_0x5e82bf,_0x592fe0=_[_0x4cf5ef(0x9c)](recordings[_0x5a449b[_0x4cf5ef(0x83)]]);_0x592fe0['value']=_0x49caa7[_0x4cf5ef(0xa6)],writeDB(_0x592fe0);}),delete recordings[_0x5a449b[_0x5e82bf(0x83)]]);}catch(_0x3b67ec){utils[_0x5e82bf(0x8f)](util[_0x5e82bf(0x85)](_0x5e82bf(0x73),_0x5a449b[_0x5e82bf(0x83)]),_0x3b67ec);}},exports[a1396_0x493537(0x92)]=function(_0x3925fc){const _0x5f37e6=a1396_0x493537;try{if(!_['isNil'](recordings[_0x3925fc[_0x5f37e6(0x83)]])){utils[_0x5f37e6(0x86)](util[_0x5f37e6(0x85)](_0x5f37e6(0x7d),_0x3925fc[_0x5f37e6(0x83)]),_0x3925fc),utils[_0x5f37e6(0xa3)](util[_0x5f37e6(0x85)](_0x5f37e6(0x70),_0x3925fc[_0x5f37e6(0x83)],_0x3925fc[_0x5f37e6(0x9d)],_0x3925fc[_0x5f37e6(0x8d)]));if(_0x3925fc[_0x5f37e6(0x9d)][_0x5f37e6(0x76)]()==_0x5f37e6(0xa2)&&_['startsWith'](_0x3925fc[_0x5f37e6(0x8d)]['toLowerCase'](),'cdr')){const _0x13ec59=_0x3925fc[_0x5f37e6(0x8d)]['split']('='),_0x42f8ce=_0x13ec59[0x0][_0x5f37e6(0x94)](_0x13ec59[0x0][_0x5f37e6(0x80)]('(')+0x1,_0x13ec59[0x0]['lastIndexOf'](')')),_0x127bb6=_0x13ec59[0x1];recordings[_0x3925fc[_0x5f37e6(0x83)]][_0x42f8ce]=_0x127bb6;}}}catch(_0x2ee38b){utils[_0x5f37e6(0x8f)](util['format']('[%s][recordings][newexten]',_0x3925fc[_0x5f37e6(0x83)]),_0x2ee38b);}},exports[a1396_0x493537(0x95)]=function(_0x105635){const _0x2c4be9=a1396_0x493537;try{!_['isNil'](recordings[_0x105635['uniqueid']])&&(utils['debug'](util[_0x2c4be9(0x85)](_0x2c4be9(0x8b),_0x105635[_0x2c4be9(0x83)]),_0x105635),utils[_0x2c4be9(0xa3)](util[_0x2c4be9(0x85)]('[%s][recordings][queuecallerjoin]\x20queue:%s',_0x105635[_0x2c4be9(0x83)],_0x105635[_0x2c4be9(0x7f)])),recordings[_0x105635['uniqueid']][_0x2c4be9(0x7f)]=_0x105635[_0x2c4be9(0x7f)]);}catch(_0x4cb9ed){utils[_0x2c4be9(0x8f)](util['format'](_0x2c4be9(0x8b),_0x105635[_0x2c4be9(0x83)]),_0x4cb9ed);}}; \ No newline at end of file +const a1396_0x5b9e=['set','[%s][recordings][newstate]','accountcode','clone','[%s][recordings][queuecallerjoin]\x20queue:%s','variable','newchannel','[%s][recordings][hangup]\x20calleridnum:%s\x20calleridname:%s\x20reason:%s','replace','[%s][recordings][queuecallerjoin]','context','request','queuecallerjoin','./utils','transfer','membername','toLowerCase','[%s][recordings][newchannel]','type','value','.wav49','outbound','endsWith','lodash','find','getUserByInternal','then','appdata','[%s][recordings][newexten]','connectedlinenum','format','error','[%s][recordings][varset]','calleridnum','util','channel','monitors','newstate','channelstate','startsWith','calleridname','isNil','split','application','connectedlinename','cause-txt','[%s][recordings][hangup]','substring','[%s][recordings][newexten]\x20application:%s\x20appdata:%s','lastIndexOf','varset','[%s][recordings][newstate]\x20context:%s\x20channel:%s','forEach','CreateVoiceRecording','info','newexten','linkedid','exten','debug','uniqueid','queue'];(function(_0x18bbff,_0x42c2de){const _0x5b9ea8=function(_0x18b548){while(--_0x18b548){_0x18bbff['push'](_0x18bbff['shift']());}};_0x5b9ea8(++_0x42c2de);}(a1396_0x5b9e,0x1f4));const a1396_0x18b5=function(_0x18bbff,_0x42c2de){_0x18bbff=_0x18bbff-0xab;let _0x5b9ea8=a1396_0x5b9e[_0x18bbff];return _0x5b9ea8;};const a1396_0x16f6f3=a1396_0x18b5;'use strict';const util=require(a1396_0x16f6f3(0xc1)),_=require(a1396_0x16f6f3(0xb6)),utils=require(a1396_0x16f6f3(0xac)),recordings={};function writeDB(_0x1ed95f){const _0x152886=a1396_0x16f6f3;utils[_0x152886(0xd5)](util[_0x152886(0xbd)]('[%s][recordings][writeDB]',_0x1ed95f['uniqueid'])),_0x1ed95f['accountcode']?utils[_0x152886(0xb8)](_0x1ed95f[_0x152886(0xde)])[_0x152886(0xb9)](function(_0x82d296){const _0x346f32=_0x152886;_0x82d296&&(_0x1ed95f[_0x346f32(0xae)]=_0x82d296['name'],_0x1ed95f['UserId']=_0x82d296['id']),utils['request'](_0x346f32(0xd4),_0x1ed95f);}):utils[_0x152886(0xe7)]('CreateVoiceRecording',_0x1ed95f);}exports[a1396_0x16f6f3(0xe2)]=function(_0x2fd043){const _0x20abd7=a1396_0x16f6f3;try{utils[_0x20abd7(0xd9)](util[_0x20abd7(0xbd)](_0x20abd7(0xb0),_0x2fd043[_0x20abd7(0xda)]),_0x2fd043),_0x2fd043[_0x20abd7(0xda)]==_0x2fd043[_0x20abd7(0xd7)]&&(utils[_0x20abd7(0xd5)](util[_0x20abd7(0xbd)]('[%s][recordings][newchannel]\x20context:%s\x20exten:%s',_0x2fd043['uniqueid'],_0x2fd043[_0x20abd7(0xe6)],_0x2fd043[_0x20abd7(0xd8)])),recordings[_0x2fd043[_0x20abd7(0xda)]]={'uniqueid':_0x2fd043[_0x20abd7(0xda)],'accountcode':_0x2fd043[_0x20abd7(0xde)],'exten':_0x2fd043[_0x20abd7(0xd8)],'context':_0x2fd043[_0x20abd7(0xe6)],'channel':_0x2fd043[_0x20abd7(0xc2)],'monitors':[]});}catch(_0x46a3fb){utils[_0x20abd7(0xbe)](util[_0x20abd7(0xbd)](_0x20abd7(0xb0),_0x2fd043[_0x20abd7(0xda)]),_0x46a3fb);}},exports[a1396_0x16f6f3(0xc4)]=function(_0x3ebdf0){const _0x283331=a1396_0x16f6f3;try{utils[_0x283331(0xd9)](util['format'](_0x283331(0xdd),_0x3ebdf0['uniqueid']),_0x3ebdf0);if(!_[_0x283331(0xc8)](recordings[_0x3ebdf0[_0x283331(0xda)]])&&_0x3ebdf0['channelstate']==0x6)utils[_0x283331(0xd5)](util[_0x283331(0xbd)](_0x283331(0xd2),_0x3ebdf0[_0x283331(0xda)],_0x3ebdf0['context'],_0x3ebdf0[_0x283331(0xc2)]));else!_[_0x283331(0xc8)](recordings[_0x3ebdf0[_0x283331(0xd7)]])&&_0x3ebdf0[_0x283331(0xc5)]==0x6&&_0x3ebdf0['context']!=_0x283331(0xad)&&(utils[_0x283331(0xd5)](util[_0x283331(0xbd)]('[%s][recordings][newstate]\x20linkedid:%s\x20context:%s\x20channel:%s',_0x3ebdf0[_0x283331(0xda)],_0x3ebdf0[_0x283331(0xd7)],_0x3ebdf0['context'],_0x3ebdf0[_0x283331(0xc2)])),recordings[_0x3ebdf0[_0x283331(0xd7)]][_0x283331(0xde)]=_0x3ebdf0['accountcode']);}catch(_0x50c07e){utils['error'](util[_0x283331(0xbd)](_0x283331(0xdd),_0x3ebdf0[_0x283331(0xda)]),_0x50c07e);}},exports[a1396_0x16f6f3(0xd1)]=function(_0x11df26){const _0x36c00c=a1396_0x16f6f3;try{if(!_['isNil'](_0x11df26[_0x36c00c(0xe1)])&&!_['isNil'](_0x11df26[_0x36c00c(0xe1)]['mixmonitor_filename'])){utils[_0x36c00c(0xd9)](util['format'](_0x36c00c(0xbf),_0x11df26['uniqueid']),_0x11df26),utils[_0x36c00c(0xd5)](util['format']('[%s][recordings][varset]\x20variable:%s\x20value:%s',_0x11df26['uniqueid'],_0x11df26[_0x36c00c(0xe1)],_0x11df26['value']));_[_0x36c00c(0xb5)](_0x11df26['value'],_0x36c00c(0xb3))&&(_0x11df26[_0x36c00c(0xb2)]=_0x11df26[_0x36c00c(0xb2)][_0x36c00c(0xe4)]('.wav49','.WAV'));if(recordings[_0x11df26[_0x36c00c(0xd7)]]){const _0x4aa772=_[_0x36c00c(0xb7)](recordings[_0x11df26[_0x36c00c(0xd7)]][_0x36c00c(0xc3)],{'value':_0x11df26[_0x36c00c(0xb2)]});_['isNil'](_0x4aa772)&&recordings[_0x11df26[_0x36c00c(0xd7)]]['monitors']['push']({'value':_0x11df26[_0x36c00c(0xb2)]});}}}catch(_0x176cbe){utils['error'](util[_0x36c00c(0xbd)](_0x36c00c(0xbf),_0x11df26['uniqueid']),_0x176cbe);}},exports['hangup']=function(_0x17d6d1){const _0x50d8f8=a1396_0x16f6f3;try{!_[_0x50d8f8(0xc8)](recordings[_0x17d6d1[_0x50d8f8(0xda)]])&&(utils[_0x50d8f8(0xd9)](util[_0x50d8f8(0xbd)](_0x50d8f8(0xcd),_0x17d6d1[_0x50d8f8(0xda)]),_0x17d6d1),utils['info'](util[_0x50d8f8(0xbd)](_0x50d8f8(0xe3),_0x17d6d1[_0x50d8f8(0xda)],_0x17d6d1[_0x50d8f8(0xc0)],_0x17d6d1['calleridname'],_0x17d6d1[_0x50d8f8(0xcc)])),recordings[_0x17d6d1[_0x50d8f8(0xda)]][_0x50d8f8(0xc0)]=_0x17d6d1[_0x50d8f8(0xc0)],recordings[_0x17d6d1[_0x50d8f8(0xda)]][_0x50d8f8(0xc7)]=_0x17d6d1[_0x50d8f8(0xc7)],recordings[_0x17d6d1[_0x50d8f8(0xda)]][_0x50d8f8(0xbc)]=_0x17d6d1[_0x50d8f8(0xbc)],recordings[_0x17d6d1[_0x50d8f8(0xda)]][_0x50d8f8(0xcb)]=_0x17d6d1[_0x50d8f8(0xcb)],recordings[_0x17d6d1[_0x50d8f8(0xda)]][_0x50d8f8(0xb1)]==_0x50d8f8(0xb4)&&recordings[_0x17d6d1[_0x50d8f8(0xda)]][_0x50d8f8(0xde)]&&(recordings[_0x17d6d1['uniqueid']][_0x50d8f8(0xbc)]=recordings[_0x17d6d1['uniqueid']][_0x50d8f8(0xde)],recordings[_0x17d6d1[_0x50d8f8(0xda)]][_0x50d8f8(0xcb)]=''),recordings[_0x17d6d1[_0x50d8f8(0xda)]][_0x50d8f8(0xc3)][_0x50d8f8(0xd3)](_0xa047e4=>{const _0x441418=_0x50d8f8,_0x30e4e2=_[_0x441418(0xdf)](recordings[_0x17d6d1['uniqueid']]);_0x30e4e2[_0x441418(0xb2)]=_0xa047e4[_0x441418(0xb2)],writeDB(_0x30e4e2);}),delete recordings[_0x17d6d1[_0x50d8f8(0xda)]]);}catch(_0x3cecd9){utils['error'](util[_0x50d8f8(0xbd)](_0x50d8f8(0xcd),_0x17d6d1['uniqueid']),_0x3cecd9);}},exports[a1396_0x16f6f3(0xd6)]=function(_0xd8ee50){const _0x473861=a1396_0x16f6f3;try{if(!_[_0x473861(0xc8)](recordings[_0xd8ee50[_0x473861(0xda)]])){utils['debug'](util[_0x473861(0xbd)](_0x473861(0xbb),_0xd8ee50['uniqueid']),_0xd8ee50),utils['info'](util[_0x473861(0xbd)](_0x473861(0xcf),_0xd8ee50[_0x473861(0xda)],_0xd8ee50[_0x473861(0xca)],_0xd8ee50[_0x473861(0xba)]));if(_0xd8ee50['application'][_0x473861(0xaf)]()==_0x473861(0xdc)&&_[_0x473861(0xc6)](_0xd8ee50[_0x473861(0xba)][_0x473861(0xaf)](),'cdr')){const _0x3719a4=_0xd8ee50[_0x473861(0xba)][_0x473861(0xc9)]('='),_0x15b258=_0x3719a4[0x0][_0x473861(0xce)](_0x3719a4[0x0][_0x473861(0xd0)]('(')+0x1,_0x3719a4[0x0][_0x473861(0xd0)](')')),_0x236e8e=_0x3719a4[0x1];recordings[_0xd8ee50[_0x473861(0xda)]][_0x15b258]=_0x236e8e;}}}catch(_0x1b5bff){utils[_0x473861(0xbe)](util['format']('[%s][recordings][newexten]',_0xd8ee50[_0x473861(0xda)]),_0x1b5bff);}},exports[a1396_0x16f6f3(0xab)]=function(_0x16afc4){const _0x3bee52=a1396_0x16f6f3;try{!_[_0x3bee52(0xc8)](recordings[_0x16afc4['uniqueid']])&&(utils[_0x3bee52(0xd9)](util['format'](_0x3bee52(0xe5),_0x16afc4['uniqueid']),_0x16afc4),utils[_0x3bee52(0xd5)](util[_0x3bee52(0xbd)](_0x3bee52(0xe0),_0x16afc4['uniqueid'],_0x16afc4[_0x3bee52(0xdb)])),recordings[_0x16afc4['uniqueid']][_0x3bee52(0xdb)]=_0x16afc4[_0x3bee52(0xdb)]);}catch(_0x4b65d6){utils[_0x3bee52(0xbe)](util[_0x3bee52(0xbd)]('[%s][recordings][queuecallerjoin]',_0x16afc4[_0x3bee52(0xda)]),_0x4b65d6);}}; \ No newline at end of file diff --git a/server/services/xdr/transfers.controller.js b/server/services/xdr/transfers.controller.js index b775b02..8afbfe3 100644 --- a/server/services/xdr/transfers.controller.js +++ b/server/services/xdr/transfers.controller.js @@ -1 +1 @@ -const a1397_0x2191=['secondtransfererconnectedlinename','blind','transfereecalleridname','transfertargetaccountcode','origtransfererchannel','./utils','blindtransfer','transfertargetlinkedid','transfertargetcontext','transfertargetchannel','transferercalleridnum','origtransfererlinkedid','CreateVoiceTransferReport','origtransferercalleridname','debug','origtransfererexten','type','uniqueid','isNil','transfertargetcalleridname','origtransfereraccountcode','transfereecalleridnum','info','[%s][transfers][blindtransfer]','secondtransfererconnectedlinenum','util','transfertargetexten','transferercalleridname','[%s][transfers][attendedtransfer]','format','secondtransfererexten','error','origtransferercalleridnum'];(function(_0x50022a,_0xf28305){const _0x2191b2=function(_0x528afc){while(--_0x528afc){_0x50022a['push'](_0x50022a['shift']());}};_0x2191b2(++_0xf28305);}(a1397_0x2191,0x86));const a1397_0x528a=function(_0x50022a,_0xf28305){_0x50022a=_0x50022a-0x7f;let _0x2191b2=a1397_0x2191[_0x50022a];return _0x2191b2;};const a1397_0x3ca1e9=a1397_0x528a;'use strict';const _=require('lodash'),util=require(a1397_0x3ca1e9(0x96)),utils=require(a1397_0x3ca1e9(0x82));function writeDB(_0x471e4f){const _0x24ade8=a1397_0x3ca1e9;utils[_0x24ade8(0x93)](util[_0x24ade8(0x9a)]('[%s][transfers][writeDB]\x20type:%s',_0x471e4f[_0x24ade8(0x8e)],_0x471e4f[_0x24ade8(0x8d)])),utils['request'](_0x24ade8(0x89),_0x471e4f);}exports[a1397_0x3ca1e9(0x83)]=function(_0x16d7ab){const _0x16e47d=a1397_0x3ca1e9;try{utils['debug'](util[_0x16e47d(0x9a)]('[%s][transfers][blindtransfer]',_0x16d7ab[_0x16e47d(0x8e)]),_0x16d7ab),utils['info'](util[_0x16e47d(0x9a)]('[%s][transfers][blindtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s',_0x16d7ab['uniqueid'],_0x16d7ab[_0x16e47d(0x87)],_0x16d7ab[_0x16e47d(0x98)],_0x16d7ab[_0x16e47d(0x92)],_0x16d7ab[_0x16e47d(0x7f)])),_0x16d7ab[_0x16e47d(0x8d)]=_0x16e47d(0x9f),writeDB(_0x16d7ab);}catch(_0x352dba){utils[_0x16e47d(0x9c)](util['format'](_0x16e47d(0x94),_0x16d7ab[_0x16e47d(0x8e)]),_0x352dba);}},exports['attendedtransfer']=function(_0x5e56c4){const _0x3a59ad=a1397_0x3ca1e9;try{utils[_0x3a59ad(0x8b)](util[_0x3a59ad(0x9a)](_0x3a59ad(0x99),_0x5e56c4[_0x3a59ad(0x8e)]),_0x5e56c4),utils['info'](util['format']('[%s][transfers][attendedtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s',_0x5e56c4[_0x3a59ad(0x8e)],_0x5e56c4[_0x3a59ad(0x9d)],_0x5e56c4['origtransferercalleridname'],_0x5e56c4['transfertargetcalleridnum'],_0x5e56c4[_0x3a59ad(0x90)])),_0x5e56c4=_['assign'](_0x5e56c4,{'transfererchannel':_0x5e56c4[_0x3a59ad(0x81)],'transferercalleridnum':_0x5e56c4[_0x3a59ad(0x9d)],'transferercalleridname':_0x5e56c4[_0x3a59ad(0x8a)],'transfererconnectedlinenum':_0x5e56c4[_0x3a59ad(0x95)],'transfererconnectedlinename':_0x5e56c4[_0x3a59ad(0x9e)],'transfereraccountcode':_0x5e56c4[_0x3a59ad(0x91)],'transferercontext':_0x5e56c4['secondtransferercontext'],'transfererexten':_0x5e56c4[_0x3a59ad(0x9b)],'transfererlinkedid':_0x5e56c4[_0x3a59ad(0x88)],'context':_0x5e56c4['origtransferercontext'],'extension':_0x5e56c4[_0x3a59ad(0x8c)],'type':'attended'}),_[_0x3a59ad(0x8f)](_0x5e56c4['transfereechannel'])&&(_0x5e56c4=_['assign'](_0x5e56c4,{'transfereechannel':_0x5e56c4[_0x3a59ad(0x86)],'transfereecalleridnum':_0x5e56c4['transfertargetcalleridnum'],'transfereecalleridname':_0x5e56c4[_0x3a59ad(0x90)],'transfereeconnectedlinenum':_0x5e56c4['transfertargetconnectedlinenum'],'transfereeconnectedlinename':_0x5e56c4['transfertargetconnectedlinename'],'transfereeaccountcode':_0x5e56c4[_0x3a59ad(0x80)],'transfereecontext':_0x5e56c4[_0x3a59ad(0x85)],'transfereeexten':_0x5e56c4[_0x3a59ad(0x97)],'transfereelinkedid':_0x5e56c4[_0x3a59ad(0x84)]})),writeDB(_0x5e56c4);}catch(_0x1d7c7f){utils['error'](util[_0x3a59ad(0x9a)](_0x3a59ad(0x99),_0x5e56c4[_0x3a59ad(0x8e)]),_0x1d7c7f);}}; \ No newline at end of file +const a1397_0x24a6=['CreateVoiceTransferReport','blind','info','secondtransfererconnectedlinenum','origtransfererlinkedid','transfertargetconnectedlinenum','[%s][transfers][blindtransfer]','assign','secondtransfererconnectedlinename','./utils','lodash','debug','[%s][transfers][attendedtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s','attended','util','origtransferercalleridname','isNil','transfertargetlinkedid','origtransferercontext','origtransfererchannel','transfertargetcontext','transfertargetaccountcode','transferercalleridnum','transfereecalleridnum','attendedtransfer','[%s][transfers][attendedtransfer]','transfertargetcalleridnum','secondtransfererexten','[%s][transfers][writeDB]\x20type:%s','origtransferercalleridnum','type','origtransfereraccountcode','uniqueid','error','[%s][transfers][blindtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s','transfertargetcalleridname','transferercalleridname','format','transfertargetchannel'];(function(_0x58e2eb,_0x5d2c5d){const _0x24a6c0=function(_0x59f80a){while(--_0x59f80a){_0x58e2eb['push'](_0x58e2eb['shift']());}};_0x24a6c0(++_0x5d2c5d);}(a1397_0x24a6,0x104));const a1397_0x59f8=function(_0x58e2eb,_0x5d2c5d){_0x58e2eb=_0x58e2eb-0x142;let _0x24a6c0=a1397_0x24a6[_0x58e2eb];return _0x24a6c0;};const a1397_0x1b58ad=a1397_0x59f8;'use strict';const _=require(a1397_0x1b58ad(0x159)),util=require(a1397_0x1b58ad(0x15d)),utils=require(a1397_0x1b58ad(0x158));function writeDB(_0x446e8a){const _0x3fabd6=a1397_0x1b58ad;utils[_0x3fabd6(0x151)](util['format'](_0x3fabd6(0x144),_0x446e8a['uniqueid'],_0x446e8a['type'])),utils['request'](_0x3fabd6(0x14f),_0x446e8a);}exports['blindtransfer']=function(_0x31c75d){const _0xfbdc67=a1397_0x1b58ad;try{utils[_0xfbdc67(0x15a)](util[_0xfbdc67(0x14d)](_0xfbdc67(0x155),_0x31c75d[_0xfbdc67(0x148)]),_0x31c75d),utils['info'](util[_0xfbdc67(0x14d)](_0xfbdc67(0x14a),_0x31c75d['uniqueid'],_0x31c75d[_0xfbdc67(0x165)],_0x31c75d[_0xfbdc67(0x14c)],_0x31c75d[_0xfbdc67(0x166)],_0x31c75d['transfereecalleridname'])),_0x31c75d[_0xfbdc67(0x146)]=_0xfbdc67(0x150),writeDB(_0x31c75d);}catch(_0x3ad22f){utils[_0xfbdc67(0x149)](util[_0xfbdc67(0x14d)](_0xfbdc67(0x155),_0x31c75d['uniqueid']),_0x3ad22f);}},exports[a1397_0x1b58ad(0x167)]=function(_0x80f86){const _0x13fbc4=a1397_0x1b58ad;try{utils[_0x13fbc4(0x15a)](util[_0x13fbc4(0x14d)]('[%s][transfers][attendedtransfer]',_0x80f86['uniqueid']),_0x80f86),utils[_0x13fbc4(0x151)](util[_0x13fbc4(0x14d)](_0x13fbc4(0x15b),_0x80f86[_0x13fbc4(0x148)],_0x80f86[_0x13fbc4(0x145)],_0x80f86[_0x13fbc4(0x15e)],_0x80f86[_0x13fbc4(0x142)],_0x80f86[_0x13fbc4(0x14b)])),_0x80f86=_[_0x13fbc4(0x156)](_0x80f86,{'transfererchannel':_0x80f86[_0x13fbc4(0x162)],'transferercalleridnum':_0x80f86[_0x13fbc4(0x145)],'transferercalleridname':_0x80f86[_0x13fbc4(0x15e)],'transfererconnectedlinenum':_0x80f86[_0x13fbc4(0x152)],'transfererconnectedlinename':_0x80f86[_0x13fbc4(0x157)],'transfereraccountcode':_0x80f86[_0x13fbc4(0x147)],'transferercontext':_0x80f86['secondtransferercontext'],'transfererexten':_0x80f86[_0x13fbc4(0x143)],'transfererlinkedid':_0x80f86[_0x13fbc4(0x153)],'context':_0x80f86[_0x13fbc4(0x161)],'extension':_0x80f86['origtransfererexten'],'type':_0x13fbc4(0x15c)}),_[_0x13fbc4(0x15f)](_0x80f86['transfereechannel'])&&(_0x80f86=_['assign'](_0x80f86,{'transfereechannel':_0x80f86[_0x13fbc4(0x14e)],'transfereecalleridnum':_0x80f86[_0x13fbc4(0x142)],'transfereecalleridname':_0x80f86[_0x13fbc4(0x14b)],'transfereeconnectedlinenum':_0x80f86[_0x13fbc4(0x154)],'transfereeconnectedlinename':_0x80f86['transfertargetconnectedlinename'],'transfereeaccountcode':_0x80f86[_0x13fbc4(0x164)],'transfereecontext':_0x80f86[_0x13fbc4(0x163)],'transfereeexten':_0x80f86['transfertargetexten'],'transfereelinkedid':_0x80f86[_0x13fbc4(0x160)]})),writeDB(_0x80f86);}catch(_0x581fa0){utils[_0x13fbc4(0x149)](util[_0x13fbc4(0x14d)](_0x13fbc4(0x168),_0x80f86[_0x13fbc4(0x148)]),_0x581fa0);}}; \ No newline at end of file diff --git a/server/services/xdr/utils.js b/server/services/xdr/utils.js index 5197050..359e0f2 100644 --- a/server/services/xdr/utils.js +++ b/server/services/xdr/utils.js @@ -1 +1 @@ -const a1398_0x143b=['catch','getUserByInterface','[utils][request]\x20name:%s','isAfter','interface','[utils][getUserByInterface]\x20interface:%s\x20%s','xdr','YYYY-MM-DD\x20HH:mm:ss','format','then','acw','http','isBefore','subtract','found','getUserByInternal','[utils][getUser]\x20where:%s','info','debug','util','error','stringify','sumTime','getVoiceQueueByName','type','GetVoiceQueue','now','notfound','seconds','[utils][getVoiceQueueByName]\x20name:%s','name','[utils][getUserByName]\x20name:%s\x20%s','addTime','../../config/logger','internal','[utils][getUserByName]','length','inspect','diff','request','getUserByName','GetUser','result'];(function(_0x420f8c,_0x4e0d9d){const _0x143b6e=function(_0x98fd84){while(--_0x98fd84){_0x420f8c['push'](_0x420f8c['shift']());}};_0x143b6e(++_0x4e0d9d);}(a1398_0x143b,0x13f));const a1398_0x98fd=function(_0x420f8c,_0x4e0d9d){_0x420f8c=_0x420f8c-0xe1;let _0x143b6e=a1398_0x143b[_0x420f8c];return _0x143b6e;};const a1398_0x40a901=a1398_0x98fd;'use strict';const util=require(a1398_0x40a901(0xe2)),jayson=require('jayson/promise'),moment=require('moment'),client=jayson['client'][a1398_0x40a901(0x105)]({'port':0x2329}),logger=require(a1398_0x40a901(0xf0))(a1398_0x40a901(0x100));exports[a1398_0x40a901(0x10b)]=function(_0x2d8c1f,_0x58b67c){const _0x18ff55=a1398_0x40a901;logger[_0x18ff55(0x10b)](_0x2d8c1f,_0x58b67c?util[_0x18ff55(0xf4)](_0x58b67c,{'showHidden':![],'depth':null}):'');},exports[a1398_0x40a901(0xe1)]=function(_0x301db3,_0x43516f){const _0x3052c0=a1398_0x40a901;logger[_0x3052c0(0xe1)](_0x301db3,_0x43516f?util[_0x3052c0(0xf4)](_0x43516f,{'showHidden':![],'depth':null}):'');},exports[a1398_0x40a901(0xe3)]=function(_0x3eec7c,_0x38fc41){const _0x5a78c5=a1398_0x40a901;logger['error'](_0x3eec7c,_0x38fc41?util[_0x5a78c5(0xf4)](_0x38fc41,{'showHidden':![],'depth':null}):'');},exports[a1398_0x40a901(0xf6)]=function(_0x451c2a,_0x2e5f06){const _0x414b83=a1398_0x40a901;return client[_0x414b83(0xf6)](_0x451c2a,{'body':_0x2e5f06})[_0x414b83(0x103)](function(_0x29f58a){logger['debug']('[utils][request]\x20name:%s',_0x451c2a,_0x29f58a?util['inspect'](_0x29f58a,{'showHidden':![],'depth':null}):'');})[_0x414b83(0xfa)](function(_0x58cecb){const _0x199d74=_0x414b83;logger['error'](_0x199d74(0xfc),_0x451c2a,_0x58cecb?util[_0x199d74(0xf4)](_0x58cecb,{'showHidden':![],'depth':null}):'');});};function getUser(_0x2f6032){const _0x2f8494=a1398_0x40a901;return client[_0x2f8494(0xf6)](_0x2f8494(0xf8),{'options':{'raw':!![],'attributes':['id',_0x2f8494(0xf1),_0x2f8494(0xed),_0x2f8494(0xfe)],'where':_0x2f6032,'limit':0x1}})['then'](function(_0x4110cf){const _0x38b181=_0x2f8494;return logger[_0x38b181(0xe1)](_0x38b181(0x10a),JSON[_0x38b181(0xe4)](_0x2f6032),_0x4110cf?util['inspect'](_0x4110cf,{'showHidden':![],'depth':null}):''),_0x4110cf[_0x38b181(0xf9)][_0x38b181(0xf3)]?_0x4110cf[_0x38b181(0xf9)][0x0]:null;});}exports[a1398_0x40a901(0x109)]=function(_0xc4f5b9){return new Promise(function(_0x5439ee){const _0x199e47=a1398_0x98fd;if(_0xc4f5b9)return getUser({'internal':_0xc4f5b9})[_0x199e47(0x103)](function(_0x3ec9c8){const _0x1603a9=_0x199e47;return logger['info']('[utils][getUserByInternal]\x20internal:%s\x20%s',_0xc4f5b9,_0x3ec9c8?'found':_0x1603a9(0xea)),_0x5439ee(_0x3ec9c8);})[_0x199e47(0xfa)](function(_0x200d36){const _0x5d1396=_0x199e47;return logger[_0x5d1396(0xe3)]('[utils][getUserByInternal]',_0x200d36?util[_0x5d1396(0xf4)](_0x200d36,{'showHidden':![],'depth':null}):''),_0x5439ee(null);});return _0x5439ee(null);});},exports[a1398_0x40a901(0xfb)]=function(_0x266080){return new Promise(function(_0x4c2bea){const _0x518f8a=a1398_0x98fd;if(_0x266080)return getUser({'interface':_0x266080})[_0x518f8a(0x103)](function(_0x3ed4cb){const _0xffd5bb=_0x518f8a;return logger[_0xffd5bb(0x10b)](_0xffd5bb(0xff),_0x266080,_0x3ed4cb?_0xffd5bb(0x108):_0xffd5bb(0xea)),_0x4c2bea(_0x3ed4cb);})[_0x518f8a(0xfa)](function(_0x258a43){const _0x565331=_0x518f8a;return logger[_0x565331(0xe3)]('[utils][getUserByInterface]',_0x258a43?util[_0x565331(0xf4)](_0x258a43,{'showHidden':![],'depth':null}):''),_0x4c2bea(null);});return _0x4c2bea(null);});},exports[a1398_0x40a901(0xf7)]=function(_0x2f92b8){return new Promise(function(_0x1f1935){const _0x258559=a1398_0x98fd;if(_0x2f92b8)return getUser({'name':_0x2f92b8})[_0x258559(0x103)](function(_0x2d867d){const _0x56e8d2=_0x258559;return logger[_0x56e8d2(0x10b)](_0x56e8d2(0xee),_0x2f92b8,_0x2d867d?_0x56e8d2(0x108):_0x56e8d2(0xea)),_0x1f1935(_0x2d867d);})['catch'](function(_0x2ef763){const _0x6eb7c9=_0x258559;return logger[_0x6eb7c9(0xe3)](_0x6eb7c9(0xf2),_0x2ef763?util[_0x6eb7c9(0xf4)](_0x2ef763,{'showHidden':![],'depth':null}):''),_0x1f1935(null);});return _0x1f1935(null);});},exports[a1398_0x40a901(0xe6)]=function(_0x50d0aa){return new Promise(function(_0x224c10){const _0x581f62=a1398_0x98fd;if(_0x50d0aa)return client[_0x581f62(0xf6)](_0x581f62(0xe8),{'options':{'raw':!![],'attributes':['id',_0x581f62(0xed),_0x581f62(0xe7),_0x581f62(0x104),'acwTimeout'],'where':{'name':_0x50d0aa},'limit':0x1}})[_0x581f62(0x103)](function(_0x2e7fc8){const _0x35b391=_0x581f62;return logger[_0x35b391(0xe1)](_0x35b391(0xec),_0x50d0aa,_0x2e7fc8?util[_0x35b391(0xf4)](_0x2e7fc8,{'showHidden':![],'depth':null}):''),logger['info']('[utils][getVoiceQueueByName]\x20name:%s\x20%s',_0x50d0aa,_0x2e7fc8?'found':_0x35b391(0xea)),_0x224c10(_0x2e7fc8['result'][_0x35b391(0xf3)]?_0x2e7fc8['result'][0x0]:null);})[_0x581f62(0xfa)](function(_0x162466){const _0x6dff6=_0x581f62;return logger[_0x6dff6(0xe3)]('[utils][getVoiceQueueByName]',_0x162466?util[_0x6dff6(0xf4)](_0x162466,{'showHidden':![],'depth':null}):''),_0x224c10(null);});return _0x224c10(null);});},exports[a1398_0x40a901(0xef)]=function(_0x5a5d3a,_0x36284f){const _0xe515ba=a1398_0x40a901;return moment(_0x5a5d3a)['add'](_0x36284f,_0xe515ba(0xeb))['format'](_0xe515ba(0x101));},exports['subtractTime']=function(_0x342c6b,_0x5ee0b1){const _0x1728e2=a1398_0x40a901;return moment(_0x342c6b)[_0x1728e2(0x107)](_0x5ee0b1,_0x1728e2(0xeb))[_0x1728e2(0x102)](_0x1728e2(0x101));},exports['diffTime']=function(_0x2335ed,_0x584a13){const _0x2848f4=a1398_0x40a901;return moment(_0x2335ed)[_0x2848f4(0xf5)](moment(_0x584a13),_0x2848f4(0xeb));},exports[a1398_0x40a901(0xe5)]=function(_0x4c8dff,_0x4fd761){return parseInt(_0x4c8dff,0xa)+parseInt(_0x4fd761,0xa);},exports[a1398_0x40a901(0xe9)]=function(){const _0x3331a6=a1398_0x40a901;return moment()[_0x3331a6(0x102)](_0x3331a6(0x101));},exports[a1398_0x40a901(0xfd)]=function(_0x3f62af,_0x4d9821){if(_0x4d9821)return moment(_0x3f62af)['isAfter'](_0x4d9821);return!![];},exports['isBefore']=function(_0x373846,_0x1216c6){const _0x53ae32=a1398_0x40a901;if(_0x1216c6)return moment(_0x373846)[_0x53ae32(0x106)](_0x1216c6);else{if(_0x373846)return!![];}return![];}; \ No newline at end of file +const a1398_0x5b81=['getUserByInterface','isBefore','[utils][request]\x20name:%s','then','acw','add','now','isAfter','subtract','[utils][getVoiceQueueByName]\x20name:%s\x20%s','acwTimeout','length','seconds','diffTime','YYYY-MM-DD\x20HH:mm:ss','xdr','[utils][getUserByName]\x20name:%s\x20%s','addTime','GetUser','type','client','util','internal','notfound','getUserByInternal','moment','found','debug','[utils][getVoiceQueueByName]','[utils][getUserByInternal]','[utils][getUser]\x20where:%s','info','inspect','diff','[utils][getUserByInternal]\x20internal:%s\x20%s','subtractTime','error','catch','request','result','sumTime','getVoiceQueueByName','format','http','GetVoiceQueue','[utils][getUserByName]','../../config/logger'];(function(_0x38577e,_0x370534){const _0x5b8164=function(_0x56ce81){while(--_0x56ce81){_0x38577e['push'](_0x38577e['shift']());}};_0x5b8164(++_0x370534);}(a1398_0x5b81,0xa7));const a1398_0x56ce=function(_0x38577e,_0x370534){_0x38577e=_0x38577e-0xf4;let _0x5b8164=a1398_0x5b81[_0x38577e];return _0x5b8164;};const a1398_0x3ce693=a1398_0x56ce;'use strict';const util=require(a1398_0x3ce693(0x11e)),jayson=require('jayson/promise'),moment=require(a1398_0x3ce693(0x122)),client=jayson[a1398_0x3ce693(0x11d)][a1398_0x3ce693(0x105)]({'port':0x2329}),logger=require(a1398_0x3ce693(0x108))(a1398_0x3ce693(0x118));exports['info']=function(_0x322f50,_0x7ee7f8){const _0xb327b5=a1398_0x3ce693;logger[_0xb327b5(0xf9)](_0x322f50,_0x7ee7f8?util[_0xb327b5(0xfa)](_0x7ee7f8,{'showHidden':![],'depth':null}):'');},exports[a1398_0x3ce693(0xf5)]=function(_0x4fd242,_0x50882d){const _0x231cc9=a1398_0x3ce693;logger[_0x231cc9(0xf5)](_0x4fd242,_0x50882d?util['inspect'](_0x50882d,{'showHidden':![],'depth':null}):'');},exports[a1398_0x3ce693(0xfe)]=function(_0x1dc84f,_0x3ce6ee){const _0x3eae23=a1398_0x3ce693;logger[_0x3eae23(0xfe)](_0x1dc84f,_0x3ce6ee?util[_0x3eae23(0xfa)](_0x3ce6ee,{'showHidden':![],'depth':null}):'');},exports['request']=function(_0x8f602e,_0x1b3aee){const _0x58b57c=a1398_0x3ce693;return client[_0x58b57c(0x100)](_0x8f602e,{'body':_0x1b3aee})[_0x58b57c(0x10c)](function(_0x2d02e5){const _0xe50fa1=_0x58b57c;logger['debug'](_0xe50fa1(0x10b),_0x8f602e,_0x2d02e5?util[_0xe50fa1(0xfa)](_0x2d02e5,{'showHidden':![],'depth':null}):'');})[_0x58b57c(0xff)](function(_0x558d8c){const _0x26f9ac=_0x58b57c;logger[_0x26f9ac(0xfe)](_0x26f9ac(0x10b),_0x8f602e,_0x558d8c?util[_0x26f9ac(0xfa)](_0x558d8c,{'showHidden':![],'depth':null}):'');});};function getUser(_0x1614b0){const _0x1fbc36=a1398_0x3ce693;return client[_0x1fbc36(0x100)](_0x1fbc36(0x11b),{'options':{'raw':!![],'attributes':['id',_0x1fbc36(0x11f),'name','interface'],'where':_0x1614b0,'limit':0x1}})['then'](function(_0x2f155c){const _0x3866eb=_0x1fbc36;return logger[_0x3866eb(0xf5)](_0x3866eb(0xf8),JSON['stringify'](_0x1614b0),_0x2f155c?util[_0x3866eb(0xfa)](_0x2f155c,{'showHidden':![],'depth':null}):''),_0x2f155c[_0x3866eb(0x101)][_0x3866eb(0x114)]?_0x2f155c[_0x3866eb(0x101)][0x0]:null;});}exports[a1398_0x3ce693(0x121)]=function(_0x1fd7d6){return new Promise(function(_0x4fb064){const _0x1c7c15=a1398_0x56ce;if(_0x1fd7d6)return getUser({'internal':_0x1fd7d6})[_0x1c7c15(0x10c)](function(_0x165cb6){const _0x509e78=_0x1c7c15;return logger[_0x509e78(0xf9)](_0x509e78(0xfc),_0x1fd7d6,_0x165cb6?'found':'notfound'),_0x4fb064(_0x165cb6);})[_0x1c7c15(0xff)](function(_0x5846d8){const _0x4b6943=_0x1c7c15;return logger[_0x4b6943(0xfe)](_0x4b6943(0xf7),_0x5846d8?util[_0x4b6943(0xfa)](_0x5846d8,{'showHidden':![],'depth':null}):''),_0x4fb064(null);});return _0x4fb064(null);});},exports[a1398_0x3ce693(0x109)]=function(_0x4abc91){return new Promise(function(_0x50a679){const _0x5aeae4=a1398_0x56ce;if(_0x4abc91)return getUser({'interface':_0x4abc91})[_0x5aeae4(0x10c)](function(_0x1b644c){const _0xbfeeee=_0x5aeae4;return logger[_0xbfeeee(0xf9)]('[utils][getUserByInterface]\x20interface:%s\x20%s',_0x4abc91,_0x1b644c?_0xbfeeee(0xf4):_0xbfeeee(0x120)),_0x50a679(_0x1b644c);})['catch'](function(_0x33f361){const _0x966ff=_0x5aeae4;return logger[_0x966ff(0xfe)]('[utils][getUserByInterface]',_0x33f361?util[_0x966ff(0xfa)](_0x33f361,{'showHidden':![],'depth':null}):''),_0x50a679(null);});return _0x50a679(null);});},exports['getUserByName']=function(_0x2cbf66){return new Promise(function(_0x4ed64d){const _0x275b8a=a1398_0x56ce;if(_0x2cbf66)return getUser({'name':_0x2cbf66})[_0x275b8a(0x10c)](function(_0x392b34){const _0x55bfda=_0x275b8a;return logger[_0x55bfda(0xf9)](_0x55bfda(0x119),_0x2cbf66,_0x392b34?_0x55bfda(0xf4):'notfound'),_0x4ed64d(_0x392b34);})['catch'](function(_0x5e002c){const _0x2a4823=_0x275b8a;return logger['error'](_0x2a4823(0x107),_0x5e002c?util[_0x2a4823(0xfa)](_0x5e002c,{'showHidden':![],'depth':null}):''),_0x4ed64d(null);});return _0x4ed64d(null);});},exports[a1398_0x3ce693(0x103)]=function(_0x13e066){return new Promise(function(_0x450059){const _0x281a2c=a1398_0x56ce;if(_0x13e066)return client['request'](_0x281a2c(0x106),{'options':{'raw':!![],'attributes':['id','name',_0x281a2c(0x11c),_0x281a2c(0x10d),_0x281a2c(0x113)],'where':{'name':_0x13e066},'limit':0x1}})[_0x281a2c(0x10c)](function(_0x13ee1e){const _0x46011e=_0x281a2c;return logger[_0x46011e(0xf5)]('[utils][getVoiceQueueByName]\x20name:%s',_0x13e066,_0x13ee1e?util['inspect'](_0x13ee1e,{'showHidden':![],'depth':null}):''),logger[_0x46011e(0xf9)](_0x46011e(0x112),_0x13e066,_0x13ee1e?_0x46011e(0xf4):'notfound'),_0x450059(_0x13ee1e[_0x46011e(0x101)][_0x46011e(0x114)]?_0x13ee1e[_0x46011e(0x101)][0x0]:null);})[_0x281a2c(0xff)](function(_0x108d76){const _0x299122=_0x281a2c;return logger[_0x299122(0xfe)](_0x299122(0xf6),_0x108d76?util[_0x299122(0xfa)](_0x108d76,{'showHidden':![],'depth':null}):''),_0x450059(null);});return _0x450059(null);});},exports[a1398_0x3ce693(0x11a)]=function(_0x49cd1f,_0x446355){const _0x2cdb41=a1398_0x3ce693;return moment(_0x49cd1f)[_0x2cdb41(0x10e)](_0x446355,_0x2cdb41(0x115))[_0x2cdb41(0x104)](_0x2cdb41(0x117));},exports[a1398_0x3ce693(0xfd)]=function(_0x44e6eb,_0x5466d7){const _0x494c8e=a1398_0x3ce693;return moment(_0x44e6eb)[_0x494c8e(0x111)](_0x5466d7,_0x494c8e(0x115))['format'](_0x494c8e(0x117));},exports[a1398_0x3ce693(0x116)]=function(_0x4bf227,_0x225140){const _0x59ab66=a1398_0x3ce693;return moment(_0x4bf227)[_0x59ab66(0xfb)](moment(_0x225140),_0x59ab66(0x115));},exports[a1398_0x3ce693(0x102)]=function(_0x4b1675,_0x41b93a){return parseInt(_0x4b1675,0xa)+parseInt(_0x41b93a,0xa);},exports[a1398_0x3ce693(0x10f)]=function(){const _0x19a460=a1398_0x3ce693;return moment()[_0x19a460(0x104)](_0x19a460(0x117));},exports[a1398_0x3ce693(0x110)]=function(_0x4330fa,_0x5270c8){const _0x192c47=a1398_0x3ce693;if(_0x5270c8)return moment(_0x4330fa)[_0x192c47(0x110)](_0x5270c8);return!![];},exports[a1398_0x3ce693(0x10a)]=function(_0x29fd03,_0x4bfc31){const _0x3dd4ef=a1398_0x3ce693;if(_0x4bfc31)return moment(_0x29fd03)[_0x3dd4ef(0x10a)](_0x4bfc31);else{if(_0x29fd03)return!![];}return![];}; \ No newline at end of file diff --git a/server/utils/build-info.js b/server/utils/build-info.js index 3acd6a8..c6c5f0a 100644 --- a/server/utils/build-info.js +++ b/server/utils/build-info.js @@ -1 +1 @@ -const a1399_0x5ed6=['resolve','exports','xcally','join','../../package.json','getBuildInfo','isProduction','git-last-commit','../config/config.service'];(function(_0x7da817,_0x161fb5){const _0x5ed638=function(_0x5aa575){while(--_0x5aa575){_0x7da817['push'](_0x7da817['shift']());}};_0x5ed638(++_0x161fb5);}(a1399_0x5ed6,0x162));const a1399_0x5aa5=function(_0x7da817,_0x161fb5){_0x7da817=_0x7da817-0x1e7;let _0x5ed638=a1399_0x5ed6[_0x7da817];return _0x5ed638;};const a1399_0x300b5d=a1399_0x5aa5,{getLastCommit}=require(a1399_0x300b5d(0x1eb)),{getConfigService}=require(a1399_0x300b5d(0x1ec)),packageJson=require(a1399_0x300b5d(0x1e8)),cs=getConfigService();function getBuildInfo(){return new Promise((_0x21991e,_0x5867a4)=>{getLastCommit(function(_0x22566a,_0x1743bc){const _0x118bf5=a1399_0x5aa5;if(_0x22566a)_0x5867a4(_0x22566a);else{const {shortHash:_0x46ed17,branch:_0x24ce87,committedOn:_0x53a01b,tags:_0x3cb800}=_0x1743bc;_0x21991e({'shortHash':_0x46ed17,'branch':_0x24ce87,'tag':_0x3cb800[_0x118bf5(0x1e7)](',\x20'),'committedOn':new Date(Number(_0x53a01b)*0x3e8),'buildDate':new Date()});}});});}function readBuildInfo(){const _0x327683=a1399_0x300b5d;return cs[_0x327683(0x1ea)]&&typeof packageJson[_0x327683(0x1ef)]!=='undefined'?Promise[_0x327683(0x1ed)](packageJson[_0x327683(0x1ef)]):getBuildInfo();}module[a1399_0x300b5d(0x1ee)][a1399_0x300b5d(0x1e9)]=getBuildInfo,module['exports']['readBuildInfo']=readBuildInfo; \ No newline at end of file +const a1399_0x5df0=['readBuildInfo','xcally','../config/config.service','git-last-commit','resolve','../../package.json','undefined','getBuildInfo','isProduction','join','exports'];(function(_0x38c895,_0x12afd0){const _0x5df0a4=function(_0x2c353d){while(--_0x2c353d){_0x38c895['push'](_0x38c895['shift']());}};_0x5df0a4(++_0x12afd0);}(a1399_0x5df0,0xa2));const a1399_0x2c35=function(_0x38c895,_0x12afd0){_0x38c895=_0x38c895-0x164;let _0x5df0a4=a1399_0x5df0[_0x38c895];return _0x5df0a4;};const a1399_0x144bfd=a1399_0x2c35,{getLastCommit}=require(a1399_0x144bfd(0x16a)),{getConfigService}=require(a1399_0x144bfd(0x169)),packageJson=require(a1399_0x144bfd(0x16c)),cs=getConfigService();function getBuildInfo(){return new Promise((_0x40a73d,_0x31ee5f)=>{getLastCommit(function(_0x3aa026,_0x2d56b8){const _0x39714b=a1399_0x2c35;if(_0x3aa026)_0x31ee5f(_0x3aa026);else{const {shortHash:_0x46aef2,branch:_0x1fe560,committedOn:_0x5ab336,tags:_0x24947f}=_0x2d56b8;_0x40a73d({'shortHash':_0x46aef2,'branch':_0x1fe560,'tag':_0x24947f[_0x39714b(0x165)](',\x20'),'committedOn':new Date(Number(_0x5ab336)*0x3e8),'buildDate':new Date()});}});});}function readBuildInfo(){const _0x3bbc6b=a1399_0x144bfd;return cs[_0x3bbc6b(0x164)]&&typeof packageJson[_0x3bbc6b(0x168)]!==_0x3bbc6b(0x16d)?Promise[_0x3bbc6b(0x16b)](packageJson[_0x3bbc6b(0x168)]):getBuildInfo();}module[a1399_0x144bfd(0x166)][a1399_0x144bfd(0x16e)]=getBuildInfo,module[a1399_0x144bfd(0x166)][a1399_0x144bfd(0x167)]=readBuildInfo; \ No newline at end of file diff --git a/server/utils/mask-sensistive-data.js b/server/utils/mask-sensistive-data.js index dd396d8..3e069b9 100644 --- a/server/utils/mask-sensistive-data.js +++ b/server/utils/mask-sensistive-data.js @@ -1 +1 @@ -const a1400_0x3784=['maskSensitiveData','accessToken','mobile','registry','vidaooApiKey','isArray','includes','isPlainObject','exten','token','}@@','accesskeyid','pass','firstName','user','apiKey','dsn','fax','accessKey','oldPassword','email','clientId','replace','@@{','channelSecret','password','calleridnum','consumerKey','secretaccesskey','exports','code','calleridname'];(function(_0x228fad,_0x526dc0){const _0x3784de=function(_0x88de35){while(--_0x88de35){_0x228fad['push'](_0x228fad['shift']());}};_0x3784de(++_0x526dc0);}(a1400_0x3784,0x148));const a1400_0x88de=function(_0x228fad,_0x526dc0){_0x228fad=_0x228fad-0x108;let _0x3784de=a1400_0x3784[_0x228fad];return _0x3784de;};const a1400_0x1e5043=a1400_0x88de,_=require('lodash'),sensitiveFields=['username',a1400_0x1e5043(0x119),'newPassword',a1400_0x1e5043(0x10f),a1400_0x1e5043(0x10d),'lastName','street','phone',a1400_0x1e5043(0x122),a1400_0x1e5043(0x111),a1400_0x1e5043(0x114),a1400_0x1e5043(0x115),'clientSecret','securityToken',a1400_0x1e5043(0x11e),a1400_0x1e5043(0x112),'tenantId',a1400_0x1e5043(0x109),a1400_0x1e5043(0x118),a1400_0x1e5043(0x121),'accessTokenSecret','authToken',a1400_0x1e5043(0x11b),'consumerSecret','membername',a1400_0x1e5043(0x11f),a1400_0x1e5043(0x11a),a1400_0x1e5043(0x108),a1400_0x1e5043(0x124),'clientEmail','privateKey',a1400_0x1e5043(0x10b),a1400_0x1e5043(0x11c),'key',a1400_0x1e5043(0x10e),a1400_0x1e5043(0x10c),'accountSid','localstationid',a1400_0x1e5043(0x110),'secret',a1400_0x1e5043(0x123),a1400_0x1e5043(0x113)];function maskSensitiveData(_0x530ce7){const _0x22ad5e=a1400_0x1e5043,_0x475979=/(?!^)[\s\S](?!$)/g;for(const _0x5c7a99 in _0x530ce7){if(_[_0x22ad5e(0x125)](_0x530ce7[_0x5c7a99]))for(let _0x10ffdf=0x0;_0x10ffdf<_0x530ce7[_0x5c7a99]['length'];_0x10ffdf++){maskSensitiveData(_0x530ce7[_0x5c7a99][_0x10ffdf]);}else{if(_[_0x22ad5e(0x127)](_0x530ce7[_0x5c7a99]))maskSensitiveData(_0x530ce7[_0x5c7a99]);else _['isString'](_0x530ce7[_0x5c7a99])&&(_0x530ce7[_0x5c7a99]=_0x530ce7[_0x5c7a99][_0x22ad5e(0x116)](/{{{/g,_0x22ad5e(0x117))[_0x22ad5e(0x116)](/}}}/g,_0x22ad5e(0x10a))['replace'](/{{/g,'@{')[_0x22ad5e(0x116)](/}}/g,'}@'),_[_0x22ad5e(0x126)](sensitiveFields,_0x5c7a99)&&(_0x530ce7[_0x5c7a99]=_0x530ce7[_0x5c7a99][_0x22ad5e(0x116)](_0x475979,'*')));}}}module[a1400_0x1e5043(0x11d)][a1400_0x1e5043(0x120)]=maskSensitiveData; \ No newline at end of file +const a1400_0x4226=['secretaccesskey','key','email','privateKey','consumerSecret','membername','oldPassword','securityToken','clientId','password','mobile','accessTokenSecret','firstName','calleridname','includes','code','phone','maskSensitiveData','consumerKey','accessToken','lodash','username','isString','tenantId','newPassword','replace','accessKey','registry','isPlainObject','lastName','token','apiKey','@@{','fax','user','length','street'];(function(_0xe8ea77,_0x392bf5){const _0x422694=function(_0x510a0d){while(--_0x510a0d){_0xe8ea77['push'](_0xe8ea77['shift']());}};_0x422694(++_0x392bf5);}(a1400_0x4226,0xcb));const a1400_0x510a=function(_0xe8ea77,_0x392bf5){_0xe8ea77=_0xe8ea77-0x1e5;let _0x422694=a1400_0x4226[_0xe8ea77];return _0x422694;};const a1400_0x4dfdcb=a1400_0x510a,_=require(a1400_0x4dfdcb(0x1e7)),sensitiveFields=[a1400_0x4dfdcb(0x1e8),a1400_0x4dfdcb(0x201),a1400_0x4dfdcb(0x1eb),a1400_0x4dfdcb(0x1f2),a1400_0x4dfdcb(0x204),a1400_0x4dfdcb(0x1f0),a1400_0x4dfdcb(0x1f7),a1400_0x4dfdcb(0x208),a1400_0x4dfdcb(0x202),a1400_0x4dfdcb(0x1f4),a1400_0x4dfdcb(0x1fa),a1400_0x4dfdcb(0x200),'clientSecret',a1400_0x4dfdcb(0x1ff),a1400_0x4dfdcb(0x207),a1400_0x4dfdcb(0x1ed),a1400_0x4dfdcb(0x1ea),a1400_0x4dfdcb(0x1f1),'channelSecret',a1400_0x4dfdcb(0x1e6),a1400_0x4dfdcb(0x203),'authToken',a1400_0x4dfdcb(0x1e5),a1400_0x4dfdcb(0x1fc),a1400_0x4dfdcb(0x1fd),a1400_0x4dfdcb(0x205),'calleridnum','exten','vidaooApiKey','clientEmail',a1400_0x4dfdcb(0x1fb),'accesskeyid',a1400_0x4dfdcb(0x1f8),a1400_0x4dfdcb(0x1f9),a1400_0x4dfdcb(0x1f5),'pass','accountSid','localstationid','dsn','secret',a1400_0x4dfdcb(0x1ee),a1400_0x4dfdcb(0x1fe)];function maskSensitiveData(_0x140dc7){const _0x13ab05=a1400_0x4dfdcb,_0x3703a9=/(?!^)[\s\S](?!$)/g;for(const _0x40f08f in _0x140dc7){if(_['isArray'](_0x140dc7[_0x40f08f]))for(let _0x87695f=0x0;_0x87695f<_0x140dc7[_0x40f08f][_0x13ab05(0x1f6)];_0x87695f++){maskSensitiveData(_0x140dc7[_0x40f08f][_0x87695f]);}else{if(_[_0x13ab05(0x1ef)](_0x140dc7[_0x40f08f]))maskSensitiveData(_0x140dc7[_0x40f08f]);else _[_0x13ab05(0x1e9)](_0x140dc7[_0x40f08f])&&(_0x140dc7[_0x40f08f]=_0x140dc7[_0x40f08f][_0x13ab05(0x1ec)](/{{{/g,_0x13ab05(0x1f3))[_0x13ab05(0x1ec)](/}}}/g,'}@@')[_0x13ab05(0x1ec)](/{{/g,'@{')[_0x13ab05(0x1ec)](/}}/g,'}@'),_[_0x13ab05(0x206)](sensitiveFields,_0x40f08f)&&(_0x140dc7[_0x40f08f]=_0x140dc7[_0x40f08f]['replace'](_0x3703a9,'*')));}}}module['exports'][a1400_0x4dfdcb(0x209)]=maskSensitiveData; \ No newline at end of file diff --git a/snippets/chat_v3.0.0-alpha.2/index.html b/snippets/chat_v3.0.0-alpha.2/index.html index 8fc6d78..81b0571 100644 --- a/snippets/chat_v3.0.0-alpha.2/index.html +++ b/snippets/chat_v3.0.0-alpha.2/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 -- 1.7.1
\n',"#d1c4e9","SYSRES_CONST_REQ_TYPE_VALUE ","abc","onResize","parseTwoDigitYear",'
\n',"expect","md-datepicker-calendar","swap",'"""',"$locale","exception fn fun functor handle if in include infix infixr ","icSubTaskInitEventHandler ","DDDD","no_smoking","#3399FF","SYSREQ_EDOC_TYPE_VIEW_CARD ","UrlMatcherFactory","%d sagat","flex-order",'" selected>',"surface_get_depth_disable draw_surface draw_surface_stretched ","maxTime","wdtFolderCollection ","DI can't find injectable: '","isElementTypeEnabled","call()","Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis","oss0","taggerscript","воскресенье_понедельник_вторник_среда_четверг_пятница_суббота","ng-hide","kbv_returnkey_search kbv_returnkey_send kbv_returnkey_yahoo ","(\\bend\\b)","SCRIPT_BLOCK_AFTER_FINISH_EVENT ","uibPaging",", 0)","ChangeDate ","hwb","CSS_NUMBER_MODE","SubStringCount ","radialGradient,rect,stop,svg,switch,text,title,tspan","%d menit","game_die","mdContactChips","intersect","dependencies repositories sourceSets description delete from into include ","wdtReferenceRecord ","uib/template/tabs/tab.html","requested does not exist. Use the $mdPanelProvider to create a ","dddd, D MMMM YYYY г., HH:mm","sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan ","viewMapper","containerHeight","indexOf","ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ"," ","$isEmpty","SYSRES_CONST_ATTACH_TYPE_REFERENCE ","fontColor","setBleedingRemaining setBrakesRTD setCameraInterest setCamShakeDefParams setCamShakeParams ","dddd [i] LT","md-container-class","MMMM [tile] D [san] YYYY","/embed/","Too Many Hops","starts","MenuItemController","type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal ","minSize","SYSRES_CONST_YES_VALUE ","[Yfory am] LT","updateTextContent","cmpg","SCRIPT","SQRT2","useContentExp","spread","pageXOffset",'
',".listmac .macro .nolist .org .set",'" target="',"md-visually-hidden","Job ","withState","sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor ","pagh","CONFIRMATION_CAPTION ","chartDatasetOverride","findNextWhere","sham","Version"," isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph"," ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof","no_bicycles","col","socket.io-client:socket","emUnlockExportedWithLock ","1 ชั่วโมง","thing room person man woman animal container ","EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH ","WebkitTransition","fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile|FxiOS","tolerance","rgba(255, 255, 255, 1.000)","visiblePosition visiblePositionASL visibleScoretable visibleWatch waves waypointAttachedObject ","found",'"]"',"wptText ","ReferenceCodeByID ","activeDt","_viewConfigFactories","gridster-draggable-changed","'n dag","FormatDate ","icAnalyticReport ","include -include sinclude override export unexport private vpath","isMatcher","_wrapContentElement","matchMedia","nix","isInjectable","'n paar sekondes","sput","mousedown touchstart","^uibDatepicker","portrait","define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline","=?mdOpen","prevPage","EPSILON","%d munud","monthsShortRegex","minVelocity","Set-vRAEntitlement Set-vRAExternalNetworkProfile Set-vRANATNetworkProfile Set-vRAReservation Set-vRAReservationNetwork Set-vRAReservationPolicy Set-vRAReservationStorage ","fromTimezone","cert","button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), ","embedBasic","call","clock8",'
',"STATUS_USER_CLOSED","connected","C CachedValue CacheGraphics CachePersistence CalendarConvert CalendarData CalendarType Callout CalloutMarker CalloutStyle CallPacket CanberraDistance Cancel CancelButton CandlestickChart CanonicalGraph CanonicalizePolygon CanonicalizePolyhedron CanonicalName CanonicalWarpingCorrespondence CanonicalWarpingDistance CantorMesh CantorStaircase Cap CapForm CapitalDifferentialD Capitalize CapsuleShape CaptureRunning CardinalBSplineBasis CarlemanLinearize CarmichaelLambda CaseOrdering Cases CaseSensitive Cashflow Casoratian Catalan CatalanNumber Catch Catenate CatenateLayer CauchyDistribution CauchyWindow CayleyGraph CDF CDFDeploy CDFInformation CDFWavelet Ceiling CelestialSystem Cell CellAutoOverwrite CellBaseline CellBoundingBox CellBracketOptions CellChangeTimes CellContents CellContext CellDingbat CellDynamicExpression CellEditDuplicate CellElementsBoundingBox CellElementSpacings CellEpilog CellEvaluationDuplicate CellEvaluationFunction CellEvaluationLanguage CellEventActions CellFrame CellFrameColor CellFrameLabelMargins CellFrameLabels CellFrameMargins CellGroup CellGroupData CellGrouping CellGroupingRules CellHorizontalScrolling CellID CellLabel CellLabelAutoDelete CellLabelMargins CellLabelPositioning CellLabelStyle CellLabelTemplate CellMargins CellObject CellOpen CellPrint CellProlog Cells CellSize CellStyle CellTags CellularAutomaton CensoredDistribution Censoring Center CenterArray CenterDot CentralFeature CentralMoment CentralMomentGeneratingFunction Cepstrogram CepstrogramArray CepstrumArray CForm ChampernowneNumber ChangeOptions ChannelBase ChannelBrokerAction ChannelDatabin ChannelHistoryLength ChannelListen ChannelListener ChannelListeners ChannelListenerWait ChannelObject ChannelPreSendFunction ChannelReceiverFunction ChannelSend ChannelSubscribers ChanVeseBinarize Character CharacterCounts CharacterEncoding CharacterEncodingsPath CharacteristicFunction CharacteristicPolynomial CharacterName CharacterRange Characters ChartBaseStyle ChartElementData ChartElementDataFunction ChartElementFunction ChartElements ChartLabels ChartLayout ChartLegends ChartStyle Chebyshev1FilterModel Chebyshev2FilterModel ChebyshevDistance ChebyshevT ChebyshevU Check CheckAbort CheckAll Checkbox CheckboxBar CheckboxBox CheckboxBoxOptions ChemicalData ChessboardDistance ChiDistribution ChineseRemainder ChiSquareDistribution ChoiceButtons ChoiceDialog CholeskyDecomposition Chop ChromaticityPlot ChromaticityPlot3D ChromaticPolynomial Circle CircleBox CircleDot CircleMinus CirclePlus CirclePoints CircleThrough CircleTimes CirculantGraph CircularOrthogonalMatrixDistribution CircularQuaternionMatrixDistribution CircularRealMatrixDistribution CircularSymplecticMatrixDistribution CircularUnitaryMatrixDistribution Circumsphere CityData ClassifierFunction ClassifierInformation ClassifierMeasurements ClassifierMeasurementsObject Classify ClassPriors Clear ClearAll ClearAttributes ClearCookies ClearPermissions ClearSystemCache ClebschGordan ClickPane Clip ClipboardNotebook ClipFill ClippingStyle ClipPlanes ClipPlanesStyle ClipRange Clock ClockGauge ClockwiseContourIntegral Close Closed CloseKernels ClosenessCentrality Closing ClosingAutoSave ClosingEvent CloudAccountData CloudBase CloudConnect CloudDeploy CloudDirectory CloudDisconnect CloudEvaluate CloudExport CloudExpression CloudExpressions CloudFunction CloudGet CloudImport CloudLoggingData CloudObject CloudObjectInformation CloudObjectInformationData CloudObjectNameFormat CloudObjects CloudObjectURLType CloudPublish CloudPut CloudRenderingMethod CloudSave CloudShare CloudSubmit CloudSymbol CloudUnshare ClusterClassify ClusterDissimilarityFunction ClusteringComponents ClusteringTree CMYKColor Coarse CodeAssistOptions Coefficient CoefficientArrays CoefficientDomain CoefficientList CoefficientRules CoifletWavelet Collect Colon ColonForm ColorBalance ColorCombine ColorConvert ColorCoverage ColorData ColorDataFunction ColorDetect ColorDistance ColorFunction ColorFunctionScaling Colorize ColorNegate ColorOutput ColorProfileData ColorQ ColorQuantize ColorReplace ColorRules ColorSelectorSettings ColorSeparate ColorSetter ColorSetterBox ColorSetterBoxOptions ColorSlider ColorsNear ColorSpace ColorToneMapping Column ColumnAlignments ColumnBackgrounds ColumnForm ColumnLines ColumnsEqual ColumnSpacings ColumnWidths CombinedEntityClass CombinerFunction CometData CommonDefaultFormatTypes Commonest CommonestFilter CommonName CommonUnits CommunityBoundaryStyle CommunityGraphPlot CommunityLabels CommunityRegionStyle CompanyData CompatibleUnitQ CompilationOptions CompilationTarget Compile Compiled CompiledCodeFunction CompiledFunction CompilerOptions Complement CompleteGraph CompleteGraphQ CompleteKaryTree CompletionsListPacket Complex Complexes ComplexExpand ComplexInfinity ComplexityFunction ComplexListPlot ComplexPlot ComplexPlot3D ComponentMeasurements ComponentwiseContextMenu Compose ComposeList ComposeSeries CompositeQ Composition CompoundElement CompoundExpression CompoundPoissonDistribution CompoundPoissonProcess CompoundRenewalProcess Compress CompressedData ComputeUncertainty Condition ConditionalExpression Conditioned Cone ConeBox ConfidenceLevel ConfidenceRange ConfidenceTransform ConfigurationPath ConformAudio ConformImages Congruent ConicHullRegion ConicHullRegion3DBox ConicHullRegionBox ConicOptimization Conjugate ConjugateTranspose Conjunction Connect ConnectedComponents ConnectedGraphComponents ConnectedGraphQ ConnectedMeshComponents ConnectedMoleculeComponents ConnectedMoleculeQ ConnectionSettings ConnectLibraryCallbackFunction ConnectSystemModelComponents ConnesWindow ConoverTest ConsoleMessage ConsoleMessagePacket ConsolePrint Constant ConstantArray ConstantArrayLayer ConstantImage ConstantPlusLayer ConstantRegionQ Constants ConstantTimesLayer ConstellationData ConstrainedMax ConstrainedMin Construct Containing ContainsAll ContainsAny ContainsExactly ContainsNone ContainsOnly ContentFieldOptions ContentLocationFunction ContentObject ContentPadding ContentsBoundingBox ContentSelectable ContentSize Context ContextMenu Contexts ContextToFileName Continuation Continue ContinuedFraction ContinuedFractionK ContinuousAction ContinuousMarkovProcess ContinuousTask ContinuousTimeModelQ ContinuousWaveletData ContinuousWaveletTransform ContourDetect ContourGraphics ContourIntegral ContourLabels ContourLines ContourPlot ContourPlot3D Contours ContourShading ContourSmoothing ContourStyle ContraharmonicMean ContrastiveLossLayer Control ControlActive ControlAlignment ControlGroupContentsBox ControllabilityGramian ControllabilityMatrix ControllableDecomposition ControllableModelQ ControllerDuration ControllerInformation ControllerInformationData ControllerLinking ControllerManipulate ControllerMethod ControllerPath ControllerState ControlPlacement ControlsRendering ControlType Convergents ConversionOptions ConversionRules ConvertToBitmapPacket ConvertToPostScript ConvertToPostScriptPacket ConvexHullMesh ConvexPolygonQ ConvexPolyhedronQ ConvolutionLayer Convolve ConwayGroupCo1 ConwayGroupCo2 ConwayGroupCo3 CookieFunction Cookies CoordinateBoundingBox CoordinateBoundingBoxArray CoordinateBounds CoordinateBoundsArray CoordinateChartData CoordinatesToolOptions CoordinateTransform CoordinateTransformData CoprimeQ Coproduct CopulaDistribution Copyable CopyDatabin CopyDirectory CopyFile CopyTag CopyToClipboard CornerFilter CornerNeighbors Correlation CorrelationDistance CorrelationFunction CorrelationTest Cos Cosh CoshIntegral CosineDistance CosineWindow CosIntegral Cot Coth Count CountDistinct CountDistinctBy CounterAssignments CounterBox CounterBoxOptions CounterClockwiseContourIntegral CounterEvaluator CounterFunction CounterIncrements CounterStyle CounterStyleMenuListing CountRoots CountryData Counts CountsBy Covariance CovarianceEstimatorFunction CovarianceFunction CoxianDistribution CoxIngersollRossProcess CoxModel CoxModelFit CramerVonMisesTest CreateArchive CreateCellID CreateChannel CreateCloudExpression CreateDatabin CreateDataSystemModel CreateDialog CreateDirectory CreateDocument CreateFile CreateIntermediateDirectories CreateManagedLibraryExpression CreateNotebook CreatePalette CreatePalettePacket CreatePermissionsGroup CreateScheduledTask CreateSearchIndex CreateSystemModel CreateTemporary CreateUUID CreateWindow CriterionFunction CriticalityFailureImportance CriticalitySuccessImportance CriticalSection Cross CrossEntropyLossLayer CrossingCount CrossingDetect CrossingPolygon CrossMatrix Csc Csch CTCLossLayer Cube CubeRoot Cubics Cuboid CuboidBox Cumulant CumulantGeneratingFunction Cup CupCap Curl CurlyDoubleQuote CurlyQuote CurrencyConvert CurrentDate CurrentImage CurrentlySpeakingPacket CurrentNotebookImage CurrentScreenImage CurrentValue Curry CurvatureFlowFilter CurveClosed Cyan CycleGraph CycleIndexPolynomial Cycles CyclicGroup Cyclotomic Cylinder CylinderBox CylindricalDecomposition","app/directives/radio-button-item/radio-button-view.html","remoteUrlRequestFormatter","dataset","adc|","SYSREF_EDOCUMENT_HISTORY ","wdtBoolean ","clientX","chartHorizontalBar","SYSREQ_REF_TYPE_REQ_IS_LEADING ","super this abstract static volatile transient public private protected synchronized final "," dispfun dispJordan display disprule dispterms distrib divide divisors divsum","invokeHooks","isInMaxRange","bodyElement","ass","ssrcs","SYSRES_CONST_MODULE_REQUISITE_CODE ","getMissionLayerEntities getModelInfo getMousePosition getMusicPlayedTime getNumber ","$dumpvars $dumpon $dumplimit $dumpports $dumpportson $dumpportslimit ","getSize","ຕອນເຊົ້າ","#e1bee7","SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN ",'',"handleBodyClick","parameters","hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ","^ngModel","наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед ","Invalid argument.","fillStyle","background_showcolour background_color background_showcolor ","scad","\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B\\->\\*?","$mdMenu","_status","Right","CreateInputDialog ","^\\+","@babel/helpers - typeof","%d йил","resolve libcallnr foldclosedend reverse filter has_key bufname ","(VC|VS|#)","direction","false synchronized int abstract float private char boolean static null if const ","D MMMM YYYY, HH:mm","(orientation: landscape)","%d jierren","Як_Ду_Се_Чо_Па_Жу_Ша","hasFocus","SYSRES_CONST_ACTION_TYPE_DELETE_VERSION ","$injector","HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel ","$validate","{PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @","isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv ","кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных ",'
',"'(U|X|0|1|Z|W|L|H|-)'","факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени ","основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении ","установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения ","isMobileDevice","\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b","_focusNextTab","When md-on-demand is enabled, the Object passed to md-virtual-repeat must ","","vas_hét_kedd_sze_csüt_pén_szo","RTCIceGatherer","get_node","dddd [בשעה] LT","text/plain","deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes ","collect colu colum column column_value columns columns_updated comment commit compact compatibility ","pbi","md-calendar-parent-changed","%d semanas","en måned","onScroll","$$animatePrepareClasses","isElementActive","Palette() instead.","target in out common equivalence data","toTransformCss","openFrom","%d ώρες","minútu","Chart","lastPage","mrNoToAll ","_milliseconds","unary","wdtPickSet ","data-bootstrap-modal-aria-hidden-count","empty-cells","ariaHidden","[mañana a la","Bad Info Package","date_get_year date_get_month date_get_week date_get_day ","traceData.context","ext","setMaxListeners","material.components.whiteframe","rdThisWeek ","((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","reconstructor","containment","%d ýyl","rgb(0, 0, 245)","goToPrevPage","noPagination","There are ","SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE ","IWorkTreeTaskNode ","ح_ن_ث_ر_خ_ج_س","\\b[a-zA-Z][a-zA-Z0-9_-]*","rgb(204, 255, 230)","] */\n","BODY","Agreement","objectivec","HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION ","999999px","MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY ","REGISTER","innerHeight","mdOnAppend","encodePacket","$submitted","dddd [kl.] LT","_response","[Sot në] LT","%s gelede","comments include include-once NoTrayIcon OnAutoItStartRegister pragma compile RequireAdmin","encodeAsString","webpackChunkmotion_client","\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b","subPath",'{{getLocalizationVal("Clear")}}',"slides","mdColorPicker:colorSet","getViewValue","#FF9933","receiveInviteResponse()","hasValue","index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile ","onImageSelection","mdCell","IStringRequisiteDescription ","setDefaultCron","gridster-item-resizing",",\\s*,","%d წუთი",'md-tab-scroll="$mdTabsCtrl.scroll($event)" ',"beforeDatasetsUpdate","[у] [недељу] [у] LT","urlSanitizationWhitelist",")*>)?","material.components.tooltip","
  • ","[\\$%]\\d+","un minut","сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш ","SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE ","directive","two_hearts","\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b","ВерхняяГраницаМассива ","50 100 200 300 A100","%d xhur","isNumber",":auth:","ascending descending allowing empty greatest least some every satisfies switch case typeswitch try catch ","getFocusedMenu","dddd, D [de] MMMM [de] YYYY H:mm","ПроверитьПараметрЗнач ","translateAttr","traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firewall firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw","januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december","removeWeaponAttachmentCargo removeWeaponCargo removeWeaponGlobal removeWeaponTurret ","$dumpportsflush $fclose $fdisplay $fdisplayb $fdisplayh $fdisplayo ","setUTCFullYear","steam_ugc_query_set_return_long_description ","CSS_UNIT","[Å iandien] LT","एक तास",'ng-focus="$mdTabsCtrl.redirectFocus()" ',"STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT ","=?mdMode","achievement_event achievement_show achievement_get_info ","activeElement","setSpace","no_entry_sign","className","%d منٹ","_$rootElement","ctrlCreate ctrlDelete ctrlEnable ctrlEnabled ctrlFade ctrlHTMLLoaded ctrlIDC ctrlIDD ","EAGER","onHandshake","discard distinct div do elif else end enum except export finally ","á ~míñ~úté","registerLanguage","IDataSetAccessInfo ","Expected the menu to have a trigger element.","Scatter","cake","dⓓdḋďḍḑḓḏđƌɖɗꝺ","PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW ","acks","toAor","STATUS_WAITING_FOR_ACK","MimeDecodeBinary ","godinu","%q\\(","[v stredu o] LT","sv-on-stop","file_find_close file_attributes filename_name filename_path ",' \n',"mixed","blockquote","HTML5 date input types do not support custom formats.","tvtAllWords ","SYSREF_RECORD_HISTORY ","phy_debug_render_collision_pairs phy_debug_render_coms ",'',"camel","getChipContent","will-change","JsSIP:AckClientTransaction","newListener","gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor "," from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp","target_include_directories target_link_directories target_link_libraries ","Subscription-State: ","wdtPick ","$onDestroy","%d સેકંડ","Ahd_Isn_Sel_Rab_Kha_Jum_Sab","gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 ","wdtBooleanCollection ","2.29.1","_pluginapi","SYSDLG_CREATE_EDOCUMENT ","[Itolo nga] LT","$mdTheming","maybeReconnectOnOpen","performance","направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса ","SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME ","Pz_Pt_Sa_Ça_Pe_Cu_Ct","value_list while abort case else fail_if fail_ifnot fail if_empty ","finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar ","fakeElem","inCurrentMonth","apply","omission","IEdmsObjectDescription ","TIMER_D","primaryPalette","setValues","#e53935"," gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide","SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY ","100%","closed_lock_with_key","IReferenceEnabledMode ","webkit[ /][VER]","@?mdDropdownPosition","elem","vhs","Unsupported Certificate","$stateChangeStart","FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES ","eno uro","setDimensions","هڪ سال","i %s","of off on operator option optional or order orelse overloads overridable overrides ","%d日","расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных ","[Il-bieraħ fil-]LT","","1.9.0","NOTICE_BLOCK_PERFORMER_PROPERTY ","http_get_file http_post_string http_request json_encode json_decode ","_mdMocksIncluded","md-pagination-wrapper","nine","modal-animation","wdtEDocumentCollection ","excel","uibAccordionGroup","scrollbarYRight","dseBeforeDelete ","vfprintf vprintf vsprintf endl initializer_list unique_ptr","$$destroyed","дзень_дні_дзён","set_type","artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu ","CArrayElement ",'',"dismiss","haml","websocket error",'"duration" value is lower than the minimum allowed, setting it to ',")","isEqualTypeParams isFilePatchingEnabled isFlashlightOn isFlatEmpty isForcedWalk isFormationLeader ","$destroy","[Gister om] LT","queryCommandSupported","div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to ","_is_canceled","link_","%d minuti","%d mzuzwana","eee8aa","liveleakEmbed","not","loadVest local localize locationPosition lock lockCameraTo lockCargo lockDriver locked ","mouseup touchend touchcancel",'tabindex="-1" aria-hidden="true" ',"self super nil true false thisContext","getter setter retain unsafe_unretained ","« Previous","հունվար_փետրվար_մարտ_ապրիլ_Õ´Õ¡ÕµÕ«Õ½_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր","hexToRgba","unchoose","WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS ","ds_map_add ds_map_add_list ds_map_add_map ds_map_replace ","absolute","\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b","isCase join leftShift minus multiply newInputStream newOutputStream newPrintWriter ","8-)","wrapper"," {{ toast.actionHint }}","shake","trailing","ФайлВремяУстановить ","JOB_BLOCK_JOB_TEXT_PROPERTY ","ثانيتين","MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b","pointRadius","PRIVILEGE_MANAGE_SESSION_SERVER ","^^mdVirtualRepeatContainer","weeksInWeekYear","SYSRES_CONST_COMPONENT_TYPE_SCRIPTS ","availableConfig","candidate:%s %d %s %d %s %d typ %s",'